"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8468],{930:(e,t,a)=>{a.d(t,{W:()=>c,e:()=>u});var i=a(139324),n=a.n(i),r=a(364272),l=a(971605),o=a(700776);let{publicRuntimeConfig:{isTealiumEnabled:s,isGoogleTagManagerEnabled:d}}=n()(),c=e=>{let{creativeSlot:t,products:a,carouselType:i,promoItemId:n,promoItemName:c}=e,u=a.map((e,t)=>{let a=e.analyticsPosition||t+1;return(0,l.p6)(null==e?void 0:e.gaProductCode,e,a,i,n,c)}),p={event:"view_promotion",ecommerce:{creative_slot:t.toLowerCase(),items:u}};d&&(0,r.BI)({payload:p}),s&&(0,o.jW)("view_promotion",a,t,i,n,c)},u=e=>{let{product:t,indexPosition:a=0,creativeSlot:i,carouselType:n,promoItemId:c,promoItemName:u,selectType:p="select_promotion"}=e,m=(0,l.p6)(null==t?void 0:t.gaProductCode,t,a+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),s&&(0,o.jW)("select_promotion",[t],i,n,c,u)}},2184:(e,t,a)=>{a.d(t,{Fo:()=>c});var i=a(428888);a(637876);var n=a(182897),r=a(792885);a(14232);var l=a(678248);function o(){let e=(0,i._)(["\n query MultiCountryPricingAndAvailability($productNumber: String!, $brand: String, $quantity: Int!, $checkForPb: Boolean, $materialIds: [String!], $displaySDS: Boolean = false, $catalogType: CatalogType) {\n getPricingForMultiCountryProducts(\n input: {productNumber: $productNumber, brand: $brand, quantity: $quantity, checkForPb: $checkForPb, materialIds: $materialIds, catalogType: $catalogType}\n ) {\n ...ProductPricingDetail\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(o(),r.$m);function c(e){let t={...s,...e};return l._(d,t)}},10781:(e,t,a)=>{a.d(t,{A:()=>C});var i=a(637876),n=a(14232),r=a(308733),l=a(877742),o=a(330566),s=a(877018),d=a(825628),c=a(177274),u=a(944131),p=a(278206),m=a(910430),g=a(211148),h=a(554753),x=a(838582),A=a(466784),y=a(830029),v=a(771007),f=a(317685),b=a(11788);let T=(0,a(599220).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)}})),C=e=>{var t,a,C,E;let{title:j=(0,i.jsx)(r.A,{...h.A.SEARCH_SAFETY_DATA_SHEET}),instructions:_=(0,i.jsx)(r.A,{...h.A.ENTER_PRODUCT_NUMBER_FOR_SDS}),isAdvancedSearch:S}=e,{formatMessage:N}=(0,l.A)(),I=(0,o.A)(),{classes:R,cx:k}=T(),{setGlobalSnackbarState:M}=(0,x.W)(),[P,L]=(0,n.useState)(!1),{userSession:O}=(0,f.j)(),{userErpType:B}=(0,b.iZ)(),w=e=>{var t,a,i,n;let r=null==e?void 0:e.getSdsCertificateSearch,l=!!(null==r?void 0:r.brands.length);if(r&&l){let e=(null===(t=r.sds[0])||void 0===t?void 0:t.languages.altLanguages.length)===1,i=(null===(a=r.sds[0])||void 0===a?void 0:a.languages.altLanguages[0])||"",n=r.brands[0]||"",l=r.productNumber;return 1===r.brands.length&&e?window.open("".concat(g.Q5.index(n,l,O.country,i,B)),"_blank"):L(!0)}{M({open:!0,message:N(h.A.ERROR_404_SDS_MESSAGE),variant:x.m$.Error});let t=N(h.A.ERROR_404_SDS_MESSAGE).replace(".","").toLowerCase();(0,v.sendErrorEvent)({description:t,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()})}},[F,{data:D}]=(0,m.b0)({onCompleted:e=>w(e),fetchPolicy:"no-cache"}),W=e=>(0,i.jsx)(s.A,{variant:"body2",style:{color:e?I.palette.error.main:I.palette.common.black},children:(0,i.jsxs)("b",{children:["* ",(0,i.jsx)(r.A,{...h.A.PRODUCT_NUMBER})]})});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{variant:"h3",className:R.vr4,children:j}),(0,i.jsx)(s.A,{className:k(R.vr4,R.instructions),children:_}),!S&&(0,i.jsx)(s.A,{variant:"body2",className:R.vr4,children:(0,i.jsx)(r.A,{...h.A.INDICATES_REQUIRED_FIELD})}),(0,i.jsx)(p.l1,{validateOnBlur:!1,validateOnChange:!1,initialValues:{productNumber:""},onSubmit:(e,t)=>{var a;F({variables:{productNumber:(null===(a=e.productNumber)||void 0===a?void 0:a.trim())||""}}),t.setSubmitting(!1)},children:e=>(0,i.jsx)("div",{children:(0,i.jsxs)(p.lV,{"data-testid":"sds-search-form",children:[(0,i.jsx)("div",{className:R.vr6,children:(0,i.jsx)(p.D0,{name:"productNumber",label:W(e.errors.productNumber),component:A.A,placeholder:"e.g. T1503",filled:!0,id:"sds-product-number-field",inputProps:{"data-testid":"sds-product-number-field"},validate:(0,c.jr)(u.Yj().trim().required(N(h.A.PLEASE_ENTER_PRODUCT_NUMBER)))})}),(0,i.jsx)(d.A,{"data-testid":"sds-search-submit",id:"sds-search-submit",type:"submit",variant:"contained",color:"primary",className:R.submitButton,disabled:e.isSubmitting,"aria-label":"Submit",size:"large",children:(0,i.jsx)(r.A,{...h.A.SEARCH})})]})})}),P&&(null==D?void 0:null===(t=D.getSdsCertificateSearch)||void 0===t?void 0:t.sds)&&(null==D?void 0:null===(a=D.getSdsCertificateSearch)||void 0===a?void 0:a.brands)&&(0,i.jsx)(y.A,{open:P,setModalOpen:L,brands:null==D?void 0:null===(C=D.getSdsCertificateSearch)||void 0===C?void 0:C.brands,sdsDetails:D.getSdsCertificateSearch.sds,productNumber:null==D?void 0:null===(E=D.getSdsCertificateSearch)||void 0===E?void 0:E.productNumber,isAdvancedSearch:!0})]})}},11975:(e,t,a)=>{a.d(t,{A:()=>c});var i=a(637876),n=a(11788),r=a(308733),l=a(607645);a(14232);var o=a(346129),s=a(327651),d=a(494295);let c=e=>{let{className:t}=e,{userIsLoggedIn:a}=(0,n.iZ)(),c=(0,d.D)(s.JP.countryCode);return a&&c?(0,i.jsxs)(l.A,{fontSize:12,className:t,children:[(0,i.jsx)(r.A,{id:"CONTACT_LOCAL_DEALER_MM",defaultMessage:"For delivery times and prices contact your dealer."})," ",(0,i.jsxs)(o.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}},21341:(e,t,a)=>{a.d(t,{A:()=>p});var i=a(637876);a(14232);var n=a(607645),r=a(236503),l=a(635877),o=a(305493);let s=()=>{let e=(0,l.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{mb:12}),(0,i.jsx)(r.A,{container:!0,spacing:4,children:Array(12).fill({}).map((t,a)=>(0,i.jsx)(r.A,{item:!0,xs:6,sm:4,children:(0,i.jsx)(n.A,{border:1,borderColor:e.palette.grey["50"],mb:{xs:3,sm:6},p:{xs:2,sm:4},children:(0,i.jsxs)(r.A,{container:!0,direction:"column",spacing:2,children:[(0,i.jsx)(r.A,{item:!0,sm:12,children:(0,i.jsx)(o.A,{height:200,width:1})}),(0,i.jsx)(r.A,{item:!0,sm:12,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"},mb:{sm:2}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(r.A,{item:!0,sm:7,children:(0,i.jsx)(o.A,{height:18,width:1,borderRadius:{xs:2,sm:"borderRadius"}})})]})},a)},a))})]})};var d=a(393783),c=a(445249),u=a(515524);let p=e=>{let{view:t,error:a}=e,r=t===c.Z.list?d.A:s;return a?(0,i.jsx)(n.A,{display:"flex",flexDirection:"column",alignItems:"center",mt:20,children:(0,i.jsx)(u.A,{error:a})}):(0,i.jsx)(r,{})}},25771:(e,t,a)=>{a.d(t,{A:()=>x});var i=a(637876),n=a(14232),r=a(211148),l=a(852413),o=a(607645),s=a(599220),d=a(635877),c=a(29468),u=a(308733),p=a(554753),m=a(197710),g=a(192881);let h=(0,s.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:t,isMarketplace:a,marketplaceSellerId:s="",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=a&&!!s&&!!x&&!!E,[_,S]=(0,n.useState)(!1),N=()=>{S(e=>!e)};return j?(0,i.jsxs)(o.A,{display:"flex",className:b(f.root,t),children:[(0,i.jsxs)(o.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,s),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:N}),_&&(0,i.jsx)(g.A,{open:_,onCancel:N})]})]})]}),v?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{display:"flex",children:(0,i.jsx)("span",{className:f.verticalLine})}),(0,i.jsxs)(o.A,{display:"flex",className:f.flexStart,children:[(0,i.jsx)(o.A,{display:"flex",alignItems:"center",children:(0,i.jsx)("img",{src:"/static/contact.svg",alt:"PDF Icon",className:f.contactIcon})}),(0,i.jsxs)(o.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,s,C.asPath,r.C2.OFFER_MESSAGING,x),children:(0,i.jsx)(o.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}},34369:(e,t,a)=>{a.d(t,{A:()=>c});var i=a(637876);a(14232);var n=a(308733),r=a(599220),l=a(812197),o=a(757477),s=a(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 t;let{material:a,product:r,quantity:c}=e,{classes:u}=d(),[p]=null!==(t=null==r?void 0:r.images)&&void 0!==t?t:[];return(0,i.jsxs)("div",{className:u.itemContainer,children:[(0,i.jsx)("div",{className:u.imageContainer,children:p?(0,i.jsx)(s.A,{alt:null==r?void 0:r.productNumber,className:u.image,sizes:"60px",src:p.smallUrl,urls:[p.smallUrl,p.mediumUrl,p.largeUrl]}):null}),(0,i.jsxs)("div",{className:u.details,children:[(null==a?void 0:a.materialNumber)?(0,i.jsx)(l.A,{variant:"subtitle2",children:null==a?void 0:a.materialNumber}):null,(null==r?void 0:r.name)?(0,i.jsx)("div",{className:u.materialName,children:(0,i.jsx)(o.A,{value:null==r?void 0:r.name})}):null,(0,i.jsxs)("div",{className:u.quantity,children:[(0,i.jsx)(n.A,{id:"QUANTITY",defaultMessage:"Quantity"}),(0,i.jsxs)("span",{children:[": ",c]})]})]})]})}},44601:(e,t,a)=>{a.d(t,{A:()=>i});function i(e){"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left||0,e.top||0)}},49691:(e,t,a)=>{a.d(t,{m5:()=>m,qj:()=>p,Ay:()=>g});var i=a(637876);a(14232);var n=a(308733),r=a(607645),l=a(134415),o=a(236503),s=a(211148),d=a(852413),c=a(197710),u=a(757477);let p=e=>{let{message:t}=e;return(0,i.jsx)(n.A,{...t,children:e=>(0,i.jsxs)(r.A,{mr:1,fontSize:12,fontWeight:"fontWeightBold",children:[e,":"," "]})})},m=e=>{let{substanceId:t,searchFocusType:a,searchValue:n,productSearchType:r,classes:o,color:p="primary",label:m,onClick:g}=e;return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)(d.N,{href:"".concat(s.wO.searchResults(n)).concat((0,c.$c)({term:n.toLowerCase(),focus:a,type:r})),passHref:!0,children:(0,i.jsx)(l.A,{className:o,color:p,"data-testid":"".concat(n,"-alias-link"),id:"".concat(t,"-").concat(n,"-alias-link"),onClick:g,children:(0,i.jsx)(u.z,{value:m||n})})}):(0,i.jsx)(u.z,{value:n,className:o})})},g=e=>{let{message:t,searchFocusType:a,searchValue:n,productSearchType:r,classes:l,onClick:s}=e;return(0,i.jsxs)(o.A,{container:!0,item:!0,xs:12,children:[(0,i.jsx)(o.A,{item:!0,xs:12,sm:5,children:(0,i.jsx)(p,{message:t})}),(0,i.jsx)(o.A,{item:!0,xs:12,sm:7,children:(0,i.jsx)(m,{searchFocusType:a,searchValue:n,productSearchType:r,classes:l,onClick:s})})]})}},51684:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(637876);a(14232);let n=(0,a(599220).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:t}=e,{classes:a}=n();return(0,i.jsx)("div",{className:a.banner,children:t})}},62084:(e,t,a)=>{a.d(t,{A:()=>c});var i=a(637876),n=a(42778);a(14232);var r=a(667792),l=a(308733),o=a(953295),s=a(812197),d=a(175020);let c=e=>{let{product:t,substancePosition:a,focus:c,typeButtonText:u,ga4Payload:p,sourceString:m}=e,{setGlobalModalComponent:g,clearGlobalModalComponent:h}=(0,n.g)(),x=e=>{var n,r,l,s;g((0,i.jsx)(o.A,{onClose:h,product:t,focus:e,sourceString:m})),(0,d.Sm)({action:"view p&a",section:a?void 0:"products",component:null!==(r=null==p?void 0:p.component)&&void 0!==r?r:"list",elementType:null!==(l=null==p?void 0:p.elementType)&&void 0!==l?l:"link",elementText:null!==(s=null==p?void 0:p.elementText)&&void 0!==s?s:"view",material:{materialDescription:t.name,brand:null===(n=t.brand)||void 0===n?void 0:n.key,product:t.productNumber}})};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.A,{typeButtonText:u,onClick:()=>x(c),children:(0,i.jsx)(s.A,{variant:"inherit",children:u||(0,i.jsx)(l.A,{id:"VIEW",defaultMessage:"View"})})})})}},79965:(e,t,a)=>{a.d(t,{A:()=>p});var i=a(637876);a(14232);var n=a(599220),r=a(338066),l=a(825628),o=a(308733),s=a(346129),d=a(211148),c=a(364272);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:t,alertMessage:a,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:[a,(0,i.jsx)(s.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:t||"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":t?"".concat(t):"Try it out",children:t||(0,i.jsx)(o.A,{id:"TRY_IT_OUT",defaultMessage:"Try It Out"})})})]})}},86367:(e,t,a)=>{a.d(t,{A:()=>ed});var i=a(637876),n=a(14232),r=a(139324),l=a.n(r),o=a(89099),s=a(767994),d=a(599220),c=a(278206),u=a(428888);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,a(182897).J1)(p());var g=a(554753),h=a(607645),x=a(505411),A=a(877742),y=a(308733),v=a(700776),f=a(636382),b=a(810113),T=a(217679),C=a(11788),E=a(388887),j=a(668748),_=a(757477),S=a(421289),N=a(670114);let I=(0,d.makeStyles)()(e=>({shippingMessage:{display:"flex",alignItems:"center",fontSize:e.typography.pxToRem(14),"& > *":{marginRight:e.spacing(2)}}})),R=e=>{let{material:t}=e,{classes:a}=I();return(0,i.jsxs)(i.Fragment,{children:[t.shipsToday&&(0,i.jsxs)(h.A,{mb:6,className:a.shippingMessage,children:[(0,i.jsx)(S.A,{}),(0,i.jsx)(y.A,{...g.A.SHIPS_TODAY})]}),t.freeFreight&&(0,i.jsxs)(h.A,{mb:6,className:a.shippingMessage,children:[(0,i.jsx)(N.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:t}=e,{classes:a}=k();return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)("div",{className:a.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:t}})})}):(0,i.jsx)("div",{className:a.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=a(835967),L=a(812197),O=a(495349);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)}}})),w=e=>{let{material:t}=e,{classes:a}=B();return t.hidePriceMessageKey?(0,i.jsx)(O.A,{msgKey:t.hidePriceMessageKey}):(0,i.jsxs)("div",{className:a.pricingInfo,children:[!!t.price&&(0,i.jsx)(L.A,{variant:"h2",component:"div",children:(0,i.jsx)(P.Gr,{style:"currency",currencyDisplay:"symbol",currency:t.currency,value:t.price})}),t.price&&t.listPrice&&t.listPrice>t.price?(0,i.jsx)(L.A,{variant:"h2",component:"div",className:a.listPrice,children:(0,i.jsx)(P.Gr,{style:"currency",currencyDisplay:"symbol",currency:t.currency,value:t.listPrice})}):null]})};var F=a(683198),D=a(475352),W=a(685150),U=a(873431),H=a(317685);let z=e=>{let{dealerCount:t}=e,{formatMessage:a}=(0,A.A)(),n=a(g.A.SEE_ALL_BUYING_OPTIONS);return t?(0,i.jsx)(i.Fragment,{children:"".concat(n," (").concat(t,")")}):(0,i.jsx)(i.Fragment,{children:"".concat(n)})},G=e=>{let{preferredDealerName:t,noPriceForDealer:a}=e,{formatMessage:n}=(0,A.A)(),{classes:r}=(0,W.A)();if(a)return(0,i.jsxs)("span",{className:r.seeDealerOptionsText,children:[(0,i.jsx)(F.A,{color:"error",className:r.errorIcon}),(0,i.jsx)(y.A,{...g.A.PRICING_AND_AVAILABILITY_TEMPORARILY_UNAVAILABLE_FROM,values:{preferredDealerName:t}})]});let l=t?"".concat(n(g.A.SHIPPED_SOLD_BY)," ").concat(t):"";return l?(0,i.jsx)("span",{className:r.seeDealerOptionsText,children:"".concat(l," ")}):(0,i.jsx)(i.Fragment,{})},V=e=>{let{customerPricingResponse:t,materialPricing:a,selectCallback:r,setFieldValue:l,values:o}=e,{classes:s}=(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:S}=(0,U.AW)({context:{userSession:m},errorPolicy:"all",variables:{countryCode:null==m?void 0:m.country,stateCode:String(u),searchTerm:""},skip:!p||!c}),N=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==t?void 0:t.data){var e,a,i;let n=null==t?void 0:null===(a=t.data)||void 0===a?void 0:null===(e=a.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==t?void 0:t.data]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(h.A,{mb:6,children:[b&&(0,i.jsx)(G,{preferredDealerName:null!=T?T:b,noPriceForDealer:!1}),(0,i.jsx)(x.A,{variant:"text",className:s.seeDealerOptionsLink,onClick:()=>v(!0),children:(0,i.jsx)(z,{dealerCount:g})})]}),y&&(0,i.jsx)(D.A,{dealers:(null==j?void 0:j.getDealers)||[],disabled:!1,error:S,isSavingDealerPreference:!1,materialPricing:a,onDealerSelect:r,onSearch:N,open:y,onClose:()=>v(!1),setFieldValue:l,setIsModalOpen:v,values:o})]})};var Y=a(710759),q=a(670210),K=a(471662),$=a(761622),Q=a(840002),X=a(677660),Z=a(340352),J=a(458851),ee=a(683707),et=a(978272),ea=a(52710),ei=a(175020),en=a(786680),er=a(688700),el=a(838882),eo=a(994767);let es=(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 t,a;let{materialPricing:r,canAddToCart:d,renderSecondaryAction:u,marketplaceOfferId:p,productName:S,erpType:N,productKey:I,brandKey:k,images:P,discontinuedPricingInfo:L,multiCountryData:O,isPLPBuyNow:B}=e,{classes:F,cx:D}=es(),W=(0,o.useRouter)(),U=(0,s.m)(),{formatMessage:H}=(0,A.A)(),z=(0,Z.Ay)(),G=(null==r?void 0:r.length)?null===(t=r[0])||void 0===t?void 0:t.materialNumber:"",ed={materialNumber:G,quantity:1,marketplaceOfferId:p},[ec,eu]=(0,n.useState)(ed),{getSitePreference:ep,isDTAQZuCustomer:em,isMultiCountryUser:eg,userIsLoggedIn:eh}=(0,C.iZ)(),ex=(0,eo.dU)(),{publicRuntimeConfig:{featureFlags:eA}}=l()(),ey=ep(C.VD.HideAddToCartForPrepackItems),[ev,ef]=(0,n.useState)(r[0]),[eb,eT]=(0,n.useState)(()=>(0,et.aA)(ed.quantity,null==ev?void 0:ev.minOrderQuantity,ex)),[eC,eE]=(0,n.useState)(""),[ej,e_]=(0,n.useState)(!1),[eS,eN]=(0,n.useState)(""),[eI,eR]=(0,n.useState)(),ek=ep(C.VD.PreferredDealerId),eM=(null===(a=W.query)||void 0===a?void 0:a.context)==="bbe",eP=eA.dealerCartEnabled&&em&&!eM&&!!ek,eL=W.asPath.includes("/compare"),eO=(0,f.g9)(),eB=(0,n.useContext)(ea.E),ew=async(e,t)=>{let{setSubmitting:a,resetForm:i}=t;(0,v.xy)({items:[ev],productListPageName:W.asPath.includes("/search")?v.L1.SearchResultPage:v.L1.ProductDetailPage}),(0,en.p8)([e],[ev],er.k9.SearchResultPage),await eO([{materialNumber:e.materialNumber,quantity:e.quantity,marketplaceOfferId:p}],a,i,"marketplace"===ev.catalogType),eT((0,et.aA)(ed.quantity,null==ev?void 0:ev.minOrderQuantity,ex))},eF=e=>{let[t]=r.filter(t=>(null==t?void 0:t.materialNumber)===e);ef(t)},eD=(0,el.h)(O,(e,t)=>{var a,i;eE(t);let n=null==O?void 0:null===(a=O.getPricingForMultiCountryProducts)||void 0===a?void 0:a.filter(e=>(null==e?void 0:e.country)===t)[0],[r]=null!==(i=null==n?void 0:n.materialPricing)&&void 0!==i?i:[];ef(r)}),eW=async(e,t,a)=>{let i=a.map(e=>({sku:e.materialNumber,brand:e.brand,listPrice:e.listPrice,product:"SBU".concat(e.productGroupSBU),qty:1}));eR(await U.query({query:m,variables:{input:{products:[{dealerId:e,items:i}]}}}))},eU=(e,t,a)=>{t.setFieldValue(a.name,e),eT((0,et.aA)(e,null==ev?void 0:ev.minOrderQuantity,ex))},eH=()=>{(0,ei.Sm)({action:"check availability details",section:"modal p&a",component:"modal",elementType:"link",elementText:"details",material:ev})};if((0,n.useMemo)(()=>eu(ed),[G]),(0,n.useEffect)(()=>{eT((0,et.aA)(ed.quantity,null==ev?void 0:ev.minOrderQuantity,ex))},[ev]),(0,n.useEffect)(()=>{var e,t,a,i;e_(!!(null==ev?void 0:null===(t=ev.availabilities)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.displayInquireLink));let n=null==ev?void 0:null===(i=ev.availabilities)||void 0===i?void 0:null===(a=i[0])||void 0===a?void 0:a.contactInfo;eN([null==n?void 0:n.contactPhone,null==n?void 0:n.contactEmail].filter(e=>!!e).join(" ".concat(H(g.A.OR)," ")))},[ev,H]),(0,n.useEffect)(()=>{if(null==eI?void 0:eI.data){var e,t,a;let i=null==eI?void 0:null===(t=eI.data)||void 0===t?void 0:null===(e=t.getCustomerPricingForProduct)||void 0===e?void 0:e.products,n=null==i?void 0:null===(a=i[0])||void 0===a?void 0:a.items;r.forEach(e=>{var t;let a=null==n?void 0:null===(t=n.find(t=>(null==t?void 0:t.sku)===e.materialNumber))||void 0===t?void 0:t.price;e.price=a});let l=r.find(e=>e.materialNumber===ev.materialNumber);l&&ef(l)}},[null==eI?void 0:eI.data]),(0,n.useEffect)(()=>{var e,t;if(null==O?void 0:null===(e=O.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length){let[e]=null==O?void 0:O.getPricingForMultiCountryProducts;eE(null!==(t=null==e?void 0:e.country)&&void 0!==t?t:"")}},[]),(!Array.isArray(r)||!r.length)&&L){let e=(0,$.j)(null==L?void 0:L.replacementProducts);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(J.A,{discontinuedPricingInfo:L}),!eL&&e&&(0,i.jsx)(K.A,{type:Q.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:I,brandKey:k,images:P},products:e,slidesToShow:z({xs:1,sm:2,lg:3}),withoutControls:e.length<=4})]})}return ev||ef(r[0]),(0,i.jsx)("div",{className:F.body,children:(0,i.jsx)(c.l1,{initialValues:ec,onSubmit:ew,enableReinitialize:!0,children:e=>{var t;let{isSubmitting:a,initialValues:n,values:l,setFieldValue:o}=e;return ec.materialNumber!==n.materialNumber?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(c.lV,{children:[eg&&O?eD:null,eg?null==O?void 0:null===(t=O.getPricingForMultiCountryProducts)||void 0===t?void 0:t.map((e,t)=>eC===(null==e?void 0:e.country)?(0,i.jsxs)("div",{children:[(0,i.jsx)(h.A,{mb:1,children:(0,i.jsx)("label",{htmlFor:"TEMP",children:(0,i.jsx)(y.A,{...g.A.SKU})})}),(0,i.jsx)(h.A,{mb:4,children:(0,i.jsx)(c.D0,{name:"materialNumber",children:t=>{let{form:n,field:r,meta:l}=t;return(0,i.jsx)(T.A,{field:r,meta:l,form:n,size:"large",onChange:e=>{r.onChange(e),n.setFieldValue("quantity",1),eF(e.target.value)},disabled:a||(null==e?void 0:e.materialPricing.length)<2,options:null==e?void 0:e.materialPricing.map(e=>({label:e.materialNumber,value:e.materialNumber}))})}})}),(0,i.jsx)("div",{className:F.materialInfo,children:(0,i.jsx)(_.A,{value:ev.packageSize})}),!ej&&(0,i.jsx)(w,{material:ev}),(0,i.jsx)(h.A,{mt:2,children:ev.isPBAvailable?(0,i.jsx)(q.A,{materialNumber:ev.materialNumber,brand:ev.brand,productName:null!=S?S:"",erp_type:N}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(E.A,{material:ev,canAddToCart:d,gaDetailsClick:eH})}),(0,i.jsx)(R,{material:ev}),(0,i.jsx)(ee.A,{expirationDate:null==ev?void 0:ev.expirationDate,displayColon:!0,displayInline:!0,outerClassName:F.expiryDate}),(null==ev?void 0:ev.minOrderQuantity)&&(null==ev?void 0:ev.minOrderQuantity)>1?(0,i.jsxs)("div",{className:D(F.minimumQuantity,{[F.minimumQuantityError]:eb}),children:[(0,i.jsx)(y.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==ev?void 0:ev.minOrderQuantity]}):null,ej?(0,i.jsx)(M,{contactInfo:eS}):(0,i.jsx)(i.Fragment,{children:d&&!ey?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{mb:4,children:(0,i.jsx)(c.D0,{name:"quantity",children:e=>{let{form:t,field:n}=e;return(0,i.jsx)(j.A,{...n,size:"large",filled:!0,onChange:e=>eU(e,t,n),min:1,onBlur:()=>{n.value<1&&t.setFieldValue(n.name,1)},disabled:a,inputProps:{inputMode:"numeric"},error:!!eb})}})}),eP&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(V,{customerPricingResponse:eI,materialPricing:null==e?void 0:e.materialPricing,selectCallback:eW,setFieldValue:o,values:l})}),(0,i.jsx)(x.A,{type:"submit",variant:"contained",color:"secondary",disabled:a||eb,size:"large",fullWidth:!0,id:"mobile-p-and-a-add-to-cart",children:(0,i.jsx)(y.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})})]}):null}),ev.isBuyNow&&!ey?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(Y.A,{materialNumber:l.materialNumber,quantity:l.quantity,gaType:"search results page"})}):null,ey?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(b.A,{quantity:l.quantity,materialNumber:ev.materialNumber,materialId:ev.materialId,type:ev.type,brand:null==ev?void 0:ev.brand,productName:null==ev?void 0:ev.materialDescription,productId:null==ev?void 0:ev.product})}),!!u&&u()]},t):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:t,field:n,meta:l}=e;return(0,i.jsx)(T.A,{field:n,meta:l,form:t,size:"large",onChange:e=>{n.onChange(e),t.setFieldValue("quantity",1),eF(e.target.value)},disabled:a||r.length<2,options:r.map(e=>({label:e.materialNumber,value:e.materialNumber}))})}})}),(0,i.jsx)("div",{className:F.materialInfo,children:(0,i.jsx)(_.A,{value:ev.packageSize})}),!ej&&(0,i.jsx)(w,{material:ev}),(0,i.jsx)(h.A,{mt:2,children:ev.isPBAvailable?(0,i.jsx)(q.A,{materialNumber:ev.materialNumber,brand:ev.brand,productName:null!=S?S:"",erp_type:N}):null}),(0,i.jsx)(h.A,{mb:6,mt:4,children:(0,i.jsx)(ea.M,{...eB,brand:ev.brand,item:ev.materialNumber,pricing:ev,children:(0,i.jsx)(E.A,{material:ev,canAddToCart:d,gaDetailsClick:eH})})}),(0,i.jsx)(R,{material:ev}),(0,i.jsx)(ee.A,{expirationDate:null==ev?void 0:ev.expirationDate,displayColon:!0,displayInline:!0,outerClassName:F.expiryDate}),(null==ev?void 0:ev.minOrderQuantity)&&(null==ev?void 0:ev.minOrderQuantity)>1?(0,i.jsxs)("div",{className:D(F.minimumQuantity,eb&&F.minimumQuantityError),children:[(0,i.jsx)(y.A,{...g.A.MINIMUM_ORDER_QUANTITY}),null==ev?void 0:ev.minOrderQuantity]}):null,ej?(0,i.jsx)(M,{contactInfo:eS}):(0,i.jsx)(i.Fragment,{children:d&&!ey?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{mb:4,children:(0,i.jsx)(c.D0,{name:"quantity",children:e=>{let{form:t,field:n}=e;return(0,i.jsx)(j.A,{...n,size:"large",filled:!0,onChange:e=>eU(e,t,n),min:1,onBlur:()=>{n.value<1&&t.setFieldValue(n.name,1)},disabled:a,inputProps:{inputMode:"numeric"},error:!!eb})}})}),eP&&(0,i.jsx)(h.A,{mb:6,children:(0,i.jsx)(V,{customerPricingResponse:eI,materialPricing:r,selectCallback:eW,setFieldValue:o,values:l})}),(0,i.jsx)(x.A,{type:"submit",variant:"contained",color:"secondary",disabled:a||eb,size:"large",fullWidth:!0,id:"mobile-p-and-a-add-to-cart",children:(0,i.jsx)(y.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})})]}):null}),ev.isBuyNow&&!ey||B&&eh?(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(Y.A,{materialNumber:l.materialNumber,quantity:l.quantity,marketplace:ev.catalogType===X.Mh.Marketplace,gaType:"search results page"})}):null,ey?null:(0,i.jsx)(h.A,{mt:4,children:(0,i.jsx)(b.A,{quantity:l.quantity,materialNumber:ev.materialNumber,materialId:ev.materialId,type:ev.type,brand:null==ev?void 0:ev.brand,productName:null==ev?void 0:ev.materialDescription,productId:null==ev?void 0:ev.product})}),!!u&&u()]})]})})}})})}},86767:(e,t,a)=>{a.d(t,{A:()=>h});var i=a(637876);a(14232);var n=a(748547),r=a(599220),l=a(696241),o=a(676023),s=a(677660),d=a(549100),c=a(608759),u=a(921328),p=a(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,t)=>{switch(t.type){case n.Ay.stateChangeTypes.touchEnd:case n.Ay.stateChangeTypes.mouseUp:case n.Ay.stateChangeTypes.blurInput:case n.Ay.stateChangeTypes.keyDownEscape:return{...t,inputValue:e.inputValue};default:return t}},h=e=>{let{value:t,onBlur:a,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:t.length<3,variables:{input:{term:t,types:[s.B0.MaterialNumber],overrideMarketplaceByTag:f,filter:C,catalogType:T,orgId:E?"DARMSTADT":void 0}}});return(0,i.jsx)(n.Ay,{id:v,inputValue:t,onInputValueChange:e=>r(e),itemToString:e=>e?e.label:"",stateReducer:g,onSelect:h,children:e=>{let{getInputProps:t,getItemProps:n,getMenuProps:r,isOpen:s,inputValue:d,highlightedIndex:u,closeMenu:p}=e,{onBlur:m,onChange:g,onKeyDown:v,...f}=t();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 t;let a=s&&!!(null==_?void 0:null===(t=_.getSearchSuggestions)||void 0===t?void 0:t.suggestions.materialNumber.length);if("Enter"===e.key&&a&&null==u){e.preventDefault(),h&&h(null),p();return}v&&v(e)},onBlur:e=>{e&&(m&&m(e),a&&a(e))},value:d,error:y,...b}),s&&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,t)=>(0,i.jsx)(o.A,{...n({key:e.label,index:t,item:e}),component:"div",selected:t===u,className:j.autoSuggestItem,children:e.label},e.label))})})]})}})}},98868:(e,t,a)=>{a.d(t,{A:()=>m});var i=a(637876);a(14232);var n=a(877742),r=a(134415),l=a(599220),o=a(554753),s=a(197710),d=a(852413),c=a(211148),u=a(757477);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:t,focus:a}=e,{formatMessage:l}=(0,n.A)(),{classes:m}=p(),g=t?t.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(o.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,s.$c)({term:null==e?void 0:e.term,focus:a})),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}},102897:(e,t,a)=>{a.d(t,{A:()=>i.A});var i=a(503933)},111569:(e,t,a)=>{a.d(t,{A:()=>p});var i=a(637876),n=a(877742),r=a(134415),l=a(599220),o=a(211148),s=a(852413),d=a(554753),c=a(771007);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:t}=u();return(0,i.jsxs)("section",{className:t.container,children:[(0,i.jsx)("h4",{className:t.sectionHeading,children:e(d.A.SEARCH_TIPS)}),(0,i.jsxs)("ul",{className:t.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)(s.N,{href:o.HX.index(),passHref:!0,children:(0,i.jsxs)(r.A,{className:t.textLink,onClick:()=>{(0,c.sendSearchInteractionEvent)({action:"visit chemical structure search",component:"body",elementType:"link",elementText:"structure search",linkUrl:o.HX.index(),section:"search tips"})},children:[e({id:"STRUCTURE_SEARCH",defaultMessage:"Structure Search"})," "]})}),e(d.A.OR)," ",(0,i.jsx)(s.N,{href:o.wO.index(),passHref:!0,children:(0,i.jsxs)(r.A,{className:t.textLink,onClick:()=>{(0,c.sendSearchInteractionEvent)({action:"visit advanced search page",component:"body",elementType:"link",elementText:"advanced search",linkUrl:o.wO.index(),section:"search tips"})},children:[e({id:"ADVANCED_SEARCH",defaultMessage:"Advanced Search"})," "]})}),e(d.A.TOOL)]})]})]})}},127447:(e,t,a)=>{a.d(t,{A:()=>m});var i=a(637876),n=a(14232),r=a(599220),l=a(566561),o=a(40597),s=a(814810),d=a(308733),c=a(934318);let u=(0,r.makeStyles)()(e=>({tooltip:{fontSize:e.typography.pxToRem(11)},materialNumberText:{cursor:"pointer",transition:"background 100ms","&:hover":{backgroundColor:"#afd2fc"}},withIcon:{display:"flex",alignItems:"center"},copyIcon:{cursor:"pointer",fontSize:e.typography.pxToRem(18),marginLeft:e.spacing(2)}})),p=()=>(0,i.jsxs)("span",{children:[(0,i.jsx)(s.A,{style:{marginRight:6},fontSize:"inherit"}),(0,i.jsx)(d.A,{id:"COPIED_TO_CLIPBOARD",defaultMessage:"Copied to Clipboard"})]}),m=e=>{let{materialNumber:t,isShowIcon:a}=e,{classes:r,cx:s}=u(),[d,m]=n.useState(!1),g=()=>{m(!1)},h=()=>{m(!0)},x=e=>{navigator.clipboard.writeText(e),h(),setTimeout(()=>{g()},750)};return(0,i.jsx)(l.A,{onClickAway:g,children:(0,i.jsx)(o.Ay,{PopperProps:{disablePortal:!0},onClose:g,open:d,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:(0,i.jsx)(p,{}),placement:"bottom",classes:{tooltip:r.tooltip},children:(0,i.jsxs)("span",{"aria-hidden":"true",onClick:()=>x(t),onKeyDown:()=>x(t),className:s(r.materialNumberText,{[r.withIcon]:a}),children:[t,a&&(0,i.jsx)(c.A,{color:"primary",className:r.copyIcon})]})})})}},129773:(e,t,a)=>{a.d(t,{A:()=>e1});var i=a(637876),n=a(14232),r=a(607645),l=a(812197),o=a(55011),s=a(134415),d=a(39069),c=a(566561),u=a(40597),p=a(599220),m=a(877742),g=a(308733),h=a(835967),x=a(21347),A=a(710759),y=a(852413),v=a(388887),f=a(875878),b=a(545484),T=a(278206),C=a(810113),E=a(636382),j=a(28407),_=a(139324),S=a.n(_),N=a(175020),I=a(771007),R=a(384119),k=a(197710),M=a(670210),P=a(319490),L=a(793591),O=a(258597),B=a(346588),w=a(11788),F=a(505411),D=a(679723),W=a(34369),U=a(353471),H=a(428888);function z(){let e=(0,H._)(["\n query GetQuotesCount {\n getQuotesCount {\n count\n }\n }\n"]);return z=function(){return e},e}let G=(0,a(182897).J1)(z());var V=a(128975),Y=a(11631),q=a(211148);let K=(0,p.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)}})),$=e=>{let{onClose:t,quoteData:a}=e,{classes:o}=K(),d=(0,q.rd)(),[c,u]=(0,n.useState)(!1),[p,m]=(0,n.useState)(!1),{material:h,product:x,quantity:A}=null!=a?a:{},[y]=(0,U.u7)({refetchQueries:[{query:G}]}),v=async()=>{if((null==h?void 0:h.materialNumber)&&A){u(!0),(0,I.sendBeginOrCompleteQuoteRequestEvent)({event:"complete_quote_request",section:"pricing card",component:"modal",elementType:"button",elementText:"submit request"},{productId:h.product,productBrand:h.brand,productVariant:h.materialNumber});try{let{data:t}=await y({variables:{input:{materialNumber:null==h?void 0:h.materialNumber,quantity:A}}});if(t){var e;d.replace(q.q8.quoteDetail(null==t?void 0:null===(e=t.generateQuote)||void 0===e?void 0:e.orderNumber))}}catch(e){m(!0),u(!1),(0,I.sendErrorEvent)({description:"we were unable to initiate your request",errorCategory:"other errors",productId:null==h?void 0:h.product,productVariant:null==h?void 0:h.materialNumber,productName:null==h?void 0:h.materialDescription,productBrand:null==h?void 0:h.brand})}}};return(0,i.jsx)(i.Fragment,{children:c?(0,i.jsx)(D.A,{open:!0,hideBackdrop:!0,children:(0,i.jsx)(Y.A,{})}):(0,i.jsx)(V.Ay,{open:!0,onClose:(e,a)=>t(a),size:V.Ih.Small,renderTitle:()=>(0,i.jsx)(l.A,{variant:"h2",children:(0,i.jsx)(g.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})}),children:(0,i.jsx)(V.Uh,{children:p?(0,i.jsxs)(r.A,{children:[(0,i.jsxs)(r.A,{display:"flex",children:[(0,i.jsx)(j.A,{className:o.errorIcon,color:"error"}),(0,i.jsxs)(r.A,{children:[(0,i.jsx)(l.A,{className:o.errorTitle,children:(0,i.jsx)(g.A,{id:"REQUEST_QUOTE_ERROR_TITLE",defaultMessage:"We were unable to initiate your request."})}),(0,i.jsxs)(l.A,{className:o.errorMessage,children:[(0,i.jsx)(g.A,{id:"PLEASE",defaultMessage:"Please"}),(0,i.jsx)(s.A,{className:o.link,href:"/support/customer-support",onClick:()=>u(!0),children:(0,i.jsx)(g.A,{id:"CONTACT_CUSTOMER_SERVICE",defaultMessage:"contact customer service"})}),(0,i.jsx)(g.A,{id:"FOR_ASSISTANCE",defaultMessage:"for assistance."})]})]})]}),(0,i.jsx)(V.fW,{className:o.actionContainer,children:(0,i.jsx)(F.A,{color:"primary",size:"large",onClick:()=>t(),variant:"contained",children:(0,i.jsx)(g.A,{id:"CLOSE",defaultMessage:"Close"})})})]}):(0,i.jsxs)(i.Fragment,{children:[h&&x&&A?(0,i.jsx)(W.A,{material:h,product:x,quantity:A}):null,(0,i.jsx)(V.fW,{className:o.actionContainer,children:(0,i.jsx)(F.A,{color:"primary",disabled:!A,size:"large",onClick:v,variant:"contained",children:(0,i.jsx)(g.A,{id:"SUBMIT_REQUEST",defaultMessage:"Submit Request"})})})]})})})})};var Q=a(42778);let X=e=>{let{quoteData:t,variant:a="outlined",size:n="large",fullWidth:r=!0,className:l,type:o="button",disabled:s,id:d}=e,{setGlobalModalComponent:c,clearGlobalModalComponent:u}=(0,Q.g)();return(0,i.jsx)(F.A,{id:d,className:l,color:"primary",disabled:s,fullWidth:r,onClick:()=>{var e,a,n;(0,I.sendBeginOrCompleteQuoteRequestEvent)({event:"begin_quote_request",section:"pricing card",component:"right rail",elementType:"button",elementText:"request quote"},{productId:null==t?void 0:null===(e=t.material)||void 0===e?void 0:e.product,productBrand:null==t?void 0:null===(a=t.material)||void 0===a?void 0:a.brand,productVariant:null==t?void 0:null===(n=t.material)||void 0===n?void 0:n.materialNumber}),c((0,i.jsx)($,{quoteData:t,onClose:u}))},size:n,type:o,variant:a,children:(0,i.jsx)(g.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})})};var Z=a(786680),J=a(688700),ee=a(317685),et=a(399486),ea=a(683707),ei=a(127447),en=a(495349),er=a(236503),el=a(29468),eo=a(757477);let es=(0,p.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"}})),ed=(0,p.withStyles)(u.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)}})),ec=e=>{let{id:t,defaultMessage:a,columnValue:n}=e,{classes:r}=es();return(0,i.jsxs)(er.A,{container:!0,children:[(0,i.jsx)(er.A,{item:!0,children:(0,i.jsx)(l.A,{variant:"caption",className:r.label,children:(0,i.jsx)(g.A,{id:t,defaultMessage:a})})}),(0,i.jsx)(er.A,{item:!0,children:(0,i.jsx)(l.A,{variant:"caption",className:r.attrValue,children:(0,i.jsx)(eo.A,{value:n})})})]})},eu=e=>{let{customClasses:t,dataTestId:a,material:r,showAdditionalColumns:o=!0,showTitle:s=!0,tooltipContent:d}=e,{classes:u}=es(),[p,m]=(0,n.useState)(!1);return(0,i.jsx)(c.A,{onClickAway:()=>{m(!1)},children:(0,i.jsx)("span",{children:(0,i.jsx)(ed,{arrow:!0,classes:t,"data-testid":a,interactive:!0,placement:"top",open:p,onClick:()=>{(0,I.sendProductInfoInteractionEvent)({action:"view additional information",section:"pricing box",component:"right rail",elementType:"icon",elementText:"view additional information",linkUrl:void 0,productId:null==r?void 0:r.product,productBrand:null==r?void 0:r.brand,productVariant:null==r?void 0:r.materialNumber}),m(!0)},title:(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(l.A,{variant:"h3",className:u.title,children:(0,i.jsx)(g.A,{id:"PRODUCT_INFORMATION",defaultMessage:"Product Information"})}),o&&[{id:"ADDITIONAL_INFO_CARRIER_RESTRICTION",defaultMessage:"Additional Fees/Restrictions:",key:"carrierRestriction"},{id:"ADDITIONAL_INFO_FTCC",defaultMessage:"Foreign Trade Commodity Code:",key:"tariff"},{id:"ADDITIONAL_INFO_UNTN",defaultMessage:"UN Transportation Number(IATA):",key:"unNumber"},{id:"ADDITIONAL_INFO_CAS",defaultMessage:"CAS Number:",key:"casNumber"},{id:"ADDITIONAL_INFO_JFC",defaultMessage:"Japan Fire Code:",key:"jfcCode"},{id:"ADDITIONAL_INFO_PDSC",defaultMessage:"Poison/Deleterious Substance Code:",key:"pdcCode"}].map(e=>{var t;return(null==r?void 0:null===(t=r.additionalInfo)||void 0===t?void 0:t[e.key])&&(0,i.jsx)(ec,{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)(ec,{id:"ADDITIONAL_INFO_PACKAGING_INFO",defaultMessage:"Packaging Information:",columnValue:"".concat(r.packageSize," in ").concat(r.packageType)}),d]}),children:(0,i.jsx)(el.A,{className:u.infoIcon})})})})};var ep=a(52710),em=a(978272),eg=a(575647),eh=a(719409);let ex=e=>{let{quoteData:t,variant:a="outlined",size:n="large",fullWidth:r=!0,className:l,type:o="button",disabled:s,id:d}=e,{setGlobalModalComponent:c,clearGlobalModalComponent:u}=(0,Q.g)();return(0,i.jsx)(F.A,{id:d,className:l,color:"primary",disabled:s,fullWidth:r,size:n,type:o,variant:a,onClick:()=>{c((0,i.jsx)(eh.A,{quoteData:t,onClose:u}))},children:(0,i.jsx)(g.A,{id:"REQUEST_QUOTE",defaultMessage:"Request Quote"})})};var eA=a(147801);(0,a(648573).H)(eA.Lr,"READY_TO_SHIP_NOTIFICATIONS","v1");var ey=a(306442),ev=a(267450),ef=a(627719);let eb=(0,p.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)}})),eT=e=>{let{material:t,userEmail:a,productImageUrl:r,productNumber:o}=e,{classes:s}=eb(),[d,c]=(0,n.useState)("ready"),[u,p]=(0,n.useState)("closed"),[m]=(0,ev.aC)(),h=(0,n.useRef)(null),x=(0,n.useRef)(null);(0,n.useEffect)(()=>{c("ready")},[t]);let A=async()=>{c("communicating");try{var e;await m({variables:{params:{brand:(null==t?void 0:t.brand)||"",materialNumber:(null==t?void 0:t.materialNumber)||"",imageUrl:r,productNumber:o}}}),c("success"),p("closed"),null===(e=h.current)||void 0===e||e.focus()}catch(e){c("error"),p("error")}};return(0,i.jsxs)("div",{className:s.notifyReadyToShipContainer,"aria-live":"polite",children:["success"!==d?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{component:"h6",className:s.title,ref:x,children:(0,i.jsx)(g.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})}),(0,i.jsx)(l.A,{component:"p",className:s.text,children:(0,i.jsx)(g.A,{id:"NOTIFY_ME_DESCRIPTION",defaultMessage:"Get notified when this item is ready to ship via email."})}),(0,i.jsx)(F.A,{id:"notify-me",className:s.button,color:"primary",fullWidth:!0,variant:"contained",size:"large",onClick:()=>p("request"),children:(0,i.jsx)(g.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})})]}):(0,i.jsxs)("div",{ref:h,tabIndex:-1,children:[(0,i.jsxs)(l.A,{component:"h6",className:s.title,children:[(0,i.jsx)(ey.A,{htmlColor:ef.w.palette.success.main,fontSize:"small"}),(0,i.jsx)(g.A,{id:"CONFIRMED",defaultMessage:"Confirmed"})]}),(0,i.jsx)(l.A,{component:"p",className:s.text,children:(0,i.jsx)(g.A,{id:"NOTIFY_ME_SUCCESS",defaultMessage:"We will send an email to {email} when this item is ready to ship.",values:{email:(0,i.jsx)(l.A,{component:"span",className:s.callOut,children:a})}})})]}),(0,i.jsx)(e_,{requestStatus:d,modalType:u,handleClick:A,handleError:()=>{c("communicating"),setTimeout(()=>{A()},1e3)},handleClose:()=>{p("closed"),c("ready")},userEmail:a,productSKU:(null==t?void 0:t.materialNumber)?null==t?void 0:t.materialNumber:""})]})};var eC=a(190079),eE=a(486024);let ej=(0,p.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"}}}})),e_=e=>{let{requestStatus:t,modalType:a,handleClick:n,handleError:r,handleClose:o,userEmail:s,productSKU:d}=e,{classes:c}=ej();return(0,i.jsxs)(i.Fragment,{children:["request"===a&&(0,i.jsx)(eE.A,{open:"ready"===t,onClose:()=>o(),renderTitle:()=>(0,i.jsx)(l.A,{variant:"h2",component:"h2",className:c.title,children:(0,i.jsx)(g.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})}),closeButtonId:"mat-avl-modal-close",children:(0,i.jsxs)("div",{className:c.modalBody,children:[(0,i.jsx)(l.A,{component:"p",className:c.text,children:(0,i.jsx)(g.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:c.callOut,children:s}),productSKU:(0,i.jsx)(l.A,{component:"span",className:c.callOut,children:d})}})}),(0,i.jsxs)("div",{className:c.modalActions,children:[(0,i.jsx)(F.A,{"data-testid":"modal-notify-me-cancel",color:"primary",variant:"outlined",size:"large",onClick:()=>o(),children:(0,i.jsx)(g.A,{id:"CANCEL",defaultMessage:"Cancel"})}),(0,i.jsx)(F.A,{id:"modal-notify-me",color:"primary",variant:"contained",size:"large",onClick:n,endIcon:"communicating"===t&&(0,i.jsx)(eC.A,{color:"inherit",size:20,thickness:5}),disabled:"communicating"===t,children:(0,i.jsx)(g.A,{id:"NOTIFY_ME",defaultMessage:"Notify Me"})})]})]})}),"error"===a&&(0,i.jsx)(eE.A,{role:"alertdialog","aria-labelledby":"alertHeading","aria-describedby":"alertText","aria-relevant":"all",open:"error"===a,onClose:()=>o(),renderTitle:()=>(0,i.jsx)(l.A,{variant:"h2",component:"h2",className:c.title,id:"alertHeading",children:"communicating"===t?(0,i.jsx)(g.A,{id:"PROCESSING",defaultMessage:"Processing"}):(0,i.jsx)(g.A,{id:"ERROR",defaultMessage:"Error"})}),closeButtonId:"mat-avl-modal-close",children:(0,i.jsxs)("div",{className:c.modalBody,children:[(0,i.jsx)(l.A,{component:"p",className:c.text,id:"alertText",children:(0,i.jsx)(g.A,{id:"NOTIFY_ME_ERROR",defaultMessage:"We are unable to complete the request at this time. Please try again."})}),(0,i.jsxs)("div",{className:c.modalActions,children:[(0,i.jsx)(F.A,{"data-testid":"modal-notify-me-cancel",color:"primary",variant:"outlined",size:"large",onClick:()=>o(),children:(0,i.jsx)(g.A,{id:"CANCEL",defaultMessage:"Cancel"})}),(0,i.jsx)(F.A,{id:"modal-notify-me-try-again",color:"primary",variant:"contained",size:"large",onClick:r,endIcon:"communicating"===t&&(0,i.jsx)(eC.A,{color:"inherit",size:20,thickness:5}),disabled:"communicating"===t,children:(0,i.jsx)(g.A,{id:"TRY_AGAIN",defaultMessage:"Try Again"})})]})]})})]})};var eS=a(484830),eN=a(376056),eI=a(521018),eR=a(258745),ek=a(261026),eM=a(404364),eP=a(667792),eL=a(116958),eO=a(994767);let{publicRuntimeConfig:{featureFlags:eB}}=S()(),ew=(0,p.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)}}})),eF=e=>{let{countryCode:t,hasDiscount:a=!1,isBBE:n=!1}=e,{classes:r,cx:l}=ew(),o=(0,eO.tb)(),s=eB.strikethroughPricing||!eB.strikethroughPricing&&o;return(0,i.jsxs)(i.Fragment,{children:["ar"===t.toLowerCase()&&(0,i.jsx)("div",{className:l(r.priceDisclaimer,r.taxDisclaimer),children:(0,i.jsx)(g.A,{id:"PRICE_WITHOUT_NATIONAL_TAXES",defaultMessage:"PRICE WITHOUT NATIONAL TAXES"})}),a&&s&&(0,i.jsx)("div",{className:r.priceDisclaimer,children:(0,i.jsx)(g.A,{id:"WEB_ONLY_PROMOTION",defaultMessage:"Web-Only Promotion"})}),"cn"===t.toLowerCase()&&n&&(0,i.jsx)("div",{className:l(r.priceDisclaimer,r.taxDisclaimer),children:(0,i.jsx)(g.A,{id:"PRICE_EXCLUDES_TAX_AND_FREIGHT",defaultMessage:"PRICE EXCLUDES TAX AND FREIGHT"})})]})};var eD=a(494295),eW=a(327651),eU=a(469485);let eH=(0,p.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)}}})),ez=e=>{let{availability:t,gaMessageId:a,promoCode:n,promoDiscount:r}=e,{classes:l}=eH();return(0,eU.L)(a,t),(0,i.jsxs)(er.A,{className:l.promoContainer,container:!0,"data-testid":"promos-container",children:[(0,i.jsx)(er.A,{item:!0,children:(0,i.jsxs)("span",{className:l.promoDiscountMessage,children:[(0,i.jsx)("span",{className:l.bold,children:(0,i.jsx)(g.A,{id:"SAVE",defaultMessage:"Save"})})," ",(0,i.jsx)(g.A,{id:"DISCO_PROMO_MESSAGE",defaultMessage:"{promoDiscount} with code {promoCode}",values:{promoDiscount:(0,i.jsx)("span",{className:l.bold,children:(0,i.jsx)(h.Gr,{value:r/100,style:"percent",minimumFractionDigits:0})}),promoCode:(0,i.jsx)("span",{className:l.bold,children:n})}})]})}),(0,i.jsx)(er.A,{className:l.webOnlyDiscountMessage,children:(0,i.jsx)(g.A,{id:"WEB_ONLY_DISCOUNT",defaultMessage:"Web-Only Discount"})})]})};var eG=a(640330),eV=a(914040),eY=a(903635),eq=a(346129),eK=a(683198);let e$=(0,p.makeStyles)()(e=>({productNumber:{fontWeight:e.typography.fontWeightBold}})),eQ=e=>{let{productNumber:t}=e,{classes:a}=e$();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)(g.A,{id:"PRODUCT_NOT_SOLD_IN_COUNTRY",defaultMessage:"Product {productNumber} is not currently sold in your country.",values:{productNumber:(0,i.jsx)("span",{className:a.productNumber,children:t})}})})]})};var eX=a(11975),eZ=a(336745);let eJ=(0,p.makeStyles)()(e=>({buyBoxContainer:{backgroundColor:e.palette.background.grey,boxShadow:"2px 2px 6px 0 rgba(0, 0, 0, 0.25);",padding:e.spacing(4)},buyBoxContainerNoBoxShadow:{boxShadow:"none"},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,fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium},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)}},packSize:{padding:e.spacing(1,0,2,0)},mobileSrpMaterialNumber:{maxWidth:"none",paddingRight:e.spacing(3),fontSize:e.typography.pxToRem(12)},mobileSrpPrice:{marginTop:e.spacing(0),display:"inline-flex",paddingRight:e.spacing(2)},mobileSrpStrikePrice:{verticalAlign:"top"},mobileSrpSaveLabel:{display:"flex",marginLeft:e.spacing(0),marginTop:e.spacing(2)},fieldHeight:{height:40}})),{publicRuntimeConfig:{featureFlags:e0}}=S()(),e1=e=>{var t,a,p,_,S,F,D,W,U,H,z,G,V,Y,K,$,Q,er;let{isMultiCountryUser:el,countryCode:eo,loading:es,material:ed,product:ec,error:eh,isPricingModal:eA=!1,showPriceDisclaimer:ey=!1,shouldShowReadyToShipNotification:ev=!1,focus:ef,sourceString:eb,promos:eC,productNotSoldInCountry:eE,isMobileSrpBuyBox:ej}=e,{classes:e_,cx:eB}=eJ(),ew=(0,q.rd)(),{userSession:eU}=(0,ee.j)(),eH=(0,eO.dU)(),eK=(0,eD.D)(eW.JP.countryCode),e$=(0,w.iZ)(),{userIsLoggedIn:e1,currentUser:e2,isPublicOrderingCustomer:e4,isSubscriptionUser:e7,isQuoteRequester:e3,isB2BUser:e8,getSitePreference:e5,isDarmstadtUser:e6,isPipelineUser:e9,isFTBUser:te}=e$,tt=e5(w.VD.HideAddToCartForPrepackItems),ta=(0,w.nL)(e$),{authorized:ti}=(0,et.I)(et.N.canAddToCart),tn=(0,E.g9)(),{formatMessage:tr}=(0,m.A)(),[tl,to]=(0,n.useState)(!1),[ts,td]=(0,n.useState)(!1),[tc,tu]=(0,n.useState)(!1),tp=te||e8||e9,tm=(0,n.useMemo)(()=>{var e;return null==eC?void 0:null===(e=eC.skus)||void 0===e?void 0:e.find(e=>e.sku===(null==ed?void 0:ed.materialNumber))},[eC,ed]),tg=(0,eZ.QA)(tm),th=null==tg?void 0:tg.promoType,tx=null==tg?void 0:tg.promoCode,tA=null==tg?void 0:tg.discount,ty=null==tg?void 0:tg.qualifierType,tv=null==tg?void 0:tg.hidePromoDetailsForAnonUser,tf=null!=tv&&tv&&!e1,tb=null!==(G=null==ed?void 0:ed.listPrice)&&void 0!==G?G:0,tT=null!==(V=null==ed?void 0:ed.price)&&void 0!==V?V:0,tC=ed&&(null==ed?void 0:ed.currency)===(null==ed?void 0:ed.listPriceCurrency),tE=tb>tT?(tb-tT)/tb*100:null,tj=null===(t=ec.forms)||void 0===t?void 0:t.find(e=>"bulk order"===e.type),t_=null!==(Y=null===(a=ec.forms)||void 0===a?void 0:a.filter(e=>"bulk order"!==e.type))&&void 0!==Y?Y:[],tS=(0,n.useMemo)(()=>tj?t_.slice(0,1):t_.slice(0,2),[t_,tj]),[tN,tI]=(0,n.useState)(!1),tR=()=>{tI(!1)},tk=()=>{tI(!0),(0,N.Sm)({action:"learn more subscription order",section:"pricing card",component:"right rail",elementType:"link",elementText:"learn more",material:{materialDescription:null==ed?void 0:ed.materialDescription,brand:null==ed?void 0:ed.brand,product:null==ed?void 0:ed.product,materialNumber:null==ed?void 0:ed.materialNumber}})},tM=!ej&&e0.subscriptions&&e7&&(null==ed?void 0:ed.shipsToday),tP=(null==ed?void 0:ed.catalogType)==="buildingblocks",tL=null==ec?void 0:ec.isMarketplace,[tO]=null!==(K=null==ed?void 0:ed.availabilities)&&void 0!==K?K:[],{contactPhone:tB,contactEmail:tw}=null!==($=null==tO?void 0:tO.contactInfo)&&void 0!==$?$:{},tF=null==ed?void 0:null===(p=ed.availabilities)||void 0===p?void 0:p.some(e=>null==e?void 0:e.displayInquireLink),tD=ti&&!tt&&!el&&(!tL||tL&&!!(null==e2?void 0:null===(_=e2.metadata)||void 0===_?void 0:_.isMarketplaceCartEnabled)),tW=(null==tO?void 0:tO.key)==="INQUIRE_FOR_PRICE_AND_AVAILABILITY",tU=(null==e2?void 0:e2.__typename)==="GuestUser"&&!tD,tH=(null==e2?void 0:e2.__typename)==="LoggedInUser"&&!(null==e2?void 0:null===(S=e2.metadata)||void 0===S?void 0:S.guestShoppingType)&&!e4&&!e3,tz=th===eV.c5.BuySave&&(ty===eV.Er.Currency||ty===eV.Er.Quantity),tG=(null===(F=e$.currentUser)||void 0===F?void 0:F.email)||"",tV=(null==ec?void 0:null===(W=ec.images)||void 0===W?void 0:null===(D=W[0])||void 0===D?void 0:D.smallUrl)||"",tY=ec.productNumber||"",{isPurpleProduct:tq}=(0,eS.Q)(ec.erp_type),tK=(0,eD.L)(eW.CN.countryCode),t$=tq&&tK&&!e1,tQ=!ej&&Object.values(null!==(Q=null==ed?void 0:ed.additionalInfo)&&void 0!==Q?Q:{}).filter(e=>!!e&&"CartAdditionalInfo"!==e).length,tX=()=>{to(e=>!e)},tZ=e=>{let t=eL.Ay[e];return t?tr(t):e},[tJ,t0]=(0,n.useState)("FOUR_WEEKS"),{data:t1,error:t2}=(0,eM.rI)({skip:!tM,ssr:!1}),t4=(null==t1?void 0:null===(U=t1.subscriptionFrequencies)||void 0===U?void 0:U.map(e=>({label:tZ(e),value:e})))||[],t7=async(e,t)=>{let a=null;tc&&th===eV.c5.SubscribeSave&&tx&&(a=tx),(0,Z.p8)([{materialNumber:e.materialNumber,quantity:t,marketplaceOfferId:e.marketplaceOfferId,subscriptionFrequency:tc?tJ:null}],[e],eA?J.k9.SearchResultPage:J.k9.ProductDetailPage),await tn([{materialNumber:e.materialNumber,quantity:t,subscriptionFrequency:tc?tJ:null,promoCode:a,listPrice:tb}],void 0,void 0,tL),tu(!1),t0("FOUR_WEEKS")},t3=e=>{tu(e),(0,N.Sm)({action:e?"subscription order radio":"one time order radio",section:"pricing card",component:"right rail",elementType:"radio button",material:{brand:null==ed?void 0:ed.brand,materialDescription:null==ed?void 0:ed.materialDescription,materialNumber:null==ed?void 0:ed.materialNumber,product:null==ed?void 0:ed.product}})},t8=e=>{let t=tZ(e);t0(e),(0,N.Sm)({action:"subscription frequency selection",detail:t.toLowerCase(),section:"pricing card",component:"right rail",elementType:"drop down",elementText:t.toLowerCase(),material:{brand:null==ed?void 0:ed.brand,materialDescription:null==ed?void 0:ed.materialDescription,materialNumber:null==ed?void 0:ed.materialNumber,product:null==ed?void 0:ed.product}})},t5=e=>{if("Enter"===e.key&&!tp){let t=e.target.closest("[id]");tu((null==t?void 0:t.id)!=="one-time-order-header")}},t6=e=>{let{material:t,quantity:a,validQty:n}=e,{classes:l}=eJ(),[o]=(0,eY.A2)("wabt-233b");return(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(x.Ay,{canAddToCart:tD,dirty:!0,fullWidth:!0,handleAddToCart:()=>t7(t,a),hideAddToCartForPrepackItems:tt,isSubmitting:!1,size:"large",disabled:!n||(null==t?void 0:t.isBlockedProduct)||(null==t?void 0:t.availableQtyInStock)===0||tF,addToCartButtonClass:eB(l.fieldHeight,(null==o?void 0:o.enabled)?l.abTestAddToCartButton:"")})})},t9=e=>{var t,a;let{validQty:d}=e,{values:c}=(0,T.j7)(),{quantity:u}=c;return(0,n.useEffect)(()=>{ts||th!==eV.c5.SubscribeSave||tu(!0),td(!0)},[th]),(0,i.jsxs)(i.Fragment,{children:[(null==ed?void 0:ed.promotionalMessage)?(0,i.jsx)(r.A,{mb:3,children:(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(P.A,{promotional:null==ed?void 0:ed.promotionalMessage})})}):null,(null==ed?void 0:ed.isBlockedProduct)?(0,i.jsxs)(r.A,{className:e_.productBlockedLink,children:[(0,i.jsxs)(o.A,{onClick:()=>to(!0),children:[(0,i.jsx)(B.A,{className:e_.lockIcon}),(0,i.jsx)(l.A,{className:e_.productBlockedText,children:(0,i.jsx)(g.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),tl&&(0,i.jsx)(O.A,{open:tl,onCancel:tX})]}):(0,i.jsx)(T.D0,{inputProps:{inputMode:"numeric"},name:"quantity",component:f.A,disabled:tt,error:!d,filled:!0,max:null!==(t=null==ed?void 0:ed.availableQtyInStock)&&void 0!==t?t:9999,min:1,className:e_.fieldHeight}),t$?(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(eN.A,{fullWidth:!0,size:"large"})}):(0,i.jsx)(t6,{material:ed,quantity:u,validQty:d}),(null==ed?void 0:ed.isBuyNow)&&tD?(0,i.jsx)(A.A,{fullWidth:!0,materialNumber:null==ed?void 0:ed.materialNumber,quantity:u,marketplace:tL,gaType:eA?"search results page":"product detail page",promoCode:th&&th===eV.c5.PercentOff?tx:void 0}):null,ta&&(null==e0?void 0:e0.requestQuoteModal)&&!tt&&!tL&&!tP?(0,i.jsx)(r.A,{mt:2,children:e8?(0,i.jsx)(ex,{quoteData:{material:ed,product:ec,quantity:u},disabled:!u}):(0,i.jsx)(X,{quoteData:{material:ed,product:ec,quantity:u},disabled:!u})}):null,tj&&!tL&&!tt&&!e6&&(0,i.jsx)(y.N,{href:"".concat(tj.url,"?tfa_1=").concat(ec.productNumber,"&tfa_2=").concat((0,eg.Ay)(null!==(a=null==ec?void 0:ec.name)&&void 0!==a?a:"")),passHref:!0,children:(0,i.jsx)(s.A,{className:e_.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,N.RH)({product:ec,materialNumber:null==ed?void 0:ed.materialNumber,cta:tj}),children:(0,i.jsx)(g.A,{id:"REQUEST_BULK_ORDER",defaultMessage:"Request a Bulk Order"})})}),!!tS.length&&!tL&&tS.map(e=>(0,i.jsx)(y.N,{href:e.url,passHref:!0,children:(0,i.jsx)(s.A,{className:e_.ctaLink,color:"primary",target:"_blank",onClick:()=>(0,N.RH)({product:ec,materialNumber:null==ed?void 0:ed.materialNumber,cta:e}),children:(0,i.jsx)(g.A,{id:e.label.toUpperCase().split(" ").join("_"),defaultMessage:e.label})})},e.label)),ev&&(0,i.jsx)(eT,{material:ed,userEmail:tG,productImageUrl:tV,productNumber:tY})]})},ae=e=>{var t;let{validQty:a}=e,{values:n}=(0,T.j7)(),{quantity:s}=n;return(0,i.jsx)(i.Fragment,{children:e9?(0,i.jsx)("div",{className:e_.subscriptionText,children:(0,i.jsx)(g.A,{id:"PIPELINE_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for customers requiring permission to purchase."})}):e8?(0,i.jsx)("div",{className:e_.subscriptionText,children:(0,i.jsx)(g.A,{id:"B2B_USER_SUBSCRIPTIONS_MESSAGE",defaultMessage:"Subscriptions are not available for eProcurement customers at this time."})}):te?(0,i.jsx)("div",{className:e_.subscriptionText,children:(0,i.jsx)(g.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==ed?void 0:ed.isBlockedProduct)?(0,i.jsxs)(r.A,{className:e_.productBlockedLink,children:[(0,i.jsxs)(o.A,{onClick:()=>to(!0),children:[(0,i.jsx)(B.A,{className:e_.lockIcon}),(0,i.jsx)(l.A,{className:e_.productBlockedText,children:(0,i.jsx)(g.A,{id:"PRODUCT_BLOCKED",defaultMessage:"Product Blocked"})})]}),tl&&(0,i.jsx)(O.A,{open:tl,onCancel:tX})]}):(0,i.jsx)(T.D0,{inputProps:{inputMode:"numeric"},name:"quantity",component:f.A,disabled:tt,error:!a,filled:!0,max:null!==(t=null==ed?void 0:ed.availableQtyInStock)&&void 0!==t?t:9999,min:1,className:e_.fieldHeight}),(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(b.A,{value:tJ,onChange:e=>t8(e.target.value),renderValue:e=>tZ(e),displayEmpty:!0,size:"medium",children:t4.map(e=>(0,b.h)(e.value,e.value,e.label))})}),(0,i.jsx)(r.A,{mb:2,mt:2,children:(0,i.jsx)(x.Ay,{canAddToCart:tD,dirty:!0,fullWidth:!0,handleAddToCart:()=>t7(ed,s),hideAddToCartForPrepackItems:tt,isSubmitting:!1,size:"large",disabled:!a||(null==ed?void 0:ed.isBlockedProduct)||(null==ed?void 0:ed.availableQtyInStock)===0||tF,addToCartButtonClass:e_.fieldHeight})}),(null==ed?void 0:ed.isBuyNow)&&tD?(0,i.jsx)(A.A,{fullWidth:!0,materialNumber:null==ed?void 0:ed.materialNumber,quantity:s,marketplace:tL,subscriptionFrequency:tJ,promoCode:th===eV.c5.SubscribeSave?tx:void 0,gaType:eA?"search results page":"product detail page"}):null]})})},at={...ed,discoMessage:tr({id:"DISCO_PROMO_MESSAGE",defaultMessage:"{promoDiscount} with code {promoCode}"},{promoDiscount:"-".concat(tA,"%"),promoCode:tx})},aa=null!==(er=null==ed?void 0:null===(H=ed.availabilities)||void 0===H?void 0:H.find(e=>(null==e?void 0:e.messageType)==="primary"))&&void 0!==er?er:null==ed?void 0:null===(z=ed.availabilities)||void 0===z?void 0:z[0],ai=null==aa?void 0:aa.key,an=tx&&tA&&th!==eV.c5.SubscribeSave&&th===eV.c5.PercentOff&&!tc;return eE?(0,i.jsx)("div",{className:eB(e_.buyBoxContainer,{[e_.buyBoxContainerNoBoxShadow]:ej}),children:(0,i.jsx)(eQ,{productNumber:tY})}):(0,i.jsx)(T.l1,{initialValues:{materialNumber:null==ed?void 0:ed.materialNumber,quantity:1},onSubmit:(e,t)=>{setTimeout(()=>{t.setSubmitting(!1)},1e3)},children:e=>{var t,a,n,o,s,p;let{values:m}=e,x=(0,em.aA)(m.quantity,null==ed?void 0:ed.minOrderQuantity,eH),A=m.quantity>0&&!x;return(0,i.jsxs)(i.Fragment,{children:[es?(0,i.jsx)("div",{className:e_.loaderContainer,children:(0,i.jsx)("div",{className:eB(e_.loader,{[e_.minHeight]:eA})})}):(0,i.jsxs)("div",{className:eB(e_.buyBoxContainer,{[e_.minHeight]:eA,[e_.minHeightError]:eA&&!!eh,[e_.buyBoxContainerNoBoxShadow]:ej}),children:[eh?(0,i.jsx)(ep.M,{source:"pdp",brand:(null==ed?void 0:ed.brand)||(null==ec?void 0:null===(t=ec.brand)||void 0===t?void 0:t.name)||"",item:(null==ed?void 0:ed.materialNumber)||(null==ec?void 0:ec.productNumber),waitUntilVisible:!0,children:(0,i.jsx)(R.A,{error:eh,productNumber:null==ec?void 0:ec.productNumber,isCenterJustified:!1,isMarketplace:tL,sellerName:(null==ec?void 0:ec.displaySellerName)||(0,k.t1)(null==ec?void 0:ec.attributes),marketplaceSellerId:null!==(n=null==ec?void 0:ec.marketplaceSellerId)&&void 0!==n?n:"",marketplaceOfferId:null!==(o=null==ec?void 0:ec.marketplaceOfferId)&&void 0!==o?o:""})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A,{component:ej?"p":"h2",variant:ej?"body1":"h2",className:ej?e_.mobileSrpMaterialNumber:e_.materialNumber,children:[ed?(0,i.jsx)(ei.A,{materialNumber:ed.materialNumber,isShowIcon:ej}):null,tQ?(0,i.jsx)(eu,{material:ed}):null]}),ej&&(0,i.jsx)(l.A,{component:"h2",variant:"h2",className:e_.packSize,children:ed&&ed.packageSize}),tP&&(null==ed?void 0:ed.vendorSKU)?(0,i.jsxs)(l.A,{className:e_.vendorSku,children:[(0,i.jsx)(g.A,{id:"VENDOR_SKU",defaultMessage:"Vendor SKU"}),": ",null==ed?void 0:ed.vendorSKU]}):null,tW?(0,i.jsx)(r.A,{mt:4,children:(0,i.jsxs)(l.A,{variant:"body2",children:[(0,i.jsx)(j.A,{className:e_.errorIcon}),(0,i.jsx)(g.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:[tB&&(0,i.jsx)("span",{className:e_.phone,children:tB}),tB&&tw&&(0,i.jsx)(l.A,{component:"span",className:e_.or,children:(0,i.jsx)(g.A,{id:"OR",defaultMessage:"or"})}),tw&&(0,i.jsx)("div",{className:e_.email,children:(0,i.jsx)("a",{href:"mailto:".concat(tw),children:tw})})]})}})]})}):(0,i.jsxs)(i.Fragment,{children:[tF?(0,i.jsx)(eq.N,{href:q.mA.customerSupportWithFormId("tfa_11"),className:e_.inquireLink,children:(0,i.jsx)(g.A,{id:"INQUIRE",defaultMessage:"Inquire"})}):(0,i.jsxs)(i.Fragment,{children:[(null==ed?void 0:ed.hidePriceMessageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(en.A,{msgKey:null==ed?void 0:ed.hidePriceMessageKey})}):(0,i.jsx)(l.A,{className:eB(e_.price,{[e_.mobileSrpPrice]:ej}),component:"h3",variant:"h3",children:(0,i.jsx)(h.Gr,{style:"currency",currencyDisplay:"symbol",currency:null==ed?void 0:ed.currency,value:null!=tT?tT:0})}),null===tE||!(tE>0)||(null==ed?void 0:ed.hidePriceMessageKey)?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:eB({[e_.mobileSrpStrikePrice]:ej}),children:[(0,i.jsx)(l.A,{component:"span",className:e_.listPriceLabel,children:(0,i.jsx)(g.A,{id:"LIST_PRICE",defaultMessage:"List Price"})}),(0,i.jsx)(l.A,{component:"span",className:e_.listPrice,children:(0,i.jsx)(h.Gr,{style:"currency",currencyDisplay:"symbol",currency:(null==ed?void 0:ed.listPriceCurrency)||(null==ed?void 0:ed.currency),value:null!=tb?tb:0})})]}),tC&&tE>=5&&(0,i.jsx)(l.A,{component:"span",className:eB(e_.saveLabel,{[e_.mobileSrpSaveLabel]:ej}),children:(0,i.jsx)(g.A,{id:"SAVE_DISCOUNT_PRICE",defaultMessage:"Save {discount}%",values:{discount:Math.round(tE)}})})]})]}),ey&&(0,i.jsx)(eF,{countryCode:eU.country,hasDiscount:null!==tE&&!!(null==ed?void 0:ed.ecomStrikeThroughPrice),isBBE:tP}),tf?(0,i.jsxs)("div",{className:e_.signInOffer,children:[(0,i.jsx)(l.A,{children:(0,i.jsx)("strong",{children:(0,i.jsx)(g.A,{id:"LIMITED_TIME_OFFER_PROMO",defaultMessage:"Limited-time Offer"})})}),(0,i.jsx)(l.A,{children:(0,i.jsx)(g.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(ew.asPath||q.xn.index())),onClick:()=>(0,I.sendNavigationInteractionEvent)({action:"cta click",detail:"visit sign in page",section:"pricing card",component:"right rail",elementType:"link",elementText:"sign in",linkUrl:"".concat(q.VV.index(),"?redirect=").concat(encodeURIComponent(ew.asPath||q.xn.index())),productId:null==ed?void 0:ed.product,productVariant:null==ed?void 0:ed.materialNumber,productBrand:null==ed?void 0:ed.brand}),children:(0,i.jsx)(g.A,{id:"SIGN_IN",defaultMessage:"Sign In"})})}})})]}):tz?(0,i.jsx)(eG.A,{className:e_.badgeWrapper,showTooltip:!0,promoData:tg,materialNumber:null==ed?void 0:ed.materialNumber,product:ec}):(0,i.jsx)(ep.M,{source:"pdp",brand:null==ed?void 0:ed.brand,item:null==ed?void 0:ed.materialNumber,pricing:at,children:an&&(0,i.jsx)(ez,{availability:aa,gaMessageId:ai,promoCode:tx,promoDiscount:tA})}),!ej&&(0,i.jsx)(r.A,{mt:4,children:(0,i.jsx)(d.A,{})}),(0,i.jsxs)(r.A,{mt:ej?2:4,mb:2,"data-optimizely":"availability",children:[ed?an?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{material:ed,canAddToCart:tD,countryCode:eo,gaDetailsClick:()=>(0,N.Sm)({action:"check availability details",section:eA?"modal p&a":"summary",component:eA?"modal":"right rail",elementType:"link",elementText:"details",material:ed}),gaSection:"pricing card",gaComponent:"right rail"}),(0,i.jsx)(eX.A,{})]}):(0,i.jsxs)(ep.M,{source:eA?eb||"srp - ".concat(ef):"pdp",brand:ed.brand,item:ed.materialNumber,pricing:ed,waitUntilVisible:!0,children:[(0,i.jsx)(v.A,{material:ed,canAddToCart:tD,countryCode:eo,gaDetailsClick:()=>(0,N.Sm)({action:"check availability details",section:eA?"pricing card":"summary",component:"right rail",elementType:"link",elementText:"details",material:ed}),gaSection:"pricing card",gaComponent:"right rail"}),(0,i.jsx)(eX.A,{})]}):null,(null==ed?void 0:ed.expirationDate)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(ea.A,{expirationDate:ed.expirationDate,outerClassName:e_.labelFontSize,displayInline:!0,displayColon:!0})}):null,(null==ed?void 0:ed.minOrderQuantity)&&(null==ed?void 0:ed.minOrderQuantity)>1?(0,i.jsxs)(l.A,{className:eB(e_.labelFontSize,{[e_.minimumQuantityError]:!A}),children:[(0,i.jsx)(g.A,{id:"MINIMUM_ORDER_QUANTITY",defaultMessage:"Minimum Order Quantity: "}),ed.minOrderQuantity]}):null,!ej&&(null==tO?void 0:null===(a=tO.supplementaryMessage)||void 0===a?void 0:a.messageKey)?(0,i.jsx)(r.A,{mt:1,children:(0,i.jsx)(L.A,{supplementary:null==tO?void 0:tO.supplementaryMessage,productName:ec.name})}):null,(null==ed?void 0:ed.isPBAvailable)&&(0,i.jsx)(r.A,{mt:2,children:(0,i.jsx)(M.A,{materialNumber:null!==(s=null==ed?void 0:ed.materialNumber)&&void 0!==s?s:"",brand:null==ed?void 0:ed.brand,productName:null!==(p=null==ed?void 0:ed.product)&&void 0!==p?p:"",erp_type:null==ec?void 0:ec.erp_type})})]}),!ej&&(0,i.jsx)(r.A,{mt:3,children:(0,i.jsx)(d.A,{})}),tM?(0,i.jsxs)(r.A,{className:e_.subscriptionContainer,children:[(0,i.jsx)(eI.A,{details:(0,i.jsx)(t9,{validQty:A}),expanded:!tc,onKeyDown:t5,summary:(0,i.jsx)(eR.A,{label:"One Time Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>t3(!1),checked:!tc}),summaryAriaControls:"one-time-order-content",summaryId:"one-time-order-header",overrideClasses:{accordion:e_.accordion,summary:e_.summary,details:e_.details}}),(0,i.jsx)(eI.A,{details:(0,i.jsx)(ae,{validQty:A}),expanded:!!te||!!e8||!!e9||tc,onKeyDown:t5,summary:!t2&&(null==t4?void 0:t4.length)?(0,i.jsxs)(r.A,{className:e_.summaryContainer,children:[(0,i.jsxs)(r.A,{className:e_.summaryLabel,children:[(0,i.jsx)(eR.A,{label:"Subscription Order",name:"defaultName",size:"medium",value:"defaultValue",onChange:()=>t3(!0),checked:tc,disabled:tp}),(0,i.jsx)(ek.A,{})]}),th===eV.c5.SubscribeSave&&(0,i.jsx)("div",{children:(0,i.jsx)(l.A,{className:e_.subsSaveMessage,children:(0,i.jsx)(g.A,{id:"SUBSCRIPTION_SAVE_MESSAGE",defaultMessage:"Save {discount}% off list price",values:{discount:tA}})})}),(0,i.jsx)(c.A,{onClickAway:tR,children:(0,i.jsx)(u.Ay,{arrow:!0,classes:{tooltip:e_.tooltip,arrow:e_.arrow},onClose:tR,open:tN,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{className:e_.tooltipHeading,variant:"h3",children:(0,i.jsx)(g.A,{id:"SUBSCRIPTION_ORDER_HEADING",defaultMessage:"Subscription Orders"})}),th&&th===eV.c5.SubscribeSave?(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(g.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:tA}})}):(0,i.jsx)(l.A,{variant:"body2",children:(0,i.jsx)(g.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)(eP.A,{className:e_.infoLink,onClick:tk,children:(0,i.jsx)(g.A,{id:"LEARN_MORE",defaultMessage:"Learn More"})})})})]}):(0,i.jsxs)("span",{className:e_.subscriptionError,children:[(0,i.jsx)(j.A,{className:e_.errorIcon}),(0,i.jsx)(g.A,{id:"SUBSCRIPTION_FAILED",defaultMessage:"Subscriptions are currently unavailable."})]}),summaryAriaControls:"subscription-order-content",summaryId:"subscription-order-header",overrideClasses:{accordion:eB(e_.accordion,e_.accordionBackground),summary:e_.summary,details:e_.details}})]}):null,tM||el?null:(0,i.jsx)(i.Fragment,{children:tU||tH?(0,i.jsx)(g.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(y.N,{...q.mK.index({path:eK?"/life-science/ecommerce/ecommerce-faq/ordering-delivery-price":"/collections/offices",language:eU.language,country:eU.country}),passHref:!0,children:(0,i.jsx)("a",{rel:"noopener",target:"_blank",children:(0,i.jsx)(g.A,{id:"CONTACT",defaultMessage:"contact"})})})}}):(0,i.jsx)(t9,{validQty:A})})]})]}),eA?(0,i.jsx)(r.A,{mt:5,className:eB({[e_.pricingModal]:eA}),children:ed?(0,i.jsx)(C.A,{materialNumber:null==ed?void 0:ed.materialNumber,materialId:null==ed?void 0:ed.materialId,brand:null==ed?void 0:ed.brand,productName:null==ed?void 0:ed.materialDescription,productId:null==ed?void 0:ed.product,type:null==ed?void 0:ed.type,quantity:m.quantity,isLinkButton:!0,classes:{linkStyle:e_.linkStyle}}):null}):null]}),(0,i.jsx)(r.A,{mt:5*!ej,className:eB({[e_.hideLink]:eA}),children:ed?(0,i.jsx)(C.A,{materialNumber:null==ed?void 0:ed.materialNumber,materialId:null==ed?void 0:ed.materialId,brand:null==ed?void 0:ed.brand,productName:null==ed?void 0:ed.materialDescription,productId:null==ed?void 0:ed.product,type:null==ed?void 0:ed.type,quantity:m.quantity,isLinkButton:!0,classes:{linkStyle:e_.linkStyle}}):null})]})}})}},130510:(e,t,a)=>{a.d(t,{T:()=>ex,A:()=>ey});var i=a(637876),n=a(14232),r=a(599220),l=a(278206),o=a(308733),s=a(877742),d=a(190079),c=a(505411),u=a(632768),p=a(672214),m=a(128975),g=a(677660),h=a(428888),x=a(182897),A=a(154431);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=a(21347),T=a(875878),C=a(226925),E=a(304009),j=a(554753),_=a(70524),S=a(364272),N=a(552263),I=a(211148),R=a(11788),k=a(399486),M=a(523307),P=a(197710),L=a(328011),O=a(254736),B=a(432886),w=a(175020),F=a(710759),D=a(877018),W=a(346588);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)(o.A,{...j.A.RESTRICTED_ITEM_MESSAGE})})]})};var z=a(868351);let G=[g.qL.ApoNoStock,g.qL.OutOfStockKey,g.qL.UnknownAvailability],V=e=>{let{materialPricing:t,selectedChip:a,onSelect:n}=e;return(0,i.jsx)(z.A,{items:t.map(e=>({label:e.materialNumber,value:e.materialNumber})),selectedChip:a,unavailableChips:t.filter(e=>{let{availabilities:t}=e;return null==t?void 0:t.find(e=>G.includes(e.key))}).map(e=>{let{materialNumber:t}=e;return t}),onSelect:n,id:"sku-selection"})};var Y=a(495349),q=a(852413),K=a(317685),$=a(298411),Q=a(703848),X=a(52710),Z=a(812197),J=a(380863),ee=a(979632),et=a(771007),ea=a(476764),ei=a(910430);let en=(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)}}})),er=e=>{var t,a;let{brand:r,productNumber:l}=e,{classes:s}=en(),[d,{data:c}]=(0,ei.b0)(),[u,{data:p}]=(0,ea.Bw)(),m=(null==c?void 0:null===(a=c.getSdsCertificateSearch)||void 0===a?void 0:null===(t=a.sds[0])||void 0===t?void 0:t.languages.altLanguages)||[];(0,n.useEffect)(()=>{d({variables:{productNumber:l,brand:r.key}}),u({variables:{input:{productNumber:l,brand:r.key}}})},[l,r.key]);let{url:g}=(null==p?void 0:p.getSpecificationSheet)||{};return m.length||g?(0,i.jsxs)("div",{className:s.documentsContainer,children:[(0,i.jsx)(Z.A,{variant:"caption",component:"h2",className:s.sectionTitle,children:(0,i.jsx)(o.A,{id:"DOCUMENTS",defaultMessage:"Documents"})}),(0,i.jsxs)("div",{className:s.documents,children:[m.length>0&&(0,i.jsx)(J.A,{sdsLanguages:[m[0]],productNumber:l||"",brandKey:r.key||"",trigger:(0,i.jsx)(ee.A,{}),onClick:()=>(0,et.sendHeaderSearchEvent)()}),g&&(0,i.jsx)("a",{href:g,target:"_blank",rel:"noopener noreferrer nofollow",onClick:()=>(0,et.sendHeaderSearchEvent)(),children:(0,i.jsx)(ee.A,{label:"SPECIFICATION_SHEET"})})]})]}):null};var el=a(236503),eo=a(757477),es=a(49691);let ed=(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"}})),ec=e=>{let{focus:t,linearFormula:a,empiricalFormula:n,casNumber:r,molecularWeight:l,productNumber:s,productBrand:d}=e,{classes:c}=ed(),u=a||n;return(0,i.jsxs)(el.A,{container:!0,component:"dl",spacing:1,className:c.infoList,alignItems:"baseline",children:[u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{item:!0,xs:5,lg:2,children:(0,i.jsxs)(Z.A,{variant:"caption",component:"dt",children:[a?(0,i.jsx)(o.A,{id:"LINEAR_FORMULA",defaultMessage:"Linear Formula"}):(0,i.jsx)(o.A,{id:"EMPIRICAL_FORMULA",defaultMessage:"Empirical Formula"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,children:(0,i.jsx)("dd",{className:c.formula,children:(0,i.jsx)(eo.A,{value:u})})})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{item:!0,xs:5,lg:2,component:"dt",children:(0,i.jsxs)(Z.A,{variant:"caption",component:"div",children:[(0,i.jsx)(o.A,{id:"CAS_NUMBER",defaultMessage:"CAS Number"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(es.m5,{color:"primary",label:r,searchValue:(0,P.aE)(r),searchFocusType:(0,P.UQ)(t),productSearchType:P.mI.CasNumber,onClick:()=>{(0,et.sendHeaderSearchEvent)({searchTerm:s||"",searchAutoSuggest:"quick view - cas number",searchAutoSuggestTerm:"".concat(r),searchType:(0,P.UQ)(t),searchComponent:"global search",searchErrorMessage:""}),(0,et.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)(t),type:P.mI.CasNumber})),productBrand:d,productId:s,section:"quick view p&a"})}})})]}),l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{item:!0,xs:5,lg:2,component:"dt",children:(0,i.jsxs)(Z.A,{variant:"caption",component:"div",children:[(0,i.jsx)(o.A,{id:"MOLECULAR_WEIGHT",defaultMessage:"Molecular Weight"}),":"]})}),(0,i.jsx)(el.A,{item:!0,xs:7,lg:10,component:"dd",children:(0,i.jsx)(eo.A,{value:l})})]})]})};var eu=a(484830),ep=a(376056),em=a(327651),eg=a(494295);let eh=(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)}})),ex=()=>{let{classes:e}=eh();return(0,i.jsxs)("div",{className:e.loadingIndicator,children:[(0,i.jsx)(d.A,{size:20,thickness:5}),(0,i.jsx)("span",{children:(0,i.jsx)(o.A,{...j.A.LOADING_PRICE_AND_AVAILABILITY})})]})},eA=function(e,t,a,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:S,isSubmitting:N,updateQuantity:M=u.A}=y,{userIsLoggedIn:P,getSitePreference:O,currentUser:B,isPublicOrderingCustomer:D,isQuoteRequester:W}=(0,R.iZ)(),U=(0,eg.D)(em.JP.countryCode),{authorized:z}=(0,k.I)(k.N.canAddToCart),{classes:G}=eh(),{formatMessage:Z}=(0,s.A)(),{setValues:J}=(0,l.j7)(),ee=O(R.VD.HideAddToCartForPrepackItems),{userSession:et}=(0,K.j)(),ea=(null==B?void 0:B.__typename)==="GuestUser"&&!z,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(t=>t.materialNumber===e),er=en(t)||(null==C?void 0:C[0]),[el,eo]=(0,n.useState)(er.materialNumber),[es,ed]=(0,n.useState)(1);(0,n.useEffect)(()=>{var e;ed(Number(null===(e=S[0])||void 0===e?void 0:e.quantity)||1)},[S]),(0,n.useEffect)(()=>{J(e=>{var a,i;let n=t&&C.some(e=>e.materialNumber===t)?t:null===(a=e[0])||void 0===a?void 0:a.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),[eu,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:G.label,children:(0,i.jsx)(o.A,{...j.A.SKU})})}),(0,i.jsx)(V,{materialPricing:C,selectedChip:el,onSelect:e=>{eo(e),J(t=>{var a;return{0:{...t[0],materialNumber:e,quantity:Number(null===(a=t[0])||void 0===a?void 0:a.quantity)||1}}})}})]}),eb?(0,i.jsx)(Y.A,{msgKey:eb}):null!=ev&&(0,i.jsxs)("div",{className:G.pricePromotionalWrapper,children:[!ej&&(0,i.jsx)(Q.A,{material:ey,priceClass:G.price,listPriceClass:G.listPrice}),a&&(0,i.jsx)("div",{className:G.promotionalCodeWrapper,children:(0,i.jsx)(o.A,{...j.A.USE_PROMOTIONAL_CODE,values:{promotionalCode:(0,i.jsx)("strong",{children:a})}})})]}),(0,i.jsx)("div",{className:G.availabilityMessages,children:eu?(0,i.jsx)("div",{className:G.loadingContainer,children:(0,i.jsx)(ex,{})}):(0,i.jsx)(X.M,{source:p&&"p&a modal - ".concat(p),brand:ey.brand,item:ey.materialNumber,pricing:ey,children:(0,i.jsx)($.A,{canAddToCart:z,material:ey,initialShipEstimate:(0,i.jsx)(E.f,{availability:eE,quantity:es,leadTime:eT}),isLoading:eu,hideDetailsLink:!0,gaComponent:"modal",gaSection:"quick view p&a"})})}),ea||ei?(0,i.jsx)("div",{className:G.contactDealer,children:(0,i.jsx)(o.A,{id:"CONTACT_LOCAL_DEALER",defaultMessage:"To order products, please {contactLink} your local dealer.",values:{contactLink:(0,i.jsx)(q.N,{...I.mK.index({path:U?"/life-science/ecommerce/ecommerce-faq/ordering-delivery-price":"/collections/offices",language:et.language,country:et.country}),passHref:!0,children:(0,i.jsx)("a",{rel:"noopener",target:"_blank",children:(0,i.jsx)(o.A,{id:"CONTACT",defaultMessage:"contact"})})})}})}):(0,i.jsxs)(i.Fragment,{children:[A?(0,i.jsx)(ep.A,{size:"medium"}):z&&!ee&&!(null==ey?void 0:ey.isBlockedProduct)&&!ej&&(0,i.jsxs)(m.fW,{className:G.actions,children:[(0,i.jsxs)("div",{className:G.mainActions,children:[(0,i.jsx)(l.D0,{name:"[0].quantity",component:T.A,className:G.quantityField,min:1}),(0,i.jsx)("div",{children:r&&P?(0,i.jsx)(L.A,{primaryOption:{label:Z({id:"ADD_TO_CART",defaultMessage:"Add to Cart"}),renderButton:()=>(0,i.jsx)(b.Ay,{dirty:!0,isSubmitting:N,canAddToCart:!0,hideAddToCartForPrepackItems:ee,size:"large"})},options:[{label:Z(j.A.ADD_TO_LIST),onClick:()=>{d&&d(el,es)}}]}):(0,i.jsx)(b.Ay,{dirty:!0,isSubmitting:N,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)(F.A,{materialNumber:el||"",quantity:es,onSuccess:e,marketplace:h,gaType:p})]}),(0,i.jsx)("div",{className:G.subActions,children:(0,i.jsx)(c.A,{variant:"text",color:"primary",size:"large",disabled:es===ec.current,onClick:async()=>{(0,w.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!==es&&(ec.current=es,eA(!0),await M(es),eA(!1))},children:(0,i.jsx)(o.A,{...j.A.CHECK_AVAILABILITY_BUTTON})})})]}),(null==ey?void 0:ey.isBlockedProduct)?(0,i.jsx)(H,{}):null]})]})}},ey=e=>{var t;let{open:a,onClose:r,image:l,brand:o,productKey:s,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:L=!1,linearFormula:F,empiricalFormula:D,casNumber:W,molecularWeight:U,type:H,gaPricingOverrides:z}=e,{classes:G}=eh(),{userIsLoggedIn:V,userId:Y}=(0,R.iZ)(),[q,K]=(0,n.useState)(""),[$,Q]=(0,n.useState)(1),[Z,J]=(0,n.useState)("price-and-availability"),ee=(e,t)=>{K(e),Q(t),J("add-to-list")},{isPurpleProduct:et}=(0,eu.Q)(_),ea=(0,eg.L)(em.CN.countryCode),ei=et&&ea&&!V,en=(0,n.useMemo)(()=>eA(r,y,b,T,ee,x,E,k,ei),[y]),el=(0,I.rd)(),{getSitePreference:eo}=(0,R.iZ)(),es=eo(R.VD.CatalogFilter)||void 0,{context:ed="",focus:ep=""}=el.query,ey=(0,M.y5)(ed),ev=(0,P.vN)(ey),{data:ef,loading:eb}=function(e){let t={...v,...e};return A.IT(f,t)}({variables:{brandKey:o.key,productKey:s,catalogType:ev,orgId:es}}),eT=null==ef?void 0:null===(t=ef.getProductDetail)||void 0===t?void 0:t.paMessage,eC=H===g.iC.ThirdPartyProvider,eE=null!=y?y:"";(0,n.useEffect)(()=>{J(a?"price-and-availability":null),x&&(0,w.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:o.key,product:d}})},[d,x,h,a,k]);let{data:ej,refetch:e_}=(0,B.g)({fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",skip:!V,variables:{input:{perpage:100,sortcolumn:"lastUpdatedDate"}}}),eS=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:G.header,children:(0,i.jsx)(p.c,{image:l,brand:o,productKey:s,productNumber:d,name:c,description:u,showPreviouslyPurchasedChip:!0,isMarketplace:E,marketplaceSellerId:j||void 0,onProductLinkClick:r,additionalInfo:(F||D||W||U)&&(0,i.jsx)(ec,{focus:ep,productNumber:d,casNumber:W,molecularWeight:U,linearFormula:F,empiricalFormula:D,productBrand:o.key})})}),(0,i.jsx)("div",{className:G.main,children:(0,i.jsx)("div",{className:G.thumbnailOffset,children:(0,i.jsx)(X.M,{source:x&&"p&a modal - ".concat(x),brand:o.key,item:d,children:eb?(0,i.jsx)(ex,{}):eT?(0,i.jsx)(N.Ay,{brandKey:o.key,productNumber:d,paMessage:eT,gaPricingOverrides:z}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.A,{productNumber:d,brandKey:o.key,LoadingComponent:ex,PricingComponent:eb?ex:en,usePricingComponentOnMobile:!0,condensed:!0,onAddToCartResult:r,gaType:x,gaMapProducts:S.w_,productKey:s,isMarketplace:E,erp_type:_,productName:c,isBBE:eC,materialIds:[eE]}),L&&(0,i.jsx)(er,{brand:o,productNumber:d})]})})})})]});return k?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.Ay,{open:"price-and-availability"===Z,onClose:()=>{r(),(0,w.Sm)({action:"close p&a",section:"modal p&a",component:"modal",elementType:"icon",material:{materialDescription:c,brand:o.key,product:d}})},size:m.Ih.Large,children:(0,i.jsx)(m.Uh,{className:G.modalMainContent,children:eS()})}),T&&(null==ej?void 0:ej.getSharedLists)&&(0,i.jsx)(O.A,{open:"add-to-list"===Z,onClose:()=>{J(null),r()},materialNumber:q,quantity:$,lists:ej.getSharedLists.sharedLists,refetchLists:e_,userId:Y})]}):(0,i.jsx)("div",{className:G.quickLookWrapper,children:eS()})}},155007:(e,t,a)=>{a.d(t,{Sx:()=>c});var i=a(428888);a(637876);var n=a(182897),r=a(354064);a(14232);var l=a(154431);function o(){let e=(0,i._)(["\n query SrpRecommendedProducts($input: GetSrpRecommendedProductsInput!) {\n getSrpRecommendedProducts(input: $input) {\n products {\n ...DynamicProduct\n }\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(o(),r.z);function c(e){let t={...s,...e};return l.IT(d,t)}},166791:(e,t,a)=>{a.d(t,{A:()=>_});var i=a(637876),n=a(14232),r=a(671541),l=a(148829),o=a(812197),s=a(505411),d=a(55011),c=a(780491),u=a(599220),p=a(635877),m=a(211148),g=a(888468),h=a(197710),x=a(852413),A=a(343965);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:t,productKey:a,productNumber:n,brandKey:r}=e,{classes:l}=y(),{removeCompareProduct:o}=(0,c.Zn)(),s=null==t?void 0:t.find(e=>!e.productKey||!e.brandKey||e.productKey===a&&e.brandKey===r);return(0,i.jsxs)("div",{className:l.productContainer,children:[(0,i.jsxs)("div",{className:l.product,children:[(0,i.jsx)("div",{children:s?(0,i.jsx)("div",{className:l.imageContainer,children:(0,i.jsx)("img",{className:l.image,src:s.url||s.smallUrl||s.mediumUrl,alt:(null==s?void 0:s.altText)||""})}):(0,i.jsx)("img",{className:l.image,src:"/assets/images/supelco-no-image/supelco-no-image_w300.png",alt:"Supelco"})}),(0,i.jsx)("div",{children:(0,i.jsx)(x.N,{...m.aR.index(r,a,{catalog:(0,h.vN)(h.Xc.Products)}),passHref:!0,children:n||a})})]}),(0,i.jsx)(d.A,{onClick:()=>o({brandKey:r,productKey:a}),children:(0,i.jsx)(A.A,{className:l.x})})]})};var f=a(308733),b=a(834669),T=a(776594),C=a(918847);let E=a.n(C)()(()=>a.e(2974).then(a.bind(a,242974)),{loadableGenerated:{webpack:()=>[242974]},loadableGenerated:{webpack:()=>[242974]},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:t=!1}=e,{compareProducts:a,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")),[S,N]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{N(!0)},[]),S)?t?(0,i.jsx)(E,{}):(0,i.jsx)(l.Ay,{anchor:"bottom",open:_&&a.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)(o.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=>a[e]?(0,i.jsx)(v,{...a[e]},a[e].productKey):(0,i.jsx)("div",{className:y.blank},e))}),(0,i.jsxs)("div",{className:y.btnContainer,children:[(0,i.jsx)(s.A,{disabled:a.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}},167334:(e,t,a)=>{a.d(t,{A:()=>s});var i=a(637876),n=a(599220),r=a(14232),l=a(44509);let o=(0,n.makeStyles)()((e,t)=>{let{cursor:a,transform:i,transformOrigin:n}=t;return{container:{height:"100%",overflow:"hidden"},imageWrapper:{alignItems:"center",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"auto 100%",cursor:a,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"}}}),s=e=>{let{image:t,customContainerStyles:a,customMouseOut:n,zoomStateChange:s}=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}=o({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),s&&s(!d)};return(0,i.jsx)("div",{className:A(x.container,a),onBlur:()=>c(!1),onMouseOut:()=>n||c(!1),onMouseMove:e=>{var t;if(!d)return;let{left:a,top:i,width:n,height:r}=null==h?void 0:null===(t=h.current)||void 0===t?void 0:t.getBoundingClientRect();p((e.pageX-a)/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==t?void 0:t.altText,src:null==t?void 0:t.largeUrl,sizes:"(min-width:960px) 716px, calc(100vw - 100px)",urls:[null==t?void 0:t.smallUrl,null==t?void 0:t.mediumUrl,null==t?void 0:t.largeUrl]})})})}},185581:(e,t,a)=>{a.d(t,{A:()=>y});var i=a(637876);a(14232);var n=a(977328),r=a.n(n),l=a(505411),o=a(599220),s=a(211148),d=a(852413),c=a(930),u=a(650524),p=a(308733),m=a(840002),g=a(992827),h=a(21347),x=a(786680);let A=(0,o.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"}})),y=e=>{var t,a;let{product:n,testId:o,onLinkClick:y,preloadCardImages:v=!1,className:f,isRaisedCardLayout:b,index:T,hideProductImg:C=!1,displayDiscount:E,additionalInfoRenderer:j,cardFooterVariant:_="quick-view",onFooterAction:S,analyticsItemListingId:N,analyticsItemListingName:I,dataAttributes:R,type:k}=e,M=(0,s.rd)(),P=(null==M?void 0:null===(t=M.query)||void 0===t?void 0:t.catalog)||"",{classes:L,cx:O}=A(),B="product-card-".concat(n.productNumber).concat(n.brand.key,"-").concat(o),w=(0,u.Gd)(),F="".concat(k," - ").concat(w),D=(null==M?void 0:null===(a=M.query)||void 0===a?void 0:a.type)===s.TK.MarketplaceCart;return(0,i.jsxs)("div",{className:O(f,"promotions-slider-div"),"data-index":T+1,...R,children:[v&&(0,i.jsx)(r(),{children:(0,i.jsx)("link",{rel:"preload",href:n.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(d.N,{...s.aR.index(n.brand.key,n.productKey,{catalog:P}),passHref:!0,children:(0,i.jsx)("a",{className:L.link,"data-testid":B,id:B,onClick:()=>{y&&y(),(0,c.e)({creativeSlot:F,product:n,indexPosition:T,carouselType:k,promoItemId:N,promoItemName:I})},children:(0,i.jsx)(g.D,{productNumber:n.productNumber,brand:n.brand,name:n.name,description:n.description,image:C?void 0:n.images[0],isRaisedCardLayout:b,displayDiscount:E,discount:n.discount,additionalInfo:(null==j?void 0:j(n))||void 0})})}),"none"!==_&&(0,i.jsxs)("div",{className:O(b?L.footerRaisedCard:L.footer),children:["quick-view"===_&&(0,i.jsx)(l.A,{className:L.btn,variant:"outlined",color:"primary",size:"large",fullWidth:!0,onClick:()=>{null==S||S(n),(0,c.e)({creativeSlot:F,product:n,indexPosition:T,carouselType:k,promoItemId:N,promoItemName:I})},children:(0,i.jsx)(p.A,{id:"QUICK_VIEW",defaultMessage:"Quick View"})}),"add-to-cart"===_&&(0,i.jsx)(h.Ay,{dirty:!0,isSubmitting:!1,canAddToCart:!0,hideAddToCartForPrepackItems:!1,handleAddToCart:()=>{null==S||S(n),(0,x.wS)(n,m.j.BuyAgain,D)},variant:h.lJ.Contained,color:h.Jy.Secondary,fullWidth:!0,size:"large"})]})]})}},187254:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(637876);a(14232);var n=a(599220),r=a(812197),l=a(40597),o=a(947671);let s=(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:t=!1,toolTipPlacement:a="top"}=e,{classes:n,cx:d}=s(),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)(o.A,{label:(0,i.jsx)(r.A,{className:n.promoChipLabel,children:"Up to 15% Off"}),className:d(n.promoChip,{[n.clickableChip]:t})});return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(l.Ay,{arrow:!0,classes:{tooltip:n.tooltip,arrow:n.arrow},placement:a,interactive:!0,title:c,enterTouchDelay:0,children:(0,i.jsx)("div",{className:n.tooltipWrapper,children:u})}):u})}},188124:(e,t,a)=>{a.d(t,{A:()=>s});var i=a(637876),n=a(14232),r=a(308733);let l=(0,a(599220).makeStyles)()(e=>({more:{color:e.palette.primary.main,cursor:"pointer"}}));var o=a(554753);let s=e=>{var t,a;let{children:s,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,{...o.A.LESS}):(0,i.jsx)(r.A,{...o.A.MORE})]})});if(!s)return null;if(Array.isArray(s))return(0,i.jsxs)("span",{children:[s.filter((e,t)=>(td&&(m||!0===p))&&e).map((e,t)=>(0,i.jsxs)("span",{children:[e,(!(t+2>d)||m&&!1!==p)&&t+1!==s.length&&u?", ":" "]},t)),s.length-1>d&&c&&x(),s.length-1>d&&!c&&"..."]});let A=null===(t=String(s))||void 0===t?void 0:t.split(" ").splice(0,d).join(" "),y=A.split("").lastIndexOf(",")===A.length-1?A.slice(0,A.length-1):A,v=(null===(a=String(s))||void 0===a?void 0:a.split(" ").length)>d,f=c&&v,b=!c&&!1===p&&v;return(0,i.jsxs)("span",{children:[m||!0===p?s:y,f&&x(),b&&"..."]})}},191247:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(637876);a(14232);var n=a(599220),r=a(812197),l=a(15329),o=a(748504);let s=(0,n.makeStyles)()(e=>({sheet:{position:"fixed",bottom:0,left:0,right:0,backgroundColor:e.palette.background.paper,boxShadow:"0 -3px 6px 0 ".concat(e.palette.grey[500]),transition:"transform 0.3s ease",zIndex:99},noTranslate:{transform:"translateY(0)"},translateFully:{transform:"translateY(100%)"},closeIcon:{position:"absolute",right:e.spacing(3),top:e.spacing(3),color:e.palette.text.primary},content:{padding:e.spacing(0),overflowY:"auto",maxHeight:"50vh"},titleContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(2),borderBottom:"1px solid ".concat(e.palette.divider)},title:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold}})),d=e=>{let{open:t,onClose:a,title:n,children:d}=e,{classes:c,cx:u}=s();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:u(c.sheet,t?c.noTranslate:c.translateFully),"data-testid":"sheet",children:[n?(0,i.jsxs)("div",{className:c.titleContainer,children:[(0,i.jsx)(r.A,{className:c.title,children:n}),(0,i.jsx)(l.A,{size:"small","aria-label":"close",onClick:a,children:(0,i.jsx)(o.A,{fontSize:"small"})})]}):(0,i.jsx)(l.A,{size:"small","aria-label":"close",className:c.closeIcon,onClick:a,children:(0,i.jsx)(o.A,{fontSize:"small"})}),(0,i.jsx)("div",{className:c.content,children:d})]})})}},192881:(e,t,a)=>{a.d(t,{A:()=>u});var i=a(637876);a(14232);var n=a(308733),r=a(554753),l=a(128975),o=a(812197),s=a(599220),d=a(598580);let c=(0,s.makeStyles)()(e=>({line:{margin:e.spacing(3,0)}})),u=e=>{let{open:t,onCancel:a}=e,{classes:s}=c();return(0,i.jsx)(l.Ay,{open:t,onClose:a,size:l.Ih.Medium,renderTitle:()=>(0,i.jsx)(o.A,{variant:"h2",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE})}),children:(0,i.jsxs)(l.Uh,{children:[(0,i.jsxs)(o.A,{component:"p",children:[(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE}),(0,i.jsx)(d.A,{})]}),(0,i.jsx)(o.A,{className:s.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_1})}),(0,i.jsx)(o.A,{className:s.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_2})}),(0,i.jsx)(o.A,{className:s.line,component:"p",children:(0,i.jsx)(n.A,{...r.A.WHAT_IS_MPARTNER_MARKETPLACE_MESSAGE_LINE_3})})]})})}},194013:(e,t,a)=>{a.d(t,{A:()=>E,i:()=>C});var i=a(637876),n=a(406995),r=a(17138),l=a(971538),o=a(63724),s=a(599220),d=a(330566),c=a(579219),u=a(103221),p=a(875845),m=a(211148),g=a(384627),h=a(677197),x=a(677660),A=a(771007),y=a(554753),v=a(877742),f=a(10781),b=a(433967);let T=(0,s.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},padding:"".concat(e.typography.pxToRem(6)," ").concat(e.typography.pxToRem(12))},tabpanel:{padding:0},divider:{marginBottom:e.spacing(4),[e.breakpoints.up("md")]:{marginBottom:e.spacing(8)}}}));var C=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 E=()=>{var e;let{classes:t}=T(),a=(0,d.A)(),{formatMessage:s}=(0,v.A)(),C=!0===(0,n.A)(a.breakpoints.up("md")),E=(0,m.rd)(),j=(null==E?void 0:null===(e=E.query)||void 0===e?void 0:e.tab)||"sds",_=(e,t,a)=>{let i=h.tq[null!=a?a:""];(0,A.sendCommonDetailProductIdEvent)({...t||{action:"switch to ".concat(a," tab"),component:"body",elementType:"tab",elementText:i},event:"documentation_interaction",detail:"".concat(j," tab"),section:"document search",coreEvent:"no"})},S=[{value:"sds",label:s(y.A.SAFETY_DATA_SHEETS),content:(0,i.jsx)(f.A,{title:s(y.A.SAFETY_DATA_SHEETS_TITLE),instructions:s(y.A.SDS_INSTRUCTIONS)}),certificateType:null},{value:"coa",label:s(y.A.CERTIFICATES_OF_ANALYSIS),content:(0,i.jsx)(b.Ay,{type:x.e_.Coa,title:s(y.A.CERTIFICATE_OF_ANALYSIS_COA),productInput:!0,dontShowSampleLink:!0,instructions:s({id:"COA_INSTRUCTIONS",defaultMessage:"To search for a Certificate of Analysis (COA), please enter both the product number and the lot/batch number."}),allFieldsRequired:!0}),certificateType:x.e_.Coa},{value:"coo",label:s({id:"CERTIFICATE_OF_ORIGIN_COO",defaultMessage:"Certificates of Origin (COO)"}),content:(0,i.jsx)(b.Ay,{type:x.e_.Coo,title:s(y.A.CERTIFICATE_OF_ORIGIN_COO),productInput:!0,dontShowSampleLink:!0,instructions:s({id:"COO_INSTRUCTIONS",defaultMessage:"To search for a Certificate of Origin (COO), please enter both the product number and the lot/batch number."}),allFieldsRequired:!0}),certificateType:x.e_.Coo},{value:"coq",label:s(y.A.CERTIFICATES_OF_QUALITY),content:(0,i.jsx)(b.Ay,{type:x.e_.Coq,title:s(y.A.CERTIFICATES_OF_QUALITY_COQ),productInput:!0,dontShowSampleLink:!0,isBlueProduct:!0,instructions:s(y.A.COQ_INSTRUCTIONS),allFieldsRequired:!0}),certificateType:x.e_.Coq}];return(0,i.jsxs)(c.Ay,{value:j,children:[(0,i.jsx)(u.A,{onChange:(e,t)=>{E.push(m.HN.index(t.toLowerCase())),_("switch to "+j+" tab",void 0,t)},"aria-label":"documentation-tabs-".concat(j),"data-testid":"documentation-tabs",className:t.tabs,variant:"scrollable",children:S.map((e,a)=>{let{value:n,label:l}=e;return(0,i.jsx)(r.A,{label:l,value:n,className:t.tab},a)})}),(0,i.jsx)(l.A,{className:t.divider}),S.map((e,a)=>{let{value:n,content:r,certificateType:l}=e;return(0,i.jsx)(p.A,{value:n,className:t.tabpanel,children:(0,i.jsxs)(o.A,{container:!0,spacing:2,justifyContent:"space-between",direction:"row",children:[(0,i.jsx)(o.A,{xs:12,md:6,className:C?t.vr8:void 0,children:r}),(0,i.jsx)(o.A,{xs:12,md:5,children:(0,i.jsx)(g.A,{analyticsCallback:_,certificateType:l||void 0})})]})},a)})]})}},206315:(e,t,a)=>{a.d(t,{A:()=>o});var i=a(637876);a(14232);var n=a(757477),r=a(852413);let l=e=>e.href?(0,i.jsx)(r.N,{...e,children:(0,i.jsx)("a",{children:e.value})}):(0,i.jsx)(n.A,{...e}),o=e=>{let{values:t,className:a,url:n}=e;if(!Array.isArray(t)||0===t.length)return(0,i.jsx)("span",{className:a,children:"—"});if(t.length>1){let e=t.join(", ");return(0,i.jsx)(l,{value:e,className:a,href:n})}return(0,i.jsx)(l,{value:t[0],className:a,href:n})}},226925:(e,t,a)=>{a.d(t,{A:()=>ed});var i=a(637876),n=a(671541),r=a(607645),l=a(812197),o=a(505411),s=a(134415),d=a(599220),c=a(635877),u=a(972185),p=a(852413),m=a(211148),g=a(677660),h=a(2184),x=a(166313),A=a(771007),y=a(688700),v=a(175020),f=a(523307),b=a(957548),T=a(197710),C=a(399486),E=a(11788),j=a(14232),_=a(308733),S=a(86367),N=a(835967),I=a(278206),R=a(244478),k=a(668748),M=a(55011),P=a(554753);let L=(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}})),O=e=>{let{availabilityLoading:t,isSubmitting:a,canAddToCart:n,hideAddToCartForPrepackItems:r,anonymousUser:l}=e,{classes:s}=L(),d=(0,m.rd)();return r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:s.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)(o.A,{type:"submit",className:s.submitButton,variant:"contained",color:"primary",size:"large",fullWidth:!0,disabled:t||a,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:s.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:s.linkButton,children:(0,i.jsx)(_.A,{...P.A.LINK_PROFILE})})})};var B=a(636382),w=a(810113),F=a(89099),D=a(700776),W=a(388887);let U=(0,d.makeStyles)({name:"MobileProductPriceAvailability",uniqId:"MobileProductPA1"})((e,t,a)=>({materialSelect:{marginBottom:e.spacing(3),"& .MuiSelect-selectMenu":{fontSize:e.typography.pxToRem(16)},["& .".concat(a.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:t,country:a,productNumber:n,canAddToCart:l,anonymousUser:o,marketplaceOfferId:s}=e,{classes:d,cx:c}=U(),u=(0,F.useRouter)(),p={materialNumber:t[0].materialNumber,quantity:1,material:t[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,a)=>{let{setSubmitting:i,resetForm:n}=a,r=t.filter(t=>[e].filter(e=>e.materialNumber===(null==t?void 0:t.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:s}],i,n,"marketplace"===t[0].catalogType)},enableReinitialize:!0,children:e=>{var n;let{values:s,isSubmitting:u,initialValues:p}=e,g=s.material;return m.materialNumber!==p.materialNumber?null:(0,i.jsx)(I.lV,{children:(0,i.jsxs)("div",{className:c(a&&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 a;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===(a=g.availabilities)||void 0===a?void 0:a.length),options:t.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)(N.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)(N.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)(N.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)(w.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 t;let{form:a,field:n}=e;return(0,i.jsx)(k.A,{...n,size:"large",className:d.quantityInput,filled:!0,onChange:e=>{a.setFieldValue(n.name,e)},min:1,onBlur:()=>{n.value<1&&a.setFieldValue(n.name,1)},disabled:!!(null==g?void 0:null===(t=g.availabilities)||void 0===t?void 0:t.length),inputProps:{inputMode:"numeric"}})}}):null,!a&&(0,i.jsx)(O,{isSubmitting:u,availabilityLoading:!!(null==g?void 0:null===(n=g.availabilities)||void 0===n?void 0:n.length),canAddToCart:l,hideAddToCartForPrepackItems:A,anonymousUser:o})]})})}})},z=e=>{let{materialPricing:t,country:a,productNumber:n,canAddToCart:r,anonymousUser:l,marketplaceOfferId:o}=e;return(null==t?void 0:t.length)?(0,i.jsx)(H,{materialPricing:t,country:a,productNumber:n,canAddToCart:r,anonymousUser:l,marketplaceOfferId:o}):null};var G=a(25771),V=a(384119),Y=a(786680),q=a(304009),K=a(471662),$=a(761622),Q=a(840002),X=a(340352),Z=a(458851),J=a(52710);let ee=e=>{let{country:t,currentDtaqDealer:a,materialPricing:n,canAddToCart:r,PricingComponent:l=q.A,displayPromotionalBundlesAnchor:o,displaySDS:s,ctas:d,discontinuedPricingInfo:c,productName:u,displaySellerName:p,productKey:m,productDescription:g,productId:h,images:x,brandKey:A,gaType:y,gaMapProducts:v,addToList:f,condensed:b=!1,isMarketplace:T,isMarketplaceCartEnabled:C,marketplaceSellerId:_,marketplaceOfferId:S,productAttributes:N,onAddToCartResult:R,handlePriceUpdateForDealer:k,updateQuantity:M,erpType:P,dChainMessage:L}=e,O=(0,F.useRouter)(),w=(0,X.Ay)(),W=(0,B.g9)(),{getSitePreference:U,isDTAQZuCustomer:H,isBlueErpIntegrationEnabled:z,isB2BUser:G,userErpType:V}=(0,E.iZ)(),ee=O.asPath.includes("/compare"),et=U(E.VD.HideAddToCartForPrepackItems),ea=(0,j.useContext)(J.E);if(c){let e=ee?null:null==c?void 0:c.replacementProducts,t=(0,$.j)(e);return(0,i.jsxs)(J.M,{...ea,replacementProducts:e,children:[(0,i.jsx)(Z.A,{discontinuedPricingInfo:c}),t&&(0,i.jsx)(K.A,{type:Q.j.RecommendedProducts,preloadCardImages:!0,mainProduct:{productKey:m,brandKey:A,images:x},products:t,slidesToShow:w({xs:1,sm:2,lg:3}),withoutControls:t.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,t)=>e?e.reduce((e,a,i)=>{let{materialNumber:n,marketplaceOfferId:r}=a;return{...e,[i]:{materialNumber:n,marketplaceOfferId:r,quantity:"",dealerId:t}}},{}):[])(n,ei),onSubmit:(e,t)=>{let{setSubmitting:i,resetForm:r}=t,l=Object.keys(e).map(t=>({materialNumber:e[t].materialNumber,quantity:Number(e[t].quantity),dealerId:a,marketplaceOfferId:e[t].marketplaceOfferId})).filter(e=>e.quantity),o=n.filter(e=>l.filter(t=>t.materialNumber===(null==e?void 0:e.materialNumber))[0]);(0,Y.p8)(l,n,y,v,P,{isBlueErpIntegrationEnabled:z,isB2BUser:G,userErpType:V}),f?f(l):((0,D.xy)({items:o,productListPageName:O.asPath.includes("/search")?D.L1.SearchResultPage:D.L1.ProductDetailPage}),W(l,i,r,T).then(R))},children:e=>{let{isSubmitting:a,dirty:c,submitForm:m,resetForm:x,setFieldValue:A,values:y}=e;return(0,i.jsx)(I.lV,{children:(0,i.jsx)(l,{country:t,productName:u,displaySellerName:p,productDescription:g,productId:h,materialPricing:n,canAddToCart:r,hideAddToCartForPrepackItems:et,isSubmitting:a,dirty:c,submitForm:m,resetForm:x,displayPromotionalBundlesAnchor:o,displaySDS:s,ctas:d,isAddToList:!!f,condensed:b,setFieldValue:A,values:y,isMarketplace:T,isMarketplaceCartEnabled:C,marketplaceSellerId:_,marketplaceOfferId:S,productAttributes:N,handlePriceUpdateForDealer:k,updateQuantity:M,erpType:P,dChainMessage:L})})}})};var et=a(929394),ea=a(465264),ei=a(732588),en=a(317685),er=a(793674),el=a(989212),eo=a(838882);let es=(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 t,a,d,N,I,R,k,M,P,L,O,B,w,F;let{queryFocus:D,productNumber:W,productDescription:U,images:H,materialIds:Y,brandKey:q,LoadingComponent:K=et.A,ErrorComponent:$=V.A,PricingComponent:Q,displayPromotionalBundlesAnchor:X,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:eS,displayCompareMarketplaceSellerContact:eN=!1,productKey:eI,erp_type:eR,quantity:ek=1,isBBE:eM,eventSentRef:eP}=e,{classes:eL}=es(),eO=(0,m.rd)(),eB=(0,c.A)(),ew=(0,n.A)(eB.breakpoints.down("sm")),{focus:eF="",catalogType:eD="",context:eW=""}=eO.query||{},eU=(0,f.y5)(eW),{getSitePreference:eH,isDTAQZuCustomer:ez,isMultiCountryUser:eG,currentUser:eV,isBlueErpIntegrationEnabled:eY,isB2BUser:eq,userErpType:eK}=(0,E.iZ)(),{userSession:{country:e$}}=(0,en.j)(),{authorized:eQ,anonymous:eX}=(0,C.I)(C.N.canAddToCart),eZ=eG&&Z,eJ=W.startsWith("CB_"),[e0,{data:e1,loading:e2,error:e4,refetch:e7}]=(0,x.Gb)({fetchPolicy:ez?"no-cache":"cache-first"}),e3=(0,j.useContext)(J.E),[e8,{data:e5,loading:e6,error:e9,refetch:te,called:tt}]=(0,h.Fo)(),ta=ez?eH(E.VD.PreferredDealerId):null,[ti,tn]=(0,j.useState)(ta),[tr,tl]=(0,j.useState)(e$),to=eH(E.VD.CatalogFilter),ts=eb?g.Mh.Marketplace:null,td=eM?g.Mh.Buildingblocks:void 0,tc=eY&&eR&&(null==eR?void 0:eR.length)>0,tu={variables:{productNumber:W,materialIds:Y,brand:q,quantity:ek,catalogType:(0,T.vN)(td||ts||eD||D||eF||eU),orgId:to,checkForPb:ed,displaySDS:eJ,dealerId:"",checkBuyNow:!0,productKey:eI,...tc&&{erp_type:eR}}},tp=(0,eo.h)(e5,(e,t)=>{tl(t)});(0,j.useEffect)(()=>{let e=window.navigator.userAgent,t=(0,el.A)(e),a={variables:{...tu.variables,cachedPriceOnly:t}};W&&(eZ?e8(tu):e0(a))},[eZ,e8,e0,W,ek]),(0,j.useEffect)(()=>{var e,t;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;tl(null!==(t=null==e?void 0:e.country)&&void 0!==t?t:e$)}},[null==e5?void 0:e5.getPricingForMultiCountryProducts]),(0,j.useEffect)(()=>{var e,t;let a=null==e1?void 0:null===(e=e1.getPricingForProduct)||void 0===e?void 0:e.materialPricing;eg&&(a||e4)&&(0,A.sendProductDetailEvent)(a||[],eu,W,q,eb,eR||[],{isBlueErpIntegrationEnabled:eY,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 eS&&eS(!1)),(null==e1?void 0:null===(t=e1.getPricingForProduct)||void 0===t?void 0:t.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[tm,tg]=j.useState();(0,j.useEffect)(()=>{var e,t;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)===tr);return tg(null==e?void 0:e.dchainMessage)}tg(null==e1?void 0:null===(t=e1.getPricingForProduct)||void 0===t?void 0:t.dchainMessage)},[e1,e5]),(0,j.useEffect)(()=>{tm&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&(0,v.ds)(W,void 0,tm,q||"",eu||"")},[tm]),(0,j.useEffect)(()=>{(tm||e4||e9&&ey&&eh===y.k9.PaperDetails)&&(0,v.ds)(W,e4||e9,tm||"",q||"",eu||"")},[ey]),(0,j.useEffect)(()=>{var e,t;let a=(null==e5?void 0:null===(e=e5.getPricingForMultiCountryProducts)||void 0===e?void 0:e.length)?null==e5?void 0:null===(t=e5.getPricingForMultiCountryProducts[0])||void 0===t?void 0:t.materialPricing:void 0;eg&&(a||e9)&&(0,A.sendProductDetailEvent)(a||[],eu,W,q),e9&&eh!==y.k9.PaperDetails&&eh!==y.k9.ProductCompare&&(0,v.ds)(W,e9,void 0,q||"",eu||"")},[e6]);let th=async(e,t,a,i,n)=>(e&&(tn(e),tu.variables.dealerId=e),e0(tu),n(!1)),tx=(0,j.useCallback)(e=>eZ?te({...tu.variables,quantity:e}):e7({...tu.variables,quantity:e}),[e1||e5]);(0,j.useEffect)(()=>{var e;let t=null==e1?void 0:null===(e=e1.getPricingForProduct)||void 0===e?void 0:e.dchainMessage;!e2&&ef&&t&&eh===y.k9.ProductCompare&&(0,v.ds)(W,void 0,t,q||"",eu||"")},[e2]);let tA=!!e1||!!e5;if((e2||e6)&&!tA)return(0,i.jsx)(K,{displaySDS:eJ});if(e4||e9||tt&&!(e5||e1))return(0,i.jsx)(J.M,{...e3,brand:q,item:W,children:(0,i.jsx)($,{handlePriceUpdateForDealer:th,materialPricing:[{materialNumber:tu.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)(ea.A,{country:e$,brandKey:null!=q?q:"",productNumber:null!==(F=null==e1?void 0:null===(w=e1.getPricingForProduct.productInfo[0])||void 0===w?void 0:w.productNumber)&&void 0!==F?F:"",productMessage:e})}return eZ?(0,i.jsxs)(i.Fragment,{children:[tm&&"PRODUCT_DISCONTINUED_BUT_AVAILABLE_FOR_PURCHASE"!==tm&&(0,i.jsx)(r.A,{my:2,children:(0,i.jsx)(u.A,{severity:"error",icon:(0,i.jsx)(er.A,{}),className:eL.dchainMessage,children:(0,i.jsx)(_.A,{...b.A[tm],values:{productNumber:(0,i.jsx)("b",{children:W})}})})}),!ej&&ew&&(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===(t=e5.getPricingForMultiCountryProducts)||void 0===t?void 0:t.length)?tp:null,(null==e5?void 0:null===(a=e5.getPricingForMultiCountryProducts)||void 0===a?void 0:a.length)?null==e5?void 0:e5.getPricingForMultiCountryProducts.map(e=>{if(tr===(null==e?void 0:e.country)){var t;return(null==e?void 0:e.materialPricing)&&(0,i.jsxs)(i.Fragment,{children:[!ej&&ew&&(0,i.jsx)(r.A,{children:(0,i.jsx)(z,{country:null==e?void 0:e.country,materialPricing:null==e?void 0:e.materialPricing,productNumber:W,canAddToCart:!1,anonymousUser:eX,marketplaceOfferId:eC})}),(0,i.jsx)(r.A,{display:ej?void 0:{xs:"none",sm:"block"},className:eL.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:ti,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:Q,displayPromotionalBundlesAnchor:X,displaySDS:eJ,ctas:ec,brandKey:q,gaType:eh,gaMapProducts:ex,condensed:ev,isMarketplace:eb,isMarketplaceCartEnabled:!!(null==eV?void 0:null===(t=eV.metadata)||void 0===t?void 0:t.isMarketplaceCartEnabled),marketplaceSellerId:eT,marketplaceOfferId:eC,productAttributes:eE,handlePriceUpdateForDealer:th,updateQuantity:tx,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:[tm&&"PRODUCT_DISCONTINUED_BUT_AVAILABLE_FOR_PURCHASE"!==tm&&(0,i.jsx)(r.A,{my:2,children:(0,i.jsxs)(u.A,{severity:"error",icon:(0,i.jsx)(er.A,{}),className:eL.dchainMessage,children:[(0,i.jsx)(_.A,{...b.A[tm],values:{productNumber:(0,i.jsx)("b",{children:W})}})," ",eb&&(0,i.jsx)(p.N,{...m.kJ.contact(em||(0,T.t1)(eE),eT,eO.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&&ew&&(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)(S.A,{productKey:eI,brandKey:q,productName:null!=eu?eu:"",images:H,discontinuedPricingInfo:null==e1?void 0:null===(N=e1.getPricingForProduct)||void 0===N?void 0:N.discontinuedPricingInfo,materialPricing:null==e1?void 0:null===(I=e1.getPricingForProduct)||void 0===I?void 0:I.materialPricing,canAddToCart:eQ&&!eG&&(!eb||eb&&!!(null==eV?void 0:null===(R=eV.metadata)||void 0===R?void 0:R.isMarketplaceCartEnabled)),renderSecondaryAction:()=>{let e=null==ec?void 0:ec.find(e=>"bulk order"===e.type),t=null==ec?void 0:ec.find(e=>"bulk order"!==e.type);return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(r.A,{mt:4,children:(0,i.jsx)(o.A,{component:"a",target:"_blank",href:t.url,variant:"outlined",size:"large",color:"primary",fullWidth:!0,children:t.label})}),!!e&&!eb&&(0,i.jsx)("div",{className:eL.bulkOrderWrapper,children:(0,i.jsx)(p.N,{href:e.url,passHref:!0,children:(0,i.jsx)(s.A,{"data-testid":"p&a-request-bulk-link",color:"primary",target:"_blank",children:e.label})})})]})},marketplaceOfferId:eC}),(0,i.jsx)(G.A,{isMarketplace:eb,marketplaceSellerId:eT,marketplaceOfferId:eC,productAttributes:eE,displaySellerName:em})]}),ew||eO.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:ti,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:eQ&&!eG&&(!eb||eb&&!!(null==eV?void 0:null===(P=eV.metadata)||void 0===P?void 0:P.isMarketplaceCartEnabled)),PricingComponent:Q,displayPromotionalBundlesAnchor:X,displaySDS:eJ,ctas:ec,brandKey:q,gaType:eh,gaMapProducts:ex,addToList:eA,condensed:ev,isMarketplace:eb,isMarketplaceCartEnabled:!!(null==eV?void 0:null===(L=eV.metadata)||void 0===L?void 0:L.isMarketplaceCartEnabled),marketplaceSellerId:eT,marketplaceOfferId:eC,productAttributes:eE,onAddToCartResult:e_,handlePriceUpdateForDealer:th,updateQuantity:tx,displayCompareMarketplaceSellerContact:eN,erpType:eR||[],dChainMessage:null==e1?void 0:null===(O=e1.getPricingForProduct)||void 0===O?void 0:O.dchainMessage})})]}):tt?(0,i.jsx)($,{handlePriceUpdateForDealer:th,materialPricing:[{materialNumber:tu.variables.productNumber,brand:q,listPrice:0,productGroupSBU:""}]}):null}},232609:(e,t,a)=>{a.d(t,{A:()=>x});var i=a(637876);a(14232);var n=a(134415),r=a(607645),l=a(599220),o=a(28407),s=a(683198),d=a(554753),c=a(308733),u=a(621826),p=a(89099),m=a(469485),g=a(211148);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 t;let{discontinuedPricingInfo:a,leftAligned:l}=e,{classes:x,cx:A}=h(),y=(0,p.useRouter)(),v=y.asPath.includes("/search"),f=y.asPath.includes("/compare"),b=!!(null==a?void 0:null===(t=a.replacementProducts)||void 0===t?void 0:t.length)||!!(null==a?void 0:a.displaySimilarProductLabel)||!(null==a?void 0:a.hideReplacementProductLink),T=(null==a?void 0:a.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)(s.A,{color:"error"})}),C]}):(0,i.jsx)(u.A,{severity:"error",className:x.errorAlert,icon:(0,i.jsx)(o.A,{style:{fontSize:16}}),children:C})}},247233:(e,t,a)=>{a.d(t,{A:()=>h,O:()=>g});var i=a(637876),n=a(920978),r=a(212776),l=a(877018),o=a(440744),s=a(599220),d=a(387505),c=a(308733);let u=(0,s.makeStyles)()(e=>({accordionsWrapper:{"& div:not(:last-child)":{borderBottom:"none"}},accordionBorder:{borderBottom:"1px solid ".concat(e.palette.grey[400]),borderTop:"1px solid ".concat(e.palette.grey[400])}})),p=(0,s.withStyles)(n.A,(e,t,a)=>({root:{boxShadow:"none","&:before":{display:"none"},["&.".concat(a.expanded)]:{margin:"auto",paddingBottom:e.spacing(3)}}}),{name:"CustomCommonAccordion",uniqId:"CstmAcrd01"}),m=(0,s.withStyles)(r.A,(e,t,a)=>({root:{borderRadius:0,minHeight:48,display:"flex",["&.".concat(a.expanded)]:{minHeight:48},"&.Mui-focusVisible":{"& h2":{color:e.palette.common.white},"& .MuiSvgIcon-root":{color:e.palette.common.white}}},content:{["&.".concat(a.expanded)]:{margin:e.spacing(3,0)}}}),{name:"CustomAccordionSummary",uniqId:"CstmAcrdSumry01"}),g=e=>{let{children:t}=e,{classes:a}=u();return(0,i.jsx)("div",{className:a.accordionsWrapper,children:t})},h=e=>{let{summary:t,summaryId:a,summaryAriaControls:n,details:s,defaultExpanded:g=!1,expandedCallback:h=()=>({}),overrideClasses:x={},unmountOnExit:A=!1,expanded:y,onKeyDown:v}=e,{classes:f,cx:b}=u(),T=(null==t?void 0:t.type)===c.A;return(0,i.jsxs)(p,{classes:{root:x.accordion},className:b({[f.accordionBorder]:T}),defaultExpanded:g,square:!0,onChange:(e,t)=>{h(t)},TransitionProps:{unmountOnExit:A},expanded:y,children:[T&&(0,i.jsx)(m,{classes:{root:x.summary},expandIcon:(0,i.jsx)(d.A,{color:"primary"}),id:a,"aria-controls":n,children:(0,i.jsx)(l.A,{variant:"h2",children:t})}),!T&&(0,i.jsx)(r.A,{classes:{root:x.summary},id:a,"aria-controls":n,onKeyDown:v,children:t}),(0,i.jsx)(o.A,{classes:{root:x.details},children:s})]})}},247378:(e,t,a)=>{a.d(t,{k:()=>c});var i=a(139324),n=a.n(i),r=a(406995),l=a(330566),o=a(340352),s=a(211148);let{publicRuntimeConfig:{featureFlags:d}}=n()();function c(){let e=(0,l.A)(),{country:t,language:a}=(0,s.rd)().query,i=(0,r.A)(e.breakpoints.down(o.Rp.MD),{defaultMatches:!0});return!!d.shoppingAi&&"US"===t&&"en"===a&&!i}},253590:(e,t,a)=>{a.d(t,{A:()=>tt});var i=a(637876),n=a(14232),r=a(147801),l=a(406995),o=a(79143),s=a(63724),d=a(877018),c=a(330566),u=a(211148),p=a(677660),m=a(197710),g=a(405634),h=a(269139),x=a(877742),A=a(308733),y=a(599220),v=a(554753),f=a(733086),b=a(684768),T=a(364272),C=a(888468),E=a(757477),j=a(317215),_=a(872522);let S=(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)}})),N=e=>{let{facetLabel:t,facetKey:a,facets:r}=e,l=(0,u.rd)(),{classes:o}=S(),s=(0,x.A)(),d=(0,m.h2)({focus:l.query.focus}),c=(0,n.useCallback)((e,t)=>{if(!(null==t?void 0:t.length)&&d.focus===m.Xc.Chromatograms&&"FACET_WEB_TITERTEST_APP"===e.toUpperCase())return s.formatMessage(v.A[e.toUpperCase()]);if(!t)return"";let a=t.find(t=>t.key===e);return(null==a?void 0:a.key)&&v.A[a.key.toUpperCase()]?s.formatMessage(v.A[a.key.toUpperCase()]):(0,_.Q)(null==a?void 0:a.key)},[s])(a,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.A,{className:o.facetMarkup,value:"".concat(c,":")}),(0,i.jsx)(E.A,{value:t})]})},I=(e,t)=>{t.handleSelectedFacetChange({key:e.key,options:[e.label],action:C.FacetChangeAction.Remove});let a="".concat(e.key,":").concat(e.label),i=(0,b.g)({action:"remove filter",component:"filter ribbon",element_type:"filter ribbon box",element_text:null==a?void 0:a.toLowerCase(),filter_name:e.label,filter_name_count:e.count,filter_category:e.key});(0,T.BI)({payload:i})},R=e=>{let{facets:t,isStructureSearch:a}=e,[n,r,l]=(0,C.useSearchQuery)(),o=(0,h.A)(t,"options"),s=(0,h.A)(r,e=>e.options.map(t=>{let a=o.find(e=>e.value===t);return{key:e.key,label:t,count:null==a?void 0:a.count}})),{formatMessage:c}=(0,x.A)(),p=(0,u.rd)(),{classes:m,cx:g}=S(),y=n.term&&!a&&!(0,f._)(p);return 0!==s.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,t)})}),t&&s.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)(N,{facetLabel:e.label,facetKey:e.key,facets:t})})},"".concat(e.key,":").concat(e.label)))]})]}):null};var k=a(977328),M=a.n(k),P=a(89099),L=a(963752),O=a(943564),B=a(139324),w=a.n(B),F=a(668158);let{publicRuntimeConfig:{canonicalUrlPrefix:D}}=w()(),W=e=>{let{metadata:t}=e,a=(0,x.A)(),{asPath:n,query:{page:r,term:l,focus:o,type:s,country:d,language:c}}=(0,P.useRouter)(),p=(0,L.mE)(),g=o===m.Xc.StructureSearch,h=l&&!g?"".concat(l.charAt(0).toUpperCase()).concat(l.slice(1)):a.formatMessage({id:"STRUCTURE_SEARCH",defaultMessage:"Structure Search"}),A="".concat(h," | ").concat((0,F.SI)()),y={[m.mI.CasNumber]:"CAS",[m.mI.EgecNumber]:"EC/EG",[m.mI.MdlNumber]:"MDL"},v=(null==t?void 0:t.itemCount)===0||null==t||(null==t?void 0:t.setsCount)===0;s&&y[s]&&(A="".concat(y[s]," ").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),S={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Search",item:"".concat(D,"/").concat(d,"/").concat(c).concat(u.wO.index())},{"@type":"ListItem",position:2,name:"".concat(l),item:"".concat(D).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==t?void 0:t.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)(O.L,{description:_,keywords:[l||"","search","sigma","aldrich","millipore",p],canonicalParamAllowed:e=>["term","focus","page","perpage","sort","type"].includes(e),schema:S,indexOverride:v?"noindex":"index"})]})};var U=a(219521),H=a(873500),z=a(860058),G=a(834669),V=a(317685),Y=a(124322),q=a(245756),K=a(971538);let $=()=>{let e=(0,c.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)(K.A,{light:!0})}),(0,i.jsx)(q.A,{height:22,width:.75,borderRadius:1,bgcolor:e.palette.grey["50"],mb:4}),[,,].fill({}).map((t,a)=>(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:1,bgcolor:e.palette.grey["50"]})]},a))]})})};var Q=a(51139);let X=(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:t,error:a}=e,{formatMessage:n,formatDisplayName:r}=(0,x.A)(),{classes:l}=X(),{userSession:o}=(0,V.j)(),[s,,d]=(0,C.useSearchQuery)(),c="global";return t?(0,i.jsx)($,{}):a?null:(0,i.jsx)("div",{className:l.availableForSale,children:(0,i.jsx)(Q.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)(H.A,{"aria-label":"region-selection",onChange:e=>{d.handleAvailableForSaleChange(e.target.value)},children:[(0,i.jsx)(z.A,{"aria-label":"region",value:o.country,control:(0,i.jsx)(Y.A,{className:l.facetRadio}),classes:{label:l.radio},checked:!s.region||s.region===o.country,label:r(o.country,{type:"region"})},o.country),(0,i.jsx)(z.A,{"aria-label":"region",value:c,control:(0,i.jsx)(Y.A,{className:l.facetRadio}),classes:{label:l.radio},checked:s.region===c,label:n(G.A.GLOBALLY)},c)]})})})})})};var J=a(370475);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"}})),et=e=>{let{orgId:t}=e,{classes:a}=ee(),{formatMessage:r}=(0,x.A)(),[l,,o]=(0,C.useSearchQuery)(),s=(0,n.useMemo)(()=>{var e;return(null==t?void 0:t.trim())==="UCB"?"UCB":null==t?void 0:null===(e=t.trim())||void 0===e?void 0:e.toLowerCase()},[t]),d=e=>l.term&&!t||l.focus===e,c=e=>{let t=(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:t}),o.handleFocusChange(e)};return(0,i.jsx)("div",{className:a.facetFocus,children:(0,i.jsx)(Q.A,{defaultCollapse:!0,facetKey:"FACET_SEARCH_WITHIN",children:(0,i.jsx)("div",{className:a.formBody,children:(0,i.jsxs)(H.A,{"aria-label":"focus-selection",onChange:e=>c(e.target.value),children:[d(m.Xc.Products)||d(m.Xc.B2B)?t?(0,i.jsx)(z.A,{disabled:!0,value:m.Xc.Products,control:(0,i.jsx)(Y.A,{className:a.facetRadio}),className:a.facet,checked:l.focus===m.Xc.B2B,label:"".concat(s," ").concat(r({id:"PRODUCTS",defaultMessage:"Products"}))}):(0,i.jsx)(z.A,{value:m.Xc.Products,control:(0,i.jsx)(Y.A,{className:a.facetRadio}),"aria-current":l.focus===m.Xc.Products?"page":void 0,className:a.facet,checked:l.focus===m.Xc.Products,label:r({id:"PRODUCTS",defaultMessage:"Products"}),"data-testid":"srp-nav-products"}):null,d(m.Xc.SiteContent)&&(0,i.jsx)(z.A,{value:m.Xc.SiteContent,control:(0,i.jsx)(Y.A,{className:a.facetRadio}),className:a.facet,checked:l.focus===m.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"})}),d(m.Xc.TechnicalDocuments)&&(0,i.jsx)(z.A,{value:m.Xc.TechnicalDocuments,control:(0,i.jsx)(Y.A,{className:a.facetRadio}),"aria-current":l.focus===m.Xc.TechnicalDocuments?"page":void 0,className:a.facet,checked:l.focus===m.Xc.TechnicalDocuments,label:r({id:"SUPPORTING_DOCUMENTS",defaultMessage:"Supporting Documents"}),"data-testid":"srp-nav-techdocs"})]})})})})};var ea=a(17138),ei=a(379521),en=a(852413);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,t)=>{let a=(0,m.$c)({term:e,focus:t});return"?"===a[0]&&(a=a.slice(1)),{href:{pathname:"/search/[searchTerm]",query:a},as:{pathname:"".concat(u.wO.searchResults(e)),query:a}}},eo=e=>{let{focus:t,id:a,children:n}=e,{classes:r,cx:l}=er(),[o]=(0,C.useSearchQuery)(),s=l(r.link,o.focus===t&&r.active),d=o.focus===t?"page":void 0;return(0,i.jsx)(en.N,{...el(o.term,t),children:(0,i.jsx)("a",{className:s,"aria-current":d,"data-testid":a,id:a,role:"tab",children:n})})};function es(e,t){return function(a){return(0,i.jsx)(eo,{focus:e,id:t,children:a.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:t}=e,{classes:a}=ed(),{formatMessage:r}=(0,x.A)(),l=(0,P.useRouter)(),o=(0,m.h2)({focus:l.query.focus,term:l.query.term}),s=(0,n.useMemo)(()=>{var e;return(null==t?void 0:t.trim())==="UCB"?"UCB":null==t?void 0:null===(e=t.trim())||void 0===e?void 0:e.toLowerCase()},[t]),d=e=>!!o.term&&!t||o.focus===e;return(0,i.jsx)("nav",{"aria-label":"Main Navigation",children:(0,i.jsxs)(ei.A,{variant:"scrollable",scrollButtons:!1,value:o.focus,classes:{root:a.tabsRoot,indicator:a.indicator},children:[d(m.Xc.Products)||d(m.Xc.B2B)?t?(0,i.jsx)(ea.A,{component:"span",label:"".concat(s," ").concat(r({id:"PRODUCTS",defaultMessage:"Products"}))}):(0,i.jsx)(ea.A,{value:m.Xc.Products,label:r({id:"PRODUCTS",defaultMessage:"Products"}),component:es(m.Xc.Products,"srp-nav-products")}):null,d(m.Xc.TechnicalDocuments)&&(0,i.jsx)(ea.A,{value:m.Xc.TechnicalDocuments,label:r({id:"TECHNICAL_DOCUMENTS",defaultMessage:"Technical Documents"}),component:es(m.Xc.TechnicalDocuments,"srp-nav-techdocs")}),d(m.Xc.SiteContent)&&(0,i.jsx)(ea.A,{value:m.Xc.SiteContent,label:r({id:"SITE_CONTENT",defaultMessage:"Site Content"}),component:es(m.Xc.SiteContent,"srp-nav-sitecontent")})]})})},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,t,a)=>{let i=e*t;return{resCountFirst:e>1?(e-1)*t+1:1,resCountEnd:a&&i{var t;let{currPage:a,perPage:n,resultCount:r=0,searchTerm:l="",searchType:o=""}=e,{classes:s}=eu(),{formatMessage:d}=(0,x.A)(),{resCountFirst:c,resCountEnd:p}=ep(a,n,r),g=(0,u.rd)(),h=null===(t=g.query.orgId)||void 0===t?void 0:t.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)(o));return(0,i.jsx)("div",{className:s.count,"data-testid":"srp-result-count",children:r?(0,i.jsxs)(i.Fragment,{children:["".concat(y," ").concat(c,"-").concat(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=a(825628),eh=a(486024),ex=a(46282),eA=a(140032);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:t,children:a}=e,{classes:r,cx:l}=ey(),[o,s]=(0,n.useState)(!1),d=l(r.icon,{[r.iconIsOpen]:o});return(0,i.jsxs)("div",{className:r.root,children:[(0,i.jsxs)(J.A,{onClick:()=>{s(!o)},className:r.heading,children:[t(),(0,i.jsx)(eA.A,{className:d})]}),(0,i.jsx)(ex.A,{in:o,children:(0,i.jsx)("div",{className:r.body,children:a})})]})};var ef=a(129740);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}}})),eS=()=>{let[e,,t]=(0,C.useSearchQuery)(),{formatMessage:a}=(0,x.A)(),{classes:r}=e_(),l=(0,n.useMemo)(()=>ej[e.focus].map(e=>({...e,label:a(e.label)})),[a,e.focus]);return(0,i.jsx)(H.A,{row:!0,className:r.radioGroup,"aria-label":"sortOptions",name:"sortOptions",value:e.sort,onChange:e=>t.handleSortChange(e.target.value),children:l.map((e,t)=>{let{value:a,label:n}=e;return(0,i.jsx)(z.A,{name:"sortOptionId",value:a,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",{})})})},t)})})};var eN=a(699846),eI=a(421289),eR=a(670114),ek=a(814810);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:t}=e,{classes:a,cx:r}=eM(),l=(0,x.A)(),[,o,s]=(0,C.useSearchQuery)(),d=(o.find(e=>{let{key:a}=e;return a===t.key})||{options:[]}).options,[c,u]=(0,n.useState)(!1),p=r(a.icon,{[a.iconIsOpen]:c}),g=c?t.options:t.options.slice(0,t.numToDisplay||6),h="facet_shipping"===t.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 t=e.includes(" / "),a=e.includes("-1?e.slice(i+1):e});return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:a.vr4,children:g.map(e=>{let n=v.indexOf(e.value)>=0;return(0,i.jsx)("div",{className:a.vr2,children:(0,i.jsx)(z.A,{classes:{root:a.labelRoot},checked:n,control:(0,i.jsx)(eN.A,{"data-testid":"srp-facet-".concat(e.value),id:e.value,value:e.value,color:"primary",classes:{root:a.checkboxRoot},icon:(0,i.jsx)("span",{className:a.checkboxIcon}),checkedIcon:(0,i.jsx)("span",{className:r(a.checkboxIcon,a.checkboxIconChecked),children:(0,i.jsx)(ek.A,{})}),onClick:()=>{s.handleSelectedFacetChange({key:t.key,options:[e.value],action:n?C.FacetChangeAction.Remove:C.FacetChangeAction.Add,multiSelect:t.multiSelect||!1,prefix:t.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:a.shippingIcon,children:y(e.value)})]})})},e.value)})}),(t.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:a.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})]})]})},eL=(0,y.makeStyles)()(e=>({facetMarkup:{marginRight:e.spacing(1),"& sub, & sup":{verticalAlign:"baseline",position:"relative",top:"0.4em"},"& sup":{top:"-0.4em"}}})),eO=e=>{let{facetLabel:t,facetKey:a,facets:r}=e,{classes:l}=eL(),o=(0,x.A)(),s=(0,n.useCallback)((e,t)=>{if(!t)return"";let a=t.find(t=>t.key===e);return(null==a?void 0:a.key)?o.formatMessage(G.A[a.key.toUpperCase()]):""},[o])(a,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.A,{className:l.facetMarkup,value:"".concat(s,":")}),(0,i.jsx)(E.A,{value:t})]})},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)}})),ew=e=>{let{facets:t,isStructureSearch:a}=e,[n,r,l]=(0,C.useSearchQuery)(),o=(0,h.A)(r,e=>e.options.map(t=>({key:e.key,label:t}))),{formatMessage:s}=(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&&!a&&"facet-search"!==n.term&&(0,i.jsx)(j.A,{ariaLabel:"".concat(s(v.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(n.term," ").concat(s(v.A.SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH)),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:c.searchTerm,children:[s(v.A.KEYWORD),":"]}),(0,i.jsx)("span",{children:"'".concat(n.term,"'")})]}),dataTestId:"query-term-chip",onDelete:()=>l.handleTermRemoval(r,t)}),t&&o.map(e=>(0,i.jsx)(j.A,{ariaLabel:"".concat(s(v.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(e.label," ").concat(s(v.A.SELECTION_CHIP_REMOVE_FILTER_2)),onDelete:()=>{l.handleSelectedFacetChange({key:e.key,options:[e.label],action:C.FacetChangeAction.Remove})},label:(0,i.jsx)(eO,{facetLabel:e.label,facetKey:e.key,facets:t})},e.key))]})]})},eF=(0,y.makeStyles)()(e=>({body:{overflow:"scroll",padding:e.spacing(6,4)},footer:{padding:e.spacing(6,4)}})),eD=e=>{let{facets:t,isStructureSearch:a,isModalOpen:r,onModalClose:l,showSortBar:o}=e,{classes:s}=eF();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:s.body,children:[(0,i.jsx)(ew,{facets:t,isStructureSearch:a}),o&&(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)(eS,{})}),!!t&&t.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:t})})},e.key))]}),(0,i.jsx)("div",{className:s.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=a(275584);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:t,orgId:a,facets:r,showSortBar:l}=e,[o,s]=(0,C.useSearchQuery)(),{formatMessage:d}=(0,x.A)(),[c,u]=(0,n.useState)(!1),{classes:p}=eU(),g=()=>{u(!1)},h=o.focus===m.Xc.StructureSearch;return(0,i.jsxs)("div",{className:p.mobileFiltersAndNav,children:[(0,i.jsx)("div",{className:p.vr6,children:t&&(0,i.jsx)(em,{currPage:t.page,perPage:t.perPage,resultCount:t.setsCount||t.itemCount||0,searchTerm:o.term,searchType:o.focus})}),(0,i.jsx)(ec,{orgId:a}),(!!(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:[s.length?(0,i.jsx)("span",{className:p.facetCount,children:s.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 ez=a(771007),eG=a(346129);let eV=(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"}})),eY=e=>{let{orgId:t,isStructureSearch:a}=e,{classes:n}=eV();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(eG.N,{href:u.wO.index(),"aria-hidden":!0,onClick:()=>{(0,ez.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"})})}),!t&&!a&&(0,i.jsx)("div",{className:n.searchLink,children:(0,i.jsx)(eG.N,{href:u.HX.index(),"aria-hidden":!0,onClick:()=>{(0,ez.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=a(390589),eK=a(347160),e$=a(545484);let eQ=()=>{let[e,,t]=(0,C.useSearchQuery)(),{formatMessage:a}=(0,x.A)(),r=(0,n.useMemo)(()=>ej[e.focus].map(e=>({...e,label:a(e.label)})),[a,e.focus]);return(0,i.jsx)(q.A,{children:(0,i.jsx)(e$.A,{style:{minWidth:204},fullWidth:!1,size:"small",value:e.sort,onChange:e=>{t.handleSortChange(e.target.value)},id:"srp-sort-options",children:r.map(e=>{let{value:t,label:a}=e;return(0,i.jsx)(eK.A,{value:t,id:"sort-option-".concat(t),children:a},t)})})})},eX=(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:t,showSortBar:a}=e,{classes:n}=eX(),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:[t&&(0,i.jsx)(em,{currPage:t.page,perPage:t.perPage,resultCount:t.setsCount||t.itemCount||0,searchTerm:l.term,searchType:l.focus}),a&&(0,i.jsx)(q.A,{ml:2,children:(0,i.jsx)(eQ,{})})]})};var eJ=a(938554),e0=a(677197);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,t=Array(e),a=0;aCertificate of Analysis?",values:{b:function(){for(var e=arguments.length,t=Array(e),a=0;aCertificate of Origin?",values:{b:function(){for(var e=arguments.length,t=Array(e),a=0;aCertificate of Quality?",values:{b:function(){for(var e=arguments.length,t=Array(e),a=0;a{var t;let{searchQuery:a}=e,{classes:n}=e1(),r=e4[a],l=u.HN.index(a),o=null===(t=e0.tq[a])||void 0===t?void 0:t.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(o,"-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=a(854366);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:t}=e,{classes:a}=e8(),n=(0,u.rd)();return(0,i.jsx)("div",{className:a.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,t=Array(e),a=0;ae.split("").map(e=>String.fromCharCode(8320+parseInt(e))).join(""))}),"’?"]})]})})};var e6=a(651971);let{publicRuntimeConfig:{featureFlags:e9}}=w()(),te=(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:e.spacing(5),[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"}})),tt=e=>{var t,a;let{children:h,showSortBar:x,showFacets:A,showAvailableForSale:y,orgId:v,facets:f,loading:b,error:T,metadata:j,showMore:_}=e,{classes:S,cx:N}=te(),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,L=M.focus===m.Xc.Products||M.focus===m.Xc.B2B,O=(0,c.A)(),B=(0,l.A)(O.breakpoints.up("md")),w=(null==j?void 0:j.itemCount)===0||null==j||(null==j?void 0:j.setsCount)===0,F=N({[w?S.noResults:S.searchResultsLoose]:L});(0,n.useEffect)(()=>{r.sZ.setItem("previousSearchPath",I.asPath)},[I.asPath]);let D=[Object.values(p.e_),Object.values(e2)].toString().toLowerCase(),H=(()=>{var e,t;return"facet-search"===M.term?null===(e=k.facet[0])||void 0===e?void 0:e.split(":")[1]:(null===(t=I.query)||void 0===t?void 0:t.term)||""})(),z=!!H&&D.split(",").includes(H.toLowerCase()),G=(null==j?void 0:j.suggestedType)&&j.suggestedType.includes("mol_form"),V=I.query.type===m.Wi.Product||I.query.type===m.Wi.SiteContent;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W,{metadata:j},"head"),(0,i.jsx)(o.A,{className:S.mobileContainer,children:(0,i.jsxs)(s.A,{container:!0,spacing:10,children:[(0,i.jsx)(s.A,{md:3,className:N(S.hideOnMobile,S.searchFacets),children:(0,i.jsxs)("div",{className:S.searchFacetsInner,children:[(0,i.jsx)("div",{className:S.searchLinks,children:(0,i.jsx)(eY,{orgId:v,isStructureSearch:P})}),P?(0,i.jsx)(U.A,{}):(0,i.jsx)(et,{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)(s.A,{xs:12,md:9,className:w?S.noResults:S.searchResults,children:[!b&&!w&&(0,i.jsxs)(i.Fragment,{children:[e9.newSrp&&V&&(0,i.jsx)(e6.A,{currentExperience:"old",className:""}),(0,i.jsx)(d.A,{variant:"h1",className:S.title,children:(0,i.jsx)(E.A,{value:H})})]}),z&&(null==I?void 0:null===(t=I.query)||void 0===t?void 0:t.term)&&(0,i.jsx)(e7,{searchQuery:I.query.term.toLowerCase()}),G&&!b&&(null==I?void 0:null===(a=I.query)||void 0===a?void 0:a.term)&&(0,i.jsx)(e5,{searchQuery:I.query.term}),A&&!b&&(0,i.jsx)(R,{facets:f,isStructureSearch:P}),B&&!w?(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:F,children:h})]})]})}),!b&&!w&&(0,i.jsx)(eq.A,{dispType:p.HI.RecentlyViewedSrp,searchKey:M.term})]})}},254736:(e,t,a)=>{a.d(t,{A:()=>_});var i=a(637876),n=a(877018),r=a(825628),l=a(934252),o=a(599220),s=a(278206),d=a(14232),c=a(877742),u=a(308733),p=a(694304),m=a(554753),g=a(837643),h=a(37290),x=a(128975),A=a(667792),y=a(495339),v=a(838582),f=a(177274),b=a(688700),T=a(771007),C=a(342669),E=a(432430);let j=(0,o.makeStyles)()(e=>({modalForm:{flexGrow:1,display:"flex",flexDirection:"column",overflow:"auto"},modalScrollSection:{flexGrow:1,overflow:"auto",marginTop:e.spacing(4)},modalMainContent:{paddingTop:0,paddingBottom:e.spacing(2)},modalFooter:{paddingTop:0},addNewListContainer:{position:"relative"},newListFields:{display:"flex",marginTop:e.spacing(1),"& div":{flex:"1 1 auto"},"& label":{marginRight:0},"& .MuiCheckbox-root":{minWidth:36}},createListButtonContainer:{position:"absolute",top:e.spacing(1)},invisible:{visibility:"hidden"},noListsHeader:{marginTop:e.spacing(9),marginBottom:e.spacing(2),[e.breakpoints.up("md")]:{marginTop:e.spacing(3)}},noListsDescription:{marginBottom:e.spacing(4)}})),_=e=>{let{open:t,onClose:a,materialNumber:o,materialId:_,productName:S,productId:N,brand:I,type:R,lists:k,quantity:M,refetchLists:P,userId:L,sendAddToListEvent:O}=e,{classes:B,cx:w}=j(),F=(0,c.A)(),{required:D}=(0,f.dz)(),[W,U]=(0,d.useState)(!1),[H]=(0,p._D)(),[z]=(0,p.YD)(),{setSnackbar:G,setGlobalSnackbarState:V}=(0,v.W)(),Y=k.filter(e=>{let t=e.ownerId===L;return!(e.deadline&&(0,E.R)(e.deadline))||t}),q=Y.length>0,K=async e=>{try{return await z({variables:{listIds:e,listItems:[{materialNumber:o,materialId:_,quantity:Number(M),type:R}]}}),!0}catch(e){return!1}},$=async e=>{try{return await H({variables:{input:{name:e,invitations:[],sharedListItems:[{materialNumber:o,materialId:_,quantity:Number(M),type:R}]}}}),!0}catch(e){return!1}},Q=async e=>{let t,n,r={action:"add to list",section:"select list",component:"modal",elementType:"button",elementText:"add to list",coreEvent:"no",productId:N,productBrand:I,productVariant:o,productName:S};W&&e.isAddNewListItemSelected?(n=$(e.newSharedListItem),O&&O(b.gY.CreateList,L||""),(0,T.sendSharedListEvent)({...r,detail:"newly create list"})):(O&&O(b.gY.AddToList,o),(0,T.sendSharedListEvent)({...r}));let l=e.lists.filter(e=>e.checked).map(e=>e.listId);l.length>0&&(t=K(l));let[s,d]=await Promise.all([t,n]);if(!d&&!s){G(v.iZ.GenericError);return}if(!1===s&&d){V({open:!0,message:(0,i.jsx)(u.A,{...m.A.ADD_ITEMS_TO_LIST_FAILED}),variant:v.m$.ErrorAlert}),P(),a();return}if(!1===d&&s){V({open:!0,message:(0,i.jsx)(u.A,{...m.A.CREATE_SHARED_LIST_FAILED}),variant:v.m$.ErrorAlert}),a();return}P(),V({open:!0,message:(0,i.jsx)(u.A,{...m.A.SHARED_LIST_ITEM_ADDED}),variant:v.m$.Success}),a()};return(0,d.useEffect)(()=>{t||U(!1)},[t]),(0,i.jsx)(x.Ay,{open:t,onClose:()=>a(),renderTitle:()=>(0,i.jsx)(n.A,{variant:"h2",children:(0,i.jsx)(u.A,{...m.A.SELECT_LIST})}),children:(0,i.jsx)(s.l1,{initialValues:{isAddNewListItemSelected:!1,newSharedListItem:"",lists:Y.map(e=>{let{listId:t}=e;return{listId:t,checked:!1}})},validate:e=>{let t={},a=e.isAddNewListItemSelected&&D(e.newSharedListItem);return a&&(t.newSharedListItem=a),t},onSubmit:Q,children:e=>{let{isSubmitting:t,values:o}=e,d=o.lists.some(e=>e.checked);return(0,i.jsxs)(s.lV,{className:B.modalForm,children:[(0,i.jsx)("div",{className:B.modalScrollSection,children:(0,i.jsxs)(x.Uh,{className:B.modalMainContent,children:[q?(0,i.jsx)(s.ED,{name:"lists",children:()=>Y.map((e,t)=>(0,i.jsx)("div",{"data-testid":"lists_name-".concat((0,C.E)(F.formatMessage)(e)),children:(0,i.jsx)(s.D0,{name:"lists[".concat(t,"].checked"),component:g.A,label:(0,C.E)(F.formatMessage)(e)})},t))}):(0,i.jsxs)("div",{children:[(0,i.jsx)(n.A,{variant:"h3",className:B.noListsHeader,children:(0,i.jsx)(u.A,{...m.A.NO_LISTS_YET_HEADER})}),(0,i.jsx)(n.A,{variant:"body2",className:B.noListsDescription,children:(0,i.jsx)(u.A,{...m.A.NO_LISTS_YET_DESCRIPTION})})]}),(0,i.jsxs)("div",{className:B.addNewListContainer,children:[(0,i.jsxs)("div",{className:w(B.newListFields,{[B.invisible]:!W}),children:[q&&(0,i.jsx)(s.D0,{name:"isAddNewListItemSelected",component:g.A}),(0,i.jsx)(s.D0,{autoFocus:W,filled:!0,name:"newSharedListItem",component:h.A,placeholder:F.formatMessage(m.A.ENTER_NEW_LIST_NAME)},String(W))]}),(0,i.jsx)("div",{className:w(B.createListButtonContainer,{[B.invisible]:W}),children:(0,i.jsxs)(A.A,{size:q?A.e.Medium:A.e.Large,onClick:()=>{e.setFieldValue("isAddNewListItemSelected",!0),U(!0)},children:[(0,i.jsx)(y.A,{}),(0,i.jsx)(u.A,{...m.A.CREATE_LIST})]})})]})]})}),(0,i.jsx)(x.Uh,{className:B.modalFooter,children:(0,i.jsxs)(x.fW,{children:[(0,i.jsx)(r.A,{size:"large",color:"primary",variant:"outlined",onClick:()=>a(),children:(0,i.jsx)(u.A,{...m.A.CANCEL})}),(0,i.jsx)(r.A,{type:"submit",size:"large",color:"primary",variant:"contained",disabled:t||!d&&!o.isAddNewListItemSelected,startIcon:t&&(0,i.jsx)(l.A,{color:"inherit",size:20,thickness:5}),"data-testid":"lists_confirm-add-to-list-modal-button",children:(0,i.jsx)(u.A,{...m.A.ADD_TO_LIST})})]})})]})}})})}},258597:(e,t,a)=>{a.d(t,{A:()=>s});var i=a(637876);a(14232);var n=a(308733),r=a(554753),l=a(128975),o=a(812197);let s=e=>{let{open:t,onCancel:a}=e;return(0,i.jsx)(l.Ay,{open:t,onClose:a,size:l.Ih.Small,renderTitle:()=>(0,i.jsx)(o.A,{variant:"h2",children:(0,i.jsx)(n.A,{...r.A.RESTRICTED_ITEM})}),children:(0,i.jsx)(l.Uh,{children:(0,i.jsx)(o.A,{component:"p",children:(0,i.jsx)(n.A,{...r.A.RESTRICTED_ITEM_MESSAGE})})})})}},258745:(e,t,a)=>{a.d(t,{A:()=>s});var i=a(637876),n=a(877018),r=a(860058),l=a(129740);let o=(0,a(599220).makeStyles)()((e,t)=>{let{disabled:a,size:i}=t;return{root:{padding:"0",marginRight:e.spacing(2),"&:hover":{borderRadius:"50%",outline:"3px solid ".concat(e.palette.primary.light)}},icon:{display:"flex",border:a?e.palette.common.white:"1px solid ".concat(e.palette.grey[500]),borderRadius:"50%",backgroundColor:a?e.palette.grey[50]:e.palette.common.white,height:"medium"===i?"24px":"20px",width:"medium"===i?"24px":"20px"},checkedIcon:{"&:before":{content:'""',display:"block",backgroundColor:a?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]}}}}),s=e=>{let{name:t,value:a,label:s,checked:d,onChange:c,size:u="medium",disabled:p=!1,id:m,"data-testid":g}=e,{cx:h,classes:x}=o({disabled:p,size:u}),A="string"==typeof s?(0,i.jsx)(n.A,{variant:"body1",children:s}):s;return(0,i.jsx)(r.A,{className:h(x.customRadio,{[x.disabledText]:p}),value:a,control:(0,i.jsx)(l.A,{"data-testid":g,id:m,className:x.root,name:t,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})}},259131:(e,t,a)=>{a.d(t,{Ay:()=>es});var i=a(637876),n=a(14232),r=a(877742),l=a(308733),o=a(599220),s=a(496678),d=a(306406),c=a(393334),u=a(652814),p=a(701824),m=a(347530),g=a(834669),h=a(63912),x=a(147801),A=a(197710),y=a(780491),v=a(380863),f=a(757477),b=a(206315),T=a(274770),C=a(226925),E=a(552263),j=a(771007),_=a(515093),S=a(365824),N=a(428907),I=a(175020),R=a(211148),k=a(62084),M=a(11788),P=a(754587),L=a.n(P);let O=()=>(0,i.jsx)(L(),{style:{margin:"4px"},src:"/static/globe_greener_alt_icon.svg",alt:"greener alternative",title:"Greener Alternative Product",height:28,width:28});var B=a(723604),w=a(187254),F=a(139324),D=a.n(F),W=a(688700);let{publicRuntimeConfig:{featureFlags:U}}=D()(),H=(0,o.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"}})),z="7950",G={CLONALITY:{key:"clonality-clone_number.default"},SPECIES_REACTIVITY:{key:"species reactivity.reactivity"},PORE_SIZE:{key:"pore size.default"},DIAMETER:{key:"composite dimension.default",label:"diam."},STERILITY:{key:"sterilization.default"},MATERIAL:{key:"material.default"}},V=e=>{let{displayBadgesOnProduct:t,product:a,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=a,o=l.find(e=>e.key===G.CLONALITY.key),d=l.find(e=>e.key===G.SPECIES_REACTIVITY.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:o&&(0,i.jsx)(b.A,{values:o.values})}),(0,i.jsx)(s.A,{children:(0,i.jsx)(f.A,{value:a.cardAttribute.application.join(", ")})}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:d&&(0,i.jsx)(b.A,{values:d.values})}),(0,i.jsx)(s.A,{children:a.cardAttribute.citationCount}),t||n&&(0,i.jsxs)(s.A,{children:[t&&(0,i.jsx)(T.A,{features:a.features}),n&&(0,i.jsx)(O,{})]})]})]})},Y=e=>{let{displayBadgesOnProduct:t,product:a,showGreenBadge:n,txnBadgeColAdjustments:r}=e,{attributes:l}=a,o=l.find(e=>e.key===G.PORE_SIZE.key),d=l.find(e=>e.key===G.DIAMETER.key&&e.label===G.DIAMETER.label),c=l.find(e=>e.key===G.STERILITY.key),u=l.filter(e=>e.key===G.MATERIAL.key);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{"data-testid":"pdp-product-poreSize",children:o&&o.values.length&&(0,i.jsx)(b.A,{values:o.values})}),(0,i.jsx)(s.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)(s.A,{"data-testid":"pdp-product-sterility",children:c&&(0,i.jsx)(b.A,{values:c.values})}),(0,i.jsx)(s.A,{"data-testid":"pdp-product-material",children:u&&u.map(e=>(0,i.jsx)(b.A,{values:e.values},e.key))}),t||n&&(0,i.jsxs)(s.A,{children:[t&&(0,i.jsx)(T.A,{features:a.features}),n&&(0,i.jsx)(O,{})]})]})]})},q=e=>{let{focus:t,isStaticContent:a,product:n,productDescription:r}=e,{classes:l}=H();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(s.A,{className:l.productDescription,align:"left",children:[a&&n.name&&(0,i.jsx)(f.A,{value:n.name,className:l.productDescriptionName}),(0,i.jsx)(N.h,{product:n,focus:t,label:r,productDescriptionClass:l.productDescLink,productLinkType:N.A.DESCRIPTION,productDescription:r})]})})},K=e=>{let{keyAttributes:t,focus:a,isStaticContent:n,product:r,productDescription:l,txnBadgeColAdjustments:o}=e,d=o?2:null==t?void 0:t.length;return(null==t?void 0:t.length)?(0,i.jsx)(i.Fragment,{children:null==t?void 0:t.slice(0,d).map(e=>(0,i.jsx)(s.A,{"data-testid":"pdp-product-".concat(e.label),children:e.values.length>0?(0,i.jsx)(b.A,{values:e.values}):"—"},"".concat(e.key,"_").concat(e.label)))}):(0,i.jsx)(q,{focus:a,isStaticContent:n,product:r,productDescription:l})},$=e=>{let{displayBadgesOnProduct:t,features:a,showGreenBadge:n,txnBadge:r,isTxnBadgeUser:l}=e,{classes:o}=H();return(0,i.jsx)(s.A,{className:o.badgeCell,colSpan:4,children:r?(0,i.jsx)(w.A,{showTooltip:!0}):!l&&(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(T.A,{features:a}),n&&(0,i.jsx)(O,{})]})})},Q=e=>{var t,a,l,o,d,c,u;let{additionalColumns:m,displayBadgesOnProduct:b,displayViewLink:T=!0,focus:P,isShowBrand:L,isShowImage:O,isStaticContent:w,product:F,productIsAntibody:D,productIsSyringeFilter:G,showDescription:Q,substanceId:X,substancePosition:Z,txnBadgeColAdjustments:J}=e,ee=(0,R.rd)(),{classes:et,cx:ea}=H(),{formatMessage:ei}=(0,r.A)(),[en,er]=(0,n.useState)(!1),{currentUser:el,isB2BUser:eo}=(0,M.iZ)(),[es]=(0,B.lT)(["language"]),{compareProducts:ed,addCompareProduct:ec,removeCompareProduct:eu}=(0,y.Zn)(),ep=ed.some(e=>{let{productKey:t,brandKey:a,catalogType:i}=e;return t===F.productKey&&a===F.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:F.name,brand:null===(e=F.brand)||void 0===e?void 0:e.key,product:F.productNumber}})},{paMessage:eh}=F,ex=F.productNumber.startsWith("CB_")?ei(g.A.DETAILS):F.productNumber,eA=!ep&&ed.length>=y.NN,ey={productKey:F.productKey,productNumber:F.productNumber,brandKey:F.brand.key,images:F.images,catalogType:P?(0,A.vN)(P):void 0},ev=(null==el?void 0:el.metadata.isNewPNASrpEnabled)&&!ee.query.debug&&T,ef=F.legalNameSuffix||F.description,eb=null===(t=F.attributes)||void 0===t?void 0:t.find(e=>"greener alternative category.default"===e.key),eT="en"===es.language.toLowerCase(),eC=D&&F.cardAttribute,eE=!eC&&!G&&eT&&(null==F?void 0:F.keyAttributes)&&F.keyAttributes.length>0,ej=(0,n.useMemo)(()=>{var e,t;return(null==el?void 0:null===(t=el.soldToPartners)||void 0===t?void 0:null===(e=t[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]),eS=U.srpTxnBadges&&"US"===e_&&!eo&&ej===z,eN=eS&&F.txnBadge&&(null===(a=F.txnBadge)||void 0===a?void 0:a.type)==="MAX_DISCOUNT"&&(null===(o=F.txnBadge)||void 0===o?void 0:null===(l=o.salesOrgIds)||void 0===l?void 0:l.includes(z));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.A,{className:en?ea(et.tableRow,et.clearBottomBorder,et.tableRowExpanded):et.tableRow,"data-testid":"product-".concat(F.name),children:[O?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:(0,i.jsx)("span",{className:et.productImageContainer,children:(0,i.jsx)("img",{className:et.productImage,src:null==F?void 0:null===(d=F.images[0])||void 0===d?void 0:d.smallUrl,alt:(null==F?void 0:null===(c=F.images[0])||void 0===c?void 0:c.altText)||""})})}),(0,i.jsx)(s.A,{classes:{root:et.productNumberContainer},children:(0,i.jsx)(N.h,{product:F,focus:P,label:ex,productDescriptionClass:et.productName,productLinkType:N.A.NAME,productDescription:ef})})]}):(0,i.jsxs)(i.Fragment,{children:[!w&&(0,i.jsx)(s.A,{className:et.hideBelowMd,children:(0,i.jsx)(S.A,{name:"".concat(ei(g.A.COMPARE),"-").concat(F.productNumber),checked:ep,onChange:e=>{e.target.checked?ec(ey):eu(ey)},"aria-label":"".concat(ei(g.A.COMPARE)," ").concat(F.productNumber),disabled:eA,classes:{root:et.checkboxRoot}})}),(0,i.jsx)(s.A,{classes:{root:et.productNumberContainer},children:(0,i.jsx)(N.h,{product:F,focus:P,label:ex,onProductLinkClick:()=>(0,j.sendProductClickEvent)({product:F,searchTerm:em,substanceId:X,substancePosition:Z}),productDescriptionClass:et.productName,productLinkType:N.A.NAME,productDescription:ef})})]}),eC&&(0,i.jsx)(V,{displayBadgesOnProduct:b,showGreenBadge:eb,product:F,txnBadgeColAdjustments:J}),G&&(0,i.jsx)(Y,{displayBadgesOnProduct:b,showGreenBadge:eb,product:F,txnBadgeColAdjustments:J}),eE&&(0,i.jsx)(K,{keyAttributes:null==F?void 0:F.keyAttributes,focus:P,isStaticContent:w,product:F,productDescription:ef,txnBadgeColAdjustments:J}),!F.cardCategory&&(0,i.jsxs)(i.Fragment,{children:[Q&&(0,i.jsx)(q,{focus:P,isStaticContent:w,product:F,productDescription:ef}),L&&(0,i.jsx)(s.A,{className:et.hideOnMobile,style:{color:F.brand.color||void 0},children:F.brand.name}),m&&m.map(e=>{var t;let{value:a}=e,n=F.attributes.find(e=>e.key&&e.key.toLowerCase()===a.toLowerCase());return(0,i.jsx)(s.A,{children:(0,i.jsx)(f.A,{value:null==n?void 0:null===(t=n.values)||void 0===t?void 0:t.join(", ")})},a)})]}),(0,i.jsx)($,{displayBadgesOnProduct:b,features:F.features,showGreenBadge:eb,txnBadge:eN&&F.txnBadge,isTxnBadgeUser:eS}),(0,i.jsx)(s.A,{children:!!F.sdsLanguages.length&&(0,i.jsx)(v.A,{sdsLanguages:F.sdsLanguages,productNumber:F.sdsPnoKey,brandKey:F.brand.key,trigger:(0,i.jsx)(_.A,{className:et.sdsTrigger,color:"primary"})})}),(0,i.jsx)(s.A,{children:ev?(0,i.jsx)(k.A,{product:F,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(F.productNumber).concat(F.brand.key)}),(0,i.jsx)("div",{className:et.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:et.tableRowExpanded,children:en&&(0,i.jsx)(s.A,{colSpan:12,children:eh?(0,i.jsx)(E.Ay,{brandKey:F.brand.key,productNumber:F.productNumber,paMessage:eh,displayType:E.yU.SRP,gaPricingOverrides:{component:W.IP.List}}):(0,i.jsx)(C.A,{queryFocus:P,productName:F.name,productNumber:F.productNumber,productDescription:F.description||"",images:F.images,materialIds:F.materialIds,brandKey:F.brand.key,gaType:(0,j.determinePAForAddtoCart)(P),isMarketplace:F.isMarketplace,productAttributes:F.attributes,marketplaceSellerId:F.marketplaceSellerId||"",marketplaceOfferId:F.marketplaceOfferId||"",displaySellerName:F.displaySellerName||"",displayPromotionalBundlesAnchor:!0,checkForPb:!0,productKey:F.productKey,erp_type:F.erp_type,isBBE:F.isBBE})})})]})},{publicRuntimeConfig:{featureFlags:X}}=D()(),Z=(0,o.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",et=e=>{let{showSdsColumn:t}=e,{classes:a}=Z(),{formatMessage:n}=(0,r.A)();return(0,i.jsx)(s.A,{className:a.tHeadSds,children:t&&n(g.A.SDS)})},ea=()=>{let{classes:e}=Z(),{formatMessage:t}=(0,r.A)();return(0,i.jsx)(s.A,{className:e.compressWidth,children:t(g.A.PRICING)})},ei=e=>{let{txnBadgeColAdjustments:t}=e,{formatMessage:a}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:a(g.A.CLONALITY)}),(0,i.jsx)(s.A,{children:a(g.A.APPLICATION)}),!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:a({id:"SPECIES_REACTIVITY",defaultMessage:"Species Reactivity"})}),(0,i.jsx)(s.A,{children:a(g.A.CITATIONS)})]})]})},en=e=>{let{txnBadgeColAdjustments:t}=e,{formatMessage:a}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:a(g.A.PORE_SIZE)}),(0,i.jsx)(s.A,{children:a(g.A.DIAMETER)}),!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{children:a(g.A.STERILITY)}),(0,i.jsx)(s.A,{children:a(g.A.MATERIAL)})]})]})},er=e=>e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/_+$/g,""),el=e=>{let{keyAttributes:t,txnBadgeColAdjustments:a}=e,{formatMessage:n}=(0,r.A)();if(null==t?void 0:t.length){let e=a?2:null==t?void 0:t.length;return(0,i.jsx)(i.Fragment,{children:null==t?void 0:t.slice(0,e).map(e=>{let{key:t,label:a}=e,n=a.replace(/\b\w/g,e=>e.toUpperCase()),r=er(n);return(0,i.jsx)(s.A,{children:r?(0,i.jsx)(l.A,{id:r,defaultMessage:n}):n},"".concat(t,"_").concat(a))})})}return(0,i.jsx)(s.A,{children:n(g.A.DESCRIPTION)})},eo=e=>{let{additionalColumns:t,isShowBrand:a,showDescriptionColumn:n}=e,{formatMessage:l}=(0,r.A)();return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(s.A,{children:l(g.A.DESCRIPTION)}),a&&(0,i.jsx)(s.A,{children:l(g.A.BRAND)}),t&&t.map(e=>{let{text:t}=e;return(0,i.jsx)(s.A,{"data-additional":"true",children:t},t)})]})},es=e=>{var t,a,l;let{products:o,displayBadgesOnProduct:x,focus:A,maxRows:y,isShowImage:v=!1,isShowBrand:f=!1,isStaticContent:b=!1,additionalColumns:T,displayViewLink:C,substanceId:E,substancePosition:_,substanceKeyAttributes:S}=e,{classes:N,cx:I}=Z(),[R]=(0,B.lT)(["language"]),[k,P]=(0,n.useState)(!1),L=y||5,O=k?o.length:L,{formatMessage:w}=(0,r.A)(),F=!!o.length&&(null===(t=o[0])||void 0===t?void 0:t.cardCategory)===J.ANTIBODY,D=!!o.length&&(null===(a=o[0])||void 0===a?void 0:a.cardCategory)===J.SYRINGE_FILTERS,U=o.filter(e=>{var t;return(null==e?void 0:null===(t=e.sdsLanguages)||void 0===t?void 0:t.length)>0}).length>0,H="en"===R.language.toLowerCase(),{currentUser:z,isB2BUser:G}=(0,M.iZ)(),V=(0,n.useMemo)(()=>{var e,t;return(null==z?void 0:null===(t=z.soldToPartners)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.salesOrg)||(null==z?void 0:z.metadata.salesOrg)||""},[z]),Y=(0,n.useMemo)(()=>{var e;return(null==z?void 0:null===(e=z.metadata)||void 0===e?void 0:e.country)||""},[z]),q=o.some(e=>{var t,a,i;return(null==e?void 0:null===(t=e.txnBadge)||void 0===t?void 0:t.type)==="MAX_DISCOUNT"&&(null==e?void 0:null===(i=e.txnBadge)||void 0===i?void 0:null===(a=i.salesOrgIds)||void 0===a?void 0:a.includes(ee))}),K=X.srpTxnBadges&&"US"===Y&&!G&&V===ee&&q,$=F?ei:D?en:null,er=!$&&H&&S&&S.length>0,es=!er&&!$||!H;return(0,i.jsxs)(d.A,{className:N.tContainer,children:[(0,i.jsxs)(c.A,{size:"small",children:[(0,i.jsx)(u.A,{children:(0,i.jsxs)(p.A,{className:N.tHeadRow,children:[v?(0,i.jsx)(s.A,{}):b?null:(0,i.jsx)(s.A,{className:I(N.hideBelowMd,N.compressWidth),children:w(g.A.COMPARE)}),(0,i.jsx)(s.A,{classes:{root:N.tHeadProductNumber},children:w(g.A.PRODUCT_NO)}),$&&(0,i.jsx)($,{txnBadgeColAdjustments:K}),er&&(0,i.jsx)(el,{keyAttributes:S,txnBadgeColAdjustments:K}),!(null===(l=o[0])||void 0===l?void 0:l.cardCategory)&&(0,i.jsx)(eo,{additionalColumns:T,isShowBrand:f,showDescriptionColumn:es}),(0,i.jsx)(s.A,{colSpan:4}),(0,i.jsx)(et,{showSdsColumn:U}),(0,i.jsx)(ea,{})]})}),(0,i.jsx)(m.A,{children:o.slice(0,O).map((e,t)=>e instanceof Error||!e?null:(0,i.jsx)(Q,{additionalColumns:T,displayBadgesOnProduct:x,displayViewLink:C,focus:A,isShowBrand:f,isShowImage:v,isStaticContent:b,product:e,productIsAntibody:F,productIsSyringeFilter:D,showDescription:es,substanceId:E,substancePosition:_,txnBadgeColAdjustments:K},"".concat(e.productKey).concat(e.brand.erpKey,"-").concat(t)))})]}),(0,i.jsx)("div",{className:N.utilityRow,children:o.length>L&&(0,i.jsx)(h.A,{expanded:k,setExpanded:P,className:N.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"})}})})]})}},264673:(e,t,a)=>{a.d(t,{FL:()=>r,Oy:()=>i,ts:()=>n});var i=function(e){return e.LabWater="labwater",e.MilliQSq="milliqsq",e.Milliplex="milliplex",e}({}),n=function(e){return e[e.ConfigurationNameMaxLength=50]="ConfigurationNameMaxLength",e[e.MessageToSpecialistMaxLength=500]="MessageToSpecialistMaxLength",e}({}),r=function(e){return e.Lab_Water_Configurator_Interaction="lab_water_configurator_interaction",e.Product_Info_Interaction="product_info_interaction",e.Modulis_Configurator_Interaction="modulis_configurator_interaction",e}({})},267450:(e,t,a)=>{a.d(t,{aC:()=>d});var i=a(428888);a(637876);var n=a(182897),r=a(764177);function l(){let e=(0,i._)(["\n mutation ReadyToShipNotification($params: ReadyToShipNotificationInput!) {\n readyToShipNotification(params: $params) {\n brand\n }\n}\n "]);return l=function(){return e},e}a(14232);let o={},s=(0,n.J1)(l());function d(e){let t={...o,...e};return r.n(s,t)}},274770:(e,t,a)=>{a.d(t,{A:()=>o});var i=a(637876);a(14232);var n=a(599220),r=a(554753);let l=(0,n.makeStyles)()(e=>({badge:{margin:e.spacing(1),width:28,height:28}})),o=e=>{let{features:t,customClass:a}=e,{classes:n}=l();return(0,i.jsxs)(i.Fragment,{children:[t.includes("NEW")&&(0,i.jsx)("img",{className:null!=a?a:n.badge,src:"/static/new_product_badge.png",alt:"new",title:r.D.NEW_PRODUCT.defaultMessage}),t.includes("enhancedValidation")&&(0,i.jsx)("img",{className:null!=a?a:n.badge,src:"/static/enhanced_validation_badge.png",alt:"enhanced validation",title:r.D.ENHANCED_VALIDATION.defaultMessage})]})}},281474:(e,t,a)=>{a.d(t,{le:()=>h,rx:()=>u});var i=a(428888);a(637876);var n=a(182897);a(14232);var r=a(154431);function l(){let e=(0,i._)(["\n fragment SubstanceProductFields on Product {\n name\n displaySellerName\n productNumber\n productKey\n isSial\n isMarketplace\n marketplaceSellerId\n marketplaceOfferId\n cardCategory\n cardAttribute {\n citationCount\n application\n }\n attributes {\n key\n label\n values\n }\n speciesReactivity\n brand {\n key\n erpKey\n name\n color\n }\n images {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n keyAttributes {\n key\n label\n values\n }\n description\n sdsLanguages\n sdsPnoKey\n similarity\n paMessage\n features\n catalogId\n materialIds\n erp_type\n legalNameSuffix\n isBBE\n txnBadge {\n label\n priority\n salesOrgIds\n type\n }\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n fragment SubstanceFields on Substance {\n _id\n id\n name\n synonyms\n empiricalFormula\n linearFormula\n molecularWeight\n legalName\n aliases {\n key\n label\n value\n }\n images {\n sequence\n altText\n smallUrl\n mediumUrl\n largeUrl\n brandKey\n productKey\n label\n videoUrl\n }\n casNumber\n keyAttributes {\n key\n label\n values\n }\n products {\n ...SubstanceProductFields\n }\n}\n ",""]);return o=function(){return e},e}function s(){let e=(0,i._)(["\n fragment ProductSearchFields on ProductSearchResults {\n metadata {\n itemCount\n setsCount\n page\n perPage\n numPages\n redirect\n suggestedType\n }\n items {\n ... on Substance {\n ...SubstanceFields\n }\n ... on Product {\n ...SubstanceProductFields\n }\n }\n facets {\n key\n numToDisplay\n isHidden\n isCollapsed\n multiSelect\n prefix\n options {\n value\n count\n }\n }\n didYouMeanTerms {\n term\n count\n }\n}\n ","\n",""]);return s=function(){return e},e}function d(){let e=(0,i._)(["\n query ProductSearch($searchTerm: String, $page: Int!, $sort: Sort, $group: ProductSearchGroup, $selectedFacets: [FacetInput!], $type: ProductSearchType, $catalogType: CatalogType, $orgId: String, $region: String, $facetSet: [String], $filter: String, $variation: String, $displayLanguage: String) {\n getProductSearchResults(\n input: {searchTerm: $searchTerm, pagination: {page: $page}, sort: $sort, group: $group, facets: $selectedFacets, type: $type, catalogType: $catalogType, orgId: $orgId, region: $region, facetSet: $facetSet, filter: $filter, variation: $variation, displayLanguage: $displayLanguage}\n ) {\n ...ProductSearchFields\n }\n}\n ",""]);return d=function(){return e},e}let c={},u=(0,n.J1)(l()),p=(0,n.J1)(o(),u),m=(0,n.J1)(s(),p,u),g=(0,n.J1)(d(),m);function h(e){let t={...c,...e};return r.IT(g,t)}},287165:(e,t,a)=>{a.d(t,{Nj:()=>d});var i=a(428888);a(637876);var n=a(182897),r=a(764177);function l(){let e=(0,i._)(["\n mutation UpdateUserSitePreference($userId: String!, $data: UpdateUserSitePreferenceInput!) {\n updateUserSitePreference(userId: $userId, data: $data)\n}\n "]);return l=function(){return e},e}a(14232);let o={},s=(0,n.J1)(l());function d(e){let t={...o,...e};return r.n(s,t)}},298411:(e,t,a)=>{a.d(t,{A:()=>E});var i=a(637876),n=a(14232),r=a(877742),l=a(308733),o=a(505411),s=a(607645),d=a(599220),c=a(266065),u=a(793591),p=a(677660),m=a(554753),g=a(197710),h=a(166587),x=a(581927),A=a(4648),y=a(597733),v=a(540859),f=a(469485),b=a(319490),T=a(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 t,a,d,E;let{material:j,initialShipEstimate:_,canAddToCart:S,countryCode:N,isDynamicProductCarousel:I,isLoading:R=!1,hideDetailsLink:k=!1,gaDetailsClick:M,source:P,gaSection:L,gaComponent:O}=e,{classes:B,cx:w}=C(),[F,D]=(0,n.useState)(!1),W=()=>{D(!1)},{formatMessage:U}=(0,r.A)(),H=null===(t=j.availabilities)||void 0===t?void 0:t[0],{availableQtyInStock:z}=j,G=null!==z,V=H&&(null==H?void 0:H.key)===p.qL.InquireForPriceAndAvailability,[Y,q]=(0,n.useState)(!1);if(V){let e=null==H?void 0:H.contactInfo,t=[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)(o.A,{className:w(B.baseClass,{[B.topAligned]:V}),onClick:()=>q(!0),children:(0,i.jsx)(f.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY})}),Y&&(0,i.jsx)(A.A,{open:Y,setModalOpen:q,headerContent:j.materialNumber,bodyContent:(0,i.jsx)(s.A,{mr:12,mb:8,children:(0,i.jsx)(f.J,{...m.A.INQUIRE_FOR_PRICE_AND_AVAILABILITY_MODAL,values:{inquirePriceContactInfo:t}})})})]})}let K=e=>{e.preventDefault(),M&&M(),D(!0)},$=H&&(null==H?void 0:H.key)===p.qL.ApoNoStock;return(0,i.jsx)(s.A,{display:"flex",alignItems:"flex-start",children:(0,i.jsxs)("div",{className:B.shipEstimateWithLink,children:[(0,i.jsxs)("div",{className:B.shipEstimateColumn,children:[(null==H?void 0:null===(a=H.availabilityOverwriteMessage)||void 0===a?void 0:a.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:[G?(0,i.jsxs)("div",{className:w(B.initialShipText,{[B.warningText]:G}),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:z}})]}):(0,i.jsx)("div",{children:_}),(0,i.jsxs)("span",{children:[F&&(0,i.jsx)(x.A,{isModalOpen:F,onModalClose:()=>W(),material:j,canAddToCart:S,countryCode:N,availableQty:z,source:P}),!k&&((null==H?void 0:H.displayFromLink)||$)?(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:$?(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)&&!G&&!(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)(s.A,{pt:.5,children:[j.shipsToday&&(0,i.jsx)(h.A,{type:g.u2.SameDay,gaSection:L,gaComponent:O,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)(s.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)(s.A,{mt:1,className:B.promoWrapper,children:(0,i.jsx)(b.A,{promotional:j.promotionalMessage})})]})})}},301049:(e,t,a)=>{a.d(t,{A:()=>c});var i=a(637876),n=a(14232),r=a(849995),l=a(278206),o=a(86767),s=a(70524),d=a(468002);let c=e=>{let{rootClass:t,rootStyle:a,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(t)]:t}),style:a,children:[m&&(0,i.jsx)(s.A,{htmlFor:u.name,size:c,required:g,children:m}),(0,i.jsx)(o.A,{id:u.name,...u,onChange:e=>{p.setFieldValue(u.name,e)},onBlur:e=>{u.onBlur(e),x&&x(e)},onSelect: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})]})}},304009:(e,t,a)=>{a.d(t,{f:()=>eC,A:()=>e_});var i=a(637876),n=a(67241),r=a(170377),l=a(741683),o=a(857377),s=a(471549),d=a(884093),c=a(505411),u=a(607645),p=a(134415),m=a(306442),g=a(683198),h=a(852413),x=a(475352),A=a(211148),y=a(677660),v=a(873431),f=a(70608),b=a(11788),T=a(317685),C=a(139324),E=a.n(C),j=a(89099),_=a(14232),S=a(835967),N=a(877742),I=a(308733),R=a(21347),k=a(55011),M=a(15329),P=a(599220),L=a(775673),O=a(278206),B=a(757477),w=a(380863),F=a(810113),D=a(695722),W=a(875878),U=a(258597),H=a(346588),z=a(703848),G=a(298411),V=a(554753),Y=a(29468),q=a(550554);let K=(0,P.makeStyles)()(e=>({infoIcon:{cursor:"pointer",color:e.palette.primary.main}})),$=e=>{let{setDialogOpen:t}=e,{classes:a}=K(),{formatMessage:n}=(0,N.A)();return(0,i.jsx)(q.A,{title:n(V.A.ADDITIONAL_INFO_POPOVER),placement:"top",enterDelay:1e3,children:(0,i.jsx)(Y.A,{className:a.infoIcon,onClick:()=>t(!0)})})};var Q=a(368837),X=a(685150),Z=a(771007),J=a(175020),ee=a(918847),et=a.n(ee),ea=a(710759),ei=a(127447),en=a(670210),er=a(683707),el=a(994767);let eo=et()(()=>a.e(7982).then(a.bind(a,447982)),{loadableGenerated:{webpack:()=>[447982]},loadableGenerated:{webpack:()=>[447982]},ssr:!1}),es=(0,P.makeStyles)({name:"ProductMaterialRow",uniqId:"ProductMR1"})((e,t,a)=>({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(a.hidePriceMessageKey)]:{width:"5%"}},packSize:{width:"10%",["&.".concat(a.hidePriceMessageKey)]:{width:"5%"}},availability:{width:"45%",["&.".concat(a.hidePriceMessageKey)]:{width:"40%"}},price:{width:"10%"},quantity:{width:"15%",["&.".concat(a.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 t,a;let{productName:n,productDescription:r,productId:l,material:s,canAddToCart:d,hideAddToCartForPrepackItems:c,initialShipEstimate:p,displayPromotionalBundlesAnchor:m,index:g,displaySDS:h,countryCode:x,isMarketplace:v=!1,renderBuyNow:f=!1,rowValues:b,setMultipleMinimumQuantityError:T,erpType:C,promoCode:E}=e,{classes:j,cx:S}=es(),I=(0,N.A)(),R=(0,A.rd)(),P=(0,el.dU)(),{classes:Y}=(0,X.I)(),q=null===(t=s.availabilities)||void 0===t?void 0:t[0],K=m&&s.isPBAvailable&&R.query,ee=q&&(null==q?void 0:q.key)===y.qL.InquireForPriceAndAvailability,[et,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)(()=>{et&&(0,Z.sendProductInfoInteractionEvent)({action:"view additional information",section:"pricing and availability",component:"list",elementType:"icon",elementText:"view additional information",productId:s.product,productBrand:s.brand,productVariant:s.materialNumber})},[et]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.A,{className:S(j.tCell,"ThirdPartyProvider"===s.type?j.materialNumberWithSku:j.materialNumber,s.hidePriceMessageKey&&j.hidePriceMessageKey),children:[(0,i.jsx)(ei.A,{materialNumber:s.materialNumber}),K&&(0,i.jsx)(u.A,{pt:2,children:(0,i.jsx)(en.A,{materialNumber:s.materialNumber,brand:s.brand,productName:null!=n?n:"",erp_type:C})})]}),"ThirdPartyProvider"===s.type?(0,i.jsx)(o.A,{className:S(j.tCell,j.vendorSKU),children:s.vendorSKU}):null,(0,i.jsx)(o.A,{className:S(j.tCell,"ThirdPartyProvider"===s.type?j.packSizeWithSku:j.packSize,s.hidePriceMessageKey&&j.hidePriceMessageKey),children:(0,i.jsx)(B.A,{value:s.packageSize})}),(0,i.jsxs)(o.A,{className:S(j.tCell,h?j.availabilityWithSds:j.availability,s.hidePriceMessageKey&&j.hidePriceMessageKey),children:[(0,i.jsx)(G.A,{canAddToCart:d,material:s,initialShipEstimate:p,displayPromotionalBundlesAnchor:m,countryCode:x,gaDetailsClick:()=>(0,J.Sm)({action:"check availability details",section:"related products",component:"list",elementType:"link",elementText:"details",material:s}),source:"related products",gaSection:R.asPath.includes("/search")?void 0:"products",gaComponent:"list"}),(0,i.jsx)(er.A,{expirationDate:s.expirationDate,displayColon:!0,displayInline:!0,outerClassName:j.labelFontSize}),s.minOrderQuantity&&s.minOrderQuantity>1?(0,i.jsxs)("div",{className:S(j.labelFontSize,ep&&j.minimumQuantityError),children:[I.formatMessage(V.A.MINIMUM_ORDER_QUANTITY),s.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:S(j.promoCode,j.promoDiscount),children:E})]}):null]}),h&&(0,i.jsx)(o.A,{className:S(j.tCell,j.sds),children:(0,i.jsx)(w.A,{sdsLanguages:s.sdsLanguages,productNumber:s.materialNumber,brandKey:s.brand})}),(0,i.jsx)(o.A,{className:S(j.tCell,j.price,s.hidePriceMessageKey&&j.hidePriceMessageKey),children:ee?null:(0,i.jsx)(u.A,{"data-testid":"P&A-row-price-".concat(s.brand,"-").concat(s.materialNumber),id:"P&A-row-price-".concat(s.brand,"-").concat(s.materialNumber),children:(0,i.jsx)(z.A,{material:s,listPriceClass:Y.listPrice})})}),(0,i.jsx)(o.A,{className:S(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==s?void 0:s.isBlockedProduct)?(0,i.jsx)(k.A,{className:j.lockIcon,onClick:()=>eu(!0),children:(0,i.jsx)(H.A,{fontSize:"inherit"})}):s.minOrderQuantity&&s.minOrderQuantity>1?(0,i.jsx)(O.D0,{name:"".concat(g,".quantity"),component:D.A,className:j.qtyInput,"data-testid":"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),id:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),associatedComponent:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),materialNumber:s.materialNumber,minOrderQuantity:s.minOrderQuantity,setShowMultipleMinimumQuantityError:em,setMultipleMinimumQuantityError:T,isMOQLessThanCountry:P}):(0,i.jsx)(O.D0,{name:"".concat(g,".quantity"),component:W.A,className:j.qtyInput,"data-testid":"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),id:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),associatedComponent:"P&A-row-quantity-".concat(s.brand,"-").concat(s.materialNumber),max:null!==(a=null==s?void 0:s.availableQtyInStock)&&void 0!==a?a: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)($,{setDialogOpen:ed})}):(0,i.jsx)(u.A,{display:"flex",alignItems:"center",ml:6.5,children:(0,i.jsx)($,{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)(F.A,{materialNumber:s.materialNumber,materialId:s.materialId,quantity:Number(null==b?void 0:b.quantity)||1,productName:n||"",productId:l||"",brand:s.brand,type:s.type,trigger:e=>(0,i.jsx)(eo,{title:I.formatMessage(V.A.ADD_TO_LIST),placement:"top",enterDelay:1e3,children:(0,i.jsx)(M.A,{className:j.addToListButton,onClick:e,children:(0,i.jsx)(L.A,{className:j.addToListIcon,fontSize:"inherit"})})})})}),f?(0,i.jsx)(u.A,{mr:2,className:j.buyNowContainer,children:(null==s?void 0:s.isBuyNow)?(0,i.jsx)(ea.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)(Q.A,{open:et,additionalInfo:s.additionalInfo||{},productNumber:s.materialNumber,productName:n,packageType:s.packageType,packageSize:s.packageSize,description:r||s.materialDescription,handleClose:()=>ed(!1)})]})};var ec=a(25771),eu=a(469485),ep=a(52710),em=a(484830),eg=a(376056),eh=a(327651),ex=a(494295),eA=a(941764),ey=a(365149),ev=a(251996),ef=a(870903),eb=a(11975);let{publicRuntimeConfig:{featureFlags:eT}}=E()(),eC=e=>{let{availability:t,leadTime:a}=e,{classes:n}=(0,X.A)();if(!t)return(0,i.jsx)(eu.J,{id:"PRICING_AND_AVAILABILITY_UNAVAILABLE",defaultMessage:"Pricing and availability is not currently available.",availability:t});if(t.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:t})]});if(t.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:t})]});if(t.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:t}),(0,i.jsx)(eA.A,{leadTime:a})]});if(t.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:t})]});if(t.key===y.qL.LimitedAvailability)return(0,i.jsx)(eu.J,{...f.A[t.key]});if(t.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:t});if(t.key===y.qL.OnlyFewLeftInStock){let e=t.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:t})]})}if(t.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:t})]});if(t.key===y.qL.CheckCartForAvailability)return(0,i.jsx)(eu.J,{id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability",availability:t});if(!t.date||!t.quantity)return(0,i.jsx)(eu.J,{id:"PRICING_AND_AVAILABILITY_UNAVAILABLE",defaultMessage:"Pricing and availability is not currently available.",availability:t});let r=new Date,l=0===(0,ef.c)(new Date(t.date),r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{className:n.availableIcon}),l?t.key===y.qL.EstimatedToShipOn?(0,i.jsx)(eu.J,{id:"ESTIMATED_TO_SHIP_TODAY",availability:t,defaultMessage:"Estimated to ship TODAY"}):(0,i.jsx)(eu.J,{id:"AVAILABLE_TODAY",availability:t,defaultMessage:"Available to ship TODAY"}):(0,i.jsxs)("span",{children:[(0,i.jsx)(eu.J,{availability:t,...f.A[t.key===y.qL.EstimatedDeliveryOn?"AVAILABILITY_ESTIMATED_DELIVERY_ON":t.key]})," ",(0,i.jsx)(S.XU,{value:new Date(t.date),year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"})]})]})},eE=e=>{let{preferredDealerName:t,noPriceForDealer:a}=e,{formatMessage:n}=(0,N.A)(),{classes:r}=(0,X.A)();if(a)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:t}})]});let l=t?"".concat(n({id:"SHIPPED_SOLD_BY",defaultMessage:"Shipped & Sold By"})," ").concat(t):"";return l?(0,i.jsx)("span",{className:r.seeDealerOptionsText,children:"".concat(l," ")}):(0,i.jsx)(i.Fragment,{})},ej=e=>{let{dealerCount:t}=e,{formatMessage:a}=(0,N.A)(),n=a({id:"SEE_ALL_BUYING_OPTIONS",defaultMessage:"See All Buying Options"});return t?(0,i.jsx)(i.Fragment,{children:"".concat(n," (").concat(t,")")}):(0,i.jsx)(i.Fragment,{children:"".concat(n)})},e_=e=>{var t,a,m,g,y,f;let{country:C,productName:E,displaySellerName:S,productDescription:k,productId:M,materialPricing:P,canAddToCart:L,isSubmitting:O,dirty:B,submitForm:w,hideAddToCartForPrepackItems:F,displayPromotionalBundlesAnchor:D,displaySDS:W,ctas:U,isAddToList:H,setFieldValue:z,values:G,isMarketplace:V,isMarketplaceCartEnabled:Y=!1,marketplaceSellerId:q,marketplaceOfferId:K,productAttributes:$,handlePriceUpdateForDealer:Q,erpType:Z,dChainMessage:J}=e,ee=(0,j.useRouter)(),[et,ea]=(0,_.useState)(!1),{classes:ei}=(0,X.A)(),{formatMessage:en}=(0,N.A)(),{currentUser:er,currentUserState:eo,getSitePreference:es,isPublicOrderingCustomer:eu,isQuoteRequester:eA,isDTAQZuCustomer:ef,userIsLoggedIn:e_,isB2BUser:eS}=(0,b.iZ)(),{userSession:eN}=(0,T.j)(),eI=es(b.VD.PreferredDealerId),[eR,ek]=(0,_.useState)(0),eM=!eI,eP=es(b.VD.PreferredDealerInfo),eL=null==eP?void 0:eP.orgName,[eO,eB]=(0,_.useState)(eL),{isPurpleProduct:ew}=(0,em.Q)(Z),eF=(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),ez=(e,t)=>{eH(eU.map(a=>({...a,error:a.name===e?t:a.error})))},{data:eG,refetch:eV,error:eY}=(0,v.AW)({context:{userSession:eN},errorPolicy:"all",variables:{countryCode:null==eN?void 0:eN.country,stateCode:String(eo),searchTerm:""},skip:!e_||!ef}),eq=(null==P?void 0:P.map(e=>e.materialNumber))||[],eK=null==er?void 0:null===(a=er.soldToPartners)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.soldTo,{getCountryDetails:e$}=(0,ev.Y)(),{defaultPartnerNumber:eQ}=e$(eN.country),eX=(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||eQ,country:eN.country},materials:eq}},skip:!eT.srpTxnBadges||!eX||eS||!(null==eq?void 0:eq.length)||!eK&&!eQ});(0,_.useEffect)(()=>{if(null!==P[0].dealerId){let e=P[0].dealerId,{organizationName:t=null}=null==eG?void 0:eG.getDealers.find(t=>t.id===e);eB(t)}},[P[0].dealerId]),(0,_.useEffect)(()=>{if(eG&&0===eR){var e;ek(null==eG?void 0:null===(e=eG.getDealers)||void 0===e?void 0:e.length)}},[eG]),(0,_.useEffect)(()=>{var e;null===J&&(null===(e=P[0])||void 0===e?void 0:e.availableQtyInStock)===null&&z("0",{...G["0"],quantity:"1"})},[]);let eJ=async e=>{await eV({countryCode:eN.country,stateCode:String(eo),searchTerm:e.toLowerCase()})},e0=P&&P.length&&P[0].type,e1=(null==er?void 0:er.__typename)==="GuestUser"&&!L,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:t}=e;return t}),e6=null==U?void 0:U.find(e=>"bulk order"===e.type),e9=null==U?void 0:U.find(e=>"bulk order"!==e.type),te=(0,_.useCallback)(()=>{let e=Object.values(G).reduce((e,t)=>(e[t.materialNumber]=Number(t.quantity||0),e),{}),t=P.every(e=>{var t,a;return null===(a=e.availabilities)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.displayInquireLink}),a=P.some(t=>{var a,i,n;return null!==(i=t.availabilities)&&void 0!==i&&null!==(a=i[0])&&void 0!==a&&!!a.displayInquireLink&&(null!==(n=e[t.materialNumber])&&void 0!==n?n:0)>=1});return t||a||eU.some(e=>e.error)},[eU,G]),tt=(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)(o.A,{children:en({id:"SKU",defaultMessage:"SKU"})}),"ThirdPartyProvider"===e0?(0,i.jsx)(o.A,{children:en({id:"VENDOR_SKU",defaultMessage:"Vendor SKU"})}):"",(0,i.jsx)(o.A,{children:en({id:"PACK_SIZE",defaultMessage:"Pack Size"})}),(0,i.jsx)(o.A,{children:en({id:"AVAILABILITY",defaultMessage:"Availability"})}),W&&(0,i.jsx)(o.A,{children:en({id:"SDS",defaultMessage:"SDS"})}),(0,i.jsx)(o.A,{children:en({id:"PRICE",defaultMessage:"Price"})}),(0,i.jsx)(o.A,{children:L&&!F?en({id:"QUANTITY",defaultMessage:"Quantity"}):null})]})}),(0,i.jsx)(s.A,{children:P.map((e,t)=>{var a,n,r,o,s;let d=(null===(a=e.availabilities)||void 0===a?void 0:a.filter(e=>"primary"===e.messageType)[0])||(null===(n=e.availabilities)||void 0===n?void 0:n[0]),c=null==eZ?void 0:null===(s=eZ.checkPromoEligibility)||void 0===s?void 0:null===(o=s.skus.find(t=>t.sku===e.materialNumber))||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.terms.promoCode;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,{...tt,brand:e.brand,item:e.materialNumber,pricing:e,children:(0,i.jsx)(ed,{isMarketplace:V,canAddToCart:L,hideAddToCartForPrepackItems:F,initialShipEstimate:(0,i.jsx)(eC,{availability:d,leadTime:null==e?void 0:e.leadTime}),productName:E,productDescription:k,productId:M,material:e,index:t,displayPromotionalBundlesAnchor:D,displaySDS:W,countryCode:C,rowValues:G[t],renderBuyNow:e5,setMultipleMinimumQuantityError:ez,erpType:Z,promoCode:c},t)})},e.materialNumber)})})]}),e7&&(0,i.jsx)(d.A,{className:ei.tfoot,children:(0,i.jsx)(l.A,{children:(0,i.jsxs)(o.A,{align:"center",colSpan:5,children:[eI&&(0,i.jsx)(eE,{preferredDealerName:null!=eO?eO:eL,noPriceForDealer:e8}),(0,i.jsx)(c.A,{variant:"text",className:ei.seeDealerOptionsLink,onClick:()=>ea(!0),children:(0,i.jsx)(ej,{dealerCount:eR})})]})})})]}),et&&e3&&(0,i.jsx)(x.A,{isSavingDealerPreference:e3,open:et,onClose:()=>ea(!1),onDealerSelectCallback:w,disabled:!1,dealers:(null==eG?void 0:eG.getDealers)||[],onSearch:eJ,error:eY,values:G,materialPricing:P,setFieldValue:z,setIsModalOpen:ea}),et&&!e3&&(0,i.jsx)(x.A,{isSavingDealerPreference:e3,open:et,onClose:()=>ea(!1),onDealerSelect:Q,disabled:!1,dealers:(null==eG?void 0:eG.getDealers)||[],onSearch:eJ,error:eY,values:G,materialPricing:P,setFieldValue:z,setIsModalOpen:ea})]}),!C&&(!e8&&e7||!e7)&&(0,i.jsxs)(u.A,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:!Y&&4,children:[(0,i.jsx)(u.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(ec.A,{isMarketplace:V,marketplaceSellerId:q,marketplaceOfferId:K,productAttributes:$,displaySellerName:S})}),(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:eN.language,country:eN.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&&!V&&(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}),ew&&eF&&!e_?(0,i.jsx)(eg.A,{size:"medium"}):(!V||V&&Y)&&(0,i.jsx)(R.Ay,{handleAddToCart:e=>{if(e.preventDefault(),e3)return ea(!0);w()},isSubmitting:O,dirty:B,disabled:te(),canAddToCart:L&&(!V||V&&Y),hideAddToCartForPrepackItems:F,isAddToList:H,size:"large"})]})})]})]})}},305493:(e,t,a)=>{a.d(t,{A:()=>l});var i=a(637876);a(14232);var n=a(607645),r=a(635877);let l=e=>{let{height:t,width:a,borderRadius:l="borderRadius",mb:o=0}=e,s=(0,r.A)();return(0,i.jsx)(n.A,{height:t,width:a,borderRadius:l,bgcolor:s.palette.grey["50"],mb:o})}},317215:(e,t,a)=>{a.d(t,{A:()=>s});var i=a(637876);a(14232);var n=a(55011),r=a(599220),l=a(343965);let o=(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"}})),s=e=>{let{label:t,onDelete:a,dataTestId:r,ariaLabel:s}=e,{classes:d}=o(),c="string"==typeof t?(0,i.jsx)("span",{children:t}):t;return(0,i.jsx)("div",{className:d.root,"data-testid":r,children:(0,i.jsxs)("div",{className:d.alignmentWrapper,children:[(0,i.jsx)("span",{children:c}),(0,i.jsx)(n.A,{"aria-label":s,className:d.closeBtn,onClick:a,children:(0,i.jsx)(l.A,{fontSize:"inherit",color:"primary"})})]})})}},319490:(e,t,a)=>{a.d(t,{A:()=>s});var i=a(637876);a(14232);var n=a(308733),r=a(599220),l=a(554753);let o=(0,r.makeStyles)()(e=>({supplementary:{fontSize:e.typography.pxToRem(12),lineHeight:1.5}})),s=e=>{var t,a;let{promotional:r}=e,{classes:s}=o(),{messageKey:d,messageValue:c,messageVariable1:u,messageVariable2:p,messageVariable3:m}=null!=r?r:{};if(d&&!c&&!l.A[d])return null;let g=null==c?void 0:null===(a=c.replace("%0","".concat(u)))||void 0===a?void 0:null===(t=a.replace("%1","".concat(p)))||void 0===t?void 0:t.replace("%2","".concat(m));return(0,i.jsx)("div",{children:d&&l.A[d]?(e=>(0,i.jsx)(n.A,{...l.A[e.messageKey],values:{messageVariable1:e.messageVariable1,messageVariable2:(0,i.jsx)("strong",{children:e.messageVariable2})},children:e=>(0,i.jsx)("div",{className:s.supplementary,children:e})}))(r):(0,i.jsx)(n.A,{id:"DEFAULT_PROMOTIONAL_MESSAGE",defaultMessage:"{messageValue}",values:{messageValue:g},children:e=>(0,i.jsx)("div",{className:s.supplementary,children:e})})})}},328011:(e,t,a)=>{a.d(t,{A:()=>h});var i=a(637876),n=a(14232),r=a(505411),l=a(713261),o=a(955920),s=a(566561),d=a(985453),c=a(696241),u=a(289696),p=a(676023),m=a(674301);let g=(0,a(599220).makeStyles)()(e=>({btnGroup:{"& > .MuiButton-root:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"1px solid ".concat(e.palette.grey["500"])}},popper:{zIndex:e.zIndex.tooltip,margin:e.spacing(2,0)},popperPaper:{boxShadow:e.shadows[4],border:"1px solid ".concat(e.palette.grey["200"])},menuList:{padding:e.spacing(1,0)},menuItem:{padding:e.spacing(3,4)},arrowButton:{maxWidth:"44px"}})),h=e=>{var t;let{primaryOption:a,options:h}=e,{classes:x}=g(),[A,y]=n.useState(!1),v=(0,n.useRef)(null),f=(0,n.useRef)(null),b=()=>{y(e=>!e)},T=e=>{v.current&&v.current.contains(e.target)||y(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A,{color:"secondary",variant:"contained",ref:v,"aria-label":"".concat(a.label," split button"),className:x.btnGroup,fullWidth:!0,children:[a.renderButton?a.renderButton():(0,i.jsx)(r.A,{size:"large",onClick:a.onClick,children:a.label}),(0,i.jsx)(r.A,{className:x.arrowButton,size:"small","aria-controls":"split-button-menu","aria-expanded":A?"true":"false","aria-haspopup":"menu",onClick:b,ref:f,children:(0,i.jsx)(o.A,{})})]}),(0,i.jsx)(u.A,{className:x.popper,style:{width:null===(t=v.current)||void 0===t?void 0:t.offsetWidth},open:A,anchorEl:v.current,role:"tooltip",transition:!0,disablePortal:!0,children:e=>{let{TransitionProps:t,placement:a}=e;return(0,i.jsx)(d.A,{...t,style:{transformOrigin:"bottom"===a?"center top":"center bottom"},children:(0,i.jsx)(c.A,{className:x.popperPaper,children:(0,i.jsx)(s.A,{onClickAway:T,children:(0,i.jsx)(m.A,{id:"split-button-menu",autoFocusItem:!0,className:x.menuList,onKeyDown:e=>{if(27===e.keyCode){var t;y(!1),null===(t=f.current)||void 0===t||t.focus()}},children:h.map((e,t)=>(0,i.jsx)(p.A,{onClick:()=>{e.onClick&&e.onClick(),b()},className:x.menuItem,children:e.renderButton?e.renderButton():e.label},t))})})})})}})]})}},336820:(e,t,a)=>{a.d(t,{A:()=>_});var i=a(637876),n=a(14232),r=a(599220),l=a(635877),o=a(554753),s=a(671541),d=a(55011),c=a(505411),u=a(709567),p=a(123184),m=a(189748),g=a(582440),h=a.n(g),x=a(308733),A=a(486024),y=a(44509),v=a(757477),f=a(167334),b=a(211148),T=a(852413),C=a(870183);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:t,images:a,onClose:r,name:g,productId:E,brand:_}=e,{classes:S,cx:N}=j(),I=(0,l.A)(),R=a.length,k=(0,s.A)(I.breakpoints.up("md")),M=R-1,[P,L]=(0,n.useState)(0),[O,B]=(0,n.useState)(!1),w=e=>{B(!1),L(e)},F=()=>{let e=P+1;e{let e=P-1;e>=0&&w(e)},W=e=>{w(e)},U=e=>{let{brandKey:t,productKey:a}=e;return(0,i.jsxs)("div",{className:S.productLinkWrapper,children:[(0,i.jsx)("h4",{className:S.productNumberHeading,children:(0,i.jsx)(x.A,{...o.A.PRODUCT_NUMBER})}),(0,i.jsx)(T.N,{...b.aR.index(t,a),passHref:!0,children:(0,i.jsx)("a",{className:S.productLink,children:(0,i.jsx)(v.A,{value:a})})})]})};return(0,i.jsx)(A.A,{open:t,onClose:()=>{w(0),r(!t)},size:A.I.Large,renderTitle:()=>(0,i.jsx)(x.A,{...o.A.PRODUCT_IMAGES_VIEWING,values:{index:P+1,count:R}}),children:(0,i.jsxs)("div",{"data-testid":"pdp-images-modal",id:"pdp-images-modal",children:[(0,i.jsx)("div",{className:S.carouselWrapper,children:(0,i.jsx)(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:N(S.nav,S.prevNav),onClick:D,"aria-label":"previous",children:(0,i.jsx)(u.A,{className:S.buttonIcon,color:"primary"})})}),renderCenterRightControls:()=>(0,i.jsx)(i.Fragment,{children:P{let{label:a,brandKey:n,productKey:r}=e;return(0,i.jsx)("div",{className:S.slide,children:(0,i.jsxs)("div",{className:S.mainContentWrapper,children:[O?(0,i.jsx)("div",{className:N(S.mobileLabelWrapper,S.labelText),"data-testid":"mobile-label-wrapper-".concat(a),children:a&&(0,i.jsx)(v.A,{value:a})}):e.videoUrl?(0,i.jsx)("div",{className:S.videoContainer,"data-testid":"video-container-".concat(a),children:(0,i.jsx)(C.A,{videoUrl:e.videoUrl,posterUrl:"/deepweb/assets/sigmaaldrich/marketing/global/images/video-posters/miscl/blue-video-poster-mslvn/blue-video-poster-mslvn.jpg",css:S.videoLink,name:g,brand:_||n,productId:E})}):(0,i.jsx)(f.A,{image:e}),a||n&&r?(0,i.jsxs)("div",{className:S.labelWrapper,children:[(0,i.jsx)("div",{className:S.desktopLabelWrapper,children:(0,i.jsxs)("div",{className:S.desktopLabel,children:[n&&r&&U({brandKey:n,productKey:r}),(0,i.jsx)("div",{className:S.labelText,children:(0,i.jsx)(v.A,{value:a})})]})}),(0,i.jsx)("div",{className:S.mobileLabelTrigger,children:(0,i.jsx)(c.A,{onClick:()=>B(!O),"data-testid":"mobile-label-trigger-".concat(a),children:O?(0,i.jsx)(x.A,{...o.A.HIDE_CAPTION}):(0,i.jsx)(x.A,{...o.A.SHOW_CAPTION})})})]}):null]})},t)})})}),(0,i.jsx)("div",{className:S.footer,children:(0,i.jsx)(h(),{slideIndex:a.length>4?P:void 0,className:S.footerCarousel,withoutControls:!0,slidesToShow:5,style:k?{padding:"0 16px"}:{padding:"4px"},cellAlign:"left",children:a.map((e,t)=>(0,i.jsx)("div",{className:S.thumbnailWrapper,children:(0,i.jsxs)(d.A,{className:N(S.thumbnailButton,t===P&&S.active),onClick:()=>W(t),"data-testid":"images-thumbnail-button-".concat(t),children:[(0,i.jsx)("div",{className:N(t!==P&&S.overlay)}),e.videoUrl&&(0,i.jsx)(m.A,{className:S.playButtonIcon}),(0,i.jsx)(y.A,{className:S.thumbnail,alt:null==e?void 0:e.altText,src:e.videoUrl?"/deepweb/assets/sigmaaldrich/marketing/global/images/video-posters/miscl/purple-video-poster-mslvn/purple-video-poster-mslvn.jpg":null==e?void 0:e.largeUrl,sizes:"54px",urls:[null==e?void 0:e.smallUrl,null==e?void 0:e.mediumUrl,null==e?void 0:e.largeUrl]},t)]})},t))})})]})})}},342669:(e,t,a)=>{a.d(t,{E:()=>n,L:()=>r});var i=a(554753);let n=e=>t=>"SYSTEM_CREATED_LIST"===t.name?e(i.A.LIST_NUM_ONE):t.name,r=(e,t,a,n)=>{let r=a(e).find(e=>{var a;return t.ownerDetail.email===e||(null===(a=t.membersDetail)||void 0===a?void 0:a.some(t=>t.email===e))});return r?n(i.A.ALREADY_A_MEMBER_ERROR,{email:r}):void 0}},354034:(e,t,a)=>{a.d(t,{A:()=>U});var i=a(637876),n=a(14232),r=a(599220),l=a(169344),o=a(46282),s=a(147801),d=a(211148),c=a(220534),u=a(866770),p=a(877018),m=a(938554),g=a(370475),h=a(757477),x=a(877742),A=a(308733),y=a(852413),v=a(197710),f=a(635645),b=a(471662),T=a(840002),C=a(340352),E=a(232609),j=a(166313),_=a(677660),S=a(11788),N=a(384119),I=a(52710),R=a(771007),k=a(175020),M=a(761622),P=a(187254),L=a(139324);let{publicRuntimeConfig:{featureFlags:O}}=a.n(L)()(),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%"}})),w="7950",F=e=>{var t,a,r,l,o,L,F,D,W;let{product:U,substanceName:H,className:z,substanceId:G,substancePosition:V}=e,{classes:Y,cx:q}=B(),K=(0,d.rd)(),$=(0,C.Ay)(),{formatMessage:Q}=(0,x.A)(),{focus:X="",catalogType:Z="",orgId:J=""}=K.query||{},[ee,et]=(0,n.useState)(!1),ea=(null==U?void 0:U.isMarketplace)?_.Mh.Marketplace:null,{currentUser:ei,getSitePreference:en,isB2BUser:er,isDTAQZuCustomer:el,isBlueErpIntegrationEnabled:eo}=(0,S.iZ)(),es=el?en(S.VD.PreferredDealerId):null,ed=eo&&(null==U?void 0:U.erp_type)&&(null==U?void 0:null===(t=U.erp_type)||void 0===t?void 0:t.length)>0,ec=null!==(L=null===s.Lr||void 0===s.Lr?void 0:s.Lr.getItem("searchedfor"))&&void 0!==L?L:"",[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===(a=U.brand)||void 0===a?void 0:a.key,catalogType:(0,v.vN)(ea||Z||X),checkBuyNow:!0,checkForPb:!0,dealerId:es,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!==(F=null==ep?void 0:ep.getPricingForProduct)&&void 0!==F?F:{},ex=!em&&ee&&!eh,eA=(0,M.j)(null==eh?void 0:eh.replacementProducts),ey=U.productNumber.startsWith("CB_")?Q({id:"DETAILS",defaultMessage:"Details"}):U.productNumber,ev=(0,n.useContext)(I.E),ef=(0,n.useMemo)(()=>{var e,t;return(null==ei?void 0:null===(t=ei.soldToPartners)||void 0===t?void 0:null===(e=t[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=O.srpTxnBadges&&"US"===eb&&!er&&U.txnBadge&&(null===(r=U.txnBadge)||void 0===r?void 0:r.type)==="MAX_DISCOUNT"&&(null===(o=U.txnBadge)||void 0===o?void 0:null===(l=o.salesOrgIds)||void 0===l?void 0:l.includes(w))&&ef===w;return eg?(0,i.jsx)(I.M,{...ev,brand:U.brand.key,item:U.name,children:(0,i.jsx)(N.A,{productNumber:null==U?void 0:U.productNumber,error:eg})}):(0,i.jsxs)(u.Ay,{component:"li",className:q(z,Y.root),children:[(0,i.jsx)(p.A,{component:"h3",className:Y.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||X)}),passHref:!0,children:(0,i.jsx)(m.A,{onClick:()=>(0,R.sendProductClickEvent)({product:U,searchTerm:ec,substanceId:G,substancePosition:V}),children:ey})}):(0,i.jsx)("span",{children:U.productNumber})}),(0,i.jsx)(p.A,{component:"p",className:Y.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:$({xs:1,sm:2,lg:3}),withoutControls:eA.length<=4})]}):(0,i.jsxs)("div",{className:eT?Y.viewPricingWrapperWithBadge:Y.viewPricingWrapper,children:[eT&&(0,i.jsx)(P.A,{showTooltip:!0,toolTipPlacement:"right"}),(0,i.jsx)(g.A,{className:Y.viewPricing,onClick:()=>{var e;U.paMessage||eu(),et(!0),(0,k.Sm)({action:"view p&a",section:V?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:()=>{et(!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=a(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-of-type":{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:t,substanceName:a,substanceId:r,substancePosition:s}=e,d=t.length,c=t.slice(0,2),u=t.slice(2),[p,m]=(0,n.useState)(!1),{classes:g}=W(),h=e=>(0,i.jsx)(F,{product:e,substanceName:a,substancePosition:s,substanceId:r},e.productNumber);return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.A,{disablePadding:!0,className:g.initialProducts,children:c.map(h)}),d>2&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{in:p,children:(0,i.jsx)(l.A,{disablePadding:!0,className:g.moreProducts,children:u.map(h)})}),(0,i.jsx)(D.A,{expanded:p,setExpanded:()=>{m(!p)},className:g.showMore,"data-testid":"show-".concat(p?"less":"more")})]})]})}},354064:(e,t,a)=>{a.d(t,{z:()=>r});var i=a(428888);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,a(182897).J1)(n())},365149:(e,t,a)=>{a.d(t,{W_:()=>d});var i=a(428888);a(637876);var n=a(182897);a(14232);var r=a(154431);function l(){let e=(0,i._)(["\n query CheckPromoEligibility($input: PromoCodeEligibilityRequestInput!) {\n checkPromoEligibility(input: $input) {\n skus {\n sku\n data {\n uuid\n terms {\n promoType\n promoCode\n discount\n qualifierType\n currency\n tiers {\n tier\n qualifyingAmount\n discount\n }\n validFrom\n validTo\n }\n hidePromoDetailsForAnonUser\n }\n }\n }\n}\n "]);return l=function(){return e},e}let o={},s=(0,n.J1)(l());function d(e){let t={...o,...e};return r.IT(s,t)}},366201:(e,t,a)=>{a.d(t,{A:()=>h});var i=a(637876),n=a(14232),r=a(599220),l=a(55011),o=a(812197),s=a(330877),d=a(954203),c=a(444274),u=a(298546);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:t,columns:a,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 t=e.target.closest("a, .".concat(b.toggleButton));(null==t?void 0:t.tagName)!=="A"&&(C(!T),y&&y(!T))},children:[(0,i.jsxs)("div",{className:b.headerWrapper,children:[(0,i.jsx)(o.A,{component:"div",variant:"h2",id:f,...h,children:r.bodyElement(t,!v)}),m&&(0,i.jsx)(o.A,{component:"div",variant:"body2",...x,children:m.bodyElement(t,!0)}),g&&(0,i.jsx)(o.A,{component:"div",variant:"body2",...x,children:g.bodyElement(t,!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)(s.A,{in:T,children:(0,i.jsxs)("div",{className:b.content,children:[(0,i.jsx)("dl",{className:b.descriptionList,children:a.map((e,a)=>{let n=e.headElement,l=!!v&&e===r,s=e.bodyElement(t,l);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(o.A,{component:"dt",variant:"caption",children:[n||e.headElement,e.headElementEndIcon]}),(0,i.jsx)(o.A,{component:"dd",variant:"body1",children:s})]},a)})}),A&&A(t,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:t,noResultsComponent:a,columns:n,accordionTitleColumn:r,accordionSubtitleColumn:l,accordionSecondaryTextColumn:o,itemProps:s}=e,{classes:d}=g();return(0,i.jsx)("ul",{className:d.root,children:(null==t?void 0:t.length)>0?t.map((e,t)=>(0,i.jsx)("li",{className:d.resultsWrapper,children:(0,i.jsx)("div",{className:d.data,children:(0,i.jsx)(m,{data:e,columns:n,accordionTitleColumn:r,accordionSubtitleColumn:l,accordionSecondaryTextColumn:o,...s})},t)},t)):(0,i.jsx)("div",{className:d.noResults,children:a})})}},376056:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(637876);a(14232);var n=a(505411),r=a(308733),l=a(437929),o=a(671541),s=a(211148);let d=e=>{let{buttonMessage:t,fullWidth:a=!1,size:d="large"}=e,c=(0,l.A)(),u=(0,o.A)(c.breakpoints.up("md")),p=(0,s.rd)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.A,{color:"primary",fullWidth:!u||a,size:d,variant:"contained",href:"".concat(s.VV.index(),"?redirect=").concat(encodeURIComponent(p.asPath||s.xn.index())),children:(0,i.jsx)(r.A,{...null!=t?t:{id:"SIGN_IN_FOR_BEST_PRICING",defaultMessage:"Sign In for Best Price"}})})})}},384119:(e,t,a)=>{a.d(t,{A:()=>C});var i=a(637876),n=a(14232),r=a(139324),l=a.n(r),o=a(211148),s=a(308733),d=a(599220),c=a(607645),u=a(505411),p=a(134415),m=a(683198),g=a(852413),h=a(475352),x=a(282250),A=a(554753),y=a(11788),v=a(469485),f=a(317685);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 t;let{error:a,productNumber:r,isMarketplace:l=!1,sellerName:d="",marketplaceSellerId:C="",marketplaceOfferId:E="",materialPricing:j,isCenterJustified:_=!0,handlePriceUpdateForDealer:S}=e,{classes:N,cx:I}=T(),R=(0,o.rd)(),{isDTAQZuCustomer:k}=(0,y.iZ)(),[M,P]=(0,n.useState)(!1),L=a?(0,x.Mw)(a).errors[0]:void 0,O=(null==L?void 0:null===(t=L.misc)||void 0===t?void 0:t.hideTechnicalServiceLink)===void 0||L.misc.hideTechnicalServiceLink,B=l&&!!d&&!!C&&!!E,w=b.dealerCartEnabled&&k,F=(null==L?void 0:L.code)&&A.A[L.code]||A.A.PRICING_AND_AVAILABILITY_UNAVAILABLE,{userSession:{country:D}}=(0,f.j)();return(0,i.jsxs)("div",{className:I(N.row,{[N.rowFormatting]:_}),children:[(0,i.jsx)(c.A,{mr:2,children:(0,i.jsx)(m.A,{color:"error"})}),(0,i.jsxs)(c.A,{className:I({[N.centerJustified]:_}),children:[(0,i.jsx)("span",{className:I({[N.errorText]:_}),children:(null==L?void 0:L.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:o.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(s.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:o.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(s.A,{id:"PLEASE_CONTACT_CUSTOMER_SERVICE",defaultMessage:"Please Contact Customer Service"})})})}}):(0,i.jsx)(v.J,{...F,values:{link:(0,i.jsx)("a",{href:"http://www.emdmillipore.com/",children:"Millipore"})}}):(null==L?void 0:L.code)==="MERCK_MILLIPORE_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(v.J,{...F,values:{link:(0,i.jsx)("a",{href:"http://www.merckmillipore.com/",children:"Merck Millipore"})}}):(null==L?void 0:L.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE_HAS_STOCK"||(null==L?void 0:L.code)==="MM_PRICING_AND_INVENTORY_UNAVAILABLE"?(0,i.jsx)(v.J,{...F,values:{productNumber:r,link:(0,i.jsx)("a",{href:"http://hg.y866.cn/germ/",target:"_blank",rel:"noreferrer",children:"Sigma-Aldrich"})}}):(null==L?void 0:L.code)==="PRODUCT_ONLY_SOLD_VIA_OFFLINE_CHANNELS"?(0,i.jsx)(v.J,{...F,values:{link:(0,i.jsx)(g.N,{href:o.mA.customerSupport(),children:(0,i.jsx)("a",{children:(0,i.jsx)(s.A,{id:"PLEASE_CONTACT_CUSTOMER_SERVICE",defaultMessage:"Please Contact Customer Service"})})})}}):(null==L?void 0:L.code)==="CUSTOMER_NUMBER_BLOCKED"?(0,i.jsx)(v.J,{...F,values:{customerNumber:(null==L?void 0:L.paramList)?null==L?void 0:L.paramList[0]:""}}):r?(0,i.jsx)(v.J,{...F,values:{productNumber:(0,i.jsx)("b",{children:r})}}):(0,i.jsx)(v.J,{...F})}),O||B?null:(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(g.N,{href:o.mA.customerSupport(),passHref:!0,children:(0,i.jsx)(p.A,{color:"primary",className:N.errorText,children:(0,i.jsx)(s.A,{...A.A.CONTACT_TECHNICAL_SERVICE})})})]}),B?(0,i.jsxs)("span",{className:N.errorContact,children:[(0,i.jsx)("span",{children:"\xa0"}),(0,i.jsx)(g.N,{...o.kJ.contact(d,C,R.asPath,o.C2.OFFER_MESSAGING,E),children:(0,i.jsx)("a",{children:(0,i.jsx)(s.A,{...A.A.CONTACT_SELLER_WITH_NAME,values:{sellerName:d}})})})]}):null,w&&(0,i.jsx)(u.A,{variant:"text",className:N.seeDealerOptionsLink,onClick:()=>P(!0),children:(0,i.jsx)(s.A,{...A.A.SEE_ALL_BUYING_OPTIONS})}),w&&S&&M&&(0,i.jsx)(h.A,{values:{},materialPricing:j,isSavingDealerPreference:!1,setFieldValue:e=>e,setIsModalOpen:P,onDealerSelect:(e,t)=>S(e,{},j,e=>e,P,t),open:M,onClose:()=>P(!1),disabled:!1})]})]})}},384627:(e,t,a)=>{a.d(t,{A:()=>f});var i=a(637876),n=a(599220),r=a(521018),l=a(908392),o=a(63724),s=a(877018),d=a(938554),c=a(308733),u=a(554753),p=a(211148),m=a(852413);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:320},flexDirection:"column",flexBasis:"100%"},additionalExamplesContainer:{textAlign:"center"},copyText:{fontSize:e.typography.pxToRem(12),[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(14)}}})),h=e=>{let{techServiceLinkClicked:t}=e,{classes:a,cx:n}=g();return(0,i.jsxs)(o.A,{container:!0,children:[(0,i.jsx)(o.A,{xs:12,className:a.vr6,children:(0,i.jsxs)(s.A,{variant:"body2",className:a.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:a.mediumBold,children:(0,i.jsx)(c.A,{id:"HOW_TO_ENTER_PRODUCT_NUMBER_INSTRUCTIONS_TEXT",defaultMessage:"ONLY the product number in the Product Number field"})})," (",(0,i.jsx)("span",{style:{textTransform:"lowercase"},children:(0,i.jsx)(c.A,{id:"EXAMPLE_PRODUCT_NUMBER",defaultMessage:"example"})}),": ",(0,i.jsx)("span",{children:" T1503)."})]})}),(0,i.jsxs)(o.A,{container:!0,xs:12,className:a.exampleContainer,children:[(0,i.jsx)(s.A,{variant:"body2",className:n(a.vr4,a.copyText),children:(0,i.jsx)(c.A,{...u.A.EXAMPLE})}),(0,i.jsxs)("div",{className:n(a.diagramContainer,a.vr6),children:[(0,i.jsxs)("div",{className:a.purple,children:[(0,i.jsx)("div",{className:a.value,children:"T1503"}),(0,i.jsx)("div",{className:a.label,children:(0,i.jsx)(c.A,{...u.A.PRODUCT_NUMBER})})]}),(0,i.jsx)("div",{className:a.divider,children:"-"}),(0,i.jsxs)("div",{className:a.grey400,children:[(0,i.jsx)("div",{className:a.value,children:"25G"}),(0,i.jsx)("div",{className:a.quantitylabel,children:(0,i.jsx)(c.A,{...u.A.PACK_SIZE_QUANTITY})})]})]}),(0,i.jsx)(s.A,{variant:"body2",className:n(a.vr4,a.copyText),children:(0,i.jsx)(c.A,{...u.A.ADDITIONAL_EXAMPLES})}),(0,i.jsxs)(o.A,{container:!0,justifyContent:"center",alignItems:"flex-start",className:n(a.additionalExamplesContainer),children:[(0,i.jsx)(o.A,{xs:12,md:6,className:a.vr4,children:(0,i.jsxs)(s.A,{variant:"body1",className:a.boldWeight,children:[(0,i.jsx)("span",{className:a.purple,children:"705578"}),(0,i.jsx)("span",{className:a.grey400,children:"-5MG-PW"})]})}),(0,i.jsx)(o.A,{xs:12,md:6,className:a.vr4,children:(0,i.jsxs)(s.A,{variant:"body1",className:a.boldWeight,children:[(0,i.jsx)("span",{className:a.purple,children:"PL860-CGA/SHF"}),(0,i.jsx)("span",{className:a.grey400,children:"-1EA"})]})}),(0,i.jsx)(o.A,{xs:12,md:6,className:a.vr4,children:(0,i.jsxs)(s.A,{variant:"body1",className:a.boldWeight,children:[(0,i.jsx)("span",{className:a.purple,children:"MMYOMAG"}),(0,i.jsx)("span",{className:a.grey400,children:"-74K-13"})]})}),(0,i.jsxs)(o.A,{xs:12,md:6,children:[(0,i.jsx)(s.A,{variant:"body1",children:(0,i.jsx)("span",{className:a.boldWeight,children:"1000309185"})}),(0,i.jsxs)(s.A,{variant:"body1",children:[(0,i.jsx)(c.A,{id:"ENTER_AS_PRODUCT_NUMBER",defaultMessage:"enter as"})," ",(0,i.jsx)("span",{className:n(a.purple,a.boldWeight),children:"1.00030"}),(0,i.jsx)("span",{className:n(a.grey400,a.boldWeight),children:"9185"}),(0,i.jsx)("span",{children:")"})]})]})]})]}),(0,i.jsxs)(s.A,{variant:"body2",className:a.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,{sx:{fontWeight:700},onClick:()=>t?t("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})]})]})};a(14232);var x=a(877742);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:t,requestCertLinkClicked:a}=e,{classes:n}=A(),{formatMessage:r}=(0,x.A)(),l="request "+t.toLowerCase(),o=l+" link";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{variant:"h3",className:n.heading,children:r(u.A.NOT_FINDING_WHAT_YOU_ARE_LOOKING_FOR)}),(0,i.jsxs)("div",{className:n.banner,children:[(0,i.jsx)(s.A,{variant:"body2",className:n.bodyText,children:r(u.A.REQUEST_CERTIFICATE_INSTRUCTIONS,{type:t})}),(0,i.jsx)(s.A,{variant:"body1",children:(0,i.jsx)(d.A,{href:p.mA.customerSupport(),onClick:()=>a?a(o,{action:l,component:"right rail",elementType:"link",elementText:l,linkUrl:p.mA.customerSupport()}):null,children:r(u.A.REQUEST_CERTIFICATE,{type:t})})})]})]})},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:t,certificateType:a}=e,{classes:n}=v(),o=(e,a)=>{let i=a?"expand":"hide";t("".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:t}),summaryId:"findProductNumber-summary",summaryAriaControls:"findProductNumber-content",overrideClasses:{accordion:n.accordion,details:n.accordionDetails},expandedCallback:e=>o("How to Find the Product Number",e)}),a&&(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:a}}),details:(0,i.jsx)(l.A,{type:a,isAccordion:!0,isDialog:!0,customerSupportLinkClicked:t}),summaryId:"findLotNumber-summary",summaryAriaControls:"findLotNumber-content",overrideClasses:{accordion:n.accordion,details:n.accordionDetails},expandedCallback:e=>o("How to Find a Lot/Batch Number for ".concat(a),e)})]}),a&&(0,i.jsx)(y,{requestCertLinkClicked:t,type:a})]})}},390589:(e,t,a)=>{a.d(t,{A:()=>x});var i=a(637876),n=a(14232),r=a(876209),l=a(599220),o=a(457717),s=a(840002),d=a(771007),c=a(484830),u=a(11788),p=a(211148),m=a(650524),g=a(854366);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 t;let{dispType:a,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:S}=h(),N=(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 N.query.tab||"sds";default:return g.PP.NotAvailable}},{isBlueB2BUser:P}=(0,u.iZ)(),{data:L,loading:O}=(0,r.wJ)({variables:{dispType:a,productKey:x,brand:A,...P?{erpType:c.G.Blue}:{}},ssr:!1,fetchPolicy:"no-cache",skip:!I,onCompleted:e=>{var t;M()===g.PP.NotAvailable||e&&(null==e?void 0:null===(t=e.getRecentlyViewedProducts)||void 0===t?void 0:t.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==L?void 0:null===(t=L.getRecentlyViewedProducts)||void 0===t?void 0:t.products)||[],w=B.length>0;return((0,n.useEffect)(()=>{T&&T(w)},[w,O]),O)?null:w?(0,i.jsx)("div",{className:S(l,_.recentlyViewedContainer),children:(0,i.jsx)(o.A,{type:s.j.RecentlyViewed,products:B,analyticsItemListingId:v,analyticsItemListingName:f,slidesToShow:b,condensed:C,showPdpRedesignLevelTwo:j})}):null}},393783:(e,t,a)=>{a.d(t,{A:()=>c});var i=a(637876);a(14232);var n=a(599220),r=a(245756),l=a(63724),o=a(330566),s=a(305493);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-of-type)":{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:t}=d(),a=(0,o.A)();return(0,i.jsxs)("div",{"data-testid":"products-srp-skeleton",children:[(0,i.jsx)(r.A,{mb:20}),(0,i.jsx)("div",{children:[,,,,,].fill({}).map((n,o)=>(0,i.jsx)(r.A,{border:1,borderColor:a.palette.grey["50"],mb:{xs:6,sm:10},p:{xs:3,sm:6},children:(0,i.jsxs)(l.A,{container:!0,spacing:5,children:[(0,i.jsx)(l.A,{xs:2,children:(0,i.jsx)("div",{className:e.imageContainer,children:(0,i.jsx)("div",{className:e.imageWrapper,children:(0,i.jsx)(s.A,{height:1,width:1})})})}),(0,i.jsx)(l.A,{xs:10,children:(0,i.jsx)(r.A,{mt:2,children:(0,i.jsxs)(l.A,{container:!0,spacing:4,children:[(0,i.jsx)(l.A,{xs:12,children:(0,i.jsx)(s.A,{height:28,width:.7,mb:3,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(l.A,{xs:4,sm:2,children:(0,i.jsx)(s.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(l.A,{xs:8,sm:10,children:(0,i.jsx)(s.A,{height:16,width:.7,borderRadius:{xs:2,sm:"borderRadius"}})}),Array(6).fill({}).map((e,t)=>(0,i.jsxs)(l.A,{xs:4,sm:2,children:[(0,i.jsx)(s.A,{height:16,width:.6,borderRadius:{xs:2,sm:"borderRadius"},mb:3}),(0,i.jsx)(s.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"},mb:{xs:1,sm:3}})]},t))]})})}),(0,i.jsx)(l.A,{xs:12,children:[,,,].fill({}).map((a,n)=>(0,i.jsx)("div",{className:t(e.tRow,e.tBodyRow),children:Array(6).fill({}).map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsx)(s.A,{height:16,width:1,borderRadius:{xs:2,sm:"borderRadius"}})},t))},n))})]})},o))})]})}},405634:(e,t,a)=>{a.d(t,{A:()=>w});var i=a(637876),n=a(14232),r=a(308733),l=a(599220),o=a(370475),s=a(365824),d=a(834669),c=a(757477),u=a(387905),p=a(387505),m=a(684768),g=a(364272),h=a(888468),x=a(51139),A=a(877742),y=a(330566),v=a(406995),f=a(521488),b=a(236850),T=a(916652),C=a(343965);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:t,selectedOptions:a,handleFacetChange:r}=e,[l,s]=(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 t=e.split("_").filter(e=>"facet"!==e&&"web"!==e).map(e=>e[0].toUpperCase()+e.substring(1)).join(" ");return t.length>10&&j?t.slice(0,10).concat("..."):t},S=()=>{p(""),s(null)};(0,n.useEffect)(()=>{S()},[r]);let N={};return t.options.map(e=>N[e.value]=e.count),(0,i.jsx)("div",{className:m.facetSearchBoxContainer,children:(0,i.jsx)(f.A,{disablePortal:!0,classes:{root:m.facetSearchInput,listbox:m.facetSearchListBox,option:m.facetSearchListBoxOption,noOptions:m.facetSearchListBoxNoOptions},options:Object.keys(N),renderOption:(e,t)=>(0,i.jsx)("li",{...e,children:(0,i.jsx)(c.A,{value:t})}),noOptionsText:x(d.A.NO_FACETS_FOUND),renderInput:e=>(0,i.jsx)("div",{className:m.facetSearchInputContainer,ref:e.InputProps.ref,children:(0,i.jsx)(b.A,{ref:e.InputProps.ref,inputProps:e.inputProps,placeholder:"Search ".concat(_(t.key)),disableUnderline:!0,fullWidth:!0,endAdornment:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{className:g(m.Clear,{[m.showClear]:""!==u}),onClick:S,children:(0,i.jsx)(C.A,{fontSize:"inherit"})}),(0,i.jsx)(T.A,{className:m.searchIcon})]})})}),inputValue:u,onInputChange:(e,t)=>{p(t)},value:l,onChange:(e,i)=>{s(i),!i||a.includes(i)||r(t.key,i,!1,"search box")}})})};var _=a(670114),S=a(421289),N=a(197710);let I=(0,l.makeStyles)()(e=>({icon:{display:"inline-flex",fontSize:e.typography.pxToRem(28),marginLeft:e.spacing(2)}})),R=e=>{let{value:t}=e,{classes:a}=I(),n=t===N.u2.SameDay?(0,i.jsx)(S.A,{color:"secondary",fontSize:"inherit"}):(0,i.jsx)(_.A,{color:"secondary"});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{id:t.toUpperCase().replace(" ","_"),defaultMessage:t}),(0,i.jsx)("span",{className:a.icon,children:n})]})},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:t,showMore:a,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:a,options:i}=e;return t.prefix&&(i[0]=i[0].replace(t.prefix,"")),a===t.key})||{options:[]}).options,[C,E]=(0,n.useState)(!1),_=a||C?t.options:t.options.slice(0,t.numToDisplay||6);C&&_.length===t.numToDisplay&&E(!1);let S=C?"show less":"show more",N="facet_shipping"===t.key,I=(e,a,i,n)=>{l?l({key:t.key,options:t.prefix?["".concat(t.prefix).concat(a)]:[a]},i):b.handleSelectedFacetChange({key:t.key,options:[a],action:i?h.FacetChangeAction.Remove:h.FacetChangeAction.Add,multiSelect:t.multiSelect||!1,prefix:t.prefix});let r=(0,m.g)({action:"".concat(i?"remove":"add"," filter"),component:"left rail",element_type:n,element_text:a,filter_name:a,filter_category:e});(0,g.BI)({payload:r})},P=T.map(e=>e.split("|")[0]),L=l?P.includes("".concat(t.key)):T.length>0,O=!t.isCollapsed||L;return(0,i.jsx)("div",{className:y.root,children:(0,i.jsxs)(x.A,{defaultCollapse:O,facetKey:t.key,isSubstanceFacets:!!l,children:[t.key in M&&(0,i.jsx)(j,{facet:t,selectedOptions:T,handleFacetChange:I}),(0,i.jsxs)("div",{className:y.collapseInner,children:[_.map(e=>{let{value:a}=e,n=T.indexOf(a)>=0||T.indexOf("".concat(t.key,"|").concat(a))>=0||T.indexOf("".concat(t.key,"|").concat(t.prefix).concat(a))>=0;return(0,i.jsx)("div",{children:(0,i.jsx)(s.A,{"aria-label":a,"data-testid":"srp-facet-".concat(a),value:a,checked:n,classes:{root:y.checkboxRoot},formControlClasses:{label:y.formControlLabel},onChange:()=>I(t.key,a,n,"checkbox"),label:(0,i.jsx)("span",{className:y.facetLabel,children:N?(0,i.jsx)(R,{value:e.value}):(0,i.jsx)(c.A,{value:e.value})})})},a)}),(t.options.length>_.length||C)&&(0,i.jsx)(o.A,{onClick:()=>{E(!C),(0,m.y)(S,t.key,S)},"aria-expanded":C,"aria-label":S,className:y.showMore,id:C?"facet-group-".concat(t.key,"-show-less"):"facet-group-".concat(t.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})]})})]})]})},t.key)};var L=a(971538),O=a(245756);let B=()=>{let e=(0,y.A)();return(0,i.jsx)("div",{children:[,,,].fill({}).map((t,a)=>(0,i.jsxs)(O.A,{mb:6,children:[(0,i.jsx)(O.A,{mb:4,children:(0,i.jsx)(L.A,{light:!0})}),(0,i.jsx)(O.A,{height:22,width:.75,borderRadius:1,bgcolor:e.palette.grey["50"],mb:4}),[,,,,,].fill({}).map((t,a)=>(0,i.jsxs)(O.A,{display:"flex",alignItems:"center",pr:4,mb:4,children:[(0,i.jsx)(O.A,{height:24,width:24,borderRadius:1,bgcolor:e.palette.grey["50"],mr:4}),(0,i.jsx)(O.A,{flex:1,height:20,width:20,borderRadius:1,bgcolor:e.palette.grey["50"]})]},a))]},a))})},w=e=>{let{loading:t,error:a,facets:r,showMore:l,substanceFacetChange:o,selectedSubstanceFacetOptions:s}=e;return t?(0,i.jsx)(B,{}):a||!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:o,selectedSubstanceFacetOptions:s},e.key)},e.key))})}},428907:(e,t,a)=>{a.d(t,{A:()=>u,h:()=>p});var i=a(637876),n=a(211148),r=a(852413),l=a(197710),o=a(757477),s=a(134415),d=a(812197),c=a(677660),u=function(e){return e.NAME="NAME",e.DESCRIPTION="DESCRIPTION",e}({});let p=e=>{let{product:t,focus:a,label:u,onProductLinkClick:p,productNameClass:m,productDescriptionClass:g,productLinkType:h,productName:x,productDescription:A}=e,y="isBBE"in t&&t.isBBE?c.Mh.Buildingblocks:void 0;return(0,i.jsx)(i.Fragment,{children:t.brand.key&&t.productNumber?(0,i.jsx)(r.N,{...n.aR.index(t.brand.key,t.productKey,{catalog:(0,l.vN)(null!=y?y:a)}),passHref:!0,children:(0,i.jsx)(s.A,{"data-testid":"".concat(h,"-pdp-link-").concat(t.productNumber,"-").concat(t.brand.key),id:"".concat(h,"-pdp-link-").concat(t.productNumber,"-").concat(t.brand.key),className:m,"aria-label":"".concat(h,"-pdp-link-").concat(t.productNumber,"-").concat(t.brand.key),onClick:()=>null==p?void 0:p(),children:"DESCRIPTION"===h?(0,i.jsxs)(d.A,{variant:"body2",children:[x&&m&&(0,i.jsx)(o.A,{value:x+", ",className:m}),(0,i.jsx)(o.A,{value:A,className:g})]}):u})}):"DESCRIPTION"===h?(0,i.jsx)(o.A,{value:t.description}):u})}},445249:(e,t,a)=>{a.d(t,{A:()=>C,Z:()=>T});var i=a(637876),n=a(14232),r=a(918847),l=a.n(r),o=a(79143),s=a(599220),d=a(197710),c=a(126886),u=a(888468),p=a(166791);let m=l()(()=>Promise.all([a.e(9),a.e(6369)]).then(a.bind(a,66369)),{loadableGenerated:{webpack:()=>[66369]},loadableGenerated:{webpack:()=>[66369]}}),g=l()(()=>Promise.all([a.e(9),a.e(3949)]).then(a.bind(a,3949)),{loadableGenerated:{webpack:()=>[3949]},loadableGenerated:{webpack:()=>[3949]}}),h=l()(()=>a.e(432).then(a.bind(a,40432)),{loadableGenerated:{webpack:()=>[40432]},loadableGenerated:{webpack:()=>[40432]}}),x=l()(()=>a.e(7368).then(a.bind(a,697368)),{loadableGenerated:{webpack:()=>[697368]},loadableGenerated:{webpack:()=>[697368]}}),A=l()(()=>a.e(3193).then(a.bind(a,453193)),{loadableGenerated:{webpack:()=>[453193]},loadableGenerated:{webpack:()=>[453193]}}),y=l()(()=>a.e(3738).then(a.bind(a,443738)),{loadableGenerated:{webpack:()=>[443738]},loadableGenerated:{webpack:()=>[443738]}}),v=l()(()=>a.e(8879).then(a.bind(a,488879)),{loadableGenerated:{webpack:()=>[488879]},loadableGenerated:{webpack:()=>[488879]}}),f=l()(()=>a.e(8379).then(a.bind(a,548379)),{loadableGenerated:{webpack:()=>[548379]},loadableGenerated:{webpack:()=>[548379]}}),b=(0,s.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(),[t]=(0,u.useSearchQuery)(),[a,r]=(0,n.useState)(0),l=null;switch(t.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:a,setView:r});break;case d.Xc.StructureSearch:l=(0,i.jsx)(v,{view:a,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)(o.A,{maxWidth:"lg",classes:{root:e.resultsContainer},children:(0,i.jsxs)("div",{children:[" ",l]})}),(0,i.jsx)(p.A,{})]})}},457717:(e,t,a)=>{a.d(t,{A:()=>i.Ay});var i=a(491721)},458851:(e,t,a)=>{a.d(t,{A:()=>i.A});var i=a(232609)},465264:(e,t,a)=>{a.d(t,{A:()=>u});var i=a(637876);a(14232);var n=a(599220),r=a(607645),l=a(554753),o=a(308733),s=a(963752),d=a(608288);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:t,brandKey:a,productNumber:n,productMessage:u,className:p}=e,{classes:m,cx:g}=c(),h=(0,s.mE)(),x=(0,d.ds)(t),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(a,"-").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)(o.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(a,"-").concat(n))},children:e=>(0,i.jsx)("span",{children:e})});default:return(0,i.jsx)(o.A,{...l.A.PRICING_AND_AVAILABILITY_UNAVAILABLE})}})(u)})}},471662:(e,t,a)=>{a.d(t,{A:()=>W});var i=a(637876),n=a(14232),r=a(336258),l=a(599220),o=a(582440),s=a.n(o),d=a(55011),c=a(812197),u=a(392189),p=a(823575),m=a(245496),g=a(977328),h=a.n(g),x=a(671541),A=a(134415),y=a(236503),v=a(505411),f=a(635877),b=a(211148),T=a(852413),C=a(757477),E=a(930),j=a(308733),_=a(554753),S=a(780491),N=a(888468),I=a(365824),R=a(197710),k=a(650524);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 t,a,r,l,o;let{product:s,testId:d,preloadCardImages:u=!1,className:p,mainProduct:m,index:g,type:P}=e,{classes:L,cx:O}=M(),B=(0,b.rd)(),[w]=(0,N.useSearchQuery)(),F=(0,f.A)(),D=(0,x.A)(F.breakpoints.up("md")),{addCompareProduct:W,removeCompareProduct:U,sendToDiscontinuedProductCompareDetail:H,compareProducts:z}=(0,S.Zn)(),G=(null==B?void 0:null===(t=B.query)||void 0===t?void 0:t.catalog)||"",V=(0,R.vN)(G),Y=(0,n.useCallback)((e,t)=>!!z.find(a=>a.productKey===e&&a.brandKey===t&&a.catalogType===V),[z]),q=(0,n.useMemo)(()=>{var e;return Y(null!==(e=null==m?void 0:m.productKey)&&void 0!==e?e:"",null==m?void 0:m.brandKey)},[Y,m]),K=!(null==s?void 0:null===(a=s.productNumber)||void 0===a?void 0:a.startsWith("CB_")),$="product-card-".concat(null==s?void 0:s.productNumber).concat(null==s?void 0:null===(r=s.brand)||void 0===r?void 0:r.key,"-").concat(d),Q=B.asPath.includes("/product"),X=(0,k.Gd)(),Z="".concat(P," - ").concat(X),J=q&&z.length>1&&z.length<=4;return(0,n.useEffect)(()=>{if(Q&&!q){var e,t;W({productKey:null!==(e=null==m?void 0:m.productKey)&&void 0!==e?e:"",brandKey:null!==(t=null==m?void 0:m.brandKey)&&void 0!==t?t:"",images:null==m?void 0:m.images,catalogType:V})}},[q]),(0,i.jsxs)("div",{className:O(p,"promotions-slider-div"),children:[u&&(0,i.jsx)(h(),{children:(0,i.jsx)("link",{rel:"preload",href:s.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(T.N,{...b.aR.index(null==s?void 0:s.brand.key,null==s?void 0:s.productNumber,{catalog:G}),children:(0,i.jsx)("a",{"data-testid":$,id:$,role:"link",tabIndex:0,onKeyDown:()=>(0,E.e)({product:s,indexPosition:g,creativeSlot:Z,carouselType:P,selectType:"select_item"}),onClick:()=>{(0,E.e)({product:s,indexPosition:g,creativeSlot:Z,carouselType:P,selectType:"select_item"})},children:(0,i.jsxs)("div",{className:L.mainContent,children:[(0,i.jsx)("div",{className:L.mainContentImage,children:(0,i.jsx)("img",{className:L.image,src:s.images[0].mediumUrl,alt:s.images[0].altText||s.description||s.name,width:"112",height:"50"})}),(0,i.jsxs)("div",{className:L.mainContentText,children:[(0,i.jsx)(c.A,{className:L.productBrand,children:s.brand.name}),K&&(0,i.jsx)(c.A,{className:L.productNumber,children:null==s?void 0:s.productNumber}),(0,i.jsx)(c.A,{className:L.productName,children:(0,i.jsx)(C.A,{value:s.name})}),(0,i.jsx)(c.A,{className:L.productDescription,children:(0,i.jsx)(C.A,{value:s.description})})]})]})})}),(null==m?void 0:m.showViewDetailsLink)||Q?(0,i.jsx)(T.N,{...b.aR.index(null==s?void 0:null===(l=s.brand)||void 0===l?void 0:l.key,null==s?void 0:s.productNumber),children:(0,i.jsx)(A.A,{className:L.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:L.checkbox,checked:Y(null==s?void 0:s.productNumber,null==s?void 0:null===(o=s.brand)||void 0===o?void 0:o.key),onChange:e=>{let{checked:t}=e.target,a={productKey:null==s?void 0:s.productNumber,brandKey:s.brand.key,images:s.images,catalogType:V};t?W(a):U(a)},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:L.compareButton,onClick:()=>{var e;H(w,B,(null==s?void 0:s.productNumber)||"",(null==s?void 0:null===(e=s.brand)||void 0===e?void 0:e.key)||"")},disabled:!J,children:[(0,i.jsx)(j.A,{id:"COMPARE_SELECTED",defaultMessage:"Compare Selected"}),z.length>0&&" (".concat(z.length,")")]})]}):null]})};var L=a(340352),O=a(968215),B=a(840002),w=a(491721);let F=(0,l.makeStyles)({name:"ReplacementProductsCarousel",uniqId:"RepProdCarousel"})((e,t,a)=>({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(a.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:t,creativeSlot:a,carouselType:n,pageType:r,pageTypeDetails:l}=e,{classes:o,cx:s}=F();return{renderCenterLeftControls:e=>{let c=0===e.currentSlide;return(0,i.jsx)(d.A,{className:s(o.navBtn,o.navBtnLarge,o.navBtnLeft),disabled:c,onClick:()=>(0,O.t)(e,t,"prev",a,n,r,l),"aria-label":"previous",children:(0,i.jsx)(p.A,{className:s(o.icon,{[o.iconDisabled]:c})})})},renderCenterRightControls:e=>{let c=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,O.t)(e,t,"next",a,n,r,l),"aria-label":"next",children:(0,i.jsx)(m.A,{className:s(o.icon,{[o.iconDisabled]:!!e.slidesToScroll&&c})})})},renderBottomCenterControls:e=>{let u=0===e.currentSlide,g=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,O.t)(e,t,"prev",a,n,r,l),"aria-label":"previous",className:s(o.navBtn,o.navBtnSmall),children:(0,i.jsx)(p.A,{className:s(o.icon,{[o.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,O.t)(e,t,"next",a,n,r,l),"aria-label":"next",className:s(o.navBtn,o.navBtnSmall),children:(0,i.jsx)(m.A,{className:s(o.icon,{[o.iconDisabled]:!!e.slidesToScroll&&g})})})]})}}},W=e=>{let{type:t,products:a,withoutControls:l,slidesToShow:o,condensed:d,preloadCardImages:c,mainProduct:p}=e,{classes:m,cx:g}=F(),h=(0,L.Ay)(),x=(0,k.Gd)(),A="".concat(t," - ").concat(x),y=D({products:a,creativeSlot:A,carouselType:t,pageType:x}),v=t===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:w.Pe});return a&&(null==a?void 0:a.length)?((null==j?void 0:j.isIntersecting)&&!T&&((0,E.W)({creativeSlot:A,carouselType:t,products:a}),C(!0)),(0,i.jsx)("div",{"data-testid":t,id:t,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)(s(),{slidesToScroll:o||f,slidesToShow:o||f,disableEdgeSwiping:!0,withoutControls:l,...y,children:a.map((e,a)=>(0,i.jsx)(P,{mainProduct:p,product:e,testId:t,preloadCardImages:c,className:m.card,index:a,type:t},a))})})})})):null}},475352:(e,t,a)=>{a.d(t,{A:()=>k});var i=a(637876),n=a(812197),r=a(236503),l=a(515319),o=a(607645),s=a(505411),d=a(599220),c=a(915743),u=a(486024),p=a(916652),m=a(303954),g=a(428888);function h(){let e=(0,g._)(["\n query Dealers(\n $countryCode: String!\n $stateCode: String\n $searchTerm: String\n ) {\n getDealers(\n countryCode: $countryCode\n stateCode: $stateCode\n searchTerm: $searchTerm\n ) {\n ...DealerData\n }\n }\n\n fragment DealerData on Dealer {\n id\n organizationName\n street1\n street3\n street4\n street5\n city\n phone\n email\n countryCode\n stateCode\n firstName\n lastName\n buildingRoom\n attentionTo\n department\n postalCode\n approverDealerLogonid\n approvalNeeded\n soldToPartner\n shipToPartner\n billToPartner\n payerPartner\n salesOrg\n poNumber\n dealerType\n productGroup\n isPreferredDealer\n availableProducts\n }\n"]);return h=function(){return e},e}let x=(0,a(182897).J1)(h());var A=a(287165),y=a(554753),v=a(282250),f=a(11788),b=a(317685),T=a(14232),C=a(308733),E=a(877742),j=a(816703),_=a(733159);let S=(0,d.makeStyles)()(e=>({root:{minWidth:"8vw",backgroundColor:e.palette.background.default},closeButton:{height:e.spacing(10),width:e.spacing(10),margin:e.spacing(2)},footer:{width:"100%",height:40,paddingLeft:e.spacing(5),position:"absolute",bottom:0,left:0,right:0,zIndex:1,margin:e.spacing(4,0,4)},selectButton:{width:"100%",marginRight:e.spacing(5)},listContainer:{borderBottom:"1px solid rgba(224, 224, 224, 1)",overflow:"hidden",paddingTop:e.spacing(2),paddingBottom:e.spacing(2),marginBottom:80,marginLeft:20,marginRight:20,marginTop:16,minHeight:258},inputContainer:{[e.breakpoints.up("sm")]:{marginLeft:32,marginRight:32},marginLeft:16,marginRight:16,marginTop:"24px"},input:{width:"100%"},disclaimerContainer:{width:"auto",whiteSpace:"pre-line"},checkbox:{fontSize:e.spacing(6)},checkboxWrapper:{display:"flex",flexDirection:"row",alignItems:"center"},searchIconContainer:{paddingRight:14}})),N=e=>{let{isSettingDealer:t}=e;return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(C.A,{...y.A.SET_PREFERRED_DEALER}):(0,i.jsx)(C.A,{...y.A.SELECT_VIEW_PRICING})})},I=e=>{let{dealerCount:t}=e,{formatMessage:a}=(0,E.A)(),n=a(y.A.SEE_ALL_BUYING_OPTIONS);return t?(0,i.jsx)(i.Fragment,{children:"".concat(n," (").concat(t,")")}):(0,i.jsx)(i.Fragment,{children:"".concat(n)})},R=(e,t)=>"SET_SELECTED_DEALER_ID"===t.type?t.payload:e,k=e=>{var t,a;let{open:d,onClose:g,values:h,materialPricing:k,setFieldValue:M,setIsModalOpen:P,onDealerSelect:L,onDealerSelectCallback:O,onSearch:B,isSavingDealerPreference:w=!0,disabled:F,dealers:D,btnTextOverride:W}=e,{classes:U,cx:H}=S(),z=(0,E.A)(),[G,V]=(0,T.useReducer)(R,null),[Y,q]=(0,T.useState)(null!==(a=null==D?void 0:null===(t=D[0])||void 0===t?void 0:t.organizationName)&&void 0!==a?a:void 0),{currentUserState:K,userId:$}=(0,f.iZ)(),{userSession:Q}=(0,b.j)(),[X,Z]=(0,T.useState)(""),[J,ee]=(0,T.useState)(X),[et,{loading:ea}]=(0,A.Nj)({refetchQueries:[{query:m.I},{query:x,context:{userSession:Q},variables:{countryCode:null==Q?void 0:Q.country,stateCode:String(K)}}],awaitRefetchQueries:!0}),ei=async e=>{try{if(!$)throw Error("userId is required to update dealer");if(!e)throw Error("dealerId is required to update dealer");return await et({variables:{userId:$,data:{dealerId:e}}}),O&&O(),g()}catch(e){return console.error((0,v.Mw)(e).displayableError),g()}};return(0,j.A)(()=>{B&&X&&B(X),ee(X)},500,[X]),(0,i.jsx)(u.A,{open:d,onClose:g,renderTitle:()=>(0,i.jsx)(n.A,{variant:"h2",children:w?(0,i.jsx)(C.A,{...y.A.SELECT_PREFERRED_DEALER}):(0,i.jsx)(I,{dealerCount:null==D?void 0:D.length})}),size:u.I.Large,children:(0,i.jsxs)(i.Fragment,{children:["JP"===Q.country&&(0,i.jsx)(r.A,{container:!0,className:H(U.inputContainer,U.disclaimerContainer),children:w?(0,i.jsx)(C.A,{...y.A.DEALER_SELECT_MODAL_DISCLAIMER}):(0,i.jsx)(C.A,{...y.A.DEALER_UPDATE_PRICING_DISCLAIMER})}),(0,i.jsx)(r.A,{className:U.inputContainer,children:(0,i.jsx)(c.A,{className:U.input,onChange:e=>Z(e.target.value),placeholder:z.formatMessage(y.A.ENTER_DEALER_NAME_OR_LOCATION),size:"small",value:X,endAdornment:(0,i.jsx)(l.A,{position:"end",className:U.searchIconContainer,children:(0,i.jsx)(p.A,{color:"primary"})})})}),(0,i.jsx)(o.A,{className:U.listContainer,children:(0,i.jsx)(_.A,{selectDealer:(e,t)=>{V({type:"SET_SELECTED_DEALER_ID",payload:e!==G?e:null}),q(t!==Y?t:void 0)},selectedDealerId:G,searchTerm:J})}),(0,i.jsxs)(r.A,{container:!0,className:U.footer,direction:"row",id:"footer",justifyContent:"flex-end",alignItems:"center",wrap:"nowrap",children:[(0,i.jsx)(r.A,{item:!0,sm:4,md:4,children:(0,i.jsx)(r.A,{container:!0,justifyContent:"center",children:(0,i.jsx)(s.A,{size:"large",color:"primary",variant:"outlined",className:U.selectButton,onClick:g,"data-testid":"select-dealer-cancel",id:"select-dealer-submit",children:(0,i.jsx)(C.A,{...y.A.CANCEL})})})}),(0,i.jsx)(r.A,{item:!0,sm:4,md:4,children:(0,i.jsx)(r.A,{container:!0,justifyContent:"center",children:(0,i.jsx)(s.A,{size:"large",color:"primary",variant:"contained",className:U.selectButton,onClick:()=>L&&h&&k&&M&&P?L(G,h,k,M,P,Y):ei(G),disabled:F||ea||!G,"data-testid":"select-dealer-submit",id:"select-dealer-submit",children:W?(0,i.jsx)(C.A,{...W}):(0,i.jsx)(N,{isSettingDealer:w})})})})]})]})})}},476764:(e,t,a)=>{a.d(t,{Bw:()=>u,ht:()=>c});var i=a(428888);a(637876);var n=a(182897);a(14232);var r=a(154431),l=a(678248);function o(){let e=(0,i._)(["\n query SpecificationSheetUrl($input: SpecSheetInput!) {\n getSpecificationSheet(input: $input) {\n url\n text\n documentType\n materialId\n }\n}\n "]);return o=function(){return e},e}let s={},d=(0,n.J1)(o());function c(e){let t={...s,...e};return r.IT(d,t)}function u(e){let t={...s,...e};return l._(d,t)}},485366:(e,t,a)=>{a.d(t,{Ay:()=>R,j5:()=>I});var i=a(637876),n=a(14232),r=a(308733),l=a(599220),o=a(134415),s=a(236503),d=a(505411),c=a(211148),u=a(554753),p=a(197710),m=a(852413),g=a(646236),h=a(671541),x=a(812197),A=a(635877),y=a(49691),v=a(259131),f=a(486024),b=a(266896),T=a(354034),C=a(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:t=null,catalogType:a,open:n,setModalOpen:l,substance:s,substanceName:d}=e,{classes:j}=E(),_=(0,A.A)(),S=(0,c.rd)(),N=(0,p.h2)({focus:S.query.focus}),I=(0,h.A)(_.breakpoints.up("md")),{products:R,images:k,name:M,synonyms:P,casNumber:L,molecularWeight:O,linearFormula:B,aliases:w,id:F}=s,D=null==w?void 0:w.find(e=>e.key===p.VT.EcNumber),W=null==w?void 0:w.find(e=>e.key.includes(p.VT.BeilsteinRegistryNumber)),U=null!=t?t:(0,p.vN)(null!=a?a:N.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)(o.A,{children:e})}):(0,i.jsx)(m.N,{...c.SL.index(F,U),passHref:!0,children:(0,i.jsx)(o.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,O?(0,i.jsx)(y.Ay,{message:u.A.MOLECULAR_WEIGHT,searchValue:O,classes:j.breakAll}):null,L?(0,i.jsx)(y.Ay,{message:u.A.CAS_NO,searchValue:L,classes:j.link,searchFocusType:(0,p.UQ)(N.focus),productSearchType:p.mI.CasNumber}):null,D?(0,i.jsx)(y.Ay,{message:u.A.EC_NO,searchValue:D.value,searchFocusType:null!=t?t:(0,p.UQ)(N.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(N.focus),children:I?(0,i.jsx)(v.Ay,{products:R,displayBadgesOnProduct:!0,focus:null!=t?t:(0,p.UQ)(N.focus),displayViewLink:!1}):(0,i.jsx)("div",{className:j.mobileProductTable,children:(0,i.jsx)(T.A,{products:R,displayBadgesOnProduct:!0,focus:null!=t?t:(0,p.UQ)(N.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 _=a(757477),S=a(796707);let N=(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 t=e[0];return 1===e.length?t.similarity:e.slice(1,e.length).every(e=>e.similarity===t.similarity)?t.similarity:null},R=e=>{let{substance:t,catalogOverride:a=null,colorIndex:l=0}=e,{classes:h}=N(),x=t.products?[...t.products]:[t],{casNumber:A,molecularWeight:v,linearFormula:f,name:b,id:T,images:C}={...t,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)}),L=null!=a?a:(0,p.vN)(P.catalogType||P.focus),O=()=>{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:L}),passHref:!0,children:(0,i.jsx)(o.A,{children:e})}):(0,i.jsx)(m.N,{...c.SL.index(T,L),passHref:!0,children:(0,i.jsx)(o.A,{children:e})})},B=P.focus===p.Xc.StructureSearch?I(x):null;return(0,i.jsxs)(s.A,{container:!0,alignItems:"flex-start","data-testid":"srp-substance-group-grid",id:"srp-substance-group-grid",className:l%2==0?h.cardColor:"",children:[(0,i.jsx)(s.A,{item:!0,xs:4,sm:12,className:h.imgContainer,children:(0,i.jsxs)("div",{className:h.imgButtonGroup,children:[(0,i.jsx)("div",{className:h.imgWrapper,children:(0,i.jsx)(g.A,{image: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)(s.A,{xs:8,sm:12,container:!0,className:h.substanceGridWrapper,children:[(0,i.jsx)("div",{className:h.substanceNameWrapper,children:O()}),(0,i.jsx)(s.A,{container:!0,className:h.productDetails,children:(0,i.jsxs)(s.A,{container:!0,item:!0,direction:"column",sm:12,spacing:1,children:[A?(0,i.jsx)(s.A,{item:!0,children:(0,i.jsxs)(S.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)(s.A,{item:!0,children:(0,i.jsxs)(S.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)(s.A,{item:!0,children:(0,i.jsxs)(S.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)(s.A,{container:!0,item:!0,sm:12,className:h.similarity,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{item:!0,children:(0,i.jsx)("span",{className:h.percentage,children:"".concat(B,"% ")})}),(0,i.jsx)(s.A,{item:!0,children:(0,i.jsx)(r.A,{...u.A.SIMILARITY})})]})}):null]}),(0,i.jsx)(j,{catalogOverride:L,catalogType:L,open:E,setModalOpen:R,substance:t,substanceName:O()})]})}},491721:(e,t,a)=>{a.d(t,{$Y:()=>I,Ay:()=>R,Pe:()=>j,zO:()=>N});var i=a(637876),n=a(14232),r=a(308733),l=a(599220),o=a(635877),s=a(336258),d=a(582440),c=a.n(d),u=a(812197),p=a(55011),m=a(671541),g=a(392189),h=a(823575),x=a(245496),A=a(185581),y=a(930),v=a(650524),f=a(340352),b=a(130510),T=a(840002),C=a(968215),E=a(971605);let j=.33,_=(0,l.makeStyles)()((e,t,a)=>({titleHeader:{display:"flex",justifyContent:"space-between"},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(a.productHeroTile," button")]:{"@media (min-width: 900px) and (max-width: 1300px)":{whiteSpace:"normal"}}},productHeroTile:{[e.breakpoints.up("sm")]:{padding:e.spacing(0,4)}}})),S=(0,l.makeStyles)()((e,t,a)=>({contentCondensed:{padding:0},title:{marginBottom:e.spacing(8),[".".concat(a.contentCondensed," &")]:{marginBottom:e.spacing(4)}},productHeroCardTitle:{margin:"".concat(e.spacing(0,0,e.typography.pxToRem(40),0)," !important"),fontSize:"".concat(e.typography.pxToRem(18)," !important"),[e.breakpoints.up("sm")]:{margin:"".concat(e.spacing(0,0,e.typography.pxToRem(24),3)," !important")}}})),N=e=>{let{title:t,isHero:a,type:n}=e,{classes:l,cx:o}=S(),s=t||(T.G[n]?(0,i.jsx)(r.A,{...T.G[n]}):null==n?void 0:n.replace(/[-_]/g," "));return t&&"string"!=typeof t?(0,i.jsx)(i.Fragment,{children:s}):(0,i.jsx)(u.A,{variant:"h2",className:o(l.title,a&&l.productHeroCardTitle),children:s})},I=e=>{let{productHeroCard:t,products:a,creativeSlot:n,carouselType:r,pageType:l,pageTypeDetails:o}=e,{classes:s,cx:d}=_();return{renderCenterLeftControls:e=>{let c=0===e.currentSlide;return(0,i.jsx)(i.Fragment,{children:!t&&(0,i.jsx)(p.A,{className:d(s.navBtn,s.navBtnLarge,s.navBtnLeft),disabled:c,onClick:()=>(0,C.t)(e,a,"prev",n,r,l,o),"aria-label":"previous",children:(0,i.jsx)(h.A,{className:d(s.icon,{[s.iconDisabled]:c})})})})},renderCenterRightControls:e=>{let c=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,C.t)(e,a,"next",n,r,l,o),"aria-label":"next",children:(0,i.jsx)(x.A,{className:d(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&c})})})})},renderBottomCenterControls:e=>{let c=0===e.currentSlide,m=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,C.t)(e,a,"prev",n,r,l,o),"aria-label":"previous",className:d(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(h.A,{className:d(s.icon,{[s.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,a,"next",n,r,l,o),"aria-label":"next",className:d(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(x.A,{className:d(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&m})})})]})}}},R=e=>{let{type:t,products:a,withoutControls:r,slidesToShow:l,condensed:d,preloadCardImages:u,title:p,headerRight:h,additionalInfoRenderer:x,cardFooterVariant:C,onFooterAction:S,showPdpRedesignLevelTwo:R,productHeroCard:k=!1,isProductRecommendation:M=!1,hideProductImg:P=!1,displayDiscount:L,analyticsItemListingId:O,analyticsItemListingName:B,gaPricingOverrides:w}=e,{classes:F,cx:D}=_(),W=(0,f.Ay)(),U=(0,v.Gd)(),H="".concat(t," - ").concat(U),z=I({productHeroCard:k,products:a,creativeSlot:H,carouselType:t,pageType:O,pageTypeDetails:B}),G=t===T.j.CartRecommendedProducts,[V,Y]=(0,n.useState)(null),q=(0,o.A)(),K=!0===(0,m.A)(q.breakpoints.up("md")),$=(0,n.useRef)(null),[Q,X]=(0,n.useState)(!1),Z=(0,s.B)($,{threshold:j}),J=W(R?{xs:1,sm:2,md:4,lg:6}:{xs:1,sm:2,md:3,lg:4}),ee=k&&K?2:l||J;if(!a||(null==a?void 0:a.length)===0)return null;if((null==Z?void 0:Z.isIntersecting)&&!Q){let e=a.slice(0,ee);(0,y.W)({creativeSlot:H,carouselType:t,promoItemId:O,promoItemName:B,products:e}),X(!0)}let et=(0,E.BI)(t,O,B);return(0,i.jsxs)("div",{"data-testid":t,id:t,className:D({[F.cartRecommended]:G}),ref:$,"data-creative_slot":H,"data-event":"ga4-ecomm-promotion",children:[(0,i.jsx)(g.A,{maxWidth:"lg",className:D({[F.withoutControls]:r}),children:(0,i.jsxs)("div",{className:D(F.content,{[F.contentCondensed]:d},k&&F.productHeroCardContent,M&&F.contentInTab),children:[(0,i.jsxs)("div",{className:F.titleHeader,children:[(0,i.jsx)(N,{title:p,isHero:k,type:t}),h]}),(0,i.jsx)(c(),{slidesToScroll:ee,slidesToShow:ee,disableEdgeSwiping:!0,withoutControls:r,...z,children:a.map((e,a)=>(0,i.jsx)(A.A,{index:a,product:e,testId:t,preloadCardImages:u,className:D(F.card,k&&F.productHeroTile),type:t,hideProductImg:P,displayDiscount:L,additionalInfoRenderer:x,cardFooterVariant:C,onFooterAction:S||(e=>Y(e)),analyticsItemListingId:O,analyticsItemListingName:B,dataAttributes:{"data-item_brand":e.brand.key||e.brand.erpKey,"data-item_id":e.productNumber,"data-item_list_id":et.list_id,"data-item-list_name":et.list_name,"data-gaproductcode":e.gaProductCode||""}},a))})]})}),V&&(0,i.jsx)(b.A,{...V,showAddToList:!0,open:!0,image:V.images[0],onClose:()=>Y(null),gaType:v.Yo[t],erpType:(null==V?void 0:V.erp_type)||[],gaPricingOverrides:w})]})}},495349:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(637876);a(14232);var n=a(308733),r=a(134415),l=a(211148),o=a(554753),s=a(852413);let d=e=>{let{msgKey:t}=e,a=(0,l.rd)();return"SIGN_IN_FOR_PRICING"===t?(0,i.jsx)(s.N,{href:"".concat(l.VV.index(),"?redirect=").concat(encodeURIComponent(a.asPath||l.xn.index())),passHref:!0,children:(0,i.jsx)(r.A,{children:(0,i.jsx)(n.A,{...o.D[t]})})}):(0,i.jsx)(n.A,{...o.D[t]})}},503933:(e,t,a)=>{a.d(t,{A:()=>p});var i=a(637876);a(14232);var n=a(877742),r=a(308733),l=a(713261),o=a(505411),s=a(635247),d=a(266896),c=a(554753);let u=(0,a(599220).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:t,handleUpdatePage:a,currentPage:p,numPages:m=0,customCounterStyling:g,customButtonStyling:h,pageNumberElement:x}=e,{classes:A,cx:y}=u(),v=(0,n.A)(),f=e=>{a(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)(o.A,{classes:{root:y(A.buttonRoot,h),outlined:A.buttonOutlined,disabled:A.buttonDisabled},"aria-label":v.formatMessage(c.A.PAGINATION_LABEL_PREVIOUS),disabled:b||t,onClick:()=>f(p-1),children:(0,i.jsx)(s.A,{className:y(A.buttonIcon,{[A.buttonIconDisabled]:b})})}),(0,i.jsx)(o.A,{className:y(A.mobilePageCountLabel,g),children:C}),(0,i.jsx)(o.A,{classes:{root:y(A.buttonRoot,h),outlined:A.buttonOutlined,disabled:A.buttonDisabled},"aria-label":v.formatMessage(c.A.PAGINATION_LABEL_NEXT),disabled:T||t,onClick:()=>f(p+1),children:(0,i.jsx)(d.A,{className:y(A.buttonIcon,{[A.buttonIconDisabled]:T})})})]})]})}},521018:(e,t,a)=>{a.d(t,{A:()=>i.A,O:()=>i.O});var i=a(247233)},522071:(e,t,a)=>{a.d(t,{A:()=>u});var i=a(637876);a(14232);var n=a(812197),r=a(524315),l=a(599220),o=a(308733),s=a(835967),d=a(757477);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:t,loading:a,onSelect:l,selectedChip:u,unavailableChips:p,loadCount:m=6}=e,{classes:g,cx:h}=c();return a?(0,i.jsx)("div",{className:g.loaderContainer,children:Array(m).fill({}).map((e,t)=>(0,i.jsx)("div",{className:g.loader,style:{animationDelay:"".concat(.1*t,"s")}},t))}):(0,i.jsx)("div",{className:g.chipContainer,children:t.map((e,t)=>{var a,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===(a=e.availabilities)||void 0===a?void 0:a.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)(o.A,{id:"INQUIRE",defaultMessage:"Inquire"})}):(0,i.jsx)(n.A,{variant:"body2",children:(0,i.jsx)(s.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(t,"-").concat(null==e?void 0:e.packSize,"-").concat(null==e?void 0:e.value))})})}},538164:(e,t,a)=>{a.d(t,{ot:()=>u});var i=a(428888);a(637876);var n=a(182897);a(14232);var r=a(154431);function l(){let e=(0,i._)(["\n fragment TechnicalDocumentSearchFields on TechnicalDocument {\n title\n text\n url\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n query ContentDocumentSearch($searchTerm: String, $page: Int!, $selectedFacets: [FacetInput!], $contentSearchType: ContentSearchType!, $filterSite: String) {\n getContentDocuments(\n input: {searchTerm: $searchTerm, pagination: {page: $page, perPage: 10}, facets: $selectedFacets, contentSearchType: $contentSearchType, filterSite: $filterSite}\n ) {\n metadata {\n itemCount\n page\n perPage\n numPages\n }\n items {\n ...TechnicalDocumentSearchFields\n }\n facets {\n key\n numToDisplay\n isHidden\n isCollapsed\n multiSelect\n options {\n value\n count\n }\n }\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(l()),c=(0,n.J1)(o(),d);function u(e){let t={...s,...e};return r.IT(c,t)}},549100:(e,t,a)=>{a.d(t,{t1:()=>u});var i=a(428888);a(637876);var n=a(182897);a(14232);var r=a(154431);function l(){let e=(0,i._)(["\n fragment Suggestion on Suggestion {\n label\n brandKey\n productKey\n substanceKey\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n query SearchSuggestions($input: GetSearchSuggestionsInput!) {\n getSearchSuggestions(input: $input) {\n count\n suggestions {\n productName {\n ...Suggestion\n }\n casNumber {\n ...Suggestion\n }\n materialNumber {\n ...Suggestion\n }\n productNumber {\n ...Suggestion\n }\n relatedCategories {\n value\n facetId\n }\n pinyin {\n ...Suggestion\n }\n }\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(l()),c=(0,n.J1)(o(),d);function u(e){let t={...s,...e};return r.IT(c,t)}},552263:(e,t,a)=>{a.d(t,{Ay:()=>T,yU:()=>b});var i=a(637876),n=a(14232),r=a(599220),l=a(134415),o=a(505411),s=a(39069),d=a(852413),c=a(679399),u=a(469485),p=a(264673),m=a(688700),g=a(317685),h=a(608288),x=a(771007);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 t=[...e.links],a=e.getElementsByTagName("b"),i=e.getElementsByTagName("span");return{htmlLinks:t,htmlText:i.length>0?i:a}},f=e=>e.htmlLinks.map(e=>{let t=e.getAttribute("href");return{href:"".concat(t.startsWith("/")?"":"/").concat(t),text:e.textContent.trim()}}).filter(Boolean);var b=function(e){return e.PDP="pdp",e.SRP="srp",e}({});let T=e=>{let{brandKey:t,leftAlign:a,paMessage:r,productNumber:b,gaPricingOverrides:T={},displayType:C}=e;(0,u.L)("PA_MESSAGE");let{classes:E,cx:j}=A(),[_,S]=(0,n.useState)(!1),{userSession:N}=(0,g.j)(),I="pdp"===C,R={htmlLinks:[],htmlText:[]};return _&&(R=v(y(r))),(0,n.useEffect)(()=>{S(!0)},[]),(0,i.jsx)(i.Fragment,{children:_?(0,i.jsx)("div",{className:E.container,id:"pricing-availability-message-".concat(t,"-").concat(b),"data-testid":"pricing-availability-message-".concat(t,"-").concat(b),children:(0,i.jsxs)("div",{className:j(E.paMessageContainer,{[E.leftAlign]:a}),children:[!a||!I&&(0,i.jsx)(s.A,{light:!0}),(e=>{let a=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:a[0].href,passHref:!0,children:(0,i.jsx)(l.A,{className:E.textLink,color:"primary","data-testid":"pa-message-link-".concat(t,"-").concat(b),children:a[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:a.map(e=>(0,i.jsx)(o.A,{"data-testid":"pa-message-button-".concat(t,"-").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 t=(0,h.xS)(N,e.href),a="/lab-water"===e.href?"select and configure system":"contact specialist",i="/lab-water"===e.href?t.as+"?step=1":t.as;(0,c.b8)({event:p.FL.Lab_Water_Configurator_Interaction,action:a,component:m.IP.Body,elementType:m.T.Button,elementText:a,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:t,...T})},children:e.text},e.text))})]}):null})(R)]})}):null})}},555287:(e,t,a)=>{a.d(t,{WL:()=>d});var i=a(428888);a(637876);var n=a(182897);a(14232);var r=a(154431);function l(){let e=(0,i._)(['\n query PreviouslyPurchasedProduct($productNumber: String!) {\n recentOrderItems(\n input: {page: 1, perpage: 1, product: $productNumber, sortcolumn: "orderDate", orderby: "desc"}\n ) {\n count\n orderItems {\n orderId\n orderDate\n product\n }\n }\n}\n ']);return l=function(){return e},e}let o={},s=(0,n.J1)(l());function d(e){let t={...o,...e};return r.IT(s,t)}},573170:(e,t,a)=>{a.d(t,{A:()=>u});var i=a(637876);a(14232);var n=a(599220),r=a(57269),l=a(345490),o=a(928151),s=a(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:t,onClick:a,label:n,children:r,classes:l=[],disabled:o=!1,id:s}=e;return(0,i.jsx)("button",{className:t(...l),type:"button",disabled:o,"aria-label":n,onClick:a,id:s,children:r})},u=e=>{let{curPage:t,numPages:a,clickHandler:n}=e,{classes:u,cx:p}=d(),m=function(e,t){let a,i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(e<1?e=1:e>t&&(e=t),t<=n)a=1,i=t;else{let r=Math.floor(n/2),l=Math.ceil(n/2)-1;e<=r?(a=1,i=n):e+l>=t?(a=t-n+1,i=t):(a=e-r,i=e+l)}return{pages:Array.from(Array(i+1-a).keys()).map(e=>a+e),showNext:e1}}(t,a),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(a),onClick:e=>{e.preventDefault(),n(a)},children:a},a),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 a>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(t-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,a)=>e===t?(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===t,label:"Go to page ".concat(e),onClick:t=>{t.preventDefault(),n(e)},id:"pagination-go-to-page-".concat(a),"data-testid":"pagination-go-to-page-".concat(a),children:e},e)),a-g==1&&A,a-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(t+1)},children:(0,i.jsx)(o.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(a)},children:(0,i.jsx)(s.A,{})},"last")]}):null}},598580:(e,t,a)=>{a.d(t,{A:()=>u});var i=a(637876),n=a(599220),r=a(308733),l=a(554753),o=a(852413),s=a(317685),d=a(211148);let c=(0,n.makeStyles)()(e=>({link:{justifyContent:"left",paddingLeft:e.spacing(1)}})),u=()=>{let{classes:e}=c(),{userSession:t}=(0,s.j)();return(0,i.jsx)(o.N,{...d.mK.index({path:"/life-science/mpartner",language:t.language,country:t.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})})})}},635645:(e,t,a)=>{a.d(t,{A:()=>E});var i=a(637876),n=a(14232),r=a(599220),l=a(812197),o=a(505411),s=a(677660),d=a(166313),c=a(2184),u=a(757477),p=a(308733),m=a(486024),g=a(86367),h=a(11788),x=a(399486),A=a(852413),y=a(211148),v=a(197710),f=a(11631),b=a(384119),T=a(552263);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 t,a,r;let{onClose:E,substanceName:j,productNumber:_,productKey:S,brandKey:N,description:I,materialIds:R,isMarketplace:k=!1,marketplaceSellerId:M,marketplaceOfferId:P,productAttributes:L,erp_type:O,productName:B,displaySellerName:w,pricingData:F,paMessage:D,isPLPBuyNow:W=!1}=e,{classes:U,cx:H}=C(),{getSitePreference:z,isDTAQZuCustomer:G,isMultiCountryUser:V,currentUser:Y,isBlueErpIntegrationEnabled:q}=(0,h.iZ)(),{focus:K="",catalog:$=""}=(0,y.rd)().query||{},Q=z(h.VD.CatalogFilter),{authorized:X}=(0,x.I)(x.N.canAddToCart),Z=k?s.Mh.Marketplace:null,J=q&&O&&(null==O?void 0:O.length)>0,ee=G?z(h.VD.PreferredDealerId):null,[et,ea]=(0,n.useState)(null==F?void 0:F.materialPricing),[ei,{data:en,loading:er,error:el}]=(0,d.Gb)(),[eo,{data:es,loading:ed,error:ec}]=(0,c.Fo)(),eu=ed||er,ep=ec||el,em=async()=>{var e,t;let a={...J&&{erp_type:O},brand:N,catalogType:(0,v.vN)(Z||K||$),checkBuyNow:!0,checkForPb:!0,dealerId:ee,displaySDS:!1,materialIds:R,orgId:Q,productKey:S,productNumber:_,quantity:1};V?await eo({variables:a}):await ei({variables:a});let i=V?null==es?void 0:null===(e=es.getPricingForMultiCountryProducts[0])||void 0===e?void 0:e.materialPricing:null==en?void 0:null===(t=en.getPricingForProduct)||void 0===t?void 0:t.materialPricing;i&&ea(i)};return(0,n.useEffect)(()=>{var e,t;let a=V?null==es?void 0:null===(e=es.getPricingForMultiCountryProducts[0])||void 0===e?void 0:e.materialPricing:(null==en?void 0:null===(t=en.getPricingForProduct)||void 0===t?void 0:t.materialPricing)||(null==F?void 0:F.materialPricing);a?ea(a):D||em()},[ep,eu,V,es,D,F,en]),(0,i.jsx)(m.A,{open:!0,onClose:()=>{E(!1)},size:m.I.Large,renderTitle:()=>(0,i.jsxs)("div",{className:U.header,children:[(0,i.jsx)(l.A,{component:"h2",variant:"h2",className:U.vr2,children:_}),(0,i.jsx)(l.A,{component:"div",className:H(U.substance,U.truncateText),children:(0,i.jsx)(u.A,{value:j})}),(0,i.jsx)(l.A,{component:"div",className:H(U.description,U.truncateText),children:(0,i.jsx)(u.A,{value:I})})]}),children:(0,i.jsxs)("div",{className:U.body,children:[D?(0,i.jsx)(T.Ay,{productNumber:_,brandKey:N,paMessage:D}):(null==et?void 0:et.length)?(0,i.jsx)(g.A,{productName:B,materialPricing:et,multiCountryData:es,canAddToCart:X&&!V&&(!k||!!(null==Y?void 0:null===(t=Y.metadata)||void 0===t?void 0:t.isMarketplaceCartEnabled)),marketplaceOfferId:k&&et&&(null===(a=et[0])||void 0===a?void 0:a.marketplaceOfferId)?null===(r=et[0])||void 0===r?void 0:r.marketplaceOfferId:P,renderSecondaryAction:()=>(0,i.jsx)("div",{className:U.viewDetailsWrapper,children:(0,i.jsx)(A.N,{...y.aR.index(N,S,{catalog:(0,v.vN)(K)}),passHref:!0,children:(0,i.jsx)(o.A,{color:"primary",variant:"outlined",size:"large",fullWidth:!0,children:(0,i.jsx)(p.A,{id:"VIEW_PRODUCT_DETAILS",defaultMessage:"View Product Details"})})})}),erpType:O,isPLPBuyNow:W}):null,(eu||ep)&&(0,i.jsxs)("div",{className:U.alternateStatesWrapper,children:[eu&&!ep&&(0,i.jsx)(f.A,{}),ep&&(0,i.jsx)(b.A,{error:ec||el,productNumber:_,isMarketplace:k,sellerName:w||(0,v.t1)(L),marketplaceSellerId:M,marketplaceOfferId:P})]})]})})}},650524:(e,t,a)=>{a.d(t,{Gd:()=>u,Yo:()=>p});var i=a(89099),n=a(608288),r=a(688700),l=a(197710),o=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 s=e=>["order-center","configurators","semi-configurators"].some(t=>e.includes(t)),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 t=(0,i.useRouter)(),a=(0,n.yp)(t.asPath);if((null==a?void 0:a.pathAfterBasename)==="/"||"/[country]/[language]"===t.pathname||"/[country]/[language]/"===t.pathname)return"homepage";if(!a.pathAfterBasename)return"uncategorized path - ".concat(null==t?void 0:t.asPath);let r=null==a?void 0:null===(e=a.pathAfterBasename)||void 0===e?void 0:e.split("/"),l=s(a.pathAfterBasename)&&r.length>2?r[2]:r[1],u=d(l);return u in o?o[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}},651971:(e,t,a)=>{a.d(t,{A:()=>E});var i=a(637876),n=a(14232),r=a(89099),l=a(723604),o=a(957212),s=a(599220),d=a(308733),c=a(771007),u=a(11631);let p=(0,s.makeStyles)()((e,t)=>{let{currentExperience:a}=t;return{toggleContainer:{display:"inline-flex",alignItems:"center",marginRight:e.spacing(2),"&:focus-visible":{outline:"none"}},labelBase:{lineHeight:1.25,padding:0,margin:0,color:e.palette.text.primary},legacyLabel:{fontWeight:"old"===a?e.typography.fontWeightBold:e.typography.fontWeightRegular,fontSize:"old"===a?e.typography.pxToRem(14):e.typography.pxToRem(12)},newLabel:{fontWeight:"new"===a?e.typography.fontWeightBold:e.typography.fontWeightRegular,fontSize:"new"===a?e.typography.pxToRem(14):e.typography.pxToRem(12)},switchBase:{color:e.palette.primary.main,margin:0,"&:focus":{outline:"none"}},checked:{color:e.palette.primary.main},track:{backgroundColor:e.palette.primary.main},loadingMessage:{fontSize:e.typography.pxToRem(22),fontWeight:e.typography.fontWeightBold,lineHeight:1.4,margin:"0 auto",textAlign:"center",top:-500,width:375,[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(28),width:600}}}}),m=e=>{let{currentExperience:t,className:a=""}=e,s=(0,r.useRouter)(),[,m]=(0,l.lT)([l.PK.SrpExperience]),{classes:g,cx:h}=p({currentExperience:t}),[x,A]=(0,n.useState)(!1),y=(0,i.jsx)(d.A,{id:"SRP_TOGGLE_LOADING_MESSAGE",defaultMessage:"Please wait while we take you to our ".concat("old"===t?"new":"previous"," search experience.")});return x?(0,i.jsx)(u.A,{message:y,messageStyleOverride:g.loadingMessage}):(0,i.jsxs)("div",{className:h(g.toggleContainer,a),children:[(0,i.jsx)("span",{className:h(g.labelBase,g.legacyLabel),children:(0,i.jsx)(d.A,{id:"PREVIOUS",defaultMessage:"Previous"})}),(0,i.jsx)(o.A,{checked:"new"===t,onChange:()=>{let e="old"===t?"new":"old",a="switch from ".concat(t," version to ").concat(e," version");(0,c.sendSrpExperienceToggleEvent)(a),A(!0),m(l.PK.SrpExperience,e,{path:"/"}),s.reload()},classes:{switchBase:g.switchBase,checked:g.checked,track:g.track},sx:{"&:hover":{backgroundColor:"transparent"},"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},inputProps:{"aria-label":"Toggle search experience"}}),(0,i.jsx)("span",{className:h(g.labelBase,g.newLabel),children:(0,i.jsx)(d.A,{id:"NEW",defaultMessage:"New"})})]})};var g=a(330566),h=a(406995),x=a(408930),A=a(877018),y=a(781524),v=a(317685),f=a(139324);let{publicRuntimeConfig:{featureFlags:b,srpCanaryCountries:T}}=a.n(f)()(),C=(0,s.makeStyles)()(e=>({bannerContainer:{width:"100%",alignItems:"center",backgroundColor:"#FFF3D9",padding:e.spacing(4,6),marginBottom:e.spacing(4),justifyContent:"space-between",[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start"}},flagContainer:{marginTop:e.spacing(1),[e.breakpoints.up("md")]:{marginTop:e.spacing(0)},width:32},flagIcon:{fontSize:e.typography.pxToRem(23),marginRight:e.spacing(3),[e.breakpoints.up("md")]:{marginRight:e.spacing(3)}},textContainer:{alignItems:"center",[e.breakpoints.down("sm")]:{flexDirection:"column",width:"100%"}},bannerTextBase:{fontSize:e.typography.pxToRem(14),lineHeight:1.4,padding:0,margin:0,color:e.palette.text.primary,display:"block"},bannerText1:{fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(1),[e.breakpoints.down("sm")]:{marginRight:0,marginBottom:e.spacing(1)}},bannerText2:{marginRight:e.spacing(1),[e.breakpoints.down("sm")]:{marginRight:0,marginBottom:e.spacing(2)}},toggle:{alignItems:"center",flexShrink:0,marginLeft:e.spacing(2),[e.breakpoints.down("sm")]:{marginLeft:0,alignSelf:"center"},"&:hover":{backgroundColor:"transparent"}}})),E=e=>{let{className:t="",currentExperience:a}=e,{classes:n,cx:r}=C(),{userSession:l}=(0,v.j)(),o=l.country;if(!((null==T?void 0:T.length)===0||(null==T?void 0:T.includes(o)))||!b.newSrp)return null;let s=(0,g.A)(),c=(0,h.A)(s.breakpoints.up("md"));return(0,i.jsxs)(x.Ay,{container:!0,className:n.bannerContainer,children:[(0,i.jsxs)(x.Ay,{container:!0,className:n.textContainer,md:9,children:[c&&(0,i.jsx)(x.Ay,{item:!0,className:n.flagContainer,children:(0,i.jsx)(y.A,{color:"secondary",className:n.flagIcon})}),(0,i.jsx)(A.A,{className:r(n.bannerTextBase,n.bannerText1),children:"new"===a?(0,i.jsx)(d.A,{id:"SRP_BANNER_NEW_SEARCH",defaultMessage:"We have upgraded our search experience, but you can still use our previous version."}):(0,i.jsx)(d.A,{id:"SRP_BANNER_OLD_SEARCH",defaultMessage:"We have an upgraded search experience. If you would like to try it, you can switch here."})})]}),(0,i.jsx)(x.Ay,{className:r(n.toggle,t),children:(0,i.jsx)(m,{currentExperience:a,className:t})})]})}},670210:(e,t,a)=>{a.d(t,{A:()=>ew});var i=a(637876),n=a(14232),r=a(134415),l=a(308733),o=a(599220),s=a(42778),d=a(128975),c=a(671541),u=a(812197),p=a(236503),m=a(505411),g=a(835967),h=a(635877),x=a(757477),A=a(677660),y=a(868351),v=a(428888),f=a(182897),b=a(678248);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 _={},S=(0,f.J1)(T()),N=(0,f.J1)(C(),S),I=(0,f.J1)(E(),N),R=(0,f.J1)(j(),I);var k=a(668748),M=a(21347),P=a(710181),L=a(696241),O=a(67241),B=a(170377),w=a(741683),F=a(857377),D=a(471549),W=a(634341),U=a(554753),H=a(52710);let z=e=>({currency:e.currency,listPriceCurrency:e.currency,listPrice:e.listPrice,price:e.yourPrice}),G=(0,o.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}})),V=e=>{var t;let{promoBundlePricingData:a}=e,{classes:n}=G();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==a?void 0:a.bundleItems.length}})}),(0,i.jsx)(P.A,{className:n.tableContainer,component:L.A,children:(0,i.jsxs)(O.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)(w.A,{children:[(0,i.jsx)(F.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT})}),(0,i.jsx)(F.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_PRODUCT_NAME})}),(0,i.jsx)(F.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_QUANTITY})}),(0,i.jsx)(F.A,{className:n.header,children:(0,i.jsx)(l.A,{...U.A.PROMO_AVAILABILITY})})]})}),(0,i.jsx)(D.A,{children:null==a?void 0:null===(t=a.bundleItems)||void 0===t?void 0:t.map((e,t)=>{var a,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:z(e),waitUntilVisible:!0,children:(0,i.jsxs)(w.A,{children:[(0,i.jsx)(F.A,{className:n.materialNumber,children:e.materialNumber}),(0,i.jsx)(F.A,{className:n.materialDescription,children:(0,i.jsx)(x.A,{value:e.materialName})}),(0,i.jsx)(F.A,{children:e.quantity}),(0,i.jsx)(F.A,{children:(null==e?void 0:null===(a=e.availabilityMessages)||void 0===a?void 0:a.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})]},t)},t)})})]})})]})};var Y=a(130510),q=a(636382),K=a(838582),$=a(11788),Q=a(399486),X=a(366201),Z=a(877742),J=a(278206),ee=a(408335),et=a(199549),ea=a(15329),ei=a(357869),en=a(620573),er=a(130373),el=a(748504),eo=a(632591),es=a(37290),ed=a(301049),ec=a(875878),eu=a(204641),ep=a(764177);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,o.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:t}=e;return t}),ef=e=>{let{setCreateCustomBundleModal:t,setShowModal:a}=e,{classes:r}=ex(),{formatMessage:l}=(0,Z.A)(),{setGlobalSnackbarState:o}=(0,K.W)(),[s,d]=(0,n.useState)(!1),[c,{loading:u}]=function(e){let t={...eg};return ep.n(eh,t)}(),g=async e=>{let{bundleDescription:i,bundleItems:n}=e,r={bundleDescription:i,bundleItems:ev(n)};await c({variables:{input:r}}),o({open:!0,message:l(U.A.CUSTOM_BUNDLE_REQUEST_SUCCESS),variant:K.m$.Success}),t(!1),a(!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:o,errors:c}=e;return(0,i.jsxs)(ee.A,{classes:{paperWidthSm:r.dialogWidth},fullWidth:!0,open:!0,children:[(0,i.jsxs)(et.A,{className:r.dialogTitle,children:[l(U.A.CREATE_CUSTOM_BUNDLE),(0,i.jsx)(ea.A,{className:r.closeButton,disabled:u,onClick:()=>d(!0),children:(0,i.jsx)(el.A,{fontSize:"large",onClick:()=>a(!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:es.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:t}=e;return(0,i.jsxs)(i.Fragment,{children:[n.bundleItems.map((e,t)=>(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(t,"].materialNumber"),label:0===t&&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(t,"].quantity"),label:0===t&&l(U.A.QUANTITY),component:ec.A,min:1,max:999,disabled:u,filled:!0})})]},t)),(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(m.A,{color:"secondary",startIcon:(0,i.jsx)(eo.A,{fontSize:"large"}),onClick:()=>t(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:s,description:l(U.A.CANCEL_CART_CONFIRM_TEXT),cancelText:l(U.A.CANCEL_CART_NO),confirmText:l(U.A.CANCEL_CART_YES),onCancel:()=>d(!1),onConfirm:()=>t(!1)}),(0,i.jsx)(m.A,{className:r.submitButton,color:"primary",variant:"contained",onClick:()=>o(),disabled:u,children:l(U.A.SUBMIT)})]})]})}})};var eb=a(786680),eT=a(688700);let eC=(0,o.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,t)=>{var a;if(!(null==e?void 0:e.bundleItems)||!(null==t?void 0:null===(a=t.getPricingForPromotionalBundle)||void 0===a?void 0:a.bundleItems))return[];let i=new Map(t.getPricingForPromotionalBundle.bundleItems.map(e=>{var t;return[e.materialNumber.toLowerCase(),null===(t=e.availabilityMessages)||void 0===t?void 0:t[0]]}));return e.bundleItems.map(e=>({...e,availability:i.get(e.materialNumber.toLowerCase())}))},ej=e=>{let{onClose:t,bundleData:a,productName:r,materialNumber:o,setShowModal:v}=e,{classes:f,cx:T}=eC(),C=(0,h.A)(),{getSitePreference:E,userIsLoggedIn:j}=(0,$.iZ)(),{authorized:S}=(0,Q.I)(Q.N.canAddToCart),{setGlobalSnackbarState:N}=(0,K.W)(),I=(0,q.g9)(),[P,L]=(0,n.useState)({}),[O,B]=(0,n.useState)(1),w=(0,c.A)(C.breakpoints.up("md")),{setGlobalModalComponent:F,clearGlobalModalComponent:D}=(0,s.g)(),U=E($.VD.HideAddToCartForPrepackItems),[G,{data:Z,loading:J}]=function(e){let t={..._};return b._(R,t)}(),ee=null==Z?void 0:Z.getPricingForPromotionalBundle,et=(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),ea={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 t,a;return(null===(t=e.availabilityMessages)||void 0===t?void 0:t.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:z(e),waitUntilVisible:!0,children:(0,i.jsx)(W.A,{availabilities:null==e?void 0:null===(a=e.availabilityMessages)||void 0===a?void 0:a.map(e=>({key:e&&e.key,date:e&&e.date,plantLoc:e&&e.plantLoc,quantity:e&&e.quantity}))})}):null}}],[el,eo]=er;(0,n.useEffect)(()=>{a.length>0&&L(a[0])},[a]),(0,n.useEffect)(()=>{P.promotionalBundleId&&G(ea)},[P.promotionalBundleId]);let es=async()=>{var e,a;let n=eE(P,Z);t("addedToCart"),(0,eb.p8)(n,null!==(a=null==Z?void 0:null===(e=Z.getPricingForPromotionalBundle)||void 0===e?void 0:e.bundleItems)&&void 0!==a?a:[],eT.k9.PromoBundle,void 0,void 0,void 0,{bundleId:P.bundleId,quantity:O});try{await I([{materialNumber:P.bundleId,quantity:O,materialDescription:P.bundleDescription,materialName:P.bundleName,type:A.iC.PromotionalBundle}])}catch(e){N({open:!0,message:(0,i.jsx)(l.A,{id:"GENERIC_ERROR",defaultMessage:"Sorry, an unexpected error has occurred"}),variant:K.m$.Error})}};return(0,i.jsx)(d.Ay,{open:!0,onClose:(e,a)=>t(a),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:a.map(e=>{let{bundleId:t,promotionalBundleId:a}=e;return{label:t,value:a}}),selectedChip:P.promotionalBundleId,onSelect:e=>{let t=a.find(t=>{let{promotionalBundleId:a}=t;return a===e});t&&L(t)}}),(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)(Y.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&&et&&(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]:!!et}),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:et?(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:O,min:1,onChange:e=>{B(e)}})}),(0,i.jsx)("div",{children:(0,i.jsx)(M.Ay,{dirty:!0,isSubmitting:!1,canAddToCart:S,hideAddToCartForPrepackItems:U,handleAddToCart:es,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&&w?(0,i.jsx)(V,{promoBundlePricingData:ee}):null]})}),j&&(0,i.jsx)(p.A,{item:!0,xs:12,children:(0,i.jsx)(m.A,{style:{paddingLeft:0},onClick:()=>{F((0,i.jsx)(ef,{setCreateCustomBundleModal:D,materialNumber:o,bundleData:a,setShowModal:v}))},children:(0,i.jsx)(l.A,{id:"NEED_MORE_BUNDLE_BUTTON_TEXT",defaultMessage:"Need more bundle options?"})})})]}),w?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)(X.A,{data:(null==ee?void 0:ee.bundleItems)||[],columns:er,noResultsComponent:ei,accordionTitleColumn:el,accordionSubtitleColumn:eo,itemProps:{headerProps:{variant:"h3"}}})]})]})})};var e_=a(89099),eS=a(197710);function eN(){let e=(0,v._)(["\n fragment BundleItems on PromotionalBundleItem {\n materialNumber\n materialIds\n quantity\n discount\n showOnPdp\n}\n "]);return eN=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)(eN()),eP=(0,f.J1)(eI(),eM),eL=(0,f.J1)(eR(),eP);var eO=a(220534);let eB=(0,o.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)}}})),ew=e=>{var t;let{materialNumber:a,brand:o,productName:d,erp_type:c}=e,{classes:u}=eB(),{setGlobalModalComponent:p,clearGlobalModalComponent:m}=(0,s.g)(),g=(0,e_.useRouter)(),{getSitePreference:h,isBlueErpIntegrationEnabled:x}=(0,$.iZ)(),{focus:A="",catalog:y=""}=g.query||{},v=(0,eS.vN)(A||y),f=h($.VD.CatalogFilter)||null,T=x&&c&&(null==c?void 0:c.length)>0,[C,E]=(0,n.useState)(!1),j={variables:{brand:null!=o?o:(null==g?void 0:null===(t=g.query)||void 0===t?void 0:t.brand)||"",productNumber:a,materialIds:[a],catalogType:v,orgId:f,...T&&{erp_type:c}}},[_,{data:S,loading:N}]=function(e){let t={...ek};return b._(eL,t)}(),I=()=>{E(!1),m()};return(0,n.useEffect)(()=>{var e;(null==S?void 0:null===(e=S.getPromotionalBundlesForProduct)||void 0===e?void 0:e.length)&&C&&p((0,i.jsx)(ej,{onClose:()=>I(),loading:N,bundleData:S.getPromotionalBundlesForProduct,productName:d,materialNumber:a,setShowModal:E}))},[S,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"})}),N&&(0,i.jsx)(eO.A,{})]})}},672214:(e,t,a)=>{a.d(t,{c:()=>f});var i=a(637876);a(14232);var n=a(677660),r=a(812197),l=a(599220),o=a(757477),s=a(852413),d=a(211148),c=a(308733),u=a(554753),p=a(29468),m=a(835967),g=a(781524),h=a(11788),x=a(555287);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 t;let{productNumber:a}=e,{classes:n}=A(),{userIsLoggedIn:r}=(0,h.iZ)(),{loading:l,error:o,data:s}=(0,x.WL)({variables:{productNumber:a},skip:!r,ssr:!1}),d=null==s?void 0:null===(t=s.recentOrderItems.orderItems.find(e=>e.product===a))||void 0===t?void 0:t.orderDate;return l||o||!(null==s?void 0:s.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:t,brand:a,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:S,cx:N}=v();return(0,i.jsxs)("div",{className:N(S.productLockupSimple,null==b?void 0:b.root),children:[_&&(0,i.jsx)("div",{className:S.previouslyPurchasedChip,children:(0,i.jsx)(y,{productNumber:g})}),(0,i.jsxs)("div",{className:S.productImageAndInfo,children:[(0,i.jsx)("div",{className:N(S.productImageContainer,null==b?void 0:b.imageContainer),children:(0,i.jsx)("img",{src:t.mediumUrl,alt:t.altText||h,className:S.productImage})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{variant:"caption",className:N(S.brand,null==b?void 0:b.brand),style:a.color?{color:a.color}:{},children:a.name}),T&&C&&(0,i.jsxs)("div",{className:S.sellerInfo,children:[(0,i.jsx)(c.A,{...u.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(s.N,{...d.kJ.index(x||a.key,C),children:(0,i.jsx)("a",{children:x||a.name})}),(0,i.jsx)("span",{className:S.verticalLine}),(0,i.jsxs)("span",{className:S.trustedInfo,children:[(0,i.jsx)(c.A,{...u.A.CONTACT_SELLER_TRUSTED}),(0,i.jsx)(p.A,{className:S.infoIcon,onClick:()=>!!j&&j()})]})]}),(0,i.jsx)(r.A,{variant:"h3",component:"div",className:N(S.heading,null==b?void 0:b.heading),children:h&&a.key&&m?(0,i.jsx)(s.N,{...d.aR.index(a.key,m,l===n.iC.ThirdPartyProvider?{context:"bbe"}:{}),onClick:E,children:g}):g}),(0,i.jsx)(r.A,{variant:"h3",className:N(S.heading,null==b?void 0:b.heading),children:(0,i.jsx)(o.A,{value:h})}),A&&(0,i.jsx)(r.A,{className:N(S.description,S.clampLines,null==b?void 0:b.description),children:(0,i.jsx)(o.A,{value:A})}),f]})]})]})}},677197:(e,t,a)=>{a.d(t,{Ay:()=>f,tq:()=>v});var i=a(637876);a(14232);var n=a(599220),r=a(877018),l=a(79143),o=a(126886),s=a(877742),d=a(308733),c=a(677660),u=a(390589),p=a(554753),m=a(51684),g=a(211148),h=a(194013),x=a(771007),A=a(346129);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:t}=(0,s.A)(),a=(0,g.rd)();return(0,i.jsxs)(o.A,{className:e.body,children:[(0,i.jsxs)(l.A,{maxWidth:"lg",children:[(0,i.jsx)(r.A,{id:"documents-search-title",variant:"h1",className:e.title,children:t({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:t(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,t=Array(e),a=0;a(0,x.sendCommonDetailProductIdEvent)({event:"documentation_interaction",action:"visit document library",detail:"".concat(a.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})]})}},683707:(e,t,a)=>{a.d(t,{A:()=>p});var i=a(637876);a(14232);var n=a(607645),r=a(134415),l=a(308733),o=a(756557),s=a.n(o),d=a(211148),c=a(852413),u=a(11788);let p=e=>{let{expirationDate:t,displayColon:a,displayInline:o,outerClassName:p,labelClassName:m}=e,{userIsLoggedIn:g}=(0,u.iZ)();return t&&g?(0,i.jsxs)(n.A,{className:p,children:[(0,i.jsxs)("span",{className:m,children:[(0,i.jsx)(l.A,{id:"EXPIRY_DATE",defaultMessage:"Expiry Date"}),a?": ":""]}),(0,i.jsx)(n.A,{display:o?"inline":"block",children:"NA"===t?(0,i.jsx)(c.N,{href:d.mA.customerSupport(),passHref:!0,children:(0,i.jsx)(r.A,{color:"primary",target:"_blank",children:(0,i.jsx)(l.A,{id:"CONTACT_CUSTOMER_SERVICE_FIRST_UPPERCASE",defaultMessage:"Contact Customer Service"})})}):s()(t).format("MMMM DD, YYYY")})]}):null}},685150:(e,t,a)=>{a.d(t,{A:()=>n,I:()=>i});let i=(0,a(599220).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},694304:(e,t,a)=>{a.d(t,{Fu:()=>M,Gv:()=>B,M0:()=>E,Vg:()=>T,XL:()=>_,Xi:()=>L,YD:()=>N,_D:()=>y,nA:()=>f,q4:()=>R});var i=a(428888);a(637876);var n=a(182897),r=a(764177);function l(){let e=(0,i._)(["\n mutation CreateSharedList($input: CreateSharedListInput!) {\n createSharedList(input: $input) {\n listId\n }\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n mutation UpdateSharedList($input: UpdateSharedListInput!) {\n updateSharedList(input: $input)\n}\n "]);return o=function(){return e},e}function s(){let e=(0,i._)(["\n mutation DeleteSharedList($listId: ID!) {\n deleteSharedList(listId: $listId)\n}\n "]);return s=function(){return e},e}function d(){let e=(0,i._)(["\n mutation DeleteSharedListMembers($listId: ID!, $members: [ID!]!) {\n deleteSharedListMembers(listId: $listId, members: $members)\n}\n "]);return d=function(){return e},e}function c(){let e=(0,i._)(["\n mutation DeleteSharedListInvitations($listId: ID!, $invitations: [String!]!) {\n deleteSharedListInvitations(listId: $listId, invitations: $invitations)\n}\n "]);return c=function(){return e},e}function u(){let e=(0,i._)(["\n mutation CreateSharedListItems($listIds: [ID!]!, $listItems: [SharedListItemInput!]!) {\n createSharedListItems(listIds: $listIds, listItems: $listItems)\n}\n "]);return u=function(){return e},e}function p(){let e=(0,i._)(["\n mutation UpdateSharedListItem($input: UpdateSharedListItemInput!) {\n updateSharedListItem(input: $input)\n}\n "]);return p=function(){return e},e}function m(){let e=(0,i._)(["\n mutation RemoveSharedListItem($listId: ID!, $itemId: ID!) {\n removeSharedListItem(listId: $listId, itemId: $itemId)\n}\n "]);return m=function(){return e},e}function g(){let e=(0,i._)(["\n mutation ClearSharedListItems($listId: ID!) {\n clearSharedListItems(listId: $listId)\n}\n "]);return g=function(){return e},e}function h(){let e=(0,i._)(["\n mutation UpdateMembersDoneAddingToSharedList($listId: ID!) {\n updateMembersDoneAddingToSharedList(listId: $listId)\n}\n "]);return h=function(){return e},e}a(14232);let x={},A=(0,n.J1)(l());function y(e){let t={...x,...e};return r.n(A,t)}let v=(0,n.J1)(o());function f(e){let t={...x,...e};return r.n(v,t)}let b=(0,n.J1)(s());function T(e){let t={...x,...e};return r.n(b,t)}let C=(0,n.J1)(d());function E(e){let t={...x,...e};return r.n(C,t)}let j=(0,n.J1)(c());function _(e){let t={...x,...e};return r.n(j,t)}let S=(0,n.J1)(u());function N(e){let t={...x,...e};return r.n(S,t)}let I=(0,n.J1)(p());function R(e){let t={...x,...e};return r.n(I,t)}let k=(0,n.J1)(m());function M(e){let t={...x,...e};return r.n(k,t)}let P=(0,n.J1)(g());function L(e){let t={...x,...e};return r.n(P,t)}let O=(0,n.J1)(h());function B(e){let t={...x,...e};return r.n(O,t)}},695722:(e,t,a)=>{a.d(t,{A:()=>c});var i=a(637876),n=a(278206),r=a(554753),l=a(668748);a(14232);var o=a(849995),s=a(877742),d=a(978272);let c=e=>{let{rootClass:t,rootStyle:a,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,s.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,o.A)({[String(t)]:t}),style:a,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 t=(0,d.aA)(e,A,f);y&&y(t),v(x,t)},delay:m,error:!!_,"aria-describedby":(_||p)&&"".concat(c.name,"-help-text"),onBlur:()=>{g&&c.value{a.d(t,{A:()=>h});var i=a(637876);a(14232);var n=a(308733),r=a(835967),l=a(607645),o=a(599220),s=a(554753),d=a(11788),c=a(495349),u=a(175020),p=a(346129),m=a(211148);let g=(0,o.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,fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium},topAligned:{display:"flex",padding:0,margin:0}})),h=e=>{var t;let a,{material:o,listPriceClass:h,priceClass:x,hasStackedPrices:A=!0}=e,{classes:y,cx:v}=g(),{guestShoppingType:f,isDTAQZuCustomer:b}=(0,d.iZ)();return((null===(t=o.availabilities)||void 0===t?void 0:t.length)&&(a=o.availabilities[0].displayInquireLink),o.hidePriceMessageKey)?(0,i.jsx)(c.A,{msgKey:o.hidePriceMessageKey}):a?(0,i.jsx)(p.N,{className:v(y.baseClass,{[y.topAligned]:a}),onClick:()=>{(0,u.Sm)({action:"inquire product",section:"p&a",component:"list",elementType:"link",elementText:"inquire",material:{materialDescription:o.materialDescription,brand:o.brand,product:o.product,materialNumber:o.materialNumber}})},href:m.mA.customerSupportWithFormId("tfa_11"),children:(0,i.jsx)(n.A,{id:"INQUIRE",defaultMessage:"Inquire"})}):(0,i.jsx)(l.A,{display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,i.jsxs)("div",{className:v(y.pricesContainer,{[y.pricesStacked]:A}),children:[!!o.price&&!!o.listPrice&&(o.listPrice>o.price||"dtaq"===f&&b)&&(0,i.jsx)("div",{className:h,children:(0,i.jsx)(r.Gr,{style:"currency",currencyDisplay:"symbol",currency:o.listPriceCurrency?o.listPriceCurrency:o.currency,value:o.listPrice})}),o.price?(0,i.jsx)("div",{className:x,children:(0,i.jsx)(r.Gr,{style:"currency",currencyDisplay:"symbol",currency:o.currency,value:o.price})}):(0,i.jsx)(n.A,{...s.A.UNAVAILABLE})]})})}},710759:(e,t,a)=>{a.d(t,{A:()=>i.A});var i=a(827978)},719409:(e,t,a)=>{a.d(t,{A:()=>S});var i=a(637876),n=a(14232),r=a(308733),l=a(278206),o=a(944131),s=a(599220),d=a(812197),c=a(236503),u=a(505411),p=a(190079),m=a(37290),g=a(935007),h=a(177274),x=a(838582),A=a(282250),y=a(44601),v=a(486024),f=a(128975),b=a(34369),T=a(353471),C=a(211148),E=a(220534),j=a(11788);let _=(0,s.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)}})),S=e=>{let t,a,s,{onClose:S,quoteData:N}=e,{classes:I}=_(),R=(0,C.rd)(),[k]=(0,T.u7)(),{setSnackbar:M}=(0,x.W)(),{currentUser:P}=(0,j.iZ)(),[L,O]=(0,n.useState)({}),[B,w]=(0,n.useState)(!0);Array.isArray(N)||(t=null==N?void 0:N.material,a=null==N?void 0:N.product,s=null==N?void 0:N.quantity);let{rawYupSchema:{ccEmail:F,extension:D,fax:W,mobile:U,phone:H,required:z,requiredEmail:G}}=(0,h.dz)(),V=o.Ik().shape({ccForOrderConfEmailIds:F,email:G,extension:D,fax:W,firstName:z,mobile:U,telephone:H}),Y=async(e,t)=>{(0,y.A)({top:0,left:0,behavior:"smooth"});try{if(N){var a,i,n,r,l;let t=Array.isArray(N)?{addressInfo:e,input:N.map(e=>{var t,a,i,n;return{materialNumber:null!==(i=null!==(a=null==e?void 0:e.materialNumber)&&void 0!==a?a:null==e?void 0:null===(t=e.material)||void 0===t?void 0:t.materialNumber)&&void 0!==i?i:"",quantity:null!==(n=e.quantity)&&void 0!==n?n:0}})}:{addressInfo:e,input:{materialNumber:null!==(n=null!==(i=null==N?void 0:N.materialNumber)&&void 0!==i?i:null==N?void 0:null===(a=N.material)||void 0===a?void 0:a.materialNumber)&&void 0!==n?n:"",quantity:null!==(r=N.quantity)&&void 0!==r?r:0}},{data:o}=await k({variables:t});o&&R.replace(C.q8.quoteDetail(null==o?void 0:null===(l=o.generateQuote)||void 0===l?void 0:l.orderNumber))}}catch(a){w(!1);let{errors:e}=(0,A.Mw)(a);if(e.length>0){let{code:t}=e[0];g.A[t]?M(x.iZ.CartErrorRequestingQuote,t):M(x.iZ.GenericError)}t.setSubmitting(!1)}};return(0,n.useEffect)(()=>{if(null==P?void 0:P.contactAddress){let{contactAddress:e}=P;O({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}),w(!1)}},[]),B?(0,i.jsx)(E.A,{}):(0,i.jsx)(l.l1,{initialValues:L,onSubmit:Y,enableReinitialize:!1,validateOnMount:!1,validationSchema:V,children:e=>{let{isSubmitting:n,handleSubmit:o}=e;return(0,i.jsx)(v.A,{open:!0,onClose:(e,t)=>S(t),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:[t&&a&&s?(0,i.jsx)(c.A,{container:!0,children:(0,i.jsx)(b.A,{material:t,product:a,quantity:s})}):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:()=>o(),children:[n&&(0,i.jsx)(p.A,{size:30}),(0,i.jsx)(r.A,{...g.A.SUBMIT_REQUEST})]})})]})})}})}},732588:(e,t,a)=>{a.d(t,{A:()=>x});var i=a(637876);a(14232);var n=a(308733),r=a(599220),l=a(607645),o=a(812197),s=a(134415),d=a(11788),c=a(554753),u=a(211148),p=a(494295),m=a(327651),g=a(346129);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,fontSize:e.typography.pxToRem(14)},link:{cursor:"pointer"}})),x=e=>{let{mb:t,mr:a,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:t,mr:a,children:(0,i.jsx)("div",{className:x.container,children:(0,i.jsxs)("div",{className:x.contentContainer,children:[(0,i.jsx)(s.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)(o.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:t,mr:a,children:(0,i.jsx)("div",{className:x.container,children:(0,i.jsx)("div",{className:x.contentContainer,children:(0,i.jsx)(o.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"})})}})})})})})}},733086:(e,t,a)=>{a.d(t,{D:()=>i,_:()=>n});let i="facet-search",n=e=>e.asPath.includes(i)},733159:(e,t,a)=>{a.d(t,{A:()=>C});var i=a(637876),n=a(873431),r=a(282250),l=a(11788),o=a(317685),s=a(14232),d=a(308733),c=a(710181),u=a(67241),p=a(170377),m=a(741683),g=a(857377),h=a(471549),x=a(599220),A=a(554753),y=a(844238),v=a(129740);let f=(0,x.makeStyles)()(e=>({root:{"&:hover":{backgroundColor:"transparent"},fontSize:22},header:{backgroundColor:e.palette.background.grey,borderTop:"1px solid rgba(224, 224, 224, 1)",fontSize:12,fontWeight:900},icon:{display:"flex",width:"24px",height:"24px",border:"1px solid ".concat(e.palette.grey[500]),borderRadius:"50%",[e.breakpoints.up("md")]:{width:"18px",height:"18px"}},checkedIcon:{backgroundColor:e.palette.common.white,"&:before":{display:"block",width:"14px",height:"14px",backgroundColor:"".concat(e.palette.primary.main),borderRadius:"50%",transform:"translateY(4px) transLateX(4px)",content:'""',[e.breakpoints.up("md")]:{width:"8px",height:"8px"}}},table:{"& td":{fontSize:14}},tableContainer:{[e.breakpoints.down("md")]:{maxHeight:"50vh"},maxHeight:240}})),b=e=>{let{country:t,stateCode:a}=e,n=(0,y.k)(t,a);return(0,i.jsx)("div",{children:n})},T=e=>{let{dealers:t,onSelect:a,selected:n}=e,{classes:r,cx:l}=f();return(0,i.jsx)(c.A,{className:r.tableContainer,children:(0,i.jsxs)(u.A,{stickyHeader:!0,size:"small",className:r.table,children:[(0,i.jsxs)("colgroup",{children:[(0,i.jsx)("col",{style:{width:"40%"}}),(0,i.jsx)("col",{style:{width:"15%"}}),(0,i.jsx)("col",{style:{width:"20%"}}),(0,i.jsx)("col",{style:{width:"25%"}})]}),(0,i.jsx)(p.A,{children:(0,i.jsxs)(m.A,{children:[(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_DEALER})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_BRANCH})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_AVAILABLE_PRODUCTS})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_PREFECTURE})}),(0,i.jsx)(g.A,{className:r.header,children:(0,i.jsx)(d.A,{...A.A.DEALER_LABEL_ADDRESS})})]})}),(0,i.jsx)(h.A,{children:t.sort((e,t)=>!!e.isPreferredDealer==!!(null==t?void 0:t.isPreferredDealer)?0:e.isPreferredDealer?-1:1).map((e,t)=>{let{id:o,city:s,countryCode:d,organizationName:c,stateCode:u,availableProducts:p,attentionTo:h}=e;return(0,i.jsxs)(m.A,{children:[(0,i.jsx)(g.A,{children:(0,i.jsxs)("label",{children:[(0,i.jsx)(v.A,{className:r.root,checked:n===o,onChange:()=>a(o,c),id:"selectDealer",checkedIcon:(0,i.jsx)("span",{className:l(r.icon,r.checkedIcon)}),icon:(0,i.jsx)("span",{className:r.icon})}),c]})}),(0,i.jsx)(g.A,{children:h}),(0,i.jsx)(g.A,{children:p}),(0,i.jsx)(g.A,{children:d&&u&&(0,i.jsx)(b,{country:d,stateCode:u})}),(0,i.jsx)(g.A,{children:s})]},t)})})]})})},C=e=>{let{selectDealer:t,selectedDealerId:a,searchTerm:d="",stateCode:c}=e,{userSession:u}=(0,o.j)(),{currentUserState:p}=(0,l.iZ)(),m=c||String(p),{data:g,loading:h,error:x}=(0,n.AW)({context:{userSession:u},errorPolicy:"all",variables:{countryCode:null==u?void 0:u.country,stateCode:d?void 0:m,searchTerm:d.toLowerCase()}});if((0,s.useEffect)(()=>{if(null==g?void 0:g.getDealers){var e;let{getDealers:i}=g,n=null!==(e=null==i?void 0:i.find(e=>!!e.isPreferredDealer))&&void 0!==e?e:null;return n&&!a?t(n.id,n.organizationName):t(i[0].id,i[0].organizationName)}},[g]),h)return(0,i.jsx)("div",{children:"Loading..."});if(x){let{displayableError:e,hasError:t}=(0,r.Mw)(x);if(console.error(e),t("DEALER_DATA_NOT_FOUND_GENERIC"))return(0,i.jsx)("div",{children:"No Dealers Available."})}return(null==g?void 0:g.getDealers)?(0,i.jsx)(T,{dealers:(null==g?void 0:g.getDealers)||[],onSelect:t,selected:a}):(0,i.jsx)("div",{children:"No Dealers Available."})}},761622:(e,t,a)=>{a.d(t,{j:()=>i});let i=e=>e?e.map(e=>({...e,productKey:e.productNumber,isMarketplace:!1})):[]},780491:(e,t,a)=>{a.d(t,{NN:()=>x,Zn:()=>A,lz:()=>m,wv:()=>g});var i=a(14232),n=a(830915),r=a.n(n),l=a(147801),o=a(211148),s=a(677660),d=a(771007),c=a(854366),u=a(608288);let p={PRODUCTS:",",OPTION_SETS:":"},m=e=>{if(!e||0===e.length)return[];let t=e.split(p.PRODUCTS);if(!t||0===t.length)return[];let a=[];return t.map(e=>{let t=e.split(p.OPTION_SETS);if(t&&t.length>=1){let e=t[0],i=t.length>1?t[1]:"",n=t.length>2?t[2]:"",r={productKey:e,brandKey:i};n&&(n===s.Mh.B2b?r.catalogType=s.Mh.B2b:n===s.Mh.Buildingblocks?r.catalogType=s.Mh.Buildingblocks:n===s.Mh.Sial&&(r.catalogType=s.Mh.Sial)),a.push(r)}return e}),a},g=e=>e.map(e=>{let t=e.productKey,a=e.brandKey,i=e.catalogType;return"".concat(t).concat(p.OPTION_SETS).concat(a).concat(p.OPTION_SETS).concat(i)}).join(p.PRODUCTS),h="compareProducts",x=4;function A(){let e=(0,l.Fo)(h,[]),t=(0,i.useCallback)(t=>Array.isArray(e)?e.length>=x?void 0:e.findIndex(e=>{let{brandKey:a,productKey:i}=e;return t.brandKey===a&&t.productKey===i})>=0?void 0:l.sZ.setItem(h,e.concat([t])):l.sZ.setItem(h,[t]),[e]),a=(0,i.useCallback)(t=>{if(!Array.isArray(e))return;let a=e.findIndex(e=>{let{brandKey:a,productKey:i}=e;return t.brandKey===a&&t.productKey===i});if(a>=0)return l.sZ.setItem(h,e.slice(0,a).concat(e.slice(a+1)))},[e]),n=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return l.sZ.setItem(h,e)},[]),s=(0,i.useMemo)(()=>Array.isArray(e)?e:[],[e]);return{compareProducts:s,addCompareProduct:t,removeCompareProduct:a,clearAllCompareProducts:n,sendToProductCompareDetail:(0,i.useCallback)((t,a)=>{let{pathAfterBasename:i}=(0,u.yp)(a.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={...t,products:n,returnUrl:i};return a.push("".concat(o.aR.compare(),"?").concat(r().stringify(l)))},[e]),sendToDiscontinuedProductCompareDetail:(0,i.useCallback)((t,a,i,n)=>{let{pathAfterBasename:l}=(0,u.yp)(a.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 s=g(e||[]),c={...t,products:s,returnUrl:l};return a.push("".concat(o.aR.compare(),"?").concat(r().stringify(c)))},[e])}}},793591:(e,t,a)=>{a.d(t,{A:()=>p});var i=a(637876);a(14232);var n=a(308733),r=a(599220),l=a(134415),o=a(554753),s=a(757477),d=a(346129),c=a(771007);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 t;let{supplementary:a,productName:r}=e,{classes:p}=u(),{messageKey:m,messageValue:g,messageVariable1:h,messageVariable2:x}=null!=a?a:{},A=m&&!g&&!o.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)(s.A,{value:h})}):null;return A?null:(0,i.jsx)("div",{children:(null==a?void 0:a.messageKey)&&o.A[a.messageKey]?(e=>{switch(e.messageKey){case"PT_TESTING_STUDY":return(0,i.jsx)(n.A,{...o.A[e.messageKey],values:{link:(0,i.jsx)(l.A,{href:"http://supelco-pt.com",target:"_blank",className:p.link,children:(0,i.jsx)(n.A,{...o.A.PT_TESTING_STUDY_LINK})})}});case"REDI_DRI_RP":return(0,i.jsx)(n.A,{...o.A.REDI_DRI_RP,values:{brand:(0,i.jsx)("i",{children:(0,i.jsx)(n.A,{...o.A.REAGENTPLUS})})}});default:var t;return(0,i.jsx)(n.A,{...o.A[e.messageKey],values:{messageVariable1:null!==(t=v())&&void 0!==t?t:h},children:e=>(0,i.jsx)("div",{className:p.supplementary,children:e})})}})(a):(0,i.jsx)(n.A,{id:"DEFAULT_SUPPLEMENTARY_MESSAGE",defaultMessage:y,values:{productLink:null!==(t=v())&&void 0!==t?t:h},children:e=>(0,i.jsx)("div",{className:p.supplementary,children:e})})})}},796707:(e,t,a)=>{a.d(t,{A:()=>h}),a(14232);var i=a(748284),n=a(561307),r=a(2834),l=a(115556),o=a(436636),s=a(756503),d=a(427477),c=a(346990),u=a(753894),p=a(278037),m=a(354773);let g=(0,i.A)(n.Ay,r.Ay,l.Ay,o.Ay,s.Ay,d.A,c.Ay,u.Ay,p.Ay),h=(0,m.Ay)("div")(g,{name:"Box"})},810113:(e,t,a)=>{a.d(t,{A:()=>g});var i=a(637876),n=a(14232),r=a(370475),l=a(825628),o=a(495339),s=a(254736),d=a(432886),c=a(11788),u=a(554753),p=a(308733),m=a(849995);let g=e=>{let{materialNumber:t,materialId:a,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:S,refetch:N}=(0,d.g)({fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",skip:!j,variables:{input:{perpage:100,sortcolumn:"lastUpdatedDate"}}});if(!j||!(null==S?void 0:S.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)(o.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)(s.A,{open:C,onClose:R,materialNumber:t,materialId:a,productName:g||"",productId:h||"",brand:x||"",type:f,quantity:A,lists:S.getSharedLists.sharedLists,refetchLists:N,userId:_})]})}},830505:(e,t,a)=>{a.d(t,{A:()=>D});var i=a(637876),n=a(14232),r=a(876209),l=a(599220),o=a(771007),s=a(484830),d=a(11788),c=a(336258),u=a(330566),p=a(582440),m=a.n(p),g=a(370475),h=a(877018),x=a(406995),A=a(79143),y=a(823575),v=a(245496),f=a(930),b=a(340352),T=a(491721),C=a(840002),E=a(968215),j=a(977328),_=a.n(j),S=a(211148),N=a(852413),I=a(757477);let R=(0,l.makeStyles)()(e=>({mainContent:{display:"flex"},stackedAndCentered:{display:"flex",alignItems:"center",flexDirection:"column",textAlign:"center"},mainContentImage:{height:60,width:60,flexShrink:0,borderRadius:4,border:"1px solid ".concat(e.palette.grey[400]),textAlign:"center",backgroundColor:e.palette.common.white,overflow:"hidden"},image:{position:"relative",top:"50%",transform:"translateY(-50%)",maxHeight:"100%",maxWidth:"100%",width:"auto",height:"auto"},mainContentText:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",marginLeft:e.spacing(4.5)},productNumber:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold,lineHeight:1.5,textTransform:"uppercase"},productName:{maxHeight:66,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,lineHeight:1.5,"& sup, sub":{verticalAlign:"baseline",position:"relative",top:"-0.4em"},"& sub":{top:"0.1em"}},productBrand:{fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,lineHeight:1.25},clampLines:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis"},mainContentHeight:{height:120},vr1:{marginBottom:e.spacing(1)},vr2:{marginBottom:e.spacing(2)}})),k=e=>{let{productNumber:t,name:a,description:n,image:r,displayDiscount:l,discount:o}=e,s=!(null==t?void 0:t.startsWith("CB_")),{classes:d,cx:c}=R();return(0,i.jsxs)("div",{className:c(d.mainContent,{[d.mainContentHeight]:!!o}),children:[r&&(0,i.jsx)("div",{className:d.mainContentImage,children:(0,i.jsx)("img",{className:d.image,src:r.mediumUrl,alt:r.altText||n||a,width:"112",height:"50"})}),(0,i.jsxs)("div",{className:c([d.mainContentText]),children:[s&&(0,i.jsx)(h.A,{className:d.productNumber,children:t}),(0,i.jsx)(h.A,{className:c(d.productName,d.clampLines),children:(0,i.jsx)(I.A,{value:a})}),o&&l&&l(o)]})]})};var M=a(650524);let P=(0,l.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"}})),L=e=>{var t;let{product:a,testId:n,index:r,type:l,onLinkClick:o,preloadCardImages:s=!1,className:d,hideProductImg:c=!1,displayDiscount:u}=e,p=(0,S.rd)(),m=null==p?void 0:null===(t=p.query)||void 0===t?void 0:t.catalog,{classes:g,cx:h}=P(),x="product-card-".concat(a.productNumber).concat(a.brand.key,"-").concat(n),A=(0,M.Gd)(),y="".concat(l," - ").concat(A);return(0,i.jsxs)("div",{className:h(d,"promotions-slider-div"),children:[s&&(0,i.jsx)(_(),{children:(0,i.jsx)("link",{rel:"preload",href:a.images[0].mediumUrl,as:"image"})}),(0,i.jsx)(N.N,{...S.aR.index(a.brand.key,a.productKey,{catalog:m}),passHref:!0,children:(0,i.jsx)("a",{className:g.link,"data-testid":x,id:x,onClick:()=>{o&&o(),(0,f.e)({product:a,indexPosition:r,creativeSlot:y,carouselType:l})},children:(0,i.jsx)(k,{productNumber:a.productNumber,name:a.name,description:a.description,image:c?void 0:a.images[0],displayDiscount:u,discount:a.discount})})})]})},O=(0,l.makeStyles)()((e,t,a)=>({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,marginBottom:e.spacing(20)},card:{[e.breakpoints.up("sm")]:{paddingRight:e.spacing(10)}},productHeroCardContent:{padding:0,[e.breakpoints.down("sm")]:{touchAction:"pan-y"},["& .".concat(a.productHeroTile," button")]:{"@media (min-width: 900px) and (max-width: 1300px)":{whiteSpace:"normal"}}},productHeroTile:{[e.breakpoints.up("sm")]:{padding:e.spacing(0,4)}}})),B=e=>{let{products:t,creativeSlot:a,carouselType:n,pageType:r,pageTypeDetails:l,productHeroCard:o}=e,{classes:s,cx:d}=O();return{renderCenterLeftControls:e=>{let c=0===e.currentSlide;return(0,i.jsx)(i.Fragment,{children:!o&&(0,i.jsx)(g.A,{className:d(s.navBtn,s.navBtnLarge,s.navBtnLeft),disabled:c,onClick:()=>(0,E.t)(e,t,"prev",a,n,r,l),"aria-label":"previous",children:(0,i.jsx)(y.A,{className:d(s.icon,{[s.iconDisabled]:c})})})})},renderCenterRightControls:e=>{let c=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,E.t)(e,t,"next",a,n,r,l),"aria-label":"next",children:(0,i.jsx)(v.A,{className:d(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&c})})})})},renderBottomCenterControls:e=>{let c=0===e.currentSlide,u=e.currentSlide+e.slidesToShow===e.slideCount||e.slideCount(0,E.t)(e,t,"prev",a,n,r,l),"aria-label":"previous",className:d(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(y.A,{className:d(s.icon,{[s.iconDisabled]:c})})}),(0,i.jsxs)(h.A,{variant:"body2",children:[e.currentSlide+1," of ",e.slideCount]}),(0,i.jsx)(g.A,{disabled:u,onClick:()=>(0,E.t)(e,t,"next",a,n,r,l),"aria-label":"next",className:d(s.navBtn,s.navBtnSmall),children:(0,i.jsx)(v.A,{className:d(s.icon,{[s.iconDisabled]:!!e.slidesToScroll&&u})})})]})}}},w=e=>{let{type:t,products:a,withoutControls:r,slidesToShow:l,condensed:o,preloadCardImages:s,title:d,productHeroCard:p=!1,isProductRecommendation:g=!1,hideProductImg:h=!1,displayDiscount:y,setRef:v}=e,{classes:E,cx:j}=O(),_=(0,b.Ay)(),S=(0,M.Gd)(),N="".concat(t," - ").concat(S),I=B({products:a,carouselType:t,creativeSlot:N,productHeroCard:p}),R=t===C.j.CartRecommendedProducts,k=_({xs:2,sm:3,md:5,lg:6}),P=(0,u.A)(),w=!0===(0,x.A)(P.breakpoints.up("md")),F=(0,n.useRef)(null),[D,W]=(0,n.useState)(!1),U=(0,c.B)(F,{threshold:T.Pe});if(!a||!a.length)return null;if((null==U?void 0:U.isIntersecting)&&!D){let e=a.slice(0,k);(0,f.W)({creativeSlot:N,carouselType:t,products:e}),W(!0)}return(0,i.jsx)("div",{"data-testid":t,id:t,className:j({[E.cartRecommended]:R}),ref:v&&v("recProducts"),children:(0,i.jsx)(A.A,{maxWidth:"lg",className:j({[E.withoutControls]:r}),style:{paddingBottom:"0 !important"},children:(0,i.jsxs)("div",{ref:F,className:j(E.content,{[E.contentCondensed]:o},p&&E.productHeroCardContent,g&&E.contentInTab),children:[(0,i.jsx)(T.zO,{title:d,isHero:p,type:t}),(0,i.jsx)(m(),{slidesToScroll:p&&w?2:l||k,slidesToShow:p&&w?2:l||k,disableEdgeSwiping:!0,withoutControls:!w,...I,children:a.map((e,a)=>(0,i.jsx)(L,{index:a,type:t,product:e,testId:t,preloadCardImages:s,className:j(E.card,p&&E.productHeroTile),hideProductImg:h,displayDiscount:y},a))})]})})})},F=(0,l.makeStyles)()(e=>({recentlyViewedContainer:{[e.breakpoints.down("md")]:{paddingBottom:e.spacing(2)}}})),D=e=>{var t;let{dispType:a,className:l,productKey:c="",brand:u="",slidesToShow:p,setShouldDisplay:m,condensed:g=!1,productNumber:h}=e,{classes:x,cx:A}=F(),{isBlueB2BUser:y}=(0,d.iZ)(),[v,f]=(0,n.useState)(!1);(0,n.useEffect)(()=>{f(!0)},[]);let{data:b,loading:T}=(0,r.wJ)({variables:{dispType:a,productKey:c,brand:u,...y?{erpType:s.G.Blue}:{}},ssr:!1,fetchPolicy:"no-cache",skip:!v,onCompleted:e=>{var t;e&&(null==e?void 0:null===(t=e.getRecentlyViewedProducts)||void 0===t?void 0:t.products.length)!==0||(0,o.sendEmptyRecommendationGA4Event)({action:"pdp load",detail:c.toLowerCase(),section:"recently viewed products",productId:null==h?void 0:h.toLowerCase(),productBrand:u.toLowerCase()})}}),E=((null==b?void 0:null===(t=b.getRecentlyViewedProducts)||void 0===t?void 0:t.products)||[]).slice(0,10),j=E.length>0;return((0,n.useEffect)(()=>{m&&m(j)},[j,T]),T)?null:j?(0,i.jsx)("div",{className:A(l,x.recentlyViewedContainer),children:(0,i.jsx)(w,{type:C.j.RecentlyViewed,products:E,slidesToShow:p,condensed:g})}):null}},838882:(e,t,a)=>{a.d(t,{h:()=>c});var i=a(637876),n=a(14232),r=a(421970),l=a(599220),o=a(327651),s=a(830915);let d=(0,l.makeStyles)()(e=>({multiCountryPricingTabs:{marginBottom:e.spacing(5)}}));function c(e,t){let[a,l]=(0,n.useState)([]),{classes:c}=d(),u=(0,n.useCallback)(e=>{var t;return null==o?void 0:null===(t=o[e])||void 0===t?void 0:t.displayName},[o]);return(0,n.useEffect)(()=>{var a;l((null==e?void 0:null===(a=e.getPricingForMultiCountryProducts)||void 0===a?void 0:a.map((e,a)=>({label:u(null==e?void 0:e.country),selectCallback:()=>t("",(null==e?void 0:e.country)||(0,s.stringify)(a)),component:(0,i.jsx)("div",{})})))||[])},[e]),(0,i.jsx)("div",{className:c.multiCountryPricingTabs,children:(0,i.jsx)(r.A,{tabs:a})})}},840002:(e,t,a)=>{a.d(t,{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"}}},844238:(e,t,a)=>{a.d(t,{k:()=>r});var i=a(317685),n=a(588373);let r=(e,t)=>{var a,r,l;let{userSession:o}=(0,i.j)(),s=(null==o?void 0:null===(a=o.language)||void 0===a?void 0:a.toLowerCase())||"",d=(null==o?void 0:null===(r=o.country)||void 0===r?void 0:r.toUpperCase())||"",{data:c}=(0,n.kN)({variables:{country:e||"",locale:"en"===s?"en_US":"".concat(s,"_").concat(d)}});if(!e||!t)return null;let u=null==c?void 0:null===(l=c.getCountryStates)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.stateCode)===t);return null==u?void 0:u.stateName}},862599:(e,t,a)=>{a.d(t,{A:()=>M});var i=a(637876),n=a(330566),r=a(211148),l=a(14232),o=a(599220),s=a(406995),d=a(370475),c=a(877018),u=a(29468),p=a(677660),m=a(852413),g=a(197710),h=a(757477),x=a(44509),A=a(308733),y=a(834669),v=a(971605),f=a(49691),b=a(485366),T=a(771007);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:t}=e,{casNumber:a,molecularWeight:n,aliases:l,__typename:o}=t,s=l.find(e=>e.key===g.VT.EcNumber),d=l.find(e=>e.key.includes(g.VT.BeilsteinRegistryNumber)),{classes:u}=C(),m=(0,r.rd)(),x=(0,g.h2)({focus:m.query.focus}),E=x.focus===g.Xc.StructureSearch?(0,b.j5)(t.products):null,j=(null==o?void 0:o.toLowerCase())===p.RL.Substance;return(0,i.jsxs)("dl",{className:u.root,children:[a&&(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:t.id,label:a,searchValue:(0,g.aE)(a),searchFocusType:(0,g.UQ)(x.focus),productSearchType:g.mI.CasNumber,classes:u.MetaFormatting,onClick:()=>(0,T.sendProductInfoInteractionEvent)((0,v.uW)({action:"cas number",detail:a,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})})]}),s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"body2",className:u.MetaFormatting,children:[(0,i.jsx)(A.A,{...y.A.EC_NO}),": "]})}),(0,i.jsx)("dd",{children:(0,i.jsx)(f.m5,{substanceId:t.id,searchValue:s.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:s.value,focus:x.focus}))})})]}),d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{children:(0,i.jsxs)(c.A,{component:"div",variant:"body2",className:u.MetaFormatting,children:[(0,i.jsx)(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=a(354034),_=a(340352),S=a(259131),N=a(192881),I=a(336820),R=a(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:t,substance:a,substancePosition:o}=e,{products:v,id:f,synonyms:b,images:C,linearFormula:M,empiricalFormula:P,legalName:L,__typename:O}=a,{classes:B,cx:w}=k(),F=(0,r.rd)(),D=(0,g.h2)({focus:F.query.focus}),W=a.images[0]||{},U=v.map(e=>({...e,images:C})),H=v[0],z=null==H?void 0:H.isMarketplace,G=(null==H?void 0:H.displaySellerName)||(0,g.t1)(null==H?void 0:H.attributes),V=(null==H?void 0:H.marketplaceSellerId)||"",Y=z&&!!G&&!!V,q=F.query.catalogType,K=(0,g.vN)(null!=q?q:D.focus),[$,Q]=(0,l.useMemo)(()=>M?[M,y.A.LINEAR_FORMULA]:P?[P,y.A.EMPIRICAL_FORMULA_HILL_NOTATION]:[null,null],[P,M]),X=(0,n.A)(),Z=(0,s.A)(X.breakpoints.up(_.Rp.MD),{defaultMatches:!0})?S.Ay:j.A,J=v.some(e=>e.features.length>0),ee=v.length,[et,ea]=(0,l.useState)(!1),ei=()=>{ea(e=>!e)},en=(null==O?void 0:O.toLowerCase())===p.RL.Substance,[er,el]=(0,l.useState)(!1),eo=e=>{el(!er),er||(0,T.sendProductInfoInteractionEvent)({action:"view image",detail:a.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:()=>eo(!0),children:(0,i.jsx)(x.A,{className:B.thumbnail,alt:(null==W?void 0:W.altText)||a.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:()=>eo(!1),onKeyPress:()=>eo(!1),tabIndex:0,children:(0,i.jsx)(A.A,{...y.A.ALL_PHOTOS})}),(0,i.jsxs)("span",{className:B.imageText,children:["(",a.images.length,")"]})]})]}):null}),(0,i.jsxs)("div",{className:B.flexGrow,children:[(0,i.jsx)(c.A,{id:"substance-name",component:"h2",className:w(B.name,B.breakWord),children:ee>1?(0,i.jsx)(m.N,{...r.SL.index(f,K),children:(0,i.jsx)("a",{"aria-hidden":!0,"data-testid":"substance-name-link-".concat(a.name),id:"substance-link",onClick:t,role:"button",children:(0,i.jsx)(h.A,{value:L||a.name})})}):(0,i.jsx)(h.A,{value:L||a.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&&$&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.A,{component:"span",variant:"body2",className:B.labelForDefinition,children:[(0,i.jsx)(A.A,{...Q}),": "]}),(0,i.jsx)(c.A,{component:"span",variant:"body2",className:B.definition,children:(0,i.jsx)(h.A,{className:B.breakWord,value:$})})]}),(0,i.jsx)(E,{substance:a})]}),Y&&(0,i.jsxs)("div",{className:B.sellerInfo,children:[(0,i.jsx)(A.A,{...y.A.CONTACT_SELLER_SHIPPED_SOLD})," ",(0,i.jsx)(m.N,{...r.kJ.index(G,V),children:(0,i.jsx)("a",{children:G})}),(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}),et&&(0,i.jsx)(N.A,{open:et,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:a.id,substanceName:a.name,substancePosition:o,substanceKeyAttributes:a.keyAttributes})}),(0,i.jsx)(I.A,{isOpen:er,onClose:el,images:a.images,name:a.name,productId:H.productNumber})]})}},868351:(e,t,a)=>{a.d(t,{A:()=>o});var i=a(637876),n=a(524315),r=a(599220);a(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}})),o=e=>{let{items:t,selectedChip:a,unavailableChips:r,onSelect:o,id:s}=e,{classes:d,cx:c}=l();return(0,i.jsx)("div",{className:d.chipDisplay,id:s,children:t.map((e,t)=>{let{label:l,value:s}=e,u=s===a,p=null==r?void 0:r.includes(s);return(0,i.jsx)(n.A,{label:l,variant:"outlined",color:u?"primary":"default",clickable:!0,onClick:()=>o(s),className:c(d.chip,{[d.chip_selected]:u,[d.chip_unavailable]:p,[d.chip_selected_unavailable]:u&&p})},"".concat(t,"-").concat(l,"-").concat(s))})})}},870183:(e,t,a)=>{a.d(t,{A:()=>l});var i=a(637876),n=a(14232),r=a(771007);let l=e=>{var t;let{videoUrl:a,posterUrl:l,css:o,name:s,brand:d,productId:c,autoPlay:u}=e,p=(0,n.useRef)(null),[m,g]=(0,n.useState)(0),[h,x]=(0,n.useState)(!1),A=Math.round((null===(t=p.current)||void 0===t?void 0:t.duration)||0),y=Math.round(m/A*100)||0,v=e=>{e.forEach(e=>{if(e.isIntersecting)x(!0);else{var t;x(!1),null===(t=p.current)||void 0===t||t.pause()}})},f=e=>{(0,r.sendVideoInteractionEvent)({action:e,videoCurrentTime:m,videoDuration:A,videoPercent:y,videoUrl:a,visible:h,productId:c,productName:s,productBrand:d})};return(0,n.useEffect)(()=>{(25===y||50===y||75===y)&&f("progress"),100===y&&f("complete")},[y]),(0,n.useEffect)(()=>{let e=new IntersectionObserver(v,{root:null,rootMargin:"0px",threshold:0});p.current&&e.observe(p.current);let t=()=>{if(document.hidden){var e;null===(e=p.current)||void 0===e||e.pause()}};return document.addEventListener("visibilitychange",t),()=>{p.current&&e.unobserve(p.current),document.removeEventListener("visibilitychange",t)}},[p]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("video",{className:o,ref:p,controls:!0,autoPlay:!!u,preload:"metadata",poster:l,onTimeUpdate:()=>{var e;return g(Math.round((null===(e=p.current)||void 0===e?void 0:e.currentTime)||0))},onPlay:()=>f("start"),onPause:()=>100!==y&&f("pause"),children:(0,i.jsx)("source",{src:a,type:"video/mp4"})})})}},873431:(e,t,a)=>{a.d(t,{AW:()=>u});var i=a(428888);a(637876);var n=a(182897);a(14232);var r=a(154431);function l(){let e=(0,i._)(["\n fragment DealerData on Dealer {\n id\n organizationName\n street1\n street3\n street4\n street5\n city\n phone\n email\n countryCode\n stateCode\n firstName\n lastName\n buildingRoom\n attentionTo\n department\n postalCode\n approverDealerLogonid\n approvalNeeded\n soldToPartner\n shipToPartner\n billToPartner\n payerPartner\n salesOrg\n poNumber\n dealerType\n productGroup\n isPreferredDealer\n availableProducts\n}\n "]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n query Dealers($countryCode: String!, $stateCode: String, $searchTerm: String) {\n getDealers(\n countryCode: $countryCode\n stateCode: $stateCode\n searchTerm: $searchTerm\n ) {\n ...DealerData\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(l()),c=(0,n.J1)(o(),d);function u(e){let t={...s,...e};return r.IT(c,t)}},876209:(e,t,a)=>{a.d(t,{wJ:()=>c});var i=a(428888);a(637876);var n=a(182897),r=a(354064);a(14232);var l=a(154431);function o(){let e=(0,i._)(["\n query RecentlyViewedProducts($brand: String!, $productKey: String!, $dispType: AnalyticsDispType!, $erpType: String) {\n getRecentlyViewedProducts(\n input: {brand: $brand, productKey: $productKey, dispType: $dispType, erpType: $erpType}\n ) {\n products {\n ...DynamicProduct\n }\n }\n}\n ",""]);return o=function(){return e},e}let s={},d=(0,n.J1)(o(),r.z);function c(e){let t={...s,...e};return l.IT(d,t)}},888468:(e,t,a)=>{a.r(t),a.d(t,{FacetChangeAction:()=>iy,SearchQueryContext:()=>iA,default:()=>i_,useSearchQuery:()=>ib});var i=a(637876),n=a(14232),r=a(685576),l=a(211148),o=a(606666),s=a(197710),d=a(677660),c=a(445249),u=a(79143),p=a(63724),m=a(599220),g=a(126886),h=a(166791),x=a(771007),A=a(977328),y=a.n(A),v=a(877742),f=a(89099),b=a(963752),T=a(943564),C=a(139324),E=a.n(C),j=a(668158);let{publicRuntimeConfig:{canonicalUrlPrefix:_}}=E()(),S=e=>{let{metadata:t}=e,a=(0,v.A)(),{asPath:n,query:{page:r,term:o,focus:d,type:c,country:u,language:p}}=(0,f.useRouter)(),m=(0,b.mE)(),g=d===s.Xc.StructureSearch,h=o&&!g?"".concat(o.charAt(0).toUpperCase()).concat(o.slice(1)):a.formatMessage({id:"STRUCTURE_SEARCH",defaultMessage:"Structure Search"}),x="".concat(h," | ").concat((0,j.SI)()),A={[s.mI.CasNumber]:"CAS",[s.mI.EgecNumber]:"EC/EG",[s.mI.MdlNumber]:"MDL"};c&&A[c]&&(x="".concat(A[c]," ").concat(x));let C="page=".concat(r),E=n.indexOf(C),S=n.slice(0,E),N=n.slice(E+C.length,n.length),I="".concat(S,"page=").concat(Number(r)+1).concat(N),R="".concat(S,"page=").concat(Number(r)-1).concat(N),k=g?"Structure search results":"Find ".concat(o," and related products for scientific research at ").concat(m),M={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Search",item:"".concat(_,"/").concat(u,"/").concat(p).concat(l.wO.index())},{"@type":"ListItem",position:2,name:"".concat(o),item:"".concat(_).concat(n)}]};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(y(),{children:[(0,i.jsx)("title",{"data-testid":"head-title",children:x}),Number(r)!==(null==t?void 0:t.numPages)?(0,i.jsx)("link",{rel:"next",href:I}):null,Number(r)>1?(0,i.jsx)("link",{rel:"prev",href:R}):null]}),(0,i.jsx)(T.L,{description:k,keywords:[o||"","search","sigma","aldrich","millipore",m],canonicalParamAllowed:e=>["term","focus","page","perpage","sort","type"].includes(e),schema:M})]})};var N=a(269139),I=a(308733),R=a(877018),k=a(554753),M=a(733086),P=a(684768),L=a(364272),O=a(757477),B=a(835967);let w=(0,B.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"}}),F=e=>e?e.toLowerCase().replace("facet_web_","").replace(/_/g," "):"",D=e=>{let{id:t}=e,{formatMessage:a}=(0,v.A)();if(!t)return null;if(!w[t])return(0,i.jsx)(i.Fragment,{children:t.toLowerCase().replace("facet_web_","").replace(/_/g," ")});let n=a(w[t]);return(0,i.jsx)(O.A,{value:n})};var W=a(340352),U=a(55011),H=a(343965);let z=(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[400]),[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)}}})),G=e=>{let{label:t,onDelete:a,dataTestId:n,ariaLabel:r}=e,{classes:l}=z(),o="string"==typeof t?(0,i.jsx)("span",{children:t}):t;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:o}),(0,i.jsx)(U.A,{"aria-label":r,className:l.closeBtn,onClick:a,children:(0,i.jsx)(H.A,{fontSize:"inherit",color:"primary"})})]})})},V=(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[400]),borderRadius:5,marginBottom:e.spacing(5),flexDirection:"column"},facetsMenuLabel:{whiteSpace:"nowrap",marginRight:e.spacing(4),fontWeight:e.typography.fontWeightMedium,paddingBottom:e.spacing(2)}})),Y=e=>{let{facetLabel:t,facetKey:a,facets:r}=e,o=(0,l.rd)(),{classes:d}=V(),c=(0,v.A)(),u=(0,s.h2)({focus:o.query.focus}),p=(0,n.useCallback)((e,t)=>{if(!(null==t?void 0:t.length)&&u.focus===s.Xc.Chromatograms&&"FACET_WEB_TITERTEST_APP"===e.toUpperCase())return c.formatMessage(k.A[e.toUpperCase()]);if(!t)return"";let a=t.find(t=>t.key===e);return(null==a?void 0:a.key)&&k.A[a.key.toUpperCase()]?c.formatMessage(k.A[a.key.toUpperCase()]):F(null==a?void 0:a.key)},[c])(a,r);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.A,{className:d.facetMarkup,value:"".concat(p,":")}),(0,i.jsx)(O.A,{value:t})]})},q=(e,t)=>{t.handleSelectedFacetChange({key:e.key,options:[e.label],action:iy.Remove});let a="".concat(e.key,":").concat(e.label),i=(0,P.g)({action:"remove filter",component:"filter ribbon",element_type:"filter ribbon box",element_text:null==a?void 0:a.toLowerCase(),filter_name:e.label,filter_name_count:e.count,filter_category:e.key});(0,L.BI)({payload:i})},K=e=>{let{facets:t,isStructureSearch:a}=e,[n,r,o]=ib(),{isLargeDesktop:s,isDesktop:d}=(0,W.Qs)(),c=(0,N.A)(t,"options"),u=s?40:23*!!d,p=(0,N.A)(r,e=>e.options.map(t=>{let a=c.find(e=>e.value===t);return{key:e.key,label:u&&(null==t?void 0:t.length)>u?"".concat(t.slice(0,u),"..."):t,count:null==a?void 0:a.count}})),{formatMessage:m}=(0,v.A)(),g=(0,l.rd)(),{classes:h}=V(),x=n.term&&!a&&!(0,M._)(g);return 0!==p.length||x?(0,i.jsxs)("div",{className:h.facetsMenuWrapper,"data-testid":"facet-selections",children:[(0,i.jsx)(R.A,{variant:"caption",className:h.facetsMenuLabel,children:(0,i.jsx)(I.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)(G,{ariaLabel:"".concat(m(k.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(n.term," ").concat(m(k.A.SELECTION_CHIP_REMOVE_TO_PERFORM_FACET_SEARCH)),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:h.searchTerm,children:[m(k.A.KEYWORD),":"]}),(0,i.jsx)("span",{children:"'".concat(n.term,"'")})]}),dataTestId:"query-term-chip",onDelete:()=>o.handleTermRemoval(r,t)})}),t&&p.map(e=>(0,i.jsx)("div",{className:h.chipWrapper,children:(0,i.jsx)(G,{ariaLabel:"".concat(m(k.A.SELECTION_CHIP_REMOVE_FILTER_1)," ").concat(e.label," ").concat(m(k.A.SELECTION_CHIP_REMOVE_FILTER_2)),onDelete:()=>q(e,o),label:(0,i.jsx)(Y,{facetLabel:e.label,facetKey:e.key,facets:t})})},"".concat(e.key,":").concat(e.label)))]})]}):null};var $=a(428888),Q=a(182897),X=a(154431);function Z(){let e=(0,$._)(["\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 attributes {\n id\n label\n value\n }\n brand\n brandKey\n citationCount\n displayBrand\n displaySellerName\n images {\n altText\n seq\n url\n }\n isMarketplace\n legalName\n legalNameSuffix\n marketplaceSellerId\n marketplaceOfferId\n molecularWeight\n productKey\n productName\n productNameSuffix\n productNumber\n synonyms\n substance {\n substanceId\n substanceName\n casNumber\n substanceCount\n }\n keyAttributes {\n key\n label\n values\n }\n sds {\n type\n locale\n }\n erp_type\n }\n facets {\n key\n numToDisplay\n isHidden\n isCollapsed\n multiSelect\n prefix\n options {\n value\n count\n }\n }\n metadata {\n count\n }\n }\n}\n "]);return Z=function(){return e},e}let J={},ee=(0,Q.J1)(Z());var et=a(538164),ea=a(192520),ei=a(723604),en=a(116928);let er=(0,n.createContext)(void 0),el=()=>{let e=(0,n.useContext)(er);if(!e)throw Error("useSearchContext must be used within a SearchProvider");return e},eo=e=>{var t;let{children:a}=e,[r,l]=ib(),o=(0,f.useRouter)(),[,c]=(0,en.A)([ei.PK.SrpExperience]),u=r.focus,p=r.term||"",m=(0,n.useMemo)(()=>(null==r?void 0:r.type)==="cas_number",[null==r?void 0:r.type]);(0,n.useEffect)(()=>{m&&(c(ei.PK.SrpExperience,"old",{path:"/"}),o.replace(o.asPath))},[m]);let g=u===s.Xc.StructureSearch,h=p===M.D?encodeURIComponent(null===(t=r.facet[0])||void 0===t?void 0:t.split(":")[1]):p,x=function(e){let t={...J,...e};return X.IT(ee,t)}({skip:u!==s.Xc.Products,variables:{term:h||"",facets:l,count:10,page:r.page}}),A=u===s.Xc.SiteContent?d.md.SiteContent:d.md.Documents,y=(0,et.ot)({skip:u===s.Xc.Products,variables:{searchTerm:p,page:r.page,selectedFacets:l,contentSearchType:A}}),v=(0,ea.Hm)({skip:!g,variables:{type:r.type,term:r.term||"",format:r.format,sort:r.sort,pagination:{page:r.page,perPage:r.perpage},filters:(0,s.R5)(r.filters),selectedFacets:l,catalogType:r.catalogType}}),b=(0,n.useMemo)(()=>{var e,t,a,i,n,r,l,o,d,c,p,m,h,A,f,b,T,C;if(u===s.Xc.Products)return{productResults:null===(d=x.data)||void 0===d?void 0:d.getNewProductSearchResults,contentResults:void 0,loading:x.loading,metadata:null===(p=x.data)||void 0===p?void 0:null===(c=p.getNewProductSearchResults)||void 0===c?void 0:c.metadata,facets:null===(h=x.data)||void 0===h?void 0:null===(m=h.getNewProductSearchResults)||void 0===m?void 0:m.facets,hasResults:!!(null===(b=x.data)||void 0===b?void 0:null===(f=b.getNewProductSearchResults)||void 0===f?void 0:null===(A=f.metadata)||void 0===A?void 0:A.count)};if(g){let e=null===(T=v.data)||void 0===T?void 0:T.getStructureSearchResults;return{structureResults:e,loading:v.loading,metadata:null==e?void 0:e.metadata,facets:null==e?void 0:e.facets,hasResults:(null!==(C=null==e?void 0:e.items.length)&&void 0!==C?C:0)>0}}return{productResults:void 0,contentResults:null===(e=y.data)||void 0===e?void 0:e.getContentDocuments,loading:y.loading,metadata:null===(a=y.data)||void 0===a?void 0:null===(t=a.getContentDocuments)||void 0===t?void 0:t.metadata,facets:null===(n=y.data)||void 0===n?void 0:null===(i=n.getContentDocuments)||void 0===i?void 0:i.facets,hasResults:!!(null===(o=y.data)||void 0===o?void 0:null===(l=o.getContentDocuments)||void 0===l?void 0:null===(r=l.metadata)||void 0===r?void 0:r.itemCount)}},[u,x,y]),T=(0,n.useMemo)(()=>({...b,isStructureSearch:g,queryTerm:h}),[b,g,h]);return(0,i.jsx)(er.Provider,{value:T,children:a})};var es=a(370475),ed=a(365824),ec=a(387905),eu=a(387505),ep=a(614098);let em=(0,m.makeStyles)()(e=>({facetGroupHeader:{alignItems:"center",borderBottom:"1px solid ".concat(e.palette.grey[400]),cursor:"pointer",display:"flex",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}})),eg=e=>{let{defaultCollapse:t=!1,facetKey:a,children:r,isSubstanceFacets:l}=e,{classes:o,cx:s}=em(),[d,c]=(0,n.useState)(t);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:s(o.facetGroupHeader,l?o.headerBorderBottom:""),onClick:()=>{c(!d),(0,P.y)(d?"collapse":"expand",a)},children:[(0,i.jsx)("span",{className:l?o.substanceFacetGroupLabel:o.facetGroupLabel,children:a&&(0,i.jsx)(D,{id:a.toUpperCase()})}),(0,i.jsx)("span",{className:o.facetGroupCollapse,children:(0,i.jsx)(ep.A,{className:o.collapseIcon,showGroup:d,id:d?"facet-group-".concat(a,"-hide"):"facet-group-".concat(a,"-show")})})]}),d&&r]})};var eh=a(330566),ex=a(406995),eA=a(521488),ey=a(236850),ev=a(916652);let ef=(0,m.makeStyles)()(e=>({facetSearchBoxContainer:{marginTop:e.spacing(3)},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"}})),eb=e=>{let{facet:t,selectedOptions:a,handleFacetChange:r}=e,[l,o]=(0,n.useState)(null),[s,d]=(0,n.useState)(""),{classes:c,cx:u}=ef(),p=(0,eh.A)(),{formatMessage:m}=(0,v.A)(),g=(0,ex.A)(p.breakpoints.down("md")),h=e=>{let t=e.split("_").filter(e=>"facet"!==e&&"web"!==e).map(e=>e[0].toUpperCase()+e.substring(1)).join(" ");return t.length>10&&g?t.slice(0,10).concat("..."):t},x=()=>{d(""),o(null)};(0,n.useEffect)(()=>{x()},[r]);let A={};return t.options.map(e=>A[e.value]=e.count),(0,i.jsx)("div",{className:c.facetSearchBoxContainer,children:(0,i.jsx)(eA.A,{disablePortal:!0,classes:{root:c.facetSearchInput,listbox:c.facetSearchListBox,option:c.facetSearchListBoxOption,noOptions:c.facetSearchListBoxNoOptions},options:Object.keys(A),renderOption:(e,t)=>(0,i.jsxs)("li",{...e,children:[(0,i.jsx)(O.A,{value:t})," "]}),noOptionsText:m(w.NO_FACETS_FOUND),renderInput:e=>(0,i.jsx)("div",{className:c.facetSearchInputContainer,ref:e.InputProps.ref,children:(0,i.jsx)(ey.A,{ref:e.InputProps.ref,inputProps:e.inputProps,placeholder:"Search ".concat(h(t.key)),disableUnderline:!0,fullWidth:!0,endAdornment:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(es.A,{className:u(c.Clear,{[c.showClear]:""!==s}),onClick:x,children:(0,i.jsx)(H.A,{fontSize:"inherit"})}),(0,i.jsx)(ev.A,{className:c.searchIcon})]})})}),inputValue:s,onInputChange:(e,t)=>{d(t)},value:l,onChange:(e,i)=>{o(i),!i||a.includes(i)||r(t.key,i,!1,"search box")}})})};var eT=a(670114),eC=a(421289);let eE=(0,m.makeStyles)()(e=>({icon:{display:"inline-flex",fontSize:e.typography.pxToRem(28),marginLeft:e.spacing(2)}})),ej=e=>{let{value:t}=e,{classes:a}=eE(),n=t===s.u2.SameDay?(0,i.jsx)(eC.A,{color:"secondary",fontSize:"inherit"}):(0,i.jsx)(eT.A,{color:"secondary"});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I.A,{id:t.toUpperCase().replace(" ","_"),defaultMessage:t}),(0,i.jsx)("span",{className:a.icon,children:n})]})},e_=(0,m.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:{padding:e.spacing(1,2,1,3),alignSelf:"flex-start"},shippingIcon:{display:"inline-flex",fontSize:e.typography.pxToRem(28),marginLeft:e.spacing(2)},facetLabel:{display:"flex",alignItems:"center"},collapseInner:{marginTop:e.spacing(3)}}));var eS=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}(eS||{});let eN=e=>{let{facet:t,showMore:a,substanceFacetChange:r,selectedSubstanceFacetOptions:l}=e,{classes:o}=e_(),s=ib(),d=s[1],c=s[2],u=l||(d.find(e=>{let{key:a,options:i}=e;return t.prefix&&(i[0]=i[0].replace(t.prefix,"")),a===t.key})||{options:[]}).options,[p,m]=(0,n.useState)(!1),g=a||p?t.options:t.options.slice(0,t.numToDisplay||6);p&&g.length===t.numToDisplay&&m(!1);let h=p?"show less":"show more",x="facet_shipping"===t.key,A=(e,a,i,n)=>{r?r({key:t.key,options:t.prefix?["".concat(t.prefix).concat(a)]:[a]},i):c.handleSelectedFacetChange({key:t.key,options:[a],action:i?iy.Remove:iy.Add,multiSelect:t.multiSelect||!1,prefix:t.prefix});let l=(0,P.g)({action:"".concat(i?"remove":"add"," filter"),component:"left rail",element_type:n,element_text:a,filter_name:a,filter_category:e});(0,L.BI)({payload:l})},y=u.map(e=>e.split("|")[0]),v=r?y.includes("".concat(t.key)):u.length>0,f=!t.isCollapsed||v;return(0,i.jsx)("div",{className:o.root,children:(0,i.jsxs)(eg,{defaultCollapse:f,facetKey:t.key,isSubstanceFacets:!!r,children:[t.key in eS&&(0,i.jsx)(eb,{facet:t,selectedOptions:u,handleFacetChange:A}),(0,i.jsxs)("div",{className:o.collapseInner,children:[g.map(e=>{let{value:a}=e,n=u.indexOf(a)>=0||u.indexOf("".concat(t.key,"|").concat(a))>=0||u.indexOf("".concat(t.key,"|").concat(t.prefix).concat(a))>=0;return(0,i.jsx)("div",{children:(0,i.jsx)(ed.A,{"aria-label":a,"data-testid":"srp-facet-".concat(a),value:a,checked:n,classes:{root:o.checkboxRoot},formControlClasses:{label:o.formControlLabel},onChange:()=>A(t.key,a,n,"checkbox"),label:(0,i.jsx)("span",{className:o.facetLabel,children:x?(0,i.jsx)(ej,{value:e.value}):(0,i.jsx)(O.A,{value:e.value})})})},a)}),(t.options.length>g.length||p)&&(0,i.jsx)(es.A,{onClick:()=>{m(!p),(0,P.y)(h,t.key,h)},"aria-expanded":p,"aria-label":h,className:o.showMore,id:p?"facet-group-".concat(t.key,"-show-less"):"facet-group-".concat(t.key,"-show-more"),children:p?(0,i.jsxs)("div",{children:[(0,i.jsx)(I.A,{...w.SHOW_LESS}),(0,i.jsx)(ec.A,{className:o.showMoreIcon})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)(I.A,{...w.SHOW_MORE}),(0,i.jsx)(eu.A,{className:o.showMoreIcon})]})})]})]})},t.key)};var eI=a(245756),eR=a(971538);let ek=()=>{let e=(0,eh.A)();return(0,i.jsx)("div",{children:[,,,].fill({}).map((t,a)=>(0,i.jsxs)(eI.A,{mb:6,children:[(0,i.jsx)(eI.A,{mb:4,children:(0,i.jsx)(eR.A,{light:!0})}),(0,i.jsx)(eI.A,{height:22,width:.75,borderRadius:1,bgcolor:e.palette.grey["50"],mb:4}),[,,,,,].fill({}).map((t,a)=>(0,i.jsxs)(eI.A,{display:"flex",alignItems:"center",pr:4,mb:4,children:[(0,i.jsx)(eI.A,{height:24,width:24,borderRadius:1,bgcolor:e.palette.grey["50"],mr:4}),(0,i.jsx)(eI.A,{flex:1,height:20,width:20,borderRadius:1,bgcolor:e.palette.grey["50"]})]},a))]},a))})},eM=e=>{let{loading:t,error:a,facets:r,showMore:l,substanceFacetChange:o,selectedSubstanceFacetOptions:s}=e;return t?(0,i.jsx)(ek,{}):a||!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)(eN,{facet:e,allFacets:r,showMore:l,substanceFacetChange:o,selectedSubstanceFacetOptions:s},e.key)},e.key))})},eP=(0,m.makeStyles)()(e=>({hideOnMobile:{[e.breakpoints.down("md")]:{display:"none"}},searchFacets:{margin:0},searchFacetsInner:{height:"calc(100% - ".concat(e.spacing(5),")")}})),eL=()=>{let{classes:e,cx:t}=eP(),{facets:a,loading:n,isStructureSearch:r}=el();return(0,i.jsx)("div",{className:t(e.hideOnMobile,e.searchFacets),children:(0,i.jsxs)("div",{className:e.searchFacetsInner,children:[(0,i.jsx)(K,{facets:a,isStructureSearch:r}),(0,i.jsx)(eM,{loading:n,facets:a})]})})};var eO=a(494295),eB=a(327651),ew=a(938554),eF=a(247378),eD=a(834669),eW=a(111569),eU=a(19793),eH=a(98868),ez=a(852413);let eG=(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)}})),eV=()=>{let{classes:e}=eG(),{formatMessage:t}=(0,v.A)();return(0,i.jsxs)(p.A,{xs:12,className:e.sectionWrapper,children:[(0,i.jsx)(R.A,{component:"div",className:e.heading,children:t(eD.A.NEED_ADDITIONAL_HELP)}),(0,i.jsx)(eR.A,{className:e.headerDivider}),(0,i.jsx)("div",{className:e.sectionContent,children:(0,i.jsx)(ez.N,{href:l.mA.customerSupport(),passHref:!0,children:(0,i.jsx)(ew.A,{className:e.textLink,children:t(eD.A.CUSTOMER_SUPPORT)})})}),(0,i.jsx)(R.A,{component:"div",className:e.heading,children:t({id:"ALDRICH_MARKET_SELECT",defaultMessage:"Aldrich\xae Market Select"})}),(0,i.jsx)(eR.A,{className:e.headerDivider}),(0,i.jsxs)("div",{className:e.sectionContent,children:[(0,i.jsxs)(ew.A,{className:e.textLink,href:"http://www.aldrichmarketselect.com",target:"_blank",children:[t({id:"ALDRICH_MARKET_SELECT",defaultMessage:"Aldrich\xae Market Select"}),","," "]}),t(eD.A.ALDRICH_MARKET_SELECT_NSR)]})]})},eY=(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 eq=a(796707),eK=a(829086),e$=a(188124),eQ=a(954203),eX=a(444274),eZ=a(266896);let eJ=(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)}}})),e0=e=>{let t;return e&&(t="Summary: "===e.slice(0,9)?e.slice(9,e.length-1):null),t},e1=e=>{let{gene:t}=e,{classes:a}=eJ(),r=e0(t.summary),[o,d]=(0,n.useState)(!1),c=t.variants.reduce((e,t,a,i)=>{let n=a===i.length-1?"":", ";return e+("".concat(t.commonName," ").concat(t.symbol," (").concat(t.geneId,")")+n)},""),u=c?c.split(" "):[],m=r?r.split(" "):[];return(0,i.jsxs)("div",{className:a.root,"data-testid":"gene-card",children:[(0,i.jsxs)("div",{className:a.geneWrapper,children:[(0,i.jsx)("div",{className:a.thumbnail,children:(0,i.jsx)(eK.A,{style:{width:"100%",height:"100%"}})}),(0,i.jsxs)("div",{className:a.detail,children:[(0,i.jsx)(ez.N,{...l.U8.index(t.symbol),passHref:!0,children:(0,i.jsx)(ew.A,{className:a.title,children:t.symbol})}),t.name&&(0,i.jsx)(eq.A,{mb:4,fontSize:16,children:t.name}),t.synonyms.length>0&&(0,i.jsxs)("div",{className:a.synonymsWrapper,children:[(0,i.jsx)(p.A,{xs:3,md:2,children:(0,i.jsx)("div",{className:a.geneDataTitle,children:(0,i.jsx)(I.A,{...eD.A.SYNONYMS,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(p.A,{xs:9,md:10,"data-testid":"gene-synonyms",children:(0,i.jsx)("div",{className:a.geneDataRow,children:t.synonyms.join(", ")})})]})]})]}),(0,i.jsx)("div",{className:a.speciesSectionWrapper,children:(0,i.jsxs)(p.A,{container:!0,children:[t.variants.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.A,{xs:3,md:2,children:(0,i.jsx)("div",{className:a.geneDataTitle,children:(0,i.jsx)(I.A,{id:"SPECIES",defaultMessage:"Species",children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(p.A,{xs:9,md:10,"data-testid":"gene-variants",children:(0,i.jsx)(eq.A,{lineHeight:1.7,className:o?a.geneDataRowExpanded:a.geneDataRow,children:(0,i.jsx)(e$.A,{allowShowMore:!1,wordCount:10,showFullText:o,children:c})})})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.A,{xs:3,md:2,children:(0,i.jsx)("div",{className:a.geneDataTitle,children:(0,i.jsx)(I.A,{...eD.A.SUMMARY,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})})}),(0,i.jsx)(p.A,{xs:9,md:10,"data-testid":"gene-summary",children:(0,i.jsx)(eq.A,{lineHeight:1.7,className:o?a.geneDataRowExpanded:a.geneDataRow,children:(0,i.jsx)(e$.A,{allowShowMore:!1,wordCount:10,showFullText:o,children:r})})})]}),u.length-1>10||m.length-1>15?(0,i.jsx)(es.A,{"data-testid":"gene-show-more",className:a.expandCta,onClick:()=>d(!o),children:o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I.A,{...eD.A.SHOW_LESS}),(0,i.jsx)(eQ.A,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I.A,{...eD.A.SHOW_MORE}),(0,i.jsx)(eX.A,{})]})}):null]})}),t.relatedCategories.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:a.relatedProductsTitle,children:(0,i.jsx)(I.A,{...eD.A.RELATED_PRODUCTS,children:e=>(0,i.jsxs)("span",{children:[e,":"]})})}),(0,i.jsx)("div",{id:"gene-categories","data-testid":"gene-categories",className:a.relatedProductsRow,children:t.relatedCategories.map(e=>"shRNA"!==e.name&&"siRNA"!==e.name&&(0,i.jsx)(ez.N,{...l.U8.index(t.symbol,e.name),passHref:!0,children:(0,i.jsx)(ew.A,{color:"primary",children:e.name})},e.name)||("shRNA"===e.name||"siRNA"===e.name)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ez.N,{...l.VO.index(e.name,t.symbol),passHref:!0,children:(0,i.jsx)(ew.A,{color:"primary",children:e.name})},e.name)}))})]}),t.name&&(0,i.jsx)("div",{className:a.relatedGenesLinkWrapper,children:(0,i.jsx)(ez.N,{href:"".concat(l.wO.searchResults(t.name)).concat((0,s.$c)({term:t.name,focus:s.Xc.Genes})),passHref:!0,children:(0,i.jsxs)(ew.A,{color:"primary",className:a.relatedGenesLink,children:[(0,i.jsx)(I.A,{...eD.A.SEE_ALL_RELATED_GENES}),(0,i.jsx)(eZ.A,{className:a.caretRightIcon})]})})})]})};var e2=a(79965);let e4=(0,m.makeStyles)()(e=>({notFindingText:{fontWeight:e.typography.fontWeightBold}})),e7=()=>{let{classes:e}=e4();return(0,i.jsx)(e2.A,{alertMessage:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R.A,{className:e.notFindingText,children:(0,i.jsx)(I.A,{id:"AI_ASSISTANT_NOT_FINDING_WHAT_YOU_ARE_LOOKING_FOR",defaultMessage:"Not finding what you are looking for?"})}),(0,i.jsx)(R.A,{children:(0,i.jsx)(I.A,{id:"LET_PRODUCT_ASSISTANT_HELP",defaultMessage:"Let the Product Assistant help you discover the right solution."})})]}),gaSection:"no search results"})},e3=(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}}})),e8=e=>{let{link:t,linkText:a,title:n,type:r,isGene:l,children:o}=e,{classes:s}=e3();return(0,i.jsxs)("div",{className:s.sectionWrapper,"data-testid":"search-no-results-".concat(r,"-quick-link"),children:[(0,i.jsx)(eR.A,{className:s.sectionDivider}),(0,i.jsx)(R.A,{variant:"h2",className:s.verticalSpacing,children:n}),(0,i.jsx)(p.A,{container:!l,children:o}),(0,i.jsx)(eR.A,{className:s.divider}),t&&a&&(0,i.jsx)(p.A,{container:!0,spacing:4,children:(0,i.jsx)("div",{className:s.linkWrapper,children:(0,i.jsx)(ez.N,{href:t,passHref:!0,children:(0,i.jsx)(ew.A,{children:a})})})})]})},e5=e=>{var t,a,r,l,o,s;let{geneData:d,dymTerms:c,isRedirect:u}=e,[m]=ib(),{formatMessage:g}=(0,v.A)(),{classes:h}=e3(),A=(0,eh.A)(),y=(0,eF.k)(),f=(0,ex.A)(A.breakpoints.up(W.Rp.MD),{defaultMatches:!0}),b=(0,ex.A)(A.breakpoints.up(W.Rp.LG),{defaultMatches:!0});(0,n.useEffect)(()=>{(null==c?void 0:c.length)&&!u&&(0,x.sendSearchDidYouMeanEvent)(m.term||"",c,m.focus,m.type,"".concat(m.page))},[c]);let{classes:T}=eY(),C=!!(null==d?void 0:null===(a=d.getGeneSearchResults)||void 0===a?void 0:null===(t=a.metadata)||void 0===t?void 0:t.itemCount)&&(null==d?void 0:null===(l=d.getGeneSearchResults)||void 0===l?void 0:null===(r=l.metadata)||void 0===r?void 0:r.itemCount)!==0,E=null==d?void 0:null===(s=d.getGeneSearchResults)||void 0===s?void 0:null===(o=s.items)||void 0===o?void 0:o.slice(0,1);return(0,i.jsxs)(p.A,{className:T.gridWrapper,children:[(0,i.jsxs)("div",{className:T.columnWrapper,children:[(0,i.jsxs)("div",{className:T.firstColumn,children:[m.term&&"facet-search"!==m.term?(0,i.jsx)(R.A,{component:"div",className:h.noMatchesMessage,children:"".concat(g(eD.A.SORRY_NO_MATCHES_FOUND_FOR),' "').concat(m.term,'"')}):(!m.term||"facet-search"===m.term)&&(0,i.jsx)(R.A,{component:"div",className:h.noMatchesMessage,children:"".concat(g(eD.A.SORRY_NO_RETURN_RESPONSE_FOR))}),(null==c?void 0:c.length)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:(0,i.jsx)(eH.A,{terms:c,focus:m.focus})})}):null,(0,i.jsx)(eW.A,{}),y&&(0,i.jsx)(e7,{}),C&&E&&(0,i.jsx)(e8,{title:g({id:"GENES",defaultMessage:"Genes"}),type:"gene",isGene:!0,children:E.map((e,t)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eR.A,{className:h.divider}),(0,i.jsx)(e1,{gene:e},"".concat(e.name,"-").concat(t))]}))}),f&&(0,i.jsx)(eU.A,{})]}),b&&(0,i.jsx)(eV,{})]}),!b&&(0,i.jsx)(eV,{})]})};var e6=a(305493);let e9=(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-of-type)":{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)}}})),te=()=>{let{classes:e,cx:t}=e9(),a=(0,eh.A)();return(0,i.jsxs)("div",{"data-testid":"products-srp-skeleton",children:[(0,i.jsx)(eI.A,{mb:20}),(0,i.jsx)("div",{children:[,,,,,].fill({}).map((n,r)=>(0,i.jsx)(eI.A,{border:1,borderColor:a.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,{xs:2,children:(0,i.jsx)("div",{className:e.imageContainer,children:(0,i.jsx)("div",{className:e.imageWrapper,children:(0,i.jsx)(e6.A,{height:1,width:1})})})}),(0,i.jsx)(p.A,{xs:10,children:(0,i.jsx)(eI.A,{mt:2,children:(0,i.jsxs)(p.A,{container:!0,spacing:4,children:[(0,i.jsx)(p.A,{xs:12,children:(0,i.jsx)(e6.A,{height:28,width:.7,mb:3,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(p.A,{xs:4,sm:2,children:(0,i.jsx)(e6.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"}})}),(0,i.jsx)(p.A,{xs:8,sm:10,children:(0,i.jsx)(e6.A,{height:16,width:.7,borderRadius:{xs:2,sm:"borderRadius"}})}),Array(6).fill({}).map((e,t)=>(0,i.jsxs)(p.A,{xs:4,sm:2,children:[(0,i.jsx)(e6.A,{height:16,width:.6,borderRadius:{xs:2,sm:"borderRadius"},mb:3}),(0,i.jsx)(e6.A,{height:16,width:.9,borderRadius:{xs:2,sm:"borderRadius"},mb:{xs:1,sm:3}})]},t))]})})}),(0,i.jsx)(p.A,{xs:12,children:[,,,].fill({}).map((a,n)=>(0,i.jsx)("div",{className:t(e.tRow,e.tBodyRow),children:Array(6).fill({}).map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsx)(e6.A,{height:16,width:1,borderRadius:{xs:2,sm:"borderRadius"}})},t))},n))})]})},r))})]})};var tt=a(102897);let ta=(0,m.makeStyles)()(e=>({responsivePaginationWrapper:{padding:e.spacing(4,0)}})),ti=e=>{let{currentPage:t,handleUpdatePage:a,numPages:n,customPadding:r,customCounterStyling:l,customButtonStyling:o}=e,{classes:s}=ta();return(0,i.jsx)("div",{className:r||s.responsivePaginationWrapper,"data-testid":"search-results-pagination",children:(0,i.jsx)(tt.A,{currentPage:t,handleUpdatePage:e=>{(0,x.sendNavigationInteractionEvent)({action:"pagination click",detail:"".concat(e>t?"next":"previous"," - page ").concat(e," of ").concat(n),component:"body",elementType:"button"}),a(e)},numPages:n,customCounterStyling:l,customButtonStyling:o})})};var tn=a(457717),tr=a(840002);let tl=e=>{let{products:t}=e,a=(0,eh.A)(),n=(0,W.Ay)(),r=(0,ex.A)(a.breakpoints.down("lg"),{defaultMatches:!0});return(null==t?void 0:t.length)?(0,i.jsx)(tn.A,{type:tr.j.RecommendedProducts,products:t,withoutControls:!r,slidesToShow:n({xs:1,sm:2,lg:3}),preloadCardImages:!0,condensed:!0}):null};var to=a(155007),ts=a(11788),td=a(484830);let tc=(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)}}})),tu=e=>{var t;let{children:a,searchKey:r,variant:l="light",calculateGenePosition:o}=e,{isBlueB2BUser:s}=(0,ts.iZ)(),{data:d}=(0,to.Sx)({variables:{input:{searchKey:r,...s?{erpType:td.G.Blue}:{}}},ssr:!1,onCompleted:e=>{var t;e&&(null==e?void 0:null===(t=e.getSrpRecommendedProducts)||void 0===t?void 0:t.products.length)!==0||(0,x.sendEmptyRecommendationGA4Event)({action:"srp load",detail:r.toLowerCase(),section:"recommended products"})}}),c=null==d?void 0:null===(t=d.getSrpRecommendedProducts)||void 0===t?void 0:t.products,u=!!c&&c.length>0;(0,n.useEffect)(()=>{o&&o(u)},[o]);let{classes:p,cx:m}=tc(),g=n.Children.toArray(a);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)(tl,{products:c})}),g.slice(2)]})},tp=(e,t,a)=>{let i=e*t;return{resCountFirst:e>1?(e-1)*t+1:1,resCountEnd:a&&i{var t;let{currPage:a,perPage:n,resultCount:r=0,searchTerm:o="",searchType:d=""}=e,{formatMessage:c}=(0,v.A)(),{resCountFirst:u,resCountEnd:p}=tp(a,n,r),m=(0,l.rd)(),g=null===(t=m.query.orgId)||void 0===t?void 0:t.trim(),h="UCB"===g?g:null==g?void 0:g.toLowerCase(),x=c(w.SHOWING),A=c(1===r?w.RESULT:w.RESULTS),y=c(w.SEARCH_RESULT_OF),f=c(w.FOR),b=c(w.WITHIN),T=c((0,s.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,M._)(m)?null:(0,i.jsxs)(i.Fragment,{children:[f," ",'"',o,'"'," ",h?T&&"".concat(b," ").concat(h," ").concat(T):T&&"".concat(b," ").concat(T)]})]}):null})};var tg=a(275584),th=a(825628),tx=a(486024),tA=a(46282),ty=a(140032);let tv=(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)"}})),tf=e=>{let{renderHeading:t,children:a}=e,{classes:r,cx:l}=tv(),[o,s]=(0,n.useState)(!1),d=l(r.icon,{[r.iconIsOpen]:o});return(0,i.jsxs)("div",{className:r.root,"data-testid":"mobile-facet-group",children:[(0,i.jsxs)(es.A,{onClick:()=>{s(!o)},className:r.heading,children:[t(),(0,i.jsx)(ty.A,{className:d})]}),(0,i.jsx)(tA.A,{in:o,children:(0,i.jsx)("div",{className:r.body,children:a})})]})};var tb=a(860058),tT=a(699846),tC=a(814810);let tE=(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)"}})),tj=e=>{let{facet:t}=e,{classes:a,cx:r}=tE(),l=(0,v.A)(),[,o,d]=ib(),c=(o.find(e=>{let{key:a}=e;return a===t.key})||{options:[]}).options,[u,p]=(0,n.useState)(!1),m=r(a.icon,{[a.iconIsOpen]:u}),g=u?t.options:t.options.slice(0,t.numToDisplay||6),h="facet_shipping"===t.key,x=e=>{switch(e){case s.u2.SameDay:return(0,i.jsx)(eC.A,{color:"secondary",fontSize:"inherit"});case s.u2.FreeFreight:return(0,i.jsx)(eT.A,{color:"secondary"});default:return null}},A=c.map(e=>{let t=e.includes(" / "),a=e.includes("-1?e.slice(i+1):e});return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:a.vr4,"data-testid":"mobile-filter-facets",children:g.map(e=>{let n=A.indexOf(e.value)>=0;return(0,i.jsx)("div",{className:a.vr2,children:(0,i.jsx)(tb.A,{classes:{root:a.labelRoot},checked:n,control:(0,i.jsx)(tT.A,{"data-testid":"srp-facet-".concat(e.value),id:e.value,value:e.value,color:"primary",classes:{root:a.checkboxRoot},icon:(0,i.jsx)("span",{className:a.checkboxIcon}),checkedIcon:(0,i.jsx)("span",{className:r(a.checkboxIcon,a.checkboxIconChecked),children:(0,i.jsx)(tC.A,{})}),onClick:()=>{d.handleSelectedFacetChange({key:t.key,options:[e.value],action:n?iy.Remove:iy.Add,multiSelect:t.multiSelect||!1,prefix:t.prefix})}}),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.A,{value:"".concat(e.value," (").concat(e.count,")")}),h&&(0,i.jsx)("span",{className:a.shippingIcon,children:x(e.value)})]})})},e.value)})}),(t.options.length>g.length||u)&&(0,i.jsxs)(es.A,{onClick:()=>p(!u),"aria-expanded":u,"aria-label":u?l.formatMessage(w.SHOW_LESS):l.formatMessage(w.SHOW_MORE),className:a.showMore,children:[u?(0,i.jsx)(I.A,{...w.SHOW_LESS}):(0,i.jsx)(I.A,{...w.SHOW_MORE}),(0,i.jsx)(ty.A,{className:m})]})]})},t_=(0,m.makeStyles)()(e=>({body:{overflow:"scroll",padding:e.spacing(6,4)},footer:{padding:e.spacing(6,4)}})),tS=e=>{let{facets:t,isStructureSearch:a,isModalOpen:r,onModalClose:l}=e,{classes:o}=t_();return(0,i.jsx)(tx.A,{open:r,"data-testid":"mobile-filter-and-facet-modal",onClose:l,renderTitle:()=>(0,i.jsx)(R.A,{variant:"h2",component:"h2",children:(0,i.jsx)(I.A,{id:"FILTER",defaultMessage:"Filter"})}),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:o.body,children:[(0,i.jsx)(K,{facets:t,isStructureSearch:a}),!!t&&t.map(e=>(0,i.jsx)(n.Fragment,{children:(0,i.jsx)(tf,{renderHeading:()=>(0,i.jsx)(R.A,{variant:"body1",component:"h2",children:(0,i.jsx)("b",{children:(0,i.jsx)(D,{id:e.key.toUpperCase()})})}),children:(0,i.jsx)(tj,{facet:e,allFacets:t})})},e.key))]}),(0,i.jsx)("div",{className:o.footer,children:(0,i.jsx)(th.A,{variant:"contained",color:"primary",size:"large",fullWidth:!0,onClick:l,children:(0,i.jsx)(I.A,{id:"DONE",defaultMessage:"Done"})})})]})})},tN=(0,m.makeStyles)()(e=>({mobileMenu:{display:"flex",flexDirection:"column"},topRow:{display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(4,0)},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(2)},bottomRow:{display:"flex",fontSize:e.typography.pxToRem(12),fontWeight:400,[e.breakpoints.down("sm")]:{fontWeight:600}},filterTextStyle:{fontWeight:700,fontSize:e.typography.pxToRem(14)}})),tI=()=>{var e,t;let{classes:a}=tN(),[r]=ib(),{facets:l,isStructureSearch:o,metadata:d}=el(),c=(0,f.useRouter)(),u=(0,s.h2)({focus:c.query.focus,term:c.query.term}),p=r.page?Number(r.page):1,m=null!==(t=null!==(e=d.count)&&void 0!==e?e:d.itemCount)&&void 0!==t?t:0,g=c.query.focus===s.Xc.Products?s.ft:d.perPage,[h,x]=(0,n.useState)(!1),A=()=>{x(!1)};return(0,i.jsxs)("div",{className:a.mobileMenu,"data-testid":"mobile-srp-menu",children:[(0,i.jsx)("div",{className:a.topRow,children:(0,i.jsxs)(es.A,{className:a.filterButton,onClick:e=>{e.preventDefault(),x(!0)},children:[(0,i.jsx)(tg.A,{className:a.filterIcon,fontSize:"inherit",color:"primary"}),(0,i.jsx)("div",{className:a.filterTextStyle,children:(0,i.jsx)(I.A,{id:"FILTER",defaultMessage:"Filter"})})]})}),(0,i.jsx)("div",{className:a.bottomRow,children:(0,i.jsx)(tm,{currPage:p,perPage:g,resultCount:m,searchTerm:u.term,searchType:u.focus})}),(0,i.jsx)(tS,{facets:l,isStructureSearch:o,isModalOpen:h,onModalClose:()=>A(),showSortBar:!0})]})},tR=(0,m.makeStyles)()(e=>({desktopMenu:{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"2rem",gap:e.spacing(1),padding:e.spacing(2,0),marginTop:e.spacing(4)},leftSection:{display:"flex",alignItems:"center"},rightSection:{display:"flex",alignItems:"center"}})),tk=()=>{var e,t;let{classes:a}=tR(),{metadata:n}=el(),[r]=ib(),l=(0,f.useRouter)(),o=(0,s.h2)({focus:l.query.focus,term:l.query.term}),d=r.page?Number(r.page):1,c=null!==(t=null!==(e=n.count)&&void 0!==e?e:n.itemCount)&&void 0!==t?t:0,u=l.query.focus===s.Xc.Products?s.ft:n.perPage;return(0,i.jsx)("div",{className:a.desktopMenu,children:(0,i.jsx)("div",{className:a.leftSection,children:(0,i.jsx)(tm,{currPage:d,perPage:u,resultCount:c,searchTerm:o.term,searchType:o.focus})})})},tM=()=>{let{metadata:e}=el(),{isMobile:t}=(0,W.Qs)();return e?(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(tI,{}):(0,i.jsx)(tk,{})}):null};var tP=a(76647),tL=a(346129),tO=a(5005),tB=a(843957),tw=a(780491);let tF=(0,m.makeStyles)()(e=>({compareProductContainer:{background:e.palette.background.grey,fontSize:e.typography.pxToRem(14),paddingRight:e.spacing(2),display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},checkbox:{background:e.palette.background.default},label:{alignItems:"center",cursor:"pointer",display:"flex",justifyContent:"center",width:"100%"}})),tD=e=>{let{productKey:t,brandKey:a,productName:r,productNumber:l,images:o,catalogType:s}=e,{classes:d}=tF(),[c,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>u(!0),[]);let{compareProducts:p,addCompareProduct:m,removeCompareProduct:g}=(0,tw.Zn)(),h=p.some(e=>{let{productKey:i,brandKey:n,catalogType:r}=e;return i===t&&n===a&&r===s}),x=!h&&p.length>=tw.NN,A={productKey:t,productNumber:l,brandKey:a,images:o,catalogType:s};return(0,i.jsx)("span",{className:d.compareProductContainer,children:(0,i.jsxs)("label",{className:d.label,children:[(0,i.jsx)(tB.A,{className:d.checkbox,"data-testid":"compare-product-checkbox","aria-label":"Compare ".concat(r),checked:c&&h,onChange:e=>{e.target.checked?m(A):g(A)},disabled:x}),(0,i.jsx)(I.A,{id:"COMPARE_THIS_PRODUCT",defaultMessage:"Compare This Product"})]})})};var tW=a(849995),tU=a(15329),tH=a(633807);let tz=(0,m.makeStyles)()(e=>({container:{position:"relative",display:"inline-flex",alignItems:"flex-start",gap:e.spacing(1)},button:{padding:e.spacing(.5),alignSelf:"flex-end"},caret:{fontSize:e.typography.pxToRem(9)},displayedText:{wordBreak:"break-word",overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3"},expandedText:{wordBreak:"break-word",overflow:"visible",display:"block","-webkit-line-clamp":"unset"}})),tG=e=>e.href?(0,i.jsx)(ez.N,{...e,children:(0,i.jsx)("a",{children:e.value})}):(0,i.jsx)(O.A,{...e}),tV=e=>{let{values:t,className:a,url:r}=e,{classes:l}=tz(),[o,s]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1),u=(0,n.useRef)(null);if((0,n.useEffect)(()=>{if(u.current){let e=parseFloat(window.getComputedStyle(u.current).lineHeight);c(u.current.scrollHeight>3*e+1)}},[t]),!Array.isArray(t)||0===t.length)return(0,i.jsx)("span",{className:a,children:"—"});if(t.length>1){let e=t.join(", ");return(0,i.jsxs)("div",{className:l.container,children:[(0,i.jsx)("div",{ref:u,children:(0,i.jsx)(tG,{value:e,className:o?l.expandedText:l.displayedText,href:r})}),d&&(0,i.jsx)(tU.A,{onClick:()=>{s(!o)},size:"small",className:l.button,"aria-label":o?"Show less":"Show more",children:o?(0,i.jsx)(tH.Sw,{className:l.caret}):(0,i.jsx)(tH.bD,{className:l.caret})})]})}return(0,i.jsx)(tG,{value:t[0],className:a,href:r})},tY=(0,m.makeStyles)()(e=>({container:{columnGap:e.spacing(4),display:"grid",gridTemplateColumns:"max-content 1fr",marginTop:e.spacing(4),rowGap:e.spacing(1)},label:{color:e.palette.common.black,fontWeight:e.typography.fontWeightMedium,textTransform:"capitalize",whiteSpace:"nowrap",wordBreak:"break-word"},value:{fontWeight:e.typography.fontWeightRegular},geneSequence:{fontFamily:e.typography.fontFamily}})),tq=e=>{let{keyAttributes:t=[]}=e,{classes:a}=tY();return t.length?(0,i.jsx)(p.A,{container:!0,className:a.container,"data-testid":"new-srp-key-attributes",children:t.map((e,t)=>{let r=e.values,l="string"==typeof e.label&&e.label.toLowerCase().includes("sequence");return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsxs)(R.A,{variant:"caption",component:"div",className:a.label,children:[(0,i.jsx)(O.A,{value:e.label}),":"]}),(0,i.jsx)(R.A,{variant:"caption",component:"div",className:a.value,children:(0,i.jsx)(tV,{values:r,className:(0,tW.A)({[a.geneSequence]:l})})})]},t)})}):null};var tK=a(322571),t$=a(830029);let tQ=(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)}})),tX=e=>{let{productNumber:t,brandKey:a,sdsLanguages:r}=e,{classes:l,cx:o}=tQ(),s=[...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)(ew.A,{component:"button","data-testid":"sds-".concat(a).concat(t),id:"sds-".concat(a).concat(t),"aria-describedby":"sds",onClick:e=>{e.preventDefault(),c(!0)},color:"secondary",className:o(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)(tK.A,{"data-testid":"sds-icon"})}),(0,i.jsx)(I.A,{id:"SDS",defaultMessage:"SDS"})]}),{})}),(0,i.jsx)(t$.A,{open:d,setModalOpen:c,brands:[a],productNumber:t,sdsLanguages:s})]})},tZ=(0,m.makeStyles)()(e=>({button:{padding:e.spacing(2,8),maxHeight:42},caret:{fontSize:e.typography.pxToRem(9),marginLeft:e.spacing(1),marginTop:e.spacing(.5)}})),tJ=e=>{let{expanded:t,onToggle:a}=e,{classes:n}=tZ();return(0,i.jsxs)(th.A,{variant:"outlined",className:n.button,color:"primary",onClick:a,"data-testid":"srp-view-options-button",children:[t?(0,i.jsx)(I.A,{id:"HIDE_OPTIONS",defaultMessage:"Hide Options"}):(0,i.jsx)(I.A,{id:"VIEW_OPTIONS",defaultMessage:"View Options"}),t?(0,i.jsx)(tH.Sw,{className:n.caret,"data-testid":"caret-up-icon"}):(0,i.jsx)(tH.bD,{className:n.caret,"data-testid":"caret-down-icon"})]})};var t0=a(129773),t1=a(732588);let t2=(e,t)=>{let[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{e&&i(e[0])},[e,t]),{selectedMaterial:a,setSelectedMaterial:i,handleSelect:t=>{let a=null==e?void 0:e.find(e=>e.materialNumber===t);i(null!=a?a:null)}}};var t4=a(2184),t7=a(166313),t3=a(989212),t8=a(317685);let t5=e=>{var t,a;let i=window.navigator.userAgent,r=(0,t3.A)(i),{userSession:{country:l}}=(0,t8.j)(),{isMultiCountryUser:o,isDTAQZuCustomer:c,isBlueErpIntegrationEnabled:u,getSitePreference:p}=(0,ts.iZ)(),[m]=(0,n.useState)(l),g=(0,eO.L)(eB.US.countryCode),h=e.isMarketplace&&!g,[x,{data:A,loading:y,error:v}]=(0,t7.Gb)({fetchPolicy:c?"no-cache":"cache-first"}),[f,{data:b,loading:T,error:C}]=(0,t4.Fo)(),E=o?null==b?void 0:null===(t=b.getPricingForMultiCountryProducts)||void 0===t?void 0:t.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,S=null==e?void 0:e.isMarketplace,N=null==e?void 0:null===(a=e.productNumber)||void 0===a?void 0:a.startsWith("CB_"),I=p(ts.VD.CatalogFilter),R=()=>{let t={variables:{productNumber:null==e?void 0:e.productNumber,materialIds:null==e?void 0:e.materialIds,brand:null==e?void 0:e.brandKey,quantity:1,catalogType:S?d.Mh.Marketplace:(0,s.vN)(null==e?void 0:e.catalogId),orgId:I,checkForPb:!0,displaySDS:N,dealerId:"",checkBuyNow:!0,productKey:null==e?void 0:e.productKey,cachedPriceOnly:r,..._&&{erpType:j}}},a={variables:{...t.variables,cachedPriceOnly:r}};o&&!h?f(t):h||x(a)};(0,n.useEffect)(()=>{(null==e?void 0:e.productNumber)&&!(null==e?void 0:e.paMessage)&&R()},[o,f,x,null==e?void 0:e.productNumber,null==e?void 0:e.paMessage]);let{materialPricing:k,discontinuedPricingInfo:M}=null!=E?E:{},P=v||C;return{materialPricing:k,pricingError:P,pricingLoading:(y||T)&&!P,countryCode:m,isMultiCountryUser:o,discontinuedPricingInfo:M}};var t6=a(147801),t9=a(648573),ae=a(175020);let at=e=>{let[t,a]=(0,n.useState)(null),i=(0,t9.H)(t6.Lr,"PDP_VIEW_PREFERENCE");return(0,n.useEffect)(()=>{let e=i.get();if(e)return a(e);a(c.Z.grid)},[]),{view:t,handleSelectView:t=>{(0,ae.NQ)({action:t?"switch to list view":"switch to box view",section:"p&a",component:"body",elementType:"icon",elementText:"change view",product:e}),a(t),i.set(t)}}};var aa=a(229130),ai=a(927136),an=a(402991),ar=a(970336),al=a(803770);let ao=(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",margin:e.spacing(1,0,3,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,[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}}})),as=e=>{let{items:t,loading:a,onSelect:n,selectedChip:r,unavailableChips:l,loadCount:o=6}=e,{classes:s,cx:d}=ao();return a?(0,i.jsx)(p.A,{container:!0,spacing:2,className:s.loaderContainer,children:Array(o).fill({}).map((e,t)=>(0,i.jsx)(p.A,{xs:6,sm:4,md:3,lg:2,children:(0,i.jsx)(eI.A,{className:s.loader,style:{animationDelay:"".concat(.1*t,"s")}})},t))}):(0,i.jsx)("div",{className:s.chipContainer,children:t.map((e,t)=>{var a,o;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===(a=e.availabilities)||void 0===a?void 0:a.some(e=>null==e?void 0:e.displayInquireLink),m=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.A,{className:s.packSize,value:null==e?void 0:null===(o=e.packSize)||void 0===o?void 0:o.toUpperCase()}),(null==e?void 0:e.hidePriceMessageKey)?null:(0,i.jsx)("div",{className:s.price,children:p?(0,i.jsx)(R.A,{variant:"body2",children:(0,i.jsx)(I.A,{id:"INQUIRE",defaultMessage:"Inquire"})}):(0,i.jsx)(R.A,{variant:"body2",children:(0,i.jsx)(B.Gr,{currency:null==e?void 0:e.currency,currencyDisplay:"symbol",style:"currency",value:null==e?void 0:e.price})})})]});return(0,i.jsx)(al.A,{label:m,variant:"outlined",clickable:!0,onClick:()=>n(null==e?void 0:e.value),className:d(s.chip,{[s.chipSelected]:c,[s.chipUnavailable]:u,[s.chipSelectedUnavailable]:c&&u})},"".concat(t,"-").concat(null==e?void 0:e.packSize,"-").concat(null==e?void 0:e.value))})})},ad=(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])}})),ac=e=>{var t,a;let{materialPricing:n,pricingLoading:r,selectedMaterial:l,setSelectedMaterial:o,handleSelect:s,view:d,handleSelectView:u}=e,{classes:m}=ad();return(0,i.jsxs)("div",{children:[(0,i.jsxs)(p.A,{md:8,className:m.titleSection,children:[(0,i.jsx)(R.A,{variant:"h3",children:(0,i.jsx)(I.A,{id:"SELECT_A_SIZE",defaultMessage:"Select a Size"})}),(0,i.jsxs)(p.A,{md:4,className:m.toggleContainer,children:[(0,i.jsx)(R.A,{component:"span",className:m.toggleLabel,children:(0,i.jsx)(I.A,{id:"CHANGE_VIEW",defaultMessage:"Change View"})}),(0,i.jsxs)(aa.A,{size:"small",children:[(0,i.jsx)(th.A,{variant:d===c.Z.grid?"contained":void 0,color:"primary",onClick:()=>u(c.Z.grid),className:m.viewToggleButton,children:(0,i.jsx)(ai.A,{})}),(0,i.jsx)(th.A,{variant:d===c.Z.list?"contained":void 0,color:"primary",onClick:()=>u(c.Z.list),className:m.viewToggleButton,children:(0,i.jsx)(an.A,{})})]})]})]}),d===c.Z.grid?(0,i.jsx)(as,{items:null!==(t=null==n?void 0:n.map(e=>{var t,a;return{packSize:(null==e?void 0:null===(t=e.packageSize)||void 0===t?void 0:t.trim())||(null==e?void 0:e.materialNumber),value:null==e?void 0:e.materialNumber,price:null!==(a=null==e?void 0:e.price)&&void 0!==a?a:0,currency:null==e?void 0:e.currency,availabilities:null==e?void 0:e.availabilities,hidePriceMessageKey:null==e?void 0:e.hidePriceMessageKey}}))&&void 0!==t?t:[],selectedChip:null!==(a=null==l?void 0:l.materialNumber)&&void 0!==a?a:"",loading:r,loadCount:4,onSelect:s}):(0,i.jsx)(ar.A,{loading:r,materialPricing:n,onRowClick:e=>{o(e)},rowSelected:e=>(null==e?void 0:e.materialNumber)===(null==l?void 0:l.materialNumber)})]})},au=(0,m.makeStyles)()(e=>({mobileViewToggle:{display:"flex",justifyContent:"space-between",alignItems:"center",margin:e.spacing(4,0),[e.breakpoints.up("sm")]:{margin:e.spacing(6,0,4,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])}})),ap=e=>{let{view:t,handleSelectView:a}=e,{classes:n}=au();return(0,i.jsxs)("div",{className:n.mobileViewToggle,children:[(0,i.jsx)(R.A,{className:n.mobileTitle,children:(0,i.jsx)(I.A,{id:"SELECT_A_SIZE",defaultMessage:"Select a Size"})}),(0,i.jsxs)("div",{className:n.mobileToggleControls,children:[(0,i.jsx)(R.A,{className:n.mobileToggleLabel,children:(0,i.jsx)(I.A,{id:"CHANGE_VIEW",defaultMessage:"Change View"})}),(0,i.jsxs)(aa.A,{size:"small",children:[(0,i.jsx)(th.A,{variant:t===c.Z.list?"contained":void 0,color:"primary",onClick:()=>a(c.Z.list),className:n.mobileViewToggleButton,children:(0,i.jsx)(an.A,{})}),(0,i.jsx)(th.A,{variant:t===c.Z.grid?"contained":void 0,color:"primary",onClick:()=>a(c.Z.grid),className:n.mobileViewToggleButton,children:(0,i.jsx)(ai.A,{})})]})]})]})};var am=a(278040),ag=a(647386),ah=a(703848),ax=a(319490);let aA=(0,m.makeStyles)()(e=>({productCard:{marginBottom:e.spacing(2),border:"1px solid ".concat(e.palette.grey[400]),borderRadius:e.spacing(1.25),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-of-type":{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)}})),ay=e=>{var t,a;let{material:n,isSelected:r,onSelect:l}=e,{classes:o}=aA(),s=(null==n?void 0:null===(t=n.packageSize)||void 0===t?void 0:t.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)(am.A,{className:"".concat(o.productCard," ").concat(r?o.selectedCard:""),onClick:l,children:(0,i.jsxs)(ag.A,{className:o.cardContent,children:[(0,i.jsxs)("div",{className:o.cardHeader,children:[(0,i.jsx)(O.A,{className:o.packageSize,value:s}),(0,i.jsx)("div",{children:(0,i.jsx)(ah.A,{material:n,priceClass:o.listPrice,listPriceClass:o.strikePrice})})]}),c&&(0,i.jsxs)(R.A,{component:"span",className:o.availability,children:[c.quantity&&c.quantity>0?(0,i.jsx)(I.A,{id:"IN_STOCK",defaultMessage:"In Stock"}):(0,i.jsx)(I.A,{id:"OUT_OF_STOCK_LABEL",defaultMessage:"Out of Stock"})," ","From ",c.plantLoc]}),(null===(a=n.promotionalMessage)||void 0===a?void 0:a.messageKey)&&(0,i.jsx)(eI.A,{mt:1,children:(0,i.jsx)(ax.A,{promotional:n.promotionalMessage})})]})})};var av=a(105358);let af=(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-of-type":{paddingBottom:e.spacing(2)}},skeletonHeader:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:e.spacing(1)}})),ab=()=>{let{classes:e}=af();return(0,i.jsx)(am.A,{className:e.skeletonCard,children:(0,i.jsxs)(ag.A,{className:e.skeletonCardContent,children:[(0,i.jsxs)("div",{className:e.skeletonHeader,children:[(0,i.jsx)(av.A,{variant:"text",width:"40%",height:24}),(0,i.jsx)(av.A,{variant:"text",width:"25%",height:20})]}),(0,i.jsx)(av.A,{variant:"text",width:"60%",height:16})]})})},aT=(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)}}})),aC=e=>{var t,a;let{materialPricing:r,pricingLoading:l,view:o,showAllOptions:s,setShowAllOptions:d,setIsBuyBoxSheetOpen:u,mobileSelectedMaterial:p,setMobileSelectedMaterial:m,handleSetMaterialPosition:g}=e,{classes:h}=aT(),x=(0,n.useRef)(null),A=(0,n.useRef)([]);if(A.current=[],l&&o===c.Z.list)return(0,i.jsx)("div",{children:Array.from({length:3}).map((e,t)=>(0,i.jsx)(ab,{},t))});let y=(e,t,a)=>{m(e),u(!0),g(t,a)},v=o===c.Z.grid?6:3,f=s?r:null==r?void 0:r.slice(0,v);return(0,i.jsx)("div",{children:o===c.Z.grid?(0,i.jsx)("div",{ref:x,children:(0,i.jsx)(as,{items:null!==(t=null==r?void 0:r.map(e=>{var t,a;return{packSize:(null==e?void 0:null===(t=e.packageSize)||void 0===t?void 0:t.trim())||(null==e?void 0:e.materialNumber),value:null==e?void 0:e.materialNumber,price:null!==(a=null==e?void 0:e.price)&&void 0!==a?a:0,currency:null==e?void 0:e.currency,availabilities:null==e?void 0:e.availabilities,hidePriceMessageKey:null==e?void 0:e.hidePriceMessageKey}}))&&void 0!==t?t:[],selectedChip:null!==(a=null==p?void 0:p.materialNumber)&&void 0!==a?a:"",loading:l,loadCount:2,onSelect:e=>{let t=null==r?void 0:r.find(t=>t.materialNumber===e);if(t){var a,i,n,l;y(t,((null===(a=x.current)||void 0===a?void 0:a.offsetHeight)||0)+((null===(i=x.current)||void 0===i?void 0:i.offsetTop)||0),((null===(n=x.current)||void 0===n?void 0:n.getBoundingClientRect().top)||0)+((null===(l=x.current)||void 0===l?void 0:l.offsetHeight)||0))}}})}):(0,i.jsxs)(i.Fragment,{children:[null==f?void 0:f.map((e,t)=>(0,i.jsx)("div",{ref:e=>{A.current[t]=e},children:(0,i.jsx)(ay,{material:e,isSelected:(null==p?void 0:p.materialNumber)===e.materialNumber,onSelect:()=>{var a,i,n,r;y(e,((null===(a=A.current[t])||void 0===a?void 0:a.offsetHeight)||0)+((null===(i=A.current[t])||void 0===i?void 0:i.offsetTop)||0),((null==A?void 0:null===(n=A.current[t])||void 0===n?void 0:n.getBoundingClientRect().top)||0)+((null===(r=A.current[t])||void 0===r?void 0:r.offsetHeight)||0))}},e.materialNumber)},"".concat(t,"-").concat(e.materialNumber))),r&&r.length>v&&(0,i.jsx)("div",{className:h.viewAllButton,children:(0,i.jsx)(th.A,{onClick:()=>{let e=null==f?void 0:f.some(e=>e.materialNumber===(null==p?void 0:p.materialNumber));(s||!e)&&(m(null),u(!1)),d(!s)},className:h.viewAllButtonText,endIcon:s?(0,i.jsx)(ec.A,{}):(0,i.jsx)(eu.A,{}),children:s?(0,i.jsx)(I.A,{id:"HIDE_OPTIONS",defaultMessage:"Hide Options"}):(0,i.jsx)(I.A,{id:"VIEW_ALL_OPTIONS",defaultMessage:"View All Options ({count})",values:{count:r.length}})})})]})})};var aE=a(191247),aj=a(384119),a_=a(458851);let aS=(0,m.makeStyles)()(e=>({mobileSignInBanner:{marginTop:e.spacing(4),[e.breakpoints.up("sm")]:{marginTop:e.spacing(6)},textAlign:"center"},sheetContent:{padding:e.spacing(0),"&.buyBoxContainer":{boxShadow:"none"}},pricingError:{marginTop:e.spacing(6),display:"flex",justifyContent:"center",textAlign:"center"}})),aN=e=>{var t,a;let{materialPricing:r,pricingError:l,pricingLoading:o,view:d,handleSelectView:c,showAllOptions:u,setShowAllOptions:p,isBuyBoxSheetOpen:m,setIsBuyBoxSheetOpen:g,product:h,countryCode:x,isMultiCountryUser:A,mobileSelectedMaterial:y,setMobileSelectedMaterial:v,handleCloseBuyBoxSheet:f,discontinuedPricingInfo:b}=e,{classes:T}=aS(),C=null==r?void 0:r.some(e=>e.materialNumber===(null==y?void 0:y.materialNumber)),E=(0,n.useRef)(null),[j,_]=(0,n.useState)({});(0,n.useEffect)(()=>{if(m&&E.current){var e,t;let a=(null==E?void 0:null===(e=E.current)||void 0===e?void 0:e.clientHeight)||0,i=null==j?void 0:j.height,n=null==j?void 0:j.top,r=i-window.innerHeight+a+8;n>((null==E?void 0:null===(t=E.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0)&&window.scrollTo({top:r,left:0,behavior:"smooth"})}},[y]);let S=!l&&!b;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:T.mobileSignInBanner,children:(0,i.jsx)(t1.A,{})}),b&&(0,i.jsx)("div",{className:T.pricingError,children:(0,i.jsx)(a_.A,{discontinuedPricingInfo:b})}),l&&(0,i.jsx)("div",{className:T.pricingError,children:(0,i.jsx)(aj.A,{error:l,productNumber:null==h?void 0:h.productNumber,isCenterJustified:!1,isMarketplace:null==h?void 0:h.isMarketplace,sellerName:(null==h?void 0:h.displaySellerName)||(0,s.t1)(null==h?void 0:h.attributes),marketplaceSellerId:null!==(t=null==h?void 0:h.marketplaceSellerId)&&void 0!==t?t:"",marketplaceOfferId:null!==(a=null==h?void 0:h.marketplaceOfferId)&&void 0!==a?a:""})}),S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ap,{view:d,handleSelectView:c}),(0,i.jsx)(aC,{materialPricing:r,pricingLoading:o,view:d,showAllOptions:u,setShowAllOptions:p,setIsBuyBoxSheetOpen:g,mobileSelectedMaterial:y,setMobileSelectedMaterial:v,handleSetMaterialPosition:(e,t)=>{_({height:e,top:t})}}),C&&(0,i.jsx)(aE.A,{open:m,onClose:f,children:(0,i.jsx)("div",{className:T.sheetContent,ref:E,children:(0,i.jsx)(t0.A,{isMultiCountryUser:A,loading:!1,error:l,material:y,product:h,countryCode:x,showPriceDisclaimer:!0,isMobileSrpBuyBox:!0})})})]})]})},aI=(0,m.makeStyles)()(e=>({viewOptionsContainer:{marginTop:e.spacing(6),marginBottom:e.spacing(0),[e.breakpoints.down("md")]:{display:"none"}},signInBanner:{width:"100%",marginBottom:e.spacing(6),paddingTop:"".concat(e.spacing(0)," !important"),paddingBottom:"".concat(e.spacing(0)," !important")},viewOptionsItem:{paddingTop:"".concat(e.spacing(0)," !important"),paddingBottom:"".concat(e.spacing(0)," !important"),[e.breakpoints.up("lg")]:{maxWidth:"510px"}},viewOptionsItemBuyBox:{paddingTop:"".concat(e.spacing(0)," !important"),paddingBottom:"".concat(e.spacing(0)," !important"),[e.breakpoints.up("lg")]:{maxWidth:"290px"}},discontinuedMessage:{paddingTop:"".concat(e.spacing(0)," !important"),display:"flex",justifyContent:"center"}})),aR=e=>{let{product:t,isBuyBoxSheetOpen:a,setIsBuyBoxSheetOpen:r,mobileSelectedMaterial:l,setMobileSelectedMaterial:o,handleCloseBuyBoxSheet:s}=e,{classes:d}=aI(),{isMobile:c}=(0,W.Qs)(),u=(0,W.R$)(),[m,g]=(0,n.useState)(!1),{materialPricing:h,pricingError:x,pricingLoading:A,countryCode:y,isMultiCountryUser:v,discontinuedPricingInfo:f}=t5(t),{view:b,handleSelectView:T}=at(t),{selectedMaterial:C,setSelectedMaterial:E,handleSelect:j}=t2(h,x),_={materialPricing:h,pricingError:x,pricingLoading:A,view:b,handleSelectView:T,showAllOptions:m,setShowAllOptions:g};return c?(0,i.jsx)(aN,{..._,isBuyBoxSheetOpen:a,setIsBuyBoxSheetOpen:r,product:t,countryCode:y,isMultiCountryUser:v,mobileSelectedMaterial:l,setMobileSelectedMaterial:o,handleCloseBuyBoxSheet:s,discontinuedPricingInfo:f}):(0,i.jsxs)(p.A,{container:!0,className:d.viewOptionsContainer,justifyContent:"space-between",spacing:u({md:10,lg:0}),children:[(0,i.jsx)(p.A,{className:d.signInBanner,children:(0,i.jsx)(t1.A,{})}),f?(0,i.jsx)(p.A,{md:12,className:d.discontinuedMessage,children:(0,i.jsx)(a_.A,{discontinuedPricingInfo:f})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.A,{md:8,className:d.viewOptionsItem,children:(0,i.jsx)(ac,{..._,selectedMaterial:C,setSelectedMaterial:E,handleSelect:j})}),(0,i.jsx)(p.A,{md:4,lg:!0,className:d.viewOptionsItemBuyBox,children:(0,i.jsx)(t0.A,{isMultiCountryUser:v,loading:A,error:x,material:C,product:t,countryCode:y,showPriceDisclaimer:!0,isPricingModal:!0,focus:"products"})})]})]})};var ak=a(386250),aM=a(29468),aP=a(192881);let aL=(0,m.makeStyles)()(e=>({productPartnerInfoContainer:{marginTop:e.spacing(2),marginBottom:e.spacing(2)},sellerInfo:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold},verticalDivider:{margin:e.spacing(0,2)},infoButton:{padding:0,marginLeft:e.spacing(2),color:e.palette.primary.main},trustedInfo:{display:"flex",alignItems:"center",fontSize:e.typography.pxToRem(14)},trustedInfoLabel:{fontWeight:e.typography.fontWeightMedium}})),aO=e=>{let{product:t}=e,{classes:a}=aL(),{isMarketplace:r,marketplaceSellerId:o,marketplaceOfferId:d,attributes:c,displaySellerName:u}=t,m=u||(0,s.t1)(c),g=r&&!!o&&!!d&&!!m,[h,x]=(0,n.useState)(!1),A=()=>{x(e=>!e)};return g?(0,i.jsxs)(p.A,{container:!0,className:a.productPartnerInfoContainer,"data-testid":"product-partner-info",children:[(0,i.jsxs)(p.A,{className:a.sellerInfo,children:[(0,i.jsxs)(R.A,{component:"span",variant:"body2",className:a.trustedInfoLabel,children:[(0,i.jsx)(I.A,{id:"CONTACT_SELLER_SHIPPED_SOLD",defaultMessage:"Shipped & Sold By"})," "]}),(0,i.jsx)(tL.N,{...l.kJ.index(m,o),children:m})]}),(0,i.jsx)(p.A,{className:a.verticalDivider,children:(0,i.jsx)(eR.A,{orientation:"vertical"})}),(0,i.jsxs)(p.A,{className:a.trustedInfo,children:[(0,i.jsx)(I.A,{id:"CONTACT_SELLER_TRUSTED",defaultMessage:"A Trusted Marketplace Seller"}),(0,i.jsx)(ak.A,{className:a.infoButton,"aria-label":"show mPartner marketplace information","data-testid":"mpartner-info",onClick:A,size:"large",children:(0,i.jsx)(aM.A,{})}),h&&(0,i.jsx)(aP.A,{open:h,onCancel:A})]})]}):null};var aB=a(550554),aw=a(635877);let aF=(0,m.makeStyles)()((e,t)=>{let{bgColor:a,textColor:i}=t,n=e.spacing(1.5),r=e.spacing(4);return{iconContainer:{alignItems:"center",display:"flex",justifyContent:"center",zIndex:1},iconImg:{height:r,width:r},root:{alignItems:"center",backgroundColor:a,borderRadius:n,display:"flex",gap:e.spacing(1),height:e.spacing(6),padding:e.spacing(.5,2.5),position:"relative","&::before":{background:a,borderRadius:n,bottom:0,content:'""',left:0,position:"absolute",right:0,top:0,transform:"skewX(15deg)",transformOrigin:"top left",zIndex:-1},width:"fit-content"},text:{color:i,fontSize:e.typography.pxToRem(12),fontWeight:600,lineHeight:r,whiteSpace:"nowrap",zIndex:1}}}),aD=e=>{let{color:t,icon:a,iconAlt:n,text:r,textColor:l,tooltipEnterDelay:o=1e3,tooltipPlacement:s="bottom",tooltipTitle:d}=e,c=(0,aw.A)(),{classes:u}=aF({bgColor:t||c.palette.grey["500"],textColor:l||c.palette.common.white});return(0,i.jsx)(aB.A,{title:d,placement:s,enterDelay:o,children:(0,i.jsxs)(eI.A,{className:u.root,children:[a&&("string"==typeof a?(0,i.jsx)("img",{className:u.iconImg,src:a,alt:n}):a),(0,i.jsx)(R.A,{className:u.text,children:r})]})})},aW=e=>{let{formatMessage:t}=(0,v.A)(),a=(0,aw.A)(),i=[{id:"greener alternative category.default",label:t(k.D.GREENER_ALTERNATIVE_TITLE),icon:"/static/greener_alternative_product.svg",iconAlt:"greener alternative",color:a.palette.badge.highContrastGreen,textColor:a.palette.common.white,tooltipTitle:t(k.D.GREENER_ALTERNATIVE_PRODUCT)},{id:"enhanced validation.default",label:t(k.D.ENHANCED_VALIDATION_TITLE),icon:"/static/enhanced_validation.svg",iconAlt:"enhanced validation",color:a.palette.sensitive.pink,textColor:a.palette.secondary.main,tooltipTitle:t(k.D.ENHANCED_VALIDATION)}],n=new Set(null==e?void 0:e.map(e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().trim()}).filter(Boolean));return{productFeaturesBadges:(i||[]).filter(e=>n.has(e.id.toLowerCase().trim()))}},aU=(0,m.makeStyles)()(e=>({responsiveProductContainer:{margin:0,padding:e.spacing(6,0)},productSpecsMainContainer:{maxWidth:620},thumbnailWrapper:{maxHeight:88,maxWidth:88,width:88,height:88,borderRadius:e.spacing(1),border:"solid 1px ".concat(e.palette.grey[400]),backgroundColor:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.pxToRem(8),lineHeight:0},thumbnail:{maxWidth:86,maxHeight:86,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)},productSpecs:{paddingLeft:e.spacing(6)},bottomRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},viewOptionsButton:{marginTop:e.spacing(4)},compareProduct:{maxWidth:290,padding:0},mobileRightCol:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:e.spacing(1)},mobileContainerRow:{maxWidth:568,marginLeft:"auto",marginRight:"auto"},mobileButtonRow:{display:"flex",justifyContent:"center",marginTop:e.spacing(6)},synonyms:{display:"flex",marginBottom:e.spacing(2),marginTop:e.spacing(2)},synonymsLabel:{fontWeight:e.typography.fontWeightMedium},synonymsValues:{fontWeight:e.typography.fontWeightRegular,paddingLeft:e.spacing(4),"& sup":{lineHeight:0}},breakWord:{wordBreak:"break-word"},productOptions:{width:"100%",[e.breakpoints.up("lg")]:{marginLeft:"110px"}},substanceLinkWrapperMobile:{textAlign:"center",wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",maxWidth:"568px",[e.breakpoints.up("sm")]:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical"}},desktopButtonRow:{display:"flex",justifyContent:"flex-end",verticalAlign:"middle"},substanceLinkWrapperDesktop:{marginTop:e.spacing(3),wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical"}})),aH=e=>{let{product:t,sdsLinkEnabled:a}=e;return a?(0,i.jsx)(tX,{productNumber:null==t?void 0:t.productNumber,brandKey:null==t?void 0:t.brandKey,sdsLanguages:null==t?void 0:t.sds}):null},az=(e,t)=>{var a;(0,x.sendProductInfoInteractionEvent)({action:"visit product substance page",detail:null,component:"body",elementType:"link",elementText:"view all products under ".concat(null==e?void 0:null===(a=e.substance)||void 0===a?void 0:a.substanceName),linkUrl:null==t?void 0:t.pathname,productId:null==e?void 0:e.productNumber,productBrand:null==e?void 0:e.brand})},aG=e=>{var t,a,r;let{product:o,index:d,isBuyBoxSheetOpen:c,setIsBuyBoxSheetOpen:u,mobileSelectedMaterial:m,setMobileSelectedMaterial:g,handleCloseBuyBoxSheet:h}=e,{classes:A}=aU(),{isMobile:y}=(0,W.Qs)(),v=(0,l.rd)(),[f,b]=(0,n.useState)(!1),[,T]=(0,ei.lT)([ei.PK.SrpExperience]),C="88px",{attributes:E,substance:{casNumber:j,substanceCount:_,substanceId:S,substanceName:N},keyAttributes:k,brandKey:M,legalName:P,legalNameSuffix:L,productKey:B,productNumber:w,productName:F,productNameSuffix:D,synonyms:U}=o,{productFeaturesBadges:H}=aW(E),z=v.query.catalogType,G=(0,s.h2)({focus:v.query.focus}),V=(0,s.vN)(null!=z?z:G.focus),Y=(0,n.useMemo)(()=>l.aR.index(M,B),[M,B]),q=(0,n.useMemo)(()=>l.SL.index(S,V).as,[S,V]),K=(0,n.useMemo)(()=>{var e,t;return(null!==(t=null==o?void 0:null===(e=o.sds)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0},[null==o?void 0:null===(t=o.sds)||void 0===t?void 0:t.length]),$=()=>{b(e=>!e),y&&f&&h(),(0,ae.NQ)({action:f?"close p&a":"view p&a",component:"body",elementType:f?"hide options":"view options",elementText:f?"hide options":"view options",product:o})},Q=e=>{(0,x.sendNewSrpProductClickEvent)({product:o,elementType:e,substanceId:S,substanceName:N,productPosition:d+1})},X=e=>{var t,a;let i=(0,s.aE)(j),n=l.wO.searchResults(i);(0,x.sendProductInfoInteractionEvent)({action:"cas number click",detail:null==e?void 0:null===(t=e.substance)||void 0===t?void 0:t.casNumber,component:"body",elementType:"link",elementText:null==e?void 0:null===(a=e.substance)||void 0===a?void 0:a.casNumber,linkUrl:"".concat(n).concat((0,s.$c)({term:i.toLowerCase(),type:s.mI.CasNumber})),productId:null==e?void 0:e.productNumber,productBrand:null==e?void 0:e.brand}),T(ei.PK.SrpExperience,"old",{path:"/"}),v.replace({pathname:"".concat(n),query:{term:j,type:s.mI.CasNumber}})},Z=null===(r=o.images)||void 0===r?void 0:null===(a=r[0])||void 0===a?void 0:a.url,J=null==o?void 0:o.images,ee=P||F,et=L||D;return y?(()=>{var e,t;return(0,i.jsxs)(p.A,{container:!0,className:A.responsiveProductContainer,children:[(0,i.jsx)(p.A,{xs:3,children:(0,i.jsx)("div",{className:A.thumbnailWrapper,children:(0,i.jsx)(tL.N,{...Y,onClick:()=>Q("image"),children:(0,i.jsx)(tO.A,{className:A.thumbnail,alt:(null==o?void 0:null===(t=o.images)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.altText)||F,src:Z,urls:Z,sizes:C})})})}),(0,i.jsx)(p.A,{xs:9,children:(0,i.jsx)("div",{className:A.mobileRightCol,children:(0,i.jsx)(aH,{product:o,sdsLinkEnabled:K})})}),(0,i.jsx)(p.A,{xs:12,className:A.productNumberMobileStyle,children:(0,i.jsx)(tL.N,{...Y,role:"link",className:A.productNumberStyle,onClick:()=>Q("link"),children:w})}),(0,i.jsx)(p.A,{xs:12,className:A.productNameMobileStyle,children:(0,i.jsx)(tL.N,{...Y,role:"link",className:A.productNameStyle,onClick:()=>Q("link"),children:(0,i.jsx)(O.A,{value:ee})})}),(0,i.jsx)(p.A,{xs:12,className:A.productNameMobileStyle,children:(0,i.jsx)(tL.N,{...Y,role:"link",className:A.productNameSuffixStyle,onClick:()=>Q("link"),children:(0,i.jsx)(O.A,{value:et})})}),(0,i.jsx)(p.A,{xs:12,children:(0,i.jsx)(eI.A,{alignItems:"center",display:"flex",mt:2,children:H.map(e=>(0,i.jsx)(eI.A,{mr:4,children:(0,i.jsx)(aD,{color:e.color,icon:e.icon,iconAlt:e.iconAlt,text:e.label,textColor:e.textColor,tooltipTitle:e.tooltipTitle})},e.id))})}),(null==U?void 0:U.length)>0&&(0,i.jsxs)(p.A,{className:A.synonyms,children:[(0,i.jsxs)(R.A,{component:"span",variant:"caption",className:A.synonymsLabel,children:[(0,i.jsx)(I.A,{id:"SYNONYM(S)",defaultMessage:"Synonym(s)"}),": "]}),(0,i.jsx)(R.A,{component:"span",variant:"caption",className:A.synonymsValues,children:(0,i.jsx)(O.A,{className:A.breakWord,value:U.join(", ")})})]}),j&&(0,i.jsxs)(p.A,{className:A.casNumberContainer,xs:12,children:[(0,i.jsxs)(R.A,{className:A.casNumberLabel,children:[(0,i.jsx)(I.A,{id:"CAS_NUMBER",defaultMessage:"CAS Number"}),":"," "]}),(0,i.jsx)(tP.Ay,{className:A.casNumber,onClick:()=>{X(o)},children:j})]}),(0,i.jsx)(p.A,{xs:12,children:k&&(0,i.jsx)(tq,{keyAttributes:k})}),(0,i.jsx)(p.A,{children:(0,i.jsx)(aO,{product:o})}),(0,i.jsxs)(p.A,{container:!0,xs:12,className:A.mobileContainerRow,children:[(0,i.jsx)(p.A,{xs:12,className:A.mobileButtonRow,children:(0,i.jsx)(tJ,{expanded:f,onToggle:$})}),f&&(0,i.jsx)(p.A,{xs:12,children:(0,i.jsx)(aR,{product:o,isBuyBoxSheetOpen:c,setIsBuyBoxSheetOpen:u,mobileSelectedMaterial:m,setMobileSelectedMaterial:g,handleCloseBuyBoxSheet:h})}),_>1&&S&&(0,i.jsx)(p.A,{xs:12,className:A.mobileButtonRow,children:(0,i.jsxs)(tL.N,{className:A.substanceLinkWrapperMobile,href:q,onClick:()=>az(o,q),onKeyUp:e=>{"Enter"===e.key&&az(o,q)},role:"link",children:[(0,i.jsx)(I.A,{id:"VIEW_ALL_PRODUCTS_UNDER",defaultMessage:"View All Products Under:"})," ",(0,i.jsx)(O.A,{value:N})]})})]})]})})():(()=>{var e,t;return(0,i.jsxs)(p.A,{container:!0,className:A.responsiveProductContainer,justifyContent:"space-between","data-testid":"new-srp-responsive-product",children:[(0,i.jsx)(p.A,{md:8,children:(0,i.jsxs)(p.A,{container:!0,className:A.productSpecsMainContainer,children:[(0,i.jsx)(p.A,{md:3,className:A.thumbnailWrapper,children:(0,i.jsx)(tL.N,{...Y,onClick:()=>Q("image"),children:(0,i.jsx)(tO.A,{className:A.thumbnail,alt:(null==o?void 0:null===(t=o.images)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.altText)||F,src:Z,urls:Z,sizes:C})})}),(0,i.jsx)(p.A,{xs:!0,children:(0,i.jsxs)(p.A,{container:!0,direction:"column",className:A.productSpecs,children:[(0,i.jsxs)(p.A,{container:!0,direction:"row",className:A.topRowContainer,children:[(0,i.jsx)(p.A,{className:A.productNumberStyle,children:(0,i.jsx)(tL.N,{...Y,role:"link",onClick:()=>Q("link"),children:w})}),(0,i.jsx)(aH,{product:o,sdsLinkEnabled:K})]}),(0,i.jsx)(p.A,{children:(0,i.jsx)(tL.N,{...Y,role:"link",className:A.productNameStyle,onClick:()=>Q("link"),children:(0,i.jsx)(O.A,{value:ee})})}),(0,i.jsx)(p.A,{children:(0,i.jsx)(tL.N,{...Y,role:"link",className:A.productNameSuffixStyle,onClick:()=>Q("link"),children:(0,i.jsx)(O.A,{value:et})})}),(0,i.jsx)(p.A,{children:(0,i.jsx)(eI.A,{alignItems:"center",display:"flex",mt:2,children:H.map(e=>(0,i.jsx)(eI.A,{mr:4,children:(0,i.jsx)(aD,{color:e.color,icon:e.icon,iconAlt:e.iconAlt,text:e.label,textColor:e.textColor,tooltipTitle:e.tooltipTitle})},e.id))})}),(0,i.jsx)(p.A,{children:(0,i.jsx)(aO,{product:o})}),(null==U?void 0:U.length)>0&&(0,i.jsxs)(p.A,{className:A.synonyms,children:[(0,i.jsxs)(R.A,{component:"span",variant:"body2",className:A.synonymsLabel,children:[(0,i.jsx)(I.A,{id:"SYNONYM(S)",defaultMessage:"Synonym(s)"}),": "]}),(0,i.jsx)(R.A,{component:"span",variant:"body2",className:A.synonymsValues,children:(0,i.jsx)(O.A,{className:A.breakWord,value:U.join(", ")})})]})]})})]})}),(0,i.jsxs)(p.A,{md:4,className:A.compareProduct,children:[(0,i.jsx)(tD,{productNumber:w,productKey:B,brandKey:M,productName:F,catalogType:V,images:J}),j&&(0,i.jsxs)("div",{className:A.casNumberContainer,children:[(0,i.jsxs)(R.A,{className:A.casNumberLabel,children:[(0,i.jsx)(I.A,{id:"CAS_NUMBER",defaultMessage:"CAS Number"}),":"," "]}),(0,i.jsx)(tP.Ay,{className:A.casNumber,onClick:()=>{X(o)},children:j})]}),k&&(0,i.jsx)(tq,{keyAttributes:k})]}),(0,i.jsxs)(p.A,{container:!0,direction:"column",className:A.productOptions,children:[(0,i.jsxs)(p.A,{container:!0,className:A.bottomRow,children:[(0,i.jsx)(p.A,{className:A.viewOptionsButton,children:(0,i.jsx)(tJ,{expanded:f,onToggle:$})}),_>1&&S&&(0,i.jsx)(p.A,{md:6,className:A.desktopButtonRow,children:(0,i.jsxs)(tL.N,{className:A.substanceLinkWrapperDesktop,href:q,onClick:()=>az(o,q),onKeyUp:e=>{"Enter"===e.key&&az(o,q)},role:"link",children:[(0,i.jsx)(I.A,{id:"VIEW_ALL_PRODUCTS_UNDER",defaultMessage:"View All Products Under:"})," ",(0,i.jsx)(O.A,{value:N})]})})]}),f&&(0,i.jsx)(p.A,{children:(0,i.jsx)(aR,{product:o,isBuyBoxSheetOpen:c,setIsBuyBoxSheetOpen:u,mobileSelectedMaterial:m,setMobileSelectedMaterial:g,handleCloseBuyBoxSheet:h})})]})]})})()},aV=(0,m.makeStyles)()((e,t,a)=>({searchResultsLoose:{[e.breakpoints.up("md")]:{marginTop:0}},noBorder:{border:"none"},results:{"&> *":{borderBottom:"solid 1px ".concat(e.palette.grey[400]),["&:has(+ .".concat(a.noBorder,")")]:{border:"none"}},[e.breakpoints.up("md")]:{"&> *:first-of-type":{},"&> *":{borderColor:e.palette.grey[600]},"&> *:last-of-type":{marginBottom:0,borderBottom:"none"}}}})),aY=()=>{let{classes:e}=aV(),t=(0,eh.A)(),{productResults:a,hasResults:r,loading:l,queryTerm:o}=el(),[s,d,c]=ib();console.info("parsedFacets: ",d);let u=(0,ex.A)(t.breakpoints.up("md")),p=(0,eO.L)(eB.US.countryCode),m=u&&p,[g,h]=(0,n.useState)(!1),[x,A]=(0,n.useState)(null),y=()=>{A(null),h(!1)},v=(t,a)=>{let r=t&&t.variants;return(0,i.jsx)(n.Fragment,{children:r&&m?(0,i.jsx)("div",{className:e.noBorder,children:(0,i.jsx)(e7,{})}):r?(0,i.jsx)(e1,{gene:t,inProductSRP:!0},a):(0,i.jsx)(aG,{product:t,index:a,isBuyBoxSheetOpen:g,setIsBuyBoxSheetOpen:h,mobileSelectedMaterial:x,setMobileSelectedMaterial:A,handleCloseBuyBoxSheet:y})},a)};return(0,i.jsx)("div",{children:r||l?(0,i.jsx)("div",{className:e.searchResultsLoose,children:(()=>{var t,n;if(l)return(0,i.jsx)(te,{});let r=null==a?void 0:a.products;if(!r)return null;let d=Math.ceil((null!==(n=null==a?void 0:null===(t=a.metadata)||void 0===t?void 0:t.count)&&void 0!==n?n:0)/10);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tM,{}),(0,i.jsxs)("div",{className:e.results,"data-testid":"new-product-search-results",children:[(0,i.jsx)(tu,{searchKey:o||"",variant:"dark",children:r.map(v)},o||""),(0,i.jsx)(ti,{currentPage:s.page,numPages:d,handleUpdatePage:c.handlePageChange})]})]})})()}):(0,i.jsx)(e5,{})})};var aq=a(515524);let aK=(0,m.makeStyles)()(e=>({root:{marginBottom:e.spacing(4),paddingBottom:e.spacing(4),borderBottom:"1px solid ".concat(e.palette.grey[300]),"&:first-of-type":{paddingTop:e.spacing(4),borderTop:"1px solid ".concat(e.palette.grey[300])}}})),a$=()=>{let{classes:e}=aK();return(0,i.jsxs)("div",{"data-testid":"site-content-srp-skeleton",children:[(0,i.jsx)(eI.A,{mb:4}),(0,i.jsx)("div",{children:[,,,,,].fill({}).map((t,a)=>(0,i.jsxs)("div",{className:e.root,children:[(0,i.jsx)(e6.A,{height:28,width:.7,mb:4}),(0,i.jsx)(e6.A,{height:16,width:.95,mb:3}),(0,i.jsx)(e6.A,{height:16,width:.75})]},a))})]})};var aQ=a(575647);let aX=(0,m.makeStyles)()(e=>({root:{fontSize:e.typography.pxToRem(22),padding:e.spacing(8,4,8,4),[e.breakpoints.up("md")]:{padding:e.spacing(6,0,6,0)}},title:{display:"block",fontWeight:e.typography.fontWeightBold,"& span":{fontSize:e.typography.pxToRem(22)},lineHeight:"normal",letterSpacing:e.typography.pxToRem(-.22)},content:{fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(2),lineHeight:e.typography.pxToRem(24),letterSpacing:e.typography.pxToRem(-.16),fontSize:e.typography.pxToRem(16)}})),aZ=e=>{let{item:t,useNextLink:a=!1}=e,{classes:n}=aX(),r="content-link-".concat(t.title.replace(/\s/g,"").toLowerCase()),l=t.text.replace(/(<([^>]+)>)/gi,"").trim(),o=a?(0,aQ.wG)(l):l,s=a?(0,i.jsx)(O.A,{value:t.title}):t.title;return(0,i.jsxs)("div",{className:n.root,children:[a?(0,i.jsx)(ez.N,{href:t.url,passHref:!0,children:(0,i.jsx)("a",{className:n.title,id:r,children:s})}):(0,i.jsx)("a",{href:t.url,className:n.title,id:r,target:"_blank",rel:"noreferrer",children:s}),(0,i.jsx)(R.A,{component:"div",variant:"body2",className:n.content,children:(0,i.jsx)(e$.A,{wordCount:40,commas:!1,allowShowMore:!1,children:o})})]})},aJ=(0,m.makeStyles)()(e=>({results:{"&> *":{borderBottom:"solid 1px ".concat(e.palette.grey[400])},[e.breakpoints.up("md")]:{"&> *:first-of-type":{},"&> *:last-of-type":{marginBottom:0}}},noMatchesMessage:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold},siteContentWrapper:{borderBottom:"1px solid ".concat(e.palette.grey[400])},container:{padding:0,width:"100%",marginBottom:e.spacing(5)},pagination:{marginBottom:e.spacing(4)}})),a0=()=>{let e=(0,l.rd)(),[t,a,r]=ib(),{classes:o}=aJ(),{data:c,loading:m,error:g}=(0,et.ot)({variables:{searchTerm:(0,M._)(e)?null:t.term,page:t.page,selectedFacets:a,contentSearchType:t.focus===s.Xc.SiteContent?d.md.SiteContent:d.md.Documents,...t.focus===s.Xc.SiteContent&&{filterSite:"filter_site:Sigmaaldrich"}}});(0,n.useEffect)(()=>{if(!m&&c){var e,a,i,n;if((0,x.setPageLoadComplete)(!0),null==c?void 0:null===(a=c.getContentDocuments)||void 0===a?void 0:null===(e=a.items)||void 0===e?void 0:e.length){let e=(null==c?void 0:null===(n=c.getContentDocuments)||void 0===n?void 0:null===(i=n.metadata)||void 0===i?void 0:i.itemCount)||"";(0,x.sendViewSearchResultsEvent)({qFocus:t.focus||"",qPage:"".concat(t.page),qType:t.type||"",searchResultStatus:"standard",searchTerm:t.term||"",didYouMeanTerms:void 0,searchResultsCount:e})}else(0,x.sendSearchDidYouMeanEvent)(t.term||"",[],t.focus,"","".concat(t.page),t.type)}},[m,c,t.focus]);let{items:h=[],metadata:A}=(null==c?void 0:c.getContentDocuments)||{},y=h.length>0;return m?(0,i.jsxs)(u.A,{className:o.container,children:[(0,i.jsx)(tM,{}),(0,i.jsx)(a$,{})]}):!g&&(null==c?void 0:c.getContentDocuments)?y?(0,i.jsxs)(u.A,{className:o.container,children:[(0,i.jsx)(tM,{}),(0,i.jsx)(p.A,{container:!0,spacing:10,children:(0,i.jsxs)(p.A,{xs:12,children:[(0,i.jsx)("div",{className:o.results,children:(0,i.jsx)(tu,{searchKey:t.term||"",variant:"dark",children:h.map(e=>(0,i.jsx)("div",{className:o.siteContentWrapper,children:(0,i.jsx)(aZ,{item:e,useNextLink:t.focus===s.Xc.SiteContent})},e.url))})}),(0,i.jsx)("div",{className:o.pagination,children:(0,i.jsx)(ti,{currentPage:t.page,handleUpdatePage:r.handlePageChange,numPages:(null==A?void 0:A.numPages)||1})})]})})]}):(0,i.jsxs)(u.A,{className:o.container,children:[(0,i.jsx)(tM,{}),(0,i.jsx)(e5,{})]}):(0,i.jsxs)(u.A,{className:o.container,children:[(0,i.jsx)(tM,{}),(0,i.jsx)(aq.A,{})]})};var a1=a(421970);let a2=(0,m.makeStyles)()(e=>({vr8:{marginBottom:e.spacing(8)},mobileContainer:{[e.breakpoints.up("md")]:{padding:0}},desktopContainer:{marginTop:e.spacing(4)}})),a4=()=>{var e;let{classes:t}=a2(),{formatMessage:a}=(0,v.A)(),{isMobile:n}=(0,W.Qs)(),r=(0,l.rd)(),o=(null==r?void 0:null===(e=r.query)||void 0===e?void 0:e.focus)||s.nX.Products,{metadata:d}=el(),[,,{handleFocusChange:c}]=ib(),u=[{value:s.nX.Products,label:a({id:"PRODUCTS",defaultMessage:"Products"}),component:(0,i.jsx)(aY,{}),gaLabel:"products"},{value:s.nX.SiteContent,label:a({id:"SITE_CONTENT",defaultMessage:"Site Content"}),component:(0,i.jsx)(a0,{}),gaLabel:"site content"},{value:s.nX.TechnicalDocuments,label:a({id:"SUPPORTING_DOCUMENTS",defaultMessage:"Supporting Documents"}),component:(0,i.jsx)(a0,{}),gaLabel:"supporting documents"}],p=(e,t)=>{var a,i;let{facet:n,searchTerm:l}=null==r?void 0:r.query,s=Array.isArray(n)?n.length:void 0,p=n?Array.isArray(n)?n.join(","):n:void 0;(0,x.sendNewSrpTabSwitchEvent)({originalTab:null===(a=u.find(e=>e.value===o))||void 0===a?void 0:a.gaLabel,newTab:null===(i=u.find(e=>e.value===t))||void 0===i?void 0:i.gaLabel,searchTerm:l||"",facets:null!=p?p:void 0,totalCount:null==d?void 0:d.count,searchResultDisplay:"page ".concat(null==d?void 0:d.page," - - ").concat(null==d?void 0:d.perPage," results per page"),facetCount:s}),c(t.toLowerCase())};return(0,i.jsx)("div",{className:n?t.mobileContainer:t.desktopContainer,"data-testid":"search-result-tabs",children:(0,i.jsx)(a1.A,{tabs:u,activeTabIndex:u.findIndex(e=>e.value===o),changeCallback:e=>{var t;let a=null===(t=u[e])||void 0===t?void 0:t.value;a&&p(e,a)}})})};var a7=a(651971);let{publicRuntimeConfig:{featureFlags:a3}}=E()(),a8=(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}},toggleBanner:{width:"auto"}})),a5=()=>{let{classes:e}=a8(),{hasResults:t,queryTerm:a}=el();return(0,i.jsxs)("div",{className:t?void 0:e.noResults,children:[a3.newSrp&&(0,i.jsx)(a7.A,{className:e.toggleBanner,currentExperience:"new"}),(0,i.jsx)("div",{className:e.titleWrapper,children:(0,i.jsx)(R.A,{variant:"h1",className:e.title,children:(0,i.jsx)(O.A,{value:a||""})})}),(0,i.jsx)(a4,{})]})};var a6=a(830505);let a9=(0,m.makeStyles)()(e=>({searchContainer:{[e.breakpoints.down("sm")]:{overflowX:"hidden"},[e.breakpoints.up("xs")]:{borderTop:0}},searchFacetsContainer:{maxWidth:"290px"},searchGridContainer:{[e.breakpoints.up("lg")]:{justifyContent:"space-between"}},searchResultsContainer:{[e.breakpoints.up("md")]:{paddingLeft:e.spacing(10)},[e.breakpoints.up("lg")]:{maxWidth:"950px",paddingLeft:e.spacing(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)},recentlyViewedProducts:{borderTop:"solid 1px ".concat(e.palette.grey[400])}})),ie=()=>{let{classes:e}=a9(),{metadata:t,loading:a,productResults:r}=el(),o=(0,l.rd)(),{focus:s,searchTerm:c,page:m}=null==o?void 0:o.query;return(0,n.useEffect)(()=>{!a&&r&&(0,x.sendViewSearchResultsEvent)({qFocus:s||"",qPage:m||"",qType:s||"",searchResultStatus:"standard",searchTerm:null!=c?c:"",searchResultsCount:null==t?void 0:t.count})},[a,s,null==t?void 0:t.count,m,c,r]),(0,i.jsxs)(g.A,{className:e.searchContainer,children:[(0,i.jsxs)(u.A,{maxWidth:"lg",classes:{root:e.resultsContainer},children:[(0,i.jsx)(S,{metadata:t},"head"),(0,i.jsxs)(p.A,{container:!0,className:e.searchGridContainer,children:[(0,i.jsx)(p.A,{className:e.searchFacetsContainer,md:3,children:(0,i.jsx)(eL,{})}),(0,i.jsx)(p.A,{className:e.searchResultsContainer,xs:12,md:9,children:(0,i.jsx)(a5,{})})]}),(0,i.jsx)(p.A,{xs:12,className:e.recentlyViewedProducts,children:(0,i.jsx)(a6.A,{dispType:d.HI.RecentlyViewedSrp})})]}),(0,i.jsx)(h.A,{})]})},it=()=>(0,i.jsx)(eo,{children:(0,i.jsx)(ie,{})});var ia=a(281474),ii=a(573170),ir=a(21341),il=a(253590),io=a(862599);let is=()=>{var e,t;let a,n,[r,l,o]=ib(),{data:s,loading:u,error:p}=(0,ia.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)(il.A,{showFacets:!0,showSortBar:!0,orgId:r.orgId,loading:u,metadata:null==s?void 0:null===(e=s.getProductSearchResults)||void 0===e?void 0:e.metadata,facets:null==s?void 0:null===(t=s.getProductSearchResults)||void 0===t?void 0:t.facets,children:(null==s?void 0:s.getProductSearchResults)?({metadata:a,items:n}=s.getProductSearchResults,(0,i.jsxs)(i.Fragment,{children:[n.length?n.map((e,t)=>(0,i.jsx)(io.A,{substance:e},t)):(0,i.jsx)(I.A,{...eD.A.SORRY_NO_MATCHES_FOUND_FOR,children:e=>(0,i.jsxs)(eq.A,{fontSize:20,mt:6,children:[e," ","'".concat(r.term,"'")]})}),a.numPages>1&&(0,i.jsx)(ii.A,{curPage:r.page,numPages:a.numPages,clickHandler:o.handlePageChange})]})):(0,i.jsx)(ir.A,{view:c.Z.list,error:p})})},id=(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)}}})),ic=()=>{let{classes:e}=id();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)(is,{})})})})};var iu=a(608288),ip=a(669569),im=a(830915),ig=a.n(im);let{publicRuntimeConfig:{featureFlags:ih,srpCanaryCountries:ix}}=E()(),iA=(0,n.createContext)((0,s.h2)({term:""}));var iy=function(e){return e[e.Add=0]="Add",e[e.Remove=1]="Remove",e}({});let iv=(e,t)=>(e.map((a,i)=>{let n=t[0].split(":")[0];return a.split(":")[0]===n&&e.splice(i,1),null}),e.concat(t)),ib=()=>{let e=(0,n.useContext)(iA),{getSitePreference:t}=(0,ts.iZ)(),a=t(ts.VD.CatalogFilter),i=(0,l.rd)(),r=i.query.focus,o=i.asPath.includes("structure-search")?"structure-search":e.term||"",{facet:d,focus:c,type:u,sort:p,perpage:m,format:g,filters:h,image:x,catalogType:A,region:y}=e,v={term:e.term,selectedFacets:d,focus:c,type:u,sort:p,perpage:m,format:g,filters:h,image:x,catalogType:A,region:y},f=!a&&!!a!=!!e.orgId,b=a&&a!==e.orgId&&"UCB"!==a;(0,n.useEffect)(()=>{f?i.push("/search/[searchTerm]".concat((0,s.$c)(v)),"".concat(l.wO.searchResults(o)).concat((0,s.$c)(v))):b&&i.push("/search/[searchTerm]".concat((0,s.$c)({...v,orgId:a})),"".concat(l.wO.searchResults(o)).concat((0,s.$c)({...v,orgId:a})))},[v,a,f,e.orgId,b]);let T=(0,n.useCallback)(t=>{i.push("/search/[searchTerm]".concat((0,s.$c)({term:e.term,focus:t})),"".concat(l.wO.searchResults(e.term)).concat((0,s.$c)({term:e.term,focus:t})))},[v,a,i,o,c]),C=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,s.$c)({...v,orgId:a,page:e,perPage:v.perpage,focus:r})),"".concat(l.wO.searchResults(o)).concat((0,s.$c)({...v,orgId:a,page:e,perPage:v.perpage}))),window.scrollTo(0,0)},[v,a,i,o,r]),E=(0,n.useCallback)(()=>{if(!i.query.facet)return i.push(l.wO.index());if(i.query.facet.length>0){let t="".concat(l.wO.searchResults(M.D)).concat((0,s.$c)({...e,page:1,selectedFacets:[i.query.facet],term:M.D}));return i.push(t)}return i.push(l.wO.index())},[i,e]),j=(0,n.useCallback)(e=>{let t=null,{options:n,prefix:r,key:c}=e,u=n.map(e=>r?"".concat(c,":").concat(r).concat(e):"".concat(c,":").concat(e));({0:e=>{0>d.indexOf(u[0])&&(t=e.multiSelect?d.concat(u[0]):iv(d,u))},1:()=>{if(1===d.length&&o===M.D){t=null;return}t=d.filter(e=>0>u.indexOf(e))}})[e.action](e),null!==t?(i.push("/search/[searchTerm]".concat((0,s.$c)({...v,selectedFacets:t,page:1,orgId:a})),"".concat(l.wO.searchResults(o)).concat((0,s.$c)({...v,selectedFacets:t,page:1,orgId:a}))),window.scrollTo(0,0)):i.push(l.wO.index())},[v,a,d,i,o]),_=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,s.$c)({...v,page:1,orgId:a,region:e})),"".concat(l.wO.searchResults(o)).concat((0,s.$c)({...v,page:1,orgId:a,region:e}))),window.scrollTo(0,0)},[v,a,i,o]),S=(0,n.useCallback)(e=>{i.push("/search/[searchTerm]".concat((0,s.$c)({...v,page:1,sort:e,orgId:a})),"".concat(l.wO.searchResults(o)).concat((0,s.$c)({...v,page:1,sort:e,orgId:a})))},[v,a,i,o]),N=(0,n.useMemo)(()=>(0,s.w9)(d),[d]);return(0,n.useMemo)(()=>[e,N,{handleFocusChange:T,handlePageChange:C,handleTermRemoval:E,handleSelectedFacetChange:j,handleAvailableForSaleChange:_,handleSortChange:S}],[e,T,C,E,j,_,S,N])},iT=e=>{let{searchQuery:t,srpExperience:a}=e;if(!t)return null;let n=!!ih.newSrp&&"new"===a&&t.focus!==s.Xc.StructureSearch,r=t.orgId?ic:n?it:c.A;return(0,i.jsx)(iA.Provider,{value:t,children:(0,i.jsx)(r,{})})},iC=e=>Array.isArray(e)?e[0]:e,iE=e=>e?Array.isArray(e)?e:[e]:[],ij=e=>void 0!==e?Array.isArray(e)?parseInt(e[0],10):parseInt(e,10):e;iT.getInitialProps=async e=>{let{query:t,res:a,asPath:i}=e;if(!t)return{searchQuery:null,srpExperience:"new"};let n=iC(t.term),c=(0,ip.A)(e),u=c.get("country"),p=(null==ix?void 0:ix.length)===0||(null==ix?void 0:ix.includes(u))?c.get(ei.PK.SrpExperience)||"new":"old",m=(0,iu.xS)((0,o.k)(c.getAll()),l.wO.index());if(!n&&!t.facet)return a?(a.writeHead(301,{Location:m.as}),a.end()):l.Ix.replace(m.href,m.as),{searchQuery:null,srpExperience:p};let g=iC(t.focus),h=iC(t.type),x=iE(t.facet),A=ij(t.page),y=iC(t.sort),v=ij(t.perpage),f=iE(t.filters),b=Array.isArray(t.format)?d.ZI[t.format[0]]:(null==t?void 0:t.format)&&d.ZI[t.format],T=iC(t.image),C=iC(t.orgId),E=iC(t.catalogType),j=iC(t.region),_=iC(t.dym),S=iC(t.debug),N="old"===p&&h!==d.mI.CasNumber.toLowerCase()?d.RL.Substance:void 0,I=(0,r.A)(t,(e,t)=>!!t.match(/^(utm_|gclid|dclid|msclkid|fbclid)/i)),R=(0,s.h2)({term:n,selectedFacets:x,focus:g,type:h,page:A,sort:y,perPage:v,format:b,filters:f,image:T,orgId:C,catalogType:E,region:j,dym:_,debug:S,...N&&{group:N}}),k=n;(null==i?void 0:i.includes("structure-search"))&&(k="structure-search");let M=(0,iu.xS)((0,o.k)(c.getAll()),"".concat(l.wO.searchResults(k)).concat((0,s.e9)({...R,...I}))),P=(null==i?void 0:i.split("?"))||[],L=ig().parse(P[1]),O="".concat(P[0],"?").concat(ig().stringify(L,{indices:!1}));if(M.as!==O){if(a){let e=/[A-Z]/.test(M.as)?301:302;a.writeHead(e,{Location:M.as}),a.end()}else l.Ix.replace(M.href,M.as);return{searchQuery:null,srpExperience:p}}return{searchQuery:R,srpExperience:p}};let i_=iT},921328:(e,t,a)=>{a.d(t,{O:()=>r});var i=a(11788),n=a(677660);let r=()=>{let e,t,{isBlueErpIntegrationEnabled:a,userErpType:r,hasOnlyBlueERP:l,isDarmstadtUser:o}=(0,i.iZ)();return a?(o?e=n.Mh.B2b:l?e=n.Mh.Sialblue:(e=n.Mh.Sialpurple,r===n.zI.Anonymous||r===n.zI.NewUser||r===n.zI.Red?t="erp_type:borred":(r===n.zI.Blue||r===n.zI.Purple)&&(t="erp_type:borblue")),{catalogType:e,filter:t}):{}}},929394:(e,t,a)=>{a.d(t,{A:()=>c});var i=a(637876);a(14232);var n=a(877742),r=a(599220),l=a(607645),o=a(143923),s=a(554753);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:t}=e,{classes:a,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)(o.A,{height:20,width:.4,marginBottom:3}),(0,i.jsx)(o.A,{height:40,width:.75,marginBottom:4}),(0,i.jsxs)(l.A,{display:"flex",marginBottom:4,children:[(0,i.jsx)(o.A,{height:24,width:24,marginRight:3,style:{borderRadius:"50%"}}),(0,i.jsxs)(l.A,{flex:1,children:[(0,i.jsx)(o.A,{height:14,width:.9,marginBottom:2}),(0,i.jsx)(o.A,{height:14,width:.7})]})]}),(0,i.jsx)(o.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(o.A,{height:38,width:1,marginBottom:4}),(0,i.jsx)(o.A,{height:40,width:1})]}),(0,i.jsxs)(l.A,{display:["none","block"],children:[(0,i.jsxs)("div",{className:r(a.tRow,a.tHeadRow),children:[(0,i.jsx)("div",{children:c(s.A.SKU)}),(0,i.jsx)("div",{children:c(s.A.PACK_SIZE)}),(0,i.jsx)("div",{children:c(s.A.AVAILABILITY)}),t&&(0,i.jsx)("div",{children:c(s.A.SDS)}),(0,i.jsx)("div",{children:c(s.A.PRICE)}),(0,i.jsx)("div",{children:c(s.A.QUANTITY)})]}),(0,i.jsx)("div",{children:[,,,].fill({}).map((e,n)=>(0,i.jsx)("div",{className:r(a.tRow,a.tBodyRow),children:Array(t?6:5).fill({}).map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsx)(o.A,{height:28,width:.9,borderRadius:"borderRadius",className:a.loadingBox})},t))},n))})]})]})}},953295:(e,t,a)=>{a.d(t,{A:()=>et});var i=a(637876),n=a(14232),r=a(599220),l=a(635877),o=a(134415),s=a(852413),d=a(211148),c=a(757477),u=a(44509),p=a(677660),m=a(274770);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 t,a,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!==(a=null==r?void 0:r.images)&&void 0!==a?a:[],A=null==r?void 0:null===(t=r.productKey)||void 0===t?void 0:t.replace(/[\W_]+/g,"");return(0,i.jsxs)("div",{className:l.container,children:[(0,i.jsx)("div",{className:l.imageContainer,children:x?(0,i.jsx)(u.A,{alt:null==r?void 0:r.productNumber,className:l.image,sizes:"60px",src:(null==x?void 0:x.smallUrl)||(null==x?void 0:x.mediumUrl)||(null==x?void 0:x.largeUrl),urls:[null==x?void 0:x.smallUrl,null==x?void 0:x.mediumUrl,null==x?void 0:x.largeUrl]}):null}),(0,i.jsxs)("div",{className:l.details,children:[(null==r?void 0:r.brand)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:l.brandName,children:(0,i.jsx)(c.A,{value:null==r?void 0:r.brand.name})}),(0,i.jsx)(s.N,{...d.aR.index(((null==r?void 0:r.brand.key)||(null==r?void 0:r.brand.name)||"").replace(" ","").toLowerCase(),null!=A?A:"",(null==r?void 0:r.type)===p.iC.ThirdPartyProvider?{context:"bbe"}:{}),passHref:!0,children:(0,i.jsx)(o.A,{className:l.materialNumber,children:null==r?void 0:r.productNumber})})]}):null,(0,i.jsxs)("div",{className:l.materialNameWrapper,children:[(null==r?void 0:r.name)?(0,i.jsx)("div",{className:l.materialName,children:(0,i.jsx)(c.A,{value:null==r?void 0:r.name})}):null,h?(0,i.jsx)(m.A,{features:null!==(n=null==r?void 0:r.features)&&void 0!==n?n:[],customClass:l.badge}):null]}),(null==r?void 0:r.description)?(0,i.jsx)("div",{className:l.materialDescription,children:(0,i.jsx)(c.A,{value:null==r?void 0:r.description})}):null]})]})};var x=a(128975),A=a(129773),y=a(671541),v=a(236503),f=a(230448),b=a(905213),T=a(812197),C=a(607645),E=a(522071),j=a(308733),_=a(166313),S=a(2184),N=a(317685),I=a(327651),R=a(942489),k=a(11788),M=a(471662),P=a(197710),L=a(346129);let O=(0,a(835967).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=a(761622),w=a(840002);let F=(0,r.makeStyles)()(e=>({link:{cursor:"pointer",margin:e.spacing(0,1)},message:{marginLeft:e.spacing(1)}})),D=e=>{var t;let{errorKey:a,product:n,replacementProducts:r,onClose:l}=e,{classes:s}=F(),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===(t=n.brand)||void 0===t?void 0:t.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,t;return(null===(e=O[a])||void 0===e?void 0:e.title)?(0,i.jsx)(T.A,{variant:"h2",children:(0,i.jsx)(j.A,{id:a,defaultMessage:"{title}",values:{title:null===(t=O[a])||void 0===t?void 0:t.title}})}):null},children:(0,i.jsxs)(x.Uh,{children:[(0,i.jsx)(j.A,{...O[a],values:{productNumber:null==n?void 0:n.productNumber}}),(0,i.jsx)(j.A,{id:a,defaultMessage:"{additionalMessage}",values:{additionalMessage:(()=>{if(null==n?void 0:n.isMarketplace){var e,t;return(0,i.jsx)(L.N,{...d.kJ.contact(u,null!==(e=null==n?void 0:n.marketplaceSellerId)&&void 0!==e?e:"",c.asPath,d.C2.OFFER_MESSAGING,null!==(t=null==n?void 0:n.marketplaceOfferId)&&void 0!==t?t:""),children:(0,i.jsx)(j.A,{...O.CONTACT_SELLER_WITH_NAME,values:{sellerName:u}})})}return(null==r?void 0:r.length)?(0,i.jsx)(T.A,{className:s.message,variant:"inherit",children:(0,i.jsx)(j.A,{...O.REPLACEMENT_PRODUCT_MESSAGE})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{className:s.link,href:"/support/customer-support",children:(0,i.jsx)(j.A,{...O.CONTACT_TECHNICAL_SERVICE})}),(0,i.jsx)(j.A,{...O.FOR_ASSISTANCE})]})})()}}),m.length?(0,i.jsx)(M.A,{type:w.j.RecommendedProducts,preloadCardImages:!0,mainProduct:p,products:m,slidesToShow:1,withoutControls:(null==m?void 0:m.length)<=4}):null]})})};var W=a(42778),U=a(428888),H=a(182897),z=a(154431);function G(){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 G=function(){return e},e}function V(){let e=(0,U._)(["\n query PDP($brandKey: String!, $productKey: String!, $catalogType: CatalogType, $orgId: String, $isMarketplaceCatalogEnabled: Boolean, $displayLanguage: String, $country: String) {\n getProductDetail(\n input: {brandKey: $brandKey, productKey: $productKey, catalogType: $catalogType, orgId: $orgId, isMarketplaceCatalogEnabled: $isMarketplaceCatalogEnabled, displayLanguage: $displayLanguage, country: $country}\n ) {\n ...PDPFields\n }\n}\n ",""]);return V=function(){return e},e}let Y={},q=(0,H.J1)(G()),K=(0,H.J1)(V(),q);var $=a(282250),Q=a(732588),X=a(552263),Z=a(25771),J=a(175020);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"}})),et=e=>{var t,a,r,o,s,d,c,u,m,g,M,L,O,B,w,F,U,H,G;let{onClose:V,product:q,focus:et,sourceString:ea}=e,{classes:ei,cx:en}=ee(),er=(0,l.A)(),el=(0,y.A)(er.breakpoints.down("sm")),{setGlobalModalComponent:eo,clearGlobalModalComponent:es}=(0,W.g)(),{userSession:{country:ed}}=(0,N.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===(t=q.erp_type)||void 0===t?void 0:t.length)>0,eE=null==q?void 0:null===(a=q.productNumber)||void 0===a?void 0:a.startsWith("CB_"),ej=ev(k.VD.CatalogFilter),[e_,{data:eS,loading:eN,error:eI}]=(0,_.Gb)({fetchPolicy:eA?"no-cache":"cache-first"}),[eR,{data:ek,loading:eM,error:eP}]=(0,S.Fo)(),{data:eL,loading:eO,error:eB}=function(e){let t={...Y,...e};return z.IT(K,t)}({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===(o=ef.metadata)||void 0===o?void 0:o.isMarketplaceCatalogEnabled},fetchPolicy:eA?"no-cache":"cache-first"}),ew=ex?null==ek?void 0:null===(s=ek.getPricingForMultiCountryProducts)||void 0===s?void 0:s.find(e=>(null==e?void 0:e.country)===ec):null==eS?void 0:eS.getPricingForProduct,{materialPricing:eF,discontinuedPricingInfo:eD}=null!=ew?ew:{},eW={...q,forms:null==eL?void 0:null===(d=eL.getProductDetail)||void 0===d?void 0:d.forms,type:null==ep?void 0:ep.type},eU=eN||eM||eO,eH=eI||eP||eB,ez=eH?(0,$.Mw)(eH).errors[0]:void 0,eG=(null==eD?void 0:eD.errorMsg)||(null==ez?void 0:ez.code),eV=(0,n.useCallback)(e=>{var t;return null==I?void 0:null===(t=I[e])||void 0===t?void 0:t.displayName},[I]),eY=()=>{var e,t;let a={variables:{productNumber:null!==(t=null==q?void 0:q.productNumber)&&void 0!==t?t:"",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:{...a.variables,cachedPriceOnly:eh}};ex?eR(a):e_(i)};return(0,n.useEffect)(()=>{(null==q?void 0:q.productNumber)&&!(null==q?void 0:q.paMessage)&&eY()},[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==eF?void 0:eF.length){let[e]=eF;em(e)}eG&&eD&&eo((0,i.jsx)(D,{errorKey:eG,product:q,replacementProducts:null==eD?void 0:eD.replacementProducts,onClose:es}))},[eF,eG]),(0,i.jsx)(x.Ay,{open:!0,onClose:()=>{var e;V(),(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)(Q.A,{mb:4,mr:4}),ex&&ek?(0,i.jsx)(f.A,{value:ec,className:ei.tabs,onChange:(e,t)=>{eu(t)},children:null==ek?void 0:null===(c=ek.getPricingForMultiCountryProducts)||void 0===c?void 0:c.map((e,t)=>(0,i.jsx)(b.A,{className:ei.tab,label:eV(null==e?void 0:e.country),value:null==e?void 0:e.country},t))}):null,(null==q?void 0:q.paMessage)?(0,i.jsx)(X.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!==(L=null==q?void 0:q.productNumber)&&void 0!==L?L:"",paMessage:null!==(O=null==q?void 0:q.paMessage)&&void 0!==O?O:"",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==eF?void 0:eF.map(e=>{var t,a;return{packSize:(null==e?void 0:null===(t=e.packageSize)||void 0===t?void 0:t.trim())||(null==e?void 0:e.materialNumber),value:null==e?void 0:e.materialNumber,price:null!==(a=null==e?void 0:e.price)&&void 0!==a?a: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!==(w=null==ep?void 0:ep.materialNumber)&&void 0!==w?w:"",loading:eU,loadCount:5,onSelect:e=>{let t=null==eF?void 0:eF.find(t=>t.materialNumber===e);em(null!=t?t:null)}})]}),eb?(0,i.jsx)(C.A,{display:"flex",justifyContent:"space-between",children:(0,i.jsx)(Z.A,{isMarketplace:eb,marketplaceSellerId:null!==(F=null==q?void 0:q.marketplaceSellerId)&&void 0!==F?F:"",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!==(G=null==q?void 0:q.displaySellerName)&&void 0!==G?G:"",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:et,sourceString:ea})})]})})}},968215:(e,t,a)=>{a.d(t,{t:()=>n});var i=a(930);let n=(e,t,a,n,r,l,o)=>{let s=e.currentSlide,d=e.slidesToScroll,c=e.slidesToShow,u=0,p=c;"next"===a&&(p=(u=s+d)+c,e.nextSlide()),"prev"===a&&(p=(u=s-d)+c,e.previousSlide());let m=t.slice(u,p).map((e,t)=>({...e,analyticsPosition:u+t+1}));(0,i.W)({creativeSlot:n,carouselType:r,promoItemId:l,promoItemName:o,products:m})}},970336:(e,t,a)=>{a.d(t,{A:()=>T});var i=a(637876),n=a(607645),r=a(67241),l=a(170377),o=a(741683),s=a(857377),d=a(471549),c=a(599220);a(14232);var u=a(308733),p=a(677660),m=a(757477),g=a(127447),h=a(703848),x=a(388887);let A=(0,c.makeStyles)({name:"ProductPriceAvailabilityRow",uniqId:"ProductPAR01"})((e,t,a)=>({tableCell:{verticalAlign:"middle",padding:e.spacing(2,3),[e.breakpoints.between("sm","lg")]:{padding:e.spacing(2,1)}},materialNumber:{width:"20%",["&.".concat(a.hidePriceMessageKey)]:{width:"5%"}},materialNumberWithSku:{width:"30%"},packSize:{width:"15%",["&.".concat(a.hidePriceMessageKey)]:{width:"5%"}},packSizeWithSku:{width:"5%"},availability:{width:"45%",["&.".concat(a.hidePriceMessageKey)]:{width:"40%"}},price:{width:"10%"},listPrice:{display:"none"},hidePriceMessageKey:{width:"20%"},labelFontSize:{fontSize:e.typography.pxToRem(12)}})),y=e=>{var t;let{material:a}=e,{classes:n,cx:r}=A(),l=(null==a?void 0:a.type)===p.iC.ThirdPartyProvider,[o]=null!==(t=a.availabilities)&&void 0!==t?t:[],d=(null==o?void 0:o.key)===p.qL.InquireForPriceAndAvailability;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{className:r(n.tableCell,n.packSize,{[n.packSizeWithSku]:l,[n.hidePriceMessageKey]:!!(null==a?void 0:a.hidePriceMessageKey)}),children:(0,i.jsx)(m.A,{value:a.packageSize})}),(0,i.jsx)(s.A,{className:r(n.tableCell,n.materialNumber,{[n.materialNumberWithSku]:l,[n.hidePriceMessageKey]:!!(null==a?void 0:a.hidePriceMessageKey)}),children:(0,i.jsx)(g.A,{materialNumber:a.materialNumber})}),(0,i.jsx)(s.A,{className:r(n.tableCell,n.availability,{[n.hidePriceMessageKey]:!!(null==a?void 0:a.hidePriceMessageKey)}),children:(0,i.jsx)(x.A,{material:a,canAddToCart:!0,hideDetails:!0})}),(0,i.jsx)(s.A,{className:r(n.tableCell,n.price,{[n.hidePriceMessageKey]:!!(null==a?void 0:a.hidePriceMessageKey)}),children:d?null:(0,i.jsx)(h.A,{material:a,priceClass:n.price,listPriceClass:n.listPrice})})]})};var v=a(304009),f=a(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:t,materialPricing:a,onRowClick:c,rowSelected:p}=e,{classes:m}=b(),g=e=>{var t,a,i;let[n]=null!==(a=null==e?void 0:e.availabilities)&&void 0!==a?a:[];return null!==(i=null===(t=e.availabilities)||void 0===t?void 0:t.find(e=>{let{messageType:t}=e;return"primary"===t}))&&void 0!==i?i:n};return t?(0,i.jsx)(n.A,{className:m.loadingSkeleton,children:[,,,].fill({}).map((e,t)=>(0,i.jsx)(f.A,{animation:"wave",height:30},t))}):(0,i.jsxs)(r.A,{className:m.table,children:[(0,i.jsx)(l.A,{children:(0,i.jsxs)(o.A,{children:[(0,i.jsx)(s.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"PACK_SIZE",defaultMessage:"Pack Size"})}),(0,i.jsx)(s.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"SKU",defaultMessage:"SKU"})}),(0,i.jsx)(s.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"AVAILABILITY",defaultMessage:"Availability"})}),(0,i.jsx)(s.A,{className:m.tableHead,children:(0,i.jsx)(u.A,{id:"PRICE",defaultMessage:"Price"})})]})}),(0,i.jsx)(d.A,{children:null==a?void 0:a.map((e,t)=>(0,i.jsx)(o.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},t)},e.materialNumber))})]})}},989212:(e,t,a)=>{a.d(t,{A:()=>n});var i=a(942489);i.A.exclude(["synthetic"]);let n=e=>(0,i.A)(e)},994767:(e,t,a)=>{a.d(t,{$1:()=>h,VI:()=>A,c8:()=>m,dU:()=>y,jm:()=>g,lr:()=>x,tb:()=>v});var i=a(327651),n=a(494295),r=a(251996),l=a(317685),o=a(211148),s=a(11788),d=a(139324),c=a.n(d),u=a(14232);let{publicRuntimeConfig:{discoEnabledCountries:p}}=c()(),m=()=>{let e=(0,n.L)(i.US.countryCode),t=(0,n.L)(i.CA.countryCode);return e||t},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)(),t=(0,u.useMemo)(()=>e.country.toLocaleUpperCase(),[e.country]);return(0,u.useMemo)(()=>null==p?void 0:p.includes(t),[t,p])},x=()=>{let{erpSystemId:e}=(0,s.iZ)();return e===o.Cw.Iscala},A=()=>{let{userSession:e}=(0,l.j)(),{getCountryDetails:t}=(0,r.Y)();return t(e.country.toLocaleUpperCase()).erpSystemId===o.Cw.Qrp},y=()=>{let e=(0,n.L)(i.ID.countryCode),t=(0,n.L)(i.TW.countryCode),a=(0,n.D)(i.IN.countryCode),r=(0,n.D)(i.SG.countryCode);return e||t||a||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())}}}]); //# sourceMappingURL=./8468-dc0a4e97731b2839.js.map