1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[600],{81883:(e,t,r)=>{e.exports=r(14702).wrapCssModule(e.id,r(57680))},72648:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(65164),i=r(14702),s=r(81883),a=r.n(s),l=r(1229),o=r(52604),d=r(89335),c=r(51454),u=r(13111);const m=['BackToOverview','Aria_BackToOverview_Label'],p=(0,i.withStyles)(a())((e=>{let{node:t}=e;const{texts:[r,n],loaded:i}=(0,o.RG)(m);return null!=t&&t.link&&i?(0,u.jsxs)(l.rU,{...t.link,className:a().hyp,"aria-label":t.title?(0,d.R)(n,[t.title]):null,children:[(0,u.jsx)(c.Tt,{alt:t.title,className:"back-icon"}),r]}):null}));var v=r(90918),h=r(62140);const x=e=>{var t;let{isDesignerMode:r}=e;const n=(0,v.f)(!1),i=null==n?void 0:n[n.length-1];return(null==i||null==(t=i.link)||null==(t=t.to)?void 0:t.routeName)===h.x4.ProductList?(0,u.jsx)(p,{node:i}):r?(0,u.jsx)(p,{node:{link:{url:'#'}}}):null},f=(0,n.connect)((e=>({backTo:e.page.backTo})))((e=>{let{backTo:t,isDesignerMode:r}=e;return t?(0,u.jsx)(p,{node:{link:{to:t.routeData,url:t.url}}}):(0,u.jsx)(x,{isDesignerMode:r})}))},37889:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(86332),i=r(65164),s=r(68145),a=r(42426),l=r(13111);let o;const d=()=>{const e=(0,i.useSelector)((e=>{var t;return e.page.content.desktop??(null==(t=e.pagesDefaultContent.product)?void 0:t.desktop)}));return e?(0,s.I)(e):(o??(o=(0,a.ZP)({resolved:{},chunkName:()=>"pdp-data",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e(5820).then(r.bind(r,65394)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return r(t)},resolve(){return 65394}},{resolveComponent:e=>e.DefaultDesktopRows})),(0,l.jsx)(o,{}))},c=(0,n.memo)(d)},89824:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(86332),i=r(65164),s=r(68145),a=r(42426),l=r(13111);let o;const d=()=>{const e=(0,i.useSelector)((e=>{var t;return e.page.content.mobile??(null==(t=e.pagesDefaultContent.product)?void 0:t.mobile)}));return e?(0,s.I)(e):(o??(o=(0,a.ZP)({resolved:{},chunkName:()=>"pdp-data",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e(5820).then(r.bind(r,65394)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return r(t)},resolve(){return 65394}},{resolveComponent:e=>e.DefaultMobileRows})),(0,l.jsx)(o,{}))},c=(0,n.memo)(d)},17592:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>F});var n=r(43333),i=r(37889),s=r(78770),a=r(86332),l=r(23304),o=r(14649),d=r(39380),c=r(41231),u=r(13111);const m=e=>{let{children:t,media:r,title:n,variantId:i,variantComponents:a}=e,o=-1;r=p(r,i,a);const c=r.length;for(let e=0;e<c;e++){const t=r[e];t.type===s.QZ.VirtualView&&(t.title=n),t.type===s.QZ.Image&&(null==t.title&&(t.title=n),-1===o&&t.variantId&&(0,l.kv)(t.variantId,i)&&(o=e))}if(-1===o&&null!=a){const e=Object.values(a);e.length&&(o=r.findIndex((t=>t.type===s.QZ.Image&&e.some((e=>(0,l.kv)(e.id,t.variantId))))))}return(0,u.jsx)(d.V.Provider,{value:{media:r,index:o},children:t})},p=(e,t,r)=>{if(!t||!r)return e;const n=e.filter((e=>{var r;return e.type!==s.QZ.Image||(null==(r=e.variantId)?void 0:r.toLowerCase())===t.toLowerCase()}));return n.length?n:e.filter((e=>e.type!==s.QZ.Image||!e.variantId))},v=(0,o.g6)([c.Z],(e=>{let{product:{media:t,title:r},variantId:n,variantComponents:i}=e;return{media:t||[],title:r,variantId:n,variantComponents:i}}))((0,a.memo)(m));var h=r(89824),x=r(65164),f=r(15767),I=r(63084),g=r(63329),j=r(39310),y=r(21484),b=r(80660);const w=e=>{let{children:t}=e;const{modifiedDate:r,updatedById:n}=(0,x.useSelector)((e=>{let{basket:t}=e;return{modifiedDate:t.modifiedDate,updatedById:t.updated.updaterId}}),x.shallowEqual),[i]=(0,a.useState)(l.HI),[o,d]=(0,a.useState)(!1),{product:c,uomId:m,variantId:p,calculatedInfo:v}=(0,j.$)(),h=(0,a.useCallback)((e=>{N((t=>e===t.quantity?t:{...t,quantity:e}))}),[]),y=(0,a.useCallback)((e=>{k((t=>{var r;return(null==e?void 0:e.lineId)===(null==(r=t.selectedAgreementLine)?void 0:r.lineId)?t:{...t,selectedAgreementLine:e}}))}),[]),[w,N]=(0,a.useState)((()=>{const e=S(c,m);return{uomId:m,productId:c.id,quantity:{value:e.initial,isValid:!0},quantityModel:e,updateQuantity:h}})),[P,k]=(0,a.useState)((()=>({selectedAgreementLine:null,updateSelectedAgreementTerm:y}))),T=(0,x.useDispatch)(),C=(0,b.S)((0,a.useCallback)((e=>{if(e.preventDefault(),o)return;const{quantity:t}=w;if(function(e){return'loaded'in e&&!!e.loaded}(c)&&function(e){return e.isValid&&null!==e.value&&!isNaN(+e.value)}(t)){var r;d(!0);
1const e=c.productConfiguratorInfo?{isProductConfigurable:c.productConfiguratorInfo.isProductConfigurable,configuratorId:c.productConfiguratorInfo.configuratorId,modelId:c.productConfiguratorInfo.modelId}:void 0;T((0,s.dg)({product:{id:c.id,isOrderable:c.isOrderable,productConfiguratorInfo:e},variantId:p||void 0,uomId:m,quantity:t.value,calculatedInfo:{isOrderable:v.isOrderable},salesAgreementLineId:(null==(r=P.selectedAgreementLine)?void 0:r.lineId)||void 0,updatedById:i}))}}),[c,m,p,w,P,o])),O=(0,a.useMemo)((()=>({addToBasket:C})),[C]);return(0,a.useEffect)((()=>{n===i&&d(!1)}),[r,n]),(0,a.useEffect)((()=>{N((e=>{if(e.productId===c.id&&e.uomId===m)return e;const t=S(c,m);return{...e,uomId:m,productId:c.id,quantity:{value:t.initial,isValid:!0},quantityModel:t}}))}),[c.id,m]),(0,u.jsx)(I.Z.Provider,{value:O,children:(0,u.jsx)(f.Z.Provider,{value:w,children:(0,u.jsx)(g.Z.Provider,{value:P,children:t})})})};function S(e,t){const r=e.uoms&&e.uoms.find((e=>e.id===t));return(0,y.Xf)(r)}var N=r(32421),P=r(88623),k=r(13552),T=r(70517),C=r(35893),O=r(29907);function L(e,t){return{...e,...t}}function D(e){var t,r;let{product:n,pricesInclTax:i,lazyQueryString:s,variantProductNumber:a,isCalculatedPriceLoading:l}=e;const o='variantComponentGroups'in n?n.variantComponentGroups:[],d=n.uom&&n.uom.id,c=s.values.uomId,u=null==(t=n.uoms)?void 0:t.some((e=>e.id===c));let m=null;n.variants&&n.variants.length&&(m=(null==(r=n.variants.find((e=>e.productNo===a)))?void 0:r.id)||null);const p={product:n,pricesInclTax:i,calculatedInfo:{price:null,listPrice:null,pricePerBaseUom:null,inventory:null,priceExtraFields:null,uomId:null,secondaryInventory:null},variantId:m,uomId:u?c:d,isCalculatedPriceLoading:l,isVariantSelectionLoading:!1};if(B(n)){let e;n.variants&&n.variants.length?(m=m||_(o),p.variantId=m,e=n.variants.find((e=>e.id===m))):e=n,e&&(p.calculatedInfo=Z(e,d))}return p}function _(e){var t;if(!e||!e.length)return null;let r=[];const n=e=>(0,l.Mm)(e.variants,r);for(const t of e)if(r.length){const e=t.components.find(n);r=(0,l.wf)(e.variants,r)}else r=t.components[0].variants;return(null==(t=r)?void 0:t[0])||null}function Z(e,t){let{price:r,listPrice:n,pricePerBaseUom:i,inventory:s,isOrderable:a,priceExtraFields:l,secondaryInventory:o}=e;return{price:r,listPrice:n,pricePerBaseUom:i,inventory:s,isOrderable:a,priceExtraFields:l,uomId:t,secondaryInventory:o}}function B(e,t,r){return!(!('loaded'in e)||!e.loaded)&&(!t||!r||e.variants.some((e=>e.id===t&&'inventory'in e&&(e.inventory||0===e.inventory)&&(e.price||0===e.price))))}const V=e=>{let{children:t}=e;const r=(0,N.Nc)(!0),n=(0,y.GN)(),i=(0,O.ZV)(C.q2.ViewStock)[0],l=(0,a.useRef)(),o=(0,a.useRef)(),d=(0,a.useRef)(),m=(0,x.useDispatch)(),p=(0,x.useSelector)((e=>!!e.user.pricesInclTax)),v=(0,x.useSelector)((e=>e.settings.loaded&&e.settings.product.allowUOMSelection)),h=(0,x.useSelector)((e=>e.settings.loaded&&e.settings.lastViewedEnabled)),f=(0,x.useSelector)((e=>{var t,r;return null!=(t=e.routing.location)&&t.search?(0,T.mB)(null==(r=e.routing.location)?void 0:r.search):null})),{product:I,agreementId:g,preSelectedLine:j,isCalculatedPriceLoading:b}=(0,x.useSelector)((e=>{var t,r;const n=e.page;return{product:n.product,agreementId:null==(t=e.basket.salesAgreementInfo)?void 0:t.id,preSelectedLine:null==(r=n.salesAgreement)?void 0:r.preSelectedLine,isCalculatedPriceLoading:n.isCalculatedPriceLoading||!1}}),x.shallowEqual),w='loaded'in I&&!!I.loaded,S=(null==f?void 0:f.variantProductNumber)||null,[V,M]=(0,a.useReducer)(L,{product:I,pricesInclTax:p,lazyQueryString:r,variantProductNumber:S,isCalculatedPriceLoading:b},D),R=(0,a.useMemo)((()=>({...V,updateContext:M,updateUomId:e=>{l.current=e,M({uomId:e}),m((0,s.II)(I.id,e,V.variantId))}})),[V]),A='variantComponentGroups'in R.product?R.product.variantComponentGroups:null;return(0,a.useEffect)((()=>{var e;const t=n&&R.product.id===I.id?R.uomId:I.uom&&I.uom.id,r=!B(I,R.variantId,i);r&&m((0,s.II)(I.id,t,R.variantId));let a=R.variantId;S&&I&&I.variants&&I.variants.length&&(a=(null==(e=I.variants.find((e=>e.productNo===S)))?void 0:e.id)||R.variantId);const l={product:I,uomId:t,variantId:a,isVariantSelectionLoading:r&&R.isVariantSelectionLoading};I.id!==R.product.id&&(l.variantId=null,l.isVariantSelectionLoading=!1),M(l)}),[I,S,R.variantId,i]),(0,a.useEffect)((()=>{var e;if(B(I))if(R.variantId&&null!=(e=I.variants)&&e.length){var t;const e=I.variants.find((e=>e.id===R.variantId));M({calculatedInfo:Z(e,(null==(t=I.uom)?void 0:t.id)||null),isVariantSelectionLoading:!1})}else{var r;M({calculatedInfo:Z(I,(null==(r=I.uom)?void 0:r.id)||null),isVariantSelectionLoading:!1})}}),[I,R.variantId]),(0,a.useEffect)((()=>{var e,t,r;if(B(I)&&(!(n&&v&&j)||l.current||(null==j||null==(e=j.uom)?void 0:e.id)===(null==(t=I.uom)?void 0:t.id)))if(null!=(r=I.variants)&&r.length||o.current===I){if
1(R.variantId&&(d.current!==R.variantId||o.current!==I)){const e=I.variants.find((e=>e.id===R.variantId));m((0,k.wf)({product:{...I,price:e.price,listPrice:e.listPrice,variant:R.variantId,productGroup:void 0}})),o.current=I,d.current=R.variantId}}else m((0,k.wf)({product:{...I,productGroup:void 0}})),o.current=I}),[w,I.uom,R.variantId,j]),(0,a.useEffect)((()=>{var e;if(R.variantId||0===(null==(e=R.product.variants)?void 0:e.length))return;const t=_(A);M({variantId:t})}),[A]),(0,a.useEffect)((()=>{V.pricesInclTax!==p&&M({pricesInclTax:p})}),[p]),(0,a.useEffect)((()=>{M({isCalculatedPriceLoading:b,isVariantSelectionLoading:b&&V.isVariantSelectionLoading})}),[b,I]),(0,a.useEffect)((()=>{h&&I&&m((0,P.O)(I.id.toLowerCase()))}),[h&&I]),(0,a.useEffect)((()=>{w&&g&&m((0,s.IU)(g,I.id))}),[g,w,I.id]),(0,u.jsx)(c.Z.Provider,{value:R,children:t})};var M=r(92338),R=r(60455),A=r(69002);const $=e=>{let{children:t}=e;const{product:r,calculatedInfo:n}=(0,j.$)(),i=(0,x.useSelector)((e=>e.page.preset)),s=(0,a.useMemo)((()=>(0,R.e)(r,i)),[r,i]),l=(0,O.ih)([A.q2.OrderProducts]).abilities[0],o=(0,a.useMemo)((()=>(0,R.G)(r,n,l)),[r,n,l]),d=(0,a.useMemo)((()=>({preset:i,isMatrixMode:s,showOrderBox:o})),[i,s,o]);return(0,u.jsx)(M.Z.Provider,{value:d,children:t})},q=(0,a.memo)($);var U=r(65170),E=r(50822),G=r(78751);const K=e=>{var t;let{product:r,calculatedInfo:n}=e;const i=r&&r.uom&&r.uoms&&r.uoms.find((e=>e.id===r.uom.id)),s=i?(0,y.oR)(i.id):void 0,a=(0,E.S_)(s);if(!r||!r.loaded)return null;const l=(0,E.Hr)({...r,relatedProductGroups:null==(t=r.relatedProductGroups)?void 0:t.map((e=>({products:e.products}))),uom:i,calculatedInfo:n},a);return(0,u.jsx)(U.ql,{children:(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify(l)})})},W=(0,a.memo)(K,(e=>!0)),Q=(0,G.Z)((0,o.g6)([c.Z],(e=>{let{product:t,calculatedInfo:r}=e;return{product:t,calculatedInfo:r}}))(W)),F=()=>(0,u.jsxs)(V,{children:[(0,u.jsx)(q,{children:(0,u.jsx)(w,{children:(0,u.jsxs)(v,{children:[(0,u.jsx)(n.pU,{at:"xs",children:(0,u.jsx)(h.Z,{})}),(0,u.jsx)(n.pU,{greaterThanOrEqual:"sm",children:(0,u.jsx)(i.Z,{})})]})})}),(0,u.jsx)(Q,{})]})},69812:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(14702),i=r(63829),s=r.n(i),a=r(69002),l=r(71486),o=r(29907),d=r(27),c=r(48309),u=r(14649),m=r(9973),p=r.n(m),v=r(86332),h=r(90489),x=r(52604),f=r(22434),I=r(41231),g=r(63084),j=r(13111);const y=e=>{let{addToBasket:t,alignmentClassName:r,productTitle:n,variantTitle:i}=e;const[s]=(0,x.LF)(['Aria_AddToBasket_Label']).texts,a=(0,j.jsx)(d.V,{className:p().btnPlaceholder});return(0,j.jsx)(f.Y7,{textKey:"AddToBasket",onClick:t,size:"lg",theme:"action",className:`${p().addToCartBtn} ${r}`,placeholder:a,"aria-label":(0,h.qZ)(s,[`${n} ${i}`])})},b=(0,n.withStyles)(p())((0,u.g6)([g.Z,I.Z],((e,t)=>{let{addToBasket:r}=e,{product:n,variantId:i,variantComponents:s}=t;return{addToBasket:r,productTitle:n.title||n.id,variantTitle:w(i,s)||''}}))((0,v.memo)(y)));function w(e,t){if(!e)return null;let r=null;for(const n in t){const i=t[n];i.variants.includes(e)&&i.name&&(r=r?r+', '+i.name:i.name)}return r}var S=r(78770);var N=r(92338),P=r(60247);const k=e=>{let{product:t,uomId:r,isDesignerMode:n,alignmentClassName:i}=e;return(0,j.jsx)(P.r3,{product:t,uomId:r,isDesignerMode:n,alignmentClassName:i})},T=(0,v.memo)(k),C={LEFT:s().left,RIGHT:s().right,CENTER:s().center,JUSTIFY:s().justify},O=(0,n.withStyles)(s())((0,u.g6)([I.Z,N.Z],((e,t)=>{let{product:r,calculatedInfo:n,uomId:i}=e,{preset:s,showOrderBox:a}=t;return{product:r,calculatedInfo:n,uomId:i,preset:s,showOrderBox:a}}))((0,o.rp)((e=>{let{product:t,calculatedInfo:r,uomId:n,preset:i,showOrderBox:o,abilities:[u],sharedStyleProps:{horizontalAlignment:m},isDesignerMode:p}=e;const v=C[m]||'',h='isOrderable'in t&&t.isOrderable,x='productConfiguratorInfo'in t?t.productConfiguratorInfo:null;if((0,l.L)(u,{isOrderable:h,productConfiguratorInfo:x},r))return(0,j.jsx)(T,{product:t,uomId:n,alignmentClassName:v,isDesignerMode:p});const{showVariantsMatrix:f,showPlaceholder:I}=((e,t)=>e===S.Sk.Details||!t.hasVariants||!('isOrderable'in t)||!t.isOrderable||t.variantComponentGroups.length>2?{showVariantsMatrix:!1}:t.variants.some((e=>void 0!==e.isOrderable))?{showVariantsMatrix:t.variantComponentGroups&&t.variants.some((e=>e.isOrderable))}:{showVariantsMatrix:!0,showPlaceholder:!0})(i,t);if(f)return I?(0,j.jsx)(d.V,{className:s().btnPlaceholder}):(0,j.jsx)(c.D,{alignmentClassName:v});const g=((e,t,r,n)=>{const{isOrderable:i}=r;return e===a.Gb.Available&&t&&i&&n})(u,h,r,o);return g?(0,j.jsx)(b,{alignmentClassName:v}):null}),[a.q2.OrderProducts])))},79419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>P});var n=r(14702),i=r(9973),s=r.n(i),a=r(39172),l=r.n(a),o=r(86332),d=r(65164),c=r(14649),u=r(60074),m=r(41231),p=r(69002),v=r(29907),h=r(7006),x=r(51454),f=r(21484),I=r(13141),g=r(52604),j=r(92338),y=r(60455),b=r(13111);const w=e=>{let{product:t,uomId:r,variantId:n,isDesignerMode:i,showLoginFirstPopup:a,heartIconLayout:c,preset
1:m}=e;const p=(0,d.useDispatch)(),v=(0,d.useSelector)((e=>e.productOrderTemplates)),{opened:j,show:w,hide:S,toggle:N}=(0,u.dd)(),P=(0,o.useRef)(!1),k=(0,y.e)(t,m),[T,C]=(0,o.useState)(r),[O,L]=(0,o.useState)(n);(0,o.useEffect)((()=>C(r)),[r]),(0,o.useEffect)((()=>L(n)),[n]),(0,o.useEffect)((()=>{v&&P.current&&(P.current=!1,N())}),[v]);(0,o.useEffect)((()=>{a||!j||(null==v?void 0:v.variantId)===O&&(null==v?void 0:v.uomId)===T||p((0,h.U_)(t.id,O,T))}),[j,O,T]);const D=k?(0,b.jsx)(I.r,{product:t,uomId:T,updateUom:C,updateVariant:L}):null,_=(0,o.useCallback)((e=>{let{orderTemplate:r}=e;return(0,b.jsx)(f._x,{productId:t.id,orderTemplate:r,variantId:O,uomId:T})}),[t.id,O,T]);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("button",{className:`${l().link} ${s().addToOrderTemplateBtn}`,onClick:()=>{a||(null==v?void 0:v.variantId)===O&&(null==v?void 0:v.uomId)===r?w():(P.current=!0,p((0,h.U_)(t.id,O,r)))},type:"button",children:(0,b.jsx)(x.M5,{icon:x.h_,text:(0,b.jsx)(g.pI,{textKey:'ButtonText_AddToList'}),iconLayout:c})}),!i&&(0,b.jsx)(I.C,{opened:j,hide:S,showLoginFirstPopup:a,items:null==v?void 0:v.items,actionButton:_,children:D})]})},S=(0,n.withStyles)(s(),l())((0,c.g6)([m.Z,j.Z],((e,t)=>{let{product:r,uomId:n,variantId:i}=e,{preset:s}=t;return{product:r,uomId:n,variantId:i,preset:s}}))((0,o.memo)((e=>{var t;const{isLoading:r,abilities:[n,i]}=(0,v.ih)([p.q2.UseOrderTemplates,p.q2.OrderProducts]);return r||null!=(t=e.product.productConfiguratorInfo)&&t.isProductConfigurable||i!==p.Gb.Available||!e.isDesignerMode&&n===p.Gb.NotAvailable?null:(0,b.jsx)(w,{showLoginFirstPopup:n===p.Gb.Unauthorized,...e})}))));var N=r(39310);const P=e=>{let{isDesignerMode:t,model:{heartIconLayout:r}}=e;const{product:n}=(0,N.$)();return n.loaded?(0,b.jsx)(S,{isDesignerMode:t,heartIconLayout:r}):null}},41254:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(86332),i=r(40881),s=r(41231),a=r(14649),l=r(58086),o=r(81656);const d={canViewUom:!0,linesToDisplay:[{id:'0001',discountPercent:5,price:1e3,isMaxEnforced:!1,location:null,uom:{id:'BOX',description:'Box'},quantities:{remaining:null,commitment:null},amounts:{remaining:null}}]};var c=r(13111);const u=e=>{let{isProductOrderable:t,uomId:r,updateUomId:n,variantId:s,isDesignerMode:a,model:{showLabel:o},sharedStyleProps:{horizontalAlignment:u}}=e;return t?a?(0,c.jsx)(l.N,{agreementLines:d.linesToDisplay,selectedLineId:d.linesToDisplay[0].id,canViewUom:d.canViewUom,onChange:i.Z,disabled:!0,horizontalAlignment:u,showLabel:o}):(0,c.jsx)(l.j,{isProductOrderable:t,uomId:r,updateUomId:n,variantId:s,horizontalAlignment:u,showLabel:o}):null},m=(0,o.QT)((0,a.g6)([s.Z],(e=>{let{product:t,uomId:r,updateUomId:n,variantId:i}=e;return{isProductOrderable:t.loaded?t.isOrderable:null,uomId:r,updateUomId:n,variantId:i}}))((0,n.memo)(u)))},23118:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(27376),o=r(41231),d=r(14649),c=r(39172),u=r.n(c),m=r(70517),p=r(13111);var v=r(52604);var h=r(65164);const x=e=>{let{attachments:t,model:{showHeading:r,attachmentsPreviewEnabled:n}}=e;const i=(0,h.useSelector)((e=>e.app.offlineMode));if(!t||!t.length)return null;const a=t.slice().sort(((e,t)=>null===e.title||null===t.title?0:e.title.localeCompare(t.title))).map(((e,t)=>{var r;let a;return a=e.type===l.s.File&&i?function(e,t){return(0,p.jsxs)(p.Fragment,{children:[e.title,(0,p.jsx)("span",{className:s().unableLoadTitle,children:(0,p.jsx)(v.pI,{textKey:t?'UnablePreviewAttachmentInOfflineMode':'UnableLoadAttachmentInOfflineMode'})})]})}(e,n):e.url?function(e,t){const r=e.type===l.s.File||e.type===l.s.LocalFile,n=t||!r?'_blank':null;return(0,p.jsx)("a",{className:u().arrowed,rel:"noopener",href:(0,m.xT)(e.url),target:n,download:!t||null,children:e.title})}(e,n):e.title,(0,p.jsxs)("li",{children:[(0,p.jsx)("span",{className:s().name,children:a}),(0,p.jsx)("span",{className:s().value,children:null==(r=e.variant)?void 0:r.title})]},t)}));return(0,p.jsxs)("div",{className:s().blockAttachments,children:[r&&(0,p.jsx)("h2",{className:s().heading,children:(0,p.jsx)(v.pI,{textKey:"Product_Attachments"})}),(0,p.jsx)("ul",{className:`${s().attachmentsList} ${s().tableList}`,children:a})]})},f=(0,n.withStyles)(s())((0,d.g6)([o.Z],(e=>{let{product:{attachments:t}}=e;return{attachments:t}}))((0,a.memo)(x)))},12412:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(14702),i=r(9973),s=r.n(i),a=r(39310),l=r(81656),o=r(58948),d=r(27),c=r(13111);const u=(0,n.withStyles)(s())((0,l.Wc)((()=>{const{product:e,variantId:t}=(0,a.$)();if(!e.hasBomComponents)return null;const{bomComponents:r,variants:n}=e;return(0,c.jsx)(o.r,{variantId:t,bomComponents:r,variants:n,placeholder:(0,c.jsx)(d.V,{className:s().hypBomPlaceholder})},e.id)})))}
1,607:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(96106),i=r(24035),s=r(39310),a=r(13111);const l=e=>{let{id:t,isDesignerMode:r}=e;const{product:l}=(0,s.$)();return r?(0,a.jsx)(n.Z,{id:`chb_productCompare_${t}`,disabled:!0}):(0,a.jsx)(i.Qf,{id:t,product:l})}},35394:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(14702),i=r(9973),s=r.n(i),a=r(41231),l=r(52604),o=r(90489),d=r(86332),c=r(14649),u=r(30244),m=r(13111);const p=e=>{let{model:t,description:r,id:n,registerContentBlock:i}=e;const a=`description_${n}`;return(0,d.useEffect)((()=>i('ProductDescription',n,{descriptionId:a})),[n]),r?(0,m.jsxs)("div",{className:s().description,children:[t.showHeading&&(0,m.jsx)("h2",{children:(0,m.jsx)(l.pI,{textKey:"Description"})}),(0,m.jsx)("div",{id:a,className:"fr-view",children:(0,o.NN)(r)})]}):null},v=(0,n.withStyles)(s())((0,c.g6)([a.Z,u.K],((e,t)=>{let{product:{description:r}}=e,{register:n}=t;return{description:r,registerContentBlock:n}}))((0,d.memo)(p)))},40280:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(90489),o=r(52604),d=r(44487),c=r(50436),u=r(32421),m=r(81656),p=r(14649),v=r(41231),h=r(13111);const x=e=>{let{calculatedInfo:t}=e;const{price:r,listPrice:n}=t,i=(0,u.J3)(),{price:a,actionPrice:m,discountAmount:p,discountPercentage:v,discountPercentageMinimumDecimals:x}=(0,c.Z8)(r,n),f=i&&(0,d.My)(i),I=i&&m&&m!==a&&f(m),{texts:[g,j,y,b],loaded:w}=(0,o.LF)(['ActionPrice_Label','ActionPrice_Discount_Label','ActionPrice_DiscountAmount','ActionPrice_DiscountPercentage']);return w&&(I||p||v)?(0,h.jsxs)("div",{className:"price-block",role:"group",children:[!!m&&(0,h.jsxs)("div",{className:s().actionPrice,title:g,children:[(0,h.jsxs)("i",{className:"visually-hidden",children:[g," ",i.symbol+m]}),(0,h.jsx)("span",{"aria-hidden":!0,suppressHydrationWarning:!0,children:I})]}),!!p&&(0,h.jsxs)("div",{className:s().discountAmount,title:j,children:[(0,h.jsxs)("i",{className:"visually-hidden",children:[j," ",i.symbol+p]}),(0,h.jsx)("span",{"aria-hidden":!0,suppressHydrationWarning:!0,children:(0,l.qZ)(y,[f(p)])})]}),!!v&&(0,h.jsxs)("div",{className:s().discountPercentage,title:j,children:[(0,h.jsxs)("i",{className:"visually-hidden",children:[j," ",v+'%']}),(0,h.jsx)("span",{"aria-hidden":!0,children:(0,l.qZ)(b,[(0,d.JY)(v,i,!1,x)])})]})]}):null},f=(0,n.withStyles)(s())((0,m.QT)((0,m.Wc)((0,p.g6)([v.Z],(e=>{let{calculatedInfo:t}=e;return{calculatedInfo:t}}))((0,a.memo)(x)))))},61898:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(41231),o=r(14649),d=r(27),c=r(52604),u=r(13111);const m=e=>{let{productId:t}=e;const r=(0,u.jsx)(d.V,{className:s().namePlaceholder});return(0,u.jsx)("div",{className:s().itemNumberBody,children:(0,u.jsx)("span",{className:s().name,children:(0,u.jsx)(c.pI,{textKey:"General_Product_Id_Template",formatWith:[t],placeholder:r})})})},p=(0,n.withStyles)(s())((0,o.g6)([l.Z],(e=>{let{product:{id:t}}=e;return{productId:t}}))((0,a.memo)(m)))},44350:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(14702),i=r(9973),s=r.n(i),a=r(69002),l=r(92338),o=r(41231),d=r(14649),c=r(81656),u=r(52604),m=r(89335),p=r(29907),v=r(86332),h=r(21484),x=r(13111);const f=e=>{let{uoms:t,uomId:r}=e;const n=null==t?void 0:t.find((e=>e.id===r)),i=(null==n?void 0:n.description)??'',[a,l,o]=(0,u.RG)(['MinimumQuantityInfo','MaximumQuantityInfo','QuantityStepInfo']).texts,d=(0,v.useMemo)((()=>(0,h.Xf)(n)),[n]);return(0,x.jsxs)("div",{className:s().minMaxStepQuantityInfo,children:[a&&(0,x.jsx)("div",{children:(0,m.R)(a,[d.minimum,i])}),!(null==n||!n.maximumQuantity)&&l&&(0,x.jsx)("div",{children:(0,m.R)(l,[n.maximumQuantity,i])}),o&&(0,x.jsx)("div",{children:(0,m.R)(o,[d.step,i])})]})},I=(0,n.withStyles)(s())((0,c.QT)((0,c.Wc)((0,d.g6)([o.Z,l.Z],((e,t)=>{let{product:r,calculatedInfo:n,uomId:i}=e,{showOrderBox:s}=t;return{isOrderable:r.loaded&&r.isOrderable&&n.isOrderable,uoms:r.uoms,uomId:i,showOrderBox:s}}))((0,p.rp)((e=>{let{isOrderable:t,abilities:[r],showOrderBox:n,...i}=e;return r===a.Gb.Available&&t&&n?(0,x.jsx)(f,{...i}):null}),[a.q2.OrderProducts])))))},88756:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(52604),o=r(81656),d=r(14649),c=r(41231),u=r(13111);const m=e=>{let{product:t,calculatedInfo:r,isVariantSelectionLoading:n,isCalculatedPriceLoading:i}=e;if(n||i)return null;const a=t.loaded&&!!t.isOrderable,{isOrderable:o}=r;return!t.loaded||a&&!1!==o?null:(0,u.jsx)("div",{className:s().nonOrderableBody,
1children:(0,u.jsx)(l.Ho,{textKey:t.hasVariants?'ProductVariantCannotBeOrderedAtThisTime':'ProductCannotBeOrderedAtThisTime'})})},p=(0,n.withStyles)(s())((0,o.QT)((0,o.Wc)((0,o.l9)((0,d.g6)([c.Z],(e=>{let{product:t,calculatedInfo:r,isVariantSelectionLoading:n,isCalculatedPriceLoading:i}=e;return{product:t,calculatedInfo:r,isVariantSelectionLoading:n,isCalculatedPriceLoading:i}}))((0,a.memo)(m))))))},66455:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(41231),i=r(14649),s=r(86332),a=r(52604),l=r(13111);const o=e=>{var t;let{variants:r,variantId:n,isDesignerMode:i,isObsoleteItem:s}=e;return i||n&&r&&null!=(t=r.find((e=>e.id===n)))&&t.isObsolete||s?(0,l.jsx)(a.Ho,{textKey:"ObsoleteItemLabel"}):null},d=(0,i.g6)([n.Z],(e=>{let{product:{variants:t,isObsoleteItem:r},variantId:n}=e;return{variants:t,variantId:n,isObsoleteItem:r}}))((0,s.memo)(o))},66959:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(14649),o=r(41231),d=r(92338),c=r(21484),u=r(60455),m=r(81656),p=r(13111);const v=e=>{let{product:t,extraFields:r,preset:n}=e;return null==r||!r.length||(0,u.e)(t,n)?null:(0,p.jsx)("div",{className:s().priceExtraFields,children:r.map(((e,t)=>(0,p.jsx)(c.xl,{name:e.name,price:'price'in e?e.price:void 0,percentage:'percentage'in e?e.percentage:void 0},t)))})},h=(0,n.withStyles)(s())((0,m.CX)((0,l.g6)([o.Z,d.Z],((e,t)=>{let{product:r,calculatedInfo:n}=e,{preset:i}=t;return{product:r,extraFields:n.priceExtraFields,preset:i}}))((0,a.memo)(v))))},32572:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(86332),i=r(41231),s=r(81656),a=r(21484),l=r(13111);const o=()=>{var e;const{product:t,calculatedInfo:r}=(0,n.useContext)(i.Z);return r.pricePerBaseUom&&null!=(e=t.baseUom)&&e.description?(0,l.jsx)(a.fC,{pricePerBaseUom:r.pricePerBaseUom,baseUomDescription:t.baseUom.description}):null},d=(0,s.QT)((0,s.Wc)((0,n.memo)(o)))},76990:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(90489),o=r(52604),d=r(44487),c=r(50436),u=r(32421),m=r(81656),p=r(27),v=r(14649),h=r(41231),x=r(13111);const f=e=>{let{salesPrice:t,basePrice:r}=e;const n=(0,u.J3)(),i=(0,c.Z8)(t,r).price,m=n&&(0,d.My)(n),v=(0,a.useMemo)((()=>m?(0,l.NN)(function(e,t){return 0===t.decimalDigits?e:e.replace(/(\d+)([^\d]*)$/,'<sup>$1</sup>$2')}(m(i),n)):null),[n,i]),{texts:[h],loaded:f}=(0,o.LF)(['Price']);return f&&null!=v?(0,x.jsxs)("div",{className:"price-block",title:h,children:[(0,x.jsxs)("i",{className:"visually-hidden",children:[h," ",n.symbol+i]}),(0,x.jsx)("span",{className:`${s().actualPrice} actual-price`,"aria-hidden":!0,suppressHydrationWarning:!0,children:v})]}):(0,x.jsx)(p.V,{className:"price-block product-price-placeholder"})},I=e=>{let{calculatedInfo:t}=e;const{price:r,listPrice:n}=t;return null===r?null:(0,x.jsx)(f,{salesPrice:r,basePrice:n})},g=(0,n.withStyles)(s())((0,m.CX)((0,v.g6)([h.Z],(e=>{let{calculatedInfo:t}=e;return{calculatedInfo:t}}))((0,a.memo)(I))))},5630:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(14702),i=r(9973),s=r.n(i),a=r(39172),l=r.n(a),o=r(86332),d=r(41231),c=r(14649),u=r(1229),m=r(80660),p=r(62140),v=r(52604),h=r(90489),x=r(13111);const f=e=>{let{group:t,isDesignerMode:r}=e;const n=(0,m.U)(),[i]=(0,v.LF)(['Aria_ViewVariants_Label']).texts;return t?(0,x.jsx)(u.rU,{url:t.url,to:n||r?null:p.oN.forProductGroup(t.id),className:s().viewVariantsLink+' '+l().arrowed,"aria-label":(0,h.qZ)(i,[t.title||t.id]),children:(0,x.jsx)(v.pI,{textKey:"ViewVariants"})}):null},I=(0,n.withStyles)(s(),l())((0,c.g6)([d.Z],(e=>{let{product:t}=e;return{group:t.productGroup}}))((0,o.memo)(f)))},2487:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(86332),i=r(65164),s=r(41231),a=r(14649),l=r(21484),o=r(15767),d=r(63084),c=r(44487),u=r(32421),m=r(81656),p=r(13111);const v=e=>{let{id:t,product:r,calculatedInfo:s,uomId:a,quantityModel:o,updateQuantity:d,quantityValue:m,addToBasket:v}=e;const h=(0,u.iz)(),x=(0,l.GN)(),f=(0,i.useSelector)((e=>e.settings.product.allowUOMSelection)),I=(0,n.useCallback)((e=>{'Enter'===e.key&&v(e)}),[v]),g=!!r.loaded&&r.isOrderable,{isOrderable:j}=s,y=x&&a&&r.uoms&&(j||f&&r.uoms.length>1);if(!o||!j&&!y)return null;if(r.loaded&&!r.isOrderable)return null;const b=j&&g,w=(0,c.Ei)(h);return(0,p.jsx)(l.$o,{id:`quantity_Input_${t}`,quantity:o,value:m,onChange:d,onKeyDown:I,separator:w,disabled:!b})},h=(0,m.QT)((0,m.Wc)((0,m.l9)((0,a.g6)([s.Z,o.Z,d.Z],((e,t,r)=>{let{product:n,calculatedInfo:i,uomId:s}=e,{quantityModel:a,updateQuantity:l,quantity:o}=t,{addToBasket:d}=r;return{product:n,calculatedInfo:i,uomId:s,quantityModel:a,updateQuantity:l,quantityValue:o.value,addToBasket:d}}))((0,n.memo)(v)))))},20956:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(86332),i=r(8437),s=r(42426),a=r(65164),l=r(14649),o=r(41231),d=r(13111);const c=e=>{let{id:t,isDesignerMode:n,relatedProductGroups:l}=e;const o=(0,a.useSelector)((e=>{let{settings:t}=e;return t.loaded?t.product.noImage.medium:null}));if(!l||!l.length)return null;if(n){const e=(0,s.ZP)({resolved:{},chunkName:()=>"vd",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>Promise.all([r.e(9055),r.e(1872),r.e(5098),r.e(9973),r.e(2454),r.e(406),r.e(3572),r.e(4711),r.e(9380),r.e(5109),r.e(7494),r.e(8787),r.e(5243),r.e(9593),r.e(5088),r.e(7637),r.e(2281),r.e(9638)]).then(r.bind(r,95358)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return r(t)},resolve(){return 95358}});return(0,d.jsx)(e,{id:t,relatedProductGroups:l,noImageUrl:o})}return(0,d.jsx)(i.Z,{id:t,relatedProductGroups:l,noImageUrl:o})},u=(0,l.g6)([o.Z],(e=>{let{product:t}=e;return{relatedProductGroups:t.relatedProductGroups}}))((0,n.memo)(c))},8437:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(86332),i=r(58985),s=r(49030),a=r(13552),l=r(65164),o=r(9663),d=r(13111);const c=e=>{let{id:t,relatedProductGroups:r,noImageUrl:c}=e;const u=(0,l.useDispatch)();return(0,n.useEffect)((()=>{const e=r.flatMap((e=>e.products));e&&e.length&&u((0,a._m)({products:r.flatMap((e=>e.products)),source:a.oG.RelatedProducts}))}),[r]),(0,d.jsx)(o.Z,{relatedProductGroups:r,id:t,children:(e,t)=>(0,d.jsx)(s.V8,{data:{product:e,trackingSource:a.oG.RelatedProducts},children:t=>(0,d.jsx)(i.Z,{handleClick:t,product:e,noImageUrl:c})},t)})},u=(0,n.memo)(c)},15004:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.Z});var n=r(20956)},5926:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(86332),i=r(90489),s=r(14649),a=r(41231),l=r(92338),o=r(60455),d=r(13111);const c=e=>
1{let{isOrderable:t,variantId:r,product:n,preset:s}=e;if(!('retailOffers'in n)||!t)return null;const{retailOffers:a}=n;if(!a||!a.length)return null;const l=(0,o.e)(n,s);return(0,d.jsx)("div",{className:"retail-offers",children:a.map(((e,t)=>{let{description:n,variantId:s}=e;return!l&&s&&s!==r?null:(0,d.jsx)("div",{children:(0,i.Tp)(n)},t)}))})},u=(0,s.g6)([a.Z,l.Z],((e,t)=>{let{product:r,calculatedInfo:n,variantId:i}=e,{preset:s}=t;return{isOrderable:n&&n.isOrderable,product:r,variantId:i,preset:s}}))((0,n.memo)(c))},63835:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(14702),i=r(9973),s=r.n(i),a=r(39172),l=r.n(a),o=r(86332),d=r(78715),c=r(52604),u=r(27),m=r(8526),p=r(30244),v=r(41231),h=r(14649),x=r(13111);const f=e=>{let{isDesignerMode:t,reviews:r,navigateTo:n,productReviewsBlock:i}=e;return(0,x.jsxs)("div",{className:s().total,children:[(0,x.jsx)(d.StarsRating,{value:r.avg}),i&&(r.total?(0,x.jsx)("a",{href:`#${i.reviewsOverviewId}`,onClick:e=>{e.preventDefault(),!t&&n(`#${i.reviewsOverviewId}`,{extraTopOffset:60})},className:`${l().link} ${s().reviewsSumBtn}`,children:(0,x.jsx)(c.pI,{textKey:"ReviewsReadAmountReviewsLinkText",formatWith:[r.total]})}):(0,x.jsx)("span",{className:s().reviewsSumBtn,children:(0,x.jsx)(c.pI,{textKey:"Product_ReviewsZeroReviewsLabel",placeholder:(0,x.jsx)(u.V,{className:s().reviewsSumLabelPlaceholder})})})),i&&(0,x.jsx)("a",{href:`#${i.writeReviewFormId}`,onClick:e=>{e.preventDefault(),!t&&n(`#${i.writeReviewFormId}`,{extraTopOffset:60,time:400})},className:`${l().link} ${s().reviewsSumBtn}`,children:(0,x.jsx)(c.pI,{textKey:"ButtonText_WriteReview",placeholder:(0,x.jsx)(u.V,{className:`${s().reviewsSumBtnPlaceholder} ${s().reviewsSumBtn}`})})})]})},I=(0,n.withStyles)(s(),l())((0,h.g6)([p.K,m.t,v.Z],((e,t,r)=>{let{getFirst:n}=e,{navigateTo:i}=t,{product:{reviews:s}}=r;return{navigateTo:i,reviews:s,productReviewsBlock:n('ProductReviews')}}))((0,o.memo)((e=>e.reviews?(0,x.jsx)(f,{...e,reviews:e.reviews}):null))))},36117:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(65164),o=r(41231),d=r(78770),c=r(52604),u=r(8526),m=r(30244),p=r(14649),v=r(22434),h=r(78715),x=r(90489),f=r(44487),I=r(32421),g=r(13111);const j=e=>{let{id:t,total:r,reviews:n,onWriteReview:i,productId:o,isDesignerMode:u}=e;const[m,p]=(0,a.useState)(!1),j=n.length<r?Math.floor(n.length/5):null,y=(0,I.iz)(),b=(0,l.useDispatch)();return(0,a.useEffect)((()=>{m&&p(!1)}),[n]),(0,g.jsx)("div",{id:t,children:0===r?(0,g.jsxs)("section",{className:s().cnt,children:[(0,g.jsx)("header",{children:(0,g.jsx)(v.Y7,{className:s().btnAdd,textKey:"WriteReview",onClick:i})}),(0,g.jsx)("p",{className:`msg-block ${s().noReviews}`,children:(0,g.jsx)(c.pI,{textKey:"Product_ReviewsNoReviewsYetLabel"})})]}):(0,g.jsxs)("section",{className:s().cnt,children:[(0,g.jsx)("header",{className:s().header,children:(0,g.jsx)(v.Y7,{size:"sm",className:s().btnAdd,textKey:"WriteReview",onClick:i})}),(0,g.jsx)("ul",{className:"clearfix",children:n.map(((e,t)=>(0,g.jsxs)("li",{"aria-label":e.title+' - '+e.rating,children:[(0,g.jsxs)("div",{className:s().reviewHeading,children:[(0,g.jsx)("span",{className:s().rating,children:(0,g.jsx)(h.StarsRating,{value:e.rating})}),(0,g.jsx)("h3",{className:`h4 ${s().title}`,children:(0,x.qZ)(e.title)})]}),(0,g.jsx)("time",{dateTime:e.date,children:(0,f.v0)(e.date,y)}),(0,g.jsx)("div",{className:s().reviewDescription,children:(0,x.qZ)(e.description)})]},t)))}),j&&(0,g.jsx)("footer",{children:(0,g.jsx)(v.Y7,{textKey:"ShowNextNReviews",size:"lg","aria-disabled":m||null,icon:m?(0,g.jsx)(v.Ho,{}):(0,g.jsx)(v.ve,{}),formatWith:[5],onClick:u||m?null:()=>{b((0,d.$m)(o,j)),p(!0)}})})]})})},y=(0,n.withStyles)(s())((0,a.memo)(j));var b=r(60869),w=r(5468),S=r(29828),N=r(13755),P=r(27);const k=(0,n.withStyles)(s())((()=>{const{texts:[e],loaded:t}=(0,c.RG)(['WriteReview_MessageNote']);return t?(0,g.jsxs)("div",{className:s().descriptionMessage,children:[(0,g.jsx)("span",{className:s().icon,children:(0,g.jsx)(N.Z,{"aria-hidden":!0})}),e]}):(0,g.jsx)(P.V,{})}));var T=r(80660);const C=e=>e.stopPropagation(),O=e=>{let{id:t,onSubmit:r,savedDate:n,onBackToOverview:i}=e;const[o,d,u,m,p]=(0,c.RG)(['WriteReview_RatingLabel','WriteReview_TitleLabel','WriteReview_MessageLabel','YourEmail','Aria_WriteReview_Submit_Label']).texts,h={email:(0,l.useSelector)((e=>e.user.isAuthenticated?e.user.email:null))??'',description:'',title:''},x=(0,a.useCallback)((e=>r({rating:e.rating,...e})),[r]),f=(0,b.Rb)(x,w.GY.Review,[]);return(0,a.useEffect)((()=>{n&&Date.now()<n+500&&S.V.success((0,g.jsx)(c.Ho,{textKey:"WriteReview_ReviewSendSuccessfully",disableInsiteEditor:!0}),{})}),[n]),(0,g.jsxs)("div",{className:s().write,id:t,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(v.zx,{onClick:i,size:"sm",className:s().reviewsBtn,children:(0,g.jsx)(c.pI,{textKey:"ReviewsReadAmountReviewsLinkText",formatWith:['']})}),(0,g.jsx)("h3",{className:s().writeHeading,children:(0,g.jsx)(c.pI,{textKey:"WriteReview_Title"})})]}),(0,g.jsx)("span",{children:(0,g.jsx)(c.pI,{textKey:"WriteReview_Description"})}),(0,g.jsxs)(b.pu,{name:"Review",onSubmit:(0,T.S)(f.onSubmit),initialValues:h,shouldReset:n,tabIndex:-1,onKeyDown:C,className:s().form,children:[(0,g.jsx)(b.OF,{fieldName:"rating",fieldTitle:o,fieldComponent:b.g0,required:!0,validation:{required:!0}}),(0,g.jsx)(b.cw,{fieldName:"title",fieldTitle:d,fieldComponent:b.Nx,maxLength:100,required:!0,validation:{required:!0,readableName:!0}}),(0,g.jsx)(b.cw,{fieldName:"description",fieldTitle:u,fieldComponent:b.N7,descriptionComponent:k,maxLength:2e3,required:!0,validation:{required:!0}}),(0,g.jsx)(b.cw,{fieldName:"email",fieldTitle:m,fieldComponent:b.D$,maxLength:80,required:!0,validation:{required:!0}}),(0,g.jsx)(b.RD,{ref:f.captchaRef,captchaId:w.GY.Review}),(0,g.jsx)(b.pu.SubmitRow,{className:s().submitBtn,"aria-label":p})]})]})},L=(0,n.withStyles)(s())((0,a.memo)(O)),D=e=>{let{id:t,isDesignerMode:r,model:{showHeading:n},registerContentBlock:i,hash:o,navigateTo:u,productId:m,reviews:p}=e;const v=(0,l.useDispatch)(),h=`reviews_add_${t}`,x=`reviews_${t}`;(0,a.useEffect)((()=>i('ProductReviews',t,{writeReviewFormId:h,reviewsOverviewId:x})),[t]);const f=(0,a.useCallback)((()=>{!r&&u(`#${h}`,{extraTopOffset:30})}),[u,r,h]),I=(0,a.useCallback)((()=>{u(`#${x}`,{extraTopOffset:60})}),[u,x]),j=(0,a.useCallback)((e=>{v((0,d.se)({productId:m,...e}))}),[m]),b=!r&&o===`#${h}`;return(0,g.jsxs)(g.Fragment,{children:[n&&(0,g.jsx)("h2",{className:s().heading,children:(0,g.jsx)(c.pI,{textKey:"Product_ReviewsAmountHeader",formatWith:[p.total]})}),b?(0,g.jsx)(L,{id:h,onSubmit:j,savedDate:p.savedDate,onBackToOverview:I}):(0,g.jsx)(y,{id:x,total:p.total,reviews:p.list,productId:m,isDesignerMode:r,onWriteReview:f})]})},_=(0,n.withStyles)(s())((0,p.g6)([m.K,u.t,o.Z],((e,t,r)=>{let{register:n}=e,{product:{id:i,reviews:s}}=r;return{registerContentBlock:n,hash:t.hash,navigateTo:t.navigateTo,productId:i,reviews:s}}))((0,a.memo)((e=>{let{reviews:t,...r}=e;return t?(0,g.jsx)(D,{reviews:t,...r}):null}))))},97853:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(65164),o=r(69002),d=r(52604),c=r(27),u=r(90489),m=r(81656),p=r(14649),v=r(29907),h=r(41231),x=r(13111);const f=e=>{let{product:t,calculatedInfo:r}=e;const n=(0,l.useSelector)((e=>e.user.customerType)),i=(0,l.useSelector)((e=>e.settings.loaded?e.settings.product.checkStock:void 0)),[a,m]=(0,v.ZV)(o.q2.OrderProducts,o.q2.ViewSecondaryStock);
1if(null===r.secondaryInventory||null===t.stockLevels||!m)return null;const{outOfStock:p,lowStock:h,maxStockNumber:f}=t.stockLevels,{isOrderable:I}=t,{isOrderable:g}=r;let j='';const y=[],b=(0,x.jsx)(c.V,{className:s().stockValuePlaceholder});if(void 0===r.secondaryInventory)return b;{let e='SecondaryStockText_';a&&r.secondaryInventory<=p&&i&&I&&g?(e+='PreOrder',j=s().preOrder):r.secondaryInventory<=p?(e+='OutOfStock',j=s().outStock):r.secondaryInventory>h?(e+='InStock',j=s().inStock):(e+='LowStock',j=s().lowStock),n&&n!==o.d2.B2C?n===o.d2.B2B?e+='_B2B':e+='_SalesAgent':e+='_B2C',y.push(e),f&&f<r.secondaryInventory&&y.push('SecondaryStockText_MaxStockNumber')}return(0,x.jsx)(d.e5,{options:y,placeholder:b,children:e=>{let[t,n]=e;return t&&(0,x.jsx)("span",{className:`${s().stockValue} ${j}`,children:(0,u.Tp)(t.replace('[STOCKAMOUNT]',n||r.secondaryInventory.toString()),[f])})}})},I=(0,n.withStyles)(s())((0,m.QT)((0,m.Wc)((0,p.g6)([h.Z],(e=>{let{product:t,calculatedInfo:r}=e;return{product:t,calculatedInfo:r}}))((0,a.memo)(f)))))},1722:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(14702),i=r(9973),s=r.n(i),a=r(39172),l=r.n(a),o=r(86332),d=r(90489),c=r(52604),u=r(8526),m=r(14649),p=r(41231),v=r(27),h=r(30244),x=r(13111);const f=e=>{let{navigateTo:t,description:r,productDescriptionBlock:n,isDesignerMode:i}=e;if(!r)return(0,x.jsx)(c.pI,{textKey:"Product_NoDescriptionMessage",placeholder:(0,x.jsx)(v.V,{className:s().noDescriptionPlaceholder})});const a=(0,d.qZ)(r).substring(0,300),o=n&&a!==r.trim()&&(e=>{e.preventDefault(),!i&&t(`#${n.descriptionId}`,{extraTopOffset:60,time:400})});return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:s().shortenDescription,children:a}),o&&(0,x.jsx)("div",{className:s().shortenDescriptionControls,children:(0,x.jsx)(c.e5,{options:['ReadFullDescription'],children:e=>{let[t]=e;return null==t?(0,x.jsx)(v.V,{className:`${s().fullDescriptionPlaceholder} ${s().link}`}):(0,x.jsx)("a",{href:`#${n.descriptionId}`,onClick:o,className:`${s().link} ${l().link} ${l().arrowed}`,children:(0,d.qZ)(t)})}})})]})},I=(0,n.withStyles)(s(),l())((0,m.g6)([u.t,p.Z,h.K],((e,t,r)=>{let{navigateTo:n}=e,{product:{description:i}}=t,{getFirst:s}=r;return{navigateTo:n,description:i,productDescriptionBlock:s('ProductDescription')}}))((0,o.memo)(f)))},33212:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(14649),o=r(90489),d=r(52604),c=r(74483),u=r(41231),m=r(13111);const p=e=>{let{specifications:t,model:{showHeading:r}}=e;const n=(0,c.Z)(t);if(null==t||!t.length)return null;const i=[];for(let e=0;e<n.length;){const t=n[e].key,r=n[e].name,l=[];for(;e<n.length;e++){const r=n[e];if(r.key!==t)break;l.push((0,m.jsx)("span",{children:(0,o.Tp)(r.value)},e))}i.push((0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("dt",{className:s().name,children:r}),(0,m.jsx)("dd",{className:s().value,children:l})]},e))}return(0,m.jsxs)("div",{className:s().blockSpecs,children:[r&&(0,m.jsx)("h2",{className:s().heading,children:(0,m.jsx)(d.pI,{textKey:"Product_TabSpecifications"})}),(0,m.jsx)("dl",{className:s().tableList,children:i})]})},v=(0,n.withStyles)(s())((0,l.g6)([u.Z],(e=>{let{product:{specifications:t}}=e;return{specifications:t}}))((0,a.memo)(p)))},91202:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(65164),o=r(69002),d=r(52604),c=r(27),u=r(90489),m=r(81656),p=r(14649),v=r(29907),h=r(41231),x=r(13111);const f=e=>{let{product:t,calculatedInfo:r}=e;const n=(0,l.useSelector)((e=>e.user.customerType)),i=(0,l.useSelector)((e=>e.settings.loaded?e.settings.product.checkStock:void 0)),a=(0,v.ZV)(o.q2.OrderProducts)[0];if(null===r.inventory||null===t.stockLevels)return null;const{outOfStock:m,lowStock:p,maxStockNumber:h}=t.stockLevels,{isOrderable:f}=t,{isOrderable:I}=r;let g='';const j=[],y=(0,x.jsx)(c.V,{className:s().stockValuePlaceholder});if(void 0===r.inventory)return y;{let e='StockText_';a&&r.inventory<=m&&i&&f&&I?(e+='PreOrder',g=s().preOrder):r.inventory<=m?(e+='OutOfStock',g=s().outStock):r.inventory>p?(e+='InStock',g=s().inStock):(e+='LowStock',g=s().lowStock),n&&n!==o.d2.B2C?n===o.d2.B2B?e+='_B2B':e+='_SalesAgent':e+='_B2C',j.push(e),h&&h<r.inventory&&j.push('StockText_MaxStockNumber')}return(0,x.jsx)(d.e5,{options:j,placeholder:y,children:e=>{let[t,n]=e;return t&&(0,x.jsx)("span",{className:`${s().stockValue} ${g}`,children:(0,u.Tp)(t.replace('[STOCKAMOUNT]',n||r.inventory.toString()),[h])})}})},I=(0,n.withStyles)(s())((0,m.QT)((0,m.Wc)((0,p.g6)([h.Z],(e=>{let{product:t,calculatedInfo:r}=e;return{product:t,calculatedInfo:r}}))((0,a.memo)(f)))))},57884:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(52604),o=r(21484),d=r(27),c=r(14649),u=r(41231),m=r(81656),p=r(13111);const v=e=>{let{product:t,calculatedInfo:r,pricesInclTax:n}=e;return null===r.price||void 0===r.price?null:(0,p.jsxs)("div",{className:s().afterPrice,children:[r.uomId&&(0,p.jsx)(o.Yg,{uomId:r.uomId,uoms:t.uoms,hasPricingUom:t.hasPricingUom}),(0,p.jsx)("div",{children:null!=n&&(0,p.jsx)(l.pI,{textKey:n?'InclTaxSuffix':'ExclTaxSuffix',placeholder:(0,p.jsx)(d.V,{className:s().taxSuffixPlaceholder})})})]})},h=(0,n.withStyles)(s())((0,m.QT)((0,m.Wc)((0,c.g6)([u.Z],(e=>{let{product:t,calculatedInfo:r,pricesInclTax:n}=e;return{product:t,calculatedInfo:r,pricesInclTax:n}}))((0,a.memo)(v)))))},54483:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(86332),i=r(41231),s=r(81656),a=r(21484),l=r(13111);const o=e=>{var t,r,s,o;let{isDesignerMode:d}=e;const{product:c}=(0,n.useContext)(i.Z);if(d)return(0,l.jsx)(a.bE,{uomDescription:"Box",uomBaseQuantity:5,baseUomDescription:"Piece"});const u=null==(t=c.uom)?void 0:t.id;if(!u||(null==(r=c.baseUom)?void 0:r.id)===u||null==(s=c.baseUom)||!s.description)return null;const m=u?null==(o=c.uoms)?void 0:o.find((e=>e.id===u)):null;return null!=m&&m.baseQuantity&&m.description?(0,l.jsx)(a.bE,{uomDescription:m.description,uomBaseQuantity:m.baseQuantity,baseUomDescription:c.baseUom.description}):null},d=(0,s.QT)((0,s.Wc)((0,n.memo)(o)))},62994:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(65164),o=r(69002),d=r(23304),c=r(14649),u=r(90489),m=r(52604),p=r(21598),v=r(27),h=r(21484),x=r(29907),f=r(81656),I=r(41231),g=r(91510),j=r(13111);const y=e=>{var t,r;let{product:n,calculatedInfo:i,selectedUomId:a,onUomChange:c,isDesignerMode:x,abilities:[f],id:I}=e;const y=(0,l.useSelector)((e=>{let{settings:t}=e;return t.loaded?t.product.allowUOMSelection:null})),b=(0,l.useDispatch)(),w=(0,h.GN)()&&(null==(t=n.uom)?void 0:t.id),S=y&&((null==(r=n.uoms)?void 0:r.length)??0)>1,[N,P]=(0,m.RG)([w&&S&&'Aria_QuantityReset','UnitOfMeasure']).texts;if(!w||!n.uoms)return null;if(n.loaded&&!n.isOrderable)return null;if(f===o.Gb.Available){if(!i.isOrderable&&(!y||n.uoms.length<=1))return null}else if(!y||n.uoms.length<=1)return null;
1const k=w||a,T=k&&n.uoms.find((e=>(0,d.kv)(e.id,k)))||null,C=n.uoms.map((e=>({key:(0,h.oR)(e.id),fallback:e.description||e.id})));C.disableInsiteEditor=!0;const O=S?`${I}_UOM`:null,L=O&&O+'lb',D=e=>{c(e),N&&b((0,g.gW)(N))};return(0,j.jsxs)("div",{className:`${s().uom} ${s().uomBody} ${S?'':'no-uom-selection'}`,children:[S&&(0,j.jsx)(m.e5,{options:C,placeholder:(0,j.jsx)(v.V,{className:s().uomSelectorPlaceholder}),children:e=>{const t=n.uoms.map(((t,r)=>({name:(0,u.qZ)(e[r]),value:t.id||`${r}`})));return(0,j.jsx)(p.Select,{items:t,small:!0,onChange:D,value:null==T?void 0:T.id,id:O,labelId:L,shouldReset:n.id,disabled:x})}}),(0,j.jsx)("label",{id:L,className:"visually-hidden",children:P}),!S&&(0,j.jsx)("div",{className:s().uomTitle,children:(0,j.jsx)(h.lV,{id:null==T?void 0:T.id,description:null==T?void 0:T.description})})]})},b=(0,n.withStyles)(s())((0,f.QT)((0,f.Wc)((0,c.g6)([I.Z],(e=>{let{product:t,calculatedInfo:r,uomId:n,updateUomId:i}=e;return{product:t,calculatedInfo:r,selectedUomId:n,onUomChange:i}}))((0,x.rp)((0,a.memo)(y),[o.q2.OrderProducts])))))},50579:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(14702),i=r(9973),s=r.n(i),a=r(86332),l=r(32421),o=r(67985),d=r(21598),c=r(81656),u=r(14649),m=r(23304),p=r(41231),v=r(39310),h=r(13111);const x={LEFT:s().left,RIGHT:s().right,CENTER:s().center,JUSTIFY:s().justify},f=e=>{var t;let{variantComponentGroups:r,productId:n,updateContext:i,isDesignerMode:a,sharedStyleProps:{horizontalAlignment:c},model:{showLabel:u}}=e;const p=(0,l.Nc)(!0),{variantId:f}=(0,v.$)(),I=(null==p||null==(t=p.values)?void 0:t.variantId)??f,[g,j]=(0,o.Z)(r,((e,t,r)=>i({variantId:e,variantComponents:t,...r&&{isVariantSelectionLoading:!0}})),n,I);return(0,h.jsx)("fieldset",{className:`${s().variantDropdowns} ${x[c]}`,children:g.map((e=>{const t=e.components.map((e=>({name:e.name,value:e.id})));return(0,h.jsxs)("div",{className:(0,m.WM)(s().variantDropdownsRow,!u&&s().withoutLabel),children:[(0,h.jsx)("label",{htmlFor:e.id,className:u?s().ellipsis:'visually-hidden',children:e.name||e.id}),(0,h.jsx)(d.Select,{className:s().variant,id:e.id,items:t,onChange:t=>j(t,e),value:e.selectedComponentId,disabled:a})]},e.id)}))})},I=(0,n.withStyles)(s())((0,c.QT)((0,c.Wc)((0,u.g6)([p.Z],(e=>{let{product:t,updateContext:r}=e;return{product:t,updateContext:r}}))((0,a.memo)((e=>{var t;if(!e.product.loaded)return null;return e.product.isOrderable&&e.product.hasVariants&&(null==(t=e.product.variantComponentGroups)?void 0:t.length)?(0,h.jsx)(f,{...e,productId:e.product.id,variantComponentGroups:e.product.variantComponentGroups}):null}))))))},65233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(41231),i=r(14649),s=r(86332),a=r(52604),l=r(13111);const o=e=>{var t;let{variants:r,variantId:n,model:{fontColor:i,fontSize:s}}=e;if(!n||!r)return null;const o={fontSize:s,color:i},d=null==(t=r.find((e=>e.id===n)))?void 0:t.productNo;return(0,l.jsx)("div",{style:o,children:(0,l.jsx)(a.pI,{textKey:"VariantProductNumber",formatWith:[d]})})},d=(0,i.g6)([n.Z],(e=>{let{product:{variants:t},variantId:r}=e;return{variants:t,variantId:r}}))((0,s.memo)(o))},20482:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(14649),i=r(41231),s=r(86332),a=r(52604),l=r(13111);const o=e=>{var t;let{variants:r,variantId:n,model:{fontColor:i,fontSize:s}}=e;if(!n||!r)return null;const o={fontSize:s,color:i},d=null==(t=r.find((e=>e.id===n)))?void 0:t.title;return(0,l.jsx)("div",{style:o,children:(0,l.jsx)(a.pI,{textKey:"VariantProductTitle",formatWith:[d]})})},d=(0,n.g6)([i.Z],(e=>{let{product:{variants:t},variantId:r}=e;return{variants:t,variantId:r}}))((0,s.memo)(o))},34686:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C});var n=r(14702),i=r(9973),s=r.n(i),a=r(39172),l=r.n(a),o=r(86332),d=r(65164),c=r(52604),u=r(41231),m=r(14649),p=r(19564),v=r.n(p),h=r(32421),x=r(21484),f=r(44487),I=r(54742);function g(e,t){var r,n;if(e.variantTitle&&t.variantTitle){if(e.variantTitle<t.variantTitle)return-1;if(e.variantTitle>t.variantTitle)return 1}if(e.volumePrice.quantity<t.volumePrice.quantity)return-1;if(e.volumePrice.quantity>t.volumePrice.quantity)return 1;if(null!=(r=e.uom)&&r.description&&null!=(n=t.uom)&&n.description){if(e.uom.description<t.uom.description)return-1;if(e.uom.description>t.uom.description)return 1}return 0}var j=r(13111);const y=(0,n.withStyles)(s(),v())((e=>
1{let{volumePrices:t,uoms:r,defaultPrice:n,canViewUom:i}=e;const a=(0,h.J3)(),l=(0,h.co)(),o=(0,h.Gt)(),d=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("h2",{className:`h3 ${v().title}`,children:(0,j.jsx)(c.pI,{textKey:"VolumeDiscounts_Title"})}),(0,j.jsx)("div",{children:(0,j.jsx)(c.Ho,{textKey:"VolumeDiscounts_Description"})})]}),u=`${s().volumePrices} ${o?s().mobile:''}`;if(!t||!t.prices)return(0,j.jsx)("div",{className:u,children:d});const m=!!t.prices.length,p=m?t.prices.map((e=>b(e,r))):function(e){return[b({price:e,quantity:1,discountPercent:0,uomId:null,variant:null})]}(n);p.sort(g);const y=m&&p.some((e=>e.variantTitle)),w=i&&m&&p.some((e=>e.uom));return(0,j.jsxs)("div",{className:u,children:[d,(0,j.jsx)("div",{className:s().volumePricesTable,children:(0,j.jsxs)(I.i,{children:[(0,j.jsx)("thead",{children:(0,j.jsxs)("tr",{children:[y&&(0,j.jsx)("th",{children:(0,j.jsx)(c.Ho,{textKey:"Variant"})}),(0,j.jsx)("th",{children:(0,j.jsx)(c.Ho,{textKey:"Quantity"})}),w&&(0,j.jsx)("th",{children:(0,j.jsx)(c.Ho,{textKey:"UOM"})}),(0,j.jsx)("th",{children:(0,j.jsx)(c.Ho,{textKey:"General_Product_Price"})}),(0,j.jsx)("th",{children:(0,j.jsx)(c.Ho,{textKey:"Discount"})})]})}),(0,j.jsx)("tbody",{children:p.map(((e,t)=>{let{variantTitle:r,volumePrice:{quantity:n,price:i,discountPercent:o},uom:d}=e;return(0,j.jsxs)("tr",{children:[y&&(0,j.jsx)("td",{className:s().cellTitle,children:r||(0,j.jsx)(c.pI,{textKey:"AppliesToAllVariants"})}),(0,j.jsx)("td",{className:s().cellQty,children:l(n)}),w&&(0,j.jsx)("td",{className:s().cellUom,children:d&&(0,j.jsx)(x.lV,{id:d.id,description:d.description,allowHtmlTags:!0})}),(0,j.jsx)("td",{className:s().cellPrice,children:a&&i&&(0,f.n)(i,a)}),(0,j.jsx)("td",{className:s().cellDiscount,children:(0,f.JY)(o,a,!0,2)})]},t)}))})]})})]})}));function b(e,t){let r=null;e.uomId&&(r=t&&t.find((t=>t.id===e.uomId)));const n=e.variant&&e.variant.title;return{volumePrice:e,variantTitle:n,uom:r}}var w=r(60074),S=r(27),N=r(78770),P=r(81656);const k=e=>{let{isDesignerMode:t,variantId:r,productId:n,calculatedInfo:i,uoms:a,uomId:u}=e;const m=(0,d.useDispatch)(),p=(0,d.useSelector)((e=>e.page.volumePrices)),v=(0,x.GN)(),{opened:h,show:f,hide:I,toggle:g}=(0,w.dd)(),b=(0,o.useRef)(!1),P=v?u:null;(0,o.useEffect)((()=>{p&&b.current&&(b.current=!1,g())}),[p]);const k=!!p&&!p.prices,T=(0,j.jsx)(S.V,{className:s().volumeDiscountPlaceholder});return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("button",{className:`${s().hypVolumePrices} ${l().arrowed} ${l().link}`,"aria-disabled":k&&!t,tabIndex:k?-1:null,onClick:()=>{p&&p.variantId===r&&p.uomId===P?f():(b.current=!0,m((0,N.Kd)(n,r,P)))},children:(0,j.jsx)(c.pI,{textKey:"ViewVolumeDiscount",placeholder:T})}),!t&&p&&(0,j.jsx)(w.u_,{opened:h,hide:I,className:s().volPricesPopup,children:(0,j.jsx)(y,{volumePrices:p,canViewUom:v,uoms:a,defaultPrice:i.price})},n)]})},T=e=>{let{product:t,variantId:r,...n}=e;const i=(0,d.useDispatch)(),s=(0,d.useSelector)((e=>e.settings.loaded?e.settings.product.nonOrderableProductPricesVisibility:null));return(0,o.useEffect)((()=>{t.hasVolumePrices??i((0,N.pA)(t.id))}),[t.id,t.hasVolumePrices]),t.hasVolumePrices&&(!r||s||O(t,r))?(0,j.jsx)(k,{...n,variantId:r,productId:t.id,uoms:t.uoms}):null},C=(0,n.withStyles)(s(),l())((0,P.Wc)((0,m.g6)([u.Z],(e=>{let{product:t,calculatedInfo:r,uomId:n,variantId:i}=e;return{product:t,calculatedInfo:r,uomId:n,variantId:i}}))((0,o.memo)((e=>{let{product:t,...r}=e;return t.loaded?(0,j.jsx)(T,{...r,product:t}):null}))))),O=(e,t)=>{var r;return null==(r=e.variants)||null==(r=r.find((e=>e.id===t)))?void 0:r.isOrderable}},81656:(e,t,r)=>{"use strict";r.d(t,{CX:()=>p,QT:()=>a,l9:()=>d,Wc:()=>s});var n=r(39310),i=r(13111);function s(e){return t=>{const{showOrderBox:r}=(0,n.Z)();return r?(0,i.jsx)(e,{...t}):null}}function a(e){return t=>{const{isMatrixMode:r}=(0,n.Z)();return void 0===r||r?null:(0,i.jsx)(e,{...t})}}var l=r(29907),o=r(69002);function d(e){return t=>(0,l.ZV)(o.q2.OrderProducts)[0]?(0,i.jsx)(e,{...t}):null}var c=r(41231),u=r(86332),m=r(942);function p(e){return t=>{const{isMatrixMode:r}=(0,n.Z)(),{isCalculatedPriceLoading:s}=(0,u.useContext)(c.Z);return void 0===r||r?(0,i.jsx)("div",{children:s&&(0,i.jsx)(m.default,{})}):(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(m.default,{}),(0,i.jsx)(e,{...t})]})}}},57680:(e,t,r)=>{var n=r(27327),i=r(48441)(n);
1i.push([e.id,".BackLink_hyp{color:var(--theme-button_Back_Color,#1f7bc9);display:inline-block;font-size:var(--theme-text_SmallerSize,12px);line-height:1em;position:relative}html.pointer-mouse .BackLink_hyp:hover{color:var(--theme-button_Back_Hover_Color,#2289e3);text-decoration:none}@supports(not (-webkit-hyphens:none)) and (not (-moz-appearance:none)) and (list-style-type:\"*\"){@media(pointer:coarse){html:not(.pointer-mouse) .BackLink_hyp:active{color:var(--theme-button_Back_Hover_Color,#2289e3);text-decoration:none}}}@supports(-webkit-hyphens:none){@media(pointer:coarse){.BackLink_hyp:hover{-webkit-tap-highlight-color:var(--theme-button_Back_Hover_Color,#2289e3)}}}.BackLink_hyp .back-icon{margin-right:.075em;max-height:.2em;max-width:.2em}.BackLink_hyp img.back-icon{font-size:4em}",""]),i.locals={hyp:"BackLink_hyp"},e.exports=i}}]); 2//# sourceMappingURL=pdp.c3830f31.chunk.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.