define(["exports","./edu-vendor","./edu-main","systemjs","npm:navigo/lib/navigo.js","./ci-widget"],(function(e,t,n,r,s,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=o(r),c=a(s);function d(e,n){1&e&&(t["ɵɵelementStart"](0,"p",5),t["ɵɵtext"](1,"Enter your cell phone number and we’ll send you a link to install the WalletHub app."),t["ɵɵelementEnd"]())}function u(e,n){1&e&&(t["ɵɵelementStart"](0,"p",6),t["ɵɵtext"](1,"Failed. Please check your phone number."),t["ɵɵelementEnd"]())}function h(e,n){1&e&&(t["ɵɵelementStart"](0,"p",7),t["ɵɵtext"](1,"Awesome! You should be receiving a text with the download link shortly"),t["ɵɵelementEnd"]())}function p(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",8)(1,"button",9),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.closeDialog())})),t["ɵɵtext"](2,"Close"),t["ɵɵelementEnd"]()()}}function m(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"form",10),t["ɵɵlistener"]("onSubmit",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.SendSms())})),t["ɵɵelementStart"](1,"input",11),t["ɵɵlistener"]("input",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.phone=n.target.value)})),t["ɵɵelementEnd"](),t["ɵɵelementStart"](2,"p",12),t["ɵɵtext"](3,"Wallethub doesn’t charge for this service. Standard message rates apply."),t["ɵɵelementEnd"](),t["ɵɵelement"](4,"error-toast",13),t["ɵɵelementStart"](5,"div",14)(6,"button",15),t["ɵɵelement"](7,"i",16),t["ɵɵelementStart"](8,"span"),t["ɵɵtext"](9,"Send Link to My Phone"),t["ɵɵelementEnd"]()(),t["ɵɵelement"](10,"div",17),t["ɵɵelementStart"](11,"button",18),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.closeDialog())})),t["ɵɵtext"](12,"Cancel"),t["ɵɵelementEnd"]()()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵproperty"]("value",e.phone),t["ɵɵadvance"](3),t["ɵɵproperty"]("show",e.apifail)("timer",2200),t["ɵɵadvance"](2),t["ɵɵclassProp"]("loadactive",e.sending)}}class g{constructor(e){this._cd=e,this.phone=null,this.sending=!1,this.sentfailed=!1,this.sentdone=!1,this.apifail=!1}SendSms(){this.sending||n.$http({before:()=>{this.sending=!0},after:()=>{this.sending=!1},url:n.ajaxUrl(),data:{action:"Sms.SendAndroidLink",type:this.data.android?"android":"apple",phone:this.phone},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>{e.error&&e.failed?this.sentfailed=!0:(this.sentfailed=!1,this.sentdone=!0),this._cd.detectChanges()}),(e=>{this.apifail=!0,setTimeout((()=>{this.apifail=!1,this._cd.detectChanges()}),100)}))}closeMe(){this.sending||this.closeDialog()}}g.ɵfac=function(e){return new(e||g)(t["ɵɵdirectiveInject"](t.ChangeDetectorRef))},g.ɵcmp=t["ɵɵdefineComponent"]({type:g,selectors:[["app-store"]],decls:5,vars:5,consts:[["class","semi-bold-font",4,"ngIf"],["class","semib-bol-font ng-enter-element",4,"ngIf"],["class","semi-bold-font ng-enter-element",4,"ngIf"],["class","buttons-holder-final ng-enter-element",4,"ngIf"],["form-submit","",3,"onSubmit",4,"ngIf"],[1,"semi-bold-font"],[1,"semib-bol-font","ng-enter-element"],[1,"semi-bold-font","ng-enter-element"],[1,"buttons-holder-final","ng-enter-element"],["type","button","zing-touch","",1,"btn","fixed-w-c",3,"onTap"],["form-submit","",3,"onSubmit"],["type","tel","autocomplete","off","placeholder","cell phone number",1,"textfield","full",3,"value","input"],[1,"app-store-notice"],[3,"show","timer"],[1,"buttons-holder"],["type","submit",1,"btn","with-loader"],[1,"btn-loader"],[1,"btn-spacer"],["type","button","zing-touch","",1,"btn","blue-brds","fixed-w-c","close-bt",3,"onTap"]],template:function(e,n){1&e&&(t["ɵɵtemplate"](0,d,2,0,"p",0),t["ɵɵtemplate"](1,u,2,0,"p",1),t["ɵɵtemplate"](2,h,2,0,"p",2),t["ɵɵtemplate"](3,p,3,0,"div",3),t["ɵɵtemplate"](4,m,13,5,"form",4)),2&e&&(t["ɵɵproperty"]("ngIf",!n.sentfailed&&!n.sentdone),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.sentfailed),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.sentdone),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.sentdone),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.sentdone))},dependencies:[n.TouchGestures,t.NgIf,n.ErrorToastComponent,n.FormSubmit],styles:["app-store .app-store-notice { color : #5D7279; padding-bottom: 15px }\n        app-store .textfield { margin:15px 0 }\n        app-store .buttons-holder {text-align : right}\n        app-store error-toast { display :block; position: relative; }\n        app-store error-toast .errortoast { top:-50px; bottom: auto; }\n        app-store { max-width: 430px; display:block }\n        app-store .buttons-holder-final {text-align:center; padding-top:15px}\n        @media (max-width:480px){\n            app-store { padding : 10px }\n\n        }\n        @media (max-width:390px){\n            app-store error-toast .errortoast { left: 0px }\n\n        }\n        @media (max-width:360px){\n            app-store error-toast .errortoast { left: -20px }\n            app-store .btn-spacer { height: 8px; display : block }\n            app-store .btn { width: 100% }\n            app-store .btn.fixed-w-c { width: 100% }\n        }\n        @media (max-width:340px) {\n            app-store .close-bt {\n                width: 100px;\n            }\n        }\n        \n        "],encapsulation:2});const _=["smsOverlay"],f=["toTop"];function x(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",79)(1,"span",80),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.openStoreOvelary(!1))})),t["ɵɵtext"](2," "),t["ɵɵelementEnd"](),t["ɵɵelementStart"](3,"span",81),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.openStoreOvelary(!0))})),t["ɵɵtext"](4," "),t["ɵɵelementEnd"]()()}}function v(e,n){1&e&&(t["ɵɵelementStart"](0,"div",79)(1,"a",82),t["ɵɵtext"](2," "),t["ɵɵelementEnd"](),t["ɵɵelementStart"](3,"a",83),t["ɵɵtext"](4," "),t["ɵɵelementEnd"]()()),2&e&&(t["ɵɵadvance"](1),t["ɵɵproperty"]("zing-url",!0),t["ɵɵadvance"](2),t["ɵɵproperty"]("zing-url",!0))}function b(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",84)(1,"span",80),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.openStoreOvelary(!1))})),t["ɵɵtext"](2," "),t["ɵɵelementEnd"](),t["ɵɵelementStart"](3,"span",85),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.openStoreOvelary(!0))})),t["ɵɵtext"](4," "),t["ɵɵelementEnd"]()()}}function w(e,n){1&e&&(t["ɵɵelementStart"](0,"div",86)(1,"a",87),t["ɵɵtext"](2," "),t["ɵɵelementEnd"](),t["ɵɵelementStart"](3,"a",88),t["ɵɵtext"](4," "),t["ɵɵelementEnd"]()()),2&e&&t["ɵɵproperty"]("zing-url-container",!0)}l.import("css:/footer-web.css").then((()=>{}),(()=>{}));class y{constructor(e,t,r,s){this._dservice=e,this._el=t,this._render=r,this._zone=s,this.copyrightyear=(new Date).getFullYear(),this.isWeb=!n.isNode(),this.feedbackUrl="/feedback/",this.curDate=new Date,this._arrowautoshow=!0,n.Events.keepValueFor("to-top-arrow:show"),n.Events.emit("to-top-arrow:show",!0)}trackByFn(e){return e}ScrollToTop(){this._dservice.element.focus(),this._dservice.scrollTo({position:0,timing:300}),setTimeout((()=>{n.$http({method:"GET",events:!1,url:n.baseUrl()+"/gototop.png",expectedType:"text",silent:!0})}),300)}openStoreOvelary(e){!n.isNode()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobi/i.test(navigator.userAgent)?e?window.open("https://goo.gl/mhG3k4","_blank"):window.open("https://apps.apple.com/us/app/wallethub/id1110552982","_blank"):this._smsOverlay.Open(g,{android:e})}ngOnInit(){this.isWeb&&(this.feedbackUrl="/feedback/?ref=."+window.location.pathname),n.Events.subscribe("footer:novox",(e=>{!1===e?(this._render.removeAttribute(this._el.nativeElement,"tabindex"),this._render.removeAttribute(this._el.nativeElement,"aria-hidden")):(this._render.setAttribute(this._el.nativeElement,"tabindex","-1"),this._render.setAttribute(this._el.nativeElement,"aria-hidden","true"))}))}openFeedbackPage(e){return e.stopPropagation(),e.preventDefault(),window.open("/feedback/?ref="+window.location.pathname,"_parent"),!1}ngAfterViewInit(){if(this.isWeb&&!window.JSTESTING){let e=this._arrowTop.nativeElement;n.AppContainer().appendChild(e),this._headpos=this._dservice.onScroll.subscribe((t=>{this._arrowautoshow&&(!e.classList.contains("show")&&t>=1800?e.classList.add("show"):e.classList.contains("show")&&t<1800&&e.classList.remove("show"))}));let r=!1;n.Events.subscribe("to-top-arrow:show",(n=>{this._arrowautoshow=n,n?r&&this._dservice.onScroll.pipe(t.take(1)).subscribe((t=>{!e.classList.contains("show")&&t>=1800&&e.classList.add("show")})):e.classList.contains("show")&&(e.classList.remove("show"),r=!0)}))}}ngOnDestroy(){this._headpos&&this._headpos.unsubscribe(),n.Events.terminate("to-top-arrow:show"),n.Events.terminate("footer:novox")}}y.ɵfac=function(e){return new(e||y)(t["ɵɵdirectiveInject"](n.ScrollerService),t["ɵɵdirectiveInject"](t.ElementRef),t["ɵɵdirectiveInject"](t.Renderer2),t["ɵɵdirectiveInject"](t.NgZone))},y.ɵcmp=t["ɵɵdefineComponent"]({type:y,selectors:[["footer","main-footer",""]],viewQuery:function(e,n){if(1&e&&(t["ɵɵviewQuery"](_,5),t["ɵɵviewQuery"](f,5)),2&e){let e;t["ɵɵqueryRefresh"](e=t["ɵɵloadQuery"]())&&(n._smsOverlay=e.first),t["ɵɵqueryRefresh"](e=t["ɵɵloadQuery"]())&&(n._arrowTop=e.first)}},attrs:["main-footer",""],decls:277,vars:16,consts:[["zing-touch","","aria-label","Footer Main Menu",1,"main",3,"zing-url-container"],[1,"label"],["href","/about/"],["href","/media/"],["href","/jobs/"],["href","/contact/"],["href","/edu/statistics"],["href","/add-listing/"],["href","/answers/#sp=597"],["rel","nofollow","zing-touch","",3,"href","zing-url","onTap"],["href","/community/guidelines/"],["href","/terms/privacy/"],["href","/terms/"],["href","/accessibility"],["href","/pi-request?dontsell=1"],["href","/credit-cards/0-apr/"],["href","/credit-cards/balance-transfer/"],["href","/credit-cards/low-interest/"],["href","/best-credit-card-rates"],["href","/best-cash-back-credit-card"],["href","/credit-cards/gas/"],["href","/credit-cards/airline-miles/"],["href","/credit-cards/hotel/"],["href","/credit-cards/rewards/"],["href","/best-business-credit-cards"],["href","/best-credit-cards-for-students"],["href","/best-credit-cards"],["href","/credit-cards/store/"],["href","/credit-cards/charge-cards/"],["href","/credit-cards/no-foreign-transaction-fee/"],["href","/best-credit-card-deals"],["href","/credit-cards/no-annual-fee/"],["href","/credit-cards/secured/"],["href","/credit-cards/unsecured/"],["href","/credit-cards/excellent-credit/"],["href","/credit-cards/good-credit/"],["href","/credit-cards/fair-credit/"],["href","/credit-cards/bad-credit/"],["href","/credit-cards/no-credit/"],["href","/free-credit-score"],["href","/free-credit-report"],["href","/free-credit-monitoring"],["href","/credit-score-simulator"],["href","/wallet-score"],["href","/wallet-literacy-score/"],["href","/credit-score-range/"],["href","/auto-insurance-score"],["href","/awards/"],["href","/local-financial-products/"],["href","/product-directory/"],["href","/search-directory/"],["href","/banks"],["href","/cheap-car-insurance"],["href","/credit-unions"],["href","/mortgage-brokers"],["href","/real-estate-agents"],["href","/insurance-agents"],["href","/insurance-companies"],["href","/attorneys"],["href","/credit-card-reviews"],["class","mobileButtons top-mb-score-bts",4,"ngIf"],["zing-touch","","aria-label","Footer First Menu",1,"small",3,"zing-url-container"],["href","/credit-cards/"],["zing-touch","","aria-label","Footer Second Menu",1,"second-small",3,"zing-url-container"],["class","mobileButtons",4,"ngIf"],["class","mobileButtons","zing-touch","",3,"zing-url-container",4,"ngIf"],["aria-label","Copyright"],["tabindex","0","role","text"],["id","footer_cta"],[1,"big-content"],[1,"cta_arrow"],[1,"small-content"],[1,"small-mobile-content"],[1,"main-content"],[1,"center"],["onclick","location.href='/join/';",1,"join_for_free"],["smsOverlay",""],["id","global-arrow-up","zing-touch","","role","button","tabindex","0","aria-label","Go to the top",3,"onTap"],["toTop",""],[1,"mobileButtons","top-mb-score-bts"],["zing-touch","","role","link","aria-label","get on the app store","tabindex","0",1,"store-link","appleStore",3,"onTap"],["zing-touch","","role","link","aria-label","get on the google play","tabindex","0",1,"store-link","googlePlay",3,"onTap"],["zing-touch","","href","https://apps.apple.com/us/app/wallethub/id1110552982?mt=8","target","_blank","rel","noopener","title","get on the app store",1,"store-link","appleStore",3,"zing-url"],["zing-touch","","href","https://play.google.com/store/apps/details?id=com.wallethub.mywallet","target","_blank","rel","noopener","title","get on the google play",1,"store-link","googlePlay",3,"zing-url"],[1,"mobileButtons"],["zing-touch","","role","link","aria-label","get get on the google play","tabindex","0",1,"store-link","googlePlay",3,"onTap"],["zing-touch","",1,"mobileButtons",3,"zing-url-container"],["href","https://apps.apple.com/us/app/wallethub/id1110552982?mt=8","target","_blank","rel","noopener","title","get on the app store","aria-label","get on the app store",1,"store-link","appleStore"],["href","https://play.google.com/store/apps/details?id=com.wallethub.mywallet","target","_blank","rel","noopener","title","get on the google play","aria-label","get on the google play",1,"store-link","googlePlay"]],template:function(e,n){1&e&&(t["ɵɵelementStart"](0,"nav",0)(1,"ul")(2,"li",1),t["ɵɵtext"](3,"About"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](4,"li")(5,"a",2),t["ɵɵtext"](6,"About Us"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](7,"li")(8,"a",3),t["ɵɵtext"](9,"Media"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](10,"li")(11,"a",4),t["ɵɵtext"](12,"Jobs"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](13,"li")(14,"a",5),t["ɵɵtext"](15,"Contact Us"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](16,"li")(17,"a",6),t["ɵɵtext"](18,"Studies & Reports"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](19,"li")(20,"a",7),t["ɵɵtext"](21,"Businesses"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](22,"li",1),t["ɵɵtext"](23,"Help & Legal"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](24,"li")(25,"a",8),t["ɵɵtext"](26,"FAQ"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](27,"li")(28,"a",9),t["ɵɵlistener"]("onTap",(function(e){return n.openFeedbackPage(e)})),t["ɵɵtext"](29,"Feedback"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](30,"li")(31,"a",10),t["ɵɵtext"](32,"Guidelines"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](33,"li")(34,"a",11),t["ɵɵtext"](35,"Privacy"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](36,"li")(37,"a",12),t["ɵɵtext"](38,"Terms"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](39,"li")(40,"a",13),t["ɵɵtext"](41,"Accessibility"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](42,"li")(43,"a",14),t["ɵɵtext"](44,"Do Not Sell My"),t["ɵɵelement"](45,"br"),t["ɵɵtext"](46,"Personal Information"),t["ɵɵelementEnd"]()()(),t["ɵɵelementStart"](47,"ul")(48,"li",1),t["ɵɵtext"](49,"Credit Card Rates"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](50,"li")(51,"a",15),t["ɵɵtext"](52,"0% APR"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](53,"li")(54,"a",16),t["ɵɵtext"](55,"Balance Transfer"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](56,"li")(57,"a",17),t["ɵɵtext"](58,"Low Interest"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](59,"li")(60,"a",18),t["ɵɵtext"](61,"Best Rates"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](62,"li",1),t["ɵɵtext"](63,"Credit Card Rewards"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](64,"li")(65,"a",19),t["ɵɵtext"](66,"Cash Back"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](67,"li")(68,"a",20),t["ɵɵtext"](69,"Gas"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](70,"li")(71,"a",21),t["ɵɵtext"](72,"Airline"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](73,"li")(74,"a",22),t["ɵɵtext"](75,"Hotel"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](76,"li")(77,"a",23),t["ɵɵtext"](78,"All Rewards"),t["ɵɵelementEnd"]()()(),t["ɵɵelementStart"](79,"ul")(80,"li",1),t["ɵɵtext"](81,"Credit Card Types"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](82,"li")(83,"a",24),t["ɵɵtext"](84,"Business Credit Cards"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](85,"li")(86,"a",25),t["ɵɵtext"](87,"Student Credit Cards"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](88,"li")(89,"a",26),t["ɵɵtext"](90),t["ɵɵpipe"](91,"date"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](92,"li")(93,"a",27),t["ɵɵtext"](94,"Store Cards"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](95,"li")(96,"a",28),t["ɵɵtext"](97,"Charge Cards"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](98,"li")(99,"a",29),t["ɵɵtext"](100,"No Foreign Fee"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](101,"li")(102,"a",30),t["ɵɵtext"](103,"Credit Card Deals"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](104,"li")(105,"a",31),t["ɵɵtext"](106,"No Annual Fee"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](107,"li")(108,"a",32),t["ɵɵtext"](109,"Secured Cards"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](110,"li")(111,"a",33),t["ɵɵtext"](112,"Unsecured Cards"),t["ɵɵelementEnd"]()()(),t["ɵɵelementStart"](113,"ul")(114,"li",1),t["ɵɵtext"](115,"Cards by Credit Score"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](116,"li")(117,"a",34),t["ɵɵtext"](118,"Excellent Credit"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](119,"li")(120,"a",35),t["ɵɵtext"](121,"Good Credit"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](122,"li")(123,"a",36),t["ɵɵtext"](124,"Fair Credit"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](125,"li")(126,"a",37),t["ɵɵtext"](127,"Bad Credit"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](128,"li")(129,"a",38),t["ɵɵtext"](130,"No Credit"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](131,"li",1),t["ɵɵtext"](132,"Free Credit Tools"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](133,"li")(134,"a",39),t["ɵɵtext"](135,"Free Credit Score"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](136,"li")(137,"a",40),t["ɵɵtext"](138,"Free Credit Report"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](139,"li")(140,"a",41),t["ɵɵtext"](141,"Free Credit Monitoring"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](142,"li")(143,"a",42),t["ɵɵtext"](144,"Free Credit Simulator"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](145,"li")(146,"a",43),t["ɵɵtext"](147,"WalletScore"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](148,"li")(149,"a",44),t["ɵɵtext"](150,"WalletLiteracy Score"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](151,"li")(152,"a",45),t["ɵɵtext"](153,"Credit Score Range"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](154,"li")(155,"a",46),t["ɵɵtext"](156,"Auto Insurance Score"),t["ɵɵelementEnd"]()()(),t["ɵɵelementStart"](157,"ul")(158,"li",1),t["ɵɵtext"](159,"Financial Directories"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](160,"li")(161,"a",47),t["ɵɵtext"](162,"WalletHub Awards"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](163,"li")(164,"a",48),t["ɵɵtext"](165,"Nearby Providers"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](166,"li")(167,"a",49),t["ɵɵtext"](168,"Popular Products"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](169,"li")(170,"a",50),t["ɵɵtext"](171,"Popular Searches"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](172,"li")(173,"a",51),t["ɵɵtext"](174,"Banks"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](175,"li")(176,"a",52),t["ɵɵtext"](177,"Cheap Car Insurance"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](178,"li")(179,"a",53),t["ɵɵtext"](180,"Credit Unions"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](181,"li")(182,"a",54),t["ɵɵtext"](183,"Mortgage Brokers"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](184,"li")(185,"a",55),t["ɵɵtext"](186,"Real Estate Agents"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](187,"li")(188,"a",56),t["ɵɵtext"](189,"Insurance Agents"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](190,"li")(191,"a",57),t["ɵɵtext"](192,"Insurance Companies"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](193,"li")(194,"a",58),t["ɵɵtext"](195,"Attorneys"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](196,"li")(197,"a",59),t["ɵɵtext"](198,"Credit Card Reviews"),t["ɵɵelementEnd"]()()()(),t["ɵɵtemplate"](199,x,5,0,"div",60),t["ɵɵtemplate"](200,v,5,2,"div",60),t["ɵɵelementStart"](201,"nav",61)(202,"div")(203,"a",2),t["ɵɵtext"](204,"About"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](205,"a",3),t["ɵɵtext"](206,"Media"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](207,"a",5),t["ɵɵtext"](208,"Contact Us"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](209,"a",4),t["ɵɵtext"](210,"Jobs"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](211,"div")(212,"a",62),t["ɵɵtext"](213,"Credit Cards"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](214,"a",6),t["ɵɵtext"](215,"Studies"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](216,"a",39),t["ɵɵtext"](217,"Credit Score"),t["ɵɵelementEnd"]()()(),t["ɵɵelementStart"](218,"nav",63)(219,"div")(220,"a",11),t["ɵɵtext"](221,"Privacy Policy"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](222,"a",12),t["ɵɵtext"](223,"Terms"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](224,"a",10),t["ɵɵtext"](225,"Guidelines"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](226,"div")(227,"a",14),t["ɵɵtext"](228,"Do Not Sell My Personal Information"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](229,"div")(230,"a",9),t["ɵɵlistener"]("onTap",(function(e){return n.openFeedbackPage(e)})),t["ɵɵtext"](231,"Feedback"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](232,"a",13),t["ɵɵtext"](233,"Accessibility"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](234,"a",7),t["ɵɵtext"](235,"Businesses"),t["ɵɵelementEnd"]()()(),t["ɵɵtemplate"](236,b,5,0,"div",64),t["ɵɵtemplate"](237,w,5,1,"div",65),t["ɵɵelementStart"](238,"aside",66)(239,"div",67),t["ɵɵtext"](240),t["ɵɵelementStart"](241,"span"),t["ɵɵtext"](242,"All Rights Reserved."),t["ɵɵelementEnd"]()()(),t["ɵɵelementStart"](243,"div",68)(244,"span",69),t["ɵɵtext"](245,"Get unlimited free credit scores & reports "),t["ɵɵelement"](246,"span",70),t["ɵɵelementEnd"](),t["ɵɵelementStart"](247,"span",71),t["ɵɵtext"](248,"Sign up for free credit monitoring "),t["ɵɵelement"](249,"span",70),t["ɵɵelementEnd"](),t["ɵɵelementStart"](250,"span",72),t["ɵɵtext"](251,"get your free credit score & report "),t["ɵɵelement"](252,"span",70),t["ɵɵelementEnd"](),t["ɵɵelementStart"](253,"div",73)(254,"h3"),t["ɵɵtext"](255,"Join WalletHub"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](256,"p"),t["ɵɵtext"](257,"+ 100% Free"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](258,"p"),t["ɵɵtext"](259,"+ Unlimited Credit Reports"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](260,"p"),t["ɵɵtext"](261,"+ Unlimited Credit Scores"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](262,"p"),t["ɵɵtext"](263,"+ Credit Monitoring Protection"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](264,"p"),t["ɵɵtext"](265,"+ Credit Improvement Tips"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](266,"p"),t["ɵɵtext"](267,"+ Automatically Finds Savings"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](268,"div",74)(269,"button",75),t["ɵɵtext"](270,"JOIN FOR FREE"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](271,"p"),t["ɵɵtext"](272,"No credit card needed"),t["ɵɵelementEnd"]()()()(),t["ɵɵelement"](273,"modal-dialog",null,76),t["ɵɵelementStart"](275,"div",77,78),t["ɵɵlistener"]("onTap",(function(){return n.ScrollToTop()})),t["ɵɵelementEnd"]()),2&e&&(t["ɵɵproperty"]("zing-url-container",!0),t["ɵɵadvance"](28),t["ɵɵproperty"]("href",n.feedbackUrl,t["ɵɵsanitizeUrl"])("zing-url",!1),t["ɵɵadvance"](62),t["ɵɵtextInterpolate1"]("Best Credit Cards ",t["ɵɵpipeBind2"](91,13,n.curDate,"yyyy"),""),t["ɵɵadvance"](109),t["ɵɵproperty"]("ngIf",n.isWeb),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.isWeb),t["ɵɵadvance"](1),t["ɵɵproperty"]("zing-url-container",!0),t["ɵɵadvance"](17),t["ɵɵproperty"]("zing-url-container",!0),t["ɵɵadvance"](12),t["ɵɵproperty"]("href",n.feedbackUrl,t["ɵɵsanitizeUrl"])("zing-url",!1),t["ɵɵadvance"](6),t["ɵɵproperty"]("ngIf",n.isWeb),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.isWeb),t["ɵɵadvance"](3),t["ɵɵtextInterpolate1"](" 2008 - ",n.copyrightyear," © Evolution Finance, Inc. "))},dependencies:[n.TouchGestures,t.NgIf,n.ngModalDialog,t.DatePipe],encapsulation:2,changeDetection:0});class q{}q.ɵfac=function(e){return new(e||q)},q.ɵmod=t["ɵɵdefineNgModule"]({type:q}),q.ɵinj=t["ɵɵdefineInjector"]({imports:[n.DirectivesModule,t.CommonModule,n.ngModalsModule,n.ErrorsModule,n.FormSubmitModule]});class E{constructor(){this.queryParams=new t.BehaviorSubject({}),this.fragment=new t.BehaviorSubject("");let e=T.subscribe((e=>{e&&this.queryParams.next(e.params||{})}));this.queryParams.subscribe({complete:()=>{e.unsubscribe()}});let n=e=>{this.fragment.next(location.hash)};window.addEventListener("hashchange",n),this.fragment.subscribe({complete:()=>{window.removeEventListener("hashchange",n)}})}}class C{constructor(){}navigate(e,t={skipLocationChange:!1}){return new Promise(((r,s)=>{const i={updateBrowserURL:!0};try{let s=k.lastResolved(),a="";s&&s[0]&&s[0].url&&(a=s[0].url),a=e&&e.length?e.join("/"):a,t.queryParams&&(a+="?"+n.objectSerialize(t.queryParams)),t.fragment&&(a+="#"+t.fragment),k.navigate(a,i),setTimeout((()=>{r(!0)}),200)}catch(e){s(e)}}))}}let S=[];const T=new t.BehaviorSubject(null);let k;class I{constructor(){if(!k){let e=document.querySelector("head base").getAttribute("href")||"/";k=new c.default(e);const t=e=>{const t=e?[e]:k.lastResolved()||[];n.arrayForEach(t,(e=>{T.next({url:e.url,params:e.params,query:e.queryString})}))};let r=location.pathname.substring(location.pathname.indexOf(e)+e.length-1);S.forEach((e=>{if(e.path){let n=e.path;n==r&&(r=null),"prefix"==e.pathMatch&&(n+="/*"),k.on(n,(()=>{}),{after:t})}})),r&&k.on(location.pathname.substring(location.pathname.indexOf(e)+e.length-1),(()=>{}),{after:t}),k.resolve(),t()}}static forRoot(e){S=S.concat(e)}get navigo(){return k}}I.ɵfac=function(e){return new(e||I)},I.ɵmod=t["ɵɵdefineNgModule"]({type:I}),I.ɵinj=t["ɵɵdefineInjector"]({providers:[E,C],imports:[t.CommonModule]});const A="function"==typeof Map?new Map:function(){const e=[],t=[];return{has:t=>e.indexOf(t)>-1,get:n=>t[e.indexOf(n)],set(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete(n){const r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}();let z=e=>new Event(e,{bubbles:!0});try{new Event("test")}catch(e){z=e=>{const t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function M(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||A.has(e))return;let t=null,n=null,r=null;function s(t){{const t=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=t}e.style.overflowY=t}function i(){if(0===e.scrollHeight)return;const r=function(e){const t=[];for(;e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),s=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach((e=>{e.node.scrollTop=e.scrollTop})),s&&(document.documentElement.scrollTop=s)}function a(){i();const t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null);var a="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(a<t?"hidden"===n.overflowY&&(s("scroll"),i(),a="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),i(),a="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==a){r=a;const t=z("autosize:resized");try{e.dispatchEvent(t)}catch(e){}}}const o=()=>{e.clientWidth!==n&&a()},l=(t=>{window.removeEventListener("resize",o,!1),e.removeEventListener("input",a,!1),e.removeEventListener("keyup",a,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",a,!1),Object.keys(t).forEach((n=>{e.style[n]=t[n]})),A.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",a,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",a,!1),e.addEventListener("autosize:update",a,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",A.set(e,{destroy:l,update:a}),function(){const n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),a()}()}function L(e){const t=A.get(e);t&&t.destroy()}function N(e){const t=A.get(e);t&&t.update()}let V=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(V=e=>e,V.destroy=e=>e,V.update=e=>e):(V=(e,t)=>(e&&Array.prototype.forEach.call(e.length?e:[e],(e=>M(e))),e),V.destroy=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],L),e),V.update=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],N),e));var F=V,O=Object.freeze({__proto__:null,default:F});class j{constructor(e,n){this._el=e,this._zone=n,this._resize=!1,this.onResized=new t.EventEmitter}set updateAutoSize(e){n.isNode()||this._zone.runOutsideAngular((()=>{1==e&&n.reqAnimationFrame((()=>{this._autosize&&this._autosize.update(this._el.nativeElement)}))}))}get updateAutoSize(){return!1}fireResize(){this.onResized.emit()}_windowResize(){this._resize&&this._zone.runOutsideAngular((()=>{n.reqAnimationFrame((()=>{this._autosize&&this._autosize.update(this._el.nativeElement)}))}))}ngOnInit(){this.fireResize=this.fireResize.bind(this),this._windowResize=this._windowResize.bind(this),n.isNode()||window.addEventListener("resize",this._windowResize)}ngAfterViewInit(){!n.isNode()&&this._el.nativeElement&&this._zone.runOutsideAngular((()=>{let e=F||O;e(this._el.nativeElement),this._el.nativeElement.addEventListener("autosize:resized",this.fireResize),this._autosize=e}))}ngOnDestroy(){n.isNode()||(this._autosize&&(this._autosize.destroy(this._el.nativeElement),this._el.nativeElement.removeEventListener("autosize:resized",this.fireResize),this._autosize=null),window.removeEventListener("resize",this._windowResize))}}j.ɵfac=function(e){return new(e||j)(t["ɵɵdirectiveInject"](t.ElementRef),t["ɵɵdirectiveInject"](t.NgZone))},j.ɵdir=t["ɵɵdefineDirective"]({type:j,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:["sizeupdate","updateAutoSize"],_resize:["watchresize","_resize"]},outputs:{onResized:"onResized"}});class R{}R.ɵfac=function(e){return new(e||R)},R.ɵmod=t["ɵɵdefineNgModule"]({type:R}),R.ɵinj=t["ɵɵdefineInjector"]({imports:[t.CommonModule]});const H=["textarea"];function P(e,n){1&e&&(t["ɵɵelementStart"](0,"div",4),t["ɵɵelement"](1,"i"),t["ɵɵelementEnd"]())}let $=!1,B=n.isWeb()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class D{constructor(e,r,s){this._el=e,this._cd=r,this._service=s,this._destroyed=!0,this.ckeditorLoaded=!0,this.ckelementid=n.uniqid(),this._value=new t.BehaviorSubject(""),this.valueChange=new t.EventEmitter,this._active=new t.BehaviorSubject(!1),this._autofocus=!1,this._enabled=!1,this.options={toolbar:["heading","|","bold","italic","underline","link","|","insertTable","bulletedList","numberedList","|","undo","redo"],heading:{options:[{model:"paragraph",title:"Normal",class:""},{model:"heading2",view:"h2",title:"Heading",class:"ckeditor-heading bold-font"}]},table:{toolbar:["tableColumn","tableRow","mergeTableCells"]}},this.editorInitiated=new t.EventEmitter,this.editor_init=$,this.no_editor=!1}set value(e){this._value.next(e)}get value(){return this._value.getValue()}set active(e){this._active.next(e)}get active(){return this._active.getValue()}set readonly(e){this._readonly=e,this._editor&&(this._editor.isReadOnly=e)}get readonly(){return this._readonly}set autofocus(e){this._autofocus=e,e&&this._container&&this._container.nativeElement.focus()}get autofocus(){return this._autofocus}StartCkeditor(){l.import("ckeditor5/build/ckeditor.js").then((e=>{if(!e||!e.create)throw Error("Cannot instance the ckeditor");e.create(this._container.nativeElement,this.options).then((e=>{let t;this._enabled=!0,this._editor=e,this.no_editor=!1,this._cd.detectChanges(),e.model.document.on("change:data",(n=>{t=e.getData(),this.valueChange.emit(t)})),this._editorsubs=this._value.subscribe((n=>{t!==n&&e.setData(n)})),this.autofocus&&(e.editing.view.focus(),B||setTimeout((()=>{let e=this._el.nativeElement;this._service.scrollTo({target:e,inview:!0})}),100)),this.editorInitiated.emit(!0),$=!0})).catch((e=>{this.no_editor=!0,this.EndCkeditor(),this.editorInitiated.emit(!1),e&&n.RavenJs().then((t=>{t.captureException(e)}))}))})).catch((e=>{this.no_editor=!0,this.EndCkeditor(),this.editorInitiated.emit(!1)}))}EndCkeditor(){this._enabled=!1,this._editor&&(this._editor.destroy(),this._editor=null,this._editorsubs.unsubscribe())}TextAreaEdit(e){this.value=e.target.value||"",this.valueChange.emit(this.value)}ngOnInit(){let e=this._active.subscribe({next:e=>{e&&!this._enabled?setTimeout((()=>{n.reqAnimationFrame((()=>{this.StartCkeditor()}))})):this._enabled&&this.EndCkeditor()},error:()=>{},complete:()=>{e&&e.unsubscribe()}});this.editorInitiated.subscribe((()=>{this.editor_init=!0}))}ngOnDestroy(){this._active.complete(),this._value.complete(),this.EndCkeditor()}}D.ɵfac=function(e){return new(e||D)(t["ɵɵdirectiveInject"](t.ElementRef),t["ɵɵdirectiveInject"](t.ChangeDetectorRef),t["ɵɵdirectiveInject"](n.ScrollerService))},D.ɵcmp=t["ɵɵdefineComponent"]({type:D,selectors:[["ck-editor"]],viewQuery:function(e,n){if(1&e&&t["ɵɵviewQuery"](H,7),2&e){let e;t["ɵɵqueryRefresh"](e=t["ɵɵloadQuery"]())&&(n._container=e.first)}},hostAttrs:[1,"progress-indicator-container"],inputs:{value:"value",active:"active",readonly:"readonly",autofocus:["cursor-focus","autofocus"],options:"options"},outputs:{valueChange:"valueChange",editorInitiated:"editorInitiated"},decls:4,vars:4,consts:[[1,"ck-tools"],[1,"ck-textarea",3,"value","input"],["textarea",""],["class","progress-indicator visible",4,"ngIf"],[1,"progress-indicator","visible"]],template:function(e,n){1&e&&(t["ɵɵelement"](0,"div",0),t["ɵɵelementStart"](1,"textarea",1,2),t["ɵɵlistener"]("input",(function(e){return n.TextAreaEdit(e)})),t["ɵɵelementEnd"](),t["ɵɵtemplate"](3,P,2,0,"div",3)),2&e&&(t["ɵɵadvance"](1),t["ɵɵclassProp"]("no-ck-editor",n.no_editor),t["ɵɵproperty"]("value",n.value),t["ɵɵadvance"](2),t["ɵɵproperty"]("ngIf",!n.editor_init))},dependencies:[t.NgIf],styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#136AE8;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],encapsulation:2});class Q{}Q.ɵfac=function(e){return new(e||Q)},Q.ɵmod=t["ɵɵdefineNgModule"]({type:Q}),Q.ɵinj=t["ɵɵdefineInjector"]({imports:[t.CommonModule,n.DirectivesModule]});class U{constructor(e,n){this._el=e,this._renderer=n,this.onImageFailed=new t.EventEmitter}set src(e){this._src=e,!this._src&&this.fallback&&(this._src=this.fallback),this._src&&this._renderer.setAttribute(this._el.nativeElement,"src",this._src)}get src(){return this._src}onError(e){if(n.isNode()||!e)return;let t=this._el.nativeElement;this.fallback&&t.src!=this.fallback?(t.src=this.fallback,t.style.display=""):t.style.display="none",this.onImageFailed.emit(!0)}ngOnInit(){if(n.isNode())return;this.onError=this.onError.bind(this),this._el.nativeElement.addEventListener("error",this.onError)}ngOnDestroy(){if(n.isNode())return;this._el.nativeElement.removeEventListener("error",this.onError)}}U.ɵfac=function(e){return new(e||U)(t["ɵɵdirectiveInject"](t.ElementRef),t["ɵɵdirectiveInject"](t.Renderer2))},U.ɵdir=t["ɵɵdefineDirective"]({type:U,selectors:[["","on-img-error",""]],inputs:{fallback:["on-img-error","fallback"],src:"src"},outputs:{onImageFailed:"image-failed"}});class G{}G.ɵfac=function(e){return new(e||G)},G.ɵmod=t["ɵɵdefineNgModule"]({type:G}),G.ɵinj=t["ɵɵdefineInjector"]({imports:[t.CommonModule]});class W{constructor(){this.itemprop="",this.classes=[]}}W.ɵfac=function(e){return new(e||W)},W.ɵcmp=t["ɵɵdefineComponent"]({type:W,selectors:[["","img-placeholder",""]],inputs:{src:"src",itemprop:"itemprop",alt:"alt",classes:"classes"},attrs:["img-placeholder",""],decls:3,vars:5,consts:[[3,"defer-src","ui-hydrate"],[3,"ngClass","alt"],["deferImg",""]],template:function(e,n){1&e&&(t["ɵɵelementStart"](0,"div",0),t["ɵɵelement"](1,"img",1,2),t["ɵɵelementEnd"]()),2&e&&(t["ɵɵproperty"]("defer-src",n.src)("ui-hydrate",!0),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngClass",n.classes)("alt",n.alt),t["ɵɵattribute"]("itemprop",n.itemprop))},dependencies:[t.NgClass,n.ImageLoader],encapsulation:2});class Y{}function J(e,n){1&e&&(t["ɵɵelementStart"](0,"h2",11),t["ɵɵtext"](1,"Thank you"),t["ɵɵelementEnd"]()),2&e&&t["ɵɵproperty"]("focus-when",!0)}function X(e,n){1&e&&(t["ɵɵelementStart"](0,"h2",11),t["ɵɵtext"](1,"Please provide your email in order to receive answers"),t["ɵɵelementEnd"]()),2&e&&t["ɵɵproperty"]("focus-when",!0)}function Z(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",12)(1,"span",13),t["ɵɵtext"](2),t["ɵɵelementEnd"](),t["ɵɵelementStart"](3,"textarea",14),t["ɵɵlistener"]("input",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.SetInput(n))})),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵclassProp"]("ques-ov-cred",e.input_chars_left<0),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](e.input_chars_left),t["ɵɵadvance"](1),t["ɵɵproperty"]("value",e.input_value)("readonly",e.submiting)}}function K(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",12)(1,"textarea",15),t["ɵɵlistener"]("input",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.input_value_extra=n.target.value)})),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵproperty"]("value",e.input_value_extra)("readonly",e.submiting)}}function ee(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",12)(1,"ng-dropdown",16),t["ɵɵlistener"]("selected",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.SetCategory(n))})),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵproperty"]("invalid",e.categoryerror)("items",e.categories)("second",!0)("value",e.category)}}function te(e,n){if(1&e&&t["ɵɵelement"](0,"div",17),2&e){const e=t["ɵɵnextContext"]();t["ɵɵproperty"]("innerHTML",e.ajax_message,t["ɵɵsanitizeHtml"])("zing-url-container",!0)}}function ne(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"button",18),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.Submit())})),t["ɵɵtext"](1," Next "),t["ɵɵelement"](2,"i",19),t["ɵɵelementEnd"]()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵclassProp"]("loadactive",e.submiting),t["ɵɵproperty"]("disabled",e.submiting)}}function re(e,n){1&e&&(t["ɵɵelementStart"](0,"div",20),t["ɵɵtext"](1,"Your question has been submitted to our moderators for review. We will send you an email once your question has been approved."),t["ɵɵelementEnd"]())}function se(e,n){1&e&&t["ɵɵelement"](0,"br")}function ie(e,n){if(1&e&&t["ɵɵelement"](0,"div",17),2&e){const e=t["ɵɵnextContext"](2);t["ɵɵproperty"]("innerHTML",e.ajax_message,t["ɵɵsanitizeHtml"])("zing-url-container",!0)}}function ae(e,n){1&e&&t["ɵɵelement"](0,"br")}function oe(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",21)(1,"button",22),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.GuestSubmit())})),t["ɵɵelement"](2,"span",23),t["ɵɵelementStart"](3,"span",24),t["ɵɵtext"](4,"Login to Wallethub"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](5,"div",25),t["ɵɵtext"](6,"or"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](7,"input",26),t["ɵɵlistener"]("input",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return r.user_email=n.target.value,t["ɵɵresetView"](r.show_ajax_error=!1)})),t["ɵɵelementEnd"](),t["ɵɵtemplate"](8,se,1,0,"br",27),t["ɵɵtemplate"](9,ie,1,2,"div",7),t["ɵɵtemplate"](10,ae,1,0,"br",27),t["ɵɵelementStart"](11,"button",28),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.GuestSubmit())})),t["ɵɵtext"](12," Submit "),t["ɵɵelement"](13,"span",29),t["ɵɵelementEnd"](),t["ɵɵelementStart"](14,"button",30),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.Back())})),t["ɵɵtext"](15,"Back"),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](7),t["ɵɵproperty"]("value",e.user_email),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!e.show_ajax_error),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.show_ajax_error),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!e.show_ajax_error),t["ɵɵadvance"](1),t["ɵɵclassProp"]("loadactive",e.submiting),t["ɵɵproperty"]("disabled",e.submiting)}}Y.ɵfac=function(e){return new(e||Y)},Y.ɵmod=t["ɵɵdefineNgModule"]({type:Y}),Y.ɵinj=t["ɵɵdefineInjector"]({imports:[t.CommonModule,n.ImageLoaderModule]});class le{constructor(e){this._location=e,this.data={},this.input_value="",this.input_value_extra="",this.input_chars_left=0,this._max_input=140,this.submiting=!1,this.submited=!1,this._limit=140,this._is_lodgged=!1,this.needs_login=!1,this.user_email="",this._referer="",this._email_reg=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,this.has_categories=!1,this.categoryerror=!1,this.toastinterval=3500,this.live_status="",this.question_count_status="",this.is_android=!1,l.import("css:/components/question-overlay.css").then((()=>{}),(()=>{}))}_CountWords(e){if(!e)return"";var t=e.replace(/(^\s*|\s*$)/gi,"");return(t=(t=t.replace(/[ ]{2,}/gi," ")).replace(/\n /,"")).split(" ").filter((function(e){return""!=e})).length}_CountChars(){let e=(this.input_value||"").trim().length;this.input_chars_left=this._max_input-e,this.question_count_status=`${e} character${1!=e?"s":""} entered`}_SendQues(){this.show_ajax_error=!1,this.submiting=!0;let e=n.cleanInput(this.input_value);this.live_status="Posting question.",l.import("Encryption").then((t=>{let r={url:n.ajaxUrl(),data:Object.assign({action:"Answers.PostQuestion",question:e,url:this._referer},this.data.addparams||{}),encryptprops:["email"],before:()=>{this.submiting=!0},after:()=>{this.submiting=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}};this.has_categories&&(r.data.category=this._catid),this.user_email&&(r.data.email=this.user_email),this._is_lodgged||this.user_email||(r.data.light=!0),this.input_value_extra&&(r.data.details=this.input_value_extra),t.send(r).then((e=>{if(this.live_status="",!e||e.error){if(e&&"message"in e){const t=e.message.match(/^Bad word `([^`]+)` detected.$/);t&&t.length&&(e.message=`Profanity is not allowed, including words such as "${t[1]}". Please adjust.`),this.ajax_message=e.message}else this.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>';this.show_ajax_error=!0}else{if("redirect"in e)return this.submiting=!0,n.isCordova()&&n.Events.emit("$native:api-no-session","question-submit-login"),void(top.location.href=e.redirect);this.submited=!0}}),(e=>{this.live_status="",this.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',this.show_ajax_error=!0,n.RavenRequestFail(e,"Failed to submit a question from ng2 QnA component")}))}),(e=>{this.live_status="",this.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',this.show_ajax_error=!0,n.RavenJs().then((t=>{t.captureException(e)}),(()=>{}))}))}SetCategory(e){this.category=e.value,this._catid=this._catindex[e.index],this.categoryerror=!1}Submit(){if(this.show_error||this.submiting)return;this.show_ajax_error=!1,this._CountWords(this.input_value)<3?(this.show_error=!0,this.error_message="Question must have at least 3 words."):this.input_chars_left<0?(this.error_message=`Question cannot have more then ${this._max_input} chars.`,this.show_error=!0):this.has_categories&&!this.category?(this.show_error=!0,this.error_message="Please select a category."):this._is_lodgged?this._SendQues():this.needs_login=!0}OnErrorToastHidden(){this.show_error&&(this.show_error=!1)}GuestSubmit(){this.user_email&&!this._email_reg.test(this.user_email)?(this.show_ajax_error=!0,this.ajax_message="Please enter a correct Email Address."):this._SendQues()}SetInput(e){this.show_error=!1,this.show_ajax_error=!1,this.input_value=e.target.value,this._CountChars()}Back(){this.needs_login=!1,this.show_ajax_error=!1,this.ajax_message=""}ngOnInit(){this.input_value=this.data.input||"",this.data.referer?this._referer=this.data.referer:(this._referer=n.baseUrl()+this._location.path(),this._referer.lastIndexOf("/")!==this._referer.length-1&&(this._referer+="/")),this.data.categories&&this.data.categories.length>0&&(this.has_categories=!0,this.categories=[],this._catindex=[],this.data.categories.forEach((e=>{this.categories.push(e.name),this._catindex.push(e.id)})),1==this.categories.length&&(this._catid=this._catindex[0],this.category=this.categories[0])),this._CountChars(),n.isNode()||(n.Cookies.get("mw_signon")&&(this._is_lodgged=!0),this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}}le.ɵfac=function(e){return new(e||le)(t["ɵɵdirectiveInject"](t.Location))},le.ɵcmp=t["ɵɵdefineComponent"]({type:le,selectors:[["question-overlay"]],decls:16,vars:18,consts:[["tabindex","0","ng-focus","",1,"ques-ov","regular-font",3,"ng-hidden","focus-when"],["class","ques-ov regular-font ng-enter-element","tabindex","0","ng-focus","",3,"focus-when",4,"ngIf"],[3,"ng-aria-live"],["class","ques-ov-txt-box ng-enter-element",4,"ngIf"],["hidden","true","id","ques-ov-count-status"],[3,"ng-hidden"],[3,"message","show","close-on-change","timer","onhidden"],["class","ques-ov-error-notice ng-enter-element slide","role","alert","tabindex","-1","zing-touch","",3,"innerHTML","zing-url-container",4,"ngIf"],["class","btn fixed-w-i with-loader no-disabled ng-enter-element","zing-touch","","aria-label","Next",3,"disabled","loadactive","onClick",4,"ngIf"],["class","ng-enter-element ques-ov-end-msg",4,"ngIf"],["class","ng-enter-element ques-ov-login",4,"ngIf"],["tabindex","0","ng-focus","",1,"ques-ov","regular-font","ng-enter-element",3,"focus-when"],[1,"ques-ov-txt-box","ng-enter-element"],["aria-hidden","true","tabindex","-1",1,"ques-ov-count"],["placeholder","Ask a question (140 character limit)","ng-autosize","","aria-describedby","ques-ov-count-status",1,"ques-ov-txt","textarea",3,"value","readonly","input"],["placeholder","Additional details (optional)","ng-autosize","",1,"ques-ov-txt","ques-ov-txt-liner","textarea",3,"value","readonly","input"],["placeholder","Select Category...",1,"ques-ov-drp",3,"invalid","items","second","value","selected"],["role","alert","tabindex","-1","zing-touch","",1,"ques-ov-error-notice","ng-enter-element","slide",3,"innerHTML","zing-url-container"],["zing-touch","","aria-label","Next",1,"btn","fixed-w-i","with-loader","no-disabled","ng-enter-element",3,"disabled","onClick"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"ng-enter-element","ques-ov-end-msg"],[1,"ng-enter-element","ques-ov-login"],["aria-label","Login","zing-touch","",1,"btn","aqua","full","ques-ov-lg-bt","semi-bold-font",3,"onTap"],[1,"bf-icon-wlogo"],[1,"ques-ov-lg-txt"],[1,"ques-ov-or","center"],["aria-label","Email","type","email","placeholder","Email Address",1,"textfield","full",3,"value","input"],[4,"ngIf"],["zing-touch","",1,"btn","fixed-w-i","with-loader","no-disabled",3,"disabled","onTap"],[1,"btn-loader"],["zing-touch","",1,"btn","white-blue","ques-ov-bk-bt",3,"onClick"]],template:function(e,n){1&e&&(t["ɵɵelementStart"](0,"h2",0),t["ɵɵtext"](1,"Ask a Question"),t["ɵɵelementEnd"](),t["ɵɵtemplate"](2,J,2,1,"h2",1),t["ɵɵtemplate"](3,X,2,1,"h2",1),t["ɵɵelement"](4,"div",2),t["ɵɵtemplate"](5,Z,4,5,"div",3),t["ɵɵelementStart"](6,"div",4),t["ɵɵtext"](7),t["ɵɵelementEnd"](),t["ɵɵtemplate"](8,K,2,2,"div",3),t["ɵɵtemplate"](9,ee,2,4,"div",3),t["ɵɵelementStart"](10,"div",5)(11,"error-toast",6),t["ɵɵlistener"]("onhidden",(function(){return n.OnErrorToastHidden()})),t["ɵɵelementEnd"]()(),t["ɵɵtemplate"](12,te,1,2,"div",7),t["ɵɵtemplate"](13,ne,3,3,"button",8),t["ɵɵtemplate"](14,re,2,0,"div",9),t["ɵɵtemplate"](15,oe,16,7,"div",10)),2&e&&(t["ɵɵproperty"]("ng-hidden",n.submited||n.needs_login)("focus-when",!(n.submited||n.needs_login)),t["ɵɵadvance"](2),t["ɵɵproperty"]("ngIf",n.submited),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.needs_login&&!n.submited),t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-aria-live",n.live_status),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.submited&&!n.needs_login),t["ɵɵadvance"](2),t["ɵɵtextInterpolate"](n.question_count_status),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.submited&&!n.needs_login),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.submited&&!n.needs_login&&n.has_categories&&n.categories.length>1),t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-hidden",n.submited||n.needs_login),t["ɵɵadvance"](1),t["ɵɵproperty"]("message",n.error_message)("show",n.show_error)("close-on-change",!0)("timer",n.toastinterval),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.needs_login&&n.show_ajax_error),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!n.submited&&!n.needs_login),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.submited),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.needs_login&&!n.submited))},dependencies:[t.NgIf,n.ngHidden,n.TouchGestures,n.ngAriaLive,j,n.ErrorToastComponent,i.ngDropdown,n.ngFocus],encapsulation:2});class ce{}ce.ɵfac=function(e){return new(e||ce)},ce.ɵmod=t["ɵɵdefineNgModule"]({type:ce}),ce.ɵinj=t["ɵɵdefineInjector"]({imports:[t.CommonModule,n.DirectivesModule,R,n.ErrorsModule,i.ngDropDownModule,n.ngFocusModule]});const de=["content"];function ue(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"span",4),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.Collapse())})),t["ɵɵtext"](1,"show less"),t["ɵɵelementEnd"]()}}function he(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",5),t["ɵɵlistener"]("onExpand",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.Expanded(n))})),t["ɵɵelementEnd"]()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵproperty"]("ng-truncate",e.htmlcontent)("breakpoint",e.breakpoint)("breakwords",e.breakwords)}}let pe;function me(){return n.isNode()?pe?Promise.resolve(pe):l.import("jsdom").then((e=>{const{JSDOM:t}=e;let n=new t("<!DOCTYPE html><head><title></title></head><body></body></html>");return pe=n.window.document,pe})):Promise.resolve(document)}class ge{constructor(e,n,r){this._el=e,this._render=n,this._scroller=r,this._cleanups=[],this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},this.staticbreak=null,this._content="",this.sanitize=!0,this.sanitizeCFG={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target"]},this.use_shave_break=!1,this.expand_bt="show more",this.collapse_bt="show less",this.hellip="...",this.auto_truncate=!0,this._expanded=!1,this._initiated=!1,this.istruncated=new t.BehaviorSubject(null),this._expandContent=new t.Subject,this._expandct=!1,this.auto_focus=!1,this.onExpand=new t.EventEmitter,this.hasExpandButton=new t.EventEmitter,this.onContent=new t.EventEmitter}set content(e){if(this._content=e||"",this._initiated){const e=()=>{this._expandct?this._ShowFullCT():this._Truncate()};n.isNode()?e():setTimeout(e)}}set expandContent(e){this._expandContent.next(e),this._expandct=e}get expLabel(){return this.expand_bt&&""!==this.expand_bt?this.expand_bt:"show more"}get copLabel(){return this.collapse_bt&&""!==this.collapse_bt?this.collapse_bt:"show less"}ngOnInit(){this.hasExpandButton.emit(!1),!this._expandct&&this._content||n.isNode()?this._Truncate():this._ShowFullCT(),this._initiated=!0}_isElemVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}_MoveFocus(){if(!n.isNode()){const e=this._el.nativeElement,n=this._el.nativeElement.querySelector(".js-shave-char-less");let r=0;if(this._scroller.onScroll.pipe(t.take(1)).subscribe((e=>{r=e})),this.auto_focus)for(let t=0,n=e.childNodes.length;t<n;t++){const n=e.childNodes[t];if(n.focus){n.setAttribute("tabindex","0"),n.focus(),setTimeout((()=>{n.focus(),this._scroller.scrollTo({position:r,timing:0})}));break}}else n&&this._isElemVisible(n)&&(n.focus(),setTimeout((()=>{n.focus(),this._scroller.scrollTo({position:r,timing:0})})))}}_WordCount(e){let t=n.trim((1==e.nodeType?e.textContent:e.wholeText)+"");return""==t?0:t.split(/\s+/g).length}_CutHTML(e,t){let n=e.parentNode,r=null;if(!n)return;let s=[];for(let t=0,i=n.childNodes.length;t<i;t++){let i=n.childNodes[t];i==e?r=t:null!==r&&t>r&&(!i.tagName||"td"!==i.tagName.toLowerCase())&&s.push(i)}s.forEach((e=>{e.parentNode.removeChild(e)})),n!=t&&n&&this._CutHTML(n,t)}_AddExpandBT(e){let t=e.parentNode;t.removeChild(e),t.innerHTML=n.trim(t.innerHTML);let r=t.tagName.toLowerCase();if(n.isAny(r,["tr","tbody","thead","tfoot"])){if("table"!=r){let e=t.parentNode;for(r=e.tagName.toLowerCase();"table"!=r&&r;)e=e.parentNode,r=e&&e.tagName?e.tagName.toLowerCase():null;"table"==r&&(t=e)}t.insertAdjacentHTML("afterend",` <span aria-label="${this.expLabel}" class="js-shave-char cursor-pointer" role="button" tabindex="0">${this.expand_bt}</span>`),t.insertAdjacentText?t.insertAdjacentText("afterend",this.hellip):t.insertAdjacentHTML("afterend",this.hellip)}else if(t.insertAdjacentText?t.insertAdjacentText("beforeend",this.hellip):t.insertAdjacentHTML("beforeend",this.hellip),"a"==r)t.insertAdjacentHTML("afterend",` <span aria-label="${this.expLabel}" class="js-shave-char cursor-pointer" role="button" tabindex="0">${this.expand_bt}</span>`);else{for(t.parentNode&&"a"==t.parentNode.tagName.toLowerCase()&&(r="a",t=t.parentNode);"a"==r&&t.parentNode;)t=t.parentNode,r=t.tagName.toLowerCase();t.insertAdjacentHTML("beforeend",` <span aria-label="${this.expLabel}" class="js-shave-char cursor-pointer" role="button" tabindex="0">${this.expand_bt}</span>`)}n.reqAnimationFrame((()=>{this.hasExpandButton.emit(!0)})),this.istruncated.next(!0),n.isNode()&&this.onContent.emit("collapsed")}_Shave(e,t){if(this._WordCount(e)<=t)return;let n=void 0===e.textContent?"innerText":"textContent",r=e[n].split(" ");if(r.length<2)return;let s,i=r.length-1,a=0,o=!1;for(;a<i;){s=a+i+1>>1;let l=r.slice(0,s).join(" ");o=l.lastIndexOf(".")>-1,e[n]=l,e.insertAdjacentHTML("beforeend",`<span class="js-shave-char cursor-pointer" role="button" tabindex="0" aria-label="${this.expLabel}">${o?"":"."}..${this.expand_bt}</span>`),this._WordCount(e)>t?i=s-1:a=s}}_TruncateWithLimit(e,t){return me().then((r=>{let s=r.createElement("div");s.innerHTML=e;let i=0,a=!1,o=e=>{for(let s=0,l=e.childNodes.length;s<l;s++){let l=e.childNodes[s];if(1==l.nodeType){if(l.classList.contains("cc-list-buttons")||n.isAny(l.tagName.toLowerCase(),["blockquote","br"]))continue;if(o(l))return!0}else if(3==l.nodeType){let e=l[void 0===l.textContent?"innerText":"textContent"],s=n.trim(e).split(/\s+/g);if(i+=s.length,0==e.indexOf(" ")&&(s[0]=" "+s[0]),e.lastIndexOf(" ")==e.length-1&&(s[s.length-1]+=" "),i>t){const e=i-t;if(l.nodeValue=s.slice(0,s.length-e).join(" "),l.parentNode){const t=r.createElement("div"),n=r.createElement("span");n.setAttribute("data-chop","auto"),t.appendChild(n);const i=r.createElement("div");i.innerHTML=s.slice(s.length-e).join(" "),l!==l.parentNode.lastChild?l.parentNode.insertBefore(n,l.nextElementSibling):(l.parentNode.appendChild(n),l.parentNode.insertAdjacentHTML("beforeend",i.innerHTML))}return a=!0,!0}}}};if(o(s),a){let e=s.querySelector('span[data-chop="auto"]');e&&s.lastChild!==e&&(this._CutHTML(e,s),e.parentNode==s&&(s.innerHTML=s.innerHTML.split(e.outerHTML)[0]+e.outerHTML,e=s.querySelector('span[data-chop="auto"]')),this._AddExpandBT(e))}return s.innerHTML}))}_Truncate(){return me().then((e=>t.__awaiter(this,void 0,void 0,(function*(){this.istruncated.next(!1),this.hasExpandButton.emit(!1),n.reqAnimationFrame((()=>{const e=this.istruncated.getValue();this.onContent.emit(e?"collapsed":"expanded")}));let t=this._content;if(this.staticbreak&&!this._expandct){t=t.replace(/(?:\\r\\n|\\r|\\n)/g,""),t=n.trim(t),t=t.replace("[chop]",'<span data-chop="desktop"></span>').replace("[mobilechop]","");let r=e.createElement("div");r.innerHTML=t;let s=r.querySelector('span[data-chop="desktop"]');return s?r.lastChild==s?s.parentNode.removeChild(s):(this._CutHTML(s,r),s.parentNode==r&&(r.innerHTML=r.innerHTML.split(s.outerHTML)[0]+s.outerHTML,s=r.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(s),t=r.innerHTML):this._WordCount(r)>this.staticbreak&&(t=yield this._TruncateWithLimit(t,this.staticbreak)),this.sanitize&&(t=n.Sanitize(t,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",t)}if(t=t.replace("[chop]","\x3c!--chop--\x3e").replace("[mobilechop]","\x3c!--mobilechop--\x3e"),t=t.replace('<span data-chop="desktop"></span>',"\x3c!--chop--\x3e").replace('<span data-chop="mobile"></span>',"\x3c!--mobilechop--\x3e"),t=t.replace(/(?:\\r\\n|\\r|\\n)/g,""),t=n.trim(t),n.isNode())return this.sanitize&&(t=n.Sanitize(t,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",t);let r=window.innerWidth||e.body.clientWidth;r<this.breakpoint&&t.indexOf("\x3c!--mobilechop--\x3e")<0&&(t=t.replace(/<!--(auto)?(mobile)?chop-->/g,""));let s=!1,i=!1;r>=this.breakpoint?t.indexOf("\x3c!--chop--\x3e")>0&&(s=!0):t.indexOf("\x3c!--chop--\x3e")>0&&t.indexOf("\x3c!--mobilechop--\x3e")<0?s=!0:t.indexOf("\x3c!--mobilechop--\x3e")>0&&(s=i=!0),s||(t=t.replace("\x3c!--chop--\x3e","").replace("\x3c!--mobilechop--\x3e","")),t=r>this.breakpoint?t.replace(/(<!--chop-->)\s*(<!--mobilechop-->)/,"$2$1"):t.replace(/(<!--mobilechop-->)\s*(<!--chop-->)/,"$2$1"),t=t.replace("\x3c!--chop--\x3e",'<span data-chop="desktop"></span>'),t=t.replace("\x3c!--mobilechop--\x3e",'<span data-chop="mobile"></span>');let a=e.createElement("div");a.innerHTML=t;let o=a.querySelector('span[data-chop="desktop"]'),l=a.querySelector('span[data-chop="mobile"]');if(!o&&!l&&!this.auto_truncate)return t=n.Sanitize(t,this.sanitizeCFG),void this._render.setProperty(this._el.nativeElement,"innerHTML",t);let c=!1,d=!!this.breakwords;if(a.lastChild==o||a.lastChild==l)d=!1,o&&a.lastChild==o&&(o.parentNode.removeChild(o),o=null,l&&a.lastChild==l&&(l.parentNode.removeChild(l),l=null)),l&&a.lastChild==l&&(l.parentNode.removeChild(l),l=null,o&&a.lastChild==o&&(o.parentNode.removeChild(o),o=null));else{if(o&&o.parentNode.lastChild==o){let e=o.parentNode,t=!0;for(;e&&e!==a;){if(e.parentNode.lastChild!=e){t=!1;break}e=e.parentNode}t&&(d=!1,o.parentNode.removeChild(o),o=null)}if(l&&l.parentNode.lastChild==l){let e=l.parentNode,t=!0;for(;e&&e!==a;){if(e.parentNode.lastChild!=e){t=!1;break}e=e.parentNode}t&&(d=!1,l.parentNode.removeChild(l),l=null)}}if(o&&(r>this.breakpoint||!i))this._CutHTML(o,a),o.parentNode==a&&(a.innerHTML=a.innerHTML.split(o.outerHTML)[0]+o.outerHTML,o=a.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(o);else if(i&&l&&r<this.breakpoint)this._CutHTML(l,a),l.parentNode==a&&(a.innerHTML=a.innerHTML.split(l.outerHTML)[0]+l.outerHTML,l=a.querySelector('span[data-chop="mobile"]')),this._AddExpandBT(l);else if(d){let e;if(n.objectForEach(this.breakwords,((t,s)=>{if(r<n.toNumber(s))return e=t,!1})),e)if(this.use_shave_break)this._Shave(a,e),c=!0;else if(this._WordCount(a)>e){const n=yield this._TruncateWithLimit(t,e);return void this._render.setProperty(this._el.nativeElement,"innerHTML",n)}}let u=a.innerHTML;!c&&this.sanitize&&(u=n.Sanitize(a.innerHTML,this.sanitizeCFG)),this._render.setProperty(this._el.nativeElement,"innerHTML",u)}))))}_ShowFullCT(){let e=this._content||"";this.sanitize&&(e=n.Sanitize(e,this.sanitizeCFG)),this.collapse_bt&&(e+=`<br class="js-shave-br" /><span class="js-shave-char cursor-pointer js-shave-char-less" role="button" tabindex="0">${this.collapse_bt}</span>`),e=e.replace("[chop]","").replace("[mobilechop]",""),this._render.setProperty(this._el.nativeElement,"innerHTML",e),this._MoveFocus(),n.reqAnimationFrame((()=>{this.onContent.emit("expanded")}))}Expand(e){if(n.isNode())return;let t=e.target;const r=()=>{this.onExpand.emit(this._expanded),n.Events.emit("$shortcodes:set")};t&&t.classList&&t.classList.contains("js-shave-char")&&(this._expanded=!this._expanded,this._expanded?(this._ShowFullCT(),r()):(this._expandct=!1,this._Truncate().then(r)))}ngAfterViewInit(){n.isNode()||(this._windowobs=t.fromEvent(window,"resize"),this._windowobs.subscribe((()=>{!this._content||this._expanded||this._expandct||this._Truncate()})),this._expandContent.subscribe((e=>{this._content&&(this._expanded=!e,this.Expand({target:{classList:{contains:()=>!0}}}))})),this._cleanups.push(this._render.listen(this._el.nativeElement,"click",(e=>{this.Expand(e)}))))}ngOnDestroy(){this._windowobs&&(this._windowobs=null),this._windowsubs&&this._windowsubs.unsubscribe(),this.istruncated.complete(),this._cleanups.forEach((e=>{e()}))}}ge.ɵfac=function(e){return new(e||ge)(t["ɵɵdirectiveInject"](t.ElementRef),t["ɵɵdirectiveInject"](t.Renderer2),t["ɵɵdirectiveInject"](n.ScrollerService))},ge.ɵdir=t["ɵɵdefineDirective"]({type:ge,selectors:[["","ng-truncate",""]],inputs:{breakpoint:"breakpoint",breakwords:"breakwords",staticbreak:["breakwords-static","staticbreak"],content:["ng-truncate","content"],sanitize:"sanitize",sanitizeCFG:["sanitize-cfg","sanitizeCFG"],use_shave_break:["use-shave","use_shave_break"],expand_bt:["expand-button","expand_bt"],collapse_bt:["collapse-button","collapse_bt"],hellip:"hellip",auto_truncate:["auto-trim","auto_truncate"],expandContent:["expand-content","expandContent"],auto_focus:["auto-focus","auto_focus"]},outputs:{onExpand:"onExpand",hasExpandButton:"hasExpandButton",onContent:"onContent"}});class _e{constructor(e,n){this._cd=e,this._render=n,this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},this.expand_mode="dynamic",this.hide_org_content=!0,this.perma_expand=!1,this.htmlcontent="",this.onExpand=new t.EventEmitter}Expanded(e){if(e&&(this.hide_org_content=!1,"permanent"==this.expand_mode&&(this.perma_expand=!0)),this.onExpand.emit(e),this._cd.detectChanges(),this.contentBox&&this.contentBox.nativeElement){const e=this.contentBox.nativeElement;for(let t=0,n=e.childNodes.length;t<n;t++){const n=e.childNodes[t];if(n.focus){n.setAttribute("tabindex","0"),n.focus(),setTimeout((()=>{n.focus()}));break}}}}Collapse(){this.hide_org_content=!0,this._cd.detectChanges()}ngOnInit(){this.hide_org_content=!n.isNode(),n.isNode()?(this.hide_org_content=!1,this.perma_expand=!0):this._observer=new MutationObserver((e=>{this.htmlcontent=this.contentBox.nativeElement.innerHTML,n.reqAnimationFrame((()=>{this._cd.detectChanges()}))}))}ngAfterViewInit(){n.isNode()||(this.htmlcontent=this.contentBox.nativeElement.innerHTML,n.reqAnimationFrame((()=>{this._cd.detectChanges()})),this._observer.observe(this.contentBox.nativeElement,{attributes:!1,childList:!0,characterData:!0}))}ngOnDestroy(){this._observer.disconnect()}}_e.ɵfac=function(e){return new(e||_e)(t["ɵɵdirectiveInject"](t.ChangeDetectorRef),t["ɵɵdirectiveInject"](t.Renderer2))},_e.ɵcmp=t["ɵɵdefineComponent"]({type:_e,selectors:[["ng-truncate"]],viewQuery:function(e,n){if(1&e&&t["ɵɵviewQuery"](de,5),2&e){let e;t["ɵɵqueryRefresh"](e=t["ɵɵloadQuery"]())&&(n.contentBox=e.first)}},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",expand_mode:["expand","expand_mode"]},outputs:{onExpand:"onExpand"},ngContentSelectors:["*"],decls:5,vars:3,consts:[[3,"ng-hidden"],["content",""],["class","js-shave-char cursor-pointer js-shave-char-expanded","zing-touch","","role","button","tabindex","0",3,"onClick",4,"ngIf"],[3,"ng-truncate","breakpoint","breakwords","onExpand",4,"ngIf"],["zing-touch","","role","button","tabindex","0",1,"js-shave-char","cursor-pointer","js-shave-char-expanded",3,"onClick"],[3,"ng-truncate","breakpoint","breakwords","onExpand"]],template:function(e,n){1&e&&(t["ɵɵprojectionDef"](),t["ɵɵelementStart"](0,"div",0,1),t["ɵɵprojection"](2),t["ɵɵelementEnd"](),t["ɵɵtemplate"](3,ue,2,0,"span",2),t["ɵɵtemplate"](4,he,1,3,"div",3)),2&e&&(t["ɵɵproperty"]("ng-hidden",n.hide_org_content),t["ɵɵadvance"](3),t["ɵɵproperty"]("ngIf",!n.hide_org_content&&!n.perma_expand),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.hide_org_content))},dependencies:[t.NgIf,n.ngHidden,n.TouchGestures,ge],encapsulation:2,changeDetection:0});class fe{}fe.ɵfac=function(e){return new(e||fe)},fe.ɵmod=t["ɵɵdefineNgModule"]({type:fe}),fe.ɵinj=t["ɵɵdefineInjector"]({imports:[t.CommonModule,n.DirectivesModule]});const xe=["txtElement"],ve=["quesOverlay"],be=["ques_answer"];function we(e,n){if(1&e&&(t["ɵɵelementStart"](0,"span",23),t["ɵɵtext"](1),t["ɵɵelementEnd"]()),2&e){const e=t["ɵɵnextContext"](2);t["ɵɵadvance"](1),t["ɵɵtextInterpolate1"]("(",e.schq_count,")")}}function ye(e,n){if(1&e&&(t["ɵɵelementStart"](0,"h2",20),t["ɵɵelement"](1,"span",21),t["ɵɵtemplate"](2,we,2,1,"span",22),t["ɵɵelementEnd"]()),2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-context",e.section_title),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.schq_count)}}const qe=function(e,t){return{"light-font qnah-1":e,"qnah-1 qnah-3 extra-bold-font":t}};function Ee(e,n){if(1&e&&t["ɵɵelement"](0,"h2",24),2&e){const e=t["ɵɵnextContext"]();t["ɵɵproperty"]("ngClass",t["ɵɵpureFunction2"](2,qe,0==e.layout_type,2==e.layout_type))("ng-context",e.section_title)}}function Ce(e,n){if(1&e&&(t["ɵɵelementStart"](0,"p",25)(1,"span"),t["ɵɵtext"](2),t["ɵɵelementEnd"](),t["ɵɵtext"](3,"For more general questions, visit our "),t["ɵɵelementStart"](4,"a",26),t["ɵɵtext"](5,"Answers section."),t["ɵɵelementEnd"]()()),2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](2),t["ɵɵtextInterpolate1"]("Get answers to your questions about ",e.product_name," below. "),t["ɵɵadvance"](2),t["ɵɵproperty"]("href",e.answers_url_page,t["ɵɵsanitizeUrl"])("zing-url",!0)}}function Se(e,n){if(1&e&&t["ɵɵelement"](0,"p",27),2&e){const e=t["ɵɵnextContext"]();t["ɵɵproperty"]("zing-url-container",!0)("cleanHTML",e.intro_content)}}function Te(e,n){if(1&e&&t["ɵɵelement"](0,"p",28),2&e){const e=t["ɵɵnextContext"]();t["ɵɵproperty"]("zing-url-container",!0)("ng-truncate",e.intro_content)("breakwords",e.truncateBreakwords)("breakpoint",480)}}function ke(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"span",39),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"](2);return t["ɵɵresetView"](n.QClear())})),t["ɵɵelementEnd"]()}}function Ie(e,n){1&e&&(t["ɵɵelementStart"](0,"span"),t["ɵɵtext"](1,"Don't see what you're looking for?"),t["ɵɵelementEnd"]())}function Ae(e,n){1&e&&(t["ɵɵelementStart"](0,"div",40),t["ɵɵtext"](1,"MATCHING RESULTS"),t["ɵɵelementEnd"]())}function ze(e,n){1&e&&(t["ɵɵelementStart"](0,"div",40),t["ɵɵtext"](1,"NO MATCHING RESULTS"),t["ɵɵelementEnd"]())}function Me(e,n){1&e&&(t["ɵɵelementStart"](0,"div",40),t["ɵɵtext"](1,"Searching for answers..."),t["ɵɵelementEnd"]())}function Le(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",29)(1,"div",30)(2,"textarea",31),t["ɵɵlistener"]("input",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.SearchInput(n))})),t["ɵɵelementEnd"](),t["ɵɵtemplate"](3,ke,1,0,"span",32),t["ɵɵelementStart"](4,"button",33),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.QSearch())})),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](5,"div",34),t["ɵɵtemplate"](6,Ie,2,0,"span",35),t["ɵɵelementStart"](7,"button",36),t["ɵɵlistener"]("onClick",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.AskQuestion(n))})),t["ɵɵtext"](8,"Ask Your Question"),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](9,"div",37),t["ɵɵtemplate"](10,Ae,2,0,"div",38),t["ɵɵtemplate"](11,ze,2,0,"div",38),t["ɵɵtemplate"](12,Me,2,0,"div",38),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵproperty"]("scroll-to",e.focus_on_input),t["ɵɵadvance"](1),t["ɵɵproperty"]("value",e.search_value)("sizeupdate",e.qna_key_reset),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.search_value),t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-hidden",!!e.search_value),t["ɵɵadvance"](1),t["ɵɵclassProp"]("qna-aq-ss",e.noresults),t["ɵɵproperty"]("ng-hidden",!(e.show_search_state||e.show_search_state_empty)),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.show_search_state&&!e.noresults),t["ɵɵadvance"](4),t["ɵɵproperty"]("ngIf",e.show_search_state&&!e.search_loading),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.show_search_state_empty&&!e.search_loading),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.search_loading)}}function Ne(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"li",41),t["ɵɵlistener"]("onClick",(function(){const n=t["ɵɵrestoreView"](e).index,r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.ChangeSort(n))})),t["ɵɵtext"](1),t["ɵɵelementEnd"]()}if(2&e){const e=n.$implicit,r=n.index;t["ɵɵclassProp"]("qnaml-first",0==r),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](e)}}function Ve(e,n){1&e&&t["ɵɵelement"](0,"div",50)}function Fe(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",42),t["ɵɵtemplate"](1,Ve,1,0,"div",43),t["ɵɵelementStart"](2,"div",44)(3,"div",45),t["ɵɵelement"](4,"img",46),t["ɵɵelementEnd"](),t["ɵɵelementStart"](5,"div",47)(6,"textarea",48),t["ɵɵlistener"]("input",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.ques_ask=n.target.value)})),t["ɵɵelementEnd"](),t["ɵɵelementStart"](7,"button",49),t["ɵɵlistener"]("onClick",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.AskQuestion(n))})),t["ɵɵtext"](8,"Ask your Question"),t["ɵɵelementEnd"]()()()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",0==e.schquestions.length),t["ɵɵadvance"](3),t["ɵɵproperty"]("src",e.user_avatar,t["ɵɵsanitizeUrl"])("on-img-error",e.user_avatar_fallback),t["ɵɵadvance"](1),t["ɵɵproperty"]("scroll-to",e.focus_on_input),t["ɵɵadvance"](1),t["ɵɵproperty"]("value",e.ques_ask)}}function Oe(e,n){1&e&&(t["ɵɵelementStart"](0,"div",54)(1,"div",55),t["ɵɵelement"](2,"i"),t["ɵɵelementEnd"]()())}function je(e,n){if(1&e&&t["ɵɵelement"](0,"a",79),2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵclassProp"]("qt-as-link",e.from_search),t["ɵɵproperty"]("href",e.ques_href,t["ɵɵsanitizeUrl"])("zing-url",!0)("cleanHTML",e.ques_title)("focus-when",e.focuson)("no-click",!0)}}function Re(e,n){if(1&e&&t["ɵɵelement"](0,"span",80),2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵclassProp"]("qt-as-link",e.from_search),t["ɵɵproperty"]("cleanHTML",e.ques_title)}}function He(e,n){if(1&e&&t["ɵɵelement"](0,"p",81),2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵproperty"]("cleanHTML",e.ques_content_cut_mob)}}function Pe(e,n){if(1&e&&t["ɵɵelement"](0,"p",82),2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵproperty"]("cleanHTML",e.ques_content_cut_desk)}}function $e(e,n){1&e&&(t["ɵɵelementStart"](0,"span",83),t["ɵɵtext"](1,"..."),t["ɵɵelementEnd"]())}function Be(e,n){if(1&e&&t["ɵɵelement"](0,"p",81),2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵproperty"]("cleanHTML",e.ques_content_more)}}function De(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"span",84),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.ExpandContent(n.id,"question"))})),t["ɵɵtext"](1,"show more"),t["ɵɵelementEnd"]()}if(2&e){const e=t["ɵɵnextContext"]().$implicit,n=t["ɵɵnextContext"](2);t["ɵɵproperty"]("ng-hidden",n.questionexpand[e.id])}}function Qe(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"span",85),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.ExpandContent(n.id,"question"))})),t["ɵɵtext"](1,"show less"),t["ɵɵelementEnd"]()}if(2&e){const e=t["ɵɵnextContext"]().$implicit,n=t["ɵɵnextContext"](2);t["ɵɵproperty"]("ng-hidden",!n.questionexpand[e.id])}}function Ue(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",86),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.ShowReplybox(n.id))})),t["ɵɵtext"](1,"Reply"),t["ɵɵelementEnd"]()}if(2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵproperty"]("focus-when",e.reply_bt_focus)("no-click",!0)}}function Ge(e,n){1&e&&t["ɵɵelement"](0,"span",87)}function We(e,n){1&e&&t["ɵɵelement"](0,"span",87)}function Ye(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"form",88),t["ɵɵlistener"]("onSubmit",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.SubmitReply(n))})),t["ɵɵelementStart"](1,"div",89),t["ɵɵelement"](2,"img",90),t["ɵɵelementEnd"](),t["ɵɵelementStart"](3,"div",91)(4,"ck-editor",92),t["ɵɵlistener"]("valueChange",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]().$implicit,s=t["ɵɵnextContext"](2);return t["ɵɵresetView"](s.ReplyInput(n,r.id))})),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](5,"div",93),t["ɵɵelement"](6,"error-toast",94),t["ɵɵelementStart"](7,"button",95),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.ShowReplybox(n.id))})),t["ɵɵtext"](8,"Cancel"),t["ɵɵelementEnd"](),t["ɵɵelementStart"](9,"button",96)(10,"span"),t["ɵɵtext"](11,"Reply"),t["ɵɵelementEnd"](),t["ɵɵelement"](12,"i",97),t["ɵɵelementEnd"]()()()}if(2&e){const e=t["ɵɵnextContext"]().$implicit,n=t["ɵɵnextContext"](2);t["ɵɵadvance"](2),t["ɵɵproperty"]("src",n.user_avatar,t["ɵɵsanitizeUrl"])("on-img-error",n.user_avatar_fallback),t["ɵɵadvance"](2),t["ɵɵproperty"]("value",n.replyboxinput[e.id])("active",!0)("cursor-focus",n.replyboxshow[e.id])("readonly",n.replyinprogress[e.id]),t["ɵɵadvance"](2),t["ɵɵproperty"]("message",null==n.replyerror[e.id]?null:n.replyerror[e.id].message)("show",null==n.replyerror[e.id]?null:n.replyerror[e.id].show)("close-on-change",!0)("timer",3e3),t["ɵɵadvance"](1),t["ɵɵproperty"]("disabled",n.replyinprogress[e.id]),t["ɵɵadvance"](2),t["ɵɵclassProp"]("loadactive",n.replyinprogress[e.id]),t["ɵɵproperty"]("disabled",n.replyinprogress[e.id])("zing-feedback",!0)}}function Je(e,n){if(1&e&&(t["ɵɵelementStart"](0,"span",112),t["ɵɵtext"](1),t["ɵɵelementEnd"]()),2&e){const e=t["ɵɵnextContext"](2).$implicit;t["ɵɵadvance"](1),t["ɵɵtextInterpolate1"](", ",e.user_title,"")}}function Xe(e,n){if(1&e&&(t["ɵɵelementStart"](0,"div",110),t["ɵɵelement"](1,"span",21),t["ɵɵtemplate"](2,Je,2,1,"span",111),t["ɵɵelementEnd"]()),2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-context",e.user_fullname||e.user_login),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.user_title)}}function Ze(e,n){if(1&e&&(t["ɵɵelementContainerStart"](0),t["ɵɵtext"](1),t["ɵɵelementContainerEnd"]()),2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](e.user_login)}}function Ke(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"span",117),t["ɵɵlistener"]("onTap",(function(){const n=t["ɵɵrestoreView"](e).index,r=t["ɵɵnextContext"](2).$implicit,s=t["ɵɵnextContext"](3);return t["ɵɵresetView"](s.AnsOpt(n,r))})),t["ɵɵtext"](1),t["ɵɵelementEnd"]()}if(2&e){const e=n.$implicit,r=n.index;t["ɵɵclassProp"]("qnaml-first",0==r),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](e)}}function et(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",113)(1,"span",114),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](3);return t["ɵɵresetView"](r.ControlAnsOpt(n))}))("onTapOutside",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit;return t["ɵɵresetView"](n.options_list_opened=!1)})),t["ɵɵelementEnd"](),t["ɵɵelementStart"](2,"div",115),t["ɵɵlistener"]("onTap",(function(e){return e.stopPropagation()})),t["ɵɵtemplate"](3,Ke,2,3,"span",116),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]().$implicit,n=t["ɵɵnextContext"](3);t["ɵɵadvance"](2),t["ɵɵproperty"]("ng-hidden",!e.options_list_opened),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngForOf",n.ansOptions)("ngForTrackBy",n.trackByFn)}}function tt(e,n){if(1&e&&(t["ɵɵelementStart"](0,"div",118)(1,"a",119),t["ɵɵtext"](2,"show more"),t["ɵɵelement"](3,"span",120),t["ɵɵelementEnd"]()()),2&e){const e=t["ɵɵnextContext"](2).$implicit;t["ɵɵadvance"](1),t["ɵɵproperty"]("href",e.ques_href,t["ɵɵsanitizeUrl"])("zing-url",!0)}}function nt(e,n){1&e&&t["ɵɵelement"](0,"span",87)}function rt(e,n){1&e&&t["ɵɵelement"](0,"span",87)}const st=function(){return{attribute:"itemprop",value:"upvoteCount"}},it=function(e){return[e]},at=function(){return{attribute:"itemprop",value:"downvoteCount"}};function ot(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",70)(1,"div",121),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](3);return t["ɵɵresetView"](r.RateContent(n,"up"))})),t["ɵɵtemplate"](2,nt,1,0,"span",122),t["ɵɵelementStart"](3,"span",123),t["ɵɵtext"](4),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](5,"div",74),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](3);return t["ɵɵresetView"](r.RateContent(n,"down"))})),t["ɵɵtemplate"](6,rt,1,0,"span",122),t["ɵɵelementStart"](7,"span",123),t["ɵɵtext"](8),t["ɵɵelementEnd"]()()()}if(2&e){const e=t["ɵɵnextContext"](),n=e.$implicit,r=e.index,s=t["ɵɵnextContext"](3);t["ɵɵadvance"](1),t["ɵɵclassProp"]("visible",n.voteinprogress),t["ɵɵproperty"]("zing-no-touch",!0),t["ɵɵattribute"]("aria-label",n.upvotelabel),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.voteinprogress),t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-attribute",t["ɵɵpureFunction1"](17,it,t["ɵɵpureFunction0"](16,st)))("ng-attribute-when",s.toggleSchema&&0==r),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](n.upvote),t["ɵɵadvance"](1),t["ɵɵclassProp"]("visible",n.downvoteinprogress),t["ɵɵproperty"]("zing-no-touch",!0),t["ɵɵattribute"]("aria-label",n.dnvotelabel),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.downvoteinprogress),t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-attribute",t["ɵɵpureFunction1"](20,it,t["ɵɵpureFunction0"](19,at)))("ng-attribute-when",s.toggleSchema&&0==r),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](n.downvote)}}const lt=function(){return{416:35,541:50,769:70,2800:90}},ct=function(){return{attribute:"itemprop",value:"text"}};function dt(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",98)(1,"div",99)(2,"div",100),t["ɵɵelement"](3,"img",101,102),t["ɵɵelementEnd"](),t["ɵɵelementStart"](5,"div",103),t["ɵɵtemplate"](6,Xe,3,2,"div",104),t["ɵɵelementStart"](7,"div",105),t["ɵɵtemplate"](8,Ze,2,1,"ng-container",35),t["ɵɵelementEnd"](),t["ɵɵtemplate"](9,et,4,3,"div",106),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](10,"div",107),t["ɵɵlistener"]("onExpand",(function(n){const r=t["ɵɵrestoreView"](e).$implicit,s=t["ɵɵnextContext"](3);return t["ɵɵresetView"](s.AnswerExpanded(n,r))}))("hasExpandButton",(function(n){const r=t["ɵɵrestoreView"](e).$implicit,s=t["ɵɵnextContext"](3);return t["ɵɵresetView"](s.DisplayShowMoreButton(n,r))})),t["ɵɵelementEnd"](),t["ɵɵtemplate"](11,tt,4,2,"div",108),t["ɵɵtemplate"](12,ot,9,22,"div",109),t["ɵɵelementEnd"]()}if(2&e){const e=n.$implicit,r=n.index,s=t["ɵɵnextContext"](),i=s.$implicit,a=s.index,o=t["ɵɵnextContext"](2);t["ɵɵproperty"]("ng-hidden",!(0==r||o.question_more_answers[i.id]||1==r&&i.answers[0].my_ans))("ng-attribute",o.aschemascope)("ng-attribute-when",o.toggleSchema&&0==r),t["ɵɵadvance"](2),t["ɵɵproperty"]("defer-src",e.user_avatar)("src-fallback",o.user_avatar_fallback)("ui-hydrate",!0),t["ɵɵadvance"](4),t["ɵɵproperty"]("ngIf",e.user_fullname||e.user_login),t["ɵɵadvance"](2),t["ɵɵproperty"]("ngIf",e.user_login),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",null==e?null:e.is_reportable),t["ɵɵadvance"](1),t["ɵɵproperty"]("zing-url-container",!0)("expand-content",0==r&&0==a&&!o.search_loading&&!(o.show_search_state||o.show_search_state_empty))("breakwords",t["ɵɵpureFunction0"](22,lt))("breakwords-static",o.nodetruncate)("collapse-button",0!=r||0!=a||o.show_search_state||o.show_search_state_empty?"show less":"")("ng-truncate",e.content_long)("sanitize-cfg",e.sanitizecfg)("ng-attribute",t["ɵɵpureFunction1"](24,it,t["ɵɵpureFunction0"](23,ct)))("ng-attribute-when",o.toggleSchema&&0==r)("expand-button",""),t["ɵɵattribute"]("data-pos",e.stackid),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.has_more_button&&(i.ques_href||i.ques_fullslug)),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!o.IsSpecial(e.id))}}function ut(e,n){1&e&&(t["ɵɵelementStart"](0,"div",127),t["ɵɵelement"](1,"i"),t["ɵɵelementEnd"]())}function ht(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",124),t["ɵɵtemplate"](1,ut,2,0,"div",125),t["ɵɵelementStart"](2,"span",126),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"](),r=n.$implicit,s=n.index,i=t["ɵɵnextContext"](2);return t["ɵɵresetView"](i.ViewMoreAns(r,s))})),t["ɵɵtext"](3," View more answers "),t["ɵɵelement"](4,"i",9),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]().$implicit,n=t["ɵɵnextContext"](2);t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.answersmore[e.id])}}const pt=function(){return{attribute:"itemprop",value:"name"}};function mt(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"article",56)(1,"h3",57),t["ɵɵtemplate"](2,je,1,7,"a",58),t["ɵɵtemplate"](3,Re,1,3,"span",59),t["ɵɵelementEnd"](),t["ɵɵelementStart"](4,"div",60)(5,"div",61),t["ɵɵtext"](6),t["ɵɵelementEnd"](),t["ɵɵelementStart"](7,"span",62),t["ɵɵtext"](8),t["ɵɵelementEnd"]()(),t["ɵɵtemplate"](9,He,1,1,"p",63),t["ɵɵtemplate"](10,Pe,1,1,"p",64),t["ɵɵtemplate"](11,$e,2,0,"span",65),t["ɵɵtemplate"](12,Be,1,1,"p",63),t["ɵɵtemplate"](13,De,2,1,"span",66),t["ɵɵtemplate"](14,Qe,2,1,"span",67),t["ɵɵelementStart"](15,"div",68),t["ɵɵtemplate"](16,Ue,2,2,"div",69),t["ɵɵelementStart"](17,"div",70)(18,"div",71),t["ɵɵlistener"]("onTap",(function(){const n=t["ɵɵrestoreView"](e).$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.RateContent(n,"up"))})),t["ɵɵtemplate"](19,Ge,1,0,"span",72),t["ɵɵelementStart"](20,"span",73),t["ɵɵtext"](21),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](22,"div",74),t["ɵɵlistener"]("onTap",(function(){const n=t["ɵɵrestoreView"](e).$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.RateContent(n,"down"))})),t["ɵɵtemplate"](23,We,1,0,"span",72),t["ɵɵelementStart"](24,"span",73),t["ɵɵtext"](25),t["ɵɵelementEnd"]()()()(),t["ɵɵtemplate"](26,Ye,13,15,"form",75),t["ɵɵelementStart"](27,"div",76),t["ɵɵtemplate"](28,dt,13,26,"div",77),t["ɵɵtemplate"](29,ht,5,1,"div",78),t["ɵɵelementEnd"]()()}if(2&e){const e=n.$implicit,r=t["ɵɵnextContext"](2);t["ɵɵclassProp"]("qna-q-search",e.from_search),t["ɵɵproperty"]("ng-attribute",r.qschemascope)("ng-attribute-when",r.questionToggleSchema(e)),t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-attribute",t["ɵɵpureFunction1"](37,it,t["ɵɵpureFunction0"](36,pt)))("ng-attribute-when",r.questionToggleSchema(e)),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.ques_href),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!e.ques_href&&!e.ques_fullslug),t["ɵɵadvance"](2),t["ɵɵproperty"]("ng-attribute",t["ɵɵpureFunction1"](40,it,t["ɵɵpureFunction0"](39,st)))("ng-attribute-when",r.questionToggleSchema(e)),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](e.upvote),t["ɵɵadvance"](2),t["ɵɵtextInterpolate1"]("Upvote",1!=e.upvote?"s":"",""),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!r.questionexpand[e.id]&&e.ques_content_cut_mob),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!r.questionexpand[e.id]&&e.ques_content_cut_desk),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!r.questionexpand[e.id]&&e.ques_content_has_more),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",(r.questionexpand[e.id]||!e.ques_content_cut_mob)&&e.ques_content_more),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.ques_content_has_more),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.ques_content_has_more),t["ɵɵadvance"](2),t["ɵɵproperty"]("ngIf",!r.IsSpecial(e.id)),t["ɵɵadvance"](2),t["ɵɵclassProp"]("visible",e.voteinprogress),t["ɵɵproperty"]("zing-no-touch",!0),t["ɵɵattribute"]("aria-label",e.upvotelabel),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.voteinprogress),t["ɵɵadvance"](2),t["ɵɵtextInterpolate"](e.upvote),t["ɵɵadvance"](1),t["ɵɵclassProp"]("visible",e.downvoteinprogress),t["ɵɵproperty"]("zing-no-touch",!0),t["ɵɵattribute"]("aria-label",e.dnvotelabel),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.downvoteinprogress),t["ɵɵadvance"](2),t["ɵɵtextInterpolate"](e.downvote),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",r.replyboxshow[e.id]),t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-hidden",!e.answers||e.answers.length<1),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngForOf",e.answers)("ngForTrackBy",r.trackByFn),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.has_more_answers)}}function gt(e,n){if(1&e&&(t["ɵɵelementStart"](0,"div",51),t["ɵɵtemplate"](1,Oe,3,0,"div",52),t["ɵɵtemplate"](2,mt,30,42,"article",53),t["ɵɵelementEnd"]()),2&e){const e=t["ɵɵnextContext"]();t["ɵɵclassProp"]("qna-qb-loading",e.search_loading||e.questions_more),t["ɵɵproperty"]("ng-hidden",e.resultserror||e.load_startup||e.load_startup_fail)("ng-attribute",e.qschemapage)("ng-attribute-when",e.sectionToggleSchema()),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.search_loading||e.questions_more),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngForOf",e.schquestions)("ngForTrackBy",e.trackByFn)}}function _t(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"button",132),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"](2);return t["ɵɵresetView"](n.ViewMoreQuestions())})),t["ɵɵelementStart"](1,"span",133)(2,"span",131),t["ɵɵtext"](3,"View "),t["ɵɵelementEnd"](),t["ɵɵtext"](4,"More Questions"),t["ɵɵelementEnd"](),t["ɵɵelement"](5,"i",97),t["ɵɵelementEnd"]()}if(2&e){const e=t["ɵɵnextContext"](2);t["ɵɵclassProp"]("loadactive",e.questions_more)}}function ft(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",128),t["ɵɵtemplate"](1,_t,6,2,"button",129),t["ɵɵelementStart"](2,"button",130),t["ɵɵlistener"]("onClick",(function(n){t["ɵɵrestoreView"](e);const r=t["ɵɵnextContext"]();return t["ɵɵresetView"](r.AskQuestion(n))})),t["ɵɵtext"](3,"Ask "),t["ɵɵelementStart"](4,"span",131),t["ɵɵtext"](5,"Your"),t["ɵɵelementEnd"](),t["ɵɵtext"](6," Question"),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"]();t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.has_more_ques)}}function xt(e,n){1&e&&(t["ɵɵelementStart"](0,"div",134)(1,"div",55),t["ɵɵelement"](2,"i"),t["ɵɵelementEnd"]()())}function vt(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",135)(1,"p",136),t["ɵɵtext"](2,"Oops there was a problem retrieving data"),t["ɵɵelementEnd"](),t["ɵɵelement"](3,"br"),t["ɵɵelementStart"](4,"div",137)(5,"button",138),t["ɵɵlistener"]("onTap",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]();return t["ɵɵresetView"](n.RetryLoadData())})),t["ɵɵtext"](6,"Retry"),t["ɵɵelementEnd"]()()()}}const bt=function(e){return{"ng-enter-element":e}};l.import("css:/components/qna-comp.css").then((()=>{})).catch((()=>{}));class wt{constructor(e,r,s){this._location=e,this._route=r,this._dservice=s,this.layout_type=0,this.product_name="",this.ques_data=null,this.ques_referer=null,this.intro_truncate=!0,this.quest_category=null,this.start_delay=1e3,this.section_title="Questions & Answers",this.show_header=!0,this.ask_quest_categories=null,this.is_details=!1,this.nodetruncate=null,this.answers_url_page=n.baseUrl()+"/answers/",this._qType=new t.BehaviorSubject(""),this._has_answer=!1,this.truncateBreakwords={480:16,2048:300},this.toggleSchema=!1,this.qschemapage=[{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/FAQPage"}],this.qschemascope=[{attribute:"itemscope",value:""},{attribute:"itemprop",value:"mainEntity"},{attribute:"itemtype",value:"http://schema.org/Question"}],this.aschemascope=[{attribute:"itemprop",value:"acceptedAnswer"},{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/Answer"}],this.aschematime=[{attribute:"itemprop",value:"dateCreated"}],this.userschema=[{attribute:"itemprop",value:"author"},{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/Person"}],this.noresults=!1,this.resultserror=!1,this.search_loading=!1,this.answerexpand={},this.questionexpand={},this.question_more_answers={},this.answersmore={},this.questions_more=!1,this.has_enough_ques=!1,this.has_more_ques=!1,this.load_startup=!1,this.load_startup_fail=!1,this.is_android=!1,this.current_page=1,this.schquestions=[],this.total_ques=new t.EventEmitter,this.replyboxinput={},this.replyboxinputsubmited={},this.replyinprogress={},this.replyerror={},this.replyboxshow={},this.sortList=["Most Popular","Most Upvotes"],this.sortv="",this.sort_list_opened=!1,this.sort_list_closed=!1,this.user_avatar_fallback="https://cdn.wallethub.com/wallethub/images/profile/avatars/silhouette-50_V1d9a2cc_.png",this.ques_ask="",this.ansOptions=["Report"],this.qna_key_reset=!1,this._open_popup=!1,this.page_query=null,this.allow_animation=!1,this.live_status="",this.answers_link=n.baseUrl()+"/answers/",n.isNode()||(this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}get search_value(){return this._qType.getValue()}questionToggleSchema(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)}sectionToggleSchema(){return!!(this.toggleSchema&&this._has_answer&&this.schquestions.length>0)}get show_search_state(){return this.search_value&&this.search_value.length>1&&!this.noresults&&!this.resultserror}get show_search_state_empty(){return this.search_value&&this.search_value.length>1&&this.noresults&&!this.resultserror}get has_clipped_answer_content(){return this.answers_content_clipped&&!(this.show_search_state||this.show_search_state_empty)}get open_popup(){return this._open_popup}set open_popup(e){this._open_popup=e,e&&this.AskQuestion()}get has_view_more(){return!this.search_value&&!this.search_loading&&!this.load_startup&&!this.load_startup_fail&&!this.resultserror&&this.has_enough_ques}trackByFn(e){return e}_ParseQuestions(e,t,r){let s=[];return n.arrayForEach(e,((e,i)=>{if(null==e)return!0;let a=e;if(a.ques_title=e.ques_content,delete a.ques_content,a.ques_content_more=a.ques_more_info||a.ques_content_more||"",a.ques_more_info&&delete a.ques_more_info,a.ques_content_more.length>138&&(a.ques_content_cut_mob=a.ques_content_more.substring(0,138),a.ques_content_has_more=!0),a.ques_content_more.length>330?a.ques_content_cut_desk=a.ques_content_more.substring(138,330):a.ques_content_more.length>138&&(a.ques_content_cut_mob=a.ques_content_more,a.ques_content_has_more=!1),!a.ques_fullslug&&a.ques_slug&&(a.ques_fullslug=a.ques_slug+"-"+a.id.toString()),a.upvotelabel=a.upvote+" up vote"+(1!=a.upvote?"s":""),a.dnvotelabel=a.downvote+" down vote"+(1!=a.upvote?"s":""),a.ques_href=a.ques_href||"/answers/"+a.ques_fullslug,a.ques_href=n.baseUrl()+a.ques_href.replace(n.baseUrl(),""),t){let e=t(a,i);if("boolean"==typeof e&&!e)return!0}let o=i;n.isArray(this.schquestions)&&(o+=this.schquestions.length),this._ParseAnswers(a,o,null,0,r),s.push(a)})),s}_ParseAnswers(e,t,r,s,i){let a=r||e.answers||[];n.isArray(a)&&(e.answers=r?e.answers:[],a.length>0&&!this._has_answer&&(this._has_answer=!0),a.forEach(((r,s)=>{let a=r;a.user_login&&(a.user_login="@"+a.user_login),a.user_fullname=n.trim(a.user_fullname||""),n.isArray(a.content)?(a.content_cut=a.content[0]||a.content[1],this.answers_content_clipped&&!e.from_search?(a.content_long=a.content[0],delete a.content_cut):a.content[0]?a.content_long=a.content[1]:(a.content_long=a.content_cut,delete a.content_cut)):(a.content_long=a.content,this.answers_content_clipped=!0),delete a.content,a.content_cut&&"string"==typeof a.content_cut&&(a.content_cut=a.content_cut.replace("[[:hellip:]]","...")),0!=t||e.from_search||e.answers.length||(a.content_long||(a.content_long=a.content_cut),delete a.content_cut,this.answerexpand[a.id]=!0),this.signon&&this.signon.id==a.uid&&(this.replyboxinputsubmited[e.id]=a.content_long||a.content_cut),a.content_cut&&(a.content_cut=this._FormatAnswer(a.content_cut)),a.content_long&&(a.content_long=this._FormatAnswer(a.content_long));let o=i?i(a,e,s):null;("boolean"!=typeof o||o)&&(e.answers.push(a),a.stackid=t.toString()+"-"+e.answers.indexOf(a).toString()),a.is_reportable=!1,a.sanitizecfg={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target","allow","allowfullscreen","frameborder"]},a.upvotelabel=a.upvote+" up vote"+(1!=a.upvote?"s":""),a.dnvotelabel=a.downvote+" down vote"+(1!=a.upvote?"s":""),(this.IsSpecial(a.id)||n.isAny(a.uid,[13302181,15780064,13301077,15679068,15598394,16156697]))&&a.sanitizecfg.ADD_TAGS.push("iframe")})),e.has_more_answers=(e.total_answers||0)>e.answers.length||e.answers.length>1&&!this.question_more_answers[e.id],void 0!==s&&!isNaN(parseInt(s.toString()))&&s>0&&(e.has_more_answers=!0)),n.reqAnimationFrame((()=>{n.Events.emit("$shortcodes:set")}))}_FormatAnswer(e){try{e=(e=(e=e.replace(/<p><\/p>/g,"")).replace(/<p>(\s|&nbsp;)+<\/p>/g,"")).replace(/((?:[^\S\n]*(<p>)\s*<br(?:\s*\/\s*)?>\s*(<\/p>)|\s*<br>){2,})/g,"")}catch(t){e=""}return e}SearchInput(e){let t=e.target.value;this._qType.next(t)}ControlSortList(e){this.sort_list_opened="boolean"==typeof e?e:!this.sort_list_opened,!n.isNode()&&this.sort_list_opened&&document.getElementById("a11y-qna-list").focus()}ExpandContent(e,t){this[t+"expand"][e]=!this[t+"expand"][e]}RateContent(e,t="up"){if(!n.isObject(this.signon)||!("id"in this.signon))return this.live_status="You must be logged in to vote",void(n.isWeb()?top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href):n.isCordova()&&n.Events.emit("$native:api-no-session"));if(e.voteinprogress||e.downvoteinprogress)return;e.voteinprogress="up"==t,e.downvoteinprogress="down"==t;let r=e.id,s=e.answers||e.ques_title?"question":"answer",i=s,a=(e.id+"").match(/^([abceq])(\d+)$/);a&&(r=parseInt(a.pop()),i=a.pop(),~["q","a"].indexOf(i)||(i="q"+i)),n.$httpAbort("content-vote-"+e.id),clearTimeout(this.live_status_timer),n.$http({url:n.ajaxUrl(),data:{action:"Answers.Vote",id:r,kind:i,dir:"down"==t?"dn":"up"},id:"content-vote-"+e.id,before:()=>{e.voteinprogress="up"==t,e.downvoteinprogress="down"==t,this.live_status="Voting "+s+" "+t},after:()=>{e.voteinprogress=!1,e.downvoteinprogress=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((n=>{if(this.live_status="",n.error)throw Error("response error");e.upvote=n.votes_up,e.downvote=n.votes_dn,e.upvotelabel=e.upvote+" "+t+" vote"+(1!=e.upvote?"s":""),e.dnvotelabel=e.downvote+" "+t+" vote"+(1!=e.downvote?"s":""),this.live_status="up"==t?e.upvotelabel:e.dnvotelabel,n.upClass&&(e.upvotelabel+=". Pressed"),n.dnClass&&(e.dnvotelabel+=". Pressed"),this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)})).catch((e=>{e instanceof Error?(n.Events.emit("$server:error",{data:e.message}),this.live_status="Error saving your vote"):401==e.status&&(this.live_status="You must be logged in to vote",n.isWeb()?top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href):n.isCordova()&&n.Events.emit("$native:api-no-session")),this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)}))}IsSpecial(e){return~["c","b","e"].indexOf((e+"").charAt(0))}ControlAnsOpt(e){e.options_list_opened=!e.options_list_opened}AnsOpt(e,t){const r=n.stringGetDigits(t.id);0==e&&window.open(`/report-abuse/?ru=${location.href.split("?")[0].split("#")[0]}&t=a&id=${r}`,"_self")}_throwReplyError(e,t="We encountered an error. Please retry"){this.replyerror[e]=this.replyerror[e]||{},this.replyerror[e].message=t,this.replyerror[e].show?(this.replyerror[e].show=!1,setTimeout((()=>{this.replyerror[e].show=!0}))):this.replyerror[e].show=!0}ShowReplybox(e){this.replyinprogress[e]||(this.replyboxshow[e]=!this.replyboxshow[e],this.replyboxshow[e]?this.replyboxinput[e]=this.replyboxinputsubmited[e]||"":(n.arrayForEach(this.schquestions,(t=>{if(t.id==e)return t.reply_bt_focus=!0,setTimeout((()=>{t.reply_bt_focus=!1}),100),!1})),this.replyboxinput[e]=""))}ReplyInput(e,t){this.replyboxinput[t]=e,this.replyerror[t]&&(this.replyerror[t].show=!1)}SubmitReply(e){let t=this.replyboxinput[e.id];t=n.trim(t),!t||t.length<30?this._throwReplyError(e.id,"Content must have 30 characters."):(clearTimeout(this.live_status_timer),this.live_status="Posting answer",n.$http({url:n.ajaxUrl(),data:{action:"Answers.AnswerQuestion",do:"user-answer",question_id:e.id,answer:t},headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},before:()=>{this.replyinprogress[e.id]=!0},after:()=>{delete this.replyinprogress[e.id]}}).then((t=>{if(this.live_status="",t&&"redirect"in t)return n.isCordova()?n.Events.emit("$native:api-no-session","answer-submit-login"):top.location.href=t.redirect,void setTimeout((()=>{this.replyinprogress[e.id]=!0}));if(t.error&&"message"in t){let n=[e.id];const r=t.message.match(/^Bad word `([^`]+)` detected.$/);return r&&r.length&&n.push(`Profanity is not allowed, including words such as "${r[1]}". Please adjust.`),void this._throwReplyError.apply(this,n)}if(t.error)this._throwReplyError(e.id);else{let r=(e.answers||[]).findIndex((e=>e.id==t.id)),s={date:t.date,id:t.id,content:[t.answer],user_login:t.user_login||t.username,user_fullname:n.trim(t.user_fullname||t.fullname||""),user_avatar:t.user_avatar||t.avatar,user_title:t.user_title||"",edited:t.edited},i={id:e.id,has_more_answers:e.has_more_answers,answers:[s]};this._ParseAnswers(i,i.id);let a=i.answers[0];a.my_ans=!0,this.answerexpand[a.id]=!0;let o=a;r>-1?(a.edited=!0,Object.assign(e.answers[r],a),o=e.answers[r]):e.answers.unshift(a),this.replyboxinputsubmited[e.id]=t.answer,delete this.replyboxshow[e.id],this.live_status="Answer posted",o.focuson=!0,setTimeout((()=>{o.focuson=!1}),100),this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)}})).catch((t=>{console.error(t),this._throwReplyError(e.id)})))}QSearch(e,t){this.resultserror=!1;let r=t?null:n.trim(null!=e?e:this._qType.getValue())||"";if(this.current_page=1,n.$httpAbort("qna-search-query"),n.$httpAbort("qna-load-initial"),!r)return void this._StartupLoad(!0);clearTimeout(this.live_status_timer);let s={id:"qna-search-query",url:n.ajaxUrl(),data:{action:"Answers.CommunitySearch",query:r},before:()=>{this.search_loading=!0,this.live_status="Searching for answers"},after:()=>{this.search_loading=!1},method:"GET"};this.quest_category?s.data.category=this._stripSlashes(this.quest_category):s.data.uri=this.ques_referer,n.$http(s).then((e=>{if(!e||!n.isArray(e))throw this.live_status="no matching results",this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3),Error("Data provide is invalid");this.answerexpand={},this.questionexpand={},this.schquestions=this._ParseQuestions(e,(e=>{e.from_search=!0})),this.noresults=0==this.schquestions.length,this.live_status=(this.noresults?"no ":"")+"matching results",this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)})).catch((e=>{e instanceof Error&&console.error(e),this.resultserror=!0,this.live_status="no matching results",setTimeout((()=>{this.live_status=""}),1e3)}))}QReset(){this.QSearch(null,!0)}QClear(){this._qType.next(""),this.qna_key_reset=!0,setTimeout((()=>{this.qna_key_reset=!1}),10)}_stripSlashes(e){return 0==e.indexOf("/")&&(e=e.substring(1)),e.lastIndexOf("/")==e.length-1&&(e=e.substring(0,e.length)),e}ViewMoreAns(e,t){if(e.answers.length>1&&!this.question_more_answers[e.id])return this.question_more_answers[e.id]=!0,void(e.has_more_answers=(e.total_answers||0)>e.answers.length);this.live_status="Loading more answers",n.$http({url:n.ajaxUrl(),method:"GET",data:{action:"Answers.GetMoreAnswers",answers:e.answers.length,qid:e.id,v:2},before:()=>{this.answersmore[e.id]=!0},after:()=>{this.answersmore[e.id]=!1}}).then((r=>{if(this.live_status="",!r||!n.isArray(r.answers))throw Error("Required `answers` Array is not part of response");this.question_more_answers[e.id]=!0,this._ParseAnswers(e,t,r.answers,r.left,((e,t,n)=>{0==n&&(e.focuson=!0,setTimeout((()=>{e.focuson=!1}),100))})),this.live_status="Loaded "+r.answers.length+" more answer"+(1!=r.answers.length?"s":""),setTimeout((()=>{this.live_status=""}),1e3)})).catch((e=>{this.live_status="",console.error(e)}))}AnswerExpanded(e,t){t.is_expanded=e}DisplayShowMoreButton(e,t){t.has_more_button=e}_LoadQues(e){e&&(this.live_status="Questions are now sorted by "+this.sortv,this.current_page=1,this.sortFocus=!0),n.$httpAbort("qna-more-questions");let t,r={uri:this.ques_referer,action:"Answers.GetForPage"};this.is_details&&(r.action="Details.GetQuestions",r.v="3"),this.current_page>1&&(r.p=this.current_page),this.sortingparam&&(r.sort_by=this.sortingparam),n.$http({url:n.ajaxUrl(),method:"GET",data:r,before:()=>{this.questions_more=!0,t=this._dservice&&this._dservice.element&&this._dservice.element.scrollTop,this.live_status=e?"Sorting questions by "+("mv"!=this.sortingparam?"most popular":"most upvotes"):"Loading more questions"},after:()=>{this.questions_more=!1},id:"qna-more-questions"}).then((r=>{if(this.live_status="",!r||!n.isArray(r.questions))throw Error("Required `question` Array is not part of response");this.has_enough_ques=r.pages&&r.pages>1,this.has_more_ques=r.current_page&&r.pages&&r.current_page<r.pages,e?(this.schquestions=[],this.has_enough_ques=!0):(this.live_status="Loaded "+r.questions.length+"more question"+(1!=r.questions.length?"s":""),setTimeout((()=>{this.live_status=""}),1e3)),this.schquestions=this.schquestions.concat(this._ParseQuestions(r.questions,((t,n)=>{0!=n||e||(t.focuson=!0,setTimeout((()=>{t.focuson=!1}),100))}))),this.noresults=0==this.schquestions.length,setTimeout((()=>{this._dservice&&this._dservice.element&&this._dservice.scrollTo({position:t,timing:0})}))})).catch((e=>{this.live_status="",console.error(e)}))}ViewMoreQuestions(){this.current_page++,this._LoadQues()}ChangeSort(e){if(this.sortv=this.sortList[e],1===e)this.sortingparam="mv";else this.sortingparam="mp";this._LoadQues(!0),this.sort_list_closed=!0,this.sort_list_opened=!1,setTimeout((()=>{this.sort_list_opened=!1,this.sort_list_closed=!1}))}AskQuestion(e){let t=e&&e.currentTarget;this._quesOverlay&&this._quesOverlay.Open(le,{input:this.ques_ask||this._qType.getValue()||"",referer:n.baseUrl()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories},{return_focus_to:t||null})}_parseInitialData(e){this.schquestions=this._ParseQuestions(e.questions||[]),this.noresults=0==this.schquestions.length,this.has_enough_ques=e.pages&&e.pages>1,this.has_more_ques=e.current_page&&e.pages&&e.current_page<e.pages,this.load_startup_fail=!1,this.noresults?this.schq_count=null:this.schq_count=`${e.total_questions} question${1!=e.total_questions?"s":""}`,this.total_ques.emit(e.total_questions||0),e.categories&&!this.ask_quest_categories&&(this.ask_quest_categories=e.categories),e.current_page&&e.current_page>1&&(this.current_page=e.current_page)}_StartupLoad(e){this.load_startup_fail=!1;let t={uri:this.ques_referer,action:"Answers.GetForPage"};this.current_page>1&&(t.p=this.current_page),this.sortingparam&&(t.sort_by=this.sortingparam),n.$httpAbort("qna-load-initial"),n.$http({url:n.ajaxUrl(),method:"GET",data:t,before:()=>{e?this.search_loading=!0:this.load_startup=!0},after:()=>{e?this.search_loading=!1:this.load_startup=!1},id:"qna-load-initial"}).then((t=>{if(!t||t.error||t.questions&&!n.isArray(t.questions))throw Error("Required `question` Array is not part of response");this._parseInitialData(t),e&&(this.has_enough_ques=!0)})).catch((e=>{console.error(e),this.load_startup_fail=!0}))}RetryLoadData(){this._StartupLoad()}ngOnInit(){this.sortv=this.sortList[0],this.sortingparam="mp",n.isNode()||!n.Cookies.get("mw_signon")&&!n.AppData.group("mw_cookies")?this.user_avatar=null:(this.signon=n.Cookies.get("mw_signon")?JSON.parse(n.Cookies.get("mw_signon")):null,this.user_avatar=this.signon&&this.signon.pp||this.user_avatar_fallback);let e=this._location.path().split("?")[0];if(this.ques_referer=this.ques_referer||e.replace("/ng-home",""),0!=this.ques_referer.indexOf("/")&&(this.ques_referer="/"+this.ques_referer),this.ques_referer.startsWith("/personal-loans")||this.ques_referer.lastIndexOf("/")!==this.ques_referer.length-1&&(this.ques_referer+="/"),this.page_query&&!n.isNode()&&this._route.queryParams.pipe(t.take(1)).subscribe((e=>{let t=e[this.page_query],r=t?n.toNumber(t):0;r&&(this.ques_data&&this.ques_data.pages?r<=this.ques_data.pages&&r!=this.ques_data.current_page?(this.current_page=r,this.ques_data=null):this.ques_data.questions.length<1&&(this.ques_data.pages=1):(this.current_page=r,this.ques_data=null))})),this.ques_data&&this.ques_data.questions&&n.isArray(this.ques_data.questions)?this._parseInitialData(this.ques_data):n.isNode()||(this.load_startup=!0,setTimeout((()=>{this._StartupLoad()}),this.start_delay||1)),!n.isNode()){let e,r;const s=this._qType.pipe(t.debounceTime(200)).subscribe({next:t=>{let s=n.trim((t||"").replace(/(\r\n\t|\n|\r\t)/gm," "));null!==t&&s!=e&&s.length>1?(e=s,r=!0,this.QSearch(s)):r&&(!s||s.length<2)&&(e=s,r=!1,this.QReset())},error:()=>{},complete:()=>{s.unsubscribe()}})}}ngAfterViewInit(){n.isNode()||n.reqAnimationFrame((()=>{this.allow_animation=!0}))}ngOnDestroy(){this._qType.complete()}}wt.ɵfac=function(e){return new(e||wt)(t["ɵɵdirectiveInject"](t.Location),t["ɵɵdirectiveInject"](E),t["ɵɵdirectiveInject"](n.ScrollerService))},wt.ɵcmp=t["ɵɵdefineComponent"]({type:wt,selectors:[["","id","qna-box"]],viewQuery:function(e,n){if(1&e&&(t["ɵɵviewQuery"](xe,5),t["ɵɵviewQuery"](ve,5),t["ɵɵviewQuery"](be,5)),2&e){let e;t["ɵɵqueryRefresh"](e=t["ɵɵloadQuery"]())&&(n.txtElement=e.first),t["ɵɵqueryRefresh"](e=t["ɵɵloadQuery"]())&&(n._quesOverlay=e.first),t["ɵɵqueryRefresh"](e=t["ɵɵloadQuery"]())&&(n._answersList=e)}},hostVars:4,hostBindings:function(e,n){2&e&&t["ɵɵclassProp"]("qna-type1",0==n.layout_type)("qna-no-more",!n.has_view_more)},inputs:{layout_type:["type","layout_type"],product_name:["product-name","product_name"],ques_data:["product-questions","ques_data"],ques_referer:["product-referer","ques_referer"],intro_content:["use-intro","intro_content"],intro_truncate:["intro-truncate","intro_truncate"],quest_category:["product-category","quest_category"],start_delay:["startup-delay","start_delay"],section_title:["section-title","section_title"],show_header:["show-header","show_header"],ask_quest_categories:["question-categories","ask_quest_categories"],is_details:["details-qna","is_details"],nodetruncate:["ssr-answer-truncate","nodetruncate"],toggleSchema:["toggle-schema","toggleSchema"],open_popup:["show-ask-popup","open_popup"],focus_on_input:["scroll-to-ask","focus_on_input"],addAskParams:["question-ask-add-params","addAskParams"],page_query:["pagination-query","page_query"]},outputs:{total_ques:"total-questions"},attrs:["id","qna-box"],decls:22,vars:26,consts:[[3,"ng-aria-live"],["class","qna-heading qnah-2 bold-font",4,"ngIf"],["class","qna-heading",3,"ngClass","ng-context",4,"ngIf"],["class","qna-prg",4,"ngIf"],["zing-touch","","class","qna-prg",3,"zing-url-container","cleanHTML",4,"ngIf"],["class","qna-prg","zing-touch","",3,"zing-url-container","ng-truncate","breakwords","breakpoint",4,"ngIf"],["class","qna-search-box",4,"ngIf"],[1,"qna-sort",3,"ngClass","ng-hidden"],["role","button","tabindex","0","ng-focus","","aria-haspopup","listbox","aria-controls","a11y-qna-list","aria-owns","a11y-qna-list","zing-touch","",1,"qna-most-list-active","inline-block",3,"focus-when","no-click","onClick","onTapOutside"],["aria-hidden","true","tabindex","-1",1,"af-icon-down-open"],["id","a11y-qna-list","role","listbox","ng-focus","","tabindex","0","aria-labelledby","label-id-qna-sort",1,"qna-most-list","basic-trans",3,"focus-when","no-click","ng-hidden"],["role","option","tabindex","0","class","qna-most-list-it bold-font","zing-touch","",3,"qnaml-first","onClick",4,"ngFor","ngForOf","ngForTrackBy"],["id","label-id-qna-sort","hidden","true"],["class","qna-form-box",4,"ngIf"],["class","qna-questions-box",3,"qna-qb-loading","ng-hidden","ng-attribute","ng-attribute-when",4,"ngIf"],["class","qna-q-get-more",4,"ngIf"],["title",""],["quesOverlay",""],["class","qna-startup-load progress-indicator-container ng-enter-element",4,"ngIf"],["class","qna-startup-fail ng-enter-element",4,"ngIf"],[1,"qna-heading","qnah-2","bold-font"],[3,"ng-context"],["class","qa-count semi-bold-font",4,"ngIf"],[1,"qa-count","semi-bold-font"],[1,"qna-heading",3,"ngClass","ng-context"],[1,"qna-prg"],["zing-touch","","target","_blank","rel","noopener",1,"link",3,"href","zing-url"],["zing-touch","",1,"qna-prg",3,"zing-url-container","cleanHTML"],["zing-touch","",1,"qna-prg",3,"zing-url-container","ng-truncate","breakwords","breakpoint"],[1,"qna-search-box"],["aria-label","Search for answers",1,"label-input","full",3,"scroll-to"],["placeholder","Have a question? Search for answers","ng-autosize","","aria-label","keyword",1,"qna-search-input","textarea",3,"value","sizeupdate","input"],["class","qba-sc-cross lbl-b ng-enter-element","zing-touch","","role","button","aria-label","Clear field",3,"onTap",4,"ngIf"],["aria-label","Search","type","button","zing-touch","",1,"lbl-b","action","af-icon-search",3,"ng-hidden","onTap"],[1,"qna-ask-q-suggest","semi-bold-font","ng-enter-element",3,"ng-hidden"],[4,"ngIf"],["zing-touch","","aria-haspopup","dialog",1,"btn","fixed-w-h",3,"onClick"],["aria-hidden","true","tabindex","-1"],["class","qna-search-state bold-font",4,"ngIf"],["zing-touch","","role","button","aria-label","Clear field",1,"qba-sc-cross","lbl-b","ng-enter-element",3,"onTap"],[1,"qna-search-state","bold-font"],["role","option","tabindex","0","zing-touch","",1,"qna-most-list-it","bold-font",3,"onClick"],[1,"qna-form-box"],["class","qna-fb-hero",4,"ngIf"],[1,"qna-ques-form"],[1,"qna-qf-av"],["width","40","height","40","alt","",3,"src","on-img-error"],[1,"qna-qf-input",3,"scroll-to"],["placeholder","Have a question? Ask the WalletHub community.","aria-label","Ask a question","ng-autosize","",1,"qna-qf-txt","textarea","semi-bold-font",3,"value","input"],["zing-touch","","aria-haspopup","dialog",1,"btn","fixed-w-f",3,"onClick"],[1,"qna-fb-hero"],[1,"qna-questions-box",3,"ng-hidden","ng-attribute","ng-attribute-when"],["class","qna-loading-box ng-enter-element",4,"ngIf"],["class","qna-question-item",3,"qna-q-search","ng-attribute","ng-attribute-when",4,"ngFor","ngForOf","ngForTrackBy"],[1,"qna-loading-box","ng-enter-element"],[1,"progress-indicator","always-v","visible"],[1,"qna-question-item",3,"ng-attribute","ng-attribute-when"],[1,"qna-q-title-box","bold-font",3,"ng-attribute","ng-attribute-when"],["class","qna-q-title link","zing-touch","","rel","noopener","ng-focus","",3,"href","zing-url","cleanHTML","qt-as-link","focus-when","no-click",4,"ngIf"],["class","qna-q-title link",3,"cleanHTML","qt-as-link",4,"ngIf"],[1,"qna-q-upvotes"],[1,"qna-q-upvotes-count",3,"ng-attribute","ng-attribute-when"],[1,"bold-font"],["class","qna-q-content ng-enter-element text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content ng-enter-element qna-q-desk text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content qna-q-desk",4,"ngIf"],["class","qna-q-content-more semi-bold-font","zing-touch","","role","button","aria-expanded","false",3,"ng-hidden","onTap",4,"ngIf"],["class","qna-q-content-more semi-bold-font","zing-touch","","role","button","aria-expanded","true",3,"ng-hidden","onTap",4,"ngIf"],[1,"qna-q-actions"],["class","qna-q-reply link semi-bold-font","zing-touch","","role","button","tabindex","0","ng-focus","",3,"focus-when","no-click","onClick",4,"ngIf"],[1,"qna-q-thumbs"],["zing-touch","","role","button","tabindex","0",1,"up","vote","bf-icon-upvote","progress-indicator","qna-qvt",3,"zing-no-touch","onTap"],["class","progress-spin","aria-hidden","true","tabindex","-1",4,"ngIf"],[1,"vote-text"],["zing-touch","","role","button","tabindex","0",1,"dn","vote","bf-icon-downvote","progress-indicator",3,"zing-no-touch","onTap"],["class","qna-q-replyform ng-enter-element","form-submit","",3,"onSubmit",4,"ngIf"],[1,"qna-q-answers",3,"ng-hidden"],["class","qna-q-ans basic-trans",3,"ng-hidden","ng-attribute","ng-attribute-when",4,"ngFor","ngForOf","ngForTrackBy"],["class","qna-qa-show-more progress-indicator-container",4,"ngIf"],["zing-touch","","rel","noopener","ng-focus","",1,"qna-q-title","link",3,"href","zing-url","cleanHTML","focus-when","no-click"],[1,"qna-q-title","link",3,"cleanHTML"],[1,"qna-q-content","ng-enter-element","text-select",3,"cleanHTML"],[1,"qna-q-content","ng-enter-element","qna-q-desk","text-select",3,"cleanHTML"],[1,"qna-q-content","qna-q-desk"],["zing-touch","","role","button","aria-expanded","false",1,"qna-q-content-more","semi-bold-font",3,"ng-hidden","onTap"],["zing-touch","","role","button","aria-expanded","true",1,"qna-q-content-more","semi-bold-font",3,"ng-hidden","onTap"],["zing-touch","","role","button","tabindex","0","ng-focus","",1,"qna-q-reply","link","semi-bold-font",3,"focus-when","no-click","onClick"],["aria-hidden","true","tabindex","-1",1,"progress-spin"],["form-submit","",1,"qna-q-replyform","ng-enter-element",3,"onSubmit"],[1,"avatar"],["width","","height","","alt","",3,"src","on-img-error"],[1,"reply-box","ck-answer-editor"],[3,"value","active","cursor-focus","readonly","valueChange"],[1,"reply-act"],[3,"message","show","close-on-change","timer"],["type","button","aria-label","Cancel","zing-touch","",1,"btn","grey","fixed-w",3,"disabled","onClick"],["type","submit","aria-label","Submit","zing-touch","",1,"btn","blue","fixed-w","with-loader","no-disabled",3,"disabled","zing-feedback"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"qna-q-ans","basic-trans",3,"ng-hidden","ng-attribute","ng-attribute-when"],[1,"qna-qa-top"],[1,"avatar",3,"defer-src","src-fallback","ui-hydrate"],["alt","user avatar","width","40","height","40",1,"avatar-img"],["deferImg",""],[1,"qna-qa-names","text-select"],["class","full-name semi-bold-font",4,"ngIf"],["aria-hidden","true","tabindex","-1",1,"second-name"],["class","qna-qa-sort","role","listbox",4,"ngIf"],["zing-touch","",1,"qna-q-ans-content","with-links","text-select",3,"zing-url-container","expand-content","breakwords","breakwords-static","collapse-button","ng-truncate","sanitize-cfg","ng-attribute","ng-attribute-when","expand-button","onExpand","hasExpandButton"],["class","qna-q-ans-content qna-ans-show-more",4,"ngIf"],["class","qna-q-thumbs",4,"ngIf"],[1,"full-name","semi-bold-font"],["class","author-cap",4,"ngIf"],[1,"author-cap"],["role","listbox",1,"qna-qa-sort"],["zing-touch","",1,"af-icon-down-open","cursor-pointer",3,"onTap","onTapOutside"],["zing-touch","",1,"qna-most-list","basic-trans",3,"ng-hidden","onTap"],["role","option","zing-touch","","class","qna-most-list-it bold-font",3,"qnaml-first","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["role","option","zing-touch","",1,"qna-most-list-it","bold-font",3,"onTap"],[1,"qna-q-ans-content","qna-ans-show-more"],["zing-touch","","rel","nofollow",1,"qna-ans-show-more-button","link",3,"href","zing-url"],["aria-hidden","true","tabindex","-1",1,"bf-icon-right-open-big"],["zing-touch","","role","button","tabindex","0",1,"up","vote","bf-icon-upvote","progress-indicator",3,"zing-no-touch","onTap"],["aria-hidden","true","tabindex","-1","class","progress-spin",4,"ngIf"],[1,"vote-text",3,"ng-attribute","ng-attribute-when"],[1,"qna-qa-show-more","progress-indicator-container"],["class","progress-indicator visible",4,"ngIf"],["zing-touch","","role","button",1,"qna-qa-sm-bt","link","inherit",3,"onTap"],[1,"progress-indicator","visible"],[1,"qna-q-get-more"],["class","btn blue-brds tall with-loader no-disabled bold-font","aria-label","View More Questions","zing-touch","",3,"loadactive","onTap",4,"ngIf"],["zing-touch","","aria-label","Ask Your Question",1,"btn","tall","qna-qgm-btn-last","blue-brds","bold-font",3,"onClick"],[1,"qna-qgm-mhide"],["aria-label","View More Questions","zing-touch","",1,"btn","blue-brds","tall","with-loader","no-disabled","bold-font",3,"onTap"],[1,"bt-text"],[1,"qna-startup-load","progress-indicator-container","ng-enter-element"],[1,"qna-startup-fail","ng-enter-element"],[1,"qna-prg","center","semi-bold-font","qna-prg-smaller"],[1,"center"],["zing-touch","",1,"btn","blue-brds","fixed-w-f","with-loader",3,"onTap"]],template:function(e,n){1&e&&(t["ɵɵelement"](0,"div",0),t["ɵɵtemplate"](1,ye,3,2,"h2",1),t["ɵɵtemplate"](2,Ee,1,5,"h2",2),t["ɵɵtemplate"](3,Ce,6,3,"p",3),t["ɵɵtemplate"](4,Se,1,2,"p",4),t["ɵɵtemplate"](5,Te,1,4,"p",5),t["ɵɵtemplate"](6,Le,13,12,"div",6),t["ɵɵelementStart"](7,"div",7)(8,"span",8),t["ɵɵlistener"]("onClick",(function(){return n.ControlSortList()}))("onTapOutside",(function(){return n.ControlSortList(!1)})),t["ɵɵtext"](9),t["ɵɵelement"](10,"i",9),t["ɵɵelementEnd"](),t["ɵɵelementStart"](11,"ul",10),t["ɵɵtemplate"](12,Ne,2,3,"li",11),t["ɵɵelementEnd"](),t["ɵɵelementStart"](13,"div",12),t["ɵɵtext"](14,"Questions sort"),t["ɵɵelementEnd"]()(),t["ɵɵtemplate"](15,Fe,9,5,"div",13),t["ɵɵtemplate"](16,gt,3,8,"div",14),t["ɵɵtemplate"](17,ft,7,1,"div",15),t["ɵɵelement"](18,"modal-dialog",16,17),t["ɵɵtemplate"](20,xt,3,0,"div",18),t["ɵɵtemplate"](21,vt,7,0,"div",19)),2&e&&(t["ɵɵproperty"]("ng-aria-live",n.live_status),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.show_header&&1==n.layout_type),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.show_header&&1!=n.layout_type),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.product_name),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.intro_content&&!n.intro_truncate),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.intro_content&&n.intro_truncate),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.has_enough_ques&&!n.load_startup&&!n.load_startup_fail),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngClass",t["ɵɵpureFunction1"](24,bt,n.allow_animation))("ng-hidden",!n.has_enough_ques||0==n.schquestions.length||n.show_search_state||n.show_search_state_empty||n.resultserror),t["ɵɵadvance"](1),t["ɵɵproperty"]("focus-when",n.sort_list_closed)("no-click",!0),t["ɵɵattribute"]("aria-expanded",n.sort_list_opened)("aria-label",n.sortv),t["ɵɵadvance"](1),t["ɵɵtextInterpolate1"]("",n.sortv," "),t["ɵɵadvance"](2),t["ɵɵproperty"]("focus-when",n.sort_list_opened)("no-click",!0)("ng-hidden",!n.sort_list_opened),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngForOf",n.sortList)("ngForTrackBy",n.trackByFn),t["ɵɵadvance"](3),t["ɵɵproperty"]("ngIf",!n.has_enough_ques&&!n.load_startup&&!n.load_startup_fail),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.search_loading||n.questions_more||n.schquestions.length),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.has_view_more),t["ɵɵadvance"](3),t["ɵɵproperty"]("ngIf",n.load_startup&&!n.load_startup_fail),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",n.load_startup_fail))},dependencies:[t.NgClass,t.NgForOf,t.NgIf,n.ngHidden,n.ngAttribute,n.ngZenScroll,n.ngCleanHTML,n.ngCleanBind,n.TouchGestures,n.ngAriaLive,n.ErrorToastComponent,U,n.ImageLoader,n.ngModalDialog,j,D,n.FormSubmit,ge,n.ngFocus],encapsulation:2});class yt{}yt.ɵfac=function(e){return new(e||yt)},yt.ɵmod=t["ɵɵdefineNgModule"]({type:yt}),yt.ɵinj=t["ɵɵdefineInjector"]({imports:[t.CommonModule,n.DirectivesModule,n.ErrorsModule,G,n.ImageLoaderModule,I,n.ngModalsModule,n.StickerModule,R,Q,n.FormSubmitModule,ce,fe,n.ngFocusModule]});function qt(e,n){1&e&&(t["ɵɵelementStart"](0,"div",10),t["ɵɵelement"](1,"i"),t["ɵɵelementEnd"]())}function Et(e,n){if(1&e&&(t["ɵɵelementStart"](0,"div",11),t["ɵɵelement"](1,"h2",12),t["ɵɵelementEnd"]()),2&e){const e=t["ɵɵnextContext"](2);t["ɵɵadvance"](1),t["ɵɵproperty"]("innerHTML",e.header_text||"Ask the Experts",t["ɵɵsanitizeHtml"])("ng-speak-when",e.head_focus)}}function Ct(e,n){if(1&e&&t["ɵɵelement"](0,"div",13),2&e){const e=t["ɵɵnextContext"](2);t["ɵɵproperty"]("cleanHTML",e.intro)}}function St(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementContainerStart"](0),t["ɵɵelementStart"](1,"span",21),t["ɵɵtext"](2),t["ɵɵelementEnd"](),t["ɵɵelement"](3,"br"),t["ɵɵelementStart"](4,"i",22),t["ɵɵtext"](5),t["ɵɵelementEnd"](),t["ɵɵelement"](6,"br"),t["ɵɵelementStart"](7,"span",23),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.gotToOne(n.HASHTAG))})),t["ɵɵtext"](8,"Read More"),t["ɵɵelementEnd"](),t["ɵɵelementContainerEnd"]()}if(2&e){const e=t["ɵɵnextContext"](),n=e.index,r=e.$implicit,s=t["ɵɵnextContext"](2);t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-speak-when",s.center_experts&&0===n),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](r.AUTHOR),t["ɵɵadvance"](3),t["ɵɵtextInterpolate"](r.CAPTION)}}function Tt(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementContainerStart"](0),t["ɵɵelementStart"](1,"span",24),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"]().$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.gotToOne(n.HASHTAG))})),t["ɵɵelementEnd"](),t["ɵɵelementContainerEnd"]()}if(2&e){const e=t["ɵɵnextContext"]().$implicit;t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-context",e.AUTHOR)}}function kt(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",14)(1,"div",15)(2,"span",16),t["ɵɵlistener"]("onClick",(function(){const n=t["ɵɵrestoreView"](e).$implicit,r=t["ɵɵnextContext"](2);return t["ɵɵresetView"](r.gotToOne(n.HASHTAG))})),t["ɵɵelement"](3,"img",17,18),t["ɵɵelementEnd"]()(),t["ɵɵelementStart"](5,"div",19),t["ɵɵtemplate"](6,St,9,3,"ng-container",20),t["ɵɵtemplate"](7,Tt,2,1,"ng-container",20),t["ɵɵelementEnd"]()()}if(2&e){const e=n.$implicit,r=t["ɵɵnextContext"](2);t["ɵɵclassProp"]("gallery-item-logo",r.as_logos),t["ɵɵadvance"](2),t["ɵɵproperty"]("defer-src",e.AVATAR)("zing-no-touch",!0)("ui-hydrate",r.srv_no_avatars),t["ɵɵattribute"]("aria-label",e.AUTHOR),t["ɵɵadvance"](1),t["ɵɵclassProp"]("exp-img-logo",r.as_logos),t["ɵɵproperty"]("alt",e.AUTHOR),t["ɵɵadvance"](3),t["ɵɵproperty"]("ngIf",!r.as_logos),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",r.as_logos)}}function It(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"div",25)(1,"span",26),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"](2);return t["ɵɵresetView"](n.showMoreExperts())})),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"](2);t["ɵɵadvance"](1),t["ɵɵproperty"]("ng-context",e.more_btn_txt)}}function At(e,n){if(1&e&&(t["ɵɵelementStart"](0,"i"),t["ɵɵtext"](1),t["ɵɵelementEnd"]()),2&e){const e=t["ɵɵnextContext"](3);t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](null==e.expert_full?null:e.expert_full.CAPTION)}}function zt(e,n){if(1&e&&t["ɵɵelement"](0,"div",33),2&e){const e=t["ɵɵnextContext"](3);t["ɵɵproperty"]("innerHtml",e.expert_full.CONTENT,t["ɵɵsanitizeHtml"])}}function Mt(e,n){if(1&e&&t["ɵɵelement"](0,"div",34),2&e){const e=t["ɵɵnextContext"](3);t["ɵɵproperty"]("cleanHTML",e.expert_full.CONTENT)("cleanHTML-sett",e.doompurifySett)}}function Lt(e,n){if(1&e){const e=t["ɵɵgetCurrentView"]();t["ɵɵelementStart"](0,"article",27),t["ɵɵelement"](1,"img",28),t["ɵɵelementStart"](2,"h3",29),t["ɵɵtext"](3),t["ɵɵelementEnd"](),t["ɵɵtemplate"](4,At,2,1,"i",20),t["ɵɵtemplate"](5,zt,1,1,"div",30),t["ɵɵtemplate"](6,Mt,1,2,"div",31),t["ɵɵelementStart"](7,"button",32),t["ɵɵlistener"]("onClick",(function(){t["ɵɵrestoreView"](e);const n=t["ɵɵnextContext"](2);return t["ɵɵresetView"](n.goToAll())})),t["ɵɵtext"](8),t["ɵɵelementEnd"]()()}if(2&e){const e=t["ɵɵnextContext"](2);t["ɵɵclassProp"]("exp-logo-profile",e.as_logos),t["ɵɵadvance"](1),t["ɵɵproperty"]("src",null==e.expert_full?null:e.expert_full.AVATAR,t["ɵɵsanitizeUrl"]),t["ɵɵadvance"](2),t["ɵɵtextInterpolate"](null==e.expert_full?null:e.expert_full.AUTHOR),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!e.as_logos),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!e.as_logos),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.as_logos),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngClass",e.back_bt_class),t["ɵɵadvance"](1),t["ɵɵtextInterpolate"](e.back_bt_text)}}const Nt=function(e,t,n,r,s,i){return{"exp-gal-one-it":e,"exp-gal-two-it":t,"expert-single":n,"blink-end":r,empty:s,"experts-format-a":i}};function Vt(e,n){if(1&e&&(t["ɵɵelementStart"](0,"section",1),t["ɵɵtemplate"](1,qt,2,0,"div",2),t["ɵɵtemplate"](2,Et,2,2,"div",3),t["ɵɵtemplate"](3,Ct,1,1,"div",4),t["ɵɵelementStart"](4,"div",5)(5,"div",6),t["ɵɵtemplate"](6,kt,8,11,"div",7),t["ɵɵtemplate"](7,It,2,1,"div",8),t["ɵɵtemplate"](8,Lt,9,9,"article",9),t["ɵɵelementEnd"]()()()),2&e){const e=t["ɵɵnextContext"]();t["ɵɵproperty"]("ngClass",t["ɵɵpureFunction6"](13,Nt,e.experts.length<2,e.experts.length<3,e.expert_single,!e.expert_single&&!e.loading&&!e.is_initial,e.emptydata,1==e.layout_format))("scroll-to",e.scrollall),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.loading),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",!e.layout_format),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.intro&&!e.expert_single),t["ɵɵadvance"](1),t["ɵɵclassProp"]("all",!e.expert_single),t["ɵɵproperty"]("scroll-to",e.center_experts),t["ɵɵadvance"](1),t["ɵɵproperty"]("scroll-to",e.scrollsingle)("scrolloffset",e.expert_offset),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngForOf",e.experts),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.hasmoreexperts&&!e.expert_single),t["ɵɵadvance"](1),t["ɵɵproperty"]("ngIf",e.expert_single)}}l.import("css:/components/experts-gallery.css").then((()=>{}),(()=>{}));class Ft{constructor(e){this._zone=e,this.experts=[],this.expert_single=!1,this.expert_offset=0,this.max_experts=Number.MAX_SAFE_INTEGER,this.header_text="",this.srv_no_avatars=!1,this.no_scroll_all=!1,this.current_page=0,this.questions=[],this.scrollall=!1,this.head_focus=!1,this.center_experts=!1,this.scrollsingle=!1,this.loading=!1,this.emptydata=!1,this.norender=!1,this.dataerror=!1,this.hasmoreexperts=!1,this.isnode=!1,this.doompurifySett={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript","iframe"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","src"]},this.as_logos=!1,this.is_initial=!0,this._rendered=!1,this._hashtaglist={},this._refreshonurl=!1,this.refreshdelay=1,this.asyncdata=!1,this.server_render=!1,this.layout_format=0,this.back_bt_text="Back to All Experts",this.back_bt_class="btn blue",this.more_btn_txt="More Experts",this.changedExpert=new t.EventEmitter,this.tagMatch=new t.EventEmitter,this._servertransitwait=!0}get hashname(){return this._hashname}set hashname(e){this._hashname=e,e&&this._rendered?this._goToExpert(e):this.expert_single=!1}set data(e){this._data=e,e&&n.isArray(e.expertsContent)?(n.$httpAbort("experts-gallery"),this.expert_single=!1,this._parseExperts(this._data),this.asyncdata&&this._setExpertsPagination(),!this.emptydata&&this._hashname&&this._goToExpert(this._hashname),e.aslogos&&(this.as_logos=!0)):e&&!e.expertsContent&&(this.emptydata=!0)}get data(){return this._data}get urlpath(){return this._urlpath}set urlpath(e){let t=e&&e!==this._urlpath;this._urlpath=e,t&&(this.urlrefresh=this.urlrefresh)}set urlrefresh(e){this._refreshonurl=e,e&&this._urlpath&&!this._data&&!this.asyncdata?this._refreshonurl=!0:this._refreshonurl=!1}get urlrefresh(){return this._refreshonurl}_goToExpert(e,t){this.is_initial=!1;let r,s=()=>{this.scrollsingle=!0,setTimeout((()=>{this.scrollsingle=!1}),100)};e=e.toString().toLowerCase(),this._hashtaglist.hasOwnProperty(e)&&this._data.expertsContent[this._hashtaglist[e]]?(this.expert_single=!0,this.expert_full!==this._data.expertsContent[this._hashtaglist[e]]&&(this.expert_full=this._data.expertsContent[this._hashtaglist[e]],n.reqAnimationFrame((()=>{this._zone.run((()=>{if(n.isWeb()&&this._servertransitwait){if(!t){let e=n.Events.subscribe("server:transitscroll",(t=>{"done"!=t&&"none"!=t||s(),setTimeout((()=>{e&&e.unsubscribe()}))}))}this._servertransitwait=!1}else t||s()}))}))),r=!0):r=!1,this.tagMatch.emit(r)}_storeTags(){this._hashtaglist={};for(let e=0,t=this.experts.length;e<t;e++){let t=this.experts[e].HASHTAG.substring(1);t=t.toLowerCase(),this._hashtaglist[t]=e+(0===this.current_page?0:this.current_page-1)*this.max_experts}}_parseExperts(e){e.expertsContent.length>0?(this.experts=e.expertsContent,this.hasmoreexperts=!!this.max_experts&&e.expertsContent.length>this.max_experts,this.intro=e.expertsIntro||null,this._storeTags(),this._hashname&&this._goToExpert(this._hashname),this.emptydata=!1):(this.emptydata=!0,this._hashtaglist=[])}_setExpertsPagination(){this.hasmoreexperts=!!this.max_experts&&this.experts.length>this.max_experts,this.experts=(this.experts||[]).slice(this.current_page*this.max_experts,++this.current_page*this.max_experts)}_throwError(e,t){this.dataerror=!0,n.RavenRequestFail(e,"NG Experts Gallery : Data Request Error",{action:t})}_getExpertsByUrl(){this.expert_single=!1,n.$httpAbort("experts-gallery"),this.loading=!0,n.$http({method:"GET",url:n.ajaxUrl(),id:"experts-gallery",before:()=>{this.loading=!0},after:()=>{this.loading=!1},data:{action:"Posts.GetExpertsGallery",path:this.urlpath},events:!1}).then((e=>{if(e&&!e.error){let t=e.data;n.isObject(t)&&n.isArray(t.expertsContent)?(this._data=t,this._parseExperts(t)):this.emptydata=!0}else this._throwError({data:e,status:200,type:"response"},this.urlpath)}),(e=>{this._throwError(e,this.urlpath)}))}ngOnInit(){this.isnode=n.isNode(),this.isnode?this.server_render?this.norender=!this._data&&!this.asyncdata:this.norender=!0:(!this._data&&this.urlpath&&this.urlrefresh&&!this.asyncdata?this.loading=!0:this.loading=!1,this.loading||this.asyncdata||this.data||(this.emptydata=!0),this.urlrefresh&&setTimeout((()=>{this._getExpertsByUrl()}),this.refreshdelay),this.as_logos?(this.more_btn_txt||(this.more_btn_txt="More Retailers"),this.back_bt_text||(this.back_bt_text="Back to All Retailers")):(this.more_btn_txt||(this.more_btn_txt="More Experts"),this.back_bt_text||(this.back_bt_text="Back to All Experts"))),this.asyncdata||this._setExpertsPagination()}ngAfterViewInit(){this._rendered=!0,this.isnode?this._servertransitwait=!1:this.data&&!this.emptydata&&this._hashname?n.reqAnimationFrame((()=>this._goToExpert(this._hashname))):this.asyncdata||(this._servertransitwait=!1)}ngOnDestroy(){n.$httpAbort("experts-gallery")}goToAll(){this.expert_single=!1,this.scrollsingle=!1,this.expert_full=null,this.no_scroll_all||(this.scrollall=!0),this.head_focus=!0,setTimeout((()=>{this.no_scroll_all||(this.scrollall=!1),this.head_focus=!1}),100),this.changedExpert.emit(null)}gotToOne(e){let t=e.substring(1);this.expert_full=null,this._goToExpert(t),this.changedExpert.emit(t)}showMoreExperts(){var e=this._data.expertsContent,t=e.length;this.experts=e.slice(this.current_page*this.max_experts,++this.current_page*this.max_experts),this._storeTags(),this.current_page&&this.current_page*this.max_experts>=t&&(this.current_page=0),this.center_experts=!1,setTimeout((()=>{this.center_experts=!0,n.reqAnimationFrame((()=>{this.center_experts=!1}))}))}}Ft.ɵfac=function(e){return new(e||Ft)(t["ɵɵdirectiveInject"](t.NgZone))},Ft.ɵcmp=t["ɵɵdefineComponent"]({type:Ft,selectors:[["div","id","experts-gallery"]],inputs:{expert_offset:["scroll-offset","expert_offset"],max_experts:["max-experts","max_experts"],header_text:["header-text","header_text"],srv_no_avatars:["ui-hydrate-avatars","srv_no_avatars"],no_scroll_all:["no-scroll-all","no_scroll_all"],hashname:["hashtag","hashname"],data:"data",urlpath:"urlpath",urlrefresh:"urlrefresh",refreshdelay:"refreshdelay",asyncdata:"asyncdata",server_render:["server-render","server_render"],layout_format:["format","layout_format"],back_bt_text:["back-bt-text","back_bt_text"],back_bt_class:["back-bt-class","back_bt_class"],more_btn_txt:["more-bt-text","more_btn_txt"]},outputs:{changedExpert:"changedExpert",tagMatch:"tagMatch"},attrs:["id","experts-gallery"],decls:1,vars:1,consts:[["class","experts-gallery",3,"ngClass","scroll-to",4,"ngIf"],[1,"experts-gallery",3,"ngClass","scroll-to"],["class","progress-indicator visible",4,"ngIf"],["class","header-part",4,"ngIf"],["class","intro-part with-links",3,"cleanHTML",4,"ngIf"],[1,"container",3,"scroll-to"],[1,"gallery",3,"scroll-to","scrolloffset"],["class","gallery-item",3,"gallery-item-logo",4,"ngFor","ngForOf"],["class","more-experts",4,"ngIf"],["class","text-select expert-profile ng-enter-element slide",3,"exp-logo-profile",4,"ngIf"],[1,"progress-indicator","visible"],[1,"header-part"],["ng-speak","header",3,"innerHTML","ng-speak-when"],[1,"intro-part","with-links",3,"cleanHTML"],[1,"gallery-item"],[1,"gallery-icon"],["tabindex","0","role","img button","zing-touch","",1,"gall-ic-action",3,"defer-src","zing-no-touch","ui-hydrate","onClick"],["height","110","width","110","tabindex","-1","aria-hidden","true",1,"expert-image",3,"alt"],["deferImg",""],[1,"wp-caption-text","gallery-caption"],[4,"ngIf"],["tabindex","0","ng-speak","header",1,"text-select",3,"ng-speak-when"],[1,"text-select"],["role","button","tabindex","0","zing-touch","",1,"read-more","touch-element-cl",3,"onClick"],["zing-touch","","role","button",1,"read-more","touch-element-cl",3,"ng-context","onClick"],[1,"more-experts"],["zing-touch","","role","button","tabindex","0",3,"ng-context","onClick"],[1,"text-select","expert-profile","ng-enter-element","slide"],["height","200","width","200","alt","",1,"profile-img",3,"src"],["ng-speak","header"],["class","description-text",3,"innerHtml",4,"ngIf"],["class","description-text",3,"cleanHTML","cleanHTML-sett",4,"ngIf"],["zing-touch","",1,"back-to-xprts",3,"ngClass","onClick"],[1,"description-text",3,"innerHtml"],[1,"description-text",3,"cleanHTML","cleanHTML-sett"]],template:function(e,n){1&e&&t["ɵɵtemplate"](0,Vt,9,20,"section",0),2&e&&t["ɵɵproperty"]("ngIf",!n.norender)},dependencies:[n.ngZenScroll,n.ngCleanHTML,n.ngCleanBind,n.TouchGestures,n.ngSpeak,t.NgClass,t.NgForOf,t.NgIf,n.ImageLoader],encapsulation:2});class Ot{}Ot.ɵfac=function(e){return new(e||Ot)},Ot.ɵmod=t["ɵɵdefineNgModule"]({type:Ot}),Ot.ɵinj=t["ɵɵdefineInjector"]({imports:[n.DirectivesModule,t.CommonModule,n.ImageLoaderModule,n.ngFocusModule]}),e.ActivatedRoute=E,e.CompileExpertsGallery=function(e,t,r,s,i={}){let a=Ot,o=Ft;const l=document.querySelectorAll("[id=experts-gallery]"),c=[];for(let d=0,u=l.length;d<u;d++){l[d].setAttribute("data-expert-sect",d.toString());let u=`div[data-expert-sect="${d}"]`,h=i.data[d]||{};h={back_bt_text:h.back_link_text,more_btn_txt:h.more_text,header_text:h.header_text,expert_offset:-100,max_experts:6,hashname:i.hashname,data:{expertsContent:h.expertsContent,aslogos:h.aslogos,expertsIntro:h.expertsIntro}},c.push(n.injectModuleAsync(e,t,r,a,o,u,h).then((e=>{let t=e.Component.instance.changedExpert.subscribe((e=>{e?history.pushState(null,"",location.pathname+location.search+"#expert="+e):history.replaceState(null,"",location.pathname+location.search)})),r=s.fragment.subscribe((t=>{if((t=(t||"").replace("#",""))&&t.indexOf("expert=")>-1){let r=n.objectFromParam(t);r&&r.expert&&n.reqAnimationFrame((()=>{e.Component.instance.hashname=r.expert}))}}));return{destroy:()=>{e.destroy(),t.unsubscribe(),r.unsubscribe()}}})))}return Promise.all(c).then((e=>({destroy:()=>{e.forEach((e=>{e.destroy()}))}})))},e.FooterModule=q,e.GetNavigo=function(){return k},e.PageFooter=y,e.QnAComp=wt,e.QnAModule=yt,e.Router=C,e.RouterModule=I}));