PageSourceSearch

https://www.sonepar.at/_next/static/chunks/pages/_app-c8a295cc2ea1cf7f.js

js sonepar.at collected 2026-10-02 14:11:50 UTC 1,105,076 bytes, 3,297 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{20:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var n=r(60004);let a=e=>{if(void 0===window?.matchMedia)return null;let t=`--watts-breakpoint-${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t).trim()||"0px"},i=e=>{let{0:t,1:r}=(0,n.useState)(()=>"function"==typeof window.matchMedia&&window.matchMedia(e).matches);return(0,n.useEffect)(()=>{if("function"!=typeof window.matchMedia)return;let t=window.matchMedia(e),n=()=>r(t.matches);return t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e]),t},o={useUp:e=>i(`(min-width: ${a(e)})`),useDown:e=>i(`(max-width: ${a(e)})`),useBetween:(e,t)=>{let r=a(e),n=a(t);return i(`(min-width: ${r}) and (max-width: ${n})`)}},s={up:o.useUp,down:o.useDown,between:o.useBetween}},305:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},396:(e,t,r)=>{e.exports=r(70387)(Object.keys,Object)},919:(e,t,r)=>{"use strict";var n;r.d(t,{b:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},1068:(e,t,r)=>{"use strict";r.d(t,{E:()=>s});var n=r(53779),a=r(85587),i=r(39624),o=(0,a.h)(),s=({className:e,id:t,text:r,status:a="info",disabled:s=!1,...c})=>s?null:(0,o.jsxs)("p",{role:"error"===a?"alert":void 0,"aria-atomic":"true","aria-live":"polite",className:(0,n.$)("watts-helper-text",`watts-helper-text--${a}
1`,e),id:t,...c,children:["error"===a&&(0,o.jsx)(i.k,{status:"error"}),r]});s.displayName="HelperText"},1282:(e,t,r)=>{var n=r(82113),a=r(15546);e.exports=function(e,t){var r=a(e,t);return n(r)?r:void 0}},1299:(e,t,r)=>{"use strict";r.d(t,{S:()=>h});var n=r(53779),a=r(85587),i=r(12028),o=r(52856),s=r(69222),c=r(1068),l={s:"m",m:"l"},u={s:"m",m:"l"},d=r(60004),p=(0,a.h)(),h=(0,d.forwardRef)(({className:e,checkboxSize:t="m",disabled:r,helperText:a,id:h,indeterminate:f=!1,label:m,link:g,visuallyHiddenLabel:y=!1,...v},b)=>{let _=(0,d.useRef)(null),O=(0,o.k)("watts-checkbox"),C=h||O,E=`${C}-helper-text`,w=b??_,P=!y&&!!a,I=a?.status??"info",x=l[t],S=u[t];return(0,d.useEffect)(()=>{"current"in w&&w.current&&(f&&(w.current.checked=!1),w.current.indeterminate=f)},[f,w]),(0,p.jsxs)("div",{className:(0,n.$)("watts-checkbox",`watts-checkbox--${t}`,e),children:[(0,p.jsxs)("label",{className:(0,n.$)("watts-checkbox__wrapper",{"watts-checkbox__wrapper--disabled":r}),children:[(0,p.jsx)("input",{id:C,type:"checkbox",className:"sr-only","aria-describedby":a&&E,"aria-errormessage":a?.status==="error"?E:void 0,"aria-invalid":a?.status==="error","data-error":a?.status==="error",disabled:r,ref:w,...v}),(0,p.jsx)(i.I,{icon:"checkbox-unchecked",className:"icon-unchecked",size:x}),(0,p.jsx)(i.I,{icon:"checkbox-indeterminate",className:"icon-indeterminate",size:x}),(0,p.jsx)(i.I,{icon:"checkbox-checked",className:"icon-checked",size:x}),(0,p.jsxs)("span",{className:(0,n.$)("watts-checkbox__label",{"sr-only":y}),children:[m,!!g&&(0,p.jsx)(s.N,{...g,"aria-label":g.text,href:g.href,size:S,children:g.text})]})]}),P&&(0,p.jsx)(c.E,{id:E,status:I,disabled:!!r,text:a.text})]})});h.displayName="Checkbox"},1464:(e,t,r)=>{"use strict";r.d(t,{qO:()=>c,tJ:()=>s});var n=r(60004),a=r(48628),i=r(60072);let o=(0,n.createContext)(null),s=({children:e})=>{let{isOpen:t,openDrawer:r,closeDrawer:s}=(0,a.b)(),c=(0,n.useCallback)(()=>r(),[r]),l=(0,n.useCallback)(()=>s(),[s]),u=(0,n.useMemo)(()=>({isContactUsDrawerOpen:t,openContactUsDrawer:c,closeContactUsDrawer:l,closeAccountNavigationDrawer:s}),[t,c,l]);return(0,i.jsx)(o.Provider,{value:u,children:e})},c=()=>{let e=(0,n.useContext)(o);if(!e)throw Error("You need to wrap your component with <ContactUsDrawerProvider>");return e}},1720:(e,t,r)=>{"use strict";r.d(t,{p:()=>p});var n=r(53779),a=r(85587),i=r(52856),o=r(82726),s={l:"m",m:"s",s:"xs"},c={default:"ghost",light:"secondary"},l=r(60004),u=(0,a.h)(),d=["e","E","+","-"],p=(0,l.forwardRef)(({className:e,decrementButton:t,disabled:r,formattedValue:a,id:p,incrementButton:h,label:f,max:m,min:g=0,counterSize:y="l",step:v,value:b,variant:_="default",onChange:O,onUpdate:C,...E},w)=>{let P=(0,l.useRef)(null),I=w??P,x=(0,i.k)("watts-counter"),S=p||x,[T,N]=(0,l.useState)(b),A=!!r||t.disabled||T<g+(v??1),j=!!r||h.disabled||!!(m&&T>m-(v??1)),k=({value:e,step:t,e:r})=>{if("current"in I&&I.current){let n=(({value:e,step:t,min:r,max:n})=>e<r?r:n&&e>n?n:t&&e%t!=0?e-e%t:e)({value:e,step:t,min:g,max:m});I.current.value=String(n),N(n),C?.(r)}};return(0,l.useEffect)(()=>{(b<g||m&&b>m)&&k({value:b})},[]),(0,l.useEffect)(()=>{"current"in I&&I.current&&String(b)!==I.current.value&&k({value:b})},[I,b]),(0,u.jsxs)("div",{className:(0,n.$)("watts-counter",`watts-counter--${y}`,`watts-counter--${_}`,{"watts-counter--disabled":r},e),children:[(0,u.jsx)(o.$,{size:s[y],variant:c[_],"aria-label":t.label,icon:"minus",title:t.label,disabled:A,onClick:()=>{if("current"in I&&I.current){let{step:e,value:r}=I.current,n=""===e?1:Number(e);k({value:Number(r)-n,step:n}),t.onClick?.()}}}),(0,u.jsxs)("div",{className:"watts-counter__data",children:[(0,u.jsx)("input",{id:S,type:"number",defaultValue:b,ref:I,disabled:r,max:m,min:g,step:v,onChange:O,onBlur:e=>{"current"in I&&I.current&&k({value:Number(e.target.value),e})},onFocus:e=>{e.target.select()},onKeyDown:e=>{d.includes(e.key)&&e.preventDefault()},...E}),(0,u.jsx)("label",{className:"sr-only",htmlFor:S,children:f}),(0,u.jsx)("span",{className:"sr-only","aria-live":"polite",children:T}),a&&(0,u.jsx)("span",{className:(0,n.$)("watts-counter__formatted-value",{"watts-counter__formatted-value--disabled":r}),"aria-live":"polite",children:a})]}),(0,u.jsx)(o.$,{size:s[y],variant:c[_],"aria-label":h.label,icon:"plus",title:h.label,disabled:j,onClick:()=>
1{if("current"in I&&I.current){let{step:e,value:t}=I.current,r=""===e?1:Number(e);k({value:Number(t)+r,step:r}),h.onClick?.()}}})]})});p.displayName="Counter"},1935:(e,t,r)=>{var n=r(32410),a=r(41018),i=r(76498),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[n(e)]}},1970:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var n=r(60004),a=r(79426),i=r.n(a);function o({key:e,initialValue:t=null,compressData:r=!0,storageType:a="localStorage"}){let{0:o,1:s}=(0,n.useState)(t),c=e=>r?JSON.parse(i().decompressFromUTF16(e)):JSON.parse(e),l=(0,n.useCallback)(()=>{try{let r=window[a].getItem(e);return(r?c(r):null)??t}catch{return t}},[t,e]),u=(0,n.useCallback)(t=>{try{let n=t instanceof Function?t(o):t,c=r?i().compressToUTF16(JSON.stringify(n)):JSON.stringify(n);window[a].setItem(e,c),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:c})),s(n)}catch{return}},[t,e]),d=(0,n.useCallback)(r=>{try{let{key:n,newValue:a}=r,i=a?c(a):void 0;n===e&&i!==o&&s(i??t)}catch{return t}},[e,o]);return(0,n.useEffect)(()=>(s(l()),window.addEventListener("storage",d),()=>{window.removeEventListener("storage",d)}),[]),{storageValue:o,getStorageValue:l,setStorageValue:u,removeStoreValue:(t=e)=>{window[a].removeItem(t),s(null)}}}},2117:(e,t,r)=>{"use strict";r.d(t,{I4:()=>C,PB:()=>I,Qq:()=>E,VH:()=>P,l:()=>x});var n=r(54688),a=r(12072),i=r(60004),o=r(27245);r(10983);var s=r(62175),c=r.n(s),l=r(22951),u=r(87335),d=r(31437),p=r(68915),h=r(85582),f=r(26074);r(60072);let m=["page_type_1","page_type_2","numberOfResults","experiments","checkout_preferences","view_type","steps","user"],g=["user_type"],y=["quantity"],v=["quantity"],b=["quantity"];function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let C=e=>{(0,u.$)("gtm")||c().dataLayer(e)};class E{_tempEcommerceData={};_pageViewGateArmed=!1;_pageViewSent=!1;_gtmDomReady=!1;_pendingViewItemListEvents=[];constructor(e){this.init(e)}_flushPendingViewItemListEvents=()=>{if(0===this._pendingViewItemListEvents.length)return;let e=this._pendingViewItemListEvents;this._pendingViewItemListEvents=[],e.forEach(e=>e())};_openPageViewGate=()=>{this._pageViewSent=!0,this._pageViewGateArmed=!1,this._gtmDomReady&&this._flushPendingViewItemListEvents()};notifyGtmDomReady=()=>{this._gtmDomReady=!0,this._flushPendingViewItemListEvents()};armPageViewGate=()=>{this._pageViewSent||(this._pageViewGateArmed=!0)};resetPageViewGate=()=>{this._flushPendingViewItemListEvents(),this._pageViewSent=!1,this._pageViewGateArmed=!1};init=({opco_id:e,authContext:t,cart:r,locale:n})=>{let a=t?.guestUser&&!t?.user,i=t?.associateUser?.userId?h.Vg.ASSOCIATE:h.Vg.CUSTOMER;this._basicCommonData={opco_id:e,language:n?.split("-")[0]?.toUpperCase(),user_type:a?h.oZ:i},this._withBranchCommonData=O({branch:r?.logisticDetails?.facilityName||h.vN.NONE},this._basicCommonData),this._withAssociateAppCommonData=O(O({},this._basicCommonData),{},{user_type:h.Vg.ASSOCIATE}),this._authContext=t,this._onlyOpcoAndLanguage={opco_id:e,language:n?.split("-")[0]?.toUpperCase()}};_getDocsListData=({docs:e,index:t,indices:r,metadata:n,green:a,listName:i,isRecommendedProduct:o,itemStatus:s,groupName:c,viewType:l})=>{let{isLoggedIn:u,isGuestUser:p}=this._authContext||{},m=o?{recommended_product:o}:{},g=c?{group_name:c}:{},y=l?{view_type:l}:{},v=i?d.k2[i]:void 0,b=v?{item_list_name:v.listName,item_list_id:v.listId}:{},_=(0,f.AR)(),C={ecommerce:O(O({currency:e?.[0]?.price?.productPrices?.[0]?.netPrice?.currency??this._authContext?.user?.currency??h.vN.NONE},b),{},{items:e?.map((e,n)=>{let a=s||((0,f.Cg)(e)?h.jn.HAS_SUCCESSORS:void 0),o=(0,f.FZ)(e,(r?.[n]??t??n)+1,a,_);return o?.item_id===h.vN.NONE?O(O(O(O(O(O(O({},o),(0,f.EM)(e,e?.price?.productPrices?.[0],i,a,_)),(u||p)&&{stock:(0,f.Yt)(e?.stockData)}),m),g),b),y):O(O(O(O(O({},o),m),g),b),y)}),green:a})};if(n?.widget){let{widget:e}=n;C.ecommerce.item_list_id=e.id,C.ecommerce.item_list_name=i??e.name,C.ecommerce.item_list_type=e.type,C.ecommerce.item_list_rid=e.rid,C.ecommerce.items=C.ecommerce.items.map(t=>O(O({},t),{},{item_list_id:e.id,item_list_name:i??e.name}))}return C};setTempEcommerceData=e=>{this._tempEcommerceData=e};getTempEcommerceData=()=>this._tempEcommerceData;_sendEventWithCurrency=(e,t,r={})=>{let n=O({currency:this._authContext?.user?.currency??h.vN.NONE},this._basicCommonData);C({dataLayer:O(O({event:e,event_category:t},n),r)})};_sendEvent=(e,t,r={})=>{C({dataLayer:O(O({event:e,event_category:t},this._basicCommonData),r)})};_sendEventWithOpcoAndLanguage=(e,t,r={})=>{C({dataLayer:O(O({event:e,event_category:t},this._onlyOpcoAndLanguage),r)})};_sendCheckoutEvent=(e,t,r={})=>{C({dataLayer:O(O({event:e,event_category:t},this._withBranchCommonData),r)})};_getProductEcommerceData=({products:e,cartSource:t,quantity:r,priceData:n,deliveryIndicator:a,itemVariant:i,itemBuyBox:s=!1,promotion_id:c=null,promotion_name:l=null,view_type:u=null,subQuantity:p,listName:m,packagingOption:g,cart_id:y,isRecommendedProduct:v=!1,productIndex:b,itemStatus:_,groupName:C,viewType:E,numberOfStoresWithStock:w,suffix:P})=>{let{isLoggedIn:I,isGuestUser:x}=this._authContext||{},S=m?d.k2[m]:void 0,T=S?{item_list_name:S.listName,item_list_id:S.listId}:{},N=C?{page:{page_type_1:h.g$.CATALOG,page_type_2:h.ms.PDP}}:{},A=E?{view_type:E}:{},j=void 0!==b?{index:b+1}:{},k=(0,f.AR)();return O(O({},N),{},{ecommerce:O(O({cart_id:y,currency:n?.netPrice?.currency||this._authContext?.user?.currency||h.vN.NONE},T),{},{items:e.map(e=>{let d=_||((0,f.Cg)(e)?h.jn.HAS_SUCCESSORS:void 0);return O(O(O(O(O(O(O(O(O(O(O(O(O(O(O({},(0,f.EM)(e,n,m,d,k)),t&&{cart_source:t??h.vN.NONE}),r&&{quantity:r??h.vN.NONE}),s&&{item_buy_box:(0,f.Dl)(e?.productId,e?.identifier?.stockIndicator,a,n,o.b)||h.vN.NONE}),(I||x)&&{stock:(0,f.Yt)(a,w,P)}
1),i&&{discount:(0,f.cT)(n)}),c&&{promotion_id:c,promotion_name:l}),u&&{view_type:u}),e?.isCuttable&&p&&{subQuantity:p}),g&&{item_packaging:g}),{},{recommended_product:v},b>=0&&{index:b+1}),C&&{group_name:C}),T),A),j)})})})};_sendAssociateEvent=(e,t,r={})=>{C({dataLayer:O(O({event:e,event_category:t},this._withAssociateAppCommonData),r)})};sendPageViewGtmTag=e=>{let{page_type_1:t,page_type_2:r,numberOfResults:a,experiments:i=[],checkout_preferences:o,view_type:s,steps:c,user:l}=e,u=(0,n.A)(e,m),{isLoggedIn:d,store:p,user:f,guestUser:g}=this._authContext||{},y=window.location.href,v=document.title,b=document.referrer,_=O(O(O(O({login:d?h.vN.YES:h.vN.NO,user_type:this._basicCommonData.user_type??h.vN.NONE,id:f?.emailHash??h.vN.NONE,account_id:f?.accountId??h.vN.NONE,branch_name:this._withBranchCommonData.branch,opco_id:this._basicCommonData.opco_id},this?._basicCommonData?.language&&{language:this._basicCommonData.language}),d&&O({offline:void 0,segment:void 0,customer_type:void 0,customer_id:void 0,branch_location:p?.location,branch_id:p?.facilityId},o&&{checkout_preferences:o})),g&&{guest_id:g.userId,account_id:g?.accountId??h.vN.NONE}),l);C({dataLayer:O(O({event:"pageview",page:O(O(O({page_type_1:t,page_type_2:r,page_location:y,page_title:v,page_referral:b},s&&{view_type:s}),i.length>0?{experiments:i}:{}),c&&{steps:c}),user:_},void 0!==a?{numberOfResults:a}:{}),u)}),this._openPageViewGate()};sendExperimentInfoGtmTag=(e,t)=>{let{user:r,guestUser:n}=this._authContext||{},a=r?.accountId||n?.accountId||h.vN.NONE;C({dataLayer:O({event:h.cP.EXPERIMENT_INFO,experiment_name:e,experiment_variant:t,account_id:a},this._basicCommonData)})};sendPageViewPDPGtmTag=({product:e,priceData:t,deliveryIndicator:r,numberOfStoresWithStock:n,isLoggedIn:a,id:i,account_id:o,userType:s})=>{let c=r?.deliveryIndicator?.deliveryIndicators?.[0]?.extendedDeliveryInformation?.providerType==="SUPPLIER"?1:h.vN.NONE,l=`${!!this._withBranchCommonData.branch}_${c}`;C({dataLayer:O({event:h.cP.PAGEVIEW,language:this._basicCommonData.language,opco_id:this._basicCommonData.opco_id,page:{page_type_1:h.g$.CATALOG,page_type_2:h.Cm.PDP},user:{account_id:o,branch_name:this._withBranchCommonData.branch,id:i,login:a?h.vN.YES:h.vN.NO,user_type:s}},this._getProductEcommerceData({products:[e],priceData:t,deliveryIndicator:r,itemBuyBox:!0,numberOfStoresWithStock:n,suffix:l}))}),this._openPageViewGate()};sendContactFormGtmTag=e=>this._sendEvent("submit_contact_form","browse_catalog",e);sendOpenFeedbackGtmTag=()=>this._sendEvent("click_feedback_button","browse_catalog");sendInteractFeedbackBannerGtmTag=e=>this._sendEvent("interact_feedback_banner","browse_catalog",e);sendSubmitFeedbackFormGtmTag=()=>this._sendEvent("submit_feedback_form","browse_catalog");sendSubnavGtmTag=e=>this._sendEvent(h.ms.MENU,"",{event_category:e});sendAddToCartGtmTag=({product:e,quantity:t,cartSource:r,priceData:n,deliveryIndicator:a,listName:i,subQuantity:o,packagingOption:s,cart_id:c,isRecommendedProduct:l,productIndex:u,groupName:d,viewType:p,eventCategory:f,eventRelatedType:m,pageType1:g,pageType2:y})=>{let v=a?.deliveryIndicator?.deliveryIndicators?.[0]?.extendedDeliveryInformation?.providerType==="SUPPLIER"?1:h.vN.NONE,b=`${!!this._withBranchCommonData.branch}_${v}`;this._sendCheckoutEvent(h.cP.ADD_TO_CART,f||(d?h.ms.PRODUCT_RELATION:h.ms.CHECKOUT),O(O(O({},this._getProductEcommerceData({cart_id:c,products:[e],cartSource:r,quantity:t,priceData:n,deliveryIndicator:a,itemBuyBox:!0,itemVariant:!0,listName:i,subQuantity:o,packagingOption:s,isRecommendedProduct:l,productIndex:u,groupName:d,viewType:p,suffix:b})),m?{event_related_type:m}:{}),g&&y&&{page:{page_type_1:g,page_type_2:y}}))};sendCableCutDrawerGtmTag=({product:e,quantity:t,cartSource:r,priceData:n,deliveryIndicator:a,listName:i,subQuantity:o,packagingOption:s,cart_id:c,isRecommendedProduct:l,productIndex:u,groupName:d,viewType:p,eventCategory:f,userId:m,loginStatus:g,userType:y,accountId:v,event:b,eventRelatedType:_,pageType1:C=h.g$.CATALOG,pageType2:E=h.Cm.PDP})=>{let w=a?.deliveryIndicator?.deliveryIndicators?.[0]?.extendedDeliveryInformation?.providerType==="SUPPLIER"?1:h.vN.NONE,P=`${!!this._withBranchCommonData.branch}_${w}`;this._sendCheckoutEvent(b,f||(d?h.ms.PRODUCT_RELATION:h.ms.CHECKOUT),O(O({},this._getProductEcommerceData({cart_id:c,products:[e],cartSource:r,quantity:t,priceData:n,deliveryIndicator:a,itemBuyBox:!0,itemVariant:!0,listName:i,subQuantity:o,packagingOption:s,isRecommendedProduct:l,productIndex:u,groupName:d,viewType:p,suffix:P})),{},{page:{page_type_1:C,page_type_2:E},event_related_type:_,user:{id:m,login:g,user_type:y,account_id:v,branch_name:this._withBranchCommonData.branch}}))};sendAddToWishlistGtmTag=({product:e,quantity:t,priceData:r,deliveryIndicator:n,cartSource:a,cart_id:i})=>{this._sendCheckoutEvent(h.cP.ADD_TO_WISHLIST,h.ms.CHECKOUT,O({},this._getProductEcommerceData({cart_id:i,products:[e],quantity:t,priceData:r,deliveryIndicator:n,itemVariant:!0,cartSource:a})))};sendChangeDeliveryAddressGtmTag=()=>
1this._sendCheckoutEvent(h.ms.CHANGE_DELIVERY_ADDRESS,h.ms.ACCOUNT);sendCreateCartGtmTag=({cart_id:e,user:t,store:r})=>{C({dataLayer:O(O({event:h.cP.CREATE_CART},this._onlyOpcoAndLanguage),{},{user:{account_id:t?.accountId||h.vN.NONE,branch_name:r?.name||this._withBranchCommonData.branch||h.vN.NONE,id:t?.emailHash||h.vN.NONE,login:h.vN.YES,user_type:h.Vg.CUSTOMER},ecommerce:{currency:t?.currency??h.vN.NONE,cart_id:e}})})};sendAssociatePageViewGtmTag=({page_type_1:e,page_type_2:t,isLoggedIn:r,user:a,accountId:i})=>{let o=this._basicCommonData,{user_type:s}=o,c=(0,n.A)(o,g),l=O({},r&&{login:r?h.vN.YES:h.vN.NO,id:a?.emailHash||h.vN.NONE,user_type:h.Vg.ASSOCIATE,account_id:i||h.vN.NONE,offline:void 0,segment:void 0,customer_type:void 0,customer_id:void 0,branch_name:void 0,branch_location:void 0,branch_id:void 0});C({dataLayer:O(O({event:"pageview"},c),{},{page:{page_type_1:e,page_type_2:t},user:O({},l)})})};sendConnectOnBehalfOfGtmTag=()=>this._sendAssociateEvent("connect_on_behalf_of","account");sendSelectItemGtmTag=({docs:e,index:t,metadata:r,green:n,listName:a,isRecommendedProduct:i,eventCategory:o=h.ms.BROWSE_CATALOG,itemStatus:s,groupName:c,viewType:l,eventRelatedType:u})=>this._sendCheckoutEvent(h.cP.SELECT_ITEM,c?h.ms.PRODUCT_RELATION:o,O(O(O({},c?{page:{page_type_1:h.g$.CATALOG,page_type_2:h.ms.PDP}}:{}),u?{event_related_type:u}:{}),this._getDocsListData({docs:e,index:t,metadata:r,green:!!n,listName:a,isRecommendedProduct:i,itemStatus:s,groupName:c,viewType:l})));sendViewItemListGtmTag=({docs:e,metadata:t,green:r,listName:n,isRecommendedProduct:a,eventCategory:i=h.ms.BROWSE_CATALOG,itemStatus:o,pageType1:s,pageType2:c,viewType:l,productIndices:u})=>{let{isLoggedIn:d,user:p,guestUser:f,associateUser:m,store:g}=this._authContext||{},y=window.location.href,v=document.title,b=document.referrer,_=O(O({login:d?h.vN.YES:h.vN.NO},d&&{id:p?.emailHash||h.vN.NONE,user_type:m?.userId?h.Vg.ASSOCIATE:h.Vg.CUSTOMER,account_id:p?.accountId||h.vN.NONE,offline:h.vN.NONE,segment:h.vN.NONE,customer_type:h.vN.NONE,customer_id:h.vN.NONE,branch_name:this._withBranchCommonData.branch,branch_location:g?.location||h.vN.NONE,branch_id:g?.facilityId||h.vN.NONE}),f&&{account_id:f?.accountId||h.vN.NONE,branch_name:this._withBranchCommonData.branch,guest_id:f.userId,user_type:h.oZ}),E=this._getDocsListData({docs:e,indices:u,metadata:t,green:!!r,listName:n,isRecommendedProduct:a,itemStatus:o}),w=i===h.ms.BROWSE_DYNAMIC_CATEGORY?O(O({},E),{},{ecommerce:O(O({},E.ecommerce),{},{item_list_name:"dynamic_category",items:E.ecommerce?.items?.map(e=>O(O({},e),{},{item_list_name:"dynamic_category"}))})}):E,P=()=>C({dataLayer:O(O(O({event:h.cP.VIEW_ITEM_LIST,event_category:i,opco_id:this._basicCommonData.opco_id},this?._basicCommonData?.language&&{language:this._basicCommonData.language}),s||c?{page:O({page_type_1:s,page_type_2:c,page_location:y,page_title:v,page_referral:b},l&&{view_type:l})}:{}),{},{user:_},w)});!this._pageViewGateArmed||this._gtmDomReady&&this._pageViewSent?P():this._pendingViewItemListEvents.push(P)};sendViewItemGtmTag=({product:e,priceData:t,deliveryIndicator:r,isRecommendedProduct:n,eventCategory:a=h.ms.BROWSE_CATALOG,itemStatus:i,numberOfStoresWithStock:o,cartId:s,listName:c,hasCarbon:l,featuresIncluded:u})=>{let{isLoggedIn:d,user:p,guestUser:f,associateUser:m}=this._authContext||{},g=u?{page:{page_type_1:h.g$.CATALOG,page_type_2:h.Cm.PDP},user:O(O({login:d?h.vN.YES:h.vN.NO},d&&{id:p?.emailHash||h.vN.NONE,user_type:m?.userId?h.Vg.ASSOCIATE:h.Vg.CUSTOMER,account_id:p?.accountId||h.vN.NONE,branch_name:this._withBranchCommonData.branch}),f&&{account_id:f?.accountId||h.vN.NONE,branch_name:this._withBranchCommonData.branch,user_type:h.oZ})}:{},y=this._getProductEcommerceData({cart_id:s,products:[e],priceData:t,deliveryIndicator:r,itemBuyBox:!0,isRecommendedProduct:n,itemStatus:i,numberOfStoresWithStock:o,listName:c});return this._sendCheckoutEvent(h.cP.VIEW_ITEM,a,O(O(O(O({},y),void 0!==l&&{ecommerce:O(O({},y.ecommerce),{},{items:y.ecommerce.items.map(e=>O(O({},e),{},{green:String(l)}))})}),u&&{features_included:u}),g))};sendClickMultiSeriesCtaGtmTag=({ctaType:e})=>{let{isLoggedIn:t,user:r,guestUser:n,associateUser:a}=this._authContext||{};return this._sendEvent(h.cP.CLICK_CTA,h.ms.PRODUCT_PAGE,{event_related_type:h.wP.MULTIPLE_SERIES,CTA_type:e,page:{page_type_1:h.g$.CATALOG,page_type_2:h.Cm.PDP},user:O(O({login:t?h.vN.YES:h.vN.NO},t&&{id:r?.emailHash||h.vN.NONE,user_type:a?.userId?h.Vg.ASSOCIATE:h.Vg.CUSTOMER,account_id:r?.accountId||h.vN.NONE,branch_name:this._withBranchCommonData.branch}),n&&{account_id:n?.accountId||h.vN.NONE,branch_name:this._withBranchCommonData.branch,user_t
1ype:h.oZ})})};sendOpenCableCutsDrawerGtmTag=({eventRelatedType:e,eventCategory:t=h.ms.PRODUCT_PAGE,userId:r,loginStatus:n,userType:a,accountId:i,pageType1:o=h.g$.CATALOG,pageType2:s=h.Cm.PDP,cartSource:c=h.oe.DIRECT_PDP})=>this._sendEvent("open_drawer",t,{event_related_type:e,cart_source:c,page:{page_type_1:o,page_type_2:s},user:{id:r,login:n,user_type:a,account_id:i,branch_name:this._withBranchCommonData.branch}});sendCloseCableCutsDrawerGtmTag=({eventRelatedType:e,eventCategory:t=h.ms.PDP,userId:r,loginStatus:n,userType:a,accountId:i,pageType1:o=h.g$.CATALOG,pageType2:s=h.Cm.PDP})=>this._sendEvent("close_drawer",t,{event_related_type:e,page:{page_type_1:o,page_type_2:s},user:{id:r,login:n,user_type:a,account_id:i,branch_name:this._withBranchCommonData.branch}});sendClickCableCutsCtaGtmTag=({eventRelatedType:e,eventCategory:t=h.ms.PDP,userId:r,loginStatus:n,userType:a,accountId:i,pageType1:o=h.g$.CATALOG,pageType2:s=h.Cm.PDP})=>this._sendEvent("click_cta",t,{event_related_type:e,page:{page_type_1:o,page_type_2:s},user:{id:r,login:n,user_type:a,account_id:i,branch_name:this._withBranchCommonData.branch}});sendSelectCableCutContentGtmTag=({eventRelatedType:e,eventCategory:t=h.ms.PDP,userId:r,loginStatus:n,userType:a,accountId:i,pageType1:o=h.g$.CATALOG,pageType2:s=h.Cm.PDP})=>this._sendEvent("select_content",t,{event_related_type:e,page:{page_type_1:o,page_type_2:s},user:{id:r,login:n,user_type:a,account_id:i,branch_name:this._withBranchCommonData.branch}});sendClickSearchBarGtmTag=()=>this._sendEventWithCurrency("click_search",h.ms.BROWSE_CATALOG);sendClickSeeMoreRecommendedProductsGtmTag=(e=d.IQ.SEARCH_RECO_ENGINE)=>this._sendEvent("click_cta",h.ms.BROWSE_CATALOG,{CTA_type:e,clicked_link:"see_more"});sendApplyFilterGtmTag=({facetKey:e,isValueChecked:t,origin:r})=>{let n={type:(0,f.Gj)(e)?h.a.GENERAL:h.a.TECHNICAL,name:e,active:t?h.c6.INACTIVE:h.c6.ACTIVE};(0,u.$)("gtm")||this._sendEvent(h.cP.APPLY_FILTER,r||h.ms.BROWSE_CATALOG,{filter:O({},n)})};sendApplyFilterToggleGtmTag=({facetKey:e,isValueChecked:t,origin:r})=>{if((0,u.$)("gtm"))return;let n={type:h.a.TOGGLE,name:e,active:t?h.c6.INACTIVE:h.c6.ACTIVE};this._sendEvent(h.cP.APPLY_FILTER,r||h.ms.BROWSE_CATALOG,{filter:O({},n)})};sendClearAllFiltersGtmTag=(e,t)=>{(0,u.$)("gtm")||this._sendEvent(e,t)};sendOpenFilterDrawerGtmTag=()=>{this._sendEvent(h.cP.OPEN_FILTER,h.ms.BROWSE_CATALOG)};sendClickPartnerLinkGtmTag=()=>{this._sendEvent(h.cP.PARTNER_LINK,h.ms.BROWSE_CATALOG)};sendClickCarouselGtmTag=(e,t,r)=>this._sendEventWithCurrency("click_carousel","browse_catalog",{product:e??h.vN.NONE,carousel_type:`${t}_carousel`,related_product:r??h.vN.NONE});sendCheckAvailabilityGtmTag=(e,t)=>{let r={[l.y$.PLP]:"browse_catalog",[l.y$.PDP]:"product"};this._sendEventWithCurrency("check_availability",r[t]??h.vN.NONE,{product:e??h.vN.NONE})};sendConfirmSpaGtmTag=()=>this._sendCheckoutEvent(h.cP.CONFIRM_SPA,h.ms.CHECKOUT);sendClickReinsuranceGtmTag=()=>this._sendEvent("click_reinsurance","browse_catalog");sendSubmitSearchGtmTag=({searchTerm:e})=>this._sendEventWithCurrency("submit_search","browse_catalog",{search_term:e??h.vN.NONE});sendSuggestedSearchGtmTag=({searchTerm:e,suggestedQuery:t})=>this._sendEventWithCurrency("suggested_search","browse_catalog",{search_term:e??h.vN.NONE,suggested_query:t??h.vN.NONE});sendClickSuggestedBrandGtmTag=({searchTerm:e,suggestedBrand:t,eventRelatedType:r})=>{let{isLoggedIn:n,user:a,guestUser:i,associateUser:o}=this._authContext||{},s=O(O({login:n?h.vN.YES:h.vN.NO},n&&{id:a?.emailHash||h.vN.NONE,user_type:o?.userId?h.Vg.ASSOCIATE:h.Vg.CUSTOMER,account_id:a?.accountId||h.vN.NONE}),i&&{account_id:i?.accountId||h.vN.NONE,user_type:h.oZ});C({dataLayer:O(O({event:"suggested_brand_search",event_related_type:r,branch_name:this._withBranchCommonData.branch},this._onlyOpcoAndLanguage),{},{event_category:h.ms.BROWSE_CATALOG,search_term:e??h.vN.NONE,suggested_query:t??h.vN.NONE,group_name:"BRAND",user:O(O({},s),{},{branch_name:this._withBranchCommonData.branch})})})};sendCreateWishlistGtmTag=()=>this._sendEvent("create_wishlist","browse_catalog");sendDuplicateWishlistGtmTag=()=>this._sendEvent("duplicate_wishlist","browse_catalog");sendUpdateWishlistGtmTag=()=>this._sendEvent("update_wishlist","browse_catalog");sendRenameWishlistGtmTag=()=>this._sendEvent("rename_wishlist","browse_catalog");sendClickAccessoryGtmTag=(e,t)=>
1this._sendEvent("click_accessory","browse_catalog",{product:e,related_product:t});sendClickSuccessorsGtmTag=(e=h.ms.BROWSE_CATALOG)=>this._sendEvent(h.cP.CLICK_SUCCESSORS,e);sendClickAccessoriesGtmTag=(e=h.ms.BROWSE_CATALOG)=>this._sendEvent(h.cP.CLICK_ACCESSORIES,e);sendClickSimilarsGtmTag=(e=h.ms.BROWSE_CATALOG)=>this._sendEvent(h.cP.CLICK_SIMILARS,e);sendRemoveFromWishlistGtmTag=e=>{this._sendEvent(h.cP.REMOVE_FROM_WISHLIST,h.ms.CHECKOUT,{product:e})};sendAddToWishlistCatalogGtmTag=(e,t)=>{this._sendEvent(h.cP.ADD_TO_WISHLIST,h.ms.CHECKOUT,{product:e,cart_id:t})};sendAddAllToWishlistCompletedGtmTag=({cart_id:e})=>{this._sendEvent(h.cP.ADD_ALL_TO_WISHLIST,h.ms.CHECKOUT,O({cart_id:e},this.getTempEcommerceData())),this.setTempEcommerceData({})};sendDecreaseQuantityGtmTag=e=>this._sendEvent("decrease","browse_catalog",{product:e});sendIncreaseQuantityGtmTag=e=>this._sendEvent("increase","browse_catalog",{product:e});sendSelectRegularPriceGtmTag=e=>this._sendEvent("select_regular_price","browse_catalog",{product:e});sendSelectPromotionGtmTag=(e,t,r,n,a)=>this._sendEvent("select_promotion","browse_catalog",O(O({},this._withBranchCommonData),this._getProductEcommerceData({products:[e],quantity:r,priceData:t,promotion_id:n,promotion_name:a})));sendChangeVariantGtmTag=({productId:e,attributeName:t,attributeValue:r})=>this._sendEvent("change_variant","catalog",{ecommerce:{item:{item_id:e,attribute_name:t,attribute_value:r}}});sendRefundConfirmationGtmTag=({transaction_id:e,currency:t,items:r})=>{this._sendEvent(h.cP.REFUND,h.ms.ACCOUNT,{transaction_id:e,currency:t,ecommerce:{items:r.map(e=>{let{quantity:t}=e;return O({},(0,n.A)(e,y))})}})};sendAddCustomReferenceGtmTag=({status:e,product:t,priceData:r,stock:n})=>this._sendEvent("add_reference","browse_catalog",{status:e,ecommerce:{item:O(O({},(0,f.EM)(t,r)),{},{stock:n,variant:!!t.variants?.length})}});sendViewReferences=()=>{this._sendEvent("pageview","browse_catalog",{page:{page_type_1:h.g$.CATALOG,page_type_2:h.ms.REFERENCE}})};sendClickVariants=({product:e,priceData:t,stock:r})=>this._sendEventWithCurrency("show_variant","catalogue",{ecommerce:{item:O(O({},(0,f.EM)(e,t)),{},{stock:r,variant:e?.hasVariant})}});sendViewTypeUpdatedGtmTag=e=>{this._sendEvent("view_type_updated","view_type",{view_type:e})};sendFilterRelatedProductGroupsGtmTag=(e,t)=>this._sendEvent(h.cP.APPLY_FILTER,h.ms.PRODUCT_RELATION,{filter:{type:"product-relation",name:t,active:1},view_type:e,page:{page_type_1:h.g$.CATALOG,page_type_2:h.ms.PDP},branch:this._withBranchCommonData.branch});sendPackagingOption=()=>this._sendEvent("packaging_selection","checkout");sendViewClickBrand=({brandName:e,brandAccess:t})=>{this._sendEvent("click_brand","catalog",{brand_name:e,brand_access:t})};sendViewClickBrandAtoZ=e=>{this._sendEvent("click_brand_a_to_z","catalog",{character_clicked:e})};sendClickBrandCategory=e=>{this._sendEventWithOpcoAndLanguage(h.cP.SELECT_BANNER,h.ms.BRANDS,{user_type:this._basicCommonData.user_type,banner_id:e,banner_name:"brand_categories",banner_type:"ImagesCarousel"})};sendClickBrandReference=()=>{this._sendEvent(h.cP.COPY_REFERENCE,h.ms.BRANDS,{banner_name:"brand_discover_products"})};sendModalRecommendationGtmTag=()=>{this._sendEvent("toaster_personalized_recommendation","browse_catalog")};sendToasterRecommendationGtmTag=()=>{this._sendEvent("toaster_view",h.ms.TOASTER_RECOMMENDATION)};sendToasterRecommendationAddToCartGtmTag=({product:e,priceData:t,deliveryIndicator:r,isRecommendedProduct:n,eventCategory:a=h.ms.TOASTER_RECOMMENDATION,cartId:i,quantity:o,productIndex:s})=>{this._sendEvent("add_to_cart",a,O(O({},this._withBranchCommonData),{},{user_type:this._basicCommonData.user_type},this._getProductEcommerceData({cart_id:i,products:[e],priceData:t,deliveryIndicator:r,quantity:o,productIndex:s,itemBuyBox:!0,cartSource:h.oe.RECOMMENDATION_TOASTER,isRecommendedProduct:n})))};sendToasterRecommendationGoToItemGtmTag=({product:e,priceData:t,deliveryIndicator:r,isRecommendedProduct:n,eventCategory:a=h.ms.TOASTER_RECOMMENDATION,listName:i=d.IQ.PERSONALIZED_RECOMMENDATION,cartId:o,productIndex:s})=>{this._sendEvent(h.cP.SELECT_ITEM,a,O(O({},this._withBranchCommonData),{},{user_type:this._basicCommonData.user_type},this._getProductEcommerceData({cart_id:o,listName:i,products:[e],priceData:t,deliveryIndicator:r,productIndex:s,itemBuyBox:!0,isRecommendedProduct:n})))};sendClosingToasterRecommendationGtmTag=()=>{this._sendEvent("toaster_close",h.ms.TOASTER_RECOMMENDATION)};sendProductCarbonGtmTag=()=>{this._sendEvent("click_cta","browse_catalog",{CTA_type:"tooltip",clicked_link:"product_carbon_footprint"})};sendLoginGtmTag=(e="account")=>this._sendEvent("login",e);sendLoginAssociateGtmTag=()=>this._sendAssociateEvent("login","account_associated");sendLoginFailGtmTag=()=>this._sendEvent("login_fail","account");sendCreateAddressGtmTag=()=>this._sendEvent("create_address","account");sendUpdateAddressGtmTag=()=>this._sendEvent("update_address","account");sendSetDefaultAddressGtmTag=()=>this._sendEvent("set_default_address","account");sendDownloadItemDocumentationGtmTag=e=>this._sendEvent("download_item_documentation","account",{product:e});sendLinkItemDocumentationGtmTag=e=>this._sendEvent("link_item_documentation","account",{product:e});sendWidgetDataGtmTag=e=>{this._sendEvent(h.cP.CLICK_WIDGET,h.ms.DASHBOARD,e)};sendOrderReturnErrorGtmTag=({page:e,topic:t})=>{this._sendEvent(h.cP.ORDER_RETURN_ERROR,h.ms.ACCOUNT,{topic:t,status:"error",page:e})};sendClickMegaMenuGtmTag=({megamenu_term:e,megamenu_type:t})=>this._sendEvent("mega_menu","menu",{megamenu_term:e,megamenu_type:t});sendChangeDefaultStoreGtmTag=({branch_name:e})=>this._sendEvent("change_branch","services",{branch:this._withBranchCommonData.branch,branch_name:e??h.vN.NONE});sendClickFooterGtmTag=({linkId:e})=>this._sendEvent("click_footer","services",{clicked_link:e??h.vN.NONE});sendAppDownloadGtmTag=({branch_name:e})=>this._sendEvent("app_download","services",{opcoID:this._withBranchCommonData.opco_id,language:this._withBranchCommonData.language,branch:this._withBranchCommonData.branch,branch_name:e??h.vN.NONE});sendClickSwitchActiveCartGtmTag=()=>this._sendEvent("change_basket","services");sendClickAutocompleteGtmTag=()=>this._sendEvent("click_autocomplete",h.ms.STORE_LOCATOR);sendClickStoreLocatorCtaGtmTag=({ctaType:e})=>this._sendEvent("click_CTA_storelocator",h.ms.STORE_LOCATOR,{CTA_type:e??h.vN.NONE});sendClickShopInThisStoreCtaGtmTag=()=>this._sendEvent(h.cP.STOCK_LOCATOR,h.ms.STORE_LOCATOR);sendTableViewClickCtaGtmTag=()=>this._sendEvent("click_cta","browse_catalog",{CTA_type:"table_view_pdp_access"});sendBulkAddModalGtmTag=({loginStatus:e,userId:t,userType:r,accountId:n,branchId:a,latitude:i,longitude:o})=>{this._sendEvent(h.cP.PAGEVIEW,"",{page:{page_type_1:h.g$.HOMEPAGE,page_type_2:h.ms.BULK_ADD},user:{id:t,login:e,user_type:r},account_id:n,branch_id:a,branch_location:{latitude:i,longitude:o}})};sendAddedReferencesGtmTag=({method:e,status:t,error:r=""})=>{let n={method:e,status:t};r&&(n.error=r),this._sendEvent(h.ms.BULK_ADD,h.ms.MYACCOUNT,O({},n))};sendAllProductsAddedToCartGtmTag=({branch:e,items:t})=>{this._sendEvent(h.cP.ADD_TO_CART,h.ms.BULK_ADD,{user_type:h.Vg.CUSTOMER,branch:e,ecommerce:{items:t}})};sendAllProductsAddedToFavoritesDrawerGtmTag=({branch:e,items:t})=>{let r=t.map(e=>{let{quantity:t}=e;return O({},(0,n.A)(e,v))});this.setTempEcommerceData({branch:e,ecommerce:{items:r}})};sendAllProductsAddedToFavoritesGtmTag=({branch:e,items:t,cart_id:r})=>{let a=t.map(e=>{let{quantity:t}=e;return O({},(0,n.A)(e,b))});
1this._sendEvent(h.cP.ADD_ALL_TO_WISHLIST,h.ms.CHECKOUT,{user_type:h.Vg.CUSTOMER,branch:e,cart_id:r,ecommerce:{items:a}})};sendExportQuotesGtmTag=()=>{this._sendEvent(h.cP.EXPORT_QUOTES_RESULT,h.ms.EXPORT)};sendDeliveryPromiseGtmTag=({event:e,product:t,priceData:r,deliveryIndicator:n,ctaType:a,page_type_1:i,page_type_2:o,viewType:s,deliveryPromiseData:c,pickupFacilityId:l,deliveryFacilityId:u})=>{let{user:d,isLoggedIn:p}=this._authContext||{},m=this._getProductEcommerceData({products:[t],priceData:r,deliveryIndicator:n,itemBuyBox:!0,viewType:s}),g=m.ecommerce.items[0],y={ecommerce:{currency:m.ecommerce.currency,items:[O(O({},g),{},{stock:`${g.stock}||${(0,f.wM)(c,l,u)}`,supplier:"na",cuts:t?.isCuttable})]}};this._sendEventWithOpcoAndLanguage(e,h.ms.BROWSE_CATALOG,O(O({banner_type:h.cP.DELIVERY_PROMISE},e!==h.cP.DELIVERY_PROMISE_CLOSE_TOOLTIP&&{CTA_type:a}),{},{page:{page_type_1:i,page_type_2:o},user:{account_id:d?.accountId||h.vN.NONE,branch_name:this._withBranchCommonData.branch,id:d?.emailHash||h.vN.NONE,login:p?h.vN.YES:h.vN.NO,user_type:this._basicCommonData.user_type}},y))}}let w=(0,i.createContext)(new E({opco_id:"default",authContext:p.it})),P=e=>e?O(O({},e),{},{isCuttable:e.isCuttable??void 0,isReturnable:e.isReturnable??void 0}):{},I=()=>(0,i.useContext)(w),x=({product:e,priceData:t,viewType:r,pickupFacilityId:n,deliveryFacilityId:a,productViewPage:o,pageType:s,pageSubtype:c})=>{let u=I(),{pageType:d,pageSubtype:p}=(e=>{switch(e){case l.WF.DIRECT_PDP:return{pageType:h.g$.CATALOG,pageSubtype:h.Cm.PDP};case l.WF.SEARCH_PLP:case l.WF.SRP:return{pageType:h.g$.SEARCH,pageSubtype:h.Cm.PLP};case l.WF.DIRECT_PLP:case l.WF.PROMOTION_PLP:default:return{pageType:h.g$.CATALOG,pageSubtype:h.Cm.PLP}}})(o);return(({sendDeliveryPromiseGtmTag:e,product:t,priceData:r,deliveryIndicator:n,viewType:a,pickupFacilityId:o,deliveryFacilityId:s,pageType:c,pageSubtype:l})=>({sendDeliveryPromise:(0,i.useCallback)((i,u,d)=>{t&&e?.({event:i,product:t,priceData:r,deliveryIndicator:n,ctaType:u,page_type_1:c,page_type_2:l,viewType:a??"grid",deliveryPromiseData:d,pickupFacilityId:o,deliveryFacilityId:s})},[e,t,r,n,a,c,l,o,s])}))({sendDeliveryPromiseGtmTag:u?.sendDeliveryPromiseGtmTag,product:e?(e=>({productId:e.id,categorisation:[],features:[],references:[],identifier:{productTitle:e.name,brandName:e.brandName||""}}))(e):void 0,priceData:e&&t?{productId:e.id,netPrice:t.netPrice}:void 0,viewType:r,pickupFacilityId:n,deliveryFacilityId:a,pageType:s??d,pageSubtype:c??p})}},2291:e=>{e.exports={container:"satisfaction-survey-cta_container__U7Z8e",satisfactionSurveyButtonMobile:"satisfaction-survey-cta_satisfactionSurveyButtonMobile__Wtx3q",satisfactionSurveyButtonDesktop:"satisfaction-survey-cta_satisfactionSurveyButtonDesktop__urtVN"}},2390:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},a=(e,t,r)=>{let a,i=n[e];if(a="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+a;else return a+" ago";return a}},2548:(e,t,r)=>{"use strict";r.d(t,{Q:()=>d});var n=r(53779),a=r(85587),i=r(12028),o=r(52856),s=r(46754),c=r(82726),l=r(69222),u=(0,a.h)(),d=({className:e,currentItem:t,goBackLink:r,items:a,label:d,toggleLabel:p,...h})=>{let{isOpen:f,open:m}=(0,s.e)(!1),g=(0,o.k)("watts-breadcrumb"),y=r.onClick?c.$:l.N;return(0,u.jsxs)("nav",{"aria-label":d,className:(0,n.$)("watts-breadcrumb",e),...h,children:[(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(y,{href:r.onClick?void 0:r.href,icon:"arrow-left",size:"s",title:r.label,"aria-label":r.label,variant:"ghost",onClick:r.onClick?r.onClick:void 0}),(0,u.jsx)("button",{className:(0,n.$)("watts-breadcrumb__toggle",f?"sr-only":""),onClick:e=>{e.preventDefault(),m()},type:"button","aria-controls":g,"aria-expanded":f,children:p})]}),(0,u.jsxs)("ol",{id:g,className:(0,n.$)("watts-breadcrumb__list",`watts-breadcrumb__list--${f?"visible":"hidden-mobile"}`),children:[a.map(({label:e,as:t=l.N,...r},n)=>(0,u.jsxs)("li",{children:[(0,u.jsx)(t,{className:"watts-breadcrumb__list__link",variant:"standalone-regular",size:"s",...r,children:e}),(0,u.jsx)(i.I,{className:"watts-breadcrumb__list__chevron",icon:"chevron-right",size:"xs"})]},n)),(0,u.jsx)("li",{children:(0,u.jsx)("span",{"aria-current":"page",className:"watts-breadcrumb__list__current-item",children:t.label})})]})]})};d.displayName="Breadcrumb"},3068:(e,t,r)=>{"use strict";r.d(t,{y8:()=>d});var n=r(53779),a=r(85587),i=r(88088),o=r(82726),s=r(39624),c=(0,a.h)(),l={info:"status",success:"status",error:"alert",warning:"alert"},u={neutral:"status"},d=({actions:e,className:t,closeLabel:r,message:a,onClose:d,status:p,title:h,variant:f,...m})=>{let g=!h&&!e;return(0,c.jsxs)("div",{className:(0,n.$)("watts-toast",{[`watts-toast--${p}`]:p},{[`watts-toast--${f}`]:f},{"watts-toast--message-only":g},t),role:p?l[p]:u[f],...m,children:[p&&(0,c.jsx)(s.k,{status:p,variant:"strong"}),g?(0,c.jsx)(i.E,{className:"watts-toast__message",size:"body-2",children:a}):(0,c.jsxs)("div",{className:"watts-toast__content",children:[!!h&&(0,c.jsx)(i.E,{className:"watts-toast__title",weight:"bold",children:h}),(0,c.jsx)(i.E,{className:"watts-toast__description",size:"body-2",children:a}),e]}),(0,c.jsx)(o.$,{"aria-label":r,icon:"cross-small",onClick:d,size:"s",title:r,variant:"ghost"})]})};d.displayName="Toast"},3070:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(46754),a=r(60004),i=(e=!1)=>{let{close:t,isOpen:r,open:i,setIsOpen:o,toggle:s}=(0,n.e)(e);return(e=>{(0,a.useEffect)(()=>{e?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[e])})(r),{isLocked:r,lockScroll:i,setIsLocked:o,toggleLocked:s,unlockScroll:t}}},3390:(e,t,r)=>{"use strict";r.d(t,{z:()=>h});var n=r(12072),a=r(60004),i=r(94835),o=r(68915),s=r(31811),c=r(7976),l=r(94867),u=r(52322);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let h=()=>{let{user:e,account:t}=(0,o.Z2)(),{cart:r}=(0,s.B_)(),{feature_flags_enable_edi_discount:n}=(0,c.rD)(),d=r?.specialPriceAgreements?.map(e=>e.id??"").join(",")||null,h=r?.project?.id,f=(0,u.PK)(n)?r?.logisticDetails?.logisticMethod:void 0,m=t?.pricePreference,g=(0,l.OZ)(e?.permissions??[]),{0:y,1:v}=(0,a.useState)({}),[b,{data:_}]=(0,i.LSS)();return{requestTotalPriceData:(t,n)=>{b({onCompleted(e){let r=(0,l.uZ)({totalPriceData:e?.getTotalPriceById,pricePermissions:g,pricePreference:m});v(p(p({},y),{},{[t]:r}))},variables:{productId:t,quantity:n,accountId:e?.accountId,spaIds:d,projectId:h,defaultLogisticMethod:f,includeAllSpas:r?.includeAllSpas},context:{standalone:!0}})},totalPriceData:(0,l.uZ)({totalPriceData:_?.getTotalPriceById,pricePermissions:g,pricePreference:m}),totalPrices:y}}},3446:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});let n=function(e){return e.PARAGRAPH="p",e.OL="ol",e.UL="ul",e.LI="li",e.ANCHOR="a",e.SUP="sup",e.SUB="sub",e.STRONG="strong",e.EM="em",e.BR="br",e.IMAGE="img",e.HEADING_1="h1",e.HEADING_2="h2",e.HEADING_3="h3",e.HEADING_4="h4",e.HEADING_5="h5",e}({})},3999:e=>{e.exports={loadingArea:"modal-body_loadingArea__UiJYx",resultsHeader:"modal-body_resultsHeader__n4eUm",loadMoreContainer:"modal-body_loadMoreContainer__pjpJb",messageBoardCenter:"modal-body_messageBoardCenter__ZUNHi",searchResultsContainer:"modal-body_searchResultsContainer__hYHsi",modalBodyContainer:"modal-body_modalBodyContainer__GNT7j"}},4051:(e,t,r)=>{e.exports=r(16299)["__core-js_shared__"]},4090:e=>{e.exports={priceBlockContainer:"price-display-block_priceBlockContainer__agtLy",alignLeft:"price-display-block_alignLeft__9MxQS",alignRight:"price-display-block_alignRight__J24Pb",orderTooltip:"price-display-block_orderTooltip__mVREq",orderTooltipReverse:"price-display-block_orderTooltipReverse__wtsve",secondaryPriceText:"price-display-block_secondaryPriceText__g_40r",priceBeforeReduction:"price-display-block_priceBeforeReduction___aLCX",projectColor:"price-display-block_projectColor__858U_",promotionColor:"price-display-block_promotionColor__lAHBu",spaColor:"price-display-block_spaColor__UKDP1",priceReduction:"price-display-block_priceReduction__1Tidt",priceReductionLeft:"price-display-block_priceReductionLeft__LBRyN",priceMultiplier:"price-display-block_priceMultiplier__W3rbM",mainPriceWithUnit:"price-display-block_mainPriceWithUnit__O3VK6"}},4181:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>n})},4300:e=>{e.exports={backdrop:"web-search-box_backdrop__bPRGO",root:"web-search-box_root__yRR7y",panel:"web-search-box_panel__jx46t",closeButtonMobileView:"web-search-box_closeButtonMobileView__jnDsM",activeSearch:"web-search-box_activeSearch___J02W",activeRoot:"web-search-box_activeRoot__S2L79",form:"web-search-box_form__0RO1z",activeForm:"web-search-box_activeForm__S25fS",barcodeButton:"web-search-box_barcodeButton__m8pKl"}},5185:(e,t,r)=>{"use strict";r.d(t,{n:()=>l});var n=r(42092),a=r(43207),i=r(94835),o=r(96098),s=r(31811),c=r(22951);let l=({facilityId:e,facilityName:t})=>{let[r]=(0,a.B)(),{cart:l}=(0,s.B_)(),{sendToast:u}=(0,n.d)(),[d]=(0,i.aMY)({variables:{cartId:l?.id,facilityId:e},onCompleted:()=>{u({message:`${r("store.selectDrawer.toaster.success")} ${t}`,status:"success",closeLabel:r("common.close.toaster")})},onError:({graphQLErrors:e})=>{u({message:(0,o.kj)(e[0])===c.m1.BULK_ADD_IN_PROGRESS?r("manageReferences.addAllToCartInProgressError"):`${r("store.selectDrawer.toaster.error")} ${t}`,status:"error",closeLabel:r("common.close.toaster")})}});return{updateCartFacility:d}}},5744:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(15428);function a(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n._P in e?e[n._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},5877:(e,t,r)=>{"use strict";r.d(t,{gJ:()=>f,hz:()=>g,rV:()=>m,TO:()=>y,r9:()=>v});var n,a=r(8856),i=r(35664),o=r(14378),s=r(60004),c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,l={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},u=function(e){return l[e]};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var h={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(c,u)}},f=(0,s.createContext)();function m(){return h}var g=function(){function e(){(0,a.A)(this,e),this.usedNamespaces={}}return(0,i.A)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function y(){return n}var v={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h=p(p({},h),e)}(e.options.react),n=e}}},6513:(e,t,r)=>{"use strict";r.d(t,{q:()=>a});let n={};function a(){return n}},6691:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},6745:e=>{e.exports={featuresList:"product-features_featuresList__vRYFr",featureItem:"product-features_featureItem__9AVq3",carbonFootprintValue:"product-features_carbonFootprintValue__Dis5L"}},6888:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});let n=r(60004),a=r(10157),i="function"==typeof IntersectionObserver,o=new Map,s=[];function c(e){let{rootRef:t,rootMargin:r,disabled:c}=e,l=c||!i,[u,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(l||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:a,elements:i}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let a=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=a.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:a},s.push(r),o.set(r,t),t}(r);return i.set(e,t),a.observe(e),function(){if(i.delete(e),a.unobserve(e),0===i.size){a.disconnect(),o.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!u){let e=(0,a.requestIdleCallback)(()=>d(!0));return()=>(0,a.cancelIdleCallback)(e)}},[l,r,t,u,p.current]),[h,u,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7037:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});var n=r(12072),a=r(85504);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t){return(0,a.k)(e,o(o({},t),{},{weekStartsOn:1}))}},7078:(e,t,r)=>{e.exports=r(1282)(r(16299),"DataView")},7470:(e,t,r)=>{"use strict";r.d(t,{O:()=>c});var n=r(53779),a=r(85587),i=r(88088),o=r(62740),s=(0,a.h)(),c=({className:e,size:t="m",text:r,...a})=>(0,s.jsxs)("div",{className:(0,n.$)("watts-loading-area",`watts-loading-area--${t}`,e),...a,children:[(0,s.jsx)(o.y,{size:t}),(0,s.jsx)(i.E,{size:"m"===t?"body-3":"body-4",className:(0,n.$)({"sr-only":"s"===t}),children:r})]});c.displayName="LoadingArea"},7494:(e,t,r)=>{var n=r(32410),a=r(13725);e.exports=function(e){if(!a(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7495:e=>{e.exports={menuList:"menu-list_menuList__mAClU",menuListBorderTop:"menu-list_menuListBorderTop__mPCPT",menuListBorderBottom:"menu-list_menuListBorderBottom__wUE8l"}},7677:e=>{e.exports=function(){return!1}},7764:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(53779),a=r(85587),i=r(88088),o=r(82726),s=r(39624),c=(0,a.h)(),l=({children:e,className:t,closeLabel:r,de
1scription:a,status:l="info",size:u="m",title:d,variant:p="neutral",onClose:h,...f})=>{let m=(0,n.$)("watts-message",`watts-message--${u}`,`watts-message--${l}`,`watts-message--${p}`,t),g=Object.freeze({s:"body-1",m:"body-2",l:"body-3"})[u];return(0,c.jsxs)("div",{className:m,...f,children:[(0,c.jsx)(s.k,{variant:"s"===u?"default":"strong",status:l}),(0,c.jsxs)("div",{className:"watts-message__content",children:[!!d&&(0,c.jsx)(i.E,{className:"watts-message__title",weight:"bold",size:g,children:d}),(0,c.jsx)(i.E,{className:"watts-message__description",size:g,children:a}),e]}),!!h&&(0,c.jsx)(o.$,{onClick:h,"aria-label":r,size:"s",variant:"ghost",icon:"cross-small",title:r})]})};l.displayName="Message"},7788:e=>{e.exports={searchBoxHistoryContainer:"search-box-history_searchBoxHistoryContainer__Y5iWu",titleContainer:"search-box-history_titleContainer__14o9J",seeMoreButton:"search-box-history_seeMoreButton__uUJpH",searchBoxHistory:"search-box-history_searchBoxHistory__FDVBa",title:"search-box-history_title__koSRO",link:"search-box-history_link__C5Ez7",recentSearches:"search-box-history_recentSearches__r30G_",clearAllContainer:"search-box-history_clearAllContainer__U3eTd"}},7976:(e,t,r)=>{"use strict";r.d(t,{XU:()=>g,rD:()=>y,h:()=>v});var n=r(12072),a=r(60004),i=r(24120),o=r.n(i);let s={CONTROL:"control",DISABLED:"disabled",BOOST:"boost",SOFT_BOOST:"soft_boost"},c={BOOST:"BOOST_ALREADY_PURCHASED",SOFT_BOOST:"SOFT_BOOST_ALREADY_PURCHASED"},l={ASC:"ASC"};var u=r(60072);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let{publicRuntimeConfig:p}=o()()||{publicRuntimeConfig:{}},h=(0,a.createContext)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},p)),f=(e,t="default")=>{let r=`-cx-${t.toLowerCase()}`;return{isFlagEnabled:t=>e?.find(e=>e.name===t+r)?.enabled??!1,getFlagVariant:t=>{let n=e.find(e=>e.name===t+r)?.variant;return n?.enabled?n.name:"disabled"},getExperiments:t=>t.reduce((t,n)=>{let a=e.find(e=>e.name===n+r)?.variant;return a?.enabled&&t.push({name:n,variant:a.name}),t},[]),getExperimentFlag:t=>{let n=e?.find(e=>e.name===t+r),a=n?.variant;return{enabled:n?.enabled??!1,variant:a?.enabled?a.name:"disabled",impressionData:n?.impressionData??!1}},getExperimentFlags:()=>e.filter(e=>e.impressionData&&e.enabled&&e.variant?.enabled&&e.name.endsWith(r)).map(e=>({name:e.name.replace(r,""),variant:e.variant.name})),getBoostAlreadyPurchasedParams:t=>{let n=e?.find(e=>e.name===t+r),a=n?.variant,i=a?.enabled?a.name:"disabled";if(i!==s.CONTROL&&i!==s.DISABLED){if(i===s.BOOST)return{sortName:c.BOOST,sortDirection:l.ASC};if(i===s.SOFT_BOOST){let e=a?.payload?.value,t=e?parseInt(e,10):7;return{sortName:c.SOFT_BOOST,sortDirection:l.ASC,sortStrength:isNaN(t)?7:t}}}}}},m=(0,a.createContext)(f([],"")),g=({config:e,featureFlags:t,children:r})=>{let n=(0,a.useMemo)(()=>f(t,e.opco_id),[t,e.opco_id]);return(0,u.jsx)(h.Provider,{value:e,children:(0,u.jsx)(m.Provider,{value:n,children:r})})},y=()=>(0,a.useContext)(h),v=()=>(0,a.useContext)(m)},8225:(e,t,r)=>{"use strict";r.d(t,{S:()=>f});var n=r(12072),a=r(54688),i=r(60004),o=r(10983),s=r(7976),c=r(37504),l=r(97215),u=r(82967);let d=["page"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let f=()=>{let{locales_country:e,stores_drawer_pagination_size:t}=(0,s.rD)(),{query:r,push:n,pathname:p,asPath:f}=(0,o.useRouter)(),m="/store-locator"===p,g=(0,u.O2)(e),{0:y,1:v}=(0,i.useState)(g??null),{0:b,1:_}=(0,i.useState)({lat:0,lng:0}),O=Number(r?.page)-1||0,{0:C,1:E}=(0,i.useState)(O),{0:w,1:P}=(0,i.useState)([]),{0:I,1:x}=(0,i.useState)(0),S=Number(t||c.v);(0,i.useEffect)(()=>{m&&E(O)},[O,m]);let T=(0,i.useCallback)(e=>{if(E(e),m){let{page:t}=r,i=(0,a.A)(r,d),o=e>0?{page:String(e+1)}:{};n({pathname:"/store-locator",query:h(h({},i),o)},void 0,{shallow:!0})}},[r,n,m]),{loading:N,error:A,data:j}
1=(0,l.iU)({skip:!1,variables:{address:y,page:C,size:S},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-first"});return(0,i.useEffect)(()=>{if(j){let e=(0,u.Dl)(j?.storesByAddress??null);e&&P(e);let t=j?.storesByAddress?.facilities?.[0]?.facility;t?.location?.latitude&&t?.location?.longitude&&_({lat:t?.location?.latitude,lng:t?.location?.longitude}),x((j.storesByAddress?.totalElements||0)-(C+1)*S)}},[j,y]),{stores:w,handleSearchAddress:e=>{e.text!==y&&(P([]),v(e?.text),E(0),x(0))},handleDataReset:e=>{e!==y&&(P([]),v(e),T(0),x(0))},nextResultSetCount:I,error:A,loading:N,currentPage:C,setCurrentPage:T,getHrefByPageNum:(0,i.useCallback)(e=>(0,u.k_)(e,f,r),[r,f]),totalStoresCount:j?.storesByAddress?.totalElements||0,pagination:S,searchedAddress:y,setSearchedAddress:v,currentStoreCoordinates:b,serverSideStoresList:(0,u.Dl)(j?.storesByAddress)||[],serverSideTotalElements:j?.storesByAddress?.totalElements||0}}},8357:(e,t,r)=>{"use strict";r.d(t,{J:()=>m,c:()=>g});var n=r(12072);r(60004);var a=r(52304),i=r(39624),o=r(88088),s=r(59100),c=r(82726),l=r(35695),u=r(26503),d=r.n(u),p=r(60072);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e}({}),g=({size:e=m.LARGE,image:t,imageClassName:r,imageSize:n=196,illustration:u,iconProps:h,heading:g,title:y,description:v,primaryCta:b,secondaryCta:_,className:O,iconClassName:C,dataTestId:E="message-board"})=>(0,p.jsxs)("div",{className:(0,l.A)(d().container,d()[e],O),"data-testid":E,children:[t&&(0,p.jsx)(a._,{alt:"",src:t,ratio:"square",width:n,height:n,className:(0,l.A)(d().icon,r),"data-testid":"messageboard-image"}),h&&(0,p.jsx)(i.k,f(f({},h),{},{className:(0,l.A)(d().icon,C),"data-testid":"status-icon"})),u&&(0,p.jsx)("div",{className:d().illustration,children:u}),y&&(0,p.jsx)(o.E,{color:"subtlest",size:"body-1","data-testid":"title",className:d().title,children:y}),g&&(0,p.jsx)(s.D,{as:"h2",size:"body-4",weight:"bold","data-testid":"heading",className:d().heading,children:g}),v&&(0,p.jsx)(o.E,{color:"subtlest",size:"body-3","data-testid":"description",className:d().description,children:v}),b&&b.length>0&&(0,p.jsx)("div",{className:d().cta,children:b.map(({label:e,action:t,variant:r,size:n,icon:a})=>{let i={onClick:t,variant:r??"tertiary","data-testid":"messageboard-proceed-button",size:n??"l"};return a?(0,p.jsx)(c.$,f(f({},i),{},{icon:a,children:e}),e):(0,p.jsx)(c.$,f(f({},i),{},{children:e}),e)})}),_&&(0,p.jsx)(c.$,{onClick:_.action,variant:"ghost","data-testid":"messageboard-cancel-button",children:_.label})]})},8549:e=>{e.exports={container:"product-info_container__tNI9A",summary:"product-info_summary__mZstt",title:"product-info_title__3h6Dn",gridContainer:"product-info_gridContainer__SGNpb",tagsContainer:"product-info_tagsContainer__9KL1w",sponsoredLabel:"product-info_sponsoredLabel__Ugnhm"}},8618:e=>{e.exports={sideBox:"stock-locator_sideBox__VrWX6",fullHeight:"stock-locator_fullHeight__yVui_",root:"stock-locator_root__rmJ3U",heading:"stock-locator_heading__pSVJY",headingInMap:"stock-locator_headingInMap__MLrTf",titleInMap:"stock-locator_titleInMap__4PMVa",listHeading:"stock-locator_listHeading__q8zVH",spinner:"stock-locator_spinner__ixg5K",button:"stock-locator_button__1MOO9",message:"stock-locator_message__U_V_q"}},8856:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},9073:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{U:()=>n})},9639:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(e,t)=>r(47192).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9923:(e,t,r)=>{"use strict";r.d(t,{R:()=>b});var n=r(12072),a=r(60004),i=r(35428),o=r(72970),s=r(82726),c=r(34142),l=r(84033),u=r.n(l),d=r(43207),p=r(7976),h=r(75727),f=r(17205),m=r.n(f),g=r(60072);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let b=({localesCountry:e,onItemClick:t,getCurrentPosition:r})=>{let{0:n,1:l}=(0,a.useState)([]),f=(0,p.rD)(),y=(0,a.useRef)(null),b=(0,a.useRef)(null),_=(0,a.useRef)(""),[O]=(0,d.B)(),C="autocomplete-input-field",{labelId:E,inputProps:w,listboxProps:P}=(0,i.m)({ref:b,inputId:C,options:n}),{value:I}=w,{selectedItem:x}=P;(0,a.useEffect)(()=>{window.google||(0,h.MH)(f)},[]);let S=u()(t=>{let r=window.google;if(r){let n=y.current;n||(y.current=n=new r.maps.places.AutocompleteService),_.current=t,n.getPlacePredictions({input:t,componentRestrictions:{country:e}},(e,t)=>{"OK"===t?l(e.map(e=>({label:e.description,value:e.place_id}))):l([])})}},200);(0,a.useEffect)(()=>{I&&S(I)},[I]),(0,a.useEffect)(()=>{x&&t?.({key:x.value,text:x.label})},[x]);let T=(0,a.useCallback)(()=>{l([]),w.onChange({target:{value:""}}),b.current?.focus()},[w.onChange,b]),N=((e,t,r,n)=>n.length>0&&t&&t===r?n:e)(P.filteredOptions,I??"",_.current,n);return(0,g.jsxs)("div",{className:m().autocompleteContainer,children:[(0,g.jsx)(o.A,v(v({textFieldSize:"xl"},w),{},{onChange:e=>{e.stopPropagation(),w.onChange(e)},labelProps:{id:E},id:C,"data-testid":C,ref:b,label:O("search.searchAction"),placeholder:O("header.storesDrawer.placeholder"),actionsRight:I&&(0,g.jsx)(s.$,{icon:"cross",title:O("search.clearSearch"),variant:"ghost",onClick:T}),actionsLeft:r&&(0,g.jsx)(s.$,{icon:"location",title:"location",onClick:()=>{r(!0),w.onChange({target:{value:""}})},variant:"ghost","data-testid":"store-locator-locator"})})),(0,g.jsx)(c.W,v(v({},P),{},{filteredOptions:N,noMatchLabel:O("common.noMatch"),isOpened:!!I&&P.isOpened}))]})}},10354:e=>{e.exports={wrapperSkeleton:"credit-line-wrapper_wrapperSkeleton__PAG5B",wrapperCreditLine:"credit-line-wrapper_wrapperCreditLine__Sfg0g"}},10468:(e,t,r)=>{"use strict";r.d(t,{EX:()=>T,F3:()=>A,G6:()=>d,Hb:()=>N,JC:()=>v,KE:()=>h,KY:()=>n,N1:()=>w,NB:()=>P,Sx:()=>m,W1:()=>g,Wq:()=>C,XI:()=>o,Y7:()=>j,Ym:()=>l,_w:()=>c,b1:()=>a,bi:()=>x,f:()=>s,gM:()=>b,hT:()=>k,he:()=>i,mE:()=>S,oI:()=>p,qT:()=>y,tG:()=>f,tH:()=>u,tV:()=>O,wQ:()=>I,w_:()=>E,yK:()=>_});let n="ft-partner-product-label",a="ft-show-discount-percentage",i="cp-store-locator",o="ft-show-returnable",s="st-compare-on-pdp",c="rl-disable-indexing",l="ft-green-offers",u="cp-captcha-bypass",d="cp-stock-locator",p="ft-multi-lang-reinsurance-banner",h="ft-signup-button",f="rl-enable-product-search-ms",m="ft-search-append-version",g="rl-volt-search-box",y="rl-volt-product-card",v="rl-favorite-heart-all-lists",b="ft-hide-unit-price-catalog",_="rl-plp-horizontal-filters",O="ft-dynamic-delivery-promise",C="rl-delivery-prom-plppdp",E="ft-visual-category",w="ft-opco-ui-branded-pages",P="cp-marketing-events-management",I="st-customer-dashboard",x="rl-new-brand-url",S="rl-events-filters",T="ft-install-banner",N="ft-open-in-app-banner",A="rl-navigation-header",j="rl-enable-brand-id",k="rl-brand-use-productsearch"},10743:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n=r(12072);r(60004);var a=r(7976),i=r(60072);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let s=({properties:e,basePath:t})=>{let{app_url:r}=(0,a.rD)(),s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"@context":"http://schema.org","@type":"Organization","@id":`${r}${t}`,url:`${r}${t}`},e);return(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(s)}})}},10945:(e,t,r)=>{"use strict";r.d(t,{h:()=>h,y:()=>p});var n=r(3070),a=r(28234),i=()=>null,o=()=>null,s={children:"",closeLabel:"",onCancel:i,onClose:o,open:!1},c=r(60004),{defaultChildren:l,defaultOnCancel:u,defaultOnClose:d}={defaultChildren:"",defaultOnCancel:i,defaultOnClose:o},p=()=>{let[e,t]=(0,c.useState)(s),{lockScroll:r,unlockScroll:a}=(0,n._)(),i=(0,c.useCallback)(e=>{let n=e.children??l,i=e.onCancel??u,o=e.onClose??d;t({...e,children:n,onCancel:i,onClose:e=>{o(e),t(s),a()},open:!0}),r()},[r,a]);return(0,c.useMemo)(()=>({openModal:i,modal:e}),[i,e])},h=()=>{let e=(0,c.useContext)(a.V);if(!e)throw Error("You need to wrap your component with <WattsProvider>");return e}},10983:(e,t,r)=>{e.exports=r(4156)},11242:(e,t,r)=>{"use strict";r.d(t,{w:()=>E});var n=r(60004),a=r(88088),i=r(35695),o=r(43207),s=r(7976),c=r(76162),l=r(10468),u=r(92342),d=r(56570),p=r.n(d),h=r(92863),f=r(45062),m=r(24903),g=r(60072);let y=({children:e})=>(0,g.jsx)("div",{className:p().blocLine,children:e}),v=({subTitle:e="",children:t,className:r,"data-testid":n})=>(0,g.jsxs)("div",{className:(0,i.A)(p().bloc,r),"data-testid":n,children:[e?(0,g.jsx)(a.E,{className:p().subtitle,children:e}):null,t]}),b=({label:e,price:t,discount:r,unitDescriptor:n,"data-testid":o,showNetPercentage:s})=>{let c=r?.percentage,{formatPrice:l}=(0,m.f)();return(0,g.jsxs)(y,{children:[(0,g.jsxs)(a.E,{size:"body-2",color:"subtle",children:[e,!!c&&s&&(0,g.jsx)(f.v,{"data-testid":`${o}-discount`,variant:"secondary",className:(0,i.A)(p().chip,"promotion"===r.type&&p().chipPromotion),children:`-${r.percentage} %`})]}),(0,g.jsxs)(a.E,{size:"body-2",weight:"bold",color:"subtle",className:p().priceValue,"data-testid":o,children:[l({price:t}),n&&(0,g.jsxs)("span",{className:p().unitDescriptor,"data-testid":o?`${o}-multiplier`:void 0,children:[" ",n]})]})]})},_=({tax:e,unitDescriptor:t})=>{let[r]=(0,o.B)(),{formatPrice:n}=(0,m.f)(),i=e.taxAmount?n({price:e.taxAmount}):null,s=e.percentage?" %":"";return(0,g.jsxs)(y,{children:[(0,g.jsx)(a.E,{size:"body-2",color:"subtle",children:r(`tax.${e.type}`)}),(i||s)&&(0,g.jsxs)(a.E,{size:"body-2",weight:"bold",color:"subtle",className:p().priceValue,children:[i||s,i&&t&&(0,g.jsxs)("span",{className:p().unitDescriptor,children:[" ",t]})]})]})},O={[h.k.ONLY_GROSS_PRICES]:{showGrossPrice:!0,showNetPrice:!1},[h.k.ONLY_NET_PRICES]:{showGrossPrice:!1,showNetPrice:!0},[h.k.GROSS_AND_NET_PRICES]:{showGrossPrice:!0,showNetPrice:!0}},C=(0,n.memo)(({showGrossPrice:e,showNetPrice:t,promotionalListPrice:r,promotionalNetPrice:n,promotionalListPercentage:a,promotionalNetPercentage:i,unitDescriptor:s,"data-testid":c})=>{let[l]=(0,o.B)();return t&&n?(0,g.jsx)(b,{label:l("catalog.tooltip.promotionalNetPrice"),price:n,discount:{type:"promotion",percentage:i},unitDescriptor:s,"data-testid":c}):e&&r?(0,g.jsx)(b,{label:l("catalog.tooltip.promotionalGrossPrice"),price:r,discount:{type:"promotion",percentage:a},unitDescriptor:s,"data-testid":c}):void 0}),E=({taxes:e,price:t,priceDisplay:r,priceDisplayMultiplier:n,contentUnit:d})=>{let[h,f]=(0,o.B)(),{isFlagEnabled:m}=(0,s.h)(),E=m(l.b1),w=(0,u.LH)(f.language,n,d),{netPrice:P,listPrice:I,promotionalNetPercentage:x,promotionalListPercentage:S,promotionalListPrice:T,promotionalNetPrice:N}=t,A=I&&P?(0,c.cT)({listPrice:I,netPrice:P}):null,j=E&&(0,c.qO)(A),k=O[r]?.showGrossPrice,D=O[r]?.showNetPrice;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v,{className:(0,i.A)({[p().removePaddingBottom]:!e}),children:(0,g.jsxs)(g.Fragment,{children:[k&&I&&(0,g.jsx)(b,{label:h("catalog.tooltip.grossPrice"),price:I,unitDescriptor:w,"data-testid":"tooltip-gross-price"}),D&&P&&(0,g.jsx)(b,{label:h("catalog.tooltip.netPrice"),price:P,discount:j&&{type:"rebate",percentage:A},unitDescriptor:w,"data-testid":"tooltip-net-price",showNetPercentage:k}),N&&(0,g.jsx)(C,{promotionalNetPercentage:x,showNetPrice:D,showGrossPrice:k,promotionalListPrice:T,promotionalNetPrice:N,promotionalListPercentage:S,netPrice:P,shouldDisplayDiscount:j,netDiscount:A,unitDescriptor:w,"data-testid":"promotional-net-price"})]})}),e.length>0?(0,g.jsx)(v,{"data-testid":"tooltip-fees-list",className:p().removePaddingBottom,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(y,{children:(0,g.jsx)(a.E,{size:"body-2",color:"subtlest",children:h("toolTip.feesAdded")})}),e?.map(e=>(0,g.jsx)(_,{tax:e,unitDescriptor:w},e.type))]})}):null]})}},11501:e=>{e.exports=function(e){return function(t){return e(t)}}},11594:(e,t,r)=>{"use strict";r.d(t,{eu:()=>eO,eg:()=>eC,QV:()=>eE});var n=r(30896),a=r(77361),i=r(65865),o=r(13152),s=r(5744),c=r(6513),l=r(16178);class u{subPriority=0;validate(e,t){return!0}}class d extends u{constructor(e,t,r,n,a){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=n,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}}class p extends u{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>(0,s.w)(t,e))}set(e,t){return t.timestampIsSet?e:(0,s.w)(e,function(e,t){var r;let n="function"==typeof(r=t)&&r.prototype?.constructor===r?new t(0):(0,s.w)(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,this.context))}}class h{run(e,t,r,n){let a=this.parse(e,t,r,n);return a?{setter:new d(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,r){return!0}}class f extends h{priority=140;parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}
1set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}var m=r(15428);let g={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},y={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function v(e,t){return e?{value:t(e.value),rest:e.rest}:e}function b(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function _(e,t){let r=t.match(e);if(!r)return null;if("Z"===r[0])return{value:0,rest:t.slice(1)};let n="+"===r[1]?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*m.s0+i*m.Cg+o*m._m),rest:t.slice(r[0].length)}}function O(e){return b(g.anyDigitsSigned,e)}function C(e,t){switch(e){case 1:return b(g.singleDigit,t);case 2:return b(g.twoDigits,t);case 3:return b(g.threeDigits,t);case 4:return b(g.fourDigits,t);default:return b(RegExp("^\\d{1,"+e+"}"),t)}}function E(e,t){switch(e){case 1:return b(g.singleDigitSigned,t);case 2:return b(g.twoDigitsSigned,t);case 3:return b(g.threeDigitsSigned,t);case 4:return b(g.fourDigitsSigned,t);default:return b(RegExp("^-?\\d{1,"+e+"}"),t)}}function w(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function P(e,t){let r,n=t>0,a=n?t:1-t;if(a<=50)r=e||100;else{let t=a+50;r=e+100*Math.trunc(t/100)-100*(e>=t%100)}return n?r:1-r}function I(e){return e%400==0||e%4==0&&e%100!=0}class x extends h{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,r){let n=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return v(C(4,e),n);case"yo":return v(r.ordinalNumber(e,{unit:"year"}),n);default:return v(C(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){let n=e.getFullYear();if(r.isTwoDigitYear){let t=P(r.year,n);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let a="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}var S=r(30284),T=r(85504);class N extends h{priority=130;parse(e,t,r){let n=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return v(C(4,e),n);case"Yo":return v(r.ordinalNumber(e,{unit:"year"}),n);default:return v(C(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,n){let a=(0,S.h)(e,n);if(r.isTwoDigitYear){let t=P(r.year,a);return e.setFullYear(t,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,T.k)(e,n)}let i="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(i,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,T.k)(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}var A=r(7037);class j extends h{priority=130;parse(e,t){return"R"===t?E(4,e):E(t.length,e)}set(e,t,r){let n=(0,s.w)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,A.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class k extends h{priority=130;parse(e,t){return"u"===t?E(4,e):E(t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class D extends h{priority=120;parse(e,t,r){switch(t){case"Q":case"QQ":return C(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class R extends h{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return C(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class L extends h{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,r){let n=e=>e-1;switch(t){case"M":return v(b(g.month,e),n);case"MM":return v(C(2,e),n);case"Mo":return v(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class M extends h{priority=110;parse(e,t,r){let n=e=>e-1;switch(t){case"L":return v(b(g.month,e),n);case"LL":return v(C(2,e),n);case"Lo":return v(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}var F=r(35525);class $ extends h{priority=100;parse(e,t,r){switch(t){case"w":return b(g.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return C(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,n){return(0,T.k)(function(e,t,r){let n=(0,l.a)(e,r?.in),a=(0,F.N)(n,r)-t;return n.setDate(n.getDate()-7*a),(0,l.a)(n,r?.in)}(e,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}var B=r(77388);class U extends h{priority=100;parse(e,t,r){switch(t){case"I":return b(g.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return C(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return(0,A.b)(function(e,t,r){let n=(0,l.a)(e,void 0),a=(0,B.s)(n,void 0)-t;return n.setDate(n.getDate()-7*a),n}(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}let V=[31,28,31,30,31,30,31,31,30,31,30,31],q=[31,29,31,30,31,30,31,31,30,31,30,31];class G extends h{priority=90;subPriority=1;parse(e,t,r){switch(t){case"d":return b(g.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return C(t.length,e)}}validate(e,t){let r=I(e.getFullYear()),n=e.getMonth();return r?t>
1=1&&t<=q[n]:t>=1&&t<=V[n]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class z extends h{priority=90;subpriority=1;parse(e,t,r){switch(t){case"D":case"DD":return b(g.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return C(t.length,e)}}validate(e,t){return I(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}var H=r(16425);function W(e,t,r){let n=(0,c.q)(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,l.a)(e,r?.in),o=i.getDay(),s=7-a,u=t<0||t>6?t-(o+s)%7:((t%7+7)%7+s)%7-(o+s)%7;return(0,H.f)(i,u,r)}class Q extends h{priority=90;parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=W(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class Y extends h{priority=90;parse(e,t,r,n){let a=e=>{let t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return v(C(t.length,e),a);case"eo":return v(r.ordinalNumber(e,{unit:"day"}),a);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=W(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class K extends h{priority=90;parse(e,t,r,n){let a=e=>{let t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return v(C(t.length,e),a);case"co":return v(r.ordinalNumber(e,{unit:"day"}),a);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=W(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}class J extends h{priority=90;parse(e,t,r){let n=e=>0===e?7:e;switch(t){case"i":case"ii":return C(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return v(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return v(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return v(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return v(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return(e=function(e,t,r){let n=(0,l.a)(e,void 0),a=function(e,t){let r=(0,l.a)(e,t?.in).getDay();return 0===r?7:r}(n,void 0);return(0,H.f)(n,t-a,r)}(e,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Z extends h{priority=80;parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(w(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class X extends h{priority=80;
1parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(w(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class ee extends h{priority=80;parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(w(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class et extends h{priority=70;parse(e,t,r){switch(t){case"h":return b(g.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return C(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){let n=e.getHours()>=12;return n&&r<12?e.setHours(r+12,0,0,0):n||12!==r?e.setHours(r,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class er extends h{priority=70;parse(e,t,r){switch(t){case"H":return b(g.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return C(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class en extends h{priority=70;parse(e,t,r){switch(t){case"K":return b(g.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return C(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class ea extends h{priority=70;parse(e,t,r){switch(t){case"k":return b(g.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return C(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){return e.setHours(r<=24?r%24:r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class ei extends h{priority=60;parse(e,t,r){switch(t){case"m":return b(g.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return C(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class eo extends h{priority=50;parse(e,t,r){switch(t){case"s":return b(g.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return C(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class es extends h{priority=30;parse(e,t){return v(C(t.length,e),e=>Math.trunc(e*Math.pow(10,-t.length+3)))}set(e,t,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}var ec=r(98641);class el extends h{priority=10;parse(e,t){switch(t){case"X":return _(y.basicOptionalMinutes,e);case"XX":return _(y.basic,e);case"XXXX":return _(y.basicOptionalSeconds,e);case"XXXXX":return _(y.extendedOptionalSeconds,e);default:return _(y.extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,s.w)(e,e.getTime()-(0,ec.G)(e)-r)}incompatibleTokens=["t","T","x"]}class eu extends h{priority=10;parse(e,t){switch(t){case"x":return _(y.basicOptionalMinutes,e);case"xx":return _(y.basic,e);case"xxxx":return _(y.basicOptionalSeconds,e);case"xxxxx":return _(y.extendedOptionalSeconds,e);default:return _(y.extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,s.w)(e,e.getTime()-(0,ec.G)(e)-r)}incompatibleTokens=["t","T","X"]}class ed extends h{priority=40;parse(e){return O(e)}set(e,t,r){return[(0,s.w)(e,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"}class ep extends h{priority=20;parse(e){return O(e)}set(e,t,r){return[(0,s.w)(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}let eh={G:new f,y:new x,Y:new N,R:new j,u:new k,Q:new D,q:new R,M:new L,L:new M,w:new $,I:new U,d:new G,D:new z,E:new Q,e:new Y,c:new K,i:new J,a:new Z,b:new X,B:new ee,h:new et,H:new er,K:new en,k:new ea,m:new ei,s:new eo,S:new es,X:new el,x:new eu,t:new ed,T:new ep},ef=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,em=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eg=/^'([^]*?)'?$/,ey=/''/g,ev=/\S/,eb=/[a-zA-Z]/;var e_=r(27245);let eO=(e,t,r)=>{if(!e)return"";let i="string"==typeof e?new Date(e):e;if(isNaN(i.getTime()))return"";let o=eE(i,r),s="en-us"===t?a.c:e_.b;return(0,n.GP)(o,"P",{locale:s})},eC=e=>{try{let t=function(e,t,r,n){let u=()=>(0,s.w)(r,NaN),d=Object.assign({}
1,(0,c.q)()),h=(void 0)??d.locale??a.c,f=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,m=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0;if(!t)return e?u():(0,l.a)(r,n?.in);let g={firstWeekContainsDate:f,weekStartsOn:m,locale:h},y=[new p(n?.in,r)],v=t.match(em).map(e=>{let t=e[0];return t in i.m?(0,i.m[t])(e,h.formatLong):e}).join("").match(ef),b=[];for(let r of v){!n?.useAdditionalWeekYearTokens&&(0,o.xM)(r)&&(0,o.Ss)(r,t,e),!n?.useAdditionalDayOfYearTokens&&(0,o.ef)(r)&&(0,o.Ss)(r,t,e);let a=r[0],i=eh[a];if(i){let{incompatibleTokens:t}=i;if(Array.isArray(t)){let e=b.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${r}\` at the same time`)}else if("*"===i.incompatibleTokens&&b.length>0)throw RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);b.push({token:a,fullToken:r});let n=i.run(e,r,h.match,g);if(!n)return u();y.push(n.setter),e=n.rest}else{if(a.match(eb))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===r?r="'":"'"===a&&(r=r.match(eg)[1].replace(ey,"'")),0!==e.indexOf(r))return u();e=e.slice(r.length)}}if(e.length>0&&ev.test(e))return u();let _=y.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,r)=>r.indexOf(e)===t).map(e=>y.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),O=(0,l.a)(r,n?.in);if(isNaN(+O))return u();let C={};for(let e of _){if(!e.validate(O,g))return u();let t=e.set(O,C,g);Array.isArray(t)?(O=t[0],Object.assign(C,t[1])):O=t}return O}(e,"HH:mm",new Date);return(0,n.GP)(t,"h:mm a").toUpperCase().replace(/:00/,"")}catch{return""}},eE=(e,t)=>{if(!t)return console.error("toStoreLocalDate: No opco timezone provided, falling back to the original date. Please provide a valid timezone (IANA) to ensure correct date conversion."),e;try{let{year:r,month:n,day:a,hour:i,minute:o,second:s}=new Intl.DateTimeFormat("en-CA",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e).reduce((e,t)=>("literal"!==t.type&&(e[t.type]=t.value),e),{}),c=new Date(`${r}-${n}-${a}T${i}:${o}:${s}`);return Number.isNaN(c.getTime())?e:c}catch{return e}}},11879:(e,t,r)=>{"use strict";r.d(t,{x:()=>v});var n=r(60004),a=r(88088),i=r(35880),o=r(84980),s=r.n(o),c=r(43207);let l=e=>{if(!e)return e;try{return decodeURIComponent(e.replace(/%(?![0-9a-fA-F]+)/g,"%25"))}catch(t){return console.error(`Error occurred while decoding string: ${e}`,t),e}};var u=r(7976),d=r(2117),p=r(86263),h=r(10468),f=r(91933),m=r(55537),g=r(81447),y=r(60072);let v=(0,n.memo)(e=>{let{classNames:t,searchQuery:r,querySuggestions:n,categorySuggestions:o,filteredBrands:v,onSearchItemDisplay:b,onQuerySuggestionClick:_,onSuggestionClick:O,searchUrl:C,isNewSearchSuggestionEnabled:E,showQuerySkeleton:w,showSuggestionsTitle:P=!0}=e,[I]=(0,c.B)(),{isFlagEnabled:x}=(0,u.h)(),S=x(h.Sx),{sendClickSuggestedBrandGtmTag:T}=(0,d.PB)(),{title:N,link:A,parentTitle:j,itemNormal:k}=t;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:j,children:[P&&(0,y.jsx)(a.E,{className:N,size:"body-2",weight:"light",color:"subtle",children:I("catalog.searchBox.suggestions")}),w?(0,y.jsxs)("div",{"data-testid":"query-suggestions-skeleton",children:[(0,y.jsx)(i.E,{shape:"line",height:16}),(0,y.jsx)(i.E,{shape:"line",height:16}),(0,y.jsx)(i.E,{shape:"line",height:16})]}):n.map((e,t)=>{let n=r?.toLowerCase().trim(),i=l(e),o=l(n),s=(0,g.sS)(o),c=(0,g.sS)(i),u=c.includes(s),d=c.indexOf(s),h=i.slice(0,d),f=i.slice(d,d+o.length),m=i.slice(d+f.length);return(0,y.jsx)(p.w,{className:A,href:(0,g.OI)(C,e,S),ref:e=>{e&&b(e,t)},"data-testid":`searchLink-${e}`,onClick:()=>_(e),app:"catalog",variant:"standalone-bold",size:"l",forceRefresh:!0,children:u?(0,y.jsxs)(y.Fragment,{children:[h,(0,y.jsx)(a.E,{as:"span",className:k,"data-testid":"searchResultsQueryText",children:f}),m]}):i},e)})]}),!!o?.length&&(0,y.jsxs)("div",{className:j,children:[(0,y.jsx)(a.E,{className:N,"data-testid":"category-heading",size:"body-2",weight:"light",color:"subtle",children:I("catalog.searchBox.categories")}),o?.map((e,t)=>{let{catTitle:i,catId:o,isSearchQueryInSuggestion:c,searchQueryTrimmed:u}=(0,g.AU)(e,r,E),d=l(i??""),h=t+(n?.length||0),v=s()(u),_=d.match(RegExp(v,"gi")),C=d.split(RegExp(`(${v})`,"gi"));return(0,y.jsx)(p.w,{className:A,href:(0,f.PO)(i??"",o??"",S),ref:e=>{e&&b(e,h)},onClick:O,"data-testid":`category-${e?.name}`,app:m.b.catalog.app,variant:"standalone-bold",size:"l",children:c?(0,y.jsx)(y.Fragment,{children:C.map((e,t)=>(0,y.jsx)(a.E,{as:"span",className:_?.some(t=>t.toLowerCase()===e.toLowerCase())?k:"",children:e},`${o}-${e}-${t}`))}):d},`${i}-${o}`)})]}),!!v?.length&&(0,y.jsxs)("div",{className:j,children:[(0,y.jsx)(a.E,{className:N,"data-testid":"brand-heading",size:"body-2",weight:"light",color:"subtle",children:I("catalog.searchBox.brands")}),v?.map((e,t)=>{let a=t+(n?.length||0)+(o?.length||0);return(0,y.jsx)(p.w,{className:A,href:e.href,ref:e=>{e&&b(e,a)},onClick:()=>(e=>{T({searchTerm:r,suggestedBrand:e.title,eventRelatedType:(0,g.Zq)(e.type)}),O()})(e),"data-testid":`brand-${e.title}`,app:m.b.catalog.app,variant:"standalone-bold",size:"l",children:e.title},`${e.href}-${e.type}`)})]})]})});v.displayName="SearchBoxSuggestions"},11953:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(75355)._(r(60004)).default.createContext({})},12028:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({className:e,icon:t,title:r,titleId:i,size:o="l",...s})=>(0,a.jsxs)("svg",{className:(0,n.$)("watts-icon",`watts-icon--${o}`,e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":!r,"aria-labelledby":i,role:"presentation",...s,children:[r?(0,a.jsx)("title",{id:i,children:r}):null,(0,a.jsx)("use",{href:`/watts-sprite.svg#${t}`})]});i.displayName="Icon"},12072:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,r){var a;return(a=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=n(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(a)?a:a+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>a})},12414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(60004),a=n.useLayoutEffect,i=n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let a=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(a,e))}}return a(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),a(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},12727:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},12855:(e,t,r)=>{"use strict";r.d(t,{NJ:()=>s,yI:()=>c});var n=r(60004),a=r(48628),i=r(60072);let o=(0,n.createContext)({isCableCutsDrawerOpen:!1,cableCutsDrawerData:null,openCableCutsDrawer:()=>null,closeCableCutsDrawer:()=>null}),s=({children:e})=>{let{isOpen:t,openDrawer:r,closeDrawer:s}=(0,a.b)(),{0:c,1:l}=(0,n.useState)(null),u=(0,n.useCallback)(e=>{l(e),r()},[r,t]),d=(0,n.useCallback)(()=>{l(null),s()},[s]),p=(0,n.useMemo)(()=>({isCableCutsDrawerOpen:t,cableCutsDrawerData:c,openCableCutsDrawer:u,closeCableCutsDrawer:d}),[t,c,u,d]);return(0,i.jsx)(o.Provider,{value:p,children:e})},c=()=>(0,n.useContext)(o)},13152:(e,t,r)=>{"use strict";r.d(t,{Ss:()=>c,ef:()=>o,xM:()=>s});let n=/^D+$/,a=/^Y+$/,i=["D","DD","YY","YYYY"];function o(e){return n.test(e)}function s(e){return a.test(e)}function c(e,t,r){let n=function(e,t,r){let n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),i.includes(e))throw RangeError(n)}},13196:(e,t,r)=>{"use strict";r.d(t,{b:()=>c}),r(60004);var n=r(35880),a=r(35695),i=r(28804),o=r.n(i),s=r(60072);let c=({className:e,"data-testid":t,animation:r,hasPadding:i=!1})=>(0,s.jsx)("div",{className:(0,a.A)(e,o().skeletonGroup,i&&o().padding),"data-testid":t,children:(0,s.jsxs)("div",{className:o().skeletonInner,children:[(0,s.jsx)(n.E,{loading:"wave"===r,height:24}),(0,s.jsx)(n.E,{className:o().marginTop,loading:"wave"===r,height:12}),(0,s.jsxs)("div",{className:o().containerBottom,children:[(0,s.jsxs)("div",{className:o().blockLeft,children:[(0,s.jsx)(n.E,{shape:"round",loading:"wave"===r,height:40,width:40}),(0,s.jsx)(n.E,{shape:"round",loading:"wave"===r,height:40,width:40})]}),(0,s.jsx)(n.E,{loading:"wave"===r,height:16,width:117})]})]})})},13725:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},13942:e=>{e.exports={marketplaceContainer:"product-marketplace_marketplaceContainer__hsIr3"}},14378:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(53102);function a(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},14464:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},14749:(e,t,r)=>{"use strict";r.d(t,{b:()=>d,x:()=>u});var n=r(12072),a=r(60004),i=r(22951),o=r(60072);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l=(0,a.createContext)(void 0),u=({children:e})=>{let{0:t,1:r}=(0,a.useState)({}),{0:n,1:i}=(0,a.useState)({}),s=(0,a.useCallback)((e,t)=>{r(r=>{if(t>=0&&e){let n=c({},r);return n[t]=e,n}return r})},[r]),u=(0,a.useCallback)((e,t)=>{i(r=>{if(t>=0&&e){let n=c({},r);return n[t]=e,n}return r})},[i]),d=(0,a.useMemo)(()=>({deliveryPromises:t,deliveryPromisesErrors:n,addDeliveryPromise:s,addDeliveryPromiseError:u}),[t,s,n,u]);return(0,o.jsx)(l.Provider,{value:d,children:e})},d=e=>{let t=(0,a.useContext)(l);if(!t){if(e===i.WF.CART)throw Error("useAggregatedDeliveryPromises must be used within a AggregatedDeliveryPromisesProvider");return{deliveryPromises:[],deliveryPromisesErrors:[],addDeliveryPromise:()=>null,addDeliveryPromiseError:()=>null}}return t}},14872:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var n=r(5744);function a(e,...t){let r=n.w.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}},15128:(e,t,r)=>{"use strict";r.d(t,{o:()=>p}),r(60004);var n=r(59100),a=r(43207),i=r(68915),o=r(26650),s=r(88952),c=r(79526),l=r(97392),u=r.n(l),d=r(60072);let p=({settingsItems:e,loggedInMobileMenuTopContainer:t})=>{let[r]=(0,a.B)(),{account:l}=(0,i.Z2)(),{hasCreditLimitPermission:p}=(0,i.Sk)(),{closeProjectSettingsDrawer:h}=(0,s.Ck)();return(0,d.jsxs)("div",{className:u().projectDrawer,children:[(0,d.jsx)(n.D,{size:"body-5",weight:"regular",as:"h2",children:r("header.projectSettingsDrawer.title")}),t,(0,d.jsx)("div",{className:u().drawerCreditLine,children:p&&l?.hasCreditLimit&&(0,d.jsx)(o.T,{accountId:l.id})}),(0,d.jsx)("div",{className:u().mobileMenuListWrapper,children:(0,d.jsx)(c.c,{listItems:e,closeDrawer:h})})]})}},15195:(e,t,r)=>{"use strict";r.d(t,{k:()=>m}),r(60004);var n=r(10983),a=r(88088),i=r(31811),o=r(62059),s=r(42299),c=r(92851),l=r(31437),u=r(8549),d=r.n(u),p=r(52372),h=r(75522),f=r(60072);let m=({productTitle:e,references:t,features:r,tags:u,isGridView:m,brandName:g,displayProductFeatures:y,productHref:v,onSelected:b,sponsoredLabel:_})=>{let O=(0,c.Ac)(u,l.cr),{cart:C}=(0,i.B_)(),E=C?.id,w=(0,n.useRouter)(),P=!!(E===w?.query?.cartId&&C?.archivalExpiration);return(0,f.jsxs)("div",{className:m?d().gridContainer:d().container,children:[(0,f.jsxs)("div",{className:d().summary,children:[!P&&(0,f.jsx)("div",{className:d().tagsContainer,children:O.map(e=>(0,f.jsx)(s.b,{tag:e},e))}),e&&(0,f.jsx)("div",{className:d().title,children:(0,f.jsx)(h.G,{productTitle:e,brandName:g,isGridView:m,productHref:v,onSelected:b})}),(0,f.jsx)(p.t,{references:t})]}),y&&(0,f.jsx)(o.R,{features:r}),_?(0,f.jsx)("div",{className:d().sponsoredLabel,children:(0,f.jsx)(a.E,{size:"body-2",weight:"regular",color:"subtle",children:_})}):null]})}},15250:(e,t,r)=>{var n=r(31678),a=r(56495),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;e.exports=o?function(e){return null==e?[]:n(o(e=Object(e)),function(t){return i.call(e,t)})}:a},15428:(e,t,r)=>{"use strict";r.d(t,{Cg:()=>i,_P:()=>c,_m:()=>s,my:()=>n,s0:()=>o,w4:()=>a});let n=6048e5,a=864e5,i=6e4,o=36e5,s=1e3,c=Symbol.for("constructDateFrom")},15546:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},15788:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=function(e){return e.MANAGE_USERS="MANAGE_USERS",e.CONTRIBUTE_CART="CONTRIBUTE_CART",e.VIEW_CREDIT_INFO="VIEW_CREDIT_INFO",e.PLACE_ORDER_WITHOUT_VALIDATION="PLACE_ORDER_WITHOUT_VALIDATION",e.VALIDATE_CART="VALIDATE_CART",e.VIEW_ORDER_LIST="VIEW_ORDER_LIST",e.MANAGE_QUOTE="MANAGE_QUOTE",e.EDIT_PUBLIC_LIST="EDIT_PUBLIC_LIST",e.MANAGE_ADDRESSES="MANAGE_ADDRESSES",e.EXPORT_INVOICE="EXPORT_INVOICE",e.VIEW_GROSS_PRICE="VIEW_GROSS_PRICE",e.VIEW_NET_PRICE="VIEW_NET_PRICE",e.EDIT_CUSTOMER_REF="EDIT_CUSTOMER_REF",e.VIEW_BLANKET_ORDER="VIEW_BLANKET_ORDER",e.RELEASE_BLANKET_ORDER="RELEASE_BLANKET_ORDER",e.ALL="ALL",e.EDIT_ORDER="EDIT_ORDER",e.PAY_INVOICE="PAY_INVOICE",e}({})},16121:e=>{e.exports={root:"mega-panel_root__5ARlk",panelHeading:"mega-panel_panelHeading__QlnRJ",backButtonDesktop:"mega-panel_backButtonDesktop__jFlRN",backButtonMobile:"mega-panel_backButtonMobile__StK4f",level0:"mega-panel_level0__eeSWY",level1Chips:"mega-panel_level1Chips__y08FF",panelContent:"mega-panel_panelContent__IwoqV",level1:"mega-panel_level1__rWP0S"}},16178:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});var n=r(5744);function a(e,t){return(0,n.w)(t||e,e)}},16266:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(41010);let a=(0,n.J1)`
2  fragment Product on CMProduct {
3    productCode
4    picture {
5      uriTemplate
6    }
7    title
8    productName
9  }
10`},16299:(e,t,r)=>{var n=r(88734),a="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||a||Function("return this")()},16414:e=>{let t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,r=e=>e.match(t)||[],n=e=>e[0].toUpperCase()+e.slice(1),a=(e,t)=>r(e).join(t).toLowerCase(),i=e=>r(e).reduce((e,t)=>`${e}${!e?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()}`,"");e.exports={words:r,upperFirst:n,camelCase:i,pascalCase:e=>n(i(e)),snakeCase:e=>a(e,"_"),kebabCase:e=>a(e,"-"),sentenceCase:e=>n(a(e," ")),titleCase:e=>r(e).map(n).join(" ")}},16425:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(5744),a=r(16178);function i(e,t,r){let i=(0,a.a)(e,r?.in);return isNaN(t)?(0,n.w)(r?.in||e,NaN):(t&&i.setDate(i.getDate()+t),i)}},16646:(e,t,r)=>{"use strict";r.d(t,{a:()=>c});var n=r(60004),a=r(35880),i=r(60072);let o=(0,n.lazy)(()=>Promise.all([r.e(5998),r.e(5753),r.e(344),r.e(627)]).then(r.bind(r,63008)).then(e=>({default:e.CableCutsDrawer}))),s=()=>(0,i.jsx)(a.E,{width:"100%",height:400,shape:"rectangle"}),c=()=>{let{0:e,1:t}=(0,n.useState)(!1);return((0,n.useEffect)(()=>{(0,n.startTransition)(()=>{t(!0)})},[]),e)?(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)(s,{}),children:(0,i.jsx)(o,{})}):(0,i.jsx)(s,{})}},16840:(e,t,r)=>{"use strict";r.d(t,{A:()=>u}),r(60004);var n=r(39624),a=r(59100),i=r(88088),o=r(82726),s=r(61400),c=r.n(s),l=r(60072);let u=({status:e,title:t,content:r,cancelButton:s,confirmButton:u,handleOnClose:d,"data-testid":p="alertDialog",confirmButtonVariant:h="primary"})=>{let f=!!s||!!u;return(0,l.jsxs)("div",{className:c().dialogWrapper,"data-testid":p,children:[e&&(0,l.jsx)(n.k,{status:e,variant:"strong",width:64,"data-testid":"dialog-icon"}),t&&(0,l.jsx)(a.D,{as:"h2",size:"body-4",weight:"bold",children:t}),"string"==typeof r?(0,l.jsx)(i.E,{as:"p",color:"subtle",weight:"light",size:"body-3",children:r}):r,f&&(0,l.jsxs)("div",{className:c().actionArea,children:[s&&d&&(0,l.jsx)(o.$,{variant:"ghost",type:"submit",size:"l",onClick:()=>d(s.actionValue),"data-testid":"alertDialog.action.disagree",children:s.label}),u&&d&&(0,l.jsx)(o.$,{variant:h,size:"l",type:"submit",onClick:()=>d(u.actionValue),"data-testid":"alertDialog.action.agree",children:u.label})]})]})}},16863:(e,t,r)=>{"use strict";r.d(t,{w:()=>p});var n=r(12072);r(60004);var a=r(59100),i=r(61331),o=r(89089),s=r(98591),c=r.n(s),l=r(60072);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=e=>({tree:t,children:r})=>{let n=(0,i.N)(t,"class"),s=(0,o.u)(n,c());return(0,l.jsx)(a.D,d(d({as:e,size:{h1:"body-6",h2:"body-5",h3:"body-4",h4:"body-3",h5:"body-2",h6:"body-1"}[e]},s?{className:s}:{}),{},{children:r}))}},17089:e=>{e.exports={container:"accounts-list_container__OQZLr",loadMoreContainer:"accounts-list_loadMoreContainer__BYQER"}},17123:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},17137:e=>{e.exports={PriceByUnitContainer:"price-by-unit_PriceByUnitContainer__gzWkM",dot:"price-by-unit_dot__UZxJr",priceUnit:"price-by-unit_priceUnit__W30Nn"}},17196:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},17205:e=>{e.exports={autocompleteContainer:"address-autocomplete_autocompleteContainer__UaF3v"}},17244:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(85587),a=r(91752),i=r(24874),o=r(46754),s=r(82726),c=r(30058),l=r(59100),u=r(60004),d=(0,n.h)(),p=(0,u.forwardRef)(({children:e,className:t,closeLabel:r,content:n,heading:p,label:h,placement:f="bottom",...m},g)=>{let y=e,v=(0,u.useRef)(null),b=(0,u.useRef)(null),[_,O]=(0,u.useState)(f),{close:C,isOpen:E,open:w}=(0,o.e)(),P=(0,u.useCallback)(e=>t=>{e?.(t),!t.defaultPrevented&&(w(),v.current&&(b.current=v.current.previousElementSibling))},[w]),I=(0,u.useCallback)(()=>{C(),O(f),b.current&&b.current.focus()},[C,f]);if((0,u.useImperativeHandle)(g,()=>({closePopover:()=>{I()}}),[I]),(0,a.W)({onClickAway:I,ref:v,shouldTriggerClickAway:E}),(0,i.J)({keys:["Escape"],onKeyDown:I,shouldTriggerKeyDown:E}),(0,u.isValidElement)(y)){let{onClick:e}=y.props;y=(0,u.cloneElement)(y,{...y.props,"aria-expanded":String(E),"aria-haspopup":"dialog",onClick:P(e)})}return(0,u.useEffect)(()=>{if(E&&v.current&&b.current){let e=b.current.getBoundingClientRect(),t=v.current.getBoundingClientRect();if(f.endsWith("left")&&t.left<0){let t=e.x-16;v.current.style.left=`-${t}px`}if(f.endsWith("right")&&t.right>window.innerWidth){let e=window.innerWidth-t.right-16;v.current.style.left=`${e}px`}if("bottom"===f||"top"===f){let e=t.left<0,r=t.right>window.innerWidth;e&&O(`${f}-right`),r&&O(`${f}-left`)}}else!E&&v.current&&(v.current.style.left="")},[E,f]),(0,d.jsxs)("div",{className:"watts-popover",children:[y,(0,d.jsxs)(c.s,{active:E,"aria-label":h,"data-dialog":"true","data-open":E,"data-placement":_,hidden:!E,ref:v,role:"dialog",...m,children:[(0,d.jsxs)("div",{className:"watts-popover__header",children:[(0,d.jsx)(s.$,{"aria-label":r,className:"watts-popover__close-button",icon:"cross-small",title:r,onClick:I,size:"s",variant:"ghost"}),(0,d.jsx)(l.D,{size:"body-3",...p,children:p.children})]}),(0,d.jsx)("div",{className:t,role:"document",children:n})]})]})});p.displayName="Popover"},17387:(e,t,r)=>{"use strict";r.d(t,{HA:()=>o,mH:()=>s});var n=r(60004),a=r(60072);let i=(0,n.createContext)(null),o=({content:e,children:t})=>(0,a.jsx)(i.Provider,{value:e,children:t}),s=()=>(0,n.useContext)(i)},17480:(e,t,r)=>{"use strict";r.d(t,{z_:()=>J,Mg:()=>Z,VW:()=>er,V3:()=>em,Dd:()=>ev,Rj:()=>ey,VS:()=>ed,vY:()=>ec,_:()=>ep,UH:()=>eg,Jo:()=>X,gZ:()=>et,ad:()=>en,jg:()=>el,Nw:()=>ei,G2:()=>ef,oo:()=>ea,UM:()=>eo,Qy:()=>es,hP:()=>eu,JU:()=>ee,mq:()=>eh});var n=r(12072),a=r(60004),i=r(38973),o=r(10983),s=r(23134),c=r(68915),l=r(7976),u=r(31811),d=r(94867),p=r(10468),h=r(23719),f=r(15788),m=r(22951),g=r(91933),y=r(99791),v=r(92851),b=r(92342);let _={[m.o6.Grid]:"medium",[m.o6.List]:"small",[m.o6.Table]:"xsmall"};var O=r(54688),C=r(76162),E=r(34856);let w=["amount","displayAmount"];function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?P(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let x=(e,t,r)=>r?t?e:void 0:t,S=(e,{useDisplayAmount:t,quantity:r})=>e?.filter(e=>e.surcharge).map(e=>{let{amount:n,displayAmount:a}=e,i=(0,O.A)(e,w),o=t?a??n:n,s=r&&o?I(I({},o),{},{amount:(0,C.Nr)(o.amount,r)}):o;return I({taxAmount:s},i)}),T=(e,t,r)=>I(I({},e?.amount?e:t),{},{amount:r}),N=(e,t,r)=>r&&t?(0,C.Nr)(e,t):e;var A=r(85648),j=r(75618),k=r(93838),D=r(77130);let R=({item:e,productViewPage:t,productIsNotSoldAnymore:r,isInFavoriteList:n,addToFavoriteList:a})=>{if(!n||!a)return[];if(!r&&t!==m.WF.WISHLIST){let t=n(e.productId)||!1,r=async()=>{try{await a(e)}catch(e){console.error("ERROR addToList",e)}};return[{iconType:D.D.FAVORITE,isActive:t,isDisabled:null===t,onClick:r}]}return[]};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var B=r(60116),U=r(65204),V=r(85582);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var W=r(76745),Q=r(60072);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let J=(0,a.createContext)(null),Z=({children:e,productDocList:t,productViewPage:r,onDeleteFavorite:n,isInFavoriteList:i,addToFavoriteList:s,addToCart:h,onCompareClick:m,isInCompare:g,stockLocatorPanelHandler:v,isComparatorFull:b,plpViewMode:_,handleQuantityUpdate:O,onSelect:C,selectedProducts:E,currentProjectId:w,onDeleteFromCart:P,disableCardActions:I=!1,forcefullyEnableAddToCartAction:x=!1,totalPrices:S,onDeleteCableCut:T,onAddCableCut:N,onChangeCableCut:A,isAddingCutToCart:j,openCableCutsDrawerHandler:D,stockFetcher:R=k.CT,sponsoredProductIds:L})=>{let M=t?.map(({productId:e})=>e),{isLoggedIn:F,user:$,account:V,guestUser:q,isGuestUser:G}=(0,c.Z2)(),{isFlagEnabled:z}=(0,l.h)(),{cart_tooltip_surcharges_per_quantity:H}=(0,l.rD)(),{cart:W,isInShoppingCart:Y,isCartLoading:K}=(0,u.B_)(),Z=z(p.f),X=z(p.Ym),ee=z(p.gM),{defaultLogisticMethod:et}=(0,y.v)(),{locale:er}=(0,o.useRouter)(),en=R(M,W),ea=W?.specialPriceAgreements?.map(e=>e?.id??"").join(",")||null,ei=w||W?.project?.id,eo=!w&&W?.includeAllSpas,es=(0,B.Ny)({productIds:M,user:$,guestUser:q,spaIds:ea,projectId:ei,isLoggedIn:F,includeSpas:eo,defaultLogisticMethod:et,productViewPage:r,cart:W,isCartLoading:K}),ec=(0,U.X)({productIds:M,isLoggedIn:F,user:$,productDocList:t}),el=W?.id,eu=W?.logisticDetails?.facilityName,ed=W?.project?.id===ei,ep=!!($?.permissions?.includes(f.a.CONTRIBUTE_CART)||q?.permissions?.includes(f.a.CONTRIBUTE_CART)),eh=!!$?.permissions?.includes(f.a.VALIDATE_CART),ef=(0,d.OZ)($?.permissions??q?.permissions??[]),em=V?.pricePreference??q?.pricePreference,eg=(0,a.useMemo)(()=>({stocks:en,productDocList:t,productInfos:ec,locale:er,prices:es,isInShoppingCart:Y,isCartLinkedToCurrentProject:ed,userHasCartPermissions:ep,userHasValidatePermission:eh,isLoggedIn:F,accountPricePreference:em,userPricePermissions:ef,productViewPage:r,onDeleteFavorite:n,isInFavoriteList:i,addToFavoriteList:s,addToCart:h,handleQuantityUpdate:O,cartId:el,onCompareClick:m,isInCompare:g,stockLocatorPanelHandler:v,isComparatorFull:b,comparedOnPDP:Z,plpViewMode:_,displayGreenOffer:X,facilityName:eu,onSelect:C,onDeleteFromCart:P,isCartLoading:K,selectedProducts:E,cart:W,disableCardActions:I,forcefullyEnableAddToCartAction:x,totalPrices:S,onDeleteCableCut:T,onAddCableCut:N,onChangeCableCut:A,isGuestUser:G,isAddingCutToCart:j,openCableCutsDrawerHandler:D,isPriceDisplayMultiplierEnabled:ee,cartTooltipSurchargesPerQuantity:H,sponsoredProductIds:L}),[en,t,ec,er,es,Y,ed,ep,F,em,ef,eh,r,n,i,s,h,O,el,m,g,v,b,Z,_,X,eu,C,P,K,E,W,I,x,S,T,N,A,G,j,D,ee,H,L]);return(0,Q.jsx)(J.Provider,{value:eg,children:e})},X=(e,t,r)=>{let n=(0,a.useContext)(J);if(!n)throw Error("You need to wrap your component with <ProductContextProvider>");return((e,t,{productDocList:r,stocks:n,productViewPage:a,onCompareClick:i,isInCompare:o,isComparatorFull:s,isInFavoriteList:c,addToFavoriteList:l,comparedOnPDP:u,onDeleteFavorite:d,onDeleteFromCart:p,cart:f,disableCardActions:g,isGuestUser:y},v)=>{let _=(0,b.EM)(e,r);if(!_)return{iconsList:[],productName:""};let O=(0,b.wu)(v,f),C=_.offline,E=_.stockIndicator,w=(0,k.FD)(e,n.stockData,n.stockError),P=(0,h.jI)(E,w),I={productImage:_.productImage,brandName:_.brandName,productTitle:_.productTitle,quantity:t,orderingDetail:{minQuantity:Number(_.minQuantity)?Number(_.minQuantity):null,quantitySteps:Number(_.quantitySteps)?Number(_.quantitySteps):null,contentUnit:_.contentUnit},productId:_.productId},x=R({item:I,isInFavoriteList:c,addToFavoriteList:l,productViewPage:a,productIsNotSoldAnymore:P}),S=_?.references?.reduce((e,{refName:t,refValue:r})=>$($({},e),{},{[t]:r}),{}),T=(({item:e,offline:t,productIsNotSoldAnymore:r,productViewPage:n,onCompareClick:a,isInCompare:i,isComparatorFull:o,comparedOnPDP:s})=>{if(!a||!i)return[];let c=i(e.productId);return t||n===m.WF.WISHLIST||r||!s?[]:[{iconType:D.D.COMPARE,isActive:c,onClick:()=>a(e),isDisabled:o&&!c}]})({item:$($({},I),S),productViewPage:a,offline:C,productIsNotSoldAnymore:P,comparedOnPDP:u,onCompareClick:i,isInCompare:o,isComparatorFull:s}),N=(({productId:e,offline:t,productViewPage:r,onDeleteFavorite:n,onDeleteFromCart:a,itemId:i,disableCardActions:o=!1})=>{let s=[];return(({offline:e,productViewPage:t})=>!e&&t===m.WF.WISHLIST)({offline:t,productViewPage:r})&&s.push({iconType:D.D.REMOVE_FAVORITE,isActive:!1,isDisabled:o,onClick:()=>n?.(e)}),(({productViewPage:e})=>e===m.WF.CART)({productViewPage:r})&&s.push({iconType:D.D.REMOVE_FROM_CART,isActive:!1,isDisabled:o,onClick:()=>a?.(i)}),s})({productId:e,offline:C,productViewPage:a,onDeleteFavorite:d,onDeleteFromCart:p,itemId:O?.id,disableCardActions:g});return{iconsList:[...T,...N,...y?[]:[...x]],productName:_.productTitle||""}})(e,t,n,r)},ee=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");return(0,k.Ky)(e,t,t.plpViewMode)},et=(e,t,r)=>{let n=(0,a.useContext)(J);if(!n)throw Error("You need to wrap your component with <ProductContextProvider>");let o=((e,t,r,n)=>{let{brandImage:a,brandName:i,productId:o,productImage:s,productTitle:c,greenRating:l,carbonFootprint:u,iconCodes:d}=(0,b.EM)(e,t),p=_[n],h=(0,v.qJ)(s,p);return{productData:{brandImage:(0,v.qJ)(a,"bh32"),brandName:i,productId:o,productImage:h,productTitle:c,greenRating:r?l:void 0,carbonFootprint:u,iconCodes:d},href:(0,g.GC)({title:c,id:e,brandName:i}),plpViewMode:n}})(e,n.productDocList,n.displayGreenOffer,n.plpViewMode),s=(0,i.stringify)(K(K({},t&&{isRecommended:"true"}),r&&{listName:r})),c=s&&o?.href?K(K({},o?.href),{},{href:`${o?.href?.href}?${s}`}):o?.href;return K(K({},o),{},{href:c})},er=(e,t)=>{let r=(0,a.useContext)(J);if(!r)throw Error("You need to wrap your component with <ProductContextProvider>");return(0,B.Ng)(e,r,t)},en=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");return((e,t)=>{let{productId:r,offers:n,isMarketplace:a}=(0,b.EM)(t,e.productDocList),i=e.prices?.formattedPrice.find(e=>e.productId===t),o=i?.marketplaceData,s=o?.isMarketPlaceProduct||a,c=o?.offerId,l=n?.find(e=>e.offerId===c)?.seller;return{productId:r,sellerName:l?.sellerName,isMarketPlaceProduct:s,opcoSellerId:l?.opcoSellerId}})(t,e)},ea=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");return(0,W.Jn)(t,e)},ei=(e,t)=>{let r=(0,a.useContext)(J);if(!r)throw Error("You need to wrap your component with <ProductContextProvider>");return(({prices:e,productDocList:t,plpViewMode:r,accountPricePreference:n,userPricePermissions:a,productViewPage:i,cart:o,isGuestUser:s,isPriceDisplayMultiplierEnabled:c,
10cartTooltipSurchargesPerQuantity:l},u,p)=>{let h=(0,b.EM)(u,t),f=r===m.o6.Grid?"left":"right",g=i===m.WF.CART,y=(0,d.Fo)(n,a,i),v=e?.formattedPrice?.find(e=>e.productId===u)?.marketplaceData,{quantitySteps:_,contentUnit:O,priceDisplayMultiplier:w}=(0,b.Zp)({marketplaceData:v,productData:h})||{},P=I({productId:u,isLoading:e?.isLoading,priceHasError:!!e.error,priceDisplay:y,displaySize:"medium",displayAlignment:f,contentUnit:O??h?.contentUnit,quantitySteps:_,plpViewMode:r,disallowTooltip:s},((e,t,r)=>!e||t?{}:r&&r>0?{priceDisplayMultiplier:r}:{hideUnitPriceLine:!0})(c,g,w)),A=(0,C.jN)(p,o),j=g?(0,C.gS)(p,e.formattedPrice):(0,C.qE)(u,e.formattedPrice);if(!j)return I(I({},P),{},{price:void 0,priceModification:m.JH.Standard});let k=o?.items&&(0,C.ZA)(p,o.items),D=j?.priceBlock?.itemPrice,R=g&&!!A?.priceDisplayMultiplier,L=g&&!!A&&!A.priceDisplayMultiplier,M=!!(!g&&w&&w>0),F=g&&l&&k||void 0,$=F?A?.itemTaxes:void 0,B=$?.length?$.filter(e=>e.surcharge).map(({taxAmount:e,type:t})=>({taxAmount:e,type:t,surcharge:!0})):M||R?S(j?.taxes,{useDisplayAmount:!0}):S(j?.taxes,{quantity:F}),U=j.priceBlock.bestPrice,V=(()=>{if(R)return A.displayListPrice;if(L&&A.itemListPrice)return A.itemListPrice;if(M&&j.priceBlock.displayListPrice)return j.priceBlock.displayListPrice;let e=j.priceBlock.totalListPrice??j.priceBlock.listPrice;return e?.amount?e:void 0})(),q=((e,t,r,n,a,i,o,s,c)=>
10{let l=o?i?.displayListPrice:s?i?.itemListPrice:void 0,u=o||s?i?.itemNetPrice:i?.netPrice,d=!!(c?.priceDisplayMultiplier&&c.priceDisplayMultiplier>0),p=d&&!n,h=p?e?.priceBlock?.displayListPrice??e?.priceBlock?.listPrice:e?.priceBlock?.listPrice??e?.priceBlock?.bestPrice?.listPrice,f=p?e?.priceBlock?.displayNetPrice??e?.priceBlock?.netPrice:e?.priceBlock?.netPrice,m=h?.amount,g=f?.amount,y=s&&!i?.itemListPrice,v=e?.priceBlock?.listPrice?.amount,b=l?.amount!=null?l.amount:y?v:s?N(m,a,n):m,_=s?i?.netPrice?.amount??g:g,O=u?.amount??N(_,a,n);return{priceDisplay:t,taxes:r,price:{listPrice:T(l,h,b),netPrice:T(u,f,O),netPricePercentage:i?.netPricePercentage??e?.priceBlock?.netPricePercentage,promotionalListPrice:o?i?.itemPromotionalNetPrice:i?.promotionalNetPrice,promotionalListPercentage:i?.promotionalNetPercentage},priceDisplayMultiplier:d?c?.priceDisplayMultiplier??void 0:void 0,contentUnit:d?c?.contentUnit??void 0:void 0}})(j,y,B,g,k,A,R,L,{priceDisplayMultiplier:w,contentUnit:O??h?.contentUnit}),G=U?.context,z=G?.type===m.JH.Promotion;if(P.priceTooltipData=q,U&&G&&z){let{promotionalNetSource:e,promotionalListSource:t}=((e,t)=>({promotionalNetSource:t?e.displayNetPrice??e.netPrice:e.netPrice,promotionalListSource:t?e.displayListPrice??e.listPrice:e.listPrice}))(U,M),r=g&&!R?A?.promotionalNetPrice:void 0,n=r?.amount??N(e?.amount,k,g),a=L&&r?(0,C.Nr)(n,k||1):n;P.priceTooltipData.price=I(I({},q.price),{},{promotionalListPrice:q.price.promotionalListPrice||t,promotionalNetPrice:I(I({},r??e),{},{amount:a}),promotionalNetPercentage:G.promotionDetails?.promotionalNetPercentageDecimal,promotionalListPercentage:q.price.promotionalListPercentage||G.promotionDetails?.promotionalListPercentage})}let H=(0,C.tm)(U?.context?.type);if(!U)return I(I({},P),{},{price:void 0,priceModification:H});let W=((e,t,r,n,a,i,o,s,c,l,u)=>{if((t||r)&&n&&a)return a;if((t||r)&&i)return i;let d=o??s;return e&&d?d:u?l:c})(M,R,L,z,A?.itemPromotionalNetPrice,A?.itemNetPrice,U.displayNetPrice,j.priceBlock.displayNetPrice,U.totalNetPrice,D,g),Q=U.context?.promotionDetails,Y=j.priceBlock.displayNetPrice;switch(y){case E.k.GROSS_AND_NET_PRICES:return I(I({},P),{},{price:{secondaryPrice:V,mainPrice:W,priceReductionPercentage:Q?.promotionalNetPercentageDecimal,priceBeforeReduction:x(Y,Q?.totalStrikeThroughNetPrice,M),priceByStep:U.netPrice},priceModification:H});case E.k.ONLY_GROSS_PRICES:return I(I({},P),{},{price:{secondaryPrice:void 0,mainPrice:V,priceReductionPercentage:Q?.promotionalListPercentage,priceBeforeReduction:x(V,Q?.totalStrikeThroughListPrice,M),priceByStep:R?A.displayListPrice:U.listPrice},priceModification:H});case E.k.ONLY_NET_PRICES:return I(I({},P),{},{price:{secondaryPrice:void 0,mainPrice:W,priceReductionPercentage:Q?.promotionalNetPercentageDecimal,priceBeforeReduction:x(Y,Q?.totalStrikeThroughNetPrice,M),priceByStep:U.netPrice},priceModification:H});case E.k.NO_PRICES:return I(I({},P),{},{price:void 0,priceModification:H});default:return(0,b.kg)(y)}})(r,e,t)},eo=(e,t,r)=>{let n=(0,a.useContext)(J);if(!n)throw Error("You need to wrap your component with <ProductContextProvider>");let o=(0,i.stringify)(K(K({},t&&{isRecommended:"true"}),r&&{listName:r}))||void 0;return(0,U.H)(n,e,o)},es=(e,t,r)=>{let n=(0,a.useContext)(J);if(!n)throw Error("You need to wrap your component with <ProductContextProvider>");return(({stocks:e,addToCart:t,isInShoppingCart:r,isCartLinkedToCurrentProject:n,userHasCartPermissions:i,userHasValidatePermission:o,prices:c,productViewPage:l,cartId:u,productDocList:d,handleQuantityUpdate:p,displayGreenOffer:h,cart:f,disableCardActions:g,forcefullyEnableAddToCartAction:y,totalPrices:v,plpViewMode:_,sponsoredProductIds:O},C,E,w)=>{let{marketplaceData:P,quantityCounterCta:I}=c?.formattedPrice?.find(({productId:e})=>e===C)||{},x=(({disableCardActions:e,isCartLinkedToCurrentProject:t,userHasCartPermissions:r,userHasValidatePermission:n,hasPrice:a,cartStatus:i})=>e||!1===t||!r||!a||i===s.f5.ApprovalRequired&&!n)({disableCardActions:g,isCartLinkedToCurrentProject:n,userHasCartPermissions:i,userHasValidatePermission:o,hasPrice:I?.hasPrice,cartStatus:f?.status}),S=(0,b.EM)(C,d),T=S&&(0,b.Zp)({marketplaceData:P,productData:S}
10),N=T?.minQuantity??S?.minQuantity??1,A=T?.quantitySteps,j=(0,k.FD)(C,e.stockData,e.stockError),D=S?.greenRating,R=r(C),L=!!O?.has(C),M=(0,a.useCallback)(e=>{t?.(G(G(G(G({productId:C,cartId:u,quantity:e},P?.isMarketPlaceProduct&&{offerId:P?.offerId}),!P?.isMarketPlaceProduct&&{campaignId:I?.campaignId}),{},{deliveryIndicator:j,priceData:I?.gtmInfoAddToCart},L?{cartSource:V.oe.SPONSORED_PRODUCT_SRP,eventRelatedType:V.wP.SPONSORED_PRODUCT}:{cartSource:(0,b.vU)(l)}),{},{viewType:_,productInfo:{productId:C,identifier:{productTitle:S?.productTitle,brandName:S?.brandName},categorisation:S?.categorisation||[],productCategoriesInfo:S?.productCategoriesInfo,greenOffer:G({},h?{greenRating:D}:{}),hasVariants:!!S?.hasVariant},productIndex:w}))},[t,C,u,P?.isMarketPlaceProduct,P?.offerId,I?.campaignId,I?.gtmInfoAddToCart,j,l,S?.productTitle,S?.brandName,S?.hasVariant,h,D,L]);return G(G(G({isProductInCart:R,isCounterDisabled:x,isAddToCartDisabled:x&&!(I?.hasPrice&&y),isCartLinkedToCurrentProject:n,addToCart:M,minQuantity:N,quantitySteps:A,handleQuantityUpdate:p,hideCta:l===m.WF.CART},l===m.WF.CART&&{quantity:f?.items?.find(({id:e})=>e===E)?.quantity??null}),l===m.WF.WISHLIST&&{quantity:S?.quantity??null}),{},{formattedTotalPrice:v?.[C],campaignId:I?.campaignId,plpViewMode:_,product:S,priceData:I?.gtmInfoAddToCart,stocks:j})})(n,e,t,r)},ec=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");return(0,A.M)(t,e)},el=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");return((e,{productDocList:t})=>{let{lastPurchasedDate:r,numberOfOrders:n}=t?.find(({productId:t})=>t===e);return{lastPurchasedDate:r,numberOfOrders:n}})(e,t)},eu=({productId:e,selectedQuantity:t,quantities:r})=>{let n=(0,a.useContext)(J);if(!n)throw Error("You need to wrap your component with <ProductContextProvider>");let{productDocList:i,prices:o,onSelect:s,selectedProducts:c}=n;return(({productId:e,selectedQuantity:t,productDocList:r,prices:n,onSelect:a,selectedProducts:i,quantities:o})=>({onSelectHandler:()=>{let i=r.filter(t=>t.productId===e),o=(0,C.qE)(e,n.formattedPrice)?.priceSelectionCta;a(H(H({},i[0]),{},{quantity:t}),o)},isSelectionEnabled:!!a,isSelected:!!i?.find(t=>t.productId===e),selectAllProducts:()=>{let e=new Map;return o?.forEach(t=>e.set(t.productId,t.quantity)),r.map(t=>H(H({},t),{},{price:(0,C.qE)(t.productId??"",n.formattedPrice)?.priceSelectionCta,quantity:e.get(t.productId)||t.quantity}))}}))({productId:e,selectedQuantity:t,productDocList:i,prices:o,onSelect:s,selectedProducts:c,quantities:r})},ed=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");return t.cart?.items?.find(t=>t.id===e)},ep=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");let r=(0,b.EM)(e,t.productDocList),n=(0,g.GC)({title:r.productTitle,id:e,brandName:r?.brandName});return{hasVariant:r.hasVariant,href:n}},eh=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");let r=(0,b.EM)(e,t.productDocList),n=t.prices.formattedPrice.find(({productId:e})=>e===r.productId)?.priceBlock,i=(0,h.UV)(r.productId,t.stocks.stockData);return{product:r,priceData:n,inStock:i,stocks:t.stocks.stockData,price:t.prices}},ef=e=>{let t=(0,a.useContext)(J);if(!t)throw Error("You need to wrap your component with <ProductContextProvider>");let r=(0,b.EM)(e,t.productDocList);return{maxQuantity:(0,h.kE)({productId:r.productId,stockIndicator:r.stockIndicator,stocks:t.stocks.stockData,step:r.quantitySteps,logisticMethod:s.gG.Delivery})}},em=()=>{let e=(0,a.useContext)(J);return{onDeleteCableCut:e.onDeleteCableCut,onAddCableCut:e.onAddCableCut,onChangeCableCut:e.onChangeCableCut,isAddingCutToCart:e.isAddingCutToCart,addToCart:e.addToCart}},eg=()=>{let e=(0,a.useContext)(J);if(!e)throw Error("You need to wrap your component with <ProductContextProvider>");return{priceData:e.prices.prices,stockData:e.stocks.stockData}},ey=(e,t)=>{let r=(0,a.useContext)(J);if(!r)throw Error("You need to wrap your component with <ProductContextProvider>");return((e,t,{stocks:r,productViewPage:n,isInFavoriteList:a,addToFavoriteList:i,productDocList:o})=>{let s=(0,b.EM)(e,o),c={productImage:s.productImage,brandName:s.brandName,productTitle:s.productTitle,quantity:t,orderingDetail:{minQuantity:Number(s.minQuantity)?Number(s.minQuantity):null,quantitySteps:Number(s.quantitySteps)?Number(s.quantitySteps):null,contentUnit:s.contentUnit},productId:s.productId},l=s.stockIndicator,u=(0,k.FD)(s.productId,r.stockData,r.stockError),d=R({item:c,isInFavoriteList:a,addToFavoriteList:i,productViewPage:n,productIsNotSoldAnymore:(0,h.jI)(l,u)});return d?.length?M(M({},d[0]),{},{productTitle:s.productTitle}):null})(e,t,r)},ev=(e,t,r)=>{let n=(0,a.useContext)(J),{isGetDeliveryPromisesQueryLoading:i,deliveryPromisesLabel:o,deliveryPromisesIcon:s}=(0,j.S)({skip:!e||!n||n?.productViewPage!==m.WF.CART,productId:e,itemId:t,productIndex:r,productViewSource:n?.productViewPage})||{};if(!n)throw Error("You need to wrap your component with <ProductContextProvider>");return{isGetDeliveryPromisesQueryLoading:i,deliveryPromisesLabel:o,deliveryPromisesIcon:s}}},17698:(e,t,r)=>{e.exports=r(90909)},17846:(e,t,r)=>{var n=r(77654);e.exports=function(e,t){return n(e,t)}},18009:e=>{e.exports={container:"banner_container__aq3oe",statusIcon:"banner_statusIcon__a_agy",closeButton:"banner_closeButton__OZ589",iconWithText:"banner_iconWithText__8kmFX",info:"banner_info__k4X_a",neutral:"banner_neutral__7WLBu",warning:"banner_warning__wfTYX",error:"banner_error__Z8l8r",validation:"banner_validation__ukexw",link:"banner_link__tTgkZ"}},18128:e=>{e.exports={container:"stock-locator-card_container__d1KDQ",active:"stock-locator-card_active__9P4xv",root:"stock-locator-card_root__jNIY9",storeNameContainer:"stock-locator-card_storeNameContainer__AD8jS",stockIndicator:"stock-locator-card_stockIndicator__VemQA",storeLinks:"stock-locator-card_storeLinks__moBPz",padding:"stock-locator-card_padding__EvBba"}},18408:(e,t,r)=>{"use strict";r.d(t,{A:()=>$});var n=r(4181),a=r(14378);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
10)),n.forEach(function(t){(0,a.A)(e,t,r[t])})}return e}var o=r(8856),s=r(35664);function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if(t&&("object"==(0,n.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return c(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}var h={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},f=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.A)(this,e),this.init(t,r)}return(0,s.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||h,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),m=function(){function e(){(0,o.A)(this,e),this.observers={}}return(0,s.A)(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(r))})}}]),e}();function g(){var e,t,r=new Promise(function(r,n){e=r,t=n});return r.resolve=e,r.reject=t,r}function y(e){return null==e?"":""+e}function v(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(a())return{};var o=n(i.shift());!e[o]&&r&&(e[o]=new r),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return a()?{}:{obj:e,k:n(i.shift())}}function b(e,t,r){var n=v(e,t,Object);n.obj[n.k]=r}function _(e,t){var r=v(e,t),n=r.obj,a=r.k;if(n)return n[a]}function O(e,t,r){var n=_(e,r);return void 0!==n?n:_(t,r)}function C(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function w(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return E[e]}):e}var P="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,I=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,o.A)(this,t),r=l(this,u(t).call(this)),P&&m.call(c(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return p(t,e),(0,s.A)(t,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=[e,t];return r&&"string"!=typeof r&&(i=i.concat(r)),r&&"string"==typeof r&&(i=i.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(i=e.split(".")),_(this.data,i)}},{key:"addResource",value:function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var o=[e,t];r&&(o=o.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),b(this.data,o,n),a.silent||this.emit
10("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in r)("string"==typeof r[a]||"[object Array]"===Object.prototype.toString.apply(r[a]))&&this.addResource(e,t,a,r[a],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);var c=_(this.data,s)||{};n?function e(t,r,n){for(var a in r)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof r[a]||r[a]instanceof String?n&&(t[a]=r[a]):e(t[a],r[a],n):t[a]=r[a]);return t}(c,r,a):c=i({},c,r),b(this.data,s,c),o.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(m),x={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,a){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,a))}),t}},S={},T=function(e){function t(e){var r,n,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.A)(this,t),a=l(this,u(t).call(this)),P&&m.call(c(a)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
10i18nFormat","utils"],n=c(a),r.forEach(function(t){e[t]&&(n[t]=e[t])}),a.options=i,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=f.create("translator"),a}return p(t,e),(0,s.A)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:a};var o=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(a=o.shift()),e=o.join(n)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,r,a){var o=this;if("object"!==(0,n.A)(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],r),l=c.key,u=c.namespaces,d=u[u.length-1],p=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase())return h?d+(r.nsSeparator||this.options.nsSeparator)+l:l;var f=this.resolve(e,r),m=f&&f.res,g=f&&f.usedKey||l,y=f&&f.exactUsedKey||l,v=Object.prototype.toString.apply(m),b=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,O="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(_&&m&&O&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(v)&&("string"!=typeof b||"[object Array]"!==v)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,r):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(s){var C="[object Array]"===v,E=C?[]:{},w=C?y:g;for(var P in m)if(Object.prototype.hasOwnProperty.call(m,P)){var I="".concat(w).concat(s).concat(P);E[P]=this.translate(I,i({},r,{joinArrays:!1,ns:u})),E[P]===I&&(E[P]=m[P])}m=E}}else if(_&&"string"==typeof b&&"[object Array]"===v)(m=m.join(b))&&(m=this.extendTranslation(m,e,r,a));else{var x=!1,S=!1,T=void 0!==r.count&&"string"!=typeof r.count,N=t.hasDefaultValue(r),A=T?this.pluralResolver.getSuffix(p,r.count):"",j=r["defaultValue".concat(A)]||r.defaultValue;!this.isValidLookup(m)&&N&&(x=!0,m=j),this.isValidLookup(m)||(S=!0,m=l);var k=N&&j!==m&&this.options.updateMissing;if(S||x||k){if(this.logger.log(k?"updateKey":"missingKey",p,d,l,k?j:m),s){var D=this.resolve(l,i({},r,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var M=0;M<L.length;M++)R.push(L[M]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(r.lng||this.language):R.push(r.lng||this.language);var F=function(e,t,n){o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,t,k?n:m,k,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,t,k?n:m,k,r),o.emit("missingKey",e,d,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?R.forEach(function(e){o.pluralResolver.getSuffixes(e).forEach(function(t){F([e],l+t,r["defaultValue".concat(t)]||j)})}):F(R,l,j))}m=this.extendTranslation(m,e,r,f,a),S&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(l)),S&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,r,n,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,n.usedLng,n.usedNS,n.usedKey,{resolved:n});
10else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(i({},r,{interpolation:i({},this.options.interpolation,r.interpolation)}));var s,c=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=i({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),c){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return a&&a[0]===n[0]&&!r.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):o.translate.apply(o,n.concat([t]))},r)),r.interpolation&&this.interpolator.reset()}var p=r.postProcess||this.options.postProcess,h="string"==typeof p?[p]:p;return null!=e&&h&&h.length&&!1!==r.applyPostProcessor&&(e=x.handle(h,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,a,i,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,s),l=c.key;r=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,h=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach(function(e){o.isValidLookup(t)||(i=e,!S["".concat(h[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(i)&&(S["".concat(h[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(r){if(!o.isValidLookup(t)){a=r;var i,c,u=l,h=[u];for(o.i18nFormat&&o.i18nFormat.addLookupKeys?o.i18nFormat.addLookupKeys(h,l,r,e,s):(d&&(i=o.pluralResolver.getSuffix(r,s.count)),d&&p&&h.push(u+i),p&&h.push(u+="".concat(o.options.contextSeparator).concat(s.context)),d&&h.push(u+=i));c=h.pop();)o.isValidLookup(t)||(n=c,t=o.getResource(r,e,c,s))}}))})}}),{res:t,usedKey:r,exactUsedKey:n,usedLng:a,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),t}(m);function N(e){return e.charAt(0).toUpperCase()+e.slice(1)}var A=function(){function e(t){(0,o.A)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=f.create("languageUtils")}return(0,s.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=N(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=N(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=N(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach(function(e){if(!t){var n=r.formatLanguageCode(e);(!r.options.supportedLngs||r.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];
10return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],i=function(e){e&&(r.isSupportedCode(e)?a.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>a.indexOf(e)&&i(r.formatLanguageCode(e))}),a}}]),e}(),j=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],k={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},D=function(){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.A)(this,e),this.languageUtils=t,this.options=n,this.logger=f.create("pluralResolver"),this.rules=(r={},j.forEach(function(e){e.lngs.forEach(function(t){r[t]={numbers:e.nr,plurals:k[e.fc]}})}),r)}return(0,s.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(e){var t=this,r=this.getRule(e);return r?r.numbers.map(function(r){return t.getSuffix(e,r)}):[]}},{key:"getSuffix",value:function(e,t){var r=this,n=this.getRule(e);if(n){var a=n.noAbs?n.plurals(t):n.plurals(Math.abs(t)),i=n.numbers[a];this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[
100]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON?o():this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]?o():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),R=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.A)(this,e),this.logger=f.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,s.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:w,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?C(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?C(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?C(t.nestingPrefix):t.nestingPrefixEscaped||C("$t("),this.nestingSuffix=t.nestingSuffix?C(t.nestingSuffix):t.nestingSuffixEscaped||C(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var a,i,o,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(0>e.indexOf(s.formatSeparator)){var a=O(t,c,e);return s.alwaysFormat?s.format(a,void 0,r):a}var i=e.split(s.formatSeparator),o=i.shift().trim(),l=i.join(s.formatSeparator).trim();return s.format(O(t,c,o),l,r,n)};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n&&n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach(function(t){for(o=0;a=t.regex.exec(e);){if(void 0===(i=u(a[1].trim())))if("function"==typeof d){var r=d(e,a,n);i="string"==typeof r?r:""}else if(p){i=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||s.useRawValueToEscape||(i=y(i));if(e=e.replace(a[0],t.safeValue(i)),t.regex.lastIndex=0,++o>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var r,n,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},o);function c(e,t){var r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(n[1]);e=n[0],a=(a=this.interpolate(a,s)).replace(/'/g,'"');try{s=JSON.parse(a),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(a)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],u=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var d=r[1].split(this.formatSeparator).map(function(e){return e.trim()});r[1]=d.shift(),l=d,u=!0}if((n=t(c.call(this,r[1].trim(),s),s))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=y(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=l.reduce(function(e,t){return a.format(e,t,o.lng,o)},n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}(),L=function(e){function t(e,r,n){var a,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,o.A)(this,t),a=l(this,u(t).call(this)),P&&m.call(c(a)),a.backend=e,a.store=r,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=f.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return p(t,e),(0,s.A)(t,[{key:"queueLoad",value:function(e,t,r,n){var a=this,i=[],o=[],s=[],c=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!r.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?0>o.indexOf(s)&&o.push(s):(a.state[s]=1,n=!1,0>o.indexOf(s)&&o.push(s),0>i.indexOf(s)&&i.push(s),0>c.indexOf(t)&&c.push(t)))}),n||s.push(e)}),(i.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:n}),{toLoad:i,pending:o,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),a=n[0],i=n[1];
10t&&this.emit("failedLoading",a,i,t),r&&this.store.addResourceBundle(a,i,r),this.state[e]=t?-1:2;var o={};this.queue.forEach(function(r){n=r.loaded,(l=(c=v(n,[a],Object)).obj)[u=c.k]=l[u]||[],s||l[u].push(i);for(var n,s,c,l,u,d=r.pending,p=d.indexOf(e);-1!==p;)d.splice(p,1),p=d.indexOf(e);t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach(function(e){o[e]||(o[e]=[]),r.loaded[e].length&&r.loaded[e].forEach(function(t){0>o[e].indexOf(t)&&o[e].push(t)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,r){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,function(s,c){if(s&&c&&a<5)return void setTimeout(function(){n.read.call(n,e,t,r,a+1,2*i,o)},i);o(s,c)}):o(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),a=n[0],i=n[1];this.read(a,i,"read",void 0,void 0,function(n,o){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(a," failed"),n),!n&&o&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(a),o),t.loaded(e,n,o)})}},{key:"saveMissing",value:function(e,t,r,n,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))return void this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,i({},o,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),t}(m);function M(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&0>e.whitelist.indexOf("cimode")&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function F(){}let $=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if((0,o.A)(this,t),e=l(this,u(t).call(this)),P&&m.call(c(e)),e.options=M(r),e.services={},e.logger=f,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),l(e,c(e));setTimeout(function(){e.init(r,n)},0)}return e}return p(t,e),(0,s.A)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function a(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "
10nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,n.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,n.A)(e[2])||"object"===(0,n.A)(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,M(t)),this.format=this.options.interpolation.format,r||(r=F),!this.options.isClone){this.modules.logger?f.init(a(this.modules.logger),this.options):f.init(null,this.options);var o=new A(this.options);this.store=new I(this.options.resources,this.options);var s=this.services;s.logger=f,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new D(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new R(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new L(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new T(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}});var l=g(),u=function(){var t=function(t,n){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=r,a="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return n();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};a?o(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return o(e)}
10),this.options.preload&&this.options.preload.forEach(function(e){return o(e)}),this.services.backendConnector.load(i,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,r){var n=g();return e||(e=this.languages),t||(t=this.options.ns),r||(r=F),this.services.backendConnector.reload(e,t,function(e){n.resolve(),r(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&x.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=g();this.emit("languageChanging",e);var a=function(e,a){a?(r.language=a,r.languages=r.services.languageUtils.toResolveHierarchy(a),r.translator.changeLanguage(a),r.isLanguageChangingTo=void 0,r.emit("languageChanged",a),r.logger.log("languageChanged",a)):r.isLanguageChangingTo=void 0,n.resolve(function(){return r.t.apply(r,arguments)}),t&&t(e,function(){return r.t.apply(r,arguments)})},i=function(e){var t="string"==typeof e?e:r.services.languageUtils.getBestMatchFromCodes(e);t&&(r.language||(r.language=t,r.languages=r.services.languageUtils.toResolveHierarchy(t)),r.translator.language||r.translator.changeLanguage(t),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(t)),r.loadResources(t,function(e){a(e,t)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t){var r=this,a=function e(t,a){var o;if("object"!==(0,n.A)(a)){for(var s=arguments.length,c=Array(s>2?s-2:0),l=2;l<s;l++)c[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([t,a].concat(c))}else o=i({},a);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,r.t(t,o)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
10if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.languages[0],a=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var o=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};if(r.precheck){var s=r.precheck(this,o);if(void 0!==s)return s}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||o(n,e)&&(!a||o(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=g();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>r.options.ns.indexOf(e)&&r.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=g();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],a=e.filter(function(e){return 0>n.indexOf(e)});return a.length?(this.options.preload=n.concat(a),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(e,r)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,a=i({},this.options,r,{isClone:!0}),o=new t(a);return["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=i({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new T(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit.apply(o,[e].concat(r))}),o.init(a,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}}]),t}(m))},18959:e=>{e.exports={sliderHeading:"slider-shell_sliderHeading__89atc",sliderHeadingLink:"slider-shell_sliderHeadingLink__Z0qzX",sliderHeadingArrow:"slider-shell_sliderHeadingArrow__803kw",sliderContainer:"slider-shell_sliderContainer__nhxwy",slider:"slider-shell_slider__lDmZW",hideScrollBar:"slider-shell_hideScrollBar__RZLyl",overlay:"slider-shell_overlay__uspsd",fadeIn:"slider-shell_fadeIn__h8qTC",leftOverlay:"slider-shell_leftOverlay__HuJto",rightOverlay:"slider-shell_rightOverlay__fZQ3V",arrowButton:"slider-shell_arrowButton__agqOi",arrowButtonLeft:"slider-shell_arrowButtonLeft__n0NIK",arrowButtonRight:"slider-shell_arrowButtonRight__JxCKc"}},18975:e=>{e.exports={container:"reinsurance_container__07Ko1",items:"reinsurance_items__0d6UQ",item:"reinsurance_item__ARIHR",itemText:"reinsurance_itemText__najX0"}},19155:(e,t,r)=>{"use strict";r.d(t,{TD:()=>u}),r(60004);var n=r(12028),a=r(88088),i=r(35695),o=r(43207),s=r(30321),c=r.n(s),l=r(60072);let u=({size:e,variant:t,"data-testid":r="green-rating",className:s})=>{let[u]=(0,o.B)(),d=(e=>"l"===e?"body-4":"m"===e?"body-3":"s"===e?"body-2":void 0)(e);return(0,l.jsxs)("div",{"data-testid":r,className:(0,i.A)(c().container,{[c().variantB]:"B"===t,[c().variantC]:"C"===t,[c().variantUnknown]:"None"===t||"X"===t,[c().bigContainer]:"l"===e,[c().mediumContainer]:"m"===e,[c().smallContainer]:"s"===e,[c().noneBigContainer]:"l"===e&&"None"===t,[c().noneSmallContainer]:"l"!==e&&"None"===t},s),children:[(0,l.jsx)(n.I,{icon:"leaf",size:"s"===e?"xs":"s",title:u("greenRating.leafIcon.title")}),"None"!==t&&"X"!==t&&(0,l.jsx)(a.E,{size:d,weight:"bold",className:(0,i.A)(c().ratingLetter,{[c().smallLetter]:"s"===e,[c().normalLetter]:"s"!==e}),children:t})]})}},19394:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var n=r(16178);function a(e,t){let r=(0,n.a)(e,t?.in);return r.setHours(0,0,0,0),r}},19690:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var n=(0,r(60004).createContext)(null)},20655:(e,t,r)=>{"use strict";r.d(t,{r:()=>nT});var n=r(12072),a=r(60004),i=r(35695),o=r(76316),s=r.n(o),c=r(10983),l=r(48628),u=r(21115),d=r.n(u),p=r(68915),h=r(7976),f=r(17387),m=r(64024),g=r(94835),y=r(31811),v=r(83944),b=r(42092),_=r(43207);let O=()=>{let e=(0,a.useRef)(null),{setNumOfBannersDisplayed:t,numOfBannersDisplayed:r}=(0,v.Ys)(),{cart:n,isCartLoading:i}=(0,y.B_)(),o=n?.logisticDetails?.facilityId,{data:s}=(0,g.j2E)({variables:{facilityId:o},skip:!o||i}),c=s?.storeById,{state:{isConnectedOnBehalf:l,isLoggedIn:u,account:d,guestUser:h},dispatch:f}=(0,a.useContext)(p.cy),{hasStoreChanged:m,previousStore:O}=(({activeStoreData:e,cart:t,account:r})=>{let[n]=(0,_.B)(),{0:i,1:o}=(0,a.useState)(!1),{0:s,1:c}=(0,a.useState)(null),{sendToast:l}=(0,b.d)(),{name:u,desactivationDate:d,activationDate:p}=(0,a.useMemo)(()=>e?.storeById||{},[e?.storeById?.activationDate,e?.storeById?.name,e?.storeById?.desactivationDate]),[h]=(0,g.aMY)({onCompleted:()=>{o(!0)},onError:()=>{l({message:n("header.storeChanged.error"),status:"error",closeLabel:n("toaster.accessibility.close")})}}),f=(0,a.useCallback)(()=>{let e=new Date,n=d?new Date(d):new Date,a=new Date(p??"");e>n||a>e?(c(u),t?.id&&r?.facilityId&&h({variables:{cartId:t.id,facilityId:r?.facilityId}})):o(!1)},[r?.facilityId]);return(0,a.useEffect)(()=>{d&&p&&!i&&f()},[f,i,p,d]),{hasStoreChanged:i,previousStore:s}})({activeStoreData:s,cart:n,account:d});return(0,a.useEffect)(()=>{f&&c&&f({type:p.xW.SET_STORE,payload:c})},[f,c]),{activeStoreData:s,drawerAnchorRef:e,hasStoreChanged:m,isConnectedOnBehalf:l,isLoggedIn:u,guestUser:h,previousStore:O,numOfBannersDisplayed:r,setNumOfBannersDisplayed:t}};var C=r(82726),E=r(37116),w=r(63041),P=r(12028),I=r(2117),x=r(87981),S=r(85582),T=r(63298),N=r(88952),A=r(10468),j=r(86263),k=r(52726),D=r(87335),R=r(55537),L=r(35477),M=r(69222),F=r(94863),$=r.n(F),B=r(60072);let U=()=>{let[e]=(0,_.B)();return(0,B.jsxs)("nav",{"aria-label":e("common.skipLinks"),className:$().skipLinksContainer,tabIndex:-1,
10children:[(0,B.jsx)(M.N,{href:"#mega-menu-button",variant:"underlined",size:"l",children:e("common.skipLinks.skipToNavigation")}),(0,B.jsx)(M.N,{href:"#main",variant:"underlined",size:"l",children:e("common.skipLinks.skipToContent")})]})};var V=r(88088),q=r(95986),G=r(27127),z=r(54688),H=r(81687),W=r.n(H);let Q=["id","name","isDisabled","className","onSwitchButtonClick","isBrandedHeader","hideSwitchIcon"];function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let J=e=>{let{id:t,name:r,isDisabled:n,className:a,onSwitchButtonClick:o,isBrandedHeader:s,hideSwitchIcon:c}=e,l=(0,z.A)(e,Q),{isFlagEnabled:u}=(0,h.h)(),d=u(G.F3);return(0,B.jsx)(C.$,K(K({className:(0,i.A)(W().container,d&&W().navigationHeaderButton,a),variant:d?"unstyled":s?"secondary-on-brand":"tertiary",icon:d?void 0:"buildings",size:"l"},l),{},{disabled:n,onClick:o,children:(0,B.jsxs)("div",{title:r,className:(0,i.A)(W().buttonContent,d&&W().navigationHeaderContent),children:[(0,B.jsxs)("div",{className:W().textContainer,children:[(0,B.jsx)(V.E,{as:"span",size:"body-2",weight:"bold",color:s?"brand-bolder":"default",children:r}),(0,B.jsx)(V.E,{as:"span",size:"body-2",weight:"regular",color:s?"brand-bolder":"subtle",children:t})]}),(!c||d)&&(0,B.jsxs)("div",{className:(0,i.A)(W().iconContainer,d&&W().navigationHeaderIcon),children:[(0,B.jsx)(P.I,{className:(0,i.A)(W().arrows,s&&d&&W().brandedHeaderIcon,c&&W().hiddenSwitchIcon),icon:"arrow-double-horiz-in",size:"l"}),d&&(0,B.jsx)("div",{className:W().verticalSeparator})]})]})}))};var Z=r(87450),X=r.n(Z),ee=r(45062),et=r(23392),er=r.n(et);let en=({chipQuantity:e,primaryText:t,secondaryText:r,dataTestId:n,route:a,href:o,icon:s="cart",ariaLabel:c,onClick:l,hasSwitchIcon:u=!1,disabled:d=!1,disabledStyle:p=!1,underlinePrimaryText:f=!1,hasSeparator:m=!1})=>{let[g]=(0,_.B)(),{isFlagEnabled:y}=(0,h.h)(),v=y(A.N1),b=g(c||`header.ariaLabel.${s}`,{chipQuantity:e,secondaryText:r}),O=o?j.w:"div";return(0,B.jsx)(O,{app:a,href:o,variant:"unstyled","aria-label":b,"data-testid":n,onClick:e=>d?e.preventDefault():l?.(),tabIndex:d?-1:0,className:(0,i.A)(er().actionLinkWrapper,v&&er().brandedHeader,p&&er().fullyDisabled,m&&er().hasSeparator),children:(0,B.jsxs)("div",{className:(0,i.A)(u&&er().actionLink,d&&er().disabled,m&&er().hasSeparator),children:[(0,B.jsxs)("div",{className:(0,i.A)(er().container,er().newContainer),children:[!m&&(0,B.jsxs)("div",{className:(0,i.A)(er().containerIcon,v&&er().brandedHeaderIcon,(!o||d)&&er().disableHover),children:[(0,B.jsx)(P.I,{className:(0,i.A)(d&&er().disabled),icon:s,size:"l"}),!d&&e&&(0,B.jsx)(ee.v,{className:(0,i.A)(er().chip,d&&er().disabled),variant:v?"secondary":"brand",size:"xs",rounded:!0,children:e})]}),!d&&(0,B.jsxs)("div",{className:(0,i.A)(er().containerText,er().newContainerText,u&&er().containerTextMobileVisible,f&&er().underlinePrimary,m&&er().hasSeparator),children:[t&&(0,B.jsx)(V.E,{as:"span",size:"body-2",weight:"bold",color:v?"brand-bolder":"default","data-testid":`${n}-primary`,"data-cs-mask":!0,children:t}),r&&(0,B.jsx)(V.E,{as:"span",size:"body-2",color:v?"brand-bolder":"subtle","data-testid":`${n}-secondary`,"data-cs-mask":!0,children:r})]})]}),u&&(0,B.jsxs)("div",{className:(0,i.A)(er().switchIconContainer,m&&er().separatorIconContainer),children:[(0,B.jsx)("div",{className:(0,i.A)(er().switchIcon,v&&er().brandedSwitchIcon),children:(0,B.jsx)(P.I,{icon:"arrow-double-horiz-in",size:"l"})}),m&&(0,B.jsx)("div",{className:er().verticalSeparator})]})]})})};function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let ei=({isInsideMenu:e})=>{let{account:t,userAccounts:r,associateUser:a}=(0,p.Z2)(),{isFlagEnabled:i}=(0,h.h)(),{sendSubnavGtmTag:o}=(0,I.PB)(),s=r?.length>1,c=i(A.N1),l=i(A.F3),u=!s||!!a,{handleOpenSwitchAccountModal:d}=(0,q.I)(),f=()=>{d(),o("switch-account")},{id:m="",name:g=""}=t||{};return(0,B.jsx)("div",{"data-testid":"switch-account",className:X().modalSwitchAccountContainer,children:e?(0,B.jsx)(en,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?ea(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({icon:"buildings",hasSwitchIcon:!0,primaryText:g,secondaryText:m,disabledStyle:u,dataTestId:"switch-account-link"},!u&&{onClick:f})):(0,B.jsx)(J,{id:m,name:g,isDisabled:u,onSwitchButtonClick:f,"data-testid":"switch-account-button",isBrandedHeader:c,hideSwitchIcon:l&&!s})})};var eo=r(51512),es=r.n(eo);let ec=({setIsDrawerOpen:e})=>{let{account:t,userAccounts:r}=(0,p.Z2)(),[n]=(0,_.B)(),{isFlagEnabled:a}=(0,h.h)(),{sendSubnavGtmTag:i}=(0,I.PB)(),{handleOpenSwitchAccountModal:o}=(0,q.I)(),s=a(G.F3),c=r?.length>1,l=(e=>{let{addressLine1:t,city:r,country:n,postalCode:a}=e||{};return[t,r,n,a].filter(Boolean).join(", ")})(t?.deliveryAddress);return s?(0,B.jsxs)("div",{className:es().projectInfoSection,children:[(0,B.jsxs)("div",{className:es().projectInfo,children:[(0,B.jsx)(V.E,{size:"body-3",weight:"bold",children:t?.name}),(0,B.jsx)(V.E,{size:"body-2",weight:"regular",color:"subtle",children:t?.id}),t?.deliveryAddress&&(0,B.jsx)(V.E,{size:"body-2",weight:"regular",color:"subtle",children:l})]}),c&&(0,B.jsx)(C.$,{icon:"arrow-double-horiz-in",variant:"ghost",onClick:()=>{o(),i("switch-account")},title:n("accountSwitch.title")})]}):(0,B.jsxs)("div",{className:es().mobileMenuTopContainer,"data-testid":"logged-in-mobile-top-container",children:[(0,B.jsx)("div",{className:es().mobileMenuSwitchAccount,children:(0,B.jsx)(ei,{isInsideMenu:!0})}),e&&(0,B.jsxs)("div",{className:es().mobileMenuTopContainerInner,children:[(0,B.jsx)("div",{className:es().divider}),(0,B.jsx)(C.$,{icon:"gear",title:"Open settings drawer",variant:"ghost",onClick:()=>e()})]})]})};var el=r(91683),eu=r(87285),ed=r(97215),ep=r(73121),eh=r(8225),ef=r(75778),em=r(84517);let eg=({OpenDrawerButton:e})=>{let[t]=(0,_.B)(),{isLoggedIn:r}=(0,p.Z2)(),{isOpen:n,closeStoreLocator:a,showStoreLocator:i,selectStorePanelProps:o,setSelectStorePanelProps:s,initialFacilityId:c}=(0,ef.SA)(),{cart:l}=(0,y.B_)(),{data:u}=(0,ed.j2)({variables:{facilityId:c||l?.logisticDetails?.facilityId},skip:!l?.logisticDetails?.facilityId&&!c||!r}),d=()=>{a(),s(null)};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(e,{onClick:i}),(0,B.jsx)(el._,{isOpen:n,onClose:d,closeLabel:t("storeLocator.closeDrawer"),"data-testid":"store-locator-drawer","data-cs-capture":!0,children:o&&r?(0,B.jsx)(eu.N,{closeDrawer:d,selectStorePanelProps:o}):(0,B.jsx)(em.p,{hook:r?ep.T:eh.S,defaultStore:u?.storeById})})]})};var ey=r(39624),ev=r(82979),eb=r(66403),e_=r.n(eb);let eO=({Icon:e,primaryLabel:t,secondaryLabel:r,onClick:n,dataTestId:a,isActive:o=!1,isBrandedHeader:s=!1,isNewHeaderNavigation:c=!1})=>(0,B.jsxs)("button",{className:(0,i.A)(e_().headerActionButton,o&&e_().active),onClick:n,"data-testid":a,"aria-haspopup":"dialog","aria-expanded":o,"aria-label":`${t||""} ${r||""}`,children:[(0,B.jsx)(V.E,{as:"span",className:(0,i.A)(e_().containerIcon,s&&e_().brandedHeader),color:s?"brand-bolder":"default","data-testid":`${a}-icon`,children:e}),(0,B.jsxs)("span",{className:(0,i.A)(e_().containerText,c&&e_().newHeaderNavigation),children:[t&&(0,B.jsx)(V.E,{as:"span",size:"body-2",color:s?"brand-bolder":"default",weight:"bold","data-testid":`${a}-primary`,children:t}),r&&(0,B.jsx)(V.E,{as:"span",size:"body-2",color:s?"brand-bolder":"subtle","data-testid":`${a}-secondary`,children:r})]})]});var eC=r(58166),eE=r.n(eC);let ew=({onClick:e})=>{let[t]=(0,_.B)(),{isLoggedIn:r,store:n}=(0,p.Z2)(),{isFlagEnabled:a}=(0,h.h)(),{storeOpeningInfos:i}=(0,ef.SA)(),o=a(A.N1),s=a(A.F3),c=(0,ev.TS)(n);if(!r)return(0,B.jsx)(eO,{Icon:(0,B.jsx)(P.I,{icon:c,size:"l"}),primaryLabel:t("header.storesDrawer.title"),dataTestId:"store-locator-link",onClick:e,isBrandedHeader:o,isNewHeaderNavigation:s});let{storeName:l=null,isStoreOpen:u=!1,openingHours:d=null}=i||{};return(0,B.jsx)(eO,{Icon:(0,B.jsxs)("span",{className:eE().iconContainer,children:[(0,B.jsx)(P.I,{icon:c,size:"l"}),(0,B.jsx)(ey.k,{status:u?"success":"error","data-testid":"status-icon",variant:"contrast",className:eE().status})]}),primaryLabel:l??void 0,secondaryLabel:d??void 0,dataTestId:"store-locator-link",onClick:e,isBrandedHeader:o,isNewHeaderNavigation:s})};var eP=r(24903);let eI=(e,t,r)=>{let n=e.includes(r),a=t.some(e=>r?.includes(e)),i=e.some(e=>r?.startsWith(e+"?"));return n||a||i},ex=e=>e&&Array.isArray(e)?e.filter(e=>!!e):[],eS=e=>{if(!e||0===e.length)return{discoverMoreCmsItems:[],customCmsItems:[]};let[t]=e;if(t?.type!=="CMCollection")return{discoverMoreCmsItems:ex(e),customCmsItems:[]};let[r,n]=e.slice(0,2),a=ex(r?.items),i=ex(n?.items);return{discoverMoreCmsItems:a,customCmsItems:i.length>0?[{title:(e=>e?.teaserTitle??e?.title??e?.heading??"")(n),items:i}]:[]}};var eT=r(23620),eN=r.n(eT);let eA=({isMobile:e=!1,prefix:t})=>{let{cart:r}=(0,y.B_)(),{user:n}=(0,p.Z2)(),{hasContributeCartPermission:a,hasNetPricePermission:o}=(0,p.Sk)(),{isFlagEnabled:s}=(0,h.h)(),{formatPrice:c}=(0,eP.f)(),l=s(G.F3),u=r?.items?.length||0,d=r?.name,f=r?.totalPriceIncludingSurcharges,m=c({price:f}),g=f&&(!n||o)&&(t?` ${t} ${m}`:` ${m}`);return(0,B.jsx)("div",{className:(0,i.A)({[eN().cart]:!0,[eN().disabled]:!a,[eN().enableBorder]:!l}),"data-testid":`header-cart${e?"-mobile":""}`,children:(0,B.jsx)(en,{chipQuantity:(e=>e>99?"+99":String(e))(u),route:R.b.checkout.app,href:"/",primaryText:d,secondaryText:g,dataTestId:"cart-button",disabled:!a,underlinePrimaryText:l})})};var ej=r(86713),ek=r(77104),eD=r(68728),eR=r(44705),eL=r(40857),eM=r(64761),eF=r(15788),e$=r(31437);let eB=function(e){return e.ACCOUNT="account",e.ALREADY_PURCHASED="alreadyPurchased",e.DEFAULT="",e.DELIVERY_ADDRESS="deliveryAddresses",e.INVOICE_CREDIT_LIST="invoiceCreditList",e.LISTS="lists",e.ORDERS="orders",e.PROJECTS="projects",e.QUOTES="quotes",e.SETTINGS="settings",e.TEAM="team",e.PRICE_AND_EXPORT="priceAndExport",e.TO_BE_DELIVERED="toBeDelivered",e.DELIVERY_NOTES="deliveryNotes",e.PACKAGING_RETURNS="packagingReturns",e.BLANKET_ORDERS="blanketOrders",e}({}),eU=function(e){return e.CHECKOUT="checkout",e}({});function eV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?eV(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eV(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eG=(e,t,r,n,a,i)=>eq(eq({id:e,title:t,description:r,href:n},a),{},{onClick:i}),ez=e=>{let[t]=(0,_.B)(),{hasCreditLimitPermission:r}=(0,p.Sk)(),{account:n,hasDPC:i,user:o}=(0,p.Z2)(),{isFlagEnabled:s}=(0,h.h)(),{linkApp:l}=(e=>{let{pathname:t}=(0,c.useRouter)(),r=(0,a.useMemo)(()=>!e||e&&window.location.pathname.includes(eB.ACCOUNT)?eB.DEFAULT:eB.ACCOUNT,[e]),n=(0,a.useCallback)(e=>!r&&("/"!==e&&t.includes(e)||"/"===t&&t===e),[r,t]);return{linkApp:r,isLinkSelected:n}})(!0),{computeCmsLink:u}=(0,m.H)(),{sendSubnavGtmTag:d}=(0,I.PB)(),{openBulkAddDrawer:f}=(0,eD.nZ)(),{price_and_export:y,djc_redirect_url:v}=(0,h.rD)(),{discoverMoreCmsItems:b,customCmsItems:O}=eS(e),C={as:j.w,app:l,variant:"unstyled"},E={as:j.w,app:eU.CHECKOUT,variant:"unstyled"},{isOrdersFullSearchDisplayed:w,isInvoiceDisplayed:P,isDeliveryNotesDisplayed:x,isQuotesDisplayed:S,isProjectsDisplayed:T,isPackagingReturnsDisplayed:N,isBlanketOrdersDisplayed:A,isReturnsRequestEnabled:k,isReturnsDashboardDisplayed:D,isOrderAwaitingApprovalDisplayed:L}=(()=>{let{user:e,isLoggedIn:t}=(0,p.Z2)(),{isFlagEnabled:r}=(0,h.h)(),{hasManageQuotesPermission:n}=(0,p.Sk)(),{data:a}=(0,g.zwC)({variables:{accountId:e?.accountId??""},skip:!t||!e?.accountId}),i=(a?.quoteCount?.all??0)>0,o=r(e$.xZ),s=r(e$.qK),c=r(e$.Nq),l=(n&&i||e?.isPunchoutUser&&i)??!1,u=(a?.projectCount?.activeProjects??0)>0,d=r(e$.fi)&&!e?.isPunchoutUser,f=(a?.blanketOrderCount?.all??0)>0,m=r(e$._4)&&!e?.isPunchoutUser;return{isOrdersFullSearchDisplayed:o,isInvoiceDisplayed:s,isDeliveryNotesDisplayed:c,isQuotesDisplayed:l,isProjectsDisplayed:u,isPackagingReturnsDisplayed:d,isBlanketOrdersDisplayed:f,isReturnsRequestEnabled:m,isReturnsDashboardDisplayed:r(e$.Z3)&&(a?.productReturnsCount?.count??0)>0,isOrderAwaitingApprovalDisplayed:e?.permissions?.includes(eF.a.VALIDATE_CART)??!1}})(),M=r&&n?.hasCreditLimit,F=s(G.ae),$=s(G.jS),B="undefined"!=typeof document?(0,eR.Ri)(eL.oH):null,U=i&&v.length>0,V=o?.isAdmin&&$,q=(0,a.useCallback)(e=>{e?.preventDefault(),d?.(t("subNav.quickAdd")),f()},[d,t,f]),z=[eG("account-users",t("header.settings.userList"),t("header.settings.userListDescription"),R.b.account.users,C,()=>d?.(t("header.settings.userList"))),V&&eG("account-subscribers",t("header.settings.subscriptions"),t("header.settings.subscriptionsDescription"),R.b.account.subscribers,C,()=>d?.(t("header.settings.subscriptions"))),M&&eG("account-creditinformation",t("header.settings.creditInformation"),t("header.settings.creditInformationDescription"),R.b.account.creditInformation,C,()=>d?.(t("header.settings.creditInformation"))),eG("account-deliveryaddresses",t("header.settings.deliveryAddresses"),t("header.settings.deliveryAddressesDescription"),R.b.account.deliveryAddresses,C,()=>d?.(t("header.settings.deliveryAddresses")))].filter(Boolean),H=[S&&eG("account-quotes",t("header.accountNavigation.quotes"),t("header.accountNavigation.quotesDescription"),R.b.account.quotes,C,()=>d?.(t("header.accountNavigation.quotes"))),eG(B?"account-orderscalendar":"account-orders",t("header.accountNavigation.orders"),t("header.accountNavigation.ordersDescription"),B?R.b.account.ordersCalendar:R.b.account.orders,C,()=>d?.(t("header.accountNavigation.orders"))),L&&eG("account-ordersawaitingapproval",t("header.accountNavigation.ordersAwaitingApproval"),t("header.accountNavigation.ordersAwaitingApprovalDescription"),R.b.checkout.awaitingApprovalCarts,E,()=>d?.(t("header.accountNavigation.ordersAwaitingApproval"))),A&&eG("account-blanketorders",t("header.accountNavigation.blanketOrders"),t("header.accountNavigation.blanketOrdersDescription"),R.b.account.blanketOrders,C,()=>d?.(t("header.accountNavigation.blanketOrders"))),w&&eG("account-tobedelivered",t("header.accountNavigation.toBeDelivered"),t("header.accountNavigation.toBeDeliveredDescription"),R.b.account.toBeDelivered,C,()=>d?.(t("header.accountNavigation.toBeDelivered"))),N&&eG("account-packagingreturns",t("header.accountNavigation.packagingReturns"),t("header.accountNavigation.packagingReturnsDescription"),R.b.account.packagingReturns,C,()=>d?.(t("header.accountNavigation.packagingReturns"))),k&&eG("account-productreturnsoverview",t("productReturns.title"),t("header.accountNavigation.productReturnsDescription"),D?R.b.account.productReturnsDashboard:R.b.account.productReturnsOverview,C,(
10)=>d?.(t("productReturns.title"))),P&&eG("account-invoicecreditnotes",t("header.accountNavigation.invoiceCreditNotes"),t("header.accountNavigation.invoiceCreditNotesDescription"),R.b.account.invoiceCreditNotes,C,()=>d?.(t("header.accountNavigation.invoiceCreditNotes"))),x&&eG("account-deliverynotes",t("header.accountNavigation.deliveryNotes"),t("header.accountNavigation.deliveryNotesDescription"),R.b.account.deliveryNotes,C,()=>d?.(t("header.accountNavigation.deliveryNotes"))),y&&eG("account-priceandexport",t("header.accountNavigation.priceAndExport"),t("header.accountNavigation.priceAndExportDescription"),y,eq(eq({},C),{},{target:"_blank"}),()=>d?.(t("header.accountNavigation.priceAndExport"))),T&&eG("account-projects",t("header.accountNavigation.project"),t("header.accountNavigation.projectsDescription"),R.b.account.projects,C,()=>d?.(t("header.accountNavigation.project")))].filter(Boolean),W=[eG("account-favoritelists",t("header.accountNavigation.listOfFavorites"),t("header.accountNavigation.listOfFavoritesDescription"),R.b.account.favoriteLists,C,()=>d?.(t("header.accountNavigation.listOfFavorites"))),w&&eG("account-alreadypurchased",t("header.accountNavigation.alreadyPurchased"),t("header.accountNavigation.alreadyPurchasedDescription"),R.b.account.alreadyPurchased,C,()=>d?.(t("header.accountNavigation.alreadyPurchased"))),F&&eG("account-transmittedcarts",t("header.accountNavigation.transmittedCarts"),t("header.accountNavigation.transmittedCartsDescription"),R.b.account.transmittedCarts,C,()=>d?.(t("header.accountNavigation.transmittedCarts")))].filter(Boolean),Q=[s(G.n5)&&eG("quick-add-to-cart",t("subNav.quickAdd"),t("subNav.quickAdd.description"),"",C,q),U&&eG("dpc-link",t("common.header.djc"),t("common.header.djc.description"),v,eq(eq({},C),{},{target:"_blank",icon:"external-link"}),()=>d?.(t("common.header.djc")))].filter(Boolean),Y=s(G.n5)||U;return{settingsItems:z,ordersItems:H,productsItems:W,discoverMoreItems:b?.map(e=>{let t=u(e?.teaserTargets),r=e.teaserTargets?.[0]?.target,n=r?.openInNewTab===!0,a=eq(eq({id:"subnav-discovermore-"+(e?.teaserTitle||"").toLowerCase().replace(/\s+/g,"-"),title:e?.teaserTitle||"",description:(0,eM.zp)(e?.teaserText,"p")||"",href:t?.app&&t?.asParam?t?.asParam:t?.href},C),{},{app:t?.app||R.b.content.app||l,onClick:()=>e?.teaserTitle&&d?.(e.teaserTitle)},t?.noLocale?{noLocale:!0}:{});return n?eq(eq({},a),{},{heading:e?.heading,target:"_blank",icon:"external-link"}):a})||[],toolsItems:Y?Q:[],customItems:O?.map(e=>({title:e.title,items:e.items.map(e=>{let t=u(e?.teaserTargets),r=e.teaserTargets?.[0]?.target,n=r?.openInNewTab===!0,a=eq(eq({id:"subnav-custom-"+(e?.teaserTitle||"").toLowerCase().replace(/\s+/g,"-"),title:e?.teaserTitle||"",description:(0,eM.zp)(e?.teaserText,"p")||"",href:t?.app&&t?.asParam?t?.asParam:t?.href},C),{},{app:t?.app||R.b.content.app||l,onClick:()=>e?.teaserTitle&&d?.(e.teaserTitle)},t?.noLocale?{noLocale:!0}:{});return n?eq(eq({},a),{},{heading:e?.heading,target:"_blank",icon:"external-link"}):a})}))||[]}};var eH=r(58076),eW=r.n(eH);let eQ=({Icon:e,primaryLabel:t,secondaryLabel:r,onClick:n,dataTestId:a,isActive:o=!1})=>(0,B.jsxs)("button",{className:(0,i.A)(eW().headerActionButton,{[eW().active]:o}),onClick:n,"data-testid":a,"aria-haspopup":"dialog","aria-expanded":o,"aria-label":`${t||""} ${r||""}`,children:[(0,B.jsx)("span",{className:eW().containerIcon,children:e}),(0,B.jsxs)("span",{className:eW().containerText,children:[t&&(0,B.jsx)(V.E,{as:"span",size:"body-1","data-testid":`${a}-primary`,children:t}),r&&(0,B.jsx)(V.E,{as:"span",size:"body-2",weight:"bold","data-testid":`${a}-secondary`,children:r})]})]});var eY=r(57520),eK=r.n(eY);let eJ=d()(()=>Promise.all([r.e(6647),r.e(4323)]).then(r.bind(r,94323)).then(e=>e.AccountNavigationContainer),{loadableGenerated:{webpack:()=>[94323]}}),eZ=d()(()=>Promise.all([r.e(5026),r.e(2727)]).then(r.bind(r,62727)).then(e=>e.AccountActionContainer),{loadableGenerated:{webpack:()=>[62727]}}),eX=()=>{let{isAccountNavigationDrawerOpen:e,openAccountNavigationDrawer:t}=(0,ek.hx)(),{user:r}=(0,p.Z2)(),{isFlagEnabled:n}=(0,h.h)(),{settingsItems:a=[]}=ez(),o=n(G.F3),s=r?.name||"",c=()=>{t()};if(o)return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:(0,i.A)(eK().userActionButton,eK().noHover
10Effect),"data-testid":"user-action-button-wrapper",children:(0,B.jsx)(eZ,{onClick:c,isActive:e,dataTestId:"user-details-button"})}),(0,B.jsx)(eJ,{isTransverse:!0,settingsItems:a})]});let l=(0,B.jsx)(ej.e,{size:"l",name:s,"data-cs-mask":!0});return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:eK().userActionButton,"data-testid":"user-action-button-wrapper",children:(0,B.jsx)(eQ,{Icon:l,onClick:c,dataTestId:"user-details-button","aria-haspopup":!0,isActive:e})}),(0,B.jsx)(eJ,{isTransverse:!0})]})};var e0=r(47001),e1=r.n(e0);let e2=({className:e,isScrolledDown:t})=>(0,B.jsxs)("section",{className:(0,i.A)(e,e1().actions,t&&e1()["actions--scrolledDown"],e1().newHeaderActions),children:[(0,B.jsx)("div",{className:e1().store,"data-testid":"header-store",children:(0,B.jsx)(eg,{OpenDrawerButton:ew})}),(0,B.jsx)("div",{className:(0,i.A)(e1().user,e1().userScrolledDown),"data-testid":"header-login",children:(0,B.jsx)(eX,{})}),(0,B.jsx)("div",{className:(0,i.A)(e1().cart,e1().mobileHeaderCart),children:(0,B.jsx)(eA,{isMobile:!0})})]});var e3=r(24749),e6=r.n(e3);function e4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let e8=e=>(0,B.jsx)(ew,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e4(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e4(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e)),e7=({className:e,isScrolledDown:t,isBrandedHeader:r})=>{let[n]=(0,_.B)(),{guestUser:o}=(0,p.Z2)(),{0:s,1:l}=(0,a.useState)(""),{locale:u}=(0,c.useRouter)(),d=u?.substring(0,u?.indexOf("-")),{reinsurance_banner_create_account_url:f,[`reinsurance_banner_create_account_url_${d}`]:m}=(0,h.rD)(),{isFlagEnabled:g}=(0,h.h)(),y=g(A.oI),v=g(A.KE),b=(0,D.T)(y,m,f);return(0,a.useEffect)(()=>
10{l((0,k.Q)((0,L.ly)(),"account"))},[]),(0,B.jsxs)("section",{className:(0,i.A)(e,e6().actions,{[e6()["actions--scrolledDown"]]:t}),children:[(0,B.jsx)(eg,{OpenDrawerButton:e8}),(0,B.jsxs)("div",{className:e6().actionsAlwaysVisible,children:[v&&(0,B.jsx)(j.w,{variant:r?"secondary-on-brand":"tertiary",app:"account",href:b,"data-testid":"signup-button",className:e6().signup,children:n("common.signup")}),(0,B.jsx)(j.w,{variant:r?"primary-on-brand":"primary",app:"content",href:s,"data-testid":"login-button",icon:"people",className:e6().login,hasWrapperLocale:!1,children:(0,B.jsx)("span",{className:e6().loginText,children:n("common.login")})}),o?.userId?(0,B.jsx)("div",{className:e6().mobileHeaderCart,children:(0,B.jsx)(eA,{isMobile:!0})}):null]})]})};var e5=r(18009),e9=r.n(e5);let te=function(e){return e.NEUTRAL="neutral",e.COLORFUL="colorful",e}({}),tt=function(e){return e.INFO="info",e.WARNING="warning",e.ERROR="error",e.VALIDATION="validation",e}({}),tr=({label:e,linkLabel:t,linkUrl:r,hierarchy:n,status:o,className:s,dataTestId:c,closable:l=!1,handleClick:u})=>{let d=(e=>e===tt.VALIDATION?"success":e)(o),{0:p,1:h}=(0,a.useState)(!0),[f]=(0,_.B)();return p?(0,B.jsxs)("div",{"data-testid":c,className:(0,i.A)(e9().container,e9()[n],e9()[o],s),children:[(0,B.jsxs)("div",{className:e9().iconWithText,children:[(0,B.jsx)(ey.k,{variant:"strong",status:d,className:e9().statusIcon}),(0,B.jsxs)(V.E,{children:[e,t&&(r||u)&&(0,B.jsx)(j.w,{className:e9().link,onClick:u,href:r,variant:"underlined","data-testid":"banner-link",children:t})]})]}),l&&(0,B.jsx)(C.$,{variant:"ghost",title:f("common.close.banner"),className:e9().closeButton,size:"s",onClick:()=>{u?.(),h(!1)},icon:"cross","data-testid":"banner-close"})]}):null},tn=()=>{let[e]=(0,_.B)(),{previousStore:t,activeStoreData:r,hasStoreChanged:n}=O(),{showStoreLocator:a}=(0,ef.SA)();return n&&(0,B.jsx)(tr,{hierarchy:te.COLORFUL,status:tt.WARNING,label:e("header.storeChanged.status",{previousStore:t,activeStoreData:r?.storeById?.name}),linkLabel:e("header.storeChanged.checkStore"),handleClick:a,dataTestId:"store-changed-banner"})};var ta=r(38561),ti=r.n(ta),to=r(49466),ts=r.n(to);let tc=d()(()=>r.e(188).then(r.bind(r,40188)).then(e=>e.ProjectSettingsDrawerContainer),{loadableGenerated:{webpack:()=>[40188]}}),tl=d()(()=>Promise.all([r.e(1310),r.e(1818)]).then(r.bind(r,81818)).then(e=>e.BulkAddDrawer),{loadableGenerated:{webpack:()=>[81818]}}),tu=({baseUrl:e,drawerAnchorRef:t,children:r,headerBanner:n,logo:o,openDrawer:s,webSearchBox:l,componentAnchors:u,hideHeaderOnScroll:d=!1})=>{let[p]=(0,_.B)(),{locale:f,asPath:m}=(0,c.useRouter)(),g=f?.substring(0,f?.indexOf("-")),{reinsurance_banner_create_account_url:y,[`reinsurance_banner_create_account_url_${g}`]:v,opco_name:b,header_logo_size:M}=(0,h.rD)(),{0:F,1:$}=(0,a.useState)(""),{isScrolledDown:V}=(()=>{let{0:e,1:t}=(0,a.useState)(!1),{0:r,1:n}=(0,a.useState)(!1),{0:i,1:o}=(0,a.useState)(!0),s=(0,a.useRef)(0);return(0,a.useEffect)(()=>{let e=ts()(()=>{let e=window.scrollY,r=e>100;t(r),o(e<200),r?n(e>s.current):n(!1),s.current=e},200);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),{isScrolled:e,isScrolledDown:r,isScrollNearTop:i}})(),{isConnectedOnBehalf:q,isLoggedIn:G,guestUser:z,setNumOfBannersDisplayed:H}=O(),{0:W,1:Q}=(0,a.useState)(!1),{settingsItems:Y=[]}=ez(),{sendSubnavGtmTag:K}=(0,I.PB)(),{openProjectSettingsDrawer:J}=(0,N.Ck)(),{openMegaMenu:Z}=(0,x.S)(),{isFlagEnabled:X}=(0,h.h)(),ee=X(A.N1),et=X(A.oI),er=X(A.KE),en=X(A.F3),ea=(0,D.T)(et,v,y),eo=[R.b.content.base],es=[`${R.b.content.base}#`,R.b.catalog.base,R.b.catalog.product,R.b.catalog.search,R.b.catalog.category],el=z?.userId&&eI(eo,es,m),eu=!!u?.length,ed=(0,a.useCallback)(()=>{J(),K(S.Cm.SETTINGS)},[J,K]);(0,a.useEffect)(()=>{$((0,k.Q)((0,L.ly)(),"account")),el&&H(e=>e+1)},[el,H]);let ep=[{href:F,children:p("common.login")}];return er&&ep.push({href:ea,children:p("common.signup")}),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{ref:t,className:(0,i.A)(ti().headerContainer,d&&V&&!W&&ti()["headerContainer--hidden"],V&&!W&&ti()["headerContainer--scrolledDown"],V&&!W&&el&&ti()["headerContainer--guest"],q&&ti()["headerContainer--onbehalf"]),"data-testid":"new-header-container",id:"headerContainer",children:[(0,B.jsx)(U,{}),(0,B.jsx)(n,{}),(0,B.jsxs)("header",{className:(0,i.A)(ti().appHeader,ee&&ti().brandedHeader),"data-testid":"new-header",children:[(0,B.jsx)("section",{className:(0,i.A)(ti().menuMobile,V&&!W&&ti()["menuMobile--scrolledDown"]),children:(0,B.jsx)(C.$,{icon:"menu",variant:ee?"ghost-on-brand":"ghost",rounded:!0,title:p("subNav.allProducts"),onClick:()=>{s()},"data-testid":"all-products-button-mobile"})}),(0,B.jsx)("section",{className:(0,i.A)(ti().action,ti().logo),"data-testid":"sparkLogo",children:(0,B.jsx)(j.w,{"data-testid":"logo-link",href:e,app:"content",variant:"unstyled",className:(0,i.A)(ti().logoLink,en&&M&&ti()[`logoLink--${M}`]),"aria-label":p("header.logoAlt",b),children:(0,B.jsx)(o,{})})}),(0,B.jsx)("section",{className:ti().menuDesktop,children:(0,B.jsx)(C.$,{variant:ee?"secondary-on-brand":"tertiary",size:"l",onClick:()=>{K(p("subNav.allProducts")),Z()},"data-testid":"all-products-button-desktop",id:"mega-menu-button",children:p("subNav.allProducts")})}),(0,B.jsx)("section",{className:(0,i.A)(ti().search,z?.userId&&ti().searchGuest,G&&ti().searchLoggedIn),"data-testid":"header-search-container",children:(0,B.jsx)(l,{onBackdrop:Q})}),G?(0,B.jsx)(e2,{className:ti().actions,isScrolledDown:V}):(0,B.jsx)(e7,{className:ti().actions,isScrolledDown:V,isBrandedHeader:ee}),(0,B.jsxs)("section",{role:"navigation","data-testid":"header-navigation","aria-label":p("header.ariaLabel.navigation"),className:(0,i.A)(ti().subnavContainer,G&&ti().loggedInSubnavContainer,en&&ti().subnavContainerNavigationEnabled),children:[G&&(0,B.jsxs)("div",{className:ti().accounts,"data-testid":"accounts",children:[(0,B.jsx)(ei,{}),Y?.length>0&&!en&&(0,B.jsx)(E.m,{placement:"top",label:p("subNav.accountSettings"),children:(0,B.jsx)(C.$,{icon:"gear",title:"Open settings drawer",onClick:ed,variant:ee?"ghost-on-brand":"ghost","data-testid":"project-settings-drawer-button"})})]}),r]})]}),el&&(0,B.jsx)(w.l,{description:er?p("catalog.guestCheckout.personalPricing.loginSinup"):p("c
10atalog.guestCheckout.personalPricing.login"),visual:(0,B.jsx)(P.I,{icon:"info-solid-strong-graphic"}),variant:"brand-light",links:ep,"data-testid":"guest-banner",className:ti().guestBanner}),eu&&(0,B.jsx)(T.n,{items:u})]}),(0,B.jsx)(tn,{}),!en&&(0,B.jsx)(tc,{settingsItems:Y,loggedInMobileMenuTopContainer:(0,B.jsx)(ec,{})}),(0,B.jsx)(tl,{})]})};var td=r(58539),tp=r(52300),th=r.n(tp);let tf=({isLoggedIn:e,label:t})=>{let{0:r,1:n}=(0,a.useState)(!0);return(0,a.useEffect)(()=>{let e="1"===(0,eR.Ri)("visited");n(e),e||(0,eR.TV)("visited","1",{sameSite:"lax"})},[]),r||e||!t?null:(0,B.jsx)("div",{"data-testid":"header-tag-line",className:th().tagLine,children:t})};var tm=r(52238);let tg=/((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(14[_.]5|14[_.]([6-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|(Opera Mini(?:\/att)?\/?(\d+)?(?:\.\d+)?(?:\.\d+)?)|(Opera\/.+Opera Mobi.+Version\/(64\.0|64\.([1-9]|\d{2,})|(6[5-9]|[7-9]\d|\d{3,})\.\d+))|(Opera\/(64\.0|64\.([1-9]|\d{2,})|(6[5-9]|[7-9]\d|\d{3,})\.\d+).+Opera Mobi)|(Opera Mobi.+Opera(?:\/|\s+)(64\.0|64\.([1-9]|\d{2,})|(6[5-9]|[7-9]\d|\d{3,})\.\d+))|((?:Chrome).*OPR\/(79\.0|79\.([1-9]|\d{2,})|([8-9]\d|\d{3,})\.\d+)\.\d+)|(SamsungBrowser\/(14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+))|(Edge\/(93(?:\.0)?|93(?:\.([1-9]|\d{2,}))?|(9[4-9]|\d{3,})(?:\.\d+)?))|((Chromium|Chrome)\/(93\.0|93\.([1-9]|\d{2,})|(9[4-9]|\d{3,})\.\d+)(?:\.\d+)?)|(Version\/(14\.1|14\.([2-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Trident\/7\.0)|(Firefox\/(92\.0|92\.([1-9]|\d{2,})|(9[3-9]|\d{3,})\.\d+)\.\d+)|(Firefox\/(92\.0|92\.([1-9]|\d{2,})|(9[3-9]|\d{3,})\.\d+)(pre|[ab]\d+[a-z]*)?)|(([MS]?IE) (11\.0|11\.([1-9]|\d{2,})|(1[2-9]|[2-9]\d|\d{3,})\.\d+))/;var ty=r(52304),tv=r(20);let tb=function(e){return e.ANDROID="android",e.IOS="iOS",e.DESKTOP="desktop",e}({});function t_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let tO={promptInstall:()=>null},tC=e=>["cebeo","bel-cebeo","fra-connect","hun-sonhun","ita-sonita","ita-sacchi","ita-hduea","fin-sonfin","aut-routeco","gbr-routeco","nld-routeco","bel-routeco","che-routeco","usa-sprfld","nld-tecunie","ita-elettro","usa-crawfrd","esp-sonesp","aut-sonaut","default"].includes(e)?`/sw/${e}/icon.png`:"/sw/default/icon.png",tE=e=>{let{onClose:t}=e,[r]=(0,_.B)(),{opco_brand:i,android_app_url:o,iOS_app_url:s}=(0,h.rD)(),{0:c,1:l}=(0,a.useState)(null),u=tC(i),d=((e,t,r)=>r||!(e&&t)||""===e&&""===t)(o,s,tv.U.up("md")),{promptInstall:p}=(()=>{let{0:e,1:t}=(0,a.useState)(tO),{sendAppDownloadGtmTag:r}=(0,I.PB)();return(0,a.useEffect)(()=>{let a=a=>{let i=async()=>{await a.prompt(),"accepted"===(await a.userChoice).outcome&&(t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?t_(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e)),r({branch_name:""}),sessionStorage.setItem("dismissedDownloadBanner","true"))};t({promptInstall:i})};return window.addEventListener("beforeinstallprompt",a),()=>{window.removeEventListener("beforeinstallprompt",a)}},[e]),e})();return((0,a.useEffect)(()=>
10{l((window?.navigator.userAgent).includes("Android")?tb.ANDROID:tb.IOS)},[]),d)?(0,B.jsx)(w.l,{description:r("header.installPWABanner.message"),visual:(0,B.jsx)(ty._,{src:u}),links:[{children:r("common.installPWA"),onClick:p,role:"button",tabIndex:0}],onClose:t,closeLabel:r("common.close.banner"),"data-testid":"install-banner"}):(0,B.jsx)(w.l,{description:r("header.installAppBanner.message"),visual:(0,B.jsx)(ty._,{src:u}),links:[{children:r("common.installApp"),href:c===tb.ANDROID?o:s}],onClose:t,closeLabel:r("common.close.banner"),"data-testid":"install-banner"})},tw="hideAppBanner",tP={defaultRoute:"/",simpleRoutes:{checkout:"/cart",lists:"/favorites",orders:"/account/orders",quotes:"/account/quotes",alreadyPurchased:"/account/already-purchased-products",deliveryAddresses:"/account/address-book"},detailRoutes:{category:e=>`/products/category/${e}`,products:e=>`/products/detail/${e.split("-")[e.split("-").length-1]}`,lists:e=>`/favorites/detail/${e}`,orders:e=>`/account/orders/detail/${e}`,quote:e=>`/account/quotes/detail/${e}`,search:e=>`/search-result?query=${e}`}},tI={homepage:{"/":"HOMEPAGE"},account:{"/quotes":"QUOTES","/orders":"ORDERS","/favorite-lists":"FAVORITE_LIST","/already-purchased":"ALREADY_PURCHASED","/delivery-addresses":"ADDRESSES"},checkout:{"/":"CART"},catalog:{"/products":"PDP","/category":"PLP","/search":"SRP"}};var tx=r(58948),tS=r(58590),tT=r(74594),tN=r(84332),tA=r.n(tN);let tj=e=>e.test(navigator.userAgent),tk=(e,t)=>e.replace(/-([a-z])/g,e=>e[1].toUpperCase())===`/${t}`,tD=(e,t)=>e.startsWith(`/${t}`),tR=({isIOS:e,isActive:t})=>{let[r]=(0,_.B)(),{0:n,1:i}=(0,a.useState)(!1),{opco_brand:o,opco_name:s,iOS_app_url:l,android_app_url:u,mobile_deeplink_scheme:d}=(0,h.rD)(),p=tC(o),{asPath:f}=(0,c.useRouter)(),m=f?.split("?")[0]||"",g=(0,tT.p)(),{sendOpenInAppGtmTag:y}=(0,tS.UU)();return((0,a.useEffect)(()=>{t&&i(!0)},[]),n)?(0,B.jsxs)("div",{className:tA().container,"data-testid":"open-in-app-banner-container",children:[(0,B.jsxs)("div",{className:tA().content,children:[(0,B.jsx)(C.$,{className:tA().closeButton,icon:"cross",title:r("header.openInAppBanner.close"),variant:"standalone-regular-inverse",size:"s",onClick:()=>void((0,tx.setCookie)(tw,"true"),i(!1)),"data-testid":"open-in-app-banner-close"}),(0,B.jsxs)("div",{className:tA().iconTextContainer,children:[(0,B.jsx)(ty._,{className:tA().brandIcon,src:p,width:32,height:32}),(0,B.jsxs)(V.E,{size:"body-1",weight:"bold",color:"inverse",children:[s," ",r("header.openInAppBanner.message")]})]})]}),(0,B.jsx)(C.$,{onClick:()=>((e,t,r,n,a,i,o)=>{window.location.href=`${a}${n}?utm_source=open-in-app&utm_medium=referral&utm_campaign=app-banner`;let s=S.Cm[((e,t)=>
10{if("checkout"===e&&t.includes("/quote/"))return"SPECIFIC_QUOTE";if("account"===e&&t.includes("/orders/"))return"SPECIFIC_ORDER";let r=tI[e];if(r){for(let[e,n]of Object.entries(r))if(t===e||t.includes(e))return n}})(i,n)],c=setTimeout(()=>{o(S.cP.DOWNLOAD_APP,{page:{page_type_1:i,page_type_2:s}}),window.location.href=e?t:r},3e3);return document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(o(S.cP.OPEN_APP,{page:{page_type_1:i,page_type_2:s}}),clearTimeout(c))}),()=>document.removeEventListener("visibilitychange",()=>clearTimeout(c))})(e,l,u,((e,t)=>{if("/"===e&&t.startsWith("/checkout"))return tP.simpleRoutes.checkout;for(let t of Object.keys(tP.simpleRoutes))if(tk(e,t))return tP.simpleRoutes[t];for(let t of Object.keys(tP.detailRoutes))if(tD(e,t))return tP.detailRoutes[t](e.split(`/${t}/`)[1]);return tP.defaultRoute})(m,window.location.pathname),d,g,y),variant:"primary-inverse",size:"s","data-testid":"open-in-app-button",children:r("common.openInApp")})]}):null},tL=["asParam","forceRefresh"];function tM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tF(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tM(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var t$=function(e){return e.QUOTE="/quote",e.ORDER="/order",e}(t$||{}),tB=function(e){return e.DEFAULT="brand-neutral",e.BOLD="brand-bold",e.LIGHT="brand-light",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.SUCCESS="success",e}(tB||{});let tU={"banner-brand-default":tB.DEFAULT,"banner-brand-bold":tB.BOLD,"banner-brand-light":tB.LIGHT,"banner-error":tB.ERROR,"banner-warning":tB.WARNING,"banner-info":tB.INFO,"banner-success":tB.SUCCESS},tV=({tagLineLabel:e,isAuthenticated:t})=>{let[r]=(0,_.B)(),{asPath:n}=(0,c.useRouter)(),{isFlagEnabled:i}=(0,h.h)(),{isMobileApp:o}=(0,td.N)(),{isLoggedIn:s}=(0,p.Z2)(),{mobile_deeplink_scheme:l}=(0,h.rD)(),{setNumOfBannersDisplayed:u}=O(),{0:d,1:g}=(0,a.useState)(!1),{0:y,1:v}=(0,a.useState)(!1),{0:b,1:C}=(0,a.useState)(!1),E=(0,f.mH)(),P=E?.messageBanner?.[0]?.content?.[0],I=P?.viewtype?tU[P.viewtype]:tB.DEFAULT,x=(e=>{let{computeCmsLink:t}=(0,m.H)(),r=t(e?.teaserTargets),{app:n="",asParam:a="",href:i="",forceRefresh:o=!1,queryString:s="",noLocale:c=!1,text:l=""}=r,u=(0,tm.$)(n,a||i,o,s,c);if(!e)return null;let{asParam:d,forceRefresh:p}=r,h=(0,z.A)(r,tL);return{description:e.teaserTitle,links:[tF(tF({},h),{},{as:u?"a":"button",href:u,children:l})]}})(P),S=tj(/iPhone|iPad|iPod/),T=tj(/Android/),N=!(0,eR.Ri)(tw),j=[R.b.content.base,R.b.checkout.base],k=[R.b.account.quotes,t$.QUOTE,R.b.account.orders,t$.ORDER,R.b.account.favoriteLists,R.b.account.alreadyPurchased,R.b.account.deliveryAddresses,R.b.catalog.product,R.b.catalog.search,R.b.catalog.category];(0,a.useEffect)(()=>{g((e=>!!(window.matchMedia("(display-mode: standalone)").matches||!e.match(/Chrome/i)||!(()=>!(e.match(/Android/i)||e.match(/iPhone|iPad|iPod/i)||e.match(/Opera Mini/i)||e.match(/IEMobile/i)))))(window?.navigator?.userAgent))},[]),(0,a.useEffect)(()=>{if(JSON.parse(sessionStorage.getItem("dismissedOutdatedBrowserMessage")))C(!1);else{var e;C((e=window?.navigator?.userAgent,!tg.test(e)))}},[]);(0,a.useEffect)(()=>{try{v(!JSON.parse(localStorage.getItem("dismissedDownloadBanner")))}catch{v(!1)}},[]);let D=e||b||x,L=i(A.EX)&&y&&!o&&!d,M=i(A.Hb)&&eI(j,k,n)&&N&&s&&!o&&(S||T)&&!!l;return(0,a.useEffect)(()=>{(M||x||L)&&u(e=>e+1)},[]),M?(0,B.jsx)(tR,{isIOS:S,isActive:N}):D?x?b?(0,B.jsx)(w.l,{description:r("header.outdatedBrowser.message"),variant:"error",links:[{children:r("common.learnMore"),href:R.b.content.outdatedBrowser}],visual:!0,onClose:()=>{C(!b),sessionStorage.setItem("dismissedOutdatedBrowserMessage","true")},closeLabel:r("common.close.banner"),"data-testid":"outdated-browser-message"}):(0,B.jsx)(w.l,tF(tF({},x),{},{variant:I})):(0,B.jsx)(tf,{label:e,isLoggedIn:!!t}):L?(0,B.jsx)(tE,{onClose:()=>
10{v(!y),localStorage.setItem("dismissedDownloadBanner","true")}}):null};var tq=r(34751),tG=r(15128),tz=r(79526),tH=r(29299),tW=r.n(tH);let tQ=({setIsProjectDrawerOpen:e,ordersItems:t,productsItems:r,discoverMoreItems:n,customItems:a,customItemsTitle:i,closeDrawer:o})=>{let{isLoggedIn:s,hasDPC:c}=(0,p.Z2)(),{sendSubnavGtmTag:l}=(0,I.PB)(),{isFlagEnabled:u}=(0,h.h)(),[d]=(0,_.B)(),{openMegaMenu:f}=(0,x.S)(),{djc_redirect_url:m}=(0,h.rD)(),g=u(A.F3),y=c&&m.length>0;return(0,B.jsxs)(B.Fragment,{children:[s&&(0,B.jsx)(ec,{setIsDrawerOpen:()=>e(!0)}),(0,B.jsxs)("div",{className:tW().mobileMenuListWrapper,children:[!g&&(0,B.jsx)(tz.c,{listItems:[{id:"content-app",onClick:()=>l(d("subNav.home")),href:"/",app:R.b.content.app,title:d("subNav.home")}],closeDrawer:o}),(0,B.jsx)(tz.c,{listItems:[{id:"all-products",onClick:()=>{l(d("subNav.allProducts")),o(),f()},title:d("subNav.allProducts")}],closeDrawer:o}),s&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(tz.c,{listTitle:d("subNav.orders"),listItems:t,closeDrawer:o}),(0,B.jsx)(tz.c,{listTitle:d("subNav.myProducts"),listItems:r,closeDrawer:o})]}),(0,B.jsx)(tz.c,{listTitle:d("subNav.discoverMore"),listItems:n,closeDrawer:o}),a&&g&&(0,B.jsx)(tz.c,{listTitle:i,listItems:a,closeDrawer:o}),y&&(0,B.jsx)(tz.c,{listItems:[{id:"content-app-djc",onClick:()=>l(d("common.header.djc")),href:m,app:R.b.content.app,title:d("common.header.djc"),icon:"external-link"}],closeDrawer:o})]})]})};var tY=r(35880);let tK=e=>{let t=document.querySelector(`[aria-label="${e}"]`);t?.focus()};var tJ=r(59100),tZ=r(44908),tX=r(84477),t0=r(30557),t1=r(91933),t2=r(32445),t3=r.n(t2);let t6=({category:e,isFirst:t,onItemClick:r})=>{let{isFlagEnabled:n}=(0,h.h)(),a=n(A.Sx);return(0,B.jsxs)("div",{className:(0,i.A)(t3().root,{[t3().first]:t}),"data-testid":"navigation-mega-panel-item",children:[(0,B.jsx)(j.w,{className:t3().category,"data-testid":`megamenu-link-${e?.id}`,app:"catalog",href:(0,t1.PO)(e?.title,e?.id),onClick:()=>r(e?.id),forceRefresh:!0,variant:"standalone-bold",children:(0,B.jsx)(V.E,{size:"body-1",className:t3().categoryTitle,as:"span",color:"subtle",children:e?.title})}),e?.subCategories?.length>0&&(0,B.jsx)("div",{className:t3().items,children:e?.subCategories?.map(e=>(0,B.jsx)(j.w,{className:t3().itemTitle,"data-testid":`megamenu-link-${e?.id}`,app:"catalog",href:(0,t1.PO)(e.title,e.id,a),onClick:()=>r(e.id),forceRefresh:!0,variant:"standalone-regular",children:(0,B.jsx)(V.E,{as:"span",children:e.title})},e?.id))})]},e?.id)};var t4=r(16121),t8=r.n(t4);let t7=({title:e,items:t,backButtonText:r,depth:n=0,onItemClick:i,onBackButtonClick:o,navigationDrawerId:s=""})=>{let[c]=(0,_.B)(),l=t?.filter(e=>e.subCategories.length>0),{0:u,1:d}=(0,a.useState)(l?.[0]?.id),{0:p,1:f}=(0,a.useState)(null),m=(0,a.useMemo)(()=>n>=4,[n]),{isFlagEnabled:g}=(0,h.h)(),y=g(A.Sx);return(0,a.useEffect)(()=>{f(document.getElementById("megaPanelContent")),tK(c("common.close"))},[c]),(0,B.jsxs)("div",{className:t8().root,"data-testid":"navigation-mega-panel",children:[(0,B.jsxs)("div",{className:t8().panelHeading,children:[(0,B.jsx)("div",{className:t8().backButtonDesktop,children:(0,B.jsx)(C.$,{icon:"arrow-left",size:"s",variant:"ghost",title:r,onClick:o,"data-testid":"back-button-desktop"})}),(0,B.jsx)(j.w,{size:"l",variant:"standalone-bold",icon:"arrow-left",onClick:()=>{o()},className:t8().backButtonMobile,"data-testid":"back-button-mobile",children:r}),(0,B.jsx)(tJ.D,{as:"h3",size:"body-6",weight:"light",className:t8().level0,tabIndex:0,children:e}),(0,B.jsx)(t0.S,{"data-testid":"navigation-mega-panel-anchors",size:"minor",children:t?.map(e=>{let t=u===e.id;return(0,B.jsx)("li",{id:`${e.id}-anchor`,className:t8().level1Chips,children:n>2?(0,B.jsx)(C.$,{size:"s",variant:t?"primary":"secondary",onClick:()=>(e=>{d(e),document.getElementById(e)?.scrollIntoView(!0),document.getElementById(s)&&(document.getElementById(s).scrollTop=0)})(e.id),children:e.title}):(0,B.jsx)(j.w,{"data-testid":`megamenu-link-${e?.id}`,app:"catalog",href:(0,t1.PO)(e?.title,e?.id,y),onClick:()=>i(e?.id),forceRefresh:!0,variant:"secondary",children:e?.title})},e.id)})})]}),(0,B.jsx)("div",{id:"megaPanelContent",className:t8().panelContent,children:l?.map((e,t)=>(0,B.jsx)(tX.pL,{as:"div",root:p,rootMargin:"0px 0px -99% 0px",onChange:t=>((e,t)=>{t&&(d(e),document.getElementById(`${e}-anchor`).scrollIntoView({inline:"center"}),document.getElementById(s)&&(document.getElementById(s).scrollTop=0))})(e.id,t),id:e.id,className:t8().level1,children:m?e?.subCategories?.map((r,n)=>(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(t6,{category:r,onItemClick:i,isFirst:!t&&!n}),(t!==l.length-1||n!==e?.subCategories?.length-1)&&(0,B.jsx)(tZ.c,{})]},r.id)):(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(t6,{category:e,onItemClick:i,isFirst:0===t}),t!==l.length-1&&(0,B.jsx)(tZ.c,{})]},e.id)},e.id))})]})};var t5=r(82320),t9=r(95277),re=r.n(t9);let rt=["onClick"];function rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?rr(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ra=(e,t)=>t?e?.title:e?.teaserTitle,ri=({onClick:e,title:t,isCategory:r,link:n,className:a,isRedirectLink:i})=>{let o=ra(t,r);return n?.href||i?(0,B.jsx)(j.w,rn(rn({app:i&&"catalog",className:a,variant:n?.target==="_blank"?"underlined":"standalone-regular",href:i||n.href,onClick:e},n),{},{children:o})):(0,B.jsx)(C.$,{onClick:e,variant:"standalone-regular",className:a,children:o})},ro=(0,a.memo)(({items:e=[],onItemClick:t,closeMegaMenu:r})=>{let{computeCmsLink:n}=(0,m.H)(),[i]=(0,_.B)(),{isFlagEnabled:o}=(0,h.h)(),s=o(A.Sx),c=e?.map((e,a)=>e?.items?.length>0?{title:ra(e,e?.isCategory),content:(0,B.jsx)("ul",{className:re().list,children:e?.items?.map((i,o)=>{let{detailsLink:c,isRedirectLink:l,onDetailsClick:u}=((e,a)=>{let i,o=e?.isCategory,c=o?void 0:n(a?.teaserTargets);return o&&a?.maxDepth<=1&&(i=(0,t1.PO)(a?.title,a?.id,s)),{detailsLink:c,isRedirectLink:o?i:void 0,onDetailsClick:n=>{e?.isCategory&&(a?.maxDepth>1?(n.preventDefault(),t(a)):r()),c?.onClick&&(c.onClick(),r()),e?.isCategory||r()}}})(e,i);return(0,B.jsx)("li",{className:re().listItemRoot,"data-testid":`panel${a}${o}`,children:(0,B.jsx)(ri,{className:re().listItemLink,onClick:u,title:i,isCategory:e?.isCategory,isRedirectLink:l,link:c})},`subitem-${o}`)})},`root-panel-item-${e.title}`),defaultOpen:0===a}:null).filter(Boolean);return(0,a.useEffect)(()=>{tK(i("common.close"))},[i]),(0,B.jsx)("div",{className:re().root,"data-testid":"navigation-root-panel",children:(0,B.jsxs)("div",{className:re().content,children:[(0,B.jsx)(t5._,{titleLevel:"h3",size:"m","data-testid":"root-panel-accordion",items:c,className:re().accordionContainer}),e?.map((e,t)=>{let a=n(e.teaserTargets),{onClick:i}=a,o=(0,z.A)(a,rt);if(!e?.items)return(0,B.jsx)(ri,{className:re().linkButton,onClick:(o.href,()=>{i?.(),r()}),title:e,isCategory:e?.isCategory,link:o},`panel${t}`);return null})]})})});var rs=r(52291),rc=r.n(rs);function rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ru(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let rd="navigationDrawer",rp=(0,a.memo)(e=>(0,B.jsxs)("div",{className:rc().navigationSkeleton,"data-testid":"navigation-skeleton",children:[(0,B.jsx)("div",{className:rc().skeletonWrapper,children:(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:40,width:200}))}),(0,B.jsxs)("div",{className:rc().skeletonWrapper,children:[(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:280})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:240})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:280})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:240})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:280})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:240})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:280})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:20,width:240}))]}),(0,B.jsxs)("div",{className:rc().skeletonWrapper,children:[(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:24,width:200})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:24,width:200})),(0,B.jsx)(tY.E,ru(ru({className:rc().skeleton},e),{},{height:24,width:200}))]})]})),rh=(0,a.memo)(({isLoading:e,rootItems:t})=>{let[r]=(0,_.B)(),{isMegaMenuOpen:n,closeMegaMenu:i}=(0,x.S)(),{0:o,1:s}=(0,a.useState)(!1),{0:c,1:l}=(0,a.useState)(null),{sendClickMegaMenuGtmTag:u}=(0,I.PB)(),d=(0,a.useCallback)(e=>{s(!0),u({megamenu_term:e?.id,megamenu_type:S.Us.CATEGORY}),l(e)},[u]),p=()=>{s(!1),i()},h=o?(0,B.jsx)(t7,{title:c?.title,items:c?.subCategories,depth:c?.maxDepth,backButtonText:t[0].title,onItemClick:e=>{u({megamenu_term:e,megamenu_type:S.Us.LINK}),p()},onBackButtonClick:()=>{s(!1)},navigationDrawerId:rd}):(0,B.jsx)(ro,{items:t,onItemClick:d,closeMegaMenu:i});return(0,B.jsx)(el._,{isOpen:n,placement:"left",noPadding:!0,onClose:p,"data-testid":"navigation-drawer",id:rd,closeLabel:r("common.close"),onTransitionEnd:()=>tK(r("common.close")),children:e?(0,B.jsx)(rp,{}):(0,B.jsx)("nav",{"data-testid":"navigation","aria-label":c?.title,className:rc().navigation,children:h})})});function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?rf(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let rg=({isOpen:e,closeDrawer:t,items:r})=>{let[n]=(0,_.B)(),{isMegaMenuOpen:i,closeMegaMenu:o}=(0,x.S)(),s=(0,f.mH)(),[c,{data:l,loading:u,error:d}]=(0,g.Co9)(),{ordersItems:p,discoverMoreItems:h,productsItems:m,settingsItems:y,customItems:v}=ez(r),{0:b,1:O}=(0,a.useState)(!1),C=v?.length?v[0]?.title:"",E=v?.length?v[0]?.items:[];(0,a.useEffect)(()=>{i&&!l&&c()},[l,c,i]);let w=(0,a.useMemo)(()=>{let e=s?.megaMenu?.[0]?.content[0]?.items??[],t=l?.navigationCategories??[];return[{title:n("navigation.title"),items:t?.slice(0,26),isCategory:!0,id:"L0CAT",isExpanded:!0},...t.length?e.slice(0,14):e.slice(0,15)]},[s?.megaMenu,l?.navigationCategories,n]),P=(u||!l)&&!d;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(el._,rm(rm({"data-testid":"drawer-panel",isOpen:e,onClose:()=>{t(),O(!1),o()}},(b||i)&&{onReturn:()=>{b&&O(!1),i&&o()},returnLabel:n("common.back")}),{},{closeLabel:n("common.close"),placement:"left",children:[b&&(0,B.jsx)(tG.o,{settingsItems:y,loggedInMobileMenuTopContainer:(0,B.jsx)(ec,{})}),!i&&!b&&(0,B.jsx)(tQ,{setIsProjectDrawerOpen:O,ordersItems:p,productsItems:m,discoverMoreItems:h,customItems:E,customItemsTitle:C,closeDrawer:t})]})),i&&(0,B.jsx)(rh,{isLoading:P,rootItems:w})]})};var ry=r(69120),rv=r(96007),rb=r(81447),r_=r(38833),rO=r(97546),rC=r(51713),rE=r(72395),rw=r(52322),rP=r(33003),rI=r(42959),rx=r(11879),rS=r(22951),rT=r(78359),rN=r(96734),rA=r.n(rN);let rj=(0,a.memo)(e=>{let{searchQuery:t,querySuggestions:r,categorySuggestions:n,searchSuggestions:o,closePopUp:s,rememberSearch:c,onSearchItemDisplay:l,searchUrl:u=R.b.catalog.search,isDataLoading:d,className:p,isNewSearchSuggestionEnabled:h,filteredBrands:f}=e,[m]=(0,_.B)(),{sendSuggestedSearchGtmTag:g,sendViewItemListGtmTag:y}=(0,I.PB)();(0,a.useEffect)(()=>{o?.length&&y({docs:o,listName:e$.IQ.SEARCHBOX_SUGGESTIONS})},[o,y]);let v=(0,a.useCallback)(e=>{c?.(e),g({searchTerm:t,suggestedQuery:e}),s()},[s,c,t,g]);return(0,B.jsxs)("div",{className:(0,i.A)(rA().searchResultContainer,p),"data-testid":"searchResult","data-cs-capture":!0,children:[(0,B.jsx)("div",{className:(0,i.A)(rA().parentTitle,rA().leftContainer),children:(0,B.jsx)(rx.x,{classNames:{title:rA().title,link:rA().link,parentTitle:rA().parentTitle,itemNormal:rA().fontWeightNormal},searchQuery:t,querySuggestions:r,categorySuggestions:n,filteredBrands:f,onSearchItemDisplay:l,onQuerySuggestionClick:v,onSuggestionClick:s,searchUrl:u,isNewSearchSuggestionEnabled:h,showQuerySkeleton:!!d,showSuggestionsTitle:!0})}),(0,B.jsx)("div",{className:"srOnly","aria-live":"assertive",role:"alert",id:"sr-suggestions-alert",children:!d&&(0,B.jsx)(B.Fragment,{children:m("catalog.searchBox.srSuggestions",{querySuggestions:r.length,searchSuggestions:o?.length})})}),(0,B.jsxs)("div",{className:(0,i.A)(rA().parentTitle,rA().rightContainer),children:[!!o?.length&&(0,B.jsx)(V.E,{className:rA().title,size:"body-2",weight:"light",color:"subtle",children:m("catalog.searchBox.suggestedProducts")}),d?(0,B.jsxs)("div",{"data-testid":"search-suggestions-skeleton",children:[(0,B.jsx)(tY.E,{shape:"line",height:16}),(0,B.jsx)(tY.E,{shape:"line",height:16}),(0,B.jsx)(tY.E,{shape:"line",height:16})]}):o?.length?(0,B.jsx)(rT.P,{productsSuggested:o,currentView:rS.WF.SEARCH_BOX_SUGGESTION}):null]})]})});var rk=r(7788),rD=r.n(rk);let rR=a.lazy(()=>Promise.all([r.e(7068),r.e(8932)]).then(r.bind(r,18932)).then(e=>({default:e.SearchBoxRecommendationProducts}))),rL=({clearAll:e,closePopUp:t,items:r,onSearchItemDisplay:n,searchQuery:i,isBackDropOpen:o})=>{let[s]=(0,_.B)(),{sendSuggestedSearchGtmTag:c}=(0,I.PB)(),{isLoggedIn:l}=(0,p.Z2)(),{isFlagEnabled:u}=(0,h.h)(),d=u(A.Sx),f=(0,a.useCallback)(e=>{c({searchTerm:i,suggestedQuery:e}),t()},[t,i,c]);return(0,B.jsxs)("div",{className:rD().searchBoxHistoryContainer,"data-testid":"search-box-history-container",children:[(0,B.jsxs)("div",{className:rD().searchBoxHistory,"data-testid":"search-history-items",children:[(0,B.jsxs)("div",{className:rD().titleContainer,children:[(0,B.jsx)(V.E,{className:rD().title,children:s("catalog.search.recentSearches")}),(0,B.jsx)(C.$,{id:"remove-history-items",className:rD().clearAllTextStyle,"data-testid":"remove-history-items",size:"s",onClick:t=>{t.preventDefault(),e()},variant:"underlined",children:s("catalog.search.clearAll")})]}),r.map((e,t)=>{let r=(0,rb.Tw)(e);return(0,B.jsx)(j.w,{className:rD().link,href:(0,rb.OI)(R.b.catalog.search,r,d),onClick:()=>f(r),ref:e=>n(e,t),app:"catalog",variant:"standalone-regular",size:"l",forceRefresh:!0,children:r},e)})]}),l&&(0,B.jsx)(a.Suspense,{fallback:(0,B.jsx)(tY.E,{}
10),children:(0,B.jsx)(rR,{searchQuery:i,isBackDropOpen:o,closePopUp:t})})]})};var rM=r(4300),rF=r.n(rM);function r$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?r$(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r$(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var rU=function(e){return e.RESULT="RESULT",e.HISTORY="HISTORY",e}(rU||{});let rV=({onBackdrop:e})=>{let{sendClickSearchBarGtmTag:t,sendSubmitSearchGtmTag:r}=(0,I.PB)(),{user:n}=(0,p.Z2)(),{isFlagEnabled:o}=(0,h.h)(),{asPath:s,basePath:l,locale:u}=(0,c.useRouter)(),{opco_id:d}=(0,h.rD)(),f=(0,rE.jz)({basePath:l,locale:u,asPath:s}),m=o(A.tG),y=o(A.Sx),v=o(ry.bi),b=o(A.hT)&&o(A.Y7),[O]=(0,_.B)(),E=(0,a.useRef)(!1),w=(0,a.useRef)(null),{addElementToNavigationList:P,isNavigating:x,historyItems:S,addItem:T,removeItems:N,refreshItems:D,searchTerm:R,setSearchTerm:L,handleKeyboardGesture:M,resetNavigation:F}=(()=>{let{addElementToNavigationList:e,isNavigating:t,currentIndex:r,handleKeyboardGesture:n,resetNavigation:i}=(()=>{let e=(0,a.useRef)([]),{0:t,1:r}=(0,a.useState)(!1),{0:n,1:i}=(0,a.useState)(-1),o=(0,a.useRef)(!1),s=(0,a.useRef)(-1);o.current=t,s.current=n;let c=(0,a.useCallback)(()=>{i(-1),r(!1),e.current=[]},[]);return{addElementToNavigationList:(t,r)=>{e.current[r]=t},isNavigating:t,currentIndex:n,handleKeyboardGesture:(0,a.useCallback)((t,n,a,c,l)=>{if("Escape"===t.code){!o.current&&n&&(t.preventDefault(),n());return}if("Tab"===t.code){if(o.current){t.preventDefault();let n=e.current[s.current];n&&l&&l(n.textContent?.trim()||"");let a=document.getElementById("searchbar");a&&(a.focus(),i(-1),r(!1))}else a&&a();return}if("Enter"===t.code){if(o.current){let t=e.current[s.current],r=t?.querySelector("a");r&&r.click()}return}let u=(e=>"ArrowDown"===e?1:"ArrowUp"===e?-1:null)(t.code);if(null!==u){t.preventDefault();let n=e.current.filter(e=>null!==e);if(0===n.length)return;if(o.current){let e=s.current+u;if(e<0||e>=n.length){let e=document.getElementById("searchbar");e&&(e.focus(),i(-1),r(!1))}else{i(e);let t=n[e];t&&(t.focus(),c&&c(t.textContent?.trim()||""))}}else{r(!0);let e=u>0?0:n.length-1;i(e);let t=n[e];t&&(t.focus(),c&&c(t.textContent?.trim()||""))}return}o.current&&(i(-1),r(!1))},[]),resetNavigation:c}})(),{items:o,addItem:s,removeItems:c,refreshItems:l}=(0,rP.k)(),[u,d]=(0,rI.w)(),{isMobileApp:p,scanIconUrl:h}=(0,td.N)();return{addElementToNavigationList:e,isNavigating:t,currentIndex:r,historyItems:o,addItem:s,removeItems:c,refreshItems:l,searchTerm:u,setSearchTerm:d,scanIconUrl:p&&h,handleKeyboardGesture:n,resetNavigation:i}})(),{0:$,1:U}=(0,a.useState)(!1),{0:q,1:G}=(0,a.useState)(!1),{0:z,1:H}=(0,a.useState)(null),{0:W,1:Q}=(0,a.useState)(null),{0:Y,1:K}=(0,a.useState)(""),J=tv.U.down("sm"),Z=R?.length>=ry.Ku,X=!!(!q&&!Z),ee=x?z===rU.RESULT:q,et=x?z===rU.HISTORY:X,er=et&&!!S?.length,en=J?$:!!($&&(ee||et)),[ea,{data:ei,loading:eo}]=(0,g.zaw)(),[es,{data:ec,loading:el}]=(0,g.kAm)(),[eu,{data:ed}]=(0,rv.mz)(),ep=m?ec?.getProductSearchSuggestions:ei?.getSearchAutoSuggest,eh=m?el:eo,ef=e=>(eu({variables:{keyword:`${e}*`,siteId:d.toLowerCase()}}),m?es({variables:{query:e,accountId:n?.accountId,url:f}}):ea({variables:{q:e,accountID:n?.accountId}})),{categorySuggestions:em,searchSuggestions:eg,querySuggestions:ey}=(0,a.useMemo)(()=>m?(0,rb.I_)(W):(0,rb.fu)(ei?.getSearchAutoSuggest?.suggestionGroups?.[0]),[ei?.getSearchAutoSuggest?.suggestionGroups,m,W]),ev=ed?.content?.soneparFacetedSearch?.result,eb=(0,a.useMemo)(()=>(0,r_.m)(eg,R,ev,v,b),[eg,R,ev,v,b]),{isMobileApp:e_,scanIconUrl:eO}=(0,td.N)(),eC=(0,a.useMemo)(()=>eO?.replace("://",":/"),[eO]);(0,a.useEffect)(()=>{eh||Q(ep)},[ep,eh]),(0,a.useEffect)(()=>{if(x){let e=X?rU.HISTORY:rU.RESULT;H(X||q?e:null)}},[x,X,q]),(0,a.useEffect)(()=>{G(!!Z)},[Z,ey.length,eg.length]);let eE=(0,a.useCallback)(()=>{K(""),U(!1),e(!1),G(!1),F(),document.body.style.overflow="auto",document.documentElement.style.removeProperty("scrollbarGutter")},[e,F]),ew=(0,a.useCallback)(e=>{M(e,()=>{L(""),F()},()=>eE(),e=>K(e),e=>{L(e),K("")})},[M,L,eE,F]);(0,a.useEffect)(()=>{en?(document.documentElement.style.scrollbarGutter="stable",document.body.style.overflow="hidden",
10window.addEventListener("keydown",ew,!0)):(document.documentElement.style.removeProperty("scrollbarGutter"),document.body.style.overflow="auto",window.removeEventListener("keydown",ew,!0))},[en,ew]),(0,rO.C)({refs:[w],onClickAway:()=>(t=>{if(t?.target){let e=t.target,r=e.closest('[data-component="drawer"]')||e.closest('[role="dialog"]')||e.closest(".watts-drawer"),n=e.classList?.contains("watts-overlay")||e.classList?.contains("watts-backdrop")||"true"===e.getAttribute("data-overlay");if(r||n)return}document.querySelector('[role="dialog"][aria-hidden="false"]')||document.querySelector('[data-component="drawer"][aria-hidden="false"]')||document.querySelector('.watts-drawer:not([aria-hidden="true"])')||(U(!1),e(!1),F())})(),shouldListenEscapeKey:!1});let eP=async e=>{if(e.length&&T((0,rw.Yp)(e)),e.length>=ry.Ku){r({searchTerm:(0,rw.Yp)(e)});let t=(0,rb.OI)("/search",(0,rw.Yp)(e),y);(0,k.A)(t,"catalog"),eE()}};return(0,B.jsxs)(B.Fragment,{children:[$&&(0,B.jsx)("span",{className:rF().backdrop,"data-testid":"backdrop"}),(0,B.jsxs)("div",{className:(0,i.A)(rF().root,{[rF().activeRoot]:en}),"data-testid":"search-box-root",children:[en&&(0,B.jsxs)("div",{ref:w,className:rF().panel,children:[(0,B.jsx)("div",{className:rF().closeButtonMobileView,id:"closeButtonMobile",children:(0,B.jsx)(C.$,{onClick:eE,icon:"cross",title:O("header.search.closePanelButton"),variant:"ghost","aria-label":O("header.search.closePanelButton"),"data-testid":"search-mobile-close-button"})}),ee&&(0,B.jsx)(rj,rB(rB({},{searchQuery:R,querySuggestions:ey,filteredBrands:eb,isNewSearchSuggestionEnabled:m,isDataLoading:eh,closePopUp:eE,rememberSearch:T,onSearchItemDisplay:P}),{},{searchSuggestions:eg,categorySuggestions:em})),er&&(0,B.jsx)(rL,{items:S,closePopUp:eE,searchQuery:R,clearAll:N,onSearchItemDisplay:P,isBackDropOpen:$})]}),(0,B.jsxs)("div",{ref:en?null:w,className:(0,i.A)(rF().form,{[rF().activeForm]:$}),children:[(0,B.jsx)(rC.q,{onValueChange:e=>{L(e),e.length>=ry.Ku&&!x&&ef(e)},onValueSubmit:eP,onFocus:r=>{D(),E.current||(t(),E.current=!0),U(!0),e(!0),R?.length>=ry.Ku&&!x&&(ef(R),G(!0)),r&&requestAnimationFrame(()=>r.target.focus())},value:x&&Y?Y:R}),e_&&eC&&(0,B.jsx)(j.w,{className:rF().barcodeButton,icon:"scan-barcode",href:eC,size:"l","data-testid":"search-scan-link",children:(0,B.jsx)(V.E,{as:"span",className:"srOnly",children:O("app.barcodeScanner.button")})})]})]})]})};var rq=r(74382),rG=r(41894),rz=r(21794),rH=r.n(rz);let rW=()=>{let[e]=(0,_.B)(),{showSwitchCart:t,isSwitchCartOpen:r}=(0,rG.xd)(),{hasContributeCartPermission:n}=(0,p.Sk)(),{isFlagEnabled:a}=(0,h.h)(),i=a(A.N1),o=e("header.switchCartLabel");return(0,B.jsx)(C.$,{variant:i?"ghost-on-brand":"ghost",icon:"arrow-double-horiz-in",onClick:()=>t({projectId:null}),title:o,"data-testid":"header-switch-cart","aria-haspopup":"dialog","aria-expanded":r,className:r&&rH().active,disabled:!n})};var rQ=r(49472),rY=r.n(rQ);function rK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rJ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rK(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rK(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let rZ=e=>!!e,rX=({items:e})=>{let{openBulkAddDrawer:t,isBulkAddDrawerOpen:r}=(0,eD.nZ)(),{computeCmsLink:n}=(0,m.H)(),[a]=(0,_.B)(),{isLoggedIn:o,guestUser:s,hasDPC:c}=(0,p.Z2)(),{hasContributeCartPermission:l}=(0,p.Sk)(),{isFlagEnabled:u}=(0,h.h)(),d=u(A.N1),f=u("ft-quick-add-to-cart"),g=u(G.F3),y=f&&o&&l,{sendSubnavGtmTag:v}=(0,I.PB)(),{ordersItems:b=[],discoverMoreItems:O=[],productsItems:E=[],toolsItems:w=[],customItems:P=[]}=ez(e),{discoverMoreCmsItems:x}=eS(e),S=x.length>4,T=S?3:x.length,N=x.slice(0,T),k=O.slice(3,x.length);return(0,B.jsxs)("div",{className:(0,i.A)(rY().subnavBar,d&&rY().brandedHeader),"data-testid":"subnav",children:[(0,B.jsxs)("ul",{className:rY().subnavItems,children:[!g&&(0,B.jsx)("li",{className:rY().subnavItem,children:(0,B.jsx)(j.w,{variant:d?"ghost-on-brand":"ghost",app:R.b.content.app,href:"/",onClick:()=>v(a("subNav.home")),children:a("subNav.home")})}),o?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("li",{className:rY().subnavItem,children:(0,B.jsx)(rq.W,{menuButton:{children:a("subNav.orders"),variant:d?"ghost-on-brand":"ghost",onClick:()=>v(a("subNav.orders"))},items:b,"data-testid":"subnav-orders"})}),(0,B.jsx)("li",{className:rY().subnavItem,children:(0,B.jsx)(rq.W,{menuButton:{children:a("subNav.myProducts"),variant:d?"ghost-on-brand":"ghost",onClick:()=>v(a("subNav.myProducts"))},items:E,"data-testid":"subnav-my-products"})}),c&&w.length>0&&(0,B.jsx)("li",{className:rY().subnavItem,children:(0,B.jsx)(rq.W,{menuButton:{children:a(1===w.length?"common.header.tool":"common.header.tools"),variant:d?"ghost-on-brand":"ghost",onClick:()=>v(a(1===w.length?"common.header.tool":"common.header.tools"))},items:w,"data-testid":"subnav-tools"})}),O?.length>0&&(0,B.jsx)("li",{className:rY().subnavItem,children:(0,B.jsx)(rq.W,{menuButton:{children:a("subNav.discoverMore"),variant:d?"ghost-on-brand":"ghost",onClick:()=>v(a("subNav.discoverMore"))},items:O,"data-testid":"subnav-discover-more"})}),g&&P?.length>0&&P?.map((e,t)=>(0,B.jsx)("li",{className:rY().subnavItem,children:(0,B.jsx)(rq.W,{menuButton:{children:e.title,variant:d?"ghost-on-brand":"ghost",onClick:()=>v(e.title)},items:e.items,"data-testid":`subnav-custom-${t}`})},`custom-${t}`))]}):(0,B.jsxs)(B.Fragment,{children:[N?.map(e=>(0,B.jsx)("li",{className:(0,i.A)(rY().subnavItems),"data-testid":`${e.teaserTitle}`,children:(0,B.jsx)(j.w,rJ(rJ({className:rY().link,variant:d?"ghost-on-brand":"ghost"},n((e.teaserTargets??[]).filter(rZ))),{},{onClick:()=>v(e.teaserTitle??""),"data-testid":"list-menu",children:e.teaserTitle??""}))},e.id)),S&&(0,B.jsx)("li",{className:rY().subnavItem,children:(0,B.jsx)(rq.W,{menuButton:{children:a("subNav.discoverMore"),variant:d?"ghost-on-brand":"ghost",onClick:()=>v(a("subNav.discoverMore"))},items:k,"data-testid":"subnav-discover-more"})})]})]}),(0,B.jsxs)("div",{className:(0,i.A)(rY().subnavRight,g&&rY().subnavRightNavigationEnabled),children:[o&&!c&&(0,B.jsx)("ul",{className:(0,i.A)(rY().subnavLinks,rY().rightLinks),children:y&&(0,B.jsxs)("li",{className:(0,i.A)(rY().subnavItem,r&&rY().active,g&&rY().hideQuickAddSmallDesktop),"data-testid":"sub-nav-quick-add",children:[(0,B.jsx)(C.$,{icon:"clock-fast",variant:d?"ghost-on-brand":"ghost",onClick:()=>{v(a("subNav.quickAdd")),t()},className:rY().quickAddButtonDesktop,children:a("subNav.quickAdd")}),(0,B.jsx)(C.$,{icon:"clock-fast",variant:d?"ghost-on-brand":"ghost",onClick:()=>{v(a("subNav.quickAdd")),t()},className:rY().quickAddButtonMobile,title:a("subNav.quickAdd"),children:null})]})}),(o||s?.userId)&&(0,B.jsx)(eA,{}),o&&(0,B.jsx)(rW,{})]})]})};function r0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let r1=({linkItems:e})=>e?(0,B.jsx)(rX,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?r0(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r0(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e)):null;var r2=r(38033),r3=r.n(r2);function r6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function r4(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?r6(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r6(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let r8=d()(()=>Promise.all([r.e(1198),r.e(8227),r.e(7802)]).then(r.bind(r,37802)).then(e=>e.ManageCartDrawerWrapper),{loadableGenerated:{webpack:()=>[37802]}}),r7=d()(()=>Promise.all([r.e(5630),r.e(2480),r.e(8367),r.e(1888),r.e(577)]).then(r.bind(r,70577)).then(e=>e.VoltSearchBox),{loadableGenerated:{webpack:()=>[70577]}}),r5="ACCESS_TPA_",r9=({componentAnchors:e,hideHeaderOnScroll:t})=>{let{drawerAnchorRef:r,isLoggedIn:n}=O(),{isOpen:a,openDrawer:i,closeDrawer:o}=(0,l.b)(),{isFlagEnabled:s}=(0,h.h)(),c=s(A.W1),u=(0,f.mH)(),d=(e=>{let{user:t,isLoggedIn:r}=(0,p.Z2)(),n=(t?.permissions||[]).filter(e=>e.startsWith(r5)).map(e=>e.substring(r5.length)),{computeCmsLink:a}=(0,m.H)();return{items:(({data:e,isLoggedIn:t,tpaPermissions:r,computeCmsLink:n})=>"items"in e&&e?.items?.length?e.items.filter(e=>{let n="heading"in e&&"TPA"===e.heading,a="teaserTargets"in e?e.teaserTargets:[],i=a[0]?.target&&"teaserTitle"in a[0].target&&a[0].target.teaserTitle;return(!n||!!t&&!!r.includes(i))&&e}).slice(0,8).map(e=>r4(r4({},e),{},{text:"teaserTitle"in e?e.teaserTitle:"",link:"teaserTargets"in e?n(e.teaserTargets):{}})):[])({data:e,isLoggedIn:r,tpaPermissions:n,computeCmsLink:a})}})(u?.subnavigation?.[0]?.content?.[0]||[]);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(tu,{baseUrl:"/",headerBanner:tV,logo:tq.g,drawerAnchorRef:r,openDrawer:i,webSearchBox:c?r7:rV,componentAnchors:e,hideHeaderOnScroll:t,children:(0,B.jsx)(r1,{linkItems:d})}),(0,B.jsx)(rg,r4({isOpen:a,closeDrawer:o},d)),n&&(0,B.jsx)("div",{className:r3().drawerContainer,"data-testid":"manage-cart-drawer-wrapper",children:(0,B.jsx)(r8,{})})]})};var ne=r(27956),nt=r(95314),nr=r(84033),nn=r.n(nr),na=r(47640),ni=r(33785),no=r(2291),ns=r.n(no);function nc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nc(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nu=({onDisplayConfirmation:e})=>{let[t]=(0,_.B)(),{0:r,1:n}=(0,a.useState)(null),i={children:t("satisfactionSurvey.banner.cta"),onClick:e,variant:"primary",size:"m"};return(0,a.useEffect)(()=>{n(document.getElementById("satisfaction-survey-cta-portal"))},[]),(0,B.jsxs)("div",{className:ns().container,children:[(0,B.jsx)(C.$,nl(nl({},i),{},{icon:"speech-add",size:"s",iconPosition:"right",className:ns().satisfactionSurveyButtonDesktop,"data-testid":"satisfaction-survey-cta-desktop","data-pendo-id":"feedback-cta"})),r&&(0,ni.createPortal)((0,B.jsx)("div",{className:ns().container,children:(0,B.jsx)(C.$,nl(nl({},i),{},{className:ns().satisfactionSurveyButtonMobile,"data-testid":"satisfaction-survey-cta-mobile","data-pendo-id":"feedback-cta"}))}),r)]})};var nd=r(90543),np=r.n(nd);let nh=()=>(0,B.jsxs)("svg",{width:"168",height:"160",viewBox:"0 0 168 169",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,B.jsx)("path",{d:"M49.6958 132.759C69.0783 147.69 96.4237 149.997 118.556 136.492C147.248 118.984 156.315 81.532 138.807 52.84C121.299 24.148 83.8471 15.0814 55.1551 32.5892C33.5914 45.7474 23.1129 70.171 26.6696 93.6746L26.5864 93.5359C26.5864 93.5359 26.6306 93.6722 26.7082 93.9261C27.1805 96.9607 27.887 99.9792 28.8342 102.955C29.8008 108.659 30.1907 115.566 27.584 119.476C25.014 123.331 22.5334 126.581 20.7322 128.826C19.664 130.157 20.5874 132.21 22.2939 132.243L49.6958 132.759Z",fill:"var(--illustration-2)"}),(0,B.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M132.271 27.9352L136.083 19.6826L132.796 18.1643L128.984 26.4168L132.271 27.9352ZM150.65 23.8776L137.471 32.5156L135.486 29.4874L148.665 20.8494L150.65 23.8776ZM148.415 36.7364L141.143 39.0907L140.027 35.6461L147.3 33.2918L148.415 36.7364Z",fill:"var(--illustration-7)"}),(0,B.jsx)("path",{d:"M31.3826 35.8087L25.1163 29.2232L27.7393 26.7274L34.0056 33.3129L31.3826 35.8087Z",fill:"var(--illustration-6)"}),(0,B.jsx)("path",{d:"M27.935 41.82L12.6767 37.8856L13.5807 34.3796L28.839 38.314L27.935 41.82Z",fill:"var(--illustration-6)"}),(0,B.jsx)("ellipse",{opacity:"0.07",cx:"38.3793",cy:"4.34483",rx:"38.3793",ry:"4.34483",transform:"matrix(-1 0 0 1 122.379 148.948)",fill:"var(--illustration-5)"}),(0,B.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M85.8865 52.3535C86.3157 51.0639 86.5303 50.4191 86.8508 50.244C87.1281 50.0926 87.4633 50.0926 87.7405 50.244C88.0611 50.4191 88.2757 51.0639 88.7048 52.3535L89.8802 55.8854L89.8802 55.8854C90.0018 56.2508 90.0626 56.4335 90.1755 56.5686C90.2752 56.6879 90.4032 56.7802 90.5479 56.8371C90.7117 56.9016 90.9042 56.9016 91.2894 56.9016L95.0159 56.9016C96.4273 56.9016 97.133 56.9016 97.4013 57.1553C97.6333 57.3747 97.7363 57.6978 97.674 58.011C97.6019 58.3732 97.0263 58.7815 95.8753 59.598L95.8752 59.598L92.9219 61.693C92.5999 61.9214 92.4389 62.0356 92.3417 62.1868C92.2559 62.3203 92.2058 62.4735 92.1961 62.6319C92.185 62.8113 92.2474 62.9986 92.372 63.3732L92.3721 63.3733L93.5145 66.8061C93.9499 68.1146 94.1676 68.7688 94.0142 69.102C93.8816 69.3902 93.611 69.5906 93.2967 69.6335C92.9332 69.6832 92.3708 69.2842 91.246 68.4863L88.1549 66.2936L88.1549 66.2936L88.1548 66.2935C87.8456 66.0742 87.6909 65.9645 87.5224 65.922C87.3736 65.8845 87.2178 65.8845 87.0689 65.922C86.9004 65.9645 86.7457 66.0742 86.4364 66.2936L83.3453 68.4863L83.3453 68.4863L83.3453 68.4863C82.2205 69.2842 81.6581 69.6832 81.2947 69.6335C80.9804 69.5906 8
100.7098 69.3902 80.5771 69.102C80.4237 68.7688 80.6414 68.1146 81.0769 66.8061L82.2193 63.3732C82.344 62.9986 82.4063 62.8113 82.3953 62.6319C82.3856 62.4735 82.3354 62.3203 82.2496 62.1868C82.1525 62.0356 81.9914 61.9214 81.6694 61.693L78.7161 59.598C77.565 58.7815 76.9894 58.3732 76.9174 58.011C76.8551 57.6978 76.958 57.3747 77.19 57.1553C77.4584 56.9016 78.1641 56.9016 79.5754 56.9016L83.302 56.9016C83.6871 56.9016 83.8797 56.9016 84.0435 56.8371C84.1881 56.7802 84.3162 56.6879 84.4159 56.5686C84.5287 56.4335 84.5895 56.2508 84.7111 55.8855L84.7111 55.8854L84.7111 55.8854L85.8865 52.3535ZM61.125 68.2717C61.5541 66.9821 61.7687 66.3373 62.0893 66.1622C62.3665 66.0108 62.7017 66.0108 62.979 66.1622C63.2995 66.3373 63.5141 66.9821 63.9433 68.2717L63.9433 68.2717L65.1186 71.8036L65.1186 71.8036C65.2402 72.169 65.301 72.3517 65.4139 72.4868C65.5136 72.6061 65.6417 72.6984 65.7863 72.7553C65.9501 72.8198 66.1427 72.8198 66.5278 72.8198H70.2544C71.6657 72.8198 72.3714 72.8198 72.6398 73.0735C72.8717 73.2929 72.9747 73.616 72.9124 73.9292C72.8403 74.2914 72.2648 74.6997 71.1136 75.5162L68.1604 77.6112C67.8383 77.8396 67.6773 77.9538 67.5801 78.105C67.4944 78.2385 67.4442 78.3917 67.4345 78.5501C67.4235 78.7295 67.4858 78.9168 67.6105 79.2914L68.7529 82.7243C69.1884 84.0328 69.4061 84.687 69.2527 85.0202C69.12 85.3084 68.8494 85.5088 68.5351 85.5517C68.1717 85.6014 67.6093 85.2024 66.4845 84.4045L63.3934 82.2118C63.0841 81.9924 62.9294 81.8827 62.7609 81.8402C62.612 81.8027 62.4562 81.8027 62.3074 81.8402C62.1388 81.8827 61.9842 81.9924 61.6748 82.2118L58.5838 84.4045C57.459 85.2024 56.8966 85.6014 56.5331 85.5517C56.2188 85.5088 55.9482 85.3084 55.8156 85.0202C55.6622 84.687 55.8799 84.0328 56.3153 82.7242L57.4577 79.2914C57.5824 78.9168 57.6447 78.7295 57.6337 78.5501C57.624 78.3917 57.5739 78.2385 57.4881 78.105C57.3909 77.9538 57.2299 77.8396 56.9078 77.6112L53.9546 75.5162C52.8035 74.6997 52.2279 74.2914 52.1558 73.9292C52.0935 73.616 52.1965 73.2929 52.4285 73.0735C52.6968 72.8198 53.4025 72.8198 54.8138 72.8198H58.5404C58.9255 72.8198 59.1181 72.8198 59.2819 72.7553C59.4266 72.6984 59.5546 72.6061 59.6543 72.4868C59.7672 72.3517 59.828 72.169 59.9496 71.8036L61.125 68.2717ZM70.8526 96.5707C71.2817 95.2811 71.4963 94.6362 71.8169 94.4612C72.0941 94.3098 72.4293 94.3098 72.7066 94.4612C73.0271 94.6362 73.2417 95.2811 73.6709 96.5707L74.8463 100.103C74.9679 100.468 75.0287 100.651 75.1415 100.786C75.2412 100.905 75.3693 100.997 75.5139 101.054C75.6777 101.119 75.8703 101.119 76.2554 101.119H79.982C81.3933 101.119 82.099 101.119 82.3674 101.373C82.5994 101.592 82.7023 101.915 82.64 102.228C82.568 102.59 81.9924 102.999 80.8413 103.815L77.888 105.91C77.566 106.139 77.4049 106.253 77.3078 106.404C77.222 106.537 77.1718 106.691 77.1621 106.849C77.1511 107.028 77.2134 107.216 77.3381 107.59L78.4805 111.023C78.916 112.332 79.1337 112.986 78.9803 113.319C78.8476 113.607 78.577 113.808 78.2627 113.851C77.8993 113.9 77.3369 113.501 76.2121 112.703L73.121 110.511C72.8117 110.291 72.657 110.182 72.4885 110.139C72.3396 110.102 72.1838 110.102 72.035 110.139C71.8664 110.182 71.7118 110.291 71.4025 110.511L68.3114 112.703C67.1866 113.501 66.6242 113.9 66.2607 113.851C65.9464 113.808 65.6758 113.607 65.5432 113.319C65.3898 112.986 65.6075 112.332 66.043 111.023L67.1853 107.59C67.31 107.216 67.3724 107.028 67.3614 106.849C67.3516 106.691 67.3015 106.537 67.2157 106.404C67.1185 106.253 66.9575 106.139 66.6355 105.91L63.6822 103.815C62.5311 102.999 61.9555 102.59 61.8834 102.228C61.8211 101.915 61.9241 101.592 62.1561 101.373C62.4245 101.119 63.1301 101.119 64.5415 101.119H68.2681C68.6532 101.119 68.8457 101.119 69.0095 101.054C69.1542 100.997 69.2822 100.905 69.3819 100.786C69.4948 100.651 69.5556 100.468 69.6772 100.103L70.8526 96.5707ZM111.612 66.1622C111.292 66.3373 111.077 66.9821 110.648 68.2717L109.473 71.8036L109.473 71.8036L109.473 71.8037C109.351 72.1691 109.29 72.3517 109.177 72.4868C109.078 72.6061 108.95 72.6984 108.805 72.7553C108.641 72.8198 108.449 72.8198 108.064 72.8198H104.337C102.926 72.8198 102.22 72.8198 101.952 73.0735C101.72 73.2929 101.617 73.616 101.679 73.9292C101.751 74.2914 102.327 74.6997 103.478 75.5162L106.431 77.6112C106.753 77.8396 106.914 77.9538 107.011 78.105C107.097 78.2385 107.147 78.3917 107.157 78.5501C107.168 78.7295 107.106 78.9168 106.981 79.2914L106.981 79.2914L105.838 82.7242C105.403 84.0328 105.185 84.687 105.339 85.0202C105.471 85.3084 105.742 85.5088 106.056 85.5517C106.42 85.6014 106.982 85.2024 108.107 84.4045L111.198 82.2118C111.507 81.9924 111.662 81.8827 111.83 81.8402C111.979 81.8027 112.135 81.8027 112.284 81.8402C112.453 81.8827 112.607 81.9924 112.916 82.2118L112.916 82.2118L116.008 84.4045C117.132 85.2024 117.695 85.6014 118.058 85.5517C118.373 85.5088 118.643 85.3084 118.776 85.0202C118.929 84.687 118.711 84.0328 118.276 82.7243L117.134 79.2914C117.009 78.9168 116.947 78.7295 116.958 78.5501C116.967 78.3917 117.017 78.2385 117.103 78.105C117.2 77.9538 117.361 77.8396 117.683 77.6112L120.637 75.5162C121.788 74.6997 122.363 74.2914 122.436 73.9292C122.498 73.616 122.395 73.2929 122.163 73.0735C121.895 72.8198 12
101.189 72.8198 119.777 72.8198H116.051C115.666 72.8198 115.473 72.8198 115.309 72.7553C115.165 72.6984 115.037 72.6061 114.937 72.4868C114.824 72.3517 114.763 72.1691 114.642 71.8037L114.642 71.8036L114.642 71.8036L113.466 68.2717C113.037 66.9821 112.823 66.3373 112.502 66.1622C112.225 66.0108 111.89 66.0108 111.612 66.1622ZM101.884 94.4612C101.564 94.6362 101.349 95.2811 100.92 96.5707L99.7447 100.103C99.6231 100.468 99.5623 100.651 99.4494 100.786C99.3497 100.905 99.2217 100.997 99.077 101.054C98.9132 101.119 98.7206 101.119 98.3355 101.119H94.609C93.1976 101.119 92.4919 101.119 92.2236 101.373C91.9916 101.592 91.8886 101.915 91.9509 102.228C92.023 102.59 92.5986 102.999 93.7497 103.815L96.7029 105.91C97.025 106.139 97.186 106.253 97.2832 106.404C97.369 106.537 97.4191 106.691 97.4288 106.849C97.4398 107.028 97.3775 107.216 97.2528 107.59L96.1104 111.023C95.675 112.332 95.4573 112.986 95.6107 113.319C95.7433 113.607 96.0139 113.808 96.3282 113.851C96.6917 113.9 97.2541 113.501 98.3789 112.703L101.47 110.511C101.779 110.291 101.934 110.182 102.102 110.139C102.251 110.102 102.407 110.102 102.556 110.139C102.725 110.182 102.879 110.291 103.188 110.511L106.28 112.703C107.404 113.501 107.967 113.9 108.33 113.851C108.645 113.808 108.915 113.607 109.048 113.319C109.201 112.986 108.983 112.332 108.548 111.023L107.406 107.59C107.281 107.216 107.219 107.028 107.23 106.849C107.239 106.691 107.289 106.537 107.375 106.404C107.472 106.253 107.633 106.139 107.955 105.91L110.909 103.815C112.06 102.999 112.635 102.59 112.708 102.228C112.77 101.915 112.667 101.592 112.435 101.373C112.167 101.119 111.461 101.119 110.049 101.119H106.323C105.938 101.119 105.745 101.119 105.581 101.054C105.437 100.997 105.309 100.905 105.209 100.786C105.096 100.651 105.035 100.468 104.914 100.103L103.738 96.5707C103.309 95.2811 103.095 94.6362 102.774 94.4612C102.497 94.3098 102.162 94.3098 101.884 94.4612Z",fill:"var(--illustration-3)"})]}),nf=({open:e,onClose:t,onUserDeclinedSurvey:r,onUserAcceptedSurvey:n})=>{let{opco_name:a,privacy_policy_link:i}=(0,h.rD)(),[o]=(0,_.B)();return(0,B.jsx)(el._,{isOpen:e,onClose:t,closeLabel:o("common.close"),children:(0,B.jsxs)("div",{className:np().drawerContent,children:[(0,B.jsxs)("div",{className:np().top,children:[(0,B.jsx)(nh,{}),(0,B.jsxs)("div",{className:np().heading,children:[(0,B.jsx)(tJ.D,{size:"body-4",children:o("satisfactionSurvey.banner.title")}),(0,B.jsx)(V.E,{size:"body-3",color:"subtlest",children:o("satisfactionSurvey.banner.content")})]}),(0,B.jsxs)("div",{className:np().buttons,children:[(0,B.jsx)(C.$,{onClick:r,size:"l",variant:"tertiary","data-testid":"satisfaction-survey-decline",children:o("satisfactionSurvey.banner.button.refuse")}),(0,B.jsx)(C.$,{onClick:n,size:"l","data-testid":"satisfaction-survey-accept",children:o("satisfactionSurvey.banner.button.accept")})]})]}),(0,B.jsxs)(V.E,{size:"body-1",color:"subtlest",children:[o("satisfactionSurvey.legalSentence",{opco_name:a})," ",(0,B.jsx)(M.N,{size:"s",variant:"unstyled",href:i,children:o("satisfactionSurvey.legalSentence.linkLabel")})]})]})})},nm=[R.b.checkout.app],ng="survalyzerAppUserDenied",ny="survalyzerAppUserCompleted",nv=d()(()=>Promise.all([r.e(3637),r.e(1555)]).then(r.bind(r,81555)).then(e=>e.SatisfactionSurveyDialog),{loadableGenerated:{webpack:()=>[81555]}}),nb=()=>{let{sendOpenFeedbackGtmTag:e,sendInteractFeedbackBannerGtmTag:t,sendSubmitFeedbackFormGtmTag:r}=(0,I.PB)(),{basePath:n,locale:i}=(0,c.useRouter)(),o=(0,h.rD)(),{isLoggedIn:s}=(0,p.Z2)(),{isFlagEnabled:l}=(0,h.h)(),u=(0,eR.Ri)(ng),d=(0,eR.Ri)(ny),f=i?.substring(0,i?.indexOf("-")),m=o[`survalyzer_app_${f}`],g=o.survalyzer_app_tenant,y=((e,t)=>!!(e&&"false"!==e.toLowerCase()&&t&&"false"!==t.toLowerCase()))(m,g),v=nm.some(e=>n?.match(e)),b=l(na.kK)&&l(na.C2),{0:_,1:O}=(0,a.useState)(!1),{0:C,1:E}=(0,a.useState)(!d&&!u),{0:w,1:P}=(0,a.useState)(!1),x=()=>{let e=new Date(new Date().getTime()+2592e6);(0,eR.TV)(ng,"denied",{expires:e}),O(!1),P(!1),E(!1)};return((0,a.useEffect)(()=>{let e=nn()(()=>{!_&&C&&O(!0)},3e4);return window.addEventListener("load",e),window.addEventListener("mousemove",e),window.addEventListener("mousedown",e),window.addEventListener("touchstart",e),window.addEventListener("click",e),window.addEventListener("keydown",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("load",e),window.removeEventListener("mousemove",e),window.removeEventListener("mousedown",e),window.removeEventListener("touchstart",e),window.removeEventListener("click",e),window.removeEventListener("keydown",e),window.removeEventListener("scroll",e)}},[_,C]),s&&!v&&y&&!b)?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(nu,{onDisplayConfirmation:()=>{O(!0),e()}}),w?(0,B.jsx)(nv,{open:w,onClose:x,surveyTenant:g,surveyHash:m,onUserCompleted:()=>{(0,eR.TV)(ny,"completed"),E(!1),setTimeout(()=>{w&&P(!1)},1e4),r()}}):(0,B.jsx)(nf,{open:_,onClose:x,onUserAcceptedSurvey:()=>{O(!1),P(!0),E(!1),t({status:"yes"})},onUserDeclinedSurvey:()=>{x(),t({status:"no"})}})]}):null},n_=()=>{let{isLoggedIn:e}
10=(0,p.Z2)(),{pendo_api_key:t,pendo_nps_survey_guide_id:r}=(0,h.rD)(),{isFlagEnabled:n}=(0,h.h)(),i=n(na.kK),o=n(na.C2),s=i&&o&&e&&!!t&&!!r,c=(e=>{let{0:t,1:r}=(0,a.useState)(void 0);return(0,a.useEffect)(()=>{let t,n;if(!e)return void r(!1);r(void 0);let a=()=>{t&&clearInterval(t),n&&clearTimeout(n)},i=()=>"function"==typeof window.pendo?.findGuideById&&!!window.pendo.findGuideById(e);return i()?void r(!0):(t=setInterval(()=>{i()&&(r(!0),a())},500),n=setTimeout(()=>{r(!1),a()},1e4),a)},[e]),t})(s?r:void 0),l=(0,a.useCallback)(()=>{let{pendo:e}=window;if(!e||"function"!=typeof e.showGuideById)return void console.warn("[PendoNpsSurvey] Pendo is not ready, cannot open the guide");try{e.onGuideDismissed?.(),e.showGuideById(r)}catch(e){console.error("[PendoNpsSurvey] Failed to open the Pendo guide",e)}},[]);return s&&!0===c?(0,B.jsx)(nu,{onDisplayConfirmation:l}):null};var nO=r(25021),nC=r(37630),nE=r(10743),nw=r(46291),nP=r(89293),nI=r.n(nP);function nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nx(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r(92652),r(57760);let nT=({title:e,children:t,banner:n,overlay:o,bottomContent:l,mainContainerClass:u,wrapperClassName:d,description:f,keywords:m,noPadding:g=!1,blockSeoIndexing:y=!1,metaTitle:v,metaDescription:b,localeVariants:_,sanitizeAsPath:O,componentAnchors:C,isBrandPage:E=!1,hideHeaderOnScroll:w=!1})=>{let{basePath:P,asPath:I,locale:x,query:S,replace:T}=(0,c.useRouter)(),{app_url:N,opco_brand:j,opco_name:k,opco_area_served:R,opco_phone_number:L,opco_street_address:M,opco_city_town:F,opco_postal_code:$,opco_country:U,locales_list:V}=(0,h.rD)(),q=(0,rw.PK)(S?.preview),{isFlagEnabled:G}=(0,h.h)(),z=G(A._w),H=(0,nC.$i)(),{isLoggedIn:W}=(0,p.Z2)(),Q=r.g.dtrum,Y=(0,a.useMemo)(()=>S?Object.keys(S):[],[S]),K=I;if(O){let e=(0,rE.iy)(S);K=e?O(I,e):I}let J=e=>{let t=_?.[e]?.trim(),r=t?t.startsWith("/")?t:`/${t}`:K;return(0,rE.SE)(`${N}${P}/${e}${r}`)},Z=(0,nw.Yf)(H,j);return(0,a.useEffect)(()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js")})},[!0]),(0,a.useEffect)(()=>{if(O&&K!==I){let e=`/${x}${K}`;T(`/${x}${K}`,e,{shallow:!0,scroll:!1,locale:!1})}},[K,I,O,T,x]),(0,a.useEffect)(()=>{(0,D.$)("dynatrace",Y)&&Q?.disable()},[Q,Y]),(0,B.jsxs)(B.Fragment,{children:[o,(0,B.jsxs)("div",nS(nS({className:(0,i.A)([nI().master,d])},!W&&{"data-cs-capture":!0}),{},{children:[(0,B.jsxs)(s(),{children:[(0,B.jsx)("title",{children:e}),(0,B.jsx)("meta",{charSet:"utf-8"}),(0,B.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,B.jsx)("meta",{name:"description",content:(b||f)??""}),(0,B.jsx)("meta",{name:"keywords",content:m??""}),!E&&(0,B.jsx)("meta",{name:"title",content:v||e}),(0,B.jsx)("meta",{name:"theme-color",content:"#fff"}),(z||y||q)&&(0,B.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,B.jsx)("link",{rel:"canonical",href:J(x)}),V?.toLowerCase()?.split(",").map(e=>(0,B.jsx)("link",{rel:"alternate",hrefLang:e,href:J(e)},e)),(0,B.jsx)("link",{rel:"icon",href:Z,type:"image/x-icon"}),(0,B.jsx)("link",{rel:"manifest",href:`/sw/${j}/manifest.json`}),(0,B.jsx)("link",{rel:"apple-touch-icon",href:Z}),(0,B.jsx)(nE.i,{basePath:P,properties:{brand:k,areaServed:R,image:`${Z}`,logo:`${Z}`,telephone:L,address:{"@type":"PostalAddress",streetAddress:M,addressLocality:F,postalCode:$,addressCountry:U}}})]}),(0,B.jsx)(nt.B,{}),(0,B.jsx)(r9,{componentAnchors:C,hideHeaderOnScroll:w}),n,(0,B.jsx)(nb,{}),(0,B.jsx)(n_,{}),(0,B.jsx)("main",{className:(0,i.A)(u,nI().container,{[nI().containerPadding]:!g}
10),"data-testid":"layout-main",id:"main",tabIndex:-1,children:(0,B.jsx)("div",{className:(0,i.A)(nI().subContainer,{[nI().subContainerMaxWidth]:!g}),"data-testid":"layout-container",children:t})}),(0,B.jsx)(nO.h,{}),(0,B.jsx)(ne.R8,{showReinsurance:!0,localeVariants:_})]})),l]})}},21115:(e,t,r)=>{e.exports=r(64308)},21180:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},21475:e=>{e.exports={suggestedCardContainer:"new-suggested-product-card_suggestedCardContainer__KqQqO",productInfos:"new-suggested-product-card_productInfos__Xjheo",stockInfoContainer:"new-suggested-product-card_stockInfoContainer__dcMh4",variant:"new-suggested-product-card_variant__yTxHv",marketPlaceContainer:"new-suggested-product-card_marketPlaceContainer__bs3JM"}},21675:e=>{e.exports={title:"favorite-lists-drawer-content_title__FxeY9",subTitle:"favorite-lists-drawer-content_subTitle__GCFjM",productCard:"favorite-lists-drawer-content_productCard__CKUw9",link:"favorite-lists-drawer-content_link__FWeKG",listItem:"favorite-lists-drawer-content_listItem__t4N83"}},21709:(e,t,r)=>{var n=r(43319),a=r(44936),i=r(54555);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=i,e.exports=o},21794:e=>{e.exports={active:"switch-cart-action_active__gxKn3"}},22158:e=>{e.exports={root:"app-store_root__lt1_W"}},22691:e=>{e.exports={root:"error_root__bkEnb",header:"error_header__F9QPA",link:"error_link__ZD_Ta",container:"error_container__YwAdR",logo:"error_logo__lCxCt"}},22805:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var n=r(16178);function a(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,n.a)(e)))}},22927:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},22951:(e,t,r)=>{"use strict";r.d(t,{BB:()=>d,Cp:()=>o,JH:()=>s,MM:()=>p,WF:()=>a,dd:()=>h,dv:()=>u,lE:()=>f,m1:()=>l,o6:()=>i,q9:()=>c,y$:()=>n});let n=function(e){return e.PLP="plp",e.PDP="pdp",e.CART="cart",e.STOCK_LOCATOR="stockLocator",e.COMPARE="compare",e.SEARCH_SUGGESTIONS="searchSuggestions",e.PRODUCT_BANNER="productBanner",e}({}),a=function(e){return e.SRP="SRP",e.SEARCH_PDP="SEARCH PDP",e.SEARCH_PLP="SEARCH PLP",e.DIRECT_PDP="DIRECT PDP",e.DIRECT_PLP="DIRECT PLP",e.PROMOTION_PLP="PROMOTION PLP",e.WISHLIST="Wishlist",e.PROJECTS="Projects",e.ALREADY_PURCHASED="already_purchased",e.COMPARE_PAGE="Compare Page",e.SEARCH_BOX_SUGGESTION="SEARCH BOX SUGGESTION",e.CART="cart",e.CONFIRMATION="confirmation",e.STOCK_LOCATOR="stockLocator",e.PRODUCT_BANNER="productBanner",e.RELATED_PRODUCTS="RELATED_PRODUCTS",e.RECOMMENDED_PRODUCTS="RECOMMENDED_PRODUCTS",e.RECOMMENDED_PRODUCTS_MODAL="RECOMMENDED_PRODUCTS_MODAL",e.TABLE="TABLE",e}({}),i=function(e){return e.List="LIST",e.Grid="GRID",e.Table="TABLE",e}({}),o=function(e){return e.CATEGORY="category",e.KEYWORD="keyword",e}({}),s=function(e){return e.Promotion="PROMOTION",e.SpecialPriceAgreement="SPECIAL_PRICE_AGREEMENT",e.Standard="STANDARD",e.Project="PROJECT",e.MarketPlace="MARKETPLACE",e}({}),c=function(e){return e.CATEGORY="category",e.STOCKABLE_STORES="stockableStores",e.STOCK_INDICATOR="stockIndicator",e.STOCK_INDICATOR_A="stockIndicator_A",e.STOCK_INDICATOR_B="stockIndicator_B",e.STOCK_INDICATOR_C="stockIndicator_C",e.STOCK_INDICATOR_L="stockIndicator_L",e.BRAND="brand",e.SERIES="series",e.TAGS="tags",e.GREEN_RATING="greenRating",e.SONEPAR_ONLY="isMarketplace",e.SONEPAR="sonepar",e.MARKETPLACE_ALLOWED="marketPlaceAllowed",e.IS_CUTTABLE="isCuttable",e.SELLERNAMES="sellerNames",e.PAST_PURCHASE="past_purchase",e.ENVIRONMENTAL_DATA="environmental_data",e}({}),l=function(e){return e.PROMO_FAIL="UNQUALIFIED_PROMOTION",e.MAX_NUMBER_OF_ITEMS_REACHED="MAX_NUMBER_OF_ITEMS_REACHED",e.CACHED_PROMOTION_NOT_FOUND="CACHED_PROMOTION_NOT_FOUND",e.BULK_ADD_IN_PROGRESS="BULK_ADD_IN_PROGRESS",e.PRODUCT_NOT_FOUND="PRODUCT_NOT_FOUND",e.PRODUCT_BAD_QUANTITY="PRODUCT_BAD_QUANTITY",e.MAX_AVAILABLE_STOCK_QUANTITY_EXCEEDED="MAX_AVAILABLE_STOCK_QUANTITY_EXCEEDED",e}({}
10),u=function(e){return e.A="A",e.B="B",e.C="C",e.L="L",e}({}),d=function(e){return e.Y="year",e.M="month",e.W="week",e.D="day",e}({}),p=function(e){return e.DELIVERY="DELIVERY",e.MARKETPLACE="MARKETPLACE",e.PICKUP="PICK_UP",e.LIVESTOCK="LIVESTOCK",e}({}),h=function(e){return e.STOCK="STOCK",e.NO_STOCK="NO_STOCK",e.UNSTOCKED="UNSTOCKED",e.ON_DEMAND="ON_DEMAND",e.UNKNOWN="UNKNOWN",e}({}),f=function(e){return e.SHIPPING_COST="SHIPPING_COST",e.CUTTING_COST="CUTTING_COST",e}({})},23017:(e,t,r)=>{e.exports=r(1282)(r(16299),"Set")},23134:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,Fu:()=>o,L3:()=>b,MD:()=>C,SP:()=>d,T_:()=>u,UE:()=>v,Xh:()=>y,aX:()=>h,f5:()=>s,gG:()=>p,hS:()=>g,ih:()=>i,kL:()=>c,ki:()=>n,t1:()=>l,uk:()=>O,vV:()=>_,vZ:()=>f,xN:()=>m});let n=function(e){return e.AmazonLocker="AMAZON_LOCKER",e.Branch="BRANCH",e.Cdc="CDC",e.LocalLocker="LOCAL_LOCKER",e.NationalLocker="NATIONAL_LOCKER",e}({}),a=function(e){return e.CreationDate="CREATION_DATE",e.DueDate="DUE_DATE",e.InvoiceAge="INVOICE_AGE",e}({}),i=function(e){return e.Cancelled="CANCELLED",e.Effective="EFFECTIVE",e.Paid="PAID",e.PartiallyPaid="PARTIALLY_PAID",e.PartiallyRefunded="PARTIALLY_REFUNDED",e.PartiallyUsed="PARTIALLY_USED",e.Pending="PENDING",e.Processing="PROCESSING",e.Refunded="REFUNDED",e.Unused="UNUSED",e.Used="USED",e}({}),o=function(e){return e.Grm="GRM",e.Kgm="KGM",e.Kmt="KMT",e.Mtr="MTR",e}({}),s=function(e){return e.ApprovalRequired="APPROVAL_REQUIRED",e.Approved="APPROVED",e.BulkAddInProgress="BULK_ADD_IN_PROGRESS",e.InProgress="IN_PROGRESS",e.TransactionInProgress="TRANSACTION_IN_PROGRESS",e}({}),c=function(e){return e.A="A",e.B="B",e.C="C",e.L="L",e}({}),l=function(e){return e.Private="PRIVATE",e.Public="PUBLIC",e.VisibleForDescendants="VISIBLE_FOR_DESCENDANTS",e}({}),u=function(e){return e.Marketplace="MARKETPLACE",e.Opco="OPCO",e.Spark="SPARK",e}({}),d=function(e){return e.OfflineProduct="OFFLINE_PRODUCT",e.Product="PRODUCT",e.Promotion="PROMOTION",e}({}),p=function(e){return e.Delivery="DELIVERY",e.PickUp="PICK_UP",e}({}),h=function(e){return e.AccessTpaLoyalty="ACCESS_TPA_LOYALTY",e.All="ALL",e.ContributeCart="CONTRIBUTE_CART",e.EditCustomerRef="EDIT_CUSTOMER_REF",e.EditOrder="EDIT_ORDER",e.EditPublicList="EDIT_PUBLIC_LIST",e.ExportInvoice="EXPORT_INVOICE",e.ManageAddresses="MANAGE_ADDRESSES",e.ManageQuote="MANAGE_QUOTE",e.ManageUsers="MANAGE_USERS",e.PayInvoice="PAY_INVOICE",e.PlaceOrderWithoutValidation="PLACE_ORDER_WITHOUT_VALIDATION",e.ReleaseBlanketOrder="RELEASE_BLANKET_ORDER",e.ValidateCart="VALIDATE_CART",e.ViewBlanketOrder="VIEW_BLANKET_ORDER",e.ViewCreditInfo="VIEW_CREDIT_INFO",e.ViewGrossPrice="VIEW_GROSS_PRICE",e.ViewNetPrice="VIEW_NET_PRICE",e.ViewOrderList="VIEW_ORDER_LIST",e}({}),f=function(e){return e.Marketplace="MARKETPLACE",e.Project="PROJECT",e.SpecialPriceAgreement="SPECIAL_PRICE_AGREEMENT",e.Standard="STANDARD",e}({}),m=function(e){return e.GrossAndNetPrices="GROSS_AND_NET_PRICES",e.NoPrice="NO_PRICE",e.OnlyGrossPrice="ONLY_GROSS_PRICE",e.OnlyNetPrice="ONLY_NET_PRICE",e}({}),g=function(e){return e.Sonepar="SONEPAR",e.Supplier="SUPPLIER",e}({}),y=function(e){return e.BillTo="BILL_TO",e.SoldTo="SOLD_TO",e}({}),v=function(e){return e.Asc="ASC",e.Desc="DESC",e}({}),b=function(e){return e.All="ALL",e.None="NONE",e}({}),_=function(e){return e.Basic="BASIC",e.None="NONE",e.Rich="RICH",e}({}),O=function(e){return e.ActiveShipments="active_shipments",e.AwaitingApproval="awaiting_approval",e.FavoriteLists="favorite_lists",e.InvoiceCreditNote="invoice_credit_note",e.Quotes="quotes",e.ToBeDelivered="to_be_delivered",e}({}),C=function(e){return e.Large="LARGE",e}({})},23345:(e,t,r)=>{"use strict";r.d(t,{F:()=>U});var n=r(60004),a=r(59100),i=r(88088),o=r(69222),s=r(70163),c=r(62740),l=r(82726),u=r(35695),d=r(43207),p=r(7976),h=r(9923),f=r(17480),m=r(10468),g=r(22951),y=r(55537),v=r(86800),b=r(46291),_=r(31437),O=r(40882),C=r.n(O),E=r(60072);let w=({productTitle:e,productImage:t,unit:r,className:n})=>(0,E.jsxs)("div",{"data-testid":"product-summary",className:(0,u.A)(C().root,n),children:[(0,E.jsx)(v._,{width:56,height:56,onError:b.lG,className:C().image,src:t||_.Yy,alt:e,"aria-label":e,"data-testid":"product-summary-image"}),(0,E.jsxs)("div",{children:[(0,E.jsx)(a.D,{as:"h3",weight:"regular","data-testid":"product-summary-title",children:e}),!!r?.length&&(0,E.jsx)(i.E,{size:"body-1",weight:"light","data-testid":"product-summary-subtitle",children:r})]})]});var P=r(45062),I=r(10983),x=r(2117),S=r(85582),T=r(45927),N=r(23458),A=r(86263),j=r(23719),k=r(52322),D=r(82979),R=r
10(39931),L=r(18128),M=r.n(L);let F=({isSelected:e,store:t,productId:r,stockIndicator:n,stockDeliveryIndicator:a,dataTestId:o,hasPadding:s=!1,hideStoreInfoCta:c,isActive:p,focusRef:h})=>{let[m]=(0,d.B)(),{closeStockLocatorDrawer:v,setSelectStorePanelProps:b,openStockLocatorConfirmationDrawer:_,isOpen:O}=(0,R.jj)(),{sendClickStoreLocatorCtaGtmTag:C,sendClickShopInThisStoreCtaGtmTag:w}=(0,x.PB)(),{locale:L}=(0,I.useRouter)(),{facility:F,selectCtaLabel:$}=(0,T.k)(t),{facilityId:B,name:U}=F,{stockInfo:V,stockLocatorPanelHandler:q}=(0,f.JU)(r),{isMarketPlaceProduct:G}=(0,f.ad)(r),z={stocksInfo:a?.deliveryIndicator?.deliveryIndicators?.[0],stockIndicator:n,stockType:g.MM.PICKUP,currentTime:a?.currentTime},H=(0,j._l)(z,L);return(0,E.jsxs)("div",{className:M().container,"data-testid":`${o}-container`,children:[s&&(0,E.jsx)("div",{className:(0,u.A)(M().padding,p&&M().active)}),(0,E.jsxs)("div",{className:(0,u.A)(M().root,p&&M().active),"data-testid":o,children:[(0,E.jsxs)("div",{className:M().storeNameContainer,children:[e&&(0,E.jsx)(P.v,{size:"s","data-testid":"stock-locator-card-is-selected",children:m("header.storesDrawer.selectedStore")}),(0,E.jsx)(i.E,{"data-testid":"store-name",children:F?.name&&(0,k.Wk)(F?.name,45)})]}),(0,E.jsx)("div",{className:M().stockIndicator,children:(0,E.jsx)(N.n,{store:t,stockError:!!V?.error,stockData:H,stockType:g.MM.PICKUP,link:q,hideBranchLink:!0,isMarketplaceItem:G,isStockLocatorContext:!0})}),(0,E.jsxs)("div",{className:M().storeLinks,children:[!c&&(0,E.jsx)(A.w,{app:y.b.content.app,"data-testid":"store-infos",href:(0,D.vP)(F),onClick:()=>{C({ctaType:S.EC.INFORMATION}),v()},variant:"underlined","data-cs-capture":!0,ref:h,children:m("store.seeDetails")}),!e&&(0,E.jsx)(l.$,{"data-testid":`shop-in-this-store-${F?.facilityId}`,onClick:()=>{w(),b({facilityId:B,facilityName:U}),O||_()},variant:"underlined","data-cs-capture":!0,children:m($)})]})]}),s&&(0,E.jsx)("div",{className:(0,u.A)(M().padding,p&&M().active)})]})};var $=r(8618),B=r.n($);let U=({productIdentifier:e,productId:t,stockIndicator:r,productImageUrl:v,unit:b,isDrawer:_=!1,isFullHeight:O=!1,centerMarker:C,getCurrentPosition:P,setActiveStore:I,defaultStore:x,stores:S,deliveryIndicators:T,nextResultSetCount:N,currentPage:A,isStockAvailableOnly:j,loading:k,setCurrentPage:D,getStoreStock:R,handleSearchAddress:L,setIsStockAvailableOnly:M})=>{let $=(0,n.useRef)(null),{isFlagEnabled:U}=(0,p.h)(),{locales_country:V}=(0,p.rD)(),[q]=(0,d.B)(),{0:G,1:z}=(0,n.useState)(0),H=e?e?.brandName+" "+e?.productTitle:"",W=e?.productTitle||"";return(0,n.useEffect)(()=>{0!==A&&$?.current?.focus()},[]),(0,E.jsx)("div",{className:(0,u.A)(O?B().fullHeight:!_&&B().sideBox),children:(0,E.jsxs)("div",{className:B().root,children:[(0,E.jsxs)("div",{className:_?B().heading:B().headingInMap,children:[_?(0,E.jsx)(a.D,{size:"body-5",weight:"regular","data-testid":"titleStore-panel",children:q("catalog.stockLocator.heading")}):(0,E.jsxs)("div",{className:B().titleInMap,children:[(0,E.jsx)(a.D,{size:"body-5","data-testid":"title","data-cs-capture":!0,children:q("stockLocator.title")}),(0,E.jsx)(i.E,{as:"span",color:"subtle",size:"body-2",children:q("stockLocator.subtitle")})]}),(0,E.jsx)(w,{productTitle:_?H:W,productImage:v,unit:b}),U(m.G6)&&_&&(0,E.jsxs)("div",{className:B().listHeading,children:[(0,E.jsx)(a.D,{as:"h3",size:"body-3",children:q("catalog.stockLocator.listHeading")}),(0,E.jsx)(o.N,{href:y.b.content.stockLocator(t),icon:"map",variant:"tertiary",children:q("catalog.stockLocator.openMap")})]}),(0,E.jsx)(h.R,{onItemClick:L,localesCountry:V,getCurrentPosition:P}),U(m.G6)&&(0,E.jsx)(s.l,{label:q("stockLocator.filter.label"),checked:j,onChange:()=>{M(!j),I?.(null),C?.({lat:x?.data?.location?.latitude,lng:x?.data?.location?.longitude})},"data-testid":"toggle-stock-available"})]}),(0,E.jsx)(f.Mg,{productDocList:[{productId:t}],productViewPage:g.WF.STOCK_LOCATOR,children:(0,E.jsx)("div",{children:k?(0,E.jsx)(c.y,{size:"l","data-testid":"stock-locator-spinner",className:(0,u.A)(!_&&B().spinner)}):(0,E.jsxs)(E.Fragment,{children:[x?.show&&x?.data&&(0,E.jsx)(F,{isSelected:!0,productId:t,store:x?.data,stockDeliveryIndicator:R(x?.data?.facilityId,T),hasPadding:!_,dataTestId:"default-store"}),S?.filter(e=>x?.data?.facilityId!==e.facilityId)?.map((e,n)=>e?.openingHours&&(0,E.jsx)(F,{productId:t,store:e,stockDeliveryIndicator:R(e?.facilityId,T),stockIndicator:r,dataTestId:"stock-locator-card",hasPadding:!_,focu
10sRef:n===G?$:null},`${e?.facilityId}-${t}`))]})})}),S?.length===0&&!k&&(0,E.jsx)("div",{className:B().message,children:j?(0,E.jsx)(i.E,{size:"body-2",children:q("stockLocator.filter.noResult")}):(0,E.jsx)(i.E,{size:"body-2",children:q("stockLocator.noResult")})}),N>0&&!k&&(0,E.jsx)(l.$,{className:B().button,variant:"secondary",onClick:()=>{D(A+1),S&&z(S?.length)},"data-testid":`show-more-${q("header.storesDrawer.resourceType")}`,children:q("common.showMore",{resourceLeft:N,resourceType:q("header.storesDrawer.resourceType")})})]})})}},23392:e=>{e.exports={actionLinkWrapper:"action-link_actionLinkWrapper___c7kv",brandedHeader:"action-link_brandedHeader__Tym0l",containerIcon:"action-link_containerIcon__XW4uG",fullyDisabled:"action-link_fullyDisabled__lWt71",actionLink:"action-link_actionLink__BZ0WP",hasSeparator:"action-link_hasSeparator__qL_GW",container:"action-link_container__xhnum",newContainer:"action-link_newContainer__0RZls",brandedHeaderIcon:"action-link_brandedHeaderIcon__08b9d",chip:"action-link_chip__wjYTO",containerText:"action-link_containerText__4g8ON",newContainerText:"action-link_newContainerText__4RC5w",containerTextMobileVisible:"action-link_containerTextMobileVisible__oZtlX",disableHover:"action-link_disableHover___NzGk",underlinePrimary:"action-link_underlinePrimary__ToXS1",disabled:"action-link_disabled__8m8U9",active:"action-link_active__mX7QE",switchIconContainer:"action-link_switchIconContainer___v9pF",switchIcon:"action-link_switchIcon__UlSaI",brandedSwitchIcon:"action-link_brandedSwitchIcon__XeRXu",verticalSeparator:"action-link_verticalSeparator__r7NLC"}},23458:(e,t,r)=>{"use strict";r.d(t,{n:()=>j});var n=r(60004),a=r(43207),i=r(68915),o=r(7976),s=r(50925),c=r(80424),l=r(22951),u=r(82979),d=r(31437),p=r(35880),h=r(12028),f=r(35695),m=r(27485),g=r.n(m),y=r(88088),v=r(45062),b=r(82726),_=r(75132),O=r(92909),C=r.n(O),E=r(60072);let w={[l.MM.PICKUP]:"catalog.stockIndicator.pickup",[l.MM.DELIVERY]:"catalog.stockIndicator.delivery"},P=({additionalClassName:e})=>{let[t]=(0,a.B)();return(0,E.jsxs)(y.E,{size:"body-2","data-testid":"label-for-locker-only",weight:"regular",className:(0,f.A)(C().lockerOnlyText,e),children:[t("catalog.stock.orderBeforePickup")," "]})},I=({stockQuantity:e,hasStockQuantity:t,dataTestId:r})=>(0,E.jsx)(v.v,{variant:t?"success":"error","data-testid":`${r}.stock-quantity-chip`,children:e}),x=({stockQuantity:e,isTableView:t=!1,dataTestId:r})=>(0,E.jsx)(y.E,{as:"span",size:"body-2",color:"default",weight:"bold",className:(0,f.A)({[C().dot]:void 0!==e}),"data-testid":`${r}.stock-quantity-dot`,children:t&&void 0===e&&"-"}),S=({label:e,secondStockAvailable:t=!1,stockQuantityLabelClassName:r,parentStyle:n,isSmallCard:a=!1,dataTestId:i})=>(0,E.jsx)(y.E,{size:"body-2","data-testid":`${i}.stock-label`,as:"p",weight:"regular",className:(0,f.A)(C().stockInfo,n?.stockInfo,r,a&&C().stockInfoSmall),title:t?e:void 0,children:e}),T=({link:e,parentStyle:t,unmaskBranchLink:r=!1,dataTestId:n})=>{let[i]=(0,a.B)();return(0,E.jsx)(b.$,{className:(0,f.A)(C().availabilityLink,t?.link),"data-testid":`${n}.link`,onClick:e.onClick,variant:"underlined","aria-label":i("catalog.search.availabilityLabel"),children:(0,E.jsx)("p",{className:t?.linkText,"data-cs-mask":!r,children:i("catalog.stock.availabilityLabel")})})},N=({stockQuantityRepresentation:e,"data-testid":t="stock-indicator",stock:r,hasError:i=!1,stockQuantityLabelClassName:o,link:s,hideAvailibilityDate:c,hideBranchLink:l,stockTextContainerGridClassName:u,parentStyle:d,isSmallCard:p,isTableView:h,secondStockAvailable:m=!1,unmaskBranchLink:g,hasLockerOnlyStatus:y,isStockLocatorContext:v=!1,isLockerOnly:b=!1})=>{let[O]=(0,a.B)(),N=r.quantity,A=void 0!==N&&N>0,j=e===_.D.DOT||i,k=v&&b,D=(0,n.useMemo)(()=>{if(!r.type)return null;let e=w[r.type];return e?O(e):null},[r.type,O]);return(0,E.jsxs)("div",{className:C().wrapper,children:[D&&(0,E.jsx)("span",{className:"sr-only",children:D}),!j&&!k&&(y?(0,E.jsx)(P,{}):(0,E.jsx)(I,{stockQuantity:N,hasStockQuantity:A,dataTestId:t})),j&&(0,E.jsx)(x,{stockQuantity:N,isTableView:h,dataTestId:t}),(0,E.jsxs)("div",{className:(0,f.A)(u,C().stockInfoContainer),children:[!c&&!y&&(k?(0,E.jsx)(P,{additionalClassName:C().availabilityLink}):(0,E.jsx)(S,{label:r.label,secondStockAvailable:m,stockQuantityLabelClassName:o,parentStyle:d,isSmallCard:p,dataTestId:t})),s&&!l&&(0,E.jsx)(T,{link:s,parentStyle:d,unmaskBranchLink:g,dataTestId:t})]})]})},A=(0,n.memo)(({stockQuantityLabelClassName:e,"data-testid":t="stock-indicator",error:r=!1,icon:n,isLoading:a=!1,link:i,secondStock:o,stock:s,hideAvailibilityDate:c,hideBranchLink:l,parentStyle:u,isTableView:d,isSmallCard:m,isDarkIcon:y,unmaskBranchLink:v,hasLockerOnlyStatus:b,isStockLocatorContext:_,isLockerOnly:O})=>a?(0,E.jsx)(p.E,{width:160,height:24,"data-testid":"loading-skeleton"}):(0,E.jsxs)("div",{className:(0,f.A)(g().container,{[g().emptyIcon]:!n},m&&g().containerSmall),"data-testid":t,children:[n&&(0,E.jsx)(h.I,{icon:n,className:(0,f.A)({[g().icon]:!y}),"data-testid":`icon-${n}`}),(0,E.jsxs)("div",{className:(0,f.A)(g().stockContainer,o&&g().multipleStocksContainer),children:[(0,E.jsx)(N,{stockQuantityRepresentation:s.representation,stockQuantityLabelClassName:e,"data-testid":t,stock:s,hasError:r,link:i,hideAvailibilityDate:c,hideBranchLink:l,stockTextContainerGridClassName:u?.stockTextContainerGridClassName,parentStyle:u,isSmallCard:m,isTableView:d,hasLockerOnlyStatus:b,isStockLocatorContext:_,isLockerOnly:O}),o&&(0,E.jsx)(N,{stockQuantityRepresentation:o.representation,stockQuantityLabelClassName:e,"data-testid":`${t}.second`,stock:o,secondStockAvailable:!0,stockTextContainerGridClassName:u?.secondStockTextContainerGridClassName,parentStyle:u,isSmallCard:m,unmaskBranchLink:v})]})]})),j=(0,n.memo)(({stockQuantityLabelClassName:e,stockData:t,stockType:r,stockError:p,stockLoading:h=!1,store:f,link:m,showOrderBefore:g=!1,isExtendedDeliveryOnly:y=!1,hideExtendedDelivery:v=!1,hideBranchLink:b=!1,hideAvailabilityDate:O=!1,isMarketplaceItem:C,parentStyle:w,isSmallCard:P,isTableView:I=!1,isDarkIcon:x=!1,unmaskBranchLink:S,hasLockerOnlyStatus:T=!1,isGuestUser:N,isStockLocatorContext:j=!1,isPDP:k=!1,"data-testid":D})=>{let{store:R}=(0,i.Z2)(),[L]=(0,a.B)(),{isFlagEnabled:M}=(0,o.h)(),{isLockerOnly:F,isStoreAndLocker:$}
10=(0,u.G4)(f??R),{displayDeliveryPromise:B,displayMultiCdcPromiseLabel:U,useSimplifiedPlpLabels:V}=s.u.getActiveFeatureFlagConfig(M,d.vJ,d.Mg,k,d.ac),q=c.c.getIcon(r,y,$,F,T,j),G=(0,n.useMemo)(()=>{let e=c.c.getQuantityRepresentation(t?.stockVariation,y,t?.extendedDelivery?.quantity);return c.c.buildStockObject({stockData:t,stockType:r,useExtendedDelivery:y,representation:e,isSecondStock:!1,showOrderBefore:g,displayDeliveryPromise:B,displayMultiCdcPromiseLabel:U,stockError:p,isMarketplaceItem:C,t:L,isSimplifiedPlpLabelEnabled:V,isPDP:k})},[t,r,y,g,B,U,p,C,L,V,k]),z=(0,n.useMemo)(()=>{let e=s.u.shouldHideExtendedDelivery(v,N);if(r===l.MM.DELIVERY&&t?.extendedDelivery&&!y&&!e)return c.c.buildStockObject({stockData:t,stockType:r,useExtendedDelivery:!0,representation:_.D.CHIP,isSecondStock:!0,displayDeliveryPromise:B,displayMultiCdcPromiseLabel:U,stockError:p,t:L,isSimplifiedPlpLabelEnabled:V,isPDP:k})},[r,t,y,v,N,B,U,p,L,V,k]),H=t?.stockVariation===l.dd.UNKNOWN||p;return r===l.MM.DELIVERY&&F||r===l.MM.DELIVERY&&y&&!t?.extendedDelivery?null:(0,E.jsx)(A,{error:H,isLoading:h,icon:q,link:m,secondStock:z,stock:G,stockQuantityLabelClassName:e,hideAvailibilityDate:O,hideBranchLink:b,parentStyle:w,isSmallCard:P,isDarkIcon:x,isTableView:I,unmaskBranchLink:S,hasLockerOnlyStatus:T,isStockLocatorContext:j,isLockerOnly:F,"data-testid":D})})},23619:(e,t,r)=>{"use strict";var n=r(64443);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let o=r(75355)._(r(60004)),s=r(68401),c=[],l=[],u=!1;function d(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=i(i({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function a(){if(!n){let t=new p(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!u){let e=r.webpack&&1?r.webpack():r.modules;e&&l.push(t=>{for(let r of e)if(t.includes(r))return a()})}function i(e,t){a();let i=o.default.useContext(s.LoadableContext);i&&Array.isArray(r.modules)&&r.modules.forEach(e=>{i(e)});let c=o.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),o.default.useMemo(()=>{var t;return c.loading||c.error?o.default.createElement(r.loading,{isLoading:c.loading,pastDelay:c.pastDelay,timedOut:c.timedOut,error:c.error,retry:n.retry}):c.loaded?o.default.createElement((t=c.loaded)&&t.default?t.default:t,e):null},[e,c])}return i.preload=()=>a(),i.displayName="LoadableComponent",o.default.forwardRef(i)}(d,e)}function f(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>
10{if(e.length)return f(e,t)})}h.preloadAll=()=>new Promise((e,t)=>{f(c).then(e,t)}),h.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(u=!0,t());f(l,e).then(r,r)})),window.__NEXT_PRELOADREADY=h.preloadReady;let m=h},23620:e=>{e.exports={cart:"cart-action-container_cart__XdvIG",enableBorder:"cart-action-container_enableBorder__GEda3",disabled:"cart-action-container_disabled__PGm7P",divider:"cart-action-container_divider__zXada",switch:"cart-action-container_switch__R0d8v"}},23719:(e,t,r)=>{"use strict";r.d(t,{Z5:()=>_,Kk:()=>P,_l:()=>C,Nr:()=>O,kE:()=>w,UV:()=>E,jI:()=>b,Y0:()=>y,C3:()=>v,s1:()=>I});var n=r(12072),a=r(51859),i=r(5744);function o(e){return(0,i.w)(e,Date.now())}var s=r(14872),c=r(19394);function l(e,t,r){let[n,a]=(0,s.x)(r?.in,e,t);return+(0,c.o)(n)==+(0,c.o)(a)}var u=r(16425),d=r(23134),p=r(22951),h=r(27254);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let g=e=>{let t=e.slice(-1);return{unit:p.BB[t],value:Number.parseInt(e.slice(1,-1))}},y=e=>!!e&&Object.values(d.kL).includes(e),v=(e,t=p.MM.DELIVERY)=>(e=>e===p.MM.DELIVERY||e===p.MM.PICKUP)(e)?e:t,b=(e,t)=>{let r=t?.deliveryIndicator;if(!r||!y(e))return!1;let n=(r.deliveryIndicators?.[0]?.delivery?.quantity||0)+(r.deliveryIndicators?.[0]?.pickup?.quantity||0);return!!(e===d.kL.L&&!n)},_=(e,t)=>{let r=g(e.min),n=g(e.max),a=r.unit===n.unit,i=r.value===n.value;return a&&i?`${t("catalog.delivery.availableWithin")} ${r.value} ${t("common."+r.unit,{count:r.value})}`:a?`${t("catalog.delivery.availableWithin")} ${r.value}-${n.value} ${t("common."+r.unit,{count:r.value})}`:`${t("catalog.delivery.availableWithin")} ${r.value} ${t("common."+r.unit,{count:r.value})} - ${n.value} ${t("common."+n.unit,{count:n.value})}`},O=(e,t,r)=>{if(!e)return null;let n=(0,a.H)(e),s=t?(e=>{let t=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/);if(!t)return new Date(e);let[,r,n,a,i,o,s]=t;return new Date(+r,n-1,+a,+i,+o,+s)})(t):null;return!function(e,t){return l((0,i.w)(e,e),o(e))}(n)?!function(e,t){return l(e,(0,u.f)(o(e),1),void 0)}(n)?{date:n.toLocaleDateString(r,{month:"numeric",day:"numeric"})}:m({date:"catalog.deliveryPromise.tomorrow"},s&&{orderBefore:{value:s.toLocaleTimeString(r,{hour:"2-digit",minute:"2-digit"}),label:"cart.logistics.cutoff"}}):m({date:"catalog.deliveryPromise.today"},s&&{orderBefore:{value:s.toLocaleTimeString(r,{hour:"2-digit",minute:"2-digit"}),label:"common.until"}})},C=(e,t)=>{let r,n,a,i=e.stocksInfo,o=e.stockType===p.MM.DELIVERY?"delivery":"pickup",s=h.f.extractProductQuantity(i,o),c=h.f.extractPrediction(i,o),l=c?.date!==void 0&&c?.date!==null,u=h.f.calculateStockVariation(e.stockIndicator,l,s);if(null===c)a=void 0;else if(c?.hasDeliveryRange)r=c.date,a=!0;else if(a=!1,c?.date&&"string"==typeof c.date){let e=O(c.date,c.orderBefore?.value||"",t);r=e?.date,n=e?.orderBefore}return m({stockVariation:u,date:r,hasDeliveryRange:a,orderBefore:n,quantity:s},h.f.shouldIncludeExtendedDelivery(i)&&i?.extendedDeliveryInformation&&{extendedDelivery:{date:i.extendedDeliveryInformation.deliveryPromiseRange,quantity:i.extendedDeliveryInformation.quantity}})},E=(e,t)=>{let r=t?.deliveryIndicator?.deliveryIndicators?.find(t=>t?.productId===e),n=(r?.delivery?.quantity||0)+(r?.extendedDeliveryInformation?.quantity||0)+(r?.pickup?.quantity||0);return!!r&&0!==n},w=({productId:e,stockIndicator:t,stocks:r,step:n,logisticMethod:a})=>{if(!a||t!==p.dv.L)return;let i=r?.deliveryIndicator?.deliveryIndicators?.find(t=>t?.productId===e),o=a===d.gG.PickUp?i?.pickup?.quantity||0:(i?.delivery?.quantity||0)+(i?.extendedDeliveryInformation?.quantity||0);return n&&o%n!=0?o-o%n:o},P=(e,t,r)=>{let n=h.f.extractPrediction(e,"delivery"),a=h.f.extractPrediction(e,"pickup"),i=n?.date&&"string"==typeof n.date?r(n.date,n.orderBefore?.value||"",t):null,o=a?.date&&"string"==typeof a.date?r(a.date,a.orderBefore?.value||"",t):null;return{deliveryRawPrediction:n,pickupRawPrediction:a,deliveryPrediction:i,pickupPrediction:o}},I=(e,t,r)=>{if(!t||!e)return e;let n=e.marketplaceDeliveryInformation?.find(e=>e.offerId===t);return m(m({},e),{},{delivery:n?m(m(m({},e.delivery),n),{},{inboundDeliveryDate:e.delivery?.inboundDeliveryDate}):void 0,pickup:{quantity:0,availabilityDate:r,unitOfMeasure:""}})}},23822:(e,t,r)=>{"use strict";function n(){}r.d(t,{C:()=>a});class a{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},24120:(e,t,r)=>
10{console.warn(' \x1b[33m\x1b[1m⚠\x1b[22m\x1b[39m Runtime config is deprecated and will be removed in Next.js 16. Please remove the usage of "next/config" from your project.'),e.exports=r(71099)},24216:e=>{e.exports={formTitle:"create-favorite-list-form_formTitle__NU4bz"}},24749:e=>{e.exports={actions:"logged-off-action-container_actions__tkWAq",actionsAlwaysVisible:"logged-off-action-container_actionsAlwaysVisible__mUDv9",signup:"logged-off-action-container_signup__cPMOm",login:"logged-off-action-container_login__hKTJG",loginText:"logged-off-action-container_loginText__UjHVv","actions--scrolledDown":"logged-off-action-container_actions--scrolledDown__E_uGI",mobileHeaderCart:"logged-off-action-container_mobileHeaderCart__pS9jt"}},24842:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});var n=r(60004),a=r(85582),i=r(2117),o=r(22951);let s=({product:e,priceData:t,stocks:r,viewType:s,pickupFacilityId:c,deliveryFacilityId:l,productViewPage:u,pageType:d,pageSubtype:p})=>{let h=(0,i.PB)(),f=h?.sendDeliveryPromiseGtmTag,{pageType:m,pageSubtype:g}=(e=>{switch(e){case o.WF.DIRECT_PDP:return{pageType:a.g$.CATALOG,pageSubtype:a.Cm.PDP};case o.WF.SEARCH_PLP:case o.WF.SRP:return{pageType:a.g$.SEARCH,pageSubtype:a.Cm.PLP};case o.WF.DIRECT_PLP:case o.WF.PROMOTION_PLP:default:return{pageType:a.g$.CATALOG,pageSubtype:a.Cm.PLP}}})(u),y=d??m,v=p??g;return{sendDeliveryPromise:(0,n.useCallback)((n,a,i)=>{e&&f?.({event:n,product:e,priceData:t,deliveryIndicator:r,ctaType:a,page_type_1:y,page_type_2:v,viewType:s??"grid",deliveryPromiseData:i,pickupFacilityId:c,deliveryFacilityId:l})},[f,e,t,r,s,y,v,c,l])}}},24874:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});var n=r(60004),a=({keys:e,onKeyDown:t,shouldTriggerKeyDown:r=!0,ref:a})=>{let i=(0,n.useCallback)(r=>{e.includes(r.key)&&t(r)},[t,e]);(0,n.useEffect)(()=>{let e;if(e="function"!=typeof a&&a?.current?a.current:document,r)return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}},[t,i,e,r,a])}},24901:e=>{e.exports={modalContent:"modal-content_modalContent__i3nx7",scrollableContent:"modal-content_scrollableContent__Ec4tP"}},24903:(e,t,r)=>{"use strict";r.d(t,{f:()=>l});var n=r(12072),a=r(10983),i=r(7976),o=r(76162);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l=()=>{let e=(0,a.useRouter)()?.locale,t=(0,i.rD)(),r=((e,t)=>({pattern:e?.[`i18n_${t?.toLowerCase()}_priceFormat_pattern`],thousandSeparator:e?.[`i18n_${t?.toLowerCase()}_priceFormat_thousandSeparator`]}))(t,e),n=((e,t)=>e&&t?Object.entries(e).filter(([e])=>e.includes(`i18n_${t.toLowerCase()}_priceFormat_currencySymbol`)).reduce((e,[t,r])=>(e[t.split("_").pop()||t]=r,e),{}):{})(t,e);return{formatPrice:t=>{let{price:a,quantity:i=1,contentUnit:s,trailingDecimals:l,isSymbolHidden:u=!1}=t||{},{amount:d,currency:p,scale:h}=a||{},f=n?.[p]||((e,t="en")=>{if(!e)return null;try{return new Intl.NumberFormat(t,{style:"currency",currency:e}).formatToParts(0).find(e=>"currency"===e.type)?.value||e}catch{return console.error(`Failed to convert '${e}' to currency symbol.`),e}})(p,e)||p,m=c(c({},r),{},{symbol:f||p}),g=parseFloat((0,o.Ru)(i*(d??0),h??0)??"0"),y=(e=>{let{symbol:t,pattern:r,thousandSeparator:n}=e||{};return!!(r?.length>0&&t&&t?.length>0&&(n||""===n))})(m)?((e,t,r=2,n=!1)=>{let{symbol:a,pattern:i,thousandSeparator:o}=t||{};if(!a||!i||!o)return null;let[s,c]=Math.abs(e).toString().split(".");s||(s="0");let l="";for(let e=s.length-1,t=0;e>=0;e--,t++)t>0&&t%3==0&&(l=o+l),l=s[e]+l;c||(c="");let u=c?.length||0;u<r&&(c+="0".repeat(r-u));let d=e<0?`-${l}`:l;return i.replace("SYM",n?"":a).replace("WHOLE",d).replace("DEC",c||"")})(g,m,l,u):new Intl.NumberFormat(e,{style:u?"decimal":"currency",currency:p||"EUR"}).format(g);return(s&&s?.length>0?`${y}/${s}`:y)?.trim()}}}},25021:(e,t,r)=>{"use strict";r.d(t,{h:()=>o}),r(60004);var n=r(90823),a=r.n(n),i=r(60072);let o=()=>(0,i.jsxs)("div",{className:a().bottomRight,children:[(0,i.jsx)("div",{id:"satisfaction-survey-cta-portal","data-testid":"satisfaction-survey-cta-portal"}),(0,i.jsx)("div",{id:"scroll-to-top-button-portal","data-testid":"scroll-to-top-button-portal"})]})},25466:(e,t,r)=>{var n=r(51559),a=r(66078),i=r(53283),o=r(84418),s=1/0,c=n?n.prototype:void 0,l=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(o(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},25477:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});let n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a=(e,t,r,a)=>n[e]},25561:(e,t,r)=>{"use strict";r.d(t,{dl:()=>O,mf:()=>I,o7:()=>C});var n=r(12072);r(60004);var a=r(52304),i=r(59100),o=r(45062),s=r(88088),c=r(7764),l=r(35695),u=r(40187),d=r(52238),p=r(86263),h=r(46291),f=r(31437),m=r(52372),g=r(46942),y=r(78395),v=r.n(y),b=r(60072);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let O=function(e){return e.CHECKOUT="CHECKOUT",e.CREATE_QUOTE="CREATE_QUOTE",e.ORDER_DETAIL="ORDER_DETAIL",e.ADD_TO_FAVORITE="ADD_TO_FAVORITE",e}({}),C=function(e){return e.ERROR="ERROR",e.WARNING="WARNING",e.DEFAULT="DEFAULT",e}({}),E={[O.CHECKOUT]:v().checkout,[O.ORDER_DETAIL]:v().orderDetail,[O.CREATE_QUOTE]:v().createQuote,[O.ADD_TO_FAVORITE]:v().addToFavorite},w={[C.ERROR]:"error",[C.WARNING]:"warning",[C.DEFAULT]:void 0},P={[C.ERROR]:"error",[C.WARNING]:"warning",[C.DEFAULT]:"secondary"},I=({productTitle:e,variation:t,href:r,status:y,references:I,priceData:x,productImage:S,message:T,quantity:N,className:A,unit:j})=>{let k=(0,d.$)("catalog",r);return(0,b.jsxs)("div",{className:(0,l.A)(v().root,A,E[t]),children:[(0,b.jsx)(p.w,{forceRefresh:!0,href:r?k:void 0,variant:r?"standalone-regular":"unstyled",rounded:!0,children:(0,b.jsx)(a._,{width:48,height:48,onError:h.lG,className:v().image,src:S||f.Yy,alt:e})}),(0,b.jsxs)("div",{className:v().description,children:[(0,b.jsx)(i.D,{className:(0,l.A)(v().title,"spark-ellipsis-2"),size:"body-2",as:"h2",weight:"regular",children:e}),![O.CHECKOUT,O.ADD_TO_FAVORITE].includes(t)&&(0,b.jsx)(m.t,{references:I}),t!==O.ADD_TO_FAVORITE&&(0,b.jsxs)("div",{className:v().priceQtyContainer,children:[t!==O.CHECKOUT&&(0,b.jsx)(g.x,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?_(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},x)),t===O.CHECKOUT&&(0,b.jsx)(u.l,{productId:x?.productId,quantitySteps:x?.quantitySteps,contentUnit:x?.contentUnit,currency:x?.price.priceByStep.currency,scale:x?.price.priceByStep.scale,amount:x?.price.priceByStep.amount,displaySize:x?.displaySize}),N&&(0,b.jsx)(o.v,{variant:P[y],children:N})]}),t===O.ADD_TO_FAVORITE&&j&&(0,b.jsx)(s.E,{size:"body-1",color:"subtle",children:j})]}),T&&t===O.ORDER_DETAIL&&y!==C.DEFAULT&&(0,b.jsx)("div",{className:v().messageContainer,children:(0,b.jsx)(c.Q,{description:T,variant:"light",status:w[y],size:"s"})})]})}},25568:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let n=function(e){return e.OneByOne="1x1",e.TwoByOne="2x1",e.ThreeByOne="3x1",e.ThreeByFour="3x4",e.FourByThree="4x3",e.SevenByTwo="7x2",e.SixteenByNine="16x9",e.TwentyByThirteen="20x13",e}({})},26074:(e,t,r)=>{"use strict";r.d(t,{AR:()=>g,Cg:()=>y,Dl:()=>I,EM:()=>_,FZ:()=>b,Fy:()=>m,Gj:()=>x,N1:()=>f,N7:()=>v,Ru:()=>S,Yt:()=>E,cT:()=>P,wM:()=>w});var n=r(12072),a=r(27245),i=r(23134),o=r(23719),s=r(22951),c=r(31437),l=r(52322),u=r(11594),d=r(85582);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let f=e=>{if(e===d.Zc.CONFIGURATOR||e===d.Zc.ECOMMERCE_CONNECTOR)return e},m=(e,t)=>e&&t?`${e}-${t}`:void console.error("[GTM] formatConnectorType: connectorType and connectorSupplier are required"),g=()=>{try{let e=localStorage.getItem(c.rS.CONNECTOR_TYPE_MAP);return e?JSON.parse(e):{}}catch{return{}}},y=e=>e?.followupProducts&&Array.isArray(e.followupProducts)&&e.followupProducts.length>0,v=(e,t=!1)=>{let r,n=[];if((0,d.h4)(e)||e?.productCategoriesInfo){let t=e?.productCategoriesInfo?.parents,a=e?.productCategoriesInfo?.id;r=[...t?.map(e=>e?.title)||[],e?.productCategoriesInfo?.title].join("|"),n=[...t?.map(e=>e.id)||[],a]}else e?.categorisation?.[0]?n=[e.categorisation[0]]:Array.isArray(e)&&(n=e.map(e=>e.id),r=e.map(e=>e.title).join("|"));return{[t?"item_category":"category_1"]:n[0]||d.vN.NONE,[t?"item_category2":"category_2"]:n[1]||d.vN.NONE,[t?"item_category3":"category_3"]:n[2]||d.vN.NONE,[t?"item_category4":"category_4"]:n[3]||d.vN.NONE,[t?"item_category5":"category_5"]:n[4]||d.vN.NONE,[t?"item_category_label":"category_label"]:r||d.vN.NONE}},b=(e,t,r,n)=>{let a=e?.stockData?.deliveryIndicator?.deliveryIndicators?.find(({productId:t})=>t===e.pid||t===e.productId),i=(a?.delivery?.quantity||0)+(a?.pickup?.quantity||0),o=(n??g())[e?.pid??e?.productId];return h(h(h({item_list_id:e?.listId||d.vN.NONE,item_list_name:e?.listName||d.vN.NONE,item_id:e?.pid||d.vN.NONE,item_name:e?.title||d.vN.NONE,item_brand:e?.brand||d.vN.NONE},v(e,!0)),{},{price:S(e?.price?.productPrices?.[0]?.netPrice?.amount,e?.price?.productPrices?.[0]?.netPrice?.scale)??d.vN.NONE,index:t||d.vN.NONE,stock:a?0!==i:d.vN.NONE},r?{item_status:r}:y(e)&&{item_status:d.jn.HAS_SUCCESSORS}),o&&{connector_type:o})},_=(e,t,r,n,a)=>{let i=(a??g())[e?.productId];return h(h(h(h(h(h(h({item_id:e?.productId,item_name:e?.identifier?.productTitle??e?.productIdentifier?.productTitle??e?.productTitle,item_brand:e?.identifier?.brandName??e?.productIdentifier?.brandName??e?.brandName},r&&{item_list_name:r}),v(e,!0)),{},{item_variant:!!(e?.variants?.length>0||e?.hasVariants),price:S(t?.netPrice?.amount,t?.netPrice?.scale)??d.vN.NONE,green:String(!!e?.greenOffer?.greenRating)},T(t,e?.offers)),{},{marketplace:t?.bestPrice?.context?.type==="MARKETPLACE"},e?.isCuttable!=null&&{cuts:(0,l.PK)(String(e.isCuttable)),images:e?.assets?.images?.products.length}),n?{item_status:n}:y(e)&&{item_status:d.jn.HAS_SUCCESSORS}),e?.index!=null&&{index:e?.index}),i&&{connector_type:i})},O=({method:e,quantity:t,availabilityDate:r,facilityId:n})=>{let i=r?(0,u.eu)(new Date(r),a.b):d.vN.NONE;return`${t>0}_${e}_${t||d.vN.NONE}_${i}_${n||d.vN.NONE}`.toLocaleUpperCase()},C=({deliveryMethod:e,availabilityFields:t,cdcFacilityId:r})=>{let n=t.map(e=>{let t=e?.quantity||0,r=e?.expectedAvailabilityDate?(0,u.eu)(new Date(e.expectedAvailabilityDate),a.b):d.vN.NONE;return`${t}_${r}`}).join("_");return`${e}_${n||d.vN.NONE}_${r||d.vN.NONE}`},E=(e,t,r)=>{let n=e?.deliveryIndicator?.deliveryIndicators?.[0],{quantity:a,availabilityDate:i}=n?.delivery||{},{quantity:o,availabilityDate:c}=n?.pickup||{},l=O({method:s.MM.DELIVERY,quantity:a,availabilityDate:i,facilityId:n?.deliveryFacilityId}),u=O({method:s.MM.PICKUP,quantity:o,availabilityDate:c,facilityId:n?.pickupFacilityId}),d=`${l}-${u}${null!=t?`_${t?"+1":"0"}`:""}`;return r&&(d=`${d}_${r}`),d.toLocaleUpperCase()},w=(e,t,r)=>{let n=e?.deliveries||[],a=e?.pickups||[],i=C({deliveryMethod:s.MM.DELIVERY,availabilityFields:n,cdcFacilityId:r||d.vN.NONE}),o=C({deliveryMethod:s.MM.PICKUP,availabilityFields:a,cdcFacilityId:t||d.vN.NONE});return`${s.MM.LIVESTOCK}-${i}-${o}`.toLocaleUpperCase()},P=e=>{let t=e?.promotions?.find(e=>e?.promotionalNetPrice)?.promotionalNetPrice;return S(e?.netPrice?.amount-t?.amount,t?.scale)??d.vN.NONE},I=(e,t,r,n,a)=>{let s=r?.deliveryIndicator?.deliveryIndicators?.[0],c=(s?.delivery?.quantity||0)+(s?.pickup?.quantity||0),l=r?.deliveryIndicator?.productsNotFound?.includes(e),{deliveryPrediction:u,pickupPrediction:p}=(0,o.Kk)(s,a,(e,t,r)=>(0,o.Nr)(e,t,r)),h=r&&!l&&t===i.kL.L&&!c,f=s&&!s?.delivery?.quantity&&!s?.pickup?.quantity;return r?h||!n?.netPrice?d.f.NBB:u?.date==="catalog.deliveryPromise.today"||p?.date==="catalog.deliveryPromise.today"?d.f.FT_SAME_DAY:u?.date==="catalog.deliveryPromise.tomorrow"||p?.date==="catalog.deliveryPromise.tomorrow"?d.f.FT_NEXT_DAY:s?.delivery?.availabilityDate||s?.pickup?.availabilityDate||s?.delivery?.inboundDeliveryDate||s?.pickup?.inboundDeliveryDate?d.f.MORE_1_DAY:f||l?d.f.OOS:void 0:d.vN.NONE},x=e=>[s.q9.CATEGORY,s.q9.BRAND,s.q9.SELLERNAMES,s.q9.SERIES,s.q9.STOCKABLE_STORES,s.q9.GREEN_RATING,s.q9.SONEPAR_ONLY].includes(e),S=(e,t,{keepSameNumberOfFractionDigits:r=!1}={})=>{let n=e*Math.pow(10,-t);if(!isNaN(n))return n.toFixed(r?t:(e=>e>0&&e<1?4:2)(n))},T=(e,t=[])=>{let r=e?.bestPrice?.context?.type==="MARKETPLACE"?e?.bestPrice?.context?.id:null;return{supplier:r&&t?.length>0?t?.find(e=>e?.offerId===r)?.seller?.sellerName:d.vN.NONE}}},26137:(e,t,r)=>{"use strict";r.d(t,{a:()=>y});var n=r(12072),a=r(60004),i=r(35880),o=r(35695),s=r(68915),c=r(23458),l=r(22951),u=r(82979),d=r
10(17480),p=r(95037),h=r.n(p),f=r(60072);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let y=a.memo(({productId:e,className:t,isGridView:r,isGuestUser:n})=>{let{0:p,1:m}=(0,a.useState)(!1),{store:y}=(0,s.Z2)(),{deliveryStockData:v,pickupStockData:b,stockInfo:_,stockLocatorPanelHandler:O}=(0,d.JU)(e),{isMarketPlaceProduct:C}=(0,d.ad)(e),{isLockerOnly:E}=(0,u.G4)(y);return(0,a.useEffect)(()=>{m(!0)},[]),(0,f.jsx)("div",{"data-testid":`stock-info-container-${e}`,className:(0,o.A)(t,r?h().stockInfoGridContainer:h().stockInfoContainer),children:p?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.n,{stockLoading:!_,stockError:!!_?.error,stockData:v,stockType:l.MM.DELIVERY,stockQuantityLabelClassName:h().stockQuantityLabelClassName,parentStyle:r&&g(g({},h()),{},{stockTextContainerGridClassName:""}),hideAvailabilityDate:n,isGuestUser:n,store:y,"data-testid":`stock-indicator-delivery-${e}`}),!n&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.n,{stockLoading:!_,stockError:!!_?.error,stockData:b,stockType:l.MM.PICKUP,link:O,hideBranchLink:C||E,isMarketplaceItem:C,parentStyle:r&&h(),isGuestUser:n,store:y,"data-testid":`stock-indicator-pickup-${e}`}),E&&(0,f.jsx)(c.n,{stockLoading:!_,stockError:!!_?.error,stockData:b,stockType:l.MM.PICKUP,link:O,hideBranchLink:C,isMarketplaceItem:C,parentStyle:r&&h(),hasLockerOnlyStatus:!0,isGuestUser:n,store:y,"data-testid":`stock-indicator-lockerOnly-${e}`})]})]}):(0,f.jsx)(i.E,{height:24,"data-testid":"loading-skeleton"})})})},26503:e=>{e.exports={container:"message-board_container__bTIo1",image:"message-board_image__rbOw2",icon:"message-board_icon__NohL2",illustration:"message-board_illustration__oVB4Q",large:"message-board_large__KiH_K",heading:"message-board_heading__py7ot",small:"message-board_small__bo24h",title:"message-board_title__5RD6c",description:"message-board_description__M6AAy",cta:"message-board_cta__cpwEY"}},26589:(e,t,r)=>{"use strict";r.d(t,{a:()=>h}),r(60004);var n=r(88088),a=r(35695),i=r(43207),o=r(86263),s=r(55537),c=r(13942),l=r.n(c),u=r(60072);let d=({productId:e,sellerName:t,opcoSellerId:r,className:c})=>{let[d]=(0,i.B)();return(0,u.jsxs)("div",{className:(0,a.A)(l().marketplaceContainer,c),children:[t&&(0,u.jsxs)(u.Fragment,{children:[d("marketplace.sellerName")," ",r?(0,u.jsx)(o.w,{app:s.b.content.app,href:s.b.content.partner(r),variant:"underlined","data-testid":`${e}-${t}-link`,children:t}):(0,u.jsx)(n.E,{size:"body-2",color:"subtle",weight:"regular","data-testid":`${e}-${t}-text`,children:t})]}),(0,u.jsx)(n.E,{size:"body-1",color:"subtle",weight:"regular","data-testid":`${e}-shippingCost`,children:d("marketplace.shippingCost")})]})};var p=r(17480);let h=({productId:e,className:t})=>{let{sellerName:r,isMarketPlaceProduct:n,opcoSellerId:a}=(0,p.ad)(e);return n?(0,u.jsx)(d,{sellerName:r,opcoSellerId:a,"data-testid":e,productId:e,className:t}):null}},26650:(e,t,r)=>{"use strict";r.d(t,{T:()=>f}),r(60004);var n=r(35880),a=r(88088),i=r(43207),o=r(94835),s=r(24903),c=r(76067),l=r.n(c),u=r(60072);let d=({creditLineSpent:e,creditLineMax:t,accessibleMessage:r})=>{let[n]=(0,i.B)(),a=e/t*100,o=n("account.creditLine.title");return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{className:l().creditLineLabel,id:"credit-line-label","data-testid":"credit-line-label",children:r||o}),(0,u.jsx)("div",{className:l().creditLine,role:"meter","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":t,"aria-labelledby":"credit-line-label",children:(0,u.jsx)("div",{className:l().creditLineBalance,style:{width:`${a}%`},"data-testid":"credit-line-balance"})})]})};var p=r(10354),h=r.n(p);let f=({accountId:e})=>{let[t]=(0,i.B)(),{data:r,loading:c,error:l}=(0,o.ueV)({variables:{accountId:e}}),{formatPrice:p}=(0,s.f)(),{authorizedCreditLimit:f,creditBalance:m}=r?.creditLimit||{};if(c)return(0,u.jsxs)("div",{className:h().wrapperSkeleton,"data-testid":"credit-line-skeleton",children:[(0,u.jsx)(n.E,{width:"30%",height:16,shape:"line"}),(0,u.jsx)(n.E,{width:"100%",height:8,shape:"line"}),(0,u.jsx)(n.E,{width:"40%",height:16,shape:"line"})]});if(l||!m||!f)return null;let g={amount:m?.amount,currency:m?.currency,scale:m?.scale},y={amount:f?.amount,currency:f?.currency,scale:f?.scale};return(0,u.jsxs)("div",{className:h().wrapperCreditLine,"data-testid":"credit-line-wrapper",children:[(0,u.jsx)(a.E,{size:"body-1",color:"default",weight:"bold",children:t("account.creditLine.creditLineUsed")}),(0,u.jsx)(d,{creditLineMax:f?.amount,creditLineSpent:m?.amount}),(0,u.jsxs)(a.E,{size:"body-1",color:"subtle",weight:"regular",as:"span",children:[(0,u.jsx)("span",{"data-testid":"balance-credit-amount",children:p({price:g})}),t("account.creditLine.balanceOnAuthorized"),(0,u.jsx)("span",{"data-testid":"authorized-credit-amount",children:p({price:y})})]})]})}},26782:e=>{e.exports={attributeIconsContainer:"attribute-icon-container_attributeIconsContainer__qfyq4",pdp:"attribute-icon-container_pdp__9YHDW"}},26897:(e,t,r)=>{"use strict";r.d(t,{u:()=>p});var n=r(12072);r(60004);var a=r(88088),i=r(82726),o=r(35695),s=r(97195),c=r.n(s),l=r(60072);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=({label:e,buttonLabel:t,onClick:r,"data-testid":n,className:s,icon:u,isTableView:p,disabled:h,variant:f="secondary"})=>(0,l.jsxs)("div",{className:(0,o.A)(c().productCtaContainer,s),children:[!p&&(0,l.jsx)(a.E,{size:"body-2",as:"span",color:"subtlest",children:e}),(0,l.jsx)(i.$,d(d({size:p?"s":"m",variant:f,onClick:r,"data-testid":n,disabled:h},u&&{iconPosition:"right",icon:u,title:"Open the menu"}),{},{children:t}))]})},26989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},27020:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},27127:(e,t,r)=>{"use strict";r.d(t,{F3:()=>c,KE:()=>a,ae:()=>o,jS:()=>s,n5:()=>i,oI:()=>n});let n="ft-multi-lang-reinsurance-banner",a="ft-signup-button",i="ft-quick-add-to-cart",o="rl-display-transmitted-carts",s="st-subscription-page",c="rl-navigation-header"},27245:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(2390),a=r(25477),i=r(94845),o=r(34227),s=r(79140);let c={date:(0,s.k)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,s.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,s.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={code:"en-GB",formatDistance:n.B,formatLong:c,formatRelative:a.o,localize:i.k,match:o.Y,options:{weekStartsOn:1,firstWeekContainsDate:4}}},27254:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(12072),a=r(22951);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}class o{static calculateStockVariation(e,t,r){return r&&r>0?a.dd.STOCK:e===a.dv.L?a.dd.UNKNOWN:e===a.dv.C?t?a.dd.UNSTOCKED:a.dd.ON_DEMAND:0===r?a.dd.NO_STOCK:a.dd.UNKNOWN}static extractProductQuantity(e,t){if(e)return e?.marketplaceDeliveryInformation?"pickup"===t?0:e.marketplaceDeliveryInformation?.[0]?.quantity??0:e?.[t]?.quantity}static extractPrediction(e,t="delivery"){if(!e)return null;let r=e?.[t];if(!r||"object"!=typeof r)return{hasDeliveryRange:!1,date:void 0};let{deliveryPromiseRange:a,availabilityDate:o,inboundDeliveryDate:s,orderBefore:c}=r;return a?{hasDeliveryRange:!0,date:a}:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({hasDeliveryRange:!1,date:o||s},c&&{orderBefore:{value:c,label:c}})}static shouldIncludeExtendedDelivery(e){return!!e&&!!e?.extendedDeliveryInformation&&e?.extendedDeliveryInformation?.quantity!=null}static isHighAvailabilityIndicator(e){return e===a.dv.A||e===a.dv.B}static isEndOfLifeIndicator(e){return e===a.dv.L}static computeIsInStock(e,t){return!!this.isHighAvailabilityIndicator(e)||t>0}static getTotalQuantity(e,t){return(e??0)+(t??0)}static getEffectiveQuantity(e,t){return this.isHighAvailabilityIndicator(e)?t||1:t}}},27485:e=>{e.exports={container:"stock-indicator-v2_container___NWRO",emptyIcon:"stock-indicator-v2_emptyIcon__cjhhK",link:"stock-indicator-v2_link___Np8C",containerSmall:"stock-indicator-v2_containerSmall__y_tg2",icon:"stock-indicator-v2_icon__O_xBX",stockContainer:"stock-indicator-v2_stockContainer__MZ_g5",multipleStocksContainer:"stock-indicator-v2_multipleStocksContainer___aHEJ"}},27945:(e,t,r)=>{"use strict";r.d(t,{O:()=>h});var n=r(12072),a=r(60004),i=r(94835),o=r(23134),s=r(31811),c=r(7976);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?l(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let h=({productId:e,isStockAvailableOnly:t,shouldUseNearbyFacilities:r=!1,skipFetchingData:n=!1})=>{let{cart:l}=(0,s.B_)(),d=l?.logisticDetails?.cdcFacilityId||"",{stores_drawer_pagination_size:h,"configuration_stock-locator-max-radius":f}=(0,c.rD)(),{0:m,1:g}=(0,a.useState)({lat:0,lng:0}),{0:y,1:v}=(0,a.useState)(null),{0:b,1:_}=(0,a.useState)(0),{0:O,1:C}=(0,a.useState)(null),{0:E,1:w}=(0,a.useState)([]),P=Number(h||10),I=null!==y,{loading:x,error:S,data:T}=(0,i.iUC)({skip:!I,variables:{address:y,page:b,size:P},notifyOnNetworkStatusChange:!0}),{loading:N,error:A,data:j}=(0,i.azj)({skip:!!y||!l?.logisticDetails?.facilityId||n,variables:p({facilityId:l?.logisticDetails?.facilityId,page:b,size:P},r&&{radius:1e3*Number(f)})}),k=j?.storeWithNearBy?.nearbyStores.totalElements||T?.storesByAddress.totalElements,D=j?.storeWithNearBy?.store,R=(0,a.useMemo)(()=>[...new Set(E.map(e=>e.facilityId).concat(D?.facilityId?D?.facilityId:[]))].filter(e=>void 0!==e),[D?.facilityId,E]),[L,{data:M}]=(0,i.B1b)({variables:{productIds:[e],pickupFacilityIds:R,deliveryFacilityId:d},context:{standalone:!0}}),F=(e,t)=>{let r=e?.facilities?.map(e=>u(u({},e?.facility),{},{distance:e?.distance??null}))??null;r&&w(e=>e.concat(r.filter(t=>!e.some(e=>e.facilityId===t.facilityId)))),void 0!==t.location&&g({lat:t?.location?.latitude,lng:t?.location?.longitude})};(0,a.useEffect)(()=>{j&&(C(j.storeWithNearBy?.store??null),D&&F(j.storeWithNearBy?.nearbyStores??null,D))},[j,y,D]),(0,a.useEffect)(()=>{T?.storesByAddress&&T?.storesByAddress?.facilities?.[0]&&F(T?.storesByAddress,T?.storesByAddress?.facilities[0])},[T,y]),(0,a.useEffect)(()=>{e&&R?.length&&d&&!(N||x)&&L()},[l?.logisticDetails?.cdcFacilityId,R,N,L,e,x,E,d]);let $=t?E.filter(e=>{if(e.facilityType===o.ki.NationalLocker)return!1;let t=M?.getStocks?.deliveryIndicator?.deliveryIndicators?.find(t=>t?.pickupFacilityId===e?.facilityId);return(t?.pickup?.quantity??0)>0}):E,B=k-(b+1)*P,U=t&&$.length<10&&B>0&&!x&&!N;(0,a.useEffect)(()=>{U&&_(b+1)},[U,b]);let V=x||N||U,q=O&&$.some(e=>e.facilityId===O?.facilityId);return{stores:$.filter(e=>e.facilityId!==O?.facilityId),nextResultSetCount:B,error:S||A,loading:V,currentPage:b,defaultStore:{data:O,show:q},searchedAddress:y,isStockAvailableOnly:t,deliveryIndicators:M?.getStocks,handleSearchAddress:e=>{e?.text!==y&&(w([]),v(e?.text),_(0))},handleDataReset:()=>{w([]),v(null),_(0)},setCurrentPage:_,getStoreStock:(e,t)=>p(p({},t),{},{deliveryIndicator:{deliveryIndicators:[p({},t?.deliveryIndicator?.deliveryIndicators?.find(t=>t?.pickupFacilityId===e))]}}),setSearchedAddress:v,currentStoreCoordinates:m,pagination:P,totalStoresCount:E?.length}}},27956:(e,t,r)=>{"use strict";r.d(t,{R8:()=>eQ});var n,a,i,o,s,c,l,u,d,p,h,f,m,g,y,v,b,_=r(12072),O=r(60004),C=r(21115),E=r.n(C),w=r(76316),P=r.n(w),I=r(10983),x=r(43207),S=r(60911),T=r(7976),N=r(17387),A=r(64024);class j extends O.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error in Error boundary:",e,t)}render(){return this.state.hasError?null:this.props.children}}var k=r(88088),D=r(2117),R=r(25568),L=r(86800),M=r(37630),F=r(86263),$=r(58065),B=r(18975),U=r.n(B),V=r(60072);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?q(Object(r),!0).forEach(function(t){(0,_.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let z=R.k.OneByOne,H=({data:e})=>{let t=(e=>{let{computeCmsLink:t}=(0,A.H)(),{computeCmsImage:r}=(0,M.Cr)();return e?.map(e=>({title:e.teaserTitle,text:e.teaserText?.textAsTree,imageProps:r(e.picture,e.picture?.alt,{xs:20},z),link:t(e.teaserTargets)}))||[]})(e),{sendClickReinsuranceGtmTag:r}=(0,D.PB)();return t.length?(0,V.jsx)("div",{"data-testid":"reinsurance",className:U().container,children:(0,V.jsx)("div",{className:U().items,"data-testid":"reinsurance-items",children:t.map(e=>(0,V.jsxs)(F.w,G(G({className:U().item},e.link),{},{variant:"unstyled",onClick:(e=>e.link?.asParam||e.link?.href||e.link?.onClick?()=>{r(),e.link?.onClick?.()}:void 0)(e),"data-testid":"reinsurance-item",children:[e?.imageProps?(0,V.jsx)(L._,G(G({"data-testid":"reinsurance-item-image"},e.imageProps),{},{width:72,height:72,ratio:"square"})):null,(0,V.jsxs)("div",{children:[(0,V.jsx)(k.E,{color:"subtle","data-testid":"reinsurance-item-title",children:e.title}),(0,V.jsx)("div",{className:U().itemText,"data-testid":"reinsurance-item-text",children:(0,V.jsx)($.r,{tree:e.text})})]})]}),e.title))})}):null};var W=r(10743),Q=r(31437),Y=r(55537),K=r(82320),J=r(35695),Z=r(58539);let X=function(e){return e.EN_GB="en-gb",e.FR_FR="fr-fr",e.FR_BE="fr-be",e.NL_BE="nl-be",e.NB_NO="nb-no",e.IT_IT="it-it",e.DE_IT="de-it",e}({});var ee=r(67326),et=r.n(ee);function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let en=(0,O.forwardRef)(({title:e,titleId:t,...r},i)=>O.createElement("svg",er({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135 40",ref:i,"aria-labelledby":t},r),e?O.createElement("title",{id:t},e):null,n||(n=O.createElement("defs",null,O.createElement("linearGradient",{id:"google-play_svg__a",x1:21.8,x2:5.02,y1:179.66,y2:162.88,gradientTransform:"matrix(1 0 0 -1 0 188.37)",gradientUnits:"userSpaceOnUse"},O.createElement("stop",{offset:0,stopColor:"#00a0ff"}),O.createElement("stop",{offset:.01,stopColor:"#00a1ff"}),O.createElement("stop",{offset:.26,stopColor:"#00beff"}),O.createElement("stop",{offset:.51,stopColor:"#00d2ff"}),O.createElement("stop",{offset:.76,stopColor:"#00dfff"}),O.createElement("stop",{offset:1,stopColor:"#00e3ff"})),O.createElement("linearGradient",{id:"google-play_svg__b",x1:33.83,x2:9.64,y1:168.37,y2:168.37,gradientTransform:"matrix(1 0 0 -1 0 188.37)",gradientUnits:"userSpaceOnUse"},O.createElement("stop",{offset:0,stopColor:"#ffe000"}),O.createElement("stop",{offset:.41,stopColor:"#ffbd00"}),O.createElement("stop",{offset:.78,stopColor:"orange"}),O.createElement("stop",{offset:1,stopColor:"#ff9c00"})),O.createElement("linearGradient",{id:"google-play_svg__c",x1:24.83,x2:2.07,y1:166.07,y2:143.31,gradientTransform:"matrix(1 0 0 -1 0 188.37)",gradientUnits:"userSpaceOnUse"},O.createElement("stop",{offset:0,stopColor:"#ff3a44"}),O.createElement("stop",{offset:1,stopColor:"#c31162"})),O.createElement("linearGradient",{id:"google-play_svg__d",x1:7.3,x2:17.46,y1:188.19,y2:178.03,gradientTransform:"matrix(1 0 0 -1 0 188.37)",gradientUnits:"userSpaceOnUse"},O.createElement("stop",{offset:0,stopColor:"#32a071"}),O.createElement("stop",{offset:.07,stopColor:"#2da771"}),O.createElement("stop",{offset:.48,stopColor:"#15cf74"}),O.createElement("stop",{offset:.8,stopColor:"#06e775"}),O.createElement("stop",{offset:1,stopColor:"#00f076"})))),a||(a=O.createElement("rect",{width:135,height:40,rx:5})),O.createElement("path",{d:"M130 .8a4.2 4.2 0 0 1 4.2 4.2v30a4.2 4.2 0 0 1-4.2 4.2H5A4.2 4.2 0 0 1 .8 35V5A4.2 4.2 0 0 1 5 .8zm0-.8H5a5 5 0 0 0-5 5v30a5 5 0 0 0 5 5h125a5 5 0 0 0 5-5V5a5 5 0 0 0-5-5",style:{fill:"#a6a6a6"}}),O.createElement("path",{d:"M47.42 10.24a2.72 2.72 0 0 1-.75 2 2.9 2.9 0 0 1-2.2.88 3 3 0 0 1-2.21-.9 3 3 0 0 1-.91-2.22 3 3 0 0 1 .91-2.23 3.16 3.16 0 0 1 3.44-.65 2.54 2.54 0 0 1 .94.67l-.53.53a2 2 0 0 0-1.64-.72 2.32 2.32 0 0 0-2.33 2.4 2.36 2.36 0 0 0 4 1.73 1.93 1.93 0 0 0 .51-1.22h-2.18v-.72h2.91a4 4 0 0 1 .04.45ZM52 7.74h-2.7v1.9h2.46v.72H49.3v1.9H52V13h-3.48V7H52ZM55.28 13h-.77V7.74h-1.68V7H57v.74h-1.72Zm4.66 0V7h.77v6Zm4.19 0h-.77V7.74h-1.68V7h4.12v.74h-1.67Zm9.48-.78a3.11 3.11 0 0 1-4.4 0 3 3 0 0 1-.88-2.22 3 3 0 0 1 .88-2.22 2.93 2.93 0 0 1 2.2-.91 3 3 0 0 1 2.2.91 3.07 3.07 0 0 1 .88 2.22 3 3 0 0 1-.88 2.22Zm-3.83-.5a2.29 2.29 0 0 0 3.26 0 2.36 2.36 0 0 0 .67-1.72A2.36 2.36 0 0 0 73 8.28a2.29 2.29 0 0 0-3.26 0 2.36 2.36 0 0 0-.63 1.72 2.36 2.36 0 0 0 .67 1.72Zm5.8 1.28V7h.93l2.92 4.67V7h.77v6h-.8l-3.05-4.89V13Z",style:{fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeWidth:".2px"}}),O.createElement("path",{d:"M68.14 21.75A4.26 4.26 0 1 0 72.41 26a4.19 4.19 0 0 0-4.27-4.25m0 6.83a2.58 2.58 0 1 1 2.4-2.58 2.46 2.46 0 0 1-2.4 2.58m-9.32-6.83A4.26 4.26 0 1 0 63.09 26a4.19 4.19 0 0 0-4.27-4.25m0 6.83a2.58 2.58 0 1 1 2.4-2.58 2.46 2.46 0 0 1-2.4 2.58m-11.08-5.52v1.8h4.32a3.77 3.77 0 0 1-1 2.27 4.42 4.42 0 0 1-3.34 1.32 4.8 4.8 0 0 1 0-9.6A4.64 4.64 0 0 1 51 20.14l1.27-1.27a6.3 6.3 0 0 0-4.53-1.82 6.61 6.61 0 1 0 0 13.21 6.07 6.07 0 0 0 4.61-1.85 6 6 0 0 0 1.56-4.23 6.3 6.3 0 0 0-.09-1.12Zm45.31 1.4a4 4 0 0 0-3.64-2.71 4 4 0 0 0-4 4.25 4.23 4.23 0 0 0 7.76 2.37l-1.45-1a2.41 2.41 0 0 1-2.09 1.17 2.15 2.15 0 0 1-2.06-1.29l5.69-2.35Zm-5.8 1.42a2.33 2.33 0 0 1 2.23-2.48 1.64 1.64 0 0 1 1.57.9ZM82.63 30h1.87V17.5h-1.87Zm-3.06-7.3h-.07a2.94 2.94 0 0 0-2.24-.95 4.26 4.26 0 0 0 0 8.51 2.88 2.88 0 0 0 2.24-1h.07v.61c0 1.63-.87 2.5-2.27 2.5a2.36 2.36 0 0 1-2.15-1.51l-1.62.67a4 4 0 0 0 3.77 2.52c2.19 0 4-1.29 4-4.43V22h-1.73Zm-2.15 5.88a2.58 2.58 0 0 1 0-5.15A2.39 2.39 0 0 1 79.7 26a2.38 2.38 0 0 1-2.28 2.58m24.39-11.08h-4.48V30h1.87v-4.74h2.61a3.89 3.89 0 1 0 0-7.76m0 6H99.2v-4.26h2.65a2.14 2.14 0 1 1 0 4.28Zm11.54-1.79a3.49 3.49 0 0 0-3.33 1.91l1.65.69a1.78 1.78 0 0 1 1.71-.91 1.8 1.8 0 0 1 2 1.61v.12a4.2 4.2 0 0 0-1.95-.48c-1.78 0-3.6 1-3.6 2.82a2.89 2.89 0 0 0 3.11 2.75 2.65 2.65 0 0 0 2.38-1.22h.06v1h1.8v-4.8
101c0-2.19-1.66-3.46-3.79-3.46Zm-.23 6.85c-.61 0-1.46-.31-1.46-1.06 0-1 1.06-1.34 2-1.34a3.3 3.3 0 0 1 1.7.42 2.26 2.26 0 0 1-2.2 2ZM123.74 22l-2.14 5.42h-.06L119.32 22h-2l3.33 7.58-1.9 4.21h2L125.82 22Zm-16.8 8h1.86V17.5h-1.86Z",style:{fill:"#fff"}}),O.createElement("path",{d:"M10.44 7.54a2 2 0 0 0-.44 1.4v22.12a1.94 1.94 0 0 0 .47 1.4l.07.08L22.9 20.15v-.3L10.51 7.47Z",style:{fill:"url(#google-play_svg__a)"}}),O.createElement("path",{d:"m27 24.28-4.1-4.13v-.3l4.1-4.13.09.06L32 18.56c1.4.79 1.4 2.09 0 2.89l-4.89 2.78Z",style:{fill:"url(#google-play_svg__b)"}}),O.createElement("path",{d:"M27.12 24.23 22.9 20 10.44 32.46a1.62 1.62 0 0 0 2.07.07z",style:{fill:"url(#google-play_svg__c)"}}),O.createElement("path",{d:"m27.12 15.78-14.61-8.3a1.61 1.61 0 0 0-2.07.06L22.9 20Z",style:{fill:"url(#google-play_svg__d)"}}),O.createElement("path",{d:"m27 24.13-14.49 8.25a1.66 1.66 0 0 1-2 0l-.07.07.07.08a1.66 1.66 0 0 0 2 0l14.61-8.3Z",style:{isolation:"isolate",opacity:.2}}),O.createElement("path",{d:"M10.44 32.32a2 2 0 0 1-.44-1.41v.15a1.94 1.94 0 0 0 .47 1.4l.07-.07ZM32 21.3l-5 2.83.09.1L32 21.44A1.75 1.75 0 0 0 33.06 20 1.86 1.86 0 0 1 32 21.3",style:{isolation:"isolate",opacity:.12}}),O.createElement("path",{d:"M12.51 7.62 32 18.7a1.86 1.86 0 0 1 1.06 1.3A1.75 1.75 0 0 0 32 18.56L12.51 7.48C11.12 6.68 10 7.34 10 8.94v.15c0-1.6 1.12-2.26 2.51-1.47",style:{opacity:.25,isolation:"isolate",fill:"#fff"}})));function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ei=(0,O.forwardRef)(({title:e,titleId:t,...r},n)=>O.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 135 40",ref:n,"aria-labelledby":t},r),e?O.createElement("title",{id:t},e):null,i||(i=O.createElement("path",{fill:"#000",d:"M130 0H5a5 5 0 0 0-5 5v30a5 5 0 0 0 5 5h125a5 5 0 0 0 5-5V5a5 5 0 0 0-5-5"})),o||(o=O.createElement("path",{fill:"#A6A6A6",d:"M130 .8a4.2 4.2 0 0 1 4.2 4.2v30a4.2 4.2 0 0 1-4.2 4.2H5A4.2 4.2 0 0 1 .8 35V5A4.2 4.2 0 0 1 5 .8zm0-.8H5a5 5 0 0 0-5 5v30a5 5 0 0 0 5 5h125a5 5 0 0 0 5-5V5a5 5 0 0 0-5-5"})),s||(s=O.createElement("path",{fill:"#fff",d:"M68.14 21.75A4.26 4.26 0 1 0 72.41 26a4.19 4.19 0 0 0-4.27-4.25m0 6.83a2.58 2.58 0 1 1 2.4-2.58 2.46 2.46 0 0 1-2.4 2.58m-9.32-6.83A4.26 4.26 0 1 0 63.09 26a4.2 4.2 0 0 0-4.27-4.25m0 6.83a2.58 2.58 0 1 1 2.4-2.58 2.46 2.46 0 0 1-2.4 2.58m-11.08-5.52v1.8h4.32a3.77 3.77 0 0 1-1 2.27 4.42 4.42 0 0 1-3.34 1.32A4.8 4.8 0 1 1 51 20.14l1.27-1.27a6.3 6.3 0 0 0-4.53-1.82 6.6 6.6 0 1 0 0 13.21 6.07 6.07 0 0 0 4.61-1.85 6 6 0 0 0 1.56-4.23c0-.38-.03-.75-.09-1.12zm45.31 1.4a4 4 0 0 0-3.64-2.71 4 4 0 0 0-4 4.25 4.23 4.23 0 0 0 7.76 2.37l-1.45-1a2.4 2.4 0 0 1-2.09 1.17 2.15 2.15 0 0 1-2.06-1.29l5.69-2.35zm-5.8 1.42a2.34 2.34 0 0 1 2.23-2.49 1.64 1.64 0 0 1 1.57.91zM82.63 30h1.87V17.5h-1.87zm-3.06-7.3h-.07a2.94 2.94 0 0 0-2.24-1 4.26 4.26 0 0 0 0 8.51 2.88 2.88 0 0 0 2.24-1h.07v.61c0 1.63-.87 2.5-2.27 2.5a2.36 2.36 0 0 1-2.15-1.51l-1.62.67A4 4 0 0 0 77.3 34c2.19 0 4-1.29 4-4.43V22h-1.73zm-2.15 5.88a2.58 2.58 0 0 1 0-5.15A2.39 2.39 0 0 1 79.7 26a2.38 2.38 0 0 1-2.28 2.58m24.39-11.08h-4.48V30h1.87v-4.74h2.61a3.89 3.89 0 1 0 0-7.76m0 6H99.2v-4.26h2.65a2.14 2.14 0 0 1 0 4.28zm11.54-1.79a3.49 3.49 0 0 0-3.33 1.91l1.65.69a1.78 1.78 0 0 1 1.71-.91 1.8 1.8 0 0 1 2 1.61v.12a4.2 4.2 0 0 0-1.95-.48c-1.78 0-3.6 1-3.6 2.82a2.9 2.9 0 0 0 3.11 2.75 2.65 2.65 0 0 0 2.38-1.22h.06v1h1.8v-4.81c0-2.19-1.66-3.46-3.79-3.46zm-.23 6.85c-.61 0-1.46-.31-1.46-1.06 0-1 1.06-1.34 2-1.34.6-.01 1.18.13 1.7.42a2.26 2.26 0 0 1-2.2 2zM123.74 22l-2.14 5.42h-.06L119.32 22h-2l3.33 7.58-1.9 4.21h1.95L125.82 22zm-16.8 8h1.86V17.5h-1.86z"})),c||(c=O.createElement("path",{fill:"url(#google-play_nb-NO_svg__a)",d:"M10.44 7.54a2 2 0 0 0-.47 1.4v22.12c-.03.51.13 1.01.47 1.4l.07.08L22.9 20.15v-.3L10.51 7.47z"})),l||(l=O.createElement("path",{fill:"url(#google-play_nb-NO_svg__b)",d:"m27 24.28-4.1-4.13v-.3l4.1-4.13.09.06L32 18.56c1.4.79 1.4 2.09 0 2.89l-4.89 2.78z"})),u||(u=O.createElement("path",{fill:"url(#google-play_nb-NO_svg__c)",d:"M27.12 24.22 22.9 20 10.44 32.46a1.62 1.62 0 0 0 2.07.07z"})),d||(d=O.createElement("path",{fill:"url(#google-play_nb-NO_svg__d)",d:"m27.12 15.78-14.61-8.3a1.61 1.61 0 0 0-2.07.06L22.9 20z"})),p||(p=O.createElement("path",{fill:"#000",d:"m27 24.13-14.49 8.25a1.66 1.66 0 0 1-2 0l-.07.07.07.08a1.66 1.66 0 0 0 2 0l14.61-8.31z",opacity:.2})),h||(h=O.createElement("path",{fill:"#000",d:"M10.44 32.32a2 2 0 0 1-.44-1.41v.15c-.03.51.13 1.01.47 1.4l.07-.07zM32 21.3l-5 2.83.09.09L32 21.44A1.75 1.75 0 0 0 33.06 20 1.86 1.86 0 0 1 32 21.3",opacity:.12})),f||(f=O.createElement("path",{fill:"#fff",d:"M12.51 7.62 32 18.7a1.86 1.86 0 0 1 1.06 1.3A1.75 1.75 0 0 0 32 18.56L12.51 7.48c-1.39-.8-2.54-.14-2.54 1.46v.15c.03-1.6 1.15-2.26 2.54-1.47",opacity:.25})),m||(m=O.createElement("path",{fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeWidth:.2,d:"M43.69 13h-.77V7.74h-1.68V7h4.13v.74h-1.68zm2.65 0V7h.77v6zm2.14 0V7h.77v5.26h2.6V13zm9.99-2.76a2.75 2.75 0 0 1-1.75 2.68c-.38.15-.8.22-1.2.2a3.13 3.13 0 1 1 1.23-6c.36.15.68.38.94.67l-.53.53a2 2 0 0 0-1.64-.72 2.4 2.4 0 1 0 1.68 4.13c.3-.33.49-.77.5-1.22h-2.18v-.72h2.91c.03.15.04.3.04.45Zm2.39 2.89c-.4.01-.8-.12-1.12-.36a2 2 0 0 1-.65-1l.71-.29a1.09 1.09 0 0 0 1.09.95 1 1 0 0 0 .83-.35c.2-.27.3-.6.29-.94V7h.77v4.09a2 2 0 0 1-.54 1.51 1.86 1.86 0 0 1-1.38.53Zm6.7-5.39h-2.74v1.9h2.47v.72h-2.47v1.9h2.74V13h-3.51V7h3.51zm1.2 5.26V7h.94l2.92 4.67V7h.77v6h-.81l-3-4.89V13zm11.69-2.76a2.75 2.75 0 0 1-1.75 2.68c-.38.15-.8.22-1.2.2a3.15 3.15 0 0 1-2.21-5.36 3.16 3.16 0 0 1 3.44-.65c.36.15.68.38.94.67l-.53.53a2 2 0 0 0-1.64-.72 2.4 2.4 0 1 0 1.68 4.13c.3-.33.48-.77.5-1.22H77.5v-.72h2.91c.03.15.04.3.04.46Zm4.61-2.5h-2.73v1.9h2.46v.72h-2.46v1.9h2.73V13h-3.5V7h3.5zM86.27 13V7H87v5.26h2.59V13zm4.34 0V7h.77v6zm7.83-2.76a2.75 2.75 0 0 1-1.75 2.68c-.38.15-.79.22-1.2.2a3.13 3.13 0 1 1 1.23-6c.36.15.68.38.94.67l-.53.53a2 2 0 0 0-1.64-.72 2.4 2.4 0 1 0 1.68 4.13c.3-.33.49-.77.5-1.22h-2.18v-.72h2.91c.03.15.04.3.04.45Zm3.89 2.76h-.77V7h2a1.88 1.88 0 0 1 1.73 1.09 1.72 1.72 0 0 1-.41 1.97c-.36.34-.83.52-1.32.51h-1.27zm0-3.17h1.29a1 1 0 0 0 .78-.32 1.05 1.05 0 0 0-.78-1.77h-1.29zm3.03 3.17 2.14-5.66a.9.9 0 0 1-.06-1.3.89.89 0 0 1 .96-.18c.1.04.2.1.28.19a.83.83 0 0 1 .25.61.87.87 0 0 1-.31.68l2.14 5.66h-.85l-.58-1.63h-2.53l-.58 1.63zm1.7-2.35h2l-1-2.7zm1-3.65a.33.33 0 0 0 .24-.1.33.33 0 0 0 .1-.23c0-.05-.01-.1-.03-.13a.3.3 0 0 0-.07-.11.33.33 0 0 0-.24-.1.3.3 0 0 0-.23.1.32.32 0 0 0-.1.23c0 .09.03.17.08.24.06.06.14.1.22.1z"})),g||(g=O.createElement("defs",null,O.createElement("linearGradient",{id:"google-play_nb-NO_svg__a",x1:21.8,x2:5.02,y1:8.71,y2:25.49,gradientUnits:"userSpaceOnUse"},O.createElement("stop",{stopColor:"#00A0FF"}),O.createElement("stop",{offset:.01,stopColor:"#00A1FF"}),O.createElement("stop",{offset:.26,stopColor:"#00BEFF"}),O.createElement("stop",{offset:.51,stopColor:"#00D2FF"}),O.createElement("stop",{offset:.76,stopColor:"#00DFFF"}),O.createElement("stop",{offset:1,stopColor:"#00E3FF"})),O.createElement("linearGradient",{id:"google-play_nb-NO_svg__b",x1:33.83,x2:9.64,y1:20,y2:20,gradientUnits:"userSpaceOnUse"},O.createElement("stop",{stopColor:"#FFE000"}),O.createElement("stop",{offset:.41,stopColor:"#FFBD00"}),O.createElement("stop",{offset:.78,stopColor:"orange"}),O.createElement("stop",{offset:1,stopColor:"#FF9C00"})),O.createElement("linearGradient",{id:"google-play_nb-NO_svg__c",x1:24.83,x2:2.07,y1:22.3,y2:45.05,gradientUnits:"userSpaceOnUse"},O.createElement("stop",{stopColor:"#FF3A44"}),O.createElement("stop",{offset:1,stopColor:"#C31162"})),O.createElement("linearGradient",{id:"google-play_nb-NO_svg__d",x1:7.3,x2:17.46,y1:.18,y2:10.34,gradientUnits:"userSpaceOnUse"},O.createElement("stop",{stopColor:"#32A071"}),O.createElement("stop",{offset:.07,stopColor:"#2DA771"}),O.createElement("stop",{offset:.48,stopColor:"#15CF74"}),O.createElement("stop",{offset:.8,stopColor:"#06E775"}),O.createElement("stop",{offset:1,stopColor:"#00F076"})))))),eo={[X.NB_NO]:ei},es=({locale:e})=>{let t=e&&eo[e]||en;return(0,V.jsx)(t,{role:"presentation",className:et().root})};var ec=r(22158),el=r.n(ec);function eu(){return(eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
10).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ed=(0,O.forwardRef)(({title:e,titleId:t,...r},n)=>O.createElement("svg",eu({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 119.66 40",ref:n,"aria-labelledby":t},r),e?O.createElement("title",{id:t},e):null,O.createElement("path",{d:"M110.13 0H7.52a13.5 13.5 0 0 0-2 .18 6.7 6.7 0 0 0-1.9.63A6 6 0 0 0 2 2 6 6 0 0 0 .82 3.62a6.7 6.7 0 0 0-.63 1.9 12 12 0 0 0-.17 2v24.96a12 12 0 0 0 .17 2 6.8 6.8 0 0 0 .63 1.91A6.2 6.2 0 0 0 2 38a6 6 0 0 0 1.62 1.18 6.7 6.7 0 0 0 1.9.63 13.5 13.5 0 0 0 2 .18h104.62a13.4 13.4 0 0 0 2-.18 7 7 0 0 0 1.91-.63 6.2 6.2 0 0 0 1.62-1.18 6.7 6.7 0 0 0 1.18-1.61 7.1 7.1 0 0 0 .62-1.91 13.4 13.4 0 0 0 .18-2V7.52a13.4 13.4 0 0 0-.18-2 7 7 0 0 0-.62-1.9A6.5 6.5 0 0 0 117.67 2a6.2 6.2 0 0 0-1.62-1.18 7 7 0 0 0-1.91-.63 13.4 13.4 0 0 0-2-.18h-2Z",style:{fill:"#b7b7b7"}}),y||(y=O.createElement("path",{d:"M8.44 39.12h-.9A11.5 11.5 0 0 1 5.67 39 5.9 5.9 0 0 1 4 38.4a5.2 5.2 0 0 1-1.39-1 5.2 5.2 0 0 1-1-1.4 5.8 5.8 0 0 1-.55-1.66 12 12 0 0 1-.16-1.87V7.55a12 12 0 0 1 .16-1.87A5.7 5.7 0 0 1 1.6 4a5 5 0 0 1 1-1.4 5.5 5.5 0 0 1 1.4-1 5.8 5.8 0 0 1 1.66-.55A12 12 0 0 1 7.54.89h104.59a12 12 0 0 1 1.86.16 6 6 0 0 1 1.67.55 5.5 5.5 0 0 1 2.41 2.4 6 6 0 0 1 .54 1.65 14 14 0 0 1 .17 1.88v24.94a13 13 0 0 1-.17 1.85 5.9 5.9 0 0 1-.54 1.67 5.4 5.4 0 0 1-1 1.39 5.2 5.2 0 0 1-1.4 1A5.6 5.6 0 0 1 114 39a11.5 11.5 0 0 1-1.87.16H8.44Z"})),O.createElement("path",{d:"M24.77 20.3a4.92 4.92 0 0 1 2.36-4.15 5.08 5.08 0 0 0-4-2.16c-1.67-.18-3.3 1-4.16 1s-2.19-1-3.61-1a5.31 5.31 0 0 0-4.47 2.73C9 20.11 10.4 25 12.25 27.74c.93 1.33 2 2.81 3.43 2.75s1.9-.88 3.58-.88 2.14.88 3.59.85 2.43-1.33 3.32-2.67a11.1 11.1 0 0 0 1.52-3.09 4.77 4.77 0 0 1-2.92-4.4M22 12.21a4.9 4.9 0 0 0 1.11-3.49 5 5 0 0 0-3.21 1.66 4.65 4.65 0 0 0-1.14 3.36A4.11 4.11 0 0 0 22 12.21m20.3 14.93h-4.73l-1.14 3.36h-2l4.48-12.42H41l4.48 12.42h-2Zm-4.24-1.55h3.75L40 20.14h-.05Zm17.1.41c0 2.81-1.51 4.62-3.78 4.62A3.09 3.09 0 0 1 48.53 29v4.48h-1.9v-12h1.8V23a3.22 3.22 0 0 1 2.89-1.6c2.33-.05 3.84 1.76 3.84 4.6m-1.91 0c0-1.83-1-3-2.39-3s-2.38 1.23-2.38 3 1 3.05 2.38 3.05 2.39-1.23 2.39-3.05m11.87 0c0 2.81-1.5 4.62-3.77 4.62A3.08 3.08 0 0 1 58.5 29v4.48h-1.9v-12h1.8V23a3.22 3.22 0 0 1 2.88-1.6c2.33-.05 3.84 1.76 3.84 4.6m-1.91 0c0-1.83-.94-3-2.39-3s-2.37 1.23-2.37 3 .95 3 2.37 3 2.39-1.18 2.39-3m8.5 1c.14 1.23 1.33 2 3 2s2.69-.81 2.69-1.92-.68-1.54-2.29-1.94l-1.61-.39c-2.28-.55-3.33-1.61-3.33-3.34 0-2.15 1.86-3.62 4.51-3.62s4.43 1.47 4.49 3.62h-1.91c-.11-1.24-1.14-2-2.63-2s-2.52.75-2.52 1.86c0 .87.65 1.39 2.25 1.79l1.37.33c2.55.6 3.61 1.63 3.61 3.44 0 2.33-1.86 3.78-4.8 3.78-2.75 0-4.61-1.42-4.73-3.66Zm11.64-7.7v2.14h1.72v1.47h-1.72v5c0 .77.34 1.13 1.1 1.13a5 5 0 0 0 .61 0v1.46a5.2 5.2 0 0 1-1 .09c-1.84 0-2.55-.69-2.55-2.45v-5.23h-1.35v-1.47h1.32V19.3Zm2.71 6.7c0-2.85 1.68-4.64 4.3-4.64s4.29 1.79 4.29 4.64-1.65 4.61-4.29 4.61-4.3-1.78-4.3-4.61m6.7 0c0-1.95-.9-3.11-2.4-3.11S88 24 88 26s.89 3.11 2.4 3.11 2.36-1.18 2.36-3.11m3.43-4.56H98V23a2.16 2.16 0 0 1 2.18-1.63 2.6 2.6 0 0 1 .64.07v1.74A2.4 2.4 0 0 0 100 23a1.88 1.88 0 0 0-2 2.13v5.37h-1.81Zm13.19 6.4c-.25 1.64-1.85 2.77-3.89 2.77-2.64 0-4.27-1.77-4.27-4.6s1.64-4.68 4.19-4.68 4.08 1.72 4.08 4.47v.63h-6.4v.12a2.36 2.36 0 0 0 2.44 2.56 2.05 2.05 0 0 0 2.09-1.27Zm-6.28-2.71h4.53a2.17 2.17 0 0 0-2.22-2.29 2.3 2.3 0 0 0-2.31 2.29M37.83 8.73a2.64 2.64 0 0 1 2.8 3c0 1.9-1 3-2.8 3h-2.16v-6Zm-1.23 5.12h1.12a1.87 1.87 0 0 0 2-2.14 1.88 1.88 0 0 0-2-2.14H36.6Zm5.08-1.41a2.13 2.13 0 1 1 4.25 0 2.13 2.13 0 1 1-4.25 0m3.33 0c0-1-.43-1.54-1.2-1.54s-1.21.57-1.21 1.54S43 14 43.81 14 45 13.42 45 12.44Zm6.56 2.26h-.92l-.93-3.32h-.07l-.93 3.32h-.91l-1.24-4.51h.9l.81 3.44h.06l.93-3.44h.85l.93 3.44h.07l.8-3.44h.89Zm2.28-4.51h.86v.72h.07a1.33 1.33 0 0 1 1.34-.8 1.46 1.46 0 0 1 1.56 1.67v2.92h-.89V12c0-.73-.32-1.09-1-1.09a1 1 0 0 0-1.08 1.14v2.65h-.89Zm5.24-1.75H60v6.26h-.89Zm2.13 4a2.13 2.13 0 1 1 4.25 0 2.13 2.13 0 1 1-4.25 0m3.33 0c0-1-.44-1.54-1.21-1.54s-1.2.57-1.2 1.54.43 1.56 1.2 1.56 1.21-.58 1.21-1.56m1.85.98c0-.81.6-1.27 1.68-1.34L69.3 12v-.39c0-.47-.32-.74-.93-.74s-.84.18-.93.5h-.87c.1-.78.82-1.27 1.84-1.27s1.77.56 1.77 1.51v3.09h-.86v
10-.64h-.07a1.49 1.49 0 0 1-1.35.71 1.36 1.36 0 0 1-1.5-1.35m2.9-.42v-.38l-1.1.07c-.62 0-.91.26-.91.65s.36.64.84.64A1.06 1.06 0 0 0 69.3 13m2.05-.56c0-1.42.73-2.32 1.87-2.32a1.49 1.49 0 0 1 1.38.79h.06V8.44h.89v6.26h-.85V14h-.07a1.56 1.56 0 0 1-1.41.78c-1.15-.01-1.87-.91-1.87-2.34m.92 0c0 1 .45 1.53 1.2 1.53s1.21-.58 1.21-1.52-.47-1.53-1.21-1.53-1.2.58-1.2 1.52m6.96 0a2.13 2.13 0 1 1 4.25 0 2.13 2.13 0 1 1-4.25 0m3.33 0c0-1-.44-1.54-1.2-1.54s-1.21.57-1.21 1.54.43 1.56 1.21 1.56 1.2-.58 1.2-1.56m2.11-2.25h.85v.72h.07a1.36 1.36 0 0 1 1.35-.8 1.46 1.46 0 0 1 1.55 1.67v2.92h-.88V12c0-.73-.32-1.09-1-1.09a1 1 0 0 0-1.07 1.14v2.65h-.89Zm8.85-1.12v1.15h1V11h-1v2.32c0 .47.19.68.63.68h.34v.74a3.5 3.5 0 0 1-.48 0c-1 0-1.38-.34-1.38-1.21V11h-.72v-.74h.72V9.07Zm2.18-.63h.89v2.48h.07a1.37 1.37 0 0 1 1.34-.81 1.48 1.48 0 0 1 1.55 1.68v2.91h-.89V12c0-.72-.33-1.08-1-1.08a1.06 1.06 0 0 0-1.14 1.14v2.64h-.82Zm9.06 5.04a1.82 1.82 0 0 1-2 1.3 2 2 0 0 1-2.08-2.32 2.08 2.08 0 0 1 2.08-2.35c1.25 0 2 .85 2 2.27v.31h-3.17v.05a1.18 1.18 0 0 0 1.24 1.26 1.1 1.1 0 0 0 1.08-.55ZM101.64 12h2.27a1.09 1.09 0 0 0-1.11-1.17 1.15 1.15 0 0 0-1.16 1.17",style:{fill:"#fff"}})));function ep(){return(ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eh=(0,O.forwardRef)(({title:e,titleId:t,...r},n)=>O.createElement("svg",ep({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 120 40",ref:n,"aria-labelledby":t},r),e?O.createElement("title",{id:t},e):null,v||(v=O.createElement("g",{clipPath:"url(#app-store_nb-NO_svg__a)"},O.createElement("path",{fill:"#A6A6A6",d:"M110.14 0H8.44l-.92.01c-.67.01-1.34.07-2 .18A6.67 6.67 0 0 0 2 2 6.26 6.26 0 0 0 .2 5.53a13 13 0 0 0-.18 2L0 8.44v23.12c0 .3 0 .61.02.92a13 13 0 0 0 .17 2A6.6 6.6 0 0 0 2 38a6.27 6.27 0 0 0 3.53 1.81c.66.1 1.33.17 2 .18h.92l1.1.01h101.66l.92-.01c.67-.01 1.34-.07 2-.18a6.3 6.3 0 0 0 4.7-3.42c.31-.6.52-1.25.63-1.9.1-.67.17-1.34.18-2.01v-.92l.01-1.1V7.52c-.02-.67-.08-1.34-.2-2A6.47 6.47 0 0 0 114.14.2c-.65-.1-1.32-.17-1.99-.18h-.92z"}),O.createElement("path",{fill:"#000",d:"M8.44 39.13c-.3 0-.6 0-.9-.02-.63 0-1.25-.06-1.87-.16a5.9 5.9 0 0 1-3.05-1.56 5.32 5.32 0 0 1-1.57-3.06C.95 33.71.9 33.1.9 32.46l-.02-.92V8.44l.02-.89c0-.63.06-1.25.16-1.87a5.76 5.76 0 0 1 1.56-3.06 5.57 5.57 0 0 1 3.06-1.57C6.29.95 6.9.9 7.54.9l.9-.02h102.77l.92.02c.62 0 1.24.06 1.86.16a5.59 5.59 0 0 1 4.62 4.62c.1.62.16 1.25.17 1.88v.9l.01 1.09v22l-.01.93c-.01.62-.07 1.24-.17 1.85a5.7 5.7 0 0 1-1.56 3.06 5.4 5.4 0 0 1-3.06 1.57c-.62.1-1.25.16-1.87.16l-.9.02H8.44Z"}),O.createElement("path",{fill:"#fff",d:"M24.77 20.3a4.95 4.95 0 0 1 2.36-4.15 5.07 5.07 0 0 0-4-2.16c-1.67-.18-3.3 1-4.16 1-.87 0-2.19-.98-3.6-.95a5.32 5.32 0 0 0-4.48 2.73c-1.93 3.34-.5 8.26 1.36 10.97.93 1.33 2.01 2.8 3.43 2.75 1.39-.05 1.9-.88 3.58-.88 1.66 0 2.14.88 3.59.85 1.49-.02 2.43-1.33 3.32-2.67.67-.94 1.18-1.99 1.52-3.09a4.78 4.78 0 0 1-2.92-4.4m-2.73-8.09a4.87 4.87 0 0 0 1.11-3.49 4.96 4.96 0 0 0-4.11 3.23c-.2.57-.28 1.18-.24 1.8a4.1 4.1 0 0 0 3.24-1.54M42.3 27.14h-4.73l-1.14 3.36h-2l4.48-12.42H41l4.49 12.42h-2.04l-1.14-3.36Zm-4.24-1.55h3.75l-1.85-5.45h-.05zm17.1.38c0 2.81-1.5 4.62-3.78 4.62a3.07 3.07 0 0 1-2.85-1.58h-.04v4.48h-1.86V21.44h1.8v1.5h.03a3.21 3.21 0 0 1 2.89-1.6c2.3 0 3.81 1.82 3.81 4.63m-1.91 0c0-1.83-.95-3.04-2.4-3.04-1.41 0-2.37 1.23-2.37 3.04 0 1.82.96 3.05 2.38 3.05 1.44 0 2.39-1.2 2.39-3.05m11.87 0c0 2.81-1.5 4.62-3.77 4.62a3.07 3.07 0 0 1-2.85-1.58h-.05v4.48H56.6V21.44h1.8v1.5h.03a3.21 3.21 0 0 1 2.88-1.6c2.3 0 3.81 1.82 3.81 4.63m-1.9 0c0-1.83-.95-3.04-2.4-3.04-1.42 0-2.37 1.23-2.37 3.04 0 1.82.95 3.05 2.37 3.05 1.45 0 2.4-1.2 2.4-3.05m8.49 1.07c.14 1.23 1.33 2.04 2.97 2.04 1.57 0 2.7-.81 2.7-1.92 0-.97-.69-1.54-2.3-1.94l-1.6-.39c-2.29-.55-3.34-1.61-3.34-3.34 0-2.15 1.86-3.62 4.51-3.62 2.63 0 4.43 1.47 4.49 3.62h-1.88c-.11-1.24-1.14-2-2.63-2-1.5 0-2.52.76-2.52 1.87 0 .87.65 1.4 2.25 1.79l1.37.33c2.55.6 3.6 1.63 3.6 3.44 0 2.33-1.85 3.78-4.79 3.78-2.75 0-4.61-1.42-4.73-3.66zm11.64-7.74v2.14h1.72v1.47h-1.72v5c0 .77.34 1.13 1.1 1.13.2 0 .4-.02.6-.04v1.46c-.33.07-.68.1-1.02.09-1.84 0-2.55-.7-2.55-2.45v-5.19h-1.32v-1.47h1.32V19.3zm2.71 6.67c0-2.85 1.68-4.64 4.3-4.64s4.3 1.8 4.3 4.64c0 2.86-1.67 4.64-4.3 4.64s-4.3-1.78-4.3-4.64m6.7 0c0-1.95-.9-3.1-2.4-3.1s-2.4 1.15-2.4 3.1c0 1.96.9 3.1 2.4 3.1s2.4-1.14 2.4-3.1m3.43-4.53h1.77v1.54H98a2.16 2.16 0 0 1 2.18-1.63c.21 0 .43.02.64.07v1.74a2.6 2.6 0 0 0-.84-.12 1.87 1.87 0 0 0-1.94 2.09v5.37H96.2v-9.06Zm13.19 6.4c-.25 1.64-1.85 2.77-3.9 2.77-2.63 
100-4.26-1.77-4.26-4.6 0-2.84 1.64-4.68 4.19-4.68 2.5 0 4.08 1.72 4.08 4.47v.63h-6.4v.12a2.35 2.35 0 0 0 2.44 2.56 2.04 2.04 0 0 0 2.09-1.27zm-6.28-2.7h4.53a2.17 2.17 0 0 0-2.22-2.3 2.3 2.3 0 0 0-2.3 2.3ZM39.4 14.7h-3.73V8.73h.93v5.12h2.8zm.93-1.28c0-.8.6-1.27 1.67-1.34l1.22-.07v-.39c0-.47-.31-.74-.92-.74-.5 0-.84.18-.94.5h-.86c.1-.78.82-1.27 1.84-1.27 1.13 0 1.77.56 1.77 1.51v3.08h-.86v-.64h-.07a1.51 1.51 0 0 1-1.35.71 1.36 1.36 0 0 1-1.5-1.35m2.9-.38v-.38l-1.1.07c-.63.04-.9.26-.9.65 0 .4.34.64.83.64a1.06 1.06 0 0 0 1.16-.98Zm3.92-2.94c1 0 1.67.48 1.76 1.27h-.86c-.08-.33-.4-.54-.9-.54s-.88.24-.88.59c0 .27.23.44.72.55l.75.17c.85.2 1.25.57 1.25 1.23 0 .85-.79 1.41-1.86 1.41s-1.77-.48-1.85-1.28h.89a.91.91 0 0 0 .98.56c.55 0 .95-.24.95-.6 0-.27-.21-.45-.67-.55l-.78-.19c-.86-.2-1.25-.58-1.25-1.25 0-.8.73-1.36 1.75-1.36Zm4.21-1.03v1.15h.98v.74h-.98v2.32c0 .47.2.68.64.68l.34-.02v.74a3 3 0 0 1-.49.04c-.98 0-1.38-.35-1.38-1.21v-2.55h-.71v-.75h.71V9.07h.9Zm4.59 1.13h.86v.71h.06a1.35 1.35 0 0 1 1.35-.8 1.46 1.46 0 0 1 1.56 1.67v2.92h-.9V12c0-.72-.3-1.08-.96-1.08a1.03 1.03 0 0 0-1.08 1.14v2.64h-.89zm9.01 3.28a1.83 1.83 0 0 1-1.95 1.3 2.05 2.05 0 0 1-2.08-2.32A2.08 2.08 0 0 1 63 10.11c1.26 0 2.01.85 2.01 2.27v.3h-3.18v.06a1.2 1.2 0 0 0 1.2 1.29 1.08 1.08 0 0 0 1.07-.55zm-3.13-1.45h2.28A1.09 1.09 0 0 0 63 10.86a1.15 1.15 0 0 0-1.17 1.17m4.15.41c0-1.42.73-2.32 1.87-2.32a1.48 1.48 0 0 1 1.38.79h.07V8.44h.89v6.26h-.85v-.71h-.07a1.56 1.56 0 0 1-1.42.78c-1.14 0-1.87-.9-1.87-2.33m.92 0c0 .96.45 1.53 1.2 1.53s1.22-.58 1.22-1.52-.47-1.53-1.22-1.53c-.74 0-1.2.58-1.2 1.52m7.5-1.48h-.73v-.74h.74v-.44c0-.92.5-1.3 1.44-1.3.16 0 .32.01.47.04v.71a2.4 2.4 0 0 0-.39-.03c-.42 0-.65.2-.65.63v.39h1v.74h-.98v3.74h-.9zm3.02-.76h.85v.69h.07a1.22 1.22 0 0 1 1.22-.77c.13 0 .26.01.4.04v.87a2.4 2.4 0 0 0-.5-.05 1.05 1.05 0 0 0-1.15 1.06v2.66h-.9v-4.5Zm3.23 3.22c0-.8.6-1.27 1.68-1.34l1.22-.07v-.39c0-.47-.32-.74-.93-.74-.5 0-.84.18-.93.5h-.86c.09-.78.81-1.27 1.84-1.27 1.12 0 1.76.56 1.76 1.51v3.08h-.85v-.64h-.07a1.51 1.51 0 0 1-1.36.71 1.36 1.36 0 0 1-1.5-1.35m2.9-.38v-.38l-1.1.07c-.62.04-.9.26-.9.65 0 .4.35.64.83.64a1.06 1.06 0 0 0 1.17-.98"}))),b||(b=O.createElement("defs",null,O.createElement("clipPath",{id:"app-store_nb-NO_svg__a"},O.createElement("path",{fill:"#fff",d:"M0 0h119.66v40H0z"})))))),ef={[X.NB_NO]:eh},em=({locale:e})=>{let t=e&&ef[e]||ed;return(0,V.jsx)(t,{role:"presentation",className:el().root})};var eg=r(54688),ey=r(82726),ev=r(69222),eb=r(17698),e_=r.n(eb),eO=r(52238);let eC=["cmsLink","className","children","size","variant"];function eE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ew(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eE(Object(r),!0).forEach(function(t){(0,_.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eP=(0,O.forwardRef)((e,t)=>{let{cmsLink:r,className:n,children:a,size:i="m",variant:o="standalone-regular"}=e,s=(0,eg.A)(e,eC),{basePath:c}=(0,I.useRouter)(),l=(0,eO.$)(r.app,r.asParam||r.href,r.forceRefresh,r.queryString),u=c?.substring(1)||Y.b.content.app,d=!!(r.app&&u!==r.app),p=!!(r.forceRefresh||d&&(r.onClick||l)),h=!!(l||r.onClick),f=ew({className:n,size:i,variant:o},s);if(!h)return null;if(!l)return(0,V.jsx)(ey.$,ew(ew({onClick:r.onClick,ref:t},f),{},{children:a}));let m=ew(ew({},f),{},{href:l,ref:t,target:r.target,onClick:r.onClick});return p?(0,V.jsx)(ev.N,ew(ew({},m),{},{children:a})):(0,V.jsx)(ev.N,ew(ew({as:e_()},m),{},{children:a}))});var eI=r(96970);let ex=({onLocaleSwitch:e,locale:t,locales:r})=>{let[n]=(0,x.B)(),a=r.map(({value:e,text:t})=>({value:e,label:t}));return(0,V.jsx)(eI.l,{title:"lang-select",label:n("addUser.languageLabel"),visuallyHiddenLabel:!0,options:a,onChange:t=>{e(t.target.value)},value:t})};var eS=r(77530),eT=r.n(eS);function eN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?eN(Object(r),!0).forEach(function(t){(0,_.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ej={facebook:"facebook",instagram:"instagram",linkedin:"linkedin",x:"x",youtube:"youtube"},ek=({socialItems:e,navigationItems:t,appLinkItems:r,languageSwitch:n,copyrightText:a,legalItems:i,locale:o,locales:s,handleLocaleChange:c})=>{let{isMobileApp:l}=(0,Z.N)(),{sendClickFooterGtmTag:u}=(0,D.PB)(),{computeCmsLink:d}=(0,A.H)(),[p]=(0,x.B)(),h=(0,O.useMemo)(()=>t?.map(e=>({title:e?.teaserTitle,content:e?.items?.map((t,r)=>(0,V.jsx)(eP,{className:(0,J.A)(eT().mobileLink,eT().cmsButtonLink),cmsLink:d(t?.teaserTargets,()=>u({linkId:t?.id})),"data-testid":`${e.teaserTitle}-mobileLinks`,size:"l",children:t?.teaserTitle},r)),"data-testid":`${e?.teaserTitle}-mobileCategory`})),[]);return(0,V.jsxs)("footer",{className:eT().footer,children:[(0,V.jsxs)("div",{className:eT().container,children:[(0,V.jsxs)("div",{className:eT().socialMedia,"data-testid":"socialMediaAndNewsLetter",children:[(0,V.jsx)(k.E,{size:"body-2",color:"subtle",className:eT().socialText,children:(0,V.jsx)($.r,{tree:e?.plainTeaserTextAsTree?.textAsTree,options:{size:"body-2",color:"subtle"},className:eT().socialText})}),(0,V.jsx)("ul",{className:eT().socialLinks,"data-testid":"socialMedia",children:e?.items?.map((e,t)=>{let r=(e=>{let t=e?.name?.split(" ")[0].toLowerCase();return ej[t]?t:void 0})(e),n=eA(eA({},d(e?.teaserTargets,()=>u({linkId:e?.media?.[0]?.id}))),{},{title:e?.media?.[0]?.name});return(0,V.jsx)("li",{children:"CMTeaser"===e.type&&r?(0,V.jsx)(F.w,eA(eA({},n),{},{size:"s",icon:r,variant:"ghost"})):(0,V.jsx)(F.w,eA(eA({},n),{},{size:"s",children:e?.teaserTargets?.[0]?.target?.teaserTitle}))},t)})})]}),t?.map((e,t)=>(0,V.jsxs)("div",{className:eT().desktopLinksContainer,children:[(0,V.jsx)(k.E,{size:"body-4",as:"p","data-testid":`${e?.teaserTitle}-desktopCategory`,children:e?.teaserTitle}),(0,V.jsx)("ul",{className:eT().desktopLinks,"data-testid":"desktopLinks",children:e?.items?.map((e,t)=>{let r=d(e?.teaserTargets,()=>u({linkId:e?.id}));return(e=>e.href||e.onClick)(r)?(0,V.jsx)("li",{children:(0,V.jsx)(eP,{className:eT().cmsButtonLink,cmsLink:r,"data-testid":`${e?.teaserTitle}-desktopLinks`,children:e?.teaserTitle})},t):null})})]},t)),(0,V.jsx)(K._,{className:eT().accordion,items:h,titleLevel:"h5",allowMultiple:!1})]}),(0,V.jsxs)("div",{className:eT().storeAndLangSwitcher,children:[!l&&!!r?.length&&(0,V.jsx)("ul",{"data-testid":"appIcons",className:eT().storeLinks,children:r?.map((e,t)=>{let r=e?.media?.[0]?.name;return(0,V.jsx)("li",{children:(0,V.jsxs)(F.w,eA(eA({},d(e?.teaserTargets,()=>u({linkId:e?.media?.[0]?.id}))),{},{variant:"unstyled","aria-label":p(`footer.appLink.${r}`),children:["googleplay"===r&&(0,V.jsx)(es,{locale:o}),"appstore"===r&&(0,V.jsx)(em,{locale:o})]}))},t)})}),n&&(0,V.jsx)("div",{className:eT().langSwitcher,"data-testid":"languageSwitch",children:(0,V.jsx)(ex,{locale:o,locales:s,onLocaleSwitch:c})})]}),(0,V.jsxs)("div",{className:eT().copyrightAndLegalLinks,children:[(0,V.jsx)(k.E,{size:"body-1",children:a}),(0,V.jsx)("ul",{className:eT().legalLinks,children:i?.map((e,t)=>{let r=d(e?.teaserTargets,()=>u({linkId:e?.id}));return(0,V.jsx)("li",{"data-testid":"legalLinks",children:(0,V.jsx)(eP,{size:"s",className:eT().cmsButtonLink,cmsLink:r,children:e?.teaserTitle})},t)})})]})]})};var eD=r(31840),eR=r.n(eD);function eL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eL(Object(r),!0).forEach(function(t){(0,_.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eL(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eF={facebook:"facebook",instagram:"instagram",linkedin:"linkedin",x:"x",youtube:"youtube"},e$=({socialItems:e,navigationItems:t,languageSwitch:r,footerText:n,locale:a,locales:i,handleLocaleChange:o})=>{let{computeCmsLink:s}=(0,A.H)(),{sendClickFooterGtmTag:c}=(0,D.PB)();return(0,V.jsxs)("footer",{"data-testid":"footer-light",className:eR().footer,children:[n&&(0,V.jsx)("div",{className:eR().top,children:(0,V.jsx)("div",{"data-testid":"footer-light-text",className:eR().copyright,children:(0,V.jsx)($.r,{tree:n})})}),(0,V.jsxs)("div",{className:eR().bottom,children:[!!t&&(0,V.jsx)("div",{className:eR().footerLinks,"data-testid":"footer-light-links",children:(0,V.jsx)("ul",{children:t?.map((e,t)=>{let r=s(e?.teaserTargets,()=>c({linkId:e?.id}));return(e=>e.href||e.onClick)(r)?(0,V.jsx)("li",{children:(0,V.jsx)(eP,{size:"s","data-testid":`footer-light-link-${e?.teaserTitle}`,cmsLink:r,children:e?.teaserTitle})},t):null})})}),(0,V.jsxs)("div",{className:eR().socialLanguage,children:[(0,V.jsx)("ul",{className:eR().socialLinks,"data-testid":"footer-light-social-media",children:e?.items?.map((e,t)=>{let r=(e=>{let t=e?.name?.split(" ")[0].toLowerCase();return eF[t]?t:void 0})(e),n=eM(eM({},s(e?.teaserTargets,()=>c({linkId:e?.media?.[0]?.id}))),{},{title:e?.media?.[0]?.name});return(0,V.jsx)("li",{children:"CMTeaser"===e.type&&r?(0,V.jsx)(F.w,eM(eM({},n),{},{size:"s",icon:r,variant:"ghost"})):(0,V.jsx)(F.w,eM(eM({},n),{},{size:"s",children:e?.teaserTargets?.[0]?.target?.teaserTitle}))},t)})}),r&&(0,V.jsx)("div",{className:eR().langSwitcher,"data-testid":"footer-light-language-switch",children:(0,V.jsx)(ex,{locale:a,locales:i,onLocaleSwitch:o})})]})]})]})};var eB=r(97443),eU=r.n(eB);function eV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?eV(Object(r),!0).forEach(function(t){(0,_.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eV(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eG=E()(()=>Promise.all([r.e(4745),r.e(9332),r.e(8183),r.e(4801),r.e(68),r.e(5877),r.e(8578),r.e(8690)]).then(r.bind(r,76294)).then(e=>e.ContactFormContainer),{loadableGenerated:{webpack:()=>[76294]}}),ez=[Q.GV.checkout],eH=[Y.b.account.userActivation,Y.b.account.activationEmailSent,Y.b.account.activeDirectory.login,Y.b.account.createAccount,Y.b.content.editDashboard,Y.b.account.noAccount],eW=[Y.b.account.productReturns,Y.b.account.productReturnsCustomerInfo,Y.b.account.productReturnsReviewSummary],eQ=({showReinsurance:e=!1,localeVariants:t})=>{let r,{locales_list:n,appName:a}=(0,T.rD)(),{basePath:i,query:o,asPath:s,pathname:c}=(0,I.useRouter)(),l=(0,N.mH)(),{computeCmsLink:u}=(0,A.H)(),[d,p]=(0,S.Y)(t),[h]=(0,x.B)(),f=(0,O.useMemo)(()=>(n?.split(",")||[]).map(e=>({value:e?.toLowerCase(),text:h(`languages.${e}`)})),[n,h]);if(!l)return null;let m=(ez.includes(a)||((e,t,r)=>{if(eH.includes(t))return!0;let n=r?.returnId;return!!n&&eW.some(t=>{let r=t(n);return e.includes(r)})})(s,c,o))&&l?.footerLight?.length>0,g=l?.footer&&!m,y=g?(e=>{let t=e?.[0]?.content?.[0]?.teaserTargets,r=t?.[0]?.target?.items,n=t?.[2]?.target?.items;return{socialItems:r?.[0],navigationItems:r?.slice(1,r.length)||[],appLinkItems:t?.[1]?.target?.items.filter(e=>"CMTeaser"===e.type),languageSwitch:t?.[1]?.target?.items?.find(e=>"CMPlaceholder"===e.type||"Language"===e.title),copyrightText:n?.[0]?.teaserTitle,legalItems:n?.slice(1,n.length)}})(l.footer):null,v=m?(e=>{let t=e?.[0]?.content?.[0]?.items;return t?{socialItems:t[1],navigationItems:t[0]?.items?.slice(1)||[],languageSwitch:t.find(e=>"CMPlaceholder"===e.type||"Language"===e.title),footerText:t[0]?.teaserText?.textAsTree}:null})(l.footerLight):null,b=l?.reinsurance?.[0]?.content?.[0],_=(r=y?.socialItems||v?.socialItems,r?.items?.map(e=>{let{href:t}=u(e.teaserTargets);return t})?.filter(Boolean));return(0,V.jsx)(j,{children:(0,V.jsxs)("div",{className:eU().footerSection,children:[(0,V.jsx)(P(),{children:(0,V.jsx)(W.i,{basePath:i,properties:{sameAs:_}})}),e&&l?.reinsurance?(0,V.jsx)(H,{data:b?.items}):null,g?(0,V.jsx)(ek,eq({locale:d,handleLocaleChange:p,locales:f},y)):null,m?(0,V.jsx)(e$,eq({locale:d,handleLocaleChange:p,locales:f},v)):null,(0,V.jsx)(eG,{})]})})}},28066:(e,t,r)=>{"use strict";var n;r.d(t,{Ll:()=>c,aD:()=>o,aZ:()=>a,cE:()=>n,ou:()=>i});class a{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,r,n,a,i){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=a,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},s=new Set(Object.keys(o));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(n||(n={}))},28088:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{G:()=>n})},28234:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});var n=(0,r(60004).createContext)(null)},28316:(e,t,r)=>{"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var a=t,i=n;if(0===a.length)return"[]";if(i.length>2)return"[Array]";let r=Math.min(10,a.length),o=a.length-r,s=[];for(let t=0;t<r;++t)s.push(e(a[t],i));return 1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`),"["+s.join(", ")+"]"}var o=t,s=n;let c=Object.entries(o);return 0===c.length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+c.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>n})},28399:(e,t,r)=>{var n=r(1935),a=r(11501),i=r(58311),o=i&&i.isTypedArray;e.exports=o?a(o):n},28589:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n=r(12072),a=r(60004),i=r(43207),o=r(68915),s=r(2117),c=r(89460),l=r(86263),u=r(71403),d=r
10(43797),p=r(26589),h=r(62033),f=r(33337),m=r(26137),g=r(17480),y=r(44507),v=r(21475),b=r.n(v),_=r(52304),O=r(32843),C=r(19155),E=r(46291),w=r(31437),P=r(40657),I=r.n(P),x=r(60072);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let N=(0,a.memo)(({productData:e,href:t,isLogged:r,onSelected:n})=>{let a=[e?.brandName,e?.productTitle].join(" - "),i=(e=>(({greenRating:e,hasCarbonFootPrint:t})=>e??(t?"None":void 0))({greenRating:e?.greenRating,hasCarbonFootPrint:!!e?.carbonFootprint}))(e),o=e.iconCodes;return(0,x.jsxs)("div",{className:I().container,"data-testid":"product-card-image-container",children:[(0,x.jsx)(l.w,T(T({className:I().productLink,variant:"unstyled","data-testid":`product-list-card-${e?.productId}`,tabIndex:-1,"aria-hidden":"true",onClick:n},t),{},{children:(0,x.jsx)(_._,{className:r?I().productImage:I().unloggedProductImage,ratio:"square",onError:E.lG,src:e?.productImage||w.Yy,alt:a,"data-testid":"product-card-image"})})),r&&(0,x.jsxs)("div",{className:I().greenRating,children:[i&&(0,x.jsx)(C.TD,{variant:i,size:"m","data-testid":"green-rating"}),(0,x.jsx)(O.r,{iconCodes:o,greenVariant:i,isSuggestedProductCard:!0})]})]})});function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let k=({productId:e,index:t,isRecommendedProduct:r=!1})=>{let{showProductCta:n,notSoldAnymore:v}=(0,g.oo)(e),{hasVariant:_,href:O}=(0,g._)(e),{isLoggedIn:C}=(0,o.Z2)(),{product:E,priceData:w,price:P,inStock:I,stocks:S}=(0,g.mq)(e),{maxQuantity:T}=(0,g.G2)(e),{productData:A}=(0,g.gZ)(e),{productTitle:k}=A,[D]=(0,i.B)(),{sendClickVariants:R,sendSelectItemGtmTag:L}=(0,s.PB)(),M=(0,a.useCallback)(()=>{R({product:E,priceData:w,stock:I})},[I,w,E,R]),{showBanner:F,variant:$,label:B}=(0,g.VW)(e),U=(0,a.useCallback)(()=>{let{listName:e}=(0,c.v)(r);L({docs:[j(j({},E),{},{price:P,stockData:S})],index:t,listName:e,isRecommendedProduct:r})},[t,P,E,L,S,r]);return(0,x.jsx)("div",{className:b().suggestedCardContainer,"data-testid":"suggested-product-card","data-cs-capture":!0,children:C?(0,x.jsxs)("div",{"data-testid":"logged-suggested-product-card",children:[F&&(0,x.jsx)(y.Q,{variant:$,label:B}),(0,x.jsxs)("div",{className:b().productInfos,children:[(0,x.jsx)(N,{productData:A,href:O,isLogged:C,onSelected:U}),(0,x.jsx)(u.d,{productId:e,onSelected:U})]}),!v&&(0,x.jsx)(d.G,{productId:e}),(0,x.jsx)(p.a,{productId:e,className:b().marketPlaceContainer}),!n&&(0,x.jsx)(h.f,{productId:e,maxQuantity:T,className:b().quantityCounter,productIndex:t}),(0,x.jsx)(f.B,{productId:e}),_&&(0,x.jsx)(l.w,j(j({className:b().variant,onClick:()=>M(),variant:"underlined","data-testid":`suggested-product-card-${e}-has-variants`},O),{},{children:D("catalog.productCard.hasVariants")})),(0,x.jsx)(m.a,{productId:e,isGridView:!0,className:b().stockInfoContainer})]}):(0,x.jsxs)("div",{className:b().productInfos,"data-testid":"unlogged-suggested-product-card",children:[(0,x.jsx)(N,{productData:A,href:O,isLogged:C}),(0,x.jsx)(u.d,{productId:e}),(0,x.jsx)(l.w,{app:O?.app,href:O?.href,className:b().iconContainer,icon:"chevron-right","data-testid":`product-select-${A.productId}`,variant:"ghost",title:D("catalog.learnMore",{productTitle:k})})]})})}},28722:e=>{e.exports={popover:"attribute-icon-popover_popover__qUSiw",content:"attribute-icon-popover_content__bFQgt"}},28804:e=>{e.exports={skeletonGroup:"store-locator-card-skeleton_skeletonGroup__simks",skeletonInner:"store-locator-card-skeleton_skeletonInner__yEP_T",marginTop:"store-locator-card-skeleton_marginTop__iom3c",containerBottom:"store-locator-card-skeleton_containerBottom__TwXEO",blockLeft:"store-locator-card-skeleton_blockLeft__arOnZ",padding:"store-locator-card-skeleton_padding__ldUv6"}},29139:(e,t,r)=>{var n=r(7078),a=r(93191),i=r(42504),o=r(23017),s=r(96299),c=r(32410),l=r(12727),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=l(n),g=l(a),y=l(i),v=l(o),b=l(s),_=c;(n&&_(new n(new ArrayBuffer(1)))!=f||a&&_(new a)!=u||i&&_(i.resolve())!=d||o&&_(new o)!=p||s&&_(new s)!=h)&&
10(_=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case m:return f;case g:return u;case y:return d;case v:return p;case b:return h}return t}),e.exports=_},29299:e=>{e.exports={mobileMenuListWrapper:"mobile-menu-drawer-content_mobileMenuListWrapper__rxHiF"}},29765:e=>{e.exports={container:"modal-body-header_container__3Cesu",title:"modal-body-header_title__nyhj7",card:"modal-body-header_card__FoLuS",subtitle:"modal-body-header_subtitle__zJwvt"}},30058:(e,t,r)=>{"use strict";r.d(t,{s:()=>c});var n=r(85587),a=(e,t)=>{let r=t.filter(t=>t.name===e&&!t.hasAttribute("disabled")&&"true"!==t.getAttribute("aria-hidden"));return r.find(e=>e.checked)??r[0]},i=e=>{let t=Array.from(e.querySelectorAll('a[href], button, input:not([type="hidden"]):not([disabled]), textarea, select, details, [tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden")),r=Array.from(e.querySelectorAll('input[type="radio"]')),n=[],i=new Set;for(let e of t)if(e instanceof HTMLInputElement&&"radio"===e.type&&e.name){if(!i.has(e.name)){let t=a(e.name,r);t&&n.push(t),i.add(e.name)}}else n.push(e);return n},o=r(60004),s=(0,n.h)(),c=(0,o.forwardRef)(({active:e,children:t,preventScroll:r=!1,...n},a)=>{let c=(0,o.useRef)(null),l=a??c;return(0,o.useEffect)(()=>{if("current"in l){let t=l.current;if(e&&t){let e=i(t)[0];setTimeout(()=>{e.focus({preventScroll:r})});let n=e=>{if("Tab"===e.key){let r=i(t),n=r[0],a=r[r.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),n.focus())}};return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}}},[e,l,r]),(0,s.jsx)("div",{ref:l,...n,tabIndex:e?0:-1,children:t})});c.displayName="FocusTrap"},30284:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(6513),a=r(5744),i=r(85504),o=r(16178);function s(e,t){let r=(0,o.a)(e,t?.in),s=r.getFullYear(),c=(0,n.q)(),l=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=(0,a.w)(t?.in||e,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);let d=(0,i.k)(u,t),p=(0,a.w)(t?.in||e,0);p.setFullYear(s,0,l),p.setHours(0,0,0,0);let h=(0,i.k)(p,t);return+r>=+d?s+1:+r>=+h?s:s-1}},30306:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},30321:e=>{e.exports={bigContainer:"green-rating_bigContainer__NAoGT",mediumContainer:"green-rating_mediumContainer__nzb6F",smallContainer:"green-rating_smallContainer__uuHKX",smallLetter:"green-rating_smallLetter__4EUmb",normalLetter:"green-rating_normalLetter__zGFfN",noneBigContainer:"green-rating_noneBigContainer__3qwnO",noneSmallContainer:"green-rating_noneSmallContainer__eq_qn",container:"green-rating_container__LaqmB",ratingLetter:"green-rating_ratingLetter__q4oJ3",variantB:"green-rating_variantB__dixR6",variantC:"green-rating_variantC__NxUgi",variantUnknown:"green-rating_variantUnknown__wUWiD"}},30446:e=>{e.exports={actionButton:"error-container_actionButton__uVX18",actionButtonLink:"error-container_actionButtonLink__x8vk3",actionText:"error-container_actionText__MTYXi",errorMessageBoard:"error-container_errorMessageBoard__dvZ_m",errorMain:"error-container_errorMain__QRENS"}},30557:(e,t,r)=>{"use strict";r.d(t,{S:()=>v});var n=r(54688),a=r(12072),i=r(60004),o=r(59100),s=r(12028),c=r(82726),l=r(35695),u=r(43207),d=r(18959),p=r.n(d),h=r(60072);let f=["children","className","data-testid","withScrollbar"];function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let y=({headingTestId:e,href:t,Icon:r,label:n,size:a})=>{let i=t?"a":"div";return(0,h.jsxs)(i,{"data-testid":e,className:(0,l.A)(p().sliderHeading,t&&p().sliderHeadingLink),href:t,children:[r&&(0,h.jsx)(r,{}),(0,h.jsx)(o.D,g(g({},"minor"===a?{as:"h5",weight:"regular",size:"body-4"}:{as:"h3",weight:"light",size:"body-6"}),{},{"data-cs-capture":!0,children:n})),t&&(0,h.jsx)(s.I,{icon:"arrow-right",className:p().sliderHeadingArrow})]})},v=i.forwardRef((e,t)=>
10{let{children:r,className:a,"data-testid":o,withScrollbar:s=!0}=e,d=(0,n.A)(e,f),m=(0,i.useRef)(),[v]=(0,u.B)(),{0:b,1:_}=(0,i.useState)(!0),{0:O,1:C}=(0,i.useState)(!0),{0:E,1:w}=(0,i.useState)(),{0:P,1:I}=(0,i.useState)(),{0:x,1:S}=(0,i.useState)(!0),{0:T,1:N}=(0,i.useState)(!0),A=(0,i.useCallback)(()=>{let e=m.current;e&&(_(!e.scrollLeft),C(e&&e.scrollLeft>=e.scrollWidth-e.clientWidth-1),N(E!==e.scrollLeft),S(P!==e.scrollLeft))},[E,P]);return((0,i.useEffect)(()=>{A()},[r]),Array.isArray(r)&&!r.length)?null:(0,h.jsxs)("div",{ref:t,className:a,children:[d.label&&(0,h.jsx)(y,g({},d)),(0,h.jsxs)("div",{className:p().sliderContainer,children:[(0,h.jsx)("ul",{"data-testid":o,className:(0,l.A)(p().slider,!s&&p().hideScrollBar),ref:m,onScroll:A,tabIndex:-1,children:r}),!b&&(0,h.jsxs)(h.Fragment,{children:[x&&(0,h.jsx)("div",{className:(0,l.A)(p().overlay,p().leftOverlay)}),(0,h.jsx)(c.$,{className:(0,l.A)(p().arrowButton,p().arrowButtonLeft),"data-testid":"slider-left-arrow",icon:"arrow-left",onClick:()=>{let e=m.current;if(!e)return;let t=Array.from(e.children).reverse().find(t=>t.offsetLeft-e.scrollLeft<=0);if(!t)return;let r=t.offsetLeft-e.clientWidth+t.clientWidth;e.scrollTo({left:r,behavior:"smooth"}),w(r)},title:v("account.tablePreferences.scrollPrevious")})]}),!O&&(0,h.jsxs)(h.Fragment,{children:[T&&(0,h.jsx)("div",{className:(0,l.A)(p().overlay,p().rightOverlay)}),(0,h.jsx)(c.$,{className:(0,l.A)(p().arrowButton,p().arrowButtonRight),"data-testid":"slider-right-arrow",icon:"arrow-right",onClick:()=>{let e=m.current;if(!e)return;let t=Array.from(e.children).find(t=>t.offsetLeft+t.clientWidth-e.scrollLeft>=e.clientWidth);if(!t)return;let r=t.offsetLeft;e.scrollTo({left:r,behavior:"smooth"}),I(r)},title:v("account.tablePreferences.scrollNext")})]})]})]})})},30896:(e,t,r)=>{"use strict";r.d(t,{GP:()=>I});var n=r(77361),a=r(6513),i=r(43586),o=r(16178),s=r(77388),c=r(60331),l=r(35525),u=r(30284),d=r(84742);let p={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return(0,d.F)("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):(0,d.F)(r+1,2)},d:(e,t)=>(0,d.F)(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>(0,d.F)(e.getHours()%12||12,t.length),H:(e,t)=>(0,d.F)(e.getHours(),t.length),m:(e,t)=>(0,d.F)(e.getMinutes(),t.length),s:(e,t)=>(0,d.F)(e.getSeconds(),t.length),S(e,t){let r=t.length,n=Math.trunc(e.getMilliseconds()*Math.pow(10,r-3));return(0,d.F)(n,t.length)}},h={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return p.y(e,t)},Y:function(e,t,r,n){let a=(0,u.h)(e,n),i=a>0?a:1-a;if("YY"===t){let e=i%100;return(0,d.F)(e,2)}return"Yo"===t?r.ordinalNumber(i,{unit:"year"}):(0,d.F)(i,t.length)},R:function(e,t){let r=(0,c.p)(e);return(0,d.F)(r,t.length)},u:function(e,t){let r=e.getFullYear();return(0,d.F)(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,d.F)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,d.F)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return(0,d.F)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=(0,l.N)(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):(0,d.F)(a,t.length)},I:function(e,t,r){let n=(0,s.s)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):(0,d.F)(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,r){let n=function(e,t){let r=(0,o.a)(e,void 0);return(0,i.m)(r,function(e,t){let r=(0,o.a)(e,void 0);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):(0,d.F)(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,d.F)(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,d.F)(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return(0,d.F)(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,a=e.getHours();switch(n=12===a?h.noon:0===a?h.midnight:a/12>
10=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,a=e.getHours();switch(n=a>=17?h.evening:a>=12?h.afternoon:a>=4?h.morning:h.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return p.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,d.F)(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):(0,d.F)(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return g(n);case"XXXX":case"XX":return y(n);default:return y(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return g(n);case"xxxx":case"xx":return y(n);default:return y(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(n,":");default:return"GMT"+y(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(n,":");default:return"GMT"+y(n,":")}},t:function(e,t,r){let n=Math.trunc(e/1e3);return(0,d.F)(n,t.length)},T:function(e,t,r){return(0,d.F)(+e,t.length)}};function m(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),i=n%60;return 0===i?r+String(a):r+String(a)+t+(0,d.F)(i,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+(0,d.F)(Math.abs(e)/60,2):y(e,t)}function y(e,t=""){let r=Math.abs(e);return(e>0?"-":"+")+(0,d.F)(Math.trunc(r/60),2)+t+(0,d.F)(r%60,2)}var v=r(65865),b=r(13152),_=r(22805);let O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,E=/^'([^]*?)'?$/,w=/''/g,P=/[a-zA-Z]/;function I(e,t,r){let i=(0,a.q)(),s=r?.locale??i.locale??n.c,c=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,u=(0,o.a)(e,r?.in);if(!(0,_.f)(u))throw RangeError("Invalid time value");let d=t.match(C).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,v.m[t])(e,s.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(E);return t?t[1].replace(w,"'"):e}(e)};if(f[t])return{isToken:!0,value:e};if(t.match(P))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});s.localize.preprocessor&&(d=s.localize.preprocessor(u,d));let p={firstWeekContainsDate:c,weekStartsOn:l,locale:s};return d.map(n=>{if(!n.isToken)return n.value;let a=n.value;return(!r?.useAdditionalWeekYearTokens&&(0,b.xM)(a)||!r?.useAdditionalDayOfYearTokens&&(0,b.ef)(a))&&(0,b.Ss)(a,t,String(e)),(0,f[a[0]])(u,a,s.localize,p)}).join("")}},30987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return a}});let n=r(39531);function a(e,t,a,i){{let o=r(9639).normalizeLocalePath,s=r(19142).detectDomainLocale,c=t||o(e,a).detectedLocale,l=s(i,void 0,c);if(l){let t="http"+(l.http?"":"s")+"://",r=c===l.defaultLocale?"":"/"+c;return""+t+l.domain+(0,n.normalizePathTrailingSlash)(""+r+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
10dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31314:(e,t,r)=>{var n=r(17196),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},31327:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(60004),a=r(68915),i=r(31811);let o=({pageViewEventData:e,sendPageViewGtmTag:t})=>{let{isLoggedIn:r}=(0,a.Z2)(),{activeCart:o}=(0,i.B_)(),s=o?.logisticDetails?.facilityId,c=(0,n.useRef)(!1);(0,n.useEffect)(()=>{(!r||s)&&e&&!c.current&&(t(e),c.current=!0)},[s,r,e,t])}},31437:(e,t,r)=>{"use strict";r.d(t,{DX:()=>c,GV:()=>s,HU:()=>O,IQ:()=>a,Mg:()=>f,Nq:()=>_,OA:()=>P,UK:()=>d,VU:()=>u,Yy:()=>o,Z3:()=>E,_4:()=>C,aA:()=>p,ac:()=>m,cr:()=>w,fi:()=>v,k2:()=>i,qK:()=>b,rS:()=>l,uc:()=>y,vJ:()=>h,xZ:()=>g});let n={SEARCH_RESULT:{listName:"search_result",listId:"1"},CATEGORY_LIST:{listName:"catalog",listId:"2"},FAVORITE_LIST:{listName:"favorite_list",listId:"3"},ALREADY_PURCHASED_LIST:{listName:"already_purchased",listId:"4"},WIDGET:{listName:"br_widget",listId:"5"},PRODUCT_PAGE:{listName:"product_page",listId:"6"},ACCESSORIES:{listName:"accessories",listId:"7"},PERSONALIZED_RECOMMENDATION:{listName:"personalized_recommendation",listId:"8"},BRAND_CATEGORY:{listName:"brand_category",listId:"9"},BRAND_SERIES:{listName:"brand_series",listId:"10"},CART_PERSONALIZED_RECOMMENDATION:{listName:"cart_personalized_recommendation",listId:"11"},RELATED_PRODUCTS:{listName:"related_products",listId:"12"},SIMILAR_PRODUCTS:{listName:"similar_products",listId:"13"},SIMILAR_GREEN_PRODUCTS:{listName:"similar_green_products",listId:"14"},OFTEN_BOUGHT_TOGETHER:{listName:"often_bought_together",listId:"15"},SPONSORED_PRODUCT:{listName:"sponsored_product",listId:"16"},SEARCH_RECO_ENGINE:{listName:"search_reco_engine",listId:"SRE"},SEARCHBOX_SUGGESTIONS:{listName:"searchbox_suggestions",listId:"SBS"}},a=function(e){return e.SEARCH_RESULT="search_result",e.ALREADY_PURCHASED="already_purchased",e.CATEGORY_LIST="catalog",e.FAVORITE_LIST="favorite_list",e.WIDGET="br_widget",e.PERSONALIZED_RECOMMENDATION="personalized_recommendation",e.CART_PERSONALIZED_RECOMMENDATION="cart_personalized_recommendation",e.RELATED_PRODUCTS="related_products",e.PRODUCT_PAGE="product_page",e.ACCESSORIES="accessories",e.BRAND_CATEGORY="brand_category",e.BRAND_SERIES="brand_series",e.SIMILAR_PRODUCTS="similar_products",e.SIMILAR_GREEN_PRODUCTS="similar_green_products",e.OFTEN_BOUGHT_TOGETHER="often_bought_together",e.SPONSORED_PRODUCT="sponsored_product",e.SEARCH_RECO_ENGINE="search_reco_engine",e.SEARCHBOX_SUGGESTIONS="searchbox_suggestions",e}({}),i={[a.ALREADY_PURCHASED]:n.ALREADY_PURCHASED_LIST,[a.CATEGORY_LIST]:n.CATEGORY_LIST,[a.SEARCH_RESULT]:n.SEARCH_RESULT,[a.FAVORITE_LIST]:n.FAVORITE_LIST,[a.WIDGET]:n.WIDGET,[a.PERSONALIZED_RECOMMENDATION]:n.PERSONALIZED_RECOMMENDATION,[a.PRODUCT_PAGE]:n.PRODUCT_PAGE,[a.ACCESSORIES]:n.ACCESSORIES,[a.RELATED_PRODUCTS]:n.RELATED_PRODUCTS,[a.BRAND_CATEGORY]:n.BRAND_CATEGORY,[a.BRAND_SERIES]:n.BRAND_SERIES,[a.CART_PERSONALIZED_RECOMMENDATION]:n.CART_PERSONALIZED_RECOMMENDATION,[a.SIMILAR_PRODUCTS]:n.SIMILAR_PRODUCTS,[a.SIMILAR_GREEN_PRODUCTS]:n.SIMILAR_GREEN_PRODUCTS,[a.OFTEN_BOUGHT_TOGETHER]:n.OFTEN_BOUGHT_TOGETHER,[a.SPONSORED_PRODUCT]:n.SPONSORED_PRODUCT,[a.SEARCH_RECO_ENGINE]:n.SEARCH_RECO_ENGINE,[a.SEARCHBOX_SUGGESTIONS]:n.SEARCHBOX_SUGGESTIONS},o="/catalog/images/products/image-default.svg",s=function(e){return e.checkout="spark-checkout",e}({}),c=function(e){return e.YES="YES",e.NO="NO",e}({}),l=function(e){return e.REFERENCES="refs",e.CUSTOMER_QUOTES="customer_quotes",e.CUSTOMER_QUOTES_PREVIEW="customer_quotes_preview",e.CONFIGURATOR_PRODUCTS="configurator_products",e.AX_DETAILS="ax_details",e.DISPLAY_CUMULATIVE_ORDER_TOTAL="display_cumulative_order_total",e.ORDERS_FILTERS_RESET_MSG="orders_filters_reset_msg",e.ORDERS_CALENDAR_TYPE="orders_calendar_type",e.PRODUCT_RETURN_NOTES="product_return_notes",e.CONNECTOR_TYPE_MAP="connector_type_map",e}({}),u=2,d=4,p="prod",h="ft-show-delivery-prediction",f="ft-multicdc-promise-label",m="ft-no-stock-simple-info-plp",g="ft-orders-full-search",y="ft-already-purchased-carousel",v="cp-return-management",b="cp-invoices-credit-notes",_="cp-delivery-notes",O="ft-zipcode-contact-form",C="ft-product-returns-warranty",E="ft-returns-dashboard",w=["ALREADY_PURCHASED","PRODUCT_PARTNER","PROMO","SUSTAINABLE","OUTLET","END_OF_LIFE","NEW"],P=2},31438:e=>{e.exports={container:"store-locator-error-message_container__l6Ft_",errorMessage:"store-locator-error-message_errorMessage__e_kgU",icon:"store-locator-error-message_icon__Ksiay"}},31678:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}},31811:(e,t,r)=>{"use strict";r.d(t,{B_:()=>p,ez:()=>d});var n=r(12072),a=r(60004),i=r(94835),o=r(23134),s=r(68915),c=r(60072);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let u=(0,a.createContext)({}),d=({children:e,withBasicSynchronization:t=!1})=>{let{isLoggedIn:r,guestUser:d}=(0,s.Z2)(),{data:p,loading:h,error:f,refetch:m}=(0,i.wV2)({variables:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?l(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t&&{synchronize:o.vV.Basic}),skip:!r&&!d?.userId}),g=(0,a.useMemo)(()=>({cart:p?.activeCart,cartError:f,isCartLoading:h&&!0,refreshCart:m}),[p,f,h,m]);return(0,c.jsx)(u.Provider,{value:g,children:e})},p=()=>{let{cart:e,refreshCart:t,isCartLoading:r,cartError:n}=(0,a.useContext)(u);return(0,a.useMemo)(()=>({cart:e,activeCart:e,refreshCart:t,isCartLoading:r,cartError:n,activeCartError:n,isInShoppingCart:t=>!!e?.items.some(e=>e.productId===t)}),[e,t,r,n])}},31840:e=>{e.exports={footer:"footer-light_footer__30Y6D",copyright:"footer-light_copyright___vdKX",top:"footer-light_top__ZYU9r",bottom:"footer-light_bottom__41zki",footerLinks:"footer-light_footerLinks__CP_yj",socialLanguage:"footer-light_socialLanguage__H9BVA",socialLinks:"footer-light_socialLinks__8Ay_H",langSwitcher:"footer-light_langSwitcher__AEJ4J"}},32006:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(68265),a=r(36215),i=r(66192);function o(e){var t=a.useContext((0,i.l)()),r=e||t.client;return(0,n.V1)(!!r,58),r}},32029:(e,t,r)=>{var n=r(59703);e.exports=function(e){return n(this.__data__,e)>-1}},32410:(e,t,r)=>{var n=r(51559),a=r(69011),i=r(14464),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},32445:e=>{e.exports={root:"mega-panel-item_root__thZC6",first:"mega-panel-item_first__Q3F88",category:"mega-panel-item_category__reRMz",categoryTitle:"mega-panel-item_categoryTitle__pzQqZ",items:"mega-panel-item_items__9nhjf",itemTitle:"mega-panel-item_itemTitle__6LRnu"}},32515:e=>{e.exports={root:"scroll-to-top_root__CKcnL",isNotVisible:"scroll-to-top_isNotVisible__9iPun"}},32843:(e,t,r)=>{"use strict";r.d(t,{r:()=>O}),r(60004);
10var n=r(35695),a=r(22951),i=r(52304),o=r(7976),s=r(80526),c=r.n(s),l=r(60072);let u=({iconCode:e,isPdp:t=!1})=>{let{opco_brand:r,cms_image_proxy_live_url:n}=(0,o.rD)(),a=`${n}/sw/${{"auth-poc":"fra-connect"}[r]||r}/${e.toLowerCase()}.svg`;return(0,l.jsx)(i._,{src:a,alt:e,width:t?36:20,height:t?36:20,className:c().image})};var d=r(17244),p=r(88088),h=r(82726),f=r(43207),m=r(28722),g=r.n(m);let y=({code:e})=>{let[t]=(0,f.B)();return(0,l.jsx)(d.A,{heading:{children:t("common.close")},closeLabel:t("common.closePopover"),content:(0,l.jsxs)("div",{className:g().content,children:[(0,l.jsx)(u,{iconCode:e,isPdp:!0}),(0,l.jsx)(p.E,{size:"body-3",children:t(`attributeIcons.popover.${e}.description`)})]}),label:t("attributeIcon.popover.label",{code:e}),placement:"top",className:g().popover,"data-testid":`${e}-popover`,children:(0,l.jsx)(h.$,{variant:"unstyled","data-testid":`${e}-button`,children:(0,l.jsx)(u,{iconCode:e,isPdp:!0})})})},v={SEARCH_WITH_GREEN_RATING:1,SEARCH_WITHOUT_GREEN_RATING:3,PLP_GRID:2,PLP:3,PLP_WITHOUT_GREEN_RATING:4,PDP:6};var b=r(26782),_=r.n(b);let O=({iconCodes:e,className:t,isPdp:r=!1,plpViewMode:i=a.o6.List,greenVariant:o,isSuggestedProductCard:s,isProductSliderCard:c})=>{let d=(({isPdp:e,plpViewMode:t,isSuggestedProductCard:r,greenVariant:n,isProductSliderCard:i})=>r||t===a.o6.Table?"A"===n||"B"===n||"C"===n?v.SEARCH_WITH_GREEN_RATING:"None"===n||"X"===n?v.PLP_GRID:v.SEARCH_WITHOUT_GREEN_RATING:e?v.PDP:t===a.o6.Grid||i?v.PLP_GRID:t!==a.o6.List||n?v.PLP:v.PLP_WITHOUT_GREEN_RATING)({isPdp:r,plpViewMode:i,isSuggestedProductCard:s,greenVariant:o,isProductSliderCard:c}),p=e?.length>0,h=e?.length>d?e?.slice(0,d):e;return p&&(0,l.jsx)("div",{className:(0,n.A)(_().attributeIconsContainer,t,{[_().pdp]:r}),children:h.map(e=>r?(0,l.jsx)(y,{code:e},e):(0,l.jsx)(u,{iconCode:e},e))})}},33003:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(60004),a=r(69120);let i=e=>e.slice(0,5),o=()=>{let{0:e,1:t}=(0,n.useState)([]),r=(0,n.useCallback)(()=>{let e=localStorage.getItem(a.ID);return e?i(e.split(";")):[]},[]);if(void 0===window.localStorage){let e=()=>void 0;return{items:[],addItem:e,removeItems:e,refreshItems:e}}return{items:e,addItem:e=>{let n=r();if(n.find(t=>e===t))return;let o=i([e,...n]);localStorage.setItem(a.ID,o.join(";")),t(o)},removeItems:()=>{localStorage.setItem(a.ID,""),t([])},refreshItems:()=>t(r())}}},33019:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var n=r(41010);let a=(0,n.J1)`
11  fragment Category on CMCategory {
12    categoryCode
13    categoryFilter
14    picture {
15      uriTemplate
16    }
17    title
18  }
19`},33337:(e,t,r)=>{"use strict";r.d(t,{B:()=>o}),r(60004);var n=r(26897),a=r(17480),i=r(60072);let o=({productId:e,isTableView:t,className:r})=>{let{label:o,buttonLabel:s,onClick:c,icon:l,showProductCta:u,"data-testid":d,disabled:p,variant:h}=(0,a.oo)(e);return u&&s?.trim()&&c?u&&(0,i.jsx)(n.u,{label:o,buttonLabel:s,onClick:c,className:r,icon:l,"data-testid":d,isTableView:t,disabled:p,variant:h}):null}},34142:(e,t,r)=>{"use strict";r.d(t,{W:()=>l});var n=r(53779),a=r(85587),i=r(60004),o=(0,a.h)(),s=({handleOptionSelection:e,isFocused:t,isSelected:r,option:a,...s})=>{let c=(0,i.useRef)(null);return(0,i.useEffect)(()=>{t&&c.current?.scrollIntoView({block:"nearest"})},[t]),(0,o.jsxs)("li",{ref:c,className:(0,n.$)("watts-listbox__item",{"watts-listbox__item--selected":r,"watts-listbox__item--focused":t}),role:"option","aria-selected":r,"data-value":a.value,onClick:()=>{e(a.value)},...s,children:[a.label,a.additionalLabel&&(0,o.jsxs)("span",{className:"watts-listbox__item-additional-label",children:["\xa0",a.additionalLabel]})]})};s.displayName="ListboxItem";var c=(0,a.h)(),l=(0,i.forwardRef)(({className:e,filteredOptions:t,focusedItem:r,handleOptionSelection:a,id:i,isOpened:o,labelId:l,noMatchLabel:u,selectedItem:d,...p},h)=>t.length?(0,c.jsx)("ul",{id:i,ref:h,"aria-labelledby":l,className:(0,n.$)("watts-listbox",e,{"watts-listbox--opened":o}),role:"listbox",...p,children:t.map((e,t)=>(0,c.jsx)(s,{id:`${i}-${t}`,option:e,handleOptionSelection:a,isFocused:r===e,isSelected:d===e},`${e.value}-${t}`))}
19):u?(0,c.jsx)("p",{className:(0,n.$)("watts-listbox",e,{"watts-listbox--opened":o}),children:u}):null);l.displayName="Listbox"},34227:(e,t,r)=>{"use strict";function n(e){return(t,r={})=>{let n,a=r.width,i=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;let s=o[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}(c,e=>e.test(s)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(c,e=>e.test(s));return n=e.valueCallback?e.valueCallback(l):l,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}r.d(t,{Y:()=>a});let a={ordinalNumber:function(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:o=r.valueCallback?r.valueCallback(o):o,rest:t.slice(a.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:n({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:n({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:n({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:n({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},34299:(e,t,r)=>{var n=r(21180),a=r(44642),i=r(53283),o=r(93152),s=r(305),c=r(28399),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&a(e),d=!r&&!u&&o(e),p=!r&&!u&&!d&&c(e),h=r||u||d||p,f=h?n(e.length,String):[],m=f.length;for(var g in e)(t||l.call(e,g))&&!(h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m)))&&f.push(g);return f}},34407:(e,t,r)=>{"use strict";r.d(t,{V:()=>w});var n=r(85587),a=r(82746),i=r(19690),o=r(39687),s=r(60004),c=r(33785),l=(0,n.h)(),u=({children:e})=>{let{openDialogBox:t,dialogBox:r}=(0,o.s)(),n=(0,s.useMemo)(()=>({openDialogBox:t}),[t]),u="u">typeof document&&r.open,{children:d,...p}=r;return(0,l.jsxs)(i.N.Provider,{value:n,children:[e,u&&(0,l.jsx)(l.Fragment,{children:(0,c.createPortal)((0,l.jsx)(a.A,{...p,children:d}),document.body)})]})};u.displayName="DialogBoxProvider";var d=r(38232),p=r(28234),h=r(10945),f=(0,n.h)(),m=({children:e})=>{let{openModal:t,modal:r}=(0,h.y)(),n=(0,s.useMemo)(()=>({openModal:t}),[t]),a="u">typeof document&&r.open,{children:i,...o}=r;return(0,f.jsxs)(p.V.Provider,{value:n,children:[e,a&&(0,f.jsx)(f.Fragment,{children:(0,c.createPortal)((0,f.jsx)(d.a,{...o,children:i}),document.body)})]})};m.displayName="ModalProvider";var g=r(53779),y=r(24874),v=r(3068),b=r(99638),_=r(42092),O=(0,n.h)(),C=({children:e})=>{let t=(0,s.useRef)(null),{sendToast:r,removeToast:n,removeToasts:a,removeToastTimeout:i,toasts:o}=(0,_.o)(),l=(0,s.useMemo)(()=>({sendToast:r,removeToast:n,removeToasts:a}),[r,n,a]),u="u">typeof document&&o.length>0;return(0,y.J)({onKeyDown:a,keys:["Escape"],shouldTriggerKeyDown:u,ref:t}),(0,O.jsxs)(b.$.Provider,{value:l,children:[e,u&&(0,O.jsx)(O.Fragment,{children:(0,c.createPortal)((0,O.jsx)("div",{ref:t,className:"watts-toast-provider","aria-atomic":"true","aria-live":"assertive",children:o.map(({duration:e,isFadingOut:t=!1,id:r,placement:a,...o})=>(0,O.jsx)(v.y8,{className:(0,g.$)("watts-toast__wrapper",`watts-toast--in-${a}`,`watts-toast--fade-${t?"out":"in"}`),onClose:()=>void n(r),onMouseOver:()=>{i(r)},onFocus:()=>{i(r)},...o},r))}),document.body)})]})};C.displayName="ToastProvider";var E=(0,n.h)(),w=({children:e})=>(0,E.jsx)(C,{children:(0,E.jsx)(m,{children:(0,E.jsx)(u,{children:e})})})},34567:(e,t,r)=>{"use strict";
19var n=function(e){return e&&e.__esModule?e:{default:e}}(r(85451));e.exports={tags:function(e){var t=e.id,r=e.events,a=e.dataLayer,i=e.dataLayerName,o=e.preview,s="&gtm_auth="+e.auth,c="&gtm_preview="+o;t||(0,n.default)("GTM Id is required");var l="\n      (function(w,d,s,l,i){w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(r).slice(1,-1)+"});\n        var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n        j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+s+c+"&gtm_cookies_win=x';\n        f.parentNode.insertBefore(j,f);\n      })(window,document,'script','"+i+"','"+t+"');";return{iframe:'\n      <iframe src="https://www.googletagmanager.com/ns.html?id='+t+s+c+'&gtm_cookies_win=x"\n        height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:l,dataLayerVar:this.dataLayer(a,i)}},dataLayer:function(e,t){return"\n      window."+t+" = window."+t+" || [];\n      window."+t+".push("+JSON.stringify(e)+")"}}},34751:(e,t,r)=>{"use strict";r.d(t,{g:()=>l}),r(60004);var n=r(52304),a=r(43207),i=r(7976),o=r(10468),s=r(37630),c=r(60072);let l=({isRegular:e=!1})=>{let[t]=(0,a.B)(),{opco_brand:r,opco_name:l}=(0,i.rD)(),{isFlagEnabled:u}=(0,i.h)(),d=(0,s.$i)(),p=!e&&u(o.N1),h=`${d}/images/themes/${{"auth-poc":"fra-connect"}[r]||r}/${p?"logo-white.svg":"logo.svg"}`;return(0,c.jsx)(n._,{"data-testid":"logo",src:h,alt:t("header.logoAlt",l)})}},34776:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,a=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),c=new t(512),l=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(o,"$2")}))}function d(e){return e.match(r)||[""]}function p(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return c.get(e)||c.set(e,function(e,r){for(var n=0,a=t.length,i=e;n<a-1;){var o=t[n];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;i=i[t[n++]]}i[t[n]]=r})},getter:function(e,t){var r=u(e);return l.get(e)||l.set(e,function(e){for(var n=0,a=r.length;n<a;)if(null==e&&t)return;else e=e[r[n++]];return e})},join:function(e){return e.reduce(function(e,t){return e+(p(t)||n.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var o,s,c,l,u=e.length;for(s=0;s<u;s++)(o=e[s])&&(function(e){return!p(e)&&(e.match(a)&&!e.match(n)||i.test(e))}(o)&&(o='"'+o+'"'),c=!(l=p(o))&&/^\d+$/.test(o),t.call(r,o,l,c,s,e))}(Array.isArray(e)?e:d(e),t,r)}}},34856:(e,t,r)=>{"use strict";r.d(t,{j:()=>i,k:()=>a});var n=r(23134);let a=function(e){return e.GROSS_AND_NET_PRICES="GROSS_AND_NET_PRICES",e.ONLY_NET_PRICES="ONLY_NET_PRICES",e.ONLY_GROSS_PRICES="ONLY_GROSS_PRICES",e.NO_PRICES="NO_PRICES",e}({}),i={[n.xN.NoPrice]:a.NO_PRICES,[n.xN.OnlyGrossPrice]:a.ONLY_GROSS_PRICES,[n.xN.OnlyNetPrice]:a.ONLY_NET_PRICES,[n.xN.GrossAndNetPrices]:a.GROSS_AND_NET_PRICES}},35276:(e,t,r)=>{var n=r(73445);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},35428:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(91752),a=r(60004),i=({inputId:e,options:t,ref:r,autocomplete:i=!0,defaultSelectedOption:o})=>{let[s,c]=(0,a.useState)(o?o.additionalLabel??o.label:""),[l,u]=(0,a.useState)(!1),[d,p]=(0,a.useState)(null),[h,f]=(0,a.useState)(o??null),[m,g]=(0,a.useState)(t),y=`${e}-label`,v=`${e}-listbox`,b=e=>{let t=document.getElementById(v);t&&!t.contains(e.target)&&u(!1)},_=()=>{u(!l)},O=e=>{let r=t.find(t=>t.value===e)||null;f(r),r&&(c(r.additionalLabel??r.label),u(!1))},C=e=>{O(),u(!0),p(null),c(e.target.value)},E=e=>{if(" "===e.key&&(i||(l?(u(!1),d&&O(d.value)):(u(!0),p(h||t[0])))),"ArrowDown"===e.key&&(e.preventDefault(),u(!0),m.length>0&&!e.altKey))if(d){let e=m.indexOf(d);e<m.length-1?p(m[e+1]):p(m[0])}else p(h||m[0]);if("ArrowUp"===e.key&&(e.preventDefault(),u(!0),m.length>0&&!e.altKey))if(d){let e=m.indexOf(d);p(e>0?m[e-1]:m[m.length-1])}else p(h||m[m.length-1]);"Enter"===e.key&&(e.preventDefault(),l?(u(!1),d&&O(d.value)):i||(u(!0),p(h||t[0]))),"Escape"===e.key&&(l&&u(!1),!l&&i&&(O(),c(""))),"Tab"===e.key&&u(!1)};return(0,a.useEffect)(()=>{l||p(null)},[l]),(0,a.useEffect)(()=>{""===s?g(t):i?g(((e,t)=>{let r=t.trim().toLowerCase();return r?e.filter(({label:e,additionalLabel:t})=>e.toLowerCase().includes(r)||t?.toLowerCase().includes(r)):[]})(t,s)):g(t)},[i,s,t]),(0,n.W)({onClickAway:b,ref:r,shouldTriggerClickAway:l}),{handleClickAway:b,handleClick:_,handleInput:C,handleKeyDown:E,handleOptionSelection:O,filteredOptions:m,focusedItem:d,isOpened:l,reset:()=>{let e=t.find(e=>o?e.value===o.value:""===e.value)||null;f(e),c(e?e.additionalLabel??e.label:"")},selectedItem:h,labelId:y,listboxId:v,listboxProps:{id:v,labelId:y,filteredOptions:m,focusedItem:d,handleOptionSelection:O,isOpened:l,selectedItem:h},inputProps:{"aria-expanded":l,"aria-controls":`${e}-listbox`,"aria-activedescendant":d?`${v}-${m.indexOf(d)}`:"","data-value":h?String(h.value):s,role:"combobox",onClick:_,onChange:C,onKeyDown:E,value:s}}}},35477:(e,t,r)=>{"use strict";r.d(t,{lc:()=>i,ly:()=>o});var n=r(10983),a=r.n(n);let i=()=>{let{pathname:e,origin:t}=window.location;-1===e.indexOf("account")?window.location.href=`${t}/account/api/logout`:a().replace("/api/logout")},o=(e=null)=>{let t=e||window.location.href;return`/api/login?redirect_to=${encodeURIComponent(t)}`}},35525:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(15428),a=r(85504),i=r(6513),o=r(5744),s=r(30284),c=r(16178);function l(e,t){let r=(0,c.a)(e,t?.in);return Math.round(((0,a.k)(r,t)-function(e,t){let r=(0,i.q)(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,c=(0,s.h)(e,t),l=(0,o.w)(t?.in||e,0);
19return l.setFullYear(c,0,n),l.setHours(0,0,0,0),(0,a.k)(l,t)}(r,t))/n.my)+1}},35664:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(53102);function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,n.A)(a.key),a)}}function i(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},35695:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n);else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>a});let a=n},35880:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({loading:e=!0,height:t,shape:r="rectangle",width:i,className:o,...s})=>(0,a.jsx)("div",{style:{height:t,width:i},className:(0,n.$)("watts-skeleton",`watts-skeleton--${r}`,{"watts-skeleton--animation-none":!e},o),"aria-hidden":"true",...s});i.displayName="Skeleton"},36109:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(60010),a=r(36215),i=r(47017),o=r(39864),s=r(39418),c=r(86162),l=r(32006),u=r(78512);function d(e,t){var r=(0,l.m)(null==t?void 0:t.client);(0,s.D$)(e,s.KG.Mutation);var d=a.useState({called:!1,loading:!1,client:r}),p=d[0],h=d[1],f=a.useRef({result:p,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,u.E)(function(){Object.assign(f.current,{client:r,options:t,mutation:e})});var m=a.useCallback(function(e){void 0===e&&(e={});var t=f.current,r=t.options,a=t.mutation,s=(0,n.Cl)((0,n.Cl)({},r),{mutation:a}),l=e.client||f.current.client;f.current.result.loading||s.ignoreResults||!f.current.isMounted||h(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});var u=++f.current.mutationId,d=(0,i.l)(s,e);return l.mutate(d).then(function(t){var r,n,a=t.data,i=t.errors,s=i&&i.length>0?new c.K4({graphQLErrors:i}):void 0,p=e.onError||(null==(r=f.current.options)?void 0:r.onError);if(s&&p&&p(s,d),u===f.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:a,error:s,client:l};f.current.isMounted&&!(0,o.L)(f.current.result,m)&&h(f.current.result=m)}var g=e.onCompleted||(null==(n=f.current.options)?void 0:n.onCompleted);return s||null==g||g(t.data,d),t}).catch(function(t){if(u===f.current.mutationId&&f.current.isMounted){var r,n={loading:!1,error:t,data:void 0,called:!0,client:l};(0,o.L)(f.current.result,n)||h(f.current.result=n)}var a=e.onError||(null==(r=f.current.options)?void 0:r.onError);if(a)return a(t,d),{data:void 0,errors:t};throw t})},[]),g=a.useCallback(function(){if(f.current.isMounted){var e={called:!1,loading:!1,client:f.current.client};Object.assign(f.current,{mutationId:0,result:e}),h(e)}},[]);return a.useEffect(function(){var e=f.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[m,(0,n.Cl)({reset:g},p)]}},36215:(e,t,r)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(60004))},36842:(e,t,r)=>{var n=r(31314),a=r(13725),i=r(84418),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=c.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):s.test(e)?o:+e}},36854:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,V:()=>c});var n=r(68953),a=r(23822),i=new WeakSet;function o(e){!(e.size<=(e.max||-1))&&(i.has(e)||(i.add(e),setTimeout(function(){e.clean(),i.delete(e)},100)))}var s=function(e,t){var r=new n.l(e,t);return r.set=function(e,t){var r=n.l.prototype.set.call(this,e,t);return o(this),r},r},c=function(e,t){var r=new a.C(e,t);return r.set=function(e,t){var r=a.C.prototype.set.call(this,e,t);return o(this),r},r}},37116:(e,t,r)=>{"use strict";r.d(t,{m:()=>c});var n=r(53779),a=r(85587),i=r(52856),o=r(60004),s=(0,a.h)(),c=({children:e,className:t,label:r,placement:a="top",size:c="l",...l})=>{let u=(0,i.k)("watts-tooltip"),d=e;return(0,o.isValidElement)(d)&&(d=(0,o.cloneElement)(d,{...l,...d.props,"aria-describedby":u})),(0,s.jsxs)("span",{className:(0,n.$)("watts-tooltip",`watts-tooltip--${c}`,t),"data-placement":a,"data-tooltip":r,role:"tooltip",...l,children:[(0,s.jsx)("span",{id:u,className:"sr-only",children:r}),d]})};c.displayName="Tooltip"},37193:(e,t,r)=>{"use strict";r.d(t,{X:()=>p});var n=r(12072);r(60004);var a=r(17244),i=r(82726),o=r(43207),s=r(44067),c=r.n(s),l=r(60072);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
19t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=({content:e,label:t="",iconLabel:r="",iconSize:n="s",placement:s="bottom-left",closeLabel:u,dataTestId:p})=>{let[h]=(0,o.B)();u=u??h("catalog.pdp.priceDetails.close");let f=r?{}:{title:h("catalog.pdp.priceDetails")};return(0,l.jsx)("div",{className:c().container,children:(0,l.jsx)(a.A,{heading:{children:h("catalog.tooltip.priceCalculated")},"data-testid":p,className:c().popover,content:e,closeLabel:u,label:t,placement:s,children:(0,l.jsx)(i.$,d(d({"data-testid":`${p}-button`,icon:"info-line",iconPosition:"left",size:n,variant:"ghost",className:c().button},f),{},{children:r&&h("catalog.pdp.priceDetails")}))})})}},37504:(e,t,r)=>{"use strict";r.d(t,{o:()=>a,v:()=>n});let n=10,a="France"},37630:(e,t,r)=>{"use strict";r.d(t,{$i:()=>s,Cr:()=>c,lR:()=>l});var n=r(17387),a=r(7976);let i=["square","1x1","2x1","3x1","3x4","4x3","7x2","16x9","20x13"],o=e=>{let t=(0,n.mH)(),r=t?.crops||[],a=(e,t)=>{let r=e/t;return i.filter(e=>"square"!==e).reduce((e,t)=>{let[n,a]=e.split("x"),[i,o]=t.split("x");return Math.abs(i/o-r)<Math.abs(n/a-r)?t:e},"1000x1")};return{computeSrcSet:(t,n,i)=>{let o="string"==typeof t?t:t?.[i?"fitToCropTemplate":"uriTemplate"]||"";if(!/\/{cropName}\/{width}/.exec(o))return"";let s="square"===n?"1x1":n;return void 0===n&&"string"!=typeof t&&t?.width&&t?.height&&(s=a(t.width,t.height)),(r.find(({name:e})=>e===s)?.sizes||[]).reduce((r,{width:n})=>"string"!=typeof t&&t?.width&&t.width<=n?r:[...r,e+o.replace("{cropName}",s).replace("{width}",String(n))+` ${n}w`],[]).join(", ")},computeClosestRatio:a}},s=e=>{let{CMS_IMAGE_PROXY_URL:t,cms_image_proxy_live_url:r,cms_image_proxy_preview_url:n}=(0,a.rD)();return(e?n:r)||t},c=e=>{let t=s(e),{computeSrcSet:r}=o(t),{computeSizes:n}=(()=>{let e={keys:["xs","sm","md","lg","xl"],values:{xs:360,sm:768,md:1024,lg:1280,xl:1920},up:t=>`@media (min-width:${e.values[t]}px)`};return{computeSizes:(t={})=>{if(t.useSingleSize)return t.useSingleSize;let r=e.keys.reduce((r,n)=>t[n]?[...r,`${e.up(n).replace("@media ","")} ${t[n]}vw`]:r,[]).reverse();return r.push(`${t.default||100}vw`),r.join(", ")}}})();return{computeCmsImage:(e,a="",i,o,s)=>{let c="string"==typeof e?e:e?.uriTemplate||"",l=c&&t+c.replace("/{cropName}/{width}",""),u=r(e,o,s);if(!l)return null;let d=u?u.split(", ").map(e=>{let[t,r]=e.split(" ");return{url:t,width:parseInt(r.replace("w",""),10)}}):[],p=d.length?d.reduce((e,t)=>t.width<e.width?t:e,d[0]).url:l;((e,t,r)=>{/\/{cropName}\/{width}/.exec(e)||console.warn(`You used computeCmsImage without an uriTemplate (ie: "/{cropName}/{width}").
20      srcSet can't be computed.`),t||console.warn(`You used computeCmsImage without sizeMap parameter.
21      It's assumed the image will always be 100vw by default.
22      You should provide a sizeMap. For instance, if by default the image on mobile takes 90% of the full width (90vw), @up('md') you have 2 images and @up('lg') you have 4 :
23      { md: 45, lg: 20, default: 90 }
24
25      Provide an empty object {} to suppress this warning.`),r||null===r||console.warn(`You used computeCmsImage without ratio parameter.
26      You should provide a ratio.
27      If you provided a CmPicture with width and height, it will try to find the closest available ratio, it's not recommended.
28      If you directly provided a templateUri or a CmPicture with no width or height, srcSet can't be computed.
29
30      Provide null to suppress this warning.`)})(c,i,o);let h="string"!=typeof e&&e?.width?e.width:void 0,f="string"!=typeof e&&e?.height?e.height:void 0,m={src:p,alt:a,sizes:n(i)};return u&&(m.srcSet=u),void 0!==h&&(m.width=h),void 0!==f&&(m.height=f),m}}},l=(e,t,r=!1)=>{let{computeClosestRatio:n}=o(s(r));return e&&t?n(e,t):null}},37661:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(60010),a=r(68265),i=Symbol.for("apollo.cacheSize"),o=(0,n.Cl)({},a.Sf[i])},38033:e=>{e.exports={drawerContainer:"header-container_drawerContainer__Kaz5q"}},38232:(e,t,r)=>{"use strict";r.d(t,{a:()=>l});var n=r(53779),a=r(85587),i=r(82726),o=r(30058),s=r(60004),c=(0,a.h)(),l=({children:e,closeLabel:t,className:r,open:a,size:l="m",actions:u,heading:d,...p})=>{let h=(0,s.useRef)(null);return(0,s.useEffect)(()=>{h.current&&(a?(h.current.removeAttribute("open"),h.current.showModal()):h.current.close())},[h,a]),(0,c.jsx)(o.s,{role:"document",active:!!a,children:(0,c.jsxs)("dialog",{className:(0,n.$)("watts-modal",`watts-modal--${l}`,r),"aria-modal":a,ref:h,...p,children:[(0,c.jsx)(i.$,{"aria-label":t,variant:"ghost",size:"s",onClick:()=>{h.current&&h.current.close()},icon:"cross",title:t}),!!d&&(0,c.jsx)("div",{className:"watts-modal__header",children:d}),!!e&&(0,c.jsx)("div",{className:"watts-modal__content",children:e}),!!u&&(0,c.jsx)("div",{className:"watts-modal__actions",children:u})]})})};l.displayName="Modal"},38561:e=>{e.exports={appHeader:"header_appHeader__jmu7J",brandedHeader:"header_brandedHeader__L_FcZ",menuMobile:"header_menuMobile__4cX6E","menuMobile--scrolledDown":"header_menuMobile--scrolledDown__NRgQV",menuDesktop:"header_menuDesktop__GnN2v",logo:"header_logo__yi2zt",logoLink:"header_logoLink__djqfE","logoLink--s":"header_logoLink--s__zzUsd","logoLink--m":"header_logoLink--m__c4Mfv","logoLink--l":"header_logoLink--l__bznNQ",search:"header_search__kfoqA",actions:"header_actions__QLXEd",accounts:"header_accounts__Yb95e",subnavContainer:"header_subnavContainer__BBwIw",subnavContainerNavigationEnabled:"header_subnavContainerNavigationEnabled__HyjBx",settings:"header_settings__12vBM",subnav:"header_subnav__WKOUx",loggedInSubnavContainer:"header_loggedInSubnavContainer__eskmj",headerContainer:"header_headerContainer__Umr_p","headerContainer--scrolledDown":"header_headerContainer--scrolledDown__LJyDF",searchGuest:"header_searchGuest__rEwlx",searchLoggedIn:"header_searchLoggedIn__Yl0A9","headerContainer--guest":"header_headerContainer--guest__fYQ2V","headerContainer--onbehalf":"header_headerContainer--onbehalf__LT4TK","headerContainer--hidden":"header_headerContainer--hidden___ZPUS",drawerContainer:"header_drawerContainer__VjRf3",guestBanner:"header_guestBanner___qLlP",headerWrapper:"header_headerWrapper__i__jU"}},38735:function(e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function n(e,t,r){var n,s=i(e,t),c=o(s.renderedPath,"?",a(Object.keys(n=s.remainingParams).filter(function(e){return null!=n[e]}).reduce(function(e,t){return e[t]=n[t],e},{})));return r?o(r,"/",c):c}function a(e){return new URLSearchParams(e).toString()}function i(e,t){var n=r({},t),a=["boolean","string","number"];return{renderedPath:e.replace(/:\w+/g,function(e){var r=e.slice(1);if(/^\d+$/.test(r))return e;if(!t.hasOwnProperty(r))throw Error("Missing value for path parameter "+r+".");if(!a.includes(typeof t[r]))throw TypeError("Path parameter "+r+" cannot be of type "+typeof t[r]+". Allowed types are: "+a.join(", ")+".");if("string"==typeof t[r]&&""===t[r].trim())throw Error("Path parameter "+r+" cannot be an empty string.");return delete n[r],encodeURIComponent(t[r])}),remainingParams:n}}function o(e,t,r){var n=e.endsWith(t)?e.slice(0,-t.length):e,a=r.startsWith(t)?r.slice(t.length):r;return""===n||""===a?n+a:n+t+a}
30Object.defineProperty(t,"__esModule",{value:!0}),t.join=t.subst=t.query=void 0,t.default=function(e,t,r){if(void 0===r&&(r={}),"string"==typeof t){var a=r;return n(t,a,e)}var a=t;return n(e,a)},t.query=a,t.subst=function(e,t){return i(e,t).renderedPath},t.join=o},38833:(e,t,r)=>{"use strict";r.d(t,{m:()=>d,t:()=>c});var n=r(55537);let a={STANDARD:"standard",SONEPAR_AUGMENTED_BRAND:"SoneparAugmentedBrand",SONEPAR_AUGMENTED_BRAND_SERIES:"SoneparAugmentedBrandSeries",SONEPAR_AUGMENTED_BRAND_CATEGORY:"SoneparAugmentedBrandCategory",SONEPAR_AUGMENTED_BRAND_SERIES_CATEGORY:"SoneparAugmentedBrandSeriesCategory"},i=" SERIES ",o=" CATEGORY ",s={[a.SONEPAR_AUGMENTED_BRAND]:0,[a.SONEPAR_AUGMENTED_BRAND_SERIES]:1,[a.SONEPAR_AUGMENTED_BRAND_CATEGORY]:2,[a.SONEPAR_AUGMENTED_BRAND_SERIES_CATEGORY]:3,[a.STANDARD]:4},c=e=>{if(!e)return null;let[,t]=e.split(i);return t??null},l=e=>{let t=s[a.STANDARD]??4;return s[e??a.STANDARD]??t},u=(e,t,r)=>{let s=t&&!r?`${n.b.catalog.brand}/${encodeURIComponent(e.name)}`:r?`${n.b.catalog.brand}/${e.name.replace(/\s+/g,"-").toLowerCase()}`:`${n.b.catalog.brand}/${e.name.replace(/\s+/g,"-").toLowerCase()}?brandName=${encodeURIComponent(e.name)}`,l=e?.name;if(e.type===a.STANDARD||e.type===a.SONEPAR_AUGMENTED_BRAND)return s;if(e.type===a.SONEPAR_AUGMENTED_BRAND_SERIES){let[t,a]=l.split(i),o=c(e?.categoryRef?.id);return t&&a&&o?r?`${n.b.catalog.brand}/${t.replace(/\s+/g,"-").toLowerCase()}${n.b.catalog.series}/${encodeURIComponent(a)}`:`${n.b.catalog.brand}/${encodeURIComponent(t)}${n.b.catalog.series}/${encodeURIComponent(a)}`:s}if(e.type===a.SONEPAR_AUGMENTED_BRAND_CATEGORY){let[t,a]=l.split(o);if(!t||!a)return s;let i=e?.title.split(" ").join("-").toLowerCase();return r?`${n.b.catalog.brand}/${t.replace(/\s+/g,"-").toLowerCase()}${n.b.catalog.category}/${encodeURIComponent(i)}-${encodeURIComponent(a)}`:`${n.b.catalog.brand}/${encodeURIComponent(t)}${n.b.catalog.category}/${encodeURIComponent(i)}-${encodeURIComponent(a)}`}if(e.type===a.SONEPAR_AUGMENTED_BRAND_SERIES_CATEGORY){let[t,a]=l.split(o);if(!t||!a)return s;let[c,u]=t.split(i);if(!c||!u)return s;let d=e?.title.split(" ").join("-").toLowerCase();return r?`${n.b.catalog.brand}/${c.replace(/\s+/g,"-").toLowerCase()}${n.b.catalog.series}/${encodeURIComponent(u)}${n.b.catalog.category}/${encodeURIComponent(d)}-${encodeURIComponent(a)}`:`${n.b.catalog.brand}/${encodeURIComponent(c)}${n.b.catalog.series}/${encodeURIComponent(u)}${n.b.catalog.category}/${encodeURIComponent(d)}-${encodeURIComponent(a)}`}return s},d=(e,t,r,n,i)=>{let o=(e||[]).filter(({brandName:e})=>"string"==typeof e&&e.trim()).map(({brandName:e})=>{let t=decodeURIComponent(e);return{name:t,title:t,type:a.STANDARD,href:u({name:t,title:t,type:a.STANDARD},n,i)}}),s=[...(r||[]).sort((e,t)=>l(e.type)-l(t.type)).map(e=>{let t=decodeURIComponent(e?.title),r=(e=>{let t=e?.match(/\(([^)]+)\)/);return t?.[1]||e})(e.name);return{title:t,name:r,type:e?.type??a.STANDARD,categoryRef:e?.categoryRef?{id:e.categoryRef.id}:void 0,href:u({title:t,name:r,type:e?.type??a.STANDARD,categoryRef:e?.categoryRef?{id:e.categoryRef.id}:void 0},n,i)}}),...o].reduce((e,t)=>e.some(e=>e.href===t.href&&e.name===t.name)?e:[...e,t],[]);if(0===s.length)return[];if(1===s.length)return s;let c=t?.toLowerCase().trim()??"";if(!c)return s.slice(0,5);let d=s.filter(e=>e.name.toLowerCase().startsWith(c));return d.length>0?d.slice(0,5):s.slice(0,5)}},38963:(e,t,r)=>{"use strict";r.d(t,{IT:()=>a,Ve:()=>n});let n=/^[^.,"?!;:#$%&()*+/<>=@[\]^_{}|~]+$/gi,a=/^(?<reference>.+?)[\s,;]+(?=\d)(?<quantity>\d+)\s*$/gm},38973:e=>{!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,a){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(r);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,d,p,h,f=e[l].replace(o,"%20"),m=f.indexOf(n);(m>=0?(u=f.substr(0,m),d=f.substr(m+1)):(u=f,d=""),p=decodeURIComponent(u),h=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(i,p))?t(i[p])?i[p].push(h):i[p]=[i[p],h]:i[p]=h}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,o,s){return(i=i||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e)?n(a(e),function(a){var s=encodeURIComponent(t(a))+o;return r(e[a])?n(e[a],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[a]))}).join(i):s?encodeURIComponent(t(s))+o+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}},o=!0;try{t[e](i,i.exports,n),o=!1}finally{o&&delete r[e]}return i.exports}n.ab="//";var a={};
30a.decode=a.parse=n(815),a.encode=a.stringify=n(577),e.exports=a}()},39418:(e,t,r)=>{"use strict";r.d(t,{D$:()=>u,KG:()=>n});var n,a,i=r(68265),o=r(36854),s=r(37661);function c(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function l(e){a||(a=new o.A(s.v.parser||1e3));var t,r,c=a.get(e);if(c)return c;(0,i.V1)(!!e&&!!e.kind,70,e);for(var l=[],u=[],d=[],p=[],h=0,f=e.definitions;h<f.length;h++){var m=f[h];if("FragmentDefinition"===m.kind){l.push(m);continue}if("OperationDefinition"===m.kind)switch(m.operation){case"query":u.push(m);break;case"mutation":d.push(m);break;case"subscription":p.push(m)}}(0,i.V1)(!l.length||u.length||d.length||p.length,71),(0,i.V1)(u.length+d.length+p.length<=1,72,e,u.length,p.length,d.length),r=u.length?n.Query:n.Mutation,u.length||d.length||(r=n.Subscription);var g=u.length?u:d.length?d:p;(0,i.V1)(1===g.length,73,e,g.length);var y=g[0];t=y.variableDefinitions||[];var v={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:t};return a.set(e,v),v}function u(e,t){var r=l(e),n=c(t),a=c(r.type);(0,i.V1)(r.type===t,74,n,n,a)}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={})),l.resetCache=function(){a=void 0}},39624:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(53779),a=r(85587),i=r(12028),o=(0,a.h)(),s=({className:e,status:t,variant:r="default",...a})=>{let s=(0,n.$)("watts-status-icon",`watts-status-icon--${t}`,{[`watts-status-icon--${r}`]:"contrast"===r},e),c;return c="warning"===t?"strong"===r?"warning-solid-strong-graphic":"warning-solid-graphic":"success"===t?"strong"===r?"check-solid-strong-graphic":"check-solid-graphic":"error"===t?"strong"===r?"error-solid-strong-graphic":"error-solid-graphic":"strong"===r?"info-solid-strong-graphic":"info-solid-graphic",(0,o.jsx)(i.I,{className:s,icon:c,...a})};s.displayName="StatusIcon"},39683:e=>{e.exports={menuItem:"menu-item_menuItem__hYkmg",menuItemInner:"menu-item_menuItemInner__Cu2jN"}},39687:(e,t,r)=>{"use strict";r.d(t,{L:()=>h,s:()=>p});var n=r(3070),a=r(19690),i=()=>null,o=()=>null,s={children:"",closeLabel:"",onCancel:i,onClose:o,open:!1},c=r(60004),{defaultChildren:l,defaultOnCancel:u,defaultOnClose:d}={defaultChildren:"",defaultOnCancel:i,defaultOnClose:o},p=()=>{let[e,t]=(0,c.useState)(s),{lockScroll:r,unlockScroll:a}=(0,n._)(),i=(0,c.useCallback)(e=>{let n=e.children??l,i=e.onCancel??u,o=e.onClose??d;t({...e,children:n,onCancel:i,onClose:e=>{o(e),t(s),a()},open:!0}),r()},[r,a]);return(0,c.useMemo)(()=>({openDialogBox:i,dialogBox:e}),[i,e])},h=()=>{let e=(0,c.useContext)(a.N);if(!e)throw Error("You need to wrap your component with <WattsProvider>");return e}},39864:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,L:()=>s});let{toString:n,hasOwnProperty:a}=Object.prototype,i=Function.prototype.toString,o=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;let o=n.call(t);if(o!==n.call(r))return!1;switch(o){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(p(t,r))return!0;let n=l(t),i=l(r),o=n.length;if(o!==i.length)return!1;for(let e=0;e<o;++e)if(!a.call(r,n[e]))return!1;for(let a=0;a<o;++a){let i=n[a];if(!e(t[i],r[i]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(p(t,r))return!0;let n=t.entries(),a="[object Map]"===o;for(;;){let t=n.next();if(t.done)break;let[i,o]=t.value;if(!r.has(i)||a&&!e(o,r.get(i)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=i.call(t);if(e!==i.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,d)}}return!1}(e,t)}finally{o.clear()}}let c=s;function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let d="{ [native code] }";function p(e,t){let r=o.get(e);if(r){if(r.has(t))return!0}else o.set(e,r=new Set);return r.add(t),!1}},39931:(e,t,r)=>{"use strict";
30r.d(t,{rf:()=>y,jj:()=>v});var n=r(60004),a=r(48628),i=r(2117),o=r(12072),s=r(91683),c=r(43207),l=r(87285),u=r(23345),d=r(27945),p=r(60072);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=()=>{let[e]=(0,c.B)(),{isOpen:t,closeStockLocatorDrawer:r,productData:n,selectStorePanelProps:a,setSelectStorePanelProps:i,isStockAvailableOnly:o,setIsStockAvailableOnly:h,shouldUseNearbyFacilities:m}=v(),g=(0,d.O)({productId:n?.productId,isStockAvailableOnly:o,shouldUseNearbyFacilities:m,skipFetchingData:!t}),y=()=>{i(null),r()};return(0,p.jsx)(s._,{"data-testid":"stock-locator-drawer",isOpen:t,onClose:y,closeLabel:e("common.close"),children:a?(0,p.jsx)(l.N,{closeDrawer:y,selectStorePanelProps:a}):(0,p.jsx)(u.F,f(f({},g),{},{isStockAvailableOnly:o,setIsStockAvailableOnly:h,productId:n?.productId,productIdentifier:n?.productIdentifier,stockIndicator:n?.stockIndicator,productImageUrl:n?.productImageUrl,isDrawer:!0}))})},g=(0,n.createContext)(null),y=({children:e})=>{let{0:t,1:r}
30=(0,n.useState)(null),{0:o,1:s}=(0,n.useState)(null),{0:c,1:l}=(0,n.useState)(!1),{0:u,1:d}=(0,n.useState)(!1),{openDrawer:h,closeDrawer:f,isOpen:y}=(0,a.b)(),{sendCheckAvailabilityGtmTag:v}=(0,i.PB)(),b=(0,n.useCallback)((e,t,n=!1)=>{h(),v(e.productId,t),r(e),l(n),d(n)},[]),_=(0,n.useCallback)(()=>{h()},[]),O=(0,n.useCallback)(()=>{f()},[]),C=(0,n.useMemo)(()=>({isOpen:y,productData:t,closeStockLocatorDrawer:O,openStockLocatorDrawer:b,selectStorePanelProps:o,setSelectStorePanelProps:s,openStockLocatorConfirmationDrawer:_,setIsStockAvailableOnly:l,isStockAvailableOnly:c,shouldUseNearbyFacilities:u}),[O,y,b,_,t,o,c,u]);return(0,p.jsxs)(g.Provider,{value:C,children:[(0,p.jsx)(m,{}),e]})},v=()=>{let e=(0,n.useContext)(g);if(!e)throw Error("You need to wrap your component with <StockLocatorDrawerProvider>");return e}},39948:(e,t,r)=>{"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:()=>n})},39956:(e,t,r)=>{"use strict";r.d(t,{Gb:()=>A,Jt:()=>h,Op:()=>b,hZ:()=>T,mN:()=>eo,xI:()=>N,xW:()=>v});var n=r(60004),a=e=>e instanceof Date,i=e=>null==e,o=e=>!i(e)&&!Array.isArray(e)&&"object"==typeof e&&!a(e),s=e=>o(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,c=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),l="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function u(e){let t,r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(l&&(e instanceof Blob||e instanceof FileList))&&(r||o(e))))return e;else if(t=r?[]:{},Array.isArray(e)||(e=>{let t=e.constructor&&e.constructor.prototype;return o(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(let r in e)t[r]=u(e[r]);else t=e;return t}var d=e=>Array.isArray(e)?e.filter(Boolean):[],p=e=>void 0===e,h=(e,t,r)=>{if(!t||!o(e))return r;let n=d(t.split(/[,[\].]+?/)).reduce((e,t)=>i(e)?e:e[t],e);return p(n)||n===e?p(e[t])?r:e[t]:n};let f={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},m={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},g={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},y=n.createContext(null),v=()=>n.useContext(y),b=e=>{let{children:t,...r}=e;return n.createElement(y.Provider,{value:r},t)};var _=(e,t,r,n=!0)=>{let a={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(a,i,{get:()=>(t._proxyFormState[i]!==m.all&&(t._proxyFormState[i]=!n||m.all),r&&(r[i]=!0),e[i])});return a},O=e=>o(e)&&!Object.keys(e).length,C=(e,t,r,n)=>{r(e);let{name:a,...i}=e;return O(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!n||m.all))},E=e=>Array.isArray(e)?e:[e],w=(e,t,r)=>r&&t?e===t:!e||!t||e===t||E(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function P(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var I=(e,t,r,n,a)=>"string"==typeof e?(n&&t.watch.add(e),h(r,e,a)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),h(r,e))):(n&&(t.watchAll=!0),r),x=e=>/^\w*$/.test(e),S=e=>d(e.replace(/["|']|\]/g,"").split(/\.|\[/));function T(e,t,r){let n=-1,a=x(t)?[t]:S(t),i=a.length,s=i-1;for(;++n<i;){let t=a[n],i=r;if(n!==s){let r=e[t];i=o(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}e[t]=i,e=e[t]}return e}let N=e=>e.render(function(e){let t=v(),{name:r,control:a=t.control,shouldUnregister:i}=e,o=c(a._names.array,r),l=function(e){let t=v(),{control:r=t.control,name:a,defaultValue:i,disabled:o,exact:s}=e||{},c=n.useRef(a);c.current=a,P({disabled:o,subject:r._subjects.values,next:e=>{w(c.current,e.name,s)&&d(u(I(c.current,r._names,e.values||r._formValues,!1,i)))}});let[l,d]=n.useState(r._getWatch(a,i));return n.useEffect(()=>r._removeUnmounted()),l}({control:a,name:r,defaultValue:h(a._formValues,r,h(a._defaultValues,r,e.defaultValue)),exact:!0}),d=function(e){let t=v(),{control:r=t.control,disabled:a,name:i,exact:o}=e||{},[s,c]=n.useState(r._formState),l=n.useRef(!0),u=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=n.useRef(i);return d.current=i,P({disabled:a,next:e=>l.current&&w(d.current,e.name,o)&&C(e,u.current,r._updateFormState)&&c({...r._formState,...e}),subject:r._subjects.state}),n.useEffect(()=>
30(l.current=!0,u.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),_(s,r,u.current,!1)}({control:a,name:r}),m=n.useRef(a.register(r,{...e.rules,value:l}));return n.useEffect(()=>{let e=a._options.shouldUnregister||i,t=(e,t)=>{let r=h(a._fields,e);r&&(r._f.mount=t)};if(t(r,!0),e){let e=u(h(a._options.defaultValues,r));T(a._defaultValues,r,e),p(h(a._formValues,r))&&T(a._formValues,r,e)}return()=>{(o?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}},[r,a,o,i]),{field:{name:r,value:l,onChange:n.useCallback(e=>m.current.onChange({target:{value:s(e),name:r},type:f.CHANGE}),[r]),onBlur:n.useCallback(()=>m.current.onBlur({target:{value:h(a._formValues,r),name:r},type:f.BLUR}),[r,a]),ref:e=>{let t=h(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!h(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!h(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!h(d.touchedFields,r)},error:{enumerable:!0,get:()=>h(d.errors,r)}})}}(e));var A=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{};let j=(e,t,r)=>{for(let n of r||Object.keys(e)){let r=h(e,n);if(r){let{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}else if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else o(n)&&j(n,t)}}};var k=e=>({isOnSubmit:!e||e===m.onSubmit,isOnBlur:e===m.onBlur,isOnChange:e===m.onChange,isOnAll:e===m.all,isOnTouch:e===m.onTouched}),D=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,r)=>{let n=d(h(e,r));return T(n,"root",t[r]),T(e,r,n),e},L=e=>"function"==typeof e,M=e=>{if(!l)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},F=e=>"string"==typeof e;let $={value:!1,isValid:!1},B={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!p(e[0].attributes.value)?p(e[0].value)||""===e[0].value?B:{value:e[0].value,isValid:!0}:B:$}return $};let V={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,V):V;function G(e,t,r="validate"){if(F(e)||Array.isArray(e)&&e.every(F)||"boolean"==typeof e&&!e)return{type:r,message:F(e)?e:"",ref:t}}var z=e=>!o(e)||e instanceof RegExp?{value:e,message:""}:e,H=async(e,t,r,n,a)=>{let{ref:s,refs:c,required:l,maxLength:u,minLength:d,min:f,max:m,pattern:y,validate:v,name:b,valueAsNumber:_,mount:C,disabled:E}=e._f,w=h(t,b);if(!C||E)return{};let P=c?c[0]:s,I=e=>{n&&P.reportValidity&&(P.setCustomValidity("boolean"==typeof e?"":e||""),P.reportValidity())},x={},S="radio"===s.type,T="checkbox"===s.type,N=(_||"file"===s.type)&&p(s.value)&&p(w)||M(s)&&""===s.value||""===w||Array.isArray(w)&&!w.length,j=A.bind(null,b,r,x),k=(e,t,r,n=g.maxLength,a=g.minLength)=>{let i=e?t:r;x[b]={type:e?n:a,message:i,ref:s,...j(e?n:a,i)}};if(a?!Array.isArray(w)||!w.length:l&&(!(S||T)&&(N||i(w))||"boolean"==typeof w&&!w||T&&!U(c).isValid||S&&!q(c).isValid)){let{value:e,message:t}=F(l)?{value:!!l,message:l}:z(l);if(e&&(x[b]={type:g.required,message:t,ref:P,...j(g.required,t)},!r))return I(t),x}if(!N&&(!i(f)||!i(m))){let e,t,n=z(m),a=z(f);if(i(w)||isNaN(w)){let r=s.valueAsDate||new Date(w),i=e=>new Date(new Date().toDateString()+" "+e),o="time"==s.type,c="week"==s.type;"string"==typeof n.value&&w&&(e=o?i(w)>i(n.value):c?w>n.value:r>new Date(n.value)),"string"==typeof a.value&&w&&(t=o?i(w)<i(a.value):c?w<a.value:r<new Date(a.value))}else{let r=s.valueAsNumber||(w?+w:w);i(n.value)||(e=r>n.value),i(a.value)||(t=r<a.value)}if((e||t)&&(k(!!e,n.message,a.message,g.max,g.min),!r))return I(x[b].message),x}if((u||d)&&!N&&("string"==typeof w||a&&Array.isArray(w))){let e=z(u),t=z(d),n=!i(e.value)&&w.length>+e.value,a=!i(t.value)&&w.length<+t.value;if((n||a)&&(k(n,e.message,t.message),!r))return I(x[b].message),x}if(y&&!N&&"string"==typeof w){let{value:e,message:t}=z(y);if(e instanceof RegExp&&!w.match(e)&&(x[b]={type:g.pattern,message:t,ref:s,...j(g.pattern,t)},!r))return I(t),x}if(v){if(L(v)){let e=G(await v(w,t),P);if(e&&(x[b]={...e,...j(g.validate,e.message)},!r))return I(e.message),x}else if(o(v)){let e={};for(let n in v){if(!O(e)&&!r)break;let a=G(await v[n](w,t),P,n);a&&(e={...a,...j(n,a.message)},I(a.message),r&&(x[b]=e))}if(!O(e)&&(x[b]={ref:P,...e},!r))return x}}return I(!0),x};function W(e,t){let r=Array.isArray(t)?t:x(t)?[t]:S(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;
30)e=p(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,i=r[a];return n&&delete n[i],0!==a&&(o(n)&&O(n)||Array.isArray(n)&&function(e){for(let t in e)if(!p(e[t]))return!1;return!0}(n))&&W(e,r.slice(0,-1)),e}function Q(){let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Y=e=>i(e)||"object"!=typeof e;function K(e,t){if(Y(e)||Y(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(r)&&a(e)||o(r)&&o(e)||Array.isArray(r)&&Array.isArray(e)?!K(r,e):r!==e)return!1}}return!0}var J=e=>M(e)&&e.isConnected,Z=e=>{for(let t in e)if(L(e[t]))return!0;return!1};function X(e,t={}){let r=Array.isArray(e);if(o(e)||r)for(let r in e)Array.isArray(e[r])||o(e[r])&&!Z(e[r])?(t[r]=Array.isArray(e[r])?[]:{},X(e[r],t[r])):i(e[r])||(t[r]=!0);return t}var ee=(e,t)=>(function e(t,r,n){let a=Array.isArray(t);if(o(t)||a)for(let a in t)Array.isArray(t[a])||o(t[a])&&!Z(t[a])?p(r)||Y(n[a])?n[a]=Array.isArray(t[a])?X(t[a],[]):{...X(t[a])}:e(t[a],i(r)?{}:r[a],n[a]):n[a]=!K(t[a],r[a]);return n})(e,t,X(t)),et=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>p(e)?e:t?""===e?NaN:e?+e:e:r&&"string"==typeof e?new Date(e):n?n(e):e;function er(e){let t=e.ref;if(e.refs?!e.refs.every(e=>e.disabled):!t.disabled)return"file"===t.type?t.files:"radio"===t.type?q(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?U(e.refs).value:et(p(t.value)?e.ref.value:t.value,e)}var en=e=>p(e)?e:e instanceof RegExp?e.source:o(e)?e.value instanceof RegExp?e.value.source:e.value:e;function ea(e,t,r){let n=h(e,r);if(n||x(r))return{error:n,name:r};let a=r.split(".");for(;a.length;){let n=a.join("."),i=h(t,n),o=h(e,n);if(i&&!Array.isArray(i)&&r!==n)break;if(o&&o.type)return{name:n,error:o};a.pop()}return{name:r}}let ei={mode:m.onSubmit,reValidateMode:m.onChange,shouldFocusError:!0};function eo(e={}){let t=n.useRef(),[r,g]=n.useState({isDirty:!1,isValidating:!1,isLoading:L(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:L(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,n={...ei,...e},g={submitCount:0,isDirty:!1,isLoading:L(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},y={},v=(o(n.defaultValues)||o(n.values))&&u(n.defaultValues||n.values)||{},b=n.shouldUnregister?{}:u(v),_={action:!1,mount:!1,watch:!1},C={mount:new Set,unMount:new Set,array:new Set,watch:new Set},w=0,P={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={values:Q(),array:Q(),state:Q()},S=e.resetOptions&&e.resetOptions.keepDirtyValues,N=k(n.mode),A=k(n.reValidateMode),F=n.criteriaMode===m.all,$=async e=>{if(P.isValid||e){let e=n.resolver?O((await q()).errors):await z(y,!0);e!==g.isValid&&x.state.next({isValid:e})}},B=e=>P.isValidating&&x.state.next({isValidating:e}),U=(e,t,r,n)=>{let a=h(y,e);if(a){let i=h(b,e,p(r)?h(v,e):r);p(i)||n&&n.defaultChecked||t?T(b,e,t?i:er(a._f)):eo(e,i),_.mount&&$()}},V=(e,t,r,n,a)=>{let i=!1,o=!1,s={name:e};if(!r||n){P.isDirty&&(o=g.isDirty,g.isDirty=s.isDirty=Z(),i=o!==s.isDirty);let r=K(h(v,e),t);o=h(g.dirtyFields,e),r?W(g.dirtyFields,e):T(g.dirtyFields,e,!0),s.dirtyFields=g.dirtyFields,i=i||P.dirtyFields&&!r!==o}if(r){let t=h(g.touchedFields,e);t||(T(g.touchedFields,e,r),s.touchedFields=g.touchedFields,i=i||P.touchedFields&&t!==r)}return i&&a&&x.state.next(s),i?s:{}},q=async e=>n.resolver(b,n.context,((e,t,r,n)=>{let a={};for(let r of e){let e=h(t,r);e&&T(a,r,e._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}})(e||C.mount,y,n.criteriaMode,n.shouldUseNativeValidation)),G=async e=>{let{errors:t}=await q();if(e)for(let r of e){let e=h(t,r);e?T(g.errors,r,e):W(g.errors,r)}else g.errors=t;return t},z=async(e,t,r={valid:!0})=>{for(let a in e){let i=e[a];if(i){let{_f:e,...a}=i;
30if(e){let a=C.array.has(e.name),o=await H(i,b,F,n.shouldUseNativeValidation&&!t,a);if(o[e.name]&&(r.valid=!1,t))break;t||(h(o,e.name)?a?R(g.errors,o,e.name):T(g.errors,e.name,o[e.name]):W(g.errors,e.name))}a&&await z(a,t,r)}}return r.valid},Z=(e,t)=>(e&&t&&T(b,e,t),!K(ed(),v)),X=(e,t,r)=>I(e,C,{..._.mount?b:p(t)?v:"string"==typeof e?{[e]:t}:t},r,t),eo=(e,t,r={})=>{let n=h(y,e),a=t;if(n){let r=n._f;r&&(r.disabled||T(b,e,et(t,r)),a=M(r.ref)&&i(t)?"":t,"select-multiple"===r.ref.type?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?"checkbox"===r.ref.type?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):r.refs[0]&&(r.refs[0].checked=!!a):r.refs.forEach(e=>e.checked=e.value===a):"file"===r.ref.type?r.ref.value="":(r.ref.value=a,r.ref.type||x.values.next({name:e,values:{...b}})))}(r.shouldDirty||r.shouldTouch)&&V(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eu(e)},es=(e,t,r)=>{for(let n in t){let i=t[n],o=`${e}.${n}`,s=h(y,o);!C.array.has(e)&&Y(i)&&(!s||s._f)||a(i)?eo(o,i,r):es(o,i,r)}},ec=(e,r,n={})=>{let a=h(y,e),o=C.array.has(e),s=u(r);T(b,e,s),o?(x.array.next({name:e,values:{...b}}),(P.isDirty||P.dirtyFields)&&n.shouldDirty&&x.state.next({name:e,dirtyFields:ee(v,b),isDirty:Z(e,s)})):!a||a._f||i(s)?eo(e,s,n):es(e,s,n),D(e,C)&&x.state.next({...g}),x.values.next({name:e,values:{...b}}),_.mount||t()},el=async t=>{let a=t.target,i=a.name,o=!0,c=h(y,i);if(c){let I,S,j,k=a.type?er(c._f):s(t),R=t.type===f.BLUR||t.type===f.FOCUS_OUT,L=!((j=c._f).mount&&(j.required||j.min||j.max||j.maxLength||j.minLength||j.pattern||j.validate))&&!n.resolver&&!h(g.errors,i)&&!c._f.deps||(l=R,u=h(g.touchedFields,i),d=g.isSubmitted,p=A,!(m=N).isOnAll&&(!d&&m.isOnTouch?!(u||l):(d?p.isOnBlur:m.isOnBlur)?!l:(d?!p.isOnChange:!m.isOnChange)||l)),M=D(i,C,R);T(b,i,k),R?(c._f.onBlur&&c._f.onBlur(t),r&&r(0)):c._f.onChange&&c._f.onChange(t);let U=V(i,k,R,!1),G=!O(U)||M;if(R||x.values.next({name:i,type:t.type,values:{...b}}),L)return P.isValid&&$(),G&&x.state.next({name:i,...M?{}:U});if(!R&&M&&x.state.next({...g}),B(!0),n.resolver){let{errors:e}=await q([i]),t=ea(g.errors,y,i),r=ea(e,y,t.name||i);I=r.error,i=r.name,S=O(e)}else I=(await H(c,b,F,n.shouldUseNativeValidation))[i],(o=isNaN(k)||k===h(b,i,k))&&(I?S=!1:P.isValid&&(S=await z(y,!0)));if(o){c._f.deps&&eu(c._f.deps);var l,u,d,p,m,v=i,_=S,E=I;let t=h(g.errors,v),n=P.isValid&&"boolean"==typeof _&&g.isValid!==_;if(e.delayError&&E){let t;t=()=>{T(g.errors,v,E),x.state.next({errors:g.errors})},(r=e=>{clearTimeout(w),w=setTimeout(t,e)})(e.delayError)}else clearTimeout(w),r=null,E?T(g.errors,v,E):W(g.errors,v);if((E?!K(t,E):t)||!O(U)||n){let e={...U,...n&&"boolean"==typeof _?{isValid:_}:{},errors:g.errors,name:v};g={...g,...e},x.state.next(e)}B(!1)}}},eu=async(e,t={})=>{let r,a,i=E(e);if(B(!0),n.resolver){let t=await G(p(e)?e:i);r=O(t),a=e?!i.some(e=>h(t,e)):r}else e?((a=(await Promise.all(i.map(async e=>{let t=h(y,e);return await z(t&&t._f?{[e]:t}:t)}))).every(Boolean))||g.isValid)&&$():a=r=await z(y);return x.state.next({..."string"!=typeof e||P.isValid&&r!==g.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:g.errors,isValidating:!1}),t.shouldFocus&&!a&&j(y,e=>e&&h(g.errors,e),e?i:C.mount),a},ed=e=>{let t={...v,..._.mount?b:{}};return p(e)?t:"string"==typeof e?h(t,e):e.map(e=>h(t,e))},ep=(e,t)=>({invalid:!!h((t||g).errors,e),isDirty:!!h((t||g).dirtyFields,e),isTouched:!!h((t||g).touchedFields,e),error:h((t||g).errors,e)}),eh=(e,t={})=>{for(let r of e?E(e):C.mount)C.mount.delete(r),C.array.delete(r),t.keepValue||(W(y,r),W(b,r)),t.keepError||W(g.errors,r),t.keepDirty||W(g.dirtyFields,r),t.keepTouched||W(g.touchedFields,r),n.shouldUnregister||t.keepDefaultValue||W(v,r);x.values.next({values:{...b}}),x.state.next({...g,...!t.keepDirty?{}:{isDirty:Z()}}),t.keepIsValid||$()},ef=(e,t={})=>{let r=h(y,e),a="boolean"==typeof t.disabled;return T(y,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),C.mount.add(e),r?a&&T(b,e,t.disabled?void 0:h(b,e,er(r._f))):U(e,!0,t.value),{...a?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:en(t.min),max:en(t.max),minLength:en(t.minLength),maxLength:en(t.maxLength),pattern:en(t.pattern)}:{}
30,name:e,onChange:el,onBlur:el,ref:a=>{if(a){let n;ef(e,t),r=h(y,e);let i=p(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,o="radio"===(n=i).type||"checkbox"===n.type,s=r._f.refs||[];(o?s.find(e=>e===i):i===r._f.ref)||(T(y,e,{_f:{...r._f,...o?{refs:[...s.filter(J),i,...Array.isArray(h(v,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),U(e,!1,void 0,i))}else(r=h(y,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(c(C.array,e)&&_.action)&&C.unMount.add(e)}}},em=()=>n.shouldFocusError&&j(y,e=>e&&h(g.errors,e),C.mount),eg=(r,n={})=>{let a=r||v,i=u(a),o=r&&!O(r)?i:v;if(n.keepDefaultValues||(v=a),!n.keepValues){if(n.keepDirtyValues||S)for(let e of C.mount)h(g.dirtyFields,e)?T(o,e,h(b,e)):ec(e,h(o,e));else{if(l&&p(r))for(let e of C.mount){let t=h(y,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(M(e)){let t=e.closest("form");if(t){t.reset();break}}}}y={}}b=e.shouldUnregister?n.keepDefaultValues?u(v):{}:i,x.array.next({values:{...o}}),x.values.next({values:{...o}})}C={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},_.mount||t(),_.mount=!P.isValid||!!n.keepIsValid,_.watch=!!e.shouldUnregister,x.state.next({submitCount:n.keepSubmitCount?g.submitCount:0,isDirty:n.keepDirty?g.isDirty:!!(n.keepDefaultValues&&!K(r,v)),isSubmitted:!!n.keepIsSubmitted&&g.isSubmitted,dirtyFields:n.keepDirtyValues?g.dirtyFields:n.keepDefaultValues&&r?ee(v,r):{},touchedFields:n.keepTouched?g.touchedFields:{},errors:n.keepErrors?g.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},ey=(e,t)=>eg(L(e)?e(b):e,t);return{control:{register:ef,unregister:eh,getFieldState:ep,_executeSchema:q,_getWatch:X,_getDirty:Z,_updateValid:$,_removeUnmounted:()=>{for(let e of C.unMount){let t=h(y,e);t&&(t._f.refs?t._f.refs.every(e=>!J(e)):!J(t._f.ref))&&eh(e)}C.unMount=new Set},_updateFieldArray:(e,t=[],r,n,a=!0,i=!0)=>{if(n&&r){if(_.action=!0,i&&Array.isArray(h(y,e))){let t=r(h(y,e),n.argA,n.argB);a&&T(y,e,t)}if(i&&Array.isArray(h(g.errors,e))){let t,i=r(h(g.errors,e),n.argA,n.argB);a&&T(g.errors,e,i),d(h(t=g.errors,e)).length||W(t,e)}if(P.touchedFields&&i&&Array.isArray(h(g.touchedFields,e))){let t=r(h(g.touchedFields,e),n.argA,n.argB);a&&T(g.touchedFields,e,t)}P.dirtyFields&&(g.dirtyFields=ee(v,b)),x.state.next({name:e,isDirty:Z(e,t),dirtyFields:g.dirtyFields,errors:g.errors,isValid:g.isValid})}else T(b,e,t)},_getFieldArray:t=>d(h(_.mount?b:v,t,e.shouldUnregister?h(v,t,[]):[])),_reset:eg,_resetDefaultValues:()=>L(n.defaultValues)&&n.defaultValues().then(e=>{ey(e,n.resetOptions),x.state.next({isLoading:!1})}),_updateFormState:e=>{g={...g,...e}},_subjects:x,_proxyFormState:P,get _fields(){return y},get _formValues(){return b},get _state(){return _},set _state(value){_=value},get _defaultValues(){return v},get _names(){return C},set _names(value){C=value},get _formState(){return g},set _formState(value){g=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:eu,register:ef,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let a=u(b);if(x.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await q();g.errors=e,a=t}else await z(y);W(g.errors,"root"),O(g.errors)?(x.state.next({errors:{}}),await e(a,r)):(t&&await t({...g.errors},r),em(),setTimeout(em)),x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(g.errors),submitCount:g.submitCount+1,errors:g.errors})},watch:(e,t)=>L(e)?x.values.subscribe({next:r=>e(X(void 0,t),r)}):X(e,t,!0),setValue:ec,getValues:ed,reset:ey,resetField:(e,t={})=>{h(y,e)&&(p(t.defaultValue)?ec(e,h(v,e)):(ec(e,t.defaultValue),T(v,e,t.defaultValue)),t.keepTouched||W(g.touchedFields,e),t.keepDirty||(W(g.dirtyFields,e),g.isDirty=t.defaultValue?Z(e,h(v,e)):Z()),!t.keepError&&(W(g.errors,e),P.isValid&&$()),x.state.next({...g}))},clearErrors:e=>{e&&E(e).forEach(e=>W(g.errors,e)),x.state.next({errors:e?g.errors:{}})},unregister:eh,setError:(e,t,r)=>{let n=(h(y,e,{_f:{}})._f||{}).ref;T(g.errors,e,{...t,ref:n}),x.state.next({name:e,errors:g.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},setFocus:(e,t={})=>{let r=h(y,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:ep}}(e,()=>g(e=>({...e}))),formState:r});let y=t.current.control;return y._options=e,P({subject:y._subjects.state,next:e=>{C(e,y._proxyFormState,y._updateFormState,!0)&&g({...y._formState})}}),n.useEffect(()=>{e.values&&!K(e.values,y._defaultValues)?y._reset(e.values,y._options.resetOptions):y._resetDefaultValues()},[e.values,y]),n.useEffect(()=>
30{y._state.mount||(y._updateValid(),y._state.mount=!0),y._state.watch&&(y._state.watch=!1,y._subjects.state.next({...y._formState})),y._removeUnmounted()}),t.current.formState=_(r,y),t.current}},40187:(e,t,r)=>{"use strict";r.d(t,{l:()=>u}),r(60004);var n=r(88088),a=r(43207),i=r(24903),o=r(76162),s=r(17137),c=r.n(s),l=r(60072);let u=({productId:e,quantitySteps:t,contentUnit:r,currency:s,amount:u,scale:d,displaySize:p})=>{let[h]=(0,a.B)(),{formatPrice:f}=(0,i.f)(),m=(0,o.Y8)(r,t),g=h("price.priceByUnit.by"),y="small"===p?"body-1":"body-2";return(0,l.jsxs)("div",{className:c().PriceByUnitContainer,"data-testid":"price-by-unit-container",children:[(0,l.jsxs)(n.E,{size:y,color:"subtle","data-testid":`stepMessage-${e}`,children:[g," ",t>1&&`${t} `,m]}),(0,l.jsx)("div",{className:c().dot}),(0,l.jsx)(n.E,{size:y,color:"subtle","data-testid":`priceunit-${e}`,className:c().priceUnit,children:f({price:{amount:u,currency:s,scale:d}})})]})}},40522:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},40657:e=>{e.exports={container:"suggested-product-card-image_container__jPQTj",productImage:"suggested-product-card-image_productImage__BHmV6",unloggedProductImage:"suggested-product-card-image_unloggedProductImage__U9C31",greenRating:"suggested-product-card-image_greenRating__uHHmp"}},40735:e=>{e.exports=function(e){return this.__data__.get(e)}},40857:(e,t,r)=>{"use strict";r.d(t,{Ff:()=>n,YX:()=>a,_S:()=>i,oH:()=>o,xX:()=>s});let n="catalog_compare_products",a="configurator_supplier",i="configurator_type",o="orders-calendar-last-viewed",s="punchout_account_picker_triggered"},40882:e=>{e.exports={root:"product-summary_root__0O6qu",image:"product-summary_image__J_6D4"}},41010:(e,t,r)=>{"use strict";r.d(t,{J1:()=>u});var n=r(60010),a=r(89475),i=new Map,o=new Map,s=!0,c=!1;function l(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var u=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?u+=t.loc.source.body:u+=t,u+=e[r+1]}),function(e){var t=l(e);if(!i.has(t)){var r,u,d,p,h,f=(0,a.qg)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c,experimentalFragmentArguments:c});if(!f||"Document"!==f.kind)throw Error("Not a valid GraphQL document.");i.set(t,((p=new Set((r=new Set,u=[],f.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,a=l((t=e.loc).source.body.substring(t.start,t.end)),i=o.get(n);i&&!i.has(a)?s&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||o.set(n,i=new Set),i.add(a),r.has(a)||(r.add(a),u.push(e))}else u.push(e)}),d=(0,n.Cl)((0,n.Cl)({},f),{definitions:u})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&p.add(r)})}),(h=d.loc)&&(delete h.startToken,delete h.endToken),d))}return i.get(t)}(u)}var d={gql:u,resetCaches:function(){i.clear(),o.clear()},disableFragmentWarnings:function(){s=!1},enableExperimentalFragmentVariables:function(){c=!0},disableExperimentalFragmentVariables:function(){c=!1}};!function(e){e.gql=d.gql,e.resetCaches=d.resetCaches,e.disableFragmentWarnings=d.disableFragmentWarnings,e.enableExperimentalFragmentVariables=d.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=d.disableExperimentalFragmentVariables}(u||(u={})),u.default=u},41018:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},41036:(e,t,r)=>{var n=r(41253),a=r(45987),i=r(53464),o=r(49411),s=r(29139),c=r(53283),l=r(93152),u=r(28399),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,y){var v=c(e),b=c(t),_=v?p:s(e),O=b?p:s(t);_=_==d?h:_,O=O==d?h:O;var C=_==h,E=O==h,w=_==O;if(w&&l(e)){if(!l(t))return!1;v=!0,C=!1}if(w&&!C)return y||(y=new n),v||u(e)?a(e,t,r,m,g,y):i(e,t,_,r,m,g,y);if(!(1&r)){var P=C&&f.call(e,"__wrapped__"),I=E&&f.call(t,"__wrapped__");
30if(P||I){var x=P?e.value():e,S=I?t.value():t;return y||(y=new n),g(x,S,r,m,y)}}return!!w&&(y||(y=new n),o(e,t,r,m,g,y))}},41253:(e,t,r)=>{var n=r(42183),a=r(50766),i=r(40522),o=r(40735),s=r(73843),c=r(91211);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=a,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},41326:(e,t,r)=>{e.exports=r(16299).Uint8Array},41551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=r(60004);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=i(e,n)),t&&(a.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41894:(e,t,r)=>{"use strict";r.d(t,{u_:()=>p,xd:()=>h});var n=r(60004),a=r(68915),i=r(2117),o=r(85582),s=r(74594),c=r(56815),l=r(83403),u=r(60072);let d=(0,n.createContext)({}),p=({children:e})=>{let{0:t,1:r}
30=(0,n.useState)(!1),{0:p,1:h}=(0,n.useState)(!1),{0:f,1:m}=(0,n.useState)(!1),{0:g,1:y}=(0,n.useState)(!1),{isLoggedIn:v,account:b}=(0,a.Z2)(),_=(0,s.p)(),{sendPageViewGtmTag:O}=(0,i.PB)(),{openSwitchCartDrawer:C,isSwitchCartDrawerOpen:E}=(0,l.a7)(),{openCreateCartDrawer:w,isCreateCartDrawerOpen:P}=(0,c.Au)(),I=(0,n.useMemo)(()=>({showSwitchCart:({projectId:e})=>{C({projectId:e}),O({page_type_1:_,page_type_2:o.Cm.SWITCH_CART}),m(!1),r(!1),h(!1),y(!1)},showCreateCart:({projectId:e})=>{w({projectId:e}),m(!1),r(!1),h(!1),y(!1)},isCreateCartOpen:P,isSwitchCartOpen:E}),[p,v&&b,P,f,t,E,g,_,O]);return(0,u.jsx)(d.Provider,{value:I,children:e})},h=()=>(0,n.useContext)(d)},41986:(e,t,r)=>{"use strict";r.d(t,{En:()=>o,JR:()=>d,Sw:()=>l,et:()=>i,ol:()=>s,uJ:()=>c});var n=r(68265),a="ReactNative"==(0,n.no)(function(){return navigator.product}),i="function"==typeof WeakMap&&!(a&&!global.HermesInternal),o="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,c=s&&Symbol.asyncIterator,l="function"==typeof(0,n.no)(function(){return window.document.createElement}),u=(0,n.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,d=(l||a)&&!u},42092:(e,t,r)=>{"use strict";r.d(t,{d:()=>h,o:()=>p});var n=e=>Math.floor(Math.random()*e),a=r(99638),i={short:4e3,medium:8e3,always:null},o=r(60004),{animationDuration:s,defaultDuration:c,defaultPlacement:l,defaultStatus:u,maxToasts:d}={animationDuration:400,defaultDuration:"short",defaultPlacement:"middle",defaultStatus:"info",maxToasts:4},p=()=>{let[e,t]=(0,o.useState)([]),r=(0,o.useRef)(new Map),a=(0,o.useCallback)(async e=>{t(t=>t.map(t=>t.id===e?{...t,isFadingOut:!0}:t)),await new Promise(e=>setTimeout(e,s)),t(t=>t.filter(t=>t.id!==e)),r.current.delete(e),clearTimeout(r.current.get(e))},[]),p=(0,o.useCallback)(()=>{for(let{id:t}of e)a(t)},[e,a]),h=(0,o.useCallback)(async o=>{let s=o.duration??c,p=o.id??((e=8)=>{let t="";for(let r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[n(62)];return t})(),h=o.status??u,f=o.placement??l,m=e.find(e=>e.id===p),g=e.length>=d;if(m&&await a(p),g){let t=e.find(e=>!e.isFadingOut)?.id;t&&a(t)}if(t(e=>[...e,{...o,duration:s,id:p,placement:f,...o.variant?{}:{status:h}}]),"always"!==s){let e=setTimeout(()=>void a(p),i[s]);r.current.set(p,e)}},[a,e]),f=(0,o.useCallback)(e=>{clearTimeout(r.current.get(e))},[]);return(0,o.useMemo)(()=>({sendToast:h,removeToast:a,removeToasts:p,removeToastTimeout:f,toasts:e}),[h,a,p,f,e])},h=()=>{let e=(0,o.useContext)(a.$);if(!e)throw Error("You need to wrap your component with <WattsProvider>");return e}},42127:(e,t,r)=>{var n=r(51559),a=r(44642),i=r(53283),o=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(o&&e&&e[o])}},42183:(e,t,r)=>{var n=r(89180),a=r(84252),i=r(65065),o=r(32029),s=r(80973);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=o,c.prototype.set=s,e.exports=c},42299:(e,t,r)=>{"use strict";r.d(t,{b:()=>c}),r(60004);var n=r(45062),a=r(43207);let i={ALREADY_PURCHASED:"info",END_OF_LIFE:"warning",NEW:"info",OUTLET:"secondary",PRODUCT_PARTNER:"primary",PROMO:"secondary",SUSTAINABLE:"success"};var o=r(45234),s=r(60072);let c=({tag:e,size:t})=>{let[r]=(0,a.B)();return o.YD[e.toUpperCase()]?(0,s.jsx)(n.v,{size:t,variant:i[e.toUpperCase()]??"secondary","data-testid":`productChip_${e}`,children:r(o.YD[e.toUpperCase()])}):null}},42504:(e,t,r)=>{e.exports=r(1282)(r(16299),"Promise")},42663:e=>{e.exports={listContainer:"pagination_listContainer__7nHpr",list:"pagination_list__jVJ_L",button:"pagination_button__R_bEv",selected:"pagination_selected__DrDGd",dots:"pagination_dots__psklx"}},42959:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(60004),a=r(10983),i=r(55537);let o=()=>{let{pathname:e,query:t}=(0,a.useRouter)(),{0:r,1:o}=(0,n.useState)("");return(0,n.useEffect)(()=>{e?.includes(`${i.b.catalog.search}/`)&&o(t?.slug)},[e,t]),[r,o]}},42970:(e,t)=>{"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},43207:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{B:()=>f});var a=r(14378),i=r(60004),o=r(5877);function s(){if(console&&console.warn){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}var c={};function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&c[t[0]]||("string"==typeof t[0]&&(c[t[0]]=new Date),s.apply(void 0,t))}function u(e,t,r){e.loadNamespaces(t,function(){e.isInitialized?r():e.on("initialized",function t(){setTimeout(function(){e.off("initialized",t)},0),r()})})}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
30t%2?d(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var h=function(e,t){var r=(0,i.useRef)();return(0,i.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current};function f(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.i18n,s=(0,i.useContext)(o.gJ)||{},c=s.i18n,d=s.defaultNS,f=a||c||(0,o.TO)();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new o.hz),!f){l("You will need to pass in an i18next instance by using initReactI18next");var m=function(e){return Array.isArray(e)?e[e.length-1]:e},g=[m,{},!1];return g.t=m,g.i18n={},g.ready=!1,g}f.options.react&&void 0!==f.options.react.wait&&l("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var y=p(p(p({},(0,o.rV)()),f.options.react),r),v=y.useSuspense,b=y.keyPrefix,_=e||d||f.options&&f.options.defaultNS;_="string"==typeof _?[_]:_||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(_);var O=(f.isInitialized||f.initializedStoreOnce)&&_.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0===t.options.ignoreJSONStructure?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],a=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var o=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!o(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(n,e)&&(!a||o(i,e)))}(e,t,r):t.hasLoadedNamespace(e,{precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
30isLanguageChangingTo,e))return!1}}):(l("i18n.languages were undefined or empty",t.languages),!0)}(e,f,y)});function C(){return f.getFixedT(null,"fallback"===y.nsMode?_:_[0],b)}var E=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(C))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],c=!0,l=!1;try{i=(r=r.call(e)).next,!1;for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return n(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),w=E[0],P=E[1],I=_.join(),x=h(I),S=(0,i.useRef)(!0);(0,i.useEffect)(function(){var e=y.bindI18n,t=y.bindI18nStore;function r(){S.current&&P(C)}return S.current=!0,O||v||u(f,_,function(){S.current&&P(C)}),O&&x&&x!==I&&S.current&&P(C),e&&f&&f.on(e,r),t&&f&&f.store.on(t,r),function(){S.current=!1,e&&f&&e.split(" ").forEach(function(e){return f.off(e,r)}),t&&f&&t.split(" ").forEach(function(e){return f.store.off(e,r)})}},[f,I]);var T=(0,i.useRef)(!0);(0,i.useEffect)(function(){S.current&&!T.current&&P(C),T.current=!1},[f,b]);var N=[w,f,O];if(N.t=w,N.i18n=f,N.ready=O,O||!O&&!v)return N;throw new Promise(function(e){u(f,_,function(){e()})})}},43319:(e,t,r)=>{var n=r(75980),a=r(35276),i=r(68665),o=r(99149),s=r(52797);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=o,c.prototype.set=s,e.exports=c},43586:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(98641),a=r(14872),i=r(15428),o=r(19394);function s(e,t,r){let[s,c]=(0,a.x)(r?.in,e,t),l=(0,o.o)(s),u=(0,o.o)(c);return Math.round((l-(0,n.G)(l)-(u-(0,n.G)(u)))/i.w4)}},43797:(e,t,r)=>{"use strict";r.d(t,{G:()=>l});var n=r(12072);r(60004);var a=r(46942),i=r(17480),o=r(60072);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l=({productId:e,lineItemId:t})=>{let r=(0,i.Nw)(e,t);return(0,o.jsx)(a.x,c(c({},r),{},{"data-testid":"price-display-block-container"}))}},44067:e=>{e.exports={container:"price-tooltip_container__FMFuY",button:"price-tooltip_button__Fm9Y4",icon:"price-tooltip_icon__DO_Cf",popover:"price-tooltip_popover__bxc0Z"}},44507:(e,t,r)=>{"use strict";r.d(t,{Q:()=>h}),r(60004);var n=r(12028),a=r(88088),i=r(82726),o=r(35695),s=r(86263),c=r(55537),l=r(79485),u=r.n(l),d=r(60072);let p={promotion:"flash",project:"buildings",spa:"percentage"},h=({variant:e,label:t,description:r,className:l,"data-testid":h="price-banner",promotionLinkLabel:f,promotionLinkCallback:m,promotionLinkHref:g})=>{let y=p[e];return(0,d.jsxs)("div",{"data-testid":h,className:(0,o.A)(u().container,u()[e],l),children:[(0,d.jsxs)("div",{className:u().priceVariantAndDescriptionContainer,children:[(0,d.jsx)("div",{className:u().iconContainer,children:(0,d.jsx)(n.I,{icon:y,size:"m",className:u()[e]})}),(0,d.jsx)(a.E,{weight:"bold",size:"body-2",className:(0,o.A)(u().labelText,u()[e]),children:t.toUpperCase()}),r&&(0,d.jsx)(a.E,{size:"body-2",title:r,className:(0,o.A)(u().descriptionText,u()[e]),children:r})]}),(0,d.jsxs)("div",{children:[g&&(0,d.jsx)(s.w,{href:g,app:c.b.catalog.app,className:u().promotionLink,children:f}),m&&(0,d.jsx)(i.$,{variant:"underlined",onClick:m,className:u().promotionLink,children:f})]})]})}},44642:(e,t,r)=>{var n=r(79394),a=r(76498),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")}},44705:(e,t,r)=>{"use strict";r.d(t,{Ri:()=>c,TV:()=>s,o7:()=>l});var n=r(12072),a=r(58948);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
30t%2?i(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let s=(e,t,r)=>(0,a.setCookie)(e,t,o(o({},r),{},{sameSite:r?.sameSite||"strict"})),c=(e,t)=>(0,a.getCookie)(e,t),l=a.deleteCookie},44908:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({className:e,line:t="solid",variant:r="major",...i})=>(0,a.jsx)("hr",{className:(0,n.$)("watts-divider",`watts-divider--${r}`,`watts-divider--${t}`,e),...i});i.displayName="Divider"},44936:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},44942:(e,t,r)=>{"use strict";r.d(t,{gz:()=>a,ky:()=>o,sC:()=>i});var n=r(41010);let a=(0,n.J1)`
31  fragment ProductPartialPrice on Price {
32    error
33    productPricesNotFound
34    productPrices {
35      ...ProductPriceBase
36      bestPrice {
37        ...ProductNetListBestPrices
38      }
39    }
40    pricePreference
41  }
42`,i=(0,n.J1)`
43  fragment ProductPriceBase on ProductPrices {
44    productId
45    netPrice {
46      amount
47      scale
48      currency
49    }
50    netPricePercentage
51    totalNetPrice {
52      amount
53      scale
54      currency
55    }
56    listPrice {
57      amount
58      scale
59      currency
60    }
61    totalListPrice {
62      amount
63      scale
64      currency
65    }
66    displayNetPrice {
67      amount
68      scale
69      currency
70    }
71    displayListPrice {
72      amount
73      scale
74      currency
75    }
76  }
77`,o=(0,n.J1)`
78  fragment ProductNetListBestPrices on BestPrice {
79    netPrice {
80      amount
81      scale
82      currency
83    }
84    netPricePercentage
85    totalNetPrice {
86      amount
87      scale
88      currency
89    }
90    listPrice {
91      amount
92      scale
93      currency
94    }
95    totalListPrice {
96      amount
97      scale
98      currency
99    }
100    displayNetPrice {
101      amount
102      scale
103      currency
104    }
105    displayListPrice {
106      amount
107      scale
108      currency
109    }
110  }
111`},45062:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({children:e,className:t,size:r="m",variant:i="primary",rounded:o=!1,...s})=>(0,a.jsx)("span",{className:(0,n.$)("watts-chip",`watts-chip--${i}`,`watts-chip--${r}`,{"watts-chip--rounded":o},t),...s,children:e});i.displayName="Chip"},45234:(e,t,r)=>{"use strict";r.d(t,{TJ:()=>a,XP:()=>i,YD:()=>n});let n=function(e){return e.NEW="catalog.tags.new",e.PROMO="catalog.tags.promo",e.END_OF_LIFE="catalog.tags.eol",e.SUSTAINABLE="catalog.tags.sustainable",e.PRODUCT_PARTNER="catalog.product.partnerProduct",e.ALREADY_PURCHASED="catalog.tags.alreadyPurchased",e.OUTLET="catalog.tags.outlet",e.CIRCULAR="catalog.tags.circular",e}({}),a="ALREADY_PURCHASED",i="PRODUCT_PARTNER"},45536:(e,t,r)=>{"use strict";r.d(t,{w:()=>T});var n=r(12072),a=r(60004),i=r(97970),o=r(1720),s=r(82726),c=r(17244),l=r(7764),u=r(35695),d=r(43207),p=r(85582),h=r(31811),f=r(46666),m=r(60956),g=r(24903),y=r(97546),v=r(22951),b=r(82755),_=r(24842),O=r(17480),C=r(99603),E=r.n(C);let w=async e=>await new Promise(t=>setTimeout(t,e));var P=r(60072);function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let S=(e,t,r)=>{isNaN(t)||t===r||(e.current=t>r?p.EC.INCREASE_QUANTITY:p.EC.DECREASE_QUANTITY)},T=(0,a.memo)(({productId:e,handleQuantityUpdate:t,handleAddToCart:r,setQuantity:n,isAddedToCart:C,isCounterDisabled:I=!1,isAddToCartDisabled:T=!1,isCartLinkedToCurrentProject:N,formattedTotalPrice:A,quantityStep:j=1,minQuantity:k,maxQuantity:D,quantity:R,hideCta:L=!1,itemId:M,className:F,plpViewMode:$,"data-testid":B="quantity-counter-cta",product:U,priceData:V,stocks:q})=>{let[G]=(0,d.B)(),{formatPrice:z}
111=(0,g.f)(),{0:H,1:W}=(0,a.useState)(!1),{popoverRef:Q}=(0,i.f)(),Y=(0,a.useContext)(O.z_),K=(0,a.useMemo)(()=>{let e=R??k;return"number"==typeof e&&!isNaN(e)&&e>0?e:k},[R,k]),J=(0,a.useRef)(null),Z=(0,a.useRef)(null),X=(0,a.useRef)(K),ee=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=Z.current;if(!e)return;let t=()=>{ee.current=!0};return e.addEventListener("mousedown",t),e.addEventListener("pointerdown",t),e.addEventListener("keydown",t),()=>{e.removeEventListener("mousedown",t),e.removeEventListener("pointerdown",t),e.removeEventListener("keydown",t)}},[]);let{0:et,1:er}=(0,a.useState)(K),{0:en,1:ea}=(0,a.useState)(!1),{0:ei,1:eo}=(0,a.useState)(!1),{0:es,1:ec}=(0,a.useState)(String(et)),el=(0,a.useRef)(p.EC.INCREASE_QUANTITY),eu=$===v.o6.Table,{cart:ed}=(0,h.B_)(),{isDeliveryPromiseEnabled:ep,getDeliveryPromises:eh,deliveryPromiseLoading:ef,deliveryPromiseData:em,pickupFacilityId:eg,deliveryFacilityId:ey,hasDeliveryPromiseContent:ev}=(0,f.T)({productViewPage:Y?.productViewPage,productId:e}),eb=(0,a.useMemo)(()=>x(x({},V),{},{productId:e}),[V,e]),{sendDeliveryPromise:e_}=(0,_.l)({product:U,priceData:eb,stocks:q,viewType:$,pickupFacilityId:eg,deliveryFacilityId:ey??void 0,productViewPage:Y?.productViewPage}),eO=(0,a.useCallback)(()=>{em&&!ef&&e_(p.cP.DELIVERY_PROMISE_VIEW_TOOLTIP,el.current,em)},[em,ef,e_]);(0,a.useEffect)(()=>{ei&&eO()},[ei,eO]);let eC=(0,a.useMemo)(()=>{let t=ed?.items||[];return t.filter(t=>t.productId===e&&t.productV2?.identifier?.stockIndicator===v.dv.L)?.reduce((e,t)=>e+(t?.quantity||0),0)||0},[ed?.items,e])>=D,eE=(0,a.useMemo)(()=>{let e=es?Number(es):null;return eC||D&&null!=e&&e>=D?G("catalog.product.exceededAvailableStocks",{count:D}):!H&&D&&et>D?G("catalog.product.quantityAdjusted"):void 0},[eC,D,H,et,G,es]),ew=(0,a.useCallback)(e=>{if(isNaN(e)||0===e||e<k)return k;if(e%j==0)return e;let t=e%j;return t>=j/2?e+(j-t):e-t},[k,j]);(0,a.useEffect)(()=>{K!==X.current&&"number"==typeof K&&!isNaN(K)&&K>0&&(er(K),ec(String(K)),X.current=K)},[K]);let eP=(0,a.useCallback)(async()=>{try{ea(!0);let e="number"==typeof et&&!isNaN(et)&&et>0?et:k;r(e),await w(800)}catch{console.error("[QuantityCounterCta]: Unhandled Error while adding to cart")}finally{ea(!1)}},[r,et,k]),eI=en?"check":C?"cart-check":"cart",ex=(0,a.useCallback)(e=>{"number"!=typeof e||isNaN(e)||e<=0||e!==X.current&&(er(e),n?.(e),X.current=e,W(!0))},[n]),eS=(0,a.useRef)({}),eT=(0,a.useRef)(),eN=(0,a.useRef)(),eA=(0,a.useRef)(!1);(0,y.C)({refs:[eT],onClickAway:e=>{let t=e?.target,r=eT.current?.contains(t),n=t.textContent===G("common.closePopover");(!r||n)&&ep&&ej(!0)}});let ej=(e=!1)=>{if(eS.current.close&&(clearTimeout(eS.current.close),eS.current.close=void 0),eS.current.loading&&(clearTimeout(eS.current.loading),eS.current.loading=void 0),e){em&&eA.current&&e_(p.cP.DELIVERY_PROMISE_CLOSE_TOOLTIP,void 0,em),eA.current=!1,eo(!1);return}eh(X.current||k),eo(!0)},ek=(0,a.useCallback)(e=>{let t=e.target;if(t){if(eT.current?.contains(t)){t.textContent?.trim()===G("common.closePopover")&&ep&&(eA.current=!0,ej(!0));return}ep&&(eA.current=!1,ej(!0))}},[eT,G,ep,ej]);(0,a.useEffect)(()=>{if(!ei||!ep)return;let e={passive:!0,capture:!1};return document.addEventListener("mousedown",ek,e),document.addEventListener("touchstart",ek,e),()=>{document.removeEventListener("mousedown",ek),document.removeEventListener("touchstart",ek)}},[ei,ep,ek]);let eD=(0,b.Y)(()=>ej(),800);(0,a.useEffect)(()=>{ei&&ev&&eN.current?.click()},[ei,ev]);let eR=(0,a.useCallback)(()=>{if(!J.current)return;let r=J.current.value,n=+r;S(el,n,X.current),ec(r);let a=ew(n);if(ep&&ee.current&&a!==X.current&&eD(),!r||""===r){er(k),X.current=k,J.current&&(J.current.value=String(k)),ec(String(k));return}let i=+r;if("number"!=typeof i||isNaN(i)||i<=0){let e=X.current||k;er(e),X.current=e,J.current&&(J.current.value=String(e)),ec(String(e));return}let o=ew(i);ex(o),o!==i&&(J.current&&(J.current.value=String(o)),ec(String(o))),o>0&&t&&t(e,o,M)},[t,M,e,ex,k,ec,ew,ep,ej]),eL=(0,a.useCallback)(e=>{let t=e.target.value;if(ec(t),!t||""===t){er(k),X.current=k;return}let r=+t,n=X.current;!isNaN(r)&&r>0?(S(el,r,X.current),ex(r)):(er(k),X.current=k),ee.current&&ep&&r!==n&&eD()},[ex,k,ep,eD]),eM=A&&et!==k?z({price:A}):null;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{ref:Z,"data-testid":B,className:(0,u.A)(E().container,eu&&E().tableView,F),children:[(0,P.jsx)(o.p,{ref:J,onUpdate:eR,value:et,disabled:I||ef,formattedValue:eM,id:`quantity-counter-${e}`,label:G("quantityCounter.label"),min:k,max:D,onChange:eL,decrementButton:{label:G("quantityCounter.decrementButtonLabel"),disabled:et===k},incrementButton:{label:G("quantityCounter.incrementButtonLabel"),disabled:et===D},name:"quantity-counter",className:(0,u.A)({[E().tableViewCounter]:eu,[E().quantityCounter]:!eu}),step:Math.abs(j),variant:eu?"light":"default"},!H&&D&&et>D?`maxQuantity-quantity-counter-${e}`:`quantity-counter-${e}`),!L&&r&&(0,P.jsx)(s.$,{"data-testid":"quantity-counter-cta-add",className:(0,u.A)({[E().addToCartActive]:en}),variant:"brand",disabled:T,size:eu?"s":"l",icon:eI,title:void 0!==N&&!1===N?G("project.selectLinkedCart.tooltip"):G("catalog.product.addToCart"),onClick:eP})]}),ei&&ep&&ev&&(0,P.jsx)("div",{className:(0,u.A)(E().popoverWrapper,{[E().popoverTable]:$===v.o6.Table,[E().popoverGrid]:$===v.o6.Grid}),ref:eT,children:(0,P.jsx)(c.A,{closeLabel:G("common.closePopover"),label:G("common.closePopover"),heading:{children:G("catalog.deliveryPromise.popoverTitle")},content:(0,P.jsx)(m.K,{loading:ef,deliveryPromiseData:em}),placement:"bottom-left",className:E().popover,"data-testid":"dynamic-delivery-promises-popover",ref:Q,children:(0,P.jsx)(s.$,{ref:eN,className:E().showButton,children:G("common.openPopover")})})}),eE&&(0,P.jsx)(l.Q,{status:"warning",description:eE,size:"s",className:E().warningMessage,"data-testid":"exceeded-stocks-warning"})]})})},45927:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});var n=r(10983),a=r(23134),i=r(7976),o=r(55537),s=r(52322),c=r(82979);let l=e=>{let{twelve_hours_notation:t}=(0,i.rD)(),{query:r,asPath:l}=(0,n.useRouter)(),u="string"==typeof r?.returnId?r?.returnId:r?.returnId?.[0],d=(0,s.PK)(t),p=e?.facility||e,h=e?.facilityType===a.ki.NationalLocker,f=!!e?.hasChildLocker,m=f?(0,s.mt)(e?.localLocker,", ",d):null,g=(0,s.mt)(e,", ",d),y=p?.name?(0,s.Wk)(p.name,45):"",v=e?.address?(e=>(0,s.Wk)(`${e?.addressLine1}, ${e?.postalCode} ${e?.city}`,70))(e.address):null,b=`https://maps.google.com/?q=${e?.address?.addressLine1},${e?.address?.postalCode},${e?.address?.city},${e?.address?.country}`,_=p?.contactInfo?.phoneNumber?`tel:${p.contactInfo?.phoneNumber}`:null,O=e?.name&&e?.facilityId?(0,c.vP)({name:e.name,facilityId:e.facilityId}):"";
111return{isLockerOnly:h,hasLocalLocker:f,lockerOpenTodayString:(0,s.OJ)(f?e?.localLocker:e),openTodayString:(0,s.vv)(e),facility:p,formattedAddress:v,storeOpenTimes:g,lockerOpenTimes:h?g:m,facilityName:y,selectCtaLabel:((e,t,r)=>r&&e===o.b.account.productReturnsCustomerInfo(r)?"productReturns.infoForm.selectStore":t?"header.storesDrawer.shopDepot":"header.storesDrawer.shopStore")(l,h,u),phoneNumberHref:_,seeOnMapHref:b,storeDetailPageHref:O}}},45987:(e,t,r)=>{var n=r(21709),a=r(27020),i=r(74729);e.exports=function(e,t,r,o,s,c){var l=1&r,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++f<u;){var y=e[f],v=t[f];if(o)var b=l?o(v,y,f,t,e,c):o(y,v,f,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!a(t,function(e,t){if(!i(g,t)&&(y===e||s(y,e,r,o,c)))return g.push(t)})){m=!1;break}}else if(!(y===v||s(y,v,r,o,c))){m=!1;break}}return c.delete(e),c.delete(t),m}},46291:(e,t,r)=>{"use strict";r.d(t,{Yf:()=>s,lG:()=>o,rU:()=>i});var n=r(31437);let a=["xsmall 72w","small 160w","medium 320w","large 480w","xlarge 960w"],i=e=>a.map(t=>((e,t)=>{let r=e.includes("?")?"&":"?";return`${e}${r}type=${t}`})(e,t)).join(","),o=e=>{e.currentTarget.src?.includes(n.Yy)||(e.currentTarget.srcset&&!e.currentTarget.srcset.includes(n.Yy)&&(e.currentTarget.srcset=n.Yy),e.currentTarget.src=n.Yy)},s=(e,t)=>`${e}/images/themes/${t}/favicon.ico`},46342:e=>{e.exports={container:"store-locator-card_container__Nc4Nw",root:"store-locator-card_root__kePXQ",information:"store-locator-card_information__GXjxb",storeNameContainer:"store-locator-card_storeNameContainer__u15Ee",storeName:"store-locator-card_storeName__rr_Qn",storeAddress:"store-locator-card_storeAddress__4LQqv",bottomInformation:"store-locator-card_bottomInformation__H0bS_",icons:"store-locator-card_icons__mpDJ9",iconLink:"store-locator-card_iconLink__odsxD",mapIcon:"store-locator-card_mapIcon__yjAJH",storeLinks:"store-locator-card_storeLinks__MIUJH",active:"store-locator-card_active__4h8P_",padding:"store-locator-card_padding__f0uua"}},46666:(e,t,r)=>{"use strict";r.d(t,{T:()=>p});var n=r(60004),a=r(94835),i=r(23134),o=r(7976),s=r(31811),c=r(68915),l=r(20),u=r(10468),d=r(22951);let p=({productViewPage:e,productId:t})=>{let{isFlagEnabled:r}=(0,o.h)(),p=r(u.Wq),h=r(u.tV),f=l.U.down("sm"),m=[d.WF.SEARCH_PLP,d.WF.DIRECT_PDP,d.WF.DIRECT_PLP].includes(e),g=e===d.WF.DIRECT_PDP,{cart:y}=(0,s.B_)(),v=y?.logisticDetails?.cdcFacilityId,b=y?.logisticDetails?.facilityId,{opCoAddressId:_,addressLine1:O,addressLine2:C,addressLine3:E,city:w,region:P,department:I,country:x,postalCode:S,addressName:T}=y?.logisticDetails?.deliveryAddress||{},{guestUser:N,user:A}=(0,c.Z2)(),[j,{data:k,error:D,loading:R}]=(0,a.oRh)(),L=(0,n.useRef)(void 0),M=(0,n.useRef)(void 0),F=(0,n.useRef)(!1);M.current!==t&&(L.current=void 0,M.current=t,F.current=!1);let $=k?.getDeliveryPromises?.deliveryPromises?.[0];(0,n.useEffect)(()=>{$&&(L.current=$,F.current=!($.deliveries?.some(e=>e?.expectedAvailabilityDate)||$.pickups?.some(e=>e?.expectedAvailabilityDate)))},[$]);let B=$??(R?L.current:void 0),U=B?.deliveries?.some(e=>e?.expectedAvailabilityDate)||B?.pickups?.some(e=>e?.expectedAvailabilityDate)?B:void 0,V=R&&!U&&!F.current,q=V||!!(U?.deliveries?.some(e=>e&&e.expectedAvailabilityDate&&(e.quantity??0)>0)||U?.pickups?.some(e=>e&&e.expectedAvailabilityDate&&(e.quantity??0)>0));return{isDeliveryPromiseEnabled:p&&h&&(g||!f)&&m,getDeliveryPromises:e=>{y?.logisticDetails?.deliveryAddress&&j({variables:{products:[{productId:t,quantity:e}],pickupFacilityId:b,deliveryFacilityId:v,logisticMethods:[i.gG.Delivery,i.gG.PickUp],accountId:A?.accountId||N?.accountId,deliveryAddress:{opCoAddressId:_,addressLine1:O,addressLine2:C,addressLine3:E,city:w,region:P,department:I,country:x,postalCode:S,addressName:T}}})},deliveryPromiseLoading:V,deliveryPromiseData:U,deliveryPromiseError:D,pickupFacilityId:b,deliveryFacilityId:v,hasDeliveryPromiseContent:q}}},46754:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(60004),a=(e=!1)=>{let[t,r]=(0,n.useState)(e),a=(0,n.useCallback)(()=>{r(e=>!e)},[]);return{close:(0,n.useCallback)(()=>{r(!1)},[]),isOpen:t,open:(0,n.useCallback)(()=>{r(!0)},[]),setIsOpen:r,toggle:a}}},46828:(e,t,r)=>{"use strict";let n,a,i;r.d(t,{Ik:()=>eu,RZ:()=>em,YO:()=>ep,Yj:()=>Z});var o=r(34776),s=r(16414),c=r(61347),l=r.n(c);let u=Object.prototype.toString,d=Error.prototype.toString,p=RegExp.prototype.toString,h="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",f=/^Symbol\((.*)\)(.*)$/;function m(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return h.call(e).replace(f,"Symbol($1)");let n=u.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+d.call(e)+"]":"RegExp"===n?p.call(e):null}function g(e,t){let r=m(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=m(this[e],t);return null!==n?n:r},2)}function y(e){return null==e?[]:[].concat(e)}let v=/\$\{\s*(\w+)\s*\}/g;n=Symbol.toStringTag;class b{constructor(e,t,r,a){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[n]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=a,this.errors=[],this.inner=[],y(e).forEach(e
111=>{if(_.isError(e)){this.errors.push(...e.errors);let t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}a=Symbol.hasInstance,i=Symbol.toStringTag;class _ extends Error{static formatError(e,t){let r=t.label||t.path||"this";return(t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e)?e.replace(v,(e,r)=>g(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n,a){let o=new b(e,t,r,n);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[i]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,_)}static[a](e){return b[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let O={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let a=null!=n&&n!==r?` (cast from the value \`${g(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${g(r,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${g(r,!0)}\``+a}},C={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},E={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},w={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},P={isValue:"${path} field must be ${value}"},I={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},x={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},S={notType:e=>{let{path:t,value:r,spec:n}=e,a=n.types.length;if(Array.isArray(r)){if(r.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${r.length} for value: \`${g(r,!0)}\``;if(r.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${r.length} for value: \`${g(r,!0)}\``}return _.formatError(O.notType,e)}};Object.assign(Object.create(null),{mixed:O,string:C,number:E,date:w,object:I,array:x,boolean:P,tuple:S});let T=e=>e&&e.__isYupSchema__;class N{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:a}=t,i="function"==typeof r?r:(...e)=>e.every(e=>e===r);return new N(e,(e,t)=>{var r;let o=i(...e)?n:a;return null!=(r=null==o?void 0:o(t))?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!T(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}}let A={context:"$",value:"."};class j{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===A.context,this.isValue=this.key[0]===A.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?A.context:this.isValue?A.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,o.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function k(e){function t({value:t,path:r="",options:n,originalValue:a,schema:i},o,s){let c,{name:l,test:u,params:d,message:p,skipAbsent:h}
111=e,{parent:f,context:m,abortEarly:g=i.spec.abortEarly,disableStackTrace:y=i.spec.disableStackTrace}=n,v={value:t,parent:f,context:m};function b(e={}){let n=D(Object.assign({value:t,originalValue:a,label:i.spec.label,path:e.path||r,spec:i.spec,disableStackTrace:e.disableStackTrace||y},d,e.params),v),o=new _(_.formatError(e.message||p,n),t,n.path,e.type||l,n.disableStackTrace);return o.params=n,o}let O=g?o:s,C={path:r,parent:f,type:l,from:n.from,createError:b,resolve:e=>R(e,v),options:n,originalValue:a,schema:i},E=e=>{_.isError(e)?O(e):e?s(null):O(b())},w=e=>{_.isError(e)?O(e):o(e)};if(h&&null==t)return E(!0);try{var P;if(c=u.call(C,t,C),"function"==typeof(null==(P=c)?void 0:P.then)){if(n.sync)throw Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(c).then(E,w)}}catch(e){w(e);return}E(c)}return t.OPTIONS=e,t}function D(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=R(e[r],t);return e}function R(e,t){return j.isRef(e)?e.getValue(t.value,t.parent,t.context):e}j.prototype.__isYupRef=!0;class L extends Set{describe(){let e=[];for(let t of this.values())e.push(j.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(let r of this.values())t.push(e(r));return t}clone(){return new L(this.values())}merge(e,t){let r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}}function M(e,t=new Map){let r;if(T(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=M(e[n],t)}else if(e instanceof Map)for(let[n,a]of(r=new Map,t.set(e,r),e.entries()))r.set(n,M(a,t));else if(e instanceof Set)for(let n of(r=new Set,t.set(e,r),e))r.add(M(n,t));else if(e instanceof Object)for(let[n,a]of(r={},t.set(e,r),Object.entries(e)))r[n]=M(a,t);else throw Error(`Unable to clone ${e}`);return r}function F(e,t){var r;if(!(null!=(r=e.inner)&&r.length)&&e.errors.length){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:function(e){if(!(null!=e&&e.length))return;let t=[],r="",n=!1,a=!1;for(let i=0;i<e.length;i++){let o=e[i];if("["===o&&!a){r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0;continue}if("]"===o&&!a){r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1;continue}if('"'===o){a=!a;continue}if("."===o&&!n&&!a){r&&(t.push(r),r="");continue}r+=o}return r&&t.push(...r.split(".").filter(Boolean)),t}(r)}))}let n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>F(e,n))}class ${constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new L,this._blacklist=new L,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(O.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=M(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=Object.assign({},this.spec,t.spec);return t.spec=r,t.internalTests=Object.assign({},this.internalTests,t.internalTests),t._whitelist=this._whitelist.merge(e._whitelist,e._blackl
111ist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return null==e?!!this.spec.nullable&&null===e||!!this.spec.optional&&void 0===e:this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}resolveOptions(e){var t,r,n,a;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive,disableStackTrace:null!=(a=e.disableStackTrace)?a:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({},t,{value:e})),n="ignore-optionality"===t.assert,a=r._cast(e,t);if(!1!==t.assert&&!r.isType(a)){if(n&&null==a)return a;let i=g(e),o=g(a);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". 
112
113attempted value: ${i} 
114`+(o!==i?`result of cast: ${o}`:""))}return a}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((r,n)=>n.call(this,r,e,this,t),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:a,originalValue:i=e,strict:o=this.spec.strict}=t,s=e;o||(s=this._cast(s,Object.assign({assert:!1},t)));let c=[];for(let e of Object.values(this.internalTests))e&&c.push(e);this.runTests({path:a,value:s,originalValue:i,options:t,tests:c},r,e=>{if(e.length)return n(e,s);this.runTests({path:a,value:s,originalValue:i,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:a,value:i,originalValue:o,path:s,options:c}=e,l=e=>{n||(n=!0,t(e,i))},u=e=>{n||(n=!0,r(e,i))},d=a.length,p=[];if(!d)return u([]);let h={value:i,originalValue:o,path:s,options:c,schema:this};for(let e=0;e<a.length;e++)(0,a[e])(h,l,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)})}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:a,options:i}){let o=null!=e?e:t;if(null==o)throw TypeError("Must include `key` or `index` for nested validations");let s="number"==typeof o,c=r[o],l=Object.assign({},i,{strict:!0,parent:r,value:c,originalValue:a[o],key:void 0,[s?"index":"key"]:o,path:s||o.includes(".")?`${n||""}[${s?o:`"${o}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(l)._validate(c,l,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),a=null!=(r=null==t?void 0:t.disableStackTrace)?r:n.spec.disableStackTrace;return new Promise((r,i)=>n._validate(e,t,(e,t)=>{_.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new _(e,t,void 0,void 0,a)):r(t)}))}validateSync(e,t){var r;let n,a=this.resolve(Object.assign({},t,{value:e})),i=null!=(r=null==t?void 0:t.disableStackTrace)?r:a.spec.disableStackTrace;return a._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw _.isError(e)&&(e.value=t),e},(t,r)=>{if(t.length)throw new _(t,e,void 0,void 0,i);n=r}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(_.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(_.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):M(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){let r=this.clone({nullable:e});return r.internalTests.nullable=k({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){let r=this.clone({optional:e});return r.internalTests.optionality=k({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=O.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=O.notNull){return this.nullability(!1,e)}required(e=O.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=O.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=k(t),a=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>(e.OPTIONS.name!==t.name||!a&&e.OPTIONS.test!==n.OPTIONS.test)&&!0),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=y(e).map(e=>new j(e));
114return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new N(n,t):N.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=k({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=O.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=k({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=O.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=k({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){let t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:a,nullable:i}=t.spec;return{meta:n,label:r,optional:a,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,r)=>r.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{let r=t.OPTIONS.params&&e?D(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:r}})}}get"~standard"(){let e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof _)return{issues:F(e)};throw e}}}}}for(let e of($.prototype.__isYupSchema__=!0,["validate","validateSync"]))$.prototype[`${e}At`]=function(t,r,n={}){let{parent:a,parentPath:i,schema:s}=function(e,t,r,n=r){let a,i,s;return t?((0,o.forEach)(t,(o,c,l)=>{let u=c?o.slice(1,o.length-1):o,d="tuple"===(e=e.resolve({context:n,parent:a,value:r})).type,p=l?parseInt(u,10):0;if(e.innerType||d){if(d&&!l)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&p>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[p],e=d?e.spec.types[p]:e.innerType}if(!l){if(!e.fields||!e.fields[u])throw Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);a=r,r=r&&r[u],e=e.fields[u]}i=u,s=c?"["+o+"]":"."+o}),{schema:e,parent:a,parentPath:i}):{parent:a,parentPath:t,schema:e}}(this,t,r,n.context);return s[e](a&&a[i],Object.assign({},n,{parent:a,path:t}))};for(let e of["equals","is"])$.prototype[e]=$.prototype.oneOf;for(let e of["not","nope"])$.prototype[e]=$.prototype.notOneOf;let B=()=>!0;class U extends ${constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:B},e))}}U.prototype;class V extends ${constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=P.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>null==e||!0===e})}isFalse(e=P.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>null==e||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}V.prototype;let q=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function G(e){var t,r;let n=q.exec(e);return n?{year:z(n[1]),month:z(n[2],1)-1,day:z(n[3],1),hour:z(n[4]),minute:z(n[5]),second:z(n[6]),millisecond:n[7]?z(n[7].substring(0,3)):0,precision:null!=(t=null==(r=n[7])?void 0:r.length)?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:z(n[10]),minuteOffset:z(n[11])}:null}function z(e,t=0){return Number(e)||t}let H=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,W=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Q=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Y=RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),K=e=>null==e||e===e.trim(),J=({}).toString();function Z(){return new X}class X extends ${constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;let r=null!=e&&e.toString?e.toString():e;return r===J?e:r})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||O.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=C.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=C.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=C.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,a=!1;return t&&("object"==typeof t?{excludeEmptyString:a=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||C.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&a||-1!==t.search(e)})}email(e=C.email){return this.matches(H,{name:"email",message:e,excludeEmptyString:!0})}url(e=C.url){return this.matches(W,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=C.uuid){return this.matches(Q,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?{message:n="",allowOffset:t=!1,precision:r}=e:n=e),this.matches(Y,{name:"datetime",message:n||C.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||C.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;let r=G(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||C.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||void 0==r)return!0;let t=G(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=C.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:K})}lowercase(e=C.lowercase){return this.transform(e=>null==e?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>null==e||e===e.toLowerCase()})}uppercase(e=C.uppercase){return this.transform(e=>null==e?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>null==e||e===e.toUpperCase()})}}Z.prototype=X.prototype;class ee extends ${constructor(){super({type:"number",check(e){let t;return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&(t=e)==+t}}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce)return e;let r=e;if("string"==typeof r){if(""===(r=r.replace(/\s/g,"")))return NaN;r*=1}return this.isType(r)||null===r?r:parseFloat(r)})})}min(e,t=E.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=E.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=E.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=E.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=E.positive){return this.moreThan(0,e)}negative(e=E.negative){return this.lessThan(0,e)}integer(e=E.integer){return this.test({name:"integer",message:e,ski
114pAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>null==e?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>null==t?t:Math[e](t))}}ee.prototype;let et=new Date("");function er(){return new en}class en extends ${constructor(){super({type:"date",check:e=>"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:isNaN(e=function(e){let t=G(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(e))?en.INVALID_DATE:new Date(e))})}prepareParam(e,t){let r;if(j.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=w.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=w.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}}function ea(e,t){let r=1/0;return e.some((e,n)=>{var a;if(null!=(a=t.path)&&a.includes(e))return r=n,!0}),r}function ei(e){return(t,r)=>ea(e,t)-ea(e,r)}en.INVALID_DATE=et,er.prototype=en.prototype,er.INVALID_DATE=et;let eo=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(e){}return r.isType(n)?n:e},es=e=>"[object Object]"===Object.prototype.toString.call(e);function ec(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===r.indexOf(e))}let el=ei([]);function eu(e){return new ed(e)}class ed extends ${constructor(e){super({type:"object",check:e=>es(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=el,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let a=this.fields,i=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),s={},c=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),l=!1;for(let e of o){let r=a[e],o=e in n,u=n[e];if(r){let a;c.path=(t.path?`${t.path}.`:"")+e;let i=(r=r.resolve({value:u,context:t.context,parent:s}))instanceof $?r.spec:void 0,o=null==i?void 0:i.strict;if(null!=i&&i.strip){l=l||e in n;continue}void 0!==(a=t.__validating&&o?u:r.cast(u,c))&&(s[e]=a)}else o&&!i&&(s[e]=u);(o!==e in s||s[e]!==u)&&(l=!0)}return l?s:n}_validate(e,t={},r,n){let{from:a=[],originalValue:i=e,recursive:o=this.spec.recursive}=t;t.from=[{schema:this,value:i},...a],t.__validating=!0,t.originalValue=i,super._validate(e,t,r,(e,a)=>{if(!o||!es(a))return void n(e,a);i=i||a;let s=[];for(let e of this._nodes){let r=this.fields[e];!r||j.isRef(r)||s.push(r.asNestedTest({options:t,key:e,parent:a,parentPath:t.path,originalParent:i}))}this.runTests({tests:s,value:a,originalValue:i,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),a)})})}clone(e){let t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];r[e]=void 0===n?t:n}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;let a=this.fields[r],i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t[r]=a&&"getDefault"in a?a.getDefault(i):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,a=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=(0,o.split)(e)[0];n.add(i),a.has(`${t}-${i}`)||r.push([t,i])}for(let t of Object.keys(e)){let r=e[t];n.add(t),j.isRef(r)&&r.isSibling?i(r.path,t):T(r)&&"deps"in r&&r.deps.forEach(e
114=>i(e,t))}return l().array(Array.from(n),r).reverse()}(e,t),r._sortErrors=ei(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){let e={};for(let[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return function e(t){if("fields"in t){let r={};for(let[n,a]of Object.entries(t.fields))r[n]=e(a);return t.setFields(r)}if("array"===t.type){let r=t.optional();return r.innerType&&(r.innerType=e(r.innerType)),r}return"tuple"===t.type?t.optional().clone({types:t.spec.types.map(e)}):"optional"in t?t.optional():t}(this)}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){let t=[];for(let r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,o.getter)(e,!0);return this.transform(a=>{if(!a)return a;let i=a;return((e,t)=>{let r=[...(0,o.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),a=(0,o.getter)((0,o.join)(r),!0)(e);return!!(a&&n in a)})(a,e)&&(i=Object.assign({},a),r||delete i[e],i[t]=n(a)),i})}json(){return this.transform(eo)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||I.exact,test(e){if(null==e)return!0;let t=ec(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=I.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;let r=ec(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=I.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;let r={};for(let n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(s.camelCase)}snakeCase(){return this.transformKeys(s.snakeCase)}constantCase(){return this.transformKeys(e=>(0,s.snakeCase)(e).toUpperCase())}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);for(let[a,i]of(r.fields={},Object.entries(t.fields))){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[a]})),r.fields[a]=i.describe(t)}return r}}function ep(e){return new eh(e)}eu.prototype=ed.prototype;class eh extends ${constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,a=r.map((e,a)=>{let i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${a}]`,parent:r,originalValue:e,value:e,index:a}));return i!==e&&(n=!0),i});return n?a:r}_validate(e,t={},r,n){var a;let i=this.innerType,o=null!=(a=t.recursive)?a:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(a,s)=>{var c,l;if(!o||!i||!this._typeCheck(s))return void n(a,s);let u=Array(s.length);for(let r=0;r<s.length;r++)u[r]=i.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:null!=(l=t.originalValue)?l:e});this.runTests({value:s,tests:u,originalValue:null!=(c=t.originalValue)?c:e,options:t},r,e=>n(e.concat(a),s))})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(eo)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!T(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+g(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=x.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||x.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||x.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let a=e;
114null!=(n=a)&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),r.innerType=t.innerType.describe(a)}return r}}ep.prototype=eh.prototype;class ef extends ${constructor(e){super({type:"tuple",spec:{types:e},check(e){let t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(S.notType)})}_cast(e,t){let{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let a=!1,i=r.map((e,r)=>{let i=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`,parent:n,originalValue:n[r],value:n[r],index:r}));return i!==n[r]&&(a=!0),i});return a?i:n}_validate(e,t={},r,n){let a=this.spec.types;super._validate(e,t,r,(i,o)=>{var s,c;if(!this._typeCheck(o))return void n(i,o);let l=[];for(let[r,n]of a.entries())l[r]=n.asNestedTest({options:t,index:r,parent:o,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e});this.runTests({value:o,tests:l,originalValue:null!=(s=t.originalValue)?s:e,options:t},r,e=>n(e.concat(i),o))})}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let a=e;return null!=(n=a)&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),t.describe(a)}),r}}function em(e){return new ey(e)}function eg(e){try{return e()}catch(e){if(_.isError(e))return Promise.reject(e);throw e}}ef.prototype;class ey{constructor(e){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(e,t={})=>{let r=this.builder(e,t);if(!T(r))throw TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(r=r.optional()),r.resolve(t)},this.builder=e,this.spec={meta:void 0,optional:!1}}clone(e){let t=new ey(this.builder);return t.spec=Object.assign({},this.spec,e),t}optionality(e){return this.clone({optional:e})}optional(){return this.optionality(!0)}resolve(e){return this._resolve(e.value,e)}cast(e,t){return this._resolve(e,t).cast(e,t)}asNestedTest(e){let{key:t,index:r,parent:n,options:a}=e,i=n[null!=r?r:t];return this._resolve(i,Object.assign({},a,{value:i,parent:n})).asNestedTest(e)}validate(e,t){return eg(()=>this._resolve(e,t).validate(e,t))}validateSync(e,t){return this._resolve(e,t).validateSync(e,t)}validateAt(e,t,r){return eg(()=>this._resolve(t,r).validateAt(e,t,r))}validateSyncAt(e,t,r){return this._resolve(t,r).validateSyncAt(e,t,r)}isValid(e,t){try{return this._resolve(e,t).isValid(e,t)}catch(e){if(_.isError(e))return Promise.resolve(!1);throw e}}isValidSync(e,t){return this._resolve(e,t).isValidSync(e,t)}describe(e){return e?this.resolve(e).describe(e):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}get"~standard"(){let e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(_.isError(e))return{issues:F(e)};throw e}}}}}},46942:(e,t,r)=>{"use strict";r.d(t,{x:()=>E});var n=r(12072);r(60004);var a=r(88088),i=r(35880),o=r(35695),s=r(43207),c=r(24903),l=r(40187),u=r(22951),d=r(37193),p=r(11242),h=r(92342),f=r(4090),m=r.n(f),g=r(72889),y=r(60072);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let b=function(e){return e.GROSS_AND_NET_PRICES="GROSS_AND_NET_PRICES",e.ONLY_NET_PRICES="ONLY_NET_PRICES",e.ONLY_GROSS_PRICES="ONLY_GROSS_PRICES",e.NO_PRICES="NO_PRICES",e}({}),_={[u.JH.Project]:m().projectColor,[u.JH.SpecialPriceAgreement]:m().spaColor,[u.JH.Promotion]:m().promotionColor},O=e=>_[e],C={small:{main:"body-2",secondary:void 0,reduction:"body-2"},medium:{main:"body-5",secondary:"body-2",reduction:"body-2"},large:{main:"body-6",secondary:"body-3",reduction:"body-3"}},E=({productId:e,isLoading:t,priceHasError:r,priceDisplay:f,priceModification:_,displaySize:E,contentUnit:w,price:P,quantitySteps:I,plpViewMode:x,priceTooltipData:S,className:T,disallowTooltip:N,hideUnitPriceLine:A=!1,priceDisplayMultiplier:j,displayAlignment:k="right","data-testid":D})=>{let[R,L]=(0,s.B)(),{formatPrice:M}=(0,c.f)(),F=(0,h.LH)(L.language,j,w);if(t)return(0,y.jsx)(g.U,{productId:e,displayAlignment:k});if(f===b.NO_PRICES)return null;if(r||!P)return(0,y.jsx)("div",{"data-testid":`price-error-${e}`,children:R("catalog.price.priceUnavailable")});let $=f===b.GROSS_AND_NET_PRICES&&"small"!==E&&x!==u.o6.Grid,B=P.priceBeforeReduction,U=P.priceReductionPercentage;return(0,y.jsxs)("div",{className:(0,o.A)(T,m().priceBlockContainer,"left"===k?m().alignLeft:m().alignRight),"data-testid":D,children:[$&&(0,y.jsx)(a.E,{size:C[E]?.secondary,weight:"regular",color:"subtle",className:m().secondaryPriceText,"data-testid":`secondary-price-display-${e}`,as:"span",children:P?.secondaryPrice?.amount?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:"sr-only",children:R("catalog.promo.withoutOffer")}),M({price:P.secondaryPrice,quantity:1})]}):(0,y.jsx)(i.E,{width:48,height:16,shape:"line"})}),(0,y.jsxs)("div",{className:(0,o.A)("left"===k?m().orderTooltip:m().orderTooltipReverse),children:["small"===E||N?null:(0,y.jsx)(d.X,{dataTestId:`price-tooltip-${e}`,content:(0,y.jsx)(p.w,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
114t%2?v(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},S))}),(0,y.jsxs)("span",{className:m().mainPriceWithUnit,children:[(0,y.jsx)(a.E,{size:C[E]?.main,weight:"black",className:O(_),as:"span","data-testid":`main-price-display-${e}`,children:M({price:P.mainPrice,quantity:1})}),F?(0,y.jsx)(a.E,{size:"small"===E?"body-1":"body-2",weight:"regular",className:m().priceMultiplier,as:"span","data-testid":`price-multiplier-${e}`,children:F}):null]})]}),!!B&&(0,y.jsxs)("div",{className:(0,o.A)(m().priceReduction,"left"===k?m().priceReductionLeft:void 0),children:[(0,y.jsx)("span",{className:"sr-only",children:R("catalog.priceBanner.promotion")}),!!U&&(0,y.jsx)(a.E,{size:C[E]?.reduction,weight:"bold",className:O(_),"data-testid":"promotional-percentage",as:"span",children:`-${P.priceReductionPercentage} %`}),(0,y.jsx)(a.E,{size:C[E]?.reduction,weight:"regular",color:"subtle",className:m().priceBeforeReduction,"data-testid":`price-reduction-${e}`,as:"span",children:M({price:P.priceBeforeReduction,quantity:1})})]}),!F&&!A&&P.priceByStep&&void 0!==I&&(0,y.jsx)(l.l,{productId:e,quantitySteps:I,contentUnit:w,currency:P.priceByStep.currency,scale:P.priceByStep.scale,amount:P.priceByStep.amount,displaySize:E})]})}},47001:e=>{e.exports={actions:"logged-in-action-container_actions__AOQKR",newActions:"logged-in-action-container_newActions__i8GGT",cart:"logged-in-action-container_cart__aizhd",mobileHeaderCart:"logged-in-action-container_mobileHeaderCart__5viyp","actions--scrolledDown":"logged-in-action-container_actions--scrolledDown___MBiH",userScrolledDown:"logged-in-action-container_userScrolledDown__v_TMj",newHeaderActions:"logged-in-action-container_newHeaderActions__iAvg8",store:"logged-in-action-container_store__7jB_u",user:"logged-in-action-container_user__PlJP1",divider:"logged-in-action-container_divider__GW2gb",switchCart:"logged-in-action-container_switchCart__rorqj",switchCartDesktopOnly:"logged-in-action-container_switchCartDesktopOnly__uPfVu"}},47017:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(60010),a=r(39948);function i(e,t){return(0,a.o)(e,t,t.variables&&{variables:(0,a.o)((0,n.Cl)((0,n.Cl)({},e&&e.variables),t.variables))})}},47179:e=>{e.exports={listItem:"favorite-lists-drawer-form_listItem__zom2_"}},47269:(e,t,r)=>{"use strict";r.d(t,{E:()=>a,c:()=>n});var n=Array.isArray;function a(e){return Array.isArray(e)&&e.length>0}},47640:(e,t,r)=>{"use strict";r.d(t,{C2:()=>o,Eo:()=>a,hb:()=>i,kK:()=>n});let n="kl-3rd-pendo",a="ft-pendo-feedback-collection",i="rl-pendo-set-analytics",o="ft-pendo-nps-survey"},47821:(e,t,r)=>{"use strict";let n,a;r.r(t),r.d(t,{default:()=>a2,reportWebVitals:()=>a0});var i,o,s,c,l,u,d,p,h=r(12072),f=r(54688),m=r(60004),g=r(34407),y=r(24120),v=r.n(y),b=r(10983),_=r(58590),O=r(94835),C=r(68915),E=r(67303),w=r(60010),P=r(68265),I=r(36215),x=r(66192),S=function(e){var t=e.client,r=e.children,n=(0,x.l)(),a=I.useContext(n),i=I.useMemo(function(){return(0,w.Cl)((0,w.Cl)({},a),{client:t||a.client})},[a,t]);return(0,P.V1)(i.client,55),I.createElement(n.Provider,{value:i},r)};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&N(e.prototype,t),r&&N(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var j=function(){return"function"==typeof Symbol},k=function(e){return j()&&!!Symbol[e]},D=function(e){return k(e)?Symbol[e]:"@@"+e};j()&&!k("observable")&&(Symbol.observable=Symbol("observable"));var R=D("iterator"),L=D("observable"),M=D("species");function F(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function $(e){var t=e.constructor;return void 0!==t&&null===(t=t[M])&&(t=void 0),void 0!==t?t:Q}function B(e){B.log?B.log(e):setTimeout(function(){throw e})}function U(e){Promise.resolve().then(function(){try{e()}catch(e){B(e)}})}function V(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=F(t,"unsubscribe");r&&r.call(t)}}catch(e){B(e)}}function q(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function G(e,t,r){e._state="running";var n=e._observer;try{var a=F(n,t);switch(t){case"next":a&&a.call(n,r);break;case"error":if(q(e),a)a.call(n,r);else throw r;break;case"complete":q(e),a&&a.call(n)}}catch(e){B(e)}"closed"===e._state?V(e):"running"===e._state&&(e._state="ready")}function z(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],U(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(G(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}G(e,t,r)}}var H=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new W(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(q(this),V(this))},A(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),W=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){z(this._subscription,"next",e)},t.error=function(e){z(this._subscription,"error",e)},t.complete=function(){z(this._subscription,"complete")},A(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Q=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new H(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return void n(TypeError(e+" is not a function"));function a(){i.unsubscribe(),r()}var i=t.subscribe({next:function(t){try{e(t,a)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new($(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new($(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=$(this),n=arguments.length>1,a=!1,i=arguments[1],o=i;return new r(function(r){return t.subscribe({next:function(t){var i=!a;if(a=!0,!i||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!a&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=$(this);return new a(function(t){var n,i=0;return!function e(o){n=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){i===r.length?(n=void 0,t.complete()):e(a.from(r[i++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=$(this);return new r(function(n){var a=[],i=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var i=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=a.indexOf(i);e>=0&&a.splice(e,1),o()}});a.push(i)},error:function(e){n.error(e)},complete:function(){o()}});function o(){i.closed&&0===a.length&&n.complete()}return function(){a.forEach(function(e){return e.unsubscribe()}),i.unsubscribe()}})},t[L]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=F(t,L);if(n){var a=n.call(t);if(Object(a)!==a)throw TypeError(a+" is not an object");return a instanceof Q&&a.constructor===r?a:new r(function(e){return a.subscribe(e)})}if(k("iterator")&&(n=F(t,R)))return new r(function(e){U(function(){if(!e.closed){for(var r,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return T(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=a()).done;){var i=r.value;if(e.next(i),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){U(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){U(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},A(e,null,[{key:M,get:function(){return this}}]),e}();j()&&Object.defineProperty(Q,Symbol("extensions"),{value:{symbol:L,hostReportError:B},configurable:!0});var Y=r(9073);function K(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,P.vA)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,P.V1)(1===n.length,86,n.length),r=n[0].name.value),(0,w.Cl)((0,w.Cl)({},e),{definitions:(0,w.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function J(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function Z(e,t){switch(e.kind){case"InlineFragment":return e;
114case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,P.V1)(n,87,r),n||null;default:return null}}var X=r(36854),ee=r(37661),et=Object.assign(function(e){return JSON.stringify(e,er)},{reset:function(){i=new X.V(ee.v.canonicalStringify||1e3)}});function er(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(en))return t;var a=JSON.stringify(n),o=i.get(a);if(!o){n.sort();var s=JSON.stringify(n);o=i.get(s)||n,i.set(a,o),i.set(s,o)}var c=Object.create(r);return o.forEach(function(e){c[e]=t[e]}),c}}return t}function en(e,t,r){return 0===t||r[t-1]<=e}function ea(e){return{__ref:String(e)}}function ei(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function eo(e,t,r,n){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var a={};r.fields.map(function(e){return eo(a,e.name,e.value,n)}),e[t.value]=a}else if("Variable"===r.kind){var i=(n||{})[r.name.value];e[t.value]=i}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return eo(r,t,e,n),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,P.vA)(96,t.value,r.kind)}et.reset();var es=["connection","include","skip","client","rest","export","nonreactive"],ec=et,el=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var a={};return n.forEach(function(e){a[e]=t[e]}),"".concat(r.connection.key,"(").concat(ec(a),")")}var i=e;if(t){var o=ec(t);i+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(e){-1===es.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+="@".concat(e,"(").concat(ec(r[e]),")"):i+="@".concat(e))}),i},{setStringify:function(e){var t=ec;return ec=e,t}});function eu(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return eo(r,e.name,e.value,t)}),r}return null}function ed(e){return e.alias?e.alias.value:e.name.value}function ep(e,t,r){for(var n,a=0,i=t.selections;a<i.length;a++){var o=i[a];if(eh(o)){if("__typename"===o.name.value)return e[ed(o)]}else n?n.push(o):n=[o]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,c=n;s<c.length;s++){var o=c[s],l=ep(e,Z(o,r).selectionSet,r);if("string"==typeof l)return l}}function eh(e){return"Field"===e.kind}function ef(e){(0,P.V1)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,P.vA)(89,e.kind);return e});return(0,P.V1)(t.length<=1,90,t.length),e}function em(e){return ef(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function eg(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function ey(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function ev(e){ef(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var a=n[r];if("OperationDefinition"===a.kind){var i=a.operation;if("query"===i||"mutation"===i||"subscription"===i)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,P.vA)(95)}function eb(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&eo(t,e.variable.name,e.defaultValue)}),t}function e_(e,t){return t?t(e):Q.of()}function eO(e){return"function"==typeof e?new eE(e):e}function eC(e){return e.request.length<=1}var eE=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return Q.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(eO).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var a=eO(r),i=eO(n||new e(e_));return Object.assign(new e(eC(a)&&eC(i)?function(e){return t(e)?a.request(e)||Q.of():i.request(e)||Q.of()}:function(e,r){return t(e)?a.request(e,r)||Q.of():i.request(e,r)||Q.of()}),{left:a,right:i})},e.execute=function(e,t){var r,n,a,i,o;return e.request((a=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var a=n[r];if(0>t.indexOf(a))throw(0,P.vA)(46,a)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?eg(n.query)||void 0:""),i=n,o=(0,w.Cl)({},a),Object.defineProperty(i,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?(0,w.Cl)((0,w.Cl)({},o),e(o)):(0,w.Cl)((0,w.Cl)({},o),e)}}),Object.defineProperty(i,"getContext",{enumerable:!1,value:function(){return(0,w.Cl)({},o)}}),i))||Q.of()},e.concat=function(t,r){var n=eO(t);if(eC(n))return n;var a=eO(r);return Object.assign(new e(eC(a)?function(e){return n.request(e,function(e){return a.request(e)||Q.of()})||Q.of()}:function(e,t){return n.request(e,function(e){return a.request(e,t)||Q.of()})||Q.of()}),{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(e_)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,P.vA)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();let ew=()=>Object.create(null),{forEach:eP,slice:eI}=Array.prototype,{hasOwnProperty:ex}=Object.prototype;class eS{constructor(e=!0,t=ew){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return eP.call(e,e=>t=t.getChildTrie(e)),ex.call(t,"data")?t.data:t.data=this.makeData(eI.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),a=n&&n.get(r);a&&(t=a.removeArray(eI.call(e,1)),a.data||a.weak||a.strong&&a.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new eS(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}var eT=r(23822);let eN=null,eA={},ej=1;function ek(e){try{return e()}catch(e){}}let eD="@wry/context:Slot",eR=ek(()=>globalThis)||ek(()=>global)||Object.create(null),eL=eR[eD]||Array[eD]||function(e){try{Object.defineProperty(eR,eD,{value:e,enumerable:!1,writable:!1,
114configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",ej++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=eN;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===eA)break;return e!==eN&&(eN.slots[this.id]=t),!0}return eN&&(eN.slots[this.id]=eA),!1}getValue(){if(this.hasValue())return eN.slots[this.id]}withValue(e,t,r,n){let a={__proto__:null,[this.id]:e},i=eN;eN={parent:i,slots:a};try{return t.apply(n,r)}finally{eN=i}}static bind(e){let t=eN;return function(){let r=eN;try{return eN=t,e.apply(this,arguments)}finally{eN=r}}}static noContext(e,t,r){if(!eN)return e.apply(r,t);{let n=eN;try{return eN=null,e.apply(r,t)}finally{eN=n}}}}),{bind:eM,noContext:eF}=eL,e$=new eL,{hasOwnProperty:eB}=Object.prototype,eU=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function eV(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let eq=[];function eG(e,t){if(!e)throw Error(t||"assertion failure")}function ez(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function eH(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class eW{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++eW.count}peek(){if(1===this.value.length&&!eK(this))return eQ(this),this.value[0]}recompute(e){var t,r,n;return eG(!this.recomputing,"already recomputing"),eQ(this),eK(this)?(t=this,r=e,e1(t),e$.withValue(t,eY,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{eV(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,eK(n)||function(e){eJ(e,eX)}(n)),eH(t.value)):eH(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,eJ(e,eZ),eV(this))}dispose(){this.setDirty(),e1(this),eJ(this,(e,t)=>{e.setDirty(),e2(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=eq.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(eU(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),eq.push(this.deps),this.deps=null)}}function eQ(e){let t=e$.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),eK(e)?eZ(t,e):eX(t,e),t}function eY(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!ez(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function eK(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}eW.count=0;function eJ(e,t){let r=e.parents.size;if(r){let n=eU(e.parents);for(let a=0;a<r;++a)t(n[a],e)}}function eZ(e,t){eG(e.childValues.has(t)),eG(eK(t));let r=!eK(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=eq.pop()||new Set;e.dirtyChildren.add(t),r&&eJ(e,eZ)}function eX(e,t){eG(e.childValues.has(t)),eG(!eK(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):ez(r,t.value)||e.setDirty(),e0(e,t),eK(e)||eJ(e,eX)}function e0(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(eq.length<100&&eq.push(r),e.dirtyChildren=null))}function e1(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{e2(e,r)}),e.forgetDeps(),eG(null===e.dirtyChildren)}function e2(e,t){t.parents.delete(e),e.childValues.delete(t),e0(e,t)}let e3={setDirty:!0,dispose:!0,forget:!0};function e6(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=e$.getValue();if(n){let a=t.get(e);a||t.set(e,a=new Set),n.dependOn(a),"function"==typeof r&&(eV(a),a.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let a=r&&eB.call(e3,r)?r:"setDirty";eU(n).forEach(e=>e[a]()),t.delete(e),eV(n)}},n}function e4(...e){return(n||(n=new eS("function"==typeof WeakMap))).lookupArray(e)}let e8=new Set;function e7(e,{max:t=65536,keyArgs:r,makeCacheKey:n=e4,normalizeResult:a,subscribe:i,cache:o=eT.C}=Object.create(null)){let s="function"==typeof o?new o(t,e=>e.dispose()):o,c=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new eW(e)),o.normalizeResult=a,o.subscribe=i,o.forget=()=>s.delete(t));let c=o.recompute(Array.prototype.slice.call(arguments));
114return s.set(t,o),e8.add(s),e$.hasValue()||(e8.forEach(e=>e.clean()),e8.clear()),c};function l(e){let t=e&&s.get(e);t&&t.setDirty()}function u(e){let t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:a,subscribe:i,cache:s}),c.dirtyKey=l,c.dirty=function(){l(n.apply(null,arguments))},c.peekKey=u,c.peek=function(){return u(n.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(n.apply(null,arguments))},c.makeCacheKey=n,c.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(c)}var e5=r(39864),e9=Object.prototype.hasOwnProperty;function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tt(e)}function tt(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new tn,a=1;a<r;++a)t=n.merge(t,e[a]);return t}var tr=function(e,t,r){return this.merge(e[r],t[r])},tn=function(){function e(e){void 0===e&&(e=tr),this.reconciler=e,this.isObject=Y.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return(0,Y.U)(t)&&(0,Y.U)(e)?(Object.keys(t).forEach(function(a){if(e9.call(e,a)){var i=e[a];if(t[a]!==i){var o=r.reconciler.apply(r,(0,w.fX)([e,t,a],n,!1));o!==i&&((e=r.shallowCopyForMerge(e))[a]=o)}}else(e=r.shallowCopyForMerge(e))[a]=t[a]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,Y.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,w.Cl)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),ta=r(68953),ti=r(6691),to=r(28316),ts=r(28066),tc=r(919);let tl=Object.freeze({});function tu(e,t,r=ts.aD){let n,a,i,o=new Map;for(let e of Object.values(tc.b))o.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let s=Array.isArray(e),c=[e],l=-1,u=[],d=e,p=[],h=[];do{var f,m,g;let e,y=++l===c.length,v=y&&0!==u.length;if(y){if(a=0===h.length?void 0:p[p.length-1],d=i,i=h.pop(),v)if(s){d=d.slice();let e=0;for(let[t,r]of u){let n=t-e;null===r?(d.splice(n,1),e++):d[n]=r}}else for(let[e,t]of(d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d)),u))d[e]=t;l=n.index,c=n.keys,u=n.edits,s=n.inArray,n=n.prev}else if(i){if(null==(d=i[a=s?l:c[l]]))continue;p.push(a)}if(!Array.isArray(d)){(0,ts.Ll)(d)||(0,ti.U)(!1,`Invalid AST Node: ${(0,to.N)(d)}.`);let r=y?null==(f=o.get(d.kind))?void 0:f.leave:null==(m=o.get(d.kind))?void 0:m.enter;if((e=null==r?void 0:r.call(t,d,a,i,p,h))===tl)break;if(!1===e){if(!y){p.pop();continue}}else if(void 0!==e&&(u.push([a,e]),!y))if((0,ts.Ll)(e))d=e;else{p.pop();continue}}void 0===e&&v&&u.push([a,d]),y?p.pop():(n={inArray:s,index:l,keys:c,edits:u,prev:n},c=(s=Array.isArray(d))?d:null!=(g=r[d.kind])?g:[],l=-1,u=[],i&&h.push(i),i=d)}while(void 0!==n);return 0!==u.length?u[u.length-1][1]:e}function td(e,t){var r,n,a=e.directives;return!a||!a.length||(n=[],(r=a)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,a=e.name.value;(0,P.V1)(r&&1===r.length,79,a);var i=r[0];(0,P.V1)(i.name&&"if"===i.name.value,80,a);var o=i.value;(0,P.V1)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),81,a),n.push({directive:e,ifArgument:i})}}),n).every(function(e){var r=e.directive,n=e.ifArgument,a=!1;return"Variable"===n.value.kind?(a=t&&t[n.value.name.value],(0,P.V1)(void 0!==a,78,r.name.value)):a=n.value.value,"skip"===r.name.value?!a:a})}function tp(e,t,r){var n=new Set(e),a=n.size;return tu(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return tl}}),r?!n.size:n.size<a}function th(e,t,r,n){var a=t.data,i=(0,w.Tt)(t,["data"]),o=r.data,s=(0,w.Tt)(r,["data"]);return(0,e5.A)(i,s)&&function e(t,r,n,a){if(r===n)return!0;var i=new Set;return t.selections.every(function(t){if(i.has(t)||(i.add(t),!td(t,a.variables)||tf(t)))return!0;if(eh(t)){var o=ed(t),s=r&&r[o],c=n&&n[o],l=t.selectionSet;if(!l)return(0,e5.A)(s,c);var u=Array.isArray(s),d=Array.isArray(c);if(u!==d)return!1;if(u&&d){var p=s.length;if(c.length!==p)return!1;for(var h=0;h<p;++h)if(!e(l,s[h],c[h],a))return!1;return!0}return e(l,s,c,a)}var f=Z(t,a.fragmentMap);if(f)return!!tf(f)||e(f.selectionSet,r,n,a)})}(ev(e).selectionSet,a,o,{fragmentMap:J(ey(e)),variables:n})}function tf(e){return!!e.directives&&e.directives.some(tm)}function tm(e){return"nonreactive"===e.name.value}var tg=r(41986),ty=tg.et?WeakMap:Map,tv=tg.En?WeakSet:Set,tb=new eL,t_=r(28088);function tO(e,t,r){return tb.withValue(!0,function(){var n=function e(t,r,n,a,i){var o=n.knownChanged,s=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var c=0,l=Array.from(t.entries());c<l.length;c++){var u=l[c],d=u[0],p=u[1];if(null===p){s[d]=null;continue}var h=e(p,r,n,a,void 0);o.has(h)&&o.add(s),s[d]=h}return o.has(s)?s:t}for(var f=0,m=r.selections;f<m.length;f++){var g=m[f],y=void 0;if(a&&o.add(s),g.kind===tc.b.FIELD){var v=ed(g),b=g.selectionSet;if(void 0===(y=s[v]||t[v]))continue;if(b&&null!==y){var h=e(t[v],b,n,a,void 0);o.has(h)&&(y=h)}s[v]=y}if(g.kind===tc.b.INLINE_FRAGMENT&&(!g.typeCondition||n.cache.fragmentMatches(g,t.__typename))&&(y=e(t,g.selectionSet,n,a,i)),g.kind===tc.b.FRAGMENT_SPREAD){var _=g.name.value,O=n.fragmentMap[_]||(n.fragmentMap[_]=n.cache.lookupFragment(_));(0,P.V1)(O,47,_);var C=function(e){var t,r,n=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var a=null==(r=n.arguments)?void 0:r.find(function(e){return"mode"===e.name.value});return a&&"value"in a.value&&"migrate"===a.value.value?"migrate":"unmask"}(g);"mask"!==C&&(y=e(t,O.selectionSet,n,"migrate"===C,i))}o.has(y)&&o.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&o.add(s),o.has(s)?s:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,t_.G)(n),n})}function tC(e,t,r,n){if(!r.fragmentMatches)return e;var a=t.definitions.filter(function(e){return e.kind===tc.b.FRAGMENT_DEFINITION});void 0===n&&((0,P.V1)(1===a.length,49,a.length),n=a[0].name.value);var i=a.find(function(e){return e.name.value===n});return((0,P.V1)(!!i,50,n),null==e||(0,e5.A)(e,{}))?e:tO(e,i.selectionSet,{operationType:"fragment",operationName:i.name.value,fragmentMap:J(ey(t)),c
114ache:r,mutableTargets:new ty,knownChanged:new tv})}var tE=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=e7(K,{max:ee.v["cache.fragmentQueryDocuments"]||1e3,cache:ta.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,w.Cl)((0,w.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,a=e.fragmentName,i=e.from,o=e.optimistic,s=(0,w.Tt)(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(n,a),l=void 0===i||"string"==typeof i?i:this.identify(i),u=!!e[Symbol.for("apollo.dataMasking")],d=(0,w.Cl)((0,w.Cl)({},s),{returnPartialData:!0,id:l,query:c,optimistic:void 0===o||o});return new Q(function(e){return r.watch((0,w.Cl)((0,w.Cl)({},d),{immediate:!0,callback:function(i){var o=u?tC(i.result,n,r,a):i.result;if(!(t&&th(c,{data:null==t?void 0:t.result},{data:o}))){var s={data:o,complete:!!i.complete};i.missing&&(s.missing=tt(i.missing.map(function(e){return e.missing}))),t=(0,w.Cl)((0,w.Cl)({},i),{result:o}),e.next(s)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,w.Cl)((0,w.Cl)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,w.Tt)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,a=e.fragmentName,i=(0,w.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(i,{query:this.getFragmentDoc(n,a),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),a=t(n);return null==a?n:(r.writeQuery((0,w.Cl)((0,w.Cl)({},e),{data:a})),a)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),a=t(n);return null==a?n:(r.writeFragment((0,w.Cl)((0,w.Cl)({},e),{data:a})),a)}})},e}(),tw=function(e){function t(r,n,a,i){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=a,s.variables=i,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)(o={})[s.path[c]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,w.C6)(t,e),t}(Error);function tP(e){return e}var tI=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=tg.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(tP,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new eS(tg.et);this.performWork=e7(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,P.V1)(Array.isArray(n),77),r.lookupArray(n)},max:ee.v["documentTransform.cache"],cache:ta.l})}},e.prototype.performWork=function(e){return ef(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),tx=r(47269),tS={kind:tc.b.FIELD,name:{kind:tc.b.NAME,value:"__typename"}};function tT(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function tN(e,t){ef(t);for(var r,n,a,i,o=tT(""),s=tT(""),c=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,tx.c)(r)){if(r.kind===tc.b.OPERATION_DEFINITION)return o(r.name&&r.name.value);if(r.kind===tc.b.FRAGMENT_DEFINITION)return s(r.name.value)}return null},l=0,u=t.definitions.length-1;u>=0;--u)t.definitions[u].kind===tc.b.OPERATION_DEFINITION&&++l;var d=(r=new Map,n=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&n.set(e.test,e))}
114),function(e){var t=r.get(e.name.value);return!t&&n.size&&n.forEach(function(r,n){n(e)&&(t=r)}),t}),p=function(e){return(0,tx.E)(e)&&e.map(d).some(function(e){return e&&e.remove})},h=new Map,f=!1,m={enter:function(e){if(p(e.directives))return f=!0,null}},g=tu(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,a){var i=c(a);i&&i.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,a){if(p(e.directives))return f=!0,null;var i=c(a);i&&i.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){h.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===h.get(JSON.stringify(n))?e:l>0&&e.selectionSet.selections.every(function(e){return e.kind===tc.b.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,f=!0,null):void 0}},Directive:{leave:function(e){if(d(e))return f=!0,null}}});if(!f)return t;var y=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){y(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},v=new Set;g.definitions.forEach(function(e){e.kind===tc.b.OPERATION_DEFINITION?y(o(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){v.add(e)}):e.kind!==tc.b.FRAGMENT_DEFINITION||0!==l||s(e.name.value).removed||v.add(e.name.value)}),v.forEach(function(e){y(s(e)).fragmentSpreads.forEach(function(e){v.add(e)})});var b={enter:function(e){var t;if(t=e.name.value,!v.has(t)||s(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===tc.b.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}(em(a=tu(g,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=y(o(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,w.Cl)((0,w.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||((0,P.V1)("Document"===a.kind,92),(0,P.V1)(a.definitions.length<=1,93),i=a.definitions[0],(0,P.V1)("FragmentDefinition"===i.kind,94),i),J(ey(a)))?a:null}var tA=Object.assign(function(e){return tu(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==tc.b.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return eh(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(eh(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,w.Cl)((0,w.Cl)({},e),{selections:(0,w.fX)((0,w.fX)([],n,!0),[tS],!1)})}}}})},{added:function(e){return e===tS}});function tj(e){return ef(e),tN([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var tk=r(69298);let tD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function tR(e){return tL[e.charCodeAt(0)]}let tL=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],tM={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>tF(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=tB("(",tF(e.variableDefinitions,", "),")"),r=tF([e.operation,tF([e.name,t]),tF(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+tB(" = ",r)+tB(" ",tF(n," "))},SelectionSet:{leave:({selections:e})=>t$(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:a}){let i=tB("",e,": ")+t,o=i+tB("(",tF(r,", "),")");return o.length>80&&(o=i+tB("(\n",tU(tF(r,"\n")),"\n)")),tF([o,tF(n," "),a]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+tB(" ",tF(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>tF(["...",tB("on ",e),tF(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:a})=>`fragment ${e}${tB("(",tF(r,", "),")")} on ${t} ${tB("",tF(n," ")," ")}`+a},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
114,StringValue:{leave:({value:e,block:t})=>t?(0,tk.yo)(e):`"${e.replace(tD,tR)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+tF(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+tF(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+tB("(",tF(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>tB("",e,"\n")+tF(["schema",tF(t," "),t$(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>tB("",e,"\n")+tF(["scalar",t,tF(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:a})=>tB("",e,"\n")+tF(["type",t,tB("implements ",tF(r," & ")),tF(n," "),t$(a)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:a})=>tB("",e,"\n")+t+(tV(r)?tB("(\n",tU(tF(r,"\n")),"\n)"):tB("(",tF(r,", "),")"))+": "+n+tB(" ",tF(a," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:a})=>tB("",e,"\n")+tF([t+": "+r,tB("= ",n),tF(a," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:a})=>tB("",e,"\n")+tF(["interface",t,tB("implements ",tF(r," & ")),tF(n," "),t$(a)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>tB("",e,"\n")+tF(["union",t,tF(r," "),tB("= ",tF(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>tB("",e,"\n")+tF(["enum",t,tF(r," "),t$(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>tB("",e,"\n")+tF([t,tF(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>tB("",e,"\n")+tF(["input",t,tF(r," "),t$(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:a})=>tB("",e,"\n")+"directive @"+t+(tV(r)?tB("(\n",tU(tF(r,"\n")),"\n)"):tB("(",tF(r,", "),")"))+(n?" repeatable":"")+" on "+tF(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>tF(["extend schema",tF(e," "),t$(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>tF(["extend scalar",e,tF(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>tF(["extend type",e,tB("implements ",tF(t," & ")),tF(r," "),t$(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>tF(["extend interface",e,tB("implements ",tF(t," & ")),tF(r," "),t$(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>tF(["extend union",e,tF(t," "),tB("= ",tF(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>tF(["extend enum",e,tF(t," "),t$(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>tF(["extend input",e,tF(t," "),t$(r)]," ")}};function tF(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function t$(e){return tB("{\n",tU(tF(e,"\n")),"\n}")}function tB(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function tU(e){return tB("  ",e.replace(/\n/g,"\n  "))}function tV(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var tq=Object.assign(function(e){var t=o.get(e);return t||(t=tu(e,tM),o.set(e,t)),t},{reset:function(){o=new X.A(ee.v.print||2e3)}});tq.reset();var tG=r(39948),tz=Object.prototype.hasOwnProperty;function tH(e){return null==e}function tW(e,t){var r=e.__typename,n=e.id,a=e._id;if("string"==typeof r&&(t&&(t.keyObject=tH(n)?tH(a)?void 0:{_id:a}:{id:n}),tH(n)&&!tH(a)&&(n=a),!tH(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var tQ={dataIdFromObject:tW,addTypename:!0,resultCaching:!0,canonizeResults:!1};function tY(e){var t=e.canonizeResults;return void 0===t?tQ.canonizeResults:t}var tK=/^[_a-z][_0-9a-z]*/i;function tJ(e){var t=e.match(tK);return t?t[0]:e}function tZ(e){return(0,Y.U)(e)&&!ei(e)&&!(0,tx.c)(e)}function tX(e,t){var r=J(ey(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var t0=Object.create(null),t1=function(){return t0},t2=Object.create(null),t3=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,t_.G)(ei(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ei(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return ea(e);if(ei(e))return e;var n=r.policies.identify(e)[0];if(n){var a=ea(n);return t&&r.merge(n,e),a}}}return e.prototype.toObject=function(){return(0,w.Cl)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),tz.call(this.data,e)){var r=this.data[e];if(r&&tz.call(r,t))return r[t]}return"__typename"===t&&tz.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof t8?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),tz.call(this.data,e))?this.data[e]:this instanceof t8?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;ei(e)&&(e=e.__ref),ei(t)&&(t=t.__ref);var a="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(i){(0,P.V1)("string"==typeof r,2);var o=new tn(t5).merge(a,i);if(this.data[r]=o,o!==a&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);
114a||(s.__exists=1),Object.keys(i).forEach(function(e){if(!a||a[e]!==o[e]){s[e]=1;var t=tJ(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||n instanceof t8||delete o[e]}}),s.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var a=Object.create(null),i=!1,o=!0,s={DELETE:t0,INVALIDATE:t2,isReference:ei,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||ea(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(c){var l=tJ(c),u=n[c];if(void 0!==u){var d="function"==typeof t?t:t[c]||t[l];if(d){var p=d===t1?t0:d((0,t_.G)(u),(0,w.Cl)((0,w.Cl)({},s),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));p===t2?r.group.dirty(e,c):(p===t0&&(p=void 0),p!==u&&(a[c]=p,i=!0,u=p))}void 0!==u&&(o=!1)}}),i)return this.merge(e,a),o&&(this instanceof t8?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,a=this.lookup(e);if(a){var i=this.getFieldValue(a,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=t1,n):t1)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(tz.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof t8&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){tz.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&tz.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,w.Tt)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof t8?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){tz.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var a=this;a instanceof t8;)a=a.parent;n.forEach(function(e){return a.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!tz.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){ei(e)&&(t[e.__ref]=!0),(0,Y.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,Y.U)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),t6=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?e6():null,this.keyMaker=new eS(tg.et)}
114,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=tJ(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function t4(e,t){t9(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,a=t.seed,i=e.call(this,r,new t6(void 0===n||n))||this;return i.stump=new t7(i),i.storageTrie=new eS(tg.et),a&&i.replace(a),i}return(0,w.C6)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(t3||(t3={}));var t8=function(e){function t(t,r,n,a){var i=e.call(this,r.policies,a)||this;return i.id=t,i.parent=r,i.replay=n,i.group=a,n(i),i}return(0,w.C6)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],a=r.lookup(e);a?n?n!==a&&Object.keys(n).forEach(function(r){(0,e5.L)(n[r],a[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(a).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,w.Cl)((0,w.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return tz.call(this.data,t)?(0,w.Cl)((0,w.Cl)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(t3),t7=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new t6(t.group.caching,t.group))||this}return(0,w.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(t8);function t5(e,t,r){var n=e[r],a=t[r];return(0,e5.L)(n,a)?n:a}function t9(e){return!!(e instanceof t3&&e.group.caching)}var re=function(){function e(){this.known=new(tg.En?WeakSet:Set),this.pool=new eS(tg.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,Y.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,Y.U)(e)){var t=(0,Y.U)(e)?(0,tx.c)(e)?e.slice(0):(0,w.Cl)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,Y.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),a=this.pool.lookupArray(n);return a.array||this.known.add(a.array=n),a.array;case null:case Object.prototype:if(this.known.has(e))break;var i=Object.getPrototypeOf(e),o=[i],s=this.sortedKeys(e);o.push(s.json);var c=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var a=this.pool.lookupArray(o);if(!a.object){var l=a.object=Object.create(i);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=o[c+t]})}return a.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function rt(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var rr=function(){function e(e){var t=this;this.knownResults=new(tg.et?WeakMap:Map),this.config=(0,tG.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:tY(e)}),this.canon=e.canon||new re,this.executeSelectionSet=e7(function(e){var r,n=e.context.canonizeResults,a=rt(e);a[3]=!n;var i=(r=t.executeSelectionSet).peek.apply(r,a);return i?n?(0,w.Cl)((0,w.Cl)({},i),{result:t.canon.admit(i.result)}):i:(t4(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||ee.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:rt,makeCacheKey:function(e,t,r,n){if(t9(r.store))return r.store.makeCacheKey(e,ei(t)?t.__ref:t,r.varStr
114ing,n)}}),this.executeSubSelectedArray=e7(function(e){return t4(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||ee.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(t9(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new re},e.prototype.diffQueryAgainstStore=function(e){var t,r,n=e.store,a=e.query,i=e.rootId,o=e.variables,s=e.returnPartialData,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=(0,w.Cl)((0,w.Cl)({},eb((t=em(a),(0,P.V1)(t&&"query"===t.operation,91),t))),o);var d=ea(void 0===i?"ROOT_QUERY":i),p=this.executeSelectionSet({selectionSet:ev(a).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,w.Cl)({store:n,query:a,policies:u,variables:o,varString:et(o),canonizeResults:l},tX(a,this.config.fragments))});if(p.missing&&(r=[new tw(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(p.missing),p.missing,a,o)],!(void 0===s||s)))throw r[0];return{result:p.result,complete:!r,missing:r}},e.prototype.isFresh=function(e,t,r,n){if(t9(n.store)&&this.knownResults.get(e)===r){var a=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(a&&e===a.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,a=e.objectOrReference,i=e.enclosingRef,o=e.context;if(ei(a)&&!o.policies.rootTypenamesById[a.__ref]&&!o.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var s=o.variables,c=o.policies,l=o.store.getFieldValue(a,"__typename"),u=[],d=new tn;function p(e,r){var n;return e.missing&&(t=d.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&u.push({__typename:l});var h=new Set(n.selections);h.forEach(function(e){var n,f;if(td(e,s))if(eh(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:a},o),g=ed(e);void 0===m?tA.added(e)||(t=d.merge(t,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(ei(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),n))):(0,tx.c)(m)?m.length>0&&(m=p(r.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:o}),g)):e.selectionSet?null!=m&&(m=p(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:ei(m)?m:i,context:o}),g)):o.canonizeResults&&(m=r.canon.pass(m)),void 0!==m&&u.push(((f={})[g]=m,f))}else{var y=Z(e,o.lookupFragment);if(!y&&e.kind===tc.b.FRAGMENT_SPREAD)throw(0,P.vA)(10,e.name.value);y&&c.fragmentMatches(y,l)&&y.selectionSet.selections.forEach(h.add,h)}});var f={result:tt(u),missing:t},m=o.canonizeResults?this.canon.admit(f):(0,t_.G)(f);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,a=e.array,i=e.enclosingRef,o=e.context,s=new tn;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(a=a.filter(o.store.canRead)),a=a.map(function(e,t){return null===e?null:(0,tx.c)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:i,context:o}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:ei(e)?e:i,context:o}),t):e}),{result:o.canonizeResults?this.canon.admit(a):a,missing:t}},e}(),rn=new eL,ra=new WeakMap;function ri(e){var t=ra.get(e);return t||ra.set(e,t={vars:new Set,dep:e6()}),t}function ro(e){ri(e).vars.forEach(function(t){return t.forgetCache(e)})}function rs(e){var t=new Set,r=new Set,n=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach(function(e){var t;ri(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=rn.getValue();s&&(a(s),ri(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var a=n.attachCache=function(e){return t.add(e),ri(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var rc=Object.create(null);function rl(e){var t=JSON.stringify(e);return rc[t]||(rc[t]=Object.create(null))}function ru(e){var t=rl(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},a=r.keyObject=rp(e,function(e){var a=rf(r.storeObject,e,n);return void 0===a&&t!==r.storeObject&&tz.call(t,e[0])&&(a=rf(t,e,rh)),(0,P.V1)(void 0!==a,5,e.join("."),t),a});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function rd(e){var t=rl(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,a=r.variables,i=r.fieldName,o=JSON.stringify(rp(e,function(e){var r=e[0],i=r.charAt(0);if("@"===i){if(n&&(0,tx.E)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),c=s&&eu(s,a);return c&&rf(c,e.slice(1))}return}if("$"===i){var l=r.slice(1);if(a&&tz.call(a,l)){var u=e.slice(0);return u[0]=l,rf(a,u)}return}if(t)return rf(t,e)}));return(t||"{}"!==o)&&(i+=":"+o),i})}function rp(e,t){var r=new tn;return(function e(t){var r=rl(t);if(!r.paths){var n=r.paths=[],a=[];t.forEach(function(r,i){(0,tx.c)(r)?(e(r).forEach(function(e){return n.push(a.concat(e))}),a.length=0):(a.push(r),(0,tx.c)(t[i+1])||(n.push(a.slice(0)),a.length=0))})}return r.paths})(e).reduce(function(e,n){var a,i=t(n);if(void 0!==i){for(var o=n.length-1;o>=0;--o)(a={})[n[o]]=i,i=a;e=r.merge(e,i)}return e},Object.create(null))}function rh(e,t){return e[t]}function rf(e,t,r){return r=r||rh,function e(t){return(0,Y.U)(t)?(0,tx.c)(t)?t.map(e):rp(Object.keys(t).sort(),function(e){return rf(t,e)}):t}(t.reduce(function e(t,n){return(0,tx.c)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}
114function rm(e){return void 0!==e.args?e.args:e.field?eu(e.field,e.variables):null}var rg=function(){},ry=function(e,t){return t.fieldName},rv=function(e,t,r){return(0,r.mergeObjects)(e,t)},rb=function(e,t){return t},r_=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,w.Cl)({dataIdFromObject:tW},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,a=this,i=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=t&&t.storeObject||e,s=(0,w.Cl)((0,w.Cl)({},t),{typename:i,storeObject:o,readField:t&&t.readField||function(){var e=rC(arguments,o);return a.readField(e,{store:a.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),l=c&&c.keyFn||this.config.dataIdFromObject;return tb.withValue(!0,function(){for(;l;){var t=l((0,w.Cl)((0,w.Cl)({},e),o),s);if((0,tx.c)(t))l=ru(t);else{n=t;break}}}),n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],a=n.queryType,i=n.mutationType,o=n.subscriptionType,s=(0,w.Tt)(n,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",r),i&&t.setRootTypename("Mutation",r),o&&t.setRootTypename("Subscription",r),tz.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),a=t.keyFields,i=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?rv:!1===t?rb:e.merge}o(n,t.merge),n.keyFn=!1===a?rg:(0,tx.c)(a)?ru(a):"function"==typeof a?a:n.keyFn,i&&Object.keys(i).forEac
114h(function(t){var n=r.getFieldPolicy(e,t,!0),a=i[t];if("function"==typeof a)n.read=a;else{var s=a.keyArgs,c=a.read,l=a.merge;n.keyFn=!1===s?ry:(0,tx.c)(s)?rd(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),o(n,l)}n.read&&n.merge&&(n.keyFn=n.keyFn||ry)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,P.V1)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(tK);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!tz.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,a){if(r.test(e)){var i=t.supertypeMap.get(a);i&&i.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),a=n.fields;Object.assign(r,(0,w.Tt)(n,["fields"])),Object.assign(r.fields,a)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var a=this;if(!e.typeCondition)return!0;if(!t)return!1;var i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var o=this.getSupertypeSet(t,!0),s=[o],c=function(e){var t=a.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var p=s[d];if(p.has(i))return o.has(i)||o.add(i),!0;p.forEach(c),l&&d===s.length-1&&function e(t,r,n){return!!(0,Y.U)(r)&&((0,tx.c)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if(eh(t)&&td(t,n)){var a=ed(t);return tz.call(r,a)&&(!t.selectionSet||e(t.selectionSet,r[a],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r,n,a,i,o=e.typename,s=e.fieldName,c=this.getFieldPolicy(o,s,!1),l=c&&c.keyFn;if(l&&o)for(var u={typename:o,fieldName:s,field:e.field||null,variables:e.variables},d=rm(e);l;){var p=l(d,u);if((0,tx.c)(p))l=rd(p);else{i=p||s;break}}return(void 0===i&&(i=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var a=t.name,i=t.value;return eo(n[e.name.value],a,i,r)})})),a=null,t.arguments&&t.arguments.length&&(a={},t.arguments.forEach(function(e){var t=e.name,n=e.value;return eo(a,t,n,r)})),el(t.name.value,a,n)):el(s,rm(e))),!1===i)?s:s===tJ(i)?i:s+":"+i},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var a=this.getStoreFieldName(e),i=tJ(a),o=t.store.getFieldValue(r,a),s=this.getFieldPolicy(e.typename,i,!1),c=s&&s.read;if(c){var l=rO(this,r,e,t,t.store.getStorage(ei(r)?r.__ref:r,a));return rn.withValue(this.cache,c,[o,l])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),a=n&&n.merge;return!a&&r&&(a=(n=this.getTypePolicy(r))&&n.merge),a},e.prototype.runMergeFunction=function(e,t,r,n,a){var i=r.field,o=r.typename,s=r.merge;return s===rv?rE(n.store)(e,t):s===rb?t:(n.overwrite&&(e=void 0),s(e,t,rO(this,void 0,{typename:o,fieldName:i.name.value,field:i,variables:n.variables},n,a||Object.create(null))))},e}();function rO(e,t,r,n,a){var i=e.getStoreFieldName(r),o=tJ(i),s=r.variables||n.variables,c=n.store,l=c.toReference,u=c.canRead;return{args:rm(r),field:r.field||null,fieldName:o,storeFieldName:i,variables:s,isReference:ei,toReference:l,storage:a,cache:e.cache,canRead:u,readField:function(){return e.readField(rC(arguments,t,s),n)},mergeObjects:rE(n.store)}}function rC(e,t,r){var n,a=e[0],i=e[1],o=e.length;return"string"==typeof a?n={fieldName:a,from:o>1?i:t}:(n=(0,w.Cl)({},a),tz.call(n,"from")||(n.from=t)),void 0===n.variables&&(n.variables=r),n}function rE(e){return function(t,r){if((0,tx.c)(t)||(0,tx.c)(r))throw(0,P.vA)(9);if((0,Y.U)(t)&&(0,Y.U)(r)){var n=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(n&&a&&n!==a)return r;if(ei(t)&&tZ(r))return e.merge(t.__ref,r),t;if(tZ(t)&&ei(r))return e.merge(t,r.__ref),r;if(tZ(t)&&tZ(r))return(0,w.Cl)((0,w.Cl)({},t),r)}return r}}function rw(e,t,r){var n="".concat(t).concat(r),a=e.flavors.get(n);return a||e.flavors.set(n,a=e.clientOnly===t&&e.deferred===r?e:(0,w.Cl)((0,w.Cl)({},e),{clientOnly:t,deferred:r})),a}var rP=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,a=t.result,i=t.dataId,o=t.variables,s=t.overwrite,c=em(n),l=new tn;o=(0,w.Cl)((0,w.Cl)({},eb(c)),o);var u=(0,w.Cl)((0,w.Cl)({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:o,varString:et(o)},tX(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:a||Object.create(null),dataId:i,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!ei(d))throw(0,P.vA)(12,a);
114return u.incomingById.forEach(function(t,n){var a=t.storeObject,i=t.mergeTree;t.fieldNodeSet;var o=ea(n);if(i&&i.map.size){var s=r.applyMerges(i,o,a,u);if(ei(s))return;a=s}e.merge(n,a)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,a=e.selectionSet,i=e.context,o=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=r&&s.rootTypenamesById[r]||ep(n,a,i.fragmentMap)||r&&i.store.get(r,"__typename");"string"==typeof l&&(c.__typename=l);var u=function(){var e=rC(arguments,c,i.variables);if(ei(e.from)){var t=i.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,w.Cl)((0,w.Cl)({},e),{from:t.storeObject}),i);if(void 0!==r)return r}}return s.readField(e,i)},d=new Set;this.flattenFields(a,n,i,l).forEach(function(e,r){var a,i=n[ed(r)];if(d.add(r),void 0!==i){var p=s.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),h=rx(o,p),f=t.processFieldValue(i,r,r.selectionSet?rw(e,!1,!1):e,h),m=void 0;r.selectionSet&&(ei(f)||tZ(f))&&(m=u("__typename",f));var g=s.getMergeFunction(l,r.name.value,m);g?h.info={field:r,typename:l,merge:g}:rT(o,p),c=e.merge(c,((a={})[p]=f,a))}});try{var p=s.identify(n,{typename:l,selectionSet:a,fragmentMap:i.fragmentMap,storeObject:c,readField:u}),h=p[0],f=p[1];
114r=r||h,f&&(c=i.merge(c,f))}catch(e){if(!r)throw e}if("string"==typeof r){var m=ea(r),g=i.written[r]||(i.written[r]=[]);if(g.indexOf(a)>=0||(g.push(a),this.reader&&this.reader.isFresh(n,m,a,i)))return m;var y=i.incomingById.get(r);return y?(y.storeObject=i.merge(y.storeObject,c),y.mergeTree=function e(t,r){if(t===r||!r||rS(r))return t;if(!t||rS(t))return r;var n=t.info&&r.info?(0,w.Cl)((0,w.Cl)({},t.info),r.info):t.info||r.info,a=t.map.size&&r.map.size,i={info:n,map:a?new Map:t.map.size?t.map:r.map};if(a){var o=new Set(r.map.keys());t.map.forEach(function(t,n){i.map.set(n,e(t,r.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,e(r.map.get(n),t.map.get(n)))})}return i}(y.mergeTree,o),d.forEach(function(e){return y.fieldNodeSet.add(e)})):i.incomingById.set(r,{storeObject:c,mergeTree:rS(o)?void 0:o,fieldNodeSet:d}),m}return c},e.prototype.processFieldValue=function(e,t,r,n){var a=this;return t.selectionSet&&null!==e?(0,tx.c)(e)?e.map(function(e,i){var o=a.processFieldValue(e,t,r,rx(n,i));return rT(n,i),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=ep(t,e,r.fragmentMap));var a=new Map,i=this.cache.policies,o=new eS(!1);return!function e(s,c){var l=o.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(o){if(td(o,r.variables)){var s=c.clientOnly,l=c.deferred;if(!(s&&l)&&(0,tx.E)(o.directives)&&o.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=eu(e,r.variables);n&&!1===n.if||(l=!0)}}),eh(o)){var u=a.get(o);u&&(s=s&&u.clientOnly,l=l&&u.deferred),a.set(o,rw(r,s,l))}else{var d=Z(o,r.lookupFragment);if(!d&&o.kind===tc.b.FRAGMENT_SPREAD)throw(0,P.vA)(14,o.name.value);d&&i.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,rw(r,s,l))}}}))}(e,r),a},e.prototype.applyMerges=function(e,t,r,n,a){var i=this;if(e.map.size&&!ei(r)){var o,s,c=!(0,tx.c)(r)&&(ei(t)||tZ(t))?t:void 0,l=r;c&&!a&&(a=[ei(c)?c.__ref:c]);var u=function(e,t){return(0,tx.c)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=u(c,t),o=u(l,t);if(void 0!==o){a&&a.push(t);var d=i.applyMerges(e,r,o,n,a);d!==o&&(s=s||new Map).set(t,d),a&&(0,P.V1)(a.pop()===t)}}),s&&(r=(0,tx.c)(l)?l.slice(0):(0,w.Cl)({},l),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,a&&(o=n.store).getStorage.apply(o,a)):r},e}(),rI=[];function rx(e,t){var r=e.map;return r.has(t)||r.set(t,rI.pop()||{map:new Map}),r.get(t)}function rS(e){return!e||!(e.info||e.map.size)}function rT(e,t){var r=e.map,n=r.get(t);n&&rS(n)&&(rI.push(n),r.delete(t))}var rN=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new tI(tA),n.assumeImmutableResults=!0,n.makeVar=rs,n.txCount=0,r=t,n.config=(0,tG.o)(tQ,r),n.addTypename=!!n.config.addTypename,n.policies=new r_({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,w.C6)(t,e),t.prototype.init=function(){var e=this.data=new t3.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new rP(this,this.storeReader=new rr({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:tY(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=e7(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||ee.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(t9(r)){var n=e.optimistic,a=e.id,i=e.variables;return r.makeCacheKey(e.query,e.callback,et({optimistic:n,id:a,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,w.Cl)((0,w.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof tw)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(tz.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,w.Cl)((0,w.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;
114return this.watches.size||(t=this,ri(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&ro(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){et.reset(),tq.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(ei(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},t.prototype.evict=function(e){if(!e.id){if(tz.call(e,"id"))return!1;e=(0,w.Cl)((0,w.Cl)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),et.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),ro(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,a=e.optimistic,i=void 0===a||a,o=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var a=r.data,i=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=a,r.optimisticData=i}},l=new Set;return s&&!this.txCount&&this.broadcastWatches((0,w.Cl)((0,w.Cl)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,c):!1===i?c(this.data):c(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),s&&l.size?(this.broadcastWatches((0,w.Cl)((0,w.Cl)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,e5.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(tE),rA=eE.execute,rj=r(99762),rk=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,P.vA)(42,t,e.message);throw n.parseError=e,n}return r},rD=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")};function rR(e){var t={next:function(){return e.read()}};return tg.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var rL=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},rM=r(86162);function rF(e){return"incremental"in e}function r$(e,t){var r=e,n=new tn;return rF(t)&&(0,tx.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,a=e.path,i=a.length-1;i>=0;--i){var o=a[i],s=isNaN(+o)?{}:[];s[o]=t,t=s}r=n.merge(r,t)}),r}var rB=Object.prototype.hasOwnProperty;function rU(e,t){e.status>=300&&rL(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function rV(e){return function(t){return t.text().then(function(e){return rU(t,e)}).then(function(r){return Array.isArray(r)||rB.call(r,"data")||rB.call(r,"errors")||rL(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}var rq={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},rG=function(e,t){return t(e)};function rz(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a={},i={};r.forEach(function(e){a=(0,w.Cl)((0,w.Cl)((0,w.Cl)({},a),e.options),{headers:(0,w.Cl)((0,w.Cl)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),i=(0,w.Cl)((0,w.Cl)({},i),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var r={};
114return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var a={};return Object.keys(n).forEach(function(e){a[n[e].originalName]=n[e].value}),a}(a.headers,i.preserveHeaderCase));var o=e.operationName,s=e.extensions,c=e.variables,l=e.query,u={operationName:o,variables:c};return i.includeExtensions&&(u.extensions=s),i.includeQuery&&(u.query=t(l,tq)),{options:a,body:u}}function rH(e){return new Q(function(t){t.error(e)})}function rW(e,t){var r=(0,w.Cl)({},e),n=new Set(Object.keys(e));return tu(t,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach(function(e){delete r[e]}),r}var rQ=(0,P.no)(function(){return fetch}),rY=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,a=e.print,i=void 0===a?rG:a,o=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=void 0!==l&&l,d=(0,w.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),p={http:{includeExtensions:o,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new eE(function(e){var t,a,o=rD(e,r),s=e.getContext(),l={};if(s.clientAwareness){var d=s.clientAwareness,h=d.name,f=d.version;h&&(l["apollographql-client-name"]=h),f&&(l["apollographql-client-version"]=f)}var m=(0,w.Cl)((0,w.Cl)({},l),s.headers),g={http:s.http,options:s.fetchOptions,credentials:s.credentials,headers:m};if(tp(["client"],e.query)){var y=tj(e.query);if(!y)return rH(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=y}var v=rz(e,i,rq,p,g),b=v.options,_=v.body;_.variables&&!u&&(_.variables=rW(_.variables,e.query)),b.signal||"undefined"==typeof AbortController||(b.signal=(a=new AbortController).signal);var O="OperationDefinition"===(t=ev(e.query)).kind&&"subscription"===t.operation,C=tp(["defer"],e.query);if(c&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(b.method="GET"),C||O){b.headers=b.headers||{};var E="multipart/mixed;";O?E+="boundary=graphql;subscriptionSpec=1.0,application/json":C&&(E+="deferSpec=20220824,application/json"),b.headers.accept=E}if("GET"===b.method){var I=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var a=void 0;try{a=rk(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",a)}if(t.extensions){var i=void 0;try{i=rk(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",i)}var o="",s=e,c=e.indexOf("#");-1!==c&&(o=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+o}}(o,_),x=I.newURI,S=I.parseError;if(S)return rH(S);o=x}else try{b.body=rk(_,"Payload")}catch(e){return rH(e)}return new Q(function(t){var r=n||(0,P.no)(function(){return fetch})||rQ,i=t.next.bind(t);return r(o,b).then(function(t){e.setContext({response:t});var r,n=null==(r=t.headers)?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return(0,w.sH)(this,void 0,void 0,function(){var r,n,a,i,o,s,c,l,u,d,p,h,f,m,g,y,v,b,_,O,C,E,P;return(0,w.YH)(this,function(I){switch(I.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(P=e.headers)?void 0:P.get("content-type"),a="boundary=",i=(null==n?void 0:n.includes(a))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(a))+a.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o="\r\n--".concat(i),s="",c=function(e){var t,r,n,a,i,o,s=e;if(e.body&&(s=e.body),t=s,tg.uJ&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return rR(s.getReader());if(s.stream)return rR(s.stream().getReader());if(s.arrayBuffer)return a=s.arrayBuffer(),i=!1,o={next:function(){return i?Promise.resolve({value:void 0,done:!0}):(i=!0,new Promise(function(e,t){a.then(function(t){e({value:t,done:!1})}).catch(t)}))}},tg.uJ&&(o[Symbol.asyncIterator]=function(){return this}),o;if(s.pipe)return function(e){var t=null,r=null,n=!1,a=[],i=[];function o(e){if(!r){if(i.length){var t=i.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}a.push(e)}}
114function s(e){r=e,i.slice().forEach(function(t){t[1](e)}),t&&t()}function c(){n=!0,i.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",o),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return r?t(r):a.length?e({value:a.shift(),done:!1}):n?e({value:void 0,done:!0}):void i.push([e,t])})}};return tg.uJ&&(l[Symbol.asyncIterator]=function(){return this}),l}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),l=!0,I.label=1;case 1:if(!l)return[3,3];return[4,c.next()];case 2:for(d=(u=I.sent()).value,p=u.done,h="string"==typeof d?d:r.decode(d),f=s.length-o.length+1,l=!p,s+=h,m=s.indexOf(o,f);m>-1;){if(g=void 0,g=(C=[s.slice(0,m),s.slice(m+o.length)])[0],s=C[1],y=g.indexOf("\r\n\r\n"),(v=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),a=e.slice(r+1).trim();t[n]=a}}),t}(g.slice(0,y))["content-type"])&&-1===v.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(b=g.slice(y)){if(Object.keys(_=rU(e,b)).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if((0,Y.U)(_)&&"payload"in _){if(O={},"payload"in _){if(1===Object.keys(_).length&&null===_.payload)return[2];O=(0,w.Cl)({},_.payload)}"errors"in _&&(O=(0,w.Cl)((0,w.Cl)({},O),{extensions:(0,w.Cl)((0,w.Cl)({},"extensions"in O?O.extensions:null),((E={})[rM.K$]=_.errors,E))})),t(O)}else t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2]}m=s.indexOf(o)}return[3,1];case 3:return[2]}})})}(t,i):rV(e)(t).then(i)}).then(function(){a=void 0,t.complete()}).catch(function(e){a=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){a&&a.abort()}})})},rK=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,rY(t).request)||this;return r.options=t,r}return(0,w.C6)(t,e),t}(eE);function rJ(e,t,r){return new Q(function(n){var a={then:function(e){return new Promise(function(t){return t(e())})}};function i(e,t){return function(r){if(e){var i=function(){return n.closed?0:e(r)};a=a.then(i,i).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:i(t,"next"),error:i(r,"error"),complete:function(){a.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}function rZ(e){var t=rX(e);return(0,tx.E)(t)}function rX(e){var t=(0,tx.E)(e.errors)?e.errors.slice(0):[];return rF(e)&&(0,tx.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var r0=r(80039);function r1(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function r2(e){function t(t){Object.defineProperty(e,t,{value:Q})}return tg.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function r3(e){return e&&"function"==typeof e.then}var r6=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),r1(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),r1(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?r3(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),r1(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new Q(t)]),r3(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,w.C6)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(Q);r2(r6);var r4=r(63006),r8=Object.prototype.toString,r7=Object.assign;Object.hasOwnProperty;var r5=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,a=t.options,i=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=ne)}catch(e){}var r=!i.observers.size;i.observers.add(e);var n=i.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(i.maskResult(n.result)),r&&i.reobserve().catch(function(){}),function(){i.observers.delete(e)&&!i.observers.size&&i.tearDownQuery()}})||this;i.observers=new Set,i.subscriptions=new Set,i.queryInfo=n,i.queryManager=r,i.waitForOwnResult=nt(a.fetchPolicy),i.isTornDown=!1,i.subscribeToMore=i.subscribeToMore.bind(i),i.maskResult=i.maskResult.bind(i);var o=r.defaultOptions.watchQuery,s=(void 0===o?{}:o).fetchPolicy,c=void 0===s?"cache-first":s,l=a.fetchPolicy,u=void 0===l?c:l,d=a.initialFetchPolicy,p=void 0===d?"standby"===u?c:u:d;i.options=(0,w.Cl)((0,w.Cl)({},a),{initialFetchPolicy:p,fetchPolicy:u}),i.queryId=n.queryId||r.generateQueryId();var h=em(i.query);return i.queryName=h&&h.name&&h.name.value,i}return(0,w.C6)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
114,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){a.unsubscribe()},0)},error:r},a=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||r4.pT.ready,n=(0,w.Cl)((0,w.Cl)({},t),{loading:(0,r4.bi)(r),networkStatus:r}),a=this.options.fetchPolicy,i=void 0===a?"cache-first":a;if(nt(i)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var o=this.queryInfo.getDiff();(o.complete||this.options.returnPartialData)&&(n.data=o.result),(0,e5.L)(n.data,{})&&(n.data=void 0),o.complete?(delete n.partial,o.complete&&n.networkStatus===r4.pT.loading&&("cache-first"===i||"cache-only"===i)&&(n.networkStatus=r4.pT.ready,n.loading=!1)):n.partial=!0}return e&&this.updateLastResult(n),n},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,a=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!th(a,this.last.result,e,this.variables):!(0,e5.L)(this.last.result,e))||t&&!(0,e5.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,e5.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},r=this.options.fetchPolicy;return"cache-and-network"===r?t.fetchPolicy=r:"no-cache"===r?t.fetchPolicy="no-cache":t.fetchPolicy="network-only",e&&!(0,e5.L)(this.options.variables,e)&&(t.variables=this.options.variables=(0,w.Cl)((0,w.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,r4.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,w.Cl)((0,w.Cl)({},e.query?e:(0,w.Cl)((0,w.Cl)((0,w.Cl)((0,w.Cl)({},this.options),{query:this.options.query}),e),{variables:(0,w.Cl)((0,w.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var a=this.queryInfo,i=a.networkStatus;a.networkStatus=r4.pT.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var o=new Set,s=null==e?void 0:e.updateQuery,c="no-cache"!==this.options.fetchPolicy;return c||(0,P.V1)(s,22),this.queryManager.fetchQuery(n,r,r4.pT.fetchMore).then(function(l){if(t.queryManager.removeQuery(n),a.networkStatus===r4.pT.fetchMore&&(a.networkStatus=i),c)t.queryManager.cache.batch({update:function(n){var a=e.updateQuery;a?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return a(e,{fetchMoreResult:l.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:l.data})},onWatchUpdated:function(e){o.add(e.query)}});else{var u=t.getLast("result"),d=s(u.data,{fetchMoreResult:l.data,variables:r.variables});t.reportResult((0,w.Cl)((0,w.Cl)({},u),{data:d}),t.variables)}return t.maskResult(l)}).finally(function(){c&&!o.has(t.query)&&r9(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError)return void e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,tG.o)(this.options,e||{});r7(this.options,t)},t.prototype.setVariables=function(e){return(0,e5.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},r4.pT.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,a=t.initialFetchPolicy,i=void 0===a?n:a;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,P.V1)(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,r4.bi)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},r4.pT.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};a()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,e5.L)(t,this.last.variables)&&(r=void 0),this.last=(0,w.Cl)({result:this.queryManager.assumeImmutableResults?e:function e(t,r){switch(r8.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var n=t.slice(0);
114return r.set(t,n),n.forEach(function(t,a){n[a]=e(t,r)}),n;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var a=Object.create(Object.getPrototypeOf(t));return r.set(t,a),Object.keys(t).forEach(function(n){a[n]=e(t[n],r)}),a;default:return t}}(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===r4.pT.refetch||t===r4.pT.fetchMore||t===r4.pT.poll,a=this.options.variables,i=this.options.fetchPolicy,o=(0,tG.o)(this.options,e||{}),s=n?o:r7(this.options,o),c=this.transformDocument(s.query);this.lastQuery=c,!n&&(this.updatePolling(),e&&e.variables&&!(0,e5.L)(e.variables,a)&&"standby"!==s.fetchPolicy&&(s.fetchPolicy===i||"function"==typeof s.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=r4.pT.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=nt(s.fetchPolicy));var l=function(){r.concast===p&&(r.waitForOwnResult=!1)},u=s.variables&&(0,w.Cl)({},s.variables),d=this.fetch(s,t,c),p=d.concast,h=d.fromLink,f={next:function(e){(0,e5.L)(r.variables,u)&&(l(),r.reportResult(e,u))},error:function(e){(0,e5.L)(r.variables,u)&&((0,rM.Mn)(e)||(e=new rM.K4({networkError:e})),l(),r.reportError(e,u))}};return n||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=f),p.addObserver(f),p},t.prototype.reobserve=function(e,t){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),r},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&r1(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,w.Cl)((0,w.Cl)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:r4.pT.error,loading:!1});this.updateLastResult(r,t),r1(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,w.Cl)((0,w.Cl)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t}(Q);function r9(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function ne(e){}function nt(e){return"network-only"===e||"no-cache"===e||"standby"===e}r2(r5);var nr=new(tg.et?WeakMap:Map);function nn(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return nr.set(e,(nr.get(e)+1)%1e15),r.apply(this,arguments)})}function na(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ni=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;nr.has(r)||(nr.set(r,0),nn(r,"evict"),nn(r,"modify"),nn(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||r4.pT.loading;return this.variables&&this.networkStatus!==r4.pT.loading&&!(0,e5.L)(this.variables,e.variables)&&(t=r4.pT.setVariables),(0,e5.L)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){na(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,e5.L)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,e5.L)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():r9(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
114na(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,r4.bi)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,w.Cl)((0,w.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,e5.L)(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===nr.get(this.cache)&&(0,e5.L)(t,r.variables)&&(0,e5.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var a=this,i=new tn,o=(0,tx.E)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,tx.E)(e.incremental)){var s=r$(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=i.merge(c.result,e.data)}this.graphQLErrors=o,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(no(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(a.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),a.lastWrite={result:e,variables:r.variables,dmCount:nr.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var o=a.getDiffOptions(r.variables),s=i.diff(o);!a.stopped&&(0,e5.L)(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=r4.pT.ready},e.prototype.markError=function(e){return this.networkStatus=r4.pT.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function no(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!rZ(e);return!n&&r&&e.data&&(n=!0),n}var ns=Object.prototype.hasOwnProperty,nc=Object.create(null),nl=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new X.A(ee.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new eS(!1),this.noCacheWarningsByQueryId=new Set;var r=new tI(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,P.vA)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,w.sH)(this,arguments,void 0,function(e){var t,r,n,a,i,o,s,c=e.mutation,l=e.variables,u=e.optimisticResponse,d=e.updateQueries,p=e.refetchQueries,h=void 0===p?[]:p,f=e.awaitRefetchQueries,m=void 0!==f&&f,g=e.update,y=e.onQueryUpdated,v=e.fetchPolicy,b=void 0===v?(null==(o=this.defaultOptions.mutate)?void 0:o.fetchPolicy)||"network-only":v,_=e.errorPolicy,O=void 0===_?(null==(s=this.defaultOptions.mutate)?void 0:s.errorPolicy)||"none":_,C=e.keepRootFields,E=e.context;return(0,w.YH)(this,function(e){switch(e.label){case 0:if((0,P.V1)(c,28),(0,P.V1)("network-only"===b||"no-cache"===b,29),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),r=this.getDocumentInfo(c).hasClientExports,l=this.getVariables(c,l),!r)return[3,2];return[4,this.localState.addExportedVariables(c,l,E)];case 1:l=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:l,loading:!0,error:null}),a=u&&this.markMutationOptimistic(u,{mutationId:t,document:c,variables:l,fetchPolicy:b,errorPolicy:O,context:E,updateQueries:d,update:g,keepRootFields:C}),this.broadcastQueries(),i=this,[2,new Promise(function(e,r){return rJ(i.getObservableFromLink(c,(0,w.Cl)((0,w.Cl)({},E),{optimisticResponse:a?u:void 0}),l,{},!1),function(e){if(rZ(e)&&"none"===O)throw new rM.K4({graphQLErrors:rX(e)});n&&(n.loading=!1,n.error=null);var r=(0,w.Cl)({},e);return"function"==typeof h&&(h=h(r)),"ignore"===O&&rZ(r)&&delete r.errors,i.markMutationResult({mutationId:t,result:r,document:c,variables:l,fetchPolicy:b,errorPolicy:O,context:E,update:g,updateQueries:d,awaitRefetchQueries:m,refetchQueries:h,removeOptimistic:a?t:void 0,onQueryUpdated:y,keepRootFields:C})}).subscribe({next:function(r){i.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,w.Cl)((0,w.Cl)({},r),{data:i.maskOperation({document:c,data:r.data,fetchPolicy:b,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),a&&i.cache.removeOptimistic(t),i.broadcastQueries(),r(e instanceof rM.K4?e:new rM.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,a=[],i="no-cache"===e.fetchPolicy;if(!i&&no(n,e.errorPolicy)){if(rF(n)||a.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),rF(n)&&(0,tx.E)(n.incremental)){var o=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
114),s=void 0;o.result&&(s=r$(o.result,n)),void 0!==s&&(n.data=s,a.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,i){var o=e.observableQuery,s=o&&o.queryName;if(s&&ns.call(c,s)){var l=c[s],u=r.queries.get(i),d=u.document,p=u.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),f=h.result;if(h.complete&&f){var m=l(f,{mutationResult:n,queryName:d&&eg(d)||void 0,queryVariables:p});m&&a.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){i||a.forEach(function(e){return t.write(e)});var o,s=e.update,c=!(rF(o=n)||"hasNext"in o&&"data"in o)||rF(n)&&!n.hasNext;if(s){if(!i){var l=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(n=(0,w.Cl)((0,w.Cl)({},n),{data:l.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}c&&s(t,n,{context:e.context,variables:e.variables})}i||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:nc}):e;return n!==nc&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,w.Cl)((0,w.Cl)({},t),{result:{data:n}}),e)}catch(e){}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:e&&tp(["client","export"],e,!0),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:tp(["nonreactive"],e),nonReactiveQuery:(ef(e),tu(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,w.Cl)((0,w.Cl)({},e),{directives:(0,w.fX)((0,w.fX)([],e.directives||[],!0),[{kind:tc.b.DIRECTIVE,name:{kind:tc.b.NAME,value:"nonreactive"}}
114],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:tN([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:eb(em(e)),asQuery:(0,w.Cl)((0,w.Cl)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,w.Cl)((0,w.Cl)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,w.Cl)((0,w.Cl)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,w.Cl)((0,w.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new ni(this),n=new r5({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,P.V1)(e.query,30),(0,P.V1)("Document"===e.query.kind,31),(0,P.V1)(!e.returnPartialData,32),(0,P.V1)(!e.pollInterval,33);var n=this.transform(e.query);return this.fetchQuery(t,(0,w.Cl)((0,w.Cl)({},e),{query:n})).then(function(a){return a&&(0,w.Cl)((0,w.Cl)({},a),{data:r.maskOperation({document:n,data:a.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,P.vA)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=r4.pT.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,a=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),a.set(e,!1);else if((0,Y.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){var r=tq(t.transform(e));n.set(r,eg(e)),a.set(r,!1)}else(0,Y.U)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,o=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&a.has(s)||o&&a.has(tq(o)))&&(r.set(n,i),s&&a.set(s,!0),o&&a.set(tq(o),!0))}}),i.size&&i.forEach(function(e){var n=(0,r0.v)("legacyOneTimeQuery"),a=t.getQuery(n).init({document:e.query,variables:e.variables}),i=new r5({queryManager:t,queryInfo:a,options:(0,w.Cl)((0,w.Cl)({},e),{fetchPolicy:"network-only"})});(0,P.V1)(i.queryId===n),a.setObservableQuery(i),r.set(n,i)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,a){var i=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==i&&"cache-only"!==i)&&r.push(n.refetch()),t.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,a=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,s=e.context,c=void 0===s?{}:s,l=e.extensions,u=void 0===l?{}:l;r=this.transform(r),n=this.getVariables(r,n);var d=function(e){return t.getObservableFromLink(r,c,e,u).map(function(n){"no-cache"!==a&&(no(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var i=rZ(n),s=(0,rM.uR)(n);if(i||s){var c={};if(i&&(c.graphQLErrors=n.errors),s&&(c.protocolErrors=n.extensions[rM.K$]),"none"===o||s)throw new rM.K4(c)}return"ignore"===o&&delete n.errors,n})};
114if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,n,c).then(d);return new Q(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,a){var i,o,s=this;void 0===a&&(a=null!=(i=null==t?void 0:t.queryDeduplication)?i:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,u=c.clientQuery;if(l){var d=this.inFlightLinkObservables,p=this.link,h={query:l,variables:r,operationName:eg(l)||void 0,context:this.prepareContext((0,w.Cl)((0,w.Cl)({},t),{forceFetch:!a})),extensions:n};if(t=h.context,a){var f=tq(l),m=et(r),g=d.lookup(f,m);if(!(o=g.observable)){var y=new r6([rA(p,h)]);o=g.observable=y,y.beforeNext(function(){d.remove(f,m)})}}else o=new r6([rA(p,h)])}else o=new r6([Q.of({data:{}})]),t=this.prepareContext(t);return u&&(o=rJ(o,function(e){return s.localState.runResolvers({document:u,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(r.query);return rJ(this.getObservableFromLink(a,r.context,r.variables),function(i){var o=rX(i),s=o.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new rM.K4({graphQLErrors:o}));e.markResult(i,a,r,t),e.markReady()}var l={data:i.data,loading:!1,networkStatus:r4.pT.ready};return s&&"none"===c&&(l.data=void 0),s&&"ignore"!==c&&(l.errors=o,l.networkStatus=r4.pT.error),l},function(t){var r=(0,rM.Mn)(t)?t:new rM.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var a,i,o=this;void 0===r&&(r=r4.pT.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),c=this.getQuery(e),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,d=void 0===u?l&&l.fetchPolicy||"cache-first":u,p=t.errorPolicy,h=void 0===p?l&&l.errorPolicy||"none":p,f=t.returnPartialData,m=t.notifyOnNetworkStatusChange,g=t.context,y=Object.assign({},t,{query:n,variables:s,fetchPolicy:d,errorPolicy:h,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===g?{}:g}),v=function(e){y.variables=e;var n=o.fetchQueryByPolicy(c,y,r);return"standby"!==y.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return a.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)a=new r6(this.localState.addExportedVariables(y.query,y.variables,y.context).then(v).then(function(e){return e.sources})),i=!0;else{var _=v(y.variables);i=_.fromLink,a=new r6(_.sources)}return a.promise.then(b,b),{concast:a,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,a=e.optimistic,i=void 0!==a&&a,o=e.removeOptimistic,s=void 0===o?i?(0,r0.v)("refetchQueries"):void 0:o,c=e.onQueryUpdated,l=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){l.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var u=new Map;return r&&this.cache.batch({update:r,optimistic:i&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof ni&&e.watcher.observableQuery;if(n){if(c){l.delete(n.queryId);var a=c(n,t,r);return!0===a&&(a=n.refetch()),!1!==a&&u.set(n,a),a}null!==c&&l.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),l.size&&l.forEach(function(e,r){var n,a=e.oq,i=e.lastDiff,o=e.diff;if(c){if(!o){var s=a.queryInfo;s.reset(),o=s.getDiff()}n=c(a,o,i)}c&&!0!==n||(n=a.refetch()),!1!==n&&u.set(a,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t=e.document,r=e.data;return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return e;var n,a=em(t);return((0,P.V1)(a,51),null==e)?e:tO(e,a.selectionSet,{operationType:a.operation,operationName:null==(n=a.name)?void 0:n.value,fragmentMap:J(ey(t)),c
114ache:r,mutableTargets:new ty,knownChanged:new tv})}(r,t,this.cache):r},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?tC(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,a=t.query,i=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:a,variables:i,networkStatus:r});var h=function(){return e.getDiff()},f=function(t,r){void 0===r&&(r=e.networkStatus||r4.pT.loading);var o=t.result,s=function(e){return Q.of((0,w.Cl)({data:e,loading:(0,r4.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return o&&n.getDocumentInfo(a).hasForcedResolvers?n.localState.runResolvers({document:a,remoteResult:{data:o},context:u,variables:i,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===c&&r===r4.pT.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},m="no-cache"===o?0:r===r4.pT.refetch&&"merge"!==s?1:2,g=function(){return n.getResultsFromLink(e,m,{query:a,variables:i,context:u,fetchPolicy:o,errorPolicy:c})},y=d&&"number"==typeof p&&p!==r&&(0,r4.bi)(r);switch(o){default:case"cache-first":var v=h();if(v.complete)return{fromLink:!1,sources:[f(v,e.markReady())]};if(l||y)return{fromLink:!0,sources:[f(v),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var v=h();if(v.complete||l||y)return{fromLink:!0,sources:[f(v),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[f(h(),e.markReady())]};case"network-only":if(y)return{fromLink:!0,sources:[f(h()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(y)return{fromLink:!0,sources:[f(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ni(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,w.Cl)((0,w.Cl)((0,w.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function nu(e){return e.kind===tc.b.FIELD||e.kind===tc.b.FRAGMENT_SPREAD||e.kind===tc.b.INLINE_FRAGMENT}var nd=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,a=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),a&&this.setFragmentMatcher(a)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=te(t.resolvers,e)}):this.resolvers=te(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,w.sH)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,a=e.variables,i=e.onlyRunForcedResolvers,o=void 0!==i&&i;return(0,w.YH)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,a,this.fragmentMatcher,o).then(function(e){return(0,w.Cl)((0,w.Cl)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return tp(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return tj(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,w.Cl)((0,w.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,w.sH)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,w.YH)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,w.Cl)((0,w.Cl)({},t),e.exportedVariables)})]:[2,(0,w.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return tu(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return tl}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===ev(e).operation?e:tu(e,{OperationDefinition:{enter:function(e){return(0,w.Cl)((0,w.Cl)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,w.sH)(this,arguments,void 0,function(e,t,r,n,a,i){var o,s,c,l,u,d,p,h,f;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===a&&(a=function(){return!0}),void 0===i&&(i=!1),(0,w.YH)(this,function(m){return o=ev(e),s=J(ey(e)),c=this.collectSelectionsToResolve(o,s),u=(l=o.operation)?l.charAt(0).toUpperCase()+l.slice(1):"Query",d=this,p=d.cache,h=d.client,f={fragmentMap:s,context:(0,w.Cl)((0,w.Cl)({},r),{cache:p,client:h}),variables:n,fragmentMatcher:a,defaultOperationType:u,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:i},[2,this.resolveSelectionSet(o.selectionSet,!1,t,f).then(function(e){return{result:e,exportedVariables:f.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,w.sH)(this,void 0,void 0,function(){var a,i,o,s,c,l=this;return(0,w.YH)(this,function(u){return a=n.fragmentMap,i=n.context,o=n.variables,s=[r],c=function(e){return(0,w.sH)(l,void 0,void 0,function(){var c,l;return(0,w.YH)(this,function(u){return(t||n.selectionsToResolve.has(e))&&td(e,o)?eh(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[ed(e)]=t,r))})]:("InlineFragment"===e.kind?c=e:(c=a[e.name.value],(0,P.V1)(c,19,e.name.value)),c&&c.typeCondition&&(l=c.typeCondition.name.value,n.fragmentMatcher(r,l,i)))?[2,this.resolveSelectionSet(c.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return tt(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,w.sH)(this,void 0,void 0,function(){var a,i,o,s,c,l,u,d,p,h=this;return(0,w.YH)(this,function(f){return r?(a=n.variables,s=(i=e.name.value)!==(o=ed(e)),l=Promise.resolve(c=r[o]||r[i]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(u=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(p=d[s?i:o])&&(l=Promise.resolve(rn.withValue(this.cache,p,[r,eu(e,a),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEac
114h(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var a,i,o=null!=(i=null==(a=e.directives)?void 0:a.some(function(e){return"client"===e.name.value}))&&i;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||o,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||o,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var a=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?a.resolveSubSelectedArray(e,t,r,n):e.selectionSet?a.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(a){if(!n.has(a)){var i=new Set;n.set(a,i),tu(a,{Directive:function(e,t,n,a,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&nu(e)&&i.add(e)})},FragmentSpread:function(n,a,o,s,c){var l=t[n.name.value];(0,P.V1)(l,20,n.name.value);var u=e(l);u.size>0&&(c.forEach(function(e){r(e)&&nu(e)&&i.add(e)}),i.add(n),u.forEach(function(e){i.add(e)}))}})}return n.get(a)}(e)},e}(),np=r(47017),nh=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,P.vA)(16);var n=e.uri,a=e.credentials,i=e.headers,o=e.cache,s=e.documentTransform,c=e.ssrMode,l=void 0!==c&&c,u=e.ssrForceFetchDelay,d=void 0===u?0:u,p=e.connectToDevTools,h=e.queryDeduplication,f=void 0===h||h,m=e.defaultOptions,g=e.defaultContext,y=e.assumeImmutableResults,v=void 0===y?o.assumeImmutableResults:y,b=e.resolvers,_=e.typeDefs,O=e.fragmentMatcher,C=e.name,E=e.version,I=e.devtools,x=e.dataMasking,S=e.link;S||(S=n?new rK({uri:n,credentials:a,headers:i}):eE.empty()),this.link=S,this.cache=o,this.disableNetworkFetches=l||d>0,this.queryDeduplication=f,this.defaultOptions=m||Object.create(null),this.typeDefs=_,this.devtoolsConfig=(0,w.Cl)((0,w.Cl)({},I),{enabled:null!=(t=null==I?void 0:I.enabled)?t:p}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),d&&setTimeout(function(){return r.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=rj.r,this.localState=new nd({cache:o,client:this,resolvers:b,fragmentMatcher:O}),this.queryManager=new nl({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:s,queryDeduplication:f,ssrMode:l,dataMasking:!!x,clientAwareness:{name:C,version:E},localState:this.localState,assumeImmutableResults:v,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,np.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,w.Cl)((0,w.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,np.l)(this.defaultOptions.query,e)),(0,P.V1)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,w.Cl)((0,w.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,np.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,w.Cl)((0,w.Cl)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,w.Cl)((0,w.Cl)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return rA(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var a=Promise.all(n);return a.queries=r,a.results=n,a.catch(function(e){}),a},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
114,enumerable:!1,configurable:!0}),e}(),nf=r(42970),nm=r.n(nf);function ng(e){return new eE(function(t,r){return new Q(function(n){var a,i,o;try{a=r(t).subscribe({next:function(a){if(a.errors&&(o=e({graphQLErrors:a.errors,response:a,operation:t,forward:r}))){i=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(a)},error:function(a){if(o=e({operation:t,networkError:a,graphQLErrors:a&&a.result&&a.result.errors||void 0,forward:r})){i=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(a)},complete:function(){o||n.complete.bind(n)()}})}catch(a){e({networkError:a,operation:t,forward:r}),n.error(a)}return function(){a&&a.unsubscribe(),i&&a.unsubscribe()}})})}!function(e){function t(t){var r=e.call(this)||this;return r.link=ng(t),r}(0,w.C6)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(eE);let ny=console,nv=({graphQLErrors:e,networkError:t,operation:{operationName:r}})=>{e&&e.forEach(({message:e,locations:t,path:n})=>ny.error(`[GraphQL Error in ${r}]: ${e}, ${t}, ${n}`)),t&&ny.error(`[GraphQL Network Error in ${r}]: ${t}`)};function nb(e){return new eE(function(t,r){var n=(0,w.Tt)(t,[]);return new Q(function(a){var i,o=!1;return Promise.resolve(n).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){o||(i=r(t).subscribe({next:a.next.bind(a),error:a.error.bind(a),complete:a.complete.bind(a)}))}).catch(a.error.bind(a)),function(){o=!0,i&&i.unsubscribe()}})})}function n_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n_(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nC(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nw=e=>e?.trim()||void 0;var nP=eE.split,nI=eE.from,nx=function(){function e(e){var t=e.batchDebounce,r=e.batchInterval,n=e.batchMax,a=e.batchHandler,i=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=t,this.batchInterval=r,this.batchMax=n||0,this.batchHandler=a,this.batchKey=i||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,r=(0,w.Cl)((0,w.Cl)({},e),{next:[],error:[],complete:[],subscribers:new Set}),n=this.batchKey(e.operation);return r.observable||(r.observable=new Q(function(e){var a=t.batchesByKey.get(n);a||t.batchesByKey.set(n,a=new Set);var i=0===a.size,o=0===r.subscribers.size;return r.subscribers.add(e),o&&a.add(r),e.next&&r.next.push(e.next.bind(e)),e.error&&r.error.push(e.error.bind(e)),e.complete&&r.complete.push(e.complete.bind(e)),(i||t.batchDebounce)&&t.scheduleQueueConsumption(n),a.size===t.batchMax&&t.consumeQueue(n),function(){var i;r.subscribers.delete(e)&&r.subscribers.size<1&&a.delete(r)&&a.size<1&&(t.consumeQueue(n),null==(i=a.subscription)||i.unsubscribe())}})),r.observable},e.prototype.consumeQueue=function(e){void 0===e&&(e="");var t=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),t&&t.size){var r=[],n=[],a=[],i=[],o=[],s=[];t.forEach(function(e){r.push(e.operation),n.push(e.forward),a.push(e.observable),i.push(e.next),o.push(e.error),s.push(e.complete)});var c=this.batchHandler(r,n)||Q.of(),l=function(e){o.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return t.subscription=c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),i.length!==e.length){var t=Error("server returned results with length ".concat(e.length,", expected length of ").concat(i.length));return t.result=e,l(t)}e.forEach(function(e,t){i[t]&&i[t].forEach(function(t){return t(e)})})}
114,error:l,complete:function(){s.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),a}},e.prototype.scheduleQueueConsumption=function(e){var t=this;clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout(function(){t.consumeQueue(e),t.scheduledBatchTimerByKey.delete(e)},this.batchInterval))},e}(),nS=function(e){function t(t){var r=e.call(this)||this,n=t||{},a=n.batchDebounce,i=n.batchInterval,o=n.batchMax,s=n.batchHandler,c=n.batchKey;return r.batcher=new nx({batchDebounce:a,batchInterval:void 0===i?10:i,batchMax:void 0===o?0:o,batchHandler:void 0===s?function(){return null}:s,batchKey:void 0===c?function(){return""}:c}),t.batchHandler.length<=1&&(r.request=function(e){return r.batcher.enqueueRequest({operation:e})}),r}return(0,w.C6)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(eE),nT=(0,P.no)(function(){return fetch}),nN=function(e){function t(t){var r=e.call(this)||this,n=t||{},a=n.uri,i=void 0===a?"/graphql":a,o=n.fetch,s=n.print,c=void 0===s?rG:s,l=n.includeExtensions,u=n.preserveHeaderCase,d=n.batchInterval,p=n.batchDebounce,h=n.batchMax,f=n.batchKey,m=n.includeUnusedVariables,g=void 0!==m&&m,y=(0,w.Tt)(n,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]),v={http:{includeExtensions:l,preserveHeaderCase:u},options:y.fetchOptions,credentials:y.credentials,headers:y.headers};return r.batchDebounce=p,r.batchInterval=d||10,r.batchMax=h||10,f=f||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return rD(e,i)+JSON.stringify(r)},r.batcher=new nS({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:f,batchHandler:function(e){var t,r=rD(e[0],i),n=e[0].getContext(),a={};if(n.clientAwareness){var s=n.clientAwareness,l=s.name,u=s.version;l&&(a["apollographql-client-name"]=l),u&&(a["apollographql-client-version"]=u)}var d={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:(0,w.Cl)((0,w.Cl)({},a),n.headers)},p=e.map(function(e){var t=e.query;return tp(["client"],t)?tj(t):t});if(p.some(function(e){return!e}))return rH(Error("BatchHttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or enable the `transformOptions.removeClientFields` option."));var h=e.map(function(e,t){var r=rz((0,w.Cl)((0,w.Cl)({},e),{query:p[t]}),c,rq,v,d);return r.body.variables&&!g&&(r.body.variables=rW(r.body.variables,e.query)),r}),f=h.map(function(e){return e.body}),m=h[0].options;if("GET"===m.method)return rH(Error("apollo-link-batch-http does not support GET requests"));try{m.body=rk(f,"Payload")}catch(e){return rH(e)}return m.signal||"undefined"==typeof AbortController||(m.signal=(t=new AbortController).signal),new Q(function(n){return(o||(0,P.no)(function(){return fetch})||nT)(r,m).then(function(t){return e.forEach(function(e){return e.setContext({response:t})}),t}).then(rV(e)).then(function(e){return t=void 0,n.next(e),n.complete(),e}).catch(function(e){t=void 0,e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e)}),function(){t&&t.abort()}})}}),r}return(0,w.C6)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(eE);function nA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nk="punchout",nD=e=>!!e&&e.toLowerCase().includes(nk);var nR=r(62854);let nL=JSON.parse('{"v":{"Augmentation":["AugmentationImpl","BrandAugmentationImpl","CategoriesAugmentationImpl","CategoryAugmentationImpl","ProductAugmentationImpl"],"Banner":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageMapImpl","CMInteractiveImpl","CMLocTaxonomyImpl","CMMedia
114Impl","CMNavigationImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMSelectionRulesImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","DynamicCategoryImpl","FormEditorImpl","IconImpl","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"BrandAugmentation":["BrandAugmentationImpl"],"CMAbstractCategory":["CMAbstractCategoryImpl","CMExternalChannelImpl","DynamicCategoryImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl"],"CMArticle":["CMArticleImpl","SPArticleImpl"],"CMAudio":["CMAudioImpl"],"CMCategory":["CMCategoryImpl"],"CMChannel":["CMAbstractCategoryImpl","CMCategoryImpl","CMChannelImpl","CMExternalChannelImpl","CMExternalPageImpl","DynamicCategoryImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl"],"CMCollection":["CMCollectionImpl","CMDynamicListImpl","CMGalleryImpl","CMProductListImpl","CMQueryListImpl","CMSelectionRulesImpl","ViewTypeHeroCollection"],"CMDownload":["CMDownloadImpl"],"CMDynamicList":["CMDynamicListImpl","CMProductListImpl","CMQueryListImpl","CMSelectionRulesImpl"],"CMExternalChannel":["CMExternalChannelImpl","DynamicCategoryImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl"],"CMExternalLink":["CMExternalLinkImpl"],"CMExternalPage":["CMExternalPageImpl","SoneparArticlePageImpl","SoneparBrandPageImpl","SoneparHubPageImpl"],"CMExternalProduct":["CMExternalProductImpl"],"CMGallery":["CMGalleryImpl"],"CMHTML":["CMHTMLImpl"],"CMImage":["CMImageImpl"],"CMImageMap":["CMImageMapImpl"],"CMInteractive":["CMInteractiveImpl"],"CMLinkable":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageMapImpl","CMInteractiveImpl","CMLinkableImpl","CMLocTaxonomyImpl","CMMediaImpl","CMNavigationImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMSelectionRulesImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","DynamicCategoryImpl","FormEditorImpl","IconImpl","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"CMLocTaxonomy":["CMLocTaxonomyImpl"],"CMLocalized":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageImpl","CMImageMapImpl","CMInteractiveImpl","CMLinkableImpl","CMLocTaxonomyImpl","CMLocalizedImpl","CMMediaImpl","CMNavigationImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMResourceBundleImpl","CMSelectionRulesImpl","CMSettingsImpl","CMSiteImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","DynamicCategoryImpl","FormEditorImpl","IconImpl","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"CMMedia":["CMAudioImpl","CMHTMLImpl","CMInteractiveImpl","CMMedia
114Impl","CMPictureImpl","CMSpinnerImpl","CMVideoImpl","CMVisualImpl","IconImpl"],"CMNavigation":["CMAbstractCategoryImpl","CMCategoryImpl","CMChannelImpl","CMExternalChannelImpl","CMExternalPageImpl","CMNavigationImpl","DynamicCategoryImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl"],"CMObject":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageImpl","CMImageMapImpl","CMInteractiveImpl","CMLinkableImpl","CMLocTaxonomyImpl","CMLocalizedImpl","CMMediaImpl","CMNavigationImpl","CMObjectImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMResourceBundleImpl","CMSelectionRulesImpl","CMSettingsImpl","CMSiteImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","DynamicCategoryImpl","FormEditorImpl","IconImpl","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"CMPerson":["CMPersonImpl"],"CMPicture":["CMPictureImpl"],"CMPlaceholder":["CMPlaceholderImpl"],"CMProduct":["CMProductImpl"],"CMProductList":["CMProductListImpl"],"CMProductTeaser":["CMProductTeaserImpl"],"CMQueryList":["CMProductListImpl","CMQueryListImpl"],"CMResourceBundle":["CMResourceBundleImpl"],"CMSelectionRules":["CMSelectionRulesImpl"],"CMSettings":["CMSettingsImpl"],"CMSite":["CMSiteImpl"],"CMSpinner":["CMSpinnerImpl"],"CMTaxonomy":["CMLocTaxonomyImpl","CMTaxonomyImpl"],"CMTeasable":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageMapImpl","CMInteractiveImpl","CMLocTaxonomyImpl","CMMediaImpl","CMNavigationImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMSelectionRulesImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","DynamicCategoryImpl","FormEditorImpl","IconImpl","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"CMTeaser":["CMImageMapImpl","CMTeaserImpl","SPParagraphImpl"],"CMVideo":["CMVideoImpl"],"CMVisual":["CMInteractiveImpl","CMPictureImpl","CMSpinnerImpl","CMVideoImpl","CMVisualImpl","IconImpl"],"CartField":["MultiValuesField","SimpleValueField"],"CategoriesAugmentation":["CategoriesAugmentationImpl"],"CategoryAugmentation":["CategoryAugmentationImpl"],"CheckBoxesGroup":["CheckBoxesGroupImpl"],"CollectionItem":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageMapImpl","CMInteractiveImpl","CMLinkableImpl","CMLocTaxonomyImpl","CMMediaImpl","CMNavigationImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMSelectionRulesImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","DynamicCategoryImpl","FormEditorImpl","IconImpl","ProductRef","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"CommerceRef":["CategoryRef","ProductRef"],"ConsentFormCheckBox":["ConsentFormCheckBoxImpl"],"Content_":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageImpl","CMImageMapImpl","CMInteractiveImpl","CMLinkableImpl","CMLocTaxonomyImpl","CMLocalizedImpl","CMMedia
114Impl","CMNavigationImpl","CMObjectImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMResourceBundleImpl","CMSelectionRulesImpl","CMSettingsImpl","CMSiteImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","Content_Impl","DynamicCategoryImpl","FormEditorImpl","IconImpl","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"DateField":["DateFieldImpl"],"Detail":["CMAbstractCategoryImpl","CMArticleImpl","CMAudioImpl","CMCategoryImpl","CMChannelImpl","CMCollectionImpl","CMDownloadImpl","CMDynamicListImpl","CMExternalChannelImpl","CMExternalLinkImpl","CMExternalPageImpl","CMExternalProductImpl","CMGalleryImpl","CMHTMLImpl","CMImageMapImpl","CMInteractiveImpl","CMLocTaxonomyImpl","CMMediaImpl","CMNavigationImpl","CMPersonImpl","CMPictureImpl","CMPlaceholderImpl","CMProductImpl","CMProductListImpl","CMProductTeaserImpl","CMQueryListImpl","CMSelectionRulesImpl","CMSpinnerImpl","CMTaxonomyImpl","CMTeasableImpl","CMTeaserImpl","CMVideoImpl","CMVisualImpl","DynamicCategoryImpl","FormEditorImpl","IconImpl","SPArticleImpl","SPParagraphImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl","ViewTypeHeroCollection"],"DynamicCategory":["DynamicCategoryImpl"],"EventFilter":["EventFilterBuildings","EventFilterDates","EventFilterSponsorships","EventFilterTypes"],"FaxField":["FaxFieldImpl"],"FileUpload":["FileUploadImpl"],"FormDivider":["FormDividerImpl"],"FormEditor":["FormEditorImpl"],"FormElement":["AbstractFormElement","CheckBoxesGroupImpl","ConsentFormCheckBoxImpl","DateFieldImpl","FaxFieldImpl","FileUploadImpl","FormDividerImpl","InfoBlockImpl","NumberFieldImpl","PhoneFieldImpl","RadioButtonGroupImpl","SelectBoxImpl","StreetNumberFieldImpl","TextAreaImpl","TextFieldImpl","TextOnlyImpl","UsersMailImpl","ZipFieldImpl"],"HasPageGrid":["AugmentationImpl","CMAbstractCategoryImpl","CMCategoryImpl","CMChannelImpl","CMExternalChannelImpl","CMExternalPageImpl","CMNavigationImpl","DynamicCategoryImpl","SoneparArticlePageImpl","SoneparAugmentedBrandCategoryImpl","SoneparAugmentedBrandImpl","SoneparAugmentedBrandSeriesCategoryImpl","SoneparAugmentedBrandSeriesImpl","SoneparBrandPageImpl","SoneparHubPageImpl"],"IUser":["User","UserBasicInfo"],"Icon":["IconImpl"],"InfoBlock":["InfoBlockImpl"],"NumberField":["NumberFieldImpl"],"PageGridPlacement":["PageGridPlacementImpl","PersonalizedPageGridPlacement","ViewTypeHeroPageGridPlacement"],"PhoneField":["PhoneFieldImpl"],"ProductAugmentation":["ProductAugmentationImpl"],"ProductSearchFacets":["RangeFacet","StatsFacet","TextFacet"],"RadioButtonGroup":["RadioButtonGroupImpl"],"SPArticle":["SPArticleImpl"],"SPParagraph":["SPParagraphImpl"],"SelectBox":["SelectBoxImpl"],"SizeValidator":["CheckBoxesGroupValidator","FileUploadValidator","NumberValidator","TextValidator"],"SoneparArticlePage":["SoneparArticlePageImpl"],"SoneparAugmentedBrand":["SoneparAugmentedBrandImpl"],"SoneparAugmentedBrandCategory":["SoneparAugmentedBrandCategoryImpl"],"SoneparAugmentedBrandSeries":["SoneparAugmentedBrandSeriesImpl"],"SoneparAugmentedBrandSeriesCategory":["SoneparAugmentedBrandSeriesCategoryImpl"],"SoneparBrandPage":["SoneparBrandPageImpl"],"SoneparHubPage":["SoneparHubPageImpl"],"StreetNumberField":["StreetNumberFieldImpl"],"TextArea":["TextAreaImpl"],"TextField":["TextFieldImpl"],"TextOnly":["TextOnlyImpl"],"UsersMail":["UsersMailImpl"],"Validator":["CheckBoxesGroupValidator","ConsentFormCheckboxValidator","DateFieldValidator","FileUploadValidator","FormDividerValidator","InfoBlockValidator","NumberValidator","RadioButtonGroupValidator","SelectBoxValidator","TextOnlyValidator","TextValidator"],"ZipField":["ZipFieldImpl"]}}'),nM=["__META"];function nF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
114t%2?nF(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nF(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nB=async(e,t)=>{let r=new URLSearchParams(window.location.search).get("preview")?(0,nR.K)(e.toString(),"preview=true"):e;return nm()(r,n$(n$({},t),{},{timeout:1e4}))};var nU=r(60072);let nV=({config:e,initialApolloState:t,shouldResetApolloCache:r=!1,featureFlags:n=[],appName:i,children:o})=>{let s=e?.opco_id||"",c=n?.find(e=>e.name===`ft-use-apollo-router-header-cx-${s.toLowerCase()}`)?.enabled??!1,l=n?.find(e=>e.name===`rl-punchout-graphql-url-cx-${s.toLowerCase()}`)?.enabled??!1,u=i||(e?.appName?e.appName:void 0),d=(({appConfig:e,initialState:t,shouldReset:r,shouldUseRouter:n,clientName:i,isPunchoutFeatureFlagEnabled:o})=>(0,m.useMemo)(()=>(({appConfig:e,initialState:t,shouldReset:r,shouldUseRouter:n,clientName:i,isPunchoutFeatureFlagEnabled:o})=>{let s=a??new nh(((e,t,r,n=!1,a,i=!1)=>{let o,{opco_id:s,opcoLabel:c}=e,l=((e,t,r,n=!1)=>{let{app_url:a,graphql_url:i,LOCAL_GRAPHQL_URL:o,spark_graphql_gateway_cluster_url:s,spark_graphql_router_cluster_url:c,punchout_url:l}=e,u=(e=>{let{app_url:t,graphql_url:r,LOCAL_GRAPHQL_URL:n}=e;return!!(()=>{let e=window.location?.href;return!!e&&e.toLowerCase().includes(nk)})()||nD(t)||nD(r)||nD(n)})(e);if(o)return o;if(t){let e=r?c:s;if(e)return e}return n&&u&&l?l+"/graphql-router":r?a+"/graphql-router":i})(e,!1,n,i);return{ssrMode:!1,defaultOptions:{watchQuery:{initialFetchPolicy:"cache-first"}},connectToDevTools:!!(e.LOCAL_GRAPHQL_URL&&1),link:eE.from([ng(nv),(({opco_id:e,opcoLabel:t})=>nb((r,{headers:n})=>({headers:nO(nO({},n),{},{"x-opco-id":e,"x-opco":t})})))({opco_id:s,opcoLabel:c}),(o=e.locales_default,nb((e,{headers:t})=>{let n=nw(r)??nw((()=>{if(void 0===globalThis.window)return;let e=/^[a-z]{2}-[a-z]{2}$/i;return globalThis.window.location.pathname.split("/").find(t=>e.test(t))})())??nw(o),a=n?.replaceAll(/-[a-z]{2}/g,e=>e.toUpperCase());return a?{headers:nE(nE({},t),{},{"Accept-Language":a})}:{headers:nE({},t)}})),(({uri:e,fetchFn:t,batchMax:r=1,clientName:n})=>{let a=nb((e,{headers:t})=>({headers:nj(nj({},t),n&&{"apollographql-client-name":n})})),i={credentials:"include",uri:e,fetch:t};return nI([a,nP(t=>{let n=t.operationName?`${e}?${t.operationName}`:e;return t.setContext(()=>({uri:n})),!!t.getContext().standalone||r<2},new rK(i),new nN(nj(nj({},i),{},{batchMax:r})))])})({uri:l,fetchFn:t,clientName:a})]),cache:new rN({typePolicies:{CartShippingIntentGroup:{keyFields:!1},CartItemPriceContext:{keyFields:!1},Context:{keyFields:!1},PageGrid:{keyFields:!1},PageGridRow:{keyFields:!1},PageGridPlacement:{keyFields:!1},Account:{keyFields:["accountId"]},Products:{keyFields:["productId"],merge:!0},Query:{fields:{activeCart:{keyArgs:!1},sonepar:{merge:!0}}}},possibleTypes:nL.v}),credentials:"include"}})(e,nB,void 0,n,i,o));if(t&&Object.keys(t).length)if(a){if(r){let e=s.cache.data,{__META:r}=t;Object.entries((0,f.A)(t,nM)).forEach(([t,r])=>e.merge(t,r)),r&&r.extraRootIds.forEach(e.retain,e)}}else s.cache.restore(t);return a||(a=s),s})({appConfig:e,initialState:t,shouldReset:r,shouldUseRouter:n,clientName:i,isPunchoutFeatureFlagEnabled:o}),[e,t,r,n,i,o]))({appConfig:e,initialState:t,shouldReset:r,shouldUseRouter:c,clientName:u,isPunchoutFeatureFlagEnabled:l});return(0,nU.jsx)(S,{client:d,children:o})};var nq=r(7976),nG=r(58539),nz=r(31811),nH=r(87981),nW=r(17387),nQ=r(57825);let nY=["FIRST_LOGIN","USER_DEACTIVATION","USER_DETACH","ACCOUNT_CLOSED","ACCOUNT_DRAFT","CURRENT_WORKING_ACCOUNT_UPDATED"];var nK=r(39687),nJ=r(7470),nZ=r(43207),nX=r(2117),n0=r(95986),n1=r(16840),n2=r(31437),n3=r(69995),n6=r.n(n3),n4=r(88088),n8=r(92272);let n7=({account:e,infoText:t})=>{let{addressLine1:r,addressLine2:n,addressLine3:a,city:i,department:o,region:s,postalCode:c,country:l}=e?.deliveryAddress||{};return(0,nU.jsxs)(nU.Fragment,{children:[(0,nU.jsxs)("div",{className:n6().accountInfo,children:[(0,nU.jsx)(n4.E,{as:"p",size:"body-3",weight:"bold",children:`${e?.id} - ${e?.name}`}),(0,nU.jsx)(n8.V,{"data-testid":"account-change-info-address",addressLine1:r,addressLine2:n,addressLine3:a,city:i,department:o,stateOrRegion:s,postalCode:c,country:l,size:"body-3",weight:"bold"})]}),(0,nU.jsx)(n4.E,{color:"subtle",size:"body-3",weight:"regular",children:t})]})};var n5=r(41010),n9=r(36109);function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
114t%2?ae(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ar={},an=(0,n5.J1)`
115    mutation RemoveSystemChangeFromUser($userId: ID!) {
116  removeSystemChangeFromUser(userId: $userId) {
117    id
118    email
119    name
120    firstName
121    lastName
122    fixedPhoneNumber
123    mobilePhoneNumber
124    numberOfAttachedAccounts
125    attachedAccounts {
126      accountId
127      jobTitle
128      jobCode
129      onBehalfConsent
130    }
131  }
132}
133    `;function aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ai(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ao=()=>{let{systemChange:e,handleSystemChangeDialog:t}=(()=>{let{openDialogBox:e}=(0,nK.L)(),[t]=(0,nZ.B)(),{handleOpenSwitchAccountModal:r}=(0,n0.I)(),{sendSubnavGtmTag:n}=(0,nX.PB)(),{state:{user:a,account:i,userAccounts:o},dispatch:s}=(0,m.useContext)(C.cy),c=o?.length>1,[l,{loading:u}]=function(e){let t=at(at({},ar),e);return n9.n(an,t)}({onCompleted:e=>{e?.removeSystemChangeFromUser&&s({type:C.xW.SET_LOGGED_USER,payload:ai(ai({},a),{},{systemChange:void 0})})}});return{systemChange:a?.systemChange,handleSystemChangeDialog:(0,m.useCallback)(()=>{e({children:(0,nU.jsx)("div",{className:n6().AccountChangedialogBox,children:(0,nU.jsx)(n1.A,ai(ai({title:t("accountChangeDialog.title"),content:u?(0,nU.jsx)(nJ.O,{text:t("common.loading.label"),size:"s"}):(0,nU.jsx)(n7,{account:i,infoText:t("accountChangeDialog.content")}),cancelButton:{label:t("common.continue"),actionValue:n2.DX.NO}},c&&{confirmButton:{label:t("accountChangeDialog.switchAccount"),actionValue:n2.DX.YES}}),{},{handleOnClose:e=>{a?.id&&l({variables:{userId:a?.id}}),e===n2.DX.YES&&(n("switch-account"),r())},status:"info","data-testid":"system-change-dialog"}))}),closeLabel:t("common.close")})},[i,r,e,n,t,l,u,c,a?.id])}})();return(0,m.useEffect)(()=>{nY.includes(e?.changeReason?.code)&&t()},[e?.changeReason?.code,t]),null};var as=r(79210),ac=r(93821);function al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function au(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?al(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):al(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ad=r(77104),ap=r(1464),ah=r(88952),af=r(68728),am=r(78232),ag=r(56815),ay=r(83944),av=r(41894),ab=r(83403);let a_=({children:e})=>{let{isLoggedIn:t}=(0,C.Z2)();return t?(0,nU.jsx)(am.vK,{children:(0,nU.jsx)(ab.xD,{children:(0,nU.jsx)(ag.l1,{children:(0,nU.jsx)(ad.eH,{children:(0,nU.jsx)(ap.tJ,{children:(0,nU.jsx)(ah.rQ,{children:(0,nU.jsx)(af.MF,{children:(0,nU.jsx)(ay.bO,{children:(0,nU.jsx)(av.u_,{children:e})})})})})})})})}):(0,nU.jsx)(am.vK,{children:(0,nU.jsx)(ad.eH,{children:(0,nU.jsx)(ap.tJ,{children:(0,nU.jsx)(ah.rQ,{children:(0,nU.jsx)(af.MF,{children:(0,nU.jsx)(ay.bO,{children:(0,nU.jsx)(av.u_,{children:e})})})})})})})};var aO=r(39931),aC=r(75778),aE=r(86713),aw=r(1970);function aP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
133t%2?aP(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ax=r(86263),aS=r(55537),aT=r(84329),aN=r.n(aT);function aA(){return(aA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let aj=(0,m.forwardRef)(({title:e,titleId:t,...r},n)=>m.createElement("svg",aA({xmlns:"http://www.w3.org/2000/svg",width:21,height:16,fill:"none",ref:n,"aria-labelledby":t},r),e?m.createElement("title",{id:t},e):null,s||(s=m.createElement("path",{fill:"#fff",fillOpacity:.87,d:"M7.111 0h1.983L16 16h-2.553l-1.618-3.955H4.15L2.552 16H0zm3.92 10.147L8.023 2.802h-.046l-3.054 7.345zM17.438 0h-.876v3.383h.876zM17.438 4.617h-.876V8h.876zM17.618 4.438v-.875H21v.875zM13 4.438v-.875h3.383v.875z"})),c||(c=m.createElement("path",{fill:"#fff",fillOpacity:.87,d:"m17.618 4.002-.62-.62 2.518-2.52.62.619zM14.48 7.139l-.619-.62 2.522-2.521.619.62z"})),l||(l=m.createElement("path",{fill:"#fff",fillOpacity:.87,d:"m16.999 4.617.619-.619 2.518 2.521-.62.62zM13.861 1.48l.62-.619 2.521 2.522-.62.619z"}))));function ak(){return(ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let aD=(0,m.forwardRef)(({title:e,titleId:t,...r},n)=>m.createElement("svg",ak({xmlns:"http://www.w3.org/2000/svg",width:150,height:18,fill:"none",ref:n,"aria-labelledby":t},r),e?m.createElement("title",{id:t},e):null,u||(u=m.createElement("path",{fill:"#fff",fillOpacity:.87,d:"M7.176.046h2.001l6.969 16.284H13.57l-1.633-4.025H4.186l-1.61 4.025H0zm3.956 10.327L8.096 2.898H8.05l-3.082 7.475zM23.781 8.165a3 3 0 0 0-.92-.759q-.529-.322-1.31-.322-.736 0-1.289.322-.529.3-.529.897 0 .483.3.782.322.3.735.483.438.184.92.276t.828.161q.668.161 1.242.391.598.23 1.012.598.438.368.667.897.253.53.253 1.288 0 .92-.39 1.587-.392.645-1.013 1.058t-1.426.598a7 7 0 0 1-1.587.184q-1.357 0-2.392-.414-1.011-.414-1.817-1.518l1.564-1.288q.507.505 1.127.897.621.39 1.518.391.392 0 .782-.069a2.8 2.8 0 0 0 .713-.253q.323-.184.506-.437a1 1 0 0 0 .207-.621q0-.46-.299-.759a1.8 1.8 0 0 0-.69-.46 3.7 3.7 0 0 0-.85-.276 14 14 0 0 0-.783-.184 14 14 0 0 1-1.265-.368 3.9 3.9 0 0 1-1.058-.552 2.55 2.55 0 0 1-.736-.874q-.276-.53-.276-1.311 0-.85.345-1.472.369-.644.943-1.058a4.4 4.4 0 0 1 1.334-.621 5.8 5.8 0 0 1 1.518-.207q1.105 0 2.116.414a3.35 3.35 0 0 1 1.61 1.38zM34.251 8.165a3 3 0 0 0-.92-.759q-.53-.322-1.31-.322-.737 0-1.289.322-.53.3-.529.897 0 .483.3.782.322.3.735.483.437.
133184.92.276t.828.161q.667.161 1.242.391.598.23 1.012.598.437.368.667.897.253.53.253 1.288 0 .92-.39 1.587-.393.645-1.013 1.058-.621.414-1.426.598a7 7 0 0 1-1.587.184q-1.357 0-2.392-.414-1.012-.414-1.817-1.518l1.564-1.288q.506.505 1.127.897.621.39 1.518.391.39 0 .782-.069a2.8 2.8 0 0 0 .713-.253q.322-.184.506-.437a1 1 0 0 0 .207-.621q0-.46-.299-.759a1.8 1.8 0 0 0-.69-.46 3.7 3.7 0 0 0-.85-.276 14 14 0 0 0-.783-.184q-.667-.16-1.265-.368a3.8 3.8 0 0 1-1.058-.552 2.55 2.55 0 0 1-.736-.874q-.276-.53-.276-1.311 0-.85.345-1.472.368-.644.943-1.058a4.4 4.4 0 0 1 1.334-.621 5.8 5.8 0 0 1 1.518-.207q1.104 0 2.116.414a3.35 3.35 0 0 1 1.61 1.38zM40.604 10.879q0 .828.253 1.541.253.69.713 1.196.46.483 1.127.782.666.276 1.495.276.828 0 1.495-.276.667-.3 1.127-.782.46-.506.713-1.196.253-.713.253-1.541t-.253-1.518a3.3 3.3 0 0 0-.713-1.196 3.1 3.1 0 0 0-1.127-.782 3.6 3.6 0 0 0-1.495-.299q-.828 0-1.495.299-.667.276-1.127.782-.46.483-.713 1.196-.253.69-.253 1.518m-2.208 0q0-1.196.437-2.231a6 6 0 0 1 1.242-1.817 5.6 5.6 0 0 1 1.84-1.219 5.65 5.65 0 0 1 2.277-.46q1.22 0 2.277.46a5.6 5.6 0 0 1 3.059 3.036q.46 1.035.46 2.231a5.6 5.6 0 0 1-.46 2.254 5.7 5.7 0 0 1-1.22 1.817 6.1 6.1 0 0 1-1.84 1.219 5.9 5.9 0 0 1-2.276.437 5.9 5.9 0 0 1-2.277-.437 6.1 6.1 0 0 1-1.84-1.219 6 6 0 0 1-1.242-1.817 5.85 5.85 0 0 1-.437-2.254M60.628 8.326a4.1 4.1 0 0 0-1.219-.897q-.62-.322-1.495-.322-.851 0-1.495.322a3 3 0 0 0-1.058.851q-.413.53-.644 1.242-.207.69-.207 1.449t.253 1.449q.253.667.713 1.173a3.4 3.4 0 0 0 1.104.805q.644.276 1.449.276.874 0 1.495-.299a4 4 0 0 0 1.15-.92l1.472 1.472a4.6 4.6 0 0 1-1.886 1.288 6.5 6.5 0 0 1-2.254.391 6.3 6.3 0 0 1-2.323-.414 5.5 5.5 0 0 1-1.794-1.15 5.3 5.3 0 0 1-1.173-1.794 6.3 6.3 0 0 1-.414-2.323q0-1.265.414-2.323a5.4 5.4 0 0 1 1.15-1.817 5.3 5.3 0 0 1 1.794-1.173q1.057-.437 2.346-.437 1.195 0 2.277.437A4.9 4.9 0 0 1 62.192 6.9zM64.338 5.428h2.07V16.33h-2.07zm-.483-3.91q0-.621.437-1.058a1.48 1.48 0 0 1 1.08-.46q.622 0 1.059.46.46.437.46 1.058 0 .62-.46 1.081a1.44 1.44 0 0 1-1.058.437q-.621 0-1.081-.437a1.52 1.52 0 0 1-.437-1.081M69.998 6.762a5.6 5.6 0 0 1 2.024-1.196 6.8 6.8 0 0 1 2.3-.414q1.196 0 2.047.299.874.3 1.426.805t.805 1.173q.276.645.276 1.357v5.566q0 .575.023 1.058t.07.92h-1.84a20 20 0 0 1-.07-1.656h-.046q-.69 1.058-1.633 1.495t-2.185.437q-.759 0-1.449-.207a3.7 3.7 0 0 1-1.219-.621 3.1 3.1 0 0 1-.805-1.012q-.3-.621-.299-1.426 0-1.058.46-1.771a3.6 3.6 0 0 1 1.288-1.15q.828-.46 1.91-.644a12.7 12.7 0 0 1 2.345-.207h1.518v-.46q0-.414-.16-.828a2.1 2.1 0 0 0-.484-.736 2.1 2.1 0 0 0-.805-.529q-.483-.207-1.15-.207-.597 0-1.058.115-.437.115-.805.299a3.2 3.2 0 0 0-.667.391q-.299.23-.575.437zm5.842 4.324q-.735 0-1.518.092a5.7 5.7 0 0 0-1.403.299 2.8 2.8 0 0 0-1.035.644q-.39.414-.39 1.058 0 .943.62 1.357.644.414 1.725.414.85 0 1.45-.276.597-.3.965-.759a2.9 2.9 0 0 0 .53-1.012q.16-.575.16-1.127v-.69zM87.97 7.222h-2.966v4.945q0 .46.023.92.023.437.16.805.162.345.46.575.324.207.92.207.37 0 .76-.069t.713-.253v1.886q-.367.207-.966.276a6 6 0 0 1-.897.092q-1.195 0-1.863-.322-.644-.345-.966-.874a3 3 0 0 1-.368-1.173q-.046-.668-.046-1.334V7.222h-2.392V5.428h2.392V2.369h2.07v3.059h2.967zM92.456 11.638q0 .713.299 1.311.321.575.828.989.505.414 1.173.644.666.23 1.38.23.966 0 1.679-.437a5.6 5.6 0 0 0 1.31-1.196l1.565 1.196q-1.725 2.23-4.83 2.231-1.29 0-2.346-.437a5.3 5.3 0 0 1-1.771-1.196 5.6 5.6 0 0 1-1.104-1.817 6.5 6.5 0 0 1-.391-2.277q0-1.22.414-2.254a5.7 5.7 0 0 1 1.173-1.817 5.4 5.4 0 0 1 1.794-1.219 5.7 5.7 0 0 1 2.254-.437q1.448 0 2.438.506a4.75 4.75 0 0 1 1.656 1.334q.644.805.92 1.84a7.3 7.3 0 0 1 .299 2.07v.736zm6.532-1.656a4.1 4.1 0 0 0-.23-1.265 2.55 2.55 0 0 0-.575-.989 2.5 2.5 0 0 0-.99-.667q-.575-.253-1.356-.253-.76 0-1.403.299-.621.277-1.058.736a3.6 3.6 0 0 0-.69 1.035 2.9 2.9 0 0 0-.23 1.104zM109.634 0h-.876v3.383h.876zM109.634 4.618h-.876V8h.876zM109.813 4.438v-.876h3.383v.876zM105.196 4.438v-.876h3.382v.876z"})),d||(d=m.createElement("path",{fill:"#fff",fillOpacity:.87,d:"m109.814 4.002-.62-.62 2.518-2.52.619.619zM106.676 7.139l-.619-.62 2.521-2.521.62.62z"})),p||(p=m.createElement("path",{fill:"#fff",fillOpacity:.87,d:"m109.194 4.617.62-.619 2.517 2.521-.619.62zM106.057 1.48l.619-.619 2.522 2.522-.62.619zM105.973 15.28h-.777V9h.777v2.906a1.4 1.4 0 0 1 .58-.592c.253-.144.539-.22.83-.22.293-.003.584.055.853.172.248.107.471.266.656.465.183.2.326.433.424.687.101.262.153.54.152.821.001.28-.051.556-.152.816a2.2 2.2 0 0 1-.424.682c-.184.2-.408.358-.656.467-.27.115-.56.173-.853.17-.291 0-.577-.076-.83-.22a1.4 1.4 0 0 1-.58-.592zm1.375-.601a1.3 1.3 0 0 0 .977-.423c.119-.133.211-.287.273-.453.131-.36.131-.754 0-1.113a1.5 1.5 0 0 0-.273-.457 1.288 1.288 0 0 0-.977-.432 1.34 1.34 0 0 0-1.282.889c-.13.36-.13.753 0 1.113a1.347 1.347 0 0 0 1.278.88zM112.366 17.576q-.865 0-1.371-.44-.504-.44-.521-1.327h.784q.037.555.328.83c.221.192.508.29.8.273a1.8 1.8 0 0 0 .468-.058.85.85 0 0 0 .357-.198.9.9 0 0 0 .228-.372q.087-.285.08-.583v-1.149c-.117.25-.305.459-.54.602-.265.154-.568.23-.874.22a1.8 1.8 0 0 1-.746-.135 1.2 1.2 0 0 1-.486-.386 1.4 1.4 0 0 1-.236-.525 3.4 3.4 0 0 1-.068-.749v-2.373h.777v2.136a3 3 0 0 0 .049.543q.043.23.17.426a.8.8 0 0 0 .317.277c.157.072.328.106.5.1.176.004.35-.033.509-.11.14-.073.26-.178.353-.306q.142-.202.209-.439.072-.259.072-.53v-2.086h.777v4.495q0 .976-.491 1.428-.49.45-1.445.436M119.635 13.01q.232.072.45.152.21.076.389.207a1 1 0 0 1 .273.314 1 1 0 0 1 .102.475 1.065 1.065 0 0 1-.455.915 1.5 1.5 0 0 1-.504.228 2.45 2.45 0 0 1-1.274-.013 1.5 1.5 0 0 1-.531-.273 1.38 1.38 0 0 1-.504-1.108h.759q0 .465.272.659c.202.134.441.201.683.192.207.01.413-.038.595-.139a.49.49 0 0 0 .218-.444.4.4 0 0 0-.089-.274.8.8 0 0 0-.255-.183 2.4 2.4 0 0 0-.407-.149 8 8 0 0 1-.546-.174 7 7 0 0 1-.438-.153 1.3 1.3 0 0 1-.348-.206.9.9 0 0 1-.232-.306 1.204 1.204 0 0 1 .032-.964c.079-.146.191-.271.328-.365q.22-.154.482-.22.29-.078.589-.077c.209-.002.418.032.616.099q.275.093.496.283c.138.122.25.272.328.44.082.173.123.3
13363.121.555h-.751a.7.7 0 0 0-.21-.549.87.87 0 0 0-.611-.193.94.94 0 0 0-.536.144.48.48 0 0 0-.218.421.4.4 0 0 0 .075.25.6.6 0 0 0 .227.172q.18.081.367.138zM123.751 15.378c-.3.004-.597-.054-.874-.17a2 2 0 0 1-.67-.467 2.17 2.17 0 0 1-.581-1.498c0-.28.051-.56.152-.821.099-.254.244-.487.429-.686.189-.2.417-.359.67-.466a2.34 2.34 0 0 1 1.759 0 2.03 2.03 0 0 1 1.103 1.152c.102.262.153.54.152.821.001.28-.05.557-.152.816-.1.254-.249.486-.437.682-.192.2-.421.359-.675.467a2.2 2.2 0 0 1-.876.17m0-.7a1.34 1.34 0 0 0 1.282-.876c.131-.359.131-.753 0-1.112a1.4 1.4 0 0 0-.278-.457 1.344 1.344 0 0 0-1.004-.432 1.3 1.3 0 0 0-.987.432c-.117.134-.21.29-.272.457-.131.36-.131.753 0 1.113.062.166.154.32.272.453a1.3 1.3 0 0 0 .987.423M126.957 11.207h.777v.718c.118-.25.309-.46.546-.601.269-.156.575-.234.885-.225a1.8 1.8 0 0 1 .732.14c.194.085.361.223.482.398.113.156.195.333.241.52q.079.355.072.719v2.404h-.778v-2.163a2.4 2.4 0 0 0-.053-.525 1.2 1.2 0 0 0-.176-.422.9.9 0 0 0-.317-.28 1.04 1.04 0 0 0-.482-.103 1.07 1.07 0 0 0-.51.117c-.14.075-.262.181-.357.31a1.4 1.4 0 0 0-.219.444 2 2 0 0 0-.071.52v2.1h-.777zM132.457 13.45q.006.25.086.489.07.223.218.403c.104.12.233.216.379.279.182.073.377.108.572.103q.456 0 .692-.193c.15-.119.265-.275.335-.454h.786a1.526 1.526 0 0 1-.572.906q-.25.188-.547.288a2.1 2.1 0 0 1-.696.11 2.2 2.2 0 0 1-.893-.17 1.8 1.8 0 0 1-.634-.459 1.9 1.9 0 0 1-.375-.677 2.7 2.7 0 0 1-.126-.83c-.002-.289.043-.577.135-.851.082-.252.214-.484.388-.682.173-.194.386-.348.625-.45.27-.112.56-.167.853-.161.252-.001.502.046.736.14a1.815 1.815 0 0 1 1.146 1.698v.219q-.008.15-.032.296zm1.215-1.75a1.22 1.22 0 0 0-.857.3q-.328.303-.349.857h2.346a1.1 1.1 0 0 0-.328-.848 1.14 1.14 0 0 0-.812-.308M137.467 11.906c.131-.251.333-.457.581-.592.253-.144.538-.22.829-.22.293-.003.584.055.853.172.248.108.472.266.656.465.183.2.327.433.424.687.101.262.153.54.152.821.001.28-.051.556-.152.816a2.2 2.2 0 0 1-.424.682c-.184.2-.408.359-.656.467-.27.115-.56.173-.853.17-.291 0-.576-.075-.829-.22a1.42 1.42 0 0 1-.581-.591v2.915h-.777v-6.272h.777zm1.375-.11a1.34 1.34 0 0 0-1.282.889c-.13.359-.13.753 0 1.112q.095.254.278.454a1.35 1.35 0 0 0 1 .426 1.31 1.31 0 0 0 .977-.426c.118-.133.211-.287.272-.454.132-.36.132-.753 0-1.112a1.5 1.5 0 0 0-.272-.457 1.287 1.287 0 0 0-.973-.43zM145.977 11.206v4.074h-.765v-.709a1.43 1.43 0 0 1-.585.592c-.255.144-.543.22-.835.22a2.1 2.1 0 0 1-.849-.17 2 2 0 0 1-.655-.467 2.21 2.21 0 0 1-.577-1.498c-.001-.281.051-.56.152-.821.097-.254.241-.487.425-.687.184-.199.407-.357.655-.466.268-.116.557-.174.849-.17.292 0 .58.075.835.219.249.134.453.34.585.592v-.7zm-2.144 3.473a1.35 1.35 0 0 0 1-.426q.183-.2.277-.454c.131-.359.131-.753 0-1.112a1.4 1.4 0 0 0-.277-.457 1.338 1.338 0 0 0-1.004-.431 1.3 1.3 0 0 0-.563.117q-.245.112-.424.314-.178.203-.272.457c-.132.359-.132.753 0 1.112a1.315 1.315 0 0 0 1.256.88zM149.878 11.924a2 2 0 0 0-.201-.036 2 2 0 0 0-.182-.009q-.68 0-1.014.44-.335.438-.335 1.175v1.785h-.776v-4.073h.776v.799c.111-.261.303-.48.546-.623a1.5 1.5 0 0 1 .808-.239 1 1 0 0 1 .384.063z"})))),aR=({children:e})=>{let[t]=(0,nZ.B)(),{user:r,isConnectedOnBehalf:n}=(0,C.Z2)(),{setBackFromCx:a}=(()=>{let{getStorageValue:e,setStorageValue:t}=(0,aw.$)({key:"associateNavStorage",storageType:"sessionStorage"}),r=({accountId:e,accountName:r,isBackFromCx:n,nbChildrenAccounts:a})=>t({accountId:e,accountName:r,isBackFromCx:n,nbChildrenAccounts:a});return{getAssociateNavStorage:()=>e(),setAssociateNavStorage:r,setBackFromCx:()=>{r(aI(aI({},e()),{},{isBackFromCx:!0}))},clearBackFromCx:()=>{let{accountId:t,accountName:n,nbChildrenAccounts:a}=e()||{};r({accountId:t,accountName:n,nbChildrenAccounts:a})}}})();return n?(0,nU.jsxs)("div",{className:aN().associateBanner,"data-testid":"associate-banner",children:[(0,nU.jsxs)("div",{className:aN().associateBannerHeader,children:[(0,nU.jsx)(aD,{className:aN().desktopLogo,"data-testid":"associate-logo-desktop"}),(0,nU.jsx)(aj,{className:aN().mobileLogo,"data-testid":"associate-logo-mobile"}),(0,nU.jsxs)("div",{className:aN().account,children:[(0,nU.jsx)(n4.E,{size:"body-2",color:"inverse",className:aN().accountText,children:t("associate.banner.accountLabel")}),(0,nU.jsxs)("div",{className:aN().accountName,children:[(0,nU.jsx)(aE.e,{name:r?.name,className:aN().accountAvatar,"data-testid":"avatar",size:"m"}),(0,nU.jsx)(n4.E,{size:"body-2",color:"inverse",children:r?.name})]})]}),(0,nU.jsx)(ax.w,{size:"s",title:t("associate.banner.changeClientLabel"),forceRefresh:!0,onClick:a,href:aS.b.associate.base,variant:"standalone-regular-inverse",iconPosition:"right",icon:"arrow-double-horiz-in","data-testid":"change-client",children:(0,nU.jsx)("span",{className:aN().changeClient,children:t("associate.banner.changeClientLabel")})})]}),(0,nU.jsx)("div",{children:e}),(0,nU.jsx)("span",{className:aN().borderBottom})]}):e},aL=!1;var aM=r(62719),aF=r(42092),a$=r(38735),aB=r.n(a$);let aU={404:"account.login.userNotFoundInDatabase",CONTEXT_CHANGE:"account.login.accountIdMismatch",DEFAULT:"account.login.error"};var aV=r(18408),aq=r(5877);aV.A.use(aq.r9).init({fallbackLng:"en-gb",keySeparator:!1,resources:{},interpolation:{escapeValue:!1},lowerCaseLng:!0});var aG=r(23134),az=r(44705),aH=r(40857),aW=r(72589);let aQ=(e,t,r=0)=>{if(r>t.length)return{action:"modal"};let n=t.filter(t=>t.parentId===e);if(0===n.length||n.length>1)return{action:"modal"};let a=n[0];return a.roles?.includes(aG.Xh.SoldTo)?{action:"switch",accountId:a.id}:aQ(a.id,t,r+1)},aY=()=>((()=>{let{isFlagEnabled:e}=(0,nq.h)(),t=e("ft-punchout-account-hierarchy"),r=e("ft-account-hierarchy-autoselect"),{account:n,user:a,userAccounts:i,isLoggedIn:o,hasPersistedAccount:s}=(0,C.Z2)(),{handleOpenSwitchAccountModal:c}=(0,n0.I)(),l=(0,m.useRef)(!1),u=!!a?.isPunchoutUser,d=!!n?.roles&&!n?.roles?.includes(aG.Xh.SoldTo),p=(0,m.useMemo)(()=>i.some(e=>e.parentId===n?.id),[i,n?.id]),h=(0,m.useMemo)(()=>
133{if(n?.id&&d&&p)return s&&a?.accountId?{action:"switch",accountId:a.accountId}:r?aQ(n.id,i):{action:"modal"}},[n?.id,d,p,i,s,a,r]),[f]=(0,aW.vX)();(0,m.useEffect)(()=>{t&&o&&u&&d&&p&&a?.id&&h&&!l.current&&(0,az.Ri)(aH.xX)!==a.id&&("switch"===h.action?(l.current=!0,f({variables:{accountId:h.accountId},onCompleted:()=>{window.location.assign(window.location.href)},onError:e=>{l.current=!1;let{status:t}=(0,aM.I2)(e);t===aM.Dh?window.location.href=`${aS.b.account.base}${aS.b.account.spaPreference}?accountId=${encodeURIComponent(h.accountId)}&shouldSetContext=true`:((0,az.TV)(aH.xX,a.id,{sameSite:"lax"}),c())}})):((0,az.TV)(aH.xX,a.id,{sameSite:"lax"}),c()))},[t,o,u,d,p,h,c,f,a?.id])})(),null);var aK=r(52035);r(61627);let aJ=["error"];function aZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aX(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aZ(Object(r),!0).forEach(function(t){(0,h.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aZ(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a0(e){let{publicRuntimeConfig:t}=v()();t.BUILD_ENV!==n2.aA&&console.table(e)}!function(){if(aL||"undefined"==typeof Node)return;aL=!0;let e=Node.prototype.removeChild;Node.prototype.removeChild=function(t){return t.parentNode!==this?t:e.call(this,t)};let t=Node.prototype.insertBefore;Node.prototype.insertBefore=function(e,r){return r&&r.parentNode!==this?e:t.call(this,e,r)}}();let a1=(({Layout:e,Page:t})=>r=>n=>{if(t){let e=n.error?.networkError?.statusCode||n.error?.statusCode;return e?(0,nU.jsx)(t,{statusCode:e}):(0,nU.jsx)(as.ErrorBoundary,{FallbackComponent:()=>(0,nU.jsx)(t,{statusCode:500}),children:(0,nU.jsx)(r,au({},n))})}return(0,nU.jsx)(as.ErrorBoundary,{FallbackComponent:({error:t})=>(0,nU.jsx)(ac.O,{statusCode:t.statusCode||500,layouts:{blocking:e}}),children:(0,nU.jsx)(r,au({},n))})})({Page:aK.ErrorPage})(({user:e,userFromToken:t,children:r})=>{let{pathname:n,query:a}=(0,b.useRouter)(),{errorAuthenticationStatus:i}=(0,C.Z2)(),{updateProductsInFavoriteLists:o}=(0,E.BF)(),{error:s}=a,c=(0,f.A)(a,aJ),l=t?.accountId&&t?.userId;return((e,t)=>{(0,m.useEffect)(()=>{"legacy"!==t.origin||e||(window.location.href=`${aS.b.account.base}${aS.b.account.login}`)},[t,e])})(t,c),(({userFromToken:e,hasUserBeenRetrieved:t})=>{let{dispatch:r}=(0,m.useContext)(C.cy),{error:n}=(0,O.UkZ)({variables:{input:{userId:e?.userId,accountId:e?.accountId}},skip:!e||t,onCompleted:e=>{e?.authenticatedUserDetails&&r({type:C.xW.UPDATE,payload:{user:e.authenticatedUserDetails.user,userAccounts:e.authenticatedUserDetails.accounts,account:e.authenticatedUserDetails.currentAccount,isUserAccountsLoading:!1}})},onError:e=>{if(e)return r({type:C.xW.SET_ERROR_AUTHENTICATION_STATUS,payload:500})}}),a=(0,m.useMemo)(()=>{if(!n)return null;let[e]=n.graphQLErrors;return e?.message==="ACCOUNT_ID_MISMATCH"?{status:aM.Dh}:{status:404===e?.extensions.response?.status?404:500}},[n]);a&&a.status===aM.Dh&&(window.location.href=`${aS.b.account.base}${aS.b.account.logout}?error=CONTEXT_CHANGE`)})({userFromToken:t,hasUserBeenRetrieved:!!e}),((e,t)=>{let[r]=(0,nZ.B)(),{sendToast:n}=(0,aF.d)(),a=(0,m.useRef)(!0);a.current&&e&&(n({message:r(aU[e]??aU.DEFAULT),closeLabel:r("toaster.accessibility.close"),status:"error"}),window.history.replaceState({},document.title,aB()(t.pathname,t.query)),a.current=!1)})(s??i,{pathname:n,query:c}),(0,O.O0q)({variables:{accountId:t?.accountId,userId:t?.userId,email:t?.email},onCompleted:e=>{o(e.productsInFavoriteLists||[])},skip:!l}),r}),a2=({Component:e,pageProps:t})=>{let{user:r,userFromToken:n,associateUser:a,guestUser:i,userAccounts:o,account:s,config:c,shouldResetApolloCache:l,initialApolloState:u,sharedContent:d,mobileAppProps:p,featureFlags:h,contactId:f,hasDPC:m,hasPersistedAccount:y,storeOpeningInfos:v}=t,O=!!n?.associateEmail;return(e=>{let{locale:t}=(0,b.useRouter)(),[,r]=(0,nZ.B)();return aV.A.addResourceBundle(t,"translation",e),r.language!==t&&r.changeLanguage(t),aV.A})(t.translations),(0,nU.jsx)(nV,{config:c,initialApolloState:u,shouldResetApolloCache:l,featureFlags:h,children:(0,nU.jsx)(nq.XU,{config:c,featureFlags:h,children:(0,nU.jsx)(nG.j,{config:p,children:(0,nU.jsx)(C.OJ,{value:{user:r,userAccounts:o,account:s,isLoggedIn:!!n,associateUser:a,guestUser:i,contactId:f,hasDPC:m,hasPersistedAccount:y,isConnectedOnBehalf:O},children:(0,nU.jsx)(nz.ez,{children:(0,nU.jsx)(_.ph,{children:(0,nU.jsx)(g.V,{children:(0,nU.jsx)("div",{className:"app",children:(0,nU.jsx)(aR,{children:(0,nU.jsx)(nH.z,{children:(0,nU.jsx)(a_,{children:(0,nU.jsx)(E.GV,{children:(0,nU.jsx)(nW.HA,{content:d,children:(0,nU.jsx)(nQ.a$,{children:(0,nU.jsx)(aC.Y9,{initialStoreOpeningInfos:v,children:(0,nU.jsx)(aO.rf,{children:(0,nU.jsxs)(a1,aX(aX({},t),{},{children:[(0,nU.jsx)(e,aX({},t)),!!n&&(0,nU.jsx)(ao,{}),!!n&&(0,nU.jsx)(aY,{})]}))})})})})})})})})})})})})})})})})}},48088:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(53779),a=r(85587),i=r(52856),o=r(82726),s=r(60004),c=(0,a.h)(),l=(0,s.forwardRef)(({className:e,clearLabel:t,id:r,label:a,searchLabel:l,value:u="",onChange:d,onClear:p,onSearch:h,...f},m)=>{let g=(0,s.useRef)(null),y=m??g,v=(0,i.k)("watts-searchbar"),b=r||v,[_,O]=(0,s.use
133State)(u);(0,s.useEffect)(()=>{O(u)},[u]);let C=()=>{O(""),p?.(),"current"in y&&y.current?.focus()};return(0,c.jsxs)("form",{className:(0,n.$)("watts-searchbar",e),role:"search",onSubmit:e=>{e.preventDefault(),h?.(_)},children:[(0,c.jsx)("label",{className:"sr-only",htmlFor:b,children:a}),(0,c.jsx)("input",{type:"search",id:b,ref:y,value:_,onChange:e=>{O(e.target.value),d?.(e)},onKeyDown:e=>{"Escape"===e.key&&C()},...f}),(0,c.jsxs)("div",{className:"watts-searchbar__actions",children:[!!_&&(0,c.jsx)(o.$,{icon:"cross-small",onClick:C,title:t,size:"s",variant:"ghost"}),(0,c.jsx)(o.$,{type:"submit",disabled:!_,icon:"search",title:l,size:"s",variant:"ghost"})]})]})});l.displayName="Searchbar"},48515:(e,t,r)=>{"use strict";r.d(t,{Xq:()=>a});let n=r(55537).b.content.app,a=(e="en-gb",t="",r="")=>{let a=r===n?"":r,i=a?`/${a}`:"",o=t.startsWith("/")?t:`/${t}`,s=t.indexOf("/api")>-1?"":`/${e}`;return`${i}${s}${o}`}},48628:(e,t,r)=>{"use strict";r.d(t,{b:()=>o});var n=r(46754),a=r(3070),i=r(60004),o=(e=!1)=>{let{close:t,isOpen:r,open:o}=(0,n.e)(e),{lockScroll:s,unlockScroll:c}=(0,a._)(),l=(0,i.useRef)(null);return{isOpen:r,openDrawer:()=>{s(),l.current=document.activeElement,o()},closeDrawer:()=>{t(),setTimeout(()=>{c(),l.current?.focus()},300)}}}},48979:(e,t,r)=>{"use strict";r.d(t,{f:()=>u});var n=r(12072),a=r(60004),i=r(3446),o=r(61331),s=r(60072);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=e=>({tree:t,children:r})=>{let n=(0,o.N)(t,"class"),c=n?{className:n}:null;return e===i.d.LI?(0,s.jsx)("li",l(l({className:n},c),{},{children:r})):(0,a.createElement)(e,c,r)}},49411:(e,t,r)=>{var n=r(55876),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,s){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var d=u;d--;){var p=l[d];if(!(c?p in t:a.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d<u;){var y=e[p=l[d]],v=t[p];if(i)var b=c?i(v,y,p,t,e,s):i(y,v,p,e,t,s);if(!(void 0===b?y===v||o(y,v,r,i,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,O=t.constructor;_!=O&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof O&&O instanceof O)&&(m=!1)}return s.delete(e),s.delete(t),m}},49466:(e,t,r)=>{var n=r(84033),a=r(13725);e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),n(e,t,{leading:i,maxWait:t,trailing:o})}},49472:e=>{e.exports={subnavBar:"subnav_subnavBar__vXUNG",subnavItems:"subnav_subnavItems__UH_yi",rightItems:"subnav_rightItems__x3F_j",subnavItem:"subnav_subnavItem__Rt6qn",brandedHeader:"subnav_brandedHeader__QixEX",active:"subnav_active__JfAMT",subnavRight:"subnav_subnavRight__PXieO",quickAddButtonDesktop:"subnav_quickAddButtonDesktop__jROGa",quickAddButtonMobile:"subnav_quickAddButtonMobile__CaJfU",subnavRightNavigationEnabled:"subnav_subnavRightNavigationEnabled__ieuPy"}},49938:(e,t,r)=>{"use strict";r.d(t,{kj:()=>i,ld:()=>a});var n=r(84167);(0,n.Ay)`
134  fragment ProductSearchResultDocs on Docs {
135    title
136    brand
137    pid
138    tags
139    stockIndicator
140    manufacturerRefId
141    manufacturerReference
142    gtin
143    sellerNames
144    minQuantity
145    quantitySteps
146    characteristic1
147    characteristic2
148    characteristic3
149    contentUnit
150    opcoProductId
151    personal_code
152    thumb_image
153    brand_image
154    isReturnable
155    greenRating
156    carbonFootprint
157    similar
158    followup
159    iconCodes
160  }
161`;let a=(0,n.Ay)`
162  fragment OfferFields on Offer {
163    orderingDetail {
164      packingQuantity
165      minQuantity
166      maxQuantity
167      quantitySteps
168      contentUnit
169    }
170    seller {
171      opcoSellerId
172      sellerName
173    }
174  }
175`,i=(0,n.Ay)`
176  fragment ProductSearchResultDocsV2 on ProductDoc {
177    productId
178    productImage
179    brandName
180    brandImage
181    tags
182    isReturnable
183    productTitle
184    features {
185      name
186      value
187    }
188    references {
189      refName
190      refValue
191    }
192    minQuantity
193    sellerNames
194    quantitySteps
195    contentUnit
196    stockIndicator
197    greenRating
198    carbonFootprint
199    followupProducts
200    similarProducts
201    isMarketplace
202    isCuttable
203    quantity
204    priceDisplayMultiplier
205    offers {
206      offerId
207      orderingDetail {
208        contentUnit
209        maxQuantity
210        minQuantity
211        packingQuantity
212        quantitySteps
213      }
214      seller {
215        sellerName
216        opcoSellerId
217      }
218    }
219    hasVariant
220    iconCodes
221    productCategoriesInfo {
222      id
223      title
224      parents {
225        id
226        title
227      }
228      error
229    }
230  }
231`},50108:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},50766:(e,t,r)=>{var n=r(42183);e.exports=function(){this.__data__=new n,this.size=0}},50925:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});
231class n{static shouldDisplayDeliveryPromise(e,t){return e(t)}static shouldDisplayMultiCdcPromiseLabel(e,t){return e(t)}static shouldHideExtendedDelivery(e,t){return e||!!t}static shouldUseSimplifiedPlpLabels(e,t,r){return!r&&e(t)}static getActiveFeatureFlagConfig(e,t,r,n=!1,a){return{displayDeliveryPromise:this.shouldDisplayDeliveryPromise(e,t),displayMultiCdcPromiseLabel:this.shouldDisplayMultiCdcPromiseLabel(e,r),useSimplifiedPlpLabels:!!a&&this.shouldUseSimplifiedPlpLabels(e,a,n)}}}},51250:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(84167);let a={fragments:{store:(0,n.Ay)`
232      fragment Store on Store {
233        facilityType
234        facilityId
235        name
236        description
237        hasChildLocker
238        activationDate
239        desactivationDate
240        localLocker {
241          name
242          openingHours {
243            dayOfWeek
244            isOpen
245            periods {
246              openTime
247              closeTime
248            }
249          }
250          exceptionalOpeningHours {
251            date
252            isOpen
253            periods {
254              openTime
255              closeTime
256            }
257          }
258        }
259        address {
260          addressLine1
261          addressLine2
262          addressLine3
263          postalCode
264          city
265          country
266          timezone
267        }
268        contactInfo {
269          phoneNumber
270          email
271          faxNumber
272        }
273        location {
274          latitude
275          longitude
276        }
277        openingHours {
278          dayOfWeek
279          isOpen
280          periods {
281            openTime
282            closeTime
283          }
284        }
285        exceptionalOpeningHours {
286          date
287          isOpen
288          periods {
289            openTime
290            closeTime
291          }
292        }
293        services {
294          serviceCode
295          serviceTitle
296          serviceMessage
297        }
298      }
299    `,storeLogistics:(0,n.Ay)`
300      fragment StoreLogistics on Store {
301        facilityType
302        hasChildLocker
303        activationDate
304        desactivationDate
305        localLocker {
306          facilityId
307        }
308        facilityId
309        openingHours {
310          dayOfWeek
311          isOpen
312          periods {
313            openTime
314            closeTime
315          }
316        }
317        exceptionalOpeningHours {
318          date
319          isOpen
320          periods {
321            openTime
322            closeTime
323          }
324        }
325        logisticMethods {
326          mode
327          standardDays {
328            cutOffTime
329            dayOfWeek
330            leadTime
331            preparationTime
332          }
333          exceptionalDays {
334            cutOffTime
335            date
336            leadTime
337            preparationTime
338          }
339        }
340      }
341    `}}},51311:(e,t,r)=>{"use strict";r.d(t,{u:()=>p});var n=r(12072);r(60004);var a=r(88088),i=r(61331),o=r(89089),s=r(98591),c=r.n(s),l=r(60072);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=({tree:e,children:t,options:r,className:n})=>{let s=(0,i.N)(e,"class"),u=(0,o.u)([s,n].filter(Boolean).join(" "),c());return(0,l.jsx)(a.E,d(d({as:"p",color:"subtle",className:u},r),{},{children:t}))}},51512:e=>{e.exports={mobileMenuTopContainer:"logged-in-mobile-menu-top-container_mobileMenuTopContainer__kCE_O",mobileMenuSwitchAccount:"logged-in-mobile-menu-top-container_mobileMenuSwitchAccount__kvzMr",mobileMenuTopContainerInner:"logged-in-mobile-menu-top-container_mobileMenuTopContainerInner__Haw00",divider:"logged-in-mobile-menu-top-container_divider__xOPis",projectInfoSection:"logged-in-mobile-menu-top-container_projectInfoSection__rpGR4",projectInfo:"logged-in-mobile-menu-top-container_projectInfo__8ZXH0"}},51559:(e,t,r)=>{e.exports=r(16299).Symbol},51713:(e,t,r)=>{"use strict";r.d(t,{q:()=>u});var n=r(60004),a=r(48088),i=r(43207),o=r(69120),s=r(82755),c=r(81447),l=r(60072);
341let u=({value:e,onValueChange:t,onFocus:r,onValueSubmit:u,"data-testid":d,id:p,className:h})=>{let[f]=(0,i.B)(),{0:m,1:g}=(0,n.useState)(""),y=(0,n.useRef)(!1);(0,n.useEffect)(()=>{y.current||g(e)},[e]);let v=(0,s.Y)(t,o.BA),b=(0,n.useCallback)(e=>{y.current=!0,r(e)},[r]),_=(0,n.useCallback)(()=>{y.current=!1},[]),O=async e=>{await u(e)};return(0,l.jsx)(a.S,{id:p||"searchbar","data-testid":d||"search-bar-input",autoComplete:"off",label:f("header.search.label"),placeholder:f("header.search.placeholder"),searchLabel:f("header.search.searchButtonLabel"),clearLabel:f("header.search.clearButtonLabel"),onChange:e=>{g(e.target.value),v(e.target.value)},onFocus:b,onBlur:_,onSearch:O,onClear:()=>{g(""),t("")},value:(0,c.Tw)(m),className:h,"data-cs-capture":!0})}},51742:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},a=e.split(";"),i=(t||{}).decode||r,o=0;o<a.length;o++){var s=a[o],c=s.indexOf("=");if(!(c<0)){var l=s.substring(0,c).trim();if(void 0==n[l]){var u=s.substring(c+1,s.length).trim();'"'===u[0]&&(u=u.slice(1,-1)),n[l]=function(e,t){try{return t(e)}catch(t){return e}}(u,i)}}}return n},t.serialize=function(e,t,r){var i=r||{},o=i.encode||n;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!a.test(e))throw TypeError("argument name is invalid");var s=o(t);if(s&&!a.test(s))throw TypeError("argument val is invalid");var c=e+"="+s;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(i.domain){if(!a.test(i.domain))throw TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!a.test(i.path))throw TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invali
341d");c+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var r=decodeURIComponent,n=encodeURIComponent,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},51859:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var n=r(15428),a=r(5744),i=r(16178);function o(e,t){let r,o,m=()=>(0,a.w)(t?.in,NaN),g=t?.additionalDigits??2,y=function(e){let t,r={},n=e.split(s.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],s.timeZoneDelimiter.test(r.date)&&(r.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){let e=s.timezone.exec(t);e?(r.time=t.replace(e[1],""),r.timezone=e[1]):r.time=t}return r}(e);if(y.date){let e=function(e,t){let r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?a:100*i,restDateString:e.slice((n[1]||n[2]).length)}}(y.date,g);r=function(e,t){var r,n,a,i,o,s,l;if(null===t)return new Date(NaN);let u=e.match(c);if(!u)return new Date(NaN);let p=!!u[4],m=d(u[1]),g=d(u[2])-1,y=d(u[3]),v=d(u[4]),b=d(u[5])-1;if(p){return(r=v,n=b,r>=1&&r<=53&&n>=0&&n<=6)?function(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let a=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()+((t-1)*7+r+1-a)),n}(t,v,b):new Date(NaN)}{let e=new Date(0);return(a=t,i=g,o=y,i>=0&&i<=11&&o>=1&&o<=(h[i]||(f(a)?29:28))&&(s=t,(l=m)>=1&&l<=(f(s)?366:365)))?(e.setUTCFullYear(t,g,Math.max(m,y)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(+r))return m();let v=+r,b=0;if(y.time&&isNaN(b=function(e){var t,r,a;let i=e.match(l);if(!i)return NaN;let o=p(i[1]),s=p(i[2]),c=p(i[3]);return(t=o,r=s,a=c,24===t?0===r&&0===a:a>=0&&a<60&&r>=0&&r<60&&t>=0&&t<25)?o*n.s0+s*n.Cg+1e3*c:NaN}(y.time)))return m();if(y.timezone){if(isNaN(o=function(e){var t;if("Z"===e)return 0;let r=e.match(u);if(!r)return 0;let a="+"===r[1]?-1:1,i=parseInt(r[2]),o=r[3]&&parseInt(r[3])||0;return(t=o)>=0&&t<=59?a*(i*n.s0+o*n.Cg):NaN}(y.timezone)))return m()}else{let e=new Date(v+b),r=(0,i.a)(0,t?.in);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}return(0,i.a)(v+b+o,t?.in)}let s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}let h=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400==0||e%4==0&&e%100!=0}},52035:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorPage:()=>C,__N_SSP:()=>O,default:()=>E});var n=r(60004),a=r(58590),i=r(31327),o=r(85582),s=r(93821);r(92652);var c=r(76316),l=r.n(c),u=r(7976),d=r(34751),p=r(37630),h=r(86263),f=r(46291),m=r(55537),g=r(22691),y=r.n(g),v=r(60072);let b=({title:e,children:t})=>{let{opco_brand:r}=(0,u.rD)(),n=(0,p.$i)();return(0,v.jsxs)("div",{className:y().root,children:[(0,v.jsxs)(l(),{children:[(0,v.jsx)("title",{children:e}),(0,v.jsx)("meta",{charSet:"utf-8"}),(0,v.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,v.jsx)("link",{rel:"icon",href:(0,f.Yf)(n,r??"default")}),(0,v.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,v.jsx)("div",{className:y().header,children:(0,v.jsx)(h.w,{className:y().link,app:m.b.content.app,href:m.b.content.base,variant:"unstyled",children:(0,v.jsx)("div",{id:"logo",className:y().logo,children:(0,v.jsx)(d.g,{})})})}),(0,v.jsx)("div",{className:y().container,children:t})]})};var _=r(20655),O=!0;let C=({statusCode:e})=>{let{sendPageViewGtmTag:t}=(0,a.UU)(),r=(0,n.useMemo)(()=>({page_type_1:o.g$.ERROR,page_type_2:`${e}`}),[e]);return(0,i.W)({pageViewEventData:r,sendPageViewGtmTag:t}),(0,v.jsx)(s.O,{statusCode:e,layouts:{blocking:b,nonBlocking:_.r}})},E=C},52238:(e,t,r)=>{"use strict";r.d(t,{$:()=>u});var n=r(12072),a=r(38973),i=r(10983),o=r(55537),s=r(48515);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
341t%2?c(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=(e,t,r,n,c=!1)=>{let{locale:u,basePath:d,query:p}=(0,i.useRouter)(),h=d?.substring(1)||o.b.content.app;if(!t)return"";if(t.match(/^https?:\/\//))return t;let[f,m]=(e&&(r||h!==e)&&!c?(0,s.Xq)(u,t,e):t).split("?"),g=l(l({},(0,a.parse)(n)),(0,a.parse)(m));t.startsWith("/")&&p?.preview&&(g.preview=p?.preview);let y=(0,a.stringify)(g);return f+(y?`?${y}`:"")}},52291:e=>{e.exports={navigationSkeleton:"navigation_navigationSkeleton__SJ3OK",skeletonWrapper:"navigation_skeletonWrapper__poQa5",skeleton:"navigation_skeleton__QZYUW",navigation:"navigation_navigation__dxsVC",content:"navigation_content__pOHiR",container:"navigation_container__nQH1I",forceContainer:"navigation_forceContainer__I2KYc",megaPanelContainer:"navigation_megaPanelContainer__a3rsZ",closeIcon:"navigation_closeIcon__yKGpq"}},52300:e=>{e.exports={tagLine:"tag-line_tagLine__7_NPL"}},52304:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({alt:e="",className:t,ratio:r,...i})=>(0,a.jsx)("img",{alt:e,className:(0,n.$)("watts-image",r&&`watts-image--ratio-${r}`,t),...i});i.displayName="Image"},52322:(e,t,r)=>{"use strict";r.d(t,{Wk:()=>o,OJ:()=>f,e$:()=>p,F$:()=>s,mt:()=>d,vv:()=>h,S3:()=>m,QJ:()=>y,bQ:()=>_,BS:()=>c,PK:()=>g,wR:()=>O,Yp:()=>v});var n=r(84742),a=r(16178),i=r(11594);let o=(e,t)=>e?.length>t?e.substring(0,t).concat("..."):e,s=(e,t)=>{let r=t?.exceptionalOpeningHours?.find(t=>t.date===function(e,t){let r=(0,a.a)(e,t?.in);if(isNaN(+r))throw RangeError("Invalid time value");let i=t?.format??"extended",o=t?.representation??"complete",s="",c="",l="extended"===i?"-":"";if("time"!==o){let e=(0,n.F)(r.getDate(),2),t=(0,n.F)(r.getMonth()+1,2),a=(0,n.F)(r.getFullYear(),4);s=`${a}${l}${t}${l}${e}`}if("date"!==o){let e=r.getTimezoneOffset();if(0!==e){let t=Math.abs(e),r=(0,n.F)(Math.trunc(t/60),2),a=(0,n.F)(t%60,2);c=`${e<0?"+":"-"}${r}:${a}`}else c="Z";let t=(0,n.F)(r.getHours(),2),a=(0,n.F)(r.getMinutes(),2),o=(0,n.F)(r.getSeconds(),2),l=""===s?"":"T",u=[t,a,o].join("extended"===i?":":"");s=`${s}${l}${u}${c}`}return s}(e,{representation:"date"})),i=t?.openingHours?.find(t=>t.dayOfWeek===["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"][e.getDay()]);return r||i},c=(e,t)=>e?e.split(t).map(e=>e.trim()).filter(Boolean):[],l=e=>((e,t)=>{let r=s(e,t);return r?.isOpen||!1})(new Date,e),u=(e,t,r=new Date)=>{let n=s(r,e);return n?.isOpen&&n.periods?n.periods.filter(e=>!!(e?.openTime&&e?.closeTime)).map(({openTime:e,closeTime:r})=>t?`${(0,i.eg)(e||"")} – ${(0,i.eg)(r||"")}`:`${(e||"").replace(/^0/,"")} – ${(r||"").replace(/^0/,"")}`):[]},d=(e,t,r,n)=>u(e,r,n)?.length>0?`(${u(e,r,n).join(t)})`:"",p=(e,t,r)=>u(e,t,r)?.length>0?`${u(e,t,r).join(", ")}`:null,h=e=>l(e)?"header.storesDrawer.open.openToday":"header.storesDrawer.open.closedToday",f=e=>l(e)?"store.nationalLocker.openToday":"store.nationalLocker.closedToday",m=e=>l(e)?"header.storesDrawer.locker":"store.nationalLocker.closedToday",g=e=>e?.toLowerCase()==="true",y=e=>e.toLowerCase().replace(/\s+/g,""),v=e=>e.replace(/\s+/g," ").trim(),b=(e,t=!0)=>e?t?v(e.replace(/<br>/g," ").replace(/<[^>]*>/g,"")):e.replace(/<br>/g," ").replace(/<[^>]*>/g,""):"",_=e=>b(e,!1),O=e=>e?o(b(e),317):""},52372:(e,t,r)=>{"use strict";r.d(t,{t:()=>p});var n=r(60004),a=r(42092),i=r(37116),o=r(82726),s=r(35695),c=r(43207),l=r(72848),u=r.n(l),d=r(60072);let p=({references:e,className:t})=>{let[r]=(0,c.B)(),{sendToast:l}=(0,a.d)(),{0:p,1:h}=(0,n.useState)(!1);return e?.length?(0,d.jsx)("ul",{className:(0,s.A)(u().container,t),children:e.map(({refName:e,refValue:t})=>(0,d.jsx)("li",{className:u().list,children:(0,d.jsx)(i.m,{label:p?r("catalog.productRef.copied"):r("catalog.productRef.copy"),children:(0,d.jsx)(o.$,{className:u().button,icon:"copy",variant:"tertiary",size:"s",iconPosition:"right",onBlur:()=>h(!1),onClick:()=>{navigator.clipboard.writeText(t).then(()=>{l({message:r("catalog.productRef.copied"),status:"success",closeLabel:r("common.close")}),h(!0)},()=>{l({message:r("catalog.productRef.error"),status:"error",closeLabel:r("common.close")}),h(!1)})},"aria-label":`${r("catalog.productRef.copy")} ${e} ${t}`,children:(0,d.jsxs)("span",{className:u().buttonText,"data-testid":"productReference",children:[(e=>r(e)!==e)(`catalog.productRef.${e}`)&&r(`catalog.productRef.${e}`)||e," ",t]})})})},`${e}-${t}`))}):null}},52726:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,Q:()=>s});var n=r(38973),a=r(10983),i=r.n(a),o=r(48515);let s=(e,t,r)=>{let a=i().query?.preview,[s,c]=(0,o.Xq)(r||i()?.locale,e,t).split("?"),l=(0,n.parse)(c);a&&(l.preview=a);let u=(0,n.stringify)(l);return s+(u?`?${u}
341`:"")},c=(e,t,r)=>{window.location.href=s(e,t,r)}},52797:(e,t,r)=>{var n=r(73445);e.exports=function(e,t){var r=n(this,e),a=r.size;return r.set(e,t),this.size+=+(r.size!=a),this}},52856:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(60004),a=e=>{let t=(0,n.useId)();return e?`${e}_${t}`:t}},52941:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(41010),a=r(44942);let i=(0,n.J1)`
342  fragment ProductPrice on Price {
343    error
344    productPricesNotFound
345    productPrices {
346      ...ProductPriceBase
347      promotions {
348        campaignId
349        title
350        alternateProductId
351        startDate
352        endDate
353        promotionalNetPrice {
354          amount
355          scale
356          currency
357        }
358        totalPromotionalNetPrice {
359          amount
360          scale
361          currency
362        }
363        promotionalListPrice {
364          amount
365          scale
366          currency
367        }
368        totalPromotionalListPrice {
369          amount
370          scale
371          currency
372        }
373        promotionalNetPercentageDecimal
374        promotionalListPercentage
375      }
376      bestPrice {
377        context {
378          type
379          id
380          title
381          promotionDetails {
382            promotionalListPercentage
383            promotionalNetPercentageDecimal
384            strikeThroughNetPrice {
385              amount
386              scale
387              currency
388            }
389            totalStrikeThroughNetPrice {
390              amount
391              scale
392              currency
393            }
394            strikeThroughListPrice {
395              amount
396              scale
397              currency
398            }
399            totalStrikeThroughListPrice {
400              amount
401              scale
402              currency
403            }
404            displayStrikeThroughNetPrice {
405              amount
406              scale
407              currency
408            }
409            displayStrikeThroughListPrice {
410              amount
411              scale
412              currency
413            }
414          }
415        }
416        ...ProductNetListBestPrices
417      }
418      taxes {
419        type
420        surcharge
421        rate {
422          value
423          scale
424        }
425        percentage
426        amount {
427          amount
428          scale
429          currency
430        }
431        displayAmount {
432          amount
433          scale
434          currency
435        }
436      }
437      fees {
438        type
439        levels {
440          feeAmount {
441            amount
442            scale
443            currency
444            maxQuantity
445          }
446        }
447      }
448    }
449    pricePreference
450  }
451  ${a.sC}
452  ${a.ky}
453`},53102:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(4181);function a(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=(0,n.A)(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},53283:e=>{e.exports=Array.isArray},53285:(e,t,r)=>{"use strict";r.d(t,{ad:()=>o});var n=r(12072);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let o=(e,t,r)=>(n,{data:a})=>{a?.[e]?.__typename==="Cart"&&n.writeQuery(i(i({query:t},r&&{variables:r}),{},{data:{activeCart:a[e]}}))}},53464:(e,t,r)=>{var n=r(51559),a=r(41326),i=r(6888),o=r(45987),s=r(17123),c=r(69261),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,d,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new a(e),new a(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&n;if(h||(h=c),e.size!=t.size&&!f)break;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var g=o(h(e),h(t),n,l,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},53556:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(60010),a=r(36215),i=r(47017),o=r(86987),s=r(78512),c=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function l(e,t){var r,l=a.useRef(void 0),u=a.useRef(void 0),d=a.useRef(void 0),p=(0,i.l)(t,l.current||{}
453),h=null!=(r=null==p?void 0:p.query)?r:e;u.current=t,d.current=h;var f=(0,n.Cl)((0,n.Cl)({},p),{skip:!l.current}),m=(0,o.SX)(h,f),g=m.obsQueryFields,y=m.result,v=m.client,b=m.resultData,_=m.observable,O=m.onQueryExecuted,C=_.options.initialFetchPolicy||(0,o.kk)(f.defaultOptions,v.defaultOptions),E=a.useReducer(function(e){return e+1},0)[1],w=a.useMemo(function(){for(var e={},t=0;t<c.length;t++)!function(t){var r=g[t];e[t]=function(){return l.current||(l.current=Object.create(null),E()),r.apply(this,arguments)}}(c[t]);return e},[E,g]),P=!!l.current,I=a.useMemo(function(){return(0,n.Cl)((0,n.Cl)((0,n.Cl)({},y),w),{called:P})},[y,w,P]),x=a.useCallback(function(e){l.current=e?(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:e.fetchPolicy||C}):{fetchPolicy:C};var t,r,a,s,c,p,f,m,g,y=(0,i.l)(u.current,(0,n.Cl)({query:d.current},l.current)),E=(t=b,r=_,a=v,s=h,c=(0,n.Cl)((0,n.Cl)({},y),{skip:!1}),p=O,f=c.query||s,m=(0,o.Er)(a,f,c,!1)(r),g=r.reobserveAsConcast((0,o.t_)(r,a,c,m)),p(m),new Promise(function(e){var n;g.subscribe({next:function(e){n=e},error:function(){e((0,o.$X)(r.getCurrentResult(),t.previousData,r,a))},complete:function(){e((0,o.$X)(r.maskResult(n),t.previousData,r,a))}})})).then(function(e){return Object.assign(e,w)});return E.catch(function(){}),E},[v,h,w,C,_,b,O]),S=a.useRef(x);return(0,s.E)(function(){S.current=x}),[a.useCallback(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S.current.apply(S,e)},[]),I]}},53681:(e,t,r)=>{"use strict";r.d(t,{Io:()=>d,N5:()=>c,OJ:()=>l,VF:()=>p,vN:()=>u});var n=r(88088),a=r(23134),i=r(68339),o=r.n(i),s=r(60072);let c=(e,t,r="en-GB")=>{let a=new Date(e),i=new Date,c=new Date;c.setDate(i.getDate()+1);let l=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate();if(l(a,i))return(0,s.jsx)(n.E,{className:o().inline,size:"body-1",weight:"bold",as:"span",children:t("catalog.deliveryPromise.today").toString()});if(l(a,c))return(0,s.jsx)(n.E,{className:o().inline,size:"body-1",weight:"bold",as:"span",children:t("catalog.deliveryPromise.tomorrow").toString()});let u=new Intl.DateTimeFormat(r,{day:"numeric",month:"short"}).format(a);return(0,s.jsxs)(n.E,{size:"body-1",className:o().inline,as:"span",children:[t("catalog.deliveryPromise.on").toString(),"\xa0",(0,s.jsx)(n.E,{size:"body-1",weight:"bold",as:"span",children:u})]})},l=({deliveryPromises:e=[],isPickup:t=!1,locale:r,t:a,error:i=null})=>{if(i||!e||!r)return a?.("catalog.deliveryPromise.error")||null;let l=e?.length>3?3:e?.length,u=t?a("catalog.deliveryPromise.pickup").toString():a("catalog.deliveryPromise.get").toString(),d=a("catalog.deliveryPromise.and").toString();switch(l){case 1:return(0,s.jsx)("span",{"data-testid":"delivery-promise-label",children:(0,s.jsxs)(n.E,{size:"body-1",className:o().inline,as:"span",children:[u,"\xa0",(0,s.jsx)(n.E,{size:"body-1",weight:"bold",as:"span",children:e?.[0]?.quantity}),"\xa0",c(e?.[0]?.expectedAvailabilityDate,a,r)]})});case 2:return(0,s.jsx)("span",{"data-testid":"delivery-promise-label",children:(0,s.jsxs)(n.E,{size:"body-1",className:o().inline,as:"span",children:[u,"\xa0",(0,s.jsx)(n.E,{size:"body-1",weight:"bold",as:"span",children:e?.[0]?.quantity}),"\xa0",c(e?.[0]?.expectedAvailabilityDate,a,r),"\xa0",d,"\xa0",(0,s.jsx)(n.E,{size:"body-1",weight:"bold",as:"span",children:e?.[1]?.quantity}),"\xa0",c(e?.[1]?.expectedAvailabilityDate,a,r)]})});case 3:return(0,s.jsx)("span",{"data-testid":"delivery-promise-label",children:(0,s.jsxs)(n.E,{size:"body-1",className:o().inline,as:"span",children:[u,"\xa0",(0,s.jsx)(n.E,{size:"body-1",weight:"bold",as:"span",children:e?.[0]?.quantity}),"\xa0",c(e?.[0]?.expectedAvailabilityDate,a,r),",\xa0",(0,s.jsx)(n.E,{size:"body-1",weight:"bold",as:"span",children:e?.[1]?.quantity}),"\xa0",c(e?.[1]?.expectedAvailabilityDate,a,r),"\xa0",d,"\xa0",(0,s.jsx)(n.E,{size:"body-1",weight:"bold",as:"span",children:e?.[2]?.quantity}),"\xa0",c(e?.[2]?.expectedAvailabilityDate,a,r)]})});default:return null}},u=(e,t)=>t||!e?.length?null:e?.length===1?"check-solid":e?.length>1?"in-progress":void 0,d=function(e){return e.Deliveries="deliveries",e.Pickups="pickups",e}({}),p=({deliveryPromises:e=[],logisticMethod:t=a.gG.Delivery,facilityId:r,locale:n="en-GB",error:i=null})=>{if(i||!r||!e)return null;let o=e.slice(0,3).flatMap(e=>{let t=new Intl.DateTimeFormat(n,{dateStyle:"short"}).format(new Date(e?.expectedAvailabilityDate));return[e.quantity,t]});return`${t.replace("_","")}_${o.join("_")}_${r}`}},53779:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;
453r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n})},53926:(e,t,r)=>{"use strict";r.d(t,{D:()=>d});var n=r(39624),a=r(59100),i=r(88088),o=r(82726),s=r(43207),c=r(31438),l=r.n(c),u=r(60072);let d=({onReload:e})=>{let[t]=(0,s.B)();return(0,u.jsxs)("div",{"data-testid":"container",className:l().container,children:[(0,u.jsx)(n.k,{status:"error",variant:"strong",width:98}),(0,u.jsxs)("div",{className:l().errorMessage,children:[(0,u.jsx)(a.D,{as:"h3",size:"body-4",children:t("store.selectDrawer.listErrorTitle")}),(0,u.jsx)(i.E,{size:"body-3",color:"subtle",children:t("store.selectDrawer.listError")}),(0,u.jsx)(o.$,{size:"l",fullWidth:!0,onClick:()=>e?.(),children:t("common.reload")})]})]})}},54344:(e,t,r)=>{"use strict";r.d(t,{K7:()=>a,ZR:()=>o});var n=r(84167);let a=(0,n.Ay)`
454  fragment GreenOfferFields on GreenOffer {
455    carbonFootprint {
456      unit
457      value
458    }
459    greenRating
460  }
461`,i=(0,n.Ay)`
462  fragment IndicatorFields on Indicator {
463    quantity
464    unitOfMeasure
465    availabilityDate
466    orderBefore
467    inboundDeliveryDate
468    deliveryPromiseRange {
469      min
470      max
471    }
472  }
473`,o=(0,n.Ay)`
474  fragment StockFields on DeliveryIndicator {
475    currentTime
476    error
477    deliveryIndicator {
478      productsNotFound
479      deliveryIndicators {
480        productId
481        facilityId
482        pickupFacilityId
483        deliveryFacilityId
484        pickup {
485          ...IndicatorFields
486        }
487        delivery {
488          ...IndicatorFields
489        }
490        extendedDeliveryInformation {
491          quantity
492          unitOfMeasure
493          cdcFacilityIds
494          deliveryPromiseRange {
495            min
496            max
497          }
498          providerType
499        }
500        marketplaceDeliveryInformation {
501          offerId
502          quantity
503          unitOfMeasure
504          deliveryPromiseRange {
505            min
506            max
507          }
508        }
509      }
510    }
511  }
512  ${i}
513`},54555:e=>{e.exports=function(e){return this.__data__.has(e)}},54688:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}r.d(t,{A:()=>n})},55537:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});let n={content:{app:"content",base:"/",static:"/static",store:"/store",storeLocator:"/store-locator",stockLocator:e=>`/stock-locator?id=${e}`,outdatedBrowser:"/static/outdated-browser",brand:"/brand",configurator:"/configurator",newsroom:"/newsroom",hub:"/hub",selectStore:"/select-a-store",eventsAndTrainings:"/events-and-trainings",editDashboard:"/edit-dashboard",partner:e=>`/static/partner/${e}`,sitemapCategory:e=>`/sitemap/${e}`},catalog:{app:"catalog",base:"/catalog",brand:"/brand",brands:"/brands",categories:"/categories",category:"/category",categoryPage:e=>`/category/${e}`,compare:"/compare",loginRedirect:"/login-redirect",product:"/products",productPage:e=>`/products/${e}`,productInApp:"/instore/products",promotions:"/promotions",search:"/search",series:"/series",seriesDetailPage:(e,t)=>`/brand/${encodeURIComponent(e)}/series/${encodeURIComponent(t)}`,appSearch:"/app/search",cancelSearch:"/cancelSearch"},account:{app:"account",base:"/account",invoiceCreditNotes:"/invoice-credit-notes",users:"/users",deliveryAddresses:"/delivery-addresses",login:"/api/login",logout:"/api/logout",createAccount:"/create-account",creditInformation:"/credit-information",favoriteLists:"/favorite-lists",favoriteListPage:e=>`/favorite-lists/${e}`,favoriteListReorderPage:e=>`/favorite-lists/${e}/reorder`,mocks:{invoiceOnlinePayment:e=>`/mocks/invoice-online-payment/${e}`},tunnel:{invoicePaymentConfirmation:"/tunnel/invoice-payment-confirmation/"},transmittedCarts:"/transmitted-carts",orders:"/orders",orderId:e=>`/orders/${e}`,ordersCalendar:"/orders-calendar",productReturnsOverview:"/product-returns/overview",productReturnsDashboard:"/product-returns/dashboard",productReturns:e=>`/product-returns/${e}`,productReturnsCustomerInfo:e=>`/product-returns/${e}/customer-info`,productReturnsReviewSummary:e=>`/product-returns/${e}/review-summary`,productReturnsConfirmation:e=>`/product-returns/${e}/confirmation`,productReturnsWarrantyInfo:e=>`/product-returns/${e}/warranty-info`,projects:"/projects",quotes:"/quotes",blanketOrders:"/blanket-orders",alreadyPurchased:"/already-purchased",manageReferences:"/manage-references",toBeDelivered:"/to-be-delivered",deliveryNotes:"/delivery-notes",settings:{base:"/settings",pricePreferences:"/settings/price-preferences",salesRep:"/settings/sales-rep",communicationPreferences:"/settings/communication-preferences"},api:{resetPassword:"/account/api/reset-password",accessToken:"/api/access-token",logout:"/api/logout",login:"/account/api/login"},activeDirectory:{forgotPassword:"/active-directory/change-password",login:"/active-directory/login",resetPassword:"/active-directory/reset-password"},userActivation:"/user-activation",activationEmailSent:"/activation-email-sent",spaPreference:"/spa-preference",packagingReturns:"/packaging-returns",configurator:"/configurator/list",subscribers:"/subscribers",noAccount:"/no-account",documentDownload:"/document-download"},checkout:{app:"checkout",base:"/checkout",quote:e=>`/quote/${e}`,blanketOrder:e=>`/blanket-order/${e}`,quotePreview:e=>`/quote/${e}/preview`,cart:e=>e?`/cart/${e}`:"/",cartPreview:e=>`/cart/${e}/preview`,inStoreProceedToCounter:e=>`/in-store/${e}/proceed-to-counter`,inStoreCart:"/in-store",awaitingApprovalCarts:"/awaiting-approval-carts",customerQuote:{main:"/quote/customer-quote",preview:"/quote/customer-quote/preview"},tunnel:{logistics:e=>`/tunnel/${e}/logistics`,verification:e=>`/tunnel/${e}/verification`,confirmPayment:"/tunnel/confirm-payment",confirmation:e=>`/tunnel/confirmation/${e}`,transaction:e=>`/tunnel/transaction/${e}`},cartNotFound:"/cart-not-found"},associate:{app:"associate",base:"/associate",login:"/associate/login"},error:{500:"/error/500",404:"/error/404",400:"/error/400"}}},55876:(e,t,r)=>{var n=r(92725),a=r(15250),i=r(68010);e.exports=function(e){return n(e,i,a)}},56021:(e,t,r)=>{e.exports=r(13922)},56495:e=>{e.exports=function(){return[]}},56570:e=>{e.exports={bloc:"price-tooltip-bloc_bloc___rZpu",removePaddingBottom:"price-tooltip-bloc_removePaddingBottom__vXF29",blocLine:"price-tooltip-bloc_blocLine__mEAf6",priceValue:"price-tooltip-bloc_priceValue__JCx04",header:"price-tooltip-bloc_header__J_H0Z",chip:"price-tooltip-bloc_chip__uVhd9",chipPromotion:"price-tooltip-bloc_chipPromotion__yXk3P",unitDescriptor:"price-tooltip-bloc_unitDescriptor__QDt6f"}},56815:(e,t,r)=>{"use strict";r.d(t,{Au:()=>c,l1:()=>s});var n=r(60004),a=r(48628),i=r(60072);let o=(0,n.createContext)({isCreateCartDrawerOpen:!1,createCartProjectId:null,openCreateCartDrawer:()=>null,closeCreateCartDrawer:()=>null}),s=({children:e})=>{let{isOpen:t,openDrawer:r,closeDrawer:s}=(0,a.b)(),{0:c,1:l}
513=(0,n.useState)(null),u=(0,n.useCallback)(({projectId:e}={projectId:null})=>{l(e),r()},[r]),d=(0,n.useCallback)(()=>{l(null),s()},[s]),p=(0,n.useMemo)(()=>({isCreateCartDrawerOpen:t,createCartProjectId:c,openCreateCartDrawer:u,closeCreateCartDrawer:d}),[t,c,u,d]);return(0,i.jsx)(o.Provider,{value:p,children:e})},c=()=>(0,n.useContext)(o)},57027:(e,t,r)=>{"use strict";r.d(t,{d:()=>C});var n=r(12072),a=r(54688);r(60004);var i=r(35695),o=r(43207),s=r(82726),c=r(86263);let l=(e,t)=>{if("..."!==e)return t?t(e):"#"},u=(e,t,r,n)=>{"..."!==e&&e!==t&&e>=1&&e<=r&&n(e)},d=e=>{if(!e)return;let t=Array.from(e.getElementsByTagName("*")).find(p);t&&t?.focus()},p=e=>{if(e.tabIndex<0)return!1;switch(e.tagName){case"A":return!!e.href;case"INPUT":return"hidden"!==e.type&&!e.disabled;case"SELECT":case"TEXTAREA":case"BUTTON":return!e.disabled;default:return!1}};var h=r(42663),f=r.n(h),m=r(60072);let g=({currentPage:e,onPageChange:t,hrefByPageNum:r,numberOfPages:n,elementRef:a,variant:p})=>{let[h]=(0,o.B)();return 1===e?(0,m.jsx)(s.$,{className:(0,i.A)(f().button),disabled:!0,variant:p,icon:"chevron-left",title:h("common.pagination.previous"),"data-testid":"pagination-previous-page",rounded:!0}):(0,m.jsx)(c.w,{href:l(e-1,r),className:(0,i.A)(f().button),onClick:r=>{u(e-1,e,n,t),r.preventDefault(),d(a?.current)},variant:p,icon:"chevron-left",title:h("common.pagination.previous"),"data-testid":"pagination-previous-page",rounded:!0})},y=({currentPage:e,onPageChange:t,hrefByPageNum:r,numberOfPages:n,elementRef:a,variant:p})=>{let[h]=(0,o.B)();return e===n?(0,m.jsx)(s.$,{className:(0,i.A)(f().button),disabled:!0,variant:p,icon:"chevron-right",title:h("common.pagination.next"),"data-testid":"pagination-next-page",rounded:!0}):(0,m.jsx)(c.w,{href:l(e+1,r),className:(0,i.A)(f().button),onClick:r=>{u(e+1,e,n,t),r.preventDefault(),d(a?.current)},variant:p,icon:"chevron-right",title:h("common.pagination.next"),"data-testid":"pagination-next-page",rounded:!0})},v=({page:e,currentPage:t,onPageChange:r,hrefByPageNum:n,numberOfPages:a,elementRef:s,variant:p,shouldLastPageNotClickable:h=!1})=>{let[g]=(0,o.B)();if("..."===e)return(0,m.jsx)("span",{className:f().dots,"aria-hidden":!0,children:"..."});let y=e===a,v=a>5,b=t<a-3+1;return h&&y&&b&&v?(0,m.jsx)("span",{className:f().dots,"aria-label":g("common.pagination.page",{page:e}),"aria-disabled":"true",children:e}):(0,m.jsx)(c.w,{href:l(e,n),rounded:!0,variant:p,onClick:n=>{u(e,t,a,r),n.preventDefault(),d(s?.current)},className:(0,i.A)(f().button,{[f().selected]:e===t}),"aria-label":g("common.pagination.page",{page:e}),"aria-current":e===t?"page":void 0,children:e})},b=["className","currentPage","onPageChange","hrefByPageNum","numberOfPages","elementRef","variant","shouldLastPageNotClickable"];function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let C=e=>{let{className:t,currentPage:r=1,onPageChange:n,hrefByPageNum:s,numberOfPages:c,elementRef:l,variant:u="ghost",shouldLastPageNotClickable:d=!1}=e,p=(0,a.A)(e,b),[h]=(0,o.B)();if(!c||c<2)return null;let _=((e,t)=>{let r=Array(e).fill(0).map((e,t)=>t+1);return e<=5?r:t<=3?[...r.slice(0,3),"...",r[e-1]]:t>=e-3+1?[r[0],"...",...r.slice(e-5+2)]:[r[0],"...",t,"...",r[e-1]]})(c,r);return(0,m.jsx)("nav",O(O({className:(0,i.A)(t,f().listContainer),"aria-label":h("common.pagination.title"),"data-testid":"pagination"},p),{},{children:(0,m.jsxs)("ul",{className:f().list,children:[(0,m.jsx)("li",{children:(0,m.jsx)(g,{currentPage:r,numberOfPages:c,onPageChange:n,hrefByPageNum:s,elementRef:l,variant:u})}),_.map((e,t)=>(0,m.jsx)("li",{children:(0,m.jsx)(v,{page:e,currentPage:r,numberOfPages:c,onPageChange:n,hrefByPageNum:s,elementRef:l,variant:u,shouldLastPageNotClickable:d})},`${e}-${t}`)),(0,m.jsx)("li",{children:(0,m.jsx)(y,{currentPage:r,numberOfPages:c,onPageChange:n,hrefByPageNum:s,elementRef:l,variant:u})})]})}))}},57082:(e,t,r)=>{"use strict";r.d(t,{Ft:()=>u,IL:()=>d,f1:()=>p,sm:()=>l});var n=Object.create,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(e){throw r=[e],e}},u=(e,t)=>
513()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e,t)=>{let r={};for(var n in e)a(r,n,{get:e[n],enumerable:!0});return t||a(r,Symbol.toStringTag,{value:"Module"}),r},p=(e,t,r)=>(r=null==e?{}:n(s(e)),((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,l=o(t),u=0,d=l.length;u<d;u++)s=l[u],c.call(e,s)||s===r||a(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=i(t,s))||n.enumerable});return e})(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e))},57492:(e,t,r)=>{var n=r(7494),a=r(41018);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},57520:e=>{e.exports={userActionButton:"user-action-button_userActionButton__gDD08",noHoverEffect:"user-action-button_noHoverEffect__W74Pi",mobileUserIcon:"user-action-button_mobileUserIcon__wfrZX"}},57760:()=>{},57825:(e,t,r)=>{"use strict";r.d(t,{a$:()=>el,Jx:()=>ec});var n=r(12072),a=r(60004),i=r(48628),o=r(39687),s=r(10983),c=r(43207),l=r(16840),u=r(55537),d=r(42092),p=r(94835),h=r(2117),f=r(68915),m=r(67998),g=r(59100),y=r(72970),v=r(39956),b=r(24216),_=r.n(b),O=r(46828),C=r(38963),E=r(60072);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let I={name:void 0},x=({onStateChange:e,onSubmit:t,formRef:r,formId:n})=>{let[i]=(0,c.B)(),o=(()=>{let e,[t]=(0,c.B)();return O.Ik().shape({name:O.Yj().required(t("common.formErrors.required")).matches(C.Ve,(e=t("common.formErrors.letterNumberSpaceFormat"),t("common.formErrors.invalidWithFormat",{format:e})))})})(),{handleSubmit:s,control:l,reset:u,formState:d,clearErrors:p}=(0,v.mN)({defaultValues:I,resolver:(0,m.t)(o),mode:"onSubmit"}),{errors:h,isSubmitting:f}=d;(0,a.useEffect)(()=>{e?.(d)},[d,e]);let b=(0,a.useCallback)(()=>{u(),p()},[p,u]);return(0,E.jsxs)("form",{name:"createFavoriteListForm","data-testid":"create-favorite-list-form",id:n,className:_().createListForm,onSubmit:s(t),ref:r,onReset:b,noValidate:!0,children:[(0,E.jsx)(g.D,{as:"h3",size:"body-5",weight:"regular",className:_().formTitle,children:i("createNewList.title")}),(0,E.jsx)("div",{className:_().createListFormFields,children:(0,E.jsx)(v.xI,{control:l,name:"name",rules:{required:!0},render:({field:e})=>(0,E.jsx)(y.A,P(P({textFieldSize:"xl"},e),{},{"aria-required":!0,maxLength:33,label:i("createNewList.name"),name:"name",helperText:h.name&&{text:h.name?.message,status:"error"},disabled:f,"data-testid":"create-favorite-list-name"}))})})]})};var S=function(e){return e.PRODUCT_LIST_ALREADY_EXISTS="createNewList.productListAlreadyExists",e.USER_LISTS_IN_ACCOUNT_EXCEEDED="createNewList.productListLimitExceeded",e.DEFAULT="createNewList.updatedError",e}(S||{});let T=()=>{let[e]=(0,c.B)(),{sendCreateWishlistGtmTag:t}=(0,h.PB)(),{user:r}=(0,f.Z2)(),{closeCreateFavoriteListDrawer:n,handleOnFormStateChange:i,formId:o}=ec(),{sendToast:s}=(0,d.d)(),l=(0,a.useRef)(null),u=(0,a.useCallback)(()=>{n()},[n]),[m]=(0,p.yGx)({onCompleted:t=>{s({message:e("createNewList.updated",{name:t?.createFavoriteProductList?.name}),status:"success",closeLabel:e("toaster.accessibility.close")}),l?.current?.reset(),u()},onError:({graphQLErrors:t})=>{let r=S[t?.[0]?.extensions?.response?.body?.code];s({message:e(r??S.DEFAULT),status:"error",closeLabel:e("toaster.accessibility.close")}),r||u()},refetchQueries:["FavoriteProductLists","FavoriteListPage"]}),g=(0,a.useCallback)(e=>{m({variables:{accountId:r?.accountId,userId:r?.userId,email:r?.email,values:e}}),t()},[m,t,r?.accountId,r?.userId,r?.email]);return(0,E.jsx)(x,{formId:o,onStateChange:i,onSubmit:g,formRef:l})};var N=r(91683),A=r(82726);let j=()=>{let[e]=(0,c.B)(),{showFavoriteListsDrawer:t,formIsDirty:r,content:n,formId:a,cancelFavoriteListsDrawer:i,loading:o}=ec();return(0,E.jsx)(N._,{closeLabel:e("drawerPanel.closeDrawer"),actions:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(A.$,{size:"l",variant:"tertiary",onClick:i,children:e("common.cancel")}),(0,E.jsx)(A.$,{size:"l",type:"submit",form:a??void 0,disabled:!r||o,
513children:e("addToListDrawer.confirmButtonLabel")})]}),isOpen:t,onClose:i,id:"favorite-lists-drawer","data-testid":"favorite-lists-drawer",children:n})};var k=r(88088),D=r(1299),R=r(23134),L=r(7976),M=r(25561),F=r(10468),$=r(17846),B=r.n($),U=r(31811),V=r(67303);let q=()=>{let{0:e,1:t}=(0,a.useState)([]),r=(0,a.useCallback)(e=>{t(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[t]);return{selectedLists:e,setSelectedLists:t,handleFavoriteListUpdate:r,handleClearFavoriteList:()=>t([]),isProductInFavoriteList:t=>e.includes(t)}};var G=r(18408),z=r(96098),H=r(47179),W=r.n(H);function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let K=({favoriteProductLists:e})=>{let[t]=(0,c.B)(),{user:r,isLoggedIn:n}=(0,f.Z2)(),{cart:i}=(0,U.B_)(),{updateProductsInFavoriteLists:o,productsInFavoriteLists:s}=(0,V.BF)(),{sendToast:l}=(0,d.d)(),{productsInDrawer:u,formId:m,closeFavoriteListsDrawer:g,onSuccessCallback:y,handleOnFormStateChange:v,loading:b,setLoading:_}=ec(),{selectedLists:O,setSelectedLists:C,handleFavoriteListUpdate:w,isProductInFavoriteList:P}=q(),{sendRemoveFromWishlistGtmTag:I,sendAddToWishlistCatalogGtmTag:x,sendAddAllToWishlistCompletedGtmTag:S}=(0,h.PB)(),T=u?.[0]?.id,N=(0,a.useMemo)(()=>u.length>1?[]:Object.entries(s).reduce((e,[t,r])=>r.includes(T)?[...e,t]:e,[]),[s,T,u]),A=!B()(N,O),{refetch:j}=(0,p.O0q)({onCompleted:e=>{o(e.productsInFavoriteLists)},variables:{accountId:r?.accountId,userId:r?.userId,email:r?.email},notifyOnNetworkStatusChange:!0,skip:!n}),[k]=(0,p.AAr)({onCompleted:({updateProductsToMultipleFavoriteLists:e})=>{e?.successfullyAddedInProductLists?.length&&((e=>{let{successfullyAddedInProductLists:t,fullProductLists:r,productListsNotFound:n}=e,a=r?.length,i=t?.length,o=t?.length===1,s=n?.length;if(i)if(o)return[{message:t[0]?.name?G.A.t("addToListDrawer.message.addedToNamedList",{name:t[0].name}):G.A.t("addToListDrawer.message.addedToDefaultList")}];else return[{message:G.A.t("addToListDrawer.message.addedToLists")}];return a?r.map(({name:e})=>({message:e?G.A.t("addToListDrawer.message.maximumProductOnList",{name:e}):G.A.t("addToListDrawer.message.maximumProductOnDefaultList"),type:"error"})):s?[{message:G.A.t("addToListDrawer.message.globalFailure"),type:"error"}]:[]})(e).forEach(({message:e,type:r})=>{l({message:e,status:r||"success",closeLabel:t("common.close")})}),u.length>1?S({cart_id:i?.id}):x(T,i?.id)),e?.successfullyDeletedInProductLists?.length&&(l({message:t("productList.deleteAll.success"),status:"success",closeLabel:t("common.close")}),I(T)),y?.(O),g(),j()},onError:({graphQLErrors:e},{context:r})=>{r.hasAdditions&&l({message:(e=>{let{code:t}=(0,z.x_)(e)||{};return"PRODUCT_LISTS_LIMIT_REACHED"===t?G.A.t("common.favoritesUpdateLimitError"):G.A.t("addToListDrawer.message.globalFailure")})(e[0]),status:"error",closeLabel:t("common.close")}),r.hasDeletions&&l({message:t("productList.deleteAll.error"),status:"error",closeLabel:t("common.close")})}}),R=async()=>{let e={accountId:r.accountId,userId:r.userId,email:r.email};_(!0);let t=O.filter(e=>!N.includes(e)),n=N.filter(e=>!O.includes(e));(await k({variables:Y(Y({},e),{},{products:u?.map(({id:e,productTitle:t,productBrand:r,quantity:n,minQuantity:a})=>({productId:e,productTitle:t,brandName:r,quantity:n||a})),productListsToAddTo:t,productListsToDeleteFrom:n}),context:{hasAdditions:t.length,hasDeletions:n.length}})).errors&&C(N),_(!1),o((await j()).data.productsInFavoriteLists)};return(0,a.useEffect)(()=>{C(N)},[N,C]),(0,a.useEffect)(()=>{v({isDirty:A})},[A,v]),(0,E.jsx)("form",{name:"FavoriteListsDrawerForm","data-testid":"favorite-lists-drawer-form",id:m,onSubmit:e=>{e.preventDefault(),R()},children:(0,E.jsx)("div",{"data-testid":"favorite-lists",children:(e||[]).map(({name:e,id:r})=>(0,E.jsx)("div",{"data-testid":`favorite-list-element-${r}`,className:W().listItem,children:(0,E.jsx)(D.S,{"data-testid":"favorite-list-checkbox",color:"secondary",label:e||t("addToListDrawer.listElementFallbackLabel"),onChange:()=>w(r),checked:P(r),disabled:b})},`favorite-list-${r}`))})})};var J=r(21675),Z=r.n(J);function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
513t%2?X(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let et=()=>{let[e]=(0,c.B)(),{user:t,isLoggedIn:r}=(0,f.Z2)(),{showCreateFavoriteListDrawer:n,openCreateFavoriteListDrawer:i,productsInDrawer:o,showFavoriteListsDrawer:s}=ec(),{isFlagEnabled:l}=(0,L.h)(),u=l(F.JC),d=o?.map(({id:e,productImage:t,productTitle:r,unit:n})=>({productImage:t,productTitle:r,unit:n,id:e})),{data:h,refetch:m}=(0,p.gpC)({skip:!r,variables:ee({accountId:t?.accountId,userId:t?.userId,email:t?.email,getOnlyEditableLists:!u},u&&{owner:"ANY"})});(0,a.useEffect)(()=>{!n&&s&&m()},[n,s,m]);let y=o?.length===1,{favoriteProductLists:v}=h||{},b=v?.filter(e=>!1===e.isOwner&&(e.visibility===R.t1.Public||e.visibility===R.t1.VisibleForDescendants)&&e?.numberOfProducts&&e?.numberOfProducts>0)||[],_=u&&b?.length>0?v?.filter(e=>e?.isOwner):v;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(g.D,{size:"body-5",className:Z().title,"data-testid":"title",children:e("addToListDrawer.title")}),y&&(0,E.jsx)(M.mf,ee({variation:M.dl.ADD_TO_FAVORITE,className:Z().productCard},d[0])),b?.length>0&&u&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(k.E,{size:"body-3",weight:"bold",className:Z().subTitle,"data-testid":"title",children:e("addToListDrawer.publicListTitle")}),(0,E.jsx)("div",{"data-testid":"public-favorite-lists",children:b?.map(({name:t,id:r})=>(0,E.jsx)("div",{"data-testid":`public-favorite-list-element-${r}`,className:Z().listItem,children:(0,E.jsx)(D.S,{"data-testid":`public-favorite-list-checkbox-${r}`,color:"secondary",label:t||e("addToListDrawer.listElementFallbackLabel"),checked:u,disabled:u})},`public-favorite-list-${r}`))}),(0,E.jsx)(k.E,{size:"body-3",weight:"bold",className:Z().subTitle,"data-testid":"title",children:e("addToListDrawer.myListTitle")})]}),(0,E.jsx)(A.$,{"aria-haspopup":"true","aria-controls":"create-favorite-list-drawer","aria-expanded":n,className:Z().link,color:"secondary",variant:`standalone-${u?"regular":"bold"}`,size:u?"m":"l",onClick:i,icon:"plus","data-testid":"create-new-favorite-list",children:e("addToListDrawer.createButtonLabel")}),!!v?.length&&(0,E.jsx)(K,{favoriteProductLists:_})]})};function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ea=function(e){return e.FAVORITE_LISTS_DRAWER_FORM="favorite-lists-drawer-form",e.CREATE_LIST_DRAWER_FORM="create-list-drawer-form",e}({});var ei=function(e){return e.YES="accept",e.NO="refuse",e}(ei||{});let eo=(0,a.createContext)(null),es=({children:e})=>{let[t]=(0,c.B)(),r=(()=>{let[e]=(0,c.B)();return t=>t?e(`contentUnit.${t}`,`${t}`):`${e("contentUnit.default")}`})(),n=(0,s.useRouter)(),{0:d,1:p}=(0,a.useState)(null),{openDrawer:h,closeDrawer:f}=(0,i.b)(),{openDialogBox:m}=(0,o.L)(),{0:g,1:y}=(0,a.useState)(),{0:v,1:b}=(0,a.useState)(void 0),{handleClearFavoriteList:_}=q(),{0:O,1:C}=(0,a.useState)(!1),{0:w,1:P}=(0,a.useState)(!1),{0:I,1:x}=(0,a.useState)(null),{0:S,1:N}=(0,a.useState)(!1),{0:A,1:j}=(0,a.useState)(!1),k=(0,a.useCallback)(e=>{C(e.isDirty)},[C]),D=(0,a.useCallback)(()=>{p((0,E.jsx)(T,{})),x(ea.CREATE_LIST_DRAWER_FORM),j(!0),h()},[h,x,p,j]),R=(0,a.useCallback)(()=>{n.pathname.includes(u.b.account.favoriteLists)?(p(null),x(null),j(!1),N(!1),f()):(p((0,E.jsx)(et,{})),x(ea.FAVORITE_LISTS_DRAWER_FORM),j(!1),N(!0))},[j,p,x,N,n.pathname,f]),L=(0,a.useCallback)((e,t)=>{b(()=>e),t&&y(t.map(e=>en(en({},e),{},{unit:e.quantity&&e.unitOfMeasure?`${e.quantity} ${r(e.unitOfMeasure)}`:`${e.minQuantity} ${r(e.unitOfMeasure)}`}))),x(ea.FAVORITE_LISTS_DRAWER_FORM),p((0,E.jsx)(et,{})),N(!0),h()},[r,h,y,b,p,x]),M=(0,a.useCallback)(()=>{_(),y(void 0),p(null),x(null),N(!1),f()},[f,_,p,x,y]),F=(0,a.useCallback)(()=>{let e=()=>{I===ea.CREATE_LIST_DRAWER_FORM?(x(ea.FAVORITE_LISTS_DRAWER_FORM),p((0,E.jsx)(et,{})),j(!1),N(!0),h()):M()};O?m({children:(0,E.jsx)(l.A,{title:t("updateList.alertDialog.heading"),content:t("updateList.alertDialog.description"),cancelButton:{label:t("common.disagree"),actionValue:ei.NO},confirmButton:{label:t("common.agree"),actionValue:ei.YES},handleOnClose:t=>{t===ei.YES&&e()},"data-testid":"favorite-list-confirmation"}),closeLabel:t("common.close")}):e()},[M,O,m,t,h,I,p,x,j,N]),$=(0,a.useCallback)(()=>
513{if(O){let e=e=>{e===ei.YES&&R()};m({children:(0,E.jsx)(l.A,{title:t("updateList.alertDialog.heading"),content:t("updateList.alertDialog.description"),cancelButton:{label:t("common.disagree"),actionValue:ei.NO},confirmButton:{label:t("common.agree"),actionValue:ei.YES},handleOnClose:e,"data-testid":"favorite-list-confirmation"}),closeLabel:t("common.close"),onClose:()=>e})}else R()},[R,O,m,t]),B=(0,a.useMemo)(()=>({productsInDrawer:g,onSuccessCallback:v,content:d,formId:I,formIsDirty:O,closeDrawer:f,handleOnFormStateChange:k,cancelFavoriteListsDrawer:F,cancelCreateFavoriteListDrawer:$,showFavoriteListsDrawer:S,openFavoriteListsDrawer:L,closeFavoriteListsDrawer:M,showCreateFavoriteListDrawer:A,openCreateFavoriteListDrawer:D,closeCreateFavoriteListDrawer:R,loading:w,setLoading:P}),[g,v,d,I,O,S,A,f,k,F,L,M,D,R,$,w,P]);return(0,E.jsx)(eo.Provider,{value:B,children:e})},ec=()=>{let e=(0,a.useContext)(eo);if(!e)throw Error("You need to wrap your component with <FavoriteListsDrawerProvider>");return e},el=({children:e})=>(0,E.jsxs)(es,{children:[(0,E.jsx)(j,{}),e]})},58065:(e,t,r)=>{"use strict";r.d(t,{r:()=>o}),r(60004);var n=r(80109),a=r(60072);let i=({tree:e,richTextNodeRenderers:t,options:r,className:n,computeCmsLink:o})=>{switch(e._type){case"Element":case"EmptyElement":return(({tree:e,richTextNodeRenderers:t,options:r,className:n,computeCmsLink:o})=>{let s=t[e.name],c=e.children?.map((e,s)=>(0,a.jsx)(i,{tree:e,richTextNodeRenderers:t,options:r,className:n,computeCmsLink:o},s));return s?(0,a.jsx)(s,{tree:e,options:r,className:n,computeCmsLink:o,children:c}):c})({tree:e,richTextNodeRenderers:t,options:r,className:n,computeCmsLink:o});case"Characters":return e.data;default:console.warn("Unknown rich text type")}return null},o=({tree:e,richTextNodeRenderers:t=n.mg,options:r,className:o,allowOnlyOneParagraph:s=!1,computeCmsLink:c})=>{let{children:l}=e||{};return l&&0!==l.length?s?(0,a.jsx)(i,{tree:l[0],richTextNodeRenderers:t,options:r,className:o,computeCmsLink:c}):(0,a.jsx)(a.Fragment,{children:l.map((e,n)=>(0,a.jsx)(i,{tree:e,richTextNodeRenderers:t,options:r,className:o,computeCmsLink:c},n))}):null}},58076:e=>{e.exports={active:"action-button_active__SClMl",containerIcon:"action-button_containerIcon___lAh4",headerActionButton:"action-button_headerActionButton__dcZJB",containerText:"action-button_containerText__a6rOD"}},58166:e=>{e.exports={iconContainer:"store-locator-action-button_iconContainer__MG_RZ",status:"store-locator-action-button_status__aLqR_"}},58311:(e,t,r)=>{e=r.nmd(e);var n=r(88734),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},58539:(e,t,r)=>{"use strict";r.d(t,{N:()=>s,j:()=>o});var n=r(60004),a=r(60072);let i=(0,n.createContext)(null),o=({config:e,children:t})=>(0,a.jsx)(i.Provider,{value:e,children:t}),s=()=>{let e=(0,n.useContext)(i);if(!e)throw Error("You need to wrap your component with <MobileAppProvider>");return e}},58590:(e,t,r)=>{"use strict";r.d(t,{UU:()=>x,ph:()=>I,wc:()=>E});var n=r(12072),a=r(54688),i=r(60004),o=r(10983),s=r(62175),c=r.n(s),l=r(2117),u=r(85582),d=r(26074),p=r(68915),h=r(7976),f=r(31811),m=r(87335),g=r(60072);let y=["user"],v=["user"],b=["user","connectorType","connectorSupplier"],_=["isLoggedIn"];function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let E=function(e){return e.SEE_ALL_ARTICLES_CONTENT_HUB="see_all_articles_hub",e.READ_ARTICLE_SUBHUB="read_article_subhub",e.READ_ARTICLE_HUB="read_article_hub",e}({});class w extends l.Qq{sendViewBannerGtmTag=(e,t)=>
513{let{user:r}=e,n=(0,a.A)(e,y);(0,l.I4)({dataLayer:C(C({event:u.cP.VIEW_BANNER,event_category:t||u.ms.BROWSE_CATALOG},n),{},{user:C({opco_id:this._basicCommonData.opco_id,branch_name:this._withBranchCommonData.branch},r)})})};sendSelectBannerGtmTag=(e,t)=>{let{user:r}=e,n=(0,a.A)(e,v);(0,l.I4)({dataLayer:C(C({event:u.cP.SELECT_BANNER,event_category:t||u.ms.BROWSE_CATALOG},n),{},{user:C({opco_id:this._basicCommonData.opco_id,branch_name:this._withBranchCommonData.branch},r)})})};_getFormattedConnectorType=(e,t)=>e&&t?(0,d.Fy)(e,t):void 0;sendSelectConfiguratorGtmTag=(e,t)=>{let{user:r,connectorType:n,connectorSupplier:i}=e,o=(0,a.A)(e,b),s=this._getFormattedConnectorType(n,i);(0,l.I4)({dataLayer:C(C(C({event:"select_configurator",event_category:t||u.ms.CONFIGURATOR},o),s&&{event_related_type:s}),{},{user:C({opco_id:this._basicCommonData.opco_id,branch_name:this._withBranchCommonData.branch},r)})})};sendSelectContentGtmTag=e=>this._sendEventWithCurrency("select_content","services",{content_type:e});sendConfiguratorClickGtmTag=({connectorType:e,connectorSupplier:t})=>{let r=this._getFormattedConnectorType(e,t),{isLoggedIn:n,user:a,associateUser:i}=this._authContext||{};this._sendEvent("select_content",u.ms.CONFIGURATOR,C(C({},r&&{event_related_type:r}),{},{page:{page_type_1:u.g$.OTHER_PAGES,page_type_2:u.Cm.CONFIGURATOR,page_location:window.location.href,page_title:"undefined"!=typeof document?document.title:"",page_referral:"undefined"!=typeof document?document.referrer:""},user:C({login:n?u.vN.YES:u.vN.NO},n&&{id:a?.emailHash||u.vN.NONE,user_type:i?.userId?u.Vg.ASSOCIATE:u.Vg.CUSTOMER,account_id:a?.accountId||u.vN.NONE,branch_name:this._withBranchCommonData.branch})}))};sendExportConfiguratorGtmTag=({brand:e,items:t,connectorType:r,connectorSupplier:n})=>{let{store:a}=this._authContext||{},i=r&&n?(0,d.Fy)(r,n):void 0;this._sendEvent(u.cP.EXPORT,u.ms.CONFIGURATOR,C(C({user_type:u.Vg.CUSTOMER,branch_name:this._withBranchCommonData.branch,branch_id:a?.facilityId},i&&{event_related_type:i}),{},{ecommerce:{currency:this._authContext?.user?.currency||u.vN.NONE,items:t.map(t=>C({cart_source:u.oe.CONFIGURATOR,item_brand:e,item_id:t.gtin?t.gtin:t.reference,quantity:t.quantity},i&&{connector_type:i}))}}))};sendSavingCustomizationDashboardGtmTag=({activeWidgets:e,inactiveWidgets:t})=>this._sendEvent("save_dashboard","dashboard",{widget:{selected:e,deselected:t}});sendSellerPageViewGtmTag=e=>this.sendPageViewGtmTag({page_type_1:u.g$.SELLER,page_type_2:e});sendViewOrSelectProductGtmTag=(e,{product:t,priceData:r,deliveryIndicator:n,promotion_id:a,promotion_name:i,view_type:o,quantity:s=1})=>this._sendEvent(e,"",C({},this._getProductEcommerceData({products:[t],priceData:r,deliveryIndicator:n,itemBuyBox:!0,promotion_id:a,promotion_name:i,view_type:o,quantity:s})));sendViewOrSelectPromoBannerGtmTag=(e,t,r)=>{t&&this.sendViewOrSelectProductGtmTag(e,{promotion_id:r?.promotionId||"",promotion_name:r?.promotionName||"",view_type:r?.viewtype||""})};sendViewOrSelectRecommendedListGtmTag=(e,t,r)=>this._sendEvent(e,"",{list_name:t,ecommerce:{items:r.map(e=>({item_name:e.identifier.productTitle,item_id:e.productId}))}});sendOpenInAppGtmTag=(e,t)=>this._sendEventWithOpcoAndLanguage(e,u.ms.OPEN_IN_APP,t);sendSeeOrReadArticleHubGtmTag=(e,t)=>{this._sendEvent("click_cta","browse_content",{cta_type:e,clicked:t})};sendFilterAppliedSubHubGtmTag=(e,t)=>{this._sendEvent("apply_filter","browse_content",{filter:{amount:e,category_name:t}})};sendClickArticleKeywordsGtmTag=(e,t)=>this._sendEvent(u.cP.CLICK_CTA,u.ms.READ_CONTENT,{CTA_type:`explore_${e}`,clicked_link:`${t}`})}let P=(0,i.createContext)(new w({opco_id:"default",authContext:p.it})),I=({children:e})=>{let{opco_id:t,gtm_id:r,gtm_id_punchout:n,gtm_auth:s,gtm_auth_punchout:l,gtm_preview:u,gtm_preview_punchout:d}=(0,h.rD)(),y=(0,p.Z2)(),{cart:v}=(0,f.B_)(),{pathname:b,locale:O,query:E,replace:I}=(0,o.useRouter)(),x=(0,i.useMemo)(()=>new w({opco_id:t,authContext:y,cart:v,locale:O}),[]);return(0,i.useEffect)(()=>{x.init({opco_id:t,authContext:y,cart:v,locale:O})},[x,t,y,v,O]),(0,i.useEffect)(()=>{if("undefined"!=typeof document&&r&&n&&!(0,m.$)("gtm")){let e=y.user?.isPunchoutUser?C(C({gtmId:n},l&&{auth:l}),d&&{preview:d}):C(C({gtmId:r},s&&{auth:s}),u&&{preview:u});c().initialize(e);let t=E||{},{isLoggedIn:i}=t,o=(0,a.A)(t,_);i?(x.sendLoginGtmTag(),I({pathname:b,query:o},void 0,{shallow:!0})):x.sendLoginFailGtmTag()}},[r,s,u,n,l,d]),(0,g.jsx)(P.Provider,{value:x,children:e})},x=()=>(0,i.useContext)(P)},58948:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};
513Object.defineProperty(t,"__esModule",{value:!0}),t.checkCookies=t.hasCookie=t.removeCookies=t.deleteCookie=t.setCookies=t.setCookie=t.getCookie=t.getCookies=void 0;var i=r(51742),o=function(){return"undefined"!=typeof window},s=function(e){void 0===e&&(e="");try{var t=JSON.stringify(e);return/^[\{\[]/.test(t)?t:e}catch(t){return e}};t.getCookies=function(e){if(e&&(t=e.req),!o())return t&&t.cookies?t.cookies:t&&t.headers&&t.headers.cookie?(0,i.parse)(t.headers.cookie):{};for(var t,r={},n=document.cookie?document.cookie.split("; "):[],a=0,s=n.length;a<s;a++){var c=n[a].split("="),l=c.slice(1).join("=");r[c[0]]=l}return r},t.getCookie=function(e,r){var n,a=(0,t.getCookies)(r)[e];if(void 0!==a){return"true"===(n=a?a.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent):a)||"false"!==n&&("undefined"!==n?"null"===n?null:n:void 0)}},t.setCookie=function(e,t,r){if(r){var c,l,u,d=r.req,p=r.res,h=a(r,["req","res"]);l=d,u=p,c=h}var f=(0,i.serialize)(e,s(t),n({path:"/"},c));if(o())document.cookie=f;else if(u&&l){var m=u.getHeader("Set-Cookie");if(Array.isArray(m)||(m=m?[String(m)]:[]),u.setHeader("Set-Cookie",m.concat(f)),l&&l.cookies){var g=l.cookies;""===t?delete g[e]:g[e]=s(t)}if(l&&l.headers&&l.headers.cookie){var g=(0,i.parse)(l.headers.cookie);""===t?delete g[e]:g[e]=s(t),l.headers.cookie=Object.entries(g).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.setCookies=function(e,r,n){return console.warn("[WARN]: setCookies was deprecated. It will be deleted in the new version. Use setCookie instead."),(0,t.setCookie)(e,r,n)},t.deleteCookie=function(e,r){return(0,t.setCookie)(e,"",n(n({},r),{maxAge:-1}))},t.removeCookies=function(e,r){return console.warn("[WARN]: removeCookies was deprecated. It will be deleted in the new version. Use deleteCookie instead."),(0,t.deleteCookie)(e,r)},t.hasCookie=function(e,r){return!!e&&(0,t.getCookies)(r).hasOwnProperty(e)},t.checkCookies=function(e,r){return console.warn("[WARN]: checkCookies was deprecated. It will be deleted in the new version. Use hasCookie instead."),(0,t.hasCookie)(e,r)}},59100:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({as:e="h2",children:t,className:r="",color:i="default",size:o="body-2",weight:s="bold",...c})=>(0,a.jsx)(e,{className:(0,n.$)(`watts-typography--${i}`,`watts-${o}`,`watts-${s}`,r),...c,children:t});i.displayName="Heading"},59703:(e,t,r)=>{var n=r(6888);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},60010:(e,t,r)=>{"use strict";r.d(t,{C6:()=>a,Cl:()=>i,Tt:()=>o,YH:()=>c,fX:()=>l,sH:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}c((n=n.apply(e,t||[])).next())})}function c(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var l=[s,c];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(r=1,n&&(a=2&l[0]?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}Object.create;function l(e,t,r){if(r||2==arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},60116:(e,t,r)=>{"use strict";r.d(t,{E9:()=>u,Ng:()=>p,Ny:()=>l,Vi:()=>d});var n=r(12072),a=r(18408),i=r(94835),o=r(23134),s=r(22951);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let l=({productIds:e,user:t,spaIds:r,defaultLogisticMethod:a,projectId:l,includeSpas:p,productViewPage:h,cart:f,isCartLoading:m,guestUser:g,isLoggedIn:y})=>{let v=h===s.WF.CART,b=v&&!m&&f?.items?.every(e=>e.prices?.itemListPrice!=null),{data:_,error:O,loading:C}=(0,i.fsT)({variables:{productId:e?.join(","),accountId:t?.accountId??g?.accountId,spaIds:r||null,projectId:l,defaultLogisticMethod:a,includeAllSpas:p},context:{standalone:!0},skip:v&&(m||b)||!((y||g)&&e?.length)}),E=_?.getPriceById?.productPrices||[],w=_?.getPriceById?.productPricesNotFound||[];return v?{formattedPrice:f?.items.map(({id:e,productId:t,prices:r,itemType:a})=>{let{itemPrice:i,netPrice:l,netPricePercentage:p,displayListPrice:h,taxes:m,promotionalNetPercentage:g,promotionalNetPrice:y,promotionDetail
513s:v,context:b}=r,_=d(e,f),{variant:O,label:C,showBanner:w,description:P}=u(_),I=v?.campaignId,x=!!v,S=E.find(e=>e.productId===t),T=S?.totalListPrice??S?.listPrice,N=r.itemListPrice||!T?.amount?null:{amount:T.amount,scale:T.scale,currency:T.currency},A=h?.amount?{amount:h.amount,scale:h.scale,currency:h.currency}:null;return{productId:t,lineItemId:e,bannerData:{showBanner:w,variant:O,label:C,description:P},priceBlock:{bestPrice:{context:{id:b?.id,title:b?.title,type:x?s.JH.Promotion:b?.type,promotionDetails:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({promotionalNetPercentage:g},x&&{strikeThroughNetPrice:{amount:l.amount,currency:l.currency,scale:l.scale}})},netPricePercentage:p,netPrice:{amount:y?.amount||l.amount,currency:y?.currency||l.currency,scale:y?.scale||l.scale},listPrice:A||N||{},totalListPrice:N||{}},listPrice:A||N||{},totalListPrice:N||{},netPrice:{amount:l.amount,scale:l.scale,currency:l.currency},itemPrice:i},quantityCounterCta:{campaignId:I,hasPrice:a!==o.SP.OfflineProduct,bestPriceContextId:_.context?.id},taxes:m,marketplaceData:{isMarketPlaceProduct:b?.type===o.vZ.Marketplace,offerId:b?.id}}}),isLoading:m}:{formattedPrice:E.map(e=>{let{productId:t,bestPrice:r,listPrice:n,netPrice:a,displayListPrice:i,displayNetPrice:o,netPricePercentage:c,taxes:l}=e,{variant:d,label:p,showBanner:h,description:f}=u(r),m=r?.context?.type===s.JH.Promotion?r?.context?.id:void 0,g=r?.context?.id;return{productId:t,bannerData:{showBanner:h,variant:d,label:p,description:f},priceBlock:{bestPrice:r,listPrice:n,displayListPrice:i,totalListPrice:e?.totalListPrice,netPrice:a,displayNetPrice:o,totalNetPrice:e?.totalNetPrice,netPricePercentage:c},marketplaceData:{isMarketPlaceProduct:r?.context?.type===s.JH.MarketPlace,offerId:r?.context?.id},quantityCounterCta:{hasPrice:!w?.includes(t),campaignId:m,bestPriceContextId:g,gtmInfoAddToCart:e},priceSelectionCta:{error:O,pricePreference:_?.getPriceById?.pricePreference,productPrices:E,productPricesNotFound:w},taxes:l}}),error:O,pricesNotFound:w,isLoading:C,prices:_?.getPriceById}},u=e=>{switch(e?.context?.type){case s.JH.Promotion:return{variant:"promotion",label:a.A.t("catalog.priceBanner.promotion"),description:e.context.title,showBanner:!0};case s.JH.SpecialPriceAgreement:return{variant:"spa",label:a.A.t("catalog.priceBanner.priceAgreement"),description:e.context.title,showBanner:!0};case s.JH.Standard:return{variant:"spa",label:a.A.t("catalog.priceBanner.priceAgreement"),description:e.context.title,showBanner:!!e.context.title};case s.JH.Project:return{variant:"project",label:a.A.t("catalog.priceBanner.priceAgreement"),description:e.context.title,showBanner:!0};default:return{showBanner:!1}}},d=(e,t)=>{let r=t.items.find(({id:t})=>t===e)?.prices,n=r.context?.type===o.vZ.SpecialPriceAgreement,a=r.promotionDetails,i=r.context?.type===o.vZ.Project;return n?{context:{type:s.JH.SpecialPriceAgreement,title:r.context.title}}:a?{context:{type:s.JH.Promotion,title:a.title}}:i?{context:{type:s.JH.Project,title:r.context.title}}:{context:null}},p=(e,t,r)=>t.productViewPage===s.WF.CART?u(d(r,t.cart)):t.prices.formattedPrice.find(({productId:t})=>e===t)?.bannerData||{showBanner:!1}},60331:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(5744),a=r(7037),i=r(16178);function o(e,t){let r=(0,i.a)(e,t?.in),o=r.getFullYear(),s=(0,n.w)(r,0);s.setFullYear(o+1,0,4),s.setHours(0,0,0,0);let c=(0,a.b)(s),l=(0,n.w)(r,0);l.setFullYear(o,0,4),l.setHours(0,0,0,0);let u=(0,a.b)(l);return r.getTime()>=c.getTime()?o+1:r.getTime()>=u.getTime()?o:o-1}},60911:(e,t,r)=>{"use strict";r.d(t,{Y:()=>u});var n=r(60004),a=r(32006),i=r(10983),o=r(7976),s=r(52726),c=r(44705);let l="oneTrustLocale",u=(e={})=>{let{locale:t,asPath:r,basePath:u}=(0,i.useRouter)(),d=(0,a.m)(),{locales_list:p,locales_list_one_trust:h}=(0,o.rD)();return(0,n.useEffect)(()=>{h&&p&&t&&((e,t,r)=>{let n=t[e.findIndex(e=>e.toLowerCase()===r?.toLowerCase())];n?(0,c.TV)(l,n):(0,c.o7)(l)})(p.split(","),h.split(","),t)},[]),[t,async t=>{(0,c.TV)("preferredLanguage",t,{sameSite:"lax"});let n=e[t]||r;await (0,s.A)(n,u?.substring(1),t),d.reFetchObservableQueries()}]}},60956:(e,t,r)=>{"use strict";r.d(t,{K:()=>C});
513var n=r(7470),a=r(88088),i=r(12028),o=r(35695),s=r(10983),c=r(43207),l=r(68915),u=r(12072);r(60004);var d=r(60072);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,u.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let f=(e,t,r)=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(a.E,{as:"span",weight:"bold",size:"body-2",children:[r(e)," ",r(`catalog.deliveryPromise.${t.isToday?"today":t.isTomorrow?"tomorrow":"on"}`)]})," ",(0,d.jsx)(a.E,{as:"span",size:"body-2",children:t.isToday||t.isTomorrow?`${r("catalog.deliveryPromise.forOrderbefore")} ${t.formattedHour}`:t.formattedDate})]}),m=e=>!!(e&&e.expectedAvailabilityDate&&(e.quantity??0)>0),g=(e,t)=>e?e.isToday?t("catalog.deliveryPromise.today"):e.isTomorrow?t("catalog.deliveryPromise.tomorrow"):e.formattedDate||"":"",y=(e,t,r,n)=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(a.E,{as:"span",weight:"bold",size:"body-2",children:[r(e)," ",t[0]?.quantity," ",g(v(t[0]?.expectedAvailabilityDate,n),r)]}),t.length>=2&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsxs)(a.E,{as:"span",size:"body-2",children:[r("catalog.deliveryPromise.and")," "]}),(0,d.jsxs)(a.E,{as:"span",weight:"bold",size:"body-2",children:[t[1]?.quantity," ",r("catalog.deliveryPromise.on")," ",g(v(t[1]?.expectedAvailabilityDate,n),r)]})]}),3===t.length&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(a.E,{as:"span",size:"body-2",children:[r("catalog.deliveryPromise.and")," "]}),(0,d.jsxs)(a.E,{as:"span",weight:"bold",size:"body-2",children:[t[2]?.quantity," ",r("catalog.deliveryPromise.on")," ",g(v(t[2]?.expectedAvailabilityDate,n),r)]})]})]}),v=(e,t="en-GB")=>{if(!e)return{formattedHour:"",formattedDate:""};let r=(e=>{let t=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/);if(!t)return new Date(e);let[,r,n,a,i,o,s]=t;return new Date(+r,n-1,+a,+i,+o,+s)})(e),n=new Date,a=new Date(n);a.setDate(n.getDate()+1);let i=new Date(r.getFullYear(),r.getMonth(),r.getDate()),o=new Date(n.getFullYear(),n.getMonth(),n.getDate()),s=new Date(a.getFullYear(),a.getMonth(),a.getDate()),c=r.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit"}),l=new Intl.DateTimeFormat(t,{day:"numeric",month:"short"}).format(r).replace(/\.+$/,"").toLowerCase();return i.getTime()===o.getTime()?{isToday:!0,formattedHour:c,formattedDate:l}:i.getTime()===s.getTime()?{isTomorrow:!0,formattedHour:c,formattedDate:l}:{formattedHour:c,formattedDate:l}},b=e=>e?1===e?"check-solid":e>1?"in-progress":void 0:"";var _=r(99914),O=r.n(_);let C=({loading:e=!1,deliveryPromiseData:t=null})=>{let[r]=(0,c.B)(),{locale:u}=(0,s.useRouter)(),{user:p}=(0,l.Z2)();if(e)return(0,d.jsx)(n.O,{text:"","data-testid":"delivery-promise-skeleton"});let g="",_="",C={};if(null!=t){let{deliveries:e,pickups:n}=t||{},a=e&&e?.length>3?3:e?.length,i=n&&n?.length>3?3:n?.length;g=b(a),_=b(i),C=(({t:e,deliveries:t,pickups:r,lengthDeliveries:n,lengthPickups:a,locale:i,user:o})=>{let s=Array.isArray(t)&&t.some(m),c=Array.isArray(r)&&r.some(m);if("number"==typeof n&&(n<0||n>3)||!s&&!c)return null;let l=(t,r,n)=>t>1?(({t:e,deliveries:t=[],pickups:r=[],locale:n,user:a})=>{let i=t.filter(m),o=r.filter(m),s={};return i.length>0&&(s.delivery={content:y("catalog.deliveryPromise.delivery",i,e,n)}),a&&o.length>0&&(s.pickup={content:y("catalog.deliveryPromise.pickup",o,e,n)}),Object.keys(s).length>0?s:null})({t:e,deliveries:r,pickups:n,locale:i,user:o}):(({t:e,deliveries:t=[],pickups:r=[],locale:n,user:a})=>{let i=Array.isArray(t)&&m(t[0]),o=Array.isArray(r)&&m(r[0]),s={};return i&&(s.delivery={content:f("catalog.deliveryPromise.delivery",v(t[0]?.expectedAvailabilityDate,n),e)}),a&&o&&(s.pickup={content:f("catalog.deliveryPromise.pickup",v(r[0]?.expectedAvailabilityDate,n),e)}),Object.keys(s).length>0?s:null})({t:e,deliveries:r,pickups:n,locale:i,user:o}),u=n??0,d=s&&u>0?l(u,t??[],[]):null,p=c?l(a??1,[],r??[]):null,g=h(h({},d??{}),p??{});return Object.keys(g).length>
5130?g:null})({t:r,deliveries:e,pickups:n,lengthDeliveries:a,lengthPickups:i,locale:u,user:p})}return C&&0!==Object.keys(C).length?(0,d.jsxs)("div",{className:O().deliveryPromisesContainer,"data-testid":"delivery-promise",children:[C?.delivery&&(0,d.jsxs)(a.E,{as:"p",className:O().rowText,"data-testid":"delivery-promise-info-text",children:[(0,d.jsx)(i.I,{size:"s",icon:g,className:(0,o.A)(O().icon,g&&O()[g])}),(0,d.jsx)(a.E,{size:"body-2",className:O().label,as:"span",children:C?.delivery.content})]}),C?.pickup&&(0,d.jsxs)(a.E,{as:"p",className:O().rowText,"data-testid":"delivery-promise-info-text",children:[(0,d.jsx)(i.I,{size:"s",icon:_,className:(0,o.A)(O().icon,_&&O()[_])}),(0,d.jsx)(a.E,{size:"body-2",className:O().label,as:"span",children:C?.pickup.content})]}),(0,d.jsxs)(a.E,{size:"body-2",as:"p",className:O().rowText,"data-testid":"delivery-promise-info-text",children:[(0,d.jsx)(i.I,{size:"s",icon:"info-solid",className:(0,o.A)(O().icon,O().infoIcon)}),(0,d.jsx)(a.E,{size:"body-1",as:"span",children:r("catalog.deliveryPromise.popoverInfoText")})]})]}):null}},61331:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});let n=(e,t)=>{let r=e?.attributes?.find(e=>e.name===t);return r?.value}},61347:e=>{function t(e,t){var r=e.length,n=Array(r),a={},i=r,o=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var a=e[r];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}(t),s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)a[i]||function e(t,i,c){if(c.has(t)){var l;try{l=", node was:"+JSON.stringify(t)}catch(e){l=""}throw Error("Cyclic dependency"+l)}if(!s.has(t))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!a[i]){a[i]=!0;var u=o.get(t)||new Set;if(i=(u=Array.from(u)).length){c.add(t);do{var d=u[--i];e(d,s.get(d),c)}while(i);c.delete(t)}n[--r]=t}}(e[i],i,new Set);return n}e.exports=function(e){return t(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var a=e[r];t.add(a[0]),t.add(a[1])}return Array.from(t)}(e),e)},e.exports.array=t},61400:e=>{e.exports={dialogWrapper:"dialog-box_dialogWrapper__ao3Ri",actionArea:"dialog-box_actionArea__EjC3t"}},61627:()=>{},62033:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=r(60004),a=r(45536),i=r(17480),o=r(60072);let s=(0,n.memo)(({itemId:e,productId:t,maxQuantity:r,setQuantity:n,className:s,productIndex:c})=>{let{addToCart:l,isProductInCart:u,isCounterDisabled:d,isAddToCartDisabled:p,isCartLinkedToCurrentProject:h,quantitySteps:f,minQuantity:m,quantity:g,handleQuantityUpdate:y,hideCta:v,formattedTotalPrice:b,plpViewMode:_,product:O,priceData:C,stocks:E}=(0,i.Qy)(t,e,c);return(0,o.jsx)(a.w,{isAddToCartDisabled:p,productId:t,maxQuantity:r,className:s,isAddedToCart:u,isCounterDisabled:d,isCartLinkedToCurrentProject:h,handleAddToCart:l,quantityStep:f,minQuantity:m,quantity:g,setQuantity:n,handleQuantityUpdate:y,hideCta:v,itemId:e,formattedTotalPrice:b,plpViewMode:_,product:O,priceData:C,stocks:E})})},62059:(e,t,r)=>{"use strict";r.d(t,{R:()=>l}),r(60004);var n=r(88088),a=r(35695),i=r(43207),o=r(6745),s=r.n(o),c=r(60072);let l=({features:e})=>{let[t]=(0,i.B)();return e?.length?(0,c.jsx)("ul",{className:s().featuresList,children:e.map(e=>(0,c.jsx)("li",{className:s().featureItem,"data-testid":"specs-product",children:(0,c.jsxs)(n.E,{size:"body-2",color:"subtle",children:[e.name?`${e.name}: `:"",(0,c.jsx)("span",{className:(0,a.A)({[s().carbonFootprintValue]:e.name===t("catalog.prodSpecifications.carbonFootprint")}),children:e.value})]})},`${e.name}-${e.unit}`))}):null}},62062:(e,t,r)=>{var n=r(4051),a=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!a&&a in e}},62175:(e,t,r)=>{"use strict";e.exports=function(e){return e&&e.__esModule?e:{default:e}}(r(80174)).default},62719:(e,t,r)=>{"use strict";r.d(t,{Dh:()=>a,I2:()=>s,NH:()=>o,gT:()=>i,hi:()=>n});let n=404,a=428,i=504,o=408,s=e=>{if(e?.graphQLErrors?.length){let[t]=e.graphQLErrors,r=t?.extensions?.response;return{status:r?.status??500,code:r?.body?.code,message:r?.body?.message}}return{status:500}}},62740:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(53779),a=r(85587),i=r(12028),o=(0,a.h)(),s=({className:e,size:t="m",...r})=>(0,o.jsx)(i.I,{className:(0,n.$)("watts-spinner",`watts-spinner--${t}`,e),icon:"loading",...r});s.displayName="Spinner"},62854:(e,t,r)=>{"use strict";function n(e,t){let r=e.includes("?")?"&":"?";return e+r+t}r.d(t,{K:()=>n})},63006:(e,t,r)=>{"use strict";var n;function a(e){return!!e&&e<7}r.d(t,{bi:()=>a,pT:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},63041:(e,t,r)=>{"use strict";r.d(t,{l:()=>h});var n=r(53779),a=r(85587),i=r(88088),o=r(82726),s=r(69222),c=r(39624),l={"brand-neutral":"ghost-on-brand","brand-bold":"ghost-inverse","brand-light":"ghost",info:"ghost",success:"ghost",error:"ghost",warning:"ghost"},u={"brand-neutral":"underlined-on-brand","brand-bold":"underlined-inverse","brand-light":"underlined",info:"underlined",success:"underlined",error:"underlined",warning:"underlined"},d=(0,a.h)(),p=["info","success","error","warning"];[...p];var h=({className:e,closeLabel:t,description:r,visual:a,links:h,onClose:f,variant:m="brand-neutral",...g})=>{let y=l[m],v=u[m];return(0,d.jsxs)("div",{className:(0,n.$)("watts-banner",`watts-banner--${m}`,e),...g,children:[(0,d.jsxs)("div",{className:"watts-banner__content",children:[p.some(e=>m===e)?(0,d.jsx)(c.k,{status:m,variant:"strong"}):a,(0,d.jsxs)(i.E,{className:"watts-banner__content-description",children:[r,h&&(0,d.jsx)("span",{className:"watts-banner__content-links",children:h.map((e,t)=>(0,d.jsx)(s.N,{...e,variant:v},t))})]})]}),f&&(0,d.jsx)(o.$,{size:"s",variant:y,icon:"cross","aria-label":t,title:t,onClick:f})]})};h.displayName="Banner"},63298:(e,t,r)=>{"use strict";r.d(t,{n:()=>f,V:()=>h});
513var n=r(60004),a=r(20),i=r(35695),o=r(94197),s=r(86263);let c=e=>e?.replace("#","");var l=r(98040),u=r.n(l),d=r(60072);let p=({items:e,isHubPage:t})=>{let{0:r,1:a}=(0,n.useState)(!1);(0,n.useEffect)(()=>{a(!0)},[]);let{activeId:l,isAnchorVisible:p}=(e=>{let{0:t,1:r}=(0,n.useState)(null),{0:a,1:i}=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let n=!1,a=()=>{n||(requestAnimationFrame(()=>{let a=null,o=1/0;e.forEach(e=>{let r=document.getElementById(e);if(!r)return;let n=r.getBoundingClientRect(),s=Math.abs(n.top-250);s<o&&n.top<=250&&(o=s,a=e),i(!!t)}),r(a),n=!1}),n=!0)};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>{window.removeEventListener("scroll",a)}},[e]),{activeId:t,isAnchorVisible:a}})(e?.map(e=>c(e?.anchor)));return r?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:(0,i.A)(p?u().visibleAnchor:u().hiddenAnchor,u().container,t&&u().hubPageContainer,"anchorMenuSmoothScroll"),"data-testid":"anchor-menu",children:(0,d.jsx)("div",{className:u().content,children:e?.map(e=>(0,d.jsx)(s.w,{href:e?.anchor,variant:"standalone-regular",size:"l",className:(0,i.A)(u().anchorMenuItem,l===c(e?.anchor)&&u().active),children:e?.label},e?.anchor))})}),p&&(0,d.jsx)(o.e,{})]}):null},h=4,f=({items:e,isHubPage:t})=>{let r=a.U.up("sm");return e?.length&&!(e.length<h)&&r?(0,d.jsx)(p,{items:e,isHubPage:t}):null}},63463:e=>{e.exports={image:"image_image__BN1j5",imageFilled:"image_imageFilled__qfriL",imageContainer:"image_imageContainer__bY9VF"}},63610:(e,t,r)=>{var n=r(25466);e.exports=function(e){return null==e?"":n(e)}},64024:(e,t,r)=>{"use strict";r.d(t,{H:()=>g});var n=r(12072),a=r(60004),i=r(87981),o=r(7976),s=r(10468),c=r(77104),l=r(1464),u=r(75778),d=r(55537),p=r(64761);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=new Set([d.b.catalog.app,d.b.account.app,d.b.checkout.app,d.b.associate.app]),g=()=>{let e=(()=>{let{openAccountNavigationDrawer:e}=(0,c.hx)(),{openContactUsDrawer:t}=(0,l.qO)(),{openMegaMenu:r}=(0,i.S)(),{showStoreLocator:n}=(0,u.SA)(),o=(0,a.useCallback)(()=>{let e=window.OneTrust;e?e.ToggleInfoDisplay():console.error("OneTrust has not been loaded !")},[]);return(0,a.useMemo)(()=>({showAccount:e,showCookieManagement:o,showMegaMenu:r,showContactForm:t,showStoreLocator:n}),[r,o])})(),{CMS_IMAGE_PROXY_URL:t}=(0,o.rD)(),{isFlagEnabled:r}=(0,o.h)(),n=r(s.hT)&&r(s.Y7);return{computeCmsLink:(0,a.useCallback)((r,a)=>{let i=r||[],o=(0,p.bI)(i.find(({target:e})=>e?.link?.type!=="CMPlaceholder"),n),{placeholderButtonLabel:s,placeholderButtonUrl:c,noLocale:l,placeholderOnClickActions:u}=((e,t,r)=>{let n=e.filter(({target:e})=>e?.link?.type==="CMPlaceholder"),a=n.find(({callToActionText:e})=>!!e)?.callToActionText,i=n.find(({target:e})=>e?.title&&!t[e.title.trim()])?.target?.title,o=n.filter(({target:e})=>!!e?.title&&t[e.title.trim()]),s=o.length>0&&!i;return{placeholderButtonLabel:a,placeholderButtonUrl:i,noLocale:s,placeholderOnClickActions:o.length?e=>{e?.stopPropagation(),o.forEach(({target:e})=>e?.title&&t[e.title.trim()]?.()),r?.()}:void 0}})(i,e,a),d=(e=>{if(!e)return{};let t=e.trim();if(!t)return{};if(t.match(/^https?:\/\//))return{href:t,forceRefresh:!0};let[r,...n]=(t.startsWith("/")?t.slice(1):t).split("/").filter(Boolean);return r&&m.has(r)?{app:r,href:n.length?`/${n.join("/")}`:"/"}:{href:t.startsWith("/")?t:`/${t}`}})(c||void 0),h=f(f(f({},o),d),{},{href:o?.download?`${t}${o?.href}`:o?.href||d?.href,text:o?.text||s,forceRefresh:o?.forceRefresh||d?.forceRefresh||!o?.href}),g=u||h?.href;return f(f(f({},h),l?{noLocale:!0}:{}),g?{onClick:u||a}:{})},[t,e])}}},64139:e=>{e.exports={skeletonContainer:"skeleton-price-block_skeletonContainer__xH2wE",alignLeft:"skeleton-price-block_alignLeft___mXSQ",alignRight:"skeleton-price-block_alignRight__VkrrU"}},64308:(e,t,r)=>{"use strict";var n=r(64443);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
513t%2?a(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},noSSR:function(){return l}});let o=r(75355);r(60072),r(60004);let s=o._(r(23619));function c(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function u(e,t){let r=s.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n=i(i({},n),e));let a=(n=i(i({},n),t)).loader;return(n.loadableGenerated&&(n=i(i({},n),n.loadableGenerated),delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r(i(i({},n),{},{loader:()=>null!=a?a().then(c):Promise.resolve(c(()=>null))})):(delete n.webpack,delete n.modules,l(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64761:(e,t,r)=>{"use strict";r.d(t,{CD:()=>f,R3:()=>m,Uu:()=>u,bI:()=>d,jV:()=>h,zp:()=>p});var n=r(12072),a=r(55537),i=r(52322);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let c="brands",l=e=>{let{navigationPath:t}=e,r=t?.slice(2,t.length).reduce((e,{segment:t})=>t?e.concat(t):e,[]).join("/");if(!r)return{app:a.b.content.app,href:a.b.content.base,asParam:void 0};let n="/"+r,i=r.split("/")[0]===a.b.content.newsroom.split("/")[1],o=r.split("/")[0]===a.b.content.configurator.split("/")[1],s=r.split("/")[0]===a.b.content.hub.split("/")[1],c=o||i||s?"":a.b.content.static;return{app:a.b.content.app,href:`${c}/[...slug]`,asParam:`${c}${n}`}},u=e=>{let{contentHubTagFacet:t,segment:r,id:n,subjectTaxonomy:i}=e;if(!t||0===t.length||!r||!i||0===i.length)return{app:a.b.content.app,href:a.b.content.base,asParam:void 0};let o=i.filter(e=>e.navigationPath?.length===3&&t.some(t=>t?.name===e.name)),s=o[0]?.navigationPath[1]?.name,c=t.find(e=>e?.name===s),l=c?.segment,u=o[0]?.name,d=t.find(e=>e?.name===u),p=d?.segment;if(!p||!l)return{app:a.b.content.app,href:a.b.content.base,asParam:void 0};let h=`${a.b.content.hub}/${l}/${p}/${r}-${n}`;return{app:a.b.content.app,href:`${a.b.content.hub}/${l}/${p}/${r}-${n}`,asParam:h}},d=(e,t=!1)=>{let r,n;if(!e?.target)return{};let{target:o,callToActionText:d}=e,p=null,h=null,{url:f,title:m,teaserTitle:g,link:y,openInNewTab:v,productCode:b,categoryCode:_,categoryFilter:O,data:C,segment:E,externalId:w}=o,P=v?"_blank":void 0,I=v?"noopener":void 0,x=d||g||m||e.teaserTitle||e.title||"",S=e=>{let r=((e,t=!1)=>{if(!e?.length)return null;let r=e.findIndex(e=>"SoneparAugmentedBrandImpl"===e.__typename);if(-1===r)return null;let n=e[r],o=n?.title||n?.segment,s=t&&o?(0,i.QJ)(o):o;if(!o)return null;let c=e.slice(r+1).map(e=>e.segment).filter(Boolean),l=c.join("/");if(!l)return{app:a.b.catalog.app,href:`${a.b.catalog.brand}/[...slug]`,asParam:`${a.b.catalog.brand}/${s}`};let u=c.some(e=>"landing"===e)?a.b.content:a.b.catalog;return{app:u.app,href:`${u.brand}/[...slug]`,asParam:`${u.brand}/${s}/${l}`}})(e,t);return r?s(s({},r),{},{target:P,rel:I,text:x}):null};switch(y?.type){case"CMCategory":h=a.b.catalog.app,p=`${a.b.catalog.category}/[slug]`,n=`${a.b.catalog.category}/${_}`,r=O;break;case"CMProduct":h=a.b.catalog.app,p=`${a.b.catalog.product}/[...slug]`,n=`${a.b.catalog.product}/${b}`;break;case"CMChannel":{let e=S(o?.navigationPath);if(e)return e;({app:h,href:p,asParam:n}=l(o));break}case"SoneparBrandPage":({app:h,href:p,asParam:n}=(e=>{let{externalId:t,navigationPath:r}=e,n=r?.slice(3,r.length).reduce((e,{segment:t})=>t?e.concat(t):e,[]),i=n?.join("/");if(r?.length<4&&r[2]?.segment==="brand")return{app:a.b.content.app,href:`${a.b.content.brand}`,asParam:""};if(i){let e=n.find(e=>"landing"===e),o="landing"!==n[1]&&void 0!==n[1],s=o?r[3]?.externalId:t,c=o?`&seriesName=${encodeURIComponent(t)}`:"",l=e?"":`?brandName=${encodeURIComponent(s)}${c}`,u=e?a.b.content:a.b.catalog;return{app:u.app,href:`${u.brand}/[...slug]`,asParam:`${u.brand}/${i}${l}`}}return{}})(o));break;case"SoneparHubPage":({app:h,href:p,asParam:n}=l(o));break;case"SPArticle":({app:h,href:p,asParam:n}=u(o));break;case"CMDownload":return{href:C?.uri,text:x,download:m,forceRefresh:!0,target:"_blank"};case"CMExternalLink":return{href:f,target:P,rel:I,text:x,forceRefresh:!0};case"SoneparAugmentedBrand":{let e=o?.navigationPath,r=e?.some(e=>e.segment?.toLowerCase()===c),n=!r&&S(e);if(n&&!r)return n;return{href:(()=>{let e=`${a.b.catalog.brand}/`,r=t&&m?(0,i.QJ)(m):m;return E?.toLowerCase()===c?e:`${e}${r}`})(),target:P,rel:I,text:x,app:a.b.catalog.app}}case"DynamicCategory":return{href:`${a.b.catalog.category}/${w.split("/").pop()}`,target:P,rel:I,text:x,app:a.b.catalog.app};default:return{href:`${a.b.content.static}${f}`,target:P,rel:I,text:x,app:a.b.content.app}}let T={href:p,app:h,text:x,asParam:n,target:P,rel:I};return r?s(s({},T),{},{queryString:r}):T},p=(e,t="div")=>e?.text?.replace(`<${t}>`,"")?.replace(`</${t}>`,""),h=e=>e?._type==="Characters"?e.data:e?.children?.map(h).join("")??"",f=e=>e?._type==="Characters"?[e.data]:e?._type==="Element"&&e?.name==="p"?[h(e)].filter(
513Boolean):e?.children?.flatMap(f).filter(Boolean)??null,m=e=>{let t=[],r=[];return Object.entries(e).forEach(([e,n])=>{Array.isArray(n)?r.push({key:e,values:n}):t.push({key:e,value:n})}),{simpleValueFields:t,multiValueFields:r}}},65065:(e,t,r)=>{var n=r(59703);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},65103:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(41010);let a=(0,n.J1)`
514  fragment Linkable on CMLinkable {
515    title
516    id
517    segment
518    link {
519      type
520    }
521    navigationPath {
522      segment
523      id
524      title
525    }
526    subjectTaxonomy {
527      name
528      navigationPath {
529        name
530        segment
531        id
532        title
533      }
534    }
535    contentHubTagFacet {
536      name
537      segment
538    }
539  }
540`},65204:(e,t,r)=>{"use strict";r.d(t,{H:()=>g,X:()=>f});var n=r(43207),a=r(94835),i=r(89444),o=r(7976),s=r(76162),c=r(45234),l=r(10468),u=r(52238),d=r(22951),p=r(91933),h=r(92342);let f=({productIds:e,user:t,isLoggedIn:r,productDocList:i})=>{let{data:s,error:c}=(0,a.S1L)({variables:{productIds:e?.join(","),accountId:t?.accountId},skip:!(r&&t?.accountId&&e?.length)}),{isFlagEnabled:u}=(0,o.h)(),[p]=(0,n.B)(),f=u(l.XI),m=s?.purchaseHistoryLookup?.alreadyPurchasedProducts;return{formattedProductsInfo:e?.map(e=>{let{references:t,productTitle:r,features:n=[],tags:a,stockIndicator:o,brandName:s,isMarketplace:c,isReturnable:l,hasVariant:u}=(0,h.EM)(e,i),g=(0,h.DG)(l);return{productId:e,productTitle:r,brandName:s,isMarketplace:c,tags:a,stockIndicator:Object.values(d.dv).includes(o)?o:void 0,references:t,features:f&&"boolean"==typeof g?[...n,{name:"",value:p(g?"catalog.prodSpecifications.standardStockItem":"catalog.prodSpecifications.nonReturnable")}]:n,isAlreadyPurchased:m?.includes(e),hasVariant:u}}),error:c}},m=[d.WF.CART],g=(e,t,r)=>{let n,a,{isFlagEnabled:h}=(0,o.h)(),f=e.productInfos.formattedProductsInfo.find(e=>e.productId===t),{isAlreadyPurchased:g,features:y,productId:v,productTitle:b,references:_,tags:O,isMarketplace:C,brandName:E}=f,w=h(l.KY),P=(n=e.plpViewMode,a=e.productViewPage,n!==d.o6.Grid&&!m.includes(a)),I=(0,s.qE)(v,e.prices.formattedPrice)?.marketplaceData?.isMarketPlaceProduct||C,x=f?.stockIndicator===d.dv.L,S=O?[...O]:[];g&&S.push(c.TJ),I&&w&&S.push(c.XP),x&&!S.includes(i.YD.EndOfLife.toString())&&S.push(i.YD.EndOfLife);let T=(0,p.GC)({title:b,id:t,brandName:f.brandName}),N=(0,u.$)(T.app,T.href,!0,r);return{productId:v,brandName:E,productTitle:b,tags:S,features:y,references:_,isGridView:e.plpViewMode===d.o6.Grid,displayProductFeatures:P,productHref:N}}},65865:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});let n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},a=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},i={p:a,P:(e,t)=>{let r,i=e.match(/(P+)(p+)?/)||[],o=i[1],s=i[2];if(!s)return n(e,t);switch(o){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",n(o,t)).replace("{{time}}",a(s,t))}}},66078:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}},66129:e=>{e.exports={searchContainer:"accounts-search_searchContainer__9nWIh"}},66186:(e,t,r)=>{var n=r(22927),a=r(396),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},66192:(e,t,r)=>{"use strict";r.d(t,{l:()=>c});var n,a=r(36215),i=r(41986),o=r(68265),s=i.ol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function c(){(0,o.V1)("createContext"in(n||(n=r.t(a,2))),54);var e=a.createContext[s];return e||(Object.defineProperty(a.createContext,s,{value:e=a.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},66403:e=>{e.exports={active:"action-button_active__5jmm6",containerIcon:"action-button_containerIcon__yvSsf",brandedHeader:"action-button_brandedHeader__e9Bsp",headerActionButton:"action-button_headerActionButton__XwlUX",containerText:"action-button_containerText__uVS5v",newHeaderNavigation:"action-button_newHeaderNavigation__mCzBc"}},66768:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(47821)}])},67047:(e,t,r)=>{var n=r(77532),a=r(50108),i=r(99273),o=r(87869),s=r(93229);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=o,c.prototype.set=s,e.exports=c},67303:(e,t,r)=>{"use strict";r.d(t,{BF:()=>p,GV:()=>d});var n=r(12072),a=r(60004),i=r(87954),o=r.n(i),s=r(60072);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
540t%2?c(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=(0,a.createContext)({productsInFavoriteLists:{},updateProductsInFavoriteLists:()=>{}}),d=e=>{let{0:t,1:r}=(0,a.useState)({});return(0,s.jsx)(u.Provider,{value:{productsInFavoriteLists:t,updateProductsInFavoriteLists:e=>{r(e?.reduce((e,t)=>l(l({},e),{},{[t.id]:t.productsId.map(e=>e.productId)}),{}))}},children:e.children})},p=()=>{let{productsInFavoriteLists:e,updateProductsInFavoriteLists:t}=(0,a.useContext)(u);return{isInFavoriteList:(0,a.useCallback)(t=>o()(Object.values(e||{})).includes(t),[e]),productsInFavoriteLists:e,updateProductsInFavoriteLists:t}}},67326:e=>{e.exports={root:"google-play_root__SOMAF"}},67998:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(39956),a=function(e,t,r){if(e&&"reportValidity"in e){var a=(0,n.Jt)(r,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},i=function(e,t){var r=function(r){var n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?a(n.ref,r,e):n.refs&&n.refs.forEach(function(t){return a(t,r,e)})};for(var n in t.fields)r(n)},o=function(e,t){t.shouldUseNativeValidation&&i(e,t);var r={};for(var a in e){var o=(0,n.Jt)(t.fields,a);(0,n.hZ)(r,a,Object.assign(e[a],{ref:o&&o.ref}))}return r},s=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),function(a,s,c){try{return Promise.resolve(function(n,o){try{var l=(t.context,Promise.resolve(e["sync"===r.mode?"validateSync":"validate"](a,Object.assign({abortEarly:!1},t,{context:s}))).then(function(e){return c.shouldUseNativeValidation&&i({},c),{values:r.rawValues?a:e,errors:{}}}))}catch(e){return o(e)}return l&&l.then?l.then(void 0,o):l}(0,function(e){var t;if(!e.inner)throw e;return{values:{},errors:o((t=!c.shouldUseNativeValidation&&"all"===c.criteriaMode,(e.inner||[]).reduce(function(e,r){if(e[r.path]||(e[r.path]={message:r.message,type:r.type}),t){var a=e[r.path].types,i=a&&a[r.type];e[r.path]=(0,n.Gb)(r.path,t,e,r.type,i?[].concat(i,r.message):r.message)}return e},{})),c)}}))}catch(e){return Promise.reject(e)}}}},68010:(e,t,r)=>{var n=r(34299),a=r(66186),i=r(57492);e.exports=function(e){return i(e)?n(e):a(e)}},68265:(e,t,r)=>{"use strict";r.d(t,{Sf:()=>f,V1:()=>y,no:()=>h,vA:()=>v});var n=r(60010),a="Invariant Violation",i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,s=function(e){function t(r){void 0===r&&(r=a);var n=e.call(this,"number"==typeof r?a+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=a,o(n,t.prototype),n}return(0,n.C6)(t,e),t}(Error);function c(e,t){if(!e)throw new s(t)}var l=["debug","log","warn","error","silent"],u=l.indexOf("log");function d(e){return function(){if(l.indexOf(e)>=u)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(c||(c={}));var p=r(99762);function h(e){try{return e()}catch(e){}}let f=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()});var m=r(80039);function g(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var a=t;(t=O(a))||(t=C(a,r),r=[])}e.apply(void 0,[t].concat(r))}}var y=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||c(e,O(t,r)||C(t,r))},{debug:g(c.debug),log:g(c.log),warn:g(c.warn),error:g(c.error)});function v(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new s(O(e,t)||C(e,t))}var b=Symbol.for("ApolloErrorMessageHandler_"+p.r);function _(e){if("string"==typeof e)return e;try{var t,r;return(t=2,void 0===t&&(t=0),r=(0,m.v)("stringifyForDisplay"),JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")).slice(0,1e3)}catch(e){return"<non-serializable>"}}function O(e,t){if(void 0===t&&(t=[]),e)return f[b]&&f[b](e,t.map(_))}function C(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:p.r,message:e,args:t.map(_)})))}},68339:e=>{e.exports={label:"delivery-promises_label__pkrM8",item:"delivery-promises_item__higVn",icon:"delivery-promises_icon__IJ2Gk","in-progress":"delivery-promises_in-progress__GVja_","check-solid":"delivery-promises_check-solid__f0p1Y",inline:"delivery-promises_inline__xzd5D"}},68401:(e,t,r)=>{"use strict";
540Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(75355)._(r(60004)).default.createContext(null)},68665:(e,t,r)=>{var n=r(73445);e.exports=function(e){return n(this,e).get(e)}},68728:(e,t,r)=>{"use strict";r.d(t,{MF:()=>s,nZ:()=>c});var n=r(60004),a=r(48628),i=r(60072);let o=(0,n.createContext)(null),s=({children:e})=>{let{isOpen:t,openDrawer:r,closeDrawer:s}=(0,a.b)(),c=(0,n.useCallback)(()=>r(),[r]),l=(0,n.useCallback)(()=>s(),[s]),u=(0,n.useMemo)(()=>({isBulkAddDrawerOpen:t,openBulkAddDrawer:c,closeBulkAddDrawer:l}),[t,c,l]);return(0,i.jsx)(o.Provider,{value:u,children:e})},c=()=>{let e=(0,n.useContext)(o);if(!e)throw Error("You need to wrap your component with <BulkAddDrawerProvider>");return e}},68835:(e,t,r)=>{"use strict";function n(e){return 9===e||32===e}function a(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}function o(e){return i(e)||95===e}function s(e){return i(e)||a(e)||95===e}r.d(t,{i0:()=>n,un:()=>o,xr:()=>s,yp:()=>a})},68915:(e,t,r)=>{"use strict";r.d(t,{OJ:()=>m,Sk:()=>y,Z2:()=>g,cy:()=>f,it:()=>p,xW:()=>d});var n=r(12072),a=r(60004),i=r(17846),o=r.n(i),s=r(23134),c=r(60072);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let d=function(e){return e.SET_ACCOUNT="SET_ACCOUNT",e.SET_ERROR_AUTHENTICATION_STATUS="SET_ERROR_AUTHENTICATION_STATUS",e.SET_LOGGED_USER="SET_LOGGED_USER",e.SET_STORE="SET_STORE",e.SET_USER_ACCOUNTS="SET_USER_ACCOUNTS",e.UPDATE="UPDATE",e}({}),p={isLoggedIn:!1,isGuestUser:!1,account:null,user:null,userAccounts:[],store:null,isUserAccountsLoading:!1,associateUser:null,guestUser:null,errorAuthenticationStatus:null,contactId:null,hasDPC:!1,hasPersistedAccount:!1,isConnectedOnBehalf:!1},h=(e,t)=>{let r=u({},e);switch(t.type){case d.SET_ACCOUNT:r.account=t.payload;break;case d.SET_USER_ACCOUNTS:r.userAccounts=t.payload;break;case d.SET_LOGGED_USER:r.user=t.payload;break;case d.SET_STORE:r.store=t.payload;break;case d.SET_ERROR_AUTHENTICATION_STATUS:r.errorAuthenticationStatus=t.payload;break;case d.UPDATE:r=u(u({},r),t.payload);break;default:throw Error("Unknown AuthActionType provided in auth-provider.")}return o()(r,e)?e:r},f=(0,a.createContext)({state:p}),m=({value:e,children:t})=>{let{isLoggedIn:r=!1,account:n=null,user:i=null,userAccounts:o=[],store:s=null,associateUser:l=null,guestUser:u=null,errorAuthenticationStatus:d=null,contactId:p=null,hasDPC:m=!1,hasPersistedAccount:g=!1,isConnectedOnBehalf:y=!1}=e||{},v={isLoggedIn:r,account:n,user:i,userAccounts:o,store:s,associateUser:l,guestUser:u,errorAuthenticationStatus:d,isUserAccountsLoading:!!r&&!o&&!n&&!i,isGuestUser:!!u?.userId,contactId:p,hasDPC:m,hasPersistedAccount:g,isConnectedOnBehalf:y},{0:b,1:_}=(0,a.useReducer)(h,v);return(0,c.jsx)(f.Provider,{value:{state:b,dispatch:_},children:t})},g=()=>(0,a.useContext)(f).state,y=()=>{let{account:e,user:t,guestUser:r}=g(),n=t??r;return{hasContributeCartPermission:n?.permissions?.includes(s.aX.ContributeCart),hasGrossPricePermission:n?.permissions?.includes(s.aX.ViewGrossPrice),hasValidatePermission:n?.permissions?.includes(s.aX.ValidateCart),hasPlaceOrderWithoutValidationPermission:n?.permissions?.includes(s.aX.PlaceOrderWithoutValidation),hasNetPricePermission:n?.permissions?.includes(s.aX.ViewNetPrice),hasViewOrderListPermission:n?.permissions?.includes(s.aX.ViewOrderList),hasManageUsersPermission:n?.permissions?.includes(s.aX.ManageUsers),hasManageQuotesPermission:n?.permissions?.includes(s.aX.ManageQuote),hasCreditLimitPermission:n?.permissions?.includes(s.aX.ViewCreditInfo)&&!e?.hideCustomerCreditLine,hasViewBlanketOrder:n?.permissions?.includes(s.aX.ViewBlanketOrder),hasReleaseBlanketOrder:n?.permissions?.includes(s.aX.ReleaseBlanketOrder),hasEditOrderPermission:n?.permissions?.includes(s.aX.EditOrder),hasEditPublicListPermission:n?.permissions?.includes(s.aX.EditPublicList),hasManageAddressesPermission:n?.permissions?.includes(s.aX.ManageAddresses)}}},68953:(e,t,r)=>{"use strict";function n(){}r.d(t,{l:()=>s});let a="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}}
540,i="undefined"!=typeof WeakMap?WeakMap:Map,o="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class s{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new i,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new a(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new o(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},69011:(e,t,r)=>{var n=r(51559),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var a=o.call(e);return n&&(t?e[s]=r:delete e[s]),a}},69120:(e,t,r)=>{"use strict";r.d(t,{BA:()=>s,ID:()=>n,Ku:()=>a,bi:()=>c,eJ:()=>l,mW:()=>i,zO:()=>o});let n="search-history",a=2,i=4,o=5,s=300,c="rl-new-brand-url",l=2},69222:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var n=r(53779),a=r(85587),i=r(12028),o=r(60004),s=(0,a.h)(),c=(0,o.forwardRef)(({children:e,className:t,floating:r=!1,fullWidth:a=!1,icon:o,iconPosition:c="left",rounded:l,size:u="m",title:d,target:p,variant:h="underlined",as:f="a",...m},g)=>{let y="unstyled"===h?(0,n.$)("watts-link--unstyled",t):(0,n.$)("watts-link",`watts-link--${u}`,`watts-link--${h}`,{"watts-link--icon-only":!e,"watts-link--floating":r,"watts-link--full":a,"watts-link--rounded":l},t);return(0,s.jsxs)(f,{className:y,target:p,ref:g,"aria-label":d,...m,children:[o&&"left"===c&&(0,s.jsx)(i.I,{icon:o,...d&&{title:d}}),e,o&&"right"===c&&(0,s.jsx)(i.I,{icon:o,...d&&{title:d}}),"_blank"===p&&"underlined"===h&&(0,s.jsx)(i.I,{className:"watts-link__external-link",icon:"external-link"})]})});c.displayName="Link"},69261:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},69298:(e,t,r)=>{"use strict";r.d(t,{OC:()=>a,yo:()=>i});var n=r(68835);function a(e){var t,r;let a=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let t=0;t<e.length;++t){let s=e[t],c=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(s);c!==s.length&&(i=null!=(r=i)?r:t,o=t,0!==t&&c<a&&(a=c))}return e.map((e,t)=>0===t?e:e.slice(a)).slice(null!=(t=i)?t:0,o+1)}function i(e,t){let r=e.replace(/"""/g,'\\"""'),a=r.split(/\r\n|[\n\r]/g),i=1===a.length,o=a.length>1&&a.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),s=r.endsWith('\\"""'),c=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=c||l,d=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s),p="",h=i&&(0,n.i0)(e.charCodeAt(0));return(d&&!h||o)&&(p+="\n"),p+=r,(d||u)&&(p+="\n"),'"""'+p+'"""'}},69995:e=>{e.exports={AccountChangedialogBox:"account-change-dialog_AccountChangedialogBox__pglSr",accountInfo:"account-change-dialog_accountInfo__CUrxZ"}},70030:(e,t,r)=>{"use strict";r.d(t,{U:()=>C});
540var n=r(12072),a=r(88088),i=r(45062),o=r(82726),s=r(35695),c=r(43207),l=r(2117),u=r(68915),d=r(85582),p=r(92272),h=r(86263),f=r(55537),m=r(75778),g=r(45927),y=r(46342),v=r.n(y),b=r(60072);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let C=({store:e,isSelected:t,isActive:r,hasPadding:n=!1,hideStoreInfoCta:y,focusRef:_,handleSelectStore:C,handleStoreDetailsClick:E,sendClickStoreLocatorCtaGtmTag:w,onStoreSelection:P})=>{let[I]=(0,c.B)(),{isLockerOnly:x,hasLocalLocker:S,lockerOpenTodayString:T,openTodayString:N,facility:A,storeOpenTimes:j,lockerOpenTimes:k,facilityName:D,selectCtaLabel:R,phoneNumberHref:L,seeOnMapHref:M,storeDetailPageHref:F}=(0,g.k)(e),{sendChangeDefaultStoreGtmTag:$}=(0,l.PB)(),{isOpen:B,showStoreLocator:U,setSelectStorePanelProps:V,updateStoreOpeningInfos:q}=(0,m.SA)(),{isLoggedIn:G}=(0,u.Z2)(),z=async()=>{P&&P({facilityId:e.facilityId}),e&&(!B&&G&&U?.(),e.name&&$({branch_name:e.name}),C?.(),e.facilityId&&e.name&&(V({facilityId:e.facilityId,facilityName:e.n
540ame}),await q(e.facilityId)))};if(!e||!A)return null;let{addressLine1:H,addressLine2:W,addressLine3:Q,city:Y,department:K,region:J,postalCode:Z,country:X}=e.address||{};return(0,b.jsx)("div",{className:(0,s.A)(v().container,n&&v().padding,r&&v().active),"data-testid":t?"default-store":`${e?.facilityId}-store-locator-card-container`,children:(0,b.jsxs)("div",{className:(0,s.A)(v().root),children:[(0,b.jsxs)("div",{className:v().information,children:[(0,b.jsxs)("div",{className:v().storeNameContainer,children:[(0,b.jsx)(a.E,{size:t?"body-5":"body-3",className:v().storeName,"data-testid":t?"default-store-name":"store-name",children:D}),x&&(0,b.jsx)(i.v,{variant:"info","data-testid":"locker-only-chip",size:"xs",children:I("header.storesDrawer.lockerOnly")})]}),(0,b.jsx)(p.V,O(O({},{addressLine1:H,addressLine2:W,addressLine3:Q,city:Y,department:K,region:J,postalCode:Z,country:X}),{},{size:"body-2",className:v().storeAddress,"data-testid":"store-locator-address"})),e.openingHours&&(0,b.jsxs)(b.Fragment,{children:[!x&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(a.E,{size:"body-1",weight:"bold",color:"subtle","data-testid":"open-today",children:[I(N)," "]}),(0,b.jsx)(a.E,{size:"body-1",weight:"light",color:"subtle","data-testid":"open-times",children:j})]}),(x||S)&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(a.E,{size:"body-1",weight:"bold",color:"subtle","data-testid":"open-today",children:[I(T)," "]}),(0,b.jsx)(a.E,{size:"body-1",weight:"light",color:"subtle","data-testid":"open-times",children:k})]})]})]}),(0,b.jsxs)("div",{className:v().bottomInformation,children:[(0,b.jsxs)("div",{className:v().icons,children:[L&&(0,b.jsx)(h.w,{onClick:()=>w({ctaType:d.EC.CALL}),href:L,"data-testid":"phone-number","data-cs-capture":!0,icon:"phone",title:I("storeInfo.callStore",{storeName:D}),variant:"ghost",size:"s",ref:_}),(0,b.jsx)(h.w,{onClick:()=>w({ctaType:d.EC.ITINERARY}),href:M,target:"_blank",rel:"noreferrer","data-testid":"map-redirection","data-cs-capture":!0,icon:"direction",title:I("storeInfo.seeOnMap",{storeName:D}),variant:"ghost",size:"s"})]}),(0,b.jsxs)("div",{className:v().storeLinks,children:[!y&&(0,b.jsx)(h.w,{app:f.b.content.app,"data-testid":"store-infos",href:F,onClick:E,variant:"underlined",size:"s","data-cs-capture":!0,"aria-label":`${I("store.seeDetails")} ${D}`,children:I("store.seeDetails")}),!t&&(0,b.jsx)(o.$,{"data-testid":`shop-in-this-store-${A.facilityId}`,onClick:z,variant:"underlined",size:"s","data-cs-capture":!0,children:I(R)})]})]})]})})}},70163:(e,t,r)=>{"use strict";r.d(t,{l:()=>d});var n=r(53779),a=r(85587),i=r(12028),o=r(52856),s=r(69222),c={s:"m",m:"l"},l=r(60004),u=(0,a.h)(),d=(0,l.forwardRef)(({checked:e,className:t,id:r,label:a,link:d,toggleSize:p="m",visuallyHiddenLabel:h=!1,onChange:f,...m},g)=>{let y=(0,o.k)("watts-toggle"),[v,b]=(0,l.useState)(!!e);return(0,l.useEffect)(()=>{b(!!e)},[e]),(0,u.jsxs)("label",{className:(0,n.$)("watts-toggle",`watts-toggle--${p}`,t),children:[(0,u.jsx)("input",{...m,className:"sr-only",ref:g,id:r||y,role:"switch",type:"checkbox",onChange:e=>{b(!v),f?.(e)},checked:v,"aria-checked":v}),(0,u.jsx)("span",{className:"watts-toggle__input-wrapper",children:(0,u.jsxs)("span",{className:"watts-toggle__input",children:[(0,u.jsx)(i.I,{icon:"check",size:"s"}),(0,u.jsx)("span",{className:"watts-toggle__input-thumb"}),(0,u.jsx)(i.I,{icon:"cross",size:"s"})]})}),(0,u.jsxs)("span",{className:(0,n.$)("watts-toggle__label",{"sr-only":h}),children:[a,!!d&&(0,u.jsx)(s.N,{"aria-label":d.text,href:d.href,size:c[p],variant:"underlined",children:d.text})]})]})});d.displayName="Toggle"},70387:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},71403:(e,t,r)=>{"use strict";r.d(t,{d:()=>o}),r(60004);var n=r(15195),a=r(17480),i=r(60072);let o=({productId:e,onSelected:t,sponsoredLabel:r})=>{let{productTitle:o,brandName:s,references:c,features:l,tags:u,isGridView:d,displayProductFeatures:p,productHref:h}=(0,a.UM)(e);return(0,i.jsx)(n.k,{productTitle:o,brandName:s,references:c,features:l,tags:u,isGridView:d,displayProductFeatures:p,productHref:h,onSelected:t,sponsoredLabel:r})}},72395:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>i,SE:()=>a,iy:()=>o,jz:()=>n}),r(91933);let n=({basePath:e="",locale:t,asPath:r})=>`${e}${t?"/"+t:""}${r}`;function a(e){if(!e||""===e||"/"===e)return"";try{let t=new URL(e),r=t.pathname;
540[...t.searchParams.keys()].forEach(e=>{"page"!==e&&t.searchParams.delete(e)});let n=t.search,a=t.origin+r;return n&&"?"!==n&&(a+=n),a.replace(/\/$/,"")}catch(e){return console.error("Error generating canonical URL:",e),""}}let i=({queryParams:e,router:t})=>{let{query:r,pathname:n}=t;if(!e.some(e=>e in r))return;let a=Object.keys(r).reduce((t,n)=>(e.includes(n)||(t[n]=r[n]),t),{});t.replace({pathname:n,query:a})},o=e=>Array.isArray(e?.slug)?e.slug:e?.slug?[e.slug]:e?.category&&"string"==typeof e.category?[e.category]:null},72555:function(e){var t;e.exports=(t=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ä¢":"G","Ä£":"g","Ĩ":"I","Ä©":"i","Ī":"i","Ä«":"i","Ä®":"I","į":"i","İ":"I","ı":"i","Ķ":"k","Ä·":"k","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ә":"AE","ә":"ae","Ó¨":"OE","Ó©":"oe","Ô±":"A","Ô²":"B","Ô³":"G","Ô´":"D","Ôµ":"E","Ô¶":"Z","Ô·":"E\'","Ô¸":"Y\'","Ô¹":"T\'","Ôº":"JH","Ô»":"I","Ô¼":"L","Ô½":"X","Ô¾":"C\'","Ô¿":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","Ø¡":"a","Ø¢":"aa","Ø£":"a","ؤ":"u","Ø¥":"i","ئ":"e","ا":"a","ب":"b","Ø©":"h","ت":"t","Ø«":"th","ج":"j","Ø­":"h","Ø®":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","Ø´":"sh","ص":"s","ض":"dh","Ø·":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù¾":"p","چ":"ch","ژ":"zh","Ú©":"k","Ú¯":"g","ی":"y","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","á¹¢":"S","á¹£":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»­":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","â
540‚§":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","ï·¼":"rial","ﻵ":"laa","ï»·":"laa","ﻹ":"lai","ï»»":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","∑":"soma","\xa3":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Ð¥":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function r(r,n){if("string"!=typeof r)throw Error("slugify: string argument expected");var a=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},i=void 0===n.replacement?"-":n.replacement,o=void 0===n.trim||n.trim,s=r.normalize().split("").reduce(function(t,r){var o=a[r];return void 0===o&&(o=e[r]),void 0===o&&(o=r),o===i&&(o=" "),t+o.replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return n.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),o&&(s=s.trim()),s=s.replace(/\s+/g,i),n.lower&&(s=s.toLowerCase()),s}return r.extend=function(t){Object.assign(e,t)},r})(),e.exports.default=t()},72589:(e,t,r)=>{"use strict";r.d(t,{AI:()=>h,vX:()=>d});var n=r(12072),a=r(41010),i=r(36109),o=r(86987);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l={},u=(0,a.J1)`
541    mutation SwitchUserContext($accountId: String!) {
542  switchUserContext(accountId: $accountId)
543}
544    `;function d(e){let t=c(c({},l),e);return i.n(u,t)}let p=(0,a.J1)`
545    query paginatedAccountSearch($filters: PaginatedAccountSearchInput) {
546  paginatedAccountSearch(filters: $filters) {
547    page
548    size
549    totalAccounts
550    totalTopLevelAccounts
551    parentAccounts
552    accounts {
553      accountId
554      parentId
555      accountName
556      defaultFacilityId
557      accountStatus
558      totalSubAccounts
559      deliveryAddress {
560        addressLine1
561        city
562        country
563        postalCode
564      }
565    }
566  }
567}
568    `;function h(e){let t=c(c({},l),e);return o.IT(p,t)}},72848:e=>{e.exports={container:"product-references_container__rOuES",list:"product-references_list__Jft_Q",button:"product-references_button__Adq3O",buttonText:"product-references_buttonText__QxV0Q"}},72889:(e,t,r)=>{"use strict";r.d(t,{U:()=>c}),r(60004);var n=r(35880),a=r(35695),i=r(64139),o=r.n(i),s=r(60072);let c=({productId:e,displayAlignment:t})=>(0,s.jsxs)("div",{className:(0,a.A)(o().skeletonContainer,"left"===t?o().alignLeft:o().alignRight),"data-testid":`price-skeleton-loading-${e}`,children:[(0,s.jsx)(n.E,{width:48,height:16,shape:"line"}),(0,s.jsx)(n.E,{width:100,height:26,shape:"line"}),(0,s.jsx)(n.E,{width:48,height:16,shape:"line"})]})},72970:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(53779),a=r(85587),i=r(52856),o=r(39624),s=r(1068),c=r(60004),l=(0,a.h)(),u=(0,c.forwardRef)(({actionsLeft:e,actionsRight:t,className:r,disabled:a,helperText:c,id:u,label:d,labelProps:p,statusIcon:h,symbol:f,type:m="text",textFieldSize:g="m",visuallyHiddenLabel:y=!1,...v},b)=>{let _=(0,i.k)("watts-text-field"),O=u||_,C=`${O}
568-helper-text`,E=!!(t||h||f),w="search"===m;return(0,l.jsxs)("div",{className:(0,n.$)("watts-text-field",r),children:[(0,l.jsx)("label",{...p,className:(0,n.$)("watts-text-field__label",{"sr-only":y},p?.className),htmlFor:O,children:d}),(0,l.jsxs)("div",{className:(0,n.$)("watts-text-field__wrapper",`watts-text-field__wrapper--${g}`),"data-disabled":a,"data-invalid":c?.status==="error",children:[e&&(0,l.jsx)("div",{className:"watts-text-field__wrapper-left",children:e}),(0,l.jsx)("input",{id:O,"aria-describedby":c&&C,"aria-errormessage":c?.status==="error"?C:void 0,"aria-invalid":c?.status==="error",className:"watts-text-field__input",disabled:a,ref:b,type:m,...v}),E&&(0,l.jsxs)("div",{className:"watts-text-field__wrapper-right",children:[!w&&h&&(0,l.jsx)(o.k,{className:"watts-text-field__status-icon",status:h.status}),!w&&f&&(0,l.jsx)("span",{"aria-disabled":a,"aria-hidden":a,className:"watts-text-field__symbol",children:f}),t]})]}),!!c&&(0,l.jsx)(s.E,{id:C,disabled:!!a,status:c.status??"info",text:c.text})]})});u.displayName="TextField"},73121:(e,t,r)=>{"use strict";r.d(t,{T:()=>m});var n=r(12072),a=r(54688),i=r(60004),o=r(10983),s=r(31811),c=r(7976),l=r(37504),u=r(97215),d=r(82967);let p=["page"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=()=>{let{cart:e}=(0,s.B_)(),t=e?.logisticDetails?.facilityId,{stores_drawer_pagination_size:r}=(0,c.rD)(),{query:n,push:h,pathname:m,asPath:g}=(0,o.useRouter)(),y="/store-locator"===m,{0:v,1:b}=(0,i.useState)({lat:0,lng:0}),{0:_,1:O}=(0,i.useState)(null),C=Number(n?.page)-1||0,{0:E,1:w}=(0,i.useState)(C),{0:P,1:I}=(0,i.useState)([]),{0:x,1:S}=(0,i.useState)(!1),{0:T,1:N}=(0,i.useState)(0),A=Number(r||l.v);(0,i.useEffect)(()=>{y&&C!==E&&w(C)},[C,E,y]);let j=(0,i.useCallback)(e=>{if(w(e),y){let{page:t}=n,r=(0,a.A)(n,p),i=e>0?{page:String(e+1)}:{};h({pathname:"/store-locator",query:f(f({},r),i)},void 0,{shallow:!0})}},[n,h,y]),{loading:k,error:D,data:R}=(0,u.iU)({skip:!x,variables:{address:_,page:E,size:A},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-first"}),{loading:L,error:M,data:F}=(0,u.az)({skip:x,variables:{facilityId:t,page:E,size:A},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-first"});(0,i.useEffect)(()=>{E>0&&I([])},[E]);let $=(e,t)=>{let r=(0,d.Dl)(e);r&&I(r),(e=>{e?.location?.latitude!=null&&e?.location?.longitude!=null&&b({lat:e.location.latitude,lng:e.location.longitude})})(t),N((e?.totalElements||0)-(E+1)*A)};return(0,i.useEffect)(()=>{R?.storesByAddress&&$(R?.storesByAddress,R?.storesByAddress[0])},[R,E,A]),(0,i.useEffect)(()=>{if(F){let e=F.storeWithNearBy?.store;F?.storeWithNearBy?.nearbyStores&&e&&$(F?.storeWithNearBy?.nearbyStores,e)}},[F,E,A]),{stores:P,handleSearchAddress:e=>{e?.text!==_&&(S(!0),I([]),O(e?.text),w(0),N(0))},handleDataReset:()=>{I([]),O(e=>""===e?null:""),j(0),N(0),S(!1)},nextResultSetCount:T,error:D||M,loading:k||L,currentPage:E,setCurrentPage:j,getHrefByPageNum:(0,i.useCallback)(e=>(0,d.k_)(e,g,n),[n,g]),loadNextPage:()=>{j(E+1)},totalStoresCount:R?.storesByAddress?.totalElements||0,totalNearStoresCount:F?.storeWithNearBy?.nearbyStores?.totalElements,pagination:A,searchedAddress:_,setSearchedAddress:O,currentStoreCoordinates:v,serverSideStoresList:(0,d.Dl)(R?.storesByAddress)||[],serverSideTotalElements:R?.storesByAddress?.totalElements||0}}},73445:(e,t,r)=>{var n=r(30306);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},73843:e=>{e.exports=function(e){return this.__data__.has(e)}},73855:e=>{e.exports={pagination:"store-locator-logged-in_pagination__4bf7Y",hide:"store-locator-logged-in_hide__6wtNv",openMapContainer:"store-locator-logged-in_openMapContainer___tQp9",titleContainer:"store-locator-logged-in_titleContainer___9I6k",searchBarDrawer:"store-locator-logged-in_searchBarDrawer__6pkC_",searchBarMap:"store-locator-logged-in_searchBarMap__fXJPm",padding:"store-locator-logged-in_padding__HUrPp"}},74382:(e,t,r)=>{"use strict";r.d(t,{W:()=>g});var n=r(53779),a=r(85587),i=r(91752),o=r(82726),s=r(12028),c=r(88088),l=r(60004),u=(0,a.h)(),d=(0,l.forwardRef)(({className:e,title:t,description:r,href:a,icon:i,as:o="a",onKeyDown:l,...d},p)=>(0,u.jsx)("li",{children:(0,u.jsxs)(o,{ref:p,...d,role:a?void 0:"button",className:(0,n.$)("watts-menu-dropdown__item",e),href:a??"#",onKeyDown:l,children:[i&&(0,u.jsx)(s.I,{icon:i}),(0,u.jsxs)("div",{children:[(0,u.jsx)(c.E,{size:"body-2",as:"span",weight:"bold",children:t}),r&&(0,u.jsx)(c.E,{as:"span",size:"body-1",color:"subtle",children:r})]})]})}));d.displayName="MenuItem";var p=r(44908),h=(0,a.h)(),f=({className:e,title:t,items:r,icon:a,menuButton:c,onClickAway:u,onToggle:f,onButtonKeyDown:m})=>{let[g,y]=(0,l.useState)(!1),v=(0,l.useRef)(null),b=(0,l.useRef)(null),_=(0,l.useRef)([]);_.current=(r||[]).map((e,t)=>_.current[t]??(0,l.createRef)());let O=e=>{y(e),f()};(0,i.W)({onClickAway:()=>{O(!1),u()},ref:v,shouldTriggerClickAway:g});let C=e=>{let t=_.current.findIndex(t=>t.current===e.currentTarget);"Escape"===e.key&&(O(!1),b.current?.focus()),"Tab"!==e.key||e.shiftKey||t!==_.current.length-1||(e.preventDefault(),O(!1),setTimeout(()=>b.current?.focus())),"Tab"===e.key&&e.shiftKey&&0===_.current.findIndex(t=>t.current===e.currentTarget)&&(e.preventDefault(),O(!1),setTimeout(()=>b.current?.focus()))};return(0,h.jsxs)("li",{ref:v,className:(0,n.$)("watts-menu-dropdown__submenu",{"watts-menu-dropdown__submenu--open":g},e),children:[(0,h.jsx)(o.$,{"aria-haspopup":"true","aria-expanded":g,ref:b,className:"watts-menu-dropdown__item",onClick:e=>{O(!g),c?.onClick?.(e)},onKeyDown:e=>
568{("Enter"===e.key||" "===e.key)&&(g||(e.preventDefault(),O(!0),setTimeout(()=>{_.current[0].current.focus()}))),"Escape"===e.key&&(g?(O(!1),b.current?.focus()):m(e)),"Tab"!==e.key||e.shiftKey||b.current!==document.activeElement||m(e),c?.onKeyDown?.(e)},variant:"ghost",icon:g?"chevron-left":"chevron-small-right",iconPosition:g?"left":"right",children:(0,h.jsxs)("div",{children:[!g&&a&&(0,h.jsx)(s.I,{icon:a}),t]})}),g&&(0,h.jsx)(p.c,{className:"watts-menu-dropdown__divider",variant:"minor"}),r&&(0,h.jsx)("ul",{children:r.map((e,t)=>(0,h.jsx)(d,{ref:_.current[t],onKeyDown:C,...e},t))})]})};f.displayName="SubMenu";var m=(0,a.h)(),g=({menuButton:e,className:t,items:r,type:a="category",...s})=>{let[c,u]=(0,l.useState)(!1),[p,h]=(0,l.useState)(null),g=(0,l.useRef)(null),y=(0,l.useRef)(null),v=e?.ref??y,b=(0,l.useRef)(null),_=(0,l.useRef)([]);_.current=r.map((e,t)=>_.current[t]??(0,l.createRef)()),(0,i.W)({onClickAway:()=>{u(!1)},ref:g,shouldTriggerClickAway:c});let O=e=>{let t=_.current.findIndex(t=>t.current===e.currentTarget);"Escape"===e.key&&(u(!1),v.current?.focus()),"Tab"===e.key&&t===_.current.length-1&&u(!1),"Tab"===e.key&&e.shiftKey&&0===t&&u(!1)},C=(0,l.useCallback)((e,t)=>{"Escape"===t.key?(u(!1),v.current?.focus()):"Tab"===t.key&&e===r.length-1&&u(!1)},[v,r.length]),E=(0,l.useCallback)(e=>{h(t=>t!==e&&c?e:null)},[c]);return(0,l.useEffect)(()=>{if(c&&b.current){let e=b.current.getBoundingClientRect();if(e.right>window.innerWidth){let t=e.right-window.innerWidth;b.current.style.left=`calc(-${t+16}px)`}}else!c&&b.current&&(b.current.style.left="inherit")},[c]),(0,m.jsxs)("div",{ref:g,className:(0,n.$)("watts-menu",t),...s,children:[(0,m.jsx)(o.$,{icon:c?"chevron-small-up":"chevron-small-down",variant:"ghost",...e,ref:v,"aria-haspopup":"true","aria-expanded":c,iconPosition:"right",selected:c,onClick:t=>{u(!c),e?.onClick?.(t)},onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||c||(t.preventDefault(),u(!0),setTimeout(()=>{_.current[0].current.focus()})),e?.onKeyDown?.(t)},children:e?.children}),(0,m.jsx)("ul",{ref:b,className:(0,n.$)("watts-menu-dropdown",{"watts-menu-dropdown--open":c,"watts-menu-dropdown--content-oriented":"action"===a}),children:r.map(({items:t,...r},a)=>{let i=null!==p&&p!==a;return t?(0,m.jsx)(f,{className:(0,n.$)({"watts-menu-dropdown__item--hidden":i}),menuButton:e,onToggle:()=>{E(a)},onButtonKeyDown:e=>{C(a,e)},onClickAway:()=>{u(!1)},items:t,...r},a):(0,m.jsx)(d,{className:(0,n.$)({"watts-menu-dropdown__item--hidden":i}),ref:_.current[a],onKeyDown:O,...r},a)})})]})};g.displayName="Menu"},74594:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(10983),a=r(85582);let i={"":a.g$.HOMEPAGE,"/catalog":a.g$.CATALOG,"/checkout":a.g$.CHECKOUT,"/account":a.g$.ACCOUNT},o=()=>{let{basePath:e}=(0,n.useRouter)();return i[e]||a.g$.OTHER_PAGES}},74709:(e,t,r)=>{"use strict";r.d(t,{E:()=>P});var n=r(60004),a=r(59100),i=r(88088),o=r(35695),s=r(43207),c=r(7976),l=r(2117),u=r(85582),d=r(9923),p=r(57027),h=r(10468),f=r(86263),m=r(52726),g=r(35477),y=r(55537),v=r(53926),b=r(70030),_=r(13196),O=r(75778),C=r(92699),E=r.n(C),w=r(60072);let P=({className:e,stores:t,loading:r,error:C,setCurrentPage:P,currentPage:I,handleDataReset:x,totalStoresCount:S,getHrefByPageNum:T,pagination:N,hideOpenMapButton:A,activeStore:j,getCurrentPosition:k,hasPadding:D=!1,handleSearchAddress:R,serverSideStoresList:L,serverSideTotalElements:M})=>{let[F]=(0,s.B)(),$=(0,n.useRef)(null),{isFlagEnabled:B}=(0,c.h)(),{locales_country:U,stores_drawer_pagination_size:V}=(0,c.rD)(),{sendClickStoreLocatorCtaGtmTag:q,sendClickShopInThisStoreCtaGtmTag:G}=(0,l.PB)(),z=L&&L.length>0&&t?.length===0,H=z?L:t,W=z?M||0:S,Q=W?Math.ceil(W/V):0,{closeStoreLocator:Y}=(0,O.SA)(),K=()=>{G(),(0,m.A)((0,g.ly)(),y.b.account.app)},J=()=>{q({ctaType:u.EC.INFORMATION}),Y()};return C?(0,w.jsx)(v.D,{onReload:x}):(0,w.jsxs)("div",{className:e,"data-testid":"store-locator-non-logged-in",children:[(0,w.jsxs)("div",{className:(0,o.A)(A?E().titleContainer:E().titleDrawerContainer),children:[(0,w.jsx)(a.D,{size:"body-5",weight:"bold","data-testid":"title","data-cs-capture":!0,children:F("storeLocator.title")}),A&&(0,w.jsx)(i.E,{as:"span",color:"subtle",size:"body-2",children:F("storeLocator.subtitle")}),!A&&(0,w.jsxs)("div",{className:E().openMapContainer,children:[(0,w.jsx)(i.E,{className:(0,o.A)(r&&E().hide),size:"body-2",weight:"regular","data-testid":"number-of-stores","data-cs-capture":!0,children:W&&W>0?F("header.storesDrawer.storeCount",{count:W}):F("header.storesDrawer.storesNearby")}),B(h.he)&&(0,w.jsx)(f.w,{app:y.b.content.app,icon:"map",variant:"tertiary",size:"s",href:y.b.content.storeLocator,"data-testid":"open-map-button",onClick:Y,children:F("header.storesDrawer.showMap")})]})]}),(0,w.jsx)("div",{className:(0,o.A)(A&&E().searchBarMap,E().searchBarDrawer),children:(0,w.jsx)(d.R,{onItemClick:R,localesCountry:U,getCurrentPosition:k})}),H?.length>0?H.map(e=>(0,w.jsx)(b.U,{store:e,handleSelectStore:K,handleStoreDetailsClick:J,sendClickStoreLocatorCtaGtmTag:q,isActive:e?.facilityId===j,hasPadding:D},"store-locator-card-"+e.facilityId)):null,r&&[...Array(N).keys()].map(e=>(0,w.jsx)(_.b,{hasPadding:!0},`store-locator-card-skeleton-${e}`)),!r&&Q&&Q>1&&(0,w.jsx)("div",{className:E().pagination,"data-testid":"pagination",children:(0,w.jsx)(p.d,{numberOfPages:Q,currentPage:I+1,onPageChange:e=>{P(e-1),$.current?.scrollTo({top:0})},hrefByPageNum:T})})]})}},74729:e=>{e.exports=function(e,t){return e.has(t)}},75132:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});let n={DOT:"dot",CHIP:"chip"}},75522:(e,t,r)=>{"use strict";r.d(t,{G:()=>s}),r(60004);var n=r(86263),a=r(81106),i=r.n(a),o=r(60072);let s=({productTitle:e,isGridView:t,brandName:r,productHref:a,onSelected:s,size:c="l",isTableView:l=!1})=>
568{let u=l?null:i().container;return(0,o.jsx)(n.w,{size:c,className:t?i().gridContainer:u,variant:"standalone-bold",href:a,"data-testid":"product-list-card-title",onClick:s,forceRefresh:!0,children:(0,o.jsxs)("span",{children:[r&&(0,o.jsxs)("span",{"data-testid":"brand-name",children:[r,"-"]}),e]})})}},75618:(e,t,r)=>{"use strict";r.d(t,{S:()=>m});var n=r(60004),a=r(10983),i=r(43207),o=r(94835),s=r(23134),c=r(31811),l=r(68915),u=r(7976),d=r(10468),p=r(17480),h=r(53681),f=r(14749);let m=({productId:e,itemId:t,productIndex:r,skip:m,productViewSource:g})=>{let{cart:y}=(0,c.B_)(),{locale:v}=(0,a.useRouter)(),[b]=(0,i.B)(),{addDeliveryPromise:_,addDeliveryPromiseError:O}=(0,f.b)(g),{guestUser:C,user:E}=(0,l.Z2)(),{isFlagEnabled:w}=(0,u.h)(),P=w(d.tV),{quantity:I}=(0,p.Qy)(e,t,r),x=y?.logisticDetails?.cdcFacilityId,S=y?.logisticDetails?.facilityId,{opCoAddressId:T,addressLine1:N,addressLine2:A,addressLine3:j,city:k,region:D,department:R,country:L,postalCode:M,addressName:F}=y?.logisticDetails?.deliveryAddress||{},{data:$,error:B,loading:U}=(0,o.M0z)({skip:m||!P||!!C||!y?.logisticDetails?.deliveryAddress,variables:{products:[{productId:e,quantity:I}],pickupFacilityId:S,deliveryFacilityId:x,logisticMethods:[s.gG.Delivery,s.gG.PickUp],accountId:E?.accountId||C?.accountId,deliveryAddress:{opCoAddressId:T,addressLine1:N,addressLine2:A,addressLine3:j,city:k,region:D,department:R,country:L,postalCode:M,addressName:F}},onCompleted:({getDeliveryPromises:e})=>{e?.deliveryPromises?.[0]&&_(e.deliveryPromises[0],r)},onError:e=>{O(e,r)}}),V=(0,n.useMemo)(()=>{let e=y?.logisticDetails?.logisticMethod===s.gG.PickUp;return $?.getDeliveryPromises?.deliveryPromises?.[0]?.[e?h.Io.Pickups:h.Io.Deliveries]},[y?.logisticDetails?.logisticMethod,$?.getDeliveryPromises?.deliveryPromises]),q=(0,n.useMemo)(()=>(0,h.OJ)({deliveryPromises:V,isPickup:y?.logisticDetails?.logisticMethod===s.gG.PickUp,locale:v,t:b,error:B}),[y?.logisticDetails?.logisticMethod,v,B,V,b]);return{isGetDeliveryPromisesQueryLoading:U,deliveryPromisesIcon:(0,n.useCallback)(()=>(0,h.vN)(V,B),[V,B])(),deliveryPromisesLabel:q}}},75727:(e,t,r)=>{"use strict";r.d(t,{Bo:()=>s,MH:()=>l,qx:()=>o,tQ:()=>c});var n=r(10983),a=r.n(n);let i="https://maps.google.com",o=e=>{if(!e||0===Object.keys(e).length)return"#";let t=Object.values(e).filter(e=>!!e).join(",");return`${i}/?q=${t}`},s=e=>`${i}/?q=${e?.latitude},${e?.longitude}`,c=e=>{let t=[e?.addressLine1,e?.city,e?.postalCode,e?.country].filter(Boolean).join(",");return`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`},l=({google_maps_api_key:e,google_maps_api_url:t,locales_default:r})=>new Promise((n,i)=>{window.initMap=()=>{n(window.google?.maps)};let o=a().locale||r,s=`${t}/js?key=${e}&libraries=places&callback=initMap&language=${o}&loading=async`;if(!Array.from(document.getElementsByTagName("script")).find(e=>e.src===s)){let e=document.createElement("script");e.type="text/javascript",e.src=s,e.async=!0,e.onerror=i,document.body.appendChild(e)}window.google?.maps&&n(window.google.maps)})},75778:(e,t,r)=>{"use strict";r.d(t,{Y9:()=>b,SA:()=>_});var n=r(54688),a=r(60004),i=r(48628),o=r(10983),s=r(53556),c=r(7976),l=r(68915),u=r(84167),d=r(51250);(0,u.Ay)`
569  query StoreListByAddress($address: String, $radius: Int, $page: Int, $size: Int) {
570    storesByAddress(address: $address, radius: $radius, page: $page, size: $size) {
571      totalElements
572      radius
573      originLocation {
574        latitude
575        longitude
576      }
577      facilities {
578        facility {
579          ...Store
580        }
581        distance {
582          text
583          value
584        }
585      }
586    }
587  }
588  ${d.i.fragments?.store}
589`,(0,u.Ay)`
590  query StoreWithNearBy($facilityId: String, $radius: Int, $page: Int, $size: Int) {
591    storeWithNearBy(facilityId: $facilityId) {
592      store {
593        ...Store
594      }
595      nearbyStores(page: $page, size: $size, radius: $radius) {
596        totalElements
597        facilities {
598          facility {
599            ...Store
600          }
601          distance {
602            text
603            value
604          }
605        }
606      }
607    }
608  }
609  ${d.i.fragments?.store}
610`;let p=(0,u.Ay)`
611  query StoreById($facilityId: String) {
612    storeById(facilityId: $facilityId) {
613      ...Store
614    }
615  }
616  ${d.i.fragments?.store}
617`;var h=r(52322),f=r(11594);let m=e=>{let[t,r]=e.split(":"),n=Number.parseInt(t||"",10),a=Number.parseInt(r||"",10);return Number.isNaN(n)||Number.isNaN(a)?NaN:60*n+a};var g=r(60072);let y=["page"],v=(0,a.createContext)(null),b=({children:e,initialStoreOpeningInfos:t})=>{let{isOpen:r,openDrawer:u,closeDrawer:d}=(0,i.b)(),{query:b,push:_,asPath:O}=(0,o.useRouter)(),{twelve_hours_notation:C}=(0,c.rD)(),{store:E}=(0,l.Z2)(),{0:w,1:P}=(0,a.useState)(null),{0:I,1:x}=(0,a.useState)(null),{0:S,1:T}=(0,a.useState)(null),{0:N,1:A}=(0,a.useState)(t||null),[j]=(0,s._)(p),k=(0,a.useRef)(t&&E?.facilityId?E.facilityId:void 0),D=(0,a.useCallback)(async e=>{if(e)try{let{data:t}=await j({variables:{facilityId:e}}),r=((e,t)=>{if(!e)return{storeName:null,isStoreOpen:!1,openingHours:null};let r=(0,h.PK)(t),n=e?.name||"",a=e?.address?.timezone,i=new Date,o=(0,f.QV)(i,a),s=(0,h.F$)(o,e),c=(0,h.e$)(e,r,o);if(!s?.isOpen)return{storeName:n,isStoreOpen:!1,openingHours:null};if(s.isOpen&&!s.periods)return{storeName:n,isStoreOpen:!0,openingHours:null};let l=60*o.getHours()+o.getMinutes();return{storeName:n,openingHours:c,isStoreOpen:!!s.periods?.some(e=>!!e&&(({currentTimeInMinutes:e,openTime:t,closeTime:r})=>{if(!t||!r)return!1;let n=m(t),a=m(r);return!(Number.isNaN(n)||Number.isNaN(a))&&(a<n?e>=n||e<=a:e>=n&&e<=a)})({currentTimeInMinutes:l,openTime:e.openTime,closeTime:e.closeTime}))}})(t?.storeById,C);A(r)}catch(e){console.error("Failed to fetch store opening infos:",e),A({storeName:null,isStoreOpen:!1,openingHours:null})}},[j,C]);(0,a.useEffect)(()=>{E?.facilityId&&E.facilityId!==k.current&&(k.current=E.facilityId,D(E.facilityId))},[E?.facilityId]);let R=(0,a.useMemo)(()=>({showStoreLocator:({facilityId:e,onFacilityUpdated:t}={})=>{x(e||null),T(()=>t),u()},closeStoreLocator:()=>{if(d(),b?.page){let{page:e}=b,t=(0,n.A)(b,y);_({pathname:O.split("?")[0],query:t},void 0,{shallow:!0})}},setSelectStorePanelProps:P,selectStorePanelProps:w,isOpen:r,initialFacilityId:I,onFacilityUpdatedCallback:S,storeOpeningInfos:N,updateStoreOpeningInfos:D}),[r,w,d,u,b,_,O,I,S,N,D]);return(0,g.jsx)(v.Provider,{value:R,children:e})},_=()=>{let e=(0,a.useContext)(v);if(!e)throw Error("You need to wrap your component with <StoreLocatorDrawerProvider>");return e}},75980:(e,t,r)=>{var n=r(67047),a=r(42183),i=r(93191);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||a),str
617ing:new n}}},76067:e=>{e.exports={creditLine:"credit-line_creditLine__G2j9S",creditLineBalance:"credit-line_creditLineBalance__MW5i5",creditLineLabel:"credit-line_creditLineLabel__2WM1v"}},76162:(e,t,r)=>{"use strict";r.d(t,{FI:()=>c,Nr:()=>y,Oi:()=>d,Ru:()=>l,Y8:()=>u,ZA:()=>g,cT:()=>o,gS:()=>f,jN:()=>m,qE:()=>h,qO:()=>s,tm:()=>p});var n=r(18408),a=r(15788),i=r(22951);let o=({listPrice:e,netPrice:t})=>{if(!e?.amount||!t?.amount||!e?.scale||!t?.scale)return null;let r=l(e.amount,e.scale),n=l(t.amount,t.scale);return void 0===r||void 0===n?null:Math.round(100*((parseFloat(r)-parseFloat(n))/parseFloat(r)*100))/100},s=e=>e<100&&e>0,c=({contentUnit:e,priceType:t,priceData:r,quantityStep:n})=>{let i;if(!r)return{currency:null,contentUnit:"",amount:null,scale:null};let{listPrice:o,netPrice:s}=(e=>({listPrice:e?.bestPrice?.listPrice??void 0,netPrice:e?.bestPrice?.netPrice??void 0}))(r);t===a.a.VIEW_GROSS_PRICE?i=o:t===a.a.VIEW_NET_PRICE&&(i=s);let c=null;return i?.amount&&(c=n?i.amount*n:i.amount),{currency:i?.currency??r?.listPrice?.currency??r?.netPrice?.currency??null,contentUnit:e||"",amount:c,scale:i?.scale??null}},l=(e,t,{keepSameNumberOfFractionDigits:r=!1}={})=>{let n=e*Math.pow(10,-t);if(!isNaN(n))return n.toFixed(r?t:(e=>e>0&&e<1?4:2)(n))},u=(e,t)=>e?t&&t>1?n.A.t(`contentUnit.${e}.plural`,e):n.A.t(`contentUnit.${e}`,e):`${n.A.t("contentUnit.default")}`,d=(e,t)=>{if(t)return{amount:t?.amount!=null?t.amount*e:null,scale:t.scale,currency:t.currency}},p=e=>e||i.JH.Standard,h=(e,t)=>t?.find(t=>t.productId===e),f=(e,t)=>t?.find(t=>t.lineItemId===e),m=(e,t)=>t?.items?.find(t=>t?.id===e)?.prices,g=(e,t)=>{let r=t.find(t=>t.id===e);return r?r.quantity:0},y=(e,t)=>e*t},76316:(e,t,r)=>{e.exports=r(90633)},76498:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},76745:(e,t,r)=>{"use strict";r.d(t,{GW:()=>E,Jn:()=>O,jI:()=>_,v9:()=>C});var n=r(12072),a=r(43207),i=r(60004),o=r(68915),s=r(85582),c=r(23134),l=r(2117),u=r(23719),d=r(52726),p=r(22951),h=r(35477),f=r(91933),m=r(52322),g=r(55537),y=r(84745);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let _=(e,t,r=!1,n=0,a=0)=>!e&&!r&&!!(0,u.Y0)(t)&&!!(t===c.kL.L&&!(n+a)),O=(e,t)=>{let[r]=(0,a.B)(),n=(0,l.PB)(),{state:{isLoggedIn:c,account:u,user:v}}=(0,i.useContext)(o.cy),{accountType:O,id:w}=u||{},{userId:P}=v||{},I=e.productViewPage===p.WF.CART,x=e.plpViewMode===p.o6.Table,S=e.productViewPage===p.WF.SEARCH_PLP,T=e.productViewPage===p.WF.RECOMMENDED_PRODUCTS_MODAL,N=!!e.prices?.pricesNotFound?.find(e=>e===t);if(I)return{showProductCta:!1};if(!e.isLoggedIn&&!e.isGuestUser)return{label:r("catalog.loginTitle"),buttonLabel:r("common.login"),onClick:()=>(0,d.A)((0,h.ly)(),"account"),showProductCta:!0,disabled:N};let A=e?.stocks?.formattedStockData?.find(e=>e.productId===t)?.productCta,j=e?.productDocList.find(e=>e.productId===t);if(!j)return{showProductCta:!1};let k=_(e.stocks?.stockError,j.stockIndicator||"",A?.productNotFound,A?.deliveryQuantity,A?.pickupQuantity),D=j.followupProducts?.[0],R=(0,f.Yy)(D)?.href;if(k&&D)return{notSoldAnymore:k,label:r("catalog.buying.notSoldAnymore"),buttonLabel:r(x?"catalog.buying.tableListView.seeSuccessorProduct":"catalog.buying.seeSuccessorProduct"),onClick:()=>{C(n,R,S)},"data-testid":"successorProduct-button",icon:"chevron-small-right",showProductCta:!0,disabled:N};let L=(0,f.GC)({title:j.productTitle||"",id:t,brandName:j.brandName||""});if(k&&!D)return{notSoldAnymore:k,label:r("catalog.buying.notSoldAnymore"),buttonLabel:r(x?"catalog.buying.tableListView.seeSimilarProduct":"catalog.buying.seeSimilarProduct"),onClick:()=>{E(n,L.href,S)},"data-testid":"similarProduct-link",icon:"chevron-small-right",showProductCta:!0,disabled:N};if("string"==typeof j.isCuttable?(0,m.PK)(j.isCuttable):j.isCuttable){if(T)return{buttonLabel:r("product.cable.cut.buttonText"),onClick:()=>{(0,d.A)(L.href,g.b.catalog.app)},"data-testid":"cable-cut-pdp-redirect",showProductCta:!0,disabled:N,variant:"tertiary"};let a=e.prices?.prices?.productPrices?.find(e=>e?.productId===t),i=e.stocks?.stockData,o=e?.productDocList?.findIndex(e=>e.productId===t);return{buttonLabel:r("product.cable.cut.buttonText"),onClick:()=>
617{if(e.openCableCutsDrawerHandler&&a&&i){let r={minQuantity:j.minQuantity,quantitySteps:j.quantitySteps,contentUnit:j.contentUnit},l=b(b({},j),{},{productId:j.productId||t,isCuttable:"string"==typeof j.isCuttable?(0,m.PK)(j.isCuttable):j.isCuttable,isReturnable:"string"==typeof j.isReturnable?(0,m.PK)(j.isReturnable):j.isReturnable,features:j.features||[],orderingDetail:r,categorisation:j.categorisation||[],references:[],identifier:j.identifier||{brandName:j.brandName,productTitle:j.productTitle}}),u=e.productViewPage===p.WF.SEARCH_PLP?s.g$.SEARCH:s.g$.CATALOG,d=e.productViewPage===p.WF.SEARCH_PLP?s.Cm.SRP:s.Cm.PLP,h=e.productViewPage===p.WF.SEARCH_PLP?y.o.SEARCH_PLP:y.o.DIRECT_PLP;[p.WF.SEARCH_PLP,p.WF.DIRECT_PLP].includes(e.productViewPage)&&n.sendOpenCableCutsDrawerGtmTag({eventRelatedType:"make_your_cut",userId:P,loginStatus:c,userType:O,accountId:w,pageType1:u,pageType2:d,eventCategory:s.ms.BROWSE_CATALOG,cartSource:h}),e.openCableCutsDrawerHandler({product:l,price:a,stocks:i,productIndex:o>=0?o:void 0,cartSource:h,pageType1:u,pageType2:d,viewType:h})}},"data-testid":"cable-cuts-open-drawer-button",showProductCta:!0,disabled:N,variant:"primary"}}return{showProductCta:!1}},C=(e,t,r)=>{let n=r?s.ms.BROWSE_CATALOG:s.ms.PRODUCT_PAGE;e.sendClickSuccessorsGtmTag(n),(0,d.A)(t,"catalog")},E=(e,t,r)=>{let n=r?s.ms.BROWSE_CATALOG:s.ms.PRODUCT_PAGE;e.sendClickSimilarsGtmTag(n),(0,d.A)(`${t}#carousels`,"catalog")}},77104:(e,t,r)=>{"use strict";r.d(t,{eH:()=>s,hx:()=>c});var n=r(60004),a=r(48628),i=r(60072);let o=(0,n.createContext)(null),s=({children:e})=>{let{isOpen:t,openDrawer:r,closeDrawer:s}=(0,a.b)(),c=(0,n.useCallback)(()=>r(),[r]),l=(0,n.useCallback)(()=>s(),[s]),u=(0,n.useMemo)(()=>({isAccountNavigationDrawerOpen:t,openAccountNavigationDrawer:c,closeAccountNavigationDrawer:l}),[t,c,l]);return(0,i.jsx)(o.Provider,{value:u,children:e})},c=()=>{let e=(0,n.useContext)(o);if(!e)throw Error("You need to wrap your component with <AccountNavigationDrawerProvider>");return e}},77130:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});let n=function(e){return e.FAVORITE="FAVORITE",e.COMPARE="COMPARE",e.REMOVE_FAVORITE="REMOVE_FAVORITE",e.REMOVE_FROM_CART="REMOVE_FROM_CART",e.REMOVE_FROM_REFERENCES="REMOVE_FROM_REFERENCES",e}({})},77361:(e,t,r)=>{"use strict";r.d(t,{c:()=>l});var n=r(2390),a=r(79140);let i={date:(0,a.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var o=r(25477),s=r(94845),c=r(34227);let l={code:"en-US",formatDistance:n.B,formatLong:i,formatRelative:o.o,localize:s.k,match:c.Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},77388:(e,t,r)=>{"use strict";r.d(t,{s:()=>c});var n=r(15428),a=r(7037),i=r(5744),o=r(60331),s=r(16178);function c(e,t){let r=(0,s.a)(e,t?.in);return Math.round(((0,a.b)(r)-function(e,t){let r=(0,o.p)(e,void 0),n=(0,i.w)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,a.b)(n)}(r))/n.my)+1}},77530:e=>{e.exports={footer:"footer_footer___mAz1",container:"footer_container__htgKW",socialMedia:"footer_socialMedia__sm6qL",socialText:"footer_socialText__rZaCv",socialLinks:"footer_socialLinks__pXsVX",desktopLinksContainer:"footer_desktopLinksContainer__RuV4v",desktopLinks:"footer_desktopLinks__Tz_Sy",accordion:"footer_accordion__Mmd2J",mobileLink:"footer_mobileLink__2pBzb",cmsButtonLink:"footer_cmsButtonLink__01MoV",storeAndLangSwitcher:"footer_storeAndLangSwitcher__vv43r",storeLinks:"footer_storeLinks__dKieK",langSwitcher:"footer_langSwitcher__rN5oA",copyrightAndLegalLinks:"footer_copyrightAndLegalLinks__PkNW7",legalLinks:"footer_legalLinks__xel_m",hiddenElement:"footer_hiddenElement__UF0Lj"}},77532:(e,t,r)=>{var n=r(81444);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},77654:(e,t,r)=>{var n=r(41036),a=r(76498);e.exports=function e(t,r,i,o,s){return t===r||(null!=t&&null!=r&&(a(t)||a(r))?n(t,r,i,o,e,s):t!=t&&r!=r)}},77852:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n,a=r(57082),i=r(60004),o=(0,a.Ft)((e,t)=>{t.exports={...n||(n=r.t(i,2))}});o()},78088:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(22951);let a=(e,t,r)=>{let a=t("catalog.addtocart.errorMessage"),i="error";if(e)switch(e.code){case n.m1.PROMO_FAIL:a=e.message;break;case n.m1.MAX_NUMBER_OF_ITEMS_REACHED:a=t("catalog.addtocart.maxNumberOfItemsReached"),i="warning";break;case n.m1.CACHED_PROMOTION_NOT_FOUND:a=t("cart.errors.cachedPromotionNotFound"),i="warning";break;case n.m1.BULK_ADD_IN_PROGRESS:a=t("manageReferences.addAllToCartInProgressError"),i="warning";break;case n.m1.PRODUCT_BAD_QUANTITY:case n.m1.MAX_AVAILABLE_STOCK_QUANTITY_EXCEEDED:void 0!==r&&(a=t("catalog.product.exceededAvailableStocks",{count:r})),i="warning"}return{errorMessage:a,status:i}}},78232:(e,t,r)=>{"use strict";r.d(t,{vK:()=>Q,KE:()=>Y});var n=r(12072),a=r(60004),i=r(94835),o=r(84167),s=r(41010);let c=(0,s.J1)`
618  fragment GenericPriceStructureFields on GenericPriceStructure {
619    amount
620    scale
621    currency
622  }
623`,l=(0,s.J1)`
624  fragment CartFields on Cart {
625    id
626    name
627    status
628    createdAt
629    lastModified
630    includeAllSpas
631    logisticDetails {
632      logisticMethod
633      cdcFacilityId
634      facilityId
635      facilityName
636      deliveryAddress {
637        opCoAddressId
638        addressId
639        addressName
640        addressLine1
641        addressLine2
642        addressLine3
643        postalCode
644        city
645        country
646        region
647        department
648        companyName
649      }
650    }
651    specialPriceAgreements {
652      id
653    }
654    items {
655      productId
656    }
657    project {
658      id
659      name
660    }
661    persistentMessages {
662      operation
663      code
664      reasonCode
665      additionalInfo
666    }
667    totalPriceIncludingSurchargesAndShipping {
668      ...GenericPriceStructureFields
669    }
670    totalPriceIncludingSurcharges {
671      ...GenericPriceStructureFields
672    }
673  }
674  ${c}
675`,u=(0,s.J1)`
676  fragment CartSummaryFields on CartSummary {
677    id
678    name
679    createdAt
680    lastModified
681    itemsCount
682    currentWorkingCart
683    status
684    project {
685      id
686      name
687    }
688    totalPriceIncludingSurcharges @include(if: $includePrice) {
689      ...GenericPriceStructureFields
690    }
691  }
692  ${c}
693`;var d=r(65103);let p=(0,s.J1)`
694  fragment Media on CMMedia {
695    title
696    data {
697      uri
698      contentType
699    }
700    alt
701    id
702  }
703`,h=(0,s.J1)`
704  fragment Picture on CMPicture {
705    ...Media
706    uriTemplate
707    fitToCropTemplate
708    height
709    width
710  }
711  ${p}
712`,f=(0,s.J1)`
713  fragment Person on CMPerson {
714    ...Linkable
715    displayName
716    teaserText {
717      text
718    }
719    firstName
720    lastName
721    picture {
722      ...Picture
723    }
724  }
725  ${h}
726  ${d.n}
727`;var m=r(16266);let g=(0,s.J1)`
728  fragment SPTeaser on SPParagraph {
729    id
730    name
731    type
732    viewtype
733    analyticsName
734    media {
735      ... on CMPicture {
736        data {
737          uri
738        }
739        alt
740        title
741        height
742        width
743        uriTemplate
744      }
745      ... on CMVideoImpl {
746        teaserTitle
747        teaserText {
748          text
749          textAsTree
750        }
751        title
752        dataUrl
753        fullyQualifiedUrl
754        settings(paths: "playerSettings")
755        ...Media
756      }
757      ... on Icon {
758        name
759      }
760    }
761    picture {
762      ...Picture
763    }
764    related {
765      id
766      name
767    }
768    teaserText {
769      text
770      textAsTree
771    }
772    plainTeaserText: teaserText {
773      text(view: "plainFirstParagraph")
774    }
775    plainTeaserTextAsTree: teaserText {
776      textAsTree(view: "plainFirstParagraph")
777    }
778    heading
779    teaserTitle
780    ...Linkable
781  }
782  ${p}
783  ${d.n}
784  ${h}
785`,y=(0,s.J1)`
786  fragment BrandPageLink on SoneparBrandPage {
787    id
788    segment
789    externalId
790    externalUriPath
791    navigationPath {
792      ...fetchExternalId
793    }
794    __typename
795  }
796
797  fragment fetchExternalId on SoneparBrandPage {
798    id
799    title
800    externalId
801    segment
802    __typename
803  }
804`;var v=r(33019);let b=(0,s.J1)`
805  fragment CMDownload on CMDownload {
806    name
807    id
808    filename
809    data {
810      uri
811      size
812      contentType
813    }
814  }
815`,_=(0,s.J1)`
816  fragment ExternalChannel on CMExternalChannel {
817    id
818    soneparCategoryFilter
819    title
820    externalId
821    categoryRef {
822      externalId
823    }
824    __typename
825  }
826`;var O=r(94716);let C=(0,s.J1)`
827  fragment ExternalProduct on CMExternalProductImpl {
828    id
829    title
830    externalId
831    __typename
832  }
833`,E=(0,s.J1)`
834  fragment TeaserTarget on ExtendedTeaserTarget {
835    target {
836      ...Linkable
837      ...CMExternalLink
838      ...Category
839      ...Product
840      ...BrandPageLink
841      ...CMDownload
842      ...ExternalChannel
843      ...ExternalProduct
844    }
845    callToActionEnabled
846    callToActionText
847  }
848  ${d.n}
849  ${O.e}
850  ${v.d}
851  ${m.e}
852  ${y}
853  ${b}
854  ${_}
855  ${C}
856`,w=(0,s.J1)`
857  fragment Teasable on CMTeasable {
858    id
859    name
860    type
861    viewtype
862    analyticsName
863    media {
864      ... on CMPicture {
865        data {
866          uri
867        }
868        alt
869        title
870        height
871        width
872        uriTemplate
873      }
874      ... on CMVideoImpl {
875        teaserTitle
876        teaserText {
877          text
878          textAsTree
879        }
880        title
881        dataUrl
882        fullyQualifiedUrl
883        settings(paths: "playerSettings")
884        ...Media
885      }
886      ... on Icon {
887        name
888      }
889    }
890    picture {
891      ...Picture
892    }
893    related {
894      id
895      name
896    }
897    teaserText {
898      text
899      textAsTree
900    }
901    plainTeaserText: teaserText {
902      text(view: "plainFirstParagraph")
903    }
904    plainTeaserTextAsTree: teaserText {
905      textAsTree(view: "plainFirstParagraph")
906    }
907    heading
908    teaserTitle
909    ...Linkable
910    teaserTargets {
911      ...TeaserTarget
912    }
913    ...ExternalChannel
914    personalizationRules {
915      marketingSegments
916      customerSegments
917    }
918  }
919  ${p}
920  ${d.n}
921  ${h}
922  ${E}
923  ${_}
924`,P=(0,s.J1)`
925  fragment Collection on CMCollection {
926    ...Teasable
927    viewtype
928    items {
929      ...SPTeaser
930      ...Teasable
931      ...Product
932      ... on CMTeasable {
933        subjectTaxonomy {
934          name
935        }
936        contentHubTagFacet {
937          name
938        }
939      }
940      ... on CMCollection {
941        items {
942          ...Teasable
943        }
944      }
945      ... on CMTeaser {
946        settings(paths: "configuratorConfig")
947      }
948      ... on SoneparAugmentedBrandSeriesImpl {
949        categoryRef {
950          id
951        }
952      }
953      ... on SPArticle {
954        contentHubTagFacet {
955          name
956          segment
957          title
958        }
959        subjectTaxonomy {
960          name
961          navigationPath {
962            name
963            segment
964          }
965        }
966        authors {
967          ...Person
968        }
969        creationDate
970        extDisplayedDate
971      }
972    }
973    personalizationRules {
974      marketingSegments
975      customerSegments
976    }
977  }
978  ${g}
979  ${w}
980  ${m.e}
981  ${f}
982`,I=(0,s.J1)`
983  fragment NavigationTeaser on CMTeaser {
984    id
985    teaserTitle
986    teaserTargets {
987      ...TeaserTarget
988    }
989    media {
990      ... on Icon {
991        name
992      }
993    }
994    type
995    viewtype
996    __typename
997  }
998  ${E}
999`;var x=r(51250);let S=(0,s.J1)`
1000  fragment DeliveryAddressFields on DeliveryAddress {
1001    id
1002    opCoAddressId
1003    addressLine1
1004    addressLine2
1005    addressLine3
1006    city
1007    postalCode
1008    region
1009    country
1010    addressName
1011    companyName
1012    contactFirstName
1013    contactMiddleName
1014    contactLastName
1015    contactPhoneNumber
1016    deliveryIndication
1017    customerReference
1018    editable
1019    deletable
1020    defaultAddress
1021    defaultUserAddress
1022    department
1023    pendingStatus
1024  }
1025`;(0,s.J1)`
1026  fragment BillingAddressFields on Address {
1027    opCoAddressId
1028    addressLine1
1029    addressLine2
1030    addressLine3
1031    city
1032    country
1033    postalCode
1034  }
1035`,(0,s.J1)`
1036  fragment AddressFields on Address {
1037    opCoAddressId
1038    addressLine1
1039    addressLine2
1040    addressLine3
1041    city
1042    country
1043    postalCode
1044    region
1045    department
1046  }
1047`,(0,s.J1)`
1048  fragment ProductItemFields on ProductItem {
1049    productId
1050    productTitle
1051    brandName
1052  }
1053`;let T=(0,s.J1)`
1054  fragment PriceStructureFields on PriceStructure {
1055    amount
1056    scale
1057    currency
1058    userCanViewPrice
1059  }
1060`,N=(0,s.J1)`
1061  fragment PriceInfoFields on CreditPriceInfo {
1062    amount
1063    scale
1064    currency
1065  }
1066`;(0,s.J1)`
1067  fragment PickupInfoFields on PickupInfo {
1068    pickupCode
1069    pickupInstructions
1070    storageLocation
1071  }
1072`,(0,s.J1)`
1073  fragment TaxFields on Tax {
1074    objectType
1075    code
1076    surcharge
1077    percentage
1078    taxAmount {
1079      ...PriceStructureFields
1080    }
1081    type
1082  }
1083  ${T}
1084`,(0,s.J1)`
1085  fragment PaymentTermsFields on PaymentTerm {
1086    paymentMethod
1087    amount {
1088      ...PriceStructureFields
1089    }
1090    paymentTransactionId
1091    createdAt
1092  }
1093  ${T}
1094`;let A=(0,s.J1)`
1095  fragment AccountDetails on AccountDetails {
1096    id
1097    name
1098    orgName
1099    parentId
1100    facilityId
1101    accountType
1102    opcoUserStatus
1103    pricePreference
1104    roles
1105    paymentMethods {
1106      paymentCurrency
1107      paymentType
1108      paymentChannel
1109    }
1110    customerRelationship {
1111      salesRepresentative {
1112        firstname
1113        lastname
1114        email
1115      }
1116      customerSegmentation
1117      endMarketSegmentation
1118    }
1119    deliveryAddress {
1120      addressLine1
1121      city
1122      country
1123      postalCode
1124    }
1125    billingAddress {
1126      addressLine1
1127      city
1128      country
1129      postalCode
1130    }
1131    hasCreditLimit
1132    hideCustomerCreditLine
1133  }
1134`,j=(0,s.J1)`
1135  fragment AttachedAccount on AttachedAccount {
1136    accountId
1137    permissions
1138    onBehalfConsent
1139    jobCode
1140    jobTitle
1141    opCoUserStatus
1142    preference {
1143      spa
1144    }
1145    cartLimit {
1146      ...PriceStructureFields
1147    }
1148    monthlyPurchaseLimit {
1149      ...PriceStructureFields
1150    }
1151    dailyPurchaseLimit {
1152      ...PriceStructureFields
1153    }
1154  }
1155  ${T}
1156`;(0,s.J1)`
1157  fragment UserAccountFields on User {
1158    id
1159    email
1160    firstName
1161    lastName
1162    fixedPhoneNumber
1163    mobilePhoneNumber
1164    numberOfAttachedAccounts
1165    attachedAccounts {
1166      accountId
1167      permissions
1168      jobCode
1169      cartLimit {
1170        ...PriceStructureFields
1171      }
1172      monthlyPurchaseLimit {
1173        ...PriceStructureFields
1174      }
1175      dailyPurchaseLimit {
1176        ...PriceStructureFields
1177      }
1178    }
1179  }
1180  ${T}
1181`;let k=(0,s.J1)`
1182  fragment User on User {
1183    accountId
1184    userId
1185    id
1186    orgId
1187    name
1188    firstName
1189    middleName
1190    lastName
1191    permissions
1192    mobilePhoneNumber
1193    fixedPhoneNumber
1194    emailHash
1195    currency
1196    email
1197    numberOfAttachedAccounts
1198    isAdmin
1199    attachedAccounts {
1200      ...AttachedAccount
1201    }
1202    userDeletionRequestInfo {
1203      createdAt
1204      effectiveAt
1205      requestorUserId
1206    }
1207    isPunchoutUser
1208    isGenericUser
1209    systemChange {
1210      attribute
1211      changeReason {
1212        code
1213        message
1214      }
1215    }
1216    preferredDeliveryAddress {
1217      accountId
1218      deliveryAddress {
1219        ...DeliveryAddressFields
1220      }
1221    }
1222    preferredDeliveryAddresses {
1223      accountId
1224      deliveryAddress {
1225        ...DeliveryAddressFields
1226      }
1227    }
1228  }
1229  ${S}
1230`;var D=r(54344),R=r(52941),L=r(49938);let M=(0,s.J1)`
1231  fragment SpecialPriceAgreementFields on SpecialPriceAgreement {
1232    id
1233    title
1234    groupId
1235    groupName
1236  }
1237`,F=(0,o.Ay)`
1238  query ActiveCart($synchronize: SynchronizeType) {
1239    activeCart(synchronize: $synchronize) {
1240      ...CartFields
1241    }
1242  }
1243  ${l}
1244`;(0,o.Ay)`
1245  query ResourceQuery($path: String!) {
1246    content {
1247      pageByPath(path: $path) {
1248        resourceBundles {
1249          name
1250          localizations
1251        }
1252        __typename
1253      }
1254      __typename
1255    }
1256  }
1257`,(0,o.Ay)`
1258  query BasicPageContentQuery($path: String!, $includeResourceBundles: Boolean! = false) {
1259    content {
1260      pageByPath(path: $path) {
1261        id
1262        title
1263        grid {
1264          rows {
1265            placements {
1266              name
1267              items {
1268                ... on CMPicture {
1269                  crops {
1270                    name
1271                    sizes {
1272                      width
1273                    }
1274                  }
1275                }
1276              }
1277            }
1278          }
1279        }
1280        children {
1281          id
1282          name
1283          segment
1284        }
1285        resourceBundles @include(if: $includeResourceBundles) {
1286          name
1287          localizations
1288        }
1289      }
1290    }
1291  }
1292`,(0,o.Ay)`
1293  query NavigationContentQuery($path: String!) {
1294    content {
1295      pageByPath(path: $path) {
1296        subnavigation: settingsLinksAsContent(paths: ["headless.shared.subnavigation"]) {
1297          path
1298          content {
1299            ...Collection
1300          }
1301        }
1302        messageBanner: settingsLinksAsContent(paths: ["headless.shared.messagebanner"]) {
1303          path
1304          content {
1305            ...NavigationTeaser
1306          }
1307        }
1308        reinsurance: settingsLinksAsContent(paths: ["headless.shared.reinsurrance"]) {
1309          path
1310          content {
1311            ...Collection
1312          }
1313        }
1314        megaMenu: settingsLinksAsContent(paths: ["headless.shared.megamenu"]) {
1315          path
1316          content {
1317            ... on CMCollection {
1318              items {
1319                ...NavigationTeaser
1320                ... on CMCollection {
1321                  id
1322                  teaserTitle
1323                  items {
1324                    ...NavigationTeaser
1325                  }
1326                  __typename
1327                }
1328              }
1329            }
1330          }
1331        }
1332      }
1333    }
1334  }
1335  ${P}
1336  ${I}
1337`,(0,o.Ay)`
1338  query FooterContentQuery($path: String!) {
1339    content {
1340      pageByPath(path: $path) {
1341        footer: settingsLinksAsContent(paths: ["headless.shared.footer"]) {
1342          path
1343          content {
1344            ...NavigationTeaser
1345            ... on CMCollection {
1346              id
1347              teaserTitle
1348              teaserTargets {
1349                ...TeaserTarget
1350                target {
1351                  ... on CMCollection {
1352                    id
1353                    teaserTitle
1354                    items {
1355                      ...NavigationTeaser
1356                      ...Collection
1357                      ... on CMPlaceholder {
1358                        type
1359                        id
1360                        title
1361                      }
1362                    }
1363                  }
1364                }
1365              }
1366            }
1367          }
1368        }
1369        footerLight: settingsLinksAsContent(paths: ["headless.shared.footerLight"]) {
1370          path
1371          content {
1372            ...NavigationTeaser
1373            ... on CMCollection {
1374              id
1375              items {
1376                ...NavigationTeaser
1377                ...Collection
1378                ... on CMPlaceholder {
1379                  type
1380                  id
1381                  title
1382                }
1383              }
1384              teaserTitle
1385              teaserTargets {
1386                ...TeaserTarget
1387                target {
1388                  ... on CMCollection {
1389                    id
1390                    teaserTitle
1391                    items {
1392                      ...NavigationTeaser
1393                      ...Collection
1394                      ... on CMPlaceholder {
1395                        type
1396                        id
1397                        title
1398                      }
1399                    }
1400                  }
1401                }
1402              }
1403            }
1404          }
1405        }
1406      }
1407    }
1408  }
1409  ${P}
1410  ${E}
1411  ${I}
1412`,(0,o.Ay)`
1413  query BannerContentQuery($path: String!) {
1414    content {
1415      pageByPath(path: $path) {
1416        messageBanner: settingsLinksAsContent(paths: ["headless.shared.messagebanner"]) {
1417          path
1418          content {
1419            ...NavigationTeaser
1420          }
1421        }
1422        reinsurance: settingsLinksAsContent(paths: ["headless.shared.reinsurrance"]) {
1423          path
1424          content {
1425            ...Collection
1426          }
1427        }
1428      }
1429    }
1430  }
1431  ${P}
1432  ${I}
1433`,(0,o.Ay)`
1434  query SharedContentQuery($path: String!) {
1435    content {
1436      pageByPath(path: $path) {
1437        id
1438        title
1439        grid {
1440          rows {
1441            placements {
1442              name
1443              items {
1444                ... on CMPicture {
1445                  crops {
1446                    name
1447                    sizes {
1448                      width
1449                    }
1450                  }
1451                }
1452              }
1453            }
1454          }
1455        }
1456        children {
1457          id
1458          name
1459          segment
1460        }
1461        resourceBundles {
1462          name
1463          localizations
1464        }
1465        subnavigation: settingsLinksAsContent(paths: ["headless.shared.subnavigation"]) {
1466          path
1467          content {
1468            ...Collection
1469          }
1470        }
1471        messageBanner: settingsLinksAsContent(paths: ["headless.shared.messagebanner"]) {
1472          path
1473          content {
1474            ...NavigationTeaser
1475          }
1476        }
1477        reinsurance: settingsLinksAsContent(paths: ["headless.shared.reinsurrance"]) {
1478          path
1479          content {
1480            ...Collection
1481          }
1482        }
1483        megaMenu: settingsLinksAsContent(paths: ["headless.shared.megamenu"]) {
1484          path
1485          content {
1486            ... on CMCollection {
1487              items {
1488                ...NavigationTeaser
1489                ... on CMCollection {
1490                  id
1491                  teaserTitle
1492                  items {
1493                    ...NavigationTeaser
1494                  }
1495                  __typename
1496                }
1497              }
1498            }
1499          }
1500        }
1501        footer: settingsLinksAsContent(paths: ["headless.shared.footer"]) {
1502          path
1503          content {
1504            ...NavigationTeaser
1505            ... on CMCollection {
1506              id
1507              teaserTitle
1508              teaserTargets {
1509                ...TeaserTarget
1510                target {
1511                  ... on CMCollection {
1512                    id
1513                    teaserTitle
1514                    items {
1515                      ...NavigationTeaser
1516                      ...Collection
1517                      ... on CMPlaceholder {
1518                        type
1519                        id
1520                        title
1521                      }
1522                    }
1523                  }
1524                }
1525              }
1526            }
1527          }
1528        }
1529        footerLight: settingsLinksAsContent(paths: ["headless.shared.footerLight"]) {
1530          path
1531          content {
1532            ...NavigationTeaser
1533            ... on CMCollection {
1534              id
1535              items {
1536                ...NavigationTeaser
1537                ...Collection
1538                ... on CMPlaceholder {
1539                  type
1540                  id
1541                  title
1542                }
1543              }
1544              teaserTitle
1545              teaserTargets {
1546                ...TeaserTarget
1547                target {
1548                  ... on CMCollection {
1549                    id
1550                    teaserTitle
1551                    items {
1552                      ...NavigationTeaser
1553                      ...Collection
1554                      ... on CMPlaceholder {
1555                        type
1556                        id
1557                        title
1558                      }
1559                    }
1560                  }
1561                }
1562              }
1563            }
1564          }
1565        }
1566      }
1567    }
1568  }
1569  ${P}
1570  ${E}
1571  ${I}
1572`,(0,o.Ay)`
1573  query StoreById($facilityId: String) {
1574    storeById(facilityId: $facilityId) {
1575      ...Store
1576    }
1577  }
1578  ${x.i.fragments?.store}
1579`,(0,o.Ay)`
1580  query AuthenticatedUserDetails($input: AuthenticatedUserDetailsInput!) {
1581    authenticatedUserDetails(input: $input) {
1582      currentAccount {
1583        ...AccountDetails
1584      }
1585      accounts {
1586        ...AccountDetails
1587      }
1588      user {
1589        ...User
1590      }
1591    }
1592  }
1593  ${A}
1594  ${j}
1595  ${k}
1596`,(0,o.Ay)`
1597  query getStocks($productIds: [String]!, $pickupFacilityIds: [String]!, $deliveryFacilityId: String!) {
1598    getStocks(productIds: $productIds, pickupFacilityIds: $pickupFacilityIds, deliveryFacilityId: $deliveryFacilityId) {
1599      ...StockFields
1600    }
1601  }
1602  ${D.ZR}
1603`,(0,o.Ay)`
1604  query GetPriceData($productId: String!, $accountType: String, $accountId: ID!, $spaIds: String, $projectId: String, $defaultLogisticMethod: String, $includeAllSpas: Boolean) {
1605    getPriceById(
1606      productId: $productId
1607      accountType: $accountType
1608      accountId: $accountId
1609      spaIds: $spaIds
1610      projectId: $projectId
1611      defaultLogisticMethod: $defaultLogisticMethod
1612      includeAllSpas: $includeAllSpas
1613    ) {
1614      ...ProductPrice
1615    }
1616  }
1617  ${R.g}
1618`,(0,o.Ay)`
1619  query ProductPurchaseHistoryLookup($productIds: [String]!, $accountId: ID!) {
1620    purchaseHistoryLookup(productIds: $productIds, accountId: $accountId) {
1621      alreadyPurchasedProducts
1622    }
1623  }
1624`,(0,o.Ay)`
1625  query italyAddresses($province: String, $city: String) {
1626    italyAddresses(province: $province, city: $city) {
1627      provinces
1628      cities
1629      neighbourhoods
1630    }
1631  }
1632`,(0,o.Ay)`
1633  query DeliveryAddresses($accountId: ID!, $filters: DeliveryAddressesFilters!) {
1634    deliveryAddresses(accountId: $accountId, filters: $filters) {
1635      number
1636      size
1637      numberOfElements
1638      totalPages
1639      totalElements
1640      addresses {
1641        ...DeliveryAddressFields
1642      }
1643    }
1644  }
1645  ${S}
1646`,(0,o.Ay)`
1647  query RenewTokens {
1648    renewTokens {
1649      accessToken
1650      authToken
1651      refreshToken
1652      refreshTokenExpiresIn
1653    }
1654  }
1655`,(0,o.Ay)`
1656  query GuestToken {
1657    guestToken
1658  }
1659`,(0,o.Ay)`
1660  query ActiveCartStatus {
1661    activeCart {
1662      status
1663    }
1664  }
1665`,(0,o.Ay)`
1666  query ProjectList($accountId: ID!) {
1667    projectList(accountId: $accountId) {
1668      id
1669      name
1670      startDateTime
1671      endDateTime
1672      hasProducts
1673      defaultLogisticDetails {
1674        logisticMethod
1675        facilityId
1676        opCoAddressId
1677      }
1678    }
1679  }
1680`,(0,o.Ay)`
1681  query StoreListByAddress($address: String, $radius: Int, $page: Int, $size: Int) {
1682    storesByAddress(address: $address, radius: $radius, page: $page, size: $size) {
1683      totalElements
1684      radius
1685      originLocation {
1686        latitude
1687        longitude
1688      }
1689      facilities {
1690        facility {
1691          ...Store
1692        }
1693        distance {
1694          text
1695          value
1696        }
1697      }
1698    }
1699  }
1700  ${x.i.fragments?.store}
1701`,(0,o.Ay)`
1702  query StoreList($page: Int, $size: Int) {
1703    stores(page: $page, size: $size) {
1704      totalElements
1705      totalPages
1706      size
1707      number
1708      facilities {
1709        ...Store
1710      }
1711    }
1712  }
1713  ${x.i.fragments?.store}
1714`,(0,o.Ay)`
1715  query StoreWithNearBy($facilityId: String, $radius: Int, $page: Int, $size: Int) {
1716    storeWithNearBy(facilityId: $facilityId) {
1717      store {
1718        ...Store
1719      }
1720      nearbyStores(page: $page, size: $size, radius: $radius) {
1721        totalElements
1722        facilities {
1723          facility {
1724            ...Store
1725          }
1726          distance {
1727            text
1728            value
1729          }
1730        }
1731      }
1732    }
1733  }
1734  ${x.i.fragments?.store}
1735`,(0,o.Ay)`
1736  query GetSearchAutoSuggest($q: String!, $accountID: ID) {
1737    getSearchAutoSuggest(q: $q, accountId: $accountID) {
1738      queryContext {
1739        originalQuery
1740      }
1741      suggestionGroups {
1742        catalogName
1743        view
1744        querySuggestions {
1745          query
1746          displayText
1747        }
1748        searchSuggestionsV3 {
1749          ...ProductSearchResultDocsV2
1750        }
1751        attributeSuggestions {
1752          name
1753          value
1754          attributeType
1755        }
1756      }
1757    }
1758  }
1759  ${L.kj}
1760`,(0,o.Ay)`
1761  query FavoriteProductLists($accountId: ID!, $userId: ID!, $email: String!, $getOnlyEditableLists: Boolean, $owner: String) {
1762    favoriteProductLists(accountId: $accountId, userId: $userId, email: $email, getOnlyEditableLists: $getOnlyEditableLists, owner: $owner) {
1763      id
1764      name
1765      creationDate
1766      lastModificationDate
1767      defaultProductList
1768      numberOfProducts
1769      visibility
1770      isOwner
1771      userId
1772    }
1773  }
1774`,(0,o.Ay)`
1775  query MenuEntries($accountId: ID!) {
1776    projectCount(accountId: $accountId) {
1777      activeProjects
1778    }
1779    quoteCount(accountId: $accountId) {
1780      all
1781    }
1782    blanketOrderCount(accountId: $accountId) {
1783      all
1784    }
1785    productReturnsCount(accountId: $accountId) {
1786      count
1787    }
1788  }
1789`,(0,o.Ay)`
1790  query SpecialPriceAgreements($accountId: ID!) {
1791    specialPriceAgreements(accountId: $accountId) {
1792      ...SpecialPriceAgreementFields
1793    }
1794  }
1795  ${M}
1796`,(0,o.Ay)`
1797  query ProductsInFavoriteLists($accountId: ID!, $userId: ID!, $email: String!) {
1798    productsInFavoriteLists(accountId: $accountId, userId: $userId, email: $email) {
1799      id
1800      productsId(accountId: $accountId, userId: $userId, email: $email) {
1801        productId
1802      }
1803    }
1804  }
1805`,(0,o.Ay)`
1806  query CartList($includePrice: Boolean! = false) {
1807    cartList {
1808      ...CartSummaryFields
1809    }
1810  }
1811  ${u}
1812`,(0,o.Ay)`
1813  query ContactSubjectList {
1814    contactSubjectList {
1815      subjects {
1816        value
1817        subSubjects
1818      }
1819    }
1820  }
1821`,(0,o.Ay)`
1822  query navigationCategories {
1823    navigationCategories {
1824      id
1825      title
1826      maxDepth
1827      subCategories {
1828        id
1829        title
1830        subCategories {
1831          id
1832          title
1833          subCategories {
1834            id
1835            title
1836          }
1837        }
1838      }
1839    }
1840  }
1841`,(0,o.Ay)`
1842  query CreditLimit($accountId: ID!) {
1843    creditLimit(accountId: $accountId) {
1844      authorizedCreditLimit {
1845        ...PriceInfoFields
1846      }
1847      creditCoveredByInsurance {
1848        ...PriceInfoFields
1849      }
1850      creditBalance {
1851        ...PriceInfoFields
1852      }
1853      pendingInvoicesToPay {
1854        ...PriceInfoFields
1855      }
1856      creditStatus
1857      paymentTerms
1858      updatedAt
1859    }
1860  }
1861  ${N}
1862`;let $=(0,o.Ay)`
1863  fragment ProductTotalPrice on TotalProductPrice {
1864    productId
1865    listPrice {
1866      amount
1867      scale
1868      currency
1869    }
1870    totalNetPrice {
1871      amount
1872      scale
1873      currency
1874    }
1875    totalListPrice {
1876      amount
1877      scale
1878      currency
1879    }
1880    bestPrice {
1881      totalNetPrice {
1882        amount
1883        scale
1884        currency
1885      }
1886      totalListPrice {
1887        amount
1888        scale
1889        currency
1890      }
1891      listPrice {
1892        amount
1893        scale
1894        currency
1895      }
1896    }
1897    taxes {
1898      type
1899      surcharge
1900      rate {
1901        value
1902        scale
1903      }
1904      percentage
1905      amount {
1906        amount
1907        scale
1908        currency
1909      }
1910    }
1911  }
1912`;(0,o.Ay)`
1913  query GetTotalPriceData(
1914    $productId: String!
1915    $quantity: Int!
1916    $accountType: String
1917    $accountId: ID!
1918    $spaIds: String
1919    $projectId: String
1920    $defaultLogisticMethod: String
1921    $includeAllSpas: Boolean
1922  ) {
1923    getTotalPriceById(
1924      productId: $productId
1925      quantity: $quantity
1926      accountType: $accountType
1927      accountId: $accountId
1928      spaIds: $spaIds
1929      projectId: $projectId
1930      defaultLogisticMethod: $defaultLogisticMethod
1931      includeAllSpas: $includeAllSpas
1932    ) {
1933      ...ProductTotalPrice
1934    }
1935  }
1936  ${$}
1937`,(0,o.Ay)`
1938  query GetProductSearchSuggestions($query: String!, $accountId: ID, $url: String, $refUrl: String) {
1939    getProductSearchSuggestions(query: $query, accountId: $accountId, url: $url, refUrl: $refUrl) {
1940      keywordSuggestions
1941      productSuggestions {
1942        ...ProductSearchResultDocsV2
1943      }
1944      categorySuggestions {
1945        name
1946        id
1947      }
1948      queryContext {
1949        originalQuery
1950      }
1951    }
1952  }
1953  ${L.kj}
1954`,(0,o.Ay)`
1955  query GetDeliveryPromises(
1956    $products: [CartItems!]!
1957    $accountId: String!
1958    $deliveryFacilityId: String
1959    $logisticMethods: [LogisticMethod]
1960    $pickupFacilityId: String
1961    $deliveryAddress: DeliveryPromiseAddressInput
1962  ) {
1963    getDeliveryPromises(
1964      products: $products
1965      accountId: $accountId
1966      deliveryFacilityId: $deliveryFacilityId
1967      logisticMethods: $logisticMethods
1968      pickupFacilityId: $pickupFacilityId
1969      deliveryAddress: $deliveryAddress
1970    ) {
1971      deliveryPromises {
1972        productId
1973        unitOfMeasure
1974        pickups {
1975          quantity
1976          expectedAvailabilityDate
1977        }
1978        deliveries {
1979          quantity
1980          expectedAvailabilityDate
1981        }
1982      }
1983      productsNotFound
1984    }
1985  }
1986`,(0,o.Ay)`
1987  query IsAddressUsed($accountId: ID!, $address: AddressInput!) {
1988    isAddressUsed(accountId: $accountId, address: $address)
1989  }
1990`;var B=r(53285),U=r(42092),V=r(43207),q=r(96098),G=r(2117),z=r(60072);function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let W=(0,a.createContext)({setActiveCart:()=>Promise.resolve({}),createCart:()=>Promise.resolve({})}),Q=({children:e})=>
1990{let{handleSetActiveCartError:t,handleSetActiveCartCompleted:r,handleCreateCartError:a,handleCreateCartCompleted:o}=(()=>{let[e]=(0,V.B)(),{sendToast:t}=(0,U.d)(),{sendClickSwitchActiveCartGtmTag:r}=(0,G.PB)();return{handleSetActiveCartError:()=>{t({message:e("checkout.errors.switchCart"),status:"error",closeLabel:e("toaster.accessibility.close")})},handleSetActiveCartCompleted:r,handleCreateCartError:({graphQLErrors:r})=>{t({message:(0,q.Jb)(r,"MAX_NUMBER_OF_CARTS_REACHED")?e("checkout.errors.maxNumberOfCartsReached"):e("checkout.errors.createCart"),status:"error",closeLabel:e("toaster.accessibility.close")})},handleCreateCartCompleted:()=>{t({message:e("checkout.messages.cartCreated"),status:"success",closeLabel:e("toaster.accessibility.close")})}}})(),[s,c]=(0,i.xBu)({update:(0,B.ad)("setActiveCart",F),onError:t,onCompleted:r}),[l,u]=(0,i.jLZ)({update:(0,B.ad)("createCart",F),onError:a,onCompleted:o});return(0,z.jsx)(W.Provider,{value:{setActiveCart:e=>s({variables:{cartId:e}}),setActiveCartMutationStatus:c,createCart:e=>l({variables:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e)}),createCartMutationStatus:u},children:e})},Y=()=>(0,a.useContext)(W)},78359:(e,t,r)=>{"use strict";r.d(t,{P:()=>P});var n=r(12072),a=r(60004),i=r(42092),o=r(43207),s=r(94835),c=r(89460),l=r(85582),u=r(99291),d=r(2117),p=r(12855),h=r(16646),f=r(57825),m=r(17480),g=r(28589),y=r(3390),v=r(39931),b=r(78088),_=r(22951),O=r(60072);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let w=({productsSuggested:e,currentView:t,isRecommendedProduct:r,addToCartCallback:n,requestTotalPriceData:i,totalPrices:o,openStockLocatorDrawer:s})=>{let{openCableCutsDrawer:d}=(0,p.yI)(),h=(0,a.useCallback)(e=>{let{listName:t,cartSource:n}=(0,c.v)(r);d(E(E({},e),{},{cartSource:n,listName:t,isRecommendedProduct:r,viewType:_.o6.List,pageType1:l.g$.SEARCH,pageType2:l.Cm.SRP}))},[d,r]);return(0,O.jsx)(m.Mg,{"data-testid":"new-search-box-container-suggestion",productDocList:e,productViewPage:t,addToCart:n,plpViewMode:_.o6.Grid,stockLocatorPanelHandler:s,handleQuantityUpdate:i,totalPrices:o,openCableCutsDrawerHandler:h,children:(0,O.jsx)(u.Cl,{children:(0,O.jsx)(f.a$,{children:e.map((e,t)=>(0,O.jsx)(g.Z,{productId:e.productId,index:t,isRecommendedProduct:r},e.productId))})})})},P=({productsSuggested:e,currentView:t,isRecommendedProduct:r=!1})=>{let{sendAddToCartGtmTag:n}=(0,d.PB)(),[a]=(0,o.B)(),{sendToast:l}=(0,i.d)(),{openStockLocatorDrawer:u}=(0,v.jj)(),[f]=(0,s.jkR)({onCompleted:()=>{l({message:a("catalog.addtocart.successMessage"),status:"success",closeLabel:a("toaster.accessibility.close")})},onError:({graphQLErrors:e})=>{let t=e?.[0]?.extensions?.response?.body??a("catalog.addtocart.errorMessage");if("string"==typeof t)l({message:t,status:"error",closeLabel:a("toaster.accessibility.close")});else{let{errorMessage:e,status:r}=(0,b.C)(t,a);l({message:e,status:r,closeLabel:a("toaster.accessibility.close")})}}}),{requestTotalPriceData:m,totalPrices:g}=(0,y.z)();return e?(0,O.jsxs)(p.NJ,{children:[(0,O.jsx)(w,{productsSuggested:e,currentView:t,isRecommendedProduct:r,addToCartCallback:({productId:e,cartId:t,campaignId:a,quantity:i,productInfo:o,priceData:s,deliveryIndicator:l,productIndex:u})=>{f({variables:{productId:e,cartId:t,campaignId:a,quantity:i}});let{listName:d,cartSource:p}=(0,c.v)(r);n({product:E(E({},o),{},{productCategoriesInfo:null}),quantity:i,cartSource:p,listName:d,priceData:s,deliveryIndicator:l,cart_id:t,isRecommendedProduct:r,productIndex:u})},requestTotalPriceData:m,totalPrices:g,openStockLocatorDrawer:u}),(0,O.jsx)(h.a,{})]}):null}},78395:e=>{e.exports={root:"product-card-summary_root__H4vZ4",image:"product-card-summary_image__Rm3LK",description:"product-card-summary_description__eRi1V",title:"product-card-summary_title__qRyFx",priceQtyContainer:"product-card-summary_priceQtyContainer__7DOKg",messageContainer:"product-card-summary_messageContainer__UiIQK",checkout:"product-card-summary_checkout__hgUrD",orderDetail
1990:"product-card-summary_orderDetail__Kyirv",createQuote:"product-card-summary_createQuote__gRt_2"}},78512:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var n=r(36215),a=r(41986).Sw?n.useLayoutEffect:n.useEffect},78734:e=>{e.exports={root:"error-block_root__KAi_K",icon:"error-block_icon__Hhs4T",copy:"error-block_copy__6MS2R",type:"error-block_type__ss3Cr",heading:"error-block_heading__fg15w",description:"error-block_description__pZ8cD"}},79140:(e,t,r)=>{"use strict";function n(e){return (t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}r.d(t,{k:()=>n})},79210:function(e,t,r){(function(e,t){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(t);function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a={error:null},i=function(e){function t(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).state=a,t.resetErrorBoundary=function(){for(var e,r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,n(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var i=t.prototype;return i.reset=function(){this.setState(a)},i.componentDidCatch=function(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)},i.componentDidUpdate=function(e,t){var r,n,a,i,o=this.state.error,s=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(n=s)&&(n=[]),r.length!==n.length||r.some(function(e,t){return!Object.is(e,n[t])}))&&(null==(a=(i=this.props).onResetKeysChange)||a.call(i,e.resetKeys,s),this.reset())},i.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,a=t.FallbackComponent,i=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(i))return i;if("function"==typeof n)return n(o);if(a)return r.createElement(a,o);else throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(r.Component);e.ErrorBoundary=i,e.useErrorHandler=function(e){var t=r.useState(null),n=t[0],a=t[1];if(null!=e)throw e;if(null!=n)throw n;return a},e.withErrorBoundary=function(e,t){var n=function(n){return r.createElement(i,t,r.createElement(e,n))};return n.displayName="withErrorBoundary("+(e.displayName||e.name||"Unknown")+")",n},Object.defineProperty(e,"__esModule",{value:!0})})(t,r(60004))},79394:(e,t,r)=>{var n=r(32410),a=r(76498);e.exports=function(e){return a(e)&&"[object Arguments]"==n(e)}},79426:(e,t,r)=>{var n,a=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function a(e,t){if(!n[e]){n[e]={};for(var r=0;r<e.length;r++)n[e][e.charAt(r)]=r}return n[e][t]}var i={compressToBase64:function(e){if(null==e)return"";var r=i._compress(e,6,function(e){return t.charAt(e)});switch(r.length%4){default:case 0:return r;case 1:return r+"===";case 2:return r+"==";case 3:return r+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:i._decompress(e.length,32,function(r){return a(t,e.charAt(r))})},compressToUTF16:function(t){return null==t?"":i._compress(t,15,function(t){return e(t+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:i._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=i.compress(e),r=new Uint8Array(2*t.length),n=0,a=t.length;n<a;n++){var o=t.charCodeAt(n);r[2*n]=o>>>8,r[2*n+1]=o%256}return r},decompressFromUint8Array:function(t){if(null==t)return i.decompress(t);for(var r=Array(t.length/2),n=0,a=r.length;n<a;n++)r[n]=256*t[2*n]+t[2*n+1];var o=[];return r.forEach(function(t){o.push(e(t))}),i.decompress(o.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":i._compress(e,6,function(e){return r.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),i._decompress(e.length,32,function(t){return a(r,e.charAt(t))}))},compress:function(t){return i._compress(t,16,function(t){return e(t)})},_compress:function(e,t,r){if(null==e)return"";var n,a,i,o={},s={},c="",l="",u="",d=2,p=3,h=2,f=[],m=0,g=0;for(i=0;i<e.length;i+=1)if(c=e.charAt(i),Object.prototype.hasOwnProperty.call(o,c)||(o[c]=p++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(o,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(256>u.charCodeAt(0)){for(n=0;n<h;n++)m<<=1,g==t-1?(g=0,f.push(r(m)),m=0):g++;for(n=0,a=u.charCodeAt(0);n<8;n++)m=m<<1|1&a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a>>=1}else{for(n=0,a=1;n<h;n++)m=m<<1|a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a=0;for(n=0,a=u.charCodeAt(0);n<16;n++)m=m<<1|1&a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a>>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[u]}else for(n=0,a=o[u];n<h;n++)m=m<<1|1&a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a>>=1;0==--d&&(d=Math.pow(2,h),h++),o[l]=p++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(256>u.charCodeAt(0)){for(n=0;n<h;n++)m<<=1,g==t-1?(g=0,f.push(r(m)),m=0):g++;for(n=0,a=u.charCodeAt(0);n<8;n++)m=m<<1|1&a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a>>=1}else{for(n=0,a=1;n<h;n++)m=m<<1|a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a=0;for(n=0,a=u.charCodeAt(0);n<16;n++)m=m<<1|1&a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a>>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[u]}else for(n=0,a=o[u];n<h;n++)m=m<<1|1&a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a>>=1;0==--d&&(d=Math.pow(2,h),h++)}for(n=0,a=2;n<h;n++)m=m<<1|1&a,g==t-1?(g=0,f.push(r(m)),m=0):g++,a>>=1;for(;;){if(m<<=1,g==t-1){f.push(r(m));break}g++}return f.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,r,n){var a,i,o,s,c,l,u,d=[],p=4,h=4,f=3,m="",g=[],y={val:n(0),position:r,index:1};for(a=0;a<3;a+=1)d[a]=a;for(o=0,c=4,l=1;l!=c;)s=y.val&y.position,y.position>>
1990=1,0==y.position&&(y.position=r,y.val=n(y.index++)),o|=(s>0)*l,l<<=1;switch(o){case 0:for(o=0,c=256,l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),o|=(s>0)*l,l<<=1;u=e(o);break;case 1:for(o=0,c=65536,l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),o|=(s>0)*l,l<<=1;u=e(o);break;case 2:return""}for(d[3]=u,i=u,g.push(u);;){if(y.index>t)return"";for(o=0,c=Math.pow(2,f),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),o|=(s>0)*l,l<<=1;switch(u=o){case 0:for(o=0,c=256,l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),o|=(s>0)*l,l<<=1;d[h++]=e(o),u=h-1,p--;break;case 1:for(o=0,c=65536,l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),o|=(s>0)*l,l<<=1;d[h++]=e(o),u=h-1,p--;break;case 2:return g.join("")}if(0==p&&(p=Math.pow(2,f),f++),d[u])m=d[u];else{if(u!==h)return null;m=i+i.charAt(0)}g.push(m),d[h++]=i+m.charAt(0),p--,i=m,0==p&&(p=Math.pow(2,f),f++)}}};return i}();void 0===(n=(function(){return a}).call(t,r,t,e))||(e.exports=n)},79485:e=>{e.exports={container:"price-banner_container__ugc5J",promotion:"price-banner_promotion__LClz8",project:"price-banner_project__e3K5o",spa:"price-banner_spa__Ld2ox",priceVariantAndDescriptionContainer:"price-banner_priceVariantAndDescriptionContainer__Z7m9H",promotionLink:"price-banner_promotionLink__bJ02U",iconContainer:"price-banner_iconContainer__ilTxU",labelText:"price-banner_labelText__lpTHB",descriptionText:"price-banner_descriptionText__rhUIa"}},79526:(e,t,r)=>{"use strict";r.d(t,{c:()=>g}),r(60004);var n=r(59100),a=r(35695),i=r(88088),o=r(82726),s=r(68915),c=r(86263),l=r(39683),u=r.n(l),d=r(60072);let p=({title:e,description:t,isLoggedIn:r})=>(0,d.jsxs)("span",{className:u().menuItemInner,children:[(0,d.jsx)(n.D,{as:"h3",children:e}),t&&r&&(0,d.jsx)(i.E,{size:"body-2",color:"subtle",children:t})]}),h=({id:e,title:t,description:r,onClick:n,href:a,app:i,icon:l})=>{let{user:h,isLoggedIn:f}=(0,s.Z2)();if(!a&&!n)return null;let m=t===h?.name?"myprofile-menu-item":`${e}-menu-item`;if(!a)return(0,d.jsx)("li",{children:(0,d.jsx)(o.$,{className:u().menuItem,onClick:n,variant:"unstyled",fullWidth:!0,icon:l??"chevron-right",iconPosition:"right","data-testid":m,children:(0,d.jsx)(p,{title:t,description:r,isLoggedIn:f})})});let g=n?"unstyled":void 0;return(0,d.jsx)("li",{children:l?(0,d.jsx)(c.w,{className:u().menuItem,href:a,app:i,onClick:n,"data-testid":m,icon:l,variant:g,children:(0,d.jsx)(p,{title:t,description:r,isLoggedIn:f})}):(0,d.jsx)(c.w,{className:u().menuItem,href:a,app:i,onClick:n,"data-testid":m,variant:g,children:(0,d.jsx)(p,{title:t,description:r,isLoggedIn:f})})})};var f=r(7495),m=r.n(f);let g=({listTitle:e,listItems:t,hasBorderBottom:r=!1,closeDrawer:i})=>t&&0!==t.length?(0,d.jsxs)("div",{className:(0,a.A)(m().menuList,r?m().menuListBorderBottom:m().menuListBorderTop),children:[e&&(0,d.jsx)(n.D,{color:"subtlest",as:"h2",children:e}),(0,d.jsx)("ul",{"data-testid":"menu-list",children:t.map(({id:e,title:t,description:r,onClick:n,href:a,app:o,icon:s})=>(0,d.jsx)(h,{id:e,title:t,description:r,href:a,onClick:()=>{n?.(),i?.()},app:o,icon:s},e))})]}):null},80039:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=new Map;function a(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},80109:(e,t,r)=>{"use strict";r.d(t,{mg:()=>f});var n=r(12072);r(60004);var a=r(21115),i=r.n(a),o=r(3446),s=r(48979),c=r(51311),l=r(16863),u=r(60072);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let p=i()(()=>r.e(6428).then(r.bind(r,26428)).then(e=>e.AnchorRenderer),{ssr:!1,loadableGenerated:{webpack:()=>[26428]}}),h={[o.d.ANCHOR]:p,[o.d.SUP]:(0,s.f)("sup"),[o.d.SUB]:(0,s.f)("sub"),[o.d.STRONG]:(0,s.f)("strong"),[o.d.EM]:(0,s.f)("em")},f=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1990t%2?d(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({[o.d.PARAGRAPH]:c.u,[o.d.OL]:(0,s.f)("ol"),[o.d.UL]:(0,s.f)("ul"),[o.d.LI]:(0,s.f)("li"),[o.d.BR]:()=>(0,u.jsx)("br",{}),[o.d.HEADING_1]:(0,l.w)("h1"),[o.d.HEADING_2]:(0,l.w)("h2"),[o.d.HEADING_3]:(0,l.w)("h3"),[o.d.HEADING_4]:(0,l.w)("h4"),[o.d.HEADING_5]:(0,l.w)("h5")},h)},80174:(e,t,r)=>{"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(34567));e.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=n.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,r=e.events,n=e.dataLayer,a=e.dataLayerName,i=e.auth,o=e.preview,s=this.gtm({id:t,events:void 0===r?{}:r,dataLayer:n||void 0,dataLayerName:void 0===a?"dataLayer":a,auth:void 0===i?"":i,preview:void 0===o?"":o});n&&document.head.appendChild(s.dataScript),document.head.insertBefore(s.script(),document.head.childNodes[0]),document.body.insertBefore(s.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,r=e.dataLayerName,a=void 0===r?"dataLayer":r;if(window[a])return window[a].push(t);var i=n.default.dataLayer(t,a),o=this.dataScript(i);document.head.insertBefore(o,document.head.childNodes[0])}}},80389:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},80424:(e,t,r)=>{"use strict";r.d(t,{c:()=>P});var n=r(22951),a=r(75132),i=r(23719);class o{canHandle(e){return e.isMarketplaceItem&&e.stockType===n.MM.PICKUP}getLabel(e){}}class s{canHandle(e){return e.stockData?.stockVariation===n.dd.UNKNOWN||e.isStockError}getLabel(e){return e.t("catalog.stock.notAvailable")}}class c{canHandle(e){return!e.displayDeliveryPromise}getLabel(e){}}class l{canHandle(e){return e.isExtendedDeliveryOnly}getLabel(e){return e.stockData?.extendedDelivery?e.isDisplayedMultiCdcPromiseLabel?e.t("catalog.stockIndicator.secondDeliveryLabel"):e.dateLabel:"-"}}class u{canHandle(e){return e.stockData?.stockVariation===n.dd.NO_STOCK&&!!e.stockData?.hasDeliveryRange}getLabel(e){return e.dateLabel}}class d{canHandle(e){return e.stockData?.stockVariation===n.dd.NO_STOCK&&!e.stockData?.hasDeliveryRange}getLabel(e){let{dateLabel:t,t:r,stockType:a}=e;return a===n.MM.DELIVERY?r("catalog.deliveryPromise.restockDate",{dateLabel:t}):`${r("catalog.deliveryPromise.restock")} ${t}`}}class p{canHandle(e){return e.useSimplifiedPlpLabels&&!e.isPDP&&(e.stockData?.stockVariation===n.dd.NO_STOCK||e.stockData?.stockVariation===n.dd.ON_DEMAND||e.stockData?.stockVariation===n.dd.UNKNOWN)}getLabel(e){return e.t("catalog.stock.checkPDPForDetailedInfo")}}class h{canHandle(e){return e.stockData?.stockVariation===n.dd.ON_DEMAND}getLabel(e){return e.t("catalog.stock.onDemand")}}class f{canHandle(e){return!0}getLabel(e){return e.dateLabel}}class m{constructor(){this.strategies=[new o,new p,new s,new c,new l,new u,new d,new h,new f]}resolve(e){for(let t of this.strategies)if(t.canHandle(e))return t.getLabel(e);return e.dateLabel}}class g{canHandle(e){return e.stockType===n.MM.DELIVERY&&e.isExtendedDeliveryOnly}getIcon(){return"warehouse"}}class y{canHandle(e){return e.stockType===n.MM.DELIVERY}getIcon(){return"truck"}}class v{canHandle(e){return e.stockType===n.MM.PICKUP&&e.isStoreAndLocker}getIcon(){return"store-locker"}}class b{canHandle(e){return e.stockType===n.MM.PICKUP&&e.isLockerOnly&&e.isStockLocatorContext&&!e.hasLockerOnlyStatus}getIcon(){return"locker"}}class _{canHandle(e){return e.stockType===n.MM.PICKUP&&e.hasLockerOnlyStatus}getIcon(){return"locker"}}class O{canHandle(e){return e.stockType===n.MM.PICKUP&&e.isLockerOnly&&!e.isStockLocatorContext}getIcon(){return"truck"}}class C{canHandle(e){return e.stockType===n.MM.PICKUP}getIcon(){return"store"}}class E{constructor(){this.strategies=[new g,new y,new v,new _,new b,new O,new C]}resolve(e){for(let t of this.strategies)if(t.canHandle(e))return t.getIcon(e)}}let w=()=>({label:new m,icon:new E});class P{static resolvers=w();
1990static setResolvers(e){this.resolvers=e}static resetResolvers(){this.resolvers=w()}static getIcon(e,t,r,n,a,o){let s=(0,i.C3)(e);return this.resolvers.icon.resolve({stockType:s,isExtendedDeliveryOnly:t,isStoreAndLocker:r,isLockerOnly:n,hasLockerOnlyStatus:a,isStockLocatorContext:!!o})}static getLabel(e,t,r,n,a,o,s,c,l,u,d){let p=(0,i.C3)(c);return this.resolvers.label.resolve({stockData:e,displayDeliveryPromise:t,isExtendedDeliveryOnly:r,isMarketplaceItem:n,dateLabel:a,isStockError:o,t:s,stockType:p,isDisplayedMultiCdcPromiseLabel:l,isPDP:d,useSimplifiedPlpLabels:u??!1})}static getQuantityRepresentation(e,t,r){if(t)return null==r?a.D.DOT:a.D.CHIP;switch(e){case n.dd.ON_DEMAND:case n.dd.UNSTOCKED:return a.D.DOT;default:return a.D.CHIP}}static buildStockObject(e){let{stockData:t,stockType:r,useExtendedDelivery:n,representation:a,isSecondStock:o=!1,showOrderBefore:s=!1,displayDeliveryPromise:c,displayMultiCdcPromiseLabel:l,stockError:u,isMarketplaceItem:d,t:p,isSimplifiedPlpLabelEnabled:h,isPDP:f}=e,m=n?t?.extendedDelivery?.date:t?.date,g=n?!!t?.extendedDelivery?.date:t?.hasDeliveryRange,y="";if(o)y=l?p("catalog.stockIndicator.secondDeliveryLabel"):this.formatDateConsistently((0,i.Z5)(m,p),p);else{let e=this.formatDateConsistently(m?.toString(),p),a=t?.orderBefore&&s?`${p(t.orderBefore.label)} ${t.orderBefore.value}`:null,o=s&&a?`${e} ${a}`:e,v=g?(0,i.Z5)(m,p):o;y=this.getLabel(t,c,n,d,v,u,p,r,l,h,f)}return{label:y,quantity:n?t?.extendedDelivery?.quantity:t?.quantity,type:r,representation:a}}static formatDateConsistently(e,t){if(!e)return"";let r=t(e);if(r.includes("/")){let e=r.split("/");if(e.length>=2)return e[0]=e[0].padStart(2,"0"),e[1]=e[1].padStart(2,"0"),e.join("/")}return r}}},80526:e=>{e.exports={image:"attribute-icon-image_image__k8cNu"}},80973:(e,t,r)=>{var n=r(59703);e.exports=function(e,t){var r=this.__data__,a=n(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}},81106:e=>{e.exports={container:"product-title_container__guO7h"}},81444:(e,t,r)=>{e.exports=r(1282)(Object,"create")},81447:(e,t,r)=>{"use strict";r.d(t,{AU:()=>c,I_:()=>o,OI:()=>u,Tw:()=>d,Zq:()=>l,fu:()=>i,sS:()=>s});var n=r(69120),a=r(89034);let i=e=>{let t=e?.attributeSuggestions?.filter(e=>e?.attributeType==="suggestCategory").slice(0,n.zO)||[];return{categorySuggestions:t,searchSuggestions:e?.searchSuggestionsV3||[],querySuggestions:e?.querySuggestions?.slice(0,n.mW).map(e=>e?.displayText)||[]}},o=e=>{let t=e?.categorySuggestions?.slice(0,n.zO)||[];return{categorySuggestions:t,searchSuggestions:e?.productSuggestions||[],querySuggestions:e?.keywordSuggestions?.slice(0,n.mW)||[]}},s=e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").replace(/ø/g,"o").replace(/æ/g,"ae").replace(/å/g,"a"),c=(e,t,r)=>{let n=e?.name?.split("|"),a=r?e?.name:n?.[0]?.toLowerCase(),i=r?e?.id:n?.[1]?.trim(),o=!!a?.toLowerCase().includes(t?.toLowerCase().trim());return{catTitle:a,catId:i,isSearchQueryInSuggestion:o,searchQueryTrimmed:t?.trim()}},l=e=>{switch(e){case"SoneparAugmentedBrandSeries":return"brand_series";case"SoneparAugmentedBrandCategory":return"brand_category";case"SoneparAugmentedBrandSeriesCategory":return"brand_series_categories";default:return"brand"}},u=(e,t,r=!1)=>{let n=`${e}/${encodeURIComponent(t)}`;if(r){let e=a.env.NEXT_PUBLIC_CACHE_VERSION||"1",t=n.includes("?")?"&":"?";n+=`${t}version=${e}`}return n},d=e=>{try{return decodeURIComponent(e)}catch{return e}}},81687:e=>{e.exports={container:"switch-account-button_container__ZCHgS",buttonContent:"switch-account-button_buttonContent__nBoTS",navigationHeaderButton:"switch-account-button_navigationHeaderButton__4J9JJ",textContainer:"switch-account-button_textContainer__EO9K2",navigationHeaderContent:"switch-account-button_navigationHeaderContent__OMKsr",navigationHeaderIcon:"switch-account-button_navigationHeaderIcon__yAiro",arrows:"switch-account-button_arrows__l8JPl",brandedHeaderIcon:"switch-account-button_brandedHeaderIcon__TvC2W",active:"switch-account-button_active__2U1tL",iconContainer:"switch-account-button_iconContainer__75eeZ",verticalSeparator:"switch-account-button_verticalSeparator__MeisO",hiddenSwitchIcon:"switch-account-button_hiddenSwitchIcon__TEMGn"}},82113:(e,t,r)=>{var n=r(7494),a=r(62062),i=r(13725),o=r(12727),s=/^\[object .+?Constructor\]$/,c=Object.prototype,l=Function.prototype.toString,u=c.hasOwnProperty,d=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(n(e)?d:s).test(o(e))}},82320:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(53779),a=r(85587),i=r(90186),o=r(52856),s=r(60004),c=(0,a.h)(),l=({allowMultiple:e=!0,className:t,items:r,size:a="l",titleLevel:l,...u})=>
1990{let[d,p]=(0,s.useState)(()=>r.flatMap((e,t)=>e.defaultOpen?[t]:[])),h=(0,o.k)("watts-accordion-group"),f=(0,s.useCallback)(t=>{p(r=>e?r.includes(t)?r.filter(e=>e!==t):[...r,t]:r[0]===t?[]:[t])},[e]);return(0,c.jsx)("div",{className:(0,n.$)("watts-accordion-group",t),...u,children:r.map((e,t)=>{let r=`${h}-${t}`;return(0,c.jsx)(i.n,{panelId:r,isExpanded:d.includes(t),onToggle:()=>{f(t)},size:a,titleLevel:l,...e},r)})})};l.displayName="AccordionGroup"},82726:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var n=r(53779),a=r(85587),i=r(12028),o=r(62740),s=r(60004),c=(0,a.h)(),l=(0,s.forwardRef)(({children:e,className:t,disabled:r=!1,floating:a=!1,fullWidth:s=!1,icon:l,iconPosition:u="left",loading:d=!1,rounded:p,selected:h=!1,size:f="m",title:m,type:g="button",variant:y="primary",...v},b)=>(0,c.jsxs)("button",{className:(0,n.$)("watts-button",`watts-button--${f}`,`watts-button--${y}`,{"watts-button--floating":a,"watts-button--full":s,"watts-button--icon-only":!e,"watts-button--loading":d,"watts-button--rounded":p,"watts-button--selected":h},t),disabled:r||d,ref:b,type:g,"aria-label":m,...v,children:[d&&(0,c.jsx)(o.y,{className:"watts-button__spinner","data-testid":"watts-spinner",size:"s"}),l&&"left"===u&&(0,c.jsx)(i.I,{icon:l,...m&&{title:m}}),e,l&&"right"===u&&(0,c.jsx)(i.I,{icon:l,...m&&{title:m}})]}));l.displayName="Button"},82746:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(53779),a=r(85587),i=r(82726),o=r(60004),s=(0,a.h)(),c=({children:e,closeLabel:t,className:r,open:a,...c})=>{let l=(0,o.useRef)(null);return(0,o.useEffect)(()=>{l.current&&(a?(l.current.removeAttribute("open"),l.current.showModal()):l.current.close())},[l,a]),(0,s.jsxs)("dialog",{className:(0,n.$)("watts-dialog-box",r),ref:l,...c,children:[(0,s.jsx)(i.$,{"aria-label":t,variant:"ghost",size:"s",onClick:()=>{l.current&&l.current.close()},icon:"cross-small",title:t}),!!e&&(0,s.jsx)("form",{method:"dialog",children:e})]})};c.displayName="DialogBox"},82755:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(60004);let a=300,i=(e,t=a)=>{let r=(0,n.useRef)(null);return(0,n.useCallback)((...n)=>{null!==r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{null!==r.current&&clearTimeout(r.current),e(...n)},t)},[e,t])}},82967:(e,t,r)=>{"use strict";r.d(t,{Dl:()=>l,O2:()=>u,k_:()=>d});var n=r(54688),a=r(12072),i=r(37504);let o=["page"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l=e=>e?.facilities?.map(e=>c(c({},e?.facility),{},{distance:e?.distance??null}))??null,u=e=>{let t=new Intl.DisplayNames(["en"],{type:"region"});try{return t.of(e)}catch{return i.o}},d=(e,t,r)=>{let a=t.split("?")[0]?.split("#")[0]??"",{page:i}=r,s=(0,n.A)(r,o);if(1===e){let e=new URLSearchParams(s).toString();return e?`${a}?${e}`:a}let l=new URLSearchParams(c(c({},s),{},{page:String(e)})).toString();return`${a}?${l}`}},82979:(e,t,r)=>{"use strict";r.d(t,{G4:()=>s,TS:()=>c,vP:()=>l});var n=r(72555),a=r.n(n),i=r(23134),o=r(55537);let s=e=>{let t=e?.facilityType===i.ki.NationalLocker,r=!!e?.hasChildLocker;return{isLockerOnly:t,isStoreAndLocker:!t&&r}},c=e=>{if(!e)return"store";let{isStoreAndLocker:t,isLockerOnly:r}=s(e);return t?"store-locker":r?"locker":"store"},l=({name:e="",facilityId:t})=>{let r=a()(e,{replacement:"-",strict:!0,trim:!0,lower:!0});return`${o.b.content.store}/${r}-${t}`}},83403:(e,t,r)=>{"use strict";r.d(t,{a7:()=>c,xD:()=>s});var n=r(60004),a=r(48628),i=r(60072);let o=(0,n.createContext)({isSwitchCartDrawerOpen:!1,switchCartProjectId:null,openSwitchCartDrawer:()=>null,closeSwitchCartDrawer:()=>null}),s=({children:e})=>{let{isOpen:t,openDrawer:r,closeDrawer:s}=(0,a.b)(),{0:c,1:l}
1990=(0,n.useState)(null),u=(0,n.useCallback)(({projectId:e}={projectId:null})=>{l(e),r()},[r]),d=(0,n.useCallback)(()=>{l(null),s()},[s]),p=(0,n.useMemo)(()=>({isSwitchCartDrawerOpen:t,switchCartProjectId:c,openSwitchCartDrawer:u,closeSwitchCartDrawer:d}),[t,u,d,c]);return(0,i.jsx)(o.Provider,{value:p,children:e})},c=()=>(0,n.useContext)(o)},83673:(e,t,r)=>{"use strict";r.d(t,{D:()=>E});var n=r(60004),a=r(59100),i=r(88088),o=r(35695),s=r(43207),c=r(7976),l=r(2117),u=r(85582),d=r(9923),p=r(57027),h=r(10468),f=r(86263),m=r(55537),g=r(53926),y=r(70030),v=r(13196),b=r(75778),_=r(73855),O=r.n(_),C=r(60072);let E=({className:e,stores:t,loading:r,error:_,defaultStore:E,setCurrentPage:w,currentPage:P,handleDataReset:I,getHrefByPageNum:x,pagination:S,hideOpenMapButton:T,activeStore:N,getCurrentPosition:A,hasPadding:j=!1,handleSearchAddress:k,onStoreSelection:D,totalNearStoresCount:R,totalStoresCount:L,serverSideStoresList:M})=>{let[F]=(0,s.B)(),$=(0,n.useRef)(null),{isFlagEnabled:B}=(0,c.h)(),{locales_country:U,stores_drawer_pagination_size:V}=(0,c.rD)(),{sendClickStoreLocatorCtaGtmTag:q,sendClickShopInThisStoreCtaGtmTag:G}=(0,l.PB)(),z=M&&M.length>0&&t?.length===0&&!r,H=z?M:t,W=z?M?.length||0:L||R||0,Q=W?Math.ceil(W/V):0,{closeStoreLocator:Y}=(0,b.SA)(),K=()=>{q({ctaType:u.EC.INFORMATION}),Y()};return _?(0,C.jsx)(g.D,{onReload:I}):(0,C.jsxs)("div",{className:e,"data-testid":"store-locator-logged-in",children:[E?(0,C.jsx)(y.U,{store:E,focusRef:$,handleStoreDetailsClick:K,sendClickStoreLocatorCtaGtmTag:q,isSelected:!0,hasPadding:j,"data-testid":"default-store"},"store-locator-card-"+E.facilityId):(0,C.jsx)(v.b,{className:O().defaultStoreSkeleton,hasPadding:j}),(0,C.jsx)("div",{className:(0,o.A)(T&&O().titleContainer,O().openMapContainer,j&&O().padding),children:T?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(a.D,{size:"body-5",weight:"bold","data-testid":"title","data-cs-capture":!0,children:F("storeLocator.title")}),(0,C.jsx)(i.E,{as:"span",color:"subtle",size:"body-2",children:F("storeLocator.subtitle")})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(a.D,{size:"body-3",weight:"bold","data-testid":"title","data-cs-capture":!0,children:F("header.storesDrawer.findOthers")}),B(h.he)&&(0,C.jsx)(f.w,{app:m.b.content.app,icon:"map",variant:"tertiary",size:"s",href:m.b.content.storeLocator,"data-testid":"open-map-button",onClick:Y,children:F("header.storesDrawer.showMap")})]})}),(0,C.jsx)("div",{className:(0,o.A)(T&&O().searchBarMap,O().searchBarDrawer,j&&O().padding),children:(0,C.jsx)(d.R,{onItemClick:k,localesCountry:U,getCurrentPosition:A})}),H?.filter(e=>E?.facilityId!==e.facilityId).map(e=>(0,C.jsx)(y.U,{store:e,handleSelectStore:G,handleStoreDetailsClick:K,sendClickStoreLocatorCtaGtmTag:q,isActive:e?.facilityId===N,hasPadding:j,onStoreSelection:D},"store-locator-card-"+e.facilityId))||null,r&&[...Array(S).keys()].map(e=>(0,C.jsx)(v.b,{hasPadding:j},`store-locator-card-skeleton-${e}`)),!r&&!!Q&&Q>1&&(0,C.jsx)("div",{className:O().pagination,"data-testid":"pagination",children:(0,C.jsx)(p.d,{numberOfPages:Q,currentPage:P+1,onPageChange:e=>{w(e-1),$.current?.scrollTo({top:0}),$.current?.scrollIntoView()},hrefByPageNum:x})})]})}},83944:(e,t,r)=>{"use strict";r.d(t,{Ys:()=>s,bO:()=>o});var n=r(60004),a=r(60072);let i=(0,n.createContext)(null),o=({children:e})=>{let{0:t,1:r}
1990=(0,n.useState)(0),o=(0,n.useMemo)(()=>({numOfBannersDisplayed:t,setNumOfBannersDisplayed:r}),[t]);return(0,a.jsx)(i.Provider,{value:o,children:e})},s=()=>{let e=(0,n.useContext)(i);if(!e)throw Error("HeaderBannerContext must be used within a HeaderBannerProvider");return e}},84033:(e,t,r)=>{var n=r(13725),a=r(92926),i=r(36842),o=Math.max,s=Math.min;e.exports=function(e,t,r){var c,l,u,d,p,h,f=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=c,n=l;return c=l=void 0,f=t,d=e.apply(n,r)}function b(e){var r=e-h,n=e-f;return void 0===h||r>=t||r<0||g&&n>=u}function _(){var e,r,n,i=a();if(b(i))return O(i);p=setTimeout(_,(e=i-h,r=i-f,n=t-e,g?s(n,u-r):n))}function O(e){return(p=void 0,y&&c)?v(e):(c=l=void 0,d)}function C(){var e,r=a(),n=b(r);if(c=arguments,l=this,h=r,n){if(void 0===p)return f=e=h,p=setTimeout(_,t),m?v(e):d;if(g)return clearTimeout(p),p=setTimeout(_,t),v(h)}return void 0===p&&(p=setTimeout(_,t)),d}return t=i(t)||0,n(r)&&(m=!!r.leading,u=(g="maxWait"in r)?o(i(r.maxWait)||0,t):u,y="trailing"in r?!!r.trailing:y),C.cancel=function(){void 0!==p&&clearTimeout(p),f=0,c=h=l=p=void 0},C.flush=function(){return void 0===p?d:O(a())},C}},84167:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p});var n=r(60010),a=r(89475),i=new Map,o=new Map,s=!0,c=!1;function l(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var u=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?u+=t.loc.source.body:u+=t,u+=e[r+1]}),function(e){var t=l(e);if(!i.has(t)){var r,u,d,p,h,f=(0,a.qg)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c});if(!f||"Document"!==f.kind)throw Error("Not a valid GraphQL document.");i.set(t,((p=new Set((r=new Set,u=[],f.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,a=l((t=e.loc).source.body.substring(t.start,t.end)),i=o.get(n);i&&!i.has(a)?s&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||o.set(n,i=new Set),i.add(a),r.has(a)||(r.add(a),u.push(e))}else u.push(e)}),d=(0,n.Cl)((0,n.Cl)({},f),{definitions:u})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&p.add(r)})}),(h=d.loc)&&(delete h.startToken,delete h.endToken),d))}return i.get(t)}(u)}var d={gql:u,resetCaches:function(){i.clear(),o.clear()},disableFragmentWarnings:function(){s=!1},enableExperimentalFragmentVariables:function(){c=!0},disableExperimentalFragmentVariables:function(){c=!1}};!function(e){e.gql=d.gql,e.resetCaches=d.resetCaches,e.disableFragmentWarnings=d.disableFragmentWarnings,e.enableExperimentalFragmentVariables=d.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=d.disableExperimentalFragmentVariables}(u||(u={})),u.default=u;let p=u},84252:(e,t,r)=>{var n=r(59703),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():a.call(t,r,1),--this.size,!0)}},84329:e=>{e.exports={associateBanner:"associate-banner_associateBanner__89HKj",associateBannerHeader:"associate-banner_associateBannerHeader__BShMb",desktopLogo:"associate-banner_desktopLogo__PXsqH",mobileLogo:"associate-banner_mobileLogo__8NgX3",accountAvatar:"associate-banner_accountAvatar__TgWJP",changeClient:"associate-banner_changeClient__1o5mw",account:"associate-banner_account__xiomI",accountName:"associate-banner_accountName__XJHM_",accountText:"associate-banner_accountText__ZtVWv",borderBottom:"associate-banner_borderBottom__D73E4"}},84332:e=>{e.exports={container:"open-app-banner_container__3m_Ne",content:"open-app-banner_content__yq6Ih",iconTextContainer:"open-app-banner_iconTextContainer__8oSYa",brandIcon:"open-app-banner_brandIcon__WuTpy",closeButton:"open-app-banner_closeButton__tidpt"}},84418:(e,t,r)=>{var n=r(32410),a=r(76498);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},84477:(e,t,r)=>{"use strict";r.d(t,{pL:()=>u});var n=r(60004),a=Object.defineProperty,i=(e,t,r)=>((e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),o=new Map,s=new WeakMap,c=0,l=void 0,u=class extends n.Component{constructor(e){super(e),i(this,"node",null),i(this,"_unobserveCb",null),i(this,"handleNode",e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()}),i(this,"handleChange",(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),"function"==typeof this.props.children&&this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:r,trackVisibility:n,delay:a,fallbackInView:i}=this.props;this._unobserveCb=function(e,t,r={},n=l){if(void 0===window.IntersectionObserver&&void 0!==n){let a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}let{id:a,observer:i,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(s.has(r)||(c+=1,s.set(r,c.toString())),s.get(r)):e[t]}`}).toString(),r=o.get(t);if(!r){let n,a=new Map,i=new IntersectionObserver(t=>{t.forEach(t=>{var r;let i=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=a.get(t.target))||r.forEach(e
1990=>{e(i,t)})})},e);n=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:a},o.set(t,r)}return r}(r),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),i.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),i.unobserve(e)),0===u.size&&(i.disconnect(),o.delete(a))}}(this.node,this.handleChange,{threshold:e,root:t,rootMargin:r,trackVisibility:n,delay:a},i)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:t,entry:r}=this.state;return e({inView:t,entry:r,ref:this.handleNode})}let{as:t,triggerOnce:r,threshold:a,root:i,rootMargin:o,onChange:s,skip:c,trackVisibility:l,delay:u,initialInView:d,fallbackInView:p,...h}=this.props;return n.createElement(t||"div",{ref:this.handleNode,...h},e)}}},84517:(e,t,r)=>{"use strict";r.d(t,{p:()=>u});var n=r(12072),a=r(68915),i=r(83673),o=r(74709),s=r(60072);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=({hook:e,defaultStore:t,onStoreSelection:r})=>{let{isLoggedIn:n}=(0,a.Z2)(),c=e();return n?(0,s.jsx)(i.D,l(l({},c),{},{defaultStore:t,onStoreSelection:r})):(0,s.jsx)(o.E,l({},c))}},84742:(e,t,r)=>{"use strict";function n(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}r.d(t,{F:()=>n})},84745:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});let n=function(e){return e.ALREADY_PURCHASED="already_purchased",e.COMPARE_PAGE="Compare Page",e.CONFIGURATOR="configurator",e.DIRECT_PDP="DIRECT PDP",e.DIRECT_PLP="DIRECT PLP",e.DIRECT_PLP_AP="DIRECT_PLP_AP",e.PERSONALIZED_RECOMMENDATION_LIST="personalized_recommendation_list",e.PROJECTS="Projects",e.PROMOTION_PLP="PROMOTION PLP",e.RECOMMENDATION_TOASTER="RECOMMENDATION_TOASTER",e.RELATED_PRODUCTS="RELATED_PRODUCTS",e.REORDER="Reorder",e.SEARCH_PDP="SEARCH PDP",e.SEARCH_PLP="SEARCH PLP",e.SEARCH_RECO_ENGINE="SEARCH_RECO_ENGINE",e.SEARCHBOX="SEARCHBOX",e.SRP="SRP",e.SRP_AP="SRP_AP",e.WISHLIST="Whishlist",e.TABLE_VIEW="TABLE_VIEW",e}({})},84980:(e,t,r)=>{var n=r(63610),a=/[\\^$.*+?()[\]{}|]/g,i=RegExp(a.source);e.exports=function(e){return(e=n(e))&&i.test(e)?e.replace(a,"\\$&"):e}},85451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-gtm]",e)}},85504:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(6513),a=r(16178);function i(e,t){let r=(0,n.q)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=(0,a.a)(e,t?.in),s=o.getDay();return o.setDate(o.getDate()-(7*(s<i)+s-i)),o.setHours(0,0,0,0),o}},85582:(e,t,r)=>{"use strict";r.d(t,{Cm:()=>l,EC:()=>u,FC:()=>f,Us:()=>h,Vg:()=>m,Zc:()=>s,a:()=>b,c6:()=>_,cP:()=>n,f:()=>p,g$:()=>c,h4:()=>v,jn:()=>y,ms:()=>a,oZ:()=>g,oe:()=>o,vN:()=>d,wP:()=>i});let n=function(e){return e.ACCOUNT="account",e.ADD_ALL_TO_WISHLIST="add_all_to_wishlist",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.APPLY_FILTER="apply_filter",e.CHANGE_NOTIFICATION_SETTING="change_notification_setting",e.CLEAR_ALL_FILTERS_DRAWER="clear_all_filters_drawer",e.CLEAR_ALL_FILTERS_SEARCH="clear_all_filters_search",e.CLICK_ACCESSORIES="click_accessories",e.CLICK_CTA="click_cta",e.CLICK_SIMILARS="click_similars",e.CLICK_SUCCESSORS="click_successors",e.CLICK_USER_CREATION="click_user_creation",e.CLICK_WIDGET="click_widget",e.CLOSE_DRAWER="close_drawer",e.CONFIRM_SPA="confirm_spa",e.COPY_REFERENCE="copy_reference",e.CREATE_CART="create_cart",e.DECREASE_CUTS="decrease_cuts",e.DELIVERY_PROMISE="delivery_promise",e.DELIVERY_PROMISE_CLOSE_TOOLTIP="close_tooltip",e.DELIVERY_PROMISE_VIEW_TOOLTIP="view_tooltip",e.DOWNLOAD="download",e.DOWNLOAD_APP="download_app",e.ERROR_SIGN_UP="error_sign_up",e.EXPERIMENT_INFO="experiment_info",e.EXPORT="export",e.EXPORT_FAVORITE_CLICK="export_favorite_click",e.EXPORT_FAVORITE_RESULT="export_favorite_result",e.EXPORT_QUOTES_CLICK="export_quotes_click",e.EXPORT_QUOTES_RESULT="export_quotes_result",e.FORM_
1990SUBMIT="form_submit",e.INCREASE_CUTS="increase_cuts",e.MORE_SHIPMENTS="more_shipments",e.NAVIGATE_SHIPMENT="navigate_shipment",e.OPEN_APP="open_app",e.OPEN_DRAWER="open_drawer",e.OPEN_FILTER="open_filter",e.ORDER_RESEARCH="order_research",e.ORDER_RETURN_ERROR="order_return_error",e.ORDER_SEARCH="order_search",e.PAGEVIEW="pageview",e.PARTNER_LINK="partner_link",e.QUOTE_RESEARCH="quote_research",e.REFUND="refund",e.REMOVE_FROM_WISHLIST="remove_from_wishlist",e.REQUEST_CREDIT_LINE="request_credit_line",e.SELECT_BANNER="select_banner",e.SELECT_CONTENT="select_content",e.SELECT_CUSTOMER_STATUS="select_customer_status",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SHIPMENT_DETAILS="shipment_details",e.SIGNUP_ERROR="sign_up_error",e.SORT_LIST="sort_list",e.STOCK_LOCATOR="stock_locator",e.SUBMIT_SEARCH="submit_search",e.SUBMIT_USER_CREATION="submit_user_creation",e.SWITCH_ACCOUNT="switch_account",e.VIEW_BANNER="view_banner",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_TYPE_UPDATED="view_type_updated",e}({}),a=function(e){return e.ACCOUNT="account",e.ACCOUNT_ORDERS="account_orders",e.AX_ONBOARDING="ax_onboarding",e.BRANDS="brands",e.BROWSE_BRAND_CATEGORY="browse_brand_category",e.BROWSE_BRAND_SERIES="browse_brand_series",e.BROWSE_BRAND_SERIES_CATEGORY="browse_brand_series_category",e.BROWSE_DYNAMIC_CATEGORY="browse_dynamic_category",e.BROWSE_CATALOG="browse_catalog",e.BROWSE_DRAWER="browse_drawer",e.BULK_ADD="bulk_add",e.CART_APPROVAL="cart_approval",e.CHANGE_DELIVERY_ADDRESS="change_delivery_address",e.CHECKOUT="checkout",e.COMPANY_CHECK="company_check",e.CONFIGURATOR="configurator",e.DASHBOARD="dashboard",e.EXPORT="export",e.FAVORITE_LIST="favorite_list",e.HOMEPAGE="homepage",e.MENU="menu",e.MYACCOUNT="my_account",e.OPEN_IN_APP="open-in-app",e.ORDERS="orders",e.PERSONALIZED_CONTENT="personalized_content",e.PDP="pdp",e.PRODUCT_PAGE="product_page",e.PRODUCT_RELATION="product_relation",e.READ_CONTENT="read_content",e.REFERENCE="reference",e.STORE_LOCATOR="store_locator",e.SUBMIT_REGISTRATION="submit_registration",e.TOASTER_RECOMMENDATION="toaster",e.USER_ADDITION="user_addition",e}({}),i=function(e){return e.BRAND="brand",e.BRAND_CATEGORY="brand_category",e.BRAND_SERIES="brand_series",e.BRAND_SERIES_CATEGORIES="brand_series_categories",e.CHECK_AVAILABILITY="check_availability",e.MAKE_YOUR_CUT="make_your_cut",e.MAKE_YOUR_CUT_ADD_NEW="make_your_cut_add_new",e.MAKE_YOUR_CUT_COILED="make_your_cut_coiled",e.MAKE_YOUR_CUT_REMOVE="make_your_cut_remove",e.MAKE_YOUR_CUT_SPOOLED="make_your_cut_spooled",e.MULTIPLE_SERIES="multiple_series",e.PERFECT_MATCH_RESULT="perfect_match_result",e.PLP_CATEGORY_CONTENT="plp_category_content",e.SEARCHBOX="searchbox",e.SPONSORED_PRODUCT="sponsored_product",e}({}),o=function(e){return e.ALREADY_PURCHASED="already_purchased",e.COMPARE_PAGE="Compare Page",e.CONFIGURATOR="configurator",e.DIRECT_PDP="DIRECT PDP",e.DIRECT_PLP="DIRECT PLP",e.DIRECT_PLP_AP="DIRECT_PLP_AP",e.OBT_PDP="OBT PDP",e.PERSONALIZED_RECOMMENDATION_LIST="personalized_recommendation_list",e.PROJECTS="Projects",e.PROMOTION_PLP="PROMOTION PLP",e.RECOMMENDATION_TOASTER="RECOMMENDATION_TOASTER",e.RELATED_PRODUCTS="RELATED_PRODUCTS",e.REORDER="Reorder",e.SEARCH_PDP="SEARCH PDP",e.SEARCH_PLP="SEARCH PLP",e.SEARCH_RECO_ENGINE="SEARCH_RECO_ENGINE",e.SEARCHBOX="SEARCHBOX",e.SIMILAR_GREEN_PDP="SIMILAR GREEN PDP",e.SIMILAR_PDP="SIMILAR PDP",e.SPONSORED_PRODUCT_SRP="sponsored_product_srp",e.SRP="SRP",e.SRP_AP="SRP_AP",e.TABLE_VIEW="TABLE_VIEW",e.WISHLIST="Whishlist",e}({}),s=function(e){return e.CONFIGURATOR="configurator",e.ECOMMERCE_CONNECTOR="ecommerce_connector",e}({}),c=function(e){return e.ACCOUNT="account",e.ACCOUNT_ACTIVATION="account_activation",e.ACCOUNT_ASSOCIATED_HOMEPAGE="account_associated_homepage",e.ACCOUNT_DRAWER="my_account",e.AUTHENTICATION="authentication",e.AUTHENTICATION_ACCOUNT_ASSOCIATE="authentication_account_associate",e.BRAND="brand",e.CATALOG="catalog",e.CHECKOUT="checkout",e.CONTENT="content",e.CREATE_ACCOUNT="create_account",e.ERROR="error",e.EXPORT="export",e.FASTONBOARDING="fastonboarding",e.HOMEPAGE="homepage",e.INDIVIDUAL_SHIPMENT="individual_shipment",e.ORDERS="orders",e.OTHER_PAGES="other_pages",e.pageType="pageType",e.SEARCH="search",e.SELLER="seller",e.SERVICES="services",e.SIGNUP="sign_up",e}({}),l=function(e){return e.ABOUT_SONEPAR="about_sonepar",e.ACCOUNT_ACTIVATION_SUCCESS="activate_success",e.ACCOUNT_ASSOCIATED="account_associated",e.ACCOUNT_CREATE="create_account",e.ACCOUNT_CREATE_COMPANY="company",e.ACCOUNTS_ASSOCIATED_APP="accounts_associated_app",e.ADD_USER="add_user",e.ADD_USER_COMPLETED="add_user_completed",e.ADDRESSES="addresses",e.ALREADY_PURCHASED="already_purchased",e.ARTICLE="article",e.AWAITING_APPROVAL_CARTS="cart_approval",e.AX_ONBOARDING_FORM="ax_onboarding_form",e.BLANKET_ORDER_DETAIL="blanket_order_detail",e.BEGIN_CHECKOUT="begin_checkout",e.BLANKET_ORDERS_LIST="blanket_order_list",e.BRANDS="brands",e.CART="cart",e.COMPARE="compare",e.CONFIGURATOR="configurator",e.CONFIGURATOR_LIST="configurator_list",e.CONTACT="contact",e.CONTACT_DETAILS="contact_details",e.COOKIES_POLICY="cookie_management",e.CREDIT_INFORMATION="credit_information",e.DATA_PRIVACY="privacy_policy",e.DELIVERY_NOTES="delivery_notes",e.EDIT_USER_ACCOUNT="edit_user_account",e.FAQ="faq",e.FAVORITE_LIST="favorite_list",e.FIND_A_STORE="find_a_store",e.HOMEPAGE="homepage",e.INVOICE_CREDIT_HISTORY="invoices",e.LANDING_PAGE="landing_page",e.LEGAL_NOTICES="legal_notices",e.
1990LIST="list",e.LOGIN="login",e.LOGISTIC="logistic",e.MANAGE_SPA="manage_spa",e.NO_ACCOUNT="no_account",e.ORDER_CONFIRMATION="order_confirmation",e.ORDERS="orders",e.ORDERS_CALENDAR="orders_calendar",e.OTHER="other",e.PACKAGING_RETURNS="packaging_returns",e.PAYMENT_DETAILS="payment_details",e.PAYMENT_SUCCESS="payment_success",e.PDP="pdp",e.PLP="plp",e.PLP_AP="plp_ap",e.PRODUCT_RETURN_CONFIRMATION="product_return-confirmation",e.PRODUCT_RETURN_CUSTOMER_INFO="product_return-location_and_contact",e.PRODUCT_RETURN_DASHBOARD="product_return-dashboard",e.PRODUCT_RETURN_EMPTY_FIELD="product_return-empty_field",e.PRODUCT_RETURN_OVERVIEW="product_return-landing",e.PRODUCT_RETURN_PICKUP_DATE="product_return-pickup_date",e.PRODUCT_RETURN_REVIEW="product_return-review",e.PRODUCT_RETURN_SELECT="product_return-select",e.PRODUCT_RETURN_WARRANTY_INFO="product_warranty_details",e.PROJECTS="projects",e.QUOTE_BUILDER="quote_builder",e.QUOTE_REQUEST="quote_request",e.QUOTES="quotes",e.SETTINGS="settings",e.SETTINGS_PRICE_PREFERENCES="settings_price_preferences",e.SETTINGS_SALES_REP="settings_sales_rep",e.SIGNUP_COMPLETE="sign_up_complete",e.SPECIFIC_ORDER="specific_order",e.SPECIFIC_PROJECT="specific_project",e.SPECIFIC_QUOTE="specific_quote",e.SPECIFIC_USER="specific_user",e.SRP="srp",e.SRP_AP="srp_ap",e.STORE_LOCATOR="store_locator",e.SUBSCRIPTION="subscription",e.SUCCESS_PAGE="success_page",e.SWITCH_CART="switch_cart",e.TERMS_AND_CONDITIONS="sales_conditions",e.TO_BE_DELIVERED="to_be_delivered",e.USER="user",e.USER_MENU="user_menu",e.USERS_ASSOCIATED_APP="users_associated_app",e.VERIFICATION="verification",e.VERIFICATION_COMPLETE="verification_complete",e.ZERO_RESULTS="zero_results",e}({}),u=function(e){return e.CALL="call",e.DECREASE_CUTS="decrease_cuts",e.DECREASE_QUANTITY="decrease_quantity",e.INCREASE_CUTS="increase_cuts",e.INCREASE_QUANTITY="increase_quantity",e.INFORMATION="information",e.ITINERARY="itinerary",e}({}),d=function(e){return e.NO="no",e.NONE="na",e.UNKNOWN="unknown",e.YES="yes",e}({}),p=function(e){return e.FT_NEXT_DAY="ft_nextday",e.FT_SAME_DAY="ft_sameday",e.MORE_1_DAY="more1day",e.NBB="nbb",e.OOS="oos",e}({}),h=function(e){return e.CATEGORY="category",e.LINK="link",e}({}),f=function(e){return e.ACCESSORIES="accessories",e.ALREADY_PURCHASED="already_purchased",e.HOMEPAGE="homepage",e.RECOMMENDED="recommended",e}({}),m=function(e){return e.ASSOCIATE="associated_user",e.CUSTOMER="customer",e}({}),g="guest",y=function(e){return e.HAS_ACCESSORIES="has_accessories",e.HAS_SIMILARS="has_similars",e.HAS_SUCCESSORS="has_successors",e.SIMILARS="similars",e}({}),v=e=>e?.__typename==="Products",b=function(e){return e.GENERAL="general",e.TECHNICAL="technical",e.TOGGLE="toggle",e}({}),_=function(e){return e[e.ACTIVE=1]="ACTIVE",e[e.INACTIVE=0]="INACTIVE",e}({})},85587:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(57082),a=r(77852),i=(0,n.Ft)(e=>{var t=(0,a.W)(),r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var a,c={},l=null,u=null;for(a in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,a)&&!s.hasOwnProperty(a)&&(c[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===c[a]&&(c[a]=t[a]);return{$$typeof:r,type:e,key:l,ref:u,props:c,_owner:o.current}}e.Fragment=n,e.jsx=c,e.jsxs=c});i();var o=(0,n.Ft)((e,t)=>{t.exports=i()});o()},85648:(e,t,r)=>{"use strict";r.d(t,{M:()=>p});var n=r(12072),a=r(54688),i=r(94867),o=r(76162),s=r(22951),c=r(92342);let l=["amount","displayAmount"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEac
1990h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=({prices:e,productDocList:t,accountPricePreference:r,userPricePermissions:n,productViewPage:u},p)=>{let h=(0,i.Fo)(r,n,u),f=(0,o.qE)(p,e.formattedPrice),m=(0,c.EM)(p,t),g=m&&(0,c.Zp)({marketplaceData:f?.marketplaceData,productData:m})||{},y=!!(g?.priceDisplayMultiplier&&g?.priceDisplayMultiplier>0),v=f?.taxes?.filter(e=>e.surcharge).map(e=>{let{amount:t,displayAmount:r}=e;return d({taxAmount:y?r??t:t},(0,a.A)(e,l))})??[],b={priceDisplay:h,taxes:v,price:{listPrice:y?f?.priceBlock?.displayListPrice??f?.priceBlock?.listPrice:f?.priceBlock?.listPrice,netPrice:y?f?.priceBlock?.displayNetPrice??f?.priceBlock?.netPrice:f?.priceBlock?.netPrice},priceDisplayMultiplier:y?g?.priceDisplayMultiplier??void 0:void 0,contentUnit:y?g?.contentUnit??void 0:void 0},_=f?.priceBlock.bestPrice,O=_?.context,C=O?.type===s.JH.Promotion;return _&&O&&C&&(b.price=d(d({},b.price),{},{promotionalListPrice:y?_?.displayListPrice??_.listPrice:_.listPrice,promotionalNetPrice:y?_?.displayNetPrice??_.netPrice:_.netPrice,promotionalNetPercentage:O.promotionDetails?.promotionalNetPercentageDecimal,promotionalListPercentage:O.promotionDetails?.promotionalListPercentage})),b}},86162:(e,t,r)=>{"use strict";r.d(t,{K$:()=>i,K4:()=>l,Mn:()=>s,uR:()=>o});var n=r(60010);r(68265);var a=r(9073),i=Symbol();function o(e){return!!e.extensions&&Array.isArray(e.extensions[i])}function s(e){return e.hasOwnProperty("graphQLErrors")}var c=function(e){var t=(0,n.fX)((0,n.fX)((0,n.fX)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,a.U)(e)&&e.message||"Error message not found."}).join("\n")},l=function(e){function t(r){var a=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,s=r.networkError,l=r.errorMessage,u=r.extraInfo,d=e.call(this,l)||this;return d.name="ApolloError",d.graphQLErrors=a||[],d.protocolErrors=i||[],d.clientErrors=o||[],d.networkError=s||null,d.message=l||c(d),d.extraInfo=u,d.cause=(0,n.fX)((0,n.fX)((0,n.fX)([s],a||[],!0),i||[],!0),o||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}return(0,n.C6)(t,e),t}(Error)},86263:(e,t,r)=>{"use strict";r.d(t,{w:()=>g});var n=r(12072),a=r(54688),i=r(60004),o=r(69222),s=r(17698),c=r.n(s),l=r(10983),u=r(55537),d=r(52238),p=r(60072);let h=["app","asParam","className","children","forceRefresh","href","variant","queryString","onClick","noLocale","hasWrapperLocale"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let g=(0,i.forwardRef)((e,t)=>{let{app:r,asParam:n,className:i,children:s,forceRefresh:f=!1,href:g,variant:y,queryString:v,onClick:b,noLocale:_=!1,hasWrapperLocale:O=!0}=e,C=(0,a.A)(e,h),{basePath:E}=(0,l.useRouter)(),w=(0,d.$)(r,n||g,f,v,_)||"#",P=E?.substring(1)||u.b.content.app,I=!!(r&&P!==r),x=!!(f||I&&(b||w)),S=m({ref:t,variant:y,className:i,onClick:b},C);if(x)return(0,p.jsx)(o.N,m(m({href:w},S),{},{children:s}));let T=m(m({},S),O?{}:{locale:!1});return(0,p.jsx)(o.N,m(m({as:c(),href:w},T),{},{children:s}))})},86713:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({initials:e,name:t,size:r="m",src:i,className:o,...s})=>{let c=e?e.slice(0,2):(e=>{let t=(e??"").split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)})(t);return(0,a.jsxs)("figure",{className:(0,n.$)("watts-avatar",`watts-avatar--${r}`,o),role:"presentation",...s,children:[!!i&&(0,a.jsx)("img",{src:i,alt:""}),(0,a.jsx)("figcaption",{children:c})]})};i.displayName="Avatar"},86800:(e,t,r)=>{"use strict";r.d(t,{_:()=>m});var n=r(12072),a=r(54688),i=r(60004),o=r(52304),s=r(35695),c=r(63463),l=r.n(c);let u=e=>"number"==typeof e||void 0===e?e:"string"==typeof e&&/^\d+$/.test(e)?parseInt(e,10):NaN;var d=r(60072);let p=["className","alt","fill","width","height","loading"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1990t%2?h(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=(0,i.forwardRef)((e,t)=>{(e=>{try{e.fill?(({width:e,height:t,style:r,src:n})=>{if(e)throw Error(`Image with src "${n}" has both "width" and "fill" properties. Only one should be used.`);if(t)throw Error(`Image with src "${n}" has both "height" and "fill" properties. Only one should be used.`);if((null==r?void 0:r.position)&&"absolute"!==r.position)throw Error(`Image with src "${n}" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.`);if((null==r?void 0:r.width)&&"100%"!==r.width)throw Error(`Image with src "${n}" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.`);if((null==r?void 0:r.height)&&"100%"!==r.height)throw Error(`Image with src "${n}" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.`)})(e):(({width:e,height:t,src:r})=>{let n=u(e),a=u(t);if(void 0===n)throw Error(`Image with src "${r}" is missing required "width" property.`);if(isNaN(n))throw Error(`Image with src "${r}" has invalid "width" property. Expected a numeric value in pixels but received "${e}".`);if(void 0===a)throw Error(`Image with src "${r}" is missing required "height" property.`);if(isNaN(a))throw Error(`Image with src "${r}" has invalid "height" property. Expected a numeric value in pixels but received "${t}".`)})(e)}catch(e){console.error(e)}})(e);let{className:r,alt:n,fill:i,width:c,height:h,loading:m="lazy"}=e,g=(0,a.A)(e,p),y=(0,d.jsx)(o._,f(f({"data-testid":"lazy-image",className:(0,s.A)(r,l().image,{[l().imageFilled]:i}),loading:m,alt:n??""},i?void 0:{width:c,height:h}),g));return t?(0,d.jsx)("div",{ref:t,className:l().imageContainer,children:y}):y})},86987:(e,t,r)=>{"use strict";r.d(t,{Er:()=>I,kk:()=>N,t_:()=>x,$X:()=>A,IT:()=>E,SX:()=>P});var n=r(60010);r(68265);var a=r(36215),i=r.t(a,2),o=r(41986),s=i.useSyncExternalStore||function(e,t,r){var n=t(),i=a.useState({inst:{value:n,getSnapshot:t}}),s=i[0].inst,l=i[1];return o.JR?a.useLayoutEffect(function(){Object.assign(s,{value:n,getSnapshot:t}),c(s)&&l({inst:s})},[e,n,t]):Object.assign(s,{value:n,getSnapshot:t}),a.useEffect(function(){return c(s)&&l({inst:s}),e(function(){c(s)&&l({inst:s})})},[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var l=r(39864),u=r(47017),d=r(66192),p=r(86162),h=r(63006),f=r(39418),m=r(32006),g=r(39948),y=r(47269),v=r(28088),b=Symbol.for("apollo.hook.wrappers"),_=Object.prototype.hasOwnProperty;function O(){}var C=Symbol();function E(e,t){var r,n,a,i;return void 0===t&&(t=Object.create(null)),(r=w,(i=(a=(n=(0,m.m)(t&&t.client).queryManager)&&n[b])&&a.useQuery)?i(r):r)(e,t)}function w(e,t){var r=P(e,t),i=r.result,o=r.obsQueryFields;return a.useMemo(function(){return(0,n.Cl)((0,n.Cl)({},i),o)},[i,o])}function P(e,t){var r,i,o,c,u,p,g,y,v,b,E,w,P,N,D,R,L,M,F,$,B,U,V=(0,m.m)(t.client),q=a.useContext((0,d.l)()).renderPromises,G=!!q,z=V.disableNetworkFetches,H=!1!==t.ssr&&!t.skip,W=t.partialRefetch,Q=I(V,e,t,G),Y=function(e,t,r,i,o){function s(n){var a;return(0,f.D$)(t,f.KG.Query),{client:e,query:t,observable:i&&i.getSSRObservable(o())||e.watchQuery(x(void 0,e,r,o())),resultData:{previousData:null==(a=null==n?void 0:n.resultData.current)?void 0:a.data}}}var c=a.useState(s),l=c[0],u=c[1];function d(e){Object.assign(l.observable,((t={})[C]=e,t));var t,r,a=l.resultData;u((0,n.Cl)((0,n.Cl)({},l),{query:e.query,resultData:Object.assign(a,{previousData:(null==(r=a.current)?void 0:r.data)||a.previousData,current:void 0})}))}if(e!==l.client||t!==l.query){var p=s(l);return u(p),[p,d]}return[l,d]}(V,e,t,q,Q),K=Y[0],J=K.observable,Z=K.resultData,X=Y[1],ee=Q(J);r=Z,i=J,o=V,c=t,u=ee,i[C]&&!(0,l.L)(i[C],u)&&(i.reobserve(x(i,o,c,u)),r.previousData=(null==(p=r.current)?void 0:p.data)||r.previousData,r.current=void 0),i[C]=u;var et=a.useMemo(function(){var e;return{refetch:(e=J).refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[J]);return g=J,y=q,v=H,y&&v&&(y.registerSSRObservable(g),g.getCurrentResult().loading&&y.addObservableQueryPromise(g)),{result:(b=Z,E=J,w=V,P=t,N=ee,D=z,R=W,L=G,M={onCompleted:t.onCompleted||O,onError:t.onError||O},F=a.useRef(M),a.useEffect(function(){F.current=M}),$=(L||D)&&!1===P.ssr&&!P.skip?j:P.skip||"standby"===N.fetchPolicy?k:void 0,B=b.previousData,U=a.useMemo(function(){return $&&A($,B,E,w)},[w,E,$,B]),s(a.useCallback(function(e){if(L)return function(){};var t=function(){var t=b.current,r=E.getCurrentResult();t&&t.loading===r.loading&&t.networkStatus===r.networkStatus&&(0,l.L)(t.data,r.data)||S(r,b,E,w,R,e,F.current)}
1990,r=function(a){if(n.current.unsubscribe(),n.current=E.resubscribeAfterError(t,r),!_.call(a,"graphQLErrors"))throw a;var i=b.current;(!i||i&&i.loading||!(0,l.L)(a,i.error))&&S({data:i&&i.data,error:a,loading:!1,networkStatus:h.pT.error},b,E,w,R,e,F.current)},n={current:E.subscribe(t,r)};return function(){setTimeout(function(){return n.current.unsubscribe()})}},[D,L,E,b,R,w]),function(){return U||T(b,E,F.current,R,w)},function(){return U||T(b,E,F.current,R,w)})),obsQueryFields:et,observable:J,resultData:Z,client:V,onQueryExecuted:X}}function I(e,t,r,a){void 0===r&&(r={});var i=r.skip,o=(r.ssr,r.onCompleted,r.onError,r.defaultOptions),s=(0,n.Tt)(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(r){var n=Object.assign(s,{query:t});return a&&("network-only"===n.fetchPolicy||"cache-and-network"===n.fetchPolicy)&&(n.fetchPolicy="cache-first"),n.variables||(n.variables={}),i?(n.initialFetchPolicy=n.initialFetchPolicy||n.fetchPolicy||N(o,e.defaultOptions),n.fetchPolicy="standby"):n.fetchPolicy||(n.fetchPolicy=(null==r?void 0:r.options.initialFetchPolicy)||N(o,e.defaultOptions)),n}}function x(e,t,r,n){var a=[],i=t.defaultOptions.watchQuery;return i&&a.push(i),r.defaultOptions&&a.push(r.defaultOptions),a.push((0,g.o)(e&&e.options,n)),a.reduce(u.l)}function S(e,t,r,a,i,o,s){var c,l,u,d=t.current;d&&d.data&&(t.previousData=d.data),!e.error&&(0,y.E)(e.errors)&&(e.error=new p.K4({graphQLErrors:e.errors})),t.current=A((c=e,l=r,u=i,c.partial&&u&&!c.loading&&(!c.data||0===Object.keys(c.data).length)&&"cache-only"!==l.options.fetchPolicy?(l.refetch(),(0,n.Cl)((0,n.Cl)({},c),{loading:!0,networkStatus:h.pT.refetch})):c),t.previousData,r,a),o(),function(e,t,r){if(!e.loading){var n,a=(n=e,(0,y.E)(n.errors)?new p.K4({graphQLErrors:n.errors}):n.error);Promise.resolve().then(function(){a?r.onError(a):e.data&&t!==e.networkStatus&&e.networkStatus===h.pT.ready&&r.onCompleted(e.data)}).catch(function(e){})}}(e,null==d?void 0:d.networkStatus,s)}function T(e,t,r,n,a){return e.current||S(t.getCurrentResult(),e,t,a,n,function(){},r),e.current}function N(e,t){var r;return(null==e?void 0:e.fetchPolicy)||(null==(r=null==t?void 0:t.watchQuery)?void 0:r.fetchPolicy)||"cache-first"}function A(e,t,r,a){var i=e.data,o=(e.partial,(0,n.Tt)(e,["data","partial"]));return(0,n.Cl)((0,n.Cl)({data:i},o),{client:a,observable:r,variables:r.variables,called:e!==j&&e!==k,previousData:t})}var j=(0,v.G)({loading:!0,data:void 0,error:void 0,networkStatus:h.pT.loading}),k=(0,v.G)({loading:!1,data:void 0,error:void 0,networkStatus:h.pT.ready})},87285:(e,t,r)=>{"use strict";r.d(t,{N:()=>C});var n=r(60004),a=r(10983),i=r(43207),o=r(75778),s=r(5185),c=r(12072),l=r(52304),u=r(39624),d=r(88088),p=r(59100),h=r(82726),f=r(35695),m=r(96827),g=r.n(m),y=r(60072);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){(0,c.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let _=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e}({}),O=({size:e=_.LARGE,image:t,iconProps:r,heading:n,title:a,description:i,primaryCta:o,secondaryCta:s})=>(0,y.jsxs)("div",{className:(0,f.A)(g().container,g()[e]),children:[t&&(0,y.jsx)(l._,{alt:"",src:t,ratio:"square",width:"196",height:"196",className:g().image,"data-testid":"messageboard-image"}),r&&(0,y.jsx)(u.k,b(b({},r),{},{className:g().icon,"data-testid":"status-icon"})),a&&(0,y.jsx)(d.E,{color:"subtlest",size:"body-1","data-testid":"title",className:g().title,children:a}),(0,y.jsx)(p.D,{as:"h2",size:"body-4",weight:"bold","data-testid":"heading",className:g().heading,children:n}),(0,y.jsx)(d.E,{color:"subtlest",size:"body-3","data-testid":"description",className:g().description,children:i}),(0,y.jsx)("div",{className:g().cta,children:o?.map(e=>(0,y.jsx)(h.$,{onClick:e.action,variant:"tertiary","data-testid":"messageboard-proceed-button",size:"l",children:e.label},e.label))}),s&&(0,y.jsx)(h.$,{onClick:s.action,variant:"ghost","data-testid":"messageboard-cancel-button",children:s.label})]}),C=({closeDrawer:e,selectStorePanelProps:t})=>{let[r]=(0,i.B)(),{pathname:c}=(0,a.useRouter)(),l=c.includes("/product-returns/[returnId]"),{updateCartFacility:u}=(0,s.n)(t),{onFacilityUpdatedCallback:d}=(0,o.SA)(),p=(0,n.useCallback)(()=>{d?d({facilityId:t.facilityId}):u(),e()},[u,e,d,t.facilityId]);return(0,n.useEffect)(()=>{l&&p()},[l,p]),(0,y.jsx)(O,{image:"/images/change-store.png",heading:r("store.selectDrawer.confirm.title"),description:r("store.selectDrawer.confirm.message"),primaryCta:[{label:r("store.selectDrawer.proceed"),action:p}],secondaryCta:{label:r("store.selectDrawer.cancel"),action:()=>e()}})}},87335:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,T:()=>i});let n={gtm:"blockgtm",dynatrace:"blockdynatrace",all:"blockall"},a=(e,t)=>{let a=new URLSearchParams(r.g?.window?.location?.search??"");return a.has(n.all)||a.has(n[e])||t?.some(t=>n[e]===t||n.all===t)},i=(e,t,r)=>e?t:r},87450:e=>{e.exports={modalSwitchAccountContainer:"switch-account_modalSwitchAccountContainer__j6mU5",container:"switch-account_container__RYpL_",enableBorder:"switch-account_enableBorder__U0i0d",wrapper:"switch-account_wrapper__yC3sj",label:"switch-account_label__yYEfo",labelContainer:"switch-account_labelContainer__ZbZn4"}},87869:(e,t,r)=>{var n=r(81444),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:a.call(t,e)}},87954:(e,t,r)=>{var n=r(94452),a=1/0;e.exports=function(e){return(null==e?0:e.length)?n(e,a):[]}},87981:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,z:()=>o});var n=r(60004),a=r(60072);let i=(0,n.createContext)(void 0),o=e=>{let{0:t,1:r}
1990=(0,n.useState)(!1),o=(0,n.useCallback)(()=>r(!0),[]),s=(0,n.useCallback)(()=>r(!1),[]),c=(0,n.useMemo)(()=>({isMegaMenuOpen:t,openMegaMenu:o,closeMegaMenu:s}),[s,t,o]);return(0,a.jsx)(i.Provider,{value:c,children:e.children})},s=()=>{let e=(0,n.useContext)(i);if(!e)throw Error("useMegaMenuContext must be used within a MegaMenuContextProvider");return e}},88088:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(53779),a=(0,r(85587).h)(),i=({as:e="p",children:t,className:r,color:i="default",size:o="body-3",weight:s="regular",...c})=>(0,a.jsx)(e,{className:(0,n.$)(`watts-typography--${i}`,`watts-${o}`,`watts-${s}`,r),...c,children:t});i.displayName="Text"},88734:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},88952:(e,t,r)=>{"use strict";r.d(t,{Ck:()=>c,rQ:()=>s});var n=r(60004),a=r(48628),i=r(60072);let o=(0,n.createContext)(null),s=({children:e})=>{let{isOpen:t,openDrawer:r,closeDrawer:s}=(0,a.b)(),c=(0,n.useCallback)(()=>r(),[r]),l=(0,n.useCallback)(()=>s(),[s]),u=(0,n.useMemo)(()=>({isProjectSettingsDrawerOpen:t,openProjectSettingsDrawer:c,closeProjectSettingsDrawer:l}),[t,c,l]);return(0,i.jsx)(o.Provider,{value:u,children:e})},c=()=>{let e=(0,n.useContext)(o);if(!e)throw Error("You need to wrap your component with <ProjectSettingsDrawerProvider>");return e}},89034:e=>{var t,r,n,a=e.exports={};function i(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var c=[],l=!1,u=-1;function d(){l&&n&&(l=!1,n.length?c=n.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(n=c,c=[];++u<t;)n&&n[u].run();u=-1,t=c.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=f,a.addListener=f,a.once=f,a.off=f,a.removeListener=f,a.removeAllListeners=f,a.emit=f,a.prependListener=f,a.prependOnceListener=f,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},89089:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});let n={"align--center":"alignCenter","align--justify":"alignJustify","align--left":"alignLeft","align--right":"alignRight"},a=(e,t)=>{if(e)return e.split(" ").map(e=>{let r=n[e];return t&&r&&t[r]||e}).join(" ")}},89180:e=>{e.exports=function(){this.__data__=[],this.size=0}},89293:e=>{e.exports={master:"Master_master__SHW3P",container:"Master_container__e5xVd",containerPadding:"Master_containerPadding__Z5ZxL",subContainer:"Master_subContainer__oqmHT",subContainerMaxWidth:"Master_subContainerMaxWidth__ZCXjC",chatBoxRoot:"Master_chatBoxRoot__sPoj3"}},89444:(e,t,r)=>{"use strict";r.d(t,{DQ:()=>n,YD:()=>a,lM:()=>i});let n=function(e){return e.Free="FREE",e.Paid="PAID",e}({}),a=function(e){return e.EndOfLife="END_OF_LIFE",e.New="NEW",e.Promo="PROMO",e.Sustainable="SUSTAINABLE",e}({}),i=function(e){return e.Coiled="COILED",e.Spooled="SPOOLED",e}({})},89460:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(31437),a=r(85582);let i=e=>e?{listName:n.IQ.SEARCH_RECO_ENGINE,cartSource:a.oe.SEARCH_RECO_ENGINE}:{listName:n.IQ.SEARCHBOX_SUGGESTIONS,cartSource:a.oe.SEARCHBOX}},89475:(e,t,r)=>{"use strict";r.d(t,{qg:()=>N});let n=/\r\n|[\n\r]/g;function a(e,t){let r=0,a=1;
1990for(let i of e.body.matchAll(n)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,a+=1}return{line:a,column:t+1-r}}function i(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,a=t.line-1,i=e.locationOffset.line-1,s=t.line+i,c=1===t.line?r:0,l=t.column+c,u=`${e.name}:${s}:${l}
1991`,d=n.split(/\r\n|[\n\r]/g),p=d[a];if(p.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<p.length;e+=80)t.push(p.slice(e,e+80));return u+o([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+o([[`${s-1} |`,d[a-1]],[`${s} |`,p],["|","^".padStart(l)],[`${s+1} |`,d[a+1]]])}function o(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class s extends Error{constructor(e,...t){var r,n,i;let{nodes:o,source:l,positions:u,path:d,originalError:p,extensions:h}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=p?p:void 0,this.nodes=c(Array.isArray(o)?o:o?[o]:void 0);let f=c(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=l?l:null==f||null==(n=f[0])?void 0:n.source,this.positions=null!=u?u:null==f?void 0:f.map(e=>e.start),this.locations=u&&l?u.map(e=>a(l,e)):null==f?void 0:f.map(e=>a(e.source,e.start));let m=!function(e){return"object"==typeof e&&null!==e}(null==p?void 0:p.extensions)||null==p?void 0:p.extensions;this.extensions=null!=(i=null!=h?h:m)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+i((t=r.loc).source,a(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+i(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function c(e){return void 0===e||0===e.length?void 0:e}function l(e,t,r){return new s(`Syntax Error: ${r}`,{source:e,positions:[t]})}var u,d,p=r(28066);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(u||(u={}));var h=r(919),f=r(69298),m=r(68835);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(d||(d={}));class g{constructor(e){let t=new p.ou(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,a=t;for(;a<n;){let t=r.charCodeAt(a);switch(t){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===r.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,a=t+1;for(;a<n;){let e=r.charCodeAt(a);if(10===e||13===e)break;if(y(e))++a;else if(v(r,a))a+=2;else break}return C(e,d.COMMENT,t,a,r.slice(t+1,a))}(e,a);case 33:return C(e,d.BANG,a,a+1);case 36:return C(e,d.DOLLAR,a,a+1);case 38:return C(e,d.AMP,a,a+1);case 40:return C(e,d.PAREN_L,a,a+1);case 41:return C(e,d.PAREN_R,a,a+1);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return C(e,d.SPREAD,a,a+3);break;case 58:return C(e,d.COLON,a,a+1);case 61:return C(e,d.EQUALS,a,a+1);case 64:return C(e,d.AT,a,a+1);case 91:return C(e,d.BRACKET_L,a,a+1);case 93:return C(e,d.BRACKET_R,a,a+1);case 123:return C(e,d.BRACE_L,a,a+1);case 124:return C(e,d.PIPE,a,a+1);case 125:return C(e,d.BRACE_R,a,a+1);case 34:if(34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2))return function(e,t){let r=e.source.body,n=r.length,a=e.lineStart,i=t+3,o=i,s="",c=[];for(;i<n;){let n=r.charCodeAt(i);if(34===n&&34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)){s+=r.slice(o,i),c.push(s);let n=C(e,d.BLOCK_STRING,t,i+3,(0,f.OC)(c).join("\n"));return e.line+=c.length-1,e.lineStart=a,n}if(92===n&&34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)&&34===r.charCodeAt(i+3)){s+=r.slice(o,i),o=i+1,i+=4;continue}if(10===n||13===n){s+=r.slice(o,i),c.push(s),13===n&&10===r.charCodeAt(i+1)?i+=2:++i,s="",o=i,a=i;continue}if(y(n))++i;else if(v(r,i))i+=2;else throw l(e.source,i,`Invalid character within String: ${O(e,i)}.`)}
1991throw l(e.source,i,"Unterminated string.")}(e,a);return function(e,t){let r=e.source.body,n=r.length,a=t+1,i=a,o="";for(;a<n;){let n=r.charCodeAt(a);if(34===n)return o+=r.slice(i,a),C(e,d.STRING,t,a+1,o);if(92===n){o+=r.slice(i,a);let t=117===r.charCodeAt(a+1)?123===r.charCodeAt(a+2)?function(e,t){let r=e.source.body,n=0,a=3;for(;a<12;){let e=r.charCodeAt(t+a++);if(125===e){if(a<5||!y(n))break;return{value:String.fromCodePoint(n),size:a}}if((n=n<<4|P(e))<0)break}throw l(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+a)}".`)}(e,a):function(e,t){let r=e.source.body,n=w(r,t+2);if(y(n))return{value:String.fromCodePoint(n),size:6};if(b(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=w(r,t+8);if(_(e))return{value:String.fromCodePoint(n,e),size:12}}throw l(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,a):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw l(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,a);o+=t.value,a+=t.size,i=a;continue}if(10===n||13===n)break;if(y(n))++a;else if(v(r,a))a+=2;else throw l(e.source,a,`Invalid character within String: ${O(e,a)}.`)}throw l(e.source,a,"Unterminated string.")}(e,a)}if((0,m.yp)(t)||45===t)return function(e,t,r){let n=e.source.body,a=t,i=r,o=!1;if(45===i&&(i=n.charCodeAt(++a)),48===i){if(i=n.charCodeAt(++a),(0,m.yp)(i))throw l(e.source,a,`Invalid number, unexpected digit after 0: ${O(e,a)}.`)}else a=E(e,a,i),i=n.charCodeAt(a);if(46===i&&(o=!0,i=n.charCodeAt(++a),a=E(e,a,i),i=n.charCodeAt(a)),(69===i||101===i)&&(o=!0,(43===(i=n.charCodeAt(++a))||45===i)&&(i=n.charCodeAt(++a)),a=E(e,a,i),i=n.charCodeAt(a)),46===i||(0,m.un)(i))throw l(e.source,a,`Invalid number, expected digit but got: ${O(e,a)}.`);return C(e,o?d.FLOAT:d.INT,t,a,n.slice(t,a))}(e,a,t);if((0,m.un)(t))return function(e,t){let r=e.source.body,n=r.length,a=t+1;for(;a<n;){let e=r.charCodeAt(a);if((0,m.xr)(e))++a;else break}return C(e,d.NAME,t,a,r.slice(t,a))}(e,a);throw l(e.source,a,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":y(t)||v(r,a)?`Unexpected character: ${O(e,a)}.`:`Invalid character: ${O(e,a)}.`)}return C(e,d.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===d.COMMENT);return e}}function y(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function v(e,t){return b(e.charCodeAt(t))&&_(e.charCodeAt(t+1))}function b(e){return e>=55296&&e<=56319}function _(e){return e>=56320&&e<=57343}function O(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return d.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function C(e,t,r,n,a){let i=e.line,o=1+r-e.lineStart;return new p.ou(t,r,n,i,o,a)}function E(e,t,r){if(!(0,m.yp)(r))throw l(e.source,t,`Invalid number, expected digit but got: ${O(e,t)}.`);let n=e.source.body,a=t+1;for(;(0,m.yp)(n.charCodeAt(a));)++a;return a}function w(e,t){return P(e.charCodeAt(t))<<12|P(e.charCodeAt(t+1))<<8|P(e.charCodeAt(t+2))<<4|P(e.charCodeAt(t+3))}function P(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var I=r(6691),x=r(28316);let S=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,x.N)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
1992
1993Ensure that there is only one instance of "graphql" in the node_modules
1994directory. If different versions of "graphql" are the dependencies of other
1995relied on modules, use "resolutions" to ensure only one version is installed.
1996
1997https://yarnpkg.com/en/docs/selective-version-resolutions
1998
1999Duplicate "graphql" modules cannot be used at the same time since different
2000versions may have different capabilities and behavior. The data from one
2001version used in the function from another could produce confusing and
2002spurious results.`)}}return!1};class T{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,I.U)(!1,`Body must be a string. Received: ${(0,x.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,I.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,I.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function N(e,t){let r=new A(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class A{constructor(e,t={}){let r=S(e,T)?e:new T(e);this._lexer=new g(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(d.NAME);return this.node(e,{kind:h.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:h.b.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw l(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:h.b.OPERATION_DEFINITION,operation:p.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(d.NAME)&&(e=this.parseName()),this.node(t,{kind:h.b.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(d.NAME);switch(e.value){case"query":return p.cE.QUERY;case"mutation":return p.cE.MUTATION;case"subscription":return p.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:h.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:h.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:h.b.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(d.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:h.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:h.b.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(d.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:h.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:h.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:h.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:h.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:h.b.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:h.b.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:h.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:h.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:h.b.NULL});default:return this.node(t,{kind:h.b.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){let e=this._lexer.token.value;throw l(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:h.b.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:h.b.LIST,values:this.any(d.BRACKET_L,t,d.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:h.b.OBJECT,fields:this.any(d.BRACE_L,t,d.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:h.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:h.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(d.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:h.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:h.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:h.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:h.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);let r=this.parseNamedType();return this.node(e,{kind:h.b.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:h.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:h.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:a,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(d.COLON);let a=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:h.b.FIELD_DEFINITION,description:t,name:r,arguments:n,type:a,directives:i})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(d.COLON);let a=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(e=this.parseConstValueLiteral());let i=this.parseConstDirectives();return this.node(t,{kind:h.b.INPUT_VALUE_DEFINITION,description:r,name:n,type:a,defaultValue:e,directives:i})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:h.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:a,fields:i})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:h.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:h.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:a})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:h.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw l(this._lexer.source,this._lexer.token.start,`${j(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:h.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.p
2002arseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:h.b.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:h.b.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===a.length)throw this.unexpected();return this.node(e,{kind:h.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:a})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===a.length)throw this.unexpected();return this.node(e,{kind:h.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:a})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:h.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:h.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:h.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);let r=this.parseName(),n=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let i=this.parseDirectiveLocations();return this.node(e,{kind:h.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:a,locations:i})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(u,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw l(this._lexer.source,t.start,`Expected ${k(e)}, found ${j(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===d.NAME&&t.value===e)this.advanceLexer();else throw l(this._lexer.source,t.start,`Expected "${e}", found ${j(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return l(this._lexer.source,t.start,`Unexpected ${j(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==d.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>
2002e))throw l(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function j(e){let t=e.value;return k(e.kind)+(null!=t?` "${t}"`:"")}function k(e){return e===d.BANG||e===d.DOLLAR||e===d.AMP||e===d.PAREN_L||e===d.PAREN_R||e===d.SPREAD||e===d.COLON||e===d.EQUALS||e===d.AT||e===d.BRACKET_L||e===d.BRACKET_R||e===d.BRACE_L||e===d.PIPE||e===d.BRACE_R?`"${e}"`:e}},90186:(e,t,r)=>{"use strict";r.d(t,{n:()=>l});var n=r(53779),a=r(85587),i=r(12028),o=r(88088),s=r(60004),c=(0,a.h)(),l=({content:e,className:t,defaultOpen:r,panelId:a,isExpanded:l,onToggle:u,showTitle:d=!1,size:p,title:h,titleLevel:f,additionalText:m,...g})=>{let y=(e=>{let t=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{t.current||=!0},[e]),(0,s.useMemo)(()=>t.current?e?"animated-expanded":"animated-reduced":e?"default-expanded":"default-reduced",[e])})(l),v=(0,s.useMemo)(()=>l?"minus-small":"plus-small",[l]),b=(0,s.useRef)(null),_=b.current?.scrollHeight;return(0,c.jsxs)("section",{className:(0,n.$)("watts-accordion",t),...g,children:[(0,c.jsx)(f,{children:(0,c.jsxs)("button",{"aria-controls":a,"aria-expanded":l,className:(0,n.$)("watts-accordion__button",`watts-accordion__button--${p}`),id:`${a}--relation`,onClick:u,type:"button",children:[(0,c.jsxs)("span",{title:d?h:void 0,className:"watts-accordion__button__label",children:[h,m?.slice(0,2).map((e,t)=>(0,c.jsx)(o.E,{as:"span",size:"body-2",children:e},t))]}),(0,c.jsx)(i.I,{className:"watts-accordion__button__icon","data-testid":`watts-icon--${v}`,icon:v,size:"l"})]})}),(0,c.jsx)("div",{id:a,"aria-labelledby":`${a}--relation`,className:(0,n.$)("watts-accordion__content",`watts-accordion__content--${y}`),ref:b,role:"region",..._&&{style:{"--watts-accordion-max-height":`${_}px`}},children:(0,c.jsx)("div",{children:e})})]})}},90543:e=>{e.exports={drawerContent:"satisfaction-survey-confirmation-drawer_drawerContent__MVE7N",top:"satisfaction-survey-confirmation-drawer_top__inZW0",heading:"satisfaction-survey-confirmation-drawer_heading__i6mD9",buttons:"satisfaction-survey-confirmation-drawer_buttons__UP_8f"}},90633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return d}});let n=r(75355),a=r(32440),i=r(60072),o=a._(r(60004)),s=n._(r(12414)),c=r(11953),l=r(96393),u=r(80389);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(96933);let h=["name","httpEquiv","charSet","itemProp"];function f(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return a=>{let i=!0,o=!1;if(a.key&&"number"!=typeof a.key&&a.key.indexOf("$")>0){o=!0;let t=a.key.slice(a.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(a.type){case"title":case"base":t.has(a.type)?i=!1:t.add(a.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(a.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?i=!1:r.add(t);else{let e=a.props[t],r=n[t]||new Set;("name"!==t||!o)&&r.has(e)?i=!1:(r.add(e),n[t]=r)}}}return i}}()).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,o.useContext)(c.AmpStateContext),n=(0,o.useContext)(l.HeadManagerContext);return(0,i.jsx)(s.default,{reduceComponentsToState:f,headManager:n,inAmpMode:(0,u.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90823:e=>{e.exports={bottomRight:"floating-buttons-wrapper_bottomRight__l5ErM"}},90909:(e,t,r)=>{"use strict";
2002var n=r(64443),a=r(17723);let i=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onNavigate","onMouseEnter","onTouchStart","legacyBehavior"];function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return x},useLinkStatus:function(){return I}});let c=r(32440),l=r(60072),u=c._(r(60004)),d=r(72427),p=r(93315),h=r(25174),f=r(12948),m=r(81529),g=r(63670),y=r(6942),v=r(30987),b=r(83074),_=r(41551);r(26989);let O=new Set;function C(e,t,r,n){if((0,p.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let a=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(O.has(a))return;O.add(a)}e.prefetch(t,r,n).catch(e=>{})}}function E(e){return"string"==typeof e?e:(0,h.formatUrl)(e)}let w=u.default.forwardRef(function(e,t){let r,n,{href:o,as:c,children:h,prefetch:O=null,passHref:w,replace:P,shallow:I,scroll:x,locale:S,onClick:T,onNavigate:N,onMouseEnter:A,onTouchStart:j,legacyBehavior:k=!1}=e,D=a(e,i);r=h,k&&("string"==typeof r||"number"==typeof r)&&(r=(0,l.jsx)("a",{children:r}));let R=u.default.useContext(g.RouterContext),L=!1!==O,{href:M,as:F}=u.default.useMemo(()=>{if(!R){let e=E(o);return{href:e,as:c?E(c):e}}let[e,t]=(0,d.resolveHref)(R,o,!0);return{href:e,as:c?(0,d.resolveHref)(R,c):t||e}},[R,o,c]),$=u.default.useRef(M),B=u.default.useRef(F);k&&(n=u.default.Children.only(r));let U=k?n&&"object"==typeof n&&n.ref:t,[V,q,G]=(0,y.useIntersection)({rootMargin:"200px"}),z=u.default.useCallback(e=>{(B.current!==F||$.current!==M)&&(G(),B.current=F,$.current=M),V(e)},[F,M,G,V]),H=(0,_.useMergedRef)(z,U);u.default.useEffect(()=>{R&&q&&L&&C(R,M,F,{locale:S})},[F,M,q,S,L,null==R?void 0:R.locale,R]);let W={ref:H,onClick(e){k||"function"!=typeof T||T(e),k&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&(e.defaultPrevented||function(e,t,r,n,a,i,o,s,c){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,p.isLocalURL)(r)){a&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let e=null==o||o;"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:i,locale:s,scroll:e}):t[a?"replace":"push"](n||r,{scroll:e})})()}}(e,R,M,F,P,I,x,S,N))},onMouseEnter(e){k||"function"!=typeof A||A(e),k&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&C(R,M,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){k||"function"!=typeof j||j(e),k&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&C(R,M,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0})}};if((0,f.isAbsoluteUrl)(F))W.href=F;else if(!k||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==R?void 0:R.locale;W.href=(null==R?void 0:R.isLocaleDomain)&&(0,v.getDomainLocale)(F,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales)||(0,b.addBasePath)((0,m.addLocale)(F,e,null==R?void 0:R.defaultLocale))}return k?u.default.cloneElement(n,W):(0,l.jsx)("a",s(s(s({},D),W),{},{children:r}))}),P=(0,u.createContext)({pending:!1}),I=()=>(0,u.useContext)(P),x=w;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
2002dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91211:(e,t,r)=>{var n=r(42183),a=r(93191),i=r(43319);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},91683:(e,t,r)=>{"use strict";r.d(t,{_:()=>p});var n=r(53779),a=r(85587),i=r(24874),o=r(82726),s=r(30058),c=r(60004),l=r(33785),u=(0,a.h)(),d=({tag:e,formProps:t,placement:r,children:a})=>{let i=(0,n.$)("watts-drawer__content",`watts-drawer__content--${r}`);return"form"===e||t?(0,u.jsx)("form",{...t,className:i,children:a}):(0,u.jsx)("div",{className:i,children:a})},p=(0,c.forwardRef)(({actions:e,as:t="div",children:r,className:a,closeLabel:p,formProps:h,isOpen:f,noPadding:m=!1,onReturn:g,onClose:y,returnLabel:v,size:b="m",placement:_="right",...O},C)=>{let E="u">typeof document,w=(0,c.useRef)(null),P=C??w,{isTransitioning:I}=(e=>{let[t,r]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let n;return e&&!t?r(!0):!e&&t&&(n=setTimeout(()=>{r(!1)},300)),()=>{clearTimeout(n)}},[e,t]),{isTransitioning:t}})(f);return(0,i.J)({onKeyDown:y,keys:["Escape"],shouldTriggerKeyDown:f,ref:P}),E&&(f||I)?(0,u.jsx)(u.Fragment,{children:(0,l.createPortal)((0,u.jsxs)(s.s,{ref:P,style:{"--watts-drawer-animation-timer":"300ms"},className:(0,n.$)("watts-drawer",a,`watts-drawer--${b}`,{"watts-drawer--opened":f&&I}),active:f,hidden:!f&&!I,preventScroll:!0,...O,children:[(0,u.jsx)("div",{onClick:y,className:(0,n.$)("watts-drawer__overlay")}),(0,u.jsxs)(d,{tag:t,formProps:h,placement:_,children:[(0,u.jsxs)("div",{className:"watts-drawer__content-header",children:[(0,u.jsx)(o.$,{className:"watts-drawer__close-button",variant:"ghost",icon:"cross",title:p,onClick:y}),!!g&&(0,u.jsx)(o.$,{className:"watts-drawer__return-button",variant:"ghost",icon:"arrow-left",title:v,onClick:g})]}),(0,u.jsx)("div",{className:(0,n.$)("watts-drawer__content-body",{"watts-drawer__content-body--no-padding":m}),children:r}),!!e&&(0,u.jsx)("div",{className:"watts-drawer__content-footer",children:e})]})]}),document.body)}):null});p.displayName="Drawer"},91752:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var n=r(60004),a=({ref:e,onClickAway:t,shouldTriggerClickAway:r=!0})=>{let a=(0,n.useCallback)(r=>{e.current&&!e.current.contains(r.target)&&t(r)},[e,t]);(0,n.useEffect)(()=>{if(r)return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[e,t,a,r])}},91933:(e,t,r)=>{"use strict";r.d(t,{GC:()=>l,PO:()=>d,Yy:()=>u,jK:()=>p});var n=r(72555),a=r.n(n),i=r(55537);let o=/-/g,s=/\s+|[%$&|<>,/!"#()*+.:;[\]^_`{}~?@=°]/g,c=e=>a()(e,{replacement:"-",strict:!0,trim:!0}),l=({title:e,id:t,brandName:r},n)=>{let a=((e="",t="")=>c([e,t].filter(Boolean).join("-").replace(s,"-")).toLowerCase())(r,e),o=n?i.b.catalog.productInApp:i.b.catalog.product,l=p(t),u=a?`${o}/${a}-${l}`:`${o}/${l}`;return{app:i.b.catalog.app,href:u}},u=(e,t)=>{let r=p(e),n=t?i.b.catalog.productInApp:i.b.catalog.product,a=`${n}/${r}`,o=i.b.catalog.app,s=`/${o}${a}`;return{app:o,href:a,fullUrl:s}},d=(e,t,r)=>{let n=h(t),a=`${i.b.catalog.category}/${c(e).toLowerCase()}-${n}`;return r?`${a}?version=1`:a},p=e=>e?.replace(o,"__"),h=e=>e?.replace(o,"__")},92141:(e,t,r)=>{"use strict";r.d(t,{H:()=>s});var n=r(60004),a=r(49466),i=r.n(a);let o=250,s=(e=o)=>{let{0:t,1:r}
2002=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=i()(()=>{r(window.scrollY>e)},15);return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),{isPastScrollThreshold:t}}},92272:(e,t,r)=>{"use strict";r.d(t,{V:()=>p}),r(60004);var n=r(88088),a=r(7976),i=r(52322);let o=["addressLine1","city","postalCode","country"],s=["addressLine1","addressLine2","addressLine3","city","department","region","postalCode","country"],c={addressLine1:"addressLine1",addressLine2:"addressLine2",addressLine3:"addressLine3",city:"city",department:"department",region:"stateOrRegion",postalCode:"postalCode",country:"country"},l=["addressLine3","city","department"],u=e=>"italy_fields"===e?l:s.includes(e)?[e]:[];var d=r(60072);let p=({addressLine1:e,addressLine2:t,addressLine3:r,city:l,department:p,stateOrRegion:h,postalCode:f,country:m,size:g="body-2",weight:y="regular",color:v="subtle",className:b,"data-testid":_="address-display"})=>{let{isFlagEnabled:O}=(0,a.h)(),{address_display_fields:C}=(0,a.rD)(),E=((e,t=s)=>{let r=[];for(let n of t){let t=c[n],a=e[t]?.trim();a&&r.push(a)}return r.join(", ")})({addressLine1:e,addressLine2:t,addressLine3:r,city:l,department:p,stateOrRegion:h,postalCode:f,country:m},O("rl-address-fields-from-config")?(e=>{if(!e)return;let t=(0,i.BS)(e,",").flatMap(u);return t.length>0?t:void 0})(C)??o:void 0);return E?(0,d.jsx)("div",{className:b,"data-testid":_,children:(0,d.jsx)(n.E,{size:g,weight:y,color:v,"data-testid":`${_}-address-text`,children:E})}):null}},92342:(e,t,r)=>{"use strict";r.d(t,{$:()=>m,DG:()=>g,EM:()=>s,LH:()=>c,P_:()=>y,Zp:()=>l,kg:()=>d,vU:()=>h,wu:()=>u});var n=r(22951),a=r(92851),i=r(84745),o=r(76162);let s=(e,t)=>t.find(({productId:t})=>t===e),c=(e,t,r)=>{if(null==t||!r)return;let n=(0,o.Y8)(r,t);return`/${new Intl.NumberFormat(e).format(t)} ${n}`},l=({marketplaceData:e,productData:t})=>{let{quantitySteps:r,minQuantity:n,contentUnit:a,orderingDetail:i}=t;if(!t.offers?.length||!e?.isMarketPlaceProduct)return{quantitySteps:r,minQuantity:n,contentUnit:i?.contentUnit??a,priceDisplayMultiplier:t.priceDisplayMultiplier??i?.priceDisplayMultiplier};if(e?.isMarketPlaceProduct){let r=t?.offers?.find(t=>t.offerId===e.offerId);return r?.orderingDetail}},u=(e,t)=>t?.items?.find(({id:t})=>t===e),d=e=>e,p={[n.WF.SRP]:i.o.SRP,[n.WF.SEARCH_PDP]:i.o.SEARCH_PDP,[n.WF.SEARCH_PLP]:i.o.SEARCH_PLP,[n.WF.DIRECT_PDP]:i.o.DIRECT_PDP,[n.WF.RELATED_PRODUCTS]:i.o.RELATED_PRODUCTS,[n.WF.DIRECT_PLP]:i.o.DIRECT_PLP,[n.WF.PROMOTION_PLP]:i.o.PROMOTION_PLP,[n.WF.WISHLIST]:i.o.WISHLIST,[n.WF.PROJECTS]:i.o.PROJECTS,[n.WF.ALREADY_PURCHASED]:i.o.ALREADY_PURCHASED,[n.WF.COMPARE_PAGE]:i.o.COMPARE_PAGE,[n.WF.CART]:void 0,[n.WF.STOCK_LOCATOR]:void 0},h=e=>p[e],f={[n.WF.SEARCH_PDP]:n.y$.PDP,[n.WF.SEARCH_PLP]:n.y$.PLP,[n.WF.DIRECT_PDP]:n.y$.PDP,[n.WF.DIRECT_PLP]:n.y$.PLP,[n.WF.COMPARE_PAGE]:n.y$.COMPARE,[n.WF.CART]:n.y$.CART,[n.WF.STOCK_LOCATOR]:n.y$.STOCK_LOCATOR,[n.WF.PROMOTION_PLP]:void 0,[n.WF.SRP]:void 0,[n.WF.WISHLIST]:void 0,[n.WF.PROJECTS]:void 0,[n.WF.ALREADY_PURCHASED]:void 0},m=e=>f[e],g=e=>{if("string"!=typeof e)return e;switch(e?.toLowerCase()){case"true":return!0;case"false":return!1;default:return null}},y=(e,t)=>{let r=(0,a.bm)(t);return e?.map(e=>{let t=e?.productId,{minQuantity:n,quantitySteps:i,contentUnit:o,priceDisplayMultiplier:s}=e.orderingDetail||{},{manufacturerRefId:c,manufacturerRef:l,gtin:u,opcoProductId:d,customerReference:p,brandName:h,productTitle:f,stockIndicator:m,tags:g}=e.identifier||{},y=(0,a.rm)(r,{productId:t,manufacturerRefId:c,manufacturerReference:l,gtin:u,opcoProductId:d,customerRef:p}),v=e?.productImage||e?.assetsV2?.find(e=>"IMAGE"===e.type)?.externalUrl,{iconCodes:b,isCuttable:_,greenOffer:O,identifier:C,features:E,isReturnable:w,categorisation:P,productCategoriesInfo:I}=e||{};return{productId:t,brandName:h,tags:g,categorisation:P||[],productCategoriesInfo:I,isReturnable:w,productTitle:f,features:E?.slice(0,3)||[],references:y,minQuantity:n,quantitySteps:i,contentUnit:o,priceDisplayMultiplier:s,orderingDetail:{contentUnit:o,priceDisplayMultiplier:s},stockIndicator:m,isCuttable:_,productImage:v,iconCodes:b,greenRating:O?.greenRating,i
2002dentifier:C}})}},92652:()=>{},92699:e=>{e.exports={pagination:"store-locator-non-logged-in_pagination__EQf1f",hide:"store-locator-non-logged-in_hide__JEtk2",openMapContainer:"store-locator-non-logged-in_openMapContainer__NKmvL",titleContainer:"store-locator-non-logged-in_titleContainer__w08fV",titleDrawerContainer:"store-locator-non-logged-in_titleDrawerContainer__b2rXt",searchBarDrawer:"store-locator-non-logged-in_searchBarDrawer__6wkW2",searchBarMap:"store-locator-non-logged-in_searchBarMap__Ve19c",padding:"store-locator-non-logged-in_padding__wjEsG"}},92725:(e,t,r)=>{var n=r(97268),a=r(53283);e.exports=function(e,t,r){var i=t(e);return a(e)?i:n(i,r(e))}},92851:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>g,SZ:()=>u,X_:()=>l,ZJ:()=>d,bm:()=>h,f:()=>f,qJ:()=>s,rm:()=>p,yR:()=>c});var n=r(23134),a=r(15788),i=r(22951),o=r(31437);let s=(e,t)=>{if(!e||!t)return e;let r=e.includes("?")?"&":"?";return`${e}${r}type=${t}`},c=({pricePreference:e})=>{let t=e===n.xN.OnlyGrossPrice,r=e===n.xN.OnlyNetPrice;return e===n.xN.GrossAndNetPrices||r?a.a.VIEW_NET_PRICE:t?a.a.VIEW_GROSS_PRICE:null},l=(e,t)=>{let r=e?.productPrices?.filter(e=>e?.productId===t),n=e?.productPricesNotFound?.filter(e=>e===t);return{error:e?.error,productPricesNotFound:n,productPrices:r,pricePreference:e?.pricePreference}},u=e=>!!((e?.type===i.JH.SpecialPriceAgreement||e?.type===i.JH.Standard)&&e.title?.length),d=e=>!!(e?.type===i.JH.Project&&e.title?.length),p=(e,t)=>{let r=e?.reduce((e,r)=>(t?.[r]&&e.push({refName:r,refValue:t[r]}),e),[]);return r?.length?r?.slice(0,o.VU):[]},h=e=>{if(!e)return[];try{return JSON.parse(e)}catch{return[]}},f=e=>{let t=e.find(e=>e.type===i.lE.SHIPPING_COST);if(t?.levels.length)return t.levels.reduce((e,t)=>t.feeAmount.amount<e.feeAmount.amount?t:e,t.levels[0]).feeAmount},m=e=>{let t=e.indexOf("ALREADY_PURCHASED");return 0===t&&(e.splice(t,1),e.push("ALREADY_PURCHASED")),e},g=(e,t)=>e?.length>=o.OA?m([...e].sort((e,r)=>-1===t.indexOf(e)?1:-1===t.indexOf(r)?-1:t.indexOf(e)-t.indexOf(r)).splice(0,2)):m(e)},92863:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let n=function(e){return e.GROSS_AND_NET_PRICES="GROSS_AND_NET_PRICES",e.ONLY_NET_PRICES="ONLY_NET_PRICES",e.ONLY_GROSS_PRICES="ONLY_GROSS_PRICES",e.NO_PRICES="NO_PRICES",e}({})},92909:e=>{e.exports={wrapper:"stock-quantity_wrapper__lziY_",dot:"stock-quantity_dot__yXQMj",stockInfoContainer:"stock-quantity_stockInfoContainer__cV1rL",stockInfo:"stock-quantity_stockInfo__L89Fw",stockInfoSmall:"stock-quantity_stockInfoSmall__nw9Lc",lockerOnlyText:"stock-quantity_lockerOnlyText__3V4K0",availabilityLink:"stock-quantity_availabilityLink__60z2M"}},92926:(e,t,r)=>{var n=r(16299);e.exports=function(){return n.Date.now()}},93152:(e,t,r)=>{e=r.nmd(e);var n=r(16299),a=r(7677),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,c=s?s.isBuffer:void 0;e.exports=c||a},93191:(e,t,r)=>{e.exports=r(1282)(r(16299),"Map")},93229:(e,t,r)=>{var n=r(81444);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},93821:(e,t,r)=>{"use strict";r.d(t,{O:()=>w}),r(60004);var n=r(12028),a=r(82726),i=r(88088),o=r(35695),s=r(43207),c=r(87981),l=r(12072),u=r(54688),d=r(59100),p=r(78734),h=r.n(p),f=r(60072);let m=["icons","type","heading","description","actions"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){(0,l.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let v=e=>{let{icons:t,type:r,heading:n,description:a,actions:o}=e,s=(0,u.A)(e,m);return(0,f.jsxs)("div",y(y({className:h().root},s),{},{children:[(0,f.jsx)("div",{className:h().icon,children:t?.map(e=>e)}),(0,f.jsxs)("div",{className:h().copy,children:[(0,f.jsx)(i.E,{size:"body-1",color:"subtlest",className:h().type,children:r}),(0,f.jsx)(d.D,{className:h().heading,as:"h2",weight:"light","data-testid":"error-copy",children:n}),(0,f.jsx)(i.E,{size:"body-3",color:"subtle",className:h().description,children:a}),(0,f.jsx)("div",{children:o?.map(e=>e)})]})]}))};var b=r(8357),_=r(86263),O=r(55537),C=r(30446),E=r.n(C);let w=({statusCode:e,layouts:t,options:r})=>{let l,u,{openMegaMenu:d}=(0,c.S)(),[p]=(0,s.B)();if(isNaN(e))return null;let h=e??500,m=p(`error.${h}.title`),g=p(`error.${h}.type`),y=p(`error.${h}.heading`),C=p(`error.${h}.description`),w=p(`error.${h}.action1`),P=p(`error.${h}.action2`);switch(h){case 404:case 400:l=t?.nonBlocking,u=(0,f.jsx)(v,{icons:[(0,f.jsx)(n.I,{icon:"search","data-testid":"SearchIcon"},"SearchIcon"),(0,f.jsx)(n.I,{icon:"cross-solid",className:E().errorMain},"ClearSolidIcon"),(0,f.jsx)(n.I,{icon:"file"},"InsertDriveFileIcon")],type:g,heading:y,description:C,actions:[(0,f.jsxs)("div",{className:E().actionButton,children:[(0,f.jsx)(_.w,{app:O.b.content.app,href:O.b.content.base,variant:"standalone-bold",className:E().actionButtonLink,children:w}),!r?.openMegaMenuButton&&(0,f.jsx)(a.$,{variant:"underlined","data-testid":"open-mega-menu-button",onClick:e=>{e.preventDefault(),d()},children:P})]},"action1")],"data-testid":"Error404"});break;case 204:case 503:l=t?.nonBlocking,u=(0,f.jsx)(v,{icons:[(0,f.jsx)(n.I,{icon:"cross-solid",className:E().errorMain},"ClearSolidIcon")],type:g,heading:y,description:C,actions:[(0,f.jsx)(i.E,{size:"body-1",color:"subtle",className:E().actionText,children:w},"action1"),(0,f.jsxs)("div",{className:E().actionButton,children:[(0,f.jsx)(_.w,{app:O.b.content.app,href:O.b.content.base,variant:"standalone-bold",className:E().actionButtonLink,children:P}),(0,f.jsx)(a.$,{variant:"underlined","data-testid":"open-mega-menu-button",onClick:e=>{e.preventDefault(),d()},children:P})]},"action2")],"data-testid":`Error${h}`});break;case 403:l=t?.nonBlocking,u=(0,f.jsx)(b.c,{iconProps:{status:"info",variant:"strong"},title:g,heading:y,description:C,className:(0,o.A)({[E().errorMessageBoard]:!l}),dataTestId:"message-board-403"});break;case 500:l=t?.blocking,u=(0,f.jsx)(v,{icons:[(0,f.jsx)(n.I,{icon:"cross-solid",className:E().errorMain},"ClearSolidIcon")],type:g,heading:y,description:C,actions:[(0,f.jsx)(i.E,{size:"body-1",color:"subtle",children:w},"action1")],"data-testid":"Error500"});break;default:l=t?.nonBlocking,u=(0,f.jsx)(v,{icons:[(0,f.jsx)(n.I,{icon:"cross-solid",className:E().errorMain},"ClearSolidIcon")],type:g,heading:y,description:C,"data-testid":"GenericError"})}return l?(0,f.jsx)(l,{title:m,children:u}):u}},93838:(e,t,r)=>{"use strict";r.d(t,{CT:()=>u,FD:()=>l,Ky:()=>d});var n=r(12072),a=r(94835),i=r(23719),o=r(22951);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2002t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l=(e,t,r)=>{if(r)return{error:r.message};if(!t)return;let{deliveryIndicator:n,currentTime:a,error:i}=t;return{currentTime:a,error:i,deliveryIndicator:{deliveryIndicators:n?.deliveryIndicators?.filter(t=>t.productId===e),productsNotFound:n?.productsNotFound?.filter(t=>t===e)}}},u=(e,t)=>{let{facilityId:r=null,cdcFacilityId:n=""}=t?.logisticDetails||{},{data:i,error:o}=(0,a.DF)({variables:{productIds:e,pickupFacilityIds:[r],deliveryFacilityId:n},skip:!(e?.length&&r&&n),context:{standalone:!0}}),s=i?.getStocks,c=i?.getStocks?.deliveryIndicator?.productsNotFound;return{formattedStockData:s?.deliveryIndicator?.deliveryIndicators?.map(({delivery:e,pickup:t,productId:r})=>({productId:r,productCta:{productNotFound:!!c?.includes(r),deliveryQuantity:e?.quantity,pickupQuantity:t?.quantity}})),stockData:s,stockError:o}},d=(e,{productDocList:t,stocks:r,locale:n,prices:a,stockLocatorPanelHandler:s,facilityName:u,productViewPage:d},h)=>{let f=t.map(({productId:e,stockIndicator:t,productImage:h,productTitle:f,brandName:m})=>{let g=l(e,r.stockData,r.stockError),y=g?.currentTime,v=a?.formattedPrice?.find(t=>t.productId===e)?.marketplaceData,b=v?.offerId,_=v?.isMarketPlaceProduct,O=(0,i.s1)(g?.deliveryIndicator?.deliveryIndicators?.[0],_?b:null,y),C=d!==o.WF.CART,{deliveryStockData:E,pickupStockData:w}=((e,t,r,n)=>{let a={stocksInfo:r,stockIndicator:n,currentTime:t},s=c(c({},a),{},{stockType:o.MM.DELIVERY}),l=c(c({},a),{},{stockType:o.MM.PICKUP});return{deliveryStockData:(0,i._l)(s,e),pickupStockData:(0,i._l)(l,e)}})(n,y,O,t);return{productId:e,stockInfo:g,deliveryStockData:E,pickupStockData:w,stockLocatorPanelHandler:C?{label:u,onClick:()=>s(p({productId:e,stockIndicator:t,productImage:h,productTitle:f,brandName:m}),o.y$.PLP)}:null}});return c(c({},f.find(t=>t.productId===e)),{},{viewMode:h})},p=({productId:e,stockIndicator:t,productImage:r,productTitle:n,brandName:a})=>({productId:e,stockIndicator:t,productImageUrl:r,productIdentifier:{stockIndicator:t,productTitle:n,brandName:a}})},94197:(e,t,r)=>{"use strict";r.d(t,{e:()=>p});var n=r(60004),a=r(82726),i=r(35695),o=r(33785),s=r(43207),c=r(32515),l=r.n(c),u=r(92141),d=r(60072);let p=()=>{let[e]=(0,s.B)(),{isPastScrollThreshold:t}=(0,u.H)(),{0:r,1:c}=(0,n.useState)(!1);return((0,n.useEffect)(()=>{c(!0)},[]),r)?(0,o.createPortal)((0,d.jsx)(a.$,{id:"scroll-to-top-button",onClick:()=>window.scrollTo({top:0,left:0,behavior:"smooth"}),variant:"primary",icon:"arrow-up",className:(0,i.A)(l().root,{[l().isNotVisible]:!t}
2002),"data-testid":"scrollTop",title:e("common.scrollToTop"),size:"s",floating:!0}),document.getElementById("scroll-to-top-button-portal")):null}},94452:(e,t,r)=>{var n=r(97268),a=r(42127);e.exports=function e(t,r,i,o,s){var c=-1,l=t.length;for(i||(i=a),s||(s=[]);++c<l;){var u=t[c];r>0&&i(u)?r>1?e(u,r-1,i,o,s):n(s,u):o||(s[s.length]=u)}return s}},94716:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(41010);let a=(0,n.J1)`
2003  fragment CMExternalLink on CMExternalLink {
2004    openInNewTab
2005    teaserTitle
2006    name
2007    id
2008    url
2009    __typename
2010  }
2011`},94835:(e,t,r)=>{"use strict";r.d(t,{AAr:()=>D,B1b:()=>K,Co9:()=>e_,DF:()=>Y,LSS:()=>ew,M0z:()=>eS,N_l:()=>B,O0q:()=>em,PtT:()=>z,S1L:()=>ee,UkZ:()=>W,WXO:()=>eg,ZcC:()=>en,aMY:()=>S,azj:()=>es,eaL:()=>ev,fsT:()=>Z,gpC:()=>ed,iUC:()=>ei,j2E:()=>G,jLZ:()=>N,jkR:()=>F,kAm:()=>eI,oRh:()=>eT,qUl:()=>et,ueV:()=>eC,wN:()=>U,wV2:()=>V,xBu:()=>j,yGx:()=>L,zaw:()=>el,zwC:()=>eh});var n=r(12072),a=r(41010),i=r(36109),o=r(86987),s=r(53556);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u={},d=(0,a.J1)`
2012    fragment PriceInfoFields on CreditPriceInfo {
2013  amount
2014  scale
2015  currency
2016}
2017    `,p=(0,a.J1)`
2018    fragment PriceStructureFields on PriceStructure {
2019  amount
2020  scale
2021  currency
2022  userCanViewPrice
2023}
2024    `,h=(0,a.J1)`
2025    fragment IndicatorFields on Indicator {
2026  quantity
2027  unitOfMeasure
2028  availabilityDate
2029  orderBefore
2030  inboundDeliveryDate
2031  deliveryPromiseRange {
2032    min
2033    max
2034  }
2035}
2036    `,f=(0,a.J1)`
2037    fragment StockFields on DeliveryIndicator {
2038  currentTime
2039  error
2040  deliveryIndicator {
2041    productsNotFound
2042    deliveryIndicators {
2043      productId
2044      facilityId
2045      pickupFacilityId
2046      deliveryFacilityId
2047      pickup {
2048        ...IndicatorFields
2049      }
2050      delivery {
2051        ...IndicatorFields
2052      }
2053      extendedDeliveryInformation {
2054        quantity
2055        unitOfMeasure
2056        cdcFacilityIds
2057        deliveryPromiseRange {
2058          min
2059          max
2060        }
2061        providerType
2062      }
2063      marketplaceDeliveryInformation {
2064        offerId
2065        quantity
2066        unitOfMeasure
2067        deliveryPromiseRange {
2068          min
2069          max
2070        }
2071      }
2072    }
2073  }
2074}
2075    `,m=(0,a.J1)`
2076    fragment DeliveryAddressFields on DeliveryAddress {
2077  id
2078  opCoAddressId
2079  addressLine1
2080  addressLine2
2081  addressLine3
2082  city
2083  postalCode
2084  region
2085  country
2086  addressName
2087  companyName
2088  contactFirstName
2089  contactMiddleName
2090  contactLastName
2091  contactPhoneNumber
2092  deliveryIndication
2093  customerReference
2094  editable
2095  deletable
2096  defaultAddress
2097  defaultUserAddress
2098  department
2099  pendingStatus
2100}
2101    `,g=(0,a.J1)`
2102    fragment AccountDetails on AccountDetails {
2103  id
2104  name
2105  orgName
2106  parentId
2107  facilityId
2108  accountType
2109  opcoUserStatus
2110  pricePreference
2111  roles
2112  paymentMethods {
2113    paymentCurrency
2114    paymentType
2115    paymentChannel
2116  }
2117  customerRelationship {
2118    salesRepresentative {
2119      firstname
2120      lastname
2121      email
2122    }
2123    customerSegmentation
2124    endMarketSegmentation
2125  }
2126  deliveryAddress {
2127    addressLine1
2128    city
2129    country
2130    postalCode
2131  }
2132  billingAddress {
2133    addressLine1
2134    city
2135    country
2136    postalCode
2137  }
2138  hasCreditLimit
2139  hideCustomerCreditLine
2140}
2141    `,y=(0,a.J1)`
2142    fragment AttachedAccount on AttachedAccount {
2143  accountId
2144  permissions
2145  onBehalfConsent
2146  jobCode
2147  jobTitle
2148  opCoUserStatus
2149  preference {
2150    spa
2151  }
2152  cartLimit {
2153    ...PriceStructureFields
2154  }
2155  monthlyPurchaseLimit {
2156    ...PriceStructureFields
2157  }
2158  dailyPurchaseLimit {
2159    ...PriceStructureFields
2160  }
2161}
2162    `,v=(0,a.J1)`
2163    fragment User on User {
2164  accountId
2165  userId
2166  id
2167  orgId
2168  name
2169  firstName
2170  middleName
2171  lastName
2172  permissions
2173  mobilePhoneNumber
2174  fixedPhoneNumber
2175  emailHash
2176  currency
2177  email
2178  numberOfAttachedAccounts
2179  isAdmin
2180  attachedAccounts {
2181    ...AttachedAccount
2182  }
2183  userDeletionRequestInfo {
2184    createdAt
2185    effectiveAt
2186    requestorUserId
2187  }
2188  isPunchoutUser
2189  isGenericUser
2190  systemChange {
2191    attribute
2192    changeReason {
2193      code
2194      message
2195    }
2196  }
2197  preferredDeliveryAddress {
2198    accountId
2199    deliveryAddress {
2200      ...DeliveryAddressFields
2201    }
2202  }
2203  preferredDeliveryAddresses {
2204    accountId
2205    deliveryAddress {
2206      ...DeliveryAddressFields
2207    }
2208  }
2209}
2210    `,b=(0,a.J1)`
2211    fragment GenericPriceStructureFields on GenericPriceStructure {
2212  amount
2213  scale
2214  currency
2215}
2216    `,_=(0,a.J1)`
2217    fragment CartFields on Cart {
2218  id
2219  name
2220  status
2221  createdAt
2222  lastModified
2223  includeAllSpas
2224  logisticDetails {
2225    logisticMethod
2226    cdcFacilityId
2227    facilityId
2228    facilityName
2229    deliveryAddress {
2230      opCoAddressId
2231      addressId
2232      addressName
2233      addressLine1
2234      addressLine2
2235      addressLine3
2236      postalCode
2237      city
2238      country
2239      region
2240      department
2241      companyName
2242    }
2243  }
2244  specialPriceAgreements {
2245    id
2246  }
2247  items {
2248    productId
2249  }
2250  project {
2251    id
2252    name
2253  }
2254  persistentMessages {
2255    operation
2256    code
2257    reasonCode
2258    additionalInfo
2259  }
2260  totalPriceIncludingSurchargesAndShipping {
2261    ...GenericPriceStructureFields
2262  }
2263  totalPriceIncludingSurcharges {
2264    ...GenericPriceStructureFields
2265  }
2266}
2267    `,O=(0,a.J1)`
2268    fragment ProductPriceBase on ProductPrices {
2269  productId
2270  netPrice {
2271    amount
2272    scale
2273    currency
2274  }
2275  netPricePercentage
2276  totalNetPrice {
2277    amount
2278    scale
2279    currency
2280  }
2281  listPrice {
2282    amount
2283    scale
2284    currency
2285  }
2286  totalListPrice {
2287    amount
2288    scale
2289    currency
2290  }
2291  displayNetPrice {
2292    amount
2293    scale
2294    currency
2295  }
2296  displayListPrice {
2297    amount
2298    scale
2299    currency
2300  }
2301}
2302    `,C=(0,a.J1)`
2303    fragment ProductNetListBestPrices on BestPrice {
2304  netPrice {
2305    amount
2306    scale
2307    currency
2308  }
2309  netPricePercentage
2310  totalNetPrice {
2311    amount
2312    scale
2313    currency
2314  }
2315  listPrice {
2316    amount
2317    scale
2318    currency
2319  }
2320  totalListPrice {
2321    amount
2322    scale
2323    currency
2324  }
2325  displayNetPrice {
2326    amount
2327    scale
2328    currency
2329  }
2330  displayListPrice {
2331    amount
2332    scale
2333    currency
2334  }
2335}
2336    `,E=(0,a.J1)`
2337    fragment ProductPrice on Price {
2338  error
2339  productPricesNotFound
2340  productPrices {
2341    ...ProductPriceBase
2342    promotions {
2343      campaignId
2344      title
2345      alternateProductId
2346      startDate
2347      endDate
2348      promotionalNetPrice {
2349        amount
2350        scale
2351        currency
2352      }
2353      totalPromotionalNetPrice {
2354        amount
2355        scale
2356        currency
2357      }
2358      promotionalListPrice {
2359        amount
2360        scale
2361        currency
2362      }
2363      totalPromotionalListPrice {
2364        amount
2365        scale
2366        currency
2367      }
2368      promotionalNetPercentageDecimal
2369      promotionalListPercentage
2370    }
2371    bestPrice {
2372      context {
2373        type
2374        id
2375        title
2376        promotionDetails {
2377          promotionalListPercentage
2378          promotionalNetPercentageDecimal
2379          strikeThroughNetPrice {
2380            amount
2381            scale
2382            currency
2383          }
2384          totalStrikeThroughNetPrice {
2385            amount
2386            scale
2387            currency
2388          }
2389          strikeThroughListPrice {
2390            amount
2391            scale
2392            currency
2393          }
2394          totalStrikeThroughListPrice {
2395            amount
2396            scale
2397            currency
2398          }
2399          displayStrikeThroughNetPrice {
2400            amount
2401            scale
2402            currency
2403          }
2404          displayStrikeThroughListPrice {
2405            amount
2406            scale
2407            currency
2408          }
2409        }
2410      }
2411      ...ProductNetListBestPrices
2412    }
2413    taxes {
2414      type
2415      surcharge
2416      rate {
2417        value
2418        scale
2419      }
2420      percentage
2421      amount {
2422        amount
2423        scale
2424        currency
2425      }
2426      displayAmount {
2427        amount
2428        scale
2429        currency
2430      }
2431    }
2432    fees {
2433      type
2434      levels {
2435        feeAmount {
2436          amount
2437          scale
2438          currency
2439          maxQuantity
2440        }
2441      }
2442    }
2443  }
2444  pricePreference
2445}
2446    `,w=(0,a.J1)`
2447    fragment ProductSearchResultDocsV2 on ProductDoc {
2448  productId
2449  productImage
2450  brandName
2451  brandImage
2452  tags
2453  isReturnable
2454  productTitle
2455  features {
2456    name
2457    value
2458  }
2459  references {
2460    refName
2461    refValue
2462  }
2463  minQuantity
2464  sellerNames
2465  quantitySteps
2466  contentUnit
2467  stockIndicator
2468  greenRating
2469  carbonFootprint
2470  followupProducts
2471  similarProducts
2472  isMarketplace
2473  isCuttable
2474  quantity
2475  priceDisplayMultiplier
2476  offers {
2477    offerId
2478    orderingDetail {
2479      contentUnit
2480      maxQuantity
2481      minQuantity
2482      packingQuantity
2483      quantitySteps
2484    }
2485    seller {
2486      sellerName
2487      opcoSellerId
2488    }
2489  }
2490  hasVariant
2491  iconCodes
2492  productCategoriesInfo {
2493    id
2494    title
2495    parents {
2496      id
2497      title
2498    }
2499    error
2500  }
2501}
2502    `,P=(0,a.J1)`
2503    fragment ProductTotalPrice on TotalProductPrice {
2504  productId
2505  listPrice {
2506    amount
2507    scale
2508    currency
2509  }
2510  totalNetPrice {
2511    amount
2512    scale
2513    currency
2514  }
2515  totalListPrice {
2516    amount
2517    scale
2518    currency
2519  }
2520  bestPrice {
2521    totalNetPrice {
2522      amount
2523      scale
2524      currency
2525    }
2526    totalListPrice {
2527      amount
2528      scale
2529      currency
2530    }
2531    listPrice {
2532      amount
2533      scale
2534      currency
2535    }
2536  }
2537  taxes {
2538    type
2539    surcharge
2540    rate {
2541      value
2542      scale
2543    }
2544    percentage
2545    amount {
2546      amount
2547      scale
2548      currency
2549    }
2550  }
2551}
2552    `,I=(0,a.J1)`
2553    fragment Store on Store {
2554  facilityType
2555  facilityId
2556  name
2557  description
2558  hasChildLocker
2559  activationDate
2560  desactivationDate
2561  localLocker {
2562    name
2563    openingHours {
2564      dayOfWeek
2565      isOpen
2566      periods {
2567        openTime
2568        closeTime
2569      }
2570    }
2571    exceptionalOpeningHours {
2572      date
2573      isOpen
2574      periods {
2575        openTime
2576        closeTime
2577      }
2578    }
2579  }
2580  address {
2581    addressLine1
2582    addressLine2
2583    addressLine3
2584    postalCode
2585    city
2586    country
2587    timezone
2588  }
2589  contactInfo {
2590    phoneNumber
2591    email
2592    faxNumber
2593  }
2594  location {
2595    latitude
2596    longitude
2597  }
2598  openingHours {
2599    dayOfWeek
2600    isOpen
2601    periods {
2602      openTime
2603      closeTime
2604    }
2605  }
2606  exceptionalOpeningHours {
2607    date
2608    isOpen
2609    periods {
2610      openTime
2611      closeTime
2612    }
2613  }
2614  services {
2615    serviceCode
2616    serviceTitle
2617    serviceMessage
2618  }
2619}
2620    `,x=(0,a.J1)`
2621    mutation UpdateCartFacilityId($cartId: ID!, $facilityId: String!) {
2622  updateCartFacilityId(cartId: $cartId, facilityId: $facilityId) {
2623    ...CartFields
2624  }
2625}
2626    ${_}
2627${b}`;function S(e){let t=l(l({},u),e);return i.n(x,t)}let T=(0,a.J1)`
2628    mutation CreateCart($cartName: String, $spaIds: [String!], $includeAllSpas: Boolean, $projectId: String) {
2629  createCart(
2630    cartName: $cartName
2631    includeAllSpas: $includeAllSpas
2632    spaIds: $spaIds
2633    projectId: $projectId
2634  ) {
2635    ...CartFields
2636  }
2637}
2638    ${_}
2639${b}`;function N(e){let t=l(l({},u),e);return i.n(T,t)}let A=(0,a.J1)`
2640    mutation SetActiveCart($cartId: ID!) {
2641  setActiveCart(cartId: $cartId) {
2642    ...CartFields
2643  }
2644}
2645    ${_}
2646${b}`;function j(e){let t=l(l({},u),e);return i.n(A,t)}let k=(0,a.J1)`
2647    mutation UpdateProductsToMultipleFavoriteLists($accountId: ID!, $userId: ID!, $email: String!, $products: [ProductItemInput]!, $productListsToAddTo: [String], $productListsToDeleteFrom: [String]) {
2648  updateProductsToMultipleFavoriteLists(
2649    accountId: $accountId
2650    userId: $userId
2651    email: $email
2652    products: $products
2653    productListsToAddTo: $productListsToAddTo
2654    productListsToDeleteFrom: $productListsToDeleteFrom
2655  ) {
2656    successfullyAddedInProductLists {
2657      id
2658      name
2659    }
2660    successfullyDeletedInProductLists
2661    fullProductLists {
2662      id
2663      name
2664    }
2665    productListsNotFound
2666  }
2667}
2668    `;function D(e){let t=l(l({},u),e);return i.n(k,t)}let R=(0,a.J1)`
2669    mutation CreateFavoriteProductList($accountId: ID!, $userId: ID!, $email: String!, $values: EditFavoriteProductListInput) {
2670  createFavoriteProductList(
2671    accountId: $accountId
2672    userId: $userId
2673    email: $email
2674    values: $values
2675  ) {
2676    id
2677    name
2678  }
2679}
2680    `;function L(e){let t=l(l({},u),e);return i.n(R,t)}let M=(0,a.J1)`
2681    mutation AddToCart($cartId: ID!, $productId: ID!, $quantity: Int!, $campaignId: ID, $cuts: [CableCutInput!], $offerId: ID) {
2682  addToCart(
2683    cartId: $cartId
2684    productId: $productId
2685    quantity: $quantity
2686    campaignId: $campaignId
2687    cuts: $cuts
2688    offerId: $offerId
2689  ) {
2690    ...CartFields
2691  }
2692}
2693    ${_}
2694${b}`;function F(e){let t=l(l({},u),e);return i.n(M,t)}let $=(0,a.J1)`
2695    mutation sendMessageToSupportCenter($payload: ContactMessageInput) {
2696  sendMessageToSupportCenter(payload: $payload) {
2697    message
2698  }
2699}
2700    `;function B(e){let t=l(l({},u),e);return i.n($,t)}let U=(0,a.J1)`
2701    query ActiveCart($synchronize: SynchronizeType) {
2702  activeCart(synchronize: $synchronize) {
2703    ...CartFields
2704  }
2705}
2706    ${_}
2707${b}`;function V(e){let t=l(l({},u),e);return o.IT(U,t)}let q=(0,a.J1)`
2708    query StoreById($facilityId: String) {
2709  storeById(facilityId: $facilityId) {
2710    ...Store
2711  }
2712}
2713    ${I}`;function G(e){let t=l(l({},u),e);return o.IT(q,t)}function z(e){let t=l(l({},u),e);return s._(q,t)}let H=(0,a.J1)`
2714    query AuthenticatedUserDetails($input: AuthenticatedUserDetailsInput!) {
2715  authenticatedUserDetails(input: $input) {
2716    currentAccount {
2717      ...AccountDetails
2718    }
2719    accounts {
2720      ...AccountDetails
2721    }
2722    user {
2723      ...User
2724    }
2725  }
2726}
2727    ${g}
2728${v}
2729${y}
2730${p}
2731${m}`;function W(e){let t=l(l({},u),e);return o.IT(H,t)}let Q=(0,a.J1)`
2732    query getStocks($productIds: [String]!, $pickupFacilityIds: [String]!, $deliveryFacilityId: String!) {
2733  getStocks(
2734    productIds: $productIds
2735    pickupFacilityIds: $pickupFacilityIds
2736    deliveryFacilityId: $deliveryFacilityId
2737  ) {
2738    ...StockFields
2739  }
2740}
2741    ${f}
2742${h}`;function Y(e){let t=l(l({},u),e);return o.IT(Q,t)}function K(e){let t=l(l({},u),e);return s._(Q,t)}let J=(0,a.J1)`
2743    query GetPriceData($productId: String!, $accountType: String, $accountId: ID!, $spaIds: String, $projectId: String, $defaultLogisticMethod: String, $includeAllSpas: Boolean) {
2744  getPriceById(
2745    productId: $productId
2746    accountType: $accountType
2747    accountId: $accountId
2748    spaIds: $spaIds
2749    projectId: $projectId
2750    defaultLogisticMethod: $defaultLogisticMethod
2751    includeAllSpas: $includeAllSpas
2752  ) {
2753    ...ProductPrice
2754  }
2755}
2756    ${E}
2757${O}
2758${C}`;function Z(e){let t=l(l({},u),e);return o.IT(J,t)}let X=(0,a.J1)`
2759    query ProductPurchaseHistoryLookup($productIds: [String]!, $accountId: ID!) {
2760  purchaseHistoryLookup(productIds: $productIds, accountId: $accountId) {
2761    alreadyPurchasedProducts
2762  }
2763}
2764    `;function ee(e){let t=l(l({},u),e);return o.IT(X,t)}function et(e){let t=l(l({},u),e);return s._(X,t)}let er=(0,a.J1)`
2765    query ProjectList($accountId: ID!) {
2766  projectList(accountId: $accountId) {
2767    id
2768    name
2769    startDateTime
2770    endDateTime
2771    hasProducts
2772    defaultLogisticDetails {
2773      logisticMethod
2774      facilityId
2775      opCoAddressId
2776    }
2777  }
2778}
2779    `;function en(e){let t=l(l({},u),e);return s._(er,t)}let ea=(0,a.J1)`
2780    query StoreListByAddress($address: String, $radius: Int, $page: Int, $size: Int) {
2781  storesByAddress(address: $address, radius: $radius, page: $page, size: $size) {
2782    totalElements
2783    radius
2784    originLocation {
2785      latitude
2786      longitude
2787    }
2788    facilities {
2789      facility {
2790        ...Store
2791      }
2792      distance {
2793        text
2794        value
2795      }
2796    }
2797  }
2798}
2799    ${I}`;function ei(e){let t=l(l({},u),e);return o.IT(ea,t)}let eo=(0,a.J1)`
2800    query StoreWithNearBy($facilityId: String, $radius: Int, $page: Int, $size: Int) {
2801  storeWithNearBy(facilityId: $facilityId) {
2802    store {
2803      ...Store
2804    }
2805    nearbyStores(page: $page, size: $size, radius: $radius) {
2806      totalElements
2807      facilities {
2808        facility {
2809          ...Store
2810        }
2811        distance {
2812          text
2813          value
2814        }
2815      }
2816    }
2817  }
2818}
2819    ${I}`;function es(e){let t=l(l({},u),e);return o.IT(eo,t)}let ec=(0,a.J1)`
2820    query GetSearchAutoSuggest($q: String!, $accountID: ID) {
2821  getSearchAutoSuggest(q: $q, accountId: $accountID) {
2822    queryContext {
2823      originalQuery
2824    }
2825    suggestionGroups {
2826      catalogName
2827      view
2828      querySuggestions {
2829        query
2830        displayText
2831      }
2832      searchSuggestionsV3 {
2833        ...ProductSearchResultDocsV2
2834      }
2835      attributeSuggestions {
2836        name
2837        value
2838        attributeType
2839      }
2840    }
2841  }
2842}
2843    ${w}`;function el(e){let t=l(l({},u),e);return s._(ec,t)}let eu=(0,a.J1)`
2844    query FavoriteProductLists($accountId: ID!, $userId: ID!, $email: String!, $getOnlyEditableLists: Boolean, $owner: String) {
2845  favoriteProductLists(
2846    accountId: $accountId
2847    userId: $userId
2848    email: $email
2849    getOnlyEditableLists: $getOnlyEditableLists
2850    owner: $owner
2851  ) {
2852    id
2853    name
2854    creationDate
2855    lastModificationDate
2856    defaultProductList
2857    numberOfProducts
2858    visibility
2859    isOwner
2860    userId
2861  }
2862}
2863    `;function ed(e){let t=l(l({},u),e);return o.IT(eu,t)}let ep=(0,a.J1)`
2864    query MenuEntries($accountId: ID!) {
2865  projectCount(accountId: $accountId) {
2866    activeProjects
2867  }
2868  quoteCount(accountId: $accountId) {
2869    all
2870  }
2871  blanketOrderCount(accountId: $accountId) {
2872    all
2873  }
2874  productReturnsCount(accountId: $accountId) {
2875    count
2876  }
2877}
2878    `;function eh(e){let t=l(l({},u),e);return o.IT(ep,t)}let ef=(0,a.J1)`
2879    query ProductsInFavoriteLists($accountId: ID!, $userId: ID!, $email: String!) {
2880  productsInFavoriteLists(accountId: $accountId, userId: $userId, email: $email) {
2881    id
2882    productsId(accountId: $accountId, userId: $userId, email: $email) {
2883      productId
2884    }
2885  }
2886}
2887    `;function em(e){let t=l(l({},u),e);return o.IT(ef,t)}function eg(e){let t=l(l({},u),e);return s._(ef,t)}let ey=(0,a.J1)`
2888    query ContactSubjectList {
2889  contactSubjectList {
2890    subjects {
2891      value
2892      subSubjects
2893    }
2894  }
2895}
2896    `;function ev(e){let t=l(l({},u),e);return o.IT(ey,t)}let eb=(0,a.J1)`
2897    query navigationCategories {
2898  navigationCategories {
2899    id
2900    title
2901    maxDepth
2902    subCategories {
2903      id
2904      title
2905      subCategories {
2906        id
2907        title
2908        subCategories {
2909          id
2910          title
2911        }
2912      }
2913    }
2914  }
2915}
2916    `;function e_(e){let t=l(l({},u),e);return s._(eb,t)}let eO=(0,a.J1)`
2917    query CreditLimit($accountId: ID!) {
2918  creditLimit(accountId: $accountId) {
2919    authorizedCreditLimit {
2920      ...PriceInfoFields
2921    }
2922    creditCoveredByInsurance {
2923      ...PriceInfoFields
2924    }
2925    creditBalance {
2926      ...PriceInfoFields
2927    }
2928    pendingInvoicesToPay {
2929      ...PriceInfoFields
2930    }
2931    creditStatus
2932    paymentTerms
2933    updatedAt
2934  }
2935}
2936    ${d}`;function eC(e){let t=l(l({},u),e);return o.IT(eO,t)}let eE=(0,a.J1)`
2937    query GetTotalPriceData($productId: String!, $quantity: Int!, $accountType: String, $accountId: ID!, $spaIds: String, $projectId: String, $defaultLogisticMethod: String, $includeAllSpas: Boolean) {
2938  getTotalPriceById(
2939    productId: $productId
2940    quantity: $quantity
2941    accountType: $accountType
2942    accountId: $accountId
2943    spaIds: $spaIds
2944    projectId: $projectId
2945    defaultLogisticMethod: $defaultLogisticMethod
2946    includeAllSpas: $includeAllSpas
2947  ) {
2948    ...ProductTotalPrice
2949  }
2950}
2951    ${P}`;function ew(e){let t=l(l({},u),e);return s._(eE,t)}let eP=(0,a.J1)`
2952    query GetProductSearchSuggestions($query: String!, $accountId: ID, $url: String, $refUrl: String) {
2953  getProductSearchSuggestions(
2954    query: $query
2955    accountId: $accountId
2956    url: $url
2957    refUrl: $refUrl
2958  ) {
2959    keywordSuggestions
2960    productSuggestions {
2961      ...ProductSearchResultDocsV2
2962    }
2963    categorySuggestions {
2964      name
2965      id
2966    }
2967    queryContext {
2968      originalQuery
2969    }
2970  }
2971}
2972    ${w}`;function eI(e){let t=l(l({},u),e);return s._(eP,t)}let ex=(0,a.J1)`
2973    query GetDeliveryPromises($products: [CartItems!]!, $accountId: String!, $deliveryFacilityId: String, $logisticMethods: [LogisticMethod], $pickupFacilityId: String, $deliveryAddress: DeliveryPromiseAddressInput) {
2974  getDeliveryPromises(
2975    products: $products
2976    accountId: $accountId
2977    deliveryFacilityId: $deliveryFacilityId
2978    logisticMethods: $logisticMethods
2979    pickupFacilityId: $pickupFacilityId
2980    deliveryAddress: $deliveryAddress
2981  ) {
2982    deliveryPromises {
2983      productId
2984      unitOfMeasure
2985      pickups {
2986        quantity
2987        expectedAvailabilityDate
2988      }
2989      deliveries {
2990        quantity
2991        expectedAvailabilityDate
2992      }
2993    }
2994    productsNotFound
2995  }
2996}
2997    `;function eS(e){let t=l(l({},u),e);return o.IT(ex,t)}function eT(e){let t=l(l({},u),e);return s._(ex,t)}},94845:(e,t,r)=>{"use strict";function n(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):t;n=e.formattingValues[a]||e.formattingValues[t]}else{let t=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{k:()=>a});let a={ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:n({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:n({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:n({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2997ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},94863:e=>{e.exports={skipLinksContainer:"skip-links_skipLinksContainer__k4xXf"}},94867:(e,t,r)=>{"use strict";r.d(t,{Fo:()=>d,OZ:()=>l,cR:()=>u,uZ:()=>p});var n=r(12072),a=r(23134),i=r(22951),o=r(34856);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l=e=>e.reduce((e,t)=>Object.values(a.aX).includes(t)?t===a.aX.ViewGrossPrice?c(c({},e),{},{grossPricePermission:!0}):t===a.aX.ViewNetPrice?c(c({},e),{},{netPricePermission:!0}):e:e,{netPricePermission:!1,grossPricePermission:!1}),u=e=>({shouldDisplayListPrice:e===o.k.GROSS_AND_NET_PRICES||e===o.k.ONLY_GROSS_PRICES,shouldDisplayNetPrice:e===o.k.GROSS_AND_NET_PRICES||e===o.k.ONLY_NET_PRICES}),d=(e,t,r)=>!e||r&&r===i.WF.CART?(e=>e.grossPricePermission&&e.netPricePermission?o.k.GROSS_AND_NET_PRICES:e.grossPricePermission?o.k.ONLY_GROSS_PRICES:e.netPricePermission?o.k.ONLY_NET_PRICES:o.k.NO_PRICES)(t):t.grossPricePermission&&t.netPricePermission?o.j[e]??o.k.GROSS_AND_NET_PRICES:t.grossPricePermission?o.k.ONLY_GROSS_PRICES:t.netPricePermission?o.k.ONLY_NET_PRICES:o.k.NO_PRICES,p=({totalPriceData:e,pricePermissions:t,pricePreference:r})=>{if(!e)return;let n=d(r,t),a=e?.bestPrice;switch(n){case o.k.GROSS_AND_NET_PRICES:return a.totalNetPrice;case o.k.ONLY_GROSS_PRICES:return a.totalListPrice;case o.k.ONLY_NET_PRICES:return a.totalNetPrice;case o.k.NO_PRICES:default:return}}},95037:e=>{e.exports={stockInfoContainer:"stock-info_stockInfoContainer__eNsyC",stockInfoGridContainer:"stock-info_stockInfoGridContainer__hRKzk",stockQuantityLabelClassName:"stock-info_stockQuantityLabelClassName___bor3",secondStockTextContainerGridClassName:"stock-info_secondStockTextContainerGridClassName__1UzNP",stockTextContainerGridClassName:"stock-info_stockTextContainerGridClassName__CB2YP",link:"stock-info_link__nbeqA",linkText:"stock-info_linkText__yEQBV"}},95277:e=>{e.exports={root:"root-panel_root__vGbc1",content:"root-panel_content__qasqx",accordionContainer:"root-panel_accordionContainer__9I_qY",list:"root-panel_list__DCRBg",listItemRoot:"root-panel_listItemRoot__2n_H0",listItemLink:"root-panel_listItemLink__zJrhe",linkButton:"root-panel_linkButton__rucJt"}},95314:(e,t,r)=>{"use strict";r.d(t,{B:()=>u});var n=r(10983),a=r(56021),i=r.n(a),o=r(68915),s=r(7976),c=r(47640),l=r(60072);let u=()=>{let{user:e}=(0,o.Z2)(),{pendo_api_key:t}=(0,s.rD)(),{locale:r}=(0,n.useRouter)(),{isFlagEnabled:a}=(0,s.h)(),u=a(c.kK),d=a(c.Eo),p=a(c.hb)&&(()=>{try{let e=document.cookie.split(";").find(e=>e.trim().startsWith("OptanonConsent="));if(!e)return!1;let t=e.substring(e.indexOf("=")+1);if(!t)return!1;return/groups=([^&]*[,])?C0002:1([,&]|$)/.test(decodeURIComponent(t))}catch(e){return console.error("Failed to read analytics consent cookie.",e),!1}})();if(!u||!e||!t)return t||console.error("The Pendo API Key is missing."),null;let h=(()=>{let e=[];return d&&e.push(`
2998      // PDP-specific script to handle [productId] placeholder replacement in Pendo guides
2999      // Only runs when feedback collection feature is enabled
3000
3001      // Immediately start monitoring and hiding elements with [productId] to prevent flash
3002      (function() {
3003        let productId = null;
3004
3005        // Extract product ID from URL immediately
3006        const isPDP = window.location.pathname.includes('/products/');
3007        if (isPDP) {
3008          const pathname = window.location.pathname;
3009          const segments = pathname.split('/');
3010          const productSegment = segments[segments.length - 1];
3011          if (productSegment) {
3012            const parts = productSegment.split('-');
3013            const encodedProductId = parts[parts.length - 1];
3014            productId = encodedProductId.replace(/__/g, '-');
3015          }
3016        }
3017
3018        // Function to hide elements containing [productId] immediately
3019        function hideProductIdElements() {
3020          if (!productId) return;
3021
3022          const pendoElements = document.querySelectorAll('[class*="pendo"], [id*="pendo"]');
3023          pendoElements.forEach(function(element) {
3024            const textContent = element.textContent || '';
3025            if (textContent.includes('[productId]') && textContent.length < 500) {
3026              element.style.display = 'none';
3027              element.setAttribute('data-pending-productid-replacement', 'true');
3028            }
3029          });
3030        }
3031
3032        // Function to replace [productId] and keep elements hidden (data collection only)
3033        function replacePendoPlaceholders() {
3034          if (!productId) return;
3035
3036          const pendoElements = document.querySelectorAll('[data-pending-productid-replacement="true"]');
3037          pendoElements.forEach(function(element) {
3038            const innerHTML = element.innerHTML || '';
3039            if (innerHTML.includes('[productId]')) {
3040              element.innerHTML = innerHTML.replace(/\\[productId\\]/g, productId);
3041              // Keep element hidden - it's for data collection, not user display
3042              element.style.display = 'none';
3043              element.removeAttribute('data-pending-productid-replacement');
3044            }
3045          });
3046        }
3047
3048        // Function to dismiss all active guides on navigation
3049        function dismissActiveGuides() {
3050          if (!window.pendo) return;
3051
3052          // Get and dismiss active guides to prevent auto-reopening
3053          if (typeof window.pendo.getActiveGuides === 'function') {
3054            const activeGuides = window.pendo.getActiveGuides();
3055            if (activeGuides && activeGuides.length > 0) {
3056              activeGuides.forEach(function(guide) {
3057                if (guide && guide.id && typeof window.pendo.onGuideDismissed === 'function') {
3058                  window.pendo.onGuideDismissed(guide);
3059                }
3060              });
3061            }
3062          }
3063        }
3064
3065        // Start monitoring only if we're on a PDP
3066        if (productId) {
3067          let lastPathname = window.location.pathname;
3068
3069          // Hide existing elements immediately
3070          hideProductIdElements();
3071
3072          // Function to check URL changes and dismiss guides
3073          function checkUrlChange() {
3074            const currentPath = window.location.pathname;
3075            if (currentPath !== lastPathname) {
3076              dismissActiveGuides();
3077              lastPathname = currentPath;
3078            }
3079          }
3080
3081          // Watch for DOM changes and URL changes
3082          const observer = new MutationObserver(function(mutations) {
3083            let hasPendoMutation = false;
3084            mutations.forEach(function(mutation) {
3085              mutation.addedNodes.forEach(function(node) {
3086                if (node.nodeType === 1 && node.className &&
3087                    (node.className.includes('pendo') || node.id && node.id.includes('pendo'))) {
3088                  hasPendoMutation = true;
3089                }
3090              });
3091            });
3092
3093            if (hasPendoMutation) {
3094              hideProductIdElements();
3095              setTimeout(replacePendoPlaceholders, 50);
3096            }
3097
3098            checkUrlChange();
3099          });
3100
3101          observer.observe(document.body, { childList: true, subtree: true });
3102
3103          // Fallback URL check every 300ms
3104          setInterval(checkUrlChange, 300);
3105
3106          // Initial placeholder replacement
3107          setTimeout(replacePendoPlaceholders, 500);
3108        }
3109      })();
3110    `),e.join("\n")})();return(0,l.jsx)(i(),{"data-testid":"pendo-script",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
3111          (function(apiKey){
3112            (function(p,e,n,d,o){
3113              var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];
3114              v=['initialize','identify','updateOptions','pageLoad','track'];for(w=0,x=v.length;w<x;++w)(function(m){
3115                o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]);
3116                y=e.createElement(n);y.async=!0;y.src='https://cdn.eu.pendo.io/agent/static/'+apiKey+'/pendo.js';
3117                z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo');
3118
3119                pendo.initialize({
3120                  visitor: {
3121                    id:     '${e?.emailHash}',
3122                    locale: '${r}'
3123                  },
3124                  doNotTrackGuides: ${!p},
3125                });
3126
3127                console.log('Pendo: Successfully initialized with visitor ID:', '${e?.emailHash}');
3128                ${h}
3129          })('${t}');
3130        `}})}},95986:(e,t,r)=>{"use strict";r.d(t,{I:()=>eO});var n=r(10945),a=r(59100),i=r(43207),o=r(60004),s=r(48088),c=r(60072);
3130let l=(0,o.memo)(({value:e,onChange:t,placeholder:r,label:n,searchLabel:a,clearLabel:l,debounceDelay:u=250,disabled:d=!1,className:p,"data-testid":h})=>{let[f]=(0,i.B)(),{0:m,1:g}=(0,o.useState)(e||""),y=(0,o.useRef)(null);(0,o.useEffect)(()=>{g(e||"")},[e]),(0,o.useEffect)(()=>()=>{y.current&&clearTimeout(y.current)},[]);let v=(0,o.useCallback)(e=>{let r=e.target.value;g(r),y.current&&(clearTimeout(y.current),y.current=null),r.trim()?y.current=setTimeout(()=>{t(r.trim()||void 0)},u):t(void 0)},[t,u]),b=(0,o.useCallback)(()=>{y.current&&(clearTimeout(y.current),y.current=null),g(""),t(void 0)},[t]),_=(0,o.useCallback)(()=>{y.current&&(clearTimeout(y.current),y.current=null),t(m.trim()||void 0)},[m,t]);return(0,c.jsx)(s.S,{placeholder:r||f("search.searchAction"),label:n||f("search.searchAction"),searchLabel:a||f("common.search"),clearLabel:l||f("common.clear"),onSearch:_,onChange:v,onClear:b,value:m,disabled:d,className:p,"data-testid":h})});l.displayName="LiveSearchBar";var u=r(68915);let d=(0,o.createContext)(null),p=({children:e})=>{let{account:t}=(0,u.Z2)(),{0:r,1:n}=(0,o.useState)(t?.parentId??null),{0:a,1:i}=(0,o.useState)(),{0:s,1:l}=(0,o.useState)(),{0:p,1:h}=(0,o.useState)(0),{0:f,1:m}=(0,o.useState)({accounts:[],totalAccounts:0,totalTopLevelAccounts:0,parentAccounts:[]}),g=(0,o.useCallback)(e=>{h(0),l(void 0),m({accounts:[],totalAccounts:0,parentAccounts:[],totalTopLevelAccounts:0}),n(e)},[n,h,m,l]),y=(0,o.useMemo)(()=>({parentId:r,updateParentId:g,selectingAccountId:a,setSelectingAccountId:i,page:p,setPage:h,paginatedAccounts:f,setPaginatedAccounts:m,search:s,setSearch:l}),[r,g,a,i,p,h,f,m,s,l]);return(0,c.jsx)(d.Provider,{value:y,children:e})},h=()=>{let e=(0,o.useContext)(d);if(!e)throw Error("You need to wrap your component with <SwitchAccountProvider>");return e};var f=r(66129),m=r.n(f);let g=(0,o.memo)(()=>{let[e]=(0,i.B)(),{search:t,setSearch:r,setPage:n,setPaginatedAccounts:a}=h(),s=(0,o.useCallback)(e=>{t!==e&&(n(0),a({accounts:[],totalAccounts:0,parentAccounts:[],totalTopLevelAccounts:0}),r(e))},[t,n,a,r]);return(0,c.jsx)("div",{className:m().searchContainer,children:(0,c.jsx)(l,{value:t,onChange:s,placeholder:e("switchAccount.search.placeholder"),searchLabel:e("common.search"),clearLabel:e("common.clear"),"data-testid":"switch-account-search"})})});var y=r(12072),v=r(42092),b=r(7470),_=r(45062),O=r(35695),C=r(54688),E=r(10983);r(62175);var w=r(27245),P=r(2117),I=r(85582),x=r(26074);let S=function(e){return e.ADD_USER="1_add_user",e.ADD_USER_CLICK="1_add_user_evt",e.ADD_USER_INFORMATION="2_add_user_information",e.ADD_USER_ACCOUNT="3_add_user_account",e.ADD_USER_PERMISSION="4_add_user_permission",e.ADD_USER_PERMISSION_MULTI="4_add_user_permission_multi",e.ADD_USER_COMPLETED="5_add_user_completed",e.ADD_USER_COMPLETED_CLICK="5_add_user_completed_evt",e.ADD_USER_COMPLETED_MULTI="5_add_user_completed_multi",e}({}),T=["searchQuery"],N=["searchQuery"];function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){(0,y.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class k extends P.Qq{sendEvent=({eventName:e,eventCategory:t,eventData:r})=>this._sendEvent(e,t,r);sendAccountActivationFailedGtmTag=()=>this._sendEvent("activation_fail","account_activation");sendClickResetPasswordGtmTag=()=>this._sendEvent("reset_password","account");sendOrderResearchFilterGtmTag=({search_term:e,search_dropdown:t})=>{this._sendEvent(I.cP.ORDER_SEARCH,I.g$.ACCOUNT,{search_term:e,search_dropdown:t})};sendDeliveryNoteSearchGtmTag=({search_term:e})=>{this._sendEvent(I.cP.ORDER_SEARCH,I.g$.ACCOUNT,{search_term:e})};sendOrderListGtmTag=({event:e,category:t})=>{this._sendEvent(e,I.ms.ACCOUNT_ORDERS,{filter:{category:t}})};sendShipmentDrawerGtmTag=()=>{this._sendEvent(I.cP.PAGEVIEW,I.ms.ACCOUNT_ORDERS,{page:{page_type_1:I.g$.INDIVIDUAL_SHIPMENT,page_type_2:I.g$.ORDERS}})};sendAccountDrawerGtmTag=()=>{this._sendEvent(I.cP.PAGEVIEW,I.ms.ACCOUNT_ORDERS,{page:{page_type_1:I.g$.ACCOUNT_DRAWER,page_type_2:I.g$.ORDERS}})};sendUserFormClickGtmTag=()=>{this._sendEvent(I.cP.CLICK_USER_CREATION,I.ms.USER_ADDITION,{steps:S.ADD_USER_CLICK})};sendUserFormAddAnotherUserClickGtmTag=()=>{this._sendEvent(I.cP.SUBMIT_USER_CREATION,I.ms.USER_ADDITION,{steps:S.ADD_USER_COMPLETED_CLICK})};sendUserFormViewGtmTag=({step:e,pageType2:t})=>{this.sendPageViewGtmTag({page_type_1:I.g$.ACCOUNT,page_type_2:t||I.Cm.ADD_USER,steps:e,event_category:"account"})};sendUserEditFormViewGtmTag=({step:e,pageType2:t})=>{this.sendPageViewGtmTag({page_type_1:I.g$.ACCOUNT,page_type_2:t,steps:e,event_category:"account"})};sendToggleViewButtonGtmTag=(e,t)=>
3130{this._sendEvent(e,I.g$.ACCOUNT,{view_type:t})};sendClickOnExportQuotesGtmTag=()=>{this._sendEvent(I.cP.EXPORT_QUOTES_CLICK,I.ms.EXPORT)};sendExportFavoriteListClickGtmTag=()=>{this._sendEvent(I.cP.EXPORT_FAVORITE_CLICK,I.ms.EXPORT)};sendExportFavoriteListGtmTag=()=>{this._sendEvent(I.cP.EXPORT_FAVORITE_RESULT,I.ms.EXPORT)};sendShipmentClickGtmTag=(e,t,r)=>{this._sendEvent(e,I.g$.ACCOUNT,{view_type:t,shipment_status:r})};sendOrdersFiltersGtmTag=(e,t,r)=>{this._sendEvent(e,I.g$.ACCOUNT,j({event_category:I.ms.ORDERS,view_type:t},r&&{filter:r}))};sendOrdersCalendarFiltersGtmTag=(e,t,r)=>{this._sendEvent(e,I.g$.ACCOUNT,j({event_category:I.ms.BROWSE_CATALOG,view_type:t},r&&{filter:r}))};sendDeliveryNoteFiltersGtmTag=({event:e,category:t,amount:r})=>{this._sendEvent(e,I.g$.ACCOUNT,{filter:j({category:t},void 0!==r&&{amount:r})})};sendBlanketOrderResearchFilterGtmTag=({search_term:e})=>{this._sendEvent(I.cP.ORDER_RESEARCH,I.g$.ACCOUNT,{search_account_type:e})};sendQuoteResearchFilterGtmTag=({search_term:e})=>{this._sendEvent(I.cP.QUOTE_RESEARCH,I.g$.ACCOUNT,{search_account_type:e})};sendInvoiceResearchFilterGtmTag=e=>{let{searchQuery:t}=e,r=Object.keys((0,C.A)(e,T)).map(e=>"types"===e?"invoice_type":"startCreatedDate"===e||"endCreatedDate"===e?"creation_date":"endDueDate"===e||"startDueDate"===e?"due_date":"status"===e?"payment_status":e);this._sendEvent("invoice_research","account",{filter_account_type:r.join("|")||I.vN.NONE,search_account_type:t||I.vN.NONE})};sendInvoiceCreditNotesFilterDrawerGtmTag=(e,t)=>{this._sendEvent(e,I.g$.ACCOUNT,t?{filter:t}:{})};sendInvoicePaymentGtmTag=({status:e,invoices:t,value:r})=>{let{isLoggedIn:n,user:a,associateUser:i,store:o}=this._authContext||{},s=j({login:n?I.vN.YES:I.vN.NO},n&&{id:a?.emailHash||I.vN.NONE,user_type:i?.userId?I.Vg.ASSOCIATE:I.Vg.CUSTOMER,account_id:a?.accountId||I.vN.NONE,branch_name:this._withBranchCommonData.branch,branch_location:o?.location,branch_id:o?.facilityId});this._sendEvent("invoices_payment","checkout",{status:e,invoices:t,value:r,page:{page_type_1:"account",page_type_2:"invoice-credit-notes"},user:s})};sendAlreadyPurchasedFilterGtmTag=e=>{let t=e.endLastPurchasedDate&&e.startLastPurchasedDate?"date":I.vN.NONE;this._sendEvent("filter_already_purchased","account",{filter_source:"already_purchased",filter_category:t,filter_name:"filter_already_purchased",search_term:e.searchQuery||I.vN.NONE})};sendCartLimitsTag=({purchaseLimits:e,cartLimit:t,monthlyPurchaseLimit:r,dailyPurchaseLimit:n})=>{this._sendEvent("toggle_interaction","account",{cart_value:{limit_value:+e.isCartLimitEnabled,limit:e.isCartLimitEnabled?t:null},monthly_order_value:{limit_value:+e.isMonthlyLimitEnabled,limit:e.isMonthlyLimitEnabled?r:null},daily_order_value:{limit_value:+e.isDailyLimitEnabled,limit:e.isDailyLimitEnabled?n:null}})};sendToBeDeliveredFilterGtmTag=e=>{let{startPlacedDate:t,endPlacedDate:r,startDeliveryDate:n,endDeliveryDate:a,searchQuery:i}=e;this._sendEvent("to_be_delivered_research","account",{filter_account_type:n&&a||t&&r?"date":I.vN.NONE,search_full_text:i||I.vN.NONE})};sendToBeDeliveredFilterDrawerGtmTag=(e,t)=>{this._sendEvent(e,I.g$.ACCOUNT,t?{filter:t}:{})};sendPackagingReturnsFilterGtmTag=e=>{let{searchQuery:t}=e,r=Object.keys((0,C.A)(e,N)).map(e=>"types"===e?"product_type":"startDueDate"===e||"endDueDate"===e?"due_date":"statuses"===e?"return_status":e);this._sendEvent("packaging_returns_research","account",{filter_account_type:r.join("|")||I.vN.NONE,search_account_type:t||I.vN.NONE})};sendPackagingReturnsFilterDrawerGtmTag=(e,t)=>{this._sendEvent(e,I.g$.ACCOUNT,t?{filter:t}:{})};sendSubmitUserCreationGtm=e=>this._sendEvent("submit_user_creation","account",{status:e});sendInstantAccountCreationSwitchTabGtm=(e,t)=>{let{user:r,store:n}=this._authContext||{};this._sendEvent(I.cP.SELECT_CUSTOMER_STATUS,I.g$.FASTONBOARDING,{event_related_type:e,user:{account_id:r?.accountId||I.vN.NONE,branch_name:n?.name||I.vN.NONE,id:r?.userId||I.vN.NONE,login:I.vN.NO,opco_id:this._basicCommonData.opco_id,language:this._basicCommonData.language,status:t}})};sendRequestCreditLineGtm=(e,t)=>
3130{let{user:r,store:n}=this._authContext||{};this._sendEvent(I.cP.REQUEST_CREDIT_LINE,I.g$.FASTONBOARDING,{event_related_type:e,user:{account_id:r?.accountId||I.vN.NONE,branch_name:n?.name||I.vN.NONE,id:r?.userId||I.vN.NONE,login:I.vN.NO,opco_id:this._basicCommonData.opco_id,language:this._basicCommonData.language,status:t}})};sendInstantAccountCreationPageViewGtm=({customerStatus:e,hasPrefilledCompanyInfo:t})=>{let{user:r,store:n}=this._authContext||{};this._sendEvent(I.cP.PAGEVIEW,I.g$.FASTONBOARDING,{event_related_type:t?"prefilled_company_info":I.vN.NONE,page:{page_type_1:I.g$.SIGNUP,page_type_2:I.Cm.VERIFICATION_COMPLETE},user:{account_id:r?.accountId||I.vN.NONE,branch_name:n?.name||I.vN.NONE,id:r?.userId||I.vN.NONE,login:I.vN.NO,opco_id:this._basicCommonData.opco_id,language:this._basicCommonData.language,status:e}})};sendClickUserCreationGtm=()=>this._sendEvent("click_user_creation","account");sendOrdersMassDownloadGtmTag=(e,t)=>this._sendEvent("download_order_documentation","account",{status:e,quantity:t});sendEditUserPermissionsGtmTag=({permission_type:e})=>this._sendEvent("edit_user_permission","account",{permission_type:e??I.vN.NONE});sendEditPersonalInfoGtmTag=()=>this._sendEvent("edit_personal_info","account");sendClickedProjectLinkName=e=>this._sendEventWithCurrency("click_link_projects","account",{click_link:e});sendFilterOnDeliveryAddressListGtmTag=()=>{this._sendEventWithOpcoAndLanguage("address_research","account")};sendSubmitEmailActivationSuccess=()=>this._sendEvent("submit_email_activation_success","account");sendSubmitEmailActivationError=()=>this._sendEvent("submit_email_activation_error","account");sendUserPermissionsToggleInteractionGtmTag=(e,t)=>this._sendEvent("toggle_interaction","account",{permission_type:e,permission_value:+!!t});sendClickOrderDeliveryDetailsGtmTag=()=>this._sendEvent("click_CTA_specific_order_delivery_see_details_","account");sendViewItemListPackagingReturnGtmTag=e=>{let{currency:t,items:r}=e;this._sendEvent(I.cP.VIEW_ITEM_LIST,I.g$.ACCOUNT,{item_list_name:I.Cm.PACKAGING_RETURNS,ecommerce:{currency:t,items:r}})};sendOrdersFilterDrawerGtmTag=(e,t)=>{this._sendEvent(e,I.g$.ACCOUNT,t?{filter:t}:{})};sendAccountsFilterDrawerGtmTag=(e,t)=>{this._sendEvent(e,I.g$.ORDERS,t?{filter:t}:{})};sendOrdersListFilterGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendBlanketOrdersListFilterGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendQuotesListFilterGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendBlanketOrdersListSortGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendQuotesListSortGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendOrdersListMobileFilterGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendBlanketOrdersListMobileFilterGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendQuotesListMobileFilterGtmTag=e=>{this._sendEvent(I.cP.APPLY_FILTER,I.g$.ACCOUNT,{filter:e})};sendPackagingReturnRequestGtmTag=e=>{let{currency:t,branch_id:r,items:n,branch:a,status:i}=e;this._sendEvent("request","packaging_return",{branch:a,branch_id:r,ecommerce:{currency:t,items:n},status:i})};sendDownloadExportBarcodeGtmTag=()=>{this._sendEvent(I.cP.DOWNLOAD,I.ms.FAVORITE_LIST,{download_type:"export_barcode"})};sendSubmitUserRegistration=e=>this._sendEvent(I.ms.SUBMIT_REGISTRATION,I.cP.ACCOUNT,{status:e?I.vN.YES:I.vN.NO});sendDownloadDocumentationGtmTag=({download_type:e,quantity:t,status:r,error:n})=>this._sendEvent("download","account",j(j({download_type:e.toLowerCase(),status:r},t&&{quantity:t}),n&&{error:n}));sendAddedReferencesListGtmTag=({userId:e,accountId:t,products:r=[],unrecognizedReferences:n=[],multipleReferences:a=[],method:i=""})=>{this._sendEventWithOpcoAndLanguage(I.cP.PAGEVIEW,I.ms.BULK_ADD,{user:{userId:e,accountId:t},items:{found:r,not_found:n,duplicate:a},method:i})};sendCompanyCheckGtmTag=e=>this._sendEvent(I.ms.COMPANY_CHECK,I.cP.ACCOUNT,{status:e?"yes":"no"});sendUserNotificationConsentGtmTag=e=>this._sendEvent(I.cP.CHANGE_NOTIFICATION_SETTING,I.ms.ACCOUNT,{notification_change:e.toLowerCase()});sendUserNotificationConsentsGtmTag=e=>this._sendEvent(I.cP.CHANGE_NOTIFICATION_SETTING,I.ms.ACCOUNT,{notification_change:e.map(e=>e.toLowerCase()).join("|")});sendSwitchAccountGtmTag=()=>this._sendEvent(I.cP.SWITCH_ACCOUNT,I.ms.ACCOUNT);_buildConfiguratorUserData(){let{isLoggedIn:e,user:t,guestUser:r,associateUser:n,store:a}=this._authContext||{};return j(j({login:e?I.vN.YES:I.vN.NO},e&&{id:t?.emailHash||I.vN.NONE,user_type:n?.userId?I.Vg.ASSOCIATE:I.Vg.CUSTOMER,account_id:t?.accountId||I.vN.NONE,offline:void 0,segment:void 0,customer_type:void 0,customer_id:void 0,branch_name:this._withBranchCommonData.branch,branch_location:a?.location,branch_id:a?.facilityId}),r&&{account_id:r?.accountId||I.vN.NONE,branch_name:this._withBranchCommonData.branch,guest_id:r.userId,user_t
3130ype:I.oZ})}sendConfiguratorPageViewGtmTag=({found:e,not_found:t,connectorType:r,connectorSupplier:n})=>{let a=r&&n?(0,x.Fy)(r,n):void 0,i=this._buildConfiguratorUserData();(0,P.I4)({dataLayer:j(j({event:I.cP.PAGEVIEW,opco_id:this._basicCommonData.opco_id,language:this._basicCommonData.language},a&&{event_related_type:a}),{},{page:{page_type_1:I.g$.ACCOUNT,page_type_2:I.Cm.CONFIGURATOR_LIST},user:i,items:{found:e,not_found:t}})})};sendConfiguratorViewItemListGtmTag=(e,t,r)=>{let{isLoggedIn:n,user:a,guestUser:i}=this._authContext||{},o=t&&r?(0,x.Fy)(t,r):void 0,s=this._buildConfiguratorUserData();(0,P.I4)({dataLayer:j(j({event:I.cP.VIEW_ITEM_LIST,event_category:I.ms.CONFIGURATOR,opco_id:this._basicCommonData.opco_id},this._basicCommonData?.language&&{language:this._basicCommonData.language}),{},{page:{page_type_1:I.g$.ACCOUNT,page_type_2:I.Cm.CONFIGURATOR_LIST},user:s,ecommerce:{currency:a?.currency||I.vN.NONE,item_list_name:I.Cm.CONFIGURATOR_LIST,items:e.map((e,t)=>{let r=e?.price?.productPrices?.[0];return j(j(j(j({},o&&{connector_type:o}),{},{item_id:e.productId,item_name:e.productTitle,item_brand:e?.brandName,item_buy_box:(0,x.Dl)(e.productId,e?.stockIndicator??"",e?.stockInfo,r,w.b)||I.vN.NONE},(0,x.N7)(e,!0)),{},{item_list_name:I.Cm.CONFIGURATOR_LIST,price:(0,x.Ru)(r?.netPrice?.amount,r?.netPrice?.scale)??I.vN.NONE,quantity:e?.quantity,green:!!e?.greenOffer?.greenRating},(n||i)&&{stock:(0,x.Yt)(e?.stockInfo)}),{},{item_variant:!1,supplier:e?.sellerNames?.[0]||I.vN.NONE,marketplace:r?.bestPrice?.context?.type==="MARKETPLACE",cuts:!!e?.isCuttable,recommended_product:!1,discount:(0,x.cT)(r)??I.vN.NONE,index:t+1})})}})})};sendAddAllToCartConfigurator=(e,t,r,n)=>{let{store:a}=this._authContext||{},i=t&&r?(0,x.Fy)(t,r):void 0;this._sendEvent(I.cP.ADD_TO_CART,I.ms.CONFIGURATOR,j(j({branch_name:this._withBranchCommonData.branch,branch_id:a?.facilityId},i&&{event_related_type:i}),{},{page:{page_type_1:I.g$.ACCOUNT,page_type_2:I.Cm.CONFIGURATOR_LIST},ecommerce:j(j({},n&&{cart_id:n}),{},{currency:this._authContext?.user?.currency||I.vN.NONE,items:e.map(e=>j(j(j({cart_source:I.oe.CONFIGURATOR},i&&{connector_type:i}),{},{item_id:e.productId,item_name:e.productTitle,item_brand:e?.brandName,item_buy_box:I.vN.NONE},(0,x.N7)(e,!0)),{},{price:e?.price?.productPrices?.[0]?.netPrice?.amount,quantity:e?.quantity,currency:e?.price?.productPrices?.[0]?.netPrice?.currency}))})}))};sendSignUpErrorGtmTag=({steps:e,status:t,customer_status:r})=>this._sendEvent(I.cP.SIGNUP_ERROR,I.ms.ACCOUNT,{steps:e,status:t,customer_status:r});sendConsentOnboardingPageViewGtmTag=({pageType2:e})=>{let{user:t,store:r}=this._authContext||{};this._sendEvent(I.cP.PAGEVIEW,I.ms.AX_ONBOARDING,{page:{page_type_1:I.g$.ACCOUNT,page_type_2:e},user:{account_id:t?.accountId||I.vN.NONE,branch_name:r?.name||I.vN.NONE,id:t?.userId||I.vN.NONE,login:I.vN.NO,opco_id:this._basicCommonData.opco_id,language:this._basicCommonData.language}})};sendConsentOnboardingFormSubmitGtmTag=()=>{let{user:e,store:t}=this._authContext||{};this._sendEvent(I.cP.FORM_SUBMIT,I.ms.AX_ONBOARDING,{page:{page_type_1:I.g$.ACCOUNT,page_type_2:I.Cm.AX_ONBOARDING_FORM},form_id:"ax_registration_form",form_name:"AX Onboarding Registration",user:{account_id:e?.accountId||I.vN.NONE,branch_name:t?.name||I.vN.NONE,id:e?.userId||I.vN.NONE,login:I.vN.NO,opco_id:this._basicCommonData.opco_id,language:this._basicCommonData.language}})};sendConsentOnboardingErrorGtmTag=({pageType2:e})=>{let{user:t,store:r}=this._authContext||{};this._sendEvent(I.cP.ERROR_SIGN_UP,I.ms.AX_ONBOARDING,{page:{page_type_1:I.g$.ACCOUNT,page_type_2:e},status:"error",steps:e,user:{account_id:t?.accountId||I.vN.NONE,branch_name:r?.name||I.vN.NONE,id:t?.userId||I.vN.NONE,login:I.vN.NO,opco_id:this._basicCommonData.opco_id,language:this._basicCommonData.language}})}}let D=(0,o.createContext)(new k({opco_id:"default",authContext:u.it}));var R=r(8357),L=r(62719),M=r(55537);let F=function(e){return e.SELECTED="selected",e.UNSELECTED="unselected",e.LOADING="loading",e.UNSELECTED_WITH_SUB_ACCOUNTS="unselectedWithSubAccounts",e.SELECTED_WITH_SUBACCOUNTS="selectedWithSubAccounts",e}({});var $=r(72589);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
3130t%2?B(Object(r),!0).forEach(function(t){(0,y.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let V=["configurator","marketing-events","lists","projects","users"],q=["favorite-lists","quotes","orders","subscribers","delivery-notes"],G=["blanket-order","cart","quote"];[...V,...q,...G];let z={"blanket-order":`${M.b.account.base}${M.b.account.blanketOrders}`,cart:M.b.checkout.base,quote:`${M.b.account.base}${M.b.account.quotes}`},H=e=>{let[t,r=""]=e.split("?"),n=r.split("&").filter(e=>!!e&&"accountIds"!==decodeURIComponent((e.split("=")[0]??"").replace(/\+/g," ")));return n.length>0?`${t}?${n.join("&")}`:t};var W=r(82726),Q=r(12028),Y=r(88088),K=r(92272),J=r(86263),Z=r(99479),X=r.n(Z);let ee=({disabled:e,totalSubAccounts:t,accountId:r,accountName:n,onSelected:a,accountButtonType:o,updateParentId:s})=>{let[l]=(0,i.B)(),u=l("accountSwitch.selected"),d=l("accountSwitch.select"),p=l("switchAccount.accountCard.subAccounts"),h=l("common.loading.label"),f=e?(0,c.jsxs)(W.$,{variant:"secondary",className:X().subAccountsButton,size:"s",disabled:!0,"aria-pressed":"false",children:[d," ",(0,c.jsx)("span",{className:"sr-only",children:n})]}):(0,c.jsxs)(J.w,{href:M.b.content.base,variant:"secondary",app:M.b.content.app,onClick:a(r),className:X().subAccountsButton,size:"s","aria-pressed":"false",children:[d," ",(0,c.jsx)("span",{className:"sr-only",children:n})]}),m=(0,c.jsxs)(W.$,{variant:"primary",icon:"check",className:X().subAccountsButton,size:"s",disabled:e,"aria-disabled":"true",children:[u," ",(0,c.jsx)("span",{className:"sr-only",children:n})]}),g=(0,c.jsx)(W.$,{icon:"chevron-right",iconPosition:"right",variant:"standalone-bold",onClick:()=>s(r),className:X().subAccountsButton,"data-testid":`children-accounts-link-${r}`,disabled:e,children:`${p} (${t})`});return o===F.SELECTED?m:o===F.UNSELECTED?f:o===F.UNSELECTED_WITH_SUB_ACCOUNTS?(0,c.jsxs)("div",{className:X().actionsContainer,children:[f,g]}):o===F.SELECTED_WITH_SUBACCOUNTS?(0,c.jsxs)("div",{className:X().actionsContainer,children:[m,g]}):o===F.LOADING?(0,c.jsxs)(W.$,{loading:!0,className:X().subAccountsButton,"aria-busy":"true",size:"s",children:[h," ",(0,c.jsx)("span",{className:"sr-only",children:n})]}):null};function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach(function(t){(0,y.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let en=({className:e,accountId:t,accountName:r,deliveryAddress:n,displayChip:a,onSelected:o,isParent:s,totalSubAccounts:l,disabled:d})=>{let[p]=(0,i.B)(),{account:f}=(0,u.Z2)(),m=f?.id,{selectingAccountId:g,updateParentId:y}=h(),{addressLine1:v,addressLine2:b,addressLine3:C,city:E,department:w,region:P,postalCode:I,country:x}=n||{},S=(({accountId:e,totalSubAccounts:t,selectingAccountId:r,currentWorkingAccountId:n})=>r===e?F.LOADING:e===n&&t>0?F.SELECTED_WITH_SUBACCOUNTS:t>0?F.UNSELECTED_WITH_SUB_ACCOUNTS:e===n?F.SELECTED:F.UNSELECTED)({accountId:t,totalSubAccounts:l,selectingAccountId:g,currentWorkingAccountId:m});return(0,c.jsxs)("div",{className:(0,O.A)(X().container,e,{[X().selected]:[F.SELECTED,F.SELECTED_WITH_SUBACCOUNTS].includes(S)}),"data-testid":`accountCard-${t}`,children:[(0,c.jsxs)("div",{className:X().top,children:[s?(0,c.jsx)(Q.I,{"data-testid":"buildings",icon:"buildings",size:"l",className:X().iconBuildings}):(0,c.jsx)(Q.I,{"data-testid":"equipement",icon:"equipement",size:"l"}),(0,c.jsxs)("div",{className:X().topText,children:[(0,c.jsxs)("div",{"data-testid":"accountCard.topTextInformation",className:X().topTextInformation,children:[(0,c.jsx)(Y.E,{"data-testid":"accountCard.accountName",size:"body-2",weight:"bold",children:r}),(0,c.jsx)(Y.E,{"data-testid":"accountCard.accountId",size:"body-2",color:"subtle",children:t}),a&&(0,c.jsx)(_.v,{size:"xs",variant:"primary",children:p("switchAccount.accountCard.chip")})]}),n&&(0,c.jsxs)("div",{className:X().topTextAddress,children:[(0,c.jsxs)(Y.E,{size:"body-1",color:"subtlest",weight:"bold",children:[p("switchAccount.address"),":"]}),(0,c.jsx)(K.V,er(er({},{addressLine1:v,addressLine2:b,addressLine3:C,city:E,department:w,stateOrRegion:P,postalCode:I,country:x}),{},{size:"body-1",color:"subtlest",className:X().address}))]})]})]}),(0,c.jsx)("div",{children:(0,c.jsx)(ee,{totalSubAccounts:l,accountId:t,accountName:r,onSelected:o,disabled:d,accountButtonType:S,updateParentId:y})})]})};var ea=r(17089),ei=r.n(ea);let eo=({accounts:e,onSelected:t,onLoadMore:r,loading:n=!1,hasMoreAccounts:a=!1,showMoreLabel:i=""})=>{let{selectingAccountId:o}=h();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("ul",{className:ei().container,children:e.map(e=>(0,c.jsx)("li",{children:(0,c.jsx)(en,{displayChip:!1,totalSubAccounts:e.totalSubAccounts,isParent:e.totalSubAccounts>0,accountId:e.accountId,accountName:e.accountName,deliveryAddress:e.deliveryAddress,onSelected:t,disabled:!!o})},e.accountId))}),a&&r&&(0,c.jsx)("div",{className:ei().loadMoreContainer,children:(0,c.jsx)(W.$,{variant:"tertiary",icon:"plus",onClick:r,loading:n,"data-testid":"load-more-accounts",children:i})})]})};var es=r(2548),ec=r(99829),el=r.n(ec);let eu=()=>{let[e]=(0,i.B)(),{updateParentId:t,paginatedAccounts:r}=h(),{parentAccounts:n,totalTopLevelAccounts:a}=r,{0:s,1:l}=(0,o.useMemo)(()=>[n.slice(0,-1),n[n.length-1]],[n]),u=(0,o.useMemo)(()=>[...a>1?[{label:e("switchAccount.yourAccounts"),href:void 0,onClick:()=>t(null),"data-testid":"breadcrumb-item-your-accounts"}]:[],...s.map(e=>({label:e,href:void 0,onClick:()=>{t(e??null)}}))],[a,e,t,s]),d={label:e("common.back"),onClick:()=>t(s[s.length-1]??null)};return(0,c.jsx)(es.Q,{items:u,currentItem:{label:l??"",href:void 0},goBackLink:d,label:e("common.breadcrumb"),toggleLabel:e("common.breadcrumb.toggle"),className:el().breadcrumb})};var ed=r(29765),ep=r.n(ed);let eh=({account:e,totalAccounts:t,onSelected:r})=>{let[n]=(0,i.B)(),{selectingAccountId:o}=h();return e?(0,c.jsxs)("div",{className:ep().container,children:[(0,c.jsx)(a.D,{as:"h3",size:"body-4",className:ep().title,children:n("switchAccount.projectsOfAccount",{accountName:e.accountName})}),(0,c.jsx)(en,{className:ep().card,accountId:e.accountId,accountName:e.accountName,deliveryAddress:e.deliveryAddress,displayChip:!0,isParent:!0,totalSubAccounts:0,onSelected:r,disabled:!!o}),(0,c.jsxs)(a.D,{as:"h3",size:"body-3",color:"subtle",className:ep().subtitle,children:[n("switchAccount.subAccounts"),(0,c.jsx)(_.v,{size:"xs",variant:"secondary","data-testid":"total-accounts-chip",children:t})]})]}):(0,c.jsx)("div",{className:ep().container,children:(0,c.jsx)(a.D,{as:"h3",size:"body-4",className:ep().title,children:n("switchAccount.yourAccounts")})})};var ef=r(3999),em=r.n(ef);function eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let ey=()=>{let[e]=(0,i.B)(),{sendToast:t}=(0,v.d)(),{sendSwitchAccountGtmTag:r}=(0,o.useContext)(D),{parentId:n,setSelectingAccountId:s,page:l,setPage:d,paginatedAccounts:p,setPaginatedAccounts:f,search:m}=h(),g=(0,o.useCallback)(e=>(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
3130t%2?eg(Object(r),!0).forEach(function(t){(0,y.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e})({page:e,size:25},m?{searchQuery:m}:{parentId:n}),[n,m]),{loading:C,data:w,refetch:P,error:I,fetchMore:x}=(0,$.AI)({variables:{filters:g(l)}}),{page:S=0,size:T=25,accounts:N,totalAccounts:A,parentAccounts:j,totalTopLevelAccounts:k}=w?.paginatedAccountSearch??{};(0,o.useEffect)(()=>{(N||void 0!==A||j||void 0!==k)&&f(e=>({accounts:N?[...e.accounts,...N]:e.accounts,totalAccounts:A??e.totalAccounts,parentAccounts:j??e.parentAccounts,totalTopLevelAccounts:k??e.totalTopLevelAccounts}))},[N,A,j,k,f]);let F=(0,o.useCallback)(()=>{d(e=>{let t=e+1;return x({variables:{filters:g(t)}}),t})},[x,g,d]),{topAccount:B,accountsList:W}=(0,o.useMemo)(()=>(e=>{if(!e||!e.length)return{topAccount:void 0,accountsList:[]};let t=e[0],r=e.some(e=>e.accountId===t.parentId),n=e.some(e=>e.parentId===t.accountId);if(!r&&n)return{topAccount:U(U({},t),{},{totalSubAccounts:0}),accountsList:e.filter(e=>e.accountId!==t.accountId)};if(r){let r=U(U({},e.find(e=>e.accountId===t.parentId)),{},{totalSubAccounts:0});return{topAccount:r,accountsList:e.filter(e=>e.accountId!==r.accountId)}}return{topAccount:void 0,accountsList:e}})(p.accounts),[p.accounts]),{getRedirectionURL:Q}=(()=>{let{user:e}=(0,u.Z2)(),{query:t,asPath:r,pathname:n,basePath:a}=(0,E.useRouter)();return{getRedirectionURL:(0,o.useCallback)(()=>{if(t?.userId===e?.userId)return`${a}${H(r)}`;let i=n.split("/")[1];return V.some(e=>e===i)||q.some(e=>e===i)?`${a}/${i}`:G.some(e=>e===i)?z[i]:`${a}${H(r)}`},[r,a,n,t?.userId,e?.userId])}})(),[Y]=(0,$.vX)({onCompleted:()=>window.location.href=Q()}),K=(0,o.useCallback)(n=>a=>{a.preventDefault(),Y({variables:{accountId:n},onError:r=>{let{status:a}=(0,L.I2)(r);a===L.Dh?window.location.href=`${M.b.account.base}${M.b.account.spaPreference}?accountId=${encodeURIComponent(n)}&shouldSetContext=true`:(s(void 0),t({message:e("accountSwitch.error"),status:"error",closeLabel:e("toaster.accessibility.close")}))}}),r(),d(0),s(n)},[r,t,s,Y,e,d]),J=(0,o.useMemo)(()=>!!C&&l>0||T*(S+1)<A,[l,A,T,S,C]),{parentAccounts:Z,totalAccounts:X}=p,ee=!!(m&&m.length>0),et=Z?.length>0&&(Z?.length!==1||1!==p.totalTopLevelAccounts),er=(0,o.useMemo)(()=>ee&&B?[B,...W]:W,[W,ee,B]),en=(0,c.jsx)(eo,{accounts:er,onSelected:K,onLoadMore:F,loading:C,hasMoreAccounts:J,showMoreLabel:e("switchAccount.showMore")});return C&&0===l?(0,c.jsx)(b.O,{size:"l",text:e("switchAccount.loading"),"data-testid":"switch-account-modal",className:(0,O.A)(em().loadingArea)}):I?(0,c.jsx)(R.c,{heading:e("switchAccount.requestFailed.title"),description:e("switchAccount.requestFailed.description"),iconProps:{status:"error",variant:"strong",size:"xl"},iconClassName:em().errorIcon,size:R.J.LARGE,primaryCta:[{label:e("common.tryAgain"),action:P}]}):(0,c.jsx)("div",{className:em().modalBodyContainer,children:ee?(0,c.jsxs)("div",{className:em().searchResultsContainer,children:[(0,c.jsxs)("div",{className:em().resultsHeader,children:[(0,c.jsx)(a.D,{as:"h3",size:"body-4","data-testid":"search-results-title",children:e("switchAccount.search.results")}),X>0&&(0,c.jsx)(_.v,{variant:"secondary",size:"s","data-testid":"search-results-count",children:X})]}),0!==X||C?en:(0,c.jsx)("div",{className:em().messageBoardCenter,children:(0,c.jsx)(R.c,{heading:e("switchAccount.search.noResults.title"),description:e("switchAccount.search.noResults.description"),image:"/account/images/search.svg"})})]}):(0,c.jsxs)(c.Fragment,{children:[et&&(0,c.jsx)(eu,{}),(0,c.jsx)(eh,{account:B,totalAccounts:X-1,onSelected:K}),en]})})};var ev=r(24901),eb=r.n(ev);let e_=()=>(0,c.jsxs)("div",{className:eb().modalContent,children:[(0,c.jsx)(g,{}),(0,c.jsx)("div",{className:eb().scrollableContent,children:(0,c.jsx)(ey,{})})]}),eO=()=>{let[e]=(0,i.B)(),{openModal:t}=(0,n.h)();return{handleOpenSwitchAccountModal:()=>{t({children:(0,c.jsx)(p,{children:(0,c.jsx)(e_,{})}),closeLabel:e("common.close"),heading:(0,c.jsx)(a.D,{as:"h2",size:"body-5",children:e("switchAccount.title")})})}}}},96007:(e,t,r)=>{"use strict";r.d(t,{mz:()=>f});var n=r(12072),a=r(41010),i=r(53556);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
3130t%2?o(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let c={},l=(0,a.J1)`
3131    fragment BrandAugmented on SoneparAugmentedBrand {
3132  id
3133  name
3134  type
3135  title
3136}
3137    `,u=(0,a.J1)`
3138    fragment BrandCategoryAugmented on SoneparAugmentedBrandCategory {
3139  id
3140  name
3141  type
3142  title
3143}
3144    `,d=(0,a.J1)`
3145    fragment BrandSeriesAugmented on SoneparAugmentedBrandSeries {
3146  id
3147  name
3148  type
3149  title
3150  categoryRef {
3151    id
3152  }
3153}
3154    `,p=(0,a.J1)`
3155    fragment BrandSeriesCategoryAugmented on SoneparAugmentedBrandSeriesCategory {
3156  id
3157  name
3158  type
3159  title
3160}
3161    `,h=(0,a.J1)`
3162    query querySearchAugmentedBrands($keyword: String!, $siteId: String!) {
3163  content {
3164    soneparFacetedSearch(
3165      searchFor: "Keywords"
3166      sortFields: [TITLE_ASC]
3167      query: $keyword
3168      siteId: $siteId
3169      customFilterQueries: [{DOCUMENTTYPE_OR: ["SoneparAugmentedBrand", "SoneparAugmentedBrandCategory", "SoneparAugmentedBrandSeries", "SoneparAugmentedBrandSeriesCategory"]}]
3170    ) {
3171      result {
3172        ...BrandAugmented
3173        ...BrandSeriesAugmented
3174        ...BrandCategoryAugmented
3175        ...BrandSeriesCategoryAugmented
3176      }
3177    }
3178  }
3179}
3180    ${l}
3181${d}
3182${u}
3183${p}`;function f(e){let t=s(s({},c),e);return i._(h,t)}},96098:(e,t,r)=>{"use strict";r.d(t,{Jb:()=>i,kj:()=>a,x_:()=>n});let n=e=>e?.extensions?.response?.body,a=e=>n(e)?.code,i=(e,t)=>e.some(e=>a(e)===t)},96299:(e,t,r)=>{e.exports=r(1282)(r(16299),"WeakMap")},96734:e=>{e.exports={searchResultContainer:"search-box-container_searchResultContainer__Udpgo",leftContainer:"search-box-container_leftContainer__kLacq",title:"search-box-container_title__v6CBF",fontWeightNormal:"search-box-container_fontWeightNormal__BxaFK",link:"search-box-container_link__1x2tu",container:"search-box-container_container__ZQESy"}},96827:e=>{e.exports={container:"new-message-board_container__f7Bbu",image:"new-message-board_image__bFiVc",icon:"new-message-board_icon__O3wN7",large:"new-message-board_large__2hU2J",heading:"new-message-board_heading__EB_7N",small:"new-message-board_small__Y_AHr",title:"new-message-board_title__gOHpW",description:"new-message-board_description__VeJvs",cta:"new-message-board_cta__0JAne"}},96970:(e,t,r)=>{"use strict";r.d(t,{l:()=>u});var n=r(53779),a=r(85587),i=r(12028),o=r(52856),s=r(1068),c=r(60004),l=(0,a.h)(),u=(0,c.forwardRef)(({className:e,id:t,helperText:r,onChange:a,label:c,options:u,visuallyHiddenLabel:d,...p},h)=>{let f=(0,o.k)("watts-select"),m=t||f,g=`${m}
3183-helper-text`;return(0,l.jsxs)("div",{className:(0,n.$)("watts-select",e,{"watts-select--disabled":p.disabled}),children:[(0,l.jsx)("label",{className:(0,n.$)("watts-select__label",{"sr-only":d}),htmlFor:m,children:c}),(0,l.jsxs)("div",{className:"watts-select__container",children:[(0,l.jsx)("select",{id:m,"aria-describedby":r&&g,"aria-errormessage":r?.status==="error"?g:void 0,"aria-invalid":r?.status==="error",onChange:a,ref:h,...p,children:u.map((e,t)=>(0,l.jsx)("option",{...e,children:e.label},t))}),(0,l.jsx)(i.I,{icon:"chevron-small-down"})]}),!!r&&(0,l.jsx)(s.E,{id:g,disabled:!!p.disabled,status:r.status??"info",text:r.text})]})});u.displayName="Select"},97195:e=>{e.exports={productCtaContainer:"product-cta_productCtaContainer__lpfoz"}},97215:(e,t,r)=>{"use strict";r.d(t,{az:()=>h,iU:()=>d,j2:()=>m});var n=r(12072),a=r(41010),i=r(86987);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let c={},l=(0,a.J1)`
3184    fragment Store on Store {
3185  facilityType
3186  facilityId
3187  name
3188  description
3189  hasChildLocker
3190  activationDate
3191  desactivationDate
3192  localLocker {
3193    name
3194    openingHours {
3195      dayOfWeek
3196      isOpen
3197      periods {
3198        openTime
3199        closeTime
3200      }
3201    }
3202    exceptionalOpeningHours {
3203      date
3204      isOpen
3205      periods {
3206        openTime
3207        closeTime
3208      }
3209    }
3210  }
3211  address {
3212    addressLine1
3213    addressLine2
3214    addressLine3
3215    postalCode
3216    city
3217    country
3218    timezone
3219  }
3220  contactInfo {
3221    phoneNumber
3222    email
3223    faxNumber
3224  }
3225  location {
3226    latitude
3227    longitude
3228  }
3229  openingHours {
3230    dayOfWeek
3231    isOpen
3232    periods {
3233      openTime
3234      closeTime
3235    }
3236  }
3237  exceptionalOpeningHours {
3238    date
3239    isOpen
3240    periods {
3241      openTime
3242      closeTime
3243    }
3244  }
3245  services {
3246    serviceCode
3247    serviceTitle
3248    serviceMessage
3249  }
3250}
3251    `,u=(0,a.J1)`
3252    query StoreListByAddress($address: String, $radius: Int, $page: Int, $size: Int) {
3253  storesByAddress(address: $address, radius: $radius, page: $page, size: $size) {
3254    totalElements
3255    radius
3256    originLocation {
3257      latitude
3258      longitude
3259    }
3260    facilities {
3261      facility {
3262        ...Store
3263      }
3264      distance {
3265        text
3266        value
3267      }
3268    }
3269  }
3270}
3271    ${l}`;function d(e){let t=s(s({},c),e);return i.IT(u,t)}let p=(0,a.J1)`
3272    query StoreWithNearBy($facilityId: String, $radius: Int, $page: Int, $size: Int) {
3273  storeWithNearBy(facilityId: $facilityId) {
3274    store {
3275      ...Store
3276    }
3277    nearbyStores(page: $page, size: $size, radius: $radius) {
3278      totalElements
3279      facilities {
3280        facility {
3281          ...Store
3282        }
3283        distance {
3284          text
3285          value
3286        }
3287      }
3288    }
3289  }
3290}
3291    ${l}`;function h(e){let t=s(s({},c),e);return i.IT(p,t)}let f=(0,a.J1)`
3292    query StoreById($facilityId: String) {
3293  storeById(facilityId: $facilityId) {
3294    ...Store
3295  }
3296}
3297    ${l}`;function m(e){let t=s(s({},c),e);return i.IT(f,t)}},97268:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}},97392:e=>{e.exports={projectDrawer:"project-settings-drawer-container_projectDrawer__AnnKM",drawerCreditLine:"project-settings-drawer-container_drawerCreditLine__qqcWN",mobileMenuListWrapper:"project-settings-drawer-container_mobileMenuListWrapper__BxD2M"}},97443:e=>{e.exports={footerSection:"footer-container_footerSection__4rfMI"}},97546:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(60004);let a=({refs:e,onClickAway:t,shouldListenEscapeKey:r=!1,shouldTriggerClickAwayEvent:a=!0})=>{let i=(0,n.useCallback)(n=>{"mousedown"===n.type?e.every(e=>{if(!e?.current?.getBoundingClientRect)return!1;let{left:t,height:r,top:a,width:i}=e.current.getBoundingClientRect();return n.clientX<t||n.clientX>t+i||n.clientY<a||n.clientY>a+r})&&(window.removeEventListener("mousedown",i),window.removeEventListener("keydown",i),t(n)):(r&&"keydown"===n.type&&"Escape"===n.key||"Tab"===n.key)&&(window.removeEventListener("mousedown",i),window.removeEventListener("keydown",i),t())},[t,r,e]);(0,n.useEffect)(()=>
3297{if(a)return setTimeout(()=>window.addEventListener("mousedown",i),0),r&&window.addEventListener("keydown",i),()=>{window.removeEventListener("mousedown",i),window.removeEventListener("keydown",i)}},[i,a,r])}},97970:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var n=r(60004),a=()=>{let e=(0,n.useRef)(null);return{handleClosePopover:()=>{e.current&&e.current.closePopover()},popoverRef:e}}},98040:e=>{e.exports={container:"anchors-content_container__TPtKS",hubPageContainer:"anchors-content_hubPageContainer__ESkZj",visibleAnchor:"anchors-content_visibleAnchor__OURIg",hiddenAnchor:"anchors-content_hiddenAnchor__NP9uO",content:"anchors-content_content__orvz6",anchorMenuItem:"anchors-content_anchorMenuItem__V7HVr",active:"anchors-content_active__tOE3w"}},98591:e=>{e.exports={alignCenter:"rich-text-element_alignCenter__NzI2r",alignJustify:"rich-text-element_alignJustify__rqMvY",alignLeft:"rich-text-element_alignLeft__muc0g",alignRight:"rich-text-element_alignRight__uCsLP"}},98641:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(16178);function a(e){let t=(0,n.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}},99149:(e,t,r)=>{var n=r(73445);e.exports=function(e){return n(this,e).has(e)}},99273:(e,t,r)=>{var n=r(81444),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(t,e)?t[e]:void 0}},99291:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>y,GT:()=>v,c_:()=>g});
3297var n=r(12072),a=r(60004),i=r(79426),o=r.n(i),s=r(91933),c=r(44705),l=r(40857),u=r(31437),d=r(68915),p=r(60072);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=e=>f(f({},e),{},{encodedProductId:(0,s.jK)(e.productId)}),g=(0,a.createContext)(null),y=({children:e,productsSelectedToCompare:t})=>{let{isLoggedIn:r,isGuestUser:n}=(0,d.Z2)();r||n||(0,c.o7)(l.Ff);let i=t&&(r||n)&&o().decompressFromEncodedURIComponent(t),h=i?JSON.parse(i):[],{0:f,1:y}=(0,a.useState)(h),v=f?.length===u.UK,b=(0,a.useCallback)(e=>{(0,c.TV)(l.Ff,o().compressToEncodedURIComponent(JSON.stringify(e)),{sameSite:"lax",path:"/"}),y(e)},[y]),_=e=>E(e?.productId)?C(e?.productId):v?void 0:O(e),O=e=>b([...f,e].map(m)),C=e=>b(f.filter(t=>t.encodedProductId!==(0,s.jK)(e))),E=e=>f.some(t=>t.encodedProductId===(0,s.jK)(e)),w=()=>b([]),P=(0,a.useMemo)(()=>({productsToCompare:f,addProductToCompare:O,removeProductFromCompare:C,isProductInCompare:E,clearAllProducts:w,handleCompareClick:_,isComparatorFull:v}),[f]);return(0,p.jsx)(g.Provider,{value:P,children:e})},v=()=>{let e=(0,a.useContext)(g);if(!e)throw Error("You need to wrap your component with <ProductCompareProvider>");return e}},99479:e=>{e.exports={container:"account-card_container__dGN9y",top:"account-card_top__qFoFp",iconBuildings:"account-card_iconBuildings__jYQPZ",topText:"account-card_topText__QoG5E",topTextInformation:"account-card_topTextInformation__SDvNG",topTextAddress:"account-card_topTextAddress__OzkcU",address:"account-card_address__E3QAh",subAccountsButton:"account-card_subAccountsButton__TzUpx",actionsContainer:"account-card_actionsContainer__rgHeT",selected:"account-card_selected__5Qzrq"}},99603:e=>{e.exports={container:"quantity-counter-cta_container__uxNad",tableView:"quantity-counter-cta_tableView__jA_dU",tableViewCounter:"quantity-counter-cta_tableViewCounter__Yzy9k",quantityCounter:"quantity-counter-cta_quantityCounter__tYhVY",addToCartActive:"quantity-counter-cta_addToCartActive__sSLQ6",warningMessage:"quantity-counter-cta_warningMessage__TgRlL",popoverWrapper:"quantity-counter-cta_popoverWrapper__Du6kH",popoverTable:"quantity-counter-cta_popoverTable__JeADp",popoverGrid:"quantity-counter-cta_popoverGrid__OFZ77",showButton:"quantity-counter-cta_showButton__OctGX",popover:"quantity-counter-cta_popover__aSneE"}},99638:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n=(0,r(60004).createContext)(null)},99762:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});var n="3.12.5"},99791:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(31811),a=r(7976),i=r(52322);let o=()=>{let{cart:e}=(0,n.B_)(),{feature_flags_enable_edi_discount:t}=(0,a.rD)();return{defaultLogisticMethod:(0,i.PK)(t)?e?.logisticDetails?.logisticMethod:void 0}}},99829:e=>{e.exports={breadcrumb:"accounts-modal-breadcrumb_breadcrumb__000Ja"}},99914:e=>{e.exports={deliveryPromisesContainer:"dynamic-delivery-promises_deliveryPromisesContainer__9azpP",rowText:"dynamic-delivery-promises_rowText__uCMIH",label:"dynamic-delivery-promises_label__vtpWz",icon:"dynamic-delivery-promises_icon___R9gG","in-progress":"dynamic-delivery-promises_in-progress__VjOCk","check-solid":"dynamic-delivery-promises_check-solid__CoeVG",infoIcon:"dynamic-delivery-promises_infoIcon__vbtSm"}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(66768),t(4156))),_N_E=e.O()}]);

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.