1import{a as et}from"./chunk-3BNXZHW6.js";import{C as Z,E as tt,z as S}from"./chunk-4ZH7OCQT.js";import{e as J,k as X}from"./chunk-TYHNJDIL.js";import{Ba as c,Ca as Y}from"./chunk-FPGJCOAR.js";import{Bc as K,Cb as R,Da as E,Fb as j,Fc as Q,Gb as B,Lb as g,Mb as _,Ob as N,Pa as h,Pb as O,Qb as z,Sc as W,Tc as C,Ua as s,Uc as T,V as u,Vb as v,Vc as q,Wb as y,Xb as m,_ as o,_b as k,gc as f,ia as H,jb as I,ka as L,n as x,na as M,oc as G,pc as U,qb as P,tc as $,xc as V,ya as d,yc as F,zb as A,zc as D}from"./chunk-TU7EUU3B.js";import"./chunk-IMPBB4AK.js";var b=class r{platformId=o(d);isBrowser=c(this.platformId);pushTag(t){if(!this.isBrowser)return;let e=window;e.dataLayer=e.dataLayer||[],e.dataLayer.push(t)}getCid(){if(!this.isBrowser)return"";try{let t=document.cookie.match(/(?:^|;)\s*_ga=([^;]*)/);if(t){let e=decodeURIComponent(t[1]).split(".");if(e.length>=2)return e.slice(-2).join(".")}}catch(t){console.warn("GtmService: Could not parse _ga cookie",t)}return""}getDeviceType(){if(!this.isBrowser)return"Desktop";let t=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(t)?"Tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/i.test(t)?"Smartphone":"Desktop"}static \u0275fac=function(e){return new(e||r)};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};var w=class r{http=o(J);transferState=o(E);platformId=o(d);clientCache=new Map;async getFooterHtml(t){if(!t||!/^[a-f0-9]{24}$/i.test(t))return"";if(c(this.platformId)){let e=this.clientCache.get(t);if(e!==void 0)return e}if(this.transferState.hasKey(S)){let e=this.transferState.get(S,{});if(t in e){let i=e[t]||"";return c(this.platformId)&&(this.clientCache.set(t,i),this.transferState.remove(S)),i}}return Y(this.platformId)?"":this.fetchFooterFromApi(t)}async fetchFooterFromApi(t){try{let i=(await x(this.http.get(`/api/v3/modules/footer/${t}`)))?.data?.html||"";return this.clientCache.set(t,i),i}catch(e){return console.warn("[FooterDataService] Failed to fetch footer:",t,e),""}}static \u0275fac=function(e){return new(e||r)};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};var at=["htmlContent"],lt=()=>[1,2,3,4];function st(r,t){if(r&1&&m(0,"h3",5),r&2){f(2);let e=D(0);k("innerHTML",e,h)}}function ct(r,t){if(r&1&&(v(0,"div",4),g(1,st,1,1,"h3",5),m(2,"div",6),y()),r&2){f();let e=D(0),i=D(1);s(),_(e&&e!==""?1:-1),s(),k("innerHTML",i,h)}}function pt(r,t){if(r&1&&(V(0)(1),g(2,ct,3,2,"div",4)),r&2){let e,i,a=t.$implicit,p=f(3);F((e=p.appData())==null?null:e[`generalFooterLinkDirectoryGroup${a}Title`]),s();let n=F((i=p.appData())==null?null:i[`generalFooterLinkDirectoryGroup${a}Links`]);s(),_(n&&n!==""?2:-1)}}function dt(r,t){r&1&&(v(0,"div",1)(1,"div",3),O(2,pt,3,3,null,null,N),y()()),r&2&&(s(2),z(Q(0,lt)))}function mt(r,t){if(r&1&&(g(0,dt,4,1,"div",1),m(1,"footer",2,0)),r&2){let e,i=f();_(((e=i.appData())==null?null:e.generalFooterLinkDirectoryDisplay)==!0||((e=i.appData())==null?null:e.generalFooterLinkDirectoryDisplay)==="1"||((e=i.appData())==null?null:e.generalFooterLinkDirectoryDisplay)==="true"?0:-1),s(),k("innerHTML",i.footerHtmlTrusted(),h)}}function ft(r,t){r&1&&m(0,"div",7)}var rt=class r{util=o(tt);messages=o(et);destroyRef=o(L);sanitizer=o(X);platformId=o(d);injector=o(H);isBrowser=c(this.platformId);gtmService=o(b);dataService=o(Z);footerDataService=o(w);destroyed=!1;id=T("0");appData=T(null);htmlRef=q("htmlContent");rawHtml=M("");socialsAvailable={generalFooterSocialbuttonFacebookUrl:"{{facebookIcon}}",generalFooterSocialbuttonTwitterUrl:"{{twitterIcon}}",generalFooterSocialbuttonGoogleUrl:"{{googleIcon}}",generalFooterSocialbuttonBlogUrl:"{{bloggerIcon}}"};footerHtmlTrusted=W(()=>{let t=this.rawHtml()||"";return t=this.util.changePlaceholders(t),t=this.displayLinksFooter(t),t=this.changeSocialPlaceholders(t),t=this.util.changeAppsPlaceholders(t),this.sanitizer.bypassSecurityTrustHtml(t)});constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0}),C(()=>{let t=this.appData(),e=t?.footerId,i=t?.innerContentHtml;i?this.rawHtml.set(i):e?(this.rawHtml.set(""),this.footerDataService.getFooterHtml(e).then(a=>
1{this.destroyed||this.rawHtml.set(a)}).catch(()=>{this.destroyed||this.rawHtml.set("")})):this.rawHtml.set("")},{injector:this.injector}),C(()=>{let t=this.messages.message();t!=null&&this.rawHtml.set(t)},{injector:this.injector}),C(t=>{if(!this.isBrowser)return;let e=this.htmlRef()?.nativeElement;if(!e)return;let i=new AbortController;e.addEventListener("click",a=>{let p=a.target;if(!p)return;let n=p.closest("a");if(!n||!e.contains(n))return;let l=(n.getAttribute("href")||"").trim();if(!l)return;if(l==="#"||l==="#cmpscreencustom"||l==="#cmpscreen"||l.startsWith("javascript:")){a.preventDefault();return}if(l.startsWith("mailto:")||l.startsWith("tel:"))return;n.getAttribute("data-path")==="/help-center/"&&this.trackHelpCenterClick(),a.preventDefault();let ot=l,nt=n.getAttribute("target")==="_blank";this.util.manualNavigation(ot,nt)},{signal:i.signal,passive:!1}),t(()=>i.abort())})}displayLinksFooter(t){let e=this.appData()?.generalFooterLinksDisplay=="0";return t.replace(/{{displayLinks}}/g,e?"hideLinks":"")}changeSocialPlaceholders(t){let e=this.appData();for(let i in this.socialsAvailable){let a=this.socialsAvailable[i],n=(e?.[i]??"").toString().trim(),l=n?`href="${n}" target="_blank" rel="noopener noreferrer"`:'style="display:none"';t=t.replace(new RegExp(a,"g"),l)}return t}trackHelpCenterClick(){if(!this.isBrowser)return;let t=this.dataService.appSettings();this.gtmService.pushTag({event:"Help center - footer - Click",CustomerID:this.gtmService.getCid(),SkinID:String(t?.skin_id||""),SkinName:String(t?.name||""),Device:this.gtmService.getDeviceType()})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=I({type:r,selectors:[["app-footer"]],viewQuery:function(e,i){e&1&&G(i.htmlRef,at,5),e&2&&U()},inputs:{id:[1,"id"],appData:[1,"appData"]},decls:5,vars:3,consts:[["htmlContent",""],[1,"footer_link_directory_backgorund"],["id","footer",1,"footer-root",3,"innerHTML"],[1,"footer_link_directory_container"],[1,"footer_link_directory_group"],[1,"footer_link_directory_title",3,"innerHTML"],[1,"footer_link_directory_links",3,"innerHTML"],["aria-hidden","true",1,"footer-skeleton"]],template:function(e,i){e&1&&(v(0,"div"),P(1,mt,3,2)(2,ft,1,0),A(3,1,null,null,2,null,null,null,null,1),j(),B(0,-1),R(),y()),e&2&&$(K("module_",i.id()))},styles:[`.footer-root,.footer_link_directory_backgorund{content-visibility:auto;contain-intrinsic-size:1px 800px}.footer-skeleton{min-height:240px;background:#0000000f;border-radius:8px}footer{overflow-x:hidden}.footer_link_directory_container{display:flex;margin:0 auto;max-width:960px;padding:20px;justify-content:space-evenly}.footer_link_directory_group{margin-bottom:10px}.footer_link_directory_title,.footer_link_directory_group h3{font-weight:700}.footer_link_directory_group h3{font-weight:600!important}:host .footer_link_directory_group a{display:block;text-decoration:none;font-style:normal}@media (max-width: 600px){.footer_link_directory_container{flex-wrap:wrap}.footer_link_directory_group{flex:1 1 50%}} 2`],encapsulation:2,changeDetection:0})};export{rt as FooterComponent};
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.