1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="cf718bd0-31c6-1f92-5aaa-d424c8dc968c")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,950277,e=>{"use strict";var t=e.i(843476),a=e.i(500932);e.i(271645);var n=e.i(316926),s=e.i(894296),r=e.i(512345),o=e.i(269273),i=e.i(315473);function l(e,a){return(0,t.jsx)("div",{style:{"--disclaimer-number":`"${a+1}"`},className:"text-body-2 before:mr-1 before:align-super before:text-[75%] before:content-(--disclaimer-number)",dangerouslySetInnerHTML:{__html:e.disclaimer}},`${a}-${e.disclaimer}`)}e.s(["default",0,e=>{let c,d,m,u,f,p,x,h=(0,a.c)(16),{isOpen:b,onClose:v,promoArray:j,disclaimer:g}=e;h[0]!==j?(c=void 0===j?[]:j,h[0]=j,h[1]=c):c=h[1];let y=c;if(h[2]!==g||h[3]!==y)d=((0,i.isValidArray)(y)?y.slice(0,3).map(e=>({disclaimer:e?.disclaimer})).filter(e=>e.disclaimer):g?[{disclaimer:g.disclaimer1},{disclaimer:g.disclaimer2},{disclaimer:g.disclaimer3}].filter(e=>e.disclaimer):[]).filter((e,t,a)=>{let n=e?.disclaimer;return!!n&&!a.slice(0,t).some(e=>e?.disclaimer===n)}),h[2]=g,h[3]=y,h[4]=d;else d=h[4];let N=d;return h[5]!==v?(m=e=>{e||v?.()},h[5]=v,h[6]=m):m=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(o.ModalHeader,{className:"sr-only"}),h[7]=u):u=h[7],h[8]!==N?(f=N.map(l),h[8]=N,h[9]=f):f=h[9],h[10]!==f?(p=(0,t.jsxs)(n.Modal,{children:[u,(0,t.jsx)(s.ModalContent,{children:f})]}),h[10]=f,h[11]=p):p=h[11],h[12]!==b||h[13]!==m||h[14]!==p?(x=(0,t.jsx)(r.ModalRoot,{open:b,onOpenChange:m,children:p}),h[12]=b,h[13]=m,h[14]=p,h[15]=x):x=h[15],x}],950277)},491424,e=>{"use strict";var t=e.i(843476),a=e.i(500932),n=e.i(271645),s=e.i(950277);e.s(["default",0,e=>{let r,o,i,l,c,d,m,u,f,p,x=(0,a.c)(36),{offer:h,className:b}=e,[v,j]=(0,n.useState)(!1);x[0]!==h?.disclaimer1||x[1]!==h?.disclaimer2||x[2]!==h?.disclaimer3?(r=e=>"2"===e&&h?.disclaimer1===h?.disclaimer2||"3"===e&&h?.disclaimer1===h?.disclaimer3?"1":"3"===e&&h?.disclaimer2===h?.disclaimer3?"2":e,x[0]=h?.disclaimer1,x[1]=h?.disclaimer2,x[2]=h?.disclaimer3,x[3]=r):r=x[3];let g=r;x[4]!==v?(o=()=>j(!v),x[4]=v,x[5]=o):o=x[5];let y=o,N=`branch-offer-text ${b||""}`;return x[6]!==h?(i=!h?.hideNameOnClient&&h?.name&&(0,t.jsx)("p",{className:"mb-4 text-white",children:h.name}),x[6]=h,x[7]=i):i=x[7],x[8]!==h||x[9]!==y?(l=h?.option1&&(0,t.jsxs)("p",{className:"m-0 text-white",children:[h.option1,(0,t.jsx)("sup",{children:(0,t.jsx)("button",{type:"button",className:"underline hover:no-underline focus:no-underline",onClick:y,children:"1"})})]}),x[8]=h,x[9]=y,x[10]=l):l=x[10],x[11]!==h?(c=h?.conjunction1&&(0,t.jsx)("p",{className:"mt-1.5 mb-1 text-white",children:h.conjunction1}),x[11]=h,x[12]=c):c=x[12],x[13]!==h||x[14]!==y||x[15]!==g?(d=h?.option2&&(0,t.jsxs)("p",{className:"m-0 text-white",children:[h.option2,(0,t.jsx)("sup",{children:(0,t.jsx)("button",{type:"button",className:"underline hover:no-underline focus:no-underline",onClick:y,children:g("2")})})]}),x[13]=h,x[14]=y,x[15]=g,x[16]=d):d=x[16],x[17]!==h?(m=h?.conjunction2&&(0,t.jsx)("p",{className:"mt-1.5 mb-1 text-white",children:h.conjunction2}),x[17]=h,x[18]=m):m=x[18],x[19]!==h||x[20]!==y||x[21]!==g?(u=h?.option3&&(0,t.jsxs)("p",{className:"m-0 text-white",children:[h.option3,(0,t.jsx)("sup",{children:(0,t.jsx)("button",{type:"button",className:"underline hover:no-underline focus:no-underline",onClick:y,children:g("3")})})]}),x[19]=h,x[20]=y,x[21]=g,x[22]=u):u=x[22],x[23]!==v||x[24]!==h||x[25]!==y?(f=(0,t.jsx)(s.default,{isOpen:v,onClose:y,disclaimer:h}),x[23]=v,x[24]=h,x[25]=y,x[26]=f):f=x[26],x[27]!==f||x[28]!==N||x[29]!==i||x[30]!==l||x[31]!==c||x[32]!==d||x[33]!==m||x[34]!==u?(p=(0,t.jsxs)("div",{className:N,children:[i,l,c,d,m,u,f]}),x[27]=f,x[28]=N,x[29]=i,x[30]=l,x[31]=c,x[32]=d,x[33]=m,x[34]=u,x[35]=p):p=x[35],p}])},59876,e=>{"use strict";var t=e.i(843476),a=e.i(500932),n=e.i(271645),s=e.i(199548),r=e.i(222745),o=e.i(315473),i=e.i(864087),l=e.i(519464),
2c=e.i(579972),d=e.i(315859),m=e.i(950277),u=e.i(491424),f=e.i(451817);let p=(e,t)=>"LOADED"===t.type?{promoData:t.payload,loading:!1}:{promoData:{},loading:!1};e.s(["default",0,e=>{let x,h,b,v,j,g,y,N,w,T,_,C,S,I,P,R,D,L,F,M,E,k,A,O,B=(0,a.c)(55);B[0]!==e?({branchID:x,fallback:j,configData:g,className:h,showNational:y,innerClassName:b,forceNoPromoMessage:N,...v}=e,B[0]=e,B[1]=x,B[2]=h,B[3]=b,B[4]=v,B[5]=j,B[6]=g,B[7]=y,B[8]=N):(x=B[1],h=B[2],b=B[3],v=B[4],j=B[5],g=B[6],y=B[7],N=B[8]),B[9]!==j?(w=void 0===j?{}:j,B[9]=j,B[10]=w):w=B[10];let $=w;B[11]!==g?(T=void 0===g?{}:g,B[11]=g,B[12]=T):T=B[12];let G=T,H=void 0!==y&&y,V=void 0!==N&&N,{context:K}=(0,c.useLocationMachine)(),{currentBranch:z,retail_branch_id:U}=K,q=x??(z?.branch_retail?.[0]||U);B[13]!==$?(_={promoData:$,loading:!0},B[13]=$,B[14]=_):_=B[14];let[W,Q]=(0,n.useReducer)(p,_),{promoData:Y,loading:J}=W,[X,Z]=(0,n.useState)(!1),ee=(0,l.useCroPromoTestEnabled)();B[15]!==q||B[16]!==V||B[17]!==H?(S=()=>{if(!q&&!H){V&&Q({type:"EMPTY"});return}(0,d.loadPromotions)({branchID:q,showNationalPromo:H}).then(e=>{Q({type:"LOADED",payload:e[0]})}).catch(()=>Q({type:"EMPTY"}))},C=[q,H,V],B[15]=q,B[16]=V,B[17]=H,B[18]=C,B[19]=S):(C=B[18],S=B[19]),(0,n.useEffect)(S,C),B[20]===Symbol.for("react.memo_cache_sentinel")?(I=e=>Z(e),B[20]=I):I=B[20];let et=I,ea=G?.promo_heading||G?.heading||null;if(!V&&(!Y||!(0,o.objectHasValues)(Y)))return null;if(ee){let e;return B[21]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(f.default,{isFullWidthBanner:!0}),B[21]=e):e=B[21],e}let en=`branchPromoPanel flex min-h-93.75 flex-col justify-center bg-black py-8 text-center xl:py-12 ${h||""}`,es=`branchPromoPanel-inner ${b||""}`;return B[22]!==ea?(P=ea&&(0,t.jsx)("h2",{className:"mb-3 font-semibold text-white xl:mb-8",children:ea}),B[22]=ea,B[23]=P):P=B[23],B[24]!==J||B[25]!==Y?.option1?(R=J&&!Y?.option1&&(0,t.jsx)("p",{className:"text-center text-white",children:"Loading promotion..."}),B[24]=J,B[25]=Y?.option1,B[26]=R):R=B[26],B[27]!==J||B[28]!==Y?.option1?(D=!J&&!Y?.option1&&(0,t.jsx)("p",{className:"text-center text-white",children:"No current promotion at this time."}),B[27]=J,B[28]=Y?.option1,B[29]=D):D=B[29],B[30]!==Y?(L=(0,t.jsx)(u.default,{offer:Y}),B[30]=Y,B[31]=L):L=B[31],B[32]!==G.disclosure_modal||B[33]!==G.get_offer||B[34]!==Y?.option1?(F=Y?.option1&&(0,t.jsxs)(r.List,{bullets:"none",className:"mt-4 flex flex-row flex-wrap max-md:space-y-3 md:justify-center md:space-x-4 xl:space-x-8",children:[(0,o.isValidArray)(G?.get_offer)&&(0,t.jsx)("li",{className:"flex-12/12 md:flex-none",children:(0,t.jsx)(i.default,{data:G.get_offer[0],className:"text-white"})}),(0,t.jsx)("li",{className:"flex-12/12 md:flex-none",children:(0,t.jsx)("button",{type:"button",onClick:()=>et(!0),className:"text-link-style text-white",children:G.disclosure_modal})})]}),B[32]=G.disclosure_modal,B[33]=G.get_offer,B[34]=Y?.option1,B[35]=F):F=B[35],B[36]!==es||B[37]!==P||B[38]!==R||B[39]!==D||B[40]!==L||B[41]!==F?(M=(0,t.jsxs)("div",{className:es,children:[P,R,D,L,F]}),B[36]=es,B[37]=P,B[38]=R,B[39]=D,B[40]=L,B[41]=F,B[42]=M):M=B[42],B[43]===Symbol.for("react.memo_cache_sentinel")?(E=()=>et(!1),B[43]=E):E=B[43],B[44]!==X||B[45]!==Y?(k=(0,t.jsx)(m.default,{isOpen:X,onClose:E,disclaimer:Y}),B[44]=X,B[45]=Y,B[46]=k):k=B[46],B[47]!==M||B[48]!==k?(A=(0,t.jsxs)(s.Container,{children:[M,k]}),B[47]=M,B[48]=k,B[49]=A):A=B[49],B[50]!==G.anchor_text||B[51]!==v||B[52]!==en||B[53]!==A?(O=(0,t.jsx)("div",{className:en,"data-testid":"branch-promo-panel",id:G.anchor_text,...v,children:A}),B[50]=G.anchor_text,B[51]=v,B[52]=en,B[53]=A,B[54]=O):O=B[54],O}])},13667,e=>{"use strict";var t=e.i(843476),a=e.i(500932),n=e.i(361523),s=e.i(522016),r=e.i(950528);e.s(["default",0,e=>{let o,i,l,c,d,m,u=(0,a.c)(22),{tab:f,offerText:p,financingText:x,showImage:h,cardsOnly:b,badgeText:v,className:j,isLink:g}=e,y=void 0===f?"offer":f,N=void 0!==h&&h,w=void 0!==b&&b,T=void 0===g||g,_=`flex w-78 flex-none flex-col justify-center px-6 ${w?"py-8":"py-3"}`,C="offer"===y?"conversion":"neutral",S="offer"===y,I=`mb-3 w-fit ${"offer"===y?"text-white":""}`,P="offer"===y?"sell":"savings",R=v||("offer"===y?"Featured Offer":"Featured Financing");u[0]!==R||u[1]!==C||u[2]!==S||u[3]!==I||u[4]!==P?(o=(0,t.jsx)(n.Badge,{color:C,darkMode:S,className:I,iconLeft:P,children:R}),u[0]=R,u[1]=C,u[2]=S,u[3]=I,u[4]=P,u[5]=o):o=u[5];let D="offer"===y?p:x;u[6]!==D?(i=(0,t.jsx)("div",{className:"[&_span]:text-28px [&_span]:block [&_span]:leading-8 [&_span]:font-bold",children:D}),u[6]=D,u[7]=i):i=u[7],u[8]!==o||u[9]!==i||u[10]!==_?(l=(0,t.jsxs)("div",{className:_,children:[o,i]}),u[8]=o,u[9]=i,u[10]=_,u[11]=l):l=u[11];let L=l,F=`h-fit ${w?"bg-neutral-25":"bg-white xl:flex-initial"} md:flex md:flex-1 md:gap-x-4 xl:w-1/2 ${j||""}`;return u[12]!==L||u[13]!==T?(c=T?(0,t.jsx)(s.default,{href:"/about/promotions/offers/",className:"no-underline",children:L}):L,u[12]=L,u[13]=T,u[14]=c):c=u[14],u[15]!==N||u[16]!==y?(d=N&&(0,t.jsx)("div",{className:"hidden aspect-3/2 min-h-39 min-w-63.5 flex-1 xl:block",children:(0,t.jsx)(r.default,{className:"block!",data:{image:{url:"offer"===y?"https://images.contentstack.io/v3/assets/bltf589e66bc
2aecd79c/blt6177aa6dd72bb30f/promo-asset-product.png":"https://images.contentstack.io/v3/assets/bltf589e66bcaecd79c/blt04e5cda5a004fa32/promo-asset-lifestyle.png"}},fill:!0})}),u[15]=N,u[16]=y,u[17]=d):d=u[17],u[18]!==F||u[19]!==c||u[20]!==d?(m=(0,t.jsxs)("div",{"data-component":"PromoBannerTestCard","data-testid":"promo-banner-test-card",id:"promo-banner-test-card",className:F,children:[c,d]}),u[18]=F,u[19]=c,u[20]=d,u[21]=m):m=u[21],m}])},451817,e=>{"use strict";var t=e.i(843476),a=e.i(500932),n=e.i(361523),s=e.i(240612),r=e.i(199548),o=e.i(792546),i=e.i(130821),l=e.i(130771),c=e.i(112505),d=e.i(649435),m=e.i(715623),u=e.i(522016),f=e.i(271645),p=e.i(57293),x=e.i(579972);let h=e=>{let n,s,r,o=(0,a.c)(8),{icon:i,className:l}=e,{context:c}=(0,x.useLocationMachine)(),d=c?.retail_branch_id,m=(0,x.useBranchData)(d),u=`flex items-center gap-x-0.5 ${l||""}`;o[0]!==i?(n=i&&(0,t.jsx)(p.Icon,{name:i,className:"text-conversion",size:20}),o[0]=i,o[1]=n):n=o[1];let f=m?.formal_name;return o[2]!==f?(s=(0,t.jsx)("span",{className:"flex-1 text-sm text-white",children:f}),o[2]=f,o[3]=s):s=o[3],o[4]!==u||o[5]!==n||o[6]!==s?(r=(0,t.jsxs)("div",{className:u,children:[n,s]}),o[4]=u,o[5]=n,o[6]=s,o[7]=r):r=o[7],r};var b=e.i(13667);e.s(["default",0,e=>{let p,x,v,j,g,y,N,w,T,_,C=(0,a.c)(18),{isFullWidthBanner:S,headerPromo:I,placement:P}=e,[R,D]=(0,f.useState)(!1);C[0]===Symbol.for("react.memo_cache_sentinel")?(p=(0,m.classNames)({"w-1/2 data-[state=active]:text-white! data-[state=active]:border-conversion! data-[state=inactive]:border-neutral-400! data-[state=inactive]:text-neutral-400!":!0}),C[0]=p):p=C[0];let L=p;C[1]===Symbol.for("react.memo_cache_sentinel")?(x=(0,m.classNames)({"p-0! md:flex md:gap-x-12 md:items-center md:justify-between xl:gap-x-0 xl:items-start":!0}),C[1]=x):x=C[1];let F=x;C[2]===Symbol.for("react.memo_cache_sentinel")?(v=(0,m.classNames)({"mb-0.5":!0}),C[2]=v):v=C[2];let M=v;C[3]===Symbol.for("react.memo_cache_sentinel")?(j=(0,m.classNames)({"text-2xl md:text-28px text-white mb-1":!0}),C[3]=j):j=C[3];let E=j;C[4]===Symbol.for("react.memo_cache_sentinel")?(g=(0,m.classNames)({"text-neutral-400 mb-4 mt-0":!0}),C[4]=g):g=C[4];let k=g;C[5]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:gap-x-3 md:flex-col md:gap-x-0 xl:flex-row xl:gap-x-3",children:[(0,t.jsx)(s.Button,{color:"primary",darkMode:!0,iconLeft:"calendar_month",className:"mb-3 sm:mb-6 md:mb-3 xl:mb-0",href:"/where-to-buy/schedule-consultation/#rtaForm",children:"Schedule Consultation"}),(0,t.jsx)(s.Button,{color:"secondary",darkMode:!0,iconLeft:"sell",className:"max-md:mb-6",href:"/about/promotions/offers/",children:"See All Promotions"})]}),C[5]=y):y=C[5];let A=y;C[6]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(h,{icon:"location_pin",className:M}),C[6]=N):N=C[6];let O=N;if("branch-showroom"===P){let e,a,n;return C[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(b.default,{tab:"offer",cardsOnly:!0,offerText:(0,t.jsxs)("p",{children:["Buy One, Get One"," ",(0,t.jsxs)("span",{children:["40% off Windows and Doors",(0,t.jsx)("sup",{children:"1"})]})]})}),C[7]=e):e=C[7],C[8]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("span",{children:"No Payments, No Interest"}),C[8]=a):a=C[8],C[9]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("div",{className:"my-3 flex gap-4 max-md:flex-col",children:[e,(0,t.jsx)(b.default,{tab:"financing",cardsOnly:!0,financingText:(0,t.jsxs)("p",{children:[a," for 24 months",(0,t.jsx)("sup",{children:"2"})]})})]}),C[9]=n):n=C[9],n}return C[10]!==I||C[11]!==R?(w=I&&(0,t.jsxs)(r.Container,{className:"flex flex-col py-3 max-lg:px-0! md:flex-row md:flex-wrap md:pb-4 lg:px-6! lg:pb-3 xl:items-center",children:[(0,t.jsxs)("div",{className:"max-lg:pl-6 md:flex md:h-fit md:self-center",children:[(0,t.jsxs)("div",{className:"md:border-primary flex items-center justify-between md:mr-8 md:border-r md:pr-8 lg:mr-12 lg:pr-12",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-white",children:"Local Promotions"}),(0,t.jsx)("p",{className:"m-0 text-xs text-neutral-200 md:text-sm",children:"Available exclusively through in-
2home consultations"})]}),(0,t.jsx)(s.Button,{className:"bg-neutral-850 w-auto border-none md:hidden",iconLeft:String(R?"keyboard_arrow_up":"keyboard_arrow_down"),onClick:()=>D(!R)})]}),(0,t.jsx)("hr",{className:"border-primary mt-3 max-w-9.25 md:hidden"})]}),(0,t.jsxs)("div",{className:"lg:flex lg:items-center",children:[(0,t.jsx)(n.Badge,{color:"conversion",darkMode:!0,iconLeft:"sell",className:"mb-1 max-md:hidden lg:mr-3 lg:mb-0",children:"Featured Offer"}),(0,t.jsxs)("p",{className:`text-white max-md:my-3 max-md:px-6 ${R?"":"max-md:hidden"}`,children:["Buy One, Get One"," ",(0,t.jsxs)("span",{className:"block font-semibold max-md:mt-1.5 lg:inline",children:["40% off Windows and Doors",(0,t.jsx)("sup",{children:"1"})]})]})]}),(0,t.jsx)(u.default,{href:"/about/promotions/offers/",className:`px-6 text-center text-white max-lg:text-sm md:mt-3 md:w-full xl:mt-0 xl:ml-auto xl:w-fit xl:pl-2 ${R?"":"max-md:hidden"}`,children:"See All Promotions"})]}),C[10]=I,C[11]=R,C[12]=w):w=C[12],C[13]!==S?(T=S&&(0,t.jsx)(r.Container,{className:"px-6 pt-6 pb-8 xl:pt-10 xl:pb-14",children:(0,t.jsxs)(o.Tabs,{defaultOpen:"tab1",orientation:"horizontal",className:"flex flex-col gap-y-6",children:[(0,t.jsxs)(i.TabsGroup,{className:"justify-start border-none! md:w-1/2 lg:max-w-93",children:[(0,t.jsx)(l.TabsTrigger,{value:"tab1",className:L,children:(0,t.jsx)(c.TabsLabel,{children:"Local Offers"})}),(0,t.jsx)(l.TabsTrigger,{value:"tab2",className:L,children:(0,t.jsx)(c.TabsLabel,{children:"Financing Options"})})]}),(0,t.jsxs)(d.TabsContent,{value:"tab1",className:F,children:[(0,t.jsxs)("div",{className:"md:w-1/2 xl:w-5/12",children:[O,(0,t.jsx)("p",{className:E,children:"Local Offers"}),(0,t.jsx)("p",{className:k,children:"Available with your free in-home consultation."}),A]}),(0,t.jsx)(b.default,{tab:"offer",showImage:!0,offerText:(0,t.jsxs)("p",{children:["Buy One, Get One"," ",(0,t.jsxs)("span",{children:["40% off Windows and Doors",(0,t.jsx)("sup",{children:"1"})]})]})})]}),(0,t.jsxs)(d.TabsContent,{value:"tab2",className:F,children:[(0,t.jsxs)("div",{className:"md:w-1/2 xl:w-5/12",children:[O,(0,t.jsx)("p",{className:E,children:"Financing Options"}),(0,t.jsx)("p",{className:k,children:"Flexible financing solutions to help you start your project with confidence, available exclusively through in-home consultations."}),A]}),(0,t.jsx)(b.default,{tab:"financing",showImage:!0,financingText:(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{children:"No Payments, No Interest"})," for 24 months",(0,t.jsx)("sup",{children:"2"})]})})]})]})}),C[13]=S,C[14]=T):T=C[14],C[15]!==w||C[16]!==T?(_=(0,t.jsxs)("div",{"data-component":"PromoBannerTest","data-testid":"promo-banner-test",id:"promo-banner-test",className:"bg-neutral-850",children:[w,T]}),C[15]=w,C[16]=T,C[17]=_):_=C[17],_}],451817)},315859,e=>{"use strict";var t=e.i(94442),a=e.i(315473),n=e.i(993272);let s=(0,t.parse)(` 3 query GetPromosByID($branchIDs: String!) { 4 getPromotionsByBranchId(branchId: $branchIDs) { 5 priority 6 national 7 option1 8 disclaimer1 9 conjunction1 10 option2 11 disclaimer2 12 conjunction2 13 option3 14 disclaimer3 15 name 16 hideNameOnClient 17 endDate 18 startDate 19 } 20 } 21`),r=(0,t.parse)(` 22 query GetAllPromos { 23 getPromotions { 24 priority 25 national 26 option1 27 disclaimer1 28 conjunction1 29 option2 30 disclaimer2 31 conjunction2 32 option3 33 disclaimer3 34 name 35 hideNameOnClient 36 endDate 37 startDate 38 } 39 } 40`),o=async e=>{let{branchID:t,showNationalPromo:o}=e;if(o){let e=await (0,n.fetchGraphQL)({documentNode:r,endpointType:"pella"}),o=e?.getPromotions?.filter(e=>e.national)??[];if(!(0,a.isValidArray)(o)&&t){let e=await (0,n.fetchGraphQL)({documentNode:s,endpointType:"pella",variables:{branchIDs:t}});o=e?.getPromotionsByBranchId??[]}return o}if(!t)return[];let i=await (0,n.fetchGraphQL)({documentNode:s,endpointType:"pella",variables:{branchIDs:t}});return i?.getPromotionsByBranchId??[]};e.s(["loadPromotions",0,o])},649435,e=>{"use strict";var t=e.i(715623),a=e.i(141649),n=e.i(843476),s=e=>{let{value:s,children:r,className:o,showInDom:i,...l}=e,c=(0,t.classNames)({"sash-TabsContent":!0,"data-[state=inactive]:hidden":i,[o]:o});return(0,n.jsx)(a.Content,{value:s,forceMount:i,className:c,"data-testid":"sash-tabs-content",...l,children:r})};s.displayName="TabsContent",e.s(["TabsContent",0,s],649435)},130821,e=>{"use strict";var t=e.i(715623),a=e.i(141649),n=e.i(843476),s=e=>{let{children:s,className:r,align:o="center",...i}=e,l=(0,t.classNames)({"sash-TabsGroup flex flex-nowrap":!0,"justify-center":"center"===o,"justify-start":"left"===o,"*:flex-1":"stretch"===o,[r]:r});return(0,n.jsx)(a.List,{className:l,"data-testid":"sash-tabs-group","data-align":o,...i,children:s})};s.displayName="TabsGroup",e.s(["TabsGroup",0,s],130821)},112505,e=>{"use strict";var t=e.i(715623),a=e.i(602558),n=e.i(843476),s=e=>{let{children:s,className:r,helperText:o,iconLeft:i,count:l,...c}=e,d=(0,t.classNames)({"sash-TabsLabel grid w-full py-1":!0,[r]:r});return(0,n.jsxs)("span",{className:d,"data-testid":"sash-tabs-label",...c,children:[i&&(0,n.jsx)(a.default,{name:i}),(0,n.jsx)("span",{className:"sash-TabsLabel-label leading-snug",children:s}),void 0!==l&&(0,n.jsx)("span",{className:"sash-TabsLabel-count rounded-sm bg-neutral-50 px-1 py-0.5 text-sm/5 font-semibold text-black",children:l}),o&&(0,n.jsx)("span",{className:"sash-TabsLabel-helper mt-0.5 text-sm font-normal",children:o})]})};s.displayName="TabsLabel",e.s(["TabsLabel",0,s],112505)},130771,e=>{"use strict";var t=e.i(715623),a=e.i(141649),n=e.i(843476),s=e=>{let{children:s,className:r,...o}=e,i=(0,t.classNames)({"sash-TabsTrigger flex flex-col text-neutral-600 hover:bg-black-02 hover:text-neutral-750 focus-visible:bg-white focus-visible:text-neutral-750":!0,[r]:r});return(0,n.jsx)(a.Trigger,{className:i,"data-testid":"sash-tabs-trigger",...o,children:s})};s.displayName="TabsTrigger",e.s(["TabsTrigger",0,s],130771)},792546,141649,e=>{"use strict";var t=e.i(715623),a=e.i(820951),n=e.i(273835),s=e.i(928380),r=e.i(275596),o=e.i(262411),i=e.i(766931),l=e.i(271645),c=e.i(843476),d=l.createContext(void 0);function m(e){let t=l.useContext(d);return e||t||"ltr"}var u=e.i(431213),f=e.i(417255),p=e.i(879571),x=e.i(620206),h=!1,b=l.useSyncExternalStore;function v(){return()=>{}}var j="function"==typeof b?function(){return b(v,()=>!0,()=>!1)}:function(){let[e,t]=l.useState(h);return l.useEffect(()=>{h||(h=!0,t(!0))},[]),e},g="rovingFocusGroup.onEntryFocus",y={bubbles:!1,cancelable:!0},N="RovingFocusGroup",[w,T,_]=function(e){let t=e+"CollectionProvider",[a,s]=(0,n.createContextScope)(t),[r,o]=a(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{let{scope:t,children:a}=e,n=l.useRef(null),s=l.useRef(new Map).current;return(0,c.jsx)(r,{scope:t,itemMap:s,collectionRef:n,children:a})};i.displayName=t;let d=e+"CollectionSlot",m=(0,x.createSlot)(d),f=l.forwardRef((e,t)=>
40{let{scope:a,children:n}=e,s=o(d,a),r=(0,u.useComposedRefs)(t,s.collectionRef);return(0,c.jsx)(m,{ref:r,children:n})});f.displayName=d;let p=e+"CollectionItemSlot",h="data-radix-collection-item",b=(0,x.createSlot)(p),v=l.forwardRef((e,t)=>{let{scope:a,children:n,...s}=e,r=l.useRef(null),i=(0,u.useComposedRefs)(t,r),d=o(p,a);return l.useEffect(()=>(d.itemMap.set(r,{ref:r,...s}),()=>void d.itemMap.delete(r))),(0,c.jsx)(b,{[h]:"",ref:i,children:n})});return v.displayName=p,[{Provider:i,Slot:f,ItemSlot:v},function(t){let a=o(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=a.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(a.itemMap.values()).sort((e,a)=>t.indexOf(e.ref.current)-t.indexOf(a.ref.current))},[a.collectionRef,a.itemMap])},s]}(N),[C,S]=(0,n.createContextScope)(N,[_]),[I,P]=C(N),R=l.forwardRef((e,t)=>(0,c.jsx)(w.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(w.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(D,{...e,ref:t})})}));R.displayName=N;var D=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:s,loop:i=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:h,onEntryFocus:b,preventScrollOnEntryFocus:v=!1,...j}=e,w=l.useRef(null),_=(0,u.useComposedRefs)(t,w),C=m(d),[S,P]=(0,r.useControllableState)({prop:f,defaultProp:x??null,onChange:h,caller:N}),[R,D]=l.useState(!1),L=(0,p.useCallbackRef)(b),F=T(n),M=l.useRef(!1),[k,A]=l.useState(0);return l.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(g,L),()=>e.removeEventListener(g,L)},[L]),(0,c.jsx)(I,{scope:n,orientation:s,dir:C,loop:i,currentTabStopId:S,onItemFocus:l.useCallback(e=>P(e),[P]),onItemShiftTab:l.useCallback(()=>D(!0),[]),onFocusableItemAdd:l.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>A(e=>e-1),[]),children:(0,c.jsx)(o.Primitive.div,{tabIndex:R||0===k?-1:0,"data-orientation":s,...j,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,a.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(g,y);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),v)}}M.current=!1}),onBlur:(0,a.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),L="RovingFocusGroupItem",F=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:d,children:m,...u}=e,p=(0,s.useId)(),x=d||p,h=P(L,n),b=h.currentTabStopId===x,v=T(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:N}=h,_=j();return(0,f.useLayoutEffect)(()=>{if(!(!_||!r))return g(),()=>y()},[_,r,g,y]),l.useEffect(()=>{if(!(_||!r))return g(),()=>y()},[_,r,g,y]),(0,c.jsx)(w.ItemSlot,{scope:n,id:x,focusable:r,active:i,children:(0,c.jsx)(o.Primitive.span,{tabIndex:b?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{r?h.onItemFocus(x):e.preventDefault()}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(x)),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,a){var n;let s=(n=e.key,"rtl"===a?"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n:n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return M[s]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var a,n;"prev"===t&&s.reverse();let r=s.indexOf(e.currentTarget);s=h.loop?(a=s,n=r+1,a.map((e,t)=>a[(n+t)%a.length])):s.slice(r+1)}setTimeout(()=>E(s))}}),children:"function"==typeof m?m({isCurrentTabStop:b,hasTabStop:null!=N}):m})})});F.displayName=L;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.activeElement;for(let n of e)if(n===a||(n.focus({preventScroll:t}),document.activeElement!==a))return}var k="Tabs",[A,O]=(0,n.createContextScope)(k,[S]),B=S(),[$,G]=A(k),H=l.forwardRef((e,t)=>
40{let{__scopeTabs:a,value:n,onValueChange:i,defaultValue:l,orientation:d="horizontal",dir:u,activationMode:f="automatic",...p}=e,x=m(u),[h,b]=(0,r.useControllableState)({prop:n,onChange:i,defaultProp:l??"",caller:k});return(0,c.jsx)($,{scope:a,baseId:(0,s.useId)(),value:h,onValueChange:b,orientation:d,dir:x,activationMode:f,children:(0,c.jsx)(o.Primitive.div,{dir:x,"data-orientation":d,...p,ref:t})})});H.displayName=k;var V="TabsList",K=l.forwardRef((e,t)=>{let{__scopeTabs:a,loop:n=!0,...s}=e,r=G(V,a),i=B(a);return(0,c.jsx)(R,{asChild:!0,...i,orientation:r.orientation,dir:r.dir,loop:n,children:(0,c.jsx)(o.Primitive.div,{role:"tablist","aria-orientation":r.orientation,...s,ref:t})})});K.displayName=V;var z="TabsTrigger",U=l.forwardRef((e,t)=>{let{__scopeTabs:n,value:s,disabled:r=!1,...i}=e,l=G(z,n),d=B(n),m=Q(l.baseId,s),u=Y(l.baseId,s),f=s===l.value;return(0,c.jsx)(F,{asChild:!0,...d,focusable:!r,active:f,children:(0,c.jsx)(o.Primitive.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:m,...i,ref:t,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{r||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(s)}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{r||e.target!==e.currentTarget||[" ","Enter"].includes(e.key)&&l.onValueChange(s)}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==l.activationMode;f||r||!e||l.onValueChange(s)})})})});U.displayName=z;var q="TabsContent",W=l.forwardRef((e,t)=>{let{__scopeTabs:a,value:n,forceMount:s,children:r,...d}=e,m=G(q,a),u=Q(m.baseId,n),f=Y(m.baseId,n),p=n===m.value,x=l.useRef(p);return l.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(i.Presence,{present:s||p,children:a=>{let{present:n}=a;return(0,c.jsx)(o.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:f,tabIndex:0,...d,ref:t,style:{...e.style,animationDuration:x.current?"0s":void 0},children:n&&r})}})});function Q(e,t){return`${e}-trigger-${t}`}function Y(e,t){return`${e}-content-${t}`}W.displayName=q,e.s(["Content",0,W,"List",0,K,"Root",0,H,"Trigger",0,U],141649),e.s(["Tabs",0,e=>{let{children:a,className:n,defaultOpen:s,orientation:r="horizontal",onValueChange:o,value:i,...l}=e,d=(0,t.classNames)({"sash-Tabs":!0,flex:"vertical"===r,[n]:n});return(0,c.jsx)(H,{className:d,defaultValue:s,orientation:r,value:i,onValueChange:o,activationMode:"manual","data-testid":"sash-tabs",...l,children:a})}],792546)}]); 41 42//# debugId=cf718bd0-31c6-1f92-5aaa-d424c8dc968c
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.