"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{var a;let{currPage:t,perPage:n,resultCount:r=0,searchTerm:l="",searchType:o=""}=e,s=ep(),{formatMessage:d}=(0,A.A)(),{resCountFirst:c,resCountEnd:u}=em(t,n,r),p=(0,m.rd)(),g=null===(a=p.query.orgId)||void 0===a?void 0:a.trim(),x="UCB"===g?g:null==g?void 0:g.toLowerCase(),y=d(H.A.SHOWING),v=d(1===r?H.A.RESULT:H.A.RESULTS),b=d(H.A.SEARCH_RESULT_OF),j=d(H.A.FOR),N=d(H.A.WITHIN),C=d((0,h.I0)(o));return(0,i.jsx)("div",{className:s.count,"data-testid":"srp-result-count",children:r?(0,i.jsxs)(i.Fragment,{children:["".concat(y," ").concat(c,"-").concat(u," ").concat(b," ").concat(r," ").concat(v," "),(0,f._)(p)?null:(0,i.jsxs)(i.Fragment,{children:[j," ",'"',l,'"'," ",x?C&&"".concat(N," ").concat(x," ").concat(C):C&&"".concat(N," ").concat(C)]})]}):null})};var eh=t(5411),ex=t(86024),ey=t(30877),eA=t(40032);let ev=(0,o.A)(e=>({root:{marginBottom:e.spacing(8)},heading:{display:"flex",justifyContent:"space-between",width:"100%",borderBottom:"1px solid ".concat(e.palette.grey[400]),padding:e.spacing(1)},body:{paddingTop:e.spacing(4)},icon:{fontSize:e.typography.pxToRem(10),color:e.palette.primary.main,transition:"transform 0.25s"},iconIsOpen:{transform:"rotate(180deg)"}})),eb=e=>{let{renderHeading:a,children:t}=e,r=ev(),[o,s]=(0,n.useState)(!1),d=(0,l.A)(r.icon,{[r.iconIsOpen]:o});return(0,i.jsxs)("div",{className:r.root,children:[(0,i.jsxs)(ee.A,{onClick:()=>{s(!o)},className:r.heading,children:[a(),(0,i.jsx)(eA.A,{className:d})]}),(0,i.jsx)(ey.A,{in:o,children:(0,i.jsx)("div",{className:r.body,children:t})})]})};var ef=t(98011);let ej=[{value:g.FU.Relevance,label:H.D.SORT_BY_RELEVANCE}],eN=[{value:g.FU.Relevance,label:H.D.SORT_BY_RELEVANCE},{value:g.FU.Nameasc,label:H.D.SORT_BY_NAME_ASCENDING},{value:g.FU.Namedesc,label:H.D.SORT_BY_NAME_DESCENDING}],eC=[{value:g.FU.Relevance,label:H.D.SORT_BY_RELEVANCE},{value:g.FU.Molwtasc,label:H.D.SORT_BY_MOL_WT_ASC},{value:g.FU.Molwtdesc,label:H.D.SORT_BY_MOL_WT_DESC}],eT=[{value:g.FU.Relevance,label:H.D.SORT_BY_RELEVANCE},{value:g.FU.Genenameasc,label:H.D.SORT_BY_NAME_ASCENDING},{value:g.FU.Genenamedesc,label:H.D.SORT_BY_NAME_DESCENDING}],eS={[h.Xc.Products]:eN,[h.Xc.Genes]:eT,[h.Xc.Papers]:ej,[h.Xc.TechnicalDocuments]:ej,[h.Xc.SiteContent]:ej,[h.Xc.BuildingBlocks]:eC,[h.Xc.StructureSearch]:eC,[h.Xc.B2B]:eC,[h.Xc.Chromatograms]:eN},eI=(0,o.A)(e=>({radioGroup:{flexDirection:"column"},icon:{display:"flex",width:"24px",height:"24px",border:"1px solid ".concat(e.palette.grey[500]),borderRadius:"50%","& span":{margin:"auto",width:"14px",height:"14px",borderRadius:"50%",backgroundColor:e.palette.primary.main}}})),ek=()=>{let[e,,a]=(0,C.useSearchQuery)(),{formatMessage:t}=(0,A.A)(),r=eI(),l=(0,n.useMemo)(()=>eS[e.focus].map(e=>({...e,label:t(e.label)})),[t,e.focus]);return(0,i.jsx)(z.A,{row:!0,className:r.radioGroup,"aria-label":"sortOptions",name:"sortOptions",value:e.sort,onChange:e=>a.handleSortChange(e.target.value),children:l.map((e,a)=>{let{value:t,label:n}=e;return(0,i.jsx)(q.A,{name:"sortOptionId",value:t,label:n.split(" ").slice(2).join(" "),control:(0,i.jsx)(ef.A,{disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,icon:(0,i.jsx)("span",{className:r.icon}),checkedIcon:(0,i.jsx)("span",{className:r.icon,children:(0,i.jsx)("span",{})})})},a)})})};var eR=t(91496),e_=t(21289),eE=t(70114),eP=t(14810);let eM=(0,o.A)(e=>({vr2:{marginBottom:e.spacing(2)},vr4:{marginBottom:e.spacing(4)},labelRoot:{marginLeft:0},checkboxRoot:{padding:e.spacing(1,2,1,0)},shippingIcon:{fontSize:e.typography.pxToRem(24),marginLeft:e.spacing(2)},showMore:{marginLeft:e.spacing(2),color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold,textDecoration:"none"},checkboxIcon:{border:"1px solid ".concat(e.palette.grey[500]),borderRadius:3,width:24,height:24,fontSize:e.typography.pxToRem(4)},checkboxIconChecked:{"& svg":{fontSize:e.typography.pxToRem(12)}},icon:{fontSize:e.typography.pxToRem(10),color:e.palette.primary.main,transition:"transform 0.25s",marginLeft:e.spacing(2)},iconIsOpen:{transform:"rotate(180deg)"}})),eL=e=>{let{facet:a}=e,t=eM(),r=(0,A.A)(),[,o,s]=(0,C.useSearchQuery)(),d=(o.find(e=>{let{key:t}=e;return t===a.key})||{options:[]}).options,[c,u]=(0,n.useState)(!1),p=(0,l.A)(t.icon,{[t.iconIsOpen]:c}),m=c?a.options:a.options.slice(0,a.numToDisplay||6),g="facet_shipping"===a.key,x=e=>{switch(e){case h.u2.SameDay:return(0,i.jsx)(e_.A,{color:"secondary",fontSize:"inherit"});case h.u2.FreeFreight:return(0,i.jsx)(eE.A,{color:"secondary"});default:return null}},y=d.map(e=>{let a=e.includes(" / "),t=e.includes("-1?e.slice(i+1):e});return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:t.vr4,children:m.map(e=>{let n=y.indexOf(e.value)>=0;return(0,i.jsx)("div",{className:t.vr2,children:(0,i.jsx)(q.A,{classes:{root:t.labelRoot},checked:n,control:(0,i.jsx)(eR.A,{"data-testid":"srp-facet-".concat(e.value),id:e.value,value:e.value,color:"primary",classes:{root:t.checkboxRoot},icon:(0,i.jsx)("span",{className:t.checkboxIcon}),checkedIcon:(0,i.jsx)("span",{className:(0,l.A)(t.checkboxIcon,t.checkboxIconChecked),children:(0,i.jsx)(eP.A,{})}),onClick:()=>{s.handleSelectedFacetChange({key:a.key,options:[e.value],action:n?C.FacetChangeAction.Remove:C.FacetChangeAction.Add,multiSelect:a.multiSelect||!1,prefix:a.prefix})}}),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.A,{value:"".concat(e.value," (").concat(e.count,")")}),g&&(0,i.jsx)("span",{className:t.shippingIcon,children:x(e.value)})]})})},e.value)})}),(a.options.length>m.length||c)&&(0,i.jsxs)(ee.A,{onClick:()=>u(!c),"aria-expanded":c,"aria-label":c?r.formatMessage(H.A.SHOW_LESS):r.formatMessage(H.A.SHOW_MORE),className:t.showMore,children:[c?(0,i.jsx)(v.A,{...H.A.SHOW_LESS}):(0,i.jsx)(v.A,{...H.A.SHOW_MORE}),(0,i.jsx)(eA.A,{className:p})]})]})},ew=(0,o.A)(e=>({facetMarkup:{marginRight:e.spacing(1),"& sub, & sup":{verticalAlign:"baseline",position:"relative",top:"0.4em"},"& sup":{top:"-0.4em"}}})),eO=e=>{let{facetLabel:a,facetKey:t,facets:r}=e,l=ew(),o=(0,A.A)(),s=(0,n.useCallback)((e,a)=>{if(!a)return"";let t=a.find(a=>a.key===e);return(null==t?void 0:t.key)?o.formatMessage(H.A[t.key.toUpperCase()]):""},[o])(t,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.A,{className:l.facetMarkup,value:"".concat(s,":")}),(0,i.jsx)(T.A,{value:a})]})},eD=(0,o.A)(e=>({root:{marginBottom:e.spacing(8)},head:{marginBottom:e.spacing(4),display:"flex",justifyContent:"space-between",alignItems:"center"},body:{"& > *":{marginBottom:e.spacing(2)}},clearBtn:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold},searchTerm:{marginRight:e.spacing(1)}})),eB=e=>{let{facets:a,isStructureSearch:t}=e,[n,r,l]=(0,C.useSearchQuery)(),o=(0,y.A)(r,e=>e.options.map(a=>({key:e.key,label:a}))),{formatMessage:s}=(0,A.A)(),d=eD();return(0,i.jsxs)("div",{className:d.root,children:[(0,i.jsx)("div",{className:d.head,children:(0,i.jsx)(u.A,{variant:"caption",children:(0,i.jsx)(v.A,{id:"APPLIED_FILTERS_HEADING",defaultMessage:"Applied Filters:"})})}),(0,i.jsxs)("div",{className:d.body,children:[n.term&&!t&&"facet-search"!==n.term&&(0,i.jsx)(S.A,{ariaLabel:"".concat(s(b.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(n.term," ").concat(s(b.A.SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH)),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:d.searchTerm,children:[s(b.A.KEYWORD),":"]}),(0,i.jsx)("span",{children:"'".concat(n.term,"'")})]}),dataTestId:"query-term-chip",onDelete:()=>l.handleTermRemoval(r,a)}),a&&o.map(e=>(0,i.jsx)(S.A,{ariaLabel:"".concat(s(b.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(e.label," ").concat(s(b.A.SELECTION_CHIP_REMOVE_FILTER_2)),onDelete:()=>{l.handleSelectedFacetChange({key:e.key,options:[e.label],action:C.FacetChangeAction.Remove})},label:(0,i.jsx)(eO,{facetLabel:e.label,facetKey:e.key,facets:a})},e.key))]})]})},eF=(0,o.A)(e=>({body:{overflow:"scroll",padding:e.spacing(6,4)},footer:{padding:e.spacing(6,4)}})),eW=e=>{let{facets:a,isStructureSearch:t,isModalOpen:r,onModalClose:l,showSortBar:o}=e,s=eF();return(0,i.jsx)(ex.A,{open:r,onClose:l,renderTitle:()=>(0,i.jsx)(u.A,{variant:"h2",component:"h2",children:(0,i.jsx)(v.A,{...b.A.FILTER_AND_SORT_HEADING})}),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:s.body,children:[(0,i.jsx)(eB,{facets:a,isStructureSearch:t}),o&&(0,i.jsx)(eb,{renderHeading:()=>(0,i.jsx)(u.A,{variant:"body1",component:"h2",children:(0,i.jsx)("b",{children:(0,i.jsx)(v.A,{...b.A.SORT_HEADING})})}),children:(0,i.jsx)(ek,{})}),!!a&&a.map(e=>(0,i.jsx)(n.Fragment,{children:(0,i.jsx)(eb,{renderHeading:()=>(0,i.jsx)(u.A,{variant:"body1",component:"h2",children:(0,i.jsx)("b",{children:(0,i.jsx)(I.A,{id:e.key.toUpperCase()})})}),children:(0,i.jsx)(eL,{facet:e,allFacets:a})})},e.key))]}),(0,i.jsx)("div",{className:s.footer,children:(0,i.jsx)(eh.A,{variant:"contained",color:"primary",size:"large",fullWidth:!0,onClick:l,children:(0,i.jsx)(v.A,{id:"DONE",defaultMessage:"Done"})})})]})})};var eU=t(75584);let ez=(0,o.A)(e=>({filterAndSortBar:{display:"flex",alignItems:"center",justifyContent:"center",padding:"".concat(e.spacing(3),"px 0"),borderBottom:"1px solid ".concat(e.palette.grey[400]),backgroundColor:e.palette.common.white},filterTrigger:{fontSize:e.typography.pxToRem(14),color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold},filterIcon:{fontSize:e.typography.pxToRem(24),marginRight:e.spacing(2)},facetCount:{display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",border:"1px solid ".concat(e.palette.primary.main),borderRadius:e.shape.borderRadius,color:e.palette.primary.main,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(2)},vr6:{marginBottom:e.spacing(6)},mobileFiltersAndNav:{marginBottom:e.spacing(5),[e.breakpoints.up("md")]:{display:"none"}}})),eq=e=>{let{metadata:a,orgId:t,facets:r,showSortBar:l}=e,[o,s]=(0,C.useSearchQuery)(),{formatMessage:d}=(0,A.A)(),[c,u]=(0,n.useState)(!1),p=ez(),m=()=>{u(!1)},g=o.focus===h.Xc.StructureSearch;return(0,i.jsxs)("div",{className:p.mobileFiltersAndNav,children:[(0,i.jsx)("div",{className:p.vr6,children:a&&(0,i.jsx)(eg,{currPage:a.page,perPage:a.perPage,resultCount:a.setsCount||a.itemCount||0,searchTerm:o.term,searchType:o.focus})}),(0,i.jsx)(eu,{orgId:t}),(!!(null==r?void 0:r.length)||l)&&(0,i.jsx)("div",{className:p.filterAndSortBar,children:(0,i.jsxs)(ee.A,{className:p.filterTrigger,onClick:e=>{e.preventDefault(),u(!0)},children:[s.length?(0,i.jsx)("span",{className:p.facetCount,children:s.length}):(0,i.jsx)(eU.A,{className:p.filterIcon,fontSize:"inherit",color:"primary"}),d(H.A.FILTER_AND_SORT_HEADING)]})}),(0,i.jsx)(eW,{facets:r,isStructureSearch:g,isModalOpen:c,onModalClose:()=>m(),showSortBar:l})]})};var eH=t(71007),eV=t(46129);let eK=(0,o.A)(e=>({searchLink:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium,color:e.palette.secondary.dark,marginBottom:e.spacing(2),cursor:"pointer"}})),eG=e=>{let{orgId:a,isStructureSearch:t}=e,n=eK();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(eV.N,{href:m.wO.index(),"aria-hidden":!0,onClick:()=>{(0,eH.dZ)({action:"visit advanced search page",component:"left rail",elementType:"link",elementText:"advanced search",linkUrl:m.wO.index()})},children:(0,i.jsx)(v.A,{id:"ADVANCED_SEARCH",defaultMessage:"Advanced Search"})})}),!a&&!t&&(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(eV.N,{href:m.HX.index(),"aria-hidden":!0,onClick:()=>{(0,eH.dZ)({action:"visit chemical structure search",component:"left rail",elementType:"link",elementText:"chemical structure search",linkUrl:m.HX.index()})},children:(0,i.jsx)(v.A,{id:"CHEMICAL_STRUCTURE_SEARCH",defaultMessage:"Chemical Structure Search"})})})]})};var eQ=t(90589),e$=t(76023),eY=t(45484);let eX=()=>{let[e,,a]=(0,C.useSearchQuery)(),{formatMessage:t}=(0,A.A)(),r=(0,n.useMemo)(()=>eS[e.focus].map(e=>({...e,label:t(e.label)})),[t,e.focus]);return(0,i.jsx)(Q.A,{minWidth:204,clone:!0,children:(0,i.jsx)(eY.A,{fullWidth:!1,size:"small",value:e.sort,onChange:e=>{a.handleSortChange(e.target.value)},id:"srp-sort-options",children:r.map(e=>{let{value:a,label:t}=e;return(0,i.jsx)(e$.A,{value:a,id:"sort-option-".concat(a),children:t},a)})})})},eJ=(0,o.A)(e=>({searchLink:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightMedium,paddingRight:e.spacing(2),paddingLeft:e.spacing(2),color:e.palette.secondary.dark},borderLeft:{borderLeft:"1px solid ".concat(e.palette.grey[400])},compareButton:{marginLeft:e.spacing(3),minWidth:116},desktopResultsMenu:{display:"none",[e.breakpoints.up("md")]:{minHeight:"2rem",display:"flex",alignItems:"center",justifyContent:"flex-end",flexShrink:0}}})),eZ=e=>{let{metadata:a,showSortBar:t}=e,n=eJ(),r=(0,w.useRouter)(),l=(0,h.h2)({focus:r.query.focus,term:r.query.term});return(0,i.jsxs)("div",{className:n.desktopResultsMenu,children:[a&&(0,i.jsx)(eg,{currPage:a.page,perPage:a.perPage,resultCount:a.setsCount||a.itemCount||0,searchTerm:l.term,searchType:l.focus}),t&&(0,i.jsx)(Q.A,{ml:2,children:(0,i.jsx)(eX,{})})]})};var e0=t(34415),e1=t(77197);let e2=(0,o.A)(e=>({docBanner:{padding:e.spacing(2,3),marginTop:e.spacing(4),background:e.palette.primary.light,display:"flex",flexDirection:"column",height:"53px",justifyContent:"center",[e.breakpoints.down("sm")]:{margin:e.spacing(3)},"& p":{fontSize:e.typography.pxToRem(16),[e.breakpoints.down("sm")]:{fontSize:e.typography.pxToRem(14)}}},lowercase:{textTransform:"lowercase"}}));var e4=function(e){return e.SDS="sds",e}({});let e7={sds:{id:"LOOKING_FOR_SDS",defaultMessage:"Looking for a Safety Data Sheet?",values:{b:function(){for(var e=arguments.length,a=Array(e),t=0;tCertificate of Analysis?",values:{b:function(){for(var e=arguments.length,a=Array(e),t=0;tCertificate of Origin?",values:{b:function(){for(var e=arguments.length,a=Array(e),t=0;tCertificate of Quality?",values:{b:function(){for(var e=arguments.length,a=Array(e),t=0;t{var a;let{searchQuery:t}=e,n=e2(),r=e7[t],l=m.HN.index(t),o=null===(a=e1.tq[t])||void 0===a?void 0:a.replaceAll(" ","_");return(0,i.jsx)("div",{className:n.docBanner,children:(0,i.jsxs)(u.A,{variant:"body1",children:[r&&(0,i.jsx)(v.A,{id:r.id,defaultMessage:r.defaultMessage,values:r.values})," ",(0,i.jsx)(v.A,{id:"THESE_AND_OTHER_DOCS",defaultMessage:"These and other documents can be found on our"})," ",(0,i.jsx)(e0.A,{href:"".concat(l,"&").concat("icid=search_term_specific_tip-banner-looking_for_a_".concat(o,"-documents")),children:(0,i.jsx)(v.A,{id:"DOCUMENTS",defaultMessage:"Documents"})})," ",(0,i.jsx)("span",{className:n.lowercase,children:(0,i.jsx)(v.A,{id:"PAGE",defaultMessage:"Page"})}),"."]})})};var e6=t(81566);let e8=(0,o.A)(e=>({medium:{fontWeight:e.typography.fontWeightMedium},banner:{alignItems:"center",background:e.palette.primary.light,display:"flex",flexDirection:"column",justifyContent:"center",margin:e.spacing(4,2),padding:e.spacing(2,0),[e.breakpoints.up("md")]:{alignItems:"start",marginLeft:e.spacing(0),marginRight:e.spacing(0),padding:e.spacing(2,45,2,3)},"& p":{fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(15)}}}})),e5=e=>{let{searchQuery:a}=e,t=e8(),n=(0,m.rd)();return(0,i.jsx)("div",{className:t.banner,children:(0,i.jsxs)(u.A,{variant:"body1",children:[(0,i.jsx)(v.A,{id:"LOOKING_FOR_MOL_FORMULA",defaultMessage:"Are you looking for the Molecular Formula",values:{strong:function(){for(var e=arguments.length,a=Array(e),t=0;te.split("").map(e=>String.fromCharCode(8320+parseInt(e))).join(""))}),"’?"]})]})})};var e9=t(65567);let ae=(0,o.A)(e=>({hideOnMobile:{[e.breakpoints.down("sm")]:{display:"none"}},searchFacets:{margin:0,"&$searchFacets":{padding:e.spacing(0)}},searchFacetsInner:{borderRight:"1px solid ".concat(e.palette.grey[600]),height:"calc(100% - ".concat(e.spacing(5),"px)"),padding:e.spacing(0,7,5,5),marginTop:e.spacing(5)},searchResults:{marginTop:e.spacing(10),padding:0,"&$searchResults":{[e.breakpoints.up("md")]:{marginTop:e.spacing(4),paddingLeft:e.spacing(8),paddingTop:0}}},searchResultsLoose:{[e.breakpoints.up("md")]:{marginTop:e.spacing(6)}},noResults:{marginTop:0},mobileContainer:{maxWidth:"100%",paddingLeft:0,paddingRight:0,margin:0},searchLinks:{marginBottom:e.spacing(4.5)},title:{marginLeft:e.spacing(2),textTransform:"capitalize",[e.breakpoints.up("md")]:{marginLeft:0}},alert:{display:"flex",alignItems:"flex-start",lineHeight:1.5,borderRadius:"6px",marginBottom:e.spacing(6),padding:e.spacing(6,4),"& .MuiAlert-icon":{paddingTop:0},"& .MuiAlert-action":{padding:0,margin:0},"& svg":{fontSize:e.typography.pxToRem(16)}},infoMessage:{fontWeight:e.typography.fontWeightRegular,textTransform:"none"}})),aa=e=>{var a,t;let{children:o,showSortBar:y,showFacets:A,showAvailableForSale:v,orgId:b,facets:f,loading:j,error:N,metadata:S,showMore:I}=e,k=ae(),R=(0,m.rd)(),[_]=(0,C.useSearchQuery)(),E=(0,h.h2)({focus:R.query.focus,term:R.query.term}),M=E.focus===h.Xc.StructureSearch,L=E.focus===h.Xc.Products||E.focus===h.Xc.B2B,w=(0,p.A)(),O=(0,s.A)(w.breakpoints.up("md")),D=(null==S?void 0:S.itemCount)===0||null==S||(null==S?void 0:S.setsCount)===0,B=(0,l.A)({[D?k.noResults:k.searchResultsLoose]:L});(0,n.useEffect)(()=>{r.sZ.setItem("previousSearchPath",R.asPath)},[R.asPath]);let F=[Object.values(g.e_),Object.values(e4)].toString().toLowerCase(),z=(()=>{var e,a;return"facet-search"===E.term?null===(e=_.facet[0])||void 0===e?void 0:e.split(":")[1]:(null===(a=R.query)||void 0===a?void 0:a.term)||""})(),q=!!z&&F.split(",").includes(z.toLowerCase()),H=(null==S?void 0:S.suggestedType)&&S.suggestedType.includes("mol_form");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W,{metadata:S},"head"),(0,i.jsx)(d.A,{className:k.mobileContainer,children:(0,i.jsxs)(c.A,{container:!0,spacing:10,children:[(0,i.jsx)(c.A,{item:!0,md:3,className:(0,l.A)(k.hideOnMobile,k.searchFacets),children:(0,i.jsxs)("div",{className:k.searchFacetsInner,children:[(0,i.jsx)("div",{className:k.searchLinks,children:(0,i.jsx)(eG,{orgId:b,isStructureSearch:M})}),M?(0,i.jsx)(U.A,{}):(0,i.jsx)(et,{orgId:b}),A&&(0,i.jsx)(x.A,{loading:j,error:N,facets:f,showMore:I}),v&&(0,i.jsx)(Z,{loading:j,error:N})]})}),(0,i.jsxs)(c.A,{item:!0,xs:12,md:9,className:D?k.noResults:k.searchResults,children:[!j&&!D&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(u.A,{variant:"h1",className:k.title,children:(0,i.jsx)(T.A,{value:z})})}),q&&(null==R?void 0:null===(a=R.query)||void 0===a?void 0:a.term)&&(0,i.jsx)(e3,{searchQuery:R.query.term.toLowerCase()}),H&&!j&&(null==R?void 0:null===(t=R.query)||void 0===t?void 0:t.term)&&(0,i.jsx)(e5,{searchQuery:R.query.term}),A&&!j&&(0,i.jsx)(P,{facets:f,isStructureSearch:M}),O&&!D?(0,i.jsx)(eZ,{showSortBar:y,metadata:S,orgId:b}):(0,i.jsx)(eq,{facets:f,showSortBar:y,metadata:S,orgId:b}),(0,i.jsx)("div",{className:B,children:o})]})]})}),!j&&!D&&(0,i.jsx)(e9.A,{flag:"wabt-221",hide:!0,variationKey:"v3_remove_recently_viewed",children:(0,i.jsx)(eQ.A,{dispType:g.HI.RecentlyViewedSrp,searchKey:E.term,analyticsPageName:"srp",analyticsPageDetails:"search results page"})},"v3_remove_recently_viewed")]})}},54034:(e,a,t)=>{t.d(a,{A:()=>z});var i=t(37876),n=t(14232),r=t(61261),l=t(37695),o=t(30877),s=t(47801),d=t(11148),c=t(20534),u=t(16717),p=t(12197),m=t(34415),g=t(64204),h=t(61206),x=t(77742),y=t(8733),A=t(49995),v=t(52413),b=t(97710),f=t(35645),j=t(71662),N=t(40002),C=t(40352),T=t(32609),S=t(88694),I=t(77660),k=t(11788),R=t(84119),_=t(52710),E=t(71007),P=t(75020),M=t(61622),L=t(87254),w=t(39324);let{publicRuntimeConfig:{featureFlags:O}}=t.n(w)()(),D=(0,r.A)(e=>({root:{display:"block",padding:e.spacing(4)},name:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(1)},description:{fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(4)},viewPricingWrapper:{textAlign:"right"},viewPricingWrapperWithBadge:{display:"flex",justifyContent:"space-between"},viewPricing:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main},loaderContainer:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,width:"100%"}})),B="7950",F=e=>{var a,t,r,l,o,w,F,W,U;let{product:z,substanceName:q,className:H,substanceId:V,substancePosition:K}=e,G=D(),Q=(0,d.rd)(),$=(0,C.Ay)(),{formatMessage:Y}=(0,x.A)(),{focus:X="",catalogType:J="",orgId:Z=""}=Q.query||{},[ee,ea]=(0,n.useState)(!1),et=(null==z?void 0:z.isMarketplace)?I.Mh.Marketplace:null,{currentUser:ei,getSitePreference:en,isB2BUser:er,isDTAQZuCustomer:el,isBlueErpIntegrationEnabled:eo}=(0,k.iZ)(),es=el?en(k.VD.PreferredDealerId):null,ed=eo&&(null==z?void 0:z.erp_type)&&(null==z?void 0:null===(a=z.erp_type)||void 0===a?void 0:a.length)>0,ec=null!==(w=null===s.Lr||void 0===s.Lr?void 0:s.Lr.getItem("searchedfor"))&&void 0!==w?w:"",[eu,{data:ep,loading:em,error:eg}]=(0,S.Gb)({variables:{...ed&&{erp_type:null==z?void 0:z.erp_type},brand:null==z?void 0:null===(t=z.brand)||void 0===t?void 0:t.key,catalogType:(0,b.vN)(et||J||X),checkBuyNow:!0,checkForPb:!0,dealerId:es,displaySDS:!1,materialIds:null==z?void 0:z.materialIds,orgId:Z,productKey:null==z?void 0:z.productKey,productNumber:null==z?void 0:z.productNumber,quantity:1}}),{discontinuedPricingInfo:eh}=null!==(F=null==ep?void 0:ep.getPricingForProduct)&&void 0!==F?F:{},ex=!em&&ee&&!eh,ey=(0,M.j)(null==eh?void 0:eh.replacementProducts),eA=z.productNumber.startsWith("CB_")?Y({id:"DETAILS",defaultMessage:"Details"}):z.productNumber,ev=(0,n.useContext)(_.E),eb=(0,n.useMemo)(()=>{var e,a;return(null==ei?void 0:null===(a=ei.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==ei?void 0:ei.metadata.salesOrg)||""},[ei]),ef=(0,n.useMemo)(()=>{var e;return(null==ei?void 0:null===(e=ei.metadata)||void 0===e?void 0:e.country)||""},[ei]),ej=O.srpTxnBadges&&"US"===ef&&!er&&z.txnBadge&&(null===(r=z.txnBadge)||void 0===r?void 0:r.type)==="MAX_DISCOUNT"&&(null===(o=z.txnBadge)||void 0===o?void 0:null===(l=o.salesOrgIds)||void 0===l?void 0:l.includes(B))&&eb===B;return eg?(0,i.jsx)(_.M,{...ev,brand:z.brand.key,item:z.name,children:(0,i.jsx)(R.A,{productNumber:null==z?void 0:z.productNumber,error:eg})}):(0,i.jsxs)(u.A,{component:"li",className:(0,A.A)(H,G.root),children:[(0,i.jsx)(p.A,{component:"h3",className:G.name,children:z.brand.key&&z.productNumber?(0,i.jsx)(v.N,{...d.aR.index(z.brand.key,z.productKey,{catalog:(0,b.vN)(J||X)}),passHref:!0,children:(0,i.jsx)(m.A,{onClick:()=>(0,E.WL)({product:z,searchTerm:ec,substanceId:V,substancePosition:K}),children:eA})}):(0,i.jsx)("span",{children:z.productNumber})}),(0,i.jsx)(p.A,{component:"p",className:G.description,children:(0,i.jsx)(h.A,{value:z.legalNameSuffix||z.description})}),eh?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.A,{discontinuedPricingInfo:eh}),ey&&(0,i.jsx)(j.A,{type:N.j.RecommendedProducts,preloadCardImages:!0,products:ey,slidesToShow:$({xs:1,sm:2,lg:3}),withoutControls:ey.length<=4})]}):(0,i.jsxs)("div",{className:ej?G.viewPricingWrapperWithBadge:G.viewPricingWrapper,children:[ej&&(0,i.jsx)(L.A,{showTooltip:!0,toolTipPlacement:"right"}),(0,i.jsx)(g.A,{className:G.viewPricing,onClick:()=>{var e;z.paMessage||eu(),ea(!0),(0,P.Sm)({action:"view p&a",section:K?void 0:"products",component:"list",elementType:"link",elementText:"view",material:{materialDescription:z.name,brand:null===(e=z.brand)||void 0===e?void 0:e.key,product:z.productNumber}})},"aria-label":"view pricing",children:(0,i.jsx)(y.A,{id:"SUBSTANCE_VIEW_PRICING",defaultMessage:"View Pricing"})})]}),em?(0,i.jsx)(c.A,{}):ex&&(0,i.jsx)(f.A,{onClose:()=>{ea(!ee)},substanceName:q,productNumber:z.productNumber,productKey:z.productKey,brandKey:z.brand.key,description:z.description,materialIds:z.materialIds,isMarketplace:z.isMarketplace,productAttributes:z.attributes,marketplaceSellerId:z.marketplaceSellerId||"",marketplaceOfferId:z.marketplaceOfferId||"",erp_type:z.erp_type,productName:null!==(W=z.name)&&void 0!==W?W:"",displaySellerName:null!==(U=z.displaySellerName)&&void 0!==U?U:"",pricingData:null==ep?void 0:ep.getPricingForProduct,paMessage:z.paMessage})]})};var W=t(63912);let U=(0,r.A)(e=>({showMore:{fontSize:e.typography.pxToRem(14),color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold,borderTop:"solid 1px ".concat(e.palette.grey[400]),padding:e.spacing(2,0,6,0),textAlign:"center",width:"100%"},initialProducts:{"& li":{borderBottom:"solid 1px ".concat(e.palette.grey[400])},"& li:last-child":{borderBottom:"none"}},moreProducts:{"& li":{borderBottom:"solid 1px ".concat(e.palette.grey[400])},"& li:first-child":{borderTop:"solid 1px ".concat(e.palette.grey[400])},"& li:last-child":{borderBottom:"none"}}})),z=e=>{let{products:a,substanceName:t,substanceId:r,substancePosition:s}=e,d=a.length,c=a.slice(0,2),u=a.slice(2),[p,m]=(0,n.useState)(!1),g=U(),h=e=>(0,i.jsx)(F,{product:e,substanceName:t,substancePosition:s,substanceId:r},e.productNumber);return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.A,{disablePadding:!0,className:g.initialProducts,children:c.map(h)}),d>2&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{in:p,children:(0,i.jsx)(l.A,{disablePadding:!0,className:g.moreProducts,children:u.map(h)})}),(0,i.jsx)(W.A,{expanded:p,setExpanded:()=>{m(!p)},className:g.showMore,"data-testid":"show-".concat(p?"less":"more")})]})]})}},54064:(e,a,t)=>{t.d(a,{z:()=>r});var i=t(28888);function n(){let e=(0,i._)(["\n fragment DynamicProduct on Product {\n id\n productKey\n productNumber\n productSku\n lastBoughtUnix\n brand {\n key\n erpKey\n name\n color\n }\n name\n description\n images {\n altText\n mediumUrl\n }\n gaProductCode\n isMarketplace\n erp_type\n tags\n discount\n}\n "]);return n=function(){return e},e}let r=(0,t(82897).J1)(n())},55287:(e,a,t)=>{t.d(a,{WL:()=>d});var i=t(28888);t(37876);var n=t(82897);t(14232);var r=t(54431);function l(){let e=(0,i._)(['\n query PreviouslyPurchasedProduct($productNumber: String!) {\n recentOrderItems(\n input: {page: 1, perpage: 1, product: $productNumber, sortcolumn: "orderDate", orderby: "desc"}\n ) {\n count\n orderItems {\n orderId\n orderDate\n product\n }\n }\n}\n ']);return l=function(){return e},e}let o={},s=(0,n.J1)(l());function d(e){let a={...o,...e};return r.IT(s,a)}},56584:(e,a,t)=>{t.r(a),t.d(a,{FacetChangeAction:()=>P,SearchQueryContext:()=>E,default:()=>F,useSearchQuery:()=>L});var i=t(37876),n=t(14232),r=t(85576),l=t(11148),o=t(6666),s=t(97710),d=t(77660),c=t(45249),u=t(92189),p=t(61261),m=t(51722),g=t(8733),h=t(81474),x=t(34669),y=t(96707),A=t(73170),v=t(21341),b=t(53590),f=t(62599);let j=()=>{var e,a;let t,n;let[r,l,o]=L(),{data:s,loading:u,error:p}=(0,h.le)({fetchPolicy:"network-only",variables:{orgId:r.orgId,searchTerm:r.term,page:r.page,selectedFacets:l,sort:r.sort,type:r.type?r.type.toUpperCase():void 0,catalogType:d.Mh.B2b}});return(0,i.jsx)(b.A,{showFacets:!0,showSortBar:!0,orgId:r.orgId,loading:u,metadata:null==s?void 0:null===(e=s.getProductSearchResults)||void 0===e?void 0:e.metadata,facets:null==s?void 0:null===(a=s.getProductSearchResults)||void 0===a?void 0:a.facets,children:(null==s?void 0:s.getProductSearchResults)?({metadata:t,items:n}=s.getProductSearchResults,(0,i.jsxs)(i.Fragment,{children:[n.length?n.map((e,a)=>(0,i.jsx)(f.A,{substance:e},a)):(0,i.jsx)(g.A,{...x.A.SORRY_NO_MATCHES_FOUND_FOR,children:e=>(0,i.jsxs)(y.A,{fontSize:20,mt:6,children:[e," ","'".concat(r.term,"'")]})}),t.numPages>1&&(0,i.jsx)(A.A,{curPage:r.page,numPages:t.numPages,clickHandler:o.handlePageChange})]})):(0,i.jsx)(v.A,{view:c.Z.list,error:p})})},N=(0,p.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),paddingTop:e.spacing(7),[e.breakpoints.up("sm")]:{paddingTop:e.spacing(8)},[e.breakpoints.only("xs")]:{paddingLeft:e.spacing(0),paddingRight:e.spacing(0)}}})),C=()=>{let e=N();return(0,i.jsx)(m.A,{className:e.searchContainer,children:(0,i.jsx)(u.A,{maxWidth:"lg",classes:{root:e.resultsContainer},children:(0,i.jsx)("div",{children:(0,i.jsx)(j,{})})})})};var T=t(11788),S=t(8288),I=t(69569),k=t(30915),R=t.n(k),_=t(33086);let E=(0,n.createContext)((0,s.h2)({term:""}));var P=function(e){return e[e.Add=0]="Add",e[e.Remove=1]="Remove",e}({});let M=(e,a)=>(e.map((t,i)=>{let n=a[0].split(":")[0];return t.split(":")[0]===n&&e.splice(i,1),null}),e.concat(a)),L=()=>{let e=(0,n.useContext)(E),{getSitePreference:a}=(0,T.iZ)(),t=a(T.VD.CatalogFilter),i=(0,l.rd)(),r=i.asPath.includes("structure-search")?"structure-search":e.term||"",{facet:o,focus:d,type:c,sort:u,perpage:p,format:m,filters:g,image:h,catalogType:x,region:y}=e,A={term:e.term,selectedFacets:o,focus:d,type:c,sort:u,perpage:p,format:m,filters:g,image:h,catalogType:x,region:y},v=!t&&!!t!=!!e.orgId,b=t&&t!==e.orgId&&"UCB"!==t;(0,n.useEffect)(()=>{v?i.push("/search/[searchTerm]".concat((0,s.$c)(A)),"".concat(l.wO.searchResults(r)).concat((0,s.$c)(A))):b&&i.push("/search/[searchTerm]".concat((0,s.$c)({...A,orgId:t})),"".concat(l.wO.searchResults(r)).concat((0,s.$c)({...A,orgId:t})))},[A,t,v,e.orgId,b]);let f=(0,n.useCallback)(a=>{i.push("/search/[searchTerm]".concat((0,s.$c)({term:e.term,focus:a})),"".concat(l.wO.searchResults(e.term)).concat((0,s.$c)({term:e.term,focus:a})))},[A,t,i,r]),j=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,s.$c)({...A,orgId:t,page:e})),"".concat(l.wO.searchResults(r)).concat((0,s.$c)({...A,orgId:t,page:e}))),window.scrollTo(0,0)},[A,t,i,r]),N=(0,n.useCallback)(()=>{if(!i.query.facet)return i.push(l.wO.index());if(i.query.facet.length>0){let a="".concat(l.wO.searchResults(_.D)).concat((0,s.$c)({...e,page:1,selectedFacets:[i.query.facet],term:_.D}));return i.push(a)}return i.push(l.wO.index())},[i,e]),C=(0,n.useCallback)(e=>{let a=null,{options:n,prefix:d,key:c}=e,u=n.map(e=>d?"".concat(c,":").concat(d).concat(e):"".concat(c,":").concat(e));({0:e=>{0>o.indexOf(u[0])&&(a=e.multiSelect?o.concat(u[0]):M(o,u))},1:()=>{if(1===o.length&&r===_.D){a=null;return}a=o.filter(e=>0>u.indexOf(e))}})[e.action](e),null!==a?(i.push("/search/[searchTerm]".concat((0,s.$c)({...A,selectedFacets:a,page:1,orgId:t})),"".concat(l.wO.searchResults(r)).concat((0,s.$c)({...A,selectedFacets:a,page:1,orgId:t}))),window.scrollTo(0,0)):i.push(l.wO.index())},[A,t,o,i,r]),S=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,s.$c)({...A,page:1,orgId:t,region:e})),"".concat(l.wO.searchResults(r)).concat((0,s.$c)({...A,page:1,orgId:t,region:e}))),window.scrollTo(0,0)},[A,t,i,r]),I=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,s.$c)({...A,page:1,sort:e,orgId:t})),"".concat(l.wO.searchResults(r)).concat((0,s.$c)({...A,page:1,sort:e,orgId:t})))},[A,t,i,r]),k=(0,n.useMemo)(()=>(0,s.w9)(o),[o]);return(0,n.useMemo)(()=>[e,k,{handleFocusChange:f,handlePageChange:j,handleTermRemoval:N,handleSelectedFacetChange:C,handleAvailableForSaleChange:S,handleSortChange:I}],[e,f,j,N,C,S,I,k])},w=e=>{let{searchQuery:a}=e;if(!a)return null;let t=a.orgId?C:c.A;return(0,i.jsx)(E.Provider,{value:a,children:(0,i.jsx)(t,{})})},O=e=>Array.isArray(e)?e[0]:e,D=e=>e?Array.isArray(e)?e:[e]:[],B=e=>void 0!==e?Array.isArray(e)?parseInt(e[0],10):parseInt(e,10):e;w.getInitialProps=async e=>{let{query:a,res:t,asPath:i}=e;if(!a)return{searchQuery:null};let n=O(a.term),c=(0,I.A)(e),u=(0,S.xS)((0,o.k)(c.getAll()),l.wO.index());if(!n&&!a.facet)return t?(t.writeHead(301,{Location:u.as}),t.end()):l.Ix.replace(u.href,u.as),{searchQuery:null};let p=O(a.focus),m=O(a.type),g=D(a.facet),h=B(a.page),x=O(a.sort),y=B(a.perpage),A=D(a.filters),v=Array.isArray(a.format)?d.ZI[a.format[0]]:(null==a?void 0:a.format)&&d.ZI[a.format],b=O(a.image),f=O(a.orgId),j=O(a.catalogType),N=O(a.region),C=O(a.dym),T=O(a.debug),k=(0,r.A)(a,(e,a)=>!!a.match(/^(utm_|gclid|dclid|msclkid|fbclid)/i)),_=(0,s.h2)({term:n,selectedFacets:g,focus:p,type:m,page:h,sort:x,perPage:y,format:v,filters:A,image:b,orgId:f,catalogType:j,region:N,dym:C,debug:T}),E=n;(null==i?void 0:i.includes("structure-search"))&&(E="structure-search");let P=(0,S.xS)((0,o.k)(c.getAll()),"".concat(l.wO.searchResults(E)).concat((0,s.e9)({..._,...k}))),M=(null==i?void 0:i.split("?"))||[],L=R().parse(M[1]),w="".concat(M[0],"?").concat(R().stringify(L,{indices:!1}));if(P.as!==w){if(t){let e=/[A-Z]/.test(P.as)?301:302;t.writeHead(e,{Location:P.as}),t.end()}else l.Ix.replace(P.href,P.as);return{searchQuery:null}}return{searchQuery:_}};let F=w},57717:(e,a,t)=>{t.d(a,{A:()=>i.Ay});var i=t(91721)},58597:(e,a,t)=>{t.d(a,{A:()=>s});var i=t(37876);t(14232);var n=t(8733),r=t(54753),l=t(28975),o=t(12197);let s=e=>{let{open:a,onCancel:t}=e;return(0,i.jsx)(l.Ay,{open:a,onClose:t,size:l.Ih.Small,renderTitle:()=>(0,i.jsx)(o.A,{variant:"h2",children:(0,i.jsx)(n.A,{...r.A.RESTRICTED_ITEM})}),children:(0,i.jsx)(l.Uh,{children:(0,i.jsx)(o.A,{component:"p",children:(0,i.jsx)(n.A,{...r.A.RESTRICTED_ITEM_MESSAGE})})})})}},58745:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876),n=t(12197),r=t(98011),l=t(61261),o=t(49995),s=t(70813);let d=(0,l.A)(e=>({root:{padding:"0",marginRight:e.spacing(2),"&:hover":{outline:"3px solid ".concat(e.palette.primary.light)},"&.Mui-checked:hover":{backgroundColor:e.palette.primary.light,color:e.palette.primary.light}},icon:{display:"flex",border:"1px solid ".concat(e.palette.grey[500]),borderRadius:"50%",backgroundColor:a=>{let{disabled:t}=a;return t?e.palette.grey[50]:e.palette.common.white}},checkedIcon:{backgroundColor:e.palette.common.white,"&:before":{backgroundColor:a=>{let{disabled:t}=a;return t?e.palette.grey[800]:e.palette.primary.main},borderRadius:"50%"}},customRadio:{marginLeft:0," &:not(:last-child)":{marginBottom:e.spacing(4)},"& .MuiIconButton-label":{"& span":{height:e=>{let{size:a}=e;return"medium"===a?"24px":"20px"},width:e=>{let{size:a}=e;return"medium"===a?"24px":"20px"},"&:before":{width:e=>{let{size:a}=e;return"medium"===a?"14px":"12px"},height:e=>{let{size:a}=e;return"medium"===a?"14px":"12px"},position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",content:'""'}}}},disabledText:{"& .MuiTypography-body1 ":{color:e.palette.grey[800]}}})),c=e=>{let{name:a,value:t,label:l,checked:c,onChange:u,size:p="medium",disabled:m=!1,"data-testid":g}=e,h=d({disabled:m,size:p}),x="string"==typeof l?(0,i.jsx)(n.A,{variant:"body1",children:l}):l;return(0,i.jsx)(s.A,{className:(0,o.A)(h.customRadio,{[h.disabledText]:m}),value:t,control:(0,i.jsx)(r.A,{"data-testid":g,classes:{root:h.root},name:a,checked:c,onChange:u,disabled:m,size:p,checkedIcon:(0,i.jsx)("span",{className:(0,o.A)(h.icon,h.checkedIcon)}),icon:(0,i.jsx)("span",{className:h.icon})}),label:x})}},59131:(e,a,t)=>{t.d(a,{Ay:()=>ed});var i=t(37876),n=t(14232),r=t(77742),l=t(8733),o=t(61261),s=t(57377),d=t(10181),c=t(67241),u=t(70377),p=t(41683),m=t(71549),g=t(34669),h=t(63912),x=t(47801),y=t(49995),A=t(97710),v=t(80491),b=t(80863),f=t(61206),j=t(6315),N=t(74770),C=t(26925),T=t(52263),S=t(71007),I=t(15093),k=t(65824),R=t(28907),_=t(75020),E=t(11148),P=t(62084),M=t(11788),L=t(54587),w=t.n(L);let O=()=>(0,i.jsx)(w(),{style:{margin:"4px"},src:"/static/globe_greener_alt_icon.svg",alt:"greener alternative",title:"Greener Alternative Product",height:28,width:28});var D=t(23604),B=t(87254),F=t(39324),W=t.n(F);let{publicRuntimeConfig:{featureFlags:U}}=W()(),z=(0,o.A)(e=>({tableRow:{height:"2.5rem","& .MuiTableCell-body":{padding:".2rem .6rem",borderBottom:"1px solid ".concat(e.palette.grey[300])}},productImageContainer:{height:"3.2rem",width:"3.2rem",display:"flex",alignItems:"center"},productImage:{height:"auto",width:"100%"},productName:{paddingTop:e.spacing(1)},productNumberContainer:{wordBreak:"break-word",overflowWrap:"break-word",paddingRight:"0 !important",fontWeight:e.typography.fontWeightMedium},productDescription:{maxWidth:"18rem"},productDescriptionName:{wordBreak:"break-word",fontWeight:e.typography.fontWeightMedium,paddingRight:"0.5rem"},breakWord:{wordBreak:"break-word"},productDescLink:{wordBreak:"break-word",color:e.palette.common.black,fontWeight:"normal"},hideBelowMd:{[e.breakpoints.down("sm")]:{display:"none"}},hideOnMobile:{whiteSpace:"nowrap",[e.breakpoints.down("xs")]:{display:"none"}},sdsTrigger:{display:"block"},clearBottomBorder:{"& > *":{borderBottomColor:"transparent"}},tableRowExpanded:{backgroundColor:e.palette.background.grey},expandHideSpacer:{height:0,visibility:"hidden"},badgeCell:{textAlign:"right"}})),q="7950",H={CLONALITY:{key:"clonality-clone_number.default"},SPECIES_REACTIVITY:{key:"species reactivity.reactivity"},PORE_SIZE:{key:"pore size.default"},DIAMETER:{key:"composite dimension.default",label:"diam."},STERILITY:{key:"sterilization.default"},MATERIAL:{key:"material.default"}},V=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,o=l.find(e=>e.key===H.CLONALITY.key),d=l.find(e=>e.key===H.SPECIES_REACTIVITY.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:o&&(0,i.jsx)(j.A,{values:o.values})}),(0,i.jsx)(s.A,{children:(0,i.jsx)(f.A,{value:t.cardAttribute.application.join(", ")})}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:d&&(0,i.jsx)(j.A,{values:d.values})}),(0,i.jsx)(s.A,{children:t.cardAttribute.citationCount}),a||n&&(0,i.jsxs)(s.A,{children:[a&&(0,i.jsx)(N.A,{features:t.features}),n&&(0,i.jsx)(O,{})]})]})]})},K=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,o=l.find(e=>e.key===H.PORE_SIZE.key),d=l.find(e=>e.key===H.DIAMETER.key&&e.label===H.DIAMETER.label),c=l.find(e=>e.key===H.STERILITY.key),u=l.filter(e=>e.key===H.MATERIAL.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{"data-testid":"pdp-product-poreSize",children:o&&o.values.length&&(0,i.jsx)(j.A,{values:o.values})}),(0,i.jsx)(s.A,{"data-testid":"pdp-product-diameter",children:d&&(0,i.jsx)(j.A,{values:d.values})}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{"data-testid":"pdp-product-sterility",children:c&&(0,i.jsx)(j.A,{values:c.values})}),(0,i.jsx)(s.A,{"data-testid":"pdp-product-material",children:u&&u.map(e=>(0,i.jsx)(j.A,{values:e.values},e.key))}),a||n&&(0,i.jsxs)(s.A,{children:[a&&(0,i.jsx)(N.A,{features:t.features}),n&&(0,i.jsx)(O,{})]})]})]})},G=e=>{let{focus:a,isStaticContent:t,product:n,productDescription:r}=e,l=z();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(s.A,{className:l.productDescription,align:"left",children:[t&&n.name&&(0,i.jsx)(f.A,{value:n.name,className:l.productDescriptionName}),(0,i.jsx)(R.h,{product:n,focus:a,label:r,productDescriptionClass:l.productDescLink,productLinkType:R.A.DESCRIPTION,productDescription:r})]})})},Q=e=>{let{keyAttributes:a,focus:t,isStaticContent:n,product:r,productDescription:l,txnBadgeColAdjustments:o}=e,d=o?2:null==a?void 0:a.length;return(null==a?void 0:a.length)?(0,i.jsx)(i.Fragment,{children:null==a?void 0:a.slice(0,d).map(e=>(0,i.jsx)(s.A,{"data-testid":"pdp-product-".concat(e.label),children:e.values.length>0?(0,i.jsx)(j.A,{values:e.values}):"—"},"".concat(e.key,"_").concat(e.label)))}):(0,i.jsx)(G,{focus:t,isStaticContent:n,product:r,productDescription:l})},$=e=>{let{displayBadgesOnProduct:a,features:t,showGreenBadge:n,txnBadge:r,isTxnBadgeUser:l}=e,o=z();return(0,i.jsx)(s.A,{className:o.badgeCell,colSpan:4,children:r?(0,i.jsx)(B.A,{showTooltip:!0}):!l&&(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)(N.A,{features:t}),n&&(0,i.jsx)(O,{})]})})},Y=e=>{var a,t,l,o,d,c,u;let{additionalColumns:m,displayBadgesOnProduct:j,displayViewLink:N=!0,focus:L,isShowBrand:w,isShowImage:O,isStaticContent:B,product:F,productIsAntibody:W,productIsSyringeFilter:H,showDescription:Y,substanceId:X,substancePosition:J,txnBadgeColAdjustments:Z}=e,ee=(0,E.rd)(),ea=z(),{formatMessage:et}=(0,r.A)(),[ei,en]=(0,n.useState)(!1),{currentUser:er,isB2BUser:el}=(0,M.iZ)(),[eo]=(0,D.lT)(["language"]),{compareProducts:es,addCompareProduct:ed,removeCompareProduct:ec}=(0,v.Zn)(),eu=es.some(e=>{let{productKey:a,brandKey:t,catalogType:i}=e;return a===F.productKey&&t===F.brand.key&&i===(0,A.vN)(L)}),ep=null!==(u=null===x.Lr||void 0===x.Lr?void 0:x.Lr.getItem("searchedfor"))&&void 0!==u?u:"",em=()=>{var e;en(e=>!e),(0,_.Sm)({action:ei?"close p&a":"view p&a",section:J?void 0:"products",component:"list",elementType:"accordion",elementText:ei?"hide":"expand",material:{materialDescription:F.name,brand:null===(e=F.brand)||void 0===e?void 0:e.key,product:F.productNumber}})},{paMessage:eg}=F,eh=F.productNumber.startsWith("CB_")?et(g.A.DETAILS):F.productNumber,ex=!eu&&es.length>=v.NN,ey={productKey:F.productKey,productNumber:F.productNumber,brandKey:F.brand.key,images:F.images,catalogType:L?(0,A.vN)(L):void 0},eA=(null==er?void 0:er.metadata.isNewPNASrpEnabled)&&!ee.query.debug&&N,ev=F.legalNameSuffix||F.description,eb=null===(a=F.attributes)||void 0===a?void 0:a.find(e=>"greener alternative category.default"===e.key),ef="en"===eo.language.toLowerCase(),ej=W&&F.cardAttribute,eN=!ej&&!H&&ef&&(null==F?void 0:F.keyAttributes)&&F.keyAttributes.length>0,eC=(0,n.useMemo)(()=>{var e,a;return(null==er?void 0:null===(a=er.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==er?void 0:er.metadata.salesOrg)||""},[er]),eT=(0,n.useMemo)(()=>{var e;return(null==er?void 0:null===(e=er.metadata)||void 0===e?void 0:e.country)||""},[er]),eS=U.srpTxnBadges&&"US"===eT&&!el&&eC===q,eI=eS&&F.txnBadge&&(null===(t=F.txnBadge)||void 0===t?void 0:t.type)==="MAX_DISCOUNT"&&(null===(o=F.txnBadge)||void 0===o?void 0:null===(l=o.salesOrgIds)||void 0===l?void 0:l.includes(q));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.A,{className:ei?(0,y.A)(ea.tableRow,ea.clearBottomBorder,ea.tableRowExpanded):ea.tableRow,"data-testid":"product-".concat(F.name),children:[O?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:(0,i.jsx)("span",{className:ea.productImageContainer,children:(0,i.jsx)("img",{className:ea.productImage,src:null==F?void 0:null===(d=F.images[0])||void 0===d?void 0:d.smallUrl,alt:(null==F?void 0:null===(c=F.images[0])||void 0===c?void 0:c.altText)||""})})}),(0,i.jsx)(s.A,{classes:{root:ea.productNumberContainer},children:(0,i.jsx)(R.h,{product:F,focus:L,label:eh,productDescriptionClass:ea.productName,productLinkType:R.A.NAME,productDescription:ev})})]}):(0,i.jsxs)(i.Fragment,{children:[!B&&(0,i.jsx)(s.A,{className:ea.hideBelowMd,children:(0,i.jsx)(k.A,{name:"".concat(et(g.A.COMPARE),"-").concat(F.productNumber),checked:eu,onChange:e=>{e.target.checked?ed(ey):ec(ey)},"aria-label":"".concat(et(g.A.COMPARE)," ").concat(F.productNumber),disabled:ex})}),(0,i.jsx)(s.A,{classes:{root:ea.productNumberContainer},children:(0,i.jsx)(R.h,{product:F,focus:L,label:eh,onProductLinkClick:()=>(0,S.WL)({product:F,searchTerm:ep,substanceId:X,substancePosition:J}),productDescriptionClass:ea.productName,productLinkType:R.A.NAME,productDescription:ev})})]}),ej&&(0,i.jsx)(V,{displayBadgesOnProduct:j,showGreenBadge:eb,product:F,txnBadgeColAdjustments:Z}),H&&(0,i.jsx)(K,{displayBadgesOnProduct:j,showGreenBadge:eb,product:F,txnBadgeColAdjustments:Z}),eN&&(0,i.jsx)(Q,{keyAttributes:null==F?void 0:F.keyAttributes,focus:L,isStaticContent:B,product:F,productDescription:ev,txnBadgeColAdjustments:Z}),!F.cardCategory&&(0,i.jsxs)(i.Fragment,{children:[Y&&(0,i.jsx)(G,{focus:L,isStaticContent:B,product:F,productDescription:ev}),w&&(0,i.jsx)(s.A,{className:ea.hideOnMobile,style:{color:F.brand.color||void 0},children:F.brand.name}),m&&m.map(e=>{var a;let{value:t}=e,n=F.attributes.find(e=>e.key&&e.key.toLowerCase()===t.toLowerCase());return(0,i.jsx)(s.A,{children:(0,i.jsx)(f.A,{value:null==n?void 0:null===(a=n.values)||void 0===a?void 0:a.join(", ")})},t)})]}),(0,i.jsx)($,{displayBadgesOnProduct:j,features:F.features,showGreenBadge:eb,txnBadge:eI&&F.txnBadge,isTxnBadgeUser:eS}),(0,i.jsx)(s.A,{children:!!F.sdsLanguages.length&&(0,i.jsx)(b.A,{sdsLanguages:F.sdsLanguages,productNumber:F.sdsPnoKey,brandKey:F.brand.key,trigger:(0,i.jsx)(I.A,{className:ea.sdsTrigger,color:"primary"})})}),(0,i.jsx)(s.A,{children:eA?(0,i.jsx)(P.A,{product:F,substancePosition:J,focus:L}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{expanded:ei,setExpanded:em,collapsedText:et(g.A.EXPAND),expandedText:et(g.A.HIDE),"data-testid":"srp-pricing-".concat(F.productNumber).concat(F.brand.key)}),(0,i.jsx)("div",{className:ea.expandHideSpacer,children:(0,i.jsx)(h.A,{expanded:!ei,setExpanded:em,collapsedText:et(g.A.EXPAND),expandedText:et(g.A.HIDE)})})]})})]}),(0,i.jsx)(p.A,{className:ea.tableRowExpanded,children:ei&&(0,i.jsx)(s.A,{colSpan:12,children:eg?(0,i.jsx)(T.Ay,{brandKey:F.brand.key,productNumber:F.productNumber,paMessage:eg,displayType:T.yU.SRP}):(0,i.jsx)(C.A,{queryFocus:L,productName:F.name,productNumber:F.productNumber,productDescription:F.description||"",images:F.images,materialIds:F.materialIds,brandKey:F.brand.key,gaType:(0,S.Ss)(L),isMarketplace:F.isMarketplace,productAttributes:F.attributes,marketplaceSellerId:F.marketplaceSellerId||"",marketplaceOfferId:F.marketplaceOfferId||"",displaySellerName:F.displaySellerName||"",displayPromotionalBundlesAnchor:!0,checkForPb:!0,productKey:F.productKey,erp_type:F.erp_type,isBBE:F.isBBE})})})]})};var X=t(88700);let{publicRuntimeConfig:{featureFlags:J}}=W()(),Z=(0,o.A)(e=>({tContainer:{overflowX:"visible"},tHeadRow:{whiteSpace:"nowrap","& .MuiTableCell-head":{padding:"0 .6rem",fontSize:e.typography.pxToRem(12),fontWeight:"".concat(e.typography.fontWeightMedium," !important"),borderBottom:"1px solid ".concat(e.palette.grey[300])}},tHeadProductNumber:{width:124},tHeadSds:{width:52,"&:empty":{width:0}},hideBelowMd:{[e.breakpoints.down("sm")]:{display:"none"}},utilityRow:{display:"flex",marginTop:e.spacing(4),"&:empty":{display:"none"}},showMoreLessButton:{flexShrink:0},compressWidth:{width:0}})),ee={ANTIBODY:"ANTIBODY",SYRINGE_FILTERS:"SYRINGE_FILTERS"};ee.ANTIBODY,ee.SYRINGE_FILTERS;let ea="7950",et=e=>{let{showSdsColumn:a}=e,t=Z(),{formatMessage:n}=(0,r.A)();return(0,i.jsx)(s.A,{className:t.tHeadSds,children:a&&n(g.A.SDS)})},ei=()=>{let e=Z(),{formatMessage:a}=(0,r.A)();return(0,i.jsx)(s.A,{className:e.compressWidth,children:a(g.A.PRICING)})},en=e=>{let{txnBadgeColAdjustments:a}=e,{formatMessage:t}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:t(g.A.CLONALITY)}),(0,i.jsx)(s.A,{children:t(g.A.APPLICATION)}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:t({id:"SPECIES_REACTIVITY",defaultMessage:"Species Reactivity"})}),(0,i.jsx)(s.A,{children:t(g.A.CITATIONS)})]})]})},er=e=>{let{txnBadgeColAdjustments:a}=e,{formatMessage:t}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:t(g.A.PORE_SIZE)}),(0,i.jsx)(s.A,{children:t(g.A.DIAMETER)}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:t(g.A.STERILITY)}),(0,i.jsx)(s.A,{children:t(g.A.MATERIAL)})]})]})},el=e=>e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/_+$/g,""),eo=e=>{let{keyAttributes:a,txnBadgeColAdjustments:t}=e,{formatMessage:n}=(0,r.A)();if(null==a?void 0:a.length){let e=t?2:null==a?void 0:a.length;return(0,i.jsx)(i.Fragment,{children:null==a?void 0:a.slice(0,e).map(e=>{let{key:a,label:t}=e,n=t.replace(/\b\w/g,e=>e.toUpperCase()),r=el(n);return(0,i.jsx)(s.A,{children:r?(0,i.jsx)(l.A,{id:r,defaultMessage:n}):n},"".concat(a,"_").concat(t))})})}return(0,i.jsx)(s.A,{children:n(g.A.DESCRIPTION)})},es=e=>{let{additionalColumns:a,isShowBrand:t,showDescriptionColumn:n}=e,{formatMessage:l}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(s.A,{children:l(g.A.DESCRIPTION)}),t&&(0,i.jsx)(s.A,{children:l(g.A.BRAND)}),a&&a.map(e=>{let{text:a}=e;return(0,i.jsx)(s.A,{"data-additional":"true",children:a},a)})]})},ed=e=>{var a,t,l;let{products:o,displayBadgesOnProduct:x,focus:A,maxRows:v,isShowImage:b=!1,isShowBrand:f=!1,isStaticContent:j=!1,additionalColumns:N,displayViewLink:C,substanceId:T,substancePosition:I,substanceKeyAttributes:k}=e,R=Z(),[_]=(0,D.lT)(["language"]),[E,P]=(0,n.useState)(!1),L=v||5,w=E?o.length:L,{formatMessage:O}=(0,r.A)(),B=!!o.length&&(null===(a=o[0])||void 0===a?void 0:a.cardCategory)===ee.ANTIBODY,F=!!o.length&&(null===(t=o[0])||void 0===t?void 0:t.cardCategory)===ee.SYRINGE_FILTERS,W=o.filter(e=>{var a;return(null==e?void 0:null===(a=e.sdsLanguages)||void 0===a?void 0:a.length)>0}).length>0,U="en"===_.language.toLowerCase(),{currentUser:z,isB2BUser:q}=(0,M.iZ)(),H=(0,n.useMemo)(()=>{var e,a;return(null==z?void 0:null===(a=z.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==z?void 0:z.metadata.salesOrg)||""},[z]),V=(0,n.useMemo)(()=>{var e;return(null==z?void 0:null===(e=z.metadata)||void 0===e?void 0:e.country)||""},[z]),K=o.some(e=>{var a,t,i;return(null==e?void 0:null===(a=e.txnBadge)||void 0===a?void 0:a.type)==="MAX_DISCOUNT"&&(null==e?void 0:null===(i=e.txnBadge)||void 0===i?void 0:null===(t=i.salesOrgIds)||void 0===t?void 0:t.includes(ea))}),G=J.srpTxnBadges&&"US"===V&&!q&&H===ea&&K,Q=B?en:F?er:null,$=!Q&&U&&k&&k.length>0,el=!$&&!Q||!U;return(0,i.jsxs)(d.A,{className:R.tContainer,children:[(0,i.jsxs)(c.A,{size:"small",children:[(0,i.jsx)(u.A,{children:(0,i.jsxs)(p.A,{className:R.tHeadRow,children:[b?(0,i.jsx)(s.A,{}):j?null:(0,i.jsx)(s.A,{className:(0,y.A)(R.hideBelowMd,R.compressWidth),children:O(g.A.COMPARE)}),(0,i.jsx)(s.A,{classes:{root:R.tHeadProductNumber},children:O(g.A.PRODUCT_NO)}),Q&&(0,i.jsx)(Q,{txnBadgeColAdjustments:G}),$&&(0,i.jsx)(eo,{keyAttributes:k,txnBadgeColAdjustments:G}),!(null===(l=o[0])||void 0===l?void 0:l.cardCategory)&&(0,i.jsx)(es,{additionalColumns:N,isShowBrand:f,showDescriptionColumn:el}),(0,i.jsx)(s.A,{colSpan:4}),(0,i.jsx)(et,{showSdsColumn:W}),(0,i.jsx)(ei,{})]})}),(0,i.jsx)(m.A,{children:o.slice(0,w).map((e,a)=>e instanceof Error||!e?null:(0,i.jsx)(Y,{additionalColumns:N,displayBadgesOnProduct:x,displayViewLink:C,focus:A,isShowBrand:f,isShowImage:b,isStaticContent:j,product:e,productIsAntibody:B,productIsSyringeFilter:F,showDescription:el,substanceId:T,substancePosition:I,txnBadgeColAdjustments:G},"".concat(e.productKey).concat(e.brand.erpKey,"-").concat(a)))})]}),(0,i.jsx)("div",{className:R.utilityRow,children:o.length>L&&(0,i.jsx)(h.A,{expanded:E,setExpanded:P,className:R.showMoreLessButton,"data-testid":"show-".concat(E?"less":"more"),onClick:()=>{let e=E?"show less":"show more";(0,S.tg)({action:X.$R.InPageClick,detail:"".concat(e," products | ").concat(T),component:X.IP.Body,elementType:X.T.AnchorLink,elementText:e,productName:"water"})}})})]})}},61622:(e,a,t)=>{t.d(a,{j:()=>i});let i=e=>e?e.map(e=>({...e,productKey:e.productNumber,isMarketplace:!1})):[]},62084:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876),n=t(42778);t(14232);var r=t(67792),l=t(8733),o=t(53295),s=t(12197),d=t(75020);let c=e=>{let{product:a,substancePosition:t,focus:c,typeButtonText:u,ga4Payload:p,sourceString:m}=e,{setGlobalModalComponent:g,clearGlobalModalComponent:h}=(0,n.g)(),x=e=>{var n,r,l,s;g((0,i.jsx)(o.A,{onClose:h,product:a,focus:e,sourceString:m})),(0,d.Sm)({action:"view p&a",section:t?void 0:"products",component:null!==(r=null==p?void 0:p.component)&&void 0!==r?r:"list",elementType:null!==(l=null==p?void 0:p.elementType)&&void 0!==l?l:"link",elementText:null!==(s=null==p?void 0:p.elementText)&&void 0!==s?s:"view",material:{materialDescription:a.name,brand:null===(n=a.brand)||void 0===n?void 0:n.key,product:a.productNumber}})};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.A,{typeButtonText:u,onClick:()=>x(c),children:(0,i.jsx)(s.A,{variant:"inherit",children:u||(0,i.jsx)(l.A,{id:"VIEW",defaultMessage:"View"})})})})}},62599:(e,a,t)=>{t.d(a,{A:()=>L});var i=t(37876),n=t(71541),r=t(37929),l=t(11148),o=t(14232),s=t(61261),d=t(64204),c=t(12197),u=t(69605),p=t(77660),m=t(52413),g=t(97710),h=t(61206),x=t(43343),y=t(8733),A=t(34669),v=t(49995),b=t(99220),f=t(71605),j=t(49691),N=t(85366),C=t(71007);let T=(0,b.n9)()(e=>({root:{alignItems:"baseline",margin:0,marginTop:e.spacing(3),display:"flex",flexWrap:"wrap",gridRowGap:e.spacing(1),"& > *":{margin:0,flex:"0 0 16.66%"},"& > *:nth-child(4n)":{flexBasis:"50%"}},MetaFormatting:{wordBreak:"break-all",fontWeight:e.typography.fontWeightMedium}})),S=e=>{let{substance:a}=e,{casNumber:t,molecularWeight:n,aliases:r,__typename:o}=a,s=r.find(e=>e.key===g.VT.EcNumber),d=r.find(e=>e.key.includes(g.VT.BeilsteinRegistryNumber)),{classes:u}=T(),m=(0,l.rd)(),x=(0,g.h2)({focus:m.query.focus}),v=x.focus===g.Xc.StructureSearch?(0,N.j5)(a.products):null,b=(null==o?void 0:o.toLowerCase())===p.RL.Substance;return(0,i.jsxs)("dl",{className:u.root,children:[t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"caption",children:[(0,i.jsx)(y.A,{...A.A.CAS_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(j.m5,{substanceId:a.id,label:t,searchValue:(0,g.aE)(t),searchFocusType:(0,g.UQ)(x.focus),productSearchType:g.mI.CasNumber,classes:u.MetaFormatting,onClick:()=>(0,C.OT)((0,f.uW)({action:"cas number",detail:t,focus:x.focus}))})})]}),b&&n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"body2",className:u.MetaFormatting,children:[(0,i.jsx)(y.A,{...A.A.MOLECULAR_WEIGHT}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(h.A,{value:n})})]}),s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"body2",className:u.MetaFormatting,children:[(0,i.jsx)(y.A,{...A.A.EC_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(j.m5,{substanceId:a.id,searchValue:s.value,searchFocusType:(0,g.UQ)(x.focus),productSearchType:g.mI.EgecNumber,classes:u.MetaFormatting,onClick:()=>(0,C.OT)((0,f.uW)({action:"ec number",detail:s.value,focus:x.focus}))})})]}),d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"body2",className:u.MetaFormatting,children:[(0,i.jsx)(y.A,{...A.A.BEILSTEIN_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)("div",{className:u.MetaFormatting,children:d.value})})]}),v&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"body2",className:u.MetaFormatting,children:[(0,i.jsx)(y.A,{...A.A.SIMILARITY}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsxs)("span",{children:[v,"%"]})})]})]})};var I=t(54034),k=t(40352),R=t(59131),_=t(92881),E=t(36820),P=t(52710);let M=(0,s.A)(e=>({root:{[e.breakpoints.up("md")]:{paddingBottom:e.spacing(6)}},overview:{borderBottom:"solid 1px ".concat(e.palette.grey[400]),padding:e.spacing(4),display:"flex",[e.breakpoints.up("md")]:{borderBottom:"none",padding:e.spacing(6,0)}},flexGrow:{flexGrow:1},thumbnailWrapper:{height:58,width:58,borderRadius:2,border:"solid 1px ".concat(e.palette.grey[500]),backgroundColor:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",marginRight:e.spacing(4),[e.breakpoints.up("md")]:{width:130,height:130,borderRadius:4,marginRight:e.spacing(6)}},thumbnail:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},"@media all and (-ms-high-contrast: none), (-ms-high-contrast: active)":{thumbnail:{maxWidth:124}},name:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(1),[e.breakpoints.up("md")]:{lineHeight:1,fontSize:e.typography.pxToRem(24),marginBottom:e.spacing(3)}},labelForDefinition:{fontWeight:e.typography.fontWeightMedium},synonyms:{[e.breakpoints.up("md")]:{marginBottom:e.spacing(1)}},definition:{[e.breakpoints.up("md")]:{paddingLeft:e.spacing(1)}},product:{display:"block"},breakWord:{wordBreak:"break-word"},hideBelowMd:{[e.breakpoints.down("sm")]:{display:"none"}},verticalLine:{[e.breakpoints.up("lg")]:{borderRight:"1px solid ".concat(e.palette.grey[400]),marginRight:e.spacing(4),paddingRight:e.spacing(4),lineHeight:e.typography.pxToRem(16)}},infoIcon:{transform:"scale(1.2)",color:e.palette.primary.main,height:e.spacing(4),verticalAlign:"bottom",cursor:"pointer"},trustedInfo:{fontSize:e.typography.pxToRem(12),[e.breakpoints.down("md")]:{display:"block"}},sellerInfo:{fontSize:e.typography.pxToRem(12),marginTop:e.spacing(2)},trigger:{height:"100%",width:"100%",display:"block"},triggerText:{marginTop:e.spacing(2)},triggerLink:{color:e.palette.primary.main,fontWeight:900,textDecoration:"none","&:hover":{cursor:"pointer"}},imageText:{marginLeft:e.spacing(1)}})),L=e=>{let{onSubstanceClick:a,substance:t,substancePosition:s}=e,{products:b,id:f,synonyms:j,images:N,linearFormula:T,empiricalFormula:L,legalName:w,__typename:O}=t,D=M(),B=(0,l.rd)(),F=(0,g.h2)({focus:B.query.focus}),W=t.images[0]||{},U=b.map(e=>({...e,images:N})),z=b[0],q=null==z?void 0:z.isMarketplace,H=(null==z?void 0:z.displaySellerName)||(0,g.t1)(null==z?void 0:z.attributes),V=(null==z?void 0:z.marketplaceSellerId)||"",K=q&&!!H&&!!V,G=B.query.catalogType,Q=(0,g.vN)(null!=G?G:F.focus),[$,Y]=(0,o.useMemo)(()=>T?[T,A.A.LINEAR_FORMULA]:L?[L,A.A.EMPIRICAL_FORMULA_HILL_NOTATION]:[null,null],[L,T]),X=(0,r.A)(),J=(0,n.A)(X.breakpoints.up(k.Rp.MD),{defaultMatches:!0})?R.Ay:I.A,Z=b.some(e=>e.features.length>0),ee=b.length,[ea,et]=(0,o.useState)(!1),ei=()=>{et(e=>!e)},en=(null==O?void 0:O.toLowerCase())===p.RL.Substance,[er,el]=(0,o.useState)(!1),eo=e=>{el(!er),er||(0,C.OT)({action:"view image",detail:t.name,component:"body",elementType:e?"image":"link",elementText:e?void 0:"all photos"})};return(0,i.jsxs)("div",{className:D.root,"data-testid":"srp-substance-group",children:[(0,i.jsxs)("div",{id:"product-info",className:D.overview,children:[(0,i.jsx)("div",{children:en?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{id:"srp-image-container",className:D.thumbnailWrapper,children:(0,i.jsx)(d.A,{className:D.trigger,onClick:()=>eo(!0),children:(0,i.jsx)(x.A,{className:D.thumbnail,alt:(null==W?void 0:W.altText)||t.name,src:null==W?void 0:W.mediumUrl,sizes:"58px",urls:[null==W?void 0:W.smallUrl,null==W?void 0:W.mediumUrl,null==W?void 0:W.largeUrl],width:"130",height:"50"})})}),(0,i.jsxs)("div",{className:D.triggerText,children:[(0,i.jsx)("span",{role:"button",className:D.triggerLink,onClick:()=>eo(!1),onKeyPress:()=>eo(!1),tabIndex:0,children:(0,i.jsx)(y.A,{...A.A.ALL_PHOTOS})}),(0,i.jsxs)("span",{className:D.imageText,children:["(",t.images.length,")"]})]})]}):null}),(0,i.jsxs)("div",{className:D.flexGrow,children:[(0,i.jsx)(c.A,{id:"substance-name",component:"h2",className:(0,v.A)(D.name,D.breakWord),children:ee>1?(0,i.jsx)(m.N,{...l.SL.index(f,Q),children:(0,i.jsx)("a",{"aria-hidden":!0,"data-testid":"substance-name-link-".concat(t.name),id:"substance-link",onClick:a,role:"button",children:(0,i.jsx)(h.A,{value:w||t.name})})}):(0,i.jsx)(h.A,{value:w||t.name})}),en&&(null==j?void 0:j.length)>0&&(0,i.jsxs)("div",{className:D.synonyms,children:[(0,i.jsxs)(c.A,{component:"span",variant:"body2",className:D.labelForDefinition,children:[(0,i.jsx)(y.A,{id:"SYNONYM(S)",defaultMessage:"Synonym(s)"}),": "]}),(0,i.jsx)(c.A,{component:"span",variant:"body2",className:D.definition,children:(0,i.jsx)(h.A,{className:D.breakWord,value:j.join(", ")})})]}),(0,i.jsxs)("div",{className:D.hideBelowMd,children:[en&&$&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.A,{component:"span",variant:"body2",className:D.labelForDefinition,children:[(0,i.jsx)(y.A,{...Y}),": "]}),(0,i.jsx)(c.A,{component:"span",variant:"body2",className:D.definition,children:(0,i.jsx)(h.A,{className:D.breakWord,value:$})})]}),(0,i.jsx)(S,{substance:t})]}),K&&(0,i.jsxs)("div",{className:D.sellerInfo,children:[(0,i.jsx)(y.A,{...A.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(m.N,{...l.kJ.index(H,V),children:(0,i.jsx)("a",{children:H})}),(0,i.jsx)("span",{className:D.verticalLine}),(0,i.jsxs)("span",{className:D.trustedInfo,children:[(0,i.jsx)(y.A,{...A.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(u.A,{className:D.infoIcon,onClick:ei}),ea&&(0,i.jsx)(_.A,{open:ea,onCancel:ei})]})]})]})]}),(0,i.jsx)(P.M,{source:"srp - ".concat(F.focus),children:(0,i.jsx)(J,{products:U,displayBadgesOnProduct:Z,focus:F.focus,substanceId:t.id,substanceName:t.name,substancePosition:s,substanceKeyAttributes:t.keyAttributes})}),(0,i.jsx)(E.A,{isOpen:er,onClose:el,images:t.images,name:t.name,productId:z.productNumber})]})}},64673:(e,a,t)=>{t.d(a,{FL:()=>r,Oy:()=>i,ts:()=>n});var i=function(e){return e.LabWater="labwater",e.MilliQSq="milliqsq",e.Milliplex="milliplex",e}({}),n=function(e){return e[e.ConfigurationNameMaxLength=50]="ConfigurationNameMaxLength",e[e.MessageToSpecialistMaxLength=500]="MessageToSpecialistMaxLength",e}({}),r=function(e){return e.Lab_Water_Configurator_Interaction="lab_water_configurator_interaction",e.Product_Info_Interaction="product_info_interaction",e.Modulis_Configurator_Interaction="modulis_configurator_interaction",e}({})},65149:(e,a,t)=>{t.d(a,{W_:()=>d});var i=t(28888);t(37876);var n=t(82897);t(14232);var r=t(54431);function l(){let e=(0,i._)(["\n query CheckPromoEligibility($input: PromoCodeEligibilityRequestInput!) {\n checkPromoEligibility(input: $input) {\n skus {\n sku\n data {\n uuid\n code\n discount\n promoType\n terms {\n promoType\n discount\n qualifyingAmount\n qualifierType\n currency\n }\n hidePromoDetailsForAnonUser\n }\n }\n }\n}\n "]);return l=function(){return e},e}let o={},s=(0,n.J1)(l());function d(e){let a={...o,...e};return r.IT(s,a)}},65264:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(61261),r=t(7645),l=t(54753),o=t(8733),s=t(63752),d=t(8288),c=t(49995);let u=(0,n.A)(e=>({productInfoMessage:{marginTop:e.spacing(2),display:"flex",justifyContent:"center",alignItems:"center",padding:e.spacing(3,0),borderBottom:"2px solid ".concat(e.palette.grey[300]),borderTop:"2px solid ".concat(e.palette.grey[300])}})),p=e=>{let{country:a,brandKey:t,productNumber:n,productMessage:p,className:m}=e,g=u(),h=(0,s.mE)(),x=(0,d.ds)(a),y="PROCUT_ORDER_ON_AVANTI_SITE"===p?"http://avantilipids.com/ ":"PROCUT_ORDER_ON_ROCHE_SITE"===p?"http://sequencing.roche.com":"",A="PROCUT_ORDER_ON_AVANTI_SITE"===p?"avantilipids.com":"PROCUT_ORDER_ON_ROCHE_SITE"===p?"sequencing.roche.com":"";return(0,i.jsx)(r.A,{id:"product-info-message-".concat(t,"-").concat(n),className:(0,c.A)(g.productInfoMessage,m),children:(e=>{switch(e){case"PROCUT_ORDER_ON_AVANTI_SITE":case"PROCUT_ORDER_ON_ROCHE_SITE":return(0,i.jsx)(o.A,{...l.A[p],values:{companyName:h,countryName:x,link:(0,i.jsx)("a",{href:y,target:"_blank",rel:"noreferrer",children:A},"product-info-link-".concat(t,"-").concat(n))},children:e=>(0,i.jsx)("span",{children:e})});default:return(0,i.jsx)(o.A,{...l.A.PRICING_AND_AVAILABILITY_UNAVAILABLE})}})(p)})}},65567:(e,a,t)=>{t.d(a,{A:()=>r});var i=t(37876),n=t(3635);let r=e=>{let{children:a,flag:t,hide:r=!1,variationKey:l}=e,[o]=(0,n.useDecision)(t);return(r?o.variationKey!==l:o.variationKey===l)?(0,i.jsx)(i.Fragment,{children:a}):null}},66201:(e,a,t)=>{t.d(a,{A:()=>h});var i=t(37876),n=t(14232),r=t(61261),l=t(64204),o=t(12197),s=t(30877),d=t(84080),c=t(21457),u=t(98546);let p=(0,r.A)(e=>({root:{padding:e.spacing(5,4)},itemHeader:{display:"flex",flexDirection:"row"},headerWrapper:{textAlign:"left",width:"90%"},buttonWrapper:{display:"flex",width:20,flexGrow:0,"& > svg":{fontSize:e.typography.pxToRem(24)}},content:{padding:e.spacing(3,0,0,0)},toggleButton:{width:"100%",justifyContent:"space-between",display:"flex",alignItems:"flex-start",cursor:"pointer"},descriptionList:{marginBottom:e.spacing(1),"& > * + *":{marginTop:e.spacing(6)}}})),m=e=>{let{data:a,columns:t,accordionTitleColumn:r,accordionSubtitleColumn:m,accordionSecondaryTextColumn:g,headerProps:h,subheaderProps:x,renderFooter:y,onToggle:A,titleIsLink:v}=e,b=(0,n.useMemo)(()=>"accordion-title-".concat((0,u.A)()),[]),f=p(),[j,N]=(0,n.useState)(!1),C=v?"div":l.A;return(0,i.jsxs)("div",{className:f.root,children:[(0,i.jsx)("div",{className:f.itemHeader,children:(0,i.jsxs)(C,{"aria-expanded":v?void 0:j,className:f.toggleButton,onClick:e=>{let a=e.target.closest("a, .".concat(f.toggleButton));(null==a?void 0:a.tagName)!=="A"&&(N(!j),A&&A(!j))},children:[(0,i.jsxs)("div",{className:f.headerWrapper,children:[(0,i.jsx)(o.A,{component:"div",variant:"h2",id:b,...h,children:r.bodyElement(a,!v)}),m&&(0,i.jsx)(o.A,{component:"div",variant:"body2",...x,children:m.bodyElement(a,!0)}),g&&(0,i.jsx)(o.A,{component:"div",variant:"body2",...x,children:g.bodyElement(a,!0)})]}),(()=>{let e=j?(0,i.jsx)(d.A,{}):(0,i.jsx)(c.A,{});return v?(0,i.jsx)(l.A,{className:f.buttonWrapper,"aria-expanded":j,"aria-labelledby":b,children:e}):(0,i.jsx)("div",{className:f.buttonWrapper,children:e})})()]})}),(0,i.jsx)(s.A,{in:j,children:(0,i.jsxs)("div",{className:f.content,children:[(0,i.jsx)("dl",{className:f.descriptionList,children:t.map((e,t)=>{let n=e.headElement,l=!!v&&e===r,s=e.bodyElement(a,l);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(o.A,{component:"dt",variant:"caption",children:[n||e.headElement,e.headElementEndIcon]}),(0,i.jsx)(o.A,{component:"dd",variant:"body1",children:s})]},t)})}),y&&y(a,j)]})})]})},g=(0,r.A)(e=>({root:{margin:0,padding:0,position:"relative",overflow:"hidden",[e.breakpoints.up("md")]:{display:"none"}},resultsWrapper:{listStyle:"none",backgroundColor:e.palette.common.white,"&:first-child > div":{borderTop:"solid 1px ".concat(e.palette.grey[400])}},data:{borderBottom:"solid 1px ".concat(e.palette.grey[400])},noResults:{padding:e.spacing(6,4)}})),h=e=>{let{data:a,noResultsComponent:t,columns:n,accordionTitleColumn:r,accordionSubtitleColumn:l,accordionSecondaryTextColumn:o,itemProps:s}=e,d=g();return(0,i.jsx)("ul",{className:d.root,children:(null==a?void 0:a.length)>0?a.map((e,a)=>(0,i.jsx)("li",{className:d.resultsWrapper,children:(0,i.jsx)("div",{className:d.data,children:(0,i.jsx)(m,{data:e,columns:n,accordionTitleColumn:r,accordionSubtitleColumn:l,accordionSecondaryTextColumn:o,...s})},a)},a)):(0,i.jsx)("div",{className:d.noResults,children:t})})}},67334:(e,a,t)=>{t.d(a,{A:()=>d});var i=t(37876),n=t(61261),r=t(14232),l=t(43343),o=t(49995);let s=(0,n.A)(()=>({container:{height:"100%",overflow:"hidden"},imageWrapper:{alignItems:"center",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"auto 100%",cursor:e=>e.cursor,display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",overflow:"hidden",transform:e=>e.transform,transformOrigin:e=>e.transformOrigin,transition:"transform 0.3s ease-out"},zoomableImage:{maxHeight:"100%",maxWidth:"100%",willChange:"transform",width:"100%",height:"auto"}})),d=e=>{let{image:a,customContainerStyles:t,customMouseOut:n,zoomStateChange:d}=e,[c,u]=(0,r.useState)(!1),[p,m]=(0,r.useState)(50),[g,h]=(0,r.useState)(50),x=(0,r.useRef)(null),y=s({cursor:"".concat(c?"zoom-out":"zoom-in"),transform:"scale(".concat(c?"2.5":"1",")"),transformOrigin:"".concat(p,"% ").concat(g,"%")}),A=()=>{u(!c),m(50),h(50),d&&d(!c)};return(0,i.jsx)("div",{className:(0,o.A)(y.container,t),onBlur:()=>u(!1),onMouseOut:()=>n||u(!1),onMouseMove:e=>{var a;if(!c)return;let{left:t,top:i,width:n,height:r}=null==x?void 0:null===(a=x.current)||void 0===a?void 0:a.getBoundingClientRect();m((e.pageX-t)/n*100),h((e.pageY-i)/r*100)},children:(0,i.jsx)("div",{ref:x,className:y.imageWrapper,onClick:A,onKeyDown:A,role:"button",tabIndex:0,"aria-label":"zoom",children:(0,i.jsx)(l.A,{className:y.zoomableImage,alt:null==a?void 0:a.altText,src:null==a?void 0:a.largeUrl,sizes:"(min-width:960px) 716px, calc(100vw - 100px)",urls:[null==a?void 0:a.smallUrl,null==a?void 0:a.mediumUrl,null==a?void 0:a.largeUrl]})})})}},68215:(e,a,t)=>{t.d(a,{t:()=>n});var i=t(930);let n=(e,a,t,n,r,l)=>{let o=e.currentSlide,s=e.slidesToScroll,d=e.slidesToShow,c=0,u=d;"next"===t&&(u=(c=o+s)+d,e.nextSlide()),"prev"===t&&(u=(c=o-s)+d,e.previousSlide());let p=a.slice(c,u).map((e,a)=>({...e,analyticsPosition:c+a+1}));(0,i.W)({creativeSlot:n,pageType:r,pageTypeDetails:l,products:p})}},68351:(e,a,t)=>{t.d(a,{A:()=>s});var i=t(37876),n=t(24315),r=t(61261),l=t(49995);t(14232);let o=(0,r.A)(e=>({chipDisplay:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold,[e.breakpoints.up("md")]:{fontWeight:e.typography.fontWeightRegular}},chip:{margin:e.spacing(0,1,4),"&:first-child":{marginLeft:e.spacing(0)}},chip_selected:{color:e.palette.primary.main,backgroundColor:e.palette.primary.light},chip_unavailable:{color:e.palette.common.black,borderColor:e.palette.grey[300],backgroundColor:e.palette.grey[200]},chip_selected_unavailable:{borderColor:e.palette.primary.main}})),s=e=>{let{items:a,selectedChip:t,unavailableChips:r,onSelect:s,id:d}=e,c=o();return(0,i.jsx)("div",{className:c.chipDisplay,id:d,children:a.map((e,a)=>{let{label:o,value:d}=e,u=d===t,p=null==r?void 0:r.includes(d);return(0,i.jsx)(n.A,{label:o,variant:"outlined",color:u?"primary":"default",clickable:!0,onClick:()=>s(d),className:(0,l.A)(c.chip,{[c.chip_selected]:u,[c.chip_unavailable]:p,[c.chip_selected_unavailable]:u&&p})},"".concat(a,"-").concat(o,"-").concat(d))})})}},70183:(e,a,t)=>{t.d(a,{A:()=>l});var i=t(37876),n=t(14232),r=t(71007);let l=e=>{var a;let{videoUrl:t,posterUrl:l,css:o,name:s,brand:d,productId:c,autoPlay:u}=e,p=(0,n.useRef)(null),[m,g]=(0,n.useState)(0),[h,x]=(0,n.useState)(!1),y=Math.round((null===(a=p.current)||void 0===a?void 0:a.duration)||0),A=Math.round(m/y*100)||0,v=e=>{e.forEach(e=>{if(e.isIntersecting)x(!0);else{var a;x(!1),null===(a=p.current)||void 0===a||a.pause()}})},b=e=>{(0,r.KH)({action:e,videoCurrentTime:m,videoDuration:y,videoPercent:A,videoUrl:t,visible:h,productId:c,productName:s,productBrand:d})};return(0,n.useEffect)(()=>{(25===A||50===A||75===A)&&b("progress"),100===A&&b("complete")},[A]),(0,n.useEffect)(()=>{let e=new IntersectionObserver(v,{root:null,rootMargin:"0px",threshold:0});p.current&&e.observe(p.current);let a=()=>{if(document.hidden){var e;null===(e=p.current)||void 0===e||e.pause()}};return document.addEventListener("visibilitychange",a),()=>{p.current&&e.unobserve(p.current),document.removeEventListener("visibilitychange",a)}},[p]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("video",{className:o,ref:p,controls:!0,autoPlay:!!u,preload:"metadata",poster:l,onTimeUpdate:()=>{var e;return g(Math.round((null===(e=p.current)||void 0===e?void 0:e.currentTime)||0))},onPlay:()=>b("start"),onPause:()=>100!==A&&b("pause"),children:(0,i.jsx)("source",{src:t,type:"video/mp4"})})})}},70210:(e,a,t)=>{t.d(a,{A:()=>eB});var i=t(37876),n=t(14232),r=t(34415),l=t(8733),o=t(61261),s=t(42778),d=t(28975),c=t(71541),u=t(12197),p=t(36503),m=t(5411),g=t(35967),h=t(35877),x=t(61206),y=t(77660),A=t(68351),v=t(28888),b=t(82897),f=t(78248);function j(){let e=(0,v._)(["\n fragment MaterialAvailabilityDetail on MaterialAvailability {\n key\n quantity\n date\n plantLoc\n}\n "]);return j=function(){return e},e}function N(){let e=(0,v._)(["\n fragment PromotionalBundleItemPricingDetail on PromotionalBundleItemPricing {\n materialNumber\n materialName\n materialDescription\n materialId\n brand\n brandKey\n quantity\n discount\n listPrice\n yourPrice\n currency\n availabilityMessages {\n ...MaterialAvailabilityDetail\n }\n}\n ",""]);return N=function(){return e},e}function C(){let e=(0,v._)(["\n fragment PromotionalBundlePricingDetail on PromotionalBundlePricing {\n promotionalBundleId\n listPrice\n yourPrice\n currency\n bundleItems {\n ...PromotionalBundleItemPricingDetail\n }\n}\n ",""]);return C=function(){return e},e}function T(){let e=(0,v._)(["\n query PromotionalBundlesPricing($promotionalBundleId: String!) {\n getPricingForPromotionalBundle(\n input: {promotionalBundleId: $promotionalBundleId}\n ) {\n ...PromotionalBundlePricingDetail\n }\n}\n ",""]);return T=function(){return e},e}let S={},I=(0,b.J1)(j()),k=(0,b.J1)(N(),I),R=(0,b.J1)(C(),k),_=(0,b.J1)(T(),R);var E=t(68748),P=t(21347),M=t(10181),L=t(96241),w=t(67241),O=t(70377),D=t(41683),B=t(57377),F=t(71549),W=t(34341),U=t(54753),z=t(52710);let q=e=>({currency:e.currency,listPriceCurrency:e.currency,listPrice:e.listPrice,price:e.yourPrice}),H=(0,o.A)(e=>({table:{"& td":{"&:nth-child(3)":{textAlign:"center"},fontSize:14,paddingLeft:0},"& th":{"&:nth-child(3)":{textAlign:"center"},paddingLeft:0}},tableContainer:{boxShadow:"none",maxHeight:150},headerLabel:{display:"flex",alignItems:"center"},labelName:{marginRight:e.spacing(2)},materialNumber:{},materialDescription:{width:"30%"},tableTitle:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},header:{fontSize:12,fontWeight:900}})),V=e=>{var a;let{promoBundlePricingData:t}=e,n=H();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{className:n.tableTitle,children:(0,i.jsx)(l.A,{...U.A.PROMO_BUNDLE_TABLE_TITLE,values:{count:null==t?void 0:t.bundleItems.length}})}),(0,i.jsx)(M.A,{className:n.tableContainer,component:L.A,children:(0,i.jsxs)(w.A,{size:"small",stickyHeader:!0,className:n.table,children:[(0,i.jsx)("col",{style:{width:"20%"}}),(0,i.jsx)("col",{style:{width:"15%"}}),(0,i.jsx)("col",{style:{width:"15%"}}),(0,i.jsx)("col",{style:{width:"50%"}}),(0,i.jsx)(O.A,{children:(0,i.jsxs)(D.A,{children:[(0,i.jsx)(B.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT})}),(0,i.jsx)(B.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT_NAME})}),(0,i.jsx)(B.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_QUANTITY})}),(0,i.jsx)(B.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_AVAILABILITY})})]})}),(0,i.jsx)(F.A,{children:null==t?void 0:null===(a=t.bundleItems)||void 0===a?void 0:a.map((e,a)=>{var t,r;return(0,i.jsx)(z.M,{source:"promo bundle modal",item:null==e?void 0:e.materialNumber,brand:(null==e?void 0:e.brandKey)||void 0,pricing:q(e),waitUntilVisible:!0,children:(0,i.jsxs)(D.A,{children:[(0,i.jsx)(B.A,{className:n.materialNumber,children:e.materialNumber}),(0,i.jsx)(B.A,{className:n.materialDescription,children:(0,i.jsx)(x.A,{value:e.materialName})}),(0,i.jsx)(B.A,{children:e.quantity}),(0,i.jsx)(B.A,{children:(null==e?void 0:null===(t=e.availabilityMessages)||void 0===t?void 0:t.length)?(0,i.jsx)(W.A,{availabilities:null==e?void 0:null===(r=e.availabilityMessages)||void 0===r?void 0:r.map(e=>({key:e&&e.key,date:e&&e.date,plantLoc:e&&e.plantLoc,quantity:e&&e.quantity}))}):null})]},a)},a)})})]})})]})};var K=t(30510),G=t(36382),Q=t(38582),$=t(11788),Y=t(99486),X=t(49995),J=t(66201),Z=t(77742),ee=t(78206),ea=t(8335),et=t(99549),ei=t(15329),en=t(57869),er=t(20573),el=t(30373),eo=t(59587),es=t(79280),ed=t(37290),ec=t(1049),eu=t(75878),ep=t(4641),em=t(64177);function eg(){let e=(0,v._)(["\n mutation CreateCustomPromotionalBundle($input: CustomPromotionalBundleInput!) {\n createCustomPromotionalBundle(input: $input)\n}\n "]);return eg=function(){return e},e}let eh={},ex=(0,b.J1)(eg()),ey=(0,o.A)(e=>({dialogTitle:{backgroundColor:e.palette.background.grey},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.secondary.light},dialogActionsRoot:{padding:"8px 24px"},submitButton:{minWidth:"182px",marginLeft:e.spacing(4)},cancelButton:{color:e.palette.grey[600],borderWidth:"2px",minWidth:"120px"},errorMessage:{color:e.palette.error.main,fontSize:e.typography.pxToRem(12),padding:e.spacing(0,3)},dialogWidth:{maxWidth:e.typography.pxToRem(660)}})),eA={materialNumber:"",quantity:1},ev={bundleDescription:"",bundleItems:[eA,eA,eA,eA,eA]},eb=e=>e.filter(e=>{let{materialNumber:a}=e;return a}),ef=e=>{let{setCreateCustomBundleModal:a,setShowModal:t}=e,r=ey(),{formatMessage:l}=(0,Z.A)(),{setGlobalSnackbarState:o}=(0,Q.W)(),[s,d]=(0,n.useState)(!1),[c,{loading:u}]=function(e){let a={...eh};return em.n(ex,a)}(),g=async e=>{let{bundleDescription:i,bundleItems:n}=e,r={bundleDescription:i,bundleItems:eb(n)};await c({variables:{input:r}}),o({open:!0,message:l(U.A.CUSTOM_BUNDLE_REQUEST_SUCCESS),variant:Q.m$.Success}),a(!1),t(!1)};return(0,i.jsx)(ee.l1,{initialValues:ev,onSubmit:g,validate:e=>eb(e.bundleItems).length<2?{bundleItems:l(U.A.CUSTOM_BUNDLE_ITEMS_ERROR)}:{},children:e=>{let{values:n,submitForm:o,errors:c}=e;return(0,i.jsxs)(ea.A,{classes:{paperWidthSm:r.dialogWidth},fullWidth:!0,open:!0,children:[(0,i.jsxs)(et.A,{className:r.dialogTitle,children:[l(U.A.CREATE_CUSTOM_BUNDLE),(0,i.jsx)(ei.A,{className:r.closeButton,disabled:u,onClick:()=>d(!0),children:(0,i.jsx)(eo.default,{fontSize:"large",onClick:()=>t(!1)})})]}),(0,i.jsx)(en.A,{children:(0,i.jsx)(ee.lV,{children:(0,i.jsxs)(p.A,{container:!0,spacing:6,children:[(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(er.A,{children:l(U.A.CUSTOM_BUNDLE_EXPLANATION)})}),(0,i.jsx)(p.A,{item:!0,xs:12,style:c.bundleItems?void 0:{marginBottom:"17px"},children:(0,i.jsx)(ee.D0,{label:l(U.A.CUSTOM_BUNDLE_DESCRIPTION),name:"bundleDescription",filled:!0,multiline:!0,component:ed.A,disabled:u})}),(0,i.jsx)(ee.Kw,{name:"bundleItems",children:e=>(0,i.jsx)("div",{className:r.errorMessage,children:e})}),(0,i.jsx)(ee.ED,{name:"bundleItems",children:e=>{let{push:a}=e;return(0,i.jsxs)(i.Fragment,{children:[n.bundleItems.map((e,a)=>(0,i.jsxs)(p.A,{item:!0,container:!0,spacing:2,children:[(0,i.jsx)(p.A,{item:!0,xs:10,children:(0,i.jsx)(ee.D0,{name:"bundleItems[".concat(a,"].materialNumber"),label:0===a&&l(U.A.SKU_PLUS_PACK_SIZE),component:ec.A,placeholder:l(U.A.ENTER_SKU_PLACEHOLDER),disabled:u,filled:!0})}),(0,i.jsx)(p.A,{item:!0,xs:2,children:(0,i.jsx)(ee.D0,{name:"bundleItems[".concat(a,"].quantity"),label:0===a&&l(U.A.QUANTITY),component:eu.A,min:1,max:999,disabled:u,filled:!0})})]},a)),(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(m.A,{color:"secondary",startIcon:(0,i.jsx)(es.A,{fontSize:"large"}),onClick:()=>a(eA),children:l(U.A.ADD_ROW)})})]})}})]})})}),(0,i.jsxs)(el.A,{disableSpacing:!0,classes:{root:r.dialogActionsRoot},children:[(0,i.jsx)(m.A,{className:r.cancelButton,variant:"outlined",onClick:()=>d(!0),children:l(U.A.CANCEL)}),(0,i.jsx)(ep.A,{open:s,description:l(U.A.CANCEL_CART_CONFIRM_TEXT),cancelText:l(U.A.CANCEL_CART_NO),confirmText:l(U.A.CANCEL_CART_YES),onCancel:()=>d(!1),onConfirm:()=>a(!1)}),(0,i.jsx)(m.A,{className:r.submitButton,color:"primary",variant:"contained",onClick:()=>o(),disabled:u,children:l(U.A.SUBMIT)})]})]})}})};var ej=t(86680),eN=t(88700);let eC=(0,o.A)(e=>({description:{fontSize:e.typography.pxToRem(14),marginTop:e.spacing(1)},materialNumber:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold},liquidQtyInputContainer:{width:"100%",[e.breakpoints.up("md")]:{maxWidth:112}},actionContainer:{display:"flex",justifyContent:"flex-start",margin:e.spacing(4,0,5,0),[e.breakpoints.down("sm")]:{flexDirection:"column",margin:e.spacing(4,0,0,0)}},listPrice:{fontSize:e.typography.pxToRem(14)},yourPrice:{fontWeight:e.typography.fontWeightBold,fontSize:e.typography.pxToRem(18)},strikeThrough:{textDecoration:"line-through",fontWeight:e.typography.fontWeightRegular},loadingContainer:{display:"flex",alignItems:"center",height:200},pricingContainer:{margin:e.spacing(4,0,4,0),flexDirection:"column"},priceTag:{marginLeft:e.spacing(1),fontWeight:e.typography.fontWeightRegular,fontSize:e.typography.pxToRem(14)},tableTitle:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),padding:e.spacing(0,4,4,4)},errorMessageWrapper:{},errorMessage:{color:e.palette.error.main,fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightRegular,marginBottom:e.spacing(4)}})),eT=(e,a)=>{var t;if(!(null==e?void 0:e.bundleItems)||!(null==a?void 0:null===(t=a.getPricingForPromotionalBundle)||void 0===t?void 0:t.bundleItems))return[];let i=new Map(a.getPricingForPromotionalBundle.bundleItems.map(e=>{var a;return[e.materialNumber.toLowerCase(),null===(a=e.availabilityMessages)||void 0===a?void 0:a[0]]}));return e.bundleItems.map(e=>({...e,availability:i.get(e.materialNumber.toLowerCase())}))},eS=e=>{let{onClose:a,bundleData:t,productName:r,materialNumber:o,setShowModal:v}=e,b=eC(),j=(0,h.A)(),{getSitePreference:N,userIsLoggedIn:C}=(0,$.iZ)(),{authorized:T}=(0,Y.I)(Y.N.canAddToCart),{setGlobalSnackbarState:I}=(0,Q.W)(),k=(0,G.g9)(),[R,M]=(0,n.useState)({}),[L,w]=(0,n.useState)(1),O=(0,c.A)(j.breakpoints.up("md")),{setGlobalModalComponent:D,clearGlobalModalComponent:B}=(0,s.g)(),F=N($.VD.HideAddToCartForPrepackItems),[U,{data:H,loading:Z}]=function(e){let a={...S};return f._(_,a)}(),ee=null==H?void 0:H.getPricingForPromotionalBundle,ea=(null==ee?void 0:ee.listPrice)&&(null==ee?void 0:ee.yourPrice)&&(null==ee?void 0:ee.yourPrice)<(null==ee?void 0:ee.listPrice)||!(null==ee?void 0:ee.listPrice)&&(null==ee?void 0:ee.yourPrice),et={variables:{promotionalBundleId:R.promotionalBundleId},ssr:!1},ei=(0,i.jsx)(l.A,{id:"NO_RESULTS_FOUND",defaultMessage:"No results found"}),en=(0,i.jsx)(x.A,{value:r}),er=[{headElement:(0,i.jsx)(l.A,{id:"PROMO_PRODUCT",defaultMessage:"Product"}),bodyElement:e=>e.materialNumber},{headElement:(0,i.jsx)(l.A,{id:"PROMO_PRODUCT_NAME",defaultMessage:"Name"}),bodyElement:e=>(0,i.jsx)(x.A,{value:e.materialDescription})},{headElement:(0,i.jsx)(l.A,{id:"PROMO_QUANTITY",defaultMessage:"Qty per Bundle"}),bodyElement:e=>e.quantity},{headElement:(0,i.jsx)(l.A,{id:"PROMO_AVAILABILITY",defaultMessage:"Availability"}),bodyElement:e=>{var a,t;return(null===(a=e.availabilityMessages)||void 0===a?void 0:a.length)?(0,i.jsx)(z.M,{source:"promo bundle modal",brand:(null==e?void 0:e.brandKey)||void 0,item:null==e?void 0:e.materialNumber,pricing:q(e),waitUntilVisible:!0,children:(0,i.jsx)(W.A,{availabilities:null==e?void 0:null===(t=e.availabilityMessages)||void 0===t?void 0:t.map(e=>({key:e&&e.key,date:e&&e.date,plantLoc:e&&e.plantLoc,quantity:e&&e.quantity}))})}):null}}],[el,eo]=er;(0,n.useEffect)(()=>{t.length>0&&M(t[0])},[t]),(0,n.useEffect)(()=>{R.promotionalBundleId&&U(et)},[R.promotionalBundleId]);let es=async()=>{var e,t;let n=eT(R,H);a("addedToCart"),(0,ej.p8)(n,null!==(t=null==H?void 0:null===(e=H.getPricingForPromotionalBundle)||void 0===e?void 0:e.bundleItems)&&void 0!==t?t:[],eN.k9.PromoBundle,void 0,void 0,void 0,{bundleId:R.bundleId,quantity:L});try{await k([{materialNumber:R.bundleId,quantity:L,materialDescription:R.bundleDescription,materialName:R.bundleName,type:y.iC.PromotionalBundle}])}catch(e){I({open:!0,message:(0,i.jsx)(l.A,{id:"GENERIC_ERROR",defaultMessage:"Sorry, an unexpected error has occurred"}),variant:Q.m$.Error})}};return(0,i.jsx)(d.Ay,{open:!0,onClose:(e,t)=>a(t),size:d.Ih.Large,renderTitle:()=>(0,i.jsx)(u.A,{variant:"h2",children:(0,i.jsx)(l.A,{id:"PROMO_BUNDLE_TITLE",defaultMessage:"Bundles Featuring {material}",values:{material:en}})}),children:(0,i.jsxs)("div",{children:[(0,i.jsxs)(d.Uh,{children:[(0,i.jsx)(A.A,{items:t.map(e=>{let{bundleId:a,promotionalBundleId:t}=e;return{label:a,value:t}}),selectedChip:R.promotionalBundleId,onSelect:e=>{let a=t.find(a=>{let{promotionalBundleId:t}=a;return t===e});a&&M(a)}}),(0,i.jsx)(u.A,{variant:"body1",className:b.materialNumber,children:(0,i.jsx)(x.A,{value:"".concat(R.bundleId," - ").concat(R.bundleName)})}),(0,i.jsx)(u.A,{className:b.description,children:(0,i.jsx)(x.A,{value:R.bundleDescription})}),(0,i.jsx)(p.A,{container:!0,className:b.pricingContainer,children:Z?(0,i.jsx)("div",{className:b.loadingContainer,children:(0,i.jsx)(K.T,{})}):(0,i.jsxs)(i.Fragment,{children:[(null==ee?void 0:ee.currency)&&(ee.listPrice||ee.yourPrice)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:b.yourPrice,children:[ee.yourPrice&&ea&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.Gr,{style:"currency",currencyDisplay:"symbol",currency:null==ee?void 0:ee.currency,value:null==ee?void 0:ee.yourPrice}),(0,i.jsx)("span",{className:b.priceTag,children:(0,i.jsx)(l.A,{id:"KIT_PRICE",defaultMessage:"Bundle Price"})})]}),ee.listPrice?(0,i.jsx)("div",{className:(0,X.A)(b.listPrice,{[b.strikeThrough]:ea}),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.Gr,{style:"currency",currencyDisplay:"symbol",currency:null==ee?void 0:ee.currency,value:null==ee?void 0:ee.listPrice}),(0,i.jsx)("span",{className:b.priceTag,children:ea?(0,i.jsx)(l.A,{id:"LIST_PRICE",defaultMessage:"List Price"}):(0,i.jsx)(l.A,{id:"KIT_PRICE",defaultMessage:"Bundle Price"})})]})}):null]}),(0,i.jsx)(d.fW,{className:b.actionContainer,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:b.liquidQtyInputContainer,children:(0,i.jsx)(E.A,{value:L,min:1,onChange:e=>{w(e)}})}),(0,i.jsx)("div",{children:(0,i.jsx)(P.Ay,{dirty:!0,isSubmitting:!1,canAddToCart:T,hideAddToCartForPrepackItems:F,handleAddToCart:es,fullWidth:!0})})]})})]}):(0,i.jsx)(u.A,{className:b.errorMessage,children:(0,i.jsx)(l.A,{id:"BUNDLE_UNAVAILABLE",defaultMessage:"Sorry! This Promotional Bundle might not be available in your country."})}),ee&&O?(0,i.jsx)(V,{promoBundlePricingData:ee}):null]})}),C&&(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(m.A,{style:{paddingLeft:0},onClick:()=>{D((0,i.jsx)(ef,{setCreateCustomBundleModal:B,materialNumber:o,bundleData:t,setShowModal:v}))},children:(0,i.jsx)(l.A,{id:"NEED_MORE_BUNDLE_BUTTON_TEXT",defaultMessage:"Need more bundle options?"})})})]}),O?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{className:b.tableTitle,children:(0,i.jsx)(l.A,{id:"PROMO_BUNDLE_TABLE_TITLE",defaultMessage:"THIS {count}-ITEM BUNDLE INCLUDES:",values:{count:null==ee?void 0:ee.bundleItems.length}})}),(0,i.jsx)(J.A,{data:(null==ee?void 0:ee.bundleItems)||[],columns:er,noResultsComponent:ei,accordionTitleColumn:el,accordionSubtitleColumn:eo,itemProps:{headerProps:{variant:"h3"}}})]})]})})};var eI=t(89099),ek=t(97710);function eR(){let e=(0,v._)(["\n fragment BundleItems on PromotionalBundleItem {\n materialNumber\n materialIds\n quantity\n discount\n showOnPdp\n}\n "]);return eR=function(){return e},e}function e_(){let e=(0,v._)(["\n fragment PromotionalBundleDetail on PromotionalBundle {\n promotionalBundleId\n bundleId\n bundleName\n bundleDescription\n createdBy\n createdDate\n lastUpdatedBy\n lastUpdatedDate\n bundleStartDate\n bundleEndDate\n noOfItems\n countries\n bundleItems {\n ...BundleItems\n }\n status\n}\n ",""]);return e_=function(){return e},e}function eE(){let e=(0,v._)(["\n query PromotionalBundles($brand: String!, $productNumber: String!, $catalogType: CatalogType, $orgId: String, $materialIds: [String!], $erp_type: [String!]) {\n getPromotionalBundlesForProduct(\n input: {brand: $brand, productNumber: $productNumber, catalogType: $catalogType, orgId: $orgId, materialIds: $materialIds, erp_type: $erp_type}\n ) {\n ...PromotionalBundleDetail\n }\n}\n ",""]);return eE=function(){return e},e}let eP={},eM=(0,b.J1)(eR()),eL=(0,b.J1)(e_(),eM),ew=(0,b.J1)(eE(),eL);var eO=t(20534);let eD=(0,o.A)(e=>({promoButton:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,paddingLeft:e.spacing(.5),cursor:"pointer",[e.breakpoints.down("sm")]:{paddingTop:e.spacing(0)}}})),eB=e=>{var a;let{materialNumber:t,brand:o,productName:d,erp_type:c}=e,u=eD(),{setGlobalModalComponent:p,clearGlobalModalComponent:m}=(0,s.g)(),g=(0,eI.useRouter)(),{getSitePreference:h,isBlueErpIntegrationEnabled:x}=(0,$.iZ)(),{focus:y="",catalog:A=""}=g.query||{},v=(0,ek.vN)(y||A),b=h($.VD.CatalogFilter)||null,j=x&&c&&(null==c?void 0:c.length)>0,[N,C]=(0,n.useState)(!1),T={variables:{brand:null!=o?o:(null==g?void 0:null===(a=g.query)||void 0===a?void 0:a.brand)||"",productNumber:t,materialIds:[t],catalogType:v,orgId:b,...j&&{erp_type:c}}},[S,{data:I,loading:k}]=function(e){let a={...eP};return f._(ew,a)}(),R=()=>{C(!1),m()};return(0,n.useEffect)(()=>{var e;(null==I?void 0:null===(e=I.getPromotionalBundlesForProduct)||void 0===e?void 0:e.length)&&N&&p((0,i.jsx)(eS,{onClose:()=>R(),loading:k,bundleData:I.getPromotionalBundlesForProduct,productName:d,materialNumber:t,setShowModal:C}))},[I,N]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{component:"div",className:u.promoButton,onClick:()=>{C(!0),S(T)},"data-testid":"promo-bundle-button",children:(0,i.jsx)(l.A,{id:"AVAILABLE_IN_KIT_AT_DISCOUNTED_PRICE",defaultMessage:"Buy in a Bundle"})}),k&&(0,i.jsx)(eO.A,{})]})}},71662:(e,a,t)=>{t.d(a,{A:()=>W});var i=t(37876),n=t(14232),r=t(36258),l=t(61261),o=t(49995),s=t(82440),d=t.n(s),c=t(64204),u=t(12197),p=t(92189),m=t(23575),g=t(45496),h=t(77328),x=t.n(h),y=t(71541),A=t(34415),v=t(36503),b=t(5411),f=t(35877),j=t(11148),N=t(52413),C=t(61206),T=t(930),S=t(8733),I=t(54753),k=t(80491),R=t(56584),_=t(65824),E=t(97710),P=t(50524);let M=(0,l.A)(e=>({mainContent:{display:"flex",marginBottom:e.spacing(3)},mainContentImage:{height:110,width:110,flexShrink:0,borderRadius:e.shape.borderRadius,border:"1px solid ".concat(e.palette.grey[400]),textAlign:"center",backgroundColor:e.palette.common.white},image:{position:"relative",top:"50%",transform:"translateY(-50%)",maxHeight:"100%",maxWidth:"100%",width:"auto",height:"auto"},mainContentText:{width:"100%",display:"flex",flexDirection:"column",marginLeft:e.spacing(4)},productNumber:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold,textTransform:"uppercase",fontSize:e.typography.pxToRem(14),lineHeight:1},productName:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightMedium,lineHeight:1.5},productDescription:{fontSize:e.typography.pxToRem(14)},productBrand:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,lineHeight:1.25,marginBottom:e.spacing(2),color:e.palette.rich.red},linkContainer:{marginTop:e.spacing(3)},link:{cursor:"pointer"},compareButton:{marginTop:e.spacing(3)},checkbox:{paddingLeft:e.spacing(3)}})),L=e=>{var a,t,r,l,s;let{product:d,testId:c,preloadCardImages:p=!1,className:m,mainProduct:g,index:h,type:L}=e,w=M(),O=(0,j.rd)(),[D]=(0,R.useSearchQuery)(),B=(0,f.A)(),F=(0,y.A)(B.breakpoints.up("md")),{addCompareProduct:W,removeCompareProduct:U,sendToProductCompareDetail:z,compareProducts:q}=(0,k.Zn)(),H=(null==O?void 0:null===(a=O.query)||void 0===a?void 0:a.catalog)||"",V=(0,E.vN)(H),K=(0,n.useCallback)((e,a)=>!!q.find(t=>t.productKey===e&&t.brandKey===a&&t.catalogType===V),[q]),G=(0,n.useMemo)(()=>{var e;return K(null!==(e=null==g?void 0:g.productKey)&&void 0!==e?e:"",null==g?void 0:g.brandKey)},[K,g]),Q=!(null==d?void 0:null===(t=d.productNumber)||void 0===t?void 0:t.startsWith("CB_")),$="product-card-".concat(null==d?void 0:d.productNumber).concat(null==d?void 0:null===(r=d.brand)||void 0===r?void 0:r.key,"-").concat(c),Y=O.asPath.includes("/product"),X=(0,P.Gd)(),J="".concat(L," - ").concat(X),Z=G&&q.length>1&&q.length<=4;return(0,n.useEffect)(()=>{if(Y&&!G){var e,a;W({productKey:null!==(e=null==g?void 0:g.productKey)&&void 0!==e?e:"",brandKey:null!==(a=null==g?void 0:g.brandKey)&&void 0!==a?a:"",images:null==g?void 0:g.images,catalogType:V})}},[G]),(0,i.jsxs)("div",{className:(0,o.A)(m,"promotions-slider-div"),children:[p&&(0,i.jsx)(x(),{children:(0,i.jsx)("link",{rel:"preload",href:d.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(N.N,{...j.aR.index(null==d?void 0:d.brand.key,null==d?void 0:d.productNumber,{catalog:H}),children:(0,i.jsx)("a",{"data-testid":$,id:$,role:"link",tabIndex:0,onKeyDown:()=>(0,T.e)({product:d,indexPosition:h,creativeSlot:J,pageType:X}),onClick:()=>(0,T.e)({product:d,indexPosition:h,creativeSlot:J,pageType:X}),children:(0,i.jsxs)("div",{className:w.mainContent,children:[(0,i.jsx)("div",{className:w.mainContentImage,children:(0,i.jsx)("img",{className:w.image,src:d.images[0].mediumUrl,alt:d.images[0].altText||d.description||d.name,width:"112",height:"50"})}),(0,i.jsxs)("div",{className:w.mainContentText,children:[(0,i.jsx)(u.A,{className:w.productBrand,children:d.brand.name}),Q&&(0,i.jsx)(u.A,{className:w.productNumber,children:null==d?void 0:d.productNumber}),(0,i.jsx)(u.A,{className:w.productName,children:(0,i.jsx)(C.A,{value:d.name})}),(0,i.jsx)(u.A,{className:w.productDescription,children:(0,i.jsx)(C.A,{value:d.description})})]})]})})}),(null==g?void 0:g.showViewDetailsLink)||Y?(0,i.jsx)(N.N,{...j.aR.index(null==d?void 0:null===(l=d.brand)||void 0===l?void 0:l.key,null==d?void 0:d.productNumber),children:(0,i.jsx)(A.A,{className:w.link,children:(0,i.jsx)(S.A,{...I.A.VIEW_PRODUCT_DETAILS})})}):null,F?(0,i.jsxs)(v.A,{container:!0,children:[(0,i.jsx)(v.A,{item:!0,xs:12,children:(0,i.jsx)(_.A,{className:w.checkbox,checked:K(null==d?void 0:d.productNumber,null==d?void 0:null===(s=d.brand)||void 0===s?void 0:s.key),onChange:e=>{let{checked:a}=e.target,t={productKey:null==d?void 0:d.productNumber,brandKey:d.brand.key,images:d.images,catalogType:V};a?W(t):U(t)},label:(0,i.jsx)(u.A,{variant:"body2",component:"span",children:(0,i.jsx)(S.A,{...I.A.COMPARE_WITH_DISCONTINUED_PRODUCT})})})}),(0,i.jsxs)(b.A,{variant:"contained",color:"primary",className:w.compareButton,onClick:()=>z(D,O),disabled:!Z,children:[(0,i.jsx)(S.A,{id:"COMPARE_SELECTED",defaultMessage:"Compare Selected"}),q.length>0&&" (".concat(q.length,")")]})]}):null]})};var w=t(40352),O=t(68215),D=t(40002);let B=(0,l.A)(e=>({withoutControls:{padding:0},content:{paddingTop:e.spacing(8),paddingBottom:e.spacing(8),"& .slider-frame":{border:"2px solid transparent","&:focus-visible":{border:"2px solid ".concat(e.palette.primary.main),borderRadius:e.shape.borderRadius}},[e.breakpoints.up("sm")]:{paddingBottom:e.spacing(8)}},contentCondensed:{padding:0},title:{marginBottom:e.spacing(8),"$contentCondensed &":{marginBottom:e.spacing(4)}},navBtn:{},navBtnSmall:{height:24,width:24},navBtnLarge:{height:32,width:32,display:"none",[e.breakpoints.up("sm")]:{display:"flex"}},navBtnLeft:{transform:"translateX(-40px)"},mobileBottomControls:{width:105,display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",bottom:-44,[e.breakpoints.up("xs")]:{bottom:-25}},icon:{fontSize:e.typography.pxToRem(14),color:e.palette.primary.main,width:"1em"},iconDisabled:{color:e.palette.grey[500]},cartRecommended:{backgroundColor:e.palette.background.grey,marginBottom:e.spacing(20)},card:{[e.breakpoints.up("sm")]:{paddingRight:e.spacing(10)}}})),F=e=>{let{products:a,creativeSlot:t,pageType:n,pageTypeDetails:r}=e,l=B();return{renderCenterLeftControls:e=>{let s=0===e.currentSlide;return(0,i.jsx)(c.A,{className:(0,o.A)(l.navBtn,l.navBtnLarge,l.navBtnLeft),disabled:s,onClick:()=>(0,O.t)(e,a,"prev",t,n,r),"aria-label":"previous",children:(0,i.jsx)(m.A,{className:(0,o.A)(l.icon,{[l.iconDisabled]:s})})})},renderCenterRightControls:e=>{let s=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,O.t)(e,a,"next",t,n,r),"aria-label":"next",children:(0,i.jsx)(g.A,{className:(0,o.A)(l.icon,{[l.iconDisabled]:e.slidesToScroll&&s})})})},renderBottomCenterControls:e=>{let s=0===e.currentSlide,d=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,O.t)(e,a,"prev",t,n,r),"aria-label":"previous",className:(0,o.A)(l.navBtn,l.navBtnSmall),children:(0,i.jsx)(m.A,{className:(0,o.A)(l.icon,{[l.iconDisabled]:s})})}),(0,i.jsxs)(u.A,{variant:"body2",children:[e.currentSlide+1," of ",e.slideCount]}),(0,i.jsx)(c.A,{disabled:d,onClick:()=>(0,O.t)(e,a,"next",t,n,r),"aria-label":"next",className:(0,o.A)(l.navBtn,l.navBtnSmall),children:(0,i.jsx)(g.A,{className:(0,o.A)(l.icon,{[l.iconDisabled]:e.slidesToScroll&&d})})})]})}}},W=e=>{let{type:a,products:t,withoutControls:l,slidesToShow:s,condensed:c,preloadCardImages:u,mainProduct:m}=e,g=B(),h=(0,w.Ay)(),x=(0,P.Gd)(),y="".concat(a," - ").concat(x),A=F({products:t,creativeSlot:y,pageType:x}),v=a===D.j.CartRecommendedProducts,b=h({xs:1,sm:2,lg:3}),f=(0,n.useRef)(null),[j,N]=(0,n.useState)(!1),C=(0,r.B)(f,{threshold:.66});return t&&(null==t?void 0:t.length)?((null==C?void 0:C.isIntersecting)&&!j&&((0,T.W)({creativeSlot:y,pageType:x,products:t}),N(!0)),(0,i.jsx)("div",{"data-testid":a,id:a,className:(0,o.A)({[g.cartRecommended]:v}),ref:f,children:(0,i.jsx)(p.A,{maxWidth:"lg",className:(0,o.A)({[g.withoutControls]:l}),children:(0,i.jsx)("div",{className:(0,o.A)(g.content,{[g.contentCondensed]:c}),children:(0,i.jsx)(d(),{slidesToScroll:s||b,slidesToShow:s||b,disableEdgeSwiping:!0,withoutControls:l,...A,children:t.map((e,t)=>(0,i.jsx)(L,{mainProduct:m,product:e,testId:a,preloadCardImages:u,className:g.card,index:t,type:a},t))})})})})):null}},72214:(e,a,t)=>{t.d(a,{c:()=>f});var i=t(37876);t(14232);var n=t(77660),r=t(12197),l=t(61261),o=t(61206),s=t(52413),d=t(11148),c=t(49995),u=t(8733),p=t(54753),m=t(69605),g=t(35967),h=t(62893),x=t(11788),y=t(55287);let A=(0,l.A)(e=>({chip:{display:"flex",alignItems:"center",backgroundColor:e.palette.primary.light,color:e.palette.common.black,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightLight,padding:e.spacing(2,3,2,1.5),borderRadius:4},icon:{width:16,height:16,marginRight:e.spacing(1.5)}})),v=e=>{var a;let{productNumber:t}=e,n=A(),{userIsLoggedIn:r}=(0,x.iZ)(),{loading:l,error:o,data:s}=(0,y.WL)({variables:{productNumber:t},skip:!r,ssr:!1}),d=null==s?void 0:null===(a=s.recentOrderItems.orderItems.find(e=>e.product===t))||void 0===a?void 0:a.orderDate;return l||o||!(null==s?void 0:s.recentOrderItems.orderItems.length)?null:(0,i.jsxs)("div",{className:n.chip,children:[(0,i.jsx)(h.A,{className:n.icon}),(0,i.jsx)(u.A,{...p.A.LAST_PURCHASED})," ",d&&(0,i.jsx)(g.XU,{value:new Date(d),year:"numeric",month:"short",day:"numeric"})]})},b=(0,l.A)(e=>({productLockupSimple:{"& > div":{flexGrow:1}},brand:{display:"block",fontWeight:e.typography.fontWeightRegular},heading:{fontSize:e.typography.pxToRem(14),marginTop:e.spacing(2),"& sup, sub":{verticalAlign:"baseline",position:"relative",top:"-0.4em"},"& sub":{top:"0.1em"},[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(20)}},description:{fontSize:e.typography.pxToRem(12),marginTop:e.spacing(2),[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(16),marginTop:e.spacing(4)}},clampLines:{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"2",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis"},sellerInfo:{fontSize:e.typography.pxToRem(12),marginTop:e.spacing(2)},infoIcon:{transform:"scale(1.2)",color:e.palette.primary.main,height:e.spacing(4),verticalAlign:"bottom",cursor:"pointer"},verticalLine:{[e.breakpoints.up("lg")]:{borderRight:"1px solid ".concat(e.palette.grey[400]),marginRight:e.spacing(4),paddingRight:e.spacing(4),lineHeight:e.typography.pxToRem(16)}},trustedInfo:{fontSize:e.typography.pxToRem(12),[e.breakpoints.down("md")]:{display:"block"}},previouslyPurchasedChip:{display:"inline-block",marginBottom:e.spacing(4),"&:empty":{display:"none"}},productImageAndInfo:{display:"flex"},productImageContainer:{boxSizing:"initial",width:64,height:64,border:"solid 1px ".concat(e.palette.grey[300]),marginRight:e.spacing(4),borderRadius:3,[e.breakpoints.up("md")]:{width:88,minWidth:88,height:88,marginRight:e.spacing(6)}},productImage:{objectFit:"contain",width:"100%",height:"100%"}})),f=e=>{let{image:a,brand:t,type:l,productKey:g,productNumber:h,name:x,displaySellerName:y,description:A,additionalInfo:f,classes:j,isMarketplace:N,marketplaceSellerId:C,onProductLinkClick:T,toggleMarketplaceSellerModalOpen:S,showPreviouslyPurchasedChip:I=!1}=e,k=b();return(0,i.jsxs)("div",{className:(0,c.A)(k.productLockupSimple,null==j?void 0:j.root),children:[I&&(0,i.jsx)("div",{className:k.previouslyPurchasedChip,children:(0,i.jsx)(v,{productNumber:h})}),(0,i.jsxs)("div",{className:k.productImageAndInfo,children:[(0,i.jsx)("div",{className:(0,c.A)(k.productImageContainer,null==j?void 0:j.imageContainer),children:(0,i.jsx)("img",{src:a.mediumUrl,alt:a.altText||x,className:k.productImage})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{variant:"caption",className:(0,c.A)(k.brand,null==j?void 0:j.brand),style:t.color?{color:t.color}:{},children:t.name}),N&&C&&(0,i.jsxs)("div",{className:k.sellerInfo,children:[(0,i.jsx)(u.A,{...p.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(s.N,{...d.kJ.index(y||t.key,C),children:(0,i.jsx)("a",{children:y||t.name})}),(0,i.jsx)("span",{className:k.verticalLine}),(0,i.jsxs)("span",{className:k.trustedInfo,children:[(0,i.jsx)(u.A,{...p.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(m.A,{className:k.infoIcon,onClick:()=>!!S&&S()})]})]}),(0,i.jsx)(r.A,{variant:"h3",component:"div",className:(0,c.A)(k.heading,null==j?void 0:j.heading),children:x&&t.key&&g?(0,i.jsx)(s.N,{...d.aR.index(t.key,g,l===n.iC.ThirdPartyProvider?{context:"bbe"}:{}),passHref:!0,children:(0,i.jsx)("a",{onClick:T,children:h})}):h}),(0,i.jsx)(r.A,{variant:"h3",className:(0,c.A)(k.heading,null==j?void 0:j.heading),children:(0,i.jsx)(o.A,{value:x})}),A&&(0,i.jsx)(r.A,{className:(0,c.A)(k.description,k.clampLines,null==j?void 0:j.description),children:(0,i.jsx)(o.A,{value:A})}),f]})]})]})}},73170:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(61261),r=t(22582),l=t(14970),o=t(17357),s=t(2614),d=t(49995);let c=(0,n.A)(e=>({wrapper:{display:"flex",justifyContent:"center",alignItems:"center",margin:"2em 0"},baseButton:{border:0,background:"none",cursor:"pointer",height:e.spacing(8),minWidth:e.spacing(8),fontSize:e.spacing(4),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:e.spacing(2),marginLeft:e.spacing(1),marginRight:e.spacing(1),transition:"all .2s ease-in-out","&:disabled":{cursor:"auto",color:e.palette.text.disabled},"&:hover:enabled":{backgroundColor:e.palette.secondary.main,color:e.palette.common.white}},prevNext:{color:e.palette.secondary.main},pageNumber:{color:e.palette.common.black},curPage:{cursor:"auto",backgroundColor:e.palette.secondary.main,color:e.palette.common.white,fontWeight:e.typography.fontWeightMedium,paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},ellipsis:{cursor:"auto"},hideOnMobile:{[e.breakpoints.down("xs")]:{display:"none"}}})),u=e=>{let{onClick:a,label:t,children:n,classes:r=[],disabled:l=!1,id:o}=e;return(0,i.jsx)("button",{className:(0,d.A)(...r),type:"button",disabled:l,"aria-label":t,onClick:a,id:o,children:n})},p=e=>{let{curPage:a,numPages:t,clickHandler:n}=e,p=c(),m=function(e,a){let t,i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(e<1?e=1:e>a&&(e=a),a<=n)t=1,i=a;else{let r=Math.floor(n/2),l=Math.ceil(n/2)-1;e<=r?(t=1,i=n):e+l>=a?(t=a-n+1,i=a):(t=e-r,i=e+l)}return{pages:Array.from(Array(i+1-t).keys()).map(e=>t+e),showNext:e1}}(a,t),g=m.pages[m.pages.length-1],h=m.pages[0],x=(0,i.jsx)("div",{className:(0,d.A)(p.baseButton,p.ellipsis,p.hideOnMobile),children:"..."}),y=(0,i.jsx)(u,{classes:[p.baseButton,p.pageNumber,p.hideOnMobile],label:"Go to page ".concat(t),onClick:e=>{e.preventDefault(),n(t)},children:t},t),A=(0,i.jsx)(u,{classes:[p.baseButton,p.pageNumber],label:"Go to page 1",onClick:e=>{e.preventDefault(),n(1)},id:"pagination-first-page","data-testid":"pagination-first-page",children:"1"},1);return t>1?(0,i.jsxs)("nav",{className:p.wrapper,"aria-label":"Pagination Navigation",children:[(0,i.jsx)(u,{label:"Go to first page",disabled:!m.showPrevious,classes:[p.baseButton,p.prevNext,p.hideOnMobile],onClick:e=>{e.preventDefault(),n(1)},id:"go-to-first-page","data-testid":"go-to-first-page",children:(0,i.jsx)(r.A,{})},"first"),(0,i.jsx)(u,{classes:[p.baseButton,p.prevNext],disabled:!m.showPrevious,label:"Go to previous page",id:"pagination-go-to-previous-page","data-testid":"pagination-go-to-previous-page",onClick:e=>{e.preventDefault(),n(a-1)},children:(0,i.jsx)(o.A,{})},"previous"),2===h&&A,h>2&&(0,i.jsxs)(i.Fragment,{children:[A,x]}),m.pages.map((e,t)=>e===a?(0,i.jsx)("div",{id:"pagination-current-page","aria-label":"Current page",className:(0,d.A)(p.baseButton,p.curPage),children:e},e):(0,i.jsx)(u,{classes:[p.baseButton,p.pageNumber,p.hideOnMobile],disabled:e===a,label:"Go to page ".concat(e),onClick:a=>{a.preventDefault(),n(e)},id:"pagination-go-to-page-".concat(t),"data-testid":"pagination-go-to-page-".concat(t),children:e},e)),t-g==1&&y,t-g>1&&(0,i.jsxs)(i.Fragment,{children:[x,y]}),(0,i.jsx)(u,{classes:[p.baseButton,p.prevNext],disabled:!m.showNext,label:"Go to next page",id:"pagination-go-to-next-page","data-testid":"pagination-go-to-next-page",onClick:e=>{e.preventDefault(),n(a+1)},children:(0,i.jsx)(s.default,{})},"next"),(0,i.jsx)(u,{classes:[p.baseButton,p.prevNext,p.hideOnMobile],disabled:!m.showNext,label:"Go to last page",onClick:e=>{e.preventDefault(),n(t)},children:(0,i.jsx)(l.A,{})},"last")]}):null}},73431:(e,a,t)=>{t.d(a,{AW:()=>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 DealerData on Dealer {\n id\n organizationName\n street1\n street3\n street4\n street5\n city\n phone\n email\n countryCode\n stateCode\n firstName\n lastName\n buildingRoom\n attentionTo\n department\n postalCode\n approverDealerLogonid\n approvalNeeded\n soldToPartner\n shipToPartner\n billToPartner\n payerPartner\n salesOrg\n poNumber\n dealerType\n productGroup\n isPreferredDealer\n availableProducts\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n query Dealers($countryCode: String!, $stateCode: String, $searchTerm: String) {\n getDealers(\n countryCode: $countryCode\n stateCode: $stateCode\n searchTerm: $searchTerm\n ) {\n ...DealerData\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)}},74770:(e,a,t)=>{t.d(a,{A:()=>o});var i=t(37876);t(14232);var n=t(61261),r=t(54753);let l=(0,n.A)(e=>({badge:{margin:e.spacing(1),width:28,height:28}})),o=e=>{let{features:a,customClass:t}=e,n=l();return(0,i.jsxs)(i.Fragment,{children:[a.includes("NEW")&&(0,i.jsx)("img",{className:null!=t?t:n.badge,src:"/static/new_product_badge.png",alt:"new",title:r.D.NEW_PRODUCT.defaultMessage}),a.includes("enhancedValidation")&&(0,i.jsx)("img",{className:null!=t?t:n.badge,src:"/static/enhanced_validation_badge.png",alt:"enhanced validation",title:r.D.ENHANCED_VALIDATION.defaultMessage})]})}},75352:(e,a,t)=>{t.d(a,{A:()=>P});var i=t(37876),n=t(12197),r=t(36503),l=t(15319),o=t(7645),s=t(5411),d=t(61261),c=t(15743),u=t(86024),p=t(54093),m=t(3954),g=t(28888);function h(){let e=(0,g._)(["\n query Dealers(\n $countryCode: String!\n $stateCode: String\n $searchTerm: String\n ) {\n getDealers(\n countryCode: $countryCode\n stateCode: $stateCode\n searchTerm: $searchTerm\n ) {\n ...DealerData\n }\n }\n\n fragment DealerData on Dealer {\n id\n organizationName\n street1\n street3\n street4\n street5\n city\n phone\n email\n countryCode\n stateCode\n firstName\n lastName\n buildingRoom\n attentionTo\n department\n postalCode\n approverDealerLogonid\n approvalNeeded\n soldToPartner\n shipToPartner\n billToPartner\n payerPartner\n salesOrg\n poNumber\n dealerType\n productGroup\n isPreferredDealer\n availableProducts\n }\n"]);return h=function(){return e},e}let x=(0,t(82897).J1)(h());var y=t(87165),A=t(54753),v=t(82250),b=t(11788),f=t(17685),j=t(49995),N=t(14232),C=t(8733),T=t(77742),S=t(16703),I=t(33159);let k=(0,d.A)(e=>({root:{minWidth:"8vw",backgroundColor:e.palette.background.default},closeButton:{height:e.spacing(10),width:e.spacing(10),margin:e.spacing(2)},footer:{width:"100%",height:40,paddingLeft:e.spacing(5),position:"absolute",bottom:0,left:0,right:0,zIndex:1,margin:e.spacing(4,0,4)},selectButton:{width:"100%",marginRight:e.spacing(5)},listContainer:{borderBottom:"1px solid rgba(224, 224, 224, 1)",overflow:"hidden",paddingTop:e.spacing(2),paddingBottom:e.spacing(2),marginBottom:80,marginLeft:20,marginRight:20,marginTop:16,minHeight:258},inputContainer:{[e.breakpoints.up("sm")]:{marginLeft:32,marginRight:32},marginLeft:16,marginRight:16,marginTop:"24px"},input:{width:"100%"},disclaimerContainer:{width:"auto",whiteSpace:"pre-line"},checkbox:{fontSize:e.spacing(6)},checkboxWrapper:{display:"flex",flexDirection:"row",alignItems:"center"},searchIconContainer:{paddingRight:14}})),R=e=>{let{isSettingDealer:a}=e;return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)(C.A,{...A.A.SET_PREFERRED_DEALER}):(0,i.jsx)(C.A,{...A.A.SELECT_VIEW_PRICING})})},_=e=>{let{dealerCount:a}=e,{formatMessage:t}=(0,T.A)(),n=t(A.A.SEE_ALL_BUYING_OPTIONS);return a?(0,i.jsx)(i.Fragment,{children:"".concat(n," (").concat(a,")")}):(0,i.jsx)(i.Fragment,{children:"".concat(n)})},E=(e,a)=>"SET_SELECTED_DEALER_ID"===a.type?a.payload:e,P=e=>{var a,t;let{open:d,onClose:g,values:h,materialPricing:P,setFieldValue:M,setIsModalOpen:L,onDealerSelect:w,onDealerSelectCallback:O,onSearch:D,isSavingDealerPreference:B=!0,disabled:F,dealers:W,btnTextOverride:U}=e,z=k(),q=(0,T.A)(),[H,V]=(0,N.useReducer)(E,null),[K,G]=(0,N.useState)(null!==(t=null==W?void 0:null===(a=W[0])||void 0===a?void 0:a.organizationName)&&void 0!==t?t:void 0),{currentUserState:Q,userId:$}=(0,b.iZ)(),{userSession:Y}=(0,f.j)(),[X,J]=(0,N.useState)(""),[Z,ee]=(0,N.useState)(X),[ea,{loading:et}]=(0,y.Nj)({refetchQueries:[{query:m.I},{query:x,context:{userSession:Y},variables:{countryCode:null==Y?void 0:Y.country,stateCode:String(Q)}}],awaitRefetchQueries:!0}),ei=async e=>{try{if(!$)throw Error("userId is required to update dealer");if(!e)throw Error("dealerId is required to update dealer");return await ea({variables:{userId:$,data:{dealerId:e}}}),O&&O(),g()}catch(e){return console.error((0,v.Mw)(e).displayableError),g()}};return(0,S.A)(()=>{D&&X&&D(X),ee(X)},500,[X]),(0,i.jsx)(u.A,{open:d,onClose:g,renderTitle:()=>(0,i.jsx)(n.A,{variant:"h2",children:B?(0,i.jsx)(C.A,{...A.A.SELECT_PREFERRED_DEALER}):(0,i.jsx)(_,{dealerCount:null==W?void 0:W.length})}),size:u.I.Large,children:(0,i.jsxs)(i.Fragment,{children:["JP"===Y.country&&(0,i.jsx)(r.A,{container:!0,className:(0,j.A)(z.inputContainer,z.disclaimerContainer),children:B?(0,i.jsx)(C.A,{...A.A.DEALER_SELECT_MODAL_DISCLAIMER}):(0,i.jsx)(C.A,{...A.A.DEALER_UPDATE_PRICING_DISCLAIMER})}),(0,i.jsx)(r.A,{className:z.inputContainer,children:(0,i.jsx)(c.A,{className:z.input,onChange:e=>J(e.target.value),placeholder:q.formatMessage(A.A.ENTER_DEALER_NAME_OR_LOCATION),size:"small",value:X,endAdornment:(0,i.jsx)(l.A,{position:"end",className:z.searchIconContainer,children:(0,i.jsx)(p.default,{color:"primary"})})})}),(0,i.jsx)(o.A,{className:z.listContainer,children:(0,i.jsx)(I.A,{selectDealer:(e,a)=>{V({type:"SET_SELECTED_DEALER_ID",payload:e!==H?e:null}),G(a!==K?a:void 0)},selectedDealerId:H,searchTerm:Z})}),(0,i.jsxs)(r.A,{container:!0,className:z.footer,direction:"row",id:"footer",justifyContent:"flex-end",alignItems:"center",wrap:"nowrap",children:[(0,i.jsx)(r.A,{item:!0,sm:4,md:4,children:(0,i.jsx)(r.A,{container:!0,justifyContent:"center",children:(0,i.jsx)(s.A,{size:"large",color:"primary",variant:"outlined",className:z.selectButton,onClick:g,"data-testid":"select-dealer-cancel",id:"select-dealer-submit",children:(0,i.jsx)(C.A,{...A.A.CANCEL})})})}),(0,i.jsx)(r.A,{item:!0,sm:4,md:4,children:(0,i.jsx)(r.A,{container:!0,justifyContent:"center",children:(0,i.jsx)(s.A,{size:"large",color:"primary",variant:"contained",className:z.selectButton,onClick:()=>w&&h&&P&&M&&L?w(H,h,P,M,L,K):ei(H),disabled:F||et||!H,"data-testid":"select-dealer-submit",id:"select-dealer-submit",children:U?(0,i.jsx)(C.A,{...U}):(0,i.jsx)(R,{isSettingDealer:B})})})})]})]})})}},75933:(e,a,t)=>{t.d(a,{A:()=>S});var i=t(37876),n=t(14232),r=t(71541),l=t(48829),o=t(12197),s=t(5411),d=t(64204),c=t(80491),u=t(61261),p=t(35877),m=t(11148),g=t(56584),h=t(97710),x=t(52413),y=t(43965);let A=(0,u.A)(e=>({productContainer:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},product:{position:"relative",width:"auto"},imageContainer:{display:"flex",justifyContent:"center",alignItems:"center",height:"58px",width:"58px",border:"1px solid ".concat(e.palette.grey[400]),borderRadius:"2px"},image:{maxHeight:"54px",maxWidth:"54px"},x:{width:"12px",height:"12px"}})),v=e=>{let{images:a,productKey:t,productNumber:n,brandKey:r}=e,l=A(),{removeCompareProduct:o}=(0,c.Zn)(),s=null==a?void 0:a.find(e=>!e.productKey||!e.brandKey||e.productKey===t&&e.brandKey===r);return(0,i.jsxs)("div",{className:l.productContainer,children:[(0,i.jsxs)("div",{className:l.product,children:[(0,i.jsx)("div",{children:s?(0,i.jsx)("div",{className:l.imageContainer,children:(0,i.jsx)("img",{className:l.image,src:s.smallUrl||s.mediumUrl,alt:(null==s?void 0:s.altText)||""})}):(0,i.jsx)("img",{className:l.image,src:"/assets/images/supelco-no-image/supelco-no-image_w300.png",alt:"Supelco"})}),(0,i.jsx)("div",{children:(0,i.jsx)(x.N,{...m.aR.index(r,t,{catalog:(0,h.vN)(h.Xc.Products)}),passHref:!0,children:n||t})})]}),(0,i.jsx)(d.A,{onClick:()=>o({brandKey:r,productKey:t}),children:(0,i.jsx)(y.A,{className:l.x})})]})};var b=t(8733),f=t(34669),j=t(76594),N=t(18847);let C=t.n(N)()(()=>t.e(2974).then(t.bind(t,42974)),{loadableGenerated:{webpack:()=>[42974]},loadableGenerated:{webpack:()=>[42974]},ssr:!1}),T=(0,u.A)(e=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between",margin:"0 auto",padding:e.spacing(6,10),width:"100%",maxWidth:"1280px"},drawer:{"& .MuiDrawer-paper":{boxShadow:"0 0px 10px 1px rgba(0, 0, 0, .2)"}},productsContainer:{flexGrow:2,display:"flex",padding:e.spacing(0,8),maxWidth:640,"& > *":{width:"calc(25% - ".concat(e.spacing(8),"px)"),marginRight:e.spacing(8)}},btnContainer:{display:"flex",flexDirection:"column",[e.breakpoints.up("lg")]:{flexDirection:"row"}},clearBtn:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold,marginTop:e.spacing(4),[e.breakpoints.up("lg")]:{marginTop:e.spacing(0),marginLeft:e.spacing(10)}},instructionsContainer:{maxWidth:"200px",[e.breakpoints.up("lg")]:{maxWidth:"inherit"}},instructions:{fontSize:e.typography.pxToRem(18)},blank:{background:e.palette.background.grey}})),S=e=>{let{isAemDrawer:a=!1}=e,{compareProducts:t,clearAllCompareProducts:u,sendToProductCompareDetail:h}=(0,c.Zn)(),x=(0,m.rd)(),[y]=(0,g.useSearchQuery)(),A=T(),N=(0,p.A)(),S=(0,r.A)(N.breakpoints.up("md")),[I,k]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{k(!0)},[]),I)?a?(0,i.jsx)(C,{}):(0,i.jsx)(l.Ay,{anchor:"bottom",open:S&&t.length>0,variant:"persistent",className:A.drawer,children:(0,i.jsxs)("div",{className:A.root,children:[(0,i.jsx)("div",{className:A.instructionsContainer,children:(0,i.jsx)(o.A,{className:A.instructions,component:"h3",children:(0,i.jsx)(b.A,{...f.A.CHOOSE_UP_TO_FOUR_PRODUCTS})})}),(0,i.jsx)("div",{className:A.productsContainer,children:(0,j.A)(4,e=>t[e]?(0,i.jsx)(v,{...t[e]},t[e].productKey):(0,i.jsx)("div",{className:A.blank},e))}),(0,i.jsxs)("div",{className:A.btnContainer,children:[(0,i.jsx)(s.A,{disabled:t.length<2,variant:"outlined",color:"primary",size:"medium",onClick:()=>h(y,x),children:(0,i.jsx)(b.A,{...f.A.COMPARE})}),(0,i.jsx)(d.A,{className:A.clearBtn,onClick:()=>u(),children:(0,i.jsx)(b.A,{...f.A.CLEAR_ALL})})]})]})}):null}},76056:(e,a,t)=>{t.d(a,{A:()=>d});var i=t(37876);t(14232);var n=t(5411),r=t(8733),l=t(37929),o=t(71541),s=t(11148);let d=e=>{let{buttonMessage:a,fullWidth:t=!1,size:d="large"}=e,c=(0,l.A)(),u=(0,o.A)(c.breakpoints.up("md")),p=(0,s.rd)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.A,{color:"primary",fullWidth:!u||t,size:d,variant:"contained",href:"".concat(s.VV.index(),"?redirect=").concat(encodeURIComponent(p.asPath||s.xn.index())),children:(0,i.jsx)(r.A,{...null!=a?a:{id:"SIGN_IN_FOR_BEST_PRICING",defaultMessage:"Sign In for Best Price"}})})})}},76209:(e,a,t)=>{t.d(a,{wJ:()=>c});var i=t(28888);t(37876);var n=t(82897),r=t(54064);t(14232);var l=t(54431);function o(){let e=(0,i._)(["\n query RecentlyViewedProducts($brand: String!, $productKey: String!, $dispType: AnalyticsDispType!, $erpType: String) {\n getRecentlyViewedProducts(\n input: {brand: $brand, productKey: $productKey, dispType: $dispType, erpType: $erpType}\n ) {\n products {\n ...DynamicProduct\n }\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(o(),r.z);function c(e){let a={...s,...e};return l.IT(d,a)}},76764:(e,a,t)=>{t.d(a,{Bw:()=>u,ht:()=>c});var i=t(28888);t(37876);var n=t(82897);t(14232);var r=t(54431),l=t(78248);function o(){let e=(0,i._)(["\n query SpecificationSheetUrl($input: SpecSheetInput!) {\n getSpecificationSheet(input: $input) {\n url\n text\n documentType\n materialId\n }\n}\n "]);return o=function(){return e},e}let s={},d=(0,n.J1)(o());function c(e){let a={...s,...e};return r.IT(d,a)}function u(e){let a={...s,...e};return l._(d,a)}},77197:(e,a,t)=>{t.d(a,{Ay:()=>b,tq:()=>v});var i=t(37876);t(14232);var n=t(99220),r=t(12197),l=t(92189),o=t(51722),s=t(77742),d=t(8733),c=t(77660),u=t(90589),p=t(54753),m=t(51684),g=t(11148),h=t(12399),x=t(71007),y=t(46129);let A=(0,n.n9)()(e=>({vr2:{marginBottom:e.spacing(2)},vr4:{marginBottom:e.spacing(4)},body:{padding:e.spacing(8,0,10),[e.breakpoints.up("sm")]:{padding:e.spacing(10,0,12)}},title:{marginBottom:e.spacing(2),[e.breakpoints.up("sm")]:{marginBottom:e.spacing(4)}},overview:{display:"flex",flexDirection:"column",[e.breakpoints.up("md")]:{flexDirection:"row",justifyContent:"space-between"}},section:{marginBottom:e.spacing(10)},recentlyViewedProducts:{marginTop:e.spacing(12)},medium:{fontWeight:e.typography.fontWeightMedium}}));var v=function(e){return e.sds="safety data sheet",e.coa="certificate of analysis",e.coo="certificate of origin",e.coq="certificate of quality",e}({});let b=()=>{let{classes:e}=A(),{formatMessage:a}=(0,s.A)(),t=(0,g.rd)();return(0,i.jsxs)(o.A,{className:e.body,children:[(0,i.jsxs)(l.A,{maxWidth:"lg",children:[(0,i.jsx)(r.A,{id:"documents-search-title",variant:"h1",className:e.title,children:a({id:"DOCUMENTS",defaultMessage:"Documents"})}),(0,i.jsx)("div",{className:e.section,children:(0,i.jsxs)("div",{className:e.overview,children:[(0,i.jsx)(r.A,{id:"documents-search-overview",variant:"body1",className:e.vr4,children:a(p.A.DOCUMENT_SEARCH_SUBTITLE)}),(0,i.jsx)(m.A,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.A,{variant:"body1",children:[(0,i.jsx)(d.A,{id:"IS_IT_RELATED_TO_A_PREVIOUS_ORDER",defaultMessage:"Is it related to a previous order",values:{b:function(){for(var e=arguments.length,a=Array(e),t=0;t(0,x.pc)({event:"documentation_interaction",action:"visit document library",detail:"".concat(t.query.tab," tab"),section:"document search",component:"body",elementType:"link",elementText:"document library",linkUrl:g.U1.index(),coreEvent:"no"}),children:(0,i.jsx)(d.A,{id:"DOCUMENT_LIBRARY",defaultMessage:"Document Library"})})}}),"."]})]})})]})}),(0,i.jsx)(h.A,{})]}),(0,i.jsx)(u.A,{dispType:c.HI.RecentlyViewedDocumentsSearch,className:e.recentlyViewedProducts,analyticsPageName:"document search",analyticsPageDetails:"document search page"})]})}},80491:(e,a,t)=>{t.d(a,{NN:()=>x,Zn:()=>y,lz:()=>m,wv:()=>g});var i=t(14232),n=t(30915),r=t.n(n),l=t(47801),o=t(11148),s=t(77660),d=t(71007),c=t(81566),u=t(8288);let p={PRODUCTS:",",OPTION_SETS:":"},m=e=>{if(!e||0===e.length)return[];let a=e.split(p.PRODUCTS);if(!a||0===a.length)return[];let t=[];return a.map(e=>{let a=e.split(p.OPTION_SETS);if(a&&a.length>=1){let e=a[0],i=a.length>1?a[1]:"",n=a.length>2?a[2]:"",r={productKey:e,brandKey:i};n&&(n===s.Mh.B2b?r.catalogType=s.Mh.B2b:n===s.Mh.Buildingblocks?r.catalogType=s.Mh.Buildingblocks:n===s.Mh.Sial&&(r.catalogType=s.Mh.Sial)),t.push(r)}return e}),t},g=e=>e.map(e=>{let a=e.productKey,t=e.brandKey,i=e.catalogType;return"".concat(a).concat(p.OPTION_SETS).concat(t).concat(p.OPTION_SETS).concat(i)}).join(p.PRODUCTS),h="compareProducts",x=4;function y(){let e=(0,l.Fo)(h,[]),a=(0,i.useCallback)(a=>Array.isArray(e)?e.length>=x?void 0:e.findIndex(e=>{let{brandKey:t,productKey:i}=e;return a.brandKey===t&&a.productKey===i})>=0?void 0:l.sZ.setItem(h,e.concat([a])):l.sZ.setItem(h,[a]),[e]),t=(0,i.useCallback)(a=>{if(!Array.isArray(e))return;let t=e.findIndex(e=>{let{brandKey:t,productKey:i}=e;return a.brandKey===t&&a.productKey===i});if(t>=0)return l.sZ.setItem(h,e.slice(0,t).concat(e.slice(t+1)))},[e]),n=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return l.sZ.setItem(h,e)},[]);return{compareProducts:(0,i.useMemo)(()=>Array.isArray(e)?e:[],[e]),addCompareProduct:a,removeCompareProduct:t,clearAllCompareProducts:n,sendToProductCompareDetail:(0,i.useCallback)((a,t)=>{let{pathAfterBasename:i}=(0,u.yp)(t.asPath);(0,d.OT)({action:c.PP.CompareProducts,detail:null==e?void 0:e.map(e=>e.productKey).join("|"),section:"choose up to 4 products to compare",component:"slider",elementType:"button",elementText:"compare"});let n=g(e||[]),l={...a,products:n,returnUrl:i};return t.push("".concat(o.aR.compare(),"?").concat(r().stringify(l)))},[e])}}},81232:(e,a,t)=>{t.d(a,{A:()=>i.A});var i=t(32609)},81474:(e,a,t)=>{t.d(a,{le:()=>h,rx:()=>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 SubstanceProductFields on Product {\n name\n displaySellerName\n productNumber\n productKey\n isSial\n isMarketplace\n marketplaceSellerId\n marketplaceOfferId\n cardCategory\n cardAttribute {\n citationCount\n application\n }\n attributes {\n key\n label\n values\n }\n speciesReactivity\n brand {\n key\n erpKey\n name\n color\n }\n images {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n keyAttributes {\n key\n label\n values\n }\n description\n sdsLanguages\n sdsPnoKey\n similarity\n paMessage\n features\n catalogId\n materialIds\n erp_type\n legalNameSuffix\n isBBE\n txnBadge {\n label\n priority\n salesOrgIds\n type\n }\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n fragment SubstanceFields on Substance {\n _id\n id\n name\n synonyms\n empiricalFormula\n linearFormula\n molecularWeight\n legalName\n aliases {\n key\n label\n value\n }\n images {\n sequence\n altText\n smallUrl\n mediumUrl\n largeUrl\n brandKey\n productKey\n label\n videoUrl\n }\n casNumber\n keyAttributes {\n key\n label\n values\n }\n products {\n ...SubstanceProductFields\n }\n}\n ",""]);return o=function(){return e},e}function s(){let e=(0,i._)(["\n fragment ProductSearchFields on ProductSearchResults {\n metadata {\n itemCount\n setsCount\n page\n perPage\n numPages\n redirect\n suggestedType\n }\n items {\n ... on Substance {\n ...SubstanceFields\n }\n ... on Product {\n ...SubstanceProductFields\n }\n }\n facets {\n key\n numToDisplay\n isHidden\n isCollapsed\n multiSelect\n prefix\n options {\n value\n count\n }\n }\n didYouMeanTerms {\n term\n count\n }\n}\n ","\n",""]);return s=function(){return e},e}function d(){let e=(0,i._)(["\n query ProductSearch($searchTerm: String, $page: Int!, $sort: Sort, $group: ProductSearchGroup, $selectedFacets: [FacetInput!], $type: ProductSearchType, $catalogType: CatalogType, $orgId: String, $region: String, $facetSet: [String], $filter: String, $variation: String, $displayLanguage: String) {\n getProductSearchResults(\n input: {searchTerm: $searchTerm, pagination: {page: $page}, sort: $sort, group: $group, facets: $selectedFacets, type: $type, catalogType: $catalogType, orgId: $orgId, region: $region, facetSet: $facetSet, filter: $filter, variation: $variation, displayLanguage: $displayLanguage}\n ) {\n ...ProductSearchFields\n }\n}\n ",""]);return d=function(){return e},e}let c={},u=(0,n.J1)(l()),p=(0,n.J1)(o(),u),m=(0,n.J1)(s(),p,u),g=(0,n.J1)(d(),m);function h(e){let a={...c,...e};return r.IT(g,a)}},84119:(e,a,t)=>{t.d(a,{A:()=>C});var i=t(37876),n=t(14232),r=t(39324),l=t.n(r),o=t(49995),s=t(11148),d=t(8733),c=t(61261),u=t(7645),p=t(5411),m=t(34415),g=t(77501),h=t(52413),x=t(75352),y=t(82250),A=t(54753),v=t(11788),b=t(69485),f=t(17685);let{publicRuntimeConfig:{featureFlags:j}}=l()(),N=(0,c.A)(e=>({row:{display:"flex"},rowFormatting:{display:"flex",justifyContent:"center",padding:e.spacing(3,0),borderBottom:"1px solid ".concat(e.palette.grey[300]),borderTop:"1px solid ".concat(e.palette.grey[300])},errorText:{lineHeight:1.75},errorContact:{display:"flex",alignItems:"center"},seeDealerOptionsLink:{color:e.palette.primary.main,cursor:"pointer",padding:0,marginLeft:e.spacing(1),textTransform:"capitalize"},centerJustified:{display:"flex",justifyContent:"center",fontWeight:500}})),C=e=>{var a;let{error:t,productNumber:r,isMarketplace:l=!1,sellerName:c="",marketplaceSellerId:C="",marketplaceOfferId:T="",materialPricing:S,isCenterJustified:I=!0,handlePriceUpdateForDealer:k}=e,R=N(),_=(0,s.rd)(),{isDTAQZuCustomer:E}=(0,v.iZ)(),[P,M]=(0,n.useState)(!1),L=t?(0,y.Mw)(t).errors[0]:void 0,w=(null==L?void 0:null===(a=L.misc)||void 0===a?void 0:a.hideTechnicalServiceLink)===void 0||L.misc.hideTechnicalServiceLink,O=l&&!!c&&!!C&&!!T,D=j.dealerCartEnabled&&E,B=(null==L?void 0:L.code)&&A.A[L.code]||A.A.PRICING_AND_AVAILABILITY_UNAVAILABLE,{userSession:{country:F}}=(0,f.j)();return(0,i.jsxs)("div",{className:(0,o.A)(R.row,{[R.rowFormatting]:I}),children:[(0,i.jsx)(u.A,{mr:2,children:(0,i.jsx)(g.default,{color:"error"})}),(0,i.jsxs)(u.A,{className:(0,o.A)({[R.centerJustified]:I}),children:[(0,i.jsx)("span",{className:(0,o.A)({[R.errorText]:I}),children:(null==L?void 0:L.code)==="EMD_MILLIPORE_PRICING_AND_INVENTORY_UNAVAILABLE"?"US"===F?(0,i.jsx)(b.J,{id:"PRODUCT_SOLD_EXCLUSIVELY_BY_MILLIPORE_VIA_OFFLINE_CHANNELS",defaultMessage:"This product is sold exclusively by Millipore via offline channels. {link}",values:{link:(0,i.jsx)(h.N,{href:s.Vc.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(d.A,{id:"CONTACT_CUSTOMER_SERVICE_FIRST_UPPERCASE",defaultMessage:"Contact Customer Service"})})})}}):"CA"===F?(0,i.jsx)(b.J,{id:"PRODUCT_ONLY_SOLD_VIA_OFFLINE_CHANNELS",defaultMessage:"This product is only sold via offline channels. {link}",values:{link:(0,i.jsx)(h.N,{href:s.Vc.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(d.A,{id:"PLEASE_CONTACT_CUSTOMER_SERVICE",defaultMessage:"Please Contact Customer Service"})})})}}):(0,i.jsx)(b.J,{...B,values:{link:(0,i.jsx)("a",{href:"http://www.emdmillipore.com/",children:"Millipore"})}}):(null==L?void 0:L.code)==="MERCK_MILLIPORE_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(b.J,{...B,values:{link:(0,i.jsx)("a",{href:"http://www.merckmillipore.com/",children:"Merck Millipore"})}}):(null==L?void 0:L.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE_HAS_STOCK"||(null==L?void 0:L.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(b.J,{...B,values:{productNumber:r,link:(0,i.jsx)("a",{href:"http://hg.y866.cn/germ/",target:"_blank",rel:"noreferrer",children:"Sigma-Aldrich"})}}):(null==L?void 0:L.code)==="PRODUCT_ONLY_SOLD_VIA_OFFLINE_CHANNELS"?(0,i.jsx)(b.J,{...B,values:{link:(0,i.jsx)(h.N,{href:s.Vc.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(d.A,{id:"PLEASE_CONTACT_CUSTOMER_SERVICE",defaultMessage:"Please Contact Customer Service"})})})}}):(null==L?void 0:L.code)==="CUSTOMER_NUMBER_BLOCKED"?(0,i.jsx)(b.J,{...B,values:{customerNumber:(null==L?void 0:L.paramList)?null==L?void 0:L.paramList[0]:""}}):r?(0,i.jsx)(b.J,{...B,values:{productNumber:(0,i.jsx)("b",{children:r})}}):(0,i.jsx)(b.J,{...B})}),w||O?null:(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(h.N,{href:s.Vc.customerSupport(),passHref:!0,children:(0,i.jsx)(m.A,{color:"primary",className:R.errorText,children:(0,i.jsx)(d.A,{...A.A.CONTACT_TECHNICAL_SERVICE})})})]}),O?(0,i.jsxs)("span",{className:R.errorContact,children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(h.N,{...s.kJ.contact(c,C,_.asPath,s.C2.OFFER_MESSAGING,T),children:(0,i.jsx)("a",{children:(0,i.jsx)(d.A,{...A.A.CONTACT_SELLER_WITH_NAME,values:{sellerName:c}})})})]}):null,D&&(0,i.jsx)(p.A,{variant:"text",className:R.seeDealerOptionsLink,onClick:()=>M(!0),children:(0,i.jsx)(d.A,{...A.A.SEE_ALL_BUYING_OPTIONS})}),D&&k&&P&&(0,i.jsx)(x.A,{values:{},materialPricing:S,isSavingDealerPreference:!1,setFieldValue:e=>e,setIsModalOpen:M,onDealerSelect:(e,a)=>k(e,{},S,e=>e,M,a),open:P,onClose:()=>M(!1),disabled:!1})]})]})}},84627:(e,a,t)=>{t.d(a,{A:()=>b});var i=t(37876),n=t(99220),r=t(21018),l=t(8392),o=t(36503),s=t(12197),d=t(34415),c=t(8733),u=t(54753),p=t(11148),m=t(52413);let g=(0,n.n9)()(e=>({vr4:{marginBottom:e.spacing(4)},vr6:{marginBottom:e.spacing(6)},mediumBold:{fontWeight:e.typography.fontWeightMedium},boldWeight:{fontWeight:e.typography.fontWeightBold},diagramContainer:{display:"flex",justifyContent:"center"},purple:{color:e.palette.secondary.main},grey400:{color:e.palette.grey[400]},value:{fontSize:e.typography.pxToRem(40),fontWeight:e.typography.fontWeightMedium,lineHeight:1,borderBottom:"4px solid",paddingBottom:e.spacing(2),marginBottom:e.spacing(2),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(56)}},label:{fontSize:e.typography.pxToRem(10),fontWeight:e.typography.fontWeightMedium,[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(14)},textAlign:"center"},quantitylabel:{fontSize:e.typography.pxToRem(10),fontWeight:e.typography.fontWeightMedium,[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(14)},color:e.palette.common.black,textAlign:"center"},examples:{marginTop:e.spacing(6),marginRight:e.spacing(4)},divider:{fontSize:e.typography.pxToRem(40),fontWeight:e.typography.fontWeightMedium,lineHeight:1,padding:e.spacing(0,2),color:e.palette.grey[400],[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(72),lineHeight:.75}},exampleContainer:{background:e.palette.common.white,padding:e.spacing(4,6),marginBottom:e.spacing(4),width:"260px",[e.breakpoints.up("md")]:{width:"320px"}},additionalExamplesContainer:{textAlign:"center"},copyText:{fontSize:e.typography.pxToRem(12),[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(14)}}})),h=e=>{let{techServiceLinkClicked:a}=e,{classes:t,cx:n}=g();return(0,i.jsxs)(o.A,{container:!0,children:[(0,i.jsx)(o.A,{item:!0,xs:12,className:t.vr6,children:(0,i.jsxs)(s.A,{variant:"body2",className:t.copyText,children:[(0,i.jsx)(c.A,{id:"HOW_TO_ENTER_PRODUCT_NUMBER_EXAMPLE",defaultMessage:"Product numbers are combined with Pack Sizes/Quantity when displayed on the website (example: T1503-25G). Please make sure you enter "})," ",(0,i.jsx)("span",{className:t.mediumBold,children:(0,i.jsx)(c.A,{id:"HOW_TO_ENTER_PRODUCT_NUMBER_INSTRUCTIONS_TEXT",defaultMessage:"ONLY the product number in the Product Number field"})})," (",(0,i.jsx)("span",{style:{textTransform:"lowercase"},children:(0,i.jsx)(c.A,{id:"EXAMPLE_PRODUCT_NUMBER",defaultMessage:"example"})}),": ",(0,i.jsx)("span",{children:" T1503)."})]})}),(0,i.jsxs)(o.A,{item:!0,xs:12,className:t.exampleContainer,children:[(0,i.jsx)(s.A,{variant:"body2",className:n(t.vr4,t.copyText),children:(0,i.jsx)(c.A,{...u.A.EXAMPLE})}),(0,i.jsxs)("div",{className:n(t.diagramContainer,t.vr6),children:[(0,i.jsxs)("div",{className:t.purple,children:[(0,i.jsx)("div",{className:t.value,children:"T1503"}),(0,i.jsx)("div",{className:t.label,children:(0,i.jsx)(c.A,{...u.A.PRODUCT_NUMBER})})]}),(0,i.jsx)("div",{className:t.divider,children:"-"}),(0,i.jsxs)("div",{className:t.grey400,children:[(0,i.jsx)("div",{className:t.value,children:"25G"}),(0,i.jsx)("div",{className:t.quantitylabel,children:(0,i.jsx)(c.A,{...u.A.PACK_SIZE_QUANTITY})})]})]}),(0,i.jsx)(s.A,{variant:"body2",className:n(t.vr4,t.copyText),children:(0,i.jsx)(c.A,{...u.A.ADDITIONAL_EXAMPLES})}),(0,i.jsxs)(o.A,{container:!0,justifyContent:"center",alignItems:"flex-start",className:n(t.additionalExamplesContainer),children:[(0,i.jsx)(o.A,{item:!0,xs:12,md:6,className:t.vr4,children:(0,i.jsxs)(s.A,{variant:"body1",className:t.boldWeight,children:[(0,i.jsx)("span",{className:t.purple,children:"705578"}),(0,i.jsx)("span",{className:t.grey400,children:"-5MG-PW"})]})}),(0,i.jsx)(o.A,{item:!0,xs:12,md:6,className:t.vr4,children:(0,i.jsxs)(s.A,{variant:"body1",className:t.boldWeight,children:[(0,i.jsx)("span",{className:t.purple,children:"PL860-CGA/SHF"}),(0,i.jsx)("span",{className:t.grey400,children:"-1EA"})]})}),(0,i.jsx)(o.A,{item:!0,xs:12,md:6,className:t.vr4,children:(0,i.jsxs)(s.A,{variant:"body1",className:t.boldWeight,children:[(0,i.jsx)("span",{className:t.purple,children:"MMYOMAG"}),(0,i.jsx)("span",{className:t.grey400,children:"-74K-13"})]})}),(0,i.jsxs)(o.A,{item:!0,xs:12,md:6,children:[(0,i.jsx)(s.A,{variant:"body1",children:(0,i.jsx)("span",{className:t.boldWeight,children:"1000309185"})}),(0,i.jsxs)(s.A,{variant:"body1",children:[(0,i.jsx)(c.A,{id:"ENTER_AS_PRODUCT_NUMBER",defaultMessage:"enter as"})," ",(0,i.jsx)("span",{className:n(t.purple,t.boldWeight),children:"1.00030"}),(0,i.jsx)("span",{className:n(t.grey400,t.boldWeight),children:"9185"}),(0,i.jsx)("span",{children:")"})]})]})]})]}),(0,i.jsxs)(s.A,{variant:"body2",className:t.copyText,children:[(0,i.jsx)(c.A,{...u.A.HAVING_TROUBLE}),(0,i.jsx)(m.N,{href:p.Vc.customerSupport(),passHref:!0,children:(0,i.jsx)(d.A,{onClick:()=>a?a("how to find the product number - technical service",{action:"contact technical service - how to find the product number",component:"right rail",elementType:"link",elementText:"technical service",linkUrl:p.Vc.customerSupport()}):null,href:"passHref",children:(0,i.jsx)(c.A,{...u.A.TECHNICAL_SERVICE})})})," ",(0,i.jsx)(c.A,{...u.A.FOR_ASSISTANCE})]})]})};t(14232);var x=t(77742);let y=(0,n.n9)()(e=>({heading:{marginTop:e.spacing(4)},banner:{alignItems:"start",background:e.palette.background.grey,display:"flex",flexDirection:"column",paddingBottom:e.spacing(4),paddingLeft:e.spacing(4),paddingTop:e.spacing(4),width:"100%",[e.breakpoints.up("sm")]:{alignItems:"start",paddingLeft:e.spacing(6)},"& p":{fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(15)}}},bodyText:{marginBottom:e.spacing(2)}})),A=e=>{let{type:a,requestCertLinkClicked:t}=e,{classes:n}=y(),{formatMessage:r}=(0,x.A)(),l="request "+a.toLowerCase(),o=l+" link";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{variant:"h3",className:n.heading,children:r(u.A.NOT_FINDING_WHAT_YOU_ARE_LOOKING_FOR)}),(0,i.jsxs)("div",{className:n.banner,children:[(0,i.jsx)(s.A,{variant:"body1",className:n.bodyText,children:r(u.A.REQUEST_CERTIFICATE_INSTRUCTIONS,{type:a})}),(0,i.jsx)(s.A,{variant:"body1",children:(0,i.jsx)(d.A,{href:p.Vc.customerSupport(),onClick:()=>t?t(o,{action:l,component:"right rail",elementType:"link",elementText:l,linkUrl:p.Vc.customerSupport()}):null,children:r(u.A.REQUEST_CERTIFICATE,{type:a})})})]})]})},v=(0,n.n9)()(e=>({accordionContainer:{display:"flex",flexDirection:"column",gap:e.spacing(6),marginTop:e.spacing(4)},accordion:{background:e.palette.background.grey,"& h2":{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightMedium,letterSpacing:"normal",paddingLeft:e.spacing(2),textTransform:"none",[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(16),paddingLeft:e.spacing(4)}}},accordionDetails:{background:e.palette.background.grey,display:"flex",flexDirection:"column",padding:e.spacing(0,4),[e.breakpoints.up("md")]:{padding:e.spacing(0,6)}}})),b=e=>{let{analyticsCallback:a,certificateType:t}=e,{classes:n}=v(),o=(e,t)=>{let i=t?"expand":"hide";a("".concat(e," - ").concat(i),{action:"".concat(i," - ").concat(e),component:"right rail",elementType:"accordion",elementText:e.toLowerCase()})};return(0,i.jsxs)("div",{className:n.accordionContainer,children:[(0,i.jsxs)(r.O,{children:[(0,i.jsx)(r.A,{summary:(0,i.jsx)(c.A,{id:"HOW_TO_FIND_PRODUCT_NUMBER",defaultMessage:"How to Find the Product Number"}),details:(0,i.jsx)(h,{techServiceLinkClicked:a}),summaryId:"findProductNumber-summary",summaryAriaControls:"findProductNumber-content",overrideClasses:{accordion:n.accordion,details:n.accordionDetails},expandedCallback:e=>o("How to Find the Product Number",e)}),t&&(0,i.jsx)(r.A,{summary:(0,i.jsx)(c.A,{id:"HOW_TO_FIND_LOT_NUMBER",defaultMessage:"How to Find a Lot/Batch Number for {formType}",values:{formType:t}}),details:(0,i.jsx)(l.A,{type:t,isAccordion:!0,isDialog:!0,customerSupportLinkClicked:a}),summaryId:"findLotNumber-summary",summaryAriaControls:"findLotNumber-content",overrideClasses:{accordion:n.accordion,details:n.accordionDetails},expandedCallback:e=>o("How to Find a Lot/Batch Number for ".concat(t),e)})]}),t&&(0,i.jsx)(A,{requestCertLinkClicked:a,type:t})]})}},85150:(e,a,t)=>{t.d(a,{A:()=>n,I:()=>i});let i=(0,t(61261).A)(e=>({table:{"& .MuiTableCell-root.MuiTableCell-head":{padding:e.spacing(0,2),"&:first-child":{padding:e.spacing(0,2,0,.5)},"&:last-child":{padding:e.spacing(0,.5,0,2)}},"& .MuiTableCell-root":{padding:e.spacing(2),"&:first-child":{padding:e.spacing(2,2,2,.5)},"&:last-child":{padding:e.spacing(1,.5,1,2)}}},multiCountryTable:{paddingBottom:e.spacing(7)},tRow:{display:"flex",alignItems:"center","& > div":{lineHeight:1.3,"&:nth-child(1)":{width:".5%"},"&:nth-child(2)":{width:"15%"},"&:nth-child(3)":{width:"12%"},"&:nth-child(4)":{flexGrow:1,flexShrink:0},"&:nth-child(5)":{width:"14%",minWidth:"fit-content"},"&:nth-child(6)":{width:"17%",maxWidth:e.typography.pxToRem(180)},"&:not(:last-child)":{paddingRight:e.spacing(2)}}},tHeadRow:{whiteSpace:"nowrap","& > *":{fontSize:e.typography.pxToRem(12)}},tBodyRow:{padding:e.spacing(3,0),borderBottom:"1px solid ".concat(e.palette.grey[300])},tfoot:{backgroundColor:"white"},addToCart:{marginTop:e.spacing(4),padding:e.spacing(0,4)},countryName:{fontWeight:e.typography.fontWeightBold,fontSize:e.typography.pxToRem(19),paddingBottom:e.spacing(3),paddingLeft:e.spacing(2)},listPrice:{fontSize:e.typography.pxToRem(11),textDecoration:"line-through",color:e.palette.common.black},shipEstimateColumn:{display:"flex",alignItems:"center"},availabilityUnknownIcon:{fontSize:e.typography.pxToRem(20),color:e.palette.warning.main,marginRight:e.spacing(1.5),width:"19px",verticalAlign:"bottom"},availableIcon:{fontSize:e.typography.pxToRem(20),color:e.palette.success.main,marginRight:e.spacing(1.5),width:"19px",height:"auto",verticalAlign:"bottom"},seeDealerOptionsText:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),textTransform:"capitalize",marginLeft:e.spacing(1),verticalAlign:"inherit",display:"inline-flex"},seeDealerOptionsLink:{[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(16),marginLeft:e.spacing(1)},[e.breakpoints.down("sm")]:{verticalAlign:"baseline"},fontWeight:e.typography.fontWeightBold,textTransform:"capitalize",color:e.palette.primary.main,cursor:"pointer"},tBodyButtonRow:{padding:e.spacing(3,0),justifyContent:"flex-end"},addToCartButton:{minWidth:e.typography.pxToRem(136)},bulkOrderLink:{fontSize:e.typography.pxToRem(16),marginRight:e.spacing(6)},buttonFilled:{marginRight:e.spacing(6),"&, &:hover":{backgroundColor:e.palette.common.white}},errorIcon:{marginRight:e.spacing(1)}})),n=i},85366:(e,a,t)=>{t.d(a,{Ay:()=>_,j5:()=>R});var i=t(37876),n=t(14232),r=t(8733),l=t(61261),o=t(34415),s=t(36503),d=t(5411),c=t(11148),u=t(54753),p=t(97710),m=t(52413),g=t(46236),h=t(71541),x=t(12197),y=t(35877),A=t(49691),v=t(59131),b=t(86024),f=t(66896),j=t(54034),N=t(52710);let C=(0,l.A)(e=>({mainContainer:{padding:e.spacing(10,4,4,4),[e.breakpoints.up("md")]:{padding:e.spacing(8)}},imgWrapper:{display:"flex",justifyContent:"center",alignItems:"center",padding:e.spacing(4),marginTop:e.spacing(4),height:e.typography.pxToRem(300),border:"1px solid ".concat(e.palette.grey[400]),borderRadius:"4px","& img":{width:"auto",maxWidth:"100%",maxHeight:"100%"},[e.breakpoints.up("md")]:{marginTop:0,minWidth:"36%","& img":{width:"100%"}}},link:{fontWeight:e.typography.fontWeightBold},substance:{display:"flex",flexDirection:"column",marginBottom:0,[e.breakpoints.up("md")]:{flexDirection:"row",marginBottom:e.spacing(8)}},substanceName:{fontSize:e.typography.pxToRem(18),marginBottom:e.spacing(4)},substanceDetailsContainer:{padding:e.spacing(5,5,5,0),maxWidth:"100%","& .MuiGrid-container":{marginBottom:e.spacing(1.5)},[e.breakpoints.up("md")]:{padding:e.spacing(0,5),minWidth:"64%"}},dialogHeader:{backgroundColor:e.palette.background.grey,fontSize:e.typography.pxToRem(12),padding:e.spacing(2),display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},caretRight:{width:"5px",marginLeft:e.spacing(1)},detailsLink:{fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main,display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:e.spacing(4),[e.breakpoints.up("md")]:{marginTop:e.spacing(1)}},breakWord:{wordBreak:"break-word"},breakAll:{wordBreak:"break-all"},mobileProductTable:{borderTop:"1px solid ".concat(e.palette.grey[400]),borderBottom:"1px solid ".concat(e.palette.grey[400]),"& li":{padding:e.spacing(4,0)}}})),T=e=>{let{catalogOverride:a=null,catalogType:t,open:n,setModalOpen:l,substance:s,substanceName:d}=e,T=C(),S=(0,y.A)(),I=(0,c.rd)(),k=(0,p.h2)({focus:I.query.focus}),R=(0,h.A)(S.breakpoints.up("md")),{products:_,images:E,name:P,synonyms:M,casNumber:L,molecularWeight:w,linearFormula:O,aliases:D,id:B}=s,F=null==D?void 0:D.find(e=>e.key===p.VT.EcNumber),W=null==D?void 0:D.find(e=>e.key.includes(p.VT.BeilsteinRegistryNumber)),U=null!=a?a:(0,p.vN)(null!=t?t:k.focus),z=e=>1===_.length?(0,i.jsx)(m.N,{...c.aR.index(_[0].brand.key,_[0].productKey,{catalog:U}),passHref:!0,children:(0,i.jsx)(o.A,{children:e})}):(0,i.jsx)(m.N,{...c.SL.index(B,U),passHref:!0,children:(0,i.jsx)(o.A,{children:e})});return(0,i.jsx)(b.A,{open:n,size:b.I.Large,onClose:()=>l(!1),children:(0,i.jsxs)("div",{className:T.mainContainer,children:[(0,i.jsxs)("div",{className:T.substance,children:[(0,i.jsx)("div",{className:T.imgWrapper,children:(0,i.jsx)(g.A,{image:E[0],altTextFallback:P})}),(0,i.jsxs)("div",{className:T.substanceDetailsContainer,children:[(0,i.jsx)(x.A,{className:T.substanceName,component:"h2",variant:"h3",children:d}),(null==M?void 0:M.length)?(0,i.jsx)(A.Ay,{message:u.A.SYNONYMS,searchValue:M.join(", "),classes:T.breakWord}):null,w?(0,i.jsx)(A.Ay,{message:u.A.MOLECULAR_WEIGHT,searchValue:w,classes:T.breakAll}):null,L?(0,i.jsx)(A.Ay,{message:u.A.CAS_NO,searchValue:L,classes:T.link,searchFocusType:(0,p.UQ)(k.focus),productSearchType:p.mI.CasNumber}):null,F?(0,i.jsx)(A.Ay,{message:u.A.EC_NO,searchValue:F.value,searchFocusType:null!=a?a:(0,p.UQ)(k.focus),productSearchType:p.mI.EgecNumber,classes:T.link}):null,W?(0,i.jsx)(A.Ay,{message:u.A.BEILSTEIN_NO,searchValue:W.value,classes:T.breakAll}):null,O?(0,i.jsx)(A.Ay,{message:u.A.MOLECULAR_FORMULA,searchValue:O,classes:T.breakWord}):null]})]}),(0,i.jsx)("div",{children:(0,i.jsx)(N.M,{source:"srp - ".concat(k.focus),children:R?(0,i.jsx)(v.Ay,{products:_,displayBadgesOnProduct:!0,focus:null!=a?a:(0,p.UQ)(k.focus),displayViewLink:!1}):(0,i.jsx)("div",{className:T.mobileProductTable,children:(0,i.jsx)(j.A,{products:_,displayBadgesOnProduct:!0,focus:null!=a?a:(0,p.UQ)(k.focus)})})})}),(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:T.detailsLink,children:(0,i.jsx)(r.A,{...u.A.VIEW_FULL_DETAILS,children:e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{children:z(e)}),(0,i.jsx)(f.A,{className:T.caretRight})]})})})})]})})};var S=t(61206),I=t(96707);let k=(0,l.A)(e=>({cardColor:{backgroundColor:e.palette.common.white,[e.breakpoints.down("xs")]:{background:e.palette.background.grey,padding:0}},substanceNameWrapper:{paddingLeft:30,[e.breakpoints.down("xs")]:{paddingTop:0,paddingLeft:0,pointerEvents:"none"}},substanceName:{fontWeight:e.typography.fontWeightBold,fontSize:e.typography.pxToRem(16),lineHeight:"1.43rem",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box","-webkit-line-clamp":2,"-webkit-box-orient":"vertical",[e.breakpoints.down("xs")]:{color:e.palette.common.black}},link:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold},button:{bottom:5,fontSize:e.typography.pxToRem(16),opacity:0,position:"absolute",transition:"opacity .2s ease-in-out",width:"160px",[e.breakpoints.down("md")]:{display:"none"}},imgContainer:{paddingTop:"0 !important"},imgButtonGroup:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},imgWrapper:{height:e.typography.pxToRem(185),width:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center","& img":{maxWidth:"85%",maxHeight:"85%",height:"auto",width:"auto"},[e.breakpoints.down("md")]:{height:e.typography.pxToRem(120),"& img":{maxWidth:"65%",maxHeight:"65%",border:"1px solid ".concat(e.palette.grey[600])}}},substanceGridWrapper:{[e.breakpoints.down("md")]:{paddingTop:30}},productDetails:{fontSize:e.typography.pxToRem(12),minHeight:60,paddingLeft:30,[e.breakpoints.down("xs")]:{paddingLeft:0}},percentage:{fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(1)},truncate:{width:140,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},similarity:{marginTop:e.spacing(4),marginBottom:e.spacing(1)}})),R=e=>{if(!e||!e.length)return null;let a=e[0];return 1===e.length?a.similarity:e.slice(1,e.length).every(e=>e.similarity===a.similarity)?a.similarity:null},_=e=>{let{substance:a,catalogOverride:t=null,colorIndex:l=0}=e,h=k(),x=a.products?[...a.products]:[a],{casNumber:y,molecularWeight:v,linearFormula:b,name:f,id:j,images:N}={...a,products:x},[C,_]=(0,n.useState)(!1),E=(0,c.rd)(),P=E.query.catalogType,M=(0,p.h2)({focus:E.query.focus,catalogType:(0,p.vN)(P)}),L=null!=t?t:(0,p.vN)(M.catalogType||M.focus),w=()=>{let e=(0,i.jsx)("title",{className:h.substanceName,children:(0,i.jsx)("span",{title:f,children:(0,i.jsx)(S.A,{value:f})})});return(null==x?void 0:x.length)===1?(0,i.jsx)(m.N,{...c.aR.index(x[0].brand.key,x[0].productKey,{catalog:L}),passHref:!0,children:(0,i.jsx)(o.A,{children:e})}):(0,i.jsx)(m.N,{...c.SL.index(j,L),passHref:!0,children:(0,i.jsx)(o.A,{children:e})})},O=M.focus===p.Xc.StructureSearch?R(x):null;return(0,i.jsxs)(s.A,{container:!0,alignItems:"flex-start","data-testid":"srp-substance-group-grid",id:"srp-substance-group-grid",className:l%2==0?h.cardColor:"",children:[(0,i.jsx)(s.A,{item:!0,xs:4,sm:12,className:h.imgContainer,children:(0,i.jsxs)("div",{className:h.imgButtonGroup,children:[(0,i.jsx)("div",{className:h.imgWrapper,children:(0,i.jsx)(g.A,{image:N[0],altTextFallback:f,width:"270",height:"185"})}),(0,i.jsx)(d.A,{variant:"contained",color:"primary",className:h.button,onClick:()=>_(!0),children:(0,i.jsx)(r.A,{...u.A.QUICK_VIEW})})]})}),(0,i.jsxs)(s.A,{xs:8,sm:12,container:!0,className:h.substanceGridWrapper,children:[(0,i.jsx)("div",{className:h.substanceNameWrapper,children:w()}),(0,i.jsx)(s.A,{container:!0,className:h.productDetails,children:(0,i.jsxs)(s.A,{container:!0,item:!0,direction:"column",sm:12,spacing:1,children:[y?(0,i.jsx)(s.A,{item:!0,children:(0,i.jsxs)(I.A,{display:"flex","flex-direction":"row",children:[(0,i.jsx)(A.qj,{message:u.A.CAS_NUMBER_ABBREV}),(0,i.jsx)(A.m5,{searchFocusType:(0,p.UQ)(M.focus),searchValue:y,productSearchType:p.mI.CasNumber,classes:h.link})]})}):null,v?(0,i.jsx)(s.A,{item:!0,children:(0,i.jsxs)(I.A,{display:"flex","flex-direction":"row",children:[(0,i.jsx)(A.qj,{message:u.A.MOLECULAR_WEIGHT_ABBREV}),(0,i.jsx)(S.A,{value:v,className:h.truncate})]})}):null,b?(0,i.jsx)(s.A,{item:!0,children:(0,i.jsxs)(I.A,{display:"flex","flex-direction":"row",children:[(0,i.jsx)(A.qj,{message:u.A.MOLECULAR_FORMULA_ABBREV}),(0,i.jsx)(S.A,{value:b,className:h.truncate})]})}):null]})}),O?(0,i.jsx)(s.A,{container:!0,item:!0,sm:12,className:h.similarity,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{item:!0,children:(0,i.jsx)("span",{className:h.percentage,children:"".concat(O,"% ")})}),(0,i.jsx)(s.A,{item:!0,children:(0,i.jsx)(r.A,{...u.A.SIMILARITY})})]})}):null]}),(0,i.jsx)(T,{catalogOverride:L,catalogType:L,open:C,setModalOpen:_,substance:a,substanceName:w()})]})}},85581:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876);t(14232);var n=t(77328),r=t.n(n),l=t(5411),o=t(61261),s=t(11148),d=t(52413),c=t(930),u=t(50524),p=t(49995),m=t(8733),g=t(92827);let h=(0,o.A)(e=>({link:{border:"2px solid transparent",display:"block",fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,"&:focus-visible":{border:"2px solid ".concat(e.palette.primary.main),borderRadius:e.shape.borderRadius,boxShadow:"0 0 6px 0 ".concat(e.palette.primary.main),outline:"none"}},footer:{marginTop:e.spacing(6)},footerRaisedCard:{marginTop:e.spacing(4)},btn:{whiteSpace:"nowrap"}})),x=e=>{var a;let{product:t,testId:n,onViewPrice:o,onLinkClick:x,preloadCardImages:y=!1,className:A,isRaisedCardLayout:v,index:b,type:f,hideProductImg:j=!1,displayDiscount:N}=e,C=(0,s.rd)(),T=(null==C?void 0:null===(a=C.query)||void 0===a?void 0:a.catalog)||"",S=h(),I="product-card-".concat(t.productNumber).concat(t.brand.key,"-").concat(n),k=(0,u.Gd)(),R="".concat(f," - ").concat(k);return(0,i.jsxs)("div",{className:(0,p.A)(A,"promotions-slider-div"),children:[y&&(0,i.jsx)(r(),{children:(0,i.jsx)("link",{rel:"preload",href:t.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(d.N,{...s.aR.index(t.brand.key,t.productKey,{catalog:T}),passHref:!0,children:(0,i.jsx)("a",{className:S.link,"data-testid":I,id:I,onClick:()=>{x&&x(),(0,c.e)({product:t,indexPosition:b,creativeSlot:R,pageType:k})},children:(0,i.jsx)(g.D,{productNumber:t.productNumber,brand:t.brand,name:t.name,description:t.description,image:j?void 0:t.images[0],isRaisedCardLayout:v,displayDiscount:N,discount:t.discount})})}),(0,i.jsx)("div",{className:(0,p.A)({[S.footer]:!v,[S.footerRaisedCard]:v}),children:(0,i.jsx)(l.A,{size:"large",color:"primary",variant:"outlined",fullWidth:!0,onClick:()=>{o(),(0,c.e)({product:t,indexPosition:b,creativeSlot:R,pageType:k})},className:S.btn,children:(0,i.jsx)(m.A,{id:"QUICK_VIEW",defaultMessage:"Quick View"})})})]})}},86367:(e,a,t)=>{t.d(a,{A:()=>eu});var i=t(37876),n=t(14232),r=t(39324),l=t.n(r),o=t(89099),s=t(67994),d=t(61261),c=t(78206),u=t(28888);function p(){let e=(0,u._)(["\n query PricingAndAvailabilityForCustomer(\n $input: GetCustomerPricingForProductInput!\n ) {\n getCustomerPricingForProduct(input: $input) {\n products {\n dealerId\n items {\n sku\n brand\n listPrice\n price\n qty\n cartItemId\n }\n }\n }\n }\n"]);return p=function(){return e},e}let m=(0,t(82897).J1)(p());var g=t(54753),h=t(7645),x=t(5411),y=t(77742),A=t(8733),v=t(49995),b=t(776),f=t(36382),j=t(10113),N=t(17679),C=t(11788),T=t(88887),S=t(68748),I=t(61206),k=t(21289),R=t(70114);let _=(0,d.A)(e=>({shippingMessage:{display:"flex",alignItems:"center",fontSize:e.typography.pxToRem(14),"& > *":{marginRight:e.spacing(2)}}})),E=e=>{let{material:a}=e,t=_();return(0,i.jsxs)(i.Fragment,{children:[a.shipsToday&&(0,i.jsxs)(h.A,{mb:6,className:t.shippingMessage,children:[(0,i.jsx)(k.A,{}),(0,i.jsx)(A.A,{...g.A.SHIPS_TODAY})]}),a.freeFreight&&(0,i.jsxs)(h.A,{mb:6,className:t.shippingMessage,children:[(0,i.jsx)(R.A,{color:"secondary"}),(0,i.jsx)(A.A,{...g.A.FREE_FREIGHT})]})]})},P=(0,d.A)(e=>({vr4:{marginBottom:e.spacing(4)}})),M=e=>{let{contactInfo:a}=e,t=P();return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)("div",{className:t.vr4,children:(0,i.jsx)("i",{children:(0,i.jsx)(A.A,{id:"INQUIRE_FOR_PRICE_AND_AVAILABILITY_MODAL",defaultMessage:"This item is not able to be purchased as a guest user. For further information, please contact us at {inquirePriceContactInfo}.",values:{inquirePriceContactInfo:a}})})}):(0,i.jsx)("div",{className:t.vr4,children:(0,i.jsx)("i",{children:(0,i.jsx)(A.A,{id:"INQUIRE_FOR_PRICE_AND_AVAILABILITY",defaultMessage:"Please inquire for price and availability"})})})})};var L=t(35967),w=t(12197),O=t(95349);let D=(0,d.A)(e=>({pricingInfo:{display:"flex",alignItems:"flex-end",[e.breakpoints.down("sm")]:{flexDirection:"column-reverse",alignItems:"flex-start"}},listPrice:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightRegular,textDecoration:"line-through",marginLeft:e.spacing(3),[e.breakpoints.down("sm")]:{margin:e.spacing(0,0,2)}}})),B=e=>{let{material:a}=e,t=D();return a.hidePriceMessageKey?(0,i.jsx)(O.A,{msgKey:a.hidePriceMessageKey}):(0,i.jsxs)("div",{className:t.pricingInfo,children:[!!a.price&&(0,i.jsx)(w.A,{variant:"h2",component:"div",children:(0,i.jsx)(L.Gr,{style:"currency",currencyDisplay:"symbol",currency:a.currency,value:a.price})}),a.price&&a.listPrice&&a.listPrice>a.price?(0,i.jsx)(w.A,{variant:"h2",component:"div",className:t.listPrice,children:(0,i.jsx)(L.Gr,{style:"currency",currencyDisplay:"symbol",currency:a.currency,value:a.listPrice})}):null]})};var F=t(77501),W=t(75352),U=t(85150),z=t(73431),q=t(17685);let H=e=>{let{dealerCount:a}=e,{formatMessage:t}=(0,y.A)(),n=t(g.A.SEE_ALL_BUYING_OPTIONS);return a?(0,i.jsx)(i.Fragment,{children:"".concat(n," (").concat(a,")")}):(0,i.jsx)(i.Fragment,{children:"".concat(n)})},V=e=>{let{preferredDealerName:a,noPriceForDealer:t}=e,{formatMessage:n}=(0,y.A)(),r=(0,U.A)();if(t)return(0,i.jsxs)("span",{className:r.seeDealerOptionsText,children:[(0,i.jsx)(F.default,{color:"error",className:r.errorIcon}),(0,i.jsx)(A.A,{...g.A.PRICING_AND_AVAILABILITY_TEMPORARILY_UNAVAILABLE_FROM,values:{preferredDealerName:a}})]});let l=a?"".concat(n(g.A.SHIPPED_SOLD_BY)," ").concat(a):"";return l?(0,i.jsx)("span",{className:r.seeDealerOptionsText,children:"".concat(l," ")}):(0,i.jsx)(i.Fragment,{})},K=e=>{let{customerPricingResponse:a,materialPricing:t,selectCallback:r,setFieldValue:l,values:o}=e,s=(0,U.A)(),{getSitePreference:d,isDTAQZuCustomer:c,currentUserState:u,userIsLoggedIn:p}=(0,C.iZ)(),{userSession:m}=(0,q.j)(),[g,y]=(0,n.useState)(0),[A,v]=(0,n.useState)(!1),b=d(C.VD.PreferredDealerInfo),f=null==b?void 0:b.orgName,[j,N]=(0,n.useState)(f),{data:T,refetch:S,error:I}=(0,z.AW)({context:{userSession:m},errorPolicy:"all",variables:{countryCode:null==m?void 0:m.country,stateCode:String(u),searchTerm:""},skip:!p||!c}),k=async e=>{await S({countryCode:m.country,stateCode:String(u),searchTerm:e.toLowerCase()})};return(0,n.useEffect)(()=>{if(T&&0===g){var e;y(null==T?void 0:null===(e=T.getDealers)||void 0===e?void 0:e.length)}},[T]),(0,n.useEffect)(()=>{if(null==a?void 0:a.data){var e,t,i;let n=null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.getCustomerPricingForProduct)||void 0===e?void 0:e.products,r=null==n?void 0:null===(i=n[0])||void 0===i?void 0:i.dealerId,{organizationName:l=null}=null==T?void 0:T.getDealers.find(e=>e.id===r);v(!1),N(l)}},[null==a?void 0:a.data]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(h.A,{mb:6,children:[f&&(0,i.jsx)(V,{preferredDealerName:null!=j?j:f,noPriceForDealer:!1}),(0,i.jsx)(x.A,{variant:"text",className:s.seeDealerOptionsLink,onClick:()=>v(!0),children:(0,i.jsx)(H,{dealerCount:g})})]}),A&&(0,i.jsx)(W.A,{dealers:(null==T?void 0:T.getDealers)||[],disabled:!1,error:I,isSavingDealerPreference:!1,materialPricing:t,onDealerSelect:r,onSearch:k,open:A,onClose:()=>v(!1),setFieldValue:l,setIsModalOpen:v,values:o})]})};var G=t(10759),Q=t(70210),$=t(71662),Y=t(61622),X=t(40002),J=t(77660),Z=t(40352),ee=t(81232),ea=t(83707),et=t(78272),ei=t(52710),en=t(75020),er=t(86680),el=t(88700),eo=t(38882),es=t(27651),ed=t(94295);let ec=(0,d.A)(e=>({body:{padding:e.spacing(4),backgroundColor:e.palette.common.white},materialInfo:{marginBottom:e.spacing(2),display:"flex",justifyContent:"space-between"},availability:{marginBottom:e.spacing(6)},infoIcon:{fontSize:e.typography.pxToRem(16)},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}},expiryDate:{fontSize:e.typography.pxToRem(12)},minimumQuantityError:{color:e.palette.error.main,fontWeight:"bold"},minimumQuantity:{fontSize:e.typography.pxToRem(12),marginBottom:e.spacing(2)}})),eu=e=>{var a,t,r;let{materialPricing:d,canAddToCart:u,renderSecondaryAction:p,marketplaceOfferId:k,productName:R,erpType:_,productKey:P,brandKey:L,images:w,discontinuedPricingInfo:O,multiCountryData:D}=e,F=ec(),W=(0,o.useRouter)(),U=(0,s.m)(),{formatMessage:z}=(0,y.A)(),q=(0,Z.Ay)(),H=(null==d?void 0:d.length)?null===(a=d[0])||void 0===a?void 0:a.materialNumber:"",V={materialNumber:H,quantity:1,marketplaceOfferId:k},[eu,ep]=(0,n.useState)(V),{getSitePreference:em,isDTAQZuCustomer:eg,isMultiCountryUser:eh}=(0,C.iZ)(),ex=(0,ed.L)(es.ID.countryCode),ey=(0,ed.L)(es.TW.countryCode),{publicRuntimeConfig:{featureFlags:eA}}=l()(),ev=em(C.VD.HideAddToCartForPrepackItems),[eb,ef]=(0,n.useState)(d[0]),[ej,eN]=(0,n.useState)(()=>(0,et.aA)(V.quantity,null==eb?void 0:eb.minOrderQuantity,ex||ey)),[eC,eT]=(0,n.useState)(""),[eS,eI]=(0,n.useState)(!1),[ek,eR]=(0,n.useState)(""),[e_,eE]=(0,n.useState)(),eP=em(C.VD.PreferredDealerId),eM=(null===(t=W.query)||void 0===t?void 0:t.focus)==="buildingblocks"||(null===(r=W.query)||void 0===r?void 0:r.context)==="bbe",eL=eA.dealerCartEnabled&&eg&&!eM&&!!eP,ew=W.asPath.includes("/compare"),eO=(0,f.g9)(),eD=(0,n.useContext)(ei.E),eB=async(e,a)=>{let{setSubmitting:t,resetForm:i}=a;(0,b.xy)({items:[eb],productListPageName:W.asPath.includes("/search")?b.L1.SearchResultPage:b.L1.ProductDetailPage}),(0,er.p8)([e],[eb],el.k9.SearchResultPage),await eO([{materialNumber:e.materialNumber,quantity:e.quantity,marketplaceOfferId:k}],t,i,"marketplace"===eb.catalogType),eN((0,et.aA)(V.quantity,null==eb?void 0:eb.minOrderQuantity,ex||ey))},eF=e=>{let[a]=d.filter(a=>(null==a?void 0:a.materialNumber)===e);ef(a)},eW=(0,eo.h)(D,(e,a)=>{var t,i;eT(a);let n=null==D?void 0:null===(t=D.getPricingForMultiCountryProducts)||void 0===t?void 0:t.filter(e=>(null==e?void 0:e.country)===a)[0],[r]=null!==(i=null==n?void 0:n.materialPricing)&&void 0!==i?i:[];ef(r)}),eU=async(e,a,t)=>{let i=t.map(e=>({sku:e.materialNumber,brand:e.brand,listPrice:e.listPrice,product:"SBU".concat(e.productGroupSBU),qty:1}));eE(await U.query({query:m,variables:{input:{products:[{dealerId:e,items:i}]}}}))},ez=(e,a,t)=>{a.setFieldValue(t.name,e),eN((0,et.aA)(e,null==eb?void 0:eb.minOrderQuantity,ex||ey))},eq=()=>{(0,en.Sm)({action:"check availability details",section:"modal p&a",component:"modal",elementType:"link",elementText:"details",material:eb})};if((0,n.useMemo)(()=>ep(V),[H]),(0,n.useEffect)(()=>{eN((0,et.aA)(V.quantity,null==eb?void 0:eb.minOrderQuantity,ex||ey))},[eb]),(0,n.useEffect)(()=>{var e,a,t,i;eI(!!(null==eb?void 0:null===(a=eb.availabilities)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.displayInquireLink));let n=null==eb?void 0:null===(i=eb.availabilities)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.contactInfo;eR([null==n?void 0:n.contactPhone,null==n?void 0:n.contactEmail].filter(e=>!!e).join(" ".concat(z(g.A.OR)," ")))},[eb,z]),(0,n.useEffect)(()=>{if(null==e_?void 0:e_.data){var e,a,t;let i=null==e_?void 0:null===(a=e_.data)||void 0===a?void 0:null===(e=a.getCustomerPricingForProduct)||void 0===e?void 0:e.products,n=null==i?void 0:null===(t=i[0])||void 0===t?void 0:t.items;d.forEach(e=>{var a;let t=null==n?void 0:null===(a=n.find(a=>(null==a?void 0:a.sku)===e.materialNumber))||void 0===a?void 0:a.price;e.price=t});let r=d.find(e=>e.materialNumber===eb.materialNumber);r&&ef(r)}},[null==e_?void 0:e_.data]),(0,n.useEffect)(()=>{var e,a;if(null==D?void 0:null===(e=D.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let[e]=null==D?void 0:D.getPricingForMultiCountryProducts;eT(null!==(a=null==e?void 0:e.country)&&void 0!==a?a:"")}},[]),(!Array.isArray(d)||!d.length)&&O){let e=(0,Y.j)(null==O?void 0:O.replacementProducts);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ee.A,{discontinuedPricingInfo:O}),!ew&&e&&(0,i.jsx)($.A,{type:X.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:P,brandKey:L,images:w},products:e,slidesToShow:q({xs:1,sm:2,lg:3}),withoutControls:e.length<=4})]})}return eb||ef(d[0]),(0,i.jsx)("div",{className:F.body,children:(0,i.jsx)(c.l1,{initialValues:eu,onSubmit:eB,enableReinitialize:!0,children:e=>{var a;let{isSubmitting:t,initialValues:n,values:r,setFieldValue:l}=e;return eu.materialNumber!==n.materialNumber?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(c.lV,{children:[eh&&D?eW:null,eh?null==D?void 0:null===(a=D.getPricingForMultiCountryProducts)||void 0===a?void 0:a.map((e,a)=>eC===(null==e?void 0:e.country)?(0,i.jsxs)("div",{children:[(0,i.jsx)(h.A,{mb:1,children:(0,i.jsx)("label",{htmlFor:"TEMP",children:(0,i.jsx)(A.A,{...g.A.SKU})})}),(0,i.jsx)(h.A,{mb:4,children:(0,i.jsx)(c.D0,{name:"materialNumber",children:a=>{let{form:n,field:r,meta:l}=a;return(0,i.jsx)(N.A,{field:r,meta:l,form:n,size:"large",onChange:e=>{r.onChange(e),n.setFieldValue("quantity",1),eF(e.target.value)},disabled:t||(null==e?void 0:e.materialPricing.length)<2,options:null==e?void 0:e.materialPricing.map(e=>({label:e.materialNumber,value:e.materialNumber}))})}})}),(0,i.jsx)("div",{className:F.materialInfo,children:(0,i.jsx)(I.A,{value:eb.packageSize})}),!eS&&(0,i.jsx)(B,{material:eb}),(0,i.jsx)(h.A,{mt:2,children:eb.isPBAvailable?(0,i.jsx)(Q.A,{materialNumber:eb.materialNumber,brand:eb.brand,productName:null!=R?R:"",erp_type:_}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(T.A,{material:eb,canAddToCart:u,gaDetailsClick:eq})}),(0,i.jsx)(E,{material:eb}),(0,i.jsx)(ea.A,{expirationDate:null==eb?void 0:eb.expirationDate,displayColon:!0,displayInline:!0,outerClassName:F.expiryDate}),(null==eb?void 0:eb.minOrderQuantity)&&(null==eb?void 0:eb.minOrderQuantity)>1?(0,i.jsxs)("div",{className:(0,v.A)(F.minimumQuantity,{hasMoqError:F.minimumQuantityError}),children:[(0,i.jsx)(A.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==eb?void 0:eb.minOrderQuantity]}):null,eS?(0,i.jsx)(M,{contactInfo:ek}):(0,i.jsx)(i.Fragment,{children:u&&!ev?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{mb:4,children:(0,i.jsx)(c.D0,{name:"quantity",children:e=>{let{form:a,field:n}=e;return(0,i.jsx)(S.A,{...n,size:"large",filled:!0,onChange:e=>ez(e,a,n),min:1,onBlur:()=>{n.value<1&&a.setFieldValue(n.name,1)},disabled:t,inputProps:{inputMode:"numeric"},error:!!ej})}})}),eL&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(K,{customerPricingResponse:e_,materialPricing:null==e?void 0:e.materialPricing,selectCallback:eU,setFieldValue:l,values:r})}),(0,i.jsx)(x.A,{type:"submit",variant:"contained",color:"secondary",disabled:t||ej,size:"large",fullWidth:!0,id:"mobile-p-and-a-add-to-cart",children:(0,i.jsx)(A.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})})]}):null}),eb.isBuyNow&&!ev?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(G.A,{materialNumber:r.materialNumber,quantity:r.quantity,gaType:"search results page"})}):null,ev?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(j.A,{quantity:r.quantity,materialNumber:eb.materialNumber,materialId:eb.materialId,type:eb.type,brand:null==eb?void 0:eb.brand,productName:null==eb?void 0:eb.materialDescription,productId:null==eb?void 0:eb.product})}),!!p&&p()]},a):null):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{mb:1,children:(0,i.jsx)("label",{htmlFor:"TEMP",children:(0,i.jsx)(A.A,{...g.A.SKU})})}),(0,i.jsx)(h.A,{mb:4,children:(0,i.jsx)(c.D0,{name:"materialNumber",children:e=>{let{form:a,field:n,meta:r}=e;return(0,i.jsx)(N.A,{field:n,meta:r,form:a,size:"large",onChange:e=>{n.onChange(e),a.setFieldValue("quantity",1),eF(e.target.value)},disabled:t||d.length<2,options:d.map(e=>({label:e.materialNumber,value:e.materialNumber}))})}})}),(0,i.jsx)("div",{className:F.materialInfo,children:(0,i.jsx)(I.A,{value:eb.packageSize})}),!eS&&(0,i.jsx)(B,{material:eb}),(0,i.jsx)(h.A,{mt:2,children:eb.isPBAvailable?(0,i.jsx)(Q.A,{materialNumber:eb.materialNumber,brand:eb.brand,productName:null!=R?R:"",erp_type:_}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(ei.M,{...eD,brand:eb.brand,item:eb.materialNumber,pricing:eb,children:(0,i.jsx)(T.A,{material:eb,canAddToCart:u,gaDetailsClick:eq})})}),(0,i.jsx)(E,{material:eb}),(0,i.jsx)(ea.A,{expirationDate:null==eb?void 0:eb.expirationDate,displayColon:!0,displayInline:!0,outerClassName:F.expiryDate}),(null==eb?void 0:eb.minOrderQuantity)&&(null==eb?void 0:eb.minOrderQuantity)>1?(0,i.jsxs)("div",{className:(0,v.A)(F.minimumQuantity,ej&&F.minimumQuantityError),children:[(0,i.jsx)(A.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==eb?void 0:eb.minOrderQuantity]}):null,eS?(0,i.jsx)(M,{contactInfo:ek}):(0,i.jsx)(i.Fragment,{children:u&&!ev?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{mb:4,children:(0,i.jsx)(c.D0,{name:"quantity",children:e=>{let{form:a,field:n}=e;return(0,i.jsx)(S.A,{...n,size:"large",filled:!0,onChange:e=>ez(e,a,n),min:1,onBlur:()=>{n.value<1&&a.setFieldValue(n.name,1)},disabled:t,inputProps:{inputMode:"numeric"},error:!!ej})}})}),eL&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(K,{customerPricingResponse:e_,materialPricing:d,selectCallback:eU,setFieldValue:l,values:r})}),(0,i.jsx)(x.A,{type:"submit",variant:"contained",color:"secondary",disabled:t||ej,size:"large",fullWidth:!0,id:"mobile-p-and-a-add-to-cart",children:(0,i.jsx)(A.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})})]}):null}),eb.isBuyNow&&!ev?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(G.A,{materialNumber:r.materialNumber,quantity:r.quantity,marketplace:eb.catalogType===J.Mh.Marketplace,gaType:"search results page"})}):null,ev?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(j.A,{quantity:r.quantity,materialNumber:eb.materialNumber,materialId:eb.materialId,type:eb.type,brand:null==eb?void 0:eb.brand,productName:null==eb?void 0:eb.materialDescription,productId:null==eb?void 0:eb.product})}),!!p&&p()]})]})})}})})}},86767:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876);t(14232);var n=t(49995),r=t(48547),l=t(61261),o=t(96241),s=t(76023),d=t(77660),c=t(49100),u=t(8759),p=t(21328),m=t(11788);let g=(0,l.A)(e=>({autoSuggestContainer:{position:"relative"},autoSuggest:{left:0,right:0,zIndex:1,position:"absolute",marginTop:e.spacing(2),maxHeight:268,overflowY:"auto"},autoSuggestItem:{fontSize:e.typography.pxToRem(14),paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),h=(e,a)=>{switch(a.type){case r.Ay.stateChangeTypes.touchEnd:case r.Ay.stateChangeTypes.mouseUp:case r.Ay.stateChangeTypes.blurInput:case r.Ay.stateChangeTypes.keyDownEscape:return{...a,inputValue:e.inputValue};default:return a}},x=e=>{let{value:a,onBlur:t,onChange:l,onSelect:x,rootClass:y,rootStyle:A,error:v,id:b,overrideMarketplaceByTag:f,...j}=e,{catalogType:N,filter:C}=(0,p.O)(),{isDarmstadtUser:T}=(0,m.iZ)(),S=g(),{data:I}=(0,c.t1)({ssr:!1,skip:a.length<3,variables:{input:{term:a,types:[d.B0.MaterialNumber],overrideMarketplaceByTag:f,filter:C,catalogType:N,orgId:T?"DARMSTADT":void 0}}});return(0,i.jsx)(r.Ay,{id:b,inputValue:a,onInputValueChange:e=>l(e),itemToString:e=>e?e.label:"",stateReducer:h,onSelect:x,children:e=>{let{getInputProps:a,getItemProps:r,getMenuProps:l,isOpen:d,inputValue:c,highlightedIndex:p,closeMenu:m}=e,{onBlur:g,onChange:h,onKeyDown:b,...f}=a();return(0,i.jsxs)("div",{className:(0,n.A)({[String(y)]:y}),style:A,children:[(0,i.jsx)(u.A,{autoComplete:"off",inputProps:{...f},onChange:h,onKeyDown:e=>{var a;let t=d&&!!(null==I?void 0:null===(a=I.getSearchSuggestions)||void 0===a?void 0:a.suggestions.materialNumber.length);if("Enter"===e.key&&t&&null==p){e.preventDefault(),x&&x(null),m();return}b&&b(e)},onBlur:e=>{e&&(g&&g(e),t&&t(e))},value:c,error:v,...j}),d&&c&&c.length>=3&&I&&I.getSearchSuggestions&&!v&&(0,i.jsx)("div",{...l(),className:S.autoSuggestContainer,children:(0,i.jsx)(o.A,{square:!0,className:S.autoSuggest,children:I.getSearchSuggestions.suggestions.materialNumber.map((e,a)=>(0,i.jsx)(s.A,{...r({key:e.label,index:a,item:e}),component:"div",selected:a===p,className:S.autoSuggestItem,children:e.label},e.label))})})]})}})}},87165:(e,a,t)=>{t.d(a,{Nj:()=>d});var i=t(28888);t(37876);var n=t(82897),r=t(64177);function l(){let e=(0,i._)(["\n mutation UpdateUserSitePreference($userId: String!, $data: UpdateUserSitePreferenceInput!) {\n updateUserSitePreference(userId: $userId, data: $data)\n}\n "]);return l=function(){return e},e}t(14232);let o={},s=(0,n.J1)(l());function d(e){let a={...o,...e};return r.n(s,a)}},87254:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876);t(14232);var n=t(61261),r=t(12197),l=t(40597),o=t(47671),s=t(49995);let d=(0,n.A)(e=>({promoChip:{"& .MuiChip-root":{backgroundColor:e.palette.promoGreen,height:"26px"}},clickableChip:{"& .MuiChip-root":{cursor:"pointer"}},promoChipLabel:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium},tooltip:{backgroundColor:e.palette.common.white,width:e.typography.pxToRem(320),fontSize:e.typography.pxToRem(16),boxShadow:"0 4px 6px 0 rgba(0, 0, 0, 0.16)",padding:e.spacing(2,4,4),top:"10px",[e.breakpoints.down("sm")]:{top:"0",right:"10px"},[e.breakpoints.down("xs")]:{top:"0",right:"20px",width:"10rem"}},tooltipWrapper:{display:"inline-block"},arrow:{color:e.palette.common.white,fontSize:e.typography.pxToRem(15),"&::before":{boxShadow:"0px 0px 2px rgba(0,0,0,0.2)"}},promoTitle:{fontSize:e.typography.pxToRem(14)}})),c=e=>{let{showTooltip:a=!1,toolTipPlacement:t="top"}=e,n=d(),c=(0,i.jsx)(r.A,{className:n.promoTitle,children:"Save 25% off certain sizes to celebrate 50 years of the Sigma-Aldrich\xae brand. Offer ends September 26."}),u=(0,i.jsx)(o.A,{label:(0,i.jsx)(r.A,{className:n.promoChipLabel,children:"Up to 25% Off"}),className:(0,s.A)(n.promoChip,{[n.clickableChip]:a})});return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)(l.Ay,{arrow:!0,classes:{tooltip:n.tooltip,arrow:n.arrow},placement:t,interactive:!0,title:c,enterTouchDelay:0,children:(0,i.jsx)("div",{className:n.tooltipWrapper,children:u})}):u})}},89212:(e,a,t)=>{t.d(a,{A:()=>n});var i=t(42489);i.A.exclude(["synthetic"]);let n=e=>(0,i.A)(e)},90589:(e,a,t)=>{t.d(a,{A:()=>h});var i=t(37876),n=t(14232),r=t(76209),l=t(61261),o=t(57717),s=t(40002),d=t(49995),c=t(71007),u=t(84830),p=t(11788),m=t(11148);let g=(0,l.A)(e=>({recentlyViewedContainer:{borderTop:"1px solid ".concat(e.palette.grey[300]),paddingTop:e.spacing(2),[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(14)}}})),h=e=>{var a;let{dispType:t,className:l,productKey:h="",brand:x="",searchKey:y="",analyticsPageName:A,analyticsPageDetails:v,slidesToShow:b,setShouldDisplay:f,condensed:j=!1,productNumber:N,showPdpRedesignLevelTwo:C}=e,T=g(),S=(0,m.rd)(),[I,k]=(0,n.useState)(!1);(0,n.useEffect)(()=>{k(!0)},[]);let R={pdp:"pdp load",srp:"srp load","document search":"doc search load","advanced search":"adv search load"},_=()=>{switch(A.toLowerCase()){case"pdp":return h.toLowerCase();case"srp":return y.toLowerCase();case"document search":return S.query.tab||"sds";default:return}},{isBlueB2BUser:E}=(0,p.iZ)(),{data:P,loading:M}=(0,r.wJ)({variables:{dispType:t,productKey:h,brand:x,...E?{erpType:u.G.Blue}:{}},ssr:!1,fetchPolicy:"no-cache",skip:!I,onCompleted:e=>{var a;R[A.toLowerCase()]&&(!e||(null==e?void 0:null===(a=e.getRecentlyViewedProducts)||void 0===a?void 0:a.products.length)===0)&&(0,c.Xk)({action:R[A.toLowerCase()],detail:_(),section:"recently viewed products",productId:null==N?void 0:N.toLowerCase(),productBrand:x.toLowerCase()})}}),L=(null==P?void 0:null===(a=P.getRecentlyViewedProducts)||void 0===a?void 0:a.products)||[],w=L.length>0;return((0,n.useEffect)(()=>{f&&f(w)},[w,M]),M)?null:w?(0,i.jsx)("div",{className:(0,d.A)(l,T.recentlyViewedContainer),children:(0,i.jsx)(o.A,{type:s.j.RecentlyViewed,products:L,analyticsPageName:A,analyticsPageDetails:v,slidesToShow:b,condensed:j,showPdpRedesignLevelTwo:C})}):null}},91721:(e,a,t)=>{t.d(a,{$Y:()=>R,Ay:()=>_,zO:()=>k});var i=t(37876),n=t(14232),r=t(81566),l=t(8733),o=t(61261),s=t(35877),d=t(49995),c=t(36258),u=t(82440),p=t.n(u),m=t(12197),g=t(64204),h=t(71541),x=t(92189),y=t(23575),A=t(45496),v=t(85581),b=t(930),f=t(50524),j=t(40352),N=t(30510),C=t(40002),T=t(68215);let S=(0,o.A)(e=>({withoutControls:{padding:0},content:{paddingTop:e.spacing(8),paddingBottom:e.spacing(20),"& .slider-frame":{border:"2px solid transparent","&:focus-visible":{border:"2px solid ".concat(e.palette.primary.main),borderRadius:e.shape.borderRadius}},[e.breakpoints.up("sm")]:{paddingBottom:e.spacing(8)}},contentInTab:{paddingTop:e.spacing(4)},contentCondensed:{padding:0},navBtn:{},navBtnSmall:{height:24,width:24},navBtnLarge:{height:32,width:32,display:"none",[e.breakpoints.up("sm")]:{display:"flex"}},navBtnLeft:{transform:"translateX(-40px)"},mobileBottomControls:{width:105,display:"flex",alignItems:"center",position:"relative",bottom:-44,justifyContent:"space-between",[e.breakpoints.up("sm")]:{display:"none"}},mobileBottomControlsHeroCard:{display:"flex"},icon:{fontSize:e.typography.pxToRem(14),color:e.palette.primary.main,width:"1em"},iconDisabled:{color:e.palette.grey[500]},cartRecommended:{backgroundColor:e.palette.background.grey},card:{[e.breakpoints.up("sm")]:{paddingRight:e.spacing(10)}},productHeroCardContent:{padding:0,[e.breakpoints.down("xs")]:{touchAction:"pan-y"},"& $productHeroTile button":{"@media (min-width: 900px) and (max-width: 1300px)":{whiteSpace:"normal"}}},productHeroTile:{[e.breakpoints.up("sm")]:{padding:e.spacing(0,4)}}})),I=(0,o.A)(e=>({contentCondensed:{padding:0},title:{marginBottom:e.spacing(8),"$contentCondensed &":{marginBottom:e.spacing(4)}},productHeroCardTitle:{margin:"".concat(e.spacing(0,0,e.typography.pxToRem(40),0)," !important"),fontSize:"".concat(e.typography.pxToRem(18)," !important"),[e.breakpoints.up("sm")]:{margin:"".concat(e.spacing(0,0,e.typography.pxToRem(24),3)," !important")}}})),k=e=>{let{title:a,isHero:t,type:n}=e,r=I(),o=a||(C.G[n]?(0,i.jsx)(l.A,{...C.G[n]}):null==n?void 0:n.replace(/[-_]/g," "));return a&&"string"!=typeof a?(0,i.jsx)(i.Fragment,{children:o}):(0,i.jsx)(m.A,{variant:"h2",className:(0,d.A)(r.title,t&&r.productHeroCardTitle),children:o})},R=e=>{let{productHeroCard:a,products:t,creativeSlot:n,pageType:r,pageTypeDetails:l}=e,o=S();return{renderCenterLeftControls:e=>{let s=0===e.currentSlide;return(0,i.jsx)(i.Fragment,{children:!a&&(0,i.jsx)(g.A,{className:(0,d.A)(o.navBtn,o.navBtnLarge,o.navBtnLeft),disabled:s,onClick:()=>(0,T.t)(e,t,"prev",n,r,l),"aria-label":"previous",children:(0,i.jsx)(y.A,{className:(0,d.A)(o.icon,{[o.iconDisabled]:s})})})})},renderCenterRightControls:e=>{let s=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,T.t)(e,t,"next",n,r,l),"aria-label":"next",children:(0,i.jsx)(A.A,{className:(0,d.A)(o.icon,{[o.iconDisabled]:e.slidesToScroll&&s})})})})},renderBottomCenterControls:e=>{let s=0===e.currentSlide,c=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,T.t)(e,t,"prev",n,r,l),"aria-label":"previous",className:(0,d.A)(o.navBtn,o.navBtnSmall),children:(0,i.jsx)(y.A,{className:(0,d.A)(o.icon,{[o.iconDisabled]:s})})}),(0,i.jsxs)(m.A,{variant:"body2",children:[Math.floor(e.currentSlide/e.slidesToShow)+1," of"," ",Math.round(e.slideCount/e.slidesToShow)]}),(0,i.jsx)(g.A,{disabled:c,onClick:()=>(0,T.t)(e,t,"next",n,r,l),"aria-label":"next",className:(0,d.A)(o.navBtn,o.navBtnSmall),children:(0,i.jsx)(A.A,{className:(0,d.A)(o.icon,{[o.iconDisabled]:e.slidesToScroll&&c})})})]})}}},_=e=>{let{type:a,products:t,withoutControls:l,slidesToShow:o,condensed:u,preloadCardImages:m,title:g,showPdpRedesignLevelTwo:y,productHeroCard:A=!1,isProductRecommendation:T=!1,hideProductImg:I=!1,displayDiscount:_,analyticsPageName:E=r.PP.NotAvailable,analyticsPageDetails:P}=e,M=S(),L=(0,j.Ay)(),w=(0,f.Gd)(),O="".concat(a," - ").concat(w),D=R({productHeroCard:A,products:t,creativeSlot:O,pageType:E,pageTypeDetails:P}),B=a===C.j.CartRecommendedProducts,[F,W]=(0,n.useState)(null),U=(0,s.A)(),z=!0===(0,h.A)(U.breakpoints.up("md")),q=(0,n.useRef)(null),[H,V]=(0,n.useState)(!1),K=(0,c.B)(q,{threshold:.66}),G=L(y?{xs:1,sm:2,md:4,lg:6}:{xs:1,sm:2,md:3,lg:4}),Q=A&&z?2:o||G;if(!t||(null==t?void 0:t.length)===0)return null;if((null==K?void 0:K.isIntersecting)&&!H){let e=t.slice(0,Q);(0,b.W)({creativeSlot:O,pageType:E,pageTypeDetails:P,products:e}),V(!0)}return(0,i.jsxs)("div",{"data-testid":a,id:a,className:(0,d.A)({[M.cartRecommended]:B}),ref:q,children:[(0,i.jsx)(x.A,{maxWidth:"lg",className:(0,d.A)({[M.withoutControls]:l}),children:(0,i.jsxs)("div",{className:(0,d.A)(M.content,{[M.contentCondensed]:u},A&&M.productHeroCardContent,T&&M.contentInTab),children:[(0,i.jsx)(k,{title:g,isHero:A,type:a}),(0,i.jsx)(p(),{slidesToScroll:Q,slidesToShow:Q,disableEdgeSwiping:!0,withoutControls:l,...D,children:t.map((e,t)=>(0,i.jsx)(v.A,{index:t,product:e,testId:a,onViewPrice:()=>W(e),preloadCardImages:m,className:(0,d.A)(M.card,A&&M.productHeroTile),type:a,hideProductImg:I,displayDiscount:_},t))})]})}),F&&(0,i.jsx)(N.A,{...F,showAddToList:!0,open:!0,image:F.images[0],onClose:()=>W(null),gaType:f.Yo[a],erpType:(null==F?void 0:F.erp_type)||[]})]})}},92881:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876);t(14232);var n=t(8733),r=t(54753),l=t(28975),o=t(12197),s=t(61261),d=t(98580);let c=(0,s.A)(e=>({line:{margin:e.spacing(3,0)}})),u=e=>{let{open:a,onCancel:t}=e,s=c();return(0,i.jsx)(l.Ay,{open:a,onClose:t,size:l.Ih.Medium,renderTitle:()=>(0,i.jsx)(o.A,{variant:"h2",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE})}),children:(0,i.jsxs)(l.Uh,{children:[(0,i.jsxs)(o.A,{component:"p",children:[(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE}),(0,i.jsx)(d.A,{})]}),(0,i.jsx)(o.A,{className:s.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_1})}),(0,i.jsx)(o.A,{className:s.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_2})}),(0,i.jsx)(o.A,{className:s.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_3})})]})})}},93591:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(8733),r=t(99660),l=t(34415),o=t(54753),s=t(61206),d=t(46129),c=t(71007);let u=(0,r.A)(e=>({supplementary:{fontSize:e.typography.pxToRem(12)},link:{fontWeight:e.typography.fontWeightBold,color:e.palette.secondary.dark,cursor:"pointer"}})),p=e=>{var a;let{supplementary:t,productName:r}=e,p=u(),{messageKey:m,messageValue:g,messageVariable1:h,messageVariable2:x}=null!=t?t:{},y=m&&!g&&!o.A[m],A=null==g?void 0:g.replace("%0","{productLink}"),v=()=>x&&h?(0,i.jsx)(d.N,{href:x,onClick:()=>{(0,c.Qz)(x,r)},children:(0,i.jsx)(s.A,{value:h})}):null;return y?null:(0,i.jsx)("div",{children:(null==t?void 0:t.messageKey)&&o.A[t.messageKey]?(e=>{switch(e.messageKey){case"PT_TESTING_STUDY":return(0,i.jsx)(n.A,{...o.A[e.messageKey],values:{link:(0,i.jsx)(l.A,{href:"http://supelco-pt.com",target:"_blank",className:p.link,children:(0,i.jsx)(n.A,{...o.A.PT_TESTING_STUDY_LINK})})}});case"REDI_DRI_RP":return(0,i.jsx)(n.A,{...o.A.REDI_DRI_RP,values:{brand:(0,i.jsx)("i",{children:(0,i.jsx)(n.A,{...o.A.REAGENTPLUS})})}});default:var a;return(0,i.jsx)(n.A,{...o.A[e.messageKey],values:{messageVariable1:null!==(a=v())&&void 0!==a?a:h},children:e=>(0,i.jsx)("div",{className:p.supplementary,children:e})})}})(t):(0,i.jsx)(n.A,{id:"DEFAULT_SUPPLEMENTARY_MESSAGE",defaultMessage:A,values:{productLink:null!==(a=v())&&void 0!==a?a:h},children:e=>(0,i.jsx)("div",{className:p.supplementary,children:e})})})}},93783:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876);t(14232);var n=t(49995),r=t(61261),l=t(35877),o=t(5493),s=t(36503),d=t(7645);let c=(0,r.A)(e=>({tRow:{display:"flex",alignItems:"center","& > div":{"&:nth-child(1)":{width:"4%"},"&:nth-child(2)":{width:"16%"},"&:nth-child(3)":{width:"38%"},"&:nth-child(4)":{width:"16%"},"&:nth-child(5)":{width:"10%"},"&:nth-child(6)":{width:"16%"},"&:not(:last-child)":{paddingRight:e.spacing(5)}}},tBodyRow:{padding:e.spacing(2,0),borderBottom:"1px solid ".concat(e.palette.grey[50]),"&:first-of-type":{borderTop:"1px solid ".concat(e.palette.grey[50])}},imageContainer:{paddingBottom:"100%",position:"relative",width:"100%",border:"1px solid ".concat(e.palette.grey[50])},imageWrapper:{position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",[e.breakpoints.up("sm")]:{padding:e.spacing(4)}}})),u=()=>{let e=c(),a=(0,l.A)();return(0,i.jsxs)("div",{"data-testid":"products-srp-skeleton",children:[(0,i.jsx)(d.A,{mb:20}),(0,i.jsx)("div",{children:[,,,,,].fill({}).map((t,r)=>(0,i.jsx)(d.A,{border:1,borderColor:a.palette.grey["50"],mb:{xs:6,sm:10},p:{xs:3,sm:6},children:(0,i.jsxs)(s.A,{container:!0,spacing:5,children:[(0,i.jsx)(s.A,{item:!0,xs:2,children:(0,i.jsx)("div",{className:e.imageContainer,children:(0,i.jsx)("div",{className:e.imageWrapper,children:(0,i.jsx)(o.A,{height:1,width:1})})})}),(0,i.jsx)(s.A,{item:!0,xs:10,children:(0,i.jsx)(d.A,{mt:2,children:(0,i.jsxs)(s.A,{container:!0,spacing:4,children:[(0,i.jsx)(s.A,{item:!0,xs:12,children:(0,i.jsx)(o.A,{height:28,width:.7,mb:3,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(s.A,{item:!0,xs:4,sm:2,children:(0,i.jsx)(o.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(s.A,{item:!0,xs:8,sm:10,children:(0,i.jsx)(o.A,{height:16,width:.7,borderRadius:{xs:2,sm:"borderRadius"}})}),Array(6).fill({}).map((e,a)=>(0,i.jsxs)(s.A,{item:!0,xs:4,sm:2,children:[(0,i.jsx)(o.A,{height:16,width:.6,borderRadius:{xs:2,sm:"borderRadius"},mb:3}),(0,i.jsx)(o.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"},mb:{xs:1,sm:3}})]},a))]})})}),(0,i.jsx)(s.A,{item:!0,xs:12,children:[,,,].fill({}).map((a,t)=>(0,i.jsx)("div",{className:(0,n.A)(e.tRow,e.tBodyRow),children:Array(6).fill({}).map((e,a)=>(0,i.jsx)("div",{children:(0,i.jsx)(o.A,{height:16,width:1,borderRadius:{xs:2,sm:"borderRadius"}})},a))},t))})]})},r))})]})}},95349:(e,a,t)=>{t.d(a,{A:()=>d});var i=t(37876);t(14232);var n=t(8733),r=t(34415),l=t(11148),o=t(54753),s=t(52413);let d=e=>{let{msgKey:a}=e,t=(0,l.rd)();return"SIGN_IN_FOR_PRICING"===a?(0,i.jsx)(s.N,{href:"".concat(l.VV.index(),"?redirect=").concat(encodeURIComponent(t.asPath||l.xn.index())),passHref:!0,children:(0,i.jsx)(r.A,{children:(0,i.jsx)(n.A,{...o.D[a]})})}):(0,i.jsx)(n.A,{...o.D[a]})}},95722:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876),n=t(78206),r=t(54753),l=t(68748);t(14232);var o=t(49995),s=t(77742),d=t(78272);let c=e=>{let{rootClass:a,rootStyle:t,field:c,form:u,help:p,delay:m,min:g,type:h,materialNumber:x,minOrderQuantity:y,setShowMultipleMinimumQuantityError:A,setMultipleMinimumQuantityError:v,isLessThan:b,...f}=e,j=(0,s.A)(),N=(0,d.aA)(c.value,y,b),C=N?j.formatMessage(r.A.MIN_N_QUANTITY,{min:y}):(0,n.O6)(u.errors,c.name),T=N||(0,n.O6)(u.touched,c.name),S=C&&T;return(0,i.jsx)("div",{className:(0,o.A)({[String(a)]:a}),style:t,children:(0,i.jsx)(l.A,{...f,id:"".concat(h,"-").concat(u.values.materialNumber,"-").concat(c.name),value:c.value,onChange:e=>{u.setFieldValue(c.name,e),u.setFieldTouched(c.name);let a=(0,d.aA)(e,y,b);A&&A(a),v(x,a)},delay:m,error:!!S,"aria-describedby":(S||p)&&"".concat(c.name,"-help-text"),onBlur:()=>{g&&c.value{t.d(a,{A:()=>S});var i=t(37876),n=t(14232),r=t(77742),l=t(8733),o=t(5411),s=t(7645),d=t(61261),c=t(66065),u=t(93591),p=t(77660),m=t(54753),g=t(97710),h=t(66587),x=t(81927),y=t(4648),A=t(20114),v=t(49995),b=t(40859),f=t(69485),j=t(19490),N=t(3582),C=t(3635);let T=(0,d.A)(e=>({shipFromLink:{fontWeight:e.typography.fontWeightBold,textTransform:"capitalize",color:e.palette.primary.main,cursor:"pointer",marginLeft:e.spacing(1)},availableIcon:{fontSize:e.typography.pxToRem(20),color:e.palette.success.main,marginRight:e.spacing(2)},listPrice:{fontSize:e.typography.pxToRem(11),textDecoration:"line-through",color:e.palette.error.main},qtyInput:{height:36,maxWidth:e.typography.pxToRem(100),minWidth:e.typography.pxToRem(95)},shipEstimateColumn:{display:"flex",alignItems:"center"},shipEstimateWithLink:{display:"flex",flexDirection:"column"},availableInKitAnchor:{color:e.palette.primary.main,cursor:"pointer",fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(1)},promoWrapper:{fontSize:e.typography.pxToRem(12)},initialShipText:{display:"flex",alignItems:"flex-start","& svg":{paddingTop:e.spacing(.5)}},fromWarehouse:{textTransform:"capitalize",marginLeft:e.spacing(1)},availabilityIcon:{marginRight:e.spacing(2),fontSize:e.typography.pxToRem(16),height:e.typography.pxToRem(16)},warningText:{color:e.palette.error.main},baseClass:{minWidth:0,paddingLeft:0},topAligned:{display:"flex",padding:0,margin:0}})),S=e=>{var a,t,d,S;let{material:I,initialShipEstimate:k,canAddToCart:R,countryCode:_,isDynamicProductCarousel:E,isLoading:P=!1,hideDetailsLink:M=!1,gaDetailsClick:L,source:w,gaSection:O,gaComponent:D}=e,B=T(),[F,W]=(0,n.useState)(!1),[U]=(0,C.useDecision)("wabt-216"),z=()=>{W(!1)},{formatMessage:q}=(0,r.A)(),H=null===(a=I.availabilities)||void 0===a?void 0:a[0],{availableQtyInStock:V}=I,K=null!==V,G=H&&(null==H?void 0:H.key)===p.qL.InquireForPriceAndAvailability,[Q,$]=(0,n.useState)(!1);if(G){let e=null==H?void 0:H.contactInfo,a=[null==e?void 0:e.contactPhone,null==e?void 0:e.contactEmail].filter(e=>!!e).join(" ".concat(q(m.A.OR)," "));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{className:(0,v.A)(B.baseClass,{[B.topAligned]:G}),onClick:()=>$(!0),children:(0,i.jsx)(f.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY})}),Q&&(0,i.jsx)(y.A,{open:Q,setModalOpen:$,headerContent:I.materialNumber,bodyContent:(0,i.jsx)(s.A,{mr:12,mb:8,children:(0,i.jsx)(f.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY_MODAL,values:{inquirePriceContactInfo:a}})})})]})}let Y=e=>{e.preventDefault(),L&&L(),W(!0)},X=H&&(null==H?void 0:H.key)===p.qL.ApoNoStock,J=!!H&&(0,N.M)(H,1);return(0,i.jsx)(s.A,{display:"flex",alignItems:"flex-start",children:(0,i.jsxs)("div",{className:B.shipEstimateWithLink,children:[(0,i.jsxs)("div",{className:B.shipEstimateColumn,children:[(null==H?void 0:null===(t=H.availabilityOverwriteMessage)||void 0===t?void 0:t.messageKey)?(0,i.jsx)(c.A,{availabilityOverwrite:H.availabilityOverwriteMessage}):E?(0,i.jsx)(b.A,{availabilities:(null==I?void 0:I.availabilities)||[],updateAvailable:P,leadTime:null==I?void 0:I.leadTime}):(0,i.jsxs)(i.Fragment,{children:[K?(0,i.jsxs)("div",{className:(0,v.A)(B.initialShipText,{[B.warningText]:K}),children:[(0,i.jsx)(A.A,{className:B.availabilityIcon,color:"warning"}),(0,i.jsx)(f.J,{id:"DEPLETED_PRODUCTS_QTY_FEW_LEFT_IN_STOCK",defaultMessage:"{availableQtyInStock} left in stock",values:{availableQtyInStock:V}})]}):(0,i.jsx)("div",{children:k}),(0,i.jsxs)("span",{children:[F&&(0,i.jsx)(x.A,{isModalOpen:F,onModalClose:()=>z(),material:I,canAddToCart:R,countryCode:_,availableQty:V,source:w}),!M&&((null==H?void 0:H.displayFromLink)||X)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("span",{className:B.shipFromLink,onClick:Y,onKeyPress:Y,tabIndex:0,role:"button",id:"mat-num-".concat(I.materialNumber,"-from"),children:X?(0,i.jsxs)(i.Fragment,{children:[" - ",(0,i.jsx)(l.A,{...m.A.CHECK_AVAILABILITY})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{...m.A.DETAILS}),"..."]})})}):(null==H?void 0:H.plantLoc)&&!K&&!(0,N.M)(H,5)?(0,i.jsxs)("span",{className:B.fromWarehouse,children:[(0,i.jsx)(l.A,{...m.A.PRODUCT_AVAILABILITY_FROM})," ",H.plantLoc]}):null]})]}),(0,i.jsxs)(s.A,{pt:.5,children:[U.enabled?J&&(0,i.jsx)(h.A,{type:g.u2.SameDay,gaSection:O,gaComponent:D,material:I}):I.shipsToday&&(0,i.jsx)(h.A,{type:g.u2.SameDay,gaSection:O,gaComponent:D,material:I}),I.freeFreight&&(0,i.jsx)(h.A,{type:g.u2.FreeFreight})]})]}),(null==H?void 0:null===(d=H.supplementaryMessage)||void 0===d?void 0:d.messageKey)?(0,i.jsx)(s.A,{mt:1,children:(0,i.jsx)(u.A,{supplementary:H.supplementaryMessage})}):null,(null===(S=I.promotionalMessage)||void 0===S?void 0:S.messageKey)&&(0,i.jsx)(s.A,{mt:1,className:B.promoWrapper,children:(0,i.jsx)(j.A,{promotional:I.promotionalMessage})})]})})}},98580:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876),n=t(61261),r=t(8733),l=t(54753),o=t(52413),s=t(17685),d=t(11148);let c=(0,n.A)(e=>({link:{justifyContent:"left",paddingLeft:e.spacing(1)}})),u=()=>{let e=c(),{userSession:a}=(0,s.j)();return(0,i.jsx)(o.N,{...d.mK.index({path:"/life-science/mpartner",language:a.language,country:a.country}),passHref:!0,children:(0,i.jsx)("a",{className:e.link,rel:"noopener",target:"_blank",children:(0,i.jsx)(r.A,{...l.A.LEARN_MORE})})})}}}]); //# sourceMappingURL=6584-5fbe799e560543b2.js.map