"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6227],{11631:(e,a,t)=>{t.d(a,{A:()=>s});var r=t(37876);t(14232);let i=(0,t(61261).A)(e=>({loaderBackground:{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1e3,backgroundColor:"white",opacity:.35,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"}})),s=e=>{let{message:a}=e,t=i();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:t.loaderBackground}),(0,r.jsxs)("div",{className:a?t.loaderWrapperWithMessage:t.loaderWrapper,children:[(0,r.jsx)("img",{className:t.loaderImg,alt:"",src:"/static/loading.gif"}),a&&(0,r.jsx)("div",{className:t.message,children:a})]})]})}},14040:(e,a,t)=>{t.d(a,{Bw:()=>r,Jy:()=>s,c5:()=>o,lJ:()=>i,or:()=>l});var r=function(e){return e.error="WIMS_AUTH_ERROR",e.success="WIMS_AUTH_SUCCESS",e}({}),i=function(e){return e.Default="default",e.Outlined="outlined",e}({}),s=function(e){return e.Default="default",e.Primary="primary",e.Secondary="secondary",e}({}),l=function(e){return e.Small="small",e.Medium="medium",e}({}),o=function(e){return e.BuySave="BUY_SAVE",e.SubscribeSave="SUBSCRIBE_SAVE",e.PercentOff="PERCENT_OFF",e}({})},20534:(e,a,t)=>{t.d(a,{A:()=>r.A});var r=t(11631)},26841:(e,a,t)=>{t.d(a,{A:()=>r.A});var r=t(88952)},31591:(e,a,t)=>{t.d(a,{A:()=>p});var r=t(37876),i=t(14232),s=t(77742),l=t(8733),o=t(99220),n=t(12197),A=t(34415),d=t(70608),_=t(17685),u=t(11148),c=t(52413),m=t(69485),I=t(47671);let E=(0,o.n9)()(e=>({root:{fontSize:e.typography.pxToRem(12),lineHeight:1.5,"& > div:not(:last-child)":{marginBottom:e.spacing(1)}},link:{fontWeight:e.typography.fontWeightBold,color:e.palette.secondary.dark,cursor:"pointer"},completedChipLabel:{fontSize:e.typography.pxToRem(12)},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 p=e=>{let{availabilities:a,distrChainStatus:t,className:o,appendLabel:T,showAvailabilityLabelChip:p=!1,selectShippingDate:g,shouldRenderSelectShippingDate:N}=e,{userSession:f}=(0,_.j)(),{classes:h,cx:M}=E(),O=(0,s.A)(),L="/[country]/[language]/checkout"===(0,u.rd)().pathname,C=N&&L,S="YC"===t||"YF"===t||"YR"===t||"YR05"===t||"EXCEPTION5"===t||"YC05"===t||"YF05"===t,R=(0,i.useCallback)((e,t,s)=>{let l=t.date?O.formatDate(new Date(t.date),{year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"}):null,o=t&&t.plantLoc?t.plantLoc:null,A=t.quantity&&a.length?"".concat(t.quantity," "):null;return a.length?(0,r.jsx)(i.Fragment,{children:(0,r.jsx)(m.J,{availability:t,...d.A[e],values:{quantity:A,date:l,plantLoc:o},children:e=>(0,r.jsxs)("div",{children:[T&&(0,r.jsxs)(r.Fragment,{children:[T,": "]}),p?(0,r.jsx)(I.A,{label:(0,r.jsx)(n.A,{className:h.completedChipLabel,children:C?(0,r.jsxs)("span",{className:h.availableLabelChip,children:[e,g]}):e}),className:h.completedChip}):(0,r.jsx)(r.Fragment,{children:e})]})})},s):null},[T,a,C,g,p]),D=(0,i.useCallback)((e,t,i)=>a.length?(0,r.jsx)(m.J,{availability:t,...d.A[e],values:{link:(0,r.jsx)(c.N,{...u.mK.index({path:"/support/faq",language:f.language,country:f.country}),passHref:!0,children:(0,r.jsx)(A.A,{target:"_blank",className:h.link,children:(0,r.jsx)(l.A,{id:"LOCAL_CUSTOMER_SERVICE",defaultMessage:"local customer service"})})})},children:e=>(0,r.jsx)("div",{children:e})},i):null,[]),y=(e,a)=>R((()=>{if(C)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,a);return(0,r.jsxs)("div",{className:M(h.root,o),children:[a.map((e,a)=>{switch(e.key){case"ESTIMATED_TO_SHIP_ON":case"AVAILABLE_TO_SHIP_ON":case"SHIPS_ON_FROM":case"ESTIMATED_DELIVERY_ON":return y(e,a);case"SHIPPING_DATE_NOT_AVAILABLE":return R("SHIPPING_DATE_NOT_AVAILABLE",e,a);case"CONTACT_LOCAL_CUSTOMER_SERVICE_FOR_DELIVERY_ESTIMATE":return D("CONTACT_LOCAL_CUSTOMER_SERVICE_FOR_DELIVERY_ESTIMATE",e,a);case"EMPROVE_SUBSCRIBED_AVAILABILITY":return O.formatMessage({id:"EMPROVE_SUBSCRIBED_AVAILABILITY",defaultMessage:"Available for download once your purchase is completed"});case"EMPROVE_NONSUBSCRIBED_AVAILABILITY":return O.formatMessage({id:"EMPROVE_NONSUBSCRIBED_AVAILABILITY",defaultMessage:"Available for download once your purchase is completed and approved"});case"LIMITED_AVAILABILITY":return D("PRODUCT_AVAILABILITY_LIMITED_AVAILABILITY",e,a);case"CONTACT_FOR_AVAILABILITY":return O.formatMessage({id:"CONTACT_FOR_AVAILABILITY",defaultMessage:"Please contact Customer Service for Availability"});case"CHECK_CART_FOR_AVAILABILITY":return O.formatMessage({id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability"});case"FULFILMENT_DELIVERY_DELAYED":return O.formatMessage({id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed"});case"UNTIL_SUPPLIES_RUN_OUT":return O.formatMessage({id:"UNTIL_SUPPLIES_RUN_OUT",defaultMessage:"This item is available until supplies run out."});case"OUT_OF_STOCK_KEY":return O.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 R("AVAILABILITY_UNKNOWN",e,a)}}),S&&(0,r.jsx)("div",{children:(e=>{switch(e){case"YC":return O.formatMessage({id:"DELIVERY_DELAY_RESTRICTIONS",defaultMessage:"Delivery of this item may be delayed due to regulatory or compliance restrictions."});case"YF":return O.formatMessage({id:"DELIVERY_DELAY_TRANSPORTATION",defaultMessage:"Delivery of this item may be delayed due to its transportation regulations."});case"YR":return O.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 O.formatMessage({id:"DELIVERY_DELAY_BY_TRUCK",defaultMessage:"Delivered via Merck Truck; Delivery may be delayed."});case"YR05":return O.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 O.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 O.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}})(t)})]})}},37290:(e,a,t)=>{t.d(a,{A:()=>r});let r=t(94303).A},40352:(e,a,t)=>{t.d(a,{Ay:()=>m,R$:()=>u,Rp:()=>n,bJ:()=>c});var r=t(14232),i=t(71541),s=t(37929),l=t(15815),o=t(97471),n=function(e){return e.XS="xs",e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e}({});let A=["xl","lg","md","sm","xs"],d=()=>{let e=(0,s.A)();return{xs:(0,i.A)(e.breakpoints.up("xs")),sm:(0,i.A)(e.breakpoints.up("sm")),md:(0,i.A)(e.breakpoints.up("md")),lg:(0,i.A)(e.breakpoints.up("lg")),xl:(0,i.A)(e.breakpoints.up("xl"))}},_=(e,a)=>(0,l.A)(A,t=>!(0,o.A)(e[t])&&a[t])||"xs",u=()=>{let e=d();return a=>{let t=_(a,e);return a[t]||0}},c=(e,a,t)=>{let[i,s]=(0,r.useState)(t),l=_(e,d());return(0,r.useEffect)(()=>{s(e[l])},[l]),a[i||t]},m=()=>{let e=d();return a=>{let t=_(a,e);return a[t]||0}}},43923:(e,a,t)=>{t.d(a,{A:()=>n});var r=t(37876);t(14232);var i=t(49995),s=t(61261),l=t(7645);let o=(0,s.A)(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:a,style:t,...s}=e,n=o();return(0,r.jsx)(l.A,{className:(0,i.A)(n.loading,a),style:t,...s})}},45923:(e,a,t)=>{t.d(a,{A:()=>d});var r=t(37876),i=t(61261),s=t(45271),l=t(49995),o=t(24315);let n=(0,i.A)(()=>({chipWrapper:{display:"flex",justifyContent:"flex-end"}})),A=(0,s.A)(e=>({root:{backgroundColor:e.palette.background.grey,paddingRight:e.spacing(1),paddingLeft:e.spacing(2)},label:{fontSize:e.typography.pxToRem(14),paddingLeft:e.spacing(2),[e.breakpoints.down("sm")]:{fontSize:e.typography.pxToRem(12)}}}))(o.A),d=e=>{let{label:a,icon:t,className:i}=e,s=n();return(0,r.jsx)("div",{className:(0,l.A)(s.chipWrapper,i),children:(0,r.jsx)(A,{label:a,avatar:(0,r.jsx)(r.Fragment,{children:t})})})}},47671:(e,a,t)=>{t.d(a,{A:()=>r.A});var r=t(45923)},68837:(e,a,t)=>{t.d(a,{A:()=>m});var r=t(37876);t(14232);var i=t(8733),s=t(99220),l=t(36503),o=t(12197),n=t(54753),A=t(61206),d=t(86024),_=t(40352);let u=(0,s.n9)()(e=>({body:{padding:e.spacing(6,8,8,8)},description:{marginBottom:e.spacing(4),paddingBottom:e.spacing(4),borderBottom:"1px solid ".concat(e.palette.grey[400])},column:{marginBottom:e.spacing(4),[e.breakpoints.up("md")]:{marginBottom:0}}})),c=e=>{let{labelValue:a,columnValue:t,isDescription:s=!1}=e,{classes:d,cx:c}=u(),m=(0,_.R$)();return(0,r.jsxs)(l.A,{container:!0,spacing:m({xs:0,md:3}),className:c({[d.column]:!s}),children:[(0,r.jsx)(l.A,{item:!0,xs:12,md:5,children:(0,r.jsx)(o.A,{component:"h4",variant:"body2",children:(0,r.jsx)("b",{children:(0,r.jsx)(i.A,{...n.A[a]})})})}),(0,r.jsx)(l.A,{item:!0,xs:12,md:7,children:(0,r.jsx)(o.A,{component:"p",variant:"body2",children:(0,r.jsx)(A.z,{value:t})})})]})},m=e=>{let{open:a,additionalInfo:t,productName:s,productNumber:l,description:A,handleClose:_,packageType:m,packageSize:I}=e,{classes:E,cx:T}=u(),p=(null==t?void 0:t.carrierRestriction)||(null==t?void 0:t.tariff)||(null==t?void 0:t.unNumber)||(null==t?void 0:t.casNumber)||(null==t?void 0:t.species)||(null==t?void 0:t.jfcCode)||(null==t?void 0:t.pdcCode);return(0,r.jsx)(d.A,{renderTitle:()=>(0,r.jsx)(o.A,{variant:"h2",component:"h2",children:(0,r.jsx)(i.A,{...n.A.PRODUCT_INFO_TITLE})}),open:a,onClose:_,children:(0,r.jsxs)("div",{className:E.body,children:[(0,r.jsxs)("div",{className:T({[E.description]:!!p}),children:[l&&(0,r.jsx)(c,{labelValue:"MATERIAL_NUMBER_SKU",columnValue:l}),A&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_DESCRIPTION",columnValue:s+", "+A,isDescription:!0})]}),(null==t?void 0:t.carrierRestriction)&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_CARRIER_RESTRICTION",columnValue:t.carrierRestriction}),(null==t?void 0:t.tariff)&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_FTCC",columnValue:t.tariff}),(null==t?void 0:t.unNumber)&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_UNTN",columnValue:t.unNumber}),(null==t?void 0:t.casNumber)&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_CAS",columnValue:t.casNumber}),(null==t?void 0:t.species)&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_SPECIES",columnValue:t.species}),(null==t?void 0:t.jfcCode)&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_JFC",columnValue:t.jfcCode}),(null==t?void 0:t.pdcCode)&&(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_PDSC",columnValue:t.pdcCode}),(null==m?void 0:m.length)&&(null==I?void 0:I.length)?(0,r.jsx)(c,{labelValue:"ADDITIONAL_INFO_PACKAGING_INFO",columnValue:"".concat(I," in ").concat(m)}):null]})})}},77274:(e,a,t)=>{t.d(a,{B9:()=>A,C4:()=>d,I4:()=>_,dz:()=>u,jr:()=>l,k3:()=>o,yk:()=>n});var r=t(44131),i=t(77742),s=t(54753);let l=e=>(a,t)=>{try{e.validateSync(a,t);return}catch(e){return e.message}},o=function(){for(var e=arguments.length,a=Array(e),t=0;ta.reduce((a,r)=>a||r(e,t),void 0)},n=e=>!!e&&RegExp("\\p{Extended_Pictographic}","u").test(e),A=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),d=e=>{if(!e)return!0;let a=RegExp("^[0-9-()+\\- ]*$");return!(e.trim().length<4)&&a.test(e)},_=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!a&&!e||RegExp("^1[3456789]\\d{9}$").test(e||"")},u=()=>{let e=(0,i.A)(),a=r.Yj().trim().email(e.formatMessage(s.A.EMAIL_MUST_BE_VALID)).max(241,e.formatMessage(s.A.MAX_241_CHARACTERS)),t=r.Yj().trim().test("validateEmail","Invalid Email",e=>A(e)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})).max(241,e.formatMessage(s.A.MAX_241_CHARACTERS)),o=r.Yj().trim().required(e.formatMessage(s.A.USERNAME_REQUIRED)),u=r.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(s.A.EMAIL_MUST_BE_VALID)).max(241,e.formatMessage(s.A.MAX_241_CHARACTERS)),c=r.Yj().trim().required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),m=r.Yj().trim().max(20,e.formatMessage(s.A.MAX_20_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(s.A.NUMERIC_PHONE)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),I=r.Yj().trim().max(20,e.formatMessage(s.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(s.A.PHONE_FAX_NO_HELP_MSG),e=>d(e)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),E=r.Yj().max(20,e.formatMessage(s.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(s.A.PHONE_FAX_NO_HELP_MSG),e=>d(e)),T=r.Yj().max(20,e.formatMessage(s.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(s.A.PHONE_FAX_NO_HELP_MSG),e=>d(e)),p=r.Yj().max(10,e.formatMessage(s.A.MAX_10_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(s.A.NUMERIC_PHONE)).test("atLeastTwoNumbers",e.formatMessage(s.A.MIN_2_NUMBERS),e=>(null==e?void 0:e.length)!==1),g=r.Yj().max(10,e.formatMessage(s.A.MAX_10_CHARACTERS)).matches(/^[0-9()-\s]*$/,e.formatMessage(s.A.NUMERIC_PHONE_WITH_SPACE)).test("atLeastTwoNumbers",e.formatMessage(s.A.MIN_2_NUMBERS),e=>(null==e?void 0:e.length)!==1),N=r.Yj().test("min-4-digits","Phone number must have at least 4 digits",e=>{let a=(e||"").replace(/\D/g,"");return 0===a.length||a.length>=4}).required("Required"),f=r.Yj().max(20,e.formatMessage(s.A.MAX_20_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(s.A.NUMERIC_FAX)),h=r.Yj().max(20,e.formatMessage(s.A.MAX_20_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(s.A.PHONE_FAX_NO_HELP_MSG),e=>d(e)),M=r.Yj().max(16,e.formatMessage(s.A.MAX_16_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(s.A.NUMERIC_MOBILE)),O=r.Yj().test("validChinaMobileNumber",e.formatMessage(s.A.MOBILE_FORMAT_INVALID),e=>_(e)),L=r.Yj().max(16,e.formatMessage(s.A.MAX_16_CHARACTERS)).test("validatePhoneWithSpaces",e.formatMessage(s.A.PHONE_FAX_NO_HELP_MSG),e=>d(e)),C=r.Yj().matches(/^[0-9]*$/,e.formatMessage(s.A.NUMBERS_ONLY)),S=r.Yj().matches(/^[0-9a-zA-Z]*$/,e.formatMessage(s.A.ALPHANUMERIC_ONLY)),R=r.Yj().matches(/^[0-9]+(\.[0-9]{1,2})?$/,e.formatMessage(s.A.PLEASE_ENTER_VALID_AMOUNT)).test("equalToOrGreaterThanOne",e.formatMessage(s.A.PLEASE_ENTER_VALID_AMOUNT),e=>Number(e)>=1),D=a=>r.Yj().min(a,e.formatMessage(s.A.MIN_N_CHARACTERS,{min:a})),y=a=>r.Yj().max(a,e.formatMessage(s.A.MAX_N_CHARACTERS,{max:a})),x=r.p6().max(new Date(Date.UTC(9999,1)),e.formatMessage(s.A.EXP_YEAR_MUST_BE_4_DIGITS)).min(new Date,e.formatMessage(s.A.EXP_DATE_CANNOT_BE_IN_PAST)).required(e.formatMessage({id:"REQUIRED",defaultMessage:"Required"})),v=r.Yj().test("emojiTest",e.formatMessage({id:"EMOJI_NOT_SUPPORTED",defaultMessage:" Emojis are not supported"}),e=>!n(e)),b=r.Yj().test("half-width",e.formatMessage(s.A.HALF_WIDTH_CHARACTERS_ONLY),e=>!e||/^[\u0020-\u007E]*$/.test(e));return{email:l(a),ccEmail:l(u),requiredEmail:l(t),requiredUserName:l(o),requiredPhone:l(m),requiredPhoneWithSpaces:l(I),required:l(c),phone:l(E),phoneWithSpaces:l(T),extension:l(p),extensionWithSpaces:l(g),phoneSchema:l(N),fax:l(f),faxWithSpaces:l(h),mobile:l(M),mobileWithSpaces:l(L),mobileChinaUser:l(O),numeric:l(C),alphanumeric:l(S),floatToTwoDecimalPlaces:l(R),minLength:e=>l(D(e)),maxLength:e=>l(y(e)),futureDateRequired:l(x),hasNoEmojis:l(v),halfWidthChars:l(b),rawYupSchema:{email:a,ccEmail:u,requiredEmail:t,requiredUserName:o,requiredPhone:m,requiredPhoneWithSpaces:I,required:c,phone:E,phoneWithSpaces:T,extension:p,extensionWithSpaces:g,phoneSchema:N,fax:f,faxWithSpaces:h,mobile:M,mobileWithSpaces:L,mobileChinaUser:O,numeric:C,alphanumeric:S,floatToTwoDecimalPlaces:R,minLength:D,maxLength:y,futureDateRequired:x,hasNoEmojis:v,halfWidthChars:b}}}},88952:(e,a,t)=>{t.d(a,{Z:()=>I,A:()=>T});var r=t(37876);t(14232);var i=t(61261),s=t(12197),l=t(40597),o=t(47671),n=t(49995),A=t(35967),d=t(8733),_=t(90013),u=t(11148);let c=(0,i.A)(e=>({promoTitle:{fontWeight:e.typography.fontWeightBold},promoDescription:{marginBottom:e.spacing(3)},shopProductsLink:{fontWeight:e.typography.fontWeightBold}})),m=e=>{var a;let{promoId:t,discount:i,promoTerms:l,isSMSM:o,isBMSM:n,qualifyingAmount:m,discountElement:I,spendAndSaveMessage:E}=e,T=c(),p=null!==(a=null==l?void 0:l.currency)&&void 0!==a?a:void 0;return(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)(s.A,{className:T.promoTitle,children:o?E:n?(0,r.jsx)(d.A,{id:"BUY_AMOUNT_SAVE_DISCOUNT_TITLE",defaultMessage:"Buy {amount}, Save {discount}",values:{amount:m,discount:I}}):null}),m&&i&&(0,r.jsxs)(s.A,{className:T.promoDescription,children:[o?(0,r.jsx)(d.A,{id:"ELIGIBLE_PRODUCTS",defaultMessage:"Spend {qualifyingAmount} on eligible products to save {discount}.",values:{discount:I,qualifyingAmount:(0,r.jsx)(A.Gr,{currency:p,maximumFractionDigits:0,minimumFractionDigits:0,style:"currency",value:m})}}):n?(0,r.jsx)(d.A,{id:"BUY_AMOUNT_SAVE_DISCOUNT_DESCRIPTION",defaultMessage:"Buy {amount} or more eligible items to save {discount} off list price.",values:{amount:m,discount:I}}):null," ",(0,r.jsx)(d.A,{id:"SPEND_AND_SAVE_APPLY_DISCOUNT",defaultMessage:"Click “Apply Discount” in cart to redeem."})," ",(0,r.jsx)(d.A,{id:"WEB_ONLY_DISCOUNT",defaultMessage:"Web-Only Discount"})]}),t&&(0,r.jsx)(_.N,{href:o?u.qK.smsm(t):u.qK.bmsm(t),className:T.shopProductsLink,rel:"nofollow",children:(0,r.jsx)(d.A,{id:"SHOP_PRODUCTS",defaultMessage:"Shop Products"})})]})};var I=function(e){return e.quantity="QUANTITY",e.currency="CURRENCY",e}({});let E=(0,i.A)(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)"}}})),T=e=>{var a;let{promoId:t,discount:i,promoTerms:_,className:u,showTooltip:c=!1}=e,I=E(),T=null!==(a=null==_?void 0:_.qualifyingAmount)&&void 0!==a?a:0,p=null==_?void 0:_.qualifierType,g="CURRENCY"===p,N="QUANTITY"===p,f=(0,r.jsx)(A.Gr,{minimumFractionDigits:0,style:"percent",value:(i||0)/100}),h=(0,r.jsx)(d.A,{id:"SPEND_AND_SAVE_DISCOUNT",defaultMessage:"Spend & Save {discount}",values:{discount:f}}),M=(0,r.jsx)(o.A,{label:(0,r.jsx)(s.A,{className:I.completedChipLabel,children:g?h:N?(0,r.jsx)(d.A,{id:"BUY_AMOUNT_SAVE_DISCOUNT",defaultMessage:"Buy {amount} Save {discount}",values:{amount:T,discount:f}}):null}),className:(0,n.A)(I.completedChip,u,{[I.clickableChip]:c})});return(0,r.jsx)("div",{"data-testid":"promo-badge",children:c?(0,r.jsx)(l.Ay,{arrow:!0,classes:{tooltip:I.tooltip,arrow:I.arrow},placement:"top",interactive:!0,title:(0,r.jsx)(m,{promoId:t,discount:i,promoTerms:_,isSMSM:g,isBMSM:N,qualifyingAmount:T,discountElement:f,spendAndSaveMessage:h}),children:(0,r.jsx)("div",{className:I.tooltipWrapper,children:M})}):M})}},94303:(e,a,t)=>{t.d(a,{A:()=>A});var r=t(37876);t(14232);var i=t(49995),s=t(78206),l=t(15743),o=t(70524),n=t(68002);let A=e=>{let{rootClass:a,rootStyle:t,size:A="medium",field:d,form:_,label:u,required:c,help:m,style:I,helpStyle:E,displayError:T=!0,toolTipText:p,hasErrorStyle:g=!0,additionalLabel:N,additionalLabelStyle:f,fieldId:h,...M}=e,O=(0,s.O6)(_.errors,d.name),L=(0,s.O6)(_.touched,d.name),C=O&&L&&g,S=C?O:m||null;return(0,r.jsxs)("div",{className:(0,i.A)({[String(a)]:a}),style:t,children:[(0,r.jsxs)("div",{style:{...I,...N?f:{}},children:[u&&(0,r.jsx)(o.A,{htmlFor:d.name,required:c,size:A,error:!!C||(null==M?void 0:M.error),style:I,toolTipText:p,children:u}),N&&(0,r.jsx)(o.A,{htmlFor:d.name,size:A,error:!!C||(null==M?void 0:M.error),style:I,toolTipText:p,children:N})]}),(0,r.jsx)(l.A,{id:h||d.name,...d,size:A,error:!!C,"aria-describedby":(C||m)&&"".concat(d.name,"-help-text"),...M}),(C||m)&&T&&(0,r.jsx)(n.A,{id:"".concat(d.name,"-help-text"),error:!!C,style:E,children:S})]})}}}]); //# sourceMappingURL=6227-9fed65bc874270bb.js.map