define(["exports","./edu-main","./edu-vendor","./route-ui-module","systemjs","./ci-widget","./edu-sections","css:/base.css","css:/style-web.css","css:/header-web.css","inline-views:/header-tpl","npm:tablesort/dist/tablesort.min.js","css:/pages/profile/review-star.css","css:/icons-social.css","npm:navigo/lib/navigo.js"],function(e,t,n,s,i,r,o,a,l,u,c,d,p,h,_){"use strict";function g(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var m=g(i).default;const f=new Map;function v(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||f.has(e))return;let t=null;const n=window.getComputedStyle(e);function s({restoreTextAlign:i=null,testForHeightReduction:r=!0}){let o,a,l=n.overflowY;if(0!==e.scrollHeight&&("vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),r&&(o=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=""),a="content-box"===n.boxSizing?e.scrollHeight-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),"none"!==n.maxHeight&&a>parseFloat(n.maxHeight)?("hidden"===n.overflowY&&(e.style.overflow="scroll"),a=parseFloat(n.maxHeight)):"hidden"!==n.overflowY&&(e.style.overflow="hidden"),e.style.height=a+"px",i&&(e.style.textAlign=i),o&&o(),t!==a&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),t=a),l!==n.overflow&&!i)){const t=n.textAlign;"hidden"===n.overflow&&(e.style.textAlign="start"===t?"end":"start"),s({restoreTextAlign:t,testForHeightReduction:!0})}}function i(){s({testForHeightReduction:!1,restoreTextAlign:null})}const r=function(){let t=e.value;return()=>{s({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}}(),o=(t=>{e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",i),e.removeEventListener("input",r),window.removeEventListener("resize",i),Object.keys(t).forEach(n=>e.style[n]=t[n]),f.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",o),e.addEventListener("autosize:update",i),e.addEventListener("input",r),window.addEventListener("resize",i),e.style.overflowX="hidden",e.style.wordWrap="break-word",f.set(e,{destroy:o,update:i}),i()}function q(e){const t=f.get(e);t&&t.destroy()}function w(e){const t=f.get(e);t&&t.update()}let b=null;"undefined"==typeof window?(b=e=>e,b.destroy=e=>e,b.update=e=>e):(b=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],e=>v(e)),e),b.destroy=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],q),e),b.update=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],w),e));var x=b;class y{set updateAutoSize(e){t.isNode()||this._zone.runOutsideAngular(()=>{1==e&&t.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(){!t.isNode()&&this._el.nativeElement&&this._zone.runOutsideAngular(()=>{x(this._el.nativeElement),this._el.nativeElement.addEventListener("autosize:resized",this.fireResize),this._autosize=x})}ngOnDestroy(){t.isNode()||this._autosize&&(this._autosize.destroy(this._el.nativeElement),this._el.nativeElement.removeEventListener("autosize:resized",this.fireResize),this._autosize=null)}}y.ɵfac=function(e){return new(e||y)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.NgZone))},y.ɵdir=n.ɵɵdefineDirective({type:y,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:[0,"sizeupdate","updateAutoSize"],_resize:[0,"watchresize","_resize"]},outputs:{onResized:"onResized"},standalone:!1});class C{}C.ɵfac=function(e){return new(e||C)},C.ɵmod=n.ɵɵdefineNgModule({type:C}),C.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule]});const E=["textarea"];function S(e,t){1&e&&(n.ɵɵelementStart(0,"div",4),n.ɵɵelement(1,"i"),n.ɵɵelementEnd())}let I=!1,k=t.isWeb()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class T{set value(e){this._value.next(e)}get value(){return this._value.getValue()}set active(e){this._active.next(e)}get active(){return this._active.getValue()}set readonly(e){this._editor&&this._readonly!==e&&(e?this._editor.enableReadOnlyMode("lock-"+this.ckelementid):this._editor.disableReadOnlyMode("lock-"+this.ckelementid)),this._readonly=e}get readonly(){return this._readonly}set autofocus(e){this._autofocus=e,e&&this._container&&this._container.nativeElement.focus()}get autofocus(){return this._autofocus}constructor(e,s,i){this._el=e,this._cd=s,this._service=i,this._destroyed=!0,this.ckeditorLoaded=!0,this.ckelementid=t.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=I,this.no_editor=!1}StartCkeditor(){m.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(),k||setTimeout(()=>{let e=this._el.nativeElement;this._service.scrollTo({target:e,inview:!0})},100)),this.editorInitiated.emit(!0),I=!0,this._readonly&&(this._readonly=null,this.readonly=!0)}).catch(e=>{this.no_editor=!0,this.EndCkeditor(),this.editorInitiated.emit(!1),e&&t.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(()=>{t.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()}}T.ɵfac=function(e){return new(e||T)(n.ɵɵdirectiveInject(n.ElementRef),n.ɵɵdirectiveInject(n.ChangeDetectorRef),n.ɵɵdirectiveInject(t.ScrollerService))},T.ɵcmp=n.ɵɵdefineComponent({type:T,selectors:[["ck-editor"]],viewQuery:function(e,t){if(1&e&&n.ɵɵviewQuery(E,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(s){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.TextAreaEdit(s))}),n.ɵɵelementEnd(),n.ɵɵtemplate(3,S,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,t.DirectivesModule]});class A{constructor(){this.itemprop="",this.classes=[]}}A.ɵfac=function(e){return new(e||A)},A.ɵcmp=n.ɵɵdefineComponent({type:A,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,t.ImageLoader],encapsulation:2});class V{}function F(e,t){1&e&&(n.ɵɵelementStart(0,"h2",11),n.ɵɵtext(1,"Thank you"),n.ɵɵelementEnd()),2&e&&n.ɵɵproperty("focus-when",!0)}function L(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 $(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 s=n.ɵɵnextContext();return n.ɵɵresetView(s.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 M(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 s=n.ɵɵnextContext();return n.ɵɵresetView(s.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 O(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 s=n.ɵɵnextContext();return n.ɵɵresetView(s.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 j(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 R(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 P(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 Q(e,t){1&e&&n.ɵɵelement(0,"br")}function N(e,t){1&e&&n.ɵɵelement(0,"br")}function H(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"input",33),n.ɵɵlistener("input",function(t){n.ɵɵrestoreView(e);const s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.one_time_code=t.target.value)}),n.ɵɵelementEnd()}}function U(e,t){1&e&&n.ɵɵelement(0,"br")}function D(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 B(e,t){1&e&&n.ɵɵelement(0,"br")}function G(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 W(e,t){1&e&&n.ɵɵelement(0,"br")}function Y(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 s=n.ɵɵnextContext();return s.user_email=t.target.value,n.ɵɵresetView(s.show_ajax_error=!1)}),n.ɵɵelementEnd(),n.ɵɵtemplate(8,Q,1,0,"br",27)(9,N,1,0,"br",27)(10,H,1,0,"input",28)(11,U,1,0,"br",27)(12,D,5,0,"div",29)(13,B,1,0,"br",27)(14,G,1,2,"div",7)(15,W,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)}}V.ɵfac=function(e){return new(e||V)},V.ɵmod=n.ɵɵdefineNgModule({type:V}),V.ɵinj=n.ɵɵdefineInjector({imports:[n.CommonModule,t.ImageLoaderModule]});class X{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,m.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 n=t.cleanInput(this.input_value);this.live_status="Posting question.";let s={action:"Answers.PostQuestion",question:n,url:this._referer};if(this.show_code_input){if(!0!==/^\d{6}$/.test(this.one_time_code))return this.ajax_message="Please enter the 6-digit numerical code that we sent to your email.",this.show_ajax_error=!0,void(this.submiting=!1);s.one_time_code=this.one_time_code}if(null===(e=t.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);m.import("Encryption").then(e=>{let n={url:t.ajaxUrl(),data:Object.assign(s,this.data.addparams||{}),encryptprops:["email"],before:()=>{this.submiting=!0},after:()=>{this.submiting=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}};this.has_categories&&(n.data.category=this._catid),this.user_email&&(n.data.email=this.user_email),this._is_lodgged||this.user_email||(n.data.light=!0),this.input_value_extra&&(n.data.details=this.input_value_extra),t.isCordova()&&n.data.light&&(n.data.light="true"),e.send(n).then(e=>{if(this.live_status="",!e||e.error){if(e&&"message"in e){const n=e.message.match(/^Bad word `([^`]+)` detected.$/);n&&n.length&&(e.message=`Profanity is not allowed, including words such as "${n[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=""),t.isCordova()&&"not logged in"==e.message?(t.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(t.isCordova()?t.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,t.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,t.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=t.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(),t.isNode()||(t.isLoggedIn()&&(this._is_lodgged=!0),this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}}X.ɵfac=function(e){return new(e||X)(n.ɵɵdirectiveInject(n.Location))},X.ɵcmp=n.ɵɵdefineComponent({type:X,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,F,2,1,"h2",1)(3,L,2,1,"h2",1),n.ɵɵelement(4,"div",2),n.ɵɵtemplate(5,$,4,5,"div",3),n.ɵɵelementStart(6,"div",4),n.ɵɵtext(7),n.ɵɵelementEnd(),n.ɵɵtemplate(8,M,2,2,"div",3)(9,O,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,j,1,2,"div",7)(13,R,3,3,"button",8)(14,P,2,0,"div",9)(15,Y,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,t.TouchGestures,t.ngHidden,t.ngAriaLive,y,t.ErrorToastComponent,r.DropDown,t.ngFocus],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,t.DirectivesModule,C,t.ErrorsModule,r.DropDownModule,t.NgFocusModule]});const J=["txtElement"],K=["quesOverlay"],ee=["ques_answer"],te=e=>({"ng-enter-element":e}),ne=(e,t)=>({"light-font qnah-1":e,"qnah-1 qnah-3 extra-bold-font":t}),se=(e,t,n,s)=>({"accordion-open":e,"has-accordion":t,"accordion-closed":n,"only-question":s}),ie=()=>({attribute:"itemprop",value:"upvoteCount"}),re=e=>[e],oe=()=>({attribute:"itemprop",value:"name"}),ae=(e,t)=>({"qna-h-collapse":e,"accordion-closed":t}),le=e=>({"accordion-open":e}),ue=e=>({"qna-collapsed":e}),ce=()=>({attribute:"itemprop",value:"text"}),de=()=>({attribute:"itemprop",value:"downvoteCount"});function pe(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 he(e,t){if(1&e&&(n.ɵɵelementStart(0,"h2",21),n.ɵɵelement(1,"span",22),n.ɵɵtemplate(2,pe,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 _e(e,t){if(1&e&&n.ɵɵelement(0,"h2",25),2&e){const e=n.ɵɵnextContext();n.ɵɵproperty("ngClass",n.ɵɵpureFunction2(2,ne,0==e.layout_type,2==e.layout_type))("ng-context",e.section_title)}}function ge(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 me(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 fe(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 ve(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 qe(e,t){1&e&&(n.ɵɵelementStart(0,"span"),n.ɵɵtext(1,"Don't see what you're looking for?"),n.ɵɵelementEnd())}function we(e,t){1&e&&(n.ɵɵelementStart(0,"div",41),n.ɵɵtext(1,"MATCHING RESULTS"),n.ɵɵelementEnd())}function be(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 ye(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 s=n.ɵɵnextContext();return n.ɵɵresetView(s.SearchInput(t))}),n.ɵɵelementEnd(),n.ɵɵtemplate(3,ve,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,qe,2,0,"span",36),n.ɵɵelementStart(7,"button",37),n.ɵɵlistener("onClick",function(t){n.ɵɵrestoreView(e);const s=n.ɵɵnextContext();return n.ɵɵresetView(s.AskQuestion(t))}),n.ɵɵtext(8,"Ask Your Question"),n.ɵɵelementEnd()(),n.ɵɵelementStart(9,"div",38),n.ɵɵtemplate(10,we,2,0,"div",39)(11,be,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 Ce(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"li",42),n.ɵɵlistener("onClick",function(){const t=n.ɵɵrestoreView(e).index,s=n.ɵɵnextContext();return n.ɵɵresetView(s.ChangeSort(t))}),n.ɵɵtext(1),n.ɵɵelementEnd()}if(2&e){const e=t.$implicit,s=t.index;n.ɵɵclassProp("qnaml-first",0==s),n.ɵɵadvance(),n.ɵɵtextInterpolate(e)}}function Ee(e,t){1&e&&n.ɵɵelement(0,"div",51)}function Se(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",43),n.ɵɵtemplate(1,Ee,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 s=n.ɵɵnextContext();return n.ɵɵresetView(s.ques_ask=t.target.value)}),n.ɵɵelementEnd(),n.ɵɵelementStart(7,"button",50),n.ɵɵlistener("onClick",function(t){n.ɵɵrestoreView(e);const s=n.ɵɵnextContext();return n.ɵɵresetView(s.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 Ie(e,t){1&e&&(n.ɵɵelementStart(0,"div",55)(1,"div",56),n.ɵɵelement(2,"i"),n.ɵɵelementEnd()())}function ke(e,t){if(1&e&&n.ɵɵelement(0,"a",68),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 Te(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵtemplate(1,ke,1,7,"a",67),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.ques_href)}}function ze(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"a",70),n.ɵɵlistener("click",function(t){n.ɵɵrestoreView(e);const s=n.ɵɵnextContext(2).$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.QuesCollapse(t,s))}),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 Ae(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵtemplate(1,ze,1,5,"a",69),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.ques_href)}}function Ve(e,t){if(1&e&&n.ɵɵelement(0,"span",71),2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵclassProp("qt-as-link",e.from_search),n.ɵɵproperty("cleanHTML",e.ques_title)}}function Fe(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"button",72),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit;return n.ɵɵresetView(t.collapsed=!t.collapsed)}),n.ɵɵelement(1,"span",73),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext().$implicit;n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(2,le,!e.collapsed)),n.ɵɵattribute("aria-label",e.collapsed?"Close":"Open")}}function Le(e,t){if(1&e&&(n.ɵɵelementContainerStart(0),n.ɵɵelementStart(1,"div",74),n.ɵɵelement(2,"meta",75)(3,"meta",76)(4,"meta",77),n.ɵɵelementEnd(),n.ɵɵelementContainerEnd()),2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(2);n.ɵɵadvance(2),n.ɵɵattribute("content",null!=e.answers&&e.answers.length?t.stripHtml(e.answers[0].full_content):""),n.ɵɵadvance(),n.ɵɵattribute("content",null!=e.answers&&e.answers.length?e.answers[0].upvote:0),n.ɵɵadvance(),n.ɵɵattribute("content",null!=e.answers&&e.answers.length?e.answers[0].downvote:0)}}function $e(e,t){if(1&e&&n.ɵɵelement(0,"p",95),2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵproperty("cleanHTML",e.ques_content_cut_mob)}}function Me(e,t){if(1&e&&n.ɵɵelement(0,"p",96),2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵproperty("cleanHTML",e.ques_content_cut_desk)}}function Oe(e,t){1&e&&(n.ɵɵelementStart(0,"span",97),n.ɵɵtext(1,"..."),n.ɵɵelementEnd())}function je(e,t){if(1&e&&n.ɵɵelement(0,"p",95),2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵproperty("cleanHTML",e.ques_content_more)}}function Re(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",98),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2).$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.ExpandContent(t.id,"question"))}),n.ɵɵtext(1,"show more"),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext(2).$implicit,t=n.ɵɵnextContext(2);n.ɵɵproperty("ng-hidden",t.questionexpand[e.id])}}function Pe(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",99),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2).$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.ExpandContent(t.id,"question"))}),n.ɵɵtext(1,"show less"),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext(2).$implicit,t=n.ɵɵnextContext(2);n.ɵɵproperty("ng-hidden",!t.questionexpand[e.id])}}function Qe(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",100),n.ɵɵlistener("onClick",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2).$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.ShowReplybox(t.id))}),n.ɵɵtext(1,"Reply"),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵproperty("focus-when",e.reply_bt_focus)("no-click",!0)}}function Ne(e,t){1&e&&n.ɵɵelement(0,"span",101)}function He(e,t){1&e&&n.ɵɵelement(0,"span",101)}function Ue(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"form",102),n.ɵɵlistener("onSubmit",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2).$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.SubmitReply(t))}),n.ɵɵelementStart(1,"div",103),n.ɵɵelement(2,"img",104),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"div",105)(4,"ck-editor",106),n.ɵɵlistener("valueChange",function(t){n.ɵɵrestoreView(e);const s=n.ɵɵnextContext(2).$implicit,i=n.ɵɵnextContext(2);return n.ɵɵresetView(i.ReplyInput(t,s.id))}),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",107),n.ɵɵelement(6,"error-toast",108),n.ɵɵelementStart(7,"button",109),n.ɵɵlistener("onClick",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2).$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.ShowReplybox(t.id))}),n.ɵɵtext(8,"Cancel"),n.ɵɵelementEnd(),n.ɵɵelementStart(9,"button",110)(10,"span"),n.ɵɵtext(11,"Reply"),n.ɵɵelementEnd(),n.ɵɵelement(12,"i",111),n.ɵɵelementEnd()()()}if(2&e){const e=n.ɵɵnextContext(2).$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 De(e,t){if(1&e&&(n.ɵɵelementStart(0,"span",125),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){const e=n.ɵɵnextContext(2).$implicit;n.ɵɵadvance(),n.ɵɵtextInterpolate1(", ",e.user_title,"")}}function Be(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",123),n.ɵɵelement(1,"span",22),n.ɵɵtemplate(2,De,2,1,"span",124),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 Ge(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 We(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"span",130),n.ɵɵlistener("onTap",function(){const t=n.ɵɵrestoreView(e).index,s=n.ɵɵnextContext(2).$implicit,i=n.ɵɵnextContext(4);return n.ɵɵresetView(i.AnsOpt(t,s))}),n.ɵɵtext(1),n.ɵɵelementEnd()}if(2&e){const e=t.$implicit,s=t.index;n.ɵɵclassProp("qnaml-first",0==s),n.ɵɵadvance(),n.ɵɵtextInterpolate(e)}}function Ye(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",126)(1,"span",127),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,s=n.ɵɵnextContext(4);return n.ɵɵresetView(s.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",128),n.ɵɵlistener("onTap",function(t){return n.ɵɵrestoreView(e),n.ɵɵresetView(t.stopPropagation())}),n.ɵɵtemplate(3,We,2,3,"span",129),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(4);n.ɵɵadvance(2),n.ɵɵproperty("ng-hidden",!e.options_list_opened),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",t.ansOptions)("ngForTrackBy",t.trackByFn)}}function Xe(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",131)(1,"a",132),n.ɵɵtext(2,"show more"),n.ɵɵelement(3,"span",133),n.ɵɵelementEnd()()),2&e){const e=n.ɵɵnextContext(3).$implicit;n.ɵɵadvance(),n.ɵɵproperty("href",e.ques_href,n.ɵɵsanitizeUrl)("zing-url",!0)}}function Ze(e,t){1&e&&n.ɵɵelement(0,"span",101)}function Je(e,t){1&e&&n.ɵɵelement(0,"span",101)}function Ke(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",86)(1,"div",134),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,s=n.ɵɵnextContext(4);return n.ɵɵresetView(s.RateContent(t,"up"))}),n.ɵɵtemplate(2,Ze,1,0,"span",135),n.ɵɵelementStart(3,"span",136),n.ɵɵtext(4),n.ɵɵelementEnd()(),n.ɵɵelementStart(5,"div",90),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,s=n.ɵɵnextContext(4);return n.ɵɵresetView(s.RateContent(t,"down"))}),n.ɵɵtemplate(6,Je,1,0,"span",135),n.ɵɵelementStart(7,"span",136),n.ɵɵtext(8),n.ɵɵelementEnd()()()}if(2&e){const e=n.ɵɵnextContext(),t=e.$implicit,s=e.index,i=n.ɵɵnextContext(4);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,re,n.ɵɵpureFunction0(16,ie)))("ng-attribute-when",i.toggleSchema&&0==s),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,re,n.ɵɵpureFunction0(19,de)))("ng-attribute-when",i.toggleSchema&&0==s),n.ɵɵadvance(),n.ɵɵtextInterpolate(t.downvote)}}function et(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",112)(1,"div",113)(2,"div",114),n.ɵɵelement(3,"img",115,1),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"div",116),n.ɵɵtemplate(6,Be,3,2,"div",117),n.ɵɵelementStart(7,"div",118),n.ɵɵtemplate(8,Ge,2,1,"ng-container",36),n.ɵɵelementEnd(),n.ɵɵtemplate(9,Ye,4,3,"div",119),n.ɵɵelementEnd()(),n.ɵɵelement(10,"div",120),n.ɵɵtemplate(11,Xe,4,2,"div",121)(12,Ke,9,22,"div",122),n.ɵɵelementEnd()),2&e){const e=t.$implicit,s=t.index,i=n.ɵɵnextContext(2),r=i.$implicit,o=i.index,a=n.ɵɵnextContext(2);n.ɵɵproperty("ng-hidden",!(0==s||a.question_more_answers[r.id]||1==s&&r.answers[0].my_ans))("ng-attribute",a.aschemascope)("ng-attribute-when",a.toggleSchema&&0==s),n.ɵɵadvance(2),n.ɵɵproperty("defer-src",e.user_avatar)("src-fallback",a.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||a.ShowFullAns(o)?e.full_content:e.content_long)("zing-url-container",!0)("ng-attribute",n.ɵɵpureFunction1(17,re,n.ɵɵpureFunction0(16,ce)))("ng-attribute-when",a.toggleSchema&&0==s),n.ɵɵattribute("data-pos",e.stackid),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.has_more_button&&(r.ques_href||r.ques_fullslug)&&!(e.show_full||a.ShowFullAns(o))),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!a.IsSpecial(e.id))}}function tt(e,t){1&e&&(n.ɵɵelementStart(0,"div",140),n.ɵɵelement(1,"i"),n.ɵɵelementEnd())}function nt(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",137),n.ɵɵtemplate(1,tt,2,0,"div",138),n.ɵɵelementStart(2,"span",139),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2),s=t.$implicit,i=t.index,r=n.ɵɵnextContext(2);return n.ɵɵresetView(r.ViewMoreAns(s,i))}),n.ɵɵtext(3," View more answers "),n.ɵɵelement(4,"i",11),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext(2).$implicit,t=n.ɵɵnextContext(2);n.ɵɵadvance(),n.ɵɵproperty("ngIf",t.answersmore[e.id])}}function st(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",78),n.ɵɵtemplate(1,$e,1,1,"p",79)(2,Me,1,1,"p",80)(3,Oe,2,0,"span",81)(4,je,1,1,"p",79)(5,Re,2,1,"span",82)(6,Pe,2,1,"span",83),n.ɵɵelementStart(7,"div",84),n.ɵɵtemplate(8,Qe,2,2,"div",85),n.ɵɵelementStart(9,"div",86)(10,"div",87),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.RateContent(t,"up"))}),n.ɵɵtemplate(11,Ne,1,0,"span",88),n.ɵɵelementStart(12,"span",89),n.ɵɵtext(13),n.ɵɵelementEnd()(),n.ɵɵelementStart(14,"div",90),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext().$implicit,s=n.ɵɵnextContext(2);return n.ɵɵresetView(s.RateContent(t,"down"))}),n.ɵɵtemplate(15,He,1,0,"span",88),n.ɵɵelementStart(16,"span",89),n.ɵɵtext(17),n.ɵɵelementEnd()()()(),n.ɵɵtemplate(18,Ue,13,15,"form",91),n.ɵɵelementStart(19,"div",92),n.ɵɵtemplate(20,et,13,19,"div",93)(21,nt,5,1,"div",94),n.ɵɵelementEnd()()}if(2&e){const e=n.ɵɵnextContext().$implicit,t=n.ɵɵnextContext(2);n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(25,ue,e.collapsed)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.questionexpand[e.id]&&e.ques_content_cut_mob),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.questionexpand[e.id]&&e.ques_content_cut_desk),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!t.questionexpand[e.id]&&e.ques_content_has_more),n.ɵɵadvance(),n.ɵɵproperty("ngIf",(t.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",!t.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",t.replyboxshow[e.id]),n.ɵɵadvance(),n.ɵɵproperty("ng-hidden",!e.answers||e.answers.length<1),n.ɵɵadvance(),n.ɵɵproperty("ngForOf",e.answers)("ngForTrackBy",t.trackByFn),n.ɵɵadvance(),n.ɵɵproperty("ngIf",e.has_more_answers)}}function it(e,t){if(1&e&&(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,Te,2,1,"ng-container",36)(10,Ae,2,1,"ng-container",36)(11,Ve,1,3,"span",64)(12,Fe,2,4,"button",65),n.ɵɵelementEnd(),n.ɵɵtemplate(13,Le,5,3,"ng-container",36)(14,st,22,27,"div",66),n.ɵɵelementEnd()()),2&e){const e=t.$implicit,s=n.ɵɵnextContext(2);n.ɵɵclassProp("qna-q-search",e.from_search),n.ɵɵproperty("ng-attribute",s.qschemascope)("ng-attribute-when",s.questionToggleSchema(e))("ngClass",n.ɵɵpureFunction4(18,se,!e.collapsed&&s.collapse,s.collapse,e.collapsed&&s.collapse,s.only_question)),n.ɵɵadvance(3),n.ɵɵproperty("ng-attribute",n.ɵɵpureFunction1(24,re,n.ɵɵpureFunction0(23,ie)))("ng-attribute-when",s.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(27,re,n.ɵɵpureFunction0(26,oe)))("ng-attribute-when",s.questionToggleSchema(e))("ngClass",n.ɵɵpureFunction2(29,ae,s.collapse,e.collapsed&&s.collapse)),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!s.collapse),n.ɵɵadvance(),n.ɵɵproperty("ngIf",s.collapse),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!e.ques_href&&!e.ques_fullslug),n.ɵɵadvance(),n.ɵɵproperty("ngIf",s.collapse),n.ɵɵadvance(),n.ɵɵproperty("ngIf",s.only_question&&s.toggleSchema&&(null==e.answers?null:e.answers.length)>0),n.ɵɵadvance(),n.ɵɵproperty("ngIf",!s.only_question)}}function rt(e,t){if(1&e&&(n.ɵɵelementStart(0,"div",52),n.ɵɵtemplate(1,Ie,3,0,"div",53)(2,it,15,32,"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 ot(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"button",145),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext(2);return n.ɵɵresetView(t.ViewMoreQuestions())}),n.ɵɵelementStart(1,"span",146)(2,"span",144),n.ɵɵtext(3,"View "),n.ɵɵelementEnd(),n.ɵɵtext(4,"More Questions"),n.ɵɵelementEnd(),n.ɵɵelement(5,"i",111),n.ɵɵelementEnd()}if(2&e){const e=n.ɵɵnextContext(2);n.ɵɵclassProp("loadactive",e.questions_more)}}function at(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",141),n.ɵɵtemplate(1,ot,6,2,"button",142),n.ɵɵelementStart(2,"button",143),n.ɵɵlistener("onClick",function(t){n.ɵɵrestoreView(e);const s=n.ɵɵnextContext();return n.ɵɵresetView(s.AskQuestion(t))}),n.ɵɵtext(3,"Ask "),n.ɵɵelementStart(4,"span",144),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 lt(e,t){1&e&&(n.ɵɵelementStart(0,"div",147)(1,"div",56),n.ɵɵelement(2,"i"),n.ɵɵelementEnd()())}function ut(e,t){if(1&e){const e=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",148)(1,"p",149),n.ɵɵtext(2,"Oops there was a problem retrieving data"),n.ɵɵelementEnd(),n.ɵɵelement(3,"br"),n.ɵɵelementStart(4,"div",150)(5,"button",151),n.ɵɵlistener("onTap",function(){n.ɵɵrestoreView(e);const t=n.ɵɵnextContext();return n.ɵɵresetView(t.RetryLoadData())}),n.ɵɵtext(6,"Retry"),n.ɵɵelementEnd()()()}}m.import("css:/components/qna-comp.css").then(()=>{}).catch(()=>{});const ct=[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 dt{get ques_data(){return this._ques_data}set ques_data(e){this._ques_data=e,e&&e.questions&&t.isArray(e.questions)&&this._parseInitialData(e)}get qnapresentation(){return this._ques_presentation}set qnapresentation(e){this._ques_presentation=e,this.SetQnaPresentation(this._ques_presentation)}get search_value(){return this._qType.getValue()}questionToggleSchema(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)}sectionToggleSchema(){return!!(this.toggleSchema&&this._has_answer&&this.schquestions.length>0)}get show_search_state(){return this.search_value&&this.search_value.length>1&&!this.noresults&&!this.resultserror}get show_search_state_empty(){return this.search_value&&this.search_value.length>1&&this.noresults&&!this.resultserror}get has_clipped_answer_content(){return this.answers_content_clipped&&!(this.show_search_state||this.show_search_state_empty)}get open_popup(){return this._open_popup}set open_popup(e){this._open_popup=e,e&&this.AskQuestion()}get has_view_more(){return!this.search_value&&!this.search_loading&&!this.load_startup&&!this.load_startup_fail&&!this.resultserror&&this.has_enough_ques}constructor(e,s,i,r){this._location=e,this._route=s,this._dservice=i,this._cd=r,this.layout_type=0,this.product_name="",this._ques_data=null,this._ques_presentation=null,this._qna_pres=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.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=t.baseUrl()+"/answers/",this.collapse=!1,this.full_qnas=[],this.only_question=!1,this._qType=new n.BehaviorSubject(""),this._has_answer=!1,this._readyOnce=!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.onInit=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=t.baseUrl()+"/answers/",t.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,n,s){let i=[];return t.arrayForEach(e,(e,r)=>{if(null==e)return!0;let o=e;if(o.ques_title=e.ques_content,delete o.ques_content,o.ques_content_more=o.ques_more_info||o.ques_content_more||"",o.ques_more_info&&delete o.ques_more_info,o.ques_content_more.length>138&&(o.ques_content_cut_mob=o.ques_content_more.substring(0,138),o.ques_content_has_more=!0),o.ques_content_more.length>330?o.ques_content_cut_desk=o.ques_content_more.substring(138,330):o.ques_content_more.length>138&&(o.ques_content_cut_mob=o.ques_content_more,o.ques_content_has_more=!1),!o.ques_fullslug&&o.ques_slug&&(o.ques_fullslug=o.ques_slug+"-"+o.id.toString()),o.upvotelabel=o.upvote+" up vote"+(1!=o.upvote?"s":""),o.dnvotelabel=o.downvote+" down vote"+(1!=o.upvote?"s":""),o.ques_href=o.ques_href||"/answers/"+o.ques_fullslug,o.ques_href=t.baseUrl()+o.ques_href.replace(t.baseUrl(),""),this.collapse&&(o.collapsed=!0,this._cd.detectChanges()),n){let e=n(o,r);if("boolean"==typeof e&&!e)return!0}let a=r;t.isArray(this.schquestions)&&(a+=this.schquestions.length),this._ParseAnswers(o,a,null,0,s),i.push(o)}),i}_ParseAnswers(e,n,s,i,r){let o=s||e.answers||[];if(t.isArray(o)&&(e.answers=s?e.answers:[],o.length>0&&!this._has_answer&&(this._has_answer=!0),o.forEach((s,i)=>{let o=s;o.user_login&&!o.user_login.startsWith("@")&&(o.user_login="@"+o.user_login),o.user_fullname=t.trim(o.user_fullname||""),t.isArray(o.content)?(o.content_cut=o.content[0]||o.content[1],this.answers_content_clipped&&!e.from_search?(o.content_long=o.content[0],delete o.content_cut):o.content[0]?o.content_long=o.content[1]:(o.content_long=o.content_cut,delete o.content_cut)):(o.content_long=o.content,this.answers_content_clipped=!0),t.isJasmineTest()||delete o.content,o.content_cut&&"string"==typeof o.content_cut&&(o.content_cut=o.content_cut.replace("[[:hellip:]]","...")),0!=n||e.from_search||e.answers.length||(o.content_long||(o.content_long=o.content_cut),delete o.content_cut,this.answerexpand[o.id]=!0),this.signon&&this.signon.id==o.uid&&(this.replyboxinputsubmited[e.id]=o.content_long||o.content_cut),o.content_cut&&(o.content_cut=this._FormatAnswer(o.content_cut)),o.content_long&&(o.content_long=this._FormatAnswer(o.content_long),o.content_long.includes("...")&&(o.has_more_button=!0)),o.full_content&&(o.full_content=this._FormatAnswer(o.full_content));let a=r?r(o,e,i):null;("boolean"!=typeof a||a)&&(e.answers.push(o),o.stackid=n.toString()+"-"+e.answers.indexOf(o).toString()),o.is_reportable=!1,o.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"]},o.upvotelabel=o.upvote+" up vote"+(1!=o.upvote?"s":""),o.dnvotelabel=o.downvote+" down vote"+(1!=o.upvote?"s":""),(this.IsSpecial(o.id)||t.isAny(o.uid,ct))&&o.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!==i&&!isNaN(parseInt(i.toString()))&&i>0&&(e.has_more_answers=!0),"default"===this._qna_pres))0==n&&e.answers.length>1&&(e.answers[0].show_full=!0);t.reqAnimationFrame(()=>{t.Events.emit("$shortcodes:set")})}_FormatAnswer(e){try{e=(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,"")).replace(/<ul[^>]*>[\s\S]*?<span\s+class=["']js-shave-char cursor-pointer["'][^>]*>.*?<\/span>[\s\S]*?<\/ul>/gi,e=>e.replace(/<span\s+class=["']js-shave-char cursor-pointer["'][^>]*>.*?<\/span>/gi,""))}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,!t.isNode()&&this.sort_list_opened&&document.getElementById("a11y-qna-list").focus()}ExpandContent(e,t){this[t+"expand"][e]=!this[t+"expand"][e]}RateContent(e,n="up"){var s;if(!t.isObject(this.signon)||!("id"in this.signon))return this.live_status="You must be logged in to vote",void(t.isWeb()?top.location.href="/join/light?ref="+encodeURIComponent(document.location.href):t.isCordova()&&t.Events.emit("$native:api-no-session",{type:"rate-content"}));if(null===(s=this.signon)||void 0===s?void 0:s.authUser)return this.live_status="Oops. You don't have permission to make edits on this account.",t.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"==n,e.downvoteinprogress="down"==n;let i=e.id,r=e.answers||e.ques_title?"question":"answer",o=r,a=(e.id+"").match(/^([abceq])(\d+)$/);a&&(i=parseInt(a.pop()),o=a.pop(),~["q","a"].indexOf(o)||(o="q"+o)),t.$httpAbort("content-vote-"+e.id),clearTimeout(this.live_status_timer),t.$http({url:t.ajaxUrl(),data:{action:"Answers.Vote",id:i,kind:o,dir:"down"==n?"dn":"up"},id:"content-vote-"+e.id,before:()=>{e.voteinprogress="up"==n,e.downvoteinprogress="down"==n,this.live_status="Voting "+r+" "+n},after:()=>{e.voteinprogress=!1,e.downvoteinprogress=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(t=>{if(this.live_status="",t.error)throw Error("response error");e.upvote=t.votes_up,e.downvote=t.votes_dn,e.upvotelabel=e.upvote+" "+n+" vote"+(1!=e.upvote?"s":""),e.dnvotelabel=e.downvote+" "+n+" vote"+(1!=e.downvote?"s":""),this.live_status="up"==n?e.upvotelabel:e.dnvotelabel,t.upClass&&(e.upvotelabel+=". Pressed"),t.dnClass&&(e.dnvotelabel+=". Pressed"),this.live_status_timer=setTimeout(()=>{this.live_status=""},1e3)}).catch(e=>{e instanceof Error?(t.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",t.isWeb()?top.location.href="/join/light?ref="+encodeURIComponent(document.location.href):t.isCordova()&&t.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,n){const s=t.stringGetDigits(n.id);0==e&&window.open(`/report-abuse/?ru=${location.href.split("?")[0].split("#")[0]}&t=a&id=${s}`,"_self")}_throwReplyError(e,t="We encountered an error. Please retry"){this.replyerror[e]=this.replyerror[e]||{},this.replyerror[e].message=t,this.replyerror[e].show?(this.replyerror[e].show=!1,setTimeout(()=>{this.replyerror[e].show=!0})):this.replyerror[e].show=!0}ShowReplybox(e){this.replyinprogress[e]||(this.replyboxshow[e]=!this.replyboxshow[e],this.replyboxshow[e]?this.replyboxinput[e]=this.replyboxinputsubmited[e]||"":(t.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 n;let s=this.replyboxinput[e.id];if(s=t.trim(s),!s||s.length<30)this._throwReplyError(e.id,"Content must have 30 characters.");else{if(null===(n=this.signon)||void 0===n?void 0:n.authUser)return this.live_status="Oops. You don't have permission to make edits on this account.",t.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",t.$http({url:t.ajaxUrl(),data:{action:"Answers.AnswerQuestion",do:"user-answer",question_id:e.id,answer:s,ref:document.location.href},headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},before:()=>{this.replyinprogress[e.id]=!0},after:()=>{delete this.replyinprogress[e.id]}}).then(n=>{if(this.live_status="",n&&"redirect"in n)return t.isCordova()?t.Events.emit("$native:api-no-session",{type:"answer-submit-login",redirect:n.redirect}):window.open(n.redirect,"_top"),void setTimeout(()=>{this.replyinprogress[e.id]=!0});if(n.error&&"message"in n){let t=[e.id];const s=n.message.match(/^Bad word `([^`]+)` detected.$/);return s&&s.length&&t.push(`Profanity is not allowed, including words such as "${s[1]}". Please adjust.`),void this._throwReplyError.apply(this,t)}if(n.error)this._throwReplyError(e.id);else{let s=(e.answers||[]).findIndex(e=>e.id==n.id),i={date:n.date,id:n.id,content:[n.answer],user_login:n.user_login||n.username,user_fullname:t.trim(n.user_fullname||n.fullname||""),user_avatar:n.user_avatar||n.avatar,user_title:n.user_title||"",edited:n.edited},r={id:e.id,has_more_answers:e.has_more_answers,answers:[i]};i.user_avatar&&i.user_avatar.startsWith("//")&&(i.user_avatar="https:"+i.user_avatar),this._ParseAnswers(r,r.id);let o=r.answers[0];o.my_ans=!0,this.answerexpand[o.id]=!0;let a=o;s>-1?(o.edited=!0,Object.assign(e.answers[s],o),a=e.answers[s]):e.answers.unshift(o),this.replyboxinputsubmited[e.id]=n.answer,delete this.replyboxshow[e.id],this.live_status="Answer posted",a.focuson=!0,setTimeout(()=>{a.focuson=!1},100),this.live_status_timer=setTimeout(()=>{this.live_status=""},1e3)}}).catch(t=>{console.error(t),this._throwReplyError(e.id)})}}QSearch(e,n){this.resultserror=!1;let s=n?null:t.trim(null!=e?e:this._qType.getValue())||"";if(this.current_page=1,t.$httpAbort("qna-search-query"),t.$httpAbort("qna-load-initial"),!s)return void this._StartupLoad(!0);clearTimeout(this.live_status_timer);let i={id:"qna-search-query",url:t.ajaxUrl(),data:{action:"Answers.CommunitySearch",query:s},before:()=>{this.search_loading=!0,this.live_status="Searching for answers"},after:()=>{this.search_loading=!1},method:"GET"};this.quest_category?i.data.category=this._stripSlashes(this.quest_category):i.data.uri=this.ques_referer,t.$http(i).then(e=>{if(!e||!t.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,n){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",t.$http({url:t.ajaxUrl(),method:"GET",data:{action:"Answers.GetMoreAnswers",answers:e.answers.length,qid:e.id,v:2},before:()=>{this.answersmore[e.id]=!0},after:()=>{this.answersmore[e.id]=!1}}).then(s=>{if(this.live_status="",!s||!t.isArray(s.answers))throw Error("Required `answers` Array is not part of response");this.question_more_answers[e.id]=!0,this._ParseAnswers(e,n,s.answers,s.left,(e,t,n)=>{0==n&&(e.focuson=!0,setTimeout(()=>{e.focuson=!1},100))}),this.live_status="Loaded "+s.answers.length+" more answer"+(1!=s.answers.length?"s":""),setTimeout(()=>{this.live_status=""},1e3)}).catch(e=>{this.live_status="",console.error(e)})}AnswerExpanded(e,t){t.is_expanded=e}DisplayShowMoreButton(e,t){t.has_more_button=e}_LoadQues(e){e&&(this.live_status="Questions are now sorted by "+this.sortv,this.current_page=1,this.sortFocus=!0),t.$httpAbort("qna-more-questions");let n,s={uri:this.ques_referer,action:"Answers.GetForPage"};this.is_details&&(s.action="Details.GetQuestions",s.v="3"),this.questions_count&&this.questions_count>0&&(s.rpp=this.questions_count),this.current_page>1&&(s.p=this.current_page),this.sortingparam&&(s.sort_by=this.sortingparam),t.$http({url:t.ajaxUrl(),method:"GET",data:s,before:()=>{this.questions_more=!0,n=this._dservice&&this._dservice.element&&this._dservice.element.scrollTop,this.live_status=e?"Sorting questions by "+("mv"!=this.sortingparam?"most popular":"most upvotes"):"Loading more questions"},after:()=>{this.questions_more=!1},id:"qna-more-questions"}).then(s=>{if(this.live_status="",!s||!t.isArray(s.questions))throw Error("Required `question` Array is not part of response");this.has_enough_ques=s.pages&&s.pages>1,this.has_more_ques=s.current_page&&s.pages&&s.current_page<s.pages,e?(this.schquestions=[],this.has_enough_ques=!0):(this.live_status="Loaded "+s.questions.length+"more question"+(1!=s.questions.length?"s":""),setTimeout(()=>{this.live_status=""},1e3)),this.schquestions=this.schquestions.concat(this._ParseQuestions(s.questions,(t,n)=>{0!=n||e||this.collapse||(t.focuson=!0,setTimeout(()=>{t.focuson=!1},100))})),this.noresults=0==this.schquestions.length,setTimeout(()=>{this._dservice&&this._dservice.element&&this._dservice.scrollTo({position:n,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 n=e&&e.currentTarget;this._quesOverlay&&this._quesOverlay.Open(X,{input:this.ques_ask||this._qType.getValue()||"",referer:t.baseUrl()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories},{return_focus_to:n||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._ques_presentation&&"all collapsed"==this._ques_presentation.toLowerCase()&&this.schquestions.forEach(e=>{e.collapsed=!0,this._cd.detectChanges()})}_StartupLoad(e){this.load_startup_fail=!1;let n={uri:this.ques_referer,action:"Answers.GetForPage"};this.current_page>1&&(n.p=this.current_page),this.sortingparam&&(n.sort_by=this.sortingparam),this.questions_count&&this.questions_count>0&&(n.rpp=this.questions_count),t.$httpAbort("qna-load-initial"),t.$http({url:t.ajaxUrl(),method:"GET",data:n,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(n=>{if(!n||n.error||n.questions&&!t.isArray(n.questions))throw Error("Required `question` Array is not part of response");this._parseInitialData(n),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",!t.isNode()&&t.isLoggedIn()?(this.signon=t.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(t.baseUrl())&&(this.ques_referer=this.ques_referer.replace(t.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&&!t.isNode()&&this._route.queryParams.pipe(n.take(1)).subscribe(e=>{let n=e[this.page_query],s=n?t.toNumber(n):0;s&&(this.ques_data&&this.ques_data.pages?s<=this.ques_data.pages&&s!=this.ques_data.current_page?(this.current_page=s,this.ques_data=null):this.ques_data.questions.length<1&&(this.ques_data.pages=1):(this.current_page=s,this.ques_data=null))}),this.ques_data&&this.ques_data.questions&&t.isArray(this.ques_data.questions)||t.isNode()||(this.load_startup=!0,setTimeout(()=>{this._StartupLoad()},this.start_delay||1)),!t.isNode()){let e,s;const i=this._qType.pipe(n.debounceTime(200)).subscribe({next:n=>{let i=t.trim((n||"").replace(/(\r\n\t|\n|\r\t)/gm," "));null!==n&&i!=e&&i.length>1?(e=i,s=!0,this.QSearch(i)):s&&(!i||i.length<2)&&(e=i,s=!1,this.QReset())},error:()=>{},complete:()=>{i.unsubscribe()}})}}SetQnaPresentation(e){this._qna_pres="default";switch(e?e.toLowerCase():"first full version, rest short version"){case"first full version, rest short version":this._qna_pres="default",this.full_qna=1,this._cd.detectChanges();break;case"all short version":this._qna_pres="short",this._cd.detectChanges();break;case"all collapsed":this._qna_pres="collapsed",this.collapse=!0,this._cd.detectChanges();break;case"x number of full version, rest short version":this._qna_pres="varied",this._cd.detectChanges();break;case"only question":this._qna_pres="only_question",this.only_question=!0,this._cd.detectChanges()}}QuesCollapse(e,n){t.isNode()||(e.preventDefault(),n.collapsed=!n.collapsed)}ShowFullAns(e){const t="varied"===this._qna_pres||"default"===this._qna_pres,n=this.full_qna>0,s=e<this.full_qna;return"default"===this._qna_pres&&0===e||t&&n&&s}ngAfterViewInit(){t.isNode()||t.reqAnimationFrame(()=>{this.allow_animation=!0,this.onInit.emit()})}stripHtml(e=""){return String(e).replace(/<script[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()}ngOnDestroy(){this._qType.complete(),t.$httpAbort("qna-load-initial")}}dt.ɵfac=function(e){return new(e||dt)(n.ɵɵdirectiveInject(n.Location),n.ɵɵdirectiveInject(s.ActivatedRoute),n.ɵɵdirectiveInject(t.ScrollerService),n.ɵɵdirectiveInject(n.ChangeDetectorRef))},dt.ɵcmp=n.ɵɵdefineComponent({type:dt,selectors:[["","id","qna-box"]],viewQuery:function(e,t){if(1&e&&(n.ɵɵviewQuery(J,5),n.ɵɵviewQuery(K,5),n.ɵɵviewQuery(ee,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"],qnapresentation:[0,"presentation","qnapresentation"],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"],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",onInit:"onInit"},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"],["class","qna-accordion",3,"ngClass",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"],["itemprop","acceptedAnswer","itemscope","","itemtype","https://schema.org/Answer"],["itemprop","text"],["itemprop","upvoteCount"],["itemprop","downvoteCount"],[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"],[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,he,3,2,"h2",3)(2,_e,1,5,"h2",4)(3,ge,6,3,"p",5)(4,me,1,2,"p",6)(5,fe,1,4,"p",7)(6,ye,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,Ce,2,3,"li",13),n.ɵɵelementEnd(),n.ɵɵelementStart(13,"div",14),n.ɵɵtext(14,"Questions sort"),n.ɵɵelementEnd()(),n.ɵɵtemplate(15,Se,9,5,"div",15)(16,rt,3,8,"div",16)(17,at,7,1,"div",17),n.ɵɵelement(18,"modal-dialog",18,0),n.ɵɵtemplate(20,lt,3,0,"div",19)(21,ut,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,te,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,t.TouchGestures,t.ngHidden,t.ngAttribute,t.ngZenScroll,t.ngCleanHTML,t.ngCleanBind,t.ngAriaLive,t.ErrorToastComponent,t.ImgError,t.ImageLoader,t.ngModalDialog,y,T,t.FormSubmit,o.ngTruncate,t.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,t.DirectivesModule,t.ErrorsModule,t.ImageErrorModule,t.ImageLoaderModule,s.RouterModule,t.ngModalsModule,t.StickerModule,C,z,t.FormSubmitModule,Z,o.NgTruncateModule,t.NgFocusModule]}),e.QnAComp=dt,e.QnAModule=pt});