"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7854],{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)},28160:(e,a,t)=>{t.d(a,{A:()=>m});var r=t(37876);t(14232);var i=t(61261),s=t(12197),l=t(40597),o=t(47671),n=t(49995),A=t(8733),d=t(35967),_=t(90013),c=t(11148);let u=(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)"}},promoTitle:{fontWeight:e.typography.fontWeightBold},promoDescription:{marginBottom:e.spacing(3)},shopProductsLink:{fontWeight:e.typography.fontWeightBold}})),m=e=>{let{promoId:a,discount:t,qualifyingAmount:i,currency:m,className:I,showTooltip:E=!1}=e,p=u(),T=(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(s.A,{className:p.promoTitle,children:(0,r.jsx)(A.A,{id:"SPEND_AND_SAVE_DISCOUNT",defaultMessage:"Spend & Save {discount}",values:{discount:(0,r.jsx)(d.Gr,{minimumFractionDigits:0,style:"percent",value:t/100})}})}),i&&t&&(0,r.jsxs)(s.A,{className:p.promoDescription,children:[(0,r.jsx)(A.A,{id:"ELIGIBLE_PRODUCTS",defaultMessage:"Spend {qualifyingAmount} on eligible products to save {discount}.",values:{discount:(0,r.jsx)(d.Gr,{minimumFractionDigits:0,style:"percent",value:t/100}),qualifyingAmount:(0,r.jsx)(d.Gr,{currency:m,maximumFractionDigits:0,minimumFractionDigits:0,style:"currency",value:i})}})," ",(0,r.jsx)(A.A,{id:"SPEND_AND_SAVE_APPLY_DISCOUNT",defaultMessage:"Click “Apply Discount” in cart to redeem."})]}),a&&(0,r.jsx)(_.N,{href:c.mA.smsm(a),className:p.shopProductsLink,rel:"nofollow",children:(0,r.jsx)(A.A,{id:"SHOP_ELIGIBLE_PRODUCTS",defaultMessage:"Shop Eligible Products"})})]}),g=(0,r.jsx)(o.A,{label:(0,r.jsx)(s.A,{className:p.completedChipLabel,children:(0,r.jsx)(A.A,{id:"SPEND_AND_SAVE_DISCOUNT",defaultMessage:"Spend & Save {discount}",values:{discount:(0,r.jsx)(d.Gr,{minimumFractionDigits:0,style:"percent",value:(t||0)/100})}})}),className:(0,n.A)(p.completedChip,I,{[p.clickableChip]:E})});return(0,r.jsx)("div",{"data-testid":"smsm-badge",children:E?(0,r.jsx)(l.Ay,{arrow:!0,classes:{tooltip:p.tooltip,arrow:p.arrow},placement:"top",interactive:!0,title:T,children:(0,r.jsx)("div",{className:p.tooltipWrapper,children:g})}):g})}},31591:(e,a,t)=>{t.d(a,{A:()=>g});var r=t(37876),i=t(14232),s=t(77742),l=t(8733),o=t(99660),n=t(12197),A=t(34415),d=t(70608),_=t(17685),c=t(11148),u=t(52413),m=t(49995),I=t(69485),E=t(47671);let p=(0,o.A)(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 g=e=>{let{availabilities:a,distrChainStatus:t,className:o,appendLabel:T,showAvailabilityLabelChip:g=!1,selectShippingDate:N,isCheckout:h}=e,{userSession:f}=(0,_.j)(),L=p(),M=(0,s.A)(),O="/[country]/[language]/checkout"===(0,c.rd)().pathname,C="YC"===t||"YF"===t||"YR"===t||"YR05"===t||"EXCEPTION5"===t||"YC05"===t||"YF05"===t,D=(0,i.useCallback)((e,t,s)=>{let l=t.date?M.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)(I.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,": "]}),g?(0,r.jsx)(E.A,{label:(0,r.jsx)(n.A,{className:L.completedChipLabel,children:h?(0,r.jsxs)("span",{className:L.availableLabelChip,children:[e,N]}):e}),className:L.completedChip}):(0,r.jsx)(r.Fragment,{children:e})]})})},s):null},[]),R=(0,i.useCallback)((e,t,i)=>a.length?(0,r.jsx)(I.J,{availability:t,...d.A[e],values:{link:(0,r.jsx)(u.N,{...c.mK.index({path:"/support/faq",language:f.language,country:f.country}),passHref:!0,children:(0,r.jsx)(A.A,{target:"_blank",className:L.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,[]),S=(e,a)=>D((()=>{if(O)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:(0,m.A)(L.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 S(e,a);case"SHIPPING_DATE_NOT_AVAILABLE":return D("SHIPPING_DATE_NOT_AVAILABLE",e,a);case"CONTACT_LOCAL_CUSTOMER_SERVICE_FOR_DELIVERY_ESTIMATE":return R("CONTACT_LOCAL_CUSTOMER_SERVICE_FOR_DELIVERY_ESTIMATE",e,a);case"EMPROVE_SUBSCRIBED_AVAILABILITY":return M.formatMessage({id:"EMPROVE_SUBSCRIBED_AVAILABILITY",defaultMessage:"Available for download once your purchase is completed"});case"EMPROVE_NONSUBSCRIBED_AVAILABILITY":return M.formatMessage({id:"EMPROVE_NONSUBSCRIBED_AVAILABILITY",defaultMessage:"Available for download once your purchase is completed and approved"});case"LIMITED_AVAILABILITY":return R("PRODUCT_AVAILABILITY_LIMITED_AVAILABILITY",e,a);case"CONTACT_FOR_AVAILABILITY":return M.formatMessage({id:"CONTACT_FOR_AVAILABILITY",defaultMessage:"Please contact Customer Service for Availability"});case"CHECK_CART_FOR_AVAILABILITY":return M.formatMessage({id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability"});case"FULFILMENT_DELIVERY_DELAYED":return M.formatMessage({id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed"});case"UNTIL_SUPPLIES_RUN_OUT":return M.formatMessage({id:"UNTIL_SUPPLIES_RUN_OUT",defaultMessage:"This item is available until supplies run out."});case"OUT_OF_STOCK_KEY":return M.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 D("AVAILABILITY_UNKNOWN",e,a)}}),C&&(0,r.jsx)("div",{children:(e=>{switch(e){case"YC":return M.formatMessage({id:"DELIVERY_DELAY_RESTRICTIONS",defaultMessage:"Delivery of this item may be delayed due to regulatory or compliance restrictions."});case"YF":return M.formatMessage({id:"DELIVERY_DELAY_TRANSPORTATION",defaultMessage:"Delivery of this item may be delayed due to its transportation regulations."});case"YR":return M.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 M.formatMessage({id:"DELIVERY_DELAY_BY_TRUCK",defaultMessage:"Delivered via Merck Truck; Delivery may be delayed."});case"YR05":return M.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 M.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 M.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$:()=>c,Rp:()=>n,bJ:()=>u});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",c=()=>{let e=d();return a=>{let t=_(a,e);return a[t]||0}},u=(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:()=>I});var r=t(37876);t(14232);var i=t(49995),s=t(8733),l=t(61261),o=t(36503),n=t(12197),A=t(54753),d=t(61206),_=t(86024),c=t(40352);let u=(0,l.A)(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}}})),m=e=>{let{labelValue:a,columnValue:t,isDescription:l=!1}=e,_=u(),m=(0,c.R$)();return(0,r.jsxs)(o.A,{container:!0,spacing:m({xs:0,md:3}),className:(0,i.A)({[_.column]:!l}),children:[(0,r.jsx)(o.A,{item:!0,xs:12,md:5,children:(0,r.jsx)(n.A,{component:"h4",variant:"body2",children:(0,r.jsx)("b",{children:(0,r.jsx)(s.A,{...A.A[a]})})})}),(0,r.jsx)(o.A,{item:!0,xs:12,md:7,children:(0,r.jsx)(n.A,{component:"p",variant:"body2",children:(0,r.jsx)(d.z,{value:t})})})]})},I=e=>{let{open:a,additionalInfo:t,productName:l,productNumber:o,description:d,handleClose:c,packageType:I,packageSize:E}=e,p=u(),T=(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)(_.A,{renderTitle:()=>(0,r.jsx)(n.A,{variant:"h2",component:"h2",children:(0,r.jsx)(s.A,{...A.A.PRODUCT_INFO_TITLE})}),open:a,onClose:c,children:(0,r.jsxs)("div",{className:p.body,children:[(0,r.jsxs)("div",{className:(0,i.A)({[p.description]:T}),children:[o&&(0,r.jsx)(m,{labelValue:"MATERIAL_NUMBER_SKU",columnValue:o}),d&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_DESCRIPTION",columnValue:l+", "+d,isDescription:!0})]}),(null==t?void 0:t.carrierRestriction)&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_CARRIER_RESTRICTION",columnValue:t.carrierRestriction}),(null==t?void 0:t.tariff)&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_FTCC",columnValue:t.tariff}),(null==t?void 0:t.unNumber)&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_UNTN",columnValue:t.unNumber}),(null==t?void 0:t.casNumber)&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_CAS",columnValue:t.casNumber}),(null==t?void 0:t.species)&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_SPECIES",columnValue:t.species}),(null==t?void 0:t.jfcCode)&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_JFC",columnValue:t.jfcCode}),(null==t?void 0:t.pdcCode)&&(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_PDSC",columnValue:t.pdcCode}),(null==I?void 0:I.length)&&(null==E?void 0:E.length)?(0,r.jsx)(m,{labelValue:"ADDITIONAL_INFO_PACKAGING_INFO",columnValue:"".concat(E," in ").concat(I)}):null]})})}},77274:(e,a,t)=>{t.d(a,{B9:()=>A,C4:()=>d,I4:()=>_,dz:()=>c,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||"")},c=()=>{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)),c=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)),u=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)),p=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(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"),h=r.Yj().max(20,e.formatMessage(s.A.MAX_20_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(s.A.NUMERIC_FAX)),f=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)),L=r.Yj().max(16,e.formatMessage(s.A.MAX_16_CHARACTERS)).matches(/^[0-9()-]*$/,e.formatMessage(s.A.NUMERIC_MOBILE)),M=r.Yj().test("validChinaMobileNumber",e.formatMessage(s.A.MOBILE_FORMAT_INVALID),e=>_(e)),O=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)),D=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),S=a=>r.Yj().min(a,e.formatMessage(s.A.MIN_N_CHARACTERS,{min:a})),x=a=>r.Yj().max(a,e.formatMessage(s.A.MAX_N_CHARACTERS,{max:a})),y=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(c),requiredEmail:l(t),requiredUserName:l(o),requiredPhone:l(m),requiredPhoneWithSpaces:l(I),required:l(u),phone:l(E),phoneWithSpaces:l(p),extension:l(T),extensionWithSpaces:l(g),phoneSchema:l(N),fax:l(h),faxWithSpaces:l(f),mobile:l(L),mobileWithSpaces:l(O),mobileChinaUser:l(M),numeric:l(C),alphanumeric:l(D),floatToTwoDecimalPlaces:l(R),minLength:e=>l(S(e)),maxLength:e=>l(x(e)),futureDateRequired:l(y),hasNoEmojis:l(v),halfWidthChars:l(b),rawYupSchema:{email:a,ccEmail:c,requiredEmail:t,requiredUserName:o,requiredPhone:m,requiredPhoneWithSpaces:I,required:u,phone:E,phoneWithSpaces:p,extension:T,extensionWithSpaces:g,phoneSchema:N,fax:h,faxWithSpaces:f,mobile:L,mobileWithSpaces:O,mobileChinaUser:M,numeric:C,alphanumeric:D,floatToTwoDecimalPlaces:R,minLength:S,maxLength:x,futureDateRequired:y,hasNoEmojis:v,halfWidthChars:b}}}},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:c,required:u,help:m,style:I,helpStyle:E,displayError:p=!0,toolTipText:T,hasErrorStyle:g=!0,additionalLabel:N,additionalLabelStyle:h,fieldId:f,...L}=e,M=(0,s.O6)(_.errors,d.name),O=(0,s.O6)(_.touched,d.name),C=M&&O&&g,D=C?M:m||null;return(0,r.jsxs)("div",{className:(0,i.A)({[String(a)]:a}),style:t,children:[(0,r.jsxs)("div",{style:{...I,...N?h:{}},children:[c&&(0,r.jsx)(o.A,{htmlFor:d.name,required:u,size:A,error:!!C||(null==L?void 0:L.error),style:I,toolTipText:T,children:c}),N&&(0,r.jsx)(o.A,{htmlFor:d.name,size:A,error:!!C||(null==L?void 0:L.error),style:I,toolTipText:T,children:N})]}),(0,r.jsx)(l.A,{id:f||d.name,...d,size:A,error:!!C,"aria-describedby":(C||m)&&"".concat(d.name,"-help-text"),...L}),(C||m)&&p&&(0,r.jsx)(n.A,{id:"".concat(d.name,"-help-text"),error:!!C,style:E,children:D})]})}},99819:(e,a,t)=>{t.d(a,{G:()=>r});let r={"& sup, sub":{verticalAlign:"baseline",position:"relative",top:"-0.4em"},"& sub":{top:"0.2em"}}}}]); //# sourceMappingURL=7854-fad1622945c0ecf6.js.map