"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5881],{4648:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(37876);n(14232);var r=n(8335),o=n(36503),i=n(99549),l=n(64204),s=n(57869),d=n(61261),c=n(59587);let u=(0,d.A)(e=>({paper:{borderRadius:0},dialogHeader:{fontSize:e.typography.pxToRem(28),fontWeight:e.typography.fontWeightBold,padding:e.spacing(8,8,0,8),display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},closeIcon:{fontSize:e.typography.pxToRem(30)},dialogBody:{padding:e.spacing(4,8),fontSize:e.typography.pxToRem(16)}})),p=e=>{let{open:t,setModalOpen:n,bodyContent:d,headerContent:p}=e,m=u();return(0,a.jsx)(r.A,{open:t,maxWidth:"md",classes:{paper:m.paper},children:(0,a.jsxs)(o.A,{container:!0,children:[(0,a.jsxs)(i.A,{disableTypography:!0,classes:{root:m.dialogHeader},children:[p,(0,a.jsx)(l.A,{onClick:()=>n(!1),children:(0,a.jsx)(c.default,{classes:{root:m.closeIcon}})})]}),(0,a.jsx)(s.A,{classes:{root:m.dialogBody},children:(0,a.jsx)(o.A,{container:!0,children:d})})]})})}},8392:(e,t,n)=>{n.d(t,{A:()=>x});var a=n(37876);n(14232);var r=n(8733),o=n(61261),i=n(12197),l=n(34415),s=n(49995),d=n(77660),c=n(43909),u=n(54753);let p={heading:u.D.SIGMA_PRODUCTS,listItems:[c.D.FIND_LOT_NUMBER_SIGMA_1]},m={heading:u.D.ALDRICH_PRODUCTS,listItems:[c.D.FIND_LOT_NUMBER_ALDRICH_1,c.D.FIND_LOT_NUMBER_ALDRICH_2,c.D.FIND_LOT_NUMBER_ALDRICH_3]},g={heading:c.D.FIND_LOT_NUMBER_MILLIPORE,listItems:[c.D.FIND_LOT_NUMBER_MILLIPORE_1,c.D.FIND_LOT_NUMBER_MILLIPORE_2]},h={[d.e_.Coa]:[p,m,g],[d.e_.Coo]:[p,m,g],[d.e_.Coq]:[p,m,g]},b={bodyCopy:{id:"HOW_TO_ENTER_COO_COA_INSTRUCTIONS",defaultMessage:"Lot and Batch Numbers can be found on a product's label following the words 'Lot' or 'Batch'."}},_={heading:u.D.ALDRICH_PRODUCTS,listItems:[u.D.ENTER_WITHOUT_FIRST_TWO_LETTERS,u.D.ENTER_WITHOUT_NUMERIC_FILLING_CODE,u.D.ENTER_WITHOUT_ALPHA_NUMERIC_FILLING_CODE]},N={heading:u.D.SIGMA_PRODUCTS,listItems:[u.D.SIGMA_PRODUCTS_INSTRUCTIONS]},f={heading:u.D.MILLIPORE_PRODUCTS,bodyCopy:u.D.MILLIPORE_PRODUCTS_INSTRUCTIONS,link:!0},T={[d.e_.Coa]:[b,_],[d.e_.Coo]:[b,N,_],[d.e_.Coq]:[b,f]};var A=n(11148);let y=(0,o.A)(e=>({bold:{fontWeight:e.typography.fontWeightMedium},list:{paddingLeft:e.spacing(4),"& li:not(:last-child)":{marginBottom:e.spacing(1)}},listLarge:{margin:e.spacing(0,0,0),paddingLeft:e.spacing(5),"& li:not(:last-child)":{marginBottom:e.spacing(2)}},vr1:{marginBottom:e.spacing(1)},vr4:{marginBottom:e.spacing(4)}})),C=e=>{let{section:t,isDialog:n,isAccordion:o,customerSupportLinkClicked:d}=e,c=y(),{heading:p,bodyCopy:m,listItems:g,link:h}=t,b=o?"body2":n?"body1":"body2",_=o?"body2":n?"h3":"body1";return(0,a.jsxs)("div",{className:c.vr4,children:[p&&(0,a.jsx)(i.A,{component:"h4",variant:_,className:(0,s.A)(c.vr1,!n&&c.bold,o&&c.bold),children:(0,a.jsx)(r.A,{...p})}),m&&h&&(0,a.jsx)("ul",{className:(0,s.A)(!n&&c.list,(n||o)&&c.listLarge),children:(0,a.jsx)("li",{children:(0,a.jsxs)(i.A,{variant:b,children:[(0,a.jsx)(r.A,{...m}),(0,a.jsx)(l.A,{onClick:()=>d?d("customer support link",{action:"contact customer support - how to find a lot/batch number for coq",component:"right rail",elementType:"link",elementText:"customer support",linkUrl:A.Vc.customerSupport()}):null,href:A.Vc.customerSupport(),children:(0,a.jsx)(r.A,{...u.A.CUSTOMER_SUPPORT})})]})})}),m&&!h&&(0,a.jsx)(i.A,{variant:b,children:(0,a.jsx)(r.A,{...m})}),g&&(0,a.jsx)("ul",{className:(0,s.A)(!n&&c.list,(n||o)&&c.listLarge),children:g.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(i.A,{variant:b,children:(0,a.jsx)(r.A,{...e})})},t))})]})},x=e=>{let{type:t,isDialog:n,isAccordion:r,customerSupportLinkClicked:o}=e;return(0,a.jsxs)(a.Fragment,{children:[!n&&h[t].map((e,t)=>(0,a.jsx)(C,{section:e,isDialog:n,isAccordion:r,customerSupportLinkClicked:o},t)),n&&T[t].map((e,t)=>(0,a.jsx)(C,{section:e,isDialog:n,isAccordion:r,customerSupportLinkClicked:o},t))]})}},10430:(e,t,n)=>{n.d(t,{TV:()=>c,b0:()=>u});var a=n(28888);n(37876);var r=n(82897);n(14232);var o=n(54431),i=n(78248);function l(){let e=(0,a._)(["\n query SdsCertificateSearch($productNumber: String!, $brand: String) {\n getSdsCertificateSearch(input: {productNumber: $productNumber, brand: $brand}) {\n locale\n region\n productNumber\n sds {\n languages {\n primaryLanguage\n altLanguages\n }\n brand\n }\n brands\n }\n}\n "]);return l=function(){return e},e}let s={},d=(0,r.J1)(l());function c(e){let t={...s,...e};return o.IT(d,t)}function u(e){let t={...s,...e};return i._(d,t)}},17679:(e,t,n)=>{n.d(t,{A:()=>g});var a=n(37876),r=n(14232),o=n(49995),i=n(78206),l=n(76023),s=n(40597),d=n(7645),c=n(45484),u=n(70524),p=n(68002),m=n(74791);let g=e=>{let{rootClass:t,rootStyle:n,size:g="medium",field:h,form:b,label:_,required:N,help:f,options:T,native:A=!1,hasPlaceHolder:y=!1,onOpen:C,onClose:x,dataScrub:O=!1,...v}=e,[E,I]=(0,r.useState)(!1),S=(0,i.O6)(b.errors,h.name),R=(0,i.O6)(b.touched,h.name),j=S&&R,[L,U]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{I(A||m.A)},[m.A,A]),E&&T.length>0&&T[0].value&&T.unshift({label:"",value:""}),(0,a.jsxs)("div",{className:(0,o.A)({[String(t)]:t}),style:n,children:[_&&(0,a.jsx)(u.A,{htmlFor:h.name,size:g,required:N,error:j,children:_}),(0,a.jsx)(c.A,{id:h.name,...h,size:g,native:E,error:!!j,"aria-describedby":(j||f)&&"".concat(h.name,"-help-text"),onOpen:e=>{C&&C(e),U(!0)},onClose:e=>{x&&x(e),U(!1)},...v,SelectDisplayProps:{"data-scrub":O?"true":void 0},children:T.map(e=>{let{label:t,value:n,tooltip:r}=e;return E?(0,a.jsx)("option",{value:n,children:t},n):(0,a.jsx)(l.A,{value:n,disabled:""===n&&y,"data-scrub":!!O||void 0,children:r?(0,a.jsx)(s.Ay,{title:r,placement:"right",arrow:!0,disableHoverListener:!L,children:(0,a.jsx)(d.A,{width:"100%",children:t})}):t},n)})}),(j||f)&&(0,a.jsx)(p.A,{id:"".concat(h.name,"-help-text"),error:!!j,children:j?S:f||null})]})}},21347:(e,t,n)=>{n.d(t,{Ay:()=>E});var a=n(37876),r=n(14232),o=n(49995),i=n(8733),l=n(61261),s=n(35877),d=n(84813),c=n(71541),u=n(5411),p=n(90079),m=n(39069),g=n(7645),h=n(62166),b=n(86252),_=n(54753),N=n(52413),f=n(11148),T=n(11788),A=n(99486);let y=(0,l.A)(e=>({addToCartButton:{minWidth:e.typography.pxToRem(136)},cannotAddToCartLink:{color:e.palette.error.main,fontWeight:e.typography.fontWeightBold,cursor:"pointer",display:"flex",marginTop:e.spacing(2)},loadingIcon:{position:"absolute",top:"10%",left:"50%",marginLeft:"-20px",zIndex:1},addToCartLoading:{color:e.palette.primary.main},popoverContainer:{height:"auto",minHeight:"auto",width:"550px",border:"4px solid grey",position:"relative",zIndex:1},popoverHeader:{width:"100%",height:"50px",padding:"5px 10px",backgroundColor:e.palette.grey[50],fontWeight:e.typography.fontWeightMedium,display:"flex",flexDirection:"row",alignItems:"center"},closeIcon:{position:"absolute",right:e.typography.pxToRem(10),color:e.palette.grey[700],cursor:"pointer"},popoverBody:{width:"100%",height:"55%",padding:"10px 8px",margin:"auto",fontSize:e.typography.pxToRem(12)}})),C=e=>{let{cannotAddToCartPopoverAnchor:t,popoverContainerClass:n,popoverHeaderClass:r,popoverBodyClass:o,hideCannotAddToCartPopover:l}=e,s=y();return(0,a.jsx)(d.Ay,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},elevation:4,open:!0,children:(0,a.jsxs)("div",{className:n||s.popoverContainer,children:[(0,a.jsxs)("div",{className:r||s.popoverHeader,children:[(0,a.jsx)(i.A,{id:"CANNOT_ADD_TO_CART",defaultMessage:"Cannot Add To Cart"}),(0,a.jsx)(h.default,{"aria-label":"Close cannot add to cart details",onClick:l,onKeyPress:l,className:s.closeIcon})]}),(0,a.jsx)("div",{className:o||s.popoverBody,children:(0,a.jsx)(i.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."})})]})})},x=e=>{let{size:t,addToCartButtonClass:n,variant:r}=e,o=y(),l=(0,s.A)(),d=(0,f.rd)(),p=!0===(0,c.A)(l.breakpoints.up("md"),{defaultMatches:!0});return(0,a.jsx)(N.N,{href:"".concat(f.R6.linkProfile(),"?returnUrl=").concat(encodeURIComponent(d.asPath||f.xn.index())),children:(0,a.jsx)(u.A,{size:t||(p?"medium":"large"),variant:r,color:"secondary","data-testid":"link-profile-button",className:n||o.addToCartButton,children:(0,a.jsx)(i.A,{..._.A.LINK_PROFILE})})})},O=e=>{let{size:t,variant:n,addToCartButtonClass:r}=e,o=(0,s.A)(),l=(0,f.rd)(),d=!0===(0,c.A)(o.breakpoints.up("md"),{defaultMatches:!0});return(0,a.jsx)(N.N,{href:"".concat(f.VV.index(),"?redirect=").concat(encodeURIComponent(l.asPath||f.xn.index())),children:(0,a.jsx)(u.A,{size:t||(d?"medium":"large"),variant:n,color:"secondary",className:r,children:(0,a.jsx)(i.A,{..._.A.LOGIN_TO_ADD_TO_CART})})})},v=e=>{let{size:t,variant:n,color:r,isSubmitting:l,fullWidth:d,handleAddToCart:m,addToCartButtonClass:g,dirty:h,disabled:b,isAddToList:_}=e,N=y(),f=(0,s.A)(),T=!0===(0,c.A)(f.breakpoints.up("md"),{defaultMatches:!0});return(0,a.jsxs)(u.A,{size:t||(T?"medium":"large"),type:"submit",variant:n,color:r,fullWidth:d,disabled:l||!h||b,onClick:m,className:g||N.addToCartButton,"data-testid":"add-to-cart-button",id:"add-to-cart-button",children:[l&&(0,a.jsx)(p.A,{size:30,className:(0,o.A)(N.addToCartLoading,N.loadingIcon)}),_?(0,a.jsx)(i.A,{id:"REPLACE_PRODUCT",defaultMessage:"Replace Product"}):(0,a.jsx)(i.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})]})},E=e=>{var t,n;let{hideAddToCartForPrepackItems:o,canAddToCart:l,handleAddToCart:s,isSubmitting:d,dirty:c,cannotAddToCartLinkClass:u,addToCartButtonClass:p,popoverContainerClass:h,popoverHeaderClass:_,popoverBodyClass:N,variant:f="contained",color:E="secondary",fullWidth:I,isAddToList:S=!1,disabled:R,size:j}=e,[L,U]=(0,r.useState)(null),M=e=>{e.preventDefault(),U(e.currentTarget)},D=y(),{currentUser:B}=(0,T.iZ)(),{authorized:w}=(0,A.I)(A.N.canAddToCart),k="";return w&&(null==B?void 0:B.__typename)==="LoggedInUser"&&(null==B?void 0:null===(t=B.metadata)||void 0===t?void 0:t.guestShoppingType)&&(k=null==B?void 0:null===(n=B.metadata)||void 0===n?void 0:n.guestShoppingType),(0,a.jsxs)(a.Fragment,{children:[L&&(0,a.jsx)(C,{cannotAddToCartPopoverAnchor:L,popoverContainerClass:h,popoverHeaderClass:_,popoverBodyClass:N,hideCannotAddToCartPopover:()=>U(null)}),o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{light:!0}),(0,a.jsxs)("span",{className:u||D.cannotAddToCartLink,onClick:M,onKeyPress:M,tabIndex:0,role:"button",children:[(0,a.jsx)(i.A,{id:"CANNOT_ADD_TO_CART",defaultMessage:"Cannot Add To Cart"}),(0,a.jsx)(g.A,{marginLeft:1,children:(0,a.jsx)(b.A,{fontSize:"small"})})]})]}):l?(0,a.jsx)(v,{size:j,variant:f,addToCartButtonClass:p,isAddToList:S,disabled:R,fullWidth:I,dirty:c,handleAddToCart:s,isSubmitting:d,color:E}):k.length>0?(0,a.jsx)(x,{size:j,variant:f,addToCartButtonClass:p}):(0,a.jsx)(O,{size:j,variant:f,addToCartButtonClass:p})]})}},24322:(e,t,n)=>{n.d(t,{A:()=>a.A});var a=n(31543)},25443:(e,t,n)=>{n.d(t,{Uh:()=>i,VF:()=>o,lK:()=>l,z$:()=>s});var a=n(77660),r=n(88700);let o={[a.e_.Coa]:"CERTIFICATE_OF_ANALYSIS",[a.e_.Coo]:"CERTIFICATE_OF_ORIGIN",[a.e_.Coq]:"CERTIFICATE_OF_QUALITY"},i=e=>e?a.e_.Coq:a.e_.Coo,l=(e,t)=>{let n=new Blob([new Uint8Array(Array.from(e,e=>e.charCodeAt(0)))],{type:"application/pdf"}),a=URL.createObjectURL(n),r=document.createElement("a");r.href=a;let o=(null==t?void 0:t.replace(/\./g,"-"))||"download";r.setAttribute("download",o),r.click(),URL.revokeObjectURL(a)},s={[r.U_.CofAnalysisDoc]:{abbrev:a.e_.Coa,name:"Certificates of Analysis"},[r.U_.CofOriginDoc]:{abbrev:a.e_.Coo,name:"Certificates of Origin"},[r.U_.CofQualityDoc]:{abbrev:a.e_.Coq,name:"Certificates of Quality"}}},30029:(e,t,n)=>{n.d(t,{A:()=>O});var a=n(37876),r=n(14232),o=n(39324),i=n.n(o),l=n(77742),s=n(36331),d=n(70813),c=n(36503),u=n(34415),p=n(61261),m=n(11148),g=n(54753),h=n(24322),b=n(41873),_=n(71007),N=n(17685),f=n(86024),T=n(11788);let A=(0,p.A)(e=>({dialogHeader:{fontSize:e.typography.pxToRem(20),fontWeight:e.typography.fontWeightBold},modalBody:{padding:e.spacing(0,4,4,4),overflow:"auto",[e.breakpoints.up("md")]:{padding:e.spacing(0,8,8,8)}},modalTitle:{marginBottom:e.spacing(2)},modalProductNumber:{fontSize:e.typography.pxToRem(18)},brandSelectMessage:{display:"block",fontSize:e.typography.pxToRem(18),marginBottom:e.spacing(4)},brandRadioList:{paddingTop:e.spacing(4),borderTop:"1px solid "+e.palette.divider,marginTop:e.spacing(4)},brandLabel:{textTransform:"capitalize"},languageList:{display:"flex",[e.breakpoints.down("xs")]:{flexFlow:"column"},paddingTop:e.spacing(4),borderTop:"1px solid "+e.palette.divider,marginTop:e.spacing(4)},languageLink:{display:"block",fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(4)}})),{publicRuntimeConfig:{supportedLanguageLabels:y}}=i()(),C=(e,t)=>e.map(e=>{let n=(null==e?void 0:e.toLowerCase())==="br"?"pt":e;return{formatted:y[n.toUpperCase()]||"".concat(t(n,{type:"language",localeMatcher:"best fit"})," - ").concat(e),abbrev:e}}).filter(e=>!e.formatted.includes("undefined")),x=e=>{let t=e.indexOf("-");return e.slice(t+1).trim()},O=e=>{let{open:t,setModalOpen:n,brands:o,sdsDetails:i,productNumber:p,isAdvancedSearch:y,sdsLanguages:O}=e,v=A(),{formatMessage:E,formatDisplayName:I}=(0,l.A)(),{userSession:S}=(0,N.j)(),{userErpType:R}=(0,T.iZ)(),[j,L]=(0,r.useState)(""),U=1===o.length,M=o[0],D=[];if(O)D=C(O,I);else if(j&&i){let e=i.find(e=>e.brand===j);e&&(D=C(e.languages.altLanguages,I))}else{if(!y||!i)return null;D=C(i[0].languages.altLanguages,I)}return(0,a.jsx)(f.A,{open:t,"data-testid":"sds-modal",id:"sds-modal",onClose:()=>n(!1),closeButtonId:"sds-modal-close-button",renderTitle:()=>(0,a.jsxs)("div",{className:v.dialogHeader,children:[(0,a.jsx)("div",{id:"sds-modal-title",className:v.modalTitle,children:E(g.A.SAFETY_DATA_SHEET_TITLE)}),(0,a.jsx)("div",{className:v.modalProductNumber,id:"sds-modal-product-number",children:p})]}),children:(0,a.jsxs)("div",{className:v.modalBody,children:[!U&&(0,a.jsxs)("form",{"aria-label":"brand input",className:v.brandRadioList,children:[(0,a.jsxs)("span",{className:v.brandSelectMessage,children:[" ",E(g.A.SDS_SELECT_BRAND)]}),(0,a.jsx)(s.A,{"aria-label":"brand-selection",onChange:e=>{L(e.target.value)},value:j,children:o.map(e=>(0,a.jsx)(d.A,{"aria-label":"brand",value:e,control:(0,a.jsx)(h.A,{}),className:v.brandLabel,label:e.toLowerCase()},e))})]}),(j||U)&&(0,a.jsx)(c.A,{className:v.languageList,container:!0,children:D.map(e=>(0,a.jsx)(c.A,{item:!0,xs:12,sm:4,children:(0,a.jsx)(u.A,{className:v.languageLink,href:m.Q5.index(j||M,p,S.country,x(e.abbrev),R),"data-testid":"sds-link-".concat(e.abbrev),id:"sds-link-".concat(e.abbrev),target:"_blank",rel:"noopener noreferrer nofollow",color:"primary",onClick:()=>(0,_.xH)({action:b.y.SDS,brandKey:j||M,productNumber:p,language:e.abbrev},{productId:p,component:"modal",elementType:"link",linkText:e.formatted,linkUrl:m.Q5.index(j||M,p,S.country,x(e.abbrev),R)}),children:e.formatted})},e.formatted))})]})})}},31543:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(37876);n(14232);var r=n(98011),o=n(61261),i=n(49995);let l=(0,o.A)(e=>({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"}}}})),s=e=>{let t=l();return(0,a.jsx)(r.A,{icon:(0,a.jsx)("span",{className:t.icon}),checkedIcon:(0,a.jsx)("span",{className:(0,i.A)(t.icon,t.checkedIcon)}),...e})}},37901:(e,t,n)=>{n.d(t,{Kx:()=>h,e_:()=>b,ij:()=>g});var a=n(28888),r=n(37876),o=n(82897);n(14232);var i=n(54431),l=n(56057);function s(){let e=(0,a._)(["\n fragment CertificateProduct on Product {\n name\n description\n brand {\n key\n name\n color\n logo {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n }\n productNumber\n molecularWeight\n linearFormula\n casNumber\n}\n "]);return s=function(){return e},e}function d(){let e=(0,a._)(["\n fragment TestSpecifications on TestSpec {\n name\n value\n result\n}\n "]);return d=function(){return e},e}function c(){let e=(0,a._)(["\n query CertificateOfAnalysis($productNumber: String!, $lotNumber: String!, $brand: String, $count: Int, $sendLotNumber: Boolean) {\n getCertificateOfAnalysis(\n input: {productNumber: $productNumber, lotNumber: $lotNumber, brand: $brand, count: $count, sendLotNumber: $sendLotNumber}\n ) {\n ... on CertificateUrl {\n url\n streamData\n }\n ... on CertificateText {\n brand\n lotNumber\n signatureUrl\n testSpecifications {\n ...TestSpecifications\n }\n product {\n ...CertificateProduct\n }\n owner\n unit\n source\n }\n }\n}\n ","\n",""]);return c=function(){return e},e}let u={},p=(0,o.J1)(s()),m=(0,o.J1)(d()),g=(0,o.J1)(c(),m,p),h=e=>(0,r.jsx)(l.X,{query:g,...e});function b(e){let t={...u,...e};return i.IT(g,t)}},38527:(e,t,n)=>{n.d(t,{ym:()=>i});var a=n(28888);n(37876);var r=n(82897);function o(){let e=(0,a._)(["\n query pdfDownload($input: PdfDownloadInput!) {\n pdfDownload(input: $input)\n}\n "]);return o=function(){return e},e}n(14232);let i=(0,r.J1)(o())},43909:(e,t,n)=>{n.d(t,{D:()=>a});let a=(0,n(35967).YK)({DOCUMENTATION_TABS_LABEL:{id:"DOCUMENTATION_TABS_LABEL",defaultMessage:"Search for product certificates by entering the products Lot/Batch Number."},LOT_BATCH_NUMBER:{id:"LOT_BATCH_NUMBER",defaultMessage:"Lot/Batch Number"},CANT_FIND_IT:{id:"CANT_FIND_IT",defaultMessage:"Can’t find it?"},CERT_NOT_FOUND:{id:"CERT_NOT_FOUND",defaultMessage:"In some cases, a {certType} may not be available online. If your search was unable to find the {certType} you can request one."},CERT_REQUEST:{id:"CERT_REQUEST",defaultMessage:"Request a {certType}"},FIND_LOT_NUMBER_SIGMA_1:{id:"FIND_LOT_NUMBER_SIGMA_1",defaultMessage:"Enter a “0” if only two numbers are in front of the letter e.g. 62K1064 - you will only find the COO if you enter 062K1064."},FIND_LOT_NUMBER_ALDRICH_1:{id:"FIND_LOT_NUMBER_ALDRICH_1",defaultMessage:"If you find a lot number such as TO09019TO - enter the lot number without the first two letters e.g. 09019TO."},FIND_LOT_NUMBER_ALDRICH_2:{id:"FIND_LOT_NUMBER_ALDRICH_2",defaultMessage:"If the lot number has a filling-code such as 05427ES-021 - enter the lot number without the filling-code -021 e.g. 05427ES."},FIND_LOT_NUMBER_ALDRICH_3:{id:"FIND_LOT_NUMBER_ALDRICH_3",defaultMessage:"If the lot number has a filling-code such as STBB0728K9 - enter the lot number STBB0728 without the filling-code K9."},FIND_LOT_NUMBER_MILLIPORE:{id:"FIND_LOT_NUMBER_MILLIPORE",defaultMessage:"EMD Millipore"},FIND_LOT_NUMBER_MILLIPORE_1:{id:"FIND_LOT_NUMBER_MILLIPORE_1",defaultMessage:"Lot and Batch Numbers can be found on a product’s label following the word."},FIND_LOT_NUMBER_MILLIPORE_2:{id:"FIND_LOT_NUMBER_MILLIPORE_2",defaultMessage:"Some lot numbers include an additional three characters that trail the primary lot number. If you have a lot of batch number such as this, do not include the three trailing characters when searching for a COA or COQ."},SAMPLE_LOT_BATCH_NUMBERS_IMG_ALT_TEXT:{id:"SAMPLE_LOT_BATCH_NUMBERS_IMG_ALT_TEXT",defaultMessage:"Product label examples that illustrate the locations of lot and batch numbers"}})},44478:(e,t,n)=>{n.d(t,{A:()=>a});let a=n(17679).A},46236:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(37876);n(14232);var r=n(49995);let o=(0,n(61261).A)(()=>({image:{maxHeight:"100%",maxWidth:"100%",width:"100%"}})),i=e=>{let{image:t,altTextFallback:n="",className:i,width:l,height:s}=e,d=o();return(0,a.jsx)("img",{className:(0,r.A)(d.image,i),src:(null==t?void 0:t.mediumUrl)||"/assets/images/pdp-no-image-sq/pdp-no-image-sq.png",alt:(null==t?void 0:t.altText)||n,"data-testid":"active-image",id:"active-image",width:l,height:s})}},52043:(e,t,n)=>{n.d(t,{Ay:()=>f,eo:()=>_});var a=n(37876),r=n(14232),o=n(34415),i=n(77742),l=n(54753),s=n(15093),d=n(11148),c=n(30029),u=n(41873),p=n(71007),m=n(17685),g=n(49995),h=n(61261),b=n(11788);let _={en_US:"English - EN",en_GENERIC:"English - EN",zh_CN:"中文 - ZH"},N=(0,h.A)(e=>({triggerLink:{fontSize:"14px",fontFamily:"inherit",fontWeight:"inherit",lineHeight:"inherit","&:hover":{cursor:"pointer"}},noCertificate:{display:"flex",alignItems:"center",color:e.palette.grey[400]},message:{fontWeight:e.typography.fontWeightBold,marginLeft:e.spacing(3),fontSize:"14px"}})),f=e=>{let{sdsLanguages:t=[],productNumber:n,brandKey:h,trigger:_=(0,a.jsx)(s.A,{color:"primary"}),color:f="secondary",className:T,onClick:A,handleClick:y}=e,[C,x]=(0,r.useState)(!1),{userSession:O}=(0,m.j)(),v=N(),{formatMessage:E}=(0,i.A)(),{userErpType:I}=(0,b.iZ)();return(0,a.jsxs)(a.Fragment,{children:[1===t.length&&!!t[0]&&(0,a.jsx)(o.A,{href:d.Q5.index(h,n,O.country,t[0].split("_")[0],I),"data-testid":"sds-".concat(h).concat(n),id:"sds-".concat(h).concat(n),target:"_blank",rel:"noopener noreferrer nofollow",color:f,tabIndex:0,onClick:()=>{var e;A&&A(),(0,p.xH)({action:u.y.SDS,brandKey:h,productNumber:n,language:String(t[0])},{component:"",elementType:"",linkText:"",linkUrl:d.Q5.index(h,n,O.country,(null===(e=t[0])||void 0===e?void 0:e.split("_")[0])||"",I)})},children:_}),0===t.length&&(0,a.jsxs)("span",{className:v.noCertificate,onMouseEnter:e=>{null==y||y(e)},children:[(0,a.jsx)(s.A,{color:"inherit"}),(0,a.jsx)("span",{className:v.message,children:E(l.A.SDS)})]}),t.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.A,{component:"button","data-testid":"sds-".concat(h).concat(n),id:"sds-".concat(h).concat(n),"aria-describedby":"sds",onClick:e=>{e.preventDefault(),A&&A(),x(!0)},color:f,className:(0,g.A)(T,v.triggerLink),tabIndex:0,children:_}),(0,a.jsx)(c.A,{open:C,setModalOpen:x,brands:[h],productNumber:n,sdsLanguages:t})]})]})}},66784:(e,t,n)=>{n.d(t,{A:()=>C});var a=n(37876),r=n(14232),o=n(49995),i=n(78206),l=n(48547),s=n(61261),d=n(96241),c=n(76023),u=n(28888),p=n(82897),m=n(78248);function g(){let e=(0,u._)(["\n query AutoCompleteCertificate($brand: String, $lotNumber: String, $productNumber: String, $term: String!, $type: String!) {\n getAutoCompleteCertificate(\n input: {brand: $brand, lotNumber: $lotNumber, productNumber: $productNumber, term: $term, type: $type}\n ) {\n term\n results {\n value\n count\n }\n }\n}\n "]);return g=function(){return e},e}let h={},b=(0,p.J1)(g());var _=n(8759);let N=(0,s.A)(e=>({autoSuggestContainer:{position:"relative"},autoSuggest:{left:0,right:0,zIndex:1,position:"absolute",marginTop:e.spacing(2),maxHeight:268,overflowY:"auto"},autoSuggestItem:{fontSize:e.typography.pxToRem(14),paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),f=(e,t)=>{switch(t.type){case l.Ay.stateChangeTypes.mouseUp:case l.Ay.stateChangeTypes.blurInput:return{...t,inputValue:e.inputValue};default:return t}},T=e=>{let{value:t,onChange:n,rootClass:i,rootStyle:s,error:u,type:p,brand:g,productNumber:T,lotNumber:A,...y}=e,C=N(),x={brand:g,lotNumber:A,productNumber:T,term:t,type:p},[O,v]=function(e){let t={...h};return m._(b,t)}();(0,r.useEffect)(()=>{x.term.trim().length>0&&void 0!==p&&O({variables:x})},[t,O]);let{data:E}=v,[I,S]=(0,r.useState)("");return(0,a.jsx)(l.Ay,{id:"autocomplete-".concat(p),inputValue:t,onInputValueChange:e=>(S(e),n(e)),itemToString:()=>I||t,stateReducer:f,onChange:e=>(S(e.value),n(e.value)),children:e=>{let{getInputProps:t,getItemProps:n,getMenuProps:r,isOpen:l,inputValue:m,highlightedIndex:g}=e,{onChange:h,onKeyDown:b,...N}=t();return(0,a.jsxs)("div",{className:(0,o.A)({[String(i)]:i}),style:s,children:[(0,a.jsx)(_.A,{autoComplete:"off",inputProps:{...N},name:"".concat(p,"-input"),onChange:h,onKeyDown:b,value:m,error:u,...y}),l&&E&&E.getAutoCompleteCertificate&&(0,a.jsx)("div",{...r(),className:C.autoSuggestContainer,children:(0,a.jsx)(d.A,{square:!0,className:C.autoSuggest,children:E&&m&&m.length>=3&&E.getAutoCompleteCertificate.results&&E.getAutoCompleteCertificate.results.map((e,t)=>(0,a.jsx)(c.A,{...n({key:e.value,index:t,item:e}),component:"div",selected:t===g,className:C.autoSuggestItem,children:e.value},e.value))})})]})}})};var A=n(70524),y=n(68002);let C=e=>{let{rootClass:t,rootStyle:n,size:r="medium",field:l,form:s,help:d,type:c,placeholder:u,brand:p,productNumber:m,lotNumber:g,label:h,onChange:b,..._}=e,N=(0,i.O6)(s.errors,l.name),f=(0,i.O6)(s.touched,l.name),C=N&&f;return(0,a.jsxs)("div",{className:(0,o.A)({[String(t)]:t}),style:n,children:[h&&(0,a.jsx)(A.A,{htmlFor:"".concat(c,"-input"),size:r,error:C,children:h}),(0,a.jsx)(T,{id:c,...l,onChange:e=>{b&&b(e),s.setFieldValue(l.name,e.toUpperCase())},type:c,placeholder:u,brand:p,productNumber:m,lotNumber:g,error:!!C,"aria-describedby":(C||d)&&"".concat(c,"-help-text"),..._}),(C||d)&&(0,a.jsx)(y.A,{id:"".concat(c,"-help-text"),error:!!C,children:C?N:d||null})]})}},67261:(e,t,n)=>{n.d(t,{K4:()=>b,iV:()=>g,ok:()=>h});var a=n(28888),r=n(37876),o=n(82897);n(14232);var i=n(54431),l=n(56057);function s(){let e=(0,a._)(["\n fragment CertificateOfOriginProduct on Product {\n name\n description\n brand {\n key\n name\n color\n logo {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n }\n productNumber\n molecularWeight\n linearFormula\n casNumber\n}\n "]);return s=function(){return e},e}function d(){let e=(0,a._)(["\n fragment CertificateOfOriginTestSpecifications on TestSpec {\n name\n value\n result\n}\n "]);return d=function(){return e},e}function c(){let e=(0,a._)(["\n query CertificateOfOrigin($productNumber: String!, $lotNumber: String!, $brand: String, $documentType: String) {\n getCertificateOfOrigin(\n input: {productNumber: $productNumber, lotNumber: $lotNumber, brand: $brand, documentType: $documentType}\n ) {\n ... on CertificateUrl {\n url\n }\n ... on CertificateText {\n lotNumber\n signatureUrl\n testSpecifications {\n ...CertificateOfOriginTestSpecifications\n }\n product {\n ...CertificateOfOriginProduct\n }\n }\n }\n}\n ","\n",""]);return c=function(){return e},e}let u={},p=(0,o.J1)(s()),m=(0,o.J1)(d()),g=(0,o.J1)(c(),m,p),h=e=>(0,r.jsx)(l.X,{query:g,...e});function b(e){let t={...u,...e};return i.IT(g,t)}},70698:(e,t,n)=>{n.d(t,{Ay:()=>ec,u6:()=>ea,XK:()=>er});var a=n(37876),r=n(14232),o=n(8733),i=n(77742),l=n(54821),s=n(61261),d=n(35877),c=n(12197),u=n(5411),p=n(78206),m=n(49995),g=n(47801),h=n(37901),b=n(67261),_=n(80003),N=n(38527),f=n(11148),T=n(77660),A=n(8288),y=n(17685),C=n(54753),x=n(97710),O=n(38582),v=n(66784),E=n(20534),I=n(71007),S=n(28975),R=n(46129);let j=(0,s.A)(e=>({paragraphSeparation:{marginBottom:e.spacing(4)}})),L=e=>{let{certificateType:t,open:n,onClose:r,children:i}=e,l=j();return(0,a.jsx)(S.Ay,{open:n,onClose:r,size:S.Ih.Small,renderTitle:()=>(0,a.jsx)(c.A,{variant:"h2",children:(0,a.jsx)(o.A,{...C.A.CERTIFICATE_TYPE_NOT_FOUND,values:{certificateType:t}})}),children:(0,a.jsxs)(S.Uh,{children:[(0,a.jsx)(c.A,{variant:"body2",className:l.paragraphSeparation,children:(0,a.jsx)(o.A,{...C.A.UNABLE_TO_FIND_CERTIFICATE})}),i,(0,a.jsx)(c.A,{variant:"body2",children:(0,a.jsx)(o.A,{id:"NO_PRODUCT_DOC_ONLINE",defaultMessage:"In some cases, our product documentation may not be available online. Please {contactUs} to request a copy.",values:{contactUs:(0,a.jsx)(R.N,{href:f.Vc.customerSupport(),children:(0,a.jsx)(o.A,{id:"CONTACT_US_LOWERCASE",defaultMessage:"contact us"})})}})})]})})};var U=n(97471),M=n(44478),D=n(25443),B=n(34415),w=n(86024),k=n(88700);let P=(0,s.A)(e=>({link:{fontSize:e.typography.pxToRem(16),color:e.palette.primary.main,fontWeight:900,textDecoration:"none","&:hover":{cursor:"pointer"}},infoIcon:{position:"relative",top:4,left:8,cursor:"pointer"},modalBodyContainer:{padding:e.spacing(4),[e.breakpoints.up("md")]:{padding:e.spacing(8)},height:150},modalHeading:{opacity:.64},btn:{whiteSpace:"nowrap"},coaInNotFoundModal:{marginBottom:e.spacing(4)}}));var F=function(e){return e.button="button",e.text="text",e}({});let H=e=>{let{linkType:t,props:n,data:l,client:s}=e,d=P(),p=(0,i.A)(),{userSession:m}=(0,y.j)(),[g,h]=(0,r.useState)(!1),{setGlobalSnackbarState:b}=(0,O.W)(),[_,N]=(0,r.useState)(null),f=(e,t,n,a,r,o,i)=>{er(e,"getSampleCertificate",n,a,!0,r,null,o,t,i)},T=e=>{f(e,n,p,b,l,m,N)};return(0,a.jsxs)(a.Fragment,{children:["button"===t&&(0,a.jsx)(u.A,{"data-testid":"view_sample_coa",id:"view_sample_coa",type:"submit",variant:"outlined",color:"primary",size:"large",className:d.btn,onClick:()=>{(0,I.ob)(k.a_.ViewSampleCoa),T(s)},"aria-label":"Submit",children:p.formatMessage({id:"VIEW_SAMPLE_COA",defaultMessage:"View Sample COA"})}),"text"===t&&(0,a.jsxs)(c.A,{variant:"body2",className:d.coaInNotFoundModal,children:[(0,a.jsx)(B.A,{onClick:()=>{(0,I.ob)(k.a_.ViewSampleCoa),(0,I.ob)(k.a_.ViewSampleCOAError),T(s)},style:{cursor:"pointer"},children:(0,a.jsx)("a",{children:(0,a.jsx)(o.A,{id:"VIEW_A_SAMPLE_CERTIFICATE_OF_ANALYSIS",defaultMessage:"View a sample Certificate of Analysis (COA)"})})}),(0,a.jsx)("span",{children:". "}),(0,a.jsx)(o.A,{id:"MAY_NOT_REPRESENT_LOT",defaultMessage:"It may not represent a recently manufactured lot of this specific product."})]}),g&&(0,a.jsx)(w.A,{open:g,onClose:()=>h(!1),size:w.I.Small,renderTitle:()=>(0,a.jsx)(c.A,{variant:"h2",component:"h2",className:d.modalHeading,children:(0,a.jsx)(o.A,{id:"SAMPLE_COA_HEADER",defaultMessage:"SAMPLE COA"})}),children:(0,a.jsx)("div",{className:d.modalBodyContainer,children:(0,a.jsx)(o.A,{id:"SAMPLE_COA_INFO",defaultMessage:"This is a sample Certificate of Analysis (COA) and may not represent a recently manufactured lot of this specific product."})})}),(0,a.jsx)(L,{certificateType:n.type,open:!(0,U.A)(_),onClose:()=>N(null)})]})};var W=n(8392),$=n(67792);let z=(0,n(35967).YK)({HOW_TO_FIND_PRODUCT_NUMBER:{id:"HOW_TO_FIND_PRODUCT_NUMBER",defaultMessage:"How to Find the Product Number"},HOW_TO_FIND_LOT_NUMBER:{id:"HOW_TO_FIND_LOT_NUMBER",defaultMessage:"How to Find a Lot/Batch Number for {formType}"},HOW_TO_ENTER_PRODUCT_NUMBER:{id:"HOW_TO_ENTER_PRODUCT_NUMBER",defaultMessage:"How to Enter Product Number"},HOW_TO_ENTER_LOT_NUMBER:{id:"HOW_TO_ENTER_LOT_NUMBER",defaultMessage:"How to enter Lot Number"},HOW_TO_ENTER_A_PRODUCT_NUMBER:{id:"HOW_TO_ENTER_A_PRODUCT_NUMBER",defaultMessage:"How to enter a Product Number?"},HOW_TO_ENTER_PRODUCT_NUMBER_EXAMPLE:{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 "},HOW_TO_ENTER_PRODUCT_NUMBER_INSTRUCTIONS_TEXT:{id:"HOW_TO_ENTER_PRODUCT_NUMBER_INSTRUCTIONS_TEXT",defaultMessage:"ONLY the product number in the Product Number field"},HOW_TO_ENTER_PRODUCT_NUMBER_TEXT:{id:"HOW_TO_ENTER_PRODUCT_NUMBER_TEXT",defaultMessage:"Below are other examples. For assistance contact"},HOW_TO_ENTER_COA:{id:"HOW_TO_ENTER_COA",defaultMessage:"How to enter a Lot Number for COA?"},HOW_TO_ENTER_COO:{id:"HOW_TO_ENTER_COO",defaultMessage:"How to enter a Lot Number for COO?"},HOW_TO_ENTER_COO_COA_INSTRUCTIONS:{id:"HOW_TO_ENTER_COO_INSTRUCTIONS",defaultMessage:"Lot and Batch Numbers can be found on a product's label following the words 'Lot' or 'Batch'."},HOW_TO_ENTER_COQ:{id:"HOW_TO_ENTER_COQ",defaultMessage:"How to enter a Lot Number for COQ?"},HOW_TO_UNKNOWN:{id:"HOW_TO_UNKNOWN",defaultMessage:"Unable to load 'how to' instructions. Please contact support if you need additional help."}});var q=n(71541),V=n(39069),K=n(52413),Q=n(43909);let G=(0,s.A)(e=>({root:{backgroundColor:e.palette.background.grey,marginTop:e.spacing(6),padding:e.spacing(4),[e.breakpoints.up("md")]:{padding:e.spacing(4,8)}},bold:{fontWeight:e.typography.fontWeightBold},divider:{backgroundColor:e.palette.grey[400],margin:e.spacing(6,0)},vr2:{marginBottom:e.spacing(2)},vr4:{marginBottom:e.spacing(4)}})),J=e=>{let{type:t,isDialog:n}=e,r=G(),i=(0,d.A)(),l=!0===(0,q.A)(i.breakpoints.up("md")),s=n?"body1":"body2",p=n?"h3":"body1";return(0,a.jsxs)(a.Fragment,{children:[!n&&(0,a.jsxs)("div",{className:r.root,children:[!l&&(0,a.jsx)(c.A,{component:"h4",variant:p,className:(0,m.A)(r.bold,r.vr2),children:(0,a.jsx)(o.A,{...Q.D.CANT_FIND_IT})}),(0,a.jsx)(c.A,{component:"p",variant:s,className:r.vr2,children:(0,a.jsx)(o.A,{...Q.D.CERT_NOT_FOUND,values:{certType:t}})}),!l&&(0,a.jsx)(V.A,{className:r.divider}),!l&&(0,a.jsx)(u.A,{size:"large",variant:"outlined",color:"primary",fullWidth:!0,"data-testid":"",href:f.Vc.customerSupport(),children:(0,a.jsx)(o.A,{...Q.D.CERT_REQUEST,values:{certType:t}})}),l&&(0,a.jsx)(K.N,{href:f.Vc.customerSupport(),passHref:!0,children:(0,a.jsx)(B.A,{variant:s,className:r.bold,children:(0,a.jsx)(o.A,{...Q.D.CERT_REQUEST,values:{certType:t}})})})]}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{component:"h4",variant:p,className:r.vr2,children:(0,a.jsx)(o.A,{...C.A["".concat(t,"_NOT_FOUND")]})}),(0,a.jsxs)(c.A,{variant:s,children:[t===T.e_.Coa&&(0,a.jsx)(o.A,{id:"COO_NOT_FOUND_INSTRUCTIONS",defaultMessage:"In some cases, a COO may not be available online. If your search was unable to find the COO you can {requestACooLink}. In many cases a COO can be faxed to you upon submission of this form.",values:{requestACoaLink:(0,a.jsx)(K.N,{href:f.Vc.customerSupport(),children:(0,a.jsx)("a",{children:(0,a.jsx)(o.A,{id:"REQUEST_A_COA",defaultMessage:"request a COA"})})})}}),t===T.e_.Coo&&(0,a.jsx)(o.A,{id:"COO_NOT_FOUND_INSTRUCTIONS",defaultMessage:"In some cases, a COO may not be available online. If your search was unable to find the COO you can {requestACooLink}. In many cases a COO can be faxed to you upon submission of this form.",values:{requestACooLink:(0,a.jsx)(K.N,{href:f.Vc.customerSupport(),children:(0,a.jsx)("a",{children:(0,a.jsx)(o.A,{...C.A.REQUEST_A_COO})})})}}),t===T.e_.Coq&&(0,a.jsx)(o.A,{...C.A.COQ_NOT_FOUND_INSTRUCTIONS})]})]})]})},Y=(0,s.A)(e=>({modalTrigger:{fontSize:e.typography.pxToRem(16),cursor:"pointer"},modalBody:{flex:1,overflowY:"scroll",padding:e.spacing(4),[e.breakpoints.up("md")]:{padding:e.spacing(8,8,12)}}})),X=e=>{let{type:t}=e,{formatMessage:n}=(0,i.A)(),l=Y(),[s,d]=(0,r.useState)(!1),u=String(t).toLowerCase(),p=String(t).toUpperCase(),m=C.A[p]?"(".concat(n(C.A[p]),")"):"",g=z["HOW_TO_ENTER_".concat(p)]||z.HOW_TO_UNKNOWN;return(0,r.useEffect)(()=>{t===T.e_.Coo&&s&&(0,I.ob)(k.a_.HowToEnterLotCoo)},[s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)($.A,{size:$.e.Large,onClick:()=>d(!0),children:[n({id:"HOW_TO_ENTER_LOT_NUMBER",defaultMessage:"How to enter Lot Number"})," ",m]}),s?(0,a.jsx)(w.A,{open:!0,size:w.I.Large,onClose:()=>d(!1),"aria-labelledby":"how-to-enter-".concat(u),renderTitle:()=>(0,a.jsx)(c.A,{component:"h2",variant:"h2",children:(0,a.jsx)(o.A,{...g})}),children:(0,a.jsxs)("div",{className:l.modalBody,children:[(0,a.jsx)(W.A,{type:t,isDialog:!0}),(0,a.jsx)(J,{type:t,isDialog:!0})]})}):null]})};var Z=n(54414);let ee=(0,s.A)(e=>({bannerContainer:{padding:e.spacing(6,0),borderTop:"1px solid ".concat(e.palette.grey[400])},banner:{padding:e.spacing(6),alignItems:"start",background:e.palette.background.grey,display:"flex",flexDirection:"column",width:"100%","& p":{fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(15)}}},sampleCoa:{paddingBottom:e.spacing(2)},downloadCoa:{paddingTop:e.spacing(4)},bodyText:{marginBottom:e.spacing(2)}})),et=e=>{let{children:t}=e,n=ee();return(0,a.jsx)("div",{className:n.bannerContainer,children:(0,a.jsxs)("div",{className:n.banner,children:[(0,a.jsx)(c.A,{variant:"h3",component:"h3",className:n.sampleCoa,children:(0,a.jsx)(o.A,{id:"NEED_SAMPLE_COA",defaultMessage:"Need A Sample COA?"})}),(0,a.jsx)(c.A,{variant:"body1",className:n.bodyText,children:(0,a.jsx)(o.A,{id:"SAMPLE_COA_MESSAGE",defaultMessage:"This is a sample Certificate of Analysis (COA) and may not represent a recently manufactured lot of this specific product."})}),(0,a.jsx)(c.A,{variant:"body1",className:n.downloadCoa,children:t})]})})},en=(0,s.A)(e=>({sampleQueryLinkContainer:{marginTop:e.spacing(1),[e.breakpoints.up("sm")]:{marginTop:e.spacing(0),marginLeft:e.spacing(4),paddingLeft:e.spacing(4),borderLeft:"solid 1px ".concat(e.palette.grey[400])}},titleContainer:{display:"block",marginBottom:e.spacing(1),[e.breakpoints.up("sm")]:{display:"flex",alignItems:"center"}},title:{paddingBottom:e.spacing(2)},submitButton:{width:"100%",[e.breakpoints.up("sm")]:{width:"auto"}},instructions:{fontSize:e.typography.pxToRem(14),[e.breakpoints.up("sm")]:{fontSize:e.typography.pxToRem(16)}},vr2:{marginBottom:e.spacing(2)},vr4:{marginBottom:e.spacing(4)},vr6:{marginBottom:e.spacing(6)},lotMessages:{fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(6)},advancedSearch:{display:"flex",flexDirection:"column",fontSize:e.typography.pxToRem(16),gap:4,marginBottom:e.spacing(4),marginTop:e.spacing(2),[e.breakpoints.up("sm")]:{flexDirection:"row"}},expandedLayout:{backgroundColor:e.palette.common.white,border:"1px solid ".concat(e.palette.grey[400]),borderRadius:e.shape.borderRadius,padding:e.spacing(4,4,0),[e.breakpoints.up("md")]:{padding:e.spacing(6,6,0)},[e.breakpoints.down("md")]:{border:"0px",padding:e.spacing(0,0,0)}},divider:{backgroundColor:e.palette.grey[400],margin:e.spacing(6,0,4)},bodyText:{marginBottom:e.spacing(2)},formMargin:{marginBottom:e.spacing(6)}})),ea=async(e,t,n,r,i,l,s)=>{try{let{unit:a,owner:r}=t.text||{},o=(null==t?void 0:t.productNumber)||(null==n?void 0:n.productNumber);l(!0);let{errors:i,data:s}=await e.query({query:N.ym,variables:{input:{unit:a,owner:r,term:o,type:t.type,lotnumber:null==n?void 0:n.lotNumber}}});if(i||!s||s.error)throw Error();(0,D.lK)(s.pdfDownload,o),l(!1),(0,I.V)({section:t.type,productNumber:null==n?void 0:n.productNumber,lotNumber:null==n?void 0:n.lotNumber})}catch(e){var d;(0,I.hO)({description:"".concat(null===(d=t.type)||void 0===d?void 0:d.toLowerCase()," not found"),errorCategory:"file download errors",productId:(null==n?void 0:n.sku)||(null==n?void 0:n.productNumber),lotNumber:null==n?void 0:n.lotNumber}),l(!1),(t.type===T.e_.Coa||t.type===T.e_.Coo)&&s?s(t.type):i({open:!0,message:r.formatMessage({id:"NO_PRODUCT_DOC_ONLINE",defaultMessage:"In some cases, our product documentation may not be available online. Please {contactUs} to request a copy."},{contactUs:(0,a.jsx)(R.N,{href:f.Vc.customerSupport(),children:(0,a.jsx)(o.A,{id:"CONTACT_US_LOWERCASE",defaultMessage:"contact us"})})}),variant:O.m$.Error})}},er=async(e,t,n,r,i,l,s,d,c,u,p)=>{var m,g,h,b,_,N,y,C,x,v,E,S,j,L;try{let n=(l||s&&await e.query(s).then(e=>{let{data:t}=e;return t}))[t];if(n.streamData){let e=new Uint8Array(n.streamData.length);for(let t=0;t{if(200===r.status)(0,I.dP)({fileExtension:"pdf",fileName:(null==e?void 0:e.substring(0,e.length-4))||null,productId:t,linkUrl:n.url||null});else{var o;(0,I.hO)({description:"".concat(null===(o=c.type)||void 0===o?void 0:o.toLowerCase()," not found"),errorCategory:"file download errors",productId:t,lotNumber:a})}})}window.open(n.url,"_blank")}else if(n.testSpecifications){let e=i?f.Or:f.Ce,a=(0,A.xS)(d,e.index(null!==(E=null!==(v=null==n?void 0:null===(N=n.product)||void 0===N?void 0:null===(_=N.brand)||void 0===_?void 0:_.key)&&void 0!==v?v:null==n?void 0:n.brand)&&void 0!==E?E:"",(null==s?void 0:null===(y=s.variables)||void 0===y?void 0:y.productNumber)||c.productNumber||"",n.lotNumber));"getSampleCertificate"!==t&&(0,I.V)({section:c.type,productNumber:(null==s?void 0:null===(C=s.variables)||void 0===C?void 0:C.productNumber)||c.productNumber||"",lotNumber:(null==s?void 0:null===(x=s.variables)||void 0===x?void 0:x.lotNumber)||"",linkUrl:a.as}),i&&"getSampleCertificate"===t&&(0,I.dP)({fileExtension:"html",fileName:(null==s?void 0:null===(S=s.variables)||void 0===S?void 0:S.lotNumber)||(null==n?void 0:n.lotNumber)||null,productId:(null==s?void 0:null===(j=s.variables)||void 0===j?void 0:j.productNumber)||c.productNumber||null,linkUrl:"".concat(a.as)||null}),window.open(a.as,"_blank")}else throw Error()}catch(e){"getSampleCertificate"!==t&&(0,I.hO)({description:"".concat(null===(L=c.type)||void 0===L?void 0:L.toLowerCase()," not found"),errorCategory:"file download errors",productId:(null==p?void 0:p.sku)||(null==p?void 0:p.productNumber),lotNumber:null==p?void 0:p.lotNumber}),c.type===T.e_.Coa||c.type===T.e_.Coo?u(c.type):r({open:!0,message:n.formatMessage({id:"NO_PRODUCT_DOC_ONLINE",defaultMessage:"In some cases, our product documentation may not be available online. Please {contactUs} to request a copy."},{contactUs:(0,a.jsx)(R.N,{href:f.Vc.customerSupport(),children:(0,a.jsx)(o.A,{id:"CONTACT_US_LOWERCASE",defaultMessage:"contact us"})})}),variant:O.m$.Error})}},eo=e=>"".concat(e[0],".").concat(e.slice(1,6)),ei=e=>{let t=e.trim();return/^[a-zA-Z]|[^0-9]|[-_/]|[.]/.test(t)?t:eo(t)},el=async(e,t,n,r,i,l,s,d,c)=>{let u=t.type===T.e_.Coa,p=k.L[t.type],m=ei(l.productNumber||t.productNumber||""),g=u&&"CERILLIAN"===t.brandKey?"CERILLIANT":t.brandKey||"",_={query:u?h.ij:b.iV,variables:{productNumber:m,lotNumber:l.lotNumber.trim(),documentType:p,brand:g}},N=u?"getCertificateOfAnalysis":"getCertificateOfOrigin";try{let{data:a}=await e.query({query:_.query,variables:{productNumber:_.variables.productNumber,lotNumber:_.variables.lotNumber,documentType:_.variables.documentType,count:1,sendLotNumber:!0}}),{owner:o,unit:c,source:p}=a[N];if("GDI"===p&&l){let a=(null==l?void 0:l.productNumber)||(null==t?void 0:t.productNumber);"MDA"===o&&"CHEM"===c&&l.sku&&(a=l.sku);let r=Object.assign({},t,{productNumber:a,text:{owner:o,unit:c}});ea(e,r,l,n,i,d,s)}else"GDI"!==p&&t.isBlueProduct?ea(e,t,l,n,i,d,s):er(e,N,n,i,u,void 0,_,r,t,s,l)}catch(e){var A;(0,I.hO)({description:"".concat(null===(A=t.type)||void 0===A?void 0:A.toLowerCase()," not found"),errorCategory:"file download errors",productId:(null==l?void 0:l.sku)||(null==l?void 0:l.productNumber),lotNumber:null==l?void 0:l.lotNumber}),d(!1),(t.type===T.e_.Coa||t.type===T.e_.Coo)&&s?s(t.type):i({open:!0,message:n.formatMessage({id:"NO_PRODUCT_DOC_ONLINE",defaultMessage:"In some cases, our product documentation may not be available online. Please {contactUs} to request a copy."},{contactUs:(0,a.jsx)(R.N,{href:f.Vc.customerSupport(),children:(0,a.jsx)(o.A,{id:"CONTACT_US_LOWERCASE",defaultMessage:"contact us"})})}),variant:O.m$.Error})}finally{c(!1)}},es=(e,t,n,a,r,o,i)=>(l,s)=>{let{setSubmitting:d}=s;el(e,t,n,a,r,l,o,i,d)},ed=(e,t,n)=>{let a={};return e.lotNumber.trim()||(a.lotNumber=t.formatMessage(C.A.PLEASE_ENTER_LOT_BATCH_NUMBER)),e.productNumber.trim()||(a.productNumber=t.formatMessage(C.A.PLEASE_ENTER_PRODUCT_NUMBER)),n.showSkuInput&&!e.sku.trim()&&(a.sku=t.formatMessage(C.A.MUST_ENTER_SKU)),a},ec=e=>{let[t,n]=(0,r.useState)(!1),[s,h]=(0,r.useState)(null),b=(0,i.A)(),N=en(),A=(0,d.A)(),{userSession:I}=(0,y.j)(),{setGlobalSnackbarState:S}=(0,O.W)(),{lotNo:R,productNo:j}=(0,f.rd)().query,[B,w]=(0,r.useState)(null),k=e.type===T.e_.Coa?x.Wc.CofAProduct:x.Wc.CofOProduct,P=e.type===T.e_.Coa?x.Wc.CofALot:e.type===T.e_.Coq?x.Wc.CoqLot:x.Wc.CofOLot,{data:W}=(0,_.Wb)({variables:{productNumber:e.productNumber||"",brand:e.brandKey||""},skip:(0,Z.S)()||e.dontShowSampleLink});(0,r.useEffect)(()=>{let e=g.Lr.getItem("pdpProductNumber");e&&(h(e),g.Lr.removeItem("pdpProductNumber"))},[]);let $=()=>e.options&&e.options.length?e.options.map(e=>({label:e,value:e})):[],z=e=>D.VF[e],q=e.type===T.e_.Coa&&!!e.productNumber&&(null==W?void 0:W.getSampleCertificate),V=(t,n)=>(0,a.jsx)(c.A,{variant:"body2",style:{color:n?A.palette.error.main:A.palette.common.black},children:(0,a.jsxs)("b",{children:[e.allFieldsRequired&&"* ",(0,a.jsx)(o.A,{...C.A[t]})]})});return(0,a.jsx)(l.Y,{children:r=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:N.titleContainer,children:(0,a.jsx)(c.A,{variant:"h3",className:N.title,children:e.title})}),e.isExpandedLayout&&(0,a.jsx)(c.A,{variant:"body2",className:N.vr4,children:(0,a.jsx)(o.A,{id:"CERT_SUMMARY",defaultMessage:"Search for {certName} by entering the products Lot/Batch Number. Lot and Batch Numbers can be found on a product’s label following the words ‘Lot’ or ‘Batch’.",values:{certName:e.title}})}),!e.isExpandedLayout&&!e.instructions&&(0,a.jsxs)(a.Fragment,{children:[!e.productInput&&(0,a.jsx)(c.A,{variant:"body2",className:N.vr4,children:b.formatMessage(C.A["ENTER_".concat(e.type)])}),e.showSkuInput&&e.options&&(0,a.jsxs)(c.A,{variant:"body2",className:N.vr4,children:[(0,a.jsx)(o.A,{...C.A.SELECT_PRODUCT_NUMBER_AND_ENTER_LOT_NUMBER})," ",b.formatMessage(C.A["".concat(z(e.type))])," ","(",b.formatMessage(C.A["".concat(e.type)]),")"]}),!e.showSkuInput&&e.productInput&&(0,a.jsx)(c.A,{variant:"body2",className:N.vr4,children:(0,a.jsx)(o.A,{...C.A.ENTER_PRODUCT_AND_LOT_NUMBER})})]}),(0,a.jsxs)("div",{className:(0,m.A)(e.isExpandedLayout&&N.expandedLayout),children:[(0,a.jsx)(p.l1,{enableReinitialize:!0,initialValues:{lotNumber:e.lotNumber||R||"",productNumber:s||e.productNumber||j||"",sku:""},onSubmit:es(r,e,b,I,S,w,n),validateOnBlur:!1,validateOnChange:!1,validate:t=>ed(t,b,e),children:n=>(0,a.jsx)(p.lV,{"data-testid":"".concat(e.type,"-form"),className:N.formMargin,children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:e.instructions?N.vr6:N.vr2,children:[e.instructions&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{className:(0,m.A)(N.vr4,N.instructions),children:e.instructions}),(0,a.jsx)(c.A,{variant:"body2",className:N.vr4,children:(0,a.jsx)(o.A,{...C.A.INDICATES_REQUIRED_FIELD})})]}),e.showSkuInput&&e.options?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(p.D0,{name:"sku",label:V("PRODUCT_NUMBER",n.errors.sku),component:M.A,brand:e.brandKey,inputProps:{autoComplete:"off"},options:$(),displayEmpty:!0,renderValue:e=>""!==e?e:b.formatMessage(C.A.SELECT_A_PRODUCT_NUMBER)})}):(0,a.jsx)(a.Fragment,{children:e.productInput&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:N.vr2,children:(0,a.jsx)(p.D0,{name:"productNumber",label:V("PRODUCT_NUMBER",n.errors.productNumber),filled:!0,component:v.A,placeholder:"e.g. T1503",brand:e.brandKey,inputProps:{autoComplete:"off"},type:k})})})})]}),(0,a.jsx)("div",{className:N.vr6,children:(0,a.jsx)(p.D0,{name:"lotNumber",label:V("LOT_BATCH_NUMBER",n.errors.lotNumber),component:v.A,placeholder:"e.g. 023J5431",filled:!0,brand:e.brandKey,productNumber:n.values.productNumber.trim(),type:P,inputProps:{"data-testid":"".concat(P,"-input"),autoComplete:"off"},onChange:e.onChangeLotNumber})}),(0,a.jsx)("div",{className:N.vr4,children:!e.isExpandedLayout&&!e.instructions&&(0,a.jsx)(X,{type:e.type,productNumber:e.productNumber})}),(0,a.jsx)(u.A,{"data-testid":"".concat(P,"-submit"),id:"".concat(P,"-submit"),type:"submit",variant:"contained",color:"primary",size:"large",className:N.submitButton,disabled:n.isSubmitting||t,"aria-label":"Submit",children:(0,a.jsx)(o.A,{...C.A.SEARCH})})]})})}),q&&e.isExpandedLayout&&(0,a.jsx)(et,{children:(0,a.jsx)(H,{linkType:F.button,props:e,data:W,client:r})})]}),(0,a.jsx)(L,{certificateType:e.type,open:!(0,U.A)(B),onClose:()=>w(null),children:q&&(0,a.jsx)(H,{linkType:F.text,props:e,data:W,client:r})}),t&&(0,a.jsx)(E.A,{})]})})}},80003:(e,t,n)=>{n.d(t,{Jl:()=>u,Wb:()=>m,vc:()=>c});var a=n(28888);n(37876);var r=n(82897);n(14232);var o=n(54431);function i(){let e=(0,a._)(["\n fragment CertificateProduct on Product {\n name\n description\n brand {\n key\n name\n color\n logo {\n altText\n smallUrl\n mediumUrl\n largeUrl\n }\n }\n productNumber\n molecularWeight\n linearFormula\n casNumber\n}\n "]);return i=function(){return e},e}function l(){let e=(0,a._)(["\n fragment TestSpecifications on TestSpec {\n name\n value\n result\n}\n "]);return l=function(){return e},e}function s(){let e=(0,a._)(["\n query SampleCertificateOfAnalysis($productNumber: String!, $brand: String) {\n getSampleCertificate(input: {productNumber: $productNumber, brand: $brand}) {\n ... on CertificateUrl {\n url\n streamData\n }\n ... on CertificateText {\n lotNumber\n brand\n testSpecifications {\n ...TestSpecifications\n }\n product {\n ...CertificateProduct\n }\n }\n }\n}\n ","\n",""]);return s=function(){return e},e}let d={},c=(0,r.J1)(i()),u=(0,r.J1)(l()),p=(0,r.J1)(s(),u,c);function m(e){let t={...d,...e};return o.IT(p,t)}},80863:(e,t,n)=>{n.d(t,{A:()=>a.Ay});var a=n(52043)},88694:(e,t,n)=>{n.d(t,{Gb:()=>p,OS:()=>u});var a=n(28888);n(37876);var r=n(82897),o=n(92885);n(14232);var i=n(54431),l=n(78248);function s(){let e=(0,a._)(["\n query PricingAndAvailability($productNumber: String!, $brand: String, $quantity: Int!, $catalogType: CatalogType, $checkForPb: Boolean, $orgId: String, $materialIds: [String!], $displaySDS: Boolean = false, $dealerId: String, $checkBuyNow: Boolean, $productKey: String, $erp_type: [String!], $cachedPriceOnly: Boolean) {\n getPricingForProduct(\n input: {productNumber: $productNumber, brand: $brand, quantity: $quantity, catalogType: $catalogType, checkForPb: $checkForPb, orgId: $orgId, materialIds: $materialIds, dealerId: $dealerId, checkBuyNow: $checkBuyNow, productKey: $productKey, erp_type: $erp_type, cachedPriceOnly: $cachedPriceOnly}\n ) {\n ...ProductPricingDetail\n }\n}\n ",""]);return s=function(){return e},e}let d={},c=(0,r.J1)(s(),o.$m);function u(e){let t={...d,...e};return i.IT(c,t)}function p(e){let t={...d,...e};return l._(c,t)}},99486:(e,t,n)=>{n.d(t,{I:()=>o,N:()=>r});var a=n(11788),r=function(e){return e.canViewInventory="canViewInventory",e.canAddToCart="canAddToCart",e.canViewOnlineOrder="canViewOnlineOrder",e.canViewOnlineQuote="canViewOnlineQuote",e}({});let o=e=>{let{currentUser:t,currentUserLoading:n}=(0,a.iZ)(),r={authorized:!1,anonymous:!1};return n?r:t?t.abilities[e]?{...r,authorized:!0}:r:{...r,anonymous:!0}}}}]); //# sourceMappingURL=5881-4a260dc234150cb1.js.map