"bundle";System.register("bundled/ci-shortcode.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","npm:autonumeric/dist/autoNumeric.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize"],function(k,T){"use strict";var I,C,E,L,z,A,S,O,R,j,H,M,P,N,F,$,G,D,V,Q,B,U,W,X,Y,K,Z,J,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,he,pe,ge,fe,_e,me,ve,be,ye,we,xe,qe,ke,Te,Ie,Ce,Ee,Le,ze,Ae,Se,Oe;return{setters:[function(){},function(){},function(){},function(){},function(e){I=e.ɵ,C=e.a,E=e.s,L=e.I,z=e.k,A=e.D,S=e.f,O=e.y,R=e.z,j=e.A,H=e.n,M=e.r,P=e.p,N=e.v,F=e.g,$=e.h,G=e.Q,D=e.i,V=e.j,Q=e.F,B=e.E,U=e.O,W=e.R,X=e.l,Y=e.b,K=e.c,Z=e.C,e.d,J=e.N,ee=e.e,te=e.u,ne=e._,ie=e.G,se=e.a2,oe=e.ac,re=e.ad,ae=e.ae,ce=e.af,le=e.ag,ue=e.Y,de=e.a3,he=e.ah,pe=e.ai,ge=e.U,fe=e.o,_e=e.w,me=e.m,ve=e.Z},function(){},function(){},function(){},function(e){be=e.$,ye=e.a,we=e.C,xe=e.i,qe=e.T,ke=e.D,Te=e.S,Ie=e.u,Ce=e.r,Ee=e.j,Le=e.K},function(){},function(){},function(){},function(){},function(){},function(){},function(e){ze=e.F,Ae=e.a},function(){},function(e){Se=e.n,Oe=e.a},function(){}],execute:function(){var n,e=(Object.defineProperty(t.prototype,"insuredvalue",{get:function(){return this.insuredparam.toString()},enumerable:!1,configurable:!0}),t.prototype._GetToken=function(){var t=this;return be({url:ye(),method:"GET",data:{action:"Pit.RefreshNonce"},expectedType:"text"}).then(function(e){return t.xsrf_token=e,n=e,t._cd.detectChanges(),null},function(e){return console.warn("could not get token"),e})},t.prototype.SetAdView=function(e){this.ad_click_id=e.click,this.ad_view_id=e.view,this._cd.detectChanges()},t.prototype.ChangeInsurance=function(e){this.insured=e,this.insuredparam="Yes"==e,this._cd.detectChanges()},t.prototype.ChangeZip=function(e){this.zipcode=e.target.value,this.invalid.zip=!1,this.show_error=!1,clearTimeout(this._ajax_error_timer),this._cd.detectChanges()},t.prototype.SetAge=function(e){this.age=e,this.ageparam=this._ages_param[this.ages.indexOf(this.age)],this.show_error=!1,this.invalid.age=!1,clearTimeout(this._ajax_error_timer),this._cd.detectChanges()},t.prototype._ajaxError=function(){var e=this;clearTimeout(this._ajax_error_timer),this.error_msg="something went wrong, please retry.",this.show_error=!0,this._cd.detectChanges(),this._ajax_error_timer=setTimeout(function(){e.show_error=!1,e._cd.detectChanges()},2500)},t.prototype.GetQuote=function(e){var t=this;if(!this.loading){if(this.pass_validation=!1,this.show_error)return this.show_error=!1,this._cd.detectChanges(),void setTimeout(function(){t.show_error=!0,t._cd.detectChanges()});0==/^\d+$/.test(this.zipcode)||5!==this.zipcode.length?(this.invalid.zip=!0,this.show_error=!0,this.error_msg="please provide a valid U.S zipcode"):this.age?(this.loading=!0,this.pass_validation=!0):(this.invalid.age=!0,this.show_error=!0,this.error_msg="please select an age"),this._cd.detectChanges(),this.show_error||(we.set("wh_zipcode",this.zipcode,3650),we.set("wh_age",this.ageparam,3650),we.set("wh_currently_insured",this.insuredparam?1:0,3650),be({url:ye(),method:"GET",data:Object.assign({action:"Profiles.FindInsurers",age:this.ageparam,zip:this.zipcode,currently_insured:this.insuredparam,viewid:this.ad_view_id,clickid:this.ad_click_id},e||{}),after:function(){t.loading=!1,t._cd.detectChanges()}}).then(function(e){e.error?t._ajaxError():(setTimeout(function(){t.loading=!0,t._cd.detectChanges()}),window.open(e.goto_link,"_self"))}).catch(function(e){t._ajaxError()}))}},t.prototype.ngOnInit=function(){var t=this;xe()||(n?this.xsrf_token=n:this._GetToken(),this.is_tabletmode=768<=window.innerWidth&&window.innerWidth<=1003,we.get("wh_zipcode")&&""!=we.get("wh_zipcode")?(this.zipcode=we.get("wh_zipcode"),this._cd.detectChanges()):be({url:ye(),method:"GET",data:{action:"Calculators.MortgageIpToZip",loggedIn:!1}}).then(function(e){e.zip?t.zipcode=e.zip:"-"!=e[7]&&(t.zipcode=e[7]||""),t._cd.detectChanges()}).catch(function(e){t._ajaxError()}),we.get("wh_age")&&""!=we.get("wh_age")&&(this.ageparam=we.get("wh_age"),this.age=this.ages[this._ages_param.indexOf(this.ageparam)],this._cd.detectChanges()),we.get("wh_currently_insured")&&""!=we.get("wh_currently_insured")&&(this.insured="1"==we.get("wh_currently_insured")?"Yes":"No",this.insuredparam="1"==we.get("wh_currently_insured"),this._cd.detectChanges()))},t.prototype.ngOnDestroy=function(){clearTimeout(this._ajax_error_timer),n=null},t.ɵfac=function(e){return new(e||t)(I(z))},t.ɵdir=C({type:t,inputs:{typeList:["type-list","typeList"],age:"age",insured:"insured",zipcode:"zipcode",layoutType:["layout-type","layoutType"]}}),t);function t(e){this._cd=e,this.typeList=[],this.age=null,this.insured="Yes",this.zipcode="",this.layoutType=1,this.ages=["16-20","21-24","25-34","35-44","45-54","55-65","65+"],this.ageparam="",this.insuredparam=!0,this._ages_param=["16","21","25","35","45","55","65"],this.loading=!1,this.invalid={type:!1,zip:!1,age:!1,rpc:!1},this.show_error=!1,this.error_msg="",this.pass_validation=!1,this.xsrf_token="",this.ad_view_id="",this.ad_click_id="",this.is_tabletmode=!1,this._ajax_error_timer=null}E(e,[{type:A}],function(){return[{type:z}]},{typeList:[{type:L,args:["type-list"]}],age:[{type:L,args:["age"]}],insured:[{type:L,args:["insured"]}],zipcode:[{type:L,args:["zipcode"]}],layoutType:[{type:L,args:["layout-type"]}]});var i=["input"];function s(e,t){1&e&&N(0,"div",5),2&e&&(e=te(),$("innerHTML",e.label,ne))}var o=(Object.defineProperty(r.prototype,"required",{get:function(){return this._required},set:function(e){this._required=!!e},enumerable:!1,configurable:!0}),r.prototype.Check=function(){this.checked=!this.checked,this.checkedChange.emit(this.checked)},r.prototype.ngAfterViewInit=function(){xe()&&this.checked&&this.renderer.setAttribute(this.checkbox.nativeElement,"checked","checked")},r.ɵfac=function(e){return new(e||r)(I(B),I(W))},r.ɵcmp=S({type:r,selectors:[["ng-checkbox"]],viewQuery:function(e,t){var n;1&e&&O(i,!0,B),2&e&&R(n=j())&&(t.checkbox=n.first)},inputs:{required:"required",name:"name",label:"label",checked:"checked",disabled:"disabled"},outputs:{checkedChange:"checkedChange"},decls:5,vars:7,consts:[["zing-touch","",1,"checkbox",3,"zingToggle"],["type","checkbox","value","",3,"checked","required","disabled","name","change"],["input",""],[1,"track","bf-icon-ok"],["class","name",3,"innerHTML",4,"ngIf"],[1,"name",3,"innerHTML"]],template:function(e,t){1&e&&(H(0,"label",0),H(1,"input",1,2),M("change",function(){return t.Check()}),P(),N(3,"i",3),F(4,s,1,1,"div",4),P()),2&e&&($("zingToggle",!0),G("aria-label",t.label),D(1),$("checked",t.checked)("required",t.required)("disabled",t.disabled)("name",t.name),D(3),$("ngIf",t.label))},directives:[qe,V],encapsulation:2}),r);function r(e,t){this.el=e,this.renderer=t,this.name=null,this.label=null,this.checkedChange=new ee,this.disabled=!1}E(o,[{type:X,args:[{selector:"ng-checkbox",template:'<label class="checkbox" zing-touch [zingToggle]="true" [attr.aria-label]="label">\n                    <input #input type="checkbox" value="" [checked]="checked" (change)="Check()" [required]="required" [disabled]="disabled" [name]="name"/>\n                    <i class="track bf-icon-ok"></i>\n                    <div class="name" *ngIf="label" [innerHTML]="label"></div>\n                </label>'}]}],function(){return[{type:B},{type:W}]},{checkbox:[{type:Q,args:["input",{read:B,static:!1}]}],required:[{type:L}],name:[{type:L}],label:[{type:L}],checkedChange:[{type:U}],checked:[{type:L}],disabled:[{type:L}]});var a=(c.ɵmod=Y({type:c}),c.ɵinj=K({factory:function(e){return new(e||c)},imports:[[Z,ke]]}),c);function c(){}E(a,[{type:J,args:[{declarations:[o],exports:[o],imports:[Z,ke]}]}],null,null);var l=["AdPixelViewTrigger"],u=["AdPixelViewReferrer"],d=["AdPixelViewClick"],h=(p.prototype.AttachEvents=function(){var t=this;this.onScrollEnd=new ie(null),this.onResize=new se,xe()||(this._subs=this._dservice.onScroll.subscribe(function(e){t._scrolling&&clearTimeout(t._scrolltimer),t._scrolling=!0,t._scrolltimer=setTimeout(function(){t._scrolling=!1,Ce(function(){t.onScrollEnd.next(e)})},500)}),this._resize=new se,this._obs.push(de(window,"resize")),this._resizesubs=this._obs[this._obs.length-1].pipe(he(this._resize)).subscribe(function(){Ce(function(){t.onResize.next()})}))},p.prototype.DetachEvents=function(){this._subs&&(this._subs.unsubscribe(),this._subs=null),this._resizesubs&&(this._resizesubs.unsubscribe(),this._resizesubs=null),this._resize&&(this._resize.next(),this._resize.complete(),this._resize=null),this.onScrollEnd&&(this.onScrollEnd.complete(),this.onScrollEnd=null),this.onResize&&(this.onResize.complete(),this.onResize=null),this._obs=null},p.ɵprov=re({token:p,factory:p.ɵfac=function(e){return new(e||p)(oe(Te))}}),p);function p(e){this._dservice=e,this._scrolling=!1,this._obs=[]}E(h,[{type:ae}],function(){return[{type:Te}]},null);var g=(Object.defineProperty(f.prototype,"recheck",{get:function(){return this._recheck},set:function(e){e&&this._ResetnCheck(),this._recheck=e},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"_adlocation",{get:function(){return this._loc.path().replace("/ng-home/","/").split("?")[0]},enumerable:!1,configurable:!0}),f.prototype.ngOnInit=function(){this.viewId=Ie(),this.clickId=Ie(),xe()||(this.viewport=this._getViewportSize()),this.viewSet.emit(this.viewId)},f.prototype.ngAfterViewInit=function(){var t,e,n,i=this;this._PixelReferrer(),this._PixelAddClickId(),xe()||(this.clicksList&&this.clicksList.forEach(function(t){var e=de(t.nativeElement,"click");i.obs.push(e),i.sbs.add(e.subscribe(function(e){i._PixelClicked(t)}))}),this.referrersList&&this.referrersList.forEach(function(e){e=de(e.nativeElement,"click");i.obs.push(e),i.sbs.add(e.subscribe(function(e){i.is_viewed||i._PixelTrigger()}))}),t=(this.use_IntersectionObserver?this._RegisterIntersectElements:this._CheckElements).bind(this),this.sbs.add(this.clicksList.changes.subscribe(function(e){t(i.clicksList),i._PixelAddClickId()})),this.sbs.add(this.triggersList.changes.subscribe(function(e){t(i.triggersList)})),this.sbs.add(this.referrersList.changes.subscribe(function(e){i._PixelReferrer(),t(i.referrersList)})),e=this._srv.onScrollEnd,n=this._srv.onResize,this.use_IntersectionObserver?(this._intersectionObserver=new IntersectionObserver(function(e){i._CheckForIntersection(e)},{threshold:this.triggerRatio}),this._RegisterIntersectElements("all"),this.sbs.add(e.subscribe(function(e){i.is_intersecting&&i._PixelTrigger()}))):(this._CheckElements("all"),this.sbs.add(e.subscribe(function(e){i._CheckElements("all")}))),this.sbs.add(n.subscribe(function(e){i.viewport=i._getViewportSize(),i.debug&&console.log("new viewport size : ",i.viewport),i.use_IntersectionObserver||i._CheckElements("all")})))},f.prototype._RegisterIntersectElements=function(e){var t=this,n=!0,i=function(e){t._intersectionObserver.unobserve(e.nativeElement),t._intersectionObserver.observe(e.nativeElement),n=!1};"all"==e?(this.triggersList&&this.triggersList.forEach(i),this.referrersList&&this.referrersList.forEach(i),this.clicksList&&this.clicksList.forEach(i)):e.forEach(i),(this.is_main_intersct=n)&&(i=this.mainElement.nativeElement,i=this.ad_use_parent_el?i.parentNode:i,this._intersectionObserver.observe(i))},f.prototype._CheckElements=function(e){var t,n,i=this;this.is_viewed||(t=!0,n=function(e){t=!1,i._isInViewport(e)&&i._PixelTrigger()},"all"==e?(this.triggersList&&this.triggersList.forEach(function(e){n(e)}),this.referrersList&&this.referrersList.forEach(function(e){n(e)}),this.clicksList&&this.clicksList.forEach(function(e){n(e)})):e&&e.forEach(function(e){n(e)}),(this.is_main_intersct=t)&&(e=this.mainElement.nativeElement,e=this.ad_use_parent_el?{nativeElement:e.parentNode}:this.mainElement,n(e)))},f.prototype._isInViewport=function(e,t){if(!this.viewport)return!1;var n=t?e.boundingClientRect:e.nativeElement.getBoundingClientRect(),t=n.height||n.bottom-n.top,e=n.width||n.right-n.left;return!(!t||!e)&&!(n.top+n.height*(this.is_main_intersct?this.triggerRatio:1)>this.viewport.h||n.bottom<0)},f.prototype._getViewportSize=function(){var e=window;if(null!=e.innerWidth)return{w:e.innerWidth,h:e.innerHeight};e=e.document;return{w:e.body.clientWidth,h:e.body.clientWidth}},f.prototype._ResetnCheck=function(){xe()||(this.is_viewed=!1,this.viewId=Ie(),this.clickId=Ie(),this._PixelReferrer(),this._PixelAddClickId(),this._CheckElements("all"))},f.prototype._PixelTrigger=function(){this.is_viewed||(this.is_viewed=!0,this.adViewed.emit({view:this.viewId,click:this.clickId}),this._httpCall())},f.prototype._PixelClicked=function(e){var t=this;this.is_viewed||this._PixelTrigger(),Ce(function(){t._PixelAddClickId()})},f.prototype._PixelAddClickId=function(){var i=this;this.clicksList&&this.clicksList.forEach(function(e){var t,n=i.clickUrl;xe()||(t=i.clickId,i.uniqueClickId&&(i.clickId=Ie()),n=n+(-1<n.indexOf("?")?"&":"?")+"clickId="+t+"&viewId="+i.viewId,(t=e.nativeElement).dataset&&t.dataset.clickparams&&(n+="&"+t.dataset.clickparams)),i._renderer.setAttribute(e.nativeElement,"href",n)})},f.prototype._PixelReferrer=function(){var i=this;this.referrersList&&this.referrersList.forEach(function(e){var t=i.referrerUrl,n=t;xe()||(n+=(-1<t.indexOf("?")?"&":"?")+"viewReferrer="+i.viewId),i._renderer.setAttribute(e.nativeElement,"href",n)})},f.prototype._httpCall=function(e){void 0===e&&(e={});var t=Object.assign({adview_id:this.viewId,adview_pid:this.adId,adview_page:this._adlocation,adview_version:2,adview_section:this.section,adview_position:this.position||0,adview_totals:this.totals||0},this.addlQueries,e),e=Ee()+"/pixel.png";t.adview_section||delete t.adview_section,t.adview_pid||delete t.adview_id,(0==t.adview_totals&&0==t.adview_position||-1==t.adview_totals&&-1==t.adview_position)&&(delete t.adview_position,delete t.adview_totals),be({method:"GET",data:{},events:!1,url:e,query:t,expectedType:"text",retry:1}).then(function(){},function(e){}),this.debug&&console.log(this.adId," AdPixelView fired.")},f.prototype.ngOnDestroy=function(){this.sbs.unsubscribe(),this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this.obs=[]},f.ɵfac=function(e){return new(e||f)(I(B),I(Te),I(W),I(h),I(ue))},f.ɵdir=C({type:f,selectors:[["","ad-pixel",""]],contentQueries:function(e,t,n){1&e&&(ce(n,l,!0,B),ce(n,u,!0,B),ce(n,d,!0,B)),2&e&&(R(e=j())&&(t.triggersList=e),R(e=j())&&(t.referrersList=e),R(e=j())&&(t.clicksList=e))},inputs:{addlQueries:["addl-queries","addlQueries"],triggerRatio:["trigger-ratio","triggerRatio"],debug:"debug",referrerUrl:["referrer-url","referrerUrl"],clickUrl:["click-url","clickUrl"],section:["adview-section","section"],position:["adview-position","position"],totals:["adview-totals","totals"],adId:["ad-id","adId"],ad_use_parent_el:["ad-use-parent","ad_use_parent_el"],uniqueClickId:["unique-click-id","uniqueClickId"],recheck:["ad-pixel-recheck","recheck"]},outputs:{adViewed:"adViewed",viewSet:"viewSet"}}),f);function f(e,t,n,i,s){var o=this;this.mainElement=e,this._dservice=t,this._renderer=n,this._srv=i,this._loc=s,this.triggerRatio=.15,this.debug=!1,this.referrerUrl="",this.clickUrl="",this.section="",this.position=0,this.totals=0,this.ad_use_parent_el=!1,this.uniqueClickId=!1,this.viewId="",this.is_viewed=!1,this.clickId="",this.sbs=new pe,this.obs=[],this.is_intersecting=!1,this.is_main_intersct=!1,this.adViewed=new ee,this.viewSet=new ee,this._CheckForIntersection=function(e){if(!o.is_viewed)for(var t=0,n=e.length;t<n;t++){var i=e[t];if(Le(i.isIntersecting)&&o._isInViewport(i,!0)){o.is_intersecting=!0;break}if(i.isIntersecting){o.is_intersecting=!0;break}o.is_intersecting=!1}},this.use_IntersectionObserver=!(xe()||!window.IntersectionObserver),this.debug&&console.log("use_IntersectionObserver is : ",this.use_IntersectionObserver)}E(g,[{type:A,args:[{selector:"[ad-pixel]"}]}],function(){return[{type:B},{type:Te},{type:W},{type:h},{type:ue}]},{addlQueries:[{type:L,args:["addl-queries"]}],triggerRatio:[{type:L,args:["trigger-ratio"]}],debug:[{type:L,args:["debug"]}],referrerUrl:[{type:L,args:["referrer-url"]}],clickUrl:[{type:L,args:["click-url"]}],section:[{type:L,args:["adview-section"]}],position:[{type:L,args:["adview-position"]}],totals:[{type:L,args:["adview-totals"]}],adId:[{type:L,args:["ad-id"]}],ad_use_parent_el:[{type:L,args:["ad-use-parent"]}],uniqueClickId:[{type:L,args:["unique-click-id"]}],recheck:[{type:L,args:["ad-pixel-recheck"]}],triggersList:[{type:le,args:["AdPixelViewTrigger",{read:B,descendants:!0}]}],referrersList:[{type:le,args:["AdPixelViewReferrer",{read:B,descendants:!0}]}],clicksList:[{type:le,args:["AdPixelViewClick",{read:B,descendants:!0}]}],adViewed:[{type:U}],viewSet:[{type:U}]});var _=(m.prototype.ngOnDestroy=function(){this._srv.DetachEvents()},m.ɵmod=Y({type:m}),m.ɵinj=K({factory:function(e){return new(e||m)(oe(h))},providers:[h],imports:[[Z,ke]]}),m);function m(e){this._srv=e,this._srv.AttachEvents()}E(_,[{type:J,args:[{declarations:[g],exports:[g],imports:[Z,ke],providers:[h]}]}],function(){return[{type:h}]},null);var v=["class","car-insurance-widget"];function b(e,t){1&e&&(H(0,"div",14),fe(1),P()),2&e&&(e=te(),D(1),ve(e.error_msg))}function y(e,t){1&e&&(H(0,"div",15),fe(1),P()),2&e&&(e=te(),D(1),ve(e.error_msg))}T.import("css:/ci-shortcode.css").then(function(){},function(){});var w,g=k("CIShortCode",(w=e,__extends(x,w),x.prototype.ChangeInsurance=function(e){this.insuredparam=e,this._cd.detectChanges()},x.prototype._GetSesId=function(){var t=this;return be({url:Ee()+"/sid.php",data:{a:"1"},method:"GET",events:!1,retry:2}).then(function(e){return e&&e.__whid&&(t.adview_extra={adview_offer_type:"Car_Insurance_Widget",session_id:e.__whid}),t._cd.detectChanges(),null}).catch(function(e){console.warn("could not get session id",e)})},x.prototype.ngOnInit=function(){var e;w.prototype.ngOnInit.call(this),xe()||(e=we.get("__whid"),this.adview_extra={adview_offer_type:"Car_Insurance_Widget",session_id:e},this._GetSesId())},x.ɵfac=function(e){return new(e||x)(I(z))},x.ɵcmp=S({type:x,selectors:[["div",8,"car-insurance-widget"]],features:[ge],attrs:v,decls:16,vars:15,consts:[["form-submit","","ad-pixel","",1,"form-ci-widget",3,"unique-click-id","ad-id","addl-queries","onSubmit","adViewed"],[1,"ciw-head"],[1,"ciw-row"],[1,"ciw-box","first"],["type","tel","placeholder","Zip Code","name","zip","maxlength","5",1,"single","textfield","ciw-zip",3,"value","input"],[1,"ciw-box","second"],["placeholder","Age",3,"items","second","invalid","value","valueChange"],["class","ciw-error-age semi-bold-font mob ng-enter-element",4,"ngIf"],[1,"ciw-box","ciw-block","ci-checkbox"],["label","Currently Insured?","name","currently_insured",3,"checked","checkedChange"],[1,"ciw-box","ciw-block","with-loader"],["type","submit",1,"btn","blue","ciw-btn"],[1,"btn-loader"],["class","ciw-error-age semi-bold-font desk ng-enter-element",4,"ngIf"],[1,"ciw-error-age","semi-bold-font","mob","ng-enter-element"],[1,"ciw-error-age","semi-bold-font","desk","ng-enter-element"]],template:function(e,t){1&e&&(H(0,"form",0),M("onSubmit",function(){return t.GetQuote()})("adViewed",function(e){return t.SetAdView(e)}),H(1,"h3",1),fe(2,"Find Cheap Car Insurance"),P(),H(3,"div",2),H(4,"div",3),H(5,"input",4),M("input",function(e){return t.ChangeZip(e)}),P(),P(),H(6,"div",5),H(7,"ng-dropdown",6),M("valueChange",function(e){return t.SetAge(e)}),P(),P(),F(8,b,2,1,"div",7),H(9,"div",8),H(10,"ng-checkbox",9),M("checkedChange",function(e){return t.ChangeInsurance(e)}),P(),P(),H(11,"div",10),H(12,"button",11),fe(13,"Find Insurers"),N(14,"i",12),P(),P(),P(),F(15,y,2,1,"div",13),P()),2&e&&($("unique-click-id",!0)("ad-id",5e6)("addl-queries",t.adview_extra),D(5),_e("ng-wh-error",t.invalid.zip),$("value",t.zipcode),D(2),$("items",t.ages)("second",!0)("invalid",t.invalid.age)("value",t.age),D(1),$("ngIf",t.show_error),D(2),$("checked",t.insuredparam),D(1),_e("loadactive",t.loading),D(4),$("ngIf",t.show_error))},directives:[ze,g,Se,V,o],encapsulation:2,changeDetection:0}),x));function x(e){return w.call(this,e)||this}E(g,[{type:X,args:[{selector:"div.car-insurance-widget",templateUrl:"/views/components/shortcodes/ci-shortcode.html",changeDetection:me.OnPush}]}],function(){return[{type:z}]},null);o=k("NGCIShortCodeModule",(q.ɵmod=Y({type:q}),q.ɵinj=K({factory:function(e){return new(e||q)},imports:[[Z,ke,Oe,a,Ae,_]]}),q));function q(){}E(o,[{type:J,args:[{declarations:[g],entryComponents:[g],exports:[g],imports:[Z,ke,Oe,a,Ae,_]}]}],null,null)}}}),System.register("bundled/experts-gallery-ui-component.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","npm:autonumeric/dist/autoNumeric.js"],function(m,v){"use strict";var b,y,w,x,q,k,T,I,C,E,L,z,A,S,O,R,j,H,M,P,N,F,$,G,D,V,Q,B,U,W,X,Y,K,Z,J,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,he,pe,ge,fe,_e;return{setters:[function(){},function(){},function(){},function(){},function(e){b=e.ɵ,y=e.f,w=e.g,x=e.h,q=e.j,k=e.L,T=e.T,I=e.s,C=e.I,E=e.O,L=e.J,z=e.l,A=e.b,S=e.c,O=e.C,e.d,R=e.N,j=e.e,H=e.n,M=e.v,P=e.p,N=e.u,F=e.S,$=e.i,G=e.w,D=e.o,V=e.Z,Q=e._,B=e.q,U=e.r,W=e.t,X=e.P,Y=e.aa,K=e.ab},function(){},function(){},function(){},function(e){Z=e.v,J=e.x,ee=e.r,te=e.e,ne=e.R,ie=e.$,se=e.a,oe=e.w,re=e.i,ae=e.z,ce=e.T,le=e.I,ue=e.F,de=e.g,he=e.D,pe=e.G,ge=e.b,fe=e.L,_e=e.o},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){m("CompileExpertsGallery",function(e,t,n,i,s){void 0===s&&(s={});for(var o=f,r=g,a=document.querySelectorAll("div[id=experts-gallery]"),c=[],l=0,u=a.length;l<u;l++){a[l].setAttribute("data-expert-sect",l.toString());var d='div[data-expert-sect="'+l+'"]',h=s.data[l]||{};h={back_bt_text:h.back_link_text,more_btn_txt:h.more_text,expert_offset:-100,max_experts:6,hashname:s.hashname,data:{expertsContent:h.expertsContent,aslogos:h.aslogos}},c.push(fe(e,t,n,o,r,d,h).then(function(n){var e=n.Component.instance.changedExpert.subscribe(function(e){e?history.pushState(null,"",location.pathname+location.search+"#expert="+e):history.replaceState(null,"",location.pathname+location.search)}),t=i.fragment.subscribe(function(e){var t;(e=(e||"").replace("#",""))&&-1<e.indexOf("expert=")&&((t=_e(e))&&t.expert&&ee(function(){n.Component.instance.hashname=t.expert}))});return{destroy:function(){n.destroy(),e.unsubscribe(),t.unsubscribe()}}}))}return Promise.all(c).then(function(e){return{destroy:function(){e.forEach(function(e){e.destroy()})}}})});var e=["id","experts-gallery"];function n(e,t){1&e&&(H(0,"div",10),H(1,"h2"),D(2),P(),P()),2&e&&(e=N(2),$(2),V(e.header_text||"Ask the Experts"))}function i(e,t){1&e&&M(0,"div",11),2&e&&(e=N(2),x("innerHTML",e.intro,Q))}function s(e,t){var n;1&e&&(n=B(),Y(0),H(1,"span",19),D(2),P(),M(3,"br"),H(4,"i",19),D(5),P(),M(6,"br"),H(7,"span",20),U("onTap",function(){W(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),D(8,"Read More"),P(),K()),2&e&&(e=N().$implicit,$(2),V(e.AUTHOR),$(3),V(e.CAPTION))}function o(e,t){var n;1&e&&(n=B(),Y(0),H(1,"span",21),U("onTap",function(){W(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),P(),K()),2&e&&(e=N().$implicit,$(1),x("ng-context",e.AUTHOR))}function r(e,t){var n,i;1&e&&(n=B(),H(0,"dl",12),H(1,"dt",13),H(2,"span",14),U("onTap",function(){W(n);var e=t.$implicit;return N(2).gotToOne(e.HASHTAG)}),M(3,"img",15,16),P(),P(),H(5,"dd",17),w(6,s,9,2,"ng-container",18),w(7,o,2,1,"ng-container",18),P(),P()),2&e&&(i=t.$implicit,e=N(2),G("gallery-item-logo",e.as_logos),$(2),x("defer-src",i.AVATAR)("zing-no-touch",!0)("ui-hydrate",e.srv_no_avatars),$(1),G("exp-img-logo",e.as_logos),x("src",i.AVATAR,X)("alt",i.AUTHOR),$(3),x("ngIf",!e.as_logos),$(1),x("ngIf",e.as_logos))}function a(e,t){var n;1&e&&(n=B(),H(0,"div",22),H(1,"span",23),U("onTap",function(){return W(n),N(2).showMoreExperts()}),P(),P()),2&e&&(e=N(2),$(1),x("ng-context",e.more_btn_txt))}function c(e,t){1&e&&(H(0,"i"),D(1),P()),2&e&&(e=N(3),$(1),V(null==e.expert_full?null:e.expert_full.CAPTION))}function l(e,t){1&e&&M(0,"div",29),2&e&&(e=N(3),x("innerHtml",e.expert_full.CONTENT,Q))}function u(e,t){1&e&&M(0,"div",30),2&e&&(e=N(3),x("cleanHTML",e.expert_full.CONTENT)("cleanHTML-sett",e.doompurifySett))}function d(e,t){var n;1&e&&(n=B(),H(0,"article",24),H(1,"button",25),U("onTap",function(){return W(n),N(2).goToAll()}),D(2),P(),M(3,"img",26),H(4,"h3"),D(5),P(),w(6,c,2,1,"i",18),w(7,l,1,1,"div",27),w(8,u,1,2,"div",28),P()),2&e&&(e=N(2),G("exp-logo-profile",e.as_logos),$(1),x("ngClass",e.back_bt_class),$(1),V(e.back_bt_text),$(1),x("src",null==e.expert_full?null:e.expert_full.AVATAR,X),$(2),V(null==e.expert_full?null:e.expert_full.AUTHOR),$(1),x("ngIf",!e.as_logos),$(1),x("ngIf",!e.as_logos),$(1),x("ngIf",e.as_logos))}function h(e,t,n,i,s,o){return{"exp-gal-one-it":e,"exp-gal-two-it":t,"expert-single":n,"blink-end":i,empty:s,"experts-format-a":o}}function p(e,t){1&e&&(H(0,"section",1),H(1,"div",2),M(2,"i"),P(),w(3,n,3,1,"div",3),w(4,i,1,1,"div",4),H(5,"div",5),H(6,"div",6),w(7,r,8,11,"dl",7),w(8,a,2,1,"div",8),w(9,d,9,9,"article",9),P(),P(),P()),2&e&&(e=N(),x("ngClass",F(14,h,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),$(1),G("visible",e.loading),$(2),x("ngIf",!e.layout_format),$(1),x("ngIf",e.intro&&!e.expert_single),$(1),G("all",!e.expert_single),x("scroll-to",e.center_experts),$(1),x("scroll-to",e.scrollsingle)("scrolloffset",e.expert_offset),$(1),x("ngForOf",e.experts),$(1),x("ngIf",e.hasmoreexperts&&!e.expert_single),$(1),x("ngIf",e.expert_single))}v.import("css:/components/experts-gallery.css").then(function(){},function(){});var g=(Object.defineProperty(t.prototype,"hashname",{get:function(){return this._hashname},set:function(e){(this._hashname=e)&&this._rendered?this._goToExpert(e):this.expert_single=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){(this._data=e)&&Z(e.expertsContent)?(J("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)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlpath",{get:function(){return this._urlpath},set:function(e){var t=e&&e!==this._urlpath;this._urlpath=e,t&&(this.urlrefresh=this.urlrefresh)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlrefresh",{get:function(){return this._refreshonurl},set:function(e){(this._refreshonurl=e)&&this._urlpath&&!this._data&&!this.asyncdata?this._refreshonurl=!0:this._refreshonurl=!1},enumerable:!1,configurable:!0}),t.prototype._goToExpert=function(e,n){var i=this;this.is_initial=!1;function s(){i.scrollsingle=!0,setTimeout(function(){i.scrollsingle=!1},100)}e=e.toString().toLowerCase(),e=!(!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]],ee(function(){i._zone.run(function(){var t;te()&&i._servertransitwait?(n||(t=ge.subscribe("server:transitscroll",function(e){"done"!=e&&"none"!=e||s(),setTimeout(function(){t&&t.unsubscribe()})})),i._servertransitwait=!1):n||s()})})),!0),this.tagMatch.emit(e)},t.prototype._storeTags=function(){this._hashtaglist={};for(var e=0,t=this.experts.length;e<t;e++){var n=(n=this.experts[e].HASHTAG.substring(1)).toLowerCase();this._hashtaglist[n]=e+(0===this.current_page?0:this.current_page-1)*this.max_experts}},t.prototype._parseExperts=function(e){0<e.expertsContent.length?(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=[])},t.prototype._setExpertsPagination=function(){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)},t.prototype._throwError=function(e,t){this.dataerror=!0,ne(e,"NG Experts Gallery : Data Request Error",{action:t})},t.prototype._getExpertsByUrl=function(){var n=this;this.expert_single=!1,J("experts-gallery"),this.loading=!0,ie({method:"GET",url:se(),id:"experts-gallery",before:function(){n.loading=!0},after:function(){n.loading=!1},data:{action:"Posts.GetExpertsGallery",path:this.urlpath},events:!1}).then(function(e){var t;e&&!e.error?(t=e.data,oe(t)&&Z(t.expertsContent)?(n._data=t,n._parseExperts(t)):n.emptydata=!0):n._throwError({data:e,status:200,type:"response"},n.urlpath)},function(e){n._throwError(e,n.urlpath)})},t.prototype.ngOnInit=function(){var e=this;this.isnode=re(),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(function(){e._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()},t.prototype.ngAfterViewInit=function(){var e=this;this._rendered=!0,this.data&&!this.emptydata&&this._hashname?ee(function(){return e._goToExpert(e._hashname)}):this.asyncdata||(this._servertransitwait=!1)},t.prototype.ngOnDestroy=function(){J("experts-gallery")},t.prototype.goToAll=function(){var e=this;this.expert_single=!1,this.scrollall=!0,this.scrollsingle=!1,this.expert_full=null,setTimeout(function(){e.scrollall=!1},100),this.changedExpert.emit(null)},t.prototype.gotToOne=function(e){e=e.substring(1);this.expert_full=null,this._goToExpert(e),this.changedExpert.emit(e)},t.prototype.showMoreExperts=function(){var e=this,t=this._data.expertsContent,n=t.length;this.experts=t.slice(this.current_page*this.max_experts,++this.current_page*this.max_experts),this._storeTags(),this.current_page&&this.current_page*this.max_experts>=n&&(this.current_page=0),this.center_experts=!1,setTimeout(function(){e.center_experts=!0,ee(function(){e.center_experts=!1})})},t.ɵfac=function(e){return new(e||t)(b(L))},t.ɵcmp=y({type:t,selectors:[["div","id","experts-gallery"]],inputs:{expert_offset:["scroll-offset","expert_offset"],max_experts:["max-experts","max_experts"],header_text:["header-text","header_text"],srv_no_avatars:["ui-hydrate-avatars","srv_no_avatars"],hashname:["hashtag","hashname"],data:"data",urlpath:"urlpath",urlrefresh:"urlrefresh",refreshdelay:"refreshdelay",asyncdata:"asyncdata",server_render:["server-render","server_render"],layout_format:["format","layout_format"],back_bt_text:["back-bt-text","back_bt_text"],back_bt_class:["back-bt-class","back_bt_class"],more_btn_txt:["more-bt-text","more_btn_txt"]},outputs:{changedExpert:"changedExpert",tagMatch:"tagMatch"},attrs:e,decls:1,vars:1,consts:[["class","experts-gallery",3,"ngClass","scroll-to",4,"ngIf"],[1,"experts-gallery",3,"ngClass","scroll-to"],[1,"progress-indicator"],["class","header-part",4,"ngIf"],["class","intro-part with-links",3,"innerHTML",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,"header-part"],[1,"intro-part","with-links",3,"innerHTML"],[1,"gallery-item"],[1,"gallery-icon"],["zing-touch","",1,"gall-ic-action",3,"defer-src","zing-no-touch","ui-hydrate","onTap"],["height","110","width","110",1,"expert-image",3,"src","alt"],["deferImg",""],[1,"wp-caption-text","gallery-caption"],[4,"ngIf"],[1,"text-select"],["zing-touch","",1,"read-more","touch-element-cl",3,"onTap"],["zing-touch","",1,"read-more","touch-element-cl",3,"ng-context","onTap"],[1,"more-experts"],["zing-touch","",3,"ng-context","onTap"],[1,"text-select","expert-profile","ng-enter-element","slide"],["zing-touch","",1,"back-to-xprts",3,"ngClass","onTap"],["height","200","width","200",1,"profile-img",3,"src"],["class","description-text",3,"innerHtml",4,"ngIf"],["class","description-text",3,"cleanHTML","cleanHTML-sett",4,"ngIf"],[1,"description-text",3,"innerHtml"],[1,"description-text",3,"cleanHTML","cleanHTML-sett"]],template:function(e,t){1&e&&w(0,p,10,21,"section",0),2&e&&x("ngIf",!t.norender)},directives:[q,k,ae,T,ce,le,ue,de],encapsulation:2}),t);function t(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.current_page=0,this.questions=[],this.scrollall=!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 j,this.tagMatch=new j,this._servertransitwait=!0}I(g,[{type:z,args:[{selector:"div[id=experts-gallery]",templateUrl:"/views/components/experts-gallery.html"}]}],function(){return[{type:L}]},{expert_offset:[{type:C,args:["scroll-offset"]}],max_experts:[{type:C,args:["max-experts"]}],header_text:[{type:C,args:["header-text"]}],srv_no_avatars:[{type:C,args:["ui-hydrate-avatars"]}],hashname:[{type:C,args:["hashtag"]}],data:[{type:C}],urlpath:[{type:C}],urlrefresh:[{type:C}],refreshdelay:[{type:C}],asyncdata:[{type:C}],server_render:[{type:C,args:["server-render"]}],layout_format:[{type:C,args:["format"]}],back_bt_text:[{type:C,args:["back-bt-text"]}],back_bt_class:[{type:C,args:["back-bt-class"]}],more_btn_txt:[{type:C,args:["more-bt-text"]}],changedExpert:[{type:E}],tagMatch:[{type:E}]});var f=(_.ɵmod=A({type:_}),_.ɵinj=S({factory:function(e){return new(e||_)},imports:[[he,O,pe]]}),_);function _(){}I(f,[{type:R,args:[{imports:[he,O,pe],declarations:[g],exports:[g],entryComponents:[g]}]}],null,null)}}}),System.register("bundled/qna-comp.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","npm:autonumeric/dist/autoNumeric.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize"],function(n){"use strict";return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){var t={};t.QnAComp=e.Q,t.QnAModule=e.b,n(t)},function(){}],execute:function(){}}}),function(i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():System.registerDynamic("npm:navigo/lib/navigo.js",[],!1,function(e,t,n){return i.call(this)})}(function(){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function a(){return!("undefined"==typeof window||!window.history||!window.history.pushState)}function c(e,t,n){this.root=null,this._routes=[],this._useHash=t,this._hash=void 0===n?"#":n,this._paused=!1,this._destroyed=!1,this._lastRouteResolved=null,this._notFoundHandler=null,this._defaultHandler=null,this._usePushState=!t&&a(),this._onLocationChange=this._onLocationChange.bind(this),this._genericHooks=null,this._historyAPIUpdateMethod="pushState",e?this.root=t?e.replace(/\/$/,"/"+this._hash):e.replace(/\/$/,""):t&&(this.root=this._cLoc().split(this._hash)[0].replace(/\/$/,"/"+this._hash)),this._listen(),this.updatePageLinks()}function l(e){return e instanceof RegExp?e:e.replace(/\/+$/,"").replace(/^\/+/,"^/")}function n(e){return e.replace(/\/$/,"").split("/").length}function r(e,t){return n(t)-n(e)}function i(r,e){return(1<arguments.length&&void 0!==e?e:[]).map(function(e){var t,i,s,n=(t=l(e.route),i=[],{regexp:t=t instanceof RegExp?t:new RegExp(t.replace(c.PARAMETER_REGEXP,function(e,t,n){return i.push(n),c.REPLACE_VARIABLE_REGEXP}).replace(c.WILDCARD_REGEXP,c.REPLACE_WILDCARD)+c.FOLLOWED_BY_SLASH_REGEXP,c.MATCH_REGEXP_FLAGS),paramNames:i}),o=n.regexp,t=n.paramNames,n=r.replace(/^\/+/,"/").match(o),o=(o=n,0!==(s=t).length&&o?o.slice(1,o.length).reduce(function(e,t,n){return null===e&&(e={}),e[s[n]]=decodeURIComponent(t),e},null):null);return!!n&&{match:n,route:e,params:o}}).filter(function(e){return e})}function u(e,t){return i(e,t)[0]||!1}function e(t,e){var n=e.map(function(e){return""===e.route||"*"===e.route?t:t.split(new RegExp(e.route+"($|/)"))[0]}),e=l(t);return 1<n.length?n.reduce(function(e,t){return e.length>t.length&&(e=t),e},n[0]):1===n.length?n[0]:e}function d(e,t,n){function i(e){return e.split(/\?(.*)?$/)[0]}return void 0===n&&(n="#"),a()&&!t?i(e).split(n)[0]:1<(n=e.split(n)).length?i(n[1]):i(n[0])}function h(e,t,n){if(t&&"object"===(void 0===t?"undefined":o(t))){if(t.before)return void t.before(function(){0<arguments.length&&void 0!==arguments[0]&&!arguments[0]||(e(),t.after&&t.after(n))},n);if(t.after)return e(),void(t.after&&t.after(n))}e()}return c.prototype={helpers:{match:u,root:e,clean:l,getOnlyURL:d},navigate:function(e,t){return e=e||"",this._usePushState?(t=(t=(t?"":this._getRoot()+"/")+e.replace(/^\/+/,"/")).replace(/([^:])(\/{2,})/g,"$1/"),history[this._historyAPIUpdateMethod]({},"",t),this.resolve()):"undefined"!=typeof window&&(e=e.replace(new RegExp("^"+this._hash),""),window.location.href=window.location.href.replace(/#$/,"").replace(new RegExp(this._hash+".*$"),"")+this._hash+e),this},on:function(){for(var e,t=this,n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return"function"==typeof i[0]?this._defaultHandler={handler:i[0],hooks:i[1]}:2<=i.length?"/"===i[0]?(e=i[1],"object"===o(i[1])&&(e=i[1].uses),this._defaultHandler={handler:e,hooks:i[2]}):this._add(i[0],i[1],i[2]):"object"===o(i[0])&&Object.keys(i[0]).sort(r).forEach(function(e){t.on(e,i[0][e])}),this},off:function(n){return null!==this._defaultHandler&&n===this._defaultHandler.handler?this._defaultHandler=null:null!==this._notFoundHandler&&n===this._notFoundHandler.handler&&(this._notFoundHandler=null),this._routes=this._routes.reduce(function(e,t){return t.handler!==n&&e.push(t),e},[]),this},notFound:function(e,t){return this._notFoundHandler={handler:e,hooks:t},this},resolve:function(e){var t,n,i=this,s=(e||this._cLoc()).replace(this._getRoot(),"");this._useHash&&(s=s.replace(new RegExp("^/"+this._hash),"/"));var o=(e||this._cLoc()).split(/\?(.*)?$/).slice(1).join(""),r=d(s,this._useHash,this._hash);return!this._paused&&(this._lastRouteResolved&&r===this._lastRouteResolved.url&&o===this._lastRouteResolved.query?(this._lastRouteResolved.hooks&&this._lastRouteResolved.hooks.already&&this._lastRouteResolved.hooks.already(this._lastRouteResolved.params),!1):(n=u(r,this._routes))?(this._callLeave(),this._lastRouteResolved={url:r,query:o,hooks:n.route.hooks,params:n.params,name:n.route.name},t=n.route.handler,h(function(){h(function(){n.route.route instanceof RegExp?t.apply(void 0,n.match.slice(1,n.match.length)):t(n.params,o)},n.route.hooks,n.params,i._genericHooks)},this._genericHooks,n.params),n):this._defaultHandler&&(""===r||"/"===r||r===this._hash||function(e,t,n){if((!a()||t)&&e.match(n)){n=e.split(n);return n.length<2||""===n[1]}}(r,this._useHash,this._hash))?(h(function(){h(function(){i._callLeave(),i._lastRouteResolved={url:r,query:o,hooks:i._defaultHandler.hooks},i._defaultHandler.handler(o)},i._defaultHandler.hooks)},this._genericHooks),!0):(this._notFoundHandler&&h(function(){h(function(){i._callLeave(),i._lastRouteResolved={url:r,query:o,hooks:i._notFoundHandler.hooks},i._notFoundHandler.handler(o)},i._notFoundHandler.hooks)},this._genericHooks),!1))},destroy:function(){this._routes=[],this._destroyed=!0,this._lastRouteResolved=null,this._genericHooks=null,clearTimeout(this._listeningInterval),"undefined"!=typeof window&&(window.removeEventListener("popstate",this._onLocationChange),window.removeEventListener("hashchange",this._onLocationChange))},updatePageLinks:function(){var i=this;"undefined"!=typeof document&&this._findLinks().forEach(function(n){n.hasListenerAttached||(n.addEventListener("click",function(e){if((e.ctrlKey||e.metaKey)&&"a"==e.target.tagName.toLowerCase())return!1;var t=i.getLinkPath(n);i._destroyed||(e.preventDefault(),i.navigate(t.replace(/\/+$/,"").replace(/^\/+/,"/")))}),n.hasListenerAttached=!0)})},generate:function(i,e){var s=1<arguments.length&&void 0!==e?e:{},e=this._routes.reduce(function(e,t){if(t.name===i)for(var n in e=t.route,s)e=e.toString().replace(":"+n,s[n]);return e},"");return this._useHash?this._hash+e:e},link:function(e){return this._getRoot()+e},pause:function(e){e=!(0<arguments.length&&void 0!==e)||e;this._paused=e,this._historyAPIUpdateMethod=e?"replaceState":"pushState"},resume:function(){this.pause(!1)},historyAPIUpdateMethod:function(e){return void 0===e?this._historyAPIUpdateMethod:this._historyAPIUpdateMethod=e},disableIfAPINotAvailable:function(){a()||this.destroy()},lastRouteResolved:function(){return this._lastRouteResolved},getLinkPath:function(e){return e.getAttribute("href")},hooks:function(e){this._genericHooks=e},_add:function(e,t,n){t=1<arguments.length&&void 0!==t?t:null,n=2<arguments.length&&void 0!==n?n:null;return"string"==typeof e&&(e=encodeURI(e)),this._routes.push("object"===(void 0===t?"undefined":o(t))?{route:e,handler:t.uses,name:t.as,hooks:n||t.hooks}:{route:e,handler:t,hooks:n}),this._add},_getRoot:function(){return null!==this.root||(this.root=e(this._cLoc().split("?")[0],this._routes)),this.root},_listen:function(){var e,t,n,i=this;this._usePushState?window.addEventListener("popstate",this._onLocationChange):"undefined"!=typeof window&&"onhashchange"in window?window.addEventListener("hashchange",this._onLocationChange):(e=this._cLoc(),n=t=void 0,(n=function(){t=i._cLoc(),e!==t&&(e=t,i.resolve()),i._listeningInterval=setTimeout(n,200)})())},_cLoc:function(){return"undefined"!=typeof window?void 0!==window.__NAVIGO_WINDOW_LOCATION_MOCK__?window.__NAVIGO_WINDOW_LOCATION_MOCK__:l(window.location.href):""},_findLinks:function(){return[].slice.call(document.querySelectorAll("[data-navigo]"))},_onLocationChange:function(){this.resolve()},_callLeave:function(){var e=this._lastRouteResolved;e&&e.hooks&&e.hooks.leave&&e.hooks.leave(e.params)}},c.PARAMETER_REGEXP=/([:*])(\w+)/g,c.WILDCARD_REGEXP=/\*/g,c.REPLACE_VARIABLE_REGEXP="([^/]+)",c.REPLACE_WILDCARD="(?:.*)",c.FOLLOWED_BY_SLASH_REGEXP="(?:/$|$)",c.MATCH_REGEXP_FLAGS="",c}),System.register("bundled/qna-comp2.js",["bundled/edu-vendor.js","systemjs","bundled/edu-post-ivy-boot2.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","autosize"],function(gt,ft){"use strict";var _t,mt,vt,bt,yt,wt,xt,qt,kt,Tt,It,Ct,Et,Lt,zt,At,St,Ot,Rt,jt,Ht,Mt,Pt,Nt,Ft,$t,Gt,Dt,Vt,Qt,Bt,Ut,Wt,Xt,Yt,Kt,Zt,Jt,en,tn,nn,sn,on,rn,an,cn,ln,un,dn,hn,pn,gn,fn,_n,mn,vn,bn,yn,wn,xn,qn,kn,Tn,In,Cn,En,Ln,zn,An,Sn,On,Rn,jn,Hn,Mn,Pn,Nn,Fn,$n,Gn,Dn,Vn,Qn,Bn,Un,Wn,Xn,Yn,Kn,Zn,Jn,ei,ti,ni,ii,si,oi,ri,ai,ci,li,ui,di,hi,pi,gi,fi;return{setters:[function(e){_t=e.G,mt=e.b,vt=e.c,bt=e.C,e.d,yt=e.s,wt=e.N,xt=e.H,qt=e.ɵ,kt=e.a,Tt=e.I,It=e.O,Ct=e.E,Et=e.J,Lt=e.D,zt=e.e,At=e.f,St=e.K,Ot=e.z,Rt=e.A,jt=e.v,Ht=e.g,Mt=e.i,Pt=e.h,Nt=e.j,Ft=e.F,$t=e.k,Gt=e.l,Dt=e.V,Vt=e.n,Qt=e.p,Bt=e.R,Ut=e.L,Wt=e.M,Xt=e.u,Yt=e.P,Kt=e.Q,Zt=e.y,Jt=e.r,en=e.S,tn=e.T,nn=e.U,sn=e.o,on=e.W,rn=e.B,an=e.X,cn=e.q,ln=e.t,un=e.w,dn=e.Y,hn=e.Z,pn=e._,gn=e.$,fn=e.a0,_n=e.a1,mn=e.m,vn=e.a2,bn=e.x,yn=e.a3,wn=e.a4,xn=e.a5,qn=e.a6,kn=e.a7,Tn=e.a8,In=e.a9,Cn=e.aa,En=e.ab},function(){},function(e){Ln=e.o,zn=e.i,An=e.r,Sn=e.e,On=e.S,Rn=e.D,jn=e.u,Hn=e.T,Mn=e.f,Pn=e.g,Nn=e.h,Fn=e.j,$n=e.R,Gn=e.k,Dn=e.E,Vn=e.d,Qn=e.C,Bn=e.t,Un=e.l,Wn=e.m,Xn=e.p,Yn=e.q,Kn=e.s,Zn=e.v,Jn=e.b,ei=e.w,ti=e.x,ni=e.$,ii=e.a,si=e.y,oi=e.n,ri=e.z,ai=e.B,ci=e.F,li=e.I,ui=e.G,di=e.c,hi=e.H,pi=e.J},function(e){gi=e.F,fi=e.a},function(){},function(){}],execute:function(){var n,t=require("npm:navigo/lib/navigo.js"),i=gt("A",function(){this.queryParams=new xt(function(t){var e=o.subscribe(function(e){e&&t.next(Ln(e.query))});return{unsubscribe:function(){e.unsubscribe()}}}),this.fragment=new xt(function(t){var e=location.hash;t.next(e);function n(e){t.next(location.hash)}return window.addEventListener("hashchange",n),{unsubscribe:function(){window.removeEventListener("hashchange",n)}}})}),s=[],o=new _t(null),e=gt("R",(r.forRoot=function(e){s=s.concat(e)},r.ɵmod=mt({type:r}),r.ɵinj=vt({factory:function(e){return new(e||r)},providers:[i],imports:[[bt]]}),r));function r(){var e=document.querySelector("head base");(n=new t(location.origin+e.getAttribute("href")||"")).hooks({after:function(){var e=n.lastRouteResolved();o.next({url:e.url,params:e.params,query:e.query})}}),s.forEach(function(e){var t;e.path&&(t=e.path,"prefix"==e.pathMatch&&(t+="/*"),n.on(t,function(){}))}),n.resolve()}yt(e,[{type:wt,args:[{imports:[bt],providers:[i]}]}],function(){return[]},null);var a=(Object.defineProperty(c.prototype,"updateAutoSize",{get:function(){return!1},set:function(e){var t=this;zn()||this._zone.runOutsideAngular(function(){1==e&&An(function(){t._autosize.then(function(e){e.update(t._el.nativeElement)})})})},enumerable:!1,configurable:!0}),c.prototype.fireResize=function(){this.onResized.emit()},c.prototype._windowResize=function(){var e=this;this._resize&&this._zone.runOutsideAngular(function(){An(function(){e._autosize&&e._autosize.update(e._el.nativeElement)})})},c.prototype.ngOnInit=function(){this.fireResize=this.fireResize.bind(this),this._windowResize=this._windowResize.bind(this),zn()||window.addEventListener("resize",this._windowResize)},c.prototype.ngAfterViewInit=function(){var t=this;!zn()&&this._el.nativeElement&&this._zone.runOutsideAngular(function(){SystemJS.dynamicImport(["autosize"]).then(function(e){e=e[0];e(t._el.nativeElement),t._el.nativeElement.addEventListener("autosize:resized",t.fireResize),t._autosize=e})})},c.prototype.ngOnDestroy=function(){zn()||(this._autosize&&(this._autosize.destroy(this._el.nativeElement),this._el.nativeElement.removeEventListener("autosize:resized",this.fireResize)),window.removeEventListener("resize",this._windowResize))},c.ɵfac=function(e){return new(e||c)(qt(Ct),qt(Et))},c.ɵdir=kt({type:c,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:["sizeupdate","updateAutoSize"],_resize:["watchresize","_resize"]},outputs:{onResized:"onResized"}}),c);function c(e,t){this._el=e,this._zone=t,this._resize=!1,this.onResized=new zt}yt(a,[{type:Lt,args:[{selector:"[ng-autosize]"}]}],function(){return[{type:Ct},{type:Et}]},{updateAutoSize:[{type:Tt,args:["sizeupdate"]}],_resize:[{type:Tt,args:["watchresize"]}],onResized:[{type:It}]});var l=(u.ɵmod=mt({type:u}),u.ɵinj=vt({factory:function(e){return new(e||u)},imports:[[bt]]}),u);function u(){}yt(l,[{type:wt,args:[{declarations:[a],exports:[a],imports:[bt]}]}],null,null);var d=["textarea"];function h(e,t){1&e&&(Vt(0,"div",4),jt(1,"i"),Qt())}var p=require("systemjs"),g=!1,f=Sn()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,_=(Object.defineProperty(m.prototype,"value",{get:function(){return this._value.getValue()},set:function(e){this._value.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"active",{get:function(){return this._active.getValue()},set:function(e){this._active.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=e,this._editor&&(this._editor.isReadOnly=e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"autofocus",{get:function(){return this._autofocus},set:function(e){(this._autofocus=e)&&this._container&&this._container.nativeElement.focus()},enumerable:!1,configurable:!0}),m.prototype.StartCkeditor=function(){var i=this;p.dynamicImport(["ckeditor5/build/ckeditor.js"],function(e){e.create(i._container.nativeElement,i.options).then(function(t){var n;i._enabled=!0,i._editor=t,i._cd.detectChanges(),t.model.document.on("change:data",function(e){n=t.getData(),i.valueChange.emit(n)}),i._editorsubs=i._value.subscribe(function(e){n!==e&&t.setData(e)}),i.autofocus&&(t.editing.view.focus(),f||setTimeout(function(){var e=i._el.nativeElement;i._service.scrollTo({target:e,inview:!0})},100)),i.editorInitiated.emit(!0),g=!0},function(){throw i.editorInitiated.emit(!1),Error("Cannot instance the ckeditor")})},function(){throw i.editorInitiated.emit(!1),Error("Cannot load the ckeditor")})},m.prototype.EndCkeditor=function(){this._enabled=!1,this._editor&&(this._editor.destroy(),this._editor=null,this._editorsubs.unsubscribe())},m.prototype.ngOnInit=function(){var t=this,e=this._active.subscribe(function(e){e&&!t._enabled?setTimeout(function(){An(function(){t.StartCkeditor()})}):t._enabled&&t.EndCkeditor()},function(){},function(){e&&e.unsubscribe()});this.editorInitiated.subscribe(function(){t.editor_init=!0})},m.prototype.ngOnDestroy=function(){this._active.complete(),this._value.complete(),this.EndCkeditor()},m.ɵfac=function(e){return new(e||m)(qt(Ct),qt($t),qt(On))},m.ɵcmp=At({type:m,selectors:[["ck-editor"]],viewQuery:function(e,t){var n;1&e&&St(d,!0),2&e&&Ot(n=Rt())&&(t._container=n.first)},hostAttrs:[1,"progress-indicator-container"],inputs:{value:"value",active:"active",readonly:"readonly",autofocus:["cursor-focus","autofocus"],options:"options"},outputs:{valueChange:"valueChange",editorInitiated:"editorInitiated"},decls:4,vars:2,consts:[[1,"ck-tools"],[1,"ck-textarea",3,"value"],["textarea",""],["class","progress-indicator visible",4,"ngIf"],[1,"progress-indicator","visible"]],template:function(e,t){1&e&&(jt(0,"div",0),jt(1,"textarea",1,2),Ht(3,h,2,0,"div",3)),2&e&&(Mt(1),Pt("value",t.value),Mt(2),Pt("ngIf",!t.editor_init))},directives:[Nt],styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#1194f6;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],encapsulation:2}),m);function m(e,t,n){this._el=e,this._cd=t,this._service=n,this._destroyed=!0,this.ckeditorLoaded=!0,this.ckelementid=jn(),this._value=new _t(null),this.valueChange=new zt,this._active=new _t(!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 zt,this.editor_init=g}yt(_,[{type:Gt,args:[{selector:"ck-editor",template:'\n        <div class="ck-tools"></div>\n        <textarea #textarea class="ck-textarea" [value]="value"></textarea>\n        <div class="progress-indicator visible" *ngIf="!editor_init"><i></i></div>\n    ',styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#1194f6;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],host:{class:"progress-indicator-container"},encapsulation:Dt.None}]}],function(){return[{type:Ct},{type:$t},{type:On}]},{_container:[{type:Ft,args:["textarea",{static:!0}]}],value:[{type:Tt}],valueChange:[{type:It}],active:[{type:Tt,args:["active"]}],readonly:[{type:Tt}],autofocus:[{type:Tt,args:["cursor-focus"]}],options:[{type:Tt}],editorInitiated:[{type:It}]});var v=(b.ɵmod=mt({type:b}),b.ɵinj=vt({factory:function(e){return new(e||b)},imports:[[bt,Rn]]}),b);function b(){}yt(v,[{type:wt,args:[{declarations:[_],exports:[_],imports:[bt,Rn]}]}],null,null);var y=(Object.defineProperty(w.prototype,"src",{get:function(){return this._src},set:function(e){this._src=e,!this._src&&this.fallback&&(this._src=this.fallback),this._src&&this._renderer.setAttribute(this._el.nativeElement,"src",this._src)},enumerable:!1,configurable:!0}),w.prototype.onError=function(e){!zn()&&e&&(e=this._el.nativeElement,this.fallback&&e.src!=this.fallback?(e.src=this.fallback,e.style.display=""):e.style.display="none",this.onImageFailed.emit(!0))},w.prototype.ngOnInit=function(){zn()||(this.onError=this.onError.bind(this),this._el.nativeElement.addEventListener("error",this.onError))},w.prototype.ngOnDestroy=function(){zn()||this._el.nativeElement.removeEventListener("error",this.onError)},w.ɵfac=function(e){return new(e||w)(qt(Ct),qt(Bt))},w.ɵdir=kt({type:w,selectors:[["","on-img-error",""]],inputs:{fallback:["on-img-error","fallback"],src:"src"},outputs:{onImageFailed:"image-failed"}}),w);function w(e,t){this._el=e,this._renderer=t,this.onImageFailed=new zt}yt(y,[{type:Lt,args:[{selector:"[on-img-error]"}]}],function(){return[{type:Ct},{type:Bt}]},{fallback:[{type:Tt,args:["on-img-error"]}],onImageFailed:[{type:It,args:["image-failed"]}],src:[{type:Tt}]});var x=(q.ɵmod=mt({type:q}),q.ɵinj=vt({factory:function(e){return new(e||q)},imports:[[bt]]}),q);function q(){}yt(x,[{type:wt,args:[{declarations:[y],exports:[y],imports:[bt]}]}],null,null);var k=["img-placeholder",""];function T(e,t){1&e&&jt(0,"img",2),2&e&&(e=Xt(),Pt("src",e.srcLoaded,Yt)("ngClass",e.classes)("alt",e.alt),Kt("itemprop",e.itemprop))}function I(e,t){1&e&&jt(0,"div",3),2&e&&(e=Xt(),Pt("ngClass","animated-"+e.type)("ngStyle",e.placeHolderStyle))}var C=(Object.defineProperty(E.prototype,"src",{get:function(){return this._src},set:function(e){this._src=e,zn()?this.srcLoaded=this._src:(this.placeHolderStyle={width:this.boxwidth+this.unitsizewidth,height:this.boxheight+this.unitsizeheight},this.showCardImage()),this._cd.detectChanges()},enumerable:!1,configurable:!0}),E.prototype.showCardImage=function(){var e=this;this.myImage||(this.myImage=new Image,this.myImage.onload=function(){e.srcLoaded=e.myImage.getAttribute("src"),e._cd.detectChanges()}),this.myImage.src=this.src},E.prototype.ngOnInit=function(){},E.ɵfac=function(e){return new(e||E)(qt($t))},E.ɵcmp=At({type:E,selectors:[["","img-placeholder",""]],inputs:{src:"src",itemprop:"itemprop",alt:"alt",classes:"classes",boxwidth:"boxwidth",boxheight:"boxheight",unitsizewidth:"unitsizewidth",unitsizeheight:"unitsizeheight",type:"type"},outputs:{imageLoaded:"imageLoaded"},attrs:k,decls:2,vars:2,consts:[[3,"src","ngClass","alt",4,"ngIf"],["class","animated-placeholder",3,"ngClass","ngStyle",4,"ngIf"],[3,"src","ngClass","alt"],[1,"animated-placeholder",3,"ngClass","ngStyle"]],template:function(e,t){1&e&&(Ht(0,T,1,4,"img",0),Ht(1,I,1,2,"div",1)),2&e&&(Pt("ngIf",""!=t.srcLoaded),Mt(1),Pt("ngIf",""==t.srcLoaded))},directives:[Nt,Ut,Wt],encapsulation:2}),E);function E(e){this._cd=e,this._src="",this.itemprop="",this.classes=[],this.boxwidth=100,this.boxheight=100,this.unitsizewidth="%",this.unitsizeheight="%",this.type="rounded",this.imageLoaded=new zt,this.srcLoaded=""}yt(C,[{type:Gt,args:[{selector:"[img-placeholder]",template:'<img [attr.itemprop]="itemprop" [src]="srcLoaded" [ngClass]="classes" [alt]="alt" *ngIf="srcLoaded!=\'\'" />\n                <div class="animated-placeholder" [ngClass]="\'animated-\'+type" *ngIf="srcLoaded==\'\'" [ngStyle]="placeHolderStyle"></div>'}]}],function(){return[{type:$t}]},{src:[{type:Tt,args:["src"]}],itemprop:[{type:Tt}],alt:[{type:Tt}],classes:[{type:Tt}],boxwidth:[{type:Tt}],boxheight:[{type:Tt}],unitsizewidth:[{type:Tt}],unitsizeheight:[{type:Tt}],type:[{type:Tt}],imageLoaded:[{type:It}]});var L=(z.ɵmod=mt({type:z}),z.ɵinj=vt({factory:function(e){return new(e||z)},imports:[[bt]]}),z);function z(){}yt(L,[{type:wt,args:[{declarations:[C],exports:[C],imports:[bt]}]}],null,null);var A=["dropdownList"];function S(e,t){1&e&&(Vt(0,"span",7),Jt("onTap",function(){return!0}),Qt()),2&e&&(e=Xt(),Pt("cleanHTML",e.placeholder))}function O(e,t){1&e&&(Vt(0,"span",8),Jt("onTap",function(){return!0}),Qt()),2&e&&(e=Xt(),Pt("cleanHTML",e.value))}function R(e,n){var i,t,s;1&e&&(i=cn(),Vt(0,"li",9),Jt("onTap",function(e){ln(i);var t=n.index;return Xt().selectItem(e,t)}),Qt()),2&e&&(t=n.$implicit,s=n.index,e=Xt(),un("active",e.activeidx==s),Pt("cleanHTML",t))}function j(e,t){1&e&&jt(0,"i",10)}function H(e,t,n,i,s,o){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,opened:s,disabled:o}}function M(e,t){1&e&&(Vt(0,"span",12),Jt("onTap",function(){return!0}),Qt()),2&e&&(e=Xt(),Pt("cleanHTML",e.placeholder))}function P(e,t){1&e&&(Vt(0,"span",13),Jt("onTap",function(){return!0}),Qt()),2&e&&(e=Xt(),Pt("cleanHTML",e.value))}function N(e,t,n,i,s){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,opened:s}}var F=gt("n",(Object.defineProperty($.prototype,"value",{get:function(){return(this._value||"").toString()},set:function(e){this.noselection=!e,this._value=e},enumerable:!1,configurable:!0}),$.prototype.controlList=function(e,t){this.disabled||(this.opened=void 0!==t?t:!this.opened,this.onTapped.emit(this),this.fixOverflow())},$.prototype.close=function(){this.opened=!1},$.prototype.open=function(){this.opened=!0},$.prototype.selectItem=function(e,t){void 0===t&&(t=0),e&&e.srcEvent?e.srcEvent.cancelBubble=!0:e&&e.stopPropagation&&e.stopPropagation(),this._value=this.items[t],this.activeidx=t,this.valueChange.emit(this.value),this.noselection=!1,this.selected.emit({eventName:"select",value:this.value,index:t})},$.prototype.trackByFn=function(e){return e},$.prototype.ngOnInit=function(){this.value&&-1<this.items.indexOf(this.value)&&(this.activeidx=this.items.indexOf(this.value))},$.prototype.fixOverflow=function(){var t=this.dropdownList&&this.dropdownList.nativeElement,n=t&&t.parentElement;setTimeout(function(){try{var e=t.getBoundingClientRect();n.getBoundingClientRect().x+e.width>=window.innerWidth?t.classList.add("sticky-right"):t.classList.remove("sticky-right")}catch(e){throw e}})},$.ɵfac=function(e){return new(e||$)},$.ɵcmp=At({type:$,selectors:[["ng-dropdown"]],viewQuery:function(e,t){var n;1&e&&Zt(A,!0,Ct),2&e&&Ot(n=Rt())&&(t.dropdownList=n.first)},inputs:{placeholder:"placeholder",items:"items",second:"second",darker:["dark-borders","darker"],invalid:"invalid",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange",selected:"selected",onTapped:"onTapped"},decls:7,vars:14,consts:[["zing-touch","",1,"dropdown",3,"ngClass","onTap","onTapOutside"],["zing-touch","","class","dropdown-placeholder",3,"cleanHTML","onTap",4,"ngIf"],["zing-touch","","class","dropdown-selected",3,"cleanHTML","onTap",4,"ngIf"],[1,"dropdown-list","ng-enter-element",3,"ng-hidden"],["dropdownList",""],["class","dropdown-item","zing-touch","",3,"active","cleanHTML","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["class","dropdown-arrow bf-icon-down-open",4,"ngIf"],["zing-touch","",1,"dropdown-placeholder",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-selected",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-item",3,"cleanHTML","onTap"],[1,"dropdown-arrow","bf-icon-down-open"]],template:function(e,t){1&e&&(Vt(0,"div",0),Jt("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Ht(1,S,1,1,"span",1),Ht(2,O,1,1,"span",2),Vt(3,"ul",3,4),Ht(5,R,1,3,"li",5),Qt(),Ht(6,j,1,0,"i",6),Qt()),2&e&&(Pt("ngClass",en(7,H,t.invalid,t.darker,t.second,!t.noselection,t.opened,t.disabled)),Mt(1),Pt("ngIf",t.placeholder&&t.noselection),Mt(1),Pt("ngIf",!t.noselection),Mt(1),Pt("ng-hidden",!t.opened),Mt(2),Pt("ngForOf",t.items)("ngForTrackBy",t.trackByFn),Mt(1),Pt("ngIf",!t.disabled))},directives:[Hn,Ut,Nt,Mn,tn,Pn],encapsulation:2}),$));function $(){this.placeholder="Select...",this.items=[],this.darker=!1,this.invalid=!1,this.disabled=!1,this.valueChange=new zt,this.selected=new zt,this.onTapped=new zt,this.noselection=!0,this.opened=!1,this.activeidx=null}yt(F,[{type:Gt,args:[{selector:"ng-dropdown",template:'<div class="dropdown" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'opened\' : opened, \'disabled\' : disabled }" zing-touch (onTap)="controlList($event)" (onTapOutside)="controlList($event,false)">\n                    <span zing-touch (onTap)="true" class="dropdown-placeholder" *ngIf="(placeholder && noselection)" [cleanHTML]="placeholder"></span>\n                    <span zing-touch (onTap)="true" class="dropdown-selected" *ngIf="!noselection" [cleanHTML]="value"></span>\n                    <ul class="dropdown-list ng-enter-element" [ng-hidden]="!opened" #dropdownList>\n                        <li *ngFor="let item of items; index as i; trackBy: trackByFn" class="dropdown-item" [class.active]="activeidx == i" zing-touch (onTap)="selectItem($event,i)" [cleanHTML]="item"></li>\n                    </ul>\n                    <i class="dropdown-arrow bf-icon-down-open" *ngIf="!disabled"></i>\n                </div>'}]}],null,{placeholder:[{type:Tt}],items:[{type:Tt}],second:[{type:Tt}],darker:[{type:Tt,args:["dark-borders"]}],invalid:[{type:Tt,args:["invalid"]}],disabled:[{type:Tt}],valueChange:[{type:It}],selected:[{type:It}],onTapped:[{type:It}],dropdownList:[{type:Ft,args:["dropdownList",{read:Ct,static:!1}]}],value:[{type:Tt}]});var G,k=(G=F,__extends(D,G),D.prototype.Check=function(e){void 0!==e&&(this.booleanValue===e?(this.booleanValue=null,this.value=null):(this.booleanValue=e,this.value=e?"Yes":"No"),this.valueChange.emit(this.value))},D.ɵfac=function(e){return V(e||D)},D.ɵcmp=At({type:D,selectors:[["ng-dropdown-bool"]],inputs:{text:"text",name:"name",label:"label"},features:[nn],decls:19,vars:19,consts:[["zing-touch","",1,"dropdown",3,"ngClass","onTap","onTapOutside"],["zing-touch","","class","dropdown-placeholder",3,"cleanHTML","onTap",4,"ngIf"],["zing-touch","","class","dropdown-selected",3,"cleanHTML","onTap",4,"ngIf"],[1,"dropdown-list","ng-enter-element",3,"ng-hidden"],["dropdownList",""],[1,"text"],[1,"boolean-items"],["zing-touch","",1,"checkbox",3,"zingToggle"],["type","checkbox","value","",3,"checked","name","change"],[1,"track","bf-icon-ok"],[1,"name"],[1,"dropdown-arrow","bf-icon-down-open"],["zing-touch","",1,"dropdown-placeholder",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-selected",3,"cleanHTML","onTap"]],template:function(e,t){1&e&&(Vt(0,"div",0),Jt("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Ht(1,M,1,1,"span",1),Ht(2,P,1,1,"span",2),Vt(3,"div",3,4),Vt(5,"p",5),sn(6),Qt(),Vt(7,"div",6),Vt(8,"label",7),Vt(9,"input",8),Jt("change",function(){return t.Check(!0)}),Qt(),jt(10,"i",9),Vt(11,"span",10),sn(12,"Yes"),Qt(),Qt(),Vt(13,"label",7),Vt(14,"input",8),Jt("change",function(){return t.Check(!1)}),Qt(),jt(15,"i",9),Vt(16,"span",10),sn(17,"No"),Qt(),Qt(),Qt(),Qt(),jt(18,"i",11),Qt()),2&e&&(Pt("ngClass",on(13,N,t.invalid,t.darker,t.second,!t.noselection,t.opened)),Mt(1),Pt("ngIf",t.placeholder&&t.noselection),Mt(1),Pt("ngIf",!t.noselection),Mt(1),Pt("ng-hidden",!t.opened),Mt(3),rn(" ",t.text," "),Mt(2),Pt("zingToggle",!0),Kt("aria-label",t.label),Mt(1),Pt("checked",!0===t.booleanValue)("name",t.name),Mt(4),Pt("zingToggle",!0),Kt("aria-label",t.label),Mt(1),Pt("checked",!1===t.booleanValue)("name",t.name))},directives:[Hn,Ut,Nt,Mn,Pn],encapsulation:2}),D);function D(){var e=null!==G&&G.apply(this,arguments)||this;return e.text="Some text to display",e.name="",e.label="",e.booleanValue=null,e}var V=an(k);yt(k,[{type:Gt,args:[{selector:"ng-dropdown-bool",template:'<div class="dropdown" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'opened\' : opened }" zing-touch (onTap)="controlList($event)" (onTapOutside)="controlList($event,false)">\n                    <span zing-touch (onTap)="true" class="dropdown-placeholder" *ngIf="(placeholder && noselection)" [cleanHTML]="placeholder"></span>\n                    <span zing-touch (onTap)="true" class="dropdown-selected" *ngIf="!noselection" [cleanHTML]="value"></span>\n                    <div class="dropdown-list ng-enter-element" [ng-hidden]="!opened" #dropdownList>\n                        <p class="text"> {{ text }} </p>\n                        <div class="boolean-items">\n                            <label class="checkbox" zing-touch [zingToggle]="true" [attr.aria-label]="label">\n                                <input type="checkbox" value="" [checked]="booleanValue === true" (change)="Check(true)" [name]="name"/>\n                                <i class="track bf-icon-ok"></i>\n                                <span class="name">Yes</span>\n                            </label>\n                            <label class="checkbox" zing-touch [zingToggle]="true" [attr.aria-label]="label">\n                                <input type="checkbox" value="" [checked]="booleanValue === false" (change)="Check(false)" [name]="name"/>\n                                <i class="track bf-icon-ok"></i>\n                                <span class="name">No</span>\n                            </label>\n                        </div>\n                    </div>\n                    <i class="dropdown-arrow bf-icon-down-open"></i>\n                </div>'}]}],null,{text:[{type:Tt}],name:[{type:Tt}],label:[{type:Tt}]});L=gt("a",(Q.ɵmod=mt({type:Q}),Q.ɵinj=vt({factory:function(e){return new(e||Q)},imports:[[bt,Rn]]}),Q));function Q(){}function B(e,t){1&e&&(Vt(0,"h2",8),sn(1,"Ask a Question"),Qt())}function U(e,t){1&e&&(Vt(0,"h2",8),sn(1,"Thank you"),Qt())}function W(e,t){1&e&&(Vt(0,"h2",8),sn(1,"Please provide your email in order to receive answers"),Qt())}function X(e,t){var n;1&e&&(n=cn(),Vt(0,"div",9),Vt(1,"span",10),sn(2),Qt(),Vt(3,"textarea",11),Jt("input",function(e){return ln(n),Xt().SetInput(e)}),Qt(),Qt()),2&e&&(e=Xt(),Mt(1),un("ques-ov-cred",e.input_chars_left<0),Mt(1),hn(e.input_chars_left),Mt(1),Pt("value",e.input_value)("readonly",e.submiting))}function Y(e,t){var n;1&e&&(n=cn(),Vt(0,"div",9),Vt(1,"textarea",12),Jt("input",function(e){return ln(n),Xt().input_value_extra=e.target.value}),Qt(),Qt()),2&e&&(e=Xt(),Mt(1),Pt("value",e.input_value_extra)("readonly",e.submiting))}function K(e,t){var n;1&e&&(n=cn(),Vt(0,"div",9),Vt(1,"ng-dropdown",13),Jt("selected",function(e){return ln(n),Xt().SetCategory(e)}),Qt(),Qt()),2&e&&(e=Xt(),Mt(1),Pt("invalid",e.categoryerror)("items",e.categories)("second",!0)("value",e.category))}function Z(e,t){1&e&&jt(0,"div",14),2&e&&(e=Xt(),Pt("innerHTML",e.ajax_message,pn)("zing-url-container",!0))}function J(e,t){var n;1&e&&(n=cn(),Vt(0,"button",15),Jt("onTap",function(){return ln(n),Xt().Submit()}),sn(1," Next "),jt(2,"i",16),Qt()),2&e&&(e=Xt(),un("loadactive",e.submiting),Pt("disabled",e.submiting))}function ee(e,t){1&e&&(Vt(0,"div",17),sn(1,"Your question has been submitted to our moderators for review. We will send you an email once your question has been approved."),Qt())}function te(e,t){1&e&&jt(0,"br")}function ne(e,t){1&e&&jt(0,"div",14),2&e&&(e=Xt(2),Pt("innerHTML",e.ajax_message,pn)("zing-url-container",!0))}function ie(e,t){1&e&&jt(0,"br")}function se(e,t){var n;1&e&&(n=cn(),Vt(0,"div",18),Vt(1,"button",19),Jt("onTap",function(){return ln(n),Xt().Back()}),sn(2,"Back"),Qt(),Vt(3,"button",20),Jt("onTap",function(){return ln(n),Xt().GuestSubmit()}),jt(4,"i",21),Vt(5,"span",22),sn(6,"Login to Wallethub"),Qt(),Qt(),Vt(7,"div",23),sn(8,"or"),Qt(),Vt(9,"input",24),Jt("input",function(e){return ln(n),Xt().user_email=e.target.value}),Qt(),Ht(10,te,1,0,"br",25),Ht(11,ne,1,2,"div",4),Ht(12,ie,1,0,"br",25),Vt(13,"button",26),Jt("onTap",function(){return ln(n),Xt().GuestSubmit()}),sn(14," Submit "),jt(15,"i",16),Qt(),Qt()),2&e&&(e=Xt(),Mt(9),Pt("value",e.user_email),Mt(1),Pt("ngIf",!e.show_ajax_error),Mt(1),Pt("ngIf",e.show_ajax_error),Mt(1),Pt("ngIf",!e.show_ajax_error),Mt(1),un("loadactive",e.submiting),Pt("disabled",e.submiting))}yt(L,[{type:wt,args:[{declarations:[F,k],exports:[F,k],imports:[bt,Rn]}]}],null,null);var oe=require("systemjs"),re=(ae.prototype._CountWords=function(e){if(!e)return"";e=e.replace(/(^\s*)|(\s*$)/gi,"");return(e=(e=e.replace(/[ ]{2,}/gi," ")).replace(/\n /,"")).split(" ").filter(function(e){return""!=e}).length},ae.prototype._CountChars=function(){this.input_chars_left=this.input_value?this._max_input-this.input_value.trim().length:this._max_input},ae.prototype._SendQues=function(){var n=this;this.show_ajax_error=!1,this.submiting=!0;var i=Nn(this.input_value);oe.dynamicImport(["Encryption"],function(e){var t={url:Fn()+"/ajax.php",data:Object.assign({action:"Answers.PostQuestion",question:i,url:n._referer},n.data.addparams||{}),encryptprops:["email"],before:function(){n.submiting=!0},after:function(){n.submiting=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}};n.has_categories&&(t.data.category=n._catid),n.user_email&&(t.data.email=n.user_email),n._is_lodgged||n.user_email||(t.data.light=!0),n.input_value_extra&&(t.data.details=n.input_value_extra),e.send(t).then(function(e){if(!e||e.error)e&&"message"in e?n.ajax_message=e.message:n.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',n.show_ajax_error=!0;else{if("redirect"in e)return n.submiting=!0,void(top.location.href=e.redirect);n.submited=!0}},function(e){n.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',n.show_ajax_error=!0,$n(e,"Failed to submit a question from ng2 QnA component")})},function(t){n.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',n.show_ajax_error=!0,Gn().then(function(e){e.captureException(t)},function(){})})},ae.prototype.SetCategory=function(e){this.category=e.value,this._catid=this._catindex[e.index],this.categoryerror=!1},ae.prototype.Submit=function(){this.show_error||this.submiting||(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)},ae.prototype.OnErrorToastHidden=function(){this.show_error&&(this.show_error=!1)},ae.prototype.GuestSubmit=function(){this._SendQues()},ae.prototype.SetInput=function(e){this.show_error=!1,this.show_ajax_error=!1,this.input_value=e.target.value,this._CountChars()},ae.prototype.Back=function(){this.needs_login=!1,this.show_ajax_error=!1,this.ajax_message=""},ae.prototype.ngOnInit=function(){var t=this;this.input_value=this.data.input||"",this.data.referer?this._referer=this.data.referer:(this._referer=Fn()+this._location.path(),this._referer.lastIndexOf("/")!==this._referer.length-1&&(this._referer+="/")),this.data.categories&&0<this.data.categories.length&&(this.has_categories=!0,this.categories=[],this._catindex=[],this.data.categories.forEach(function(e){t.categories.push(e.name),t._catindex.push(e.id)}),1==this.categories.length&&(this._catid=this._catindex[0],this.category=this.categories[0])),this._CountChars(),!zn()&&Qn.get("mw_signon")&&(this._is_lodgged=!0)},ae.ɵfac=function(e){return new(e||ae)(qt(dn))},ae.ɵcmp=At({type:ae,selectors:[["question-overlay"]],decls:12,vars:15,consts:[["class","ques-ov regular-font ng-enter-element",4,"ngIf"],["class","ques-ov-txt-box ng-enter-element",4,"ngIf"],[3,"ng-hidden"],[3,"message","show","close-on-change","timer","onhidden"],["class","ques-ov-error-notice ng-enter-element slide","zing-touch","",3,"innerHTML","zing-url-container",4,"ngIf"],["class","btn fixed-w-i with-loader no-disabled ng-enter-element","zing-touch","",3,"disabled","loadactive","onTap",4,"ngIf"],["class","ng-enter-element ques-ov-end-msg",4,"ngIf"],["class","ng-enter-element ques-ov-login",4,"ngIf"],[1,"ques-ov","regular-font","ng-enter-element"],[1,"ques-ov-txt-box","ng-enter-element"],[1,"ques-ov-count"],["placeholder","Ask a question (140 character limit)","ng-autosize","",1,"ques-ov-txt","textarea",3,"value","readonly","input"],["placeholder","Additional details (optional)","ng-autosize","",1,"ques-ov-txt","ques-ov-txt-liner","textarea",3,"value","readonly","input"],["placeholder","Select Category...",1,"ques-ov-drp",3,"invalid","items","second","value","selected"],["zing-touch","",1,"ques-ov-error-notice","ng-enter-element","slide",3,"innerHTML","zing-url-container"],["zing-touch","",1,"btn","fixed-w-i","with-loader","no-disabled","ng-enter-element",3,"disabled","onTap"],[1,"btn-loader"],[1,"ng-enter-element","ques-ov-end-msg"],[1,"ng-enter-element","ques-ov-login"],["zing-touch","",1,"btn","white-blue","ques-ov-bk-bt",3,"onTap"],["aria-label","Login","zing-touch","",1,"btn","aqua","full","ques-ov-lg-bt","semi-bold-font",3,"onTap"],[1,"bf-icon-wlogo"],[1,"ques-ov-lg-txt"],[1,"ques-ov-or","center"],["aria-label","Email","type","email","placeholder","Email Address",1,"textfield","full",3,"value","input"],[4,"ngIf"],["zing-touch","",1,"btn","fixed-w-i","with-loader","no-disabled",3,"disabled","onTap"]],template:function(e,t){1&e&&(Ht(0,B,2,0,"h2",0),Ht(1,U,2,0,"h2",0),Ht(2,W,2,0,"h2",0),Ht(3,X,4,5,"div",1),Ht(4,Y,2,2,"div",1),Ht(5,K,2,4,"div",1),Vt(6,"div",2),Vt(7,"error-toast",3),Jt("onhidden",function(){return t.OnErrorToastHidden()}),Qt(),Qt(),Ht(8,Z,1,2,"div",4),Ht(9,J,3,3,"button",5),Ht(10,ee,2,0,"div",6),Ht(11,se,16,7,"div",7)),2&e&&(Pt("ngIf",!t.submited&&!t.needs_login),Mt(1),Pt("ngIf",t.submited),Mt(1),Pt("ngIf",t.needs_login&&!t.submited),Mt(1),Pt("ngIf",!t.submited&&!t.needs_login),Mt(1),Pt("ngIf",!t.submited&&!t.needs_login),Mt(1),Pt("ngIf",!t.submited&&!t.needs_login&&t.has_categories&&1<t.categories.length),Mt(1),Pt("ng-hidden",t.submited||t.needs_login),Mt(1),Pt("message",t.error_message)("show",t.show_error)("close-on-change",!0)("timer",t.toastinterval),Mt(1),Pt("ngIf",!t.needs_login&&t.show_ajax_error),Mt(1),Pt("ngIf",!t.submited&&!t.needs_login),Mt(1),Pt("ngIf",t.submited),Mt(1),Pt("ngIf",t.needs_login&&!t.submited))},directives:[Nt,Mn,Dn,a,F,Hn],encapsulation:2}),ae);function ae(e){this._location=e,this.data={},this.input_value="",this.input_value_extra="",this.input_chars_left=0,this._max_input=140,this.submiting=!1,this.submited=!1,this._limit=140,this._is_lodgged=!1,this.needs_login=!1,this.user_email="",this._referer="",this.has_categories=!1,this.categoryerror=!1,this.toastinterval=3500}yt(re,[{type:Gt,args:[{selector:"question-overlay",templateUrl:"/views/components/question-overlay.html"}]}],function(){return[{type:dn}]},null);ce.ɵmod=mt({type:ce}),ce.ɵinj=vt({factory:function(e){return new(e||ce)},imports:[[bt,Rn,l,Vn,L]]}),C=ce;function ce(){}yt(C,[{type:wt,args:[{imports:[bt,Rn,l,Vn,L],exports:[re],declarations:[re],entryComponents:[re]}]}],null,null);var le=["content"];function ue(e,t){var n;1&e&&(n=cn(),Vt(0,"span",4),Jt("onTap",function(){return ln(n),Xt().Collapse()}),sn(1,"show less"),Qt())}function de(e,t){var n;1&e&&(n=cn(),Vt(0,"div",5),Jt("onExpand",function(e){return ln(n),Xt().Expanded(e)}),Qt()),2&e&&(e=Xt(),Pt("ng-truncate",e.htmlcontent)("breakpoint",e.breakpoint)("breakwords",e.breakwords))}k=["*"],Object.defineProperty(he.prototype,"content",{set:function(e){this._content=e||"",this._initiated&&(this._expandct?this._ShowFullCT():this._Truncate())},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"expandContent",{set:function(e){this._expandContent.next(e),this._expandct=e},enumerable:!1,configurable:!0}),he.prototype.ngOnInit=function(){!this._expandct&&this._content||zn()?this._Truncate():this._ShowFullCT(),this._initiated=!0},he.prototype._WordCount=function(e){e=Bn((1==e.nodeType?e.textContent:e.wholeText)+"");return""==e?0:e.split(/\s+/g).length},he.prototype._CutHTML=function(e,t){var n=e.parentNode,i=null;if(n){for(var s=[],o=0,r=n.childNodes.length;o<r;o++){var a=n.childNodes[o];a==e?i=o:null!==i&&i<o&&(!a.tagName||"td"!==a.tagName.toLowerCase())&&s.push(a)}s.forEach(function(e){e.parentNode.removeChild(e)}),n!=t&&n&&this._CutHTML(n,t)}},he.prototype._AddExpandBT=function(e){var t=e.parentNode;t.removeChild(e),t.innerHTML=Bn(t.innerHTML);var n=t.tagName.toLowerCase();if(Un(n,["tr","tbody","thead","tfoot"])){if("table"!=n){for(var i=t.parentNode,n=i.tagName.toLowerCase();"table"!=n&&n;)n=(i=i.parentNode)&&i.tagName?i.tagName.toLowerCase():null;"table"==n&&(t=i)}t.insertAdjacentHTML("afterend",' <span class="js-shave-char cursor-pointer">'+this.expand_bt+"</span>"),t.insertAdjacentText?t.insertAdjacentText("afterend","..."):t.insertAdjacentHTML("afterend","...")}else t.insertAdjacentText?t.insertAdjacentText("beforeend","..."):t.insertAdjacentHTML("beforeend","..."),"a"==n?t.insertAdjacentHTML("afterend",' <span class="js-shave-char cursor-pointer">'+this.expand_bt+"</span>"):t.insertAdjacentHTML("beforeend",' <span class="js-shave-char cursor-pointer">'+this.expand_bt+"</span>");this.istruncated.next(!0)},he.prototype._Shave=function(e,t){if(!(this._WordCount(e)<=t)){var n=void 0===e.textContent?"innerText":"textContent",i=e[n].split(" ");if(!(i.length<2))for(var s,o=i.length-1,r=0;r<o;){s=r+o+1>>1;var a=i.slice(0,s).join(" "),c=-1<a.lastIndexOf(".");e[n]=a,e.insertAdjacentHTML("beforeend",'<span class="js-shave-char cursor-pointer">'+(c?"":".")+".."+this.expand_bt+"</span>"),this._WordCount(e)>t?o=s-1:r=s}}},he.prototype._TruncateWithLimit=function(e,c){var t=document.createElement("div");t.innerHTML=e;var l=0,u=!1,d=function(e){for(var t=0,n=e.childNodes.length;t<n;t++){var i=e.childNodes[t];if(1==i.nodeType){if(d(i))return!0}else if(3==i.nodeType){var s=i[void 0===i.textContent?"innerText":"textContent"],o=Bn(s).split(/\s+/g);if(l+=o.length,0==s.indexOf(" ")&&(o[0]=" "+o[0]),s.lastIndexOf(" ")==s.length-1&&(o[o.length-1]+=" "),c<l){var r,a=l-c;return i.nodeValue=o.slice(0,o.length-a).join(" "),i.parentNode&&((r=document.createElement("div")).innerHTML='<span data-chop="auto"></span>',s=r.querySelector('span[data-chop="auto"]'),(r=document.createElement("div")).innerHTML=o.slice(o.length-a).join(" "),i!==i.parentNode.lastChild?i.parentNode.insertBefore(s,i.nextElementSibling):(i.parentNode.appendChild(s),i.parentNode.insertAdjacentHTML("beforeend",r.innerHTML))),u=!0}}}};return d(t),!u||(e=t.querySelector('span[data-chop="auto"]'))&&t.lastChild!==e&&(this._CutHTML(e,t),e.parentNode==t&&(t.innerHTML=t.innerHTML.split(e.outerHTML)[0]+e.outerHTML,e=t.querySelector('span[data-chop="auto"]')),this._AddExpandBT(e)),t.innerHTML},he.prototype._Truncate=function(){var t=this;this.istruncated.next(!1);var e=this._content;if(e=(e=(e=e.replace("[chop]","\x3c!--chop--\x3e").replace("[mobilechop]","\x3c!--mobilechop--\x3e")).replace('<span data-chop="desktop"></span>',"\x3c!--chop--\x3e").replace('<span data-chop="mobile"></span>',"\x3c!--mobilechop--\x3e")).replace(/(?:\\r\\n|\\r|\\n)/g,""),e=Bn(e),zn())return this.sanitize&&(e=Wn(e,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);var n=window.innerWidth||document.body.clientWidth;n<this.breakpoint&&e.indexOf("\x3c!--mobilechop--\x3e")<0&&(e=e.replace(/<!--(auto)?(mobile)?chop-->/g,""));var i=!1,s=!1;n>=this.breakpoint?0<e.indexOf("\x3c!--chop--\x3e")&&(i=!0):0<e.indexOf("\x3c!--chop--\x3e")&&e.indexOf("\x3c!--mobilechop--\x3e")<0?i=!0:0<e.indexOf("\x3c!--mobilechop--\x3e")&&(i=s=!0),i||(e=e.replace("\x3c!--chop--\x3e","").replace("\x3c!--mobilechop--\x3e","")),e=(e=(e=n>this.breakpoint?e.replace(/(<!--chop-->)\s*(<!--mobilechop-->)/,"$2$1"):e.replace(/(<!--mobilechop-->)\s*(<!--chop-->)/,"$2$1")).replace("\x3c!--chop--\x3e",'<span data-chop="desktop"></span>')).replace("\x3c!--mobilechop--\x3e",'<span data-chop="mobile"></span>');var o=document.createElement("div");o.innerHTML=e;var r=o.querySelector('span[data-chop="desktop"]'),a=o.querySelector('span[data-chop="mobile"]');if(!r&&!a&&!this.auto_truncate)return e=Wn(e,this.sanitizeCFG),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);var c,l=!1,i=!!this.breakwords;if(o.lastChild==r||o.lastChild==a)i=!1,r&&o.lastChild==r&&(r.parentNode.removeChild(r),r=null,a&&o.lastChild==a&&(a.parentNode.removeChild(a),a=null)),a&&o.lastChild==a&&(a.parentNode.removeChild(a),a=null,r&&o.lastChild==r&&(r.parentNode.removeChild(r),r=null));else{if(r&&r.parentNode.lastChild==r){for(var u=r.parentNode,d=!0;u&&u!==o;){if(u.parentNode.lastChild!=u){d=!1;break}u=u.parentNode}d&&(i=!1,r.parentNode.removeChild(r),r=null)}if(a&&a.parentNode.lastChild==a){for(u=a.parentNode,d=!0;u&&u!==o;){if(u.parentNode.lastChild!=u){d=!1;break}u=u.parentNode}d&&(i=!1,a.parentNode.removeChild(a),a=null)}}if(r&&(n>this.breakpoint||!s))this._CutHTML(r,o),r.parentNode==o&&(o.innerHTML=o.innerHTML.split(r.outerHTML)[0]+r.outerHTML,r=o.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(r);else if(s&&a&&n<this.breakpoint)this._CutHTML(a,o),a.parentNode==o&&(o.innerHTML=o.innerHTML.split(a.outerHTML)[0]+a.outerHTML,a=o.querySelector('span[data-chop="mobile"]')),this._AddExpandBT(a);else if(i){if(Xn(this.breakwords,function(e,t){if(n<Yn(t))return c=e,!1}),c)if(this.use_shave_break)this._Shave(o,c),l=!0;else if(this._WordCount(o)>c)return void this._render.setProperty(this._el.nativeElement,"innerHTML",this._TruncateWithLimit(e,c))}e=o.innerHTML;!l&&this.sanitize&&(e=Wn(o.innerHTML,this.sanitizeCFG)),this._render.setProperty(this._el.nativeElement,"innerHTML",e),this.istruncated.pipe(bn(1)).subscribe(function(e){An(function(){t.onContent.emit(e?"collapsed":"expanded")})})},he.prototype._ShowFullCT=function(){var e=this,t=this._content||"";console.log(t),this.sanitize&&(t=Wn(t,this.sanitizeCFG)),this.collapse_bt&&(t+='<br class="js-shave-br" /><span class="js-shave-char cursor-pointer js-shave-char-less">'+this.collapse_bt+"</span>"),t=t.replace("[chop]","").replace("[mobilechop]",""),this._render.setProperty(this._el.nativeElement,"innerHTML",t),An(function(){e.onContent.emit("expanded")})},he.prototype.Expand=function(e){zn()||(e=e.target)&&e.classList&&e.classList.contains("js-shave-char")&&(this._expanded=!this._expanded,this._expanded?this._ShowFullCT():(this._expandct=!1,this._Truncate()),this.onExpand.emit(this._expanded))},he.prototype.ngAfterViewInit=function(){var t=this;zn()||(this._windowobs=yn(window,"resize"),this._windowobs.subscribe(function(){!t._content||t._expanded||t._expandct||t._Truncate()}),this._expandContent.subscribe(function(e){t._content&&(t._expanded=!e,t.Expand({target:{classList:{contains:function(){return!0}}}}))}))},he.prototype.ngOnDestroy=function(){this._windowobs&&(this._windowobs=null),this._windowsubs&&this._windowsubs.unsubscribe(),this.istruncated.complete()},he.ɵfac=function(e){return new(e||he)(qt(Ct),qt(Bt))},he.ɵdir=kt({type:he,selectors:[["","ng-truncate",""]],hostBindings:function(e,t){1&e&&Jt("click",function(e){return t.Expand(e)})},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",content:["ng-truncate","content"],sanitize:"sanitize",sanitizeCFG:["sanitize-cfg","sanitizeCFG"],use_shave_break:["use-shave","use_shave_break"],expand_bt:["expand-button","expand_bt"],collapse_bt:["collapse-button","collapse_bt"],auto_truncate:["auto-trim","auto_truncate"],expandContent:["expand-content","expandContent"]},outputs:{onExpand:"onExpand",onContent:"onContent"}}),F=he;function he(e,t){this._el=e,this._render=t,this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},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.auto_truncate=!0,this._expanded=!1,this._initiated=!1,this.istruncated=new _t(null),this._expandContent=new vn,this._expandct=!1,this.onExpand=new zt,this.onContent=new zt}yt(F,[{type:Lt,args:[{selector:"[ng-truncate]"}]}],function(){return[{type:Ct},{type:Bt}]},{breakpoint:[{type:Tt}],breakwords:[{type:Tt}],content:[{type:Tt,args:["ng-truncate"]}],sanitize:[{type:Tt,args:["sanitize"]}],sanitizeCFG:[{type:Tt,args:["sanitize-cfg"]}],use_shave_break:[{type:Tt,args:["use-shave"]}],expand_bt:[{type:Tt,args:["expand-button"]}],collapse_bt:[{type:Tt,args:["collapse-button"]}],auto_truncate:[{type:Tt,args:["auto-trim"]}],expandContent:[{type:Tt,args:["expand-content"]}],onExpand:[{type:It,args:["onExpand"]}],Expand:[{type:gn,args:["click",["$event"]]}],onContent:[{type:It,args:["onContent"]}]});pe.prototype.Expanded=function(e){e&&(this.hide_org_content=!1,"permanent"==this.expand_mode&&(this.perma_expand=!0)),this._cd.detectChanges()},pe.prototype.Collapse=function(){this.hide_org_content=!0,this._cd.detectChanges()},pe.prototype.ngOnInit=function(){var t=this;this.hide_org_content=!zn(),zn()?(this.hide_org_content=!1,this.perma_expand=!0):this._observer=new MutationObserver(function(e){t.htmlcontent=t.contentBox.nativeElement.innerHTML,An(function(){t._cd.detectChanges()})})},pe.prototype.ngAfterViewInit=function(){var e=this;zn()||(this.htmlcontent=this.contentBox.nativeElement.innerHTML,An(function(){e._cd.detectChanges()}),this._observer.observe(this.contentBox.nativeElement,{attributes:!1,childList:!0,characterData:!0}))},pe.prototype.ngOnDestroy=function(){this._observer.disconnect()},pe.ɵfac=function(e){return new(e||pe)(qt($t),qt(Bt))},pe.ɵcmp=At({type:pe,selectors:[["ng-truncate"]],viewQuery:function(e,t){var n;1&e&&Zt(le,!0),2&e&&Ot(n=Rt())&&(t.contentBox=n.first)},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",expand_mode:["expand","expand_mode"]},ngContentSelectors:k,decls:5,vars:3,consts:[[3,"ng-hidden"],["content",""],["class","js-shave-char cursor-pointer","zing-touch","",3,"onTap",4,"ngIf"],[3,"ng-truncate","breakpoint","breakwords","onExpand",4,"ngIf"],["zing-touch","",1,"js-shave-char","cursor-pointer",3,"onTap"],[3,"ng-truncate","breakpoint","breakwords","onExpand"]],template:function(e,t){1&e&&(fn(),Vt(0,"div",0,1),_n(2),Qt(),Ht(3,ue,2,0,"span",2),Ht(4,de,1,3,"div",3)),2&e&&(Pt("ng-hidden",t.hide_org_content),Mt(3),Pt("ngIf",!t.hide_org_content&&!t.perma_expand),Mt(1),Pt("ngIf",t.hide_org_content))},directives:[Mn,Nt,Hn,F],encapsulation:2,changeDetection:0}),L=pe;function pe(e,t){this._cd=e,this._render=t,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=""}yt(L,[{type:Gt,args:[{selector:"ng-truncate",template:'<div [ng-hidden]="hide_org_content" #content><ng-content></ng-content></div>\n                <span class="js-shave-char cursor-pointer" zing-touch (onTap)="Collapse()" *ngIf="!hide_org_content && !perma_expand">show less</span>\n                <div *ngIf="hide_org_content" [ng-truncate]="htmlcontent" [breakpoint]="breakpoint" [breakwords]="breakwords" (onExpand)="Expanded($event)"></div>',changeDetection:mn.OnPush}]}],function(){return[{type:$t},{type:Bt}]},{breakpoint:[{type:Tt}],breakwords:[{type:Tt}],expand_mode:[{type:Tt,args:["expand"]}],contentBox:[{type:Ft,args:["content",{static:!1}]}]});ge.ɵmod=mt({type:ge}),ge.ɵinj=vt({factory:function(e){return new(e||ge)},imports:[[bt,Rn]]}),k=ge;function ge(){}yt(k,[{type:wt,args:[{imports:[bt,Rn],declarations:[F,L],exports:[F,L]}]}],null,null);var fe=["txtElement"],_e=["quesOverlay"],me=["ques_answer"],L=["id","qna-box"];function ve(e,t){1&e&&(Vt(0,"span",16),sn(1),Qt()),2&e&&(e=Xt(),Mt(1),rn("(",e.schq_count,")"))}function be(e,t){1&e&&(Vt(0,"p",17),Vt(1,"span"),sn(2),Qt(),sn(3,"For more general questions, visit our "),Vt(4,"a",18),sn(5,"Answers section."),Qt(),Qt()),2&e&&(e=Xt(),Mt(2),rn("Get answers to your questions about ",e.product_name," below. "),Mt(2),Pt("zing-url",!0))}function ye(e,t){1&e&&jt(0,"p",19),2&e&&(e=Xt(),Pt("zing-url-container",!0)("ng-truncate",e.intro_content)("breakwords",e.truncateBreakwords)("breakpoint",480))}function we(e,t){var n;1&e&&(n=cn(),Vt(0,"i",29),Jt("onTap",function(){return ln(n),Xt(2).QClear()}),Qt())}function xe(e,t){1&e&&(Vt(0,"span"),sn(1,"Don't see what you're looking for?"),Qt())}function qe(e,t){1&e&&(Vt(0,"div",30),sn(1,"MATCHING RESULTS"),Qt())}function ke(e,t){1&e&&(Vt(0,"div",30),sn(1,"NO MATCHING RESULTS"),Qt())}function Te(e,t){1&e&&(Vt(0,"div",30),sn(1,"Searching for answers..."),Qt())}function Ie(e,t){var n;1&e&&(n=cn(),Vt(0,"div",20),Vt(1,"div",21),Vt(2,"textarea",22),Jt("input",function(e){return ln(n),Xt().SearchInput(e)}),Qt(),Ht(3,we,1,0,"i",23),Vt(4,"button",24),Jt("onTap",function(){return ln(n),Xt().QSearch()}),Qt(),Qt(),Vt(5,"div",25),Ht(6,xe,2,0,"span",26),Vt(7,"button",27),Jt("onTap",function(){return ln(n),Xt().AskQuestion()}),sn(8,"Ask Your Question"),Qt(),Qt(),Ht(9,qe,2,0,"div",28),Ht(10,ke,2,0,"div",28),Ht(11,Te,2,0,"div",28),Qt()),2&e&&(e=Xt(),Mt(1),Pt("scroll-to",e.focus_on_input),Mt(1),Pt("value",e.search_value),Mt(1),Pt("ngIf",e.search_value),Mt(1),Pt("ng-hidden",!!e.search_value),Mt(1),un("qna-aq-ss",e.noresults),Pt("ng-hidden",!(e.show_search_state||e.show_search_state_empty)),Mt(1),Pt("ngIf",e.show_search_state&&!e.noresults),Mt(3),Pt("ngIf",e.show_search_state&&!e.search_loading),Mt(1),Pt("ngIf",e.show_search_state_empty&&!e.search_loading),Mt(1),Pt("ngIf",e.search_loading))}function Ce(e,t){var n,i;1&e&&(n=cn(),Vt(0,"span",31),Jt("onTap",function(){ln(n);var e=t.index;return Xt().ChangeSort(e)}),sn(1),Qt()),2&e&&(i=t.$implicit,e=t.index,un("qnaml-first",0==e),Mt(1),hn(i))}function Ee(e,t){1&e&&jt(0,"div",40)}function Le(e,t){var n;1&e&&(n=cn(),Vt(0,"div",32),Ht(1,Ee,1,0,"div",33),Vt(2,"div",34),Vt(3,"div",35),jt(4,"img",36),Qt(),Vt(5,"div",37),Vt(6,"textarea",38),Jt("input",function(e){return ln(n),Xt().ques_ask=e.target.value}),Qt(),Vt(7,"div",39),Jt("onTap",function(){return ln(n),Xt().AskQuestion()}),sn(8,"Ask your Question"),Qt(),Qt(),Qt(),Qt()),2&e&&(e=Xt(),Mt(1),Pt("ngIf",0==e.schquestions.length),Mt(3),Pt("src",e.user_avatar,Yt)("on-img-error",e.user_avatar_fallback),Mt(1),Pt("scroll-to",e.focus_on_input),Mt(1),Pt("value",e.ques_ask))}function ze(e,t){1&e&&(Vt(0,"div",44),Vt(1,"div",45),jt(2,"i"),Qt(),Qt())}function Ae(e,t){1&e&&jt(0,"a",67),2&e&&(e=Xt().$implicit,un("qt-as-link",e.from_search),Pt("href",e.ques_href||"/answers/"+e.ques_fullslug,Yt)("zing-url",!0)("ng-context",e.ques_title))}function Se(e,t){1&e&&jt(0,"span",68),2&e&&(e=Xt().$implicit,un("qt-as-link",e.from_search),Pt("ng-context",e.ques_title))}function Oe(e,t){1&e&&jt(0,"p",69),2&e&&(e=Xt().$implicit,Pt("cleanHTML",e.ques_content_cut_mob))}function Re(e,t){1&e&&jt(0,"p",70),2&e&&(e=Xt().$implicit,Pt("cleanHTML",e.ques_content_cut_desk))}function je(e,t){1&e&&(Vt(0,"span",71),sn(1,"..."),Qt())}function He(e,t){1&e&&jt(0,"p",69),2&e&&(e=Xt().$implicit,Pt("cleanHTML",e.ques_content_more))}function Me(e,t){var n,i;1&e&&(n=cn(),Vt(0,"span",72),Jt("onTap",function(){ln(n);var e=Xt().$implicit;return Xt(2).ExpandContent(e.id,"question")}),sn(1,"show more"),Qt()),2&e&&(i=Xt().$implicit,e=Xt(2),Pt("ng-hidden",e.questionexpand[i.id]))}function Pe(e,t){var n,i;1&e&&(n=cn(),Vt(0,"span",72),Jt("onTap",function(){ln(n);var e=Xt().$implicit;return Xt(2).ExpandContent(e.id,"question")}),sn(1,"show less"),Qt()),2&e&&(i=Xt().$implicit,e=Xt(2),Pt("ng-hidden",!e.questionexpand[i.id]))}function Ne(e,t){var n;1&e&&(n=cn(),Vt(0,"div",73),Jt("click",function(){ln(n);var e=Xt().$implicit;return Xt(2).ShowReplybox(e.id)}),sn(1,"Reply"),Qt())}function Fe(e,t){1&e&&jt(0,"i")}function $e(e,t){1&e&&jt(0,"i")}function Ge(e,t){var n,i;1&e&&(n=cn(),Vt(0,"form",74),Jt("onSubmit",function(){ln(n);var e=Xt().$implicit;return Xt(2).SubmitReply(e)}),Vt(1,"div",75),jt(2,"img",76),Qt(),Vt(3,"div",77),Vt(4,"ck-editor",78),Jt("valueChange",function(e){ln(n);var t=Xt().$implicit;return Xt(2).ReplyInput(e,t.id)}),Qt(),Qt(),Vt(5,"div",79),jt(6,"error-toast",80),Vt(7,"button",81),Jt("onTap",function(){ln(n);var e=Xt().$implicit;return Xt(2).ShowReplybox(e.id)}),sn(8,"Cancel"),Qt(),Vt(9,"button",82),Vt(10,"span"),sn(11,"Reply"),Qt(),jt(12,"i",83),Qt(),Qt(),Qt()),2&e&&(i=Xt().$implicit,e=Xt(2),Mt(2),Pt("src",e.user_avatar,Yt)("on-img-error",e.user_avatar_fallback),Mt(2),Pt("value",e.replyboxinput[i.id])("active",!0)("cursor-focus",e.replyboxshow[i.id])("readonly",e.replyinprogress[i.id]),Mt(2),Pt("message",null==e.replyerror[i.id]?null:e.replyerror[i.id].message)("show",null==e.replyerror[i.id]?null:e.replyerror[i.id].show)("close-on-change",!0)("timer",3e3),Mt(1),Pt("disabled",e.replyinprogress[i.id]),Mt(2),un("loadactive",e.replyinprogress[i.id]),Pt("disabled",e.replyinprogress[i.id]))}function De(e,t){1&e&&(Vt(0,"span",98),sn(1),Qt()),2&e&&(e=Xt(2).$implicit,Mt(1),rn(", ",e.user_title,""))}var Ve=function(){return{attribute:"itemprop",value:"name"}},Qe=function(e){return[e]};function Be(e,t){var n,i;1&e&&(Vt(0,"div",95),Vt(1,"span",96),sn(2),Qt(),Ht(3,De,2,1,"span",97),Qt()),2&e&&(n=(i=Xt()).index,e=i.$implicit,i=Xt(3),Pt("ng-attribute",i.userschema)("ng-attribute-when",i.toggleSchema&&0==n),Mt(1),Pt("ng-attribute",Tn(7,Qe,In(6,Ve)))("ng-attribute-when",i.toggleSchema&&0==n),Mt(1),hn(e.user_fullname||(null==e?null:e.user_login)),Mt(1),Pt("ngIf",e.user_title))}function Ue(e,t){1&e&&(Cn(0),sn(1),En()),2&e&&(e=Xt().$implicit,Mt(1),hn(null==e?null:e.user_login))}function We(e,n){var i,t;1&e&&(i=cn(),Vt(0,"span",31),Jt("onTap",function(){ln(i);var e=n.index,t=Xt(2).$implicit;return Xt(3).AnsOpt(e,t)}),sn(1),Qt()),2&e&&(t=n.$implicit,e=n.index,un("qnaml-first",0==e),Mt(1),hn(t))}function Xe(e,t){var n,i;1&e&&(n=cn(),Vt(0,"div",99),Vt(1,"i",100),Jt("onTap",function(){ln(n);var e=Xt().$implicit;return Xt(3).ControlAnsOpt(e)})("onTapOutside",function(){return ln(n),Xt().$implicit.options_list_opened=!1}),Qt(),Vt(2,"div",8),Jt("onTap",function(e){return ln(n),e.stopPropagation()}),Ht(3,We,2,3,"span",101),Qt(),Qt()),2&e&&(i=Xt().$implicit,e=Xt(3),Mt(2),Pt("ng-hidden",!i.options_list_opened),Mt(1),Pt("ngForOf",e.ansOptions)("ngForTrackBy",e.trackByFn))}function Ye(e,t){1&e&&jt(0,"i")}function Ke(e,t){1&e&&jt(0,"i")}var Ze=function(){return{attribute:"itemprop",value:"upvoteCount"}},Je=function(){return{attribute:"itemprop",value:"downvoteCount"}};function et(e,t){var n,i,s;1&e&&(n=cn(),Vt(0,"div",59),Vt(1,"div",102),Jt("onTap",function(){ln(n);var e=Xt().$implicit;return Xt(3).RateContent(e,"up","answer")}),Ht(2,Ye,1,0,"i",26),Vt(3,"span",96),sn(4),Qt(),Qt(),Vt(5,"div",62),Jt("onTap",function(){ln(n);var e=Xt().$implicit;return Xt(3).RateContent(e,"down","answer")}),Ht(6,Ke,1,0,"i",26),Vt(7,"span",96),sn(8),Qt(),Qt(),Qt()),2&e&&(i=(s=Xt()).$implicit,e=s.index,s=Xt(3),Mt(1),un("visible",i.voteinprogress),Pt("zing-no-touch",!0),Mt(1),Pt("ngIf",i.voteinprogress),Mt(1),Pt("ng-attribute",Tn(15,Qe,In(14,Ze)))("ng-attribute-when",s.toggleSchema&&0==e),Mt(1),hn(i.upvote),Mt(1),un("visible",i.downvoteinprogress),Pt("zing-no-touch",!0),Mt(1),Pt("ngIf",i.downvoteinprogress),Mt(1),Pt("ng-attribute",Tn(18,Qe,In(17,Je)))("ng-attribute-when",s.toggleSchema&&0==e),Mt(1),hn(i.downvote))}var tt=function(){return{416:35,541:50,769:70,2800:90}},nt=function(){return{attribute:"itemprop",value:"text"}};function it(e,t){var n,i,s;1&e&&(Vt(0,"div",84),Vt(1,"div",85),Vt(2,"div",86),jt(3,"img",87,88),Qt(),Vt(5,"div",89),Ht(6,Be,4,9,"div",90),Vt(7,"div",91),Ht(8,Ue,2,1,"ng-container",26),Qt(),Ht(9,Xe,4,3,"div",92),Qt(),Qt(),jt(10,"div",93),Ht(11,et,9,20,"div",94),Qt()),2&e&&(n=t.$implicit,i=t.index,e=(s=Xt()).$implicit,t=s.index,s=Xt(2),Pt("ng-hidden",!(0==i||s.question_more_answers[e.id]||1==i&&e.answers[0].my_ans))("ng-attribute",s.aschemascope)("ng-attribute-when",s.toggleSchema&&0==i),Mt(2),Pt("defer-src",n.user_avatar)("src-fallback",s.user_avatar_fallback),Mt(4),Pt("ngIf",n.user_fullname||(null==n?null:n.user_login)),Mt(2),Pt("ngIf",null==n?null:n.user_login),Mt(1),Pt("ngIf",null==n?null:n.is_reportable),Mt(1),Pt("zing-url-container",!0)("expand-content",0==i&&0==t&&!(s.show_search_state||s.show_search_state_empty))("breakwords",In(18,tt))("collapse-button",0!=i||0!=t||s.show_search_state||s.show_search_state_empty?"show less":"")("ng-truncate",n.content_long)("sanitize-cfg",n.sanitizecfg)("ng-attribute",Tn(20,Qe,In(19,nt)))("ng-attribute-when",s.toggleSchema&&0==i),Kt("data-pos",n.stackid),Mt(1),Pt("ngIf",!s.IsSpecial(n.id)))}function st(e,t){var n,i;1&e&&(n=cn(),Vt(0,"div",103),Vt(1,"div",104),jt(2,"i"),Qt(),Vt(3,"span",105),Jt("onTap",function(){ln(n);var e=Xt(),t=e.$implicit,e=e.index;return Xt(2).ViewMoreAns(t,e)}),sn(4," View more answers "),jt(5,"i",7),Qt(),Qt()),2&e&&(i=Xt().$implicit,e=Xt(2),Mt(1),un("visible",e.answersmore[i.id]))}function ot(e,t){var n,i;1&e&&(n=cn(),Vt(0,"article",46),Vt(1,"h3",47),Ht(2,Ae,1,5,"a",48),Ht(3,Se,1,3,"span",49),Qt(),Vt(4,"div",50),Vt(5,"div",51),sn(6),Qt(),Vt(7,"span",52),sn(8),Qt(),Qt(),Ht(9,Oe,1,1,"p",53),Ht(10,Re,1,1,"p",54),Ht(11,je,2,0,"span",55),Ht(12,He,1,1,"p",53),Ht(13,Me,2,1,"span",56),Ht(14,Pe,2,1,"span",56),Vt(15,"div",57),Ht(16,Ne,2,0,"div",58),Vt(17,"div",59),Vt(18,"div",60),Jt("onTap",function(){ln(n);var e=t.$implicit;return Xt(2).RateContent(e)}),Ht(19,Fe,1,0,"i",26),Vt(20,"span",61),sn(21),Qt(),Qt(),Vt(22,"div",62),Jt("onTap",function(){ln(n);var e=t.$implicit;return Xt(2).RateContent(e,"down")}),Ht(23,$e,1,0,"i",26),Vt(24,"span",61),sn(25),Qt(),Qt(),Qt(),Qt(),Ht(26,Ge,13,14,"form",63),Vt(27,"div",64),Ht(28,it,12,22,"div",65),Ht(29,st,6,2,"div",66),Qt(),Qt()),2&e&&(i=t.$implicit,e=Xt(2),un("qna-q-search",i.from_search),Pt("ng-attribute",e.qschemascope)("ng-attribute-when",e.questionToggleSchema(i)),Mt(1),Pt("ng-attribute",Tn(35,Qe,In(34,Ve)))("ng-attribute-when",e.questionToggleSchema(i)),Mt(1),Pt("ngIf",i.ques_href||i.ques_fullslug),Mt(1),Pt("ngIf",!i.ques_href&&!i.ques_fullslug),Mt(2),Pt("ng-attribute",Tn(38,Qe,In(37,Ze)))("ng-attribute-when",e.questionToggleSchema(i)),Mt(1),hn(i.upvote),Mt(2),rn("Upvote",1!=i.upvote?"s":"",""),Mt(1),Pt("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_mob),Mt(1),Pt("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_desk),Mt(1),Pt("ngIf",!e.questionexpand[i.id]&&i.ques_content_has_more),Mt(1),Pt("ngIf",(e.questionexpand[i.id]||!i.ques_content_cut_mob)&&i.ques_content_more),Mt(1),Pt("ngIf",i.ques_content_has_more),Mt(1),Pt("ngIf",i.ques_content_has_more),Mt(2),Pt("ngIf",!e.IsSpecial(i.id)),Mt(2),un("visible",i.voteinprogress),Pt("zing-no-touch",!0),Mt(1),Pt("ngIf",i.voteinprogress),Mt(2),hn(i.upvote),Mt(1),un("visible",i.downvoteinprogress),Pt("zing-no-touch",!0),Mt(1),Pt("ngIf",i.downvoteinprogress),Mt(2),hn(i.downvote),Mt(1),Pt("ngIf",e.replyboxshow[i.id]),Mt(1),Pt("ng-hidden",!i.answers||i.answers.length<1),Mt(1),Pt("ngForOf",i.answers)("ngForTrackBy",e.trackByFn),Mt(1),Pt("ngIf",i.has_more_answers))}function rt(e,t){1&e&&(Vt(0,"div",41),Ht(1,ze,3,0,"div",42),Ht(2,ot,30,40,"article",43),Qt()),2&e&&(e=Xt(),un("qna-qb-loading",e.search_loading||e.questions_more),Pt("ng-hidden",e.resultserror||e.load_startup||e.load_startup_fail)("ng-attribute",e.qschemapage)("ng-attribute-when",e.sectionToggleSchema()),Mt(1),Pt("ngIf",e.search_loading||e.questions_more),Mt(1),Pt("ngForOf",e.schquestions)("ngForTrackBy",e.trackByFn))}function at(e,t){var n;1&e&&(n=cn(),Vt(0,"button",110),Jt("onTap",function(){return ln(n),Xt(2).ViewMoreQuestions()}),Vt(1,"span",111),Vt(2,"span",109),sn(3,"View "),Qt(),sn(4,"More Questions"),Qt(),jt(5,"i",83),Qt()),2&e&&(e=Xt(2),un("loadactive",e.questions_more))}function ct(e,t){var n;1&e&&(n=cn(),Vt(0,"div",106),Ht(1,at,6,2,"button",107),Vt(2,"button",108),Jt("onTap",function(){return ln(n),Xt().AskQuestion()}),sn(3,"Ask "),Vt(4,"span",109),sn(5,"Your"),Qt(),sn(6," Question"),Qt(),Qt()),2&e&&(e=Xt(),Mt(1),Pt("ngIf",e.has_more_ques))}function lt(e,t){1&e&&(Vt(0,"div",112),Vt(1,"div",45),jt(2,"i"),Qt(),Qt())}function ut(e,t){var n;1&e&&(n=cn(),Vt(0,"div",113),Vt(1,"p",114),sn(2,"Oops there was a problem retrieving data"),Qt(),jt(3,"br"),Vt(4,"div",115),Vt(5,"button",116),Jt("onTap",function(){return ln(n),Xt().RetryLoadData()}),sn(6,"Retry"),Qt(),Qt(),Qt())}function dt(e,t,n){return{"light-font qnah-1":e,"qnah-2 bold-font":t,"qnah-1 qnah-3 extra-bold-font":n}}ft.import("css:/components/qna-comp.css").then(function(){}).catch(function(){});y=gt("Q",(Object.defineProperty(ht.prototype,"search_value",{get:function(){return this._qType.getValue()},enumerable:!1,configurable:!0}),ht.prototype.questionToggleSchema=function(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)},ht.prototype.sectionToggleSchema=function(){return!!(this.toggleSchema&&this._has_answer&&0<this.schquestions.length)},Object.defineProperty(ht.prototype,"show_search_state",{get:function(){return this.search_value&&1<this.search_value.length&&!this.noresults&&!this.resultserror},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"show_search_state_empty",{get:function(){return this.search_value&&1<this.search_value.length&&this.noresults&&!this.resultserror},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"has_clipped_answer_content",{get:function(){return this.answers_content_clipped&&!(this.show_search_state||this.show_search_state_empty)},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"open_popup",{get:function(){return this._open_popup},set:function(e){(this._open_popup=e)&&this.AskQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"has_view_more",{get:function(){return!this.search_value&&!this.search_loading&&!this.load_startup&&!this.load_startup_fail&&!this.resultserror&&this.has_enough_ques},enumerable:!1,configurable:!0}),ht.prototype.trackByFn=function(e){return e},ht.prototype._ParseQuestions=function(e,i,s){var o=this,r=[];return Kn(e,function(e,t){if(null==e)return!0;var n=e;if(n.ques_title=e.ques_content,delete n.ques_content,n.ques_content_more=n.ques_more_info||n.ques_content_more||"",n.ques_more_info&&delete n.ques_more_info,138<n.ques_content_more.length&&(n.ques_content_cut_mob=n.ques_content_more.substring(0,138),n.ques_content_has_more=!0),330<n.ques_content_more.length?n.ques_content_cut_desk=n.ques_content_more.substring(138,330):138<n.ques_content_more.length&&(n.ques_content_cut_mob=n.ques_content_more,n.ques_content_has_more=!1),!n.ques_fullslug&&n.ques_slug&&(n.ques_fullslug=n.ques_slug+"-"+n.id.toString()),i){e=i(n);if("boolean"==typeof e&&!e)return!0}Zn(o.schquestions)&&(t+=o.schquestions.length),o._ParseAnswers(n,t,null,s),r.push(n)}),r},ht.prototype._ParseAnswers=function(i,s,e,o){var r=this,t=e||i.answers||[];Zn(t)&&(i.answers=e?i.answers:[],0<t.length&&!this._has_answer&&(this._has_answer=!0),t.forEach(function(e,t){var n=e;n.user_login&&(n.user_login="@"+n.user_login),Zn(n.content)?(n.content_cut=n.content[0]||n.content[1],r.answers_content_clipped&&!i.from_search?(n.content_long=n.content[0],delete n.content_cut):n.content[0]?n.content_long=n.content[1]:(n.content_long=n.content_cut,delete n.content_cut)):(n.content_long=n.content,r.answers_content_clipped=!0),delete n.content,n.content_cut&&"string"==typeof n.content_cut&&(n.content_cut=n.content_cut.replace("[[:hellip:]]","...")),0!=s||i.from_search||i.answers.length||(n.content_long||(n.content_long=n.content_cut),delete n.content_cut,r.answerexpand[n.id]=!0),r.signon&&r.signon.id==n.uid&&(r.replyboxinputsubmited[i.id]=n.content_long||n.content_cut),n.content_cut&&(n.content_cut=r._FormatAnswer(n.content_cut)),n.content_long&&(n.content_long=r._FormatAnswer(n.content_long));e=o?o(n,i):null;"boolean"==typeof e&&!e||(i.answers.push(n),n.stackid=s.toString()+"-"+i.answers.indexOf(n).toString()),n.is_reportable=!1,n.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"]},(r.IsSpecial(n.id)||Un(n.uid,[13302181,15780064,13301077,15679068,15598394]))&&n.sanitizecfg.ADD_TAGS.push("iframe")}),i.has_more_answers=(i.total_answers||0)>i.answers.length||1<i.answers.length&&!this.question_more_answers[i.id]),An(function(){Jn.emit("$shortcodes:set")})},ht.prototype._FormatAnswer=function(t){try{t=(t=(t=t.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(e){t=""}return t},ht.prototype.SearchInput=function(e){e=e.target.value;this._qType.next(e)},ht.prototype.ControlSortList=function(e){this.sort_list_opened="boolean"==typeof e?e:!this.sort_list_opened},ht.prototype.ExpandContent=function(e,t){this[t+"expand"][e]=!this[t+"expand"][e]},ht.prototype.RateContent=function(t,e,n){var i,s,o;void 0===e&&(e="up"),ei(this.signon)&&"id"in this.signon||!Sn()?t.voteinprogress||t.downvoteinprogress||(t.voteinprogress="up"==e,t.downvoteinprogress="down"==e,i=t.id,s=t.answers||t.ques_title?"question":"answer",(o=(t.id+"").match(/^([abceq])(\d+)$/))&&(i=parseInt(o.pop()),s=o.pop(),~["q","a"].indexOf(s)||(s="q"+s)),ti("content-vote-"+t.id),ni({url:ii(),data:{action:"Answers.Vote",id:i,kind:s,dir:"down"==e?"dn":"up"},id:"content-vote-"+t.id,before:function(){t.voteinprogress="up"==e,t.downvoteinprogress="down"==e},after:function(){t.voteinprogress=!1,t.downvoteinprogress=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){if(e.error)throw Error("response error");t.upvote=e.votes_up,t.downvote=e.votes_dn}).catch(function(e){e instanceof Error?Jn.emit("$server:error",{data:e.message}):401==e.status&&Sn()&&(top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href))})):top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href)},ht.prototype.IsSpecial=function(e){return~["c","b","e"].indexOf((e+"").charAt(0))},ht.prototype.ControlAnsOpt=function(e){e.options_list_opened=!e.options_list_opened},ht.prototype.AnsOpt=function(e,t){t=si(t.id);0==e&&window.open("/report-abuse/?ru="+location.href.split("?")[0].split("#")[0]+"&t=a&id="+t,"_self")},ht.prototype._throwReplyError=function(e,t){var n=this;void 0===t&&(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(function(){n.replyerror[e].show=!0})):this.replyerror[e].show=!0},ht.prototype.ShowReplybox=function(e){this.replyinprogress[e]||(this.replyboxshow[e]=!this.replyboxshow[e],this.replyboxshow[e]?this.replyboxinput[e]=this.replyboxinputsubmited[e]||"":this.replyboxinput[e]="")},ht.prototype.ReplyInput=function(e,t){this.replyboxinput[t]=e,this.replyerror[t]&&(this.replyerror[t].show=!1)},ht.prototype.SubmitReply=function(i){var s=this,e=this.replyboxinput[i.id];!(e=Bn(e))||e.length<30?this._throwReplyError(i.id,"Content must have 30 characters."):ni({url:ii(),data:{action:"Answers.AnswerQuestion",do:"user-answer",question_id:i.id,answer:e},headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},before:function(){s.replyinprogress[i.id]=!0},after:function(){delete s.replyinprogress[i.id]}}).then(function(t){return t&&"redirect"in t?(top.location.href=t.redirect,void setTimeout(function(){s.replyinprogress[i.id]=!0})):void(t.error&&"message"in t?s._throwReplyError(i.id,t.message):t.error?s._throwReplyError(i.id):(e=(i.answers||[]).findIndex(function(e){return e.id==t.id}),n={date:t.date,id:t.id,content:[t.answer],user_login:t.user_login||t.username,user_fullname:t.user_fullname||t.fullname,user_avatar:t.user_avatar||t.avatar,user_title:t.user_title||"",edited:t.edited},n={id:i.id,has_more_answers:i.has_more_answers,answers:[n]},s._ParseAnswers(n,n.id),(n=n.answers[0]).my_ans=!0,s.answerexpand[n.id]=!0,-1<e?(n.edited=!0,Object.assign(i.answers[e],n)):i.answers.unshift(n),s.replyboxinputsubmited[i.id]=t.answer,delete s.replyboxshow[i.id]));var e,n}).catch(function(e){console.error(e),s._throwReplyError(i.id)})},ht.prototype.QSearch=function(e,t){var n=this;this.resultserror=!1;e=t?null:Bn(null!=e?e:this._qType.getValue())||"";this.current_page=1,ti("qna-search-query"),ti("qna-load-initial"),e?(e={id:"qna-search-query",url:ii(),data:{action:"Answers.CommunitySearch",query:e},before:function(){n.search_loading=!0},after:function(){n.search_loading=!1},method:"GET"},this.quest_category?e.data.category=this._stripSlashes(this.quest_category):e.data.uri=this.ques_referer,ni(e).then(function(e){if(!e||!Zn(e))throw Error("Data provide is invalid");n.answerexpand={},n.questionexpand={},n.schquestions=n._ParseQuestions(e,function(e){e.from_search=!0}),n.noresults=0==n.schquestions.length}).catch(function(e){e instanceof Error&&console.error(e),n.resultserror=!0})):this._StartupLoad(!0)},ht.prototype.QReset=function(){this.QSearch(null,!0)},ht.prototype.QClear=function(){this._qType.next("")},ht.prototype._throwGenericError=function(e,t){},ht.prototype._stripSlashes=function(e){return 0==e.indexOf("/")&&(e=e.substring(1)),e.lastIndexOf("/")==e.length-1&&(e=e.substring(0,e.length)),e},ht.prototype.ViewMoreAns=function(t,n){var i=this;if(1<t.answers.length&&!this.question_more_answers[t.id])return this.question_more_answers[t.id]=!0,void(t.has_more_answers=(t.total_answers||0)>t.answers.length);ni({url:ii(),method:"GET",data:{action:"Answers.GetMoreAnswers",answers:t.answers.length,qid:t.id,v:2},before:function(){i.answersmore[t.id]=!0},after:function(){i.answersmore[t.id]=!1}}).then(function(e){if(!e||!Zn(e.answers))throw Error("Required `answers` Array is not part of response");i.question_more_answers[t.id]=!0,i._ParseAnswers(t,n,e.answers)}).catch(function(e){console.error(e)})},ht.prototype._LoadQues=function(t){var n=this;t&&(this.current_page=1),ti("qna-more-questions");var i,e={uri:this.ques_referer,action:"Answers.GetForPage"};1<this.current_page&&(e.p=this.current_page),this.sortingparam&&(e.sort_by=this.sortingparam),ni({url:ii(),method:"GET",data:e,before:function(){n.questions_more=!0,i=n._dservice&&n._dservice.element&&n._dservice.element.scrollTop},after:function(){n.questions_more=!1},id:"qna-more-questions"}).then(function(e){if(!e||!Zn(e.questions))throw Error("Required `question` Array is not part of response");n.has_enough_ques=e.pages&&1<e.pages,n.has_more_ques=e.current_page&&e.pages&&e.current_page<e.pages,t&&(n.schquestions=[]),t&&(n.has_enough_ques=!0),n.schquestions=n.schquestions.concat(n._ParseQuestions(e.questions)),n.noresults=0==n.schquestions.length,setTimeout(function(){n._dservice&&n._dservice.element&&n._dservice.scrollTo({position:i,timing:0})})}).catch(function(e){console.error(e)})},ht.prototype.ViewMoreQuestions=function(){this.current_page++,this._LoadQues()},ht.prototype.ChangeSort=function(e){this.sortv=this.sortList[e],this.sort_list_opened=!1,this.sortingparam=1===e?"mv":"mp",this._LoadQues(!0)},ht.prototype.AskQuestion=function(){this._quesOverlay.Open(re,{input:this.ques_ask||this._qType.getValue()||"",referer:Fn()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories})},ht.prototype._parseInitialData=function(e){this.schquestions=this._ParseQuestions(e.questions||[]),this.noresults=0==this.schquestions.length,this.has_enough_ques=e.pages&&1<e.pages,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&&1<e.current_page&&(this.current_page=e.current_page)},ht.prototype._StartupLoad=function(t){var n=this;this.load_startup_fail=!1;var e={uri:this.ques_referer,action:"Answers.GetForPage"};1<this.current_page&&(e.p=this.current_page),this.sortingparam&&(e.sort_by=this.sortingparam),ti("qna-load-initial"),ni({url:ii(),method:"GET",data:e,before:function(){t?n.search_loading=!0:n.load_startup=!0},after:function(){t?n.search_loading=!1:n.load_startup=!1},id:"qna-load-initial"}).then(function(e){if(!e||e.error||e.questions&&!Zn(e.questions))throw Error("Required `question` Array is not part of response");n._parseInitialData(e),t&&(n.has_enough_ques=!0)}).catch(function(e){console.error(e),n.load_startup_fail=!0})},ht.prototype.RetryLoadData=function(){this._StartupLoad()},ht.prototype.ngOnInit=function(){var n=this;this.sortv=this.sortList[0],this.sortingparam="mp",zn()||!Qn.get("mw_signon")&&!pi.group("mw_cookies")?this.user_avatar=null:(this.signon=Qn.get("mw_signon")?JSON.parse(Qn.get("mw_signon")):null,this.user_avatar=this.signon&&this.signon.pp||this.user_avatar_fallback);var i,s,e=this._location.path().split("?")[0];this.ques_referer=this.ques_referer||e.replace("/ng-home",""),0!=this.ques_referer.indexOf("/")&&(this.ques_referer="/"+this.ques_referer),this.ques_referer.startsWith("/personal-loans")||this.ques_referer.lastIndexOf("/")!==this.ques_referer.length-1&&(this.ques_referer+="/"),this.page_query&&!zn()&&this._route.queryParams.pipe(bn(1)).subscribe(function(e){e=e[n.page_query],e=e?Yn(e):0;e&&(!n.ques_data||!n.ques_data.pages||e<=n.ques_data.pages&&e!=n.ques_data.current_page?(n.current_page=e,n.ques_data=null):n.ques_data.questions.length<1&&(n.ques_data.pages=1))}),this.ques_data&&this.ques_data.questions&&Zn(this.ques_data.questions)?this._parseInitialData(this.ques_data):zn()||(this.load_startup=!0,setTimeout(function(){n._StartupLoad()},this.start_delay||1));var t=this._qType.pipe(wn(200)).subscribe(function(e){var t=Bn((e||"").replace(/(\r\n\t|\n|\r\t)/gm," "));null!==e&&t!=i&&1<t.length?(i=t,s=!0,n.QSearch(t)):s&&(!t||t.length<2)&&(i=t,s=!1,n.QReset())},function(){},function(){t.unsubscribe()})},ht.prototype.ngOnDestroy=function(){this._qType.complete()},ht.ɵfac=function(e){return new(e||ht)(qt(Et),qt(dn),qt(kn),qt(i),qt(On))},ht.ɵcmp=At({type:ht,selectors:[["section","id","qna-box"]],viewQuery:function(e,t){1&e&&(Zt(fe,!0),Zt(_e,!0),Zt(me,!0)),2&e&&(Ot(e=Rt())&&(t.txtElement=e.first),Ot(e=Rt())&&(t._quesOverlay=e.first),Ot(e=Rt())&&(t._answersList=e))},hostVars:4,hostBindings:function(e,t){2&e&&un("qna-type1",0==t.layout_type)("qna-no-more",!t.has_view_more)},inputs:{layout_type:["type","layout_type"],product_name:["product-name","product_name"],ques_data:["product-questions","ques_data"],ques_referer:["product-referer","ques_referer"],intro_content:["use-intro","intro_content"],quest_category:["product-category","quest_category"],start_delay:["startup-delay","start_delay"],section_title:["section-title","section_title"],ask_quest_categories:["question-categories","ask_quest_categories"],toggleSchema:["toggle-schema","toggleSchema"],open_popup:["show-ask-popup","open_popup"],focus_on_input:["scroll-to-ask","focus_on_input"],addAskParams:["question-ask-add-params","addAskParams"],page_query:["pagination-query","page_query"]},outputs:{total_ques:"total-questions"},attrs:L,decls:20,vars:20,consts:[[1,"qna-heading",3,"ngClass"],["class","qa-count semi-bold-font",4,"ngIf"],["class","qna-prg",4,"ngIf"],["class","qna-prg","zing-touch","",3,"zing-url-container","ng-truncate","breakwords","breakpoint",4,"ngIf"],["class","qna-search-box",4,"ngIf"],["role","listbox",1,"qna-sort","ng-enter-element",3,"ng-hidden"],["role","option","zing-touch","",1,"qna-most-list-active","inline-block",3,"onTap","onTapOutside"],[1,"af-icon-down-open"],["zing-touch","",1,"qna-most-list","basic-trans",3,"ng-hidden","onTap"],["role","option","class","qna-most-list-it bold-font","zing-touch","",3,"qnaml-first","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["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"],["quesOverlay",""],["class","qna-startup-load progress-indicator-container ng-enter-element",4,"ngIf"],["class","qna-startup-fail ng-enter-element",4,"ngIf"],[1,"qa-count","semi-bold-font"],[1,"qna-prg"],["href","/answers/","zing-touch","","target","_blank","rel","noopener",1,"link",3,"zing-url"],["zing-touch","",1,"qna-prg",3,"zing-url-container","ng-truncate","breakwords","breakpoint"],[1,"qna-search-box"],["aria-label","Search for answers",1,"label-input","full",3,"scroll-to"],["placeholder","Have a question? Search for answers","ng-autosize","","aria-label","keyword",1,"qna-search-input","textarea",3,"value","input"],["class","qba-sc-cross lbl-b ng-enter-element","zing-touch","",3,"onTap",4,"ngIf"],["aria-label","Search","type","button","zing-touch","",1,"lbl-b","action","af-icon-search",3,"ng-hidden","onTap"],[1,"qna-ask-q-suggest","semi-bold-font","ng-enter-element",3,"ng-hidden"],[4,"ngIf"],["zing-touch","",1,"btn","fixed-w-h",3,"onTap"],["class","qna-search-state bold-font",4,"ngIf"],["zing-touch","",1,"qba-sc-cross","lbl-b","ng-enter-element",3,"onTap"],[1,"qna-search-state","bold-font"],["role","option","zing-touch","",1,"qna-most-list-it","bold-font",3,"onTap"],[1,"qna-form-box"],["class","qna-fb-hero",4,"ngIf"],[1,"qna-ques-form"],[1,"qna-qf-av"],["width","40","height","40","alt","",3,"src","on-img-error"],[1,"qna-qf-input",3,"scroll-to"],["placeholder","Have a question? Ask the WalletHub community...","aria-label","Ask a question","ng-autosize","",1,"qna-qf-txt","textarea","semi-bold-font",3,"value","input"],["zing-touch","",1,"btn","fixed-w-f",3,"onTap"],[1,"qna-fb-hero"],[1,"qna-questions-box",3,"ng-hidden","ng-attribute","ng-attribute-when"],["class","qna-loading-box ng-enter-element",4,"ngIf"],["class","qna-question-item",3,"qna-q-search","ng-attribute","ng-attribute-when",4,"ngFor","ngForOf","ngForTrackBy"],[1,"qna-loading-box","ng-enter-element"],[1,"progress-indicator","always-v","visible"],[1,"qna-question-item",3,"ng-attribute","ng-attribute-when"],[1,"qna-q-title-box","bold-font",3,"ng-attribute","ng-attribute-when"],["class","qna-q-title link","zing-touch","","rel","noopener",3,"href","zing-url","ng-context","qt-as-link",4,"ngIf"],["class","qna-q-title link",3,"ng-context","qt-as-link",4,"ngIf"],[1,"qna-q-upvotes"],[1,"qna-q-upvotes-count",3,"ng-attribute","ng-attribute-when"],[1,"bold-font"],["class","qna-q-content ng-enter-element text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content ng-enter-element qna-q-desk text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content qna-q-desk",4,"ngIf"],["class","qna-q-content-more semi-bold-font","zing-touch","",3,"ng-hidden","onTap",4,"ngIf"],[1,"qna-q-actions"],["class","qna-q-reply link semi-bold-font",3,"click",4,"ngIf"],[1,"qna-q-thumbs"],["zing-touch","",1,"up","vote","bf-icon-upvote","progress-indicator","qna-qvt",3,"zing-no-touch","onTap"],[1,"qna-qv-t"],["zing-touch","",1,"dn","vote","bf-icon-downvote","progress-indicator",3,"zing-no-touch","onTap"],["class","qna-q-replyform ng-enter-element","form-submit","",3,"onSubmit",4,"ngIf"],[1,"qna-q-answers",3,"ng-hidden"],["class","qna-q-ans basic-trans",3,"ng-hidden","ng-attribute","ng-attribute-when",4,"ngFor","ngForOf","ngForTrackBy"],["class","qna-qa-show-more progress-indicator-container",4,"ngIf"],["zing-touch","","rel","noopener",1,"qna-q-title","link",3,"href","zing-url","ng-context"],[1,"qna-q-title","link",3,"ng-context"],[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","",1,"qna-q-content-more","semi-bold-font",3,"ng-hidden","onTap"],[1,"qna-q-reply","link","semi-bold-font",3,"click"],["form-submit","",1,"qna-q-replyform","ng-enter-element",3,"onSubmit"],[1,"avatar"],["width","","height","","alt","",3,"src","on-img-error"],[1,"reply-box","ck-answer-editor"],[3,"value","active","cursor-focus","readonly","valueChange"],[1,"reply-act"],[3,"message","show","close-on-change","timer"],["type","button","aria-label","Cancel","zing-touch","",1,"btn","grey","fixed-w",3,"disabled","onTap"],["type","submit","aria-label","Submit",1,"btn","blue","fixed-w","with-loader","no-disabled",3,"disabled"],[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"],["alt","","width","40","height","40",1,"avatar-img"],["deferImg",""],[1,"qna-qa-names","text-select"],["class","full-name semi-bold-font",3,"ng-attribute","ng-attribute-when",4,"ngIf"],[1,"second-name"],["class","qna-qa-sort","role","listbox",4,"ngIf"],["zing-touch","",1,"qna-q-ans-content","with-links","text-select",3,"zing-url-container","expand-content","breakwords","collapse-button","ng-truncate","sanitize-cfg","ng-attribute","ng-attribute-when"],["class","qna-q-thumbs",4,"ngIf"],[1,"full-name","semi-bold-font",3,"ng-attribute","ng-attribute-when"],[3,"ng-attribute","ng-attribute-when"],["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"],["role","option","zing-touch","","class","qna-most-list-it bold-font",3,"qnaml-first","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["zing-touch","",1,"up","vote","bf-icon-upvote","progress-indicator",3,"zing-no-touch","onTap"],[1,"qna-qa-show-more","progress-indicator-container"],[1,"progress-indicator"],["zing-touch","",1,"qna-qa-sm-bt","link","inherit",3,"onTap"],[1,"qna-q-get-more"],["class","btn blue-brds tall with-loader no-disabled bold-font","aria-label","More Questions","zing-touch","",3,"loadactive","onTap",4,"ngIf"],["zing-touch","",1,"btn","tall","qna-qgm-btn-last","blue-brds","bold-font",3,"onTap"],[1,"qna-qgm-mhide"],["aria-label","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,t){1&e&&(Vt(0,"h2",0),sn(1),Ht(2,ve,2,1,"span",1),Qt(),Ht(3,be,6,2,"p",2),Ht(4,ye,1,4,"p",3),Ht(5,Ie,12,11,"div",4),Vt(6,"div",5),Vt(7,"span",6),Jt("onTap",function(){return t.ControlSortList()})("onTapOutside",function(){return t.ControlSortList(!1)}),Vt(8,"span"),sn(9),Qt(),jt(10,"i",7),Qt(),Vt(11,"div",8),Jt("onTap",function(e){return e.stopPropagation()}),Ht(12,Ce,2,3,"span",9),Qt(),Qt(),Ht(13,Le,9,5,"div",10),Ht(14,rt,3,8,"div",11),Ht(15,ct,7,1,"div",12),jt(16,"modal-dialog",null,13),Ht(18,lt,3,0,"div",14),Ht(19,ut,7,0,"div",15)),2&e&&(Pt("ngClass",xn(16,dt,0==t.layout_type,1==t.layout_type,2==t.layout_type)),Mt(1),rn("",t.section_title," "),Mt(1),Pt("ngIf",1==t.layout_type&&t.schq_count),Mt(1),Pt("ngIf",t.product_name),Mt(1),Pt("ngIf",t.intro_content),Mt(1),Pt("ngIf",t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),Mt(1),Pt("ng-hidden",!t.has_enough_ques||0==t.schquestions.length||t.show_search_state||t.show_search_state_empty||t.resultserror),Mt(3),hn(t.sortv),Mt(2),Pt("ng-hidden",!t.sort_list_opened),Mt(1),Pt("ngForOf",t.sortList)("ngForTrackBy",t.trackByFn),Mt(1),Pt("ngIf",!t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),Mt(1),Pt("ngIf",t.search_loading||t.questions_more||t.schquestions.length),Mt(1),Pt("ngIf",t.has_view_more),Mt(3),Pt("ngIf",t.load_startup&&!t.load_startup_fail),Mt(1),Pt("ngIf",t.load_startup_fail))},directives:[Ut,Nt,Mn,Hn,tn,oi,F,ri,a,y,ai,ci,Pn,gi,_,Dn,li],encapsulation:2}),ht));function ht(e,t,n,i,s){this._zone=e,this._location=t,this._sanitize=n,this._route=i,this._dservice=s,this.layout_type=0,this.product_name="",this.ques_data=null,this.ques_referer=null,this.quest_category=null,this.start_delay=1e3,this.section_title="Questions & Answers",this.ask_quest_categories=null,this._qType=new _t(""),this.questions=[],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.current_page=1,this.schquestions=[],this.total_ques=new zt,this.replyboxinput={},this.replyboxinputsubmited={},this.replyinprogress={},this.replyerror={},this.replyboxshow={},this.sortList=["Most Popular","Most Upvotes"],this.sortv="",this.sort_list_opened=!1,this.user_avatar_fallback="https://d2e70e9yced57e.cloudfront.net/wallethub/images/profile/avatars/silhouette-50_V1d9a2cc_.png",this.ques_ask="",this.ansOptions=["Report"],this._open_popup=!1,this.page_query=null,this.answers_link=Fn()+"/answers/"}yt(y,[{type:Gt,args:[{selector:"section[id=qna-box]",templateUrl:"/views/components/qna-comp.html",host:{"[class.qna-type1]":"layout_type == 0","[class.qna-no-more]":"!has_view_more"}}]}],function(){return[{type:Et},{type:dn},{type:kn},{type:i},{type:On}]},{layout_type:[{type:Tt,args:["type"]}],product_name:[{type:Tt,args:["product-name"]}],ques_data:[{type:Tt,args:["product-questions"]}],ques_referer:[{type:Tt,args:["product-referer"]}],intro_content:[{type:Tt,args:["use-intro"]}],quest_category:[{type:Tt,args:["product-category"]}],start_delay:[{type:Tt,args:["startup-delay"]}],section_title:[{type:Tt,args:["section-title"]}],ask_quest_categories:[{type:Tt,args:["question-categories"]}],toggleSchema:[{type:Tt,args:["toggle-schema"]}],total_ques:[{type:It,args:["total-questions"]}],txtElement:[{type:Ft,args:["txtElement",{static:!1}]}],_quesOverlay:[{type:Ft,args:["quesOverlay",{static:!1}]}],_answersList:[{type:qn,args:["ques_answer"]}],open_popup:[{type:Tt,args:["show-ask-popup"]}],focus_on_input:[{type:Tt,args:["scroll-to-ask"]}],addAskParams:[{type:Tt,args:["question-ask-add-params"]}],page_query:[{type:Tt,args:["pagination-query"]}]});_=gt("b",(pt.ɵmod=mt({type:pt}),pt.ɵinj=vt({factory:function(e){return new(e||pt)},imports:[[bt,Rn,Vn,x,ui,e,di,hi,l,v,fi,C,k]]}),pt));function pt(){}yt(_,[{type:wt,args:[{imports:[bt,Rn,Vn,x,ui,e,di,hi,l,v,fi,C,k],exports:[y],declarations:[y]}]}],null,null)}}}),function(i){System.registerDynamic("npm:autosize/dist/autosize.js",[],!1,function(e,t,n){return n.uri=n.id,i.call(t,n,t)})}(function(e,t){"use strict";var n,i,u="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return-1<n.indexOf(e)},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){e=n.indexOf(e);-1<e&&(n.splice(e,1),i.splice(e,1))}}),d=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){d=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function s(s){var n,i,o,e,r,t;function a(e){var t=s.style.width;s.style.width="0px",s.offsetWidth,s.style.width=t,s.style.overflowY=e}function c(){var e,t;0!==s.scrollHeight&&(e=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(s),t=document.documentElement&&document.documentElement.scrollTop,s.style.height="",s.style.height=s.scrollHeight+n+"px",i=s.clientWidth,e.forEach(function(e){e.node.scrollTop=e.scrollTop}),t&&(document.documentElement.scrollTop=t))}function l(){c();var e=Math.round(parseFloat(s.style.height)),t=window.getComputedStyle(s,null),n="content-box"===t.boxSizing?Math.round(parseFloat(t.height)):s.offsetHeight;if(n<e?"hidden"===t.overflowY&&(a("scroll"),c(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(s,null).height)):s.offsetHeight):"hidden"!==t.overflowY&&(a("hidden"),c(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(s,null).height)):s.offsetHeight),o!==n){o=n;var i=d("autosize:resized");try{s.dispatchEvent(i)}catch(e){}}}s&&s.nodeName&&"TEXTAREA"===s.nodeName&&!u.has(s)&&(o=i=n=null,e=function(){s.clientWidth!==i&&l()},r=function(t){window.removeEventListener("resize",e,!1),s.removeEventListener("input",l,!1),s.removeEventListener("keyup",l,!1),s.removeEventListener("autosize:destroy",r,!1),s.removeEventListener("autosize:update",l,!1),Object.keys(t).forEach(function(e){s.style[e]=t[e]}),u.delete(s)}.bind(s,{height:s.style.height,resize:s.style.resize,overflowY:s.style.overflowY,overflowX:s.style.overflowX,wordWrap:s.style.wordWrap}),s.addEventListener("autosize:destroy",r,!1),"onpropertychange"in s&&"oninput"in s&&s.addEventListener("keyup",l,!1),window.addEventListener("resize",e,!1),s.addEventListener("input",l,!1),s.addEventListener("autosize:update",l,!1),s.style.overflowX="hidden",s.style.wordWrap="break-word",u.set(s,{destroy:r,update:l}),"vertical"===(t=window.getComputedStyle(s,null)).resize?s.style.resize="none":"both"===t.resize&&(s.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),l())}function o(e){e=u.get(e);e&&e.destroy()}function r(e){e=u.get(e);e&&e.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.default=a,e.exports=t.default}),System.register("bundled/route-ui-module.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","npm:autonumeric/dist/autoNumeric.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize"],function(n){"use strict";return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){var t={};t.ActivatedRoute=e.A,t.RouterModule=e.R,n(t)},function(){}],execute:function(){}}});