define(["exports","./edu-vendor","./edu-main","systemjs","npm:navigo/lib/navigo.js","./ci-widget"],(function(e,t,n,s,r,i){"use strict";function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=a(s).default;function l(e,n){1&e&&(t.ɵɵelementStart(0,"p",4),t.ɵɵtext(1,"Enter your cell phone number and we’ll send you a link to install the WalletHub app."),t.ɵɵelementEnd())}function c(e,n){1&e&&(t.ɵɵelementStart(0,"p",5),t.ɵɵtext(1,"Failed. Please check your phone number."),t.ɵɵelementEnd())}function d(e,n){1&e&&(t.ɵɵelementStart(0,"p",5),t.ɵɵtext(1,"Apologies, but we could not send you an SMS due to repeated attempts. Please go directly to the "),t.ɵɵelementStart(2,"a",6),t.ɵɵtext(3,"App Store"),t.ɵɵelementEnd(),t.ɵɵtext(4," or "),t.ɵɵelementStart(5,"a",7),t.ɵɵtext(6,"Google Play"),t.ɵɵelementEnd(),t.ɵɵtext(7," and search for the WalletHub app."),t.ɵɵelementEnd())}function u(e,n){1&e&&(t.ɵɵelementStart(0,"p",5),t.ɵɵtext(1,"Awesome! You should be receiving a text with the download link shortly."),t.ɵɵelementEnd())}function h(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 p(e,n){1&e&&(t.ɵɵelementStart(0,"p",20),t.ɵɵtext(1,"Please enter a valid US number"),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 s=t.ɵɵnextContext();return t.ɵɵresetView(s.phone=n.target.value)})),t.ɵɵelementEnd(),t.ɵɵtemplate(2,p,2,0,"p",12),t.ɵɵelementStart(3,"p",13),t.ɵɵtext(4,"Wallethub doesn’t charge for this service. Standard message rates apply."),t.ɵɵelementEnd(),t.ɵɵelement(5,"error-toast",14),t.ɵɵelementStart(6,"div",15)(7,"button",16),t.ɵɵelement(8,"i",17),t.ɵɵelementStart(9,"span"),t.ɵɵtext(10,"Send Link to My Phone"),t.ɵɵelementEnd()(),t.ɵɵelement(11,"div",18),t.ɵɵelementStart(12,"button",19),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.closeDialog())})),t.ɵɵtext(13,"Cancel"),t.ɵɵelementEnd()()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵproperty("value",e.phone),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.inputError),t.ɵɵadvance(3),t.ɵɵproperty("show",e.apifail)("timer",2200),t.ɵɵadvance(2),t.ɵɵclassProp("loadactive",e.sending)}}class g{SendSms(){if(this.sending)return;if(!this.phone||10!=this.phone.length)return void(this.inputError=!0);this.inputError=!1;let e=n.rpcUrl(),t={action:"download_app",type:this.data.android?"android":"apple",phoneNumber:this.phone};this.data.comm_id&&(t.commId=this.data.comm_id,t.type=""),n.$http({before:()=>{this.sending=!0},after:()=>{this.sending=!1},url:e,data:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>{e.error?e.messages&&n.isArray(e.messages)&&e.messages.indexOf("REQUEST_LOCKED_BY_FILTER")>-1?(this.sentfailedrepeatitive=!0,this.sentfailed=!1,this.sentdone=!1):this.sentfailed=!0:(this.sentdone=!0,this.sentfailed=!1,this.sentfailedrepeatitive=!1),this._cd.detectChanges()}),(e=>{this.apifail=!0,setTimeout((()=>{this.apifail=!1,this._cd.detectChanges()}),100)}))}closeMe(){this.sending||this.closeDialog()}constructor(e){this._cd=e,this.phone="",this.sending=!1,this.sentfailed=!1,this.sentfailedrepeatitive=!1,this.sentdone=!1,this.apifail=!1,this.inputError=!1}}g.ɵfac=function(e){return new(e||g)(t.ɵɵdirectiveInject(t.ChangeDetectorRef))},g.ɵcmp=t.ɵɵdefineComponent({type:g,selectors:[["app-store"]],standalone:!1,decls:6,vars:6,consts:[["class","semi-bold-font",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,"semi-bold-font","ng-enter-element"],["href","https://apps.apple.com/us/app/wallethub/id1110552982","target","_blank"],["href","https://goo.gl/mhG3k4","target","_blank"],[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,"input","value"],["class","input-error bf-icon-info",4,"ngIf"],[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"],[1,"input-error","bf-icon-info"]],template:function(e,n){1&e&&t.ɵɵtemplate(0,l,2,0,"p",0)(1,c,2,0,"p",1)(2,d,8,0,"p",1)(3,u,2,0,"p",1)(4,h,3,0,"div",2)(5,m,14,6,"form",3),2&e&&(t.ɵɵproperty("ngIf",!n.sentfailed&&!n.sentdone&&!n.sentfailedrepeatitive),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.sentfailed),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.sentfailedrepeatitive),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.sentdone),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.sentdone||n.sentfailedrepeatitive),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!n.sentdone&&!n.sentfailedrepeatitive))},dependencies:[n.TouchGestures,t.NgIf,n.ErrorToastComponent,n.FormSubmit],styles:["app-store .app-store-notice{color:#5d7279;padding-bottom:15px}app-store .textfield{margin:15px 0}app-store .buttons-holder{text-align:right}app-store error-toast{display:block;position:relative}app-store error-toast .errortoast{top:-50px;bottom:auto}app-store{max-width:430px;display:block}app-store .buttons-holder-final{text-align:center;padding-top:15px}@media (max-width: 480px){app-store{padding:10px}}@media (max-width: 390px){app-store error-toast .errortoast{left:0px}}@media (max-width: 360px){app-store error-toast .errortoast{left:-20px}app-store .btn-spacer{height:8px;display:block}app-store .btn{width:100%}app-store .btn.fixed-w-c{width:100%}}@media (max-width: 340px){app-store .close-bt{width:100px}}\n"],encapsulation:2});class _{}function f(){return new Promise(((e,t)=>{let n=document.createElement("script"),s=document.body?document.body:document.querySelector("head");n.async=!0,n.onload=()=>{document.addEventListener("userway:init_completed",(t=>{var n;const s=null===(n=null==t?void 0:t.detail)||void 0===n?void 0:n.userWayInstance;null==s||s.widgetOpen(),setTimeout((()=>{e(null)}),3e3)}))},n.onerror=()=>{t(null),n.parentNode.removeChild(n)},n.setAttribute("data-color","#146FF8"),n.setAttribute("data-trigger","accessibilityBtn"),n.setAttribute("data-account","xnL3fi8xSi"),n.setAttribute("src","https://cdn.userway.org/widget.js"),s.appendChild(n)}))}_.ɵfac=function(e){return new(e||_)},_.ɵmod=t.ɵɵdefineNgModule({type:_}),_.ɵinj=t.ɵɵdefineInjector({imports:[n.DirectivesModule,t.CommonModule,n.ErrorsModule,n.FormSubmitModule]});class x{Close(){this.loading||this.closeDialog(this.accessibe_loaded)}LoadAccessibe(){if(n.isNode()||this.loading||location.search&&(location.search.indexOf("?a=0")>-1||location.search.indexOf("&a=0")>-1))return;const e=this;e.loading=!0,e._cd.detectChanges(),f().then((()=>{e.loading=!1,e.accessibe_loaded=!0,this.Close(),e._cd.detectChanges()}))}constructor(e){this._cd=e,this.loading=!1,this.accessibe_loaded=!1}}x.ɵfac=function(e){return new(e||x)(t.ɵɵdirectiveInject(t.ChangeDetectorRef))},x.ɵcmp=t.ɵɵdefineComponent({type:x,selectors:[["accessibe-ov"]],standalone:!1,decls:12,vars:3,consts:[[1,"center"],[1,"btn-groups","center"],["zing-touch","","aria-label","Close",1,"btn","bold-font-weight","blue-brds",3,"onTap"],[1,"btn-spacer"],["zing-touch","","aria-label","Load Accessibe",1,"btn","bold-font-weight","with-loader",3,"onTap"],[1,"btn-loader",3,"ng-aria-hidden"],[1,"bt-text"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"h1",0),t.ɵɵtext(1,"Do you want to activate more accessibility features?"),t.ɵɵelementEnd(),t.ɵɵelement(2,"br")(3,"br"),t.ɵɵelementStart(4,"div",1)(5,"button",2),t.ɵɵlistener("onTap",(function(){return n.Close()})),t.ɵɵtext(6," Cancel "),t.ɵɵelementEnd(),t.ɵɵelement(7,"div",3),t.ɵɵelementStart(8,"button",4),t.ɵɵlistener("onTap",(function(){return n.LoadAccessibe()})),t.ɵɵelement(9,"span",5),t.ɵɵelementStart(10,"span",6),t.ɵɵtext(11,"Activate"),t.ɵɵelementEnd()()()),2&e&&(t.ɵɵadvance(8),t.ɵɵclassProp("loadactive",n.loading),t.ɵɵadvance(),t.ɵɵproperty("ng-aria-hidden",!0))},dependencies:[n.TouchGestures,n.ngAriaHidden],styles:["accessibe-ov{display:block;width:305px}\n"],encapsulation:2,changeDetection:0});class v{}v.ɵfac=function(e){return new(e||v)},v.ɵmod=t.ɵɵdefineNgModule({type:v}),v.ɵinj=t.ɵɵdefineInjector({imports:[n.DirectivesModule,t.CommonModule]});const b=["smsOverlay"],w=["toTop"],y=["accessibilityBtn"],C=e=>({show:e});function q(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementContainerStart(0),t.ɵɵelement(1,"div",14),t.ɵɵelementStart(2,"div",15),t.ɵɵtext(3,"Reach Top WalletFitness"),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"a",16),t.ɵɵlistener("click",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.EnableAccessibePlugin(n))})),t.ɵɵelement(5,"span",17),t.ɵɵelementEnd(),t.ɵɵelement(6,"span",18,1),t.ɵɵelementStart(8,"div",19)(9,"a",20),t.ɵɵlistener("click",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.openStoreOvelary(!1,null,n))})),t.ɵɵtext(10," "),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"a",21),t.ɵɵlistener("click",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.openStoreOvelary(!0,null,n))})),t.ɵɵtext(12," "),t.ɵɵelementEnd()(),t.ɵɵelementStart(13,"nav",22)(14,"ul",23)(15,"li",24),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("wallethub-premium-desktop"))})),t.ɵɵtext(16,"wallethub premium"),t.ɵɵelementEnd(),t.ɵɵelementStart(17,"div",25)(18,"li")(19,"a",26),t.ɵɵtext(20,"Overview"),t.ɵɵelementEnd()(),t.ɵɵelementStart(21,"li")(22,"a",27),t.ɵɵtext(23,"Compare Plans"),t.ɵɵelementEnd()(),t.ɵɵelementStart(24,"li")(25,"a",28),t.ɵɵtext(26,"Dark Web Scan"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(27,"li",29),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("personal-loans"))})),t.ɵɵtext(28,"personal loans"),t.ɵɵelementEnd(),t.ɵɵelementStart(29,"div",30)(30,"li")(31,"a",31),t.ɵɵtext(32,"Best Personal Loans"),t.ɵɵelementEnd()(),t.ɵɵelementStart(33,"li")(34,"a",32),t.ɵɵtext(35,"Best Banks for Personal Loans"),t.ɵɵelementEnd()(),t.ɵɵelementStart(36,"li")(37,"a",33),t.ɵɵtext(38,"Same-Day Loans"),t.ɵɵelementEnd()(),t.ɵɵelementStart(39,"li")(40,"a",34),t.ɵɵtext(41,"Short-Term Loans"),t.ɵɵelementEnd()(),t.ɵɵelementStart(42,"li")(43,"a",35),t.ɵɵtext(44,"No Credit Check Loans"),t.ɵɵelementEnd()(),t.ɵɵelementStart(45,"li")(46,"a",36),t.ɵɵtext(47,"Debt Consolidation Loans for Bad Credit"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(48,"li",29),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("car-insurance"))})),t.ɵɵtext(49,"car insurance"),t.ɵɵelementEnd(),t.ɵɵelementStart(50,"div",30)(51,"li")(52,"a",37),t.ɵɵtext(53,"Best Car Insurance Near Me"),t.ɵɵelementEnd()(),t.ɵɵelementStart(54,"li")(55,"a",38),t.ɵɵtext(56,"Cheapest Companies"),t.ɵɵelementEnd()(),t.ɵɵelementStart(57,"li")(58,"a",39),t.ɵɵtext(59,"Full Coverage"),t.ɵɵelementEnd()(),t.ɵɵelementStart(60,"li")(61,"a",40),t.ɵɵtext(62,"Gap Insurance"),t.ɵɵelementEnd()(),t.ɵɵelementStart(63,"li")(64,"a",41),t.ɵɵtext(65,"DUI Insurance"),t.ɵɵelementEnd()(),t.ɵɵelementStart(66,"li")(67,"a",42),t.ɵɵtext(68,"No Deposit"),t.ɵɵelementEnd()(),t.ɵɵelementStart(69,"li")(70,"a",43),t.ɵɵtext(71,"College Students"),t.ɵɵelementEnd()(),t.ɵɵelementStart(72,"li")(73,"a",44),t.ɵɵtext(74,"Teens"),t.ɵɵelementEnd()(),t.ɵɵelementStart(75,"li")(76,"a",45),t.ɵɵtext(77,"First-Time Drivers"),t.ɵɵelementEnd()(),t.ɵɵelementStart(78,"li")(79,"a",46),t.ɵɵtext(80,"Seniors"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(81,"li",47),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("tools-mobile"))})),t.ɵɵtext(82,"Tools"),t.ɵɵelementEnd(),t.ɵɵelementStart(83,"div",48)(84,"li")(85,"a",49),t.ɵɵtext(86,"Ask a Question"),t.ɵɵelementEnd()(),t.ɵɵelementStart(87,"li")(88,"a",50),t.ɵɵtext(89,"WalletLiteracy"),t.ɵɵelementEnd()(),t.ɵɵelementStart(90,"li")(91,"a",51),t.ɵɵtext(92,"WalletScore"),t.ɵɵelementEnd()(),t.ɵɵelementStart(93,"li")(94,"a",52),t.ɵɵtext(95,"Calculators"),t.ɵɵelementEnd()()()(),t.ɵɵelementStart(96,"ul",53)(97,"li",29),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("credit"))})),t.ɵɵtext(98,"Credit Score"),t.ɵɵelementEnd(),t.ɵɵelementStart(99,"div",30)(100,"li")(101,"a",54),t.ɵɵtext(102,"Free Credit Score"),t.ɵɵelementEnd()(),t.ɵɵelementStart(103,"li")(104,"a",55),t.ɵɵtext(105,"Free Credit Report"),t.ɵɵelementEnd()(),t.ɵɵelementStart(106,"li")(107,"a",56),t.ɵɵtext(108,"Free Credit Monitoring"),t.ɵɵelementEnd()(),t.ɵɵelementStart(109,"li")(110,"a",57),t.ɵɵtext(111,"Free Credit Simulator"),t.ɵɵelementEnd()(),t.ɵɵelementStart(112,"li")(113,"a",58),t.ɵɵtext(114,"Your Credit Score Explained"),t.ɵɵelementEnd()(),t.ɵɵelementStart(115,"li")(116,"a",59),t.ɵɵtext(117,"Auto Insurance Score"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(118,"li",29),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("banking"))})),t.ɵɵtext(119,"banking"),t.ɵɵelementEnd(),t.ɵɵelementStart(120,"div",30)(121,"li")(122,"a",60),t.ɵɵtext(123,"Best CD Rates"),t.ɵɵelementEnd()(),t.ɵɵelementStart(124,"li")(125,"a",61),t.ɵɵtext(126,"Best Checking Accounts"),t.ɵɵelementEnd()(),t.ɵɵelementStart(127,"li")(128,"a",62),t.ɵɵtext(129,"Best Savings Accounts"),t.ɵɵelementEnd()(),t.ɵɵelementStart(130,"li")(131,"a",63),t.ɵɵtext(132,"Money Market Accounts"),t.ɵɵelementEnd()(),t.ɵɵelementStart(133,"li")(134,"a",64),t.ɵɵtext(135,"Best Prepaid Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(136,"li")(137,"a",65),t.ɵɵtext(138,"Best Banks"),t.ɵɵelementEnd()(),t.ɵɵelementStart(139,"li")(140,"a",66),t.ɵɵtext(141,"Best Credit Unions"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(142,"li",29),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("pros"))})),t.ɵɵtext(143,"PROS"),t.ɵɵelementEnd(),t.ɵɵelementStart(144,"div",30)(145,"li")(146,"a",67),t.ɵɵtext(147,"Real Estate Agents"),t.ɵɵelementEnd()(),t.ɵɵelementStart(148,"li")(149,"a",68),t.ɵɵtext(150,"Insurance Agents"),t.ɵɵelementEnd()(),t.ɵɵelementStart(151,"li")(152,"a",69),t.ɵɵtext(153,"Mortgage Brokers"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(154,"li",29),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("directories"))})),t.ɵɵtext(155,"DIRECTORIES"),t.ɵɵelementEnd(),t.ɵɵelementStart(156,"div",30)(157,"li")(158,"a",70),t.ɵɵtext(159,"Nearby FInancial Providers"),t.ɵɵelementEnd()(),t.ɵɵelementStart(160,"li")(161,"a",71),t.ɵɵtext(162,"Popular Financial Products"),t.ɵɵelementEnd()(),t.ɵɵelementStart(163,"li")(164,"a",72),t.ɵɵtext(165,"People Search For"),t.ɵɵelementEnd()()()(),t.ɵɵelementStart(166,"ul",73)(167,"li",47),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("wallethub-premium-mobile"))})),t.ɵɵtext(168,"wallethub premium"),t.ɵɵelementEnd(),t.ɵɵelementStart(169,"div",48)(170,"li")(171,"a",26),t.ɵɵtext(172,"Overview"),t.ɵɵelementEnd()(),t.ɵɵelementStart(173,"li")(174,"a",27),t.ɵɵtext(175,"Compare Plans"),t.ɵɵelementEnd()(),t.ɵɵelementStart(176,"li")(177,"a",28),t.ɵɵtext(178,"Dark Web Scan"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(179,"li",74),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("credit-cards"))})),t.ɵɵtext(180,"Credit Cards"),t.ɵɵelementEnd(),t.ɵɵelementStart(181,"div",30)(182,"li",75),t.ɵɵtext(183,"Low Rates"),t.ɵɵelementEnd(),t.ɵɵelementStart(184,"li")(185,"a",76),t.ɵɵtext(186,"0% APR"),t.ɵɵelementEnd()(),t.ɵɵelementStart(187,"li")(188,"a",77),t.ɵɵtext(189,"Balance Transfer"),t.ɵɵelementEnd()(),t.ɵɵelementStart(190,"li")(191,"a",78),t.ɵɵtext(192,"Low Interest"),t.ɵɵelementEnd()(),t.ɵɵelementStart(193,"li")(194,"a",79),t.ɵɵtext(195,"Best Rates"),t.ɵɵelementEnd()(),t.ɵɵelementStart(196,"li",75),t.ɵɵtext(197,"Rewards"),t.ɵɵelementEnd(),t.ɵɵelementStart(198,"li")(199,"a",80),t.ɵɵtext(200,"Cash Back"),t.ɵɵelementEnd()(),t.ɵɵelementStart(201,"li")(202,"a",81),t.ɵɵtext(203,"Gas"),t.ɵɵelementEnd()(),t.ɵɵelementStart(204,"li")(205,"a",82),t.ɵɵtext(206,"Airline"),t.ɵɵelementEnd()(),t.ɵɵelementStart(207,"li")(208,"a",83),t.ɵɵtext(209,"Hotel"),t.ɵɵelementEnd()(),t.ɵɵelementStart(210,"li")(211,"a",84),t.ɵɵtext(212,"All Rewards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(213,"li",75),t.ɵɵtext(214,"By Credit Score"),t.ɵɵelementEnd(),t.ɵɵelementStart(215,"li")(216,"a",85),t.ɵɵtext(217,"Excellent Credit"),t.ɵɵelementEnd()(),t.ɵɵelementStart(218,"li")(219,"a",86),t.ɵɵtext(220,"Good Credit"),t.ɵɵelementEnd()(),t.ɵɵelementStart(221,"li")(222,"a",87),t.ɵɵtext(223,"Fair Credit"),t.ɵɵelementEnd()(),t.ɵɵelementStart(224,"li")(225,"a",88),t.ɵɵtext(226,"Bad Credit"),t.ɵɵelementEnd()(),t.ɵɵelementStart(227,"li")(228,"a",89),t.ɵɵtext(229,"No Credit"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(230,"li",24),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.FooterMenuToggle("tools-desktop"))})),t.ɵɵtext(231,"Tools"),t.ɵɵelementEnd(),t.ɵɵelementStart(232,"div",25)(233,"li")(234,"a",49),t.ɵɵtext(235,"Ask a Question"),t.ɵɵelementEnd()(),t.ɵɵelementStart(236,"li")(237,"a",50),t.ɵɵtext(238,"WalletLiteracy"),t.ɵɵelementEnd()(),t.ɵɵelementStart(239,"li")(240,"a",51),t.ɵɵtext(241,"WalletScore"),t.ɵɵelementEnd()(),t.ɵɵelementStart(242,"li")(243,"a",52),t.ɵɵtext(244,"Calculators"),t.ɵɵelementEnd()()()(),t.ɵɵelementStart(245,"ul",90)(246,"li",91),t.ɵɵtext(247,"Credit Cards"),t.ɵɵelementEnd(),t.ɵɵelementStart(248,"div",30)(249,"li",75),t.ɵɵtext(250,"Credit Card Types"),t.ɵɵelementEnd(),t.ɵɵelementStart(251,"li")(252,"a",92),t.ɵɵtext(253),t.ɵɵpipe(254,"date"),t.ɵɵelementEnd()(),t.ɵɵelementStart(255,"li")(256,"a",93),t.ɵɵtext(257,"Business Credit Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(258,"li")(259,"a",94),t.ɵɵtext(260,"Credit Card Deals"),t.ɵɵelementEnd()(),t.ɵɵelementStart(261,"li")(262,"a",95),t.ɵɵtext(263,"Student Credit Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(264,"li")(265,"a",96),t.ɵɵtext(266,"Store Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(267,"li")(268,"a",97),t.ɵɵtext(269,"Charge Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(270,"li")(271,"a",98),t.ɵɵtext(272,"No Foreign Fee"),t.ɵɵelementEnd()(),t.ɵɵelementStart(273,"li")(274,"a",99),t.ɵɵtext(275,"No Annual Fee"),t.ɵɵelementEnd()(),t.ɵɵelementStart(276,"li")(277,"a",100),t.ɵɵtext(278,"Secured Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(279,"li")(280,"a",101),t.ɵɵtext(281,"Unsecured Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(282,"li")(283,"a",102),t.ɵɵtext(284,"Starter Cards"),t.ɵɵelementEnd()(),t.ɵɵelementStart(285,"li")(286,"a",103),t.ɵɵtext(287,"Credit Card Reviews"),t.ɵɵelementEnd()()()()(),t.ɵɵelement(288,"hr",104),t.ɵɵelementStart(289,"nav",105)(290,"ul")(291,"li",106),t.ɵɵtext(292,"About"),t.ɵɵelementEnd(),t.ɵɵelementStart(293,"li")(294,"a",107),t.ɵɵtext(295,"About Us"),t.ɵɵelementEnd()(),t.ɵɵelementStart(296,"li")(297,"a",108),t.ɵɵtext(298,"Media"),t.ɵɵelementEnd()(),t.ɵɵelementStart(299,"li")(300,"a",109),t.ɵɵtext(301,"Jobs"),t.ɵɵelementEnd()(),t.ɵɵelementStart(302,"li")(303,"a",110),t.ɵɵtext(304,"Contact Us"),t.ɵɵelementEnd()(),t.ɵɵelementStart(305,"li")(306,"a",111),t.ɵɵtext(307,"Studies & Reports"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(308,"ul")(309,"li",106),t.ɵɵtext(310,"Help"),t.ɵɵelementEnd(),t.ɵɵelementStart(311,"li")(312,"a",112),t.ɵɵtext(313,"FAQ"),t.ɵɵelementEnd()(),t.ɵɵelementStart(314,"li")(315,"a",113),t.ɵɵlistener("click",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.openFeedbackPage(n))})),t.ɵɵtext(316,"Feedback"),t.ɵɵelementEnd()(),t.ɵɵelementStart(317,"li")(318,"a",114),t.ɵɵtext(319,"Add Your Business"),t.ɵɵelementEnd()(),t.ɵɵelementStart(320,"li")(321,"a",115),t.ɵɵtext(322,"Accessibility"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(323,"ul")(324,"li",106),t.ɵɵtext(325,"wallethub awards"),t.ɵɵelementEnd(),t.ɵɵelementStart(326,"li")(327,"a",116),t.ɵɵtext(328),t.ɵɵpipe(329,"date"),t.ɵɵelementEnd()(),t.ɵɵelementStart(330,"li")(331,"a",117),t.ɵɵtext(332,"Editorial Policy"),t.ɵɵelementEnd()(),t.ɵɵelementStart(333,"li")(334,"a",118),t.ɵɵtext(335,"Rating Methodologies"),t.ɵɵelementEnd()()(),t.ɵɵelementStart(336,"ul")(337,"li",106),t.ɵɵtext(338,"legal"),t.ɵɵelementEnd(),t.ɵɵelementStart(339,"li")(340,"a",119),t.ɵɵtext(341,"Terms"),t.ɵɵelementEnd()(),t.ɵɵelementStart(342,"li")(343,"a",120),t.ɵɵtext(344,"Privacy Policy"),t.ɵɵelementEnd()(),t.ɵɵelementStart(345,"li")(346,"a",121),t.ɵɵtext(347,"Your Privacy Choices "),t.ɵɵelement(348,"span",122),t.ɵɵelementEnd()(),t.ɵɵelementStart(349,"li")(350,"a",123),t.ɵɵtext(351,"California Collection Notice"),t.ɵɵelementEnd()(),t.ɵɵelementStart(352,"li")(353,"a",124),t.ɵɵtext(354,"Consumer Health Privacy Policy"),t.ɵɵelementEnd()(),t.ɵɵelementStart(355,"li")(356,"a",125),t.ɵɵtext(357,"Cookie Policy"),t.ɵɵelementEnd()(),t.ɵɵelementStart(358,"li")(359,"a",126),t.ɵɵtext(360,"Content Guidelines"),t.ɵɵelementEnd()()()(),t.ɵɵelementContainerEnd()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(4),t.ɵɵclassProp("before-load",!e.accessibe_plugin_enabled)("show-lib-loader",e.accesibe_loading),t.ɵɵadvance(2),t.ɵɵclassProp("after-load",e.accessibe_plugin_enabled),t.ɵɵadvance(9),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(38,C,e.footerMenuOpenItems.indexOf("wallethub-premium-desktop")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(40,C,e.footerMenuOpenItems.indexOf("wallethub-premium-desktop")>-1)),t.ɵɵadvance(10),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(42,C,e.footerMenuOpenItems.indexOf("personal-loans")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(44,C,e.footerMenuOpenItems.indexOf("personal-loans")>-1)),t.ɵɵadvance(19),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(46,C,e.footerMenuOpenItems.indexOf("car-insurance")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(48,C,e.footerMenuOpenItems.indexOf("car-insurance")>-1)),t.ɵɵadvance(31),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(50,C,e.footerMenuOpenItems.indexOf("tools-mobile")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(52,C,e.footerMenuOpenItems.indexOf("tools-mobile")>-1)),t.ɵɵadvance(14),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(54,C,e.footerMenuOpenItems.indexOf("credit")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(56,C,e.footerMenuOpenItems.indexOf("credit")>-1)),t.ɵɵadvance(19),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(58,C,e.footerMenuOpenItems.indexOf("banking")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(60,C,e.footerMenuOpenItems.indexOf("banking")>-1)),t.ɵɵadvance(22),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(62,C,e.footerMenuOpenItems.indexOf("pros")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(64,C,e.footerMenuOpenItems.indexOf("pros")>-1)),t.ɵɵadvance(10),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(66,C,e.footerMenuOpenItems.indexOf("directories")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(68,C,e.footerMenuOpenItems.indexOf("directories")>-1)),t.ɵɵadvance(11),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(70,C,e.footerMenuOpenItems.indexOf("wallethub-premium-mobile")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(72,C,e.footerMenuOpenItems.indexOf("wallethub-premium-mobile")>-1)),t.ɵɵadvance(10),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(74,C,e.footerMenuOpenItems.indexOf("credit-cards")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(76,C,e.footerMenuOpenItems.indexOf("credit-cards")>-1)),t.ɵɵadvance(49),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(78,C,e.footerMenuOpenItems.indexOf("tools-desktop")>-1)),t.ɵɵadvance(2),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(80,C,e.footerMenuOpenItems.indexOf("tools-desktop")>-1)),t.ɵɵadvance(16),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(82,C,e.footerMenuOpenItems.indexOf("credit-cards")>-1)),t.ɵɵadvance(5),t.ɵɵtextInterpolate1("Best Credit Cards ",t.ɵɵpipeBind2(254,32,e.curDate,"yyyy"),""),t.ɵɵadvance(62),t.ɵɵproperty("href",e.feedbackUrl,t.ɵɵsanitizeUrl),t.ɵɵadvance(13),t.ɵɵtextInterpolate1(" ",t.ɵɵpipeBind2(329,35,e.curDate,"yyyy")," Best Awards")}}function E(e,n){1&e&&(t.ɵɵelementStart(0,"div",127)(1,"a",120),t.ɵɵtext(2,"Privacy Policy"),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"span",128),t.ɵɵtext(4,"|"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"a",119),t.ɵɵtext(6,"Terms"),t.ɵɵelementEnd()())}o.import("css:/footer-web.css").then((()=>{}),(()=>{}));class S{constructor(e,t,s,r){this._dservice=e,this._el=t,this._render=s,this._cd=r,this.copyrightyear=(new Date).getFullYear(),this.isWeb=!n.isNode(),this.feedbackUrl="/feedback/",this.curDate=new Date,this._arrowautoshow=!0,this.as_iframe=!1,this.accessibe=!1,this.accessibe_plugin_enabled=!1,this.accesibe_loading=!1,this.footerMenuOpenItems=[]}trackByFn(e){return e}EnableAccessibePluginPrompt(){if(this.accessibe_plugin_enabled)return;this._smsOverlay.Open(x,null,{withclose:!1}),this._cd.detectChanges();let e=this._smsOverlay.onClose.pipe(t.take(1)).subscribe((t=>{this.accessibe_plugin_enabled=t,t&&requestAnimationFrame((()=>{this._accessibilityBtn.nativeElement.dispatchEvent(new Event("click"))})),e.unsubscribe(),this._cd.detectChanges()}))}EnableAccessibePlugin(e){e&&e.preventDefault(),this.accesibe_loading=!0,f().then((()=>{this.accessibe_plugin_enabled=!0,this.accesibe_loading=!1,this._cd.detectChanges()})),this._cd.detectChanges()}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,t=null,s){s&&s.preventDefault(),!n.isNode()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobi/i.test(navigator.userAgent)||function(){let e={width:0,height:0};return window&&window.innerWidth&&window.innerHeight&&(e.width=window.innerWidth,e.height=window.innerHeight),screen&&screen.width&&screen.height&&(e.width=screen.width,e.height=screen.height),(e.width>=768&&e.width<=1024&&e.height>=1024||e.width>=1024&&e.width<=1366&&e.height>=768)&&/iPad|Macintosh/.test(navigator.userAgent)}()?e?window.open("https://goo.gl/mhG3k4","_blank","noopener"):window.open("https://apps.apple.com/us/app/wallethub/id1110552982","_blank","noopener"):this._smsOverlay.Open(g,{android:e,comm_id:t},{withclose:!0})}ngOnInit(){this.isWeb&&(this.feedbackUrl="/feedback/?ref=."+window.location.pathname),n.AppData.hasGroup("app-settings")&&n.AppData.group("app-settings").accessibility&&(this.accessibe=n.AppData.group("app-settings").accessibility),n.isNode()||(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"))})),n.Events.subscribe("footer:appstore",((e={})=>{let{is_android:t,comm_id:n}=e;this.openStoreOvelary(t,n),this._cd.detectChanges()})),n.Events.subscribe("footer:version",(e=>{"iframe"==e&&(this.as_iframe=!0),this._cd.detectChanges()})))}openFeedbackPage(e){return e.stopPropagation(),e.preventDefault(),window.open("/feedback/?ref="+window.location.pathname,"_parent"),!1}ngOnDestroy(){n.Events.terminate("footer:novox"),n.Events.terminate("footer:appstore"),n.Events.terminate("footer:version")}FooterMenuToggle(e){window.innerWidth>767||(this.footerMenuOpenItems.indexOf(e)>-1?this.footerMenuOpenItems.splice(this.footerMenuOpenItems.indexOf(e),1):this.footerMenuOpenItems.push(e))}}S.ɵfac=function(e){return new(e||S)(t.ɵɵdirectiveInject(n.ScrollerService),t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.Renderer2),t.ɵɵdirectiveInject(t.ChangeDetectorRef))},S.ɵcmp=t.ɵɵdefineComponent({type:S,selectors:[["footer","main-footer",""]],viewQuery:function(e,n){if(1&e&&(t.ɵɵviewQuery(b,5),t.ɵɵviewQuery(w,5),t.ɵɵviewQuery(y,5)),2&e){let e;t.ɵɵqueryRefresh(e=t.ɵɵloadQuery())&&(n._smsOverlay=e.first),t.ɵɵqueryRefresh(e=t.ɵɵloadQuery())&&(n._arrowTop=e.first),t.ɵɵqueryRefresh(e=t.ɵɵloadQuery())&&(n._accessibilityBtn=e.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:4,hostBindings:function(e,n){2&e&&t.ɵɵclassProp("asframe",n.as_iframe)("simple-footer",n.as_iframe)},standalone:!1,decls:40,vars:3,consts:[["smsOverlay",""],["accessibilityBtn",""],[4,"ngIf"],["aria-label","Copyright",1,"copyright"],["tabindex","0","role","text"],["class","simple-ver regular-font",4,"ngIf"],["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"],[1,"logo"],[1,"reach-top"],["href","/accessibility","aria-label","Accessibility",1,"accessibility-btn",3,"click"],[1,"lib-loader"],["id","accessibilityBtn",1,"accessibility-btn"],[1,"mobileButtons"],["href","https://apps.apple.com/us/app/wallethub/id1110552982?mt=8","target","_blank","rel","noopener","role","link","aria-label","get on the app store","tabindex","0",1,"store-link","appleStore",3,"click"],["href","https://play.google.com/store/apps/details?id=com.wallethub.mywallet","role","link","target","_blank","rel","noopener","aria-label","get on the google play","tabindex","0",1,"store-link","googlePlay",3,"click"],["aria-label","Main Footer",1,"main"],[1,"mobile-order-3"],[1,"label","hide-mobile",3,"click","ngClass"],[1,"sub-menu","hide-mobile",3,"ngClass"],["href","/premium"],["href","/upgrade"],["href","/premium/dark-web"],[1,"label",3,"click","ngClass"],[1,"sub-menu",3,"ngClass"],["href","/best-personal-loans"],["href","/best-banks-for-personal-loans"],["href","https://wallethub.com/edu/pl/same-day-loans/67705"],["href","/personal-loans/short-term-loans"],["href","https://wallethub.com/edu/pl/no-credit-check-loans/68084"],["href","/personal-loans/debt-consolidation-loans-for-bad-credit"],["href","/car-insurance-near-me"],["href","/cheap-car-insurance"],["href","https://wallethub.com/edu/ci/cheapest-full-coverage-car-insurance/87274"],["href","https://wallethub.com/edu/ci/best-gap-insurance/94139"],["href","https://wallethub.com/edu/ci/dui-insurance/13542"],["href","https://wallethub.com/edu/ci/very-cheap-car-insurance-no-deposit/98676"],["href","https://wallethub.com/edu/ci/best-car-insurance-for-college-students/88064"],["href","https://wallethub.com/edu/ci/cheapest-car-insurance-for-teens/94421"],["href","https://wallethub.com/edu/ci/cheaper-car-insurance-for-first-time-drivers/89402"],["href","https://wallethub.com/edu/ci/best-auto-insurance-for-seniors/88292"],[1,"label","hide-desktop",3,"click","ngClass"],[1,"sub-menu","hide-desktop",3,"ngClass"],["href","/answers/"],["href","/wallet-literacy-score/"],["href","/wallet-score"],["href","/calculators"],[1,"mobile-order-4"],["href","/free-credit-score"],["href","/free-credit-report"],["href","/free-credit-monitoring"],["href","/credit-score-simulator"],["href","/credit-score-range"],["href","/auto-insurance-score"],["href","/cd-rates"],["href","/checking-accounts"],["href","/savings-accounts"],["href","/money-market-accounts"],["href","/prepaid-debit-cards"],["href","/banks"],["href","/credit-unions"],["href","/real-estate-agents"],["href","/insurance-agents"],["href","/mortgage-brokers"],["href","/local-financial-products/"],["href","/product-directory/"],["href","/search-directory/"],[1,"mobile-order-1"],[1,"label","credit-card-label",3,"click","ngClass"],[1,"sub-label"],["href","/credit-cards/0-apr/"],["href","/credit-cards/balance-transfer/"],["href","/best-low-interest-credit-cards"],["href","/best-credit-card-rates"],["href","/best-cash-back-credit-card"],["href","/credit-cards/gas/"],["href","/best-airline-credit-card"],["href","/best-hotel-credit-card"],["href","/credit-cards/rewards/"],["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/"],[1,"mobile-order-2"],[1,"label","hidden"],["href","/best-credit-cards"],["href","/best-business-credit-cards"],["href","/best-credit-card-deals"],["href","/best-credit-cards-for-students"],["href","/credit-cards/store/"],["href","/credit-cards/charge-cards/"],["href","/credit-cards/no-foreign-transaction-fee/"],["href","/best-credit-cards-no-annual-fee"],["href","/credit-cards/secured/"],["href","/credit-cards/unsecured/"],["href","/credit-cards/starter/"],["href","/credit-card-reviews"],[1,"nav-hr"],["aria-label","Footer Common Menu",1,"common"],[1,"label"],["href","/about"],["href","/media/"],["href","/jobs/"],["href","/contact/"],["href","https://wallethub.com/edu/statistics"],["href","/answers/#sp=597&srt=mv"],["rel","nofollow",3,"click","href"],["href","/add-listing/"],["href","/accessibility"],["href","/awards/"],["href","https://wallethub.com/edu/wallethub-editorial-policy/25756"],["href","/rating-methodologies"],["href","/terms"],["href","/terms/privacy"],["href","/pi-request?dontsell=1"],[1,"opt-out-icon"],["href","/terms/privacy/ccpa"],["href","/terms/privacy/consumer-health"],["href","/terms/cookie-policy"],["href","/community/guidelines/"],[1,"simple-ver","regular-font"],["aria-hidden","true","tabindex","-1"]],template:function(e,n){1&e&&(t.ɵɵtemplate(0,q,361,84,"ng-container",2),t.ɵɵelementStart(1,"aside",3)(2,"div",4),t.ɵɵtext(3),t.ɵɵelement(4,"br"),t.ɵɵelementStart(5,"span"),t.ɵɵtext(6,"All Rights Reserved."),t.ɵɵelementEnd()(),t.ɵɵtemplate(7,E,7,0,"div",5),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"div",6)(9,"span",7),t.ɵɵtext(10,"Get unlimited free credit scores & reports "),t.ɵɵelement(11,"span",8),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"span",9),t.ɵɵtext(13,"Sign up for free credit monitoring "),t.ɵɵelement(14,"span",8),t.ɵɵelementEnd(),t.ɵɵelementStart(15,"span",10),t.ɵɵtext(16,"get your free credit score & report "),t.ɵɵelement(17,"span",8),t.ɵɵelementEnd(),t.ɵɵelementStart(18,"div",11)(19,"h3"),t.ɵɵtext(20,"Join WalletHub"),t.ɵɵelementEnd(),t.ɵɵelementStart(21,"p"),t.ɵɵtext(22,"+ 100% Free"),t.ɵɵelementEnd(),t.ɵɵelementStart(23,"p"),t.ɵɵtext(24,"+ Unlimited Credit Reports"),t.ɵɵelementEnd(),t.ɵɵelementStart(25,"p"),t.ɵɵtext(26,"+ Unlimited Credit Scores"),t.ɵɵelementEnd(),t.ɵɵelementStart(27,"p"),t.ɵɵtext(28,"+ Credit Monitoring Protection"),t.ɵɵelementEnd(),t.ɵɵelementStart(29,"p"),t.ɵɵtext(30,"+ Credit Improvement Tips"),t.ɵɵelementEnd(),t.ɵɵelementStart(31,"p"),t.ɵɵtext(32,"+ Automatically Finds Savings"),t.ɵɵelementEnd(),t.ɵɵelementStart(33,"div",12)(34,"button",13),t.ɵɵtext(35," JOIN FOR FREE "),t.ɵɵelementEnd(),t.ɵɵelementStart(36,"p"),t.ɵɵtext(37,"No credit card needed"),t.ɵɵelementEnd()()()(),t.ɵɵelement(38,"modal-dialog",null,0)),2&e&&(t.ɵɵproperty("ngIf",!n.as_iframe),t.ɵɵadvance(3),t.ɵɵtextInterpolate1(" © 2008–",n.copyrightyear," Evolution Finance, Inc. (dba WalletHub)"),t.ɵɵadvance(4),t.ɵɵproperty("ngIf",n.as_iframe))},dependencies:[t.NgClass,t.NgIf,n.ngModalDialog,t.DatePipe],encapsulation:2,changeDetection:0});class k{}k.ɵfac=function(e){return new(e||k)},k.ɵmod=t.ɵɵdefineNgModule({type:k}),k.ɵinj=t.ɵɵdefineInjector({imports:[_,n.DirectivesModule,t.CommonModule,n.ngModalsModule]});class T{constructor(){this.queryParams=new t.BehaviorSubject({}),this.fragment=new t.BehaviorSubject("");let e=M.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 I{constructor(){}navigate(e,t={skipLocationChange:!1}){return new Promise(((s,r)=>{const i={updateBrowserURL:!0};try{let r=O.lastResolved(),a="";r&&r[0]&&r[0].url&&(a=r[0].url),a=e&&e.length?e.join("/"):a,t.queryParams&&(a+="?"+n.objectSerialize(t.queryParams)),t.fragment&&(a+="#"+t.fragment),O.navigate(a,i),setTimeout((()=>{s(!0)}),200)}catch(e){r(e)}}))}}let A=[];const M=new t.BehaviorSubject(null);let O;class L{static forRoot(e){A=A.concat(e)}get navigo(){return O}constructor(){if(!O){let e=document.querySelector("head base").getAttribute("href")||"/";O=new r(e);const t=e=>{const t=e?[e]:O.lastResolved()||[];n.arrayForEach(t,(e=>{M.next({url:e.url,params:e.params,query:e.queryString})}))};let s=location.pathname.substring(location.pathname.indexOf(e)+e.length-1);A.forEach((e=>{if(e.path){let n=e.path;n==s&&(s=null),"prefix"==e.pathMatch&&(n+="/*"),O.on(n,(()=>{}),{after:t})}})),s&&O.on(location.pathname.substring(location.pathname.indexOf(e)+e.length-1),(()=>{}),{after:t}),O.resolve(),t()}}}L.ɵfac=function(e){return new(e||L)},L.ɵmod=t.ɵɵdefineNgModule({type:L}),L.ɵinj=t.ɵɵdefineInjector({providers:[T,I],imports:[t.CommonModule]});const V=new Map;function F(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||V.has(e))return;let t=null;const n=window.getComputedStyle(e);function s({restoreTextAlign:r=null,testForHeightReduction:i=!0}){let a,o,l=n.overflowY;if(0!==e.scrollHeight&&("vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),i&&(a=function(e){const t=[];for(;e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return()=>t.forEach((([e,t])=>{e.style.scrollBehavior="auto",e.scrollTop=t,e.style.scrollBehavior=null}))}(e),e.style.height=""),o="content-box"===n.boxSizing?e.scrollHeight-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),"none"!==n.maxHeight&&o>parseFloat(n.maxHeight)?("hidden"===n.overflowY&&(e.style.overflow="scroll"),o=parseFloat(n.maxHeight)):"hidden"!==n.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",r&&(e.style.textAlign=r),a&&a(),t!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),t=o),l!==n.overflow&&!r)){const t=n.textAlign;"hidden"===n.overflow&&(e.style.textAlign="start"===t?"end":"start"),s({restoreTextAlign:t,testForHeightReduction:!0})}}function r(){s({testForHeightReduction:!1,restoreTextAlign:null})}const i=function(){let t=e.value;return()=>{s({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}}(),a=(t=>{e.removeEventListener("autosize:destroy",a),e.removeEventListener("autosize:update",r),e.removeEventListener("input",i),window.removeEventListener("resize",r),Object.keys(t).forEach((n=>e.style[n]=t[n])),V.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a),e.addEventListener("autosize:update",r),e.addEventListener("input",i),window.addEventListener("resize",r),e.style.overflowX="hidden",e.style.wordWrap="break-word",V.set(e,{destroy:a,update:r}),r()}function z(e){const t=V.get(e);t&&t.destroy()}function N(e){const t=V.get(e);t&&t.update()}let R=null;"undefined"==typeof window?(R=e=>e,R.destroy=e=>e,R.update=e=>e):(R=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],(e=>F(e))),e),R.destroy=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],z),e),R.update=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],N),e));var j=R;class H{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()}constructor(e,n){this._el=e,this._zone=n,this._resize=!1,this.onResized=new t.EventEmitter}ngOnInit(){this.fireResize=this.fireResize.bind(this)}ngAfterViewInit(){!n.isNode()&&this._el.nativeElement&&this._zone.runOutsideAngular((()=>{j(this._el.nativeElement),this._el.nativeElement.addEventListener("autosize:resized",this.fireResize),this._autosize=j}))}ngOnDestroy(){n.isNode()||this._autosize&&(this._autosize.destroy(this._el.nativeElement),this._el.nativeElement.removeEventListener("autosize:resized",this.fireResize),this._autosize=null)}}H.ɵfac=function(e){return new(e||H)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.NgZone))},H.ɵdir=t.ɵɵdefineDirective({type:H,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:[0,"sizeupdate","updateAutoSize"],_resize:[0,"watchresize","_resize"]},outputs:{onResized:"onResized"},standalone:!1});class P{}P.ɵfac=function(e){return new(e||P)},P.ɵmod=t.ɵɵdefineNgModule({type:P}),P.ɵinj=t.ɵɵdefineInjector({imports:[t.CommonModule]});const $=["textarea"];function D(e,n){1&e&&(t.ɵɵelementStart(0,"div",4),t.ɵɵelement(1,"i"),t.ɵɵelementEnd())}let B=!1,Q=n.isWeb()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class U{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._editor&&this._readonly!==e&&(e?this._editor.enableReadOnlyMode("lock-"+this.ckelementid):this._editor.disableReadOnlyMode("lock-"+this.ckelementid)),this._readonly=e}get readonly(){return this._readonly}set autofocus(e){this._autofocus=e,e&&this._container&&this._container.nativeElement.focus()}get autofocus(){return this._autofocus}constructor(e,s,r){this._el=e,this._cd=s,this._service=r,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=B,this.no_editor=!1}StartCkeditor(){o.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(),Q||setTimeout((()=>{let e=this._el.nativeElement;this._service.scrollTo({target:e,inview:!0})}),100)),this.editorInitiated.emit(!0),B=!0,this._readonly&&(this._readonly=null,this.readonly=!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()}}U.ɵfac=function(e){return new(e||U)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(n.ScrollerService))},U.ɵcmp=t.ɵɵdefineComponent({type:U,selectors:[["ck-editor"]],viewQuery:function(e,n){if(1&e&&t.ɵɵviewQuery($,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:[0,"cursor-focus","autofocus"],options:"options"},outputs:{valueChange:"valueChange",editorInitiated:"editorInitiated"},standalone:!1,decls:4,vars:4,consts:[["textarea",""],[1,"ck-tools"],[1,"ck-textarea",3,"input","value"],["class","progress-indicator visible",4,"ngIf"],[1,"progress-indicator","visible"]],template:function(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelement(0,"div",1),t.ɵɵelementStart(1,"textarea",2,0),t.ɵɵlistener("input",(function(s){return t.ɵɵrestoreView(e),t.ɵɵresetView(n.TextAreaEdit(s))})),t.ɵɵelementEnd(),t.ɵɵtemplate(3,D,2,0,"div",3)}2&e&&(t.ɵɵadvance(),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:"Inter-Bold", Helvetica, Arial, sans-serif}\n',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}\n",".ck-editor__editable a{color:#136AE8;text-decoration:none;cursor:pointer}\n","ck-editor{display:block}\n"],encapsulation:2});class G{}G.ɵfac=function(e){return new(e||G)},G.ɵmod=t.ɵɵdefineNgModule({type:G}),G.ɵinj=t.ɵɵdefineInjector({imports:[t.CommonModule,n.DirectivesModule]});class W{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}constructor(e,n){this._el=e,this._renderer=n,this.onImageFailed=new t.EventEmitter}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)}}W.ɵfac=function(e){return new(e||W)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.Renderer2))},W.ɵdir=t.ɵɵdefineDirective({type:W,selectors:[["","on-img-error",""]],inputs:{fallback:[0,"on-img-error","fallback"],src:"src"},outputs:{onImageFailed:"image-failed"},standalone:!1});class Y{}Y.ɵfac=function(e){return new(e||Y)},Y.ɵmod=t.ɵɵdefineNgModule({type:Y}),Y.ɵinj=t.ɵɵdefineInjector({imports:[t.CommonModule]});class K{constructor(){this.itemprop="",this.classes=[]}}K.ɵfac=function(e){return new(e||K)},K.ɵcmp=t.ɵɵdefineComponent({type:K,selectors:[["","img-placeholder",""]],inputs:{src:"src",itemprop:"itemprop",alt:"alt",classes:"classes"},standalone:!1,decls:3,vars:5,consts:[["deferImg",""],[3,"defer-src","ui-hydrate"],[3,"ngClass","alt"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"div",1),t.ɵɵelement(1,"img",2,0),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("defer-src",n.src)("ui-hydrate",!0),t.ɵɵadvance(),t.ɵɵproperty("ngClass",n.classes)("alt",n.alt),t.ɵɵattribute("itemprop",n.itemprop))},dependencies:[t.NgClass,n.ImageLoader],encapsulation:2});class X{}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 Z(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 ee(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 s=t.ɵɵnextContext();return t.ɵɵresetView(s.SetInput(n))})),t.ɵɵelementEnd()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵclassProp("ques-ov-cred",e.input_chars_left<0),t.ɵɵadvance(),t.ɵɵtextInterpolate(e.input_chars_left),t.ɵɵadvance(),t.ɵɵproperty("value",e.input_value)("readonly",e.submiting)}}function te(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 s=t.ɵɵnextContext();return t.ɵɵresetView(s.input_value_extra=n.target.value)})),t.ɵɵelementEnd()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵproperty("value",e.input_value_extra)("readonly",e.submiting)}}function ne(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 s=t.ɵɵnextContext();return t.ɵɵresetView(s.SetCategory(n))})),t.ɵɵelementEnd()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵproperty("invalid",e.categoryerror)("items",e.categories)("second",!0)("value",e.category)}}function se(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 re(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 ie(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 ae(e,n){1&e&&t.ɵɵelement(0,"br")}function oe(e,n){1&e&&t.ɵɵelement(0,"br")}function le(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"input",33),t.ɵɵlistener("input",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.one_time_code=n.target.value)})),t.ɵɵelementEnd()}}function ce(e,n){1&e&&t.ɵɵelement(0,"br")}function de(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",34),t.ɵɵtext(1," You have entered a wrong code. Enter the correct one or "),t.ɵɵelementStart(2,"span",35),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext(2);return t.ɵɵresetView(n.ResendCode())})),t.ɵɵtext(3,"click here"),t.ɵɵelementEnd(),t.ɵɵtext(4," to resend. "),t.ɵɵelementEnd()}}function ue(e,n){1&e&&t.ɵɵelement(0,"br")}function he(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 pe(e,n){1&e&&t.ɵɵelement(0,"br")}function me(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 s=t.ɵɵnextContext();return s.user_email=n.target.value,t.ɵɵresetView(s.show_ajax_error=!1)})),t.ɵɵelementEnd(),t.ɵɵtemplate(8,ae,1,0,"br",27)(9,oe,1,0,"br",27)(10,le,1,0,"input",28)(11,ce,1,0,"br",27)(12,de,5,0,"div",29)(13,ue,1,0,"br",27)(14,he,1,2,"div",7)(15,pe,1,0,"br",27),t.ɵɵelementStart(16,"button",30),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.GuestSubmit())})),t.ɵɵtext(17," Submit "),t.ɵɵelement(18,"span",31),t.ɵɵelementEnd(),t.ɵɵelementStart(19,"button",32),t.ɵɵlistener("onClick",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.Back())})),t.ɵɵtext(20,"Back"),t.ɵɵelementEnd()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(7),t.ɵɵproperty("value",e.user_email),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_code_input),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_code_input),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_code_input),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_code_input_resend),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_code_input_resend),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!e.show_ajax_error),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_ajax_error&&!e.show_code_input_resend),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!e.show_ajax_error),t.ɵɵadvance(),t.ɵɵclassProp("loadactive",e.submiting),t.ɵɵproperty("disabled",e.submiting)}}X.ɵfac=function(e){return new(e||X)},X.ɵmod=t.ɵɵdefineNgModule({type:X}),X.ɵinj=t.ɵɵdefineInjector({imports:[t.CommonModule,n.ImageLoaderModule]});class ge{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._is_lodgged=!1,this.needs_login=!1,this.user_email="",this.one_time_code="",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,o.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(){var e;this.show_ajax_error=!1,this.submiting=!0;let t=n.cleanInput(this.input_value);this.live_status="Posting question.";let s={action:"Answers.PostQuestion",question:t,url:this._referer};if(this.show_code_input){if(!0!==/^\d{6}$/.test(this.one_time_code))return this.ajax_message="Please enter the 6-digit numerical code that we sent to your email.",this.show_ajax_error=!0,void(this.submiting=!1);s.one_time_code=this.one_time_code}if(null===(e=n.getSignOn())||void 0===e?void 0:e.authUser)return this.ajax_message="Oops. You don't have permission to make edits on this account.",this.show_ajax_error=!0,void(this.submiting=!1);o.import("Encryption").then((e=>{let t={url:n.ajaxUrl(),data:Object.assign(s,this.data.addparams||{}),encryptprops:["email"],before:()=>{this.submiting=!0},after:()=>{this.submiting=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}};this.has_categories&&(t.data.category=this._catid),this.user_email&&(t.data.email=this.user_email),this._is_lodgged||this.user_email||(t.data.light=!0),this.input_value_extra&&(t.data.details=this.input_value_extra),n.isCordova()&&t.data.light&&(t.data.light="true"),e.send(t).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.`),"required one time code"==e.message?(e.message="Please enter the one-time code we have sent to your email.",this.show_code_input=!0):e.message.startsWith("You have entered a wrong code.")&&(this.show_code_input=!0,this.show_code_input_resend=!0,e.message=""),n.isCordova()&&"not logged in"==e.message?(n.Events.emit("$native:api-no-session",{type:"question-submit-login",redirect:e.redirect}),this.ajax_message=null):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,void(n.isCordova()?n.Events.emit("$native:api-no-session",{type:"question-submit-login",redirect:e.redirect}):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)}ResendCode(){this.show_code_input=!1,this.show_code_input_resend=!1,this.one_time_code="",this._SendQues()}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.isLoggedIn()&&(this._is_lodgged=!0),this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}}ge.ɵfac=function(e){return new(e||ge)(t.ɵɵdirectiveInject(t.Location))},ge.ɵcmp=t.ɵɵdefineComponent({type:ge,selectors:[["question-overlay"]],standalone:!1,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,"onhidden","message","show","close-on-change","timer"],["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,"input","value","readonly"],["placeholder","Additional details (optional)","ng-autosize","",1,"ques-ov-txt","ques-ov-txt-liner","textarea",3,"input","value","readonly"],["placeholder","Select Category...",1,"ques-ov-drp",3,"selected","invalid","items","second","value"],["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,"onClick","disabled"],["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,"input","value"],[4,"ngIf"],["type","text","inputmode","numeric","pattern","^\\d{6}$","aria-label","otp","class","textfield full","placeholder","one-time code",3,"input",4,"ngIf"],["class","ques-ov-error-notice ng-enter-element slide","role","alert","tabindex","-1",4,"ngIf"],["zing-touch","",1,"btn","fixed-w-i","with-loader","no-disabled",3,"onTap","disabled"],[1,"btn-loader"],["zing-touch","",1,"btn","white-blue","ques-ov-bk-bt",3,"onClick"],["type","text","inputmode","numeric","pattern","^\\d{6}$","aria-label","otp","placeholder","one-time code",1,"textfield","full",3,"input"],["role","alert","tabindex","-1",1,"ques-ov-error-notice","ng-enter-element","slide"],["zing-touch","",1,"link",3,"onTap"]],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)(3,Z,2,1,"h2",1),t.ɵɵelement(4,"div",2),t.ɵɵtemplate(5,ee,4,5,"div",3),t.ɵɵelementStart(6,"div",4),t.ɵɵtext(7),t.ɵɵelementEnd(),t.ɵɵtemplate(8,te,2,2,"div",3)(9,ne,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,se,1,2,"div",7)(13,re,3,3,"button",8)(14,ie,2,0,"div",9)(15,me,21,12,"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(),t.ɵɵproperty("ngIf",n.needs_login&&!n.submited),t.ɵɵadvance(),t.ɵɵproperty("ng-aria-live",n.live_status),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login),t.ɵɵadvance(2),t.ɵɵtextInterpolate(n.question_count_status),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login&&n.has_categories&&n.categories.length>1),t.ɵɵadvance(),t.ɵɵproperty("ng-hidden",n.submited||n.needs_login),t.ɵɵadvance(),t.ɵɵproperty("message",n.error_message)("show",n.show_error)("close-on-change",!0)("timer",n.toastinterval),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!n.needs_login&&n.show_ajax_error),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.submited),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.needs_login&&!n.submited))},dependencies:[t.NgIf,n.TouchGestures,n.ngHidden,n.ngAriaLive,H,n.ErrorToastComponent,i.DropDown,n.ngFocus],encapsulation:2});class _e{}_e.ɵfac=function(e){return new(e||_e)},_e.ɵmod=t.ɵɵdefineNgModule({type:_e}),_e.ɵinj=t.ɵɵdefineInjector({imports:[t.CommonModule,n.DirectivesModule,P,n.ErrorsModule,i.DropDownModule,n.NgFocusModule]});const fe=["content"];function xe(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 ve(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",5),t.ɵɵlistener("onExpand",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.Expanded(n))})),t.ɵɵelementEnd()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵproperty("ng-truncate",e.htmlcontent)("breakpoint",e.breakpoint)("breakwords",e.breakwords)}}class be{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"}constructor(e,n,s){this._el=e,this._render=n,this._scroller=s,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.run_on_node=!1,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.skip_shortcodes=!1,this.onExpand=new t.EventEmitter,this.hasExpandButton=new t.EventEmitter,this.onContent=new t.EventEmitter}ngOnInit(){this.hasExpandButton.emit(!1),this._document=window.document,!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;this._el.nativeElement.querySelector(".js-shave-char-less");let s=0;const r=e=>t.__awaiter(this,void 0,void 0,(function*(){e.setAttribute("tabindex","0"),e.focus(),requestAnimationFrame((()=>{e.focus()})),yield n.yieldToMain(),setTimeout((()=>{this._scroller.scrollTo({position:s,timing:0})}),0)}));if((()=>{this._scroller.onScroll.pipe(t.take(1)).subscribe((e=>{s=e}))})(),this.auto_focus)for(let t=0,n=e.childNodes.length;t<n;t++){const n=e.childNodes[t];if(n.focus){r(n).then((()=>{}));break}}}}_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,s=null;if(!n)return;let r=[];for(let t=0,i=n.childNodes.length;t<i;t++){let i=n.childNodes[t];i==e?s=t:null!==s&&t>s&&(!i.tagName||"td"!==i.tagName.toLowerCase())&&r.push(i)}r.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 s=t.tagName.toLowerCase();if(n.isAny(s,["tr","tbody","thead","tfoot"])){if("table"!=s){let e=t.parentNode;for(s=e.tagName.toLowerCase();"table"!=s&&s;)e=e.parentNode,s=e&&e.tagName?e.tagName.toLowerCase():null;"table"==s&&(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"==s)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()&&(s="a",t=t.parentNode);"a"==s&&t.parentNode;)t=t.parentNode,s=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",s=e[n].split(" ");if(s.length<2)return;let r,i=s.length-1,a=0,o=!1;for(;a<i;){r=a+i+1>>1;let l=s.slice(0,r).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=r-1:a=r}}_TruncateWithLimit(e,t){const s=[];if(this.skip_shortcodes){const t=/\[[^\]]*\]/g,n=/\[url\s([^[\]]*)\]([^\[]*)\[\/url\]/g;let r=0;e=(e=e.replace(n,(e=>{const t=`|SHORTCODE_${r}|`;return s.push(e),r++,t}))).replace(t,(e=>{const t=`|SHORTCODE_${r}|`;return s.push(e),r++,t}))}let r=this._document.createElement("div");r.innerHTML=e;let i=0,a=!1,o=e=>{for(let s=0,r=e.childNodes.length;s<r;s++){let r=e.childNodes[s];if(1==r.nodeType){if(r.classList.contains("cc-list-buttons")||r.classList.contains("summary-picks-grid")||r.classList.contains("cc-trust")||r.classList.contains("wh-drawer")||r.classList.contains("wh-pro-tip")||r.classList.contains("bk-trust")||r.classList.contains("ci-trust")||r.classList.contains("edu-qna")||n.isAny(r.tagName.toLowerCase(),["blockquote","br"]))continue;if("a"==r.tagName.toLowerCase()&&r.hasAttribute("href"))continue;if(o(r))return!0}else if(3==r.nodeType){let e=r[void 0===r.textContent?"innerText":"textContent"],s=n.trim(e).split(/\s+/g);if(i+=s.length,/^\s/.test(e)&&(s[0]=" "+s[0]),/\s$/.test(e)&&(s[s.length-1]+=" "),i>t){const e=i-t;if(r.nodeValue=s.slice(0,s.length-e).join(" "),r.parentNode){const t=this._document.createElement("div"),n=this._document.createElement("span");n.setAttribute("data-chop","auto"),t.appendChild(n);const i=this._document.createElement("div");i.innerHTML=s.slice(s.length-e).join(" "),r!==r.parentNode.lastChild?r.parentNode.insertBefore(n,r.nextElementSibling):(r.parentNode.appendChild(n),r.parentNode.insertAdjacentHTML("beforeend",i.innerHTML))}return a=!0,!0}}}};if(o(r),a){let e=r.querySelector('span[data-chop="auto"]');e&&r.lastChild!==e&&(this._CutHTML(e,r),e.parentNode==r&&(r.innerHTML=r.innerHTML.split(e.outerHTML)[0]+e.outerHTML,e=r.querySelector('span[data-chop="auto"]')),this._AddExpandBT(e))}let l=r.innerHTML;return s.length&&s.forEach(((e,t)=>{l=l.replace(`|SHORTCODE_${t}|`,e)})),l}_Truncate(){this.istruncated.next(!1),this.hasExpandButton.emit(!1),n.reqAnimationFrame((()=>{const e=this.istruncated.getValue();this.onContent.emit(e?"collapsed":"expanded")}));let e=this._content;if(!this._document)return;if(this.staticbreak&&!this._expandct){e=e.replace(/(?:\\r\\n|\\r|\\n)/g,""),e=n.trim(e),e=e.replace("[chop]",'<span data-chop="desktop"></span>').replace("[mobilechop]","");let t=this._document.createElement("div");t.innerHTML=e;let s=t.querySelector('span[data-chop="desktop"]');return s?t.lastChild==s?s.parentNode.removeChild(s):(this._CutHTML(s,t),s.parentNode==t&&(t.innerHTML=t.innerHTML.split(s.outerHTML)[0]+s.outerHTML,s=t.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(s),e=t.innerHTML):this._WordCount(t)>this.staticbreak&&(e=this._TruncateWithLimit(e,this.staticbreak)),this.sanitize&&(e=n.Sanitize(e,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",e)}if(e=e.replace("[chop]","\x3c!--chop--\x3e").replace("[mobilechop]","\x3c!--mobilechop--\x3e"),e=e.replace('<span data-chop="desktop"></span>',"\x3c!--chop--\x3e").replace('<span data-chop="mobile"></span>',"\x3c!--mobilechop--\x3e"),e=e.replace(/(?:\\r\\n|\\r|\\n)/g,""),e=n.trim(e),n.isNode()&&!this.run_on_node)return this.sanitize&&(e=n.Sanitize(e,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);let t=1282;n.isNode()||(t=window.innerWidth||this._document.body.clientWidth),t<this.breakpoint&&e.indexOf("\x3c!--mobilechop--\x3e")<0&&(e=e.replace(/<!--(auto)?(mobile)?chop-->/g,""));let s=!1,r=!1;t>=this.breakpoint?e.indexOf("\x3c!--chop--\x3e")>0&&(s=!0):e.indexOf("\x3c!--chop--\x3e")>0&&e.indexOf("\x3c!--mobilechop--\x3e")<0?s=!0:e.indexOf("\x3c!--mobilechop--\x3e")>0&&(s=r=!0),s||(e=e.replace("\x3c!--chop--\x3e","").replace("\x3c!--mobilechop--\x3e","")),e=t>this.breakpoint?e.replace(/(<!--chop-->)\s*(<!--mobilechop-->)/,"$2$1"):e.replace(/(<!--mobilechop-->)\s*(<!--chop-->)/,"$2$1"),e=e.replace("\x3c!--chop--\x3e",'<span data-chop="desktop"></span>'),e=e.replace("\x3c!--mobilechop--\x3e",'<span data-chop="mobile"></span>');let i=this._document.createElement("div");i.innerHTML=e;let a=i.querySelector('span[data-chop="desktop"]'),o=i.querySelector('span[data-chop="mobile"]');if(!a&&!o&&!this.auto_truncate)return e=n.Sanitize(e,this.sanitizeCFG),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);let l=!1,c=!!this.breakwords;if(i.lastChild==a||i.lastChild==o)c=!1,a&&i.lastChild==a&&(a.parentNode.removeChild(a),a=null,o&&i.lastChild==o&&(o.parentNode.removeChild(o),o=null)),o&&i.lastChild==o&&(o.parentNode.removeChild(o),o=null,a&&i.lastChild==a&&(a.parentNode.removeChild(a),a=null));else{if(a&&a.parentNode.lastChild==a){let e=a.parentNode,t=!0;for(;e&&e!==i;){if(e.parentNode.lastChild!=e){t=!1;break}e=e.parentNode}t&&(c=!1,a.parentNode.removeChild(a),a=null)}if(o&&o.parentNode.lastChild==o){let e=o.parentNode,t=!0;for(;e&&e!==i;){if(e.parentNode.lastChild!=e){t=!1;break}e=e.parentNode}t&&(c=!1,o.parentNode.removeChild(o),o=null)}}if(a&&(t>this.breakpoint||!r))this._CutHTML(a,i),a.parentNode==i&&(i.innerHTML=i.innerHTML.split(a.outerHTML)[0]+a.outerHTML,a=i.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(a);else if(r&&o&&t<this.breakpoint)this._CutHTML(o,i),o.parentNode==i&&(i.innerHTML=i.innerHTML.split(o.outerHTML)[0]+o.outerHTML,o=i.querySelector('span[data-chop="mobile"]')),this._AddExpandBT(o);else if(c){let s;if(n.objectForEach(this.breakwords,((e,r)=>{if(t<n.toNumber(r))return s=e,!1})),s)if(this.use_shave_break)this._Shave(i,s),l=!0;else if(this._WordCount(i)>s){const t=this._TruncateWithLimit(e,s);return void this._render.setProperty(this._el.nativeElement,"innerHTML",t)}}let d=i.innerHTML;!l&&this.sanitize&&(d=n.Sanitize(i.innerHTML,this.sanitizeCFG)),this._render.setProperty(this._el.nativeElement,"innerHTML",d)}_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 s=()=>{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(),s()):(this._expandct=!1,this._Truncate(),s()))}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()})),this._document=null}}be.ɵfac=function(e){return new(e||be)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.Renderer2),t.ɵɵdirectiveInject(n.ScrollerService))},be.ɵdir=t.ɵɵdefineDirective({type:be,selectors:[["","ng-truncate",""]],inputs:{breakpoint:"breakpoint",breakwords:"breakwords",staticbreak:[0,"breakwords-static","staticbreak"],content:[0,"ng-truncate","content"],sanitize:"sanitize",sanitizeCFG:[0,"sanitize-cfg","sanitizeCFG"],use_shave_break:[0,"use-shave","use_shave_break"],expand_bt:[0,"expand-button","expand_bt"],collapse_bt:[0,"collapse-button","collapse_bt"],hellip:"hellip",auto_truncate:[0,"auto-trim","auto_truncate"],run_on_node:[0,"run-on-node","run_on_node"],expandContent:[0,"expand-content","expandContent"],auto_focus:[0,"auto-focus","auto_focus"]},outputs:{onExpand:"onExpand",hasExpandButton:"hasExpandButton",onContent:"onContent"},standalone:!1});class we{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()}}we.ɵfac=function(e){return new(e||we)(t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(t.Renderer2))},we.ɵcmp=t.ɵɵdefineComponent({type:we,selectors:[["ng-truncate"]],viewQuery:function(e,n){if(1&e&&t.ɵɵviewQuery(fe,5),2&e){let e;t.ɵɵqueryRefresh(e=t.ɵɵloadQuery())&&(n.contentBox=e.first)}},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",expand_mode:[0,"expand","expand_mode"]},outputs:{onExpand:"onExpand"},standalone:!1,ngContentSelectors:["*"],decls:5,vars:3,consts:[["content",""],[3,"ng-hidden"],["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,"onExpand","ng-truncate","breakpoint","breakwords"]],template:function(e,n){1&e&&(t.ɵɵprojectionDef(),t.ɵɵelementStart(0,"div",1,0),t.ɵɵprojection(2),t.ɵɵelementEnd(),t.ɵɵtemplate(3,xe,2,0,"span",2)(4,ve,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(),t.ɵɵproperty("ngIf",n.hide_org_content))},dependencies:[t.NgIf,n.TouchGestures,n.ngHidden,be],encapsulation:2,changeDetection:0});class ye{}ye.ɵfac=function(e){return new(e||ye)},ye.ɵmod=t.ɵɵdefineNgModule({type:ye}),ye.ɵinj=t.ɵɵdefineInjector({imports:[t.CommonModule,n.DirectivesModule]});const Ce=["txtElement"],qe=["quesOverlay"],Ee=["ques_answer"],Se=e=>({"ng-enter-element":e}),ke=(e,t)=>({"light-font qnah-1":e,"qnah-1 qnah-3 extra-bold-font":t}),Te=(e,t,n)=>({"accordion-open":e,"has-accordion":t,"accordion-closed":n}),Ie=()=>({attribute:"itemprop",value:"upvoteCount"}),Ae=e=>[e],Me=()=>({attribute:"itemprop",value:"name"}),Oe=(e,t)=>({"qna-h-collapse":e,"accordion-closed":t}),Le=e=>({"qna-collapsed":e}),Ve=e=>({"accordion-open":e}),Fe=()=>({attribute:"itemprop",value:"text"}),ze=()=>({attribute:"itemprop",value:"downvoteCount"});function Ne(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",24),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){const e=t.ɵɵnextContext(2);t.ɵɵadvance(),t.ɵɵtextInterpolate1("(",e.schq_count,")")}}function Re(e,n){if(1&e&&(t.ɵɵelementStart(0,"h2",21),t.ɵɵelement(1,"span",22),t.ɵɵtemplate(2,Ne,2,1,"span",23),t.ɵɵelementEnd()),2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵproperty("ng-context",e.section_title),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.schq_count)}}function je(e,n){if(1&e&&t.ɵɵelement(0,"h2",25),2&e){const e=t.ɵɵnextContext();t.ɵɵproperty("ngClass",t.ɵɵpureFunction2(2,ke,0==e.layout_type,2==e.layout_type))("ng-context",e.section_title)}}function He(e,n){if(1&e&&(t.ɵɵelementStart(0,"p",26)(1,"span"),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵtext(3,"For more general questions, visit our "),t.ɵɵelementStart(4,"a",27),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 Pe(e,n){if(1&e&&t.ɵɵelement(0,"p",28),2&e){const e=t.ɵɵnextContext();t.ɵɵproperty("zing-url-container",!0)("cleanHTML",e.intro_content)}}function $e(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"p",29),t.ɵɵlistener("onExpand",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.introExpanded())})),t.ɵɵelementEnd()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵproperty("zing-url-container",!0)("ng-truncate",e.intro_content)("breakwords",e.truncateBreakwords)("breakpoint",480)}}function De(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",40),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext(2);return t.ɵɵresetView(n.QClear())})),t.ɵɵelementEnd()}}function Be(e,n){1&e&&(t.ɵɵelementStart(0,"span"),t.ɵɵtext(1,"Don't see what you're looking for?"),t.ɵɵelementEnd())}function Qe(e,n){1&e&&(t.ɵɵelementStart(0,"div",41),t.ɵɵtext(1,"MATCHING RESULTS"),t.ɵɵelementEnd())}function Ue(e,n){1&e&&(t.ɵɵelementStart(0,"div",41),t.ɵɵtext(1,"NO MATCHING RESULTS"),t.ɵɵelementEnd())}function Ge(e,n){1&e&&(t.ɵɵelementStart(0,"div",41),t.ɵɵtext(1,"Searching for answers..."),t.ɵɵelementEnd())}function We(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",30)(1,"div",31)(2,"textarea",32),t.ɵɵlistener("input",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.SearchInput(n))})),t.ɵɵelementEnd(),t.ɵɵtemplate(3,De,1,0,"span",33),t.ɵɵelementStart(4,"button",34),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.QSearch())})),t.ɵɵelementEnd()(),t.ɵɵelementStart(5,"div",35),t.ɵɵtemplate(6,Be,2,0,"span",36),t.ɵɵelementStart(7,"button",37),t.ɵɵlistener("onClick",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.AskQuestion(n))})),t.ɵɵtext(8,"Ask Your Question"),t.ɵɵelementEnd()(),t.ɵɵelementStart(9,"div",38),t.ɵɵtemplate(10,Qe,2,0,"div",39)(11,Ue,2,0,"div",39)(12,Ge,2,0,"div",39),t.ɵɵelementEnd()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵproperty("scroll-to",e.focus_on_input),t.ɵɵadvance(),t.ɵɵproperty("value",e.search_value)("sizeupdate",e.qna_key_reset),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.search_value),t.ɵɵadvance(),t.ɵɵproperty("ng-hidden",!!e.search_value),t.ɵɵadvance(),t.ɵɵclassProp("qna-aq-ss",e.noresults),t.ɵɵproperty("ng-hidden",!(e.show_search_state||e.show_search_state_empty)),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_search_state&&!e.noresults),t.ɵɵadvance(4),t.ɵɵproperty("ngIf",e.show_search_state&&!e.search_loading),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.show_search_state_empty&&!e.search_loading),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.search_loading)}}function Ye(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"li",42),t.ɵɵlistener("onClick",(function(){const n=t.ɵɵrestoreView(e).index,s=t.ɵɵnextContext();return t.ɵɵresetView(s.ChangeSort(n))})),t.ɵɵtext(1),t.ɵɵelementEnd()}if(2&e){const e=n.$implicit,s=n.index;t.ɵɵclassProp("qnaml-first",0==s),t.ɵɵadvance(),t.ɵɵtextInterpolate(e)}}function Ke(e,n){1&e&&t.ɵɵelement(0,"div",51)}function Xe(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",43),t.ɵɵtemplate(1,Ke,1,0,"div",44),t.ɵɵelementStart(2,"div",45)(3,"div",46),t.ɵɵelement(4,"img",47),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",48)(6,"textarea",49),t.ɵɵlistener("input",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.ques_ask=n.target.value)})),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"button",50),t.ɵɵlistener("onClick",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.AskQuestion(n))})),t.ɵɵtext(8,"Ask your Question"),t.ɵɵelementEnd()()()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵproperty("ngIf",0==e.schquestions.length),t.ɵɵadvance(3),t.ɵɵproperty("src",e.user_avatar||e.user_avatar_fallback,t.ɵɵsanitizeUrl)("on-img-error",e.user_avatar_fallback),t.ɵɵadvance(),t.ɵɵproperty("scroll-to",e.focus_on_input),t.ɵɵadvance(),t.ɵɵproperty("value",e.ques_ask)}}function Je(e,n){1&e&&(t.ɵɵelementStart(0,"div",55)(1,"div",56),t.ɵɵelement(2,"i"),t.ɵɵelementEnd()())}function Ze(e,n){if(1&e&&t.ɵɵelement(0,"a",84),2&e){const e=t.ɵɵnextContext(2).$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 et(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,Ze,1,7,"a",83),t.ɵɵelementContainerEnd()),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.ques_href)}}function tt(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"a",86),t.ɵɵlistener("click",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext(2).$implicit,r=t.ɵɵnextContext(2);return t.ɵɵresetView(r.QuesCollapse(n,s))})),t.ɵɵelementEnd()}if(2&e){const e=t.ɵɵnextContext(2).$implicit;t.ɵɵclassProp("qt-as-link",e.from_search),t.ɵɵproperty("href",e.ques_href,t.ɵɵsanitizeUrl)("cleanHTML",e.ques_title)("focus-when",e.focuson)}}function nt(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,tt,1,5,"a",85),t.ɵɵelementContainerEnd()),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.ques_href)}}function st(e,n){if(1&e&&t.ɵɵelement(0,"span",87),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵclassProp("qt-as-link",e.from_search),t.ɵɵproperty("cleanHTML",e.ques_title)}}function rt(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",88),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit;return t.ɵɵresetView(n.collapsed=!n.collapsed)})),t.ɵɵelement(1,"span",89),t.ɵɵelementEnd()}if(2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(1,Ve,!e.collapsed))}}function it(e,n){if(1&e&&t.ɵɵelement(0,"p",90),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵproperty("cleanHTML",e.ques_content_cut_mob)}}function at(e,n){if(1&e&&t.ɵɵelement(0,"p",91),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵproperty("cleanHTML",e.ques_content_cut_desk)}}function ot(e,n){1&e&&(t.ɵɵelementStart(0,"span",92),t.ɵɵtext(1,"..."),t.ɵɵelementEnd())}function lt(e,n){if(1&e&&t.ɵɵelement(0,"p",90),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵproperty("cleanHTML",e.ques_content_more)}}function ct(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",93),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.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 dt(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",94),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.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 ut(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",95),t.ɵɵlistener("onClick",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.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 ht(e,n){1&e&&t.ɵɵelement(0,"span",96)}function pt(e,n){1&e&&t.ɵɵelement(0,"span",96)}function mt(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"form",97),t.ɵɵlistener("onSubmit",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.SubmitReply(n))})),t.ɵɵelementStart(1,"div",98),t.ɵɵelement(2,"img",99),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"div",100)(4,"ck-editor",101),t.ɵɵlistener("valueChange",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext().$implicit,r=t.ɵɵnextContext(2);return t.ɵɵresetView(r.ReplyInput(n,s.id))})),t.ɵɵelementEnd()(),t.ɵɵelementStart(5,"div",102),t.ɵɵelement(6,"error-toast",103),t.ɵɵelementStart(7,"button",104),t.ɵɵlistener("onClick",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.ShowReplybox(n.id))})),t.ɵɵtext(8,"Cancel"),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"button",105)(10,"span"),t.ɵɵtext(11,"Reply"),t.ɵɵelementEnd(),t.ɵɵelement(12,"i",106),t.ɵɵelementEnd()()()}if(2&e){const e=t.ɵɵnextContext().$implicit,n=t.ɵɵnextContext(2);t.ɵɵadvance(2),t.ɵɵproperty("src",n.user_avatar||n.user_avatar_fallback,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(),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 gt(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",120),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){const e=t.ɵɵnextContext(2).$implicit;t.ɵɵadvance(),t.ɵɵtextInterpolate1(", ",e.user_title,"")}}function _t(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",118),t.ɵɵelement(1,"span",22),t.ɵɵtemplate(2,gt,2,1,"span",119),t.ɵɵelementEnd()),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵadvance(),t.ɵɵproperty("ng-context",e.user_fullname||e.user_login),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.user_title)}}function ft(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtext(1),t.ɵɵelementContainerEnd()),2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵadvance(),t.ɵɵtextInterpolate(e.user_login)}}function xt(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",125),t.ɵɵlistener("onTap",(function(){const n=t.ɵɵrestoreView(e).index,s=t.ɵɵnextContext(2).$implicit,r=t.ɵɵnextContext(3);return t.ɵɵresetView(r.AnsOpt(n,s))})),t.ɵɵtext(1),t.ɵɵelementEnd()}if(2&e){const e=n.$implicit,s=n.index;t.ɵɵclassProp("qnaml-first",0==s),t.ɵɵadvance(),t.ɵɵtextInterpolate(e)}}function vt(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",121)(1,"span",122),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(3);return t.ɵɵresetView(s.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",123),t.ɵɵlistener("onTap",(function(n){return t.ɵɵrestoreView(e),t.ɵɵresetView(n.stopPropagation())})),t.ɵɵtemplate(3,xt,2,3,"span",124),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(),t.ɵɵproperty("ngForOf",n.ansOptions)("ngForTrackBy",n.trackByFn)}}function bt(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",126)(1,"a",127),t.ɵɵtext(2,"show more"),t.ɵɵelement(3,"span",128),t.ɵɵelementEnd()()),2&e){const e=t.ɵɵnextContext(2).$implicit;t.ɵɵadvance(),t.ɵɵproperty("href",e.ques_href,t.ɵɵsanitizeUrl)("zing-url",!0)}}function wt(e,n){1&e&&t.ɵɵelement(0,"span",96)}function yt(e,n){1&e&&t.ɵɵelement(0,"span",96)}function Ct(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",74)(1,"div",129),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(3);return t.ɵɵresetView(s.RateContent(n,"up"))})),t.ɵɵtemplate(2,wt,1,0,"span",130),t.ɵɵelementStart(3,"span",131),t.ɵɵtext(4),t.ɵɵelementEnd()(),t.ɵɵelementStart(5,"div",78),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext().$implicit,s=t.ɵɵnextContext(3);return t.ɵɵresetView(s.RateContent(n,"down"))})),t.ɵɵtemplate(6,yt,1,0,"span",130),t.ɵɵelementStart(7,"span",131),t.ɵɵtext(8),t.ɵɵelementEnd()()()}if(2&e){const e=t.ɵɵnextContext(),n=e.$implicit,s=e.index,r=t.ɵɵnextContext(3);t.ɵɵadvance(),t.ɵɵclassProp("visible",n.voteinprogress),t.ɵɵproperty("zing-no-touch",!0),t.ɵɵattribute("aria-label",n.upvotelabel),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.voteinprogress),t.ɵɵadvance(),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(17,Ae,t.ɵɵpureFunction0(16,Ie)))("ng-attribute-when",r.toggleSchema&&0==s),t.ɵɵadvance(),t.ɵɵtextInterpolate(n.upvote),t.ɵɵadvance(),t.ɵɵclassProp("visible",n.downvoteinprogress),t.ɵɵproperty("zing-no-touch",!0),t.ɵɵattribute("aria-label",n.dnvotelabel),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.downvoteinprogress),t.ɵɵadvance(),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(20,Ae,t.ɵɵpureFunction0(19,ze)))("ng-attribute-when",r.toggleSchema&&0==s),t.ɵɵadvance(),t.ɵɵtextInterpolate(n.downvote)}}function qt(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",107)(1,"div",108)(2,"div",109),t.ɵɵelement(3,"img",110,1),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",111),t.ɵɵtemplate(6,_t,3,2,"div",112),t.ɵɵelementStart(7,"div",113),t.ɵɵtemplate(8,ft,2,1,"ng-container",36),t.ɵɵelementEnd(),t.ɵɵtemplate(9,vt,4,3,"div",114),t.ɵɵelementEnd()(),t.ɵɵelement(10,"div",115),t.ɵɵtemplate(11,bt,4,2,"div",116)(12,Ct,9,22,"div",117),t.ɵɵelementEnd()),2&e){const e=n.$implicit,s=n.index,r=t.ɵɵnextContext(),i=r.$implicit,a=r.index,o=t.ɵɵnextContext(2);t.ɵɵproperty("ng-hidden",!(0==s||o.question_more_answers[i.id]||1==s&&i.answers[0].my_ans))("ng-attribute",o.aschemascope)("ng-attribute-when",o.toggleSchema&&0==s),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(),t.ɵɵproperty("ngIf",null==e?null:e.is_reportable),t.ɵɵadvance(),t.ɵɵproperty("cleanHTML",e.show_full||o.ShowFullAns(a)?e.full_content:e.content_long)("zing-url-container",!0)("ng-attribute",t.ɵɵpureFunction1(17,Ae,t.ɵɵpureFunction0(16,Fe)))("ng-attribute-when",o.toggleSchema&&0==s),t.ɵɵattribute("data-pos",e.stackid),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.has_more_button&&(i.ques_href||i.ques_fullslug)&&!(e.show_full||o.ShowFullAns(a))),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!o.IsSpecial(e.id))}}function Et(e,n){1&e&&(t.ɵɵelementStart(0,"div",135),t.ɵɵelement(1,"i"),t.ɵɵelementEnd())}function St(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",132),t.ɵɵtemplate(1,Et,2,0,"div",133),t.ɵɵelementStart(2,"span",134),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext(),s=n.$implicit,r=n.index,i=t.ɵɵnextContext(2);return t.ɵɵresetView(i.ViewMoreAns(s,r))})),t.ɵɵtext(3," View more answers "),t.ɵɵelement(4,"i",11),t.ɵɵelementEnd()()}if(2&e){const e=t.ɵɵnextContext().$implicit,n=t.ɵɵnextContext(2);t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.answersmore[e.id])}}function kt(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"article",57)(1,"div",58)(2,"div",59)(3,"div",60),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"span",61),t.ɵɵtext(6),t.ɵɵelementEnd()()(),t.ɵɵelementStart(7,"div",62)(8,"h3",63),t.ɵɵtemplate(9,et,2,1,"ng-container",36)(10,nt,2,1,"ng-container",36)(11,st,1,3,"span",64)(12,rt,2,3,"button",65),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"div",66),t.ɵɵtemplate(14,it,1,1,"p",67)(15,at,1,1,"p",68)(16,ot,2,0,"span",69)(17,lt,1,1,"p",67)(18,ct,2,1,"span",70)(19,dt,2,1,"span",71),t.ɵɵelementStart(20,"div",72),t.ɵɵtemplate(21,ut,2,2,"div",73),t.ɵɵelementStart(22,"div",74)(23,"div",75),t.ɵɵlistener("onTap",(function(){const n=t.ɵɵrestoreView(e).$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.RateContent(n,"up"))})),t.ɵɵtemplate(24,ht,1,0,"span",76),t.ɵɵelementStart(25,"span",77),t.ɵɵtext(26),t.ɵɵelementEnd()(),t.ɵɵelementStart(27,"div",78),t.ɵɵlistener("onTap",(function(){const n=t.ɵɵrestoreView(e).$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.RateContent(n,"down"))})),t.ɵɵtemplate(28,pt,1,0,"span",76),t.ɵɵelementStart(29,"span",77),t.ɵɵtext(30),t.ɵɵelementEnd()()()(),t.ɵɵtemplate(31,mt,13,15,"form",79),t.ɵɵelementStart(32,"div",80),t.ɵɵtemplate(33,qt,13,19,"div",81)(34,St,5,1,"div",82),t.ɵɵelementEnd()()()()}if(2&e){const e=n.$implicit,s=t.ɵɵnextContext(2);t.ɵɵclassProp("qna-q-search",e.from_search),t.ɵɵproperty("ng-attribute",s.qschemascope)("ng-attribute-when",s.questionToggleSchema(e))("ngClass",t.ɵɵpureFunction3(41,Te,!e.collapsed&&s.collapse,s.collapse,e.collapsed&&s.collapse)),t.ɵɵadvance(3),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(46,Ae,t.ɵɵpureFunction0(45,Ie)))("ng-attribute-when",s.questionToggleSchema(e)),t.ɵɵadvance(),t.ɵɵtextInterpolate(e.upvote),t.ɵɵadvance(2),t.ɵɵtextInterpolate1("Upvote",1!=e.upvote?"s":"",""),t.ɵɵadvance(2),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(49,Ae,t.ɵɵpureFunction0(48,Me)))("ng-attribute-when",s.questionToggleSchema(e))("ngClass",t.ɵɵpureFunction2(51,Oe,s.collapse,e.collapsed&&s.collapse)),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!s.collapse),t.ɵɵadvance(),t.ɵɵproperty("ngIf",s.collapse),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!e.ques_href&&!e.ques_fullslug),t.ɵɵadvance(),t.ɵɵproperty("ngIf",s.collapse),t.ɵɵadvance(),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(54,Le,e.collapsed)),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!s.questionexpand[e.id]&&e.ques_content_cut_mob),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!s.questionexpand[e.id]&&e.ques_content_cut_desk),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!s.questionexpand[e.id]&&e.ques_content_has_more),t.ɵɵadvance(),t.ɵɵproperty("ngIf",(s.questionexpand[e.id]||!e.ques_content_cut_mob)&&e.ques_content_more),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.ques_content_has_more),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.ques_content_has_more),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",!s.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(),t.ɵɵproperty("ngIf",e.voteinprogress),t.ɵɵadvance(2),t.ɵɵtextInterpolate(e.upvote),t.ɵɵadvance(),t.ɵɵclassProp("visible",e.downvoteinprogress),t.ɵɵproperty("zing-no-touch",!0),t.ɵɵattribute("aria-label",e.dnvotelabel),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.downvoteinprogress),t.ɵɵadvance(2),t.ɵɵtextInterpolate(e.downvote),t.ɵɵadvance(),t.ɵɵproperty("ngIf",s.replyboxshow[e.id]),t.ɵɵadvance(),t.ɵɵproperty("ng-hidden",!e.answers||e.answers.length<1),t.ɵɵadvance(),t.ɵɵproperty("ngForOf",e.answers)("ngForTrackBy",s.trackByFn),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.has_more_answers)}}function Tt(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",52),t.ɵɵtemplate(1,Je,3,0,"div",53)(2,kt,35,56,"article",54),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(),t.ɵɵproperty("ngIf",e.search_loading||e.questions_more),t.ɵɵadvance(),t.ɵɵproperty("ngForOf",e.schquestions)("ngForTrackBy",e.trackByFn)}}function It(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",140),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext(2);return t.ɵɵresetView(n.ViewMoreQuestions())})),t.ɵɵelementStart(1,"span",141)(2,"span",139),t.ɵɵtext(3,"View "),t.ɵɵelementEnd(),t.ɵɵtext(4,"More Questions"),t.ɵɵelementEnd(),t.ɵɵelement(5,"i",106),t.ɵɵelementEnd()}if(2&e){const e=t.ɵɵnextContext(2);t.ɵɵclassProp("loadactive",e.questions_more)}}function At(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",136),t.ɵɵtemplate(1,It,6,2,"button",137),t.ɵɵelementStart(2,"button",138),t.ɵɵlistener("onClick",(function(n){t.ɵɵrestoreView(e);const s=t.ɵɵnextContext();return t.ɵɵresetView(s.AskQuestion(n))})),t.ɵɵtext(3,"Ask "),t.ɵɵelementStart(4,"span",139),t.ɵɵtext(5,"Your"),t.ɵɵelementEnd(),t.ɵɵtext(6," Question"),t.ɵɵelementEnd()()}if(2&e){const e=t.ɵɵnextContext();t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.has_more_ques)}}function Mt(e,n){1&e&&(t.ɵɵelementStart(0,"div",142)(1,"div",56),t.ɵɵelement(2,"i"),t.ɵɵelementEnd()())}function Ot(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",143)(1,"p",144),t.ɵɵtext(2,"Oops there was a problem retrieving data"),t.ɵɵelementEnd(),t.ɵɵelement(3,"br"),t.ɵɵelementStart(4,"div",145)(5,"button",146),t.ɵɵlistener("onTap",(function(){t.ɵɵrestoreView(e);const n=t.ɵɵnextContext();return t.ɵɵresetView(n.RetryLoadData())})),t.ɵɵtext(6,"Retry"),t.ɵɵelementEnd()()()}}o.import("css:/components/qna-comp.css").then((()=>{})).catch((()=>{}));const Lt=[13302181,15780064,15679068,13301077,16156697,3020119,15598394,15862659,15149105,68074251,68341972,68371234,68562956,68662113,68824291,68578598,14922710,66854879,15017177,14922730,14922199,67105913,67800123,67800731,15011218,67417507,67568187,67583827,66867877,67744804,66756380,66763333,66672169,67163270,15995521,13754119];class Vt{get ques_data(){return this._ques_data}set ques_data(e){this._ques_data=e,e&&e.questions&&n.isArray(e.questions)&&this._parseInitialData(e)}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 qna_presentation(){let e="default";switch(this.presentation?this.presentation.toLowerCase():"first full version, rest short version"){case"first full version, rest short version":e="default",this.full_qna=1;break;case"all short version":e="short";break;case"all collapsed":e="collapsed",this.collapse=!0;break;case"x number of full version, rest short version":e="varied"}return e}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}constructor(e,s,r){this._location=e,this._route=s,this._dservice=r,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.presentation="first full version, rest short version",this.full_qna=0,this.top_ten_qna=null,this.questions_count=null,this.ask_quest_categories=null,this.is_details=!1,this.nodetruncate=null,this.answers_url_page=n.baseUrl()+"/answers/",this.collapse=!1,this.full_qnas=[],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.onIntroExpand=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="qpage",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))}trackByFn(e){return e}introExpanded(){this.onIntroExpand.emit(!0)}_ParseQuestions(e,t,s){let r=[];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(),""),this.collapse&&(a.collapsed=!0),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,s),r.push(a)})),r}_ParseAnswers(e,t,s,r,i){let a=s||e.answers||[];if(n.isArray(a)&&(e.answers=s?e.answers:[],a.length>0&&!this._has_answer&&(this._has_answer=!0),a.forEach(((s,r)=>{let a=s;a.user_login&&!a.user_login.startsWith("@")&&(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),n.isJasmineTest()||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),a.content_long.includes("...")&&(a.has_more_button=!0)),a.full_content&&(a.full_content=this._FormatAnswer(a.full_content));let o=i?i(a,e,r):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,Lt))&&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!==r&&!isNaN(parseInt(r.toString()))&&r>0&&(e.has_more_answers=!0),"default"===this.qna_presentation))0==t&&e.answers.length>1&&(e.answers[0].show_full=!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"){var s;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?ref="+encodeURIComponent(document.location.href):n.isCordova()&&n.Events.emit("$native:api-no-session",{type:"rate-content"}));if(null===(s=this.signon)||void 0===s?void 0:s.authUser)return this.live_status="Oops. You don't have permission to make edits on this account.",n.Events.emit("$app:error",{title:"Missing Permission",content:this.live_status,btnText:"Got It"}),void(this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3));if(e.voteinprogress||e.downvoteinprogress)return;e.voteinprogress="up"==t,e.downvoteinprogress="down"==t;let r=e.id,i=e.answers||e.ques_title?"question":"answer",a=i,o=(e.id+"").match(/^([abceq])(\d+)$/);o&&(r=parseInt(o.pop()),a=o.pop(),~["q","a"].indexOf(a)||(a="q"+a)),n.$httpAbort("content-vote-"+e.id),clearTimeout(this.live_status_timer),n.$http({url:n.ajaxUrl(),data:{action:"Answers.Vote",id:r,kind:a,dir:"down"==t?"dn":"up"},id:"content-vote-"+e.id,before:()=>{e.voteinprogress="up"==t,e.downvoteinprogress="down"==t,this.live_status="Voting "+i+" "+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?ref="+encodeURIComponent(document.location.href):n.isCordova()&&n.Events.emit("$native:api-no-session",{type:"rate-content"})),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 s=n.stringGetDigits(t.id);0==e&&window.open(`/report-abuse/?ru=${location.href.split("?")[0].split("#")[0]}&t=a&id=${s}`,"_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){var t;let s=this.replyboxinput[e.id];if(s=n.trim(s),!s||s.length<30)this._throwReplyError(e.id,"Content must have 30 characters.");else{if(null===(t=this.signon)||void 0===t?void 0:t.authUser)return this.live_status="Oops. You don't have permission to make edits on this account.",n.Events.emit("$app:error",{title:"Missing Permission",content:this.live_status,btnText:"Got It"}),void(this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3));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:s,ref:document.location.href},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",{type:"answer-submit-login",redirect:t.redirect}):window.open(t.redirect,"_top"),void setTimeout((()=>{this.replyinprogress[e.id]=!0}));if(t.error&&"message"in t){let n=[e.id];const s=t.message.match(/^Bad word `([^`]+)` detected.$/);return s&&s.length&&n.push(`Profanity is not allowed, including words such as "${s[1]}". Please adjust.`),void this._throwReplyError.apply(this,n)}if(t.error)this._throwReplyError(e.id);else{let s=(e.answers||[]).findIndex((e=>e.id==t.id)),r={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:[r]};r.user_avatar&&r.user_avatar.startsWith("//")&&(r.user_avatar="https:"+r.user_avatar),this._ParseAnswers(i,i.id);let a=i.answers[0];a.my_ans=!0,this.answerexpand[a.id]=!0;let o=a;s>-1?(a.edited=!0,Object.assign(e.answers[s],a),o=e.answers[s]):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 s=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"),!s)return void this._StartupLoad(!0);clearTimeout(this.live_status_timer);let r={id:"qna-search-query",url:n.ajaxUrl(),data:{action:"Answers.CommunitySearch",query:s},before:()=>{this.search_loading=!0,this.live_status="Searching for answers"},after:()=>{this.search_loading=!1},method:"GET"};this.quest_category?r.data.category=this._stripSlashes(this.quest_category):r.data.uri=this.ques_referer,n.$http(r).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((s=>{if(this.live_status="",!s||!n.isArray(s.answers))throw Error("Required `answers` Array is not part of response");this.question_more_answers[e.id]=!0,this._ParseAnswers(e,t,s.answers,s.left,((e,t,n)=>{0==n&&(e.focuson=!0,setTimeout((()=>{e.focuson=!1}),100))})),this.live_status="Loaded "+s.answers.length+" more answer"+(1!=s.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,s={uri:this.ques_referer,action:"Answers.GetForPage"};this.is_details&&(s.action="Details.GetQuestions",s.v="3"),this.questions_count&&this.questions_count>0&&(s.rpp=this.questions_count),this.current_page>1&&(s.p=this.current_page),this.sortingparam&&(s.sort_by=this.sortingparam),n.$http({url:n.ajaxUrl(),method:"GET",data:s,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((s=>{if(this.live_status="",!s||!n.isArray(s.questions))throw Error("Required `question` Array is not part of response");this.has_enough_ques=s.pages&&s.pages>1,this.has_more_ques=s.current_page&&s.pages&&s.current_page<s.pages,e?(this.schquestions=[],this.has_enough_ques=!0):(this.live_status="Loaded "+s.questions.length+"more question"+(1!=s.questions.length?"s":""),setTimeout((()=>{this.live_status=""}),1e3)),this.schquestions=this.schquestions.concat(this._ParseQuestions(s.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(ge,{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),(this.collapse||this.presentation&&"all collapsed"==this.presentation.toLowerCase())&&this.schquestions.forEach((e=>{e.collapsed=!0}))}_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),this.questions_count&&this.questions_count>0&&(t.rpp=this.questions_count),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.isLoggedIn()?(this.signon=n.getSignOn(),this.user_avatar=this.signon&&this.signon.pp||this.user_avatar_fallback,0==this.user_avatar.indexOf("//")&&(this.user_avatar="https:"+this.user_avatar)):this.user_avatar=null;let e=this._location.path().split("?")[0];if(this.ques_referer=this.ques_referer||e.replace("/ng-home",""),0==this.ques_referer.indexOf(n.baseUrl())&&(this.ques_referer=this.ques_referer.replace(n.baseUrl(),"")),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],s=t?n.toNumber(t):0;s&&(this.ques_data&&this.ques_data.pages?s<=this.ques_data.pages&&s!=this.ques_data.current_page?(this.current_page=s,this.ques_data=null):this.ques_data.questions.length<1&&(this.ques_data.pages=1):(this.current_page=s,this.ques_data=null))})),this.ques_data&&this.ques_data.questions&&n.isArray(this.ques_data.questions)||n.isNode()||(this.load_startup=!0,setTimeout((()=>{this._StartupLoad()}),this.start_delay||1)),!n.isNode()){let e,s;const r=this._qType.pipe(t.debounceTime(200)).subscribe({next:t=>{let r=n.trim((t||"").replace(/(\r\n\t|\n|\r\t)/gm," "));null!==t&&r!=e&&r.length>1?(e=r,s=!0,this.QSearch(r)):s&&(!r||r.length<2)&&(e=r,s=!1,this.QReset())},error:()=>{},complete:()=>{r.unsubscribe()}})}}QuesCollapse(e,t){n.isNode()||(e.preventDefault(),t.collapsed=!t.collapsed)}ShowFullAns(e){const t="varied"===this.qna_presentation||"default"===this.qna_presentation,n=this.full_qna>0,s=e<this.full_qna;return t&&n&&s}ngAfterViewInit(){n.isNode()||n.reqAnimationFrame((()=>{this.allow_animation=!0}))}ngOnDestroy(){this._qType.complete(),n.$httpAbort("qna-load-initial")}}Vt.ɵfac=function(e){return new(e||Vt)(t.ɵɵdirectiveInject(t.Location),t.ɵɵdirectiveInject(T),t.ɵɵdirectiveInject(n.ScrollerService))},Vt.ɵcmp=t.ɵɵdefineComponent({type:Vt,selectors:[["","id","qna-box"]],viewQuery:function(e,n){if(1&e&&(t.ɵɵviewQuery(Ce,5),t.ɵɵviewQuery(qe,5),t.ɵɵviewQuery(Ee,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:[0,"type","layout_type"],product_name:[0,"product-name","product_name"],ques_data:[0,"product-questions","ques_data"],ques_referer:[0,"product-referer","ques_referer"],intro_content:[0,"use-intro","intro_content"],intro_truncate:[0,"intro-truncate","intro_truncate"],quest_category:[0,"product-category","quest_category"],start_delay:[0,"startup-delay","start_delay"],section_title:[0,"section-title","section_title"],show_header:[0,"show-header","show_header"],presentation:"presentation",full_qna:[0,"full-qna","full_qna"],top_ten_qna:[0,"top-ten","top_ten_qna"],questions_count:[0,"questions-count","questions_count"],ask_quest_categories:[0,"question-categories","ask_quest_categories"],is_details:[0,"details-qna","is_details"],nodetruncate:[0,"ssr-answer-truncate","nodetruncate"],toggleSchema:[0,"toggle-schema","toggleSchema"],open_popup:[0,"show-ask-popup","open_popup"],focus_on_input:[0,"scroll-to-ask","focus_on_input"],addAskParams:[0,"question-ask-add-params","addAskParams"],page_query:[0,"pagination-query","page_query"]},outputs:{total_ques:"total-questions",onIntroExpand:"onIntroExpand"},standalone:!1,decls:22,vars:26,consts:[["quesOverlay",""],["deferImg",""],[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","onExpand",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,"onClick","onTapOutside","focus-when","no-click"],["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",""],["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,"onExpand","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,"input","value","sizeupdate"],["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,"onTap","ng-hidden"],[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"],["id","qna-ques-form",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,"input","value"],["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","ngClass",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","ngClass"],[1,"qna-left-col"],[1,"qna-q-upvotes"],[1,"qna-q-upvotes-count",3,"ng-attribute","ng-attribute-when"],[1,"bold-font"],[1,"qna-right-col"],[1,"qna-q-title-box","bold-font",3,"ng-attribute","ng-attribute-when","ngClass"],["class","qna-q-title link",3,"cleanHTML","qt-as-link",4,"ngIf"],["class","qna-accordion-btn","zing-touch","",3,"ngClass","onTap",4,"ngIf"],[1,"qna-accordion",3,"ngClass"],["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,"onTap","zing-no-touch"],["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,"onTap","zing-no-touch"],["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"],["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"],["zing-touch","","rel","noopener","ng-focus","",1,"qna-q-title","link",3,"href","zing-url","cleanHTML","focus-when","no-click"],["class","qna-q-title link","rel","noopener","ng-focus","",3,"href","cleanHTML","qt-as-link","focus-when","click",4,"ngIf"],["rel","noopener","ng-focus","",1,"qna-q-title","link",3,"click","href","cleanHTML","focus-when"],[1,"qna-q-title","link",3,"cleanHTML"],["zing-touch","",1,"qna-accordion-btn",3,"onTap","ngClass"],[1,"qna-accordion-btn-icon"],[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,"onTap","ng-hidden"],["zing-touch","","role","button","aria-expanded","true",1,"qna-q-content-more","semi-bold-font",3,"onTap","ng-hidden"],["zing-touch","","role","button","tabindex","0","ng-focus","",1,"qna-q-reply","link","semi-bold-font",3,"onClick","focus-when","no-click"],["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,"valueChange","value","active","cursor-focus","readonly"],[1,"reply-act"],[3,"message","show","close-on-change","timer"],["type","button","aria-label","Cancel","zing-touch","",1,"btn","grey","fixed-w",3,"onClick","disabled"],["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"],[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,"cleanHTML","zing-url-container","ng-attribute","ng-attribute-when"],["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,"onTap","ng-hidden"],["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,"onTap","zing-no-touch"],["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){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelement(0,"div",2),t.ɵɵtemplate(1,Re,3,2,"h2",3)(2,je,1,5,"h2",4)(3,He,6,3,"p",5)(4,Pe,1,2,"p",6)(5,$e,1,4,"p",7)(6,We,13,12,"div",8),t.ɵɵelementStart(7,"div",9)(8,"span",10),t.ɵɵlistener("onClick",(function(){return t.ɵɵrestoreView(e),t.ɵɵresetView(n.ControlSortList())}))("onTapOutside",(function(){return t.ɵɵrestoreView(e),t.ɵɵresetView(n.ControlSortList(!1))})),t.ɵɵtext(9),t.ɵɵelement(10,"i",11),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"ul",12),t.ɵɵtemplate(12,Ye,2,3,"li",13),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"div",14),t.ɵɵtext(14,"Questions sort"),t.ɵɵelementEnd()(),t.ɵɵtemplate(15,Xe,9,5,"div",15)(16,Tt,3,8,"div",16)(17,At,7,1,"div",17),t.ɵɵelement(18,"modal-dialog",18,0),t.ɵɵtemplate(20,Mt,3,0,"div",19)(21,Ot,7,0,"div",20)}2&e&&(t.ɵɵproperty("ng-aria-live",n.live_status),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.show_header&&1==n.layout_type),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.show_header&&1!=n.layout_type),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.product_name),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.intro_content&&!n.intro_truncate),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.intro_content&&n.intro_truncate),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.has_enough_ques&&!n.load_startup&&!n.load_startup_fail),t.ɵɵadvance(),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(24,Se,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(),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(),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(),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(),t.ɵɵproperty("ngIf",n.search_loading||n.questions_more||n.schquestions.length),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.has_view_more),t.ɵɵadvance(3),t.ɵɵproperty("ngIf",n.load_startup&&!n.load_startup_fail),t.ɵɵadvance(),t.ɵɵproperty("ngIf",n.load_startup_fail))},dependencies:[t.NgClass,t.NgForOf,t.NgIf,n.TouchGestures,n.ngHidden,n.ngAttribute,n.ngZenScroll,n.ngCleanHTML,n.ngCleanBind,n.ngAriaLive,n.ErrorToastComponent,W,n.ImageLoader,n.ngModalDialog,H,U,n.FormSubmit,be,n.ngFocus],encapsulation:2});class Ft{}Ft.ɵfac=function(e){return new(e||Ft)},Ft.ɵmod=t.ɵɵdefineNgModule({type:Ft}),Ft.ɵinj=t.ɵɵdefineInjector({imports:[t.CommonModule,n.DirectivesModule,n.ErrorsModule,Y,n.ImageLoaderModule,L,n.ngModalsModule,n.StickerModule,P,G,n.FormSubmitModule,_e,ye,n.NgFocusModule]});const zt=(e,t,n,s,r,i)=>({"exp-gal-one-it":e,"exp-gal-two-it":t,"expert-single":n,"blink-end":s,empty:r,"experts-format-a":i});function Nt(e,n){1&e&&(t.ɵɵelementStart(0,"div",11),t.ɵɵelement(1,"i"),t.ɵɵelementEnd())}function Rt(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",12),t.ɵɵelement(1,"h2",13),t.ɵɵelementEnd()),2&e){const e=t.ɵɵnextContext(2);t.ɵɵadvance(),t.ɵɵproperty("innerHTML",e.header_text||"Ask the Experts",t.ɵɵsanitizeHtml)("ng-speak-when",e.head_focus)}}function jt(e,n){if(1&e&&t.ɵɵelement(0,"div",14),2&e){const e=t.ɵɵnextContext(2);t.ɵɵproperty("cleanHTML",e.intro)}}function Ht(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,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.gotToOne(n.HASHTAG))})),t.ɵɵtext(8,"Read More"),t.ɵɵelementEnd(),t.ɵɵelementContainerEnd()}if(2&e){const e=t.ɵɵnextContext(),n=e.$implicit,s=e.index,r=t.ɵɵnextContext(2);t.ɵɵadvance(),t.ɵɵproperty("ng-speak-when",r.center_experts&&0===s),t.ɵɵadvance(),t.ɵɵtextInterpolate(n.AUTHOR),t.ɵɵadvance(3),t.ɵɵtextInterpolate(n.CAPTION)}}function Pt(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,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.gotToOne(n.HASHTAG))})),t.ɵɵelementEnd(),t.ɵɵelementContainerEnd()}if(2&e){const e=t.ɵɵnextContext().$implicit;t.ɵɵadvance(),t.ɵɵproperty("ng-context",e.AUTHOR)}}function $t(e,n){if(1&e){const e=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",15)(1,"div",16)(2,"span",17),t.ɵɵlistener("onClick",(function(){const n=t.ɵɵrestoreView(e).$implicit,s=t.ɵɵnextContext(2);return t.ɵɵresetView(s.gotToOne(n.HASHTAG))})),t.ɵɵelement(3,"img",18,0),t.ɵɵelementEnd()(),t.ɵɵelementStart(5,"div",19),t.ɵɵtemplate(6,Ht,9,3,"ng-container",20)(7,Pt,2,1,"ng-container",20),t.ɵɵelementEnd()()}if(2&e){const e=n.$implicit,s=t.ɵɵnextContext(2);t.ɵɵclassProp("gallery-item-logo",s.as_logos),t.ɵɵadvance(2),t.ɵɵproperty("defer-src",e.AVATAR)("zing-no-touch",!0)("ui-hydrate",s.srv_no_avatars),t.ɵɵattribute("aria-label",e.AUTHOR),t.ɵɵadvance(),t.ɵɵclassProp("exp-img-logo",s.as_logos),t.ɵɵproperty("alt",e.AUTHOR),t.ɵɵadvance(3),t.ɵɵproperty("ngIf",!s.as_logos),t.ɵɵadvance(),t.ɵɵproperty("ngIf",s.as_logos)}}function Dt(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(),t.ɵɵproperty("ng-context",e.more_btn_txt)}}function Bt(e,n){if(1&e&&(t.ɵɵelementStart(0,"i"),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){const e=t.ɵɵnextContext(3);t.ɵɵadvance(),t.ɵɵtextInterpolate(null==e.expert_full?null:e.expert_full.CAPTION)}}function Qt(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 Ut(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 Gt(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,Bt,2,1,"i",20)(5,Qt,1,1,"div",30)(6,Ut,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(),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(),t.ɵɵproperty("ngIf",!e.as_logos),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!e.as_logos),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.as_logos),t.ɵɵadvance(),t.ɵɵproperty("ngClass",e.back_bt_class),t.ɵɵadvance(),t.ɵɵtextInterpolate(e.back_bt_text)}}function Wt(e,n){if(1&e&&(t.ɵɵelementStart(0,"section",2),t.ɵɵtemplate(1,Nt,2,0,"div",3)(2,Rt,2,2,"div",4)(3,jt,1,1,"div",5),t.ɵɵelementStart(4,"div",6)(5,"div",7),t.ɵɵtemplate(6,$t,8,11,"div",8)(7,Dt,2,1,"div",9)(8,Gt,9,9,"article",10),t.ɵɵelementEnd()()()),2&e){const e=t.ɵɵnextContext();t.ɵɵproperty("ngClass",t.ɵɵpureFunction6(13,zt,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(),t.ɵɵproperty("ngIf",e.loading),t.ɵɵadvance(),t.ɵɵproperty("ngIf",!e.layout_format),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.intro&&!e.expert_single),t.ɵɵadvance(),t.ɵɵclassProp("all",!e.expert_single),t.ɵɵproperty("scroll-to",e.center_experts),t.ɵɵadvance(),t.ɵɵproperty("scroll-to",e.scrollsingle)("scrolloffset",e.expert_offset),t.ɵɵadvance(),t.ɵɵproperty("ngForOf",e.experts),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.hasmoreexperts&&!e.expert_single),t.ɵɵadvance(),t.ɵɵproperty("ngIf",e.expert_single)}}o.import("css:/components/experts-gallery.css").then((()=>{}),(()=>{}));class Yt{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 s,r=()=>{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||r(),setTimeout((()=>{e&&e.unsubscribe()}))}))}this._servertransitwait=!1}else t||r()}))}))),s=!0):s=!1,this.tagMatch.emit(s)}_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}))}))}}Yt.ɵfac=function(e){return new(e||Yt)(t.ɵɵdirectiveInject(t.NgZone))},Yt.ɵcmp=t.ɵɵdefineComponent({type:Yt,selectors:[["div","id","experts-gallery"]],inputs:{expert_offset:[0,"scroll-offset","expert_offset"],max_experts:[0,"max-experts","max_experts"],header_text:[0,"header-text","header_text"],srv_no_avatars:[0,"ui-hydrate-avatars","srv_no_avatars"],no_scroll_all:[0,"no-scroll-all","no_scroll_all"],hashname:[0,"hashtag","hashname"],data:"data",urlpath:"urlpath",urlrefresh:"urlrefresh",refreshdelay:"refreshdelay",asyncdata:"asyncdata",server_render:[0,"server-render","server_render"],layout_format:[0,"format","layout_format"],back_bt_text:[0,"back-bt-text","back_bt_text"],back_bt_class:[0,"back-bt-class","back_bt_class"],more_btn_txt:[0,"more-bt-text","more_btn_txt"]},outputs:{changedExpert:"changedExpert",tagMatch:"tagMatch"},standalone:!1,decls:1,vars:1,consts:[["deferImg",""],["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,"onClick","defer-src","zing-no-touch","ui-hydrate"],["height","110","width","110","tabindex","-1","aria-hidden","true",1,"expert-image",3,"alt"],[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,"onClick","ng-context"],[1,"more-experts"],["zing-touch","","role","button","tabindex","0",3,"onClick","ng-context"],[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,"onClick","ngClass"],[1,"description-text",3,"innerHtml"],[1,"description-text",3,"cleanHTML","cleanHTML-sett"]],template:function(e,n){1&e&&t.ɵɵtemplate(0,Wt,9,20,"section",1),2&e&&t.ɵɵproperty("ngIf",!n.norender)},dependencies:[n.TouchGestures,n.ngZenScroll,n.ngCleanHTML,n.ngCleanBind,n.ngSpeak,t.NgClass,t.NgForOf,t.NgIf,n.ImageLoader],encapsulation:2});class Kt{}Kt.ɵfac=function(e){return new(e||Kt)},Kt.ɵmod=t.ɵɵdefineNgModule({type:Kt}),Kt.ɵinj=t.ɵɵdefineInjector({imports:[n.DirectivesModule,t.CommonModule,n.ImageLoaderModule,n.NgFocusModule]}),e.ActivatedRoute=T,e.CompileExpertsGallery=function(e,t,s,r={}){let i=Kt,a=Yt;const o=document.querySelectorAll("[id=experts-gallery]"),l=[];for(let c=0,d=o.length;c<d;c++){o[c].setAttribute("data-expert-sect",c.toString());let d=`div[data-expert-sect="${c}"]`,u=r.data[c]||{};u={back_bt_text:u.back_link_text,more_btn_txt:u.more_text,header_text:u.header_text,expert_offset:-100,max_experts:6,hashname:r.hashname,data:{expertsContent:u.expertsContent,aslogos:u.aslogos,expertsIntro:u.expertsIntro}},l.push(n.injectModuleAsync(e,t,i,a,d,u).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 s=n.objectFromParam(t);s&&s.expert&&n.reqAnimationFrame((()=>{e.Component.instance.hashname=s.expert}))}}));return{destroy:()=>{e.destroy(),t.unsubscribe(),r.unsubscribe()}}})))}return Promise.all(l).then((e=>({destroy:()=>{e.forEach((e=>{e.destroy()}))}})))},e.FooterModule=k,e.GetNavigo=function(){return O},e.PageFooter=S,e.QnAComp=Vt,e.QnAModule=Ft,e.Router=I,e.RouterModule=L}));