PageSourceSearch

https://www.progold.eu/chunk-B63DOPR3.js

js progold.eu collected 2026-10-09 21:52:03 UTC 255,203 bytes, 440 lines download raw bytes

1import{a as Sa,b as kr}from"./chunk-KJ2DTZTE.js";import{a as Ca}from"./chunk-EKXRV2PZ.js";import{b as ct}from"./chunk-IJVUT4FL.js";import{a as Ia}from"./chunk-XJNXF36J.js";import{a as Lr}from"./chunk-OQWTUUQ3.js";import{a as Wo,b as zo}from"./chunk-BYUXZABT.js";import{Ga as Ea,M as xa,ca as Ci,da as Pa,ea as wa,pa as Ta,r as mt,s as Ue,ta as Oa,yb as Jt}from"./chunk-CSKO464Y.js";import{B as ka,C as La,b as Ho,m as Mr,s as Aa}from"./chunk-RFZ65DFT.js";import{g as ma,i as Or}from"./chunk-ZAELU3GP.js";import{b as zt,c as fa,d as Qt}from"./chunk-KCBWTIVH.js";import{a as pa,b as da}from"./chunk-Q7LOV5U2.js";import{a as Ar}from"./chunk-V7OSM6MA.js";import{$ as va,A as Ii,C as ua,K as ha,L as Yt,M as et,P as Er,Q as He,R as Fe,S as ga,T as ba,_ as _a,aa as ya,ba as Si,p as Go}from"./chunk-Q4MTVQC2.js";import{b as ye,d as ca}from"./chunk-RRAYDVNW.js";import{$b as Xe,Ca as xt,Da as Pt,Db as Jo,Ea as ie,Fc as qt,Fd as wr,Ic as Pr,L as bi,Mc as oa,Na as ee,Nd as ut,Qa as lt,Qb as Zo,R as Tn,U as st,Wd as aa,Xd as sa,Yd as Tr,Z as _i,Zd as Gt,_ as vi,a as Ne,aa as Vo,b as Ir,ba as $o,c as Ee,cc as xr,dc as Xo,gb as Ze,kc as ea,lc as ve,ma as Ko,mc as ta,na as On,nc as na,qa as qo,qc as ra,sc as ia,t as Sr,ta as yi,u as Ct,ua as Qo,uc as wt,vb as Cr,vc as En,wb as Yo,wc as Kt,xe as Wt,ze as la}from"./chunk-WGWIBZ2L.js";import{$b as R,$c as S,Cc as Vt,D as We,Ec as ko,Fa as k,Fc as yt,Ga as L,Gb as j,Gc as $t,Ha as So,Hc as Lo,Ib as h,Id as No,Ja as ze,Ka as dr,Kb as rt,Kc as Mo,La as Bt,Lb as Ao,Mb as Qe,Na as he,O as go,Oa as Co,Ob as G,Oc as te,Oe as Ae,Pa as we,Pb as gr,Pc as be,Pe as at,Q as ur,Qa as N,Qe as Uo,Ra as Sn,Rb as Ht,Rc as Oe,Sb as Ft,T as cr,Ta as pe,Tb as v,Tc as X,Ub as y,Va as fr,Vb as D,W as bo,Wb as Ye,Wc as Do,Xb as Je,Ya as xo,Yb as le,Yc as ot,Z as _o,Zb as F,Zc as Pn,_ as vo,_a as Po,_c as jo,ab as Nt,ac as m,ad as xe,bc as Te,ca as yo,cb as di,cc as Ce,db as ge,dc as fi,dd as _e,f as co,g as mo,gd as It,gf as gi,h as po,hb as g,hc as vt,ic as br,id as Ro,jc as Re,jd as wn,kb as hr,kc as Be,kd as hi,l as fo,lb as _t,ld as St,ma as mr,mc as Ut,nb as Cn,nc as _r,nd as vr,ob as wo,oc as Z,pc as re,qa as pr,qc as ue,rb as To,rc as it,tb as J,td as Pe,ua as W,ub as Oo,ud as yr,va as Io,vd as Bo,w as In,wb as Eo,x as ho,xb as xn,ya as b,ye as Fo,zb as P}from"./chunk-6LP6WHZQ.js";import{a as z,b as fe}from"./chunk-5KTCK5IS.js";var ig=(()=>{class t{#e=b(Qo);#t=b(No);getProducts(){return this.#t.get(`${this.#e}products/all`).pipe(cr(()=>[]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zt=class{constructor(r){this.productRepository=r,this.initialState={products:[],rows:0,first:0,totalRecords:0},this.isLoading=pe(!1),this.productsDataView=pe(z({},this.initialState))}getProducts(r,e,n=""){return this.setLoading(!0),this.productRepository.getProducts().pipe(_o(1),vo(500),We(i=>{let o=[...i];if(n){let a=n.toLowerCase();o=i.filter(s=>s.shortName.toLowerCase().includes(a))}return{products:o.slice(r,r+e),first:r,rows:e,totalRecords:o.length}}),pr(i=>this.setProducts(i)),cr(i=>(this.setProducts(z({},this.initialState)),ho(()=>i))),yo(()=>this.setLoading(!1)))}setLoading(r){this.isLoading.set(r)}setProducts(r){this.productsDataView.set(r)}};var Dr=class{constructor(r){this.apiService=r}getProducts(){return this.apiService.getProducts()}};var jr=class{constructor(r){this.apiService=r,this.productRepository=new Dr(r)}initProductUseCases(){return new Zt(this.productRepository)}};var hg=t=>new jr(t).initProductUseCases();var ne=(function(t){return t[t.TITLE=0]="TITLE",t[t.DIVIDER=1]="DIVIDER",t[t.BACK_ITEM=2]="BACK_ITEM",t[t.LINK_ITEM=3]="LINK_ITEM",t[t.ACTION_ITEM=4]="ACTION_ITEM",t[t.SUB_MENU_ITEM=5]="SUB_MENU_ITEM",t[t.LINK_TITLE=6]="LINK_TITLE",t})(ne||{});var Ma=(()=>{class t extends Go{static \u0275fac=(()=>{let e;return function(i){return(e||(e=ze(t)))(i||t)}})();static \u0275cmp=J({type:t,selectors:[["BarsIcon"]],features:[xn],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,i){n&1&&(So(),v(0,"svg",0),D(1,"path",1),y()),n&2&&(Qe(i.getClassNames()),j("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();var Xt=(()=>{class t{#e=b(Or);#t=b(ye);#r=b(Mr);#i=S(()=>this.#t.getResourceByKey(ee.SIDEBAR_BACK_TO_MAIN_MENU));#o=S(()=>this.#r.getSiteFlag(ie.CategoryNameUrlTransformationEnabled));buildDividerMenuItem(){return{view:ne.DIVIDER}}joinGroupsWithDivider(...e){return e.reduce((n,i)=>(i.length>0&&n.push(...n.length>0?[this.buildDividerMenuItem()]:[],...i),n),[])}buildLinkTitleMenuItem(e,n,i){let o=this.#e.normalizeUrl(n),a=this.#n(o);return{view:ne.LINK_TITLE,data:z({title:e,target:i},a)}}
1buildTitleMenuItem(e){return{view:ne.TITLE,data:{title:e}}}buildBackMenuItem(e){return{view:ne.BACK_ITEM,data:{title:e}}}mapToLinkMenuItem(e,n,i){let o=this.#e.normalizeUrl(e.url),a=this.#n(o);return{view:ne.LINK_ITEM,data:fe(z({},a),{title:e.title,target:e.target,iconThemeName:n??void 0,iconUrl:i??e.icon?.url??void 0})}}mapToSubMenuItem(e,n,i,o){return{view:ne.SUB_MENU_ITEM,data:{title:e.title,iconThemeName:i??void 0,iconUrl:o??e.icon?.url??void 0,children:[this.buildBackMenuItem(this.#i()),this.buildDividerMenuItem(),this.buildTitleMenuItem(n??e.title),...(e.children??[]).map(a=>this.mapToLinkMenuItem(a))]}}}mapAPIHeaderMenuItem(e){let n=[];return e.title&&(e.url&&e.target?n.push(this.buildLinkTitleMenuItem(e.title,e.url,e.target)):n.push(this.buildTitleMenuItem(e.title))),e.link&&n.push(this.mapToLinkMenuItem(e.link)),e.children?.length&&e.children.forEach(i=>{if(i.children?.length){n.push({view:ne.SUB_MENU_ITEM,data:{title:i.title,children:this.mapAPIHeaderMenuItem(i)}});return}n.push(this.mapToLinkMenuItem(i))}),n}#n(e){if(!this.#o()||!("queryParams"in e)||!e.queryParams)return e;let n=e.queryParams[Ci];if(!n)return e;let i=Array.isArray(n)?n[0]:n;if(!Pa(i))return e;let o=wa(i);return fe(z({},e),{queryParams:fe(z({},e.queryParams),{[Ci]:o})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Da=(()=>{class t{constructor(){this.authService=b(ut),this.roleService=b(Jt)}getPermittedMainMenuItems(e=[]){return this.getPermittedNavItems(e)}getPermittedSubMenuItems(e=[]){return this.getPermittedNavItems(e)}getPermittedUtilityMenuItems(e=[]){return this.getPermittedNavItems(e)}getPermittedNavItems(e=[]){return e.filter(({isAuthenticationRequired:n,permissions:i})=>n?this.authService.isAuthenticated()?i?.length?this.roleService.checkPermissions(i):!0:!1:!0).map(n=>z(z({},n),n.children&&{children:this.getPermittedNavItems(n.children)}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var pt=(()=>{class t{constructor(){this.platformId=b(fr),this.transferState=b(xo),this.headerStateKey=Jo,this.contentService=b(ra),this.staticContentService=b(ia),this.languagesService=b(Wt),this.urlCreatorService=b(ta),this.currentSiteState=b(ve),this.router=b(Ae),this.resourceService=b(ye),this.headerPermissionsService=b(Da),this.authService=b(ut),this.featureRoutePathService=b(wr),this.isAuthorizedEcommerceUser=S(()=>this.currentSiteState.isECommerceEnabled()&&this.authService.isAuthenticated()),this.isUnauthorizedEcommerceUser=S(()=>this.currentSiteState.isECommerceEnabled()&&!this.authService.isAuthenticated()),this.headerParams=S(()=>({siteId:this.currentSiteState.siteId(),language:this.languagesService.language(),isPreviewMode:this.currentSiteState.isPreviewMode()})),this.headerInfo$=Ir(this.headerParams).pipe(mr(e=>!e.siteId||!e.language?fo:this.contentService.getHeader(e.siteId,e.language,e.isPreviewMode)),pr(e=>{Bo(this.platformId)&&this.transferState.set(this.headerStateKey,e)})),this.headerInfo=Ee(this.headerInfo$,{initialValue:this.transferState.get(this.headerStateKey,null)}),this.mainMenuItems=S(()=>this.headerPermissionsService.getPermittedMainMenuItems(this.headerInfo()?.mainMenuItems??[])),this.subMenuItems=S(()=>this.headerPermissionsService.getPermittedSubMenuItems(this.headerInfo()?.subMenuItems??[])),this.utilityMenuItems=S(()=>this.headerPermissionsService.getPermittedUtilityMenuItems(this.headerInfo()?.utilityMenuItems??[])),this.headerNavItems=S(()=>this.currentSiteState.isRootSite()?this.mainMenuItems():this.subMenuItems()),this.industryName=S(()=>this.currentSiteState.isRootSite()?"":this.currentSiteState.getSiteName()),this.textResources=S(()=>{let e=this.currentSiteState.getSiteFlag(ie.EcommerceIsEnabled)?ee.SEARCH_PAGE_ECOMMERCE_PLACEHOLDER:ee.SEARCH_PAGE_PLACEHOLDER;return{searchPlaceholder:this.resourceService.getResourceByKey(e)}}),this.headerLogoSrc=S(()=>this.staticContentService.getStaticAsset(ie.BrandingAssetsHeaderLogo)?.url??this.fallbackLogoSrc()),this.headerAltText=S(()=>this.currentSiteState.getSiteName()?.toLocaleLowerCase()?.includes("histor")?this.currentSiteState.getSiteName():"PPG Logo"),this.fallbackLogoSrc=pe(Zo),this.tabMenuVariant=S(()=>this.currentSiteState.getSiteSettingValueByKey(ie.BrandingHeaderBarTabMenuVariant)===Cr.STRONG?Cr.STRONG:Cr.DEFAULT),xe(()=>{let e=this.headerLogoSrc();e&&this.fallbackLogoSrc.set(e)})}navigateToRootPage(){this.router.navigateByUrl(this.urlCreatorService.createPageUrl(this.languagesService.language()))}navigateToSiteHubPage(){let e=this.currentSiteState.hubPagePath();e&&this.router.navigateByUrl(this.urlCreatorService.createPageUrl(this.languagesService.language(),e))}navigateToGlobalSearchPage(e){let n=this.featureRoutePathService.getGlobalSearchPath(e);n&&this.router.navigateByUrl(n)}navigateToProductPage(e){let n=this.featureRoutePathService.getProductJourneyListPath(e);n&&this.router.navigateByUrl(n)}navigateToColorPage(e){let n=this.featureRoutePathService.getColorsPath(e);n&&this.router.navigateByUrl(n)}navigateToDocumentResultsPage(e){let n=this.featureRoutePathService.getDocumentResultsPath(e);n&&this.router.navigateByUrl(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var se=(function(t){return t[t.CLOSED=0]="CLOSED",t[t.MAIN_MENU=1]="MAIN_MENU",t[t.SECONDARY_MENU=2]="SECONDARY_MENU",t[t.CHILD_MENU=3]="CHILD_MENU",t})(se||{}),en=(()=>{class t{constructor(){this.headerService=b(pt),this.configManagerService=b(Xo),this.currentSiteState=b(ve),this.headerMenuItemUtilsService=b(Xt),this.isCurrentSiteRoot=S(()=>!!this.currentSiteState.currentSite()?.isRootSite),this.rootSiteName=S(()=>this.configManagerService.getRootSite()?.name||""),this.mainMenuItems=this.headerService.mainMenuItems,this.subMenuItems=this.headerService.subMenuItems,this.utilityMenuItems=pe([]),this.sidebarState=pe({mode:se.CLOSED}),this.defaultOpenMenuSate=S(()=>this.isCurrentSiteRoot()?se.MAIN_MENU:se.SECONDARY_MENU),this.mainMenu
1SidebarItems=S(()=>this.headerMenuItemUtilsService.joinGroupsWithDivider(this.headerMenuItemUtilsService.mapAPIHeaderMenuItem({children:this.mainMenuItems()}),this.utilityMenuItems())),this.secondaryMenuSidebarItems=S(()=>this.headerMenuItemUtilsService.joinGroupsWithDivider([this.headerMenuItemUtilsService.buildBackMenuItem(this.rootSiteName())],[this.headerMenuItemUtilsService.buildTitleMenuItem(this.currentSiteState.getSiteName()),...this.headerMenuItemUtilsService.mapAPIHeaderMenuItem({children:this.subMenuItems()})],this.utilityMenuItems())),this.sidebarLogo=this.headerService.headerLogoSrc,this.sidebarLogoAltText=this.headerService.headerAltText,this.sidebarVisible=S(()=>this.sidebarState().mode!==se.CLOSED),this.sidebarMenuItems=S(()=>{let e=this.sidebarState();if(e.mode===se.MAIN_MENU)return this.mainMenuSidebarItems();if(e.mode===se.SECONDARY_MENU)return this.secondaryMenuSidebarItems();if(e.mode===se.CHILD_MENU){let n=e.item.data.children;return this.utilityMenuItems().includes(e.item)?n:this.headerMenuItemUtilsService.joinGroupsWithDivider([this.headerMenuItemUtilsService.buildBackMenuItem(e.parentTitle)],n,this.utilityMenuItems())}return[]})}openSidebar(e){if(!e){this.sidebarState.set({mode:this.defaultOpenMenuSate()});return}this.sidebarState.set({mode:se.CHILD_MENU,item:{view:ne.SUB_MENU_ITEM,data:{title:e.title,children:this.headerMenuItemUtilsService.mapAPIHeaderMenuItem(e)}},parentTitle:this.currentSiteState.getSiteName(),parentItems:[],rootMode:this.defaultOpenMenuSate()})}closeSidebar(){this.sidebarState.set({mode:se.CLOSED})}navigateToRootPage(){this.headerService.isUnauthorizedEcommerceUser()||(this.headerService.navigateToRootPage(),this.closeSidebar())}setUtilityItems(...e){jo(()=>this.utilityMenuItems.set(this.headerMenuItemUtilsService.joinGroupsWithDivider(...e)))}handleItemClick(e){switch(e.view){case ne.BACK_ITEM:this.sidebarState.update(n=>this.handleBackItemClick(n));return;case ne.SUB_MENU_ITEM:this.sidebarState.update(n=>this.handleSubMenuItemClick(e,n));return;case ne.ACTION_ITEM:e.data.action();return;case ne.LINK_TITLE:case ne.LINK_ITEM:this.closeSidebar();return}}handleSubMenuItemClick(e,n){let i=this.currentSiteState.getSiteName(),o=this.defaultOpenMenuSate();n.mode===se.MAIN_MENU&&!this.isCurrentSiteRoot()&&(i=this.rootSiteName(),o=se.MAIN_MENU);let a=[];return n.mode===se.CHILD_MENU&&(a.push(...n.parentItems,n.item),i=n.item.data.title),{mode:se.CHILD_MENU,item:e,parentItems:a,parentTitle:i,rootMode:o}}handleBackItemClick(e){if(e.mode===se.MAIN_MENU||e.mode===se.SECONDARY_MENU)return{mode:se.MAIN_MENU};if(e.mode===se.CHILD_MENU){if(!e.parentItems.length)return{mode:e.rootMode};let n="",i=e.parentItems.pop();return e.parentItems.length?n=e.parentItems[e.parentItems.length-1].data.title:n=this.currentSiteState.getSiteName(),{mode:se.CHILD_MENU,item:i,parentItems:e.parentItems,parentTitle:n,rootMode:e.rootMode}}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ja=(()=>{class t{constructor(){this.#e=b(ve),this.#t=b(Wt),this.#r=b(en),this.#i=b(Xt),this.#o=b(ye),this.#n=S(()=>({mainMenu:this.#o.getResourceByKey(ee.SIDEBAR_BACK_TO_MAIN_MENU),regionAndLanguages:this.#o.getResourceByKey(ee.SIDEBAR_REGION_AND_LANGUAGES)})),this.#a=S(()=>this.#i.buildBackMenuItem(this.#n().mainMenu)),this.#l=S(()=>this.#i.buildTitleMenuItem(this.#n().regionAndLanguages)),this.#u=S(()=>this.#e.sortedSiteLanguages().map(e=>this.#d(e))),this.menuItem=S(()=>({view:ne.SUB_MENU_ITEM,data:{title:this.#t.language().toUpperCase(),iconThemeName:"web",children:[this.#a(),this.#i.buildDividerMenuItem(),this.#l(),...this.#u()]}}))}#e;#t;#r;#i;#o;#n;#a;#l;#u;#p(e){this.#t.switchLanguage(e.languageVariant),this.#r.closeSidebar()}#d(e){return{view:ne.ACTION_ITEM,data:{title:`${e.countryName} (${e.languageName})`,subtitle:`${e.nativeCountryName} (${e.nativeLanguageName})`,active:this.#t.language()===e.languageVariant,action:()=>this.#p(e)}}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tn=(function(t){return t.LEFT="start",t.CENTER="center",t.RIGHT="end",t})(tn||{});var nn=class{constructor(r,e){this.items=[],this.areDefault=r,this.position=e}},Rr=class{constructor(){this.topLeft=new nn(!1,tn.LEFT),this.topCenter=new nn(!1,tn.CENTER),this.topRight=new nn(!0,tn.RIGHT),this.bottomRight=new nn(!1,tn.RIGHT)}setTopLeft(r){this.topLeft.items=r}setTopCenter(r){this.topCenter.items=r}setTopRight(r){this.topRight.items=r}setBottomRight(r){this.bottomRight.items=r}};var Ra=(()=>{class t extends aa{constructor(){super(...arguments),this.document=Tr`
2    query ($skip: Int, $take: Int, $customerKey: UUID) {
3      jobs(includeInactive: false, skip: $skip, take: $take, customerKey: $customerKey) {
4        items {
5          deliveryAddresses {
6            stateCode
7          }
8        }
9        totalCount
10      }
11    }
12  `}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ze(t)))(i||t)}})()}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ba=(()=>{class t{constructor(){this.#e=b(Gt),this.#t=b(Ra),this.#r=b(Jt),this.distinctJobsStates$=new po(1),this.distinctStateCodes=[],this.isPaymentMethodsHidden=S(()=>this.#r.ability().cannot(xt.READ,Pt.PAYMENT_METHODS)||this.#r.ability().cannot(xt.READ,Pt.PRICE)),this.isCustomerAllJobsBelongsToPR=Ee(this.isPaymentMethodsHidden()?In(!1):this.refreshDistinctJobsStates().pipe(We(e=>e?e.every(n=>n==="US-PR"):!1)))}#e;#t;#r;getDistinctJobsStates(){return this.distinctJobsStates$.asObservable()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}refreshDistinctJobsStates(){let e=this.getAllDistinctJobsStates({pageSize:100,pageNumber:0},0);return this.subscription=e.subscribe(this.distinctJobsStates$),e}getJobsStates(e,n){return n?this.#t.fetch({variables:{skip:e.pageNumber*e.pageSize,take:e.pageSize,customerKey:n},fetchPolicy:"network-only"}).pipe(We(i=>i.data)):In(null)}getAllDistinctJobsStates(e,n){return this.getJobsStates(e,this.#e.user()?.customerKey).pipe(mr(i=>{if(!i)return In(this.distinctStateCodes);let o=i.jobs.items.flatMap(a=>a.deliveryAddresses.map(s=>s.stateCode));if(this.distinctStateCodes=Array.from(new Set([...this.distinctStateCodes,...o])),i.jobs.totalCount>(n+1)*e.pageSize){let a={pageSize:100,pageNumber:n+1};return this.getAllDistinctJobsStates(a,n+1)}return In(this.distinctStateCodes)}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Na=(()=>{class t{constructor(){this.#e=b(ve),this.#t=b(pa),this.#r=b(pt),this.#i=b(Xt),this.#o=b(ja),this.#n=b(Gt),this.#a=b(ut),this.#l=b(Jt),this.#u=b(qt),this.#p=b(Ba),this.#d=Ee(this.#t.globalUserSettings$),this.#s=S(()=>!this.#l.ability().can(xt.READ,Pt.PAY_MY_BILL)||!this.#e.getSiteFlag(ie.EcommerceIsEnabled)||this.#r.isUnauthorizedEcommerceUser()),this.#b=S(()=>this.#e.getSiteFlag(ie.MultiLanguagesIsActive)),this.#h=S(()=>this.#r.utilityMenuItems().reduce((e,n)=>(this.#c(n)||e.push(n),e),[])),this.contactUsUtilityItem=S(()=>this.#g(this.#d())),this.utilityMenuItems=S(()=>this.#_(this.#d()))}#e;#t;#r;#i;#o;#n;#a;#l;#u;#p;#d;#s;#b;#h;#g(e){let n=this.#h().find(i=>i.utilityNavType===Kt.CONTACT_US);return n?this.#m(n,e):null}#_(e){let n=new Rr,i=this.#h(),o=this.#f(En.TOP_LEFT,i),a=this.#f(En.TOP_CENTER,i),s=this.#f(En.TOP_RIGHT,i),u=this.#f(En.BOTTOM_RIGHT,i),c=this.#b()?this.#o.menuItem():null;n.setTopRight(s.map(l=>this.#m(l,e)).filter(l=>!!l)),n.setTopLeft(o.map(l=>this.#m(l,e)).filter(l=>!!l)),n.setTopCenter(a.map(l=>this.#m(l,e)).filter(l=>!!l)),n.setBottomRight(u.map(l=>this.#m(l,e)).filter(l=>!!l));let p=i.filter(l=>!l.position).map(l=>this.#m(l,e));return Object.values(n).filter(l=>l?.areDefault).forEach(l=>{l.items.push(...p),c&&l.items.push(c)}),n}#f(e,n){return n.filter(i=>i.position===e)}#m(e,n){if((!this.#a.isAuthenticated()||n)&&e.utilityNavType===Kt.LOGIN){let a=this.#v(e,n);return a?fe(z({},a),{type:e.utilityNavType}):null}let i=e.children?.length&&e.children?.length>0,o;return i?o=this.#i.mapToSubMenuItem(e,e.title,e.icon?.description,e.icon?.url):o=this.#i.mapToLinkMenuItem(e,e.icon?.description,e.icon?.url),fe(z({},o),{type:e.utilityNavType})}#v(e,n){if(!this.#e.eCommerceIsAllowLogin()||!e)return null;if(!this.#a.isAuthenticated())return this.#i.mapToLinkMenuItem(e);let i=this.#n.user();if(!i)return null;let o=`${i.firstName} ${i.lastName}`,a=e.children?.reduce((s,u)=>(!n||this.#y(u,n)||this.#I(u,n)||s.push(u),s),[])??[];return e.children=a,e.title=o,this.#i.mapToSubMenuItem(e,e.title,e.icon?.description,e.icon?.url)}#c(e){return e.utilityNavType===Kt.PAY_MY_BILL?this.#s():!1}#y(e,n){return this.#S(e,wt.UserProfile)?!n?.userProfileEnabled:!1}#I(e,n){if(!this.#S(e,wt.PaymentMethods))return!1;if(!this.#n.user())return!0;let o=this.#l.ability().cannot(xt.READ,Pt.PAYMENT_METHODS),a=this.#l.ability().cannot(xt.READ,Pt.PRICE),s=this.#n.isB2BUser()&&n?.puertoRicoCardPaymentsEnabled===!1&&!!this.#p.isCustomerAllJobsBelongsToPR();return n?.creditCardsEnabled===!1||o||a||s}#S(e,n){let i=this.#u.getPathByAppRouteFeatureModule(n);return!!i&&e.url.startsWith(i)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hu=["*"],Ha=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["pds-header"]],ngContentSelectors:hu,decls:2,vars:0,template:function(n,i){n&1&&(Te(),v(0,"header"),Ce(1),y())},dependencies:[Pe],encapsulation:2})}}return t})();var gu=["menubar"],bu=(t,r)=>({"p-menubar-submenu":t,"p-menubar-root-list":r}),Va=t=>({"p-menubar-item-link":!0,"p-disabled":t}),_u=()=>({exact:!1}),vu=(t,r)=>({$implicit:t,root:r}),yu=t=>({display:t});function Iu(t,r){if(t&1&&D(0,"li",8),t&2){let e=m().$implicit,n=m();Ao(n.getItemProp(e,"style")),h("ngClass",n.getSeparatorItemClass(e)),j("id",n.getItemId(e))("data-pc-section","separator")}}function Su(t,r){if(t&1&&D(0,"span",19),t&2){let e=m(4).$implicit,n=m();h("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),j("data-pc-section","icon")("tabindex",-1)}}function Cu(t,r){if(t&1&&(v(0,"span",20),re(1),y()),t&2){let e=m(4).$implicit,n=m();h("id",n.getItemLabelId(e)),j("data-pc-section","label"),g(),it(" ",n.getItemLabel(e)," ")}}function xu(t,r){if(t&1&&D(0,"span",21),t&2){let e=m(4).$implicit,n=m();h("innerHTML",n.getItemLabel(e),di)("id",n.getItemLabelId(e)),j("data-pc-section","label")}}function Pu(t,r){if(t&1&&D(0,"p-badge",22),t&2){let e=m(4).$implicit,n=m();h("styleClass",n.getItemProp(e,"badgeStyleClass"))("value",n.getItemProp(e,"badge"))}}function wu(t,r){t&1&&D(0,"AngleDownIcon",25),t&2&&j("data-pc-section","submenuicon")}function Tu(t,r){t&1&&D(0,"AngleRightIcon",25),t&2&&j("data-pc-section","submenuicon")}function Ou(t,r){if(t&1&&(Ye(0),P(1,wu,1,1,"AngleDownIcon",24)(2,Tu,1,1,"AngleRightIcon",24),Je()),t&2){let e=m(6);g(),h("ngIf",e.root),g(),h("ngIf",!e.root)}}function Eu(t,r){}function Au(t,r){t&1&&P(0,Eu,0,0,"ng-template",26),t&2&&h("data-pc-section","submenuicon")}function ku(t,r){if(t&1&&(Ye(0),P(1,Ou,3,2,"ng-container",11)(2,Au,1,1,null,23),Je()),t&2){let e=m(5);g(),h("ngIf",!e.submenuiconTemplate),g(),h("ngTemplateOutlet",e.submenuiconTemplate)}}function Lu(t,r){if(t&1&&(v(0,"a",15),P(1,Su,1,4,"span",16)(2,Cu,2,3,"span",17)(3,xu,1,3,"ng-template",null,2,X)(5,Pu,1,2,"p-badge",18)(6,ku,3,2,"ng-container",11),y()),t&2){let e=Z(4),n=m(3).$implicit,i=m();h("target",i.getItemProp(n,"target"))("ngClass",yt(11,Va,i.getItemProp(n,"disabled"))),j("href",i.getItemProp(n,"url"),ge)("data-automationid",i.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),g(),h("ngIf",i.getItemProp(n,"icon")),g(),h("ngIf",i.getItemProp(n,"escape"))("ngIfElse",e),g(3),h("ngIf",i.getItemProp(n,"badge")),g(),h("ngIf",i.isItemGroup(n))}}function Mu(t,r){if(t&1&&D(0,"span",19),t&2){let e=m(4).$implicit,n=m();h("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),j("data-pc-section","icon")("tabindex",-1)}}function Du(t,r){if(t&1&&(v(0,"span",29),re(1),y()),t&2){let e=m(4).$implicit,n=m();g(),ue(n.getItemLabel(e))}}function ju(t,r){if(t&1&&D(0,"span",30),t&2){let e=m(4).$implicit,n=m();h("innerHTML",n.getItemLabel(e),di),j("data-pc-section","label")}}function Ru(t,r){if(t&1&&D(0,"p-badge",22),t&2){let e=m(4).$implicit,n=m();h("styleClass",n.getItemProp(e,"badgeStyleClass"))("value",n.getItemProp(e,"badge"))}}function Bu(t,r){t&1&&D(0,"AngleDownIcon",25),t&2&&j("data-pc-section","submenuicon")}function Nu(t,r){t&1&&D(0,"AngleRightIcon",25),t&2&&j("data-pc-section","submenuicon")}function Hu(t,r){if(t&1&&(Ye(0),P(1,Bu,1,1,"AngleDownIcon",24)(2,Nu,1,1,"AngleRightIcon",24),Je()),t&2){let e=m(6);g(),h("ngIf",e.root),g(),h("ngIf",!e.root)}}function Fu(t,r){}function Uu(t,r){t&1&&P(0,Fu,0,0,"ng-template",26),t&2&&h("data-pc-section","submenuicon")}function Vu(t,r){if(t&1&&(Ye(0),P(1,Hu,3,2,"ng-container",11)(2,Uu,1,1,null,23),Je()),t&2){let e=m(5);g(),h("ngIf",!e.submenuiconTemplate),g(),h("ngTemplateOutlet",e.submenuiconTemplate)}}function $u(t,r){if(t&1&&(v(0,"a",27),P(1,Mu,1,4,"span",16)(2,Du,2,1,"span",28)(3,ju,1,2,"ng-template",null,3,X)(5,Ru,1,2,"p-badge",18)(6,Vu,3,2,"ng-container",11),y()),t&2){let e=Z(4),n=m(3).$implicit,i=m();h("routerLink",i.getItemProp(n,"routerLink"))("queryParams",i.getItemProp(n,"queryParams"))("routerLinkActive","p-menubar-item-link-active")("routerLinkActiveOptions",i.getItemProp(n,"routerLinkActiveOptions")||ko(20,_u))("target",i.getItemProp(n,"target"))("ngClass",yt(21,Va,i.getItemProp(n,"disabled")))("fragment",i.getItemProp(n,"fragment"))("queryParamsHandling",i.getItemProp(n,"queryParamsHandling"))("preserveFragment",i.getItemProp(n,"preserveFragment"))("skipLocationChange",i.getItemProp(n,"skipLocationChange"))("replaceUrl",i.getItemProp(n,"replaceUrl"))("state",i.getItemProp(n,"state")),j("data-automationid",i.getItemProp(n,"automationId"))("tabindex",-1)("data-pc-section","action"),g(),h("ngIf",i.getItemProp(n,"icon")),g(),h("ngIf",i.getItemProp(n,"escape"))("ngIfElse",e),g(3),h("ngIf",i.getItemProp(n,"badge")),g(),h("ngIf",i.isItemGroup(n))}}function Ku(t,r){if(t&1&&(Ye(0),P(1,Lu,7,13,"a",13)(2,$u,7,23,"a",14),Je()),t&2){let e=m(2).$implicit,n=m();g(),h("ngIf",!n.getItemProp(e,"routerLink")),g(),h("ngIf",n.getItemProp(e,"routerLink"))}}function qu(t,r){}function Gu(t,r){t&1&&P(0,qu,0,0,"ng-template")}function Wu(t,r){if(t&1&&(Ye(0),P(1,Gu,1,0,null,31),Je()),t&2){let e=m(2).$implicit,n=m();g(),h("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",$t(2,vu,e.item,n.root))}}function zu(t,r){if(t&1){let e=F();v(0,"p-menubarSub",32),R("itemClick",function(i){k(e);let o=m(3);return L(o.itemClick.emit(i))})("itemMouseEnter",function(i){k(e);let o=m(3);return L(o.onItemMouseEnter(i))}),y()}if(t&2){let e=m(2).$implicit,n=m();h("itemTemplate",n.itemTemplate)("items",e.items)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("menuId",n.menuId)("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)("ariaLabelledBy",n.getItemLabelId(e))("inlineStyles",yt(10,yu,n.isItemActive(e)?"flex":"none"))}}function Qu(t,r){if(t&1){let e=F();v(0,"li",9,1)(2,"div",10),R("click",function(i){k(e);let o=m().$implicit,a=m();return L(a.onItemClick(i,o))})("mouseenter",function(i){k(e);let o=m().$implicit,a=m();return L(a.onItemMouseEnter({$event:i,processedItem:o}))}),P(3,Ku,3,2,"ng-container",11)(4,Wu,2,5,"ng-container",11),y(),P(5,zu,1,12,"p-menubarSub",12),y()}if(t&2){let e=m(),n=e.$implicit,i=e.index,o=m();Qe(o.getItemProp(n,"styleClass")),h("ngStyle",o.getItemProp(n,"style"))("ngClass",o.getItemClass(n))("tooltipOptions",o.getItemProp(n,"tooltipOptions")),j("id",o.getItemId(n))("data-pc-section","menuitem")("data-p-highlight",o.isItemActive(n))("data-p-focused",o.isItemFocused(n))("data-p-disabled",o.isItemDisabled(n))("aria-label",o.getItemLabel(n))("aria-disabled",o.isItemDisabled(n)||void 0)("aria-haspopup",o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0)("aria-expanded",o.isItemGroup(n)?o.isItemActive(n):void 0)("aria-setsize",o.getAriaSetSize())("aria-posinset",o.getAriaPosInset(i)),g(2),j("data-pc-section","content"),g(),h("ngIf",!o.itemTemplate),g(),h("ngIf",o.itemTemplate),g(),h("ngIf",o.isItemVisible(n)&&o.isItemGroup(n))}}function Yu(t,r){if(t&1&&P(0,Iu,1,5,"li",6)(1,Qu,6,20,"li",7),t&2){let e=r.$implicit,n=m();h("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),g(),h("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}var Ju=["start"],Zu=["end"],Xu=["item"],ec=["menuicon"],tc=["submenuicon"],nc=["menubutton"],rc=["rootmenu"],ic=["*"],oc=(t,r)=>({"p-menubar p-component":!0,"p-menubar-mobile":t,"p-menubar-mobile-active":r});function ac(t,r){t&1&&le(0)}function sc(t,r){if(t&1&&(v(0,"div",8),P(1,ac,1,0,"ng-container",9),y()),t&2){let e=m();g(),h("ngTemplateOutlet",e.startTemplate||e._startTemplate)}}function lc(t,r){t&1&&D(0,"BarsIcon")}function uc(t,r){}function cc(t,r){t&1&&P(0,uc,0,0,"ng-template")}function mc(t,r){if(t&1){let e=F();v(0,"a",10,2),R("click",function(i){k(e);let o=m();return L(o.menuButtonClick(i))})("keydown",function(i){k(e);let o=m();return L(o.menuButtonKeydown(i))}),P(2,lc,1,0,"BarsIcon",11)(3,cc,1,0,null,9),y()}if(t&2){let e=m();j("aria-haspopup",!!(e.model.length&&e.model.length>0))("aria-expanded",e.mobileActive)("aria-controls",e.id)("aria-label",e.config.translation.aria.navigation)("data-pc-section","button"),g(2),h("ngIf",!e.menuIconTemplate&&!e._menuIconTemplate),g(),h("ngTemplateOutlet",e.menuIconTemplate||e._menuIconTemplate)}}function pc(t,r){t&1&&le(0)}function dc(t,r){if(t&1&&(v(0,"div",12),P(1,pc,1,0,"ng-container",9),y()),t&2){let e=m();g(),h("ngTemplateOutlet",e.endTemplate||e._endTemplate)}}function fc(t,r){t&1&&(v(0,"div",12),Ce(1),y())}var hc=({dt:t})=>`
13.p-menubar {
14    display: flex;
15    align-items: center;
16    background: ${t("menubar.background")};
17    border: 1px solid ${t("menubar.border.color")};
18    border-radius: ${t("menubar.border.radius")};
19    color: ${t("menubar.color")};
20    padding: ${t("menubar.padding")};
21    gap: ${t("menubar.gap")};
22}
23
24.p-menubar-start,
25.p-megamenu-end {
26    display: flex;
27    align-items: center;
28}
29
30.p-menubar-root-list,
31.p-menubar-submenu {
32    display: flex;
33    margin: 0;
34    padding: 0;
35    list-style: none;
36    outline: 0 none;
37}
38
39.p-menubar-root-list {
40    align-items: center;
41    flex-wrap: wrap;
42    gap: ${t("menubar.gap")};
43}
44
45.p-menubar-root-list > .p-menubar-item > .p-menubar-item-content {
46    border-radius: ${t("menubar.base.item.border.radius")};
47}
48
49.p-menubar-root-list > .p-menubar-item > .p-menubar-item-content > .p-menubar-item-link {
50    padding: ${t("menubar.base.item.padding")};
51}
52
53.p-menubar-item-content {
54    transition: background ${t("menubar.transition.duration")}, color ${t("menubar.transition.duration")};
55    border-radius: ${t("menubar.item.border.radius")};
56    color: ${t("menubar.item.color")};
57}
58
59.p-menubar-item-link {
60    cursor: pointer;
61    display: flex;
62    align-items: center;
63    text-decoration: none;
64    overflow: hidden;
65    position: relative;
66    color: inherit;
67    padding: ${t("menubar.item.padding")};
68    gap: ${t("menubar.item.gap")};
69    user-select: none;
70    outline: 0 none;
71}
72
73.p-menubar-item-label {
74    line-height: 1;
75}
76
77.p-menubar-item-icon {
78    color: ${t("menubar.item.icon.color")};
79}
80
81.p-menubar-submenu-icon {
82    color: ${t("menubar.submenu.icon.color")};
83    margin-left: auto;
84    font-size: ${t("menubar.submenu.icon.size")};
85    width: ${t("menubar.submenu.icon.size")};
86    height: ${t("menubar.submenu.icon.size")};
87}
88
89.p-menubar-submenu .p-menubar-submenu-icon:dir(rtl) {
90    margin-left: 0;
91    margin-right: auto;
92}
93
94.p-menubar-item.p-focus > .p-menubar-item-content {
95    color: ${t("menubar.item.focus.color")};
96    background: ${t("menubar.item.focus.background")};
97}
98
99.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-item-icon {
100    color: ${t("menubar.item.icon.focus.color")};
101}
102
103.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-submenu-icon {
104    color: ${t("menubar.submenu.icon.focus.color")};
105}
106
107.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover {
108    color: ${t("menubar.item.focus.color")};
109    background: ${t("menubar.item.focus.background")};
110}
111
112.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-item-icon {
113    color: ${t("menubar.item.icon.focus.color")};
114}
115
116.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-submenu-icon {
117    color: ${t("menubar.submenu.icon.focus.color")};
118}
119
120.p-menubar-item-active > .p-menubar-item-content {
121    color: ${t("menubar.item.active.color")};
122    background: ${t("menubar.item.active.background")};
123}
124
125.p-menubar-item-active > .p-menubar-item-content .p-menubar-item-icon {
126    color: ${t("menubar.item.icon.active.color")};
127}
128
129.p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {
130    color: ${t("menubar.submenu.icon.active.color")};
131}
132
133.p-menubar-submenu {
134    display: none;
135    position: absolute;
136    min-width: 12.5rem;
137    z-index: 1;
138    background: ${t("menubar.submenu.background")};
139    border: 1px solid ${t("menubar.submenu.border.color")};
140    border-radius: ${t("menubar.submenu.border.radius")};
141    box-shadow: ${t("menubar.submenu.shadow")};
142    color: ${t("menubar.submenu.color")};
143    flex-direction: column;
144    padding: ${t("menubar.submenu.padding")};
145    gap: ${t("menubar.submenu.gap")};
146}
147
148.p-menubar-submenu .p-menubar-separator {
149    border-top: 1px solid ${t("menubar.separator.border.color")};
150}
151
152.p-menubar-submenu .p-menubar-item {
153    position: relative;
154}
155
156.p-menubar-submenu > .p-menubar-item-active .p-menubar-submenu {
157    display: block;
158    left: 100%;
159    top: 0;
160}
161
162.p-menubar-end {
163    margin-left: auto;
164    align-self: center;
165}
166
167.p-menubar-end:dir(rtl) {
168    margin-left: 0;
169    margin-right: auto;
170}
171
172.p-menubar-button {
173    display: none;
174    justify-content: center;
175    align-items: center;
176    cursor: pointer;
177    width: ${t("menubar.mobile.button.size")};
178    height: ${t("menubar.mobile.button.size")};
179    position: relative;
180    color: ${t("menubar.mobile.button.color")};
181    border: 0 none;
182    background: transparent;
183    border-radius: ${t("menubar.mobile.button.border.radius")};
184    transition: background ${t("menubar.transition.duration")}, color ${t("menubar.transition.duration")}, outline-color ${t("menubar.transition.duration")};
185    outline-color: transparent;
186}
187
188.p-menubar-button:hover {
189    color: ${t("menubar.mobile.button.hover.color")};
190    background: ${t("menubar.mobile.button.hover.background")};
191}
192
193.p-menubar-button:focus-visible {
194    box-shadow: ${t("menubar.mobile.button.focus.ring.shadow")};
195    outline: ${t("menubar.mobile.button.focus.ring.width")} ${t("menubar.mobile.button.focus.ring.style")} ${t("menubar.mobile.button.focus.ring.color")};
196    outline-offset: ${t("menubar.mobile.button.focus.ring.offset")};
197}
198
199.p-menubar-mobile {
200    position: relative;
201}
202
203.p-menubar-mobile .p-menubar-button {
204    display: flex;
205}
206
207.p-menubar-mobile .p-menubar-root-list {
208    position: absolute;
209    display: none;
210    width: 100%;
211    padding: ${t("menubar.submenu.padding")};
212    background: ${t("menubar.submenu.background")};
213    border: 1px solid ${t("menubar.submenu.border.color")};
214    box-shadow: ${t("menubar.submenu.shadow")};
215}
216
217.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content {
218    border-radius: ${t("menubar.item.border.radius")};
219}
220
221.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content > .p-menubar-item-link {
222    padding: ${t("menubar.item.padding")};
223}
224
225.p-menubar-mobile-active .p-menubar-root-list {
226    display: flex;
227    flex-direction: column;
228    top: 100%;
229    left: 0;
230    z-index: 1;
231}
232
233.p-menubar-mobile .p-menubar-root-list:dir(rtl) {
234    left: auto;
235    right: 0;
236}
237
238.p-menubar-mobile .p-menubar-root-list .p-menubar-item {
239    width: 100%;
240    position: static;
241}
242
243.p-menubar-mobile .p-menubar-root-list .p-menubar-separator {
244    border-top: 1px solid ${t("menubar.separator.border.color")};
245}
246
247.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content .p-menubar-submenu-icon {
248    margin-left: auto;
249    transition: transform 0.2s;
250}
251
252.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content .p-menubar-submenu-icon:dir(rtl) {
253    margin-left: 0;
254    margin-right: auto;
255}
256
257.p-menubar-mobile .p-menubar-root-list > .p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {
258    transform: rotate(-180deg);
259}
260
261.p-menubar-mobile .p-menubar-submenu .p-menubar-submenu-icon {
262    transition: transform 0.2s;
263    transform: rotate(90deg);
264}
265
266.p-menubar-mobile  .p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {
267    transform: rotate(-90deg);
268}
269
270.p-menubar-mobile .p-menubar-submenu {
271    width: 100%;
272    position: static;
273    box-shadow: none;
274    border: 0 none;
275    padding-left: ${t("menubar.submenu.mobile.indent")};
276}
277`;var gc={root:({instance:t})=>["p-menubar p-component",{"p-menubar-mobile":t.queryMatches,"p-menubar-mobile-active":t.mobileActive}],start:"p-menubar-start",button:"p-menubar-button",rootList:"p-menubar-root-list",item:({instance:t,processedItem:r})=>["p-menubar-item",{"p-menubar-item-active":t.isItemActive(r),"p-focus":t.isItemFocused(r),"p-disabled":t.isItemDisabled(r)}],itemContent:"p-menubar-item-content",itemLink:"p-menubar-item-link",itemIcon:"p-menubar-item-icon",itemLabel:"p-menubar-item-label",submenuIcon:"p-menubar-submenu-icon",submenu:"p-menubar-submenu",separator:"p-menubar-separator",end:"p-menubar-end"},Fa=(()=>{class t extends qo{name="menubar";theme=hc;classes=gc;static \u0275fac=(()=>{let e;return function(i){return(e||(e=ze(t)))(i||t)}})();static \u0275prov=W({token:t,factory:t.\u0275fac})}return t})();var xi=(()=>{class t{autoHide;autoHideDelay;mouseLeaves=new co;mouseLeft$=this.mouseLeaves.pipe(bo(()=>go(this.autoHideDelay)),ur(e=>this.autoHide&&e));static \u0275fac=function(n){return new(n||t)};static \u0275prov=W({token:t,factory:t.\u0275fac})}return t})(),bc=(()=>{class t extends yi{items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;mobileActive;autoDisplay;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;inlineStyles;submenuiconTemplate;itemClick=new he;itemMouseEnter=new he;menuFocus=new he;menuBlur=new he;menuKeydown=new he;menubarViewChild;mouseLeaveSubscriber;menubarService=b(xi);ngOnInit(){super.ngOnInit(),this.mouseLeaveSubscriber=this.menubarService.mouseLeft$.subscribe(()=>{this.cd.markForCheck()})}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}getItemProp(e,n,i=null){return e&&e.item?vi(e.item[n],i):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemLabelId(e){return`${this.menuId}_${e.key}_label`}getItemClass(e){return fe(z({},this.getItemProp(e,"class")),{"p-menubar-item":!0,"p-menubar-item-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)})}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return fe(z({},this.getItemProp(e,"class")),{"p-menubar-separator":!0})}isItemVisible(e){return this.getItemProp(e,"visible")!==!1}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return st(e.items)}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}onItemMouseLeave(){this.menubarService.mouseLeaves.next(!0)}onItemMouseEnter(e){if(this.autoDisplay){this.menubarService.mouseLeaves.next(!1);let{event:n,processedItem:i}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:i})}}ngOnDestroy(){this.mouseLeaveSubscriber?.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ze(t)))(i||t)}})();static \u0275cmp=J({type:t,selectors:[["p-menubarSub"],["p-menubarsub"]],viewQuery:function(n,i){if
277(n&1&&br(gu,7),n&2){let o;Re(o=Be())&&(i.menubarViewChild=o.first)}},inputs:{items:"items",itemTemplate:"itemTemplate",root:[2,"root","root",ot],autoZIndex:[2,"autoZIndex","autoZIndex",ot],baseZIndex:[2,"baseZIndex","baseZIndex",Pn],mobileActive:[2,"mobileActive","mobileActive",ot],autoDisplay:[2,"autoDisplay","autoDisplay",ot],menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:[2,"level","level",Pn],focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",inlineStyles:"inlineStyles",submenuiconTemplate:"submenuiconTemplate"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},features:[xn],decls:3,vars:12,consts:[["menubar",""],["listItem",""],["htmlLabel",""],["htmlRouteLabel",""],["role","menubar",3,"focus","blur","keydown","ngClass","tabindex","ngStyle"],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],[1,"p-menubar-item-content",3,"click","mouseenter"],[4,"ngIf"],[3,"itemTemplate","items","mobileActive","autoDisplay","menuId","activeItemPath","focusedItemId","level","ariaLabelledBy","inlineStyles","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menubar-item-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menubar-item-label",3,"id",4,"ngIf","ngIfElse"],[3,"styleClass","value",4,"ngIf"],[1,"p-menubar-item-icon",3,"ngClass","ngStyle"],[1,"p-menubar-item-label",3,"id"],[1,"p-menubar-item-label",3,"innerHTML","id"],[3,"styleClass","value"],[4,"ngTemplateOutlet"],["class","p-menubar-submenu-icon",4,"ngIf"],[1,"p-menubar-submenu-icon"],[3,"data-pc-section"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["class","p-menubar-item-label",4,"ngIf","ngIfElse"],[1,"p-menubar-item-label"],[1,"p-menubar-item-label",3,"innerHTML"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"itemClick","itemMouseEnter","itemTemplate","items","mobileActive","autoDisplay","menuId","activeItemPath","focusedItemId","level","ariaLabelledBy","inlineStyles"]],template:function(n,i){if(n&1){let o=F();v(0,"ul",4,0),R("focus",function(s){return k(o),L(i.menuFocus.emit(s))})("blur",function(s){return k(o),L(i.menuBlur.emit(s))})("keydown",function(s){return k(o),L(i.menuKeydown.emit(s))}),P(2,Yu,2,2,"ng-template",5),y()}n&2&&(h("ngClass",$t(9,bu,!i.root,i.root))("tabindex",0)("ngStyle",i.inlineStyles),j("data-pc-section","menu")("aria-label",i.ariaLabel)("aria-labelledBy",i.ariaLabelledBy)("id",i.root?i.menuId:null)("aria-activedescendant",i.focusedItemId),g(2),h("ngForOf",i.items))},dependencies:[t,Pe,It,Ro,wn,St,hi,gi,at,Uo,ua,Si,ya,Wo,zo,et,Yt,On],encapsulation:2})}return t})(),wi=(()=>{class t extends yi{document;platformId;el;renderer;cd;menubarService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}style;styleClass;autoZIndex=!0;baseZIndex=0;autoDisplay=!1;autoHide;breakpoint="960px";autoHideDelay=100;id;ariaLabel;ariaLabelledBy;onFocus=new he;onBlur=new he;menubutton;rootmenu;mobileActive;matchMediaListener;query;queryMatches;outsideClickListener;resizeListener;mouseLeaveSubscriber;dirty=!1;focused=!1;activeItemPath=pe([]);number=pe(0);focusedItemInfo=pe({index:-1,level:0,parentKey:"",item:null});searchValue="";searchTimeout;_processedItems;_componentStyle=b(Fa);_model;get visibleItems(){let e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){let e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:e.index!==-1?`${this.id}${st(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,i,o,a,s){super(),this.document=e,this.platformId=n,this.el=i,this.renderer=o,this.cd=a,this.menubarService=s,xe(()=>{let u=this.activeItemPath();st(u)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())})}ngOnInit(){super.ngOnInit(),this.bindMatchMediaListener(),this.menubarService.autoHide=this.autoHide,this.menubarService.autoHideDelay=this.autoHideDelay,this.mouseLeaveSubscriber=this.menubarService.mouseLeft$.subscribe(()=>this.unbindOutsideClickListener()),this.id=this.id||$o("pn_id_")}startTemplate;endTemplate;itemTemplate;menuIconTemplate;submenuIconTemplate;templates;_startTemplate;_endTemplate;_itemTemplate;_menuIconTemplate;_submenuIconTemplate;
277ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"start":this._startTemplate=e.template;break;case"end":this._endTemplate=e.template;break;case"menuicon":this._menuIconTemplate=e.template;break;case"submenuicon":this._submenuIconTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}createProcessedItems(e,n=0,i={},o=""){let a=[];return e&&e.forEach((s,u)=>{let c=(o!==""?o+"_":"")+u,p={item:s,index:u,level:n,key:c,parent:i,parentKey:o};p.items=this.createProcessedItems(s.items,n+1,p,c),a.push(p)}),a}bindMatchMediaListener(){if(yr(this.platformId)&&!this.matchMediaListener){let e=window.matchMedia(`(max-width: ${this.breakpoint})`);this.query=e,this.queryMatches=e.matches,this.matchMediaListener=()=>{this.queryMatches=e.matches,this.mobileActive=!1,this.cd.markForCheck()},e.addEventListener("change",this.matchMediaListener)}}unbindMatchMediaListener(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)}getItemProp(e,n){return e?vi(e[n]):void 0}menuButtonClick(e){this.toggle(e)}menuButtonKeydown(e){(e.code==="Enter"||e.code==="Space")&&this.menuButtonClick(e)}onItemClick(e){let{originalEvent:n,processedItem:i}=e,o=this.isProcessedItemGroup(i),a=Tn(i.parent);if(this.isSelected(i)){let{index:u,key:c,level:p,parentKey:l,item:f}=i;this.activeItemPath.set(this.activeItemPath().filter(d=>c!==d.key&&c.startsWith(d.key))),this.focusedItemInfo.set({index:u,level:p,parentKey:l,item:f}),this.dirty=!a,Ct(this.rootmenu.menubarViewChild.nativeElement)}else if(o)this.onItemChange(e);else{let u=a?i:this.activeItemPath().find(c=>c.parentKey==="");this.hide(n),this.changeFocusedItemIndex(n,u?u.index:-1),this.mobileActive=!1,Ct(this.rootmenu.menubarViewChild.nativeElement)}}onItemMouseEnter(e){bi()||this.mobileActive||this.onItemChange(e)}changeFocusedItemIndex(e,n){let i=this.findVisibleItem(n);if(this.focusedItemInfo().index!==n){let o=this.focusedItemInfo();this.focusedItemInfo.set(fe(z({},o),{item:i.item,index:n})),this.scrollInView()}}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedItemId,i=Sr(this.rootmenu.el.nativeElement,`li[id="${n}"]`);i&&i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"})}onItemChange(e){let{processedItem:n,isFocus:i}=e;if(Tn(n))return;let{index:o,key:a,level:s,parentKey:u,items:c,item:p}=n,l=st(c),f=this.activeItemPath().filter(d=>d.parentKey!==u&&d.parentKey!==a);l&&f.push(n),this.focusedItemInfo.set({index:o,level:s,parentKey:u,item:p}),this.activeItemPath.set(f),l&&(this.dirty=!0),i&&Ct(this.rootmenu.menubarViewChild.nativeElement)}toggle(e){this.mobileActive?(this.mobileActive=!1,Ii.clear(this.rootmenu.el.nativeElement),this.hide()):(this.mobileActive=!0,Ii.set("menu",this.rootmenu.el.nativeElement,this.config.zIndex.menu),setTimeout(()=>{this.show()},0)),this.bindOutsideClickListener(),e.preventDefault()}hide(e,n){this.mobileActive&&setTimeout(()=>{Ct(this.menubutton.nativeElement)},0),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),n&&Ct(this.rootmenu?.menubarViewChild.nativeElement),this.dirty=!1}show(){let e=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.set({index:this.findFirstFocusedItemIndex(),level:0,parentKey:"",item:e?.item}),Ct(this.rootmenu?.menubarViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;let n=this.findVisibleItem(this.findFirstFocusedItemIndex()),i=this.focusedItemInfo().index!==-1?this.focusedItemInfo():{index:this.findFirstFocusedItemIndex(),level:0,parentKey:"",item:n?.item};this.focusedItemInfo.set(i),this.onFocus.emit(e)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue="",this.dirty=!1,this.onBlur.emit(e)}onKeyDown(e){let n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;
277default:!n&&Vo(e.key)&&this.searchItems(e,e.key);break}}findVisibleItem(e){return st(this.visibleItems)?this.visibleItems[e]:null}findFirstFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}isProcessedItemGroup(e){return e&&st(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&st(e.items)}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,o=!1;return this.focusedItemInfo().index!==-1?(i=this.visibleItems.slice(this.focusedItemInfo().index).findIndex(a=>this.isItemMatched(a)),i=i===-1?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(a=>this.isItemMatched(a)):i+this.focusedItemInfo().index):i=this.visibleItems.findIndex(a=>this.isItemMatched(a)),i!==-1&&(o=!0),i===-1&&this.focusedItemInfo().index===-1&&(i=this.findFirstFocusedItemIndex()),i!==-1&&this.changeFocusedItemIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}onArrowDownKey(e){let n=this.visibleItems[this.focusedItemInfo().index];if(n?Tn(n.parent):null)this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.onArrowRightKey(e));else{let o=this.focusedItemInfo().index!==-1?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}}onArrowRightKey(e){let n=this.visibleItems[this.focusedItemInfo().index];if(n?this.activeItemPath().find(o=>o.key===n.parentKey):null)this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.onArrowDownKey(e));else{let o=this.focusedItemInfo().index!==-1?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}}onArrowUpKey(e){let n=this.visibleItems[this.focusedItemInfo().index];if(Tn(n.parent)){if(this.isProccessedItemGroup(n)){this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item});let a=this.findLastItemIndex();this.changeFocusedItemIndex(e,a)}}else{let o=this.activeItemPath().find(a=>a.key===n.parentKey);if(this.focusedItemInfo().index===0){this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:n.item}),this.searchValue="",this.onArrowLeftKey(e);let a=this.activeItemPath().filter(s=>s.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(a)}else{let a=this.focusedItemInfo().index!==-1?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,a)}}e.preventDefault()}onArrowLeftKey(e){let n=this.visibleItems[this.focusedItemInfo().index],i=n?this.activeItemPath().find(o=>o.key===n.parentKey):null;if(i){this.onItemChange({originalEvent:e,processedItem:i});let o=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(o),e.preventDefault()}else{let o=this.focusedItemInfo().index!==-1?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide(e,!0),this.focusedItemInfo().index=this.findFirstFocusedItemIndex(),e.preventDefault()}onTabKey(e){if(this.focusedItemInfo().index!==-1){let n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(this.focusedItemInfo().index!==-1){let n=Sr(this.rootmenu.el.nativeElement,`li[id="${`${this.focusedItemId}`}"]`),i=n&&Sr(n,'a[data-pc-section="action"]');i?i.click():n&&n.click()}e.preventDefault()}findLastFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return _i(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){let n=e>0?_i(this.visibleItems.slice(0,e),i=>this.isValidItem(i)):-1;return n>-1?n:e}findNextItemIndex(e){let n=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(i=>this.isValidItem(i)):-1;return n>-1?n+e+1:e}bindResizeListener(){yr(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{bi()||this.hide(e,!0),this.mobileActive=!1})))}bindOutsideClickListener(){yr(this.platformId)&&(this.outsideClickListener||(this.outsideClickListener=this.renderer.listen(this.document,"click",e=>{let n=this.rootmenu.el.nativeElement!==e.target&&!this.rootmenu.el.nativeElement.contains(e.target),i=this.mobileActive&&this.menubutton.nativeElement!==e.target&&!this.menubutton.nativeElement.contains(e.target);n&&(i?this.mobileActive=!1:this.hide())})))}unbindOutsideClickListener(){this.outsideClickListener&&(this.outsideClickListener(),this.outsideClickListener=null)}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}ngOnDestroy(){this.mouseLeaveSubscriber?.unsubscribe(),this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMat
277chMediaListener(),super.ngOnDestroy()}static \u0275fac=function(n){return new(n||t)(_t(_e),_t(fr),_t(Sn),_t(hr),_t(Do),_t(xi))};static \u0275cmp=J({type:t,selectors:[["p-menubar"]],contentQueries:function(n,i,o){if(n&1&&(vt(o,Ju,4),vt(o,Zu,4),vt(o,Xu,4),vt(o,ec,4),vt(o,tc,4),vt(o,Ko,4)),n&2){let a;Re(a=Be())&&(i.startTemplate=a.first),Re(a=Be())&&(i.endTemplate=a.first),Re(a=Be())&&(i.itemTemplate=a.first),Re(a=Be())&&(i.menuIconTemplate=a.first),Re(a=Be())&&(i.submenuIconTemplate=a.first),Re(a=Be())&&(i.templates=a)}},viewQuery:function(n,i){if(n&1&&(br(nc,5),br(rc,5)),n&2){let o;Re(o=Be())&&(i.menubutton=o.first),Re(o=Be())&&(i.rootmenu=o.first)}},inputs:{model:"model",style:"style",styleClass:"styleClass",autoZIndex:[2,"autoZIndex","autoZIndex",ot],baseZIndex:[2,"baseZIndex","baseZIndex",Pn],autoDisplay:[2,"autoDisplay","autoDisplay",ot],autoHide:[2,"autoHide","autoHide",ot],breakpoint:"breakpoint",autoHideDelay:[2,"autoHideDelay","autoHideDelay",Pn],id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onFocus:"onFocus",onBlur:"onBlur"},features:[Vt([xi,Fa]),xn],ngContentSelectors:ic,decls:8,vars:26,consts:[["rootmenu",""],["legacy",""],["menubutton",""],[3,"ngClass","ngStyle"],["class","p-menubar-start",4,"ngIf"],["tabindex","0","role","button","class","p-menubar-button",3,"click","keydown",4,"ngIf"],[3,"itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter","items","itemTemplate","menuId","root","baseZIndex","autoZIndex","mobileActive","autoDisplay","ariaLabel","ariaLabelledBy","focusedItemId","submenuiconTemplate","activeItemPath"],["class","p-menubar-end",4,"ngIf","ngIfElse"],[1,"p-menubar-start"],[4,"ngTemplateOutlet"],["tabindex","0","role","button",1,"p-menubar-button",3,"click","keydown"],[4,"ngIf"],[1,"p-menubar-end"]],template:function(n,i){if(n&1){let o=F();Te(),v(0,"div",3),P(1,sc,2,1,"div",4)(2,mc,4,7,"a",5),v(3,"p-menubarSub",6,0),R("itemClick",function(s){return k(o),L(i.onItemClick(s))})("menuFocus",function(s){return k(o),L(i.onMenuFocus(s))})("menuBlur",function(s){return k(o),L(i.onMenuBlur(s))})("menuKeydown",function(s){return k(o),L(i.onKeyDown(s))})("itemMouseEnter",function(s){return k(o),L(i.onItemMouseEnter(s))}),y(),P(5,dc,2,1,"div",7)(6,fc,2,0,"ng-template",null,1,X),y()}if(n&2){let o=Z(7);Qe(i.styleClass),h("ngClass",$t(23,oc,i.queryMatches,i.mobileActive))("ngStyle",i.style),j("data-pc-section","root")("data-pc-name","menubar"),g(),h("ngIf",i.startTemplate||i._startTemplate),g(),h("ngIf",i.model&&i.model.length>0),g(),h("items",i.processedItems)("itemTemplate",i.itemTemplate)("menuId",i.id)("root",!0)("baseZIndex",i.baseZIndex)("autoZIndex",i.autoZIndex)("mobileActive",i.mobileActive)("autoDisplay",i.autoDisplay)("ariaLabel",i.ariaLabel)("ariaLabelledBy",i.ariaLabelledBy)("focusedItemId",i.focused?i.focusedItemId:void 0)("submenuiconTemplate",i.submenuIconTemplate||i._submenuIconTemplate)("activeItemPath",i.activeItemPath()),g(2),h("ngIf",i.endTemplate||i._endTemplate)("ngIfElse",o)}},dependencies:[Pe,It,wn,St,hi,gi,bc,Si,Ma,et,On],encapsulation:2,changeDetection:0})}return t})(),$a=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Oo({type:t});static \u0275inj=Io({imports:[wi,On,On]})}return t})();var vc=["searchBar"],yc=["searchButtonRef"],Ic=["menubarRef"],Sc=[[["","search",""]],[["","iconsSlot",""]]],Cc=["[search]","[iconsSlot]"],Ka=t=>[t];function xc(t,r){t&1&&D(0,"pds-icon",32)}function Pc(t,r){if(t&1){let e=F();v(0,"div",33),D(1,"p-divider",34),y(),v(2,"div",35)(3,"a",36),R("click",function(i){k(e);let o=m(2);return L(o.industryNameClick(i))})("keydown.enter",function(i){k(e);let o=m(2);return L(o.industryNameClick(i))}),re(4),y()()}if(t&2){let e=m(2);g(3),j("aria-label","Go to "+e.industryName),g(),ue(e.industryName)}}function wc(t,r){t&1&&le(0)}function Tc(t,r){if(t&1&&(v(0,"div",19),P(1,wc,1,0,"ng-container",31),y()),t&2){m(2);let e=Z(5);g(),h("ngTemplateOutlet",e)}}function Oc(t,r){t&1&&D(0,"pds-icon",38)}function Ec(t,r){if(t&1){let e=F();v(0,"p-button",37,3),R("click",function(){k(e);let i=m(2);return L(i.toggleSearchBar())}),P(2,Oc,1,0,"ng-template",null,2,X),y()}if(t&2){let e=m(2);h("label",e.searchLabel)("text",!0)("severity","neutral")("ariaLabel",e.searchButtonAriaLabel())}}function Ac(t,r){t&1&&D(0,"pds-icon",40)}function kc(t,r){if(t&1){let e=F();v(0,"p-button",39),R("click",function(i){k(e);let o=m(2);return L(o.onProfileClick(i))}),P(1,Ac,1,0,"ng-template",null,2,X),y()}if(t&2){let e=m(2);h("label",e.profileDisplayName)("text",!0)("severity","neutral")("ariaLabel",e.profileButtonAriaLabel()||"Profile of "+e.profileDisplayName)}}function Lc(t,r){t&1&&D(0,"pds-icon",42)}function Mc(t,r){if(t&1){let e=F();v(0,"p-button",41),R("click",function(i){k(e);let o=m(2);return L(o.onFavoritesClick(i))}),P(1,Lc,1,0,"ng-template",null,2,X),y()}if(t&2){let e=m(2);h("label",e.favoritesLabel)("text",!0)("severity","neutral")("ariaLabel",e.favoritesLabel||"Favorites")}}function Dc(t,r){t&1&&D(0,"pds-icon",44)}function jc(t,r){if(t&1){let e=F();v(0,"p-button",43),R("click",function(i){k(e);let o=m(2);return L(o.onBadgeClick(i))}),P(1,Dc,1,0,"ng-template",null,2,X),y()}if(t&2){let e=m(2);
277h("label",e.cartLabel)("text",!0)("badge",e.cartBadge)("badgeSeverity",e.cardBadgeSeverity)("severity","neutral")("ariaLabel",(e.cartLabel||"Cart")+(e.cartBadge?", "+e.cartBadge+" items":""))}}function Rc(t,r){t&1&&D(0,"pds-icon",38)}function Bc(t,r){if(t&1){let e=F();v(0,"p-button",45,3),R("click",function(){k(e);let i=m(2);return L(i.toggleSearchBar())}),P(2,Rc,1,0,"ng-template",null,2,X),y()}if(t&2){let e=m(2);h("text",!0)("severity","neutral")("ariaLabel",e.searchButtonAriaLabel())}}function Nc(t,r){t&1&&D(0,"pds-icon",40)}function Hc(t,r){if(t&1){let e=F();v(0,"p-button",46),R("click",function(i){k(e);let o=m(2);return L(o.onProfileClick(i))}),P(1,Nc,1,0,"ng-template",null,2,X),y()}if(t&2){let e=m(2);h("text",!0)("severity","neutral")("ariaLabel",e.profileButtonAriaLabel()||"Profile of "+e.profileDisplayName)}}function Fc(t,r){t&1&&D(0,"pds-icon",42)}function Uc(t,r){if(t&1){let e=F();v(0,"p-button",47),R("click",function(i){k(e);let o=m(2);return L(o.onFavoritesClick(i))}),P(1,Fc,1,0,"ng-template",null,2,X),y()}if(t&2){let e=m(2);h("text",!0)("severity","neutral")("ariaLabel",e.favoritesLabel||"Favorites")}}function Vc(t,r){if(t&1&&(v(0,"i",49),D(1,"pds-icon",44),y()),t&2){let e=m(3);h("value",e.cartBadge)}}function $c(t,r){if(t&1){let e=F();v(0,"p-button",48),R("click",function(i){k(e);let o=m(2);return L(o.onBadgeClick(i))}),P(1,Vc,2,1,"ng-template",null,2,X),y()}if(t&2){let e=m(2);h("text",!0)("severity","neutral")("ariaLabel",(e.cartLabel||"Cart")+(e.cartBadge?", "+e.cartBadge+" items":""))}}function Kc(t,r){t&1&&le(0)}function qc(t,r){if(t&1){let e=F();v(0,"div",14)(1,"div",15)(2,"p-button",16),R("click",function(i){k(e);let o=m();return L(o.onMenuToggle(i))}),P(3,xc,1,0,"ng-template",null,2,X),y(),v(5,"a",17),R("click",function(i){k(e);let o=m();return L(o.logoClick(i))})("keydown.enter",function(i){k(e);let o=m();return L(o.logoClick(i))}),D(6,"img",18),y(),P(7,Pc,5,2),y(),P(8,Tc,2,1,"div",19),v(9,"div",20)(10,"div",21),P(11,Ec,4,4,"p-button",22)(12,kc,3,4,"p-button",23)(13,Mc,3,4,"p-button",24)(14,jc,3,6,"p-button",25),y(),v(15,"div",26),P(16,Bc,4,3,"p-button",27)(17,Hc,3,3,"p-button",28)(18,Uc,3,3,"p-button",29)(19,$c,3,3,"p-button",30),y(),P(20,Kc,1,0,"ng-container",31),y()()}if(t&2){let e=m(),n=Z(7);g(2),h("severity","neutral")("text",!0)("ariaLabel",e.menuButtonAriaLabel()),j("aria-expanded",e.isMenuOpen()),g(3),j("aria-label",e.logoAltText||"Home"),g(),h("src",e.logoSrc,ge)("alt",e.logoAltText),g(),G(e.industryName?7:-1),g(),G(e.showSearch?8:-1),g(3),h("ngIf",e.showSearch),g(),h("ngIf",e.showProfile),g(),h("ngIf",e.showFavorites),g(),h("ngIf",e.showCart),g(2),h("ngIf",e.showSearch),g(),h("ngIf",e.showProfile),g(),h("ngIf",e.showFavorites),g(),h("ngIf",e.showCart),g(),h("ngTemplateOutlet",n)}}function Gc(t,r){t&1&&le(0)}function Wc(t,r){t&1&&D(0,"pds-icon",52)}function zc(t,r){if(t&1){let e=F();v(0,"div",50,4),P(2,Gc,1,0,"ng-container",31),v(3,"p-button",51),R("click",function(){k(e);let i=m();return L(i.toggleSearchBar())}),P(4,Wc,1,0,"ng-template",null,2,X),y()()}if(t&2){let e=m(),n=Z(5);j("aria-label",e.searchBarAriaLabel()),g(2),h("ngTemplateOutlet",n),g(),h("text",!0)("severity","neutral")("ariaLabel",e.searchCloseAriaLabel())}}function Qc(t,r){if(t&1&&(v(0,"div",53),re(1),y()),t&2){let e=m();h("ngClass",yt(2,Ka,"pds-header-menu-bar__"+e.tabMenuVariant)),g(),it(" ",e.industryName,`
278`)}}function Yc(t,r){t&1&&le(0)}function Jc(t,r){if(t&1){let e=F();v(0,"a",57),R("keydown.enter",function(i){k(e);let o=m().$implicit,a=m(2);return L(a.onMenuItemKeyActivate(i,o))})("keydown.space",function(i){k(e);let o=m().$implicit,a=m(2);return L(a.onMenuItemKeyActivate(i,o))}),P(1,Yc,1,0,"ng-container",31),y()}if(t&2){let e=m().$implicit,n=Z(5);fi("target",e.target),j("href",e==null?null:e.url,ge)("aria-disabled",e!=null&&e.disabled?"true":null)("tabindex",e!=null&&e.disabled?"-1":"0")("aria-label",e.label+(e.target==="_blank"?" (opens in new window)":"")),g(),h("ngTemplateOutlet",n)}}function Zc(t,r){t&1&&le(0)}function Xc(t,r){if(t&1){let e=F();v(0,"a",58),R("keydown.enter",function(i){k(e);let o=m().$implicit,a=m(2);return L(a.onMenuItemKeyActivate(i,o))})("keydown.space",function(i){k(e);let o=m().$implicit,a=m(2);return L(a.onMenuItemKeyActivate(i,o))}),P(1,Zc,1,0,"ng-container",31),y()}if(t&2){let e=m().$implicit,n=Z(5);fi("target",e.target),h("routerLink",e==null?null:e.routerLink),j("aria-disabled",e!=null&&e.disabled?"true":null)("tabindex",e!=null&&e.disabled?"-1":"0")("aria-label",e.label),g(),h("ngTemplateOutlet",n)}}function em(t,r){if(t&1&&D(0,"span",61),t&2){let e=m(2).$implicit;Qe(e.icon+" p-menubar-item-icon")}}function tm(t,r){if(t&1&&(v(0,"span",59),re(1),y(),P(2,em,1,2,"span",60)),t&2){let e=m().$implicit;j("data-test-id",e.codename?"menuItem."+e.codename:""),g(),ue(e.label),g(),G(e.icon?2:-1)}}function nm(t,r){t&1&&le(0)}function rm(t,r){if(t&1&&(Ye(0),P(1,nm,1,0,"ng-container",31),Je()),t&2){m();let e=Z(1);g(),h("ngTemplateOutlet",e)}}function im(t,r){if(t&1&&P(0,Jc,2,6,"ng-template",null,7,X)(2,Xc,2,6,"ng-template",null,8,X)(4,tm,3,3,"ng-template",null,9,X)(6,rm,2,1,"ng-container",56),t&2){let e=r.$implicit,n=Z(3),i=m(2);
278g(6),h("ngIf",i.isItemExternal(e))("ngIfElse",n)}}function om(t,r){if(t&1&&(v(0,"nav",54)(1,"p-menubar",55,5),P(3,im,7,2,"ng-template",null,6,X),y()()),t&2){let e=m();h("ngClass",yt(3,Ka,"pds-header-menu-bar__"+e.tabMenuVariant)),j("aria-label",e.navAriaLabel()),g(),h("model",e.menuItems)}}function am(t,r){t&1&&Ce(0)}function sm(t,r){t&1&&Ce(0,1)}var qa=(()=>{class t{constructor(){this.injector=b(dr),this.renderer=b(hr),this.searchBarRef=Cn("searchBar"),this.searchButtonRefs=wo("searchButtonRef"),this.menubarRef=Cn("menubarRef",{read:Sn}),this.profileDisplayName="",this.showSearchBar=pe(!1),this.isMenuOpen=pe(!1),this.menuButtonAriaLabel=N("Main menu"),this.profileButtonAriaLabel=N(""),this.searchButtonAriaLabel=N("Search"),this.searchBarAriaLabel=N("Site search"),this.searchCloseAriaLabel=N("Close search"),this.navAriaLabel=N("Main navigation"),this.symbolsToCutLength=15,this.logoSrc="",this.tabMenuVariant="subtle",this.logoAltText="",this.industryName="",this.menuItems=[],this.showProfile=!1,this.showFavorites=!1,this.favoritesLabel="",this.showCart=!1,this.cartLabel="",this.cartBadge="",this.cardBadgeSeverity="primary",this.showSearch=!0,this.searchLabel="",this.menuToggle=new he,this.profileClick=new he,this.favoritesClick=new he,this.badgeClick=new he,this.onLogoClick=new he,this.onIndustryNameClick=new he,xe(()=>{let e=this.menubarRef()?.nativeElement;if(!e)return;let n=e.querySelector('ul[tabindex="0"]');n&&this.renderer.setAttribute(n,"tabindex","-1")})}set profileName(e){this.profileDisplayName=e?.length>this.symbolsToCutLength?e.split(" ")[0]:e}onMenuToggle(e){this.isMenuOpen.update(n=>!n),this.menuToggle.emit(e)}onProfileClick(e){this.profileClick.emit(e)}onFavoritesClick(e){this.favoritesClick.emit(e)}onBadgeClick(e){this.badgeClick.emit(e)}toggleSearchBar(){this.showSearchBar.update(e=>!e),Nt(()=>{this.showSearchBar()?this.searchBarRef()?.nativeElement?.querySelector("input")?.focus():this.searchButtonRefs().map(n=>n.el.nativeElement.querySelector("button")).find(n=>n?.offsetParent!==null)?.focus()},{injector:this.injector})}logoClick(e){this.onLogoClick.emit(e)}industryNameClick(e){this.onIndustryNameClick.emit(e)}isItemExternal(e){return!!(e?.url&&!e?.routerLink)}onMenuItemKeyActivate(e,n){n.disabled||(e.preventDefault(),e.stopPropagation(),e.currentTarget.click())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["pds-header-bar"]],viewQuery:function(n,i){n&1&&(Ut(i.searchBarRef,vc,5),Ut(i.searchButtonRefs,yc,5),Ut(i.menubarRef,Ic,5,Sn)),n&2&&_r(3)},inputs:{menuButtonAriaLabel:[1,"menuButtonAriaLabel"],profileButtonAriaLabel:[1,"profileButtonAriaLabel"],searchButtonAriaLabel:[1,"searchButtonAriaLabel"],searchBarAriaLabel:[1,"searchBarAriaLabel"],searchCloseAriaLabel:[1,"searchCloseAriaLabel"],navAriaLabel:[1,"navAriaLabel"],logoSrc:"logoSrc",tabMenuVariant:"tabMenuVariant",logoAltText:"logoAltText",industryName:"industryName",menuItems:"menuItems",showProfile:"showProfile",profileName:"profileName",showFavorites:"showFavorites",favoritesLabel:"favoritesLabel",showCart:"showCart",cartLabel:"cartLabel",cartBadge:"cartBadge",cardBadgeSeverity:"cardBadgeSeverity",showSearch:"showSearch",searchLabel:"searchLabel"},outputs:{menuToggle:"menuToggle",profileClick:"profileClick",favoritesClick:"favoritesClick",badgeClick:"badgeClick",onLogoClick:"onLogoClick",onIndustryNameClick:"onIndustryNameClick"},ngContentSelectors:Cc,decls:8,vars:4,consts:[["searchTemplate",""],["iconsSlotTemplate",""],["icon",""],["searchButtonRef",""],["searchBar",""],["menubarRef",""],["item",""],["externalLink",""],["internalLink",""],["menuItemTemplate",""],["class","pds-header-bar","data-test-id","header-bar",4,"ngIf"],["class","pds-header-search-bar","data-test-id","header-bar.search-bar","role","search",4,"ngIf"],["class","pds-header-menu-bar pds-header-menu-bar-industry",3,"ngClass",4,"ngIf"],["class","pds-header-menu-bar pds-header-menu-bar-menu",3,"ngClass",4,"ngIf"],["data-test-id","header-bar",1,"pds-header-bar"],[1,"pds-header-bar-left-container"],["data-test-id","header-bar.menu-toggle","size","small","aria-haspopup","true",3,"click","
278severity","text","ariaLabel"],["data-test-id","header-bar.logo","tabindex","0",1,"pds-header-bar-logo",3,"click","keydown.enter"],[3,"src","alt"],[1,"pds-header-bar-center-container"],[1,"pds-header-bar-right-container"],[1,"pds-header-bar-actions-container","pds-header-bar-actions-container__long"],["data-test-id","header-bar.search-button","iconPos","left","styleClass","pds-header-bar-search-button",3,"label","text","severity","ariaLabel","click",4,"ngIf"],["data-test-id","header-bar.profile-button","iconPos","left",3,"label","text","severity","ariaLabel","click",4,"ngIf"],["data-test-id","header-bar.favorites-button","iconPos","left",3,"label","text","severity","ariaLabel","click",4,"ngIf"],["data-test-id","header-bar.cart-button",3,"label","text","badge","badgeSeverity","severity","ariaLabel","click",4,"ngIf"],[1,"pds-header-bar-actions-container","pds-header-bar-actions-container__short"],["data-test-id","header-bar.search-button","iconPos","left","size","small","class","pds-header-bar-search-button",3,"text","severity","ariaLabel","click",4,"ngIf"],["data-test-id","header-bar.profile-button","iconPos","left","size","small",3,"text","severity","ariaLabel","click",4,"ngIf"],["data-test-id","header-bar.favorites-button","iconPos","left","size","small",3,"text","severity","ariaLabel","click",4,"ngIf"],["data-test-id","header-bar.cart-button","size","small",3,"text","severity","ariaLabel","click",4,"ngIf"],[4,"ngTemplateOutlet"],["name","pdsMenuOutline"],[1,"pds-header-bar-divider-container"],["layout","vertical"],[1,"pds-header-bar-industry-container"],["data-test-id","header-bar.industry-name","role","link","tabindex","0",1,"pds-header-bar-industry-name",3,"click","keydown.enter"],["data-test-id","header-bar.search-button","iconPos","left","styleClass","pds-header-bar-search-button",3,"click","label","text","severity","ariaLabel"],["name","pdsSearchOutline"],["data-test-id","header-bar.profile-button","iconPos","left",3,"click","label","text","severity","ariaLabel"],["name","pdsAccountCircleOutline"],["data-test-id","header-bar.favorites-button","iconPos","left",3,"click","label","text","severity","ariaLabel"],["name","pdsFavoriteOutline"],["data-test-id","header-bar.cart-button",3,"click","label","text","badge","badgeSeverity","severity","ariaLabel"],["name","pdsShoppingCartOutline"],["data-test-id","header-bar.search-button","iconPos","left","size","small",1,"pds-header-bar-search-button",3,"click","text","severity","ariaLabel"],["data-test-id","header-bar.profile-button","iconPos","left","size","small",3,"click","text","severity","ariaLabel"],["data-test-id","header-bar.favorites-button","iconPos","left","size","small",3,"click","text","severity","ariaLabel"],["data-test-id","header-bar.cart-button","size","small",3,"click","text","severity","ariaLabel"],["pBadge","","aria-hidden","true",3,"value"],["data-test-id","header-bar.search-bar","role","search",1,"pds-header-search-bar"],["data-test-id","header-bar.search-close-button","size","small",3,"click","text","severity","ariaLabel"],["name","pdsCloseOutline"],[1,"pds-header-menu-bar","pds-header-menu-bar-industry",3,"ngClass"],[1,"pds-header-menu-bar","pds-header-menu-bar-menu",3,"ngClass"],[3,"model"],[4,"ngIf","ngIfElse"],["pRipple","","data-pc-section","action",1,"flex","align-items-center","p-menubar-item-link",3,"keydown.enter","keydown.space","target"],["pRipple","","data-pc-section","action",1,"flex","align-items-center","p-menubar-item-link",3,"keydown.enter","keydown.space","target","routerLink"],[1,"p-menubar-item-text"],["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(n,i){n&1&&(Te(Sc),P(0,qc,21,18,"div",10)(1,zc,6,5,"div",11)(2,Qc,2,4,"div",12)(3,om,5,5,"nav",13)(4,am,1,0,"ng-template",null,0,X)(6,sm,1,0,"ng-template",null,1,X)),n&2&&(h("ngIf",!i.showSearchBar()),g(),h("ngIf",i.showSearchBar()&&i.showSearch),g(),h("ngIf",i.industryName),g(),h("ngIf",i.menuItems&&i.menuItems.length>0))},dependencies:[Pe,It,wn,St,Fe,He,Ue,mt,$a,wi,et,ha,at,ct],encapsulation:2})}}return t})();var lm=["*"],Ga=(()=>{class t{constructor(){this.ariaLabel=N("Site Search")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["pds-search"]],inputs:{ariaLabel:[1,"ariaLabel"]},ngContentSelectors:lm,decls:2,vars:1,consts:[["role","search",1,"pds-search"]],template:function(n,i){n&1&&(Te(),v(0,"div",0),Ce(1),y()),n&2&&j("aria-label",i.ariaLabel())},encapsulation:2})}}return t})();var um=["*"],Wa=(()=>{class t{constructor(){this.ariaLabel=N("Utility actions")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["pds-utility-bar"]],inputs:{ariaLabel:[1,"ariaLabel"]},ngContentSelectors:um,decls:2,vars:1,consts:[["role","toolbar",1,"pds-utility-bar"]],template:function(n,i){n&1&&(Te(),v(0,"div",0),Ce(1),y()),n&2&&j("aria-label",i.ariaLabel())},encapsulation:2})}}return t})();function Tt(t){return{current:t}}function rn(t,r){var e=void 0;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];e&&clearTimeout(e),e=setTimeout(function(){return t.apply(void 0,i)},r)}}function cm(t,r){return fm(t)||dm(t,r)||pm(t,r)||mm()}
vendor: 19,953 bytes, lines 278-283
278function mm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
279In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pm(t,r){if(t){if(typeof t=="string")return za(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?za(t,r):void 0}}function za(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function dm(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(e=e.call(t)).next,r===0){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=o.call(e)).done)&&(s.push(n.value),s.length!==r);u=!0);}catch(p){c=!0,i=p}finally{try{if(!u&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function fm(t){if(Array.isArray(t))return t}function on(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;return t;var e}function tt(t){return t.reduce(function(r,e){return r.concat(e)},[])}var hm=0;function Nr(){return"autocomplete-".concat(hm++)}function an(t,r){return r.reduce(function(e,n){return e&&e[n]},t)}function dt(t){return t.collections.length===0?0:t.collections.reduce(function(r,e){return r+e.items.length},0)}function Qa(t){return t!==Object(t)}function Oi(t,r){if(t===r)return!0;if(Qa(t)||Qa(r)||typeof t=="function"||typeof r=="function")return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;for(var e=0,n=Object.keys(t);e<n.length;e++){var i=n[e];if(!(i in r)||!Oi(t[i],r[i]))return!1}return!0}var Ot=function(){};function Ya(t){if(typeof window<"u")return t({window})}var Hr="1.19.8";var Fr=[{segment:"autocomplete-core",version:Hr}];function Ei(t){var r=t.item,e=t.items,n=e===void 0?[]:e;return{index:r.__autocomplete_indexName,items:[r],positions:[1+n.findIndex(function(i){return i.objectID===r.objectID})],queryID:r.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function gm(t,r){return ym(t)||vm(t,r)||_m(t,r)||bm()}function bm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
280In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _m(t,r){if(t){if(typeof t=="string")return Ja(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ja(t,r):void 0}}function Ja(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function vm(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(e=e.call(t)).next,r===0){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=o.call(e)).done)&&(s.push(n.value),s.length!==r);u=!0);}catch(p){c=!0,i=p}finally{try{if(!u&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function ym(t){if(Array.isArray(t))return t}function Za(t){var r=(t.version||"").split(".").map(Number),e=gm(r,2),n=e[0],i=e[1],o=n>=3,a=n===2&&i>=4,s=n===1&&i>=10;return o||a||s}var Im=["items"],Sm=["items"];function An(t){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},An(t)}function Ur(t){return wm(t)||Pm(t)||xm(t)||Cm()}function Cm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
281In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xm(t,r){if(t){if(typeof t=="string")return Ai(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ai(t,r):void 0}}function Pm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wm(t){if(Array.isArray(t))return Ai(t)}function Ai(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function es(t,r){if(t==null)return{};var e,n,i=Tm(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Tm(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function Xa(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function sn(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Xa(Object(e),!0).forEach(function(n){Om(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Xa(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Om(t,r,e){return(r=Em(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Em(t){var r=Am(t,"string");return An(r)=="symbol"?r:r+""}function Am(t,r){if(An(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function km(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,e=[],n=0;n<t.objectIDs.length;n+=r)e.push(sn(sn({},t),{},{objectIDs:t.objectIDs.slice(n,n+r)}));return e}function Vr(t){return t.map(function(r){var e=r.items,n=es(r,Im);return sn(sn({},n),{},{objectIDs:e?.map(function(i){var o=i.objectID;return o})||n.objectIDs})})}function ts(t){var r=Za(t);function e(n,i,o){if(r&&typeof o<"u"){var a=o[0].__autocomplete_algoliaCredentials,s=a.appId,u=a.apiKey,c={"X-Algolia-Application-Id":s,"X-Algolia-API-Key":u};t.apply(void 0,[n].concat(Ur(i),[{headers:c}]))}else t.apply(void 0,[n].concat(Ur(i)))}return{init:function(i,o){t("init",{appId:i,apiKey:o})},setAuthenticatedUserToken:function(i){t("setAuthenticatedUserToken",i)},setUserToken:function(i){t("setUserToken",i)},clickedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&e("clickedObjectIDsAfterSearch",Vr(o),o[0].items)},clickedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&e("clickedObjectIDs",Vr(o),o[0].items)},clickedFilters:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&t.apply(void 0,["clickedFilters"].concat(o))},convertedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&e("convertedObjectIDsAfterSearch",Vr(o),o[0].items)},convertedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&e("convertedObjectIDs",Vr(o),o[0].items)},convertedFilters:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&t.apply(void 0,["convertedFilters"].concat(o))},viewedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&o.reduce(function(s,u){var c=u.items,p=es(u,Sm);return[].concat(Ur(s),Ur(km(sn(sn({},p),{},{objectIDs:c?.map(function(l){var f=l.objectID;return f})||p.objectIDs})).map(function(l){return{items:c,payload:l}})))},[]).forEach(function(s){var u=s.items,c=s.payload;return e("viewedObjectIDs",[c],u)})},viewedFilters:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.length>0&&t.apply(void 0,["viewedFilters"].concat(o))}}}function ns(t){var r=t.items,e=r.reduce(function(n,i){var o;return n[i.__autocomplete_indexName]=((o=n[i.__autocomplete_indexName])!==null&&o!==void 0?o:[]).concat(i),n},{});return Object.keys(e).map(function(n){var i=e[n];return{index:n,items:i,algoliaSource:["autocomplete"]}})}function ln(t){return t.objectID&&t.__autocomplete_indexName&&t.__autocomplete_queryID}function kn(t){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kn(t)}function un(t){return jm(t)||Dm(t)||Mm(t)||Lm()}function Lm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
282In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mm(t,r){if(t){if(typeof t=="string")return ki(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ki(t,r):void 0}}function Dm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jm(t){if(Array.isArray(t))return ki(t)}function ki(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function rs(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function ke(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?rs(Object(e),!0).forEach(function(n){Rm(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):rs(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Rm(t,r,e){return(r=Bm(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Bm(t){var r=Nm(t,"string");return kn(r)=="symbol"?r:r+""}function Nm(t,r){if(kn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Hm=400,os="2.15.0",Fm="https://cdn.jsdelivr.net/npm/search-insights@".concat(os,"/dist/search-insights.min.js"),Um=rn(function(t){var r=t.onItemsChange,e=t.items,n=t.insights,i=t.state;r({insights:n,insightsEvents:ns({items:e}).map(function(o){return ke({eventName:"Items Viewed"},o)}),state:i})},Hm);function Li(t){var r=Vm(t),e=r.insightsClient,n=r.insightsInitParams,i=r.onItemsChange,o=r.onSelect,a=r.onActive,s=r.__autocomplete_clickAnalytics,u=e;if(e||Ya(function(f){var d=f.window,_=d.AlgoliaAnalyticsObject||"aa";typeof _=="string"&&(u=d[_]),u||(d.AlgoliaAnalyticsObject=_,d[_]||(d[_]=function(){d[_].queue||(d[_].queue=[]);for(var I=arguments.length,w=new Array(I),x=0;x<I;x++)w[x]=arguments[x];d[_].queue.push(w)}),d[_].version=os,u=d[_],$m(d))}),!u)return{};n&&u("init",ke({partial:!0},n));var c=ts(u),p=Tt([]),l=rn(function(f){var d=f.state;if(d.isOpen){var _=d.collections.reduce(function(I,w){return[].concat(un(I),un(w.items))},[]).filter(ln);Oi(p.current.map(function(I){return I.objectID}),_.map(function(I){return I.objectID}))||(p.current=_,_.length>0&&Um({onItemsChange:i,items:_,insights:c,state:d}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(d){var _=d.setContext,I=d.onSelect,w=d.onActive;function x(C){_({algoliaInsightsPlugin:{__algoliaSearchParameters:ke(ke({},s?{clickAnalytics:!0}:{}),C?{userToken:Km(C)}:{}),insights:c}})}u("addAlgoliaAgent","insights-plugin"),x(),u("onUserTokenChange",function(C){x(C)}),u("getUserToken",null,function(C,E){x(E)}),I(function(C){var E=C.item,A=C.state,$=C.event,U=C.source;ln(E)&&o({state:A,event:$,insights:c,item:E,insightsEvents:[ke({eventName:"Item Selected"},Ei({item:E,items:U.getItems().filter(ln)}))]})}),w(function(C){var E=C.item,A=C.source,$=C.state,U=C.event;ln(E)&&a({state:$,event:U,insights:c,item:E,insightsEvents:[ke({eventName:"Item Active"},Ei({item:E,items:A.getItems().filter(ln)}))]})})},onStateChange:function(d){var _=d.state;l({state:_})},__autocomplete_pluginOptions:t}}function is(){var t,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return[].concat(un(r),["autocomplete-internal"],un((t=e.algoliaInsightsPlugin)!==null&&t!==void 0&&t.__automaticInsights?["autocomplete-automatic"]:[]))}function Vm(t){return ke({onItemsChange:function(e){var n=e.insights,i=e.insightsEvents,o=e.state;n.viewedObjectIDs.apply(n,un(i.map(function(a){return ke(ke({},a),{},{algoliaSource:is(a.algoliaSource,o.context)})})))},onSelect:function(e){var n=e.insights,i=e.insightsEvents,o=e.state;n.clickedObjectIDsAfterSearch.apply(n,un(i.map(function(a){return ke(ke({},a),{},{algoliaSource:is(a.algoliaSource,o.context)})})))},onActive:Ot,__autocomplete_clickAnalytics:!0},t)}function $m(t){var r="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var e=t.document.createElement("script");e.async=!0,e.src=Fm,e.onerror=function(){console.error(r)},document.body.appendChild(e)}catch{console.error(r)}}function Km(t){return typeof t=="number"?t.toString():t}function Ln(t,r){var e=r;return{then:function(i,o){return Ln(t.then($r(i,e,t),$r(o,e,t)),e)},catch:function(i){return Ln(t.catch($r(i,e,t)),e)},finally:function(i){return i&&e.onCancelList.push(i),Ln(t.finally($r(i&&function(){return e.onCancelList=[],i()},e,t)),e)},cancel:function(){e.isCanceled=!0;var i=e.onCancelList;e.onCancelList=[],i.forEach(function(o){o()})},isCanceled:function(){return e.isCanceled===!0}}}function as(t){return Ln(new Promise(function(r,e){return t(r,e)}),{isCanceled:!1,onCancelList:[]})}as.resolve=function(t){return Mn(Promise.resolve(t))};as.reject=function(t){return Mn(Promise.reject(t))};function Mn(t){return Ln(t,{isCanceled:!1,onCancelList:[]})}function $r(t,r,e){return t?function(i){return r.isCanceled?i:t(i)}:e}var Mi=!0,Di;function ss(){var t=[];return{add:function(e){return t.push(e),e.finally(function(){t=t.filter(function(n){return n!==e})})},cancelAll:function(){t.forEach(function(e){return e.cancel()})},isEmpty:function(){return t.length===0},wait:function(e){return Mi?(Mi=!1,Di=e?Promise.race([Promise.all(t),new Promise(function(n){return setTimeout(n,e)})]):Promise.all(t),Di.then(function(){Mi=!0})):Di}}}function ls(){var t=-1,r=-1,e=void 0;return function(i){t++;var o=t;return Promise.resolve(i).then(function(a){return e&&o<r?e:(r=o,e=a,a)})}}function ji(t,r,e,n){if(!e)return null;if(t<0&&(r===null||n!==null&&r===0))return e+t;var i=(r===null?-1:r)+t;return i<=-1||i>=e?n===null?null:0:i}function us(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function cs(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?us(Object(e),!0).forEach(function(n){qm(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):us(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function qm(t,r,e){return(r=Gm(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Gm(t){var r=Wm(t,"string");return cn(r)=="symbol"?r:r+""}function Wm(t,r){if(cn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function cn(t){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},cn(t)}function ms(t,r){var e=[];return Promise.resolve(t(r)).then(function(n){return Array.isArray(n),Promise.all(n.filter(function(i){return!!i}).map(function(i){if(i.sourceId,e.includes(i.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(i.sourceId)," is not unique."));e.push(i.sourceId);var o={getItemInputValue:function(u){var c=u.state;return c.query},getItemUrl:function(){},onSelect:function(u){var c=u.setIsOpen;c(!1)},onActive:Ot,onResolve:Ot};Object.keys(o).forEach(function(s){o[s].__default=!0});var a=cs(cs({},o),i);return Promise.resolve(a)}))})}function zm(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=Qm(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
283In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||e.return==null||e.return()}finally{if(s)throw o}}}}function Qm(t,r){if(t){if(typeof t=="string")return ps(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ps(t,r):void 0}}function ps(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var qr=function(r,e){var n=!1,i=[],o=zm(r),a;try{for(o.s();!(a=o.n()).done;){var s,u,c=a.value,p=(s=c.__autocomplete_pluginOptions)===null||s===void 0||(u=s.awaitSubmit)===null||u===void 0?void 0:u.call(s);if(typeof p=="number")i.push(p);else if(p===!0){n=!0;break}}}catch(l){o.e(l)}finally{o.f()}if(n)return e.wait();if(i.length>0)return e.wait(Math.max.apply(Math,i))};function Ym(t){var r=t.collections.map(function(n){return n.items.length}).reduce(function(n,i,o){var a=n[o-1]||0,s=a+i;return n.push(s),n},[]),e=r.reduce(function(n,i){return i<=t.activeItemId?n+1:n},0);return t.collections[e]}function Jm(t){for(var r=t.state,e=t.collection,n=!1,i=0,o=0;n===!1;){var a=r.collections[i];if(a===e){n=!0;break}o+=a.items.length,i++}return r.activeItemId-o}function Le(t){var r=Ym(t);if(!r)return null;var e=r.items[Jm({state:t,collection:r})],n=r.source,i=n.getItemInputValue({item:e,state:t}),o=n.getItemUrl({item:e,state:t});return{item:e,itemInputValue:i,itemUrl:o,source:n}}function Ie(t,r,e){return[t,e?.sourceId,r].filter(Boolean).join("-").replace(/\s/g,"")}function ds(t,r){return t===r||t.contains(r)}var Zm=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function fs(t){return!!(t&&t.match(Zm))}function hs(t){return{results:t,hits:t.map(function(r){return r.hits}).filter(Boolean),facetHits:t.map(function(r){var e;return(e=r.facetHits)===null||e===void 0?void 0:e.map(function(n){return{label:n.value,count:n.count,_highlightResult:{label:{value:n.highlighted}}}})}).filter(Boolean)}}function Ri(t){return t.nativeEvent||t}function Dn(t){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dn(t)}function gs(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Xm(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};
283r%2?gs(Object(e),!0).forEach(function(n){ep(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):gs(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function ep(t,r,e){return(r=tp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function tp(t){var r=np(t,"string");return Dn(r)=="symbol"?r:r+""}function np(t,r){if(Dn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function bs(t,r,e){var n=r.initialState;return{getState:function(){return n},dispatch:function(o,a){var s=Xm({},n);n=t(n,{type:o,props:r,payload:a}),e({state:n,prevState:s})},pendingRequests:ss()}}function jn(t){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jn(t)}function _s(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Gr(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?_s(Object(e),!0).forEach(function(n){rp(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_s(Object(e)).forEac
vendor: 40,655 bytes, lines 283-293
283h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function rp(t,r,e){return(r=ip(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function ip(t){var r=op(t,"string");return jn(r)=="symbol"?r:r+""}function op(t,r){if(jn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function vs(t){var r=t.store,e=function(c){r.dispatch("setActiveItemId",c)},n=function(c){r.dispatch("setQuery",c)},i=function(c){var p=0,l=c.map(function(f){return Gr(Gr({},f),{},{items:tt(f.items).map(function(d){return Gr(Gr({},d),{},{__autocomplete_id:p++})})})});r.dispatch("setCollections",l)},o=function(c){r.dispatch("setIsOpen",c)},a=function(c){r.dispatch("setStatus",c)},s=function(c){r.dispatch("setContext",c)};return{setActiveItemId:e,setQuery:n,setCollections:i,setIsOpen:o,setStatus:a,setContext:s}}function Rn(t){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rn(t)}function ap(t){return cp(t)||up(t)||lp(t)||sp()}function sp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
284In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lp(t,r){if(t){if(typeof t=="string")return Bi(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Bi(t,r):void 0}}function up(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cp(t){if(Array.isArray(t))return Bi(t)}function Bi(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function ys(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function mn(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?ys(Object(e),!0).forEach(function(n){mp(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ys(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function mp(t,r,e){return(r=pp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function pp(t){var r=dp(t,"string");return Rn(r)=="symbol"?r:r+""}function dp(t,r){if(Rn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Is(t,r){var e,n=typeof window<"u"?window:{},i=t.plugins||[];return mn(mn({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:n,shouldPanelOpen:function(a){var s=a.state;return dt(s)>0},reshape:function(a){var s=a.sources;return s}},t),{},{id:(e=t.id)!==null&&e!==void 0?e:Nr(),plugins:i,initialState:mn({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},t.initialState),onStateChange:function(a){var s;(s=t.onStateChange)===null||s===void 0||s.call(t,a),i.forEach(function(u){var c;return(c=u.onStateChange)===null||c===void 0?void 0:c.call(u,a)})},onSubmit:function(a){var s;(s=t.onSubmit)===null||s===void 0||s.call(t,a),i.forEach(function(u){var c;return(c=u.onSubmit)===null||c===void 0?void 0:c.call(u,a)})},onReset:function(a){var s;(s=t.onReset)===null||s===void 0||s.call(t,a),i.forEach(function(u){var c;return(c=u.onReset)===null||c===void 0?void 0:c.call(u,a)})},getSources:function(a){return Promise.all([].concat(ap(i.map(function(s){return s.getSources})),[t.getSources]).filter(Boolean).map(function(s){return ms(s,a)})).then(function(s){return tt(s)}).then(function(s){return s.map(function(u){return mn(mn({},u),{},{onSelect:function(p){u.onSelect(p),r.forEach(function(l){var f;return(f=l.onSelect)===null||f===void 0?void 0:f.call(l,p)})},onActive:function(p){u.onActive(p),r.forEach(function(l){var f;return(f=l.onActive)===null||f===void 0?void 0:f.call(l,p)})},onResolve:function(p){u.onResolve(p),r.forEach(function(l){var f;return(f=l.onResolve)===null||f===void 0?void 0:f.call(l,p)})}})})})},navigator:mn({navigate:function(a){var s=a.itemUrl;n.location.assign(s)},navigateNewTab:function(a){var s=a.itemUrl,u=n.open(s,"_blank","noopener");u?.focus()},navigateNewWindow:function(a){var s=a.itemUrl;n.open(s,"_blank","noopener")}},t.navigator)})}function Bn(t){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bn(t)}function Ss(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Wr(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Ss(Object(e),!0).forEach(function(n){Cs(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ss(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Cs(t,r,e){return(r=fp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function fp(t){var r=hp(t,"string");return Bn(r)=="symbol"?r:r+""}function hp(t,r){if(Bn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function xs(t){var r=t.collections,e=t.props,n=t.state,i=r.reduce(function(u,c){return Wr(Wr({},u),{},Cs({},c.source.sourceId,Wr(Wr({},c.source),{},{getItems:function(){return tt(c.items)}})))},{}),o=e.plugins.reduce(function(u,c){return c.reshape?c.reshape(u):u},{sourcesBySourceId:i,state:n}),a=o.sourcesBySourceId,s=e.reshape({sourcesBySourceId:a,sources:Object.values(a),state:n});return tt(s).filter(Boolean).map(function(u){return{source:u,items:u.getItems()}})}function dn(t){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},dn(t)}function Ps(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function pn(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Ps(Object(e),!0).forEach(function(n){gp(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ps(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function gp(t,r,e){return(r=bp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function bp(t){var r=_p(t,"string");return dn(r)=="symbol"?r:r+""}function _p(t,r){if(dn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function ws(t){return Sp(t)||Ip(t)||yp(t)||vp()}function vp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
285In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yp(t,r){if(t){if(typeof t=="string")return Ni(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ni(t,r):void 0}}function Ip(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Sp(t){if(Array.isArray(t))return Ni(t)}function Ni(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function zr(t){return!!t.execute}function Cp(t){return!!t?.execute}function Ts(t,r,e){if(Cp(t)){var n=t.requesterId==="algolia"?Object.assign.apply(Object,[{}].concat(ws(Object.keys(e.context).map(function(i){var o;return(o=e.context[i])===null||o===void 0?void 0:o.__algoliaSearchParameters})))):{};return pn(pn({},t),{},{requests:t.queries.map(function(i){return{query:t.requesterId==="algolia"?pn(pn({},i),{},{params:pn(pn({},n),i.params)}):i,sourceId:r,transformResponse:t.transformResponse}})})}return{items:t,sourceId:r}}function Os(t){var r=t.reduce(function(n,i){if(!zr(i))return n.push(i),n;var o=i.searchClient,a=i.execute,s=i.requesterId,u=i.requests,c=n.find(function(f){return zr(i)&&zr(f)&&f.searchClient===o&&!!s&&f.requesterId===s});if(c){var p;(p=c.items).push.apply(p,ws(u))}else{var l={execute:a,requesterId:s,items:u,searchClient:o};n.push(l)}return n},[]),e=r.map(function(n){if(!zr(n))return Promise.resolve(n);var i=n,o=i.execute,a=i.items,s=i.searchClient;return o({searchClient:s,requests:a})});return Promise.all(e).then(function(n){return tt(n)})}function Es(t,r,e){return r.map(function(n){var i=t.filter(function(u){return u.sourceId===n.sourceId}),o=i.map(function(u){var c=u.items;return c}),a=i[0].transformResponse,s=a?a(hs(o)):o;return n.onResolve({source:n,results:o,items:s,state:e.getState()}),Array.isArray(s),s.every(Boolean),'The `getItems` function from source "'.concat(n.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),`.
286
287Did you forget to return items?
288
289See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:n,items:s}})}function Hn(t){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hn(t)}var xp=["event","nextState","props","query","refresh","store"];function As(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Et(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?As(Object(e),!0).forEach(function(n){Pp(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):As(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Pp(t,r,e){return(r=wp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function wp(t){var r=Tp(t,"string");return Hn(r)=="symbol"?r:r+""}function Tp(t,r){if(Hn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Op(t,r){if(t==null)return{};var e,n,i=Ep(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Ep(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var Nn=null,ks=ls();function Ve(t){var r=t.event,e=t.nextState,n=e===void 0?{}:e,i=t.props,o=t.query,a=t.refresh,s=t.store,u=Op(t,xp);Nn&&i.environment.clearTimeout(Nn);var c=u.setCollections,p=u.setIsOpen,l=u.setQuery,f=u.setActiveItemId,d=u.setStatus,_=u.setContext;if(l(o),f(i.defaultActiveItemId),!o&&i.openOnFocus===!1){var I,w=s.getState().collections.map(function(E){return Et(Et({},E),{},{items:[]})});d("idle"),c(w),p((I=n.isOpen)!==null&&I!==void 0?I:i.shouldPanelOpen({state:s.getState()}));var x=Mn(ks(w).then(function(){return Promise.resolve()}));return s.pendingRequests.add(x)}d("loading"),Nn=i.environment.setTimeout(function(){d("stalled")},i.stallThreshold);var C=Mn(ks(i.getSources(Et({query:o,refresh:a,state:s.getState()},u)).then(function(E){return Promise.all(E.map(function(A){return Promise.resolve(A.getItems(Et({query:o,refresh:a,state:s.getState()},u))).then(function($){return Ts($,A.sourceId,s.getState())})})).then(Os).then(function(A){var $=A.some(function(Y){var B=Y.items;return Ap(B)});if($){var U;_({algoliaInsightsPlugin:Et(Et({},((U=s.getState().context)===null||U===void 0?void 0:U.algoliaInsightsPlugin)||{}),{},{__automaticInsights:$})})}return Es(A,E,s)}).then(function(A){return xs({collections:A,props:i,state:s.getState()})})}))).then(function(E){var A;d("idle"),c(E);var $=i.shouldPanelOpen({state:s.getState()});p((A=n.isOpen)!==null&&A!==void 0?A:i.openOnFocus&&!o&&$||$);var U=Le(s.getState());if(s.getState().activeItemId!==null&&U){var Y=U.item,B=U.itemInputValue,H=U.itemUrl,T=U.source;T.onActive(Et({event:r,item:Y,itemInputValue:B,itemUrl:H,refresh:a,source:T,state:s.getState()},u))}}).finally(function(){d("idle"),Nn&&i.environment.clearTimeout(Nn)});return s.pendingRequests.add(C)}function Ap(t){return!Array.isArray(t)&&!!t?._automaticInsights}function Fn(t){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fn(t)}var kp=["event","props","refresh","store"];function Ls(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function At(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Ls(Object(e),!0).forEach(function(n){Lp(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ls(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Lp(t,r,e){return(r=Mp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Mp(t){var r=Dp(t,"string");return Fn(r)=="symbol"?r:r+""}function Dp(t,r){if(Fn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function jp(t,r){if(t==null)return{};var e,n,i=Rp(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Rp(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function Ms(t){var r=t.event,e=t.props,n=t.refresh,i=t.store,o=jp(t,kp);if(r.key==="ArrowUp"||r.key==="ArrowDown"){var a=function(){var I=Le(i.getState()),w=e.environment.document.getElementById(Ie(e.id,"item-".concat(i.getState().activeItemId),I?.source));w&&w.scrollIntoView({block:"nearest",inline:"nearest"})},s=function(){var I=Le(i.getState());if(i.getState().activeItemId!==null&&I){var w=I.item,x=I.itemInputValue,C=I.itemUrl,E=I.source;E.onActive(At({event:r,item:w,itemInputValue:x,itemUrl:C,refresh:n,source:E,state:i.getState()},o))}};r.preventDefault(),i.getState().isOpen===!1&&(e.openOnFocus||i.getState().query)?Ve(At({event:r,props:e,query:i.getState().query,refresh:n,store:i},o)).then(function(){i.dispatch(r.key,{nextActiveItemId:e.defaultActiveItemId}),s(),setTimeout(a,0)}):(i.dispatch(r.key,{}),s(),a())}else if(r.key==="Escape")r.preventDefault(),i.dispatch(r.key,null),i.pendingRequests.cancelAll();else if(r.key==="Tab")i.dispatch("blur",null),i.pendingRequests.cancelAll();else if(r.key==="Enter"){if(i.getState().activeItemId===null||i.getState().collections.every(function(_){return _.items.length===0})){var u=qr(e.plugins,i.pendingRequests);u!==void 0?u.then(i.pendingRequests.cancelAll):e.debug||i.pendingRequests.cancelAll();return}r.preventDefault();var c=Le(i.getState()),p=c.item,l=c.itemInputValue,f=c.itemUrl,d=c.source;if(r.metaKey||r.ctrlKey)f!==void 0&&(d.onSelect(At({event:r,item:p,itemInputValue:l,itemUrl:f,refresh:n,source:d,state:i.getState()},o)),e.navigator.navigateNewTab({itemUrl:f,item:p,state:i.getState()}));else if(r.shiftKey)f!==void 0&&(d.onSelect(At({event:r,item:p,itemInputValue:l,itemUrl:f,refresh:n,source:d,state:i.getState()},o)),e.navigator.navigateNewWindow({itemUrl:f,item:p,state:i.getState()}));else if(!r.altKey){if(f!==void 0){d.onSelect(At({event:r,item:p,itemInputValue:l,itemUrl:f,refresh:n,source:d,state:i.getState()},o)),e.navigator.navigate({itemUrl:f,item:p,state:i.getState()});return}Ve(At({event:r,nextState:{isOpen:!1},props:e,query:l,refresh:n,store:i},o)).then(function(){d.onSelect(At({event:r,item:p,itemInputValue:l,itemUrl:f,refresh:n,source:d,state:i.getState()},o))})}}}function Un(t){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(t)}var Bp=["props","refresh","store"],Np=["inputElement","formElement","panelElement"],Hp=["inputElement"],Fp=["inputElement","maxLength"],Up=["source"],Vp=["item","source"];function Ds(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function de(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Ds(Object(e),!0).forEach(function(n){$p(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ds(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function $p(t,r,e){return(r=Kp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Kp(t){var r=qp(t,"string");return Un(r)=="symbol"?r:r+""}function qp(t,r){if(Un(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function fn(t,r){if(t==null)return{};var e,n,i=Gp(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Gp(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function js(t){var r=t.props,e=t.refresh,n=t.store,i=fn(t,Bp),o=function(_){var I=_.inputElement,w=_.formElement,x=_.panelElement,C=fn(_,Np);function E(A){var $=n.getState().isOpen||!n.pendingRequests.isEmpty();if(!(!$||A.target===I)){var U=[w,x].some(function(Y){return ds(Y,A.target)});U===!1&&(n.dispatch("blur",null),r.debug||n.pendingRequests.cancelAll())}}return de({onTouchStart:E,onMouseDown:E,onTouchMove:function($){n.getState().isOpen===!1||I!==r.environment.document.activeElement||$.target===I||I.blur()}},C)},a=function(_){return de({role:"combobox","aria-expanded":n.getState().isOpen,"aria-haspopup":"listbox","aria-controls":n.getState().isOpen?n.getState().collections.map(function(I){var w=I.source;return Ie(r.id,"list",w)}).join(" "):void 0,"aria-labelledby":Ie(r.id,"label")},_)},s=function(_){var I=_.inputElement,w=fn(_,Hp),x=function(E){var A;r.onSubmit(de({event:E,refresh:e,state:n.getState()},i)),n.dispatch("submit",null),(A=_.inputElement)===null||A===void 0||A.blur()};return de({action:"",noValidate:!0,role:"search",onSubmit:function(E){E.preventDefault();var A=qr(r.plugins,n.pendingRequests);A!==void 0?A.then(function(){return x(E)}):x(E)},onReset:function(E){var A;E.preventDefault(),r.onReset(de({event:E,refresh:e,state:n.getState()},i)),n.dispatch("reset",null),(A=_.inputElement)===null||A===void 0||A.focus()}},w)},u=function(_){var I;function w(T){(r.openOnFocus||n.getState().query)&&Ve(de({event:T,props:r,query:n.getState().completion||n.getState().query,refresh:e,store:n},i)),n.dispatch("focus",null)}var x=_||{},C=x.inputElement,E=x.maxLength,A=E===void 0?512:E,$=fn(x,Fp),U=Le(n.getState()),Y=((I=r.environment.navigator)===null||I===void 0?void 0:I.userAgent)||"",B=fs(Y),H=r.enterKeyHint||(U!=null&&U.itemUrl&&!B?"go":"search");return de({"aria-autocomplete":"both","aria-activedescendant":n.getState().isOpen&&n.getState().activeItemId!==null?Ie(r.id,"item-".concat(n.getState().activeItemId),U?.source):void 0,"aria-controls":n.getState().isOpen?n.getState().collections.filter(function(T){return T.items.length>0}).map(function(T){var M=T.source;return Ie(r.id,"list",M)}).join(" "):void 0,"aria-labelledby":Ie(r.id,"label"),value:n.getState().completion||n.getState().query,id:Ie(r.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:H,spellCheck:"false",autoFocus:r.autoFocus,placeholder:r.placeholder,maxLength:A,type:"search",onChange:function(M){var ce=M.currentTarget.value;if(r.ignoreCompositionEvents&&Ri(M).isComposing){i.setQuery(ce);return}Ve(de({event:M,props:r,query:ce.slice(0,A),refresh:e,store:n},i))},onCompositionEnd:function(M){Ve(de({event:M,props:r,query:M.currentTarget.value.slice(0,A),refresh:e,store:n},i))},onKeyDown:function(M){Ri(M).isComposing||Ms(de({event:M,props:r,refresh:e,store:n},i))},onFocus:w,onBlur:Ot,onClick:function(M){_.inputElement===r.environment.document.activeElement&&!n.getState().isOpen&&w(M)}},$)},c=function(_){return de({htmlFor:Ie(r.id,"input"),id:Ie(r.id,"label")},_)},p=function(_){var I=_||{},w=I.source,x=fn(I,Up);return de({role:"listbox","aria-labelledby":Ie(r.id,"label"),id:Ie(r.id,"list",w)},x)},l=function(_){return de({onMouseDown:function(w){w.preventDefault()},onMouseLeave:function(){n.dispatch("mouseleave",null)}},_)},f=function(_){var I=_.item,w=_.source,x=fn(_,Vp);return de({id:Ie(r.id,"item-".concat(I.__autocomplete_id),w),role:"option","aria-selected":n.getState().activeItemId===I.__autocomplete_id,onMouseMove:function(E){if(I.__autocomplete_id!==n.getState().activeItemId){n.dispatch("mousemove",I.__autocomplete_id);var A=Le(n.getState());if(n.getState().activeItemId!==null&&A){var $=A.item,U=A.itemInputValue,Y=A.itemUrl,B=A.source;B.onActive(de({event:E,item:$,itemInputValue:U,itemUrl:Y,refresh:e,source:B,state:n.getState()},i))}}},onMouseDown:function(E){E.preventDefault()},onClick:function(E){var A=w.getItemInputValue({item:I,state:n.getState()}),$=w.getItemUrl({item:I,state:n.getState()}),U=$?Promise.resolve():Ve(de({event:E,nextState:{isOpen:!1},props:r,query:A,refresh:e,store:n},i));U.then(function(){w.onSelect(de({event:E,item:I,itemInputValue:A,itemUrl:$,refresh:e,source:w,state:n.getState()},i))})}},x)};return{getEnvironmentProps:o,getRootProps:a,getFormProps:s,getLabelProps:c,getInputProps:u,getPanelProps:l,getListProps:p,getItemProps:f}}function Vn(t){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vn(t)}function Rs(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Wp(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Rs(Object(e),!0).forEach(function(n){Bs(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Rs(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Bs(t,r,e){return(r=zp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function zp(t){var r=Qp(t,"string");return Vn(r)=="symbol"?r:r+""}function Qp(t,r){if(Vn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Ns(t){var r,e,n,i,o=t.plugins,a=t.options,s=(r=(((e=a.__autocomplete_metadata)===null||e===void 0?void 0:e.userAgents)||[])[0])===null||r===void 0?void 0:r.segment,u=s?Bs({},s,Object.keys(((n=a.__autocomplete_metadata)===null||n===void 0?void 0:n.options)||{})):{};return{plugins:o.map(function(c){return{name:c.name,options:Object.keys(c.__autocomplete_pluginOptions||[])}}),options:Wp({"autocomplete-core":Object.keys(a)},u),ua:Fr.concat(((i=a.__autocomplete_metadata)===null||i===void 0?void 0:i.userAgents)||[])}}function Hs(t){var r,e,n=t.metadata,i=t.environment,o=(r=i.navigator)===null||r===void 0||(e=r.userAgent)===null||e===void 0?void 0:e.includes("Algolia Crawler");if(o){var a=i.document.createElement("meta"),s=i.document.querySelector("head");a.name="algolia:metadata",setTimeout(function(){a.content=JSON.stringify(n),s.appendChild(a)},0)}}function Hi(t){var r,e=t.state;return e.isOpen===!1||e.activeItemId===null?null:((r=Le(e))===null||r===void 0?void 0:r.itemInputValue)||null}function $n(t){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$n(t)}function Fs(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function q(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Fs(Object(e),!0).forEach(function(n){Yp(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Fs(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Yp(t,r,e){return(r=Jp(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Jp(t){var r=Zp(t,"string");return $n(r)=="symbol"?r:r+""}function Zp(t,r){if($n(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Us=function(r,e){switch(e.type){case"setActiveItemId":return q(q({},r),{},{activeItemId:e.payload});case"setQuery":return q(q({},r),{},{query:e.payload,completion:null});case"setCollections":return q(q({},r),{},{collections:e.payload});case"setIsOpen":return q(q({},r),{},{isOpen:e.payload});case"setStatus":return q(q({},r),{},{status:e.payload});case"setContext":return q(q({},r),{},{context:q(q({},r.context),e.payload)});case"ArrowDown":{var n=q(q({},r),{},{activeItemId:e.payload.hasOwnProperty("nextActiveItemId")?e.payload.nextActiveItemId:ji(1,r.activeItemId,dt(r),e.props.defaultActiveItemId)});return q(q({},n),{},{completion:Hi({state:n})})}case"ArrowUp":{var i=q(q({},r),{},{activeItemId:ji(-1,r.activeItemId,dt(r),e.props.defaultActiveItemId)});return q(q({},i),{},{completion:Hi({state:i})})}case"Escape":return r.isOpen?q(q({},r),{},{activeItemId:null,isOpen:!1,completion:null}):q(q({},r),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return q(q({},r),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return q(q({},r),{},{activeItemId:e.props.openOnFocus===!0?e.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return q(q({},r),{},{activeItemId:e.props.defaultActiveItemId,isOpen:(e.props.openOnFocus||!!r.query)&&e.props.shouldPanelOpen({state:r})});case"blur":return e.props.debug?r:q(q({},r),{},{isOpen:!1,activeItemId:null});case"mousemove":return q(q({},r),{},{activeItemId:e.payload});case"mouseleave":return q(q({},r),{},{activeItemId:e.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(e.type)," is not supported."),r}};function Kn(t){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kn(t)}function Vs(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function kt(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Vs(Object(e),!0).forEach(function(n){Xp(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Vs(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Xp(t,r,e){return(r=ed(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function ed(t){var r=td(t,"string");return Kn(r)=="symbol"?r:r+""}function td(t,r){if(Kn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function $s(t){var r=[],e=Is(t,r),n=bs(Us,e,a),i=vs({store:n}),o=js(kt({props:e,refresh:s,store:n,navigator:e.navigator},i));function a(l){var f,d,_=l.prevState,I=l.state;if(e.onStateChange(kt({prevState:_,state:I,refresh:s,navigator:e.navigator},i)),!c()&&(f=I.context)!==null&&f!==void 0&&(d=f.algoliaInsightsPlugin)!==null&&d!==void 0&&d.__automaticInsights&&e.insights!==!1){var w=Li({__autocomplete_clickAnalytics:!1});e.plugins.push(w),u([w])}}function s(){return Ve(kt({event:new Event("input"),nextState:{isOpen:n.getState().isOpen},props:e,navigator:e.navigator,query:n.getState().query,refresh:s,store:n},i))}function u(l){l.forEach(function(f){var d;return(d=f.subscribe)===null||d===void 0?void 0:d.call(f,kt(kt({},i),{},{navigator:e.navigator,refresh:s,onSelect:function(I){r.push({onSelect:I})},onActive:function(I){r.push({onActive:I})},onResolve:function(I){r.push({onResolve:I})}}))})}function c(){return e.plugins.some(function(l){return l.name==="aa.algoliaInsightsPlugin"})}if(e.insights&&!c()){var p=typeof e.insights=="boolean"?{}:e.insights;e.plugins.push(Li(p))}return u(e.plugins),Hs({metadata:Ns({plugins:e.plugins,options:t}),environment:e.environment}),kt(kt({refresh:s,navigator:e.navigator},o),i)}var qs=function(t,r,e,n){var i;r[0]=0;for(var o=1;o<r.length;o++){var a=r[o++],s=r[o]?(r[0]|=a?1:2,e[r[o++]]):r[++o];a===3?n[0]=s:a===4?n[1]=Object.assign(n[1]||{},s):a===5?(n[1]=n[1]||{})[r[++o]]=s:a===6?n[1][r[++o]]+=s+"":a?(i=t.apply(s,qs(t,s,e,["",null])),n.push(i),s[0]?r[0]|=2:(r[o-2]=0,r[o]=i)):n.push(s)}return n},Ks=new Map;function Gs(t){var r=Ks.get(this);return r||(r=new Map,Ks.set(this,r)),(r=qs(this,r.get(t)||(r.set(t,r=(function(e){for(var n,i,o=1,a="",s="",u=[0],c=function(f){o===1&&(f||(a=a.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?u.push(0,f,a):o===3&&(f||a)?(u.push(3,f,a),o=2):o===2&&a==="..."&&f?u.push(4,f,0):o===2&&a&&!f?u.push(5,0,!0,a):o>=5&&((a||!f&&o===5)&&(u.push(o,0,a,i),o=6),f&&(u.push(o,f,0,i),o=6)),a=""},p=0;p<e.length;p++){p&&(o===1&&c(),c(p));for(var l=0;l<e[p].length;l++)n=e[p][l],o===1?n==="<"?(c(),u=[u],o=3):a+=n:o===4?a==="--"&&n===">"?(o=1,a=""):a=n+a[0]:s?n===s?s="":a+=n:n==='"'||n==="'"?s=n:n===">"?(c(),o=1):o&&(n==="="?(o=5,i=a,a=""):n==="/"&&(o<5||e[p][l+1]===">")?(c(),o===3&&(u=u[0]),o=u,(u=u[0]).push(2,0,o),o=0):n===" "||n==="	"||n===`
290`||n==="\r"?(c(),o=2):a+=n),o===3&&a==="!--"&&(o=4,u=u[0])}return c(),u})(t)),r),arguments,[])).length>1?r:r[0]}var Ws=function(r){var e=r.environment,n=e.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var i=e.document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(i),n};function Fi(t,r){if(typeof r=="string"){var e=t.document.querySelector(r);return"The element ".concat(JSON.stringify(r)," is not in the document."),e}return r}function zs(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce(function(n,i){return Object.keys(i).forEach(function(o){var a=n[o],s=i[o];a!==s&&(n[o]=[a,s].filter(Boolean).join(" "))}),n},{})}function nd(t){return ad(t)||od(t)||id(t)||rd()}function rd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
291In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function id(t,r){if(t){if(typeof t=="string")return Ui(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ui(t,r):void 0}}function od(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ad(t){if(Array.isArray(t))return Ui(t)}function Ui(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function Vi(t){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vi(t)}var Qs=function(r){return r&&Vi(r)==="object"&&Object.prototype.toString.call(r)==="[object Object]"};function $i(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce(function(n,i){return Object.keys(i).forEach(function(o){var a=n[o],s=i[o];Array.isArray(a)&&Array.isArray(s)?n[o]=a.concat.apply(a,nd(s)):Qs(a)&&Qs(s)?n[o]=$i(a,s):n[o]=s}),n},{})}function qn(t){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qn(t)}function Ys(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Js(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Ys(Object(e),!0).forEach(function(n){Xs(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ys(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Xs(t,r,e){return(r=sd(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function sd(t){var r=ld(t,"string");return qn(r)=="symbol"?r:r+""}function ld(t,r){if(qn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function ud(t,r){return dd(t)||pd(t,r)||md(t,r)||cd()}function cd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
292In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function md(t,r){if(t){if(typeof t=="string")return Zs(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Zs(t,r):void 0}}function Zs(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function pd(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(e=e.call(t)).next,r===0){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=o.call(e)).done)&&(s.push(n.value),s.length!==r);u=!0);}catch(p){c=!0,i=p}finally{try{if(!u&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function dd(t){if(Array.isArray(t))return t}function el(t,r){return Object.entries(t).reduce(function(e,n){var i=ud(n,2),o=i[0],a=i[1];return r({key:o,value:a})?Js(Js({},e),{},Xs({},o,a)):e},{})}var fd=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function hd(t,r,e){e===null?t[r]="":typeof e!="number"?t[r]=e:t[r]=e+"px"}function tl(t){var r;this===null||this===void 0||(r=this._listeners)===null||r===void 0||r[t.type](t)}function nl(t,r,e){var n,i,o=t[r];if(r==="style")if(typeof e=="string")t.style=e;else if(e===null)t.style="";else for(r in e)(!o||e[r]!==o[r])&&hd(t.style,r,e[r]);else r[0]==="o"&&r[1]==="n"?(n=r!==(r=r.replace(/Capture$/,"")),i=r.toLowerCase(),(i in t||fd.includes(i))&&(r=i),r=r.slice(2),t._listeners||(t._listeners={}),t._listeners[r]=e,e?o||t.addEventListener(r,tl,n):t.removeEventListener(r,tl,n)):r!=="list"&&r!=="tagName"&&r!=="form"&&r!=="type"&&r!=="size"&&r!=="download"&&r!=="href"&&r in t?t[r]=e??"":typeof e!="function"&&r!=="dangerouslySetInnerHTML"&&(e==null||e===!1&&!/^ar/.test(r)?t.removeAttribute(r):t.setAttribute(r,e))}function rl(t){switch(t){case"onChange":return"onInput";case"onCompositionEnd":return"oncompositionend";default:return t}}function Se(t,r){for(var e in r)nl(t,rl(e),r[e])}function Ki(t,r){for(var e in r)e[0]==="o"&&e[1]==="n"||nl(t,rl(e),r[e])}var gd=["children"];function bd(t){return Id(t)||yd(t)||vd(t)||_d()}function _d(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
293In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vd(t,r){if(t){if(typeof t=="string")return qi(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?qi(t,r):void 0}}function yd(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Id(t){if(Array.isArray(t))return qi(t)}function qi(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function Sd(t,r){if(t==null)return{};var e,n,i=Cd(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Cd(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function Qr(t){return function(e,n){var i=n.children,o=i===void 0?[]:i,a=Sd(n,gd),s=t.document.createElement(e);return Se(s,a),s.append.apply(s,bd(o)),s}}function Gn(t){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gn(t)}var xd=["autocompleteScopeApi","environment","classNames","getIn
293putProps","getInputPropsCore","isDetached","state"];function il(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Gi(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?il(Object(e),!0).forEach(function(n){Pd(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):il(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Pd(t,r,e){return(r=wd(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function wd(t){var r=Td(t,"string");return Gn(r)=="symbol"?r:r+""}function Td(t,r){if(Gn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Od(t,r){if(t==null)return{};var e,n,i=Ed(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Ed(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var ol=function(r){var e=r.autocompleteScopeApi,n=r.environment,i=r.classNames,o=r.getInputProps,a=r.getInputPropsCore,s=r.isDetached,u=r.state,c=Od(r,xd),p=Qr(n),l=p("input",c),f=o(Gi({state:u,props:a({inputElement:l}),inputElement:l},e));return Se(l,Gi(Gi({},f),{},{onKeyDown:function(_){s&&_.key==="Tab"||f.onKeyDown(_)}})),l};var al=function(r){var e=r.environment,n=e.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-LoadingIcon"),n.setAttribute("viewBox","0 0 100 100"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.innerHTML=`<circle
294  cx="50"
295  cy="50"
296  fill="none"
297  r="35"
298  stroke="currentColor"
299  stroke-dasharray="164.93361431346415 56.97787143782138"
300  stroke-width="6"
301>
302  <animateTransform
303    attributeName="transform"
304    type="rotate"
305    repeatCount="indefinite"
306    dur="1s"
307    values="0 50 50;90 50 50;180 50 50;360 50 50"
308    keyTimes="0;0.40;0.65;1"
309  />
310</circle>`;var i=function o(){if(!n.parentElement){setTimeout(o,0);return}n.pauseAnimations()};return"pauseAnimations"in n&&i(),n};var Wi=function(r){var e=r.environment,n=e.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var i=e.document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(i),n};function Wn(t){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wn(t)}function sl(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function ft(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};
310r%2?sl(Object(e),!0).forEach(function(n){Ad(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sl(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Ad(t,r,e){return(r=kd(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function kd(t){var r=Ld(t,"string");return Wn(r)=="symbol"?r:r+""}function Ld(t,r){if(Wn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function ll(t){var r=t.autocomplete,e=t.autocompleteScopeApi,n=t.classNames,i=t.environment,o=t.isDetached,a=t.placeholder,s=a===void 0?"Search":a,u=t.propGetters,c=t.setIsModalOpen,p=t.state,l=t.translations,f=Qr(i),d=u.getRootProps(ft({state:p,props:r.getRootProps({})},e)),_=f("div",ft({class:n.root},d)),I=f("div",{class:n.detachedContainer,onMouseDown:function(O){O.stopPropagation()}}),w=f("div",{class:n.detachedOverlay,children:[I],onMouseDown:function(){c(!1),r.setIsOpen(!1)}}),x=u.getLabelProps(ft({state:p,props:r.getLabelProps({})},e)),C=f("button",{class:n.submitButton,type:"submit",title:l.submitButtonTitle,children:[Wi({environment:i})]}),E=f("label",ft({class:n.label,children:[C],ariaLabel:l.submitButtonTitle},x)),A=f("button",{class:n.clearButton,type:"reset",title:l.clearButtonTitle,children:[Ws({environment:i})]}),$=f("div",{class:n.loadingIndicator,children:[al({environment:i})]}),U=ol({class:n.input,environment:i,state:p,getInputProps:u.getInputProps,getInputPropsCore:r.getInputProps,autocompleteScopeApi:e,isDetached:o}),Y=f("div",{class:n.inputWrapperPrefix,children:[E,$]}),B=f("div",{class:n.inputWrapperSuffix,children:[A]}),H=f("div",{class:n.inputWrapper,children:[U]}),T=u.getFormProps(ft({state:p,props:r.getFormProps({inputElement:U})},e)),M=f("form",ft({class:n.form,children:[Y,H,B]},T)),ce=u.getPanelProps(ft({state:p,props:r.getPanelProps({})},e)),je=f("div",ft({class:n.panel},ce)),or=f("div",{class:n.detachedSearchButtonQuery,textContent:p.query}),ar=f("div",{class:n.detachedSearchButtonPlaceholder,hidden:!!p.query,textContent:s});if(o){var sr=f("div",{class:n.detachedSearchButtonIcon,ariaLabel:l.detachedSearchButtonTitle,children:[Wi({environment:i})]}),mi=f("button",{type:"button",class:n.detachedSearchButton,title:l.detachedSearchButtonTitle,id:x.id,onClick:function(){c(!0)},children:[sr,ar,or]}),pi=f("button",{type:"button",class:n.detachedCancelButton,textContent:l.detachedCancelButtonText,onTouchStart:function(O){O.stopPropagation()},onClick:function(){r.setIsOpen(!1),c(!1)}}),lr=f("div",{class:n.detachedFormContainer,children:[M,pi]});I.appendChild(lr),_.appendChild(mi)}else _.appendChild(M);return{detachedContainer:I,detachedOverlay:w,detachedSearchButtonQuery:or,detachedSearchButtonPlaceholder:ar,inputWrapper:H,input:U,root:_,form:M,label:E,submitButton:C,clearButton:A,loadingIndicator:$,panel:je}}function ul(){var t=[],r=[];function e(n){t.push(n);var i=n();r.push(i)}return{runEffect:e,cleanupEffects:function(){var i=r;r=[],i.forEach(function(o){o()})},runEffects:function(){var i=t;t=[],i.forEach(function(o){e(o)})}}}function cl(){var t=[];return{reactive:function(e){var n=e(),i={_fn:e,_ref:{current:n},get value(){return this._ref.current},set value(o){this._ref.current=o}};return t.push(i),i},runReactives:function(){t.forEach(function(e){e._ref.current=e._fn()})}}}var ei,ae,hl,Md,Lt,ml,gl,zi,Zi,Qi,Yi,Dd,zn={},bl=[],jd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xi=Array.isArray;function ht(t,r){for(var e in r)t[e]=r[e];return t}function _l(t){var r=t.parentNode;r&&r.removeChild(t)}function eo(t,r,e){var n,i,o,a={};for(o in r)o=="key"?n=r[o]:o=="ref"?i=r[o]:a[o]=r[o];if(arguments.length>2&&(a.children=arguments.length>3?ei.call(arguments,2):e),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)a[o]===void 0&&(a[o]=t.defaultProps[o]);return Jr(t,a,n,i,null)}function Jr(t,r,e,n,i){var o={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++hl,__i:-1,__u:0};return i==null&&ae.vnode!=null&&ae.vnode(o),o}function hn(t){return t.children}function Zr(t,r){this.props=t,this.context=r}function Mt(t,r){if(r==null)return t.__?Mt(t.__,t.__i+1):null;for(var e;r<t.__k.length;r++)if((e=t.__k[r])!=null&&e.__e!=null)return e.__e;return typeof t.type=="function"?Mt(t):null}function vl(t){var r,e;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if((e=t.__k[r])!=null&&e.__e!=null){t.__e=t.__c.base=e.__e;break}return vl(t)}}function pl(t){(!t.__d&&(t.__d=!0)&&Lt.push(t)&&!Xr.__r++||ml!==ae.debounceRendering)&&((ml=ae.debounceRendering)||gl)(Xr)}function Xr(){var t,r,e,n,i,o,a,s;for(Lt.sort(zi);t=Lt.shift();)t.__d&&(r=Lt.length,n=void 0,o=(i=(e=t).__v).__e,a=[],s=[],e.__P&&((n=ht({},i)).__v=i.__v+1,ae.vnode&&ae.vnode(n),to(e.__P,n,i,e.__n,e.__P.namespaceURI,32&i.__u?[o]:null,a,o??Mt(i),!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,Sl(a,n,s),n.__e!=o&&vl(n)),Lt.length>r&&Lt.sort(zi));Xr.__r=0}function yl(t,r,e,n,i,o,a,s,u,c,p){var l,f,d,_,I,w=n&&n.__k||bl,x=r.length;for(e.__d=u,Rd(e,r,w),u=e.__d,l=0;l<x;l++)(d=e.__k[l])!=null&&typeof d!="boolean"&&typeof d!="function"&&(f=d.__i===-1?zn:w[d.__i]||zn,d.__i=l,to(t,d,f,i,o,a,s,u,c,p),_=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&no(f.ref,null,d),p.push(d.ref,d.__c||_,d)),I==null&&_!=null&&(I=_),65536&d.__u||f.__k===d.__k?(u&&typeof d.type=="string"&&!t.contains(u)&&(u=Mt(f)),u=Il(d,u,t)):typeof d.type=="function"&&d.__d!==void 0?u=d.__d:_&&(u=_.nextSibling),d.__d=void 0,d.__u&=-196609);e.__d=u,e.__e=I}function Rd(t,r,e){var n,i,o,a,s,u=r.length,c=e.length,p=c,l=0;for(t.__k=[],n=0;n<u;n++)a=n+l,(i=t.__k[n]=(i=r[n])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Jr(null,i,null,null,null):Xi(i)?Jr(hn,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Jr(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=t,i.__b=t.__b+1,s=Bd(i,e,a,p),i.__i=s,o=null,s!==-1&&(p--,(o=e[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&l--,typeof i.type!="function"&&(i.__u|=65536)):s!==a&&(s==a-1?l=s-a:s==a+1?l++:s>a?p>u-a?l+=s-a:l--:s<a&&l++,s!==n+l&&(i.__u|=65536))):(o=e[a])&&o.key==null&&o.__e&&(131072&o.__u)==0&&(o.__e==t.__d&&(t.__d=Mt(o)),Ji(o,o,!1),e[a]=null,p--);if(p)for(n=0;n<c;n++)(o=e[n])!=null&&(131072&o.__u)==0&&(o.__e==t.__d&&(t.__d=Mt(o)),Ji(o,o))}function Il(t,r,e){var n,i;if(typeof t.type=="function"){for(n=t.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=t,r=Il(n[i],r,e));return r}t.__e!=r&&(e.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(r!=null&&r.nodeType===8);return r}function Bd(t,r,e,n){var i=t.key,o=t.type,a=e-1,s=e+1,u=r[e];if(u===null||u&&i==u.key&&o===u.type&&(131072&u.__u)==0)return e;if(n>(u!=null&&(131072&u.__u)==0?1:0))for(;a>=0||s<r.length;){if(a>
vendor: 6,251 bytes, line 310
310=0){if((u=r[a])&&(131072&u.__u)==0&&i==u.key&&o===u.type)return a;a--}if(s<r.length){if((u=r[s])&&(131072&u.__u)==0&&i==u.key&&o===u.type)return s;s++}}return-1}function dl(t,r,e){r[0]==="-"?t.setProperty(r,e??""):t[r]=e==null?"":typeof e!="number"||jd.test(r)?e:e+"px"}function Yr(t,r,e,n,i){var o;e:if(r==="style")if(typeof e=="string")t.style.cssText=e;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||dl(t.style,r,"");if(e)for(r in e)n&&e[r]===n[r]||dl(t.style,r,e[r])}else if(r[0]==="o"&&r[1]==="n")o=r!==(r=r.replace(/(PointerCapture)$|Capture$/i,"$1")),r=r.toLowerCase()in t||r==="onFocusOut"||r==="onFocusIn"?r.toLowerCase().slice(2):r.slice(2),t.l||(t.l={}),t.l[r+o]=e,e?n?e.u=n.u:(e.u=Zi,t.addEventListener(r,o?Yi:Qi,o)):t.removeEventListener(r,o?Yi:Qi,o);else{if(i=="http://www.w3.org/2000/svg")r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!="width"&&r!="height"&&r!="href"&&r!="list"&&r!="form"&&r!="tabIndex"&&r!="download"&&r!="rowSpan"&&r!="colSpan"&&r!="role"&&r!="popover"&&r in t)try{t[r]=e??"";break e}catch{}typeof e=="function"||(e==null||e===!1&&r[4]!=="-"?t.removeAttribute(r):t.setAttribute(r,r=="popover"&&e==1?"":e))}}function fl(t){return function(r){if(this.l){var e=this.l[r.type+t];if(r.t==null)r.t=Zi++;else if(r.t<e.u)return;return e(ae.event?ae.event(r):r)}}}function to(t,r,e,n,i,o,a,s,u,c){var p,l,f,d,_,I,w,x,C,E,A,$,U,Y,B,H,T=r.type;if(r.constructor!==void 0)return null;128&e.__u&&(u=!!(32&e.__u),o=[s=r.__e=e.__e]),(p=ae.__b)&&p(r);e:if(typeof T=="function")try{if(x=r.props,C="prototype"in T&&T.prototype.render,E=(p=T.contextType)&&n[p.__c],A=p?E?E.props.value:p.__:n,e.__c?w=(l=r.__c=e.__c).__=l.__E:(C?r.__c=l=new T(x,A):(r.__c=l=new Zr(x,A),l.constructor=T,l.render=Hd),E&&E.sub(l),l.props=x,l.state||(l.state={}),l.context=A,l.__n=n,f=l.__d=!0,l.__h=[],l._sb=[]),C&&l.__s==null&&(l.__s=l.state),C&&T.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=ht({},l.__s)),ht(l.__s,T.getDerivedStateFromProps(x,l.__s))),d=l.props,_=l.state,l.__v=r,f)C&&T.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),C&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(C&&T.getDerivedStateFromProps==null&&x!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(x,A),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(x,l.__s,A)===!1||r.__v===e.__v)){for(r.__v!==e.__v&&(l.props=x,l.state=l.__s,l.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.forEach(function(M){M&&(M.__=r)}),$=0;$<l._sb.length;$++)l.__h.push(l._sb[$]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(x,l.__s,A),C&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,_,I)})}if(l.context=A,l.props=x,l.__P=t,l.__e=!1,U=ae.__r,Y=0,C){for(l.state=l.__s,l.__d=!1,U&&U(r),p=l.render(l.props,l.state,l.context),B=0;B<l._sb.length;B++)l.__h.push(l._sb[B]);l._sb=[]}else do l.__d=!1,U&&U(r),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Y<25);l.state=l.__s,l.getChildContext!=null&&(n=ht(ht({},n),l.getChildContext())),C&&!f&&l.getSnapshotBeforeUpdate!=null&&(I=l.getSnapshotBeforeUpdate(d,_)),yl(t,Xi(H=p!=null&&p.type===hn&&p.key==null?p.props.children:p)?H:[H],r,e,n,i,o,a,s,u,c),l.base=r.__e,r.__u&=-161,l.__h.length&&a.push(l),w&&(l.__E=l.__=null)}catch(M){r.__v=null,u||o!=null?(r.__e=s,r.__u|=u?160:32,o[o.indexOf(s)]=null):(r.__e=e.__e,r.__k=e.__k),ae.__e(M,r,e)}else o==null&&r.__v===e.__v?(r.__k=e.__k,r.__e=e.__e):r.__e=Nd(e.__e,r,e,n,i,o,a,u,c);(p=ae.diffed)&&p(r)}function Sl(t,r,e){r.__d=void 0;for(var n=0;n<e.length;n++)no(e[n],e[++n],e[++n]);ae.__c&&ae.__c(r,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){ae.__e(o,i.__v)}})}function Nd(t,r,e,n,i,o,a,s,u){var c,p,l,f,d,_,I,w=e.props,x=r.props,C=r.type;if(C==="svg"?i="http://www.w3.org/2000/svg":C==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((d=o[c])&&"setAttribute"in d==!!C&&(C?d.localName===C:d.nodeType===3)){t=d,o[c]=null;break}}if(t==null){if(C===null)return document.createTextNode(x);t=document.createElementNS(i,C,x.is&&x),o=null,s=!1}if(C===null)w===x||s&&t.data===x||(t.data=x);else{if(o=o&&ei.call(t.childNodes),w=e.props||zn,!s&&o!=null)for(w={},c=0;c<t.attributes.length;c++)w[(d=t.attributes[c]).name]=d.value;for(c in w)if(d=w[c],c!="children"){if(c=="dangerouslySetInnerHTML")l=d;else if(c!=="key"&&!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;Yr(t,c,null,d,i)}}for(c in x)d=x[c],c=="children"?f=d:c=="dangerouslySetInnerHTML"?p=d:c=="value"?_=d:c=="checked"?I=d:c==="key"||s&&typeof d!="function"||w[c]===d||Yr(t,c,d,w[c],i);if(p)s||l&&(p.__html===l.__html||p.__html===t.innerHTML)||(t.innerHTML=p.__html),r.__k=[];else if(l&&(t.innerHTML=""),yl(t,Xi(f)?f:[f],r,e,n,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:e.__k&&Mt(e,0),s,u),o!=null)for(c=o.length;c--;)o[c]!=null&&_l(o[c]);s||(c="value",_!==void 0&&(_!==t[c]||C==="progress"&&!_||C==="option"&&_!==w[c])&&Yr(t,c,_,w[c],i),c="checked",I!==void 0&&I!==t[c]&&Yr(t,c,I,w[c],i))}return t}function no(t,r,e){try{typeof t=="function"?t(r):t.current=r}catch(n){ae.__e(n,e)}}function Ji(t,r,e){var n,i;if(ae.unmount&&ae.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||no(n,null,r)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){ae.__e(o,r)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&Ji(n[i],r,e||typeof t.type!="function");e||t.__e==null||_l(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function Hd(t,r,e){return this.constructor(t,e)}function Cl(t,r,e){var n,i,o,a;ae.__&&ae.__(t,r),i=(n=typeof e=="function")?null:e&&e.__k||r.__k,o=[],a=[],to(r,t=(!n&&e||r).__k=eo(hn,null,[t]),i||zn,zn,r.namespaceURI,!n&&e?[e]:i?null:r.firstChild?ei.call(r.childNodes):null,o,!n&&e?e:i?i.__e:r.firstChild,n,a),Sl(o,t,a)}ei=bl.slice,ae={__e:function(t,r,e,n){for(var i,o,a;r=r.__;)if((i=r.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),a=i.__d),a)return i.__E=i}catch(s){t=s}throw t}}
310,hl=0,Md=function(t){return t!=null&&t.constructor==null},Zr.prototype.setState=function(t,r){var e;e=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ht({},this.state),typeof t=="function"&&(t=t(ht({},e),this.props)),t&&ht(e,t),t!=null&&this.__v&&(r&&this._sb.push(r),pl(this))},Zr.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),pl(this))},Zr.prototype.render=hn,Lt=[],gl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zi=function(t,r){return t.__v.__b-r.__v.__b},Xr.__r=0,Zi=0,Qi=fl(!1),Yi=fl(!0),Dd=0;var ti="__aa-highlight__",ni="__/aa-highlight__";function Fd(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=t;return{get:function(){return r},add:function(n){var i=r[r.length-1];i?.isHighlighted===n.isHighlighted?r[r.length-1]={value:i.value+n.value,isHighlighted:i.isHighlighted}:r.push(n)}}}function ri(t){var r=t.highlightedValue,e=r.split(ti),n=e.shift(),i=Fd(n?[{value:n,isHighlighted:!1}]:[]);return e.forEach(function(o){var a=o.split(ni);i.add({value:a[0],isHighlighted:!0}),a[1]!==""&&i.add({value:a[1],isHighlighted:!1})}),i.get()}function Ud(t){return qd(t)||Kd(t)||$d(t)||Vd()}function Vd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
311In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $d(t,r){if(t){if(typeof t=="string")return ro(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ro(t,r):void 0}}function Kd(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qd(t){if(Array.isArray(t))return ro(t)}function ro(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function ii(t){var r=t.hit,e=t.attribute,n=Array.isArray(e)?e:[e],i=an(r,["_highlightResult"].concat(Ud(n),["value"]));return typeof i!="string"&&(i=an(r,n)||""),ri({highlightedValue:i})}var Gd={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wd=(function(){try{return new RegExp("[\\p{L}\\p{N}_]","u")}catch{return new RegExp(/\w/i)}})(),xl=/&(amp|quot|lt|gt|#39);/g,zd=RegExp(xl.source);function Qd(t){return t&&zd.test(t)?t.replace(xl,function(r){return Gd[r]}):t}function Pl(t,r){var e,n,i=t[r],o=((e=t[r+1])===null||e===void 0?void 0:e.isHighlighted)||!0,a=((n=t[r-1])===null||n===void 0?void 0:n.isHighlighted)||!0;return!Wd.test(Qd(i.value))&&a===o?a:i.isHighlighted}function Qn(t){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qn(t)}function wl(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function oi(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?wl(Object(e),!0).forEach(function(n){Yd(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):wl(Object(e)).forEac
vendor: 2,478 bytes, lines 311-312
311h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Yd(t,r,e){return(r=Jd(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Jd(t){var r=Zd(t,"string");return Qn(r)=="symbol"?r:r+""}function Zd(t,r){if(Qn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function ai(t){return t.some(function(r){return r.isHighlighted})?t.map(function(r,e){return oi(oi({},r),{},{isHighlighted:!Pl(t,e)})}):t.map(function(r){return oi(oi({},r),{},{isHighlighted:!1})})}function Tl(t){return ai(ii(t))}function Xd(t){return rf(t)||nf(t)||tf(t)||ef()}function ef(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
312In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tf(t,r){if(t){if(typeof t=="string")return io(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?io(t,r):void 0}}function nf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rf(t){if(Array.isArray(t))return io(t)}function io(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function si(t){var r=t.hit,e=t.attribute,n=Array.isArray(e)?e:[e],i=an(r,["_snippetResult"].concat(Xd(n),["value"]));return typeof i!="string"&&(i=an(r,n)||""),ri({highlightedValue:i})}function Ol(t){return ai(si(t))}function Yn(t){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yn(t)}function El(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Al(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?El(Object(e),!0).forEach(function(n){of(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):El(Object(e)).forEac
312h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function of(t,r,e){return(r=af(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function af(t){var r=sf(t,"string");return Yn(r)=="symbol"?r:r+""}function sf(t,r){if(Yn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function kl(t,r){function e(n){return t({searchClient:n.searchClient,queries:n.requests.map(function(i){return i.query})}).then(function(i){return i.map(function(o,a){var s=n.requests[a],u=s.sourceId,c=s.transformResponse;return{items:o,sourceId:u,transformResponse:c}})})}return function(i){return function(a){return Al(Al({requesterId:r,execute:e},i),a)}}}function Ll(t){var r=t.transporter||{},e=r.headers||r.baseHeaders||{},n=r.queryParameters||r.baseQueryParameters||{},i="x-algolia-application-id",o="x-algolia-api-key",a=e[i]||n[i],s=e[o]||n[o];return{appId:a,apiKey:s}}function Jn(t){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jn(t)}var lf=["params"];function Ml(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Dt(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Ml(Object(e),!0).forEach(function(n){uf(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ml(Object(e)).forEac
312h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function uf(t,r,e){return(r=cf(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function cf(t){var r=mf(t,"string");return Jn(r)=="symbol"?r:r+""}function mf(t,r){if(Jn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function pf(t,r){if(t==null)return{};var e,n,i=df(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function df(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function Dl(t){return bf(t)||gf(t)||hf(t)||ff()}function ff(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
313In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hf(t,r){if(t){if(typeof t=="string")return oo(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?oo(t,r):void 0}}function gf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bf(t){if(Array.isArray(t))return oo(t)}function oo(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function jl(t){var r=t.searchClient,e=t.queries,n=t.userAgents,i=n===void 0?[]:n;if(typeof r.addAlgoliaAgent=="function"){var o=[].concat(Dl(Fr),Dl(i));o.forEach(function(c){var p=c.segment,l=c.version;r.addAlgoliaAgent(p,l)})}var a=Ll(r),s=a.appId,u=a.apiKey;return r.search(e.map(function(c){var p=c.params,l=pf(c,lf);return Dt(Dt({},l),{},{params:Dt({hitsPerPage:5,highlightPreTag:ti,highlightPostTag:ni},p)})})).then(function(c){return c.results.map(function(p,l){var f;return Dt(Dt({},p),{},{hits:(f=p.hits)===null||f===void 0?void 0:f.map(function(d){return Dt(Dt({},d),{},{__autocomplete_indexName:p.index||e[l].indexName,__autocomplete_queryID:p.queryID,__autocomplete_algoliaCredentials:{appId:s,apiKey:u}})})})})})}function Rl(t){var r=t.createElement,e=t.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return r(e,{},ii({hit:o,attribute:a}).map(function(c,p){return c.isHighlighted?r(u,{key:p},c.value):c.value}))}return n.__autocomplete_componentName="Highlight",n}function Bl(t){var r=t.createElement,e=t.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return r(e,{},Tl({hit:o,attribute:a}).map(function(c,p){return c.isHighlighted?r(u,{key:p},c.value):c.value}))}return n.__autocomplete_componentName="ReverseHighlight",n}function Nl(t){var r=t.createElement,e=t.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return r(e,{},Ol({hit:o,attribute:a}).map(function(c,p){return c.isHighlighted?r(u,{key:p},c.value):c.value}))}return n.__autocomplete_componentName="ReverseSnippet",n}function Hl(t){var r=t.createElement,e=t.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return r(e,{},si({hit:o,attribute:a}).map(function(c,p){return c.isHighlighted?r(u,{key:p},c.value):c.value}))}return n.__autocomplete_componentName="Snippet",n}function Zn(t){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zn(t)}var _f=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"];function Fl(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function gt(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};
vendor: 4,261 bytes, line 313
313r%2?Fl(Object(e),!0).forEach(function(n){vf(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Fl(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function vf(t,r,e){return(r=yf(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function yf(t){var r=If(t,"string");return Zn(r)=="symbol"?r:r+""}function If(t,r){if(Zn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Sf(t,r){if(t==null)return{};var e,n,i=Cf(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Cf(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var xf={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},Pf=function(r,e){var n=r.children,i=r.render;i(n,e)},wf={createElement:eo,Fragment:hn,render:Cl};function Ul(t){var r,e=t.classNames,n=t.container,i=t.getEnvironmentProps,o=t.getFormProps,a=t.getInputProps,s=t.getItemProps,u=t.getLabelProps,c=t.getListProps,p=t.getPanelProps,l=t.getRootProps,f=t.panelContainer,d=t.panelPlacement,_=t.render,I=t.renderNoResults,w=t.renderer,x=t.detachedMediaQuery,C=t.components,E=t.translations,A=Sf(t,_f),$=typeof window<"u"?window:{},U=Fi($,n);U.tagName;var Y=gt(gt({},wf),w),B={Highlight:Rl(Y),ReverseHighlight:Bl(Y),ReverseSnippet:Nl(Y),Snippet:Hl(Y)},H={clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",detachedSearchButtonTitle:"Search",submitButtonTitle:"Submit"};return{renderer:{classNames:zs(xf,e??{}),container:U,getEnvironmentProps:i??function(T){var M=T.props;return M},getFormProps:o??function(T){var M=T.props;return M},getInputProps:a??function(T){var M=T.props;return M},getItemProps:s??function(T){var M=T.props;return M},getLabelProps:u??function(T){var M=T.props;return M},getListProps:c??function(T){var M=T.props;return M},getPanelProps:p??function(T){var M=T.props;return M},getRootProps:l??function(T){var M=T.props;return M},panelContainer:f?Fi($,f):$.document.body,panelPlacement:d??"input-wrapper-width",render:_??Pf,renderNoResults:I,renderer:Y,detachedMediaQuery:x??getComputedStyle($.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:gt(gt({},B),C),translations:gt(gt({},H),E)},core:gt(gt({},A),{},{id:(r=A.id)!==null&&r!==void 0?r:Nr(),environment:$})}}function Vl(t){var r=t.panelPlacement,e=t.container,n=t.form,i=t.environment,o=e.getBoundingClientRect(),a=i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0,s=a+o.top+o.height;switch(r){case"start":return{top:s,left:o.left};case"end":return{top:s,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":{var u=n.getBoundingClientRect();return{top:s,left:u.left,right:i.document.documentElement.clientWidth-(u.left+u.width),width:"unset",maxWidth:"unset"}}default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(r)," is not val
313id."))}}function Xn(t){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xn(t)}function li(){return li=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},li.apply(null,arguments)}function $l(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function gn(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?$l(Object(e),!0).forEach(function(n){Tf(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$l(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Tf(t,r,e){return(r=Of(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Of(t){var r=Ef(t,"string");return Xn(r)=="symbol"?r:r+""}function Ef(t,r){if(Xn(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Kl(t){var r=t.autocomplete,e=t.autocompleteScopeApi,n=t.dom,i=t.propGetters,o=t.state;Ki(n.root,i.getRootProps(gn({state:o,props:r.getRootProps({})}
vendor: 10,379 bytes, line 313
313,e))),Ki(n.input,i.getInputProps(gn({state:o,props:r.getInputProps({inputElement:n.input}),inputElement:n.input},e))),Se(n.label,{hidden:o.status==="stalled"}),Se(n.loadingIndicator,{hidden:o.status!=="stalled"}),Af(n.loadingIndicator,o.status==="stalled"),Se(n.clearButton,{hidden:!o.query}),Se(n.detachedSearchButtonQuery,{textContent:o.query}),Se(n.detachedSearchButtonPlaceholder,{hidden:!!o.query})}function Af(t,r){var e,n=((e=t.firstChild)===null||e===void 0?void 0:e.nodeName)==="svg"?t.firstChild:null;!n||!n.pauseAnimations||!n.unpauseAnimations||(r?n.unpauseAnimations():n.pauseAnimations())}function ql(t,r){var e=r.autocomplete,n=r.autocompleteScopeApi,i=r.classNames,o=r.html,a=r.dom,s=r.panelContainer,u=r.propGetters,c=r.state,p=r.components,l=r.renderer;if(!c.isOpen){s.contains(a.panel)&&s.removeChild(a.panel);return}!s.contains(a.panel)&&c.status!=="loading"&&s.appendChild(a.panel),a.panel.classList.toggle("aa-Panel--stalled",c.status==="stalled");var f=c.collections.filter(function(I){var w=I.source,x=I.items;return w.templates.noResults||x.length>0}).map(function(I,w){var x=I.source,C=I.items;return l.createElement("section",{key:w,className:i.source,"data-autocomplete-source-id":x.sourceId},x.templates.header&&l.createElement("div",{className:i.sourceHeader},x.templates.header({components:p,createElement:l.createElement,Fragment:l.Fragment,items:C,source:x,state:c,html:o})),x.templates.noResults&&C.length===0?l.createElement("div",{className:i.sourceNoResults},x.templates.noResults({components:p,createElement:l.createElement,Fragment:l.Fragment,source:x,state:c,html:o})):l.createElement("ul",li({className:i.list},u.getListProps(gn({state:c,props:e.getListProps({source:x})},n))),C.map(function(E){var A=e.getItemProps({item:E,source:x});return l.createElement("li",li({key:A.id,className:i.item},u.getItemProps(gn({state:c,props:A},n))),x.templates.item({components:p,createElement:l.createElement,Fragment:l.Fragment,item:E,state:c,html:o}))})),x.templates.footer&&l.createElement("div",{className:i.sourceFooter},x.templates.footer({components:p,createElement:l.createElement,Fragment:l.Fragment,items:C,source:x,state:c,html:o})))}),d=l.createElement(l.Fragment,null,l.createElement("div",{className:i.panelLayout},f),l.createElement("div",{className:"aa-GradientBottom"})),_=f.reduce(function(I,w){return I[w.props["data-autocomplete-source-id"]]=w,I},{});t(gn(gn({children:d,state:c,sections:f,elements:_},l),{},{components:p,html:o},n),a.panel)}var ui=[{segment:"autocomplete-js",version:Hr}];var kf=["components"];function er(t){"@babel/helpers - typeof";return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},er(t)}function Lf(t,r){if(t==null)return{};var e,n,i=Mf(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Mf(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function Gl(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function jt(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Gl(Object(e),!0).forEach(function(n){zl(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gl(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function zl(t,r,e){return(r=Df(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Df(t){var r=jf(t,"string");return er(r)=="symbol"?r:r+""}function jf(t,r){if(er(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Wl=0;function tr(t){var r=ul(),e=r.runEffect,n=r.cleanupEffects,i=r.runEffects,o=cl(),a=o.reactive,s=o.runReactives,u=Tt(!1),c=Tt(t),p=Tt(void 0),l=a(function(){return Ul(c.current)}),f=a(function(){return l.value.core.environment.matchMedia(l.value.renderer.detachedMediaQuery).matches}),d=a(function(){return $s(jt(jt({},l.value.core),{},{onStateChange:function(H){var T,M,ce;u.current=H.state.collections.some(function(je){return je.source.templates.noResults}),(T=p.current)===null||T===void 0||T.call(p,H),(M=(ce=l.value.core).onStateChange)===null||M===void 0||M.call(ce,H)},shouldPanelOpen:c.current.shouldPanelOpen||function(B){var H=B.state;if(f.value)return!0;var T=dt(H)>0;if(!l.value.core.openOnFocus&&!H.query)return T;var M=!!(u.current||l.value.renderer.renderNoResults);return!T&&M||T},__autocomplete_metadata:{userAgents:ui,options:t}}))}),_=Tt(jt({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},l.value.core.initialState)),I={getEnvironmentProps:l.value.renderer.getEnvironmentProps,getFormProps:l.value.renderer.getFormProps,getInputProps:l.value.renderer.getInputProps,getItemProps:l.value.renderer.getItemProps,getLabelProps:l.value.renderer.getLabelProps,getListProps:l.value.renderer.getListProps,getPanelProps:l.value.renderer.getPanelProps,getRootProps:l.value.renderer.getRootProps},w={setActiveItemId:d.value.setActiveItemId,setQuery:d.value.setQuery,setCollections:d.value.setCollections,setIsOpen:d.value.setIsOpen,setStatus:d.value.setStatus,setContext:d.value.setContext,refresh:d.value.refresh,navigator:d.value.navigator},x=a(function(){return Gs.bind(l.value.renderer.renderer.createElement)}),C=a(function(){return ll({autocomplete:d.value,autocompleteScopeApi:w,classNames:l.value.renderer.classNames,environment:l.value.core.environment,isDetached:f.value,placeholder:l.value.core.placeholder,propGetters:I,setIsModalOpen:Y,state:_.current,translations:l.value.renderer.translations})});function E(){Se(C.value.panel,{style:f.value?{}:Vl({panelPlacement:l.value.renderer.panelPlacement,container:C.value.root,form:C.value.form,environment:l.value.core.environment})})}function A(B){_.current=B;var H={autocomplete:d.value,autocompleteScopeApi:w,classNames:l.value.renderer.classNames,components:l.value.renderer.components,container:l.value.renderer.container,html:x.value,dom:C.value,panelContainer:f.value?C.value.detachedContainer:l.value.renderer.panelContainer,propGetters:I,state:_.current,renderer:l.value.renderer.renderer},T=!dt(B)&&!u.current&&l.value.renderer.renderNoResults||l.value.renderer.render;Kl(H),ql(T,H)}e(function(){var B=d.value.getEnvironmentProps({formElement:C.value.form,panelElement:C.value.panel,inputElement:C.value.input});return Se(l.value.core.environment,B),function(){Se(l.value.core.environment,Object.keys(B).reduce(function(H,T){return jt(jt({},H),{},zl({},T,void 0))},{}))}}),e(function(){var B=f.value?l.value.core.environment.document.body:l.value.renderer.panelContainer,H=f.value?C.value.detachedOverlay:C.value.panel;return f.value&&_.current.isOpen&&Y(!0),A(_.current),function(){B.contains(H)&&(B.removeChild(H),B.classList.remove("aa-Detached"))}}),e(function(){var B=l.value.renderer.container;return B.appendChild(C.value.root),function(){B.removeChild(C.value.root)}}),e(function(){var B=rn(function(H){var T=H.state;A(T)},0);return p.current=function(H){var T=H.state,M=H.prevState;if(f.value&&M.isOpen!==T.isOpen&&Y(T.isOpen),!f.value&&T.isOpen&&!M.isOpen&&E(),T.query!==M.query){var ce=l.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable");ce.forEach(function(je){je.scrollTop!==0&&(je.scrollTop=0)})}B({state:T})},function(){p.current=void 0}}),e(function(){var B=rn(function(){var H=f.value;f.value=l.value.core.environment.matchMedia(l.value.renderer.detachedMediaQuery).matches,H!==f.value?U({}):requestAnimationFrame(E)},20);return l.value.core.environment.addEventListener("resize",B),function(){l.value.core.environment.removeEventListener("resize",B)}}),e(function(){if(!f.value)return function(){};function B(ce){C.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",ce)}function H(ce){B(ce.matches)}var T=l.value.core.environment.matchMedia(getComputedStyle(l.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));B(T.matches);var M=!!T.addEventListener;return M?T.addEventListener("change",H):T.addListener(H),function(){M?T.removeEventListener("change",H):T.removeListener(H)}}),e(function(){return requestAnimationFrame(E),function(){}});function $(){Wl--,n()}function U(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n();var H=l.value.renderer,T=H.components,M=Lf(H,kf);c.current=$i(M,l.value.core,{components:el(T,function(ce){var je=ce.value;return!je.hasOwnProperty("__autocomplete_componentName")}),initialState:_.current},B),s(),i(),d.value.refresh().then(function(){A(_.current)})}function Y(B){var H=l.value.core.environment.document.body.contains(C.value.detachedOverlay);B!==H&&(B?(l.value.core.environment.document.body.appendChild(C.value.detachedOverlay),l.value.core.environment.document.body.classList.add("aa-Detached"),C.value.input.focus()):(l.value.core.environment.document.body.removeChild(C.value.detachedOverlay),l.value.core.environment.document.body.classList.remove("aa-Detached")))}return Wl++,jt(jt({},w),{},{update:U,destroy:$})}function nr(t){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nr(t)}function Ql(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Yl(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Ql(Object(e),!0).forEach(function(n){Rf(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ql(Object(e)).forEac
313h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Rf(t,r,e){return(r=Bf(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Bf(t){var r=Nf(t,"string");return nr(r)=="symbol"?r:r+""}function Nf(t,r){if(nr(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Jl=kl(function(t){return jl(Yl(Yl({},t),{},{userAgents:ui}))},"algolia");var bn=Jl({transformResponse:function(r){return r.hits}});var Zl=(()=>{class t extends sa{constructor(){super(...arguments),this.document=Tr`
314    mutation ($userKey: UUID!) {
315      createSecuredKey(userKey: $userKey) {
316        securedKey
317        hitsPerPage
318        delayInMilliseconds
319        appId
320        localizedIndexes
321        allowedRedirectDomains
322      }
323    }
324  `}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ze(t)))(i||t)}})()}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xl=(()=>{class t extends ma{#e;constructor(){super(),this.localStorageKey="eCommerceSearchStorageInfo",this.router=b(Ae),this.authUseCases=b(ut),this.userService=b(Gt),this.languagesService=b(Wt),this.#e=b(xr),this.resourceService=b(ye),this.ecommerceSearchMutation=b(Zl),this.appRoutesService=b(qt),this.$searchConfiguration=new mo(null),this.PRODUCT_SUGGESTIONS_INDEX_KEY="LocalizedProductSuggestionIndexNameTemplate",this.TOP_KEYWORD_SUGGESTIONS_INDEX_KEY="LocalizedTopKeyWordSuggestionIndexNameTemplate",this.paginatorConfig=Yo,this.productsUrl=S(()=>this.appRoutesService.getPathByAppRouteFeatureModule(wt.ProductsList)),this.searchPlaceholderText=S(()=>this.resourceService.getResourceByKey(ee.SEARCH_PAGE_ECOMMERCE_PLACEHOLDER));let e=this.getFromLocalStorage();xe(()=>{this.authUseCases.isAuthenticated()&&this.$searchConfiguration.next(e)}),xe(()=>{let n=this.userService.userKey();n&&(this.$searchConfiguration.next(e),(e==null||!this.isTokenValid(n,e))&&this.generateSecuredKey(n))})}isTokenValid(e,n){try{let i=n?.createSecuredKey?.securedKey;if(i==null||i==="")return!1;if(!Xe.Base64.test(i))return this.#e.error("[ECommerceSearchService.isTokenValid] Invalid base64 configuration format"),!1;let a=new TextDecoder("utf-8").decode(Uint8Array.from(atob(i),x=>x.charCodeAt(0)));if(!a.includes("validUntil=")||!a.includes("&userToken="))return this.#e.error("[ECommerceSearchService.isTokenValid] Missing required parameters in decoded token"),!1;let s=a.match(Xe.UserTokenExtract),u=a.match(Xe.ValidUntilExtract);if(!s||!u)return this.#e.error("[ECommerceSearchService.isTokenValid] Invalid token format - could not extract required fields"),!1;let c=s[1],p=u[1];this.#e.debug(`[ECommerceSearchService.isTokenValid] Extracted token values: validUntil=${p}, userToken=${c}`);let l=Number(p);if(isNaN(l)||l<=0)return this.#e.error(`[ECommerceSearchService.isTokenValid] Invalid timestamp in token: ${p}`),!1;if(!Xe.UUID.test(c))return this.#e.error(`[ECommerceSearchService.isTokenValid] Invalid user key format in token: ${c}`),!1;let f=l*1e3,d=new Date(f),_=new Date;if(isNaN(d.getTime())||isNaN(_.getTime()))return this.#e.error("[ECommerceSearchService.isTokenValid] Invalid date calculation"),!1;let I=_.toISOString()>d.toISOString(),w=e!==c;return I&&this.#e.error(`[ECommerceSearchService.isTokenValid] Token has expired. Valid until: ${d.toISOString()}, Current time: ${_.toISOString()}`),w&&this.#e.error("[ECommerceSearchService.isTokenValid] User key mismatch"),!(I||w)}catch(i){return this.#e.error(`[ECommerceSearchService.isTokenValid] Error validating token: ${i instanceof Error?i.message:"Unknown error"}`),!1}}generateSecuredKey(e){this.createSecuredKey(e).subscribe(n=>{n.data?(this.$searchConfiguration.next(n.data),this.setInLocalStorage(n.data)):this.$searchConfiguration.next({})})}getAutocompleteConfiguration(e){let n=this.languagesService.language();return{searchApiKey:e.createSecuredKey.securedKey,indexName:this.replaceWithLanguage(e,this.PRODUCT_SUGGESTIONS_INDEX_KEY),indexNameTop:this.replaceWithLanguage(e,this.TOP_KEYWORD_SUGGESTIONS_INDEX_KEY),hitsPerPage:e.createSecuredKey.hitsPerPage,searchClient:Lr(this.getApplicationID(e),e.createSecuredKey.securedKey),language:n,productUrl:`${this.productsUrl()}?search=`,paginatorConfig:this.paginatorConfig,productRecord:{Name:"Name",Language:n},topKeyWordRecord:{Name:"objectID"}}}doSearch(e){this.router.navigateByUrl(`${this.productsUrl()}?search=${encodeURIComponent(e)}`)}regenerateToken(){let e=this.userService.userKey(),n=this.getFromLocalStorage();e&&!this.isTokenValid(e,n)&&this.generateSecuredKey(e)}createSecuredKey(e){return this.ecommerceSearchMutation.mutate({variables:{userKey:e}})}replaceWithLanguage(e,n){let i=e.createSecuredKey.localizedIndexes.find(a=>a.key===n),o=this.languagesService.language().replace("-","_").toLowerCase();return i?.value.replace("{0}",o)??""}getApplicationID(e){return new TextDecoder("utf-8").decode(Uint8Array.from(atob(e.createSecuredKey.appId),i=>i.charCodeAt(0)))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var eu=(()=>{class t{constructor(){this.injector=b(dr),this.searchService=b(Xl),this.document=b(_e),this.router=b(Ae),this.productUseCases=b(Zt),this.ngZone=b(Co),this.destroyRef=b(Bt),this.autocomplete=null,Ir(this.searchService.searchPlaceholderText).pipe(Ne(this.destroyRef)).subscribe(e=>{this.autocomplete?.update({placeholder:e})}),Nt(()=>{this.searchService.$searchConfiguration.pipe(ur(Boolean),Ne(this.destroyRef)).subscribe(e=>{let n=this.searchService.getAutocompleteConfiguration(e),i=n.searchClient,o=0;this.autocomplete?.destroy(),this.autocomplete=tr({container:"#ecommerce-search-autocomplete",openOnFocus:!0,insights:!0,detachedMediaQuery:"none",onSubmit:({state:a})=>{this.ngZone.run(()=>{this.router.navigateByUrl(`${n.productUrl}
324${encodeURIComponent(a.query)}`)}),this.productUseCases.getProducts(n.paginatorConfig.first,n.paginatorConfig.rows,a.query).pipe(Ne(this.destroyRef)).subscribe()},getSources:({query:a})=>a?[{sourceId:"productSuggestion",getItems(){return o=0,bn({searchClient:i,queries:[{indexName:n.indexName,params:{query:a,hitsPerPage:n.hitsPerPage}}],transformResponse({hits:s,results:u}){let p=u[0].userData?.map(l=>({hitData:void 0,name:l.renderingContent.redirect.Display,url:l.renderingContent.redirect.url}))||[];return s&&s[0]&&p.push(...s[0].map(l=>({hitData:l,name:l.name,url:void 0}))),p=p.slice(0,n.hitsPerPage),o=p.length,p}})},templates:{item({item:s,components:u,html:c}){return o++,s.url?c`<div class="aa-ItemWrapper">
325                              <a class="aa-ItemLink"
326                                ><div class="aa-ItemContent"><div class="aa-ItemTitle">${s.name}</div></div></a
327                              >
328                            </div>`:c`<div class="aa-ItemWrapper">
329                              <div class="aa-ItemContent">
330                                <div class="aa-ItemContentBody">
331                                  <div class="aa-ItemContentTitle">
332                                    ${u.Highlight({hit:s.hitData,attribute:[n.productRecord.Name,n.productRecord.Language]})}
333                                  </div>
334                                </div>
335                              </div>
336                            </div>`}},onSelect:s=>{if(s.item.hitData){let p=s.item.hitData[n.productRecord.Name][n.productRecord.Language];s.setQuery(p),this.ngZone.run(()=>{this.router.navigateByUrl(`${n.productUrl}${encodeURIComponent(p)}`)}),this.productUseCases.getProducts(n.paginatorConfig.first,n.paginatorConfig.rows,p).pipe(Ne(this.destroyRef)).subscribe()}else{let c=s.item.url;new RegExp("^(http|https)://","i").test(c)?window.open(c):this.router.navigate([c])}}},{sourceId:"querySuggestionsWithQuery",getItems(){return bn({searchClient:i,queries:[{indexName:n.indexNameTop,params:{query:"",hitsPerPage:n.hitsPerPage}}],transformResponse({hits:s}){return o>0?[]:s}})},templates:{item:({item:s,components:u,html:c})=>this.topKeyWordsSuggestionTemplate(c,u,s,n)},onSelect:s=>{let u=s.item[n.topKeyWordRecord.Name];s.setQuery(u),this.onTopKeySuggestionSelect(s.item,n)}}]:[{sourceId:"topSearchSuggestion",getItems(){return bn({searchClient:i,queries:[{indexName:n.indexNameTop,params:{hitsPerPage:n.hitsPerPage}}]})},templates:{item:({item:s,components:u,html:c})=>this.topKeyWordsSuggestionTemplate(c,u,s,n)},onSelect:s=>{let u=s.item[n.topKeyWordRecord.Name];s.setQuery(u),this.onTopKeySuggestionSelect(s.item,n)}}]}),this.autocomplete?.update({placeholder:this.searchService.searchPlaceholderText()}),this.attachEvents()})},{injector:this.injector,phase:Po.Read})}doSearch(){let e=this.document.querySelector(".aa-Input");e!==null&&e.value.length>0&&this.ngZone.run(()=>{this.searchService.doSearch(e.value)})}topKeyWordsSuggestionTemplate(e,n,i,o){return e`<div class="aa-ItemWrapper">
337      <div class="aa-ItemContent">
338        <div class="aa-ItemContentBody">
339          <div class="aa-ItemContentTitle">
340            ${n.Highlight({hit:i,attribute:[o.topKeyWordRecord.Name]})}
341          </div>
342        </div>
343      </div>
344    </div>`}onTopKeySuggestionSelect(e,n){let i=e[n.topKeyWordRecord.Name];this.ngZone.run(()=>{this.router.navigateByUrl(`${n.productUrl}${encodeURIComponent(i)}`)}),this.productUseCases.getProducts(n.paginatorConfig.first,n.paginatorConfig.rows,i).pipe(Ne(this.destroyRef)).subscribe()}attachEvents(){let e=this.document.querySelector(".aa-Input");e&&(e.addEventListener("keyup",()=>this.searchService.regenerateToken()),e.addEventListener("focus",()=>this.searchService.regenerateToken()))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["ppg-ecommerce-search"]],decls:5,vars:0,consts:[[1,"flex"],[1,"flex-grow-1","flex"],["id","ecommerce-search-autocomplete",1,"w-full"],[1,"flex-none","flex"],["icon","pi pi-search",1,"search-button",3,"onClick"]],template:function(n,i){n&1&&(v(0,"div",0)(1,"div",1),D(2,"div",2),y(),v(3,"div",3)(4,"p-button",4),R("onClick",function(){return i.doSearch()}),y()()())},dependencies:[Fe,He,kr],styles:[".search-button[_ngcontent-%COMP%]{z-index:calc(var(--page-header-z-index) + 1)}.search-button[_ngcontent-%COMP%]     .p-button{border-top-left-radius:0;border-bottom-left-radius:0;height:100%}[_nghost-%COMP%]     .aa-InputWrapper{margin-left:12px}[_nghost-%COMP%]     .aa-InputWrapperPrefix{display:none}[_nghost-%COMP%]     .aa-InputWrapperSuffix{order:5}[_nghost-%COMP%]     .aa-Form{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%]     .aa-Form:focus-within{box-shadow:0 0 0 2px var(--aa-color-box-rgb),0 0 0 4px var(--aa-color-box-shadow-rgb);border-color:var(--aa-color-input-border-rgb)}"],changeDetection:0})}}return t})();function tu(t,r){let e;return function(n){return e&&clearTimeout(e),new Promise(i=>{e=setTimeout(()=>i(t(n)),r)})}}
344var Me="colors",$e="products",nt="content",Ke="documents",Hf="Colors",Ff="Products";var Uf="Documents";var rr="total";var Rt="federatedSearch.item",_n="federatedSearch.searchButton",nu="DocumentType",ao={[Me]:Hf,[$e]:Ff,[nt]:"All",[Ke]:Uf};var so=(()=>{class t{transform(e,n){return e?n?e.length<=n?e:`${e.substring(0,n)}...`:e:""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Eo({name:"ellipsisText",type:t,pure:!0})}}return t})();var ru=(()=>{class t{#e=b(_e);focusFirstResultItem(){let e=this.#r()??Array.from(this.#e.querySelectorAll(`[data-test-id="${Rt}"]`)).find(n=>this.#a(n));return e?(e.focus(),!0):!1}handleActivationKeydown(e,n){return e.key!==Ze.ENTER&&e.key!==Ze.SPACE?!1:(e.preventDefault(),n(),!0)}handleAutocompleteItemEnterKeydown(e,n){return e.key!==Ze.ENTER?!1:(e.ctrlKey||e.metaKey||e.shiftKey||(e.preventDefault(),e.stopImmediatePropagation(),e.repeat||n()),!0)}setAutocompleteResultListsRole(e){e.querySelectorAll('ul[role="listbox"]').forEach(n=>{let i=Array.from(n.querySelectorAll('[role="option"]'));i.forEach((o,a)=>{o.setAttribute("aria-posinset",`${a+1}`),o.setAttribute("aria-setsize",`${i.length}`);let u=o.querySelector("a[data-option-label]")?.getAttribute("data-option-label");u&&o.setAttribute("aria-label",u)})})}handleAutocompleteResultTab(e,n){let i=e.currentTarget;e.key!==Ze.TAB||e.shiftKey||!i||!this.#i(i)||this.#n()&&(e.preventDefault(),e.stopPropagation(),n?.setIsOpen(!1))}handleAutocompleteResultEscape(e,n){return e.key!==Ze.ESCAPE?!1:(e.preventDefault(),e.stopPropagation(),n?.setIsOpen(!1),!0)}handleAutocompleteItemArrowNavigation(e,n,i){if(e.key!==Ze.ARROW_DOWN||!i||i.position!==i.total)return;let o=this.#e.querySelector(`[data-test-id="${_n}"][data-source-id="${n}"]`);o&&this.#a(o)&&(e.preventDefault(),e.stopPropagation(),o.focus())}updateAutocompleteItemAccessibleLabel(e,n,i,o){if(!n)return;let a=e.currentTarget;a?.setAttribute("aria-label",i),a?.closest('[role="option"]')?.setAttribute("aria-label",o)}syncActiveItemIdWithFocus(e,n){let i=n.__autocomplete_id;i!==void 0&&e?.setActiveItemId(i)}getAutocompleteItemPosition(e,n,i){let o=e.collections?.find(s=>s.source.sourceId===n),a=o?.items.indexOf(i)??-1;return o&&a>=0?{position:a+1,total:o.items.length}:null}bindAutocompleteInputTabHandler(){let e=this.#e.querySelector('#federated-search-autocomplete input[type="search"]');if(!e)return null;let n=i=>{this.#t(i,e)||i.key!==Ze.TAB||i.shiftKey||e.value.length<1||this.focusFirstResultItem()&&(i.preventDefault(),i.stopImmediatePropagation())};return e.addEventListener("keydown",n,{capture:!0}),()=>{e.removeEventListener("keydown",n,{capture:!0})}}#t(e,n){if(e.key!==Ze.ARROW_DOWN)return!1;let i=this.#r(n),o=i?.dataset.sourceId,a=o?Array.from(this.#e.querySelectorAll(`[data-test-id="${Rt}"][data-source-id="${o}"]`)).filter(u=>this.#a(u)):[];if(!i||!o||a.at(-1)!==i)return!1;let s=this.#e.querySelector(`[data-test-id="${_n}"][data-source-id="${o}"]`);return!s||!this.#a(s)?!1:(e.preventDefault(),e.stopImmediatePropagation(),s.focus(),!0)}#r(e=this.#e.querySelector('#federated-search-autocomplete input[type="search"]')){let n=e?.getAttribute("aria-activedescendant"),o=(n?this.#e.getElementById(n):null)?.querySelector(`[data-test-id="${Rt}"]`);return o&&this.#a(o)?o:null}#i(e){let n=this.#o();return n[n.length-1]===e}#o(){return Array.from(this.#e.querySelectorAll(`[data-test-id="${Rt}"], [data-test-id="${_n}"]`)).filter(e=>this.#a(e))}#n(){let e=this.#e.querySelector('#federated-search-autocomplete input[type="search"]');if(!e)return!1;let n=Array.from(this.#e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(a=>this.#a(a)&&!a.closest(".aa-Panel")),i=n.indexOf(e),o=i>=0?n[i+1]:null;return o?(o.focus(),!0):!1}#a(e){return e.getClientRects().length>0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iu=[{configType:"bodyOnly",configs:[{numberOfColumns:4,maxCharactersBody:102,maxCharactersTitle:0},{numberOfColumns:3,maxCharactersBody:102,maxCharactersTitle:0},{numberOfColumns:2,maxCharactersBody:158,maxCharactersTitle:0},{numberOfColumns:1,maxCharactersBody:158,maxCharactersTitle:0}]},{configType:"titleOnly",configs:[{numberOfColumns:4,maxCharactersTitle:104,maxCharactersBody:0},{numberOfColumns:3,maxCharactersTitle:104,maxCharactersBody:0},{numberOfColumns:2,maxCharactersTitle:200,maxCharactersBody:0},{numberOfColumns:1,maxCharactersTitle:200,maxCharactersBody:0}]},{configType:"titleAndBody",configs:[{numberOfColumns:4,maxCharactersTitle:80,maxCharactersBody:50},{numberOfColumns:3,maxCharactersTitle:80,maxCharactersBody:50},{numberOfColumns:2,maxCharactersTitle:134,maxCharactersBody:85},{numberOfColumns:1,maxCharactersTitle:134,maxCharactersBody:85}]}],ou=[{configType:"bodyOnly",configs:[{numberOfColumns:4,maxCharactersBody:43,maxCharactersTitle:0},{numberOfColumns:3,maxCharactersBody:43,maxCharactersTitle:0},{numberOfColumns:2,maxCharactersBody:91,maxCharactersTitle:0},{numberOfColumns:1,maxCharactersBody:155,maxCharactersTitle:0}]},{configType:"titleOnly",configs:[{numberOfColumns:4,maxCharactersTitle:27,maxCharactersBody:0},{numberOfColumns:3,maxCharactersTitle:27,maxCharactersBody:0},{numberOfColumns:2,maxCharactersTitle:104,maxCharactersBody:0},{numberOfColumns:1,maxCharactersTitle:200,maxCharactersBody:0}]},{configType:"titleAndBody",configs:[{numberOfColumns:4,maxCharactersTitle:48,maxCharactersBody:22},{numberOfColumns:3,maxCharactersTitle:48,maxCharactersBody:22},{numberOfColumns:2,maxCharactersTitle:68,maxCharactersBody:45},{numberOfColumns:1,maxCharactersTitle:48,maxCharactersBody:22}]}],au=[{configType:"bodyOnly",configs:[{numberOfColumns:4,maxCharactersBody:66,maxCharactersTitle:0},{numberOfColumns:3,maxCharactersBody:66,maxCharactersTitle:0},{numberOfColumns:2,maxCharactersBody:66,maxCharactersTitle:0},{numberOfColumns:1,maxCharactersBody:66,maxCharactersTitle:0}]},{configType:"titleOnly",configs:[{numberOfColumns:4,maxCharactersTitle:70,maxCharactersBody:0},{numberOfColumns:3,maxCharactersTitle:70,maxCharactersBody:0},{numberOfColumns:2,maxCharactersTitle:70,maxCharactersBody:0},{numberOfColumns:1,maxCharactersTitle:70,maxCharactersBody:0}]},{configType:"titleAndBody",configs:[{numberOfColumns:4,maxCharactersTitle:53,maxCharactersBody:34},{numberOfColumns:3,maxCharactersTitle:53,maxCharactersBody:34},{numberOfColumns:2,maxCharactersTitle:53,maxCharactersBody:34},{numberOfColumns:1,maxCharactersTitle:53,maxCharactersBody:34}]}];var vn=(function(t){return t.DocumentLanguages="DocumentLanguages",t.DocumentLanguage="DocumentLanguage",t})(vn||{});var ir=(function(t){return t.Language="{language}",t.SiteName="{site}",t})(ir||{});var ci=(()=>{class t{constructor(){this.#e=4,this.#t=1,this.#r=b(Bt),this.#i=b(ye),this.#o=b(ve),this.#n=b(la),this.#a=b(Ho),this.#l=b(Ar),this.#u=b(Mr),this.#p=b(xr),this.#d=b(Ia),this.#s=S(()=>this.#d.currentConfiguration().algolia),this.#b=S(()=>this.#o.getSiteFlag(ie.LeadGenIndexingEnabled)),this.#h=S(()=>this.#u.getSiteFlag(ie.ProductIndexingEnabled)),this.#g=S(()=>this.#u.getSiteFlag(ie.ColorIndexingEnabled)),this.#_=S(()=>this.#o.getSiteFlag(ie.DocumentIndexingEnabled)),this.#f=S(()=>this.#o.getSiteFlag(ie.ColorJourneyColorCodeHidden)),this.#m=S(()=>this.#u.getSiteFlag(ie.AlgoliaDocumentIndexingGroupByLanguage)),this.#v=this.#n.standardCulture,this.#c=S(()=>{let e=this.#n.language();return e?`${e.languageName} (${e.countryName})`:(this.#p.error(`[FederatedSearchService] site language with ${this.#n.languageVariant()} not found for document.`),"")}),this.#y=S(()=>`localization:${this.#n.languageVariant()}`),this.#I=S(()=>`${this.#m()?vn.DocumentLanguages:vn.DocumentLanguage}:${this.#c()}`),this.#S=S(()=>`Language:${this.#v()}`),this.#C=S(()=>this.#o.currentSite()?.algoliaCatalog?.map(e=>`catalog:${e.catalogNameFromAlgolia}`)||[]),this.contentFilters=S(()=>[this.#y(),this.#C()]),this.documentLanguageFilters=S(()=>[this.#S(),this.#I()]),this.productFilters=S(()=>[this.#S()]),this.colorFilters=S(()=>[this.#S()]),this.colorIdDisplay=S(()=>!this.#f()),this.contentIndex=S(()=>this.#b()?this.#s()?.contentIndex:null),this.productIndex=S(()=>this.#h()?this.#s()?.productIndex.replace(ir.SiteName,this.#o.currentSite()?.name?.replace(Xe.OnlyLettersAndDigits,"_")||"").toLowerCase():null),this.documentIndex=S(()=>this.#_()?this.#s()?.documentIndex.replace(ir.SiteName,this.#o.currentSite()?.name?.replace(Xe.OnlyLettersAndDigits,"_")||"").toLowerCase():null),this.colorIndex=S(()=>this.#g()?this.#s()?.colorIndex.replace(ir.SiteName,this.#o.currentSite()?.name?.replace(Xe.OnlyLettersAndDigits,"_")||"").toLowerCase():null),this.cdeUserCookie=S(()=>this.#s()?.cdeUserCookie||""),this.searchClient=S(()=>Lr(this.#s()?.cdeApplicationId||"",this.#s()?.cdeSecuredKey||"")),this.isMobileOrTablet=Ee(this.#a.observe("(max-width: 1279.98px)").pipe(Ne(this.#r),We(e=>e.matches))),this.hitsPerPage=Ee(this.#a.observe("(max-width: 1279.98px)").pipe(Ne(this.#r),We(({matches:e})=>e?this.#t:this.#e)),{initialValue:this.#e}),this.maxCharactersConfiguration=Ee(this.#a.observe(["(min-width: 1280px)","(min-width: 768px)","(max-width: 767.98px)"]).pipe(Ne(this.#r),We(({breakpoints:e})=>e["(min-width: 1280px)"]?iu:e["(min-width: 768px)"]?ou:au))),this.textResources=S(()=>({searchAll:this.#i.getResourceByKey(ee.FEDERATED_SEARCH_SEARCH_ALL),found:this.#i.getResourceByKey(ee.FEDERATED_SEARCH_FOUND),searchPlaceholder:this.#i.getResourceByKey(ee.FEDERATED_SEARCH_PLACEHOLDER),submitButtonTitle:this.#i.getResourceByKey(ee.SEARCH_PAGE_SUBMIT),noResultsMessage:this.#i.getResourceByKey(ee.SEARCH_PAGE_GLOBAL_NO_RESULT_MESSAGE),of:this.#i.getResourceByKey(ee.A11Y_OF)}))}#e;#t;#r;#i;#o;#n;#a;#l;#u;#p;#d;#s;#b;#h;#g;#_;#f;#m;#v;#c;#y;#I;#S;#C;pushSubmitSearchResults(e){this.#l.pushTag({event:Qt.CustomEvent,eventCategory:fa.Search,eventAction:zt.SearchSuggestionUsed,eventLabel:e})}pushLiveSearchResults(e){this.#l.pushTag({event:Qt.CustomEvent,eventAction:zt.ViewSearchResults,search_term:e,search_type:"live_results"})}pushSearchAllResults(e,n){this.#l.pushTag({event:Qt.CustomEvent,eventAction:zt.ViewSearchResults,search_term:e,search_type:"live_results_search_all",search_all_type:n})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var De=(function(t){return t.Content="Content",t.Products="Products",t.Colors="Colors",t.Documents="Documents",t})(De||{});var lu=(()=>{class t{constructor(){this.#e=b(ci),this.#t=b(ve),this.#r=b(ye),this.#i=this.#e.contentIndex,this.#o=this.#e.productIndex,this.#n=this.#e.colorIndex,this.#a=this.#e.documentIndex,this.#l=this.#e.searchClient,this.#u=this.#e.hitsPerPage,this.#p=this.#e.contentFilters,this.#d=this.#e.productFilters,this.#s=this.#e.colorFilters,this.#b=this.#e.documentLanguageFilters,this.#h=S(()=>this.#t.getSiteSettingValueByKey(ie.FederatedSearchColumnsOrder)),this.#g=S(()=>{let e=this.#t.getSiteSettingValueByKey(ie.FederatedSearchDocumentsSearchDocumentTypes);return this.#c(e)}),this.#_=S(()=>[...this.#g(),...this.#b()]),this.#f=S(()=>this.#h().split(";").filter(e=>e)),this.#m={[De.Content]:S(()=>this.createPluginSettings(this.#i(),nt,this.pluginsTextResources().all,this.#p())),[De.Products]:S(()=>this.createPluginSettings(this.#o(),$e,this.pluginsTextResources().products,this.#d())),[De.Colors]:S(()=>this.createPluginSettings(this.#n(),Me,this.pluginsTextResources().colors,this.#s())),[De.Documents]:S(()=>this.createPluginSettings(this.#a(),Ke,this.pluginsTextResources().documents,this.#_(),[vn.DocumentLanguages]))},this.#v=S(()=>[De.Content,De.Products,De.Colors,De.Documents]),this.pluginsTextResources=S(()=>({products:this.#r.getResourceByKey(ee.FEDERATED_SEARCH_PRODUCTS),documents:this.#r.getResourceByKey(ee.FEDERATED_SEARCH_DOCUMENTS),colors:this.#r.getResourceByKey(ee.FEDERATED_SEARCH_COLORS),all:this.#r.getResourceByKey(ee.FEDERATED_SEARCH_ALL)})),this.pluginsSettings=S(()=>{let e=this.#f(),n=e.every(s=>Object.values(De).includes(s)),i=new Set(e).size!==e.length,o=this.mapOrderToPluginSettings(this.#v());return!n||i||!(e.length>=o.length)?o:this.mapOrderToPluginSettings(e)})}#e;#t;#r;#i;#o;#n;#a;#l;#u;#p;#d;#s;#b;#h;#g;#_;#f;#m;#v;mapOrderToPluginSettings(e){return e.map(n=>this.#m[n]?.()).filter(n=>!!n)}createPluginSettings(e,n,i,o,a){return e?z(z({searchClient:this.#l(),sourceId:n,indexName:e,hitsPerPage:this.#u(),header:i},o?{facetFilters:o}:{}),a?{facets:a}:{}):null}#c(e){if(!e)return[];let n=e.split(";").map(i=>
344i.trim()).filter(Boolean);return n.length?[n.map(i=>`${nu}:${i}`)]:[]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cu=(()=>{class t{#e;#t;#r;#i;#o;#n;#a;#l;#u;#p;#d;#s;#b;#h;#g;#_;#f;#m;#v;#c;#y;#I;constructor(){this.searchClickToGlobalSearchPage=we(),this.searchClickToProductPage=we(),this.searchClickToColorsPage=we(),this.searchClickToDocumentResultsPage=we(),this.#e=b(lu),this.#t=b(ru),this.#r=b(Oa),this.#i=b(qt),this.#o=b(wr),this.#n=b(ci),this.#a=b(Ta),this.#l=b(oa),this.#u=b(so),this.#p=b(_e),this.#d=b(Ae),this.#s=b(ea),this.#b=b(na),this.#h=b(Bt),this.#g="/assets/img/federated-search-fallback.png",this.#_=this.#n.cdeUserCookie,this.#f=this.#n.textResources,this.#m=this.#n.colorIdDisplay,this.#v=this.#n.maxCharactersConfiguration,this.#c=null,this.#y=null,this.#I=S(()=>{let e=this.#e.pluginsSettings(),n=this.#n.hitsPerPage(),i=[];return e.forEach(o=>{if(o){let a=fe(z({},o),{hitsPerPage:n});i.push(this.createPlugin(a))}}),i}),this.mobileANDTabletRenderStyle=`
345      gap: var(--p-pds-unit-200);
346      padding: var(--p-pds-unit-400) var(--p-pds-unit-200);
347    `,this.desktopRenderStyle=`
348      gap: var(--p-pds-unit-200);
349      padding: var(--p-pds-unit-400) var(--p-pds-unit-1000);
350    `,this.renderStyle=S(()=>this.#n.isMobileOrTablet()?this.mobileANDTabletRenderStyle:this.desktopRenderStyle),this.autocompleteOptions=S(()=>{let{searchPlaceholder:e,noResultsMessage:n,submitButtonTitle:i,found:o}=this.#f(),a=`
351      color: var(--p-pds-on-surface-neutral-extreme-strong);
352      font-family: inherit;
353      font-size: var(--p-pds-typography-body-small-size);
354      font-style: normal;
355      font-weight: 400;
356      line-height: var(--p-pds-typography-body-small-line-height);
357    `,s=l=>{switch(l){case $e:return"federatedSearch.products";case Me:return"federatedSearch.colors";case nt:return"federatedSearch.content";case Ke:return"federatedSearch.documents";default:return}},u="border-left: 1px solid var(--p-border-neutral-softer);",c=this.renderStyle(),p=new Map(this.#e.pluginsSettings().map(({sourceId:l,header:f})=>[l,f]));return{container:"#federated-search-autocomplete",openOnFocus:!0,shouldPanelOpen:({state:l})=>this.isSearchableQuery(l.query),panelPlacement:"full-width",placeholder:e,detachedMediaQuery:"none",classNames:{form:"flex-row-reverse",input:"pl-3",clearButton:"hidden",panel:"border-noround mt-3"},insights:{insightsInitParams:{userToken:this.#_()}},navigator:{navigate:()=>{},navigateNewTab:({itemUrl:l})=>this.openItemInNewTab(l),navigateNewWindow:({itemUrl:l})=>this.openItemInNewTab(l)},onSubmit:({refresh:l})=>{l()},plugins:this.#I(),translations:{submitButtonTitle:i},renderNoResults:({html:l,state:f,render:d},_)=>{this.isSearchableQuery(f.query)&&f.status===Ca.Idle?d(l`<div class="flex" style="${c}">
358              <div style="${a}" class="w-full" data-test-id="federatedSearch.noResultsForQueryText">
359                ${n} '${f.query}'
360              </div>
361            </div>`,_):d(null,_)},render:({render:l,html:f,elements:d,state:_},I)=>{if(this.isSearchableQuery(_.query)){let w=Object.keys(d).filter(C=>d[C]),x=w.map(C=>`${p.get(C)} (${_.context?.[rr+C]??0} ${o})`).join(", ");l(f`<div>
362              <div class="sr-only" role="status" aria-live="polite" aria-atomic="true">${x}</div>
363              <div class="flex flex-column xl:flex-row" style="${c}">
364                ${w.map((C,E)=>f`<div class="${d[C]?"w-full":"hidden"}" data-test-id="${s(C)}">
365                        ${d[C]}
366                      </div>
367
368                      ${E<w.length-1?f`<p-divider layout="vertical" style="${u}"></p-divider>`:null} `)}
369              </div>
370            </div>`,I),this.setAutocompleteResultListsRole(I)}else l(null,I)}}}),this.navigateToItemDetails=(e,n,i)=>{this.#n.pushLiveSearchResults(e.query),this.#n.pushSubmitSearchResults(ao[n]);let[o,a]=this.getItemNavigationDetails(n,i);this.#s.isAbsoluteUrl(o)||a===lt.BLANK?this.#p.defaultView?.open(o,a,"noopener,noreferrer"):this.#d.navigate([o])},this.getItemDetailsPageUrl=(e,n)=>{switch(e){case $e:{let i=this.#i.getPathByAppRouteFeatureModule(wt.ProductJourneyDetails),o=n?.Slug||`${this.#l.customEncodeURIComponent(n.Name)}/${n.objectID}`;return`${i}/${o}`}case Me:return this.#o.getColorDetailsPath({colorName:n.ColorName,productNumber:n.ProductNumber});case Ke:return n.Url;default:return n.page_url}},Nt(()=>{this.#c=tr(this.autocompleteOptions()),this.bindAutocompleteInputTabHandler()}),xe(()=>{let e=this.autocompleteOptions();this.#c&&(this.#c.destroy(),this.#c=tr(e),this.bindAutocompleteInputTabHandler())}),this.#h.onDestroy(()=>{this.#y?.(),this.#c?.destroy()})}createPlugin({searchClient:e,sourceId:n,indexName:i,hitsPerPage:o,facetFilters:a,facets:s,header:u}){let c=this.#f(),p=this.searchClickToGlobalSearchPage,l=this.searchClickToProductPage,f=this.searchClickToColorsPage,d=this.searchClickToDocumentResultsPage,_=O=>`
371      display: -webkit-box;
372      -webkit-line-clamp: ${O};
373      -webkit-box-orient: vertical;
374      overflow: hidden;
375      overflow-wrap: anywhere;
376    `,I=`
377      font-weight: 700;
378    `,w=`
379      color: var(--p-pds-on-surface-neutral-extreme-strong,  #081520);
380      font-family: inherit;
381      font-size: var(--p-pds-typography-body-medium-size);
382      font-style: normal;
383      font-weight: 500;
384      line-height: var(--p-pds-typography-body-medium-line-height);
385    `,x=`
386      color: var(--p-pds-on-surface-neutral-strongest, #3B4A54);
387      font-family: inherit;
388      font-size: var(--p-pds-typography-body-small-size);
389      font-style: normal;
390      font-weight: 400;
391      line-height: var(--p-pds-typography-body-small-line-height);
392    `,C=(O,V)=>this.#v()?.find(K=>K.configType==O)?.configs?.find(K=>K.numberOfColumns==V),E=O=>{switch(n){case $e:return O.Name;case Me:return O.ColorName;case Ke:return this.#a.formatDocumentTitle(O.DocumentName,O.DocumentCode,O.DocumentType);default:return O.title}},A=(O,V,K)=>{let oe=Y(V,"titleOnly"),me=C(oe,lr(K)),bt=oe=="titleAndBody"?2:0;return E(V)?O`<div style="${w} ${_(bt)}" data-test-id="federatedSearch.itemTitle">
393            ${this.#u.transform(E(V),me?.maxCharactersTitle)}
394          </div>`:null},$=O=>{switch(n){case nt:return O.description;case Me:return this.#m()?O.ColorCode:"";case Ke:return O.DocumentDisplay;default:return""}},U=(O,V,K)=>{let oe=C(Y(V,"bodyOnly"),lr(K));
394return $(V)?O`<div style="${x} ${_(0)}" data-test-id="federatedSearch.itemBody">
395            ${this.#u.transform($(V),oe?.maxCharactersBody)}
396          </div>`:null},Y=(O,V)=>E(O)&&$(O)?"titleAndBody":V,B=(O,V)=>{switch(n){case $e:return H(O,V.ImageURL);case Me:return T(O,V.ColorImage,V.RGB);case nt:return H(O,V.image_url);default:return null}},H=(O,V)=>V?M(O,V):M(O,this.#g),T=(O,V,K)=>V?M(O,V):K?je(O,K):M(O,this.#g),M=(O,V)=>{let K=xa(V,"SmallOptimized54");return O`<img
397        class="h-4rem w-4rem min-w-4rem"
398        style="object-fit: cover"
399        src="${K}"
400        onError="${ce}" />`},ce=O=>{let V=O.target;V.src=this.#g},je=(O,V)=>{let K=this.#r.stringToRgb(V),oe=`${this.#r.rgbToHex(K)}`;return O`<div class="h-4rem w-4rem min-w-4rem" style="background-color: ${oe}"></div>`},or=O=>{O.target.style.color="var(--p-pds-on-surface-primary-strong)"},ar=O=>{O.target.style.color="var(--p-pds-on-surface-primary-medium)"},sr=(O,V,K)=>{let oe=()=>this.handleSearchButtonClick(n,K,V,l,p,f,d,this.#n);return O` <a
401        class="p-button p-button-text gap-2 md:gap-3"
402        tabindex="0"
403        onclick="${oe}"
404        onkeydown="${me=>{this.#t.handleActivationKeydown(me,oe)||this.handleAutocompleteResultEscape(me)||this.handleAutocompleteResultTab(me)}}"
405        onmouseover="${or}"
406        onmouseout="${ar}"
407        aria-label="${u}, ${c.searchAll}"
408        data-source-id="${n}"
409        data-test-id="${_n}">
410        <span class="p-button-label" data-test-id="federatedSearch.searchButtonLabel">${c.searchAll}</span>
411        <i class="pi pi-chevron-right text-xs" />
412      </a>`},mi=(O,V,K,oe)=>{let me=this.getAutocompleteItemPosition(K,n,O),bt=me?.position===1?`${u}, ${E(O)}`:E(O),yn=me?`${bt}, ${me.position} ${c.of} ${me.total}`:bt,uo=bt,fu=Ge=>this.selectAutocompleteItem(Ge,K,n,O,oe);return V`
413        <a
414          class="no-underline"
415          style="color:inherit; min-height:80px;"
416          tabindex="0"
417          role="link"
418          aria-label="${yn}"
419          data-option-label="${uo}"
420          data-source-id="${n}"
421          onfocus=${Ge=>{this.updateAutocompleteItemAccessibleLabel(Ge,me,yn,uo),this.syncActiveItemIdWithFocus(O)}}
422          onkeydown=${Ge=>{this.handleAutocompleteItemEnterKeydown(Ge,()=>fu(Ge))||this.handleAutocompleteResultEscape(Ge)||(this.handleAutocompleteItemArrowNavigation(Ge,n,me),this.handleAutocompleteResultTab(Ge))}}
423          data-test-id="${Rt}">
424          <div class="flex gap-3 m-2">
425            ${B(V,O)}
426            <div class="flex flex-column justify-content-center gap-1">
427              ${A(V,O,K)} ${U(V,O,K)}
428            </div>
429          </div>
430        </a>
431      `},pi=tu(O=>Promise.resolve(O),300),lr=O=>{let V=qe(O,nt)?1:0,K=qe(O,Me)?1:0,oe=qe(O,$e)?1:0;return V+K+oe},qe=(O,V)=>O.context[rr+V];return{getSources:({query:O,setIsOpen:V})=>pi([{sourceId:n,getItems:({setContext:K})=>{let oe=this.getEmptyQueryItems(O,n,K);return oe||bn({searchClient:e,queries:[{indexName:i,params:z({query:O,hitsPerPage:o,facetFilters:a},s?{facets:s}:{})}],transformResponse({hits:me,results:bt}){let yn=bt[0];return K({[rr+n]:yn.nbHits}),me}})},getItemUrl:({item:K})=>this.getItemDetailsPageUrl(n,K),templates:{header({html:K,state:oe}){return K`
432                  <div class="flex align-items-center justify-content-between" data-test-id="federatedSearch.header">
433                    <h6 style="${I}" class="p-2 m-1" data-test-id="federatedSearch.headerLabel">
434                      ${u} (${qe(oe,n)} ${c.found})
435                    </h6>
436                    <div class="block xl:hidden">${sr(K,V,O)}</div>
437                  </div>
438                `},item({item:K,html:oe,state:me}){return mi(K,oe,me,V)},footer({html:K}){return K` <div class="py-3 hidden xl:block" data-test-id="federatedSearch.footer">
439                  ${sr(K,V,O)}
440                </div>`}},onSelect:({state:K,item:oe})=>{V(!1),this.navigateToItemDetails(K,n,oe)}}])}}handleSearchButtonClick(e,n,i,o,a,s,u,c){switch(e){case $e:o.emit(n);break;case nt:a.emit(n);break;case Me:s.emit(n);break;case Ke:u.emit(n);break;default:break}i(!1);let p=ao[e];c.pushSearchAllResults(n,p)}openItemInNewTab(e){this.#p.defaultView?.open(e,"_blank","noopener")}selectAutocompleteItem(e,n,i,o,a){e?.stopPropagation(),a(!1),this.navigateToItemDetails(n,i,o)}handleAutocompleteItemEnterKeydown(e,n){return this.#t.handleAutocompleteItemEnterKeydown(e,n)}setAutocompleteResultListsRole(e){this.#t.setAutocompleteResultListsRole(e)}syncActiveItemIdWithFocus(e){this.#t.syncActiveItemIdWithFocus(this.#c,e)}handleAutocompleteResultTab(e){this.#t.handleAutocompleteResultTab(e,this.#c)}isSearchableQuery(e){return!!e&&e.trim().length>=1}getEmptyQueryItems(e,n,i){return this.isSearchableQuery(e)?null:(i({[rr+n]:0}),Promise.resolve([]))}handleAutocompleteResultEscape(e){return this.#t.handleAutocompleteResultEscape(e,this.#c)}handleAutocompleteItemArrowNavigation(e,n,i){this.#t.handleAutocompleteItemArrowNavigation(e,n,i)}updateAutocompleteItemAccessibleLabel(e,n,i,o){this.#t.updateAutocompleteItemAccessibleLabel(e,n,i,o)}getAutocompleteItemPosition(e,n,i){return this.#t.getAutocompleteItemPosition(e,n,i)}
440bindAutocompleteInputTabHandler(){this.#y?.(),this.#y=this.#t.bindAutocompleteInputTabHandler()}getItemNavigationDetails(e,n){let i=this.getItemDetailsPageUrl(e,n)??"",o=this.#s.isAbsoluteUrl(i)&&this.#b.isCurrentSiteDomainUrl(i)?new URL(i).pathname:i,a=e===Ke||this.#s.isAbsoluteUrl(o)?lt.BLANK:lt.SELF;return[o,a]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["ppg-federated-search"]],outputs:{searchClickToGlobalSearchPage:"searchClickToGlobalSearchPage",searchClickToProductPage:"searchClickToProductPage",searchClickToColorsPage:"searchClickToColorsPage",searchClickToDocumentResultsPage:"searchClickToDocumentResultsPage"},features:[Vt([so])],decls:1,vars:0,consts:[["id","federated-search-autocomplete","data-test-id","federatedSearch.container"]],template:function(n,i){n&1&&D(0,"div",0)},dependencies:[Pe,Ue],styles:["[_nghost-%COMP%]  .aa-SubmitIcon{color:var(--p-pds-on-surface-neutral-medium)}[_nghost-%COMP%]  .aa-Form:focus-within{border-color:unset;box-shadow:unset}"],changeDetection:0})}}return t})();var Kf=(t,r,e)=>[t,r,e],qf=(t,r,e,n,i,o)=>({hidden:t,"md:inline-flex":r,"inline-flex":e,"md:mx-0":n,"ml-auto":i,"mr-0":o}),Gf=(t,r)=>({"hidden lg:block":t,block:r});function Wf(t,r){if(t&1&&(v(0,"a",7),te(1,"lowercase"),te(2,"replace"),v(3,"p-button",8),re(4),y()()),t&2){let e=m().$implicit,n=m(3);h("href",n.getHeaderSidebarLinkMenuItemUrl(e),ge)("target",e.data.target),j("data-test-id","pdsHeader.utilityBar.link."+Oe(2,8,be(1,6,e==null||e.data==null?null:e.data.title)," ","-")),g(3),h("text",!0)("severity",n.utilityButtonSeverity()),g(),ue(e==null||e.data==null?null:e.data.title)}}function zf(t,r){if(t&1){let e=F();v(0,"p-button",10),te(1,"lowercase"),te(2,"replace"),R("onClick",function(){k(e);let i=m().$implicit,o=m(3);return L(o.utilityMenuItemClick(i))}),re(3),y()}if(t&2){let e=m().$implicit,n=m(3);h("text",!0)("severity",n.utilityButtonSeverity()),j("data-test-id","pdsHeader.utilityBar.button."+Oe(2,6,be(1,4,e==null||e.data==null?null:e.data.title)," ","-")),g(3),ue(e==null||e.data==null?null:e.data.title)}}function Qf(t,r){t&1&&D(0,"p-divider",9)}function Yf(t,r){if(t&1&&P(0,Wf,5,12,"a",7)(1,zf,4,10,"p-button",8)(2,Qf,1,0,"p-divider",9),t&2){let e=r.$implicit,n=r.$index,i=r.$count,o=m(3);G(o.isHeaderSidebarLinkMenuItem(e)?0:1),g(2),G(n!==i-1?2:-1)}}function Jf(t,r){if(t&1&&(v(0,"div",6),Ht(1,Yf,3,2,null,null,gr),y()),t&2){let e=r.$implicit;Qe("max-w-max justify-content-"+e.position),h("ngClass",Mo(4,qf,!e.areDefault,!e.areDefault,e.areDefault,e.areDefault,e.areDefault,e.areDefault)),j("data-test-id","pdsHeader.utilityBar."+e.position),g(),Ft(e.items)}}function Zf(t,r){if(t&1&&(v(0,"div",1),Ht(1,Jf,3,11,"div",5,gr),y()),t&2){let e=r;g(),Ft(Lo(0,Kf,e.topLeft,e.topCenter,e.topRight))}}function Xf(t,r){if(t&1){let e=F();v(0,"ppg-federated-search",12),R("searchClickToGlobalSearchPage",function(i){k(e);let o=m(2);return L(o.headerService.navigateToGlobalSearchPage(i))})("searchClickToProductPage",function(i){k(e);let o=m(2);return L(o.headerService.navigateToProductPage(i))})("searchClickToColorsPage",function(i){k(e);let o=m(2);return L(o.headerService.navigateToColorPage(i))})("searchClickToDocumentResultsPage",function(i){k(e);let o=m(2);return L(o.headerService.navigateToDocumentResultsPage(i))}),y()}}function eh(t,r){t&1&&D(0,"ppg-ecommerce-search")}function th(t,r){if(t&1){let e=F();v(0,"button",17),R("click",function(){k(e),m();let i=Z(2);return L(i.value="")}),D(1,"pds-icon",18),y()}}function nh(t,r){if(t&1){let e=F();v(0,"p-inputgroup",11)(1,"input",13,0),R("keyup.enter",function(){k(e);let i=Z(2),o=m(2);return L(o.handleNavigateToGlobalSearchPage(i.value))}),y(),P(3,th,2,0,"button",14),v(4,"button",15),R("click",function(){k(e);let i=Z(2),o=m(2);return L(o.handleNavigateToGlobalSearchPage(i.value))}),D(5,"pds-icon",16),y()()}if(t&2){let e=Z(2),n=m(2);g(),h("placeholder",n.headerService.textResources().searchPlaceholder),g(2),G(e.value?3:-1)}}function rh(t,r){if(t&1&&(v(0,"pds-search",3),P(1,Xf,1,0,"ppg-federated-search")(2,eh,1,0,"ppg-ecommerce-search")(3,nh,6,2,"p-inputgroup",11),y()),t&2){let e=m();g(),G(e.isFederatedSearchEnabled()?1:e.isEComSearchAvailable()?2:e.isContentSearchAvailable()?3:-1)}}function ih(t,r){if(t&1&&D(0,"p-badge",22),t&2){let e=m(4);h("value",e.cartBadge()),j("data-test-id","header.utilityMenuItem.cartBadge")}}function oh(t,r){if(t&1&&(v(0,"div"),D(1,"ppg-image",21),P(2,ih,1,2,"p-badge",22),y()),t&2){let e=m().$implicit,n=m(2);g(),h("url",e.data.iconUrl)("isResponsive",!1)("description",e==null||e.data==null?null:e.data.title),g(),G((e==null?null:e.type)===n.cartType&&n.cartBadge()?2:-1)}}function ah(t,r){if(t&1){let e=F();v(0,"p-button",20),te(1,"lowercase"),te(2,"replace"),R("onClick",function(){let i=k(e).$implicit,o=m(2);return L(o.utilityMenuItemClick(i))}),P(3,oh,3,4,"div"),v(4,"span",6),te(5,"lowercase"),te(6,"replace"),re(7),y()()}if(t&2){let e=r.$implicit;h("text",!0)("severity","neutral"),j("data-test-id","header.utilityMenuItem."+Oe(2,9,be(1,7,e==null||e.data==null?null:e.data.title)," ","-")),g(3),G(!(e==null||e.data==null)&&e.data.iconUrl?3:-1),g(),h("ngClass",$t(19,Gf,e==null||e.data==null?null:e.data.iconUrl,!(!(e==null||e.data==null)&&e.data.iconUrl))),j("data-test-id","header.utilityMenuItem.text."+Oe(6,15,be(5,13,e==null||e.data==null?null:e.data.title)," ","-")),g(3),ue(e==null||e.data==null?null:e.data.title)}}function sh(t,r){t&1&&(v(0,"div",4),Ht(1,ah,8,22,"p-button",19,gr),y()),t&2&&(g(),Ft(r.items))}var PC=(()=>{class t{#e;constructor(){this.currentSiteState=b(ve),this.router=b(Ae),this.document=b(_e),this.sidebarDataService=b(en),this.utilityMenuItemsDataService=b(Na),this.headerService=b(pt),this.urlResolverService=b(Or),this.cartType=Kt.CART,this.#e=b(Ar),this.cartItemsTotalQuantity=N(0),this.cartBadge=S(()=>{let e=this.cartItemsTotalQuantity();return e>0?`${e}`:""}),this.isAlgoliaActive=S(()=>this.currentSiteState.getSiteFlag(ie.AlgoliaIsActive)),this.isFederatedSearchEnabled=S(()=>this.currentSiteState.getSiteFlag(ie.FederatedSearchIsEnabled)),this.isEComSearchAvailable=this.headerService.isAuthorizedEcommerceUser,this.isContentSearchAvailable=S(()=>!this.currentSiteState.isECommerceEnabled()&&this.isAlgoliaActive()),this.isSearchAvailable=S(()=>this.isEComSearchAvailable()||this.isContentSearchAvailable()||this.isFederatedSearchEnabled()),this.menuItems=S(()=>this.headerService.headerNavItems().map(this.mapToMenuItem.bind(this))),this.utilityMenuItems=S(()=>this.utilityMenuItemsDataService.utilityMenuItems()),this.utilityButtonSeverity=S(()=>this.currentSiteState.getSiteSettingValueByKey(ie.BrandingHeaderUtilityActionsButtonSeverity)
440),xe(()=>{let e=[...this.utilityMenuItems().topLeft.items,...this.utilityMenuItems().topCenter.items,...this.utilityMenuItems().topRight.items],n=this.utilityMenuItems().bottomRight.items;this.sidebarDataService.setUtilityItems(n,e)})}openSideBar(e){this.sidebarDataService.openSidebar(e)}utilityMenuItemClick(e){if(e.view===ne.SUB_MENU_ITEM){this.sidebarDataService.handleItemClick(e);return}if(this.isHeaderSidebarLinkMenuItem(e)){if(!this.isMenuItemDataWithRouterUrl(e.data)){this.document.defaultView?.open(e.data.url,e.data.target);return}e.data.target===lt.SELF?this.router.navigateByUrl(e.data.routerLink):this.document.defaultView?.open(e.data.routerLink,"_blank")}}handleNavigateToGlobalSearchPage(e){this.pushSubmitNavigationToSearchResultsPageGTMTag(e),this.headerService.navigateToGlobalSearchPage(e)}isMenuItemDataWithRouterUrl(e){return e.routerLink!==void 0}isHeaderSidebarLinkMenuItem(e){return e.view===ne.LINK_ITEM}getHeaderSidebarLinkMenuItemUrl(e){return this.isMenuItemDataWithRouterUrl(e.data)?e.data.routerLink:e.data.url}mapToMenuItem(e){let n={label:e.title,codename:e.codename};return e.children?.length?fe(z({},n),{command:()=>this.openSideBar(e)}):fe(z(z({},n),this.urlResolverService.normalizeUrl(e.url)),{target:e.target})}pushSubmitNavigationToSearchResultsPageGTMTag(e){this.#e.pushTag({event:Qt.CustomEvent,eventAction:zt.ViewSearchResults,search_term:e,search_type:"standard"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["ppg-header"]],inputs:{cartItemsTotalQuantity:[1,"cartItemsTotalQuantity"]},decls:6,vars:11,consts:[["searchInput",""],[1,"w-full","flex","flex-row","justify-content-between"],[3,"onLogoClick","menuToggle","onIndustryNameClick","tabMenuVariant","logoSrc","logoAltText","industryName","showProfile","showFavorites","showCart","menuItems"],["search",""],["iconsSlot",""],[3,"class","ngClass"],[3,"ngClass"],[3,"href","target"],[3,"text","severity"],["layout","vertical",1,"my-1"],[3,"onClick","text","severity"],[1,"search-input-group","relative","ml-auto"],[3,"searchClickToGlobalSearchPage","searchClickToProductPage","searchClickToColorsPage","searchClickToDocumentResultsPage"],["id","header-search-input","type","text","pInputText","",3,"keyup.enter","placeholder"],["id","header-search-clear-button","type","button",1,"clear-search-button","absolute","z-1","cursor-pointer"],["type","button","pButton","",1,"h-full",3,"click"],["name","pdsSearchOutline","ariaLabel","Search"],["id","header-search-clear-button","type","button",1,"clear-search-button","absolute","z-1","cursor-pointer",3,"click"],["name","pdsCloseOutline","ariaLabel","Clear search"],["styleClass","inline-flex flex-wrap align-items-center justify-content-center gap-1",3,"text","severity"],["styleClass","inline-flex flex-wrap align-items-center justify-content-center gap-1",3,"onClick","text","severity"],["width","auto","height","auto",3,"url","isResponsive","description"],["styleClass","m-0",1,"cart-badge","m-0",3,"value"]],template:function(n,i){if(n&1&&(v(0,"pds-header")(1,"pds-utility-bar"),P(2,Zf,3,4,"div",1),y(),v(3,"pds-header-bar",2),R("onLogoClick",function(){return i.headerService.navigateToRootPage()})("menuToggle",function(){return i.openSideBar()})("onIndustryNameClick",function(){return i.headerService.navigateToSiteHubPage()}),P(4,rh,4,1,"pds-search",3)(5,sh,3,0,"div",4),y()()),n&2){let o,a;g(2),G((o=i.utilityMenuItems())?2:-1,o),g(),h("tabMenuVariant",i.headerService.tabMenuVariant())("logoSrc",i.headerService.headerLogoSrc()||"")("logoAltText",i.headerService.headerAltText()||"PPG Logo")("industryName",i.headerService.industryName())("showProfile",!1)("showFavorites",!1)("showCart",!1)("menuItems",i.menuItems()),g(),G(i.isSearchAvailable()?4:-1),g(),G((a=(a=i.utilityMenuItems())==null?null:a.bottomRight)?5:-1,a)}},dependencies:[Ue,mt,va,_a,Fe,Er,He,kr,Sa,qa,ct,Ha,Ga,Wa,eu,cu,It,Ea,et,Yt,vr,Pr],styles:["[_nghost-%COMP%]     .nav-item-sub-menu-icon{font-size:var(--font-size-m)}.search-icon[_ngcontent-%COMP%]{height:1.5rem;fill:var(--color-neutral-00)}.clear-search-button[_ngcontent-%COMP%]{right:67px;top:8px;
440fill:var(--color-neutral-50);background:none;border:none;height:1.5rem;width:1.5rem}.search-input-group[_ngcontent-%COMP%]{max-width:560px}.header-bar-logo-link[_ngcontent-%COMP%]{height:48px}.cart-badge[_ngcontent-%COMP%]{display:block;position:absolute;top:-5px;left:7px}"],changeDetection:0})}}return t})();var lh=["contentRef"],uh=["*"];function ch(t,r){if(t&1){let e=F();v(0,"img",11),R("click",function(i){k(e);let o=m(2);return L(o.onLogoClick(i))}),y()}if(t&2){let e=m(2);h("src",e.logoSrc(),ge)("alt",e.logoAltText())}}function mh(t,r){if(t&1&&(v(0,"span",12),re(1),y(),D(2,"pds-icon",13)),t&2){let e=m(2);g(),ue(e.closeButtonAriaLabel()),g(),h("name",e.closeButtonIcon())}}function ph(t,r){if(t&1){let e=F();v(0,"nav",5)(1,"div",6),P(2,ch,1,2,"img",7),v(3,"p-button",8),R("click",function(){k(e),m();let i=Z(1);return L(i.hide())}),P(4,mh,3,2,"ng-template",null,2,X),y()(),D(6,"p-divider",9),v(7,"ul",10,3),Ce(9),y()()}if(t&2){let e=m();h("pFocusTrapDisabled",!e.visible()),j("aria-label",e.ariaLabelledBy()?null:e.ariaLabel())("aria-labelledby",e.ariaLabelledBy()),g(2),G(e.logoSrc()?2:-1),g(),h("styleClass",e.closeButtonStyleClass())("buttonProps",e.closeButtonProps())("variant",e.closeButtonVariant())("size",e.closeButtonSize())("severity",e.closeButtonSeverity())}}var mu=(()=>{class t{constructor(){this.document=b(_e),this.lastFocusedElement=null,this.contentRef=Cn("contentRef"),this.visible=To(!1),this.drawerId=N("header-menu-drawer"),this.logoSrc=N(""),this.logoAltText=N(""),this.role=N("navigation"),this.ariaLabel=N("Navigation menu"),this.ariaLabelledBy=N(void 0),this.badgeSeverity=N("primary"),this.closeButtonProps=N(void 0),this.closeButtonSeverity=N("white"),this.closeButtonVariant=N("text"),this.closeButtonSize=N(void 0),this.closeButtonStyleClass=N(""),this.closeButtonAriaLabel=N("Close navigation menu"),this.closeButtonIcon=N("pdsCloseOutline"),this.logoClick=we(),this.show=we(),this.hide=we(),this.visibleChange=we()}onDrawerShow(e){this.lastFocusedElement=this.getCurrentFocusableElement(),this.moveFocusIntoMenu(),this.show.emit(e)}onDrawerHide(e){this.restoreFocusToLastElement(),this.hide.emit(e)}onVisibleChange(e){this.visible.set(e),this.visibleChange.emit(e)}
440onLogoClick(e){this.logoClick.emit(e)}getCurrentFocusableElement(){let e=this.document.activeElement;return!(e instanceof HTMLElement)||e===this.document.body?null:e}restoreFocusToLastElement(){let e=this.lastFocusedElement;if(!e||!e.isConnected){this.lastFocusedElement=null;return}requestAnimationFrame(()=>{requestAnimationFrame(()=>e.focus())}),this.lastFocusedElement=null}moveFocusIntoMenu(){requestAnimationFrame(()=>{let e=this.findFirstInteractiveElement();if(e){e.focus();return}this.findCloseButtonElement()?.focus()})}findFirstInteractiveElement(){let e=this.contentRef()?.nativeElement;return e?e.querySelector('button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])'):null}findCloseButtonElement(){return this.document.querySelector('[data-test-id="header-menu.close-button"] button, [data-test-id="header-menu.close-button"]')}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["pds-header-menu"]],viewQuery:function(n,i){n&1&&Ut(i.contentRef,lh,5),n&2&&_r()},inputs:{visible:[1,"visible"],drawerId:[1,"drawerId"],logoSrc:[1,"logoSrc"],logoAltText:[1,"logoAltText"],role:[1,"role"],ariaLabel:[1,"ariaLabel"],ariaLabelledBy:[1,"ariaLabelledBy"],badgeSeverity:[1,"badgeSeverity"],closeButtonProps:[1,"closeButtonProps"],closeButtonSeverity:[1,"closeButtonSeverity"],closeButtonVariant:[1,"closeButtonVariant"],closeButtonSize:[1,"closeButtonSize"],closeButtonStyleClass:[1,"closeButtonStyleClass"],closeButtonAriaLabel:[1,"closeButtonAriaLabel"],closeButtonIcon:[1,"closeButtonIcon"]},outputs:{visible:"visibleChange",logoClick:"logoClick",show:"show",hide:"hide",visibleChange:"visibleChange"},ngContentSelectors:uh,decls:4,vars:8,consts:[["drawerRef",""],["headless",""],["icon",""],["contentRef",""],["data-test-id","header-menu.sidebar",3,"onShow","onHide","visibleChange","id","visible","closable","ariaCloseLabel"],["role","navigation","pFocusTrap","",1,"pds-header-menu",3,"pFocusTrapDisabled"],[1,"pds-header-menu-header-container"],["data-test-id","header-menu.logo","height","46",3,"src","alt"],["data-test-id","header-menu.close-button",1,"pds-header-menu-close-button",3,"click","styleClass","buttonProps","variant","size","severity"],[1,"pds-menu-header-divider"],["role","list",1,"pds-header-menu-content"],["data-test-id","header-menu.logo","height","46",3,"click","src","alt"],[1,"sr-only"],[3,"name"]],template:function(n,i){if(n&1){let o=F();Te(),v(0,"p-drawer",4,0),R("onShow",function(s){return k(o),L(i.onDrawerShow(s))})("onHide",function(s){return k(o),L(i.onDrawerHide(s))})("visibleChange",function(s){return k(o),L(i.onVisibleChange(s))}),P(2,ph,10,9,"ng-template",null,1,X),y()}n&2&&(h("id",i.drawerId())("visible",i.visible())("closable",!0)("ariaCloseLabel",i.closeButtonAriaLabel()),j("role",i.role())("aria-label",i.ariaLabel())("aria-labelledby",i.ariaLabelledBy())("aria-modal","true"))},dependencies:[Pe,La,ka,Ue,mt,Fe,He,ba,ga,ct],encapsulation:2})}}return t})();var dh=["pds-header-menu-item",""];function fh(t,r){t&1&&le(0)}function hh(t,r){if(t&1){let e=F();v(0,"a",5),R("keydown.space",function(i){k(e);let o=m(2);return L(o.onMenuItemKeyActivate(i))}),P(1,fh,1,0,"ng-container",6),y()}if(t&2){m();let e=Z(4),n=m();rt("selected",n.selected()),h("href",n.itemUrl(),ge)("target",n.itemTarget()),j("data-test-id",n.codename()?"header-menu-item.link."+n.codename():null)("rel",n.isExternalTarget()?"noopener noreferrer":null)("aria-current",n.ariaCurrent()),g(),h("ngTemplateOutlet",e)}}function gh(t,r){t&1&&le(0)}function bh(t,r){if(t&1){let e=F();v(0,"a",7),R("keydown.space",function(i){k(e);let o=m(2);return L(o.onMenuItemKeyActivate(i))}),P(1,gh,1,0,"ng-container",6),y()}if(t&2){m();let e=Z(4),n=m();rt("selected",n.selected()),h("routerLink",n.itemRouterLink())("queryParams",n.queryParams())("queryParamsHandling",n.queryParamsHandling())("target",n.itemTarget()),j("data-test-id",n.codename()?"header-menu-item.link."+n.codename():null)("aria-current",n.ariaCurrent()),g(),h("ngTemplateOutlet",e)}}function _h(t,r){t&1&&le(0)}function vh(t,r){if(t&1){let e=F();v(0,"button",8),R("click",function(i){k(e);let o=m(2);return L(o.onMenuItemClick(i))}),P(1,_h,1,0,"ng-container",6),y()}if(t&2){m();let e=Z(4),n=m();rt("selected",n.selected()),j("data-test-id",n.codename()?"header-menu-item.click-event."+n.codename():null),g(),h("ngTemplateOutlet",e)}}function yh(t,r){if(t&1&&D(0,"pds-icon",10),t&2){let e=m(3);h("name",e.icon())}}function Ih(t,r){t&1&&(v(0,"i",16),D(1,"pds-icon",17),y())}function Sh(t,r){if(t&1&&(v(0,"span",13)(1,"span",14),re(2),y(),v(3,"span",15),re(4),y()(),P(5,Ih,2,0,"i",16)),t&2){let e,n=m(3);g(2),ue(n.itemLabel()),g(),j("lang",(e=n.itemSubLabelLang())!=null&&e.length?n.itemSubLabelLang():null),g(),ue(n.itemSubLabel()),g(),G(n.showExternalLinkIcon()?5:-1)}}function Ch(t,r){if(t&1&&(v(0,"span",18),re(1),y()),t&2){let e=m(4);g(),ue(e.ariaLabel())}}function xh(t,r){t&1&&(v(0,"i",16),D(1,"pds-icon",17),y())}function Ph(t,r){if(t&1&&(v(0,"span",14),re(1),y(),P(2,Ch,2,1,"span",18)(3,xh,2,0,"i",16)),t&2){let e=m(3);j("aria-hidden",!!e.ariaLabel().length),g(),it(" ",e.itemLabel()," "),g(),G(e.ariaLabel().length>0?2:-1),g(),G(e.showExternalLinkIcon()?3:-1)}}function wh(t,r){if(t&1&&(v(0,"span",18),re(1),y()),t&2){let e=m(4);g(),it(", ",e.badgeAriaLabel(),"")}}function Th(t,r){if(t&1&&(v(0,"span",18),re(1),y()),t&2){let e=m(4);g(),it("with ",e.badgeValue()," notification")}}function Oh(t,r){if(t&1&&(P(0,wh,2,1,"span",18)(1,Th,2,1,"span",18),D(2,"p-badge",19)),t&2){let e=m(3);G(e.badgeAriaLabel().length>0?0:1),g(2),h("value",e.badgeValue())("severity",e.badgeSeverity())}}function Eh(t,r){t&1&&(v(0,"i",12),D(1,"pds-icon",20),y())}function Ah(t,r){if(t&1&&(v(0,"i",9),P(1,yh,1,1,"pds-icon",10),y(),v(2,"div",11),P(3,Sh,6,4)(4,Ph,4,4),y(),P(5,Oh,3,3)(6,Eh,2,0,"i",12)),t&2){let e=m(2);g(),G(e.icon()?1:-1),g(),rt("pds-header-menu-item-multiline",e.itemSubLabel()),g(),G(e.itemSubLabel()?3:4),g(2),G(e.badgeValue()?5:-1),g(),G(e.showChildItemIcon()?6:-1)}}function kh(t,r){if(t&1&&P(0,hh,2,8,"a",2)(1,bh,2,9,"a",3)(2,vh,2,4,"button",4)(3,Ah,7,6,"ng-template",null,0,X),t&2){let e=m();
440G(e.itemUrl()&&!e.itemRouterLink()?0:e.itemRouterLink()&&!e.itemUrl()?1:e.isClickEventItem()?2:-1)}}function Lh(t,r){t&1&&le(0)}function Mh(t,r){if(t&1){let e=F();v(0,"a",25),R("keydown.space",function(i){k(e);let o=m(2);return L(o.onMenuItemKeyActivate(i))}),P(1,Lh,1,0,"ng-container",6),y()}if(t&2){m();let e=Z(5),n=m();rt("selected",n.selected()),h("href",n.itemUrl(),ge)("target",n.itemTarget()),j("data-test-id",n.codename()?"header-menu-item.link."+n.codename():null)("rel",n.isExternalTarget()?"noopener noreferrer":null)("aria-current",n.ariaCurrent()),g(),h("ngTemplateOutlet",e)}}function Dh(t,r){t&1&&le(0)}function jh(t,r){if(t&1){let e=F();v(0,"a",26),R("keydown.space",function(i){k(e);let o=m(2);return L(o.onMenuItemKeyActivate(i))}),P(1,Dh,1,0,"ng-container",6),y()}if(t&2){m();let e=Z(5),n=m();rt("selected",n.selected()),h("routerLink",n.itemRouterLink())("queryParams",n.queryParams())("queryParamsHandling",n.queryParamsHandling())("target",n.itemTarget()),j("data-test-id",n.codename()?"header-menu-item.link."+n.codename():null)("aria-current",n.ariaCurrent()),g(),h("ngTemplateOutlet",e)}}function Rh(t,r){t&1&&le(0)}function Bh(t,r){if(t&1){let e=F();v(0,"button",27),R("click",function(i){k(e);let o=m(2);return L(o.onMenuItemClick(i))}),P(1,Rh,1,0,"ng-container",6),y()}if(t&2){m();let e=Z(5),n=m();rt("selected",n.selected()),j("data-test-id",n.codename()?"header-menu-item.click-event."+n.codename():null),g(),h("ngTemplateOutlet",e)}}function Nh(t,r){t&1&&le(0)}function Hh(t,r){if(t&1&&(v(0,"div",24),P(1,Nh,1,0,"ng-container",6),y()),t&2){m();let e=Z(5),n=m();j("data-test-id",n.codename()?"header-menu-item.title."+n.codename():null),g(),h("ngTemplateOutlet",e)}}function Fh(t,r){t&1&&(v(0,"i",16),D(1,"pds-icon",17),y())}function Uh(t,r){t&1&&(v(0,"div",29),D(1,"pds-icon",20),y())}function Vh(t,r){if(t&1&&(v(0,"div",28)(1,"span",14),re(2),y(),P(3,Fh,2,0,"i",16),y(),P(4,Uh,2,0,"div",29)),t&2){let e=m(2);g(2),ue(e.itemLabel()),g(),G(e.showExternalLinkIcon()?3:-1),g(),G(e.showChildItemIcon()?4:-1)}}function $h(t,r){if(t&1&&P(0,Mh,2,8,"a",21)(1,jh,2,9,"a",22)(2,Bh,2,4,"button",23)(3,Hh,2,2,"div",24)(4,Vh,5,3,"ng-template",null,1,X),t&2){let e=m();G(e.itemUrl()&&!e.itemRouterLink()?0:e.itemRouterLink()&&!e.itemUrl()?1:e.isClickEventItem()?2:3)}}var pu=(()=>{class t{constructor(){this.icon=N(void 0),this.variant=N("default"),this.badgeValue=N(""),this.badgeSeverity=N("primary"),this.badgeAriaLabel=N(""),this.ariaLabel=N(""),this.itemLabel=N(""),this.itemSubLabel=N(""),this.itemSubLabelLang=N(void 0),this.itemUrl=N(""),this.itemTarget=N(""),this.itemRouterLink=N(""),this.showExternalLinkIcon=N(!1),this.queryParams=N({}),this.queryParamsHandling=N(""),this.showChildItemIcon=N(!1),this.isClickEventItem=N(!1),this.selected=N(!1),this.codename=N(""),this.menuItemClick=we(),this.isNotClickable=S(()=>!this.itemUrl()&&!this.itemRouterLink()&&!this.isClickEventItem())}onMenuItemClick(e){this.menuItemClick.emit(e)}onMenuItemKeyActivate(e){e.preventDefault(),e.stopPropagation(),e.currentTarget.click()}isExternalTarget(){return this.itemTarget()==="_blank"}ariaCurrent(){return!this.selected()||!this.itemUrl()&&!this.itemRouterLink()?null:"page"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["li","pds-header-menu-item",""]],hostVars:2,hostBindings:function(n,i){n&2&&j("data-test-id",i.codename()?"header-menu-item."+i.codename():null)("aria-hidden",i.isNotClickable())},inputs:{icon:[1,"icon"],variant:[1,"variant"],badgeValue:[1,"badgeValue"],badgeSeverity:[1,"badgeSeverity"],badgeAriaLabel:[1,"badgeAriaLabel"],ariaLabel:[1,"ariaLabel"],itemLabel:[1,"itemLabel"],itemSubLabel:[1,"itemSubLabel"],itemSubLabelLang:[1,"itemSubLabelLang"],itemUrl:[1,"itemUrl"],itemTarget:[1,"itemTarget"],itemRouterLink:[1,"itemRouterLink"],showExternalLinkIcon:[1,"showExternalLinkIcon"],queryParams:[1,"queryParams"],queryParamsHandling:[1,"queryParamsHandling"],showChildItemIcon:[1,"showChildItemIcon"],isClickEventItem:[1,"isClickEventItem"],selected:[1,"selected"],codename:[1,"codename"]},outputs:{menuItemClick:"menuItemClick"},features:[Vt([{provide:Fo,useValue:{}}
440])],attrs:dh,decls:2,vars:1,consts:[["defaultContent",""],["titleContent",""],[1,"pds-header-menu-item",3,"href","target","selected"],[1,"pds-header-menu-item",3,"routerLink","queryParams","queryParamsHandling","target","selected"],["type","button",1,"pds-header-menu-item",3,"selected"],[1,"pds-header-menu-item",3,"keydown.space","href","target"],[4,"ngTemplateOutlet"],[1,"pds-header-menu-item",3,"keydown.space","routerLink","queryParams","queryParamsHandling","target"],["type","button",1,"pds-header-menu-item",3,"click"],["aria-hidden","true",1,"pds-header-menu-item-icon-slot","pds-header-menu-item-left-icon"],[3,"name"],[1,"pds-header-menu-item-text"],["aria-hidden","true",1,"pds-header-menu-item-icon-slot","pds-header-menu-child-item-icon"],[1,"pds-header-menu-item-multiline-labels"],[1,"pds-header-menu-item-label"],[1,"pds-header-menu-item-sub-label"],["aria-hidden","true",1,"pds-header-menu-item-external-icon"],["name","pdsNorthEastOutline"],[1,"sr-only"],["aria-hidden","true","role","status",1,"pds-header-menu-item-badge",3,"value","severity"],["name","pdsChevronRightOutline"],[1,"pds-header-menu-item","pds-header-menu-item-clickable",3,"href","target","selected"],[1,"pds-header-menu-item","pds-header-menu-item-clickable",3,"routerLink","queryParams","queryParamsHandling","target","selected"],["type","button",1,"pds-header-menu-item","pds-header-menu-item-clickable",3,"selected"],["role","heading",1,"pds-header-menu-item","no-clickable"],[1,"pds-header-menu-item","pds-header-menu-item-clickable",3,"keydown.space","href","target"],[1,"pds-header-menu-item","pds-header-menu-item-clickable",3,"keydown.space","routerLink","queryParams","queryParamsHandling","target"],["type","button",1,"pds-header-menu-item","pds-header-menu-item-clickable",3,"click"],[1,"pds-header-menu-item-text","pds-header-menu-item-title-text"],[1,"pds-header-menu-child-item-icon"]],template:function(n,i){if(n&1&&P(0,kh,5,1)(1,$h,6,1),n&2){let o;G((o=i.variant())==="default"?0:o==="title"?1:-1)}},dependencies:[Pe,St,et,Yt,at,ct],encapsulation:2})}}return t})();function Kh(t,r){t&1&&D(0,"p-divider")}function qh(t,r){if(t&1&&(D(0,"li",1),te(1,"lowercase"),te(2,"replace")),t&2){let e=m().$implicit;h("itemLabel",e.data.title)("codename","header.sidebarMenuItem."+Oe(2,5,be(1,3,e==null||e.data==null?null:e.data.title)," ","-"))("icon",e.data.iconThemeName||"")}}function Gh(t,r){if(t&1){let e=F();v(0,"li",7),te(1,"lowercase"),te(2,"replace"),R("menuItemClick",function(){k(e);let i=m().$implicit,o=m();return L(o.handleLinkMenuItemClick(i))}),y()}if(t&2){let e=m().$implicit;h("itemLabel",e.data.title)("isClickEventItem",!0)("icon",e.data.iconThemeName||"")("codename","header.sidebarMenuItem."+Oe(2,6,be(1,4,e==null||e.data==null?null:e.data.title)," ","-"))}}function Wh(t,r){if(t&1){let e=F();v(0,"li",8),te(1,"lowercase"),te(2,"replace"),R("menuItemClick",function(){k(e);let i=m().$implicit,o=m();return L(o.sidebarDataSource.handleItemClick(i))}),y()}if(t&2){let e=m().$implicit;h("isClickEventItem",!0)("itemLabel",e.data.title)("codename","header.sidebarMenuItem."+Oe(2,5,be(1,3,e==null||e.data==null?null:e.data.title)," ","-"))}}function zh(t,r){if(t&1){let e=F();v(0,"li",9),te(1,"lowercase"),te(2,"replace"),R("menuItemClick",function(){k(e);let i=m().$implicit,o=m();return L(o.handleSubMenuItemClick(i))}),y()}if(t&2){let e=m().$implicit;h("showChildItemIcon",!0)("isClickEventItem",!0)("itemLabel",e.data.title)("icon",e.data.iconThemeName||"")("codename","header.sidebarMenuItem."+Oe(2,7,be(1,5,e==null||e.data==null?null:e.data.title)," ","-"))}}function Qh(t,r){if(t&1){let e=F();v(0,"li",10),te(1,"lowercase"),te(2,"replace"),R("menuItemClick",function(){k(e);let i=m().$implicit,o=m();return L(o.handleLinkMenuItemClick(i))}),y()}if(t&2){let e=m().$implicit;h("itemLabel",e.data.title)("isClickEventItem",!0)("icon",e.data.iconThemeName||"")("showExternalLinkIcon",e.data.target!=="_self")("codename","header.sidebarMenuItem."+Oe(2,7,be(1,5,e==null||e.data==null?null:e.data.title)," ","-"))}}function Yh(t,r){if(t&1){let e=F();v(0,"li",11),te(1,"lowercase"),te(2,"replace"),R("menuItemClick",function(){k(e);let i=m().$implicit,o=m();
440return L(o.sidebarDataSource.handleItemClick(i))}),y()}if(t&2){let e=m().$implicit;h("selected",!!e.data.active)("itemSubLabel",e.data.subtitle||"")("itemLabel",e.data.title)("isClickEventItem",!0)("icon",e.data.iconThemeName||"")("codename","header.sidebarMenuItem."+Oe(2,8,be(1,6,e==null||e.data==null?null:e.data.title)," ","-"))}}function Jh(t,r){if(t&1&&P(0,Kh,1,0,"p-divider")(1,qh,3,9,"li",1)(2,Gh,3,10,"li",2)(3,Wh,3,9,"li",3)(4,zh,3,11,"li",4)(5,Qh,3,11,"li",5)(6,Yh,3,12,"li",6),t&2){let e,n=r.$implicit,i=m();G((e=n.view)===i.HeaderSidebarMenuItemView.DIVIDER?0:e===i.HeaderSidebarMenuItemView.TITLE?1:e===i.HeaderSidebarMenuItemView.LINK_TITLE?2:e===i.HeaderSidebarMenuItemView.BACK_ITEM?3:e===i.HeaderSidebarMenuItemView.SUB_MENU_ITEM?4:e===i.HeaderSidebarMenuItemView.LINK_ITEM?5:e===i.HeaderSidebarMenuItemView.ACTION_ITEM?6:-1)}}var l1=(()=>{class t{constructor(){this.sidebarDataSource=b(en),this.HeaderSidebarMenuItemView=ne,this.resourceService=b(ye),this.router=b(Ae),this.document=b(_e),this.focusMoveService=b(Aa),this.accessibilityLabels=S(()=>({navigationMenu:this.resourceService.getResourceByKey(ee.A11Y_NAVIGATION_MENU)||"Navigation menu",closeNavigationMenu:this.resourceService.getResourceByKey(ee.A11Y_CLOSE_NAVIGATION_MENU)||"Close navigation menu"}))}handleHeaderMenuVisibleChange(e){e||this.sidebarDataSource.closeSidebar()}handleSubMenuItemClick(e){this.sidebarDataSource.handleItemClick(e),this.focusMoveService.moveFocus(null,"[data-header-sidebar-focus-target] button, [data-header-sidebar-focus-target] a")}handleLinkMenuItemClick(e){if(!this.isMenuItemDataWithRouterUrl(e.data)){this.document.defaultView?.open(e.data.url,e.data.target),this.sidebarDataSource.handleItemClick(e);return}let n=this.router.serializeUrl(this.router.createUrlTree([e.data.routerLink],{queryParams:e.data.queryParams}));e.data.target===lt.SELF?this.router.navigateByUrl(n):this.document.defaultView?.open(n,"_blank"),this.sidebarDataSource.handleItemClick(e)}getSidebarMenuItemTrackKey(e,n){let i="data"in n?n.data.title:"";return`${n.view}:${i}:${e}`}isMenuItemDataWithRouterUrl(e){return e.routerLink!==void 0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["ppg-header-sidebar"]],decls:3,vars:5,consts:[["role","dialog",3,"hide","visibleChange","logoClick","visible","logoSrc","logoAltText","ariaLabel","closeButtonAriaLabel"],["pds-header-menu-item","","variant","title",3,"itemLabel","codename","icon"],["data-header-sidebar-focus-target","","pds-header-menu-item","","variant","title",3,"itemLabel","isClickEventItem","icon","codename"],["pds-header-menu-item","","icon","chevron-left",3,"isClickEventItem","itemLabel","codename"],["data-header-sidebar-focus-target","","pds-header-menu-item","",3,"showChildItemIcon","isClickEventItem","itemLabel","icon","codename"],["data-header-sidebar-focus-target","","pds-header-menu-item","",3,"itemLabel","isClickEventItem","icon","showExternalLinkIcon","codename"],["data-header-sidebar-focus-target","","pds-header-menu-item","",3,"selected","itemSubLabel","itemLabel","isClickEventItem","icon","codename"],["data-header-sidebar-focus-target","","pds-header-menu-item","","variant","title",3,"menuItemClick","itemLabel","isClickEventItem","icon","codename"],["pds-header-menu-item","","icon","chevron-left",3,"menuItemClick","isClickEventItem","itemLabel","codename"],["data-header-sidebar-focus-target","","pds-header-menu-item","",3,"menuItemClick","showChildItemIcon","isClickEventItem","itemLabel","icon","codename"],["data-header-sidebar-focus-target","","pds-header-menu-item","",3,"menuItemClick","itemLabel","isClickEventItem","icon","showExternalLinkIcon","codename"],["data-header-sidebar-focus-target","","pds-header-menu-item","",3,"menuItemClick","selected","itemSubLabel","itemLabel","isClickEventItem","icon","codename"]],template:function(n,i){n&1&&(v(0,"pds-header-menu",0),R("hide",function(){return i.sidebarDataSource.closeSidebar()})("visibleChange",function(a){return i.handleHeaderMenuVisibleChange(a)})("logoClick",function(){return i.sidebarDataSource.navigateToRootPage()}),Ht(1,Jh,7,1,null,null,i.getSidebarMenuItemTrackKey,!0),y()),n&2&&(h("visible",i.sidebarDataSource.sidebarVisible())("logoSrc",
440i.sidebarDataSource.sidebarLogo()||"")("logoAltText",i.sidebarDataSource.sidebarLogoAltText()||"PPG Logo")("ariaLabel",i.accessibilityLabels().navigationMenu)("closeButtonAriaLabel",i.accessibilityLabels().closeNavigationMenu),g(),Ft(i.sidebarDataSource.sidebarMenuItems()))},dependencies:[mu,pu,Ue,mt,vr,Pr],styles:["[_nghost-%COMP%]     .pds-header-menu-close-button .p-button.p-button-text:enabled{color:var(--p-pds-p-header-menu-item-color)}[_nghost-%COMP%]     .pds-header-menu-close-button .p-button.p-button-text:enabled:hover{color:var(--p-pds-p-header-menu-item-hover-color);background:transparent}[_nghost-%COMP%]     .pds-header-menu-close-button .p-button.p-button-text:enabled:active{color:var(--p-pds-p-header-menu-item-pressed-color);background:transparent}[_nghost-%COMP%]     .pds-header-menu-item .pds-header-menu-item-text{text-align:left}"],changeDetection:0})}}return t})();var du=(()=>{class t{constructor(){this.action=pe(null)}setAction(e){this.action.set(e)}clearAction(){this.action.set(null)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Zh(t,r){if(t&1){let e=F();v(0,"p-button",8),R("onClick",function(){k(e);let i=m();return L(i.runHeaderAction())}),y()}if(t&2){let e,n,i,o=r;h("label",o.label)("severity",(e=o.severity)!==null&&e!==void 0?e:"info")("outlined",(n=o.outlined)!==null&&n!==void 0?n:!0)("text",!1),j("data-test-id",(i=o.dataTestId)!==null&&i!==void 0?i:"minimum-header-action-button")}}var x1=(()=>{class t{constructor(){this.#e=b(da),this.#t=b(du),this.headerService=b(pt),this.headerAction=this.#t.action,this.contactUsLabel=ee.MULTISTEP_REGISTRATION_CONTACT_US,this.contactUsUrl=Ee(this.#e.contactUsUrl$)}#e;#t;runHeaderAction(){this.headerAction()?.onClick()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=J({type:t,selectors:[["ppg-minimum-header"]],decls:11,vars:8,consts:[["role","banner","data-test-id","minimum-header",1,"minimum-header"],[1,"minimum-header__logo"],["data-test-id","minimum-header-logo","routerLink","",1,"minimum-header__logo-link"],[3,"src","alt"],[1,"minimum-header__actions"],["pButton","","severity","neutral","data-test-id","minimum-header-contact-button",1,"minimum-header__action-button","minimum-header__action-button--contact",3,"href","text"],["aria-hidden","true",1,"pi","pi-phone"],[1,"minimum-header__action-button","minimum-header__action-button--auxiliary",3,"label","severity","outlined","text"],[1,"minimum-header__action-button","minimum-header__action-button--auxiliary",3,"onClick","label","severity","outlined","text"]],template:function(n,i){if(n&1&&(v(0,"header",0)(1,"div",1)(2,"a",2),D(3,"img",3),y()(),v(4,"div",4)(5,"a",5),D(6,"i",6),v(7,"span"),re(8),te(9,"resourceValue"),y()(),P(10,Zh,1,5,"p-button",7),y()()),n&2){let o;g(3),h("src",i.headerService.headerLogoSrc()||"",ge)("alt",i.headerService.headerAltText()||""),g(2),h("href",i.contactUsUrl(),ge)("text",!0),g(3),ue(be(9,6,i.contactUsLabel)),g(2),G((o=i.headerAction())?10:-1,o)}},dependencies:[Fe,Er,He,at,ca],styles:["[_nghost-%COMP%]{display:block}.minimum-header__logo[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:var(--p-pds-on-surface-primary-ultra-strong);border-bottom:var(--p-pds-p-header-utility-bar-border);padding:var(--p-pds-unit-400) var(--p-pds-unit-1000);max-height:78px}.minimum-header__logo-link[_ngcontent-%COMP%]{height:46px}.minimum-header__logo-link[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%}.minimum-header__actions[_ngcontent-%COMP%]{align-items:center;background-color:var(--p-pds-surface-neutral-extreme-soft, var(--color-neutral-05));display:flex;gap:var(--p-pds-unit-200);justify-content:space-between;padding:var(--p-pds-unit-100) var(--p-pds-unit-1000)}.minimum-header__action-button[_ngcontent-%COMP%]{text-decoration:none}@media(max-width:768px){.minimum-header__actions[_ngcontent-%COMP%]{padding:var(--p-pds-unit-100) var(--p-pds-unit-400)}}"],changeDetection:0})}}return t})();export{ig as a,Zt as b,hg as c,Ba as d,Na as e,PC as f,l1 as g,du as h,x1 as i};

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.