PageSourceSearch

https://sg-toolbox.shop/static/js/webstore-eecd4280.b02a7424.js

js sg-toolbox.shop collected 2026-10-09 03:06:47 UTC 85,155 bytes, 2 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7222],{38587:(e,t,r)=>{e.exports=r(12922).wrapCssModule(e.id,r(87480))},84313:(e,t,r)=>{e.exports=r(12922).wrapCssModule(e.id,r(21738))},35917:(e,t,r)=>{e.exports=r(12922).wrapCssModule(e.id,r(96958))},16911:(e,t,r)=>{"use strict";function n(){return Math.random().toString(36).substring(2,11)}r.d(t,{r:()=>n})},72740:(e,t,r)=>{"use strict";r.d(t,{Ko:()=>s,q:()=>h,Es:()=>p,v5:()=>u,Wc:()=>l,T7:()=>g,yA:()=>c});var n=r(22310),o=r.n(n),i=r(25498);const a=[];function s(e,t,r){void 0===r&&(r=o());const n=(0,i.useRef)(),s=(0,i.useRef)(a);return s.current!==a&&r(t,s.current)?n.current:(s.current=t,n.current=e())}const u=i.useEffect;function c(e,t){const r=(0,i.useRef)();(0,i.useEffect)((()=>{if(r.current)return e();r.current=!0}),t)}function l(e,t){void 0===t&&(t=[]);const r=(0,i.useRef)(!1);return(0,i.useCallback)((async function(){if(r.current)return;r.current=!0;const t=await e(...arguments);return r.current=!1,t}),t)}var d=r(60115);const p='undefined'!=typeof window&&!!window.document?i.useLayoutEffect:d.l;var f=r(85676);const m=[];function g(e,t,r,n){void 0===r&&(r=!0),void 0===n&&(n=f.b);const o=(0,i.useRef)(m),a=o.current===m,s=(r||!a)&&!n(o.current,t);s&&e(o.current),(a||s)&&(o.current=t)}function h(e,t){const r=(0,i.useRef)(e);g((()=>{r.current=e}),t,!1),(0,i.useEffect)(r.current,[r.current])}},24169:(e,t,r)=>{"use strict";function n(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,'\\$&')}r.d(t,{T:()=>n})},49295:(e,t,r)=>{"use strict";r.d(t,{e:()=>d});var n=r(12034),o=r(94708),i=r(97328),a=r(21010);const s=e=>{var t;if('tag'!==e.type||'img'!==e.name||null==(t=e.attribs)||!t.src)return;const{alt:r="",style:n,class:s,usemap:u,noprocess:c,...l}=e.attribs;return(0,a.jsx)(o.Sz,{alt:r,wrapperClassName:s,style:n?(0,i.qI)(n):void 0,useMap:u,preventProcessing:!!c,...l})};var u=r(10170);const c=(e,t)=>{var r;if('tag'!==e.type||'a'!==e.name||null==(r=e.attribs)||!r.hasOwnProperty('data-route'))return;const{'data-route':n,href:o,style:s,...c}=e.attribs;let l;if(n){const{routeName:e,routeValues:t,broken:r}=JSON.parse(n);r||(l={routeName:e,params:t})}return(0,a.jsx)(u.N_,{url:o,to:l,style:s?(0,i.qI)(s):void 0,...c,children:t(e.children)})},l=(0,a.jsx)(a.Fragment,{}),d=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(!e)return'';r=[...r,c,s];let i=!0;const a={replace:e=>{i&&'text'!==e.type&&(i=!1);for(const t of r){const r=t(e,u);if(r)return i&&(i='object'!=typeof r),r;if(null===r)return l}}},u=e=>(0,n.zd)(e,a),d=(0,n.Ay)(e,a);return i&&Array.isArray(d)&&d.length>1?d.join(''):d}},1884:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(25498).createContext)({})},19590:(e,t,r)=>{"use strict";r.d(t,{G:()=>n.Gu,m:()=>o});var n=r(38646);function o(){const{xs:e,sm:t,md:r,lg:o,xl:i}=(0,n.m$)();return{xs:e,sm:t,md:r,lg:o,xl:i}}},38646:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>d,Gu:()=>u,HA:()=>h,IY:()=>g,Ju:()=>m,My:()=>c,Y$:()=>f,_6:()=>l,hO:()=>p,m$:()=>s,vm:()=>y});var n=r(70358),o=r(20358),i=r(25498),a=r(1884);const s=()=>(0,i.useContext)(a.A),u=()=>(0,n.useSelector)(v,n.shallowEqual),c=()=>{const{xs:e,sm:t,md:r,lg:n,xl:o}=(0,i.useContext)(a.A);return{xs:e,sm:t,md:r,lg:n,xl:o}};function l(){const{xs:e,sm:t}=(0,i.useContext)(a.A);return e||t}const d='undefined'!=typeof window&&!!window.document,p=()=>s().isFirefox,f=()=>d&&!!window.CSS&&window.CSS.supports('-webkit-hyphens','none'),m=()=>s().isTouchDevice,g=()=>{const{isTouchDevice:e}=s();return f()&&e},h=()=>g()&&navigator.userAgent.includes('CriOS/'),y=()=>navigator.userAgent.includes('Mac');function v(e){const t=e.theme.values||{};return{sm:+(t[o.breakpoints_Small]||o.sm),md:+(t[o.breakpoints_Medium]||o.md),lg:+(t[o.breakpoints_Large]||o.lg),xl:+(t[o.breakpoints_ExtraLarge]||o.xl)}}},94708:(e,t,r)=>{"use strict";r.d(t,{oD:()=>z,ut:()=>F,tr:()=>se,$U:()=>oe,Sz:()=>Q,Bd:()=>v.Bd,Gu:()=>v.Gu,hO:()=>v.hO,HA:()=>v.HA,vm:()=>v.vm,IY:()=>v.IY,_6:()=>v._6,Y$:()=>v.Y$,Ju:()=>v.Ju,m$:()=>v.m$,My:()=>v.My});var n=r(25498),o=r(96575),i=r(95027),a=r(18750),s=r(33544),u=r(69230),c=r(24024),l=r(71223),d=r(6776),p=r(3822),f=r(32216);const m=[640,1024],g=2048,h=/\/content\/files\//i,y=/\.svg(?:[?#].*)?/i;var v=r(38646);const w=()=>v.Bd?{x:window.scrollX,y:window.scrollY}:{x:0,y:0};function S(e){return t=>e.addEventListener('change',t)}function b(e){return t=>e.removeEventListener('change',t)}var A=r(12922),C=r(85245),O=r.n(C),E=r(60115),T=r(28103),N=r(27423),P=r(89605);class R extends P.A{constructor(e){super(e);const t=!e.scrollPosition&&e.useIntersectionObserver;this.LAZY_LOAD_OBSERVER={supportsObserver:t},t&&(this.LAZY_LOAD_OBSERVER.observer=new IntersectionObserver(this.checkIntersections,{rootMargin:e.threshold+'px'}))}componentWillUnmount(){this.LAZY_LOAD_OBSERVER&&this.LAZY_LOAD_OBSERVER.observer&&this.LAZY_LOAD_OBSERVER.observer.unobserve(this.placeholder)}}R.defaultProps={className:'',height:0,placeholder:null,threshold:100,width:0};const D=R;var I=r(61855),k=r.n(I),x=r(32280),L=r.n(x),$=r(10187),_=r(65396),M=r(21010);const B=function(e){class t extends n.Component{constructor(e){if(super(e),e.useIntersectionObserver)return;const t=this.onChangeScroll.bind(this);'debounce'===e.delayMethod?this.delayedScroll=k()(t,e.delayTime):'throttle'===e.delayMethod&&(this.delayedScroll=L()(t,e.delayTime)),this.state={scrollPosition:w()},this.baseComponentRef=(0,n.createRef)()}componentDidMount(){this.addListeners()}componentDidUpdate(){if(!v.Bd||this.props.useIntersectionObserver)return;(0,_.A)($.findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}componentWillUnmount(){this.removeListeners()}addListeners(){v.Bd&&!this.props.useIntersectionObserver&&(this.scrollElement=(0,_.A)($.findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener('scroll',this.delayedScroll,{passive:!0}),window.addEventListener('resize',this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener('scroll',this.delayedScroll,{passive:!0}))}removeListeners(){v.Bd&&!this.props.useIntersectionObserver&&(this.scrollElement.removeEventListener('scroll',this.delayedScroll),window.removeEventListener('resize',this.delayedScroll),this.scrollElement!==window&&window.removeEventListener('scroll',this.delayedScroll))}onChangeScroll(){this.props.useIntersectionObserver||this.baseComponentRef.current&&this.setState({scrollPosition:w()})}render(){const{delayMethod:t,delayTime:r,...n}=this.props,o=this.props.useIntersectionObserver?null:this.state.scrollPosition;return(0,M.jsx)(e,{...n,ref:this.baseComponentRef,scrollPosition:o})}}return t.defaultProps={delayMethod:'throttle',delayTime:300},t}((0,n.forwardRef)(((e,t)=>(0,M.jsx)(D,{...e,ref:t}))));class U extends N.LazyLoadComponent{constructor(e){super(e),this.useIntersectionObserver=v.Bd&&'IntersectionObserver'in window&&'IntersectionObserverEntry'in window,this.placeholderComponentRef=(0,n.createRef)()}onVisible(){var e;this.props.beforeLoad(),!this.props.useCustomVisibilityHandling&&null!=(e=this.placeholderComponentRef.current)&&e.placeholder&&this.setState({visible:!0})}
1render(){if(this.state.visible)return this.props.children;const{className:e,delayMethod:t,delayTime:r,height:n,placeholder:o,scrollPosition:i,style:a,threshold:s,useIntersectionObserver:u,width:c}=this.props,l=u&&this.useIntersectionObserver;return this.isScrollTracked||l?(0,M.jsx)(D,{ref:this.placeholderComponentRef,className:e,height:n,onVisible:this.onVisible,placeholder:o,scrollPosition:i,style:a,threshold:s,useIntersectionObserver:l,width:c}):(0,M.jsx)(B,{className:e,delayMethod:t,delayTime:r,height:n,onVisible:this.onVisible,placeholder:o,style:a,threshold:s,width:c})}}U.defaultProps={afterLoad:E.l,beforeLoad:E.l,useIntersectionObserver:!0,visibleByDefault:!1,useCustomVisibilityHandling:!1};const F=U;var W=r(97328);const j=e=>{let{afterLoad:t=E.l,beforeLoad:r=E.l,delayMethod:o="throttle",delayTime:i=300,effect:a="",placeholder:s,placeholderSrc:u="",scrollPosition:c,threshold:l=100,visibleByDefault:d=!1,wrapperClassName:p="",...f}=e;const{className:m,height:g,style:h,width:y}=f,[{visible:v,loaded:w},S]=(0,n.useState)({visible:d}),b=(0,n.useRef)(),A=(0,n.useRef)();let C;if(b.current||(b.current=new T.m(2)),(0,n.useEffect)((()=>()=>{b.current.complete()}),[]),(0,n.useEffect)((()=>{b.current.subscribe((e=>{S((t=>({...t,...e})))}))}),[]),(0,n.useEffect)((()=>{A.current&&S({visible:d,loaded:!1}),A.current=f.src}),[f.src]),w||v){const e=w?void 0:e=>{t(),'error'===e.type&&(e.target.dataset.brokenImage='true'),b.current.next({loaded:!0})};C=(0,M.jsx)("img",{onLoad:e,onError:e,...f})}else{const e=()=>{r(),b.current.next({visible:!0})};C=(0,M.jsx)(F,{beforeLoad:e,className:m,delayMethod:o,delayTime:i,height:g,placeholder:s,scrollPosition:c,style:h,threshold:l,visibleByDefault:d,width:y,useCustomVisibilityHandling:!0})}return!a&&!u||d?(0,M.jsx)(M.Fragment,{children:C}):(0,M.jsx)("span",{className:(0,W.XS)(p,'lazy-load-image-background',a,w&&'lazy-load-image-loaded'),style:{backgroundImage:w||!u?'none':'url( '+u+')',backgroundSize:w?'auto':'100% 100%',color:w?void 0:'transparent',display:'inline-block',height:g,width:y},children:C})},H=(0,A.withStyles)(O())((0,n.memo)(j)),V=function(e){if(!v.Bd||'function'!=typeof window.matchMedia)return i.w;const t=[],r=function(e){return e.reduce(((e,t,r,n)=>{if(0===r){const r=window.matchMedia(`screen and (max-width: ${t}px)`);return r.breakpoint=t,e.push(r),e}if(r===n.length-1){let o=window.matchMedia(`screen and (min-width: ${n[r-1]+1}px) and (max-width: ${t}px)`);return o.breakpoint=t,e.push(o),o=window.matchMedia(`screen and (min-width: ${t+1}px)`),o.breakpoint=g,e.push(o),e}const o=window.matchMedia(`screen and (min-width: ${n[r-1]+1}px) and (max-width: ${t}px)`);return o.breakpoint=t,e.push(o),e}),[])}(e);for(const e of r)t.push((0,a.h)(S(e),b(e)).pipe((0,c.Z)(e),(0,l.c)(20,s.b,{leading:!1,trailing:!0}),(0,d.p)((e=>{let{matches:t}=e;return t})),(0,p.T)((e=>'breakpoint'in e?e.breakpoint:e.target.breakpoint))));return(0,u.h)(...t).pipe((0,f.t)(1))}(m),G=m[m.length-1],q=e=>{var t;let{src:r,alt:i,title:a,placeholderClassName:s,preventProcessing:u,...c}=e;r=(0,o.k9)(r);const l=!(0,o.vh)(r)&&!y.test(r)&&!u,d=null!=(t=c.style)&&null!=(t=t.width)&&t.includes('px')?parseInt(c.style.width,10):null,p=null!==d;let f=null;l&&p&&(f=r.replace(h,`/images/${d}/`),r=f);const[m,v]=(0,n.useState)((()=>function(e,t,r,n,o){return e?{srcSet:t?`${r} ${n}w`:`${o} ${g}w`,sizes:t?`${n}px`:`${g}px`}:null}(l,p,f,d,r)));(0,n.useEffect)((()=>{if(!l)return void v(null);const e=V.subscribe((e=>{const t=+e===g;if(p&&(d<e||t&&d>G))return void v({srcSet:`${f} ${d}w`,sizes:`${d}px`});const n=t?r:r.replace(h,(e=>`/images/${e}/`)(e)),o=Math.floor(e*window.devicePixelRatio);v({srcSet:`${n} ${o}w`,sizes:`${o}px`})}));return()=>{e.unsubscribe()}}),[l,p,r]);const w=(0,M.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",className:s,alt:i,title:a,style:Y(c.style)});return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(H,{placeholder:w,effect:"opacity",...m,src:r,alt:i,title:a,...c}),(0,M.jsx)("noscript",{children:(0,M.jsx)("img",{src:r,alt:i,title:a,...K(c)})})]})},z=e=>{let{src:t,alt:r,title:n,placeholderClassName:i,placeholder:a,...s}=e;return t=(0,o.k9)(t),a||(a=(0,M.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",className:i,alt:r,title:n,style:Y(s.style)})),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(H,{alt:r,title:n,src:t,effect:"opacity",placeholder:a,...s}),(0,M.jsx)("noscript",{children:(0,M.jsx)("img",{alt:r,title:n,src:t,...K(s)})})]})},Q=(0,n.memo)(q),Z=['afterLoad','beforeLoad','delayMethod','delayTime','placeholderSrc','threshold','visibleByDefault','wrapperClassName','placeholder'];function K(e){const t={...e};for(const e of Z)delete t[e];return t}function Y(e){if(!e)return e;const{width:t,height:r,...n}=e;return n}var J=r(1884),X=r(38309),ee=r.n(X),te=r(79471),re=r(86459);const ne=(0,n.createContext)({}),oe=e=>{const t=(0,n.useContext)(ne);return(0,n.createElement)(t,e)},ie=e=>{let{children:t,breakpoints:r}=e;const{Media:o,MediaContextProvider:i,mediaStyles:a}=(0,n.useMemo)((()=>{const e={breakpoints:{xs:0,...r}},{Media:t,MediaContextProvider:n,createMediaStyle:o}=(0,te.H)(e);return{Media:t,MediaContextProvider:n,mediaStyles:o()}}),[r]);return(0,M.jsxs)(ne.Provider,{value:o,children:[(0,M.jsx)(re.mg,{children:(0,M.jsx)("style",{children:a})}),(0,M.jsx)(i,{children:t})]})},ae=function(e){const t={};let r;for(r in e)r.startsWith('_')||(t[r]=e[r]);return t}(ee()),se=(0,A.withStyles)(ee())((e=>{let{children:t}=e;const r=(0,v.Gu)(),o=(0,n.useMemo)((()=>{const{sm:e,md:t,lg:n,xl:o}=r;return{...ue(e,t,n,o),...ae}}
1),[r]),[i,a]=(0,n.useState)((()=>ce(o)));return(0,n.useEffect)((()=>{const e=function(e){const t={};let r;for(r in e)t[r]=window.matchMedia(e[r]);return t}(o),t=k()((()=>{a(ce(e))}),20);return a(ce(e)),le(e,t),()=>{le(e,t,!1)}}),[o]),(0,M.jsx)(J.A.Provider,{value:i,children:(0,M.jsx)(ie,{breakpoints:r,children:t})})}));function ue(e,t,r,n){return{xs:`screen and (max-width: ${e-1}px)`,sm:`screen and (min-width: ${e}px) and (max-width: ${t-1}px)`,md:`screen and (min-width: ${t}px) and (max-width: ${r-1}px)`,lg:`screen and (min-width: ${r}px) and (max-width: ${n-1}px)`,xl:`screen and (min-width: ${n}px)`}}function ce(e){const t={};let r;for(r in e){const n=e[r];t[r]='string'!=typeof n&&n.matches}return t}function le(e,t,r){void 0===r&&(r=!0);const n=r?'addEventListener':'removeEventListener';let o;for(o in e)e[o][n]('change',t)}},34637:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>u,VJ:()=>l,dn:()=>s,g4:()=>i,mN:()=>a,ty:()=>o});const n='EVENT/',o=`${n}LOCATION_CHANGED`,i=()=>({type:o}),a=`${n}RELOAD_LOCATION`,s=()=>({type:a}),u=`${n}NAVIGATION_REQUESTED`,c={};function l(e,t,r){let{omitScroll:n,replaceHistory:o}=void 0===r?c:r;return e&&t?{type:u,payload:{to:e,url:t,omitScroll:n,replaceHistory:o}}:e?{type:u,payload:{to:e,omitScroll:n,replaceHistory:o}}:{type:u,payload:{url:t,omitScroll:n,replaceHistory:o}}}},10170:(e,t,r)=>{"use strict";r.d(t,{EG:()=>lt,N_:()=>wt,wY:()=>h,RC:()=>m,dV:()=>k,Ow:()=>d,xW:()=>x,qh:()=>A,WK:()=>y,nG:()=>q,CH:()=>ht,_:()=>St,k6:()=>At,FP:()=>bt,cO:()=>s,o0:()=>l,K7:()=>Oe,OE:()=>E,PT:()=>c,gE:()=>u,nw:()=>Ne,Y0:()=>N,ef:()=>Ye,SE:()=>b,iB:()=>f,N7:()=>Ee,qf:()=>R,OR:()=>K,K5:()=>I,ce:()=>C,eb:()=>Z,Oi:()=>it,lZ:()=>nt,Oj:()=>et,rK:()=>tt,uq:()=>at,FX:()=>Je,wm:()=>ut,d1:()=>rt,l:()=>st,Ye:()=>ot});var n=r(94109),o=r(96575);function i(e,t,r){return void 0===r&&(r=!1),e===t||!!e&&!!t&&e.pathname===t.pathname&&e.search===t.search&&(r||e.hash===t.hash)}function a(e){const{pathname:t,search:r,hash:o}=(0,n.yJ)(e);return{pathname:t,search:r,hash:o}}function s(e){const{pathname:t,search:r,hash:n}=e;return t+r+n}function u(e){return'languageName'in e}function c(e,t){var r;return void 0===t&&(t=!1),i(e.routing.location,null==(r=e.routing.navigatingTo)?void 0:r.location,t)}function l(e){if('CLIENT'!==e)return;const{search:t,hash:r}=window.location;if(!t)return;const n=(0,o.mA)(t).backurl;return n?{url:n+r}:void 0}const d='@@router/NAVIGATION_REQUESTED',p=function(e,t,r,n){return void 0===n&&(n=!1),{type:d,payload:{location:e,statusCode:t,routeData:r,replaceHistory:n}}},f=(e,t)=>{const r=a(e);return p(r,void 0,t,!0)},m='@@router/NAVIGATING',g=(e,t)=>({type:m,payload:{location:e,routeData:t}}),h='@@router/NAVIGATED',y=(e,t,r)=>({type:h,payload:{location:e,routeData:t,page:r}}),v='@@router/INIT',w=e=>({type:v,payload:{location:e}}),S=new Set([301,401]),b=function(e,t,r){void 0===t&&(t=302);const n=a(e);return{type:d,payload:{location:n,statusCode:t,routeData:r,replaceHistory:S.has(t),redirect:!0}}},A='@@router/STATUS_CODE_RESOLVED',C=e=>({type:A,payload:{statusCode:e}}),O='@@router/GO_BACK',E=()=>({type:O}),T='@@router/NAVIGATE_TO_PREVIOUS',N=function(e,t){return void 0===e&&(e=[]),{type:T,payload:{ignoredRouteNames:e,fallbackRoute:t}}},P='@@router/REWRITE_TO',R=(e,t)=>({type:P,payload:{routeData:e,omitScroll:t}}),D='@@router/SAVE_SCROLL_POSITION',I=(e,t)=>({type:D,payload:{value:e,screenWidth:t}}),k='@@router/NAVIGATION_ABORTED',x={Home:"_HomePage",Login:"Login",TwoFactorAuthenticationLoginConfirmation:"TwoFactorAuthenticationLoginConfirmation",TwoFactorAuthenticationLoginWithRecoveryCode:"TwoFactorAuthenticationLoginWithRecoveryCode",SingleSignOnLogoutCallback:"SingleSignOnLogoutCallback",SingleSignOnLoginCallback:"SingleSignOnLoginCallback",Registration:"Registration",B2BRegistration:"B2BRegistration",RegistrationSuccess:"RegistrationSuccess",B2BRegistrationSuccess:"B2BRegistrationSuccess",EmailConfirmation:"EmailConfirmation",Represent:"Represent",NotFound:"NotFound",ContentPage:"ContentPage",NewsOverview:"NewsOverview",NewsDetail:"NewsItem",ContactUs:"ContactUs",VisualDesigner:"VisualDesigner",MyAccount:"MyAccount",AccountDetails:"AccountDetails",NewsletterSubscribe:"Subscribe",NewsletterUnSubscribe:"Unsubscribe",Search:"Search",ContentSearch:"
1ContentSearch",ProductDetails:"ProductDetails",ProductList:"ProductList",ProductGroupPage:"ProductGroupPage",FaqPage:"FaqPage",BasketPage:"Basket",WebsiteRedirect:"WebsiteRedirect",ReturnOrders:"ReturnOrders",CreateDocFreeReturnOrder:"CreateDocFreeReturnOrder",CreateDocBasedReturnOrder:"CreateDocBasedReturnOrder",EditProfile:"EditProfile",CreateShippingAddress:"CreateShippingAddress",EditShippingAddress:"EditShippingAddress",Orders:"Orders",Quotes:"Quotes",DocumentDetails:"DocumentDetails",Invoices:"Invoices",ReturnReceipts:"ReturnReceipts",CreditNotes:"CreditNotes",Shipments:"Shipments",BackorderLines:"BackorderLines",SalesAgreements:"SalesAgreements",SalesAgreement:"SalesAgreement",OrderTemplates:"OrderTemplates",OrderTemplateDetails:"OrderTemplateDetails",SubAccounts:"SubAccounts",EditSubAccount:"SubAccount",NewSubAccount:"NewSubAccount",OrderAuthorizations:"OrderAuthorizations",CreateProspect:"CreateProspect",LoginDetails:"LoginDetails",ForgotPassword:"ForgotPassword",ForgotPasswordConfirmation:"ForgotPasswordConfirmation",ResetPassword:"ResetPassword",PagePreview:"PagePreview",Checkout:"Checkout",QuotePromotion:"QuotePromotion",QuotePromotionCancelled:"QuotePromotionCancelled",InvoicePayment:"InvoicePayment",InvoiceUpdateFailed:"InvoiceUpdateFailed",OrderPayment:"OrderPayment",PaymentSubmit:"PaymentSubmit",PaymentCancelled:"PaymentCancelled",PaymentFailed:"PaymentFailed",LastViewedProducts:"LastViewedProducts",ProductComparison:"ProductComparison",ProductsWithCategory:"ProductsWithCategory",OrderSubmit:"OrderSubmit",PaymentError:"PaymentError",OrderFailed:"OrderFailed",OrderCancelled:"OrderCancelled",Error:"Error",BlogItemPage:"BlogItemPage",Blog:"Blog",TwoFactorAuthenticationSetup:"TwoFactorAuthenticationSetup",TwoFactorAuthenticationSetupConfirmation:"TwoFactorAuthenticationSetupConfirmation",TwoFactorAuthenticationRecoveryCodes:"TwoFactorAuthenticationRecoveryCodes",TwoFactorAuthenticationGeneralConfirmation:"TwoFactorAuthenticationGeneralConfirmation",TwoFactorAuthenticationSpentRecoveryCodeAlert:"TwoFactorAuthenticationSpentRecoveryCodeAlert",OrderSubscriptions:"OrderSubscriptions",OrderSubscriptionDetails:"OrderSubscriptionDetails",OrderSubscriptionProducts:"OrderSubscriptionProducts",OrderSubscriptionSettings:"OrderSubscriptionSettings",SubscriptionOrderConfirmation:"SubscriptionOrderConfirmation",ImportOrderSubscriptionToBasket:"ImportOrderSubscriptionToBasket",AddonSystemPage:"AddonSystemPage",StockAlerts:"StockAlerts",MarketingEmailUnsubscribe:"MarketingEmailUnsubscribe"};var L=r(24169);const $=(e,t)=>({getVirtualPath(r){if(null==t||!t.length||!r)return e;let n='';for(const e of t){const t=r[e];null!=t&&!1!==t&&(n+=`${e}=${t}&`)}return n?`${e}?${n.slice(0,-1)}`:e}}),_=function(e,t){return void 0===t&&(t='id'),{getVirtualPath(r){if(!r||null==r[t])throw new Error(`Can't build URL for the page. '${t}' route value was not specified.`);const n=r[t];return e+n}}},M=()=>{const e=new Map([['Order','/profile/orders/'],['Quote','/profile/quotes/'],['Invoice','/profile/invoices/'],['ReturnOrder','/profile/return-orders/'],['CreditNote','/profile/credit-notes/'],['ReturnReceipt','/profile/return-receipts/'],['Shipment','/profile/shipments/']]);return{getVirtualPath(r,n){r||t();const{id:o,documentType:i,originalOrderId:a}=r;o&&i||t();const s=e.get(i);s||function(e){throw new Error(`Can't build URL for the page. Document type '${e}' is not supported.`)}(i);const u=s+n.encodeId(o).toLowerCase();return a?u+"__"+n.encodeId(a).toLowerCase():u}};function t(){throw new Error('Can\'t build URL for the page. Document ID or type was not specified.')}},B=()=>{const e='/productcompare';return{getVirtualPath(t,r){if(!t)return e;const{productIds:n}=t;return null!=n&&n.length?e+'/'+n.map((e=>r.encodeId(e))).join('/'):e}}};function U(){throw new Error('Can\'t build URL for the page. Sales agreement ID was not specified.')}const F=()=>{const e='/profile/sales-agreements/';return{getVirtualPath(t){t||U();const{id:r,agreementLine:n}=t;return r||U(),n?`${e}${r}?agreement-line=${n}`:e+r}}};function W(){throw new Error('Can\'t build URL for the page. Category ID was not specified.')}const j=()=>{const e='/products-with-category/';return{getVirtualPath(t){t||W();const{id:r,agreement:n,agreementLine:o}=t;return r||W(),n&&o?`${e}${r.toLowerCase()}?agreement=${n}&agreement-line=${o}`:e+r.toLowerCase()}}};var H=r(48099);const V=['q','view-mode','page','count'],G=()=>({getVirtualPath:e=>q('/blog/',e)});function q(e,t){if(void 0===e&&(e='/blog/'),!t)return e;let r='';for(const e of V){const n=t[e];null!=n&&!1!==n&&(r+=`${e}=${n}&`)}for(const[e,n]of Object.entries(t))null==n||'facets'===e||V.includes(e)||(r+=`${z(e)}=${z(n)}&`);return`${e}?${r.slice(0,-1)}`}function z(e){return(0,o.UW)((0,H.Ny)(e),50).toLowerCase()}const Q={[x.Home]:$('/'),[x.BasketPage]:$('/shop/basket',['page','validate']),[x.ContactUs]:$('/contact-us'),[x.Login]:$('/profile/login'),[x.TwoFactorAuthenticationLoginConfirmation]:$('/profile/login/2fa-confirmation/'),[x.TwoFactorAuthenticationLoginWithRecoveryCode]:$('/profile/login/2fa-recovery'),[x.SingleSignOnLogoutCallback]:$('/profile/logout/callback'),[x.SingleSignOnLoginCallback]:$('/profile/login/callback'),[x.Registration]:$('/profile/register'),[x.B2BRegistration]:$('/profile/register-business/'),[x.RegistrationSuccess]:$('/profile/register/success'),[x.B2BRegistrationSuccess]:$('/profile/register-business/success'),[x.MyAccount]:$('/profile/'),[x.AccountDetails]:$('/profile/account-details'),[x.EditProfile]:$('/profile/account-details/edit-details'),[x.CreateShippingAddress]:$('/profile/account-details/add-address'),[x.EditShippingAddress]:$('/profile/account-details/edit-address',['id']),[x.LoginDetail
1s]:$('/profile/account-details/login-details'),[x.ForgotPassword]:$('/profile/forgot-password'),[x.ForgotPasswordConfirmation]:$('/profile/forgot-password/confirmation'),[x.ResetPassword]:$('/profile/reset-password',['token']),[x.Represent]:$('/profile/represent'),[x.SubAccounts]:$('/profile/subaccounts/'),[x.NewSubAccount]:$('/profile/subaccounts/create'),[x.EditSubAccount]:$('/profile/subaccounts/edit',['id']),[x.Orders]:$('/profile/orders/'),[x.Quotes]:$('/profile/quotes/'),[x.Invoices]:$('/profile/invoices/'),[x.ReturnOrders]:$('/profile/return-orders/'),[x.CreateDocFreeReturnOrder]:$('/profile/return-orders/create'),[x.CreateDocBasedReturnOrder]:$('/profile/return-orders/create-doc-based',['id','originalOrderId']),[x.CreditNotes]:$('/profile/credit-notes/'),[x.ReturnReceipts]:$('/profile/return-receipts/'),[x.CreateProspect]:$('/profile/createprospect'),[x.Shipments]:$('/profile/shipments/'),[x.BackorderLines]:$('/profile/backorder-lines/'),[x.OrderAuthorizations]:$('/profile/order-authorizations'),[x.OrderTemplates]:$('/profile/my-lists/'),[x.OrderTemplateDetails]:_('/profile/my-lists/','id'),[x.SalesAgreements]:$('/profile/sales-agreements/'),[x.SalesAgreement]:F(),[x.NewsOverview]:$('/news/'),[x.NewsletterSubscribe]:$('/newsletter/subscribe'),[x.NewsletterUnSubscribe]:$('/newsletter/unsubscribe'),[x.Search]:$('/search',['q']),[x.ContentSearch]:$('/content-search',['q']),[x.LastViewedProducts]:$('/last-viewed-products'),[x.ProductsWithCategory]:j(),[x.Checkout]:$('/checkout',['guest','asQuote']),[x.QuotePromotion]:$('/promote-quote'),[x.QuotePromotionCancelled]:_('/promote-quote/cancelled/','transactionId'),[x.OrderSubmit]:_('/checkout/ordersubmit/','transactionId'),[x.OrderCancelled]:_('/checkout/ordercancelled/','transactionId'),[x.OrderFailed]:_('/checkout/orderfailed/','transactionId'),[x.PaymentError]:_('/checkout/paymenterror/','transactionId'),[x.InvoicePayment]:_('/payment/invoice/','orderId'),[x.OrderPayment]:_('/payment/pay/','transactionId'),[x.PaymentSubmit]:_('/payment/pay/submit/','transactionId'),[x.PaymentCancelled]:_('/payment/pay/cancelled/','transactionId'),[x.PaymentFailed]:_('/payment/pay/failed/','transactionId'),[x.DocumentDetails]:M(),[x.ProductComparison]:B(),[x.Blog]:G(),[x.TwoFactorAuthenticationSetup]:$('/profile/2fa/setup/'),[x.TwoFactorAuthenticationSetupConfirmation]:$('/profile/2fa/setup-confirmation/'),[x.TwoFactorAuthenticationRecoveryCodes]:$('/profile/2fa/recovery-codes/'),[x.TwoFactorAuthenticationGeneralConfirmation]:$('/profile/2fa/confirmation/'),[x.TwoFactorAuthenticationSpentRecoveryCodeAlert]:$('/profile/2fa/spent-recovery-code-alert/'),[x.OrderSubscriptions]:$('/profile/subscriptions/'),[x.OrderSubscriptionDetails]:_('/profile/subscriptions/','id'),[x.OrderSubscriptionProducts]:$('/profile/subscriptions/edit-products',['id']),[x.OrderSubscriptionSettings]:$('/profile/subscriptions/edit-settings',['id']),[x.SubscriptionOrderConfirmation]:$('/subscriptions/order-confirmation',['token']),[x.ImportOrderSubscriptionToBasket]:_('/subscriptions/import-to-basket/','id'),[x.StockAlerts]:$('/profile/stock-alerts'),[x.MarketingEmailUnsubscribe]:$('/profile/marketing-emails/unsubscribe',['token'])},Z=e=>{const t=function(e){let t;return{get value(){return t||(t=e()),t}}}((()=>{const{idEncodings:t}=e;if(!t.length)return e=>e;const r=new Map;let n='';for(const e of t)r.set(e.character,e.replacement),n+=(0,L.T)(e.character)+'|';const o=new RegExp(`[${n.slice(0,-1)}]`,'g');return e=>e.replace(o,(e=>r.get(e)||e))})),r={encodeId:e=>t.value(e)};return{getUrlForRoute(t){const n=Q[t.routeName];if(!n)throw new Error(`Route '${t.routeName}' is not supported. Use page URL directly or register client route.`);const o=n.getVirtualPath(t.params,r);return e.languageSegment?e.languageSegment+o:o}}};const K={forProduct:(e,t,r)=>({routeName:x.ProductDetails,params:{id:e,agreement:null==r?void 0:r.salesAgreementId,agreementLine:null==r?void 0:r.id},options:t?{backTo:t}:void 0}),forBasket:function(e,t,r){return void 0===t&&(t=!1),{routeName:x.BasketPage,params:{page:void 0!==e?(e+1).toString():void 0,validate:r}
1,options:{linesOnly:t}}},forProductList:(e,t)=>({routeName:x.ProductList,params:{...t,page:(e+1).toString()}}),forProductGroup:e=>({routeName:x.ProductGroupPage,params:{id:e}}),forProductsWithCategory:(e,t)=>({routeName:x.ProductsWithCategory,params:{id:e,agreement:null==t?void 0:t.salesAgreementId,agreementLine:null==t?void 0:t.id}}),forSubAccount:e=>({routeName:x.EditSubAccount,params:{id:e}}),forDocument:(e,t,r)=>({routeName:x.DocumentDetails,params:{id:e,documentType:t,originalOrderId:r}}),forNotFound:()=>({routeName:x.NotFound}),forHome:()=>({routeName:x.Home}),forRepresent:e=>({routeName:x.Represent,options:e?{backTo:e}:void 0}),forLogin:()=>({routeName:x.Login}),forTwoFactorAuthenticationLoginConfirmation:e=>({routeName:x.TwoFactorAuthenticationLoginConfirmation,params:{firstFactorPassed:e}}),forTwoFactorAuthenticationLoginWithRecoveryCode:e=>({routeName:x.TwoFactorAuthenticationLoginWithRecoveryCode,params:{firstFactorPassed:e}}),forSingleSignOnLogoutCallback:()=>({routeName:x.SingleSignOnLogoutCallback}),forSingleSignOnLoginCallback:()=>({routeName:x.SingleSignOnLoginCallback}),forRegistration:e=>({routeName:x.Registration,options:e?{email:e}:void 0}),forB2bRegistration:e=>({routeName:x.B2BRegistration,options:e?{email:e}:void 0}),forRegistrationSuccess:()=>({routeName:x.RegistrationSuccess}),forB2bRegistrationSuccess:()=>({routeName:x.B2BRegistrationSuccess}),forMyAccount:()=>({routeName:x.MyAccount}),forNewSubAccount:()=>({routeName:x.NewSubAccount}),forEditProfile:(e,t)=>({routeName:x.EditProfile,options:{backTo:e,prevFormValues:t}}),forAccountDetails:()=>({routeName:x.AccountDetails}),forCreateShippingAddress:()=>({routeName:x.CreateShippingAddress}),forEditShippingAddress:e=>({routeName:x.EditShippingAddress,params:{id:e}}),forOrders:()=>({routeName:x.Orders}),forQuotes:()=>({routeName:x.Quotes}),forInvoices:()=>({routeName:x.Invoices}),forReturnOrders:()=>({routeName:x.ReturnOrders}),forReturnReceipts:()=>({routeName:x.ReturnReceipts}),forCreditNotes:()=>({routeName:x.CreditNotes}),forShipments:()=>({routeName:x.Shipments}),forBackorderLines:()=>({routeName:x.BackorderLines}),forSalesAgreements:()=>({routeName:x.SalesAgreements}),forSalesAgreement:(e,t)=>({routeName:x.SalesAgreement,params:{id:e,agreementLine:t}}),forOrderTemplates:()=>({routeName:x.OrderTemplates}),forOrderTemplateDetails:e=>({routeName:x.OrderTemplateDetails,params:{id:e}}),forCreateDocFreeReturnOrder:()=>({routeName:x.CreateDocFreeReturnOrder}),forCreateDocBasedReturnOrder:(e,t)=>({routeName:x.CreateDocBasedReturnOrder,params:{id:e,originalOrderId:t}}),forSubAccounts:()=>({routeName:x.SubAccounts}),forOrderAuthorizations:()=>({routeName:x.OrderAuthorizations}),forCreateProspect:()=>({routeName:x.CreateProspect}),forLoginDetails:e=>({routeName:x.LoginDetails,options:{shouldScrollTo2FAStatus:e}}),forForgotPassword:()=>({routeName:x.ForgotPassword}),forForgotPasswordConfirmation:()=>({routeName:x.ForgotPasswordConfirmation}),forCheckout:function(e,t,r){void 0===e&&(e=!1),void 0===r&&(r=!1);const n={step:t};return{routeName:x.Checkout,params:{asQuote:e,guest:r},options:n}},forQuotePromotion:e=>{const t=e?{step:e}:void 0;return{routeName:x.QuotePromotion,options:t}},forInvoicePayment:e=>({routeName:x.InvoicePayment,params:{orderId:e}}),forOrderPayment:e=>({routeName:x.OrderPayment,params:{transactionId:e}}),forPaymentSubmit:e=>({routeName:x.PaymentSubmit,params:{transactionId:e}}),forPaymentCancelled:e=>({routeName:x.PaymentCancelled,params:{transactionId:e}}),forPaymentFailed:e=>({routeName:x.PaymentFailed,params:{transactionId:e}}),forLastViewed:()=>({routeName:x.LastViewedProducts}),forNewsOverview:()=>({routeName:x.NewsOverview}),forContactUs:()=>({routeName:x.ContactUs}),forNewsDetail:e=>({routeName:x.NewsDetail,params:{id:e}}),forProductComparison:e=>({routeName:x.ProductComparison,params:{productIds:e}}),forOrderSubmit:e=>({routeName:x.OrderSubmit,params:{transactionId:e}}),forPaymentError:e=>({routeName:x.PaymentError,params:{transactionId:e}}),forOrderFailed:e=>({routeName:x.OrderFailed,params:{transactionId:e}}),forOrderCancelled:e=>({routeName:x.OrderCancelled,params:{transactionId:e}}),forBlogItem:(e,t)=>
1({routeName:x.BlogItemPage,params:{id:e},options:t?{backTo:t}:void 0}),forBlog:e=>({routeName:x.Blog,params:e}),forTwoFactorAuthenticationSetup:()=>({routeName:x.TwoFactorAuthenticationSetup}),forTwoFactorAuthenticationSetupConfirmation:()=>({routeName:x.TwoFactorAuthenticationSetupConfirmation}),forTwoFactorAuthenticationGeneralConfirmation:e=>({routeName:x.TwoFactorAuthenticationGeneralConfirmation,options:e}),forTwoFactorAuthenticationRecoveryCodes:()=>({routeName:x.TwoFactorAuthenticationRecoveryCodes,params:{isDepartedFromInternalPage:!0}}),forTwoFactorAuthenticationSpentRecoveryCodeAlert:e=>({routeName:x.TwoFactorAuthenticationSpentRecoveryCodeAlert,options:{backTo:e}}),forSearch:e=>({routeName:x.Search,params:{q:e}}),forContentSearch:e=>({routeName:x.ContentSearch,params:{q:e}}),forOrderSubscriptions:()=>({routeName:x.OrderSubscriptions}),forOrderSubscriptionDetails:(e,t)=>({routeName:x.OrderSubscriptionDetails,params:{id:e,importToBasketResult:t}}),forOrderSubscriptionProducts:(e,t)=>({routeName:x.OrderSubscriptionProducts,params:{id:e},options:t?{backTo:t}:void 0}),forOrderSubscriptionSettings:e=>({routeName:x.OrderSubscriptionSettings,params:{id:e}}),forStockAlerts:()=>({routeName:x.StockAlerts})},Y=new Set([x.Home,x.NotFound,x.WebsiteRedirect]),J=new Set([x.ProductList,x.MyAccount,x.SubAccounts,x.Orders,x.Quotes,x.Invoices,x.ReturnOrders,x.CreditNotes,x.ReturnReceipts,x.Shipments,x.SalesAgreements,x.NewsOverview,x.Blog,x.OrderTemplates,x.OrderSubscriptions,x.B2BRegistration]),X=(e,t)=>{if(!u(e)||Y.has(e.routeName))return;const r=J.has(e.routeName),n=t.pathname.endsWith('/');if(r&&n)return;if(!r&&!n)return;const o=r?t.pathname+'/':t.pathname.substring(0,t.pathname.length-1),i={routeName:e.routeName,params:e.params};return b(o+t.search,301,i)};var ee=r(92920);function te(e,t,r){if(a(e).pathname!==t.pathname)return(0,o.vh)(e)?(window.location=e,(0,ee.ei)()):b(e,301,r)}const re=(e,t,r,n)=>{if(!u(e)||!e.canonicalUrl)return;const{params:o,canonicalUrl:i,languageName:a}=e;if(!a)return te(i,t,void 0);const c=`/${a.toLowerCase()}`,l={routeName:e.routeName,params:o};if(i.startsWith(c)){if(!t.pathname.startsWith(c))return b(s({...t,pathname:c+t.pathname}),302,l)}else if(t.pathname.startsWith(c)){const e=t.pathname.substring(c.length);return b(s({...t,pathname:e}),null!=n&&n.isLanguageRedirectTypePermanent?301:302,l)}},ne=new Set([x.ContentPage,x.NewsDetail,x.FaqPage,x.ProductDetails,x.ProductGroupPage,x.ProductList,x.Home]),oe=(e,t)=>{if(!u(e))return;const{routeName:r,canonicalUrl:n}=e;if(!n||!ne.has(r))return;return te(n,t,{routeName:r,params:e.params})};var ie=r(12134),ae=r(72410),se=r(83589),ue=r(69230),ce=r(2366),le=r(43144),de=r(3822),pe=r(95229),fe=r(6776),me=r(21778),ge=r(94273),he=r(10437),ye=r(7417),ve=r(77401),we=r(34637),Se=r(73530),be=r(25596);const Ae=(0,be.graphql)(" query Route($path:String!,$forCrawlers:Boolean!){routing{route(path:$path){routeName canonicalUrl canonicalUrlForCrawlers:canonicalUrl(forCrawlers:true)@include(if:$forCrawlers)languageName ...on GenericRoute{params}...on PreviewRoute{previewParams:params{token routeName routeData previewData language}}}}settings{isLanguageRedirectTypePermanent}}"),Ce=(0,be.graphql)(" query ProductUrl($id:String!){catalog{products(options:{ids:[$id]}){products{url}}}}");function Oe(e){const t=e.routing.location;if(!t)return;const r=e.localization.currentLanguage.cultureName;if(!r)return;const n='/'+r.toLowerCase();return t.pathname.startsWith(n)?n:null}function Ee(e,t){const r=t.value,n=Oe(r);if(void 0!==n&&r.settings.loaded){const t=Z({languageSegment:n,idEncodings:r.settings.url.idEncodings});return(0,se.of)(t.getUrlForRoute(e))}return t.pipe((0,de.T)((e=>({languageSegment:Oe(e),idEncodings:e.settings.loaded?e.settings.url.idEncodings:void 0}))),(0,ce.$)((e=>void 0!==e.languageSegment&&!!e.idEncodings)),(0,de.T)((t=>Z(t).getUrlForRoute(e))))}const Te='ALTERNATE_URLS/REQUESTED',Ne=()=>({type:Te}),Pe='ALTERNATE_URLS/LOADED',Re=(0,be.graphql)(" query AlternateUrls($route:RouteInput!){routing{alternateUrls(route:$route){key path}}}");function De(e){return'previewToken'===e?'token':e}function Ie(e){return null===e?null:'string'==typeof e?e:JSON.stringify(e)}const ke=(e,t,r)=>{let{api:n}=r;return e.pipe((0,ie.g)(Te,''),(0,me.n)((r=>{const o=t.value;return o.routing.routeData?xe(e,o,n):t.pipe((0,ce.$)((e=>!!e.routing.routeData)),(0,le.ZZ)((t=>xe(e,t,n))))})))};function xe(e,t,r){const n=(e=>{let{routeName:t,params:r}=e;return{key:'',routeName:null!=r&&r.previewToken?x.PagePreview:t,params:r?Object.keys(r).map((e=>
1({key:De(e),value:Ie(r[e])}))):[]}})(t.routing.routeData);return n.routeName||(n.routeName=x.NotFound),n.params.push({key:'currentPath',value:t.routing.location.pathname}),r.graphApi(Re,{route:n}).pipe((0,de.T)((e=>{let{routing:t}=e;return r=t.alternateUrls,{type:Pe,payload:r};var r})),(0,he.Q)(e.pipe((0,ie.g)(h))))}function Le(e,t){return(0,ae.E)((t=>t.pipe((0,ie.g)(ee.rD),(0,ce.$)(),(0,fe.p)((e=>{let{payload:{offlineMode:t,offlineModeSupport:r}}=e;return t&&'DISABLED'===r})),(0,ye.M)((t=>e.onStatusCodeResolved(503))),(0,ve.w)())),(t=>{const r=t.pipe((0,ie.g)(ee.tB),(0,ce.$)(),(0,le.ZZ)((t=>{const r=$e(e.location);return(0,se.of)(w(r),p(r))}))),n=t.pipe((0,ie.g)(d),(0,de.T)((e=>{let{payload:{location:t}}=e;return t}))),o=t.pipe((0,ie.g)(h),(0,de.T)((e=>{let{payload:{location:t}}=e;return t}))),a=e.locationObservable.pipe((0,pe.E)((0,ue.h)((0,se.of)(e.location),n,o)),(0,fe.p)((e=>{let[t,r]=e;return!i(t,r)})),(0,de.T)((e=>{let[t,r]=e;return p($e(t))})));return(0,ue.h)(r,a)}),((e,t)=>{const r=(e,t,r,n)=>{const o=a(t);return r&&(o.state={omitScroll:r}),p(o,void 0,e,n)};return e.pipe((0,ie.g)(we.Ow),(0,me.n)((e=>{let{payload:{omitScroll:n,replaceHistory:o,...i}}=e;if('url'in i){let e=i.url;const a='to'in i?i.to:void 0;if('#'===e[0]){const r=t.value.routing.location;e=r.pathname+r.search+e}return(0,se.of)(r(a,e,n,o))}return Ee(i.to,t).pipe((0,de.T)((e=>r(i.to,e,n,o))))})))}),((r,n,o)=>{let{api:a,logger:s}=o;return r.pipe((0,ie.g)(d),(0,de.T)((e=>{let{payload:t}=e;return t})),(0,fe.p)((t=>{let{location:r,statusCode:n}=t;return e.onNavigating(r,n)})),(0,me.n)((o=>{let{location:u,routeData:c,replaceHistory:l}=o;const d=n.value;if(c&&c.routeName){var p,f,h,y;for(const e of t){const t=e(c,u,d);if(t)return(0,se.of)(t)}null!=(p=c.params)&&p.language||(c={...c,params:{...c.params,language:d.localization.currentLanguage.id}});const r=null==(f=e.location.state)?void 0:f.scrollPosition;let n=c.options;const a=!!n&&(!n.initialScrollPosition&&n.restoreScroll),s=null==(h=d.routing.previous)?void 0:h.location,m='redirect'in o&&o.redirect,v=function(e,t,r,n,o,a){const s=null==e?void 0:e.current,u=null==e?void 0:e.previous,c={},l=t?u:s;l&&(c.backToScrollPosition=l);t&&!a&&(c.replaceHistory=t);r&&u&&i(n,o)&&(c.initialScrollPosition=u);if(!Object.keys(c).length)return;return c}(r,l,a,u,s,m);return v&&(c={...c,options:{...c.options,...v}},n=c.options),null!=(y=n)&&y.initialScrollPosition&&(u={...u,state:{...u.state,initialScrollPosition:n.initialScrollPosition}}),(0,se.of)(g(u,c))}return a.graphApi(Ae,{path:u.pathname+u.search,forCrawlers:!1}).pipe((0,de.T)((e=>{let r,{routing:n,settings:o}=e;if('previewParams'in n.route){const{previewParams:e,...t}=n.route;r={...t,params:e}}else r=n.route;for(const e of t){const t=e(r,u,d,o);if(t)return t}return g(u,r)})),(0,ge.W)((e=>(s.error(e),(0,se.of)(g(u,{routeName:x.Error}))))),(0,he.Q)(r.pipe((0,ie.g)(m))))})))}),(t=>t.pipe((0,ie.g)(d),(0,de.T)((e=>{let{payload:t}=e;return t})),(0,fe.p)((t=>{let{location:r}=t;return!i(r,e.location)})),(0,ye.M)((t=>{var r;let n,{location:o,replaceHistory:i}=t;if(null!=(r=e.location.state)&&r.scrollPosition){var a;const{current:t,previous:r}=e.location.state.scrollPosition;null!=(a=o.state)&&a.omitScroll&&null!=t&&(n={current:t});const s=i?r:t;null!=s&&(n={...n,previous:s})}const s=function(e){const t={...e};return delete t.state,t}(o);s.state={timeStamp:Date.now()},n&&(s.state.scrollPosition=n),i?e.replace(s):e.push(s)})),(0,ve.w)())),(t=>t.pipe((0,ie.g)(A),(0,ye.M)((t=>{let{payload:{statusCode:r}}=t;return e.onStatusCodeResolved(r)})),(0,ve.w)())),(t=>t.pipe((0,ie.g)(O),(0,ye.M)((()=>e.goBack())),(0,ve.w)())),((e,t)=>e.pipe((0,ie.g)(T),(0,le.ZZ)((e=>{let{payload:r}=e;const n=t.value.page.backTo;if(n&&n.url)return(0,se.of)({routeData:n.routeData,location:a(n.url)});const o=t.value.routing.previous;if(o&&!r.ignoredRouteNames.includes(o.routeData.routeName))return(0,se.of)({...o,routeData:{...o.routeData,options:{restoreScroll:!0}}});const i=r.fallbackRoute||K.forHome();return(0,de.T)((e=>({routeData:i,location:a(e)})))(Ee(i,t))})),(0,fe.p)(Boolean),(0,de.T)((e=>p(e.location,200,e.routeData))))),((t,r)=>t.pipe((0,ie.g)(we.mN),(0,de.T)((t=>{var n,o;const i=null==(n=e.location.state)||null==(n=n.scrollPosition)?void 0:n.current,{value:a,screenWidth:s}=(null==(o=r.value.routing.location.state)?void 0:o.initialScrollPosition)||{},u=r.value.routing.location,c=!i||i.screenWidth===s&&i.value===a?u:{...u,state:{...u.state,initialScrollPosition:i}};return g(c,r.value.routing.routeData)})))),((e,t)=>e.pipe((0,ie.g)(P),(0,de.T)((e=>{let{payload:{routeData:r,omitScroll:n}}=e;const o=t.value.routing.location;return g(n?{...o,state:{...o.state,omitScroll:n}}:o,r)})))),((e,t)=>e.pipe((0,ie.g)(m),(0,de.T)((e=>{let{payload:{location:t}}=e;return t})),(0,fe.p)((e=>!i(e,t.value.routing.location))),(0,de.T)((()=>(0,we.g4)())))),(t=>t.pipe((0,ie.g)(D),(0,ye.M)((t=>{let{payload:{value:r,screenWidth:n}}=t;const o=e.location.state,i={...o,scrollPosition:{...null==o?void 0:o.scrollPosition,current:{value:r,screenWidth:n}}};e.replaceState(i)})),(0,ve.w)())),((e,t,r)=>{let{api:n}=r;return e.pipe((0,ie.g)(h,m),(0,de.T)((e=>{var t;return null==(t=e.payload.routeData)||null==(t=t.params)?void 0:t.language})),(0,fe.p)((e=>{const r=t.value.localization.currentLanguage.id;return!(!e&&r||e===r)})),(0,ye.M)((e=>n.setLanguage(e.toString()))),(0,de.T)((e=>(0,Se.Ss)(e))))}),ke)}function $e(e){const t={...e};return delete t.key,delete t.state,t}var _e=r(95027),Me=r(73527);const Be=(e,t,r)=>{let{api:n,widgetMessageBus:o}=r;const i=e.pipe((0,ie.g)(we.Ow));return o.message$.pipe((0,le.ZZ)((e=>{let{message:t}=e;if(!(0,Me.ZG)(t))return _e.w;if('url'in t.payload)return(0,se.of)((0,we.VJ)(void 0,t.payload.url));const{route:r}=t.payload;return'ProductDetails'===r.name?n.graphApi(Ce,{id:r.id}).pipe((0,le.ZZ)((e=>{let{catalog:{products:t}}=e;if(1!==(null==t?void 0:t.products.length))return _e.w;const n=t.products[0].url;return n?(0,se.of)((0,we.VJ)(K.forProduct(r.id),n)):_e.w})),(0,he.Q)(i)):(0,se.of)((0,we.VJ)(function(e){if('OrderTemplateDetails'===e.name)return K.forOrderTemplateDetails(e.id);if('SalesAgreement'===e.name)return K.forSalesAgreement(e.id,e.lineId);if('Search'===e.name)return K.forSearch(e.keywords);if('ContentSearch'===e.name)return K.forContentSearch(e.keywords);if('DocumentDetails'===e.name)return K.forDocument(e.id,e.documentType,e.originalOrderId);switch(e.name){case'BackorderLines':return K.forBackorderLines();case'Basket':return K.forBasket();case'Blog':return K.forBlog();case'Checkout':return K.forCheckout();case'ContactUs':return K.forContactUs();case'CreditNotes':return K.forCreditNotes();case'Home':return K.forHome();case'Invoices':return K.forInvoices();case'Login':return K.forLogin();case'MyAccount':return K.forMyAccount();case'Orders':return K.forOrders();case'OrderTemplates':return K.forOrderTemplates();case'Quotes':return K.forQuotes();case'ReturnOrders':return K.forReturnOrders();
1case'ReturnReceipts':return K.forReturnReceipts();case'SalesAgreements':return K.forSalesAgreements();case'Shipments':return K.forShipments();case'StockAlerts':return K.forStockAlerts();case'Represent':return K.forRepresent();default:return function(e){throw new Error(`'${e}' is not supported.`)}(e)}}(r)))})))},Ue={location:void 0,previous:void 0,routeData:void 0,navigatingTo:null};function Fe(e,t){return void 0===e&&(e=Ue),t.type===v?function(e,t){const{location:r}=t.payload;return{...e,location:r}}(e,t):t.type===h?function(e,t){const{location:r,routeData:n}=t.payload,{canonicalUrl:o,canonicalUrlForCrawlers:i,options:a,...s}=n||{};return{...e,navigatingTo:null,canonicalUrl:o,canonicalUrlForCrawlers:i,routeData:s,location:r,previous:We(e,r,null==a?void 0:a.replaceHistory)}}(e,t):t.type===d?function(e,t){return t.payload.routeData?{...e,navigatingTo:{location:t.payload.location,routeData:t.payload.routeData}}:e.navigatingTo?{...e,navigatingTo:null}:e}(e,t):t.type===m?function(e,t){return{...e,navigatingTo:t.payload}}(e,t):e}function We(e,t,r){const{location:n,routeData:o}=e;if(!n||!o)return;if(r)return e.previous;return i(n,t)?e.previous:{location:n,routeData:o}}const je={urls:[],expired:!1};function He(e,t){return void 0===e&&(e=je),t.type===Pe?function(e,t){return{...e,urls:t.payload}}(e,t):t.type===we.ty?function(e){return{...e,expired:!0}}(e):t.type===h?function(e){return e.expired?{...e,expired:!1,urls:[]}:e}(e):e}var Ve=r(25498),Ge=r(70358),qe=r(60238);const ze=[];let Qe=null,Ze=null;const Ke='NAVIGATING_CONTINUE_PENDING',Ye=e=>e=>t=>{switch(t.type){case d:if(!ze.length)return e(t);const r=t.payload.routeData;for(const e of ze)if(e(r))return void(Qe=t);return e(t);case Ke:return Qe=null,e(t.payload);default:return e(t)}},Je=e=>{var t;const r=(0,Ve.useRef)();r.current||(r.current=null==(t=window.history.state)?void 0:t.state.timeStamp),(0,Ve.useEffect)((()=>(ze.push(e),()=>{const t=ze.indexOf(e);ze.splice(t,1)})),[e]),(0,qe.P5)(qe.BT,(e=>{Qe&&i(window.location,Qe.payload.location)&&(Ze?Ze=null:(Qe=null,Ze=e.state.state.timeStamp<r.current?1:-1,window.history.go(Ze)))}));const n=(0,Ge.useDispatch)();return{resume:()=>{Qe?(n({type:Ke,payload:Qe}),Qe=null):Ze&&window.history.go(-Ze)},discard:()=>{Qe=null,Ze=null,n({type:k})}}};var Xe=r(72740);function et(){return(0,Ge.useSelector)((e=>e.routing.location))}function tt(){return(0,Ge.useSelector)((e=>e.routing))}function rt(){return(0,Ge.useSelector)((e=>e.routing.previous))}const nt=()=>(0,Ge.useSelector)((e=>{let{routing:t,page:r}=e;return r.index?t.canonicalUrlForCrawlers??t.canonicalUrl:null}));function ot(e){const t=(0,Ge.useSelector)((e=>({languageSegment:Oe(e),idEncodings:e.settings.loaded?e.settings.url.idEncodings:void 0})),Ge.shallowEqual);return(0,Xe.Ko)((()=>
1{if(void 0===t.languageSegment||!t.idEncodings)return e.map((e=>{}));const r=Z(t);return e.map(r.getUrlForRoute)}),[e,t])}function it(){return(0,Ge.useSelector)((e=>e.alternateUrls.urls))}function at(){const{location:e,routeData:t}=tt();return(0,Ve.useMemo)((()=>{if(e&&t)return{url:s(e),routeData:t}}),[e,t])}function st(e){void 0===e&&(e=!1);const t=(0,Ge.useSelector)((e=>{var t;return(null==(t=e.routing.location)?void 0:t.search)||''}),e?e=>!0:void 0);let r,n;return{get values(){return r&&(e||t===n)||(r=(0,o.mA)(t),e||(n=t)),r}}}function ut(e){const t=et();(0,Xe.T7)(e,[t])}var ct=r(21010);const lt=e=>{let{children:t,...r}=e;const n=(0,Ge.useDispatch)();return(0,ct.jsx)("a",{href:"/",onClick:e=>{1!==e.button&&(e.preventDefault(),n(E()))},...r,children:t})};var dt=r(97328),pt=r(57029),ft=r(74393);const mt=e=>{let{createLink:t,to:r,url:n,onClick:i,omitScroll:a,replaceHistory:s,options:u}=e;const c=(0,Ge.useDispatch)(),{context:l}=(0,ft.A)(),d=(0,Ve.useMemo)((()=>{if(n)return n.startsWith(l.origin)?n.substring(l.origin.length):n}),[n]);(0,Ve.useEffect)((()=>{d||pt.v.warn('There are broken links on the website. Please use document.querySelectorAll("a[data-broken]") to find them.')}),[d]);return t(d,(e=>{if(1===e.button||(0,dt.$O)(e))return;const{currentTarget:{target:t}}=e;if(!d||(0,o.vh)(d)||t&&'_self'!==t)return;e.preventDefault();const n=function(e,t){return e&&t?{...e,options:{...e.options,...t}}:e}(r,u);!1===(i&&i(e,n))||c((0,we.VJ)(n,d,{omitScroll:a,replaceHistory:s}))}))};const gt=e=>{let{createLink:t,to:r,onClick:n,omitScroll:o,replaceHistory:i,options:a}=e;const s=(0,Ve.useMemo)((()=>[r]),[r]),[u]=ot(s);return u?(0,ct.jsx)(mt,{createLink:t,url:u,to:r,onClick:n,omitScroll:o,replaceHistory:i,options:a}):t('#')};function ht(e){return'function'==typeof e?e():e}const yt=['noopener','noreferrer'];function vt(e,t){if('_blank'!==e)return t??void 0;return[...new Set([...yt,...(null==t?void 0:t.trim().split(/\s+/).filter(Boolean))??[]])].join(' ')}const wt=(0,Ve.forwardRef)(((e,t)=>{const{to:r,url:n,omitScroll:i,replaceHistory:a,options:s,onClick:u,children:c,rel:l,target:d,disabled:p,...f}=e,m=r&&ht(r),g=(e,r)=>{const n=p?{'aria-disabled':!0,role:'link',rel:vt(d,l),target:d}:{href:e?(0,o.k9)(e):void 0,rel:vt(d,l),target:d,onClick:r};return(0,ct.jsx)("a",{"data-broken":e?null:'true',ref:t,...n,...f,children:c})};return!n&&r?(0,ct.jsx)(gt,{to:m,omitScroll:i,replaceHistory:a,options:s,onClick:u,createLink:g}):(0,ct.jsx)(mt,{url:n,to:m,omitScroll:i,replaceHistory:a,options:s,onClick:u,createLink:g})}));function St(e,t){return Le(e,[...t,re,X,oe])}function bt(){return Be}function At(){return{routing:Fe,alternateUrls:He}}},31459:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(29837),o=r(45259);const i=e=>{const t=n.c.create((t=>e.listen((e=>
1t.next(e))))).pipe((0,o.u)());return{get locationObservable(){return t},get location(){return e.location},push(t){e.push(t)},replace(t){e.replace(t)},replaceState(t){e.location.state=t,window.history.replaceState({...window.history.state,state:t},'')},goBack(){e.goBack()},onStatusCodeResolved(e){},onNavigating:(e,t)=>!0}}},60238:(e,t,r)=>{"use strict";r.d(t,{_8:()=>P,eo:()=>C,Yx:()=>D,ny:()=>m,BT:()=>h,Hk:()=>p,Ss:()=>f,P5:()=>w,$w:()=>g});var n=r(33544),o=r(70696),i=r(1122),a=r(95027),s=r(71223),u=r(45259),c=r(24024),l=r(3822);const d='undefined'!=typeof window&&!!window.document,p=y('resize').pipe((0,s.c)(350,n.b,{leading:!1,trailing:!0}),(0,u.u)()),f=y('scroll').pipe((0,s.c)(250,n.b,{leading:!1,trailing:!0}),(0,u.u)()),m=y('orientationchange').pipe((0,s.c)(250,n.b,{leading:!1,trailing:!0}),(0,u.u)()),g=(y('message').pipe((0,u.u)()),d&&'onvisibilitychange'in window.document?y('visibilitychange',!0).pipe((0,c.Z)(0),(0,l.T)((()=>!window.document.hidden)),(0,u.u)()):new o.t(!0)),h=y('popstate').pipe((0,u.u)());function y(e,t){return d?(0,i.R)(t?window.document:window,e):a.w}var v=r(25498);const w=function(e,t,r,n){void 0===r&&(r=!0),n=n&&n.length?[r].concat(n):[r],(0,v.useEffect)((()=>{if(!r)return;'function'==typeof e&&(e=e());const n=e.subscribe(t);return()=>n.unsubscribe()}),n)};var S=r(16980),b=r(29837),A=r(7417);function C(e){return t=>{let r;return(0,S.x)((0,A.M)((()=>r=!0))(t),new b.c((t=>{if(!r)return e.subscribe(t);t.complete()})))}}var O=r(89307),E=r(17694),T=r(50216),N=r(2366);function P(e,t){return void 0===t&&(t=10),r=>{const n=r.pipe((0,u.u)());return n.pipe((0,E.p)((r=>n.pipe((0,T.n)((()=>e||(0,O.O)(t))),(0,l.T)((e=>[r,...e])),(0,N.$)()))))}}var R=r(46656);function D(e,t){return r=>new b.c((n=>{const o=new Set;r.subscribe({next:t=>{const r=[];for(const n of t){const t=e?e(n):n;o.has(t)||(o.add(t),r.push(n))}n.next(r)}}),t&&(0,R.H)(t).subscribe({next:()=>o.clear()})}))}},75208:(e,t,r)=>{"use strict";r.d(t,{h1:()=>A,ht:()=>b,eg:()=>S});const n='SALES_AGREEMENTS/PRODUCTS_WITH_AGREEMENTS_REQUESTED',o=e=>({type:n,payload:e}),i='SALES_AGREEMENTS/PRODUCTS_WITH_AGREEMENTS_LOADED';var a=r(33943);const s={productsWithAgreements:{}};function u(e,t){if(void 0===e&&(e=s),t.type===a.C)return s;if(t.type===i){const r={...e.productsWithAgreements},{productsWithAgreements:n,allRequestedProductIds:o}=t.payload;for(const e of n){const{productId:t,salesAgreements:n}=e;r[t]=n}for(const e of o)r[e]??(r[e]=null);return{...e,productsWithAgreements:r}}return e}var c=r(95027),l=r(12134),d=r(15622),p=r(6776),f=r(3822),m=r(10437);const g=(0,r(25596).graphql)(" query ProductsWithAgreements($productIds:[String!]!){salesAgreements{productsWithAgreements(productIds:$productIds){productId salesAgreements{id title expirationDate lines{product{variants{id}}categoryId uom{id description}expirationDate quantities{commitment remaining}amounts{commitment remaining}}}}}}");var h=r(60238);const y=(e,t,r)=>{let{api:o,completePendingActions$:s}=r;const u=e.pipe((0,l.g)(a.C));return e.pipe((0,l.g)(n),(0,h._8)(s,10),(0,d.H)((e=>{const t=[...new Set(e.flatMap((e=>e.payload)))];return 0===t.length?c.w:o.graphApi(g,{productIds:t}).pipe((0,p.p)((e=>!!e.salesAgreements)),(0,f.T)((e=>{return r=e.salesAgreements.productsWithAgreements,{type:i,payload:{productsWithAgreements:r,allRequestedProductIds:t}};var r})),(0,m.Q)(u))})))};var v=r(70358),w=r(25498);function S(e){const t=(0,v.useDispatch)(),r=(0,v.useSelector)((t=>e?t.salesAgreements.productsWithAgreements[e]:void 0));return(0,w.useEffect)((()=>{e&&void 0===r&&t(o([e]))}),[e,r]),r}function b(){return{salesAgreements:u}}function A(){return y}},52989:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(25498).createContext)({middleware:[]})},27723:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(25498).createContext)(void 0)},7928:(e,t,r)=>{"use strict";r.d(t,{G6:()=>o,Pz:()=>a,_r:()=>u,ln:()=>n,ri:()=>s,ye:()=>i});const n='SANATEXTS_REQUESTED',o=e=>({type:n,payload:e}),i='SANATEXTS_LOADED',a=e=>({type:i,payload:e}),s='SANATEXT_UPDATED',u=e=>{let{key:t,text:r}=e;return{type:s,payload:{key:t,text:r}}}},5041:(e,t,r)=>{"use strict";r.d(t,{P6:()=>s,Ms:()=>u,KR:()=>c});
1var n=r(25498),o=r(87451),i=r(60792),a=r(82074);function s(e){let{children:t,textKeys:r,asHtml:s,dontWait:u,placeholder:c=null}=e;const{texts:l,loaded:d}=(0,o.LW)(r,s?a._:i.g);return(0,n.useMemo)((()=>u||d?t?t(l):null:c),[t,l,u])}const u=e=>(0,o.LW)(e,a._),c=e=>(0,o.LW)(e,i.g)},42803:(e,t,r)=>{"use strict";r.d(t,{$8:()=>s,Mr:()=>u,OA:()=>a,fl:()=>i,qq:()=>o});const n="\u200b\u200b\u200b",o=e=>0!==e.length&&("\u200d"===e[0]||"\u200c"===e[0]),i=e=>-1!==e.indexOf(n),a=(e,t)=>e.toString(2).split('').reduce(((e,t)=>e+('1'===t?"\u200d":"\u200c")),'')+t+n,s=e=>{if(0===e.length)return{value:e};if(!o(e))return{value:e};e.slice(-3)===n&&(e=e.slice(0,-3));let t=0,r='';for(;;){if("\u200d"===e[t])r+='1';else{if("\u200c"!==e[t])break;r+='0'}t++}return{value:e.substring(t),id:parseInt(r,2)}},u=e=>e&&o(e)?s(e).value:e},87451:(e,t,r)=>{"use strict";r.d(t,{CK:()=>l,KR:()=>y,LW:()=>h});var n=r(25498),o=r(52989),i=r(27723),a=r(72740),s=r(94923),u=r(70358),c=r(60792);function l(e,t){const{loadSanaTexts:r}=(0,n.useContext)(o.A),s=(0,n.useContext)(i.A),c=(0,a.Ko)((()=>p(e)),e,f),l=(0,u.useSelector)(c);return(0,a.v5)((()=>{const e=[];for(const{key:t,value:r}of l)void 0===r&&t&&e.push(t);e.length&&r(e,s)})),(0,n.useMemo)((()=>{let e=!0;const r=[];for(const{value:n,fallback:o}of l)void 0===n?(r.push(null),e=!1):null===n?r.push(o||null):r.push(t?t(n):n);return{texts:r,loaded:e}}),[l])}const d=(e,t)=>t.map((t=>{if(!t||'boolean'==typeof t)return{key:null,value:null,fallback:null};let r;return r='string'==typeof t?{key:t}:{...t},r.value=e[r.key],r}));function p(e){return(0,s.Mz)((e=>e.sanaTexts),(t=>d(t,e)))}function f(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){if(m(e[r])!==m(t[r]))return!1;if(g(e[r])!==g(t[r]))return!1}return!0}function m(e){return e&&'string'!=typeof e&&'boolean'!=typeof e?e.key:e}function g(e){if(e&&'object'==typeof e)return e.fallback}function h(e,t){const{middleware:r}=(0,n.useContext)(o.A);let i=l;for(const e of r)i=e(i);return i(e,t)}const y=e=>h(e,c.g)},18913:(e,t,r)=>{"use strict";r.d(t,{sD:()=>x,u9:()=>$,dk:()=>B,gJ:()=>D,P6:()=>L,fl:()=>U.fl,qq:()=>U.qq,Rk:()=>F,xm:()=>W,$8:()=>U.$8,OA:()=>U.OA,G6:()=>S.G6,_V:()=>I._,g_:()=>N.g,Mr:()=>U.Mr,Pz:()=>S.Pz,_r:()=>S._r,LW:()=>T.LW,CK:()=>T.CK,KR:()=>T.KR});var n=r(95027),o=r(83589),i=r(89307),a=r(69230),s=r(3822),u=r(45259),c=r(10437),l=r(43144),d=r(21778),p=r(2366),f=r(7417),m=r(77401),g=r(12134),h=r(60238);const y=(0,r(25596).graphql)(" query SanaTexts($keys:[String!]!){sanaTexts(keys:$keys){key description}}");var v=r(69334),w=r(92920),S=r(7928),b=r(16026),A=r(94385);const C={};function O(e,t){switch(void 0===e&&(e=C),t.type){case S.ye:return{...e,...t.payload};case S.ri:const{key:r,text:n}=t.payload;return{...e,[r]:n};default:return e}}var E=r(25498),T=r(87451),N=r(60792),P=r(21010);const R=e=>{let{textKey:t,children:r,formatWith:n,placeholder:o=null,formatAsHtml:i=!1,disableInsiteEditor:a=!1}=e;const s=[{key:t,fallback:r||void 0}];s.disableInsiteEditor=a;const{texts:[u],loaded:c}=(0,T.LW)(s);return c?n?(0,P.jsx)(P.Fragment,{children:(0,N.g)(u,n,i)}):(0,P.jsx)(P.Fragment,{children:(0,N.g)(u)}):o},D=(0,E.memo)(R);var I=r(82074);const k=e=>{let{textKey:t,children:r,formatWith:n,placeholder:o=null,disableInsiteEditor:i=!1}=e;const a=[{key:t,fallback:r||void 0}];a.disableInsiteEditor=i;const{texts:[s],loaded:u}=(0,T.LW)(a);return u?(0,P.jsx)(P.Fragment,{children:(0,I._)(s,n)}):o},x=(0,E.memo)(k),L=e=>{let{children:t,options:r,dontWait:n,props:o,placeholder:i=null}=e;const{texts:a,loaded:s}=(0,T.LW)(r);return(0,E.useMemo)((()=>n||s?t?o?t(a,o)||null:t(a)||null:null:i),[t,a,n,o])},$=e=>(0,P.jsx)(P.Fragment,{children:e.children});var _=r(70358),M=r(52989);const B=e=>{let{children:t,onSanaTextsRequested:r,middleware:n=[]}=e;const o=function(){const e=(0,E.useRef)();e.current||(e.current=new Set);return e.current}(),i=(0,_.useDispatch)(),a=(0,E.useMemo)((()=>({loadSanaTexts(e,t){const n=[];for(const t of e)o.has(t)||(n.push(t),o.add(t));n.length&&(i((0,S.G6)(n)),r&&r(n,t))},middleware:n})),[n,r]);return(0,P.jsx)(M.A.Provider,{value:a,children:t})};r(27723);var U=r(42803);function F(e){return function(e){const{reloadActions:t,isAppInErrorState:r}=e;return(e,C,O)=>{let{api:E,logger:T,completePendingActions$:N}=O;const P=new Set,R=t=>{if(!t.length)return n.w;const i=e=>{const r=C.value.sanaTexts,i=t.filter((e=>!r.hasOwnProperty(e)));if(!i.length)return n.w;const a={};
1return i.forEach((e=>a[e]=null)),(0,o.of)((0,S.Pz)(a))},a=C.value,u=!r(a)&&Object.keys(a.sanaTexts).length>0?(0,A.WC)(e,T,i):(0,A.H4)(A.Cz.HIGH,'Sana texts',i);return E.graphApi(y,{keys:t}).pipe((0,s.T)((e=>{const r=(0,v.G)(e.sanaTexts,(e=>e.key),(e=>e.description));return t.forEach((e=>r[e]??(r[e]=null))),(0,S.Pz)(r)})),u)},D=e.pipe((0,g.g)(...t,b.e),(0,u.u)()),I=(0,c.Q)(D),k=e.pipe((0,g.g)(S.ln),(0,h._8)(N),(0,l.ZZ)((e=>{const t=[];for(const r of e)for(const e of r.payload)P.has(e)||(t.push(e),P.add(e));return R(t).pipe(I)}))),x=D.pipe((0,d.n)((()=>(0,i.O)(10).pipe((0,l.ZZ)((e=>R([...P.keys()]))))))),L=e.pipe((0,g.g)(w.tB,w.lR),(0,p.$)(),(0,f.M)((()=>Object.keys(C.value.sanaTexts).forEach(P.add.bind(P)))),(0,m.w)());return(0,a.h)(k,x,L)}}(e)}function W(){return{sanaTexts:O}}},82074:(e,t,r)=>{"use strict";r.d(t,{_:()=>c});var n=r(49295),o=r(25498),i=r(48099),a=r(21010);const s=e=>t=>((e,t)=>{if(!e||'text'!==t.type)return;const r=t.data;if(!r)return;const n=(0,i.n0)(r,e);return 1===n.length?(0,a.jsx)(a.Fragment,{children:n[0]}):(0,a.jsx)(a.Fragment,{children:n.map(((e,t)=>(0,a.jsx)(o.Fragment,{children:e},t)))})})(e,t);var u=r(52246);function c(e,t){if(!e)return e;if(!t||!t.length)return(0,n.e)(e);const r=(0,u.w)(t);return(0,n.e)(e,s(r))}},60792:(e,t,r)=>{"use strict";r.d(t,{g:()=>u});var n=r(48099),o=r(49295),i=r(52246),a=r(82074);const s=new Map([['<','&lt;'],['&','&amp;']]);function u(e,t,r){if(void 0===r&&(r=!1),!e)return e;const u=(0,n.Ny)(e);if(!t||!t.length)return(0,o.e)(u);if(r)return(0,a._)(u,(0,i.w)(t));const c=(0,i.w)(t);return function(e){for(let t=0;t<e.length;t++){const r=e[t];'string'==typeof r&&(e[t]=r.replace(/[<&]/g,(e=>s.get(e)||e)))}}(c),(0,o.e)((0,n.vX)(u,c))}},52246:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(42803);function o(e){return e.map((e=>'string'==typeof e?(0,n.Mr)(e):e))}},74393:(e,t,r)=>{"use strict";r.d(t,{h:()=>o,A:()=>i});var n=r(25498);const o=(0,n.createContext)({});function i(){return(0,n.useContext)(o)}},14940:(e,t,r)=>{"use strict";function n(e,t){const{uomTitle:r}=t,{uom:n}=e;if(!n)return null;const{id:o,description:i,quantityStep:a}=n;return{eligibleQuantity:{'@type':'http://schema.org/QuantitativeValue',value:a,unitText:r||i||o}}}r.d(t,{$I:()=>g,hw:()=>f,xV:()=>h,P7:()=>d,C3:()=>p,Bk:()=>v});var o=r(96575);function i(e,t){const{currencyId:r,origin:i}=t,{url:a,calculatedInfo:s,stockLevels:u}=e;if(!s||null==s.price)return null;const{inventory:c,isOrderable:l}=s;let d;return d=null==c&&l||null==l||u&&(c||0)>u.outOfStock?'InStock':'OutOfStock',{offers:{'@type':'Offer',url:(0,o.cO)(a,i),price:s.price.toFixed(2),priceCurrency:r,availability:`https://schema.org/${d}`,...n(e,t)}}}function a(e,t){const{origin:r,noImageLarge:n}=t,{image:i,images:a}=e,s=[],u=e=>{let{small:t,mediumSmall:n,medium:i,mediumLarge:a,large:u}=e;const c=u||a||i||n||t,l=(0,o.cO)(c,r);l&&s.push(l)};if(a&&a.length&&a.forEach(u),!s.length&&i&&u(i),!s.length){const e=(0,o.cO)(n,r);e&&s.push(e)}return{image:s}}var s=r(48099),u=r(15166);function c(e){const{reviews:t}=e;if(!t||!t.list.length)return null;const r=(0,u.getToLocaleDate)('en-US');return{review:t.list.map((e=>{let{title:t,description:n,date:o,rating:i}=e;const a=(0,s.Ny)(t);return{'@type':'Review',name:a,headline:a,reviewBody:(0,s.Ny)(n),datePublished:r(o),reviewRating:{'@type':'Rating',ratingValue:i,worstRating:1,bestRating:5},author:{'@type':'Person',name:'Unknown Author'}}})),aggregateRating:{'@type':'AggregateRating',ratingValue:t.avg,reviewCount:t.total,worstRating:1,bestRating:5}}}var l=r(69334);function d(e,t){const{origin:r}=t,{id:n,title:u,url:p,description:f,categoriesPaths:m,relatedProductGroups:g}=e,h={'@context':'https://schema.org/','@type':'Product',name:u,productID:n,sku:n,url:(0,o.cO)(p,r),...a(e,t),...i(e,t),...c(e)};return f&&(h.description=(0,s.Ny)(f)),m&&m.length&&(h.category=m.map((e=>e.categories.map((e=>e.name)).join(' > ')))),g&&g.length?(h.isRelatedTo=(0,l.qI)(g,(e=>{let{products:t}=e;return t}),(e=>{const r=d(e,t);return delete r['@context'],r})),h):h}function p(e,t,r){const{origin:n}=t;return{'@context':'https://schema.org','@type':'WebSite',name:r,url:(0,o.cO)('/',n),potentialAction:[{'@type':'SearchAction',target:(0,o.cO)(e,n),'query-input':'required name=q'}]}}function f(e,t){if(!e.length)return null;const{origin:r}=t;return{'@context':'https://schema.org','@type':'BreadcrumbList',itemListOrder:'Ascending',itemListElement:e.map(((e,t)=>{const n=e.link&&e.link.url;return{'@type':'ListItem',position:t+1,name:(0,s.Ny)(e.title),item:(0,o.cO)(n,r)}}))}}function m(e,t){var r;const{comments:n}=e;if(!n||null==(r=n.items)||!r.length)return null;const o=(0,u.getToLocaleDate)(t);return{comment:n.items.map((e=>{let{title:t,name:r,date:n,details:i}=e;return{'@type':'Comment',headline:t,name:r,text:(0,s.Ny)(i),author:{'@type':'Person',name:r},dateCreated:o(n)}})),commentCount:n.totalCount}}function g(e,t,r){const{title:n,url:i,shortDescription:a,author:c,publishDate:l}=e,d=(0,u.getToLocaleDate)(t),p={'@context':'https://schema.org/','@type':'BlogPosting',headline:n,url:(0,o.cO)(i,r.origin),inLanguage:t,author:{'@type':'Person',name:c},creator:{'@type':'Person',name:c},accountablePerson:{'@type':'Person',name:c},dateCreated:d(l),datePublished:d(l),...m(e,t)};return a&&(p.articleBody=(0,s.Ny)(a)),p}function h(e,t,r){return{'@context':'https://schema.org','@type':'Organization',name:r,url:t,logo:(0,o.cO)(e,t)}}var y=r(74393);const v=()=>{const{context:{origin:e}}=(0,y.A)();return{origin:e}}},48099:(e,t,r)=>{"use strict";r.d(t,{$J:()=>i,Hb:()=>f,K7:()=>a,Ny:()=>s,Sk:()=>c,a_:()=>o,eV:()=>u,n0:()=>l,vX:()=>d});const n=/\{(\d+)\}/g;function o(e){return e.charAt(0).toLowerCase()+e.slice(1)}function i(e,t){return void 0===t&&(t=' '),e?e.replace(/(<[A-Za-z!/?][^><]*>)+/gm,t).trim():''}function a(e){return e?e.replace(/[\n\t\r\s]+/gm,' ').trim():''}function s(e){return a(i(e))}function u(e,t){return(e+1e15+'').slice(-t)}function c(e,t){if(null==e)return null;if(e.length<=t)return e.trimEnd();const r=e.substring(0,t+1).lastIndexOf(' ');return e.substring(0,r>=0?r:t).trimEnd()}const l=(e,t)=>
1{if(!e||!t.length)return[e];const r=e.split(n);if(1===r.length)return[e];const o=[];for(let e=0;e<r.length&&(r[e]&&o.push(r[e]),e!==r.length-1);e+=2){const n=parseInt(r[e+1]);null!=t[n]&&o.push(t[n])}return o},d=(e,t)=>{if(!e||!t.length)return e;return l(e,t).join('')},p=new Intl.Collator(void 0,{sensitivity:'accent'}).compare;function f(e,t){return null==e||null==t?e===t:0===p(e,t)}},42078:(e,t,r)=>{"use strict";r.d(t,{gi:()=>a,Rb:()=>P,bI:()=>N,mj:()=>O,Ty:()=>C,D:()=>T});const n='THEME/LOADED',o=e=>({type:n,payload:e}),i={Default:"default",Error:"error"},a={Large:"Large",Regular:"Regular",Small:"Small",Micro:"Micro",Heading1:"Heading1",Heading2:"Heading2",Heading3:"Heading3",Heading4:"Heading4",Heading5:"Heading5",DisplayHeading1:"DisplayHeading1",DisplayHeading2:"DisplayHeading2",DisplayHeading3:"DisplayHeading3"},s={None:0,Solid:1,Dashed:2,Dotted:3,Double:4},u={};function c(e,t){return void 0===e&&(e=u),t.type===n?t.payload||{version:i.Default}:e}var l=r(21778),d=r(3822),p=r(94273),f=r(7417),m=r(77401),g=r(69230),h=r(83589),y=r(27758),v=r(12134),w=r(92920);const S=(0,r(25596).graphql)(" query Theme{theme{version values}}");var b=r(73527);const A=(e,t,r)=>{let{api:n,origin:a,widgetMessageBus:s}=r;const u=e.pipe((0,v.g)(w.tB),(0,l.n)((e=>n.graphApi(S).pipe((0,d.T)((e=>o(e.theme)))))),(0,p.W)((e=>(0,g.h)((0,h.of)(o({version:i.Error})),(0,y.$)(e))))),c=e.pipe((0,v.g)(b.eI),(0,f.M)((e=>{let{payload:{widgetId:r}}=e;const n=t.value.theme.values;if(!n)return;const o=`${a}/static/css/toolkit/theme.css`,i=n.externalFont;s.publish({target:r,message:(0,b.pw)({url:o,externalFontUrl:i})})})),(0,m.w)());return(0,g.h)(u,c)};function C(e){switch(e){case a.Large:return'font-size-large';case a.Small:return'font-size-small';case a.Micro:return'font-size-micro';case a.Heading1:return'font-size-h1';case a.Heading2:return'font-size-h2';case a.Heading3:return'font-size-h3';case a.Heading4:return'font-size-h4';case a.Heading5:return'font-size-h5';case a.DisplayHeading1:return'font-size-dh1';case a.DisplayHeading2:return'font-size-dh2';case a.DisplayHeading3:return'font-size-dh3';default:return'font-size-regular'}}function O(e){switch(e){case s.Solid:return'solid';case s.Dashed:return'dashed';case s.Dotted:return'dotted';case s.Double:return'double';default:return'none'}}var E=r(70358);function T(){return(0,E.useSelector)((e=>{var t;return null==(t=e.theme.values)?void 0:t.input_ShowLabelOutside}))}function N(){return{theme:c}}function P(){return A}},21843:(e,t,r)=>{"use strict";function n(e){const t='Tools';return{enableTool(e){const t=r();t[e]=!0,n(t)},disableTool(e){const t=r();delete t[e],n(t)},toolEnabled:e=>!!r()[e],anyToolEnabled(){const e=r();return!!Object.getOwnPropertyNames(e).length}};function r(){const r=e.getItem(t);return r||{}}function n(r){e.setItem(t,r)}}r.d(t,{A:()=>n})},29543:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});const n=" mutation DisableTool($name:ToolName!){tools{disable(name:$name)}}"},96575:(e,t,r)=>{"use strict";function n(e){return!!e&&/^(?:[a-z]+:)?\/\//i.test(e)}function o(e){return'/'===e[e.length-1]?e.substring(0,e.length-1):e}function i(e){return'/'===e[0]?e:'/'+e}r.d(t,{cO:()=>a,k9:()=>s,vh:()=>n,mA:()=>u,_b:()=>c,UW:()=>p,LH:()=>m});const a=function(e,t){if(null==e)return null;if(!e.length)return t?o(t)+'/':null;if(n(e))return e;const r=i(e);return t?(n(t)?o(t):i(o(t)))+r:r};function s(e){return e.replace(/^ +/,'').replace(/ /g,'%20')}function u(e){const t={},r=/([^?=&]+)=([^&]*)/g;let n;for(;null!==(n=r.exec(e));)t[n[1]]=decodeURIComponent(n[2]);return t}function c(e){const t=Object.keys(e).filter((t=>0===e[t]||e[t])).map((t=>`${t}=${e[t]}`)).join('&');return t?'?'+t:t}var l=r(79893),d=r.n(l);function p(e,t){if(void 0===t&&(t=50),!e)return e;const r='-'===e[0],n=new Array(t);let o=!0,i=0;for(const r of e)if(f(r)?(n[i++]=r,o=!1):o||(n[i++]='-',o=!0),i>=t)break;return i--,'-'===n[i]&&(n[i]=null),r&&n.unshift('-'),n.join('')}function f(e){return d().letter.test(e)||d().number.test(e)||'_'===e}function m(e){return e?`#${e.toLowerCase()}`:''}},55881:(e,t,r)=>{"use strict";r.d(t,{a:()=>n,b:()=>o});const n='USERCENTRICS/DISABLE',o=()=>({type:n})},21769:(e,t,r)=>{"use strict";r.d(t,{e0:()=>y,rV:()=>s,pL:()=>u,Lu:()=>h});var n=r(55881);function o(e,t){return void 0===e&&(e={}),t.type===n.a?{...e,disabled:!0}:e}var i=r(25498),a=r(70358);const s=()=>'undefined'!=typeof window?window.__ucCmp:void 0;function u(e,t){var r;const n=null==(r=e.cultureName)?void 0:r.toLowerCase().replace('-','_');return n&&t.includes(n)?n:e.name&&t.includes(e.name)?e.name:null}async function c(e){const t=(await async function(){const e=s();return null!=e&&e.getServicesBaseInfo?await e.getServicesBaseInfo():[]}()).find((t=>t.name===e));return null==t?void 0:t.consent.status}var l=r(12922),d=r(18913),p=r(38587),f=r.n(p),m=r(21010);const g=(0,l.withStyles)(f())((e=>{let{serviceName:t}=e;return(0,m.jsx)("div",{className:`${f().consentPlaceholder} consent-placeholder`,children:(0,m.jsx)(d.sD,{textKey:"NoConsentMessage",formatWith:[t]})})})),h=(e,t)=>(0,i.forwardRef)(((r,n)=>{const{isConsentProvided:o,isUsercentricsDisabled:s}=function(e){const[t,r]=(0,i.useState)(),n=(0,a.useSelector)((e=>!(e.settings.loaded&&e.settings.cookiebar&&'settingId'in e.settings.cookiebar)||e.usercentrics.disabled));return(0,i.useEffect)((()=>
1{if(n)return;const t=async()=>{const t=await c(e);r(t)};return t(),window.addEventListener('UC_UI_INITIALIZED',t),()=>{window.removeEventListener('UC_UI_INITIALIZED',t)}}),[n]),{isConsentProvided:t,isUsercentricsDisabled:n}}(t);return s||o?(0,m.jsx)(e,{...r,ref:n}):(0,m.jsx)(g,{serviceName:t})}));function y(){return{usercentrics:o}}},33943:(e,t,r)=>{"use strict";r.d(t,{B:()=>o,C:()=>n});const n="EVENT/VIEWER_CHANGED",o=()=>({type:n})},81995:(e,t,r)=>{"use strict";r.d(t,{Qt:()=>N,L9:()=>E,G1:()=>C,N1:()=>S,Zp:()=>u,WY:()=>c,mi:()=>P});var n=r(84313),o=r.n(n);const i=/(?:(?:https?:)?\/\/)?(?:[^.]+\.)?(\w+)\./i,a=/(?:(?:v|vi|be|videos|embed|shorts)\/(?!videoseries)|(?:v|ci)=)([\w-]{11})/i,s=/(vimeo(?:cdn|pro)?)\.com\/(?:(?:channels\/[\w]+|(?:(?:album\/\d+|groups\/[\w]+|staff\/frame)\/)?videos?)\/)?(\d+)(?:_(\d+)(?:x(\d+))?)?(\.\w+)?/i,u=e=>{if(!e)return null;const t=function(e){const t=e.match(i);if(!t)return null;switch(t[1].toLowerCase()){case'youtube':case'youtu':return'youtube';case'vimeo':case'vimeopro':case'vimeocdn':return'vimeo';default:return null}}(e);switch(t){case'youtube':const r=function(e){const t=e.match(a);return t?t[1]:null}(e);return r?{provider:t,videoId:r}:null;case'vimeo':const n=function(e){const t=e.match(s);return t?t[2]:null}(e);return n?{provider:t,videoId:n}:null;default:return null}};function c(e){'pauseVideo'in e?e.pauseVideo():e.pause()}var l=r(12922),d=r(25498),p=r(70358);var f=r(94708),m=r(16911),g=r(21769),h=r(21010);let y;const v=(0,d.forwardRef)(((e,t)=>{let{videoId:r,className:n="",host:i,events:a,onInit:s,pauseOffScreen:u,...c}=e;const l=(0,d.useRef)(null),p=(0,d.useRef)(!1);let f;return(0,d.useEffect)((()=>(l.current.id||(l.current.id=`yt_player_${(0,m.r)()}`),y||(y=new Promise((e=>{window.onYouTubeIframeAPIReady=()=>e(window.YT);const t=document.createElement('script');t.src="https://www.youtube.com/player_api",document.body.appendChild(t)}))),y.then((e=>{let{Player:t}=e;f=new t(l.current.id,{videoId:r,host:i,playerVars:{origin:window.location.origin,rel:0,showinfo:0,...c},events:a}),s&&s(f)})),()=>{var e;null==(e=f)||e.destroy()})),[r,a,c]),(0,d.useEffect)((()=>{var e;if(!u)return;const t=new IntersectionObserver((e=>{e[0].isIntersecting?(p.current&&f.playVideo(),p.current=!1):f&&f.getPlayerState&&1===f.getPlayerState()&&(p.current=!0,f.pauseVideo())}));return t.observe(null==(e=l.current)?void 0:e.parentElement),()=>t.disconnect()}),[u]),(0,h.jsx)("div",{className:`${o().frame} ${n}`,ref:t,children:(0,h.jsx)("div",{ref:l})})})),w=(0,g.Lu)(v,'YouTube Video'),S=(0,l.withStyles)(o())((0,d.memo)(w));let b;const A=(0,d.forwardRef)(((e,t)=>{let{videoId:r,className:n="",events:i,onInit:a,onError:s,pauseOffScreen:u,...c}=e;const l=(0,d.useRef)(null),p=(0,d.useRef)(!1);let f;return(0,d.useImperativeHandle)(t,(()=>l.current)),(0,d.useEffect)((()=>(l.current.id||(l.current.id=`vimeo_player_${(0,m.r)()}`),b||(b=new Promise((e=>{const t=document.createElement('script');t.src="https://player.vimeo.com/api/player.js",t.onload=()=>e(window.Vimeo),document.body.appendChild(t)}))),b.then((e=>{let{Player:t}=e;f=new t(l.current.id,{id:+r,...c}),f.ready().catch((e=>{s&&s(e)}));for(const e in i)f.on(e,i[e]);a&&a(f)})),()=>{var e;null==(e=f)||e.destroy()})),[r,i,c]),(0,d.useEffect)((()=>{if(!u)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting?(p.current&&f.play(),p.current=!1):f&&f.getPaused&&f.getPaused().then((e=>{e||(p.current=!0,f.pause())}))}));return e.observe(l.current),()=>e.disconnect()}),[u]),(0,h.jsx)("div",{className:`${o().frame} ${n}`,ref:l})})),C=(0,l.withStyles)(o())((0,d.memo)(A)),O=e=>{let{src:t,className:r="",mute:n,hideControls:i,autoplay:a,loop:s,privacyEnhancedMode:c,cultureName:l,pauseOffScreen:m,onReady:g,onPlay:y,onError:v}=e;const w=(0,d.useRef)(null),b=(0,p.useSelector)((e=>{var t;return e.visualDesigner.initialized&&e.settings.loaded&&'v2'===(null==(t=e.settings.visualDesigner)?void 0:t.version)})),A=a&&!b,O=u(t);return O?(0,h.jsx)("div",{className:`${o().wrapper} ${o().loading} ${r}`,ref:w,children:(0,h.jsxs)(f.ut,{width:"100%",height:"100%",children:['youtube'===O.provider&&(0,h.jsx)(S,{videoId:O.videoId,playlist:O.videoId,host:c?'https://www.youtube-nocookie.com':'https://www.youtube.com',autoplay:A?1:0,loop:s?1:0,controls:i?0:1,disablekb:i?0:1,fs:i?0:1,cc_load_policy:i?0:void 0,iv_load_policy:i?3:void 0,mute:n?1:0,hl:l,enablejsapi:1,playsinline:1,modestbranding:1,auto
1hide:1,events:{onReady:e=>{var t;A&&n||null==(t=w.current)||t.classList.add(o().ready);const r=null==e.target.getVideoData?void 0:e.target.getVideoData();r&&'auth'===r.errorCode&&e.target.stopVideo(),n&&e.target.mute(),A&&e.target.playVideo(),null==g||g()},onStateChange:e=>{var t;e.data===YT.PlayerState.PLAYING&&(null==(t=w.current)||t.classList.add(o().ready),null==y||y())},onError:e=>{var t;null==(t=w.current)||t.classList.add(o().ready),null==v||v(e)}},pauseOffScreen:m},O.videoId),'vimeo'===O.provider&&(0,h.jsx)(C,{videoId:O.videoId,autopause:!1,byline:!1,transparent:!1,autoplay:!!A,loop:!!s,controls:!i,muted:!!n,dnt:c,texttrack:l,playsinline:!0,title:!1,events:{play:()=>{var e;null==(e=w.current)||e.classList.add(o().ready),null==y||y()},loaded:()=>{var e;A&&n||null==(e=w.current)||e.classList.add(o().ready),null==g||g()},error:e=>{var t;null==(t=w.current)||t.classList.add(o().ready),null==v||v(e)}},onError:e=>{var t;null==(t=w.current)||t.classList.add(o().ready),null==v||v(e)},pauseOffScreen:m},O.videoId)]})}):null},E=(0,l.withStyles)(o())((0,d.memo)(O)),T=e=>{let{src:t,className:r="",mutedSound:n}=e;return(0,h.jsx)(E,{src:t,className:`${o().asBackground} ${r}`,mute:n,loop:!0,hideControls:!0,autoplay:!0})},N=(0,l.withStyles)(o())((0,d.memo)(T)),P=o().videoFrameAspectRatio},73527:(e,t,r)=>{"use strict";r.d(t,{$Y:()=>Oe,m4:()=>Ee,eI:()=>G,x0:()=>Se,eA:()=>Ae,ut:()=>Ce,A9:()=>T,Ng:()=>W,rX:()=>P,pw:()=>L,p7:()=>Pe,VD:()=>Re,AS:()=>Q,B5:()=>U,ZG:()=>ie,Q1:()=>M,jL:()=>Ne});var n=r(93206),o=r(95027),i=r(46656),a=r(83589),s=r(38458),u=r(89307),c=r(69230),l=r(7417),d=r(10437),p=r(77401),f=r(43144),m=r(32097),g=r(6776),h=r(2366),y=r(3822),v=r(21778),w=r(49854),S=r(17520);const b='SANA/';function A(e){return!!e&&('object'==typeof e&&('type'in e&&('string'==typeof e.type&&e.type.startsWith(b))))}const C=`${b}CONNECT`;const O=`${b}CONNECTED`;const E=`${b}CULTURE`;function T(e){return{type:E,payload:{culture:e}}}const N=`${b}USER_BEHAVIOR_TRACKING/CONFIG`;function P(e){return{type:N,payload:e}}const R=`${b}USER_ACCESS_TOKEN`;function D(e){return{type:R,payload:{userAccessToken:e}}}const I=`${b}SIZE/SET`;const k=`${b}TITLE/SET`;const x=`${b}THEME`,L=e=>({type:x,payload:{theme:e}}),$=`${b}MODAL/TOGGLE`;const _=`${b}BASKET/CHANGE_STARTED`;function M(e){return e.type===_}const B=`${b}BASKET/CHANGE_COMPLETED`;function U(e){return e.type===B&&('payload'in e&&('object'==typeof e.payload&&null!==e.payload&&'linesAmount'in e.payload))}const F=`${b}STOCK_LOCATION`;function W(e){return{type:F,payload:{location:e}}}var j=r(12134);const H='WIDGET/MOUNTED',V='WIDGET/UNMOUNTED',G='WIDGET/INITIALIZED',q='WIDGET/SHOW_MODAL',z='WIDGET/HIDE_MODAL',Q=()=>({type:z}),Z='WIDGETS/METADATA_LOADED';var K=r(60238),Y=r(25596);const J=(0,Y.graphql)(" mutation AcquireUserTokens($appUris:[Uri!]!){userTokens{acquire(appUris:$appUris){appUri refreshAfter rawData}}}"),X=(0,Y.graphql)(" query Widgets{widgets{id title url appUri}}");var ee=r(92920);const te=(e,t,r)=>{let{widgetMessageBus:b,api:A,tokenStorage:C,completePendingActions$:O}=r;const E={userTokens:{},mountedWidgets:{}},T=new n.B7,N=new n.B7,P=new n.B7,R=e.pipe((0,j.g)(H),(0,l.M)((e=>{let{payload:{widgetId:t,appUri:r}}=e;return E.mountedWidgets[t]={appUri:r}})),(0,K._8)(O),(0,f.ZZ)((e=>(0,i.H)(e).pipe((0,m.S)(20),(0,f.ZZ)((e=>{const t=[];for(const r of e){const{payload:{appUri:e}}=r;e in E.userTokens||t.includes(e)||t.push(e)}return(e=>e.length&&void 0!==C.getValue()?A.graphApi(J,{appUris:e}).pipe((0,l.M)((e=>{let{userTokens:{acquire:t}}=e;if(t.length){for(const{appUri:e,rawData:r,refreshAfter:n}of t)E.userTokens[e]={rawData:r,refreshAfter:new Date(n)},T.next({appUri:e,rawData:r});N.next()}})),(0,d.Q)(C.updates$),(0,p.w)()):o.w)(t)})))))),I=e.pipe((0,j.g)(V),(0,l.M)((e=>{let{payload:{widgetId:t}}=e;delete E.mountedWidgets[t]})),(0,p.w)()),k=e.pipe((0,j.g)(G),(0,f.ZZ)((t=>{var r;let{payload:{widgetId:n}}=t;const i=null==(r=E.mountedWidgets[n])?void 0:r.appUri,a=E.userTokens[i];return a&&a.refreshAfter.getTime()>Date.now()?(b.publish({target:n,message:D(a.rawData)}),o.w):T.pipe((0,g.p)((e=>e.appUri===i)),(0,h.$)(),(0,d.Q)(e.pipe((0,j.g)(V),(0,g.p)((e=>e.payload.widgetId===n)),(0,h.$)())),(0,l.M)((e=>b.publish({target:n,message:D(e.rawData)}))),(0,p.w)())}))),x=(e,t)=>e.length?A.graphApi(J,{appUris:e}).pipe((0,l.M)((e=>{let{userTokens:{acquire:r}}=e;if(!r.length)return;const n=Object.entries(E.mountedWidgets).reduce(((e,t)=>{let[r,{appUri:n}]=t;return n in e?e[n].add(r):e[n]=new Set([r]),e}),{});for(const{appUri:e,rawData:t,refreshAfter:i}of r){var o;null==(o=n[e])||o.forEach((e=>b.publish({target:e,message:D(t)}))),E.userTokens[e]={rawData:t,refreshAfter:new Date(i)},T.next({appUri:e,rawData:t})}t&&N.next()})),(0,y.T)((()=>null))):(0,a.of)(null),L=()=>(0,s.v)((()=>{const e=Object.values(E.userTokens);if(!e.length)return o.w;const t=new Date(Math.min(...e.map((e=>e.refreshAfter.getTime()))));return(0,u.O)(t).pipe((0,f.ZZ)((()=>{const e=Object.entries(E.userTokens).filter((e=>{let[,t]=e;return t.refreshAfter.getTime()<=Date.now()})).map((e=>{let[t]=e;return t}));if(!e.length)return(0,a.of)(null);const t=new Set(Object.values(E.mountedWidgets).map((e=>e.appUri))),r=[],n=[];for(const o of e)(t.has(o)?r:n).push(o);if(n.length)for(const e of n)delete E.userTokens[e];return x(r)})),(0,d.Q)(C.updates$))})),$=N.pipe((0,v.n)((()=>L().pipe((0,w.fT)((()=>L())),(0,d.Q)(P)))),(0,p.w)()),_=C.updates$.pipe((0,v.n)((()=>
1{if(E.userTokens={},0===Object.keys(E.mountedWidgets).length)return o.w;const e=[...new Set(Object.values(E.mountedWidgets).map((e=>e.appUri)))];return x(e,!0)})),(0,p.w)()),M=e.pipe((0,j.g)(ee.tB),(0,v.n)((()=>A.graphApi(X).pipe((0,y.T)((e=>{return t=e.widgets,{type:Z,payload:{metadata:t}};var t}))))));return(0,c.h)(R,I,k,$,_,M).pipe((0,S.j)((()=>{T.complete(),N.complete(),P.complete()})))};function re(e,t){switch(void 0===e&&(e={}),t.type){case q:return{...e,modalWidgetInfo:{url:t.payload.url,appUri:t.payload.appUri}};case z:return null==e.modalWidgetInfo?e:{...e,modalWidgetInfo:null};case Z:return{...e,metadata:t.payload.metadata};default:return e}}const ne=`${b}NAVIGATE`;function oe(e){return(null==e?void 0:e.type)===ne&&ae(e)&&function(e){if(t=e,'object'!=typeof t||null===t)return!1;var t;if('string'!=typeof e.name)return!1;switch(e.name){case'Home':case'Basket':case'Login':case'MyAccount':case'Checkout':case'ContactUs':case'Orders':case'Quotes':case'Invoices':case'ReturnOrders':case'CreditNotes':case'ReturnReceipts':case'Shipments':case'BackorderLines':case'OrderTemplates':case'SalesAgreements':case'Blog':case'StockAlerts':case'Represent':return!0;case'OrderTemplateDetails':case'ProductDetails':return'string'==typeof e.id;case'SalesAgreement':return'string'==typeof e.id&&(void 0===e.lineId||'string'==typeof e.lineId);case'Search':case'ContentSearch':return'string'==typeof e.keywords;case'DocumentDetails':return'string'==typeof e.id&&'string'==typeof e.documentType&&(void 0===e.originalOrderId||'string'==typeof e.originalOrderId);default:return!1}}(e.payload.route)}function ie(e){return function(e){return(null==e?void 0:e.type)===ne&&ae(e)&&'string'==typeof e.payload.url}(e)||oe(e)}function ae(e){return'payload'in e&&!!e.payload&&'object'==typeof e.payload}var se=r(12922),ue=r(35917),ce=r.n(ue),le=r(25498),de=r(70358);const pe=(0,le.createContext)(null);var fe=r(16911);class me{set onMessage(e){this._port.onmessage=e?t=>e(t.data):null}constructor(e){this.id=(0,fe.r)(),this._port=e}postMessage(e){this._port.postMessage(e)}}const ge=(e,t)=>{const r=(0,le.useContext)(pe);if(!r)throw new Error('useWidgetPort must be used within a WidgetConnector');const{connectMessageEvent$:n}=r,[o,i]=(0,le.useState)(null);return(0,le.useEffect)((()=>{const r=new URL(e).origin,o=n.subscribe((e=>{e.source===t.current.contentWindow&&e.origin===r&&i(new me(e.ports[0]))}));return()=>{i(null),o.unsubscribe()}}),[e,n]),o},he=()=>{const e=(0,le.useContext)(pe);if(!e)throw new Error('useWidgetConnect must be used within a WidgetConnector');return e.connect},ye=()=>{const e=(0,le.useRef)(void 0);return e.current||(e.current=(0,fe.r)()),e.current};var ve=r(21010);const we=e=>{let{url:t,appUri:r,isEditorMode:n}=e;const o=(0,le.useRef)(null),i=(0,le.useRef)(),a=(0,le.useRef)({}),s=(0,de.useDispatch)(),u=ye();(0,le.useEffect)((()=>(s(((e,t)=>({type:H,payload:{widgetId:e,appUri:t}}))(u,r)),()=>{s({type:V,payload:{widgetId:u}})})),[r]);const c=ge(t,o),l=(0,le.useRef)(),d=he();return(0,le.useEffect)((()=>{if(!c)return;const e=d(u,c,(e=>n=>{if(function(e){return e.type===k&&'payload'in e&&'object'==typeof e.payload&&null!==e.payload&&'title'in e.payload&&'string'==typeof e.payload.title}(n))o.current.title=i.current=n.payload.title;else{if(function(e){return!(e.type!==I||!('payload'in e)||'object'!=typeof e.payload||null===e.payload||'height'in e.payload&&'number'!=typeof e.payload.height||'width'in e.payload&&'number'!=typeof e.payload.width)}(n))return null!=n.payload.width&&(o.current.width=a.current.width=`${n.payload.width}`),void(null!=n.payload.height&&(o.current.height=a.current.height=`${n.payload.height}`));if(function(e){return e.type===$&&'payload'in e&&'object'==typeof e.payload&&null!==e.payload&&'expanded'in e.payload&&!0===e.payload.expanded&&(!('url'in e.payload)||'string'==typeof e.payload.url)}(n)){const e=new URL(n.payload.url),o=new URL(t);e.origin===o.origin&&s(((e,t)=>({type:q,payload:{url:e,appUri:t}}))(n.payload.url,r))}else!function(e){return e.type===$&&'payload'in e&&'object'==typeof e.payload&&null!==e.payload&&'expanded'in e.payload&&!1===e.payload.expanded}(n)?e(n):s(Q())}})),p=!l.current||l.current!==c;return l.current=c,p&&(e.postMessage(function(e){return{type:O,payload:{isEditorMode:e}}}(n)),s({type:G,payload:{widgetId:u}})),()=>e.close()}),[c,t,r]),(0,ve.jsx)("iframe",{width:a.current.width,height:a.current.height,ref:o,src:t,title:i.current,className:ce().widgetFrame,scrolling:"no"})},Se=(0,se.withStyles)(ce())((0,le.memo)(we));function be(e){return!(!A(e.data)||(t=e.data,t.type!==C))&&(e.ports&&0!==e.ports.length);var t}const Ae=e=>
1{let{children:t,inboundMessage$:r,outboundMessage$:o}=e;const i=(0,le.useRef)(void 0);i.current||(i.current=new n.B7),(0,le.useEffect)((()=>{if(window.addEventListener('message',e,!1),'copyWindowMessagesBeforeHydrating'in window){const t=[];window.copyWindowMessagesBeforeHydrating(t);for(const r of t)e(r)}return()=>window.removeEventListener('message',e,!1);function e(e){be(e)&&i.current.next(e)}}),[r]);const a=(0,le.useCallback)(((e,t,n)=>{const i=o.subscribe((r=>{let{target:n,source:o,message:i}=r;o===e||'*'!==n&&n!==e||t.postMessage(i)}));let a=!1;const s={close(){a||(a=!0,t.onMessage=null,i.unsubscribe())},postMessage(e){t.postMessage(e)}},u=t=>{r.next({source:e,message:t})};return t.onMessage=t=>{A(t)?n(u).call(s,t):o.next({target:'*',source:e,message:t})},s}),[r,o]),s=(0,le.useMemo)((()=>({connectMessageEvent$:i.current,connect:a})),[a]);return(0,ve.jsx)(pe.Provider,{value:s,children:t})};class Ce{get message$(){return this._inboundMessageObservable}constructor(e,t){this._inboundMessageObservable=e.asObservable(),this._outboundMessageSubject=t}publish(e){this._outboundMessageSubject.next(e)}}class Oe extends n.B7{}class Ee extends n.B7{}const Te=[],Ne=()=>(0,de.useSelector)((e=>e.widgets.metadata??Te));function Pe(){return te}function Re(){return{widgets:re}}},87480:(e,t,r)=>{var n=r(68723),o=r(95756)(n);o.push([e.id,".Usercentrics_consent-placeholder{background-color:var(--theme-page_BackgroundColor,#fff);border-radius:3px;padding:.75em 1.25em;text-align:center}",""]),o.locals={"consent-placeholder":"Usercentrics_consent-placeholder",consentPlaceholder:"Usercentrics_consent-placeholder"},e.exports=o},21738:(e,t,r)=>{var n=r(68723),o=r(95756)(n);o.push([e.id,".Video_wrapper{position:relative;width:100%}.Video_as-background{display:flex;height:100%;transform:scale(1.01)}.Video_as-background:after{content:\"\";display:block;height:100%;left:0;position:absolute;top:0;width:100%}.Video_frame{aspect-ratio:1/.5625;flex-shrink:0;min-width:100%;position:relative;width:inherit}.Video_frame>iframe{border:0;display:block;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%}.Video_loading{opacity:0;transition:opacity .5s}.Video_ready{opacity:1}",""]),o.locals={videoFrameAspectRatio:".5625",wrapper:"Video_wrapper","as-background":"Video_as-background",asBackground:"Video_as-background",frame:"Video_frame",loading:"Video_loading",ready:"Video_ready"},e.exports=o},96958:(e,t,r)=>{var n=r(68723),o=r(95756)(n);o.push([e.id,".Widgets_widget-frame{border:0;overflow:hidden;width:100%}",""]),o.locals={"widget-frame":"Widgets_widget-frame",widgetFrame:"Widgets_widget-frame"},e.exports=o}}]);
2//# sourceMappingURL=webstore-eecd4280.b02a7424.js.map

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.