"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4578],{930:(e,a,t)=>{t.d(a,{W:()=>c,e:()=>u});var i=t(39324),n=t.n(i),r=t(64272),l=t(71605),s=t(776);let{publicRuntimeConfig:{isTealiumEnabled:o,isGoogleTagManagerEnabled:d}}=n()(),c=e=>{let{creativeSlot:a,products:t,carouselType:i,promoItemId:n,promoItemName:c}=e,u=t.map((e,a)=>{let t=e.analyticsPosition||a+1;return(0,l.p6)(null==e?void 0:e.gaProductCode,e,t,i,n,c)}),p={event:"view_promotion",ecommerce:{creative_slot:a.toLowerCase(),items:u}};d&&(0,r.BI)({payload:p}),o&&(0,s.jW)("view_promotion",t,a,i,n,c)},u=e=>{let{product:a,indexPosition:t=0,creativeSlot:i,carouselType:n,promoItemId:c,promoItemName:u,selectType:p="select_promotion"}=e,m=(0,l.p6)(null==a?void 0:a.gaProductCode,a,t+1,n,c,u),g={payload:{event:p,ecommerce:{creative_slot:i.toLowerCase(),items:[m]}}};if("select_item"===p){let e=(0,l.BI)(n,c,u);g.payload.ecommerce.list_item_id=e.list_id,g.payload.ecommerce.list_item_name=e.list_name}d&&(0,r.BI)(g),o&&(0,s.jW)("select_promotion",[a],i,n,c,u)}},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:x,onSelect:A,...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),x&&x(e)},onSelect:A,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:()=>A});var i=t(37876),n=t(14232),r=t(77742),l=t(8733),s=t(35967),o=t(5411),d=t(7645),c=t(99220),u=t(54753),p=t(4648),m=t(11788),g=t(95349),h=t(75020);let x=(0,c.makeStyles)()(e=>({pricesContainer:{display:"flex",alignItems:"baseline","& > div:not(:first-of-type)":{marginLeft:e.spacing(1)}},pricesStacked:{flexDirection:"column",alignItems:"stretch","& > div:not(:first-of-type)":{marginLeft:e.spacing(0)}},baseClass:{minWidth:0,paddingLeft:0},topAligned:{display:"flex",padding:0,margin:0}})),A=e=>{var a;let t,c,{material:A,listPriceClass:y,priceClass:v,hasStackedPrices:f=!0}=e,{classes:b,cx:T}=x(),[C,E]=(0,n.useState)(!1),{formatMessage:j}=(0,r.A)(),{guestShoppingType:_,isDTAQZuCustomer:N}=(0,m.iZ)();if(null===(a=A.availabilities)||void 0===a?void 0:a.length){let e=A.availabilities[0];t=e.displayInquireLink,c=e.contactInfo}let S=[null==c?void 0:c.contactPhone,null==c?void 0:c.contactEmail].filter(e=>!!e).join(" ".concat(j(u.A.OR)," "));return A.hidePriceMessageKey?(0,i.jsx)(g.A,{msgKey:A.hidePriceMessageKey}):t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{onClick:()=>{E(!0),(0,h.Sm)({action:"inquire product",section:"p&a",component:"list",elementType:"link",elementText:"inquire",material:{materialDescription:A.materialDescription,brand:A.brand,product:A.product,materialNumber:A.materialNumber}})},className:T(b.baseClass,{[b.topAligned]:t}),children:(0,i.jsx)(l.A,{...u.A.INQUIRE})}),C&&(0,i.jsx)(p.A,{open:C,setModalOpen:E,headerContent:A.materialNumber,bodyContent:(0,i.jsx)(d.A,{mr:12,mb:8,children:(0,i.jsx)(l.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)(d.A,{display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,i.jsxs)("div",{className:T(b.pricesContainer,{[b.pricesStacked]:f}),children:[!!A.price&&!!A.listPrice&&(A.listPrice>A.price||"dtaq"===_&&N)&&(0,i.jsx)("div",{className:y,children:(0,i.jsx)(s.Gr,{style:"currency",currencyDisplay:"symbol",currency:A.listPriceCurrency?A.listPriceCurrency:A.currency,value:A.listPrice})}),A.price?(0,i.jsx)("div",{className:v,children:(0,i.jsx)(s.Gr,{style:"currency",currencyDisplay:"symbol",currency:A.currency,value:A.price})}):(0,i.jsx)(l.A,{...u.A.UNAVAILABLE})]})})}},3933:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(77742),r=t(8733),l=t(13261),s=t(5411),o=t(35247),d=t(66896),c=t(54753);let u=(0,t(99220).makeStyles)()(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"}}})),p=e=>{let{loading:a,handleUpdatePage:t,currentPage:p,numPages:m=0,customCounterStyling:g,customButtonStyling:h,pageNumberElement:x}=e,{classes:A,cx:y}=u(),v=(0,n.A)(),f=e=>{t(e)},b=1===p||0===p,T=p===m,C=(0,i.jsx)(r.A,{...c.A.PAGINATION_OPTION_DISPLAY,values:{page:p,numberOfPages:m}});return(0,i.jsxs)("div",{className:A.paginationContainer,children:[x||(0,i.jsx)("div",{className:A.pageLabel,children:C}),(0,i.jsxs)(l.A,{className:A.buttonGroup,disableElevation:!0,disableFocusRipple:!0,disableRipple:!0,"aria-label":v.formatMessage(c.A.PAGINATION_LABEL_NAVIGATION),children:[(0,i.jsx)(s.A,{classes:{root:y(A.buttonRoot,h),outlined:A.buttonOutlined,disabled:A.buttonDisabled},"aria-label":v.formatMessage(c.A.PAGINATION_LABEL_PREVIOUS),disabled:b||a,onClick:()=>f(p-1),children:(0,i.jsx)(o.A,{className:y(A.buttonIcon,{[A.buttonIconDisabled]:b})})}),(0,i.jsx)(s.A,{className:y(A.mobilePageCountLabel,g),children:C}),(0,i.jsx)(s.A,{classes:{root:y(A.buttonRoot,h),outlined:A.buttonOutlined,disabled:A.buttonDisabled},"aria-label":v.formatMessage(c.A.PAGINATION_LABEL_NEXT),disabled:T||a,onClick:()=>f(p+1),children:(0,i.jsx)(d.A,{className:y(A.buttonIcon,{[A.buttonIconDisabled]:T})})})]})]})}},4009:(e,a,t)=>{t.d(a,{f:()=>eC,A:()=>e_});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(6442),g=t(83198),h=t(52413),x=t(75352),A=t(11148),y=t(77660),v=t(73431),f=t(70608),b=t(11788),T=t(17685),C=t(39324),E=t.n(C),j=t(89099),_=t(14232),N=t(35967),S=t(77742),I=t(8733),R=t(21347),k=t(64204),M=t(15329),P=t(99220),O=t(75673),L=t(78206),B=t(57477),F=t(80863),w=t(10113),D=t(95722),W=t(75878),U=t(58597),H=t(46588),G=t(3848),z=t(98411),Y=t(54753),V=t(29468),q=t(40597);let K=(0,P.makeStyles)()(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)(q.Ay,{title:n(Y.A.ADDITIONAL_INFO_POPOVER),placement:"top",enterDelay:1e3,children:(0,i.jsx)(V.A,{className:t.infoIcon,onClick:()=>a(!0)})})};var X=t(68837),$=t(85150),Z=t(71007),J=t(75020),ee=t(18847),ea=t.n(ee),et=t(10759),ei=t(27447),en=t(70210),er=t(83707),el=t(94767);let es=ea()(()=>t.e(7982).then(t.bind(t,47982)),{loadableGenerated:{webpack:()=>[47982]},loadableGenerated:{webpack:()=>[47982]},ssr:!1}),eo=(0,P.makeStyles)({name:"ProductMaterialRow",uniqId:"ProductMR1"})((e,a,t)=>({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%",["&.".concat(t.hidePriceMessageKey)]:{width:"5%"}},packSize:{width:"10%",["&.".concat(t.hidePriceMessageKey)]:{width:"5%"}},availability:{width:"45%",["&.".concat(t.hidePriceMessageKey)]:{width:"40%"}},price:{width:"10%"},quantity:{width:"15%",["&.".concat(t.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}})),ed=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:x,isMarketplace:v=!1,renderBuyNow:f=!1,rowValues:b,setMultipleMinimumQuantityError:T,erpType:C,promoCode:E}=e,{classes:j,cx:N}=eo(),I=(0,S.A)(),R=(0,A.rd)(),P=(0,el.dU)(),{classes:V}=(0,$.I)(),q=null===(a=o.availabilities)||void 0===a?void 0:a[0],K=m&&o.isPBAvailable&&R.query,ee=q&&(null==q?void 0:q.key)===y.qL.InquireForPriceAndAvailability,[ea,ed]=(0,_.useState)(!1),[ec,eu]=(0,_.useState)(!1),[ep,em]=(0,_.useState)(!1),eg=["YEAREND","YEAREND-Q","YEAREND-D"].includes(null!=E?E:"");return(0,_.useEffect)(()=>{ea&&(0,Z.sendProductInfoInteractionEvent)({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})},[ea]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.A,{className:N(j.tCell,"ThirdPartyProvider"===o.type?j.materialNumberWithSku:j.materialNumber,o.hidePriceMessageKey&&j.hidePriceMessageKey),children:[(0,i.jsx)(ei.A,{materialNumber:o.materialNumber}),K&&(0,i.jsx)(u.A,{pt:2,children:(0,i.jsx)(en.A,{materialNumber:o.materialNumber,brand:o.brand,productName:null!=n?n:"",erp_type:C})})]}),"ThirdPartyProvider"===o.type?(0,i.jsx)(s.A,{className:N(j.tCell,j.vendorSKU),children:o.vendorSKU}):null,(0,i.jsx)(s.A,{className:N(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:N(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:x,gaDetailsClick:()=>(0,J.Sm)({action:"check availability details",section:"related products",component:"list",elementType:"link",elementText:"details",material:o}),source:"related products",gaSection:R.asPath.includes("/search")?void 0:"products",gaComponent:"list"}),(0,i.jsx)(er.A,{expirationDate:o.expirationDate,displayColon:!0,displayInline:!0,outerClassName:j.labelFontSize}),o.minOrderQuantity&&o.minOrderQuantity>1?(0,i.jsxs)("div",{className:N(j.labelFontSize,ep&&j.minimumQuantityError),children:[I.formatMessage(Y.A.MINIMUM_ORDER_QUANTITY),o.minOrderQuantity]}):null,eg?(0,i.jsxs)("div",{className:j.promoDiscountMessage,children:[(0,i.jsx)("span",{children:"Web-Only Discount: "}),(0,i.jsx)("span",{className:j.promoDiscount,children:"-15% Off"}),(0,i.jsx)("span",{children:" with code "}),(0,i.jsx)("span",{className:N(j.promoCode,j.promoDiscount),children:E})]}):null]}),h&&(0,i.jsx)(s.A,{className:N(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:N(j.tCell,j.price,o.hidePriceMessageKey&&j.hidePriceMessageKey),children:ee?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:V.listPrice})})}),(0,i.jsx)(s.A,{className:N(j.tCell,j.quantity),children:(0,i.jsxs)(u.A,{display:"flex",alignItems:"center",children:[!d||c||ee?null:(0,i.jsx)(i.Fragment,{children:(null==o?void 0:o.isBlockedProduct)?(0,i.jsx)(k.A,{className:j.lockIcon,onClick:()=>eu(!0),children:(0,i.jsx)(H.A,{fontSize:"inherit"})}):o.minOrderQuantity&&o.minOrderQuantity>1?(0,i.jsx)(L.D0,{name:"".concat(g,".quantity"),component:D.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:em,setMultipleMinimumQuantityError:T,isMOQLessThanCountry: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})}),ec&&(0,i.jsx)(U.A,{open:ec,onCancel:()=>{eu(e=>!e)}}),ee?(0,i.jsx)(u.A,{display:"flex",alignItems:"center",ml:31.5,children:(0,i.jsx)(Q,{setDialogOpen:ed})}):(0,i.jsx)(u.A,{display:"flex",alignItems:"center",ml:6.5,children:(0,i.jsx)(Q,{setDialogOpen:ed})}),(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)(w.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)(es,{title:I.formatMessage(Y.A.ADD_TO_LIST),placement:"top",enterDelay:1e3,children:(0,i.jsx)(M.A,{className:j.addToListButton,onClick:e,children:(0,i.jsx)(O.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)(et.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)(X.A,{open:ea,additionalInfo:o.additionalInfo||{},productNumber:o.materialNumber,productName:n,packageType:o.packageType,packageSize:o.packageSize,description:r||o.materialDescription,handleClose:()=>ed(!1)})]})};var ec=t(25771),eu=t(69485),ep=t(52710),em=t(84830),eg=t(76056),eh=t(27651),ex=t(94295),eA=t(41764),ey=t(65149),ev=t(51996),ef=t(70903),eb=t(11975);let{publicRuntimeConfig:{featureFlags:eT}}=E()(),eC=e=>{let{availability:a,leadTime:t}=e,{classes:n}=(0,$.A)();if(!a)return(0,i.jsx)(eu.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)(m.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(eu.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)(m.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(eu.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)(m.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(eu.J,{id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed",availability:a}),(0,i.jsx)(eA.A,{leadTime:t})]});if(a.key===y.qL.UntilSuppliesRunOut)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(eu.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)(eu.J,{...f.A[a.key]});if(a.key===y.qL.OutOfStockKey)return(0,i.jsx)(eu.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)(m.A,{className:n.availableIcon}),(0,i.jsx)(eu.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)(m.A,{className:n.availabilityUnknownIcon}),(0,i.jsx)(eu.J,{id:"APO_NO_STOCK",defaultMessage:"No Local Stock",availability:a})]});if(a.key===y.qL.CheckCartForAvailability)return(0,i.jsx)(eu.J,{id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability",availability:a});if(!a.date||!a.quantity)return(0,i.jsx)(eu.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)(m.A,{className:n.availableIcon}),l?a.key===y.qL.EstimatedToShipOn?(0,i.jsx)(eu.J,{id:"ESTIMATED_TO_SHIP_TODAY",availability:a,defaultMessage:"Estimated to ship TODAY"}):(0,i.jsx)(eu.J,{id:"AVAILABLE_TODAY",availability:a,defaultMessage:"Available to ship TODAY"}):(0,i.jsxs)("span",{children:[(0,i.jsx)(eu.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)(),{classes:r}=(0,$.A)();if(t)return(0,i.jsxs)("span",{className:r.seeDealerOptionsText,children:[(0,i.jsx)(g.A,{color:"error",className:r.errorIcon}),(0,i.jsx)(eu.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,{})},ej=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)})},e_=e=>{var a,t,m,g,y,f;let{country:C,productName:E,displaySellerName:N,productDescription:k,productId:M,materialPricing:P,canAddToCart:O,isSubmitting:L,dirty:B,submitForm:F,hideAddToCartForPrepackItems:w,displayPromotionalBundlesAnchor:D,displaySDS:W,ctas:U,isAddToList:H,setFieldValue:G,values:z,isMarketplace:Y,isMarketplaceCartEnabled:V=!1,marketplaceSellerId:q,marketplaceOfferId:K,productAttributes:Q,handlePriceUpdateForDealer:X,erpType:Z,dChainMessage:J}=e,ee=(0,j.useRouter)(),[ea,et]=(0,_.useState)(!1),{classes:ei}=(0,$.A)(),{formatMessage:en}=(0,S.A)(),{currentUser:er,currentUserState:es,getSitePreference:eo,isPublicOrderingCustomer:eu,isQuoteRequester:eA,isDTAQZuCustomer:ef,userIsLoggedIn:e_,isB2BUser:eN}=(0,b.iZ)(),{userSession:eS}=(0,T.j)(),eI=eo(b.VD.PreferredDealerId),[eR,ek]=(0,_.useState)(0),eM=!eI,eP=eo(b.VD.PreferredDealerInfo),eO=null==eP?void 0:eP.orgName,[eL,eB]=(0,_.useState)(eO),{isPurpleProduct:eF}=(0,em.Q)(Z),ew=(0,ex.L)(eh.CN.countryCode),eD=(0,ex.D)(eh.JP.countryCode),eW=P.map(e=>({name:e.materialNumber,error:!1})),[eU,eH]=(0,_.useState)(eW),eG=(e,a)=>{eH(eU.map(t=>({...t,error:t.name===e?a:t.error})))},{data:ez,refetch:eY,error:eV}=(0,v.AW)({context:{userSession:eS},errorPolicy:"all",variables:{countryCode:null==eS?void 0:eS.country,stateCode:String(es),searchTerm:""},skip:!e_||!ef}),eq=(null==P?void 0:P.map(e=>e.materialNumber))||[],eK=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:eQ}=(0,ev.Y)(),{defaultPartnerNumber:eX}=eQ(eS.country),e$=(0,el.$1)(),{data:eZ}=(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===(g=er.soldToPartners)||void 0===g?void 0:null===(m=g[0])||void 0===m?void 0:m.shipTo)||"",soldTo:eK||eX,country:eS.country},materials:eq}},skip:!eT.srpTxnBadges||!e$||eN||!(null==eq?void 0:eq.length)||!eK&&!eX});(0,_.useEffect)(()=>{if(null!==P[0].dealerId){let e=P[0].dealerId,{organizationName:a=null}=null==ez?void 0:ez.getDealers.find(a=>a.id===e);eB(a)}},[P[0].dealerId]),(0,_.useEffect)(()=>{if(ez&&0===eR){var e;ek(null==ez?void 0:null===(e=ez.getDealers)||void 0===e?void 0:e.length)}},[ez]),(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 eJ=async e=>{await eY({countryCode:eS.country,stateCode:String(es),searchTerm:e.toLowerCase()})},e0=P&&P.length&&P[0].type,e1=(null==er?void 0:er.__typename)==="GuestUser"&&!O,e2=(null==er?void 0:er.__typename)==="LoggedInUser"&&!(null==er?void 0:null===(y=er.metadata)||void 0===y?void 0:y.guestShoppingType)&&!eu&&!eA,e4=(null===(f=ee.query)||void 0===f?void 0:f.context)==="bbe",e7=eT.dealerCartEnabled&&ef&&!e4&&!eM,e3=ef&&eM,e8=!P[0].price,e5=P.some(e=>{let{isBuyNow:a}=e;return a}),e6=null==U?void 0:U.find(e=>"bulk order"===e.type),e9=null==U?void 0:U.find(e=>"bulk order"!==e.type),ae=(0,_.useCallback)(()=>eU.some(e=>e.error),[eU]),aa=(0,_.useContext)(ep.E);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:C?ei.multiCountryTable:ei.table,children:[(0,i.jsxs)(n.A,{children:[(!e8&&e7||!e7)&&(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"===e0?(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:O&&!w?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==eZ?void 0:null===(o=eZ.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)(ep.M,{...aa,brand:e.brand,item:e.materialNumber,pricing:e,children:(0,i.jsx)(ed,{isMarketplace:Y,canAddToCart:O,hideAddToCartForPrepackItems:w,initialShipEstimate:(0,i.jsx)(eC,{availability:d,leadTime:null==e?void 0:e.leadTime}),productName:E,productDescription:k,productId:M,material:e,index:a,displayPromotionalBundlesAnchor:D,displaySDS:W,countryCode:C,rowValues:z[a],renderBuyNow:e5,setMultipleMinimumQuantityError:eG,erpType:Z,promoCode:c},a)})},e.materialNumber)})})]}),e7&&(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:[eI&&(0,i.jsx)(eE,{preferredDealerName:null!=eL?eL:eO,noPriceForDealer:e8}),(0,i.jsx)(c.A,{variant:"text",className:ei.seeDealerOptionsLink,onClick:()=>et(!0),children:(0,i.jsx)(ej,{dealerCount:eR})})]})})})]}),ea&&e3&&(0,i.jsx)(x.A,{isSavingDealerPreference:e3,open:ea,onClose:()=>et(!1),onDealerSelectCallback:F,disabled:!1,dealers:(null==ez?void 0:ez.getDealers)||[],onSearch:eJ,error:eV,values:z,materialPricing:P,setFieldValue:G,setIsModalOpen:et}),ea&&!e3&&(0,i.jsx)(x.A,{isSavingDealerPreference:e3,open:ea,onClose:()=>et(!1),onDealerSelect:X,disabled:!1,dealers:(null==ez?void 0:ez.getDealers)||[],onSearch:eJ,error:eV,values:z,materialPricing:P,setFieldValue:G,setIsModalOpen:et})]}),!C&&(!e8&&e7||!e7)&&(0,i.jsxs)(u.A,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:!V&&4,children:[(0,i.jsx)(u.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(ec.A,{isMarketplace:Y,marketplaceSellerId:q,marketplaceOfferId:K,productAttributes:Q,displaySellerName:N})}),(0,i.jsx)(u.A,{display:"flex",justifyContent:"flex-end",alignItems:"center",my:4,px:2,children:e1||e2?(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)(h.N,{...A.mK.index({path:eD?"/life-science/ecommerce/ecommerce-faq/ordering-delivery-price":"/collections/offices",language:eS.language,country:eS.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:[(0,i.jsx)(eb.A,{className:ei.japanMMFAQ}),e6&&!Y&&(0,i.jsx)(h.N,{href:e6.url,passHref:!0,children:(0,i.jsx)(p.A,{"data-testid":"p&a-form-request-bulk-link",id:"p&a-form-request-bulk-link",className:ei.bulkOrderLink,color:"primary",target:"_blank",children:e6.label})}),e9&&(0,i.jsx)(c.A,{component:"a",target:"_blank",href:e9.url,variant:"outlined",size:"large",color:"primary",className:ei.buttonFilled,children:e9.label}),eF&&ew&&!e_?(0,i.jsx)(eg.A,{size:"medium"}):(!Y||Y&&V)&&(0,i.jsx)(R.Ay,{handleAddToCart:e=>{if(e.preventDefault(),e3)return et(!0);F()},isSubmitting:L,dirty:B,disabled:ae(),canAddToCart:O&&(!Y||Y&&V),hideAddToCartForPrepackItems:w,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(57477),u=t(87905),p=t(87505),m=t(84768),g=t(64272),h=t(64578),x=t(51139),A=t(77742),y=t(35877),v=t(71541),f=t(98373),b=t(18249),T=t(16652),C=t(43965);let E=(0,l.makeStyles)()(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)},Clear:{display:"none",fontSize:e.typography.pxToRem(10),marginRight:e.spacing(3)},showClear:{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}=E(),h=(0,y.A)(),{formatMessage:x}=(0,A.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:x(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.Clear,{[m.showClear]:""!==u}),onClick:N,children:(0,i.jsx)(C.A,{fontSize:"inherit"})}),(0,i.jsx)(T.A,{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.makeStyles)()(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})]})},k=(0,l.makeStyles)()(e=>({root:{margin:e.spacing(6,0),[e.breakpoints.down("md")]:{margin:e.spacing(4,0),"& > *:first-of-type":{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),paddingRight:"9px",paddingLeft:"9px",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 M=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}(M||{});let P=e=>{let{facet:a,showMore:t,substanceFacetChange:l,selectedSubstanceFacetOptions:A}=e,{classes:y}=k(),v=(0,h.useSearchQuery)(),f=v[1],b=v[2],T=A||(f.find(e=>{let{key:t,options:i}=e;return a.prefix&&(i[0]=i[0].replace(a.prefix,"")),t===a.key})||{options:[]}).options,[C,E]=(0,n.useState)(!1),_=t||C?a.options:a.options.slice(0,a.numToDisplay||6);C&&_.length===a.numToDisplay&&E(!1);let N=C?"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]),O=l?P.includes("".concat(a.key)):T.length>0,L=!a.isCollapsed||O;return(0,i.jsx)("div",{className:y.root,children:(0,i.jsxs)(x.A,{defaultCollapse:L,facetKey:a.key,isSubstanceFacets:!!l,children:[a.key in M&&(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||C)&&(0,i.jsx)(s.A,{onClick:()=>{E(!C),(0,m.y)(N,a.key,N)},"aria-expanded":C,"aria-label":N,className:y.showMore,id:C?"facet-group-".concat(a.key,"-show-less"):"facet-group-".concat(a.key,"-show-more"),children:C?(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 O=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)(O.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(57477),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(95339),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:x,quantity:A,trigger:y,disabled:v,type:f,isLinkButton:b,classes:T}=e,[C,E]=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=()=>{E(!0)},R=async()=>{E(!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.A,{}),(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})}),C&&(0,i.jsx)(o.A,{open:C,onClose:R,materialNumber:a,materialId:t,productName:g||"",productId:h||"",brand:x||"",type:f,quantity:A,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(99220),s=t(11148),o=t(52413),d=t(54753),c=t(71007);let u=(0,l.makeStyles)()(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",textIndent:"-20px",margin:"0",marginLeft:"20px",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)(),{classes: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.sendSearchInteractionEvent)({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.sendSearchInteractionEvent)({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)]})]})]})}},11975:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876),n=t(11788),r=t(8733),l=t(7645);t(14232);var s=t(46129),o=t(27651),d=t(94295);let c=e=>{let{className:a}=e,{userIsLoggedIn:t}=(0,n.iZ)(),c=(0,d.D)(o.JP.countryCode);return t&&c?(0,i.jsxs)(l.A,{fontSize:12,className:a,children:[(0,i.jsx)(r.A,{id:"CONTACT_LOCAL_DEALER_MM",defaultMessage:"For delivery times and prices contact your dealer."})," ",(0,i.jsxs)(s.N,{href:"/life-science/ecommerce/ecommerce-faq/ordering-delivery-price",children:[(0,i.jsx)(r.A,{id:"VIEW",defaultMessage:"View"})," ",(0,i.jsx)(r.A,{id:"FAQ",defaultMessage:"FAQ"})]})]}):null}},12399:(e,a,t)=>{t.d(a,{i:()=>F,A:()=>w});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),x=t(77660),A=t(71007),y=t(54753),v=t(77742),f=t(14232),b=t(8733),T=t(12197),C=t(5411),E=t(77274),j=t(44131),_=t(78206),N=t(10430),S=t(38582),I=t(66784),R=t(30029),k=t(17685),M=t(11788);let P=(0,o.makeStyles)()(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)}})),O=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)(),[x,O]=(0,f.useState)(!1),{userSession:L}=(0,k.j)(),{userErpType:B}=(0,M.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"):O(!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,A.sendErrorEvent)({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()})}},[w,{data:D}]=(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;w({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,E.jr)(j.Yj().trim().required(c(y.A.PLEASE_ENTER_PRODUCT_NUMBER)))})}),(0,i.jsx)(C.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})})]})})}),x&&(null==D?void 0:null===(a=D.getSdsCertificateSearch)||void 0===a?void 0:a.sds)&&(null==D?void 0:null===(t=D.getSdsCertificateSearch)||void 0===t?void 0:t.brands)&&(0,i.jsx)(R.A,{open:x,setModalOpen:O,brands:null==D?void 0:null===(n=D.getSdsCertificateSearch)||void 0===n?void 0:n.brands,sdsDetails:D.getSdsCertificateSearch.sds,productNumber:null==D?void 0:null===(r=D.getSdsCertificateSearch)||void 0===r?void 0:r.productNumber,isAdvancedSearch:!0})]})};var L=t(33967);let B=(0,o.makeStyles)()(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 w=()=>{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",C=(e,a,t)=>{let i=h.tq[null!=t?t:""];(0,A.sendCommonDetailProductIdEvent)({...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"})},E=[{value:"sds",label:o(y.A.SAFETY_DATA_SHEETS),content:(0,i.jsx)(O,{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:x.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:x.e_.Coa},{value:"coo",label:o({id:"CERTIFICATE_OF_ORIGIN_COO",defaultMessage:"Certificates of Origin (COO)"}),content:(0,i.jsx)(L.Ay,{type:x.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:x.e_.Coo},{value:"coq",label:o(y.A.CERTIFICATES_OF_QUALITY),content:(0,i.jsx)(L.Ay,{type:x.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:x.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())),C("switch to "+T+" tab",void 0,a)},"aria-label":"documentation-tabs-".concat(T),"data-testid":"documentation-tabs",className:a.tabs,variant:"scrollable",children:E.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}),E.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:C,certificateType:l||void 0})})]})},t)})]})}},17215:(e,a,t)=>{t.d(a,{A:()=>o});var i=t(37876);t(14232);var n=t(64204),r=t(99220),l=t(43965);let s=(0,r.makeStyles)()(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[200]),[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,{classes: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(99220),d=t(12197),c=t(36503),u=t(5411),p=t(90079),m=t(37290),g=t(5325),h=t(77274),x=t(38582),A=t(82250),y=t(44601),v=t(86024),f=t(28975),b=t(34369),T=t(53471),C=t(11148),E=t(20534),j=t(11788);let _=(0,o.makeStyles)()(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,{classes:I}=_(),R=(0,C.rd)(),[k]=(0,T.u7)(),{setSnackbar:M}=(0,x.W)(),{currentUser:P}=(0,j.iZ)(),[O,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:w,extension:D,fax:W,mobile:U,phone:H,required:G,requiredEmail:z}}=(0,h.dz)(),Y=s.Ik().shape({ccForOrderConfEmailIds:w,email:z,extension:D,fax:W,firstName:G,mobile:U,telephone:H}),V=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 k({variables:a});s&&R.replace(C.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,A.Mw)(t);if(e.length>0){let{code:a}=e[0];g.A[a]?M(x.iZ.CartErrorRequestingQuote,a):M(x.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)(E.A,{}):(0,i.jsx)(l.l1,{initialValues:O,onSubmit:V,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(99220),l=t(54753);let s=(0,r.makeStyles)()(e=>({supplementary:{fontSize:e.typography.pxToRem(12),lineHeight:1.5}})),o=e=>{var a,t;let{promotional:r}=e,{classes: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})})})}},21328:(e,a,t)=>{t.d(a,{O:()=>r});var i=t(11788),n=t(77660);let r=()=>{let e,a,{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,{})}},22071:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876);t(14232);var n=t(12197),r=t(24315),l=t(99220),s=t(8733),o=t(35967),d=t(57477);let c=(0,l.makeStyles)()(e=>({loaderContainer:{display:"flex",margin:e.spacing(2,4,5,0)},chipContainer:{display:"inline-block",margin:e.spacing(2,2,5,0),[e.breakpoints.down("sm")]:{display:"flex",margin:e.spacing(2,2,4,0),overflowX:"scroll"}},chip:{border:"1px solid ".concat(e.palette.grey[500]),borderRadius:e.shape.borderRadius,color:e.palette.primary.main,margin:e.spacing(0,2,2,0),minWidth:88,padding:e.spacing(6,0),textAlign:"center","& .MuiChip-label":{padding:e.spacing(0,2)}},packSize:{fontSize:e.typography.pxToRem(16),lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightBold},price:{fontSize:e.typography.pxToRem(12),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}}})),u=e=>{let{items:a,loading:t,onSelect:l,selectedChip:u,unavailableChips:p,loadCount:m=6}=e,{classes:g,cx:h}=c();return t?(0,i.jsx)("div",{className:g.loaderContainer,children:Array(m).fill({}).map((e,a)=>(0,i.jsx)("div",{className:g.loader,style:{animationDelay:"".concat(.1*a,"s")}},a))}):(0,i.jsx)("div",{className:g.chipContainer,children:a.map((e,a)=>{var t,c;let m=(null==e?void 0:e.value)===u,x=null==p?void 0:p.includes(null==e?void 0:e.value),A=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)(d.A,{className:g.packSize,value:null==e?void 0:null===(c=e.packSize)||void 0===c?void 0:c.toUpperCase()}),(null==e?void 0:e.hidePriceMessageKey)?null:(0,i.jsx)("div",{className:g.price,children:A?(0,i.jsx)(n.A,{variant:"body2",children:(0,i.jsx)(s.A,{id:"INQUIRE",defaultMessage:"Inquire"})}):(0,i.jsx)(n.A,{variant:"body2",children:(0,i.jsx)(o.Gr,{currency:null==e?void 0:e.currency,currencyDisplay:"symbol",style:"currency",value:null==e?void 0:e.price})})})]});return(0,i.jsx)(r.A,{label:y,variant:"outlined",clickable:!0,onClick:()=>l(null==e?void 0:e.value),className:h(g.chip,{[g.chipSelected]:m,[g.chipUnavailable]:x,[g.chipSelectedUnvailable]:m&&x})},"".concat(a,"-").concat(null==e?void 0:e.packSize,"-").concat(null==e?void 0:e.value))})})}},25771:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876),n=t(14232),r=t(11148),l=t(52413),s=t(7645),o=t(99220),d=t(35877),c=t(29468),u=t(8733),p=t(54753),m=t(97710),g=t(92881);let h=(0,o.makeStyles)()(e=>({root:{[e.breakpoints.down("md")]:{flexFlow:"column"}},shipped:{[e.breakpoints.down("lg")]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[e.breakpoints.down("md")]:{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:o="",marketplaceOfferId:x="",productAttributes:A,displaySellerName:y,hideMarketPlaceContactInfo:v}=e,{classes:f,cx:b}=h(),T=(0,d.A)(),C=(0,r.rd)(),E=y||(0,m.t1)(A),j=t&&!!o&&!!x&&!!E,[_,N]=(0,n.useState)(!1),S=()=>{N(e=>!e)};return j?(0,i.jsxs)(s.A,{display:"flex",className:b(f.root,a),children:[(0,i.jsxs)(s.A,{display:"flex",className:f.shipped,children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:"/static/package.svg",alt:"PDF Icon",className:f.contactIcon})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(u.A,{...p.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(l.N,{...r.kJ.index(E,o),children:(0,i.jsx)("a",{children:E})})]}),(0,i.jsxs)("div",{className:f.trustedInfo,children:[(0,i.jsx)(u.A,{...p.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(c.A,{className:f.infoIcon,onClick:S}),_&&(0,i.jsx)(g.A,{open:_,onCancel:S})]})]})]}),v?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{display:"flex",children:(0,i.jsx)("span",{className:f.verticalLine})}),(0,i.jsxs)(s.A,{display:"flex",className:f.flexStart,children:[(0,i.jsx)(s.A,{display:"flex",alignItems:"center",children:(0,i.jsx)("img",{src:"/static/contact.svg",alt:"PDF Icon",className:f.contactIcon})}),(0,i.jsxs)(s.A,{display:"flex",alignItems:"center",children:[(0,i.jsx)(u.A,{...p.A.CONTACT_SELLER_HAVE_QUESTION})," ",(0,i.jsx)(l.N,{...r.kJ.contact(E,o,C.asPath,r.C2.OFFER_MESSAGING,x),children:(0,i.jsx)(s.A,{display:"inline-block",marginLeft:T.spacing(.25),children:(0,i.jsx)("a",{className:f.pointerCursor,children:(0,i.jsx)(u.A,{...p.A.SELLER_CONTACT_SELLER})})})})]})]})]})]}):null}},26925:(e,a,t)=>{t.d(a,{A:()=>ed});var i=t(37876),n=t(71541),r=t(7645),l=t(12197),s=t(5411),o=t(34415),d=t(99220),c=t(35877),u=t(72185),p=t(52413),m=t(11148),g=t(77660),h=t(2184),x=t(88694),A=t(71007),y=t(88700),v=t(75020),f=t(23307),b=t(57548),T=t(97710),C=t(99486),E=t(11788),j=t(14232),_=t(8733),N=t(86367),S=t(35967),I=t(78206),R=t(44478),k=t(68748),M=t(64204),P=t(54753);let O=(0,d.makeStyles)()(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}})),L=e=>{let{availabilityLoading:a,isSubmitting:t,canAddToCart:n,hideAddToCartForPrepackItems:r,anonymousUser:l}=e,{classes:o}=O(),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)(M.A,{className:o.linkButton,id:"submit-button-login-to-add-to-cart",children:(0,i.jsx)(_.A,{...P.A.LOGIN_TO_ADD_TO_CART})})}):(0,i.jsx)(p.N,{passHref:!0,href:"".concat(m.R6.linkProfile(),"?returnUrl=").concat(encodeURIComponent(d.asPath||m.xn.index())),children:(0,i.jsx)(M.A,{className:o.linkButton,children:(0,i.jsx)(_.A,{...P.A.LINK_PROFILE})})})};var B=t(36382),F=t(10113),w=t(89099),D=t(776),W=t(88887);let U=(0,d.makeStyles)({name:"MobileProductPriceAvailability",uniqId:"MobileProductPA1"})((e,a,t)=>({materialSelect:{marginBottom:e.spacing(3),"& .MuiSelect-selectMenu":{fontSize:e.typography.pxToRem(16)},["& .".concat(t.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("lg")]:{fontSize:e.typography.pxToRem(20)}},multiCountryTable:{paddingBottom:e.spacing(7)}})),H=e=>{let{materialPricing:a,country:t,productNumber:n,canAddToCart:l,anonymousUser:s,marketplaceOfferId:o}=e,{classes:d,cx:c}=U(),u=(0,w.useRouter)(),p={materialNumber:a[0].materialNumber,quantity:1,material:a[0]},[m,g]=(0,j.useState)(p),h=(0,B.g9)(),{getSitePreference:x}=(0,E.iZ)(),A=x(E.VD.HideAddToCartForPrepackItems);return(0,j.useMemo)(()=>g(p),[n]),(0,i.jsx)(I.l1,{initialValues:m,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,D.xy)({items:r,productListPageName:u.asPath.includes("/search")?D.L1.SearchResultPage:D.L1.ProductDetailPage}),h([{materialNumber:e.materialNumber,quantity:e.quantity,marketplaceOfferId:o}],i,n,"marketplace"===a[0].catalogType)},enableReinitialize:!0,children:e=>{var n;let{values:o,isSubmitting:u,initialValues:p}=e,g=o.material;return m.materialNumber!==p.materialNumber?null:(0,i.jsx)(I.lV,{children:(0,i.jsxs)("div",{className:c(t&&d.multiCountryTable),children:[(0,i.jsx)(r.A,{mb:1,children:(0,i.jsx)("label",{htmlFor:"TEMP",children:(0,i.jsx)(_.A,{...P.A.SKU})})}),(0,i.jsx)(I.D0,{name:"materialNumber",children:e=>{var t;let{form:n,field:r,meta:l}=e;return(0,i.jsx)(R.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==g?void 0:null===(t=g.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,{...P.A.UNAVAILABLE})]}),value:e.materialNumber}))})}}),g.price&&g.listPrice&&g.listPrice>g.price?(0,i.jsx)("div",{className:d.listPrice,children:(0,i.jsx)(S.Gr,{style:"currency",currencyDisplay:"symbol",currency:g.currency,value:g.listPrice})}):null,(0,i.jsx)(r.A,{display:"flex",alignItems:"center",children:!!g.price&&(0,i.jsx)("div",{className:d.price,children:(0,i.jsx)(S.Gr,{style:"currency",currencyDisplay:"symbol",currency:g.currency,value:g.price})})}),(0,i.jsx)(r.A,{mb:6,mt:4,children:(0,i.jsx)(W.A,{material:g,canAddToCart:l})}),(0,i.jsx)(F.A,{quantity:g.quantity,materialNumber:g.materialNumber,brand:null==g?void 0:g.brand,productName:null==g?void 0:g.materialDescription,productId:null==g?void 0:g.product}),l&&!A?(0,i.jsx)(I.D0,{name:"quantity",children:e=>{var a;let{form:t,field:n}=e;return(0,i.jsx)(k.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==g?void 0:null===(a=g.availabilities)||void 0===a?void 0:a.length),inputProps:{inputMode:"numeric"}})}}):null,!t&&(0,i.jsx)(L,{isSubmitting:u,availabilityLoading:!!(null==g?void 0:null===(n=g.availabilities)||void 0===n?void 0:n.length),canAddToCart:l,hideAddToCartForPrepackItems:A,anonymousUser:s})]})})}})},G=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)(H,{materialPricing:a,country:t,productNumber:n,canAddToCart:r,anonymousUser:l,marketplaceOfferId:s}):null};var z=t(25771),Y=t(84119),V=t(86680),q=t(4009),K=t(71662),Q=t(61622),X=t(40002),$=t(40352),Z=t(81232),J=t(52710);let ee=e=>{let{country:a,currentDtaqDealer:t,materialPricing:n,canAddToCart:r,PricingComponent:l=q.A,displayPromotionalBundlesAnchor:s,displaySDS:o,ctas:d,discontinuedPricingInfo:c,productName:u,displaySellerName:p,productKey:m,productDescription:g,productId:h,images:x,brandKey:A,gaType:y,gaMapProducts:v,addToList:f,condensed:b=!1,isMarketplace:T,isMarketplaceCartEnabled:C,marketplaceSellerId:_,marketplaceOfferId:N,productAttributes:S,onAddToCartResult:R,handlePriceUpdateForDealer:k,updateQuantity:M,erpType:P,dChainMessage:O}=e,L=(0,w.useRouter)(),F=(0,$.Ay)(),W=(0,B.g9)(),{getSitePreference:U,isDTAQZuCustomer:H,isBlueErpIntegrationEnabled:G,isB2BUser:z,userErpType:Y}=(0,E.iZ)(),ee=L.asPath.includes("/compare"),ea=U(E.VD.HideAddToCartForPrepackItems),et=(0,j.useContext)(J.E);if(c){let e=ee?null:null==c?void 0:c.replacementProducts,a=(0,Q.j)(e);return(0,i.jsxs)(J.M,{...et,replacementProducts:e,children:[(0,i.jsx)(Z.A,{discontinuedPricingInfo:c}),a&&(0,i.jsx)(K.A,{type:X.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:m,brandKey:A,images:x},products:a,slidesToShow:F({xs:1,sm:2,lg:3}),withoutControls:a.length<=4})]})}if(!(null==n?void 0:n.length))return null;let ei=H?U(E.VD.PreferredDealerId):null;return(0,i.jsx)(I.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,D.xy)({items:s,productListPageName:L.asPath.includes("/search")?D.L1.SearchResultPage:D.L1.ProductDetailPage}),W(l,i,r,T).then(R))},children:e=>{let{isSubmitting:t,dirty:c,submitForm:m,resetForm:x,setFieldValue:A,values:y}=e;return(0,i.jsx)(I.lV,{children:(0,i.jsx)(l,{country:a,productName:u,displaySellerName:p,productDescription:g,productId:h,materialPricing:n,canAddToCart:r,hideAddToCartForPrepackItems:ea,isSubmitting:t,dirty:c,submitForm:m,resetForm:x,displayPromotionalBundlesAnchor:s,displaySDS:o,ctas:d,isAddToList:!!f,condensed:b,setFieldValue:A,values:y,isMarketplace:T,isMarketplaceCartEnabled:C,marketplaceSellerId:_,marketplaceOfferId:N,productAttributes:S,handlePriceUpdateForDealer:k,updateQuantity:M,erpType:P,dChainMessage:O})})}})};var ea=t(29394),et=t(65264),ei=t(32588),en=t(17685),er=t(93674),el=t(89212),es=t(38882);let eo=(0,d.makeStyles)()(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("lg")]:{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("lg")]:{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}})),ed=e=>{var a,t,d,S,I,R,k,M,P,O,L,B,F,w;let{queryFocus:D,productNumber:W,productDescription:U,images:H,materialIds:V,brandKey:q,LoadingComponent:K=ea.A,ErrorComponent:Q=Y.A,PricingComponent:X,displayPromotionalBundlesAnchor:$,displayAllCountries:Z=!0,checkForPb:ed,ctas:ec,productName:eu,productId:ep,displaySellerName:em,productDetailEvent:eg,gaType:eh=y.k9.Others,gaMapProducts:ex,addToList:eA,pricingExpanded:ey=!1,condensed:ev=!1,sendPandAEvent:ef=!1,isMarketplace:eb=!1,marketplaceSellerId:eT,marketplaceOfferId:eC,productAttributes:eE,usePricingComponentOnMobile:ej,onAddToCartResult:e_,setProductIsAvailable:eN,displayCompareMarketplaceSellerContact:eS=!1,productKey:eI,erp_type:eR,quantity:ek=1,isBBE:eM,eventSentRef:eP}=e,{classes:eO}=eo(),eL=(0,m.rd)(),eB=(0,c.A)(),eF=(0,n.A)(eB.breakpoints.down("sm")),{focus:ew="",catalogType:eD="",context:eW=""}=eL.query||{},eU=(0,f.y5)(eW),{getSitePreference:eH,isDTAQZuCustomer:eG,isMultiCountryUser:ez,currentUser:eY,isBlueErpIntegrationEnabled:eV,isB2BUser:eq,userErpType:eK}=(0,E.iZ)(),{userSession:{country:eQ}}=(0,en.j)(),{authorized:eX,anonymous:e$}=(0,C.I)(C.N.canAddToCart),eZ=ez&&Z,eJ=W.startsWith("CB_"),[e0,{data:e1,loading:e2,error:e4,refetch:e7}]=(0,x.Gb)({fetchPolicy:eG?"no-cache":"cache-first"}),e3=(0,j.useContext)(J.E),[e8,{data:e5,loading:e6,error:e9,refetch:ae,called:aa}]=(0,h.Fo)(),at=eG?eH(E.VD.PreferredDealerId):null,[ai,an]=(0,j.useState)(at),[ar,al]=(0,j.useState)(eQ),as=eH(E.VD.CatalogFilter),ao=eb?g.Mh.Marketplace:null,ad=eM?g.Mh.Buildingblocks:void 0,ac=eV&&eR&&(null==eR?void 0:eR.length)>0,au={variables:{productNumber:W,materialIds:V,brand:q,quantity:ek,catalogType:(0,T.vN)(ad||ao||eD||D||ew||eU),orgId:as,checkForPb:ed,displaySDS:eJ,dealerId:"",checkBuyNow:!0,productKey:eI,...ac&&{erp_type:eR}}},ap=(0,es.h)(e5,(e,a)=>{al(a)});(0,j.useEffect)(()=>{let e=window.navigator.userAgent,a=(0,el.A)(e),t={variables:{...au.variables,cachedPriceOnly:a}};W&&(eZ?e8(au):e0(t))},[eZ,e8,e0,W,ek]),(0,j.useEffect)(()=>{var e,a;if(eZ&&(null==e5?void 0:null===(e=e5.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length)){let[e]=null==e5?void 0:e5.getPricingForMultiCountryProducts;al(null!==(a=null==e?void 0:e.country)&&void 0!==a?a:eQ)}},[null==e5?void 0:e5.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,A.sendProductDetailEvent)(t||[],eu,W,q,eb,eR||[],{isBlueErpIntegrationEnabled:eV,isB2BUser:eq,userErpType:eK}),e4&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&((0,v.ds)(W,e4,"PRODUCT_SOLD_EXCLUSIVELY_BY_MILLIPORE_VIA_OFFLINE_CHANNELS",q,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!=q?q:"",null!=eu?eu:""),eP&&(eP.current=!0))},[e1,e4]);let[am,ag]=j.useState();(0,j.useEffect)(()=>{var e,a;if(null==e5?void 0:null===(e=e5.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let e=null==e5?void 0:e5.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,e5]),(0,j.useEffect)(()=>{am&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&(0,v.ds)(W,void 0,am,q||"",eu||"")},[am]),(0,j.useEffect)(()=>{(am||e4||e9&&ey&&eh===y.k9.PaperDetails)&&(0,v.ds)(W,e4||e9,am||"",q||"",eu||"")},[ey]),(0,j.useEffect)(()=>{var e,a;let t=(null==e5?void 0:null===(e=e5.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length)?null==e5?void 0:null===(a=e5.getPricingForMultiCountryProducts[0])||void 0===a?void 0:a.materialPricing:void 0;eg&&(t||e9)&&(0,A.sendProductDetailEvent)(t||[],eu,W,q),e9&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&(0,v.ds)(W,e9,void 0,q||"",eu||"")},[e6]);let ah=async(e,a,t,i,n)=>(e&&(an(e),au.variables.dealerId=e),e0(au),n(!1)),ax=(0,j.useCallback)(e=>eZ?ae({...au.variables,quantity:e}):e7({...au.variables,quantity:e}),[e1||e5]);(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,q||"",eu||"")},[e2]);let aA=!!e1||!!e5;if((e2||e6)&&!aA)return(0,i.jsx)(K,{displaySDS:eJ});if(e4||e9||aa&&!(e5||e1))return(0,i.jsx)(J.M,{...e3,brand:q,item:W,children:(0,i.jsx)(Q,{handlePriceUpdateForDealer:ah,materialPricing:[{materialNumber:au.variables.productNumber,brand:q,listPrice:0,productGroupSBU:""}],error:e4||e9,productNumber:W,isMarketplace:eb,sellerName:em||(0,T.t1)(eE),marketplaceSellerId:eT,marketplaceOfferId:eC})});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)(et.A,{country:eQ,brandKey:null!=q?q:"",productNumber:null!==(w=null==e1?void 0:null===(F=e1.getPricingForProduct.productInfo[0])||void 0===F?void 0:F.productNumber)&&void 0!==w?w:"",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)(er.A,{}),className:eO.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==e5?void 0:null===(a=e5.getPricingForMultiCountryProducts)||void 0===a?void 0:a.length)?ap:null,(null==e5?void 0:null===(t=e5.getPricingForMultiCountryProducts)||void 0===t?void 0:t.length)?null==e5?void 0:e5.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)(G,{country:null==e?void 0:e.country,materialPricing:null==e?void 0:e.materialPricing,productNumber:W,canAddToCart:!1,anonymousUser:e$,marketplaceOfferId:eC})}),(0,i.jsx)(r.A,{display:ej?void 0:{xs:"none",sm:"block"},className:eO.pricingTableContainer,"data-testid":"pricing-availability-".concat(q).concat(W),id:"pricing-availability-".concat(q).concat(W),mt:3,children:(0,i.jsx)(ee,{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:X,displayPromotionalBundlesAnchor:$,displaySDS:eJ,ctas:ec,brandKey:q,gaType:eh,gaMapProducts:ex,condensed:ev,isMarketplace:eb,isMarketplaceCartEnabled:!!(null==eY?void 0:null===(a=eY.metadata)||void 0===a?void 0:a.isMarketplaceCartEnabled),marketplaceSellerId:eT,marketplaceOfferId:eC,productAttributes:eE,handlePriceUpdateForDealer:ah,updateQuantity:ax,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)(er.A,{}),className:eO.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)(eE),eT,eL.asPath,m.C2.OFFER_MESSAGING,eC),children:(0,i.jsx)("a",{children:(0,i.jsx)(_.A,{id:"CONTACT_SELLER_WITH_NAME",defaultMessage:"Contact {sellerName}.",values:{sellerName:(0,T.t1)(eE)}})})})]})}),!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:q,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:eX&&!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:eO.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:eC}),(0,i.jsx)(z.A,{isMarketplace:eb,marketplaceSellerId:eT,marketplaceOfferId:eC,productAttributes:eE,displaySellerName:em})]}),eF||eL.asPath.includes("/compare")?null:(0,i.jsx)(ei.A,{mb:4}),(0,i.jsx)(r.A,{width:"100%",display:ej?void 0:{xs:"none",sm:"block"},"data-testid":"pricing-availability-".concat(q).concat(W),id:"pricing-availability-".concat(q).concat(W),mt:3*!ev,children:(0,i.jsx)(ee,{currentDtaqDealer:ai,materialPricing:null==e1?void 0:null===(k=e1.getPricingForProduct)||void 0===k?void 0:k.materialPricing,discontinuedPricingInfo:null==e1?void 0:null===(M=e1.getPricingForProduct)||void 0===M?void 0:M.discontinuedPricingInfo,productKey:eI,productDescription:U,productName:null!=eu?eu:"",productId:ep,displaySellerName:null!=em?em:"",images:H,canAddToCart:eX&&!ez&&(!eb||eb&&!!(null==eY?void 0:null===(P=eY.metadata)||void 0===P?void 0:P.isMarketplaceCartEnabled)),PricingComponent:X,displayPromotionalBundlesAnchor:$,displaySDS:eJ,ctas:ec,brandKey:q,gaType:eh,gaMapProducts:ex,addToList:eA,condensed:ev,isMarketplace:eb,isMarketplaceCartEnabled:!!(null==eY?void 0:null===(O=eY.metadata)||void 0===O?void 0:O.isMarketplaceCartEnabled),marketplaceSellerId:eT,marketplaceOfferId:eC,productAttributes:eE,onAddToCartResult:e_,handlePriceUpdateForDealer:ah,updateQuantity:ax,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:q,listPrice:0,productGroupSBU:""}]}):null}},27447:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876),n=t(14232),r=t(99220),l=t(66561),s=t(40597),o=t(14810),d=t(8733);let c=(0,r.makeStyles)()(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,{classes: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})})})}},28907:(e,a,t)=>{t.d(a,{A:()=>u,h:()=>p});var i=t(37876),n=t(11148),r=t(52413),l=t(97710),s=t(57477),o=t(34415),d=t(12197),c=t(77660),u=function(e){return e.NAME="NAME",e.DESCRIPTION="DESCRIPTION",e}({});let p=e=>{let{product:a,focus:t,label:u,onProductLinkClick:p,productNameClass:m,productDescriptionClass:g,productLinkType:h,productName:x,productDescription:A}=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)(r.N,{...n.aR.index(a.brand.key,a.productKey,{catalog:(0,l.vN)(null!=y?y:t)}),passHref:!0,children:(0,i.jsx)(o.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)(d.A,{variant:"body2",children:[x&&m&&(0,i.jsx)(s.A,{value:x+", ",className:m}),(0,i.jsx)(s.A,{value:A,className:g})]}):u})}):"DESCRIPTION"===h?(0,i.jsx)(s.A,{value:a.description}):u})}},29394:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876);t(14232);var n=t(77742),r=t(99220),l=t(7645),s=t(43923),o=t(54753);let d=(0,r.makeStyles)()(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]}})),c=e=>{let{displaySDS:a}=e,{classes:t,cx:r}=d(),{formatMessage:c}=(0,n.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A,{display:["block","none"],children:[(0,i.jsx)(s.A,{height:20,width:.4,marginBottom:3}),(0,i.jsx)(s.A,{height:40,width:.75,marginBottom:4}),(0,i.jsxs)(l.A,{display:"flex",marginBottom:4,children:[(0,i.jsx)(s.A,{height:24,width:24,marginRight:3,style:{borderRadius:"50%"}}),(0,i.jsxs)(l.A,{flex:1,children:[(0,i.jsx)(s.A,{height:14,width:.9,marginBottom:2}),(0,i.jsx)(s.A,{height:14,width:.7})]})]}),(0,i.jsx)(s.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(s.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(s.A,{height:40,width:1})]}),(0,i.jsxs)(l.A,{display:["none","block"],children:[(0,i.jsxs)("div",{className:r(t.tRow,t.tHeadRow),children:[(0,i.jsx)("div",{children:c(o.A.SKU)}),(0,i.jsx)("div",{children:c(o.A.PACK_SIZE)}),(0,i.jsx)("div",{children:c(o.A.AVAILABILITY)}),a&&(0,i.jsx)("div",{children:c(o.A.SDS)}),(0,i.jsx)("div",{children:c(o.A.PRICE)}),(0,i.jsx)("div",{children:c(o.A.QUANTITY)})]}),(0,i.jsx)("div",{children:[,,,].fill({}).map((e,n)=>(0,i.jsx)("div",{className:r(t.tRow,t.tBodyRow),children:Array(a?6:5).fill({}).map((e,a)=>(0,i.jsx)("div",{children:(0,i.jsx)(s.A,{height:28,width:.9,borderRadius:"borderRadius",className:t.loadingBox})},a))},n))})]})]})}},29773:(e,a,t)=>{t.d(a,{A:()=>e1});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(99220),g=t(77742),h=t(8733),x=t(35967),A=t(4648),y=t(21347),v=t(10759),f=t(52413),b=t(88887),T=t(75878),C=t(45484),E=t(78206),j=t(10113),_=t(36382),N=t(28407),S=t(39324),I=t.n(S),R=t(75020),k=t(84119),M=t(97710),P=t(70210),O=t(19490),L=t(93591),B=t(58597),F=t(46588),w=t(11788),D=t(74985),W=t(34369),U=t(53471),H=t(28888);function G(){let e=(0,H._)(["\n query GetQuotesCount {\n getQuotesCount {\n count\n }\n }\n"]);return G=function(){return e},e}let z=(0,t(82897).J1)(G());var Y=t(28975),V=t(11631),q=t(11148),K=t(71007);let Q=(0,m.makeStyles)()(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,{classes:s}=Q(),c=(0,q.rd)(),[u,p]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),{material:x,product:A,quantity:y}=null!=t?t:{},[v]=(0,U.u7)({refetchQueries:[{query:z}]}),f=async()=>{if((null==x?void 0:x.materialNumber)&&y){p(!0),(0,K.sendBeginOrCompleteQuoteRequestEvent)({event:"complete_quote_request",section:"pricing card",component:"modal",elementType:"button",elementText:"submit request"},{productId:x.product,productBrand:x.brand,productVariant:x.materialNumber});try{let{data:a}=await v({variables:{input:{materialNumber:null==x?void 0:x.materialNumber,quantity:y}}});if(a){var e;c.replace(q.q8.quoteDetail(null==a?void 0:null===(e=a.generateQuote)||void 0===e?void 0:e.orderNumber))}}catch(e){g(!0),p(!1),(0,K.sendErrorEvent)({description:"we were unable to initiate your request",errorCategory:"other errors",productId:null==x?void 0:x.product,productVariant:null==x?void 0:x.materialNumber,productName:null==x?void 0:x.materialDescription,productBrand:null==x?void 0:x.brand})}}};return(0,i.jsx)(i.Fragment,{children:u?(0,i.jsx)(D.A,{open:!0,hideBackdrop:!0,children:(0,i.jsx)(V.A,{})}):(0,i.jsx)(Y.Ay,{open:!0,onClose:(e,t)=>a(t),size:Y.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)(Y.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)(Y.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:[x&&A&&y?(0,i.jsx)(W.A,{material:x,product:A,quantity:y}):null,(0,i.jsx)(Y.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 $=t(42778);let Z=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,$.g)();return(0,i.jsx)(d.A,{id:c,className:l,color:"primary",disabled:o,fullWidth:r,onClick:()=>{var e,t,n;(0,K.sendBeginOrCompleteQuoteRequestEvent)({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 J=t(86680),ee=t(88700),ea=t(17685),et=t(99486),ei=t(83707),en=t(27447),er=t(95349),el=t(36503),es=t(29468),eo=t(57477);let ed=(0,m.makeStyles)()(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)},attrValue:{fontWeight:e.typography.fontWeightRegular},closeButton:{display:"none"}})),ec=(0,m.withStyles)(p.Ay,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)}})),eu=e=>{let{id:a,defaultMessage:t,columnValue:n}=e,{classes:r}=ed();return(0,i.jsxs)(el.A,{container:!0,children:[(0,i.jsx)(el.A,{item:!0,children:(0,i.jsx)(l.A,{variant:"caption",className:r.label,children:(0,i.jsx)(h.A,{id:a,defaultMessage:t})})}),(0,i.jsx)(el.A,{item:!0,children:(0,i.jsx)(l.A,{variant:"caption",className:r.attrValue,children:(0,i.jsx)(eo.A,{value:n})})})]})},ep=e=>{let{customClasses:a,dataTestId:t,material:r,showAdditionalColumns:s=!0,showTitle:o=!0,tooltipContent:d}=e,{classes:c}=ed(),[p,m]=(0,n.useState)(!1);return(0,i.jsx)(u.A,{onClickAway:()=>{m(!1)},children:(0,i.jsx)("span",{children:(0,i.jsx)(ec,{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)(eu,{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)(eu,{id:"ADDITIONAL_INFO_PACKAGING_INFO",defaultMessage:"Packaging Information:",columnValue:"".concat(r.packageSize," in ").concat(r.packageType)}),d]}),children:(0,i.jsx)(es.A,{className:c.infoIcon})})})})};var em=t(52710),eg=t(78272),eh=t(75647),ex=t(19409);let eA=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,$.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)(ex.A,{quoteData:a,onClose:p}))},children:(0,i.jsx)(h.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})})};var ey=t(47801);(0,t(48573).H)(ey.Lr,"READY_TO_SHIP_NOTIFICATIONS","v1");var ev=t(6442),ef=t(67450),eb=t(54366);let eT=(0,m.makeStyles)()(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)}})),eC=e=>{let{material:a,userEmail:t,productImageUrl:r,productNumber:s}=e,{classes:o}=eT(),[c,u]=(0,n.useState)("ready"),[p,m]=(0,n.useState)("closed"),[g]=(0,ef.aC)(),x=(0,n.useRef)(null),A=(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=x.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:A,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:x,tabIndex:-1,children:[(0,i.jsxs)(l.A,{component:"h6",className:o.title,children:[(0,i.jsx)(ev.A,{htmlColor:eb.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)(eN,{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 eE=t(90079),ej=t(86024);let e_=(0,m.makeStyles)()(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"}}}})),eN=e=>{let{requestStatus:a,modalType:t,handleClick:n,handleError:r,handleClose:s,userEmail:o,productSKU:c}=e,{classes:u}=e_();return(0,i.jsxs)(i.Fragment,{children:["request"===t&&(0,i.jsx)(ej.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)(eE.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)(ej.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)(eE.A,{color:"inherit",size:20,thickness:5}),disabled:"communicating"===a,children:(0,i.jsx)(h.A,{id:"TRY_AGAIN",defaultMessage:"Try Again"})})]})]})})]})};var eS=t(84830),eI=t(76056),eR=t(21018),ek=t(58745),eM=t(61026),eP=t(4364),eO=t(67792),eL=t(16958),eB=t(94767);let eF=(0,m.makeStyles)()(e=>({taxDisclaimer:{textTransform:"uppercase"},priceDisclaimer:{fontStyle:"italic",fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(1),[e.breakpoints.down("sm")]:{marginTop:e.spacing(2)}}})),ew=e=>{let{countryCode:a,hasDiscount:t=!1,isBBE:n=!1}=e,{classes:r,cx:l}=eF(),s=(0,eB.tb)();return(0,i.jsxs)(i.Fragment,{children:["ar"===a.toLowerCase()&&(0,i.jsx)("div",{className:l(r.priceDisclaimer,r.taxDisclaimer),children:(0,i.jsx)(h.A,{id:"PRICE_WITHOUT_NATIONAL_TAXES",defaultMessage:"PRICE WITHOUT NATIONAL TAXES"})}),t&&s&&(0,i.jsx)("div",{className:r.priceDisclaimer,children:(0,i.jsx)(h.A,{id:"WEB_ONLY_PROMOTION",defaultMessage:"Web-Only Promotion"})}),"cn"===a.toLowerCase()&&n&&(0,i.jsx)("div",{className:l(r.priceDisclaimer,r.taxDisclaimer),children:(0,i.jsx)(h.A,{id:"PRICE_EXCLUDES_TAX_AND_FREIGHT",defaultMessage:"PRICE EXCLUDES TAX AND FREIGHT"})})]})};var eD=t(94295),eW=t(27651),eU=t(69485);let eH=(0,m.makeStyles)()(e=>({promoContainer:{background:e.palette.promoGreen,padding:e.spacing(2,3)},bold:{fontWeight:600},promoDiscountMessage:{fontSize:e.typography.pxToRem(14)},webOnlyDiscountMessage:{fontStyle:"italic",fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(1),[e.breakpoints.down("sm")]:{marginTop:e.spacing(2)}}})),eG=e=>{let{availability:a,gaMessageId:t,promoCode:n,promoDiscount:r}=e,{classes:l}=eH();return(0,eU.L)(t,a),(0,i.jsxs)(el.A,{className:l.promoContainer,container:!0,"data-testid":"promos-container",children:[(0,i.jsx)(el.A,{item:!0,children:(0,i.jsxs)("span",{className:l.promoDiscountMessage,children:[(0,i.jsx)("span",{className:l.bold,children:(0,i.jsx)(h.A,{id:"SAVE",defaultMessage:"Save"})})," ",(0,i.jsx)(h.A,{id:"DISCO_PROMO_MESSAGE",defaultMessage:"{promoDiscount} with code {promoCode}",values:{promoDiscount:(0,i.jsx)("span",{className:l.bold,children:(0,i.jsx)(x.Gr,{value:r/100,style:"percent",minimumFractionDigits:0})}),promoCode:(0,i.jsx)("span",{className:l.bold,children:n})}})]})}),(0,i.jsx)(el.A,{className:l.webOnlyDiscountMessage,children:(0,i.jsx)(h.A,{id:"WEB_ONLY_DISCOUNT",defaultMessage:"Web-Only Discount"})})]})};var ez=t(40330),eY=t(14040),eV=t(3635),eq=t(46129),eK=t(83198);let eQ=(0,m.makeStyles)()(e=>({productNumber:{fontWeight:e.typography.fontWeightBold}})),eX=e=>{let{productNumber:a}=e,{classes:t}=eQ();return(0,i.jsxs)(r.A,{display:"flex","data-testid":"product-not-sold-container",children:[(0,i.jsx)(r.A,{mr:2,children:(0,i.jsx)(eK.A,{color:"error","data-testid":"error-icon"})}),(0,i.jsx)(r.A,{children:(0,i.jsx)(h.A,{id:"PRODUCT_NOT_SOLD_IN_COUNTRY",defaultMessage:"Product {productNumber} is not currently sold in your country.",values:{productNumber:(0,i.jsx)("span",{className:t.productNumber,children:a})}})})]})};var e$=t(11975);let eZ=(0,m.makeStyles)()(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:{width:"100%",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)},signInOffer:{"& p":{fontSize:e.typography.pxToRem(14)},background:e.palette.promoGreen,margin:e.spacing(4,0),padding:e.spacing(2,0),textAlign:"center"},abTestAddToCartButton:{backgroundColor:e.palette.vibrant.yellow,color:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.warning.main,color:e.palette.secondary.main},"&:focus":{backgroundColor:e.palette.vibrant.yellow,border:"".concat(e.spacing(.75),"px solid ").concat(e.palette.common.white),color:e.palette.secondary.main,outline:"".concat(e.spacing(.75),"px solid ").concat(e.palette.warning.main)}}})),{publicRuntimeConfig:{featureFlags:eJ}}=I()(),e0=e=>{let{canAddToCart:a,handleAddToCart:t,hideAddToCartForPrepackItems:n,material:l,quantity:s,validQty:o}=e,{classes:d}=eZ(),[c]=(0,eV.A2)("wabt-233b");return(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(y.Ay,{canAddToCart:a,dirty:!0,fullWidth:!0,handleAddToCart:()=>t(l,s),hideAddToCartForPrepackItems:n,isSubmitting:!1,size:"large",disabled:!o||(null==l?void 0:l.isBlockedProduct),addToCartButtonClass:(null==c?void 0:c.enabled)?d.abTestAddToCartButton:""})})},e1=e=>{var a,t,m,S,I,D,W,U,H,G,z,Y,V,K,Q,X,$,el,es;let{isMultiCountryUser:eo,countryCode:ed,loading:ec,material:eu,product:ex,error:ey,isPricingModal:ev=!1,showPriceDisclaimer:ef=!1,shouldShowReadyToShipNotification:eb=!1,focus:eT,sourceString:eE,promos:ej,productNotSoldInCountry:e_}=e,{classes:eN,cx:eF}=eZ(),eU=(0,q.rd)(),{userSession:eH}=(0,ea.j)(),eV=(0,eB.dU)(),eK=(0,eD.D)(eW.JP.countryCode),eQ=(0,w.iZ)(),{userIsLoggedIn:e1,currentUser:e2,isPublicOrderingCustomer:e4,isSubscriptionUser:e7,isQuoteRequester:e3,isB2BUser:e8,getSitePreference:e5,isDarmstadtUser:e6,isPipelineUser:e9,isFTBUser:ae}=eQ,aa=e5(w.VD.HideAddToCartForPrepackItems),at=(0,w.nL)(eQ),{authorized:ai}=(0,et.I)(et.N.canAddToCart),an=(0,_.g9)(),{formatMessage:ar}=(0,g.A)(),[al,as]=(0,n.useState)(!1),[ao,ad]=(0,n.useState)(!1),[ac,au]=(0,n.useState)(!1),[ap,am]=(0,n.useState)(!1),ag=ae||e8||e9,ah=(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==eu?void 0:eu.materialNumber))},[ej,eu]),{promoType:ax,code:aA,discount:ay,terms:av,uuid:af,hidePromoDetailsForAnonUser:ab}=null!==(Y=null==ah?void 0:ah.data)&&void 0!==Y?Y:{},aT=null!=ab&&ab&&!e1&&eJ.signInPromotion,aC=null!==(V=null==eu?void 0:eu.listPrice)&&void 0!==V?V:0,aE=null!==(K=null==eu?void 0:eu.price)&&void 0!==K?K:0,aj=eu&&(null==eu?void 0:eu.currency)===(null==eu?void 0:eu.listPriceCurrency),a_=aC>aE?(aC-aE)/aC*100:null,aN=null===(a=ex.forms)||void 0===a?void 0:a.find(e=>"bulk order"===e.type),aS=null!==(Q=null===(t=ex.forms)||void 0===t?void 0:t.filter(e=>"bulk order"!==e.type))&&void 0!==Q?Q:[],aI=(0,n.useMemo)(()=>aN?aS.slice(0,1):aS.slice(0,2),[aS,aN]),[aR,ak]=(0,n.useState)(!1),aM=()=>{ak(!1)},aP=()=>{ak(!0),(0,R.Sm)({action:"learn more subscription order",section:"pricing card",component:"right rail",elementType:"link",elementText:"learn more",material:{materialDescription:null==eu?void 0:eu.materialDescription,brand:null==eu?void 0:eu.brand,product:null==eu?void 0:eu.product,materialNumber:null==eu?void 0:eu.materialNumber}})},aO=eJ.subscriptions&&e7&&(null==eu?void 0:eu.shipsToday),aL=(null==eu?void 0:eu.catalogType)==="buildingblocks",aB=null==ex?void 0:ex.isMarketplace,[aF]=null!==(X=null==eu?void 0:eu.availabilities)&&void 0!==X?X:[],{contactPhone:aw,contactEmail:aD}=null!==($=null==aF?void 0:aF.contactInfo)&&void 0!==$?$:{},aW=null==eu?void 0:null===(m=eu.availabilities)||void 0===m?void 0:m.some(e=>null==e?void 0:e.displayInquireLink),aU=ai&&!aa&&!eo&&(!aB||aB&&!!(null==e2?void 0:null===(S=e2.metadata)||void 0===S?void 0:S.isMarketplaceCartEnabled)),aH=(null==aF?void 0:aF.key)==="INQUIRE_FOR_PRICE_AND_AVAILABILITY",aG=(null==e2?void 0:e2.__typename)==="GuestUser"&&!aU,az=(null==e2?void 0:e2.__typename)==="LoggedInUser"&&!(null==e2?void 0:null===(I=e2.metadata)||void 0===I?void 0:I.guestShoppingType)&&!e4&&!e3,aY=ax===eY.c5.BuySave&&(eJ.pdpSMSMPromotion&&(null==av?void 0:av.qualifierType)===eY.Er.Currency||eJ.bmsmPromotion&&(null==av?void 0:av.qualifierType)===eY.Er.Quantity),aV=(null===(D=eQ.currentUser)||void 0===D?void 0:D.email)||"",aq=(null==ex?void 0:null===(U=ex.images)||void 0===U?void 0:null===(W=U[0])||void 0===W?void 0:W.smallUrl)||"",aK=ex.productNumber||"",{isPurpleProduct:aQ}=(0,eS.Q)(ex.erp_type),aX=(0,eD.L)(eW.CN.countryCode),a$=aQ&&aX&&!e1,aZ=Object.values(null!==(el=null==eu?void 0:eu.additionalInfo)&&void 0!==el?el:{}).filter(e=>!!e&&"CartAdditionalInfo"!==e).length,aJ=[aw,aD].filter(e=>!!e).join(" ".concat(ar({id:"OR",defaultMessage:"or"})," ")),a0=()=>{ad(e=>!e)},a1=e=>{let a=eL.Ay[e];return a?ar(a):e},[a2,a4]=(0,n.useState)("FOUR_WEEKS"),{data:a7,error:a3}=(0,eP.rI)({skip:!aO,ssr:!1}),a8=(null==a7?void 0:null===(H=a7.subscriptionFrequencies)||void 0===H?void 0:H.map(e=>({label:a1(e),value:e})))||[],a5=async(e,a)=>{let t=null;ap&&ax===eY.c5.SubscribeSave&&aA&&(t=aA),(0,J.p8)([{materialNumber:e.materialNumber,quantity:a,marketplaceOfferId:e.marketplaceOfferId,subscriptionFrequency:ap?a2:null}],[e],ev?ee.k9.SearchResultPage:ee.k9.ProductDetailPage),await an([{materialNumber:e.materialNumber,quantity:a,subscriptionFrequency:ap?a2:null,promoCode:t,listPrice:aC}],void 0,void 0,aB),am(!1),a4("FOUR_WEEKS")},a6=e=>{am(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==eu?void 0:eu.brand,materialDescription:null==eu?void 0:eu.materialDescription,materialNumber:null==eu?void 0:eu.materialNumber,product:null==eu?void 0:eu.product}})},a9=e=>{let a=a1(e);a4(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==eu?void 0:eu.brand,materialDescription:null==eu?void 0:eu.materialDescription,materialNumber:null==eu?void 0:eu.materialNumber,product:null==eu?void 0:eu.product}})},te=e=>{if("Enter"===e.key&&!ag){let a=e.target.closest("[id]");am((null==a?void 0:a.id)!=="one-time-order-header")}},ta=e=>{var a,t;let{validQty:d}=e,{values:c}=(0,E.j7)(),{quantity:u}=c;return(0,n.useEffect)(()=>{ac||ax!==eY.c5.SubscribeSave||am(!0),au(!0)},[ax]),(0,i.jsxs)(i.Fragment,{children:[(null==eu?void 0:eu.promotionalMessage)?(0,i.jsx)(r.A,{mb:3,children:(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(O.A,{promotional:null==eu?void 0:eu.promotionalMessage})})}):null,(null==eu?void 0:eu.isBlockedProduct)?(0,i.jsxs)(r.A,{className:eN.productBlockedLink,children:[(0,i.jsxs)(s.A,{onClick:()=>ad(!0),children:[(0,i.jsx)(F.A,{className:eN.lockIcon}),(0,i.jsx)(l.A,{className:eN.productBlockedText,children:(0,i.jsx)(h.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),ao&&(0,i.jsx)(B.A,{open:ao,onCancel:a0})]}):(0,i.jsx)(E.D0,{name:"quantity",component:T.A,disabled:aa,error:!d,filled:!0,max:null!==(a=null==eu?void 0:eu.availableQtyInStock)&&void 0!==a?a:9999,min:1}),a$?(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(eI.A,{fullWidth:!0,size:"large"})}):(0,i.jsx)(e0,{canAddToCart:aU,handleAddToCart:a5,hideAddToCartForPrepackItems:aa,material:eu,quantity:u,validQty:d}),(null==eu?void 0:eu.isBuyNow)&&aU?(0,i.jsx)(v.A,{fullWidth:!0,materialNumber:null==eu?void 0:eu.materialNumber,quantity:u,marketplace:aB,gaType:ev?"search results page":"product detail page",promoCode:ax&&ax===eY.c5.PercentOff?aA:void 0}):null,at&&(null==eJ?void 0:eJ.requestQuoteModal)&&!aa&&!aB&&!aL?(0,i.jsx)(r.A,{mt:2,children:e8?(0,i.jsx)(eA,{quoteData:{material:eu,product:ex,quantity:u},disabled:!u}):(0,i.jsx)(Z,{quoteData:{material:eu,product:ex,quantity:u},disabled:!u})}):null,aN&&!aB&&!aa&&!e6&&(0,i.jsx)(f.N,{href:"".concat(aN.url,"?tfa_1=").concat(ex.productNumber,"&tfa_2=").concat((0,eh.Ay)(null!==(t=null==ex?void 0:ex.name)&&void 0!==t?t:"")),passHref:!0,children:(0,i.jsx)(o.A,{className:eN.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,R.RH)({product:ex,materialNumber:null==eu?void 0:eu.materialNumber,cta:aN}),children:(0,i.jsx)(h.A,{id:"REQUEST_BULK_ORDER",defaultMessage:"Request a Bulk Order"})})}),!!aI.length&&!aB&&aI.map(e=>(0,i.jsx)(f.N,{href:e.url,passHref:!0,children:(0,i.jsx)(o.A,{className:eN.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,R.RH)({product:ex,materialNumber:null==eu?void 0:eu.materialNumber,cta:e}),children:(0,i.jsx)(h.A,{id:e.label.toUpperCase().split(" ").join("_"),defaultMessage:e.label})})},e.label)),eb&&(0,i.jsx)(eC,{material:eu,userEmail:aV,productImageUrl:aq,productNumber:aK})]})},tt=e=>{var a;let{validQty:t}=e,{values:n}=(0,E.j7)(),{quantity:o}=n;return(0,i.jsx)(i.Fragment,{children:e9?(0,i.jsx)("div",{className:eN.subscriptionText,children:(0,i.jsx)(h.A,{id:"PIPELINE_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for customers requiring permission to purchase."})}):e8?(0,i.jsx)("div",{className:eN.subscriptionText,children:(0,i.jsx)(h.A,{id:"B2B_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for eProcurement customers at this time."})}):ae?(0,i.jsx)("div",{className:eN.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==eu?void 0:eu.isBlockedProduct)?(0,i.jsxs)(r.A,{className:eN.productBlockedLink,children:[(0,i.jsxs)(s.A,{onClick:()=>ad(!0),children:[(0,i.jsx)(F.A,{className:eN.lockIcon}),(0,i.jsx)(l.A,{className:eN.productBlockedText,children:(0,i.jsx)(h.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),ao&&(0,i.jsx)(B.A,{open:ao,onCancel:a0})]}):(0,i.jsx)(E.D0,{name:"quantity",component:T.A,disabled:aa,error:!t,filled:!0,max:null!==(a=null==eu?void 0:eu.availableQtyInStock)&&void 0!==a?a:9999,min:1}),(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(C.A,{value:a2,onChange:e=>a9(e.target.value),renderValue:e=>a1(e),displayEmpty:!0,size:"medium",children:a8.map(e=>(0,C.h)(e.value,e.value,e.label))})}),(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(y.Ay,{canAddToCart:aU,dirty:!0,fullWidth:!0,handleAddToCart:()=>a5(eu,o),hideAddToCartForPrepackItems:aa,isSubmitting:!1,size:"large",disabled:!t||(null==eu?void 0:eu.isBlockedProduct)})}),(null==eu?void 0:eu.isBuyNow)&&aU?(0,i.jsx)(v.A,{fullWidth:!0,materialNumber:null==eu?void 0:eu.materialNumber,quantity:o,marketplace:aB,subscriptionFrequency:a2,promoCode:ax===eY.c5.SubscribeSave?aA:void 0,gaType:ev?"search results page":"product detail page"}):null]})})},ti={...eu,discoMessage:ar({id:"DISCO_PROMO_MESSAGE",defaultMessage:"{promoDiscount} with code {promoCode}"},{promoDiscount:"-".concat(ay,"%"),promoCode:aA})},tn=null!==(es=null==eu?void 0:null===(G=eu.availabilities)||void 0===G?void 0:G.find(e=>(null==e?void 0:e.messageType)==="primary"))&&void 0!==es?es:null==eu?void 0:null===(z=eu.availabilities)||void 0===z?void 0:z[0],tr=null==tn?void 0:tn.key,tl=aA&&ay&&ax!==eY.c5.SubscribeSave&&ax===eY.c5.PercentOff&&!ap;return e_?(0,i.jsx)("div",{className:eN.buyBoxContainer,children:(0,i.jsx)(eX,{productNumber:aK})}):(0,i.jsx)(E.l1,{initialValues:{materialNumber:null==eu?void 0:eu.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,eg.aA)(g.quantity,null==eu?void 0:eu.minOrderQuantity,eV),v=g.quantity>0&&!y;return(0,i.jsxs)(i.Fragment,{children:[ec?(0,i.jsx)("div",{className:eN.loaderContainer,children:(0,i.jsx)("div",{className:eF(eN.loader,{[eN.minHeight]:ev})})}):(0,i.jsxs)("div",{className:eF(eN.buyBoxContainer,{[eN.minHeight]:ev,[eN.minHeightError]:ev&&!!ey}),children:[ey?(0,i.jsx)(em.M,{source:"pdp",brand:(null==eu?void 0:eu.brand)||(null==ex?void 0:null===(a=ex.brand)||void 0===a?void 0:a.name)||"",item:(null==eu?void 0:eu.materialNumber)||(null==ex?void 0:ex.productNumber),waitUntilVisible:!0,children:(0,i.jsx)(k.A,{error:ey,productNumber:null==ex?void 0:ex.productNumber,isCenterJustified:!1,isMarketplace:aB,sellerName:(null==ex?void 0:ex.displaySellerName)||(0,M.t1)(null==ex?void 0:ex.attributes),marketplaceSellerId:null!==(n=null==ex?void 0:ex.marketplaceSellerId)&&void 0!==n?n:"",marketplaceOfferId:null!==(s=null==ex?void 0:ex.marketplaceOfferId)&&void 0!==s?s:""})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A,{component:"h2",variant:"h2",className:eN.materialNumber,children:[eu?(0,i.jsx)(en.A,{materialNumber:eu.materialNumber}):null,aZ?(0,i.jsx)(ep,{material:eu}):null]}),aL&&(null==eu?void 0:eu.vendorSKU)?(0,i.jsxs)(l.A,{className:eN.vendorSku,children:[(0,i.jsx)(h.A,{id:"VENDOR_SKU",defaultMessage:"Vendor SKU"}),": ",null==eu?void 0:eu.vendorSKU]}):null,aH?(0,i.jsx)(r.A,{mt:4,children:(0,i.jsxs)(l.A,{variant:"body2",children:[(0,i.jsx)(N.A,{className:eN.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:[aw&&(0,i.jsx)("span",{className:eN.phone,children:aw}),aw&&aD&&(0,i.jsx)(l.A,{component:"span",className:eN.or,children:(0,i.jsx)(h.A,{id:"OR",defaultMessage:"or"})}),aD&&(0,i.jsx)("div",{className:eN.email,children:(0,i.jsx)("a",{href:"mailto:".concat(aD),children:aD})})]})}})]})}):(0,i.jsxs)(i.Fragment,{children:[aW?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{className:eN.inquireLink,onClick:()=>as(!0),children:(0,i.jsx)(h.A,{id:"INQUIRE",defaultMessage:"Inquire"})}),al&&(0,i.jsx)(A.A,{open:al,setModalOpen:as,headerContent:null==eu?void 0:eu.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:aJ}})})})]}):(0,i.jsxs)(i.Fragment,{children:[(null==eu?void 0:eu.hidePriceMessageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(er.A,{msgKey:null==eu?void 0:eu.hidePriceMessageKey})}):(0,i.jsx)(l.A,{className:eN.price,component:"h3",variant:"h3",children:(0,i.jsx)(x.Gr,{style:"currency",currencyDisplay:"symbol",currency:null==eu?void 0:eu.currency,value:null!=aE?aE:0})}),null===a_||!(a_>0)||(null==eu?void 0:eu.hidePriceMessageKey)?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{component:"span",className:eN.listPriceLabel,children:(0,i.jsx)(h.A,{id:"LIST_PRICE",defaultMessage:"List Price"})}),(0,i.jsx)(l.A,{component:"span",className:eN.listPrice,children:(0,i.jsx)(x.Gr,{style:"currency",currencyDisplay:"symbol",currency:(null==eu?void 0:eu.listPriceCurrency)||(null==eu?void 0:eu.currency),value:null!=aC?aC:0})}),aj&&a_>=5&&(0,i.jsx)(l.A,{component:"span",className:eN.saveLabel,children:(0,i.jsx)(h.A,{id:"SAVE_DISCOUNT_PRICE",defaultMessage:"Save {discount}%",values:{discount:Math.round(a_)}})})]})]}),ef&&(0,i.jsx)(ew,{countryCode:eH.country,hasDiscount:null!==a_&&!!(null==eu?void 0:eu.ecomStrikeThroughPrice),isBBE:aL}),aT?(0,i.jsxs)("div",{className:eN.signInOffer,children:[(0,i.jsx)(l.A,{children:(0,i.jsx)("strong",{children:(0,i.jsx)(h.A,{id:"LIMITED_TIME_OFFER_PROMO",defaultMessage:"Limited-time Offer"})})}),(0,i.jsx)(l.A,{children:(0,i.jsx)(h.A,{id:"SIGN_IN_FOR_DETAILS",defaultMessage:"{signInLink} for details",values:{signInLink:(0,i.jsx)(eq.N,{href:"".concat(q.VV.index(),"?redirect=").concat(encodeURIComponent(eU.asPath||q.xn.index())),children:(0,i.jsx)(h.A,{id:"SIGN_IN",defaultMessage:"Sign In"})})}})})]}):aY?(0,i.jsx)(ez.A,{className:eN.badgeWrapper,showTooltip:!0,discount:ay,promoTerms:av,promoId:af||"",materialNumber:null==eu?void 0:eu.materialNumber,product:ex}):(0,i.jsx)(em.M,{source:"pdp",brand:null==eu?void 0:eu.brand,item:null==eu?void 0:eu.materialNumber,pricing:ti,children:tl&&(0,i.jsx)(eG,{availability:tn,gaMessageId:tr,promoCode:aA,promoDiscount:ay})}),(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:[eu?tl?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.A,{material:eu,canAddToCart:aU,countryCode:ed,gaDetailsClick:()=>(0,R.Sm)({action:"check availability details",section:ev?"modal p&a":"summary",component:ev?"modal":"right rail",elementType:"link",elementText:"details",material:eu}),gaSection:"pricing card",gaComponent:"right rail"}),(0,i.jsx)(e$.A,{})]}):(0,i.jsxs)(em.M,{source:ev?eE||"srp - ".concat(eT):"pdp",brand:eu.brand,item:eu.materialNumber,pricing:eu,waitUntilVisible:!0,children:[(0,i.jsx)(b.A,{material:eu,canAddToCart:aU,countryCode:ed,gaDetailsClick:()=>(0,R.Sm)({action:"check availability details",section:ev?"modal p&a":"summary",component:ev?"modal":"right rail",elementType:"link",elementText:"details",material:eu}),gaSection:"pricing card",gaComponent:"right rail"}),(0,i.jsx)(e$.A,{})]}):null,(null==eu?void 0:eu.expirationDate)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(ei.A,{expirationDate:eu.expirationDate,outerClassName:eN.labelFontSize,displayInline:!0,displayColon:!0})}):null,(null==eu?void 0:eu.minOrderQuantity)&&(null==eu?void 0:eu.minOrderQuantity)>1?(0,i.jsxs)(l.A,{className:eF(eN.labelFontSize,{[eN.minimumQuantityError]:!v}),children:[(0,i.jsx)(h.A,{id:"MINIMUM_ORDER_QUANTITY",defaultMessage:"Minimum Order Quantity: "}),eu.minOrderQuantity]}):null,(null==aF?void 0:null===(t=aF.supplementaryMessage)||void 0===t?void 0:t.messageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(L.A,{supplementary:null==aF?void 0:aF.supplementaryMessage,productName:ex.name})}):null,(null==eu?void 0:eu.isPBAvailable)&&(0,i.jsx)(r.A,{mt:2,children:(0,i.jsx)(P.A,{materialNumber:null!==(o=null==eu?void 0:eu.materialNumber)&&void 0!==o?o:"",brand:null==eu?void 0:eu.brand,productName:null!==(m=null==eu?void 0:eu.product)&&void 0!==m?m:"",erp_type:null==ex?void 0:ex.erp_type})})]}),(0,i.jsx)(r.A,{mb:3,children:(0,i.jsx)(c.A,{})}),aO?(0,i.jsxs)(r.A,{className:eN.subscriptionContainer,children:[(0,i.jsx)(eR.A,{details:(0,i.jsx)(ta,{validQty:v}),expanded:!ap,onKeyDown:te,summary:(0,i.jsx)(ek.A,{label:"One Time Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>a6(!1),checked:!ap}),summaryAriaControls:"one-time-order-content",summaryId:"one-time-order-header",overrideClasses:{accordion:eN.accordion,summary:eN.summary,details:eN.details}}),(0,i.jsx)(eR.A,{details:(0,i.jsx)(tt,{validQty:v}),expanded:!!ae||!!e8||!!e9||ap,onKeyDown:te,summary:!a3&&(null==a8?void 0:a8.length)?(0,i.jsxs)(r.A,{className:eN.summaryContainer,children:[(0,i.jsxs)(r.A,{className:eN.summaryLabel,children:[(0,i.jsx)(ek.A,{label:"Subscription Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>a6(!0),checked:ap,disabled:ag}),(0,i.jsx)(eM.A,{})]}),ax===eY.c5.SubscribeSave&&(0,i.jsx)("div",{children:(0,i.jsx)(l.A,{className:eN.subsSaveMessage,children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_SAVE_MESSAGE",defaultMessage:"Save {discount}% off list price",values:{discount:ay}})})}),(0,i.jsx)(u.A,{onClickAway:aM,children:(0,i.jsx)(p.Ay,{arrow:!0,classes:{tooltip:eN.tooltip,arrow:eN.arrow},onClose:aM,open:aR,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{className:eN.tooltipHeading,variant:"h3",children:(0,i.jsx)(h.A,{id:"SUBSCRIPTION_ORDER_HEADING",defaultMessage:"Subscription Orders"})}),ax&&ax===eY.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:ay}})}):(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)(eO.A,{className:eN.infoLink,onClick:aP,children:(0,i.jsx)(h.A,{id:"LEARN_MORE",defaultMessage:"Learn More"})})})})]}):(0,i.jsxs)("span",{className:eN.subscriptionError,children:[(0,i.jsx)(N.A,{className:eN.errorIcon}),(0,i.jsx)(h.A,{id:"SUBSCRIPTION_FAILED",defaultMessage:"Subscriptions are currently unavailable."})]}),summaryAriaControls:"subscription-order-content",summaryId:"subscription-order-header",overrideClasses:{accordion:eF(eN.accordion,eN.accordionBackground),summary:eN.summary,details:eN.details}})]}):null,aO||eo?null:(0,i.jsx)(i.Fragment,{children:aG||az?(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,{...q.mK.index({path:eK?"/life-science/ecommerce/ecommerce-faq/ordering-delivery-price":"/collections/offices",language:eH.language,country:eH.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)(ta,{validQty:v})})]})]}),ev?(0,i.jsx)(r.A,{mt:5,className:eF({[eN.pricingModal]:ev}),children:eu?(0,i.jsx)(j.A,{materialNumber:null==eu?void 0:eu.materialNumber,materialId:null==eu?void 0:eu.materialId,brand:null==eu?void 0:eu.brand,productName:null==eu?void 0:eu.materialDescription,productId:null==eu?void 0:eu.product,type:null==eu?void 0:eu.type,quantity:g.quantity,isLinkButton:!0,classes:{linkStyle:eN.linkStyle}}):null}):null]}),(0,i.jsx)(r.A,{mt:5,className:eF({[eN.hideLink]:ev}),children:eu?(0,i.jsx)(j.A,{materialNumber:null==eu?void 0:eu.materialNumber,materialId:null==eu?void 0:eu.materialId,brand:null==eu?void 0:eu.brand,productName:null==eu?void 0:eu.materialDescription,productId:null==eu?void 0:eu.product,type:null==eu?void 0:eu.type,quantity:g.quantity,isLinkButton:!0,classes:{linkStyle:eN.linkStyle}}):null})]})}})}},30510:(e,a,t)=>{t.d(a,{T:()=>eh,A:()=>eA});var i=t(37876),n=t(14232),r=t(99220),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),x=t(82897),A=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,x.J1)(y());var b=t(21347),T=t(75878),C=t(26925),E=t(4009),j=t(54753),_=t(70524),N=t(64272),S=t(52263),I=t(11148),R=t(11788),k=t(99486),M=t(23307),P=t(97710),O=t(28011),L=t(54736),B=t(32886),F=t(75020),w=t(10759),D=t(12197),W=t(46588);let U=(0,r.makeStyles)()(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"}})),H=()=>{let{classes:e}=U();return(0,i.jsxs)("div",{className:e.isBlockedProduct,children:[(0,i.jsx)("div",{className:e.lockIcon,children:(0,i.jsx)(W.A,{fontSize:"inherit"})}),(0,i.jsx)(D.A,{children:(0,i.jsx)(s.A,{...j.A.RESTRICTED_ITEM_MESSAGE})})]})};var G=t(68351);let z=[g.qL.ApoNoStock,g.qL.OutOfStockKey,g.qL.UnknownAvailability],Y=e=>{let{materialPricing:a,selectedChip:t,onSelect:n}=e;return(0,i.jsx)(G.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=>z.includes(e.key))}).map(e=>{let{materialNumber:a}=e;return a}),onSelect:n,id:"sku-selection"})};var V=t(95349),q=t(52413),K=t(17685),Q=t(98411),X=t(3848),$=t(52710),Z=t(80863),J=t(79632),ee=t(71007),ea=t(76764),et=t(10430);let ei=(0,r.makeStyles)()(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)}}})),en=e=>{var a,t;let{brand:r,productNumber:l}=e,{classes:o}=ei(),[d,{data:c}]=(0,et.b0)(),[u,{data:p}]=(0,ea.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)(D.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)(Z.A,{sdsLanguages:[m[0]],productNumber:l||"",brandKey:r.key||"",trigger:(0,i.jsx)(J.A,{}),onClick:()=>(0,ee.sendHeaderSearchEvent)()}),g&&(0,i.jsx)("a",{href:g,target:"_blank",rel:"noopener noreferrer nofollow",onClick:()=>(0,ee.sendHeaderSearchEvent)(),children:(0,i.jsx)(J.A,{label:"SPECIFICATION_SHEET"})})]})]}):null};var er=t(36503),el=t(57477),es=t(49691);let eo=(0,r.makeStyles)()(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"}})),ed=e=>{let{focus:a,linearFormula:t,empiricalFormula:n,casNumber:r,molecularWeight:l,productNumber:o,productBrand:d}=e,{classes:c}=eo(),u=t||n;return(0,i.jsxs)(er.A,{container:!0,component:"dl",spacing:1,className:c.infoList,alignItems:"baseline",children:[u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(er.A,{item:!0,xs:5,lg:2,children:(0,i.jsxs)(D.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)(er.A,{item:!0,xs:7,lg:10,children:(0,i.jsx)("dd",{className:c.formula,children:(0,i.jsx)(el.A,{value:u})})})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(er.A,{item:!0,xs:5,lg:2,component:"dt",children:(0,i.jsxs)(D.A,{variant:"caption",component:"div",children:[(0,i.jsx)(s.A,{id:"CAS_NUMBER",defaultMessage:"CAS Number"}),":"]})}),(0,i.jsx)(er.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(es.m5,{color:"primary",label:r,searchValue:(0,P.aE)(r),searchFocusType:(0,P.UQ)(a),productSearchType:P.mI.CasNumber,onClick:()=>{(0,ee.sendHeaderSearchEvent)({searchTerm:o||"",searchAutoSuggest:"quick view - cas number",searchAutoSuggestTerm:"".concat(r),searchType:(0,P.UQ)(a),searchComponent:"global search",searchErrorMessage:""}),(0,ee.sendProductInfoInteractionEvent)({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)(er.A,{item:!0,xs:5,lg:2,component:"dt",children:(0,i.jsxs)(D.A,{variant:"caption",component:"div",children:[(0,i.jsx)(s.A,{id:"MOLECULAR_WEIGHT",defaultMessage:"Molecular Weight"}),":"]})}),(0,i.jsx)(er.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(el.A,{value:l})})]})]})};var ec=t(84830),eu=t(76056),ep=t(27651),em=t(94295);let eg=(0,r.makeStyles)()(e=>({modalMainContent:{[e.breakpoints.down("md")]:{paddingLeft:e.spacing(4),paddingRight:e.spacing(4),paddingTop:0,marginLeft:e.spacing(0)}},quickLookWrapper:{padding:e.spacing(8)},header:{padding:e.spacing(4),[e.breakpoints.up("md")]:{padding:e.spacing(0),marginTop:e.spacing(0)},[e.breakpoints.down("md")]:{marginTop:e.spacing(6)}},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:e.spacing(28),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("md")]:{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)},[e.breakpoints.up("md")]:{marginBottom:e.spacing(8)}},actions:{[e.breakpoints.up("md")]:{marginTop:e.spacing(3),marginLeft:e.spacing(14)}},mainActions:{display:"flex",gap:e.spacing(4),[e.breakpoints.down("md")]:{flexDirection:"column"}},subActions:{display:"flex",flexDirection:"column",alignItems:"start","& > *":{padding:e.spacing(0),margin:e.spacing(0)},"& .MuiButton-root.Mui-disabled":{color:e.palette.text.disabled,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)}})),eh=()=>{let{classes:e}=eg();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],x=arguments.length>7?arguments[7]:void 0,A=arguments.length>8?arguments[8]:void 0;return function(y){var v,f;let{materialPricing:C,values:N,isSubmitting:S,updateQuantity:M=u.A}=y,{userIsLoggedIn:P,getSitePreference:L,currentUser:B,isPublicOrderingCustomer:D,isQuoteRequester:W}=(0,R.iZ)(),U=(0,em.D)(ep.JP.countryCode),{authorized:G}=(0,k.I)(k.N.canAddToCart),{classes:z}=eg(),{formatMessage:Z}=(0,o.A)(),{setValues:J}=(0,l.j7)(),ee=L(R.VD.HideAddToCartForPrepackItems),{userSession:ea}=(0,K.j)(),et=(null==B?void 0:B.__typename)==="GuestUser"&&!G,ei=(null==B?void 0:B.__typename)==="LoggedInUser"&&!(null==B?void 0:null===(v=B.metadata)||void 0===v?void 0:v.guestShoppingType)&&!D&&!W,en=e=>C.find(a=>a.materialNumber===e),er=en(a)||(null==C?void 0:C[0]),[el,es]=(0,n.useState)(er.materialNumber),[eo,ed]=(0,n.useState)(1);(0,n.useEffect)(()=>{var e;ed(Number(null===(e=N[0])||void 0===e?void 0:e.quantity)||1)},[N]),(0,n.useEffect)(()=>{J(e=>{var t,i;let n=a&&C.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==C?void 0:null===(i=C[0])||void 0===i?void 0:i.quantity)||1}}})},[J,C]);let ec=(0,n.useRef)(1),[ex,eA]=(0,n.useState)(!1),ey=(0,n.useMemo)(()=>en(el),[C,el]);if(!ey)return null;let{price:ev,availabilities:ef,hidePriceMessageKey:eb,leadTime:eT}=ey,eC=null==ey?void 0:ey.availableQtyInStock,[eE]=ef||[],ej=(null==eE?void 0:eE.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:z.label,children:(0,i.jsx)(s.A,{...j.A.SKU})})}),(0,i.jsx)(Y,{materialPricing:C,selectedChip:el,onSelect:e=>{es(e),J(a=>{var t;return{0:{...a[0],materialNumber:e,quantity:Number(null===(t=a[0])||void 0===t?void 0:t.quantity)||1}}})}})]}),eb?(0,i.jsx)(V.A,{msgKey:eb}):null!=ev&&(0,i.jsxs)("div",{className:z.pricePromotionalWrapper,children:[!ej&&(0,i.jsx)(X.A,{material:ey,priceClass:z.price,listPriceClass:z.listPrice}),t&&(0,i.jsx)("div",{className:z.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:z.availabilityMessages,children:ex?(0,i.jsx)("div",{className:z.loadingContainer,children:(0,i.jsx)(eh,{})}):(0,i.jsx)($.M,{source:p&&"p&a modal - ".concat(p),brand:ey.brand,item:ey.materialNumber,pricing:ey,children:(0,i.jsx)(Q.A,{canAddToCart:G,material:ey,initialShipEstimate:(0,i.jsx)(E.f,{availability:eE,quantity:eo,leadTime:eT}),isLoading:ex,hideDetailsLink:!0,gaComponent:"modal",gaSection:"quick view p&a"})})}),et||ei?(0,i.jsx)("div",{className:z.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)(q.N,{...I.mK.index({path:U?"/life-science/ecommerce/ecommerce-faq/ordering-delivery-price":"/collections/offices",language:ea.language,country:ea.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:[A?(0,i.jsx)(eu.A,{size:"medium"}):G&&!ee&&!(null==ey?void 0:ey.isBlockedProduct)&&!ej&&(0,i.jsxs)(m.fW,{className:z.actions,children:[(0,i.jsxs)("div",{className:z.mainActions,children:[(0,i.jsx)(l.D0,{name:"[0].quantity",component:T.A,className:z.quantityField,min:1}),(0,i.jsx)("div",{children:r&&P?(0,i.jsx)(O.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:ee,size:"large"})},options:[{label:Z(j.A.ADD_TO_LIST),onClick:()=>{d&&d(el,eo)}}]}):(0,i.jsx)(b.Ay,{dirty:!0,isSubmitting:S,canAddToCart:!0,disabled:0===eC,hideAddToCartForPrepackItems:ee,size:"large",fullWidth:!0})}),(null===(f=en(el))||void 0===f?void 0:f.isBuyNow)&&(0,i.jsx)(w.A,{materialNumber:el||"",quantity:eo,onSuccess:e,marketplace:h,gaType:p})]}),(0,i.jsx)("div",{className:z.subActions,children:(0,i.jsx)(c.A,{variant:"text",color:"primary",size:"large",disabled:eo===ec.current,onClick:async()=>{(0,F.Sm)({action:"check product availability",section:x?"modal p&a":"quick view p&a",component:"modal",elementType:"link",elementText:"check availability",material:ey}),ec.current!==eo&&(ec.current=eo,eA(!0),await M(eo),eA(!1))},children:(0,i.jsx)(s.A,{...j.A.CHECK_AVAILABILITY_BUTTON})})})]}),(null==ey?void 0:ey.isBlockedProduct)?(0,i.jsx)(H,{}):null]})]})}},eA=e=>{var a;let{open:t,onClose:r,image:l,brand:s,productKey:o,productNumber:d,name:c,description:u,gaLabel:h,gaType:x,initialMaterial:y,promotionalCode:b,showAddToList:T,isMarketplace:E=!1,marketplaceSellerId:j,erpType:_,renderInModal:k=!0,renderDocuments:O=!1,linearFormula:w,empiricalFormula:D,casNumber:W,molecularWeight:U,type:H,gaPricingOverrides:G}=e,{classes:z}=eg(),{userIsLoggedIn:Y,userId:V}=(0,R.iZ)(),[q,K]=(0,n.useState)(""),[Q,X]=(0,n.useState)(1),[Z,J]=(0,n.useState)("price-and-availability"),ee=(e,a)=>{K(e),X(a),J("add-to-list")},{isPurpleProduct:ea}=(0,ec.Q)(_),et=(0,em.L)(ep.CN.countryCode),ei=ea&&et&&!Y,er=(0,n.useMemo)(()=>ex(r,y,b,T,ee,x,E,k,ei),[y]),el=(0,I.rd)(),{getSitePreference:es}=(0,R.iZ)(),eo=es(R.VD.CatalogFilter)||void 0,{context:eu="",focus:eA=""}=el.query,ey=(0,M.y5)(eu),ev=(0,P.vN)(ey),{data:ef,loading:eb}=function(e){let a={...v,...e};return A.IT(f,a)}({variables:{brandKey:s.key,productKey:o,catalogType:ev,orgId:eo}}),eT=null==ef?void 0:null===(a=ef.getProductDetail)||void 0===a?void 0:a.paMessage,eC=H===g.iC.ThirdPartyProvider,eE=null!=y?y:"";(0,n.useEffect)(()=>{J(t?"price-and-availability":null),x&&(0,F.Sm)({action:"view p&a",section:x,component:k?"carousel":"autosuggest",elementType:k?"button":void 0,elementText:k?"quick view":void 0,material:{materialDescription:c,brand:s.key,product:d}})},[d,x,h,t,k]);let{data:ej,refetch:e_}=(0,B.g)({fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",skip:!Y,variables:{input:{perpage:100,sortcolumn:"lastUpdatedDate"}}}),eN=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:z.header,children:(0,i.jsx)(p.c,{image:l,brand:s,productKey:o,productNumber:d,name:c,description:u,showPreviouslyPurchasedChip:!0,isMarketplace:E,marketplaceSellerId:j||void 0,onProductLinkClick:r,additionalInfo:(w||D||W||U)&&(0,i.jsx)(ed,{focus:eA,productNumber:d,casNumber:W,molecularWeight:U,linearFormula:w,empiricalFormula:D,productBrand:s.key})})}),(0,i.jsx)("div",{className:z.main,children:(0,i.jsx)("div",{className:z.thumbnailOffset,children:(0,i.jsx)($.M,{source:x&&"p&a modal - ".concat(x),brand:s.key,item:d,children:eb?(0,i.jsx)(eh,{}):eT?(0,i.jsx)(S.Ay,{brandKey:s.key,productNumber:d,paMessage:eT,gaPricingOverrides:G}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.A,{productNumber:d,brandKey:s.key,LoadingComponent:eh,PricingComponent:eb?eh:er,usePricingComponentOnMobile:!0,condensed:!0,onAddToCartResult:r,gaType:x,gaMapProducts:N.w_,productKey:o,isMarketplace:E,erp_type:_,productName:c,isBBE:eC,materialIds:[eE]}),O&&(0,i.jsx)(en,{brand:s,productNumber:d})]})})})})]});return k?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.Ay,{open:"price-and-availability"===Z,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:z.modalMainContent,children:eN()})}),T&&(null==ej?void 0:ej.getSharedLists)&&(0,i.jsx)(L.A,{open:"add-to-list"===Z,onClose:()=>{J(null),r()},materialNumber:q,quantity:Q,lists:ej.getSharedLists.sharedLists,refetchLists:e_,userId:V})]}):(0,i.jsx)("div",{className:z.quickLookWrapper,children:eN()})}},32588:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876);t(14232);var n=t(8733),r=t(99220),l=t(7645),s=t(12197),o=t(34415),d=t(11788),c=t(54753),u=t(11148),p=t(94295),m=t(27651),g=t(46129);let h=(0,r.makeStyles)()(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"}})),x=e=>{let{mb:a,mr:t,signInGAEvent:r}=e,{classes:x}=h(),A=(0,u.rd)(),{userIsLoggedIn:y,currentUser:v}=(0,d.iZ)(),f=(0,p.L)(m.HK.countryCode),b=(null==v?void 0:v.__typename)==="LoggedInUser"&&v.soldToPartners.length<1;return y?b&&!f?(0,i.jsx)(l.A,{mb:a,mr:t,children:(0,i.jsx)("div",{className:x.container,children:(0,i.jsxs)("div",{className:x.contentContainer,children:[(0,i.jsx)(o.A,{href:"".concat(u.R6.linkProfile(),"?returnUrl=").concat(encodeURIComponent(A.asPath||u.xn.index())),className:x.link,children:(0,i.jsx)(n.A,{...c.A.LINK_YOUR_ACCOUNT})}),(0,i.jsx)(s.A,{variant:"body1",component:"span",className:x.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:x.container,children:(0,i.jsx)("div",{className:x.contentContainer,children:(0,i.jsx)(s.A,{variant:"body1",component:"span",className:x.title,children:(0,i.jsx)(n.A,{id:"SIGN_IN_VIEW_ORG_CONTRACT_PRICING",defaultMessage:"{signInLink} to View Organizational & Contract Pricing.",values:{signInLink:(0,i.jsx)(g.N,{href:"".concat(u.VV.index(),"?redirect=").concat(encodeURIComponent(A.asPath||u.xn.index())),onClick:()=>null==r?void 0:r(),children:(0,i.jsx)(n.A,{id:"SIGN_IN",defaultMessage:"Sign In"})})}})})})})})}},32609:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876);t(14232);var n=t(34415),r=t(7645),l=t(99220),s=t(28407),o=t(83198),d=t(54753),c=t(8733),u=t(21826),p=t(89099),m=t(69485),g=t(11148);let h=(0,l.makeStyles)()(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)}})),x=e=>{var a;let{discontinuedPricingInfo:t,leftAligned:l}=e,{classes:x,cx:A}=h(),y=(0,p.useRouter)(),v=y.asPath.includes("/search"),f=y.asPath.includes("/compare"),b=!!(null==t?void 0:null===(a=t.replacementProducts)||void 0===a?void 0:a.length)||!!(null==t?void 0:t.displaySimilarProductLabel)||!(null==t?void 0:t.hideReplacementProductLink),T=(null==t?void 0:t.displaySimilarProductLabel)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c.A,{id:"RECOMMENDED_MESSAGE_DISCRIPTION",defaultMessage:"View Similar Product(s) Below or{contactTechnicalService}for assistance. ",values:{contactTechnicalService:(0,i.jsx)(n.A,{className:x.link,href:g.mA.customerSupportWithFormId("tfa_13"),children:(0,i.jsx)(c.A,{...d.A.CONTACT_TECHNICAL_SERVICE})})}})}):(0,i.jsx)(c.A,{...d.A.RECOMMENDED_REPLACEMENT_PRODUCTS}),C=b?(0,i.jsx)(m.J,{...d.A.THIS_PRODUCT_DISCONTINUED,values:{recommendedProductMessage:f?null:T}}):(0,i.jsx)(m.J,{...d.A.THIS_PRODUCT_DISCONTINUED,values:{recommendedProductMessage:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{className:x.link,href:g.mA.customerSupportWithFormId("tfa_13"),children:(0,i.jsx)(c.A,{...d.A.CONTACT_TECHNICAL_SERVICE})}),(0,i.jsx)(c.A,{...d.A.FOR_ASSISTANCE})]})}});return v||f?(0,i.jsxs)(r.A,{className:A(x.simpleAlert,{[x.alignLeft]:f||l}),children:[(0,i.jsx)(r.A,{className:x.errorIcon,children:(0,i.jsx)(o.A,{color:"error"})}),C]}):(0,i.jsx)(u.A,{severity:"error",className:x.errorAlert,icon:(0,i.jsx)(s.A,{style:{fontSize:16}}),children:C})}},33086:(e,a,t)=>{t.d(a,{D:()=>i,_:()=>n});let i="facet-search",n=e=>e.asPath.includes(i)},34369:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876);t(14232);var n=t(8733),r=t(99220),l=t(12197),s=t(57477),o=t(44509);let d=(0,r.makeStyles)()(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,{classes: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:()=>E});var i=t(37876),n=t(14232),r=t(99220),l=t(12197),s=t(5411),o=t(77660),d=t(88694),c=t(2184),u=t(57477),p=t(8733),m=t(86024),g=t(86367),h=t(11788),x=t(99486),A=t(52413),y=t(11148),v=t(97710),f=t(11631),b=t(84119),T=t(52263);let C=(0,r.makeStyles)()(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)}})),E=e=>{var a,t,r;let{onClose:E,substanceName:j,productNumber:_,productKey:N,brandKey:S,description:I,materialIds:R,isMarketplace:k=!1,marketplaceSellerId:M,marketplaceOfferId:P,productAttributes:O,erp_type:L,productName:B,displaySellerName:F,pricingData:w,paMessage:D}=e,{classes:W,cx:U}=C(),{getSitePreference:H,isDTAQZuCustomer:G,isMultiCountryUser:z,currentUser:Y,isBlueErpIntegrationEnabled:V}=(0,h.iZ)(),{focus:q="",catalog:K=""}=(0,y.rd)().query||{},Q=H(h.VD.CatalogFilter),{authorized:X}=(0,x.I)(x.N.canAddToCart),$=k?o.Mh.Marketplace:null,Z=V&&L&&(null==L?void 0:L.length)>0,J=G?H(h.VD.PreferredDealerId):null,[ee,ea]=(0,n.useState)(null==w?void 0:w.materialPricing),[et,{data:ei,loading:en,error:er}]=(0,d.Gb)(),[el,{data:es,loading:eo,error:ed}]=(0,c.Fo)(),ec=eo||en,eu=ed||er,ep=async()=>{var e,a;let t={...Z&&{erp_type:L},brand:S,catalogType:(0,v.vN)($||q||K),checkBuyNow:!0,checkForPb:!0,dealerId:J,displaySDS:!1,materialIds:R,orgId:Q,productKey:N,productNumber:_,quantity:1};z?await el({variables:t}):await et({variables:t});let i=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;i&&ea(i)};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):D||ep()},[eu,ec,z,es,D,w,ei]),(0,i.jsx)(m.A,{open:!0,onClose:()=>{E(!1)},size:m.I.Large,renderTitle:()=>(0,i.jsxs)("div",{className:W.header,children:[(0,i.jsx)(l.A,{component:"h2",variant:"h2",className:W.vr2,children:_}),(0,i.jsx)(l.A,{component:"div",className:U(W.substance,W.truncateText),children:(0,i.jsx)(u.A,{value:j})}),(0,i.jsx)(l.A,{component:"div",className:U(W.description,W.truncateText),children:(0,i.jsx)(u.A,{value:I})})]}),children:(0,i.jsxs)("div",{className:W.body,children:[D?(0,i.jsx)(T.Ay,{productNumber:_,brandKey:S,paMessage:D}):(null==ee?void 0:ee.length)?(0,i.jsx)(g.A,{productName:B,materialPricing:ee,multiCountryData:es,canAddToCart:X&&!z&&(!k||!!(null==Y?void 0:null===(a=Y.metadata)||void 0===a?void 0:a.isMarketplaceCartEnabled)),marketplaceOfferId:k&&ee&&(null===(t=ee[0])||void 0===t?void 0:t.marketplaceOfferId)?null===(r=ee[0])||void 0===r?void 0:r.marketplaceOfferId:P,renderSecondaryAction:()=>(0,i.jsx)("div",{className:W.viewDetailsWrapper,children:(0,i.jsx)(A.N,{...y.aR.index(S,N,{catalog:(0,v.vN)(q)}),passHref:!0,children:(0,i.jsx)(s.A,{color:"primary",variant:"outlined",size:"large",fullWidth:!0,children:(0,i.jsx)(p.A,{id:"VIEW_PRODUCT_DETAILS",defaultMessage:"View Product Details"})})})}),erpType:L}):null,(ec||eu)&&(0,i.jsxs)("div",{className:W.alternateStatesWrapper,children:[ec&&!eu&&(0,i.jsx)(f.A,{}),eu&&(0,i.jsx)(b.A,{error:ed||er,productNumber:_,isMarketplace:k,sellerName:F||(0,v.t1)(O),marketplaceSellerId:M,marketplaceOfferId:P})]})]})})}},36820:(e,a,t)=>{t.d(a,{A:()=>_});var i=t(37876),n=t(14232),r=t(99220),l=t(35877),s=t(54753),o=t(71541),d=t(64204),c=t(5411),u=t(9567),p=t(23184),m=t(89748),g=t(82440),h=t.n(g),x=t(8733),A=t(86024),y=t(44509),v=t(57477),f=t(67334),b=t(11148),T=t(52413),C=t(70183);let E="".concat(124,"px"),j=(0,r.makeStyles)()(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(E,")"),[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("lg")]:{width:"100%"}}})),_=e=>{let{isOpen:a,images:t,onClose:r,name:g,productId:E,brand:_}=e,{classes:N,cx:S}=j(),I=(0,l.A)(),R=t.length,k=(0,o.A)(I.breakpoints.up("md")),M=R-1,[P,O]=(0,n.useState)(0),[L,B]=(0,n.useState)(!1),F=e=>{B(!1),O(e)},w=()=>{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:N.productLinkWrapper,children:[(0,i.jsx)("h4",{className:N.productNumberHeading,children:(0,i.jsx)(x.A,{...s.A.PRODUCT_NUMBER})}),(0,i.jsx)(T.N,{...b.aR.index(a,t),passHref:!0,children:(0,i.jsx)("a",{className:N.productLink,children:(0,i.jsx)(v.A,{value:t})})})]})};return(0,i.jsx)(A.A,{open:a,onClose:()=>{F(0),r(!a)},size:A.I.Large,renderTitle:()=>(0,i.jsx)(x.A,{...s.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:N.carouselWrapper,children:(0,i.jsx)(h(),{slideIndex:P,renderBottomCenterControls:null,disableAnimation:!0,onDragStart:()=>B(!1),renderCenterLeftControls:()=>(0,i.jsx)(i.Fragment,{children:P>0&&(0,i.jsx)(d.A,{className:S(N.nav,N.prevNav),onClick:D,"aria-label":"previous",children:(0,i.jsx)(u.A,{className:N.buttonIcon,color:"primary"})})}),renderCenterRightControls:()=>(0,i.jsx)(i.Fragment,{children:P{let{label:t,brandKey:n,productKey:r}=e;return(0,i.jsx)("div",{className:N.slide,children:(0,i.jsxs)("div",{className:N.mainContentWrapper,children:[L?(0,i.jsx)("div",{className:S(N.mobileLabelWrapper,N.labelText),"data-testid":"mobile-label-wrapper-".concat(t),children:t&&(0,i.jsx)(v.A,{value:t})}):e.videoUrl?(0,i.jsx)("div",{className:N.videoContainer,"data-testid":"video-container-".concat(t),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:N.videoLink,name:g,brand:_||n,productId:E})}):(0,i.jsx)(f.A,{image:e}),t||n&&r?(0,i.jsxs)("div",{className:N.labelWrapper,children:[(0,i.jsx)("div",{className:N.desktopLabelWrapper,children:(0,i.jsxs)("div",{className:N.desktopLabel,children:[n&&r&&U({brandKey:n,productKey:r}),(0,i.jsx)("div",{className:N.labelText,children:(0,i.jsx)(v.A,{value:t})})]})}),(0,i.jsx)("div",{className:N.mobileLabelTrigger,children:(0,i.jsx)(c.A,{onClick:()=>B(!L),"data-testid":"mobile-label-trigger-".concat(t),children:L?(0,i.jsx)(x.A,{...s.A.HIDE_CAPTION}):(0,i.jsx)(x.A,{...s.A.SHOW_CAPTION})})})]}):null]})},a)})})}),(0,i.jsx)("div",{className:N.footer,children:(0,i.jsx)(h(),{slideIndex:t.length>4?P:void 0,className:N.footerCarousel,withoutControls:!0,slidesToShow:5,style:k?{padding:"0 16px"}:{padding:"4px"},cellAlign:"left",children:t.map((e,a)=>(0,i.jsx)("div",{className:N.thumbnailWrapper,children:(0,i.jsxs)(d.A,{className:S(N.thumbnailButton,a===P&&N.active),onClick:()=>W(a),"data-testid":"images-thumbnail-button-".concat(a),children:[(0,i.jsx)("div",{className:S(a!==P&&N.overlay)}),e.videoUrl&&(0,i.jsx)(m.A,{className:N.playButtonIcon}),(0,i.jsx)(y.A,{className:N.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(21970),l=t(99220),s=t(27651),o=t(30915);let d=(0,l.makeStyles)()(e=>({multiCountryPricingTabs:{marginBottom:e.spacing(5)}}));function c(e,a){let[t,l]=(0,n.useState)([]),{classes: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:()=>n,j:()=>i});var i=function(e){return e.RecentlyViewed="recently viewed products",e.RecentlyViewedHomepage="recently viewed products homepage",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 n={"recommended products":{id:"RECOMMENDED_PRODUCTS",defaultMessage:"Recommended Products"},"related products":{id:"RELATED_PRODUCTS",defaultMessage:"Related Products"},"recently viewed products":{id:"RECENTLY_VIEWED_PRODUCTS",defaultMessage:"Recently Viewed Products"},"customers also viewed":{id:"CUSTOMERS_ALSO_VIEWED",defaultMessage:"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":{id:"NEW_PRODUCT",defaultMessage:"New Product"},"popular products":{id:"POPULAR_PRODUCTS",defaultMessage:"Popular Products"},"recently viewed products homepage":{id:"recently viewed products homepage",defaultMessage:"Recently Viewed Products Homepage"}}},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)}},44788:(e,a,t)=>{t.d(a,{A:()=>s});var i=t(37876);t(14232);var n=t(89099),r=t(23604),l=t(2487);let s=e=>{let{currentExperience:a,className:t=""}=e,s=(0,n.useRouter)(),[,o]=(0,r.lT)([r.PK.SrpExperience]);return(0,i.jsx)(l.A,{variant:"outlined",onClick:()=>{o(r.PK.SrpExperience,"old"===a?"new":"old",{path:"/"}),s.replace(s.asPath)},className:"srp-toggle-btn ".concat(t),children:"old"===a?"Switch to New SRP":"Switch to Old SRP"})}},45249:(e,a,t)=>{t.d(a,{A:()=>C,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(64578),p=t(75933);let m=l()(()=>Promise.all([t.e(9),t.e(6369)]).then(t.bind(t,66369)),{loadableGenerated:{webpack:()=>[66369]},loadableGenerated:{webpack:()=>[66369]}}),g=l()(()=>Promise.all([t.e(9),t.e(3949)]).then(t.bind(t,3949)),{loadableGenerated:{webpack:()=>[3949]},loadableGenerated:{webpack:()=>[3949]}}),h=l()(()=>t.e(432).then(t.bind(t,40432)),{loadableGenerated:{webpack:()=>[40432]},loadableGenerated:{webpack:()=>[40432]}}),x=l()(()=>t.e(7368).then(t.bind(t,97368)),{loadableGenerated:{webpack:()=>[97368]},loadableGenerated:{webpack:()=>[97368]}}),A=l()(()=>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()(()=>t.e(8379).then(t.bind(t,48379)),{loadableGenerated:{webpack:()=>[48379]},loadableGenerated:{webpack:()=>[48379]}}),b=(0,o.makeStyles)()(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 C=()=>{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)(x,{});break;case d.Xc.SiteContent:l=(0,i.jsx)(A,{});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,{})]})}},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(57477);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})})]})}},50524:(e,a,t)=>{t.d(a,{Gd:()=>u,Yo:()=>p});var i=t(89099),n=t(8288),r=t(88700),l=t(97710),s=function(e){return e.B2bAuth="b2b authentication",e.Docs="document library",e.DocumentsSearch="document search",e.Product="pdp",e.SpecificationSheet="spec sheet",e.SemiConfigurators="semi-configurators",e.WimsAuth="WIMS auth",e.X_Cart="x cart",e.Home="homepage",e.Search="srp",e}({});let o=e=>["order-center","configurators","semi-configurators"].some(a=>e.includes(a)),d=e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(""),c=e=>e.toLowerCase().replaceAll("-"," ").trim(),u=()=>{var e;let a=(0,i.useRouter)(),t=(0,n.yp)(a.asPath);if((null==t?void 0:t.pathAfterBasename)==="/"||"/[country]/[language]"===a.pathname||"/[country]/[language]/"===a.pathname)return"homepage";if(!t.pathAfterBasename)return"uncategorized path - ".concat(null==a?void 0:a.asPath);let r=null==t?void 0:null===(e=t.pathAfterBasename)||void 0===e?void 0:e.split("/"),l=o(t.pathAfterBasename)&&r.length>2?r[2]:r[1],u=d(l);return u in s?s[u]:c(l)},p={[l.WX.BuyItAgain]:r.k9.BuyAgain,[l.WX.Recently]:r.k9.RecentlyViewedProducts,[l.WX.RecentlyHomepage]:r.k9.RecentlyViewedHomepage,[l.WX.Recommended]:r.k9.RecommendedProducts,[l.WX.Featured]:r.k9.FeaturedProducts,[l.WX.Related]:r.k9.RelatedProducts,[l.WX.CustomersAlsoViewed]:r.k9.CustomersAlsoViewed,[l.WX.FrequentlyPurchased]:r.k9.FrequentlyPurchasedProducts,[l.WX.CartRecommendedProducts]:r.k9.CartRecommendedProducts,[l.WX.CompareSimilarItems]:r.k9.CompareSimilarItems,[l.WX.BestSellers]:r.k9.BestSellerProducts,[l.WX.ProductHeroCard]:r.k9.ProductHeroCard,[l.WX.BuyAgainHomepage]:r.k9.BuyAgain,[l.WX.NewArrivals]:r.k9.NewArrivals,[l.WX.PopularProducts]:r.k9.PopularProducts,[l.WX.DiscountedProducts]:r.k9.DiscountedProducts,[l.WX.NewArrivalProducts]:r.k9.NewArrivals,[l.WX.RecentlyViewedProducts]:r.k9.RecentlyViewedProducts}},51684:(e,a,t)=>{t.d(a,{A:()=>r});var i=t(37876);t(14232);let n=(0,t(99220).makeStyles)()(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(99220),l=t(34415),s=t(5411),o=t(39069),d=t(52413),c=t(79399),u=t(69485),p=t(64673),m=t(88700),g=t(17685),h=t(8288),x=t(71007);let A=(0,r.makeStyles)()(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"},pdpDisplayTypeButton:{margin:e.spacing(1,0),[e.breakpoints.up("md")]:{width:"100%"}}})),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,leftAlign:t,paMessage:r,productNumber:b,gaPricingOverrides:T={},displayType:C}=e;(0,u.L)("PA_MESSAGE");let{classes:E,cx:j}=A(),[_,N]=(0,n.useState)(!1),{userSession:S}=(0,g.j)(),I="pdp"===C,R={htmlLinks:[],htmlText:[]};return _&&(R=v(y(r))),(0,n.useEffect)(()=>{N(!0)},[]),(0,i.jsx)(i.Fragment,{children:_?(0,i.jsx)("div",{className:E.container,id:"pricing-availability-message-".concat(a,"-").concat(b),"data-testid":"pricing-availability-message-".concat(a,"-").concat(b),children:(0,i.jsxs)("div",{className:j(E.paMessageContainer,{[E.leftAlign]:t}),children:[!t||!I&&(0,i.jsx)(o.A,{light:!0}),(e=>{let t=f(e),n=e.htmlText[0];if((null==n?void 0:n.localName)==="b"){var r;return(0,i.jsxs)("div",{className:E.contentWrapper,children:[(0,i.jsxs)("b",{children:[n.textContent," "]}),(0,i.jsx)("span",{children:null===(r=n.nextSibling)||void 0===r?void 0:r.textContent}),(0,i.jsx)("span",{children:(0,i.jsx)(d.N,{href:t[0].href,passHref:!0,children:(0,i.jsx)(l.A,{className:E.textLink,color:"primary","data-testid":"pa-message-link-".concat(a,"-").concat(b),children:t[0].text})})})]})}return(null==n?void 0:n.localName)==="span"?(0,i.jsxs)("div",{className:E.contentWrapperWithButtons,children:[(0,i.jsx)("span",{children:n.textContent}),(0,i.jsx)("div",{className:E.buttonContainer,children:t.map(e=>(0,i.jsx)(s.A,{"data-testid":"pa-message-button-".concat(a,"-").concat(b),variant:"contained",color:"primary",href:e.href,className:j(E.button,{[E.pdpDisplayTypeButton]:I}),onClick:()=>{if("/lab-water"===e.href||e.href.includes("/campaigns/milli-q-iq")){let a=(0,h.xS)(S,e.href),t="/lab-water"===e.href?"select and configure system":"contact specialist",i="/lab-water"===e.href?a.as+"?step=1":a.as;(0,c.b8)({event:p.FL.Lab_Water_Configurator_Interaction,action:t,component:m.IP.Body,elementType:m.T.Button,elementText:t,linkUrl:i,productId:b,productBrand:m.Fl.Mm})}(0,x.sendPricingOverrideEvent)({action:e.text,detail:(null==n?void 0:n.textContent)||void 0,elementType:"button",elementText:e.text,linkUrl:e.href,productId:b,productBrand:a,...T})},children:e.text},e.text))})]}):null})(R)]})}):null})}},53295:(e,a,t)=>{t.d(a,{A:()=>ea});var i=t(37876),n=t(14232),r=t(99220),l=t(35877),s=t(34415),o=t(52413),d=t(11148),c=t(57477),u=t(44509),p=t(77660),m=t(74770);let g=(0,r.makeStyles)()(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,{classes:l}=g(),h=(null==r?void 0:r.features)&&(null==r?void 0:r.features.length)>0,[x]=null!==(t=null==r?void 0:r.images)&&void 0!==t?t:[],A=null==r?void 0:null===(a=r.productKey)||void 0===a?void 0:a.replace(/[\W_]+/g,"");return(0,i.jsxs)("div",{className:l.container,children:[(0,i.jsx)("div",{className:l.imageContainer,children:x?(0,i.jsx)(u.A,{alt:null==r?void 0:r.productNumber,className:l.image,sizes:"60px",src:(null==x?void 0:x.smallUrl)||(null==x?void 0:x.mediumUrl)||(null==x?void 0:x.largeUrl),urls:[null==x?void 0:x.smallUrl,null==x?void 0:x.mediumUrl,null==x?void 0:x.largeUrl]}):null}),(0,i.jsxs)("div",{className:l.details,children:[(null==r?void 0:r.brand)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:l.brandName,children:(0,i.jsx)(c.A,{value:null==r?void 0:r.brand.name})}),(0,i.jsx)(o.N,{...d.aR.index(((null==r?void 0:r.brand.key)||(null==r?void 0:r.brand.name)||"").replace(" ","").toLowerCase(),null!=A?A:"",(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 x=t(28975),A=t(29773),y=t(71541),v=t(36503),f=t(57927),b=t(5213),T=t(12197),C=t(7645),E=t(22071),j=t(8733),_=t(88694),N=t(2184),S=t(17685),I=t(27651),R=t(42489),k=t(11788),M=t(71662),P=t(97710),O=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 w=(0,r.makeStyles)()(e=>({link:{cursor:"pointer",margin:e.spacing(0,1)},message:{marginLeft:e.spacing(1)}})),D=e=>{var a;let{errorKey:t,product:n,replacementProducts:r,onClose:l}=e,{classes:o}=w(),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)(x.Ay,{size:x.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)(x.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)(O.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)(M.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 V={},q=(0,H.J1)(z()),K=(0,H.J1)(Y(),q);var Q=t(82250),X=t(32588),$=t(52263),Z=t(25771),J=t(75020);let ee=(0,r.makeStyles)()(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("lg")]:{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("lg")]:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,marginRight:0}},selectSize:{width:"fit-content"}})),ea=e=>{var a,t,r,s,o,d,c,u,m,g,M,O,L,B,F,w,U,H,z;let{onClose:Y,product:q,focus:ea,sourceString:et}=e,{classes:ei,cx:en}=ee(),er=(0,l.A)(),el=(0,y.A)(er.breakpoints.down("sm")),{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:ex,isDTAQZuCustomer:eA,isBlueErpIntegrationEnabled:ey,getSitePreference:ev,currentUser:ef}=(0,k.iZ)(),eb=null==q?void 0:q.isMarketplace,eT=null==q?void 0:q.erp_type,eC=ey&&(null==q?void 0:q.erp_type)&&(null==q?void 0:null===(a=q.erp_type)||void 0===a?void 0:a.length)>0,eE=null==q?void 0:null===(t=q.productNumber)||void 0===t?void 0:t.startsWith("CB_"),ej=ev(k.VD.CatalogFilter),[e_,{data:eN,loading:eS,error:eI}]=(0,_.Gb)({fetchPolicy:eA?"no-cache":"cache-first"}),[eR,{data:ek,loading:eM,error:eP}]=(0,N.Fo)(),{data:eO,loading:eL,error:eB}=function(e){let a={...V,...e};return G.IT(K,a)}({variables:{brandKey:null!==(m=null==q?void 0:null===(r=q.brand)||void 0===r?void 0:r.key)&&void 0!==m?m:"",productKey:null!==(g=null==q?void 0:q.productKey)&&void 0!==g?g:"",catalogType:null==q?void 0:q.catalogId,orgId:ej,isMarketplaceCatalogEnabled:null==ef?void 0:null===(s=ef.metadata)||void 0===s?void 0:s.isMarketplaceCatalogEnabled},fetchPolicy:eA?"no-cache":"cache-first"}),eF=ex?null==ek?void 0:null===(o=ek.getPricingForMultiCountryProducts)||void 0===o?void 0:o.find(e=>(null==e?void 0:e.country)===ec):null==eN?void 0:eN.getPricingForProduct,{materialPricing:ew,discontinuedPricingInfo:eD}=null!=eF?eF:{},eW={...q,forms:null==eO?void 0:null===(d=eO.getProductDetail)||void 0===d?void 0:d.forms,type:null==ep?void 0:ep.type},eU=eS||eM||eL,eH=eI||eP||eB,eG=eH?(0,Q.Mw)(eH).errors[0]:void 0,ez=(null==eD?void 0:eD.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]),eV=()=>{var e,a;let t={variables:{productNumber:null!==(a=null==q?void 0:q.productNumber)&&void 0!==a?a:"",materialIds:null==q?void 0:q.materialIds,brand:null==q?void 0:null===(e=q.brand)||void 0===e?void 0:e.key,quantity:1,catalogType:eb?p.Mh.Marketplace:(0,P.vN)(null==q?void 0:q.catalogId),orgId:ej,checkForPb:!0,displaySDS:eE,dealerId:"",checkBuyNow:!0,productKey:null==q?void 0:q.productKey,cachedPriceOnly:eh,...eC&&{erpType:eT}}},i={variables:{...t.variables,cachedPriceOnly:eh}};ex?eR(t):e_(i)};return(0,n.useEffect)(()=>{(null==q?void 0:q.productNumber)&&!(null==q?void 0:q.paMessage)&&eV()},[ex,null==q?void 0:q.productNumber,null==q?void 0:q.paMessage]),(0,n.useEffect)(()=>{var e;if(null==ek?void 0:null===(e=ek.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let[e]=null==ek?void 0:ek.getPricingForMultiCountryProducts;(null==e?void 0:e.country)&&eu(null==e?void 0:e.country)}},[ek]),(0,n.useEffect)(()=>{if(null==ew?void 0:ew.length){let[e]=ew;em(e)}ez&&eD&&es((0,i.jsx)(D,{errorKey:ez,product:q,replacementProducts:null==eD?void 0:eD.replacementProducts,onClose:eo}))},[ew,ez]),(0,i.jsx)(x.Ay,{open:!0,onClose:()=>{var e;Y(),(0,J.Sm)({action:"close p&a",section:"modal p&a",component:"modal",elementType:"icon",material:{materialDescription:q.name,brand:null===(e=q.brand)||void 0===e?void 0:e.key,product:q.productNumber}})},size:x.Ih.XLarge,children:(0,i.jsxs)(v.A,{container:!0,children:[(0,i.jsxs)(v.A,{item:!0,xs:12,md:(null==q?void 0:q.paMessage)?12:8,className:ei.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==q?void 0:q.paMessage)?1:2}),(0,i.jsxs)(v.A,{item:!0,xs:12,md:10,className:en(ei.chipContainer,{[ei.paMessage]:!!(null==q?void 0:q.paMessage)}),children:[el?null:(0,i.jsx)(X.A,{mb:4,mr:4}),ex&&ek?(0,i.jsx)(f.A,{value:ec,className:ei.tabs,onChange:(e,a)=>{eu(a)},children:null==ek?void 0:null===(c=ek.getPricingForMultiCountryProducts)||void 0===c?void 0:c.map((e,a)=>(0,i.jsx)(b.A,{className:ei.tab,label:eY(null==e?void 0:e.country),value:null==e?void 0:e.country},a))}):null,(null==q?void 0:q.paMessage)?(0,i.jsx)($.Ay,{brandKey:null!==(M=null==q?void 0:null===(u=q.brand)||void 0===u?void 0:u.key)&&void 0!==M?M:"",productNumber:null!==(O=null==q?void 0:q.productNumber)&&void 0!==O?O:"",paMessage:null!==(L=null==q?void 0:q.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:ei.selectSize,variant:"h3",children:(0,i.jsx)(j.A,{id:"SELECT_A_SIZE",defaultMessage:"Select a Size"})})}),(0,i.jsx)(E.A,{items:null!==(B=null==ew?void 0:ew.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==ew?void 0:ew.find(a=>a.materialNumber===e);em(null!=a?a:null)}})]}),eb?(0,i.jsx)(C.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(Z.A,{isMarketplace:eb,marketplaceSellerId:null!==(w=null==q?void 0:q.marketplaceSellerId)&&void 0!==w?w:"",marketplaceOfferId:null!==(U=null==q?void 0:q.marketplaceOfferId)&&void 0!==U?U:"",productAttributes:null!==(H=null==q?void 0:q.attributes)&&void 0!==H?H:[],displaySellerName:null!==(z=null==q?void 0:q.displaySellerName)&&void 0!==z?z:"",hideMarketPlaceContactInfo:!0})}):null]})]})]}),(null==q?void 0:q.paMessage)?null:(0,i.jsx)(v.A,{item:!0,xs:12,md:4,children:(0,i.jsx)(A.A,{countryCode:ec,error:eH,isMultiCountryUser:ex,isPricingModal:!0,loading:eU,material:ep,product:eW,focus:ea,sourceString:et})})]})})}},53590:(e,a,t)=>{t.d(a,{A:()=>aa});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),x=t(77742),A=t(8733),y=t(99220),v=t(54753),f=t(33086),b=t(84768),T=t(64272),C=t(64578),E=t(57477),j=t(17215),_=t(72522);let N=(0,y.makeStyles)()(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,x.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)(E.A,{className:s.facetMarkup,value:"".concat(c,":")}),(0,i.jsx)(E.A,{value:a})]})},I=(e,a)=>{a.handleSelectedFacetChange({key:e.key,options:[e.label],action:C.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,C.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,x.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)(A.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 k=t(77328),M=t.n(k),P=t(89099),O=t(63752),L=t(43564),B=t(39324),F=t.n(B);let{publicRuntimeConfig:{canonicalUrlPrefix:w}}=F()(),D=e=>{let{metadata:a}=e,t=(0,x.A)(),{asPath:n,query:{page:r,term:l,focus:s,type:o,country:d,language:c}}=(0,P.useRouter)(),p=(0,O.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"}),A="".concat(h," | Sigma-Aldrich"),y={[m.mI.CasNumber]:"CAS",[m.mI.EgecNumber]:"EC/EG",[m.mI.MdlNumber]:"MDL"},v=(null==a?void 0:a.itemCount)===0||null==a||(null==a?void 0:a.setsCount)===0;o&&y[o]&&(A="".concat(y[o]," ").concat(A));let f="page=".concat(r),b=n.indexOf(f),T=n.slice(0,b),C=n.slice(b+f.length,n.length),E="".concat(T,"page=").concat(Number(r)+1).concat(C),j="".concat(T,"page=").concat(Number(r)-1).concat(C),_=g?"Structure search results":"Find ".concat(l," and related products for scientific research at ").concat(p),N={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Search",item:"".concat(w,"/").concat(d,"/").concat(c).concat(u.wO.index())},{"@type":"ListItem",position:2,name:"".concat(l),item:"".concat(w).concat(n)}]};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(M(),{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:E}):null,Number(r)>1?(0,i.jsx)("link",{rel:"prev",href:j}):null]}),(0,i.jsx)(L.L,{description:_,keywords:[l||"","search","sigma","aldrich","millipore",p],canonicalParamAllowed:e=>["term","focus","page","perpage","sort","type"].includes(e),schema:N,indexOverride:v?"noindex":"index"})]})};var W=t(19521),U=t(36331),H=t(70813),G=t(34669),z=t(17685),Y=t(24322),V=t(39069),q=t(7645),K=t(35877);let Q=()=>{let e=(0,K.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)(V.A,{light:!0})}),(0,i.jsx)(q.A,{height:22,width:.75,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mb:4}),[,,].fill({}).map((a,t)=>(0,i.jsxs)(q.A,{display:"flex",alignItems:"center",pr:4,mb:4,children:[(0,i.jsx)(q.A,{height:24,width:24,borderRadius:"50%",bgcolor:e.palette.grey["50"],mr:4}),(0,i.jsx)(q.A,{flex:1,height:20,width:20,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"]})]},t))]})})};var X=t(51139);let $=(0,y.makeStyles)()(e=>({availableForSale:{padding:e.spacing(2,0)},radio:{fontSize:e.typography.pxToRem(14)},facetRadio:{padding:e.spacing(1,.5),marginRight:e.spacing(1.5),alignSelf:"flex-start"},formBody:{marginTop:e.spacing(2.5),marginLeft:e.spacing(2)}})),Z=e=>{let{loading:a,error:t}=e,{formatMessage:n,formatDisplayName:r}=(0,x.A)(),{classes:l}=$(),{userSession:s}=(0,z.j)(),[o,,d]=(0,C.useSearchQuery)(),c="global";return a?(0,i.jsx)(Q,{}):t?null:(0,i.jsx)("div",{className:l.availableForSale,children:(0,i.jsx)(X.A,{defaultCollapse:!0,facetKey:G.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)(U.A,{"aria-label":"region-selection",onChange:e=>{d.handleAvailableForSaleChange(e.target.value)},children:[(0,i.jsx)(H.A,{"aria-label":"region",value:s.country,control:(0,i.jsx)(Y.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)(H.A,{"aria-label":"region",value:c,control:(0,i.jsx)(Y.A,{className:l.facetRadio}),classes:{label:l.radio},checked:o.region===c,label:n(G.A.GLOBALLY)},c)]})})})})})};var J=t(64204);let ee=(0,y.makeStyles)()(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"}})),ea=e=>{let{orgId:a}=e,{classes:t}=ee(),{formatMessage:r}=(0,x.A)(),[l,,s]=(0,C.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)(X.A,{defaultCollapse:!0,facetKey:"FACET_SEARCH_WITHIN",children:(0,i.jsx)("div",{className:t.formBody,children:(0,i.jsxs)(U.A,{"aria-label":"focus-selection",onChange:e=>c(e.target.value),children:[d(m.Xc.Products)||d(m.Xc.B2B)?a?(0,i.jsx)(H.A,{disabled:!0,value:m.Xc.Products,control:(0,i.jsx)(Y.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)(H.A,{value:m.Xc.Products,control:(0,i.jsx)(Y.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)(H.A,{value:m.Xc.TechnicalDocuments,control:(0,i.jsx)(Y.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)(H.A,{value:m.Xc.SiteContent,control:(0,i.jsx)(Y.A,{className:t.facetRadio}),className:t.facet,checked:l.focus===m.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"})})]})})})})};var et=t(5213),ei=t(57927),en=t(52413);let er=(0,y.makeStyles)()(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}})),el=(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}}},es=e=>{let{focus:a,id:t,children:n}=e,{classes:r,cx:l}=er(),[s]=(0,C.useSearchQuery)(),o=l(r.link,s.focus===a&&r.active),d=s.focus===a?"page":void 0;return(0,i.jsx)(en.N,{...el(s.term,a),children:(0,i.jsx)("a",{className:o,"aria-current":d,"data-testid":t,id:t,role:"tab",children:n})})};function eo(e,a){return class extends n.Component{render(){return(0,i.jsx)(es,{focus:e,id:a,children:this.props.children})}}}let ed=(0,y.makeStyles)()(e=>({tabsRoot:{minHeight:30,borderBottom:"1px solid ".concat(e.palette.grey[400])},indicator:{backgroundColor:e.palette.text.primary}})),ec=e=>{let{orgId:a}=e,{classes:t}=ed(),{formatMessage:r}=(0,x.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)(ei.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)(et.A,{component:"span",label:"".concat(o," ").concat(r({id:"PRODUCTS",defaultMessage:"Products"}))}):(0,i.jsx)(et.A,{value:m.Xc.Products,label:r({id:"PRODUCTS",defaultMessage:"Products"}),component:eo(m.Xc.Products,"srp-nav-products")}):null,d(m.Xc.TechnicalDocuments)&&(0,i.jsx)(et.A,{value:m.Xc.TechnicalDocuments,label:r({id:"TECHNICAL_DOCUMENTS",defaultMessage:"Technical Documents"}),component:eo(m.Xc.TechnicalDocuments,"srp-nav-techdocs")}),d(m.Xc.SiteContent)&&(0,i.jsx)(et.A,{value:m.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"}),component:eo(m.Xc.SiteContent,"srp-nav-sitecontent")})]})})},eu=(0,y.makeStyles)()(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}})),ep=(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}=eu(),{formatMessage:d}=(0,x.A)(),{resCountFirst:c,resCountEnd:p}=ep(t,n,r),g=(0,u.rd)(),h=null===(a=g.query.orgId)||void 0===a?void 0:a.trim(),A="UCB"===h?h:null==h?void 0:h.toLowerCase(),y=d(G.A.SHOWING),v=d(1===r?G.A.RESULT:G.A.RESULTS),b=d(G.A.SEARCH_RESULT_OF),T=d(G.A.FOR),C=d(G.A.WITHIN),E=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,'"'," ",A?E&&"".concat(C," ").concat(A," ").concat(E):E&&"".concat(C," ").concat(E)]})]}):null})};var eg=t(5411),eh=t(86024),ex=t(30877),eA=t(40032);let ey=(0,y.makeStyles)()(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)"}})),ev=e=>{let{renderHeading:a,children:t}=e,{classes:r,cx:l}=ey(),[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)(J.A,{onClick:()=>{o(!s)},className:r.heading,children:[a(),(0,i.jsx)(eA.A,{className:d})]}),(0,i.jsx)(ex.A,{in:s,children:(0,i.jsx)("div",{className:r.body,children:t})})]})};var ef=t(98011);let eb=[{value:p.FU.Relevance,label:G.D.SORT_BY_RELEVANCE}],eT=[{value:p.FU.Relevance,label:G.D.SORT_BY_RELEVANCE},{value:p.FU.Nameasc,label:G.D.SORT_BY_NAME_ASCENDING},{value:p.FU.Namedesc,label:G.D.SORT_BY_NAME_DESCENDING}],eC=[{value:p.FU.Relevance,label:G.D.SORT_BY_RELEVANCE},{value:p.FU.Molwtasc,label:G.D.SORT_BY_MOL_WT_ASC},{value:p.FU.Molwtdesc,label:G.D.SORT_BY_MOL_WT_DESC}],eE=[{value:p.FU.Relevance,label:G.D.SORT_BY_RELEVANCE},{value:p.FU.Genenameasc,label:G.D.SORT_BY_NAME_ASCENDING},{value:p.FU.Genenamedesc,label:G.D.SORT_BY_NAME_DESCENDING}],ej={[m.Xc.Products]:eT,[m.Xc.Genes]:eE,[m.Xc.Papers]:eb,[m.Xc.TechnicalDocuments]:eb,[m.Xc.SiteContent]:eb,[m.Xc.BuildingBlocks]:eC,[m.Xc.StructureSearch]:eC,[m.Xc.B2B]:eC,[m.Xc.Chromatograms]:eT},e_=(0,y.makeStyles)()(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}}})),eN=()=>{let[e,,a]=(0,C.useSearchQuery)(),{formatMessage:t}=(0,x.A)(),{classes:r}=e_(),l=(0,n.useMemo)(()=>ej[e.focus].map(e=>({...e,label:t(e.label)})),[t,e.focus]);return(0,i.jsx)(U.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)(H.A,{name:"sortOptionId",value:t,label:n.split(" ").slice(2).join(" "),control:(0,i.jsx)(ef.A,{disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,icon:(0,i.jsx)("span",{className:r.icon}),checkedIcon:(0,i.jsx)("span",{className:r.icon,children:(0,i.jsx)("span",{})})})},a)})})};var eS=t(91496),eI=t(21289),eR=t(70114),ek=t(14810);let eM=(0,y.makeStyles)()(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)"}})),eP=e=>{let{facet:a}=e,{classes:t,cx:r}=eM(),l=(0,x.A)(),[,s,o]=(0,C.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)(eI.A,{color:"secondary",fontSize:"inherit"});case m.u2.FreeFreight:return(0,i.jsx)(eR.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)(H.A,{classes:{root:t.labelRoot},checked:n,control:(0,i.jsx)(eS.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)(ek.A,{})}),onClick:()=>{o.handleSelectedFacetChange({key:a.key,options:[e.value],action:n?C.FacetChangeAction.Remove:C.FacetChangeAction.Add,multiSelect:a.multiSelect||!1,prefix:a.prefix})}}),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.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)(J.A,{onClick:()=>u(!c),"aria-expanded":c,"aria-label":c?l.formatMessage(G.A.SHOW_LESS):l.formatMessage(G.A.SHOW_MORE),className:t.showMore,children:[c?(0,i.jsx)(A.A,{...G.A.SHOW_LESS}):(0,i.jsx)(A.A,{...G.A.SHOW_MORE}),(0,i.jsx)(eA.A,{className:p})]})]})},eO=(0,y.makeStyles)()(e=>({facetMarkup:{marginRight:e.spacing(1),"& sub, & sup":{verticalAlign:"baseline",position:"relative",top:"0.4em"},"& sup":{top:"-0.4em"}}})),eL=e=>{let{facetLabel:a,facetKey:t,facets:r}=e,{classes:l}=eO(),s=(0,x.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(G.A[t.key.toUpperCase()]):""},[s])(t,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.A,{className:l.facetMarkup,value:"".concat(o,":")}),(0,i.jsx)(E.A,{value:a})]})},eB=(0,y.makeStyles)()(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)}})),eF=e=>{let{facets:a,isStructureSearch:t}=e,[n,r,l]=(0,C.useSearchQuery)(),s=(0,h.A)(r,e=>e.options.map(a=>({key:e.key,label:a}))),{formatMessage:o}=(0,x.A)(),{classes:c}=eB();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)(A.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:C.FacetChangeAction.Remove})},label:(0,i.jsx)(eL,{facetLabel:e.label,facetKey:e.key,facets:a})},e.key))]})]})},ew=(0,y.makeStyles)()(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}=ew();return(0,i.jsx)(eh.A,{open:r,onClose:l,renderTitle:()=>(0,i.jsx)(d.A,{variant:"h2",component:"h2",children:(0,i.jsx)(A.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)(eF,{facets:a,isStructureSearch:t}),s&&(0,i.jsx)(ev,{renderHeading:()=>(0,i.jsx)(d.A,{variant:"body1",component:"h2",children:(0,i.jsx)("b",{children:(0,i.jsx)(A.A,{...v.A.SORT_HEADING})})}),children:(0,i.jsx)(eN,{})}),!!a&&a.map(e=>(0,i.jsx)(n.Fragment,{children:(0,i.jsx)(ev,{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)(eP,{facet:e,allFacets:a})})},e.key))]}),(0,i.jsx)("div",{className:o.footer,children:(0,i.jsx)(eg.A,{variant:"contained",color:"primary",size:"large",fullWidth:!0,onClick:l,children:(0,i.jsx)(A.A,{id:"DONE",defaultMessage:"Done"})})})]})})};var eW=t(75584);let eU=(0,y.makeStyles)()(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"}}})),eH=e=>{let{metadata:a,orgId:t,facets:r,showSortBar:l}=e,[s,o]=(0,C.useSearchQuery)(),{formatMessage:d}=(0,x.A)(),[c,u]=(0,n.useState)(!1),{classes:p}=eU(),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)(em,{currPage:a.page,perPage:a.perPage,resultCount:a.setsCount||a.itemCount||0,searchTerm:s.term,searchType:s.focus})}),(0,i.jsx)(ec,{orgId:t}),(!!(null==r?void 0:r.length)||l)&&(0,i.jsx)("div",{className:p.filterAndSortBar,children:(0,i.jsxs)(J.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(G.A.FILTER_AND_SORT_HEADING)]})}),(0,i.jsx)(eD,{facets:r,isStructureSearch:h,isModalOpen:c,onModalClose:()=>g(),showSortBar:l})]})};var eG=t(71007),ez=t(46129);let eY=(0,y.makeStyles)()(e=>({searchLink:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium,color:e.palette.secondary.dark,marginBottom:e.spacing(2),cursor:"pointer"}})),eV=e=>{let{orgId:a,isStructureSearch:t}=e,{classes:n}=eY();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(ez.N,{href:u.wO.index(),"aria-hidden":!0,onClick:()=>{(0,eG.sendSearchInteractionEvent)({action:"visit advanced search page",component:"left rail",elementType:"link",elementText:"advanced search",linkUrl:u.wO.index()})},children:(0,i.jsx)(A.A,{id:"ADVANCED_SEARCH",defaultMessage:"Advanced Search"})})}),!a&&!t&&(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(ez.N,{href:u.HX.index(),"aria-hidden":!0,onClick:()=>{(0,eG.sendSearchInteractionEvent)({action:"visit chemical structure search",component:"left rail",elementType:"link",elementText:"chemical structure search",linkUrl:u.HX.index()})},children:(0,i.jsx)(A.A,{id:"CHEMICAL_STRUCTURE_SEARCH",defaultMessage:"Chemical Structure Search"})})})]})};var eq=t(90589),eK=t(76023),eQ=t(45484);let eX=()=>{let[e,,a]=(0,C.useSearchQuery)(),{formatMessage:t}=(0,x.A)(),r=(0,n.useMemo)(()=>ej[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)(eQ.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)(eK.A,{value:a,id:"sort-option-".concat(a),children:t},a)})})})},e$=(0,y.makeStyles)()(e=>({searchLink:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightMedium,paddingRight:e.spacing(2),paddingLeft:e.spacing(2),color:e.palette.secondary.dark},borderLeft:{borderLeft:"1px solid ".concat(e.palette.grey[400])},compareButton:{marginLeft:e.spacing(3),minWidth:116},desktopResultsMenu:{display:"none",[e.breakpoints.up("md")]:{minHeight:"2rem",display:"flex",alignItems:"center",justifyContent:"flex-end",flexShrink:0}}})),eZ=e=>{let{metadata:a,showSortBar:t}=e,{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)(em,{currPage:a.page,perPage:a.perPage,resultCount:a.setsCount||a.itemCount||0,searchTerm:l.term,searchType:l.focus}),t&&(0,i.jsx)(q.A,{ml:2,children:(0,i.jsx)(eX,{})})]})};var eJ=t(34415),e0=t(77197);let e1=(0,y.makeStyles)()(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 e2=function(e){return e.SDS="sds",e}({});let e4={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}=e1(),r=e4[t],l=u.HN.index(t),s=null===(a=e0.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)(A.A,{id:r.id,defaultMessage:r.defaultMessage,values:r.values})," ",(0,i.jsx)(A.A,{id:"THESE_AND_OTHER_DOCS",defaultMessage:"These and other documents can be found on our"})," ",(0,i.jsx)(eJ.A,{href:"".concat(l,"&").concat("icid=search_term_specific_tip-banner-looking_for_a_".concat(s,"-documents")),children:(0,i.jsx)(A.A,{id:"DOCUMENTS",defaultMessage:"Documents"})})," ",(0,i.jsx)("span",{className:n.lowercase,children:(0,i.jsx)(A.A,{id:"PAGE",defaultMessage:"Page"})}),"."]})})};var e3=t(54366);let e8=(0,y.makeStyles)()(e=>({medium:{fontWeight:e.typography.fontWeightMedium},banner:{alignItems:"center",background:e.palette.primary.light,display:"flex",flexDirection:"column",justifyContent:"center",margin:e.spacing(4,2),padding:e.spacing(2,0),[e.breakpoints.up("md")]:{alignItems:"start",marginLeft:e.spacing(0),marginRight:e.spacing(0),padding:e.spacing(2,45,2,3)},"& p":{fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(15)}}}})),e5=e=>{let{searchQuery:a}=e,{classes:t}=e8(),n=(0,u.rd)();return(0,i.jsx)("div",{className:t.banner,children:(0,i.jsxs)(d.A,{variant:"body1",children:[(0,i.jsx)(A.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 e6=t(44788);let{publicRuntimeConfig:{featureFlags:e9}}=F()(),ae=(0,y.makeStyles)()(e=>({hideOnMobile:{[e.breakpoints.down("md")]:{display:"none"}},searchFacets:{margin:0,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,[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"},toggle:{position:"absolute",right:e.spacing(12)}})),aa=e=>{var a,t;let{children:h,showSortBar:x,showFacets:A,showAvailableForSale:y,orgId:v,facets:f,loading:b,error:T,metadata:j,showMore:_}=e,{classes:N,cx:S}=ae(),I=(0,u.rd)(),[k]=(0,C.useSearchQuery)(),M=(0,m.h2)({focus:I.query.focus,term:I.query.term}),P=M.focus===m.Xc.StructureSearch,O=M.focus===m.Xc.Products||M.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]:O});(0,n.useEffect)(()=>{r.sZ.setItem("previousSearchPath",I.asPath)},[I.asPath]);let U=[Object.values(p.e_),Object.values(e2)].toString().toLowerCase(),H=(()=>{var e,a;return"facet-search"===M.term?null===(e=k.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)(eV,{orgId:v,isStructureSearch:P})}),P?(0,i.jsx)(W.A,{}):(0,i.jsx)(ea,{orgId:v}),A&&(0,i.jsx)(g.A,{loading:b,error:T,facets:f,showMore:_}),y&&(0,i.jsx)(Z,{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.jsxs)(i.Fragment,{children:[e9.newSrp&&(0,i.jsx)(e6.A,{currentExperience:"old",className:N.toggle}),(0,i.jsx)(d.A,{variant:"h1",className:N.title,children:(0,i.jsx)(E.A,{value:H})})]}),G&&(null==I?void 0:null===(a=I.query)||void 0===a?void 0:a.term)&&(0,i.jsx)(e7,{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)(e5,{searchQuery:I.query.term}),A&&!b&&(0,i.jsx)(R,{facets:f,isStructureSearch:P}),B&&!F?(0,i.jsx)(eZ,{showSortBar:x,metadata:j,orgId:v}):(0,i.jsx)(eH,{facets:f,showSortBar:x,metadata:j,orgId:v}),(0,i.jsx)("div",{className:w,children:h})]})]})}),!b&&!F&&(0,i.jsx)(eq.A,{dispType:p.HI.RecentlyViewedSrp,searchKey:M.term})]})}},54034:(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(47801),d=t(11148),c=t(20534),u=t(16717),p=t(12197),m=t(34415),g=t(64204),h=t(57477),x=t(77742),A=t(8733),y=t(52413),v=t(97710),f=t(35645),b=t(71662),T=t(40002),C=t(40352),E=t(32609),j=t(88694),_=t(77660),N=t(11788),S=t(84119),I=t(52710),R=t(71007),k=t(75020),M=t(61622),P=t(87254),O=t(39324);let{publicRuntimeConfig:{featureFlags:L}}=t.n(O)()(),B=(0,r.makeStyles)()(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%"}})),F="7950",w=e=>{var a,t,r,l,s,O,w,D,W;let{product:U,substanceName:H,className:G,substanceId:z,substancePosition:Y}=e,{classes:V,cx:q}=B(),K=(0,d.rd)(),Q=(0,C.Ay)(),{formatMessage:X}=(0,x.A)(),{focus:$="",catalogType:Z="",orgId:J=""}=K.query||{},[ee,ea]=(0,n.useState)(!1),et=(null==U?void 0:U.isMarketplace)?_.Mh.Marketplace:null,{currentUser:ei,getSitePreference:en,isB2BUser:er,isDTAQZuCustomer:el,isBlueErpIntegrationEnabled:es}=(0,N.iZ)(),eo=el?en(N.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!==(O=null===o.Lr||void 0===o.Lr?void 0:o.Lr.getItem("searchedfor"))&&void 0!==O?O:"",[eu,{data:ep,loading:em,error:eg}]=(0,j.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,v.vN)(et||Z||$),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!==(w=null==ep?void 0:ep.getPricingForProduct)&&void 0!==w?w:{},ex=!em&&ee&&!eh,eA=(0,M.j)(null==eh?void 0:eh.replacementProducts),ey=U.productNumber.startsWith("CB_")?X({id:"DETAILS",defaultMessage:"Details"}):U.productNumber,ev=(0,n.useContext)(I.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=L.srpTxnBadges&&"US"===eb&&!er&&U.txnBadge&&(null===(r=U.txnBadge)||void 0===r?void 0:r.type)==="MAX_DISCOUNT"&&(null===(s=U.txnBadge)||void 0===s?void 0:null===(l=s.salesOrgIds)||void 0===l?void 0:l.includes(F))&&ef===F;return eg?(0,i.jsx)(I.M,{...ev,brand:U.brand.key,item:U.name,children:(0,i.jsx)(S.A,{productNumber:null==U?void 0:U.productNumber,error:eg})}):(0,i.jsxs)(u.A,{component:"li",className:q(G,V.root),children:[(0,i.jsx)(p.A,{component:"h3",className:V.name,children:U.brand.key&&U.productNumber?(0,i.jsx)(y.N,{...d.aR.index(U.brand.key,U.productKey,{catalog:(0,v.vN)(Z||$)}),passHref:!0,children:(0,i.jsx)(m.A,{onClick:()=>(0,R.sendProductClickEvent)({product:U,searchTerm:ec,substanceId:z,substancePosition:Y}),children:ey})}):(0,i.jsx)("span",{children:U.productNumber})}),(0,i.jsx)(p.A,{component:"p",className:V.description,children:(0,i.jsx)(h.A,{value:U.legalNameSuffix||U.description})}),eh?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.A,{discontinuedPricingInfo:eh}),eA&&(0,i.jsx)(b.A,{type:T.j.RecommendedProducts,preloadCardImages:!0,products:eA,slidesToShow:Q({xs:1,sm:2,lg:3}),withoutControls:eA.length<=4})]}):(0,i.jsxs)("div",{className:eT?V.viewPricingWrapperWithBadge:V.viewPricingWrapper,children:[eT&&(0,i.jsx)(P.A,{showTooltip:!0,toolTipPlacement:"right"}),(0,i.jsx)(g.A,{className:V.viewPricing,onClick:()=>{var e;U.paMessage||eu(),ea(!0),(0,k.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)(A.A,{id:"SUBSTANCE_VIEW_PRICING",defaultMessage:"View Pricing"})})]}),em?(0,i.jsx)(c.A,{}):ex&&(0,i.jsx)(f.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!==(D=U.name)&&void 0!==D?D:"",displaySellerName:null!==(W=U.displaySellerName)&&void 0!==W?W:"",pricingData:null==ep?void 0:ep.getPricingForProduct,paMessage:U.paMessage})]})};var D=t(63912);let W=(0,r.makeStyles)()(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-of-type":{borderTop:"solid 1px ".concat(e.palette.grey[400])},"& li:last-of-type":{borderBottom:"none"}}})),U=e=>{let{products:a,substanceName:t,substanceId:r,substancePosition:o}=e,d=a.length,c=a.slice(0,2),u=a.slice(2),[p,m]=(0,n.useState)(!1),{classes:g}=W(),h=e=>(0,i.jsx)(w,{product:e,substanceName:t,substancePosition:o,substanceId:r},e.productNumber);return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.A,{disablePadding:!0,className:g.initialProducts,children:c.map(h)}),d>2&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{in:p,children:(0,i.jsx)(l.A,{disablePadding:!0,className:g.moreProducts,children:u.map(h)})}),(0,i.jsx)(D.A,{expanded:p,setExpanded:()=>{m(!p)},className:g.showMore,"data-testid":"show-".concat(p?"less":"more")})]})]})}},54064:(e,a,t)=>{t.d(a,{z:()=>r});var i=t(28888);function n(){let e=(0,i._)(["\n fragment DynamicProduct on Product {\n id\n productKey\n productNumber\n productSku\n lastBoughtUnix\n brand {\n key\n erpKey\n name\n color\n }\n name\n description\n images {\n altText\n mediumUrl\n }\n gaProductCode\n isMarketplace\n erp_type\n tags\n discount\n}\n "]);return n=function(){return e},e}let r=(0,t(82897).J1)(n())},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:()=>o});var i=t(37876),n=t(49794),r=t(6760),l=t(86692);let s=(0,t(99220).makeStyles)()((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]}}}}),o=e=>{let{name:a,value:t,label:o,checked:d,onChange:c,size:u="medium",disabled:p=!1,id:m,"data-testid":g}=e,{cx:h,classes:x}=s({disabled:p,size:u}),A="string"==typeof o?(0,i.jsx)(n.A,{variant:"body1",children:o}):o;return(0,i.jsx)(r.A,{className:h(x.customRadio,{[x.disabledText]:p}),value:t,control:(0,i.jsx)(l.A,{"data-testid":g,id:m,className:x.root,name:a,checked:d,onChange:c,disabled:p,size:u,checkedIcon:(0,i.jsx)("span",{className:h(x.icon,x.checkedIcon)}),icon:(0,i.jsx)("span",{className:x.icon})}),label:A})}},59131:(e,a,t)=>{t.d(a,{Ay:()=>eo});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),x=t(47801),A=t(97710),y=t(80491),v=t(80863),f=t(57477),b=t(6315),T=t(74770),C=t(26925),E=t(52263),j=t(71007),_=t(15093),N=t(65824),S=t(28907),I=t(75020),R=t(11148),k=t(62084),M=t(11788),P=t(54587),O=t.n(P);let L=()=>(0,i.jsx)(O(),{style:{margin:"4px"},src:"/static/globe_greener_alt_icon.svg",alt:"greener alternative",title:"Greener Alternative Product",height:28,width:28});var B=t(23604),F=t(87254),w=t(39324),D=t.n(w),W=t(88700);let{publicRuntimeConfig:{featureFlags:U}}=D()(),H=(0,s.makeStyles)()(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"},checkboxRoot:{paddingBottom:e.spacing(1),paddingTop:e.spacing(1),paddingRight:"9px",paddingLeft:"9px",alignSelf:"flex-start"}})),G="7950",z={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"}},Y=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,s=l.find(e=>e.key===z.CLONALITY.key),d=l.find(e=>e.key===z.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)(L,{})]})]})]})},V=e=>{let{displayBadgesOnProduct:a,product:t,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=t,s=l.find(e=>e.key===z.PORE_SIZE.key),d=l.find(e=>e.key===z.DIAMETER.key&&e.label===z.DIAMETER.label),c=l.find(e=>e.key===z.STERILITY.key),u=l.filter(e=>e.key===z.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)(L,{})]})]})]})},q=e=>{let{focus:a,isStaticContent:t,product:n,productDescription:r}=e,{classes:l}=H();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})]})})},K=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)(q,{focus:t,isStaticContent:n,product:r,productDescription:l})},Q=e=>{let{displayBadgesOnProduct:a,features:t,showGreenBadge:n,txnBadge:r,isTxnBadgeUser:l}=e,{classes:s}=H();return(0,i.jsx)(o.A,{className:s.badgeCell,colSpan:4,children:r?(0,i.jsx)(F.A,{showTooltip:!0}):!l&&(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)(T.A,{features:t}),n&&(0,i.jsx)(L,{})]})})},X=e=>{var a,t,l,s,d,c,u;let{additionalColumns:m,displayBadgesOnProduct:b,displayViewLink:T=!0,focus:P,isShowBrand:O,isShowImage:L,isStaticContent:F,product:w,productIsAntibody:D,productIsSyringeFilter:z,showDescription:X,substanceId:$,substancePosition:Z,txnBadgeColAdjustments:J}=e,ee=(0,R.rd)(),{classes:ea,cx:et}=H(),{formatMessage:ei}=(0,r.A)(),[en,er]=(0,n.useState)(!1),{currentUser:el,isB2BUser:es}=(0,M.iZ)(),[eo]=(0,B.lT)(["language"]),{compareProducts:ed,addCompareProduct:ec,removeCompareProduct:eu}=(0,y.Zn)(),ep=ed.some(e=>{let{productKey:a,brandKey:t,catalogType:i}=e;return a===w.productKey&&t===w.brand.key&&i===(0,A.vN)(P)}),em=null!==(u=null===x.Lr||void 0===x.Lr?void 0:x.Lr.getItem("searchedfor"))&&void 0!==u?u:"",eg=()=>{var e;er(e=>!e),(0,I.Sm)({action:en?"close p&a":"view p&a",section:Z?void 0:"products",component:"list",elementType:"accordion",elementText:en?"hide":"expand",material:{materialDescription:w.name,brand:null===(e=w.brand)||void 0===e?void 0:e.key,product:w.productNumber}})},{paMessage:eh}=w,ex=w.productNumber.startsWith("CB_")?ei(g.A.DETAILS):w.productNumber,eA=!ep&&ed.length>=y.NN,ey={productKey:w.productKey,productNumber:w.productNumber,brandKey:w.brand.key,images:w.images,catalogType:P?(0,A.vN)(P):void 0},ev=(null==el?void 0:el.metadata.isNewPNASrpEnabled)&&!ee.query.debug&&T,ef=w.legalNameSuffix||w.description,eb=null===(a=w.attributes)||void 0===a?void 0:a.find(e=>"greener alternative category.default"===e.key),eT="en"===eo.language.toLowerCase(),eC=D&&w.cardAttribute,eE=!eC&&!z&&eT&&(null==w?void 0:w.keyAttributes)&&w.keyAttributes.length>0,ej=(0,n.useMemo)(()=>{var e,a;return(null==el?void 0:null===(a=el.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==el?void 0:el.metadata.salesOrg)||""},[el]),e_=(0,n.useMemo)(()=>{var e;return(null==el?void 0:null===(e=el.metadata)||void 0===e?void 0:e.country)||""},[el]),eN=U.srpTxnBadges&&"US"===e_&&!es&&ej===G,eS=eN&&w.txnBadge&&(null===(t=w.txnBadge)||void 0===t?void 0:t.type)==="MAX_DISCOUNT"&&(null===(s=w.txnBadge)||void 0===s?void 0:null===(l=s.salesOrgIds)||void 0===l?void 0:l.includes(G));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.A,{className:en?et(ea.tableRow,ea.clearBottomBorder,ea.tableRowExpanded):ea.tableRow,"data-testid":"product-".concat(w.name),children:[L?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{children:(0,i.jsx)("span",{className:ea.productImageContainer,children:(0,i.jsx)("img",{className:ea.productImage,src:null==w?void 0:null===(d=w.images[0])||void 0===d?void 0:d.smallUrl,alt:(null==w?void 0:null===(c=w.images[0])||void 0===c?void 0:c.altText)||""})})}),(0,i.jsx)(o.A,{classes:{root:ea.productNumberContainer},children:(0,i.jsx)(S.h,{product:w,focus:P,label:ex,productDescriptionClass:ea.productName,productLinkType:S.A.NAME,productDescription:ef})})]}):(0,i.jsxs)(i.Fragment,{children:[!F&&(0,i.jsx)(o.A,{className:ea.hideBelowMd,children:(0,i.jsx)(N.A,{name:"".concat(ei(g.A.COMPARE),"-").concat(w.productNumber),checked:ep,onChange:e=>{e.target.checked?ec(ey):eu(ey)},"aria-label":"".concat(ei(g.A.COMPARE)," ").concat(w.productNumber),disabled:eA,classes:{root:ea.checkboxRoot}})}),(0,i.jsx)(o.A,{classes:{root:ea.productNumberContainer},children:(0,i.jsx)(S.h,{product:w,focus:P,label:ex,onProductLinkClick:()=>(0,j.sendProductClickEvent)({product:w,searchTerm:em,substanceId:$,substancePosition:Z}),productDescriptionClass:ea.productName,productLinkType:S.A.NAME,productDescription:ef})})]}),eC&&(0,i.jsx)(Y,{displayBadgesOnProduct:b,showGreenBadge:eb,product:w,txnBadgeColAdjustments:J}),z&&(0,i.jsx)(V,{displayBadgesOnProduct:b,showGreenBadge:eb,product:w,txnBadgeColAdjustments:J}),eE&&(0,i.jsx)(K,{keyAttributes:null==w?void 0:w.keyAttributes,focus:P,isStaticContent:F,product:w,productDescription:ef,txnBadgeColAdjustments:J}),!w.cardCategory&&(0,i.jsxs)(i.Fragment,{children:[X&&(0,i.jsx)(q,{focus:P,isStaticContent:F,product:w,productDescription:ef}),O&&(0,i.jsx)(o.A,{className:ea.hideOnMobile,style:{color:w.brand.color||void 0},children:w.brand.name}),m&&m.map(e=>{var a;let{value:t}=e,n=w.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:w.features,showGreenBadge:eb,txnBadge:eS&&w.txnBadge,isTxnBadgeUser:eN}),(0,i.jsx)(o.A,{children:!!w.sdsLanguages.length&&(0,i.jsx)(v.A,{sdsLanguages:w.sdsLanguages,productNumber:w.sdsPnoKey,brandKey:w.brand.key,trigger:(0,i.jsx)(_.A,{className:ea.sdsTrigger,color:"primary"})})}),(0,i.jsx)(o.A,{children:ev?(0,i.jsx)(k.A,{product:w,substancePosition:Z,focus:P}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{expanded:en,setExpanded:eg,collapsedText:ei(g.A.EXPAND),expandedText:ei(g.A.HIDE),"data-testid":"srp-pricing-".concat(w.productNumber).concat(w.brand.key)}),(0,i.jsx)("div",{className:ea.expandHideSpacer,children:(0,i.jsx)(h.A,{expanded:!en,setExpanded:eg,collapsedText:ei(g.A.EXPAND),expandedText:ei(g.A.HIDE)})})]})})]}),(0,i.jsx)(p.A,{className:ea.tableRowExpanded,children:en&&(0,i.jsx)(o.A,{colSpan:12,children:eh?(0,i.jsx)(E.Ay,{brandKey:w.brand.key,productNumber:w.productNumber,paMessage:eh,displayType:E.yU.SRP,gaPricingOverrides:{component:W.IP.List}}):(0,i.jsx)(C.A,{queryFocus:P,productName:w.name,productNumber:w.productNumber,productDescription:w.description||"",images:w.images,materialIds:w.materialIds,brandKey:w.brand.key,gaType:(0,j.determinePAForAddtoCart)(P),isMarketplace:w.isMarketplace,productAttributes:w.attributes,marketplaceSellerId:w.marketplaceSellerId||"",marketplaceOfferId:w.marketplaceOfferId||"",displaySellerName:w.displaySellerName||"",displayPromotionalBundlesAnchor:!0,checkForPb:!0,productKey:w.productKey,erp_type:w.erp_type,isBBE:w.isBBE})})})]})},{publicRuntimeConfig:{featureFlags:$}}=D()(),Z=(0,s.makeStyles)()(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}})),J={ANTIBODY:"ANTIBODY",SYRINGE_FILTERS:"SYRINGE_FILTERS"};J.ANTIBODY,J.SYRINGE_FILTERS;let ee="7950",ea=e=>{let{showSdsColumn:a}=e,{classes:t}=Z(),{formatMessage:n}=(0,r.A)();return(0,i.jsx)(o.A,{className:t.tHeadSds,children:a&&n(g.A.SDS)})},et=()=>{let{classes:e}=Z(),{formatMessage:a}=(0,r.A)();return(0,i.jsx)(o.A,{className:e.compressWidth,children:a(g.A.PRICING)})},ei=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)})]})]})},en=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)})]})]})},er=e=>e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/_+$/g,""),el=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=er(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)})},es=e=>{let{additionalColumns:a,isShowBrand:t,showDescriptionColumn:n}=e,{formatMessage:l}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(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)})]})},eo=e=>{var a,t,l;let{products:s,displayBadgesOnProduct:x,focus:A,maxRows:y,isShowImage:v=!1,isShowBrand:f=!1,isStaticContent:b=!1,additionalColumns:T,displayViewLink:C,substanceId:E,substancePosition:_,substanceKeyAttributes:N}=e,{classes:S,cx:I}=Z(),[R]=(0,B.lT)(["language"]),[k,P]=(0,n.useState)(!1),O=y||5,L=k?s.length:O,{formatMessage:F}=(0,r.A)(),w=!!s.length&&(null===(a=s[0])||void 0===a?void 0:a.cardCategory)===J.ANTIBODY,D=!!s.length&&(null===(t=s[0])||void 0===t?void 0:t.cardCategory)===J.SYRINGE_FILTERS,U=s.filter(e=>{var a;return(null==e?void 0:null===(a=e.sdsLanguages)||void 0===a?void 0:a.length)>0}).length>0,H="en"===R.language.toLowerCase(),{currentUser:G,isB2BUser:z}=(0,M.iZ)(),Y=(0,n.useMemo)(()=>{var e,a;return(null==G?void 0:null===(a=G.soldToPartners)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.salesOrg)||(null==G?void 0:G.metadata.salesOrg)||""},[G]),V=(0,n.useMemo)(()=>{var e;return(null==G?void 0:null===(e=G.metadata)||void 0===e?void 0:e.country)||""},[G]),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(ee))}),K=$.srpTxnBadges&&"US"===V&&!z&&Y===ee&&q,Q=w?ei:D?en:null,er=!Q&&H&&N&&N.length>0,eo=!er&&!Q||!H;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)}),Q&&(0,i.jsx)(Q,{txnBadgeColAdjustments:K}),er&&(0,i.jsx)(el,{keyAttributes:N,txnBadgeColAdjustments:K}),!(null===(l=s[0])||void 0===l?void 0:l.cardCategory)&&(0,i.jsx)(es,{additionalColumns:T,isShowBrand:f,showDescriptionColumn:eo}),(0,i.jsx)(o.A,{colSpan:4}),(0,i.jsx)(ea,{showSdsColumn:U}),(0,i.jsx)(et,{})]})}),(0,i.jsx)(m.A,{children:s.slice(0,L).map((e,a)=>e instanceof Error||!e?null:(0,i.jsx)(X,{additionalColumns:T,displayBadgesOnProduct:x,displayViewLink:C,focus:A,isShowBrand:f,isShowImage:v,isStaticContent:b,product:e,productIsAntibody:w,productIsSyringeFilter:D,showDescription:eo,substanceId:E,substancePosition:_,txnBadgeColAdjustments:K},"".concat(e.productKey).concat(e.brand.erpKey,"-").concat(a)))})]}),(0,i.jsx)("div",{className:S.utilityRow,children:s.length>O&&(0,i.jsx)(h.A,{expanded:k,setExpanded:P,className:S.showMoreLessButton,"data-testid":"show-".concat(k?"less":"more"),onClick:()=>{let e=k?"show less":"show more";(0,j.sendNavigationInteractionEvent)({action:W.$R.InPageClick,detail:"".concat(e," products | ").concat(E),component:W.IP.Body,elementType:W.T.AnchorLink,elementText:e,productName:"water"})}})})]})}},61622:(e,a,t)=>{t.d(a,{j:()=>i});let i=e=>e?e.map(e=>({...e,productKey:e.productNumber,isMarketplace:!1})):[]},62084:(e,a,t)=>{t.d(a,{A:()=>c});var i=t(37876),n=t(42778);t(14232);var r=t(67792),l=t(8733),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)(),x=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:()=>x(c),children:(0,i.jsx)(o.A,{variant:"inherit",children:u||(0,i.jsx)(l.A,{id:"VIEW",defaultMessage:"View"})})})})}},62599:(e,a,t)=>{t.d(a,{A:()=>M});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(29468),p=t(77660),m=t(52413),g=t(97710),h=t(57477),x=t(44509),A=t(8733),y=t(34669),v=t(71605),f=t(49691),b=t(85366),T=t(71007);let C=(0,o.makeStyles)()(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-of-type(4n)":{flexBasis:"50%"}},MetaFormatting:{wordBreak:"break-all",fontWeight:e.typography.fontWeightMedium}})),E=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}=C(),m=(0,l.rd)(),x=(0,g.h2)({focus:m.query.focus}),E=x.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)(A.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)(x.focus),productSearchType:g.mI.CasNumber,classes:u.MetaFormatting,onClick:()=>(0,T.sendProductInfoInteractionEvent)((0,v.uW)({action:"cas number",detail:t,focus:x.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)(A.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)(A.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)(x.focus),productSearchType:g.mI.EgecNumber,classes:u.MetaFormatting,onClick:()=>(0,T.sendProductInfoInteractionEvent)((0,v.uW)({action:"ec number",detail:o.value,focus:x.focus}))})})]}),d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"body2",className:u.MetaFormatting,children:[(0,i.jsx)(A.A,{...y.A.BEILSTEIN_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)("div",{className:u.MetaFormatting,children:d.value})})]}),E&&(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)(A.A,{...y.A.SIMILARITY}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsxs)("span",{children:[E,"%"]})})]})]})};var j=t(54034),_=t(40352),N=t(59131),S=t(92881),I=t(36820),R=t(52710);let k=(0,o.makeStyles)()(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"},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)}})),M=e=>{let{onSubstanceClick:a,substance:t,substancePosition:o}=e,{products:v,id:f,synonyms:b,images:C,linearFormula:M,empiricalFormula:P,legalName:O,__typename:L}=t,{classes:B,cx:F}=k(),w=(0,l.rd)(),D=(0,g.h2)({focus:w.query.focus}),W=t.images[0]||{},U=v.map(e=>({...e,images:C})),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)||"",V=G&&!!z&&!!Y,q=w.query.catalogType,K=(0,g.vN)(null!=q?q:D.focus),[Q,X]=(0,s.useMemo)(()=>M?[M,y.A.LINEAR_FORMULA]:P?[P,y.A.EMPIRICAL_FORMULA_HILL_NOTATION]:[null,null],[P,M]),$=(0,r.A)(),Z=(0,n.A)($.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.sendProductInfoInteractionEvent)({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)(x.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)(A.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:O||t.name})})}):(0,i.jsx)(h.A,{value:O||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)(A.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)(A.A,{...X}),": "]}),(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)(E,{substance:t})]}),V&&(0,i.jsxs)("div",{className:B.sellerInfo,children:[(0,i.jsx)(A.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)(A.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(D.focus),children:(0,i.jsx)(Z,{products:U,displayBadgesOnProduct:J,focus:D.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})]})}},64578:(e,a,t)=>{t.r(a),t.d(a,{FacetChangeAction:()=>im,SearchQueryContext:()=>ip,default:()=>ib,useSearchQuery:()=>ih});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(36503),m=t(99220),g=t(51722),h=t(71541),x=t(48829),A=t(12197),y=t(5411),v=t(64204),f=t(80491),b=t(35877),T=t(52413),C=t(43965);let E=(0,m.makeStyles)()(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"}})),j=e=>{let{images:a,productKey:t,productNumber:n,brandKey:r}=e,{classes:s}=E(),{removeCompareProduct:d}=(0,f.Zn)(),c=null==a?void 0:a.find(e=>!e.productKey||!e.brandKey||e.productKey===t&&e.brandKey===r),u=null==c?void 0:c.url,p=(null==u?void 0:u.startsWith("/deepweb"))?u:"/deepweb".concat(u);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:p,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)(T.N,{...l.aR.index(r,t,{catalog:(0,o.vN)(o.Xc.Products)}),passHref:!0,children:n||t})})]}),(0,i.jsx)(v.A,{onClick:()=>d({brandKey:r,productKey:t}),children:(0,i.jsx)(C.A,{className:s.x})})]})};var _=t(8733),N=t(35967);let S=(0,N.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"},RELEVANCE:{id:"RELEVANCE",defaultMessage:"Relevance"},NAME_ASCENDING:{id:"NAME_ASCENDING",defaultMessage:"Name (Ascending)"},NAME_DESCENDING:{id:"NAME_DESCENDING",defaultMessage:"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"},FILTER:{id:"FILTER",defaultMessage:"Filter"}});var I=t(76594),R=t(18847);let k=t.n(R)()(()=>t.e(2974).then(t.bind(t,42974)),{loadableGenerated:{webpack:()=>[42974]},loadableGenerated:{webpack:()=>[42974]},ssr:!1}),M=(0,m.makeStyles)()(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}})),P=e=>{let{isAemDrawer:a=!1}=e,{compareProducts:t,clearAllCompareProducts:r,sendToProductCompareDetail:s}=(0,f.Zn)(),o=(0,l.rd)(),[d]=ih(),{classes:c}=M(),u=(0,b.A)(),p=(0,h.A)(u.breakpoints.up("md")),[m,g]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{g(!0)},[]),m)?a?(0,i.jsx)(k,{}):(0,i.jsx)(x.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)(_.A,{...S.CHOOSE_UP_TO_FOUR_PRODUCTS})})}),(0,i.jsx)("div",{className:c.productsContainer,children:(0,I.A)(4,e=>t[e]?(0,i.jsx)(j,{...t[e]},t[e].productKey):(0,i.jsx)("div",{className:c.blank},e))}),(0,i.jsxs)("div",{className:c.btnContainer,children:[(0,i.jsx)(y.A,{disabled:t.length<2,variant:"outlined",color:"primary",size:"medium",onClick:()=>s(d,o),children:(0,i.jsx)(_.A,{...S.COMPARE})}),(0,i.jsx)(v.A,{className:c.clearBtn,onClick:()=>r(),children:(0,i.jsx)(_.A,{...S.CLEAR_ALL})})]})]})}):null};var O=t(77328),L=t.n(O),B=t(77742),F=t(89099),w=t(63752),D=t(43564),W=t(39324),U=t.n(W);let{publicRuntimeConfig:{canonicalUrlPrefix:H}}=U()(),G=e=>{let{metadata:a}=e,t=(0,B.A)(),{asPath:n,query:{page:r,term:s,focus:d,type:c,country:u,language:p}}=(0,F.useRouter)(),m=(0,w.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"}),x="".concat(h," | Sigma-Aldrich"),A={[o.mI.CasNumber]:"CAS",[o.mI.EgecNumber]:"EC/EG",[o.mI.MdlNumber]:"MDL"};c&&A[c]&&(x="".concat(A[c]," ").concat(x));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),C="".concat(f,"page=").concat(Number(r)-1).concat(b),E=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(H,"/").concat(u,"/").concat(p).concat(l.wO.index())},{"@type":"ListItem",position:2,name:"".concat(s),item:"".concat(H).concat(n)}]};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(L(),{children:[(0,i.jsx)("title",{"data-testid":"head-title",children:x}),Number(r)!==(null==a?void 0:a.numPages)?(0,i.jsx)("link",{rel:"next",href:T}):null,Number(r)>1?(0,i.jsx)("link",{rel:"prev",href:C}):null]}),(0,i.jsx)(D.L,{description:E,keywords:[s||"","search","sigma","aldrich","millipore",m],canonicalParamAllowed:e=>["term","focus","page","perpage","sort","type"].includes(e),schema:j})]})};var z=t(69139),Y=t(54753),V=t(33086),q=t(84768),K=t(64272),Q=t(57477);let X=e=>e?e.toLowerCase().replace("facet_web_","").replace(/_/g," "):"",$=e=>{let{id:a}=e,{formatMessage:t}=(0,B.A)();if(!a)return null;if(!S[a])return(0,i.jsx)(i.Fragment,{children:a.toLowerCase().replace("facet_web_","").replace(/_/g," ")});let n=t(S[a]);return(0,i.jsx)(Q.A,{value:n})};var Z=t(40352);let J=(0,m.makeStyles)()(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[200]),[e.breakpoints.up("md")]:{padding:e.spacing(1,1.5)},[e.breakpoints.up("xl")]:{position:"relative",paddingRight:e.spacing(4)}},closeBtn:{marginLeft:e.spacing(2),marginRight:"0 !important",fontSize:e.typography.pxToRem(10),[e.breakpoints.up("xl")]:{position:"absolute",top:e.spacing(1.5),right:e.spacing(1.5),marginLeft:0,minWidth:"auto",padding:e.spacing(.5)}},alignmentWrapper:{display:"flex",justifyContent:"center",[e.breakpoints.up("xl")]:{paddingRight:e.spacing(1.5)}}})),ee=e=>{let{label:a,onDelete:t,dataTestId:n,ariaLabel:r}=e,{classes:l}=J(),s="string"==typeof a?(0,i.jsx)("span",{children:a}):a;return(0,i.jsx)("div",{className:l.root,"data-testid":n,children:(0,i.jsxs)("div",{className:l.alignmentWrapper,children:[(0,i.jsx)("span",{children:s}),(0,i.jsx)(v.A,{"aria-label":r,className:l.closeBtn,onClick:t,children:(0,i.jsx)(C.A,{fontSize:"inherit",color:"primary"})})]})})},ea=(0,m.makeStyles)()(e=>({facetMarkup:{marginRight:e.spacing(1),"& sub, & sup":{verticalAlign:"baseline",position:"relative",top:"0.4em"},"& sup":{top:"-0.4em"}},searchTerm:{marginRight:e.spacing(1)},chipsContainer:{display:"flex",flexWrap:"wrap",margin:e.spacing(-1)},chipWrapper:{padding:e.spacing(1),"& sub":{top:"0.2em"}},keywordChipWrapper:{padding:e.spacing(1)},facetsMenuWrapper:{display:"flex",padding:e.spacing(3),background:e.palette.background.grey,border:"1px solid ".concat(e.palette.grey[200]),borderRadius:5,marginBottom:e.spacing(5),flexDirection:"column"},facetsMenuLabel:{whiteSpace:"nowrap",marginRight:e.spacing(4),fontWeight:e.typography.fontWeightMedium,paddingBottom:e.spacing(2)}})),et=e=>{let{facetLabel:a,facetKey:t,facets:r}=e,s=(0,l.rd)(),{classes:d}=ea(),c=(0,B.A)(),u=(0,o.h2)({focus:s.query.focus}),p=(0,n.useCallback)((e,a)=>{if(!(null==a?void 0:a.length)&&u.focus===o.Xc.Chromatograms&&"FACET_WEB_TITERTEST_APP"===e.toUpperCase())return c.formatMessage(Y.A[e.toUpperCase()]);if(!a)return"";let t=a.find(a=>a.key===e);return(null==t?void 0:t.key)&&Y.A[t.key.toUpperCase()]?c.formatMessage(Y.A[t.key.toUpperCase()]):X(null==t?void 0:t.key)},[c])(t,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q.A,{className:d.facetMarkup,value:"".concat(p,":")}),(0,i.jsx)(Q.A,{value:a})]})},ei=(e,a)=>{a.handleSelectedFacetChange({key:e.key,options:[e.label],action:im.Remove});let t="".concat(e.key,":").concat(e.label),i=(0,q.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,K.BI)({payload:i})},en=e=>{let{facets:a,isStructureSearch:t}=e,[n,r,s]=ih(),{isLargeDesktop:o,isDesktop:d}=(0,Z.Qs)(),c=(0,z.A)(a,"options"),u=o?40:23*!!d,p=(0,z.A)(r,e=>e.options.map(a=>{let t=c.find(e=>e.value===a);return{key:e.key,label:u&&(null==a?void 0:a.length)>u?"".concat(a.slice(0,u),"..."):a,count:null==t?void 0:t.count}})),{formatMessage:m}=(0,B.A)(),g=(0,l.rd)(),{classes:h}=ea(),x=n.term&&!t&&!(0,V._)(g);return 0!==p.length||x?(0,i.jsxs)("div",{className:h.facetsMenuWrapper,"data-testid":"facet-selections",children:[(0,i.jsx)(A.A,{variant:"caption",className:h.facetsMenuLabel,children:(0,i.jsx)(_.A,{id:"APPLIED_FILTERS_HEADING",defaultMessage:"Applied Filters:"})}),(0,i.jsxs)("div",{className:h.chipsContainer,children:[x&&(0,i.jsx)("div",{className:h.keywordChipWrapper,children:(0,i.jsx)(ee,{ariaLabel:"".concat(m(Y.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(n.term," ").concat(m(Y.A.SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH)),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:h.searchTerm,children:[m(Y.A.KEYWORD),":"]}),(0,i.jsx)("span",{children:"'".concat(n.term,"'")})]}),dataTestId:"query-term-chip",onDelete:()=>s.handleTermRemoval(r,a)})}),a&&p.map(e=>(0,i.jsx)("div",{className:h.chipWrapper,children:(0,i.jsx)(ee,{ariaLabel:"".concat(m(Y.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(e.label," ").concat(m(Y.A.SELECTION_CHIP_REMOVE_FILTER_2)),onDelete:()=>ei(e,s),label:(0,i.jsx)(et,{facetLabel:e.label,facetKey:e.key,facets:a})})},"".concat(e.key,":").concat(e.label)))]})]}):null};var er=t(28888),el=t(82897),es=t(54431);function eo(){let e=(0,er._)(["\n query NewProductSearch($term: String!, $page: Int, $count: Int, $facets: [FacetInput!], $filter: String) {\n getNewProductSearchResults(\n input: {term: $term, page: $page, count: $count, facets: $facets, filter: $filter}\n ) {\n products {\n application\n brand\n brandKey\n citationCount\n displayBrand\n images {\n altText\n seq\n url\n }\n molecularWeight\n productKey\n productName\n productNameSuffix\n productNumber\n synonyms\n substance {\n substanceId\n substanceName\n casNumber\n }\n keyAttributes {\n key\n label\n values\n }\n sds {\n type\n locale\n }\n }\n facets {\n key\n numToDisplay\n isHidden\n isCollapsed\n multiSelect\n options {\n value\n count\n }\n }\n metadata {\n count\n }\n }\n}\n "]);return eo=function(){return e},e}let ed={},ec=(0,el.J1)(eo()),eu=(0,n.createContext)(void 0),ep=()=>{let e=(0,n.useContext)(eu);if(!e)throw Error("useSearchContext must be used within a SearchProvider");return e},em=e=>{var a;let{children:t}=e,r=(0,l.rd)(),[s,d]=ih(),{data:c,loading:u}=function(e){let a={...ed,...e};return es.IT(ec,a)}({variables:{term:s.term||"",facets:d,count:10,page:s.page}}),p=(0,n.useMemo)(()=>{var e,a;let t=null==c?void 0:null===(e=c.getNewProductSearchResults)||void 0===e?void 0:e.metadata,i=(null!==(a=null==t?void 0:t.count)&&void 0!==a?a:0)>0,n=(0,o.h2)({focus:r.query.focus,term:r.query.term});return{data:c,loading:u,metadata:t,hasResults:i,isStructureSearch:n.focus===o.Xc.StructureSearch,queryTerm:(()=>{var e,a;return"facet-search"===n.term?null===(e=s.facet[0])||void 0===e?void 0:e.split(":")[1]:(null===(a=r.query)||void 0===a?void 0:a.term)||""})(),validSearchQuery:n}},[c,u,s.facet,null===(a=r.query)||void 0===a?void 0:a.term]);return(0,i.jsx)(eu.Provider,{value:p,children:t})};var eg=t(65824),eh=t(87905),ex=t(87505),eA=t(14098);let ey=(0,m.makeStyles)()(e=>({facetGroupHeader:{display:"flex",alignItems:"center",justifyContent:"space-between"},headerBorderBottom:{borderBottom:"1px solid ".concat(e.palette.grey[400])},facetGroupLabel:{wordBreak:"break-all",fontWeight:"bold"},substanceFacetGroupLabel:{wordBreak:"break-all",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontWeight:e.typography.fontWeightMedium}},facetGroupCollapse:{display:"flex",flexShrink:0,marginRight:e.spacing(-2.5)},collapseIcon:{fontSize:e.typography.pxToRem(24),color:e.palette.primary.main}})),ev=e=>{let{defaultCollapse:a=!1,facetKey:t,children:r,isSubstanceFacets:l}=e,{classes:s,cx:o}=ey(),[d,c]=(0,n.useState)(a);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:o(s.facetGroupHeader,l?s.headerBorderBottom:""),children:[(0,i.jsx)("span",{className:l?s.substanceFacetGroupLabel:s.facetGroupLabel,children:t&&(0,i.jsx)($,{id:t.toUpperCase()})}),(0,i.jsx)("span",{className:s.facetGroupCollapse,children:(0,i.jsx)(eA.A,{className:s.collapseIcon,onClickHandler:()=>{c(!d),(0,q.y)(d?"collapse":"expand",t)},showGroup:d,id:d?"facet-group-".concat(t,"-hide"):"facet-group-".concat(t,"-show")})})]}),d&&r]})};var ef=t(98373),eb=t(18249),eT=t(16652);let eC=(0,m.makeStyles)()(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)},Clear:{display:"none",fontSize:e.typography.pxToRem(10),marginRight:e.spacing(3)},showClear:{display:"inline-flex"}})),eE=e=>{let{facet:a,selectedOptions:t,handleFacetChange:r}=e,[l,s]=(0,n.useState)(null),[o,d]=(0,n.useState)(""),{classes:c,cx:u}=eC(),p=(0,b.A)(),{formatMessage:m}=(0,B.A)(),g=(0,h.A)(p.breakpoints.down("md")),x=e=>{let a=e.split("_").filter(e=>"facet"!==e&&"web"!==e).map(e=>e[0].toUpperCase()+e.substring(1)).join(" ");return a.length>10&&g?a.slice(0,10).concat("..."):a},A=()=>{d(""),s(null)};(0,n.useEffect)(()=>{A()},[r]);let y={};return a.options.map(e=>y[e.value]=e.count),(0,i.jsx)("div",{className:c.facetSearchBoxContainer,children:(0,i.jsx)(eb.Ay,{disablePortal:!0,classes:{root:c.facetSearchInput,listbox:c.facetSearchListBox,option:c.facetSearchListBoxOption,noOptions:c.facetSearchListBoxNoOptions},options:Object.keys(y),renderOption:e=>(0,i.jsx)(Q.A,{value:"".concat(e," (").concat(y[e],")")}),noOptionsText:m(S.NO_FACETS_FOUND),renderInput:e=>(0,i.jsx)("div",{className:c.facetSearchInputContainer,ref:e.InputProps.ref,children:(0,i.jsx)(ef.A,{ref:e.InputProps.ref,...e.inputProps,placeholder:"Search ".concat(x(a.key)),disableUnderline:!0,fullWidth:!0,endAdornment:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{className:u(c.Clear,{[c.showClear]:""!==o}),onClick:A,children:(0,i.jsx)(C.A,{fontSize:"inherit"})}),(0,i.jsx)(eT.A,{className:c.searchIcon})]})})}),inputValue:o,onInputChange:(e,a)=>{d(a)},value:l,onChange:(e,i)=>{if(s(i),!i||t.includes(i))return;let n=a.options.find(e=>e.value===i),l=(null==n?void 0:n.count)||void 0;r(a.key,i,!1,l,"search box")}})})};var ej=t(70114),e_=t(21289);let eN=(0,m.makeStyles)()(e=>({icon:{display:"inline-flex",fontSize:e.typography.pxToRem(28),marginLeft:e.spacing(2)}})),eS=e=>{let{value:a,count:t}=e,{classes:n}=eN(),r=a===o.u2.SameDay?(0,i.jsx)(e_.A,{color:"secondary",fontSize:"inherit"}):(0,i.jsx)(ej.A,{color:"secondary"});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{id:a.toUpperCase().replace(" ","_"),defaultMessage:a})," (".concat(t,")"),(0,i.jsx)("span",{className:n.icon,children:r})]})},eI=(0,m.makeStyles)()(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 eR=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}(eR||{});let ek=e=>{let{facet:a,showMore:t,substanceFacetChange:r,selectedSubstanceFacetOptions:l}=e,{classes:s}=eI(),o=ih(),d=o[1],c=o[2],u=l||(d.find(e=>{let{key:t,options:i}=e;return a.prefix&&(i[0]=i[0].replace(a.prefix,"")),t===a.key})||{options:[]}).options,[p,m]=(0,n.useState)(!1),g=t||p?a.options:a.options.slice(0,a.numToDisplay||6);p&&g.length===a.numToDisplay&&m(!1);let h=p?"show less":"show more",x="facet_shipping"===a.key,A=(e,t,i,n,l)=>{r?r({key:a.key,options:a.prefix?["".concat(a.prefix).concat(t)]:[t]},i):c.handleSelectedFacetChange({key:a.key,options:[t],action:i?im.Remove:im.Add,multiSelect:a.multiSelect||!1,prefix:a.prefix});let s=(0,q.g)({action:"".concat(i?"remove":"add"," filter"),component:"left rail",element_type:l,element_text:"".concat(t," (").concat(n,")"),filter_name:t,filter_name_count:n,filter_category:e});(0,K.BI)({payload:s})},y=u.map(e=>e.split("|")[0]),f=r?y.includes("".concat(a.key)):u.length>0,b=!a.isCollapsed||f;return(0,i.jsx)("div",{className:s.root,children:(0,i.jsxs)(ev,{defaultCollapse:b,facetKey:a.key,isSubstanceFacets:!!r,children:[a.key in eR&&(0,i.jsx)(eE,{facet:a,selectedOptions:u,handleFacetChange:A}),(0,i.jsxs)("div",{className:s.collapseInner,children:[g.map(e=>{let{value:t,count:n}=e,r=u.indexOf(t)>=0||u.indexOf("".concat(a.key,"|").concat(t))>=0||u.indexOf("".concat(a.key,"|").concat(a.prefix).concat(t))>=0;return(0,i.jsx)("div",{children:(0,i.jsx)(eg.A,{"aria-label":t,"data-testid":"srp-facet-".concat(t),value:t,checked:r,classes:{root:s.checkboxRoot},formControlClasses:{label:s.formControlLabel},onChange:()=>A(a.key,t,r,n,"checkbox"),label:(0,i.jsx)("span",{className:s.facetLabel,children:x?(0,i.jsx)(eS,{value:e.value,count:e.count}):(0,i.jsx)(Q.A,{value:"".concat(e.value," (").concat(e.count,")")})})})},t)}),(a.options.length>g.length||p)&&(0,i.jsx)(v.A,{onClick:()=>{m(!p),(0,q.y)(h,a.key,h)},"aria-expanded":p,"aria-label":h,className:s.showMore,id:p?"facet-group-".concat(a.key,"-show-less"):"facet-group-".concat(a.key,"-show-more"),children:p?(0,i.jsxs)("div",{children:[(0,i.jsx)(_.A,{...S.SHOW_LESS}),(0,i.jsx)(eh.A,{className:s.showMoreIcon})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)(_.A,{...S.SHOW_MORE}),(0,i.jsx)(ex.A,{className:s.showMoreIcon})]})})]})]})},a.key)};var eM=t(39069),eP=t(7645);let eO=()=>{let e=(0,b.A)();return(0,i.jsx)("div",{children:[,,,].fill({}).map((a,t)=>(0,i.jsxs)(eP.A,{mb:6,children:[(0,i.jsx)(eP.A,{mb:4,children:(0,i.jsx)(eM.A,{light:!0})}),(0,i.jsx)(eP.A,{height:22,width:.75,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mb:4}),[,,,,,].fill({}).map((a,t)=>(0,i.jsxs)(eP.A,{display:"flex",alignItems:"center",pr:4,mb:4,children:[(0,i.jsx)(eP.A,{height:24,width:24,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"],mr:4}),(0,i.jsx)(eP.A,{flex:1,height:20,width:20,borderRadius:"borderRadius",bgcolor:e.palette.grey["50"]})]},t))]},t))})},eL=e=>{let{loading:a,error:t,facets:r,showMore:l,substanceFacetChange:s,selectedSubstanceFacetOptions:o}=e;return a?(0,i.jsx)(eO,{}):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)(ek,{facet:e,allFacets:r,showMore:l,substanceFacetChange:s,selectedSubstanceFacetOptions:o},e.key)},e.key))})},eB=(0,m.makeStyles)()(e=>({hideOnMobile:{[e.breakpoints.down("md")]:{display:"none"}},searchFacets:{margin:0},searchFacetsInner:{height:"calc(100% - ".concat(e.spacing(5),")"),padding:e.spacing(0,7,5,5)}})),eF=()=>{var e,a;let{classes:t,cx:n}=eB(),{data:r,loading:l,isStructureSearch:s}=ep();return(0,i.jsx)("div",{className:n(t.hideOnMobile,t.searchFacets),children:(0,i.jsxs)("div",{className:t.searchFacetsInner,children:[(0,i.jsx)(en,{facets:null==r?void 0:null===(e=r.getNewProductSearchResults)||void 0===e?void 0:e.facets,isStructureSearch:s}),(0,i.jsx)(eL,{loading:l,facets:null==r?void 0:null===(a=r.getNewProductSearchResults)||void 0===a?void 0:a.facets})]})})};var ew=t(5213),eD=t(33280),eW=t(9522),eU=t(22566),eH=t(94295),eG=t(27651),ez=t(34415),eY=t(37929),eV=t(47378),eq=t(34669),eK=t(11569),eQ=t(19793),eX=t(98868),e$=t(15524),eZ=t(86063),eJ=t(81474),e0=t(54414),e1=t(8288),e2=t(71007);let e4=(0,m.makeStyles)()(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)}})),e7=()=>{let{classes:e}=e4(),{formatMessage:a}=(0,B.A)();return(0,i.jsxs)(p.A,{item:!0,xs:12,className:e.sectionWrapper,children:[(0,i.jsx)(A.A,{component:"div",className:e.heading,children:a(eq.A.NEED_ADDITIONAL_HELP)}),(0,i.jsx)(eM.A,{className:e.headerDivider}),(0,i.jsx)("div",{className:e.sectionContent,children:(0,i.jsx)(T.N,{href:l.mA.customerSupport(),passHref:!0,children:(0,i.jsx)(ez.A,{className:e.textLink,children:a(eq.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)(eM.A,{className:e.headerDivider}),(0,i.jsxs)("div",{className:e.sectionContent,children:[(0,i.jsxs)(ez.A,{className:e.textLink,href:"http://www.aldrichmarketselect.com",target:"_blank",children:[a({id:"ALDRICH_MARKET_SELECT",defaultMessage:"Aldrich\xae Market Select"}),","," "]}),a(eq.A.ALDRICH_MARKET_SELECT_NSR)]})]})},e3=(0,m.makeStyles)()(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 e8=t(96707),e5=t(29086),e6=t(88124),e9=t(54203),ae=t(44274),aa=t(66896);let at=(0,m.makeStyles)()(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)}}})),ai=e=>{let a;return e&&(a="Summary: "===e.slice(0,9)?e.slice(9,e.length-1):null),a},an=e=>{let{gene:a}=e,{classes:t}=at(),r=ai(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(" "):[],m=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)(e5.A,{style:{width:"100%",height:"100%"}})}),(0,i.jsxs)("div",{className:t.detail,children:[(0,i.jsx)(T.N,{...l.U8.index(a.symbol),passHref:!0,children:(0,i.jsx)(ez.A,{className:t.title,children:a.symbol})}),a.name&&(0,i.jsx)(e8.A,{mb:4,fontSize:16,children:a.name}),a.synonyms.length>0&&(0,i.jsxs)("div",{className:t.synonymsWrapper,children:[(0,i.jsx)(p.A,{item:!0,xs:3,md:2,children:(0,i.jsx)("div",{className:t.geneDataTitle,children:(0,i.jsx)(_.A,{...eq.A.SYNONYMS,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(p.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)(p.A,{container:!0,children:[a.variants.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.A,{item:!0,xs:3,md:2,children:(0,i.jsx)("div",{className:t.geneDataTitle,children:(0,i.jsx)(_.A,{id:"SPECIES",defaultMessage:"Species",children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(p.A,{item:!0,xs:9,md:10,"data-testid":"gene-variants",children:(0,i.jsx)(e8.A,{lineHeight:1.7,className:s?t.geneDataRowExpanded:t.geneDataRow,children:(0,i.jsx)(e6.A,{allowShowMore:!1,wordCount:10,showFullText:s,children:c})})})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.A,{item:!0,xs:3,md:2,children:(0,i.jsx)("div",{className:t.geneDataTitle,children:(0,i.jsx)(_.A,{...eq.A.SUMMARY,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(p.A,{item:!0,xs:9,md:10,"data-testid":"gene-summary",children:(0,i.jsx)(e8.A,{lineHeight:1.7,className:s?t.geneDataRowExpanded:t.geneDataRow,children:(0,i.jsx)(e6.A,{allowShowMore:!1,wordCount:10,showFullText:s,children:r})})})]}),u.length-1>10||m.length-1>15?(0,i.jsx)(v.A,{"data-testid":"gene-show-more",className:t.expandCta,onClick:()=>d(!s),children:s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{...eq.A.SHOW_LESS}),(0,i.jsx)(e9.A,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{...eq.A.SHOW_MORE}),(0,i.jsx)(ae.A,{})]})}):null]})}),a.relatedCategories.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:t.relatedProductsTitle,children:(0,i.jsx)(_.A,{...eq.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)(T.N,{...l.U8.index(a.symbol,e.name),passHref:!0,children:(0,i.jsx)(ez.A,{color:"primary",children:e.name})},e.name)||("shRNA"===e.name||"siRNA"===e.name)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(T.N,{...l.VO.index(e.name,a.symbol),passHref:!0,children:(0,i.jsx)(ez.A,{color:"primary",children:e.name})},e.name)}))})]}),a.name&&(0,i.jsx)("div",{className:t.relatedGenesLinkWrapper,children:(0,i.jsx)(T.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)(ez.A,{color:"primary",className:t.relatedGenesLink,children:[(0,i.jsx)(_.A,{...eq.A.SEE_ALL_RELATED_GENES}),(0,i.jsx)(aa.A,{className:t.caretRightIcon})]})})})]})};var ar=t(79965);let al=(0,m.makeStyles)()(e=>({notFindingText:{fontWeight:e.typography.fontWeightBold}})),as=()=>{let{classes:e}=al();return(0,i.jsx)(ar.A,{alertMessage:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.A,{className:e.notFindingText,children:(0,i.jsx)(_.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)(_.A,{id:"LET_PRODUCT_ASSISTANT_HELP",defaultMessage:"Let the Product Assistant help you discover the right solution."})})]}),gaSection:"no search results"})},ao=(0,m.makeStyles)()(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}}})),ad=e=>{let{link:a,linkText:t,title:n,type:r,isGene:l,children:s}=e,{classes:o}=ao();return(0,i.jsxs)("div",{className:o.sectionWrapper,"data-testid":"search-no-results-".concat(r,"-quick-link"),children:[(0,i.jsx)(eM.A,{className:o.sectionDivider}),(0,i.jsx)(A.A,{variant:"h2",className:o.verticalSpacing,children:n}),(0,i.jsx)(p.A,{container:!l,children:s}),(0,i.jsx)(eM.A,{className:o.divider}),a&&t&&(0,i.jsx)(p.A,{container:!0,spacing:4,children:(0,i.jsx)("div",{className:o.linkWrapper,children:(0,i.jsx)(T.N,{href:a,passHref:!0,children:(0,i.jsx)(ez.A,{children:t})})})})]})},ac=e=>{var a,t;let{dymTerms:r,hasBbeData:s,bbeLoading:c,bbeData:u,bbeError:m}=e,{formatMessage:g}=(0,B.A)(),{classes:h}=ao(),x=(0,l.rd)();(0,n.useEffect)(()=>{c||s||r?!c&&s&&(0,e2.setPageLoadComplete)(!0):(0,e2.sendSearchDidYouMeanEvent)(x.query.term||"",[],x.query.focus,x.query.type,x.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 m&&!c?(0,i.jsx)(e$.A,{}):(0,i.jsx)(i.Fragment,{children:s&&A&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ad,{link:"".concat(l.wO.searchResults(x.query.term)).concat((0,o.$c)({term:x.query.term,focus:o.Xc.BuildingBlocks})),linkText:g(eq.A.SEE_ALL_BUILDING_BLOCKS),title:g(eq.A.BUILDING_BLOCKS_EXPLORER),type:"bbe",children:A.map((e,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.A,{item:!0,xs:12,md:5,className:h.cardGrid,children:[(0,i.jsx)(eM.A,{className:h.divider}),(0,i.jsx)("div",{className:h.baseCardStyle,children:(0,i.jsx)(eZ.A,{colorIndex:a,catalogOverride:d.Mh.Buildingblocks,substance:e})})]},a),(0,i.jsx)(eM.A,{className:h.divider})]}))})})})},au=e=>{var a,t,r,l,s,o,c,u,m,g;let{geneData:x,dymTerms:y,isRedirect:v}=e,[f,b]=ih(),{formatMessage:T}=(0,B.A)(),{classes:C}=ao(),E=(0,eY.A)(),j=(0,eV.k)(),_=(0,h.A)(E.breakpoints.up(Z.Rp.MD),{defaultMatches:!0}),N=(0,h.A)(E.breakpoints.up(Z.Rp.LG),{defaultMatches:!0}),S=(0,e1.GO)(),I=(0,e0.S)()?"network-only":"cache-first",{data:R,error:k,loading:M}=(0,eJ.le)({fetchPolicy:I,variables:{searchTerm:f.term,page:f.page,group:d.RL.Product,selectedFacets:b,sort:f.sort,type:f.type?f.type.toUpperCase():void 0,catalogType:d.Mh.Buildingblocks},skip:!S});(0,n.useEffect)(()=>{(null==y?void 0:y.length)&&!v&&(0,e2.sendSearchDidYouMeanEvent)(f.term||"",y,f.focus,f.type,"".concat(f.page))},[y]);let{classes:P}=e3(),O=!!(null==x?void 0:null===(t=x.getGeneSearchResults)||void 0===t?void 0:null===(a=t.metadata)||void 0===a?void 0:a.itemCount)&&(null==x?void 0:null===(l=x.getGeneSearchResults)||void 0===l?void 0:null===(r=l.metadata)||void 0===r?void 0:r.itemCount)!==0,L=null==x?void 0:null===(o=x.getGeneSearchResults)||void 0===o?void 0:null===(s=o.items)||void 0===s?void 0:s.slice(0,1),F=!!(null==R?void 0:null===(u=R.getProductSearchResults)||void 0===u?void 0:null===(c=u.metadata)||void 0===c?void 0:c.itemCount)&&(null==R?void 0:null===(g=R.getProductSearchResults)||void 0===g?void 0:null===(m=g.metadata)||void 0===m?void 0:m.itemCount)!==0,[w,D]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{M||D(!S||!F&&!O)},[M,F,S,O]),(0,i.jsxs)(p.A,{className:P.gridWrapper,children:[(0,i.jsxs)("div",{className:P.columnWrapper,children:[(0,i.jsxs)("div",{className:P.firstColumn,children:[w&&f.term&&"facet-search"!==f.term?(0,i.jsx)(A.A,{component:"div",className:C.noMatchesMessage,children:"".concat(T(eq.A.SORRY_NO_MATCHES_FOUND_FOR),' "').concat(f.term,'"')}):w&&(!f.term||"facet-search"===f.term)&&(0,i.jsx)(A.A,{component:"div",className:C.noMatchesMessage,children:"".concat(T(eq.A.SORRY_NO_RETURN_RESPONSE_FOR))}),(null==y?void 0:y.length)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:(0,i.jsx)(eX.A,{terms:y,focus:f.focus})})}):null,(0,i.jsx)(eK.A,{}),j&&(0,i.jsx)(as,{}),S&&(0,i.jsx)(ac,{dymTerms:!!(null==y?void 0:y.length),bbeData:R,bbeError:k,bbeLoading:M,hasBbeData:F}),O&&L&&(0,i.jsx)(ad,{title:T({id:"GENES",defaultMessage:"Genes"}),type:"gene",isGene:!0,children:L.map((e,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eM.A,{className:C.divider}),(0,i.jsx)(an,{gene:e},"".concat(e.name,"-").concat(a))]}))}),_&&(0,i.jsx)(eQ.A,{})]}),N&&(0,i.jsx)(e7,{})]}),!N&&(0,i.jsx)(e7,{})]})};var ap=t(5493);let am=(0,m.makeStyles)()(e=>({tRow:{display:"flex",alignItems:"center","& > div":{"&:nth-of-type(1)":{width:"4%"},"&:nth-of-type(2)":{width:"16%"},"&:nth-of-type(3)":{width:"38%"},"&:nth-of-type(4)":{width:"16%"},"&:nth-of-type(5)":{width:"10%"},"&:nth-of-type(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)}}})),ag=()=>{let{classes:e,cx:a}=am(),t=(0,b.A)();return(0,i.jsxs)("div",{"data-testid":"products-srp-skeleton",children:[(0,i.jsx)(eP.A,{mb:20}),(0,i.jsx)("div",{children:[,,,,,].fill({}).map((n,r)=>(0,i.jsx)(eP.A,{border:1,borderColor:t.palette.grey["50"],mb:{xs:6,sm:10},p:{xs:3,sm:6},children:(0,i.jsxs)(p.A,{container:!0,spacing:5,children:[(0,i.jsx)(p.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)(ap.A,{height:1,width:1})})})}),(0,i.jsx)(p.A,{item:!0,xs:10,children:(0,i.jsx)(eP.A,{mt:2,children:(0,i.jsxs)(p.A,{container:!0,spacing:4,children:[(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(ap.A,{height:28,width:.7,mb:3,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(p.A,{item:!0,xs:4,sm:2,children:(0,i.jsx)(ap.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(p.A,{item:!0,xs:8,sm:10,children:(0,i.jsx)(ap.A,{height:16,width:.7,borderRadius:{xs:2,sm:"borderRadius"}})}),Array(6).fill({}).map((e,a)=>(0,i.jsxs)(p.A,{item:!0,xs:4,sm:2,children:[(0,i.jsx)(ap.A,{height:16,width:.6,borderRadius:{xs:2,sm:"borderRadius"},mb:3}),(0,i.jsx)(ap.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"},mb:{xs:1,sm:3}})]},a))]})})}),(0,i.jsx)(p.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)(ap.A,{height:16,width:1,borderRadius:{xs:2,sm:"borderRadius"}})},a))},n))})]})},r))})]})};var ah=t(2897);let ax=(0,m.makeStyles)()(e=>({responsivePaginationWrapper:{padding:e.spacing(4,0)}})),aA=e=>{let{currentPage:a,handleUpdatePage:t,numPages:n,customPadding:r,customCounterStyling:l,customButtonStyling:s}=e,{classes:o}=ax();return(0,i.jsx)("div",{className:r||o.responsivePaginationWrapper,"data-testid":"search-results-pagination",children:(0,i.jsx)(ah.A,{currentPage:a,handleUpdatePage:e=>{(0,e2.sendNavigationInteractionEvent)({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 ay=t(57717),av=t(40002);let af=e=>{let{products:a}=e,t=(0,b.A)(),n=(0,Z.Ay)(),r=(0,h.A)(t.breakpoints.down("md"),{defaultMatches:!0});return(null==a?void 0:a.length)?(0,i.jsx)(ay.A,{type:av.j.RecommendedProducts,products:a,withoutControls:!r,slidesToShow:n({xs:1,sm:2,lg:3}),preloadCardImages:!0,condensed:!0}):null};var ab=t(55007),aT=t(11788),aC=t(84830);let aE=(0,m.makeStyles)()(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)}}})),aj=e=>{var a;let{children:t,searchKey:r,variant:l="light",calculateGenePosition:s}=e,{isBlueB2BUser:o}=(0,aT.iZ)(),{data:d}=(0,ab.Sx)({variables:{input:{searchKey:r,...o?{erpType:aC.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,e2.sendEmptyRecommendationGA4Event)({action:"srp load",detail:r.toLowerCase(),section:"recommended products"})}}),c=null==d?void 0:null===(a=d.getSrpRecommendedProducts)||void 0===a?void 0:a.products,u=!!c&&c.length>0;(0,n.useEffect)(()=>{s&&s(u)},[s]);let{classes:p,cx:m}=aE(),g=n.Children.toArray(t);return(0,i.jsxs)(i.Fragment,{children:[g.slice(0,2),c&&(0,i.jsx)("div",{className:m(p.promo,"dark"===l&&p.grey),children:(0,i.jsx)(af,{products:c})}),g.slice(2)]})},a_=(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:s="",searchType:d=""}=e,{formatMessage:c}=(0,B.A)(),{resCountFirst:u,resCountEnd:p}=a_(t,n,r),m=(0,l.rd)(),g=null===(a=m.query.orgId)||void 0===a?void 0:a.trim(),h="UCB"===g?g:null==g?void 0:g.toLowerCase(),x=c(S.SHOWING),A=c(1===r?S.RESULT:S.RESULTS),y=c(S.SEARCH_RESULT_OF),v=c(S.FOR),f=c(S.WITHIN),b=c((0,o.I0)(d));return(0,i.jsx)("div",{"data-testid":"srp-result-count",children:r?(0,i.jsxs)(i.Fragment,{children:["".concat(x," ").concat(u,"-").concat(p," ").concat(y," ").concat(r," ").concat(A," "),(0,V._)(m)?null:(0,i.jsxs)(i.Fragment,{children:[v," ",'"',s,'"'," ",h?b&&"".concat(f," ").concat(h," ").concat(b):b&&"".concat(f," ").concat(b)]})]}):null})};var aS=t(75584),aI=t(76023);let aR=[{value:d.FU.Relevance,label:S.RELEVANCE}],ak=[{value:d.FU.Relevance,label:S.RELEVANCE},{value:d.FU.Nameasc,label:S.NAME_ASCENDING},{value:d.FU.Namedesc,label:S.NAME_DESCENDING}],aM=[{value:d.FU.Relevance,label:S.RELEVANCE},{value:d.FU.Molwtasc,label:S.SORT_BY_MOL_WT_ASC},{value:d.FU.Molwtdesc,label:S.SORT_BY_MOL_WT_DESC}],aP=[{value:d.FU.Relevance,label:S.RELEVANCE},{value:d.FU.Genenameasc,label:S.NAME_ASCENDING},{value:d.FU.Genenamedesc,label:S.NAME_DESCENDING}],aO={[o.Xc.Products]:ak,[o.Xc.Genes]:aP,[o.Xc.Papers]:aR,[o.Xc.TechnicalDocuments]:aR,[o.Xc.SiteContent]:aR,[o.Xc.BuildingBlocks]:aM,[o.Xc.StructureSearch]:aM,[o.Xc.B2B]:aM,[o.Xc.Chromatograms]:ak};var aL=t(71373),aB=t(14445);let aF=(0,m.makeStyles)()(e=>({searchResultsSortBarContainer:{display:"flex",alignItems:"center"},selectedItemStyle:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold,boxShadow:"none","& .MuiSvgIcon-root":{top:10,fontSize:e.typography.pxToRem(12),"& svg":{color:e.palette.primary.main}},"& .MuiSelect-select:focus":{background:"none"},marginLeft:e.spacing(2)},sortByStyle:{fontSize:e.typography.pxToRem(16)}})),aw=()=>{let{classes:e}=aF(),[a,,t]=ih(),{formatMessage:r}=(0,B.A)(),l=(0,n.useMemo)(()=>aO[a.focus].map(e=>({...e,label:r(e.label)})),[r,a.focus]);return(0,i.jsxs)("div",{className:e.searchResultsSortBarContainer,children:[(0,i.jsx)("div",{className:e.sortByStyle,children:(0,i.jsx)(_.A,{...Y.A.SORT_BY})}),":",(0,i.jsx)(aL.A,{value:a.sort,onChange:e=>{t.handleSortChange(e.target.value)},id:"srp-sort-options",variant:"standard",disableUnderline:!0,className:e.selectedItemStyle,IconComponent:aB.bD,children:l.map(e=>{let{value:a,label:t}=e;return(0,i.jsx)(aI.A,{value:a,id:"sort-option-".concat(a),children:t},a)})})]})};var aD=t(86024),aW=t(30877),aU=t(40032);let aH=(0,m.makeStyles)()(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)"}})),aG=e=>{let{renderHeading:a,children:t}=e,{classes:r,cx:l}=aH(),[s,o]=(0,n.useState)(!1),d=l(r.icon,{[r.iconIsOpen]:s});return(0,i.jsxs)("div",{className:r.root,"data-testid":"mobile-facet-group",children:[(0,i.jsxs)(v.A,{onClick:()=>{o(!s)},className:r.heading,children:[a(),(0,i.jsx)(aU.A,{className:d})]}),(0,i.jsx)(aW.A,{in:s,children:(0,i.jsx)("div",{className:r.body,children:t})})]})};var az=t(70813),aY=t(91496),aV=t(14810);let aq=(0,m.makeStyles)()(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)"}})),aK=e=>{let{facet:a}=e,{classes:t,cx:r}=aq(),l=(0,B.A)(),[,s,d]=ih(),c=(s.find(e=>{let{key:t}=e;return t===a.key})||{options:[]}).options,[u,p]=(0,n.useState)(!1),m=r(t.icon,{[t.iconIsOpen]:u}),g=u?a.options:a.options.slice(0,a.numToDisplay||6),h="facet_shipping"===a.key,x=e=>{switch(e){case o.u2.SameDay:return(0,i.jsx)(e_.A,{color:"secondary",fontSize:"inherit"});case o.u2.FreeFreight:return(0,i.jsx)(ej.A,{color:"secondary"});default:return null}},A=c.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,"data-testid":"mobile-filter-facets",children:g.map(e=>{let n=A.indexOf(e.value)>=0;return(0,i.jsx)("div",{className:t.vr2,children:(0,i.jsx)(az.A,{classes:{root:t.labelRoot},checked:n,control:(0,i.jsx)(aY.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)(aV.A,{})}),onClick:()=>{d.handleSelectedFacetChange({key:a.key,options:[e.value],action:n?im.Remove:im.Add,multiSelect:a.multiSelect||!1,prefix:a.prefix})}}),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q.A,{value:"".concat(e.value," (").concat(e.count,")")}),h&&(0,i.jsx)("span",{className:t.shippingIcon,children:x(e.value)})]})})},e.value)})}),(a.options.length>g.length||u)&&(0,i.jsxs)(v.A,{onClick:()=>p(!u),"aria-expanded":u,"aria-label":u?l.formatMessage(S.SHOW_LESS):l.formatMessage(S.SHOW_MORE),className:t.showMore,children:[u?(0,i.jsx)(_.A,{...S.SHOW_LESS}):(0,i.jsx)(_.A,{...S.SHOW_MORE}),(0,i.jsx)(aU.A,{className:m})]})]})},aQ=(0,m.makeStyles)()(e=>({body:{overflow:"scroll",padding:e.spacing(6,4)},footer:{padding:e.spacing(6,4)}})),aX=e=>{let{facets:a,isStructureSearch:t,isModalOpen:r,onModalClose:l}=e,{classes:s}=aQ();return(0,i.jsx)(aD.A,{open:r,"data-testid":"mobile-filter-and-facet-modal",onClose:l,renderTitle:()=>(0,i.jsx)(A.A,{variant:"h2",component:"h2",children:(0,i.jsx)(_.A,{id:"FILTER",defaultMessage:"Filter"})}),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:s.body,children:[(0,i.jsx)(en,{facets:a,isStructureSearch:t}),!!a&&a.map(e=>(0,i.jsx)(n.Fragment,{children:(0,i.jsx)(aG,{renderHeading:()=>(0,i.jsx)(A.A,{variant:"body1",component:"h2",children:(0,i.jsx)("b",{children:(0,i.jsx)($,{id:e.key.toUpperCase()})})}),children:(0,i.jsx)(aK,{facet:e,allFacets:a})})},e.key))]}),(0,i.jsx)("div",{className:s.footer,children:(0,i.jsx)(y.A,{variant:"contained",color:"primary",size:"large",fullWidth:!0,onClick:l,children:(0,i.jsx)(_.A,{id:"DONE",defaultMessage:"Done"})})})]})})},a$=(0,m.makeStyles)()(e=>({mobileMenu:{display:"flex",flexDirection:"column",gap:e.spacing(2)},topRow:{display:"flex",alignItems:"center",justifyContent:"space-between"},filterButton:{fontSize:e.typography.pxToRem(14),color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold,display:"flex",alignItems:"center"},filterIcon:{fontSize:e.typography.pxToRem(24),marginRight:e.spacing(1)},bottomRow:{display:"flex",fontSize:e.typography.pxToRem(12),fontWeight:400,[e.breakpoints.down("sm")]:{fontWeight:600}},filterTextStyle:{fontWeight:700,fontSize:e.typography.pxToRem(14)}})),aZ=()=>{var e;let{classes:a}=a$(),[t]=ih(),{data:r,isStructureSearch:l,metadata:s}=ep(),d=(0,F.useRouter)(),c=(0,o.h2)({focus:d.query.focus,term:d.query.term}),u=t.page?Number(t.page):1,[p,m]=(0,n.useState)(!1),g=()=>{m(!1)};return(0,i.jsxs)("div",{className:a.mobileMenu,"data-testid":"mobile-srp-menu",children:[(0,i.jsxs)("div",{className:a.topRow,children:[(0,i.jsxs)(v.A,{className:a.filterButton,onClick:e=>{e.preventDefault(),m(!0)},children:[(0,i.jsx)(aS.A,{className:a.filterIcon,fontSize:"inherit",color:"primary"}),(0,i.jsx)("div",{className:a.filterTextStyle,children:(0,i.jsx)(_.A,{id:"FILTER",defaultMessage:"Filter"})})]}),(0,i.jsx)(aw,{})]}),(0,i.jsx)("div",{className:a.bottomRow,children:(0,i.jsx)(aN,{currPage:u,perPage:o.ft,resultCount:s.count||0,searchTerm:c.term,searchType:c.focus})}),(0,i.jsx)(aX,{facets:null==r?void 0:null===(e=r.getNewProductSearchResults)||void 0===e?void 0:e.facets,isStructureSearch:l,isModalOpen:p,onModalClose:()=>g(),showSortBar:!0})]})},aJ=(0,m.makeStyles)()(e=>({desktopMenu:{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"2rem",gap:e.spacing(1)},leftSection:{display:"flex",alignItems:"center"},rightSection:{display:"flex",alignItems:"center"}})),a0=()=>{let{classes:e}=aJ(),{metadata:a}=ep(),[t]=ih(),n=(0,F.useRouter)(),r=(0,o.h2)({focus:n.query.focus,term:n.query.term}),l=t.page?Number(t.page):1;return(0,i.jsxs)("div",{className:e.desktopMenu,children:[(0,i.jsx)("div",{className:e.leftSection,children:(0,i.jsx)(aN,{currPage:l,perPage:o.ft,resultCount:a.count||0,searchTerm:r.term,searchType:r.focus})}),(0,i.jsx)("div",{className:e.rightSection,children:(0,i.jsx)(aw,{})})]})},a1=()=>{let{metadata:e}=ep(),{isMobile:a}=(0,Z.Qs)();return e?(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)(aZ,{}):(0,i.jsx)(a0,{})}):null};var a2=t(76647),a4=t(46129),a7=t(5005),a3=t(43957);let a8=(0,m.makeStyles)()(e=>({compareProductContainer:{background:e.palette.background.grey,fontSize:e.typography.pxToRem(14),paddingRight:e.spacing(2),marginTop:e.spacing(-2),display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},checkbox:{background:e.palette.background.default}})),a5=e=>{let{productKey:a,brandKey:t,productName:r,productNumber:l,images:s,catalogType:o}=e,{classes:d}=a8(),[c,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>u(!0),[]);let{compareProducts:p,addCompareProduct:m,removeCompareProduct:g}=(0,f.Zn)(),h=p.some(e=>{let{productKey:i,brandKey:n,catalogType:r}=e;return i===a&&n===t&&r===o}),x=!h&&p.length>=f.NN,A={productKey:a,productNumber:l,brandKey:t,images:s,catalogType:o};return(0,i.jsxs)("span",{className:d.compareProductContainer,children:[(0,i.jsx)(a3.A,{className:d.checkbox,"aria-label":"Compare ".concat(r),checked:c&&h,onChange:e=>{e.target.checked?m(A):g(A)},disabled:x}),(0,i.jsx)(_.A,{id:"COMPARE_THIS_PRODUCT",defaultMessage:"Compare This Product"})]})};var a6=t(49995),a9=t(6315);let te=(0,m.makeStyles)()(e=>({container:{marginTop:e.spacing(4)},row:{marginBottom:e.spacing(1)},label:{fontWeight:e.typography.fontWeightMedium,color:e.palette.common.black,wordBreak:"break-word",maxWidth:"90px",textTransform:"capitalize"},content:{overflowWrap:"anywhere",wordBreak:"break-word"},value:{fontWeight:e.typography.fontWeightRegular},geneSequence:{fontFamily:e.typography.fontFamily}})),ta=e=>{let{keyAttributes:a=[]}=e,{classes:t}=te();return a.length?(0,i.jsx)(p.A,{container:!0,className:t.container,"data-testid":"new-srp-key-attributes",children:a.map((e,a)=>{let n=e.values,r="string"==typeof e.label&&e.label.toLowerCase().includes("sequence");return(0,i.jsx)(p.A,{className:t.row,item:!0,xs:12,children:(0,i.jsxs)(p.A,{container:!0,children:[(0,i.jsx)(p.A,{item:!0,xs:6,children:(0,i.jsxs)(A.A,{variant:"caption",component:"div",className:t.label,children:[(0,i.jsx)(Q.A,{value:e.label}),":"]})}),(0,i.jsx)(p.A,{item:!0,xs:6,children:(0,i.jsx)(A.A,{variant:"caption",component:"div",className:t.content,children:n.length>0?n.map((e,a)=>e?(0,i.jsx)(a9.A,{values:[e],className:(0,a6.A)(t.value,{[t.geneSequence]:r})},a):(0,i.jsx)("span",{className:t.value,children:"—"},a)):(0,i.jsx)("span",{className:t.value,children:"—"})})})]})},a)})}):null};var tt=t(22571),ti=t(30029);let tn=(0,m.makeStyles)()(e=>({triggerLink:{fontSize:"14px",fontFamily:"inherit",fontWeight:"inherit",lineHeight:"inherit","&:hover":{cursor:"pointer"}},linkContent:{cursor:"pointer",display:"flex",alignItems:"center",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.pxToRem(16),color:e.palette.primary.main,"&:hover":{cursor:"pointer",color:e.palette.primary.dark}},linkIconContainer:{display:"flex",height:18,width:18,fontSize:e.typography.pxToRem(18),marginRight:e.spacing(2)}})),tr=e=>{let{productNumber:a,brandKey:t,sdsLanguages:r}=e,{classes:l,cx:s}=tn(),o=[...new Set(r.map(e=>e.locale.toUpperCase().split("_")[0]))],[d,c]=(0,n.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ez.A,{component:"button","data-testid":"sds-".concat(t).concat(a),id:"sds-".concat(t).concat(a),"aria-describedby":"sds",onClick:e=>{e.preventDefault(),c(!0)},color:"secondary",className:s(l.triggerLink),tabIndex:0,children:(0,i.jsx)(()=>(0,i.jsxs)("span",{className:l.linkContent,children:[(0,i.jsx)("span",{className:l.linkIconContainer,children:(0,i.jsx)(tt.A,{"data-testid":"sds-icon"})}),(0,i.jsx)(_.A,{id:"SDS",defaultMessage:"SDS"})]}),{})}),(0,i.jsx)(ti.A,{open:d,setModalOpen:c,brands:[t],productNumber:a,sdsLanguages:o})]})},tl=(0,m.makeStyles)()(e=>({button:{padding:e.spacing(2,8)},caret:{fontSize:e.typography.pxToRem(9),marginLeft:e.spacing(1),marginTop:e.spacing(.5)}})),ts=e=>{let{expanded:a,onToggle:t}=e,{classes:n}=tl();return(0,i.jsxs)(y.A,{variant:"outlined",className:n.button,color:"primary",onClick:t,"data-testid":"srp-view-options-button",children:[a?(0,i.jsx)(_.A,{id:"HIDE_OPTIONS",defaultMessage:"Hide Options"}):(0,i.jsx)(_.A,{id:"VIEW_OPTIONS",defaultMessage:"View Options"}),a?(0,i.jsx)(aB.Sw,{className:n.caret,"data-testid":"caret-up-icon"}):(0,i.jsx)(aB.bD,{className:n.caret,"data-testid":"caret-down-icon"})]})};var to=t(29773),td=t(32588);let tc=(e,a)=>{let[t,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{e&&i(e[0])},[e,a]),{selectedMaterial:t,setSelectedMaterial:i,handleSelect:a=>{let t=null==e?void 0:e.find(e=>e.materialNumber===a);i(null!=t?t:null)}}};var tu=t(2184),tp=t(88694),tm=t(89212),tg=t(17685);let th=e=>{var a,t;let i=window.navigator.userAgent,r=(0,tm.A)(i),{userSession:{country:l}}=(0,tg.j)(),{isMultiCountryUser:s,isDTAQZuCustomer:c,isBlueErpIntegrationEnabled:u,getSitePreference:p}=(0,aT.iZ)(),[m]=(0,n.useState)(l),g=(0,eH.L)(eG.US.countryCode),h=e.isMarketplace&&!g,[x,{data:A,loading:y,error:v}]=(0,tp.Gb)({fetchPolicy:c?"no-cache":"cache-first"}),[f,{data:b,loading:T,error:C}]=(0,tu.Fo)(),E=s?null==b?void 0:null===(a=b.getPricingForMultiCountryProducts)||void 0===a?void 0:a.find(e=>(null==e?void 0:e.country)===m):null==A?void 0:A.getPricingForProduct,j=null==e?void 0:e.erp_type,_=u&&j&&(null==j?void 0:j.length)>0,N=null==e?void 0:e.isMarketplace,S=null==e?void 0:null===(t=e.productNumber)||void 0===t?void 0:t.startsWith("CB_"),I=p(aT.VD.CatalogFilter),R=()=>{var a;let t={variables:{productNumber:null==e?void 0:e.productNumber,materialIds:null==e?void 0:e.materialIds,brand:null==e?void 0:null===(a=e.brand)||void 0===a?void 0:a.key,quantity:1,catalogType:N?d.Mh.Marketplace:(0,o.vN)(null==e?void 0:e.catalogId),orgId:I,checkForPb:!0,displaySDS:S,dealerId:"",checkBuyNow:!0,productKey:null==e?void 0:e.productKey,cachedPriceOnly:r,..._&&{erpType:j}}},i={variables:{...t.variables,cachedPriceOnly:r}};s&&!h?f(t):h||x(i)};(0,n.useEffect)(()=>{(null==e?void 0:e.productNumber)&&!(null==e?void 0:e.paMessage)&&R()},[s,f,x,null==e?void 0:e.productNumber,null==e?void 0:e.paMessage]);let{materialPricing:k}=null!=E?E:{},M=v||C;return{materialPricing:k,pricingError:M,pricingLoading:(y||T)&&!M,countryCode:m,isMultiCountryUser:s}};var tx=t(47801),tA=t(48573);let ty=()=>{let[e,a]=(0,n.useState)(null),t=(0,tA.H)(tx.Lr,"PDP_VIEW_PREFERENCE");return(0,n.useEffect)(()=>{let e=t.get();if(e)return a(e);a(c.Z.grid)},[]),{view:e,handleSelectView:e=>{a(e),t.set(e)}}};var tv=t(13261),tf=t(27136),tb=t(2991),tT=t(70336),tC=t(24315);let tE=(0,m.makeStyles)()(e=>({loaderContainer:{margin:e.spacing(2,0,5,0),[e.breakpoints.down("sm")]:{margin:e.spacing(1,0,3,0)}},chipContainer:{display:"inline-block",margin:e.spacing(2,2,5,0),[e.breakpoints.down("sm")]:{display:"flex",flexWrap:"wrap",margin:e.spacing(1,0,3,0),gap:e.spacing(1.5),justifyContent:"space-between"}},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)},[e.breakpoints.down("sm")]:{margin:0,minWidth:"calc(50% - 6px)",maxWidth:"calc(50% - 6px)",height:"auto",padding:e.spacing(2,1),"& .MuiChip-label":{padding:e.spacing(1),fontSize:e.typography.pxToRem(12),display:"flex",flexDirection:"column",alignItems:"center",whiteSpace:"normal",lineHeight:1.2}}},packSize:{fontSize:e.typography.pxToRem(16),lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightBold,[e.breakpoints.down("sm")]:{fontSize:e.typography.pxToRem(14),lineHeight:e.typography.pxToRem(16),marginBottom:e.spacing(.5)}},price:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightRegular,color:e.palette.common.black,[e.breakpoints.down("sm")]:{fontSize:e.typography.pxToRem(12),"& .MuiTypography-body2":{fontSize:e.typography.pxToRem(12),lineHeight:1.2}}},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},chipSelectedUnavailable:{borderColor:e.palette.primary.main},loader:{backgroundColor:e.palette.grey[400],borderRadius:5,height:50,width:88,[e.breakpoints.down("sm")]:{width:100}}})),tj=e=>{let{items:a,loading:t,onSelect:n,selectedChip:r,unavailableChips:l,loadCount:s=6}=e,{classes:o,cx:d}=tE();return t?(0,i.jsx)(p.A,{container:!0,spacing:2,className:o.loaderContainer,children:Array(s).fill({}).map((e,a)=>(0,i.jsx)(p.A,{item:!0,xs:6,sm:4,md:3,lg:2,children:(0,i.jsx)(eP.A,{className:o.loader,style:{animationDelay:"".concat(.1*a,"s")}})},a))}):(0,i.jsx)("div",{className:o.chipContainer,children:a.map((e,a)=>{var t,s;let c=(null==e?void 0:e.value)===r,u=null==l?void 0:l.includes(null==e?void 0:e.value),p=null==e?void 0:null===(t=e.availabilities)||void 0===t?void 0:t.some(e=>null==e?void 0:e.displayInquireLink),m=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q.A,{className:o.packSize,value:null==e?void 0:null===(s=e.packSize)||void 0===s?void 0:s.toUpperCase()}),(null==e?void 0:e.hidePriceMessageKey)?null:(0,i.jsx)("div",{className:o.price,children:p?(0,i.jsx)(A.A,{variant:"body2",children:(0,i.jsx)(_.A,{id:"INQUIRE",defaultMessage:"Inquire"})}):(0,i.jsx)(A.A,{variant:"body2",children:(0,i.jsx)(N.Gr,{currency:null==e?void 0:e.currency,currencyDisplay:"symbol",style:"currency",value:null==e?void 0:e.price})})})]});return(0,i.jsx)(tC.A,{label:m,variant:"outlined",clickable:!0,onClick:()=>n(null==e?void 0:e.value),className:d(o.chip,{[o.chipSelected]:c,[o.chipUnavailable]:u,[o.chipSelectedUnavailable]:c&&u})},"".concat(a,"-").concat(null==e?void 0:e.packSize,"-").concat(null==e?void 0:e.value))})})},t_=(0,m.makeStyles)()(e=>({titleSection:{display:"flex",alignItems:"center",minWidth:"100%",justifyContent:"space-between"},toggleContainer:{display:"flex",alignItems:"center",justifyContent:"flex-end"},toggleLabel:{fontSize:e.typography.pxToRem(12),marginRight:e.spacing(2)},viewToggleButton:{borderRadius:"2px",padding:"4px",minWidth:"30px",border:"1px solid ".concat(e.palette.grey[400])}})),tN=e=>{var a,t;let{materialPricing:n,pricingLoading:r,selectedMaterial:l,setSelectedMaterial:s,handleSelect:o,view:d,handleSelectView:u}=e,{classes:m}=t_();return(0,i.jsxs)("div",{children:[(0,i.jsxs)(p.A,{item:!0,md:8,className:m.titleSection,children:[(0,i.jsx)(A.A,{variant:"h3",children:(0,i.jsx)(_.A,{id:"SELECT_A_SIZE",defaultMessage:"Select a Size"})}),(0,i.jsxs)(p.A,{item:!0,md:4,className:m.toggleContainer,children:[(0,i.jsx)(A.A,{component:"span",className:m.toggleLabel,children:(0,i.jsx)(_.A,{id:"CHANGE_VIEW",defaultMessage:"Change View"})}),(0,i.jsxs)(tv.A,{size:"small",children:[(0,i.jsx)(y.A,{variant:d===c.Z.grid?"contained":void 0,color:"primary",onClick:()=>u(c.Z.grid),className:m.viewToggleButton,children:(0,i.jsx)(tf.A,{})}),(0,i.jsx)(y.A,{variant:d===c.Z.list?"contained":void 0,color:"primary",onClick:()=>u(c.Z.list),className:m.viewToggleButton,children:(0,i.jsx)(tb.A,{})})]})]})]}),d===c.Z.grid?(0,i.jsx)(tj,{items:null!==(a=null==n?void 0:n.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!==a?a:[],selectedChip:null!==(t=null==l?void 0:l.materialNumber)&&void 0!==t?t:"",loading:r,loadCount:4,onSelect:o}):(0,i.jsx)(tT.A,{loading:r,materialPricing:n,onRowClick:e=>{s(e)},rowSelected:e=>(null==e?void 0:e.materialNumber)===(null==l?void 0:l.materialNumber)})]})};var tS=t(15329),tI=t(48504);let tR=(0,m.makeStyles)()(e=>({mobileViewToggle:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(2),padding:e.spacing(1,0)},mobileTitle:{fontSize:e.typography.pxToRem(18),fontWeight:"bold"},mobileToggleControls:{display:"flex",alignItems:"center",gap:e.spacing(1)},mobileToggleLabel:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightRegular,marginRight:e.spacing(1)},mobileViewToggleButton:{borderRadius:"2px",padding:"8px",minWidth:"40px",border:"1px solid ".concat(e.palette.grey[400])}})),tk=e=>{let{view:a,handleSelectView:t}=e,{classes:n}=tR();return(0,i.jsxs)("div",{className:n.mobileViewToggle,children:[(0,i.jsx)(A.A,{className:n.mobileTitle,children:(0,i.jsx)(_.A,{id:"SELECT_A_SIZE",defaultMessage:"Select a Size"})}),(0,i.jsxs)("div",{className:n.mobileToggleControls,children:[(0,i.jsx)(A.A,{className:n.mobileToggleLabel,children:(0,i.jsx)(_.A,{id:"CHANGE_VIEW",defaultMessage:"Change View"})}),(0,i.jsxs)(tv.A,{size:"small",children:[(0,i.jsx)(y.A,{variant:a===c.Z.list?"contained":void 0,color:"primary",onClick:()=>t(c.Z.list),className:n.mobileViewToggleButton,children:(0,i.jsx)(tb.A,{})}),(0,i.jsx)(y.A,{variant:a===c.Z.grid?"contained":void 0,color:"primary",onClick:()=>t(c.Z.grid),className:n.mobileViewToggleButton,children:(0,i.jsx)(tf.A,{})})]})]})]})};var tM=t(2531),tP=t(44797),tO=t(3848),tL=t(19490);let tB=(0,m.makeStyles)()(e=>({productCard:{marginBottom:e.spacing(2),border:"1px solid ".concat(e.palette.grey[300]),borderRadius:e.spacing(1),cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:e.shadows[2]}},selectedCard:{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:e.palette.primary.light},cardContent:{padding:e.spacing(2),"&:last-child":{paddingBottom:e.spacing(2)}},cardHeader:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:e.spacing(1)},packageSize:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium},listPrice:{fontSize:e.typography.pxToRem(14)},strikePrice:{fontSize:e.typography.pxToRem(12),textDecoration:"line-through",color:e.palette.text.secondary,marginLeft:e.spacing(2)},availability:{fontSize:e.typography.pxToRem(16)}})),tF=e=>{var a,t;let{material:n,isSelected:r,onSelect:l}=e,{classes:s}=tB(),o=(null==n?void 0:null===(a=n.packageSize)||void 0===a?void 0:a.trim())||(null==n?void 0:n.materialNumber),d=null==n?void 0:n.availabilities,c=d&&d.length>0?d[0]:null;return(0,i.jsx)(tM.A,{className:"".concat(s.productCard," ").concat(r?s.selectedCard:""),onClick:l,children:(0,i.jsxs)(tP.A,{className:s.cardContent,children:[(0,i.jsxs)("div",{className:s.cardHeader,children:[(0,i.jsx)(A.A,{className:s.packageSize,children:o}),(0,i.jsx)("div",{children:(0,i.jsx)(tO.A,{material:n,priceClass:s.listPrice,listPriceClass:s.strikePrice})})]}),c&&(0,i.jsxs)(A.A,{component:"span",className:s.availability,children:[c.quantity&&c.quantity>0?(0,i.jsx)(_.A,{id:"IN_STOCK",defaultMessage:"In Stock"}):(0,i.jsx)(_.A,{id:"OUT_OF_STOCK_LABEL",defaultMessage:"Out of Stock"}),"From ",c.plantLoc]}),(null===(t=n.promotionalMessage)||void 0===t?void 0:t.messageKey)&&(0,i.jsx)(eP.A,{mt:1,children:(0,i.jsx)(tL.A,{promotional:n.promotionalMessage})})]})})};var tw=t(44878);let tD=(0,m.makeStyles)()(e=>({skeletonCard:{marginBottom:e.spacing(2),border:"1px solid ".concat(e.palette.grey[300]),borderRadius:e.spacing(1)},skeletonCardContent:{padding:e.spacing(2),"&:last-child":{paddingBottom:e.spacing(2)}},skeletonHeader:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:e.spacing(1)}})),tW=()=>{let{classes:e}=tD();return(0,i.jsx)(tM.A,{className:e.skeletonCard,children:(0,i.jsxs)(tP.A,{className:e.skeletonCardContent,children:[(0,i.jsxs)("div",{className:e.skeletonHeader,children:[(0,i.jsx)(tw.A,{variant:"text",width:"40%",height:24}),(0,i.jsx)(tw.A,{variant:"text",width:"25%",height:20})]}),(0,i.jsx)(tw.A,{variant:"text",width:"60%",height:16})]})})},tU=(0,m.makeStyles)()(e=>({viewAllButton:{display:"flex",justifyContent:"center",marginTop:e.spacing(2),marginBottom:e.spacing(2)},viewAllButtonText:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium,textTransform:"none",padding:e.spacing(2),"& .MuiButton-endIcon":{marginLeft:e.spacing(.5)}}})),tH=e=>{var a,t;let{materialPricing:n,pricingLoading:r,selectedMaterial:l,setSelectedMaterial:s,view:o,showAllOptions:d,setShowAllOptions:u,setIsDrawerOpen:p}=e,{classes:m}=tU();if(r&&o===c.Z.list)return(0,i.jsx)("div",{children:Array.from({length:3}).map((e,a)=>(0,i.jsx)(tW,{},a))});let g=e=>{s(e),p(!0)},h=o===c.Z.grid?6:3,x=d?n:null==n?void 0:n.slice(0,h);return(0,i.jsxs)("div",{children:[o===c.Z.grid?(0,i.jsx)(tj,{items:null!==(a=null==x?void 0:x.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!==a?a:[],selectedChip:null!==(t=null==l?void 0:l.materialNumber)&&void 0!==t?t:"",loading:r,loadCount:2,onSelect:e=>{let a=null==n?void 0:n.find(a=>a.materialNumber===e);a&&g(a)}}):null==x?void 0:x.map(e=>(0,i.jsx)(tF,{material:e,isSelected:(null==l?void 0:l.materialNumber)===e.materialNumber,onSelect:()=>g(e)},e.materialNumber)),n&&n.length>h&&(0,i.jsx)("div",{className:m.viewAllButton,children:(0,i.jsx)(y.A,{onClick:()=>u(!d),className:m.viewAllButtonText,endIcon:d?(0,i.jsx)(eh.A,{}):(0,i.jsx)(ex.A,{}),children:d?(0,i.jsx)(_.A,{id:"HIDE_OPTIONS",defaultMessage:"Hide Options"}):(0,i.jsx)(_.A,{id:"VIEW_ALL_OPTIONS",defaultMessage:"View All Options ({count})",values:{count:n.length}})})})]})},tG=(0,m.makeStyles)()(e=>({mobileContainer:{padding:e.spacing(1)},mobileSignInBanner:{margin:e.spacing(3,0,3,0)},mobileDrawer:{"& .MuiDrawer-paper":{borderTopLeftRadius:e.spacing(2),borderTopRightRadius:e.spacing(2),maxHeight:"80vh"}},drawerHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(2),borderBottom:"1px solid ".concat(e.palette.divider)},drawerTitle:{fontSize:e.typography.pxToRem(18),fontWeight:"bold"},drawerContent:{padding:e.spacing(2)}})),tz=e=>{var a;let{materialPricing:t,pricingError:n,pricingLoading:r,selectedMaterial:l,setSelectedMaterial:s,view:o,handleSelectView:d,showAllOptions:c,setShowAllOptions:u,isDrawerOpen:p,setIsDrawerOpen:m,product:g,countryCode:h,isMultiCountryUser:y}=e,{classes:v}=tG();return(0,i.jsxs)("div",{className:v.mobileContainer,children:[(0,i.jsx)("div",{className:v.mobileSignInBanner,children:(0,i.jsx)(td.A,{})}),(0,i.jsx)(tk,{view:o,handleSelectView:d}),(0,i.jsx)(tH,{materialPricing:t,pricingLoading:r,selectedMaterial:l,setSelectedMaterial:s,view:o,showAllOptions:c,setShowAllOptions:u,setIsDrawerOpen:m}),(0,i.jsxs)(x.Ay,{anchor:"bottom",open:p,onClose:()=>m(!1),className:v.mobileDrawer,children:[(0,i.jsxs)("div",{className:v.drawerHeader,children:[(0,i.jsx)(A.A,{className:v.drawerTitle,children:(null==l?void 0:null===(a=l.packageSize)||void 0===a?void 0:a.trim())||(null==l?void 0:l.materialNumber)}),(0,i.jsx)(tS.A,{onClick:()=>m(!1),size:"small",children:(0,i.jsx)(tI.A,{})})]}),(0,i.jsx)("div",{className:v.drawerContent,children:(0,i.jsx)(to.A,{isMultiCountryUser:y,loading:!1,error:n,material:l,product:g,countryCode:h,showPriceDisclaimer:!0})})]})]})},tY=(0,m.makeStyles)()(e=>({viewOptionsContainer:{marginTop:e.spacing(4)},signInBanner:{width:"100%",[e.breakpoints.up("sm")]:{marginBottom:e.spacing(3)}}})),tV=e=>{let{product:a}=e,{classes:t}=tY(),{isMobile:r}=(0,Z.Qs)(),[l,s]=(0,n.useState)(!1),[o,d]=(0,n.useState)(!1),{materialPricing:c,pricingError:u,pricingLoading:m,countryCode:g,isMultiCountryUser:h}=th(a),{view:x,handleSelectView:A}=ty(),{selectedMaterial:y,setSelectedMaterial:v,handleSelect:f}=tc(c,u),b={materialPricing:c,pricingError:u,pricingLoading:m,selectedMaterial:y,setSelectedMaterial:v,handleSelect:f,view:x,handleSelectView:A,showAllOptions:o,setShowAllOptions:d};return r?(0,i.jsx)(tz,{...b,isDrawerOpen:l,setIsDrawerOpen:s,product:a,countryCode:g,isMultiCountryUser:h}):(0,i.jsxs)(p.A,{container:!0,className:t.viewOptionsContainer,justifyContent:"space-between",spacing:3,children:[(0,i.jsx)(p.A,{item:!0,className:t.signInBanner,children:(0,i.jsx)(td.A,{})}),(0,i.jsx)(p.A,{item:!0,md:9,children:(0,i.jsx)(tN,{...b})}),(0,i.jsx)(p.A,{item:!0,md:3,children:(0,i.jsx)(to.A,{isMultiCountryUser:h,loading:!1,error:u,material:y,product:a,countryCode:g,showPriceDisclaimer:!0})})]})},tq=(0,m.makeStyles)()(e=>({responsiveProductContainer:{margin:0,padding:e.spacing(6,0)},thumbnailWrapper:{maxHeight:88,maxWidth:88,width:88,height:88,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),fontSize:e.typography.pxToRem(8),lineHeight:0},thumbnail:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},casNumberContainer:{marginTop:e.spacing(2),display:"inline-flex",alignItems:"center"},casNumberLabel:{fontWeight:e.typography.fontWeightMedium,marginRight:e.spacing(4),fontSize:e.typography.pxToRem(12)},casNumber:{curser:"pointer",fontSize:e.typography.pxToRem(12)},topRowContainer:{justifyContent:"space-between"},productNumberStyle:{fontSize:e.typography.pxToRem(16),marginBottom:e.spacing(1)},productNumberMobileStyle:{marginTop:e.spacing(6)},productNameStyle:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold,color:e.palette.common.black},productNameMobileStyle:{marginTop:e.spacing(1)},productNameSuffixStyle:{color:e.palette.common.black,fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightRegular,paddingTop:e.spacing(4)},bottomRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},viewOptionsButton:{marginLeft:e.spacing(26)},mobileRightCol:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:e.spacing(1)},mobileButtonRow:{display:"flex",justifyContent:"center",marginTop:e.spacing(6)}})),tK=e=>{let{product:a,sdsLinkEnabled:t}=e;return t?(0,i.jsx)(tr,{productNumber:null==a?void 0:a.productNumber,brandKey:null==a?void 0:a.brandKey,sdsLanguages:null==a?void 0:a.sds}):null},tQ=e=>{var a,t,r;let{product:s}=e,{classes:d}=tq(),{isMobile:c}=(0,Z.Qs)(),u=(0,l.rd)(),[m,g]=(0,n.useState)(!1),h="88px",{substance:{casNumber:x,substanceId:y,substanceName:v},keyAttributes:f,brandKey:b,productKey:T,productNumber:C,productName:E,productNameSuffix:j}=s,N=u.query.catalogType,S=(0,o.h2)({focus:u.query.focus}),I=(0,o.vN)(null!=N?N:S.focus),R=(0,n.useMemo)(()=>l.aR.index(b,T),[b,T]),k=(0,n.useMemo)(()=>l.SL.index(y,I).as,[y,I]),M=(0,n.useMemo)(()=>{var e,a;return(null!==(a=null==s?void 0:null===(e=s.sds)||void 0===e?void 0:e.length)&&void 0!==a?a:0)>0},[null==s?void 0:null===(a=s.sds)||void 0===a?void 0:a.length]),P=(0,n.useCallback)(()=>{g(e=>!e)},[]),O=null===(r=s.images)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.url,L=null==s?void 0:s.images;return c?(()=>{var e,a;return(0,i.jsxs)(p.A,{container:!0,className:d.responsiveProductContainer,children:[(0,i.jsx)(p.A,{item:!0,xs:3,children:(0,i.jsx)("div",{className:d.thumbnailWrapper,children:(0,i.jsx)(a4.N,{...R,children:(0,i.jsx)(a7.A,{className:d.thumbnail,alt:(null==s?void 0:null===(a=s.images)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.altText)||E,src:O,urls:O,sizes:h})})})}),(0,i.jsx)(p.A,{item:!0,xs:9,children:(0,i.jsxs)("div",{className:d.mobileRightCol,children:[(0,i.jsx)(a5,{productNumber:C,productKey:T,brandKey:b,productName:E,catalogType:I,images:L}),(0,i.jsx)(tK,{product:s,sdsLinkEnabled:M})]})}),(0,i.jsx)(p.A,{item:!0,xs:12,className:d.productNumberMobileStyle,children:(0,i.jsx)(a4.N,{...R,role:"link",className:d.productNumberStyle,children:C})}),(0,i.jsx)(p.A,{item:!0,xs:12,className:d.productNameMobileStyle,children:(0,i.jsx)(a4.N,{...R,role:"link",className:d.productNameStyle,children:(0,i.jsx)(Q.A,{value:E})})}),(0,i.jsx)(p.A,{item:!0,xs:12,className:d.productNameMobileStyle,children:(0,i.jsx)(a4.N,{...R,role:"link",className:d.productNameSuffixStyle,children:(0,i.jsx)(Q.A,{value:j})})}),(0,i.jsxs)(p.A,{container:!0,xs:12,className:d.mobileButtonRow,children:[(0,i.jsx)(ts,{expanded:m,onToggle:P}),m&&(0,i.jsx)(tV,{product:s})]})]})})():(()=>{var e,a;return(0,i.jsxs)(p.A,{container:!0,className:d.responsiveProductContainer,justifyContent:"space-between","data-testid":"new-srp-responsive-product",children:[(0,i.jsx)(p.A,{item:!0,md:9,children:(0,i.jsxs)(p.A,{container:!0,spacing:2,children:[(0,i.jsx)(p.A,{item:!0,md:3,className:d.thumbnailWrapper,children:(0,i.jsx)(a4.N,{...R,children:(0,i.jsx)(a7.A,{className:d.thumbnail,alt:(null==s?void 0:null===(a=s.images)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.altText)||E,src:O,urls:O,sizes:h})})}),(0,i.jsx)(p.A,{item:!0,md:9,children:(0,i.jsxs)(p.A,{container:!0,direction:"column",children:[(0,i.jsxs)(p.A,{container:!0,direction:"row",className:d.topRowContainer,children:[(0,i.jsx)(p.A,{item:!0,md:6,className:d.productNumberStyle,children:(0,i.jsx)(a4.N,{...R,role:"link",children:C})}),(0,i.jsx)(tK,{product:s,sdsLinkEnabled:M})]}),(0,i.jsx)(p.A,{item:!0,children:(0,i.jsx)(a4.N,{...R,role:"link",className:d.productNameStyle,children:(0,i.jsx)(Q.A,{value:E})})}),(0,i.jsx)(p.A,{item:!0,children:(0,i.jsx)(a4.N,{...R,role:"link",className:d.productNameSuffixStyle,children:(0,i.jsx)(Q.A,{value:j})})})]})})]})}),(0,i.jsxs)(p.A,{item:!0,md:3,children:[(0,i.jsx)(a5,{productNumber:C,productKey:T,brandKey:b,productName:E,catalogType:I,images:L}),x&&(0,i.jsxs)("div",{className:d.casNumberContainer,children:[(0,i.jsxs)(A.A,{className:d.casNumberLabel,children:[(0,i.jsx)(_.A,{id:"CAS_NUMBER",defaultMessage:"CAS Number"}),":"," "]}),(0,i.jsx)(a2.Ay,{className:d.casNumber,onClick:()=>{},children:x})]}),f&&(0,i.jsx)(ta,{keyAttributes:f})]}),(0,i.jsxs)(p.A,{container:!0,className:d.bottomRow,children:[(0,i.jsxs)(p.A,{item:!0,className:d.viewOptionsButton,children:[(0,i.jsx)(ts,{expanded:m,onToggle:P}),m&&(0,i.jsx)(tV,{product:s})]}),y&&(0,i.jsxs)(a4.N,{href:k,role:"link",children:[(0,i.jsx)(_.A,{id:"VIEW_ALL_PRODUCTS_UNDER",defaultMessage:"View All Products Under"})," ",(0,i.jsx)(Q.A,{value:v})]})]})]})})()},tX=(0,m.makeStyles)()((e,a,t)=>({searchResultsLoose:{[e.breakpoints.up("md")]:{marginTop:0}},noBorder:{border:"none"},results:{"&> *":{borderBottom:"solid 1px ".concat(e.palette.grey[400]),["&:has(+ .".concat(t.noBorder,")")]:{border:"none"}},[e.breakpoints.up("md")]:{"&> *:first-of-type":{},"&> *":{borderColor:e.palette.grey[600]},"&> *:last-child":{marginBottom:0}}}})),t$=()=>{let{classes:e}=tX(),a=(0,b.A)(),{data:t,hasResults:r,loading:l,queryTerm:s}=ep(),[o,d,c]=ih();console.info("parsedFacets: ",d);let u=(0,h.A)(a.breakpoints.up("md")),p=(0,eH.L)(eG.US.countryCode),m=u&&p,g=(a,t)=>{let r=a&&a.variants;return(0,i.jsx)(n.Fragment,{children:r&&m?(0,i.jsx)("div",{className:e.noBorder,children:(0,i.jsx)(as,{})}):r?(0,i.jsx)(an,{gene:a,inProductSRP:!0},t):(0,i.jsx)(tQ,{product:a})},t)};return(0,i.jsx)("div",{children:r||l?(0,i.jsx)("div",{className:e.searchResultsLoose,children:(()=>{var a,n,r,d;if(l)return(0,i.jsx)(ag,{});let u=null==t?void 0:null===(a=t.getNewProductSearchResults)||void 0===a?void 0:a.products;if(!u)return null;let p=Math.ceil((null!==(d=null==t?void 0:null===(r=t.getNewProductSearchResults)||void 0===r?void 0:null===(n=r.metadata)||void 0===n?void 0:n.count)&&void 0!==d?d:0)/10);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a1,{}),(0,i.jsxs)("div",{className:e.results,"data-testid":"new-product-search-results",children:[(0,i.jsx)(aj,{searchKey:s||"",variant:"dark",children:u.map(g)},s||""),(0,i.jsx)(aA,{currentPage:o.page,numPages:p,handleUpdatePage:c.handlePageChange})]})]})})()}):(0,i.jsx)(au,{})})},tZ=()=>(0,i.jsx)("p",{children:"This is Supporting Documents Tab"}),tJ=()=>(0,i.jsx)("p",{children:"This is Site Content Tab"}),t0=(0,m.makeStyles)()(e=>({vr8:{marginBottom:e.spacing(8)},tabs:{minHeight:35,marginTop:e.spacing(3),borderBottom:"solid 1px ".concat(e.palette.grey[600]),"& .Mui-selected":{color:e.palette.common.black,opacity:1},"& .MuiTabs-indicator":{backgroundColor:e.palette.common.black,height:"4px"},[e.breakpoints.up("sm")]:{minHeight:48,marginTop:e.spacing(5)}},tab:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,height:"fit-content",lineHeight:"unset",marginRight:e.spacing(4),minHeight:"unset",minWidth:"auto",opacity:1,textTransform:"none",padding:e.spacing(1,2),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(6),padding:e.spacing(1.5,3)}},tabpanel:{padding:0,marginTop:e.spacing(2),[e.breakpoints.up("md")]:{marginTop:e.spacing(4)}},divider:{marginBottom:e.spacing(2),[e.breakpoints.up("md")]:{marginBottom:e.spacing(4)},[e.breakpoints.up("lg")]:{marginBottom:e.spacing(8)}},mobileContainer:{padding:e.spacing(0,1),[e.breakpoints.up("md")]:{padding:0}},desktopContainer:{marginTop:e.spacing(8)}})),t1=()=>{var e;let{classes:a}=t0(),{formatMessage:t}=(0,B.A)(),{isMobile:n}=(0,Z.Qs)(),r=(0,l.rd)(),s=(null==r?void 0:null===(e=r.query)||void 0===e?void 0:e.focus)||o.nX.Products,d=[{value:o.nX.Products,label:t({id:"PRODUCTS",defaultMessage:"Products"}),content:(0,i.jsx)(t$,{})},{value:o.nX.SiteContent,label:t({id:"SITE_CONTENT",defaultMessage:"Site Content"}),content:(0,i.jsx)(tJ,{})},{value:o.nX.TechnicalDocuments,label:t({id:"SUPPORTING_DOCUMENTS",defaultMessage:"Supporting Documents"}),content:(0,i.jsx)(tZ,{})}];return(0,i.jsx)("div",{className:n?a.mobileContainer:a.desktopContainer,"data-testid":"search-result-tabs",children:(0,i.jsxs)(eD.Ay,{value:s,children:[(0,i.jsx)(eW.A,{onChange:(e,a)=>{r.replace({pathname:r.pathname,query:{...r.query,focus:a.toLowerCase()}},void 0,{shallow:!0})},"aria-label":"documentation-tabs-".concat(s),"data-testid":"documentation-tabs",className:a.tabs,variant:n?"scrollable":"standard",children:d.map((e,t)=>{let{value:n,label:r}=e;return(0,i.jsx)(ew.A,{label:r,value:n,className:a.tab,"aria-label":"".concat(r," tab")},t)})}),d.map((e,t)=>{let{value:r,content:l}=e;return(0,i.jsx)(eU.A,{value:r,className:a.tabpanel,children:(0,i.jsx)(p.A,{container:!0,spacing:n?1:2,justifyContent:"space-between",direction:"row",children:(0,i.jsx)(p.A,{item:!0,xs:12,md:12,className:n?a.vr8:void 0,children:l})})},t)})]})})};var t2=t(44788);let{publicRuntimeConfig:{featureFlags:t4}}=U()(),t7=(0,m.makeStyles)()(e=>({noResults:{marginTop:0},titleWrapper:{borderLeft:"4px solid ".concat(e.palette.rich.purple),paddingLeft:e.spacing(2.5)},title:{marginLeft:e.spacing(2),textTransform:"capitalize",[e.breakpoints.up("md")]:{marginLeft:0}},toggle:{position:"absolute",right:e.spacing(12)}})),t3=()=>{let{classes:e}=t7(),{hasResults:a,queryTerm:t}=ep();return(0,i.jsxs)("div",{className:a?void 0:e.noResults,children:[t4.newSrp&&(0,i.jsx)(t2.A,{className:e.toggle,currentExperience:"new"}),(0,i.jsx)("div",{className:e.titleWrapper,children:(0,i.jsx)(A.A,{variant:"h1",className:e.title,children:(0,i.jsx)(Q.A,{value:t})})}),(0,i.jsx)(t1,{})]})},t8=(0,m.makeStyles)()(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)},marginTop:e.spacing(5)}})),t5=()=>{let{classes:e}=t8(),{metadata:a}=ep();return(0,i.jsxs)(g.A,{className:e.searchContainer,children:[(0,i.jsxs)(u.A,{maxWidth:"lg",classes:{root:e.resultsContainer},children:[(0,i.jsx)(G,{metadata:a},"head"),(0,i.jsxs)(p.A,{container:!0,children:[(0,i.jsx)(p.A,{item:!0,md:3,children:(0,i.jsx)(eF,{})}),(0,i.jsx)(p.A,{item:!0,xs:12,md:9,children:(0,i.jsx)(t3,{})})]})]}),(0,i.jsx)(P,{})]})},t6=()=>(0,i.jsx)(em,{children:(0,i.jsx)(t5,{})});var t9=t(73170),ie=t(21341),ia=t(53590),it=t(62599);let ii=()=>{var e,a;let t,n,[r,l,s]=ih(),{data:o,loading:u,error:p}=(0,eJ.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)(ia.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)(it.A,{substance:e},a)):(0,i.jsx)(_.A,{...eq.A.SORRY_NO_MATCHES_FOUND_FOR,children:e=>(0,i.jsxs)(e8.A,{fontSize:20,mt:6,children:[e," ","'".concat(r.term,"'")]})}),t.numPages>1&&(0,i.jsx)(t9.A,{curPage:r.page,numPages:t.numPages,clickHandler:s.handlePageChange})]})):(0,i.jsx)(ie.A,{view:c.Z.list,error:p})})},ir=(0,m.makeStyles)()(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)}}})),il=()=>{let{classes:e}=ir();return(0,i.jsx)(g.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)(ii,{})})})})};var is=t(69569),io=t(30915),id=t.n(io),ic=t(23604);let{publicRuntimeConfig:{featureFlags:iu}}=U()(),ip=(0,n.createContext)((0,o.h2)({term:""}));var im=function(e){return e[e.Add=0]="Add",e[e.Remove=1]="Remove",e}({});let ig=(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)),ih=()=>{let e=(0,n.useContext)(ip),{getSitePreference:a}=(0,aT.iZ)(),t=a(aT.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:x,region:A}=e,y={term:e.term,selectedFacets:s,focus:d,type:c,sort:u,perpage:p,format:m,filters:g,image:h,catalogType:x,region:A},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]),C=(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(V.D)).concat((0,o.$c)({...e,page:1,selectedFacets:[i.query.facet],term:V.D}));return i.push(a)}return i.push(l.wO.index())},[i,e]),E=(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]):ig(s,u))},1:()=>{if(1===s.length&&r===V.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:C,handleSelectedFacetChange:E,handleAvailableForSaleChange:j,handleSortChange:_}],[e,b,T,C,E,j,_,N])},ix=e=>{let{searchQuery:a,srpExperience:t}=e;if(!a)return null;let n=a.orgId?il:iu.newSrp&&"new"===t?t6:c.A;return(0,i.jsx)(ip.Provider,{value:a,children:(0,i.jsx)(n,{})})},iA=e=>Array.isArray(e)?e[0]:e,iy=e=>e?Array.isArray(e)?e:[e]:[],iv=e=>void 0!==e?Array.isArray(e)?parseInt(e[0],10):parseInt(e,10):e;ix.getInitialProps=async e=>{let{query:a,res:t,asPath:i}=e;if(!a)return{searchQuery:null,srpExperience:"new"};let n=iA(a.term),c=(0,is.A)(e),u=c.get(ic.PK.SrpExperience)||"new",p=(0,e1.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,srpExperience:u};let m=iA(a.focus),g=iA(a.type),h=iy(a.facet),x=iv(a.page),A=iA(a.sort),y=iv(a.perpage),v=iy(a.filters),f=Array.isArray(a.format)?d.ZI[a.format[0]]:(null==a?void 0:a.format)&&d.ZI[a.format],b=iA(a.image),T=iA(a.orgId),C=iA(a.catalogType),E=iA(a.region),j=iA(a.dym),_=iA(a.debug),N="old"===u?d.RL.Substance:void 0,S=(0,r.A)(a,(e,a)=>!!a.match(/^(utm_|gclid|dclid|msclkid|fbclid)/i)),I=(0,o.h2)({term:n,selectedFacets:h,focus:m,type:g,page:x,sort:A,perPage:y,format:f,filters:v,image:b,orgId:T,catalogType:C,region:E,dym:j,debug:_,...N&&{group:N}}),R=n;(null==i?void 0:i.includes("structure-search"))&&(R="structure-search");let k=(0,e1.xS)((0,s.k)(c.getAll()),"".concat(l.wO.searchResults(R)).concat((0,o.e9)({...I,...S}))),M=(null==i?void 0:i.split("?"))||[],P=id().parse(M[1]),O="".concat(M[0],"?").concat(id().stringify(P,{indices:!1}));if(k.as!==O){if(t){let e=/[A-Z]/.test(k.as)?301:302;t.writeHead(e,{Location:k.as}),t.end()}else l.Ix.replace(k.href,k.as);return{searchQuery:null,srpExperience:u}}return{searchQuery:I,srpExperience:u}};let ib=ix},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 validFrom\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:()=>u});var i=t(37876);t(14232);var n=t(99220),r=t(7645),l=t(54753),s=t(8733),o=t(63752),d=t(8288);let c=(0,n.makeStyles)()(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])}})),u=e=>{let{country:a,brandKey:t,productNumber:n,productMessage:u,className:p}=e,{classes:m,cx:g}=c(),h=(0,o.mE)(),x=(0,d.ds)(a),A="PROCUT_ORDER_ON_AVANTI_SITE"===u?"http://avantilipids.com/ ":"PROCUT_ORDER_ON_ROCHE_SITE"===u?"http://sequencing.roche.com":"",y="PROCUT_ORDER_ON_AVANTI_SITE"===u?"avantilipids.com":"PROCUT_ORDER_ON_ROCHE_SITE"===u?"sequencing.roche.com":"";return(0,i.jsx)(r.A,{id:"product-info-message-".concat(t,"-").concat(n),className:g(m.productInfoMessage,p),children:(e=>{switch(e){case"PROCUT_ORDER_ON_AVANTI_SITE":case"PROCUT_ORDER_ON_ROCHE_SITE":return(0,i.jsx)(s.A,{...l.A[u],values:{companyName:h,countryName:x,link:(0,i.jsx)("a",{href:A,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})}})(u)})}},66201:(e,a,t)=>{t.d(a,{A:()=>h});var i=t(37876),n=t(14232),r=t(99220),l=t(64204),s=t(12197),o=t(30877),d=t(54203),c=t(44274),u=t(98546);let p=(0,r.makeStyles)()(e=>({root:{padding:e.spacing(5,4)},itemHeader:{display:"flex",flexDirection:"row"},headerWrapper:{textAlign:"left",width:"90%"},buttonWrapper:{display:"flex",width:20,flexGrow:0,"& > svg":{fontSize:e.typography.pxToRem(24)}},content:{padding:e.spacing(3,0,0,0)},toggleButton:{width:"100%",justifyContent:"space-between",display:"flex",alignItems:"flex-start",cursor:"pointer"},descriptionList:{marginBottom:e.spacing(1),"& > * + *":{marginTop:e.spacing(6)}}})),m=e=>{let{data:a,columns:t,accordionTitleColumn:r,accordionSubtitleColumn:m,accordionSecondaryTextColumn:g,headerProps:h,subheaderProps:x,renderFooter:A,onToggle:y,titleIsLink:v}=e,f=(0,n.useMemo)(()=>"accordion-title-".concat((0,u.A)()),[]),{classes:b}=p(),[T,C]=(0,n.useState)(!1),E=v?"div":l.A;return(0,i.jsxs)("div",{className:b.root,children:[(0,i.jsx)("div",{className:b.itemHeader,children:(0,i.jsxs)(E,{"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"&&(C(!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",...x,children:m.bodyElement(a,!0)}),g&&(0,i.jsx)(s.A,{component:"div",variant:"body2",...x,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)})}),A&&A(a,T)]})})]})},g=(0,r.makeStyles)()(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,{classes: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:()=>o});var i=t(37876),n=t(99220),r=t(14232),l=t(44509);let s=(0,n.makeStyles)()((e,a)=>{let{cursor:t,transform:i,transformOrigin:n}=a;return{container:{height:"100%",overflow:"hidden"},imageWrapper:{alignItems:"center",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"auto 100%",cursor:t,display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",overflow:"hidden",transform:i,transformOrigin:n,transition:"transform 0.3s ease-out"},zoomableImage:{maxHeight:"100%",maxWidth:"100%",willChange:"transform",width:"100%",height:"auto"}}}),o=e=>{let{image:a,customContainerStyles:t,customMouseOut:n,zoomStateChange:o}=e,[d,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(50),[m,g]=(0,r.useState)(50),h=(0,r.useRef)(null),{classes:x,cx:A}=s({cursor:"".concat(d?"zoom-out":"zoom-in"),transform:"scale(".concat(d?"2.5":"1",")"),transformOrigin:"".concat(u,"% ").concat(m,"%")}),y=()=>{c(!d),p(50),g(50),o&&o(!d)};return(0,i.jsx)("div",{className:A(x.container,t),onBlur:()=>c(!1),onMouseOut:()=>n||c(!1),onMouseMove:e=>{var a;if(!d)return;let{left:t,top:i,width:n,height:r}=null==h?void 0:null===(a=h.current)||void 0===a?void 0:a.getBoundingClientRect();p((e.pageX-t)/n*100),g((e.pageY-i)/r*100)},children:(0,i.jsx)("div",{ref:h,className:x.imageWrapper,onClick:y,onKeyDown:y,role:"button",tabIndex:0,"aria-label":"zoom","data-testid":"zoomable-image-wrapper",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,s)=>{let o=e.currentSlide,d=e.slidesToScroll,c=e.slidesToShow,u=0,p=c;"next"===t&&(p=(u=o+d)+c,e.nextSlide()),"prev"===t&&(p=(u=o-d)+c,e.previousSlide());let m=a.slice(u,p).map((e,a)=>({...e,analyticsPosition:u+a+1}));(0,i.W)({creativeSlot:n,carouselType:r,promoItemId:l,promoItemName:s,products:m})}},68351:(e,a,t)=>{t.d(a,{A:()=>s});var i=t(37876),n=t(24315),r=t(99220);t(14232);let l=(0,r.makeStyles)()(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-of-type":{marginLeft:e.spacing(0)}},chip_selected:{color:e.palette.primary.main,backgroundColor:e.palette.primary.light},chip_unavailable:{color:e.palette.common.black,borderColor:e.palette.grey[300],backgroundColor:e.palette.grey[200]},chip_selected_unavailable:{borderColor:e.palette.primary.main}})),s=e=>{let{items:a,selectedChip:t,unavailableChips:r,onSelect:s,id:o}=e,{classes:d,cx:c}=l();return(0,i.jsx)("div",{className:d.chipDisplay,id:o,children:a.map((e,a)=>{let{label:l,value:o}=e,u=o===t,p=null==r?void 0:r.includes(o);return(0,i.jsx)(n.A,{label:l,variant:"outlined",color:u?"primary":"default",clickable:!0,onClick:()=>s(o),className:c(d.chip,{[d.chip_selected]:u,[d.chip_unavailable]:p,[d.chip_selected_unavailable]:u&&p})},"".concat(a,"-").concat(l,"-").concat(o))})})}},70210:(e,a,t)=>{t.d(a,{A:()=>eF});var i=t(37876),n=t(14232),r=t(34415),l=t(8733),s=t(99220),o=t(42778),d=t(28975),c=t(71541),u=t(12197),p=t(36503),m=t(5411),g=t(35967),h=t(35877),x=t(57477),A=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 C(){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 C=function(){return e},e}function E(){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 E=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)(C(),N),I=(0,f.J1)(E(),S),R=(0,f.J1)(j(),I);var k=t(68748),M=t(21347),P=t(10181),O=t(96241),L=t(67241),B=t(70377),F=t(41683),w=t(57377),D=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.makeStyles)()(e=>({table:{"& td":{"&:nth-of-type(3)":{textAlign:"center"},fontSize:14,paddingLeft:0},"& th":{"&:nth-of-type(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,{classes: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:O.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)(w.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT})}),(0,i.jsx)(w.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT_NAME})}),(0,i.jsx)(w.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_QUANTITY})}),(0,i.jsx)(w.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_AVAILABILITY})})]})}),(0,i.jsx)(D.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)(w.A,{className:n.materialNumber,children:e.materialNumber}),(0,i.jsx)(w.A,{className:n.materialDescription,children:(0,i.jsx)(x.A,{value:e.materialName})}),(0,i.jsx)(w.A,{children:e.quantity}),(0,i.jsx)(w.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 V=t(30510),q=t(36382),K=t(38582),Q=t(11788),X=t(99486),$=t(66201),Z=t(77742),J=t(78206),ee=t(8335),ea=t(99549),et=t(15329),ei=t(57869),en=t(20573),er=t(30373),el=t(48504),es=t(32591),eo=t(37290),ed=t(1049),ec=t(75878),eu=t(4641),ep=t(64177);function em(){let e=(0,v._)(["\n mutation CreateCustomPromotionalBundle($input: CustomPromotionalBundleInput!) {\n createCustomPromotionalBundle(input: $input)\n}\n "]);return em=function(){return e},e}let eg={},eh=(0,f.J1)(em()),ex=(0,s.makeStyles)()(e=>({dialogTitle:{backgroundColor:e.palette.background.grey},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.secondary.light},dialogActionsRoot:{padding:"8px 24px"},submitButton:{minWidth:"182px",marginLeft:e.spacing(4)},cancelButton:{color:e.palette.grey[600],borderWidth:"2px",minWidth:"120px"},errorMessage:{color:e.palette.error.main,fontSize:e.typography.pxToRem(12),padding:e.spacing(0,3)},dialogWidth:{maxWidth:e.typography.pxToRem(660)}})),eA={materialNumber:"",quantity:1},ey={bundleDescription:"",bundleItems:[eA,eA,eA,eA,eA]},ev=e=>e.filter(e=>{let{materialNumber:a}=e;return a}),ef=e=>{let{setCreateCustomBundleModal:a,setShowModal:t}=e,{classes:r}=ex(),{formatMessage:l}=(0,Z.A)(),{setGlobalSnackbarState:s}=(0,K.W)(),[o,d]=(0,n.useState)(!1),[c,{loading:u}]=function(e){let a={...eg};return ep.n(eh,a)}(),g=async e=>{let{bundleDescription:i,bundleItems:n}=e,r={bundleDescription:i,bundleItems:ev(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)(J.l1,{initialValues:ey,onSubmit:g,validate:e=>ev(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)(ee.A,{classes:{paperWidthSm:r.dialogWidth},fullWidth:!0,open:!0,children:[(0,i.jsxs)(ea.A,{className:r.dialogTitle,children:[l(U.A.CREATE_CUSTOM_BUNDLE),(0,i.jsx)(et.A,{className:r.closeButton,disabled:u,onClick:()=>d(!0),children:(0,i.jsx)(el.A,{fontSize:"large",onClick:()=>t(!1)})})]}),(0,i.jsx)(ei.A,{children:(0,i.jsx)(J.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)(en.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)(J.D0,{label:l(U.A.CUSTOM_BUNDLE_DESCRIPTION),name:"bundleDescription",filled:!0,multiline:!0,component:eo.A,disabled:u})}),(0,i.jsx)(J.Kw,{name:"bundleItems",children:e=>(0,i.jsx)("div",{className:r.errorMessage,children:e})}),(0,i.jsx)(J.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)(J.D0,{name:"bundleItems[".concat(a,"].materialNumber"),label:0===a&&l(U.A.SKU_PLUS_PACK_SIZE),component:ed.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)(J.D0,{name:"bundleItems[".concat(a,"].quantity"),label:0===a&&l(U.A.QUANTITY),component:ec.A,min:1,max:999,disabled:u,filled:!0})})]},a)),(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(m.A,{color:"secondary",startIcon:(0,i.jsx)(es.A,{fontSize:"large"}),onClick:()=>a(eA),children:l(U.A.ADD_ROW)})})]})}})]})})}),(0,i.jsxs)(er.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)(eu.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 eb=t(86680),eT=t(88700);let eC=(0,s.makeStyles)()(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("md")]:{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)},errorMessage:{color:e.palette.error.main,fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightRegular,marginBottom:e.spacing(4)}})),eE=(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())}))},ej=e=>{let{onClose:a,bundleData:t,productName:r,materialNumber:s,setShowModal:v}=e,{classes:f,cx:T}=eC(),C=(0,h.A)(),{getSitePreference:E,userIsLoggedIn:j}=(0,Q.iZ)(),{authorized:N}=(0,X.I)(X.N.canAddToCart),{setGlobalSnackbarState:S}=(0,K.W)(),I=(0,q.g9)(),[P,O]=(0,n.useState)({}),[L,B]=(0,n.useState)(1),F=(0,c.A)(C.breakpoints.up("md")),{setGlobalModalComponent:w,clearGlobalModalComponent:D}=(0,o.g)(),U=E(Q.VD.HideAddToCartForPrepackItems),[z,{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:P.promotionalBundleId},ssr:!1},ei=(0,i.jsx)(l.A,{id:"NO_RESULTS_FOUND",defaultMessage:"No results found"}),en=(0,i.jsx)(x.A,{value:r}),er=[{headElement:(0,i.jsx)(l.A,{id:"PROMO_PRODUCT",defaultMessage:"Product"}),bodyElement:e=>e.materialNumber},{headElement:(0,i.jsx)(l.A,{id:"PROMO_PRODUCT_NAME",defaultMessage:"Name"}),bodyElement:e=>(0,i.jsx)(x.A,{value:e.materialDescription})},{headElement:(0,i.jsx)(l.A,{id:"PROMO_QUANTITY",defaultMessage:"Qty per Bundle"}),bodyElement:e=>e.quantity},{headElement:(0,i.jsx)(l.A,{id:"PROMO_AVAILABILITY",defaultMessage:"Availability"}),bodyElement:e=>{var a,t;return(null===(a=e.availabilityMessages)||void 0===a?void 0:a.length)?(0,i.jsx)(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&&O(t[0])},[t]),(0,n.useEffect)(()=>{P.promotionalBundleId&&z(et)},[P.promotionalBundleId]);let eo=async()=>{var e,t;let n=eE(P,Z);a("addedToCart"),(0,eb.p8)(n,null!==(t=null==Z?void 0:null===(e=Z.getPricingForPromotionalBundle)||void 0===e?void 0:e.bundleItems)&&void 0!==t?t:[],eT.k9.PromoBundle,void 0,void 0,void 0,{bundleId:P.bundleId,quantity:L});try{await I([{materialNumber:P.bundleId,quantity:L,materialDescription:P.bundleDescription,materialName:P.bundleName,type:A.iC.PromotionalBundle}])}catch(e){S({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:P.promotionalBundleId,onSelect:e=>{let a=t.find(a=>{let{promotionalBundleId:t}=a;return t===e});a&&O(a)}}),(0,i.jsx)(u.A,{variant:"body1",className:f.materialNumber,children:(0,i.jsx)(x.A,{value:"".concat(P.bundleId," - ").concat(P.bundleName)})}),(0,i.jsx)(u.A,{className:f.description,children:(0,i.jsx)(x.A,{value:P.bundleDescription})}),(0,i.jsx)(p.A,{container:!0,className:f.pricingContainer,children:J?(0,i.jsx)("div",{className:f.loadingContainer,children:(0,i.jsx)(V.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:T(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)(k.A,{value:L,min:1,onChange:e=>{B(e)}})}),(0,i.jsx)("div",{children:(0,i.jsx)(M.Ay,{dirty:!0,isSubmitting:!1,canAddToCart:N,hideAddToCartForPrepackItems:U,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&&F?(0,i.jsx)(Y,{promoBundlePricingData:ee}):null]})}),j&&(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(m.A,{style:{paddingLeft:0},onClick:()=>{w((0,i.jsx)(ef,{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?"})})})]}),F?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)($.A,{data:(null==ee?void 0:ee.bundleItems)||[],columns:er,noResultsComponent:ei,accordionTitleColumn:el,accordionSubtitleColumn:es,itemProps:{headerProps:{variant:"h3"}}})]})]})})};var e_=t(89099),eN=t(97710);function eS(){let e=(0,v._)(["\n fragment BundleItems on PromotionalBundleItem {\n materialNumber\n materialIds\n quantity\n discount\n showOnPdp\n}\n "]);return eS=function(){return e},e}function eI(){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 eI=function(){return e},e}function eR(){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 eR=function(){return e},e}let ek={},eM=(0,f.J1)(eS()),eP=(0,f.J1)(eI(),eM),eO=(0,f.J1)(eR(),eP);var eL=t(20534);let eB=(0,s.makeStyles)()(e=>({promoButton:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,paddingLeft:e.spacing(.5),cursor:"pointer",[e.breakpoints.down("md")]:{paddingTop:e.spacing(0)}}})),eF=e=>{var a;let{materialNumber:t,brand:s,productName:d,erp_type:c}=e,{classes:u}=eB(),{setGlobalModalComponent:p,clearGlobalModalComponent:m}=(0,o.g)(),g=(0,e_.useRouter)(),{getSitePreference:h,isBlueErpIntegrationEnabled:x}=(0,Q.iZ)(),{focus:A="",catalog:y=""}=g.query||{},v=(0,eN.vN)(A||y),f=h(Q.VD.CatalogFilter)||null,T=x&&c&&(null==c?void 0:c.length)>0,[C,E]=(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={...ek};return b._(eO,a)}(),I=()=>{E(!1),m()};return(0,n.useEffect)(()=>{var e;(null==N?void 0:null===(e=N.getPromotionalBundlesForProduct)||void 0===e?void 0:e.length)&&C&&p((0,i.jsx)(ej,{onClose:()=>I(),loading:S,bundleData:N.getPromotionalBundlesForProduct,productName:d,materialNumber:t,setShowModal:E}))},[N,C]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{component:"div",className:u.promoButton,onClick:()=>{E(!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)(eL.A,{})]})}},70336:(e,a,t)=>{t.d(a,{A:()=>T});var i=t(37876),n=t(7645),r=t(67241),l=t(70377),s=t(41683),o=t(57377),d=t(71549),c=t(99220);t(14232);var u=t(8733),p=t(77660),m=t(57477),g=t(27447),h=t(3848),x=t(88887);let A=(0,c.makeStyles)({name:"ProductPriceAvailabilityRow",uniqId:"ProductPAR01"})((e,a,t)=>({tableCell:{verticalAlign:"middle",padding:e.spacing(2,3),[e.breakpoints.between("sm","lg")]:{padding:e.spacing(2,1)}},materialNumber:{width:"20%",["&.".concat(t.hidePriceMessageKey)]:{width:"5%"}},materialNumberWithSku:{width:"30%"},packSize:{width:"15%",["&.".concat(t.hidePriceMessageKey)]:{width:"5%"}},packSizeWithSku:{width:"5%"},availability:{width:"45%",["&.".concat(t.hidePriceMessageKey)]:{width:"40%"}},price:{width:"10%"},listPrice:{display:"none"},hidePriceMessageKey:{width:"20%"},labelFontSize:{fontSize:e.typography.pxToRem(12)}})),y=e=>{var a;let{material:t}=e,{classes:n,cx:r}=A(),l=(null==t?void 0:t.type)===p.iC.ThirdPartyProvider,[s]=null!==(a=t.availabilities)&&void 0!==a?a:[],d=(null==s?void 0:s.key)===p.qL.InquireForPriceAndAvailability;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{className:r(n.tableCell,n.packSize,{[n.packSizeWithSku]:l,[n.hidePriceMessageKey]:!!(null==t?void 0:t.hidePriceMessageKey)}),children:(0,i.jsx)(m.A,{value:t.packageSize})}),(0,i.jsx)(o.A,{className:r(n.tableCell,n.materialNumber,{[n.materialNumberWithSku]:l,[n.hidePriceMessageKey]:!!(null==t?void 0:t.hidePriceMessageKey)}),children:(0,i.jsx)(g.A,{materialNumber:t.materialNumber})}),(0,i.jsx)(o.A,{className:r(n.tableCell,n.availability,{[n.hidePriceMessageKey]:!!(null==t?void 0:t.hidePriceMessageKey)}),children:(0,i.jsx)(x.A,{material:t,canAddToCart:!0,hideDetails:!0})}),(0,i.jsx)(o.A,{className:r(n.tableCell,n.price,{[n.hidePriceMessageKey]:!!(null==t?void 0:t.hidePriceMessageKey)}),children:d?null:(0,i.jsx)(h.A,{material:t,priceClass:n.price,listPriceClass:n.listPrice})})]})};var v=t(4009),f=t(44878);let b=(0,c.makeStyles)()(e=>({table:{margin:e.spacing(2,0,6)},tableHead:{whiteSpace:"nowrap",fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,padding:e.spacing(0,3),letterSpacing:"-0.12px",lineHeight:"16px",[e.breakpoints.between("sm","lg")]:{whiteSpace:"normal",padding:e.spacing(0,1)}},tableRow:{cursor:"pointer","&.Mui-selected":{backgroundColor:e.palette.primary.light},"&.Mui-selected:hover":{backgroundColor:e.palette.primary.light}},loadingSkeleton:{margin:e.spacing(2,0,5)}})),T=e=>{let{loading:a,materialPricing:t,onRowClick:c,rowSelected:p}=e,{classes:m}=b(),g=e=>{var a,t,i;let[n]=null!==(t=null==e?void 0:e.availabilities)&&void 0!==t?t:[];return null!==(i=null===(a=e.availabilities)||void 0===a?void 0:a.find(e=>{let{messageType:a}=e;return"primary"===a}))&&void 0!==i?i:n};return a?(0,i.jsx)(n.A,{className:m.loadingSkeleton,children:[,,,].fill({}).map((e,a)=>(0,i.jsx)(f.A,{animation:"wave",height:30},a))}):(0,i.jsxs)(r.A,{className:m.table,children:[(0,i.jsx)(l.A,{children:(0,i.jsxs)(s.A,{children:[(0,i.jsx)(o.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"PACK_SIZE",defaultMessage:"Pack Size"})}),(0,i.jsx)(o.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"SKU",defaultMessage:"SKU"})}),(0,i.jsx)(o.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"AVAILABILITY",defaultMessage:"Availability"})}),(0,i.jsx)(o.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"PRICE",defaultMessage:"Price"})})]})}),(0,i.jsx)(d.A,{children:null==t?void 0:t.map((e,a)=>(0,i.jsx)(s.A,{onClick:()=>c(e),selected:p(e),className:m.tableRow,children:(0,i.jsx)(y,{initialShipEstimate:(0,i.jsx)(v.f,{availability:g(e),leadTime:null==e?void 0:e.leadTime}),material:e},a)},e.materialNumber))})]})}},71662:(e,a,t)=>{t.d(a,{A:()=>W});var i=t(37876),n=t(14232),r=t(36258),l=t(99220),s=t(82440),o=t.n(s),d=t(64204),c=t(12197),u=t(92189),p=t(23575),m=t(45496),g=t(77328),h=t.n(g),x=t(71541),A=t(34415),y=t(36503),v=t(5411),f=t(35877),b=t(11148),T=t(52413),C=t(57477),E=t(930),j=t(8733),_=t(54753),N=t(80491),S=t(64578),I=t(65824),R=t(97710),k=t(50524);let M=(0,l.makeStyles)()(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)}})),P=e=>{var a,t,r,l,s;let{product:o,testId:d,preloadCardImages:u=!1,className:p,mainProduct:m,index:g,type:P}=e,{classes:O,cx:L}=M(),B=(0,b.rd)(),[F]=(0,S.useSearchQuery)(),w=(0,f.A)(),D=(0,x.A)(w.breakpoints.up("md")),{addCompareProduct:W,removeCompareProduct:U,sendToDiscontinuedProductCompareDetail:H,compareProducts:G}=(0,N.Zn)(),z=(null==B?void 0:null===(a=B.query)||void 0===a?void 0:a.catalog)||"",Y=(0,R.vN)(z),V=(0,n.useCallback)((e,a)=>!!G.find(t=>t.productKey===e&&t.brandKey===a&&t.catalogType===Y),[G]),q=(0,n.useMemo)(()=>{var e;return V(null!==(e=null==m?void 0:m.productKey)&&void 0!==e?e:"",null==m?void 0:m.brandKey)},[V,m]),K=!(null==o?void 0:null===(t=o.productNumber)||void 0===t?void 0:t.startsWith("CB_")),Q="product-card-".concat(null==o?void 0:o.productNumber).concat(null==o?void 0:null===(r=o.brand)||void 0===r?void 0:r.key,"-").concat(d),X=B.asPath.includes("/product"),$=(0,k.Gd)(),Z="".concat(P," - ").concat($),J=q&&G.length>1&&G.length<=4;return(0,n.useEffect)(()=>{if(X&&!q){var e,a;W({productKey:null!==(e=null==m?void 0:m.productKey)&&void 0!==e?e:"",brandKey:null!==(a=null==m?void 0:m.brandKey)&&void 0!==a?a:"",images:null==m?void 0:m.images,catalogType:Y})}},[q]),(0,i.jsxs)("div",{className:L(p,"promotions-slider-div"),children:[u&&(0,i.jsx)(h(),{children:(0,i.jsx)("link",{rel:"preload",href:o.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(T.N,{...b.aR.index(null==o?void 0:o.brand.key,null==o?void 0:o.productNumber,{catalog:z}),children:(0,i.jsx)("a",{"data-testid":Q,id:Q,role:"link",tabIndex:0,onKeyDown:()=>(0,E.e)({product:o,indexPosition:g,creativeSlot:Z,carouselType:P,selectType:"select_item"}),onClick:()=>{(0,E.e)({product:o,indexPosition:g,creativeSlot:Z,carouselType:P,selectType:"select_item"})},children:(0,i.jsxs)("div",{className:O.mainContent,children:[(0,i.jsx)("div",{className:O.mainContentImage,children:(0,i.jsx)("img",{className:O.image,src:o.images[0].mediumUrl,alt:o.images[0].altText||o.description||o.name,width:"112",height:"50"})}),(0,i.jsxs)("div",{className:O.mainContentText,children:[(0,i.jsx)(c.A,{className:O.productBrand,children:o.brand.name}),K&&(0,i.jsx)(c.A,{className:O.productNumber,children:null==o?void 0:o.productNumber}),(0,i.jsx)(c.A,{className:O.productName,children:(0,i.jsx)(C.A,{value:o.name})}),(0,i.jsx)(c.A,{className:O.productDescription,children:(0,i.jsx)(C.A,{value:o.description})})]})]})})}),(null==m?void 0:m.showViewDetailsLink)||X?(0,i.jsx)(T.N,{...b.aR.index(null==o?void 0:null===(l=o.brand)||void 0===l?void 0:l.key,null==o?void 0:o.productNumber),children:(0,i.jsx)(A.A,{className:O.link,children:(0,i.jsx)(j.A,{..._.A.VIEW_PRODUCT_DETAILS})})}):null,D?(0,i.jsxs)(y.A,{container:!0,children:[(0,i.jsx)(y.A,{item:!0,xs:12,children:(0,i.jsx)(I.A,{className:O.checkbox,checked:V(null==o?void 0:o.productNumber,null==o?void 0:null===(s=o.brand)||void 0===s?void 0:s.key),onChange:e=>{let{checked:a}=e.target,t={productKey:null==o?void 0:o.productNumber,brandKey:o.brand.key,images:o.images,catalogType:Y};a?W(t):U(t)},label:(0,i.jsx)(c.A,{variant:"body2",component:"span",children:(0,i.jsx)(j.A,{..._.A.COMPARE_WITH_DISCONTINUED_PRODUCT})})})}),(0,i.jsxs)(v.A,{variant:"contained",color:"primary",className:O.compareButton,onClick:()=>{var e;H(F,B,(null==o?void 0:o.productNumber)||"",(null==o?void 0:null===(e=o.brand)||void 0===e?void 0:e.key)||"")},disabled:!J,children:[(0,i.jsx)(j.A,{id:"COMPARE_SELECTED",defaultMessage:"Compare Selected"}),G.length>0&&" (".concat(G.length,")")]})]}):null]})};var O=t(40352),L=t(68215),B=t(40002),F=t(91721);let w=(0,l.makeStyles)({name:"ReplacementProductsCarousel",uniqId:"RepProdCarousel"})((e,a,t)=>({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),[".".concat(t.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)}}})),D=e=>{let{products:a,creativeSlot:t,carouselType:n,pageType:r,pageTypeDetails:l}=e,{classes:s,cx:o}=w();return{renderCenterLeftControls:e=>{let c=0===e.currentSlide;return(0,i.jsx)(d.A,{className:o(s.navBtn,s.navBtnLarge,s.navBtnLeft),disabled:c,onClick:()=>(0,L.t)(e,a,"prev",t,n,r,l),"aria-label":"previous",children:(0,i.jsx)(p.A,{className:o(s.icon,{[s.iconDisabled]:c})})})},renderCenterRightControls:e=>{let c=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,L.t)(e,a,"next",t,n,r,l),"aria-label":"next",children:(0,i.jsx)(m.A,{className:o(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&c})})})},renderBottomCenterControls:e=>{let u=0===e.currentSlide,g=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,L.t)(e,a,"prev",t,n,r,l),"aria-label":"previous",className:o(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(p.A,{className:o(s.icon,{[s.iconDisabled]:u})})}),(0,i.jsxs)(c.A,{variant:"body2",children:[e.currentSlide+1," of ",e.slideCount]}),(0,i.jsx)(d.A,{disabled:g,onClick:()=>(0,L.t)(e,a,"next",t,n,r,l),"aria-label":"next",className:o(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(m.A,{className:o(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&g})})})]})}}},W=e=>{let{type:a,products:t,withoutControls:l,slidesToShow:s,condensed:d,preloadCardImages:c,mainProduct:p}=e,{classes:m,cx:g}=w(),h=(0,O.Ay)(),x=(0,k.Gd)(),A="".concat(a," - ").concat(x),y=D({products:t,creativeSlot:A,carouselType:a,pageType:x}),v=a===B.j.CartRecommendedProducts,f=h({xs:1,sm:2,lg:3}),b=(0,n.useRef)(null),[T,C]=(0,n.useState)(!1),j=(0,r.B)(b,{threshold:F.Pe});return t&&(null==t?void 0:t.length)?((null==j?void 0:j.isIntersecting)&&!T&&((0,E.W)({creativeSlot:A,carouselType:a,products:t}),C(!0)),(0,i.jsx)("div",{"data-testid":a,id:a,className:g({[m.cartRecommended]:v}),ref:b,children:(0,i.jsx)(u.A,{maxWidth:"lg",className:g({[m.withoutControls]:l}),children:(0,i.jsx)("div",{className:g(m.content,{[m.contentCondensed]:d}),children:(0,i.jsx)(o(),{slidesToScroll:s||f,slidesToShow:s||f,disableEdgeSwiping:!0,withoutControls:l,...y,children:t.map((e,t)=>(0,i.jsx)(P,{mainProduct:p,product:e,testId:a,preloadCardImages:c,className:m.card,index:t,type:a},t))})})})})):null}},72214:(e,a,t)=>{t.d(a,{c:()=>f});var i=t(37876);t(14232);var n=t(77660),r=t(12197),l=t(99220),s=t(57477),o=t(52413),d=t(11148),c=t(8733),u=t(54753),p=t(29468),m=t(35967),g=t(81524),h=t(11788),x=t(55287);let A=(0,l.makeStyles)()(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)}})),y=e=>{var a;let{productNumber:t}=e,{classes:n}=A(),{userIsLoggedIn:r}=(0,h.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)(g.A,{className:n.icon}),(0,i.jsx)(c.A,{...u.A.LAST_PURCHASED})," ",d&&(0,i.jsx)(m.XU,{value:new Date(d),year:"numeric",month:"short",day:"numeric"})]})},v=(0,l.makeStyles)()(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",WebkitBoxOrient:"vertical",WebkitLineClamp: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("lg")]:{display:"block"}},previouslyPurchasedChip:{display:"inline-block",marginBottom:e.spacing(4),"&:empty":{display:"none"}},productImageAndInfo:{display:"flex"},productImageContainer:{boxSizing:"initial",width:64,height:64,border:"solid 1px ".concat(e.palette.grey[300]),marginRight:e.spacing(4),borderRadius:3,[e.breakpoints.up("md")]:{width:88,minWidth:88,height:88,marginRight:e.spacing(6)}},productImage:{objectFit:"contain",width:"100%",height:"100%"}})),f=e=>{let{image:a,brand:t,type:l,productKey:m,productNumber:g,name:h,displaySellerName:x,description:A,additionalInfo:f,classes:b,isMarketplace:T,marketplaceSellerId:C,onProductLinkClick:E,toggleMarketplaceSellerModalOpen:j,showPreviouslyPurchasedChip:_=!1}=e,{classes:N,cx:S}=v();return(0,i.jsxs)("div",{className:S(N.productLockupSimple,null==b?void 0:b.root),children:[_&&(0,i.jsx)("div",{className:N.previouslyPurchasedChip,children:(0,i.jsx)(y,{productNumber:g})}),(0,i.jsxs)("div",{className:N.productImageAndInfo,children:[(0,i.jsx)("div",{className:S(N.productImageContainer,null==b?void 0:b.imageContainer),children:(0,i.jsx)("img",{src:a.mediumUrl,alt:a.altText||h,className:N.productImage})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{variant:"caption",className:S(N.brand,null==b?void 0:b.brand),style:t.color?{color:t.color}:{},children:t.name}),T&&C&&(0,i.jsxs)("div",{className:N.sellerInfo,children:[(0,i.jsx)(c.A,{...u.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:N.verticalLine}),(0,i.jsxs)("span",{className:N.trustedInfo,children:[(0,i.jsx)(c.A,{...u.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(p.A,{className:N.infoIcon,onClick:()=>!!j&&j()})]})]}),(0,i.jsx)(r.A,{variant:"h3",component:"div",className:S(N.heading,null==b?void 0:b.heading),children:h&&t.key&&m?(0,i.jsx)(o.N,{...d.aR.index(t.key,m,l===n.iC.ThirdPartyProvider?{context:"bbe"}:{}),onClick:E,children:g}):g}),(0,i.jsx)(r.A,{variant:"h3",className:S(N.heading,null==b?void 0:b.heading),children:(0,i.jsx)(s.A,{value:h})}),A&&(0,i.jsx)(r.A,{className:S(N.description,N.clampLines,null==b?void 0:b.description),children:(0,i.jsx)(s.A,{value:A})}),f]})]})]})}},73170:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876);t(14232);var n=t(99220),r=t(57269),l=t(45490),s=t(28151),o=t(6519);let d=(0,n.makeStyles)()(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("sm")]:{display:"none"}}})),c=e=>{let{cx:a,onClick:t,label:n,children:r,classes:l=[],disabled:s=!1,id:o}=e;return(0,i.jsx)("button",{className:a(...l),type:"button",disabled:s,"aria-label":n,onClick:t,id:o,children:r})},u=e=>{let{curPage:a,numPages:t,clickHandler:n}=e,{classes:u,cx:p}=d(),m=function(e,a){let t,i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(e<1?e=1:e>a&&(e=a),a<=n)t=1,i=a;else{let r=Math.floor(n/2),l=Math.ceil(n/2)-1;e<=r?(t=1,i=n):e+l>=a?(t=a-n+1,i=a):(t=e-r,i=e+l)}return{pages:Array.from(Array(i+1-t).keys()).map(e=>t+e),showNext:e1}}(a,t),g=m.pages[m.pages.length-1],h=m.pages[0],x=(0,i.jsx)("div",{className:p(u.baseButton,u.ellipsis,u.hideOnMobile),children:"..."}),A=(0,i.jsx)(c,{cx:p,classes:[u.baseButton,u.pageNumber,u.hideOnMobile],label:"Go to page ".concat(t),onClick:e=>{e.preventDefault(),n(t)},children:t},t),y=(0,i.jsx)(c,{cx:p,classes:[u.baseButton,u.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:u.wrapper,"aria-label":"Pagination Navigation",children:[(0,i.jsx)(c,{cx:p,label:"Go to first page",disabled:!m.showPrevious,classes:[u.baseButton,u.prevNext,u.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)(c,{cx:p,classes:[u.baseButton,u.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)(l.A,{})},"previous"),2===h&&y,h>2&&(0,i.jsxs)(i.Fragment,{children:[y,x]}),m.pages.map((e,t)=>e===a?(0,i.jsx)("div",{id:"pagination-current-page","aria-label":"Current page",className:p(u.baseButton,u.curPage),children:e},e):(0,i.jsx)(c,{cx:p,classes:[u.baseButton,u.pageNumber,u.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&&A,t-g>1&&(0,i.jsxs)(i.Fragment,{children:[x,A]}),(0,i.jsx)(c,{cx:p,classes:[u.baseButton,u.prevNext],disabled:!m.showNext,label:"Go to next page",id:"pagination-go-to-next-page","data-testid":"pagination-go-to-next-page",onClick:e=>{e.preventDefault(),n(a+1)},children:(0,i.jsx)(s.A,{})},"next"),(0,i.jsx)(c,{cx:p,classes:[u.baseButton,u.prevNext,u.hideOnMobile],disabled:!m.showNext,label:"Go to last page",onClick:e=>{e.preventDefault(),n(t)},children:(0,i.jsx)(o.A,{})},"last")]}):null}},74770:(e,a,t)=>{t.d(a,{A:()=>s});var i=t(37876);t(14232);var n=t(99220),r=t(54753);let l=(0,n.makeStyles)()(e=>({badge:{margin:e.spacing(1),width:28,height:28}})),s=e=>{let{features:a,customClass:t}=e,{classes: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})]})}},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(64578),h=t(97710),x=t(52413),A=t(43965);let y=(0,u.makeStyles)()(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)(x.N,{...m.aR.index(r,t,{catalog:(0,h.vN)(h.Xc.Products)}),passHref:!0,children:n||t})})]}),(0,i.jsx)(d.A,{onClick:()=>s({brandKey:r,productKey:t}),children:(0,i.jsx)(A.A,{className:l.x})})]})};var f=t(8733),b=t(34669),T=t(76594),C=t(18847);let E=t.n(C)()(()=>t.e(2974).then(t.bind(t,42974)),{loadableGenerated:{webpack:()=>[42974]},loadableGenerated:{webpack:()=>[42974]},ssr:!1}),j=(0,u.makeStyles)()(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)(),x=(0,m.rd)(),[A]=(0,g.useSearchQuery)(),{classes:y}=j(),C=(0,p.A)(),_=(0,r.A)(C.breakpoints.up("md")),[N,S]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{S(!0)},[]),N)?a?(0,i.jsx)(E,{}):(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(A,x),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)}},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),x=t(71007),A=t(46129);let y=(0,n.makeStyles)()(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,x.sendCommonDetailProductIdEvent)({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.RecentlyViewedDocumentSearch,className:e.recentlyViewedProducts})]})}},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.makeStyles)()(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:()=>x,Zn:()=>A,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",x=4;function A(){let e=(0,l.Fo)(h,[]),a=(0,i.useCallback)(a=>Array.isArray(e)?e.length>=x?void 0:e.findIndex(e=>{let{brandKey:t,productKey:i}=e;return a.brandKey===t&&a.productKey===i})>=0?void 0:l.sZ.setItem(h,e.concat([a])):l.sZ.setItem(h,[a]),[e]),t=(0,i.useCallback)(a=>{if(!Array.isArray(e))return;let t=e.findIndex(e=>{let{brandKey:t,productKey:i}=e;return a.brandKey===t&&a.productKey===i});if(t>=0)return l.sZ.setItem(h,e.slice(0,t).concat(e.slice(t+1)))},[e]),n=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return l.sZ.setItem(h,e)},[]),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.sendProductInfoInteractionEvent)({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.sendProductInfoInteractionEvent)({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(11148),o=t(8733),d=t(99220),c=t(7645),u=t(5411),p=t(34415),m=t(83198),g=t(52413),h=t(75352),x=t(82250),A=t(54753),y=t(11788),v=t(69485),f=t(17685);let{publicRuntimeConfig:{featureFlags:b}}=l()(),T=(0,d.makeStyles)()(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:d="",marketplaceSellerId:C="",marketplaceOfferId:E="",materialPricing:j,isCenterJustified:_=!0,handlePriceUpdateForDealer:N}=e,{classes:S,cx:I}=T(),R=(0,s.rd)(),{isDTAQZuCustomer:k}=(0,y.iZ)(),[M,P]=(0,n.useState)(!1),O=t?(0,x.Mw)(t).errors[0]:void 0,L=(null==O?void 0:null===(a=O.misc)||void 0===a?void 0:a.hideTechnicalServiceLink)===void 0||O.misc.hideTechnicalServiceLink,B=l&&!!d&&!!C&&!!E,F=b.dealerCartEnabled&&k,w=(null==O?void 0:O.code)&&A.A[O.code]||A.A.PRICING_AND_AVAILABILITY_UNAVAILABLE,{userSession:{country:D}}=(0,f.j)();return(0,i.jsxs)("div",{className:I(S.row,{[S.rowFormatting]:_}),children:[(0,i.jsx)(c.A,{mr:2,children:(0,i.jsx)(m.A,{color:"error"})}),(0,i.jsxs)(c.A,{className:I({[S.centerJustified]:_}),children:[(0,i.jsx)("span",{className:I({[S.errorText]:_}),children:(null==O?void 0:O.code)==="EMD_MILLIPORE_PRICING_AND_INVENTORY_UNAVAILABLE"?"US"===D?(0,i.jsx)(v.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)(g.N,{href:s.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(o.A,{id:"CONTACT_CUSTOMER_SERVICE_FIRST_UPPERCASE",defaultMessage:"Contact Customer Service"})})})}}):"CA"===D?(0,i.jsx)(v.J,{id:"PRODUCT_ONLY_SOLD_VIA_OFFLINE_CHANNELS",defaultMessage:"This product is only sold via offline channels. {link}",values:{link:(0,i.jsx)(g.N,{href:s.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(o.A,{id:"PLEASE_CONTACT_CUSTOMER_SERVICE",defaultMessage:"Please Contact Customer Service"})})})}}):(0,i.jsx)(v.J,{...w,values:{link:(0,i.jsx)("a",{href:"http://www.emdmillipore.com/",children:"Millipore"})}}):(null==O?void 0:O.code)==="MERCK_MILLIPORE_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(v.J,{...w,values:{link:(0,i.jsx)("a",{href:"http://www.merckmillipore.com/",children:"Merck Millipore"})}}):(null==O?void 0:O.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE_HAS_STOCK"||(null==O?void 0:O.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(v.J,{...w,values:{productNumber:r,link:(0,i.jsx)("a",{href:"http://hg.y866.cn/germ/",target:"_blank",rel:"noreferrer",children:"Sigma-Aldrich"})}}):(null==O?void 0:O.code)==="PRODUCT_ONLY_SOLD_VIA_OFFLINE_CHANNELS"?(0,i.jsx)(v.J,{...w,values:{link:(0,i.jsx)(g.N,{href:s.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(o.A,{id:"PLEASE_CONTACT_CUSTOMER_SERVICE",defaultMessage:"Please Contact Customer Service"})})})}}):(null==O?void 0:O.code)==="CUSTOMER_NUMBER_BLOCKED"?(0,i.jsx)(v.J,{...w,values:{customerNumber:(null==O?void 0:O.paramList)?null==O?void 0:O.paramList[0]:""}}):r?(0,i.jsx)(v.J,{...w,values:{productNumber:(0,i.jsx)("b",{children:r})}}):(0,i.jsx)(v.J,{...w})}),L||B?null:(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(g.N,{href:s.mA.customerSupport(),passHref:!0,children:(0,i.jsx)(p.A,{color:"primary",className:S.errorText,children:(0,i.jsx)(o.A,{...A.A.CONTACT_TECHNICAL_SERVICE})})})]}),B?(0,i.jsxs)("span",{className:S.errorContact,children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(g.N,{...s.kJ.contact(d,C,R.asPath,s.C2.OFFER_MESSAGING,E),children:(0,i.jsx)("a",{children:(0,i.jsx)(o.A,{...A.A.CONTACT_SELLER_WITH_NAME,values:{sellerName:d}})})})]}):null,F&&(0,i.jsx)(u.A,{variant:"text",className:S.seeDealerOptionsLink,onClick:()=>P(!0),children:(0,i.jsx)(o.A,{...A.A.SEE_ALL_BUYING_OPTIONS})}),F&&N&&M&&(0,i.jsx)(h.A,{values:{},materialPricing:j,isSavingDealerPreference:!1,setFieldValue:e=>e,setIsModalOpen:P,onDealerSelect:(e,a)=>N(e,{},j,e=>e,P,a),open:M,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.makeStyles)()(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 x=t(77742);let A=(0,n.makeStyles)()(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)}},bodyText:{marginBottom:e.spacing(2)}})),y=e=>{let{type:a,requestCertLinkClicked:t}=e,{classes:n}=A(),{formatMessage:r}=(0,x.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:"body2",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.makeStyles)()(e=>({accordionContainer:{display:"flex",flexDirection:"column",gap:e.spacing(6),marginTop:e.spacing(4)},accordion:{background:"".concat(e.palette.background.grey," !important"),"&.MuiAccordion-root":{background:e.palette.background.grey,padding:0,"&.Mui-expanded":{background:e.palette.background.grey,margin:0,paddingBottom:e.spacing(3)}},"& .MuiAccordionSummary-root":{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},"& h2":{paddingLeft:e.spacing(2),fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightMedium,lineHeight:"24px",letterSpacing:"-0.16px",[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(99220).makeStyles)()(e=>({table:{"& .MuiTableCell-root.MuiTableCell-head":{padding:e.spacing(0,2),"&:first-of-type":{padding:e.spacing(0,2,0,.5)},"&:last-of-type":{padding:e.spacing(0,.5,0,2)}},"& .MuiTableCell-root":{padding:e.spacing(2),"&:first-of-type":{padding:e.spacing(2,2,2,.5)},"&:last-of-type":{padding:e.spacing(1,.5,1,2)}}},multiCountryTable:{paddingBottom:e.spacing(7)},tRow:{display:"flex",alignItems:"center","& > div":{lineHeight:1.3,"&:nth-of-type(1)":{width:".5%"},"&:nth-of-type(2)":{width:"15%"},"&:nth-of-type(3)":{width:"12%"},"&:nth-of-type(4)":{flexGrow:1,flexShrink:0},"&:nth-of-type(5)":{width:"14%",minWidth:"fit-content"},"&:nth-of-type(6)":{width:"17%",maxWidth:e.typography.pxToRem(180)},"&:not(:last-of-type)":{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("md")]:{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)},japanMMFAQ:{marginRight:e.spacing(4)}})),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(99220),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),x=t(12197),A=t(35877),y=t(49691),v=t(59131),f=t(86024),b=t(66896),T=t(54034),C=t(52710);let E=(0,l.makeStyles)()(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,{classes:j}=E(),_=(0,A.A)(),N=(0,c.rd)(),S=(0,p.h2)({focus:N.query.focus}),I=(0,h.A)(_.breakpoints.up("md")),{products:R,images:k,name:M,synonyms:P,casNumber:O,molecularWeight:L,linearFormula:B,aliases:F,id:w}=o,D=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(w,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:k[0],altTextFallback:M})}),(0,i.jsxs)("div",{className:j.substanceDetailsContainer,children:[(0,i.jsx)(x.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,O?(0,i.jsx)(y.Ay,{message:u.A.CAS_NO,searchValue:O,classes:j.link,searchFocusType:(0,p.UQ)(S.focus),productSearchType:p.mI.CasNumber}):null,D?(0,i.jsx)(y.Ay,{message:u.A.EC_NO,searchValue:D.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)(C.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(57477),N=t(96707);let S=(0,l.makeStyles)()(e=>({cardColor:{backgroundColor:e.palette.common.white,[e.breakpoints.down("sm")]:{background:e.palette.background.grey,padding:0}},substanceNameWrapper:{paddingLeft:30,[e.breakpoints.down("sm")]:{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("sm")]:{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("lg")]:{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("lg")]:{height:e.typography.pxToRem(120),"& img":{maxWidth:"65%",maxHeight:"65%",border:"1px solid ".concat(e.palette.grey[600])}}},substanceGridWrapper:{[e.breakpoints.down("lg")]:{paddingTop:30}},productDetails:{fontSize:e.typography.pxToRem(12),minHeight:60,paddingLeft:30,[e.breakpoints.down("sm")]:{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,{classes:h}=S(),x=a.products?[...a.products]:[a],{casNumber:A,molecularWeight:v,linearFormula:f,name:b,id:T,images:C}={...a,products:x},[E,R]=(0,n.useState)(!1),k=(0,c.rd)(),M=k.query.catalogType,P=(0,p.h2)({focus:k.query.focus,catalogType:(0,p.vN)(M)}),O=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==x?void 0:x.length)===1?(0,i.jsx)(m.N,{...c.aR.index(x[0].brand.key,x[0].productKey,{catalog:O}),passHref:!0,children:(0,i.jsx)(s.A,{children:e})}):(0,i.jsx)(m.N,{...c.SL.index(T,O),passHref:!0,children:(0,i.jsx)(s.A,{children:e})})},B=P.focus===p.Xc.StructureSearch?I(x):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:C[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:[A?(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:A,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:O,catalogType:O,open:E,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.makeStyles)()(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:x=!1,className:A,isRaisedCardLayout:y,index:v,type:f,hideProductImg:b=!1,displayDiscount:T,analyticsItemListingId:C,analyticsItemListingName:E,dataAttributes:j}=e,_=(0,o.rd)(),N=(null==_?void 0:null===(a=_.query)||void 0===a?void 0:a.catalog)||"",{classes:S,cx:I}=g(),R="product-card-".concat(t.productNumber).concat(t.brand.key,"-").concat(n),k=(0,u.Gd)(),M="".concat(f," - ").concat(k);return(0,i.jsxs)("div",{className:I(A,"promotions-slider-div"),"data-index":v,...j,children:[x&&(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:N}),passHref:!0,children:(0,i.jsx)("a",{className:S.link,"data-testid":R,id:R,onClick:()=>{h&&h(),(0,c.e)({creativeSlot:M,product:t,indexPosition:v,carouselType:f,promoItemId:C,promoItemName:E})},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:I({[S.footer]:!y,[S.footerRaisedCard]:y}),children:(0,i.jsx)(l.A,{size:"large",color:"primary",variant:"outlined",fullWidth:!0,onClick:()=>{s(),(0,c.e)({creativeSlot:M,product:t,indexPosition:v,carouselType:f,promoItemId:C,promoItemName:E})},className:S.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:()=>ed});var i=t(37876),n=t(14232),r=t(39324),l=t.n(r),s=t(89099),o=t(67994),d=t(99220),c=t(78206),u=t(28888);function p(){let e=(0,u._)(["\n query PricingAndAvailabilityForCustomer(\n $input: GetCustomerPricingForProductInput!\n ) {\n getCustomerPricingForProduct(input: $input) {\n products {\n dealerId\n items {\n sku\n brand\n listPrice\n price\n qty\n cartItemId\n }\n }\n }\n }\n"]);return p=function(){return e},e}let m=(0,t(82897).J1)(p());var g=t(54753),h=t(7645),x=t(5411),A=t(77742),y=t(8733),v=t(776),f=t(36382),b=t(10113),T=t(17679),C=t(11788),E=t(88887),j=t(68748),_=t(57477),N=t(21289),S=t(70114);let I=(0,d.makeStyles)()(e=>({shippingMessage:{display:"flex",alignItems:"center",fontSize:e.typography.pxToRem(14),"& > *":{marginRight:e.spacing(2)}}})),R=e=>{let{material:a}=e,{classes:t}=I();return(0,i.jsxs)(i.Fragment,{children:[a.shipsToday&&(0,i.jsxs)(h.A,{mb:6,className:t.shippingMessage,children:[(0,i.jsx)(N.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)(S.A,{color:"secondary"}),(0,i.jsx)(y.A,{...g.A.FREE_FREIGHT})]})]})},k=(0,d.makeStyles)()(e=>({vr4:{marginBottom:e.spacing(4)}})),M=e=>{let{contactInfo:a}=e,{classes:t}=k();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 P=t(35967),O=t(12197),L=t(95349);let B=(0,d.makeStyles)()(e=>({pricingInfo:{display:"flex",alignItems:"flex-end",[e.breakpoints.down("md")]:{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("md")]:{margin:e.spacing(0,0,2)}}})),F=e=>{let{material:a}=e,{classes:t}=B();return a.hidePriceMessageKey?(0,i.jsx)(L.A,{msgKey:a.hidePriceMessageKey}):(0,i.jsxs)("div",{className:t.pricingInfo,children:[!!a.price&&(0,i.jsx)(O.A,{variant:"h2",component:"div",children:(0,i.jsx)(P.Gr,{style:"currency",currencyDisplay:"symbol",currency:a.currency,value:a.price})}),a.price&&a.listPrice&&a.listPrice>a.price?(0,i.jsx)(O.A,{variant:"h2",component:"div",className:t.listPrice,children:(0,i.jsx)(P.Gr,{style:"currency",currencyDisplay:"symbol",currency:a.currency,value:a.listPrice})}):null]})};var w=t(83198),D=t(75352),W=t(85150),U=t(73431),H=t(17685);let G=e=>{let{dealerCount:a}=e,{formatMessage:t}=(0,A.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)})},z=e=>{let{preferredDealerName:a,noPriceForDealer:t}=e,{formatMessage:n}=(0,A.A)(),{classes:r}=(0,W.A)();if(t)return(0,i.jsxs)("span",{className:r.seeDealerOptionsText,children:[(0,i.jsx)(w.A,{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,{})},Y=e=>{let{customerPricingResponse:a,materialPricing:t,selectCallback:r,setFieldValue:l,values:s}=e,{classes:o}=(0,W.A)(),{getSitePreference:d,isDTAQZuCustomer:c,currentUserState:u,userIsLoggedIn:p}=(0,C.iZ)(),{userSession:m}=(0,H.j)(),[g,A]=(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,U.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;A(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)(z,{preferredDealerName:null!=T?T:b,noPriceForDealer:!1}),(0,i.jsx)(x.A,{variant:"text",className:o.seeDealerOptionsLink,onClick:()=>v(!0),children:(0,i.jsx)(G,{dealerCount:g})})]}),y&&(0,i.jsx)(D.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),q=t(70210),K=t(71662),Q=t(61622),X=t(40002),$=t(77660),Z=t(40352),J=t(81232),ee=t(83707),ea=t(78272),et=t(52710),ei=t(75020),en=t(86680),er=t(88700),el=t(38882),es=t(94767);let eo=(0,d.makeStyles)()(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("lg")]:{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("lg")]:{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)}})),ed=e=>{var a,t;let{materialPricing:r,canAddToCart:d,renderSecondaryAction:u,marketplaceOfferId:p,productName:N,erpType:S,productKey:I,brandKey:k,images:P,discontinuedPricingInfo:O,multiCountryData:L}=e,{classes:B,cx:w}=eo(),D=(0,s.useRouter)(),W=(0,o.m)(),{formatMessage:U}=(0,A.A)(),H=(0,Z.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},[ed,ec]=(0,n.useState)(z),{getSitePreference:eu,isDTAQZuCustomer:ep,isMultiCountryUser:em}=(0,C.iZ)(),eg=(0,es.dU)(),{publicRuntimeConfig:{featureFlags:eh}}=l()(),ex=eu(C.VD.HideAddToCartForPrepackItems),[eA,ey]=(0,n.useState)(r[0]),[ev,ef]=(0,n.useState)(()=>(0,ea.aA)(z.quantity,null==eA?void 0:eA.minOrderQuantity,eg)),[eb,eT]=(0,n.useState)(""),[eC,eE]=(0,n.useState)(!1),[ej,e_]=(0,n.useState)(""),[eN,eS]=(0,n.useState)(),eI=eu(C.VD.PreferredDealerId),eR=(null===(t=D.query)||void 0===t?void 0:t.context)==="bbe",ek=eh.dealerCartEnabled&&ep&&!eR&&!!eI,eM=D.asPath.includes("/compare"),eP=(0,f.g9)(),eO=(0,n.useContext)(et.E),eL=async(e,a)=>{let{setSubmitting:t,resetForm:i}=a;(0,v.xy)({items:[eA],productListPageName:D.asPath.includes("/search")?v.L1.SearchResultPage:v.L1.ProductDetailPage}),(0,en.p8)([e],[eA],er.k9.SearchResultPage),await eP([{materialNumber:e.materialNumber,quantity:e.quantity,marketplaceOfferId:p}],t,i,"marketplace"===eA.catalogType),ef((0,ea.aA)(z.quantity,null==eA?void 0:eA.minOrderQuantity,eg))},eB=e=>{let[a]=r.filter(a=>(null==a?void 0:a.materialNumber)===e);ey(a)},eF=(0,el.h)(L,(e,a)=>{var t,i;eT(a);let n=null==L?void 0:null===(t=L.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:[];ey(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}));eS(await W.query({query:m,variables:{input:{products:[{dealerId:e,items:i}]}}}))},eD=(e,a,t)=>{a.setFieldValue(t.name,e),ef((0,ea.aA)(e,null==eA?void 0:eA.minOrderQuantity,eg))},eW=()=>{(0,ei.Sm)({action:"check availability details",section:"modal p&a",component:"modal",elementType:"link",elementText:"details",material:eA})};if((0,n.useMemo)(()=>ec(z),[G]),(0,n.useEffect)(()=>{ef((0,ea.aA)(z.quantity,null==eA?void 0:eA.minOrderQuantity,eg))},[eA]),(0,n.useEffect)(()=>{var e,a,t,i;eE(!!(null==eA?void 0:null===(a=eA.availabilities)||void 0===a?void 0:null===(e=a[0])||void 0===e?void 0:e.displayInquireLink));let n=null==eA?void 0:null===(i=eA.availabilities)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.contactInfo;e_([null==n?void 0:n.contactPhone,null==n?void 0:n.contactEmail].filter(e=>!!e).join(" ".concat(U(g.A.OR)," ")))},[eA,U]),(0,n.useEffect)(()=>{if(null==eN?void 0:eN.data){var e,a,t;let i=null==eN?void 0:null===(a=eN.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===eA.materialNumber);l&&ey(l)}},[null==eN?void 0:eN.data]),(0,n.useEffect)(()=>{var e,a;if(null==L?void 0:null===(e=L.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let[e]=null==L?void 0:L.getPricingForMultiCountryProducts;eT(null!==(a=null==e?void 0:e.country)&&void 0!==a?a:"")}},[]),(!Array.isArray(r)||!r.length)&&O){let e=(0,Q.j)(null==O?void 0:O.replacementProducts);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(J.A,{discontinuedPricingInfo:O}),!eM&&e&&(0,i.jsx)(K.A,{type:X.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:I,brandKey:k,images:P},products:e,slidesToShow:H({xs:1,sm:2,lg:3}),withoutControls:e.length<=4})]})}return eA||ey(r[0]),(0,i.jsx)("div",{className:B.body,children:(0,i.jsx)(c.l1,{initialValues:ed,onSubmit:eL,enableReinitialize:!0,children:e=>{var a;let{isSubmitting:t,initialValues:n,values:l,setFieldValue:s}=e;return ed.materialNumber!==n.materialNumber?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(c.lV,{children:[em&&L?eF:null,em?null==L?void 0:null===(a=L.getPricingForMultiCountryProducts)||void 0===a?void 0:a.map((e,a)=>eb===(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)(T.A,{field:r,meta:l,form:n,size:"large",onChange:e=>{r.onChange(e),n.setFieldValue("quantity",1),eB(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:B.materialInfo,children:(0,i.jsx)(_.A,{value:eA.packageSize})}),!eC&&(0,i.jsx)(F,{material:eA}),(0,i.jsx)(h.A,{mt:2,children:eA.isPBAvailable?(0,i.jsx)(q.A,{materialNumber:eA.materialNumber,brand:eA.brand,productName:null!=N?N:"",erp_type:S}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(E.A,{material:eA,canAddToCart:d,gaDetailsClick:eW})}),(0,i.jsx)(R,{material:eA}),(0,i.jsx)(ee.A,{expirationDate:null==eA?void 0:eA.expirationDate,displayColon:!0,displayInline:!0,outerClassName:B.expiryDate}),(null==eA?void 0:eA.minOrderQuantity)&&(null==eA?void 0:eA.minOrderQuantity)>1?(0,i.jsxs)("div",{className:w(B.minimumQuantity,{[B.minimumQuantityError]:ev}),children:[(0,i.jsx)(y.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==eA?void 0:eA.minOrderQuantity]}):null,eC?(0,i.jsx)(M,{contactInfo:ej}):(0,i.jsx)(i.Fragment,{children:d&&!ex?(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)(j.A,{...n,size:"large",filled:!0,onChange:e=>eD(e,a,n),min:1,onBlur:()=>{n.value<1&&a.setFieldValue(n.name,1)},disabled:t,inputProps:{inputMode:"numeric"},error:!!ev})}})}),ek&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(Y,{customerPricingResponse:eN,materialPricing:null==e?void 0:e.materialPricing,selectCallback:ew,setFieldValue:s,values:l})}),(0,i.jsx)(x.A,{type:"submit",variant:"contained",color:"secondary",disabled:t||ev,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}),eA.isBuyNow&&!ex?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(V.A,{materialNumber:l.materialNumber,quantity:l.quantity,gaType:"search results page"})}):null,ex?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(b.A,{quantity:l.quantity,materialNumber:eA.materialNumber,materialId:eA.materialId,type:eA.type,brand:null==eA?void 0:eA.brand,productName:null==eA?void 0:eA.materialDescription,productId:null==eA?void 0:eA.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)(T.A,{field:n,meta:l,form:a,size:"large",onChange:e=>{n.onChange(e),a.setFieldValue("quantity",1),eB(e.target.value)},disabled:t||r.length<2,options:r.map(e=>({label:e.materialNumber,value:e.materialNumber}))})}})}),(0,i.jsx)("div",{className:B.materialInfo,children:(0,i.jsx)(_.A,{value:eA.packageSize})}),!eC&&(0,i.jsx)(F,{material:eA}),(0,i.jsx)(h.A,{mt:2,children:eA.isPBAvailable?(0,i.jsx)(q.A,{materialNumber:eA.materialNumber,brand:eA.brand,productName:null!=N?N:"",erp_type:S}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(et.M,{...eO,brand:eA.brand,item:eA.materialNumber,pricing:eA,children:(0,i.jsx)(E.A,{material:eA,canAddToCart:d,gaDetailsClick:eW})})}),(0,i.jsx)(R,{material:eA}),(0,i.jsx)(ee.A,{expirationDate:null==eA?void 0:eA.expirationDate,displayColon:!0,displayInline:!0,outerClassName:B.expiryDate}),(null==eA?void 0:eA.minOrderQuantity)&&(null==eA?void 0:eA.minOrderQuantity)>1?(0,i.jsxs)("div",{className:w(B.minimumQuantity,ev&&B.minimumQuantityError),children:[(0,i.jsx)(y.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==eA?void 0:eA.minOrderQuantity]}):null,eC?(0,i.jsx)(M,{contactInfo:ej}):(0,i.jsx)(i.Fragment,{children:d&&!ex?(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)(j.A,{...n,size:"large",filled:!0,onChange:e=>eD(e,a,n),min:1,onBlur:()=>{n.value<1&&a.setFieldValue(n.name,1)},disabled:t,inputProps:{inputMode:"numeric"},error:!!ev})}})}),ek&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(Y,{customerPricingResponse:eN,materialPricing:r,selectCallback:ew,setFieldValue:s,values:l})}),(0,i.jsx)(x.A,{type:"submit",variant:"contained",color:"secondary",disabled:t||ev,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}),eA.isBuyNow&&!ex?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(V.A,{materialNumber:l.materialNumber,quantity:l.quantity,marketplace:eA.catalogType===$.Mh.Marketplace,gaType:"search results page"})}):null,ex?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(b.A,{quantity:l.quantity,materialNumber:eA.materialNumber,materialId:eA.materialId,type:eA.type,brand:null==eA?void 0:eA.brand,productName:null==eA?void 0:eA.materialDescription,productId:null==eA?void 0:eA.product})}),!!u&&u()]})]})})}})})}},86767:(e,a,t)=>{t.d(a,{A:()=>h});var i=t(37876);t(14232);var n=t(48547),r=t(99220),l=t(96241),s=t(76023),o=t(77660),d=t(49100),c=t(8759),u=t(21328),p=t(11788);let m=(0,r.makeStyles)()(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)}})),g=(e,a)=>{switch(a.type){case n.Ay.stateChangeTypes.touchEnd:case n.Ay.stateChangeTypes.mouseUp:case n.Ay.stateChangeTypes.blurInput:case n.Ay.stateChangeTypes.keyDownEscape:return{...a,inputValue:e.inputValue};default:return a}},h=e=>{let{value:a,onBlur:t,onChange:r,onSelect:h,rootClass:x,rootStyle:A,error:y,id:v,overrideMarketplaceByTag:f,...b}=e,{catalogType:T,filter:C}=(0,u.O)(),{isDarmstadtUser:E}=(0,p.iZ)(),{classes:j}=m(),{data:_}=(0,d.t1)({ssr:!1,skip:a.length<3,variables:{input:{term:a,types:[o.B0.MaterialNumber],overrideMarketplaceByTag:f,filter:C,catalogType:T,orgId:E?"DARMSTADT":void 0}}});return(0,i.jsx)(n.Ay,{id:v,inputValue:a,onInputValueChange:e=>r(e),itemToString:e=>e?e.label:"",stateReducer:g,onSelect:h,children:e=>{let{getInputProps:a,getItemProps:n,getMenuProps:r,isOpen:o,inputValue:d,highlightedIndex:u,closeMenu:p}=e,{onBlur:m,onChange:g,onKeyDown:v,...f}=a();return(0,i.jsxs)("div",{className:x||void 0,style:A,children:[(0,i.jsx)(c.A,{autoComplete:"off",inputProps:{...f},onChange:g,onKeyDown:e=>{var a;let t=o&&!!(null==_?void 0:null===(a=_.getSearchSuggestions)||void 0===a?void 0:a.suggestions.materialNumber.length);if("Enter"===e.key&&t&&null==u){e.preventDefault(),h&&h(null),p();return}v&&v(e)},onBlur:e=>{e&&(m&&m(e),t&&t(e))},value:d,error:y,...b}),o&&d&&d.length>=3&&_&&_.getSearchSuggestions&&!y&&(0,i.jsx)("div",{...r(),className:j.autoSuggestContainer,children:(0,i.jsx)(l.A,{square:!0,className:j.autoSuggest,children:_.getSearchSuggestions.suggestions.materialNumber.map((e,a)=>(0,i.jsx)(s.A,{...n({key:e.label,index:a,item:e}),component:"div",selected:a===u,className:j.autoSuggestItem,children:e.label},e.label))})})]})}})}},87254:(e,a,t)=>{t.d(a,{A:()=>d});var i=t(37876);t(14232);var n=t(99220),r=t(12197),l=t(40597),s=t(47671);let o=(0,n.makeStyles)()(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("md")]:{top:"0",right:"10px"},[e.breakpoints.down("sm")]:{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)}})),d=e=>{let{showTooltip:a=!1,toolTipPlacement:t="top"}=e,{classes:n,cx:d}=o(),c=(0,i.jsx)(r.A,{className:n.promoTitle,children:"Save 15% off certain sizes to celebrate 50 years of the Sigma-Aldrich\xae brand. Offer ends December 26."}),u=(0,i.jsx)(s.A,{label:(0,i.jsx)(r.A,{className:n.promoChipLabel,children:"Up to 15% Off"}),className:d(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(99220).makeStyles)()(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),{classes:h}=l(),x=()=>(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&&x(),o.length-1>d&&!c&&"..."]});let A=null===(a=String(o))||void 0===a?void 0:a.split(" ").splice(0,d).join(" "),y=A.split("").lastIndexOf(",")===A.length-1?A.slice(0,A.length-1):A,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&&x(),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)},90589:(e,a,t)=>{t.d(a,{A:()=>x});var i=t(37876),n=t(14232),r=t(76209),l=t(99220),s=t(57717),o=t(40002),d=t(71007),c=t(84830),u=t(11788),p=t(11148),m=t(50524),g=t(54366);let h=(0,l.makeStyles)()(e=>({recentlyViewedContainer:{borderTop:"1px solid ".concat(e.palette.grey[300]),paddingTop:e.spacing(2),[e.breakpoints.down("md")]:{paddingBottom:e.spacing(14)}}})),x=e=>{var a;let{dispType:t,className:l,productKey:x="",brand:A="",searchKey:y="",analyticsItemListingId:v,analyticsItemListingName:f,slidesToShow:b,setShouldDisplay:T,condensed:C=!1,productNumber:E,showPdpRedesignLevelTwo:j}=e,{classes:_,cx:N}=h(),S=(0,p.rd)(),[I,R]=(0,n.useState)(!1);(0,n.useEffect)(()=>{R(!0)},[]);let k=(0,m.Gd)(),M=()=>{switch(k.toLowerCase()){case"pdp":return x.toLowerCase();case"srp":return y.toLowerCase();case"document search":return S.query.tab||"sds";default:return g.PP.NotAvailable}},{isBlueB2BUser:P}=(0,u.iZ)(),{data:O,loading:L}=(0,r.wJ)({variables:{dispType:t,productKey:x,brand:A,...P?{erpType:c.G.Blue}:{}},ssr:!1,fetchPolicy:"no-cache",skip:!I,onCompleted:e=>{var a;M()===g.PP.NotAvailable||e&&(null==e?void 0:null===(a=e.getRecentlyViewedProducts)||void 0===a?void 0:a.products.length)!==0||(0,d.sendEmptyRecommendationGA4Event)({action:k,detail:M(),section:"recently viewed products",productId:null==E?void 0:E.toLowerCase(),productBrand:A.toLowerCase()})}}),B=(null==O?void 0:null===(a=O.getRecentlyViewedProducts)||void 0===a?void 0:a.products)||[],F=B.length>0;return((0,n.useEffect)(()=>{T&&T(F)},[F,L]),L)?null:F?(0,i.jsx)("div",{className:N(l,_.recentlyViewedContainer),children:(0,i.jsx)(s.A,{type:o.j.RecentlyViewed,products:B,analyticsItemListingId:v,analyticsItemListingName:f,slidesToShow:b,condensed:C,showPdpRedesignLevelTwo:j})}):null}},91721:(e,a,t)=>{t.d(a,{$Y:()=>I,Ay:()=>R,Pe:()=>j,zO:()=>S});var i=t(37876),n=t(14232),r=t(8733),l=t(99220),s=t(35877),o=t(36258),d=t(82440),c=t.n(d),u=t(12197),p=t(64204),m=t(71541),g=t(92189),h=t(23575),x=t(45496),A=t(85581),y=t(930),v=t(50524),f=t(40352),b=t(30510),T=t(40002),C=t(68215),E=t(71605);let j=.33,_=(0,l.makeStyles)()((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)}}})),N=(0,l.makeStyles)()((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")}}})),S=e=>{let{title:a,isHero:t,type:n}=e,{classes:l,cx:s}=N(),o=a||(T.G[n]?(0,i.jsx)(r.A,{...T.G[n]}):null==n?void 0:n.replace(/[-_]/g," "));return a&&"string"!=typeof a?(0,i.jsx)(i.Fragment,{children:o}):(0,i.jsx)(u.A,{variant:"h2",className:s(l.title,t&&l.productHeroCardTitle),children:o})},I=e=>{let{productHeroCard:a,products:t,creativeSlot:n,carouselType:r,pageType:l,pageTypeDetails:s}=e,{classes:o,cx:d}=_();return{renderCenterLeftControls:e=>{let c=0===e.currentSlide;return(0,i.jsx)(i.Fragment,{children:!a&&(0,i.jsx)(p.A,{className:d(o.navBtn,o.navBtnLarge,o.navBtnLeft),disabled:c,onClick:()=>(0,C.t)(e,t,"prev",n,r,l,s),"aria-label":"previous",children:(0,i.jsx)(h.A,{className:d(o.icon,{[o.iconDisabled]:c})})})})},renderCenterRightControls:e=>{let c=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,C.t)(e,t,"next",n,r,l,s),"aria-label":"next",children:(0,i.jsx)(x.A,{className:d(o.icon,{[o.iconDisabled]:!!e.slidesToScroll&&c})})})})},renderBottomCenterControls:e=>{let c=0===e.currentSlide,m=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,C.t)(e,t,"prev",n,r,l,s),"aria-label":"previous",className:d(o.navBtn,o.navBtnSmall),children:(0,i.jsx)(h.A,{className:d(o.icon,{[o.iconDisabled]:c})})}),(0,i.jsxs)(u.A,{variant:"body2",children:[Math.floor(e.currentSlide/e.slidesToShow)+1," of"," ",Math.round(e.slideCount/e.slidesToShow)]}),(0,i.jsx)(p.A,{disabled:m,onClick:()=>(0,C.t)(e,t,"next",n,r,l,s),"aria-label":"next",className:d(o.navBtn,o.navBtnSmall),children:(0,i.jsx)(x.A,{className:d(o.icon,{[o.iconDisabled]:!!e.slidesToScroll&&m})})})]})}}},R=e=>{let{type:a,products:t,withoutControls:r,slidesToShow:l,condensed:d,preloadCardImages:u,title:p,showPdpRedesignLevelTwo:h,productHeroCard:x=!1,isProductRecommendation:C=!1,hideProductImg:N=!1,displayDiscount:R,analyticsItemListingId:k,analyticsItemListingName:M,gaPricingOverrides:P}=e,{classes:O,cx:L}=_(),B=(0,f.Ay)(),F=(0,v.Gd)(),w="".concat(a," - ").concat(F),D=I({productHeroCard:x,products:t,creativeSlot:w,carouselType:a,pageType:k,pageTypeDetails:M}),W=a===T.j.CartRecommendedProducts,[U,H]=(0,n.useState)(null),G=(0,s.A)(),z=!0===(0,m.A)(G.breakpoints.up("md")),Y=(0,n.useRef)(null),[V,q]=(0,n.useState)(!1),K=(0,o.B)(Y,{threshold:j}),Q=B(h?{xs:1,sm:2,md:4,lg:6}:{xs:1,sm:2,md:3,lg:4}),X=x&&z?2:l||Q;if(!t||(null==t?void 0:t.length)===0)return null;if((null==K?void 0:K.isIntersecting)&&!V){let e=t.slice(0,X);(0,y.W)({creativeSlot:w,carouselType:a,promoItemId:k,promoItemName:M,products:e}),q(!0)}let $=(0,E.BI)(a,k,M);return(0,i.jsxs)("div",{"data-testid":a,id:a,className:L({[O.cartRecommended]:W}),ref:Y,"data-creative_slot":w,"data-event":"ga4-ecomm-promotion",children:[(0,i.jsx)(g.A,{maxWidth:"lg",className:L({[O.withoutControls]:r}),children:(0,i.jsxs)("div",{className:L(O.content,{[O.contentCondensed]:d},x&&O.productHeroCardContent,C&&O.contentInTab),children:[(0,i.jsx)(S,{title:p,isHero:x,type:a}),(0,i.jsx)(c(),{slidesToScroll:X,slidesToShow:X,disableEdgeSwiping:!0,withoutControls:r,...D,children:t.map((e,t)=>(0,i.jsx)(A.A,{index:t,product:e,testId:a,onViewPrice:()=>H(e),preloadCardImages:u,className:L(O.card,x&&O.productHeroTile),type:a,hideProductImg:N,displayDiscount:R,analyticsItemListingId:k,analyticsItemListingName:M,"data-index":t,dataAttributes:{"data-item_brand":e.brand.key||e.brand.erpKey,"data-item_id":e.productNumber,"data-item_list_id":$.list_id,"data-item-list_name":$.list_name,"data-gaProductCode":e.gaProductCode||""}},t))})]})}),U&&(0,i.jsx)(b.A,{...U,showAddToList:!0,open:!0,image:U.images[0],onClose:()=>H(null),gaType:v.Yo[a],erpType:(null==U?void 0:U.erp_type)||[],gaPricingOverrides:P})]})}},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(99220),d=t(98580);let c=(0,o.makeStyles)()(e=>({line:{margin:e.spacing(3,0)}})),u=e=>{let{open:a,onCancel:t}=e,{classes: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})})]})})}},93591:(e,a,t)=>{t.d(a,{A:()=>p});var i=t(37876);t(14232);var n=t(8733),r=t(99220),l=t(34415),s=t(54753),o=t(57477),d=t(46129),c=t(71007);let u=(0,r.makeStyles)()(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,{classes:p}=u(),{messageKey:m,messageValue:g,messageVariable1:h,messageVariable2:x}=null!=t?t:{},A=m&&!g&&!s.A[m],y=null==g?void 0:g.replace("%0","{productLink}"),v=()=>x&&h?(0,i.jsx)(d.N,{href:x,onClick:()=>{(0,c.sendSelectItemEvent)(x,r)},children:(0,i.jsx)(o.A,{value:h})}):null;return A?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.makeStyles)()(e=>({tRow:{display:"flex",alignItems:"center","& > div":{"&:nth-of-type(1)":{width:"4%"},"&:nth-of-type(2)":{width:"16%"},"&:nth-of-type(3)":{width:"38%"},"&:nth-of-type(4)":{width:"16%"},"&:nth-of-type(5)":{width:"10%"},"&:nth-of-type(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))})]})}},94767:(e,a,t)=>{t.d(a,{$1:()=>h,VI:()=>A,c8:()=>m,dU:()=>y,jm:()=>g,lr:()=>x,tb:()=>v});var i=t(27651),n=t(94295),r=t(51996),l=t(17685),s=t(11148),o=t(11788),d=t(39324),c=t.n(d),u=t(14232);let{publicRuntimeConfig:{discoEnabledCountries:p}}=c()(),m=()=>{let e=(0,n.L)(i.US.countryCode),a=(0,n.L)(i.CA.countryCode);return e||a},g=()=>{let{userSession:e}=(0,l.j)();return[i.SE.countryCode,i.DK.countryCode,i.NO.countryCode,i.FI.countryCode,i.GB.countryCode,i.BE.countryCode,i.NL.countryCode,i.LU.countryCode,i.IE.countryCode,i.DE.countryCode,i.CH.countryCode,i.AT.countryCode,i.FR.countryCode,i.IT.countryCode,i.ES.countryCode,i.PT.countryCode].includes(e.country.toLocaleUpperCase())},h=()=>{let{userSession:e}=(0,l.j)(),a=(0,u.useMemo)(()=>e.country.toLocaleUpperCase(),[e.country]);return(0,u.useMemo)(()=>null==p?void 0:p.includes(a),[a,p])},x=()=>{let{erpSystemId:e}=(0,o.iZ)();return e===s.Cw.Iscala},A=()=>{let{userSession:e}=(0,l.j)(),{getCountryDetails:a}=(0,r.Y)();return a(e.country.toLocaleUpperCase()).erpSystemId===s.Cw.Qrp},y=()=>{let e=(0,n.L)(i.ID.countryCode),a=(0,n.L)(i.TW.countryCode),t=(0,n.D)(i.IN.countryCode),r=(0,n.D)(i.SG.countryCode);return e||a||t||r},v=()=>{let{userSession:e}=(0,l.j)();return[i.US.countryCode,i.AU.countryCode,i.NZ.countryCode,i.JP.countryCode,i.AS.countryCode,i.FR.countryCode,i.DE.countryCode,i.CH.countryCode].includes(e.country.toLocaleUpperCase())}},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:x,minOrderQuantity:A,setShowMultipleMinimumQuantityError:y,setMultipleMinimumQuantityError:v,isMOQLessThanCountry:f,...b}=e,T=(0,o.A)(),C=(0,d.aA)(c.value,A,f),E=C?T.formatMessage(r.A.MIN_N_QUANTITY,{min:A}):(0,n.O6)(u.errors,c.name),j=C||(0,n.O6)(u.touched,c.name),_=E&&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,A,f);y&&y(a),v(x,a)},delay:m,error:!!_,"aria-describedby":(_||p)&&"".concat(c.name,"-help-text"),onBlur:()=>{g&&c.value{t.d(a,{A:()=>E});var i=t(37876),n=t(14232),r=t(77742),l=t(8733),s=t(5411),o=t(7645),d=t(99220),c=t(66065),u=t(93591),p=t(77660),m=t(54753),g=t(97710),h=t(66587),x=t(81927),A=t(4648),y=t(20114),v=t(40859),f=t(69485),b=t(19490),T=t(3582);let C=(0,d.makeStyles)()(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}})),E=e=>{var a,t,d,E;let{material:j,initialShipEstimate:_,canAddToCart:N,countryCode:S,isDynamicProductCarousel:I,isLoading:R=!1,hideDetailsLink:k=!1,gaDetailsClick:M,source:P,gaSection:O,gaComponent:L}=e,{classes:B,cx:F}=C(),[w,D]=(0,n.useState)(!1),W=()=>{D(!1)},{formatMessage:U}=(0,r.A)(),H=null===(a=j.availabilities)||void 0===a?void 0:a[0],{availableQtyInStock:G}=j,z=null!==G,Y=H&&(null==H?void 0:H.key)===p.qL.InquireForPriceAndAvailability,[V,q]=(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:F(B.baseClass,{[B.topAligned]:Y}),onClick:()=>q(!0),children:(0,i.jsx)(f.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY})}),V&&(0,i.jsx)(A.A,{open:V,setModalOpen:q,headerContent:j.materialNumber,bodyContent:(0,i.jsx)(o.A,{mr:12,mb:8,children:(0,i.jsx)(f.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY_MODAL,values:{inquirePriceContactInfo:a}})})})]})}let K=e=>{e.preventDefault(),M&&M(),D(!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:B.shipEstimateWithLink,children:[(0,i.jsxs)("div",{className:B.shipEstimateColumn,children:[(null==H?void 0:null===(t=H.availabilityOverwriteMessage)||void 0===t?void 0:t.messageKey)?(0,i.jsx)(c.A,{availabilityOverwrite:H.availabilityOverwriteMessage}):I?(0,i.jsx)(v.A,{availabilities:(null==j?void 0:j.availabilities)||[],updateAvailable:R,leadTime:null==j?void 0:j.leadTime}):(0,i.jsxs)(i.Fragment,{children:[z?(0,i.jsxs)("div",{className:F(B.initialShipText,{[B.warningText]:z}),children:[(0,i.jsx)(y.A,{className:B.availabilityIcon,color:"warning"}),(0,i.jsx)(f.J,{id:"DEPLETED_PRODUCTS_QTY_FEW_LEFT_IN_STOCK",defaultMessage:"{availableQtyInStock} left in stock",values:{availableQtyInStock:G}})]}):(0,i.jsx)("div",{children:_}),(0,i.jsxs)("span",{children:[w&&(0,i.jsx)(x.A,{isModalOpen:w,onModalClose:()=>W(),material:j,canAddToCart:N,countryCode:S,availableQty:G,source:P}),!k&&((null==H?void 0:H.displayFromLink)||Q)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("span",{className:B.shipFromLink,onClick:K,onKeyPress:K,tabIndex:0,role:"button",id:"mat-num-".concat(j.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,T.M)(H,5)?(0,i.jsxs)("span",{className:B.fromWarehouse,children:[(0,i.jsx)(l.A,{...m.A.PRODUCT_AVAILABILITY_FROM})," ",H.plantLoc]}):null]})]}),(0,i.jsxs)(o.A,{pt:.5,children:[j.shipsToday&&(0,i.jsx)(h.A,{type:g.u2.SameDay,gaSection:O,gaComponent:L,material:j}),j.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===(E=j.promotionalMessage)||void 0===E?void 0:E.messageKey)&&(0,i.jsx)(o.A,{mt:1,className:B.promoWrapper,children:(0,i.jsx)(b.A,{promotional:j.promotionalMessage})})]})})}},98580:(e,a,t)=>{t.d(a,{A:()=>u});var i=t(37876),n=t(99220),r=t(8733),l=t(54753),s=t(52413),o=t(17685),d=t(11148);let c=(0,n.makeStyles)()(e=>({link:{justifyContent:"left",paddingLeft:e.spacing(1)}})),u=()=>{let{classes: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(57477);let p=(0,l.makeStyles)()(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=4578-90822b1973854e6e.js.map