1import{f as N}from"./chunk-ZKSRIWH6.js";import"./chunk-5LG6FWRW.js";import{i as Y}from"./chunk-JCPUWVFC.js";import"./chunk-MCQML6YT.js";import"./chunk-XNXLFDZX.js";import"./chunk-KELMSLCR.js";import"./chunk-N6W3AF2G.js";import{a as V}from"./chunk-IENL4UJA.js";import{d as Q,e as T}from"./chunk-JLWCQ6UT.js";import"./chunk-P4C42LQP.js";import"./chunk-RZZCZ2VH.js";import{l as E,m as k,w as L}from"./chunk-Z7IUSDSQ.js";import{Fa as m,Je as r,Jh as q,Kd as u,Ke as a,Le as x,Pe as y,Ra as b,Vf as d,Wf as M,Xf as g,fe as p,ff as O,hf as h,ig as S,kb as v,lb as _,pe as c,qe as C,re as f,vf as P,vg as A,wf as I,wg as F,xf as w,zc as i}from"./chunk-SRTQBDBP.js";import"./chunk-EJD3L6HM.js";import"./chunk-T7NDVU76.js";var B=["accordionItem"];function U(o,l){o&1&&(r(0,"div",9),x(1,"span",10),r(2,"span"),d(3,"Loading..."),a()())}function j(o,l){o&1&&(r(0,"div",11),d(1," Unable to load the frequently asked questions. Please try again later. "),a())}function z(o,l){o&1&&(r(0,"div",12),d(1," No frequently asked questions are available right now. "),a())}function D(o,l){if(o&1){let n=y();r(0,"div",15,0)(2,"h2",16)(3,"button",17),O("click",function(){let t=v(n).index,s=h(2);return _(s.toggleAccordion(t))}),d(4),a()(),r(5,"div",18)(6,"div",19),d(7),a()()()}if(o&2){let n=l.$implicit,e=l.index,t=h(2);C("animation-delay",e*.1+"s"),f("visible",t.isItemVisible(e)),p("data-index",e),i(2),c("id","headLs"+n.system.id),i(),f("collapsed",t.activeAccordionIndex!==e),p("aria-expanded",t.activeAccordionIndex===e)("aria-controls","quesLs"+n.system.id),i(),g(" ",n.fields.question," "),i(),f("show",t.activeAccordionIndex===e),c("id","quesLs"+n.system.id),p("aria-labelledby","headLs"+n.system.id),i(2),g(" ",n.fields.answer," ")}}function R(o,l){if(o&1&&(r(0,"div",13),u(1,D,8,16,"div",14),a()),o&2){let n=h();i(),c("ngForOf",n.pageContent==null?null:n.pageContent.children)("ngForTrackBy",n.trackByFn)}}var oe=(()=>{class o{constructor(){this.dynamicStore=m(N),this.sharedService=m(Y),this.cdr=m(q),this.pageContent=null,this.activeAccordionIndex=null,this.isLoading=!0,this.hasLoadError=!1,this.visibleItems=new Set,this.observedElements=new Set,this.supportsIntersectionObserver=typeof IntersectionObserver<"u"}ngOnInit(){this.sharedService.setActiveComponent("FAQS"),this.getPageContent()}ngAfterViewInit(){this.viewChangesSubscription=this.accordionItems.changes.subscribe(()=>{this.setupAccordionObserver()}),this.setupAccordionObserver()}setupAccordionObserver(){if(!this.supportsIntersectionObserver||!this.accordionItems)return;this.observer||(this.observer=new IntersectionObserver(e=>{e.forEach(t=>{let s=Number(t.target.getAttribute("data-index"));Number.isNaN(s)||(t.isIntersecting?this.visibleItems.add(s):this.visibleItems.delete(s))}),this.cdr.markForCheck()},{root:null,rootMargin:"0px",threshold:.1}));let n=new Set(this.accordionItems.map(e=>e.nativeElement));this.observedElements.forEach(e=>{n.has(e)||(this.observer?.unobserve(e),this.observedElements.delete(e))}),this.accordionItems.forEach(e=>{let t=e.nativeElement;this.observedElements.has(t)||(this.observer?.observe(t),this.observedElements.add(t))})}getPageContent(){this.dynamicStore.dynamicContent("FAQS",V.contentApiUrl+"/FAQS?withchildren=true").subscribe({next:n=>{this.pageContent=n?.[0]??null,this.isLoading=!1,this.hasLoadError=!1,this.cdr.markForCheck()},error:()=>{this.pageContent=null,this.isLoading=!1,this.hasLoadError=!0,this.cdr.markForCheck()}})}toggleAccordion(n){this.activeAccordionIndex=this.activeAccordionIndex===n?null:n}trackByFn(n,e){return e.system?.id||n.toString()}isItemVisible(n){return!this.supportsIntersectionObserver||this.visibleItems.has(n)}ngOnDestroy(){this.sharedService.setActiveComponent(""),this.viewChangesSubscription?.unsubscribe(),this.observer?.disconnect(),this.observedElements.clear()}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=b({type:o,selectors:[["app-faqs"]],viewQuery:function(e,t){if(e&1&&P(B,5),e&2){let s;I(s=w())&&(t.accordionItems=s)}},standalone:!0,features:[S],decls:10,vars:7,consts:[["accordionItem",""],[1,"faqs"],[1,"container"],[1,"pt-64","d-flex","flex-column"],[1,"visually-hidden"],["class","faqs-state","role","status","aria-live","polite",4,"ngIf"],["class","faqs-state","role","alert",4,"ngIf"],["class","faqs-state",4,"ngIf"],["class","gap-4 accordion accordion-flush d-flex flex-column w-100 order-0 order-md-1","id","LSquestion",4,"ngIf"],["role","status","aria-live","polite",1,"faqs-state"],["aria-hidden","true",1,"faqs-spinner"],["role","alert",1,"faqs-state"],[1,"faqs-state"],["id","LSquestion",1,"gap-4","accordion","accordion-flush","d-flex","flex-column","w-100","order-0","order-md-1"],["class","accordion-item",3,"visible","animation-delay",4,"ngFor","ngForOf","ngForTrackBy"],[1,"accordion-item"],[1,"accordion-header",3,"id"],["type","button",1,"accordion-button","collapsed","fs-22","f-w-bold","text-B51A04",3,"click"],[1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body","fw-light"]],template:function(e,t){e&1&&(r(0,"main",1)(1,"div",2)(2,"div",3)(3,"h1",4),d(4),A(5,"translate"),a(),u(6,U,4,0,"div",5)(7,j,2,0,"div",6)(8,z,2,0,"div",7)(9,R,2,2,"div",8),a()()()),e&2&&(i(4),M(F(5,5,"FAQS")),i(2),c("ngIf",t.isLoading),i(),c("ngIf",!t.isLoading&&t.hasLoadError),i(),c("ngIf",!t.isLoading&&!t.hasLoadError&&!(!(t.pageContent==null||t.pageContent.children==null)&&t.page
1Content.children.length)),i(),c("ngIf",t.pageContent==null||t.pageContent.children==null?null:t.pageContent.children.length))},dependencies:[L,E,k,T,Q],styles:[".faqs[_ngcontent-%COMP%]{min-height:50vh}.faqs-state[_ngcontent-%COMP%]{display:flex;min-height:220px;align-items:center;justify-content:center;gap:.75rem;padding:2rem;color:#6c757d;text-align:center}.faqs-spinner[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border:.18rem solid #dee2e6;border-top-color:#b51a04;border-radius:50%;animation:_ngcontent-%COMP%_faqsSpin .8s linear infinite}.custom-accordion[_ngcontent-%COMP%]{width:100%}.accordion-item[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #dee2e6;border-radius:16px!important;box-shadow:#64646f33 0 7px 29px;transition:box-shadow .15s ease-in-out,opacity .6s ease,transform .6s ease;overflow:hidden;opacity:1;transform:translateY(0) scale(1)}.accordion-item.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0) scale(1);animation:_ngcontent-%COMP%_fadeInUp .6s ease forwards}.accordion-item[_ngcontent-%COMP%]:hover{box-shadow:#64646f4d 0 10px 35px;transform:translateY(-2px)}.accordion-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.accordion-header[_ngcontent-%COMP%]{margin-bottom:0}.accordion-button[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;padding:24px!important;font-size:22px;color:#b51a04;text-align:left;background-color:#fff;border:0;border-radius:.375rem;overflow-anchor:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,border-radius .15s ease;cursor:pointer;border-bottom:2px solid #eee!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){border:0;border-bottom-right-radius:0;border-bottom-left-radius:0;box-shadow:none}.accordion-button[_ngcontent-%COMP%]:hover{z-index:2;background-color:#f8f9fa}.accordion-button[_ngcontent-%COMP%]:focus{z-index:3;border-color:#fff;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.accordion-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin-left:auto;transition:transform .2s ease-in-out}.accordion-icon.rotated[_ngcontent-%COMP%]{transform:rotate(45deg)}.accordion-collapse[_ngcontent-%COMP%]{max-height:0;overflow:hidden;transition:max-height .35s ease}.accordion-collapse.show[_ngcontent-%COMP%]{max-height:1000px;animation:_ngcontent-%COMP%_expandContent .35s ease-out}.accordion-body[_ngcontent-%COMP%]{padding:1rem 1.25rem;background-color:#fff;border-top:0;color:#a9a9a9!important;border-bottom-right-radius:16px;border-bottom-left-radius:16px;font-size:19px}.expanded[_ngcontent-%COMP%] .accordion-button[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}@keyframes _ngcontent-%COMP%_fadeInUp{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes _ngcontent-%COMP%_expandContent{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.accordion-item.visible[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeInUp .6s ease forwards,subtlePulse .3s ease .6s}@keyframes _ngcontent-%COMP%_subtlePulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes _ngcontent-%COMP%_faqsSpin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.faqs-spinner[_ngcontent-%COMP%], .accordion-item.visible[_ngcontent-%COMP%], .accordion-collapse.show[_ngcontent-%COMP%]{animation:none}.accordion-item[_ngcontent-%COMP%], .accordion-collapse[_ngcontent-%COMP%]{transition:none}}"]})}}return o})();export{oe as FAQSComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.