"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[596],{3838:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(37876);a(14232);var o=a(99220),r=a(60058),s=a(33081),n=a(42919);let l=(0,o.makeStyles)()(e=>({formControlLabelRoot:{alignItems:"flex-start",verticalAlign:"inherit"},label:{fontSize:e.typography.pxToRem(16),marginTop:e.typography.pxToRem(5),flexShrink:0,width:"100%",[e.breakpoints.down("sm")]:{flexShrink:1}}})),d=e=>{let{error:t,value:a,name:o,id:d,checked:u,label:c,disabled:m,onChange:p,onBlur:A,formControlClasses:_,inputProps:g,...T}=e,{classes:E}=l(),h=d||o;return(0,i.jsx)(r.A,{classes:{root:E.formControlLabelRoot,label:E.label,..._},checked:u,control:(0,i.jsx)(s.A,{disabled:m,id:h,name:o,value:a,onChange:p,onBlur:A,inputProps:g,error:t,...T}),label:(0,i.jsxs)("div",{children:[c,t&&(0,i.jsx)(n.A,{id:"".concat(o,"-help-text"),error:!!t,children:t||null})]})})}},11374:(e,t,a)=>{a.d(t,{A:()=>E});var i=a(37876),o=a(14232),r=a(77742),s=a(8733),n=a(99220),l=a(77018),d=a(38554),u=a(9887),c=a(92636),m=a(89996),p=a(70029),A=a(36820),_=a(6042);let g=(0,n.makeStyles)()(e=>({root:{fontSize:e.typography.pxToRem(12),lineHeight:1.5,"& > div:not(:last-of-type)":{marginBottom:e.spacing(1)}},link:{fontWeight:e.typography.fontWeightBold,color:e.palette.secondary.dark,cursor:"pointer"},completedChipLabel:{fontSize:e.typography.pxToRem(14)},completedChip:{justifyContent:"flex-start","& .MuiChip-root":{backgroundColor:"#E8F3FA",paddingLeft:e.spacing(1),paddingRight:e.spacing(0),borderRadius:"5px"}},availableLabelChip:{display:"flex",alignItems:"center",fontSize:e.typography.pxToRem(12),gap:e.spacing(1)}}));var T=function(e){return e.estimated="ESTIMATED_TO_SHIP_ON_DYNAMIC",e.available="AVAILABLE_TO_SHIP_ON_DYNAMIC",e.estimatedWithoutPlantLoc="ESTIMATED_TO_SHIP_ON_DYNAMIC_WITHOUT_PLANT_LOC",e.availableWithoutPlantLoc="AVAILABLE_TO_SHIP_ON_DYNAMIC_WITHOUT_PLANT_LOC",e.estimatedDelivery="ESTIMATED_DELIVERY_ON_DYNAMIC",e.estimatedDeliveryOn="ESTIMATED_DELIVERY_ON",e.shippingDateNotAvailable="SHIPPING_DATE_NOT_AVAILABLE",e.contactLocalCustomer="CONTACT_LOCAL_CUSTOMER_SERVICE_FOR_DELIVERY_ESTIMATE",e.limitedAvailability="PRODUCT_AVAILABILITY_LIMITED_AVAILABILITY",e.availabilityUnknown="AVAILABILITY_UNKNOWN",e.contactForAvailability="CONTACT_FOR_AVAILABILITY",e.fulfilmentDeliveryDelayed="FULFILMENT_DELIVERY_DELAYED",e.checkCartForAvailability="CHECK_CART_FOR_AVAILABILITY",e.estimatedWithoutDateAndPlantLoc="ESTIMATED_TO_SHIP_ON_DYNAMIC_WITHOUT_DATE_AND_PLANT_LOC",e.availableWithoutDateAndPlantLoc="AVAILABLE_TO_SHIP_ON_DYNAMIC_WITHOUT_DATE_AND_PLANT_LOC",e.estimatedDeliveryWithoutDateAndPlantLoc="ESTIMATED_DELIVERY_ON_WITHOUT_DATE_AND_PLANT_LOC",e}(T||{});let E=e=>{let{availabilities:t,distrChainStatus:a,className:n,appendLabel:T,showAvailabilityLabelChip:E=!1,selectShippingDate:h,shouldRenderSelectShippingDate:f}=e,{userSession:I}=(0,c.j)(),{classes:y,cx:v}=g(),S=(0,r.A)(),M="/[country]/[language]/checkout"===(0,m.rd)().pathname,N=f&&M,x="YC"===a||"YF"===a||"YR"===a||"YR05"===a||"EXCEPTION5"===a||"YC05"===a||"YF05"===a,O=(0,o.useCallback)((e,a,r)=>{let s=a.date?S.formatDate(new Date(a.date),{year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"}):null,n=a&&a.plantLoc?a.plantLoc:null,d=a.quantity&&t.length?"".concat(a.quantity," "):null;return t.length?(0,i.jsx)(o.Fragment,{children:(0,i.jsx)(A.J,{availability:a,...u.A[e],values:{quantity:d,date:s,plantLoc:n},children:e=>(0,i.jsxs)("div",{children:[T&&(0,i.jsxs)(i.Fragment,{children:[T,": "]}),E?(0,i.jsx)(_.A,{label:(0,i.jsx)(l.A,{className:y.completedChipLabel,children:N?(0,i.jsxs)("span",{className:y.availableLabelChip,children:[e,h]}):e}),className:y.completedChip}):(0,i.jsx)(i.Fragment,{children:e})]})})},r):null},[T,t,N,h,E]),C=(0,o.useCallback)((e,a,o)=>t.length?(0,i.jsx)(A.J,{availability:a,...u.A[e],values:{link:(0,i.jsx)(p.N,{...m.mK.index({path:"/support/faq",language:I.language,country:I.country}),passHref:!0,children:(0,i.jsx)(d.A,{target:"_blank",className:y.link,children:(0,i.jsx)(s.A,{id:"LOCAL_CUSTOMER_SERVICE",defaultMessage:"local customer service"})})})},children:e=>(0,i.jsx)("div",{children:e})},o):null,[]),R=(e,t)=>O((()=>{if(N)switch(e.key){case"ESTIMATED_TO_SHIP_ON":return"ESTIMATED_TO_SHIP_ON_DYNAMIC_WITHOUT_DATE_AND_PLANT_LOC";case"AVAILABLE_TO_SHIP_ON":case"SHIPS_ON_FROM":return"AVAILABLE_TO_SHIP_ON_DYNAMIC_WITHOUT_DATE_AND_PLANT_LOC";case"ESTIMATED_DELIVERY_ON":return"ESTIMATED_DELIVERY_ON_WITHOUT_DATE_AND_PLANT_LOC";default:return"AVAILABILITY_UNKNOWN"}switch(e.key){case"ESTIMATED_TO_SHIP_ON":return e.plantLoc?"ESTIMATED_TO_SHIP_ON_DYNAMIC":"ESTIMATED_TO_SHIP_ON_DYNAMIC_WITHOUT_PLANT_LOC";case"AVAILABLE_TO_SHIP_ON":case"SHIPS_ON_FROM":return e.plantLoc?"AVAILABLE_TO_SHIP_ON_DYNAMIC":"AVAILABLE_TO_SHIP_ON_DYNAMIC_WITHOUT_PLANT_LOC";case"ESTIMATED_DELIVERY_ON":return e.plantLoc?"ESTIMATED_DELIVERY_ON_DYNAMIC":"ESTIMATED_DELIVERY_ON";default:return"AVAILABILITY_UNKNOWN"}})(),e,t);return(0,i.jsxs)("div",{className:v(y.root,n),children:[t.map((e,t)=>{switch(e.key){case"ESTIMATED_TO_SHIP_ON":case"AVAILABLE_TO_SHIP_ON":case"SHIPS_ON_FROM":case"ESTIMATED_DELIVERY_ON":return R(e,t);case"SHIPPING_DATE_NOT_AVAILABLE":return O("SHIPPING_DATE_NOT_AVAILABLE",e,t);case"CONTACT_LOCAL_CUSTOMER_SERVICE_FOR_DELIVERY_ESTIMATE":return C("CONTACT_LOCAL_CUSTOMER_SERVICE_FOR_DELIVERY_ESTIMATE",e,t);case"EMPROVE_SUBSCRIBED_AVAILABILITY":return S.formatMessage({id:"EMPROVE_SUBSCRIBED_AVAILABILITY",defaultMessage:"Available for download once your purchase is completed"});case"EMPROVE_NONSUBSCRIBED_AVAILABILITY":return S.formatMessage({id:"EMPROVE_NONSUBSCRIBED_AVAILABILITY",defaultMessage:"Available for download once your purchase is completed and approved"});case"LIMITED_AVAILABILITY":return C("PRODUCT_AVAILABILITY_LIMITED_AVAILABILITY",e,t);case"CONTACT_FOR_AVAILABILITY":return S.formatMessage({id:"CONTACT_FOR_AVAILABILITY",defaultMessage:"Please contact Customer Service for Availability"});case"CHECK_CART_FOR_AVAILABILITY":return S.formatMessage({id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability"});case"FULFILMENT_DELIVERY_DELAYED":return S.formatMessage({id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed"});case"UNTIL_SUPPLIES_RUN_OUT":return S.formatMessage({id:"UNTIL_SUPPLIES_RUN_OUT",defaultMessage:"This item is available until supplies run out."});case"OUT_OF_STOCK_KEY":return S.formatMessage({id:"OUT_OF_STOCK",defaultMessage:"We apologize but fulfillment and delivery of this product is delayed. We are working to minimize these delays as quickly as possible."});default:return O("AVAILABILITY_UNKNOWN",e,t)}}),x&&(0,i.jsx)("div",{children:(e=>{switch(e){case"YC":return S.formatMessage({id:"DELIVERY_DELAY_RESTRICTIONS",defaultMessage:"Delivery of this item may be delayed due to regulatory or compliance restrictions."});case"YF":return S.formatMessage({id:"DELIVERY_DELAY_TRANSPORTATION",defaultMessage:"Delivery of this item may be delayed due to its transportation regulations."});case"YR":return S.formatMessage({id:"DELIVERY_SAFETY_DOCUMENTATION",defaultMessage:"This item may have limited quality and safety documentation. Once ordered, it may not be canceled or returned."});case"EXCEPTION5":return S.formatMessage({id:"DELIVERY_DELAY_BY_TRUCK",defaultMessage:"Delivered via Merck Truck; Delivery may be delayed."});case"YR05":return S.formatMessage({id:"DELIVERY_DELAY_LIMITED_QUANTITY",defaultMessage:"This item may have limited quality and safety documentation. Once ordered, it may not be cancelled or returned. Delivered via Merck Truck; Delivery may be delayed."});case"YC05":return S.formatMessage({id:"DELIVERY_DELAY_REGULATORY_OR_COMPLIANCE_RESTRICTIONS",defaultMessage:"Delivery of this item may be delayed due to regulatory or compliance restrictions. Delivered via Merck Truck; Delivery may be delayed."});case"YF05":return S.formatMessage({id:"DELIVERY_DELAY_TRANSPORTATION_REGULATIONS",defaultMessage:" Delivery of this item may be delayed due to its transportation regulations. Delivered via Merck Truck; Delivery may be delayed."});default:return null}})(a)})]})}},26831:(e,t,a)=>{a.d(t,{A:()=>i});let i=a(3838).A},29533:(e,t,a)=>{a.d(t,{A:()=>y});var i=a(37876),o=a(14232),r=a(99220),s=a(12197),n=a(9236),l=a(6042),d=a(35967),u=a(8733),c=a(53312),m=a(89996),p=a(32667),A=a(46044),_=a(35152),g=a(51951),T=a(92573);let E=(0,r.makeStyles)()(e=>({promoTitle:{fontWeight:e.typography.fontWeightBold},promoDescription:{marginBottom:e.spacing(3)},shopProductsLink:{fontWeight:e.typography.fontWeightBold},tieredDescription:{margin:0,padding:e.spacing(0,0,0,6)}})),h=e=>{var t,a,r,n,l;let{promoData:h,materialNumber:f,product:y,cartItem:v}=e,{classes:S}=E(),M=null!==(r=null==h?void 0:h.currency)&&void 0!==r?r:"USD",N=null==h?void 0:h.qualifierType,x=(null==h?void 0:h.tiers.length)===1,O=null!==(n=null==h?void 0:null===(t=h.topTier)||void 0===t?void 0:t.discount)&&void 0!==n?n:0,C=null!==(l=null==h?void 0:null===(a=h.topTier)||void 0===a?void 0:a.qualifyingAmount)&&void 0!==l?l:0,R=N===p.Er.Currency,D=N&&A._N[N],L="".concat(R?"spend":"buy"," ").concat(C," save ").concat(O,"%"),b=e=>(0,i.jsx)(d.Gr,{currency:M,style:"currency",minimumFractionDigits:0,maximumFractionDigits:0,value:e}),P=I(O);return(0,o.useEffect)(()=>{y&&(0,_.sendProductDetailPromoEvent)({event:"view_promotion",component:"badge",promoPhrase:D,creativeName:L,product:y,materialNumber:f}),v&&(0,g.iA)({event:"view_promotion",component:"badge",promoPhrase:D,creativeName:L,cartItem:v})},[]),(0,i.jsxs)(i.Fragment,{children:[O&&(0,i.jsx)(s.A,{className:S.promoTitle,children:R?x?(0,i.jsx)(u.A,{id:"SPEND_AND_SAVE_DISCOUNT",defaultMessage:"Spend & Save {discount}",values:{discount:P}}):(0,i.jsx)(u.A,{id:"SPEND_AND_SAVE_UP_TO_DISCOUNT",defaultMessage:"Spend & Save Up To {discount}",values:{discount:P}}):x?(0,i.jsx)(u.A,{id:"BUY_AMOUNT_SAVE_DISCOUNT_TITLE",defaultMessage:"Buy {amount}, Save {discount}",values:{amount:C,discount:P}}):(0,i.jsx)(u.A,{id:"BUY_AND_SAVE_UP_TO_DISCOUNT",defaultMessage:"Buy & Save Up To {discount}",values:{discount:P}})}),C&&O&&(0,i.jsxs)(s.A,{className:S.promoDescription,children:[R?h?x?(0,i.jsx)(u.A,{id:"ELIGIBLE_PRODUCTS",defaultMessage:"Spend {qualifyingAmount} on eligible products to save {discount}.",values:{discount:P,qualifyingAmount:b(C)}}):(0,i.jsx)("ul",{className:S.tieredDescription,children:h.tiers.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(u.A,{id:T.G[p.Er.Currency].multiTier.id,defaultMessage:T.G[p.Er.Currency].multiTier.defaultMessage,values:{promoDiscount:I(e.discount),promoQualifyingAmount:b(e.qualifyingAmount)}})},e.tier))}):null:h?x?(0,i.jsx)(u.A,{id:"BUY_AMOUNT_SAVE_DISCOUNT_DESCRIPTION",defaultMessage:"Buy {amount} or more eligible items to save {discount} off list price.",values:{amount:C,discount:P}}):(0,i.jsx)("ul",{className:S.tieredDescription,children:h.tiers.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(u.A,{id:T.G[p.Er.Quantity].multiTier.id,defaultMessage:T.G[p.Er.Quantity].multiTier.defaultMessage,values:{promoDiscount:I(e.discount),promoQualifyingAmount:e.qualifyingAmount}})},e.tier))}):null," ",(0,i.jsx)(u.A,{id:"SPEND_AND_SAVE_APPLY_DISCOUNT",defaultMessage:"Click “Apply Discount” in cart to redeem."})," ",(0,i.jsx)(u.A,{id:"WEB_ONLY_DISCOUNT",defaultMessage:"Web-Only Discount"})]}),(null==h?void 0:h.uuid)&&(0,i.jsx)(c.N,{href:R?m.qK.smsm(h.uuid):m.qK.bmsm(h.uuid),className:S.shopProductsLink,rel:"nofollow",onClick:()=>{y&&(0,_.sendProductDetailPromoEvent)({event:"select_promotion",component:"badge",promoPhrase:D,creativeName:L,product:y,materialNumber:f}),v&&(0,g.iA)({event:"select_promotion",component:"badge",promoPhrase:D,creativeName:L,cartItem:v})},children:(0,i.jsx)(u.A,{id:"SHOP_PRODUCTS",defaultMessage:"Shop Products"})})]})},f=(0,r.makeStyles)()(e=>({completedChip:{justifyContent:"flex-start","& .MuiChip-root":{backgroundColor:e.palette.promoGreen,paddingLeft:e.spacing(1),paddingRight:e.spacing(0),height:"26px"}},clickableChip:{"& .MuiChip-root":{cursor:"pointer"}},completedChipLabel:{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(3,4),top:"16px"},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)"}}})),I=e=>(0,i.jsx)(d.Gr,{minimumFractionDigits:0,style:"percent",value:e/100}),y=e=>{var t,a,o,r;let{promoData:d,className:c,showTooltip:m=!1,materialNumber:A,product:_,cartItem:g}=e,{classes:T,cx:E}=f(),y=(null==d?void 0:d.tiers.length)===1,v=null!==(o=null==d?void 0:null===(t=d.topTier)||void 0===t?void 0:t.discount)&&void 0!==o?o:0,S=null!==(r=null==d?void 0:null===(a=d.topTier)||void 0===a?void 0:a.qualifyingAmount)&&void 0!==r?r:0,M=I(v),N=(0,i.jsx)(l.A,{label:(0,i.jsxs)(s.A,{className:T.completedChipLabel,children:[!y&&(0,i.jsx)(u.A,{id:"SAVE_UP_TO_DISCOUNT",defaultMessage:"Save Up To {discount}",values:{discount:M}}),y&&(null==d?void 0:d.qualifierType)===p.Er.Currency&&(0,i.jsx)(u.A,{id:"SPEND_AND_SAVE_DISCOUNT",defaultMessage:"Spend & Save {discount}",values:{discount:M}}),y&&(null==d?void 0:d.qualifierType)===p.Er.Quantity&&(0,i.jsx)(u.A,{id:"BUY_AMOUNT_SAVE_DISCOUNT",defaultMessage:"Buy {amount} Save {discount}",values:{amount:S,discount:M}})]}),className:E(T.completedChip,c,{[T.clickableChip]:m})});return(0,i.jsx)("div",{"data-testid":"promo-badge",children:m?(0,i.jsx)(n.Ay,{arrow:!0,classes:{tooltip:T.tooltip,arrow:T.arrow},placement:"top",interactive:!0,title:(0,i.jsx)(h,{promoData:d,materialNumber:A,product:_,cartItem:g}),children:(0,i.jsx)("div",{className:T.tooltipWrapper,children:N})}):N})}},32667:(e,t,a)=>{a.d(t,{Bw:()=>i,Er:()=>l,Jy:()=>r,c5:()=>n,lJ:()=>o,or:()=>s});var i=function(e){return e.error="WIMS_AUTH_ERROR",e.success="WIMS_AUTH_SUCCESS",e}({}),o=function(e){return e.Filled="filled",e.Outlined="outlined",e}({}),r=function(e){return e.Default="default",e.Primary="primary",e.Secondary="secondary",e}({}),s=function(e){return e.Small="small",e.Medium="medium",e}({}),n=function(e){return e.BuySave="BUY_SAVE",e.SubscribeSave="SUBSCRIBE_SAVE",e.PercentOff="PERCENT_OFF",e}({}),l=function(e){return e.Quantity="QUANTITY",e.Currency="CURRENCY",e}({})},33081:(e,t,a)=>{a.d(t,{A:()=>l});var i=a(37876);a(14232);var o=a(99220),r=a(81225),s=a(99846);let n=(0,o.makeStyles)()((e,t)=>{let{size:a}=t;return{checkbox:{display:"flex",alignItems:"center",justifyContent:"center",height:"large"===a?e.typography.pxToRem(24):e.typography.pxToRem(20),width:"large"===a?e.typography.pxToRem(24):e.typography.pxToRem(20),fontSize:"large"===a?e.typography.pxToRem(16):e.typography.pxToRem(12),border:"solid 1px ".concat(e.palette.grey[500]),borderRadius:e.typography.pxToRem(3),transition:"all .3s","input:hover ~ &":{boxShadow:"0px 0px 0px 3px ".concat(e.palette.primary.light)}},checkboxFocusVisible:{"& .checkbox":{boxShadow:"0 0 6px 0 ".concat(e.palette.primary.main),border:"solid 1px ".concat(e.palette.primary.main)}},checkboxError:{border:"solid 2px ".concat(e.palette.error.main),"& svg":{color:e.palette.error.main}},checkmarkIcon:{fontSize:"large"===a?e.typography.pxToRem(16):e.typography.pxToRem(12)},inputDisabled:{borderColor:e.palette.grey[400],backgroundColor:e.palette.grey[400],"input:hover ~ &":{boxShadow:"none"}}}}),l=e=>{let{error:t,size:a="default",color:o="primary",name:l,id:d,testId:u="common-checkbox",value:c,disabled:m,checked:p,onChange:A,onBlur:_,inputProps:g,className:T,...E}=e,{classes:h,cx:f}=n({size:a});return(0,i.jsx)(s.A,{"data-testid":u,disabled:m,id:d,name:l,value:c,checked:p,onChange:A,onBlur:_,focusVisibleClassName:h.checkboxFocusVisible,inputProps:{"aria-describedby":t?"".concat(l,"-help-text"):void 0,"aria-disabled":m||void 0,...g},icon:(0,i.jsx)("div",{className:f(h.checkbox,{[h.checkboxError]:!!t,[h.inputDisabled]:m},T)}),checkedIcon:(0,i.jsx)("div",{className:f(h.checkbox,{[h.checkboxError]:!!t,[h.inputDisabled]:m},T),children:(0,i.jsx)(r.A,{"data-testid":"checkmark-icon",className:h.checkmarkIcon,fontSize:"inherit",color:m?"disabled":o})}),...E})}},37309:(e,t,a)=>{a.d(t,{B9:()=>d,C4:()=>u,I4:()=>c,dz:()=>m,jr:()=>s,k3:()=>n,yk:()=>l});var i=a(36927),o=a(77742),r=a(21834);let s=e=>(t,a)=>{try{e.validateSync(t,a);return}catch(e){return e.message}},n=function(){for(var e=arguments.length,t=Array(e),a=0;at.reduce((t,i)=>t||i(e,a),void 0)},l=e=>!!e&&RegExp("\\p{Extended_Pictographic}","u").test(e),d=e=>!e||RegExp("(^[a-zA-Z0-9]+[a-zA-Z0-9-_.&']*@(?:[a-zA-Z0-9-]*[a-zA-Z0-9]+\\.)+[a-zA-Z]{1,}$)").test(e),u=e=>{if(!e)return!0;let t=RegExp("^[0-9-()+\\- ]*$");return!(e.trim().length<4)&&t.test(e)},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!t&&!e||RegExp("^1[3456789]\\d{9}$").test(e||"")},m=()=>{let e=(0,o.A)(),t=i.Yj().trim().email(e.formatMessage(r.A.EMAIL_MUST_BE_VALID)).max(241,e.formatMessage(r.A.MAX_241_CHARACTERS)),a=i.Yj().trim().test("validateEmail","Invalid Email",e=>d(e)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})).max(241,e.formatMessage(r.A.MAX_241_CHARACTERS)),n=i.Yj().trim().required(e.formatMessage(r.A.USERNAME_REQUIRED)),m=i.Yj().trim().matches(/^$|(?:[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})(?:,\s*[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})*$/,e.formatMessage(r.A.EMAIL_MUST_BE_VALID)).max(241,e.formatMessage(r.A.MAX_241_CHARACTERS)),p=i.Yj().trim().required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),A=i.Yj().trim().max(20,e.formatMessage(r.A.MAX_20_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(r.A.NUMERIC_PHONE)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),_=i.Yj().trim().max(20,e.formatMessage(r.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(r.A.PHONE_FAX_NO_HELP_MSG),e=>u(e)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),g=i.Yj().max(20,e.formatMessage(r.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(r.A.PHONE_FAX_NO_HELP_MSG),e=>u(e)),T=i.Yj().max(20,e.formatMessage(r.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(r.A.PHONE_FAX_NO_HELP_MSG),e=>u(e)),E=i.Yj().max(10,e.formatMessage(r.A.MAX_10_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(r.A.NUMERIC_PHONE)).test("atLeastTwoNumbers",e.formatMessage(r.A.MIN_2_NUMBERS),e=>(null==e?void 0:e.length)!==1),h=i.Yj().max(10,e.formatMessage(r.A.MAX_10_CHARACTERS)).matches(/^[0-9()-\s]*$/,e.formatMessage(r.A.NUMERIC_PHONE_WITH_SPACE)).test("atLeastTwoNumbers",e.formatMessage(r.A.MIN_2_NUMBERS),e=>(null==e?void 0:e.length)!==1),f=i.Yj().test("min-4-digits","Phone number must have at least 4 digits",e=>{let t=(e||"").replace(/\D/g,"");return 0===t.length||t.length>=4}).required("Required"),I=i.Yj().max(20,e.formatMessage(r.A.MAX_20_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(r.A.NUMERIC_FAX)),y=i.Yj().max(20,e.formatMessage(r.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(r.A.PHONE_FAX_NO_HELP_MSG),e=>u(e)),v=i.Yj().max(16,e.formatMessage(r.A.MAX_16_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(r.A.NUMERIC_MOBILE)),S=i.Yj().test("validChinaMobileNumber",e.formatMessage(r.A.MOBILE_FORMAT_INVALID),e=>c(e)),M=i.Yj().max(16,e.formatMessage(r.A.MAX_16_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(r.A.PHONE_FAX_NO_HELP_MSG),e=>u(e)),N=i.Yj().matches(/^[0-9]*$/,e.formatMessage(r.A.NUMBERS_ONLY)),x=i.Yj().matches(/^[0-9a-zA-Z]*$/,e.formatMessage(r.A.ALPHANUMERIC_ONLY)),O=i.Yj().matches(/^[0-9]+(\.[0-9]{1,2})?$/,e.formatMessage(r.A.PLEASE_ENTER_VALID_AMOUNT)).test("equalToOrGreaterThanOne",e.formatMessage(r.A.PLEASE_ENTER_VALID_AMOUNT),e=>Number(e)>=1),C=t=>i.Yj().min(t,e.formatMessage(r.A.MIN_N_CHARACTERS,{min:t})),R=t=>i.Yj().max(t,e.formatMessage(r.A.MAX_N_CHARACTERS,{max:t})),D=i.p6().max(new Date(Date.UTC(9999,1)),e.formatMessage(r.A.EXP_YEAR_MUST_BE_4_DIGITS)).min(new Date,e.formatMessage(r.A.EXP_DATE_CANNOT_BE_IN_PAST)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),L=i.Yj().test("emojiTest",e.formatMessage({id:"EMOJI_NOT_SUPPORTED",defaultMessage:" Emojis are not supported"}),e=>!l(e)),b=i.Yj().test("half-width",e.formatMessage(r.A.HALF_WIDTH_CHARACTERS_ONLY),e=>!e||/^[\u0020-\u007E]*$/.test(e));return{email:s(t),ccEmail:s(m),requiredEmail:s(a),requiredUserName:s(n),requiredPhone:s(A),requiredPhoneWithSpaces:s(_),required:s(p),phone:s(g),phoneWithSpaces:s(T),extension:s(E),extensionWithSpaces:s(h),phoneSchema:s(f),fax:s(I),faxWithSpaces:s(y),mobile:s(v),mobileWithSpaces:s(M),mobileChinaUser:s(S),numeric:s(N),alphanumeric:s(x),floatToTwoDecimalPlaces:s(O),minLength:e=>s(C(e)),maxLength:e=>s(R(e)),futureDateRequired:s(D),hasNoEmojis:s(L),halfWidthChars:s(b),rawYupSchema:{email:t,ccEmail:m,requiredEmail:a,requiredUserName:n,requiredPhone:A,requiredPhoneWithSpaces:_,required:p,phone:g,phoneWithSpaces:T,extension:E,extensionWithSpaces:h,phoneSchema:f,fax:I,faxWithSpaces:y,mobile:v,mobileWithSpaces:M,mobileChinaUser:S,numeric:N,alphanumeric:x,floatToTwoDecimalPlaces:O,minLength:C,maxLength:R,futureDateRequired:D,hasNoEmojis:L,halfWidthChars:b}}}},46044:(e,t,a)=>{a.d(t,{Ay:()=>f,_N:()=>E});var i=a(37876),o=a(14232),r=a(7645),s=a(12197),n=a(62222),l=a(8733),d=a(35967),u=a(21990),c=a(89996),m=a(32667),p=a(48019),A=a(82728),_=a(35152),g=a(99220),T=a(92573);let E={[m.Er.Quantity]:"buy more save more",[m.Er.Currency]:"spend more save more",[m.c5.PercentOff]:"percent off",[m.c5.BuySave]:"",[m.c5.SubscribeSave]:""},h=(0,g.makeStyles)()(e=>({promoBox:{borderLeft:"".concat(e.spacing(2.5)," solid ").concat(e.palette.promoGreen),borderRadius:e.spacing(.5),boxShadow:"".concat(e.spacing(0,0,1.5,0)," ").concat(e.palette.grey[400]),display:"flex",flexDirection:"column",gap:e.spacing(1),padding:e.spacing(4,2,4,6)},wrapperBox:{alignItems:"center",display:"flex"},promoCta:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(16)},promoDisclaimer:{fontWeight:e.typography.fontWeightRegular,fontSize:e.typography.pxToRem(14),paddingRight:e.spacing(1)},shopProductsLink:{fontWeight:e.typography.fontWeightBold},asterisk:{padding:0,fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main,cursor:"pointer"},modalBody:{fontSize:e.typography.pxToRem(16),lineHeight:e.typography.pxToRem(24)},savingsIcon:{color:e.palette.rich.green,fontSize:e.typography.pxToRem(24),marginRight:e.spacing(2)}})),f=e=>{var t,a;let{promoData:g,promoTerms:f,materialNumber:I}=e,{classes:y}=h(),{product:v}=(0,A.Gz)(),[S,M]=(0,o.useState)(!1),N=null==g?void 0:g.qualifierType,x=(null==g?void 0:g.promoType)===m.c5.BuySave,O=N===m.Er.Currency,C=(null==g?void 0:g.promoType)===m.c5.PercentOff,R=null==g?void 0:g.discount,D=O||C,L=(null==g?void 0:g.uuid)||"",b=C?"save ".concat(R,"%"):"".concat(O?"spend":"buy"," ").concat(null==g?void 0:null===(t=g.firstTier)||void 0===t?void 0:t.qualifyingAmount," save ").concat(null==g?void 0:null===(a=g.firstTier)||void 0===a?void 0:a.discount,"%"),P=()=>E[C?m.c5.PercentOff:N],j=N?1===g.tiers.length?T.G[N].singleTier:T.G[N].multiTier:null;(0,o.useEffect)(()=>{f&&(0,_.sendProductDetailPromoEvent)({event:"view_promotion",component:"banner",promoPhrase:P(),creativeName:b,product:v,materialNumber:I})},[f,I]);let Y=()=>C?c.qK.percentOff(L):x?O?c.qK.smsm(L):c.qK.bmsm(L):c.qK.index();return(0,i.jsxs)(r.A,{className:y.promoBox,"data-testid":"promo-box",children:[(0,i.jsx)(r.A,{className:y.wrapperBox,children:(0,i.jsxs)(i.Fragment,{children:[D&&(0,i.jsx)(p.A,{className:y.savingsIcon}),(0,i.jsxs)(s.A,{className:y.promoCta,variant:"body2","data-testid":"promo-cta",children:[C&&R&&(0,i.jsx)(l.A,{id:"SUBSCRIPTION_SAVE_MESSAGE",defaultMessage:"Save {discount}% off list price",values:{discount:R}}),x&&j&&g.tiers.map((e,t)=>{var a,r,s,n;return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(l.A,{id:j.id,defaultMessage:j.defaultMessage,values:{promoDiscount:(0,i.jsx)(d.Gr,{minimumFractionDigits:0,style:"percent",value:(null!==(a=null==e?void 0:e.discount)&&void 0!==a?a:0)/100}),promoQualifyingAmount:O?(0,i.jsx)(d.Gr,{currency:null!==(r=null==g?void 0:g.currency)&&void 0!==r?r:"USD",maximumFractionDigits:0,minimumFractionDigits:0,style:"currency",value:null!==(s=null==e?void 0:e.qualifyingAmount)&&void 0!==s?s:0}):null!==(n=null==e?void 0:e.qualifyingAmount)&&void 0!==n?n:0}}),t{M(!0)},children:"*"})]})]})}),(0,i.jsxs)(r.A,{className:y.wrapperBox,children:[(0,i.jsxs)(s.A,{className:y.promoDisclaimer,variant:"body2",children:[x&&(0,i.jsx)(l.A,{id:"PROMO_BOX_APPLY_DISCOUNT",defaultMessage:"Apply discount in cart."}),C&&(0,i.jsx)(l.A,{id:"PROMO_BOX_USE_CODE_IN_CART",defaultMessage:"Use code {promoCode} in cart.",values:{promoCode:null==g?void 0:g.promoCode,b:e=>(0,i.jsx)("strong",{children:e})}})," ",(0,i.jsx)(l.A,{id:"PROMO_BOX_OFFERS_NOT_COMBINABLE",defaultMessage:"Offers cannot be combined."})," ",(0,i.jsx)(n.N,{href:Y(),className:y.shopProductsLink,rel:"nofollow",onClick:()=>{(0,_.sendProductDetailPromoEvent)({event:"select_promotion",component:"banner",promoPhrase:P(),creativeName:b,product:v,materialNumber:I})},children:(0,i.jsx)(l.A,{id:"SHOP_PRODUCTS",defaultMessage:"Shop Products"})})]}),(0,i.jsx)(u.Ay,{"data-testid":"smsm-promo-terms-modal",size:u.Ih.Small,renderTitle:()=>(0,i.jsx)(s.A,{variant:"h2",component:"h2",children:(0,i.jsx)(l.A,{id:"PROMOTION_TERMS",defaultMessage:"Promotion Terms"})}),open:S,onClose:()=>M(!1),children:(0,i.jsx)(u.Uh,{className:y.modalBody,children:(0,i.jsx)(l.A,{id:"SMSM_PROMO_TERMS",defaultMessage:"Valid for web orders placed by {validTo}. This promotional discount only applies to products listed on the {link} page. Discount is calculated off of list price and cannot be combined with other offers. Exclusions and restrictions may apply. Purchase requirement is calculated before tax and shipping. Upon redemption of a promotion, organizational & contract pricing will override the promotion if lower. Your order will reflect the best eligible price.",values:{validTo:(0,i.jsx)(d.XU,{value:(null==g?void 0:g.validTo)?new Date(g.validTo):"",year:"numeric",month:"long",day:"numeric"}),link:(0,i.jsx)(n.N,{href:Y(),children:(0,i.jsx)(l.A,{id:"PROMOTION",defaultMessage:"Promotion"})})}})})})]})]})}},63158:(e,t,a)=>{a.d(t,{QA:()=>i,Wt:()=>u,ib:()=>r,jp:()=>d,qE:()=>o,uB:()=>s,vd:()=>l,yC:()=>n});let i=e=>{var t,a,i,o,r,s;let n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.terms;if(!n)return null;let l=null!==(o=n.tiers)&&void 0!==o?o:[],d=l[0],u=l[l.length-1];return l.length>0?{promoType:n.promoType,promoCode:n.promoCode,qualifierType:n.qualifierType,currency:n.currency,validFrom:n.validFrom,validTo:n.validTo,uuid:null===(r=e.data)||void 0===r?void 0:r.uuid,hidePromoDetailsForAnonUser:null===(s=e.data)||void 0===s?void 0:s.hidePromoDetailsForAnonUser,tiers:l,firstTier:d,topTier:u}:{promoType:n.promoType,promoCode:n.promoCode,qualifierType:n.qualifierType,currency:n.currency,validFrom:n.validFrom,validTo:n.validTo,uuid:null===(a=e.data)||void 0===a?void 0:a.uuid,hidePromoDetailsForAnonUser:null===(i=e.data)||void 0===i?void 0:i.hidePromoDetailsForAnonUser,discount:n.discount,tiers:[],firstTier:void 0,topTier:void 0}},o=(e,t,a)=>Math.min(Math.max(e,t),a),r=(e,t)=>{let a=-1;for(let r=0;r=(null!==(o=null===(i=e[r])||void 0===i?void 0:i.qualifyingAmount)&&void 0!==o?o:0)&&(a=r)}return a},s=(e,t)=>{let a=t+1;return a>=0&&aMath.max(0,e-t),l=(e,t)=>t>=e.length-1,d=e=>{var t,a,i;return e.tiers.length?null!==(a=null===(t=e.topTier)||void 0===t?void 0:t.discount)&&void 0!==a?a:0:null!==(i=e.discount)&&void 0!==i?i:0},u=e=>{if(e.tiers.length){var t,a;return null!==(a=null===(t=e.firstTier)||void 0===t?void 0:t.qualifyingAmount)&&void 0!==a?a:0}return 0}},78851:(e,t,a)=>{a.d(t,{Ay:()=>_,Qs:()=>A,R$:()=>m,Rp:()=>l,bJ:()=>p});var i=a(14232),o=a(71541),r=a(37929),s=a(15815),n=a(97471),l=function(e){return e.XS="xs",e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e}({});let d=["xl","lg","md","sm","xs"],u=()=>{let e=(0,r.A)();return{xs:(0,o.A)(e.breakpoints.up("xs")),sm:(0,o.A)(e.breakpoints.up("sm")),md:(0,o.A)(e.breakpoints.up("md")),lg:(0,o.A)(e.breakpoints.up("lg")),xl:(0,o.A)(e.breakpoints.up("xl"))}},c=(e,t)=>(0,s.A)(d,a=>!(0,n.A)(e[a])&&t[a])||"xs",m=()=>{let e=u();return t=>{let a=c(t,e);return t[a]||0}},p=(e,t,a)=>{let[o,r]=(0,i.useState)(a),s=c(e,u());return(0,i.useEffect)(()=>{r(e[s])},[s]),t[o||a]},A=()=>{let e=(0,r.A)(),t=(0,o.A)(e.breakpoints.down("sm")),a=(0,o.A)(e.breakpoints.between("md","lg"));return{isMobile:t,isTablet:a,isDesktop:(0,o.A)(e.breakpoints.up("lg")),isLargeDesktop:(0,o.A)(e.breakpoints.up("xl"))}},_=()=>{let e=u();return t=>{let a=c(t,e);return t[a]||0}}},81781:(e,t,a)=>{a.d(t,{A:()=>i.A});var i=a(91894)},82728:(e,t,a)=>{a.d(t,{Gz:()=>s,hM:()=>n});var i=a(37876),o=a(14232);let r=(0,o.createContext)(void 0),s=()=>{let e=(0,o.useContext)(r);if(!e)throw Error("useProductContext must be used within a ProductProvider");return e},n=e=>{let{product:t,children:a}=e,s=(0,o.useMemo)(()=>Object.freeze(t),[t]),n=(0,o.useMemo)(()=>({product:s}),[s]);return(0,i.jsx)(r.Provider,{value:n,children:a})}},91894:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(37876);a(14232);let o=(0,a(99220).makeStyles)()(e=>({loaderBackground:{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1e3,backgroundColor:"white",opacity:.75,pointerEvents:"none"},loaderWrapper:{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"},loaderWrapperWithMessage:{position:"fixed",top:-150,bottom:0,left:0,right:0,zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},message:{position:"fixed",top:450,bottom:0,left:0,right:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column","& div":{fontSize:e.typography.pxToRem(20),fontWeight:e.typography.fontWeightBold,color:e.palette.grey[500],maxWidth:e.spacing(130),minHeight:e.spacing(50),textAlign:"center"}},loaderImg:{width:"400px",display:"flex",alignItems:"center",justifyContent:"center"}})),r=e=>{let{message:t,messageStyleOverride:a}=e,{classes:r,cx:s}=o();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:r.loaderBackground}),(0,i.jsxs)("div",{className:t?r.loaderWrapperWithMessage:r.loaderWrapper,children:[(0,i.jsx)("img",{className:r.loaderImg,alt:"",src:"/static/loading.gif"}),t&&(0,i.jsx)("div",{className:s(r.message,a),children:t})]})]})}},92573:(e,t,a)=>{a.d(t,{G:()=>i});let i={QUANTITY:{singleTier:{id:"BUY_TO_SAVE_SINGLE_TIER",defaultMessage:"Buy {promoQualifyingAmount} or more items, save {promoDiscount} off list price"},multiTier:{id:"BUY_TO_SAVE_MULTI_TIER",defaultMessage:"Buy {promoQualifyingAmount} — Save {promoDiscount}"}},CURRENCY:{singleTier:{id:"SPEND_TO_SAVE_SINGLE_TIER",defaultMessage:"Spend {promoQualifyingAmount} to save {promoDiscount} off list price"},multiTier:{id:"SPEND_TO_SAVE_MULTI_TIER",defaultMessage:"Spend {promoQualifyingAmount} — Save {promoDiscount}"}}}},94819:(e,t,a)=>{a.d(t,{A:()=>n});var i=a(37876);a(14232);var o=a(99220),r=a(45756);let s=(0,o.makeStyles)()(e=>({loading:{borderRadius:e.shape.borderRadius/2,background:"linear-gradient(to right, ".concat(e.palette.grey[200],", ").concat(e.palette.grey[200]," 25%, #f3f3f3, ").concat(e.palette.grey[200]," 75%, ").concat(e.palette.grey[200],")"),backgroundSize:"200% 200%",backgroundPositionX:"100%",animation:"$animation 2s ease-out infinite",animationDirection:"normal",animationDelay:"1s",[e.breakpoints.up("sm")]:{borderRadius:e.shape.borderRadius}},"@keyframes animation":{"0%":{backgroundPositionX:"100%"},"50%":{backgroundPositionX:"0%"},"100%":{backgroundPositionX:"100%"}}})),n=e=>{let{className:t,style:a,...o}=e,{classes:n,cx:l}=s();return(0,i.jsx)(r.A,{className:l(n.loading,t),style:a,...o})}},97826:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(37876);a(14232);var o=a(69241),r=a(78206),s=a(22838),n=a(8133),l=a(42919);let d=e=>{let{rootClass:t,rootStyle:a,size:d="medium",field:u,form:c,label:m,required:p,help:A,style:_,helpStyle:g,displayError:T=!0,toolTipText:E,hasErrorStyle:h=!0,additionalLabel:f,additionalLabelStyle:I,fieldId:y,...v}=e,S=(0,r.O6)(c.errors,u.name),M=(0,r.O6)(c.touched,u.name),N=S&&M&&h,x=N?S:A||null;return(0,i.jsxs)("div",{className:(0,o.A)({[String(t)]:t}),style:a,children:[(0,i.jsxs)("div",{style:{..._,...f?I:{}},children:[m&&(0,i.jsx)(n.A,{htmlFor:u.name,required:p,size:d,error:!!N||(null==v?void 0:v.error),style:_,toolTipText:E,children:m}),f&&(0,i.jsx)(n.A,{htmlFor:u.name,size:d,error:!!N||(null==v?void 0:v.error),style:_,toolTipText:E,children:f})]}),(0,i.jsx)(s.A,{id:y||u.name,...u,size:d,error:!!N,"aria-describedby":(N||A)&&"".concat(u.name,"-help-text"),...v}),(N||A)&&T&&(0,i.jsx)(l.A,{id:"".concat(u.name,"-help-text"),error:!!N,style:g,children:x})]})}}}]); //# sourceMappingURL=./596-e60b2b3eabccbb8a.js.map