define(["exports","css:/pages/cheap-car-insurance/cheap-car-insurance.css","./form-submit","systemjs","css:/components/insurance-card.css","css:/pages/profile/review-star.css","css:/components/car-insurance-widget.css","css:/pages/institutions/cross-links.css"],(function(e,t,n,i,s,r,a,o){"use strict";function l(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=l(i).default,d=["addListener","removeListener"],h=["addEventListener","removeEventListener"],u=["on","off"];function p(e,t,i,s){if(n.isFunction(i)&&(s=i,i=void 0),s)return p(e,t,i).pipe(n.mapOneOrManyArgs(s));var r=n.__read(function(e){return n.isFunction(e.addEventListener)&&n.isFunction(e.removeEventListener)}(e)?h.map((function(n){return function(s){return e[n](t,s,i)}})):function(e){return n.isFunction(e.addListener)&&n.isFunction(e.removeListener)}(e)?d.map(g(e,t)):function(e){return n.isFunction(e.on)&&n.isFunction(e.off)}(e)?u.map(g(e,t)):[],2),a=r[0],o=r[1];if(!a&&n.isArrayLike(e))return n.mergeMap((function(e){return p(e,t,i)}))(n.innerFrom(e));if(!a)throw new TypeError("Invalid event target");return new n.Observable((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return a(t),function(){return o(t)}}))}function g(e,t){return function(n){return function(i){return e[n](t,i)}}}class _{get refresh(){return this._refresh}set refresh(e){this._refresh=e,!n.isNode()&&this._scroller&&setTimeout((()=>{this._scrollWatch()}))}get enabled(){return this._enable}set enabled(e){this._enable=e,e&&!n.isNode()&&setTimeout((()=>{this._scrollWatch()}))}_getSupport(){if(!window.getComputedStyle)return!1;let e=document.createElement("div"),t=["","-webkit-","-moz-","-ms-"],n=null;for(let i=0,s=t.length;i<s;i++){let s=t[i]+"sticky";try{e.style.position=s}catch(e){}if(e.style.position&&e.style.position.indexOf("sticky")>-1){n=s;break}}return n}constructor(e,t,n){this._el=e,this._zone=t,this._dserv=n,this.offset=null,this.fixedcenter=!1,this.userscrolleroffset=!0,this._enable=!0,this.auto_start=!0,this._nativesupport="fixed",this.trynative=!1,this.sticky_parent=!1}_scrollWatch(){if(!this.enabled)return;let e=this._el.nativeElement,t=this._el.nativeElement.parentNode.getBoundingClientRect(),n={};if(0===e.offsetHeight&&0===e.offsetWidth)return;let i=t.top<this.offset?this.offset:t.top;i+e.offsetHeight>t.bottom&&(i=t.bottom-e.offsetHeight),n.top=i+"px",this.fixedcenter&&(n.left=t.left+"px",n.right=window.innerWidth-t.right+"px");let s="position:fixed;top:"+n.top+";left:"+n.left+";";n.right&&(s+="right:"+n.right),e.style.cssText!==s&&(e.style.cssText=s)}ngAfterViewInit(){if(this._scrollWatch=this._scrollWatch.bind(this),!n.isNode()&&!window.JSTESTING){if(this.sticky_parent&&(this._el={nativeElement:this._el.nativeElement.parentNode}),this.trynative){let e=this._getSupport();if(e){return void(this._el.nativeElement.style.position=e)}}let e;this._scroller=this.scroller?document.querySelector(this.scroller):this._dserv.overwrite_to_body?window:this._dserv.element,this.scroller&&this.userscrolleroffset&&null===this.offset&&!this._dserv.overwrite_to_body&&(this.offset=this._scroller.getBoundingClientRect().top),null===this.offset&&(this.offset=0),e=!!n.passiveEventsCheck()&&{passive:!0},e=!1,this._zone.runOutsideAngular((()=>{this._scroller.addEventListener("scroll",this._scrollWatch,e),window.addEventListener("resize",this._scrollWatch,e),this.auto_start&&n.reqAnimationFrame((()=>{this._el.nativeElement.style.position=this._nativesupport,this._el.nativeElement.top="0px",this._scrollWatch()}))}))}}ngOnDestroy(){this._scroller&&"fixed"==this._nativesupport&&(this._scroller.removeEventListener("scroll",this._scrollWatch),window.removeEventListener("resize",this._scrollWatch))}}_.ɵfac=function(e){return new(e||_)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.NgZone),n.ɵɵdirectiveInject(n.ScrollerService))},_.ɵdir=n.ɵɵdefineDirective({type:_,selectors:[["","ng-sticky",""]],inputs:{scroller:[0,"sticky-scroller","scroller"],offset:[0,"stickyoffset","offset"],fixedcenter:[0,"stickyfull","fixedcenter"],userscrolleroffset:[0,"sticky-scroller-offset","userscrolleroffset"],refresh:[0,"sticky-refresh-toggle","refresh"],enabled:[0,"stickyenabled","enabled"],auto_start:[0,"sticky-auto-start","auto_start"],trynative:[0,"sticky-native","trynative"],sticky_parent:[0,"sticky-parent","sticky_parent"]},standalone:!1});class m{set enabled(e){if(e!==this._enabled){let t=this._el.nativeElement;e?(this._native&&t&&this._renderer.setStyle(t,"position","sticky"),n.reqAnimationFrame((()=>{this._ScrollWatch()}))):t&&this._renderer.setStyle(t,"position","")}this._enabled=e}get enabled(){return this._enabled}constructor(e,t,i,s){this._el=e,this._zone=t,this._dscroll=i,this._renderer=s,this.allow_native=!0,this.onPosition=new n.EventEmitter,this._curr_pos="static",this._enabled=!0,this.sticky_parent=!1,this.offset=0,this.force_offset=!1,this._subscriptions=[],this._observables=[],this._native=!1,this._ScrollWatch=this._ScrollWatch.bind(this)}_getSupport(){if(!window.getComputedStyle)return!1;let e=document.createElement("div"),t=["","-webkit-","-moz-","-ms-"],n=null;for(let i=0,s=t.length;i<s;i++){let s=t[i]+"sticky";try{e.style.position=s}catch(e){}if(e.style.position&&e.style.position.indexOf("sticky")>-1){n=s;break}}return n}_ScrollWatch(e){this.enabled&&this._zone.runOutsideAngular((()=>{const t=this._el.nativeElement;if(t)if(this._native){let e=0,i=t.style.top?n.toNumber(t.style.top):0,s=t.offsetTop;if(n.Events.subscribe("header:position-change",(t=>{e=t}),(()=>{}),(()=>{}),[n.take(1)]),this.force_offset||e!==i&&0!=s?this._renderer.setStyle(t,"top",e+this.offset+"px"):0==s&&(e=0,this._renderer.setStyle(t,"top",e+this.offset+"px")),this._stickyWayPoint){let e=this._stickyWayPoint.offsetTop,n=this._stickyWayPoint.offsetParent;if(s=t.offsetTop,this._dscroll.overwrite_to_body)for(;n&&n!=this._dscroll.element;)e+=n.offsetTop,n=n.offsetParent;0!==s?s>e?(this.onPosition.emit("sticky"),this._curr_pos="sticky"):(this.onPosition.emit("static"),this._curr_pos="static"):"sticky"==this._curr_pos&&this.onPosition.emit("static")}}else if(this._stickyContainer)if(e){let i=this._stickyContainer.offsetTop,s=this._stickyContainer.offsetParent;for(;s&&s!=this._dscroll.element;)i+=s.offsetTop,s=s.offsetParent;if(e>=i){let e=0;n.Events.subscribe("header:position-change",(t=>{e=t}),(()=>{}),(()=>{}),[n.take(1)]),this._renderer.setStyle(t,"top",e+"px"),this._renderer.setStyle(t,"position","fixed"),"static"==this._curr_pos&&(this.onPosition.emit("sticky"),this._curr_pos="sticky")}else this._renderer.setStyle(t,"top",""),this._renderer.setStyle(t,"position",""),"sticky"==this._curr_pos&&(this.onPosition.emit("static"),this._curr_pos="static")}else this._renderer.setStyle(t,"top",""),this._renderer.setStyle(t,"position",""),"sticky"==this._curr_pos&&(this.onPosition.emit("static"),this._curr_pos="static")}))}ngAfterViewInit(){if(!n.isNode()&&!n.isJasmineTest()){if(this.sticky_parent&&(this._el={nativeElement:this._el.nativeElement.parentNode}),this._native=!!this.allow_native&&this._getSupport(),this.enabled&&this._el.nativeElement&&this._renderer.setStyle(this._el.nativeElement,"position",this._native?"sticky":""),this._native){if(this._stickyWayPoint=document.createElement("div"),this._stickyWayPoint.classList.add("sticky-waypoint"),this._el.nativeElement){let e=this._el.nativeElement;e.parentNode.insertBefore(this._stickyWayPoint,e)}}else{this._stickyContainer=document.createElement("div"),this._stickyContainer.classList.add("sticky-container");let e=this._el.nativeElement.getBoundingClientRect();this._stickyContainer.style.height=e.height+"px";let t=this._el.nativeElement;t.parentNode.insertBefore(this._stickyContainer,t),this._stickyContainer.appendChild(this._el.nativeElement)}this._observables.push(p(window,"resize")),this._observables.forEach((e=>{this._subscriptions.push(e.subscribe((()=>{if(this._stickyContainer){let e=this._el.nativeElement.getBoundingClientRect();this._stickyContainer.style.height=e.height+"px"}this._ScrollWatch()})))})),this._subscriptions.push(this._dscroll.onScroll.subscribe((e=>{this._ScrollWatch(e)}))),this._ScrollWatch()}}ngOnDestroy(){if(this._subscriptions.forEach((e=>{e.unsubscribe()})),this._observables=[],this._stickyContainer){this._stickyContainer.after(this._el.nativeElement);try{this._stickyContainer.parentNode.removeChild(this._stickyContainer)}catch(e){}this._stickyContainer=null}if(this._stickyWayPoint){try{this._stickyWayPoint.parentNode.removeChild(this._stickyWayPoint)}catch(e){}this._stickyWayPoint=null}}}m.ɵfac=function(e){return new(e||m)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.NgZone),n.ɵɵdirectiveInject(n.ScrollerService),n.ɵɵdirectiveInject(n.Renderer2))},m.ɵdir=n.ɵɵdefineDirective({type:m,selectors:[["","ng-position-sticky",""]],inputs:{allow_native:[0,"native","allow_native"],enabled:"enabled",sticky_parent:[0,"sticky-parent","sticky_parent"],offset:[0,"stickyoffset","offset"],force_offset:[0,"force-offset","force_offset"]},outputs:{onPosition:"onPosition"},standalone:!1});class f{constructor(e,t){this._el=e,this._scroll=t,this.threshold=0,this.onThreshold=new n.EventEmitter,this._threshold_fire=!1}ngOnInit(){this._scroll.onScroll.subscribe((e=>{this._el.nativeElement&&(cancelAnimationFrame(this._anim),this._anim=n.reqAnimationFrame((()=>{const e=this._el.nativeElement.getBoundingClientRect();0!=e.height&&(e.top<=this.threshold&&!this._threshold_fire?(this._threshold_fire=!0,this.onThreshold.emit(!0)):this._threshold_fire&&e.top>this.threshold&&(this._threshold_fire=!1,this.onThreshold.emit(!1)))})))}))}ngOnDestroy(){this.observer&&this.observer.unsubscribe()}}f.ɵfac=function(e){return new(e||f)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.ScrollerService))},f.ɵdir=n.ɵɵdefineDirective({type:f,selectors:[["","sticky-observer",""]],inputs:{threshold:"threshold"},outputs:{onThreshold:"onThreshold"},standalone:!1});class v{}v.ɵfac=function(e){return new(e||v)},v.ɵmod=n.ɵɵdefineNgModule({type:v}),v.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule]});const b=new Map;function x(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||b.has(e))return;let t=null;const n=window.getComputedStyle(e);function i({restoreTextAlign:s=null,testForHeightReduction:r=!0}){let a,o,l=n.overflowY;if(0!==e.scrollHeight&&("vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),r&&(a=function(e){const t=[];for(;e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return()=>t.forEach((([e,t])=>{e.style.scrollBehavior="auto",e.scrollTop=t,e.style.scrollBehavior=null}))}(e),e.style.height=""),o="content-box"===n.boxSizing?e.scrollHeight-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),"none"!==n.maxHeight&&o>parseFloat(n.maxHeight)?("hidden"===n.overflowY&&(e.style.overflow="scroll"),o=parseFloat(n.maxHeight)):"hidden"!==n.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),a&&a(),t!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),t=o),l!==n.overflow&&!s)){const t=n.textAlign;"hidden"===n.overflow&&(e.style.textAlign="start"===t?"end":"start"),i({restoreTextAlign:t,testForHeightReduction:!0})}}function s(){i({testForHeightReduction:!1,restoreTextAlign:null})}const r=function(){let t=e.value;return()=>{i({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}}(),a=(t=>{e.removeEventListener("autosize:destroy",a),e.removeEventListener("autosize:update",s),e.removeEventListener("input",r),window.removeEventListener("resize",s),Object.keys(t).forEach((n=>e.style[n]=t[n])),b.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a),e.addEventListener("autosize:update",s),e.addEventListener("input",r),window.addEventListener("resize",s),e.style.overflowX="hidden",e.style.wordWrap="break-word",b.set(e,{destroy:a,update:s}),s()}function w(e){const t=b.get(e);t&&t.destroy()}function y(e){const t=b.get(e);t&&t.update()}let C=null;"undefined"==typeof window?(C=e=>e,C.destroy=e=>e,C.update=e=>e):(C=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],(e=>x(e))),e),C.destroy=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],w),e),C.update=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],y),e));var E=C;class k{set updateAutoSize(e){n.isNode()||this._zone.runOutsideAngular((()=>{1==e&&n.reqAnimationFrame((()=>{this._autosize&&this._autosize.update(this._el.nativeElement)}))}))}get updateAutoSize(){return!1}fireResize(){this.onResized.emit()}constructor(e,t){this._el=e,this._zone=t,this._resize=!1,this.onResized=new n.EventEmitter}ngOnInit(){this.fireResize=this.fireResize.bind(this)}ngAfterViewInit(){!n.isNode()&&this._el.nativeElement&&this._zone.runOutsideAngular((()=>{E(this._el.nativeElement),this._el.nativeElement.addEventListener("autosize:resized",this.fireResize),this._autosize=E}))}ngOnDestroy(){n.isNode()||this._autosize&&(this._autosize.destroy(this._el.nativeElement),this._el.nativeElement.removeEventListener("autosize:resized",this.fireResize),this._autosize=null)}}k.ɵfac=function(e){return new(e||k)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.NgZone))},k.ɵdir=n.ɵɵdefineDirective({type:k,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:[0,"sizeupdate","updateAutoSize"],_resize:[0,"watchresize","_resize"]},outputs:{onResized:"onResized"},standalone:!1});class q{}q.ɵfac=function(e){return new(e||q)},q.ɵmod=n.ɵɵdefineNgModule({type:q}),q.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule]});const T=["textarea"];function I(e,t){1&e&&(n.ɵɵelementStart(0,"div",4),n.ɵɵelement(1,"i"),n.ɵɵelementEnd())}let S=!1,L=n.isWeb()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class A{set value(e){this._value.next(e)}get value(){return this._value.getValue()}set active(e){this._active.next(e)}get active(){return this._active.getValue()}set readonly(e){this._editor&&this._readonly!==e&&(e?this._editor.enableReadOnlyMode("lock-"+this.ckelementid):this._editor.disableReadOnlyMode("lock-"+this.ckelementid)),this._readonly=e}get readonly(){return this._readonly}set autofocus(e){this._autofocus=e,e&&this._container&&this._container.nativeElement.focus()}get autofocus(){return this._autofocus}constructor(e,t,i){this._el=e,this._cd=t,this._service=i,this._destroyed=!0,this.ckeditorLoaded=!0,this.ckelementid=n.uniqid(),this._value=new n.BehaviorSubject(""),this.valueChange=new n.EventEmitter,this._active=new n.BehaviorSubject(!1),this._autofocus=!1,this._enabled=!1,this.options={toolbar:["heading","|","bold","italic","underline","link","|","insertTable","bulletedList","numberedList","|","undo","redo"],heading:{options:[{model:"paragraph",title:"Normal",class:""},{model:"heading2",view:"h2",title:"Heading",class:"ckeditor-heading bold-font"}]},table:{toolbar:["tableColumn","tableRow","mergeTableCells"]}},this.editorInitiated=new n.EventEmitter,this.editor_init=S,this.no_editor=!1}StartCkeditor(){c.import("ckeditor5/build/ckeditor.js").then((e=>{if(!e||!e.create)throw Error("Cannot instance the ckeditor");e.create(this._container.nativeElement,this.options).then((e=>{let t;this._enabled=!0,this._editor=e,this.no_editor=!1,this._cd.detectChanges(),e.model.document.on("change:data",(n=>{t=e.getData(),this.valueChange.emit(t)})),this._editorsubs=this._value.subscribe((n=>{t!==n&&e.setData(n)})),this.autofocus&&(e.editing.view.focus(),L||setTimeout((()=>{let e=this._el.nativeElement;this._service.scrollTo({target:e,inview:!0})}),100)),this.editorInitiated.emit(!0),S=!0,this._readonly&&(this._readonly=null,this.readonly=!0)})).catch((e=>{this.no_editor=!0,this.EndCkeditor(),this.editorInitiated.emit(!1),e&&n.RavenJs().then((t=>{t.captureException(e)}))}))})).catch((e=>{this.no_editor=!0,this.EndCkeditor(),this.editorInitiated.emit(!1)}))}EndCkeditor(){this._enabled=!1,this._editor&&(this._editor.destroy(),this._editor=null,this._editorsubs.unsubscribe())}TextAreaEdit(e){this.value=e.target.value||"",this.valueChange.emit(this.value)}ngOnInit(){let e=this._active.subscribe({next:e=>{e&&!this._enabled?setTimeout((()=>{n.reqAnimationFrame((()=>{this.StartCkeditor()}))})):this._enabled&&this.EndCkeditor()},error:()=>{},complete:()=>{e&&e.unsubscribe()}});this.editorInitiated.subscribe((()=>{this.editor_init=!0}))}ngOnDestroy(){this._active.complete(),this._value.complete(),this.EndCkeditor()}}A.ɵfac=function(e){return new(e||A)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.ChangeDetectorRef),n.ɵɵdirectiveInject(n.ScrollerService))},A.ɵcmp=n.ɵɵdefineComponent({type:A,selectors:[["ck-editor"]],viewQuery:function(e,t){if(1&e&&n.ɵɵviewQuery(T,7),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t._container=e.first)}},hostAttrs:[1,"progress-indicator-container"],inputs:{value:"value",active:"active",readonly:"readonly",autofocus:[0,"cursor-focus","autofocus"],options:"options"},outputs:{valueChange:"valueChange",editorInitiated:"editorInitiated"},standalone:!1,decls:4,vars:4,consts:[["textarea",""],[1,"ck-tools"],[1,"ck-textarea",3,"input","value"],["class","progress-indicator visible",4,"ngIf"],[1,"progress-indicator","visible"]],template:function(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelement(0,"div",1),n.ɵɵelementStart(1,"textarea",2,0),n.ɵɵlistener("input",(function(i){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.TextAreaEdit(i))})),n.ɵɵelementEnd(),n.ɵɵtemplate(3,I,2,0,"div",3)}2&e&&(n.ɵɵadvance(),n.ɵɵclassProp("no-ck-editor",t.no_editor),n.ɵɵproperty("value",t.value),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",!t.editor_init))},dependencies:[n.NgIf],styles:['.ck-toolbar .ckeditor-heading{font-size:18px;font-family:"Inter-Bold", Helvetica, Arial, sans-serif}\n',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}\n",".ck-editor__editable a{color:#136AE8;text-decoration:none;cursor:pointer}\n","ck-editor{display:block}\n"],encapsulation:2});class z{}z.ɵfac=function(e){return new(e||z)},z.ɵmod=n.ɵɵdefineNgModule({type:z}),z.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});class M{set src(e){this._src=e,!this._src&&this.fallback&&(this._src=this.fallback),this._src&&this._renderer.setAttribute(this._el.nativeElement,"src",this._src)}get src(){return this._src}constructor(e,t){this._el=e,this._renderer=t,this.onImageFailed=new n.EventEmitter}onError(e){if(n.isNode()||!e)return;let t=this._el.nativeElement;this.fallback&&t.src!=this.fallback?(t.src=this.fallback,t.style.display=""):t.style.display="none",this.onImageFailed.emit(!0)}ngOnInit(){if(n.isNode())return;this.onError=this.onError.bind(this),this._el.nativeElement.addEventListener("error",this.onError)}ngOnDestroy(){if(n.isNode())return;this._el.nativeElement.removeEventListener("error",this.onError)}}M.ɵfac=function(e){return new(e||M)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.Renderer2))},M.ɵdir=n.ɵɵdefineDirective({type:M,selectors:[["","on-img-error",""]],inputs:{fallback:[0,"on-img-error","fallback"],src:"src"},outputs:{onImageFailed:"image-failed"},standalone:!1});class V{}V.ɵfac=function(e){return new(e||V)},V.ɵmod=n.ɵɵdefineNgModule({type:V}),V.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule]});const N=["deferImg"];class O{set src(e){e?this._src=e:this.fallback&&(this._src=this.fallback),this._src&&this.deferImg&&(this._viewed||(!this._has_intersect||n.isNode())&&this._src&&this.deferImg)&&this._renderer.setAttribute(this.deferImg.nativeElement,"src",this._src)}get src(){return this._src}constructor(e,t){this._el=e,this._renderer=t,this._viewed=!1,this._has_intersect=!(n.isNode()||!window.IntersectionObserver)}ngOnInit(){this.onError=this.onError.bind(this),this.onLoad=this.onLoad.bind(this),n.AppData.getKey("server-render")&&(this._prepare_ui=!1)}ngAfterViewInit(){if(this._has_intersect&&this.deferImg){this._intersectionObserver=new IntersectionObserver((e=>{let t=!1;for(let i=0,s=e.length;i<s;i++){let s=e[i];if(n.isNullorUndefined(s.isIntersecting)&&this._isInViewport(s,!0)){t=!0;break}if(s.isIntersecting){t=!0;break}}t&&this._InitiateImageLoad()}),{threshold:.7}),this._renderer.setStyle(this.deferImg.nativeElement,"opacity",0);let e=this.deferImg.nativeElement.width,t=this.deferImg.nativeElement.height;if(window.getComputedStyle){let i=n.toNumber(window.getComputedStyle(this.deferImg.nativeElement).width),s=n.toNumber(window.getComputedStyle(this.deferImg.nativeElement).height);n.isNumber(i)&&n.isNumber(s)&&(e=i,t=s)}e&&this._renderer.setStyle(this.deferImg.nativeElement,"width",e+"px"),t&&this._renderer.setStyle(this.deferImg.nativeElement,"height",t+"px"),this._intersectionObserver&&"function"==typeof this._intersectionObserver.observe&&this._intersectionObserver.observe(this._el.nativeElement),this._isInViewport(this._el)&&this._InitiateImageLoad()}else if(this.src&&this.deferImg){let e=this.deferImg.nativeElement;n.isNode()?this._prepare_ui?(this._renderer.setStyle(e,"display","none"),this._renderer.setAttribute(e,"data-src",this.src)):(this._renderer.setAttribute(e,"src",this.src),this._renderer.setAttribute(e,"loading","lazy")):(this._renderer.listen(e,"error",this.onError),this._renderer.setAttribute(e,"src",this.src))}}ngOnDestroy(){this._intersectionObserver&&this._intersectionObserver.disconnect(),this._intersectionObserver=null}onError(e){if(n.isNode()||!e)return;let t=this.deferImg.nativeElement;this.fallback&&t.src!=this.fallback?(t.src=this.fallback,t.style.display=""):t.style.display="none"}onLoad(e){this._renderer.setStyle(this.deferImg.nativeElement,"display",""),this._renderer.addClass(this.deferImg.nativeElement,"defer-img-ok"),this._renderer.setStyle(this.deferImg.nativeElement,"opacity",""),this._renderer.addClass(this.deferImg.nativeElement,"ng-enter-element"),this._renderer.setStyle(this.deferImg.nativeElement,"width",""),this._renderer.setStyle(this.deferImg.nativeElement,"height","")}_isInViewport(e,t){var n=t?e.boundingClientRect:e.nativeElement.getBoundingClientRect(),i=n.height||n.bottom-n.top,s=n.width||n.right-n.left;return!(!i||!s)&&!(n.top+.4*n.height>window.innerHeight||n.bottom<0)}_InitiateImageLoad(){if(!this.src)return;if(this._viewed)return;let e=this.deferImg.nativeElement;this._renderer.listen(e,"error",this.onError),this._renderer.listen(e,"load",this.onLoad),this._viewed=!0,this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this._renderer.setAttribute(this.deferImg.nativeElement,"src",this.src)}}O.ɵfac=function(e){return new(e||O)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.Renderer2))},O.ɵdir=n.ɵɵdefineDirective({type:O,selectors:[["","defer-src",""]],contentQueries:function(e,t,i){if(1&e&&n.ɵɵcontentQuery(i,N,5,n.ElementRef),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.deferImg=e.first)}},inputs:{src:[0,"defer-src","src"],fallback:[0,"src-fallback","fallback"],_prepare_ui:[0,"ui-hydrate","_prepare_ui"]},standalone:!1});class R{}R.ɵfac=function(e){return new(e||R)},R.ɵmod=n.ɵɵdefineNgModule({type:R}),R.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule]});class j{constructor(){this.itemprop="",this.classes=[]}}j.ɵfac=function(e){return new(e||j)},j.ɵcmp=n.ɵɵdefineComponent({type:j,selectors:[["","img-placeholder",""]],inputs:{src:"src",itemprop:"itemprop",alt:"alt",classes:"classes"},standalone:!1,decls:3,vars:5,consts:[["deferImg",""],[3,"defer-src","ui-hydrate"],[3,"ngClass","alt"]],template:function(e,t){1&e&&(n.ɵɵelementStart(0,"div",1),n.ɵɵelement(1,"img",2,0),n.ɵɵelementEnd()),2&e&&(n.ɵɵproperty("defer-src",t.src)("ui-hydrate",!0),n.ɵɵadvance(),n.ɵɵproperty("ngClass",t.classes)("alt",t.alt),n.ɵɵattribute("itemprop",t.itemprop))},dependencies:[n.NgClass,O],encapsulation:2});class H{}H.ɵfac=function(e){return new(e||H)},H.ɵmod=n.ɵɵdefineNgModule({type:H}),H.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,R]});class F{set src(e){e?this._src=e:this.fallback&&(this._src=this.fallback)}get src(){return this._src}constructor(e,t){this._el=e,this._renderer=t,this.onImageFailed=new n.EventEmitter}ngOnInit(){n.isNode()?this._src&&(this.server_render?n.AppData.getKey("server-render")?this._renderer.setAttribute(this._el.nativeElement,"src",this._src):(this._renderer.setAttribute(this._el.nativeElement,"data-src",this._src),this.keep_space?this._renderer.setStyle(this._el.nativeElement,"opacity","0"):this._renderer.setStyle(this._el.nativeElement,"display","none")):(this._renderer.setAttribute(this._el.nativeElement,this.prepare_ui?"data-src":"src",this._src),this.prepare_ui&&(this.keep_space?this._renderer.setStyle(this._el.nativeElement,"opacity","0"):this._renderer.setStyle(this._el.nativeElement,"display","none")))):this._Preload()}_Preload(){if(this._el.nativeElement&&(this._src||this.fallback)){const e=this._src||this.fallback;let t=this._renderer.createElement("img");const n=this._renderer.listen(t,"load",(()=>{n(),i(),this._renderer.setAttribute(this._el.nativeElement,"src",e),this._renderer.setStyle(this._el.nativeElement,"display",""),this._renderer.setStyle(this._el.nativeElement,"opacity","1"),t=null})),i=this._renderer.listen(t,"error",(()=>{i(),n(),this.onImageFailed.emit(),t=null,this.keep_space||this._renderer.setStyle(this._el.nativeElement,"display","none")}));this._renderer.setAttribute(t,"src",e),this.keep_space?this._renderer.setStyle(this._el.nativeElement,"opacity","0"):this._renderer.setStyle(this._el.nativeElement,"display","none")}}}F.ɵfac=function(e){return new(e||F)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.Renderer2))},F.ɵdir=n.ɵɵdefineDirective({type:F,selectors:[["","preload-src",""]],inputs:{src:[0,"preload-src","src"],fallback:[0,"src-fallback","fallback"],prepare_ui:[0,"ui-hydrate","prepare_ui"],keep_space:[0,"keep-space","keep_space"],server_render:[0,"server-render","server_render"]},outputs:{onImageFailed:"imageFailed"},standalone:!1});class P{}P.ɵfac=function(e){return new(e||P)},P.ɵmod=n.ɵɵdefineNgModule({type:P}),P.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule]});const D=["dropdownList"],$=["button"],B=(e,t,n,i,s,r,a)=>({"ng-wh-error":e,"drp-b-darker":t,second:n,third:i,selected:s,opened:r,disabled:a});function U(e,t){if(1&e&&n.ɵɵelement(0,"span",11),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("cleanHTML",e.placeholder),n.ɵɵattribute("tabindex",e.tabindex)("aria-expanded",e.opened)}}function Q(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"li",12),n.ɵɵlistener("onClick",(function(){const t=n.ɵɵrestoreView(e).index,i=n.ɵɵnextContext();return n.ɵɵresetView(i.selectItem(t))}))("onTap",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.PreventClose(t))})),n.ɵɵelementEnd()}if(2&e){const e=t.$implicit,i=t.index,s=n.ɵɵnextContext();n.ɵɵclassProp("active",s.activeidx==i),n.ɵɵproperty("cleanHTML",e),n.ɵɵattribute("aria-selected",s.activeidx==i)("id",s.optionid+"-"+i)}}function W(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"li",13),n.ɵɵlistener("onTap",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.PreventClose(t))}))("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.clickExternalLink())})),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("cleanHTML",e.externalLinkOptionText)}}function G(e,t){1&e&&(n.ɵɵelementStart(0,"li",14)(1,"span"),n.ɵɵtext(2,'"Featured"'),n.ɵɵelementEnd(),n.ɵɵtext(3," means the products are ranked based on advertiser status."),n.ɵɵelementEnd())}function Y(e,t){1&e&&n.ɵɵelement(0,"span",15),2&e&&n.ɵɵattribute("aria-hidden",!0)}function K(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",16),n.ɵɵlistener("onTap",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.Clear(t))})),n.ɵɵelementEnd()}}const Z=(e,t,n,i,s)=>({"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,opened:s});function J(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",12),n.ɵɵlistener("onTap",(function(){return n.ɵɵrestoreView(e),n.ɵɵresetView(!0)})),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("cleanHTML",e.placeholder)}}function X(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",13),n.ɵɵlistener("onTap",(function(){return n.ɵɵrestoreView(e),n.ɵɵresetView(!0)})),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("cleanHTML",e.value)}}class ee{set value(e){this.noselection=!e,this._value=e,this.items&&(this.activeidx=this.items.indexOf(e)),this.usemap&&this.itemsMap&&this.itemsMap.length&&(!n.isNumber(this.activeidx)||this.activeidx<0)&&(this.activeidx=this.itemsMap.indexOf(this._value))}get value(){return this.itemsMap&&n.isNumber(this.activeidx)?(this.itemsMap[this.activeidx]||this._value||"").toString():this._value}get value_ui(){return this.itemsMap&&n.isNumber(this.activeidx)?this.usemap&&this.itemsMap&&this.itemsMap.length&&n.isNumber(this.activeidx)?(this.items[this.activeidx]||this._value||"").toString():(this.itemsMap[this.activeidx]||this._value||"").toString():this._value}controlList(e,t){this.disabled||(this.opened=void 0!==t?t:!this.opened,this.onTapped.emit(this),this.fixOverflow(),this._android_delay=!0,setTimeout((()=>{this._android_delay=!1}),100))}close(){this.opened=!1}open(){this.opened=!0}PreventClose(e){e&&e.srcEvent&&(e.srcEvent.cancelBubble=!0,e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation()),e&&e.stopPropagation&&e.stopPropagation()}selectItem(e=0){this._android_delay||(this._value=this.items[e],this.activeidx=e,this.valueChange.emit(this.value),this.noselection=!1,this.selected.emit({eventName:"select",value:this.value,index:e}),this.activedescendant=this.optionid+"-"+this.activeidx,this.close(),this._cd.detectChanges(),this.listbutton&&this.listbutton.nativeElement.focus())}Clear(e){this._value=null,this.activeidx=null,this.valueChange.emit(this.value),this.noselection=!0,this.selected.emit({eventName:"select",value:this.value,index:null}),this.activedescendant=null,this._cd.detectChanges(),this.listbutton&&this.listbutton.nativeElement.focus(),e.preventDefault(),e.stopPropagation()}trackByFn(e){return e}constructor(e){this._cd=e,this.tabindex=0,this.placeholder="Select...",this.items=[],this.darker=!1,this.invalid=!1,this.disabled=!1,this.bounds_check=!1,this.labelledby="",this.clearable=!1,this.hasExternalLinkOption=!1,this.externalLinkOptionText="Add New",this.usemap=!1,this.valueChange=new n.EventEmitter,this.selected=new n.EventEmitter,this.onTapped=new n.EventEmitter,this.onExternalLinkTap=new n.EventEmitter,this.noselection=!0,this.opened=!1,this.activeidx=null,this._android_delay=!1}ngOnInit(){this.optionid=n.uniqid("opt-"),this.value&&this.items.indexOf(this.value)>-1&&(this.activeidx=this.items.indexOf(this.value),this.activedescendant=this.optionid+"-"+this.activeidx)}fixOverflow(){let e=this.dropdownList&&this.dropdownList.nativeElement,t=e&&e.parentElement;n.reqAnimationFrame((()=>{try{let n=e.getBoundingClientRect();t.getBoundingClientRect().x+n.width>=window.innerWidth?e.classList.add("sticky-right"):e.classList.remove("sticky-right"),this.bounds_check&&n.y+n.height>window.innerHeight?e.classList.add("upwards"):e.classList.remove("upwards")}catch(e){throw e}}))}clickExternalLink(){this.onExternalLinkTap.emit(!0)}}ee.ɵfac=function(e){return new(e||ee)(n.ɵɵdirectiveInject(n.ChangeDetectorRef))},ee.ɵcmp=n.ɵɵdefineComponent({type:ee,selectors:[["ng-dropdown"]],viewQuery:function(e,t){if(1&e&&(n.ɵɵviewQuery(D,5,n.ElementRef),n.ɵɵviewQuery($,5,n.ElementRef)),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.dropdownList=e.first),n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.listbutton=e.first)}},inputs:{tabindex:"tabindex",placeholder:"placeholder",items:"items",itemsMap:"itemsMap",second:"second",third:"third",darker:[0,"dark-borders","darker"],invalid:"invalid",disabled:"disabled",bounds_check:[0,"bounds-check","bounds_check"],labelledby:"labelledby",clearable:"clearable",hasExternalLinkOption:"hasExternalLinkOption",externalLinkOptionText:"externalLinkOptionText",usemap:"usemap",value:"value"},outputs:{valueChange:"valueChange",selected:"selected",onTapped:"onTapped",onExternalLinkTap:"onExternalLinkTap"},standalone:!1,decls:11,vars:24,consts:[["button",""],["dropdownList",""],["zing-touch","","data-tap-bubbles","true",1,"dropdown",3,"onTap","onTapOutside","ngClass"],["role","button","aria-haspopup","listbox","class","dropdown-placeholder",3,"cleanHTML",4,"ngIf"],["role","button","aria-haspopup","listbox",1,"dropdown-selected",3,"ng-hidden","cleanHTML"],["role","listbox","tabindex","0",1,"dropdown-list","ng-enter-element",3,"ng-hidden"],["class","dropdown-item","role","option","zing-touch","",3,"active","cleanHTML","onClick","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["class","dropdown-item external-link","role","option","zing-touch","",3,"cleanHTML","onTap","onClick",4,"ngIf"],["class","drp-featured",4,"ngIf"],["tabindex","-1","class","dropdown-arrow  bf-icon-down-open",4,"ngIf"],["zing-touch","","tabindex","0","aria-role","button","aria-label","Clear Selection","class","dropdown-close bf-icon-cross",3,"onTap",4,"ngIf"],["role","button","aria-haspopup","listbox",1,"dropdown-placeholder",3,"cleanHTML"],["role","option","zing-touch","",1,"dropdown-item",3,"onClick","onTap","cleanHTML"],["role","option","zing-touch","",1,"dropdown-item","external-link",3,"onTap","onClick","cleanHTML"],[1,"drp-featured"],["tabindex","-1",1,"dropdown-arrow","bf-icon-down-open"],["zing-touch","","tabindex","0","aria-role","button","aria-label","Clear Selection",1,"dropdown-close","bf-icon-cross",3,"onTap"]],template:function(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",2),n.ɵɵlistener("onTap",(function(i){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.controlList(i))}))("onTapOutside",(function(i){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.controlList(i,!1))})),n.ɵɵtemplate(1,U,1,3,"span",3),n.ɵɵelement(2,"span",4,0),n.ɵɵelementStart(4,"ul",5,1),n.ɵɵtemplate(6,Q,1,5,"li",6)(7,W,1,1,"li",7)(8,G,4,0,"li",8),n.ɵɵelementEnd(),n.ɵɵtemplate(9,Y,1,1,"span",9)(10,K,1,0,"span",10),n.ɵɵelementEnd()}2&e&&(n.ɵɵproperty("ngClass",n.ɵɵpureFunction7(16,B,t.invalid,t.darker,t.second,t.third,!t.noselection,t.opened,t.disabled)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.placeholder&&t.noselection),n.ɵɵadvance(),n.ɵɵproperty("ng-hidden",t.noselection)("cleanHTML",t.value_ui),n.ɵɵattribute("tabindex",t.noselection?t.tabindex:-1)("aria-hidden",t.noselection)("aria-expanded",t.opened),n.ɵɵadvance(2),n.ɵɵproperty("ng-hidden",!t.opened),n.ɵɵattribute("aria-labelledby",t.labelledby)("aria-activedescendant",t.activedescendant),n.ɵɵadvance(2),n.ɵɵproperty("ngForOf",t.items)("ngForTrackBy",t.trackByFn),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.hasExternalLinkOption),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.items.includes("Featured")),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!(t.disabled||t.clearable&&!t.noselection)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.disabled&&t.clearable&&!t.noselection))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,n.TouchGestures,n.ngHidden,n.ngCleanHTML],encapsulation:2});class te{}te.ɵfac=function(e){return new(e||te)},te.ɵmod=n.ɵɵdefineNgModule({type:te}),te.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});class ne extends ee{constructor(){super(...arguments),this.text="Some text to display",this.name="",this.label="",this.booleanValue=null}Check(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))}}ne.ɵfac=(()=>{let e;return function(t){return(e||(e=n.ɵɵgetInheritedFactory(ne)))(t||ne)}})(),ne.ɵcmp=n.ɵɵdefineComponent({type:ne,selectors:[["ng-dropdown-bool"]],inputs:{text:"text",name:"name",label:"label"},standalone:!1,features:[n.ɵɵInheritDefinitionFeature],decls:19,vars:17,consts:[["dropdownList",""],["zing-touch","",1,"dropdown",3,"onTap","onTapOutside","ngClass"],["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"],[1,"text"],[1,"boolean-items"],[1,"checkbox"],["type","checkbox","value","",3,"change","checked","name"],[1,"track","bf-icon-ok"],[1,"name"],[1,"dropdown-arrow","bf-icon-down-open"],["zing-touch","",1,"dropdown-placeholder",3,"onTap","cleanHTML"],["zing-touch","",1,"dropdown-selected",3,"onTap","cleanHTML"]],template:function(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",1),n.ɵɵlistener("onTap",(function(i){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.controlList(i))}))("onTapOutside",(function(i){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.controlList(i,!1))})),n.ɵɵtemplate(1,J,1,1,"span",2)(2,X,1,1,"span",3),n.ɵɵelementStart(3,"div",4,0)(5,"p",5),n.ɵɵtext(6),n.ɵɵelementEnd(),n.ɵɵelementStart(7,"div",6)(8,"label",7)(9,"input",8),n.ɵɵlistener("change",(function(){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.Check(!0))})),n.ɵɵelementEnd(),n.ɵɵelement(10,"i",9),n.ɵɵelementStart(11,"span",10),n.ɵɵtext(12,"Yes"),n.ɵɵelementEnd()(),n.ɵɵelementStart(13,"label",7)(14,"input",8),n.ɵɵlistener("change",(function(){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.Check(!1))})),n.ɵɵelementEnd(),n.ɵɵelement(15,"i",9),n.ɵɵelementStart(16,"span",10),n.ɵɵtext(17,"No"),n.ɵɵelementEnd()()()(),n.ɵɵelement(18,"i",11),n.ɵɵelementEnd()}2&e&&(n.ɵɵproperty("ngClass",n.ɵɵpureFunction5(11,Z,t.invalid,t.darker,t.second,!t.noselection,t.opened)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.placeholder&&t.noselection),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.noselection),n.ɵɵadvance(),n.ɵɵproperty("ng-hidden",!t.opened),n.ɵɵadvance(3),n.ɵɵtextInterpolate(t.text),n.ɵɵadvance(2),n.ɵɵattribute("aria-label",t.label),n.ɵɵadvance(),n.ɵɵproperty("checked",!0===t.booleanValue)("name",t.name),n.ɵɵadvance(4),n.ɵɵattribute("aria-label",t.label),n.ɵɵadvance(),n.ɵɵproperty("checked",!1===t.booleanValue)("name",t.name))},dependencies:[n.NgClass,n.NgIf,n.TouchGestures,n.ngHidden,n.ngCleanHTML],encapsulation:2});class ie{}function se(e,t){1&e&&(n.ɵɵelementStart(0,"h2",11),n.ɵɵtext(1,"Thank you"),n.ɵɵelementEnd()),2&e&&n.ɵɵproperty("focus-when",!0)}function re(e,t){1&e&&(n.ɵɵelementStart(0,"h2",11),n.ɵɵtext(1,"Please provide your email in order to receive answers"),n.ɵɵelementEnd()),2&e&&n.ɵɵproperty("focus-when",!0)}function ae(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",12)(1,"span",13),n.ɵɵtext(2),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"textarea",14),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.SetInput(t))})),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵclassProp("ques-ov-cred",e.input_chars_left<0),n.ɵɵadvance(),n.ɵɵtextInterpolate(e.input_chars_left),n.ɵɵadvance(),n.ɵɵproperty("value",e.input_value)("readonly",e.submiting)}}function oe(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",12)(1,"textarea",15),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.input_value_extra=t.target.value)})),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("value",e.input_value_extra)("readonly",e.submiting)}}function le(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",12)(1,"ng-dropdown",16),n.ɵɵlistener("selected",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.SetCategory(t))})),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("invalid",e.categoryerror)("items",e.categories)("second",!0)("value",e.category)}}function ce(e,t){if(1&e&&n.ɵɵelement(0,"div",17),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("innerHTML",e.ajax_message,n.ɵɵsanitizeHtml)("zing-url-container",!0)}}function de(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"button",18),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.Submit())})),n.ɵɵtext(1," Next "),n.ɵɵelement(2,"i",19),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵclassProp("loadactive",e.submiting),n.ɵɵproperty("disabled",e.submiting)}}function he(e,t){1&e&&(n.ɵɵelementStart(0,"div",20),n.ɵɵtext(1,"Your question has been submitted to our moderators for review. We will send you an email once your question has been approved."),n.ɵɵelementEnd())}function ue(e,t){1&e&&n.ɵɵelement(0,"br")}function pe(e,t){1&e&&n.ɵɵelement(0,"br")}function ge(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"input",33),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.one_time_code=t.target.value)})),n.ɵɵelementEnd()}}function _e(e,t){1&e&&n.ɵɵelement(0,"br")}function me(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",34),n.ɵɵtext(1," You have entered a wrong code. Enter the correct one or "),n.ɵɵelementStart(2,"span",35),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2);return n.ɵɵresetView(t.ResendCode())})),n.ɵɵtext(3,"click here"),n.ɵɵelementEnd(),n.ɵɵtext(4," to resend. "),n.ɵɵelementEnd()}}function fe(e,t){1&e&&n.ɵɵelement(0,"br")}function ve(e,t){if(1&e&&n.ɵɵelement(0,"div",17),2&e){const e=n.ɵɵnextContext(2);n.ɵɵproperty("innerHTML",e.ajax_message,n.ɵɵsanitizeHtml)("zing-url-container",!0)}}function be(e,t){1&e&&n.ɵɵelement(0,"br")}function xe(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",21)(1,"button",22),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.GuestSubmit())})),n.ɵɵelement(2,"span",23),n.ɵɵelementStart(3,"span",24),n.ɵɵtext(4,"Login to Wallethub"),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",25),n.ɵɵtext(6,"or"),n.ɵɵelementEnd(),n.ɵɵelementStart(7,"input",26),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return i.user_email=t.target.value,n.ɵɵresetView(i.show_ajax_error=!1)})),n.ɵɵelementEnd(),n.ɵɵtemplate(8,ue,1,0,"br",27)(9,pe,1,0,"br",27)(10,ge,1,0,"input",28)(11,_e,1,0,"br",27)(12,me,5,0,"div",29)(13,fe,1,0,"br",27)(14,ve,1,2,"div",7)(15,be,1,0,"br",27),n.ɵɵelementStart(16,"button",30),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.GuestSubmit())})),n.ɵɵtext(17," Submit "),n.ɵɵelement(18,"span",31),n.ɵɵelementEnd(),n.ɵɵelementStart(19,"button",32),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.Back())})),n.ɵɵtext(20,"Back"),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(7),n.ɵɵproperty("value",e.user_email),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_code_input),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_code_input),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_code_input),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_code_input_resend),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_code_input_resend),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!e.show_ajax_error),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_ajax_error&&!e.show_code_input_resend),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!e.show_ajax_error),n.ɵɵadvance(),n.ɵɵclassProp("loadactive",e.submiting),n.ɵɵproperty("disabled",e.submiting)}}ie.ɵfac=function(e){return new(e||ie)},ie.ɵmod=n.ɵɵdefineNgModule({type:ie}),ie.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});class we{constructor(e){this._location=e,this.data={},this.input_value="",this.input_value_extra="",this.input_chars_left=0,this._max_input=140,this.submiting=!1,this.submited=!1,this._is_lodgged=!1,this.needs_login=!1,this.user_email="",this.one_time_code="",this._referer="",this._email_reg=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,this.has_categories=!1,this.categoryerror=!1,this.toastinterval=3500,this.live_status="",this.question_count_status="",this.is_android=!1,c.import("css:/components/question-overlay.css").then((()=>{}),(()=>{}))}_CountWords(e){if(!e)return"";var t=e.replace(/(^\s*|\s*$)/gi,"");return(t=(t=t.replace(/[ ]{2,}/gi," ")).replace(/\n /,"")).split(" ").filter((function(e){return""!=e})).length}_CountChars(){let e=(this.input_value||"").trim().length;this.input_chars_left=this._max_input-e,this.question_count_status=`${e} character${1!=e?"s":""} entered`}_SendQues(){var e;this.show_ajax_error=!1,this.submiting=!0;let t=n.cleanInput(this.input_value);this.live_status="Posting question.";let i={action:"Answers.PostQuestion",question:t,url:this._referer};if(this.show_code_input){if(!0!==/^\d{6}$/.test(this.one_time_code))return this.ajax_message="Please enter the 6-digit numerical code that we sent to your email.",this.show_ajax_error=!0,void(this.submiting=!1);i.one_time_code=this.one_time_code}if(null===(e=n.getSignOn())||void 0===e?void 0:e.authUser)return this.ajax_message="Oops. You don't have permission to make edits on this account.",this.show_ajax_error=!0,void(this.submiting=!1);c.import("Encryption").then((e=>{let t={url:n.ajaxUrl(),data:Object.assign(i,this.data.addparams||{}),encryptprops:["email"],before:()=>{this.submiting=!0},after:()=>{this.submiting=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}};this.has_categories&&(t.data.category=this._catid),this.user_email&&(t.data.email=this.user_email),this._is_lodgged||this.user_email||(t.data.light=!0),this.input_value_extra&&(t.data.details=this.input_value_extra),n.isCordova()&&t.data.light&&(t.data.light="true"),e.send(t).then((e=>{if(this.live_status="",!e||e.error){if(e&&"message"in e){const t=e.message.match(/^Bad word `([^`]+)` detected.$/);t&&t.length&&(e.message=`Profanity is not allowed, including words such as "${t[1]}". Please adjust.`),"required one time code"==e.message?(e.message="Please enter the one-time code we have sent to your email.",this.show_code_input=!0):e.message.startsWith("You have entered a wrong code.")&&(this.show_code_input=!0,this.show_code_input_resend=!0,e.message=""),n.isCordova()&&"not logged in"==e.message?(n.Events.emit("$native:api-no-session",{type:"question-submit-login",redirect:e.redirect}),this.ajax_message=null):this.ajax_message=e.message}else this.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>';this.show_ajax_error=!0}else{if("redirect"in e)return this.submiting=!0,void(n.isCordova()?n.Events.emit("$native:api-no-session",{type:"question-submit-login",redirect:e.redirect}):top.location.href=e.redirect);this.submited=!0}}),(e=>{this.live_status="",this.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',this.show_ajax_error=!0,n.RavenRequestFail(e,"Failed to submit a question from ng2 QnA component")}))}),(e=>{this.live_status="",this.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',this.show_ajax_error=!0,n.RavenJs().then((t=>{t.captureException(e)}),(()=>{}))}))}SetCategory(e){this.category=e.value,this._catid=this._catindex[e.index],this.categoryerror=!1}Submit(){if(this.show_error||this.submiting)return;this.show_ajax_error=!1,this._CountWords(this.input_value)<3?(this.show_error=!0,this.error_message="Question must have at least 3 words."):this.input_chars_left<0?(this.error_message=`Question cannot have more then ${this._max_input} chars.`,this.show_error=!0):this.has_categories&&!this.category?(this.show_error=!0,this.error_message="Please select a category."):this._is_lodgged?this._SendQues():this.needs_login=!0}OnErrorToastHidden(){this.show_error&&(this.show_error=!1)}ResendCode(){this.show_code_input=!1,this.show_code_input_resend=!1,this.one_time_code="",this._SendQues()}GuestSubmit(){this.user_email&&!this._email_reg.test(this.user_email)?(this.show_ajax_error=!0,this.ajax_message="Please enter a correct Email Address."):this._SendQues()}SetInput(e){this.show_error=!1,this.show_ajax_error=!1,this.input_value=e.target.value,this._CountChars()}Back(){this.needs_login=!1,this.show_ajax_error=!1,this.ajax_message=""}ngOnInit(){this.input_value=this.data.input||"",this.data.referer?this._referer=this.data.referer:(this._referer=n.baseUrl()+this._location.path(),this._referer.lastIndexOf("/")!==this._referer.length-1&&(this._referer+="/")),this.data.categories&&this.data.categories.length>0&&(this.has_categories=!0,this.categories=[],this._catindex=[],this.data.categories.forEach((e=>{this.categories.push(e.name),this._catindex.push(e.id)})),1==this.categories.length&&(this._catid=this._catindex[0],this.category=this.categories[0])),this._CountChars(),n.isNode()||(n.isLoggedIn()&&(this._is_lodgged=!0),this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}}we.ɵfac=function(e){return new(e||we)(n.ɵɵdirectiveInject(n.Location))},we.ɵcmp=n.ɵɵdefineComponent({type:we,selectors:[["question-overlay"]],standalone:!1,decls:16,vars:18,consts:[["tabindex","0","ng-focus","",1,"ques-ov","regular-font",3,"ng-hidden","focus-when"],["class","ques-ov regular-font ng-enter-element","tabindex","0","ng-focus","",3,"focus-when",4,"ngIf"],[3,"ng-aria-live"],["class","ques-ov-txt-box ng-enter-element",4,"ngIf"],["hidden","true","id","ques-ov-count-status"],[3,"ng-hidden"],[3,"onhidden","message","show","close-on-change","timer"],["class","ques-ov-error-notice ng-enter-element slide","role","alert","tabindex","-1","zing-touch","",3,"innerHTML","zing-url-container",4,"ngIf"],["class","btn fixed-w-i with-loader no-disabled ng-enter-element","zing-touch","","aria-label","Next",3,"disabled","loadactive","onClick",4,"ngIf"],["class","ng-enter-element ques-ov-end-msg",4,"ngIf"],["class","ng-enter-element ques-ov-login",4,"ngIf"],["tabindex","0","ng-focus","",1,"ques-ov","regular-font","ng-enter-element",3,"focus-when"],[1,"ques-ov-txt-box","ng-enter-element"],["aria-hidden","true","tabindex","-1",1,"ques-ov-count"],["placeholder","Ask a question (140 character limit)","ng-autosize","","aria-describedby","ques-ov-count-status",1,"ques-ov-txt","textarea",3,"input","value","readonly"],["placeholder","Additional details (optional)","ng-autosize","",1,"ques-ov-txt","ques-ov-txt-liner","textarea",3,"input","value","readonly"],["placeholder","Select Category...",1,"ques-ov-drp",3,"selected","invalid","items","second","value"],["role","alert","tabindex","-1","zing-touch","",1,"ques-ov-error-notice","ng-enter-element","slide",3,"innerHTML","zing-url-container"],["zing-touch","","aria-label","Next",1,"btn","fixed-w-i","with-loader","no-disabled","ng-enter-element",3,"onClick","disabled"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"ng-enter-element","ques-ov-end-msg"],[1,"ng-enter-element","ques-ov-login"],["aria-label","Login","zing-touch","",1,"btn","aqua","full","ques-ov-lg-bt","semi-bold-font",3,"onTap"],[1,"bf-icon-wlogo"],[1,"ques-ov-lg-txt"],[1,"ques-ov-or","center"],["aria-label","Email","type","email","placeholder","Email Address",1,"textfield","full",3,"input","value"],[4,"ngIf"],["type","text","inputmode","numeric","pattern","^\\d{6}$","aria-label","otp","class","textfield full","placeholder","one-time code",3,"input",4,"ngIf"],["class","ques-ov-error-notice ng-enter-element slide","role","alert","tabindex","-1",4,"ngIf"],["zing-touch","",1,"btn","fixed-w-i","with-loader","no-disabled",3,"onTap","disabled"],[1,"btn-loader"],["zing-touch","",1,"btn","white-blue","ques-ov-bk-bt",3,"onClick"],["type","text","inputmode","numeric","pattern","^\\d{6}$","aria-label","otp","placeholder","one-time code",1,"textfield","full",3,"input"],["role","alert","tabindex","-1",1,"ques-ov-error-notice","ng-enter-element","slide"],["zing-touch","",1,"link",3,"onTap"]],template:function(e,t){1&e&&(n.ɵɵelementStart(0,"h2",0),n.ɵɵtext(1,"Ask a Question"),n.ɵɵelementEnd(),n.ɵɵtemplate(2,se,2,1,"h2",1)(3,re,2,1,"h2",1),n.ɵɵelement(4,"div",2),n.ɵɵtemplate(5,ae,4,5,"div",3),n.ɵɵelementStart(6,"div",4),n.ɵɵtext(7),n.ɵɵelementEnd(),n.ɵɵtemplate(8,oe,2,2,"div",3)(9,le,2,4,"div",3),n.ɵɵelementStart(10,"div",5)(11,"error-toast",6),n.ɵɵlistener("onhidden",(function(){return t.OnErrorToastHidden()})),n.ɵɵelementEnd()(),n.ɵɵtemplate(12,ce,1,2,"div",7)(13,de,3,3,"button",8)(14,he,2,0,"div",9)(15,xe,21,12,"div",10)),2&e&&(n.ɵɵproperty("ng-hidden",t.submited||t.needs_login)("focus-when",!(t.submited||t.needs_login)),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",t.submited),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.needs_login&&!t.submited),n.ɵɵadvance(),n.ɵɵproperty("ng-aria-live",t.live_status),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.submited&&!t.needs_login),n.ɵɵadvance(2),n.ɵɵtextInterpolate(t.question_count_status),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.submited&&!t.needs_login),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.submited&&!t.needs_login&&t.has_categories&&t.categories.length>1),n.ɵɵadvance(),n.ɵɵproperty("ng-hidden",t.submited||t.needs_login),n.ɵɵadvance(),n.ɵɵproperty("message",t.error_message)("show",t.show_error)("close-on-change",!0)("timer",t.toastinterval),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.needs_login&&t.show_ajax_error),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.submited&&!t.needs_login),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.submited),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.needs_login&&!t.submited))},dependencies:[n.NgIf,n.TouchGestures,n.ngHidden,n.ngAriaLive,k,n.ErrorToastComponent,ee,n.ngFocus],encapsulation:2});class ye{}ye.ɵfac=function(e){return new(e||ye)},ye.ɵmod=n.ɵɵdefineNgModule({type:ye}),ye.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule,q,n.ErrorsModule,te,n.NgFocusModule]});const Ce=["content"];function Ee(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",4),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.Collapse())})),n.ɵɵtext(1,"show less"),n.ɵɵelementEnd()}}function ke(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",5),n.ɵɵlistener("onExpand",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.Expanded(t))})),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("ng-truncate",e.htmlcontent)("breakpoint",e.breakpoint)("breakwords",e.breakwords)}}class qe{set content(e){if(this._content=e||"",this._initiated){const e=()=>{this._expandct?this._ShowFullCT():this._Truncate()};n.isNode()?e():setTimeout(e)}}set expandContent(e){this._expandContent.next(e),this._expandct=e}get expLabel(){return this.expand_bt&&""!==this.expand_bt?this.expand_bt:"show more"}get copLabel(){return this.collapse_bt&&""!==this.collapse_bt?this.collapse_bt:"show less"}constructor(e,t,i){this._el=e,this._render=t,this._scroller=i,this._cleanups=[],this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},this.staticbreak=null,this._content="",this.sanitize=!0,this.sanitizeCFG={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target"]},this.use_shave_break=!1,this.expand_bt="show more",this.collapse_bt="show less",this.hellip="...",this.auto_truncate=!0,this.run_on_node=!1,this._expanded=!1,this._initiated=!1,this.istruncated=new n.BehaviorSubject(null),this._expandContent=new n.Subject,this._expandct=!1,this.auto_focus=!1,this.skip_shortcodes=!1,this.onExpand=new n.EventEmitter,this.hasExpandButton=new n.EventEmitter,this.onContent=new n.EventEmitter}ngOnInit(){this.hasExpandButton.emit(!1),this._document=window.document,!this._expandct&&this._content||n.isNode()?this._Truncate():this._ShowFullCT(),this._initiated=!0}_isElemVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}_MoveFocus(){if(!n.isNode()){const e=this._el.nativeElement;this._el.nativeElement.querySelector(".js-shave-char-less");let t=0;const i=e=>n.__awaiter(this,void 0,void 0,(function*(){e.setAttribute("tabindex","0"),e.focus(),requestAnimationFrame((()=>{e.focus()})),yield n.yieldToMain(),setTimeout((()=>{this._scroller.scrollTo({position:t,timing:0})}),0)}));if((()=>{this._scroller.onScroll.pipe(n.take(1)).subscribe((e=>{t=e}))})(),this.auto_focus)for(let t=0,n=e.childNodes.length;t<n;t++){const n=e.childNodes[t];if(n.focus){i(n).then((()=>{}));break}}}}_WordCount(e){let t=n.trim((1==e.nodeType?e.textContent:e.wholeText)+"");return""==t?0:t.split(/\s+/g).length}_CutHTML(e,t){let n=e.parentNode,i=null;if(!n)return;let s=[];for(let t=0,r=n.childNodes.length;t<r;t++){let r=n.childNodes[t];r==e?i=t:null!==i&&t>i&&(!r.tagName||"td"!==r.tagName.toLowerCase())&&s.push(r)}s.forEach((e=>{e.parentNode.removeChild(e)})),n!=t&&n&&this._CutHTML(n,t)}_AddExpandBT(e){let t=e.parentNode;t.removeChild(e),t.innerHTML=n.trim(t.innerHTML);let i=t.tagName.toLowerCase();if(n.isAny(i,["tr","tbody","thead","tfoot"])){if("table"!=i){let e=t.parentNode;for(i=e.tagName.toLowerCase();"table"!=i&&i;)e=e.parentNode,i=e&&e.tagName?e.tagName.toLowerCase():null;"table"==i&&(t=e)}t.insertAdjacentHTML("afterend",` <span aria-label="${this.expLabel}" class="js-shave-char cursor-pointer" role="button" tabindex="0">${this.expand_bt}</span>`),t.insertAdjacentText?t.insertAdjacentText("afterend",this.hellip):t.insertAdjacentHTML("afterend",this.hellip)}else if(t.insertAdjacentText?t.insertAdjacentText("beforeend",this.hellip):t.insertAdjacentHTML("beforeend",this.hellip),"a"==i)t.insertAdjacentHTML("afterend",` <span aria-label="${this.expLabel}" class="js-shave-char cursor-pointer" role="button" tabindex="0">${this.expand_bt}</span>`);else{for(t.parentNode&&"a"==t.parentNode.tagName.toLowerCase()&&(i="a",t=t.parentNode);"a"==i&&t.parentNode;)t=t.parentNode,i=t.tagName.toLowerCase();t.insertAdjacentHTML("beforeend",` <span aria-label="${this.expLabel}" class="js-shave-char cursor-pointer" role="button" tabindex="0">${this.expand_bt}</span>`)}n.reqAnimationFrame((()=>{this.hasExpandButton.emit(!0)})),this.istruncated.next(!0),n.isNode()&&this.onContent.emit("collapsed")}_Shave(e,t){if(this._WordCount(e)<=t)return;let n=void 0===e.textContent?"innerText":"textContent",i=e[n].split(" ");if(i.length<2)return;let s,r=i.length-1,a=0,o=!1;for(;a<r;){s=a+r+1>>1;let l=i.slice(0,s).join(" ");o=l.lastIndexOf(".")>-1,e[n]=l,e.insertAdjacentHTML("beforeend",`<span class="js-shave-char cursor-pointer" role="button" tabindex="0" aria-label="${this.expLabel}">${o?"":"."}..${this.expand_bt}</span>`),this._WordCount(e)>t?r=s-1:a=s}}_TruncateWithLimit(e,t){const i=[];if(this.skip_shortcodes){const t=/\[[^\]]*\]/g,n=/\[url\s([^[\]]*)\]([^\[]*)\[\/url\]/g;let s=0;e=(e=e.replace(n,(e=>{const t=`|SHORTCODE_${s}|`;return i.push(e),s++,t}))).replace(t,(e=>{const t=`|SHORTCODE_${s}|`;return i.push(e),s++,t}))}let s=this._document.createElement("div");s.innerHTML=e;let r=0,a=!1,o=e=>{for(let i=0,s=e.childNodes.length;i<s;i++){let s=e.childNodes[i];if(1==s.nodeType){if(s.classList.contains("cc-list-buttons")||s.classList.contains("summary-picks-grid")||s.classList.contains("cc-trust")||s.classList.contains("wh-drawer")||s.classList.contains("wh-pro-tip")||s.classList.contains("bk-trust")||s.classList.contains("ci-trust")||s.classList.contains("edu-qna")||n.isAny(s.tagName.toLowerCase(),["blockquote","br"]))continue;if("a"==s.tagName.toLowerCase()&&s.hasAttribute("href"))continue;if(o(s))return!0}else if(3==s.nodeType){let e=s[void 0===s.textContent?"innerText":"textContent"],i=n.trim(e).split(/\s+/g);if(r+=i.length,/^\s/.test(e)&&(i[0]=" "+i[0]),/\s$/.test(e)&&(i[i.length-1]+=" "),r>t){const e=r-t;if(s.nodeValue=i.slice(0,i.length-e).join(" "),s.parentNode){const t=this._document.createElement("div"),n=this._document.createElement("span");n.setAttribute("data-chop","auto"),t.appendChild(n);const r=this._document.createElement("div");r.innerHTML=i.slice(i.length-e).join(" "),s!==s.parentNode.lastChild?s.parentNode.insertBefore(n,s.nextElementSibling):(s.parentNode.appendChild(n),s.parentNode.insertAdjacentHTML("beforeend",r.innerHTML))}return a=!0,!0}}}};if(o(s),a){let e=s.querySelector('span[data-chop="auto"]');e&&s.lastChild!==e&&(this._CutHTML(e,s),e.parentNode==s&&(s.innerHTML=s.innerHTML.split(e.outerHTML)[0]+e.outerHTML,e=s.querySelector('span[data-chop="auto"]')),this._AddExpandBT(e))}let l=s.innerHTML;return i.length&&i.forEach(((e,t)=>{l=l.replace(`|SHORTCODE_${t}|`,e)})),l}_Truncate(){this.istruncated.next(!1),this.hasExpandButton.emit(!1),n.reqAnimationFrame((()=>{const e=this.istruncated.getValue();this.onContent.emit(e?"collapsed":"expanded")}));let e=this._content;if(!this._document)return;if(this.staticbreak&&!this._expandct){e=e.replace(/(?:\\r\\n|\\r|\\n)/g,""),e=n.trim(e),e=e.replace("[chop]",'<span data-chop="desktop"></span>').replace("[mobilechop]","");let t=this._document.createElement("div");t.innerHTML=e;let i=t.querySelector('span[data-chop="desktop"]');return i?t.lastChild==i?i.parentNode.removeChild(i):(this._CutHTML(i,t),i.parentNode==t&&(t.innerHTML=t.innerHTML.split(i.outerHTML)[0]+i.outerHTML,i=t.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(i),e=t.innerHTML):this._WordCount(t)>this.staticbreak&&(e=this._TruncateWithLimit(e,this.staticbreak)),this.sanitize&&(e=n.Sanitize(e,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",e)}if(e=e.replace("[chop]","\x3c!--chop--\x3e").replace("[mobilechop]","\x3c!--mobilechop--\x3e"),e=e.replace('<span data-chop="desktop"></span>',"\x3c!--chop--\x3e").replace('<span data-chop="mobile"></span>',"\x3c!--mobilechop--\x3e"),e=e.replace(/(?:\\r\\n|\\r|\\n)/g,""),e=n.trim(e),n.isNode()&&!this.run_on_node)return this.sanitize&&(e=n.Sanitize(e,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);let t=1282;n.isNode()||(t=window.innerWidth||this._document.body.clientWidth),t<this.breakpoint&&e.indexOf("\x3c!--mobilechop--\x3e")<0&&(e=e.replace(/<!--(auto)?(mobile)?chop-->/g,""));let i=!1,s=!1;t>=this.breakpoint?e.indexOf("\x3c!--chop--\x3e")>0&&(i=!0):e.indexOf("\x3c!--chop--\x3e")>0&&e.indexOf("\x3c!--mobilechop--\x3e")<0?i=!0:e.indexOf("\x3c!--mobilechop--\x3e")>0&&(i=s=!0),i||(e=e.replace("\x3c!--chop--\x3e","").replace("\x3c!--mobilechop--\x3e","")),e=t>this.breakpoint?e.replace(/(<!--chop-->)\s*(<!--mobilechop-->)/,"$2$1"):e.replace(/(<!--mobilechop-->)\s*(<!--chop-->)/,"$2$1"),e=e.replace("\x3c!--chop--\x3e",'<span data-chop="desktop"></span>'),e=e.replace("\x3c!--mobilechop--\x3e",'<span data-chop="mobile"></span>');let r=this._document.createElement("div");r.innerHTML=e;let a=r.querySelector('span[data-chop="desktop"]'),o=r.querySelector('span[data-chop="mobile"]');if(!a&&!o&&!this.auto_truncate)return e=n.Sanitize(e,this.sanitizeCFG),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);let l=!1,c=!!this.breakwords;if(r.lastChild==a||r.lastChild==o)c=!1,a&&r.lastChild==a&&(a.parentNode.removeChild(a),a=null,o&&r.lastChild==o&&(o.parentNode.removeChild(o),o=null)),o&&r.lastChild==o&&(o.parentNode.removeChild(o),o=null,a&&r.lastChild==a&&(a.parentNode.removeChild(a),a=null));else{if(a&&a.parentNode.lastChild==a){let e=a.parentNode,t=!0;for(;e&&e!==r;){if(e.parentNode.lastChild!=e){t=!1;break}e=e.parentNode}t&&(c=!1,a.parentNode.removeChild(a),a=null)}if(o&&o.parentNode.lastChild==o){let e=o.parentNode,t=!0;for(;e&&e!==r;){if(e.parentNode.lastChild!=e){t=!1;break}e=e.parentNode}t&&(c=!1,o.parentNode.removeChild(o),o=null)}}if(a&&(t>this.breakpoint||!s))this._CutHTML(a,r),a.parentNode==r&&(r.innerHTML=r.innerHTML.split(a.outerHTML)[0]+a.outerHTML,a=r.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(a);else if(s&&o&&t<this.breakpoint)this._CutHTML(o,r),o.parentNode==r&&(r.innerHTML=r.innerHTML.split(o.outerHTML)[0]+o.outerHTML,o=r.querySelector('span[data-chop="mobile"]')),this._AddExpandBT(o);else if(c){let i;if(n.objectForEach(this.breakwords,((e,s)=>{if(t<n.toNumber(s))return i=e,!1})),i)if(this.use_shave_break)this._Shave(r,i),l=!0;else if(this._WordCount(r)>i){const t=this._TruncateWithLimit(e,i);return void this._render.setProperty(this._el.nativeElement,"innerHTML",t)}}let d=r.innerHTML;!l&&this.sanitize&&(d=n.Sanitize(r.innerHTML,this.sanitizeCFG)),this._render.setProperty(this._el.nativeElement,"innerHTML",d)}_ShowFullCT(){let e=this._content||"";this.sanitize&&(e=n.Sanitize(e,this.sanitizeCFG)),this.collapse_bt&&(e+=`<br class="js-shave-br" /><span class="js-shave-char cursor-pointer js-shave-char-less" role="button" tabindex="0">${this.collapse_bt}</span>`),e=e.replace("[chop]","").replace("[mobilechop]",""),this._render.setProperty(this._el.nativeElement,"innerHTML",e),this._MoveFocus(),n.reqAnimationFrame((()=>{this.onContent.emit("expanded")}))}Expand(e){if(n.isNode())return;let t=e.target;const i=()=>{this.onExpand.emit(this._expanded),n.Events.emit("$shortcodes:set")};t&&t.classList&&t.classList.contains("js-shave-char")&&(this._expanded=!this._expanded,this._expanded?(this._ShowFullCT(),i()):(this._expandct=!1,this._Truncate(),i()))}ngAfterViewInit(){n.isNode()||(this._windowobs=p(window,"resize"),this._windowobs.subscribe((()=>{!this._content||this._expanded||this._expandct||this._Truncate()})),this._expandContent.subscribe((e=>{this._content&&(this._expanded=!e,this.Expand({target:{classList:{contains:()=>!0}}}))})),this._cleanups.push(this._render.listen(this._el.nativeElement,"click",(e=>{this.Expand(e)}))))}ngOnDestroy(){this._windowobs&&(this._windowobs=null),this._windowsubs&&this._windowsubs.unsubscribe(),this.istruncated.complete(),this._cleanups.forEach((e=>{e()})),this._document=null}}qe.ɵfac=function(e){return new(e||qe)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.Renderer2),n.ɵɵdirectiveInject(n.ScrollerService))},qe.ɵdir=n.ɵɵdefineDirective({type:qe,selectors:[["","ng-truncate",""]],inputs:{breakpoint:"breakpoint",breakwords:"breakwords",staticbreak:[0,"breakwords-static","staticbreak"],content:[0,"ng-truncate","content"],sanitize:"sanitize",sanitizeCFG:[0,"sanitize-cfg","sanitizeCFG"],use_shave_break:[0,"use-shave","use_shave_break"],expand_bt:[0,"expand-button","expand_bt"],collapse_bt:[0,"collapse-button","collapse_bt"],hellip:"hellip",auto_truncate:[0,"auto-trim","auto_truncate"],run_on_node:[0,"run-on-node","run_on_node"],expandContent:[0,"expand-content","expandContent"],auto_focus:[0,"auto-focus","auto_focus"]},outputs:{onExpand:"onExpand",hasExpandButton:"hasExpandButton",onContent:"onContent"},standalone:!1});class Te{constructor(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="",this.onExpand=new n.EventEmitter}Expanded(e){if(e&&(this.hide_org_content=!1,"permanent"==this.expand_mode&&(this.perma_expand=!0)),this.onExpand.emit(e),this._cd.detectChanges(),this.contentBox&&this.contentBox.nativeElement){const e=this.contentBox.nativeElement;for(let t=0,n=e.childNodes.length;t<n;t++){const n=e.childNodes[t];if(n.focus){n.setAttribute("tabindex","0"),n.focus(),setTimeout((()=>{n.focus()}));break}}}}Collapse(){this.hide_org_content=!0,this._cd.detectChanges()}ngOnInit(){this.hide_org_content=!n.isNode(),n.isNode()?(this.hide_org_content=!1,this.perma_expand=!0):this._observer=new MutationObserver((e=>{this.htmlcontent=this.contentBox.nativeElement.innerHTML,n.reqAnimationFrame((()=>{this._cd.detectChanges()}))}))}ngAfterViewInit(){n.isNode()||(this.htmlcontent=this.contentBox.nativeElement.innerHTML,n.reqAnimationFrame((()=>{this._cd.detectChanges()})),this._observer.observe(this.contentBox.nativeElement,{attributes:!1,childList:!0,characterData:!0}))}ngOnDestroy(){this._observer.disconnect()}}Te.ɵfac=function(e){return new(e||Te)(n.ɵɵdirectiveInject(n.ChangeDetectorRef),n.ɵɵdirectiveInject(n.Renderer2))},Te.ɵcmp=n.ɵɵdefineComponent({type:Te,selectors:[["ng-truncate"]],viewQuery:function(e,t){if(1&e&&n.ɵɵviewQuery(Ce,5),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.contentBox=e.first)}},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",expand_mode:[0,"expand","expand_mode"]},outputs:{onExpand:"onExpand"},standalone:!1,ngContentSelectors:["*"],decls:5,vars:3,consts:[["content",""],[3,"ng-hidden"],["class","js-shave-char cursor-pointer js-shave-char-expanded","zing-touch","","role","button","tabindex","0",3,"onClick",4,"ngIf"],[3,"ng-truncate","breakpoint","breakwords","onExpand",4,"ngIf"],["zing-touch","","role","button","tabindex","0",1,"js-shave-char","cursor-pointer","js-shave-char-expanded",3,"onClick"],[3,"onExpand","ng-truncate","breakpoint","breakwords"]],template:function(e,t){1&e&&(n.ɵɵprojectionDef(),n.ɵɵelementStart(0,"div",1,0),n.ɵɵprojection(2),n.ɵɵelementEnd(),n.ɵɵtemplate(3,Ee,2,0,"span",2)(4,ke,1,3,"div",3)),2&e&&(n.ɵɵproperty("ng-hidden",t.hide_org_content),n.ɵɵadvance(3),n.ɵɵproperty("ngIf",!t.hide_org_content&&!t.perma_expand),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.hide_org_content))},dependencies:[n.NgIf,n.TouchGestures,n.ngHidden,qe],encapsulation:2,changeDetection:0});class Ie{}Ie.ɵfac=function(e){return new(e||Ie)},Ie.ɵmod=n.ɵɵdefineNgModule({type:Ie}),Ie.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});const Se=["txtElement"],Le=["quesOverlay"],Ae=["ques_answer"],ze=e=>({"ng-enter-element":e}),Me=(e,t)=>({"light-font qnah-1":e,"qnah-1 qnah-3 extra-bold-font":t}),Ve=(e,t,n)=>({"accordion-open":e,"has-accordion":t,"accordion-closed":n}),Ne=()=>({attribute:"itemprop",value:"upvoteCount"}),Oe=e=>[e],Re=()=>({attribute:"itemprop",value:"name"}),je=(e,t)=>({"qna-h-collapse":e,"accordion-closed":t}),He=e=>({"qna-collapsed":e}),Fe=e=>({"accordion-open":e}),Pe=()=>({attribute:"itemprop",value:"text"}),De=()=>({attribute:"itemprop",value:"downvoteCount"});function $e(e,t){if(1&e&&(n.ɵɵelementStart(0,"span",24),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵtextInterpolate1("(",e.schq_count,")")}}function Be(e,t){if(1&e&&(n.ɵɵelementStart(0,"h2",21),n.ɵɵelement(1,"span",22),n.ɵɵtemplate(2,$e,2,1,"span",23),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("ng-context",e.section_title),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.schq_count)}}function Ue(e,t){if(1&e&&n.ɵɵelement(0,"h2",25),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("ngClass",n.ɵɵpureFunction2(2,Me,0==e.layout_type,2==e.layout_type))("ng-context",e.section_title)}}function Qe(e,t){if(1&e&&(n.ɵɵelementStart(0,"p",26)(1,"span"),n.ɵɵtext(2),n.ɵɵelementEnd(),n.ɵɵtext(3,"For more general questions, visit our "),n.ɵɵelementStart(4,"a",27),n.ɵɵtext(5,"Answers section."),n.ɵɵelementEnd()()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(2),n.ɵɵtextInterpolate1("Get answers to your questions about ",e.product_name," below. "),n.ɵɵadvance(2),n.ɵɵproperty("href",e.answers_url_page,n.ɵɵsanitizeUrl)("zing-url",!0)}}function We(e,t){if(1&e&&n.ɵɵelement(0,"p",28),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("zing-url-container",!0)("cleanHTML",e.intro_content)}}function Ge(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"p",29),n.ɵɵlistener("onExpand",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.introExpanded())})),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("zing-url-container",!0)("ng-truncate",e.intro_content)("breakwords",e.truncateBreakwords)("breakpoint",480)}}function Ye(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",40),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2);return n.ɵɵresetView(t.QClear())})),n.ɵɵelementEnd()}}function Ke(e,t){1&e&&(n.ɵɵelementStart(0,"span"),n.ɵɵtext(1,"Don't see what you're looking for?"),n.ɵɵelementEnd())}function Ze(e,t){1&e&&(n.ɵɵelementStart(0,"div",41),n.ɵɵtext(1,"MATCHING RESULTS"),n.ɵɵelementEnd())}function Je(e,t){1&e&&(n.ɵɵelementStart(0,"div",41),n.ɵɵtext(1,"NO MATCHING RESULTS"),n.ɵɵelementEnd())}function Xe(e,t){1&e&&(n.ɵɵelementStart(0,"div",41),n.ɵɵtext(1,"Searching for answers..."),n.ɵɵelementEnd())}function et(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",30)(1,"div",31)(2,"textarea",32),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.SearchInput(t))})),n.ɵɵelementEnd(),n.ɵɵtemplate(3,Ye,1,0,"span",33),n.ɵɵelementStart(4,"button",34),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.QSearch())})),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",35),n.ɵɵtemplate(6,Ke,2,0,"span",36),n.ɵɵelementStart(7,"button",37),n.ɵɵlistener("onClick",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.AskQuestion(t))})),n.ɵɵtext(8,"Ask Your Question"),n.ɵɵelementEnd()(),n.ɵɵelementStart(9,"div",38),n.ɵɵtemplate(10,Ze,2,0,"div",39)(11,Je,2,0,"div",39)(12,Xe,2,0,"div",39),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("scroll-to",e.focus_on_input),n.ɵɵadvance(),n.ɵɵproperty("value",e.search_value)("sizeupdate",e.qna_key_reset),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.search_value),n.ɵɵadvance(),n.ɵɵproperty("ng-hidden",!!e.search_value),n.ɵɵadvance(),n.ɵɵclassProp("qna-aq-ss",e.noresults),n.ɵɵproperty("ng-hidden",!(e.show_search_state||e.show_search_state_empty)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_search_state&&!e.noresults),n.ɵɵadvance(4),n.ɵɵproperty("ngIf",e.show_search_state&&!e.search_loading),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.show_search_state_empty&&!e.search_loading),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.search_loading)}}function tt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"li",42),n.ɵɵlistener("onClick",(function(){const t=n.ɵɵrestoreView(e).index,i=n.ɵɵnextContext();return n.ɵɵresetView(i.ChangeSort(t))})),n.ɵɵtext(1),n.ɵɵelementEnd()}if(2&e){const e=t.$implicit,i=t.index;n.ɵɵclassProp("qnaml-first",0==i),n.ɵɵadvance(),n.ɵɵtextInterpolate(e)}}function nt(e,t){1&e&&n.ɵɵelement(0,"div",51)}function it(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",43),n.ɵɵtemplate(1,nt,1,0,"div",44),n.ɵɵelementStart(2,"div",45)(3,"div",46),n.ɵɵelement(4,"img",47),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"div",48)(6,"textarea",49),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.ques_ask=t.target.value)})),n.ɵɵelementEnd(),n.ɵɵelementStart(7,"button",50),n.ɵɵlistener("onClick",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.AskQuestion(t))})),n.ɵɵtext(8,"Ask your Question"),n.ɵɵelementEnd()()()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("ngIf",0==e.schquestions.length),n.ɵɵadvance(3),n.ɵɵproperty("src",e.user_avatar||e.user_avatar_fallback,n.ɵɵsanitizeUrl)("on-img-error",e.user_avatar_fallback),n.ɵɵadvance(),n.ɵɵproperty("scroll-to",e.focus_on_input),n.ɵɵadvance(),n.ɵɵproperty("value",e.ques_ask)}}function st(e,t){1&e&&(n.ɵɵelementStart(0,"div",55)(1,"div",56),n.ɵɵelement(2,"i"),n.ɵɵelementEnd()())}function rt(e,t){if(1&e&&n.ɵɵelement(0,"a",84),2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵclassProp("qt-as-link",e.from_search),n.ɵɵproperty("href",e.ques_href,n.ɵɵsanitizeUrl)("zing-url",!0)("cleanHTML",e.ques_title)("focus-when",e.focuson)("no-click",!0)}}function at(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵtemplate(1,rt,1,7,"a",83),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.ques_href)}}function ot(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"a",86),n.ɵɵlistener("click",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext(2).$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.QuesCollapse(t,i))})),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵclassProp("qt-as-link",e.from_search),n.ɵɵproperty("href",e.ques_href,n.ɵɵsanitizeUrl)("cleanHTML",e.ques_title)("focus-when",e.focuson)}}function lt(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵtemplate(1,ot,1,5,"a",85),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.ques_href)}}function ct(e,t){if(1&e&&n.ɵɵelement(0,"span",87),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵclassProp("qt-as-link",e.from_search),n.ɵɵproperty("cleanHTML",e.ques_title)}}function dt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"button",88),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit;return n.ɵɵresetView(t.collapsed=!t.collapsed)})),n.ɵɵelement(1,"span",89),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(1,Fe,!e.collapsed))}}function ht(e,t){if(1&e&&n.ɵɵelement(0,"p",90),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵproperty("cleanHTML",e.ques_content_cut_mob)}}function ut(e,t){if(1&e&&n.ɵɵelement(0,"p",91),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵproperty("cleanHTML",e.ques_content_cut_desk)}}function pt(e,t){1&e&&(n.ɵɵelementStart(0,"span",92),n.ɵɵtext(1,"..."),n.ɵɵelementEnd())}function gt(e,t){if(1&e&&n.ɵɵelement(0,"p",90),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵproperty("cleanHTML",e.ques_content_more)}}function _t(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",93),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.ExpandContent(t.id,"question"))})),n.ɵɵtext(1,"show more"),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(2);n.ɵɵproperty("ng-hidden",t.questionexpand[e.id])}}function mt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",94),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.ExpandContent(t.id,"question"))})),n.ɵɵtext(1,"show less"),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(2);n.ɵɵproperty("ng-hidden",!t.questionexpand[e.id])}}function ft(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",95),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.ShowReplybox(t.id))})),n.ɵɵtext(1,"Reply"),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵproperty("focus-when",e.reply_bt_focus)("no-click",!0)}}function vt(e,t){1&e&&n.ɵɵelement(0,"span",96)}function bt(e,t){1&e&&n.ɵɵelement(0,"span",96)}function xt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"form",97),n.ɵɵlistener("onSubmit",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.SubmitReply(t))})),n.ɵɵelementStart(1,"div",98),n.ɵɵelement(2,"img",99),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"div",100)(4,"ck-editor",101),n.ɵɵlistener("valueChange",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext().$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.ReplyInput(t,i.id))})),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",102),n.ɵɵelement(6,"error-toast",103),n.ɵɵelementStart(7,"button",104),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.ShowReplybox(t.id))})),n.ɵɵtext(8,"Cancel"),n.ɵɵelementEnd(),n.ɵɵelementStart(9,"button",105)(10,"span"),n.ɵɵtext(11,"Reply"),n.ɵɵelementEnd(),n.ɵɵelement(12,"i",106),n.ɵɵelementEnd()()()}if(2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(2);n.ɵɵadvance(2),n.ɵɵproperty("src",t.user_avatar||t.user_avatar_fallback,n.ɵɵsanitizeUrl)("on-img-error",t.user_avatar_fallback),n.ɵɵadvance(2),n.ɵɵproperty("value",t.replyboxinput[e.id])("active",!0)("cursor-focus",t.replyboxshow[e.id])("readonly",t.replyinprogress[e.id]),n.ɵɵadvance(2),n.ɵɵproperty("message",null==t.replyerror[e.id]?null:t.replyerror[e.id].message)("show",null==t.replyerror[e.id]?null:t.replyerror[e.id].show)("close-on-change",!0)("timer",3e3),n.ɵɵadvance(),n.ɵɵproperty("disabled",t.replyinprogress[e.id]),n.ɵɵadvance(2),n.ɵɵclassProp("loadactive",t.replyinprogress[e.id]),n.ɵɵproperty("disabled",t.replyinprogress[e.id])("zing-feedback",!0)}}function wt(e,t){if(1&e&&(n.ɵɵelementStart(0,"span",120),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵadvance(),n.ɵɵtextInterpolate1(", ",e.user_title,"")}}function yt(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",118),n.ɵɵelement(1,"span",22),n.ɵɵtemplate(2,wt,2,1,"span",119),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵproperty("ng-context",e.user_fullname||e.user_login),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.user_title)}}function Ct(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵtext(1),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵtextInterpolate(e.user_login)}}function Et(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",125),n.ɵɵlistener("onTap",(function(){const t=n.ɵɵrestoreView(e).index,i=n.ɵɵnextContext(2).$implicit,s=n.ɵɵnextContext(3);return n.ɵɵresetView(s.AnsOpt(t,i))})),n.ɵɵtext(1),n.ɵɵelementEnd()}if(2&e){const e=t.$implicit,i=t.index;n.ɵɵclassProp("qnaml-first",0==i),n.ɵɵadvance(),n.ɵɵtextInterpolate(e)}}function kt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",121)(1,"span",122),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(3);return n.ɵɵresetView(i.ControlAnsOpt(t))}))("onTapOutside",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit;return n.ɵɵresetView(t.options_list_opened=!1)})),n.ɵɵelementEnd(),n.ɵɵelementStart(2,"div",123),n.ɵɵlistener("onTap",(function(t){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.stopPropagation())})),n.ɵɵtemplate(3,Et,2,3,"span",124),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(3);n.ɵɵadvance(2),n.ɵɵproperty("ng-hidden",!e.options_list_opened),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",t.ansOptions)("ngForTrackBy",t.trackByFn)}}function qt(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",126)(1,"a",127),n.ɵɵtext(2,"show more"),n.ɵɵelement(3,"span",128),n.ɵɵelementEnd()()),2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵadvance(),n.ɵɵproperty("href",e.ques_href,n.ɵɵsanitizeUrl)("zing-url",!0)}}function Tt(e,t){1&e&&n.ɵɵelement(0,"span",96)}function It(e,t){1&e&&n.ɵɵelement(0,"span",96)}function St(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",74)(1,"div",129),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(3);return n.ɵɵresetView(i.RateContent(t,"up"))})),n.ɵɵtemplate(2,Tt,1,0,"span",130),n.ɵɵelementStart(3,"span",131),n.ɵɵtext(4),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",78),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(3);return n.ɵɵresetView(i.RateContent(t,"down"))})),n.ɵɵtemplate(6,It,1,0,"span",130),n.ɵɵelementStart(7,"span",131),n.ɵɵtext(8),n.ɵɵelementEnd()()()}if(2&e){const e=n.ɵɵnextContext(),t=e.$implicit,i=e.index,s=n.ɵɵnextContext(3);n.ɵɵadvance(),n.ɵɵclassProp("visible",t.voteinprogress),n.ɵɵproperty("zing-no-touch",!0),n.ɵɵattribute("aria-label",t.upvotelabel),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.voteinprogress),n.ɵɵadvance(),n.ɵɵproperty("ng-attribute",n.ɵɵpureFunction1(17,Oe,n.ɵɵpureFunction0(16,Ne)))("ng-attribute-when",s.toggleSchema&&0==i),n.ɵɵadvance(),n.ɵɵtextInterpolate(t.upvote),n.ɵɵadvance(),n.ɵɵclassProp("visible",t.downvoteinprogress),n.ɵɵproperty("zing-no-touch",!0),n.ɵɵattribute("aria-label",t.dnvotelabel),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.downvoteinprogress),n.ɵɵadvance(),n.ɵɵproperty("ng-attribute",n.ɵɵpureFunction1(20,Oe,n.ɵɵpureFunction0(19,De)))("ng-attribute-when",s.toggleSchema&&0==i),n.ɵɵadvance(),n.ɵɵtextInterpolate(t.downvote)}}function Lt(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",107)(1,"div",108)(2,"div",109),n.ɵɵelement(3,"img",110,1),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"div",111),n.ɵɵtemplate(6,yt,3,2,"div",112),n.ɵɵelementStart(7,"div",113),n.ɵɵtemplate(8,Ct,2,1,"ng-container",36),n.ɵɵelementEnd(),n.ɵɵtemplate(9,kt,4,3,"div",114),n.ɵɵelementEnd()(),n.ɵɵelement(10,"div",115),n.ɵɵtemplate(11,qt,4,2,"div",116)(12,St,9,22,"div",117),n.ɵɵelementEnd()),2&e){const e=t.$implicit,i=t.index,s=n.ɵɵnextContext(),r=s.$implicit,a=s.index,o=n.ɵɵnextContext(2);n.ɵɵproperty("ng-hidden",!(0==i||o.question_more_answers[r.id]||1==i&&r.answers[0].my_ans))("ng-attribute",o.aschemascope)("ng-attribute-when",o.toggleSchema&&0==i),n.ɵɵadvance(2),n.ɵɵproperty("defer-src",e.user_avatar)("src-fallback",o.user_avatar_fallback)("ui-hydrate",!0),n.ɵɵadvance(4),n.ɵɵproperty("ngIf",e.user_fullname||e.user_login),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",e.user_login),n.ɵɵadvance(),n.ɵɵproperty("ngIf",null==e?null:e.is_reportable),n.ɵɵadvance(),n.ɵɵproperty("cleanHTML",e.show_full||o.ShowFullAns(a)?e.full_content:e.content_long)("zing-url-container",!0)("ng-attribute",n.ɵɵpureFunction1(17,Oe,n.ɵɵpureFunction0(16,Pe)))("ng-attribute-when",o.toggleSchema&&0==i),n.ɵɵattribute("data-pos",e.stackid),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.has_more_button&&(r.ques_href||r.ques_fullslug)&&!(e.show_full||o.ShowFullAns(a))),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!o.IsSpecial(e.id))}}function At(e,t){1&e&&(n.ɵɵelementStart(0,"div",135),n.ɵɵelement(1,"i"),n.ɵɵelementEnd())}function zt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",132),n.ɵɵtemplate(1,At,2,0,"div",133),n.ɵɵelementStart(2,"span",134),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(),i=t.$implicit,s=t.index,r=n.ɵɵnextContext(2);return n.ɵɵresetView(r.ViewMoreAns(i,s))})),n.ɵɵtext(3," View more answers "),n.ɵɵelement(4,"i",11),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.answersmore[e.id])}}function Mt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"article",57)(1,"div",58)(2,"div",59)(3,"div",60),n.ɵɵtext(4),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"span",61),n.ɵɵtext(6),n.ɵɵelementEnd()()(),n.ɵɵelementStart(7,"div",62)(8,"h3",63),n.ɵɵtemplate(9,at,2,1,"ng-container",36)(10,lt,2,1,"ng-container",36)(11,ct,1,3,"span",64)(12,dt,2,3,"button",65),n.ɵɵelementEnd(),n.ɵɵelementStart(13,"div",66),n.ɵɵtemplate(14,ht,1,1,"p",67)(15,ut,1,1,"p",68)(16,pt,2,0,"span",69)(17,gt,1,1,"p",67)(18,_t,2,1,"span",70)(19,mt,2,1,"span",71),n.ɵɵelementStart(20,"div",72),n.ɵɵtemplate(21,ft,2,2,"div",73),n.ɵɵelementStart(22,"div",74)(23,"div",75),n.ɵɵlistener("onTap",(function(){const t=n.ɵɵrestoreView(e).$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.RateContent(t,"up"))})),n.ɵɵtemplate(24,vt,1,0,"span",76),n.ɵɵelementStart(25,"span",77),n.ɵɵtext(26),n.ɵɵelementEnd()(),n.ɵɵelementStart(27,"div",78),n.ɵɵlistener("onTap",(function(){const t=n.ɵɵrestoreView(e).$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.RateContent(t,"down"))})),n.ɵɵtemplate(28,bt,1,0,"span",76),n.ɵɵelementStart(29,"span",77),n.ɵɵtext(30),n.ɵɵelementEnd()()()(),n.ɵɵtemplate(31,xt,13,15,"form",79),n.ɵɵelementStart(32,"div",80),n.ɵɵtemplate(33,Lt,13,19,"div",81)(34,zt,5,1,"div",82),n.ɵɵelementEnd()()()()}if(2&e){const e=t.$implicit,i=n.ɵɵnextContext(2);n.ɵɵclassProp("qna-q-search",e.from_search),n.ɵɵproperty("ng-attribute",i.qschemascope)("ng-attribute-when",i.questionToggleSchema(e))("ngClass",n.ɵɵpureFunction3(41,Ve,!e.collapsed&&i.collapse,i.collapse,e.collapsed&&i.collapse)),n.ɵɵadvance(3),n.ɵɵproperty("ng-attribute",n.ɵɵpureFunction1(46,Oe,n.ɵɵpureFunction0(45,Ne)))("ng-attribute-when",i.questionToggleSchema(e)),n.ɵɵadvance(),n.ɵɵtextInterpolate(e.upvote),n.ɵɵadvance(2),n.ɵɵtextInterpolate1("Upvote",1!=e.upvote?"s":"",""),n.ɵɵadvance(2),n.ɵɵproperty("ng-attribute",n.ɵɵpureFunction1(49,Oe,n.ɵɵpureFunction0(48,Re)))("ng-attribute-when",i.questionToggleSchema(e))("ngClass",n.ɵɵpureFunction2(51,je,i.collapse,e.collapsed&&i.collapse)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!i.collapse),n.ɵɵadvance(),n.ɵɵproperty("ngIf",i.collapse),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!e.ques_href&&!e.ques_fullslug),n.ɵɵadvance(),n.ɵɵproperty("ngIf",i.collapse),n.ɵɵadvance(),n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(54,He,e.collapsed)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!i.questionexpand[e.id]&&e.ques_content_cut_mob),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!i.questionexpand[e.id]&&e.ques_content_cut_desk),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!i.questionexpand[e.id]&&e.ques_content_has_more),n.ɵɵadvance(),n.ɵɵproperty("ngIf",(i.questionexpand[e.id]||!e.ques_content_cut_mob)&&e.ques_content_more),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.ques_content_has_more),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.ques_content_has_more),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",!i.IsSpecial(e.id)),n.ɵɵadvance(2),n.ɵɵclassProp("visible",e.voteinprogress),n.ɵɵproperty("zing-no-touch",!0),n.ɵɵattribute("aria-label",e.upvotelabel),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.voteinprogress),n.ɵɵadvance(2),n.ɵɵtextInterpolate(e.upvote),n.ɵɵadvance(),n.ɵɵclassProp("visible",e.downvoteinprogress),n.ɵɵproperty("zing-no-touch",!0),n.ɵɵattribute("aria-label",e.dnvotelabel),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.downvoteinprogress),n.ɵɵadvance(2),n.ɵɵtextInterpolate(e.downvote),n.ɵɵadvance(),n.ɵɵproperty("ngIf",i.replyboxshow[e.id]),n.ɵɵadvance(),n.ɵɵproperty("ng-hidden",!e.answers||e.answers.length<1),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",e.answers)("ngForTrackBy",i.trackByFn),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.has_more_answers)}}function Vt(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",52),n.ɵɵtemplate(1,st,3,0,"div",53)(2,Mt,35,56,"article",54),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵclassProp("qna-qb-loading",e.search_loading||e.questions_more),n.ɵɵproperty("ng-hidden",e.resultserror||e.load_startup||e.load_startup_fail)("ng-attribute",e.qschemapage)("ng-attribute-when",e.sectionToggleSchema()),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.search_loading||e.questions_more),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",e.schquestions)("ngForTrackBy",e.trackByFn)}}function Nt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"button",140),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2);return n.ɵɵresetView(t.ViewMoreQuestions())})),n.ɵɵelementStart(1,"span",141)(2,"span",139),n.ɵɵtext(3,"View "),n.ɵɵelementEnd(),n.ɵɵtext(4,"More Questions"),n.ɵɵelementEnd(),n.ɵɵelement(5,"i",106),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext(2);n.ɵɵclassProp("loadactive",e.questions_more)}}function Ot(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",136),n.ɵɵtemplate(1,Nt,6,2,"button",137),n.ɵɵelementStart(2,"button",138),n.ɵɵlistener("onClick",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.AskQuestion(t))})),n.ɵɵtext(3,"Ask "),n.ɵɵelementStart(4,"span",139),n.ɵɵtext(5,"Your"),n.ɵɵelementEnd(),n.ɵɵtext(6," Question"),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.has_more_ques)}}function Rt(e,t){1&e&&(n.ɵɵelementStart(0,"div",142)(1,"div",56),n.ɵɵelement(2,"i"),n.ɵɵelementEnd()())}function jt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",143)(1,"p",144),n.ɵɵtext(2,"Oops there was a problem retrieving data"),n.ɵɵelementEnd(),n.ɵɵelement(3,"br"),n.ɵɵelementStart(4,"div",145)(5,"button",146),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.RetryLoadData())})),n.ɵɵtext(6,"Retry"),n.ɵɵelementEnd()()()}}c.import("css:/components/qna-comp.css").then((()=>{})).catch((()=>{}));const Ht=[13302181,15780064,15679068,13301077,16156697,3020119,15598394,15862659,15149105,68074251,68341972,68371234,68562956,68662113,68824291,68578598,14922710,66854879,15017177,14922730,14922199,67105913,67800123,67800731,15011218,67417507,67568187,67583827,66867877,67744804,66756380,66763333,66672169,67163270,15995521,13754119];class Ft{get ques_data(){return this._ques_data}set ques_data(e){this._ques_data=e,e&&e.questions&&n.isArray(e.questions)&&this._parseInitialData(e)}get search_value(){return this._qType.getValue()}questionToggleSchema(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)}sectionToggleSchema(){return!!(this.toggleSchema&&this._has_answer&&this.schquestions.length>0)}get show_search_state(){return this.search_value&&this.search_value.length>1&&!this.noresults&&!this.resultserror}get show_search_state_empty(){return this.search_value&&this.search_value.length>1&&this.noresults&&!this.resultserror}get qna_presentation(){let e="default";switch(this.presentation?this.presentation.toLowerCase():"first full version, rest short version"){case"first full version, rest short version":e="default",this.full_qna=1;break;case"all short version":e="short";break;case"all collapsed":e="collapsed",this.collapse=!0;break;case"x number of full version, rest short version":e="varied"}return e}get has_clipped_answer_content(){return this.answers_content_clipped&&!(this.show_search_state||this.show_search_state_empty)}get open_popup(){return this._open_popup}set open_popup(e){this._open_popup=e,e&&this.AskQuestion()}get has_view_more(){return!this.search_value&&!this.search_loading&&!this.load_startup&&!this.load_startup_fail&&!this.resultserror&&this.has_enough_ques}constructor(e,t,i){this._location=e,this._route=t,this._dservice=i,this.layout_type=0,this.product_name="",this._ques_data=null,this.ques_referer=null,this.intro_truncate=!0,this.quest_category=null,this.start_delay=1e3,this.section_title="Questions & Answers",this.show_header=!0,this.presentation="first full version, rest short version",this.full_qna=0,this.top_ten_qna=null,this.questions_count=null,this.ask_quest_categories=null,this.is_details=!1,this.nodetruncate=null,this.answers_url_page=n.baseUrl()+"/answers/",this.collapse=!1,this.full_qnas=[],this._qType=new n.BehaviorSubject(""),this._has_answer=!1,this.truncateBreakwords={480:16,2048:300},this.toggleSchema=!1,this.qschemapage=[{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/FAQPage"}],this.qschemascope=[{attribute:"itemscope",value:""},{attribute:"itemprop",value:"mainEntity"},{attribute:"itemtype",value:"http://schema.org/Question"}],this.aschemascope=[{attribute:"itemprop",value:"acceptedAnswer"},{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/Answer"}],this.aschematime=[{attribute:"itemprop",value:"dateCreated"}],this.userschema=[{attribute:"itemprop",value:"author"},{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/Person"}],this.noresults=!1,this.resultserror=!1,this.search_loading=!1,this.answerexpand={},this.questionexpand={},this.question_more_answers={},this.answersmore={},this.questions_more=!1,this.has_enough_ques=!1,this.has_more_ques=!1,this.load_startup=!1,this.load_startup_fail=!1,this.is_android=!1,this.current_page=1,this.schquestions=[],this.total_ques=new n.EventEmitter,this.onIntroExpand=new n.EventEmitter,this.replyboxinput={},this.replyboxinputsubmited={},this.replyinprogress={},this.replyerror={},this.replyboxshow={},this.sortList=["Most Popular","Most Upvotes"],this.sortv="",this.sort_list_opened=!1,this.sort_list_closed=!1,this.user_avatar_fallback="https://cdn.wallethub.com/wallethub/images/profile/avatars/silhouette-50_V1d9a2cc_.png",this.ques_ask="",this.ansOptions=["Report"],this.qna_key_reset=!1,this._open_popup=!1,this.page_query="qpage",this.allow_animation=!1,this.live_status="",this.answers_link=n.baseUrl()+"/answers/",n.isNode()||(this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}trackByFn(e){return e}introExpanded(){this.onIntroExpand.emit(!0)}_ParseQuestions(e,t,i){let s=[];return n.arrayForEach(e,((e,r)=>{if(null==e)return!0;let a=e;if(a.ques_title=e.ques_content,delete a.ques_content,a.ques_content_more=a.ques_more_info||a.ques_content_more||"",a.ques_more_info&&delete a.ques_more_info,a.ques_content_more.length>138&&(a.ques_content_cut_mob=a.ques_content_more.substring(0,138),a.ques_content_has_more=!0),a.ques_content_more.length>330?a.ques_content_cut_desk=a.ques_content_more.substring(138,330):a.ques_content_more.length>138&&(a.ques_content_cut_mob=a.ques_content_more,a.ques_content_has_more=!1),!a.ques_fullslug&&a.ques_slug&&(a.ques_fullslug=a.ques_slug+"-"+a.id.toString()),a.upvotelabel=a.upvote+" up vote"+(1!=a.upvote?"s":""),a.dnvotelabel=a.downvote+" down vote"+(1!=a.upvote?"s":""),a.ques_href=a.ques_href||"/answers/"+a.ques_fullslug,a.ques_href=n.baseUrl()+a.ques_href.replace(n.baseUrl(),""),this.collapse&&(a.collapsed=!0),t){let e=t(a,r);if("boolean"==typeof e&&!e)return!0}let o=r;n.isArray(this.schquestions)&&(o+=this.schquestions.length),this._ParseAnswers(a,o,null,0,i),s.push(a)})),s}_ParseAnswers(e,t,i,s,r){let a=i||e.answers||[];if(n.isArray(a)&&(e.answers=i?e.answers:[],a.length>0&&!this._has_answer&&(this._has_answer=!0),a.forEach(((i,s)=>{let a=i;a.user_login&&!a.user_login.startsWith("@")&&(a.user_login="@"+a.user_login),a.user_fullname=n.trim(a.user_fullname||""),n.isArray(a.content)?(a.content_cut=a.content[0]||a.content[1],this.answers_content_clipped&&!e.from_search?(a.content_long=a.content[0],delete a.content_cut):a.content[0]?a.content_long=a.content[1]:(a.content_long=a.content_cut,delete a.content_cut)):(a.content_long=a.content,this.answers_content_clipped=!0),n.isJasmineTest()||delete a.content,a.content_cut&&"string"==typeof a.content_cut&&(a.content_cut=a.content_cut.replace("[[:hellip:]]","...")),0!=t||e.from_search||e.answers.length||(a.content_long||(a.content_long=a.content_cut),delete a.content_cut,this.answerexpand[a.id]=!0),this.signon&&this.signon.id==a.uid&&(this.replyboxinputsubmited[e.id]=a.content_long||a.content_cut),a.content_cut&&(a.content_cut=this._FormatAnswer(a.content_cut)),a.content_long&&(a.content_long=this._FormatAnswer(a.content_long),a.content_long.includes("...")&&(a.has_more_button=!0)),a.full_content&&(a.full_content=this._FormatAnswer(a.full_content));let o=r?r(a,e,s):null;("boolean"!=typeof o||o)&&(e.answers.push(a),a.stackid=t.toString()+"-"+e.answers.indexOf(a).toString()),a.is_reportable=!1,a.sanitizecfg={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target","allow","allowfullscreen","frameborder"]},a.upvotelabel=a.upvote+" up vote"+(1!=a.upvote?"s":""),a.dnvotelabel=a.downvote+" down vote"+(1!=a.upvote?"s":""),(this.IsSpecial(a.id)||n.isAny(a.uid,Ht))&&a.sanitizecfg.ADD_TAGS.push("iframe")})),e.has_more_answers=(e.total_answers||0)>e.answers.length||e.answers.length>1&&!this.question_more_answers[e.id],void 0!==s&&!isNaN(parseInt(s.toString()))&&s>0&&(e.has_more_answers=!0),"default"===this.qna_presentation))0==t&&e.answers.length>1&&(e.answers[0].show_full=!0);n.reqAnimationFrame((()=>{n.Events.emit("$shortcodes:set")}))}_FormatAnswer(e){try{e=(e=(e=e.replace(/<p><\/p>/g,"")).replace(/<p>(\s|&nbsp;)+<\/p>/g,"")).replace(/((?:[^\S\n]*(<p>)\s*<br(?:\s*\/\s*)?>\s*(<\/p>)|\s*<br>){2,})/g,"")}catch(t){e=""}return e}SearchInput(e){let t=e.target.value;this._qType.next(t)}ControlSortList(e){this.sort_list_opened="boolean"==typeof e?e:!this.sort_list_opened,!n.isNode()&&this.sort_list_opened&&document.getElementById("a11y-qna-list").focus()}ExpandContent(e,t){this[t+"expand"][e]=!this[t+"expand"][e]}RateContent(e,t="up"){var i;if(!n.isObject(this.signon)||!("id"in this.signon))return this.live_status="You must be logged in to vote",void(n.isWeb()?top.location.href="/join/light?ref="+encodeURIComponent(document.location.href):n.isCordova()&&n.Events.emit("$native:api-no-session",{type:"rate-content"}));if(null===(i=this.signon)||void 0===i?void 0:i.authUser)return this.live_status="Oops. You don't have permission to make edits on this account.",n.Events.emit("$app:error",{title:"Missing Permission",content:this.live_status,btnText:"Got It"}),void(this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3));if(e.voteinprogress||e.downvoteinprogress)return;e.voteinprogress="up"==t,e.downvoteinprogress="down"==t;let s=e.id,r=e.answers||e.ques_title?"question":"answer",a=r,o=(e.id+"").match(/^([abceq])(\d+)$/);o&&(s=parseInt(o.pop()),a=o.pop(),~["q","a"].indexOf(a)||(a="q"+a)),n.$httpAbort("content-vote-"+e.id),clearTimeout(this.live_status_timer),n.$http({url:n.ajaxUrl(),data:{action:"Answers.Vote",id:s,kind:a,dir:"down"==t?"dn":"up"},id:"content-vote-"+e.id,before:()=>{e.voteinprogress="up"==t,e.downvoteinprogress="down"==t,this.live_status="Voting "+r+" "+t},after:()=>{e.voteinprogress=!1,e.downvoteinprogress=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((n=>{if(this.live_status="",n.error)throw Error("response error");e.upvote=n.votes_up,e.downvote=n.votes_dn,e.upvotelabel=e.upvote+" "+t+" vote"+(1!=e.upvote?"s":""),e.dnvotelabel=e.downvote+" "+t+" vote"+(1!=e.downvote?"s":""),this.live_status="up"==t?e.upvotelabel:e.dnvotelabel,n.upClass&&(e.upvotelabel+=". Pressed"),n.dnClass&&(e.dnvotelabel+=". Pressed"),this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)})).catch((e=>{e instanceof Error?(n.Events.emit("$server:error",{data:e.message}),this.live_status="Error saving your vote"):401==e.status&&(this.live_status="You must be logged in to vote",n.isWeb()?top.location.href="/join/light?ref="+encodeURIComponent(document.location.href):n.isCordova()&&n.Events.emit("$native:api-no-session",{type:"rate-content"})),this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)}))}IsSpecial(e){return~["c","b","e"].indexOf((e+"").charAt(0))}ControlAnsOpt(e){e.options_list_opened=!e.options_list_opened}AnsOpt(e,t){const i=n.stringGetDigits(t.id);0==e&&window.open(`/report-abuse/?ru=${location.href.split("?")[0].split("#")[0]}&t=a&id=${i}`,"_self")}_throwReplyError(e,t="We encountered an error. Please retry"){this.replyerror[e]=this.replyerror[e]||{},this.replyerror[e].message=t,this.replyerror[e].show?(this.replyerror[e].show=!1,setTimeout((()=>{this.replyerror[e].show=!0}))):this.replyerror[e].show=!0}ShowReplybox(e){this.replyinprogress[e]||(this.replyboxshow[e]=!this.replyboxshow[e],this.replyboxshow[e]?this.replyboxinput[e]=this.replyboxinputsubmited[e]||"":(n.arrayForEach(this.schquestions,(t=>{if(t.id==e)return t.reply_bt_focus=!0,setTimeout((()=>{t.reply_bt_focus=!1}),100),!1})),this.replyboxinput[e]=""))}ReplyInput(e,t){this.replyboxinput[t]=e,this.replyerror[t]&&(this.replyerror[t].show=!1)}SubmitReply(e){var t;let i=this.replyboxinput[e.id];if(i=n.trim(i),!i||i.length<30)this._throwReplyError(e.id,"Content must have 30 characters.");else{if(null===(t=this.signon)||void 0===t?void 0:t.authUser)return this.live_status="Oops. You don't have permission to make edits on this account.",n.Events.emit("$app:error",{title:"Missing Permission",content:this.live_status,btnText:"Got It"}),void(this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3));clearTimeout(this.live_status_timer),this.live_status="Posting answer",n.$http({url:n.ajaxUrl(),data:{action:"Answers.AnswerQuestion",do:"user-answer",question_id:e.id,answer:i,ref:document.location.href},headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},before:()=>{this.replyinprogress[e.id]=!0},after:()=>{delete this.replyinprogress[e.id]}}).then((t=>{if(this.live_status="",t&&"redirect"in t)return n.isCordova()?n.Events.emit("$native:api-no-session",{type:"answer-submit-login",redirect:t.redirect}):window.open(t.redirect,"_top"),void setTimeout((()=>{this.replyinprogress[e.id]=!0}));if(t.error&&"message"in t){let n=[e.id];const i=t.message.match(/^Bad word `([^`]+)` detected.$/);return i&&i.length&&n.push(`Profanity is not allowed, including words such as "${i[1]}". Please adjust.`),void this._throwReplyError.apply(this,n)}if(t.error)this._throwReplyError(e.id);else{let i=(e.answers||[]).findIndex((e=>e.id==t.id)),s={date:t.date,id:t.id,content:[t.answer],user_login:t.user_login||t.username,user_fullname:n.trim(t.user_fullname||t.fullname||""),user_avatar:t.user_avatar||t.avatar,user_title:t.user_title||"",edited:t.edited},r={id:e.id,has_more_answers:e.has_more_answers,answers:[s]};s.user_avatar&&s.user_avatar.startsWith("//")&&(s.user_avatar="https:"+s.user_avatar),this._ParseAnswers(r,r.id);let a=r.answers[0];a.my_ans=!0,this.answerexpand[a.id]=!0;let o=a;i>-1?(a.edited=!0,Object.assign(e.answers[i],a),o=e.answers[i]):e.answers.unshift(a),this.replyboxinputsubmited[e.id]=t.answer,delete this.replyboxshow[e.id],this.live_status="Answer posted",o.focuson=!0,setTimeout((()=>{o.focuson=!1}),100),this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)}})).catch((t=>{console.error(t),this._throwReplyError(e.id)}))}}QSearch(e,t){this.resultserror=!1;let i=t?null:n.trim(null!=e?e:this._qType.getValue())||"";if(this.current_page=1,n.$httpAbort("qna-search-query"),n.$httpAbort("qna-load-initial"),!i)return void this._StartupLoad(!0);clearTimeout(this.live_status_timer);let s={id:"qna-search-query",url:n.ajaxUrl(),data:{action:"Answers.CommunitySearch",query:i},before:()=>{this.search_loading=!0,this.live_status="Searching for answers"},after:()=>{this.search_loading=!1},method:"GET"};this.quest_category?s.data.category=this._stripSlashes(this.quest_category):s.data.uri=this.ques_referer,n.$http(s).then((e=>{if(!e||!n.isArray(e))throw this.live_status="no matching results",this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3),Error("Data provide is invalid");this.answerexpand={},this.questionexpand={},this.schquestions=this._ParseQuestions(e,(e=>{e.from_search=!0})),this.noresults=0==this.schquestions.length,this.live_status=(this.noresults?"no ":"")+"matching results",this.live_status_timer=setTimeout((()=>{this.live_status=""}),1e3)})).catch((e=>{e instanceof Error&&console.error(e),this.resultserror=!0,this.live_status="no matching results",setTimeout((()=>{this.live_status=""}),1e3)}))}QReset(){this.QSearch(null,!0)}QClear(){this._qType.next(""),this.qna_key_reset=!0,setTimeout((()=>{this.qna_key_reset=!1}),10)}_stripSlashes(e){return 0==e.indexOf("/")&&(e=e.substring(1)),e.lastIndexOf("/")==e.length-1&&(e=e.substring(0,e.length)),e}ViewMoreAns(e,t){if(e.answers.length>1&&!this.question_more_answers[e.id])return this.question_more_answers[e.id]=!0,void(e.has_more_answers=(e.total_answers||0)>e.answers.length);this.live_status="Loading more answers",n.$http({url:n.ajaxUrl(),method:"GET",data:{action:"Answers.GetMoreAnswers",answers:e.answers.length,qid:e.id,v:2},before:()=>{this.answersmore[e.id]=!0},after:()=>{this.answersmore[e.id]=!1}}).then((i=>{if(this.live_status="",!i||!n.isArray(i.answers))throw Error("Required `answers` Array is not part of response");this.question_more_answers[e.id]=!0,this._ParseAnswers(e,t,i.answers,i.left,((e,t,n)=>{0==n&&(e.focuson=!0,setTimeout((()=>{e.focuson=!1}),100))})),this.live_status="Loaded "+i.answers.length+" more answer"+(1!=i.answers.length?"s":""),setTimeout((()=>{this.live_status=""}),1e3)})).catch((e=>{this.live_status="",console.error(e)}))}AnswerExpanded(e,t){t.is_expanded=e}DisplayShowMoreButton(e,t){t.has_more_button=e}_LoadQues(e){e&&(this.live_status="Questions are now sorted by "+this.sortv,this.current_page=1,this.sortFocus=!0),n.$httpAbort("qna-more-questions");let t,i={uri:this.ques_referer,action:"Answers.GetForPage"};this.is_details&&(i.action="Details.GetQuestions",i.v="3"),this.questions_count&&this.questions_count>0&&(i.rpp=this.questions_count),this.current_page>1&&(i.p=this.current_page),this.sortingparam&&(i.sort_by=this.sortingparam),n.$http({url:n.ajaxUrl(),method:"GET",data:i,before:()=>{this.questions_more=!0,t=this._dservice&&this._dservice.element&&this._dservice.element.scrollTop,this.live_status=e?"Sorting questions by "+("mv"!=this.sortingparam?"most popular":"most upvotes"):"Loading more questions"},after:()=>{this.questions_more=!1},id:"qna-more-questions"}).then((i=>{if(this.live_status="",!i||!n.isArray(i.questions))throw Error("Required `question` Array is not part of response");this.has_enough_ques=i.pages&&i.pages>1,this.has_more_ques=i.current_page&&i.pages&&i.current_page<i.pages,e?(this.schquestions=[],this.has_enough_ques=!0):(this.live_status="Loaded "+i.questions.length+"more question"+(1!=i.questions.length?"s":""),setTimeout((()=>{this.live_status=""}),1e3)),this.schquestions=this.schquestions.concat(this._ParseQuestions(i.questions,((t,n)=>{0!=n||e||(t.focuson=!0,setTimeout((()=>{t.focuson=!1}),100))}))),this.noresults=0==this.schquestions.length,setTimeout((()=>{this._dservice&&this._dservice.element&&this._dservice.scrollTo({position:t,timing:0})}))})).catch((e=>{this.live_status="",console.error(e)}))}ViewMoreQuestions(){this.current_page++,this._LoadQues()}ChangeSort(e){if(this.sortv=this.sortList[e],1===e)this.sortingparam="mv";else this.sortingparam="mp";this._LoadQues(!0),this.sort_list_closed=!0,this.sort_list_opened=!1,setTimeout((()=>{this.sort_list_opened=!1,this.sort_list_closed=!1}))}AskQuestion(e){let t=e&&e.currentTarget;this._quesOverlay&&this._quesOverlay.Open(we,{input:this.ques_ask||this._qType.getValue()||"",referer:n.baseUrl()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories},{return_focus_to:t||null})}_parseInitialData(e){this.schquestions=this._ParseQuestions(e.questions||[]),this.noresults=0==this.schquestions.length,this.has_enough_ques=e.pages&&e.pages>1,this.has_more_ques=e.current_page&&e.pages&&e.current_page<e.pages,this.load_startup_fail=!1,this.noresults?this.schq_count=null:this.schq_count=`${e.total_questions} question${1!=e.total_questions?"s":""}`,this.total_ques.emit(e.total_questions||0),e.categories&&!this.ask_quest_categories&&(this.ask_quest_categories=e.categories),e.current_page&&e.current_page>1&&(this.current_page=e.current_page),(this.collapse||this.presentation&&"all collapsed"==this.presentation.toLowerCase())&&this.schquestions.forEach((e=>{e.collapsed=!0}))}_StartupLoad(e){this.load_startup_fail=!1;let t={uri:this.ques_referer,action:"Answers.GetForPage"};this.current_page>1&&(t.p=this.current_page),this.sortingparam&&(t.sort_by=this.sortingparam),this.questions_count&&this.questions_count>0&&(t.rpp=this.questions_count),n.$httpAbort("qna-load-initial"),n.$http({url:n.ajaxUrl(),method:"GET",data:t,before:()=>{e?this.search_loading=!0:this.load_startup=!0},after:()=>{e?this.search_loading=!1:this.load_startup=!1},id:"qna-load-initial"}).then((t=>{if(!t||t.error||t.questions&&!n.isArray(t.questions))throw Error("Required `question` Array is not part of response");this._parseInitialData(t),e&&(this.has_enough_ques=!0)})).catch((e=>{console.error(e),this.load_startup_fail=!0}))}RetryLoadData(){this._StartupLoad()}ngOnInit(){this.sortv=this.sortList[0],this.sortingparam="mp",!n.isNode()&&n.isLoggedIn()?(this.signon=n.getSignOn(),this.user_avatar=this.signon&&this.signon.pp||this.user_avatar_fallback,0==this.user_avatar.indexOf("//")&&(this.user_avatar="https:"+this.user_avatar)):this.user_avatar=null;let e=this._location.path().split("?")[0];if(this.ques_referer=this.ques_referer||e.replace("/ng-home",""),0==this.ques_referer.indexOf(n.baseUrl())&&(this.ques_referer=this.ques_referer.replace(n.baseUrl(),"")),0!=this.ques_referer.indexOf("/")&&(this.ques_referer="/"+this.ques_referer),this.ques_referer.startsWith("/personal-loans")||this.ques_referer.lastIndexOf("/")!==this.ques_referer.length-1&&(this.ques_referer+="/"),this.page_query&&!n.isNode()&&this._route.queryParams.pipe(n.take(1)).subscribe((e=>{let t=e[this.page_query],i=t?n.toNumber(t):0;i&&(this.ques_data&&this.ques_data.pages?i<=this.ques_data.pages&&i!=this.ques_data.current_page?(this.current_page=i,this.ques_data=null):this.ques_data.questions.length<1&&(this.ques_data.pages=1):(this.current_page=i,this.ques_data=null))})),this.ques_data&&this.ques_data.questions&&n.isArray(this.ques_data.questions)||n.isNode()||(this.load_startup=!0,setTimeout((()=>{this._StartupLoad()}),this.start_delay||1)),!n.isNode()){let e,t;const i=this._qType.pipe(n.debounceTime(200)).subscribe({next:i=>{let s=n.trim((i||"").replace(/(\r\n\t|\n|\r\t)/gm," "));null!==i&&s!=e&&s.length>1?(e=s,t=!0,this.QSearch(s)):t&&(!s||s.length<2)&&(e=s,t=!1,this.QReset())},error:()=>{},complete:()=>{i.unsubscribe()}})}}QuesCollapse(e,t){n.isNode()||(e.preventDefault(),t.collapsed=!t.collapsed)}ShowFullAns(e){const t="varied"===this.qna_presentation||"default"===this.qna_presentation,n=this.full_qna>0,i=e<this.full_qna;return t&&n&&i}ngAfterViewInit(){n.isNode()||n.reqAnimationFrame((()=>{this.allow_animation=!0}))}ngOnDestroy(){this._qType.complete(),n.$httpAbort("qna-load-initial")}}Ft.ɵfac=function(e){return new(e||Ft)(n.ɵɵdirectiveInject(n.Location),n.ɵɵdirectiveInject(n.ActivatedRoute),n.ɵɵdirectiveInject(n.ScrollerService))},Ft.ɵcmp=n.ɵɵdefineComponent({type:Ft,selectors:[["","id","qna-box"]],viewQuery:function(e,t){if(1&e&&(n.ɵɵviewQuery(Se,5),n.ɵɵviewQuery(Le,5),n.ɵɵviewQuery(Ae,5)),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.txtElement=e.first),n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t._quesOverlay=e.first),n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t._answersList=e)}},hostVars:4,hostBindings:function(e,t){2&e&&n.ɵɵclassProp("qna-type1",0==t.layout_type)("qna-no-more",!t.has_view_more)},inputs:{layout_type:[0,"type","layout_type"],product_name:[0,"product-name","product_name"],ques_data:[0,"product-questions","ques_data"],ques_referer:[0,"product-referer","ques_referer"],intro_content:[0,"use-intro","intro_content"],intro_truncate:[0,"intro-truncate","intro_truncate"],quest_category:[0,"product-category","quest_category"],start_delay:[0,"startup-delay","start_delay"],section_title:[0,"section-title","section_title"],show_header:[0,"show-header","show_header"],presentation:"presentation",full_qna:[0,"full-qna","full_qna"],top_ten_qna:[0,"top-ten","top_ten_qna"],questions_count:[0,"questions-count","questions_count"],ask_quest_categories:[0,"question-categories","ask_quest_categories"],is_details:[0,"details-qna","is_details"],nodetruncate:[0,"ssr-answer-truncate","nodetruncate"],toggleSchema:[0,"toggle-schema","toggleSchema"],open_popup:[0,"show-ask-popup","open_popup"],focus_on_input:[0,"scroll-to-ask","focus_on_input"],addAskParams:[0,"question-ask-add-params","addAskParams"],page_query:[0,"pagination-query","page_query"]},outputs:{total_ques:"total-questions",onIntroExpand:"onIntroExpand"},standalone:!1,decls:22,vars:26,consts:[["quesOverlay",""],["deferImg",""],[3,"ng-aria-live"],["class","qna-heading qnah-2 bold-font",4,"ngIf"],["class","qna-heading",3,"ngClass","ng-context",4,"ngIf"],["class","qna-prg",4,"ngIf"],["zing-touch","","class","qna-prg",3,"zing-url-container","cleanHTML",4,"ngIf"],["class","qna-prg","zing-touch","",3,"zing-url-container","ng-truncate","breakwords","breakpoint","onExpand",4,"ngIf"],["class","qna-search-box",4,"ngIf"],[1,"qna-sort",3,"ngClass","ng-hidden"],["role","button","tabindex","0","ng-focus","","aria-haspopup","listbox","aria-controls","a11y-qna-list","aria-owns","a11y-qna-list","zing-touch","",1,"qna-most-list-active","inline-block",3,"onClick","onTapOutside","focus-when","no-click"],["aria-hidden","true","tabindex","-1",1,"af-icon-down-open"],["id","a11y-qna-list","role","listbox","ng-focus","","tabindex","0","aria-labelledby","label-id-qna-sort",1,"qna-most-list","basic-trans",3,"focus-when","no-click","ng-hidden"],["role","option","tabindex","0","class","qna-most-list-it bold-font","zing-touch","",3,"qnaml-first","onClick",4,"ngFor","ngForOf","ngForTrackBy"],["id","label-id-qna-sort","hidden","true"],["class","qna-form-box",4,"ngIf"],["class","qna-questions-box",3,"qna-qb-loading","ng-hidden","ng-attribute","ng-attribute-when",4,"ngIf"],["class","qna-q-get-more",4,"ngIf"],["title",""],["class","qna-startup-load progress-indicator-container ng-enter-element",4,"ngIf"],["class","qna-startup-fail ng-enter-element",4,"ngIf"],[1,"qna-heading","qnah-2","bold-font"],[3,"ng-context"],["class","qa-count semi-bold-font",4,"ngIf"],[1,"qa-count","semi-bold-font"],[1,"qna-heading",3,"ngClass","ng-context"],[1,"qna-prg"],["zing-touch","","target","_blank","rel","noopener",1,"link",3,"href","zing-url"],["zing-touch","",1,"qna-prg",3,"zing-url-container","cleanHTML"],["zing-touch","",1,"qna-prg",3,"onExpand","zing-url-container","ng-truncate","breakwords","breakpoint"],[1,"qna-search-box"],["aria-label","Search for answers",1,"label-input","full",3,"scroll-to"],["placeholder","Have a question? Search for answers","ng-autosize","","aria-label","keyword",1,"qna-search-input","textarea",3,"input","value","sizeupdate"],["class","qba-sc-cross lbl-b ng-enter-element","zing-touch","","role","button","aria-label","Clear field",3,"onTap",4,"ngIf"],["aria-label","Search","type","button","zing-touch","",1,"lbl-b","action","af-icon-search",3,"onTap","ng-hidden"],[1,"qna-ask-q-suggest","semi-bold-font","ng-enter-element",3,"ng-hidden"],[4,"ngIf"],["zing-touch","","aria-haspopup","dialog",1,"btn","fixed-w-h",3,"onClick"],["aria-hidden","true","tabindex","-1"],["class","qna-search-state bold-font",4,"ngIf"],["zing-touch","","role","button","aria-label","Clear field",1,"qba-sc-cross","lbl-b","ng-enter-element",3,"onTap"],[1,"qna-search-state","bold-font"],["role","option","tabindex","0","zing-touch","",1,"qna-most-list-it","bold-font",3,"onClick"],[1,"qna-form-box"],["class","qna-fb-hero",4,"ngIf"],["id","qna-ques-form",1,"qna-ques-form"],[1,"qna-qf-av"],["width","40","height","40","alt","",3,"src","on-img-error"],[1,"qna-qf-input",3,"scroll-to"],["placeholder","Have a question? Ask the WalletHub community.","aria-label","Ask a question","ng-autosize","",1,"qna-qf-txt","textarea","semi-bold-font",3,"input","value"],["zing-touch","","aria-haspopup","dialog",1,"btn","fixed-w-f",3,"onClick"],[1,"qna-fb-hero"],[1,"qna-questions-box",3,"ng-hidden","ng-attribute","ng-attribute-when"],["class","qna-loading-box ng-enter-element",4,"ngIf"],["class","qna-question-item",3,"qna-q-search","ng-attribute","ng-attribute-when","ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"qna-loading-box","ng-enter-element"],[1,"progress-indicator","always-v","visible"],[1,"qna-question-item",3,"ng-attribute","ng-attribute-when","ngClass"],[1,"qna-left-col"],[1,"qna-q-upvotes"],[1,"qna-q-upvotes-count",3,"ng-attribute","ng-attribute-when"],[1,"bold-font"],[1,"qna-right-col"],[1,"qna-q-title-box","bold-font",3,"ng-attribute","ng-attribute-when","ngClass"],["class","qna-q-title link",3,"cleanHTML","qt-as-link",4,"ngIf"],["class","qna-accordion-btn","zing-touch","",3,"ngClass","onTap",4,"ngIf"],[1,"qna-accordion",3,"ngClass"],["class","qna-q-content ng-enter-element text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content ng-enter-element qna-q-desk text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content qna-q-desk",4,"ngIf"],["class","qna-q-content-more semi-bold-font","zing-touch","","role","button","aria-expanded","false",3,"ng-hidden","onTap",4,"ngIf"],["class","qna-q-content-more semi-bold-font","zing-touch","","role","button","aria-expanded","true",3,"ng-hidden","onTap",4,"ngIf"],[1,"qna-q-actions"],["class","qna-q-reply link semi-bold-font","zing-touch","","role","button","tabindex","0","ng-focus","",3,"focus-when","no-click","onClick",4,"ngIf"],[1,"qna-q-thumbs"],["zing-touch","","role","button","tabindex","0",1,"up","vote","bf-icon-upvote","progress-indicator","qna-qvt",3,"onTap","zing-no-touch"],["class","progress-spin","aria-hidden","true","tabindex","-1",4,"ngIf"],[1,"vote-text"],["zing-touch","","role","button","tabindex","0",1,"dn","vote","bf-icon-downvote","progress-indicator",3,"onTap","zing-no-touch"],["class","qna-q-replyform ng-enter-element","form-submit","",3,"onSubmit",4,"ngIf"],[1,"qna-q-answers",3,"ng-hidden"],["class","qna-q-ans basic-trans",3,"ng-hidden","ng-attribute","ng-attribute-when",4,"ngFor","ngForOf","ngForTrackBy"],["class","qna-qa-show-more progress-indicator-container",4,"ngIf"],["class","qna-q-title link","zing-touch","","rel","noopener","ng-focus","",3,"href","zing-url","cleanHTML","qt-as-link","focus-when","no-click",4,"ngIf"],["zing-touch","","rel","noopener","ng-focus","",1,"qna-q-title","link",3,"href","zing-url","cleanHTML","focus-when","no-click"],["class","qna-q-title link","rel","noopener","ng-focus","",3,"href","cleanHTML","qt-as-link","focus-when","click",4,"ngIf"],["rel","noopener","ng-focus","",1,"qna-q-title","link",3,"click","href","cleanHTML","focus-when"],[1,"qna-q-title","link",3,"cleanHTML"],["zing-touch","",1,"qna-accordion-btn",3,"onTap","ngClass"],[1,"qna-accordion-btn-icon"],[1,"qna-q-content","ng-enter-element","text-select",3,"cleanHTML"],[1,"qna-q-content","ng-enter-element","qna-q-desk","text-select",3,"cleanHTML"],[1,"qna-q-content","qna-q-desk"],["zing-touch","","role","button","aria-expanded","false",1,"qna-q-content-more","semi-bold-font",3,"onTap","ng-hidden"],["zing-touch","","role","button","aria-expanded","true",1,"qna-q-content-more","semi-bold-font",3,"onTap","ng-hidden"],["zing-touch","","role","button","tabindex","0","ng-focus","",1,"qna-q-reply","link","semi-bold-font",3,"onClick","focus-when","no-click"],["aria-hidden","true","tabindex","-1",1,"progress-spin"],["form-submit","",1,"qna-q-replyform","ng-enter-element",3,"onSubmit"],[1,"avatar"],["width","","height","","alt","",3,"src","on-img-error"],[1,"reply-box","ck-answer-editor"],[3,"valueChange","value","active","cursor-focus","readonly"],[1,"reply-act"],[3,"message","show","close-on-change","timer"],["type","button","aria-label","Cancel","zing-touch","",1,"btn","grey","fixed-w",3,"onClick","disabled"],["type","submit","aria-label","Submit","zing-touch","",1,"btn","blue","fixed-w","with-loader","no-disabled",3,"disabled","zing-feedback"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"qna-q-ans","basic-trans",3,"ng-hidden","ng-attribute","ng-attribute-when"],[1,"qna-qa-top"],[1,"avatar",3,"defer-src","src-fallback","ui-hydrate"],["alt","user avatar","width","40","height","40",1,"avatar-img"],[1,"qna-qa-names","text-select"],["class","full-name semi-bold-font",4,"ngIf"],["aria-hidden","true","tabindex","-1",1,"second-name"],["class","qna-qa-sort","role","listbox",4,"ngIf"],["zing-touch","",1,"qna-q-ans-content","with-links","text-select",3,"cleanHTML","zing-url-container","ng-attribute","ng-attribute-when"],["class","qna-q-ans-content qna-ans-show-more",4,"ngIf"],["class","qna-q-thumbs",4,"ngIf"],[1,"full-name","semi-bold-font"],["class","author-cap",4,"ngIf"],[1,"author-cap"],["role","listbox",1,"qna-qa-sort"],["zing-touch","",1,"af-icon-down-open","cursor-pointer",3,"onTap","onTapOutside"],["zing-touch","",1,"qna-most-list","basic-trans",3,"onTap","ng-hidden"],["role","option","zing-touch","","class","qna-most-list-it bold-font",3,"qnaml-first","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["role","option","zing-touch","",1,"qna-most-list-it","bold-font",3,"onTap"],[1,"qna-q-ans-content","qna-ans-show-more"],["zing-touch","","rel","nofollow",1,"qna-ans-show-more-button","link",3,"href","zing-url"],["aria-hidden","true","tabindex","-1",1,"bf-icon-right-open-big"],["zing-touch","","role","button","tabindex","0",1,"up","vote","bf-icon-upvote","progress-indicator",3,"onTap","zing-no-touch"],["aria-hidden","true","tabindex","-1","class","progress-spin",4,"ngIf"],[1,"vote-text",3,"ng-attribute","ng-attribute-when"],[1,"qna-qa-show-more","progress-indicator-container"],["class","progress-indicator visible",4,"ngIf"],["zing-touch","","role","button",1,"qna-qa-sm-bt","link","inherit",3,"onTap"],[1,"progress-indicator","visible"],[1,"qna-q-get-more"],["class","btn blue-brds tall with-loader no-disabled bold-font","aria-label","View More Questions","zing-touch","",3,"loadactive","onTap",4,"ngIf"],["zing-touch","","aria-label","Ask Your Question",1,"btn","tall","qna-qgm-btn-last","blue-brds","bold-font",3,"onClick"],[1,"qna-qgm-mhide"],["aria-label","View More Questions","zing-touch","",1,"btn","blue-brds","tall","with-loader","no-disabled","bold-font",3,"onTap"],[1,"bt-text"],[1,"qna-startup-load","progress-indicator-container","ng-enter-element"],[1,"qna-startup-fail","ng-enter-element"],[1,"qna-prg","center","semi-bold-font","qna-prg-smaller"],[1,"center"],["zing-touch","",1,"btn","blue-brds","fixed-w-f","with-loader",3,"onTap"]],template:function(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelement(0,"div",2),n.ɵɵtemplate(1,Be,3,2,"h2",3)(2,Ue,1,5,"h2",4)(3,Qe,6,3,"p",5)(4,We,1,2,"p",6)(5,Ge,1,4,"p",7)(6,et,13,12,"div",8),n.ɵɵelementStart(7,"div",9)(8,"span",10),n.ɵɵlistener("onClick",(function(){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.ControlSortList())}))("onTapOutside",(function(){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.ControlSortList(!1))})),n.ɵɵtext(9),n.ɵɵelement(10,"i",11),n.ɵɵelementEnd(),n.ɵɵelementStart(11,"ul",12),n.ɵɵtemplate(12,tt,2,3,"li",13),n.ɵɵelementEnd(),n.ɵɵelementStart(13,"div",14),n.ɵɵtext(14,"Questions sort"),n.ɵɵelementEnd()(),n.ɵɵtemplate(15,it,9,5,"div",15)(16,Vt,3,8,"div",16)(17,Ot,7,1,"div",17),n.ɵɵelement(18,"modal-dialog",18,0),n.ɵɵtemplate(20,Rt,3,0,"div",19)(21,jt,7,0,"div",20)}2&e&&(n.ɵɵproperty("ng-aria-live",t.live_status),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.show_header&&1==t.layout_type),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.show_header&&1!=t.layout_type),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.product_name),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.intro_content&&!t.intro_truncate),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.intro_content&&t.intro_truncate),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),n.ɵɵadvance(),n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(24,ze,t.allow_animation))("ng-hidden",!t.has_enough_ques||0==t.schquestions.length||t.show_search_state||t.show_search_state_empty||t.resultserror),n.ɵɵadvance(),n.ɵɵproperty("focus-when",t.sort_list_closed)("no-click",!0),n.ɵɵattribute("aria-expanded",t.sort_list_opened)("aria-label",t.sortv),n.ɵɵadvance(),n.ɵɵtextInterpolate1("",t.sortv," "),n.ɵɵadvance(2),n.ɵɵproperty("focus-when",t.sort_list_opened)("no-click",!0)("ng-hidden",!t.sort_list_opened),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",t.sortList)("ngForTrackBy",t.trackByFn),n.ɵɵadvance(3),n.ɵɵproperty("ngIf",!t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.search_loading||t.questions_more||t.schquestions.length),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.has_view_more),n.ɵɵadvance(3),n.ɵɵproperty("ngIf",t.load_startup&&!t.load_startup_fail),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.load_startup_fail))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,n.TouchGestures,n.ngHidden,n.ngAttribute,n.ngZenScroll,n.ngCleanHTML,n.ngCleanBind,n.ngAriaLive,n.ErrorToastComponent,M,O,n.ngModalDialog,k,A,n.FormSubmit,qe,n.ngFocus],encapsulation:2});class Pt{}Pt.ɵfac=function(e){return new(e||Pt)},Pt.ɵmod=n.ɵɵdefineNgModule({type:Pt}),Pt.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule,n.ErrorsModule,V,R,n.RouterModule,n.ngModalsModule,v,q,z,n.FormSubmitModule,ye,Ie,n.NgFocusModule]});const Dt=e=>({height:e}),$t=e=>({fill:e}),Bt=e=>({stroke:e,fill:"none"});function Ut(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",7),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(1,$t,e.svg_secl))}}function Qt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",8)(2,"path",9),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(2,$t,e.svg_sfcl)),n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(4,Bt,e.svg_sfcl))}}function Wt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",10)(2,"path",11),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(2,$t,e.svg_sfcl)),n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(4,$t,e.svg_secl))}}function Gt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",12)(2,"path",13),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(2,$t,e.svg_sfcl)),n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(4,$t,e.svg_secl))}}function Yt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",14)(2,"path",15),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(2,$t,e.svg_sfcl)),n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(4,$t,e.svg_secl))}}function Kt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",16),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(1,$t,e.svg_secl))}}function Zt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",17),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(1,$t,e.svg_sfcl))}}function Jt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",18),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(1,$t,e.svg_sfcl))}}function Xt(e,t){if(1&e&&(n.ɵɵnamespaceSVG(),n.ɵɵelementStart(0,"g"),n.ɵɵelement(1,"path",19),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-svg-attr",n.ɵɵpureFunction1(1,$t,e.svg_sfcl))}}function en(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementContainerStart(0),n.ɵɵnamespaceSVG(),n.ɵɵelementStart(1,"svg",5),n.ɵɵlistener("onTapHover",(function(t){const i=n.ɵɵrestoreView(e).index,s=n.ɵɵnextContext();return n.ɵɵresetView(s.startRating(t,i,"add"))}))("onTapHoverOutside",(function(t){const i=n.ɵɵrestoreView(e).index,s=n.ɵɵnextContext();return n.ɵɵresetView(s.startRating(t,i,"remove"))})),n.ɵɵtemplate(2,Ut,2,3,"g",6)(3,Qt,3,6,"g",6)(4,Wt,3,6,"g",6)(5,Gt,3,6,"g",6)(6,Yt,3,6,"g",6)(7,Kt,2,3,"g",6)(8,Zt,2,3,"g",6)(9,Jt,2,3,"g",6)(10,Xt,2,3,"g",6),n.ɵɵelementEnd(),n.ɵɵelementContainerEnd()}if(2&e){const e=t.$implicit,i=t.index,s=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵattribute("width",s.svg_sdim.width)("height",s.svg_sdim.height)("role",s.showhover?"radio":"img")("tabindex",s.showhover?s.star_tabindex:"-1")("aria-hidden",s.showhover?"false":"true")("aria-label",i+1+" star rating")("aria-checked",s.rating_selected==i?"true":"false"),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-empty-fill"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-full-fill"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-half-fill"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-quarter-fill"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-three-quarter-fill"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-empty-clear"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-half-clear"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-three-quarter-clear"==e),n.ɵɵadvance(),n.ɵɵproperty("ngIf","rv-star-quarter-clear"==e)}}function tn(e,t){if(1&e&&(n.ɵɵelementStart(0,"span",20),n.ɵɵtext(1),n.ɵɵpipe(2,"moneyformat"),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("ngStyle",e.review_count_style),n.ɵɵadvance(),n.ɵɵtextInterpolate1("(",n.ɵɵpipeBind1(2,2,e.reviews),")")}}function nn(e,t){if(1&e&&(n.ɵɵelementStart(0,"span",21),n.ɵɵtext(1),n.ɵɵpipe(2,"moneyformat"),n.ɵɵelementStart(3,"span",22),n.ɵɵtext(4),n.ɵɵelementEnd()()),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("ngStyle",e.review_count_style),n.ɵɵadvance(),n.ɵɵtextInterpolate(n.ɵɵpipeBind1(2,3,e.reviews)),n.ɵɵadvance(3),n.ɵɵtextInterpolate1(" Review",1!=e.reviews?"s":"","")}}function sn(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",23),n.ɵɵelement(1,"meta",24)(2,"meta",25)(3,"meta",26)(4,"meta",27),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(3),n.ɵɵattribute("content",e.rating),n.ɵɵadvance(),n.ɵɵattribute("content",e.reviews)}}c.import("css:/pages/profile/review-star.css").then((()=>{}),(()=>{}));class rn{constructor(e){this.cd=e,this.showhover=!0,this._ratingratio=new n.BehaviorSubject(0),this.ratingChange=new n.EventEmitter,this.ratingHover=new n.EventEmitter,this.numOnly=!1,this.star_tabindex=0,this.aggregate_rating=!1,this.isBrowser=n.isWeb()||n.isCordova(),this.stars=[],this.israting=!1,this.israted=!1,this.use_svg=!0,this.svg_secl="#e4e9eb",this.svg_sfcl="#4ae0e1",this._svg_sdim={width:22,height:20.7,get heightpx(){return(0|this.height)+"px"}},this._svg_stp=1;var t=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}();this._guid=t}get rating(){return this._ratingratio.getValue()}set rating(e){var t=Math.round(100*e)/100;this._ratingratio.next(t)}set svg_sdim(e){this._svg_sdim.width=e.width,this._svg_sdim.height=e.height}get svg_sdim(){return this._svg_sdim}get review_count_style(){return{"margin-bottom":-1*(this._svg_sdim?this._svg_sdim.height:0)*.45+"px"}}set svg_stp(e){let t=this._svg_stp;this._svg_stp=e,e!==t&&(this.stars=this.getStars(),this.cd.detectChanges())}get svg_stp(){return this._svg_stp}trackByIndex(e){return e}getStars(){var e=this.rating,t=[],n=this.use_svg?1*e:Math.round(2*e)/2,i=n,s=parseInt(n+""),r=i-s;if(this.use_svg){if(this.use_svg)for(let e=0;e<5;e++)e<s||e==s&&r>.87?t.push("rv-star-full-fill"):e==s&&r>.12&&r<.38?t.push("rv-star-quarter-"+(2==this._svg_stp?"clear":"fill")):e==s&&r>.37&&r<.63?t.push("rv-star-half-"+(2==this._svg_stp?"clear":"fill")):e==s&&r>.62&&r<.88?t.push("rv-star-three-quarter-"+(2==this._svg_stp?"clear":"fill")):t.push("rv-star-empty-"+(2==this._svg_stp?"clear":"fill"))}else for(var a=0;a<5;a++)a<s?t.push("bf-icon-star"):a==s&&r>.1?t.push("bf-icon-star-half"):t.push("bf-icon-star-empty");return t}startRating(e,t,n){if(this.showhover)if(clearTimeout(this.ratingtime),"mouseenter"==e.type||"mouseleave"==e.type){if("add"==n||"remove"==e){this.israting=!0,this.stars=[];for(var i=0;i<5;i++)i<=t?this.use_svg?this.stars[i]="rv-star-full-fill":this.stars[i]="bf-icon-star":this.use_svg?this.stars[i]="rv-star-empty-"+(2==this._svg_stp?"clear":"fill"):this.stars[i]="bf-icon-star-empty";this.ratingText=["Bad","Below Average","Average","Good","Excellent"][t],this.rating_selected=t,this.ratingHover.emit(this.ratingText),this.cd.detectChanges()}}else"remove"!=n&&(this.doRate(t),this.rating_selected=t)}starReset(){this.israting&&this.showhover&&(clearTimeout(this.ratingtime),this.ratingtime=setTimeout((()=>{this.stars=this.getStars(),this.ratingHover.emit(""),this.israting=!1,this.cd.detectChanges()}),100))}doRate(e){let t=e+1;this.ratingChange.emit(t),this.stars=this.getStars(),clearTimeout(this.ratingtime),this.cd.detectChanges()}ngOnInit(){!n.isNode()&&n.Cookies.get("mw_signon")&&(this.signon=JSON.parse(n.Cookies.get("mw_signon")));let e=this._ratingratio.subscribe({next:e=>{this.stars=this.getStars(),this.cd.detectChanges()},error:()=>{},complete:()=>{e&&e.unsubscribe()}});this.ratingChange.subscribe((e=>{this.rating=e,clearTimeout(this.ratingtime),this.israting=!1,this.cd.detectChanges(),n.isWeb()&&n.Cookies.set("wh_ratings_tracking",this._guid,365)}))}ngOnDestroy(){this._ratingratio.complete(),clearTimeout(this.ratingtime)}}rn.ɵfac=function(e){return new(e||rn)(n.ɵɵdirectiveInject(n.ChangeDetectorRef))},rn.ɵcmp=n.ɵɵdefineComponent({type:rn,selectors:[["review-star"]],hostVars:6,hostBindings:function(e,t){2&e&&n.ɵɵclassProp("review-star-big","big"==t.type)("rvs-plain",!t.showhover)("rvs-svg",!0)},inputs:{showhover:[0,"enable-rating","showhover"],rating:"rating",reviews:"reviews",type:"type",numOnly:"numOnly",star_tabindex:[0,"tabindex-rating","star_tabindex"],aggregate_rating:[0,"show-schema","aggregate_rating"],svg_secl:[0,"svg-star-empty-color","svg_secl"],svg_sfcl:[0,"svg-star-fill-color","svg_sfcl"],svg_sdim:[0,"svg-star-dim","svg_sdim"],svg_stp:[0,"svg-star-type","svg_stp"]},outputs:{ratingChange:"ratingChange",ratingHover:"ratingHover"},standalone:!1,decls:5,vars:8,consts:[[1,"rating-box-wrapper",3,"mouseleave","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","review","data-sel-id","review-counts",3,"ngStyle",4,"ngIf"],["class","review","data-sel-id","review-counts-text",3,"ngStyle",4,"ngIf"],["itemprop","aggregateRating","itemscope","","itemtype","http://schema.org/AggregateRating",4,"ngIf"],["viewBox","0 0 34 32","preserveAspectRatio","none","zing-touch","",1,"rvs-star-svg",3,"onTapHover","onTapHoverOutside"],[4,"ngIf"],["d","M33.649 12.215h-12.815l-3.972-12.215-3.972 12.215h-12.89l10.417 7.569-3.972 12.215 10.417-7.569 10.342 7.569-3.972-12.215 10.417-7.569z",3,"ng-svg-attr"],["d","M31.326 12.965l-8.918 6.52 3.372 10.567-8.918-6.52-8.993 6.52 3.447-10.567-8.993-6.52h11.091l3.447-10.567 3.372 10.567h11.091z",3,"ng-svg-attr"],["fill","none","stroke","#4ae0e1","stroke-linejoin","miter","stroke-linecap","butt","stroke-miterlimit","10","stroke-width","1.4988","d","M16.862 2.398l3.372 10.567h11.091l-8.918 6.52 3.372 10.567-8.918-6.52-8.993 6.52 3.447-10.567-8.993-6.52h11.091l3.447-10.567z",3,"ng-svg-attr"],["d","M16.862 4.871v-4.871l-3.972 12.215h-12.89l10.417 7.569-3.972 12.215 10.417-7.569v-19.56z",3,"ng-svg-attr"],["d","M33.649 12.215h-12.815l-3.972-12.215v24.431l10.342 7.569-3.972-12.215 10.417-7.569z",3,"ng-svg-attr"],["d","M0,12.2l10.4,7.6L6.4,32l4-2.9c0-1.4,0-15.4,0-16.9H0L0,12.2z",3,"ng-svg-attr"],["d","M10.4,12.2c0,1.5,0,15.5,0,16.9l6.4-4.7l0,0L27.2,32l-4-12.2l10.4-7.6H20.7L16.7,0l-3.9,12.2\n                C12.8,12.2,10.4,12.2,10.4,12.2z",3,"ng-svg-attr"],["d","M20.8,12.2L16.9,0l-4,12.2H0l10.4,7.6L6.4,32l10.4-7.6v0l6.4,4.7c0-1.4,0-15.4,0-16.9H20.8z",3,"ng-svg-attr"],["d","M33.6,12.2H23.2c0,1.5,0,15.5,0,16.9l4,2.9l-4-12.2L33.6,12.2L33.6,12.2z",3,"ng-svg-attr"],["d","M6.37 32l3.972-12.215-10.417-7.569h12.89l3.972-12.215 3.972 12.215h12.89l-10.417 7.569 3.972 12.215-10.417-7.569zM16.787 22.557l7.569 5.471-2.848-8.843 7.569-5.471h-9.368l-2.848-8.843-2.848 8.843h-9.368l7.569 5.471-2.848 8.843z",3,"ng-svg-attr"],["d","M33.649 12.215h-12.815l-3.972-12.215-3.972 12.215h-12.89l10.417 7.569-3.972 12.215 10.417-7.569 10.417 7.569-3.972-12.215zM24.356 28.103l-7.569-5.471v-17.836l2.923 8.843h9.368l-7.569 5.471z",3,"ng-svg-attr"],["d","M33.6,12.2H20.8L16.9,0l-4,12.2H0l10.4,7.6L6.4,32l10.4-7.6L27.3,32l-4-12.2L33.6,12.2z M21.5,13.6h7.6\n                l-7.6,5.5l2.8,9L21.5,26",3,"ng-svg-attr"],["d","M6.4,32l4-12.2L0,12.2h12.9l4-12.2l4,12.2h12.9l-10.4,7.6l4,12.2l-10.4-7.6L6.4,32z M12.3,25.9l4.6-3.4\n                l7.6,5.5l-2.8-8.8l7.6-5.5h-9.4l-2.8-8.8l-2.8,8.8h-1.8",3,"ng-svg-attr"],["data-sel-id","review-counts",1,"review",3,"ngStyle"],["data-sel-id","review-counts-text",1,"review",3,"ngStyle"],[1,"rev-txt"],["itemprop","aggregateRating","itemscope","","itemtype","http://schema.org/AggregateRating"],["itemprop","worstRating","content","1"],["itemprop","bestRating","content","5"],["itemprop","ratingValue"],["itemprop","reviewCount"]],template:function(e,t){1&e&&(n.ɵɵelementStart(0,"div",0),n.ɵɵlistener("mouseleave",(function(){return t.starReset()})),n.ɵɵtemplate(1,en,11,16,"ng-container",1),n.ɵɵelementEnd(),n.ɵɵtemplate(2,tn,3,4,"span",2)(3,nn,5,5,"span",3)(4,sn,5,2,"div",4)),2&e&&(n.ɵɵproperty("ngStyle",n.ɵɵpureFunction1(6,Dt,t.svg_sdim.heightpx)),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",t.stars)("ngForTrackBy",t.trackByIndex),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.reviews&&t.numOnly),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.reviews&&!t.numOnly),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.aggregate_rating&&t.rating))},dependencies:[n.NgForOf,n.NgIf,n.NgStyle,n.TouchGestures,n.ngSvg,n.MoneyFormat],encapsulation:2,changeDetection:0});class an{}an.ɵfac=function(e){return new(e||an)},an.ɵmod=n.ɵɵdefineNgModule({type:an}),an.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});const on=["popup"];function ln(e,t){}function cn(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",7),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2);return n.ɵɵresetView(t.CloseThisPopup())})),n.ɵɵelementEnd()}2&e&&n.ɵɵproperty("zing-no-touch",!0)}function dn(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",3,0),n.ɵɵlistener("onTapDoc",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.DocCloseThisPopup())})),n.ɵɵelementStart(2,"div",4)(3,"span",5),n.ɵɵtext(4),n.ɵɵelementEnd(),n.ɵɵtemplate(5,ln,0,0,"ng-template",null,1,n.ɵɵtemplateRefExtractor)(7,cn,1,1,"div",6),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵclassProp("opened",e.opened)("ng-mpp-prestine",!e.opened_once),n.ɵɵproperty("ngClass",e.classes)("zing-no-touch",!0),n.ɵɵadvance(3),n.ɵɵattribute("id",e.dialog_title_id),n.ɵɵadvance(),n.ɵɵtextInterpolate(e.dialog_title),n.ɵɵadvance(3),n.ɵɵproperty("ngIf",e.opened)}}class hn extends n.ngModalDialog{get _passiveevent(){let e;return e=!!n.passiveEventsCheck()&&{passive:!0},e}constructor(e,t,n,i,s){super(e,i,s),this._cd=n,this.render=s,this.classes=[],this.fixed_parent=!0,this.dialog_title="",this.opened=!1,this.enabled_doc=!1,this.opened_once=!1,this.isPreRendered=!1,this.pre_rendered_doc=!1,this.element=t}Open(e,t,n){if(this.opened_once=!0,this.opened)return this.DocCloseThisPopup(),this._cd.detectChanges(),this;if(this._setParentScroller(),this._destroyActiveComponent(),!this.fixed_parent){let e=this.popupbox.nativeElement;"innerWidth"in this._mainscroller||this._mainscroller===e.parentNode||this.render.appendChild(this._mainscroller,e)}this._activeComponent=this.container.createComponent(e);const i=this._activeComponent.instance;i.data=t,i.closeDialog=this.CloseThisPopup;let s=()=>{this.opened=!0,this._cd.detectChanges()};return this.fixed_parent?s():setTimeout((()=>s()),0),setTimeout((()=>{this.enabled_doc=!0,this._cd.markForCheck()}),500),this._mainscroller&&this._zone.runOutsideAngular((()=>{this._resizeWatch(),window.addEventListener("resize",this._resizeWatch,this._passiveevent)})),n&&n.return_focus_to&&(this.return_focus_to=n.return_focus_to),this}PreRenderToolTip(e,t){if(this._setParentScroller(),this.isPreRendered=!0,!this.fixed_parent){let e=this.popupbox.nativeElement;"innerWidth"in this._mainscroller||this._mainscroller===e.parentNode||this.render.appendChild(this._mainscroller,e)}this._activeComponent=this.container.createComponent(e);this._activeComponent.instance.data=t,this._activeComponent.hostView.detectChanges()}TogglePreRendered(e){if(e)return this.opened=!1,this.pre_rendered_doc=!1,void this._cd.detectChanges();if(this.opened)this.opened=!1,this.pre_rendered_doc=!1,this._cd.detectChanges();else{let e=()=>{this.opened=!0,this._cd.detectChanges(),setTimeout((()=>{this.pre_rendered_doc=!0,this._cd.detectChanges()}),500)};this.fixed_parent?e():setTimeout((()=>e()),0)}}UpdateData(e){super.UpdateData(e),this._cd.detectChanges()}CloseThisPopup(e,t){if(this.opened)if(this.isPreRendered)this.TogglePreRendered(!0);else if(this.enabled_doc){if(this.return_focus_to){const e=this.return_focus_to;e.focus(),setTimeout((()=>{e.blur(),setTimeout((()=>{e.focus()}))}))}this._zone.run((()=>{this.Close(e,!0),this.enabled_doc=!1,this.fixed_parent||setTimeout((()=>{if(this.popupbox&&this.popupbox.nativeElement&&this.element&&this.element.nativeElement){let e=this.popupbox.nativeElement;this.element.nativeElement.appendChild(e)}this._destroyActiveComponent()}),300)}))}}DocCloseThisPopup(){this.isPreRendered&&this.pre_rendered_doc&&this.TogglePreRendered(!0),this.enabled_doc&&!this.isPreRendered&&this.CloseThisPopup()}_resizeWatch(){let e=this.popupbox.nativeElement;if(e.style.marginLeft="",e.style.marginTop="",e.style.width="",!this.fixed_parent){let t=0,n=0,i=this.element.nativeElement;for(;i&&i!==this._mainscroller;)t+=i.offsetLeft,n+=i.offsetTop,i=i.offsetParent;e.style.left=t+10+"px",e.style.top=n+10+"px"}let t=this.fixed_parent?e.getBoundingClientRect():{left:e.offsetLeft,right:e.offsetLeft+e.offsetWidth,bottom:e.offsetTop+e.offsetHeight},n="innerWidth"in this._mainscroller,i=n?0:this._mainscroller.getBoundingClientRect().left,s=n?this._mainscroller.innerWidth:this._mainscroller.clientWidth,r=n?this._mainscroller.innerHeight:this._mainscroller[this.fixed_parent?"clientHeight":"scrollHeight"],a=0,o=0;t.right>s&&(a=Math.min(0,s-t.right),e.style.marginLeft=a+"px"),t.bottom>r&&!this.fixed_parent&&(o=Math.min(0,r-t.bottom),e.style.marginTop=o+"px");let l=this.fixed_parent?e.getBoundingClientRect():{left:e.offsetLeft,right:e.offsetLeft+e.offsetWidth,bottom:e.offsetTop+e.offsetHeight,width:e.offsetWidth};if(l.left<i){let t=Math.abs(i-l.left);e.style.width=l.width-t+"px",a&&(a+=t,e.style.marginLeft=a+"px")}}_setParentScroller(){this.scroller?this._mainscroller=document.querySelector(this.scroller):this._mainscroller=this._dservice.element||window}ngAfterViewInit(){this.CloseThisPopup=this.CloseThisPopup.bind(this),this._resizeWatch=this._resizeWatch.bind(this),n.isNode()||this._setParentScroller()}_destroyActiveComponent(){super._destroyActiveComponent(),n.isNode()||window.removeEventListener("resize",this._resizeWatch)}}hn.ɵfac=function(e){return new(e||hn)(n.ɵɵdirectiveInject(n.NgZone),n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.ChangeDetectorRef),n.ɵɵdirectiveInject(n.ScrollerService),n.ɵɵdirectiveInject(n.Renderer2))},hn.ɵcmp=n.ɵɵdefineComponent({type:hn,selectors:[["modal-popup"]],viewQuery:function(e,t){if(1&e&&n.ɵɵviewQuery(on,5),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.popupbox=e.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:4,hostBindings:function(e,t){2&e&&n.ɵɵclassProp("fixed-parent",t.fixed_parent)("modal-popup-opened",t.opened)},inputs:{classes:"classes",scroller:[0,"popupscroller","scroller"],fixed_parent:[0,"popup-relative","fixed_parent"],dialog_title:[0,"popup-title","dialog_title"]},standalone:!1,features:[n.ɵɵInheritDefinitionFeature],decls:1,vars:1,consts:[["popup",""],["content",""],["class","ng-modal-pop-up","zing-touch","","role","dialog",3,"ngClass","opened","ng-mpp-prestine","zing-no-touch","onTapDoc",4,"ngIf"],["zing-touch","","role","dialog",1,"ng-modal-pop-up",3,"onTapDoc","ngClass","zing-no-touch"],[1,"ng-modal-container"],["hidden","true"],["class","close-btn af-icon-cross-slim","zing-touch","","aria-label","Close Popup","role","button","tabindex","0",3,"zing-no-touch","onClick",4,"ngIf"],["zing-touch","","aria-label","Close Popup","role","button","tabindex","0",1,"close-btn","af-icon-cross-slim",3,"onClick","zing-no-touch"]],template:function(e,t){1&e&&n.ɵɵtemplate(0,dn,8,9,"div",2),2&e&&n.ɵɵproperty("ngIf",!t.is_node)},dependencies:[n.NgClass,n.NgIf,n.TouchGestures],encapsulation:2,changeDetection:0});class un{}un.ɵfac=function(e){return new(e||un)},un.ɵmod=n.ɵɵdefineNgModule({type:un}),un.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});const pn=["tooltipdialog"],gn=()=>["tool-tip"];function _n(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"i",3),n.ɵɵlistener("onTap",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.pre_render?i.ToggleVisibility():i.OpenToolTip(t))})),n.ɵɵelementEnd()}}class mn{constructor(){this.data={}}}mn.ɵfac=function(e){return new(e||mn)},mn.ɵcmp=n.ɵɵdefineComponent({type:mn,selectors:[["tool-tip-content"]],standalone:!1,decls:1,vars:2,consts:[["zing-touch","",3,"innerHTML","zing-url-container"]],template:function(e,t){1&e&&n.ɵɵelement(0,"div",0),2&e&&n.ɵɵproperty("innerHTML",t.data.content,n.ɵɵsanitizeHtml)("zing-url-container",!0)},dependencies:[n.TouchGestures],encapsulation:2,changeDetection:0});class fn{constructor(){this.with_button=!0,this.propagate_event=!0,this.fixed_parent=!1,this.pre_render=!1,this.onClose=new n.EventEmitter}set open_popup(e){this._open_popup=e,e&&this.OpenToolTip(null)}get open_popup(){return this._open_popup}ToggleVisibility(){this._dialog.TogglePreRendered()}ngAfterViewInit(){this.pre_render&&this._dialog.PreRenderToolTip(mn,{content:this.content})}ReloadTooltip(e){this._dialog.UpdateData({content:this.content}),e.stopPropagation()}OpenToolTip(e,t){if(this._dialog.opened)return void(e&&e.stopPropagation());vn=vn.filter((e=>!e||e===this._dialog||(e.Close(null,!0),!1))),this._dialog.Open(mn,{content:this.content},{return_focus_to:t});let n=this._dialog.onClose.subscribe((()=>{n.unsubscribe()}));vn.includes(this._dialog)||vn.push(this._dialog),!this.propagate_event&&e&&e.stopPropagation()}ngOnDestroy(){var e=vn.indexOf(this._dialog);e>-1&&vn.splice(e,1)}CloseTip(){this._dialog.CloseThisPopup()}}fn.ɵfac=function(e){return new(e||fn)},fn.ɵcmp=n.ɵɵdefineComponent({type:fn,selectors:[["tool-tip"]],viewQuery:function(e,t){if(1&e&&n.ɵɵviewQuery(pn,5),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t._dialog=e.first)}},inputs:{parentscroller:[0,"popupscroller","parentscroller"],content:[0,"popupcontent","content"],with_button:[0,"popupbutton","with_button"],propagate_event:[0,"popuptapevent","propagate_event"],fixed_parent:[0,"popup-relative","fixed_parent"],pre_render:[0,"pre-render","pre_render"],open_popup:[0,"popupOpen","open_popup"]},outputs:{onClose:"onClose"},standalone:!1,decls:3,vars:5,consts:[["tooltipdialog",""],[3,"popupscroller","popup-relative","classes"],["class","tool-tip-bt bf-icon-info","zing-touch","",3,"onTap",4,"ngIf"],["zing-touch","",1,"tool-tip-bt","bf-icon-info",3,"onTap"]],template:function(e,t){1&e&&(n.ɵɵelement(0,"modal-popup",1,0),n.ɵɵtemplate(2,_n,1,0,"i",2)),2&e&&(n.ɵɵproperty("popupscroller",t.parentscroller)("popup-relative",t.fixed_parent)("classes",n.ɵɵpureFunction0(4,gn)),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",t.with_button))},dependencies:[n.NgIf,n.TouchGestures,hn],encapsulation:2});let vn=[];class bn{}function xn(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"p")(2,"span",25),n.ɵɵelement(3,"i",26),n.ɵɵelementStart(4,"span"),n.ɵɵtext(5),n.ɵɵelementEnd()()(),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(5),n.ɵɵtextInterpolate(e.data.filter_category)}}function wn(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"p"),n.ɵɵtext(2),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"p"),n.ɵɵtext(4),n.ɵɵelementEnd(),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(2),n.ɵɵtextInterpolate2(" #",e.genderRank," for ",e.genderValue," "),n.ɵɵadvance(2),n.ɵɵtextInterpolate2(" #",e.ageGroupRank," for ",e.ageGroupValue," ")}}function yn(e,t){if(1&e&&(n.ɵɵelementStart(0,"a",27),n.ɵɵtext(1," Get A Quote "),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("href",e.getQuoteUrl(e.data.inst_uid),n.ɵɵsanitizeUrl)}}function Cn(e,t){if(1&e&&(n.ɵɵelementStart(0,"a",28),n.ɵɵtext(1," Get A Quote "),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("href",e.getQuoteUrl(e.data.inst_uid),n.ɵɵsanitizeUrl)}}function En(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"p")(2,"span",25),n.ɵɵelement(3,"i",26),n.ɵɵelementStart(4,"span"),n.ɵɵtext(5),n.ɵɵelementEnd()()(),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(5),n.ɵɵtextInterpolate(e.data.filter_category)}}function kn(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"p"),n.ɵɵtext(2),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"p"),n.ɵɵtext(4),n.ɵɵelementEnd(),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(2),n.ɵɵtextInterpolate2(" #",e.genderRank," for ",e.genderValue," "),n.ɵɵadvance(2),n.ɵɵtextInterpolate2(" #",e.ageGroupRank," for ",e.ageGroupValue," ")}}bn.ɵfac=function(e){return new(e||bn)},bn.ɵmod=n.ɵɵdefineNgModule({type:bn}),bn.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule,un]});class qn{constructor(e,t){this.renderer=e,this.element=t,this.genderRank=0,this.genderValue="",this.ageGroupRank=0,this.ageGroupValue="",this.costRankingTooltipMsg="WalletHub collects data from public sources to rank companies based on different criteria. Individual rates may vary.",this.reviews_stars={size_md:{width:16.8,height:16},size_sm:{width:16.8,height:16}}}onReviewClicked(e,t){if(t&&e&&e.srcElement){let n=e.srcElement;(n.classList.contains("review")||n.classList.contains("rev-txt"))&&window.open(t,"_blank")}}ngOnInit(){}ngOnChanges(){this.genderRank=this.data.rank_gender_num,this.genderValue=this.data.rank_gender,this.ageGroupRank=this.data.rank_agegroup_num,this.ageGroupValue=this.data.rank_agegroup}ngAfterViewInit(){}ngOnDestroy(){}getQuoteUrl(e){return n.baseUrl()+"/r/?id="+e+"i"}}qn.ɵfac=function(e){return new(e||qn)(n.ɵɵdirectiveInject(n.Renderer2),n.ɵɵdirectiveInject(n.ElementRef))},qn.ɵcmp=n.ɵɵdefineComponent({type:qn,selectors:[["div","insurance-card",""]],inputs:{data:"data"},standalone:!1,features:[n.ɵɵNgOnChangesFeature],decls:39,vars:24,consts:[[1,"desk-layout"],[1,"row","v-center"],[1,"col-7"],[1,"title"],[1,"col-5","rating","relative","text-right"],[1,"inst-rating",3,"click","svg-star-dim","rating","reviews","enable-rating"],[1,"row","v-center","mt-10"],[1,"col-3","text-center"],["target","_blank",1,"card-logo","clearfix",3,"href"],["alt","logo",3,"src"],[1,"col-6","info"],[1,"cost-ranking"],[3,"popupcontent","popup-relative"],[4,"ngIf"],[1,"col-3","quote","flex-end"],["class","btn full","target","_blank",3,"href",4,"ngIf"],[1,"mob-layout"],[1,"col-12"],[1,"row","v-center","mt-5"],[1,"col-6","text-center"],[1,"col-6","rating","relative"],[1,"quote","mt-5"],["class","btn full","type","button","target","_blank",3,"href",4,"ngIf"],[1,"row","v-center","mt-10","footer"],[1,"col-12","info"],[1,"appr-odds","high-appr"],[1,"influ"],["target","_blank",1,"btn","full",3,"href"],["type","button","target","_blank",1,"btn","full",3,"href"]],template:function(e,t){1&e&&(n.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),n.ɵɵtext(4),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",4)(6,"review-star",5),n.ɵɵlistener("click",(function(e){return t.onReviewClicked(e,t.data.href)})),n.ɵɵelementEnd()()(),n.ɵɵelementStart(7,"div",6)(8,"div",7)(9,"a",8),n.ɵɵelement(10,"img",9),n.ɵɵelementEnd()(),n.ɵɵelementStart(11,"div",10)(12,"p",11),n.ɵɵtext(13,"WALLETHUB COST RANKING "),n.ɵɵelement(14,"tool-tip",12),n.ɵɵelementEnd(),n.ɵɵtemplate(15,xn,6,1,"ng-container",13)(16,wn,5,4,"ng-container",13),n.ɵɵelementEnd(),n.ɵɵelementStart(17,"div",14),n.ɵɵtemplate(18,yn,2,1,"a",15),n.ɵɵelementEnd()()(),n.ɵɵelementStart(19,"div",16)(20,"div",1)(21,"div",17)(22,"h2",3),n.ɵɵtext(23),n.ɵɵelementEnd()()(),n.ɵɵelementStart(24,"div",18)(25,"div",19)(26,"a",8),n.ɵɵelement(27,"img",9),n.ɵɵelementEnd()(),n.ɵɵelementStart(28,"div",20)(29,"review-star",5),n.ɵɵlistener("click",(function(e){return t.onReviewClicked(e,t.data.href)})),n.ɵɵelementEnd(),n.ɵɵelementStart(30,"div",21),n.ɵɵtemplate(31,Cn,2,1,"a",22),n.ɵɵelementEnd()()(),n.ɵɵelementStart(32,"div",23)(33,"div",24)(34,"p",11),n.ɵɵtext(35,"WALLETHUB COST RANKING "),n.ɵɵelement(36,"tool-tip",12),n.ɵɵelementEnd(),n.ɵɵtemplate(37,En,6,1,"ng-container",13)(38,kn,5,4,"ng-container",13),n.ɵɵelementEnd()()()),2&e&&(n.ɵɵadvance(4),n.ɵɵtextInterpolate1(" ",t.data.company_name," "),n.ɵɵadvance(2),n.ɵɵproperty("svg-star-dim",t.reviews_stars.size_md)("rating",t.data.rating)("reviews",t.data.votes)("enable-rating",!1),n.ɵɵadvance(3),n.ɵɵproperty("href",t.data.href,n.ɵɵsanitizeUrl),n.ɵɵadvance(),n.ɵɵproperty("src",t.data.avatar,n.ɵɵsanitizeUrl),n.ɵɵadvance(4),n.ɵɵproperty("popupcontent",t.costRankingTooltipMsg)("popup-relative",!0),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.data.filter_category),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.data.filter_category),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",t.data.company_url),n.ɵɵadvance(5),n.ɵɵtextInterpolate1(" ",t.data.company_name," "),n.ɵɵadvance(3),n.ɵɵproperty("href",t.data.href,n.ɵɵsanitizeUrl),n.ɵɵadvance(),n.ɵɵproperty("src",t.data.avatar,n.ɵɵsanitizeUrl),n.ɵɵadvance(2),n.ɵɵproperty("svg-star-dim",t.reviews_stars.size_sm)("rating",t.data.rating)("reviews",t.data.votes)("enable-rating",!1),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",t.data.company_url),n.ɵɵadvance(5),n.ɵɵproperty("popupcontent",t.costRankingTooltipMsg)("popup-relative",!0),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.data.filter_category),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.data.filter_category))},dependencies:[n.NgIf,rn,fn],encapsulation:2,changeDetection:0});class Tn{}Tn.ɵfac=function(e){return new(e||Tn)},Tn.ɵmod=n.ɵɵdefineNgModule({type:Tn}),Tn.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule,an,V,bn]});let In=null;class Sn{constructor(e,t){this._el=e,this._render=t,this.presets={"embed-geochart":{data:[["State","Rank"],["Louisiana",1],["District of Columbia",2],["Mississippi",3],["Arkansas",4],["Nevada",5],["West Virginia",6],["Oregon",7],["Wyoming",8],["Oklahoma",9],["New Mexico",10],["Alabama",11],["Delaware",12],["Alaska",13],["South Carolina",14],["Montana",15],["Ohio",16],["Michigan",17],["Tennessee",18],["South Dakota",19],["Washington",20],["California",21],["Idaho",22],["Maine",23],["Missouri",24],["Indiana",25],["New York",26],["Colorado",27],["Vermont",28],["Kentucky",29],["Arizona",30],["Georgia",31],["Pennsylvania",32],["Nebraska",33],["Iowa",34],["Illinois",35],["Florida",36],["Wisconsin",37],["North Carolina",38],["Texas",39],["North Dakota",40],["Kansas",41],["Rhode Island",42],["Connecticut",43],["Virginia",44],["Maryland",45],["Hawaii",46],["New Hampshire",47],["Utah",48],["Minnesota",49],["Massachusetts",50],["New Jersey",51]],options:{region:"US",colors:["#2CDBDB","#FFF"],resolution:"provinces",datalessRegionColor:"F5F5F5",backgroundColor:{fill:"none"},width:"auto",height:"auto",tooltip:{trigger:"focus",isHtml:!0}}}},this.preset="",this.on_select=new n.EventEmitter}ngOnInit(){n.isNode()||(In||(In=new Promise(((e,t)=>{c.import("geoloader").then((n=>{if(n&&n.charts)return n.charts.load("current",{packages:["geochart"],mapsApiKey:"AIzaSyCfrv8BE6Q3z2GH-8TCx503T97ctTDnczM"}),n.charts.setOnLoadCallback((function(){e(n)})),n;t("Failed to load google geo chart")}))})),In)).then((e=>{let t=this.presets[this.preset];if(!t)return void console.log("Geochart: Failed to load preset");let n=e.visualization.arrayToDataTable(t.data);this.chart=new e.visualization.GeoChart(this._el.nativeElement),this.chart.draw(n,t.options);let i=this;e.visualization.events.addListener(this.chart,"select",(()=>{let e=i.chart.getSelection(),t=null;if(e&&e.length){let n=e.shift();if(n&&n.row){let e=i.presets[i.preset],s=e&&e.data;t=s&&s.length&&s[n.row+1]}}i.on_select.emit(t)}))}))}ngAfterViewInit(){}ngOnDestroy(){In&&In.then((e=>{In=null}))}}Sn.ɵfac=function(e){return new(e||Sn)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.Renderer2))},Sn.ɵcmp=n.ɵɵdefineComponent({type:Sn,selectors:[["","ng-google-charts",""]],inputs:{preset:"preset"},outputs:{on_select:"onselect"},standalone:!1,decls:0,vars:0,template:function(e,t){},encapsulation:2});class Ln{}Ln.ɵfac=function(e){return new(e||Ln)},Ln.ɵmod=n.ɵɵdefineNgModule({type:Ln}),Ln.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule]});const An=["input"];function zn(e,t){if(1&e&&n.ɵɵelement(0,"div",6),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("cleanHTML",e.label)}}function Mn(e,t){if(1&e&&n.ɵɵelement(0,"div",7),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("cleanHTML",e.label)("zing-url-container",!0)}}class Vn{get required(){return this._required}set required(e){this._required=!!e}Check(){this.checked=!this.checked,this.checkedChange.emit(this.checked)}constructor(e){this.renderer=e,this.name=null,this.label=null,this.has_links=!1,this.arialabel=null,this.checkedChange=new n.EventEmitter,this.checked=!1,this.disabled=!1}ngAfterViewInit(){n.isNode()&&this.checked&&this.renderer.setAttribute(this.checkbox.nativeElement,"checked","checked")}}Vn.ɵfac=function(e){return new(e||Vn)(n.ɵɵdirectiveInject(n.Renderer2))},Vn.ɵcmp=n.ɵɵdefineComponent({type:Vn,selectors:[["ng-checkbox"]],viewQuery:function(e,t){if(1&e&&n.ɵɵviewQuery(An,5,n.ElementRef),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.checkbox=e.first)}},inputs:{required:"required",name:"name",label:"label",has_links:[0,"label-with-links","has_links"],arialabel:"arialabel",checked:"checked",disabled:"disabled"},outputs:{checkedChange:"checkedChange"},standalone:!1,decls:6,vars:8,consts:[["input",""],["role","checkbox","tabindex","0",1,"checkbox"],["type","checkbox","value","","aria-hidden","true","tabindex","-1",3,"change","checked","required","disabled","name"],[1,"track","bf-icon-ok"],["class","name",3,"cleanHTML",4,"ngIf"],["class","name text-select","zing-touch","",3,"cleanHTML","zing-url-container",4,"ngIf"],[1,"name",3,"cleanHTML"],["zing-touch","",1,"name","text-select",3,"cleanHTML","zing-url-container"]],template:function(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"label",1)(1,"input",2,0),n.ɵɵlistener("change",(function(){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.Check())})),n.ɵɵelementEnd(),n.ɵɵelement(3,"span",3),n.ɵɵtemplate(4,zn,1,1,"div",4)(5,Mn,1,2,"div",5),n.ɵɵelementEnd()}2&e&&(n.ɵɵattribute("aria-label",t.arialabel||t.label)("aria-checked",t.checked?"true":"false"),n.ɵɵadvance(),n.ɵɵproperty("checked",t.checked)("required",t.required)("disabled",t.disabled)("name",t.name),n.ɵɵadvance(3),n.ɵɵproperty("ngIf",t.label&&!t.has_links),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.label&&t.has_links))},dependencies:[n.NgIf,n.TouchGestures,n.ngCleanHTML],encapsulation:2});class Nn{}Nn.ɵfac=function(e){return new(e||Nn)},Nn.ɵmod=n.ɵɵdefineNgModule({type:Nn}),Nn.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});const On=["AdPixelViewTrigger"],Rn=["AdPixelViewReferrer"],jn=["AdPixelViewClick"];class Hn{constructor(e){this._dservice=e,this._scrolling=!1,this._obs=[]}AttachEvents(){this.onScrollEnd=new n.BehaviorSubject(null),this.onResize=new n.Subject,n.isNode()||(this._subs=this._dservice.onScroll.subscribe((e=>{this._scrolling&&clearTimeout(this._scrolltimer),this._scrolling=!0,this._scrolltimer=setTimeout((()=>{this._scrolling=!1,this.onScrollEnd.next(e)}),500)})),this._resize=new n.Subject,this._obs.push(p(window,"resize")),this._resizesubs=this._obs[this._obs.length-1].pipe(n.takeUntil(this._resize)).subscribe((()=>{this.onResize.next(null)})))}DetachEvents(){this._subs&&(this._subs.unsubscribe(),this._subs=null),this._resizesubs&&(this._resizesubs.unsubscribe(),this._resizesubs=null),this._resize&&(this._resize.next(null),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}}Hn.ɵfac=function(e){return new(e||Hn)(n.ɵɵinject(n.ScrollerService))},Hn.ɵprov=n.ɵɵdefineInjectable({token:Hn,factory:Hn.ɵfac});class Fn{set ad_view_trigger(e){this._ad_view_trigger=e,e&&setTimeout((()=>{this._CheckElements("all"),this._cd.detectChanges()}))}get ad_view_trigger(){return this._ad_view_trigger}set adId(e){e!=this._adId&&this._ng_init&&setTimeout((()=>{this._ResetnCheck(),this._cd.detectChanges()})),this._adId=e}get adId(){return this._adId}set recheck(e){e&&this._ng_init&&this._ResetnCheck(),this._recheck=e}get recheck(){return this._recheck}get _adlocation(){let e=this._loc.path().replace("/ng-home/","/");return e=e.split("?")[0],e}constructor(e,t,i,s,r,a){this.mainElement=e,this._dservice=t,this._renderer=i,this._srv=s,this._loc=r,this._cd=a,this.ad_disabled=!1,this._ad_view_trigger=!0,this.triggerRatio=.15,this.debug=!1,this.referrerUrl="",this.clickUrl="",this.section="",this.position=0,this.totals=0,this.without_adview_version=!1,this.ignore_default_queries=!1,this.ad_use_parent_el=!1,this.pixel_on_click=!1,this.uniqueClickId=!1,this.viewId="",this.is_viewed=!1,this.clickId="",this.sbs=new n.Subscription,this.obs=[],this.is_intersecting=!1,this.is_main_intersct=!1,this.adViewed=new n.EventEmitter,this.adClick=new n.EventEmitter,this.adSet=new n.EventEmitter,this._ng_init=!1,this._CheckForIntersection=e=>{if(!this.is_viewed)for(let t=0,i=e.length;t<i;t++){let i=e[t];if(n.isNullorUndefined(i.isIntersecting)&&this._isInViewport(i,!0)){this.is_intersecting=!0;break}if(i.isIntersecting){this.is_intersecting=!0;break}this.is_intersecting=!1}},this.use_IntersectionObserver=!(n.isNode()||!window.IntersectionObserver),this.debug&&console.log("use_IntersectionObserver is : ",this.use_IntersectionObserver)}ngOnInit(){this._ng_init=!0,this.ad_disabled||(this.viewId=n.uniqid(),this.clickId=n.uniqid(),n.isNode()||(this.viewport=this._getViewportSize()),this.adSet.emit({viewid:this.viewId,clickid:this.clickId}))}ngAfterViewInit(){if(this._PixelReferrer(),this._PixelAddClickId(),n.isNode())return;this.clicksList&&!this.ad_disabled&&this.clicksList.forEach((e=>{const t=p(e.nativeElement,"click");this.obs.push(t),this.sbs.add(t.subscribe((t=>{this._PixelClicked(e),this.adClick.emit({view:this.viewId,click:this.clickId})})))})),this.referrersList&&!this.ad_disabled&&this.referrersList.forEach((e=>{const t=p(e.nativeElement,"click");this.obs.push(t),this.sbs.add(t.subscribe((e=>{this.is_viewed||this._PixelTrigger()})))}));let e=(this.use_IntersectionObserver?this._RegisterIntersectElements:this._CheckElements).bind(this);if(this.clicksList&&this.sbs.add(this.clicksList.changes.subscribe((t=>{this.ad_disabled||e(this.clicksList),this._PixelAddClickId()}))),!this.ad_disabled&&this.triggersList&&this.sbs.add(this.triggersList.changes.subscribe((t=>{e(this.triggersList)}))),this.referrersList&&this.sbs.add(this.referrersList.changes.subscribe((t=>{this._PixelReferrer(),this.ad_disabled||e(this.referrersList)}))),this.ad_disabled)return;const t=this._srv.onScrollEnd,i=this._srv.onResize;this.use_IntersectionObserver?(this._intersectionObserver=new IntersectionObserver((e=>{this._CheckForIntersection(e)}),{threshold:this.triggerRatio}),this._RegisterIntersectElements("all"),this.sbs.add(t.subscribe((e=>{this.is_intersecting&&this._PixelTrigger()})))):this.sbs.add(t.subscribe((e=>{this._CheckElements("all")}))),this.sbs.add(i.subscribe((e=>{this.viewport=this._getViewportSize(),this.debug&&console.log("new viewport size : ",this.viewport),this.use_IntersectionObserver||this._CheckElements("all")}))),setTimeout((()=>{this._CheckElements("all")}))}_RegisterIntersectElements(e){let t=!0,n=e=>{this._intersectionObserver?("function"==typeof this._intersectionObserver.unobserve&&this._intersectionObserver.unobserve(e.nativeElement),this._intersectionObserver.observe(e.nativeElement),t=!1):console.error("IntersectionObserver is not initialized.")};if("all"==e?(this.triggersList&&this.triggersList.forEach(n),this.referrersList&&this.referrersList.forEach(n),this.clicksList&&this.clicksList.forEach(n)):e.forEach(n),this.is_main_intersct=t,t){let e=this.mainElement.nativeElement,t=this.ad_use_parent_el?e.parentNode:e;this._intersectionObserver.observe(t)}}_CheckElements(e){if(this.is_viewed)return;let t=!0,n=e=>{t=!1,this._isInViewport(e)&&this._PixelTrigger()};if("all"==e?(this.triggersList&&this.triggersList.forEach((e=>{n(e)})),this.referrersList&&this.referrersList.forEach((e=>{n(e)})),this.clicksList&&this.clicksList.forEach((e=>{n(e)}))):e&&e.forEach((e=>{n(e)})),this.is_main_intersct=t,t){let e=this.mainElement.nativeElement,t=this.ad_use_parent_el?{nativeElement:e.parentNode}:this.mainElement;n(t)}}_isInViewport(e,t){if(!this.viewport)return!1;var n=t?e.boundingClientRect:e.nativeElement.getBoundingClientRect(),i=n.height||n.bottom-n.top,s=n.width||n.right-n.left;return!(!i||!s)&&!(n.top+n.height*(this.is_main_intersct?this.triggerRatio:1)>this.viewport.h||n.bottom<0)}_getViewportSize(){var e=window;if(null!=e.innerWidth)return{w:e.innerWidth,h:e.innerHeight};var t=e.document;return{w:t.body.clientWidth,h:t.body.clientWidth}}_ResetnCheck(){n.isNode()||(this.is_viewed=!1,this.viewId=n.uniqid(),this.clickId=n.uniqid(),this._PixelReferrer(),this._PixelAddClickId(),this._CheckElements("all"))}_PixelTrigger(){this.ad_view_trigger&&(this.is_viewed||(this.is_viewed=!0,this.adViewed.emit({view:this.viewId,click:this.clickId}),this._httpCall()))}_PixelClicked(e,t=!1){this.is_viewed||this._PixelTrigger(),(this.pixel_on_click||t)&&this._httpCall({adview_click:this.clickId}),n.reqAnimationFrame((()=>{this._PixelAddClickId()}))}TriggerClickPixel(e){if(this._PixelClicked(null,!0),this.clickUrl){let t=this.clickUrl+(this.clickUrl.indexOf("?")>-1?"&":"?")+`clickId=${this.clickId}&viewId=${this.viewId}`;e&&(t+=n.objectSerialize(e)),window.open(t,""+(this.same_tab?"_self":"_blank"))}}TriggerViewPixel(){this._PixelTrigger()}_PixelAddClickId(){this.clicksList&&this.clicksList.forEach((e=>{const t=this.clickUrl;if(n.isNode())return void this._renderer.setAttribute(e.nativeElement,"href",t);const i=this.clickId;this.uniqueClickId&&(this.clickId=n.uniqid());let s=t+(t.indexOf("?")>-1?"&":"?")+`clickId=${i}&viewId=${this.viewId}`;this.ad_disabled&&(s=t);const r=e.nativeElement;r.dataset&&r.dataset.clickparams&&(s.indexOf("?")>-1?s+="&":s+="?",s+=r.dataset.clickparams),this._renderer.setAttribute(e.nativeElement,"href",s)}))}_PixelReferrer(){this.referrersList&&this.referrersList.forEach((e=>{const t=this.referrerUrl;let i=t;n.isNode()||this.ad_disabled||(i+=(t.indexOf("?")>-1?"&":"?")+`viewReferrer=${this.viewId}`),this._renderer.setAttribute(e.nativeElement,"href",i)}))}_httpCall(e={}){let t={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.without_adview_version&&delete t.adview_version,this.ignore_default_queries&&this.addlQueries&&(t={});let i=Object.assign(t,this.addlQueries,e),s=n.baseUrl()+"/pixel.png";i.adview_section||delete i.adview_section,i.adview_pid||delete i.adview_pid,(0==i.adview_totals&&0==i.adview_position||-1==i.adview_totals&&-1==i.adview_position)&&(delete i.adview_position,delete i.adview_totals),Object.keys(i).forEach((e=>{null!==i[e]&&void 0!==i[e]||delete i[e]})),n.$http({method:"GET",data:i,events:!1,url:s,expectedType:"text",retry:1}).catch((e=>{})),this.debug&&console.log(this.adId," AdPixelView fired.")}ngOnDestroy(){this.sbs.unsubscribe(),this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this.obs=[]}}Fn.ɵfac=function(e){return new(e||Fn)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.ScrollerService),n.ɵɵdirectiveInject(n.Renderer2),n.ɵɵdirectiveInject(Hn),n.ɵɵdirectiveInject(n.Location),n.ɵɵdirectiveInject(n.ChangeDetectorRef))},Fn.ɵdir=n.ɵɵdefineDirective({type:Fn,selectors:[["","ad-pixel",""]],contentQueries:function(e,t,i){if(1&e&&(n.ɵɵcontentQuery(i,On,5,n.ElementRef),n.ɵɵcontentQuery(i,Rn,5,n.ElementRef),n.ɵɵcontentQuery(i,jn,5,n.ElementRef)),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.triggersList=e),n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.referrersList=e),n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.clicksList=e)}},inputs:{ad_disabled:[0,"ad-disabled","ad_disabled"],ad_view_trigger:[0,"ad-view-trigger","ad_view_trigger"],addlQueries:[0,"addl-queries","addlQueries"],triggerRatio:[0,"trigger-ratio","triggerRatio"],debug:"debug",referrerUrl:[0,"referrer-url","referrerUrl"],clickUrl:[0,"click-url","clickUrl"],section:[0,"adview-section","section"],position:[0,"adview-position","position"],totals:[0,"adview-totals","totals"],same_tab:[0,"same-tab","same_tab"],without_adview_version:[0,"without-adview-version","without_adview_version"],ignore_default_queries:[0,"ignore-default-queries","ignore_default_queries"],adId:[0,"ad-id","adId"],ad_use_parent_el:[0,"ad-use-parent","ad_use_parent_el"],pixel_on_click:[0,"ad-pixel-click","pixel_on_click"],uniqueClickId:[0,"unique-click-id","uniqueClickId"],recheck:[0,"ad-pixel-recheck","recheck"]},outputs:{adViewed:"adViewed",adClick:"adClick",adSet:"adSet"},standalone:!1});class Pn{constructor(e){this._srv=e,this._srv.AttachEvents()}ngOnDestroy(){this._srv.DetachEvents()}}Pn.ɵfac=function(e){return new(e||Pn)(n.ɵɵinject(Hn))},Pn.ɵmod=n.ɵɵdefineNgModule({type:Pn}),Pn.ɵinj=n.ɵɵdefineInjector({providers:[Hn],imports:[n.CommonModule,n.DirectivesModule]});class Dn{get insuredvalue(){return this.insuredparam.toString()}constructor(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=["18","22","30","39","49","59","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.ad_view_id="",this.ad_click_id="",this.is_tabletmode=!1,this._ajax_error_timer=null}SetAdView(e){this.ad_click_id=e.click,this.ad_view_id=e.view,this._cd.detectChanges()}ChangeInsurance(e){this.insured=e,this.insuredparam="Yes"==e||!0===e,this._cd.detectChanges()}ChangeZip(e){this.zipcode=e.target.value,this.invalid.zip=!1,this.show_error=!1,clearTimeout(this._ajax_error_timer),this._cd.detectChanges()}SetAge(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()}_ajaxError(){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((()=>{this.show_error=!1,this._cd.detectChanges()}),2500)}GetQuote(e){if(!this.loading){if(this.pass_validation=!1,this.show_error)return this.show_error=!1,this._cd.detectChanges(),void setTimeout((()=>{this.show_error=!0,this._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||(n.Cookies.set("wh_zipcode",this.zipcode,3650),n.Cookies.set("wh_age",this.ageparam,3650),n.Cookies.set("wh_currently_insured",this.insuredparam?1:0,3650),n.$http({url:n.ajaxUrl(),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:()=>{this.loading=!1,this._cd.detectChanges()}}).then((e=>{e.error?this._ajaxError():window.open(e.goto_link,"_self")})).catch((e=>{this._ajaxError()})))}}ngOnInit(){n.isNode()||(this.is_tabletmode=window.innerWidth>=768&&window.innerWidth<=1003,n.Cookies.get("wh_zipcode")&&""!=n.Cookies.get("wh_zipcode")?(this.zipcode=n.Cookies.get("wh_zipcode"),this._cd.detectChanges()):n.$http({url:n.ajaxUrl(),method:"GET",data:{action:"Calculators.MortgageIpToZip",loggedIn:!1}}).then((e=>{e.zip?this.zipcode=e.zip:"-"!=e[7]&&(this.zipcode=e[7]||""),this._cd.detectChanges()})).catch((e=>{this._ajaxError()})),n.Cookies.get("wh_age")&&""!=n.Cookies.get("wh_age")&&(this.ageparam=n.Cookies.get("wh_age"),this.age=this.ages[this._ages_param.indexOf(this.ageparam)],this._cd.detectChanges()),n.Cookies.get("wh_currently_insured")&&""!=n.Cookies.get("wh_currently_insured")&&(this.insured="1"==n.Cookies.get("wh_currently_insured")?"Yes":"No",this.insuredparam="1"==n.Cookies.get("wh_currently_insured"),this._cd.detectChanges()))}ngOnDestroy(){clearTimeout(this._ajax_error_timer)}}Dn.ɵfac=function(e){return new(e||Dn)(n.ɵɵdirectiveInject(n.ChangeDetectorRef))},Dn.ɵdir=n.ɵɵdefineDirective({type:Dn,inputs:{typeList:[0,"type-list","typeList"],age:"age",insured:"insured",zipcode:"zipcode",layoutType:[0,"layout-type","layoutType"]}});const $n=e=>({"ciw-full-field":e}),Bn=()=>["Yes","No"];function Un(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",25)(1,"div",15),n.ɵɵtext(2,"Type"),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"ng-dropdown",26,2),n.ɵɵlistener("valueChange",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.SetType(t))})),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵattribute("id","type-ipt-label-"+e.random_id),n.ɵɵadvance(2),n.ɵɵproperty("items",e.typeList)("second",!0)("dark-borders",!0)("invalid",e.invalid.type)("value",e.type)("labelledby","type-ipt-label-"+e.random_id)}}function Qn(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"div",7),n.ɵɵelement(2,"input",8),n.ɵɵtemplate(3,Un,5,7,"div",9),n.ɵɵelementStart(4,"div",10)(5,"label",11),n.ɵɵtext(6,"Zip Code"),n.ɵɵelementEnd(),n.ɵɵelementStart(7,"input",12),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.ChangeZip(t))})),n.ɵɵelementEnd()()(),n.ɵɵelementStart(8,"div",13)(9,"div",14)(10,"span",15),n.ɵɵtext(11,"Age"),n.ɵɵelementEnd(),n.ɵɵelementStart(12,"ng-dropdown",16,0),n.ɵɵlistener("valueChange",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.SetAge(t))})),n.ɵɵelementEnd(),n.ɵɵelement(14,"input",17),n.ɵɵelementEnd(),n.ɵɵelementStart(15,"div",18)(16,"span",15),n.ɵɵtext(17,"Currently Insured?"),n.ɵɵelementEnd(),n.ɵɵelementStart(18,"ng-dropdown",19,1),n.ɵɵlistener("valueChange",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.ChangeInsurance(t))})),n.ɵɵelementEnd(),n.ɵɵelement(20,"input",20),n.ɵɵelementEnd()(),n.ɵɵelementStart(21,"div",13)(22,"div",21),n.ɵɵelement(23,"error-toast",22),n.ɵɵelementStart(24,"button",23),n.ɵɵtext(25),n.ɵɵelement(26,"span",24),n.ɵɵelementEnd()()(),n.ɵɵelementContainerEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(31,$n,0==e.typeList.length)),n.ɵɵadvance(),n.ɵɵproperty("value",e.type),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.typeList.length>0),n.ɵɵadvance(2),n.ɵɵproperty("id","zip-ipt-label-"+e.random_id)("for","zip-ipt-"+e.random_id),n.ɵɵadvance(2),n.ɵɵclassProp("ng-wh-error",e.invalid.zip),n.ɵɵproperty("value",e.zipcode)("id","zip-ipt-"+e.random_id),n.ɵɵattribute("aria-labelledby","zip-ipt-label-"+e.random_id),n.ɵɵadvance(3),n.ɵɵattribute("id","age-ipt-label-"+e.random_id),n.ɵɵadvance(2),n.ɵɵproperty("items",e.ages)("second",!0)("dark-borders",!0)("invalid",e.invalid.age)("value",e.age)("labelledby","age-ipt-label-"+e.random_id),n.ɵɵadvance(2),n.ɵɵproperty("value",e.ageparam),n.ɵɵadvance(2),n.ɵɵattribute("id","insured-ipt-label-"+e.random_id),n.ɵɵadvance(2),n.ɵɵproperty("items",n.ɵɵpureFunction0(33,Bn))("second",!0)("dark-borders",!0)("value",e.insured)("labelledby","insured-ipt-label-"+e.random_id),n.ɵɵadvance(2),n.ɵɵproperty("value",e.insuredvalue),n.ɵɵadvance(3),n.ɵɵproperty("message",e.error_msg)("show",e.show_error)("close-on-change",!0),n.ɵɵadvance(),n.ɵɵclassProp("loadactive",e.loading),n.ɵɵadvance(),n.ɵɵtextInterpolate1(" ",e.btn,"")}}function Wn(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"div",27)(2,"div",28)(3,"div",15),n.ɵɵtext(4,"Type"),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"ng-dropdown",29,2),n.ɵɵlistener("valueChange",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.SetType(t))})),n.ɵɵelementEnd(),n.ɵɵelement(7,"input",8),n.ɵɵelementEnd(),n.ɵɵelementStart(8,"div",30)(9,"div",15),n.ɵɵtext(10,"Zip Code"),n.ɵɵelementEnd(),n.ɵɵelementStart(11,"input",31),n.ɵɵlistener("input",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.ChangeZip(t))})),n.ɵɵelementEnd()(),n.ɵɵelementStart(12,"div",32)(13,"span",15),n.ɵɵtext(14,"Age"),n.ɵɵelementEnd(),n.ɵɵelementStart(15,"ng-dropdown",33,0),n.ɵɵlistener("valueChange",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.SetAge(t))})),n.ɵɵelementEnd(),n.ɵɵelement(17,"input",17),n.ɵɵelementEnd()(),n.ɵɵelementStart(18,"div",27)(19,"div",18)(20,"span",15),n.ɵɵtext(21,"Currently Insured?"),n.ɵɵelementEnd(),n.ɵɵelementStart(22,"ng-dropdown",34,1),n.ɵɵlistener("valueChange",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.ChangeInsurance(t))})),n.ɵɵelementEnd(),n.ɵɵelement(24,"input",20),n.ɵɵelementEnd(),n.ɵɵelementStart(25,"div",21),n.ɵɵelement(26,"error-toast",22),n.ɵɵelementStart(27,"button",35),n.ɵɵtext(28," Find Insurers"),n.ɵɵelement(29,"i",24),n.ɵɵelementEnd()()(),n.ɵɵelementContainerEnd()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(5),n.ɵɵproperty("items",e.typeList)("second",!0)("dark-borders",!0)("invalid",e.invalid.type)("value",e.type),n.ɵɵadvance(2),n.ɵɵproperty("value",e.type),n.ɵɵadvance(4),n.ɵɵclassProp("ng-wh-error",e.invalid.zip),n.ɵɵproperty("value",e.zipcode),n.ɵɵadvance(4),n.ɵɵproperty("items",e.ages)("second",!0)("dark-borders",!0)("invalid",e.invalid.age)("value",e.age),n.ɵɵadvance(2),n.ɵɵproperty("value",e.ageparam),n.ɵɵadvance(5),n.ɵɵproperty("items",n.ɵɵpureFunction0(25,Bn))("second",!0)("dark-borders",!0)("value",e.insured),n.ɵɵadvance(2),n.ɵɵproperty("value",e.insuredvalue),n.ɵɵadvance(2),n.ɵɵproperty("message",e.error_msg)("show",e.show_error)("close-on-change",!0),n.ɵɵadvance(),n.ɵɵclassProp("loadactive",e.loading)}}class Gn extends Dn{constructor(e){super(e),this.type=null,this.btn="Find Insurers",this.random_id=Math.floor(100*Math.random())}SetType(e){this.type=e,this.show_error=!1,this.invalid.type=!1,clearTimeout(this._ajax_error_timer),this._cd.detectChanges()}GetQuote(){this.type||(this.invalid.type=!0,this.show_error=!0,this.error_msg="please select a type",this.pass_validation=!1,this._cd.detectChanges()),super.GetQuote({type:this.type})}}Gn.ɵfac=function(e){return new(e||Gn)(n.ɵɵdirectiveInject(n.ChangeDetectorRef))},Gn.ɵcmp=n.ɵɵdefineComponent({type:Gn,selectors:[["car-insurance-widget"]],hostAttrs:[1,"car-insurance-widget"],inputs:{type:"type",btn:[0,"button-name","btn"]},standalone:!1,features:[n.ɵɵInheritDefinitionFeature],decls:5,vars:6,consts:[["dropdown_a",""],["dropdown_i",""],["dropdown_t",""],["form-submit","","ad-pixel","",1,"ciw-controls",3,"onSubmit","adViewed","unique-click-id","ad-id"],[4,"ngIf"],["type","hidden","name","viewid",3,"value"],["type","hidden","name","clickid",3,"value"],[1,"ciw-controls-group",3,"ngClass"],["type","hidden","name","type",3,"value"],["class","ciw-control ciw-type",4,"ngIf"],[1,"ciw-control","ciw-zip-code"],[1,"ciw-label","semi-bold-font",3,"id","for"],["type","tel","name","zip","size","9","placeholder","","maxlength","5","role","textbox",1,"textfield","validate","brd-darker","center","full",3,"input","value","id"],[1,"ciw-controls-group"],[1,"ciw-control","ciw-age"],[1,"ciw-label","semi-bold-font"],["placeholder","Age",3,"valueChange","items","second","dark-borders","invalid","value","labelledby"],["type","hidden","name","age",3,"value"],[1,"ciw-control","ciw-insured"],["placeholder","",3,"valueChange","items","second","dark-borders","value","labelledby"],["type","hidden","name","currently_insured",3,"value"],[1,"ciw-control","ciw-btn"],[1,"quote-error",3,"message","show","close-on-change"],["type","submit",1,"btn","with-loader","ciw-btn-submit"],[1,"btn-loader"],[1,"ciw-control","ciw-type"],["placeholder","",3,"valueChange","items","second","dark-borders","invalid","value","labelledby"],[1,"ciw-controls-group",2,"max-width","450px"],[1,"ciw-control","ciw-type",2,"max-width","133px"],["placeholder","",3,"valueChange","items","second","dark-borders","invalid","value"],[1,"ciw-control","ciw-zip-code",2,"max-width","133px"],["type","tel","name","zip","size","9","placeholder","","maxlength","5",1,"textfield","validate","brd-darker","center","full",3,"input","value"],[1,"ciw-control","ciw-age",2,"max-width","133px"],["placeholder","Age",3,"valueChange","items","second","dark-borders","invalid","value"],["placeholder","",3,"valueChange","items","second","dark-borders","value"],["type","submit",1,"btn","with-loader","layout-type-2","ciw-btn-submit",2,"margin-top","25px","margin-left","10px"]],template:function(e,t){1&e&&(n.ɵɵelementStart(0,"form",3),n.ɵɵlistener("onSubmit",(function(){return t.GetQuote()}))("adViewed",(function(e){return t.SetAdView(e)})),n.ɵɵtemplate(1,Qn,27,34,"ng-container",4)(2,Wn,30,26,"ng-container",4),n.ɵɵelement(3,"input",5)(4,"input",6),n.ɵɵelementEnd()),2&e&&(n.ɵɵproperty("unique-click-id",!0)("ad-id",5e3),n.ɵɵadvance(),n.ɵɵproperty("ngIf",2!==t.layoutType||2===t.layoutType&&!t.is_tabletmode),n.ɵɵadvance(),n.ɵɵproperty("ngIf",2===t.layoutType&&t.is_tabletmode),n.ɵɵadvance(),n.ɵɵproperty("value",t.ad_view_id),n.ɵɵadvance(),n.ɵɵproperty("value",t.ad_click_id))},dependencies:[n.NgClass,n.NgIf,ee,n.ErrorToastComponent,n.FormSubmit,Fn],encapsulation:2,changeDetection:0});class Yn{}Yn.ɵfac=function(e){return new(e||Yn)},Yn.ɵmod=n.ɵɵdefineNgModule({type:Yn}),Yn.ɵinj=n.ɵɵdefineInjector({imports:[n.DirectivesModule,n.CommonModule,te,Nn,n.ErrorsModule,n.FormSubmitModule,Pn]});const Kn=(e,t,n,i,s,r)=>({"exp-gal-one-it":e,"exp-gal-two-it":t,"expert-single":n,"blink-end":i,empty:s,"experts-format-a":r});function Zn(e,t){1&e&&(n.ɵɵelementStart(0,"div",11),n.ɵɵelement(1,"i"),n.ɵɵelementEnd())}function Jn(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",12),n.ɵɵelement(1,"h2",13),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("innerHTML",e.header_text||"Ask the Experts",n.ɵɵsanitizeHtml)("ng-speak-when",e.head_focus)}}function Xn(e,t){if(1&e&&n.ɵɵelement(0,"div",14),2&e){const e=n.ɵɵnextContext(2);n.ɵɵproperty("cleanHTML",e.intro)}}function ei(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"span",21),n.ɵɵtext(2),n.ɵɵelementEnd(),n.ɵɵelement(3,"br"),n.ɵɵelementStart(4,"i",22),n.ɵɵtext(5),n.ɵɵelementEnd(),n.ɵɵelement(6,"br"),n.ɵɵelementStart(7,"span",23),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.gotToOne(t.HASHTAG))})),n.ɵɵtext(8,"Read More"),n.ɵɵelementEnd(),n.ɵɵelementContainerEnd()}if(2&e){const e=n.ɵɵnextContext(),t=e.$implicit,i=e.index,s=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-speak-when",s.center_experts&&0===i),n.ɵɵadvance(),n.ɵɵtextInterpolate(t.AUTHOR),n.ɵɵadvance(3),n.ɵɵtextInterpolate(t.CAPTION)}}function ti(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"span",24),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.gotToOne(t.HASHTAG))})),n.ɵɵelementEnd(),n.ɵɵelementContainerEnd()}if(2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵproperty("ng-context",e.AUTHOR)}}function ni(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",15)(1,"div",16)(2,"span",17),n.ɵɵlistener("onClick",(function(){const t=n.ɵɵrestoreView(e).$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.gotToOne(t.HASHTAG))})),n.ɵɵelement(3,"img",18,0),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",19),n.ɵɵtemplate(6,ei,9,3,"ng-container",20)(7,ti,2,1,"ng-container",20),n.ɵɵelementEnd()()}if(2&e){const e=t.$implicit,i=n.ɵɵnextContext(2);n.ɵɵclassProp("gallery-item-logo",i.as_logos),n.ɵɵadvance(2),n.ɵɵproperty("defer-src",e.AVATAR)("zing-no-touch",!0)("ui-hydrate",i.srv_no_avatars),n.ɵɵattribute("aria-label",e.AUTHOR),n.ɵɵadvance(),n.ɵɵclassProp("exp-img-logo",i.as_logos),n.ɵɵproperty("alt",e.AUTHOR),n.ɵɵadvance(3),n.ɵɵproperty("ngIf",!i.as_logos),n.ɵɵadvance(),n.ɵɵproperty("ngIf",i.as_logos)}}function ii(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",25)(1,"span",26),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2);return n.ɵɵresetView(t.showMoreExperts())})),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ng-context",e.more_btn_txt)}}function si(e,t){if(1&e&&(n.ɵɵelementStart(0,"i"),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(3);n.ɵɵadvance(),n.ɵɵtextInterpolate(null==e.expert_full?null:e.expert_full.CAPTION)}}function ri(e,t){if(1&e&&n.ɵɵelement(0,"div",33),2&e){const e=n.ɵɵnextContext(3);n.ɵɵproperty("innerHtml",e.expert_full.CONTENT,n.ɵɵsanitizeHtml)}}function ai(e,t){if(1&e&&n.ɵɵelement(0,"div",34),2&e){const e=n.ɵɵnextContext(3);n.ɵɵproperty("cleanHTML",e.expert_full.CONTENT)("cleanHTML-sett",e.doompurifySett)}}function oi(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"article",27),n.ɵɵelement(1,"img",28),n.ɵɵelementStart(2,"h3",29),n.ɵɵtext(3),n.ɵɵelementEnd(),n.ɵɵtemplate(4,si,2,1,"i",20)(5,ri,1,1,"div",30)(6,ai,1,2,"div",31),n.ɵɵelementStart(7,"button",32),n.ɵɵlistener("onClick",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2);return n.ɵɵresetView(t.goToAll())})),n.ɵɵtext(8),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext(2);n.ɵɵclassProp("exp-logo-profile",e.as_logos),n.ɵɵadvance(),n.ɵɵproperty("src",null==e.expert_full?null:e.expert_full.AVATAR,n.ɵɵsanitizeUrl),n.ɵɵadvance(2),n.ɵɵtextInterpolate(null==e.expert_full?null:e.expert_full.AUTHOR),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!e.as_logos),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!e.as_logos),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.as_logos),n.ɵɵadvance(),n.ɵɵproperty("ngClass",e.back_bt_class),n.ɵɵadvance(),n.ɵɵtextInterpolate(e.back_bt_text)}}function li(e,t){if(1&e&&(n.ɵɵelementStart(0,"section",2),n.ɵɵtemplate(1,Zn,2,0,"div",3)(2,Jn,2,2,"div",4)(3,Xn,1,1,"div",5),n.ɵɵelementStart(4,"div",6)(5,"div",7),n.ɵɵtemplate(6,ni,8,11,"div",8)(7,ii,2,1,"div",9)(8,oi,9,9,"article",10),n.ɵɵelementEnd()()()),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("ngClass",n.ɵɵpureFunction6(13,Kn,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),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.loading),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!e.layout_format),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.intro&&!e.expert_single),n.ɵɵadvance(),n.ɵɵclassProp("all",!e.expert_single),n.ɵɵproperty("scroll-to",e.center_experts),n.ɵɵadvance(),n.ɵɵproperty("scroll-to",e.scrollsingle)("scrolloffset",e.expert_offset),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",e.experts),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.hasmoreexperts&&!e.expert_single),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.expert_single)}}c.import("css:/components/experts-gallery.css").then((()=>{}),(()=>{}));class ci{constructor(e){this._zone=e,this.experts=[],this.expert_single=!1,this.expert_offset=0,this.max_experts=Number.MAX_SAFE_INTEGER,this.header_text="",this.srv_no_avatars=!1,this.no_scroll_all=!1,this.current_page=0,this.questions=[],this.scrollall=!1,this.head_focus=!1,this.center_experts=!1,this.scrollsingle=!1,this.loading=!1,this.emptydata=!1,this.norender=!1,this.dataerror=!1,this.hasmoreexperts=!1,this.isnode=!1,this.doompurifySett={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript","iframe"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","src"]},this.as_logos=!1,this.is_initial=!0,this._rendered=!1,this._hashtaglist={},this._refreshonurl=!1,this.refreshdelay=1,this.asyncdata=!1,this.server_render=!1,this.layout_format=0,this.back_bt_text="Back to All Experts",this.back_bt_class="btn blue",this.more_btn_txt="More Experts",this.changedExpert=new n.EventEmitter,this.tagMatch=new n.EventEmitter,this._servertransitwait=!0}get hashname(){return this._hashname}set hashname(e){this._hashname=e,e&&this._rendered?this._goToExpert(e):this.expert_single=!1}set data(e){this._data=e,e&&n.isArray(e.expertsContent)?(n.$httpAbort("experts-gallery"),this.expert_single=!1,this._parseExperts(this._data),this.asyncdata&&this._setExpertsPagination(),!this.emptydata&&this._hashname&&this._goToExpert(this._hashname),e.aslogos&&(this.as_logos=!0)):e&&!e.expertsContent&&(this.emptydata=!0)}get data(){return this._data}get urlpath(){return this._urlpath}set urlpath(e){let t=e&&e!==this._urlpath;this._urlpath=e,t&&(this.urlrefresh=this.urlrefresh)}set urlrefresh(e){this._refreshonurl=e,e&&this._urlpath&&!this._data&&!this.asyncdata?this._refreshonurl=!0:this._refreshonurl=!1}get urlrefresh(){return this._refreshonurl}_goToExpert(e,t){this.is_initial=!1;let i,s=()=>{this.scrollsingle=!0,setTimeout((()=>{this.scrollsingle=!1}),100)};e=e.toString().toLowerCase(),this._hashtaglist.hasOwnProperty(e)&&this._data.expertsContent[this._hashtaglist[e]]?(this.expert_single=!0,this.expert_full!==this._data.expertsContent[this._hashtaglist[e]]&&(this.expert_full=this._data.expertsContent[this._hashtaglist[e]],n.reqAnimationFrame((()=>{this._zone.run((()=>{if(n.isWeb()&&this._servertransitwait){if(!t){let e=n.Events.subscribe("server:transitscroll",(t=>{"done"!=t&&"none"!=t||s(),setTimeout((()=>{e&&e.unsubscribe()}))}))}this._servertransitwait=!1}else t||s()}))}))),i=!0):i=!1,this.tagMatch.emit(i)}_storeTags(){this._hashtaglist={};for(let e=0,t=this.experts.length;e<t;e++){let t=this.experts[e].HASHTAG.substring(1);t=t.toLowerCase(),this._hashtaglist[t]=e+(0===this.current_page?0:this.current_page-1)*this.max_experts}}_parseExperts(e){e.expertsContent.length>0?(this.experts=e.expertsContent,this.hasmoreexperts=!!this.max_experts&&e.expertsContent.length>this.max_experts,this.intro=e.expertsIntro||null,this._storeTags(),this._hashname&&this._goToExpert(this._hashname),this.emptydata=!1):(this.emptydata=!0,this._hashtaglist=[])}_setExpertsPagination(){this.hasmoreexperts=!!this.max_experts&&this.experts.length>this.max_experts,this.experts=(this.experts||[]).slice(this.current_page*this.max_experts,++this.current_page*this.max_experts)}_throwError(e,t){this.dataerror=!0,n.RavenRequestFail(e,"NG Experts Gallery : Data Request Error",{action:t})}_getExpertsByUrl(){this.expert_single=!1,n.$httpAbort("experts-gallery"),this.loading=!0,n.$http({method:"GET",url:n.ajaxUrl(),id:"experts-gallery",before:()=>{this.loading=!0},after:()=>{this.loading=!1},data:{action:"Posts.GetExpertsGallery",path:this.urlpath},events:!1}).then((e=>{if(e&&!e.error){let t=e.data;n.isObject(t)&&n.isArray(t.expertsContent)?(this._data=t,this._parseExperts(t)):this.emptydata=!0}else this._throwError({data:e,status:200,type:"response"},this.urlpath)}),(e=>{this._throwError(e,this.urlpath)}))}ngOnInit(){this.isnode=n.isNode(),this.isnode?this.server_render?this.norender=!this._data&&!this.asyncdata:this.norender=!0:(!this._data&&this.urlpath&&this.urlrefresh&&!this.asyncdata?this.loading=!0:this.loading=!1,this.loading||this.asyncdata||this.data||(this.emptydata=!0),this.urlrefresh&&setTimeout((()=>{this._getExpertsByUrl()}),this.refreshdelay),this.as_logos?(this.more_btn_txt||(this.more_btn_txt="More Retailers"),this.back_bt_text||(this.back_bt_text="Back to All Retailers")):(this.more_btn_txt||(this.more_btn_txt="More Experts"),this.back_bt_text||(this.back_bt_text="Back to All Experts"))),this.asyncdata||this._setExpertsPagination()}ngAfterViewInit(){this._rendered=!0,this.isnode?this._servertransitwait=!1:this.data&&!this.emptydata&&this._hashname?n.reqAnimationFrame((()=>this._goToExpert(this._hashname))):this.asyncdata||(this._servertransitwait=!1)}ngOnDestroy(){n.$httpAbort("experts-gallery")}goToAll(){this.expert_single=!1,this.scrollsingle=!1,this.expert_full=null,this.no_scroll_all||(this.scrollall=!0),this.head_focus=!0,setTimeout((()=>{this.no_scroll_all||(this.scrollall=!1),this.head_focus=!1}),100),this.changedExpert.emit(null)}gotToOne(e){let t=e.substring(1);this.expert_full=null,this._goToExpert(t),this.changedExpert.emit(t)}showMoreExperts(){var e=this._data.expertsContent,t=e.length;this.experts=e.slice(this.current_page*this.max_experts,++this.current_page*this.max_experts),this._storeTags(),this.current_page&&this.current_page*this.max_experts>=t&&(this.current_page=0),this.center_experts=!1,setTimeout((()=>{this.center_experts=!0,n.reqAnimationFrame((()=>{this.center_experts=!1}))}))}}ci.ɵfac=function(e){return new(e||ci)(n.ɵɵdirectiveInject(n.NgZone))},ci.ɵcmp=n.ɵɵdefineComponent({type:ci,selectors:[["div","id","experts-gallery"]],inputs:{expert_offset:[0,"scroll-offset","expert_offset"],max_experts:[0,"max-experts","max_experts"],header_text:[0,"header-text","header_text"],srv_no_avatars:[0,"ui-hydrate-avatars","srv_no_avatars"],no_scroll_all:[0,"no-scroll-all","no_scroll_all"],hashname:[0,"hashtag","hashname"],data:"data",urlpath:"urlpath",urlrefresh:"urlrefresh",refreshdelay:"refreshdelay",asyncdata:"asyncdata",server_render:[0,"server-render","server_render"],layout_format:[0,"format","layout_format"],back_bt_text:[0,"back-bt-text","back_bt_text"],back_bt_class:[0,"back-bt-class","back_bt_class"],more_btn_txt:[0,"more-bt-text","more_btn_txt"]},outputs:{changedExpert:"changedExpert",tagMatch:"tagMatch"},standalone:!1,decls:1,vars:1,consts:[["deferImg",""],["class","experts-gallery",3,"ngClass","scroll-to",4,"ngIf"],[1,"experts-gallery",3,"ngClass","scroll-to"],["class","progress-indicator visible",4,"ngIf"],["class","header-part",4,"ngIf"],["class","intro-part with-links",3,"cleanHTML",4,"ngIf"],[1,"container",3,"scroll-to"],[1,"gallery",3,"scroll-to","scrolloffset"],["class","gallery-item",3,"gallery-item-logo",4,"ngFor","ngForOf"],["class","more-experts",4,"ngIf"],["class","text-select expert-profile ng-enter-element slide",3,"exp-logo-profile",4,"ngIf"],[1,"progress-indicator","visible"],[1,"header-part"],["ng-speak","header",3,"innerHTML","ng-speak-when"],[1,"intro-part","with-links",3,"cleanHTML"],[1,"gallery-item"],[1,"gallery-icon"],["tabindex","0","role","img button","zing-touch","",1,"gall-ic-action",3,"onClick","defer-src","zing-no-touch","ui-hydrate"],["height","110","width","110","tabindex","-1","aria-hidden","true",1,"expert-image",3,"alt"],[1,"wp-caption-text","gallery-caption"],[4,"ngIf"],["tabindex","0","ng-speak","header",1,"text-select",3,"ng-speak-when"],[1,"text-select"],["role","button","tabindex","0","zing-touch","",1,"read-more","touch-element-cl",3,"onClick"],["zing-touch","","role","button",1,"read-more","touch-element-cl",3,"onClick","ng-context"],[1,"more-experts"],["zing-touch","","role","button","tabindex","0",3,"onClick","ng-context"],[1,"text-select","expert-profile","ng-enter-element","slide"],["height","200","width","200","alt","",1,"profile-img",3,"src"],["ng-speak","header"],["class","description-text",3,"innerHtml",4,"ngIf"],["class","description-text",3,"cleanHTML","cleanHTML-sett",4,"ngIf"],["zing-touch","",1,"back-to-xprts",3,"onClick","ngClass"],[1,"description-text",3,"innerHtml"],[1,"description-text",3,"cleanHTML","cleanHTML-sett"]],template:function(e,t){1&e&&n.ɵɵtemplate(0,li,9,20,"section",1),2&e&&n.ɵɵproperty("ngIf",!t.norender)},dependencies:[n.TouchGestures,n.ngZenScroll,n.ngCleanHTML,n.ngCleanBind,n.ngSpeak,n.NgClass,n.NgForOf,n.NgIf,O],encapsulation:2});class di{}di.ɵfac=function(e){return new(e||di)},di.ɵmod=n.ɵɵdefineNgModule({type:di}),di.ɵinj=n.ɵɵdefineInjector({imports:[n.DirectivesModule,n.CommonModule,R,n.NgFocusModule]});const hi=new Date,ui=["January","February","March","April","May","June","July","August","September","October","November","December"],pi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gi(e,t){if(1&e&&(n.ɵɵelementStart(0,"h2"),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵtextInterpolate2(" Best ",e.title," in Nearby ",e.type," ")}}function _i(e,t){if(1&e&&(n.ɵɵelementStart(0,"h2"),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵtextInterpolate1(" ",e.fullTitle," ")}}function mi(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",9)(1,"a",10),n.ɵɵtext(2),n.ɵɵelementEnd()()),2&e){const e=t.$implicit;n.ɵɵadvance(),n.ɵɵproperty("zing-url",!0)("href",e.href,n.ɵɵsanitizeUrl),n.ɵɵadvance(),n.ɵɵtextInterpolate1(" ",e.label," ")}}function fi(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",2)(1,"div",3)(2,"h2"),n.ɵɵtext(3),n.ɵɵelementEnd()()()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(3),n.ɵɵtextInterpolate2(" Other Types of ",e.others.type," in ",e.others.loc," ")}}function vi(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",9)(1,"a",10),n.ɵɵtext(2),n.ɵɵelementEnd()()),2&e){const e=t.$implicit;n.ɵɵadvance(),n.ɵɵproperty("zing-url",!0)("href",e.href,n.ɵɵsanitizeUrl),n.ɵɵadvance(),n.ɵɵtextInterpolate1(" ",e.label," ")}}function bi(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",5),n.ɵɵtemplate(1,vi,3,3,"div",6),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ngForOf",e.others.links)}}function xi(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",1)(1,"div",2)(2,"div",3),n.ɵɵtemplate(3,gi,2,2,"h2",4)(4,_i,2,1,"h2",4),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",5),n.ɵɵtemplate(6,mi,3,3,"div",6),n.ɵɵelementEnd(),n.ɵɵtemplate(7,fi,4,2,"div",7)(8,bi,2,1,"div",8),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(3),n.ɵɵproperty("ngIf",!e.fullTitle),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.fullTitle),n.ɵɵadvance(2),n.ɵɵproperty("ngForOf",e.links),n.ɵɵadvance(),n.ɵɵproperty("ngIf",null==e.others.links?null:e.others.links.length),n.ɵɵadvance(),n.ɵɵproperty("ngIf",null==e.others.links?null:e.others.links.length)}}class wi{get data(){return this._data}set data(e){if(this._data=e,this._is_ready){if(this.links=[],this._data){if(this._data.is_city_search){this.type="Cities";for(let e=0,t=this._data.cities.length;e<t;e++){const t=this._data.cities[e];if("object"==typeof t&&t.hasOwnProperty("label")&&t.hasOwnProperty("href"))this.links.push(t);else if("string"==typeof t){let e=t.split("-"),n=e.slice(0,e.length-1).join(" ");e.slice(e.length-1).join(" "),n=n.replace(/(^[a-z]|\s[a-z])/g,(e=>e.toUpperCase())),this.links.push({label:this.title+" in "+n,href:this.generateHref(t)})}}}else if(this._data.is_state_search){this.type="States";for(let e=0,t=this._data.states.length;e<t;e++){const t=this._data.states[e];if("object"==typeof t&&t.hasOwnProperty("label")&&t.hasOwnProperty("href"))this.links.push(t);else if("string"==typeof t){let e=t.split("-").join(" ").replace(/(^[a-z]|\s[a-z])/g,(e=>e.toUpperCase()));this.links.push({label:this.title+" in "+e,href:this.generateHref(t)})}}}else Array.isArray(this._data)&&(this.links=this._data);this.others={},this._data.others&&(this.others=this._data.others)}this.cd.detectChanges()}else this.cd.detectChanges()}constructor(e,t,n,i){this.route=e,this.cd=t,this.renderer=n,this.element=i,this.type="-",this.links=[],this.others={},this.title="",this.fullTitle="",this.forceVisible=!1,this.base_url=null,this._is_ready=!1,this._data={}}ngOnInit(){this._is_ready=!0,this._data&&(this.data=this._data)}generateHref(...e){let t=[],n="";try{n=this.base_url||this.route.snapshot.parent.url[0].path}catch(e){console.error(this,e.message)}n=n.trim().toLowerCase(),n=n.replace(/(^\/|\/$)/g,""),t.push((n||"").trim().toLowerCase());for(let n=0,i=e&&e.length;n<i;n++){let i=e[n];i&&"string"==typeof i&&i.length&&(i=i.trim().toLowerCase(),i=i.replace(/(^\/|\/$)/g,""),i=i.replace(/\s+/g,"-"),t.push(i))}return"/"+t.join("/")}}wi.ɵfac=function(e){return new(e||wi)(n.ɵɵdirectiveInject(n.ActivatedRoute),n.ɵɵdirectiveInject(n.ChangeDetectorRef),n.ɵɵdirectiveInject(n.Renderer2),n.ɵɵdirectiveInject(n.ElementRef))},wi.ɵcmp=n.ɵɵdefineComponent({type:wi,selectors:[["div","cross-links",""]],inputs:{title:"title",fullTitle:[0,"full-title","fullTitle"],forceVisible:[0,"force-visible","forceVisible"],base_url:[0,"base-url","base_url"],data:"data"},standalone:!1,decls:1,vars:1,consts:[["id","cross-links","class","cross-links",4,"ngIf"],["id","cross-links",1,"cross-links"],[1,"header-part"],[1,"container","no-lr"],[4,"ngIf"],[1,"container","clearfix"],["class","oval",4,"ngFor","ngForOf"],["class","header-part",4,"ngIf"],["class","container clearfix",4,"ngIf"],[1,"oval"],["zing-touch","","rel","noreferrer noopener",1,"link","crosslink",3,"zing-url","href"]],template:function(e,t){1&e&&n.ɵɵtemplate(0,xi,9,5,"div",0),2&e&&n.ɵɵproperty("ngIf",t.forceVisible||t.data&&(t.data.is_city_search&&t.data.cities&&t.data.cities.length||t.data.is_state_search&&t.data.states&&t.data.states.length))},dependencies:[n.NgForOf,n.NgIf,n.TouchGestures],encapsulation:2,changeDetection:0});class yi{}yi.ɵfac=function(e){return new(e||yi)},yi.ɵmod=n.ɵɵdefineNgModule({type:yi}),yi.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,n.DirectivesModule]});const Ci=["mainContainer"],Ei=["adDisclosure"],ki=["authorName"],qi=e=>({"no-link":e});function Ti(e,t){if(1&e&&n.ɵɵelement(0,"h2",26),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("innerHTML",e.widget_title,n.ɵɵsanitizeHtml)}}function Ii(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"div",32),n.ɵɵlistener("onTap",(function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.jumpToAnchor(t.jumpTo))})),n.ɵɵelementStart(2,"div",33)(3,"div",34),n.ɵɵelement(4,"img",35),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"span",36),n.ɵɵtext(6),n.ɵɵelementEnd()()(),n.ɵɵelementContainerEnd()}if(2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵproperty("zing-no-touch",!0),n.ɵɵattribute("aria-label",e.category),n.ɵɵadvance(3),n.ɵɵproperty("alt",e.name)("src",e.avatar,n.ɵɵsanitizeUrl),n.ɵɵadvance(),n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(6,qi,e.emptyEl)),n.ɵɵadvance(),n.ɵɵtextInterpolate(e.category)}}function Si(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"a",37)(2,"div",33)(3,"div",34),n.ɵɵelement(4,"img",35),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"span",38),n.ɵɵtext(6),n.ɵɵelementEnd()()(),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("href",t.baseUrl+"/r/?id="+e.id+"i",n.ɵɵsanitizeUrl),n.ɵɵattribute("aria-label",e.category),n.ɵɵadvance(3),n.ɵɵproperty("alt",e.name)("src",e.avatar,n.ɵɵsanitizeUrl),n.ɵɵadvance(2),n.ɵɵtextInterpolate(e.category)}}function Li(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"div",30),n.ɵɵtemplate(2,Ii,7,8,"ng-container",31)(3,Si,7,5,"ng-container",31),n.ɵɵelementEnd(),n.ɵɵelementContainerEnd()),2&e){const e=t.$implicit;n.ɵɵadvance(2),n.ɵɵproperty("ngIf",!e.redirect),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.redirect)}}function Ai(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",23)(1,"div",9)(2,"h2",27),n.ɵɵtext(3,"Cheapest Insurance Rates by Category"),n.ɵɵelementEnd(),n.ɵɵelementStart(4,"div",28),n.ɵɵtemplate(5,Li,4,2,"ng-container",29),n.ɵɵelementEnd()()()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(5),n.ɵɵproperty("ngForOf",e.ccibw)}}function zi(e,t){if(1&e&&(n.ɵɵelementStart(0,"h2",42),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵtextInterpolate1(" ",e.footer_data.title," ")}}function Mi(e,t){if(1&e&&n.ɵɵelement(0,"p",43),2&e){const e=n.ɵɵnextContext(2);n.ɵɵproperty("cleanHTML",e.footer_data.content)("cleanHTML-sett",e.purifySett)}}function Vi(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",39)(1,"div",9),n.ɵɵtemplate(2,zi,2,1,"h2",40)(3,Mi,1,2,"p",41),n.ɵɵelementEnd()()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(2),n.ɵɵproperty("ngIf",e.footer_data.title),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.footer_data.content)}}function Ni(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",23)(1,"div",9)(2,"div",44),n.ɵɵlistener("changedExpert",(function(t){n.ɵɵrestoreView(e);const i=n.ɵɵnextContext();return n.ɵɵresetView(i.changedExpert(t))})),n.ɵɵelementEnd()()()}if(2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(2),n.ɵɵproperty("header-text",e.expertsheader)("back-bt-text","All Experts")("data",e.experts)("max-experts",6)("scroll-offset",-120)("refreshdelay",2e3)("urlrefresh",!0)("hashtag",e.expertstag)("server-render",!0)}}function Oi(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",23),n.ɵɵelement(1,"div",45),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext();n.ɵɵadvance(),n.ɵɵproperty("full-title",e.relatedUriTitle)("data",e.relatedUris)("force-visible",!0)}}class Ri extends n.RoutePage{constructor(e,t,i,s){super(e),this.route=e,this._scrollerService=t,this._router=i,this.cdRef=s,this.subtitle="Compare and save with instant price estimates from the top auto insurance companies.",this.is_node=!1,this.qnauri="",this.qnadata=null,this.stateName="",this.has_experts=!1,this.expertsqurl="",this.expertstag="",this.expertsheader="",this.scrollingToDisclosure=!1,this.doScroll=!1,this.is_loading=!1,this.is_populating_filters=!1,this.cciWidgetOptions=["Auto"],this.cciWidgetValue="Auto",this.truncateBreakwords={416:35,541:50},this.queries={},this.total_pages=1,this.current_page=1,this.ccibw=[],this.baseUrl="",this.purifySett={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","target"]},this.widget_state="Find Insurers",this.qna_title="Questions & Answers",this.relatedUris=[],this.relatedUriTitle="Related Links",this._popupcontentAjax=!1,this.author_url=`/profile/${n.isProd()?66756380:26235026}i`,this.stateName=e.snapshot.paramMap.get("uri")}onRouteSuccess(e){var t;let i=e&&e.data;i.RELATED_LINKS&&(this.relatedUris=i.RELATED_LINKS.map((e=>({label:e.LINK_NAME,href:e.LINK_URL})))),i.RELATED_LINKS_HEADLINE&&(this.relatedUriTitle=i.RELATED_LINKS_HEADLINE),this.footer_data=i.FOOTER||{},i.QA_HEADER&&(this.qna_title=i.QA_HEADER),i.DESCRIPTION_HEADER&&(this.title=i.DESCRIPTION_HEADER),i.STATE&&(this.widget_state="Find "+i.STATE+" Insurers"),i.DESCRIPTION_SEC&&(this.widget_title=i.DESCRIPTION_SEC),i.LAST_UPDT&&(this.date_post=function(e,t={}){var i;if(n.isNumber(e)||n.isString(e)){if(!n.isNumber(e)&&e&&e.indexOf("T")<0){if(e.indexOf("-")>-1&&(e=e.replace(/-/g,"/")),e.indexOf("/")<0)return""}else if(!e)return"";i=new Date(e)}else{if(!e)return"";i=e}let s=!1;(t.noCurrentYear&&i.getFullYear()==hi.getFullYear()||t.noYear)&&(s=!0);var r=s?" ":", ",a=i.getMonth(),o=i.getDate(),l=i.getFullYear();let c;t.nthDate&&(o=o.toString()+function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(o)),t.twoDigitsDate&&!t.nthDate&&(o=String(o).padStart(2,"0")),c=t.shortM?pi:ui;let d=c[a]+(t.noDate?" ":" "+o+r)+(s?"":l);return t.withTime&&(d+=" at "+i.toTimeString().substring(0,5)),d}(new Date(i.LAST_UPDT),{shortM:!0})),i.DESCRIPTION_SUB_HEADLINE&&(this.subtitle=i.DESCRIPTION_SUB_HEADLINE),i.DESCRIPTION&&(this.description=i.DESCRIPTION),i.STATE_NAME&&(this.qna_intro="Finding the cheapest car insurance in "+i.STATE_NAME+' can be tough. But you&rsquo;ve got the knowledgeable WalletHub community on your side. Other consumers have a wealth of knowledge to share, and we encourage everyone to do so while respecting our <a href="/community/guidelines/" target="_blank" class="link">content guidelines</a>.'),i&&i.EXPERTS&&i.EXPERTS.length>0&&(this.experts={expertsContent:i.EXPERTS,expertsIntro:i.EXPERTSINTRO},this.expertsheader=i.EXPERTSHEADER,this.has_experts=!0),this._review_author_bio=i.authorBio,i.CCIBW&&(this.ccibw=i.CCIBW),this.qnauri=i.qauri||i.qnauri||"",this.qnadata=i.qna||{pages:0,current_page:1,total_questions:0,questions:[]},this.qna_presentation=null!==(t=i.QA_PRESENTATION)&&void 0!==t?t:"First full version, rest short version",this.num_of_full_qna=n.getNumOfFullQna(i),this.questions_count=n.getQuestionsCount(i),this.is_node=n.isNode()}ngOnInit(){super.ngOnInit(),this.baseUrl=n.baseUrl()}showAuthorPopup(e){e.preventDefault();if(this._review_author_bio&&(this._popupcontentAjax=!0,this.popupcontent='<h3>Candace Baker</h3><p class="auth-cap">Car Insurance Writer</p><p>'+this._review_author_bio+`<br/><a href="${this.author_url}" class="link regular-font-weight" target="_blank">Full Author Bio</a></p>`,this.authorName.content=this.popupcontent),this._popupcontentAjax)this.authorName.OpenToolTip(e);else{let t="Car Insurance Writer";this.popupcontent='<div class="progress-indicator visible"><i></i></div>',this.authorName.OpenToolTip(e);let i=n.isProd()?66756380:26235026;n.$http({method:"GET",url:n.baseUrl()+"/ajax.php",data:{action:"User.GetShortBio",uid:i},silent:!0}).then((n=>{this._popupcontentAjax=!0,n.message?this.popupcontent='<h3>Candace Baker</h3><p class="auth-cap">'+t+"</p><p>"+n.message+`<br/><a href="${this.author_url}" class="link regular-font-weight" target="_blank">Full Author Bio</a></p>`:this.popupcontent='<h3>Candace Baker</h3><p class="auth-cap">'+t+"</p>",this.authorName.content=this.popupcontent,setTimeout((()=>{this.authorName.ReloadTooltip(e)}),500)}))}}ngAfterViewInit(){if(!n.isNode()){if(Array.isArray(this.ccibw))for(let e=0;e<this.ccibw.length;e++){document.getElementById(this.ccibw[e].jumpTo)||this.ccibw[e].redirect||(this.ccibw[e].emptyEl=!0),this.cdRef.detectChanges()}this._route.fragment.subscribe((e=>{e&&n.tryCatch((()=>{let t=n.objectFromParam(e,null,!1);t.hasOwnProperty("experts")&&t.experts?n.reqAnimationFrame((()=>{this.expertstag=t.experts})):this.jumpToAnchor(e)}))}))}}jumpToAnchor(e=""){e&&setTimeout((()=>{let t=`a[name=${e}]`,n=null;try{n=document.querySelector(t),n||(n=document.querySelector("#"+e))}catch(e){}n&&this._scrollerService.scrollTo({target:n,timing:300})}))}scrollToDisclosure(e){this._scrollerService.scrollTo({target:this.adDisclosure.nativeElement}),this.scrollingToDisclosure&&clearTimeout(this.scrollingToDisclosure),this.scrollingToDisclosure=setTimeout((()=>{this.scrollingToDisclosure=!1}),2e3)}changedExpert(e){this.expertstag=e,this._router.navigate([],{fragment:e?"experts="+e:null})}}Ri.ɵfac=function(e){return new(e||Ri)(n.ɵɵdirectiveInject(n.ActivatedRoute),n.ɵɵdirectiveInject(n.ScrollerService),n.ɵɵdirectiveInject(n.Router),n.ɵɵdirectiveInject(n.ChangeDetectorRef))},Ri.ɵcmp=n.ɵɵdefineComponent({type:Ri,selectors:[["div","cheap-car-insurance",""]],viewQuery:function(e,t){if(1&e&&(n.ɵɵviewQuery(Ci,5),n.ɵɵviewQuery(Ei,5),n.ɵɵviewQuery(ki,5,fn)),2&e){let e;n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.mainContainer=e.first),n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.adDisclosure=e.first),n.ɵɵqueryRefresh(e=n.ɵɵloadQuery())&&(t.authorName=e.first)}},hostAttrs:["cheap-car-insurance","ivy"],standalone:!1,features:[n.ɵɵInheritDefinitionFeature],decls:31,vars:27,consts:[["authorName",""],[1,"page-header-top","nobg"],[1,"aw-hero-wrap"],[1,"aw-hero-bg"],[1,"aw-container"],[1,"aw-title",3,"cleanHTML"],[1,"page-header-pr","semi-bold-font",3,"cleanHTML"],[1,"content-container"],[1,"edge-box","with-widget"],[1,"page-content"],["class","box-head small-space",3,"innerHTML",4,"ngIf"],["id","content-ciw",3,"type","button-name"],[1,"edge-box","edge-content","with-author"],[1,"page-content","Byline--root"],[1,"author-container","Byline--author"],[1,"author-avatar","Byline--picture","Byline--author-pic"],[1,"author-dt"],["rel","author","zing-touch","",1,"author-name",3,"onClick","href","zing-no-touch"],[1,"block-mob",3,"innerHTML"],[1,"author-tool-tip",3,"popupcontent","popup-relative","popupbutton"],["zing-touch","",1,"box-content","Byline--content",3,"ng-truncate","breakwords","breakpoint"],["class","edge-box ",4,"ngIf"],["class","edge-box edge-content",4,"ngIf"],[1,"edge-box"],["id","qna-box",3,"toggle-schema","type","use-intro","product-questions","product-referer","section-title","presentation","full-qna","questions-count"],["class","edge-box",4,"ngIf"],[1,"box-head","small-space",3,"innerHTML"],[1,"box-head","ccibw-heading"],[1,"ccibw-wrapper"],[4,"ngFor","ngForOf"],[1,"ccibw-item"],[4,"ngIf"],["role","link","zing-touch","",1,"ccibw-bal",3,"onTap","zing-no-touch"],["aria-hidden","true",1,"ccibw"],[1,"ccibw-img-container"],["aria-hidden","true",1,"ccibw-img",3,"alt","src"],["aria-hidden","true",1,"ccibw-btn","bold-font",3,"ngClass"],["role","link","zing-touch","","target","_blank","rel","nofollow",1,"ccibw-bal",3,"href"],["aria-hidden","true",1,"ccibw-btn","bold-font"],[1,"edge-box","edge-content"],["class","box-head",4,"ngIf"],[3,"cleanHTML","cleanHTML-sett",4,"ngIf"],[1,"box-head"],[3,"cleanHTML","cleanHTML-sett"],["id","experts-gallery",3,"changedExpert","header-text","back-bt-text","data","max-experts","scroll-offset","refreshdelay","urlrefresh","hashtag","server-render"],["cross-links","",3,"full-title","data","force-visible"]],template:function(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",1)(1,"div",2),n.ɵɵelement(2,"div",3),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"div",4),n.ɵɵelement(4,"h1",5)(5,"p",6),n.ɵɵelementEnd()(),n.ɵɵelementStart(6,"div",7)(7,"div",8)(8,"div",9),n.ɵɵtemplate(9,Ti,1,1,"h2",10),n.ɵɵelement(10,"car-insurance-widget",11),n.ɵɵelementEnd()(),n.ɵɵelementStart(11,"div",12)(12,"div",13)(13,"div",14),n.ɵɵelement(14,"div",15),n.ɵɵelementStart(15,"div",16),n.ɵɵtext(16," by "),n.ɵɵelementStart(17,"a",17),n.ɵɵlistener("onClick",(function(i){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.showAuthorPopup(i))})),n.ɵɵtext(18,"Candace Baker"),n.ɵɵelementEnd(),n.ɵɵtext(19,", Car Insurance Writer "),n.ɵɵelement(20,"span",18)(21,"tool-tip",19,0),n.ɵɵelementEnd()(),n.ɵɵelement(23,"div",20),n.ɵɵelementEnd()(),n.ɵɵtemplate(24,Ai,6,1,"div",21)(25,Vi,4,2,"div",22),n.ɵɵelementStart(26,"div",23)(27,"div",9),n.ɵɵelement(28,"section",24),n.ɵɵelementEnd()(),n.ɵɵtemplate(29,Ni,3,9,"div",25)(30,Oi,2,3,"div",25),n.ɵɵelementEnd()}2&e&&(n.ɵɵadvance(4),n.ɵɵproperty("cleanHTML",t.title),n.ɵɵadvance(),n.ɵɵproperty("cleanHTML",t.subtitle),n.ɵɵadvance(4),n.ɵɵproperty("ngIf",t.widget_title),n.ɵɵadvance(),n.ɵɵproperty("type",t.cciWidgetValue)("button-name",t.widget_state),n.ɵɵadvance(7),n.ɵɵproperty("href",t.author_url,n.ɵɵsanitizeUrl)("zing-no-touch",!0),n.ɵɵadvance(3),n.ɵɵproperty("innerHTML",t.date_post,n.ɵɵsanitizeHtml),n.ɵɵadvance(),n.ɵɵproperty("popupcontent",t.popupcontent)("popup-relative",!0)("popupbutton",!1),n.ɵɵadvance(2),n.ɵɵproperty("ng-truncate",t.description)("breakwords",t.truncateBreakwords)("breakpoint",767),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.ccibw.length>0),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.footer_data),n.ɵɵadvance(3),n.ɵɵproperty("toggle-schema",!0)("type",0)("use-intro",t.qna_intro)("product-questions",t.qnadata)("product-referer",t.qnauri)("section-title",t.qna_title)("presentation",t.qna_presentation)("full-qna",t.num_of_full_qna)("questions-count",t.questions_count),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.has_experts),n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.relatedUris&&t.relatedUris.length))},dependencies:[n.TouchGestures,n.ngCleanHTML,n.NgClass,n.NgForOf,n.NgIf,Ft,ci,Gn,qe,fn,wi],encapsulation:2});class ji extends n.RouteGuard{constructor(e){super(e),this._router=e}onEnter(e){return new Promise(((t,i)=>{n.AppData.hasGroup(this._datagroup)?t(n.AppData.group(this._datagroup)):n.isCordova()?n.$http({method:"GET",url:`${n.baseUrl()}/d2${e.url.split("?")[0]}/data.json`,query:{stamp:n.uniqid()},retry:1,events:!1}).catch((()=>n.$http({method:"GET",url:`${n.baseUrl()}/mobile-data`,query:Object.assign({urijs:e.url.split("?")[0]},e.query),retry:2}))).then((e=>{if(!e||e.error)return i({internal:!0});t(e)})).catch((()=>{i({internal:!0})})):t({})}))}}class Hi extends ji{constructor(e){super(e),this._datagroup="tools-cheap-car-insurance"}}Hi.ɵfac=function(e){return new(e||Hi)(n.ɵɵinject(n.Router))},Hi.ɵprov=n.ɵɵdefineInjectable({token:Hi,factory:Hi.ɵfac});class Fi{}Fi.ɵfac=function(e){return new(e||Fi)},Fi.ɵmod=n.ɵɵdefineNgModule({type:Fi}),Fi.ɵinj=n.ɵɵdefineInjector({providers:[Hi],imports:[n.DirectivesModule,n.CommonModule,n.RouterModule,n.RouterModule.forChild([{path:"",pathMatch:"prefix",component:Ri,canActivate:[(e,t)=>n.inject(Hi).canActivate(e,t)],resolve:{data:Hi}}]),Pt,di,Tn,Ln,te,ie,Yn,Ie,bn,yi]}),e.CheapCarInsurancePage=Ri,e.DataGuard=ji,e.Guard=Hi,e.RoutePageModule=Fi}));