"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6584],{930:(e,a,t)=>{t.d(a,{W:()=>d,e:()=>c});var i=t(39324),n=t.n(i),r=t(30053),l=t(71605),o=t(776);let{publicRuntimeConfig:{isTealiumEnabled:s}}=n()(),d=e=>{let{creativeSlot:a,pageType:t,pageTypeDetails:i,products:n}=e,d=i||t,c=n.map((e,a)=>{let i=e.analyticsPosition||a+1;return(0,l.p6)(null==e?void 0:e.gaProductCode,e,i,t,d)}),u={event:"view_promotion",ecommerce:{creative_slot:a.toLowerCase(),items:c}};(0,r.BI)({payload:u}),s&&(0,o.jW)("view_promotion",n,a,t,i)},c=e=>{let{product:a,indexPosition:t=0,creativeSlot:i,pageType:n,pageTypeDetail:d}=e,c=d||n,u=(0,l.p6)(null==a?void 0:a.gaProductCode,a,t+1,n,c);(0,r.BI)({payload:{event:"select_promotion",ecommerce:{creative_slot:i.toLowerCase(),items:[u]}}}),s&&(0,o.jW)("select_promotion",[a],i,n,d)}},1049:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876),n=t(14232),r=t(49995),l=t(78206),o=t(86767),s=t(70524),d=t(68002);let c=e=>{let{rootClass:a,rootStyle:t,size:c="medium",field:u,form:p,label:m,required:g,help:h,onBlur:x,onSelect:y,...A}=e,v=(0,n.useMemo)(()=>(0,l.O6)(p.errors,u.name)||p.status&&p.status[u.name],[p.errors,p.status,u.name]),b=(0,n.useMemo)(()=>(0,l.O6)(p.touched,u.name),[p.touched,u.name]),f=v&&b;return(0,i.jsxs)("div",{className:(0,r.A)({[String(a)]:a}),style:t,children:[m&&(0,i.jsx)(s.A,{htmlFor:u.name,size:c,required:g,children:m}),(0,i.jsx)(o.A,{id:u.name,...u,onChange:e=>{p.setFieldValue(u.name,e)},onBlur:e=>{u.onBlur(e),x&&x(e)},onSelect:y,size:c,error:!!f,"aria-describedby":(f||h)&&"".concat(u.name,"-help-text"),...A}),(f||h)&&(0,i.jsx)(d.A,{id:"".concat(u.name,"-help-text"),error:!!f,children:f?v:h||null})]})}},2184:(e,a,t)=>{t.d(a,{Fo:()=>c});var i=t(28888);t(37876);var n=t(82897),r=t(92885);t(14232);var l=t(78248);function o(){let e=(0,i._)(["\n query MultiCountryPricingAndAvailability($productNumber: String!, $brand: String, $quantity: Int!, $checkForPb: Boolean, $materialIds: [String!], $displaySDS: Boolean = false, $catalogType: CatalogType) {\n getPricingForMultiCountryProducts(\n input: {productNumber: $productNumber, brand: $brand, quantity: $quantity, checkForPb: $checkForPb, materialIds: $materialIds, catalogType: $catalogType}\n ) {\n ...ProductPricingDetail\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(o(),r.$m);function c(e){let a={...s,...e};return l._(d,a)}},3848:(e,a,t)=>{t.d(a,{A:()=>A});var i=t(37876),n=t(14232),r=t(49995),l=t(77742),o=t(8733),s=t(35967),d=t(5411),c=t(7645),u=t(61261),p=t(54753),m=t(4648),g=t(11788),h=t(95349),x=t(75020);let y=(0,u.A)(e=>({pricesContainer:{display:"flex",alignItems:"baseline","& > div:not(:first-child)":{marginLeft:e.spacing(1)}},pricesStacked:{flexDirection:"column",alignItems:"stretch","& > div:not(:first-child)":{marginLeft:e.spacing(0)}},baseClass:{minWidth:0,paddingLeft:0},topAligned:{display:"flex",padding:0,margin:0}})),A=e=>{var a;let t,u,{material:A,listPriceClass:v,priceClass:b,hasStackedPrices:f=!0}=e,j=y(),[N,C]=(0,n.useState)(!1),{formatMessage:T}=(0,l.A)(),{guestShoppingType:S,isDTAQZuCustomer:I}=(0,g.iZ)();if(null===(a=A.availabilities)||void 0===a?void 0:a.length){let e=A.availabilities[0];t=e.displayInquireLink,u=e.contactInfo}let k=[null==u?void 0:u.contactPhone,null==u?void 0:u.contactEmail].filter(e=>!!e).join(" ".concat(T(p.A.OR)," "));return A.hidePriceMessageKey?(0,i.jsx)(h.A,{msgKey:A.hidePriceMessageKey}):t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{onClick:()=>{C(!0),(0,x.Sm)({action:"inquire product",section:"p&a",component:"list",elementType:"link",elementText:"inquire",material:{materialDescription:A.materialDescription,brand:A.brand,product:A.product,materialNumber:A.materialNumber}})},className:(0,r.A)(j.baseClass,{[j.topAligned]:t}),children:(0,i.jsx)(o.A,{...p.A.INQUIRE})}),N&&(0,i.jsx)(m.A,{open:N,setModalOpen:C,headerContent:A.materialNumber,bodyContent:(0,i.jsx)(c.A,{mr:12,mb:8,children:(0,i.jsx)(o.A,{id:"INQUIRE_PRICING_MODAL",defaultMessage:"It is difficult to publish a price for the item selected due to market conditions and/or volume. Please contact us at the following phone number or email address for further discussion. {inquirePriceContactInfo}",values:{inquirePriceContactInfo:k}})})})]}):(0,i.jsx)(c.A,{display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,i.jsxs)("div",{className:(0,r.A)(j.pricesContainer,{[j.pricesStacked]:f}),children:[!!A.price&&!!A.listPrice&&(A.listPrice>A.price||"dtaq"===S&&I)&&(0,i.jsx)("div",{className:v,children:(0,i.jsx)(s.Gr,{style:"currency",currencyDisplay:"symbol",currency:A.listPriceCurrency?A.listPriceCurrency:A.currency,value:A.listPrice})}),A.price?(0,i.jsx)("div",{className:b,children:(0,i.jsx)(s.Gr,{style:"currency",currencyDisplay:"symbol",currency:A.currency,value:A.price})}):(0,i.jsx)(o.A,{...p.A.UNAVAILABLE})]})})}},4009:(e,a,t)=>{t.d(a,{f:()=>ef,A:()=>eC});var i=t(37876),n=t(67241),r=t(70377),l=t(41683),o=t(57377),s=t(71549),d=t(84093),c=t(5411),u=t(7645),p=t(34415),m=t(77501),g=t(52413),h=t(75352),x=t(30489),y=t(11148),A=t(77660),v=t(73431),b=t(70608),f=t(11788),j=t(17685),N=t(39324),C=t.n(N),T=t(89099),S=t(14232),I=t(35967),k=t(77742),R=t(8733),_=t(21347),E=t(64204),P=t(15329),M=t(61261),L=t(84906),w=t(78206),O=t(61206),D=t(80863),B=t(10113),F=t(95722),W=t(75878),U=t(58597),z=t(46588),q=t(3848),H=t(98411),V=t(54753),K=t(4473),G=t(40597);let Q=(0,M.A)(e=>({infoIcon:{cursor:"pointer",color:e.palette.primary.main}})),$=e=>{let{setDialogOpen:a}=e,t=Q(),{formatMessage:n}=(0,k.A)();return(0,i.jsx)(G.Ay,{title:n(V.A.ADDITIONAL_INFO_POPOVER),placement:"top",enterDelay:1e3,children:(0,i.jsx)(K.A,{className:t.infoIcon,onClick:()=>a(!0)})})};var Y=t(68837),X=t(49995),J=t(85150),Z=t(71007),ee=t(75020),ea=t(18847),et=t.n(ea),ei=t(10759),en=t(27447),er=t(70210),el=t(83707),eo=t(94295),es=t(27651);let ed=et()(()=>t.e(7982).then(t.bind(t,47982)),{loadableGenerated:{webpack:()=>[47982]},loadableGenerated:{webpack:()=>[47982]},ssr:!1}),ec=(0,M.A)(e=>({qtyInput:{height:32,maxWidth:e.typography.pxToRem(102.5),minWidth:e.typography.pxToRem(102.5),"& svg":{fill:e.palette.primary.main}},tCell:{verticalAlign:"middle"},materialNumber:{width:"15%","&$hidePriceMessageKey":{width:"5%"}},packSize:{width:"10%","&$hidePriceMessageKey":{width:"5%"}},availability:{width:"45%","&$hidePriceMessageKey":{width:"40%"}},price:{width:"10%"},quantity:{width:"15%","&$hidePriceMessageKey":{width:"10%"}},vendorSKU:{width:"10%"},materialNumberWithSku:{width:"10%"},packSizeWithSku:{width:"5%"},sds:{width:"10%"},availabilityWithSds:{width:"40%"},hidePriceMessageKey:{width:"20%"},addToListButton:{padding:0,fontSize:e.typography.pxToRem(24)},addToListIcon:{fill:e.palette.primary.main},lockIcon:{flex:1,fontSize:e.typography.pxToRem(18),color:e.palette.primary.main,cursor:"pointer"},buyNowContainer:{display:"flex",justifyContent:"flex-end",minWidth:100},labelFontSize:{fontSize:e.typography.pxToRem(12)},minimumQuantityError:{color:e.palette.error.main,fontWeight:"bold"},promoDiscountMessage:{fontSize:e.typography.pxToRem(12),color:e.palette.error.main},promoDiscount:{fontWeight:"bold"},promoCode:{color:e.palette.common.black}})),eu=e=>{var a,t;let{productName:n,productDescription:r,productId:l,material:s,canAddToCart:d,hideAddToCartForPrepackItems:c,initialShipEstimate:p,displayPromotionalBundlesAnchor:m,index:g,displaySDS:h,countryCode:x,isMarketplace:v=!1,renderBuyNow:b=!1,rowValues:f,setMultipleMinimumQuantityError:j,erpType:N,displayPromoCode:C}=e,T=ec(),I=(0,k.A)(),R=(0,y.rd)(),_=(0,eo.L)(es.ID.countryCode),M=(0,eo.L)(es.TW.countryCode),K=(0,J.I)(),G=null===(a=s.availabilities)||void 0===a?void 0:a[0],Q=m&&s.isPBAvailable&&R.query,ea=G&&(null==G?void 0:G.key)===A.qL.InquireForPriceAndAvailability,[et,eu]=(0,S.useState)(!1),[ep,em]=(0,S.useState)(!1),[eg,eh]=(0,S.useState)(!1);return(0,S.useEffect)(()=>{et&&(0,Z.OT)({action:"view additional information",section:"pricing and availability",component:"list",elementType:"icon",elementText:"view additional information",productId:s.product,productBrand:s.brand,productVariant:s.materialNumber})},[et]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.A,{className:(0,X.A)(T.tCell,"ThirdPartyProvider"===s.type?T.materialNumberWithSku:T.materialNumber,s.hidePriceMessageKey&&T.hidePriceMessageKey),children:[(0,i.jsx)(en.A,{materialNumber:s.materialNumber}),Q&&(0,i.jsx)(u.A,{pt:2,children:(0,i.jsx)(er.A,{materialNumber:s.materialNumber,brand:s.brand,productName:null!=n?n:"",erp_type:N})})]}),"ThirdPartyProvider"===s.type?(0,i.jsx)(o.A,{className:(0,X.A)(T.tCell,T.vendorSKU),children:s.vendorSKU}):null,(0,i.jsx)(o.A,{className:(0,X.A)(T.tCell,"ThirdPartyProvider"===s.type?T.packSizeWithSku:T.packSize,s.hidePriceMessageKey&&T.hidePriceMessageKey),children:(0,i.jsx)(O.A,{value:s.packageSize})}),(0,i.jsxs)(o.A,{className:(0,X.A)(T.tCell,h?T.availabilityWithSds:T.availability,s.hidePriceMessageKey&&T.hidePriceMessageKey),children:[(0,i.jsx)(H.A,{canAddToCart:d,material:s,initialShipEstimate:p,displayPromotionalBundlesAnchor:m,countryCode:x,gaDetailsClick:()=>(0,ee.Sm)({action:"check availability details",section:"related products",component:"list",elementType:"link",elementText:"details",material:s}),source:"related products",gaSection:R.asPath.includes("/search")?void 0:"products",gaComponent:"list"}),(0,i.jsx)(el.A,{expirationDate:s.expirationDate,displayColon:!0,displayInline:!0,outerClassName:T.labelFontSize}),s.minOrderQuantity&&s.minOrderQuantity>1?(0,i.jsxs)("div",{className:(0,X.A)(T.labelFontSize,eg&&T.minimumQuantityError),children:[I.formatMessage(V.A.MINIMUM_ORDER_QUANTITY),s.minOrderQuantity]}):null,C?(0,i.jsxs)("div",{className:T.promoDiscountMessage,children:[(0,i.jsx)("span",{children:"Web-Only Discount: "}),(0,i.jsx)("span",{className:T.promoDiscount,children:"-25% Off"}),(0,i.jsx)("span",{children:" with code "}),(0,i.jsx)("span",{className:(0,X.A)(T.promoCode,T.promoDiscount),children:"GOLDEN25"})]}):null]}),h&&(0,i.jsx)(o.A,{className:(0,X.A)(T.tCell,T.sds),children:(0,i.jsx)(D.A,{sdsLanguages:s.sdsLanguages,productNumber:s.materialNumber,brandKey:s.brand})}),(0,i.jsx)(o.A,{className:(0,X.A)(T.tCell,T.price,s.hidePriceMessageKey&&T.hidePriceMessageKey),children:ea?null:(0,i.jsx)(u.A,{"data-testid":"P&A-row-price-".concat(s.brand,"-").concat(s.materialNumber),id:"P&A-row-price-".concat(s.brand,"-").concat(s.materialNumber),children:(0,i.jsx)(q.A,{material:s,listPriceClass:K.listPrice})})}),(0,i.jsx)(o.A,{className:(0,X.A)(T.tCell,T.quantity),children:(0,i.jsxs)(u.A,{display:"flex",alignItems:"center",children:[!d||c||ea?null:(0,i.jsx)(i.Fragment,{children:(null==s?void 0:s.isBlockedProduct)?(0,i.jsx)(E.A,{className:T.lockIcon,onClick:()=>em(!0),children:(0,i.jsx)(z.A,{fontSize:"inherit"})}):s.minOrderQuantity&&s.minOrderQuantity>1?(0,i.jsx)(w.D0,{name:"".concat(g,".quantity"),component:F.A,className:T.qtyInput,"data-testid":"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),id:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),associatedComponent:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),materialNumber:s.materialNumber,minOrderQuantity:s.minOrderQuantity,setShowMultipleMinimumQuantityError:eh,setMultipleMinimumQuantityError:j,isLessThan:_||M}):(0,i.jsx)(w.D0,{name:"".concat(g,".quantity"),component:W.A,className:T.qtyInput,"data-testid":"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),id:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),associatedComponent:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),max:null!==(t=null==s?void 0:s.availableQtyInStock)&&void 0!==t?t:9999})}),ep&&(0,i.jsx)(U.A,{open:ep,onCancel:()=>{em(e=>!e)}}),ea?(0,i.jsx)(u.A,{display:"flex",alignItems:"center",ml:31.5,children:(0,i.jsx)($,{setDialogOpen:eu})}):(0,i.jsx)(u.A,{display:"flex",alignItems:"center",ml:6.5,children:(0,i.jsx)($,{setDialogOpen:eu})}),(v||d)&&!c?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{ml:2,"data-testid":"lists_add-to-list-paa-icon",children:(0,i.jsx)(B.A,{materialNumber:s.materialNumber,materialId:s.materialId,quantity:Number(null==f?void 0:f.quantity)||1,productName:n||"",productId:l||"",brand:s.brand,type:s.type,trigger:e=>(0,i.jsx)(ed,{title:I.formatMessage(V.A.ADD_TO_LIST),placement:"top",enterDelay:1e3,children:(0,i.jsx)(P.A,{className:(0,X.A)(T.addToListButton),onClick:e,children:(0,i.jsx)(L.A,{className:T.addToListIcon,fontSize:"inherit"})})})})}),b?(0,i.jsx)(u.A,{mr:2,className:T.buyNowContainer,children:(null==s?void 0:s.isBuyNow)?(0,i.jsx)(ei.A,{materialNumber:(null==f?void 0:f.materialNumber)||"",quantity:Number(null==f?void 0:f.quantity)||1,size:"small",marketplace:v,gaType:"search result page"}):null}):null]}):null]})}),(0,i.jsx)(Y.A,{open:et,additionalInfo:s.additionalInfo||{},productNumber:s.materialNumber,productName:n,packageType:s.packageType,packageSize:s.packageSize,description:r||s.materialDescription,handleClose:()=>eu(!1)})]})};var ep=t(25771),em=t(69485),eg=t(52710),eh=t(84830),ex=t(76056),ey=t(41764),eA=t(65149),ev=t(51996);let{publicRuntimeConfig:{featureFlags:eb}}=C()(),ef=e=>{let{availability:a,leadTime:t}=e,n=(0,J.A)();if(!a)return(0,i.jsx)(em.J,{id:"PRICING_AND_AVAILABILITY_UNAVAILABLE",defaultMessage:"Pricing and availability is not currently available.",availability:a});if(a.key===A.qL.UnknownAvailability)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"AVAILABILITY_UNKNOWN",defaultMessage:"Availability Unknown",availability:a})]});if(a.key===A.qL.ContactForAvailability)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"CONTACT_FOR_AVAILABILITY",defaultMessage:"Please contact Customer Service for Availability",availability:a})]});if(a.key===A.qL.FulfilmentDeliveryDelayed)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed",availability:a}),(0,i.jsx)(ey.A,{leadTime:t})]});if(a.key===A.qL.UntilSuppliesRunOut)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"UNTIL_SUPPLIES_RUN_OUT",defaultMessage:"This item is available until supplies run out.",availability:a})]});if(a.key===A.qL.LimitedAvailability)return(0,i.jsx)(em.J,{...b.A[a.key]});if(a.key===A.qL.OutOfStockKey)return(0,i.jsx)(em.J,{id:"OUT_OF_STOCK_KEY",defaultMessage:"We apologize but fulfillment and delivery of this product is delayed. We are working to minimize these delays as quickly as possible.",availability:a});if(a.key===A.qL.OnlyFewLeftInStock){let e=a.quantity;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{className:n.availableIcon}),(0,i.jsx)(em.J,{id:"FEW_LEFT_IN_STOCK",defaultMessage:"{qty} left in stock (more on the way)",values:{qty:e},availability:a})]})}return a.key===A.qL.ApoNoStock?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"APO_NO_STOCK",defaultMessage:"No Local Stock",availability:a})]}):a.key===A.qL.CheckCartForAvailability?(0,i.jsx)(em.J,{id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability",availability:a}):a.date&&a.quantity?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{className:n.availableIcon}),(0,i.jsxs)("span",{children:[(0,i.jsx)(em.J,{availability:a,...b.A[a.key===A.qL.EstimatedDeliveryOn?"AVAILABILITY_ESTIMATED_DELIVERY_ON":a.key]})," ",(0,i.jsx)(I.XU,{value:new Date(a.date),year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"})]})]}):(0,i.jsx)(em.J,{id:"PRICING_AND_AVAILABILITY_UNAVAILABLE",defaultMessage:"Pricing and availability is not currently available.",availability:a})},ej=e=>{let{preferredDealerName:a,noPriceForDealer:t}=e,{formatMessage:n}=(0,k.A)(),r=(0,J.A)();if(t)return(0,i.jsxs)("span",{className:r.seeDealerOptionsText,children:[(0,i.jsx)(m.default,{color:"error",className:r.errorIcon}),(0,i.jsx)(em.J,{id:"PRICING_AND_AVAILABILITY_TEMPORARILY_UNAVAILABLE_FROM",defaultMessage:"Pricing and availability is temporarily unavailable from {preferredDealerName}",values:{preferredDealerName:a}})]});let l=a?"".concat(n({id:"SHIPPED_SOLD_BY",defaultMessage:"Shipped & Sold By"})," ").concat(a):"";return l?(0,i.jsx)("span",{className:r.seeDealerOptionsText,children:"".concat(l," ")}):(0,i.jsx)(i.Fragment,{})},eN=e=>{let{dealerCount:a}=e,{formatMessage:t}=(0,k.A)(),n=t({id:"SEE_ALL_BUYING_OPTIONS",defaultMessage:"See All Buying Options"});return a?(0,i.jsx)(i.Fragment,{children:"".concat(n," (").concat(a,")")}):(0,i.jsx)(i.Fragment,{children:"".concat(n)})},eC=e=>{var a,t,m,x,A,b,N;let{country:C,productName:I,displaySellerName:E,productDescription:P,productId:M,materialPricing:L,canAddToCart:w,isSubmitting:O,dirty:D,submitForm:B,hideAddToCartForPrepackItems:F,displayPromotionalBundlesAnchor:W,displaySDS:U,ctas:z,isAddToList:q,setFieldValue:H,values:V,isMarketplace:K,isMarketplaceCartEnabled:G=!1,marketplaceSellerId:Q,marketplaceOfferId:$,productAttributes:Y,handlePriceUpdateForDealer:X,erpType:Z,dChainMessage:ee}=e,ea=(0,T.useRouter)(),[et,ei]=(0,S.useState)(!1),en=(0,J.A)(),{formatMessage:er}=(0,k.A)(),{currentUser:el,currentUserState:ed,getSitePreference:ec,isPublicOrderingCustomer:em,isQuoteRequester:ey,isDTAQZuCustomer:eC,userIsLoggedIn:eT,isB2BUser:eS}=(0,f.iZ)(),{userSession:eI}=(0,j.j)(),ek=ec(f.VD.PreferredDealerId),[eR,e_]=(0,S.useState)(0),eE=!ek,eP=ec(f.VD.PreferredDealerInfo),eM=null==eP?void 0:eP.orgName,[eL,ew]=(0,S.useState)(eM),{isPurpleProduct:eO}=(0,eh.Q)(Z),eD=(0,eo.L)(es.CN.countryCode),eB=L.map(e=>({name:e.materialNumber,error:!1})),[eF,eW]=(0,S.useState)(eB),eU=(e,a)=>{eW(eF.map(t=>({...t,error:t.name===e?a:t.error})))},{data:ez,refetch:eq,error:eH}=(0,v.AW)({context:{userSession:eI},errorPolicy:"all",variables:{countryCode:null==eI?void 0:eI.country,stateCode:String(ed),searchTerm:""},skip:!eT||!eC}),eV=(null==L?void 0:L.map(e=>e.materialNumber))||[],eK="us"===eI.country.toLowerCase(),eG=null==el?void 0:null===(t=el.soldToPartners)||void 0===t?void 0:null===(a=t[0])||void 0===a?void 0:a.soldTo,{getCountryDetails:eQ}=(0,ev.Y)(),{defaultPartnerNumber:e$}=eQ(eI.country),{data:eY}=(0,eA.W_)({variables:{input:{audience:{billingEmail:el&&"billingAddress"in el&&el.billingAddress&&el.billingAddress.email||"",contactEmail:(null==el?void 0:el.email)||"",shippingEmail:el&&"shippingAddress"in el&&el.shippingAddress&&el.shippingAddress.email||"",shipTo:(null==el?void 0:null===(x=el.soldToPartners)||void 0===x?void 0:null===(m=x[0])||void 0===m?void 0:m.shipTo)||"",soldTo:eG||e$},materials:eV}},skip:!eb.srpTxnBadges||!eK||eS||!(null==eV?void 0:eV.length)||!eG&&!e$});(0,S.useEffect)(()=>{if(null!==L[0].dealerId){let e=L[0].dealerId,{organizationName:a=null}=null==ez?void 0:ez.getDealers.find(a=>a.id===e);ew(a)}},[L[0].dealerId]),(0,S.useEffect)(()=>{if(ez&&0===eR){var e;e_(null==ez?void 0:null===(e=ez.getDealers)||void 0===e?void 0:e.length)}},[ez]),(0,S.useEffect)(()=>{var e;null===ee&&(null===(e=L[0])||void 0===e?void 0:e.availableQtyInStock)===null&&H("0",{...V["0"],quantity:"1"})},[]);let eX=async e=>{await eq({countryCode:eI.country,stateCode:String(ed),searchTerm:e.toLowerCase()})},eJ=L&&L.length&&L[0].type,eZ=(null==el?void 0:el.__typename)==="GuestUser"&&!w,e0=(null==el?void 0:el.__typename)==="LoggedInUser"&&!(null==el?void 0:null===(A=el.metadata)||void 0===A?void 0:A.guestShoppingType)&&!em&&!ey,e1=(null===(b=ea.query)||void 0===b?void 0:b.focus)==="buildingblocks"||(null===(N=ea.query)||void 0===N?void 0:N.context)==="bbe",e2=eb.dealerCartEnabled&&eC&&!e1&&!eE,e4=eC&&eE,e7=!L[0].price,e3=L.some(e=>{let{isBuyNow:a}=e;return a}),e6=null==z?void 0:z.find(e=>"bulk order"===e.type),e8=null==z?void 0:z.find(e=>"bulk order"!==e.type),e5=(0,S.useCallback)(()=>eF.some(e=>e.error),[eF]),e9=(0,S.useContext)(eg.E);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:C?en.multiCountryTable:en.table,children:[(0,i.jsxs)(n.A,{children:[(!e7&&e2||!e2)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{children:(0,i.jsxs)(l.A,{classes:{root:en.tHeadRow},children:[(0,i.jsx)(o.A,{children:er({id:"SKU",defaultMessage:"SKU"})}),"ThirdPartyProvider"===eJ?(0,i.jsx)(o.A,{children:er({id:"VENDOR_SKU",defaultMessage:"Vendor SKU"})}):"",(0,i.jsx)(o.A,{children:er({id:"PACK_SIZE",defaultMessage:"Pack Size"})}),(0,i.jsx)(o.A,{children:er({id:"AVAILABILITY",defaultMessage:"Availability"})}),U&&(0,i.jsx)(o.A,{children:er({id:"SDS",defaultMessage:"SDS"})}),(0,i.jsx)(o.A,{children:er({id:"PRICE",defaultMessage:"Price"})}),(0,i.jsx)(o.A,{children:w&&!F?er({id:"QUANTITY",defaultMessage:"Quantity"}):null})]})}),(0,i.jsx)(s.A,{children:L.map((e,a)=>{var t,n,r,o,s;let d=(null===(t=e.availabilities)||void 0===t?void 0:t.filter(e=>"primary"===e.messageType)[0])||(null===(n=e.availabilities)||void 0===n?void 0:n[0]),c=null==eY?void 0:null===(s=eY.checkPromoEligibility)||void 0===s?void 0:null===(o=s.skus.find(a=>a.sku===e.materialNumber))||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.code;return(0,i.jsx)(l.A,{"data-testid":"P&A-row-".concat(e.brand,"-").concat(e.materialNumber),id:"P&A-row-".concat(e.brand,"-").concat(e.materialNumber),children:(0,i.jsx)(eg.M,{...e9,brand:e.brand,item:e.materialNumber,pricing:e,children:(0,i.jsx)(eu,{isMarketplace:K,canAddToCart:w,hideAddToCartForPrepackItems:F,initialShipEstimate:(0,i.jsx)(ef,{availability:d,leadTime:null==e?void 0:e.leadTime}),productName:I,productDescription:P,productId:M,material:e,index:a,displayPromotionalBundlesAnchor:W,displaySDS:U,countryCode:C,rowValues:V[a],renderBuyNow:e3,setMultipleMinimumQuantityError:eU,erpType:Z,displayPromoCode:"GOLDEN25"===c},a)})},e.materialNumber)})})]}),e2&&(0,i.jsx)(d.A,{className:en.tfoot,children:(0,i.jsx)(l.A,{children:(0,i.jsxs)(o.A,{align:"center",colSpan:5,children:[ek&&(0,i.jsx)(ej,{preferredDealerName:null!=eL?eL:eM,noPriceForDealer:e7}),(0,i.jsx)(c.A,{variant:"text",className:en.seeDealerOptionsLink,onClick:()=>ei(!0),children:(0,i.jsx)(eN,{dealerCount:eR})})]})})})]}),et&&e4&&(0,i.jsx)(h.A,{isSavingDealerPreference:e4,open:et,onClose:()=>ei(!1),onDealerSelectCallback:B,disabled:!1,dealers:(null==ez?void 0:ez.getDealers)||[],onSearch:eX,error:eH,values:V,materialPricing:L,setFieldValue:H,setIsModalOpen:ei}),et&&!e4&&(0,i.jsx)(h.A,{isSavingDealerPreference:e4,open:et,onClose:()=>ei(!1),onDealerSelect:X,disabled:!1,dealers:(null==ez?void 0:ez.getDealers)||[],onSearch:eX,error:eH,values:V,materialPricing:L,setFieldValue:H,setIsModalOpen:ei})]}),!C&&(!e7&&e2||!e2)&&(0,i.jsxs)(u.A,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:!G&&4,children:[(0,i.jsx)(u.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(ep.A,{isMarketplace:K,marketplaceSellerId:Q,marketplaceOfferId:$,productAttributes:Y,displaySellerName:E})}),(0,i.jsx)(u.A,{display:"flex",justifyContent:"flex-end",alignItems:"center",my:4,px:2,children:eZ||e0?(0,i.jsx)("p",{children:(0,i.jsx)(R.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(g.N,{...y.mK.index({path:"/collections/offices",language:eI.language,country:eI.country}),passHref:!0,children:(0,i.jsx)("a",{rel:"noopener",target:"_blank",children:(0,i.jsx)(R.A,{id:"CONTACT",defaultMessage:"contact"})})})}})}):(0,i.jsxs)(i.Fragment,{children:[e6&&!K&&(0,i.jsx)(g.N,{href:e6.url,passHref:!0,children:(0,i.jsx)(p.A,{"data-testid":"p&a-form-request-bulk-link",id:"p&a-form-request-bulk-link",className:en.bulkOrderLink,color:"primary",target:"_blank",children:e6.label})}),e8&&(0,i.jsx)(c.A,{component:"a",target:"_blank",href:e8.url,variant:"outlined",size:"large",color:"primary",className:en.buttonFilled,children:e8.label}),eO&&eD&&!eT?(0,i.jsx)(ex.A,{size:"medium"}):(!K||K&&G)&&(0,i.jsx)(_.Ay,{handleAddToCart:e=>{if(e.preventDefault(),e4)return ei(!0);B()},isSubmitting:O,dirty:D,disabled:e5(),canAddToCart:w&&(!K||K&&G),hideAddToCartForPrepackItems:F,isAddToList:q,size:"large"})]})})]})]})}},5493:(e,a,t)=>{t.d(a,{A:()=>l});var i=t(37876);t(14232);var n=t(7645),r=t(35877);let l=e=>{let{height:a,width:t,borderRadius:l="borderRadius",mb:o=0}=e,s=(0,r.A)();return(0,i.jsx)(n.A,{height:a,width:t,borderRadius:l,bgcolor:s.palette.grey["50"],mb:o})}},5634:(e,a,t)=>{t.d(a,{A:()=>F});var i=t(37876),n=t(14232),r=t(8733),l=t(61261),o=t(64204),s=t(65824),d=t(34669),c=t(61206),u=t(21932),p=t(67756),m=t(84768),g=t(30053),h=t(56584),x=t(9545),y=t(77742),A=t(35877),v=t(71541),b=t(98373),f=t(18249),j=t(54093),N=t(43965),C=t(49995);let T=(0,l.A)(e=>({facetSearchBoxContainer:{marginBottom:e.spacing(6),marginTop:e.spacing(4)},facetSearchListBox:{border:"1px solid ".concat(e.palette.grey[500]),borderRadius:"5px",fontSize:e.typography.pxToRem(14),lineHeight:1.21,margin:0,padding:0},facetSearchListBoxOption:{"&:hover":{background:e.palette.primary.light}},facetSearchListBoxNoOptions:{border:"1px solid ".concat(e.palette.grey[500]),borderRadius:"5px",fontSize:e.typography.pxToRem(14)},facetSearchInputContainer:{border:"1px solid ".concat(e.palette.grey[500]),borderRadius:"5px",height:e.spacing(8),paddingTop:0,paddingBottom:0,paddingLeft:e.spacing(4),outline:"none",width:"100%"},facetSearchInput:{"& input":{fontSize:e.typography.pxToRem(14)}},searchIcon:{color:e.palette.primary.main,display:"inline-flex",fontSize:e.typography.pxToRem(22),marginLeft:e.spacing(1),marginRight:e.spacing(3)},clearIcon:{display:"none",fontSize:e.typography.pxToRem(10),marginRight:e.spacing(3)},showClearIcon:{display:"inline-flex"}})),S=e=>{let{facet:a,selectedOptions:t,handleFacetChange:r}=e,[l,s]=(0,n.useState)(null),[u,p]=(0,n.useState)(""),m=T(),g=(0,A.A)(),{formatMessage:h}=(0,y.A)(),x=(0,v.A)(g.breakpoints.down("md")),S=e=>{let a=e.split("_").filter(e=>"facet"!==e&&"web"!==e).map(e=>e[0].toUpperCase()+e.substring(1)).join(" ");return a.length>10&&x?a.slice(0,10).concat("..."):a},I=()=>{p(""),s(null)};(0,n.useEffect)(()=>{I()},[r]);let k={};return a.options.map(e=>k[e.value]=e.count),(0,i.jsx)("div",{className:m.facetSearchBoxContainer,children:(0,i.jsx)(f.Ay,{disablePortal:!0,classes:{root:m.facetSearchInput,listbox:m.facetSearchListBox,option:m.facetSearchListBoxOption,noOptions:m.facetSearchListBoxNoOptions},options:Object.keys(k),renderOption:e=>(0,i.jsx)(c.A,{value:"".concat(e," (").concat(k[e],")")}),noOptionsText:h(d.A.NO_FACETS_FOUND),renderInput:e=>(0,i.jsx)("div",{className:m.facetSearchInputContainer,ref:e.InputProps.ref,children:(0,i.jsx)(b.A,{ref:e.InputProps.ref,...e.inputProps,placeholder:"Search ".concat(S(a.key)),disableUnderline:!0,fullWidth:!0,endAdornment:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{className:(0,C.A)(m.clearIcon,{[m.showClearIcon]:""!==u}),onClick:I,children:(0,i.jsx)(N.A,{fontSize:"inherit"})}),(0,i.jsx)(j.default,{className:m.searchIcon})]})})}),inputValue:u,onInputChange:(e,a)=>{p(a)},value:l,onChange:(e,i)=>{if(s(i),!i||t.includes(i))return;let n=a.options.find(e=>e.value===i),l=(null==n?void 0:n.count)||void 0;r(a.key,i,!1,l,"search box")}})})};var I=t(99660),k=t(70114),R=t(21289),_=t(97710);let E=(0,I.A)(e=>({icon:{display:"inline-flex",fontSize:e.typography.pxToRem(28),marginLeft:e.spacing(2)}})),P=e=>{let{value:a,count:t}=e,n=E(),l=a===_.u2.SameDay?(0,i.jsx)(R.A,{color:"secondary",fontSize:"inherit"}):(0,i.jsx)(k.A,{color:"secondary"});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{id:a.toUpperCase().replace(" ","_"),defaultMessage:a})," (".concat(t,")"),(0,i.jsx)("span",{className:n.icon,children:l})]})},M=(0,l.A)(e=>({root:{margin:e.spacing(6,0),[e.breakpoints.down("sm")]:{margin:e.spacing(4,0),"&:first-child":{margin:e.spacing(6,0,4)}}},showMore:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightMedium,color:e.palette.primary.main,margin:e.spacing(3,0,1),"& div":{display:"flex",alignItems:"center"}},showMoreIcon:{marginLeft:e.spacing(1.5)},checkboxIcon:{fontSize:e.typography.pxToRem(24)},formControlLabel:{fontSize:e.typography.pxToRem(14),marginTop:2},checkboxRoot:{paddingBottom:e.spacing(1),paddingTop:e.spacing(1),alignSelf:"flex-start"},shippingIcon:{display:"inline-flex",fontSize:e.typography.pxToRem(28),marginLeft:e.spacing(2)},facetLabel:{display:"flex",alignItems:"center"},collapseInner:{paddingTop:e.spacing(2)}}));var L=function(e){return e[e.facet_product_category=0]="facet_product_category",e[e.facet_web_special_grade=1]="facet_web_special_grade",e[e.facet_physical_form=2]="facet_physical_form",e}(L||{});let w=e=>{let{facet:a,showMore:t,substanceFacetChange:l,selectedSubstanceFacetOptions:y}=e,A=M(),v=(0,h.useSearchQuery)(),b=v[1],f=v[2],j=y||(b.find(e=>{let{key:t,options:i}=e;return a.prefix&&(i[0]=i[0].replace(a.prefix,"")),t===a.key})||{options:[]}).options,[N,C]=(0,n.useState)(!1),T=t||N?a.options:a.options.slice(0,a.numToDisplay||6);N&&T.length===a.numToDisplay&&C(!1);let I=N?"show less":"show more",k="facet_shipping"===a.key,R=(e,t,i,n,r)=>{l?l({key:a.key,options:a.prefix?["".concat(a.prefix).concat(t)]:[t]},i):f.handleSelectedFacetChange({key:a.key,options:[t],action:i?h.FacetChangeAction.Remove:h.FacetChangeAction.Add,multiSelect:a.multiSelect||!1,prefix:a.prefix});let o=(0,m.g)({action:"".concat(i?"remove":"add"," filter"),component:"left rail",element_type:r,element_text:"".concat(t," (").concat(n,")"),filter_name:t,filter_name_count:n,filter_category:e});(0,g.BI)({payload:o})},_=j.map(e=>e.split("|")[0]),E=l?_.includes("".concat(a.key)):j.length>0,w=!a.isCollapsed||E;return(0,i.jsx)("div",{className:A.root,children:(0,i.jsxs)(x.A,{defaultCollapse:w,facetKey:a.key,isSubstanceFacets:!!l,children:[a.key in L&&(0,i.jsx)(S,{facet:a,selectedOptions:j,handleFacetChange:R}),(0,i.jsxs)("div",{className:A.collapseInner,children:[T.map(e=>{let{value:t,count:n}=e,r=j.indexOf(t)>=0||j.indexOf("".concat(a.key,"|").concat(t))>=0||j.indexOf("".concat(a.key,"|").concat(a.prefix).concat(t))>=0;return(0,i.jsx)("div",{children:(0,i.jsx)(s.A,{"aria-label":t,"data-testid":"srp-facet-".concat(t),value:t,checked:r,classes:{root:A.checkboxRoot},formControlClasses:{label:A.formControlLabel},onChange:()=>R(a.key,t,r,n,"checkbox"),label:(0,i.jsx)("span",{className:A.facetLabel,children:k?(0,i.jsx)(P,{value:e.value,count:e.count}):(0,i.jsx)(c.A,{value:"".concat(e.value," (").concat(e.count,")")})})})},t)}),(a.options.length>T.length||N)&&(0,i.jsx)(o.A,{onClick:()=>{C(!N),(0,m.y)(I,a.key,I)},"aria-expanded":N,"aria-label":I,className:A.showMore,id:N?"facet-group-".concat(a.key,"-show-less"):"facet-group-".concat(a.key,"-show-more"),children:N?(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{...d.A.SHOW_LESS}),(0,i.jsx)(u.A,{className:A.showMoreIcon})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{...d.A.SHOW_MORE}),(0,i.jsx)(p.A,{className:A.showMoreIcon})]})})]})]})},a.key)};var O=t(39069),D=t(7645);let B=()=>{let e=(0,A.A)();return(0,i.jsx)("div",{children:[,,,].fill({}).map((a,t)=>(0,i.jsxs)(D.A,{mb:6,children:[(0,i.jsx)(D.A,{mb:4,children:(0,i.jsx)(O.A,{light:!0})}),(0,i.jsx)(D.A,{height:22,width:.75,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mb:4}),[,,,,,].fill({}).map((a,t)=>(0,i.jsxs)(D.A,{display:"flex",alignItems:"center",pr:4,mb:4,children:[(0,i.jsx)(D.A,{height:24,width:24,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mr:4}),(0,i.jsx)(D.A,{flex:1,height:20,width:20,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"]})]},t))]},t))})},F=e=>{let{loading:a,error:t,facets:r,showMore:l,substanceFacetChange:o,selectedSubstanceFacetOptions:s}=e;return a?(0,i.jsx)(B,{}):t||!r?null:(0,i.jsx)("div",{"data-testid":"srp-facets",children:r&&r.map(e=>(0,i.jsx)(n.Fragment,{children:!(null==e?void 0:e.isHidden)&&(0,i.jsx)(w,{facet:e,allFacets:r,showMore:l,substanceFacetChange:o,selectedSubstanceFacetOptions:s},e.key)},e.key))})}},6315:(e,a,t)=>{t.d(a,{A:()=>o});var i=t(37876);t(14232);var n=t(61206),r=t(52413);let l=e=>e.href?(0,i.jsx)(r.N,{...e,children:(0,i.jsx)("a",{children:e.value})}):(0,i.jsx)(n.A,{...e}),o=e=>{let{values:a,className:t,url:n}=e;return(0,i.jsx)(i.Fragment,{children:Array.isArray(a)&&a.length>1?a.map((e,a)=>(0,i.jsxs)("span",{children:[(0,i.jsx)(l,{value:e,className:t,href:n}),(0,i.jsx)("br",{})]},"".concat(e).concat(a))):a[0]&&(0,i.jsx)(l,{value:a[0],className:t,href:n})})}},10113:(e,a,t)=>{t.d(a,{A:()=>g});var i=t(37876),n=t(14232),r=t(64204),l=t(5411),o=t(30376),s=t(54736),d=t(32886),c=t(11788),u=t(54753),p=t(8733),m=t(49995);let g=e=>{let{materialNumber:a,materialId:t,productName:g,productId:h,brand:x,quantity:y,trigger:A,disabled:v,type:b,isLinkButton:f,classes:j}=e,[N,C]=n.useState(!1),{userIsLoggedIn:T,userId:S}=(0,c.iZ)(),{data:I,refetch:k}=(0,d.g)({fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",skip:!T,variables:{input:{perpage:100,sortcolumn:"lastUpdatedDate"}}});if(!T||!(null==I?void 0:I.getSharedLists))return null;let R=()=>{C(!0)},_=async()=>{C(!1)};return(0,i.jsxs)(i.Fragment,{children:[A?A(R):f?(0,i.jsxs)(r.A,{className:(0,m.A)(null==j?void 0:j.linkStyle),disabled:v,onClick:R,children:[(0,i.jsx)(o.default,{}),(0,i.jsx)(p.A,{...u.A.ADD_TO_LIST})]}):(0,i.jsx)(l.A,{variant:"outlined",color:"primary",size:"large",fullWidth:!0,disabled:v,onClick:R,children:(0,i.jsx)(p.A,{...u.A.ADD_TO_LIST})}),N&&(0,i.jsx)(s.A,{open:N,onClose:_,materialNumber:a,materialId:t,productName:g||"",productId:h||"",brand:x||"",type:b,quantity:y,lists:I.getSharedLists.sharedLists,refetchLists:k,userId:S})]})}},10759:(e,a,t)=>{t.d(a,{A:()=>i.A});var i=t(83128)},12399:(e,a,t)=>{t.d(a,{i:()=>D,A:()=>B});var i=t(37876),n=t(71541),r=t(5213),l=t(39069),o=t(36503),s=t(99220),d=t(35877),c=t(33280),u=t(9522),p=t(22566),m=t(11148),g=t(84627),h=t(77197),x=t(77660),y=t(71007),A=t(54753),v=t(77742),b=t(14232),f=t(8733),j=t(12197),N=t(5411),C=t(77274),T=t(44131),S=t(78206),I=t(10430),k=t(38582),R=t(66784),_=t(30029),E=t(17685),P=t(11788);let M=(0,s.n9)()(e=>({submitButton:{width:"100%",[e.breakpoints.up("sm")]:{width:"auto"}},instructions:{fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(16)}},fieldLabel:{color:e.palette.error.main},vr2:{marginBottom:e.spacing(2)},vr4:{marginBottom:e.spacing(4)},vr6:{marginBottom:e.spacing(6)}})),L=e=>{var a,t,n,r;let{title:l=(0,i.jsx)(f.A,{...A.A.SEARCH_SAFETY_DATA_SHEET}),instructions:o=(0,i.jsx)(f.A,{...A.A.ENTER_PRODUCT_NUMBER_FOR_SDS}),isAdvancedSearch:s}=e,{formatMessage:c}=(0,v.A)(),u=(0,d.A)(),{classes:p,cx:g}=M(),{setGlobalSnackbarState:h}=(0,k.W)(),[x,L]=(0,b.useState)(!1),{userSession:w}=(0,E.j)(),{userErpType:O}=(0,P.iZ)(),D=e=>{var a,t,i,n;let r=null==e?void 0:e.getSdsCertificateSearch,l=!!(null==r?void 0:r.brands.length);if(r&&l){let e=(null===(a=r.sds[0])||void 0===a?void 0:a.languages.altLanguages.length)===1,i=(null===(t=r.sds[0])||void 0===t?void 0:t.languages.altLanguages[0])||"",n=r.brands[0]||"",l=r.productNumber;return 1===r.brands.length&&e?window.open("".concat(m.Q5.index(n,l,w.country,i,O)),"_blank"):L(!0)}{h({open:!0,message:c(A.A.ERROR_404_SDS_MESSAGE),variant:k.m$.Error});let a=c(A.A.ERROR_404_SDS_MESSAGE).replace(".","").toLowerCase();(0,y.hO)({description:a,errorCategory:"file download errors",productId:null===(n=e.getSdsCertificateSearch)||void 0===n?void 0:null===(i=n.productNumber)||void 0===i?void 0:i.toLowerCase()})}},[B,{data:F}]=(0,I.b0)({onCompleted:e=>D(e),fetchPolicy:"no-cache"}),W=e=>(0,i.jsx)(j.A,{variant:"body2",style:{color:e?u.palette.error.main:u.palette.common.black},children:(0,i.jsxs)("b",{children:["* ",(0,i.jsx)(f.A,{...A.A.PRODUCT_NUMBER})]})});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.A,{variant:"h3",className:p.vr4,children:l}),(0,i.jsx)(j.A,{className:g(p.vr4,p.instructions),children:o}),!s&&(0,i.jsx)(j.A,{variant:"body2",className:p.vr4,children:(0,i.jsx)(f.A,{...A.A.INDICATES_REQUIRED_FIELD})}),(0,i.jsx)(S.l1,{validateOnBlur:!1,validateOnChange:!1,initialValues:{productNumber:""},onSubmit:(e,a)=>{var t;B({variables:{productNumber:(null===(t=e.productNumber)||void 0===t?void 0:t.trim())||""}}),a.setSubmitting(!1)},children:e=>(0,i.jsx)("div",{children:(0,i.jsxs)(S.lV,{"data-testid":"sds-search-form",children:[(0,i.jsx)("div",{className:p.vr6,children:(0,i.jsx)(S.D0,{name:"productNumber",label:W(e.errors.productNumber),component:R.A,placeholder:"e.g. T1503",filled:!0,id:"sds-product-number-field",inputProps:{"data-testid":"sds-product-number-field"},validate:(0,C.jr)(T.Yj().trim().required(c(A.A.PLEASE_ENTER_PRODUCT_NUMBER)))})}),(0,i.jsx)(N.A,{"data-testid":"sds-search-submit",id:"sds-search-submit",type:"submit",variant:"contained",color:"primary",className:p.submitButton,disabled:e.isSubmitting,"aria-label":"Submit",size:"large",children:(0,i.jsx)(f.A,{...A.A.SEARCH})})]})})}),x&&(null==F?void 0:null===(a=F.getSdsCertificateSearch)||void 0===a?void 0:a.sds)&&(null==F?void 0:null===(t=F.getSdsCertificateSearch)||void 0===t?void 0:t.brands)&&(0,i.jsx)(_.A,{open:x,setModalOpen:L,brands:null==F?void 0:null===(n=F.getSdsCertificateSearch)||void 0===n?void 0:n.brands,sdsDetails:F.getSdsCertificateSearch.sds,productNumber:null==F?void 0:null===(r=F.getSdsCertificateSearch)||void 0===r?void 0:r.productNumber,isAdvancedSearch:!0})]})};var w=t(70698);let O=(0,s.n9)()(e=>({vr4:{marginBottom:e.spacing(4)},vr8:{marginBottom:e.spacing(8)},tabs:{minHeight:35,"& .Mui-selected":{color:e.palette.common.black,opacity:1},"& .MuiTabs-indicator":{backgroundColor:e.palette.common.black,height:"4px"},[e.breakpoints.up("sm")]:{minHeight:48}},tab:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,height:"fit-content",lineHeight:"unset",marginRight:e.spacing(6),minHeight:"unset",minWidth:"auto",opacity:1,textTransform:"none",[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold}},tabpanel:{padding:0},divider:{marginBottom:e.spacing(4),[e.breakpoints.up("md")]:{marginBottom:e.spacing(8)}}}));var D=function(e){return e.CERTIFICATE_OF_ANALYSIS="CERTIFICATE_OF_ANALYSIS",e.CERTIFICATE_OF_ORIGIN="CERTIFICATE_OF_ORIGIN",e.CERTIFICATE_OF_QUALITY="CERTIFICATE_OF_QUALITY",e}({});let B=()=>{var e;let{classes:a}=O(),t=(0,d.A)(),{formatMessage:s}=(0,v.A)(),b=!0===(0,n.A)(t.breakpoints.up("md")),f=(0,m.rd)(),j=(null==f?void 0:null===(e=f.query)||void 0===e?void 0:e.tab)||"sds",N=(e,a,t)=>{let i=h.tq[null!=t?t:""];(0,y.pc)({...a||{action:"switch to ".concat(t," tab"),component:"body",elementType:"tab",elementText:i},event:"documentation_interaction",detail:"".concat(j," tab"),section:"document search",coreEvent:"no"})},C=[{value:"sds",label:s(A.A.SAFETY_DATA_SHEETS),content:(0,i.jsx)(L,{title:s(A.A.SAFETY_DATA_SHEETS_TITLE),instructions:s(A.A.SDS_INSTRUCTIONS)}),certificateType:null},{value:"coa",label:s(A.A.CERTIFICATES_OF_ANALYSIS),content:(0,i.jsx)(w.Ay,{type:x.e_.Coa,title:s(A.A.CERTIFICATE_OF_ANALYSIS_COA),productInput:!0,dontShowSampleLink:!0,instructions:s({id:"COA_INSTRUCTIONS",defaultMessage:"To search for a Certificate of Analysis (COA), please enter both the product number and the lot/batch number."}),allFieldsRequired:!0}),certificateType:x.e_.Coa},{value:"coo",label:s({id:"CERTIFICATE_OF_ORIGIN_COO",defaultMessage:"Certificates of Origin (COO)"}),content:(0,i.jsx)(w.Ay,{type:x.e_.Coo,title:s(A.A.CERTIFICATE_OF_ORIGIN_COO),productInput:!0,dontShowSampleLink:!0,instructions:s({id:"COO_INSTRUCTIONS",defaultMessage:"To search for a Certificate of Origin (COO), please enter both the product number and the lot/batch number."}),allFieldsRequired:!0}),certificateType:x.e_.Coo},{value:"coq",label:s(A.A.CERTIFICATES_OF_QUALITY),content:(0,i.jsx)(w.Ay,{type:x.e_.Coq,title:s(A.A.CERTIFICATES_OF_QUALITY_COQ),productInput:!0,dontShowSampleLink:!0,isBlueProduct:!0,instructions:s(A.A.COQ_INSTRUCTIONS),allFieldsRequired:!0}),certificateType:x.e_.Coq}];return(0,i.jsxs)(c.Ay,{value:j,children:[(0,i.jsx)(u.A,{onChange:(e,a)=>{f.push(m.HN.index(a.toLowerCase())),N("switch to "+j+" tab",void 0,a)},"aria-label":"documentation-tabs-".concat(j),"data-testid":"documentation-tabs",className:a.tabs,variant:"scrollable",children:C.map((e,t)=>{let{value:n,label:l}=e;return(0,i.jsx)(r.A,{label:l,value:n,className:a.tab},t)})}),(0,i.jsx)(l.A,{className:a.divider}),C.map((e,t)=>{let{value:n,content:r,certificateType:l}=e;return(0,i.jsx)(p.A,{value:n,className:a.tabpanel,children:(0,i.jsxs)(o.A,{container:!0,spacing:2,justifyContent:"space-between",direction:"row",children:[(0,i.jsx)(o.A,{item:!0,xs:12,md:6,className:b?a.vr8:void 0,children:r}),(0,i.jsx)(o.A,{item:!0,xs:12,md:5,children:(0,i.jsx)(g.A,{analyticsCallback:N,certificateType:l||void 0})})]})},t)})]})}},17215:(e,a,t)=>{t.d(a,{A:()=>s});var i=t(37876);t(14232);var n=t(64204),r=t(61261),l=t(43965);let o=(0,r.A)(e=>({root:{display:"table",fontWeight:e.typography.fontWeightRegular,fontSize:e.typography.pxToRem(12),color:e.palette.text.primary,background:e.palette.common.white,padding:e.spacing(2),borderRadius:"3px",border:"1px solid ".concat(e.palette.grey[500]),[e.breakpoints.up("md")]:{padding:e.spacing(1,1.5)}},closeBtn:{marginLeft:e.spacing(2),marginRight:"0 !important",fontSize:e.typography.pxToRem(10)},alignmentWrapper:{display:"flex",justifyContent:"center"}})),s=e=>{let{label:a,onDelete:t,dataTestId:r,ariaLabel:s}=e,d=o(),c="string"==typeof a?(0,i.jsx)("span",{children:a}):a;return(0,i.jsx)("div",{className:d.root,"data-testid":r,children:(0,i.jsxs)("div",{className:d.alignmentWrapper,children:[(0,i.jsx)("span",{children:c}),(0,i.jsx)(n.A,{"aria-label":s,className:d.closeBtn,onClick:t,children:(0,i.jsx)(l.A,{fontSize:"inherit",color:"primary"})})]})})}},19409:(e,a,t)=>{t.d(a,{A:()=>I});var i=t(37876),n=t(14232),r=t(8733),l=t(78206),o=t(44131),s=t(61261),d=t(12197),c=t(36503),u=t(5411),p=t(90079),m=t(37290),g=t(5325),h=t(77274),x=t(38582),y=t(82250),A=t(44601),v=t(86024),b=t(28975),f=t(34369),j=t(53471),N=t(11148),C=t(20534),T=t(11788);let S=(0,s.A)(e=>({closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(0),color:e.palette.secondary.main},dialogTitle:{margin:0,padding:e.spacing(2),backgroundColor:e.palette.background.grey},submitButton:{margin:e.spacing(0,2,2)},confirmTitle:{margin:e.spacing(2,0,5)}})),I=e=>{let a,t,s,{onClose:I,quoteData:k}=e,R=S(),_=(0,N.rd)(),[E]=(0,j.u7)(),{setSnackbar:P}=(0,x.W)(),{currentUser:M}=(0,T.iZ)(),[L,w]=(0,n.useState)({}),[O,D]=(0,n.useState)(!0);Array.isArray(k)||(a=null==k?void 0:k.material,t=null==k?void 0:k.product,s=null==k?void 0:k.quantity);let{rawYupSchema:{ccEmail:B,extension:F,fax:W,mobile:U,phone:z,required:q,requiredEmail:H}}=(0,h.dz)(),V=o.Ik().shape({ccForOrderConfEmailIds:B,email:H,extension:F,fax:W,firstName:q,mobile:U,telephone:z}),K=async(e,a)=>{(0,A.A)({top:0,left:0,behavior:"smooth"});try{if(k){var t,i,n,r,l;let a=Array.isArray(k)?{addressInfo:e,input:k.map(e=>{var a,t,i,n;return{materialNumber:null!==(i=null!==(t=null==e?void 0:e.materialNumber)&&void 0!==t?t:null==e?void 0:null===(a=e.material)||void 0===a?void 0:a.materialNumber)&&void 0!==i?i:"",quantity:null!==(n=e.quantity)&&void 0!==n?n:0}})}:{addressInfo:e,input:{materialNumber:null!==(n=null!==(i=null==k?void 0:k.materialNumber)&&void 0!==i?i:null==k?void 0:null===(t=k.material)||void 0===t?void 0:t.materialNumber)&&void 0!==n?n:"",quantity:null!==(r=k.quantity)&&void 0!==r?r:0}},{data:o}=await E({variables:a});o&&_.replace(N.q8.quoteDetail(null==o?void 0:null===(l=o.generateQuote)||void 0===l?void 0:l.orderNumber))}}catch(t){D(!1);let{errors:e}=(0,y.Mw)(t);if(e.length>0){let{code:a}=e[0];g.A[a]?P(x.iZ.CartErrorRequestingQuote,a):P(x.iZ.GenericError)}a.setSubmitting(!1)}};return(0,n.useEffect)(()=>{if(null==M?void 0:M.contactAddress){let{contactAddress:e}=M;w({firstName:"".concat(null==e?void 0:e.firstName," ").concat(null==e?void 0:e.lastName),email:null==e?void 0:e.email,telephone:null==e?void 0:e.telephone,extension:null==e?void 0:e.extension,mobile:null==e?void 0:e.mobilePhone,fax:null==e?void 0:e.fax}),D(!1)}},[]),O?(0,i.jsx)(C.A,{}):(0,i.jsx)(l.l1,{initialValues:L,onSubmit:K,enableReinitialize:!1,validateOnMount:!1,validationSchema:V,children:e=>{let{isSubmitting:n,handleSubmit:o}=e;return(0,i.jsx)(v.A,{open:!0,onClose:(e,a)=>I(a),size:v.I.Large,renderTitle:()=>(0,i.jsx)(d.A,{variant:"h2",children:(0,i.jsx)(r.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})}),children:(0,i.jsxs)(b.Uh,{children:[a&&t&&s?(0,i.jsx)(c.A,{container:!0,children:(0,i.jsx)(f.A,{material:a,product:t,quantity:s})}):null,(0,i.jsxs)(c.A,{className:R.confirmTitle,children:[(0,i.jsx)(d.A,{variant:"h3",children:(0,i.jsx)(r.A,{id:"CART_CONFIRM_BUYER_INFORMATION_TITLE",defaultMessage:"Confirm Buyer Information"})}),(0,i.jsx)(d.A,{children:(0,i.jsx)(r.A,{id:"REQUIRED_FIELD",defaultMessage:"* Required"})})]}),(0,i.jsxs)(c.A,{container:!0,spacing:3,children:[(0,i.jsxs)(c.A,{container:!0,item:!0,xs:12,spacing:2,children:[(0,i.jsxs)(c.A,{item:!0,xs:6,children:[(0,i.jsxs)("label",{htmlFor:"Contact Name",className:"inline-label",children:["* ",(0,i.jsx)(r.A,{...g.A.CONTACT_NAME})]}),(0,i.jsx)(l.D0,{name:"firstName",component:m.A,filled:!0})]}),(0,i.jsxs)(c.A,{item:!0,xs:6,children:[(0,i.jsxs)("label",{htmlFor:"email",className:"inline-label",children:["* ",(0,i.jsx)(r.A,{...g.A.EMAIL})]}),(0,i.jsx)(l.D0,{name:"email",component:m.A,filled:!0})]})]}),(0,i.jsxs)(c.A,{container:!0,item:!0,xs:12,spacing:2,children:[(0,i.jsxs)(c.A,{item:!0,xs:4,children:[(0,i.jsx)("label",{htmlFor:"Phone",className:"inline-label",children:(0,i.jsx)(r.A,{...g.A.CART_PHONE})}),(0,i.jsx)(l.D0,{name:"telephone",component:m.A,filled:!0})]}),(0,i.jsxs)(c.A,{item:!0,xs:3,children:[(0,i.jsx)("label",{htmlFor:"Extension",className:"inline-label",children:(0,i.jsx)(r.A,{...g.A.CART_EXT})}),(0,i.jsx)(l.D0,{name:"extension",component:m.A,filled:!0})]}),(0,i.jsxs)(c.A,{item:!0,xs:4,children:[(0,i.jsx)("label",{htmlFor:"Mobile",className:"inline-label",children:(0,i.jsx)(r.A,{...g.A.CART_MOBILE})}),(0,i.jsx)(l.D0,{name:"mobile",component:m.A,filled:!0})]})]}),(0,i.jsx)(c.A,{container:!0,item:!0,xs:12,children:(0,i.jsxs)(c.A,{item:!0,xs:4,children:[(0,i.jsx)("label",{htmlFor:"Fax",className:"inline-label",children:(0,i.jsx)(r.A,{...g.A.CART_FAX})}),(0,i.jsx)(l.D0,{name:"fax",component:m.A,filled:!0})]})})]}),(0,i.jsx)(b.fW,{children:(0,i.jsxs)(u.A,{variant:"contained",color:"primary",size:"large",className:R.submitButton,disabled:n,onClick:()=>o(),children:[n&&(0,i.jsx)(p.A,{size:30}),(0,i.jsx)(r.A,{...g.A.SUBMIT_REQUEST})]})})]})})}})}},19490:(e,a,t)=>{t.d(a,{A:()=>s});var i=t(37876);t(14232);var n=t(8733),r=t(99660),l=t(54753);let o=(0,r.A)(e=>({supplementary:{fontSize:e.typography.pxToRem(12),lineHeight:1.5}})),s=e=>{var a,t;let{promotional:r}=e,s=o(),{messageKey:d,messageValue:c,messageVariable1:u,messageVariable2:p,messageVariable3:m}=null!=r?r:{};if(d&&!c&&!l.A[d])return null;let g=null==c?void 0:null===(t=c.replace("%0","".concat(u)))||void 0===t?void 0:null===(a=t.replace("%1","".concat(p)))||void 0===a?void 0:a.replace("%2","".concat(m));return(0,i.jsx)("div",{children:d&&l.A[d]?(e=>(0,i.jsx)(n.A,{...l.A[e.messageKey],values:{messageVariable1:e.messageVariable1,messageVariable2:(0,i.jsx)("strong",{children:e.messageVariable2})},children:e=>(0,i.jsx)("div",{className:s.supplementary,children:e})}))(r):(0,i.jsx)(n.A,{id:"DEFAULT_PROMOTIONAL_MESSAGE",defaultMessage:"{messageValue}",values:{messageValue:g},children:e=>(0,i.jsx)("div",{className:s.supplementary,children:e})})})}},21018:(e,a,t)=>{t.d(a,{A:()=>i.A,O:()=>i.O});var i=t(47233)},21328:(e,a,t)=>{t.d(a,{O:()=>r});var i=t(11788),n=t(77660);let r=()=>{let e,a;let{isBlueErpIntegrationEnabled:t,userErpType:r,hasOnlyBlueERP:l,isDarmstadtUser:o}=(0,i.iZ)();return t?(o?e=n.Mh.B2b:l?e=n.Mh.Sialblue:(e=n.Mh.Sialpurple,r===n.zI.Anonymous||r===n.zI.NewUser||r===n.zI.Red?a="erp_type:borred":(r===n.zI.Blue||r===n.zI.Purple)&&(a="erp_type:borblue")),{catalogType:e,filter:a}):{}}},21341:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(7645),r=t(36503),l=t(35877),o=t(5493);let s=()=>{let e=(0,l.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{mb:12}),(0,i.jsx)(r.A,{container:!0,spacing:4,children:Array(12).fill({}).map((a,t)=>(0,i.jsx)(r.A,{item:!0,xs:6,sm:4,children:(0,i.jsx)(n.A,{border:1,borderColor:e.palette.grey["50"],mb:{xs:3,sm:6},p:{xs:2,sm:4},children:(0,i.jsxs)(r.A,{container:!0,direction:"column",spacing:2,children:[(0,i.jsx)(r.A,{item:!0,sm:12,children:(0,i.jsx)(o.A,{height:200,width:1})}),(0,i.jsx)(r.A,{item:!0,sm:12,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"},mb:{sm:2}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})})]})},t)},t))})]})};var d=t(93783),c=t(45249),u=t(15524);let p=e=>{let{view:a,error:t}=e,r=a===c.Z.list?d.A:s;return t?(0,i.jsx)(n.A,{display:"flex",flexDirection:"column",alignItems:"center",mt:20,children:(0,i.jsx)(u.A,{error:t})}):(0,i.jsx)(r,{})}},22071:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(49995),r=t(12197),l=t(24315),o=t(61261),s=t(8733),d=t(35967),c=t(61206);let u=(0,o.A)(e=>({loaderContainer:{display:"flex",margin:e.spacing(2,4,5,0)},chipContainer:{display:"inline-block",margin:e.spacing(2,2,5,0),[e.breakpoints.down("sm")]:{display:"flex",margin:e.spacing(2,2,4,0),overflowX:"scroll"}},chip:{border:"1px solid ".concat(e.palette.grey[500]),borderRadius:e.shape.borderRadius,color:e.palette.primary.main,margin:e.spacing(0,2,2,0),minWidth:88,padding:e.spacing(6,0),textAlign:"center","& .MuiChip-label":{padding:e.spacing(0,2)}},packSize:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(-1)},price:{fontSize:e.typography.pxToRem(12),lineHeight:"16px",letterSpacing:"-0.12px",fontWeight:e.typography.fontWeightRegular,color:e.palette.common.black},chipSelected:{backgroundColor:"#e7f3fb",color:e.palette.common.black,borderColor:e.palette.common.black,"&&:focus":{backgroundColor:"#e7f3fb"}},chipUnavailable:{backgroundColor:e.palette.grey[200],borderColor:e.palette.grey[300],color:e.palette.common.black},chipSelectedUnvailable:{borderColor:e.palette.primary.main},loader:{animation:"$fadeAnimation 0.7s ease-in-out infinite",backgroundColor:"#efefef",borderRadius:5,height:50,marginRight:e.spacing(2),opacity:0,width:88},"@keyframes fadeAnimation":{"0%, 100%":{opacity:1},"14.285714%":{opacity:.8},"28.571429%":{opacity:.6},"42.857143%":{opacity:.4},"57.142857%":{opacity:.2},"71.428571%":{opacity:.2},"85.714286%":{opacity:.2}}})),p=e=>{let{items:a,loading:t,onSelect:o,selectedChip:p,unavailableChips:m,loadCount:g=6}=e,h=u();return t?(0,i.jsx)("div",{className:h.loaderContainer,children:Array(g).fill({}).map((e,a)=>(0,i.jsx)("div",{className:h.loader,style:{animationDelay:"".concat(.1*a,"s")}},a))}):(0,i.jsx)("div",{className:h.chipContainer,children:a.map((e,a)=>{var t,u;let g=(null==e?void 0:e.value)===p,x=null==m?void 0:m.includes(null==e?void 0:e.value),y=null==e?void 0:null===(t=e.availabilities)||void 0===t?void 0:t.some(e=>null==e?void 0:e.displayInquireLink),A=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.A,{className:h.packSize,value:null==e?void 0:null===(u=e.packSize)||void 0===u?void 0:u.toUpperCase()}),(null==e?void 0:e.hidePriceMessageKey)?null:(0,i.jsx)("div",{className:h.price,children:y?(0,i.jsx)(r.A,{variant:"inherit",children:(0,i.jsx)(s.A,{id:"INQUIRE",defaultMessage:"Inquire"})}):(0,i.jsx)(d.Gr,{currency:null==e?void 0:e.currency,currencyDisplay:"symbol",style:"currency",value:null==e?void 0:e.price})})]});return(0,i.jsx)(l.A,{label:A,variant:"outlined",clickable:!0,onClick:()=>o(null==e?void 0:e.value),className:(0,n.A)(h.chip,{[h.chipSelected]:g,[h.chipUnavailable]:x,[h.chipSelectedUnvailable]:g&&x})},"".concat(a,"-").concat(null==e?void 0:e.packSize,"-").concat(null==e?void 0:e.value))})})}},25771:(e,a,t)=>{t.d(a,{A:()=>y});var i=t(37876),n=t(14232),r=t(49995),l=t(11148),o=t(52413),s=t(7645),d=t(61261),c=t(35877),u=t(69605),p=t(8733),m=t(54753),g=t(97710),h=t(92881);let x=(0,d.A)(e=>({root:{[e.breakpoints.down("sm")]:{flexFlow:"column"}},shipped:{[e.breakpoints.down("md")]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[e.breakpoints.down("sm")]:{marginTop:e.spacing(8),marginBottom:e.spacing(6)}},infoIcon:{transform:"scale(1.2)",color:e.palette.primary.main,height:e.spacing(4),verticalAlign:"bottom",cursor:"pointer"},contactIcon:{color:e.palette.grey[500],marginTop:3,marginRight:e.spacing(4),width:20,height:16},trustedInfo:{fontSize:e.typography.pxToRem(12)},verticalLine:{[e.breakpoints.up("md")]:{borderRight:"1px solid ".concat(e.palette.grey[400]),marginRight:e.spacing(10),paddingRight:e.spacing(10),lineHeight:e.typography.pxToRem(16)}},pointerCursor:{cursor:"pointer"},flexStart:{alignSelf:"flex-start"}})),y=e=>{let{className:a,isMarketplace:t,marketplaceSellerId:d="",marketplaceOfferId:y="",productAttributes:A,displaySellerName:v,hideMarketPlaceContactInfo:b}=e,f=x(),j=(0,c.A)(),N=(0,l.rd)(),C=v||(0,g.t1)(A),T=t&&!!d&&!!y&&!!C,[S,I]=(0,n.useState)(!1),k=()=>{I(e=>!e)};return T?(0,i.jsxs)(s.A,{display:"flex",className:(0,r.A)(f.root,a),children:[(0,i.jsxs)(s.A,{display:"flex",className:f.shipped,children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:"/static/package.svg",alt:"PDF Icon",className:f.contactIcon})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(p.A,{...m.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(o.N,{...l.kJ.index(C,d),children:(0,i.jsx)("a",{children:C})})]}),(0,i.jsxs)("div",{className:f.trustedInfo,children:[(0,i.jsx)(p.A,{...m.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(u.A,{className:f.infoIcon,onClick:k}),S&&(0,i.jsx)(h.A,{open:S,onCancel:k})]})]})]}),b?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{display:"flex",children:(0,i.jsx)("span",{className:f.verticalLine})}),(0,i.jsxs)(s.A,{display:"flex",className:f.flexStart,children:[(0,i.jsx)(s.A,{display:"flex",alignItems:"center",children:(0,i.jsx)("img",{src:"/static/contact.svg",alt:"PDF Icon",className:f.contactIcon})}),(0,i.jsxs)(s.A,{display:"flex",alignItems:"center",children:[(0,i.jsx)(p.A,{...m.A.CONTACT_SELLER_HAVE_QUESTION})," ",(0,i.jsx)(o.N,{...l.kJ.contact(C,d,N.asPath,l.C2.OFFER_MESSAGING,y),children:(0,i.jsx)(s.A,{display:"inline-block",marginLeft:j.spacing(.25),children:(0,i.jsx)("a",{className:f.pointerCursor,children:(0,i.jsx)(p.A,{...m.A.SELLER_CONTACT_SELLER})})})})]})]})]})]}):null}},26925:(e,a,t)=>{t.d(a,{A:()=>ec});var i=t(37876),n=t(71541),r=t(7645),l=t(12197),o=t(5411),s=t(34415),d=t(61261),c=t(35877),u=t(72185),p=t(52413),m=t(11148),g=t(77660),h=t(2184),x=t(88694),y=t(71007),A=t(88700),v=t(75020),b=t(23307),f=t(57548),j=t(97710),N=t(99486),C=t(11788),T=t(14232),S=t(8733),I=t(86367),k=t(35967),R=t(49995),_=t(78206),E=t(44478),P=t(68748),M=t(64204),L=t(54753);let w=(0,d.A)(e=>({submitButton:{marginTop:e.spacing(4)},linkButton:{width:"100%",color:e.palette.secondary.main,fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold},cannotAddToCart:{color:e.palette.error.main,fontWeight:e.typography.fontWeightBold}})),O=e=>{let{availabilityLoading:a,isSubmitting:t,canAddToCart:n,hideAddToCartForPrepackItems:r,anonymousUser:l}=e,s=w(),d=(0,m.rd)();return r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:s.cannotAddToCart,children:(0,i.jsx)(S.A,{id:"CANNOT_ADD_TO_CART",defaultMessage:"Cannot Add To Cart"})}),(0,i.jsx)(S.A,{id:"CANNOT_ADD_TO_CART_DETAILS",defaultMessage:"Your profile is currently configured to allow ordering for configurable items such as oligos and peptides but not regular inventory items. Although you can access pricing and availability for these products, they cannot be added to your shopping cart."})]}):n?(0,i.jsx)(o.A,{type:"submit",className:s.submitButton,variant:"contained",color:"primary",size:"large",fullWidth:!0,disabled:a||t,id:"submit-button-add-to-cart",children:(0,i.jsx)(S.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})}):l?(0,i.jsx)(p.N,{passHref:!0,href:"".concat(m.VV.index(),"?redirect=").concat(encodeURIComponent(d.asPath||m.xn.index())),children:(0,i.jsx)(M.A,{className:s.linkButton,id:"submit-button-login-to-add-to-cart",children:(0,i.jsx)(S.A,{...L.A.LOGIN_TO_ADD_TO_CART})})}):(0,i.jsx)(p.N,{passHref:!0,href:"".concat(m.R6.linkProfile(),"?returnUrl=").concat(encodeURIComponent(d.asPath||m.xn.index())),children:(0,i.jsx)(M.A,{className:s.linkButton,children:(0,i.jsx)(S.A,{...L.A.LINK_PROFILE})})})};var D=t(36382),B=t(10113),F=t(89099),W=t(776),U=t(88887);let z=(0,d.A)(e=>({materialSelect:{marginBottom:e.spacing(3),"& .MuiSelect-selectMenu":{fontSize:e.typography.pxToRem(16)},"& $optionPrice":{display:"none"}},option:{width:"100%",display:"flex",justifyContent:"space-between"},optionPrice:{},quantityInput:{fontWeight:e.typography.fontWeightMedium},listPrice:{fontSize:e.typography.pxToRem(16),lineHeight:1,textDecoration:"line-through",color:e.palette.error.main},price:{fontSize:e.typography.pxToRem(36),fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(1),[e.breakpoints.down("md")]:{fontSize:e.typography.pxToRem(20)}},multiCountryTable:{paddingBottom:e.spacing(7)}})),q=e=>{let{materialPricing:a,country:t,productNumber:n,canAddToCart:l,anonymousUser:o,marketplaceOfferId:s}=e,d=z(),c=(0,F.useRouter)(),u={materialNumber:a[0].materialNumber,quantity:1,material:a[0]},[p,m]=(0,T.useState)(u),g=(0,D.g9)(),{getSitePreference:h}=(0,C.iZ)(),x=h(C.VD.HideAddToCartForPrepackItems);return(0,T.useMemo)(()=>m(u),[n]),(0,i.jsx)(_.l1,{initialValues:p,onSubmit:(e,t)=>{let{setSubmitting:i,resetForm:n}=t,r=a.filter(a=>[e].filter(e=>e.materialNumber===(null==a?void 0:a.materialNumber))[0]);(0,W.xy)({items:r,productListPageName:c.asPath.includes("/search")?W.L1.SearchResultPage:W.L1.ProductDetailPage}),g([{materialNumber:e.materialNumber,quantity:e.quantity,marketplaceOfferId:s}],i,n,"marketplace"===a[0].catalogType)},enableReinitialize:!0,children:e=>{var n;let{values:s,isSubmitting:c,initialValues:u}=e,m=s.material;return p.materialNumber!==u.materialNumber?null:(0,i.jsx)(_.lV,{children:(0,i.jsxs)("div",{className:(0,R.A)(t&&d.multiCountryTable),children:[(0,i.jsx)(r.A,{mb:1,children:(0,i.jsx)("label",{htmlFor:"TEMP",children:(0,i.jsx)(S.A,{...L.A.SKU})})}),(0,i.jsx)(_.D0,{name:"materialNumber",children:e=>{var t;let{form:n,field:r,meta:l}=e;return(0,i.jsx)(E.A,{filled:!0,field:r,meta:l,form:n,size:"large",className:d.materialSelect,onChange:e=>{r.onChange(e),n.setFieldValue("quantity",1)},disabled:!!(null==m?void 0:null===(t=m.availabilities)||void 0===t?void 0:t.length),options:a.map(e=>({label:(0,i.jsxs)("div",{className:d.option,children:[(0,i.jsx)("div",{children:e.materialNumber}),e.price?(0,i.jsx)("div",{className:d.optionPrice,children:(0,i.jsx)(k.Gr,{style:"currency",currencyDisplay:"symbol",currency:e.currency,value:e.price})}):(0,i.jsx)(S.A,{...L.A.UNAVAILABLE})]}),value:e.materialNumber}))})}}),m.price&&m.listPrice&&m.listPrice>m.price?(0,i.jsx)("div",{className:d.listPrice,children:(0,i.jsx)(k.Gr,{style:"currency",currencyDisplay:"symbol",currency:m.currency,value:m.listPrice})}):null,(0,i.jsx)(r.A,{display:"flex",alignItems:"center",children:!!m.price&&(0,i.jsx)("div",{className:d.price,children:(0,i.jsx)(k.Gr,{style:"currency",currencyDisplay:"symbol",currency:m.currency,value:m.price})})}),(0,i.jsx)(r.A,{mb:6,mt:4,children:(0,i.jsx)(U.A,{material:m,canAddToCart:l})}),(0,i.jsx)(B.A,{quantity:m.quantity,materialNumber:m.materialNumber,brand:null==m?void 0:m.brand,productName:null==m?void 0:m.materialDescription,productId:null==m?void 0:m.product}),l&&!x?(0,i.jsx)(_.D0,{name:"quantity",children:e=>{var a;let{form:t,field:n}=e;return(0,i.jsx)(P.A,{...n,size:"large",className:d.quantityInput,filled:!0,onChange:e=>{t.setFieldValue(n.name,e)},min:1,onBlur:()=>{n.value<1&&t.setFieldValue(n.name,1)},disabled:!!(null==m?void 0:null===(a=m.availabilities)||void 0===a?void 0:a.length),inputProps:{inputMode:"numeric"}})}}):null,!t&&(0,i.jsx)(O,{isSubmitting:c,availabilityLoading:!!(null==m?void 0:null===(n=m.availabilities)||void 0===n?void 0:n.length),canAddToCart:l,hideAddToCartForPrepackItems:x,anonymousUser:o})]})})}})},H=e=>{let{materialPricing:a,country:t,productNumber:n,canAddToCart:r,anonymousUser:l,marketplaceOfferId:o}=e;return(null==a?void 0:a.length)?(0,i.jsx)(q,{materialPricing:a,country:t,productNumber:n,canAddToCart:r,anonymousUser:l,marketplaceOfferId:o}):null};var V=t(25771),K=t(84119),G=t(86680),Q=t(4009),$=t(71662),Y=t(61622),X=t(40002),J=t(40352),Z=t(81232),ee=t(52710);let ea=e=>{let{country:a,currentDtaqDealer:t,materialPricing:n,canAddToCart:r,PricingComponent:l=Q.A,displayPromotionalBundlesAnchor:o,displaySDS:s,ctas:d,discontinuedPricingInfo:c,productName:u,displaySellerName:p,productKey:m,productDescription:g,productId:h,images:x,brandKey:y,gaType:A,gaMapProducts:v,addToList:b,condensed:f=!1,isMarketplace:j,isMarketplaceCartEnabled:N,marketplaceSellerId:S,marketplaceOfferId:I,productAttributes:k,onAddToCartResult:R,handlePriceUpdateForDealer:E,updateQuantity:P,erpType:M,dChainMessage:L}=e,w=(0,F.useRouter)(),O=(0,J.Ay)(),B=(0,D.g9)(),{getSitePreference:U,isDTAQZuCustomer:z,isBlueErpIntegrationEnabled:q,isB2BUser:H,userErpType:V}=(0,C.iZ)(),K=w.asPath.includes("/compare"),ea=U(C.VD.HideAddToCartForPrepackItems),et=(0,T.useContext)(ee.E);if(c){let e=K?null:null==c?void 0:c.replacementProducts,a=(0,Y.j)(e);return(0,i.jsxs)(ee.M,{...et,replacementProducts:e,children:[(0,i.jsx)(Z.A,{discontinuedPricingInfo:c}),a&&(0,i.jsx)($.A,{type:X.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:m,brandKey:y,images:x},products:a,slidesToShow:O({xs:1,sm:2,lg:3}),withoutControls:a.length<=4})]})}if(!(null==n?void 0:n.length))return null;let ei=z?U(C.VD.PreferredDealerId):null;return(0,i.jsx)(_.l1,{enableReinitialize:!0,initialValues:((e,a)=>e?e.reduce((e,t,i)=>{let{materialNumber:n,marketplaceOfferId:r}=t;return{...e,[i]:{materialNumber:n,marketplaceOfferId:r,quantity:"",dealerId:a}}},{}):[])(n,ei),onSubmit:(e,a)=>{let{setSubmitting:i,resetForm:r}=a,l=Object.keys(e).map(a=>({materialNumber:e[a].materialNumber,quantity:Number(e[a].quantity),dealerId:t,marketplaceOfferId:e[a].marketplaceOfferId})).filter(e=>e.quantity),o=n.filter(e=>l.filter(a=>a.materialNumber===(null==e?void 0:e.materialNumber))[0]);(0,G.p8)(l,n,A,v,M,{isBlueErpIntegrationEnabled:q,isB2BUser:H,userErpType:V}),b?b(l):((0,W.xy)({items:o,productListPageName:w.asPath.includes("/search")?W.L1.SearchResultPage:W.L1.ProductDetailPage}),B(l,i,r,j).then(R))},children:e=>{let{isSubmitting:t,dirty:c,submitForm:m,resetForm:x,setFieldValue:y,values:A}=e;return(0,i.jsx)(_.lV,{children:(0,i.jsx)(l,{country:a,productName:u,displaySellerName:p,productDescription:g,productId:h,materialPricing:n,canAddToCart:r,hideAddToCartForPrepackItems:ea,isSubmitting:t,dirty:c,submitForm:m,resetForm:x,displayPromotionalBundlesAnchor:o,displaySDS:s,ctas:d,isAddToList:!!b,condensed:f,setFieldValue:y,values:A,isMarketplace:j,isMarketplaceCartEnabled:N,marketplaceSellerId:S,marketplaceOfferId:I,productAttributes:k,handlePriceUpdateForDealer:E,updateQuantity:P,erpType:M,dChainMessage:L})})}})};var et=t(29394),ei=t(65264),en=t(32588),er=t(17685),el=t(16193),eo=t(89212),es=t(38882);let ed=(0,d.A)(e=>({bulkOrderWrapper:{display:"flex",justifyContent:"center",marginTop:e.spacing(4)},dchainMessage:{alignItems:"center",borderRadius:0,justifyContent:"center",padding:e.spacing(.2,0)},tabs:{color:e.palette.primary.main,"& .Mui-selected":{color:e.palette.common.black},"& .MuiTabs-indicator":{backgroundColor:e.palette.common.black,height:e.spacing(1)},[e.breakpoints.down("md")]:{paddingBottom:e.spacing(5),"& .MuiTabs-indicator":{height:e.spacing(.5)}}},tab:{fontSize:e.typography.pxToRem(18),paddingBottom:0,fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(6),textTransform:"capitalize",minWidth:"auto",opacity:1,[e.breakpoints.down("md")]:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,marginRight:0}},page:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold,padding:e.spacing(10),margin:e.spacing(2,0),border:"2px solid #222",borderRadius:e.spacing(1),backgroundColor:e.palette.common.white},pricingTableContainer:{margin:0}})),ec=e=>{var a,t,d,k,R,_,E,P,M,L,w,O,D,B;let{queryFocus:F,productNumber:W,productDescription:U,images:z,materialIds:q,brandKey:G,LoadingComponent:Q=et.A,ErrorComponent:$=K.A,PricingComponent:Y,displayPromotionalBundlesAnchor:X,displayAllCountries:J=!0,checkForPb:Z,ctas:ec,productName:eu,productId:ep,displaySellerName:em,productDetailEvent:eg,gaType:eh=A.k9.Others,gaMapProducts:ex,addToList:ey,pricingExpanded:eA=!1,condensed:ev=!1,sendPandAEvent:eb=!1,isMarketplace:ef=!1,marketplaceSellerId:ej,marketplaceOfferId:eN,productAttributes:eC,usePricingComponentOnMobile:eT,onAddToCartResult:eS,setProductIsAvailable:eI,displayCompareMarketplaceSellerContact:ek=!1,productKey:eR,erp_type:e_,quantity:eE=1,isBBE:eP,eventSentRef:eM}=e,eL=ed(),ew=(0,m.rd)(),eO=(0,c.A)(),eD=(0,n.A)(eO.breakpoints.down("xs")),{focus:eB="",catalogType:eF="",context:eW=""}=ew.query||{},eU=(0,b.y5)(eW),{getSitePreference:ez,isDTAQZuCustomer:eq,isMultiCountryUser:eH,currentUser:eV,isBlueErpIntegrationEnabled:eK,isB2BUser:eG,userErpType:eQ}=(0,C.iZ)(),{userSession:{country:e$}}=(0,er.j)(),{authorized:eY,anonymous:eX}=(0,N.I)(N.N.canAddToCart),eJ=eH&&J,eZ=W.startsWith("CB_"),[e0,{data:e1,loading:e2,error:e4,refetch:e7}]=(0,x.Gb)({fetchPolicy:eq?"no-cache":"cache-first"}),e3=(0,T.useContext)(ee.E),[e6,{data:e8,loading:e5,error:e9,refetch:ae,called:aa}]=(0,h.Fo)(),at=eq?ez(C.VD.PreferredDealerId):null,[ai,an]=(0,T.useState)(at),[ar,al]=(0,T.useState)(e$),ao=ez(C.VD.CatalogFilter),as=ef?g.Mh.Marketplace:null,ad=eP?g.Mh.Buildingblocks:void 0,ac=eK&&e_&&(null==e_?void 0:e_.length)>0,au={variables:{productNumber:W,materialIds:q,brand:G,quantity:eE,catalogType:(0,j.vN)(ad||as||eF||F||eB||eU),orgId:ao,checkForPb:Z,displaySDS:eZ,dealerId:"",checkBuyNow:!0,productKey:eR,...ac&&{erp_type:e_}}},ap=(0,es.h)(e8,(e,a)=>{al(a)});(0,T.useEffect)(()=>{let e=window.navigator.userAgent,a=(0,eo.A)(e),t={variables:{...au.variables,cachedPriceOnly:a}};W&&(eJ?e6(au):e0(t))},[eJ,e6,e0,W,eE]),(0,T.useEffect)(()=>{var e,a;if(eJ&&(null==e8?void 0:null===(e=e8.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length)){let[e]=null==e8?void 0:e8.getPricingForMultiCountryProducts;al(null!==(a=null==e?void 0:e.country)&&void 0!==a?a:e$)}},[null==e8?void 0:e8.getPricingForMultiCountryProducts]),(0,T.useEffect)(()=>{var e,a;let t=null==e1?void 0:null===(e=e1.getPricingForProduct)||void 0===e?void 0:e.materialPricing;eg&&(t||e4)&&(0,y.x)(t||[],eu,W,G,ef,e_||[],{isBlueErpIntegrationEnabled:eK,isB2BUser:eG,userErpType:eQ}),e4&&eh!==A.k9.PaperDetails&&eh!==A.k9.ProductCompare&&((0,v.ds)(W,e4,"PRODUCT_SOLD_EXCLUSIVELY_BY_MILLIPORE_VIA_OFFLINE_CHANNELS",G,eu),"function"==typeof eI&&eI(!1)),(null==e1?void 0:null===(a=e1.getPricingForProduct)||void 0===a?void 0:a.discontinuedPricingInfo)&&!(null==eM?void 0:eM.current)&&((0,v.ds)(null!=W?W:"",void 0,"THIS_PRODUCT_DISCONTINUED",null!=G?G:"",null!=eu?eu:""),eM&&(eM.current=!0))},[e1,e4]);let[am,ag]=T.useState();(0,T.useEffect)(()=>{var e,a;if(null==e8?void 0:null===(e=e8.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let e=null==e8?void 0:e8.getPricingForMultiCountryProducts.find(e=>(null==e?void 0:e.country)===ar);return ag(null==e?void 0:e.dchainMessage)}ag(null==e1?void 0:null===(a=e1.getPricingForProduct)||void 0===a?void 0:a.dchainMessage)},[e1,e8]),(0,T.useEffect)(()=>{am&&eh!==A.k9.PaperDetails&&eh!==A.k9.ProductCompare&&(0,v.ds)(W,void 0,am,G||"",eu||"")},[am]),(0,T.useEffect)(()=>{(am||e4||e9&&eA&&eh===A.k9.PaperDetails)&&(0,v.ds)(W,e4||e9,am||"",G||"",eu||"")},[eA]),(0,T.useEffect)(()=>{var e,a;let t=(null==e8?void 0:null===(e=e8.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length)?null==e8?void 0:null===(a=e8.getPricingForMultiCountryProducts[0])||void 0===a?void 0:a.materialPricing:void 0;eg&&(t||e9)&&(0,y.x)(t||[],eu,W,G),e9&&eh!==A.k9.PaperDetails&&eh!==A.k9.ProductCompare&&(0,v.ds)(W,e9,void 0,G||"",eu||"")},[e5]);let ah=async(e,a,t,i,n)=>(e&&(an(e),au.variables.dealerId=e),e0(au),n(!1)),ax=(0,T.useCallback)(e=>eJ?ae({...au.variables,quantity:e}):e7({...au.variables,quantity:e}),[e1||e8]);(0,T.useEffect)(()=>{var e;let a=null==e1?void 0:null===(e=e1.getPricingForProduct)||void 0===e?void 0:e.dchainMessage;!e2&&eb&&a&&eh===A.k9.ProductCompare&&(0,v.ds)(W,void 0,a,G||"",eu||"")},[e2]);let ay=!!e1||!!e8;if((e2||e5)&&!ay)return(0,i.jsx)(Q,{displaySDS:eZ});if(e4||e9||aa&&!(e8||e1))return(0,i.jsx)(ee.M,{...e3,brand:G,item:W,children:(0,i.jsx)($,{handlePriceUpdateForDealer:ah,materialPricing:[{materialNumber:au.variables.productNumber,brand:G,listPrice:0,productGroupSBU:""}],error:e4||e9,productNumber:W,isMarketplace:ef,sellerName:em||(0,j.t1)(eC),marketplaceSellerId:ej,marketplaceOfferId:eN})});if((null==e1?void 0:e1.getPricingForProduct.productInfo)&&(null==e1?void 0:e1.getPricingForProduct.productInfo.length)){let e=null==e1?void 0:null===(O=e1.getPricingForProduct.productInfo[0])||void 0===O?void 0:O.message;if(e)return(0,i.jsx)(ei.A,{country:e$,brandKey:null!=G?G:"",productNumber:null!==(B=null==e1?void 0:null===(D=e1.getPricingForProduct.productInfo[0])||void 0===D?void 0:D.productNumber)&&void 0!==B?B:"",productMessage:e})}return eJ?(0,i.jsxs)(i.Fragment,{children:[am&&"PRODUCT_DISCONTINUED_BUT_AVAILABLE_FOR_PURCHASE"!==am&&(0,i.jsx)(r.A,{my:2,children:(0,i.jsx)(u.A,{severity:"error",icon:(0,i.jsx)(el.A,{}),className:eL.dchainMessage,children:(0,i.jsx)(S.A,{...f.A[am],values:{productNumber:(0,i.jsx)("b",{children:W})}})})}),!eT&&eD&&(0,i.jsx)(r.A,{children:(0,i.jsx)(l.A,{variant:"h3",children:(0,i.jsx)(S.A,{id:"PRICING_AND_AVAILABILITY_HEADING",defaultMessage:"Select an Option"})})}),(null==e8?void 0:null===(a=e8.getPricingForMultiCountryProducts)||void 0===a?void 0:a.length)?ap:null,(null==e8?void 0:null===(t=e8.getPricingForMultiCountryProducts)||void 0===t?void 0:t.length)?null==e8?void 0:e8.getPricingForMultiCountryProducts.map(e=>{if(ar===(null==e?void 0:e.country)){var a;return(null==e?void 0:e.materialPricing)&&(0,i.jsxs)(i.Fragment,{children:[!eT&&eD&&(0,i.jsx)(r.A,{children:(0,i.jsx)(H,{country:null==e?void 0:e.country,materialPricing:null==e?void 0:e.materialPricing,productNumber:W,canAddToCart:!1,anonymousUser:eX,marketplaceOfferId:eN})}),(0,i.jsx)(r.A,{display:eT?void 0:{xs:"none",sm:"block"},className:eL.pricingTableContainer,"data-testid":"pricing-availability-".concat(G).concat(W),id:"pricing-availability-".concat(G).concat(W),mt:3,children:(0,i.jsx)(ea,{country:null==e?void 0:e.country,currentDtaqDealer:ai,materialPricing:null==e?void 0:e.materialPricing,discontinuedPricingInfo:null==e?void 0:e.discontinuedPricingInfo,productName:null!=eu?eu:"",displaySellerName:null!=em?em:"",productKey:eR,images:z,canAddToCart:!1,PricingComponent:Y,displayPromotionalBundlesAnchor:X,displaySDS:eZ,ctas:ec,brandKey:G,gaType:eh,gaMapProducts:ex,condensed:ev,isMarketplace:ef,isMarketplaceCartEnabled:!!(null==eV?void 0:null===(a=eV.metadata)||void 0===a?void 0:a.isMarketplaceCartEnabled),marketplaceSellerId:ej,marketplaceOfferId:eN,productAttributes:eC,handlePriceUpdateForDealer:ah,updateQuantity:ax,erpType:e_||[],dChainMessage:null==e?void 0:e.dchainMessage})})]})}return null}):null]}):(null==e1?void 0:e1.getPricingForProduct.materialPricing.length)||(null==e1?void 0:e1.getPricingForProduct.discontinuedPricingInfo)?(0,i.jsxs)(i.Fragment,{children:[am&&"PRODUCT_DISCONTINUED_BUT_AVAILABLE_FOR_PURCHASE"!==am&&(0,i.jsx)(r.A,{my:2,children:(0,i.jsxs)(u.A,{severity:"error",icon:(0,i.jsx)(el.A,{}),className:eL.dchainMessage,children:[(0,i.jsx)(S.A,{...f.A[am],values:{productNumber:(0,i.jsx)("b",{children:W})}})," ",ef&&(0,i.jsx)(p.N,{...m.kJ.contact(em||(0,j.t1)(eC),ej,ew.asPath,m.C2.OFFER_MESSAGING,eN),children:(0,i.jsx)("a",{children:(0,i.jsx)(S.A,{id:"CONTACT_SELLER_WITH_NAME",defaultMessage:"Contact {sellerName}.",values:{sellerName:(0,j.t1)(eC)}})})})]})}),!eT&&eD&&(0,i.jsxs)(r.A,{children:[(null==e1?void 0:null===(d=e1.getPricingForProduct)||void 0===d?void 0:d.discontinuedPricingInfo)?null:(0,i.jsx)(r.A,{mb:4,children:(0,i.jsx)(l.A,{variant:"h3",component:"h3",children:(0,i.jsx)(S.A,{id:"PRICING_AND_AVAILABILITY_HEADING",defaultMessage:"Select an Option"})})}),(0,i.jsx)(I.A,{productKey:eR,brandKey:G,productName:null!=eu?eu:"",images:z,discontinuedPricingInfo:null==e1?void 0:null===(k=e1.getPricingForProduct)||void 0===k?void 0:k.discontinuedPricingInfo,materialPricing:null==e1?void 0:null===(R=e1.getPricingForProduct)||void 0===R?void 0:R.materialPricing,canAddToCart:eY&&!eH&&(!ef||ef&&!!(null==eV?void 0:null===(_=eV.metadata)||void 0===_?void 0:_.isMarketplaceCartEnabled)),renderSecondaryAction:()=>{let e=null==ec?void 0:ec.find(e=>"bulk order"===e.type),a=null==ec?void 0:ec.find(e=>"bulk order"!==e.type);return(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)(r.A,{mt:4,children:(0,i.jsx)(o.A,{component:"a",target:"_blank",href:a.url,variant:"outlined",size:"large",color:"primary",fullWidth:!0,children:a.label})}),!!e&&!ef&&(0,i.jsx)("div",{className:eL.bulkOrderWrapper,children:(0,i.jsx)(p.N,{href:e.url,passHref:!0,children:(0,i.jsx)(s.A,{"data-testid":"p&a-request-bulk-link",color:"primary",target:"_blank",children:e.label})})})]})},marketplaceOfferId:eN}),(0,i.jsx)(V.A,{isMarketplace:ef,marketplaceSellerId:ej,marketplaceOfferId:eN,productAttributes:eC,displaySellerName:em})]}),eD||ew.asPath.includes("/compare")?null:(0,i.jsx)(en.A,{mb:4}),(0,i.jsx)(r.A,{width:"100%",display:eT?void 0:{xs:"none",sm:"block"},"data-testid":"pricing-availability-".concat(G).concat(W),id:"pricing-availability-".concat(G).concat(W),mt:3*!ev,children:(0,i.jsx)(ea,{currentDtaqDealer:ai,materialPricing:null==e1?void 0:null===(E=e1.getPricingForProduct)||void 0===E?void 0:E.materialPricing,discontinuedPricingInfo:null==e1?void 0:null===(P=e1.getPricingForProduct)||void 0===P?void 0:P.discontinuedPricingInfo,productKey:eR,productDescription:U,productName:null!=eu?eu:"",productId:ep,displaySellerName:null!=em?em:"",images:z,canAddToCart:eY&&!eH&&(!ef||ef&&!!(null==eV?void 0:null===(M=eV.metadata)||void 0===M?void 0:M.isMarketplaceCartEnabled)),PricingComponent:Y,displayPromotionalBundlesAnchor:X,displaySDS:eZ,ctas:ec,brandKey:G,gaType:eh,gaMapProducts:ex,addToList:ey,condensed:ev,isMarketplace:ef,isMarketplaceCartEnabled:!!(null==eV?void 0:null===(L=eV.metadata)||void 0===L?void 0:L.isMarketplaceCartEnabled),marketplaceSellerId:ej,marketplaceOfferId:eN,productAttributes:eC,onAddToCartResult:eS,handlePriceUpdateForDealer:ah,updateQuantity:ax,displayCompareMarketplaceSellerContact:ek,erpType:e_||[],dChainMessage:null==e1?void 0:null===(w=e1.getPricingForProduct)||void 0===w?void 0:w.dchainMessage})})]}):aa?(0,i.jsx)($,{handlePriceUpdateForDealer:ah,materialPricing:[{materialNumber:au.variables.productNumber,brand:G,listPrice:0,productGroupSBU:""}]}):null}},27447:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876),n=t(14232),r=t(61261),l=t(66561),o=t(40597),s=t(14810),d=t(8733);let c=(0,r.A)(e=>({tooltip:{fontSize:e.typography.pxToRem(11)},materialNumberText:{cursor:"pointer",transition:"background 100ms","&:hover":{backgroundColor:"#afd2fc"}}})),u=()=>(0,i.jsxs)("span",{children:[(0,i.jsx)(s.A,{style:{marginRight:6},fontSize:"inherit"}),(0,i.jsx)(d.A,{id:"COPIED_TO_CLIPBOARD",defaultMessage:"Copied to Clipboard"})]}),p=e=>{let{materialNumber:a}=e,t=c(),[r,s]=n.useState(!1),d=()=>{s(!1)},p=()=>{s(!0)},m=e=>{navigator.clipboard.writeText(e),p(),setTimeout(()=>{d()},750)};return(0,i.jsx)(l.A,{onClickAway:d,children:(0,i.jsx)(o.Ay,{PopperProps:{disablePortal:!0},onClose:d,open:r,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:(0,i.jsx)(u,{}),placement:"bottom",classes:{tooltip:t.tooltip},children:(0,i.jsx)("span",{"aria-hidden":"true",onClick:()=>m(a),onKeyDown:()=>m(a),className:t.materialNumberText,children:a})})})}},28907:(e,a,t)=>{t.d(a,{A:()=>u,h:()=>p});var i=t(37876),n=t(49794),r=t(11148),l=t(52413),o=t(97710),s=t(61206),d=t(34415),c=t(77660),u=function(e){return e.NAME="NAME",e.DESCRIPTION="DESCRIPTION",e}({});let p=e=>{let{product:a,focus:t,label:u,onProductLinkClick:p,productNameClass:m,productDescriptionClass:g,productLinkType:h,productName:x,productDescription:y}=e,A="isBBE"in a&&a.isBBE?c.Mh.Buildingblocks:void 0;return(0,i.jsx)(i.Fragment,{children:a.brand.key&&a.productNumber?(0,i.jsx)(l.N,{...r.aR.index(a.brand.key,a.productKey,{catalog:(0,o.vN)(null!=A?A:t)}),passHref:!0,children:(0,i.jsx)(d.A,{"data-testid":"".concat(h,"-pdp-link-").concat(a.productNumber,"-").concat(a.brand.key),id:"".concat(h,"-pdp-link-").concat(a.productNumber,"-").concat(a.brand.key),className:m,"aria-label":"".concat(h,"-pdp-link-").concat(a.productNumber,"-").concat(a.brand.key),onClick:()=>null==p?void 0:p(),children:"DESCRIPTION"===h?(0,i.jsxs)(n.A,{variant:"body2",children:[x&&m&&(0,i.jsx)(s.A,{value:x+", ",className:m}),(0,i.jsx)(s.A,{value:y,className:g})]}):u})}):"DESCRIPTION"===h?(0,i.jsx)(s.A,{value:a.description}):u})}},29394:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876);t(14232);var n=t(49995),r=t(77742),l=t(61261),o=t(7645),s=t(43923),d=t(54753);let c=(0,l.A)(e=>({tRow:{display:"flex",alignItems:"center","& > div":{width:"25%"},textAlign:"center"},tHeadRow:{fontWeight:e.typography.fontWeightBold,paddingBottom:e.spacing(2)},tBodyRow:{padding:e.spacing(3,0),borderBottom:"1px solid ".concat(e.palette.grey[300]),"&:first-of-type":{borderTop:"1px solid ".concat(e.palette.grey[300])}},loadingBox:{backgroundImage:"linear-gradient(to right, #cfcfcf, #e0e0e0 25%, #f9f9f9, #e0e0e0 75%, #cfcfcf)",animationDuration:"2s",animationDelay:"0s",animationTimeFunction:"ease-in",backgroundColor:e.palette.grey[50]}})),u=e=>{let{displaySDS:a}=e,t=c(),{formatMessage:l}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.A,{display:["block","none"],children:[(0,i.jsx)(s.A,{height:20,width:.4,marginBottom:3}),(0,i.jsx)(s.A,{height:40,width:.75,marginBottom:4}),(0,i.jsxs)(o.A,{display:"flex",marginBottom:4,children:[(0,i.jsx)(s.A,{height:24,width:24,marginRight:3,style:{borderRadius:"50%"}}),(0,i.jsxs)(o.A,{flex:1,children:[(0,i.jsx)(s.A,{height:14,width:.9,marginBottom:2}),(0,i.jsx)(s.A,{height:14,width:.7})]})]}),(0,i.jsx)(s.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(s.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(s.A,{height:40,width:1})]}),(0,i.jsxs)(o.A,{display:["none","block"],children:[(0,i.jsxs)("div",{className:(0,n.A)(t.tRow,t.tHeadRow),children:[(0,i.jsx)("div",{children:l(d.A.SKU)}),(0,i.jsx)("div",{children:l(d.A.PACK_SIZE)}),(0,i.jsx)("div",{children:l(d.A.AVAILABILITY)}),a&&(0,i.jsx)("div",{children:l(d.A.SDS)}),(0,i.jsx)("div",{children:l(d.A.PRICE)}),(0,i.jsx)("div",{children:l(d.A.QUANTITY)})]}),(0,i.jsx)("div",{children:[,,,].fill({}).map((e,r)=>(0,i.jsx)("div",{className:(0,n.A)(t.tRow,t.tBodyRow),children:Array(a?6:5).fill({}).map((e,a)=>(0,i.jsx)("div",{children:(0,i.jsx)(s.A,{height:28,width:.9,borderRadius:"borderRadius",className:t.loadingBox})},a))},r))})]})]})}},30510:(e,a,t)=>{t.d(a,{T:()=>ex,A:()=>eA});var i=t(37876),n=t(14232),r=t(61261),l=t(78206),o=t(8733),s=t(77742),d=t(90079),c=t(5411),u=t(32768),p=t(72214),m=t(28975),g=t(77660),h=t(28888),x=t(82897),y=t(54431);function A(){let e=(0,h._)(["\n query ProductPAMessage($brandKey: String!, $productKey: String!, $catalogType: CatalogType, $orgId: String) {\n getProductDetail(\n input: {brandKey: $brandKey, productKey: $productKey, catalogType: $catalogType, orgId: $orgId}\n ) {\n paMessage\n }\n}\n "]);return A=function(){return e},e}let v={},b=(0,x.J1)(A());var f=t(21347),j=t(75878),N=t(26925),C=t(4009),T=t(54753),S=t(70524),I=t(30053),k=t(52263),R=t(11148),_=t(11788),E=t(99486),P=t(23307),M=t(97710),L=t(28011),w=t(54736),O=t(32886),D=t(75020),B=t(10759),F=t(12197),W=t(99660),U=t(46588);let z=(0,W.A)(e=>({isBlockedProduct:{display:"flex",marginTop:e.spacing(8),alignItems:"center"},lockIcon:{fontSize:e.typography.pxToRem(16),color:e.palette.primary.main,marginRight:e.spacing(3),display:"flex"}})),q=()=>{let e=z();return(0,i.jsxs)("div",{className:e.isBlockedProduct,children:[(0,i.jsx)("div",{className:e.lockIcon,children:(0,i.jsx)(U.A,{fontSize:"inherit"})}),(0,i.jsx)(F.A,{children:(0,i.jsx)(o.A,{...T.A.RESTRICTED_ITEM_MESSAGE})})]})};var H=t(68351);let V=[g.qL.ApoNoStock,g.qL.OutOfStockKey,g.qL.UnknownAvailability],K=e=>{let{materialPricing:a,selectedChip:t,onSelect:n}=e;return(0,i.jsx)(H.A,{items:a.map(e=>({label:e.materialNumber,value:e.materialNumber})),selectedChip:t,unavailableChips:a.filter(e=>{let{availabilities:a}=e;return null==a?void 0:a.find(e=>V.includes(e.key))}).map(e=>{let{materialNumber:a}=e;return a}),onSelect:n,id:"sku-selection"})};var G=t(95349),Q=t(52413),$=t(17685),Y=t(98411),X=t(3848),J=t(52710),Z=t(80863),ee=t(79632),ea=t(71007),et=t(76764),ei=t(10430);let en=(0,r.A)(e=>({documentsContainer:{paddingTop:e.spacing(10)},sectionTitle:{borderBottom:"1px solid ".concat(e.palette.grey[300]),fontSize:e.typography.pxToRem(12),paddingBottom:e.spacing(2),marginBottom:e.spacing(4)},documents:{display:"flex",flexWrap:"wrap",margin:e.spacing(-1,-3),"& > *":{margin:e.spacing(1,3)}}})),er=e=>{var a,t;let{brand:r,productNumber:l}=e,s=en(),[d,{data:c}]=(0,ei.b0)(),[u,{data:p}]=(0,et.Bw)(),m=(null==c?void 0:null===(t=c.getSdsCertificateSearch)||void 0===t?void 0:null===(a=t.sds[0])||void 0===a?void 0:a.languages.altLanguages)||[];(0,n.useEffect)(()=>{d({variables:{productNumber:l,brand:r.key}}),u({variables:{input:{productNumber:l,brand:r.key}}})},[l,r.key]);let{url:g}=(null==p?void 0:p.getSpecificationSheet)||{};return m.length||g?(0,i.jsxs)("div",{className:s.documentsContainer,children:[(0,i.jsx)(F.A,{variant:"caption",component:"h2",className:s.sectionTitle,children:(0,i.jsx)(o.A,{id:"DOCUMENTS",defaultMessage:"Documents"})}),(0,i.jsxs)("div",{className:s.documents,children:[m.length>0&&(0,i.jsx)(Z.A,{sdsLanguages:[m[0]],productNumber:l||"",brandKey:r.key||"",trigger:(0,i.jsx)(ee.A,{}),onClick:()=>(0,ea._B)()}),g&&(0,i.jsx)("a",{href:g,target:"_blank",rel:"noopener noreferrer nofollow",onClick:()=>(0,ea._B)(),children:(0,i.jsx)(ee.A,{label:"SPECIFICATION_SHEET"})})]})]}):null};var el=t(36503),eo=t(61206),es=t(49691);let ed=(0,r.A)(e=>({infoList:{paddingTop:e.spacing(4),maxWidth:900,"& dd, & dt":{margin:0},"&:empty":{display:"none"}},formula:{paddingTop:e.spacing(1),display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"1",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word"}})),ec=e=>{let{focus:a,linearFormula:t,empiricalFormula:n,casNumber:r,molecularWeight:l,productNumber:s,productBrand:d}=e,c=ed(),u=t||n;return(0,i.jsxs)(el.A,{container:!0,component:"dl",spacing:1,className:c.infoList,alignItems:"baseline",children:[u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{item:!0,xs:5,lg:2,children:(0,i.jsxs)(F.A,{variant:"caption",component:"dt",children:[t?(0,i.jsx)(o.A,{id:"LINEAR_FORMULA",defaultMessage:"Linear Formula"}):(0,i.jsx)(o.A,{id:"EMPIRICAL_FORMULA",defaultMessage:"Empirical Formula"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,children:(0,i.jsx)("dd",{className:c.formula,children:(0,i.jsx)(eo.A,{value:u})})})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{item:!0,xs:5,lg:2,component:"dt",children:(0,i.jsxs)(F.A,{variant:"caption",component:"div",children:[(0,i.jsx)(o.A,{id:"CAS_NUMBER",defaultMessage:"CAS Number"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(es.m5,{color:"primary",label:r,searchValue:(0,M.aE)(r),searchFocusType:(0,M.UQ)(a),productSearchType:M.mI.CasNumber,onClick:()=>{(0,ea._B)({searchTerm:s||"",searchAutoSuggest:"quick view - cas number",searchAutoSuggestTerm:"".concat(r),searchType:(0,M.UQ)(a),searchComponent:"global search",searchErrorMessage:""}),(0,ea.OT)({action:"cas number click",component:"modal",detail:r,elementType:"link",elementText:r,linkUrl:"".concat(R.wO.searchResults((0,M.aE)(r))).concat((0,M.$c)({term:(0,M.aE)(r).toLowerCase(),focus:(0,M.UQ)(a),type:M.mI.CasNumber})),productBrand:d,productId:s,section:"quick view p&a"})}})})]}),l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{item:!0,xs:5,lg:2,component:"dt",children:(0,i.jsxs)(F.A,{variant:"caption",component:"div",children:[(0,i.jsx)(o.A,{id:"MOLECULAR_WEIGHT",defaultMessage:"Molecular Weight"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(eo.A,{value:l})})]})]})};var eu=t(84830),ep=t(76056),em=t(27651),eg=t(94295);let eh=(0,r.A)(e=>({modalMainContent:{padding:e.spacing(8),[e.breakpoints.down("sm")]:{padding:0}},quickLookWrapper:{padding:e.spacing(8)},header:{padding:e.spacing(4),[e.breakpoints.up("md")]:{padding:e.spacing(0)}},previouslyPurchasedChip:{display:"inline-block",marginTop:e.spacing(3),marginBottom:e.spacing(1),[e.breakpoints.up("md")]:{margin:0,position:"absolute",top:32,right:48,paddingRight:e.spacing(8)},"&:empty":{display:"none"}},main:{flexGrow:1,overflow:"auto",borderTop:"1px solid ".concat(e.palette.divider),padding:e.spacing(4),[e.breakpoints.up("md")]:{overflow:"visible",borderTop:"none",padding:0,minHeight:"fit-content"}},thumbnailOffset:{[e.breakpoints.up("md")]:{marginLeft:88+e.spacing(6),marginTop:e.spacing(6)}},loadingIndicator:{display:"flex",color:e.palette.grey[700],textTransform:"uppercase","& > * + *":{marginLeft:e.spacing(2)}},label:{display:"block",marginBottom:e.spacing(2),[e.breakpoints.up("md")]:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),paddingBottom:e.spacing(1.5),marginBottom:e.spacing(4),borderBottom:"1px solid ".concat(e.palette.divider)}},hideOnMobile:{[e.breakpoints.down("sm")]:{display:"none"}},priceWrapper:{paddingTop:e.spacing(4)},reducedPriceWrapper:{margin:"-7px 0"},price:{fontSize:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightBold},pricePromotionalWrapper:{[e.breakpoints.up("md")]:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginTop:e.spacing(3)}},promotionalCodeWrapper:{marginTop:e.spacing(3),fontSize:e.typography.pxToRem(12),[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(16),marginTop:0,paddingTop:4,marginLeft:e.spacing(6)}},listPrice:{textDecoration:"line-through",lineHeight:1},quantityField:{[e.breakpoints.up("md")]:{width:108}},availabilityMessages:{minHeight:e.typography.pxToRem(47),marginBottom:e.spacing(4),"& > *":{fontSize:e.typography.pxToRem(16),borderTop:"none",padding:0,lineHeight:1.4},"& > * + *":{paddingTop:e.spacing(1)}},actions:{display:"block",[e.breakpoints.up("md")]:{marginTop:e.spacing(3)}},mainActions:{display:"flex",gap:e.spacing(4),[e.breakpoints.down("sm")]:{flexDirection:"column"}},subActions:{display:"flex",flexDirection:"column",alignItems:"start",margin:e.spacing(6,0,0,0),"& > *":{padding:e.spacing(0),margin:e.spacing(0)},"& .MuiButton-root.Mui-disabled":{color:e.palette.text.disabled}},"checkAvailabilityButton.MuiButton-root":{minWidth:0},supplementaryMessage:{marginTop:e.spacing(1)},contactDealer:{marginTop:e.spacing(4),fontSize:e.typography.pxToRem(16)},loadingContainer:{display:"flex",alignItems:"center",minHeight:e.typography.pxToRem(47)}})),ex=()=>{let e=eh();return(0,i.jsxs)("div",{className:e.loadingIndicator,children:[(0,i.jsx)(d.A,{size:20,thickness:5}),(0,i.jsx)("span",{children:(0,i.jsx)(o.A,{...T.A.LOADING_PRICE_AND_AVAILABILITY})})]})},ey=function(e,a,t,r,d,p){let h=arguments.length>6&&void 0!==arguments[6]&&arguments[6],x=arguments.length>7?arguments[7]:void 0,y=arguments.length>8?arguments[8]:void 0;return function(A){var v,b;let{materialPricing:N,values:I,isSubmitting:k,updateQuantity:P=u.A}=A,{userIsLoggedIn:M,getSitePreference:w,currentUser:O,isPublicOrderingCustomer:F,isQuoteRequester:W}=(0,_.iZ)(),{authorized:U}=(0,E.I)(E.N.canAddToCart),z=eh(),{formatMessage:H}=(0,s.A)(),{setValues:V}=(0,l.j7)(),Z=w(_.VD.HideAddToCartForPrepackItems),{userSession:ee}=(0,$.j)(),ea=(null==O?void 0:O.__typename)==="GuestUser"&&!U,et=(null==O?void 0:O.__typename)==="LoggedInUser"&&!(null==O?void 0:null===(v=O.metadata)||void 0===v?void 0:v.guestShoppingType)&&!F&&!W,ei=e=>N.find(a=>a.materialNumber===e),en=ei(a)||(null==N?void 0:N[0]),[er,el]=(0,n.useState)(en.materialNumber),[eo,es]=(0,n.useState)(1);(0,n.useEffect)(()=>{var e;es(Number(null===(e=I[0])||void 0===e?void 0:e.quantity)||1)},[I]),(0,n.useEffect)(()=>{V(e=>{var t,i;let n=a&&N.some(e=>e.materialNumber===a)?a:null===(t=e[0])||void 0===t?void 0:t.materialNumber;return{0:{...e[0],materialNumber:n,quantity:(null==N?void 0:null===(i=N[0])||void 0===i?void 0:i.quantity)||1}}})},[V,N]);let ed=(0,n.useRef)(1),[ec,eu]=(0,n.useState)(!1),em=(0,n.useMemo)(()=>ei(er),[N,er]);if(!em)return null;let{price:eg,availabilities:ey,hidePriceMessageKey:eA,leadTime:ev}=em,[eb]=ey||[],ef=(null==eb?void 0:eb.key)===g.qL.InquireForPriceAndAvailability;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(S.A,{children:(0,i.jsx)("span",{className:z.label,children:(0,i.jsx)(o.A,{...T.A.SKU})})}),(0,i.jsx)(K,{materialPricing:N,selectedChip:er,onSelect:e=>{el(e),V(a=>{var t;return{0:{...a[0],materialNumber:e,quantity:Number(null===(t=a[0])||void 0===t?void 0:t.quantity)||1}}})}})]}),eA?(0,i.jsx)(G.A,{msgKey:eA}):null!=eg&&(0,i.jsxs)("div",{className:z.pricePromotionalWrapper,children:[!ef&&(0,i.jsx)(X.A,{material:em,priceClass:z.price,listPriceClass:z.listPrice}),t&&(0,i.jsx)("div",{className:z.promotionalCodeWrapper,children:(0,i.jsx)(o.A,{...T.A.USE_PROMOTIONAL_CODE,values:{promotionalCode:(0,i.jsx)("strong",{children:t})}})})]}),(0,i.jsx)("div",{className:z.availabilityMessages,children:ec?(0,i.jsx)("div",{className:z.loadingContainer,children:(0,i.jsx)(ex,{})}):(0,i.jsx)(J.M,{source:p&&"p&a modal - ".concat(p),brand:em.brand,item:em.materialNumber,pricing:em,children:(0,i.jsx)(Y.A,{canAddToCart:U,material:em,initialShipEstimate:(0,i.jsx)(C.f,{availability:eb,quantity:eo,leadTime:ev}),isDynamicProductCarousel:!0,isLoading:ec,hideDetailsLink:!0,gaComponent:"modal",gaSection:"quick view p&a"})})}),ea||et?(0,i.jsx)("div",{className:z.contactDealer,children:(0,i.jsx)(o.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(Q.N,{...R.mK.index({path:"/collections/offices",language:ee.language,country:ee.country}),passHref:!0,children:(0,i.jsx)("a",{rel:"noopener",target:"_blank",children:(0,i.jsx)(o.A,{id:"CONTACT",defaultMessage:"contact"})})})}})}):(0,i.jsxs)(i.Fragment,{children:[y?(0,i.jsx)(ep.A,{size:"medium"}):U&&!Z&&!(null==em?void 0:em.isBlockedProduct)&&!ef&&(0,i.jsxs)(m.fW,{className:z.actions,children:[(0,i.jsxs)("div",{className:z.mainActions,children:[(0,i.jsx)(l.D0,{name:"[0].quantity",component:j.A,className:z.quantityField,min:1}),(0,i.jsx)("div",{children:r&&M?(0,i.jsx)(L.A,{primaryOption:{label:H({id:"ADD_TO_CART",defaultMessage:"Add to Cart"}),renderButton:()=>(0,i.jsx)(f.Ay,{dirty:!0,isSubmitting:k,canAddToCart:!0,hideAddToCartForPrepackItems:Z,size:"large"})},options:[{label:H(T.A.ADD_TO_LIST),onClick:()=>{d&&d(er,eo)}}]}):(0,i.jsx)(f.Ay,{dirty:!0,isSubmitting:k,canAddToCart:!0,hideAddToCartForPrepackItems:Z,size:"large",fullWidth:!0})}),(null===(b=ei(er))||void 0===b?void 0:b.isBuyNow)&&(0,i.jsx)(B.A,{materialNumber:er||"",quantity:eo,onSuccess:e,marketplace:h,gaType:p})]}),(0,i.jsx)("div",{className:z.subActions,children:(0,i.jsx)(c.A,{className:z["checkAvailabilityButton.MuiButton-root"],variant:"text",color:"primary",size:"large",disabled:eo===ed.current,onClick:async()=>{(0,D.Sm)({action:"check product availability",section:x?"modal p&a":"quick view p&a",component:"modal",elementType:"link",elementText:"check availability",material:em}),ed.current!==eo&&(ed.current=eo,eu(!0),await P(eo),eu(!1))},children:(0,i.jsx)(o.A,{...T.A.CHECK_AVAILABILITY_BUTTON})})})]}),(null==em?void 0:em.isBlockedProduct)?(0,i.jsx)(q,{}):null]})]})}},eA=e=>{var a;let{open:t,onClose:r,image:l,brand:o,productKey:s,productNumber:d,name:c,description:u,gaLabel:h,gaType:x,initialMaterial:A,promotionalCode:f,showAddToList:j,isMarketplace:C=!1,marketplaceSellerId:T,erpType:S,renderInModal:E=!0,renderDocuments:L=!1,linearFormula:B,empiricalFormula:F,casNumber:W,molecularWeight:U,type:z}=e,q=eh(),{userIsLoggedIn:H,userId:V}=(0,_.iZ)(),[K,G]=(0,n.useState)(""),[Q,$]=(0,n.useState)(1),[Y,X]=(0,n.useState)("price-and-availability"),Z=(e,a)=>{G(e),$(a),X("add-to-list")},{isPurpleProduct:ee}=(0,eu.Q)(S),ea=(0,eg.L)(em.CN.countryCode),et=ee&&ea&&!H,ei=(0,n.useMemo)(()=>ey(r,A,f,j,Z,x,C,E,et),[A]),en=(0,R.rd)(),{getSitePreference:el}=(0,_.iZ)(),eo=el(_.VD.CatalogFilter)||void 0,{context:es="",focus:ed=""}=en.query,ep=(0,P.y5)(es),eA=(0,M.vN)(ep),{data:ev,loading:eb}=function(e){let a={...v,...e};return y.IT(b,a)}({variables:{brandKey:o.key,productKey:s,catalogType:eA,orgId:eo}}),ef=null==ev?void 0:null===(a=ev.getProductDetail)||void 0===a?void 0:a.paMessage,ej=z===g.iC.ThirdPartyProvider,eN=null!=A?A:"";(0,n.useEffect)(()=>{X(t?"price-and-availability":null),x&&(0,D.Sm)({action:"view p&a",section:x,component:E?"carousel":"autosuggest",elementType:E?"button":void 0,elementText:E?"quick view":void 0,material:{materialDescription:c,brand:o.key,product:d}})},[d,x,h,t,E]);let{data:eC,refetch:eT}=(0,O.g)({fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",skip:!H,variables:{input:{perpage:100,sortcolumn:"lastUpdatedDate"}}}),eS=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:q.header,children:(0,i.jsx)(p.c,{image:l,brand:o,productKey:s,productNumber:d,name:c,description:u,showPreviouslyPurchasedChip:!0,isMarketplace:C,marketplaceSellerId:T||void 0,onProductLinkClick:r,additionalInfo:(B||F||W||U)&&(0,i.jsx)(ec,{focus:ed,productNumber:d,casNumber:W,molecularWeight:U,linearFormula:B,empiricalFormula:F,productBrand:o.key})})}),(0,i.jsx)("div",{className:q.main,children:(0,i.jsx)("div",{className:q.thumbnailOffset,children:(0,i.jsx)(J.M,{source:x&&"p&a modal - ".concat(x),brand:o.key,item:d,children:eb?(0,i.jsx)(ex,{}):ef?(0,i.jsx)(k.Ay,{brandKey:o.key,productNumber:d,paMessage:ef}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A,{productNumber:d,brandKey:o.key,LoadingComponent:ex,PricingComponent:eb?ex:ei,usePricingComponentOnMobile:!0,condensed:!0,onAddToCartResult:r,gaType:x,gaMapProducts:I.w_,productKey:s,isMarketplace:C,erp_type:S,productName:c,isBBE:ej,materialIds:[eN]}),L&&(0,i.jsx)(er,{brand:o,productNumber:d})]})})})})]});return E?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.Ay,{open:"price-and-availability"===Y,onClose:()=>{r(),(0,D.Sm)({action:"close p&a",section:"modal p&a",component:"modal",elementType:"icon",material:{materialDescription:c,brand:o.key,product:d}})},size:m.Ih.Large,children:(0,i.jsx)(m.Uh,{className:q.modalMainContent,children:eS()})}),j&&(null==eC?void 0:eC.getSharedLists)&&(0,i.jsx)(w.A,{open:"add-to-list"===Y,onClose:()=>{X(null),r()},materialNumber:K,quantity:Q,lists:eC.getSharedLists.sharedLists,refetchLists:eT,userId:V})]}):(0,i.jsx)("div",{className:q.quickLookWrapper,children:eS()})}},32588:(e,a,t)=>{t.d(a,{A:()=>h});var i=t(37876);t(14232);var n=t(8733),r=t(61261),l=t(7645),o=t(34415),s=t(12197),d=t(11788),c=t(54753),u=t(11148),p=t(94295),m=t(27651);let g=(0,r.A)(e=>({container:{display:"flex",backgroundColor:e.palette.primary.light,padding:e.spacing(2,0),userSelect:"none",justifyContent:"center",[e.breakpoints.up("md")]:{alignItems:"center",padding:e.spacing(2)}},contentContainer:{[e.breakpoints.up("md")]:{display:"flex",alignItems:"center"}},title:{fontWeight:e.typography.fontWeightMedium,marginLeft:e.spacing(1),fontSize:e.typography.pxToRem(14)},link:{cursor:"pointer"}})),h=e=>{let{mb:a,mr:t,signInGAEvent:r}=e,h=g(),x=(0,u.rd)(),{userIsLoggedIn:y,currentUser:A}=(0,d.iZ)(),v=(0,p.L)(m.HK.countryCode),b=(null==A?void 0:A.__typename)==="LoggedInUser"&&A.soldToPartners.length<1;return y?b&&!v?(0,i.jsx)(l.A,{mb:a,mr:t,children:(0,i.jsx)("div",{className:h.container,children:(0,i.jsxs)("div",{className:h.contentContainer,children:[(0,i.jsx)(o.A,{href:"".concat(u.R6.linkProfile(),"?returnUrl=").concat(encodeURIComponent(x.asPath||u.xn.index())),className:h.link,children:(0,i.jsx)(n.A,{...c.A.LINK_YOUR_ACCOUNT})}),(0,i.jsx)(s.A,{variant:"body1",component:"span",className:h.title,children:(0,i.jsx)(n.A,{...c.A.VIEW_ORG_CONTRACT_PRICING})})]})})}):null:(0,i.jsx)(l.A,{mb:a,mr:t,children:(0,i.jsx)("div",{className:h.container,children:(0,i.jsxs)("div",{className:h.contentContainer,children:[(0,i.jsx)(o.A,{href:"".concat(u.VV.index(),"?redirect=").concat(encodeURIComponent(x.asPath||u.xn.index())),className:h.link,onClick:()=>null==r?void 0:r(),children:(0,i.jsx)(n.A,{id:"SIGN_IN",defaultMessage:"Sign In"})}),(0,i.jsx)(s.A,{variant:"body1",component:"span",className:h.title,children:(0,i.jsx)(n.A,{...c.A.VIEW_ORG_CONTRACT_PRICING})})]})})})}},32609:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876);t(14232);var n=t(34415),r=t(7645),l=t(61261),o=t(28407),s=t(77501),d=t(54753),c=t(8733),u=t(21826),p=t(89099),m=t(49995),g=t(69485);let h=(0,l.A)(e=>({simpleAlert:{display:"flex",justifyContent:"center",fontWeight:e.typography.fontWeightRegular,marginBottom:e.spacing(2),[e.breakpoints.down("md")]:{display:"inline"}},errorIcon:{display:"flex",alignItems:"center",marginRight:e.spacing(2),[e.breakpoints.down("md")]:{display:"inline",position:"relative",top:e.spacing(1)}},alignLeft:{justifyContent:"flex-start"},errorAlert:{display:"flex",alignItems:"flex-start",lineHeight:1.5},link:{cursor:"pointer",margin:e.spacing(0,1)}})),x=e=>{var a;let{discontinuedPricingInfo:t,leftAligned:l}=e,x=h(),y=(0,p.useRouter)(),A=y.asPath.includes("/search"),v=y.asPath.includes("/compare"),b=!!(null==t?void 0:null===(a=t.replacementProducts)||void 0===a?void 0:a.length)||!!(null==t?void 0:t.displaySimilarProductLabel)||!(null==t?void 0:t.hideReplacementProductLink),f=(null==t?void 0:t.displaySimilarProductLabel)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c.A,{id:"RECOMMENDED_MESSAGE_DISCRIPTION",defaultMessage:"View Similar Product(s) Below or{contactTechnicalService}for assistance. ",values:{contactTechnicalService:(0,i.jsx)(n.A,{className:x.link,href:"/support/customer-support",children:(0,i.jsx)(c.A,{...d.A.CONTACT_TECHNICAL_SERVICE})})}})}):(0,i.jsx)(c.A,{...d.A.RECOMMENDED_REPLACEMENT_PRODUCTS}),j=b?(0,i.jsx)(g.J,{...d.A.THIS_PRODUCT_DISCONTINUED,values:{recommendedProductMessage:v?null:f}}):(0,i.jsx)(g.J,{...d.A.THIS_PRODUCT_DISCONTINUED,values:{recommendedProductMessage:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{className:x.link,href:"/support/customer-support",children:(0,i.jsx)(c.A,{...d.A.CONTACT_TECHNICAL_SERVICE})}),(0,i.jsx)(c.A,{...d.A.FOR_ASSISTANCE})]})}});return A||v?(0,i.jsxs)(r.A,{className:(0,m.A)(x.simpleAlert,{[x.alignLeft]:v||l}),children:[(0,i.jsx)(r.A,{className:x.errorIcon,children:(0,i.jsx)(s.default,{color:"error"})}),j]}):(0,i.jsx)(u.A,{severity:"error",className:x.errorAlert,icon:(0,i.jsx)(o.A,{style:{fontSize:16}}),children:j})}},33086:(e,a,t)=>{t.d(a,{D:()=>i,_:()=>n});let i="facet-search",n=e=>e.asPath.includes(i)},33159:(e,a,t)=>{t.d(a,{A:()=>C});var i=t(37876),n=t(73431),r=t(82250),l=t(11788),o=t(17685),s=t(14232),d=t(8733),c=t(10181),u=t(67241),p=t(70377),m=t(41683),g=t(57377),h=t(71549),x=t(98011),y=t(61261),A=t(54753),v=t(44238),b=t(49995);let f=(0,y.A)(e=>({root:{"&:hover":{backgroundColor:"transparent"},fontSize:22},header:{backgroundColor:e.palette.background.grey,borderTop:"1px solid rgba(224, 224, 224, 1)",fontSize:12,fontWeight:900},icon:{display:"flex",width:"24px",height:"24px",border:"1px solid ".concat(e.palette.grey[500]),borderRadius:"50%",[e.breakpoints.up("md")]:{width:"18px",height:"18px"}},checkedIcon:{backgroundColor:e.palette.common.white,"&:before":{display:"block",width:"14px",height:"14px",backgroundColor:"".concat(e.palette.primary.main),borderRadius:"50%",transform:"translateY(4px) transLateX(4px)",content:'""',[e.breakpoints.up("md")]:{width:"8px",height:"8px"}}},table:{"& td":{fontSize:14}},tableContainer:{[e.breakpoints.down("sm")]:{maxHeight:"50vh"},maxHeight:240}})),j=e=>{let{country:a,stateCode:t}=e,n=(0,v.k)(a,t);return(0,i.jsx)("div",{children:n})},N=e=>{let{dealers:a,onSelect:t,selected:n}=e,r=f();return(0,i.jsx)(c.A,{className:r.tableContainer,children:(0,i.jsxs)(u.A,{stickyHeader:!0,size:"small",className:r.table,children:[(0,i.jsxs)("colgroup",{children:[(0,i.jsx)("col",{style:{width:"40%"}}),(0,i.jsx)("col",{style:{width:"15%"}}),(0,i.jsx)("col",{style:{width:"20%"}}),(0,i.jsx)("col",{style:{width:"25%"}})]}),(0,i.jsx)(p.A,{children:(0,i.jsxs)(m.A,{children:[(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_DEALER})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_BRANCH})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_AVAILABLE_PRODUCTS})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_PREFECTURE})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_ADDRESS})})]})}),(0,i.jsx)(h.A,{children:a.sort((e,a)=>!!e.isPreferredDealer==!!(null==a?void 0:a.isPreferredDealer)?0:e.isPreferredDealer?-1:1).map((e,a)=>{let{id:l,city:o,countryCode:s,organizationName:d,stateCode:c,availableProducts:u,attentionTo:p}=e;return(0,i.jsxs)(m.A,{children:[(0,i.jsx)(g.A,{children:(0,i.jsxs)("label",{children:[(0,i.jsx)(x.A,{className:r.root,checked:n===l,onChange:()=>t(l,d),id:"selectDealer",checkedIcon:(0,i.jsx)("span",{className:(0,b.A)(r.icon,r.checkedIcon)}),icon:(0,i.jsx)("span",{className:r.icon})}),d]})}),(0,i.jsx)(g.A,{children:p}),(0,i.jsx)(g.A,{children:u}),(0,i.jsx)(g.A,{children:s&&c&&(0,i.jsx)(j,{country:s,stateCode:c})}),(0,i.jsx)(g.A,{children:o})]},a)})})]})})},C=e=>{let{selectDealer:a,selectedDealerId:t,searchTerm:d="",stateCode:c}=e,{userSession:u}=(0,o.j)(),{currentUserState:p}=(0,l.iZ)(),m=c||String(p),{data:g,loading:h,error:x}=(0,n.AW)({context:{userSession:u},errorPolicy:"all",variables:{countryCode:null==u?void 0:u.country,stateCode:d?void 0:m,searchTerm:d.toLowerCase()}});if((0,s.useEffect)(()=>{if(null==g?void 0:g.getDealers){var e;let{getDealers:i}=g,n=null!==(e=null==i?void 0:i.find(e=>!!e.isPreferredDealer))&&void 0!==e?e:null;return n&&!t?a(n.id,n.organizationName):a(i[0].id,i[0].organizationName)}},[g]),h)return(0,i.jsx)("div",{children:"Loading..."});if(x){let{displayableError:e,hasError:a}=(0,r.Mw)(x);if(console.error(e),a("DEALER_DATA_NOT_FOUND_GENERIC"))return(0,i.jsx)("div",{children:"No Dealers Available."})}return(null==g?void 0:g.getDealers)?(0,i.jsx)(N,{dealers:(null==g?void 0:g.getDealers)||[],onSelect:a,selected:t}):(0,i.jsx)("div",{children:"No Dealers Available."})}},34369:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876);t(14232);var n=t(8733),r=t(61261),l=t(12197),o=t(61206),s=t(43343);let d=(0,r.A)(e=>({itemContainer:{display:"flex",marginBottom:e.spacing(5)},details:{overflow:"hidden"},imageContainer:{width:60,height:60,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",backgroundColor:e.palette.common.white,border:"solid 1px ".concat(e.palette.grey[400]),borderRadius:e.shape.borderRadius,marginRight:e.spacing(2),wordWrap:"break-word"},image:{maxWidth:"100%",maxHeight:"100%"},materialName:{fontWeight:e.typography.fontWeightBold,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},quantity:{fontSize:e.typography.pxToRem(12)}})),c=e=>{var a;let{material:t,product:r,quantity:c}=e,u=d(),[p]=null!==(a=null==r?void 0:r.images)&&void 0!==a?a:[];return(0,i.jsxs)("div",{className:u.itemContainer,children:[(0,i.jsx)("div",{className:u.imageContainer,children:p?(0,i.jsx)(s.A,{alt:null==r?void 0:r.productNumber,className:u.image,sizes:"60px",src:p.smallUrl,urls:[p.smallUrl,p.mediumUrl,p.largeUrl]}):null}),(0,i.jsxs)("div",{className:u.details,children:[(null==t?void 0:t.materialNumber)?(0,i.jsx)(l.A,{variant:"subtitle2",children:null==t?void 0:t.materialNumber}):null,(null==r?void 0:r.name)?(0,i.jsx)("div",{className:u.materialName,children:(0,i.jsx)(o.A,{value:null==r?void 0:r.name})}):null,(0,i.jsxs)("div",{className:u.quantity,children:[(0,i.jsx)(n.A,{id:"QUANTITY",defaultMessage:"Quantity"}),(0,i.jsxs)("span",{children:[": ",c]})]})]})]})}},35645:(e,a,t)=>{t.d(a,{A:()=>T});var i=t(37876),n=t(14232),r=t(49995),l=t(61261),o=t(12197),s=t(5411),d=t(77660),c=t(88694),u=t(2184),p=t(61206),m=t(8733),g=t(86024),h=t(86367),x=t(11788),y=t(99486),A=t(52413),v=t(11148),b=t(97710),f=t(11631),j=t(84119),N=t(52263);let C=(0,l.A)(e=>({vr2:{marginBottom:e.spacing(2)},header:{paddingBottom:e.spacing(6)},substance:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(1),"& sup":{fontSize:e.typography.pxToRem(12)}},description:{fontSize:e.typography.pxToRem(12)},body:{borderTop:"solid 1px ".concat(e.palette.grey[400]),overflowY:"scroll"},viewDetailsWrapper:{marginTop:e.spacing(4)},truncateText:{width:"calc(100% - 16px)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},alternateStatesWrapper:{padding:e.spacing(4)}})),T=e=>{var a,t,l;let{onClose:T,substanceName:S,productNumber:I,productKey:k,brandKey:R,description:_,materialIds:E,isMarketplace:P=!1,marketplaceSellerId:M,marketplaceOfferId:L,productAttributes:w,erp_type:O,productName:D,displaySellerName:B,pricingData:F,paMessage:W}=e,U=C(),{getSitePreference:z,isDTAQZuCustomer:q,isMultiCountryUser:H,currentUser:V,isBlueErpIntegrationEnabled:K}=(0,x.iZ)(),{focus:G="",catalog:Q=""}=(0,v.rd)().query||{},$=z(x.VD.CatalogFilter),{authorized:Y}=(0,y.I)(y.N.canAddToCart),X=P?d.Mh.Marketplace:null,J=K&&O&&(null==O?void 0:O.length)>0,Z=q?z(x.VD.PreferredDealerId):null,[ee,ea]=(0,n.useState)(null==F?void 0:F.materialPricing),[et,{data:ei,loading:en,error:er}]=(0,c.Gb)(),[el,{data:eo,loading:es,error:ed}]=(0,u.Fo)(),ec=es||en,eu=ed||er,ep=async()=>{var e,a;let t={...J&&{erp_type:O},brand:R,catalogType:(0,b.vN)(X||G||Q),checkBuyNow:!0,checkForPb:!0,dealerId:Z,displaySDS:!1,materialIds:E,orgId:$,productKey:k,productNumber:I,quantity:1};H?await el({variables:t}):await et({variables:t}),ea(H?null==eo?void 0:null===(e=eo.getPricingForMultiCountryProducts[0])||void 0===e?void 0:e.materialPricing:null==ei?void 0:null===(a=ei.getPricingForProduct)||void 0===a?void 0:a.materialPricing)};return(0,n.useEffect)(()=>{var e,a;let t=H?null==eo?void 0:null===(e=eo.getPricingForMultiCountryProducts[0])||void 0===e?void 0:e.materialPricing:(null==ei?void 0:null===(a=ei.getPricingForProduct)||void 0===a?void 0:a.materialPricing)||(null==F?void 0:F.materialPricing);t?ea(t):W||ep()},[eu,ec,H,eo,W,F,ei]),(0,i.jsx)(g.A,{open:!0,onClose:()=>{T(!1)},size:g.I.Large,renderTitle:()=>(0,i.jsxs)("div",{className:U.header,children:[(0,i.jsx)(o.A,{component:"h2",variant:"h2",className:U.vr2,children:I}),(0,i.jsx)(o.A,{component:"div",className:(0,r.A)(U.substance,U.truncateText),children:(0,i.jsx)(p.A,{value:S})}),(0,i.jsx)(o.A,{component:"div",className:(0,r.A)(U.description,U.truncateText),children:(0,i.jsx)(p.A,{value:_})})]}),children:(0,i.jsxs)("div",{className:U.body,children:[W?(0,i.jsx)(N.Ay,{productNumber:I,brandKey:R,paMessage:W}):(null==ee?void 0:ee.length)?(0,i.jsx)(h.A,{productName:D,materialPricing:ee,multiCountryData:eo,canAddToCart:Y&&!H&&(!P||!!(null==V?void 0:null===(a=V.metadata)||void 0===a?void 0:a.isMarketplaceCartEnabled)),marketplaceOfferId:P&&ee&&(null===(t=ee[0])||void 0===t?void 0:t.marketplaceOfferId)?null===(l=ee[0])||void 0===l?void 0:l.marketplaceOfferId:L,renderSecondaryAction:()=>(0,i.jsx)("div",{className:U.viewDetailsWrapper,children:(0,i.jsx)(A.N,{...v.aR.index(R,k,{catalog:(0,b.vN)(G)}),passHref:!0,children:(0,i.jsx)(s.A,{color:"primary",variant:"outlined",size:"large",fullWidth:!0,children:(0,i.jsx)(m.A,{id:"VIEW_PRODUCT_DETAILS",defaultMessage:"View Product Details"})})})}),erpType:O}):null,(ec||eu)&&(0,i.jsxs)("div",{className:U.alternateStatesWrapper,children:[ec&&(0,i.jsx)(f.A,{}),eu&&(0,i.jsx)(j.A,{error:ed||er,productNumber:I,isMarketplace:P,sellerName:B||(0,b.t1)(w),marketplaceSellerId:M,marketplaceOfferId:L})]})]})})}},36820:(e,a,t)=>{t.d(a,{A:()=>I});var i=t(37876),n=t(14232),r=t(49995),l=t(61261),o=t(35877),s=t(54753),d=t(71541),c=t(64204),u=t(5411),p=t(62940),m=t(98545),g=t(32849),h=t(82440),x=t.n(h),y=t(8733),A=t(86024),v=t(43343),b=t(61206),f=t(67334),j=t(11148),N=t(52413),C=t(70183);let T="".concat(124,"px"),S=(0,l.A)(e=>({carouselWrapper:{display:"flex",flexDirection:"column",[e.breakpoints.up("md")]:{paddingTop:e.spacing(4),marginBottom:e.spacing(4)}},footer:{height:88},slide:{display:"flex",justifyContent:"center",height:"calc(100vh - ".concat(T,")"),[e.breakpoints.up("md")]:{height:328}},mainContentWrapper:{height:"100%",width:"100%",display:"flex",justifyContent:"center",flexDirection:"column",padding:e.spacing(0,12),[e.breakpoints.up("md")]:{flexDirection:"row",padding:e.spacing(0,16)}},labelWrapper:{height:"8%",display:"flex",alignItems:"center",justifyContent:"center",[e.breakpoints.up("md")]:{height:328,width:"50%",justifyContent:"flex-start",padding:e.spacing(4,0,4,6)}},desktopLabelWrapper:{display:"none",position:"relative",maxHeight:328,paddingLeft:e.spacing(3),"&:before":{position:"absolute",top:5,left:0,botton:0,content:"''",height:14,width:4,backgroundColor:e.palette.secondary.main},[e.breakpoints.up("md")]:{display:"block"}},desktopLabel:{overflow:"auto",maxHeight:328,wordBreak:"break-word"},mobileLabelWrapper:{overflow:"scroll"},labelText:{"& sup, sub":{verticalAlign:"baseline",position:"relative",top:"-0.4em"},"& sub":{top:"0.1em"}},mobileLabelTrigger:{display:"flex",justifyContent:"center",[e.breakpoints.up("md")]:{display:"none"}},nav:{backgroundColor:e.palette.common.white,border:0,height:e.typography.pxToRem(64),width:e.typography.pxToRem(32),boxShadow:e.shadows[5]},prevNav:{borderRadius:"0 ".concat(e.shape.borderRadius,"px ").concat(e.shape.borderRadius,"px 0")},nextNav:{borderRadius:"".concat(e.shape.borderRadius,"px 0 0 ").concat(e.shape.borderRadius,"px")},buttonIcon:{fontSize:e.typography.pxToRem(34)},thumbnailWrapper:{display:"flex",alignItems:"center"},thumbnailButton:{height:54,width:54,borderRadius:2,margin:"0 auto",position:"relative",display:"block"},active:{border:"solid 2px ".concat(e.palette.primary.main)},thumbnail:{maxHeight:"100%",maxWidth:"100%"},overlay:{backgroundColor:"rgba(0, 0, 0, .3)",position:"absolute",top:0,left:0,bottom:0,right:0},footerCarousel:{maxWidth:"350px",margin:"0 auto"},test:{},productLinkWrapper:{marginBottom:e.spacing(2)},productNumberHeading:{display:"inline-block",fontSize:e.typography.pxToRem(16),marginRight:e.spacing(4)},productLink:{fontSize:e.typography.pxToRem(16)},videoLink:{cursor:"pointer",width:"100%",height:"auto"},playButtonIcon:{background:e.palette.common.white,borderRadius:"100%",position:"absolute",opacity:.6,top:"30%",left:"30%"},videoContainer:{width:"70%",height:"auto",flexShrink:0,flexGrow:0,[e.breakpoints.down("md")]:{width:"100%"}}})),I=e=>{let{isOpen:a,images:t,onClose:l,name:h,productId:T,brand:I}=e,k=S(),R=(0,o.A)(),_=t.length,E=(0,d.A)(R.breakpoints.up("md")),P=_-1,[M,L]=(0,n.useState)(0),[w,O]=(0,n.useState)(!1),D=e=>{O(!1),L(e)},B=()=>{let e=M+1;e<_&&D(e)},F=()=>{let e=M-1;e>=0&&D(e)},W=e=>{D(e)},U=e=>{let{brandKey:a,productKey:t}=e;return(0,i.jsxs)("div",{className:k.productLinkWrapper,children:[(0,i.jsx)("h4",{className:k.productNumberHeading,children:(0,i.jsx)(y.A,{...s.A.PRODUCT_NUMBER})}),(0,i.jsx)(N.N,{...j.aR.index(a,t),passHref:!0,children:(0,i.jsx)("a",{className:k.productLink,children:(0,i.jsx)(b.A,{value:t})})})]})};return(0,i.jsx)(A.A,{open:a,onClose:()=>{D(0),l(!a)},size:A.I.Large,renderTitle:()=>(0,i.jsx)(y.A,{...s.A.PRODUCT_IMAGES_VIEWING,values:{index:M+1,count:_}}),children:(0,i.jsxs)("div",{"data-testid":"pdp-images-modal",id:"pdp-images-modal",children:[(0,i.jsx)("div",{className:k.carouselWrapper,children:(0,i.jsx)(x(),{slideIndex:M,renderBottomCenterControls:null,disableAnimation:!0,onDragStart:()=>O(!1),renderCenterLeftControls:()=>(0,i.jsx)(i.Fragment,{children:M>0&&(0,i.jsx)(c.A,{className:(0,r.A)(k.nav,k.prevNav),onClick:F,"aria-label":"previous",children:(0,i.jsx)(p.A,{className:k.buttonIcon,color:"primary"})})}),renderCenterRightControls:()=>(0,i.jsx)(i.Fragment,{children:M
{let{label:t,brandKey:n,productKey:l}=e;return(0,i.jsx)("div",{className:k.slide,children:(0,i.jsxs)("div",{className:k.mainContentWrapper,children:[w?(0,i.jsx)("div",{className:(0,r.A)(k.mobileLabelWrapper,k.labelText),children:t&&(0,i.jsx)(b.A,{value:t})}):e.videoUrl?(0,i.jsx)("div",{className:k.videoContainer,children:(0,i.jsx)(C.A,{videoUrl:e.videoUrl,posterUrl:"/deepweb/assets/sigmaaldrich/marketing/global/images/video-posters/miscl/blue-video-poster-mslvn/blue-video-poster-mslvn.jpg",css:k.videoLink,name:h,brand:I||n,productId:T})}):(0,i.jsx)(f.A,{image:e}),t||n&&l?(0,i.jsxs)("div",{className:k.labelWrapper,children:[(0,i.jsx)("div",{className:k.desktopLabelWrapper,children:(0,i.jsxs)("div",{className:k.desktopLabel,children:[n&&l&&U({brandKey:n,productKey:l}),(0,i.jsx)("div",{className:(0,r.A)(k.labelText),children:(0,i.jsx)(b.A,{value:t})})]})}),(0,i.jsx)("div",{className:k.mobileLabelTrigger,children:(0,i.jsx)(u.A,{onClick:()=>O(!w),children:w?(0,i.jsx)(y.A,{...s.A.HIDE_CAPTION}):(0,i.jsx)(y.A,{...s.A.SHOW_CAPTION})})})]}):null]})},a)})})}),(0,i.jsx)("div",{className:k.footer,children:(0,i.jsx)(x(),{slideIndex:t.length>4?M:void 0,className:k.footerCarousel,withoutControls:!0,slidesToShow:5,style:E?{padding:"0 16px"}:{padding:"4px"},cellAlign:"left",children:t.map((e,a)=>(0,i.jsx)("div",{className:k.thumbnailWrapper,children:(0,i.jsxs)(c.A,{className:(0,r.A)(k.thumbnailButton,a===M&&k.active),onClick:()=>W(a),children:[(0,i.jsx)("div",{className:(0,r.A)(a!==M&&k.overlay)}),e.videoUrl&&(0,i.jsx)(g.A,{className:k.playButtonIcon}),(0,i.jsx)(v.A,{className:k.thumbnail,alt:null==e?void 0:e.altText,src:e.videoUrl?"/deepweb/assets/sigmaaldrich/marketing/global/images/video-posters/miscl/purple-video-poster-mslvn/purple-video-poster-mslvn.jpg":null==e?void 0:e.largeUrl,sizes:"54px",urls:[null==e?void 0:e.smallUrl,null==e?void 0:e.mediumUrl,null==e?void 0:e.largeUrl]},a)]})},a))})})]})})}},38882:(e,a,t)=>{t.d(a,{h:()=>c});var i=t(37876),n=t(14232),r=t(17741),l=t(61261),o=t(27651),s=t(30915);let d=(0,l.A)(e=>({multiCountryPricingTabs:{marginBottom:e.spacing(5)}}));function c(e,a){let[t,l]=(0,n.useState)([]),c=d(),u=(0,n.useCallback)(e=>{var a;return null==o?void 0:null===(a=o[e])||void 0===a?void 0:a.displayName},[o]);return(0,n.useEffect)(()=>{var t;l((null==e?void 0:null===(t=e.getPricingForMultiCountryProducts)||void 0===t?void 0:t.map((e,t)=>({label:u(null==e?void 0:e.country),selectCallback:()=>a("",(null==e?void 0:e.country)||(0,s.stringify)(t)),component:(0,i.jsx)("div",{})})))||[])},[e]),(0,i.jsx)("div",{className:c.multiCountryPricingTabs,children:(0,i.jsx)(r.A,{tabs:t})})}},40002:(e,a,t)=>{t.d(a,{G:()=>r,j:()=>n});var i=t(54753),n=function(e){return e.RecentlyViewed="recently viewed products",e.AlsoViewed="customers also viewed",e.CompareItems="compare similar items",e.RecommendedProducts="recommended products",e.CartRecommendedProducts="recommended products",e.PopularProducts="popular products",e.BestSellers="best sellers",e.NewArrivals="new arrivals",e.TopDeals="top deals",e.FeaturedProducts="featured products",e.BuyAgain="buy it again",e.RelatedProducts="related products",e.HeroCard="product hero card",e}({});let r={"recommended products":i.A.RECOMMENDED_PRODUCTS,"related products":i.A.RELATED_PRODUCTS,"recently viewed products":i.A.RECENTLY_VIEWED_PRODUCTS,"customers also viewed":i.A.CUSTOMERS_ALSO_VIEWED,"best sellers":{id:"SHOP_BEST_SELLERS",defaultMessage:"Shop Best Sellers"},"buy it again":{id:"BUY_IT_AGAIN",defaultMessage:"Buy It Again"},"new arrivals":i.A.NEW_PRODUCT,"popular products":{id:"POPULAR_PRODUCTS",defaultMessage:"Popular Products"}}},44238:(e,a,t)=>{t.d(a,{k:()=>r});var i=t(17685),n=t(88373);let r=(e,a)=>{var t,r,l;let{userSession:o}=(0,i.j)(),s=(null==o?void 0:null===(t=o.language)||void 0===t?void 0:t.toLowerCase())||"",d=(null==o?void 0:null===(r=o.country)||void 0===r?void 0:r.toUpperCase())||"",{data:c}=(0,n.kN)({variables:{country:e||"",locale:"en"===s?"en_US":"".concat(s,"_").concat(d)}});if(!e||!a)return null;let u=null==c?void 0:null===(l=c.getCountryStates)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.stateCode)===a);return null==u?void 0:u.stateName}},44601:(e,a,t)=>{t.d(a,{A:()=>i});function i(e){"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left||0,e.top||0)}},45249:(e,a,t)=>{t.d(a,{A:()=>N,Z:()=>j});var i=t(37876),n=t(14232),r=t(18847),l=t.n(r),o=t(92189),s=t(61261),d=t(97710),c=t(51722),u=t(56584),p=t(75933);let m=l()(()=>Promise.all([t.e(6061),t.e(2475),t.e(2103),t.e(6369)]).then(t.bind(t,66369)),{loadableGenerated:{webpack:()=>[66369]},loadableGenerated:{webpack:()=>[66369]}}),g=l()(()=>Promise.all([t.e(6061),t.e(2475),t.e(2103),t.e(3949)]).then(t.bind(t,3949)),{loadableGenerated:{webpack:()=>[3949]},loadableGenerated:{webpack:()=>[3949]}}),h=l()(()=>Promise.all([t.e(6061),t.e(2475),t.e(432)]).then(t.bind(t,40432)),{loadableGenerated:{webpack:()=>[40432]},loadableGenerated:{webpack:()=>[40432]}}),x=l()(()=>Promise.all([t.e(6061),t.e(2475),t.e(7368)]).then(t.bind(t,97368)),{loadableGenerated:{webpack:()=>[97368]},loadableGenerated:{webpack:()=>[97368]}}),y=l()(()=>Promise.all([t.e(6061),t.e(2475),t.e(3193)]).then(t.bind(t,53193)),{loadableGenerated:{webpack:()=>[53193]},loadableGenerated:{webpack:()=>[53193]}}),A=l()(()=>Promise.all([t.e(6061),t.e(3738)]).then(t.bind(t,43738)),{loadableGenerated:{webpack:()=>[43738]},loadableGenerated:{webpack:()=>[43738]}}),v=l()(()=>t.e(8879).then(t.bind(t,88879)),{loadableGenerated:{webpack:()=>[88879]},loadableGenerated:{webpack:()=>[88879]}}),b=l()(()=>Promise.all([t.e(6061),t.e(2475),t.e(8379)]).then(t.bind(t,48379)),{loadableGenerated:{webpack:()=>[48379]},loadableGenerated:{webpack:()=>[48379]}}),f=(0,s.A)(e=>({searchContainer:{[e.breakpoints.down("xs")]:{overflowX:"hidden"},[e.breakpoints.up("xs")]:{border:"1px solid ".concat(e.palette.grey[300]),borderTop:0}},resultsContainer:{marginBottom:e.spacing(10),[e.breakpoints.up("sm")]:{paddingTop:e.spacing(8)},[e.breakpoints.up("lg")]:{padding:e.spacing(7,0,0,0)}}}));var j=function(e){return e[e.grid=0]="grid",e[e.list=1]="list",e}({});let N=()=>{let e=f(),[a]=(0,u.useSearchQuery)(),[t,r]=(0,n.useState)(0),l=null;switch(a.focus){case d.Xc.Products:l=(0,i.jsx)(m,{});break;case d.Xc.Genes:l=(0,i.jsx)(g,{});break;case d.Xc.Papers:l=(0,i.jsx)(h,{});break;case d.Xc.TechnicalDocuments:l=(0,i.jsx)(x,{});break;case d.Xc.SiteContent:l=(0,i.jsx)(y,{});break;case d.Xc.BuildingBlocks:l=(0,i.jsx)(A,{view:t,setView:r});break;case d.Xc.StructureSearch:l=(0,i.jsx)(v,{view:t,setView:r});break;case d.Xc.Chromatograms:l=(0,i.jsx)(b,{});break;default:l=null}return(0,i.jsxs)(c.A,{className:e.searchContainer,children:[(0,i.jsx)(o.A,{maxWidth:"lg",classes:{root:e.resultsContainer},children:(0,i.jsxs)("div",{children:[" ",l]})}),(0,i.jsx)(p.A,{})]})}},47233:(e,a,t)=>{t.d(a,{A:()=>y,O:()=>x});var i=t(37876),n=t(50437),r=t(15667),l=t(12197),o=t(11839),s=t(61261),d=t(45271),c=t(2760),u=t(49995),p=t(8733);let m=(0,s.A)(e=>({accordionsWrapper:{"& div:not(:last-child)":{borderBottom:"none"}},accordionBorder:{borderBottom:"1px solid ".concat(e.palette.grey[400]),borderTop:"1px solid ".concat(e.palette.grey[400])}})),g=(0,d.A)(e=>({root:{boxShadow:"none","&:before":{display:"none"},"&$expanded":{margin:"auto",paddingBottom:e.spacing(3)}},expanded:{}}))(n.A),h=(0,d.A)(e=>({root:{borderRadius:0,minHeight:48,"&$expanded":{minHeight:48},"&.Mui-focusVisible":{"& h2":{color:e.palette.common.white},"& .MuiSvgIcon-root":{color:e.palette.common.white}}},content:{"&$expanded":{margin:e.spacing(3,0)}},expanded:{}}))(r.A),x=e=>{let{children:a}=e,t=m();return(0,i.jsx)("div",{className:t.accordionsWrapper,children:a})},y=e=>{let{summary:a,summaryId:t,summaryAriaControls:n,details:s,defaultExpanded:d=!1,expandedCallback:x=()=>({}),overrideClasses:y={},unmountOnExit:A=!1,expanded:v,onKeyDown:b}=e,f=m(),j=(null==a?void 0:a.type)===p.A;return(0,i.jsxs)(g,{classes:{root:y.accordion},className:(0,u.A)({[f.accordionBorder]:j}),defaultExpanded:d,square:!0,onChange:(e,a)=>{x(a)},TransitionProps:{unmountOnExit:A},expanded:v,children:[j&&(0,i.jsx)(h,{classes:{root:y.summary},expandIcon:(0,i.jsx)(c.default,{color:"primary"}),id:t,"aria-controls":n,children:(0,i.jsx)(l.A,{variant:"h2",children:a})}),!j&&(0,i.jsx)(r.A,{classes:{root:y.summary},id:t,"aria-controls":n,onKeyDown:b,children:a}),(0,i.jsx)(o.A,{classes:{root:y.details},children:s})]})}},49100:(e,a,t)=>{t.d(a,{t1:()=>u});var i=t(28888);t(37876);var n=t(82897);t(14232);var r=t(54431);function l(){let e=(0,i._)(["\n fragment Suggestion on Suggestion {\n label\n brandKey\n productKey\n substanceKey\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n query SearchSuggestions($input: GetSearchSuggestionsInput!) {\n getSearchSuggestions(input: $input) {\n count\n suggestions {\n productName {\n ...Suggestion\n }\n casNumber {\n ...Suggestion\n }\n materialNumber {\n ...Suggestion\n }\n productNumber {\n ...Suggestion\n }\n relatedCategories {\n value\n facetId\n }\n pinyin {\n ...Suggestion\n }\n }\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(l()),c=(0,n.J1)(o(),d);function u(e){let a={...s,...e};return r.IT(c,a)}},49691:(e,a,t)=>{t.d(a,{m5:()=>m,qj:()=>p,Ay:()=>g});var i=t(37876);t(14232);var n=t(8733),r=t(7645),l=t(34415),o=t(36503),s=t(11148),d=t(52413),c=t(97710),u=t(61206);let p=e=>{let{message:a}=e;return(0,i.jsx)(n.A,{...a,children:e=>(0,i.jsxs)(r.A,{mr:1,fontSize:12,fontWeight:"fontWeightBold",children:[e,":"," "]})})},m=e=>{let{substanceId:a,searchFocusType:t,searchValue:n,productSearchType:r,classes:o,color:p="primary",label:m,onClick:g}=e;return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(d.N,{href:"".concat(s.wO.searchResults(n)).concat((0,c.$c)({term:n.toLowerCase(),focus:t,type:r})),passHref:!0,children:(0,i.jsx)(l.A,{className:o,color:p,"data-testid":"".concat(n,"-alias-link"),id:"".concat(a,"-").concat(n,"-alias-link"),onClick:g,children:(0,i.jsx)(u.z,{value:m||n})})}):(0,i.jsx)(u.z,{value:n,className:o})})},g=e=>{let{message:a,searchFocusType:t,searchValue:n,productSearchType:r,classes:l,onClick:s}=e;return(0,i.jsxs)(o.A,{container:!0,item:!0,xs:12,children:[(0,i.jsx)(o.A,{item:!0,xs:12,sm:5,children:(0,i.jsx)(p,{message:a})}),(0,i.jsx)(o.A,{item:!0,xs:12,sm:7,children:(0,i.jsx)(m,{searchFocusType:t,searchValue:n,productSearchType:r,classes:l,onClick:s})})]})}},50485:(e,a,t)=>{t.d(a,{A:()=>e2});var i=t(37876),n=t(14232),r=t(7645),l=t(12197),o=t(64204),s=t(34415),d=t(5411),c=t(39069),u=t(66561),p=t(40597),m=t(61261),g=t(77742),h=t(8733),x=t(35967),y=t(4648),A=t(21347),v=t(10759),b=t(52413),f=t(88887),j=t(75878),N=t(45484),C=t(78206),T=t(10113),S=t(36382),I=t(28407),k=t(39324),R=t.n(k),_=t(75020),E=t(84119),P=t(97710),M=t(70210),L=t(19490),w=t(93591),O=t(58597),D=t(46588),B=t(11788),F=t(74985),W=t(34369),U=t(53471),z=t(28888),q=t(82897);function H(){let e=(0,z._)(["\n query GetQuotesCount {\n getQuotesCount {\n count\n }\n }\n"]);return H=function(){return e},e}let V=(0,q.J1)(H());var K=t(28975),G=t(11631),Q=t(11148),$=t(71007);let Y=(0,m.A)(e=>({actionContainer:{marginTop:e.spacing(8),[e.breakpoints.up("md")]:{display:"flex",justifyContent:"flex-end"}},errorTitle:{color:e.palette.error.main,fontSize:e.typography.pxToRem(14)},errorMessage:{fontSize:e.typography.pxToRem(14)},errorIcon:{fontSize:e.typography.pxToRem(14),marginRight:e.spacing(2),marginTop:e.spacing(1)},link:{cursor:"pointer",margin:e.spacing(0,1)}})),X=e=>{let{onClose:a,quoteData:t}=e,o=Y(),c=(0,Q.rd)(),[u,p]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),{material:x,product:y,quantity:A}=null!=t?t:{},[v]=(0,U.u7)({refetchQueries:[{query:V}]}),b=async()=>{if((null==x?void 0:x.materialNumber)&&A){p(!0),(0,$.jl)({event:"complete_quote_request",section:"pricing card",component:"modal",elementType:"button",elementText:"submit request"},{productId:x.product,productBrand:x.brand,productVariant:x.materialNumber});try{let{data:a}=await v({variables:{input:{materialNumber:null==x?void 0:x.materialNumber,quantity:A}}});if(a){var e;c.replace(Q.q8.quoteDetail(null==a?void 0:null===(e=a.generateQuote)||void 0===e?void 0:e.orderNumber))}}catch(e){g(!0),p(!1),(0,$.hO)({description:"we were unable to initiate your request",errorCategory:"other errors",productId:null==x?void 0:x.product,productVariant:null==x?void 0:x.materialNumber,productName:null==x?void 0:x.materialDescription,productBrand:null==x?void 0:x.brand})}}};return(0,i.jsx)(i.Fragment,{children:u?(0,i.jsx)(F.A,{open:!0,hideBackdrop:!0,children:(0,i.jsx)(G.A,{})}):(0,i.jsx)(K.Ay,{open:!0,onClose:(e,t)=>a(t),size:K.Ih.Small,renderTitle:()=>(0,i.jsx)(l.A,{variant:"h2",children:(0,i.jsx)(h.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})}),children:(0,i.jsx)(K.Uh,{children:m?(0,i.jsxs)(r.A,{children:[(0,i.jsxs)(r.A,{display:"flex",children:[(0,i.jsx)(I.A,{className:o.errorIcon,color:"error"}),(0,i.jsxs)(r.A,{children:[(0,i.jsx)(l.A,{className:o.errorTitle,children:(0,i.jsx)(h.A,{id:"REQUEST_QUOTE_ERROR_TITLE",defaultMessage:"We were unable to initiate your request."})}),(0,i.jsxs)(l.A,{className:o.errorMessage,children:[(0,i.jsx)(h.A,{id:"PLEASE",defaultMessage:"Please"}),(0,i.jsx)(s.A,{className:o.link,href:"/support/customer-support",onClick:()=>p(!0),children:(0,i.jsx)(h.A,{id:"CONTACT_CUSTOMER_SERVICE",defaultMessage:"contact customer service"})}),(0,i.jsx)(h.A,{id:"FOR_ASSISTANCE",defaultMessage:"for assistance."})]})]})]}),(0,i.jsx)(K.fW,{className:o.actionContainer,children:(0,i.jsx)(d.A,{color:"primary",size:"large",onClick:()=>a(),variant:"contained",children:(0,i.jsx)(h.A,{id:"CLOSE",defaultMessage:"Close"})})})]}):(0,i.jsxs)(i.Fragment,{children:[x&&y&&A?(0,i.jsx)(W.A,{material:x,product:y,quantity:A}):null,(0,i.jsx)(K.fW,{className:o.actionContainer,children:(0,i.jsx)(d.A,{color:"primary",disabled:!A,size:"large",onClick:b,variant:"contained",children:(0,i.jsx)(h.A,{id:"SUBMIT_REQUEST",defaultMessage:"Submit Request"})})})]})})})})};var J=t(42778);let Z=e=>{let{quoteData:a,variant:t="outlined",size:n="large",fullWidth:r=!0,className:l,type:o="button",disabled:s,id:c}=e,{setGlobalModalComponent:u,clearGlobalModalComponent:p}=(0,J.g)();return(0,i.jsx)(d.A,{id:c,className:l,color:"primary",disabled:s,fullWidth:r,onClick:()=>{var e,t,n;(0,$.jl)({event:"begin_quote_request",section:"pricing card",component:"right rail",elementType:"button",elementText:"request quote"},{productId:null==a?void 0:null===(e=a.material)||void 0===e?void 0:e.product,productBrand:null==a?void 0:null===(t=a.material)||void 0===t?void 0:t.brand,productVariant:null==a?void 0:null===(n=a.material)||void 0===n?void 0:n.materialNumber}),u((0,i.jsx)(X,{quoteData:a,onClose:p}))},size:n,type:o,variant:t,children:(0,i.jsx)(h.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})})};var ee=t(86680),ea=t(88700),et=t(17685),ei=t(99486),en=t(83707),er=t(49995),el=t(27447),eo=t(95349),es=t(45271),ed=t(36503),ec=t(4473),eu=t(61206);let ep=(0,m.A)(e=>({infoIcon:{color:e.palette.primary.main,cursor:"pointer",marginLeft:e.spacing(1),position:"relative",top:e.spacing(.5)},title:{marginBottom:e.spacing(2)},label:{fontWeight:e.typography.fontWeightMedium,marginRight:e.spacing(1)},closeButton:{display:"none"}})),em=(0,es.A)(e=>({tooltip:{backgroundColor:e.palette.common.white,color:e.palette.common.black,fontSize:e.typography.pxToRem(12),boxShadow:"0 6px 13px 0 rgba(0, 0, 0, 0.16)",padding:e.spacing(4,5,4,5),minWidth:250,maxWidth:500},arrow:{color:e.palette.common.white,fontSize:e.typography.pxToRem(20)},tooltipPlacementTop:{top:e.spacing(2)}}))(p.Ay),eg=e=>{let{id:a,defaultMessage:t,columnValue:n}=e,r=ep();return(0,i.jsxs)(ed.A,{container:!0,children:[(0,i.jsx)(ed.A,{item:!0,children:(0,i.jsx)(l.A,{variant:"body2",className:r.label,children:(0,i.jsx)(h.A,{id:a,defaultMessage:t})})}),(0,i.jsx)(ed.A,{item:!0,children:(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(eu.A,{value:n})})})]})},eh=e=>{let{customClasses:a,dataTestId:t,material:r,showAdditionalColumns:o=!0,showTitle:s=!0,tooltipContent:d}=e,c=ep(),[p,m]=(0,n.useState)(!1);return(0,i.jsx)(u.A,{onClickAway:()=>{m(!1)},children:(0,i.jsx)("span",{children:(0,i.jsx)(em,{arrow:!0,classes:a,"data-testid":t,interactive:!0,placement:"top",open:p,onClick:()=>{m(!0)},title:(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(l.A,{variant:"h3",className:c.title,children:(0,i.jsx)(h.A,{id:"PRODUCT_INFORMATION",defaultMessage:"Product Information"})}),o&&[{id:"ADDITIONAL_INFO_CARRIER_RESTRICTION",defaultMessage:"Additional Fees/Restrictions:",key:"carrierRestriction"},{id:"ADDITIONAL_INFO_FTCC",defaultMessage:"Foreign Trade Commodity Code:",key:"tariff"},{id:"ADDITIONAL_INFO_UNTN",defaultMessage:"UN Transportation Number(IATA):",key:"unNumber"},{id:"ADDITIONAL_INFO_CAS",defaultMessage:"CAS Number:",key:"casNumber"},{id:"ADDITIONAL_INFO_JFC",defaultMessage:"Japan Fire Code:",key:"jfcCode"},{id:"ADDITIONAL_INFO_PDSC",defaultMessage:"Poison/Deleterious Substance Code:",key:"pdcCode"}].map(e=>{var a;return(null==r?void 0:null===(a=r.additionalInfo)||void 0===a?void 0:a[e.key])&&(0,i.jsx)(eg,{id:e.id,defaultMessage:e.defaultMessage,columnValue:r.additionalInfo[e.key]},e.key)}),(null==r?void 0:r.packageType)&&(null==r?void 0:r.packageSize)&&(0,i.jsx)(eg,{id:"ADDITIONAL_INFO_PACKAGING_INFO",defaultMessage:"Packaging Information:",columnValue:"".concat(r.packageSize," in ").concat(r.packageType)}),d]}),children:(0,i.jsx)(ec.A,{className:c.infoIcon})})})})};var ex=t(52710),ey=t(78272),eA=t(75647),ev=t(19409);let eb=e=>{let{quoteData:a,variant:t="outlined",size:n="large",fullWidth:r=!0,className:l,type:o="button",disabled:s,id:c}=e,{setGlobalModalComponent:u,clearGlobalModalComponent:p}=(0,J.g)();return(0,i.jsx)(d.A,{id:c,className:l,color:"primary",disabled:s,fullWidth:r,size:n,type:o,variant:t,onClick:()=>{u((0,i.jsx)(ev.A,{quoteData:a,onClose:p}))},children:(0,i.jsx)(h.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})})};var ef=t(47801);(0,t(48573).H)(ef.Lr,"READY_TO_SHIP_NOTIFICATIONS","v1");var ej=t(30489),eN=t(64177);function eC(){let e=(0,z._)(["\n mutation ReadyToShipNotification($params: ReadyToShipNotificationInput!) {\n readyToShipNotification(params: $params) {\n brand\n }\n}\n "]);return eC=function(){return e},e}let eT={},eS=(0,q.J1)(eC());var eI=t(81566);let ek=(0,m.A)(e=>({notifyReadyToShipContainer:{paddingTop:e.spacing(6),marginTop:e.spacing(6),borderTop:"1px solid ".concat(e.palette.grey[400])},title:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightMedium,marginBottom:e.spacing(1),display:"flex",alignItems:"center","& > svg":{marginRight:e.spacing(2)}},text:{fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(4)},callOut:{wordWrap:"break-word",fontSize:"inherit",fontWeight:700},button:{marginBottom:e.spacing(4)}})),eR=e=>{let{material:a,userEmail:t,productImageUrl:r,productNumber:o}=e,s=ek(),[c,u]=(0,n.useState)("ready"),[p,m]=(0,n.useState)("closed"),[g]=function(e){let a={...eT};return eN.n(eS,a)}(),x=(0,n.useRef)(null),y=(0,n.useRef)(null);(0,n.useEffect)(()=>{u("ready")},[a]);let A=async()=>{u("communicating");try{var e;await g({variables:{params:{brand:(null==a?void 0:a.brand)||"",materialNumber:(null==a?void 0:a.materialNumber)||"",imageUrl:r,productNumber:o}}}),u("success"),m("closed"),null===(e=x.current)||void 0===e||e.focus()}catch(e){u("error"),m("error")}};return(0,i.jsxs)("div",{className:s.notifyReadyToShipContainer,"aria-live":"polite",children:["success"!==c?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{component:"h6",className:s.title,ref:y,children:(0,i.jsx)(h.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})}),(0,i.jsx)(l.A,{component:"p",className:s.text,children:(0,i.jsx)(h.A,{id:"NOTIFY_ME_DESCRIPTION",defaultMessage:"Get notified when this item is ready to ship via email."})}),(0,i.jsx)(d.A,{id:"notify-me",className:s.button,color:"primary",fullWidth:!0,variant:"contained",size:"large",onClick:()=>m("request"),children:(0,i.jsx)(h.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})})]}):(0,i.jsxs)("div",{ref:x,tabIndex:-1,children:[(0,i.jsxs)(l.A,{component:"h6",className:s.title,children:[(0,i.jsx)(ej.A,{htmlColor:eI.w4.palette.success.main,fontSize:"small"}),(0,i.jsx)(h.A,{id:"CONFIRMED",defaultMessage:"Confirmed"})]}),(0,i.jsx)(l.A,{component:"p",className:s.text,children:(0,i.jsx)(h.A,{id:"NOTIFY_ME_SUCCESS",defaultMessage:"We will send an email to {email} when this item is ready to ship.",values:{email:(0,i.jsx)(l.A,{component:"span",className:s.callOut,children:t})}})})]}),(0,i.jsx)(eM,{requestStatus:c,modalType:p,handleClick:A,handleError:()=>{u("communicating"),setTimeout(()=>{A()},1e3)},handleClose:()=>{m("closed"),u("ready")},userEmail:t,productSKU:(null==a?void 0:a.materialNumber)?null==a?void 0:a.materialNumber:""})]})};var e_=t(90079),eE=t(86024);let eP=(0,m.A)(e=>({title:{marginBottom:e.spacing(6)},text:{marginBottom:e.spacing(8)},callOut:{wordWrap:"break-word",fontWeight:700},modalBody:{margin:e.spacing(0,4,4,4),[e.breakpoints.up("md")]:{margin:e.spacing(0,8,8,8)}},modalActions:{display:"flex",flexDirection:"column","& button:not(:last-child)":{marginBottom:e.spacing(4)},[e.breakpoints.up("md")]:{flexDirection:"unset",justifyContent:"flex-end","& button:not(:last-child)":{marginRight:e.spacing(4),marginBottom:"unset"}}}})),eM=e=>{let{requestStatus:a,modalType:t,handleClick:n,handleError:r,handleClose:o,userEmail:s,productSKU:c}=e,u=eP();return(0,i.jsxs)(i.Fragment,{children:["request"===t&&(0,i.jsx)(eE.A,{open:"ready"===a,onClose:()=>o(),renderTitle:()=>(0,i.jsx)(l.A,{variant:"h2",component:"h2",className:u.title,children:(0,i.jsx)(h.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})}),closeButtonId:"mat-avl-modal-close",children:(0,i.jsxs)("div",{className:u.modalBody,children:[(0,i.jsx)(l.A,{component:"p",className:u.text,children:(0,i.jsx)(h.A,{id:"NOTIFY_ME_DESCRIPTION_MODAL",defaultMessage:"We will send an email to {email} when the available to ship date for {productSKU} is within 30 days.",values:{email:(0,i.jsx)(l.A,{component:"span",className:u.callOut,children:s}),productSKU:(0,i.jsx)(l.A,{component:"span",className:u.callOut,children:c})}})}),(0,i.jsxs)("div",{className:u.modalActions,children:[(0,i.jsx)(d.A,{"data-testid":"modal-notify-me-cancel",color:"primary",variant:"outlined",size:"large",onClick:()=>o(),children:(0,i.jsx)(h.A,{id:"CANCEL",defaultMessage:"Cancel"})}),(0,i.jsx)(d.A,{id:"modal-notify-me",color:"primary",variant:"contained",size:"large",onClick:n,endIcon:"communicating"===a&&(0,i.jsx)(e_.A,{color:"inherit",size:20,thickness:5}),disabled:"communicating"===a,children:(0,i.jsx)(h.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})})]})]})}),"error"===t&&(0,i.jsx)(eE.A,{role:"alertdialog","aria-labelledby":"alertHeading","aria-describedby":"alertText","aria-relevant":"all",open:"error"===t,onClose:()=>o(),renderTitle:()=>(0,i.jsx)(l.A,{variant:"h2",component:"h2",className:u.title,id:"alertHeading",children:"communicating"===a?(0,i.jsx)(h.A,{id:"PROCESSING",defaultMessage:"Processing"}):(0,i.jsx)(h.A,{id:"ERROR",defaultMessage:"Error"})}),closeButtonId:"mat-avl-modal-close",children:(0,i.jsxs)("div",{className:u.modalBody,children:[(0,i.jsx)(l.A,{component:"p",className:u.text,id:"alertText",children:(0,i.jsx)(h.A,{id:"NOTIFY_ME_ERROR",defaultMessage:"We are unable to complete the request at this time. Please try again."})}),(0,i.jsxs)("div",{className:u.modalActions,children:[(0,i.jsx)(d.A,{"data-testid":"modal-notify-me-cancel",color:"primary",variant:"outlined",size:"large",onClick:()=>o(),children:(0,i.jsx)(h.A,{id:"CANCEL",defaultMessage:"Cancel"})}),(0,i.jsx)(d.A,{id:"modal-notify-me-try-again",color:"primary",variant:"contained",size:"large",onClick:r,endIcon:"communicating"===a&&(0,i.jsx)(e_.A,{color:"inherit",size:20,thickness:5}),disabled:"communicating"===a,children:(0,i.jsx)(h.A,{id:"TRY_AGAIN",defaultMessage:"Try Again"})})]})]})})]})};var eL=t(84830),ew=t(76056),eO=t(21018),eD=t(58745),eB=t(61026),eF=t(4364),eW=t(67792),eU=t(16958);let ez=(0,m.A)(e=>({taxDisclaimer:{textTransform:"uppercase"},priceDisclaimer:{fontStyle:"italic",fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(1),[e.breakpoints.down("xs")]:{marginTop:e.spacing(2)}}})),eq=e=>{let{countryCode:a,isLoggedInUser:t=!1,hasDiscount:n=!1,isBBE:r=!1}=e,l=ez();return(0,i.jsxs)(i.Fragment,{children:["ar"===a.toLowerCase()&&(0,i.jsx)("div",{className:(0,er.A)(l.priceDisclaimer,l.taxDisclaimer),children:(0,i.jsx)(h.A,{id:"PRICE_WITHOUT_NATIONAL_TAXES",defaultMessage:"PRICE WITHOUT NATIONAL TAXES"})}),"us"===a.toLowerCase()&&!t&&n&&(0,i.jsx)("div",{className:l.priceDisclaimer,children:(0,i.jsx)(h.A,{id:"WEB_ONLY_PROMOTION",defaultMessage:"Web-Only Promotion"})}),"cn"===a.toLowerCase()&&r&&(0,i.jsx)("div",{className:(0,er.A)(l.priceDisclaimer,l.taxDisclaimer),children:(0,i.jsx)(h.A,{id:"PRICE_EXCLUDES_TAX_AND_FREIGHT",defaultMessage:"PRICE EXCLUDES TAX AND FREIGHT"})})]})};var eH=t(94295),eV=t(27651),eK=t(63752),eG=t(69485),eQ=t(46129);let{publicRuntimeConfig:{featureFlags:e$}}=R()(),eY=(0,m.A)(e=>({additionInfoTooltip:{maxWidth:314},promoCodeText:{fontWeight:900},promoDiscountMessage:{color:e.palette.error.main,fontSize:e.typography.pxToRem(14)},webOnlyDiscountMessage:{fontStyle:"italic",fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(1),[e.breakpoints.down("xs")]:{marginTop:e.spacing(2)}},signInOffer:{"& p":{fontSize:e.typography.pxToRem(14)},background:e.palette.promoGreen,margin:e.spacing(4,0),padding:e.spacing(2,0),textAlign:"center"}})),eX=e=>{let{availability:a,gaMessageId:t,promoCode:n,promoDiscount:o,requireLoginForPromo:s=!1}=e,d=eY(),c=(0,eK.mE)(),{userIsLoggedIn:u}=(0,B.iZ)();return(0,eG.L)(t,a),(0,i.jsx)(r.A,{mt:1,"data-testid":"promos-container",children:!u&&e$.signInPromotion&&s?(0,i.jsxs)("div",{className:d.signInOffer,children:[(0,i.jsx)(l.A,{children:(0,i.jsx)("strong",{children:(0,i.jsx)(h.A,{id:"LIMITED_TIME_OFFER_PROMO",defaultMessage:"Limited-time Offer"})})}),(0,i.jsx)(l.A,{children:(0,i.jsx)(h.A,{id:"SIGN_IN_FOR_DETAILS",defaultMessage:"{signInLink} for details",values:{signInLink:(0,i.jsx)(eQ.N,{href:Q.VV.index(),children:(0,i.jsx)(h.A,{id:"SIGN_IN",defaultMessage:"Sign In"})})}})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.A,{display:"flex",children:[(0,i.jsx)(l.A,{className:d.promoDiscountMessage,component:"span",children:(0,i.jsx)(h.A,{id:"DISCO_PROMO_MESSAGE",defaultMessage:"{promoDiscount} with code {promoCode}",values:{promoDiscount:(0,i.jsxs)(l.A,{className:"".concat(d.promoDiscountMessage," ").concat(d.promoCodeText),component:"span",children:["-",(0,i.jsx)(x.Gr,{value:o/100,style:"percent",minimumFractionDigits:0})]}),promoCode:(0,i.jsx)(l.A,{className:d.promoCodeText,component:"span",children:n})}})}),(0,i.jsx)(eh,{customClasses:{tooltip:d.additionInfoTooltip},dataTestId:"promos-additional-info",showAdditionalColumns:!1,showTitle:!1,tooltipContent:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{mb:4,children:(0,i.jsx)(l.A,{children:(0,i.jsx)(h.A,{id:"PROMOTION_BEST_PRICE",defaultMessage:"The best price will be determined in your cart based on all available options."})})}),(0,i.jsx)(r.A,{children:(0,i.jsx)(l.A,{children:(0,i.jsx)(h.A,{id:"PROMOTION_DETAIL_CONDITIONS",defaultMessage:"Promotion valid for a limited time, only on certain items, and limited quantities at the discretion of {companyName}. Exclusions may apply. Valid for web orders only.",values:{companyName:c}})})})]})})]}),(0,i.jsx)(r.A,{className:d.webOnlyDiscountMessage,children:(0,i.jsx)(h.A,{id:"WEB_ONLY_DISCOUNT",defaultMessage:"Web-Only Discount"})})]})})};var eJ=t(28160),eZ=t(14040);let e0=(0,m.A)(e=>({buyBoxContainer:{backgroundColor:e.palette.background.grey,boxShadow:"2px 2px 6px 0 rgba(0, 0, 0, 0.25);",padding:e.spacing(4)},productName:{marginBottom:e.spacing(-1)},materialNumber:{marginBottom:e.spacing(-1),maxWidth:200},price:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold,marginTop:e.spacing(1),color:e.palette.orange},listPrice:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightLight,color:e.palette.grey[600]},listPriceLabel:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightLight,color:e.palette.grey[600],marginRight:e.spacing(1)},saveLabel:{color:e.palette.orange,fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightLight,marginLeft:e.spacing(2)},ctaLink:{display:"flex",justifyContent:"center",fontSize:e.typography.pxToRem(16),margin:e.spacing(4,0,1)},loaderContainer:{position:"relative",backgroundColor:e.palette.background.default},loader:{animation:"$fadeAnimation 0.9s linear infinite",backgroundColor:"#efefef",minHeight:424},"@keyframes fadeAnimation":{"0%, 100%":{opacity:.4},"16.67%":{opacity:.6},"33.33%":{opacity:.8},"50%":{opacity:1},"66.67%":{opacity:.8},"83.33%":{opacity:.6}},vendorSku:{fontSize:e.typography.pxToRem(14),margin:e.spacing(1,0)},errorIcon:{fontSize:e.typography.pxToRem(14),color:e.palette.error.main,margin:e.spacing(1,1,0,0)},phone:{display:"inline-block"},or:{margin:e.spacing(0,1)},email:{display:"inline-block",wordBreak:"break-word"},linkStyle:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main},subscriptionText:{marginLeft:e.spacing(8),fontWeight:e.typography.fontWeightMedium},subscriptionError:{fontSize:e.typography.pxToRem(12),display:"flex",alignItems:"flex-end"},productBlockedLink:{margin:e.spacing(4,0),textAlign:"center"},lockIcon:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(16)},productBlockedText:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,marginLeft:e.spacing(2)},labelFontSize:{fontSize:e.typography.pxToRem(14)},minimumQuantityError:{color:e.palette.error.main,fontWeight:"bold"},pricingModal:{display:"flex",justifyContent:"center"},hideLink:{display:"none"},minHeight:{minHeight:475},minHeightError:{minHeight:320,padding:e.spacing(15,12,0,3)},inquireLink:{display:"flex",minWidth:0,padding:0},subscriptionContainer:{backgroundColor:e.palette.background.grey,margin:e.spacing(-3,-4,-4)},accordion:{backgroundColor:e.palette.background.grey},summary:{marginLeft:e.spacing(2),"& .MuiAccordionSummary-content.Mui-expanded":{margin:e.spacing(4,0)},"&.Mui-focused, &.Mui-focusVisible":{backgroundColor:"transparent"}},details:{margin:e.spacing(0,2),display:"inherit","&.MuiAccordionDetails-root":{padding:e.spacing(0,2,2)}},summaryContainer:{width:"100%"},summaryLabel:{display:"flex",alignItems:"center",justifyContent:"space-between",margin:e.spacing(0,4,0,0),"& .MuiFormControlLabel-root":{marginBottom:0}},accordionBackground:{backgroundColor:"#ECECF4"},infoLink:{marginLeft:e.spacing(8),fontWeight:700,color:e.palette.primary.main,display:"inline-block"},tooltipHeading:{fontWeight:700,marginBottom:e.spacing(2),fontSize:e.typography.pxToRem(16)},tooltip:{backgroundColor:e.palette.common.white,color:e.palette.common.black,maxWidth:e.typography.pxToRem(408),fontSize:e.typography.pxToRem(14),boxShadow:"0 6px 13px 0 rgba(0, 0, 0, 0.16)",padding:e.spacing(4)},arrow:{"&:before":{border:"solid ".concat(e.palette.grey[500]," 1px")},color:e.palette.common.white,fontSize:e.typography.pxToRem(24)},badgeWrapper:{paddingTop:e.spacing(2)},subsSaveMessage:{color:e.palette.error.main,fontSize:e.typography.pxToRem(14),marginLeft:e.spacing(8)}})),{publicRuntimeConfig:{featureFlags:e1}}=R()(),e2=e=>{var a,t,m,k,R,F,W,U,z,q,H,V,K,G,$,Y,X,J,es;let{isMultiCountryUser:ed,countryCode:ec,loading:eu,material:ep,product:em,error:eg,isPricingModal:ev=!1,showPriceDisclaimer:ef=!1,shouldShowReadyToShipNotification:ej=!1,focus:eN,sourceString:eC,promos:eT}=e,eS=e0(),{userSession:eI}=(0,et.j)(),ek=(0,eH.L)(eV.ID.countryCode),e_=(0,eH.L)(eV.TW.countryCode),eE=(0,B.iZ)(),{userIsLoggedIn:eP,currentUser:eM,isPublicOrderingCustomer:ez,isSubscriptionUser:eK,isQuoteRequester:eG,isB2BUser:eQ,getSitePreference:e$,isDarmstadtUser:eY,isPipelineUser:e2,isFTBUser:e4}=eE,e7=e$(B.VD.HideAddToCartForPrepackItems),e3=(0,B.nL)(eE),{authorized:e6}=(0,ei.I)(ei.N.canAddToCart),e8=(0,S.g9)(),{formatMessage:e5}=(0,g.A)(),[e9,ae]=(0,n.useState)(!1),[aa,at]=(0,n.useState)(!1),[ai,an]=(0,n.useState)(!1),[ar,al]=(0,n.useState)(!1),ao=e4||eQ||e2,as=(0,n.useMemo)(()=>{var e;return null==eT?void 0:null===(e=eT.skus)||void 0===e?void 0:e.find(e=>e.sku===(null==ep?void 0:ep.materialNumber))},[eT,ep]),{promoType:ad,code:ac,discount:au,terms:ap,uuid:am,hidePromoDetailsForAnonUser:ag}=null!==(V=null==as?void 0:as.data)&&void 0!==V?V:{},ah=null!==(K=null==ep?void 0:ep.listPrice)&&void 0!==K?K:0,ax=null!==(G=null==ep?void 0:ep.price)&&void 0!==G?G:0,ay=ah>ax?(ah-ax)/ah*100:null,aA=null===(a=em.forms)||void 0===a?void 0:a.find(e=>"bulk order"===e.type),av=null!==($=null===(t=em.forms)||void 0===t?void 0:t.filter(e=>"bulk order"!==e.type))&&void 0!==$?$:[],ab=(0,n.useMemo)(()=>aA?av.slice(0,1):av.slice(0,2),[av,aA]),[af,aj]=(0,n.useState)(!1),aN=()=>{aj(!1)},aC=()=>{aj(!0),(0,_.Sm)({action:"learn more subscription order",section:"pricing card",component:"right rail",elementType:"link",elementText:"learn more",material:{materialDescription:null==ep?void 0:ep.materialDescription,brand:null==ep?void 0:ep.brand,product:null==ep?void 0:ep.product,materialNumber:null==ep?void 0:ep.materialNumber}})},aT=e1.subscriptions&&eK&&(null==ep?void 0:ep.shipsToday),aS=(null==ep?void 0:ep.catalogType)==="buildingblocks",aI=null==em?void 0:em.isMarketplace,[ak]=null!==(Y=null==ep?void 0:ep.availabilities)&&void 0!==Y?Y:[],{contactPhone:aR,contactEmail:a_}=null!==(X=null==ak?void 0:ak.contactInfo)&&void 0!==X?X:{},aE=null==ep?void 0:null===(m=ep.availabilities)||void 0===m?void 0:m.some(e=>null==e?void 0:e.displayInquireLink),aP=e6&&!e7&&!ed&&(!aI||aI&&!!(null==eM?void 0:null===(k=eM.metadata)||void 0===k?void 0:k.isMarketplaceCartEnabled)),aM=(null==ak?void 0:ak.key)==="INQUIRE_FOR_PRICE_AND_AVAILABILITY",aL=(null==eM?void 0:eM.__typename)==="GuestUser"&&!aP,aw=(null==eM?void 0:eM.__typename)==="LoggedInUser"&&!(null==eM?void 0:null===(R=eM.metadata)||void 0===R?void 0:R.guestShoppingType)&&!ez&&!eG,aO=(null===(F=eE.currentUser)||void 0===F?void 0:F.email)||"",aD=(null==em?void 0:null===(U=em.images)||void 0===U?void 0:null===(W=U[0])||void 0===W?void 0:W.smallUrl)||"",aB=em.productNumber||"",{isPurpleProduct:aF}=(0,eL.Q)(em.erp_type),aW=(0,eH.L)(eV.CN.countryCode),aU=aF&&aW&&!eP,az=Object.values(null!==(J=null==ep?void 0:ep.additionalInfo)&&void 0!==J?J:{}).filter(e=>!!e&&"CartAdditionalInfo"!==e).length,aq=[aR,a_].filter(e=>!!e).join(" ".concat(e5({id:"OR",defaultMessage:"or"})," ")),aH=()=>{at(e=>!e)},aV=e=>{let a=eU.A[e];return a?e5(a):e},[aK,aG]=(0,n.useState)("FOUR_WEEKS"),{data:aQ,error:a$}=(0,eF.rI)({skip:!aT,ssr:!1}),aY=(null==aQ?void 0:null===(z=aQ.subscriptionFrequencies)||void 0===z?void 0:z.map(e=>({label:aV(e),value:e})))||[],aX=async(e,a)=>{let t=null;ar&&ad===eZ.c5.SubscribeSave&&ac&&(t=ac),(0,ee.p8)([{materialNumber:e.materialNumber,quantity:a,marketplaceOfferId:e.marketplaceOfferId,subscriptionFrequency:ar?aK:null}],[e],ev?ea.k9.SearchResultPage:ea.k9.ProductDetailPage),await e8([{materialNumber:e.materialNumber,quantity:a,subscriptionFrequency:ar?aK:null,promoCode:t,listPrice:ah}],void 0,void 0,aI),al(!1),aG("FOUR_WEEKS")},aJ=e=>{al(e),(0,_.Sm)({action:e?"subscription order radio":"one time order radio",section:"pricing card",component:"right rail",elementType:"radio button",material:{brand:null==ep?void 0:ep.brand,materialDescription:null==ep?void 0:ep.materialDescription,materialNumber:null==ep?void 0:ep.materialNumber,product:null==ep?void 0:ep.product}})},aZ=e=>{let a=aV(e);aG(e),(0,_.Sm)({action:"subscription frequency selection",detail:a.toLowerCase(),section:"pricing card",component:"right rail",elementType:"drop down",elementText:a.toLowerCase(),material:{brand:null==ep?void 0:ep.brand,materialDescription:null==ep?void 0:ep.materialDescription,materialNumber:null==ep?void 0:ep.materialNumber,product:null==ep?void 0:ep.product}})},a0=e=>{if("Enter"===e.key&&!ao){let a=e.target.closest("[id]");al((null==a?void 0:a.id)!=="one-time-order-header")}},a1=e=>{var a,t;let{validQty:d}=e,{values:c}=(0,C.j7)(),{quantity:u}=c;return(0,n.useEffect)(()=>{ai||ad!==eZ.c5.SubscribeSave||al(!0),an(!0)},[ad]),(0,i.jsxs)(i.Fragment,{children:[(null==ep?void 0:ep.promotionalMessage)?(0,i.jsx)(r.A,{mb:3,children:(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(L.A,{promotional:null==ep?void 0:ep.promotionalMessage})})}):null,(null==ep?void 0:ep.isBlockedProduct)?(0,i.jsxs)(r.A,{className:eS.productBlockedLink,children:[(0,i.jsxs)(o.A,{onClick:()=>at(!0),children:[(0,i.jsx)(D.A,{className:eS.lockIcon}),(0,i.jsx)(l.A,{className:eS.productBlockedText,children:(0,i.jsx)(h.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),aa&&(0,i.jsx)(O.A,{open:aa,onCancel:aH})]}):(0,i.jsx)(C.D0,{name:"quantity",component:j.A,disabled:e7,error:!d,filled:!0,max:null!==(a=null==ep?void 0:ep.availableQtyInStock)&&void 0!==a?a:9999,min:1}),aU?(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(ew.A,{fullWidth:!0,size:"large"})}):(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(A.Ay,{canAddToCart:aP,dirty:!0,fullWidth:!0,handleAddToCart:()=>aX(ep,u),hideAddToCartForPrepackItems:e7,isSubmitting:!1,size:"large",disabled:!d||(null==ep?void 0:ep.isBlockedProduct)})}),(null==ep?void 0:ep.isBuyNow)&&aP?(0,i.jsx)(v.A,{fullWidth:!0,materialNumber:null==ep?void 0:ep.materialNumber,quantity:u,marketplace:aI,gaType:ev?"search results page":"product detail page",promoCode:ad&&ad===eZ.c5.PercentOff?ac:void 0}):null,e3&&(null==e1?void 0:e1.requestQuoteModal)&&!e7&&!aI&&!aS?(0,i.jsx)(r.A,{mt:2,children:eQ?(0,i.jsx)(eb,{quoteData:{material:ep,product:em,quantity:u},disabled:!u}):(0,i.jsx)(Z,{quoteData:{material:ep,product:em,quantity:u},disabled:!u})}):null,aA&&!aI&&!e7&&!eY&&(0,i.jsx)(b.N,{href:"".concat(aA.url,"?tfa_1=").concat(em.productNumber,"&tfa_2=").concat((0,eA.Ay)(null!==(t=null==em?void 0:em.name)&&void 0!==t?t:"")),passHref:!0,children:(0,i.jsx)(s.A,{className:eS.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,_.RH)({product:em,materialNumber:null==ep?void 0:ep.materialNumber,cta:aA}),children:(0,i.jsx)(h.A,{id:"REQUEST_BULK_ORDER",defaultMessage:"Request a Bulk Order"})})}),!!ab.length&&!aI&&ab.map(e=>(0,i.jsx)(b.N,{href:e.url,passHref:!0,children:(0,i.jsx)(s.A,{className:eS.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,_.RH)({product:em,materialNumber:null==ep?void 0:ep.materialNumber,cta:e}),children:(0,i.jsx)(h.A,{id:e.label.toUpperCase().split(" ").join("_"),defaultMessage:e.label})})},e.label)),ej&&(0,i.jsx)(eR,{material:ep,userEmail:aO,productImageUrl:aD,productNumber:aB})]})},a2=e=>{var a;let{validQty:t}=e,{values:n}=(0,C.j7)(),{quantity:s}=n;return(0,i.jsx)(i.Fragment,{children:e2?(0,i.jsx)("div",{className:eS.subscriptionText,children:(0,i.jsx)(h.A,{id:"PIPELINE_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for customers requiring permission to purchase."})}):eQ?(0,i.jsx)("div",{className:eS.subscriptionText,children:(0,i.jsx)(h.A,{id:"B2B_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for eProcurement customers at this time."})}):e4?(0,i.jsx)("div",{className:eS.subscriptionText,children:(0,i.jsx)(h.A,{id:"FTB_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are only available to customers who have previously purchased at this time."})}):(0,i.jsxs)(i.Fragment,{children:[(null==ep?void 0:ep.isBlockedProduct)?(0,i.jsxs)(r.A,{className:eS.productBlockedLink,children:[(0,i.jsxs)(o.A,{onClick:()=>at(!0),children:[(0,i.jsx)(D.A,{className:eS.lockIcon}),(0,i.jsx)(l.A,{className:eS.productBlockedText,children:(0,i.jsx)(h.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),aa&&(0,i.jsx)(O.A,{open:aa,onCancel:aH})]}):(0,i.jsx)(C.D0,{name:"quantity",component:j.A,disabled:e7,error:!t,filled:!0,max:null!==(a=null==ep?void 0:ep.availableQtyInStock)&&void 0!==a?a:9999,min:1}),(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(N.A,{value:aK,onChange:e=>aZ(e.target.value),renderValue:e=>aV(e),displayEmpty:!0,size:"medium",children:aY.map(e=>(0,N.h)(e.value,e.value,e.label))})}),(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(A.Ay,{canAddToCart:aP,dirty:!0,fullWidth:!0,handleAddToCart:()=>aX(ep,s),hideAddToCartForPrepackItems:e7,isSubmitting:!1,size:"large",disabled:!t||(null==ep?void 0:ep.isBlockedProduct)})}),(null==ep?void 0:ep.isBuyNow)&&aP?(0,i.jsx)(v.A,{fullWidth:!0,materialNumber:null==ep?void 0:ep.materialNumber,quantity:s,marketplace:aI,subscriptionFrequency:aK,promoCode:ad===eZ.c5.SubscribeSave?ac:void 0,gaType:ev?"search results page":"product detail page"}):null]})})},a4={...ep,discoMessage:e5({id:"DISCO_PROMO_MESSAGE",defaultMessage:"{promoDiscount} with code {promoCode}"},{promoDiscount:"-".concat(au,"%"),promoCode:ac})},a7=null!==(es=null==ep?void 0:null===(q=ep.availabilities)||void 0===q?void 0:q.find(e=>(null==e?void 0:e.messageType)==="primary"))&&void 0!==es?es:null==ep?void 0:null===(H=ep.availabilities)||void 0===H?void 0:H[0],a3=null==a7?void 0:a7.key;return(0,i.jsx)(C.l1,{initialValues:{materialNumber:null==ep?void 0:ep.materialNumber,quantity:1},onSubmit:(e,a)=>{setTimeout(()=>{a.setSubmitting(!1)},1e3)},children:e=>{var a,t,n,o,s,m,g,A;let{values:v}=e,j=(0,ey.aA)(v.quantity,null==ep?void 0:ep.minOrderQuantity,ek||e_),N=v.quantity>0&&!j;return(0,i.jsxs)(i.Fragment,{children:[eu?(0,i.jsx)("div",{className:eS.loaderContainer,children:(0,i.jsx)("div",{className:(0,er.A)(eS.loader,{[eS.minHeight]:ev})})}):(0,i.jsxs)("div",{className:(0,er.A)(eS.buyBoxContainer,{[eS.minHeight]:ev,[eS.minHeightError]:ev&&eg}),children:[eg?(0,i.jsx)(ex.M,{source:"pdp",brand:(null==ep?void 0:ep.brand)||(null==em?void 0:null===(a=em.brand)||void 0===a?void 0:a.name)||"",item:(null==ep?void 0:ep.materialNumber)||(null==em?void 0:em.productNumber),waitUntilVisible:!0,children:(0,i.jsx)(E.A,{error:eg,productNumber:null==em?void 0:em.productNumber,isCenterJustified:!1,isMarketplace:aI,sellerName:(null==em?void 0:em.displaySellerName)||(0,P.t1)(null==em?void 0:em.attributes),marketplaceSellerId:null!==(n=null==em?void 0:em.marketplaceSellerId)&&void 0!==n?n:"",marketplaceOfferId:null!==(o=null==em?void 0:em.marketplaceOfferId)&&void 0!==o?o:""})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A,{component:"h2",variant:"h2",className:eS.materialNumber,children:[ep?(0,i.jsx)(el.A,{materialNumber:ep.materialNumber}):null,az?(0,i.jsx)(eh,{material:ep}):null]}),aS&&(null==ep?void 0:ep.vendorSKU)?(0,i.jsxs)(l.A,{className:eS.vendorSku,children:[(0,i.jsx)(h.A,{id:"VENDOR_SKU",defaultMessage:"Vendor SKU"}),": ",null==ep?void 0:ep.vendorSKU]}):null,aM?(0,i.jsx)(r.A,{mt:4,children:(0,i.jsxs)(l.A,{variant:"body2",children:[(0,i.jsx)(I.A,{className:eS.errorIcon}),(0,i.jsx)(h.A,{id:"INQUIRE_FOR_PRICE",defaultMessage:"This item is not able to be purchased as a guest user. For further information, please contact us at {contactInfo}.",values:{contactInfo:(0,i.jsxs)(i.Fragment,{children:[aR&&(0,i.jsx)("span",{className:eS.phone,children:aR}),aR&&a_&&(0,i.jsx)(l.A,{component:"span",className:eS.or,children:(0,i.jsx)(h.A,{id:"OR",defaultMessage:"or"})}),a_&&(0,i.jsx)("div",{className:eS.email,children:(0,i.jsx)("a",{href:"mailto:".concat(a_),children:a_})})]})}})]})}):(0,i.jsxs)(i.Fragment,{children:[aE?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{className:eS.inquireLink,onClick:()=>ae(!0),children:(0,i.jsx)(h.A,{id:"INQUIRE",defaultMessage:"Inquire"})}),e9&&(0,i.jsx)(y.A,{open:e9,setModalOpen:ae,headerContent:null==ep?void 0:ep.materialNumber,bodyContent:(0,i.jsx)(r.A,{mr:12,mb:8,children:(0,i.jsx)(h.A,{id:"INQUIRE_PRICING_MODAL",defaultMessage:"It is difficult to publish a price for the item selected due to market conditions and/or volume. Please contact us at the following phone number or email address for further discussion. {inquirePriceContactInfo}",values:{inquirePriceContactInfo:aq}})})})]}):(0,i.jsxs)(i.Fragment,{children:[(null==ep?void 0:ep.hidePriceMessageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(eo.A,{msgKey:null==ep?void 0:ep.hidePriceMessageKey})}):(0,i.jsx)(l.A,{className:eS.price,component:"h3",variant:"h3",children:(0,i.jsx)(x.Gr,{style:"currency",currencyDisplay:"symbol",currency:null==ep?void 0:ep.currency,value:null!=ax?ax:0})}),null===ay||!(ay>0)||(null==ep?void 0:ep.hidePriceMessageKey)?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{component:"span",className:eS.listPriceLabel,children:(0,i.jsx)(h.A,{id:"LIST_PRICE",defaultMessage:"List Price"})}),(0,i.jsx)(l.A,{component:"span",className:eS.listPrice,children:(0,i.jsx)(x.Gr,{style:"currency",currencyDisplay:"symbol",currency:null==ep?void 0:ep.currency,value:null!=ah?ah:0})}),ay>=5&&(0,i.jsx)(l.A,{component:"span",className:eS.saveLabel,children:(0,i.jsx)(h.A,{id:"SAVE_DISCOUNT_PRICE",defaultMessage:"Save {discount}%",values:{discount:Math.round(ay)}})})]})]}),ef&&(0,i.jsx)(eq,{countryCode:eI.country,isLoggedInUser:eP,hasDiscount:null!==ay,isBBE:aS}),e1.pdpSMSMPromotion&&ad===eZ.c5.BuySave?(0,i.jsx)(eJ.A,{className:eS.badgeWrapper,showTooltip:!0,discount:au,qualifyingAmount:null!==(s=null==ap?void 0:ap.qualifyingAmount)&&void 0!==s?s:void 0,currency:null!==(m=null==ap?void 0:ap.currency)&&void 0!==m?m:void 0,promoId:am||""}):(0,i.jsx)(ex.M,{source:"pdp",brand:null==ep?void 0:ep.brand,item:null==ep?void 0:ep.materialNumber,pricing:a4,children:ac&&au&&ad!==eZ.c5.SubscribeSave&&ad===eZ.c5.PercentOff&&!ar&&(0,i.jsx)(eX,{availability:a7,gaMessageId:a3,promoCode:ac,promoDiscount:au,requireLoginForPromo:ag})}),(0,i.jsx)(r.A,{mt:4,children:(0,i.jsx)(c.A,{})}),(0,i.jsxs)(r.A,{mt:4,mb:2,"data-optimizely":"availability",children:[ep?(0,i.jsx)(ex.M,{source:ev?eC||"srp - ".concat(eN):"pdp",brand:ep.brand,item:ep.materialNumber,pricing:ep,waitUntilVisible:!0,children:(0,i.jsx)(f.A,{material:ep,canAddToCart:aP,countryCode:ec,gaDetailsClick:()=>(0,_.Sm)({action:"check availability details",section:ev?"modal p&a":"summary",component:ev?"modal":"right rail",elementType:"link",elementText:"details",material:ep}),gaSection:"pricing card",gaComponent:"right rail"})}):null,(null==ep?void 0:ep.expirationDate)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(en.A,{expirationDate:ep.expirationDate,outerClassName:eS.labelFontSize,displayInline:!0,displayColon:!0})}):null,(null==ep?void 0:ep.minOrderQuantity)&&(null==ep?void 0:ep.minOrderQuantity)>1?(0,i.jsxs)(l.A,{className:(0,er.A)(eS.labelFontSize,{[eS.minimumQuantityError]:!N}),children:[(0,i.jsx)(h.A,{id:"MINIMUM_ORDER_QUANTITY",defaultMessage:"Minimum Order Quantity: "}),ep.minOrderQuantity]}):null,(null==ak?void 0:null===(t=ak.supplementaryMessage)||void 0===t?void 0:t.messageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(w.A,{supplementary:null==ak?void 0:ak.supplementaryMessage,productName:em.name})}):null,(null==ep?void 0:ep.isPBAvailable)&&(0,i.jsx)(r.A,{mt:2,children:(0,i.jsx)(M.A,{materialNumber:null!==(g=null==ep?void 0:ep.materialNumber)&&void 0!==g?g:"",brand:null==ep?void 0:ep.brand,productName:null!==(A=null==ep?void 0:ep.product)&&void 0!==A?A:"",erp_type:null==em?void 0:em.erp_type})})]}),(0,i.jsx)(r.A,{mb:3,children:(0,i.jsx)(c.A,{})}),aT?(0,i.jsxs)(r.A,{className:eS.subscriptionContainer,children:[(0,i.jsx)(eO.A,{details:(0,i.jsx)(a1,{validQty:N}),expanded:!ar,onKeyDown:a0,summary:(0,i.jsx)(eD.A,{label:"One Time Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>aJ(!1),checked:!ar}),summaryAriaControls:"one-time-order-content",summaryId:"one-time-order-header",overrideClasses:{accordion:eS.accordion,summary:eS.summary,details:eS.details}}),(0,i.jsx)(eO.A,{details:(0,i.jsx)(a2,{validQty:N}),expanded:!!e4||!!eQ||!!e2||ar,onKeyDown:a0,summary:!a$&&(null==aY?void 0:aY.length)?(0,i.jsxs)(r.A,{className:eS.summaryContainer,children:[(0,i.jsxs)(r.A,{className:(0,er.A)(eS.summaryLabel),children:[(0,i.jsx)(eD.A,{label:"Subscription Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>aJ(!0),checked:ar,disabled:ao}),(0,i.jsx)(eB.A,{})]}),ad===eZ.c5.SubscribeSave&&(0,i.jsx)("div",{children:(0,i.jsx)(l.A,{className:eS.subsSaveMessage,children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_SAVE_MESSAGE",defaultMessage:"Save {discount}% off list price",values:{discount:au}})})}),(0,i.jsx)(u.A,{onClickAway:aN,children:(0,i.jsx)(p.Ay,{arrow:!0,classes:{tooltip:eS.tooltip,arrow:eS.arrow},onClose:aN,open:af,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{className:eS.tooltipHeading,variant:"h3",children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_ORDER_HEADING",defaultMessage:"Subscription Orders"})}),ad&&ad===eZ.c5.SubscribeSave?(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_LEARN_MORE_DESCRIPTION",defaultMessage:"Automatically places orders for products at regular intervals ensuring consistent delivery, so you never run out.{br} Subscribe for {discount}% off list price on every subscription order or keep your contractual pricing to guarantee you always get the best deal. Price updated in cart. {br} Subscriptions can be cancelled anytime from My Account.",values:{br:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),(0,i.jsx)("br",{})]}),discount:au}})}):(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_LEARN_MORE_DESCRIPTION_SUBS_PRODUCTS",defaultMessage:"Automatically places orders for products at regular intervals ensuring consistent delivery, so you never run out. Subscriptions can be cancelled anytime from My Account."})})]}),placement:"top",children:(0,i.jsx)(eW.A,{className:eS.infoLink,onClick:aC,children:(0,i.jsx)(h.A,{id:"LEARN_MORE",defaultMessage:"Learn More"})})})})]}):(0,i.jsxs)("span",{className:eS.subscriptionError,children:[(0,i.jsx)(I.A,{className:eS.errorIcon}),(0,i.jsx)(h.A,{id:"SUBSCRIPTION_FAILED",defaultMessage:"Subscriptions are currently unavailable."})]}),summaryAriaControls:"subscription-order-content",summaryId:"subscription-order-header",overrideClasses:{accordion:(0,er.A)(eS.accordion,eS.accordionBackground),summary:eS.summary,details:eS.details}})]}):null,aT||ed?null:(0,i.jsx)(i.Fragment,{children:aL||aw?(0,i.jsx)(h.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(b.N,{...Q.mK.index({path:"/collections/offices",language:eI.language,country:eI.country}),passHref:!0,children:(0,i.jsx)("a",{rel:"noopener",target:"_blank",children:(0,i.jsx)(h.A,{id:"CONTACT",defaultMessage:"contact"})})})}}):(0,i.jsx)(a1,{validQty:N})})]})]}),ev?(0,i.jsx)(r.A,{mt:5,className:(0,er.A)({[eS.pricingModal]:ev}),children:ep?(0,i.jsx)(T.A,{materialNumber:null==ep?void 0:ep.materialNumber,materialId:null==ep?void 0:ep.materialId,brand:null==ep?void 0:ep.brand,productName:null==ep?void 0:ep.materialDescription,productId:null==ep?void 0:ep.product,type:null==ep?void 0:ep.type,quantity:v.quantity,isLinkButton:!0,classes:{linkStyle:eS.linkStyle}}):null}):null]}),(0,i.jsx)(r.A,{mt:5,className:(0,er.A)({[eS.hideLink]:ev}),children:ep?(0,i.jsx)(T.A,{materialNumber:null==ep?void 0:ep.materialNumber,materialId:null==ep?void 0:ep.materialId,brand:null==ep?void 0:ep.brand,productName:null==ep?void 0:ep.materialDescription,productId:null==ep?void 0:ep.product,type:null==ep?void 0:ep.type,quantity:v.quantity,isLinkButton:!0,classes:{linkStyle:eS.linkStyle}}):null})]})}})}},51684:(e,a,t)=>{t.d(a,{A:()=>r});var i=t(37876);t(14232);let n=(0,t(99220).n9)()(e=>({banner:{alignItems:"center",background:e.palette.primary.light,display:"flex",flexDirection:"column",justifyContent:"center",padding:e.spacing(2,0,2),[e.breakpoints.up("lg")]:{alignItems:"start",padding:e.spacing(4,45,4,6)},"& p":{fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(15)}}}})),r=e=>{let{children:a}=e,{classes:t}=n();return(0,i.jsx)("div",{className:t.banner,children:a})}},52263:(e,a,t)=>{t.d(a,{Ay:()=>j,yU:()=>f});var i=t(37876),n=t(14232),r=t(61261),l=t(34415),o=t(5411),s=t(39069),d=t(52413),c=t(79399),u=t(69485),p=t(49995),m=t(64673),g=t(88700),h=t(17685),x=t(8288);let y=(0,r.A)(e=>({container:{display:"flex",flexDirection:"column"},paMessageContainer:{display:"block",flexDirection:"column",textAlign:"center"},leftAlign:{textAlign:"left"},contentWrapper:{display:"inline-block",margin:e.spacing(5,0),width:"90%"},contentWrapperWithButtons:{display:"flex",flexDirection:"column",margin:e.spacing(5,0),[e.breakpoints.up("md")]:{display:"inline-block"}},buttonContainer:{margin:e.spacing(5,0)},button:{textAlign:"center",color:"".concat(e.palette.common.white," !important"),"&:hover":{textDecoration:"none !important"},display:"inline-block",margin:e.spacing(1,0),width:"100%",[e.breakpoints.up("md")]:{margin:e.spacing(0,1),width:"auto"}},textLink:{textTransform:"lowercase"}})),A=e=>new DOMParser().parseFromString(e,"text/html"),v=e=>{let a=[...e.links],t=e.getElementsByTagName("b"),i=e.getElementsByTagName("span");return{htmlLinks:a,htmlText:i.length>0?i:t}},b=e=>e.htmlLinks.map(e=>{let a=e.getAttribute("href");return{href:"".concat(a.startsWith("/")?"":"/").concat(a),text:e.textContent.trim()}}).filter(Boolean);var f=function(e){return e.PDP="pdp",e.SRP="srp",e}({});let j=e=>{let{brandKey:a,productNumber:t,paMessage:r,leftAlign:f}=e;(0,u.L)("PA_MESSAGE");let j=y(),[N,C]=(0,n.useState)(!1),{userSession:T}=(0,h.j)(),S={htmlLinks:[],htmlText:[]};return N&&(S=v(A(r))),(0,n.useEffect)(()=>{C(!0)},[]),(0,i.jsx)(i.Fragment,{children:N?(0,i.jsx)("div",{className:j.container,id:"pricing-availability-message-".concat(a,"-").concat(t),"data-testid":"pricing-availability-message-".concat(a,"-").concat(t),children:(0,i.jsxs)("div",{className:(0,p.A)(j.paMessageContainer,{[j.leftAlign]:f}),children:[!f&&(0,i.jsx)(s.A,{light:!0}),(e=>{let n=b(e),r=e.htmlText[0];if((null==r?void 0:r.localName)==="b"){var s;return(0,i.jsxs)("div",{className:j.contentWrapper,children:[(0,i.jsxs)("b",{children:[r.textContent," "]}),(0,i.jsx)("span",{children:null===(s=r.nextSibling)||void 0===s?void 0:s.textContent}),(0,i.jsx)("span",{children:(0,i.jsx)(d.N,{href:n[0].href,passHref:!0,children:(0,i.jsx)(l.A,{className:j.textLink,color:"primary","data-testid":"pa-message-link-".concat(a,"-").concat(t),children:n[0].text})})})]})}return(null==r?void 0:r.localName)==="span"?(0,i.jsxs)("div",{className:j.contentWrapperWithButtons,children:[(0,i.jsx)("span",{children:r.textContent}),(0,i.jsx)("div",{className:j.buttonContainer,children:n.map(e=>(0,i.jsx)(o.A,{"data-testid":"pa-message-button-".concat(a,"-").concat(t),variant:"contained",color:"primary",href:e.href,className:j.button,onClick:()=>{if("/lab-water"===e.href||e.href.includes("/campaigns/milli-q-iq")){let a=(0,x.xS)(T,e.href),i="/lab-water"===e.href?"select and configure system":"contact specialist",n="/lab-water"===e.href?a.as+"?step=1":a.as;(0,c.b8)({event:m.FL.Lab_Water_Configurator_Interaction,action:i,component:g.IP.Body,elementType:g.T.Button,elementText:i,linkUrl:n,productId:t,productBrand:g.Fl.Mm})}},children:e.text},e.text))})]}):null})(S)]})}):null})}},53295:(e,a,t)=>{t.d(a,{A:()=>et});var i=t(37876),n=t(14232),r=t(61261),l=t(35877),o=t(34415),s=t(52413),d=t(11148),c=t(61206),u=t(43343),p=t(77660),m=t(74770);let g=(0,r.A)(e=>({container:{display:"flex",marginBottom:e.spacing(5)},details:{overflow:"hidden"},imageContainer:{width:88,height:88,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",backgroundColor:e.palette.common.white,border:"solid 1px ".concat(e.palette.grey[400]),borderRadius:e.shape.borderRadius,marginRight:e.spacing(4),wordWrap:"break-word"},image:{maxWidth:"100%",maxHeight:"100%"},brandName:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold},materialNumber:{color:e.palette.primary.main,cursor:"pointer",display:"block",fontSize:e.typography.pxToRem(20),overflow:"hidden"},materialName:{fontWeight:e.typography.fontWeightBold,fontSize:e.typography.pxToRem(20),overflow:"hidden"},materialDescription:{fontSize:e.typography.pxToRem(16),overflow:"hidden"},materialNameWrapper:{display:"flex",flexWrap:"wrap",columnGap:e.spacing(4)},badge:{margin:e.spacing(1),width:20,height:20}})),h=e=>{var a,t,n;let{item:r}=e,l=g(),h=(null==r?void 0:r.features)&&(null==r?void 0:r.features.length)>0,[x]=null!==(t=null==r?void 0:r.images)&&void 0!==t?t:[],y=null==r?void 0:null===(a=r.productKey)||void 0===a?void 0:a.replace(/[\W_]+/g,"");return(0,i.jsxs)("div",{className:l.container,children:[(0,i.jsx)("div",{className:l.imageContainer,children:x?(0,i.jsx)(u.A,{alt:null==r?void 0:r.productNumber,className:l.image,sizes:"60px",src:(null==x?void 0:x.smallUrl)||(null==x?void 0:x.mediumUrl)||(null==x?void 0:x.largeUrl),urls:[null==x?void 0:x.smallUrl,null==x?void 0:x.mediumUrl,null==x?void 0:x.largeUrl]}):null}),(0,i.jsxs)("div",{className:l.details,children:[(null==r?void 0:r.brand)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:l.brandName,children:(0,i.jsx)(c.A,{value:null==r?void 0:r.brand.name})}),(0,i.jsx)(s.N,{...d.aR.index(((null==r?void 0:r.brand.key)||(null==r?void 0:r.brand.name)||"").replace(" ","").toLowerCase(),null!=y?y:"",(null==r?void 0:r.type)===p.iC.ThirdPartyProvider?{context:"bbe"}:{}),passHref:!0,children:(0,i.jsx)(o.A,{className:l.materialNumber,children:null==r?void 0:r.productNumber})})]}):null,(0,i.jsxs)("div",{className:l.materialNameWrapper,children:[(null==r?void 0:r.name)?(0,i.jsx)("div",{className:l.materialName,children:(0,i.jsx)(c.A,{value:null==r?void 0:r.name})}):null,h?(0,i.jsx)(m.A,{features:null!==(n=null==r?void 0:r.features)&&void 0!==n?n:[],customClass:l.badge}):null]}),(null==r?void 0:r.description)?(0,i.jsx)("div",{className:l.materialDescription,children:(0,i.jsx)(c.A,{value:null==r?void 0:r.description})}):null]})]})};var x=t(28975),y=t(50485),A=t(71541),v=t(36503),b=t(57927),f=t(5213),j=t(12197),N=t(7645),C=t(22071),T=t(8733),S=t(88694),I=t(2184),k=t(17685),R=t(27651),_=t(42489),E=t(11788),P=t(71662),M=t(97710),L=t(46129);let w=(0,t(35967).YK)({REPLACEMENT_PRODUCT_MESSAGE:{id:"REPLACEMENT_PRODUCT_MESSAGE",defaultMessage:"We recommend the replacement products listed below:"},CONTACT_SELLER_WITH_NAME:{id:"CONTACT_SELLER_WITH_NAME",defaultMessage:"Contact {sellerName}."},CONTACT_TECHNICAL_SERVICE:{id:"CONTACT_TECHNICAL_SERVICE",defaultMessage:"Contact Technical Service"},FOR_ASSISTANCE:{id:"FOR_ASSISTANCE",defaultMessage:"for assistance."},THIS_PRODUCT_HAS_BEEN_DISCONTINUED:{id:"THIS_PRODUCT_HAS_BEEN_DISCONTINUED",defaultMessage:"Product {productNumber} has been discontinued.",title:"DISCONTINUED"},TECHNICAL_DIFFICULTIES:{id:"TECHNICAL_DIFFICULTIES",defaultMessage:"We are currently experiencing some technical difficulties. Please try again later.",title:"TECHNICAL DIFFICULTIES"}});var O=t(61622),D=t(40002);let B=(0,r.A)(e=>({link:{cursor:"pointer",margin:e.spacing(0,1)},message:{marginLeft:e.spacing(1)}})),F=e=>{var a;let{errorKey:t,product:n,replacementProducts:r,onClose:l}=e,s=B(),c=(0,d.rd)(),u=(null==n?void 0:n.displaySellerName)||(0,M.t1)(null==n?void 0:n.attributes),p={productKey:null==n?void 0:n.productKey,brandKey:null==n?void 0:null===(a=n.brand)||void 0===a?void 0:a.key,images:null==n?void 0:n.images,showViewDetailsLink:!0},m=(0,O.j)(r);return(0,i.jsx)(x.Ay,{size:x.Ih.Small,open:!0,onClose:l,renderTitle:()=>{var e,a;return(null===(e=w[t])||void 0===e?void 0:e.title)?(0,i.jsx)(j.A,{variant:"h2",children:(0,i.jsx)(T.A,{id:t,defaultMessage:"{title}",values:{title:null===(a=w[t])||void 0===a?void 0:a.title}})}):null},children:(0,i.jsxs)(x.Uh,{children:[(0,i.jsx)(T.A,{...w[t],values:{productNumber:null==n?void 0:n.productNumber}}),(0,i.jsx)(T.A,{id:t,defaultMessage:"{additionalMessage}",values:{additionalMessage:(()=>{if(null==n?void 0:n.isMarketplace){var e,a;return(0,i.jsx)(L.N,{...d.kJ.contact(u,null!==(e=null==n?void 0:n.marketplaceSellerId)&&void 0!==e?e:"",c.asPath,d.C2.OFFER_MESSAGING,null!==(a=null==n?void 0:n.marketplaceOfferId)&&void 0!==a?a:""),children:(0,i.jsx)(T.A,{...w.CONTACT_SELLER_WITH_NAME,values:{sellerName:u}})})}return(null==r?void 0:r.length)?(0,i.jsx)(j.A,{className:s.message,variant:"inherit",children:(0,i.jsx)(T.A,{...w.REPLACEMENT_PRODUCT_MESSAGE})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{className:s.link,href:"/support/customer-support",children:(0,i.jsx)(T.A,{...w.CONTACT_TECHNICAL_SERVICE})}),(0,i.jsx)(T.A,{...w.FOR_ASSISTANCE})]})})()}}),m.length?(0,i.jsx)(P.A,{type:D.j.RecommendedProducts,preloadCardImages:!0,mainProduct:p,products:m,slidesToShow:1,withoutControls:(null==m?void 0:m.length)<=4}):null]})})};var W=t(42778),U=t(28888),z=t(82897),q=t(54431);function H(){let e=(0,U._)(["\n fragment PDPFields on Product {\n id\n productNumber\n productKey\n erpProductKey\n isSial\n status\n isMarketplace\n marketplaceSellerId\n marketplaceOfferId\n substance {\n id\n name\n }\n brand {\n key\n erpKey\n name\n logo {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n cells {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n color\n }\n aliases {\n key\n value\n label\n }\n name\n legalName\n legalNameSuffix\n displaySellerName\n description\n descriptions {\n label\n values\n }\n molecularWeight\n empiricalFormula\n linearFormula\n casNumber\n badge\n keyAttributes {\n key\n label\n values\n }\n images {\n altText\n label\n smallUrl\n mediumUrl\n largeUrl\n videoUrl\n }\n synonyms\n attributes {\n key\n label\n values\n }\n materialIds\n compliance {\n key\n label\n value\n images {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n }\n complianceReach {\n key\n label\n value\n casNos\n }\n complianceJp {\n id\n label\n value\n seq\n }\n browserMetadata {\n title\n description\n keywords\n }\n sdsPnoKey\n links {\n label\n key\n anchorTag\n image\n }\n features\n forms {\n label\n type\n url\n }\n paMessage\n catalogId\n components {\n kitOnly {\n value\n pId\n pno\n brand\n erpBrandKey\n erpPnoKey\n }\n kitSoldSeparate {\n value\n pId\n pno\n brand\n erpBrandKey\n erpPnoKey\n }\n analyte {\n value\n pId\n }\n solvent {\n value\n pId\n }\n bulletin {\n value\n pId\n }\n }\n substanceCount\n productCategories {\n category\n url\n }\n relatedProducts {\n type\n productId\n }\n type\n customPdpId\n productRating {\n ratingEnabled\n }\n erp_type\n txnBadge {\n label\n priority\n salesOrgIds\n type\n }\n}\n "]);return H=function(){return e},e}function V(){let e=(0,U._)(["\n query PDP($brandKey: String!, $productKey: String!, $catalogType: CatalogType, $orgId: String, $isMarketplaceCatalogEnabled: Boolean, $displayLanguage: String) {\n getProductDetail(\n input: {brandKey: $brandKey, productKey: $productKey, catalogType: $catalogType, orgId: $orgId, isMarketplaceCatalogEnabled: $isMarketplaceCatalogEnabled, displayLanguage: $displayLanguage}\n ) {\n ...PDPFields\n }\n}\n ",""]);return V=function(){return e},e}let K={},G=(0,z.J1)(H()),Q=(0,z.J1)(V(),G);var $=t(82250),Y=t(32588),X=t(52263),J=t(49995),Z=t(25771),ee=t(75020);let ea=(0,r.A)(e=>({actionContainer:{marginTop:e.spacing(8),[e.breakpoints.up("md")]:{display:"flex",justifyContent:"flex-start"}},chipContainer:{paddingLeft:e.spacing(4)},paMessage:{paddingLeft:e.spacing(10)},modalBody:{padding:e.spacing(5,10,0,5)},discontinuedBanner:{justifyContent:"center"},tabs:{maxWidth:"fit-content",backgroundColor:e.palette.background.grey,marginBottom:e.spacing(5),color:e.palette.primary.main,"& .Mui-selected":{color:e.palette.common.black},"& .MuiTabs-indicator":{backgroundColor:e.palette.common.black,height:e.spacing(1)},[e.breakpoints.down("md")]:{paddingBottom:e.spacing(5),"& .MuiTabs-indicator":{height:e.spacing(.5)}}},tab:{fontSize:e.typography.pxToRem(18),paddingBottom:0,fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(6),textTransform:"capitalize",minWidth:"auto",opacity:1,[e.breakpoints.down("md")]:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,marginRight:0}},selectSize:{width:"fit-content"}})),et=e=>{var a,t,r,o,s,d,c,u,m,g,P,L,w,O,D,B,U,z,H;let{onClose:V,product:G,focus:et,sourceString:ei}=e,en=ea(),er=(0,l.A)(),el=(0,A.A)(er.breakpoints.down("xs")),{setGlobalModalComponent:eo,clearGlobalModalComponent:es}=(0,W.g)(),{userSession:{country:ed}}=(0,k.j)(),[ec,eu]=(0,n.useState)(ed),[ep,em]=(0,n.useState)(null),eg=window.navigator.userAgent,eh=(0,_.A)(eg),{isMultiCountryUser:ex,isDTAQZuCustomer:ey,isBlueErpIntegrationEnabled:eA,getSitePreference:ev,currentUser:eb}=(0,E.iZ)(),ef=null==G?void 0:G.isMarketplace,ej=null==G?void 0:G.erp_type,eN=eA&&(null==G?void 0:G.erp_type)&&(null==G?void 0:null===(a=G.erp_type)||void 0===a?void 0:a.length)>0,eC=null==G?void 0:null===(t=G.productNumber)||void 0===t?void 0:t.startsWith("CB_"),eT=ev(E.VD.CatalogFilter),[eS,{data:eI,loading:ek,error:eR}]=(0,S.Gb)({fetchPolicy:ey?"no-cache":"cache-first"}),[e_,{data:eE,loading:eP,error:eM}]=(0,I.Fo)(),{data:eL,loading:ew,error:eO}=function(e){let a={...K,...e};return q.IT(Q,a)}({variables:{brandKey:null!==(m=null==G?void 0:null===(r=G.brand)||void 0===r?void 0:r.key)&&void 0!==m?m:"",productKey:null!==(g=null==G?void 0:G.productKey)&&void 0!==g?g:"",catalogType:null==G?void 0:G.catalogId,orgId:eT,isMarketplaceCatalogEnabled:null==eb?void 0:null===(o=eb.metadata)||void 0===o?void 0:o.isMarketplaceCatalogEnabled},fetchPolicy:ey?"no-cache":"cache-first"}),eD=ex?null==eE?void 0:null===(s=eE.getPricingForMultiCountryProducts)||void 0===s?void 0:s.find(e=>(null==e?void 0:e.country)===ec):null==eI?void 0:eI.getPricingForProduct,{materialPricing:eB,discontinuedPricingInfo:eF}=null!=eD?eD:{},eW={...G,forms:null==eL?void 0:null===(d=eL.getProductDetail)||void 0===d?void 0:d.forms,type:null==ep?void 0:ep.type},eU=ek||eP||ew,ez=eR||eM||eO,eq=ez?(0,$.Mw)(ez).errors[0]:void 0,eH=(null==eF?void 0:eF.errorMsg)||(null==eq?void 0:eq.code),eV=(0,n.useCallback)(e=>{var a;return null==R?void 0:null===(a=R[e])||void 0===a?void 0:a.displayName},[R]),eK=()=>{var e,a;let t={variables:{productNumber:null!==(a=null==G?void 0:G.productNumber)&&void 0!==a?a:"",materialIds:null==G?void 0:G.materialIds,brand:null==G?void 0:null===(e=G.brand)||void 0===e?void 0:e.key,quantity:1,catalogType:ef?p.Mh.Marketplace:(0,M.vN)(null==G?void 0:G.catalogId),orgId:eT,checkForPb:!0,displaySDS:eC,dealerId:"",checkBuyNow:!0,productKey:null==G?void 0:G.productKey,cachedPriceOnly:eh,...eN&&{erpType:ej}}},i={variables:{...t.variables,cachedPriceOnly:eh}};ex?e_(t):eS(i)};return(0,n.useEffect)(()=>{(null==G?void 0:G.productNumber)&&!(null==G?void 0:G.paMessage)&&eK()},[ex,null==G?void 0:G.productNumber,null==G?void 0:G.paMessage]),(0,n.useEffect)(()=>{var e;if(null==eE?void 0:null===(e=eE.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let[e]=null==eE?void 0:eE.getPricingForMultiCountryProducts;(null==e?void 0:e.country)&&eu(null==e?void 0:e.country)}},[eE]),(0,n.useEffect)(()=>{if(null==eB?void 0:eB.length){let[e]=eB;em(e)}eH&&eF&&eo((0,i.jsx)(F,{errorKey:eH,product:G,replacementProducts:null==eF?void 0:eF.replacementProducts,onClose:es}))},[eB,eH]),(0,i.jsx)(x.Ay,{open:!0,onClose:()=>{var e;V(),(0,ee.Sm)({action:"close p&a",section:"modal p&a",component:"modal",elementType:"icon",material:{materialDescription:G.name,brand:null===(e=G.brand)||void 0===e?void 0:e.key,product:G.productNumber}})},size:x.Ih.XLarge,children:(0,i.jsxs)(v.A,{container:!0,children:[(0,i.jsxs)(v.A,{item:!0,xs:12,md:(null==G?void 0:G.paMessage)?12:8,className:en.modalBody,children:[(0,i.jsx)(h,{item:eW}),(0,i.jsxs)(v.A,{container:!0,children:[(0,i.jsx)(v.A,{item:!0,xs:12,md:(null==G?void 0:G.paMessage)?1:2}),(0,i.jsxs)(v.A,{item:!0,xs:12,md:10,className:(0,J.A)(en.chipContainer,{[en.paMessage]:null==G?void 0:G.paMessage}),children:[el?null:(0,i.jsx)(Y.A,{mb:4,mr:4}),ex&&eE?(0,i.jsx)(b.A,{value:ec,className:en.tabs,onChange:(e,a)=>{eu(a)},children:null==eE?void 0:null===(c=eE.getPricingForMultiCountryProducts)||void 0===c?void 0:c.map((e,a)=>(0,i.jsx)(f.A,{className:en.tab,label:eV(null==e?void 0:e.country),value:null==e?void 0:e.country},a))}):null,(null==G?void 0:G.paMessage)?(0,i.jsx)(X.Ay,{brandKey:null!==(P=null==G?void 0:null===(u=G.brand)||void 0===u?void 0:u.key)&&void 0!==P?P:"",productNumber:null!==(L=null==G?void 0:G.productNumber)&&void 0!==L?L:"",paMessage:null!==(w=null==G?void 0:G.paMessage)&&void 0!==w?w:"",leftAlign:!0}):(0,i.jsxs)(i.Fragment,{children:[ez?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(j.A,{className:en.selectSize,variant:"h3",children:(0,i.jsx)(T.A,{id:"SELECT_A_SIZE",defaultMessage:"Select a Size"})})}),(0,i.jsx)(C.A,{items:null!==(O=null==eB?void 0:eB.map(e=>{var a,t;return{packSize:(null==e?void 0:null===(a=e.packageSize)||void 0===a?void 0:a.trim())||(null==e?void 0:e.materialNumber),value:null==e?void 0:e.materialNumber,price:null!==(t=null==e?void 0:e.price)&&void 0!==t?t:0,currency:null==e?void 0:e.currency,availabilities:null==e?void 0:e.availabilities,hidePriceMessageKey:null==e?void 0:e.hidePriceMessageKey}}))&&void 0!==O?O:[],selectedChip:null!==(D=null==ep?void 0:ep.materialNumber)&&void 0!==D?D:"",loading:eU,loadCount:5,onSelect:e=>{let a=null==eB?void 0:eB.find(a=>a.materialNumber===e);em(null!=a?a:null)}})]}),ef?(0,i.jsx)(N.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(Z.A,{isMarketplace:ef,marketplaceSellerId:null!==(B=null==G?void 0:G.marketplaceSellerId)&&void 0!==B?B:"",marketplaceOfferId:null!==(U=null==G?void 0:G.marketplaceOfferId)&&void 0!==U?U:"",productAttributes:null!==(z=null==G?void 0:G.attributes)&&void 0!==z?z:[],displaySellerName:null!==(H=null==G?void 0:G.displaySellerName)&&void 0!==H?H:"",hideMarketPlaceContactInfo:!0})}):null]})]})]}),(null==G?void 0:G.paMessage)?null:(0,i.jsx)(v.A,{item:!0,xs:12,md:4,children:(0,i.jsx)(y.A,{countryCode:ec,error:ez,isMultiCountryUser:ex,isPricingModal:!0,loading:eU,material:ep,product:eW,focus:et,sourceString:ei})})]})})}},53590:(e,a,t)=>{t.d(a,{A:()=>aa});var i=t(37876),n=t(14232),r=t(47801),l=t(49995),o=t(61261),s=t(71541),d=t(92189),c=t(36503),u=t(12197),p=t(37929),m=t(11148),g=t(77660),h=t(97710),x=t(5634),y=t(69139),A=t(77742),v=t(8733),b=t(54753),f=t(33086),j=t(84768),N=t(30053),C=t(56584),T=t(61206),S=t(17215),I=t(72522),k=t(99819);let R=(0,o.A)(e=>({facetMarkup:{marginRight:e.spacing(1),"& sub, & sup":{verticalAlign:"baseline",position:"relative",top:"0.4em"},"& sup":{top:"-0.4em"}},searchTerm:{marginRight:e.spacing(1)},hideAtMobile:{[e.breakpoints.down("sm")]:{display:"none"}},chipsContainer:{display:"flex",flexWrap:"wrap",margin:e.spacing(-1)},chipWrapper:{padding:e.spacing(1),...k.G},keywordChipWrapper:{padding:e.spacing(1)},facetsMenuWrapper:{display:"none",padding:e.spacing(3),background:e.palette.background.grey,border:"1px solid ".concat(e.palette.grey[400]),borderRadius:5,marginBottom:e.spacing(5),[e.breakpoints.up("md")]:{display:"flex"},marginTop:e.spacing(6)},facetsMenuLabel:{whiteSpace:"nowrap",marginTop:e.spacing(2),marginRight:e.spacing(4)}})),_=e=>{let{facetLabel:a,facetKey:t,facets:r}=e,l=(0,m.rd)(),o=R(),s=(0,A.A)(),d=(0,h.h2)({focus:l.query.focus}),c=(0,n.useCallback)((e,a)=>{if(!(null==a?void 0:a.length)&&d.focus===h.Xc.Chromatograms&&"FACET_WEB_TITERTEST_APP"===e.toUpperCase())return s.formatMessage(b.A[e.toUpperCase()]);if(!a)return"";let t=a.find(a=>a.key===e);return(null==t?void 0:t.key)&&b.A[t.key.toUpperCase()]?s.formatMessage(b.A[t.key.toUpperCase()]):(0,I.Q)(null==t?void 0:t.key)},[s])(t,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.A,{className:o.facetMarkup,value:"".concat(c,":")}),(0,i.jsx)(T.A,{value:a})]})},E=(e,a)=>{a.handleSelectedFacetChange({key:e.key,options:[e.label],action:C.FacetChangeAction.Remove});let t="".concat(e.key,":").concat(e.label),i=(0,j.g)({action:"remove filter",component:"filter ribbon",element_type:"filter ribbon box",element_text:null==t?void 0:t.toLowerCase(),filter_name:e.label,filter_name_count:e.count,filter_category:e.key});(0,N.BI)({payload:i})},P=e=>{let{facets:a,isStructureSearch:t}=e,[n,r,o]=(0,C.useSearchQuery)(),s=(0,y.A)(a,"options"),d=(0,y.A)(r,e=>e.options.map(a=>{let t=s.find(e=>e.value===a);return{key:e.key,label:a,count:null==t?void 0:t.count}})),{formatMessage:c}=(0,A.A)(),p=(0,m.rd)(),g=R(),h=n.term&&!t&&!(0,f._)(p);return 0!==d.length||h?(0,i.jsxs)("div",{className:g.facetsMenuWrapper,children:[(0,i.jsx)(u.A,{variant:"caption",className:g.facetsMenuLabel,children:(0,i.jsx)(v.A,{id:"APPLIED_FILTERS_HEADING",defaultMessage:"Applied Filters:"})}),(0,i.jsxs)("div",{className:(0,l.A)(g.hideAtMobile,g.chipsContainer),children:[h&&(0,i.jsx)("div",{className:g.keywordChipWrapper,children:(0,i.jsx)(S.A,{ariaLabel:"".concat(c(b.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(n.term," ").concat(c(b.A.SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH)),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:g.searchTerm,children:[c(b.A.KEYWORD),":"]}),(0,i.jsx)("span",{children:"'".concat(n.term,"'")})]}),dataTestId:"query-term-chip",onDelete:()=>o.handleTermRemoval(r,a)})}),a&&d.map(e=>(0,i.jsx)("div",{className:g.chipWrapper,children:(0,i.jsx)(S.A,{ariaLabel:"".concat(c(b.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(e.label," ").concat(c(b.A.SELECTION_CHIP_REMOVE_FILTER_2)),onDelete:()=>E(e,o),label:(0,i.jsx)(_,{facetLabel:e.label,facetKey:e.key,facets:a})})},"".concat(e.key,":").concat(e.label)))]})]}):null};var M=t(77328),L=t.n(M),w=t(89099),O=t(63752),D=t(43564),B=t(39324);let{publicRuntimeConfig:{canonicalUrlPrefix:F}}=t.n(B)()(),W=e=>{let{metadata:a}=e,t=(0,A.A)(),{asPath:n,query:{page:r,term:l,focus:o,type:s,country:d,language:c}}=(0,w.useRouter)(),u=(0,O.mE)(),p=o===h.Xc.StructureSearch,g=l&&!p?"".concat(l.charAt(0).toUpperCase()).concat(l.slice(1)):t.formatMessage({id:"STRUCTURE_SEARCH",defaultMessage:"Structure Search"}),x="".concat(g," | Sigma-Aldrich"),y={[h.mI.CasNumber]:"CAS",[h.mI.EgecNumber]:"EC/EG",[h.mI.MdlNumber]:"MDL"};s&&y[s]&&(x="".concat(y[s]," ").concat(x));let v="page=".concat(r),b=n.indexOf(v),f=n.slice(0,b),j=n.slice(b+v.length,n.length),N="".concat(f,"page=").concat(Number(r)+1).concat(j),C="".concat(f,"page=").concat(Number(r)-1).concat(j),T=p?"Structure search results":"Find ".concat(l," and related products for scientific research at ").concat(u),S={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Search",item:"".concat(F,"/").concat(d,"/").concat(c).concat(m.wO.index())},{"@type":"ListItem",position:2,name:"".concat(l),item:"".concat(F).concat(n)}]};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(L(),{children:[(0,i.jsx)("title",{"data-testid":"head-title",children:x}),Number(r)!==(null==a?void 0:a.numPages)?(0,i.jsx)("link",{rel:"next",href:N}):null,Number(r)>1?(0,i.jsx)("link",{rel:"prev",href:C}):null]}),(0,i.jsx)(D.L,{description:T,keywords:[l||"","search","sigma","aldrich","millipore",u],canonicalParamAllowed:e=>["term","focus","page","perpage","sort","type"].includes(e),schema:S})]})};var U=t(19521),z=t(36331),q=t(70813),H=t(34669),V=t(17685),K=t(24322),G=t(39069),Q=t(7645),$=t(35877);let Y=()=>{let e=(0,$.A)();return(0,i.jsx)("div",{children:(0,i.jsxs)(Q.A,{mb:6,children:[(0,i.jsx)(Q.A,{mb:4,children:(0,i.jsx)(G.A,{light:!0})}),(0,i.jsx)(Q.A,{height:22,width:.75,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mb:4}),[,,].fill({}).map((a,t)=>(0,i.jsxs)(Q.A,{display:"flex",alignItems:"center",pr:4,mb:4,children:[(0,i.jsx)(Q.A,{height:24,width:24,borderRadius:"50%",bgcolor:e.palette.grey["50"],mr:4}),(0,i.jsx)(Q.A,{flex:1,height:20,width:20,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"]})]},t))]})})};var X=t(9545);let J=(0,o.A)(e=>({availableForSale:{padding:e.spacing(2,0)},radio:{fontSize:e.typography.pxToRem(14)},facetRadio:{padding:e.spacing(1,.5),marginRight:e.spacing(1.5),alignSelf:"flex-start"},formBody:{marginTop:e.spacing(2.5),marginLeft:e.spacing(2)}})),Z=e=>{let{loading:a,error:t}=e,{formatMessage:n,formatDisplayName:r}=(0,A.A)(),l=J(),{userSession:o}=(0,V.j)(),[s,,d]=(0,C.useSearchQuery)(),c="global";return a?(0,i.jsx)(Y,{}):t?null:(0,i.jsx)("div",{className:l.availableForSale,children:(0,i.jsx)(X.A,{defaultCollapse:!0,facetKey:H.A.AVAILABLE_FOR_SALE.id,children:(0,i.jsx)("form",{"aria-label":"region-input",children:(0,i.jsx)("div",{className:l.formBody,children:(0,i.jsxs)(z.A,{"aria-label":"region-selection",onChange:e=>{d.handleAvailableForSaleChange(e.target.value)},children:[(0,i.jsx)(q.A,{"aria-label":"region",value:o.country,control:(0,i.jsx)(K.A,{className:l.facetRadio}),classes:{label:l.radio},checked:!s.region||s.region===o.country,label:r(o.country,{type:"region"})},o.country),(0,i.jsx)(q.A,{"aria-label":"region",value:c,control:(0,i.jsx)(K.A,{className:l.facetRadio}),classes:{label:l.radio},checked:s.region===c,label:n(H.A.GLOBALLY)},c)]})})})})})};var ee=t(64204);let ea=(0,o.A)(e=>({formBody:{marginTop:e.spacing(.5)},facet:{padding:e.spacing(1,0,0,2),width:"fit-content","& span":{fontSize:e.typography.pxToRem(14)}},facetFocus:{padding:e.spacing(0,0,2,0)},facetRadio:{padding:e.spacing(1,.5),marginRight:e.spacing(1.5),alignSelf:"flex-start"}})),et=e=>{let{orgId:a}=e,t=ea(),{formatMessage:r}=(0,A.A)(),[l,,o]=(0,C.useSearchQuery)(),s=(0,n.useMemo)(()=>{var e;return(null==a?void 0:a.trim())==="UCB"?"UCB":null==a?void 0:null===(e=a.trim())||void 0===e?void 0:e.toLowerCase()},[a]),d=e=>l.term&&!a||l.focus===e,c=e=>{let a=(0,j.g)({action:"change search type",component:"left rail",filter_category:"search within",filter_name:h.sO[e],element_type:"radio button",element_text:h.sO[e]});(0,N.BI)({payload:a}),o.handleFocusChange(e)};return(0,i.jsx)("div",{className:t.facetFocus,children:(0,i.jsx)(X.A,{defaultCollapse:!0,facetKey:"FACET_SEARCH_WITHIN",children:(0,i.jsx)("div",{className:t.formBody,children:(0,i.jsxs)(z.A,{"aria-label":"focus-selection",onChange:e=>c(e.target.value),children:[d(h.Xc.Products)||d(h.Xc.B2B)?a?(0,i.jsx)(q.A,{disabled:!0,value:h.Xc.Products,control:(0,i.jsx)(K.A,{className:t.facetRadio}),className:t.facet,checked:l.focus===h.Xc.B2B,label:"".concat(s," ").concat(r({id:"PRODUCTS",defaultMessage:"Products"}))}):(0,i.jsx)(q.A,{value:h.Xc.Products,control:(0,i.jsx)(K.A,{className:t.facetRadio}),"aria-current":l.focus===h.Xc.Products?"page":void 0,className:t.facet,checked:l.focus===h.Xc.Products,label:r({id:"PRODUCTS",defaultMessage:"Products"}),"data-testid":"srp-nav-products"}):null,d(h.Xc.TechnicalDocuments)&&(0,i.jsx)(q.A,{value:h.Xc.TechnicalDocuments,control:(0,i.jsx)(K.A,{className:t.facetRadio}),"aria-current":l.focus===h.Xc.TechnicalDocuments?"page":void 0,className:t.facet,checked:l.focus===h.Xc.TechnicalDocuments,label:r({id:"TECHNICAL_DOCUMENTS",defaultMessage:"Technical Documents"}),"data-testid":"srp-nav-techdocs"}),d(h.Xc.SiteContent)&&(0,i.jsx)(q.A,{value:h.Xc.SiteContent,control:(0,i.jsx)(K.A,{className:t.facetRadio}),className:t.facet,checked:l.focus===h.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"})})]})})})})};var ei=t(5213),en=t(57927),er=t(52413);let el=(0,o.A)(e=>({link:{textDecoration:"none",color:e.palette.text.primary,fontWeight:e.typography.fontWeightRegular,"&:hover":{color:e.palette.primary.main},padding:e.spacing(0,3)},active:{fontWeight:e.typography.fontWeightBold}})),eo=(e,a)=>{let t=(0,h.$c)({term:e,focus:a});return"?"===t[0]&&(t=t.slice(1)),{href:{pathname:"/search/[searchTerm]",query:t},as:{pathname:"".concat(m.wO.searchResults(e)),query:t}}},es=e=>{let{focus:a,id:t,children:n}=e,r=el(),[o]=(0,C.useSearchQuery)(),s=(0,l.A)(r.link,o.focus===a&&r.active),d=o.focus===a?"page":void 0;return(0,i.jsx)(er.N,{...eo(o.term,a),children:(0,i.jsx)("a",{className:s,"aria-current":d,"data-testid":t,id:t,role:"tab",children:n})})};function ed(e,a){return class extends n.Component{render(){return(0,i.jsx)(es,{focus:e,id:a,children:this.props.children})}}}let ec=(0,o.A)(e=>({tabsRoot:{minHeight:30,borderBottom:"1px solid ".concat(e.palette.grey[400])},indicator:{backgroundColor:e.palette.text.primary}})),eu=e=>{let{orgId:a}=e,t=ec(),{formatMessage:r}=(0,A.A)(),l=(0,w.useRouter)(),o=(0,h.h2)({focus:l.query.focus,term:l.query.term}),s=(0,n.useMemo)(()=>{var e;return(null==a?void 0:a.trim())==="UCB"?"UCB":null==a?void 0:null===(e=a.trim())||void 0===e?void 0:e.toLowerCase()},[a]),d=e=>!!o.term&&!a||o.focus===e;return(0,i.jsx)("nav",{"aria-label":"Main Navigation",children:(0,i.jsxs)(en.A,{variant:"scrollable",scrollButtons:"off",value:o.focus,classes:{root:t.tabsRoot,indicator:t.indicator},children:[d(h.Xc.Products)||d(h.Xc.B2B)?a?(0,i.jsx)(ei.A,{component:"span",label:"".concat(s," ").concat(r({id:"PRODUCTS",defaultMessage:"Products"}))}):(0,i.jsx)(ei.A,{value:h.Xc.Products,label:r({id:"PRODUCTS",defaultMessage:"Products"}),component:ed(h.Xc.Products,"srp-nav-products")}):null,d(h.Xc.TechnicalDocuments)&&(0,i.jsx)(ei.A,{value:h.Xc.TechnicalDocuments,label:r({id:"TECHNICAL_DOCUMENTS",defaultMessage:"Technical Documents"}),component:ed(h.Xc.TechnicalDocuments,"srp-nav-techdocs")}),d(h.Xc.SiteContent)&&(0,i.jsx)(ei.A,{value:h.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"}),component:ed(h.Xc.SiteContent,"srp-nav-sitecontent")})]})})},ep=(0,o.A)(e=>({count:{display:"block",marginRight:"auto",marginLeft:e.spacing(3),fontSize:e.typography.pxToRem(16),[e.breakpoints.up("md")]:{display:"inline",marginLeft:0,fontSize:e.typography.pxToRem(14)}},searchTerm:{display:"inline",fontSize:e.typography.pxToRem(14),fontWeight:900}})),em=(e,a,t)=>{let i=e*a;return{resCountFirst:e>1?(e-1)*a+1:1,resCountEnd:t&&i