"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2148],{930:(e,a,t)=>{t.d(a,{W:()=>d,e:()=>c});var i=t(39324),n=t.n(i),r=t(64272),l=t(71605),s=t(776);let{publicRuntimeConfig:{isTealiumEnabled:o}}=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}),o&&(0,s.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]}}}),o&&(0,s.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),s=t(86767),o=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:A,onSelect:x,...y}=e,v=(0,n.useMemo)(()=>(0,l.O6)(p.errors,u.name)||p.status&&p.status[u.name],[p.errors,p.status,u.name]),f=(0,n.useMemo)(()=>(0,l.O6)(p.touched,u.name),[p.touched,u.name]),b=v&&f;return(0,i.jsxs)("div",{className:(0,r.A)({[String(a)]:a}),style:t,children:[m&&(0,i.jsx)(o.A,{htmlFor:u.name,size:c,required:g,children:m}),(0,i.jsx)(s.A,{id:u.name,...u,onChange:e=>{p.setFieldValue(u.name,e)},onBlur:e=>{u.onBlur(e),A&&A(e)},onSelect:x,size:c,error:!!b,"aria-describedby":(b||h)&&"".concat(u.name,"-help-text"),...y}),(b||h)&&(0,i.jsx)(d.A,{id:"".concat(u.name,"-help-text"),error:!!b,children:b?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 s(){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 s=function(){return e},e}let o={},d=(0,n.J1)(s(),r.$m);function c(e){let a={...o,...e};return l._(d,a)}},2897:(e,a,t)=>{t.d(a,{A:()=>i.A});var i=t(3933)},3848:(e,a,t)=>{t.d(a,{A:()=>y});var i=t(37876),n=t(14232),r=t(49995),l=t(77742),s=t(8733),o=t(35967),d=t(5411),c=t(7645),u=t(61261),p=t(54753),m=t(4648),g=t(11788),h=t(95349),A=t(75020);let x=(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}})),y=e=>{var a;let t,u,{material:y,listPriceClass:v,priceClass:f,hasStackedPrices:b=!0}=e,T=x(),[E,C]=(0,n.useState)(!1),{formatMessage:j}=(0,l.A)(),{guestShoppingType:_,isDTAQZuCustomer:N}=(0,g.iZ)();if(null===(a=y.availabilities)||void 0===a?void 0:a.length){let e=y.availabilities[0];t=e.displayInquireLink,u=e.contactInfo}let S=[null==u?void 0:u.contactPhone,null==u?void 0:u.contactEmail].filter(e=>!!e).join(" ".concat(j(p.A.OR)," "));return y.hidePriceMessageKey?(0,i.jsx)(h.A,{msgKey:y.hidePriceMessageKey}):t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{onClick:()=>{C(!0),(0,A.Sm)({action:"inquire product",section:"p&a",component:"list",elementType:"link",elementText:"inquire",material:{materialDescription:y.materialDescription,brand:y.brand,product:y.product,materialNumber:y.materialNumber}})},className:(0,r.A)(T.baseClass,{[T.topAligned]:t}),children:(0,i.jsx)(s.A,{...p.A.INQUIRE})}),E&&(0,i.jsx)(m.A,{open:E,setModalOpen:C,headerContent:y.materialNumber,bodyContent:(0,i.jsx)(c.A,{mr:12,mb:8,children:(0,i.jsx)(s.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:S}})})})]}):(0,i.jsx)(c.A,{display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,i.jsxs)("div",{className:(0,r.A)(T.pricesContainer,{[T.pricesStacked]:b}),children:[!!y.price&&!!y.listPrice&&(y.listPrice>y.price||"dtaq"===_&&N)&&(0,i.jsx)("div",{className:v,children:(0,i.jsx)(o.Gr,{style:"currency",currencyDisplay:"symbol",currency:y.listPriceCurrency?y.listPriceCurrency:y.currency,value:y.listPrice})}),y.price?(0,i.jsx)("div",{className:f,children:(0,i.jsx)(o.Gr,{style:"currency",currencyDisplay:"symbol",currency:y.currency,value:y.price})}):(0,i.jsx)(s.A,{...p.A.UNAVAILABLE})]})})}},3933:(e,a,t)=>{t.d(a,{A:()=>g});var i=t(37876);t(14232);var n=t(49995),r=t(77742),l=t(8733),s=t(13261),o=t(5411),d=t(99660),c=t(35247),u=t(66896),p=t(54753);let m=(0,d.A)(e=>({paginationContainer:{display:"flex",alignItems:"center",justifyContent:"center",[e.breakpoints.up("md")]:{justifyContent:"flex-end"}},pageLabel:{display:"none",marginRight:e.spacing(3),[e.breakpoints.up("md")]:{display:"block",minWidth:96,textAlign:"right"}},buttonGroup:{background:e.palette.common.white},buttonRoot:{padding:10,height:44,width:44,minWidth:31,[e.breakpoints.up("md")]:{height:32,width:32},"&:focus-visible":{boxShadow:"inset 0 0 0 1px ".concat(e.palette.primary.main,", 0 0 6px 0 rgba(15, 105, 175, 0.5)")}},buttonOutlined:{borderColor:e.palette.grey[500],"&$buttonDisabled":{borderColor:e.palette.grey[500]}},buttonDisabled:{},buttonIcon:{fontSize:e.typography.pxToRem(16),color:e.palette.primary.main,[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(12)}},buttonIconDisabled:{color:e.palette.grey[500]},mobilePageCountLabel:{display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid ".concat(e.palette.grey[500]),padding:e.spacing(0,4),fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightRegular,[e.breakpoints.up("md")]:{display:"none"}}})),g=e=>{let{loading:a,handleUpdatePage:t,currentPage:d,numPages:g=0,customCounterStyling:h,customButtonStyling:A,pageNumberElement:x}=e,y=m(),v=(0,r.A)(),f=e=>{t(e)},b=1===d||0===d,T=d===g,E=(0,i.jsx)(l.A,{...p.A.PAGINATION_OPTION_DISPLAY,values:{page:d,numberOfPages:g}});return(0,i.jsxs)("div",{className:y.paginationContainer,children:[x||(0,i.jsx)("div",{className:y.pageLabel,children:E}),(0,i.jsxs)(s.A,{className:y.buttonGroup,disableElevation:!0,disableFocusRipple:!0,disableRipple:!0,"aria-label":v.formatMessage(p.A.PAGINATION_LABEL_NAVIGATION),children:[(0,i.jsx)(o.A,{classes:{root:(0,n.A)(y.buttonRoot,A),outlined:y.buttonOutlined,disabled:y.buttonDisabled},"aria-label":v.formatMessage(p.A.PAGINATION_LABEL_PREVIOUS),disabled:b||a,onClick:()=>f(d-1),children:(0,i.jsx)(c.A,{className:(0,n.A)(y.buttonIcon,{[y.buttonIconDisabled]:b})})}),(0,i.jsx)(o.A,{className:(0,n.A)(y.mobilePageCountLabel,h),children:E}),(0,i.jsx)(o.A,{classes:{root:(0,n.A)(y.buttonRoot,A),outlined:y.buttonOutlined,disabled:y.buttonDisabled},"aria-label":v.formatMessage(p.A.PAGINATION_LABEL_NEXT),disabled:T||a,onClick:()=>f(d+1),children:(0,i.jsx)(u.A,{className:(0,n.A)(y.buttonIcon,{[y.buttonIconDisabled]:T})})})]})]})}},4009:(e,a,t)=>{t.d(a,{f:()=>eT,A:()=>ej});var i=t(37876),n=t(67241),r=t(70377),l=t(41683),s=t(57377),o=t(71549),d=t(84093),c=t(5411),u=t(7645),p=t(34415),m=t(77501),g=t(52413),h=t(75352),A=t(30489),x=t(11148),y=t(77660),v=t(73431),f=t(70608),b=t(11788),T=t(17685),E=t(39324),C=t.n(E),j=t(89099),_=t(14232),N=t(35967),S=t(77742),I=t(8733),R=t(21347),M=t(64204),O=t(15329),P=t(61261),k=t(84906),L=t(78206),B=t(61206),F=t(80863),D=t(10113),w=t(95722),W=t(75878),U=t(58597),H=t(46588),G=t(3848),z=t(98411),Y=t(54753),q=t(4473),V=t(40597);let K=(0,t(99220).n9)()(e=>({infoIcon:{cursor:"pointer",color:e.palette.primary.main}})),Q=e=>{let{setDialogOpen:a}=e,{classes:t}=K(),{formatMessage:n}=(0,S.A)();return(0,i.jsx)(V.Ay,{title:n(Y.A.ADDITIONAL_INFO_POPOVER),placement:"top",enterDelay:1e3,children:(0,i.jsx)(q.A,{className:t.infoIcon,onClick:()=>a(!0)})})};var $=t(68837),X=t(49995),Z=t(85150),J=t(71007),ee=t(75020),ea=t(18847),et=t.n(ea),ei=t(10759),en=t(27447),er=t(70210),el=t(83707),es=t(94295),eo=t(27651);let ed=et()(()=>t.e(7982).then(t.bind(t,47982)),{loadableGenerated:{webpack:()=>[47982]},loadableGenerated:{webpack:()=>[47982]},ssr:!1}),ec=(0,P.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:o,canAddToCart:d,hideAddToCartForPrepackItems:c,initialShipEstimate:p,displayPromotionalBundlesAnchor:m,index:g,displaySDS:h,countryCode:A,isMarketplace:v=!1,renderBuyNow:f=!1,rowValues:b,setMultipleMinimumQuantityError:T,erpType:E,displayPromoCode:C}=e,j=ec(),N=(0,S.A)(),I=(0,x.rd)(),R=(0,es.L)(eo.ID.countryCode),P=(0,es.L)(eo.TW.countryCode),q=(0,Z.I)(),V=null===(a=o.availabilities)||void 0===a?void 0:a[0],K=m&&o.isPBAvailable&&I.query,ea=V&&(null==V?void 0:V.key)===y.qL.InquireForPriceAndAvailability,[et,eu]=(0,_.useState)(!1),[ep,em]=(0,_.useState)(!1),[eg,eh]=(0,_.useState)(!1);return(0,_.useEffect)(()=>{et&&(0,J.OT)({action:"view additional information",section:"pricing and availability",component:"list",elementType:"icon",elementText:"view additional information",productId:o.product,productBrand:o.brand,productVariant:o.materialNumber})},[et]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.A,{className:(0,X.A)(j.tCell,"ThirdPartyProvider"===o.type?j.materialNumberWithSku:j.materialNumber,o.hidePriceMessageKey&&j.hidePriceMessageKey),children:[(0,i.jsx)(en.A,{materialNumber:o.materialNumber}),K&&(0,i.jsx)(u.A,{pt:2,children:(0,i.jsx)(er.A,{materialNumber:o.materialNumber,brand:o.brand,productName:null!=n?n:"",erp_type:E})})]}),"ThirdPartyProvider"===o.type?(0,i.jsx)(s.A,{className:(0,X.A)(j.tCell,j.vendorSKU),children:o.vendorSKU}):null,(0,i.jsx)(s.A,{className:(0,X.A)(j.tCell,"ThirdPartyProvider"===o.type?j.packSizeWithSku:j.packSize,o.hidePriceMessageKey&&j.hidePriceMessageKey),children:(0,i.jsx)(B.A,{value:o.packageSize})}),(0,i.jsxs)(s.A,{className:(0,X.A)(j.tCell,h?j.availabilityWithSds:j.availability,o.hidePriceMessageKey&&j.hidePriceMessageKey),children:[(0,i.jsx)(z.A,{canAddToCart:d,material:o,initialShipEstimate:p,displayPromotionalBundlesAnchor:m,countryCode:A,gaDetailsClick:()=>(0,ee.Sm)({action:"check availability details",section:"related products",component:"list",elementType:"link",elementText:"details",material:o}),source:"related products",gaSection:I.asPath.includes("/search")?void 0:"products",gaComponent:"list"}),(0,i.jsx)(el.A,{expirationDate:o.expirationDate,displayColon:!0,displayInline:!0,outerClassName:j.labelFontSize}),o.minOrderQuantity&&o.minOrderQuantity>1?(0,i.jsxs)("div",{className:(0,X.A)(j.labelFontSize,eg&&j.minimumQuantityError),children:[N.formatMessage(Y.A.MINIMUM_ORDER_QUANTITY),o.minOrderQuantity]}):null,C?(0,i.jsxs)("div",{className:j.promoDiscountMessage,children:[(0,i.jsx)("span",{children:"Web-Only Discount: "}),(0,i.jsx)("span",{className:j.promoDiscount,children:"-25% Off"}),(0,i.jsx)("span",{children:" with code "}),(0,i.jsx)("span",{className:(0,X.A)(j.promoCode,j.promoDiscount),children:"GOLDEN25"})]}):null]}),h&&(0,i.jsx)(s.A,{className:(0,X.A)(j.tCell,j.sds),children:(0,i.jsx)(F.A,{sdsLanguages:o.sdsLanguages,productNumber:o.materialNumber,brandKey:o.brand})}),(0,i.jsx)(s.A,{className:(0,X.A)(j.tCell,j.price,o.hidePriceMessageKey&&j.hidePriceMessageKey),children:ea?null:(0,i.jsx)(u.A,{"data-testid":"P&A-row-price-".concat(o.brand,"-").concat(o.materialNumber),id:"P&A-row-price-".concat(o.brand,"-").concat(o.materialNumber),children:(0,i.jsx)(G.A,{material:o,listPriceClass:q.listPrice})})}),(0,i.jsx)(s.A,{className:(0,X.A)(j.tCell,j.quantity),children:(0,i.jsxs)(u.A,{display:"flex",alignItems:"center",children:[!d||c||ea?null:(0,i.jsx)(i.Fragment,{children:(null==o?void 0:o.isBlockedProduct)?(0,i.jsx)(M.A,{className:j.lockIcon,onClick:()=>em(!0),children:(0,i.jsx)(H.A,{fontSize:"inherit"})}):o.minOrderQuantity&&o.minOrderQuantity>1?(0,i.jsx)(L.D0,{name:"".concat(g,".quantity"),component:w.A,className:j.qtyInput,"data-testid":"P&A-row-quantity-".concat(o.brand,"-").concat(o.materialNumber),id:"P&A-row-quantity-".concat(o.brand,"-").concat(o.materialNumber),associatedComponent:"P&A-row-quantity-".concat(o.brand,"-").concat(o.materialNumber),materialNumber:o.materialNumber,minOrderQuantity:o.minOrderQuantity,setShowMultipleMinimumQuantityError:eh,setMultipleMinimumQuantityError:T,isLessThan:R||P}):(0,i.jsx)(L.D0,{name:"".concat(g,".quantity"),component:W.A,className:j.qtyInput,"data-testid":"P&A-row-quantity-".concat(o.brand,"-").concat(o.materialNumber),id:"P&A-row-quantity-".concat(o.brand,"-").concat(o.materialNumber),associatedComponent:"P&A-row-quantity-".concat(o.brand,"-").concat(o.materialNumber),max:null!==(t=null==o?void 0:o.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)(Q,{setDialogOpen:eu})}):(0,i.jsx)(u.A,{display:"flex",alignItems:"center",ml:6.5,children:(0,i.jsx)(Q,{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)(D.A,{materialNumber:o.materialNumber,materialId:o.materialId,quantity:Number(null==b?void 0:b.quantity)||1,productName:n||"",productId:l||"",brand:o.brand,type:o.type,trigger:e=>(0,i.jsx)(ed,{title:N.formatMessage(Y.A.ADD_TO_LIST),placement:"top",enterDelay:1e3,children:(0,i.jsx)(O.A,{className:(0,X.A)(j.addToListButton),onClick:e,children:(0,i.jsx)(k.A,{className:j.addToListIcon,fontSize:"inherit"})})})})}),f?(0,i.jsx)(u.A,{mr:2,className:j.buyNowContainer,children:(null==o?void 0:o.isBuyNow)?(0,i.jsx)(ei.A,{materialNumber:(null==b?void 0:b.materialNumber)||"",quantity:Number(null==b?void 0:b.quantity)||1,size:"small",marketplace:v,gaType:"search result page"}):null}):null]}):null]})}),(0,i.jsx)($.A,{open:et,additionalInfo:o.additionalInfo||{},productNumber:o.materialNumber,productName:n,packageType:o.packageType,packageSize:o.packageSize,description:r||o.materialDescription,handleClose:()=>eu(!1)})]})};var ep=t(25771),em=t(69485),eg=t(52710),eh=t(84830),eA=t(76056),ex=t(41764),ey=t(65149),ev=t(51996),ef=t(70903);let{publicRuntimeConfig:{featureFlags:eb}}=C()(),eT=e=>{let{availability:a,leadTime:t}=e,n=(0,Z.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===y.qL.UnknownAvailability)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"AVAILABILITY_UNKNOWN",defaultMessage:"Availability Unknown",availability:a})]});if(a.key===y.qL.ContactForAvailability)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.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===y.qL.FulfilmentDeliveryDelayed)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed",availability:a}),(0,i.jsx)(ex.A,{leadTime:t})]});if(a.key===y.qL.UntilSuppliesRunOut)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.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===y.qL.LimitedAvailability)return(0,i.jsx)(em.J,{...f.A[a.key]});if(a.key===y.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===y.qL.OnlyFewLeftInStock){let e=a.quantity;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.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})]})}if(a.key===y.qL.ApoNoStock)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(em.J,{id:"APO_NO_STOCK",defaultMessage:"No Local Stock",availability:a})]});if(a.key===y.qL.CheckCartForAvailability)return(0,i.jsx)(em.J,{id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability",availability:a});if(!a.date||!a.quantity)return(0,i.jsx)(em.J,{id:"PRICING_AND_AVAILABILITY_UNAVAILABLE",defaultMessage:"Pricing and availability is not currently available.",availability:a});let r=new Date,l=0===(0,ef.c)(new Date(a.date),r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.A,{className:n.availableIcon}),l?a.key===y.qL.EstimatedToShipOn?(0,i.jsx)(em.J,{id:"ESTIMATED_TO_SHIP_TODAY",availability:a,defaultMessage:"Estimated to ship TODAY"}):(0,i.jsx)(em.J,{id:"AVAILABLE_TODAY",availability:a,defaultMessage:"Available to ship TODAY"}):(0,i.jsxs)("span",{children:[(0,i.jsx)(em.J,{availability:a,...f.A[a.key===y.qL.EstimatedDeliveryOn?"AVAILABILITY_ESTIMATED_DELIVERY_ON":a.key]})," ",(0,i.jsx)(N.XU,{value:new Date(a.date),year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"})]})]})},eE=e=>{let{preferredDealerName:a,noPriceForDealer:t}=e,{formatMessage:n}=(0,S.A)(),r=(0,Z.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,{})},eC=e=>{let{dealerCount:a}=e,{formatMessage:t}=(0,S.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)})},ej=e=>{var a,t,m,A,y,f;let{country:E,productName:C,displaySellerName:N,productDescription:M,productId:O,materialPricing:P,canAddToCart:k,isSubmitting:L,dirty:B,submitForm:F,hideAddToCartForPrepackItems:D,displayPromotionalBundlesAnchor:w,displaySDS:W,ctas:U,isAddToList:H,setFieldValue:G,values:z,isMarketplace:Y,isMarketplaceCartEnabled:q=!1,marketplaceSellerId:V,marketplaceOfferId:K,productAttributes:Q,handlePriceUpdateForDealer:$,erpType:X,dChainMessage:J}=e,ee=(0,j.useRouter)(),[ea,et]=(0,_.useState)(!1),ei=(0,Z.A)(),{formatMessage:en}=(0,S.A)(),{currentUser:er,currentUserState:el,getSitePreference:ed,isPublicOrderingCustomer:ec,isQuoteRequester:em,isDTAQZuCustomer:ex,userIsLoggedIn:ef,isB2BUser:ej}=(0,b.iZ)(),{userSession:e_}=(0,T.j)(),eN=ed(b.VD.PreferredDealerId),[eS,eI]=(0,_.useState)(0),eR=!eN,eM=ed(b.VD.PreferredDealerInfo),eO=null==eM?void 0:eM.orgName,[eP,ek]=(0,_.useState)(eO),{isPurpleProduct:eL}=(0,eh.Q)(X),eB=(0,es.L)(eo.CN.countryCode),eF=P.map(e=>({name:e.materialNumber,error:!1})),[eD,ew]=(0,_.useState)(eF),eW=(e,a)=>{ew(eD.map(t=>({...t,error:t.name===e?a:t.error})))},{data:eU,refetch:eH,error:eG}=(0,v.AW)({context:{userSession:e_},errorPolicy:"all",variables:{countryCode:null==e_?void 0:e_.country,stateCode:String(el),searchTerm:""},skip:!ef||!ex}),ez=(null==P?void 0:P.map(e=>e.materialNumber))||[],eY="us"===e_.country.toLowerCase(),eq=null==er?void 0:null===(t=er.soldToPartners)||void 0===t?void 0:null===(a=t[0])||void 0===a?void 0:a.soldTo,{getCountryDetails:eV}=(0,ev.Y)(),{defaultPartnerNumber:eK}=eV(e_.country),{data:eQ}=(0,ey.W_)({variables:{input:{audience:{billingEmail:er&&"billingAddress"in er&&er.billingAddress&&er.billingAddress.email||"",contactEmail:(null==er?void 0:er.email)||"",shippingEmail:er&&"shippingAddress"in er&&er.shippingAddress&&er.shippingAddress.email||"",shipTo:(null==er?void 0:null===(A=er.soldToPartners)||void 0===A?void 0:null===(m=A[0])||void 0===m?void 0:m.shipTo)||"",soldTo:eq||eK},materials:ez}},skip:!eb.srpTxnBadges||!eY||ej||!(null==ez?void 0:ez.length)||!eq&&!eK});(0,_.useEffect)(()=>{if(null!==P[0].dealerId){let e=P[0].dealerId,{organizationName:a=null}=null==eU?void 0:eU.getDealers.find(a=>a.id===e);ek(a)}},[P[0].dealerId]),(0,_.useEffect)(()=>{if(eU&&0===eS){var e;eI(null==eU?void 0:null===(e=eU.getDealers)||void 0===e?void 0:e.length)}},[eU]),(0,_.useEffect)(()=>{var e;null===J&&(null===(e=P[0])||void 0===e?void 0:e.availableQtyInStock)===null&&G("0",{...z["0"],quantity:"1"})},[]);let e$=async e=>{await eH({countryCode:e_.country,stateCode:String(el),searchTerm:e.toLowerCase()})},eX=P&&P.length&&P[0].type,eZ=(null==er?void 0:er.__typename)==="GuestUser"&&!k,eJ=(null==er?void 0:er.__typename)==="LoggedInUser"&&!(null==er?void 0:null===(y=er.metadata)||void 0===y?void 0:y.guestShoppingType)&&!ec&&!em,e0=(null===(f=ee.query)||void 0===f?void 0:f.context)==="bbe",e1=eb.dealerCartEnabled&&ex&&!e0&&!eR,e2=ex&&eR,e4=!P[0].price,e7=P.some(e=>{let{isBuyNow:a}=e;return a}),e3=null==U?void 0:U.find(e=>"bulk order"===e.type),e6=null==U?void 0:U.find(e=>"bulk order"!==e.type),e8=(0,_.useCallback)(()=>eD.some(e=>e.error),[eD]),e5=(0,_.useContext)(eg.E);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:E?ei.multiCountryTable:ei.table,children:[(0,i.jsxs)(n.A,{children:[(!e4&&e1||!e1)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{children:(0,i.jsxs)(l.A,{classes:{root:ei.tHeadRow},children:[(0,i.jsx)(s.A,{children:en({id:"SKU",defaultMessage:"SKU"})}),"ThirdPartyProvider"===eX?(0,i.jsx)(s.A,{children:en({id:"VENDOR_SKU",defaultMessage:"Vendor SKU"})}):"",(0,i.jsx)(s.A,{children:en({id:"PACK_SIZE",defaultMessage:"Pack Size"})}),(0,i.jsx)(s.A,{children:en({id:"AVAILABILITY",defaultMessage:"Availability"})}),W&&(0,i.jsx)(s.A,{children:en({id:"SDS",defaultMessage:"SDS"})}),(0,i.jsx)(s.A,{children:en({id:"PRICE",defaultMessage:"Price"})}),(0,i.jsx)(s.A,{children:k&&!D?en({id:"QUANTITY",defaultMessage:"Quantity"}):null})]})}),(0,i.jsx)(o.A,{children:P.map((e,a)=>{var t,n,r,s,o;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==eQ?void 0:null===(o=eQ.checkPromoEligibility)||void 0===o?void 0:null===(s=o.skus.find(a=>a.sku===e.materialNumber))||void 0===s?void 0:null===(r=s.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,{...e5,brand:e.brand,item:e.materialNumber,pricing:e,children:(0,i.jsx)(eu,{isMarketplace:Y,canAddToCart:k,hideAddToCartForPrepackItems:D,initialShipEstimate:(0,i.jsx)(eT,{availability:d,leadTime:null==e?void 0:e.leadTime}),productName:C,productDescription:M,productId:O,material:e,index:a,displayPromotionalBundlesAnchor:w,displaySDS:W,countryCode:E,rowValues:z[a],renderBuyNow:e7,setMultipleMinimumQuantityError:eW,erpType:X,displayPromoCode:"GOLDEN25"===c},a)})},e.materialNumber)})})]}),e1&&(0,i.jsx)(d.A,{className:ei.tfoot,children:(0,i.jsx)(l.A,{children:(0,i.jsxs)(s.A,{align:"center",colSpan:5,children:[eN&&(0,i.jsx)(eE,{preferredDealerName:null!=eP?eP:eO,noPriceForDealer:e4}),(0,i.jsx)(c.A,{variant:"text",className:ei.seeDealerOptionsLink,onClick:()=>et(!0),children:(0,i.jsx)(eC,{dealerCount:eS})})]})})})]}),ea&&e2&&(0,i.jsx)(h.A,{isSavingDealerPreference:e2,open:ea,onClose:()=>et(!1),onDealerSelectCallback:F,disabled:!1,dealers:(null==eU?void 0:eU.getDealers)||[],onSearch:e$,error:eG,values:z,materialPricing:P,setFieldValue:G,setIsModalOpen:et}),ea&&!e2&&(0,i.jsx)(h.A,{isSavingDealerPreference:e2,open:ea,onClose:()=>et(!1),onDealerSelect:$,disabled:!1,dealers:(null==eU?void 0:eU.getDealers)||[],onSearch:e$,error:eG,values:z,materialPricing:P,setFieldValue:G,setIsModalOpen:et})]}),!E&&(!e4&&e1||!e1)&&(0,i.jsxs)(u.A,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:!q&&4,children:[(0,i.jsx)(u.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(ep.A,{isMarketplace:Y,marketplaceSellerId:V,marketplaceOfferId:K,productAttributes:Q,displaySellerName:N})}),(0,i.jsx)(u.A,{display:"flex",justifyContent:"flex-end",alignItems:"center",my:4,px:2,children:eZ||eJ?(0,i.jsx)("p",{children:(0,i.jsx)(I.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(g.N,{...x.mK.index({path:"/collections/offices",language:e_.language,country:e_.country}),passHref:!0,children:(0,i.jsx)("a",{rel:"noopener",target:"_blank",children:(0,i.jsx)(I.A,{id:"CONTACT",defaultMessage:"contact"})})})}})}):(0,i.jsxs)(i.Fragment,{children:[e3&&!Y&&(0,i.jsx)(g.N,{href:e3.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:ei.bulkOrderLink,color:"primary",target:"_blank",children:e3.label})}),e6&&(0,i.jsx)(c.A,{component:"a",target:"_blank",href:e6.url,variant:"outlined",size:"large",color:"primary",className:ei.buttonFilled,children:e6.label}),eL&&eB&&!ef?(0,i.jsx)(eA.A,{size:"medium"}):(!Y||Y&&q)&&(0,i.jsx)(R.Ay,{handleAddToCart:e=>{if(e.preventDefault(),e2)return et(!0);F()},isSubmitting:L,dirty:B,disabled:e8(),canAddToCart:k&&(!Y||Y&&q),hideAddToCartForPrepackItems:D,isAddToList:H,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:s=0}=e,o=(0,r.A)();return(0,i.jsx)(n.A,{height:a,width:t,borderRadius:l,bgcolor:o.palette.grey["50"],mb:s})}},5634:(e,a,t)=>{t.d(a,{A:()=>F});var i=t(37876),n=t(14232),r=t(8733),l=t(99220),s=t(64204),o=t(65824),d=t(34669),c=t(61206),u=t(21932),p=t(67756),m=t(84768),g=t(64272),h=t(32148),A=t(9545),x=t(77742),y=t(35877),v=t(71541),f=t(98373),b=t(18249),T=t(54093),E=t(43965);let C=(0,l.n9)()(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"}})),j=e=>{let{facet:a,selectedOptions:t,handleFacetChange:r}=e,[l,o]=(0,n.useState)(null),[u,p]=(0,n.useState)(""),{classes:m,cx:g}=C(),h=(0,y.A)(),{formatMessage:A}=(0,x.A)(),j=(0,v.A)(h.breakpoints.down("md")),_=e=>{let a=e.split("_").filter(e=>"facet"!==e&&"web"!==e).map(e=>e[0].toUpperCase()+e.substring(1)).join(" ");return a.length>10&&j?a.slice(0,10).concat("..."):a},N=()=>{p(""),o(null)};(0,n.useEffect)(()=>{N()},[r]);let S={};return a.options.map(e=>S[e.value]=e.count),(0,i.jsx)("div",{className:m.facetSearchBoxContainer,children:(0,i.jsx)(b.Ay,{disablePortal:!0,classes:{root:m.facetSearchInput,listbox:m.facetSearchListBox,option:m.facetSearchListBoxOption,noOptions:m.facetSearchListBoxNoOptions},options:Object.keys(S),renderOption:e=>(0,i.jsx)(c.A,{value:"".concat(e," (").concat(S[e],")")}),noOptionsText:A(d.A.NO_FACETS_FOUND),renderInput:e=>(0,i.jsx)("div",{className:m.facetSearchInputContainer,ref:e.InputProps.ref,children:(0,i.jsx)(f.A,{ref:e.InputProps.ref,...e.inputProps,placeholder:"Search ".concat(_(a.key)),disableUnderline:!0,fullWidth:!0,endAdornment:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{className:g(m.clearIcon,{[m.showClearIcon]:""!==u}),onClick:N,children:(0,i.jsx)(E.A,{fontSize:"inherit"})}),(0,i.jsx)(T.default,{className:m.searchIcon})]})})}),inputValue:u,onInputChange:(e,a)=>{p(a)},value:l,onChange:(e,i)=>{if(o(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 _=t(70114),N=t(21289),S=t(97710);let I=(0,l.n9)()(e=>({icon:{display:"inline-flex",fontSize:e.typography.pxToRem(28),marginLeft:e.spacing(2)}})),R=e=>{let{value:a,count:t}=e,{classes:n}=I(),l=a===S.u2.SameDay?(0,i.jsx)(N.A,{color:"secondary",fontSize:"inherit"}):(0,i.jsx)(_.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.n9)()(e=>({root:{margin:e.spacing(6,0),[e.breakpoints.down("md")]:{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 O=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}(O||{});let P=e=>{let{facet:a,showMore:t,substanceFacetChange:l,selectedSubstanceFacetOptions:x}=e,{classes:y}=M(),v=(0,h.useSearchQuery)(),f=v[1],b=v[2],T=x||(f.find(e=>{let{key:t,options:i}=e;return a.prefix&&(i[0]=i[0].replace(a.prefix,"")),t===a.key})||{options:[]}).options,[E,C]=(0,n.useState)(!1),_=t||E?a.options:a.options.slice(0,a.numToDisplay||6);E&&_.length===a.numToDisplay&&C(!1);let N=E?"show less":"show more",S="facet_shipping"===a.key,I=(e,t,i,n,r)=>{l?l({key:a.key,options:a.prefix?["".concat(a.prefix).concat(t)]:[t]},i):b.handleSelectedFacetChange({key:a.key,options:[t],action:i?h.FacetChangeAction.Remove:h.FacetChangeAction.Add,multiSelect:a.multiSelect||!1,prefix:a.prefix});let s=(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:s})},P=T.map(e=>e.split("|")[0]),k=l?P.includes("".concat(a.key)):T.length>0,L=!a.isCollapsed||k;return(0,i.jsx)("div",{className:y.root,children:(0,i.jsxs)(A.A,{defaultCollapse:L,facetKey:a.key,isSubstanceFacets:!!l,children:[a.key in O&&(0,i.jsx)(j,{facet:a,selectedOptions:T,handleFacetChange:I}),(0,i.jsxs)("div",{className:y.collapseInner,children:[_.map(e=>{let{value:t,count:n}=e,r=T.indexOf(t)>=0||T.indexOf("".concat(a.key,"|").concat(t))>=0||T.indexOf("".concat(a.key,"|").concat(a.prefix).concat(t))>=0;return(0,i.jsx)("div",{children:(0,i.jsx)(o.A,{"aria-label":t,"data-testid":"srp-facet-".concat(t),value:t,checked:r,classes:{root:y.checkboxRoot},formControlClasses:{label:y.formControlLabel},onChange:()=>I(a.key,t,r,n,"checkbox"),label:(0,i.jsx)("span",{className:y.facetLabel,children:S?(0,i.jsx)(R,{value:e.value,count:e.count}):(0,i.jsx)(c.A,{value:"".concat(e.value," (").concat(e.count,")")})})})},t)}),(a.options.length>_.length||E)&&(0,i.jsx)(s.A,{onClick:()=>{C(!E),(0,m.y)(N,a.key,N)},"aria-expanded":E,"aria-label":N,className:y.showMore,id:E?"facet-group-".concat(a.key,"-show-less"):"facet-group-".concat(a.key,"-show-more"),children:E?(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{...d.A.SHOW_LESS}),(0,i.jsx)(u.A,{className:y.showMoreIcon})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{...d.A.SHOW_MORE}),(0,i.jsx)(p.A,{className:y.showMoreIcon})]})})]})]})},a.key)};var k=t(39069),L=t(7645);let B=()=>{let e=(0,y.A)();return(0,i.jsx)("div",{children:[,,,].fill({}).map((a,t)=>(0,i.jsxs)(L.A,{mb:6,children:[(0,i.jsx)(L.A,{mb:4,children:(0,i.jsx)(k.A,{light:!0})}),(0,i.jsx)(L.A,{height:22,width:.75,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mb:4}),[,,,,,].fill({}).map((a,t)=>(0,i.jsxs)(L.A,{display:"flex",alignItems:"center",pr:4,mb:4,children:[(0,i.jsx)(L.A,{height:24,width:24,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mr:4}),(0,i.jsx)(L.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:s,selectedSubstanceFacetOptions:o}=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)(P,{facet:e,allFacets:r,showMore:l,substanceFacetChange:s,selectedSubstanceFacetOptions:o},e.key)},e.key))})}},6315:(e,a,t)=>{t.d(a,{A:()=>s});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}),s=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),s=t(30376),o=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:A,quantity:x,trigger:y,disabled:v,type:f,isLinkButton:b,classes:T}=e,[E,C]=n.useState(!1),{userIsLoggedIn:j,userId:_}=(0,c.iZ)(),{data:N,refetch:S}=(0,d.g)({fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",skip:!j,variables:{input:{perpage:100,sortcolumn:"lastUpdatedDate"}}});if(!j||!(null==N?void 0:N.getSharedLists))return null;let I=()=>{C(!0)},R=async()=>{C(!1)};return(0,i.jsxs)(i.Fragment,{children:[y?y(I):b?(0,i.jsxs)(r.A,{className:(0,m.A)(null==T?void 0:T.linkStyle),disabled:v,onClick:I,children:[(0,i.jsx)(s.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:I,children:(0,i.jsx)(p.A,{...u.A.ADD_TO_LIST})}),E&&(0,i.jsx)(o.A,{open:E,onClose:R,materialNumber:a,materialId:t,productName:g||"",productId:h||"",brand:A||"",type:f,quantity:x,lists:N.getSharedLists.sharedLists,refetchLists:S,userId:_})]})}},10759:(e,a,t)=>{t.d(a,{A:()=>i.A});var i=t(83128)},11569:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876),n=t(77742),r=t(34415),l=t(61261),s=t(11148),o=t(52413),d=t(54753),c=t(71007);let u=(0,l.A)(e=>({container:{margin:e.spacing(4,0,4,0)},sectionHeading:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold,[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(18)}},sectionText:{fontSize:e.typography.pxToRem(14),lineHeight:"1.5rem",listStylePosition:"inside",marginLeft:"20px",textIndent:"-20px",margin:"0",padding:"0",[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(16),lineHeight:"1.8rem"}},textLink:{fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main,cursor:"pointer"}})),p=()=>{let{formatMessage:e}=(0,n.A)(),a=u();return(0,i.jsxs)("section",{className:a.container,children:[(0,i.jsx)("h4",{className:a.sectionHeading,children:e(d.A.SEARCH_TIPS)}),(0,i.jsxs)("ul",{className:a.sectionText,children:[(0,i.jsx)("li",{children:e(d.A.WORDS_SPELLED_CORRECTLY)}),(0,i.jsx)("li",{children:e(d.A.REMOVE_SPACES)}),(0,i.jsx)("li",{children:e(d.A.TRY_REPHRASING)}),(0,i.jsxs)("li",{children:[e({id:"TRY_OUR",defaultMessage:"Try our"})," ",(0,i.jsx)(o.N,{href:s.HX.index(),passHref:!0,children:(0,i.jsxs)(r.A,{className:a.textLink,onClick:()=>{(0,c.dZ)({action:"visit chemical structure search",component:"body",elementType:"link",elementText:"structure search",linkUrl:s.HX.index(),section:"search tips"})},children:[e({id:"STRUCTURE_SEARCH",defaultMessage:"Structure Search"})," "]})}),e(d.A.OR)," ",(0,i.jsx)(o.N,{href:s.wO.index(),passHref:!0,children:(0,i.jsxs)(r.A,{className:a.textLink,onClick:()=>{(0,c.dZ)({action:"visit advanced search page",component:"body",elementType:"link",elementText:"advanced search",linkUrl:s.wO.index(),section:"search tips"})},children:[e({id:"ADVANCED_SEARCH",defaultMessage:"Advanced Search"})," "]})}),e(d.A.TOOL)]})]})]})}},12399:(e,a,t)=>{t.d(a,{i:()=>F,A:()=>D});var i=t(37876),n=t(71541),r=t(5213),l=t(39069),s=t(36503),o=t(99220),d=t(35877),c=t(33280),u=t(9522),p=t(22566),m=t(11148),g=t(84627),h=t(77197),A=t(77660),x=t(71007),y=t(54753),v=t(77742),f=t(14232),b=t(8733),T=t(12197),E=t(5411),C=t(77274),j=t(44131),_=t(78206),N=t(10430),S=t(38582),I=t(66784),R=t(30029),M=t(17685),O=t(11788);let P=(0,o.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)}})),k=e=>{var a,t,n,r;let{title:l=(0,i.jsx)(b.A,{...y.A.SEARCH_SAFETY_DATA_SHEET}),instructions:s=(0,i.jsx)(b.A,{...y.A.ENTER_PRODUCT_NUMBER_FOR_SDS}),isAdvancedSearch:o}=e,{formatMessage:c}=(0,v.A)(),u=(0,d.A)(),{classes:p,cx:g}=P(),{setGlobalSnackbarState:h}=(0,S.W)(),[A,k]=(0,f.useState)(!1),{userSession:L}=(0,M.j)(),{userErpType:B}=(0,O.iZ)(),F=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,L.country,i,B)),"_blank"):k(!0)}{h({open:!0,message:c(y.A.ERROR_404_SDS_MESSAGE),variant:S.m$.Error});let a=c(y.A.ERROR_404_SDS_MESSAGE).replace(".","").toLowerCase();(0,x.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()})}},[D,{data:w}]=(0,N.b0)({onCompleted:e=>F(e),fetchPolicy:"no-cache"}),W=e=>(0,i.jsx)(T.A,{variant:"body2",style:{color:e?u.palette.error.main:u.palette.common.black},children:(0,i.jsxs)("b",{children:["* ",(0,i.jsx)(b.A,{...y.A.PRODUCT_NUMBER})]})});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.A,{variant:"h3",className:p.vr4,children:l}),(0,i.jsx)(T.A,{className:g(p.vr4,p.instructions),children:s}),!o&&(0,i.jsx)(T.A,{variant:"body2",className:p.vr4,children:(0,i.jsx)(b.A,{...y.A.INDICATES_REQUIRED_FIELD})}),(0,i.jsx)(_.l1,{validateOnBlur:!1,validateOnChange:!1,initialValues:{productNumber:""},onSubmit:(e,a)=>{var t;D({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)(_.lV,{"data-testid":"sds-search-form",children:[(0,i.jsx)("div",{className:p.vr6,children:(0,i.jsx)(_.D0,{name:"productNumber",label:W(e.errors.productNumber),component:I.A,placeholder:"e.g. T1503",filled:!0,id:"sds-product-number-field",inputProps:{"data-testid":"sds-product-number-field"},validate:(0,C.jr)(j.Yj().trim().required(c(y.A.PLEASE_ENTER_PRODUCT_NUMBER)))})}),(0,i.jsx)(E.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)(b.A,{...y.A.SEARCH})})]})})}),A&&(null==w?void 0:null===(a=w.getSdsCertificateSearch)||void 0===a?void 0:a.sds)&&(null==w?void 0:null===(t=w.getSdsCertificateSearch)||void 0===t?void 0:t.brands)&&(0,i.jsx)(R.A,{open:A,setModalOpen:k,brands:null==w?void 0:null===(n=w.getSdsCertificateSearch)||void 0===n?void 0:n.brands,sdsDetails:w.getSdsCertificateSearch.sds,productNumber:null==w?void 0:null===(r=w.getSdsCertificateSearch)||void 0===r?void 0:r.productNumber,isAdvancedSearch:!0})]})};var L=t(33967);let B=(0,o.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 F=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 D=()=>{var e;let{classes:a}=B(),t=(0,d.A)(),{formatMessage:o}=(0,v.A)(),f=!0===(0,n.A)(t.breakpoints.up("md")),b=(0,m.rd)(),T=(null==b?void 0:null===(e=b.query)||void 0===e?void 0:e.tab)||"sds",E=(e,a,t)=>{let i=h.tq[null!=t?t:""];(0,x.pc)({...a||{action:"switch to ".concat(t," tab"),component:"body",elementType:"tab",elementText:i},event:"documentation_interaction",detail:"".concat(T," tab"),section:"document search",coreEvent:"no"})},C=[{value:"sds",label:o(y.A.SAFETY_DATA_SHEETS),content:(0,i.jsx)(k,{title:o(y.A.SAFETY_DATA_SHEETS_TITLE),instructions:o(y.A.SDS_INSTRUCTIONS)}),certificateType:null},{value:"coa",label:o(y.A.CERTIFICATES_OF_ANALYSIS),content:(0,i.jsx)(L.Ay,{type:A.e_.Coa,title:o(y.A.CERTIFICATE_OF_ANALYSIS_COA),productInput:!0,dontShowSampleLink:!0,instructions:o({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:A.e_.Coa},{value:"coo",label:o({id:"CERTIFICATE_OF_ORIGIN_COO",defaultMessage:"Certificates of Origin (COO)"}),content:(0,i.jsx)(L.Ay,{type:A.e_.Coo,title:o(y.A.CERTIFICATE_OF_ORIGIN_COO),productInput:!0,dontShowSampleLink:!0,instructions:o({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:A.e_.Coo},{value:"coq",label:o(y.A.CERTIFICATES_OF_QUALITY),content:(0,i.jsx)(L.Ay,{type:A.e_.Coq,title:o(y.A.CERTIFICATES_OF_QUALITY_COQ),productInput:!0,dontShowSampleLink:!0,isBlueProduct:!0,instructions:o(y.A.COQ_INSTRUCTIONS),allFieldsRequired:!0}),certificateType:A.e_.Coq}];return(0,i.jsxs)(c.Ay,{value:T,children:[(0,i.jsx)(u.A,{onChange:(e,a)=>{b.push(m.HN.index(a.toLowerCase())),E("switch to "+T+" tab",void 0,a)},"aria-label":"documentation-tabs-".concat(T),"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)(s.A,{container:!0,spacing:2,justifyContent:"space-between",direction:"row",children:[(0,i.jsx)(s.A,{item:!0,xs:12,md:6,className:f?a.vr8:void 0,children:r}),(0,i.jsx)(s.A,{item:!0,xs:12,md:5,children:(0,i.jsx)(g.A,{analyticsCallback:E,certificateType:l||void 0})})]})},t)})]})}},16722:(e,a,t)=>{t.d(a,{A:()=>B});var i=t(37876),n=t(14232),r=t(47801),l=t(99220),s=t(11148),o=t(20534),d=t(16717),c=t(12197),u=t(34415),p=t(64204),m=t(61206),g=t(77742),h=t(8733),A=t(52413),x=t(97710),y=t(35645),v=t(71662),f=t(40002),b=t(40352),T=t(32609),E=t(66313),C=t(77660),j=t(11788),_=t(84119),N=t(52710),S=t(71007),I=t(75020),R=t(61622),M=t(87254),O=t(39324);let{publicRuntimeConfig:{featureFlags:P}}=t.n(O)()(),k=(0,l.n9)()(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%"}})),L="7950",B=e=>{var a,t,l,O,B,F,D,w,W;let{product:U,substanceName:H,className:G,substanceId:z,substancePosition:Y}=e,{classes:q,cx:V}=k(),K=(0,s.rd)(),Q=(0,b.Ay)(),{formatMessage:$}=(0,g.A)(),{focus:X="",catalogType:Z="",orgId:J=""}=K.query||{},[ee,ea]=(0,n.useState)(!1),et=(null==U?void 0:U.isMarketplace)?C.Mh.Marketplace:null,{currentUser:ei,getSitePreference:en,isB2BUser:er,isDTAQZuCustomer:el,isBlueErpIntegrationEnabled:es}=(0,j.iZ)(),eo=el?en(j.VD.PreferredDealerId):null,ed=es&&(null==U?void 0:U.erp_type)&&(null==U?void 0:null===(a=U.erp_type)||void 0===a?void 0:a.length)>0,ec=null!==(F=null===r.Lr||void 0===r.Lr?void 0:r.Lr.getItem("searchedfor"))&&void 0!==F?F:"",[eu,{data:ep,loading:em,error:eg}]=(0,E.Gb)({variables:{...ed&&{erp_type:null==U?void 0:U.erp_type},brand:null==U?void 0:null===(t=U.brand)||void 0===t?void 0:t.key,catalogType:(0,x.vN)(et||Z||X),checkBuyNow:!0,checkForPb:!0,dealerId:eo,displaySDS:!1,materialIds:null==U?void 0:U.materialIds,orgId:J,productKey:null==U?void 0:U.productKey,productNumber:null==U?void 0:U.productNumber,quantity:1}}),{discontinuedPricingInfo:eh}=null!==(D=null==ep?void 0:ep.getPricingForProduct)&&void 0!==D?D:{},eA=!em&&ee&&!eh,ex=(0,R.j)(null==eh?void 0:eh.replacementProducts),ey=U.productNumber.startsWith("CB_")?$({id:"DETAILS",defaultMessage:"Details"}):U.productNumber,ev=(0,n.useContext)(N.E),ef=(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]),eb=(0,n.useMemo)(()=>{var e;return(null==ei?void 0:null===(e=ei.metadata)||void 0===e?void 0:e.country)||""},[ei]),eT=P.srpTxnBadges&&"US"===eb&&!er&&U.txnBadge&&(null===(l=U.txnBadge)||void 0===l?void 0:l.type)==="MAX_DISCOUNT"&&(null===(B=U.txnBadge)||void 0===B?void 0:null===(O=B.salesOrgIds)||void 0===O?void 0:O.includes(L))&&ef===L;return eg?(0,i.jsx)(N.M,{...ev,brand:U.brand.key,item:U.name,children:(0,i.jsx)(_.A,{productNumber:null==U?void 0:U.productNumber,error:eg})}):(0,i.jsxs)(d.A,{component:"li",className:V(G,q.root),children:[(0,i.jsx)(c.A,{component:"h3",className:q.name,children:U.brand.key&&U.productNumber?(0,i.jsx)(A.N,{...s.aR.index(U.brand.key,U.productKey,{catalog:(0,x.vN)(Z||X)}),passHref:!0,children:(0,i.jsx)(u.A,{onClick:()=>(0,S.WL)({product:U,searchTerm:ec,substanceId:z,substancePosition:Y}),children:ey})}):(0,i.jsx)("span",{children:U.productNumber})}),(0,i.jsx)(c.A,{component:"p",className:q.description,children:(0,i.jsx)(m.A,{value:U.legalNameSuffix||U.description})}),eh?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.A,{discontinuedPricingInfo:eh}),ex&&(0,i.jsx)(v.A,{type:f.j.RecommendedProducts,preloadCardImages:!0,products:ex,slidesToShow:Q({xs:1,sm:2,lg:3}),withoutControls:ex.length<=4})]}):(0,i.jsxs)("div",{className:eT?q.viewPricingWrapperWithBadge:q.viewPricingWrapper,children:[eT&&(0,i.jsx)(M.A,{showTooltip:!0,toolTipPlacement:"right"}),(0,i.jsx)(p.A,{className:q.viewPricing,onClick:()=>{var e;U.paMessage||eu(),ea(!0),(0,I.Sm)({action:"view p&a",section:Y?void 0:"products",component:"list",elementType:"link",elementText:"view",material:{materialDescription:U.name,brand:null===(e=U.brand)||void 0===e?void 0:e.key,product:U.productNumber}})},"aria-label":"view pricing",children:(0,i.jsx)(h.A,{id:"SUBSTANCE_VIEW_PRICING",defaultMessage:"View Pricing"})})]}),em?(0,i.jsx)(o.A,{}):eA&&(0,i.jsx)(y.A,{onClose:()=>{ea(!ee)},substanceName:H,productNumber:U.productNumber,productKey:U.productKey,brandKey:U.brand.key,description:U.description,materialIds:U.materialIds,isMarketplace:U.isMarketplace,productAttributes:U.attributes,marketplaceSellerId:U.marketplaceSellerId||"",marketplaceOfferId:U.marketplaceOfferId||"",erp_type:U.erp_type,productName:null!==(w=U.name)&&void 0!==w?w:"",displaySellerName:null!==(W=U.displaySellerName)&&void 0!==W?W:"",pricingData:null==ep?void 0:ep.getPricingForProduct,paMessage:U.paMessage})]})}},17215:(e,a,t)=>{t.d(a,{A:()=>o});var i=t(37876);t(14232);var n=t(64204),r=t(61261),l=t(43965);let s=(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"}})),o=e=>{let{label:a,onDelete:t,dataTestId:r,ariaLabel:o}=e,d=s(),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":o,className:d.closeBtn,onClick:t,children:(0,i.jsx)(l.A,{fontSize:"inherit",color:"primary"})})]})})}},19409:(e,a,t)=>{t.d(a,{A:()=>N});var i=t(37876),n=t(14232),r=t(8733),l=t(78206),s=t(44131),o=t(61261),d=t(12197),c=t(36503),u=t(5411),p=t(90079),m=t(37290),g=t(5325),h=t(77274),A=t(38582),x=t(82250),y=t(44601),v=t(86024),f=t(28975),b=t(34369),T=t(53471),E=t(11148),C=t(20534),j=t(11788);let _=(0,o.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)}})),N=e=>{let a,t,o,{onClose:N,quoteData:S}=e,I=_(),R=(0,E.rd)(),[M]=(0,T.u7)(),{setSnackbar:O}=(0,A.W)(),{currentUser:P}=(0,j.iZ)(),[k,L]=(0,n.useState)({}),[B,F]=(0,n.useState)(!0);Array.isArray(S)||(a=null==S?void 0:S.material,t=null==S?void 0:S.product,o=null==S?void 0:S.quantity);let{rawYupSchema:{ccEmail:D,extension:w,fax:W,mobile:U,phone:H,required:G,requiredEmail:z}}=(0,h.dz)(),Y=s.Ik().shape({ccForOrderConfEmailIds:D,email:z,extension:w,fax:W,firstName:G,mobile:U,telephone:H}),q=async(e,a)=>{(0,y.A)({top:0,left:0,behavior:"smooth"});try{if(S){var t,i,n,r,l;let a=Array.isArray(S)?{addressInfo:e,input:S.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==S?void 0:S.materialNumber)&&void 0!==i?i:null==S?void 0:null===(t=S.material)||void 0===t?void 0:t.materialNumber)&&void 0!==n?n:"",quantity:null!==(r=S.quantity)&&void 0!==r?r:0}},{data:s}=await M({variables:a});s&&R.replace(E.q8.quoteDetail(null==s?void 0:null===(l=s.generateQuote)||void 0===l?void 0:l.orderNumber))}}catch(t){F(!1);let{errors:e}=(0,x.Mw)(t);if(e.length>0){let{code:a}=e[0];g.A[a]?O(A.iZ.CartErrorRequestingQuote,a):O(A.iZ.GenericError)}a.setSubmitting(!1)}};return(0,n.useEffect)(()=>{if(null==P?void 0:P.contactAddress){let{contactAddress:e}=P;L({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}),F(!1)}},[]),B?(0,i.jsx)(C.A,{}):(0,i.jsx)(l.l1,{initialValues:k,onSubmit:q,enableReinitialize:!1,validateOnMount:!1,validationSchema:Y,children:e=>{let{isSubmitting:n,handleSubmit:s}=e;return(0,i.jsx)(v.A,{open:!0,onClose:(e,a)=>N(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)(f.Uh,{children:[a&&t&&o?(0,i.jsx)(c.A,{container:!0,children:(0,i.jsx)(b.A,{material:a,product:t,quantity:o})}):null,(0,i.jsxs)(c.A,{className:I.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)(f.fW,{children:(0,i.jsxs)(u.A,{variant:"contained",color:"primary",size:"large",className:I.submitButton,disabled:n,onClick:()=>s(),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:()=>o});var i=t(37876);t(14232);var n=t(8733),r=t(99660),l=t(54753);let s=(0,r.A)(e=>({supplementary:{fontSize:e.typography.pxToRem(12),lineHeight:1.5}})),o=e=>{var a,t;let{promotional:r}=e,o=s(),{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:o.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:o.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:s}=(0,i.iZ)();return t?(s?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),s=t(5493);let o=()=>{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)(s.A,{height:200,width:1})}),(0,i.jsx)(r.A,{item:!0,sm:12,children:(0,i.jsx)(s.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)(s.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(s.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(s.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:o;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,{})}},21908:(e,a,t)=>{t.d(a,{t1:()=>c});var i=t(28888);t(37876);var n=t(82897),r=t(54064);t(14232);var l=t(54431);function s(){let e=(0,i._)(["\n query SrpFeaturedProducts($input: GetSrpFeaturedProductsInput!) {\n getSrpFeaturedProducts(input: $input) {\n products {\n ...DynamicProduct\n }\n }\n}\n ",""]);return s=function(){return e},e}let o={},d=(0,n.J1)(s(),r.z);function c(e){let a={...o,...e};return l.IT(d,a)}},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),s=t(61261),o=t(8733),d=t(35967),c=t(61206);let u=(0,s.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("xs")]:{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:s,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,A=null==m?void 0:m.includes(null==e?void 0:e.value),x=null==e?void 0:null===(t=e.availabilities)||void 0===t?void 0:t.some(e=>null==e?void 0:e.displayInquireLink),y=(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:x?(0,i.jsx)(r.A,{variant:"inherit",children:(0,i.jsx)(o.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:y,variant:"outlined",clickable:!0,onClick:()=>s(null==e?void 0:e.value),className:(0,n.A)(h.chip,{[h.chipSelected]:g,[h.chipUnavailable]:A,[h.chipSelectedUnvailable]:g&&A})},"".concat(a,"-").concat(null==e?void 0:e.packSize,"-").concat(null==e?void 0:e.value))})})}},25771:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876),n=t(14232),r=t(49995),l=t(11148),s=t(52413),o=t(7645),d=t(61261),c=t(35877),u=t(69605),p=t(8733),m=t(54753),g=t(97710),h=t(92881);let A=(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"}})),x=e=>{let{className:a,isMarketplace:t,marketplaceSellerId:d="",marketplaceOfferId:x="",productAttributes:y,displaySellerName:v,hideMarketPlaceContactInfo:f}=e,b=A(),T=(0,c.A)(),E=(0,l.rd)(),C=v||(0,g.t1)(y),j=t&&!!d&&!!x&&!!C,[_,N]=(0,n.useState)(!1),S=()=>{N(e=>!e)};return j?(0,i.jsxs)(o.A,{display:"flex",className:(0,r.A)(b.root,a),children:[(0,i.jsxs)(o.A,{display:"flex",className:b.shipped,children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:"/static/package.svg",alt:"PDF Icon",className:b.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)(s.N,{...l.kJ.index(C,d),children:(0,i.jsx)("a",{children:C})})]}),(0,i.jsxs)("div",{className:b.trustedInfo,children:[(0,i.jsx)(p.A,{...m.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(u.A,{className:b.infoIcon,onClick:S}),_&&(0,i.jsx)(h.A,{open:_,onCancel:S})]})]})]}),f?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{display:"flex",children:(0,i.jsx)("span",{className:b.verticalLine})}),(0,i.jsxs)(o.A,{display:"flex",className:b.flexStart,children:[(0,i.jsx)(o.A,{display:"flex",alignItems:"center",children:(0,i.jsx)("img",{src:"/static/contact.svg",alt:"PDF Icon",className:b.contactIcon})}),(0,i.jsxs)(o.A,{display:"flex",alignItems:"center",children:[(0,i.jsx)(p.A,{...m.A.CONTACT_SELLER_HAVE_QUESTION})," ",(0,i.jsx)(s.N,{...l.kJ.contact(C,d,E.asPath,l.C2.OFFER_MESSAGING,x),children:(0,i.jsx)(o.A,{display:"inline-block",marginLeft:T.spacing(.25),children:(0,i.jsx)("a",{className:b.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),s=t(5411),o=t(34415),d=t(61261),c=t(35877),u=t(72185),p=t(52413),m=t(11148),g=t(77660),h=t(2184),A=t(66313),x=t(71007),y=t(88700),v=t(75020),f=t(23307),b=t(57548),T=t(97710),E=t(99486),C=t(11788),j=t(14232),_=t(8733),N=t(86367),S=t(35967),I=t(49995),R=t(78206),M=t(44478),O=t(68748),P=t(64204),k=t(54753);let L=(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}})),B=e=>{let{availabilityLoading:a,isSubmitting:t,canAddToCart:n,hideAddToCartForPrepackItems:r,anonymousUser:l}=e,o=L(),d=(0,m.rd)();return r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:o.cannotAddToCart,children:(0,i.jsx)(_.A,{id:"CANNOT_ADD_TO_CART",defaultMessage:"Cannot Add To Cart"})}),(0,i.jsx)(_.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)(s.A,{type:"submit",className:o.submitButton,variant:"contained",color:"primary",size:"large",fullWidth:!0,disabled:a||t,id:"submit-button-add-to-cart",children:(0,i.jsx)(_.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)(P.A,{className:o.linkButton,id:"submit-button-login-to-add-to-cart",children:(0,i.jsx)(_.A,{...k.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)(P.A,{className:o.linkButton,children:(0,i.jsx)(_.A,{...k.A.LINK_PROFILE})})})};var F=t(36382),D=t(10113),w=t(89099),W=t(776),U=t(88887);let H=(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)}})),G=e=>{let{materialPricing:a,country:t,productNumber:n,canAddToCart:l,anonymousUser:s,marketplaceOfferId:o}=e,d=H(),c=(0,w.useRouter)(),u={materialNumber:a[0].materialNumber,quantity:1,material:a[0]},[p,m]=(0,j.useState)(u),g=(0,F.g9)(),{getSitePreference:h}=(0,C.iZ)(),A=h(C.VD.HideAddToCartForPrepackItems);return(0,j.useMemo)(()=>m(u),[n]),(0,i.jsx)(R.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:o}],i,n,"marketplace"===a[0].catalogType)},enableReinitialize:!0,children:e=>{var n;let{values:o,isSubmitting:c,initialValues:u}=e,m=o.material;return p.materialNumber!==u.materialNumber?null:(0,i.jsx)(R.lV,{children:(0,i.jsxs)("div",{className:(0,I.A)(t&&d.multiCountryTable),children:[(0,i.jsx)(r.A,{mb:1,children:(0,i.jsx)("label",{htmlFor:"TEMP",children:(0,i.jsx)(_.A,{...k.A.SKU})})}),(0,i.jsx)(R.D0,{name:"materialNumber",children:e=>{var t;let{form:n,field:r,meta:l}=e;return(0,i.jsx)(M.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)(S.Gr,{style:"currency",currencyDisplay:"symbol",currency:e.currency,value:e.price})}):(0,i.jsx)(_.A,{...k.A.UNAVAILABLE})]}),value:e.materialNumber}))})}}),m.price&&m.listPrice&&m.listPrice>m.price?(0,i.jsx)("div",{className:d.listPrice,children:(0,i.jsx)(S.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)(S.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)(D.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&&!A?(0,i.jsx)(R.D0,{name:"quantity",children:e=>{var a;let{form:t,field:n}=e;return(0,i.jsx)(O.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)(B,{isSubmitting:c,availabilityLoading:!!(null==m?void 0:null===(n=m.availabilities)||void 0===n?void 0:n.length),canAddToCart:l,hideAddToCartForPrepackItems:A,anonymousUser:s})]})})}})},z=e=>{let{materialPricing:a,country:t,productNumber:n,canAddToCart:r,anonymousUser:l,marketplaceOfferId:s}=e;return(null==a?void 0:a.length)?(0,i.jsx)(G,{materialPricing:a,country:t,productNumber:n,canAddToCart:r,anonymousUser:l,marketplaceOfferId:s}):null};var Y=t(25771),q=t(84119),V=t(86680),K=t(4009),Q=t(71662),$=t(61622),X=t(40002),Z=t(40352),J=t(81232),ee=t(52710);let ea=e=>{let{country:a,currentDtaqDealer:t,materialPricing:n,canAddToCart:r,PricingComponent:l=K.A,displayPromotionalBundlesAnchor:s,displaySDS:o,ctas:d,discontinuedPricingInfo:c,productName:u,displaySellerName:p,productKey:m,productDescription:g,productId:h,images:A,brandKey:x,gaType:y,gaMapProducts:v,addToList:f,condensed:b=!1,isMarketplace:T,isMarketplaceCartEnabled:E,marketplaceSellerId:_,marketplaceOfferId:N,productAttributes:S,onAddToCartResult:I,handlePriceUpdateForDealer:M,updateQuantity:O,erpType:P,dChainMessage:k}=e,L=(0,w.useRouter)(),B=(0,Z.Ay)(),D=(0,F.g9)(),{getSitePreference:U,isDTAQZuCustomer:H,isBlueErpIntegrationEnabled:G,isB2BUser:z,userErpType:Y}=(0,C.iZ)(),q=L.asPath.includes("/compare"),ea=U(C.VD.HideAddToCartForPrepackItems),et=(0,j.useContext)(ee.E);if(c){let e=q?null:null==c?void 0:c.replacementProducts,a=(0,$.j)(e);return(0,i.jsxs)(ee.M,{...et,replacementProducts:e,children:[(0,i.jsx)(J.A,{discontinuedPricingInfo:c}),a&&(0,i.jsx)(Q.A,{type:X.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:m,brandKey:x,images:A},products:a,slidesToShow:B({xs:1,sm:2,lg:3}),withoutControls:a.length<=4})]})}if(!(null==n?void 0:n.length))return null;let ei=H?U(C.VD.PreferredDealerId):null;return(0,i.jsx)(R.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),s=n.filter(e=>l.filter(a=>a.materialNumber===(null==e?void 0:e.materialNumber))[0]);(0,V.p8)(l,n,y,v,P,{isBlueErpIntegrationEnabled:G,isB2BUser:z,userErpType:Y}),f?f(l):((0,W.xy)({items:s,productListPageName:L.asPath.includes("/search")?W.L1.SearchResultPage:W.L1.ProductDetailPage}),D(l,i,r,T).then(I))},children:e=>{let{isSubmitting:t,dirty:c,submitForm:m,resetForm:A,setFieldValue:x,values:y}=e;return(0,i.jsx)(R.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:A,displayPromotionalBundlesAnchor:s,displaySDS:o,ctas:d,isAddToList:!!f,condensed:b,setFieldValue:x,values:y,isMarketplace:T,isMarketplaceCartEnabled:E,marketplaceSellerId:_,marketplaceOfferId:N,productAttributes:S,handlePriceUpdateForDealer:M,updateQuantity:O,erpType:P,dChainMessage:k})})}})};var et=t(29394),ei=t(65264),en=t(32588),er=t(17685),el=t(16193),es=t(89212),eo=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,S,I,R,M,O,P,k,L,B,F,D;let{queryFocus:w,productNumber:W,productDescription:U,images:H,materialIds:G,brandKey:V,LoadingComponent:K=et.A,ErrorComponent:Q=q.A,PricingComponent:$,displayPromotionalBundlesAnchor:X,displayAllCountries:Z=!0,checkForPb:J,ctas:ec,productName:eu,productId:ep,displaySellerName:em,productDetailEvent:eg,gaType:eh=y.k9.Others,gaMapProducts:eA,addToList:ex,pricingExpanded:ey=!1,condensed:ev=!1,sendPandAEvent:ef=!1,isMarketplace:eb=!1,marketplaceSellerId:eT,marketplaceOfferId:eE,productAttributes:eC,usePricingComponentOnMobile:ej,onAddToCartResult:e_,setProductIsAvailable:eN,displayCompareMarketplaceSellerContact:eS=!1,productKey:eI,erp_type:eR,quantity:eM=1,isBBE:eO,eventSentRef:eP}=e,ek=ed(),eL=(0,m.rd)(),eB=(0,c.A)(),eF=(0,n.A)(eB.breakpoints.down("xs")),{focus:eD="",catalogType:ew="",context:eW=""}=eL.query||{},eU=(0,f.y5)(eW),{getSitePreference:eH,isDTAQZuCustomer:eG,isMultiCountryUser:ez,currentUser:eY,isBlueErpIntegrationEnabled:eq,isB2BUser:eV,userErpType:eK}=(0,C.iZ)(),{userSession:{country:eQ}}=(0,er.j)(),{authorized:e$,anonymous:eX}=(0,E.I)(E.N.canAddToCart),eZ=ez&&Z,eJ=W.startsWith("CB_"),[e0,{data:e1,loading:e2,error:e4,refetch:e7}]=(0,A.Gb)({fetchPolicy:eG?"no-cache":"cache-first"}),e3=(0,j.useContext)(ee.E),[e6,{data:e8,loading:e5,error:e9,refetch:ae,called:aa}]=(0,h.Fo)(),at=eG?eH(C.VD.PreferredDealerId):null,[ai,an]=(0,j.useState)(at),[ar,al]=(0,j.useState)(eQ),as=eH(C.VD.CatalogFilter),ao=eb?g.Mh.Marketplace:null,ad=eO?g.Mh.Buildingblocks:void 0,ac=eq&&eR&&(null==eR?void 0:eR.length)>0,au={variables:{productNumber:W,materialIds:G,brand:V,quantity:eM,catalogType:(0,T.vN)(ad||ao||ew||w||eD||eU),orgId:as,checkForPb:J,displaySDS:eJ,dealerId:"",checkBuyNow:!0,productKey:eI,...ac&&{erp_type:eR}}},ap=(0,eo.h)(e8,(e,a)=>{al(a)});(0,j.useEffect)(()=>{let e=window.navigator.userAgent,a=(0,es.A)(e),t={variables:{...au.variables,cachedPriceOnly:a}};W&&(eZ?e6(au):e0(t))},[eZ,e6,e0,W,eM]),(0,j.useEffect)(()=>{var e,a;if(eZ&&(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:eQ)}},[null==e8?void 0:e8.getPricingForMultiCountryProducts]),(0,j.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,x.x)(t||[],eu,W,V,eb,eR||[],{isBlueErpIntegrationEnabled:eq,isB2BUser:eV,userErpType:eK}),e4&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&((0,v.ds)(W,e4,"PRODUCT_SOLD_EXCLUSIVELY_BY_MILLIPORE_VIA_OFFLINE_CHANNELS",V,eu),"function"==typeof eN&&eN(!1)),(null==e1?void 0:null===(a=e1.getPricingForProduct)||void 0===a?void 0:a.discontinuedPricingInfo)&&!(null==eP?void 0:eP.current)&&((0,v.ds)(null!=W?W:"",void 0,"THIS_PRODUCT_DISCONTINUED",null!=V?V:"",null!=eu?eu:""),eP&&(eP.current=!0))},[e1,e4]);let[am,ag]=j.useState();(0,j.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,j.useEffect)(()=>{am&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&(0,v.ds)(W,void 0,am,V||"",eu||"")},[am]),(0,j.useEffect)(()=>{(am||e4||e9&&ey&&eh===y.k9.PaperDetails)&&(0,v.ds)(W,e4||e9,am||"",V||"",eu||"")},[ey]),(0,j.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,x.x)(t||[],eu,W,V),e9&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&(0,v.ds)(W,e9,void 0,V||"",eu||"")},[e5]);let ah=async(e,a,t,i,n)=>(e&&(an(e),au.variables.dealerId=e),e0(au),n(!1)),aA=(0,j.useCallback)(e=>eZ?ae({...au.variables,quantity:e}):e7({...au.variables,quantity:e}),[e1||e8]);(0,j.useEffect)(()=>{var e;let a=null==e1?void 0:null===(e=e1.getPricingForProduct)||void 0===e?void 0:e.dchainMessage;!e2&&ef&&a&&eh===y.k9.ProductCompare&&(0,v.ds)(W,void 0,a,V||"",eu||"")},[e2]);let ax=!!e1||!!e8;if((e2||e5)&&!ax)return(0,i.jsx)(K,{displaySDS:eJ});if(e4||e9||aa&&!(e8||e1))return(0,i.jsx)(ee.M,{...e3,brand:V,item:W,children:(0,i.jsx)(Q,{handlePriceUpdateForDealer:ah,materialPricing:[{materialNumber:au.variables.productNumber,brand:V,listPrice:0,productGroupSBU:""}],error:e4||e9,productNumber:W,isMarketplace:eb,sellerName:em||(0,T.t1)(eC),marketplaceSellerId:eT,marketplaceOfferId:eE})});if((null==e1?void 0:e1.getPricingForProduct.productInfo)&&(null==e1?void 0:e1.getPricingForProduct.productInfo.length)){let e=null==e1?void 0:null===(B=e1.getPricingForProduct.productInfo[0])||void 0===B?void 0:B.message;if(e)return(0,i.jsx)(ei.A,{country:eQ,brandKey:null!=V?V:"",productNumber:null!==(D=null==e1?void 0:null===(F=e1.getPricingForProduct.productInfo[0])||void 0===F?void 0:F.productNumber)&&void 0!==D?D:"",productMessage:e})}return eZ?(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:ek.dchainMessage,children:(0,i.jsx)(_.A,{...b.A[am],values:{productNumber:(0,i.jsx)("b",{children:W})}})})}),!ej&&eF&&(0,i.jsx)(r.A,{children:(0,i.jsx)(l.A,{variant:"h3",children:(0,i.jsx)(_.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:[!ej&&eF&&(0,i.jsx)(r.A,{children:(0,i.jsx)(z,{country:null==e?void 0:e.country,materialPricing:null==e?void 0:e.materialPricing,productNumber:W,canAddToCart:!1,anonymousUser:eX,marketplaceOfferId:eE})}),(0,i.jsx)(r.A,{display:ej?void 0:{xs:"none",sm:"block"},className:ek.pricingTableContainer,"data-testid":"pricing-availability-".concat(V).concat(W),id:"pricing-availability-".concat(V).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:eI,images:H,canAddToCart:!1,PricingComponent:$,displayPromotionalBundlesAnchor:X,displaySDS:eJ,ctas:ec,brandKey:V,gaType:eh,gaMapProducts:eA,condensed:ev,isMarketplace:eb,isMarketplaceCartEnabled:!!(null==eY?void 0:null===(a=eY.metadata)||void 0===a?void 0:a.isMarketplaceCartEnabled),marketplaceSellerId:eT,marketplaceOfferId:eE,productAttributes:eC,handlePriceUpdateForDealer:ah,updateQuantity:aA,erpType:eR||[],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:ek.dchainMessage,children:[(0,i.jsx)(_.A,{...b.A[am],values:{productNumber:(0,i.jsx)("b",{children:W})}})," ",eb&&(0,i.jsx)(p.N,{...m.kJ.contact(em||(0,T.t1)(eC),eT,eL.asPath,m.C2.OFFER_MESSAGING,eE),children:(0,i.jsx)("a",{children:(0,i.jsx)(_.A,{id:"CONTACT_SELLER_WITH_NAME",defaultMessage:"Contact {sellerName}.",values:{sellerName:(0,T.t1)(eC)}})})})]})}),!ej&&eF&&(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)(_.A,{id:"PRICING_AND_AVAILABILITY_HEADING",defaultMessage:"Select an Option"})})}),(0,i.jsx)(N.A,{productKey:eI,brandKey:V,productName:null!=eu?eu:"",images:H,discontinuedPricingInfo:null==e1?void 0:null===(S=e1.getPricingForProduct)||void 0===S?void 0:S.discontinuedPricingInfo,materialPricing:null==e1?void 0:null===(I=e1.getPricingForProduct)||void 0===I?void 0:I.materialPricing,canAddToCart:e$&&!ez&&(!eb||eb&&!!(null==eY?void 0:null===(R=eY.metadata)||void 0===R?void 0:R.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)(s.A,{component:"a",target:"_blank",href:a.url,variant:"outlined",size:"large",color:"primary",fullWidth:!0,children:a.label})}),!!e&&!eb&&(0,i.jsx)("div",{className:ek.bulkOrderWrapper,children:(0,i.jsx)(p.N,{href:e.url,passHref:!0,children:(0,i.jsx)(o.A,{"data-testid":"p&a-request-bulk-link",color:"primary",target:"_blank",children:e.label})})})]})},marketplaceOfferId:eE}),(0,i.jsx)(Y.A,{isMarketplace:eb,marketplaceSellerId:eT,marketplaceOfferId:eE,productAttributes:eC,displaySellerName:em})]}),eF||eL.asPath.includes("/compare")?null:(0,i.jsx)(en.A,{mb:4}),(0,i.jsx)(r.A,{width:"100%",display:ej?void 0:{xs:"none",sm:"block"},"data-testid":"pricing-availability-".concat(V).concat(W),id:"pricing-availability-".concat(V).concat(W),mt:3*!ev,children:(0,i.jsx)(ea,{currentDtaqDealer:ai,materialPricing:null==e1?void 0:null===(M=e1.getPricingForProduct)||void 0===M?void 0:M.materialPricing,discontinuedPricingInfo:null==e1?void 0:null===(O=e1.getPricingForProduct)||void 0===O?void 0:O.discontinuedPricingInfo,productKey:eI,productDescription:U,productName:null!=eu?eu:"",productId:ep,displaySellerName:null!=em?em:"",images:H,canAddToCart:e$&&!ez&&(!eb||eb&&!!(null==eY?void 0:null===(P=eY.metadata)||void 0===P?void 0:P.isMarketplaceCartEnabled)),PricingComponent:$,displayPromotionalBundlesAnchor:X,displaySDS:eJ,ctas:ec,brandKey:V,gaType:eh,gaMapProducts:eA,addToList:ex,condensed:ev,isMarketplace:eb,isMarketplaceCartEnabled:!!(null==eY?void 0:null===(k=eY.metadata)||void 0===k?void 0:k.isMarketplaceCartEnabled),marketplaceSellerId:eT,marketplaceOfferId:eE,productAttributes:eC,onAddToCartResult:e_,handlePriceUpdateForDealer:ah,updateQuantity:aA,displayCompareMarketplaceSellerContact:eS,erpType:eR||[],dChainMessage:null==e1?void 0:null===(L=e1.getPricingForProduct)||void 0===L?void 0:L.dchainMessage})})]}):aa?(0,i.jsx)(Q,{handlePriceUpdateForDealer:ah,materialPricing:[{materialNumber:au.variables.productNumber,brand:V,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),s=t(40597),o=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)(o.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,o]=n.useState(!1),d=()=>{o(!1)},p=()=>{o(!0)},m=e=>{navigator.clipboard.writeText(e),p(),setTimeout(()=>{d()},750)};return(0,i.jsx)(l.A,{onClickAway:d,children:(0,i.jsx)(s.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})})})}},28094:(e,a,t)=>{t.d(a,{O:()=>r});var i=t(11788),n=t(77660);let r=()=>{let{isBlueErpIntegrationEnabled:e,userErpType:a,isB2BUser:t,isDarmstadtUser:r}=(0,i.iZ)();return!e||r?void 0:t?t&&a===n.zI.Blue?"erp_type:blue":void 0:"erp_type:all"}},28907:(e,a,t)=>{t.d(a,{A:()=>u,h:()=>p});var i=t(37876),n=t(49794),r=t(11148),l=t(52413),s=t(97710),o=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:A,productDescription:x}=e,y="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,s.vN)(null!=y?y: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:[A&&m&&(0,i.jsx)(o.A,{value:A+", ",className:m}),(0,i.jsx)(o.A,{value:x,className:g})]}):u})}):"DESCRIPTION"===h?(0,i.jsx)(o.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),s=t(7645),o=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)(s.A,{display:["block","none"],children:[(0,i.jsx)(o.A,{height:20,width:.4,marginBottom:3}),(0,i.jsx)(o.A,{height:40,width:.75,marginBottom:4}),(0,i.jsxs)(s.A,{display:"flex",marginBottom:4,children:[(0,i.jsx)(o.A,{height:24,width:24,marginRight:3,style:{borderRadius:"50%"}}),(0,i.jsxs)(s.A,{flex:1,children:[(0,i.jsx)(o.A,{height:14,width:.9,marginBottom:2}),(0,i.jsx)(o.A,{height:14,width:.7})]})]}),(0,i.jsx)(o.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(o.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(o.A,{height:40,width:1})]}),(0,i.jsxs)(s.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)(o.A,{height:28,width:.9,borderRadius:"borderRadius",className:t.loadingBox})},a))},r))})]})]})}},30510:(e,a,t)=>{t.d(a,{T:()=>eA,A:()=>ey});var i=t(37876),n=t(14232),r=t(61261),l=t(78206),s=t(8733),o=t(77742),d=t(90079),c=t(5411),u=t(32768),p=t(72214),m=t(28975),g=t(77660),h=t(28888),A=t(82897),x=t(54431);function y(){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 y=function(){return e},e}let v={},f=(0,A.J1)(y());var b=t(21347),T=t(75878),E=t(26925),C=t(4009),j=t(54753),_=t(70524),N=t(64272),S=t(52263),I=t(11148),R=t(11788),M=t(99486),O=t(23307),P=t(97710),k=t(28011),L=t(54736),B=t(32886),F=t(75020),D=t(10759),w=t(12197),W=t(99220),U=t(46588);let H=(0,W.n9)()(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"}})),G=()=>{let{classes:e}=H();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)(w.A,{children:(0,i.jsx)(s.A,{...j.A.RESTRICTED_ITEM_MESSAGE})})]})};var z=t(68351);let Y=[g.qL.ApoNoStock,g.qL.OutOfStockKey,g.qL.UnknownAvailability],q=e=>{let{materialPricing:a,selectedChip:t,onSelect:n}=e;return(0,i.jsx)(z.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=>Y.includes(e.key))}).map(e=>{let{materialNumber:a}=e;return a}),onSelect:n,id:"sku-selection"})};var V=t(95349),K=t(52413),Q=t(17685),$=t(98411),X=t(3848),Z=t(52710),J=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,o=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:o.documentsContainer,children:[(0,i.jsx)(w.A,{variant:"caption",component:"h2",className:o.sectionTitle,children:(0,i.jsx)(s.A,{id:"DOCUMENTS",defaultMessage:"Documents"})}),(0,i.jsxs)("div",{className:o.documents,children:[m.length>0&&(0,i.jsx)(J.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),es=t(61206),eo=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:o,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)(w.A,{variant:"caption",component:"dt",children:[t?(0,i.jsx)(s.A,{id:"LINEAR_FORMULA",defaultMessage:"Linear Formula"}):(0,i.jsx)(s.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)(es.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)(w.A,{variant:"caption",component:"div",children:[(0,i.jsx)(s.A,{id:"CAS_NUMBER",defaultMessage:"CAS Number"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(eo.m5,{color:"primary",label:r,searchValue:(0,P.aE)(r),searchFocusType:(0,P.UQ)(a),productSearchType:P.mI.CasNumber,onClick:()=>{(0,ea._B)({searchTerm:o||"",searchAutoSuggest:"quick view - cas number",searchAutoSuggestTerm:"".concat(r),searchType:(0,P.UQ)(a),searchComponent:"global search",searchErrorMessage:""}),(0,ea.OT)({action:"cas number click",component:"modal",detail:r,elementType:"link",elementText:r,linkUrl:"".concat(I.wO.searchResults((0,P.aE)(r))).concat((0,P.$c)({term:(0,P.aE)(r).toLowerCase(),focus:(0,P.UQ)(a),type:P.mI.CasNumber})),productBrand:d,productId:o,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)(w.A,{variant:"caption",component:"div",children:[(0,i.jsx)(s.A,{id:"MOLECULAR_WEIGHT",defaultMessage:"Molecular Weight"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(es.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)}})),eA=()=>{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)(s.A,{...j.A.LOADING_PRICE_AND_AVAILABILITY})})]})},ex=function(e,a,t,r,d,p){let h=arguments.length>6&&void 0!==arguments[6]&&arguments[6],A=arguments.length>7?arguments[7]:void 0,x=arguments.length>8?arguments[8]:void 0;return function(y){var v,f;let{materialPricing:E,values:N,isSubmitting:S,updateQuantity:O=u.A}=y,{userIsLoggedIn:P,getSitePreference:L,currentUser:B,isPublicOrderingCustomer:w,isQuoteRequester:W}=(0,R.iZ)(),{authorized:U}=(0,M.I)(M.N.canAddToCart),H=eh(),{formatMessage:z}=(0,o.A)(),{setValues:Y}=(0,l.j7)(),J=L(R.VD.HideAddToCartForPrepackItems),{userSession:ee}=(0,Q.j)(),ea=(null==B?void 0:B.__typename)==="GuestUser"&&!U,et=(null==B?void 0:B.__typename)==="LoggedInUser"&&!(null==B?void 0:null===(v=B.metadata)||void 0===v?void 0:v.guestShoppingType)&&!w&&!W,ei=e=>E.find(a=>a.materialNumber===e),en=ei(a)||(null==E?void 0:E[0]),[er,el]=(0,n.useState)(en.materialNumber),[es,eo]=(0,n.useState)(1);(0,n.useEffect)(()=>{var e;eo(Number(null===(e=N[0])||void 0===e?void 0:e.quantity)||1)},[N]),(0,n.useEffect)(()=>{Y(e=>{var t,i;let n=a&&E.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==E?void 0:null===(i=E[0])||void 0===i?void 0:i.quantity)||1}}})},[Y,E]);let ed=(0,n.useRef)(1),[ec,eu]=(0,n.useState)(!1),em=(0,n.useMemo)(()=>ei(er),[E,er]);if(!em)return null;let{price:eg,availabilities:ex,hidePriceMessageKey:ey,leadTime:ev}=em,[ef]=ex||[],eb=(null==ef?void 0:ef.key)===g.qL.InquireForPriceAndAvailability;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(_.A,{children:(0,i.jsx)("span",{className:H.label,children:(0,i.jsx)(s.A,{...j.A.SKU})})}),(0,i.jsx)(q,{materialPricing:E,selectedChip:er,onSelect:e=>{el(e),Y(a=>{var t;return{0:{...a[0],materialNumber:e,quantity:Number(null===(t=a[0])||void 0===t?void 0:t.quantity)||1}}})}})]}),ey?(0,i.jsx)(V.A,{msgKey:ey}):null!=eg&&(0,i.jsxs)("div",{className:H.pricePromotionalWrapper,children:[!eb&&(0,i.jsx)(X.A,{material:em,priceClass:H.price,listPriceClass:H.listPrice}),t&&(0,i.jsx)("div",{className:H.promotionalCodeWrapper,children:(0,i.jsx)(s.A,{...j.A.USE_PROMOTIONAL_CODE,values:{promotionalCode:(0,i.jsx)("strong",{children:t})}})})]}),(0,i.jsx)("div",{className:H.availabilityMessages,children:ec?(0,i.jsx)("div",{className:H.loadingContainer,children:(0,i.jsx)(eA,{})}):(0,i.jsx)(Z.M,{source:p&&"p&a modal - ".concat(p),brand:em.brand,item:em.materialNumber,pricing:em,children:(0,i.jsx)($.A,{canAddToCart:U,material:em,initialShipEstimate:(0,i.jsx)(C.f,{availability:ef,quantity:es,leadTime:ev}),isDynamicProductCarousel:!0,isLoading:ec,hideDetailsLink:!0,gaComponent:"modal",gaSection:"quick view p&a"})})}),ea||et?(0,i.jsx)("div",{className:H.contactDealer,children:(0,i.jsx)(s.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(K.N,{...I.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)(s.A,{id:"CONTACT",defaultMessage:"contact"})})})}})}):(0,i.jsxs)(i.Fragment,{children:[x?(0,i.jsx)(ep.A,{size:"medium"}):U&&!J&&!(null==em?void 0:em.isBlockedProduct)&&!eb&&(0,i.jsxs)(m.fW,{className:H.actions,children:[(0,i.jsxs)("div",{className:H.mainActions,children:[(0,i.jsx)(l.D0,{name:"[0].quantity",component:T.A,className:H.quantityField,min:1}),(0,i.jsx)("div",{children:r&&P?(0,i.jsx)(k.A,{primaryOption:{label:z({id:"ADD_TO_CART",defaultMessage:"Add to Cart"}),renderButton:()=>(0,i.jsx)(b.Ay,{dirty:!0,isSubmitting:S,canAddToCart:!0,hideAddToCartForPrepackItems:J,size:"large"})},options:[{label:z(j.A.ADD_TO_LIST),onClick:()=>{d&&d(er,es)}}]}):(0,i.jsx)(b.Ay,{dirty:!0,isSubmitting:S,canAddToCart:!0,hideAddToCartForPrepackItems:J,size:"large",fullWidth:!0})}),(null===(f=ei(er))||void 0===f?void 0:f.isBuyNow)&&(0,i.jsx)(D.A,{materialNumber:er||"",quantity:es,onSuccess:e,marketplace:h,gaType:p})]}),(0,i.jsx)("div",{className:H.subActions,children:(0,i.jsx)(c.A,{className:H["checkAvailabilityButton.MuiButton-root"],variant:"text",color:"primary",size:"large",disabled:es===ed.current,onClick:async()=>{(0,F.Sm)({action:"check product availability",section:A?"modal p&a":"quick view p&a",component:"modal",elementType:"link",elementText:"check availability",material:em}),ed.current!==es&&(ed.current=es,eu(!0),await O(es),eu(!1))},children:(0,i.jsx)(s.A,{...j.A.CHECK_AVAILABILITY_BUTTON})})})]}),(null==em?void 0:em.isBlockedProduct)?(0,i.jsx)(G,{}):null]})]})}},ey=e=>{var a;let{open:t,onClose:r,image:l,brand:s,productKey:o,productNumber:d,name:c,description:u,gaLabel:h,gaType:A,initialMaterial:y,promotionalCode:b,showAddToList:T,isMarketplace:C=!1,marketplaceSellerId:j,erpType:_,renderInModal:M=!0,renderDocuments:k=!1,linearFormula:D,empiricalFormula:w,casNumber:W,molecularWeight:U,type:H}=e,G=eh(),{userIsLoggedIn:z,userId:Y}=(0,R.iZ)(),[q,V]=(0,n.useState)(""),[K,Q]=(0,n.useState)(1),[$,X]=(0,n.useState)("price-and-availability"),J=(e,a)=>{V(e),Q(a),X("add-to-list")},{isPurpleProduct:ee}=(0,eu.Q)(_),ea=(0,eg.L)(em.CN.countryCode),et=ee&&ea&&!z,ei=(0,n.useMemo)(()=>ex(r,y,b,T,J,A,C,M,et),[y]),en=(0,I.rd)(),{getSitePreference:el}=(0,R.iZ)(),es=el(R.VD.CatalogFilter)||void 0,{context:eo="",focus:ed=""}=en.query,ep=(0,O.y5)(eo),ey=(0,P.vN)(ep),{data:ev,loading:ef}=function(e){let a={...v,...e};return x.IT(f,a)}({variables:{brandKey:s.key,productKey:o,catalogType:ey,orgId:es}}),eb=null==ev?void 0:null===(a=ev.getProductDetail)||void 0===a?void 0:a.paMessage,eT=H===g.iC.ThirdPartyProvider,eE=null!=y?y:"";(0,n.useEffect)(()=>{X(t?"price-and-availability":null),A&&(0,F.Sm)({action:"view p&a",section:A,component:M?"carousel":"autosuggest",elementType:M?"button":void 0,elementText:M?"quick view":void 0,material:{materialDescription:c,brand:s.key,product:d}})},[d,A,h,t,M]);let{data:eC,refetch:ej}=(0,B.g)({fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",skip:!z,variables:{input:{perpage:100,sortcolumn:"lastUpdatedDate"}}}),e_=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:G.header,children:(0,i.jsx)(p.c,{image:l,brand:s,productKey:o,productNumber:d,name:c,description:u,showPreviouslyPurchasedChip:!0,isMarketplace:C,marketplaceSellerId:j||void 0,onProductLinkClick:r,additionalInfo:(D||w||W||U)&&(0,i.jsx)(ec,{focus:ed,productNumber:d,casNumber:W,molecularWeight:U,linearFormula:D,empiricalFormula:w,productBrand:s.key})})}),(0,i.jsx)("div",{className:G.main,children:(0,i.jsx)("div",{className:G.thumbnailOffset,children:(0,i.jsx)(Z.M,{source:A&&"p&a modal - ".concat(A),brand:s.key,item:d,children:ef?(0,i.jsx)(eA,{}):eb?(0,i.jsx)(S.Ay,{brandKey:s.key,productNumber:d,paMessage:eb}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.A,{productNumber:d,brandKey:s.key,LoadingComponent:eA,PricingComponent:ef?eA:ei,usePricingComponentOnMobile:!0,condensed:!0,onAddToCartResult:r,gaType:A,gaMapProducts:N.w_,productKey:o,isMarketplace:C,erp_type:_,productName:c,isBBE:eT,materialIds:[eE]}),k&&(0,i.jsx)(er,{brand:s,productNumber:d})]})})})})]});return M?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.Ay,{open:"price-and-availability"===$,onClose:()=>{r(),(0,F.Sm)({action:"close p&a",section:"modal p&a",component:"modal",elementType:"icon",material:{materialDescription:c,brand:s.key,product:d}})},size:m.Ih.Large,children:(0,i.jsx)(m.Uh,{className:G.modalMainContent,children:e_()})}),T&&(null==eC?void 0:eC.getSharedLists)&&(0,i.jsx)(L.A,{open:"add-to-list"===$,onClose:()=>{X(null),r()},materialNumber:q,quantity:K,lists:eC.getSharedLists.sharedLists,refetchLists:ej,userId:Y})]}):(0,i.jsx)("div",{className:G.quickLookWrapper,children:e_()})}},32148:(e,a,t)=>{t.r(a),t.d(a,{FacetChangeAction:()=>tg,SearchQueryContext:()=>tm,default:()=>tb,useSearchQuery:()=>tA});var i=t(37876),n=t(14232),r=t(85576),l=t(11148),s=t(6666),o=t(97710),d=t(77660),c=t(45249),u=t(92189),p=t(99220),m=t(51722),g=t(71541),h=t(48829),A=t(12197),x=t(5411),y=t(64204),v=t(80491),f=t(35877),b=t(52413),T=t(43965);let E=(0,p.n9)()(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"}})),C=e=>{let{images:a,productKey:t,productNumber:n,brandKey:r}=e,{classes:s}=E(),{removeCompareProduct:d}=(0,v.Zn)(),c=null==a?void 0:a.find(e=>!e.productKey||!e.brandKey||e.productKey===t&&e.brandKey===r);return(0,i.jsxs)("div",{className:s.productContainer,children:[(0,i.jsxs)("div",{className:s.product,children:[(0,i.jsx)("div",{children:c?(0,i.jsx)("div",{className:s.imageContainer,children:(0,i.jsx)("img",{className:s.image,src:c.smallUrl||c.mediumUrl,alt:(null==c?void 0:c.altText)||""})}):(0,i.jsx)("img",{className:s.image,src:"/assets/images/supelco-no-image/supelco-no-image_w300.png",alt:"Supelco"})}),(0,i.jsx)("div",{children:(0,i.jsx)(b.N,{...l.aR.index(r,t,{catalog:(0,o.vN)(o.Xc.Products)}),passHref:!0,children:n||t})})]}),(0,i.jsx)(y.A,{onClick:()=>d({brandKey:r,productKey:t}),children:(0,i.jsx)(T.A,{className:s.x})})]})};var j=t(8733);let _=(0,t(35967).YK)({NEED_ADDITIONAL_HELP:{id:"NEED_ADDITIONAL_HELP",defaultMessage:"Need Additional Help?"},ALDRICH_MARKET_SELECT_NSR:{id:"ALDRICH_MARKET_SELECT_NSR",defaultMessage:"your comprehensive solution for the identification and procurement of readily available screening compounds and building blocks."},CUSTOMER_SUPPORT:{id:"CUSTOMER_SUPPORT",defaultMessage:"Customer Support"},SORRY_NO_MATCHES_FOUND_FOR:{id:"SORRY_NO_MATCHES_FOUND_FOR",defaultMessage:"Sorry, we couldn’t find any matches for"},SORRY_NO_RETURN_RESPONSE_FOR:{id:"SORRY_NO_RETURN_RESPONSE_FOR",defaultMessage:"Sorry, we couldn’t return anything based on your search. Let’s help you find what you are looking for:"},SELECTION_CHIP_REMOVE_FILTER_1:{id:"SELECTION_CHIP_REMOVE_FILTER_1",defaultMessage:"Remove"},SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH:{id:"SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH",defaultMessage:"keyword to perform facet search"},KEYWORD:{id:"KEYWORD",defaultMessage:"Keyword"},SELECTION_CHIP_REMOVE_FILTER_2:{id:"SELECTION_CHIP_REMOVE_FILTER_2",defaultMessage:"filter"},FILTER_AND_SORT_HEADING:{id:"FILTER_AND_SORT_HEADING",defaultMessage:"Filter & Sort"},AVAILABLE_FOR_SALE:{id:"AVAILABLE_FOR_SALE",defaultMessage:"Available for Sale"},GLOBALLY:{id:"GLOBALLY",defaultMessage:"Globally"},SHOW_LESS:{id:"SHOW_LESS",defaultMessage:"Show Less"},SHOW_MORE:{id:"SHOW_MORE",defaultMessage:"Show More"},SORT_BY_RELEVANCE:{id:"SORT_BY_RELEVANCE",defaultMessage:"Sort by Relevance"},SORT_BY_NAME_ASCENDING:{id:"SORT_BY_NAME_ASCENDING",defaultMessage:"Sort by Name (Ascending)"},SORT_BY_NAME_DESCENDING:{id:"SORT_BY_NAME_DESCENDING",defaultMessage:"Sort by Name (Descending)"},SORT_BY_MOL_WT_ASC:{id:"SORT_BY_MOL_WT_ASC",defaultMessage:"Sort by Molecular Weight (Ascending)"},SORT_BY_MOL_WT_DESC:{id:"SORT_BY_MOL_WT_DESC",defaultMessage:"Sort by Molecular Weight (Descending)"},CLEAR_ALL:{id:"CLEAR_ALL",defaultMessage:"Clear All"},SORT_HEADING:{id:"SORT_HEADING",defaultMessage:"Sort"},SYNONYMS:{id:"SYNONYMS",defaultMessage:"Synonyms"},SUMMARY:{id:"SUMMARY",defaultMessage:"Summary"},HIDE_PRODUCTS:{id:"HIDE_PRODUCTS",defaultMessage:"Hide Products"},SHOW_PRODUCTS:{id:"SHOW_PRODUCTS",defaultMessage:"Show Products ({totalProducts})"},RELATED_PRODUCTS:{id:"RELATED_PRODUCTS",defaultMessage:"Related Products"},CAS_NO:{id:"CAS_NO",defaultMessage:"CAS No."},MOLECULAR_WEIGHT:{id:"MOLECULAR_WEIGHT",defaultMessage:"Molecular Weight"},EC_NO:{id:"EC_NO",defaultMessage:"EC No."},BEILSTEIN_NO:{id:"BEILSTEIN_NO",defaultMessage:"Beilstein No."},SIMILARITY:{id:"SIMILARITY",defaultMessage:"Similarity"},DETAILS:{id:"DETAILS",defaultMessage:"Details"},COMPARE:{id:"COMPARE",defaultMessage:"Compare"},EXPAND:{id:"EXPAND",defaultMessage:"Expand"},HIDE:{id:"HIDE",defaultMessage:"Hide"},SUBSTANCE_VIEW_PRICING:{id:"SUBSTANCE_VIEW_PRICING",defaultMessage:"View Pricing"},CLONALITY:{id:"CLONALITY",defaultMessage:"Clonality"},APPLICATION:{id:"APPLICATION",defaultMessage:"Application"},CITATIONS:{id:"CITATIONS",defaultMessage:"Citations"},SDS:{id:"SDS",defaultMessage:"SDS"},PORE_SIZE:{id:"PORE_SIZE",defaultMessage:"Pore Size"},DIAMETER:{id:"DIAMETER",defaultMessage:"Diameter"},STERILITY:{id:"STERILITY",defaultMessage:"Sterility"},MATERIAL:{id:"MATERIAL",defaultMessage:"Material"},DESCRIPTION:{id:"DESCRIPTION",defaultMessage:"Description"},BRAND:{id:"BRAND",defaultMessage:"Brand"},PRICING:{id:"PRICING",defaultMessage:"Pricing"},PRODUCT_NO:{id:"PRODUCT_NO",defaultMessage:"Product No."},LINEAR_FORMULA:{id:"LINEAR_FORMULA",defaultMessage:"Linear Formula"},EMPIRICAL_FORMULA_HILL_NOTATION:{id:"EMPIRICAL_FORMULA_HILL_NOTATION",defaultMessage:"Empirical Formula (Hill Notation)"},CONTACT_SELLER_SHIPPED_SOLD:{id:"CONTACT_SELLER_SHIPPED_SOLD",defaultMessage:"Shipped & Sold By"},CONTACT_SELLER_TRUSTED:{id:"CONTACT_SELLER_TRUSTED",defaultMessage:"A Trusted Marketplace Seller"},SEE_ALL_BUILDING_BLOCKS:{id:"SEE_ALL_BUILDING_BLOCKS",defaultMessage:"See All Building Blocks"},BUILDING_BLOCKS_EXPLORER:{id:"BUILDING_BLOCKS_EXPLORER",defaultMessage:"Building Blocks Explorer"},SEE_ALL_RELATED_GENES:{id:"SEE_ALL_RELATED_GENES",defaultMessage:"See All Related Genes"},NONE:{id:"NONE",defaultMessage:"None"},ALL_PHOTOS:{id:"ALL_PHOTOS",defaultMessage:"All Photos"},CAS_NUMBER:{id:"CAS_NUMBER",defaultMessage:"CAS Number"},EC_NUMBER:{id:"EC_NUMBER",defaultMessage:"EC Number"},BEILSTEIN_REGISTRY_NUMBER:{id:"BEILSTEIN_REGISTRY_NUMBER",defaultMessage:"Beilstein Registry Number"},EDIT_QUERY:{id:"EDIT_QUERY",defaultMessage:"Edit Query"},STRUCTURE_QUERY_IMAGE_ALT:{id:"STRUCTURE_QUERY_IMAGE_ALT",defaultMessage:"Structure query image. Only available when generated direct from editor"},NEW_SEARCH:{id:"NEW_SEARCH",defaultMessage:"New Search"},FACET_SEARCH_WITHIN:{id:"FACET_SEARCH_WITHIN",defaultMessage:"Search Within"},NO_FACETS_FOUND:{id:"NO_FACETS_FOUND",defaultMessage:"No facets found"},PRODUCTS:{id:"PRODUCTS",defaultMessage:"Products"},TECHNICAL_DOCUMENTS:{id:"TECHNICAL_DOCUMENTS",defaultMessage:"Technical Documents"},SITE_CONTENT:{id:"SITE_CONTENT",defaultMessage:"Site Content"},CHOOSE_UP_TO_FOUR_PRODUCTS:{id:"CHOOSE_UP_TO_FOUR_PRODUCTS",defaultMessage:"Choose up to 4 products to compare"},SHOWING:{id:"SHOWING",defaultMessage:"Showing"},RESULT:{id:"RESULT",defaultMessage:"result"},RESULTS:{id:"RESULTS",defaultMessage:"results"},SEARCH_RESULT_OF:{id:"SEARCH_RESULT_OF",defaultMessage:"of"},FOR:{id:"FOR",defaultMessage:"for"},WITHIN:{id:"WITHIN",defaultMessage:"within"},FACET_DOC_TYPE:{id:"FACET_DOC_TYPE",defaultMessage:"Document Type"},FACET_WEB_REFMATL_RMTYPE:{id:"FACET_WEB_REFMATL_RMTYPE",defaultMessage:"Reference Material Type"},FACET_WEB_REFMATL_APIFAM:{id:"FACET_WEB_REFMATL_APIFAM",defaultMessage:"API Family"},FACET_WEB_PROBE_PRESENTATION:{id:"FACET_PROBE_PRESENTATION",defaultMessage:"Probe Presentation"},FACET_WEB_PROBE_TYPE:{id:"FACET_PROBE_TYPE",defaultMessage:"Probe Sugar"},FACET_WEB_AGENCY_USP_SUITAB:{id:"FACET_AGENCY_USP_SUITAB",defaultMessage:"USP Suitability"},FACET_WEB_GREENER_CATEGORY:{id:"FACET_GREENER_CATEGORY",defaultMessage:"Greener Category"},FACET_WEB_ELEMENT:{id:"FACET_WEB_ELEMENT",defaultMessage:"Element"},FACET_WEB_ELEMENT_FAMILY:{id:"FACET_WEB_ELEMENT_FAMILY",defaultMessage:"Element Family"},FACET_WEB_POLYMERCHAIN_LEN:{id:"FACET_WEB_POLYMERCHAIN_LEN",defaultMessage:"Chain Length"},FACET_WEB_SAMPLE_IO_FEED_WATER_NATURE:{id:"FACET_WEB_SAMPLE_IO_FEED_WATER_NATURE",defaultMessage:"Feed Water Quality"},FACET_WEB_OPERATING_LIMIT_FLOWRATE:{id:"FACET_WEB_OPERATING_LIMIT_FLOWRATE",defaultMessage:"Production Flow Rate (L/hr)"},FACET_WEB_OPERATING_LIMIT_DISTFLOWRATE:{id:"FACET_WEB_OPERATING_LIMIT_DISTFLOWRATE",defaultMessage:"Distribution Flow Rate (L/min)"},FACET_WEB_OPERATING_LIMIT_MAXUSE:{id:"FACET_WEB_OPERATING_LIMIT_MAXUSE",defaultMessage:"Daily Water Usage (L/day)"},FACET_LANGUAGE:{id:"FACET_LANGUAGE",defaultMessage:"Language"},FACET_ORGANISM:{id:"FACET_ORGANISM",defaultMessage:"Organism"},FACET_RELATED_PRODUCT_CATEGORIES:{id:"FACET_RELATED_PRODUCT_CATEGORIES",defaultMessage:"Related Product Categories"},FACET_BOILING_POINT:{id:"FACET_BOILING_POINT",defaultMessage:"Boiling Point (\xb0C)"},FACET_MELTING_POINT:{id:"FACET_MELTING_POINT",defaultMessage:"Melting Point (\xb0C)"},FACET_WEB_CULTURE_MEDIA_COMP_GLUCOSE:{id:"FACET_WEB_CULTURE_MEDIA_COMP_GLUCOSE",defaultMessage:"Glucose (g/L)"},FACET_WEB_CULTURE_MEDIA_COMP_SODIUM_PYRUVATE:{id:"FACET_WEB_CULTURE_MEDIA_COMP_SODIUM_PYRUVATE",defaultMessage:"Sodium Pyruvate (g/L)"},FACET_WEB_CULTURE_MEDIA_COMP_HEPES:{id:"FACET_WEB_CULTURE_MEDIA_COMP_HEPES",defaultMessage:"HEPES (mM)"},FACET_WEB_COMP_LAYER_THICKNESS:{id:"FACET_WEB_COMP_LAYER_THICKNESS",defaultMessage:"Layer Thickness (\xb5m)"},FACET_WEB_OPERATING_LIMIT_FREQUENCY_MHZ:{id:"FACET_WEB_OPERATING_LIMIT_FREQUENCY_MHZ",defaultMessage:"Frequency (MHz)"},FACET_WEB_NUCLEOSIDE_2_PROT:{id:"FACET_WEB_NUCLEOSIDE_2_PROT",defaultMessage:"2' protecting group"},FACET_WEB_NUCLEOSIDE_5_PROT:{id:"FACET_WEB_NUCLEOSIDE_5_PROT",defaultMessage:"5' protecting group"},FACET_WEB_NUCLEOSIDE_BASE:{id:"FACET_WEB_NUCLEOSIDE_BASE",defaultMessage:"Base"},FACET_WEB_NUCLEOSIDE_BASE_PROT:{id:"FACET_WEB_NUCLEOSIDE_BASE_PROT",defaultMessage:"Base protection"},FACET_WEB_MTX_ACT_GP:{id:"FACET_WEB_MTX_ACT_GP",defaultMessage:"Phase"},FACET_WEB_MARKET_FOCUS:{id:"FACET_WEB_MARKET_FOCUS",defaultMessage:"Application"},FACET_WEB_TITERTEST_APP:{id:"FACET_WEB_TITERTEST_APP",defaultMessage:"Technique"},FACET_WEB_SIZE_DESIGNATION_NEEDLE:{id:"FACET_WEB_SIZE_DESIGNATION_NEEDLE",defaultMessage:"Gauge"},FACET_WEB_FEATURE_CAP:{id:"FACET_WEB_FEATURE_CAP",defaultMessage:"Cap"},FACET_WEB_CELL_TRANSFORMATION_TYPE:{id:"FACET_WEB_CELL_TRANSFORMATION_TYPE",defaultMessage:"Transformation Type"},FACET_WEB_CELL_TRANSFORMATION_EFFICIENCY_CFU_UG:{id:"FACET_WEB_CELL_TRANSFORMATION_EFFICIENCY_CFU_UG",defaultMessage:"Transformation Efficiency (cfu/μg)"},FACET_WEB_CHEM_COMPOSITION:{id:"FACET_WEB_CHEM_COMPOSITION",defaultMessage:"Chemical Composition"},FACET_WEB_CHROMATOGRAPHY_MODE:{id:"FACET_WEB_CHROMATOGRAPHY_MODE",defaultMessage:"Separation Technique"},FACET_WEB_FEATURE_ELECTRONIC:{id:"FACET_WEB_FEATURE_ELECTRONIC",defaultMessage:"Electronic"},FACET_WEB_FILTER_CAPACITY_ML:{id:"FACET_WEB_FILTER_CAPACITY_ML",defaultMessage:"Filter Capacity (ml)"},FACET_WEB_FILTER_CAPACITY_UL:{id:"FACET_WEB_FILTER_CAPACITY_UL",defaultMessage:"Filter Capacity (\xb5L)"},FACET_GENE_ALIAS:{id:"FACET_GENE_ALIAS",defaultMessage:"Gene Alias"},FACET_GEOGRAPHY:{id:"FACET_GEOGRAPHY",defaultMessage:"Geography"},FACET_WEB_MATERIAL_NEEDLE_SHAPE:{id:"FACET_WEB_MATERIAL_NEEDLE_SHAPE",defaultMessage:"Needle Shape"},FACET_WEB_PRODUCT_AREA:{id:"FACET_WEB_PRODUCT_AREA",defaultMessage:"Product Area"},FACET_PRODUCT_CATEGORY:{id:"FACET_PRODUCT_CATEGORY",defaultMessage:"Product Category"},FACET_PRODUCT_TYPE:{id:"FACET_PRODUCT_TYPE",defaultMessage:"Product Type"},FACET_RELATED_CATEGORY:{id:"FACET_RELATED_CATEGORY",defaultMessage:"Related Category"},FACET_WEB_FEATURE_SURFACE:{id:"FACET_WEB_FEATURE_SURFACE",defaultMessage:"Surface"},FACET_WEB_TUBE_SIZE_ML:{id:"FACET_WEB_TUBE_SIZE_ML",defaultMessage:"Tube Size (ml)"},FACET_WEB_MATERIAL_VIALBOTTLE:{id:"FACET_WEB_MATERIAL_VIALBOTTLE",defaultMessage:"Vial Bottle Material"},FACET_WEB_COMP_VOLUME_RANGE_UL:{id:"FACET_WEB_COMP_VOLUME_RANGE_UL",defaultMessage:"Volume Range (\xb5L)"},FACET_WEB_COMP_WORKINGVOLUME_ML:{id:"FACET_WEB_COMP_WORKINGVOLUME_ML",defaultMessage:"Working Volume (ml)"},FACET_WEB_ACTIVITY_SPECTRUM:{id:"FACET_WEB_ACTIVITY_SPECTRUM",defaultMessage:"Activity Spectrum"},FACET_WEB_ADEQUATE_FOR_NO_REACTIONS:{id:"FACET_WEB_ADEQUATE_FOR_NO_REACTIONS",defaultMessage:"Number of Reactions"},FACET_WEB_AGENCY_METHOD:{id:"FACET_WEB_AGENCY_METHOD",defaultMessage:"Agency"},FACET_WEB_ANALYTE_SUITABILITY:{id:"FACET_WEB_ANALYTE_SUITABILITY",defaultMessage:"Analyte Suitability"},FACET_WEB_ANTIBODY_FORM:{id:"FACET_WEB_ANTIBODY_FORM",defaultMessage:"Antibody Form"},FACET_WEB_BATTERY_POWER:{id:"FACET_WEB_BATTERY_POWER",defaultMessage:"Battery Type"},FACET_WEB_FEATURE_BINDER:{id:"FACET_WEB_FEATURE_BINDER",defaultMessage:"Binder"},FACET_WEB_FEATURE_DNTPS:{id:"FACET_WEB_FEATURE_DNTPS",defaultMessage:"dNTPs"},FACET_WEB_FEATURE_HOTSTART:{id:"FACET_WEB_FEATURE_HOTSTART",defaultMessage:"Hot Start"},FACET_WEB_FEATURE_PCR_APPLICATION:{id:"FACET_WEB_FEATURE_PCR_APPLICATION",defaultMessage:"PCR Application"},FACET_WEB_POLYMERCHEM_POLYMERTYPE:{id:"FACET_WEB_POLYMERCHEM_POLYMERTYPE",defaultMessage:"Polymer Type"},FACET_WEB_POLYMERCHEM_MONOMERTYPE:{id:"FACET_WEB_POLYMERCHEM_MONOMERTYPE",defaultMessage:"Monomer Type"},FACET_WEB_POLYMERCHEM_POLYMERCOMPN:{id:"FACET_WEB_POLYMERCHEM_POLYMERCOMPN",defaultMessage:"Polymer Composition"},FACET_WEB_PEPTIDESYNTH_AMAC:{id:"FACET_WEB_PEPTIDESYNTH_AMAC",defaultMessage:" Amino Acid"},FACET_WEB_PEPTIDESYNTH_AMACTYPE:{id:"FACET_WEB_PEPTIDESYNTH_AMACTYPE",defaultMessage:" Amino Acid Type"},FACET_WEB_PEPTIDESYNTH_LINKER:{id:"FACET_WEB_PEPTIDESYNTH_LINKER",defaultMessage:" Linker"},FACET_WEB_POLYMERCHAIN_TYPE:{id:"FACET_WEB_POLYMERCHAIN_TYPE",defaultMessage:"Chain Type"},FACET_WEB_OPTICALISOMER:{id:"FACET_WEB_OPTICALISOMER",defaultMessage:"Optical Isomer"},FACET_WEB_PEPTIDESYNTH_CLEAVCOND:{id:"FACET_WEB_PEPTIDESYNTH_CLEAVCOND",defaultMessage:"Cleavage Condition"},FACET_WEB_SAMPLE_INPUT_PCR:{id:"FACET_WEB_SAMPLE_INPUT_PCR",defaultMessage:"Sample Type"},FACET_BIOLOGICAL_SOURCE:{id:"FACET_BIOLOGICAL_SOURCE",defaultMessage:"Biological Source"},FACET_WEB_MATERIAL_BOTTLE_DESC:{id:"FACET_WEB_MATERIAL_BOTTLE_DESC",defaultMessage:"Bottle material"},FACET_BRAND:{id:"FACET_BRAND",defaultMessage:"Brand"},FACET_WEB_COMP_CAPACITY_L:{id:"FACET_WEB_COMP_CAPACITY_L",defaultMessage:"Capacity (L)"},FACET_WEB_COMP_CAPACITY_ML:{id:"FACET_WEB_COMP_CAPACITY_ML",defaultMessage:"Capacity (mL)"},FACET_CLONALITY:{id:"FACET_CLONALITY",defaultMessage:"Clonality"},FACET_WEB_FEATURE_CLOSURE:{id:"FACET_WEB_FEATURE_CLOSURE",defaultMessage:"Closure Type"},FACET_COLOR:{id:"FACET_COLOR",defaultMessage:"Color"},FACET_COLLECTIONS:{id:"FACET_COLLECTIONS",defaultMessage:"Collections"},FACET_WEB_MATERIAL_COLOR:{id:"FACET_WEB_MATERIAL_COLOR",defaultMessage:"Color"},FACET_WEB_MATERIAL_COLUMN:{id:"FACET_WEB_MATERIAL_COLUMN",defaultMessage:"Column Material"},FACET_WEB_COLUMN_TYPE:{id:"FACET_WEB_COLUMN_TYPE",defaultMessage:"Column Type"},FACET_WEB_CONJUGATE:{id:"FACET_WEB_CONJUGATE",defaultMessage:"Conjugate"},FACET_WEB_FEATURE_CORE_TYPE:{id:"FACET_WEB_FEATURE_CORE_TYPE",defaultMessage:"Core Type"},FACET_WEB_NUCLEOSIDE_DEPROT:{id:"FACET_WEB_NUCLEOSIDE_DEPROT",defaultMessage:"Deprotection method"},FACET_WEB_COMP_DIAM_MM:{id:"FACET_WEB_COMP_DIAM_MM",defaultMessage:"Diameter (mm)"},FACET_WEB_CULTURE_MEDIA_COMP_EARLE:{id:"FACET_WEB_CULTURE_MEDIA_COMP_EARLE",defaultMessage:"Earles Salts"},FACET_WEB_MATERIAL_FIBER_DESC:{id:"FACET_WEB_MATERIAL_FIBER_DESC",defaultMessage:"Fiber material"},FACET_WEB_FITTINGS_THREADS:{id:"FACET_WEB_FITTINGS_THREADS",defaultMessage:"Fitting"},FACET_WEB_FITTINGS_THREADS_FITS_SIZE:{id:"FACET_WEB_FITTINGS_THREADS_FITS_SIZE",defaultMessage:"Fitting"},FACET_WEB_FEATURE_FLUORESCENT:{id:"FACET_WEB_FEATURE_FLUORESCENT",defaultMessage:"Fluorescence"},FACET_WEB_ANAL_STAND_FORM:{id:"FACET_WEB_ANAL_STAND_FORM",defaultMessage:"Format"},FACET_FWGHT:{id:"FACET_FWGHT",defaultMessage:"Formula Weight"},FACET_WEB_POLYMER_ARCH_FUNCTIONALITY:{id:"FACET_WEB_POLYMER_ARCH_FUNCTIONALITY",defaultMessage:"Functionality"},FACET_WEB_FEATURE_GENERATION:{id:"FACET_WEB_FEATURE_GENERATION",defaultMessage:"Generation"},FACET_WEB_GREENER_ALTERNATIVE_PRINCIPLES:{id:"FACET_WEB_GREENER_ALTERNATIVE_PRINCIPLES",defaultMessage:"Greener Alternative Principles"},FACET_WEB_CULTURE_MEDIA_COMP_HANKSALT:{id:"FACET_WEB_CULTURE_MEDIA_COMP_HANKSALT",defaultMessage:"Hanks Salts"},FACET_WEB_COMP_HEIGHT:{id:"FACET_WEB_COMP_HEIGHT",defaultMessage:"Height"},FACET_WEB_COMP_HEIGHT_IN:{id:"FACET_WEB_COMP_HEIGHT_IN",defaultMessage:"Height (in)"},FACET_WEB_COMP_HEIGHT_MM:{id:"FACET_WEB_COMP_HEIGHT_MM",defaultMessage:"Height (mm)"},FACET_WEB_HOST_SELECTION_HOST:{id:"FACET_WEB_HOST_SELECTION_HOST",defaultMessage:"Host"},FACET_WEB_MATERIAL_HOUSING:{id:"FACET_WEB_MATERIAL_HOUSING",defaultMessage:"Housing Material"},FACET_WEB_MATERIAL_HUB_COLOR:{id:"FACET_WEB_MATERIAL_HUB_COLOR",defaultMessage:"Hub color"},FACET_WEB_COMP_ID_MM:{id:"FACET_WEB_COMP_ID_MM",defaultMessage:"ID (mm)"},FACET_WEB_ISOTOPIC_PURITY_ISOTOPE:{id:"FACET_WEB_ISOTOPIC_PURITY_ISOTOPE",defaultMessage:"Isotope"},FACET_ISOTYPE:{id:"FACET_ISOTYPE",defaultMessage:"Isotype"},FACET_WEB_CULTURE_MEDIA_COMP_LGLUTAMINE:{id:"FACET_WEB_CULTURE_MEDIA_COMP_LGLUTAMINE",defaultMessage:"L-Glutamine"},FACET_WEB_COMP_LENGTH_CM:{id:"FACET_WEB_COMP_LENGTH_CM",defaultMessage:"Length (cm)"},FACET_WEB_COMP_LENGTH_FT:{id:"FACET_WEB_COMP_LENGTH_FT",defaultMessage:"Length (ft)"},FACET_WEB_COMP_LENGTH_IN:{id:"FACET_WEB_COMP_LENGTH_IN",defaultMessage:"Length (in)"},FACET_WEB_COMP_LENGTH_M:{id:"FACET_WEB_COMP_LENGTH_M",defaultMessage:"Length (m)"},FACET_WEB_COMP_LENGTH_MM:{id:"FACET_WEB_COMP_LENGTH_MM",defaultMessage:"Length (mm)"},FACET_MANUFACTURER_NAME:{id:"FACET_MANUFACTURER_NAME",defaultMessage:"Manufacturer"},FACET_MASS_SHIFT:{id:"FACET_MASS_SHIFT",defaultMessage:"Mass Shift"},FACET_WEB_MATERIAL_MATERIALDESC:{id:"FACET_WEB_MATERIAL_MATERIALDESC",defaultMessage:"Material"},FACET_WEB_MATERIAL_MATRIX:{id:"FACET_WEB_MATERIAL_MATRIX",defaultMessage:"Matrix Material"},FACET_WEB_MATERIAL_SUPPORT:{id:"FACET_WEB_MATERIAL_SUPPORT",defaultMessage:"Support Material"},FACET_WEB_MATERIAL_MEMBRANE:{id:"FACET_WEB_MATERIAL_MEMBRANE",defaultMessage:"Membrane Material"},FACET_WEB_MEDIA_SUITABILITY:{id:"FACET_WEB_MEDIA_SUITABILITY",defaultMessage:"Microorganism Suitability"},FACET_WEB_MODE_OF_ACTION:{id:"FACET_WEB_MODE_OF_ACTION",defaultMessage:"Mode of Action"},FACET_WEB_COMP_OD_IN:{id:"FACET_WEB_COMP_OD_IN",defaultMessage:"OD (in)"},FACET_WEB_COMP_OD_MM:{id:"FACET_WEB_COMP_OD_MM",defaultMessage:"OD (mm)"},FACET_WEB_ORIGINAL_DEVELOPER:{id:"FACET_WEB_ORIGINAL_DEVELOPER",defaultMessage:"Original Developer"},FACET_WEB_PEPTIDE_CLEAVAGE:{id:"FACET_WEB_PEPTIDE_CLEAVAGE",defaultMessage:"Peptide Cleavage"},FACET_PH_VAL:{id:"FACET_PH_VAL",defaultMessage:"pH Value"},FACET_WEB_CULTURE_MEDIA_COMP_PHENOL:{id:"FACET_WEB_CULTURE_MEDIA_COMP_PHENOL",defaultMessage:"Phenol Red"},FACET_PHYSICAL_FORM:{id:"FACET_PHYSICAL_FORM",defaultMessage:"Physical Form"},FACET_PK_VAL:{id:"FACET_PK_VAL",defaultMessage:"pK Value"},FACET_WEB_MATERIAL_PLATE:{id:"FACET_WEB_MATERIAL_PLATE",defaultMessage:"Plate Material"},FACET_WEB_PORE_SIZE_A:{id:"FACET_WEB_PORE_SIZE_A",defaultMessage:"Pore Size (Å)"},FACET_WEB_PORE_SIZE_DIM1_UM:{id:"FACET_WEB_PORESIZE_UM",defaultMessage:"Pore size (\xb5m)"},FACET_WEB_PARTICLE_SIZE_UM:{id:"FACET_WEB_PARTICLE_SIZE_UM",defaultMessage:"Particle Size (\xb5m)"},FACET_WEB_PROMOTER:{id:"FACET_WEB_PROMOTER",defaultMessage:"Promoter"},FACET_PURITY:{id:"FACET_PURITY",defaultMessage:"Purity"},FACET_WEB_REACT_SUITABILITY_REACTION_TYPE:{id:"FACET_WEB_REACT_SUITABILITY_REACTION_TYPE",defaultMessage:"Reaction Type"},FACET_WEB_REACT_SUITABILITY_REACTIVITY:{id:"FACET_WEB_REACT_SUITABILITY_REACTIVITY",defaultMessage:"Reactivity"},FACET_WEB_REACT_SUITABILITY_REAGENT_TYPE:{id:"FACET_WEB_REACT_SUITABILITY_REAGENT_TYPE",defaultMessage:"Reagent Type"},FACET_RECOMBINANT_HOST:{id:"FACET_RECOMBINANT_HOST",defaultMessage:"Recombinant Host"},FACET_WEB_RELEVANT_DISEASE:{id:"FACET_WEB_RELEVANT_DISEASE",defaultMessage:"Relevant Disease"},FACET_WEB_REPORTER_GENE:{id:"FACET_WEB_REPORTER_GENE",defaultMessage:"Reporter Gene"},FACET_WEB_HOST_SELECTION_SELECTION:{id:"FACET_WEB_HOST_SELECTION_SELECTION",defaultMessage:"Selection Method"},FACET_WEB_POLYMER_ARCH_SHAPE:{id:"FACET_WEB_POLYMER_ARCH_SHAPE",defaultMessage:"Shape"},FACET_WEB_SIZE_DESIGNATION:{id:"FACET_WEB_SIZE_DESIGNATION",defaultMessage:"Size"},FACET_WEB_CULTURE_MEDIA_COMP_NAHCO3:{id:"FACET_WEB_CULTURE_MEDIA_COMP_NAHCO3",defaultMessage:"Sodium Bicarbonate"},FACET_WEB_SPECIAL_GRADE:{id:"FACET_WEB_SPECIAL_GRADE",defaultMessage:"Special Grade"},FACET_WEB_SPECIES_REACTIVITY:{id:"FACET_WEB_SPECIES_REACTIVITY",defaultMessage:"Species Reactivity"},FACET_WEB_STERILIZATION:{id:"FACET_WEB_STERILIZATION",defaultMessage:"Sterility"},FACET_STERILIZABILITY_COMPAT:{id:"FACET_STERILIZABILITY_COMPAT",defaultMessage:"Sterilization Compatibility"},FACET_WEB_TAXON:{id:"FACET_WEB_TAXON",defaultMessage:"Taxon"},"FACET_WEB_MEASURRANGE_WEIGHCAPACITY_LINEAR-G":{id:"FACET_WEB_MEASURRANGE_WEIGHCAPACITY_LINEAR-G",defaultMessage:"Linearity (g)"},FACET_WEB_BIOLSOURCE_ORGANISMPART:{id:"FACET_WEB_BIOLSOURCE_ORGANISMPART",defaultMessage:"Tissue"},FACET_WEB_MATERIAL_VIALBOTTLE_COLOR:{id:"FACET_WEB_MATERIAL_VIALBOTTLE_COLOR",defaultMessage:"Vial Bottle Color"},FACET_WEB_COMP_VOLUME_L:{id:"FACET_WEB_COMP_VOLUME_L",defaultMessage:"Volume (l)"},FACET_WEB_COMP_VOLUME_ML:{id:"FACET_WEB_COMP_VOLUME_ML",defaultMessage:"Volume (ml)"},FACET_WEB_COMP_VOLUME_UL:{id:"FACET_WEB_COMP_VOLUME_UL",defaultMessage:"Volume (\xb5L)"},FACET_WEB_COMP_WELLS:{id:"FACET_WEB_COMP_WELLS",defaultMessage:"Wells"},FACET_WEB_COMP_WIDTH_IN:{id:"FACET_WEB_COMP_WIDTH_IN",defaultMessage:"Width (in)"},FACET_WEB_COMP_WIDTH_MM:{id:"FACET_WEB_COMP_WIDTH_MM",defaultMessage:"Width (mm)"},FACET_PRODUCT_LINE:{id:"FACET_PRODUCT_LINE",defaultMessage:"Product Line"},FACET_WEB_SPECIES_REACT_NO:{id:"FACET_WEB_SPECIES_REACT_NO",defaultMessage:"Non-reactive Species"},FACET_WEB_PACKID:{id:"FACET_WEB_PACKID",defaultMessage:"Package Size"},FACET_FEATURE:{id:"FACET_FEATURE",defaultMessage:"Feature"},FACET_SERVICE:{id:"FACET_SERVICE",defaultMessage:"Service"},FACET_SHIPPING:{id:"FACET_SHIPPING",defaultMessage:"Shipping"},FACET_CONTENT_TYPE:{id:"FACET_CONTENT_TYPE",defaultMessage:"Content Type"},FACET_APPLICATIONS:{id:"FACET_APPLICATIONS",defaultMessage:"Applications"},FACET_TOPIC_AREA:{id:"FACET_TOPIC_AREA",defaultMessage:"Topic Area"},FACET_WEB_ANTIBODY_RESEARCH_AREA:{id:"FACET_WEB_ANTIBODY_RESEARCH_AREA",defaultMessage:"Research Area"},FACET_WEB_MEASURRANGE_WEIGHCAPACITY_RESOL_G:{id:"FACET_WEB_MEASURRANGE_WEIGHCAPACITY_RESOL_G",defaultMessage:"Resolution (g)"},FACET_WEB_MEASURRANGE_WEIGHCAPACITY_CAP_G:{id:"FACET_WEB_MEASURRANGE_WEIGHCAPACITY_CAP_G",defaultMessage:"Weighing Capacity (g)"},FACET_CLEAR_ALL_BUTTON:{id:"FACET_CLEAR_ALL_BUTTON",defaultMessage:"Clear All"},FACET_GENE_ID:{id:"FACET_GENE_ID",defaultMessage:"Gene ID"},FACET_WEB_ANALYTESUITAB:{id:"FACET_WEB_ANALYTESUITAB",defaultMessage:"Analyte Suitability"},FACET_WEB_BINDING_TYPE:{id:"FACET_WEB_BINDING_TYPE",defaultMessage:"Binding Type"},FACET_WEB_COMPATIBILITY_FORUSEWITH_MFR:{id:"FACET_WEB_COMPATIBILITY_FORUSEWITH_MFR",defaultMessage:"Compatibility"},FACET_WEB_CULTURE_MEDIA_COMP_STABLE:{id:"FACET_WEB_CULTURE_MEDIA_COMP_STABLE",defaultMessage:"Stable Glutamine"},FACET_WEB_DETECTION_METHOD:{id:"FACET_WEB_DETECTION_METHOD",defaultMessage:"Detection Method"},FACET_WEB_DETECTION_METHOD_AGENT:{id:"FACET_WEB_DETECTION_METHOD_AGENT",defaultMessage:"Detection Method"},FACET_WEB_FEATURE_GLASSWARECLASS:{id:"FACET_WEB_FEATURE_GLASSWARECLASS",defaultMessage:"Glassware Class"},FACET_WEB_FEATURE_HYDROPHILIC_HYDROPHOBIC:{id:"FACET_WEB_FEATURE_HYDROPHILIC_HYDROPHOBIC",defaultMessage:"Hydrophobicity"},FACET_WEB_FUNCTGP:{id:"FACET_WEB_FUNCTGP",defaultMessage:"Functional Group"},FACET_WEB_GEOGRAPHIC_ORIGIN:{id:"FACET_WEB_GEOGRAPHIC_ORIGIN",defaultMessage:"Geographic Origin"},FACET_WEB_MARKUSH_CLASS:{id:"FACET_WEB_MARKUSH_CLASS",defaultMessage:"Markush Class"},FACET_WEB_MARKUSH_GROUP:{id:"FACET_WEB_MARKUSH_GROUP",defaultMessage:"Markush Group"},FACET_WEB_MATRIXACTGP_SURFACE:{id:"FACET_WEB_MATRIXACTGP_SURFACE",defaultMessage:"Surface Treatment"},FACET_WEB_MISC_SPEC_GENDER:{id:"FACET_WEB_MISC_SPEC_GENDER",defaultMessage:"Gender"},FACET_WEB_ORGANOLEPTIC_CLASS:{id:"FACET_WEB_ORGANOLEPTIC_CLASS",defaultMessage:"Organoleptic Class"},FACET_WEB_PORE_SIZE_MWCO_KDA:{id:"FACET_WEB_PORE_SIZE_MWCO_KDA",defaultMessage:"MWCO (kDa)"},FACET_WEB_REACTION_SUITABILITY_CATALYTIC_CORE:{id:"FACET_WEB_REACTION_SUITABILITY_CATALYTIC_CORE",defaultMessage:"Core"},FACET_WEB_REPROG_METHOD:{id:"FACET_WEB_REPROG_METHOD",defaultMessage:"Reprogramming Method"},FACET_WEB_SAMPLE_IO_WATER_QUALITY:{id:"FACET_WEB_SAMPLE_IO_WATER_QUALITY",defaultMessage:"Output Water Quality"},FACET_WEB_STERILIZATION_METHOD:{id:"FACET_WEB_STERILIZATION_METHOD",defaultMessage:"Sterilization Method"},FACET_WEB_VESSELSTYLE:{id:"FACET_WEB_VESSELSTYLE",defaultMessage:"Style"},CHROMATOGRAMS:{id:"CHROMATOGRAMS",defaultMessage:"Chromatograms"},CHROMATOGRAM_SEARCH_VALIDATION_MSG:{id:"CHROMATOGRAM_SEARCH_VALIDATION_MSG",defaultMessage:"Please enter a term or select a technique."},CHROMATOGRAM_SEARCH_PROMPT:{id:"CHROMATOGRAM_SEARCH_PROMPT",defaultMessage:"Find a Chromatogram Using the Fields Below"},SEARCH_BY_KEYWORD:{id:"SEARCH_BY_KEYWORD",defaultMessage:"Search by Keyword"},TECHNIQUE:{id:"TECHNIQUE",defaultMessage:"Technique"},SEARCH:{id:"SEARCH",defaultMessage:"Search"},RESET:{id:"RESET",defaultMessage:"Reset"},FACET_WEB_RENEWABLE_CARBON:{id:"FACET_WEB_RENEWABLE_CARBON",defaultMessage:"Renewable Carbon Content"},FACET_WEB_EQP:{id:"FACET_WEB_EQP",defaultMessage:"Quality Segment"},FACET_WEB_MISC_SPEC_DF_UOM:{id:"FACET_WEB_MISC_SPEC_DF_UOM",defaultMessage:"df (\xb5m)"},FACET_WEB_COMP_SURFACE_AREA_CM2:{id:"FACET_WEB_COMP_SURFACE_AREA_CM2",defaultMessage:"Surface Area cm\xb2"},FACET_WEB_GREENER_CATEGORY_SUSTAINABILITY:{id:"FACET_WEB_GREENER_CATEGORY_SUSTAINABILITY",defaultMessage:"Sustainability"},FACET_WEB_POSTTRANSMOD:{id:"FACET_WEB_POSTTRANSMOD",defaultMessage:"Post Translational Modification"},FACET_TOPIC:{id:"FACET_TOPIC",defaultMessage:"Topic"}});var N=t(76594),S=t(18847);let I=t.n(S)()(()=>t.e(2974).then(t.bind(t,42974)),{loadableGenerated:{webpack:()=>[42974]},loadableGenerated:{webpack:()=>[42974]},ssr:!1}),R=(0,p.n9)()(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}})),M=e=>{let{isAemDrawer:a=!1}=e,{compareProducts:t,clearAllCompareProducts:r,sendToProductCompareDetail:s}=(0,v.Zn)(),o=(0,l.rd)(),[d]=tA(),{classes:c}=R(),u=(0,f.A)(),p=(0,g.A)(u.breakpoints.up("md")),[m,b]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{b(!0)},[]),m)?a?(0,i.jsx)(I,{}):(0,i.jsx)(h.Ay,{anchor:"bottom",open:p&&t.length>0,variant:"persistent",className:c.drawer,children:(0,i.jsxs)("div",{className:c.root,children:[(0,i.jsx)("div",{className:c.instructionsContainer,children:(0,i.jsx)(A.A,{className:c.instructions,component:"h3",children:(0,i.jsx)(j.A,{..._.CHOOSE_UP_TO_FOUR_PRODUCTS})})}),(0,i.jsx)("div",{className:c.productsContainer,children:(0,N.A)(4,e=>t[e]?(0,i.jsx)(C,{...t[e]},t[e].productKey):(0,i.jsx)("div",{className:c.blank},e))}),(0,i.jsxs)("div",{className:c.btnContainer,children:[(0,i.jsx)(x.A,{disabled:t.length<2,variant:"outlined",color:"primary",size:"medium",onClick:()=>s(d,o),children:(0,i.jsx)(j.A,{..._.COMPARE})}),(0,i.jsx)(y.A,{className:c.clearBtn,onClick:()=>r(),children:(0,i.jsx)(j.A,{..._.CLEAR_ALL})})]})]})}):null};var O=t(77328),P=t.n(O),k=t(11788),L=t(71007),B=t(8288),F=t(15524),D=t(47801),w=t(36503),W=t(77742),U=t(89099),H=t(63752),G=t(43564),z=t(39324),Y=t.n(z);let{publicRuntimeConfig:{canonicalUrlPrefix:q}}=Y()(),V=e=>{let{metadata:a}=e,t=(0,W.A)(),{asPath:n,query:{page:r,term:s,focus:d,type:c,country:u,language:p}}=(0,U.useRouter)(),m=(0,H.mE)(),g=d===o.Xc.StructureSearch,h=s&&!g?"".concat(s.charAt(0).toUpperCase()).concat(s.slice(1)):t.formatMessage({id:"STRUCTURE_SEARCH",defaultMessage:"Structure Search"}),A="".concat(h," | Sigma-Aldrich"),x={[o.mI.CasNumber]:"CAS",[o.mI.EgecNumber]:"EC/EG",[o.mI.MdlNumber]:"MDL"};c&&x[c]&&(A="".concat(x[c]," ").concat(A));let y="page=".concat(r),v=n.indexOf(y),f=n.slice(0,v),b=n.slice(v+y.length,n.length),T="".concat(f,"page=").concat(Number(r)+1).concat(b),E="".concat(f,"page=").concat(Number(r)-1).concat(b),C=g?"Structure search results":"Find ".concat(s," and related products for scientific research at ").concat(m),j={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Search",item:"".concat(q,"/").concat(u,"/").concat(p).concat(l.wO.index())},{"@type":"ListItem",position:2,name:"".concat(s),item:"".concat(q).concat(n)}]};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(P(),{children:[(0,i.jsx)("title",{"data-testid":"head-title",children:A}),Number(r)!==(null==a?void 0:a.numPages)?(0,i.jsx)("link",{rel:"next",href:T}):null,Number(r)>1?(0,i.jsx)("link",{rel:"prev",href:E}):null]}),(0,i.jsx)(G.L,{description:C,keywords:[s||"","search","sigma","aldrich","millipore",m],canonicalParamAllowed:e=>["term","focus","page","perpage","sort","type"].includes(e),schema:j})]})};var K=t(90589),Q=t(61206),$=t(34415),X=t(77197);let Z=(0,p.n9)()(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("md")]:{margin:e.spacing(3)},"& p":{fontSize:e.typography.pxToRem(16),[e.breakpoints.down("md")]:{fontSize:e.typography.pxToRem(14)}}},lowercase:{textTransform:"lowercase"}}));var J=function(e){return e.SDS="sds",e}({});let ee={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,{classes:n}=Z(),r=ee[t],s=l.HN.index(t),o=null===(a=X.tq[t])||void 0===a?void 0:a.replaceAll(" ","_");return(0,i.jsx)("div",{className:n.docBanner,children:(0,i.jsxs)(A.A,{variant:"body1",children:[r&&(0,i.jsx)(j.A,{id:r.id,defaultMessage:r.defaultMessage,values:r.values})," ",(0,i.jsx)(j.A,{id:"THESE_AND_OTHER_DOCS",defaultMessage:"These and other documents can be found on our"})," ",(0,i.jsx)($.A,{href:"".concat(s,"&").concat("icid=search_term_specific_tip-banner-looking_for_a_".concat(o,"-documents")),children:(0,i.jsx)(j.A,{id:"DOCUMENTS",defaultMessage:"Documents"})})," ",(0,i.jsx)("span",{className:n.lowercase,children:(0,i.jsx)(j.A,{id:"PAGE",defaultMessage:"Page"})}),"."]})})};var et=t(65567);let ei=(0,p.n9)()((e,a,t)=>({hideOnMobile:{[e.breakpoints.down("md")]:{display:"none"}},searchFacets:{margin:0,["&.".concat(t.searchFacets)]:{padding:e.spacing(0)}},searchFacetsInner:{borderRight:"1px solid ".concat(e.palette.grey[600]),height:"calc(100% - ".concat(e.spacing(5),")"),padding:e.spacing(0,7,5,5),marginTop:e.spacing(5)},searchResults:{marginTop:e.spacing(10),padding:0,["&.".concat(t.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"}})),en=e=>{var a;let{loading:t,error:r,metadata:s}=e,{classes:c,cx:p}=ei(),m=(0,l.rd)(),[g]=tA(),h=(0,o.h2)({focus:m.query.focus,term:m.query.term}),x=(null==s?void 0:s.itemCount)===0||null==s||(null==s?void 0:s.setsCount)===0;(0,n.useEffect)(()=>{D.sZ.setItem("previousSearchPath",m.asPath)},[m.asPath]);let y=[Object.values(d.e_),Object.values(J)].toString().toLowerCase(),v=(()=>{var e,a;return"facet-search"===h.term?null===(e=g.facet[0])||void 0===e?void 0:e.split(":")[1]:(null===(a=m.query)||void 0===a?void 0:a.term)||""})(),f=!!v&&y.split(",").includes(v.toLowerCase());return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{metadata:s},"head"),(0,i.jsx)(u.A,{className:c.mobileContainer,children:(0,i.jsxs)(w.A,{container:!0,spacing:10,children:[(0,i.jsx)(w.A,{item:!0,md:3,className:p(c.hideOnMobile,c.searchFacets),children:(0,i.jsx)("div",{className:c.searchFacetsInner})}),(0,i.jsxs)(w.A,{item:!0,xs:12,md:9,className:x?c.noResults:c.searchResults,children:[!t&&!x&&(0,i.jsx)(A.A,{variant:"h1",className:c.title,children:(0,i.jsx)(Q.A,{value:v})}),f&&(null==m?void 0:null===(a=m.query)||void 0===a?void 0:a.term)&&(0,i.jsx)(ea,{searchQuery:m.query.term.toLowerCase()})]})]})}),!t&&!x&&(0,i.jsx)(et.A,{flag:"wabt-221",hide:!0,variationKey:"v3_remove_recently_viewed",children:(0,i.jsx)(K.A,{dispType:d.HI.RecentlyViewedSrp,searchKey:h.term,analyticsPageName:"srp",analyticsPageDetails:"search results page"})},"v3_remove_recently_viewed")]})};var er=t(37929),el=t(69605),es=t(43343),eo=t(71605),ed=t(49691),ec=t(85366);let eu=(0,p.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}})),ep=e=>{let{substance:a}=e,{casNumber:t,molecularWeight:n,aliases:r,__typename:s}=a,c=r.find(e=>e.key===o.VT.EcNumber),u=r.find(e=>e.key.includes(o.VT.BeilsteinRegistryNumber)),{classes:p}=eu(),m=(0,l.rd)(),g=(0,o.h2)({focus:m.query.focus}),h=g.focus===o.Xc.StructureSearch?(0,ec.j5)(a.products):null,x=(null==s?void 0:s.toLowerCase())===d.RL.Substance;return(0,i.jsxs)("dl",{className:p.root,children:[t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(A.A,{component:"div",variant:"caption",children:[(0,i.jsx)(j.A,{..._.CAS_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(ed.m5,{substanceId:a.id,label:t,searchValue:(0,o.aE)(t),searchFocusType:(0,o.UQ)(g.focus),productSearchType:o.mI.CasNumber,classes:p.MetaFormatting,onClick:()=>(0,L.OT)((0,eo.uW)({action:"cas number",detail:t,focus:g.focus}))})})]}),x&&n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(A.A,{component:"div",variant:"body2",className:p.MetaFormatting,children:[(0,i.jsx)(j.A,{..._.MOLECULAR_WEIGHT}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(Q.A,{value:n})})]}),c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(A.A,{component:"div",variant:"body2",className:p.MetaFormatting,children:[(0,i.jsx)(j.A,{..._.EC_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(ed.m5,{substanceId:a.id,searchValue:c.value,searchFocusType:(0,o.UQ)(g.focus),productSearchType:o.mI.EgecNumber,classes:p.MetaFormatting,onClick:()=>(0,L.OT)((0,eo.uW)({action:"ec number",detail:c.value,focus:g.focus}))})})]}),u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(A.A,{component:"div",variant:"body2",className:p.MetaFormatting,children:[(0,i.jsx)(j.A,{..._.BEILSTEIN_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)("div",{className:p.MetaFormatting,children:u.value})})]}),h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(A.A,{component:"div",variant:"body2",className:p.MetaFormatting,children:[(0,i.jsx)(j.A,{..._.SIMILARITY}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsxs)("span",{children:[h,"%"]})})]})]})};var em=t(37695),eg=t(30877),eh=t(16722),eA=t(63912);let ex=(0,p.n9)()(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"}}})),ey=e=>{let{products:a,substanceName:t,substanceId:r,substancePosition:l}=e,s=a.length,o=a.slice(0,2),d=a.slice(2),[c,u]=(0,n.useState)(!1),{classes:p}=ex(),m=e=>(0,i.jsx)(eh.A,{product:e,substanceName:t,substancePosition:l,substanceId:r},e.productNumber);return(0,i.jsxs)("div",{children:[(0,i.jsx)(em.A,{disablePadding:!0,className:p.initialProducts,children:o.map(m)}),s>2&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eg.A,{in:c,children:(0,i.jsx)(em.A,{disablePadding:!0,className:p.moreProducts,children:d.map(m)})}),(0,i.jsx)(eA.A,{expanded:c,setExpanded:()=>{u(!c)},className:p.showMore,"data-testid":"show-".concat(c?"less":"more")})]})]})};var ev=t(40352),ef=t(57377),eb=t(10181),eT=t(67241),eE=t(70377),eC=t(41683),ej=t(71549),e_=t(34669),eN=t(80863),eS=t(6315),eI=t(74770),eR=t(26925),eM=t(52263),eO=t(15093),eP=t(65824),ek=t(28907),eL=t(75020),eB=t(62084),eF=t(89617),eD=t(23604),ew=t(87254);let{publicRuntimeConfig:{featureFlags:eW}}=Y()(),eU=(0,p.n9)()(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("md")]:{display:"none"}},hideOnMobile:{whiteSpace:"nowrap",[e.breakpoints.down("sm")]:{display:"none"}},sdsTrigger:{display:"block"},clearBottomBorder:{"& > *":{borderBottomColor:"transparent"}},tableRowExpanded:{backgroundColor:e.palette.background.grey},expandHideSpacer:{height:0,visibility:"hidden"},badgeCell:{textAlign:"right"}})),eH="7950",eG={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"}},ez=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,s=l.find(e=>e.key===eG.CLONALITY.key),o=l.find(e=>e.key===eG.SPECIES_REACTIVITY.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{children:s&&(0,i.jsx)(eS.A,{values:s.values})}),(0,i.jsx)(ef.A,{children:(0,i.jsx)(Q.A,{value:t.cardAttribute.application.join(", ")})}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{children:o&&(0,i.jsx)(eS.A,{values:o.values})}),(0,i.jsx)(ef.A,{children:t.cardAttribute.citationCount}),a||n&&(0,i.jsxs)(ef.A,{children:[a&&(0,i.jsx)(eI.A,{features:t.features}),n&&(0,i.jsx)(eF.A,{})]})]})]})},eY=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,s=l.find(e=>e.key===eG.PORE_SIZE.key),o=l.find(e=>e.key===eG.DIAMETER.key&&e.label===eG.DIAMETER.label),d=l.find(e=>e.key===eG.STERILITY.key),c=l.filter(e=>e.key===eG.MATERIAL.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{"data-testid":"pdp-product-poreSize",children:s&&s.values.length&&(0,i.jsx)(eS.A,{values:s.values})}),(0,i.jsx)(ef.A,{"data-testid":"pdp-product-diameter",children:o&&(0,i.jsx)(eS.A,{values:o.values})}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{"data-testid":"pdp-product-sterility",children:d&&(0,i.jsx)(eS.A,{values:d.values})}),(0,i.jsx)(ef.A,{"data-testid":"pdp-product-material",children:c&&c.map(e=>(0,i.jsx)(eS.A,{values:e.values},e.key))}),a||n&&(0,i.jsxs)(ef.A,{children:[a&&(0,i.jsx)(eI.A,{features:t.features}),n&&(0,i.jsx)(eF.A,{})]})]})]})},eq=e=>{let{focus:a,isStaticContent:t,product:n,productDescription:r}=e,{classes:l}=eU();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(ef.A,{className:l.productDescription,align:"left",children:[t&&n.name&&(0,i.jsx)(Q.A,{value:n.name,className:l.productDescriptionName}),(0,i.jsx)(ek.h,{product:n,focus:a,label:r,productDescriptionClass:l.productDescLink,productLinkType:ek.A.DESCRIPTION,productDescription:r})]})})},eV=e=>{let{keyAttributes:a,focus:t,isStaticContent:n,product:r,productDescription:l,txnBadgeColAdjustments:s}=e,o=s?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,o).map(e=>(0,i.jsx)(ef.A,{"data-testid":"pdp-product-".concat(e.label),children:e.values.length>0?(0,i.jsx)(eS.A,{values:e.values}):"—"},"".concat(e.key,"_").concat(e.label)))}):(0,i.jsx)(eq,{focus:t,isStaticContent:n,product:r,productDescription:l})},eK=e=>{let{displayBadgesOnProduct:a,features:t,showGreenBadge:n,txnBadge:r,isTxnBadgeUser:l}=e,{classes:s}=eU();return(0,i.jsx)(ef.A,{className:s.badgeCell,colSpan:4,children:r?(0,i.jsx)(ew.A,{showTooltip:!0}):!l&&(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)(eI.A,{features:t}),n&&(0,i.jsx)(eF.A,{})]})})},eQ=e=>{var a,t,r,s,d,c,u;let{additionalColumns:p,displayBadgesOnProduct:m,displayViewLink:g=!0,focus:h,isShowBrand:A,isShowImage:x,isStaticContent:y,product:f,productIsAntibody:b,productIsSyringeFilter:T,showDescription:E,substanceId:C,substancePosition:j,txnBadgeColAdjustments:N}=e,S=(0,l.rd)(),{classes:I,cx:R}=eU(),{formatMessage:M}=(0,W.A)(),[O,P]=(0,n.useState)(!1),{currentUser:B,isB2BUser:F}=(0,k.iZ)(),[w]=(0,eD.lT)(["language"]),{compareProducts:U,addCompareProduct:H,removeCompareProduct:G}=(0,v.Zn)(),z=U.some(e=>{let{productKey:a,brandKey:t,catalogType:i}=e;return a===f.productKey&&t===f.brand.key&&i===(0,o.vN)(h)}),Y=null!==(u=null===D.Lr||void 0===D.Lr?void 0:D.Lr.getItem("searchedfor"))&&void 0!==u?u:"",q=()=>{var e;P(e=>!e),(0,eL.Sm)({action:O?"close p&a":"view p&a",section:j?void 0:"products",component:"list",elementType:"accordion",elementText:O?"hide":"expand",material:{materialDescription:f.name,brand:null===(e=f.brand)||void 0===e?void 0:e.key,product:f.productNumber}})},{paMessage:V}=f,K=f.productNumber.startsWith("CB_")?M(_.DETAILS):f.productNumber,$=!z&&U.length>=v.NN,X={productKey:f.productKey,productNumber:f.productNumber,brandKey:f.brand.key,images:f.images,catalogType:h?(0,o.vN)(h):void 0},Z=(null==B?void 0:B.metadata.isNewPNASrpEnabled)&&!S.query.debug&&g,J=f.legalNameSuffix||f.description,ee=null===(a=f.attributes)||void 0===a?void 0:a.find(e=>"greener alternative category.default"===e.key),ea="en"===w.language.toLowerCase(),et=b&&f.cardAttribute,ei=!et&&!T&&ea&&(null==f?void 0:f.keyAttributes)&&f.keyAttributes.length>0,en=(0,n.useMemo)(()=>{var e,a;return(null==B?void 0:null===(a=B.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==B?void 0:B.metadata.salesOrg)||""},[B]),er=(0,n.useMemo)(()=>{var e;return(null==B?void 0:null===(e=B.metadata)||void 0===e?void 0:e.country)||""},[B]),el=eW.srpTxnBadges&&"US"===er&&!F&&en===eH,es=el&&f.txnBadge&&(null===(t=f.txnBadge)||void 0===t?void 0:t.type)==="MAX_DISCOUNT"&&(null===(s=f.txnBadge)||void 0===s?void 0:null===(r=s.salesOrgIds)||void 0===r?void 0:r.includes(eH));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eC.A,{className:O?R(I.tableRow,I.clearBottomBorder,I.tableRowExpanded):I.tableRow,"data-testid":"product-".concat(f.name),children:[x?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{children:(0,i.jsx)("span",{className:I.productImageContainer,children:(0,i.jsx)("img",{className:I.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)(ef.A,{classes:{root:I.productNumberContainer},children:(0,i.jsx)(ek.h,{product:f,focus:h,label:K,productDescriptionClass:I.productName,productLinkType:ek.A.NAME,productDescription:J})})]}):(0,i.jsxs)(i.Fragment,{children:[!y&&(0,i.jsx)(ef.A,{className:I.hideBelowMd,children:(0,i.jsx)(eP.A,{name:"".concat(M(_.COMPARE),"-").concat(f.productNumber),checked:z,onChange:e=>{e.target.checked?H(X):G(X)},"aria-label":"".concat(M(_.COMPARE)," ").concat(f.productNumber),disabled:$})}),(0,i.jsx)(ef.A,{classes:{root:I.productNumberContainer},children:(0,i.jsx)(ek.h,{product:f,focus:h,label:K,onProductLinkClick:()=>(0,L.WL)({product:f,searchTerm:Y,substanceId:C,substancePosition:j}),productDescriptionClass:I.productName,productLinkType:ek.A.NAME,productDescription:J})})]}),et&&(0,i.jsx)(ez,{displayBadgesOnProduct:m,showGreenBadge:ee,product:f,txnBadgeColAdjustments:N}),T&&(0,i.jsx)(eY,{displayBadgesOnProduct:m,showGreenBadge:ee,product:f,txnBadgeColAdjustments:N}),ei&&(0,i.jsx)(eV,{keyAttributes:null==f?void 0:f.keyAttributes,focus:h,isStaticContent:y,product:f,productDescription:J,txnBadgeColAdjustments:N}),!f.cardCategory&&(0,i.jsxs)(i.Fragment,{children:[E&&(0,i.jsx)(eq,{focus:h,isStaticContent:y,product:f,productDescription:J}),A&&(0,i.jsx)(ef.A,{className:I.hideOnMobile,style:{color:f.brand.color||void 0},children:f.brand.name}),p&&p.map(e=>{var a;let{value:t}=e,n=f.attributes.find(e=>e.key&&e.key.toLowerCase()===t.toLowerCase());return(0,i.jsx)(ef.A,{children:(0,i.jsx)(Q.A,{value:null==n?void 0:null===(a=n.values)||void 0===a?void 0:a.join(", ")})},t)})]}),(0,i.jsx)(eK,{displayBadgesOnProduct:m,features:f.features,showGreenBadge:ee,txnBadge:es&&f.txnBadge,isTxnBadgeUser:el}),(0,i.jsx)(ef.A,{children:!!f.sdsLanguages.length&&(0,i.jsx)(eN.A,{sdsLanguages:f.sdsLanguages,productNumber:f.sdsPnoKey,brandKey:f.brand.key,trigger:(0,i.jsx)(eO.A,{className:I.sdsTrigger,color:"primary"})})}),(0,i.jsx)(ef.A,{children:Z?(0,i.jsx)(eB.A,{product:f,substancePosition:j,focus:h}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eA.A,{expanded:O,setExpanded:q,collapsedText:M(_.EXPAND),expandedText:M(_.HIDE),"data-testid":"srp-pricing-".concat(f.productNumber).concat(f.brand.key)}),(0,i.jsx)("div",{className:I.expandHideSpacer,children:(0,i.jsx)(eA.A,{expanded:!O,setExpanded:q,collapsedText:M(_.EXPAND),expandedText:M(_.HIDE)})})]})})]}),(0,i.jsx)(eC.A,{className:I.tableRowExpanded,children:O&&(0,i.jsx)(ef.A,{colSpan:12,children:V?(0,i.jsx)(eM.Ay,{brandKey:f.brand.key,productNumber:f.productNumber,paMessage:V,displayType:eM.yU.SRP}):(0,i.jsx)(eR.A,{queryFocus:h,productName:f.name,productNumber:f.productNumber,productDescription:f.description||"",images:f.images,materialIds:f.materialIds,brandKey:f.brand.key,gaType:(0,L.Ss)(h),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 e$=t(88700);let{publicRuntimeConfig:{featureFlags:eX}}=Y()(),eZ=(0,p.n9)()(e=>({tContainer:{overflowX:"visible"},tHeadRow:{whiteSpace:"nowrap","& .MuiTableCell-head":{padding:"0 .6rem",fontSize:e.typography.pxToRem(12),fontWeight:600,borderBottom:"1px solid ".concat(e.palette.grey[300])}},tHeadProductNumber:{width:124},tHeadSds:{width:52,"&:empty":{width:0}},hideBelowMd:{[e.breakpoints.down("md")]:{display:"none"}},utilityRow:{display:"flex",marginTop:e.spacing(4),"&:empty":{display:"none"}},showMoreLessButton:{flexShrink:0},compressWidth:{width:0}})),eJ={ANTIBODY:"ANTIBODY",SYRINGE_FILTERS:"SYRINGE_FILTERS"};eJ.ANTIBODY,eJ.SYRINGE_FILTERS;let e0="7950",e1=e=>{let{showSdsColumn:a}=e,{classes:t}=eZ(),{formatMessage:n}=(0,W.A)();return(0,i.jsx)(ef.A,{className:t.tHeadSds,children:a&&n(e_.A.SDS)})},e2=()=>{let{classes:e}=eZ(),{formatMessage:a}=(0,W.A)();return(0,i.jsx)(ef.A,{className:e.compressWidth,children:a(e_.A.PRICING)})},e4=e=>{let{txnBadgeColAdjustments:a}=e,{formatMessage:t}=(0,W.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{children:t(e_.A.CLONALITY)}),(0,i.jsx)(ef.A,{children:t(e_.A.APPLICATION)}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{children:t({id:"SPECIES_REACTIVITY",defaultMessage:"Species Reactivity"})}),(0,i.jsx)(ef.A,{children:t(e_.A.CITATIONS)})]})]})},e7=e=>{let{txnBadgeColAdjustments:a}=e,{formatMessage:t}=(0,W.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{children:t(e_.A.PORE_SIZE)}),(0,i.jsx)(ef.A,{children:t(e_.A.DIAMETER)}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.A,{children:t(e_.A.STERILITY)}),(0,i.jsx)(ef.A,{children:t(e_.A.MATERIAL)})]})]})},e3=e=>e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/_+$/g,""),e6=e=>{let{keyAttributes:a,txnBadgeColAdjustments:t}=e,{formatMessage:n}=(0,W.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=e3(n);return(0,i.jsx)(ef.A,{children:r?(0,i.jsx)(j.A,{id:r,defaultMessage:n}):n},"".concat(a,"_").concat(t))})})}return(0,i.jsx)(ef.A,{children:n(e_.A.DESCRIPTION)})},e8=e=>{let{additionalColumns:a,isShowBrand:t,showDescriptionColumn:n}=e,{formatMessage:r}=(0,W.A)();return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(ef.A,{children:r(e_.A.DESCRIPTION)}),t&&(0,i.jsx)(ef.A,{children:r(e_.A.BRAND)}),a&&a.map(e=>{let{text:a}=e;return(0,i.jsx)(ef.A,{"data-additional":"true",children:a},a)})]})},e5=e=>{var a,t,r;let{products:l,displayBadgesOnProduct:s,focus:o,maxRows:d,isShowImage:c=!1,isShowBrand:u=!1,isStaticContent:p=!1,additionalColumns:m,displayViewLink:g,substanceId:h,substancePosition:A,substanceKeyAttributes:x}=e,{classes:y,cx:v}=eZ(),[f]=(0,eD.lT)(["language"]),[b,T]=(0,n.useState)(!1),E=d||5,C=b?l.length:E,{formatMessage:j}=(0,W.A)(),_=!!l.length&&(null===(a=l[0])||void 0===a?void 0:a.cardCategory)===eJ.ANTIBODY,N=!!l.length&&(null===(t=l[0])||void 0===t?void 0:t.cardCategory)===eJ.SYRINGE_FILTERS,S=l.filter(e=>{var a;return(null==e?void 0:null===(a=e.sdsLanguages)||void 0===a?void 0:a.length)>0}).length>0,I="en"===f.language.toLowerCase(),{currentUser:R,isB2BUser:M}=(0,k.iZ)(),O=(0,n.useMemo)(()=>{var e,a;return(null==R?void 0:null===(a=R.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==R?void 0:R.metadata.salesOrg)||""},[R]),P=(0,n.useMemo)(()=>{var e;return(null==R?void 0:null===(e=R.metadata)||void 0===e?void 0:e.country)||""},[R]),B=l.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(e0))}),F=eX.srpTxnBadges&&"US"===P&&!M&&O===e0&&B,D=_?e4:N?e7:null,w=!D&&I&&x&&x.length>0,U=!w&&!D||!I;return(0,i.jsxs)(eb.A,{className:y.tContainer,children:[(0,i.jsxs)(eT.A,{size:"small",children:[(0,i.jsx)(eE.A,{children:(0,i.jsxs)(eC.A,{className:y.tHeadRow,children:[c?(0,i.jsx)(ef.A,{}):p?null:(0,i.jsx)(ef.A,{className:v(y.hideBelowMd,y.compressWidth),children:j(e_.A.COMPARE)}),(0,i.jsx)(ef.A,{classes:{root:y.tHeadProductNumber},children:j(e_.A.PRODUCT_NO)}),D&&(0,i.jsx)(D,{txnBadgeColAdjustments:F}),w&&(0,i.jsx)(e6,{keyAttributes:x,txnBadgeColAdjustments:F}),!(null===(r=l[0])||void 0===r?void 0:r.cardCategory)&&(0,i.jsx)(e8,{additionalColumns:m,isShowBrand:u,showDescriptionColumn:U}),(0,i.jsx)(ef.A,{colSpan:4}),(0,i.jsx)(e1,{showSdsColumn:S}),(0,i.jsx)(e2,{})]})}),(0,i.jsx)(ej.A,{children:l.slice(0,C).map((e,a)=>e instanceof Error||!e?null:(0,i.jsx)(eQ,{additionalColumns:m,displayBadgesOnProduct:s,displayViewLink:g,focus:o,isShowBrand:u,isShowImage:c,isStaticContent:p,product:e,productIsAntibody:_,productIsSyringeFilter:N,showDescription:U,substanceId:h,substancePosition:A,txnBadgeColAdjustments:F},"".concat(e.productKey).concat(e.brand.erpKey,"-").concat(a)))})]}),(0,i.jsx)("div",{className:y.utilityRow,children:l.length>E&&(0,i.jsx)(eA.A,{expanded:b,setExpanded:T,className:y.showMoreLessButton,"data-testid":"show-".concat(b?"less":"more"),onClick:()=>{let e=b?"show less":"show more";(0,L.tg)({action:e$.$R.InPageClick,detail:"".concat(e," products | ").concat(h),component:e$.IP.Body,elementType:e$.T.AnchorLink,elementText:e,productName:"water"})}})})]})};var e9=t(92881),ae=t(36820),aa=t(52710);let at=(0,p.n9)()(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("md")]:{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("lg")]:{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)}})),ai=e=>{let{onSubstanceClick:a,substance:t,substancePosition:r}=e,{products:s,id:c,synonyms:u,images:p,linearFormula:m,empiricalFormula:h,legalName:x,__typename:v}=t,{classes:f,cx:T}=at(),E=(0,l.rd)(),C=(0,o.h2)({focus:E.query.focus}),N=t.images[0]||{},S=s.map(e=>({...e,images:p})),I=s[0],R=null==I?void 0:I.isMarketplace,M=(null==I?void 0:I.displaySellerName)||(0,o.t1)(null==I?void 0:I.attributes),O=(null==I?void 0:I.marketplaceSellerId)||"",P=R&&!!M&&!!O,k=E.query.catalogType,B=(0,o.vN)(null!=k?k:C.focus),[F,D]=(0,n.useMemo)(()=>m?[m,_.LINEAR_FORMULA]:h?[h,_.EMPIRICAL_FORMULA_HILL_NOTATION]:[null,null],[h,m]),w=(0,er.A)(),W=(0,g.A)(w.breakpoints.up(ev.Rp.MD),{defaultMatches:!0}),U=s.some(e=>e.features.length>0),H=s.length,[G,z]=(0,n.useState)(!1),Y=()=>{z(e=>!e)},q=(null==v?void 0:v.toLowerCase())===d.RL.Substance,[V,K]=(0,n.useState)(!1),$=e=>{K(!V),V||(0,L.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:f.root,"data-testid":"srp-substance-group",children:[(0,i.jsxs)("div",{id:"product-info",className:f.overview,children:[(0,i.jsx)("div",{children:q?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{id:"srp-image-container",className:f.thumbnailWrapper,children:(0,i.jsx)(y.A,{className:f.trigger,onClick:()=>$(!0),children:(0,i.jsx)(es.A,{className:f.thumbnail,alt:(null==N?void 0:N.altText)||t.name,src:null==N?void 0:N.mediumUrl,sizes:"58px",urls:[null==N?void 0:N.smallUrl,null==N?void 0:N.mediumUrl,null==N?void 0:N.largeUrl],width:"130",height:"50"})})}),(0,i.jsxs)("div",{className:f.triggerText,children:[(0,i.jsx)("span",{role:"button",className:f.triggerLink,onClick:()=>$(!1),onKeyPress:()=>$(!1),tabIndex:0,children:(0,i.jsx)(j.A,{..._.ALL_PHOTOS})}),(0,i.jsxs)("span",{className:f.imageText,children:["(",t.images.length,")"]})]})]}):null}),(0,i.jsxs)("div",{className:f.flexGrow,children:[(0,i.jsx)(A.A,{id:"substance-name",component:"h2",className:T(f.name,f.breakWord),children:H>1?(0,i.jsx)(b.N,{...l.SL.index(c,B),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)(Q.A,{value:x||t.name})})}):(0,i.jsx)(Q.A,{value:x||t.name})}),q&&(null==u?void 0:u.length)>0&&(0,i.jsxs)("div",{className:f.synonyms,children:[(0,i.jsxs)(A.A,{component:"span",variant:"body2",className:f.labelForDefinition,children:[(0,i.jsx)(j.A,{id:"SYNONYM(S)",defaultMessage:"Synonym(s)"}),": "]}),(0,i.jsx)(A.A,{component:"span",variant:"body2",className:f.definition,children:(0,i.jsx)(Q.A,{className:f.breakWord,value:u.join(", ")})})]}),(0,i.jsxs)("div",{className:f.hideBelowMd,children:[q&&F&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(A.A,{component:"span",variant:"body2",className:f.labelForDefinition,children:[(0,i.jsx)(j.A,{...D}),": "]}),(0,i.jsx)(A.A,{component:"span",variant:"body2",className:f.definition,children:(0,i.jsx)(Q.A,{className:f.breakWord,value:F})})]}),(0,i.jsx)(ep,{substance:t})]}),P&&(0,i.jsxs)("div",{className:f.sellerInfo,children:[(0,i.jsx)(j.A,{..._.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(b.N,{...l.kJ.index(M,O),children:(0,i.jsx)("a",{children:M})}),(0,i.jsx)("span",{className:f.verticalLine}),(0,i.jsxs)("span",{className:f.trustedInfo,children:[(0,i.jsx)(j.A,{..._.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(el.A,{className:f.infoIcon,onClick:Y}),G&&(0,i.jsx)(e9.A,{open:G,onCancel:Y})]})]})]})]}),(0,i.jsx)(aa.M,{source:"srp - ".concat(C.focus),children:(0,i.jsx)(W?e5:ey,{products:S,displayBadgesOnProduct:U,focus:C.focus,substanceId:t.id,substanceName:t.name,substancePosition:r,substanceKeyAttributes:t.keyAttributes})}),(0,i.jsx)(ae.A,{isOpen:V,onClose:K,images:t.images,name:t.name,productId:I.productNumber})]})};var an=t(5493),ar=t(7645);let al=(0,p.n9)()(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)}}})),as=()=>{let{classes:e,cx:a}=al(),t=(0,f.A)();return(0,i.jsxs)("div",{"data-testid":"products-srp-skeleton",children:[(0,i.jsx)(ar.A,{mb:20}),(0,i.jsx)("div",{children:[,,,,,].fill({}).map((n,r)=>(0,i.jsx)(ar.A,{border:1,borderColor:t.palette.grey["50"],mb:{xs:6,sm:10},p:{xs:3,sm:6},children:(0,i.jsxs)(w.A,{container:!0,spacing:5,children:[(0,i.jsx)(w.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)(an.A,{height:1,width:1})})})}),(0,i.jsx)(w.A,{item:!0,xs:10,children:(0,i.jsx)(ar.A,{mt:2,children:(0,i.jsxs)(w.A,{container:!0,spacing:4,children:[(0,i.jsx)(w.A,{item:!0,xs:12,children:(0,i.jsx)(an.A,{height:28,width:.7,mb:3,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(w.A,{item:!0,xs:4,sm:2,children:(0,i.jsx)(an.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(w.A,{item:!0,xs:8,sm:10,children:(0,i.jsx)(an.A,{height:16,width:.7,borderRadius:{xs:2,sm:"borderRadius"}})}),Array(6).fill({}).map((e,a)=>(0,i.jsxs)(w.A,{item:!0,xs:4,sm:2,children:[(0,i.jsx)(an.A,{height:16,width:.6,borderRadius:{xs:2,sm:"borderRadius"},mb:3}),(0,i.jsx)(an.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"},mb:{xs:1,sm:3}})]},a))]})})}),(0,i.jsx)(w.A,{item:!0,xs:12,children:[,,,].fill({}).map((t,n)=>(0,i.jsx)("div",{className:a(e.tRow,e.tBodyRow),children:Array(6).fill({}).map((e,a)=>(0,i.jsx)("div",{children:(0,i.jsx)(an.A,{height:16,width:1,borderRadius:{xs:2,sm:"borderRadius"}})},a))},n))})]})},r))})]})};var ao=t(39069),ad=t(98868),ac=t(86063),au=t(81474),ap=t(96707),am=t(29086),ag=t(88124),ah=t(42148),aA=t(72829),ax=t(66896);let ay=(0,p.n9)()(e=>({root:{padding:e.spacing(6,0),borderBottom:"1px solid ".concat(e.palette.grey[600])},title:{display:"block",fontSize:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium,marginBottom:e.spacing(1),color:e.palette.primary.main},geneWrapper:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:e.spacing(5),width:"100%"},speciesSectionWrapper:{display:"flex",[e.breakpoints.up("sm")]:{marginLeft:"130px"}},thumbnail:{backgroundColor:e.palette.common.white,border:"1px solid ".concat(e.palette.grey[400]),borderRadius:2,flexShrink:0,height:"109px",width:"109px"},detail:{maxWidth:"calc(100% - 109px)",flexBasis:"calc(100% - 109px)",flexGrow:1},synonymsWrapper:{display:"flex",flexDirection:"row"},geneDataTitle:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},geneDataRow:{fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(2),wordBreak:"break-word",whiteSpace:"nowrap"},geneDataRowExpanded:{whiteSpace:"normal"},relatedProductsTitle:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(3),marginTop:e.spacing(4)},relatedProductsRow:{display:"flex",flexFlow:"row wrap",maxWidth:"770px","& > *":{marginBottom:e.spacing(1),width:"25%",paddingRight:e.spacing(3)}},expandCta:{fontSize:e.typography.pxToRem(14),color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold},relatedGenesLinkWrapper:{display:"flex",marginTop:e.spacing(5)},relatedGenesLink:{fontSize:e.typography.pxToRem(16),"&:hover > *":{color:e.palette.secondary.dark}},caretRightIcon:{fontSize:e.typography.pxToRem(16),color:e.palette.primary.main,marginLeft:e.spacing(3),[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(10)}}})),av=e=>{let a;return e&&(a="Summary: "===e.slice(0,9)?e.slice(9,e.length-1):null),a},af=e=>{let{gene:a}=e,{classes:t}=ay(),r=av(a.summary),[s,d]=(0,n.useState)(!1),c=a.variants.reduce((e,a,t,i)=>{let n=t===i.length-1?"":", ";return e+("".concat(a.commonName," ").concat(a.symbol," (").concat(a.geneId,")")+n)},""),u=c?c.split(" "):[],p=r?r.split(" "):[];return(0,i.jsxs)("div",{className:t.root,"data-testid":"gene-card",children:[(0,i.jsxs)("div",{className:t.geneWrapper,children:[(0,i.jsx)("div",{className:t.thumbnail,children:(0,i.jsx)(am.A,{style:{width:"100%",height:"100%"}})}),(0,i.jsxs)("div",{className:t.detail,children:[(0,i.jsx)(b.N,{...l.U8.index(a.symbol),passHref:!0,children:(0,i.jsx)($.A,{className:t.title,children:a.symbol})}),a.name&&(0,i.jsx)(ap.A,{mb:4,fontSize:16,children:a.name}),a.synonyms.length>0&&(0,i.jsxs)("div",{className:t.synonymsWrapper,children:[(0,i.jsx)(w.A,{item:!0,xs:3,md:2,children:(0,i.jsx)("div",{className:t.geneDataTitle,children:(0,i.jsx)(j.A,{...e_.A.SYNONYMS,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(w.A,{item:!0,xs:9,md:10,"data-testid":"gene-synonyms",children:(0,i.jsx)("div",{className:t.geneDataRow,children:a.synonyms.join(", ")})})]})]})]}),(0,i.jsx)("div",{className:t.speciesSectionWrapper,children:(0,i.jsxs)(w.A,{container:!0,children:[a.variants.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.A,{item:!0,xs:3,md:2,children:(0,i.jsx)("div",{className:t.geneDataTitle,children:(0,i.jsx)(j.A,{id:"SPECIES",defaultMessage:"Species",children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(w.A,{item:!0,xs:9,md:10,"data-testid":"gene-variants",children:(0,i.jsx)(ap.A,{lineHeight:1.7,className:s?t.geneDataRowExpanded:t.geneDataRow,children:(0,i.jsx)(ag.A,{allowShowMore:!1,wordCount:10,showFullText:s,children:c})})})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.A,{item:!0,xs:3,md:2,children:(0,i.jsx)("div",{className:t.geneDataTitle,children:(0,i.jsx)(j.A,{...e_.A.SUMMARY,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(w.A,{item:!0,xs:9,md:10,"data-testid":"gene-summary",children:(0,i.jsx)(ap.A,{lineHeight:1.7,className:s?t.geneDataRowExpanded:t.geneDataRow,children:(0,i.jsx)(ag.A,{allowShowMore:!1,wordCount:10,showFullText:s,children:r})})})]}),u.length-1>10||p.length-1>15?(0,i.jsx)(y.A,{"data-testid":"gene-show-more",className:t.expandCta,onClick:()=>d(!s),children:s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.A,{...e_.A.SHOW_LESS}),(0,i.jsx)(ah.A,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.A,{...e_.A.SHOW_MORE}),(0,i.jsx)(aA.A,{})]})}):null]})}),a.relatedCategories.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:t.relatedProductsTitle,children:(0,i.jsx)(j.A,{...e_.A.RELATED_PRODUCTS,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})}),(0,i.jsx)("div",{id:"gene-categories","data-testid":"gene-categories",className:t.relatedProductsRow,children:a.relatedCategories.map(e=>"shRNA"!==e.name&&"siRNA"!==e.name&&(0,i.jsx)(b.N,{...l.U8.index(a.symbol,e.name),passHref:!0,children:(0,i.jsx)($.A,{color:"primary",children:e.name})},e.name)||("shRNA"===e.name||"siRNA"===e.name)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(b.N,{...l.VO.index(e.name,a.symbol),passHref:!0,children:(0,i.jsx)($.A,{color:"primary",children:e.name})},e.name)}))})]}),a.name&&(0,i.jsx)("div",{className:t.relatedGenesLinkWrapper,children:(0,i.jsx)(b.N,{href:"".concat(l.wO.searchResults(a.name)).concat((0,o.$c)({term:a.name,focus:o.Xc.Genes})),passHref:!0,children:(0,i.jsxs)($.A,{color:"primary",className:t.relatedGenesLink,children:[(0,i.jsx)(j.A,{...e_.A.SEE_ALL_RELATED_GENES}),(0,i.jsx)(ax.A,{className:t.caretRightIcon})]})})})]})};var ab=t(11569),aT=t(19793);let aE=(0,p.n9)()(e=>({sectionWrapper:{background:e.palette.background.grey,boxShadow:"none",height:"100%",padding:e.spacing(5),[e.breakpoints.up("lg")]:{background:"white",boxShadow:"0 0 4px 0 rgba(0, 0, 0, 0.25)",maxWidth:"250px",padding:e.spacing(6)}},heading:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium,[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold}},textLink:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main},headerDivider:{marginBottom:e.spacing(3),marginTop:e.spacing(1),[e.breakpoints.up("xs")]:{marginRight:-20,marginLeft:-20}},sectionContent:{marginBottom:e.spacing(6)}})),aC=()=>{let{classes:e}=aE(),{formatMessage:a}=(0,W.A)();return(0,i.jsxs)(w.A,{item:!0,xs:12,className:e.sectionWrapper,children:[(0,i.jsx)(A.A,{component:"div",className:e.heading,children:a(e_.A.NEED_ADDITIONAL_HELP)}),(0,i.jsx)(ao.A,{className:e.headerDivider}),(0,i.jsx)("div",{className:e.sectionContent,children:(0,i.jsx)(b.N,{href:l.mA.customerSupport(),passHref:!0,children:(0,i.jsx)($.A,{className:e.textLink,children:a(e_.A.CUSTOMER_SUPPORT)})})}),(0,i.jsx)(A.A,{component:"div",className:e.heading,children:a({id:"ALDRICH_MARKET_SELECT",defaultMessage:"Aldrich\xae Market Select"})}),(0,i.jsx)(ao.A,{className:e.headerDivider}),(0,i.jsxs)("div",{className:e.sectionContent,children:[(0,i.jsxs)($.A,{className:e.textLink,href:"http://www.aldrichmarketselect.com",target:"_blank",children:[a({id:"ALDRICH_MARKET_SELECT",defaultMessage:"Aldrich\xae Market Select"}),","," "]}),a(e_.A.ALDRICH_MARKET_SELECT_NSR)]})]})},aj=(0,p.n9)()(e=>({gridWrapper:{overflow:"hidden",padding:0},columnWrapper:{display:"flex",justifyContent:"space-between",padding:e.spacing(0,5),[e.breakpoints.down("md")]:{flexDirection:"column"},[e.breakpoints.down("lg")]:{margin:0}},firstColumn:{width:"100%",[e.breakpoints.up("md")]:{width:"66%"}}}));var a_=t(54414),aN=t(79965);let aS=(0,p.n9)()(e=>({notFindingText:{fontWeight:e.typography.fontWeightBold}})),aI=()=>{let{classes:e}=aS();return(0,i.jsx)(aN.A,{alertMessage:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.A,{className:e.notFindingText,children:(0,i.jsx)(j.A,{id:"AI_ASSISTANT_NOT_FINDING_WHAT_YOU_ARE_LOOKING_FOR",defaultMessage:"Not finding what you are looking for?"})}),(0,i.jsx)(A.A,{children:(0,i.jsx)(j.A,{id:"LET_PRODUCT_ASSISTANT_HELP",defaultMessage:"Let the Product Assistant help you discover the right solution."})})]}),gaSection:"no search results"})};var aR=t(47378);let aM=(0,p.n9)()(e=>({baseCardStyle:{backgroundColor:e.palette.common.white,marginBottom:e.spacing(5),minHeight:350,transition:"all .2s ease-in-out","&:hover":{boxShadow:"0 20px 40px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.05)",transform:"scale(1.03)","& button":{opacity:1}},[e.breakpoints.down("lg")]:{minHeight:80,marginBottom:0,paddingBottom:0,transition:"none","&:hover":{transform:"none",boxShadow:"none"}}},verticalSpacing:{marginBottom:e.spacing(6),[e.breakpoints.up("xs")]:{marginLeft:e.spacing(6)}},noMatchesMessage:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium,[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold}},sectionWrapper:{overflow:"hidden",margin:e.spacing(4,0),[e.breakpoints.up("xs")]:{marginLeft:-20,marginRight:-20,marginTop:10}},sectionHeading:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold,margin:e.spacing(10,0,2,0)},sectionText:{fontSize:e.typography.pxToRem(14),lineHeight:"1.8rem",margin:"0"},linkWrapper:{margin:e.spacing(2,0,2,2),[e.breakpoints.up("xs")]:{marginLeft:30,marginTop:20}},textLink:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main},sectionDivider:{marginBottom:20},divider:{[e.breakpoints.up("md")]:{display:"none"},[e.breakpoints.up("xs")]:{marginRight:-20,marginLeft:-20}},cardGrid:{[e.breakpoints.up("md")]:{padding:"0 !important",margin:-16}}})),aO=e=>{let{link:a,linkText:t,title:n,type:r,isGene:l,children:s}=e,{classes:o}=aM();return(0,i.jsxs)("div",{className:o.sectionWrapper,"data-testid":"search-no-results-".concat(r,"-quick-link"),children:[(0,i.jsx)(ao.A,{className:o.sectionDivider}),(0,i.jsx)(A.A,{variant:"h2",className:o.verticalSpacing,children:n}),(0,i.jsx)(w.A,{container:!l,children:s}),(0,i.jsx)(ao.A,{className:o.divider}),a&&t&&(0,i.jsx)(w.A,{container:!0,spacing:4,children:(0,i.jsx)("div",{className:o.linkWrapper,children:(0,i.jsx)(b.N,{href:a,passHref:!0,children:(0,i.jsx)($.A,{children:t})})})})]})},aP=e=>{var a,t;let{dymTerms:r,hasBbeData:s,bbeLoading:c,bbeData:u,bbeError:p}=e,{formatMessage:m}=(0,W.A)(),{classes:g}=aM(),h=(0,l.rd)();(0,n.useEffect)(()=>{c||s||r?!c&&s&&(0,L.PC)(!0):(0,L.si)(h.query.term||"",[],h.query.focus,h.query.type,h.query.page)},[u]);let A=null==u?void 0:null===(t=u.getProductSearchResults)||void 0===t?void 0:null===(a=t.items)||void 0===a?void 0:a.filter(e=>"Product"===e.__typename).slice(0,3);return p&&!c?(0,i.jsx)(F.A,{}):(0,i.jsx)(i.Fragment,{children:s&&A&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(aO,{link:"".concat(l.wO.searchResults(h.query.term)).concat((0,o.$c)({term:h.query.term,focus:o.Xc.BuildingBlocks})),linkText:m(e_.A.SEE_ALL_BUILDING_BLOCKS),title:m(e_.A.BUILDING_BLOCKS_EXPLORER),type:"bbe",children:A.map((e,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(w.A,{item:!0,xs:12,md:5,className:g.cardGrid,children:[(0,i.jsx)(ao.A,{className:g.divider}),(0,i.jsx)("div",{className:g.baseCardStyle,children:(0,i.jsx)(ac.A,{colorIndex:a,catalogOverride:d.Mh.Buildingblocks,substance:e})})]},a),(0,i.jsx)(ao.A,{className:g.divider})]}))})})})},ak=e=>{var a,t,r,l,s,o,c,u,p,m;let{geneData:h,dymTerms:x,isRedirect:y}=e,[v,f]=tA(),{formatMessage:b}=(0,W.A)(),{classes:T}=aM(),E=(0,er.A)(),C=(0,aR.k)(),j=(0,g.A)(E.breakpoints.up(ev.Rp.MD),{defaultMatches:!0}),_=(0,g.A)(E.breakpoints.up(ev.Rp.LG),{defaultMatches:!0}),N=(0,B.GO)(),S=(0,a_.S)()?"network-only":"cache-first",{data:I,error:R,loading:M}=(0,au.le)({fetchPolicy:S,variables:{searchTerm:v.term,page:v.page,group:d.RL.Product,selectedFacets:f,sort:v.sort,type:v.type?v.type.toUpperCase():void 0,catalogType:d.Mh.Buildingblocks},skip:!N});(0,n.useEffect)(()=>{(null==x?void 0:x.length)&&!y&&(0,L.si)(v.term||"",x,v.focus,v.type,"".concat(v.page))},[x]);let{classes:O}=aj(),P=!!(null==h?void 0:null===(t=h.getGeneSearchResults)||void 0===t?void 0:null===(a=t.metadata)||void 0===a?void 0:a.itemCount)&&(null==h?void 0:null===(l=h.getGeneSearchResults)||void 0===l?void 0:null===(r=l.metadata)||void 0===r?void 0:r.itemCount)!==0,k=null==h?void 0:null===(o=h.getGeneSearchResults)||void 0===o?void 0:null===(s=o.items)||void 0===s?void 0:s.slice(0,1),F=!!(null==I?void 0:null===(u=I.getProductSearchResults)||void 0===u?void 0:null===(c=u.metadata)||void 0===c?void 0:c.itemCount)&&(null==I?void 0:null===(m=I.getProductSearchResults)||void 0===m?void 0:null===(p=m.metadata)||void 0===p?void 0:p.itemCount)!==0,[D,U]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{M||U(!N||!F&&!P)},[M,F,N,P]),(0,i.jsx)(en,{loading:M,showFacets:!1,showAvailableForSale:!0,children:(0,i.jsxs)(w.A,{className:O.gridWrapper,children:[(0,i.jsxs)("div",{className:O.columnWrapper,children:[(0,i.jsxs)("div",{className:O.firstColumn,children:[D&&v.term&&"facet-search"!==v.term?(0,i.jsx)(A.A,{component:"div",className:T.noMatchesMessage,children:"".concat(b(e_.A.SORRY_NO_MATCHES_FOUND_FOR),' "').concat(v.term,'"')}):D&&(!v.term||"facet-search"===v.term)&&(0,i.jsx)(A.A,{component:"div",className:T.noMatchesMessage,children:"".concat(b(e_.A.SORRY_NO_RETURN_RESPONSE_FOR))}),(null==x?void 0:x.length)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:(0,i.jsx)(ad.A,{terms:x,focus:v.focus})})}):null,(0,i.jsx)(ab.A,{}),C&&(0,i.jsx)(aI,{}),N&&(0,i.jsx)(aP,{dymTerms:!!(null==x?void 0:x.length),bbeData:I,bbeError:R,bbeLoading:M,hasBbeData:F}),P&&k&&(0,i.jsx)(aO,{title:b({id:"GENES",defaultMessage:"Genes"}),type:"gene",isGene:!0,children:k.map((e,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ao.A,{className:T.divider}),(0,i.jsx)(af,{gene:e},"".concat(e.name,"-").concat(a))]}))}),j&&(0,i.jsx)(aT.A,{})]}),_&&(0,i.jsx)(aC,{})]}),!_&&(0,i.jsx)(aC,{})]})})};var aL=t(77100),aB=t(2897);let aF=(0,p.n9)()(e=>({responsivePaginationWrapper:{padding:e.spacing(4,0)}})),aD=e=>{let{currentPage:a,handleUpdatePage:t,numPages:n,customPadding:r,customCounterStyling:l,customButtonStyling:s}=e,{classes:o}=aF();return(0,i.jsx)("div",{className:r||o.responsivePaginationWrapper,"data-testid":"search-results-pagination",children:(0,i.jsx)(aB.A,{currentPage:a,handleUpdatePage:e=>{(0,L.tg)({action:"pagination click",detail:"".concat(e>a?"next":"previous"," - page ").concat(e," of ").concat(n),component:"body",elementType:"button"}),t(e)},numPages:n,customCounterStyling:l,customButtonStyling:s})})};var aw=t(57717),aW=t(40002),aU=t(60374);let aH=(0,p.n9)()(e=>({accordionHeaderContainer:{[e.breakpoints.down("md")]:{paddingLeft:e.spacing(4),paddingRight:e.spacing(4)},"& > button":{fontFamily:"inherit",paddingBottom:0,paddingTop:0,"& > svg":{fill:e.palette.primary.main,width:e.typography.pxToRem(14)}}},accordionHeader:{textTransform:"none",letterSpacing:"0.09px",fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold},accordionBody:{paddingBottom:e.typography.pxToRem(45),[e.breakpoints.up("sm")]:{paddingBottom:0}}})),aG=e=>{let{products:a,shouldEnableAccordion:t=!1,testId:n}=e,{classes:r,cx:l}=aH(),s=(0,f.A)(),o=(0,ev.Ay)(),d=(0,g.A)(s.breakpoints.down("md"),{defaultMatches:!0}),{accordionProps:c,toggleIsAccordionOpen:u}=(0,aU.xl)("related-accordion",{isAccordionEnabled:t,isAccordionOpen:!0}),p=(0,i.jsx)(ar.A,{mt:6});return(null==a?void 0:a.length)?(0,i.jsx)(aU.Ay,{...c,isAccordionOpen:c.isAccordionOpen,classes:{body:r.accordionBody},isAccordionEnabled:t,toggleAccordion:u,headerContainerProps:{className:l(r.accordionHeaderContainer),disableGutters:!0},testId:n,renderHeading:()=>t&&(0,i.jsx)(A.A,{variant:"h2",className:r.accordionHeader,children:(0,i.jsx)(j.A,{...aW.G[aW.j.RecommendedProducts]})}),children:(0,i.jsx)(aw.A,{type:aW.j.RecommendedProducts,products:a,withoutControls:!d,slidesToShow:o({xs:1,sm:2,lg:3}),preloadCardImages:!0,analyticsPageName:"srp",analyticsPageDetails:"search results page",title:t?p:void 0,condensed:!0})}):null};var az=t(30510),aY=t(50524),aq=t(930);let aV=(0,p.n9)()(e=>({wrapper:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",border:"1px solid ".concat(e.palette.grey[400]),borderRadius:"6px",boxShadow:"2px 2px 6px 0 rgba(0, 0, 0, 0.16)",padding:e.spacing(4)},link:{fontSize:e.typography.pxToRem(9),fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,"&:hover":{color:e.palette.text.primary}},mainContent:{display:"flex"},mainContentImage:{height:105,width:98,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(3)},productNumber:{fontSize:e.typography.pxToRem(11),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main,textTransform:"uppercase"},productName:{maxHeight:66,fontSize:e.typography.pxToRem(11),fontWeight:e.typography.fontWeightMedium,lineHeight:1.3,marginBottom:e.spacing(1),"& sup, sub":{verticalAlign:"baseline",position:"relative",top:"-0.4em"},"& sub":{top:"0.1em"}},productBrand:{fontSize:e.typography.pxToRem(12),paddingBottom:e.spacing(1)},productDescription:{fontSize:e.typography.pxToRem(10),lineHeight:1.3,marginBottom:e.spacing(3)},clampLines:{display:"-webkit-box","-webkit-box-orient":"vertical",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis"},footer:{marginTop:e.spacing(3),"& > button":{whiteSpace:"nowrap"}},paLink:{border:"solid 1px ".concat(e.palette.primary.dark),fontSize:e.typography.pxToRem(9),fontWeight:e.typography.fontWeightBold},featuredTextWrapper:{position:"absolute",top:e.spacing(4),right:e.spacing(4)}})),aK=e=>{var a,t,n;let{product:r,testId:s,onViewPrice:o,preloadCardImages:d,cardWidth:c,gaPosition:u}=e,p=(0,l.rd)(),m=null!==(n=null==p?void 0:null===(a=p.query)||void 0===a?void 0:a.catalog)&&void 0!==n?n:"",h=!(null===(t=r.productNumber)||void 0===t?void 0:t.startsWith("CB_")),{classes:y,cx:v}=aV(),f=(0,er.A)(),T=(0,g.A)(f.breakpoints.up("sm")),E="product-card-".concat(r.productNumber).concat(r.brand.key,"-").concat(s),C=e=>{let{children:a}=e;return(0,i.jsx)(b.N,{...l.aR.index(r.brand.key,r.productKey,{catalog:m}),children:(0,i.jsx)("a",{className:y.link,"data-testid":E,id:E,role:"link",tabIndex:0,onKeyPress:()=>(0,L.p)(r,u),onClick:()=>(0,L.p)(r,u),children:a})})};return(0,i.jsxs)("div",{className:v(y.wrapper,"promotions-slider-div"),style:{width:c},children:[d&&(0,i.jsx)(P(),{children:(0,i.jsx)("link",{rel:"preload",href:r.images[0].mediumUrl,as:"image"})}),(0,i.jsx)("div",{className:y.featuredTextWrapper,children:(0,i.jsx)(A.A,{style:{fontSize:f.typography.pxToRem(11),color:f.palette.grey[500]},children:(0,i.jsx)(j.A,{id:"FEATURED",defaultMessage:"Featured"})})}),(0,i.jsxs)("div",{className:v(y.mainContent),children:[(0,i.jsx)(C,{children:(0,i.jsx)("div",{className:y.mainContentImage,children:(0,i.jsx)("img",{className:y.image,src:r.images[0].mediumUrl,alt:r.images[0].altText||r.description||r.name,width:"112",height:"50"})})}),(0,i.jsxs)("div",{className:y.mainContentText,children:[(0,i.jsx)(A.A,{className:v(y.productBrand),style:{color:r.brand.color||""},children:r.brand.name}),h&&(0,i.jsx)(C,{children:(0,i.jsx)(A.A,{className:v(y.productNumber),children:r.productNumber})}),(0,i.jsx)(A.A,{className:v(y.productName,y.clampLines),children:(0,i.jsx)(Q.A,{value:r.name})}),(0,i.jsx)(A.A,{className:v(y.productDescription,y.clampLines),style:{WebkitLineClamp:"49%"===c?1:2},children:(0,i.jsx)(Q.A,{value:r.description})}),"49%"===c&&(0,i.jsx)(x.A,{className:y.paLink,style:{width:"fit-content"},size:T?"small":"large",color:"primary",variant:"outlined",fullWidth:!T,onClick:o,children:(0,i.jsx)(j.A,{id:"QUICK_VIEW",defaultMessage:"Quick View"})})]})]}),"32.5%"===c&&(0,i.jsx)("div",{className:y.footer,children:(0,i.jsx)(x.A,{className:y.paLink,style:{width:"100%"},size:T?"small":"large",color:"primary",variant:"outlined",fullWidth:!T,onClick:o,children:(0,i.jsx)(j.A,{id:"QUICK_VIEW",defaultMessage:"Quick View"})})})]})};var aQ=t(36258);let a$=(0,p.n9)()(e=>({wrapper:{display:"flex",fontSize:e.typography.pxToRem(11),gap:e.spacing(4)},title:{marginBottom:e.spacing(5)}})),aX=e=>{let{products:a}=e,{classes:t}=a$(),[r,l]=(0,n.useState)(null),s=(0,ev.Ay)(),d=(0,aY.Gd)(),c=(0,n.useRef)(null),[u,p]=(0,n.useState)(!1),m=(0,aQ.B)(c,{threshold:.66}),g="".concat(o.WX.Featured," - ").concat(d),h=s({md:2,lg:3}),x=(null==a?void 0:a.length)>h?null==a?void 0:a.slice(0,h):a,y=()=>3===x.length?"32.5%":"49%",v=(e,a,t,i)=>{(0,aq.e)({product:e,indexPosition:a,creativeSlot:i,pageType:t})};return(null==m?void 0:m.isIntersecting)&&!u&&((0,aq.W)({creativeSlot:g,pageType:d,products:x}),p(!0)),(0,i.jsxs)("div",{ref:c,children:[(0,i.jsx)(A.A,{className:t.title,variant:"h2",children:(0,i.jsx)(j.A,{id:"FEATURED",defaultMessage:"Featured"})}),(0,i.jsxs)("div",{className:t.wrapper,children:[null==x?void 0:x.map((e,a)=>(0,i.jsx)(aK,{product:e,testId:"srp-featured-product",onViewPrice:()=>{l({...e,gaIndex:a+1}),v(e,a,d,g)},preloadCardImages:!0,cardWidth:y(),gaPosition:a+1},e.productNumber)),r&&(0,i.jsx)(az.A,{...r,open:!0,showAddToList:!0,image:r.images[0],onClose:()=>l(null),gaLabel:"".concat(r.productNumber," | ").concat(null==r?void 0:r.gaIndex),gaType:aY.Yo[o.WX.Featured]})]})]})};var aZ=t(21908),aJ=t(55007),a0=t(84830);let a1=(0,p.n9)()(e=>({promo:{[e.breakpoints.down("md")]:{display:"none"},paddingBottom:e.spacing(6),paddingTop:e.spacing(6),borderBottom:"1px solid ".concat(e.palette.grey[400])},dark:{borderBottomColor:e.palette.grey[600]},grey:{background:e.palette.background.grey,borderColor:"transparent",padding:e.spacing(6),[e.breakpoints.down("md")]:{paddingLeft:e.spacing(0),paddingRight:e.spacing(0)}}})),a2=e=>{var a,t;let{children:r,searchKey:l,variant:s="light",calculateGenePosition:o,additionalClasses:d,isSearchResultsPage:c=!1}=e,{isBlueB2BUser:u}=(0,k.iZ)(),{data:p}=(0,aZ.t1)({variables:{input:{searchKey:l,...u?{erpType:a0.G.Blue}:{}}},ssr:!1,onCompleted:e=>{var a;e&&(null==e?void 0:null===(a=e.getSrpFeaturedProducts)||void 0===a?void 0:a.products.length)!==0||(0,L.Xk)({action:"srp load",detail:l.toLowerCase(),section:"featured"})}}),{data:m}=(0,aJ.Sx)({variables:{input:{searchKey:l,...u?{erpType:a0.G.Blue}:{}}},ssr:!1,onCompleted:e=>{var a;e&&(null==e?void 0:null===(a=e.getSrpRecommendedProducts)||void 0===a?void 0:a.products.length)!==0||(0,L.Xk)({action:"srp load",detail:l.toLowerCase(),section:"recommended products"})}}),g=null==p?void 0:null===(a=p.getSrpFeaturedProducts)||void 0===a?void 0:a.products,h=null==m?void 0:null===(t=m.getSrpRecommendedProducts)||void 0===t?void 0:t.products,A=!!g&&g.length>0,x=!!h&&h.length>0;(0,n.useEffect)(()=>{o&&o(A,x)},[o]);let{classes:y,cx:v}=a1(),f=n.Children.toArray(r),b=e=>{let a=3===e&&A,t=3===e&&!A||6===e&&A;return a&&g?(0,i.jsx)("div",{className:v(y.promo,"dark"===s&&y.dark),children:c?(0,i.jsx)(et.A,{flag:"wabt-221",hide:!0,variationKey:"v1_remove_featured",children:(0,i.jsx)(aX,{products:g})},"v1_remove_featured"):(0,i.jsx)(aX,{products:g})}):t&&h?(0,i.jsx)(aU.Dw,{children:(0,i.jsx)("div",{className:v(d,y.grey),children:c?(0,i.jsx)(et.A,{flag:"wabt-221",hide:!0,variationKey:"v2_remove_recommended",children:(0,i.jsx)(aG,{products:h,shouldEnableAccordion:!0,testId:"recommended-products-accordion-button"})},"v2_remove_recommended"):(0,i.jsx)(aG,{products:h,shouldEnableAccordion:!0,testId:"recommended-products-accordion-button"})})}):t&&h?(0,i.jsx)("div",{className:v(y.promo,"dark"===s&&y.dark),children:c?(0,i.jsx)(et.A,{flag:"wabt-221",hide:!0,variationKey:"v2_remove_recommended",children:(0,i.jsx)(aG,{products:h})},"v2_remove_recommended"):(0,i.jsx)(aG,{products:h})}):null};return(0,i.jsxs)(i.Fragment,{children:[f.slice(0,2),b(3),f.slice(2,4),b(6),f.slice(4)]})};var a4=t(33086),a7=t(28094),a3=t(94295),a6=t(27651),a8=t(3635);let a5=(0,p.n9)()((e,a,t)=>({noResultsMsg:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold,marginTop:e.spacing(6)},results:{"&> *":{borderBottom:"solid 1px ".concat(e.palette.grey[400]),["&:has(+ .".concat(t.noBorder,")")]:{border:"none"}},[e.breakpoints.up("md")]:{"&> *:first-child":{borderTop:"solid 1px ".concat(e.palette.grey[600])},"&> *":{borderColor:e.palette.grey[600]},"&> *:last-child":{marginBottom:0}}},noBorder:{border:"none"},notFindingText:{fontWeight:e.typography.fontWeightBold}})),a9=(0,p.n9)()(e=>({searchContainer:{[e.breakpoints.down("sm")]:{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)}}})),te=(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{style:{color:"red",backgroundColor:"yellow"},children:"This is the new SRP!!"}),(0,i.jsx)(()=>{var e,a,t,r,s,c,u,p,m,h,A,x,y,v,b,T,E,C,j,_;let N,S,I;let R=(0,l.rd)(),M=(0,f.A)(),O=(0,g.A)(M.breakpoints.up("md")),w=(0,a3.L)(a6.US.countryCode),{classes:W}=a5(),{getSitePreference:U}=(0,k.iZ)(),H=(0,a7.O)(),[G,z,Y]=tA(),q=(0,B.GO)(),V=(0,a_.S)()?"network-only":"cache-first",[K]=(0,a8.useDecision)("wabt-230"),Q=K.enabled?"test-variation":"",{data:$,loading:X,error:Z}=(0,au.le)({fetchPolicy:V,variables:{searchTerm:(0,a4._)(R)&&0!==z.length?null:G.term,page:G.page,group:d.RL.Substance,selectedFacets:z,sort:G.sort,type:G.type?G.type.toUpperCase():void 0,region:G.region,filter:H,variation:Q}}),J=U(k.VD.IsRedirectToProductDetail);null===D.Lr||void 0===D.Lr||D.Lr.setItem("searchedfor",null==G?void 0:G.term),null===D.Lr||void 0===D.Lr||D.Lr.setItem("searchQuery",JSON.stringify(G));let ee=1===G.page,ea=!1,{data:et,loading:ei}=(0,aL.Rj)({variables:{searchTerm:G.term,page:G.page,selectedFacets:z,type:d.e0.Gene},skip:!ee}),[er,el]=(0,n.useState)(9);(0,n.useEffect)(()=>{var e,a;let t=null==$?void 0:null===(a=$.getProductSearchResults)||void 0===a?void 0:null===(e=a.metadata)||void 0===e?void 0:e.redirect;t&&(t.startsWith("http")?window.location.href=t:R.replace(t))},[$,R]);let es=!(null==$?void 0:null===(a=$.getProductSearchResults)||void 0===a?void 0:null===(e=a.metadata)||void 0===e?void 0:e.itemCount)||!(null==$?void 0:null===(r=$.getProductSearchResults)||void 0===r?void 0:null===(t=r.metadata)||void 0===t?void 0:t.setsCount),eo=(null==$?void 0:null===(c=$.getProductSearchResults)||void 0===c?void 0:null===(s=c.metadata)||void 0===s?void 0:s.itemCount)===0||(null==$?void 0:null===(p=$.getProductSearchResults)||void 0===p?void 0:null===(u=p.metadata)||void 0===u?void 0:u.setsCount)===0,ed=O&&w;if((0,n.useEffect)(()=>{var e;let a=null==$?void 0:$.getProductSearchResults.didYouMeanTerms;if(es&&(null==a?void 0:a.length)&&!R.query.dym&&(0,o.AZ)(R,G.term,G.focus,a),J&&(null==$?void 0:null===(e=$.getProductSearchResults)||void 0===e?void 0:e.metadata.itemCount)===1&&"Substance"===$.getProductSearchResults.items[0].__typename&&R){let e=$.getProductSearchResults.items[0].products[0],a="".concat(l.aR.index(e.brand.key,e.productKey).as);R.replace(a)}},[es,R,G.term,$,et]),(0,n.useEffect)(()=>{if(!X&&$&&(es||eo)){var e,a,t;(0,L.PC)(!0),(null==$?void 0:null===(a=$.getProductSearchResults)||void 0===a?void 0:null===(e=a.metadata)||void 0===e?void 0:e.redirect)||(null==G?void 0:null===(t=G.term)||void 0===t?void 0:t.includes("*"))||(0,L._s)({qFocus:G.focus||"",qPage:"".concat(G.page),qType:G.type||"",searchResultStatus:"standard",searchTerm:G.term||"",didYouMeanTerms:void 0})}},[X,$]),(0,n.useEffect)(()=>{var e,a,t;let i=(null==$?void 0:null===(e=$.getProductSearchResults)||void 0===e?void 0:e.didYouMeanTerms)||[],n=(null==et?void 0:null===(t=et.getGeneSearchResults)||void 0===t?void 0:null===(a=t.metadata)||void 0===a?void 0:a.itemCount)===0;q||X||ei||!es||!n||i.length||(0,L.si)(G.term||"",[],G.focus,G.type,"".concat(G.page))},[$,et,X,ei,G.term]),ee&&(null==$?void 0:$.getProductSearchResults)&&(null==et?void 0:et.getGeneSearchResults)&&(null==et?void 0:et.getGeneSearchResults.items[0])!==void 0){let e=(I=[...null==$?void 0:$.getProductSearchResults.items]).length>=10?er:I.length;ea=!0,I.splice(e,0,et.getGeneSearchResults.items[0])}if((Z||!$||!$.getProductSearchResults)&&!X)return(0,i.jsx)(en,{loading:X,children:(0,i.jsx)(F.A,{})});if($&&(null===(h=$.getProductSearchResults)||void 0===h?void 0:null===(m=h.metadata)||void 0===m?void 0:m.setsCount)&&(null===(x=$.getProductSearchResults)||void 0===x?void 0:null===(A=x.metadata)||void 0===A?void 0:A.setsCount)>0||$&&(null===(v=$.getProductSearchResults)||void 0===v?void 0:null===(y=v.metadata)||void 0===y?void 0:y.itemCount)&&(null===(T=$.getProductSearchResults)||void 0===T?void 0:null===(b=T.metadata)||void 0===b?void 0:b.itemCount)>0||X){let e=0;return(0,i.jsx)(en,{showFacets:!0,showAvailableForSale:!0,showSortBar:!0,loading:X,facets:null==$?void 0:null===(E=$.getProductSearchResults)||void 0===E?void 0:E.facets,metadata:null==$?void 0:null===(C=$.getProductSearchResults)||void 0===C?void 0:C.metadata,id:"products-srp-grid","data-testid":"products-srp-grid",children:X?(0,i.jsx)(as,{}):(null==$?void 0:$.getProductSearchResults)&&({metadata:N}=$.getProductSearchResults,S=ea?I:$.getProductSearchResults.items,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:W.results,children:(0,i.jsx)(a2,{searchKey:G.term||"",variant:"dark",calculateGenePosition:(e,a)=>{e&&a?el(7):(e||a)&&el(8)},additionalClasses:W.noBorder,isSearchResultsPage:!0,children:S.map((a,t)=>{var r,l,s;let o=a&&a.variants,d={...a,products:null!==(s=null==a?void 0:null===(r=a.products)||void 0===r?void 0:r.map(a=>(e++,{...a,position:e})))&&void 0!==s?s:[]};return(0,i.jsxs)(n.Fragment,{children:[0===t&&(0,i.jsx)(P(),{children:(0,i.jsx)("link",{rel:"preload",href:null==a?void 0:null===(l=a.images[0])||void 0===l?void 0:l.mediumUrl,as:"image"})},a.id),o&&ed?(0,i.jsx)("div",{className:W.noBorder,children:(0,i.jsx)(aI,{})}):o?(0,i.jsx)(af,{gene:a,inProductSRP:!0},t):(0,i.jsx)(ai,{substance:d,substancePosition:t+1},t)]},t)})},G.term||"")}),(0,i.jsx)(aD,{currentPage:G.page,numPages:N.numPages,handleUpdatePage:Y.handlePageChange})]}))})}return es||ea?(0,i.jsx)(ak,{dymTerms:null==$?void 0:$.getProductSearchResults.didYouMeanTerms,geneData:et,isRedirect:null==$?void 0:null===(_=$.getProductSearchResults)||void 0===_?void 0:null===(j=_.metadata)||void 0===j?void 0:j.redirect}):null},{})]}),ta=()=>{let{classes:e}=a9();return(0,i.jsxs)(m.A,{className:e.searchContainer,children:[(0,i.jsx)(u.A,{maxWidth:"lg",classes:{root:e.resultsContainer},children:te}),(0,i.jsx)(M,{})]})};var tt=t(73170),ti=t(21341),tn=t(53590),tr=t(62599);let tl=()=>{var e,a;let t,n;let[r,l,s]=tA(),{data:o,loading:u,error:p}=(0,au.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)(tn.A,{showFacets:!0,showSortBar:!0,orgId:r.orgId,loading:u,metadata:null==o?void 0:null===(e=o.getProductSearchResults)||void 0===e?void 0:e.metadata,facets:null==o?void 0:null===(a=o.getProductSearchResults)||void 0===a?void 0:a.facets,children:(null==o?void 0:o.getProductSearchResults)?({metadata:t,items:n}=o.getProductSearchResults,(0,i.jsxs)(i.Fragment,{children:[n.length?n.map((e,a)=>(0,i.jsx)(tr.A,{substance:e},a)):(0,i.jsx)(j.A,{...e_.A.SORRY_NO_MATCHES_FOUND_FOR,children:e=>(0,i.jsxs)(ap.A,{fontSize:20,mt:6,children:[e," ","'".concat(r.term,"'")]})}),t.numPages>1&&(0,i.jsx)(tt.A,{curPage:r.page,numPages:t.numPages,clickHandler:s.handlePageChange})]})):(0,i.jsx)(ti.A,{view:c.Z.list,error:p})})},ts=(0,p.n9)()(e=>({searchContainer:{[e.breakpoints.down("sm")]:{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)}}})),to=()=>{let{classes:e}=ts();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)(tl,{})})})})};var td=t(69569),tc=t(30915),tu=t.n(tc);let{publicRuntimeConfig:{featureFlags:tp}}=Y()(),tm=(0,n.createContext)((0,o.h2)({term:""}));var tg=function(e){return e[e.Add=0]="Add",e[e.Remove=1]="Remove",e}({});let th=(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)),tA=()=>{let e=(0,n.useContext)(tm),{getSitePreference:a}=(0,k.iZ)(),t=a(k.VD.CatalogFilter),i=(0,l.rd)(),r=i.asPath.includes("structure-search")?"structure-search":e.term||"",{facet:s,focus:d,type:c,sort:u,perpage:p,format:m,filters:g,image:h,catalogType:A,region:x}=e,y={term:e.term,selectedFacets:s,focus:d,type:c,sort:u,perpage:p,format:m,filters:g,image:h,catalogType:A,region:x},v=!t&&!!t!=!!e.orgId,f=t&&t!==e.orgId&&"UCB"!==t;(0,n.useEffect)(()=>{v?i.push("/search/[searchTerm]".concat((0,o.$c)(y)),"".concat(l.wO.searchResults(r)).concat((0,o.$c)(y))):f&&i.push("/search/[searchTerm]".concat((0,o.$c)({...y,orgId:t})),"".concat(l.wO.searchResults(r)).concat((0,o.$c)({...y,orgId:t})))},[y,t,v,e.orgId,f]);let b=(0,n.useCallback)(a=>{i.push("/search/[searchTerm]".concat((0,o.$c)({term:e.term,focus:a})),"".concat(l.wO.searchResults(e.term)).concat((0,o.$c)({term:e.term,focus:a})))},[y,t,i,r]),T=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,o.$c)({...y,orgId:t,page:e})),"".concat(l.wO.searchResults(r)).concat((0,o.$c)({...y,orgId:t,page:e}))),window.scrollTo(0,0)},[y,t,i,r]),E=(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(a4.D)).concat((0,o.$c)({...e,page:1,selectedFacets:[i.query.facet],term:a4.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>s.indexOf(u[0])&&(a=e.multiSelect?s.concat(u[0]):th(s,u))},1:()=>{if(1===s.length&&r===a4.D){a=null;return}a=s.filter(e=>0>u.indexOf(e))}})[e.action](e),null!==a?(i.push("/search/[searchTerm]".concat((0,o.$c)({...y,selectedFacets:a,page:1,orgId:t})),"".concat(l.wO.searchResults(r)).concat((0,o.$c)({...y,selectedFacets:a,page:1,orgId:t}))),window.scrollTo(0,0)):i.push(l.wO.index())},[y,t,s,i,r]),j=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,o.$c)({...y,page:1,orgId:t,region:e})),"".concat(l.wO.searchResults(r)).concat((0,o.$c)({...y,page:1,orgId:t,region:e}))),window.scrollTo(0,0)},[y,t,i,r]),_=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,o.$c)({...y,page:1,sort:e,orgId:t})),"".concat(l.wO.searchResults(r)).concat((0,o.$c)({...y,page:1,sort:e,orgId:t})))},[y,t,i,r]),N=(0,n.useMemo)(()=>(0,o.w9)(s),[s]);return(0,n.useMemo)(()=>[e,N,{handleFocusChange:b,handlePageChange:T,handleTermRemoval:E,handleSelectedFacetChange:C,handleAvailableForSaleChange:j,handleSortChange:_}],[e,b,T,E,C,j,_,N])},tx=e=>{let{searchQuery:a,newSrpEnabled:t=!1}=e;if(!a)return null;let n=a.orgId?to:tp.newSrp&&t?ta:c.A;return(0,i.jsx)(tm.Provider,{value:a,children:(0,i.jsx)(n,{})})},ty=e=>Array.isArray(e)?e[0]:e,tv=e=>e?Array.isArray(e)?e:[e]:[],tf=e=>void 0!==e?Array.isArray(e)?parseInt(e[0],10):parseInt(e,10):e;tx.getInitialProps=async e=>{let{query:a,res:t,asPath:i}=e;if(!a)return{searchQuery:null};let n=ty(a.term),c=(0,td.A)(e),u="true"===c.get("newSrpEnabled"),p=(0,B.xS)((0,s.k)(c.getAll()),l.wO.index());if(!n&&!a.facet)return t?(t.writeHead(301,{Location:p.as}),t.end()):l.Ix.replace(p.href,p.as),{searchQuery:null};let m=ty(a.focus),g=ty(a.type),h=tv(a.facet),A=tf(a.page),x=ty(a.sort),y=tf(a.perpage),v=tv(a.filters),f=Array.isArray(a.format)?d.ZI[a.format[0]]:(null==a?void 0:a.format)&&d.ZI[a.format],b=ty(a.image),T=ty(a.orgId),E=ty(a.catalogType),C=ty(a.region),j=ty(a.dym),_=ty(a.debug),N=(0,r.A)(a,(e,a)=>!!a.match(/^(utm_|gclid|dclid|msclkid|fbclid)/i)),S=(0,o.h2)({term:n,selectedFacets:h,focus:m,type:g,page:A,sort:x,perPage:y,format:f,filters:v,image:b,orgId:T,catalogType:E,region:C,dym:j,debug:_}),I=n;(null==i?void 0:i.includes("structure-search"))&&(I="structure-search");let R=(0,B.xS)((0,s.k)(c.getAll()),"".concat(l.wO.searchResults(I)).concat((0,o.e9)({...S,...N}))),M=(null==i?void 0:i.split("?"))||[],O=tu().parse(M[1]),P="".concat(M[0],"?").concat(tu().stringify(O,{indices:!1}));if(R.as!==P){if(t){let e=/[A-Z]/.test(R.as)?301:302;t.writeHead(e,{Location:R.as}),t.end()}else l.Ix.replace(R.href,R.as);return{searchQuery:null}}return{searchQuery:S,newSrpEnabled:u}};let tb=tx},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),s=t(34415),o=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(),A=(0,u.rd)(),{userIsLoggedIn:x,currentUser:y}=(0,d.iZ)(),v=(0,p.L)(m.HK.countryCode),f=(null==y?void 0:y.__typename)==="LoggedInUser"&&y.soldToPartners.length<1;return x?f&&!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)(s.A,{href:"".concat(u.R6.linkProfile(),"?returnUrl=").concat(encodeURIComponent(A.asPath||u.xn.index())),className:h.link,children:(0,i.jsx)(n.A,{...c.A.LINK_YOUR_ACCOUNT})}),(0,i.jsx)(o.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)(s.A,{href:"".concat(u.VV.index(),"?redirect=").concat(encodeURIComponent(A.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)(o.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:()=>h});var i=t(37876);t(14232);var n=t(34415),r=t(7645),l=t(99220),s=t(28407),o=t(77501),d=t(54753),c=t(8733),u=t(21826),p=t(89099),m=t(69485);let g=(0,l.n9)()(e=>({simpleAlert:{display:"flex",justifyContent:"center",fontWeight:e.typography.fontWeightRegular,marginBottom:e.spacing(2),[e.breakpoints.down("lg")]:{display:"inline"}},errorIcon:{display:"flex",alignItems:"center",marginRight:e.spacing(2),[e.breakpoints.down("lg")]:{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)}})),h=e=>{var a;let{discontinuedPricingInfo:t,leftAligned:l}=e,{classes:h,cx:A}=g(),x=(0,p.useRouter)(),y=x.asPath.includes("/search"),v=x.asPath.includes("/compare"),f=!!(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),b=(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:h.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}),T=f?(0,i.jsx)(m.J,{...d.A.THIS_PRODUCT_DISCONTINUED,values:{recommendedProductMessage:v?null:b}}):(0,i.jsx)(m.J,{...d.A.THIS_PRODUCT_DISCONTINUED,values:{recommendedProductMessage:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{className:h.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 y||v?(0,i.jsxs)(r.A,{className:A(h.simpleAlert,{[h.alignLeft]:v||l}),children:[(0,i.jsx)(r.A,{className:h.errorIcon,children:(0,i.jsx)(o.default,{color:"error"})}),T]}):(0,i.jsx)(u.A,{severity:"error",className:h.errorAlert,icon:(0,i.jsx)(s.A,{style:{fontSize:16}}),children:T})}},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),s=t(17685),o=t(14232),d=t(8733),c=t(10181),u=t(67241),p=t(70377),m=t(41683),g=t(57377),h=t(71549),A=t(98011),x=t(61261),y=t(54753),v=t(44238),f=t(49995);let b=(0,x.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}})),T=e=>{let{country:a,stateCode:t}=e,n=(0,v.k)(a,t);return(0,i.jsx)("div",{children:n})},E=e=>{let{dealers:a,onSelect:t,selected:n}=e,r=b();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,{...y.A.DEALER_LABEL_DEALER})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...y.A.DEALER_LABEL_BRANCH})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...y.A.DEALER_LABEL_AVAILABLE_PRODUCTS})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...y.A.DEALER_LABEL_PREFECTURE})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...y.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:s,countryCode:o,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)(A.A,{className:r.root,checked:n===l,onChange:()=>t(l,d),id:"selectDealer",checkedIcon:(0,i.jsx)("span",{className:(0,f.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:o&&c&&(0,i.jsx)(T,{country:o,stateCode:c})}),(0,i.jsx)(g.A,{children:s})]},a)})})]})})},C=e=>{let{selectDealer:a,selectedDealerId:t,searchTerm:d="",stateCode:c}=e,{userSession:u}=(0,s.j)(),{currentUserState:p}=(0,l.iZ)(),m=c||String(p),{data:g,loading:h,error:A}=(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,o.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(A){let{displayableError:e,hasError:a}=(0,r.Mw)(A);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)(E,{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),s=t(61206),o=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)(o.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)(s.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:()=>j});var i=t(37876),n=t(14232),r=t(49995),l=t(61261),s=t(12197),o=t(5411),d=t(77660),c=t(66313),u=t(2184),p=t(61206),m=t(8733),g=t(86024),h=t(86367),A=t(11788),x=t(99486),y=t(52413),v=t(11148),f=t(97710),b=t(11631),T=t(84119),E=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)}})),j=e=>{var a,t,l;let{onClose:j,substanceName:_,productNumber:N,productKey:S,brandKey:I,description:R,materialIds:M,isMarketplace:O=!1,marketplaceSellerId:P,marketplaceOfferId:k,productAttributes:L,erp_type:B,productName:F,displaySellerName:D,pricingData:w,paMessage:W}=e,U=C(),{getSitePreference:H,isDTAQZuCustomer:G,isMultiCountryUser:z,currentUser:Y,isBlueErpIntegrationEnabled:q}=(0,A.iZ)(),{focus:V="",catalog:K=""}=(0,v.rd)().query||{},Q=H(A.VD.CatalogFilter),{authorized:$}=(0,x.I)(x.N.canAddToCart),X=O?d.Mh.Marketplace:null,Z=q&&B&&(null==B?void 0:B.length)>0,J=G?H(A.VD.PreferredDealerId):null,[ee,ea]=(0,n.useState)(null==w?void 0:w.materialPricing),[et,{data:ei,loading:en,error:er}]=(0,c.Gb)(),[el,{data:es,loading:eo,error:ed}]=(0,u.Fo)(),ec=eo||en,eu=ed||er,ep=async()=>{var e,a;let t={...Z&&{erp_type:B},brand:I,catalogType:(0,f.vN)(X||V||K),checkBuyNow:!0,checkForPb:!0,dealerId:J,displaySDS:!1,materialIds:M,orgId:Q,productKey:S,productNumber:N,quantity:1};z?await el({variables:t}):await et({variables:t}),ea(z?null==es?void 0:null===(e=es.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=z?null==es?void 0:null===(e=es.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==w?void 0:w.materialPricing);t?ea(t):W||ep()},[eu,ec,z,es,W,w,ei]),(0,i.jsx)(g.A,{open:!0,onClose:()=>{j(!1)},size:g.I.Large,renderTitle:()=>(0,i.jsxs)("div",{className:U.header,children:[(0,i.jsx)(s.A,{component:"h2",variant:"h2",className:U.vr2,children:N}),(0,i.jsx)(s.A,{component:"div",className:(0,r.A)(U.substance,U.truncateText),children:(0,i.jsx)(p.A,{value:_})}),(0,i.jsx)(s.A,{component:"div",className:(0,r.A)(U.description,U.truncateText),children:(0,i.jsx)(p.A,{value:R})})]}),children:(0,i.jsxs)("div",{className:U.body,children:[W?(0,i.jsx)(E.Ay,{productNumber:N,brandKey:I,paMessage:W}):(null==ee?void 0:ee.length)?(0,i.jsx)(h.A,{productName:F,materialPricing:ee,multiCountryData:es,canAddToCart:$&&!z&&(!O||!!(null==Y?void 0:null===(a=Y.metadata)||void 0===a?void 0:a.isMarketplaceCartEnabled)),marketplaceOfferId:O&&ee&&(null===(t=ee[0])||void 0===t?void 0:t.marketplaceOfferId)?null===(l=ee[0])||void 0===l?void 0:l.marketplaceOfferId:k,renderSecondaryAction:()=>(0,i.jsx)("div",{className:U.viewDetailsWrapper,children:(0,i.jsx)(y.N,{...v.aR.index(I,S,{catalog:(0,f.vN)(V)}),passHref:!0,children:(0,i.jsx)(o.A,{color:"primary",variant:"outlined",size:"large",fullWidth:!0,children:(0,i.jsx)(m.A,{id:"VIEW_PRODUCT_DETAILS",defaultMessage:"View Product Details"})})})}),erpType:B}):null,(ec||eu)&&(0,i.jsxs)("div",{className:U.alternateStatesWrapper,children:[ec&&(0,i.jsx)(b.A,{}),eu&&(0,i.jsx)(T.A,{error:ed||er,productNumber:N,isMarketplace:O,sellerName:D||(0,f.t1)(L),marketplaceSellerId:P,marketplaceOfferId:k})]})]})})}},36820:(e,a,t)=>{t.d(a,{A:()=>N});var i=t(37876),n=t(14232),r=t(49995),l=t(61261),s=t(35877),o=t(54753),d=t(71541),c=t(64204),u=t(5411),p=t(62940),m=t(98545),g=t(32849),h=t(82440),A=t.n(h),x=t(8733),y=t(86024),v=t(43343),f=t(61206),b=t(67334),T=t(11148),E=t(52413),C=t(70183);let j="".concat(124,"px"),_=(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(j,")"),[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%"}}})),N=e=>{let{isOpen:a,images:t,onClose:l,name:h,productId:j,brand:N}=e,S=_(),I=(0,s.A)(),R=t.length,M=(0,d.A)(I.breakpoints.up("md")),O=R-1,[P,k]=(0,n.useState)(0),[L,B]=(0,n.useState)(!1),F=e=>{B(!1),k(e)},D=()=>{let e=P+1;e{let e=P-1;e>=0&&F(e)},W=e=>{F(e)},U=e=>{let{brandKey:a,productKey:t}=e;return(0,i.jsxs)("div",{className:S.productLinkWrapper,children:[(0,i.jsx)("h4",{className:S.productNumberHeading,children:(0,i.jsx)(x.A,{...o.A.PRODUCT_NUMBER})}),(0,i.jsx)(E.N,{...T.aR.index(a,t),passHref:!0,children:(0,i.jsx)("a",{className:S.productLink,children:(0,i.jsx)(f.A,{value:t})})})]})};return(0,i.jsx)(y.A,{open:a,onClose:()=>{F(0),l(!a)},size:y.I.Large,renderTitle:()=>(0,i.jsx)(x.A,{...o.A.PRODUCT_IMAGES_VIEWING,values:{index:P+1,count:R}}),children:(0,i.jsxs)("div",{"data-testid":"pdp-images-modal",id:"pdp-images-modal",children:[(0,i.jsx)("div",{className:S.carouselWrapper,children:(0,i.jsx)(A(),{slideIndex:P,renderBottomCenterControls:null,disableAnimation:!0,onDragStart:()=>B(!1),renderCenterLeftControls:()=>(0,i.jsx)(i.Fragment,{children:P>0&&(0,i.jsx)(c.A,{className:(0,r.A)(S.nav,S.prevNav),onClick:w,"aria-label":"previous",children:(0,i.jsx)(p.A,{className:S.buttonIcon,color:"primary"})})}),renderCenterRightControls:()=>(0,i.jsx)(i.Fragment,{children:P{let{label:t,brandKey:n,productKey:l}=e;return(0,i.jsx)("div",{className:S.slide,children:(0,i.jsxs)("div",{className:S.mainContentWrapper,children:[L?(0,i.jsx)("div",{className:(0,r.A)(S.mobileLabelWrapper,S.labelText),children:t&&(0,i.jsx)(f.A,{value:t})}):e.videoUrl?(0,i.jsx)("div",{className:S.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:S.videoLink,name:h,brand:N||n,productId:j})}):(0,i.jsx)(b.A,{image:e}),t||n&&l?(0,i.jsxs)("div",{className:S.labelWrapper,children:[(0,i.jsx)("div",{className:S.desktopLabelWrapper,children:(0,i.jsxs)("div",{className:S.desktopLabel,children:[n&&l&&U({brandKey:n,productKey:l}),(0,i.jsx)("div",{className:(0,r.A)(S.labelText),children:(0,i.jsx)(f.A,{value:t})})]})}),(0,i.jsx)("div",{className:S.mobileLabelTrigger,children:(0,i.jsx)(u.A,{onClick:()=>B(!L),children:L?(0,i.jsx)(x.A,{...o.A.HIDE_CAPTION}):(0,i.jsx)(x.A,{...o.A.SHOW_CAPTION})})})]}):null]})},a)})})}),(0,i.jsx)("div",{className:S.footer,children:(0,i.jsx)(A(),{slideIndex:t.length>4?P:void 0,className:S.footerCarousel,withoutControls:!0,slidesToShow:5,style:M?{padding:"0 16px"}:{padding:"4px"},cellAlign:"left",children:t.map((e,a)=>(0,i.jsx)("div",{className:S.thumbnailWrapper,children:(0,i.jsxs)(c.A,{className:(0,r.A)(S.thumbnailButton,a===P&&S.active),onClick:()=>W(a),children:[(0,i.jsx)("div",{className:(0,r.A)(a!==P&&S.overlay)}),e.videoUrl&&(0,i.jsx)(g.A,{className:S.playButtonIcon}),(0,i.jsx)(v.A,{className:S.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),s=t(27651),o=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==s?void 0:null===(a=s[e])||void 0===a?void 0:a.displayName},[s]);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,o.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:s}=(0,i.j)(),o=(null==s?void 0:null===(t=s.language)||void 0===t?void 0:t.toLowerCase())||"",d=(null==s?void 0:null===(r=s.country)||void 0===r?void 0:r.toUpperCase())||"",{data:c}=(0,n.kN)({variables:{country:e||"",locale:"en"===o?"en_US":"".concat(o,"_").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:()=>E,Z:()=>T});var i=t(37876),n=t(14232),r=t(18847),l=t.n(r),s=t(92189),o=t(99220),d=t(97710),c=t(51722),u=t(32148),p=t(75933);let m=l()(()=>Promise.all([t.e(1994),t.e(6369)]).then(t.bind(t,66369)),{loadableGenerated:{webpack:()=>[66369]},loadableGenerated:{webpack:()=>[66369]}}),g=l()(()=>Promise.all([t.e(1994),t.e(3949)]).then(t.bind(t,3949)),{loadableGenerated:{webpack:()=>[3949]},loadableGenerated:{webpack:()=>[3949]}}),h=l()(()=>Promise.all([t.e(1994),t.e(432)]).then(t.bind(t,40432)),{loadableGenerated:{webpack:()=>[40432]},loadableGenerated:{webpack:()=>[40432]}}),A=l()(()=>Promise.all([t.e(1994),t.e(7368)]).then(t.bind(t,97368)),{loadableGenerated:{webpack:()=>[97368]},loadableGenerated:{webpack:()=>[97368]}}),x=l()(()=>Promise.all([t.e(1994),t.e(3193)]).then(t.bind(t,53193)),{loadableGenerated:{webpack:()=>[53193]},loadableGenerated:{webpack:()=>[53193]}}),y=l()(()=>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]}}),f=l()(()=>Promise.all([t.e(1994),t.e(8379)]).then(t.bind(t,48379)),{loadableGenerated:{webpack:()=>[48379]},loadableGenerated:{webpack:()=>[48379]}}),b=(0,o.n9)()(e=>({searchContainer:{[e.breakpoints.down("sm")]:{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 T=function(e){return e[e.grid=0]="grid",e[e.list=1]="list",e}({});let E=()=>{let{classes:e}=b(),[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)(A,{});break;case d.Xc.SiteContent:l=(0,i.jsx)(x,{});break;case d.Xc.BuildingBlocks:l=(0,i.jsx)(y,{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)(f,{});break;default:l=null}return(0,i.jsxs)(c.A,{className:e.searchContainer,children:[(0,i.jsx)(s.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:()=>x,O:()=>A});var i=t(37876),n=t(50437),r=t(15667),l=t(12197),s=t(11839),o=t(61261),d=t(45271),c=t(2760),u=t(49995),p=t(8733);let m=(0,o.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),A=e=>{let{children:a}=e,t=m();return(0,i.jsx)("div",{className:t.accordionsWrapper,children:a})},x=e=>{let{summary:a,summaryId:t,summaryAriaControls:n,details:o,defaultExpanded:d=!1,expandedCallback:A=()=>({}),overrideClasses:x={},unmountOnExit:y=!1,expanded:v,onKeyDown:f}=e,b=m(),T=(null==a?void 0:a.type)===p.A;return(0,i.jsxs)(g,{classes:{root:x.accordion},className:(0,u.A)({[b.accordionBorder]:T}),defaultExpanded:d,square:!0,onChange:(e,a)=>{A(a)},TransitionProps:{unmountOnExit:y},expanded:v,children:[T&&(0,i.jsx)(h,{classes:{root:x.summary},expandIcon:(0,i.jsx)(c.default,{color:"primary"}),id:t,"aria-controls":n,children:(0,i.jsx)(l.A,{variant:"h2",children:a})}),!T&&(0,i.jsx)(r.A,{classes:{root:x.summary},id:t,"aria-controls":n,onKeyDown:f,children:a}),(0,i.jsx)(s.A,{classes:{root:x.details},children:o})]})}},47378:(e,a,t)=>{t.d(a,{k:()=>c});var i=t(39324),n=t.n(i),r=t(71541),l=t(35877),s=t(40352),o=t(11148);let{publicRuntimeConfig:{featureFlags:d}}=n()();function c(){let e=(0,l.A)(),{country:a,language:t}=(0,o.rd)().query,i=(0,r.A)(e.breakpoints.down(s.Rp.MD),{defaultMatches:!0});return!!d.shoppingAi&&"US"===a&&"en"===t&&!i}},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 s(){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 s=function(){return e},e}let o={},d=(0,n.J1)(l()),c=(0,n.J1)(s(),d);function u(e){let a={...o,...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),s=t(36503),o=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:s,color:p="primary",label:m,onClick:g}=e;return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(d.N,{href:"".concat(o.wO.searchResults(n)).concat((0,c.$c)({term:n.toLowerCase(),focus:t,type:r})),passHref:!0,children:(0,i.jsx)(l.A,{className:s,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:s})})},g=e=>{let{message:a,searchFocusType:t,searchValue:n,productSearchType:r,classes:l,onClick:o}=e;return(0,i.jsxs)(s.A,{container:!0,item:!0,xs:12,children:[(0,i.jsx)(s.A,{item:!0,xs:12,sm:5,children:(0,i.jsx)(p,{message:a})}),(0,i.jsx)(s.A,{item:!0,xs:12,sm:7,children:(0,i.jsx)(m,{searchFocusType:t,searchValue:n,productSearchType:r,classes:l,onClick:o})})]})}},50485:(e,a,t)=>{t.d(a,{A:()=>e4});var i=t(37876),n=t(14232),r=t(7645),l=t(12197),s=t(64204),o=t(34415),d=t(5411),c=t(39069),u=t(66561),p=t(40597),m=t(61261),g=t(77742),h=t(8733),A=t(35967),x=t(4648),y=t(21347),v=t(10759),f=t(52413),b=t(88887),T=t(75878),E=t(45484),C=t(78206),j=t(10113),_=t(36382),N=t(28407),S=t(39324),I=t.n(S),R=t(75020),M=t(84119),O=t(97710),P=t(70210),k=t(19490),L=t(93591),B=t(58597),F=t(46588),D=t(11788),w=t(74985),W=t(34369),U=t(53471),H=t(28888),G=t(82897);function z(){let e=(0,H._)(["\n query GetQuotesCount {\n getQuotesCount {\n count\n }\n }\n"]);return z=function(){return e},e}let Y=(0,G.J1)(z());var q=t(28975),V=t(11631),K=t(11148),Q=t(71007);let $=(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,s=$(),c=(0,K.rd)(),[u,p]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),{material:A,product:x,quantity:y}=null!=t?t:{},[v]=(0,U.u7)({refetchQueries:[{query:Y}]}),f=async()=>{if((null==A?void 0:A.materialNumber)&&y){p(!0),(0,Q.jl)({event:"complete_quote_request",section:"pricing card",component:"modal",elementType:"button",elementText:"submit request"},{productId:A.product,productBrand:A.brand,productVariant:A.materialNumber});try{let{data:a}=await v({variables:{input:{materialNumber:null==A?void 0:A.materialNumber,quantity:y}}});if(a){var e;c.replace(K.q8.quoteDetail(null==a?void 0:null===(e=a.generateQuote)||void 0===e?void 0:e.orderNumber))}}catch(e){g(!0),p(!1),(0,Q.hO)({description:"we were unable to initiate your request",errorCategory:"other errors",productId:null==A?void 0:A.product,productVariant:null==A?void 0:A.materialNumber,productName:null==A?void 0:A.materialDescription,productBrand:null==A?void 0:A.brand})}}};return(0,i.jsx)(i.Fragment,{children:u?(0,i.jsx)(w.A,{open:!0,hideBackdrop:!0,children:(0,i.jsx)(V.A,{})}):(0,i.jsx)(q.Ay,{open:!0,onClose:(e,t)=>a(t),size:q.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)(q.Uh,{children:m?(0,i.jsxs)(r.A,{children:[(0,i.jsxs)(r.A,{display:"flex",children:[(0,i.jsx)(N.A,{className:s.errorIcon,color:"error"}),(0,i.jsxs)(r.A,{children:[(0,i.jsx)(l.A,{className:s.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:s.errorMessage,children:[(0,i.jsx)(h.A,{id:"PLEASE",defaultMessage:"Please"}),(0,i.jsx)(o.A,{className:s.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)(q.fW,{className:s.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:[A&&x&&y?(0,i.jsx)(W.A,{material:A,product:x,quantity:y}):null,(0,i.jsx)(q.fW,{className:s.actionContainer,children:(0,i.jsx)(d.A,{color:"primary",disabled:!y,size:"large",onClick:f,variant:"contained",children:(0,i.jsx)(h.A,{id:"SUBMIT_REQUEST",defaultMessage:"Submit Request"})})})]})})})})};var Z=t(42778);let J=e=>{let{quoteData:a,variant:t="outlined",size:n="large",fullWidth:r=!0,className:l,type:s="button",disabled:o,id:c}=e,{setGlobalModalComponent:u,clearGlobalModalComponent:p}=(0,Z.g)();return(0,i.jsx)(d.A,{id:c,className:l,color:"primary",disabled:o,fullWidth:r,onClick:()=>{var e,t,n;(0,Q.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:s,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),es=t(95349),eo=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,eo.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:s=!0,showTitle:o=!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:[o&&(0,i.jsx)(l.A,{variant:"h3",className:c.title,children:(0,i.jsx)(h.A,{id:"PRODUCT_INFORMATION",defaultMessage:"Product Information"})}),s&&[{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 eA=t(52710),ex=t(78272),ey=t(75647),ev=t(19409);let ef=e=>{let{quoteData:a,variant:t="outlined",size:n="large",fullWidth:r=!0,className:l,type:s="button",disabled:o,id:c}=e,{setGlobalModalComponent:u,clearGlobalModalComponent:p}=(0,Z.g)();return(0,i.jsx)(d.A,{id:c,className:l,color:"primary",disabled:o,fullWidth:r,size:n,type:s,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 eb=t(47801);(0,t(48573).H)(eb.Lr,"READY_TO_SHIP_NOTIFICATIONS","v1");var eT=t(30489),eE=t(64177);function eC(){let e=(0,H._)(["\n mutation ReadyToShipNotification($params: ReadyToShipNotificationInput!) {\n readyToShipNotification(params: $params) {\n brand\n }\n}\n "]);return eC=function(){return e},e}let ej={},e_=(0,G.J1)(eC());var eN=t(54366);let eS=(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)}})),eI=e=>{let{material:a,userEmail:t,productImageUrl:r,productNumber:s}=e,o=eS(),[c,u]=(0,n.useState)("ready"),[p,m]=(0,n.useState)("closed"),[g]=function(e){let a={...ej};return eE.n(e_,a)}(),A=(0,n.useRef)(null),x=(0,n.useRef)(null);(0,n.useEffect)(()=>{u("ready")},[a]);let y=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:s}}}),u("success"),m("closed"),null===(e=A.current)||void 0===e||e.focus()}catch(e){u("error"),m("error")}};return(0,i.jsxs)("div",{className:o.notifyReadyToShipContainer,"aria-live":"polite",children:["success"!==c?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{component:"h6",className:o.title,ref:x,children:(0,i.jsx)(h.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})}),(0,i.jsx)(l.A,{component:"p",className:o.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:o.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:A,tabIndex:-1,children:[(0,i.jsxs)(l.A,{component:"h6",className:o.title,children:[(0,i.jsx)(eT.A,{htmlColor:eN.w4.palette.success.main,fontSize:"small"}),(0,i.jsx)(h.A,{id:"CONFIRMED",defaultMessage:"Confirmed"})]}),(0,i.jsx)(l.A,{component:"p",className:o.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:o.callOut,children:t})}})})]}),(0,i.jsx)(eP,{requestStatus:c,modalType:p,handleClick:y,handleError:()=>{u("communicating"),setTimeout(()=>{y()},1e3)},handleClose:()=>{m("closed"),u("ready")},userEmail:t,productSKU:(null==a?void 0:a.materialNumber)?null==a?void 0:a.materialNumber:""})]})};var eR=t(90079),eM=t(86024);let eO=(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"}}}})),eP=e=>{let{requestStatus:a,modalType:t,handleClick:n,handleError:r,handleClose:s,userEmail:o,productSKU:c}=e,u=eO();return(0,i.jsxs)(i.Fragment,{children:["request"===t&&(0,i.jsx)(eM.A,{open:"ready"===a,onClose:()=>s(),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:o}),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:()=>s(),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)(eR.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)(eM.A,{role:"alertdialog","aria-labelledby":"alertHeading","aria-describedby":"alertText","aria-relevant":"all",open:"error"===t,onClose:()=>s(),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:()=>s(),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)(eR.A,{color:"inherit",size:20,thickness:5}),disabled:"communicating"===a,children:(0,i.jsx)(h.A,{id:"TRY_AGAIN",defaultMessage:"Try Again"})})]})]})})]})};var ek=t(84830),eL=t(76056),eB=t(21018),eF=t(58745),eD=t(61026),ew=t(4364),eW=t(67792),eU=t(16958);let eH=(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)}}})),eG=e=>{let{countryCode:a,isLoggedInUser:t=!1,hasDiscount:n=!1,isBBE:r=!1}=e,l=eH();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 ez=t(94295),eY=t(27651),eq=t(63752),eV=t(69485),eK=t(46129);let{publicRuntimeConfig:{featureFlags:eQ}}=I()(),e$=(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:s,requireLoginForPromo:o=!1}=e,d=e$(),c=(0,eq.mE)(),{userIsLoggedIn:u}=(0,D.iZ)();return(0,eV.L)(t,a),(0,i.jsx)(r.A,{mt:1,"data-testid":"promos-container",children:!u&&eQ.signInPromotion&&o?(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)(eK.N,{href:K.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)(A.Gr,{value:s/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 eZ=t(26841),eJ=t(14040),e0=t(88952);let e1=(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:{"& .MuiAccordion-root":{paddingLeft:e.spacing(4),paddingRight:e.spacing(4),"& .MuiSelect-root":{padding:e.spacing(1,7,1,2)}},backgroundColor:e.palette.background.grey,margin:e.spacing(-3,-4,-4)},accordion:{backgroundColor:e.palette.background.grey},summary:{padding:e.spacing(0),"& .MuiAccordionSummary-content.Mui-expanded":{margin:e.spacing(4,0)},"&.Mui-focused, &.Mui-focusVisible":{backgroundColor:"transparent"},"& .MuiFormControlLabel-root":{marginRight:e.spacing(0)}},details:{margin:e.spacing(0),padding:e.spacing(0),display:"inherit"},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:e2}}=I()(),e4=e=>{var a,t,m,S,I,w,W,U,H,G,z,Y,q,V,Q,$,X,Z,eo;let{isMultiCountryUser:ed,countryCode:ec,loading:eu,material:ep,product:em,error:eg,isPricingModal:ev=!1,showPriceDisclaimer:eb=!1,shouldShowReadyToShipNotification:eT=!1,focus:eE,sourceString:eC,promos:ej}=e,e_=e1(),{userSession:eN}=(0,et.j)(),eS=(0,ez.L)(eY.ID.countryCode),eR=(0,ez.L)(eY.TW.countryCode),eM=(0,D.iZ)(),{userIsLoggedIn:eO,currentUser:eP,isPublicOrderingCustomer:eH,isSubscriptionUser:eq,isQuoteRequester:eV,isB2BUser:eK,getSitePreference:eQ,isDarmstadtUser:e$,isPipelineUser:e4,isFTBUser:e7}=eM,e3=eQ(D.VD.HideAddToCartForPrepackItems),e6=(0,D.nL)(eM),{authorized:e8}=(0,ei.I)(ei.N.canAddToCart),e5=(0,_.g9)(),{formatMessage:e9}=(0,g.A)(),[ae,aa]=(0,n.useState)(!1),[at,ai]=(0,n.useState)(!1),[an,ar]=(0,n.useState)(!1),[al,as]=(0,n.useState)(!1),ao=e7||eK||e4,ad=(0,n.useMemo)(()=>{var e;return null==ej?void 0:null===(e=ej.skus)||void 0===e?void 0:e.find(e=>e.sku===(null==ep?void 0:ep.materialNumber))},[ej,ep]),{promoType:ac,code:au,discount:ap,terms:am,uuid:ag,hidePromoDetailsForAnonUser:ah}=null!==(Y=null==ad?void 0:ad.data)&&void 0!==Y?Y:{},aA=null!==(q=null==ep?void 0:ep.listPrice)&&void 0!==q?q:0,ax=null!==(V=null==ep?void 0:ep.price)&&void 0!==V?V:0,ay=aA>ax?(aA-ax)/aA*100:null,av=null===(a=em.forms)||void 0===a?void 0:a.find(e=>"bulk order"===e.type),af=null!==(Q=null===(t=em.forms)||void 0===t?void 0:t.filter(e=>"bulk order"!==e.type))&&void 0!==Q?Q:[],ab=(0,n.useMemo)(()=>av?af.slice(0,1):af.slice(0,2),[af,av]),[aT,aE]=(0,n.useState)(!1),aC=()=>{aE(!1)},aj=()=>{aE(!0),(0,R.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}})},a_=e2.subscriptions&&eq&&(null==ep?void 0:ep.shipsToday),aN=(null==ep?void 0:ep.catalogType)==="buildingblocks",aS=null==em?void 0:em.isMarketplace,[aI]=null!==($=null==ep?void 0:ep.availabilities)&&void 0!==$?$:[],{contactPhone:aR,contactEmail:aM}=null!==(X=null==aI?void 0:aI.contactInfo)&&void 0!==X?X:{},aO=null==ep?void 0:null===(m=ep.availabilities)||void 0===m?void 0:m.some(e=>null==e?void 0:e.displayInquireLink),aP=e8&&!e3&&!ed&&(!aS||aS&&!!(null==eP?void 0:null===(S=eP.metadata)||void 0===S?void 0:S.isMarketplaceCartEnabled)),ak=(null==aI?void 0:aI.key)==="INQUIRE_FOR_PRICE_AND_AVAILABILITY",aL=(null==eP?void 0:eP.__typename)==="GuestUser"&&!aP,aB=(null==eP?void 0:eP.__typename)==="LoggedInUser"&&!(null==eP?void 0:null===(I=eP.metadata)||void 0===I?void 0:I.guestShoppingType)&&!eH&&!eV,aF=ac===eJ.c5.BuySave&&(e2.pdpSMSMPromotion&&(null==am?void 0:am.qualifierType)===e0.Z.currency||e2.bmsmPromotion&&(null==am?void 0:am.qualifierType)===e0.Z.quantity),aD=(null===(w=eM.currentUser)||void 0===w?void 0:w.email)||"",aw=(null==em?void 0:null===(U=em.images)||void 0===U?void 0:null===(W=U[0])||void 0===W?void 0:W.smallUrl)||"",aW=em.productNumber||"",{isPurpleProduct:aU}=(0,ek.Q)(em.erp_type),aH=(0,ez.L)(eY.CN.countryCode),aG=aU&&aH&&!eO,az=Object.values(null!==(Z=null==ep?void 0:ep.additionalInfo)&&void 0!==Z?Z:{}).filter(e=>!!e&&"CartAdditionalInfo"!==e).length,aY=[aR,aM].filter(e=>!!e).join(" ".concat(e9({id:"OR",defaultMessage:"or"})," ")),aq=()=>{ai(e=>!e)},aV=e=>{let a=eU.A[e];return a?e9(a):e},[aK,aQ]=(0,n.useState)("FOUR_WEEKS"),{data:a$,error:aX}=(0,ew.rI)({skip:!a_,ssr:!1}),aZ=(null==a$?void 0:null===(H=a$.subscriptionFrequencies)||void 0===H?void 0:H.map(e=>({label:aV(e),value:e})))||[],aJ=async(e,a)=>{let t=null;al&&ac===eJ.c5.SubscribeSave&&au&&(t=au),(0,ee.p8)([{materialNumber:e.materialNumber,quantity:a,marketplaceOfferId:e.marketplaceOfferId,subscriptionFrequency:al?aK:null}],[e],ev?ea.k9.SearchResultPage:ea.k9.ProductDetailPage),await e5([{materialNumber:e.materialNumber,quantity:a,subscriptionFrequency:al?aK:null,promoCode:t,listPrice:aA}],void 0,void 0,aS),as(!1),aQ("FOUR_WEEKS")},a0=e=>{as(e),(0,R.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}})},a1=e=>{let a=aV(e);aQ(e),(0,R.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}})},a2=e=>{if("Enter"===e.key&&!ao){let a=e.target.closest("[id]");as((null==a?void 0:a.id)!=="one-time-order-header")}},a4=e=>{var a,t;let{validQty:d}=e,{values:c}=(0,C.j7)(),{quantity:u}=c;return(0,n.useEffect)(()=>{an||ac!==eJ.c5.SubscribeSave||as(!0),ar(!0)},[ac]),(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)(k.A,{promotional:null==ep?void 0:ep.promotionalMessage})})}):null,(null==ep?void 0:ep.isBlockedProduct)?(0,i.jsxs)(r.A,{className:e_.productBlockedLink,children:[(0,i.jsxs)(s.A,{onClick:()=>ai(!0),children:[(0,i.jsx)(F.A,{className:e_.lockIcon}),(0,i.jsx)(l.A,{className:e_.productBlockedText,children:(0,i.jsx)(h.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),at&&(0,i.jsx)(B.A,{open:at,onCancel:aq})]}):(0,i.jsx)(C.D0,{name:"quantity",component:T.A,disabled:e3,error:!d,filled:!0,max:null!==(a=null==ep?void 0:ep.availableQtyInStock)&&void 0!==a?a:9999,min:1}),aG?(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(eL.A,{fullWidth:!0,size:"large"})}):(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(y.Ay,{canAddToCart:aP,dirty:!0,fullWidth:!0,handleAddToCart:()=>aJ(ep,u),hideAddToCartForPrepackItems:e3,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:aS,gaType:ev?"search results page":"product detail page",promoCode:ac&&ac===eJ.c5.PercentOff?au:void 0}):null,e6&&(null==e2?void 0:e2.requestQuoteModal)&&!e3&&!aS&&!aN?(0,i.jsx)(r.A,{mt:2,children:eK?(0,i.jsx)(ef,{quoteData:{material:ep,product:em,quantity:u},disabled:!u}):(0,i.jsx)(J,{quoteData:{material:ep,product:em,quantity:u},disabled:!u})}):null,av&&!aS&&!e3&&!e$&&(0,i.jsx)(f.N,{href:"".concat(av.url,"?tfa_1=").concat(em.productNumber,"&tfa_2=").concat((0,ey.Ay)(null!==(t=null==em?void 0:em.name)&&void 0!==t?t:"")),passHref:!0,children:(0,i.jsx)(o.A,{className:e_.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,R.RH)({product:em,materialNumber:null==ep?void 0:ep.materialNumber,cta:av}),children:(0,i.jsx)(h.A,{id:"REQUEST_BULK_ORDER",defaultMessage:"Request a Bulk Order"})})}),!!ab.length&&!aS&&ab.map(e=>(0,i.jsx)(f.N,{href:e.url,passHref:!0,children:(0,i.jsx)(o.A,{className:e_.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,R.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)),eT&&(0,i.jsx)(eI,{material:ep,userEmail:aD,productImageUrl:aw,productNumber:aW})]})},a7=e=>{var a;let{validQty:t}=e,{values:n}=(0,C.j7)(),{quantity:o}=n;return(0,i.jsx)(i.Fragment,{children:e4?(0,i.jsx)("div",{className:e_.subscriptionText,children:(0,i.jsx)(h.A,{id:"PIPELINE_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for customers requiring permission to purchase."})}):eK?(0,i.jsx)("div",{className:e_.subscriptionText,children:(0,i.jsx)(h.A,{id:"B2B_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for eProcurement customers at this time."})}):e7?(0,i.jsx)("div",{className:e_.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:e_.productBlockedLink,children:[(0,i.jsxs)(s.A,{onClick:()=>ai(!0),children:[(0,i.jsx)(F.A,{className:e_.lockIcon}),(0,i.jsx)(l.A,{className:e_.productBlockedText,children:(0,i.jsx)(h.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),at&&(0,i.jsx)(B.A,{open:at,onCancel:aq})]}):(0,i.jsx)(C.D0,{name:"quantity",component:T.A,disabled:e3,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)(E.A,{value:aK,onChange:e=>a1(e.target.value),renderValue:e=>aV(e),displayEmpty:!0,size:"medium",children:aZ.map(e=>(0,E.h)(e.value,e.value,e.label))})}),(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(y.Ay,{canAddToCart:aP,dirty:!0,fullWidth:!0,handleAddToCart:()=>aJ(ep,o),hideAddToCartForPrepackItems:e3,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:o,marketplace:aS,subscriptionFrequency:aK,promoCode:ac===eJ.c5.SubscribeSave?au:void 0,gaType:ev?"search results page":"product detail page"}):null]})})},a3={...ep,discoMessage:e9({id:"DISCO_PROMO_MESSAGE",defaultMessage:"{promoDiscount} with code {promoCode}"},{promoDiscount:"-".concat(ap,"%"),promoCode:au})},a6=null!==(eo=null==ep?void 0:null===(G=ep.availabilities)||void 0===G?void 0:G.find(e=>(null==e?void 0:e.messageType)==="primary"))&&void 0!==eo?eo:null==ep?void 0:null===(z=ep.availabilities)||void 0===z?void 0:z[0],a8=null==a6?void 0:a6.key,a5=au&&ap&&ac!==eJ.c5.SubscribeSave&&ac===eJ.c5.PercentOff&&!al;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,s,o,m;let{values:g}=e,y=(0,ex.aA)(g.quantity,null==ep?void 0:ep.minOrderQuantity,eS||eR),v=g.quantity>0&&!y;return(0,i.jsxs)(i.Fragment,{children:[eu?(0,i.jsx)("div",{className:e_.loaderContainer,children:(0,i.jsx)("div",{className:(0,er.A)(e_.loader,{[e_.minHeight]:ev})})}):(0,i.jsxs)("div",{className:(0,er.A)(e_.buyBoxContainer,{[e_.minHeight]:ev,[e_.minHeightError]:ev&&eg}),children:[eg?(0,i.jsx)(eA.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)(M.A,{error:eg,productNumber:null==em?void 0:em.productNumber,isCenterJustified:!1,isMarketplace:aS,sellerName:(null==em?void 0:em.displaySellerName)||(0,O.t1)(null==em?void 0:em.attributes),marketplaceSellerId:null!==(n=null==em?void 0:em.marketplaceSellerId)&&void 0!==n?n:"",marketplaceOfferId:null!==(s=null==em?void 0:em.marketplaceOfferId)&&void 0!==s?s:""})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A,{component:"h2",variant:"h2",className:e_.materialNumber,children:[ep?(0,i.jsx)(el.A,{materialNumber:ep.materialNumber}):null,az?(0,i.jsx)(eh,{material:ep}):null]}),aN&&(null==ep?void 0:ep.vendorSKU)?(0,i.jsxs)(l.A,{className:e_.vendorSku,children:[(0,i.jsx)(h.A,{id:"VENDOR_SKU",defaultMessage:"Vendor SKU"}),": ",null==ep?void 0:ep.vendorSKU]}):null,ak?(0,i.jsx)(r.A,{mt:4,children:(0,i.jsxs)(l.A,{variant:"body2",children:[(0,i.jsx)(N.A,{className:e_.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:e_.phone,children:aR}),aR&&aM&&(0,i.jsx)(l.A,{component:"span",className:e_.or,children:(0,i.jsx)(h.A,{id:"OR",defaultMessage:"or"})}),aM&&(0,i.jsx)("div",{className:e_.email,children:(0,i.jsx)("a",{href:"mailto:".concat(aM),children:aM})})]})}})]})}):(0,i.jsxs)(i.Fragment,{children:[aO?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{className:e_.inquireLink,onClick:()=>aa(!0),children:(0,i.jsx)(h.A,{id:"INQUIRE",defaultMessage:"Inquire"})}),ae&&(0,i.jsx)(x.A,{open:ae,setModalOpen:aa,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:aY}})})})]}):(0,i.jsxs)(i.Fragment,{children:[(null==ep?void 0:ep.hidePriceMessageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(es.A,{msgKey:null==ep?void 0:ep.hidePriceMessageKey})}):(0,i.jsx)(l.A,{className:e_.price,component:"h3",variant:"h3",children:(0,i.jsx)(A.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:e_.listPriceLabel,children:(0,i.jsx)(h.A,{id:"LIST_PRICE",defaultMessage:"List Price"})}),(0,i.jsx)(l.A,{component:"span",className:e_.listPrice,children:(0,i.jsx)(A.Gr,{style:"currency",currencyDisplay:"symbol",currency:null==ep?void 0:ep.currency,value:null!=aA?aA:0})}),ay>=5&&(0,i.jsx)(l.A,{component:"span",className:e_.saveLabel,children:(0,i.jsx)(h.A,{id:"SAVE_DISCOUNT_PRICE",defaultMessage:"Save {discount}%",values:{discount:Math.round(ay)}})})]})]}),eb&&(0,i.jsx)(eG,{countryCode:eN.country,isLoggedInUser:eO,hasDiscount:null!==ay,isBBE:aN}),aF?(0,i.jsx)(eZ.A,{className:e_.badgeWrapper,showTooltip:!0,discount:ap,promoTerms:am,promoId:ag||""}):(0,i.jsx)(eA.M,{source:"pdp",brand:null==ep?void 0:ep.brand,item:null==ep?void 0:ep.materialNumber,pricing:a3,children:a5&&(0,i.jsx)(eX,{availability:a6,gaMessageId:a8,promoCode:au,promoDiscount:ap,requireLoginForPromo:ah})}),(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?a5?(0,i.jsx)(b.A,{material:ep,canAddToCart:aP,countryCode:ec,gaDetailsClick:()=>(0,R.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"}):(0,i.jsx)(eA.M,{source:ev?eC||"srp - ".concat(eE):"pdp",brand:ep.brand,item:ep.materialNumber,pricing:ep,waitUntilVisible:!0,children:(0,i.jsx)(b.A,{material:ep,canAddToCart:aP,countryCode:ec,gaDetailsClick:()=>(0,R.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:e_.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)(e_.labelFontSize,{[e_.minimumQuantityError]:!v}),children:[(0,i.jsx)(h.A,{id:"MINIMUM_ORDER_QUANTITY",defaultMessage:"Minimum Order Quantity: "}),ep.minOrderQuantity]}):null,(null==aI?void 0:null===(t=aI.supplementaryMessage)||void 0===t?void 0:t.messageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(L.A,{supplementary:null==aI?void 0:aI.supplementaryMessage,productName:em.name})}):null,(null==ep?void 0:ep.isPBAvailable)&&(0,i.jsx)(r.A,{mt:2,children:(0,i.jsx)(P.A,{materialNumber:null!==(o=null==ep?void 0:ep.materialNumber)&&void 0!==o?o:"",brand:null==ep?void 0:ep.brand,productName:null!==(m=null==ep?void 0:ep.product)&&void 0!==m?m:"",erp_type:null==em?void 0:em.erp_type})})]}),(0,i.jsx)(r.A,{mb:3,children:(0,i.jsx)(c.A,{})}),a_?(0,i.jsxs)(r.A,{className:e_.subscriptionContainer,children:[(0,i.jsx)(eB.A,{details:(0,i.jsx)(a4,{validQty:v}),expanded:!al,onKeyDown:a2,summary:(0,i.jsx)(eF.A,{label:"One Time Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>a0(!1),checked:!al}),summaryAriaControls:"one-time-order-content",summaryId:"one-time-order-header",overrideClasses:{accordion:e_.accordion,summary:e_.summary,details:e_.details}}),(0,i.jsx)(eB.A,{details:(0,i.jsx)(a7,{validQty:v}),expanded:!!e7||!!eK||!!e4||al,onKeyDown:a2,summary:!aX&&(null==aZ?void 0:aZ.length)?(0,i.jsxs)(r.A,{className:e_.summaryContainer,children:[(0,i.jsxs)(r.A,{className:(0,er.A)(e_.summaryLabel),children:[(0,i.jsx)(eF.A,{label:"Subscription Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>a0(!0),checked:al,disabled:ao}),(0,i.jsx)(eD.A,{})]}),ac===eJ.c5.SubscribeSave&&(0,i.jsx)("div",{children:(0,i.jsx)(l.A,{className:e_.subsSaveMessage,children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_SAVE_MESSAGE",defaultMessage:"Save {discount}% off list price",values:{discount:ap}})})}),(0,i.jsx)(u.A,{onClickAway:aC,children:(0,i.jsx)(p.Ay,{arrow:!0,classes:{tooltip:e_.tooltip,arrow:e_.arrow},onClose:aC,open:aT,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{className:e_.tooltipHeading,variant:"h3",children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_ORDER_HEADING",defaultMessage:"Subscription Orders"})}),ac&&ac===eJ.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:ap}})}):(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:e_.infoLink,onClick:aj,children:(0,i.jsx)(h.A,{id:"LEARN_MORE",defaultMessage:"Learn More"})})})})]}):(0,i.jsxs)("span",{className:e_.subscriptionError,children:[(0,i.jsx)(N.A,{className:e_.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)(e_.accordion,e_.accordionBackground),summary:e_.summary,details:e_.details}})]}):null,a_||ed?null:(0,i.jsx)(i.Fragment,{children:aL||aB?(0,i.jsx)(h.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(f.N,{...K.mK.index({path:"/collections/offices",language:eN.language,country:eN.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)(a4,{validQty:v})})]})]}),ev?(0,i.jsx)(r.A,{mt:5,className:(0,er.A)({[e_.pricingModal]:ev}),children:ep?(0,i.jsx)(j.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:g.quantity,isLinkButton:!0,classes:{linkStyle:e_.linkStyle}}):null}):null]}),(0,i.jsx)(r.A,{mt:5,className:(0,er.A)({[e_.hideLink]:ev}),children:ep?(0,i.jsx)(j.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:g.quantity,isLinkButton:!0,classes:{linkStyle:e_.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:()=>T,yU:()=>b});var i=t(37876),n=t(14232),r=t(61261),l=t(34415),s=t(5411),o=t(39069),d=t(52413),c=t(79399),u=t(69485),p=t(49995),m=t(64673),g=t(88700),h=t(17685),A=t(8288);let x=(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"}})),y=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}},f=e=>e.htmlLinks.map(e=>{let a=e.getAttribute("href");return{href:"".concat(a.startsWith("/")?"":"/").concat(a),text:e.textContent.trim()}}).filter(Boolean);var b=function(e){return e.PDP="pdp",e.SRP="srp",e}({});let T=e=>{let{brandKey:a,productNumber:t,paMessage:r,leftAlign:b}=e;(0,u.L)("PA_MESSAGE");let T=x(),[E,C]=(0,n.useState)(!1),{userSession:j}=(0,h.j)(),_={htmlLinks:[],htmlText:[]};return E&&(_=v(y(r))),(0,n.useEffect)(()=>{C(!0)},[]),(0,i.jsx)(i.Fragment,{children:E?(0,i.jsx)("div",{className:T.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)(T.paMessageContainer,{[T.leftAlign]:b}),children:[!b&&(0,i.jsx)(o.A,{light:!0}),(e=>{let n=f(e),r=e.htmlText[0];if((null==r?void 0:r.localName)==="b"){var o;return(0,i.jsxs)("div",{className:T.contentWrapper,children:[(0,i.jsxs)("b",{children:[r.textContent," "]}),(0,i.jsx)("span",{children:null===(o=r.nextSibling)||void 0===o?void 0:o.textContent}),(0,i.jsx)("span",{children:(0,i.jsx)(d.N,{href:n[0].href,passHref:!0,children:(0,i.jsx)(l.A,{className:T.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:T.contentWrapperWithButtons,children:[(0,i.jsx)("span",{children:r.textContent}),(0,i.jsx)("div",{className:T.buttonContainer,children:n.map(e=>(0,i.jsx)(s.A,{"data-testid":"pa-message-button-".concat(a,"-").concat(t),variant:"contained",color:"primary",href:e.href,className:T.button,onClick:()=>{if("/lab-water"===e.href||e.href.includes("/campaigns/milli-q-iq")){let a=(0,A.xS)(j,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})(_)]})}):null})}},53295:(e,a,t)=>{t.d(a,{A:()=>et});var i=t(37876),n=t(14232),r=t(61261),l=t(35877),s=t(34415),o=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,[A]=null!==(t=null==r?void 0:r.images)&&void 0!==t?t:[],x=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:A?(0,i.jsx)(u.A,{alt:null==r?void 0:r.productNumber,className:l.image,sizes:"60px",src:(null==A?void 0:A.smallUrl)||(null==A?void 0:A.mediumUrl)||(null==A?void 0:A.largeUrl),urls:[null==A?void 0:A.smallUrl,null==A?void 0:A.mediumUrl,null==A?void 0:A.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)(o.N,{...d.aR.index(((null==r?void 0:r.brand.key)||(null==r?void 0:r.brand.name)||"").replace(" ","").toLowerCase(),null!=x?x:"",(null==r?void 0:r.type)===p.iC.ThirdPartyProvider?{context:"bbe"}:{}),passHref:!0,children:(0,i.jsx)(s.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 A=t(28975),x=t(50485),y=t(71541),v=t(36503),f=t(57927),b=t(5213),T=t(12197),E=t(7645),C=t(22071),j=t(8733),_=t(66313),N=t(2184),S=t(17685),I=t(27651),R=t(42489),M=t(11788),O=t(71662),P=t(97710),k=t(46129);let L=(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 B=t(61622),F=t(40002);let D=(0,r.A)(e=>({link:{cursor:"pointer",margin:e.spacing(0,1)},message:{marginLeft:e.spacing(1)}})),w=e=>{var a;let{errorKey:t,product:n,replacementProducts:r,onClose:l}=e,o=D(),c=(0,d.rd)(),u=(null==n?void 0:n.displaySellerName)||(0,P.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,B.j)(r);return(0,i.jsx)(A.Ay,{size:A.Ih.Small,open:!0,onClose:l,renderTitle:()=>{var e,a;return(null===(e=L[t])||void 0===e?void 0:e.title)?(0,i.jsx)(T.A,{variant:"h2",children:(0,i.jsx)(j.A,{id:t,defaultMessage:"{title}",values:{title:null===(a=L[t])||void 0===a?void 0:a.title}})}):null},children:(0,i.jsxs)(A.Uh,{children:[(0,i.jsx)(j.A,{...L[t],values:{productNumber:null==n?void 0:n.productNumber}}),(0,i.jsx)(j.A,{id:t,defaultMessage:"{additionalMessage}",values:{additionalMessage:(()=>{if(null==n?void 0:n.isMarketplace){var e,a;return(0,i.jsx)(k.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)(j.A,{...L.CONTACT_SELLER_WITH_NAME,values:{sellerName:u}})})}return(null==r?void 0:r.length)?(0,i.jsx)(T.A,{className:o.message,variant:"inherit",children:(0,i.jsx)(j.A,{...L.REPLACEMENT_PRODUCT_MESSAGE})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{className:o.link,href:"/support/customer-support",children:(0,i.jsx)(j.A,{...L.CONTACT_TECHNICAL_SERVICE})}),(0,i.jsx)(j.A,{...L.FOR_ASSISTANCE})]})})()}}),m.length?(0,i.jsx)(O.A,{type:F.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),H=t(82897),G=t(54431);function z(){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 z=function(){return e},e}function Y(){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 Y=function(){return e},e}let q={},V=(0,H.J1)(z()),K=(0,H.J1)(Y(),V);var Q=t(82250),$=t(32588),X=t(52263),Z=t(49995),J=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,s,o,d,c,u,m,g,O,k,L,B,F,D,U,H,z;let{onClose:Y,product:V,focus:et,sourceString:ei}=e,en=ea(),er=(0,l.A)(),el=(0,y.A)(er.breakpoints.down("xs")),{setGlobalModalComponent:es,clearGlobalModalComponent:eo}=(0,W.g)(),{userSession:{country:ed}}=(0,S.j)(),[ec,eu]=(0,n.useState)(ed),[ep,em]=(0,n.useState)(null),eg=window.navigator.userAgent,eh=(0,R.A)(eg),{isMultiCountryUser:eA,isDTAQZuCustomer:ex,isBlueErpIntegrationEnabled:ey,getSitePreference:ev,currentUser:ef}=(0,M.iZ)(),eb=null==V?void 0:V.isMarketplace,eT=null==V?void 0:V.erp_type,eE=ey&&(null==V?void 0:V.erp_type)&&(null==V?void 0:null===(a=V.erp_type)||void 0===a?void 0:a.length)>0,eC=null==V?void 0:null===(t=V.productNumber)||void 0===t?void 0:t.startsWith("CB_"),ej=ev(M.VD.CatalogFilter),[e_,{data:eN,loading:eS,error:eI}]=(0,_.Gb)({fetchPolicy:ex?"no-cache":"cache-first"}),[eR,{data:eM,loading:eO,error:eP}]=(0,N.Fo)(),{data:ek,loading:eL,error:eB}=function(e){let a={...q,...e};return G.IT(K,a)}({variables:{brandKey:null!==(m=null==V?void 0:null===(r=V.brand)||void 0===r?void 0:r.key)&&void 0!==m?m:"",productKey:null!==(g=null==V?void 0:V.productKey)&&void 0!==g?g:"",catalogType:null==V?void 0:V.catalogId,orgId:ej,isMarketplaceCatalogEnabled:null==ef?void 0:null===(s=ef.metadata)||void 0===s?void 0:s.isMarketplaceCatalogEnabled},fetchPolicy:ex?"no-cache":"cache-first"}),eF=eA?null==eM?void 0:null===(o=eM.getPricingForMultiCountryProducts)||void 0===o?void 0:o.find(e=>(null==e?void 0:e.country)===ec):null==eN?void 0:eN.getPricingForProduct,{materialPricing:eD,discontinuedPricingInfo:ew}=null!=eF?eF:{},eW={...V,forms:null==ek?void 0:null===(d=ek.getProductDetail)||void 0===d?void 0:d.forms,type:null==ep?void 0:ep.type},eU=eS||eO||eL,eH=eI||eP||eB,eG=eH?(0,Q.Mw)(eH).errors[0]:void 0,ez=(null==ew?void 0:ew.errorMsg)||(null==eG?void 0:eG.code),eY=(0,n.useCallback)(e=>{var a;return null==I?void 0:null===(a=I[e])||void 0===a?void 0:a.displayName},[I]),eq=()=>{var e,a;let t={variables:{productNumber:null!==(a=null==V?void 0:V.productNumber)&&void 0!==a?a:"",materialIds:null==V?void 0:V.materialIds,brand:null==V?void 0:null===(e=V.brand)||void 0===e?void 0:e.key,quantity:1,catalogType:eb?p.Mh.Marketplace:(0,P.vN)(null==V?void 0:V.catalogId),orgId:ej,checkForPb:!0,displaySDS:eC,dealerId:"",checkBuyNow:!0,productKey:null==V?void 0:V.productKey,cachedPriceOnly:eh,...eE&&{erpType:eT}}},i={variables:{...t.variables,cachedPriceOnly:eh}};eA?eR(t):e_(i)};return(0,n.useEffect)(()=>{(null==V?void 0:V.productNumber)&&!(null==V?void 0:V.paMessage)&&eq()},[eA,null==V?void 0:V.productNumber,null==V?void 0:V.paMessage]),(0,n.useEffect)(()=>{var e;if(null==eM?void 0:null===(e=eM.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let[e]=null==eM?void 0:eM.getPricingForMultiCountryProducts;(null==e?void 0:e.country)&&eu(null==e?void 0:e.country)}},[eM]),(0,n.useEffect)(()=>{if(null==eD?void 0:eD.length){let[e]=eD;em(e)}ez&&ew&&es((0,i.jsx)(w,{errorKey:ez,product:V,replacementProducts:null==ew?void 0:ew.replacementProducts,onClose:eo}))},[eD,ez]),(0,i.jsx)(A.Ay,{open:!0,onClose:()=>{var e;Y(),(0,ee.Sm)({action:"close p&a",section:"modal p&a",component:"modal",elementType:"icon",material:{materialDescription:V.name,brand:null===(e=V.brand)||void 0===e?void 0:e.key,product:V.productNumber}})},size:A.Ih.XLarge,children:(0,i.jsxs)(v.A,{container:!0,children:[(0,i.jsxs)(v.A,{item:!0,xs:12,md:(null==V?void 0:V.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==V?void 0:V.paMessage)?1:2}),(0,i.jsxs)(v.A,{item:!0,xs:12,md:10,className:(0,Z.A)(en.chipContainer,{[en.paMessage]:null==V?void 0:V.paMessage}),children:[el?null:(0,i.jsx)($.A,{mb:4,mr:4}),eA&&eM?(0,i.jsx)(f.A,{value:ec,className:en.tabs,onChange:(e,a)=>{eu(a)},children:null==eM?void 0:null===(c=eM.getPricingForMultiCountryProducts)||void 0===c?void 0:c.map((e,a)=>(0,i.jsx)(b.A,{className:en.tab,label:eY(null==e?void 0:e.country),value:null==e?void 0:e.country},a))}):null,(null==V?void 0:V.paMessage)?(0,i.jsx)(X.Ay,{brandKey:null!==(O=null==V?void 0:null===(u=V.brand)||void 0===u?void 0:u.key)&&void 0!==O?O:"",productNumber:null!==(k=null==V?void 0:V.productNumber)&&void 0!==k?k:"",paMessage:null!==(L=null==V?void 0:V.paMessage)&&void 0!==L?L:"",leftAlign:!0}):(0,i.jsxs)(i.Fragment,{children:[eH?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(T.A,{className:en.selectSize,variant:"h3",children:(0,i.jsx)(j.A,{id:"SELECT_A_SIZE",defaultMessage:"Select a Size"})})}),(0,i.jsx)(C.A,{items:null!==(B=null==eD?void 0:eD.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!==B?B:[],selectedChip:null!==(F=null==ep?void 0:ep.materialNumber)&&void 0!==F?F:"",loading:eU,loadCount:5,onSelect:e=>{let a=null==eD?void 0:eD.find(a=>a.materialNumber===e);em(null!=a?a:null)}})]}),eb?(0,i.jsx)(E.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(J.A,{isMarketplace:eb,marketplaceSellerId:null!==(D=null==V?void 0:V.marketplaceSellerId)&&void 0!==D?D:"",marketplaceOfferId:null!==(U=null==V?void 0:V.marketplaceOfferId)&&void 0!==U?U:"",productAttributes:null!==(H=null==V?void 0:V.attributes)&&void 0!==H?H:[],displaySellerName:null!==(z=null==V?void 0:V.displaySellerName)&&void 0!==z?z:"",hideMarketPlaceContactInfo:!0})}):null]})]})]}),(null==V?void 0:V.paMessage)?null:(0,i.jsx)(v.A,{item:!0,xs:12,md:4,children:(0,i.jsx)(x.A,{countryCode:ec,error:eH,isMultiCountryUser:eA,isPricingModal:!0,loading:eU,material:ep,product:eW,focus:et,sourceString:ei})})]})})}},53590:(e,a,t)=>{t.d(a,{A:()=>e9});var i=t(37876),n=t(14232),r=t(47801),l=t(71541),s=t(92189),o=t(36503),d=t(12197),c=t(37929),u=t(11148),p=t(77660),m=t(97710),g=t(5634),h=t(69139),A=t(77742),x=t(8733),y=t(99220),v=t(54753),f=t(33086),b=t(84768),T=t(64272),E=t(32148),C=t(61206),j=t(17215),_=t(72522);let N=(0,y.n9)()(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("md")]:{display:"none"}},chipsContainer:{display:"flex",flexWrap:"wrap",margin:e.spacing(-1)},chipWrapper:{padding:e.spacing(1),"& sup, sub":{verticalAlign:"baseline",position:"relative",top:"-0.4em"},"& sub":{top:"0.2em"}},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)}})),S=e=>{let{facetLabel:a,facetKey:t,facets:r}=e,l=(0,u.rd)(),{classes:s}=N(),o=(0,A.A)(),d=(0,m.h2)({focus:l.query.focus}),c=(0,n.useCallback)((e,a)=>{if(!(null==a?void 0:a.length)&&d.focus===m.Xc.Chromatograms&&"FACET_WEB_TITERTEST_APP"===e.toUpperCase())return o.formatMessage(v.A[e.toUpperCase()]);if(!a)return"";let t=a.find(a=>a.key===e);return(null==t?void 0:t.key)&&v.A[t.key.toUpperCase()]?o.formatMessage(v.A[t.key.toUpperCase()]):(0,_.Q)(null==t?void 0:t.key)},[o])(t,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.A,{className:s.facetMarkup,value:"".concat(c,":")}),(0,i.jsx)(C.A,{value:a})]})},I=(e,a)=>{a.handleSelectedFacetChange({key:e.key,options:[e.label],action:E.FacetChangeAction.Remove});let t="".concat(e.key,":").concat(e.label),i=(0,b.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,T.BI)({payload:i})},R=e=>{let{facets:a,isStructureSearch:t}=e,[n,r,l]=(0,E.useSearchQuery)(),s=(0,h.A)(a,"options"),o=(0,h.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,u.rd)(),{classes:m,cx:g}=N(),y=n.term&&!t&&!(0,f._)(p);return 0!==o.length||y?(0,i.jsxs)("div",{className:m.facetsMenuWrapper,children:[(0,i.jsx)(d.A,{variant:"caption",className:m.facetsMenuLabel,children:(0,i.jsx)(x.A,{id:"APPLIED_FILTERS_HEADING",defaultMessage:"Applied Filters:"})}),(0,i.jsxs)("div",{className:g(m.hideAtMobile,m.chipsContainer),children:[y&&(0,i.jsx)("div",{className:m.keywordChipWrapper,children:(0,i.jsx)(j.A,{ariaLabel:"".concat(c(v.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(n.term," ").concat(c(v.A.SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH)),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:m.searchTerm,children:[c(v.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)("div",{className:m.chipWrapper,children:(0,i.jsx)(j.A,{ariaLabel:"".concat(c(v.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(e.label," ").concat(c(v.A.SELECTION_CHIP_REMOVE_FILTER_2)),onDelete:()=>I(e,l),label:(0,i.jsx)(S,{facetLabel:e.label,facetKey:e.key,facets:a})})},"".concat(e.key,":").concat(e.label)))]})]}):null};var M=t(77328),O=t.n(M),P=t(89099),k=t(63752),L=t(43564),B=t(39324);let{publicRuntimeConfig:{canonicalUrlPrefix:F}}=t.n(B)()(),D=e=>{let{metadata:a}=e,t=(0,A.A)(),{asPath:n,query:{page:r,term:l,focus:s,type:o,country:d,language:c}}=(0,P.useRouter)(),p=(0,k.mE)(),g=s===m.Xc.StructureSearch,h=l&&!g?"".concat(l.charAt(0).toUpperCase()).concat(l.slice(1)):t.formatMessage({id:"STRUCTURE_SEARCH",defaultMessage:"Structure Search"}),x="".concat(h," | Sigma-Aldrich"),y={[m.mI.CasNumber]:"CAS",[m.mI.EgecNumber]:"EC/EG",[m.mI.MdlNumber]:"MDL"};o&&y[o]&&(x="".concat(y[o]," ").concat(x));let v="page=".concat(r),f=n.indexOf(v),b=n.slice(0,f),T=n.slice(f+v.length,n.length),E="".concat(b,"page=").concat(Number(r)+1).concat(T),C="".concat(b,"page=").concat(Number(r)-1).concat(T),j=g?"Structure search results":"Find ".concat(l," and related products for scientific research at ").concat(p),_={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Search",item:"".concat(F,"/").concat(d,"/").concat(c).concat(u.wO.index())},{"@type":"ListItem",position:2,name:"".concat(l),item:"".concat(F).concat(n)}]};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(O(),{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:E}):null,Number(r)>1?(0,i.jsx)("link",{rel:"prev",href:C}):null]}),(0,i.jsx)(L.L,{description:j,keywords:[l||"","search","sigma","aldrich","millipore",p],canonicalParamAllowed:e=>["term","focus","page","perpage","sort","type"].includes(e),schema:_})]})};var w=t(19521),W=t(36331),U=t(70813),H=t(34669),G=t(17685),z=t(24322),Y=t(39069),q=t(7645),V=t(35877);let K=()=>{let e=(0,V.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)(Y.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 Q=t(9545);let $=(0,y.n9)()(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)}})),X=e=>{let{loading:a,error:t}=e,{formatMessage:n,formatDisplayName:r}=(0,A.A)(),{classes:l}=$(),{userSession:s}=(0,G.j)(),[o,,d]=(0,E.useSearchQuery)(),c="global";return a?(0,i.jsx)(K,{}):t?null:(0,i.jsx)("div",{className:l.availableForSale,children:(0,i.jsx)(Q.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)(W.A,{"aria-label":"region-selection",onChange:e=>{d.handleAvailableForSaleChange(e.target.value)},children:[(0,i.jsx)(U.A,{"aria-label":"region",value:s.country,control:(0,i.jsx)(z.A,{className:l.facetRadio}),classes:{label:l.radio},checked:!o.region||o.region===s.country,label:r(s.country,{type:"region"})},s.country),(0,i.jsx)(U.A,{"aria-label":"region",value:c,control:(0,i.jsx)(z.A,{className:l.facetRadio}),classes:{label:l.radio},checked:o.region===c,label:n(H.A.GLOBALLY)},c)]})})})})})};var Z=t(64204);let J=(0,y.n9)()(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"}})),ee=e=>{let{orgId:a}=e,{classes:t}=J(),{formatMessage:r}=(0,A.A)(),[l,,s]=(0,E.useSearchQuery)(),o=(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,b.g)({action:"change search type",component:"left rail",filter_category:"search within",filter_name:m.sO[e],element_type:"radio button",element_text:m.sO[e]});(0,T.BI)({payload:a}),s.handleFocusChange(e)};return(0,i.jsx)("div",{className:t.facetFocus,children:(0,i.jsx)(Q.A,{defaultCollapse:!0,facetKey:"FACET_SEARCH_WITHIN",children:(0,i.jsx)("div",{className:t.formBody,children:(0,i.jsxs)(W.A,{"aria-label":"focus-selection",onChange:e=>c(e.target.value),children:[d(m.Xc.Products)||d(m.Xc.B2B)?a?(0,i.jsx)(U.A,{disabled:!0,value:m.Xc.Products,control:(0,i.jsx)(z.A,{className:t.facetRadio}),className:t.facet,checked:l.focus===m.Xc.B2B,label:"".concat(o," ").concat(r({id:"PRODUCTS",defaultMessage:"Products"}))}):(0,i.jsx)(U.A,{value:m.Xc.Products,control:(0,i.jsx)(z.A,{className:t.facetRadio}),"aria-current":l.focus===m.Xc.Products?"page":void 0,className:t.facet,checked:l.focus===m.Xc.Products,label:r({id:"PRODUCTS",defaultMessage:"Products"}),"data-testid":"srp-nav-products"}):null,d(m.Xc.TechnicalDocuments)&&(0,i.jsx)(U.A,{value:m.Xc.TechnicalDocuments,control:(0,i.jsx)(z.A,{className:t.facetRadio}),"aria-current":l.focus===m.Xc.TechnicalDocuments?"page":void 0,className:t.facet,checked:l.focus===m.Xc.TechnicalDocuments,label:r({id:"TECHNICAL_DOCUMENTS",defaultMessage:"Technical Documents"}),"data-testid":"srp-nav-techdocs"}),d(m.Xc.SiteContent)&&(0,i.jsx)(U.A,{value:m.Xc.SiteContent,control:(0,i.jsx)(z.A,{className:t.facetRadio}),className:t.facet,checked:l.focus===m.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"})})]})})})})};var ea=t(5213),et=t(57927),ei=t(52413);let en=(0,y.n9)()(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}})),er=(e,a)=>{let t=(0,m.$c)({term:e,focus:a});return"?"===t[0]&&(t=t.slice(1)),{href:{pathname:"/search/[searchTerm]",query:t},as:{pathname:"".concat(u.wO.searchResults(e)),query:t}}},el=e=>{let{focus:a,id:t,children:n}=e,{classes:r,cx:l}=en(),[s]=(0,E.useSearchQuery)(),o=l(r.link,s.focus===a&&r.active),d=s.focus===a?"page":void 0;return(0,i.jsx)(ei.N,{...er(s.term,a),children:(0,i.jsx)("a",{className:o,"aria-current":d,"data-testid":t,id:t,role:"tab",children:n})})};function es(e,a){return class extends n.Component{render(){return(0,i.jsx)(el,{focus:e,id:a,children:this.props.children})}}}let eo=(0,y.n9)()(e=>({tabsRoot:{minHeight:30,borderBottom:"1px solid ".concat(e.palette.grey[400])},indicator:{backgroundColor:e.palette.text.primary}})),ed=e=>{let{orgId:a}=e,{classes:t}=eo(),{formatMessage:r}=(0,A.A)(),l=(0,P.useRouter)(),s=(0,m.h2)({focus:l.query.focus,term:l.query.term}),o=(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=>!!s.term&&!a||s.focus===e;return(0,i.jsx)("nav",{"aria-label":"Main Navigation",children:(0,i.jsxs)(et.A,{variant:"scrollable",scrollButtons:"off",value:s.focus,classes:{root:t.tabsRoot,indicator:t.indicator},children:[d(m.Xc.Products)||d(m.Xc.B2B)?a?(0,i.jsx)(ea.A,{component:"span",label:"".concat(o," ").concat(r({id:"PRODUCTS",defaultMessage:"Products"}))}):(0,i.jsx)(ea.A,{value:m.Xc.Products,label:r({id:"PRODUCTS",defaultMessage:"Products"}),component:es(m.Xc.Products,"srp-nav-products")}):null,d(m.Xc.TechnicalDocuments)&&(0,i.jsx)(ea.A,{value:m.Xc.TechnicalDocuments,label:r({id:"TECHNICAL_DOCUMENTS",defaultMessage:"Technical Documents"}),component:es(m.Xc.TechnicalDocuments,"srp-nav-techdocs")}),d(m.Xc.SiteContent)&&(0,i.jsx)(ea.A,{value:m.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"}),component:es(m.Xc.SiteContent,"srp-nav-sitecontent")})]})})},ec=(0,y.n9)()(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}})),eu=(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:s=""}=e,{classes:o}=ec(),{formatMessage:d}=(0,A.A)(),{resCountFirst:c,resCountEnd:p}=eu(t,n,r),g=(0,u.rd)(),h=null===(a=g.query.orgId)||void 0===a?void 0:a.trim(),x="UCB"===h?h:null==h?void 0:h.toLowerCase(),y=d(H.A.SHOWING),v=d(1===r?H.A.RESULT:H.A.RESULTS),b=d(H.A.SEARCH_RESULT_OF),T=d(H.A.FOR),E=d(H.A.WITHIN),C=d((0,m.I0)(s));return(0,i.jsx)("div",{className:o.count,"data-testid":"srp-result-count",children:r?(0,i.jsxs)(i.Fragment,{children:["".concat(y," ").concat(c,"-").concat(p," ").concat(b," ").concat(r," ").concat(v," "),(0,f._)(g)?null:(0,i.jsxs)(i.Fragment,{children:[T," ",'"',l,'"'," ",x?C&&"".concat(E," ").concat(x," ").concat(C):C&&"".concat(E," ").concat(C)]})]}):null})};var em=t(5411),eg=t(86024),eh=t(30877),eA=t(40032);let ex=(0,y.n9)()(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)"}})),ey=e=>{let{renderHeading:a,children:t}=e,{classes:r,cx:l}=ex(),[s,o]=(0,n.useState)(!1),d=l(r.icon,{[r.iconIsOpen]:s});return(0,i.jsxs)("div",{className:r.root,children:[(0,i.jsxs)(Z.A,{onClick:()=>{o(!s)},className:r.heading,children:[a(),(0,i.jsx)(eA.A,{className:d})]}),(0,i.jsx)(eh.A,{in:s,children:(0,i.jsx)("div",{className:r.body,children:t})})]})};var ev=t(98011);let ef=[{value:p.FU.Relevance,label:H.D.SORT_BY_RELEVANCE}],eb=[{value:p.FU.Relevance,label:H.D.SORT_BY_RELEVANCE},{value:p.FU.Nameasc,label:H.D.SORT_BY_NAME_ASCENDING},{value:p.FU.Namedesc,label:H.D.SORT_BY_NAME_DESCENDING}],eT=[{value:p.FU.Relevance,label:H.D.SORT_BY_RELEVANCE},{value:p.FU.Molwtasc,label:H.D.SORT_BY_MOL_WT_ASC},{value:p.FU.Molwtdesc,label:H.D.SORT_BY_MOL_WT_DESC}],eE=[{value:p.FU.Relevance,label:H.D.SORT_BY_RELEVANCE},{value:p.FU.Genenameasc,label:H.D.SORT_BY_NAME_ASCENDING},{value:p.FU.Genenamedesc,label:H.D.SORT_BY_NAME_DESCENDING}],eC={[m.Xc.Products]:eb,[m.Xc.Genes]:eE,[m.Xc.Papers]:ef,[m.Xc.TechnicalDocuments]:ef,[m.Xc.SiteContent]:ef,[m.Xc.BuildingBlocks]:eT,[m.Xc.StructureSearch]:eT,[m.Xc.B2B]:eT,[m.Xc.Chromatograms]:eb},ej=(0,y.n9)()(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}}})),e_=()=>{let[e,,a]=(0,E.useSearchQuery)(),{formatMessage:t}=(0,A.A)(),{classes:r}=ej(),l=(0,n.useMemo)(()=>eC[e.focus].map(e=>({...e,label:t(e.label)})),[t,e.focus]);return(0,i.jsx)(W.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)(U.A,{name:"sortOptionId",value:t,label:n.split(" ").slice(2).join(" "),control:(0,i.jsx)(ev.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 eN=t(91496),eS=t(21289),eI=t(70114),eR=t(14810);let eM=(0,y.n9)()(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)"}})),eO=e=>{let{facet:a}=e,{classes:t,cx:r}=eM(),l=(0,A.A)(),[,s,o]=(0,E.useSearchQuery)(),d=(s.find(e=>{let{key:t}=e;return t===a.key})||{options:[]}).options,[c,u]=(0,n.useState)(!1),p=r(t.icon,{[t.iconIsOpen]:c}),g=c?a.options:a.options.slice(0,a.numToDisplay||6),h="facet_shipping"===a.key,y=e=>{switch(e){case m.u2.SameDay:return(0,i.jsx)(eS.A,{color:"secondary",fontSize:"inherit"});case m.u2.FreeFreight:return(0,i.jsx)(eI.A,{color:"secondary"});default:return null}},v=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:g.map(e=>{let n=v.indexOf(e.value)>=0;return(0,i.jsx)("div",{className:t.vr2,children:(0,i.jsx)(U.A,{classes:{root:t.labelRoot},checked:n,control:(0,i.jsx)(eN.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:r(t.checkboxIcon,t.checkboxIconChecked),children:(0,i.jsx)(eR.A,{})}),onClick:()=>{o.handleSelectedFacetChange({key:a.key,options:[e.value],action:n?E.FacetChangeAction.Remove:E.FacetChangeAction.Add,multiSelect:a.multiSelect||!1,prefix:a.prefix})}}),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.A,{value:"".concat(e.value," (").concat(e.count,")")}),h&&(0,i.jsx)("span",{className:t.shippingIcon,children:y(e.value)})]})})},e.value)})}),(a.options.length>g.length||c)&&(0,i.jsxs)(Z.A,{onClick:()=>u(!c),"aria-expanded":c,"aria-label":c?l.formatMessage(H.A.SHOW_LESS):l.formatMessage(H.A.SHOW_MORE),className:t.showMore,children:[c?(0,i.jsx)(x.A,{...H.A.SHOW_LESS}):(0,i.jsx)(x.A,{...H.A.SHOW_MORE}),(0,i.jsx)(eA.A,{className:p})]})]})},eP=(0,y.n9)()(e=>({facetMarkup:{marginRight:e.spacing(1),"& sub, & sup":{verticalAlign:"baseline",position:"relative",top:"0.4em"},"& sup":{top:"-0.4em"}}})),ek=e=>{let{facetLabel:a,facetKey:t,facets:r}=e,{classes:l}=eP(),s=(0,A.A)(),o=(0,n.useCallback)((e,a)=>{if(!a)return"";let t=a.find(a=>a.key===e);return(null==t?void 0:t.key)?s.formatMessage(H.A[t.key.toUpperCase()]):""},[s])(t,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.A,{className:l.facetMarkup,value:"".concat(o,":")}),(0,i.jsx)(C.A,{value:a})]})},eL=(0,y.n9)()(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,E.useSearchQuery)(),s=(0,h.A)(r,e=>e.options.map(a=>({key:e.key,label:a}))),{formatMessage:o}=(0,A.A)(),{classes:c}=eL();return(0,i.jsxs)("div",{className:c.root,children:[(0,i.jsx)("div",{className:c.head,children:(0,i.jsx)(d.A,{variant:"caption",children:(0,i.jsx)(x.A,{id:"APPLIED_FILTERS_HEADING",defaultMessage:"Applied Filters:"})})}),(0,i.jsxs)("div",{className:c.body,children:[n.term&&!t&&"facet-search"!==n.term&&(0,i.jsx)(j.A,{ariaLabel:"".concat(o(v.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(n.term," ").concat(o(v.A.SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH)),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:c.searchTerm,children:[o(v.A.KEYWORD),":"]}),(0,i.jsx)("span",{children:"'".concat(n.term,"'")})]}),dataTestId:"query-term-chip",onDelete:()=>l.handleTermRemoval(r,a)}),a&&s.map(e=>(0,i.jsx)(j.A,{ariaLabel:"".concat(o(v.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(e.label," ").concat(o(v.A.SELECTION_CHIP_REMOVE_FILTER_2)),onDelete:()=>{l.handleSelectedFacetChange({key:e.key,options:[e.label],action:E.FacetChangeAction.Remove})},label:(0,i.jsx)(ek,{facetLabel:e.label,facetKey:e.key,facets:a})},e.key))]})]})},eF=(0,y.n9)()(e=>({body:{overflow:"scroll",padding:e.spacing(6,4)},footer:{padding:e.spacing(6,4)}})),eD=e=>{let{facets:a,isStructureSearch:t,isModalOpen:r,onModalClose:l,showSortBar:s}=e,{classes:o}=eF();return(0,i.jsx)(eg.A,{open:r,onClose:l,renderTitle:()=>(0,i.jsx)(d.A,{variant:"h2",component:"h2",children:(0,i.jsx)(x.A,{...v.A.FILTER_AND_SORT_HEADING})}),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:o.body,children:[(0,i.jsx)(eB,{facets:a,isStructureSearch:t}),s&&(0,i.jsx)(ey,{renderHeading:()=>(0,i.jsx)(d.A,{variant:"body1",component:"h2",children:(0,i.jsx)("b",{children:(0,i.jsx)(x.A,{...v.A.SORT_HEADING})})}),children:(0,i.jsx)(e_,{})}),!!a&&a.map(e=>(0,i.jsx)(n.Fragment,{children:(0,i.jsx)(ey,{renderHeading:()=>(0,i.jsx)(d.A,{variant:"body1",component:"h2",children:(0,i.jsx)("b",{children:(0,i.jsx)(_.A,{id:e.key.toUpperCase()})})}),children:(0,i.jsx)(eO,{facet:e,allFacets:a})})},e.key))]}),(0,i.jsx)("div",{className:o.footer,children:(0,i.jsx)(em.A,{variant:"contained",color:"primary",size:"large",fullWidth:!0,onClick:l,children:(0,i.jsx)(x.A,{id:"DONE",defaultMessage:"Done"})})})]})})};var ew=t(75584);let eW=(0,y.n9)()(e=>({filterAndSortBar:{display:"flex",alignItems:"center",justifyContent:"center",padding:"".concat(e.spacing(3)," 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"}}})),eU=e=>{let{metadata:a,orgId:t,facets:r,showSortBar:l}=e,[s,o]=(0,E.useSearchQuery)(),{formatMessage:d}=(0,A.A)(),[c,u]=(0,n.useState)(!1),{classes:p}=eW(),g=()=>{u(!1)},h=s.focus===m.Xc.StructureSearch;return(0,i.jsxs)("div",{className:p.mobileFiltersAndNav,children:[(0,i.jsx)("div",{className:p.vr6,children:a&&(0,i.jsx)(ep,{currPage:a.page,perPage:a.perPage,resultCount:a.setsCount||a.itemCount||0,searchTerm:s.term,searchType:s.focus})}),(0,i.jsx)(ed,{orgId:t}),(!!(null==r?void 0:r.length)||l)&&(0,i.jsx)("div",{className:p.filterAndSortBar,children:(0,i.jsxs)(Z.A,{className:p.filterTrigger,onClick:e=>{e.preventDefault(),u(!0)},children:[o.length?(0,i.jsx)("span",{className:p.facetCount,children:o.length}):(0,i.jsx)(ew.A,{className:p.filterIcon,fontSize:"inherit",color:"primary"}),d(H.A.FILTER_AND_SORT_HEADING)]})}),(0,i.jsx)(eD,{facets:r,isStructureSearch:h,isModalOpen:c,onModalClose:()=>g(),showSortBar:l})]})};var eH=t(71007),eG=t(46129);let ez=(0,y.n9)()(e=>({searchLink:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium,color:e.palette.secondary.dark,marginBottom:e.spacing(2),cursor:"pointer"}})),eY=e=>{let{orgId:a,isStructureSearch:t}=e,{classes:n}=ez();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(eG.N,{href:u.wO.index(),"aria-hidden":!0,onClick:()=>{(0,eH.dZ)({action:"visit advanced search page",component:"left rail",elementType:"link",elementText:"advanced search",linkUrl:u.wO.index()})},children:(0,i.jsx)(x.A,{id:"ADVANCED_SEARCH",defaultMessage:"Advanced Search"})})}),!a&&!t&&(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(eG.N,{href:u.HX.index(),"aria-hidden":!0,onClick:()=>{(0,eH.dZ)({action:"visit chemical structure search",component:"left rail",elementType:"link",elementText:"chemical structure search",linkUrl:u.HX.index()})},children:(0,i.jsx)(x.A,{id:"CHEMICAL_STRUCTURE_SEARCH",defaultMessage:"Chemical Structure Search"})})})]})};var eq=t(90589),eV=t(76023),eK=t(45484);let eQ=()=>{let[e,,a]=(0,E.useSearchQuery)(),{formatMessage:t}=(0,A.A)(),r=(0,n.useMemo)(()=>eC[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)(eK.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)(eV.A,{value:a,id:"sort-option-".concat(a),children:t},a)})})})},e$=(0,y.n9)()(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}}})),eX=e=>{let{metadata:a,showSortBar:t}=e,{classes:n}=e$(),r=(0,P.useRouter)(),l=(0,m.h2)({focus:r.query.focus,term:r.query.term});return(0,i.jsxs)("div",{className:n.desktopResultsMenu,children:[a&&(0,i.jsx)(ep,{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)(eQ,{})})]})};var eZ=t(34415),eJ=t(77197);let e0=(0,y.n9)()(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("md")]:{margin:e.spacing(3)},"& p":{fontSize:e.typography.pxToRem(16),[e.breakpoints.down("md")]:{fontSize:e.typography.pxToRem(14)}}},lowercase:{textTransform:"lowercase"}}));var e1=function(e){return e.SDS="sds",e}({});let e2={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,{classes:n}=e0(),r=e2[t],l=u.HN.index(t),s=null===(a=eJ.tq[t])||void 0===a?void 0:a.replaceAll(" ","_");return(0,i.jsx)("div",{className:n.docBanner,children:(0,i.jsxs)(d.A,{variant:"body1",children:[r&&(0,i.jsx)(x.A,{id:r.id,defaultMessage:r.defaultMessage,values:r.values})," ",(0,i.jsx)(x.A,{id:"THESE_AND_OTHER_DOCS",defaultMessage:"These and other documents can be found on our"})," ",(0,i.jsx)(eZ.A,{href:"".concat(l,"&").concat("icid=search_term_specific_tip-banner-looking_for_a_".concat(s,"-documents")),children:(0,i.jsx)(x.A,{id:"DOCUMENTS",defaultMessage:"Documents"})})," ",(0,i.jsx)("span",{className:n.lowercase,children:(0,i.jsx)(x.A,{id:"PAGE",defaultMessage:"Page"})}),"."]})})};var e7=t(54366);let e3=(0,y.n9)()(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)}}}})),e6=e=>{let{searchQuery:a}=e,{classes:t}=e3(),n=(0,u.rd)();return(0,i.jsx)("div",{className:t.banner,children:(0,i.jsxs)(d.A,{variant:"body1",children:[(0,i.jsx)(x.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 e8=t(65567);let e5=(0,y.n9)()((e,a,t)=>({hideOnMobile:{[e.breakpoints.down("md")]:{display:"none"}},searchFacets:{margin:0,["&.".concat(t.searchFacets)]:{padding:e.spacing(0)}},searchFacetsInner:{borderRight:"1px solid ".concat(e.palette.grey[600]),height:"calc(100% - ".concat(e.spacing(5),")"),padding:e.spacing(0,7,5,5),marginTop:e.spacing(5)},searchResults:{marginTop:e.spacing(10),padding:0,["&.".concat(t.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"}})),e9=e=>{var a,t;let{children:h,showSortBar:A,showFacets:x,showAvailableForSale:y,orgId:v,facets:f,loading:b,error:T,metadata:j,showMore:_}=e,{classes:N,cx:S}=e5(),I=(0,u.rd)(),[M]=(0,E.useSearchQuery)(),O=(0,m.h2)({focus:I.query.focus,term:I.query.term}),P=O.focus===m.Xc.StructureSearch,k=O.focus===m.Xc.Products||O.focus===m.Xc.B2B,L=(0,c.A)(),B=(0,l.A)(L.breakpoints.up("md")),F=(null==j?void 0:j.itemCount)===0||null==j||(null==j?void 0:j.setsCount)===0,W=S({[F?N.noResults:N.searchResultsLoose]:k});(0,n.useEffect)(()=>{r.sZ.setItem("previousSearchPath",I.asPath)},[I.asPath]);let U=[Object.values(p.e_),Object.values(e1)].toString().toLowerCase(),H=(()=>{var e,a;return"facet-search"===O.term?null===(e=M.facet[0])||void 0===e?void 0:e.split(":")[1]:(null===(a=I.query)||void 0===a?void 0:a.term)||""})(),G=!!H&&U.split(",").includes(H.toLowerCase()),z=(null==j?void 0:j.suggestedType)&&j.suggestedType.includes("mol_form");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D,{metadata:j},"head"),(0,i.jsx)(s.A,{className:N.mobileContainer,children:(0,i.jsxs)(o.A,{container:!0,spacing:10,children:[(0,i.jsx)(o.A,{item:!0,md:3,className:S(N.hideOnMobile,N.searchFacets),children:(0,i.jsxs)("div",{className:N.searchFacetsInner,children:[(0,i.jsx)("div",{className:N.searchLinks,children:(0,i.jsx)(eY,{orgId:v,isStructureSearch:P})}),P?(0,i.jsx)(w.A,{}):(0,i.jsx)(ee,{orgId:v}),x&&(0,i.jsx)(g.A,{loading:b,error:T,facets:f,showMore:_}),y&&(0,i.jsx)(X,{loading:b,error:T})]})}),(0,i.jsxs)(o.A,{item:!0,xs:12,md:9,className:F?N.noResults:N.searchResults,children:[!b&&!F&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(d.A,{variant:"h1",className:N.title,children:(0,i.jsx)(C.A,{value:H})})}),G&&(null==I?void 0:null===(a=I.query)||void 0===a?void 0:a.term)&&(0,i.jsx)(e4,{searchQuery:I.query.term.toLowerCase()}),z&&!b&&(null==I?void 0:null===(t=I.query)||void 0===t?void 0:t.term)&&(0,i.jsx)(e6,{searchQuery:I.query.term}),x&&!b&&(0,i.jsx)(R,{facets:f,isStructureSearch:P}),B&&!F?(0,i.jsx)(eX,{showSortBar:A,metadata:j,orgId:v}):(0,i.jsx)(eU,{facets:f,showSortBar:A,metadata:j,orgId:v}),(0,i.jsx)("div",{className:W,children:h})]})]})}),!b&&!F&&(0,i.jsx)(e8.A,{flag:"wabt-221",hide:!0,variationKey:"v3_remove_recently_viewed",children:(0,i.jsx)(eq.A,{dispType:p.HI.RecentlyViewedSrp,searchKey:O.term,analyticsPageName:"srp",analyticsPageDetails:"search results page"})},"v3_remove_recently_viewed")]})}},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())},55007:(e,a,t)=>{t.d(a,{Sx:()=>c});var i=t(28888);t(37876);var n=t(82897),r=t(54064);t(14232);var l=t(54431);function s(){let e=(0,i._)(["\n query SrpRecommendedProducts($input: GetSrpRecommendedProductsInput!) {\n getSrpRecommendedProducts(input: $input) {\n products {\n ...DynamicProduct\n }\n }\n}\n ",""]);return s=function(){return e},e}let o={},d=(0,n.J1)(s(),r.z);function c(e){let a={...o,...e};return l.IT(d,a)}},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 s={},o=(0,n.J1)(l());function d(e){let a={...s,...e};return r.IT(o,a)}},57717:(e,a,t)=>{t.d(a,{A:()=>i.Ay});var i=t(91721)},58597:(e,a,t)=>{t.d(a,{A:()=>o});var i=t(37876);t(14232);var n=t(8733),r=t(54753),l=t(28975),s=t(12197);let o=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)(s.A,{variant:"h2",children:(0,i.jsx)(n.A,{...r.A.RESTRICTED_ITEM})}),children:(0,i.jsx)(l.Uh,{children:(0,i.jsx)(s.A,{component:"p",children:(0,i.jsx)(n.A,{...r.A.RESTRICTED_ITEM_MESSAGE})})})})}},58745:(e,a,t)=>{t.d(a,{A:()=>d});var i=t(37876),n=t(49794),r=t(86692),l=t(99220),s=t(6760);let o=(0,l.n9)()((e,a)=>{let{disabled:t,size:i}=a;return{root:{padding:"0",marginRight:e.spacing(2),"&:hover":{borderRadius:"50%",outline:"3px solid ".concat(e.palette.primary.light)}},icon:{display:"flex",border:t?e.palette.common.white:"1px solid ".concat(e.palette.grey[500]),borderRadius:"50%",backgroundColor:t?e.palette.grey[50]:e.palette.common.white,height:"medium"===i?"24px":"20px",width:"medium"===i?"24px":"20px"},checkedIcon:{"&:before":{content:'""',display:"block",backgroundColor:t?e.palette.grey[800]:e.palette.primary.main,borderRadius:"50%",position:"absolute",height:"58%",width:"58%",top:"21%",left:"21%"}},customRadio:{marginLeft:0,"& .MuiIconButton-label":{"& span":{height:"medium"===i?"24px":"20px",width:"medium"===i?"24px":"20px"}}},disabledText:{"& .MuiTypography-body1 ":{color:e.palette.grey[800]}}}}),d=e=>{let{name:a,value:t,label:l,checked:d,onChange:c,size:u="medium",disabled:p=!1,"data-testid":m}=e,{cx:g,classes:h}=o({disabled:p,size:u}),A="string"==typeof l?(0,i.jsx)(n.A,{variant:"body1",children:l}):l;return(0,i.jsx)(s.A,{className:g(h.customRadio,{[h.disabledText]:p}),value:t,control:(0,i.jsx)(r.A,{"data-testid":m,className:h.root,name:a,checked:d,onChange:c,disabled:p,size:u,checkedIcon:(0,i.jsx)("span",{className:g(h.icon,h.checkedIcon)}),icon:(0,i.jsx)("span",{className:h.icon})}),label:A})}},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),s=t(53295),o=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)(),A=e=>{var n,r,l,o;g((0,i.jsx)(s.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!==(o=null==p?void 0:p.elementText)&&void 0!==o?o:"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:()=>A(c),children:(0,i.jsx)(o.A,{variant:"inherit",children:u||(0,i.jsx)(l.A,{id:"VIEW",defaultMessage:"View"})})})})}},62155:(e,a,t)=>{t.d(a,{Ay:()=>el});var i=t(37876),n=t(14232),r=t(77742),l=t(8733),s=t(99220),o=t(57377),d=t(10181),c=t(67241),u=t(70377),p=t(41683),m=t(71549),g=t(34669),h=t(63912),A=t(47801),x=t(97710),y=t(80491),v=t(80863),f=t(61206),b=t(6315),T=t(74770),E=t(26925),C=t(52263),j=t(71007),_=t(15093),N=t(65824),S=t(28907),I=t(75020),R=t(11148),M=t(62084),O=t(11788),P=t(89617),k=t(23604),L=t(87254),B=t(39324),F=t.n(B);let{publicRuntimeConfig:{featureFlags:D}}=F()(),w=(0,s.n9)()(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("md")]:{display:"none"}},hideOnMobile:{whiteSpace:"nowrap",[e.breakpoints.down("sm")]:{display:"none"}},sdsTrigger:{display:"block"},clearBottomBorder:{"& > *":{borderBottomColor:"transparent"}},tableRowExpanded:{backgroundColor:e.palette.background.grey},expandHideSpacer:{height:0,visibility:"hidden"},badgeCell:{textAlign:"right"}})),W="7950",U={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"}},H=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,s=l.find(e=>e.key===U.CLONALITY.key),d=l.find(e=>e.key===U.SPECIES_REACTIVITY.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:s&&(0,i.jsx)(b.A,{values:s.values})}),(0,i.jsx)(o.A,{children:(0,i.jsx)(f.A,{value:t.cardAttribute.application.join(", ")})}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:d&&(0,i.jsx)(b.A,{values:d.values})}),(0,i.jsx)(o.A,{children:t.cardAttribute.citationCount}),a||n&&(0,i.jsxs)(o.A,{children:[a&&(0,i.jsx)(T.A,{features:t.features}),n&&(0,i.jsx)(P.A,{})]})]})]})},G=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,s=l.find(e=>e.key===U.PORE_SIZE.key),d=l.find(e=>e.key===U.DIAMETER.key&&e.label===U.DIAMETER.label),c=l.find(e=>e.key===U.STERILITY.key),u=l.filter(e=>e.key===U.MATERIAL.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{"data-testid":"pdp-product-poreSize",children:s&&s.values.length&&(0,i.jsx)(b.A,{values:s.values})}),(0,i.jsx)(o.A,{"data-testid":"pdp-product-diameter",children:d&&(0,i.jsx)(b.A,{values:d.values})}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{"data-testid":"pdp-product-sterility",children:c&&(0,i.jsx)(b.A,{values:c.values})}),(0,i.jsx)(o.A,{"data-testid":"pdp-product-material",children:u&&u.map(e=>(0,i.jsx)(b.A,{values:e.values},e.key))}),a||n&&(0,i.jsxs)(o.A,{children:[a&&(0,i.jsx)(T.A,{features:t.features}),n&&(0,i.jsx)(P.A,{})]})]})]})},z=e=>{let{focus:a,isStaticContent:t,product:n,productDescription:r}=e,{classes:l}=w();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(o.A,{className:l.productDescription,align:"left",children:[t&&n.name&&(0,i.jsx)(f.A,{value:n.name,className:l.productDescriptionName}),(0,i.jsx)(S.h,{product:n,focus:a,label:r,productDescriptionClass:l.productDescLink,productLinkType:S.A.DESCRIPTION,productDescription:r})]})})},Y=e=>{let{keyAttributes:a,focus:t,isStaticContent:n,product:r,productDescription:l,txnBadgeColAdjustments:s}=e,d=s?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)(o.A,{"data-testid":"pdp-product-".concat(e.label),children:e.values.length>0?(0,i.jsx)(b.A,{values:e.values}):"—"},"".concat(e.key,"_").concat(e.label)))}):(0,i.jsx)(z,{focus:t,isStaticContent:n,product:r,productDescription:l})},q=e=>{let{displayBadgesOnProduct:a,features:t,showGreenBadge:n,txnBadge:r,isTxnBadgeUser:l}=e,{classes:s}=w();return(0,i.jsx)(o.A,{className:s.badgeCell,colSpan:4,children:r?(0,i.jsx)(L.A,{showTooltip:!0}):!l&&(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)(T.A,{features:t}),n&&(0,i.jsx)(P.A,{})]})})},V=e=>{var a,t,l,s,d,c,u;let{additionalColumns:m,displayBadgesOnProduct:b,displayViewLink:T=!0,focus:P,isShowBrand:L,isShowImage:B,isStaticContent:F,product:U,productIsAntibody:V,productIsSyringeFilter:K,showDescription:Q,substanceId:$,substancePosition:X,txnBadgeColAdjustments:Z}=e,J=(0,R.rd)(),{classes:ee,cx:ea}=w(),{formatMessage:et}=(0,r.A)(),[ei,en]=(0,n.useState)(!1),{currentUser:er,isB2BUser:el}=(0,O.iZ)(),[es]=(0,k.lT)(["language"]),{compareProducts:eo,addCompareProduct:ed,removeCompareProduct:ec}=(0,y.Zn)(),eu=eo.some(e=>{let{productKey:a,brandKey:t,catalogType:i}=e;return a===U.productKey&&t===U.brand.key&&i===(0,x.vN)(P)}),ep=null!==(u=null===A.Lr||void 0===A.Lr?void 0:A.Lr.getItem("searchedfor"))&&void 0!==u?u:"",em=()=>{var e;en(e=>!e),(0,I.Sm)({action:ei?"close p&a":"view p&a",section:X?void 0:"products",component:"list",elementType:"accordion",elementText:ei?"hide":"expand",material:{materialDescription:U.name,brand:null===(e=U.brand)||void 0===e?void 0:e.key,product:U.productNumber}})},{paMessage:eg}=U,eh=U.productNumber.startsWith("CB_")?et(g.A.DETAILS):U.productNumber,eA=!eu&&eo.length>=y.NN,ex={productKey:U.productKey,productNumber:U.productNumber,brandKey:U.brand.key,images:U.images,catalogType:P?(0,x.vN)(P):void 0},ey=(null==er?void 0:er.metadata.isNewPNASrpEnabled)&&!J.query.debug&&T,ev=U.legalNameSuffix||U.description,ef=null===(a=U.attributes)||void 0===a?void 0:a.find(e=>"greener alternative category.default"===e.key),eb="en"===es.language.toLowerCase(),eT=V&&U.cardAttribute,eE=!eT&&!K&&eb&&(null==U?void 0:U.keyAttributes)&&U.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]),ej=(0,n.useMemo)(()=>{var e;return(null==er?void 0:null===(e=er.metadata)||void 0===e?void 0:e.country)||""},[er]),e_=D.srpTxnBadges&&"US"===ej&&!el&&eC===W,eN=e_&&U.txnBadge&&(null===(t=U.txnBadge)||void 0===t?void 0:t.type)==="MAX_DISCOUNT"&&(null===(s=U.txnBadge)||void 0===s?void 0:null===(l=s.salesOrgIds)||void 0===l?void 0:l.includes(W));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.A,{className:ei?ea(ee.tableRow,ee.clearBottomBorder,ee.tableRowExpanded):ee.tableRow,"data-testid":"product-".concat(U.name),children:[B?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:(0,i.jsx)("span",{className:ee.productImageContainer,children:(0,i.jsx)("img",{className:ee.productImage,src:null==U?void 0:null===(d=U.images[0])||void 0===d?void 0:d.smallUrl,alt:(null==U?void 0:null===(c=U.images[0])||void 0===c?void 0:c.altText)||""})})}),(0,i.jsx)(o.A,{classes:{root:ee.productNumberContainer},children:(0,i.jsx)(S.h,{product:U,focus:P,label:eh,productDescriptionClass:ee.productName,productLinkType:S.A.NAME,productDescription:ev})})]}):(0,i.jsxs)(i.Fragment,{children:[!F&&(0,i.jsx)(o.A,{className:ee.hideBelowMd,children:(0,i.jsx)(N.A,{name:"".concat(et(g.A.COMPARE),"-").concat(U.productNumber),checked:eu,onChange:e=>{e.target.checked?ed(ex):ec(ex)},"aria-label":"".concat(et(g.A.COMPARE)," ").concat(U.productNumber),disabled:eA})}),(0,i.jsx)(o.A,{classes:{root:ee.productNumberContainer},children:(0,i.jsx)(S.h,{product:U,focus:P,label:eh,onProductLinkClick:()=>(0,j.WL)({product:U,searchTerm:ep,substanceId:$,substancePosition:X}),productDescriptionClass:ee.productName,productLinkType:S.A.NAME,productDescription:ev})})]}),eT&&(0,i.jsx)(H,{displayBadgesOnProduct:b,showGreenBadge:ef,product:U,txnBadgeColAdjustments:Z}),K&&(0,i.jsx)(G,{displayBadgesOnProduct:b,showGreenBadge:ef,product:U,txnBadgeColAdjustments:Z}),eE&&(0,i.jsx)(Y,{keyAttributes:null==U?void 0:U.keyAttributes,focus:P,isStaticContent:F,product:U,productDescription:ev,txnBadgeColAdjustments:Z}),!U.cardCategory&&(0,i.jsxs)(i.Fragment,{children:[Q&&(0,i.jsx)(z,{focus:P,isStaticContent:F,product:U,productDescription:ev}),L&&(0,i.jsx)(o.A,{className:ee.hideOnMobile,style:{color:U.brand.color||void 0},children:U.brand.name}),m&&m.map(e=>{var a;let{value:t}=e,n=U.attributes.find(e=>e.key&&e.key.toLowerCase()===t.toLowerCase());return(0,i.jsx)(o.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)(q,{displayBadgesOnProduct:b,features:U.features,showGreenBadge:ef,txnBadge:eN&&U.txnBadge,isTxnBadgeUser:e_}),(0,i.jsx)(o.A,{children:!!U.sdsLanguages.length&&(0,i.jsx)(v.A,{sdsLanguages:U.sdsLanguages,productNumber:U.sdsPnoKey,brandKey:U.brand.key,trigger:(0,i.jsx)(_.A,{className:ee.sdsTrigger,color:"primary"})})}),(0,i.jsx)(o.A,{children:ey?(0,i.jsx)(M.A,{product:U,substancePosition:X,focus:P}):(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(U.productNumber).concat(U.brand.key)}),(0,i.jsx)("div",{className:ee.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:ee.tableRowExpanded,children:ei&&(0,i.jsx)(o.A,{colSpan:12,children:eg?(0,i.jsx)(C.Ay,{brandKey:U.brand.key,productNumber:U.productNumber,paMessage:eg,displayType:C.yU.SRP}):(0,i.jsx)(E.A,{queryFocus:P,productName:U.name,productNumber:U.productNumber,productDescription:U.description||"",images:U.images,materialIds:U.materialIds,brandKey:U.brand.key,gaType:(0,j.Ss)(P),isMarketplace:U.isMarketplace,productAttributes:U.attributes,marketplaceSellerId:U.marketplaceSellerId||"",marketplaceOfferId:U.marketplaceOfferId||"",displaySellerName:U.displaySellerName||"",displayPromotionalBundlesAnchor:!0,checkForPb:!0,productKey:U.productKey,erp_type:U.erp_type,isBBE:U.isBBE})})})]})};var K=t(88700);let{publicRuntimeConfig:{featureFlags:Q}}=F()(),$=(0,s.n9)()(e=>({tContainer:{overflowX:"visible"},tHeadRow:{whiteSpace:"nowrap","& .MuiTableCell-head":{padding:"0 .6rem",fontSize:e.typography.pxToRem(12),fontWeight:600,borderBottom:"1px solid ".concat(e.palette.grey[300])}},tHeadProductNumber:{width:124},tHeadSds:{width:52,"&:empty":{width:0}},hideBelowMd:{[e.breakpoints.down("md")]:{display:"none"}},utilityRow:{display:"flex",marginTop:e.spacing(4),"&:empty":{display:"none"}},showMoreLessButton:{flexShrink:0},compressWidth:{width:0}})),X={ANTIBODY:"ANTIBODY",SYRINGE_FILTERS:"SYRINGE_FILTERS"};X.ANTIBODY,X.SYRINGE_FILTERS;let Z="7950",J=e=>{let{showSdsColumn:a}=e,{classes:t}=$(),{formatMessage:n}=(0,r.A)();return(0,i.jsx)(o.A,{className:t.tHeadSds,children:a&&n(g.A.SDS)})},ee=()=>{let{classes:e}=$(),{formatMessage:a}=(0,r.A)();return(0,i.jsx)(o.A,{className:e.compressWidth,children:a(g.A.PRICING)})},ea=e=>{let{txnBadgeColAdjustments:a}=e,{formatMessage:t}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:t(g.A.CLONALITY)}),(0,i.jsx)(o.A,{children:t(g.A.APPLICATION)}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:t({id:"SPECIES_REACTIVITY",defaultMessage:"Species Reactivity"})}),(0,i.jsx)(o.A,{children:t(g.A.CITATIONS)})]})]})},et=e=>{let{txnBadgeColAdjustments:a}=e,{formatMessage:t}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:t(g.A.PORE_SIZE)}),(0,i.jsx)(o.A,{children:t(g.A.DIAMETER)}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:t(g.A.STERILITY)}),(0,i.jsx)(o.A,{children:t(g.A.MATERIAL)})]})]})},ei=e=>e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/_+$/g,""),en=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=ei(n);return(0,i.jsx)(o.A,{children:r?(0,i.jsx)(l.A,{id:r,defaultMessage:n}):n},"".concat(a,"_").concat(t))})})}return(0,i.jsx)(o.A,{children:n(g.A.DESCRIPTION)})},er=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)(o.A,{children:l(g.A.DESCRIPTION)}),t&&(0,i.jsx)(o.A,{children:l(g.A.BRAND)}),a&&a.map(e=>{let{text:a}=e;return(0,i.jsx)(o.A,{"data-additional":"true",children:a},a)})]})},el=e=>{var a,t,l;let{products:s,displayBadgesOnProduct:A,focus:x,maxRows:y,isShowImage:v=!1,isShowBrand:f=!1,isStaticContent:b=!1,additionalColumns:T,displayViewLink:E,substanceId:C,substancePosition:_,substanceKeyAttributes:N}=e,{classes:S,cx:I}=$(),[R]=(0,k.lT)(["language"]),[M,P]=(0,n.useState)(!1),L=y||5,B=M?s.length:L,{formatMessage:F}=(0,r.A)(),D=!!s.length&&(null===(a=s[0])||void 0===a?void 0:a.cardCategory)===X.ANTIBODY,w=!!s.length&&(null===(t=s[0])||void 0===t?void 0:t.cardCategory)===X.SYRINGE_FILTERS,W=s.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"===R.language.toLowerCase(),{currentUser:H,isB2BUser:G}=(0,O.iZ)(),z=(0,n.useMemo)(()=>{var e,a;return(null==H?void 0:null===(a=H.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==H?void 0:H.metadata.salesOrg)||""},[H]),Y=(0,n.useMemo)(()=>{var e;return(null==H?void 0:null===(e=H.metadata)||void 0===e?void 0:e.country)||""},[H]),q=s.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(Z))}),ei=Q.srpTxnBadges&&"US"===Y&&!G&&z===Z&&q,el=D?ea:w?et:null,es=!el&&U&&N&&N.length>0,eo=!es&&!el||!U;return(0,i.jsxs)(d.A,{className:S.tContainer,children:[(0,i.jsxs)(c.A,{size:"small",children:[(0,i.jsx)(u.A,{children:(0,i.jsxs)(p.A,{className:S.tHeadRow,children:[v?(0,i.jsx)(o.A,{}):b?null:(0,i.jsx)(o.A,{className:I(S.hideBelowMd,S.compressWidth),children:F(g.A.COMPARE)}),(0,i.jsx)(o.A,{classes:{root:S.tHeadProductNumber},children:F(g.A.PRODUCT_NO)}),el&&(0,i.jsx)(el,{txnBadgeColAdjustments:ei}),es&&(0,i.jsx)(en,{keyAttributes:N,txnBadgeColAdjustments:ei}),!(null===(l=s[0])||void 0===l?void 0:l.cardCategory)&&(0,i.jsx)(er,{additionalColumns:T,isShowBrand:f,showDescriptionColumn:eo}),(0,i.jsx)(o.A,{colSpan:4}),(0,i.jsx)(J,{showSdsColumn:W}),(0,i.jsx)(ee,{})]})}),(0,i.jsx)(m.A,{children:s.slice(0,B).map((e,a)=>e instanceof Error||!e?null:(0,i.jsx)(V,{additionalColumns:T,displayBadgesOnProduct:A,displayViewLink:E,focus:x,isShowBrand:f,isShowImage:v,isStaticContent:b,product:e,productIsAntibody:D,productIsSyringeFilter:w,showDescription:eo,substanceId:C,substancePosition:_,txnBadgeColAdjustments:ei},"".concat(e.productKey).concat(e.brand.erpKey,"-").concat(a)))})]}),(0,i.jsx)("div",{className:S.utilityRow,children:s.length>L&&(0,i.jsx)(h.A,{expanded:M,setExpanded:P,className:S.showMoreLessButton,"data-testid":"show-".concat(M?"less":"more"),onClick:()=>{let e=M?"show less":"show more";(0,j.tg)({action:K.$R.InPageClick,detail:"".concat(e," products | ").concat(C),component:K.IP.Body,elementType:K.T.AnchorLink,elementText:e,productName:"water"})}})})]})}},62599:(e,a,t)=>{t.d(a,{A:()=>O});var i=t(37876),n=t(71541),r=t(37929),l=t(11148),s=t(14232),o=t(99220),d=t(64204),c=t(12197),u=t(69605),p=t(77660),m=t(52413),g=t(97710),h=t(61206),A=t(43343),x=t(8733),y=t(34669),v=t(71605),f=t(49691),b=t(85366),T=t(71007);let E=(0,o.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}})),C=e=>{let{substance:a}=e,{casNumber:t,molecularWeight:n,aliases:r,__typename:s}=a,o=r.find(e=>e.key===g.VT.EcNumber),d=r.find(e=>e.key.includes(g.VT.BeilsteinRegistryNumber)),{classes:u}=E(),m=(0,l.rd)(),A=(0,g.h2)({focus:m.query.focus}),C=A.focus===g.Xc.StructureSearch?(0,b.j5)(a.products):null,j=(null==s?void 0:s.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)(x.A,{...y.A.CAS_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(f.m5,{substanceId:a.id,label:t,searchValue:(0,g.aE)(t),searchFocusType:(0,g.UQ)(A.focus),productSearchType:g.mI.CasNumber,classes:u.MetaFormatting,onClick:()=>(0,T.OT)((0,v.uW)({action:"cas number",detail:t,focus:A.focus}))})})]}),j&&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)(x.A,{...y.A.MOLECULAR_WEIGHT}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(h.A,{value:n})})]}),o&&(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)(x.A,{...y.A.EC_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(f.m5,{substanceId:a.id,searchValue:o.value,searchFocusType:(0,g.UQ)(A.focus),productSearchType:g.mI.EgecNumber,classes:u.MetaFormatting,onClick:()=>(0,T.OT)((0,v.uW)({action:"ec number",detail:o.value,focus:A.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)(x.A,{...y.A.BEILSTEIN_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)("div",{className:u.MetaFormatting,children:d.value})})]}),C&&(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)(x.A,{...y.A.SIMILARITY}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsxs)("span",{children:[C,"%"]})})]})]})};var j=t(93186),_=t(40352),N=t(62155),S=t(92881),I=t(36820),R=t(52710);let M=(0,o.n9)()(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("md")]:{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("lg")]:{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)}})),O=e=>{let{onSubstanceClick:a,substance:t,substancePosition:o}=e,{products:v,id:f,synonyms:b,images:E,linearFormula:O,empiricalFormula:P,legalName:k,__typename:L}=t,{classes:B,cx:F}=M(),D=(0,l.rd)(),w=(0,g.h2)({focus:D.query.focus}),W=t.images[0]||{},U=v.map(e=>({...e,images:E})),H=v[0],G=null==H?void 0:H.isMarketplace,z=(null==H?void 0:H.displaySellerName)||(0,g.t1)(null==H?void 0:H.attributes),Y=(null==H?void 0:H.marketplaceSellerId)||"",q=G&&!!z&&!!Y,V=D.query.catalogType,K=(0,g.vN)(null!=V?V:w.focus),[Q,$]=(0,s.useMemo)(()=>O?[O,y.A.LINEAR_FORMULA]:P?[P,y.A.EMPIRICAL_FORMULA_HILL_NOTATION]:[null,null],[P,O]),X=(0,r.A)(),Z=(0,n.A)(X.breakpoints.up(_.Rp.MD),{defaultMatches:!0})?N.Ay:j.A,J=v.some(e=>e.features.length>0),ee=v.length,[ea,et]=(0,s.useState)(!1),ei=()=>{et(e=>!e)},en=(null==L?void 0:L.toLowerCase())===p.RL.Substance,[er,el]=(0,s.useState)(!1),es=e=>{el(!er),er||(0,T.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:B.root,"data-testid":"srp-substance-group",children:[(0,i.jsxs)("div",{id:"product-info",className:B.overview,children:[(0,i.jsx)("div",{children:en?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{id:"srp-image-container",className:B.thumbnailWrapper,children:(0,i.jsx)(d.A,{className:B.trigger,onClick:()=>es(!0),children:(0,i.jsx)(A.A,{className:B.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:B.triggerText,children:[(0,i.jsx)("span",{role:"button",className:B.triggerLink,onClick:()=>es(!1),onKeyPress:()=>es(!1),tabIndex:0,children:(0,i.jsx)(x.A,{...y.A.ALL_PHOTOS})}),(0,i.jsxs)("span",{className:B.imageText,children:["(",t.images.length,")"]})]})]}):null}),(0,i.jsxs)("div",{className:B.flexGrow,children:[(0,i.jsx)(c.A,{id:"substance-name",component:"h2",className:F(B.name,B.breakWord),children:ee>1?(0,i.jsx)(m.N,{...l.SL.index(f,K),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:k||t.name})})}):(0,i.jsx)(h.A,{value:k||t.name})}),en&&(null==b?void 0:b.length)>0&&(0,i.jsxs)("div",{className:B.synonyms,children:[(0,i.jsxs)(c.A,{component:"span",variant:"body2",className:B.labelForDefinition,children:[(0,i.jsx)(x.A,{id:"SYNONYM(S)",defaultMessage:"Synonym(s)"}),": "]}),(0,i.jsx)(c.A,{component:"span",variant:"body2",className:B.definition,children:(0,i.jsx)(h.A,{className:B.breakWord,value:b.join(", ")})})]}),(0,i.jsxs)("div",{className:B.hideBelowMd,children:[en&&Q&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.A,{component:"span",variant:"body2",className:B.labelForDefinition,children:[(0,i.jsx)(x.A,{...$}),": "]}),(0,i.jsx)(c.A,{component:"span",variant:"body2",className:B.definition,children:(0,i.jsx)(h.A,{className:B.breakWord,value:Q})})]}),(0,i.jsx)(C,{substance:t})]}),q&&(0,i.jsxs)("div",{className:B.sellerInfo,children:[(0,i.jsx)(x.A,{...y.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(m.N,{...l.kJ.index(z,Y),children:(0,i.jsx)("a",{children:z})}),(0,i.jsx)("span",{className:B.verticalLine}),(0,i.jsxs)("span",{className:B.trustedInfo,children:[(0,i.jsx)(x.A,{...y.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(u.A,{className:B.infoIcon,onClick:ei}),ea&&(0,i.jsx)(S.A,{open:ea,onCancel:ei})]})]})]})]}),(0,i.jsx)(R.M,{source:"srp - ".concat(w.focus),children:(0,i.jsx)(Z,{products:U,displayBadgesOnProduct:J,focus:w.focus,substanceId:t.id,substanceName:t.name,substancePosition:o,substanceKeyAttributes:t.keyAttributes})}),(0,i.jsx)(I.A,{isOpen:er,onClose:el,images:t.images,name:t.name,productId:H.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 validTo\n }\n hidePromoDetailsForAnonUser\n }\n }\n }\n}\n "]);return l=function(){return e},e}let s={},o=(0,n.J1)(l());function d(e){let a={...s,...e};return r.IT(o,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),s=t(8733),o=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,o.mE)(),A=(0,d.ds)(a),x="PROCUT_ORDER_ON_AVANTI_SITE"===p?"http://avantilipids.com/ ":"PROCUT_ORDER_ON_ROCHE_SITE"===p?"http://sequencing.roche.com":"",y="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)(s.A,{...l.A[p],values:{companyName:h,countryName:A,link:(0,i.jsx)("a",{href:x,target:"_blank",rel:"noreferrer",children:y},"product-info-link-".concat(t,"-").concat(n))},children:e=>(0,i.jsx)("span",{children:e})});default:return(0,i.jsx)(s.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,[s]=(0,n.useDecision)(t);return(r?s.variationKey!==l:s.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),s=t(12197),o=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:A,renderFooter:x,onToggle:y,titleIsLink:v}=e,f=(0,n.useMemo)(()=>"accordion-title-".concat((0,u.A)()),[]),b=p(),[T,E]=(0,n.useState)(!1),C=v?"div":l.A;return(0,i.jsxs)("div",{className:b.root,children:[(0,i.jsx)("div",{className:b.itemHeader,children:(0,i.jsxs)(C,{"aria-expanded":v?void 0:T,className:b.toggleButton,onClick:e=>{let a=e.target.closest("a, .".concat(b.toggleButton));(null==a?void 0:a.tagName)!=="A"&&(E(!T),y&&y(!T))},children:[(0,i.jsxs)("div",{className:b.headerWrapper,children:[(0,i.jsx)(s.A,{component:"div",variant:"h2",id:f,...h,children:r.bodyElement(a,!v)}),m&&(0,i.jsx)(s.A,{component:"div",variant:"body2",...A,children:m.bodyElement(a,!0)}),g&&(0,i.jsx)(s.A,{component:"div",variant:"body2",...A,children:g.bodyElement(a,!0)})]}),(()=>{let e=T?(0,i.jsx)(d.A,{}):(0,i.jsx)(c.A,{});return v?(0,i.jsx)(l.A,{className:b.buttonWrapper,"aria-expanded":T,"aria-labelledby":f,children:e}):(0,i.jsx)("div",{className:b.buttonWrapper,children:e})})()]})}),(0,i.jsx)(o.A,{in:T,children:(0,i.jsxs)("div",{className:b.content,children:[(0,i.jsx)("dl",{className:b.descriptionList,children:t.map((e,t)=>{let n=e.headElement,l=!!v&&e===r,o=e.bodyElement(a,l);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(s.A,{component:"dt",variant:"caption",children:[n||e.headElement,e.headElementEndIcon]}),(0,i.jsx)(s.A,{component:"dd",variant:"body1",children:o})]},t)})}),x&&x(a,T)]})})]})},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:s,itemProps:o}=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:s,...o})},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),s=t(49995);let o=(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),A=(0,r.useRef)(null),x=o({cursor:"".concat(c?"zoom-out":"zoom-in"),transform:"scale(".concat(c?"2.5":"1",")"),transformOrigin:"".concat(p,"% ").concat(g,"%")}),y=()=>{u(!c),m(50),h(50),d&&d(!c)};return(0,i.jsx)("div",{className:(0,s.A)(x.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==A?void 0:null===(a=A.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:A,className:x.imageWrapper,onClick:y,onKeyDown:y,role:"button",tabIndex:0,"aria-label":"zoom",children:(0,i.jsx)(l.A,{className:x.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 s=e.currentSlide,o=e.slidesToScroll,d=e.slidesToShow,c=0,u=d;"next"===t&&(u=(c=s+o)+d,e.nextSlide()),"prev"===t&&(u=(c=s-o)+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:()=>o});var i=t(37876),n=t(24315),r=t(61261),l=t(49995);t(14232);let s=(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}})),o=e=>{let{items:a,selectedChip:t,unavailableChips:r,onSelect:o,id:d}=e,c=s();return(0,i.jsx)("div",{className:c.chipDisplay,id:d,children:a.map((e,a)=>{let{label:s,value:d}=e,u=d===t,p=null==r?void 0:r.includes(d);return(0,i.jsx)(n.A,{label:s,variant:"outlined",color:u?"primary":"default",clickable:!0,onClick:()=>o(d),className:(0,l.A)(c.chip,{[c.chip_selected]:u,[c.chip_unavailable]:p,[c.chip_selected_unavailable]:u&&p})},"".concat(a,"-").concat(s,"-").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:s,name:o,brand:d,productId:c,autoPlay:u}=e,p=(0,n.useRef)(null),[m,g]=(0,n.useState)(0),[h,A]=(0,n.useState)(!1),x=Math.round((null===(a=p.current)||void 0===a?void 0:a.duration)||0),y=Math.round(m/x*100)||0,v=e=>{e.forEach(e=>{if(e.isIntersecting)A(!0);else{var a;A(!1),null===(a=p.current)||void 0===a||a.pause()}})},f=e=>{(0,r.KH)({action:e,videoCurrentTime:m,videoDuration:x,videoPercent:y,videoUrl:t,visible:h,productId:c,productName:o,productBrand:d})};return(0,n.useEffect)(()=>{(25===y||50===y||75===y)&&f("progress"),100===y&&f("complete")},[y]),(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:s,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:()=>f("start"),onPause:()=>100!==y&&f("pause"),children:(0,i.jsx)("source",{src:t,type:"video/mp4"})})})}},70210:(e,a,t)=>{t.d(a,{A:()=>eD});var i=t(37876),n=t(14232),r=t(34415),l=t(8733),s=t(61261),o=t(42778),d=t(28975),c=t(71541),u=t(12197),p=t(36503),m=t(5411),g=t(35967),h=t(35877),A=t(61206),x=t(77660),y=t(68351),v=t(28888),f=t(82897),b=t(78248);function T(){let e=(0,v._)(["\n fragment MaterialAvailabilityDetail on MaterialAvailability {\n key\n quantity\n date\n plantLoc\n}\n "]);return T=function(){return e},e}function E(){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 E=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 j(){let e=(0,v._)(["\n query PromotionalBundlesPricing($promotionalBundleId: String!) {\n getPricingForPromotionalBundle(\n input: {promotionalBundleId: $promotionalBundleId}\n ) {\n ...PromotionalBundlePricingDetail\n }\n}\n ",""]);return j=function(){return e},e}let _={},N=(0,f.J1)(T()),S=(0,f.J1)(E(),N),I=(0,f.J1)(C(),S),R=(0,f.J1)(j(),I);var M=t(68748),O=t(21347),P=t(10181),k=t(96241),L=t(67241),B=t(70377),F=t(41683),D=t(57377),w=t(71549),W=t(34341),U=t(54753),H=t(52710);let G=e=>({currency:e.currency,listPriceCurrency:e.currency,listPrice:e.listPrice,price:e.yourPrice}),z=(0,s.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}})),Y=e=>{var a;let{promoBundlePricingData:t}=e,n=z();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)(P.A,{className:n.tableContainer,component:k.A,children:(0,i.jsxs)(L.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)(B.A,{children:(0,i.jsxs)(F.A,{children:[(0,i.jsx)(D.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT})}),(0,i.jsx)(D.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT_NAME})}),(0,i.jsx)(D.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_QUANTITY})}),(0,i.jsx)(D.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_AVAILABILITY})})]})}),(0,i.jsx)(w.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)(H.M,{source:"promo bundle modal",item:null==e?void 0:e.materialNumber,brand:(null==e?void 0:e.brandKey)||void 0,pricing:G(e),waitUntilVisible:!0,children:(0,i.jsxs)(F.A,{children:[(0,i.jsx)(D.A,{className:n.materialNumber,children:e.materialNumber}),(0,i.jsx)(D.A,{className:n.materialDescription,children:(0,i.jsx)(A.A,{value:e.materialName})}),(0,i.jsx)(D.A,{children:e.quantity}),(0,i.jsx)(D.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 q=t(30510),V=t(36382),K=t(38582),Q=t(11788),$=t(99486),X=t(49995),Z=t(66201),J=t(77742),ee=t(78206),ea=t(8335),et=t(99549),ei=t(15329),en=t(57869),er=t(20573),el=t(30373),es=t(59587),eo=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={},eA=(0,f.J1)(eg()),ex=(0,s.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)}})),ey={materialNumber:"",quantity:1},ev={bundleDescription:"",bundleItems:[ey,ey,ey,ey,ey]},ef=e=>e.filter(e=>{let{materialNumber:a}=e;return a}),eb=e=>{let{setCreateCustomBundleModal:a,setShowModal:t}=e,r=ex(),{formatMessage:l}=(0,J.A)(),{setGlobalSnackbarState:s}=(0,K.W)(),[o,d]=(0,n.useState)(!1),[c,{loading:u}]=function(e){let a={...eh};return em.n(eA,a)}(),g=async e=>{let{bundleDescription:i,bundleItems:n}=e,r={bundleDescription:i,bundleItems:ef(n)};await c({variables:{input:r}}),s({open:!0,message:l(U.A.CUSTOM_BUNDLE_REQUEST_SUCCESS),variant:K.m$.Success}),a(!1),t(!1)};return(0,i.jsx)(ee.l1,{initialValues:ev,onSubmit:g,validate:e=>ef(e.bundleItems).length<2?{bundleItems:l(U.A.CUSTOM_BUNDLE_ITEMS_ERROR)}:{},children:e=>{let{values:n,submitForm:s,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)(es.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)(eo.A,{fontSize:"large"}),onClick:()=>a(ey),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:o,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:()=>s(),disabled:u,children:l(U.A.SUBMIT)})]})]})}})};var eT=t(86680),eE=t(88700);let eC=(0,s.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)}})),ej=(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())}))},e_=e=>{let{onClose:a,bundleData:t,productName:r,materialNumber:s,setShowModal:v}=e,f=eC(),T=(0,h.A)(),{getSitePreference:E,userIsLoggedIn:C}=(0,Q.iZ)(),{authorized:j}=(0,$.I)($.N.canAddToCart),{setGlobalSnackbarState:N}=(0,K.W)(),S=(0,V.g9)(),[I,P]=(0,n.useState)({}),[k,L]=(0,n.useState)(1),B=(0,c.A)(T.breakpoints.up("md")),{setGlobalModalComponent:F,clearGlobalModalComponent:D}=(0,o.g)(),w=E(Q.VD.HideAddToCartForPrepackItems),[U,{data:z,loading:J}]=function(e){let a={..._};return b._(R,a)}(),ee=null==z?void 0:z.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:I.promotionalBundleId},ssr:!1},ei=(0,i.jsx)(l.A,{id:"NO_RESULTS_FOUND",defaultMessage:"No results found"}),en=(0,i.jsx)(A.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)(A.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)(H.M,{source:"promo bundle modal",brand:(null==e?void 0:e.brandKey)||void 0,item:null==e?void 0:e.materialNumber,pricing:G(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,es]=er;(0,n.useEffect)(()=>{t.length>0&&P(t[0])},[t]),(0,n.useEffect)(()=>{I.promotionalBundleId&&U(et)},[I.promotionalBundleId]);let eo=async()=>{var e,t;let n=ej(I,z);a("addedToCart"),(0,eT.p8)(n,null!==(t=null==z?void 0:null===(e=z.getPricingForPromotionalBundle)||void 0===e?void 0:e.bundleItems)&&void 0!==t?t:[],eE.k9.PromoBundle,void 0,void 0,void 0,{bundleId:I.bundleId,quantity:k});try{await S([{materialNumber:I.bundleId,quantity:k,materialDescription:I.bundleDescription,materialName:I.bundleName,type:x.iC.PromotionalBundle}])}catch(e){N({open:!0,message:(0,i.jsx)(l.A,{id:"GENERIC_ERROR",defaultMessage:"Sorry, an unexpected error has occurred"}),variant:K.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)(y.A,{items:t.map(e=>{let{bundleId:a,promotionalBundleId:t}=e;return{label:a,value:t}}),selectedChip:I.promotionalBundleId,onSelect:e=>{let a=t.find(a=>{let{promotionalBundleId:t}=a;return t===e});a&&P(a)}}),(0,i.jsx)(u.A,{variant:"body1",className:f.materialNumber,children:(0,i.jsx)(A.A,{value:"".concat(I.bundleId," - ").concat(I.bundleName)})}),(0,i.jsx)(u.A,{className:f.description,children:(0,i.jsx)(A.A,{value:I.bundleDescription})}),(0,i.jsx)(p.A,{container:!0,className:f.pricingContainer,children:J?(0,i.jsx)("div",{className:f.loadingContainer,children:(0,i.jsx)(q.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:f.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:f.priceTag,children:(0,i.jsx)(l.A,{id:"KIT_PRICE",defaultMessage:"Bundle Price"})})]}),ee.listPrice?(0,i.jsx)("div",{className:(0,X.A)(f.listPrice,{[f.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:f.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:f.actionContainer,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:f.liquidQtyInputContainer,children:(0,i.jsx)(M.A,{value:k,min:1,onChange:e=>{L(e)}})}),(0,i.jsx)("div",{children:(0,i.jsx)(O.Ay,{dirty:!0,isSubmitting:!1,canAddToCart:j,hideAddToCartForPrepackItems:w,handleAddToCart:eo,fullWidth:!0})})]})})]}):(0,i.jsx)(u.A,{className:f.errorMessage,children:(0,i.jsx)(l.A,{id:"BUNDLE_UNAVAILABLE",defaultMessage:"Sorry! This Promotional Bundle might not be available in your country."})}),ee&&B?(0,i.jsx)(Y,{promoBundlePricingData:ee}):null]})}),C&&(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(m.A,{style:{paddingLeft:0},onClick:()=>{F((0,i.jsx)(eb,{setCreateCustomBundleModal:D,materialNumber:s,bundleData:t,setShowModal:v}))},children:(0,i.jsx)(l.A,{id:"NEED_MORE_BUNDLE_BUTTON_TEXT",defaultMessage:"Need more bundle options?"})})})]}),B?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{className:f.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)(Z.A,{data:(null==ee?void 0:ee.bundleItems)||[],columns:er,noResultsComponent:ei,accordionTitleColumn:el,accordionSubtitleColumn:es,itemProps:{headerProps:{variant:"h3"}}})]})]})})};var eN=t(89099),eS=t(97710);function eI(){let e=(0,v._)(["\n fragment BundleItems on PromotionalBundleItem {\n materialNumber\n materialIds\n quantity\n discount\n showOnPdp\n}\n "]);return eI=function(){return e},e}function eR(){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 eR=function(){return e},e}function eM(){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 eM=function(){return e},e}let eO={},eP=(0,f.J1)(eI()),ek=(0,f.J1)(eR(),eP),eL=(0,f.J1)(eM(),ek);var eB=t(20534);let eF=(0,s.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)}}})),eD=e=>{var a;let{materialNumber:t,brand:s,productName:d,erp_type:c}=e,u=eF(),{setGlobalModalComponent:p,clearGlobalModalComponent:m}=(0,o.g)(),g=(0,eN.useRouter)(),{getSitePreference:h,isBlueErpIntegrationEnabled:A}=(0,Q.iZ)(),{focus:x="",catalog:y=""}=g.query||{},v=(0,eS.vN)(x||y),f=h(Q.VD.CatalogFilter)||null,T=A&&c&&(null==c?void 0:c.length)>0,[E,C]=(0,n.useState)(!1),j={variables:{brand:null!=s?s:(null==g?void 0:null===(a=g.query)||void 0===a?void 0:a.brand)||"",productNumber:t,materialIds:[t],catalogType:v,orgId:f,...T&&{erp_type:c}}},[_,{data:N,loading:S}]=function(e){let a={...eO};return b._(eL,a)}(),I=()=>{C(!1),m()};return(0,n.useEffect)(()=>{var e;(null==N?void 0:null===(e=N.getPromotionalBundlesForProduct)||void 0===e?void 0:e.length)&&E&&p((0,i.jsx)(e_,{onClose:()=>I(),loading:S,bundleData:N.getPromotionalBundlesForProduct,productName:d,materialNumber:t,setShowModal:C}))},[N,E]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{component:"div",className:u.promoButton,onClick:()=>{C(!0),_(j)},"data-testid":"promo-bundle-button",children:(0,i.jsx)(l.A,{id:"AVAILABLE_IN_KIT_AT_DISCOUNTED_PRICE",defaultMessage:"Buy in a Bundle"})}),S&&(0,i.jsx)(eB.A,{})]})}},71662:(e,a,t)=>{t.d(a,{A:()=>U});var i=t(37876),n=t(14232),r=t(36258),l=t(61261),s=t(49995),o=t(82440),d=t.n(o),c=t(64204),u=t(12197),p=t(92189),m=t(23575),g=t(45496),h=t(77328),A=t.n(h),x=t(71541),y=t(34415),v=t(36503),f=t(5411),b=t(35877),T=t(11148),E=t(52413),C=t(61206),j=t(930),_=t(8733),N=t(54753),S=t(80491),I=t(32148),R=t(65824),M=t(97710),O=t(50524),P=t(71007);let k=(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,o;let{product:d,testId:c,preloadCardImages:p=!1,className:m,mainProduct:g,index:h,type:L}=e,B=k(),F=(0,T.rd)(),[D]=(0,I.useSearchQuery)(),w=(0,b.A)(),W=(0,x.A)(w.breakpoints.up("md")),{addCompareProduct:U,removeCompareProduct:H,sendToDiscontinuedProductCompareDetail:G,compareProducts:z}=(0,S.Zn)(),Y=(null==F?void 0:null===(a=F.query)||void 0===a?void 0:a.catalog)||"",q=(0,M.vN)(Y),V=(0,n.useCallback)((e,a)=>!!z.find(t=>t.productKey===e&&t.brandKey===a&&t.catalogType===q),[z]),K=(0,n.useMemo)(()=>{var e;return V(null!==(e=null==g?void 0:g.productKey)&&void 0!==e?e:"",null==g?void 0:g.brandKey)},[V,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),X=F.asPath.includes("/product"),Z=(0,O.Gd)(),J="".concat(L," - ").concat(Z),ee=K&&z.length>1&&z.length<=4;return(0,n.useEffect)(()=>{if(X&&!K){var e,a;U({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:q})}},[K]),(0,i.jsxs)("div",{className:(0,s.A)(m,"promotions-slider-div"),children:[p&&(0,i.jsx)(A(),{children:(0,i.jsx)("link",{rel:"preload",href:d.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(E.N,{...T.aR.index(null==d?void 0:d.brand.key,null==d?void 0:d.productNumber,{catalog:Y}),children:(0,i.jsx)("a",{"data-testid":$,id:$,role:"link",tabIndex:0,onKeyDown:()=>(0,j.e)({product:d,indexPosition:h,creativeSlot:J,pageType:Z}),onClick:()=>{(0,j.e)({product:d,indexPosition:h,creativeSlot:J,pageType:Z}),(0,P.Lr)(d.productNumber,d.name,d.brand.key,h)},children:(0,i.jsxs)("div",{className:B.mainContent,children:[(0,i.jsx)("div",{className:B.mainContentImage,children:(0,i.jsx)("img",{className:B.image,src:d.images[0].mediumUrl,alt:d.images[0].altText||d.description||d.name,width:"112",height:"50"})}),(0,i.jsxs)("div",{className:B.mainContentText,children:[(0,i.jsx)(u.A,{className:B.productBrand,children:d.brand.name}),Q&&(0,i.jsx)(u.A,{className:B.productNumber,children:null==d?void 0:d.productNumber}),(0,i.jsx)(u.A,{className:B.productName,children:(0,i.jsx)(C.A,{value:d.name})}),(0,i.jsx)(u.A,{className:B.productDescription,children:(0,i.jsx)(C.A,{value:d.description})})]})]})})}),(null==g?void 0:g.showViewDetailsLink)||X?(0,i.jsx)(E.N,{...T.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)(y.A,{className:B.link,children:(0,i.jsx)(_.A,{...N.A.VIEW_PRODUCT_DETAILS})})}):null,W?(0,i.jsxs)(v.A,{container:!0,children:[(0,i.jsx)(v.A,{item:!0,xs:12,children:(0,i.jsx)(R.A,{className:B.checkbox,checked:V(null==d?void 0:d.productNumber,null==d?void 0:null===(o=d.brand)||void 0===o?void 0:o.key),onChange:e=>{let{checked:a}=e.target,t={productKey:null==d?void 0:d.productNumber,brandKey:d.brand.key,images:d.images,catalogType:q};a?U(t):H(t)},label:(0,i.jsx)(u.A,{variant:"body2",component:"span",children:(0,i.jsx)(_.A,{...N.A.COMPARE_WITH_DISCONTINUED_PRODUCT})})})}),(0,i.jsxs)(f.A,{variant:"contained",color:"primary",className:B.compareButton,onClick:()=>{var e;G(D,F,(null==d?void 0:d.productNumber)||"",(null==d?void 0:null===(e=d.brand)||void 0===e?void 0:e.key)||"")},disabled:!ee,children:[(0,i.jsx)(_.A,{id:"COMPARE_SELECTED",defaultMessage:"Compare Selected"}),z.length>0&&" (".concat(z.length,")")]})]}):null]})};var B=t(40352),F=t(68215),D=t(40002);let w=(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)}}})),W=e=>{let{products:a,creativeSlot:t,pageType:n,pageTypeDetails:r}=e,l=w();return{renderCenterLeftControls:e=>{let o=0===e.currentSlide;return(0,i.jsx)(c.A,{className:(0,s.A)(l.navBtn,l.navBtnLarge,l.navBtnLeft),disabled:o,onClick:()=>(0,F.t)(e,a,"prev",t,n,r),"aria-label":"previous",children:(0,i.jsx)(m.A,{className:(0,s.A)(l.icon,{[l.iconDisabled]:o})})})},renderCenterRightControls:e=>{let o=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,F.t)(e,a,"next",t,n,r),"aria-label":"next",children:(0,i.jsx)(g.A,{className:(0,s.A)(l.icon,{[l.iconDisabled]:e.slidesToScroll&&o})})})},renderBottomCenterControls:e=>{let o=0===e.currentSlide,d=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,F.t)(e,a,"prev",t,n,r),"aria-label":"previous",className:(0,s.A)(l.navBtn,l.navBtnSmall),children:(0,i.jsx)(m.A,{className:(0,s.A)(l.icon,{[l.iconDisabled]:o})})}),(0,i.jsxs)(u.A,{variant:"body2",children:[e.currentSlide+1," of ",e.slideCount]}),(0,i.jsx)(c.A,{disabled:d,onClick:()=>(0,F.t)(e,a,"next",t,n,r),"aria-label":"next",className:(0,s.A)(l.navBtn,l.navBtnSmall),children:(0,i.jsx)(g.A,{className:(0,s.A)(l.icon,{[l.iconDisabled]:e.slidesToScroll&&d})})})]})}}},U=e=>{let{type:a,products:t,withoutControls:l,slidesToShow:o,condensed:c,preloadCardImages:u,mainProduct:m}=e,g=w(),h=(0,B.Ay)(),A=(0,O.Gd)(),x="".concat(a," - ").concat(A),y=W({products:t,creativeSlot:x,pageType:A}),v=a===D.j.CartRecommendedProducts,f=h({xs:1,sm:2,lg:3}),b=(0,n.useRef)(null),[T,E]=(0,n.useState)(!1),C=(0,r.B)(b,{threshold:.66});return t&&(null==t?void 0:t.length)?((null==C?void 0:C.isIntersecting)&&!T&&((0,j.W)({creativeSlot:x,pageType:A,products:t}),E(!0)),(0,i.jsx)("div",{"data-testid":a,id:a,className:(0,s.A)({[g.cartRecommended]:v}),ref:b,children:(0,i.jsx)(p.A,{maxWidth:"lg",className:(0,s.A)({[g.withoutControls]:l}),children:(0,i.jsx)("div",{className:(0,s.A)(g.content,{[g.contentCondensed]:c}),children:(0,i.jsx)(d(),{slidesToScroll:o||f,slidesToShow:o||f,disableEdgeSwiping:!0,withoutControls:l,...y,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:()=>b});var i=t(37876);t(14232);var n=t(77660),r=t(12197),l=t(61261),s=t(61206),o=t(52413),d=t(11148),c=t(49995),u=t(8733),p=t(54753),m=t(69605),g=t(35967),h=t(62893),A=t(11788),x=t(55287);let y=(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=y(),{userIsLoggedIn:r}=(0,A.iZ)(),{loading:l,error:s,data:o}=(0,x.WL)({variables:{productNumber:t},skip:!r,ssr:!1}),d=null==o?void 0:null===(a=o.recentOrderItems.orderItems.find(e=>e.product===t))||void 0===a?void 0:a.orderDate;return l||s||!(null==o?void 0:o.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"})]})},f=(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%"}})),b=e=>{let{image:a,brand:t,type:l,productKey:g,productNumber:h,name:A,displaySellerName:x,description:y,additionalInfo:b,classes:T,isMarketplace:E,marketplaceSellerId:C,onProductLinkClick:j,toggleMarketplaceSellerModalOpen:_,showPreviouslyPurchasedChip:N=!1}=e,S=f();return(0,i.jsxs)("div",{className:(0,c.A)(S.productLockupSimple,null==T?void 0:T.root),children:[N&&(0,i.jsx)("div",{className:S.previouslyPurchasedChip,children:(0,i.jsx)(v,{productNumber:h})}),(0,i.jsxs)("div",{className:S.productImageAndInfo,children:[(0,i.jsx)("div",{className:(0,c.A)(S.productImageContainer,null==T?void 0:T.imageContainer),children:(0,i.jsx)("img",{src:a.mediumUrl,alt:a.altText||A,className:S.productImage})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{variant:"caption",className:(0,c.A)(S.brand,null==T?void 0:T.brand),style:t.color?{color:t.color}:{},children:t.name}),E&&C&&(0,i.jsxs)("div",{className:S.sellerInfo,children:[(0,i.jsx)(u.A,{...p.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(o.N,{...d.kJ.index(x||t.key,C),children:(0,i.jsx)("a",{children:x||t.name})}),(0,i.jsx)("span",{className:S.verticalLine}),(0,i.jsxs)("span",{className:S.trustedInfo,children:[(0,i.jsx)(u.A,{...p.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(m.A,{className:S.infoIcon,onClick:()=>!!_&&_()})]})]}),(0,i.jsx)(r.A,{variant:"h3",component:"div",className:(0,c.A)(S.heading,null==T?void 0:T.heading),children:A&&t.key&&g?(0,i.jsx)(o.N,{...d.aR.index(t.key,g,l===n.iC.ThirdPartyProvider?{context:"bbe"}:{}),passHref:!0,children:(0,i.jsx)("a",{onClick:j,children:h})}):h}),(0,i.jsx)(r.A,{variant:"h3",className:(0,c.A)(S.heading,null==T?void 0:T.heading),children:(0,i.jsx)(s.A,{value:A})}),y&&(0,i.jsx)(r.A,{className:(0,c.A)(S.description,S.clampLines,null==T?void 0:T.description),children:(0,i.jsx)(s.A,{value:y})}),b]})]})]})}},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),s=t(17357),o=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:s}=e;return(0,i.jsx)("button",{className:(0,d.A)(...r),type:"button",disabled:l,"aria-label":t,onClick:a,id:s,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],A=(0,i.jsx)("div",{className:(0,d.A)(p.baseButton,p.ellipsis,p.hideOnMobile),children:"..."}),x=(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),y=(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)(s.A,{})},"previous"),2===h&&y,h>2&&(0,i.jsxs)(i.Fragment,{children:[y,A]}),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&&x,t-g>1&&(0,i.jsxs)(i.Fragment,{children:[A,x]}),(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)(o.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 s(){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 s=function(){return e},e}let o={},d=(0,n.J1)(l()),c=(0,n.J1)(s(),d);function u(e){let a={...o,...e};return r.IT(c,a)}},74770:(e,a,t)=>{t.d(a,{A:()=>s});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}})),s=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:()=>O});var i=t(37876),n=t(12197),r=t(36503),l=t(15319),s=t(7645),o=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 A=(0,t(82897).J1)(h());var x=t(87165),y=t(54753),v=t(82250),f=t(11788),b=t(17685),T=t(49995),E=t(14232),C=t(8733),j=t(77742),_=t(16703),N=t(33159);let S=(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}})),I=e=>{let{isSettingDealer:a}=e;return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)(C.A,{...y.A.SET_PREFERRED_DEALER}):(0,i.jsx)(C.A,{...y.A.SELECT_VIEW_PRICING})})},R=e=>{let{dealerCount:a}=e,{formatMessage:t}=(0,j.A)(),n=t(y.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)})},M=(e,a)=>"SET_SELECTED_DEALER_ID"===a.type?a.payload:e,O=e=>{var a,t;let{open:d,onClose:g,values:h,materialPricing:O,setFieldValue:P,setIsModalOpen:k,onDealerSelect:L,onDealerSelectCallback:B,onSearch:F,isSavingDealerPreference:D=!0,disabled:w,dealers:W,btnTextOverride:U}=e,H=S(),G=(0,j.A)(),[z,Y]=(0,E.useReducer)(M,null),[q,V]=(0,E.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:K,userId:Q}=(0,f.iZ)(),{userSession:$}=(0,b.j)(),[X,Z]=(0,E.useState)(""),[J,ee]=(0,E.useState)(X),[ea,{loading:et}]=(0,x.Nj)({refetchQueries:[{query:m.I},{query:A,context:{userSession:$},variables:{countryCode:null==$?void 0:$.country,stateCode:String(K)}}],awaitRefetchQueries:!0}),ei=async e=>{try{if(!Q)throw Error("userId is required to update dealer");if(!e)throw Error("dealerId is required to update dealer");return await ea({variables:{userId:Q,data:{dealerId:e}}}),B&&B(),g()}catch(e){return console.error((0,v.Mw)(e).displayableError),g()}};return(0,_.A)(()=>{F&&X&&F(X),ee(X)},500,[X]),(0,i.jsx)(u.A,{open:d,onClose:g,renderTitle:()=>(0,i.jsx)(n.A,{variant:"h2",children:D?(0,i.jsx)(C.A,{...y.A.SELECT_PREFERRED_DEALER}):(0,i.jsx)(R,{dealerCount:null==W?void 0:W.length})}),size:u.I.Large,children:(0,i.jsxs)(i.Fragment,{children:["JP"===$.country&&(0,i.jsx)(r.A,{container:!0,className:(0,T.A)(H.inputContainer,H.disclaimerContainer),children:D?(0,i.jsx)(C.A,{...y.A.DEALER_SELECT_MODAL_DISCLAIMER}):(0,i.jsx)(C.A,{...y.A.DEALER_UPDATE_PRICING_DISCLAIMER})}),(0,i.jsx)(r.A,{className:H.inputContainer,children:(0,i.jsx)(c.A,{className:H.input,onChange:e=>Z(e.target.value),placeholder:G.formatMessage(y.A.ENTER_DEALER_NAME_OR_LOCATION),size:"small",value:X,endAdornment:(0,i.jsx)(l.A,{position:"end",className:H.searchIconContainer,children:(0,i.jsx)(p.default,{color:"primary"})})})}),(0,i.jsx)(s.A,{className:H.listContainer,children:(0,i.jsx)(N.A,{selectDealer:(e,a)=>{Y({type:"SET_SELECTED_DEALER_ID",payload:e!==z?e:null}),V(a!==q?a:void 0)},selectedDealerId:z,searchTerm:J})}),(0,i.jsxs)(r.A,{container:!0,className:H.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)(o.A,{size:"large",color:"primary",variant:"outlined",className:H.selectButton,onClick:g,"data-testid":"select-dealer-cancel",id:"select-dealer-submit",children:(0,i.jsx)(C.A,{...y.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)(o.A,{size:"large",color:"primary",variant:"contained",className:H.selectButton,onClick:()=>L&&h&&O&&P&&k?L(z,h,O,P,k,q):ei(z),disabled:w||et||!z,"data-testid":"select-dealer-submit",id:"select-dealer-submit",children:U?(0,i.jsx)(C.A,{...U}):(0,i.jsx)(I,{isSettingDealer:D})})})})]})]})})}},75933:(e,a,t)=>{t.d(a,{A:()=>_});var i=t(37876),n=t(14232),r=t(71541),l=t(48829),s=t(12197),o=t(5411),d=t(64204),c=t(80491),u=t(99220),p=t(35877),m=t(11148),g=t(32148),h=t(97710),A=t(52413),x=t(43965);let y=(0,u.n9)()(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,{classes:l}=y(),{removeCompareProduct:s}=(0,c.Zn)(),o=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:o?(0,i.jsx)("div",{className:l.imageContainer,children:(0,i.jsx)("img",{className:l.image,src:o.smallUrl||o.mediumUrl,alt:(null==o?void 0:o.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)(A.N,{...m.aR.index(r,t,{catalog:(0,h.vN)(h.Xc.Products)}),passHref:!0,children:n||t})})]}),(0,i.jsx)(d.A,{onClick:()=>s({brandKey:r,productKey:t}),children:(0,i.jsx)(x.A,{className:l.x})})]})};var f=t(8733),b=t(34669),T=t(76594),E=t(18847);let C=t.n(E)()(()=>t.e(2974).then(t.bind(t,42974)),{loadableGenerated:{webpack:()=>[42974]},loadableGenerated:{webpack:()=>[42974]},ssr:!1}),j=(0,u.n9)()(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}})),_=e=>{let{isAemDrawer:a=!1}=e,{compareProducts:t,clearAllCompareProducts:u,sendToProductCompareDetail:h}=(0,c.Zn)(),A=(0,m.rd)(),[x]=(0,g.useSearchQuery)(),{classes:y}=j(),E=(0,p.A)(),_=(0,r.A)(E.breakpoints.up("md")),[N,S]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{S(!0)},[]),N)?a?(0,i.jsx)(C,{}):(0,i.jsx)(l.Ay,{anchor:"bottom",open:_&&t.length>0,variant:"persistent",className:y.drawer,children:(0,i.jsxs)("div",{className:y.root,children:[(0,i.jsx)("div",{className:y.instructionsContainer,children:(0,i.jsx)(s.A,{className:y.instructions,component:"h3",children:(0,i.jsx)(f.A,{...b.A.CHOOSE_UP_TO_FOUR_PRODUCTS})})}),(0,i.jsx)("div",{className:y.productsContainer,children:(0,T.A)(4,e=>t[e]?(0,i.jsx)(v,{...t[e]},t[e].productKey):(0,i.jsx)("div",{className:y.blank},e))}),(0,i.jsxs)("div",{className:y.btnContainer,children:[(0,i.jsx)(o.A,{disabled:t.length<2,variant:"outlined",color:"primary",size:"medium",onClick:()=>h(x,A),children:(0,i.jsx)(f.A,{...b.A.COMPARE})}),(0,i.jsx)(d.A,{className:y.clearBtn,onClick:()=>u(),children:(0,i.jsx)(f.A,{...b.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),s=t(71541),o=t(11148);let d=e=>{let{buttonMessage:a,fullWidth:t=!1,size:d="large"}=e,c=(0,l.A)(),u=(0,s.A)(c.breakpoints.up("md")),p=(0,o.rd)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.A,{color:"primary",fullWidth:!u||t,size:d,variant:"contained",href:"".concat(o.VV.index(),"?redirect=").concat(encodeURIComponent(p.asPath||o.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 s(){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 s=function(){return e},e}let o={},d=(0,n.J1)(s(),r.z);function c(e){let a={...o,...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 s(){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 s=function(){return e},e}let o={},d=(0,n.J1)(s());function c(e){let a={...o,...e};return r.IT(d,a)}function u(e){let a={...o,...e};return l._(d,a)}},77100:(e,a,t)=>{t.d(a,{Rj:()=>h});var i=t(28888);t(37876);var n=t(82897);t(14232);var r=t(54431);function l(){let e=(0,i._)(["\n fragment GeneVariantFields on GeneVariant {\n commonName\n symbol\n geneId\n description\n taxonId\n}\n "]);return l=function(){return e},e}function s(){let e=(0,i._)(["\n fragment GeneFields on Gene {\n symbol\n name\n relatedCategories {\n name\n }\n summary\n synonyms\n variants {\n ...GeneVariantFields\n }\n}\n ",""]);return s=function(){return e},e}function o(){let e=(0,i._)(["\n fragment GeneSearchFields on GeneSearchResults {\n metadata {\n itemCount\n page\n perPage\n numPages\n }\n items {\n ...GeneFields\n }\n facets {\n key\n numToDisplay\n isHidden\n isCollapsed\n multiSelect\n options {\n value\n count\n }\n }\n}\n ",""]);return o=function(){return e},e}function d(){let e=(0,i._)(["\n query GeneSearch($searchTerm: String, $page: Int!, $selectedFacets: [FacetInput!], $type: GeneSearchType, $sort: Sort) {\n getGeneSearchResults(\n input: {searchTerm: $searchTerm, pagination: {page: $page}, facets: $selectedFacets, type: $type, sort: $sort}\n ) {\n ...GeneSearchFields\n }\n}\n ",""]);return d=function(){return e},e}let c={},u=(0,n.J1)(l()),p=(0,n.J1)(s(),u),m=(0,n.J1)(o(),p),g=(0,n.J1)(d(),m);function h(e){let a={...c,...e};return r.IT(g,a)}},77197:(e,a,t)=>{t.d(a,{Ay:()=>f,tq:()=>v});var i=t(37876);t(14232);var n=t(99220),r=t(12197),l=t(92189),s=t(51722),o=t(77742),d=t(8733),c=t(77660),u=t(90589),p=t(54753),m=t(51684),g=t(11148),h=t(12399),A=t(71007),x=t(46129);let y=(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 f=()=>{let{classes:e}=y(),{formatMessage:a}=(0,o.A)(),t=(0,g.rd)();return(0,i.jsxs)(s.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,A.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"})]})}},79965:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(99220),r=t(72185),l=t(5411),s=t(8733),o=t(46129),d=t(11148),c=t(64272);let u=(0,n.n9)()(e=>({actionButton:{marginTop:e.spacing(5),padding:e.spacing(2,6)},alertBanner:{backgroundColor:e.palette.primary.light,border:"1px solid ".concat(e.palette.primary.main),color:e.palette.common.black,justifyContent:"center",padding:e.spacing(3,0),textAlign:"center"}})),p=e=>{let{actionButtonText:a,alertMessage:t,gaSection:n}=e,{classes:p}=u();return(0,i.jsxs)(r.A,{className:p.alertBanner,"data-testid":"shopping-ai-banner",icon:!1,variant:"outlined",role:"alert","aria-live":"assertive",children:[t,(0,i.jsx)(o.N,{"data-testid":"shopping-ai-banner-action-button",href:d._W.index(),children:(0,i.jsx)(l.A,{className:p.actionButton,color:"primary",variant:"outlined",onClick:()=>{(0,c.BI)({payload:{event:"ls_ai_interaction",action:"open ai tool",detail:void 0,section:n,component:"body",element_type:"button",element_text:a||"try it out",link_url:d._W.index(),core_event:"no",user_detail:void 0,event_group:void 0,event_subgroup:void 0,product_id:void 0,product_brand:void 0}})},"aria-label":a?"".concat(a):"Try it out",children:a||(0,i.jsx)(s.A,{id:"TRY_IT_OUT",defaultMessage:"Try It Out"})})})]})}},80491:(e,a,t)=>{t.d(a,{NN:()=>A,Zn:()=>x,lz:()=>m,wv:()=>g});var i=t(14232),n=t(30915),r=t.n(n),l=t(47801),s=t(11148),o=t(77660),d=t(71007),c=t(54366),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===o.Mh.B2b?r.catalogType=o.Mh.B2b:n===o.Mh.Buildingblocks?r.catalogType=o.Mh.Buildingblocks:n===o.Mh.Sial&&(r.catalogType=o.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",A=4;function x(){let e=(0,l.Fo)(h,[]),a=(0,i.useCallback)(a=>Array.isArray(e)?e.length>=A?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)},[]),o=(0,i.useMemo)(()=>Array.isArray(e)?e:[],[e]);return{compareProducts:o,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(s.aR.compare(),"?").concat(r().stringify(l)))},[e]),sendToDiscontinuedProductCompareDetail:(0,i.useCallback)((a,t,i,n)=>{let{pathAfterBasename:l}=(0,u.yp)(t.asPath);(0,d.OT)({action:"compare with discontinued products",detail:null==e?void 0:e.map(e=>e.productKey).join("|"),section:"recommended alternatives",component:"body",elementType:"button",elementText:"compare selected",productId:i,productBrand:n});let o=g(e||[]),c={...a,products:o,returnUrl:l};return t.push("".concat(s.aR.compare(),"?").concat(r().stringify(c)))},[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 s(){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 s=function(){return e},e}function o(){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 o=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)(s(),u),m=(0,n.J1)(o(),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),s=t(49995),o=t(11148),d=t(8733),c=t(61261),u=t(7645),p=t(5411),m=t(34415),g=t(77501),h=t(52413),A=t(75352),x=t(82250),y=t(54753),v=t(11788),f=t(69485),b=t(17685);let{publicRuntimeConfig:{featureFlags:T}}=l()(),E=(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:j="",materialPricing:_,isCenterJustified:N=!0,handlePriceUpdateForDealer:S}=e,I=E(),R=(0,o.rd)(),{isDTAQZuCustomer:M}=(0,v.iZ)(),[O,P]=(0,n.useState)(!1),k=t?(0,x.Mw)(t).errors[0]:void 0,L=(null==k?void 0:null===(a=k.misc)||void 0===a?void 0:a.hideTechnicalServiceLink)===void 0||k.misc.hideTechnicalServiceLink,B=l&&!!c&&!!C&&!!j,F=T.dealerCartEnabled&&M,D=(null==k?void 0:k.code)&&y.A[k.code]||y.A.PRICING_AND_AVAILABILITY_UNAVAILABLE,{userSession:{country:w}}=(0,b.j)();return(0,i.jsxs)("div",{className:(0,s.A)(I.row,{[I.rowFormatting]:N}),children:[(0,i.jsx)(u.A,{mr:2,children:(0,i.jsx)(g.default,{color:"error"})}),(0,i.jsxs)(u.A,{className:(0,s.A)({[I.centerJustified]:N}),children:[(0,i.jsx)("span",{className:(0,s.A)({[I.errorText]:N}),children:(null==k?void 0:k.code)==="EMD_MILLIPORE_PRICING_AND_INVENTORY_UNAVAILABLE"?"US"===w?(0,i.jsx)(f.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:o.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(d.A,{id:"CONTACT_CUSTOMER_SERVICE_FIRST_UPPERCASE",defaultMessage:"Contact Customer Service"})})})}}):"CA"===w?(0,i.jsx)(f.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:o.mA.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)(f.J,{...D,values:{link:(0,i.jsx)("a",{href:"http://www.emdmillipore.com/",children:"Millipore"})}}):(null==k?void 0:k.code)==="MERCK_MILLIPORE_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(f.J,{...D,values:{link:(0,i.jsx)("a",{href:"http://www.merckmillipore.com/",children:"Merck Millipore"})}}):(null==k?void 0:k.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE_HAS_STOCK"||(null==k?void 0:k.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(f.J,{...D,values:{productNumber:r,link:(0,i.jsx)("a",{href:"http://hg.y866.cn/germ/",target:"_blank",rel:"noreferrer",children:"Sigma-Aldrich"})}}):(null==k?void 0:k.code)==="PRODUCT_ONLY_SOLD_VIA_OFFLINE_CHANNELS"?(0,i.jsx)(f.J,{...D,values:{link:(0,i.jsx)(h.N,{href:o.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(d.A,{id:"PLEASE_CONTACT_CUSTOMER_SERVICE",defaultMessage:"Please Contact Customer Service"})})})}}):(null==k?void 0:k.code)==="CUSTOMER_NUMBER_BLOCKED"?(0,i.jsx)(f.J,{...D,values:{customerNumber:(null==k?void 0:k.paramList)?null==k?void 0:k.paramList[0]:""}}):r?(0,i.jsx)(f.J,{...D,values:{productNumber:(0,i.jsx)("b",{children:r})}}):(0,i.jsx)(f.J,{...D})}),L||B?null:(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(h.N,{href:o.mA.customerSupport(),passHref:!0,children:(0,i.jsx)(m.A,{color:"primary",className:I.errorText,children:(0,i.jsx)(d.A,{...y.A.CONTACT_TECHNICAL_SERVICE})})})]}),B?(0,i.jsxs)("span",{className:I.errorContact,children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(h.N,{...o.kJ.contact(c,C,R.asPath,o.C2.OFFER_MESSAGING,j),children:(0,i.jsx)("a",{children:(0,i.jsx)(d.A,{...y.A.CONTACT_SELLER_WITH_NAME,values:{sellerName:c}})})})]}):null,F&&(0,i.jsx)(p.A,{variant:"text",className:I.seeDealerOptionsLink,onClick:()=>P(!0),children:(0,i.jsx)(d.A,{...y.A.SEE_ALL_BUYING_OPTIONS})}),F&&S&&O&&(0,i.jsx)(A.A,{values:{},materialPricing:_,isSavingDealerPreference:!1,setFieldValue:e=>e,setIsModalOpen:P,onDealerSelect:(e,a)=>S(e,{},_,e=>e,P,a),open:O,onClose:()=>P(!1),disabled:!1})]})]})}},84627:(e,a,t)=>{t.d(a,{A:()=>f});var i=t(37876),n=t(99220),r=t(21018),l=t(8392),s=t(36503),o=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)(s.A,{container:!0,children:[(0,i.jsx)(s.A,{item:!0,xs:12,className:t.vr6,children:(0,i.jsxs)(o.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)(s.A,{item:!0,xs:12,className:t.exampleContainer,children:[(0,i.jsx)(o.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)(o.A,{variant:"body2",className:n(t.vr4,t.copyText),children:(0,i.jsx)(c.A,{...u.A.ADDITIONAL_EXAMPLES})}),(0,i.jsxs)(s.A,{container:!0,justifyContent:"center",alignItems:"flex-start",className:n(t.additionalExamplesContainer),children:[(0,i.jsx)(s.A,{item:!0,xs:12,md:6,className:t.vr4,children:(0,i.jsxs)(o.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)(s.A,{item:!0,xs:12,md:6,className:t.vr4,children:(0,i.jsxs)(o.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)(s.A,{item:!0,xs:12,md:6,className:t.vr4,children:(0,i.jsxs)(o.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)(s.A,{item:!0,xs:12,md:6,children:[(0,i.jsx)(o.A,{variant:"body1",children:(0,i.jsx)("span",{className:t.boldWeight,children:"1000309185"})}),(0,i.jsxs)(o.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)(o.A,{variant:"body2",className:t.copyText,children:[(0,i.jsx)(c.A,{...u.A.HAVING_TROUBLE}),(0,i.jsx)(m.N,{href:p.mA.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.mA.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 A=t(77742);let x=(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)}})),y=e=>{let{type:a,requestCertLinkClicked:t}=e,{classes:n}=x(),{formatMessage:r}=(0,A.A)(),l="request "+a.toLowerCase(),s=l+" link";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.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)(o.A,{variant:"body1",className:n.bodyText,children:r(u.A.REQUEST_CERTIFICATE_INSTRUCTIONS,{type:a})}),(0,i.jsx)(o.A,{variant:"body1",children:(0,i.jsx)(d.A,{href:p.mA.customerSupport(),onClick:()=>t?t(s,{action:l,component:"right rail",elementType:"link",elementText:l,linkUrl:p.mA.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)}}})),f=e=>{let{analyticsCallback:a,certificateType:t}=e,{classes:n}=v(),s=(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=>s("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=>s("How to Find a Lot/Batch Number for ".concat(t),e)})]}),t&&(0,i.jsx)(y,{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:()=>R,j5:()=>I});var i=t(37876),n=t(14232),r=t(8733),l=t(61261),s=t(34415),o=t(36503),d=t(5411),c=t(11148),u=t(54753),p=t(97710),m=t(52413),g=t(46236),h=t(71541),A=t(12197),x=t(35877),y=t(49691),v=t(62155),f=t(86024),b=t(66896),T=t(93186),E=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)}}})),j=e=>{let{catalogOverride:a=null,catalogType:t,open:n,setModalOpen:l,substance:o,substanceName:d}=e,j=C(),_=(0,x.A)(),N=(0,c.rd)(),S=(0,p.h2)({focus:N.query.focus}),I=(0,h.A)(_.breakpoints.up("md")),{products:R,images:M,name:O,synonyms:P,casNumber:k,molecularWeight:L,linearFormula:B,aliases:F,id:D}=o,w=null==F?void 0:F.find(e=>e.key===p.VT.EcNumber),W=null==F?void 0:F.find(e=>e.key.includes(p.VT.BeilsteinRegistryNumber)),U=null!=a?a:(0,p.vN)(null!=t?t:S.focus),H=e=>1===R.length?(0,i.jsx)(m.N,{...c.aR.index(R[0].brand.key,R[0].productKey,{catalog:U}),passHref:!0,children:(0,i.jsx)(s.A,{children:e})}):(0,i.jsx)(m.N,{...c.SL.index(D,U),passHref:!0,children:(0,i.jsx)(s.A,{children:e})});return(0,i.jsx)(f.A,{open:n,size:f.I.Large,onClose:()=>l(!1),children:(0,i.jsxs)("div",{className:j.mainContainer,children:[(0,i.jsxs)("div",{className:j.substance,children:[(0,i.jsx)("div",{className:j.imgWrapper,children:(0,i.jsx)(g.A,{image:M[0],altTextFallback:O})}),(0,i.jsxs)("div",{className:j.substanceDetailsContainer,children:[(0,i.jsx)(A.A,{className:j.substanceName,component:"h2",variant:"h3",children:d}),(null==P?void 0:P.length)?(0,i.jsx)(y.Ay,{message:u.A.SYNONYMS,searchValue:P.join(", "),classes:j.breakWord}):null,L?(0,i.jsx)(y.Ay,{message:u.A.MOLECULAR_WEIGHT,searchValue:L,classes:j.breakAll}):null,k?(0,i.jsx)(y.Ay,{message:u.A.CAS_NO,searchValue:k,classes:j.link,searchFocusType:(0,p.UQ)(S.focus),productSearchType:p.mI.CasNumber}):null,w?(0,i.jsx)(y.Ay,{message:u.A.EC_NO,searchValue:w.value,searchFocusType:null!=a?a:(0,p.UQ)(S.focus),productSearchType:p.mI.EgecNumber,classes:j.link}):null,W?(0,i.jsx)(y.Ay,{message:u.A.BEILSTEIN_NO,searchValue:W.value,classes:j.breakAll}):null,B?(0,i.jsx)(y.Ay,{message:u.A.MOLECULAR_FORMULA,searchValue:B,classes:j.breakWord}):null]})]}),(0,i.jsx)("div",{children:(0,i.jsx)(E.M,{source:"srp - ".concat(S.focus),children:I?(0,i.jsx)(v.Ay,{products:R,displayBadgesOnProduct:!0,focus:null!=a?a:(0,p.UQ)(S.focus),displayViewLink:!1}):(0,i.jsx)("div",{className:j.mobileProductTable,children:(0,i.jsx)(T.A,{products:R,displayBadgesOnProduct:!0,focus:null!=a?a:(0,p.UQ)(S.focus)})})})}),(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:j.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:H(e)}),(0,i.jsx)(b.A,{className:j.caretRight})]})})})})]})})};var _=t(61206),N=t(96707);let S=(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)}})),I=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},R=e=>{let{substance:a,catalogOverride:t=null,colorIndex:l=0}=e,h=S(),A=a.products?[...a.products]:[a],{casNumber:x,molecularWeight:v,linearFormula:f,name:b,id:T,images:E}={...a,products:A},[C,R]=(0,n.useState)(!1),M=(0,c.rd)(),O=M.query.catalogType,P=(0,p.h2)({focus:M.query.focus,catalogType:(0,p.vN)(O)}),k=null!=t?t:(0,p.vN)(P.catalogType||P.focus),L=()=>{let e=(0,i.jsx)("title",{className:h.substanceName,children:(0,i.jsx)("span",{title:b,children:(0,i.jsx)(_.A,{value:b})})});return(null==A?void 0:A.length)===1?(0,i.jsx)(m.N,{...c.aR.index(A[0].brand.key,A[0].productKey,{catalog:k}),passHref:!0,children:(0,i.jsx)(s.A,{children:e})}):(0,i.jsx)(m.N,{...c.SL.index(T,k),passHref:!0,children:(0,i.jsx)(s.A,{children:e})})},B=P.focus===p.Xc.StructureSearch?I(A):null;return(0,i.jsxs)(o.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)(o.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:E[0],altTextFallback:b,width:"270",height:"185"})}),(0,i.jsx)(d.A,{variant:"contained",color:"primary",className:h.button,onClick:()=>R(!0),children:(0,i.jsx)(r.A,{...u.A.QUICK_VIEW})})]})}),(0,i.jsxs)(o.A,{xs:8,sm:12,container:!0,className:h.substanceGridWrapper,children:[(0,i.jsx)("div",{className:h.substanceNameWrapper,children:L()}),(0,i.jsx)(o.A,{container:!0,className:h.productDetails,children:(0,i.jsxs)(o.A,{container:!0,item:!0,direction:"column",sm:12,spacing:1,children:[x?(0,i.jsx)(o.A,{item:!0,children:(0,i.jsxs)(N.A,{display:"flex","flex-direction":"row",children:[(0,i.jsx)(y.qj,{message:u.A.CAS_NUMBER_ABBREV}),(0,i.jsx)(y.m5,{searchFocusType:(0,p.UQ)(P.focus),searchValue:x,productSearchType:p.mI.CasNumber,classes:h.link})]})}):null,v?(0,i.jsx)(o.A,{item:!0,children:(0,i.jsxs)(N.A,{display:"flex","flex-direction":"row",children:[(0,i.jsx)(y.qj,{message:u.A.MOLECULAR_WEIGHT_ABBREV}),(0,i.jsx)(_.A,{value:v,className:h.truncate})]})}):null,f?(0,i.jsx)(o.A,{item:!0,children:(0,i.jsxs)(N.A,{display:"flex","flex-direction":"row",children:[(0,i.jsx)(y.qj,{message:u.A.MOLECULAR_FORMULA_ABBREV}),(0,i.jsx)(_.A,{value:f,className:h.truncate})]})}):null]})}),B?(0,i.jsx)(o.A,{container:!0,item:!0,sm:12,className:h.similarity,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{item:!0,children:(0,i.jsx)("span",{className:h.percentage,children:"".concat(B,"% ")})}),(0,i.jsx)(o.A,{item:!0,children:(0,i.jsx)(r.A,{...u.A.SIMILARITY})})]})}):null]}),(0,i.jsx)(j,{catalogOverride:k,catalogType:k,open:C,setModalOpen:R,substance:a,substanceName:L()})]})}},85581:(e,a,t)=>{t.d(a,{A:()=>h});var i=t(37876);t(14232);var n=t(77328),r=t.n(n),l=t(5411),s=t(99220),o=t(11148),d=t(52413),c=t(930),u=t(50524),p=t(8733),m=t(92827);let g=(0,s.n9)()(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"}})),h=e=>{var a;let{product:t,testId:n,onViewPrice:s,onLinkClick:h,preloadCardImages:A=!1,className:x,isRaisedCardLayout:y,index:v,type:f,hideProductImg:b=!1,displayDiscount:T}=e,E=(0,o.rd)(),C=(null==E?void 0:null===(a=E.query)||void 0===a?void 0:a.catalog)||"",{classes:j,cx:_}=g(),N="product-card-".concat(t.productNumber).concat(t.brand.key,"-").concat(n),S=(0,u.Gd)(),I="".concat(f," - ").concat(S);return(0,i.jsxs)("div",{className:_(x,"promotions-slider-div"),children:[A&&(0,i.jsx)(r(),{children:(0,i.jsx)("link",{rel:"preload",href:t.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(d.N,{...o.aR.index(t.brand.key,t.productKey,{catalog:C}),passHref:!0,children:(0,i.jsx)("a",{className:j.link,"data-testid":N,id:N,onClick:()=>{h&&h(),(0,c.e)({product:t,indexPosition:v,creativeSlot:I,pageType:S})},children:(0,i.jsx)(m.D,{productNumber:t.productNumber,brand:t.brand,name:t.name,description:t.description,image:b?void 0:t.images[0],isRaisedCardLayout:y,displayDiscount:T,discount:t.discount})})}),(0,i.jsx)("div",{className:_({[j.footer]:!y,[j.footerRaisedCard]:y}),children:(0,i.jsx)(l.A,{size:"large",color:"primary",variant:"outlined",fullWidth:!0,onClick:()=>{s(),(0,c.e)({product:t,indexPosition:v,creativeSlot:I,pageType:S})},className:j.btn,children:(0,i.jsx)(p.A,{id:"QUICK_VIEW",defaultMessage:"Quick View"})})})]})}},86063:(e,a,t)=>{t.d(a,{A:()=>i.Ay});var i=t(85366)},86367:(e,a,t)=>{t.d(a,{A:()=>eu});var i=t(37876),n=t(14232),r=t(39324),l=t.n(r),s=t(89099),o=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),A=t(5411),x=t(77742),y=t(8733),v=t(49995),f=t(776),b=t(36382),T=t(10113),E=t(17679),C=t(11788),j=t(88887),_=t(68748),N=t(61206),S=t(21289),I=t(70114);let R=(0,d.A)(e=>({shippingMessage:{display:"flex",alignItems:"center",fontSize:e.typography.pxToRem(14),"& > *":{marginRight:e.spacing(2)}}})),M=e=>{let{material:a}=e,t=R();return(0,i.jsxs)(i.Fragment,{children:[a.shipsToday&&(0,i.jsxs)(h.A,{mb:6,className:t.shippingMessage,children:[(0,i.jsx)(S.A,{}),(0,i.jsx)(y.A,{...g.A.SHIPS_TODAY})]}),a.freeFreight&&(0,i.jsxs)(h.A,{mb:6,className:t.shippingMessage,children:[(0,i.jsx)(I.A,{color:"secondary"}),(0,i.jsx)(y.A,{...g.A.FREE_FREIGHT})]})]})},O=(0,d.A)(e=>({vr4:{marginBottom:e.spacing(4)}})),P=e=>{let{contactInfo:a}=e,t=O();return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)("div",{className:t.vr4,children:(0,i.jsx)("i",{children:(0,i.jsx)(y.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)(y.A,{id:"INQUIRE_FOR_PRICE_AND_AVAILABILITY",defaultMessage:"Please inquire for price and availability"})})})})};var k=t(35967),L=t(12197),B=t(95349);let F=(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)}}})),D=e=>{let{material:a}=e,t=F();return a.hidePriceMessageKey?(0,i.jsx)(B.A,{msgKey:a.hidePriceMessageKey}):(0,i.jsxs)("div",{className:t.pricingInfo,children:[!!a.price&&(0,i.jsx)(L.A,{variant:"h2",component:"div",children:(0,i.jsx)(k.Gr,{style:"currency",currencyDisplay:"symbol",currency:a.currency,value:a.price})}),a.price&&a.listPrice&&a.listPrice>a.price?(0,i.jsx)(L.A,{variant:"h2",component:"div",className:t.listPrice,children:(0,i.jsx)(k.Gr,{style:"currency",currencyDisplay:"symbol",currency:a.currency,value:a.listPrice})}):null]})};var w=t(77501),W=t(75352),U=t(85150),H=t(73431),G=t(17685);let z=e=>{let{dealerCount:a}=e,{formatMessage:t}=(0,x.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)})},Y=e=>{let{preferredDealerName:a,noPriceForDealer:t}=e,{formatMessage:n}=(0,x.A)(),r=(0,U.A)();if(t)return(0,i.jsxs)("span",{className:r.seeDealerOptionsText,children:[(0,i.jsx)(w.default,{color:"error",className:r.errorIcon}),(0,i.jsx)(y.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,{})},q=e=>{let{customerPricingResponse:a,materialPricing:t,selectCallback:r,setFieldValue:l,values:s}=e,o=(0,U.A)(),{getSitePreference:d,isDTAQZuCustomer:c,currentUserState:u,userIsLoggedIn:p}=(0,C.iZ)(),{userSession:m}=(0,G.j)(),[g,x]=(0,n.useState)(0),[y,v]=(0,n.useState)(!1),f=d(C.VD.PreferredDealerInfo),b=null==f?void 0:f.orgName,[T,E]=(0,n.useState)(b),{data:j,refetch:_,error:N}=(0,H.AW)({context:{userSession:m},errorPolicy:"all",variables:{countryCode:null==m?void 0:m.country,stateCode:String(u),searchTerm:""},skip:!p||!c}),S=async e=>{await _({countryCode:m.country,stateCode:String(u),searchTerm:e.toLowerCase()})};return(0,n.useEffect)(()=>{if(j&&0===g){var e;x(null==j?void 0:null===(e=j.getDealers)||void 0===e?void 0:e.length)}},[j]),(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==j?void 0:j.getDealers.find(e=>e.id===r);v(!1),E(l)}},[null==a?void 0:a.data]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(h.A,{mb:6,children:[b&&(0,i.jsx)(Y,{preferredDealerName:null!=T?T:b,noPriceForDealer:!1}),(0,i.jsx)(A.A,{variant:"text",className:o.seeDealerOptionsLink,onClick:()=>v(!0),children:(0,i.jsx)(z,{dealerCount:g})})]}),y&&(0,i.jsx)(W.A,{dealers:(null==j?void 0:j.getDealers)||[],disabled:!1,error:N,isSavingDealerPreference:!1,materialPricing:t,onDealerSelect:r,onSearch:S,open:y,onClose:()=>v(!1),setFieldValue:l,setIsModalOpen:v,values:s})]})};var V=t(10759),K=t(70210),Q=t(71662),$=t(61622),X=t(40002),Z=t(77660),J=t(40352),ee=t(81232),ea=t(83707),et=t(78272),ei=t(52710),en=t(75020),er=t(86680),el=t(88700),es=t(38882),eo=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;let{materialPricing:r,canAddToCart:d,renderSecondaryAction:u,marketplaceOfferId:p,productName:S,erpType:I,productKey:R,brandKey:O,images:k,discontinuedPricingInfo:L,multiCountryData:B}=e,F=ec(),w=(0,s.useRouter)(),W=(0,o.m)(),{formatMessage:U}=(0,x.A)(),H=(0,J.Ay)(),G=(null==r?void 0:r.length)?null===(a=r[0])||void 0===a?void 0:a.materialNumber:"",z={materialNumber:G,quantity:1,marketplaceOfferId:p},[Y,eu]=(0,n.useState)(z),{getSitePreference:ep,isDTAQZuCustomer:em,isMultiCountryUser:eg}=(0,C.iZ)(),eh=(0,ed.L)(eo.ID.countryCode),eA=(0,ed.L)(eo.TW.countryCode),{publicRuntimeConfig:{featureFlags:ex}}=l()(),ey=ep(C.VD.HideAddToCartForPrepackItems),[ev,ef]=(0,n.useState)(r[0]),[eb,eT]=(0,n.useState)(()=>(0,et.aA)(z.quantity,null==ev?void 0:ev.minOrderQuantity,eh||eA)),[eE,eC]=(0,n.useState)(""),[ej,e_]=(0,n.useState)(!1),[eN,eS]=(0,n.useState)(""),[eI,eR]=(0,n.useState)(),eM=ep(C.VD.PreferredDealerId),eO=(null===(t=w.query)||void 0===t?void 0:t.context)==="bbe",eP=ex.dealerCartEnabled&&em&&!eO&&!!eM,ek=w.asPath.includes("/compare"),eL=(0,b.g9)(),eB=(0,n.useContext)(ei.E),eF=async(e,a)=>{let{setSubmitting:t,resetForm:i}=a;(0,f.xy)({items:[ev],productListPageName:w.asPath.includes("/search")?f.L1.SearchResultPage:f.L1.ProductDetailPage}),(0,er.p8)([e],[ev],el.k9.SearchResultPage),await eL([{materialNumber:e.materialNumber,quantity:e.quantity,marketplaceOfferId:p}],t,i,"marketplace"===ev.catalogType),eT((0,et.aA)(z.quantity,null==ev?void 0:ev.minOrderQuantity,eh||eA))},eD=e=>{let[a]=r.filter(a=>(null==a?void 0:a.materialNumber)===e);ef(a)},ew=(0,es.h)(B,(e,a)=>{var t,i;eC(a);let n=null==B?void 0:null===(t=B.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)}),eW=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}));eR(await W.query({query:m,variables:{input:{products:[{dealerId:e,items:i}]}}}))},eU=(e,a,t)=>{a.setFieldValue(t.name,e),eT((0,et.aA)(e,null==ev?void 0:ev.minOrderQuantity,eh||eA))},eH=()=>{(0,en.Sm)({action:"check availability details",section:"modal p&a",component:"modal",elementType:"link",elementText:"details",material:ev})};if((0,n.useMemo)(()=>eu(z),[G]),(0,n.useEffect)(()=>{eT((0,et.aA)(z.quantity,null==ev?void 0:ev.minOrderQuantity,eh||eA))},[ev]),(0,n.useEffect)(()=>{var e,a,t,i;e_(!!(null==ev?void 0:null===(a=ev.availabilities)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.displayInquireLink));let n=null==ev?void 0:null===(i=ev.availabilities)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.contactInfo;eS([null==n?void 0:n.contactPhone,null==n?void 0:n.contactEmail].filter(e=>!!e).join(" ".concat(U(g.A.OR)," ")))},[ev,U]),(0,n.useEffect)(()=>{if(null==eI?void 0:eI.data){var e,a,t;let i=null==eI?void 0:null===(a=eI.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;r.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 l=r.find(e=>e.materialNumber===ev.materialNumber);l&&ef(l)}},[null==eI?void 0:eI.data]),(0,n.useEffect)(()=>{var e,a;if(null==B?void 0:null===(e=B.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let[e]=null==B?void 0:B.getPricingForMultiCountryProducts;eC(null!==(a=null==e?void 0:e.country)&&void 0!==a?a:"")}},[]),(!Array.isArray(r)||!r.length)&&L){let e=(0,$.j)(null==L?void 0:L.replacementProducts);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ee.A,{discontinuedPricingInfo:L}),!ek&&e&&(0,i.jsx)(Q.A,{type:X.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:R,brandKey:O,images:k},products:e,slidesToShow:H({xs:1,sm:2,lg:3}),withoutControls:e.length<=4})]})}return ev||ef(r[0]),(0,i.jsx)("div",{className:F.body,children:(0,i.jsx)(c.l1,{initialValues:Y,onSubmit:eF,enableReinitialize:!0,children:e=>{var a;let{isSubmitting:t,initialValues:n,values:l,setFieldValue:s}=e;return Y.materialNumber!==n.materialNumber?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(c.lV,{children:[eg&&B?ew:null,eg?null==B?void 0:null===(a=B.getPricingForMultiCountryProducts)||void 0===a?void 0:a.map((e,a)=>eE===(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)(y.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)(E.A,{field:r,meta:l,form:n,size:"large",onChange:e=>{r.onChange(e),n.setFieldValue("quantity",1),eD(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)(N.A,{value:ev.packageSize})}),!ej&&(0,i.jsx)(D,{material:ev}),(0,i.jsx)(h.A,{mt:2,children:ev.isPBAvailable?(0,i.jsx)(K.A,{materialNumber:ev.materialNumber,brand:ev.brand,productName:null!=S?S:"",erp_type:I}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(j.A,{material:ev,canAddToCart:d,gaDetailsClick:eH})}),(0,i.jsx)(M,{material:ev}),(0,i.jsx)(ea.A,{expirationDate:null==ev?void 0:ev.expirationDate,displayColon:!0,displayInline:!0,outerClassName:F.expiryDate}),(null==ev?void 0:ev.minOrderQuantity)&&(null==ev?void 0:ev.minOrderQuantity)>1?(0,i.jsxs)("div",{className:(0,v.A)(F.minimumQuantity,{hasMoqError:F.minimumQuantityError}),children:[(0,i.jsx)(y.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==ev?void 0:ev.minOrderQuantity]}):null,ej?(0,i.jsx)(P,{contactInfo:eN}):(0,i.jsx)(i.Fragment,{children:d&&!ey?(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)(_.A,{...n,size:"large",filled:!0,onChange:e=>eU(e,a,n),min:1,onBlur:()=>{n.value<1&&a.setFieldValue(n.name,1)},disabled:t,inputProps:{inputMode:"numeric"},error:!!eb})}})}),eP&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(q,{customerPricingResponse:eI,materialPricing:null==e?void 0:e.materialPricing,selectCallback:eW,setFieldValue:s,values:l})}),(0,i.jsx)(A.A,{type:"submit",variant:"contained",color:"secondary",disabled:t||eb,size:"large",fullWidth:!0,id:"mobile-p-and-a-add-to-cart",children:(0,i.jsx)(y.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})})]}):null}),ev.isBuyNow&&!ey?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(V.A,{materialNumber:l.materialNumber,quantity:l.quantity,gaType:"search results page"})}):null,ey?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(T.A,{quantity:l.quantity,materialNumber:ev.materialNumber,materialId:ev.materialId,type:ev.type,brand:null==ev?void 0:ev.brand,productName:null==ev?void 0:ev.materialDescription,productId:null==ev?void 0:ev.product})}),!!u&&u()]},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)(y.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:l}=e;return(0,i.jsx)(E.A,{field:n,meta:l,form:a,size:"large",onChange:e=>{n.onChange(e),a.setFieldValue("quantity",1),eD(e.target.value)},disabled:t||r.length<2,options:r.map(e=>({label:e.materialNumber,value:e.materialNumber}))})}})}),(0,i.jsx)("div",{className:F.materialInfo,children:(0,i.jsx)(N.A,{value:ev.packageSize})}),!ej&&(0,i.jsx)(D,{material:ev}),(0,i.jsx)(h.A,{mt:2,children:ev.isPBAvailable?(0,i.jsx)(K.A,{materialNumber:ev.materialNumber,brand:ev.brand,productName:null!=S?S:"",erp_type:I}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(ei.M,{...eB,brand:ev.brand,item:ev.materialNumber,pricing:ev,children:(0,i.jsx)(j.A,{material:ev,canAddToCart:d,gaDetailsClick:eH})})}),(0,i.jsx)(M,{material:ev}),(0,i.jsx)(ea.A,{expirationDate:null==ev?void 0:ev.expirationDate,displayColon:!0,displayInline:!0,outerClassName:F.expiryDate}),(null==ev?void 0:ev.minOrderQuantity)&&(null==ev?void 0:ev.minOrderQuantity)>1?(0,i.jsxs)("div",{className:(0,v.A)(F.minimumQuantity,eb&&F.minimumQuantityError),children:[(0,i.jsx)(y.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==ev?void 0:ev.minOrderQuantity]}):null,ej?(0,i.jsx)(P,{contactInfo:eN}):(0,i.jsx)(i.Fragment,{children:d&&!ey?(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)(_.A,{...n,size:"large",filled:!0,onChange:e=>eU(e,a,n),min:1,onBlur:()=>{n.value<1&&a.setFieldValue(n.name,1)},disabled:t,inputProps:{inputMode:"numeric"},error:!!eb})}})}),eP&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(q,{customerPricingResponse:eI,materialPricing:r,selectCallback:eW,setFieldValue:s,values:l})}),(0,i.jsx)(A.A,{type:"submit",variant:"contained",color:"secondary",disabled:t||eb,size:"large",fullWidth:!0,id:"mobile-p-and-a-add-to-cart",children:(0,i.jsx)(y.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})})]}):null}),ev.isBuyNow&&!ey?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(V.A,{materialNumber:l.materialNumber,quantity:l.quantity,marketplace:ev.catalogType===Z.Mh.Marketplace,gaType:"search results page"})}):null,ey?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(T.A,{quantity:l.quantity,materialNumber:ev.materialNumber,materialId:ev.materialId,type:ev.type,brand:null==ev?void 0:ev.brand,productName:null==ev?void 0:ev.materialDescription,productId:null==ev?void 0:ev.product})}),!!u&&u()]})]})})}})})}},86767:(e,a,t)=>{t.d(a,{A:()=>A});var i=t(37876);t(14232);var n=t(49995),r=t(48547),l=t(61261),s=t(96241),o=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}},A=e=>{let{value:a,onBlur:t,onChange:l,onSelect:A,rootClass:x,rootStyle:y,error:v,id:f,overrideMarketplaceByTag:b,...T}=e,{catalogType:E,filter:C}=(0,p.O)(),{isDarmstadtUser:j}=(0,m.iZ)(),_=g(),{data:N}=(0,c.t1)({ssr:!1,skip:a.length<3,variables:{input:{term:a,types:[d.B0.MaterialNumber],overrideMarketplaceByTag:b,filter:C,catalogType:E,orgId:j?"DARMSTADT":void 0}}});return(0,i.jsx)(r.Ay,{id:f,inputValue:a,onInputValueChange:e=>l(e),itemToString:e=>e?e.label:"",stateReducer:h,onSelect:A,children:e=>{let{getInputProps:a,getItemProps:r,getMenuProps:l,isOpen:d,inputValue:c,highlightedIndex:p,closeMenu:m}=e,{onBlur:g,onChange:h,onKeyDown:f,...b}=a();return(0,i.jsxs)("div",{className:(0,n.A)({[String(x)]:x}),style:y,children:[(0,i.jsx)(u.A,{autoComplete:"off",inputProps:{...b},onChange:h,onKeyDown:e=>{var a;let t=d&&!!(null==N?void 0:null===(a=N.getSearchSuggestions)||void 0===a?void 0:a.suggestions.materialNumber.length);if("Enter"===e.key&&t&&null==p){e.preventDefault(),A&&A(null),m();return}f&&f(e)},onBlur:e=>{e&&(g&&g(e),t&&t(e))},value:c,error:v,...T}),d&&c&&c.length>=3&&N&&N.getSearchSuggestions&&!v&&(0,i.jsx)("div",{...l(),className:_.autoSuggestContainer,children:(0,i.jsx)(s.A,{square:!0,className:_.autoSuggest,children:N.getSearchSuggestions.suggestions.materialNumber.map((e,a)=>(0,i.jsx)(o.A,{...r({key:e.label,index:a,item:e}),component:"div",selected:a===p,className:_.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 s={},o=(0,n.J1)(l());function d(e){let a={...s,...e};return r.n(o,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),s=t(47671),o=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)(s.A,{label:(0,i.jsx)(r.A,{className:n.promoChipLabel,children:"Up to 25% Off"}),className:(0,o.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})}},88124:(e,a,t)=>{t.d(a,{A:()=>o});var i=t(37876),n=t(14232),r=t(8733);let l=(0,t(61261).A)(e=>({more:{color:e.palette.primary.main,cursor:"pointer"}}));var s=t(54753);let o=e=>{var a,t;let{children:o,wordCount:d=10,allowShowMore:c=!0,commas:u=!0,showFullText:p}=e,[m,g]=(0,n.useState)(!1),h=l(),A=()=>(0,i.jsx)("span",{role:"button",tabIndex:0,className:h.more,onClick:()=>g(!m),onKeyDown:e=>{13===e.keyCode&&g(!m)},children:(0,i.jsxs)("span",{children:["...",m?(0,i.jsx)(r.A,{...s.A.LESS}):(0,i.jsx)(r.A,{...s.A.MORE})]})});if(!o)return null;if(Array.isArray(o))return(0,i.jsxs)("span",{children:[o.filter((e,a)=>(ad&&(m||!0===p))&&e).map((e,a)=>(0,i.jsxs)("span",{children:[e,(!(a+2>d)||m&&!1!==p)&&a+1!==o.length&&u?", ":" "]},a)),o.length-1>d&&c&&A(),o.length-1>d&&!c&&"..."]});let x=null===(a=String(o))||void 0===a?void 0:a.split(" ").splice(0,d).join(" "),y=x.split("").lastIndexOf(",")===x.length-1?x.slice(0,x.length-1):x,v=(null===(t=String(o))||void 0===t?void 0:t.split(" ").length)>d,f=c&&v,b=!c&&!1===p&&v;return(0,i.jsxs)("span",{children:[m||!0===p?o:y,f&&A(),b&&"..."]})}},89212:(e,a,t)=>{t.d(a,{A:()=>n});var i=t(42489);i.A.exclude(["synthetic"]);let n=e=>(0,i.A)(e)},89617:(e,a,t)=>{t.d(a,{A:()=>l});var i=t(37876),n=t(54587),r=t.n(n);t(14232);let l=()=>(0,i.jsx)(r(),{style:{margin:"4px"},src:"/static/globe_greener_alt_icon.svg",alt:"greener alternative",title:"Greener Alternative Product",height:28,width:28})},90589:(e,a,t)=>{t.d(a,{A:()=>h});var i=t(37876),n=t(14232),r=t(76209),l=t(61261),s=t(57717),o=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:A="",searchKey:x="",analyticsPageName:y,analyticsPageDetails:v,slidesToShow:f,setShouldDisplay:b,condensed:T=!1,productNumber:E,showPdpRedesignLevelTwo:C}=e,j=g(),_=(0,m.rd)(),[N,S]=(0,n.useState)(!1);(0,n.useEffect)(()=>{S(!0)},[]);let I={pdp:"pdp load",srp:"srp load","document search":"doc search load","advanced search":"adv search load"},R=()=>{switch(y.toLowerCase()){case"pdp":return h.toLowerCase();case"srp":return x.toLowerCase();case"document search":return _.query.tab||"sds";default:return}},{isBlueB2BUser:M}=(0,p.iZ)(),{data:O,loading:P}=(0,r.wJ)({variables:{dispType:t,productKey:h,brand:A,...M?{erpType:u.G.Blue}:{}},ssr:!1,fetchPolicy:"no-cache",skip:!N,onCompleted:e=>{var a;I[y.toLowerCase()]&&(!e||(null==e?void 0:null===(a=e.getRecentlyViewedProducts)||void 0===a?void 0:a.products.length)===0)&&(0,c.Xk)({action:I[y.toLowerCase()],detail:R(),section:"recently viewed products",productId:null==E?void 0:E.toLowerCase(),productBrand:A.toLowerCase()})}}),k=(null==O?void 0:null===(a=O.getRecentlyViewedProducts)||void 0===a?void 0:a.products)||[],L=k.length>0;return((0,n.useEffect)(()=>{b&&b(L)},[L,P]),P)?null:L?(0,i.jsx)("div",{className:(0,d.A)(l,j.recentlyViewedContainer),children:(0,i.jsx)(s.A,{type:o.j.RecentlyViewed,products:k,analyticsPageName:y,analyticsPageDetails:v,slidesToShow:f,condensed:T,showPdpRedesignLevelTwo:C})}):null}},91721:(e,a,t)=>{t.d(a,{$Y:()=>S,Ay:()=>I,zO:()=>N});var i=t(37876),n=t(14232),r=t(54366),l=t(8733),s=t(99220),o=t(35877),d=t(36258),c=t(82440),u=t.n(c),p=t(12197),m=t(64204),g=t(71541),h=t(92189),A=t(23575),x=t(45496),y=t(85581),v=t(930),f=t(50524),b=t(40352),T=t(30510),E=t(40002),C=t(68215);let j=(0,s.n9)()((e,a,t)=>({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("sm")]:{touchAction:"pan-y"},["& .".concat(t.productHeroTile," button")]:{"@media (min-width: 900px) and (max-width: 1300px)":{whiteSpace:"normal"}}},productHeroTile:{[e.breakpoints.up("sm")]:{padding:e.spacing(0,4)}}})),_=(0,s.n9)()((e,a,t)=>({contentCondensed:{padding:0},title:{marginBottom:e.spacing(8),[".".concat(t.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")}}})),N=e=>{let{title:a,isHero:t,type:n}=e,{classes:r,cx:s}=_(),o=a||(E.G[n]?(0,i.jsx)(l.A,{...E.G[n]}):null==n?void 0:n.replace(/[-_]/g," "));return a&&"string"!=typeof a?(0,i.jsx)(i.Fragment,{children:o}):(0,i.jsx)(p.A,{variant:"h2",className:s(r.title,t&&r.productHeroCardTitle),children:o})},S=e=>{let{productHeroCard:a,products:t,creativeSlot:n,pageType:r,pageTypeDetails:l}=e,{classes:s,cx:o}=j();return{renderCenterLeftControls:e=>{let d=0===e.currentSlide;return(0,i.jsx)(i.Fragment,{children:!a&&(0,i.jsx)(m.A,{className:o(s.navBtn,s.navBtnLarge,s.navBtnLeft),disabled:d,onClick:()=>(0,C.t)(e,t,"prev",n,r,l),"aria-label":"previous",children:(0,i.jsx)(A.A,{className:o(s.icon,{[s.iconDisabled]:d})})})})},renderCenterRightControls:e=>{let d=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,C.t)(e,t,"next",n,r,l),"aria-label":"next",children:(0,i.jsx)(x.A,{className:o(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&d})})})})},renderBottomCenterControls:e=>{let d=0===e.currentSlide,c=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,C.t)(e,t,"prev",n,r,l),"aria-label":"previous",className:o(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(A.A,{className:o(s.icon,{[s.iconDisabled]:d})})}),(0,i.jsxs)(p.A,{variant:"body2",children:[Math.floor(e.currentSlide/e.slidesToShow)+1," of"," ",Math.round(e.slideCount/e.slidesToShow)]}),(0,i.jsx)(m.A,{disabled:c,onClick:()=>(0,C.t)(e,t,"next",n,r,l),"aria-label":"next",className:o(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(x.A,{className:o(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&c})})})]})}}},I=e=>{let{type:a,products:t,withoutControls:l,slidesToShow:s,condensed:c,preloadCardImages:p,title:m,showPdpRedesignLevelTwo:A,productHeroCard:x=!1,isProductRecommendation:C=!1,hideProductImg:_=!1,displayDiscount:I,analyticsPageName:R=r.PP.NotAvailable,analyticsPageDetails:M}=e,{classes:O,cx:P}=j(),k=(0,b.Ay)(),L=(0,f.Gd)(),B="".concat(a," - ").concat(L),F=S({productHeroCard:x,products:t,creativeSlot:B,pageType:R,pageTypeDetails:M}),D=a===E.j.CartRecommendedProducts,[w,W]=(0,n.useState)(null),U=(0,o.A)(),H=!0===(0,g.A)(U.breakpoints.up("md")),G=(0,n.useRef)(null),[z,Y]=(0,n.useState)(!1),q=(0,d.B)(G,{threshold:.66}),V=k(A?{xs:1,sm:2,md:4,lg:6}:{xs:1,sm:2,md:3,lg:4}),K=x&&H?2:s||V;if(!t||(null==t?void 0:t.length)===0)return null;if((null==q?void 0:q.isIntersecting)&&!z){let e=t.slice(0,K);(0,v.W)({creativeSlot:B,pageType:R,pageTypeDetails:M,products:e}),Y(!0)}return(0,i.jsxs)("div",{"data-testid":a,id:a,className:P({[O.cartRecommended]:D}),ref:G,children:[(0,i.jsx)(h.A,{maxWidth:"lg",className:P({[O.withoutControls]:l}),children:(0,i.jsxs)("div",{className:P(O.content,{[O.contentCondensed]:c},x&&O.productHeroCardContent,C&&O.contentInTab),children:[(0,i.jsx)(N,{title:m,isHero:x,type:a}),(0,i.jsx)(u(),{slidesToScroll:K,slidesToShow:K,disableEdgeSwiping:!0,withoutControls:l,...F,children:t.map((e,t)=>(0,i.jsx)(y.A,{index:t,product:e,testId:a,onViewPrice:()=>W(e),preloadCardImages:p,className:P(O.card,x&&O.productHeroTile),type:a,hideProductImg:_,displayDiscount:I},t))})]})}),w&&(0,i.jsx)(T.A,{...w,showAddToList:!0,open:!0,image:w.images[0],onClose:()=>W(null),gaType:f.Yo[a],erpType:(null==w?void 0:w.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),s=t(12197),o=t(61261),d=t(98580);let c=(0,o.A)(e=>({line:{margin:e.spacing(3,0)}})),u=e=>{let{open:a,onCancel:t}=e,o=c();return(0,i.jsx)(l.Ay,{open:a,onClose:t,size:l.Ih.Medium,renderTitle:()=>(0,i.jsx)(s.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)(s.A,{component:"p",children:[(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE}),(0,i.jsx)(d.A,{})]}),(0,i.jsx)(s.A,{className:o.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_1})}),(0,i.jsx)(s.A,{className:o.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_2})}),(0,i.jsx)(s.A,{className:o.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_3})})]})})}},93186:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876),n=t(14232),r=t(99220),l=t(37695),s=t(30877),o=t(16722),d=t(63912);let c=(0,r.n9)()(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"}}})),u=e=>{let{products:a,substanceName:t,substanceId:r,substancePosition:u}=e,p=a.length,m=a.slice(0,2),g=a.slice(2),[h,A]=(0,n.useState)(!1),{classes:x}=c(),y=e=>(0,i.jsx)(o.A,{product:e,substanceName:t,substancePosition:u,substanceId:r},e.productNumber);return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.A,{disablePadding:!0,className:x.initialProducts,children:m.map(y)}),p>2&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{in:h,children:(0,i.jsx)(l.A,{disablePadding:!0,className:x.moreProducts,children:g.map(y)})}),(0,i.jsx)(d.A,{expanded:h,setExpanded:()=>{A(!h)},className:x.showMore,"data-testid":"show-".concat(h?"less":"more")})]})]})}},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),s=t(54753),o=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:A}=null!=t?t:{},x=m&&!g&&!s.A[m],y=null==g?void 0:g.replace("%0","{productLink}"),v=()=>A&&h?(0,i.jsx)(d.N,{href:A,onClick:()=>{(0,c.Qz)(A,r)},children:(0,i.jsx)(o.A,{value:h})}):null;return x?null:(0,i.jsx)("div",{children:(null==t?void 0:t.messageKey)&&s.A[t.messageKey]?(e=>{switch(e.messageKey){case"PT_TESTING_STUDY":return(0,i.jsx)(n.A,{...s.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,{...s.A.PT_TESTING_STUDY_LINK})})}});case"REDI_DRI_RP":return(0,i.jsx)(n.A,{...s.A.REDI_DRI_RP,values:{brand:(0,i.jsx)("i",{children:(0,i.jsx)(n.A,{...s.A.REAGENTPLUS})})}});default:var a;return(0,i.jsx)(n.A,{...s.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:y,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:()=>c});var i=t(37876);t(14232);var n=t(99220),r=t(35877),l=t(5493),s=t(36503),o=t(7645);let d=(0,n.n9)()(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)}}})),c=()=>{let{classes:e,cx:a}=d(),t=(0,r.A)();return(0,i.jsxs)("div",{"data-testid":"products-srp-skeleton",children:[(0,i.jsx)(o.A,{mb:20}),(0,i.jsx)("div",{children:[,,,,,].fill({}).map((n,r)=>(0,i.jsx)(o.A,{border:1,borderColor:t.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)(l.A,{height:1,width:1})})})}),(0,i.jsx)(s.A,{item:!0,xs:10,children:(0,i.jsx)(o.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)(l.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)(l.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)(l.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)(l.A,{height:16,width:.6,borderRadius:{xs:2,sm:"borderRadius"},mb:3}),(0,i.jsx)(l.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((t,n)=>(0,i.jsx)("div",{className:a(e.tRow,e.tBodyRow),children:Array(6).fill({}).map((e,a)=>(0,i.jsx)("div",{children:(0,i.jsx)(l.A,{height:16,width:1,borderRadius:{xs:2,sm:"borderRadius"}})},a))},n))})]})},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),s=t(54753),o=t(52413);let d=e=>{let{msgKey:a}=e,t=(0,l.rd)();return"SIGN_IN_FOR_PRICING"===a?(0,i.jsx)(o.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,{...s.D[a]})})}):(0,i.jsx)(n.A,{...s.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 s=t(49995),o=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:A,minOrderQuantity:x,setShowMultipleMinimumQuantityError:y,setMultipleMinimumQuantityError:v,isLessThan:f,...b}=e,T=(0,o.A)(),E=(0,d.aA)(c.value,x,f),C=E?T.formatMessage(r.A.MIN_N_QUANTITY,{min:x}):(0,n.O6)(u.errors,c.name),j=E||(0,n.O6)(u.touched,c.name),_=C&&j;return(0,i.jsx)("div",{className:(0,s.A)({[String(a)]:a}),style:t,children:(0,i.jsx)(l.A,{...b,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,x,f);y&&y(a),v(A,a)},delay:m,error:!!_,"aria-describedby":(_||p)&&"".concat(c.name,"-help-text"),onBlur:()=>{g&&c.value{t.d(a,{A:()=>j});var i=t(37876),n=t(14232),r=t(77742),l=t(8733),s=t(5411),o=t(7645),d=t(61261),c=t(66065),u=t(93591),p=t(77660),m=t(54753),g=t(97710),h=t(66587),A=t(81927),x=t(4648),y=t(20114),v=t(49995),f=t(40859),b=t(69485),T=t(19490),E=t(3582);let C=(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}})),j=e=>{var a,t,d,j;let{material:_,initialShipEstimate:N,canAddToCart:S,countryCode:I,isDynamicProductCarousel:R,isLoading:M=!1,hideDetailsLink:O=!1,gaDetailsClick:P,source:k,gaSection:L,gaComponent:B}=e,F=C(),[D,w]=(0,n.useState)(!1),W=()=>{w(!1)},{formatMessage:U}=(0,r.A)(),H=null===(a=_.availabilities)||void 0===a?void 0:a[0],{availableQtyInStock:G}=_,z=null!==G,Y=H&&(null==H?void 0:H.key)===p.qL.InquireForPriceAndAvailability,[q,V]=(0,n.useState)(!1);if(Y){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(U(m.A.OR)," "));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{className:(0,v.A)(F.baseClass,{[F.topAligned]:Y}),onClick:()=>V(!0),children:(0,i.jsx)(b.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY})}),q&&(0,i.jsx)(x.A,{open:q,setModalOpen:V,headerContent:_.materialNumber,bodyContent:(0,i.jsx)(o.A,{mr:12,mb:8,children:(0,i.jsx)(b.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY_MODAL,values:{inquirePriceContactInfo:a}})})})]})}let K=e=>{e.preventDefault(),P&&P(),w(!0)},Q=H&&(null==H?void 0:H.key)===p.qL.ApoNoStock;return(0,i.jsx)(o.A,{display:"flex",alignItems:"flex-start",children:(0,i.jsxs)("div",{className:F.shipEstimateWithLink,children:[(0,i.jsxs)("div",{className:F.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}):R?(0,i.jsx)(f.A,{availabilities:(null==_?void 0:_.availabilities)||[],updateAvailable:M,leadTime:null==_?void 0:_.leadTime}):(0,i.jsxs)(i.Fragment,{children:[z?(0,i.jsxs)("div",{className:(0,v.A)(F.initialShipText,{[F.warningText]:z}),children:[(0,i.jsx)(y.A,{className:F.availabilityIcon,color:"warning"}),(0,i.jsx)(b.J,{id:"DEPLETED_PRODUCTS_QTY_FEW_LEFT_IN_STOCK",defaultMessage:"{availableQtyInStock} left in stock",values:{availableQtyInStock:G}})]}):(0,i.jsx)("div",{children:N}),(0,i.jsxs)("span",{children:[D&&(0,i.jsx)(A.A,{isModalOpen:D,onModalClose:()=>W(),material:_,canAddToCart:S,countryCode:I,availableQty:G,source:k}),!O&&((null==H?void 0:H.displayFromLink)||Q)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("span",{className:F.shipFromLink,onClick:K,onKeyPress:K,tabIndex:0,role:"button",id:"mat-num-".concat(_.materialNumber,"-from"),children:Q?(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)&&!z&&!(0,E.M)(H,5)?(0,i.jsxs)("span",{className:F.fromWarehouse,children:[(0,i.jsx)(l.A,{...m.A.PRODUCT_AVAILABILITY_FROM})," ",H.plantLoc]}):null]})]}),(0,i.jsxs)(o.A,{pt:.5,children:[_.shipsToday&&(0,i.jsx)(h.A,{type:g.u2.SameDay,gaSection:L,gaComponent:B,material:_}),_.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)(o.A,{mt:1,children:(0,i.jsx)(u.A,{supplementary:H.supplementaryMessage})}):null,(null===(j=_.promotionalMessage)||void 0===j?void 0:j.messageKey)&&(0,i.jsx)(o.A,{mt:1,className:F.promoWrapper,children:(0,i.jsx)(T.A,{promotional:_.promotionalMessage})})]})})}},98580:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876),n=t(61261),r=t(8733),l=t(54753),s=t(52413),o=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,o.j)();return(0,i.jsx)(s.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})})})}},98868:(e,a,t)=>{t.d(a,{A:()=>m});var i=t(37876);t(14232);var n=t(77742),r=t(34415),l=t(99220),s=t(54753),o=t(97710),d=t(52413),c=t(11148),u=t(61206);let p=(0,l.n9)()(e=>({container:{fontWeight:e.typography.fontWeightBold,marginTop:e.spacing(4)},heading:{fontSize:e.typography.pxToRem(12),[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(16)}},link:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(14),lineHeight:1.5,[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(16)}}})),m=e=>{let{terms:a,focus:t}=e,{formatMessage:l}=(0,n.A)(),{classes:m}=p(),g=a?a.slice(0,3):[];return(null==g?void 0:g.length)?(0,i.jsxs)("div",{className:m.container,children:[(0,i.jsx)("div",{className:m.heading,children:"".concat(l(s.A.DID_YOU_MEAN))}),g.map(e=>(0,i.jsx)("div",{children:(0,i.jsx)(d.N,{href:"".concat(c.wO.searchResults(null==e?void 0:e.term)).concat((0,o.$c)({term:null==e?void 0:e.term,focus:t})),passHref:!0,children:(0,i.jsx)(r.A,{color:"secondary",className:m.link,children:(0,i.jsx)(u.A,{value:null==e?void 0:e.term})})})},null==e?void 0:e.term))]}):null}}}]); //# sourceMappingURL=2148-87d1a996e2924515.js.map