"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7088],{4089:(e,a,i)=>{i.d(a,{A:()=>c});var t=i(37876);i(14232);var l=i(77742),n=i(63724),r=i(21834),s=i(36820),o=i(6042);let d=(0,i(99220).makeStyles)()(e=>({availabilityOverwrite:{whiteSpace:"pre-line"},availabilityOverwriteChip:{whiteSpace:"normal"},completedChipLabel:{fontSize:e.typography.pxToRem(14),wordBreak:"break-word",whiteSpace:"normal",lineHeight:1.5,color:e.palette.text.primary,fontFamily:e.typography.fontFamily},completedChip:{justifyContent:"flex-start",width:"100%","& .MuiChip-root":{backgroundColor:"#E8F3FA",padding:e.spacing(2),borderRadius:"5px",height:"100%"},"& .MuiChip-label":{padding:e.spacing(0,2)}}})),c=e=>{let{availabilityOverwrite:a,showAvailabilityLabelChip:i=!1}=e,{classes:c,cx:p}=d(),{formatMessage:u}=(0,l.A)(),{messageKey:m,messageValue:y,messageVariable1:g,messageVariable2:v,messageVariable3:h}=null!=a?a:{},A=null==y?void 0:y.replace("%0","{messageVariable1}"),b={messageValue:y,messageVariable1:g,messageVariable2:v?u(r.A[v]):v,messageVariable3:h},x=e=>i?(0,t.jsx)(o.A,{label:(0,t.jsx)("div",{className:c.completedChipLabel,children:e}),className:c.completedChip}):e;return(0,t.jsx)(n.A,{className:p(i?c.availabilityOverwriteChip:c.availabilityOverwrite),children:m&&(r.A[m]?(0,t.jsx)(s.J,{id:m,...r.A[m],values:b,children:e=>x(e)}):(0,t.jsx)(s.J,{id:"DEFAULT_AVAILABILITY_MESSAGE",defaultMessage:A,values:b,children:e=>x(e)}))})}},8948:(e,a,i)=>{i.d(a,{A:()=>s});var t=i(37876);i(14232);let l=/ _w\d{1,}/g,n=e=>e.reduce((a,i,t)=>{var n,r;if(!l.test(i))return"";let s=t{let t=Array.from(new Set(e));if(t.length<2)return{};let l=n(t);return 0===l.length||l===a?{}:{srcSet:l,sizes:i}},s=e=>{let{sizes:a,src:i,urls:l,alt:n="",...s}=e,o=r(l,i,a);return(0,t.jsx)("img",{alt:n||"",src:i,...o,...s})}},16599:(e,a,i)=>{i.d(a,{XN:()=>c,jJ:()=>d});var t=i(28888);i(37876);var l=i(82897),n=i(54932);i(14232);var r=i(78248);function s(){let e=(0,t._)(["\n query MaterialPricingAndAvailability($materialNumber: String!, $quantity: Int!, $catalogType: CatalogType, $orgId: String, $displaySDS: Boolean = false, $countryCode: String, $checkBuyNow: Boolean) {\n getPricingForMaterial(\n input: {materialNumber: $materialNumber, quantity: $quantity, catalogType: $catalogType, orgId: $orgId, countryCode: $countryCode, checkBuyNow: $checkBuyNow}\n ) {\n ...MaterialPricingDetail\n }\n}\n ",""]);return s=function(){return e},e}let o={},d=(0,l.J1)(s(),n.vg);function c(e){let a={...o,...e};return r._(d,a)}},18904:(e,a,i)=>{i.d(a,{A:()=>A,R:()=>h});var t=i(37876);i(14232);var l=i(77742),n=i(35967),r=i(99220),s=i(65103),o=i(4089),d=i(21834),c=i(83198),p=i(6442),u=i(36820),m=i(26298),y=i(45370),g=i(70903);let v=(0,r.makeStyles)()(e=>({root:{margin:0,paddingInlineStart:0,transition:"color 250ms"},availabilityItem:{display:"flex",alignItems:"center",paddingTop:e.spacing(3),paddingBottom:e.spacing(3),fontSize:e.typography.pxToRem(16),borderTop:"none"},noWrap:{whiteSpace:"nowrap"},availableIcon:{fontSize:19,marginRight:e.spacing(1.5),display:"flex"},disabled:{color:e.palette.grey[400],"& svg":{fill:e.palette.grey[400]}}})),h=e=>{let{children:a,className:i}=e,{classes:l,cx:n}=v();return(0,t.jsx)("ol",{className:n(l.root,i),children:(0,t.jsxs)("li",{className:l.availabilityItem,children:[(0,t.jsx)("div",{className:l.availableIcon,children:(0,t.jsx)(c.A,{color:"error",fontSize:"inherit"})}),(0,t.jsx)("p",{children:a})]})})},A=e=>{let{availabilities:a,updateAvailable:i,className:r,hideQuantity:c,hidePlantLoc:h,leadTime:A}=e,{classes:b,cx:x}=v(),T=(0,l.A)();return(0,t.jsx)("ol",{className:x(b.root,r,i&&b.disabled),children:a.map((e,i)=>{let{key:l,availabilityOverwriteMessage:r,messageType:v,date:x,quantity:f,plantLoc:j}=e;if((null==r?void 0:r.messageValue)&&"secondary"===v)return(0,t.jsx)("li",{className:b.availabilityItem,children:(0,t.jsx)(o.A,{availabilityOverwrite:r})},i);switch(l){case s.qL.OutOfStockKey:return(0,t.jsx)("li",{className:b.availabilityItem,children:(0,t.jsx)("p",{children:(0,t.jsx)(u.J,{id:"OUT_OF_STOCK_KEY",defaultMessage:"We apologize but fulfillment and delivery of this product is delayed. We are working to minimize these delays as quickly as possible.",availability:e})})},i);case s.qL.UnknownAvailability:case s.qL.ContactForAvailability:case s.qL.FulfilmentDeliveryDelayed:case s.qL.UntilSuppliesRunOut:return(0,t.jsxs)("li",{className:b.availabilityItem,children:[(0,t.jsx)(p.A,{className:b.availableIcon,htmlColor:m.w.palette.warning.main}),(0,t.jsxs)("p",{children:[(0,t.jsx)(u.J,{id:l,defaultMessage:l===s.qL.UnknownAvailability?"Availability Unknown":l===s.qL.ContactForAvailability?"Please contact Customer Service for Availability":l===s.qL.FulfilmentDeliveryDelayed?"Fulfilment and delivery delayed":"This item is available until supplies run out.",availability:e}),l===s.qL.FulfilmentDeliveryDelayed&&(0,t.jsx)(y.A,{leadTime:A})]})]},i);case s.qL.CheckCartForAvailability:return(0,t.jsx)("li",{className:b.availabilityItem,children:(0,t.jsx)("p",{children:(0,t.jsx)(u.J,{id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability",availability:e})})},i);default:if(!x||!f)return(0,t.jsx)(u.J,{id:"PRICING_AND_AVAILABILITY_UNAVAILABLE",defaultMessage:"Pricing and availability is not currently available.",availability:e});if("secondary"===v){let r=new Date,o=0===(0,g.c)(new Date(x),r);return(0,t.jsxs)("li",{className:b.availabilityItem,children:[(0,t.jsx)("div",{className:b.availableIcon,children:(0,t.jsx)(p.A,{className:b.availableIcon,htmlColor:m.w.palette.success.main})}),(0,t.jsxs)("p",{children:[!c&&(f>0||a.length>0)?"".concat(f," "):null,o?e.key===s.qL.EstimatedToShipOn?(0,t.jsx)(u.J,{id:"ESTIMATED_TO_SHIP_TODAY",availability:e,defaultMessage:"Estimated to ship TODAY"}):(0,t.jsx)(u.J,{id:"AVAILABLE_TODAY",availability:e,defaultMessage:"Available to ship TODAY"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.J,{availability:e,...d.A[l===s.qL.EstimatedDeliveryOn?"AVAILABILITY_ESTIMATED_DELIVERY_ON":l]})," ",(0,t.jsx)(n.XU,{value:new Date(x),year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"})]}),!h&&j&&(0,t.jsxs)(t.Fragment,{children:[" ".concat(T.formatMessage(d.A.PRODUCT_AVAILABILITY_FROM)," "),(0,t.jsx)("span",{children:j})]})]})]},i)}return null}})})}},30720:(e,a,i)=>{i.d(a,{Dm:()=>o,LU:()=>p,XH:()=>d,gd:()=>s});var t=i(89996),l=i(43869),n=i(81905),r=i(19689),s=function(e){return e.Shipping="shipTos",e.Billing="billTos",e.Payer="payers",e.ZZPartner="zzPartners",e.ZNPartner="znPartners",e}({}),o=function(e){return e.Billing="billing",e.Shipping="shipping",e.EndUser="endUser",e.Notification="notification",e}({}),d=function(e){return e.Buy="buy",e.Refill="refill",e.BlanketPo="blanketPo",e}({});let c=(e,a)=>a===t.GT.CustomerSearch||a===t.GT.OrderAcknowledgement||e.data.getCart.partners.soldTo?a===t.GT.SelectAddresses||a===t.GT.CustomerSearch||a===t.GT.OrderAcknowledgement||!e.data.getCart.partners.soldTo||e.data.getCart.partners.billTo&&e.data.getCart.partners.shipTo&&e.data.getCart.partners.payer?null:t.GT.SelectAddresses:t.GT.CustomerSearch,p=()=>{var e,a,i;let s,o=(0,t.rd)(),{currentUserLoading:d,isCustomerServiceRep:p,hasUniqueSoldTos:u}=(0,n.iZ)(),m=null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.action,y=null==o?void 0:null===(a=o.query)||void 0===a?void 0:a.type,g=null==o?void 0:null===(i=o.query)||void 0===i?void 0:i.emailCart;switch(m){case t.GT.CustomerSearch:case t.GT.SelectAccount:case t.GT.SelectAddresses:case t.GT.Checkout:s=m;break;case t.GT.OrderAcknowledgement:s=t.GT.OrderAcknowledgement;break;case t.GT.QuoteConfirmation:s=t.GT.QuoteConfirmation;break;case t.GT.SaveForLater:s=t.GT.SaveForLater;break;default:s=t.GT.Cart}let v=(0,l.t_)({variables:{id:(0,r.KW)(y)},skip:s===t.GT.OrderAcknowledgement}),h=null,A=null;return v.data&&!d&&(p?h=c(v,s):p||v.data.getCart.partners.soldTo||!u||s===t.GT.SelectAccount||s===t.GT.CustomerSearch||s===t.GT.OrderAcknowledgement||s===t.GT.QuoteConfirmation||(h=t.GT.SelectAccount),y===t.TK.ContractCart&&(A=v.data.getCart.contractNumber?"refill":"buy")),g&&(s=t.GT.EmailCart),{view:s,redirect:h,cartType:y,contractCartType:A}}},32712:(e,a,i)=>{i.d(a,{A:()=>t.A});var t=i(8948)},35734:(e,a,i)=>{i.d(a,{A:()=>O});var t=i(37876),l=i(14232),n=i(89996),r=i(99220),s=i(30566),o=i(6995),d=i(77018),c=i(25628),p=i(34252),u=i(77742),m=i(8733),y=i(78206),g=i(16599),v=i(28888),h=i(82897),A=i(54932),b=i(78248);function x(){let e=(0,v._)(["\n query MaterialAvailabilities($materialNumber: String!, $quantity: Int!, $catalogType: CatalogType, $orgId: String, $countryCode: String, $useSimulate: Boolean = false) {\n getAvailabilityForMaterial(\n input: {materialNumber: $materialNumber, quantity: $quantity, catalogType: $catalogType, orgId: $orgId, countryCode: $countryCode, useSimulate: $useSimulate}\n ) {\n ...MaterialAvailabilitiesDetail\n }\n}\n ",""]);return x=function(){return e},e}let T={},f=(0,h.J1)(x(),A.S0);var j=i(65103),I=i(66383),C=i(18904),S=i(43869),k=i(48659),L=i(56951),N=i(57735),M=i(51951),_=i(69915),E=i(64221),w=i(81905);let D=(0,r.makeStyles)()(e=>({constrainer:{paddingLeft:e.spacing(4),paddingRight:e.spacing(4),[e.breakpoints.up("md")]:{paddingLeft:e.spacing(8),paddingRight:e.spacing(8)}},availabilityForm:{marginBottom:e.spacing(8),paddingTop:e.spacing(2)},formLabel:{marginBottom:e.spacing(6),display:"inline-block"},availabilityFormBody:{[e.breakpoints.up("md")]:{display:"flex",alignItems:"flex-start"}},quantityInput:{marginBottom:e.spacing(4),height:e.typography.pxToRem(48),minWidth:e.typography.pxToRem(95),fontSize:e.typography.pxToRem(12),marginRight:0,[e.breakpoints.up("md")]:{height:"auto",marginBottom:0,maxWidth:e.typography.pxToRem(100),marginRight:e.spacing(6)}},error:{color:e.palette.error.main,marginTop:e.spacing(2)},resultsLabel:{marginBottom:e.spacing(1),fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold},resultsContainer:{flex:"1 1 auto",overflow:"scroll",[e.breakpoints.up("md")]:{marginBottom:e.spacing(4)}},footer:{paddingTop:e.spacing(6),paddingBottom:e.spacing(6),backgroundColor:e.palette.grey[50],[e.breakpoints.up("md")]:{backgroundColor:"transparent"}},warningText:{color:e.palette.error.main,fontSize:e.typography.pxToRem(14),marginBottom:e.typography.pxToRem(6)}})),O=e=>{var a,i,r;let{isModalOpen:v,onModalClose:h,material:A,canAddToCart:x,countryCode:O,availableQty:F,source:R}=e,{classes:B,cx:q}=D(),P=(0,s.A)(),G=(0,u.A)(),U=(0,n.rd)(),z=(0,o.A)(P.breakpoints.up("md")),{focus:Y="",catalog:V=""}=U.query||{},{getSitePreference:J}=(0,w.iZ)(),W=J(w.VD.CatalogFilter),{materialNumber:$,availabilities:K}=A,[H,Q]=(0,l.useState)(!1),Z=(0,S.g9)(),X=(null===(a=A.availabilities)||void 0===a?void 0:a[0].key)==="APO_NO_STOCK",[ee,ea]=(0,l.useState)(K||[]),[ei,{loading:et,error:el,data:en}]=(0,g.XN)(),[er,{loading:es,error:eo,data:ed}]=function(e){let a={...T};return b._(f,a)}(),ec=null==en?void 0:null===(i=en.getPricingForMaterial.materialPricing)||void 0===i?void 0:i.availabilities,ep=null==ed?void 0:null===(r=ed.getAvailabilityForMaterial.materialAvailabilities)||void 0===r?void 0:r.availabilities,eu=async e=>{ep&&ea(ep),await er({variables:{materialNumber:$,quantity:e,catalogType:(0,L.vN)(Y||V),orgId:W,countryCode:O,useSimulate:X}})};(0,l.useEffect)(()=>{X&&v&&eu(1)},[v]);let em=async e=>{if((0,N.Sm)({action:"check product availability",section:R||"product availability",component:"modal",elementType:"button",elementText:"check availability",material:A}),X)eu(e.quantity);else{ec&&ea(ec);let a=A.catalogType===j.Mh.Marketplace?j.Mh.Marketplace:null;await ei({variables:{materialNumber:$,quantity:e.quantity,catalogType:(0,L.vN)(a||Y||V),orgId:W,countryCode:O}})}},ey=async e=>{try{let a=[{materialNumber:A.materialNumber,quantity:e,marketplaceOfferId:A.marketplaceOfferId}];Q(!0),(0,M.p8)(a,[A],_.k9.AvailabilityModal),await Z(a,Q,void 0,null!==A.marketplaceOfferId)}catch(e){}};return(0,t.jsx)(y.l1,{initialValues:{quantity:1},onSubmit:em,children:e=>{var a;let{values:i}=e;return(0,t.jsx)(I.A,{open:v,onClose:h,renderTitle:()=>(0,t.jsx)(d.A,{variant:"h2",component:"h2",children:"".concat(G.formatMessage({id:"PRODUCT_AVAILABILITY_HEADING",defaultMessage:"Availability for"})," ").concat($)}),closeButtonId:"mat-avl-modal-close",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:q(B.availabilityForm,B.constrainer),children:[(0,t.jsxs)("label",{htmlFor:"quantity",className:B.formLabel,children:[F?(0,t.jsx)(d.A,{className:B.warningText,children:(0,t.jsx)(m.A,{id:"DEPLETED_PRODUCTS_AVAILABILITY_WARNING",defaultMessage:"This item is discontinued, but limited quantities are available."})}):null,"".concat(G.formatMessage({id:"PRODUCT_AVAILABILITY_LABEL",defaultMessage:"Enter quantity to check availability and estimated ship date."}))]}),(0,t.jsxs)(y.lV,{className:B.availabilityFormBody,children:[(0,t.jsx)(y.D0,{name:"quantity",component:k.A,className:B.quantityInput,min:1,max:null!==(a=null==A?void 0:A.availableQtyInStock)&&void 0!==a?a:9999}),(0,t.jsx)(c.A,{id:"mat-avl-modal-check-availability","data-testid":"mat-avl-modal-check-availability",type:"submit",variant:"contained",color:"primary",size:"large",fullWidth:!z,disabled:et||es,children:(0,t.jsx)(m.A,{id:"CHECK_AVAILABILITY_BUTTON",defaultMessage:"Check Availability"})})]}),el||eo?(0,t.jsx)("div",{className:B.error,children:(0,t.jsx)(m.A,{id:"PRICING_AND_AVAILABILITY_UNAVAILABLE",defaultMessage:"Pricing and availability is not currently available."})}):null]}),(0,t.jsx)("div",{className:q(B.resultsLabel,B.constrainer),children:(0,t.jsx)(m.A,{id:"PRODUCT_AVAILABILITY_SHIP_DATES",defaultMessage:"Ship Date(s)"})}),(0,t.jsx)("div",{className:q(B.resultsContainer,B.constrainer),children:es?(0,t.jsx)(p.A,{color:"secondary",size:20}):(0,t.jsx)(E.M,{source:"availability modal",brand:A.brand,item:$,pricing:A,children:(0,t.jsx)(C.A,{availabilities:ep||ec||ee,updateAvailable:et||!!el||es,leadTime:null==A?void 0:A.leadTime})})}),x&&(0,t.jsx)("div",{className:q(B.footer,B.constrainer),children:(0,t.jsx)(c.A,{variant:"contained",color:"secondary",disabled:H,size:"large",fullWidth:!z,onClick:()=>ey(i.quantity),id:"mat-avl-modal-add-to-cart",children:(0,t.jsx)(m.A,{id:"ADD_TO_CART",defaultMessage:"Add to Cart"})})})]})})}})}},43874:(e,a,i)=>{i.d(a,{A:()=>h});var t=i(37876);i(14232);var l=i(8733),n=i(99220),r=i(50554),s=i(77018),o=i(21834),d=i(92636),c=i(56951),p=i(52552),u=i(36921),m=i(57735);let y=(0,n.makeStyles)()(e=>({shipIconContainer:{display:"flex",marginLeft:e.spacing(2),cursor:"pointer"},shipsTodayIcon:{display:"flex",alignItems:"center",fontSize:e.typography.pxToRem(25.6)}})),g=(0,n.withStyles)(r.A,e=>({tooltip:{backgroundColor:e.palette.common.white,color:e.palette.common.black,width:e.typography.pxToRem(260),fontSize:e.typography.pxToRem(12),boxShadow:"0 6px 13px 0 rgba(0, 0, 0, 0.16)",padding:e.spacing(6,5)}})),v={US:"6:00 PM EST",DE:"5:30 PM CET",IN:"2:30 PM IST",CN:"5:00 PM CST",JP:"3:00 PM JST",KR:"3:00 PM KST",FR:"4:00 PM CET",GB:"3:30 PM GMT"},h=e=>{let{type:a,className:i,gaSection:n,gaComponent:r,material:h}=e,{classes:A}=y(),{userSession:b}=(0,d.j)(),x=a===c.u2.SameDay;return(0,t.jsx)(g,{enterTouchDelay:0,leaveTouchDelay:2e3,onClose:()=>x&&(0,m.Sm)({action:"hover ships today",section:n,detail:"quick order"===n?"manual entry":void 0,component:r||"",elementType:"icon",material:h}),title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.A,{children:x?(0,t.jsx)(l.A,{...o.A.SHIPS_TODAY}):(0,t.jsx)(l.A,{...o.A.FREE_FREIGHT})}),(0,t.jsx)("div",{style:{paddingTop:"10px",fontWeight:"normal"},children:x?(0,t.jsx)(l.A,{...o.A.SHIPS_TODAY_MESSAGE,values:{shippingTime:v[b.country]}}):(0,t.jsx)(l.A,{...o.A.FREE_FREIGHT_MESSAGE})})]}),children:(0,t.jsx)("span",{className:null!=i?i:A.shipIconContainer,children:x?(0,t.jsx)(p.A,{color:"secondary",className:A.shipsTodayIcon}):(0,t.jsx)(u.A,{color:"secondary",fontSize:"large"})})})}},45370:(e,a,i)=>{i.d(a,{A:()=>o});var t=i(37876),l=i(8733),n=i(45756);i(14232);var r=i(51285),s=i(27651);let o=e=>{let{leadTime:a}=e;return(0,r.D)(s.KR.countryCode)&&a?(0,t.jsxs)("span",{children:[", ",(0,t.jsx)(l.A,{id:"ESTIMATED_LEAD_TIME",defaultMessage:"Estimated Lead Time"}),(0,t.jsx)(n.A,{ml:1,mr:1,component:"span",children:a}),(0,t.jsx)(l.A,{id:"DAYS",defaultMessage:"Days"})]}):null}},46198:(e,a,i)=>{i.d(a,{A:()=>j});var t=i(37876),l=i(14232),n=i(99220),r=i(65103),s=i(8733),o=i(35967),d=i(9887),c=i(35734),p=i(45756),u=i(77018),m=i(4089),y=i(56951),g=i(43874),v=i(12782),h=i(36820),A=i(6442),b=i(26298),x=i(45370),T=i(70903);let f=(0,n.makeStyles)()(e=>({root:{display:"flex",alignItems:"flex-start"},availableIcon:{marginRight:e.spacing(1.5),fontSize:e.typography.pxToRem(19),height:e.typography.pxToRem(19)},shipText:{marginRight:e.spacing(1),verticalAlign:"top"},shipFromLink:{marginLeft:e.spacing(1),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main,cursor:"pointer",verticalAlign:"top"},from:{lineHeight:1,margin:e.spacing(0,1),fontSize:e.typography.pxToRem(14)},shipIcon:{display:"inline-block",verticalAlign:"top",marginLeft:e.spacing(1),"& svg":{width:e.typography.pxToRem(30)},cursor:"pointer"},availabilityIcon:{marginRight:e.spacing(2),fontSize:e.typography.pxToRem(16)},warningText:{display:"flex",color:e.palette.error.main,alignItems:"center"},messageText:{fontSize:e.typography.pxToRem(14)},delayed:{display:"flex",alignItems:"center"}})),j=e=>{var a,i,n;let{material:j,canAddToCart:I,countryCode:C,hideDetails:S,hidePlantLoc:k,gaDetailsClick:L,gaSection:N,gaComponent:M}=e,{classes:_}=f(),[E,w]=(0,l.useState)(!1),D=null==j?void 0:j.availableQtyInStock,O=null!==D,F=j.catalogType===r.Mh.Marketplace,R=null!==(n=null==j?void 0:null===(a=j.availabilities)||void 0===a?void 0:a.find(e=>(null==e?void 0:e.messageType)==="primary"))&&void 0!==n?n:null==j?void 0:null===(i=j.availabilities)||void 0===i?void 0:i[0],B=e=>{e.preventDefault(),L&&L(),w(!0)},q=()=>{w(!1)};return(e=>{let a;switch(!0){case!!(null==e?void 0:e.availabilityOverwriteMessage):a=(0,t.jsx)(m.A,{availabilityOverwrite:e.availabilityOverwriteMessage});break;case!!O:a=(0,t.jsxs)("div",{className:_.warningText,children:[(0,t.jsx)(v.A,{className:_.availabilityIcon,color:"warning"}),(0,t.jsx)(h.J,{id:"DEPLETED_PRODUCTS_QTY_FEW_LEFT_IN_STOCK",defaultMessage:"{availableQtyInStock} left in stock",values:{availableQtyInStock:D},availability:e}),(null==e?void 0:e.displayFromLink)&&!S?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:_.shipFromLink,onClick:B,onKeyPress:B,tabIndex:0,role:"button",children:(0,t.jsx)(s.A,{id:"DETAILS",defaultMessage:"Details"})}),E&&(0,t.jsx)(c.A,{isModalOpen:E,onModalClose:()=>q(),material:j,canAddToCart:I,availableQty:D,countryCode:C})]}):null]});break;case(null==e?void 0:e.key)===r.qL.OnlyFewLeftInStock:let{quantity:i}=null!=e?e:{};a=(0,t.jsxs)("span",{className:_.root,children:[(0,t.jsx)(A.A,{className:_.availableIcon,htmlColor:b.w.palette.success.main}),(0,t.jsxs)("div",{children:[(0,t.jsx)(h.J,{id:"FEW_LEFT_IN_STOCK",defaultMessage:"{quantity} left in stock (more on the way)",values:{quantity:i},availability:e}),(null==e?void 0:e.displayFromLink)&&!S?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:_.shipFromLink,onClick:B,onKeyPress:B,tabIndex:0,role:"button",children:(0,t.jsx)(s.A,{id:"DETAILS",defaultMessage:"Details"})}),E&&(0,t.jsx)(c.A,{isModalOpen:E,onModalClose:()=>q(),material:j,canAddToCart:I,availableQty:D,countryCode:C})]}):null,(null==j?void 0:j.shipsToday)&&!S&&(0,t.jsx)(g.A,{type:y.u2.SameDay,className:_.shipIcon,gaSection:N,gaComponent:M,material:j})]})]});break;case(null==e?void 0:e.key)===r.qL.UnknownAvailability:a=(0,t.jsxs)("span",{className:_.root,children:[(0,t.jsx)(A.A,{className:_.availableIcon,htmlColor:b.w.palette.warning.main}),(0,t.jsx)("div",{children:(0,t.jsx)(h.J,{id:"AVAILABILITY_UNKNOWN",defaultMessage:"Availability Unknown",availability:e})})]});break;case(null==e?void 0:e.key)===r.qL.FulfilmentDeliveryDelayed:a=(0,t.jsxs)("span",{className:_.root,children:[(0,t.jsx)(A.A,{className:_.availableIcon,htmlColor:b.w.palette.warning.main}),(0,t.jsxs)("p",{children:[(0,t.jsx)(h.J,{id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed",availability:e}),(0,t.jsx)(x.A,{leadTime:null==j?void 0:j.leadTime})]})]});break;case(null==e?void 0:e.key)===r.qL.UntilSuppliesRunOut:a=(0,t.jsxs)("span",{className:_.root,children:[(0,t.jsx)(A.A,{className:_.availableIcon,htmlColor:b.w.palette.warning.main}),(0,t.jsx)("p",{children:(0,t.jsx)(h.J,{id:"UNTIL_SUPPLIES_RUN_OUT",defaultMessage:"This item is available until supplies run out.",availability:e})})]});break;case(null==e?void 0:e.key)===r.qL.OutOfStockKey:a=S?(0,t.jsxs)(p.A,{className:_.delayed,children:[(0,t.jsx)(v.A,{className:_.availabilityIcon,color:"warning"}),(0,t.jsx)(h.J,{id:"FULFILMENT_DELIVERY_DELAYED",defaultMessage:"Fulfilment and delivery delayed",availability:e})]}):(0,t.jsx)(h.J,{id:"OUT_OF_STOCK_KEY",defaultMessage:"We apologize but fulfillment and delivery of this product is delayed. We are working to minimize these delays as quickly as possible.",availability:e});break;case(null==e?void 0:e.key)===r.qL.ContactForAvailability:a=(0,t.jsxs)("span",{className:_.root,children:[(0,t.jsx)(A.A,{className:_.availableIcon,htmlColor:b.w.palette.warning.main}),(0,t.jsx)("div",{children:(0,t.jsx)(h.J,{id:"CONTACT_FOR_AVAILABILITY",defaultMessage:"Please contact Customer Service for Availability",availability:e})})]});break;case(null==e?void 0:e.key)===r.qL.CheckCartForAvailability:a=(0,t.jsx)("span",{className:_.root,children:(0,t.jsx)("div",{children:(0,t.jsx)(h.J,{id:"CHECK_CART_FOR_AVAILABILITY",defaultMessage:"Check Cart for Availability",availability:e})})});break;default:if(!(null==e?void 0:e.date))return null;let l=new Date,n=0===(0,T.c)(new Date(e.date),l);a=(0,t.jsxs)("span",{className:_.root,"data-optimizely":null==e?void 0:e.key,children:[(0,t.jsx)(A.A,{className:_.availableIcon,htmlColor:b.w.palette.success.main}),(0,t.jsxs)(u.A,{variant:"body2",component:"p",children:[n?e.key===r.qL.EstimatedToShipOn?(0,t.jsx)(h.J,{id:"ESTIMATED_TO_SHIP_TODAY",availability:e,defaultMessage:"Estimated to ship TODAY"}):(0,t.jsx)(h.J,{id:"AVAILABLE_TODAY",availability:e,defaultMessage:"Available to ship TODAY"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:_.shipText,children:(0,t.jsx)(h.J,{...d.A[null==e?void 0:e.key],availability:e})}),(0,t.jsx)(o.XU,{value:new Date(e.date),year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"})]}),(null==e?void 0:e.displayFromLink)&&!S?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:_.shipFromLink,onClick:B,onKeyPress:B,tabIndex:0,role:"button",children:(0,t.jsx)(s.A,{id:"DETAILS",defaultMessage:"Details"})}),E&&(0,t.jsx)(c.A,{isModalOpen:E,onModalClose:()=>q(),material:j,canAddToCart:I,countryCode:C})]}):(null==e?void 0:e.plantLoc)&&!F&&!k?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.A,{component:"span",className:_.from,children:(0,t.jsx)(h.J,{id:"PRODUCT_AVAILABILITY_FROM",defaultMessage:"from",availability:e})}),e.plantLoc]}):null,(null==j?void 0:j.shipsToday)&&!S&&(0,t.jsx)(g.A,{type:y.u2.SameDay,className:_.shipIcon,gaSection:N,gaComponent:M,material:j})]})]})}return a})(R)}},48659:(e,a,i)=>{i.d(a,{A:()=>d});var t=i(37876);i(14232);var l=i(69241),n=i(78206),r=i(68176),s=i(8133),o=i(42919);let d=e=>{let{rootClass:a,rootStyle:i,size:d="medium",field:c,form:p,label:u,required:m,help:y,delay:g,min:v,type:h,onChange:A,labelClassName:b,...x}=e,T=(0,n.O6)(p.errors,c.name),f=(0,n.O6)(p.touched,c.name),j=T&&f;return(0,t.jsxs)("div",{className:(0,l.A)({[String(a)]:a}),style:i,children:[u&&(0,t.jsx)(s.A,{className:b,htmlFor:c.name,size:d,required:m,children:u}),(0,t.jsx)(r.A,{...x,id:"".concat(h,"-").concat(p.values.materialNumber,"-").concat(c.name),value:c.value,onChange:e=>{p.setFieldValue(c.name,e),p.setFieldTouched(c.name),A&&A(e)},delay:g,size:d,error:!!j,"aria-describedby":(j||y)&&"".concat(c.name,"-help-text"),onBlur:()=>{v&&c.value{i.d(a,{A:()=>u});var t=i(37876),l=i(14232),n=i(99220),r=i(22838),s=i(536),o=i(95339),d=i(75720),c=i(86250);let p=(0,n.makeStyles)()(e=>({input:{flex:1,paddingLeft:0,paddingRight:0,textAlign:"center"},button:{color:e.palette.primary.main,padding:e.spacing(3),borderRadius:e.shape.borderRadius,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0)"},"&[disabled]":{color:e.palette.grey[500]},[e.breakpoints.up("sm")]:{padding:e.spacing(2)}},adornmentStart:{marginRight:0},adornmentEnd:{marginLeft:0},icon:{fontSize:20,[e.breakpoints.up("sm")]:{fontSize:16}},disabledWrapper:{pointerEvents:"none","& .MuiInputBase-root":{backgroundColor:e.palette.grey[300],borderRadius:e.shape.borderRadius,border:"none"},"& .MuiInputBase-input":{color:e.palette.grey[500],backgroundColor:"transparent"},"& .MuiIconButton-root":{color:"".concat(e.palette.grey[500])}}})),u=e=>{let a,{value:i,onChange:n,delay:u=!1,showZero:m=!1,disabled:y,max:g=9999,min:v=0,inputProps:h,readOnly:A,associatedComponent:b,...x}=e,{classes:T,cx:f}=p(),[j,I]=(0,l.useState)(i||(m?0:"")),C=(0,l.useRef)(j);C.current=j;let S=(0,l.useRef)(a),k=void 0!==i&&!u,L=m?0:"",N=k?i||L:j,M=k?e=>n&&n(e):e=>{u&&(clearTimeout(S.current),S.current=a=setTimeout(()=>{n&&n(C.current)},1e3)),I(e)};(0,l.useEffect)(()=>clearTimeout(S.current),[]);let _=()=>{let e;return M(0===(e=N?N<=v?v:parseInt(N)-1:L)?L:e)},E=()=>N?N>=g?M(g):M(parseInt(N)+1):M(1);return(0,t.jsx)("div",{className:f(y&&T.disabledWrapper),children:(0,t.jsx)(r.A,{value:N,inputClass:T.input,onChange:e=>{let{target:{value:a}}=e,i=parseInt(a);return!(h&&h.hasOwnProperty("inputMode")&&"numeric"===h.inputMode)&&Number.isNaN(i)||i>g?M(N):i{let{keyCode:a}=e;return 38===a?E():40===a?_():void 0},"aria-label":"Quantity-Root",readOnly:A,startAdornment:(0,t.jsx)(d.A,{position:"start",classes:{positionStart:T.adornmentStart},children:(0,t.jsx)(c.A,{classes:{root:T.button},onClick:_,disabled:y||N===v,"aria-label":"p&a-quantity-decrement","data-testid":b?"".concat(b,"-decrement"):"decrement",id:b?"".concat(b,"-decrement"):"decrement",tabIndex:-1,size:"large",children:(0,t.jsx)(s.A,{className:T.icon})})}),endAdornment:(0,t.jsx)(d.A,{position:"end",classes:{positionEnd:T.adornmentEnd},children:(0,t.jsx)(c.A,{classes:{root:T.button},onClick:E,disabled:y||N===g||0===g,"aria-label":"p&a-quantity-increment","data-testid":b?"".concat(b,"-increment"):"increment",id:b?"".concat(b,"-increment"):"increment",tabIndex:-1,size:"large",children:(0,t.jsx)(o.A,{className:T.icon})})}),disabled:y,inputProps:{autoComplete:"off","aria-label":"p&a-quantity-input",...h},...x})})}},74795:(e,a,i)=>{i.d(a,{A:()=>t.A});var t=i(81978)},81978:(e,a,i)=>{i.d(a,{A:()=>u});var t=i(37876),l=i(99220),n=i(17138),r=i(79521),s=i(50554),o=i(71538),d=i(14232);let c=(0,l.makeStyles)()(e=>({tabs:{"& .MuiTabs-indicator":{backgroundColor:e.palette.text.primary,height:"4px"}},tab:{color:e.palette.primary.main,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium,padding:e.spacing(2.5,4),minWidth:"auto",opacity:1,textTransform:"capitalize","&:hover":{color:e.palette.primary.dark},"&.Mui-selected":{color:e.palette.text.primary},[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold,padding:e.spacing(5.125,4)},"&.MuiButtonBase-root":{maxWidth:"fit-content"}},additionalLink:{display:"flex",marginLeft:"auto",alignItems:"center"}}));function p(e){let{tab:a,value:i,index:l,...n}=e;return(0,t.jsx)("div",{role:"tabpanel",hidden:i!==l,id:"tabpanel-".concat(l),"aria-labelledby":"tab-".concat(l),...n,children:i===l&&(0,t.jsx)(t.Fragment,{children:a.component})})}let u=e=>{let{tabs:a,activeTabIndex:i,hideDivider:l,changeCallback:u,additionalLink:m}=e,{classes:y}=c(),g=0;i&&(i>=0&&i{h(i||g)},[i]);let A=(e,a)=>{a!==v&&e.selectCallback&&e.selectCallback(a)},b=(e,a)=>(0,t.jsx)(n.A,{className:y.tab,label:a.label,"data-testid":a.id,onClick:()=>A(a,e),...function(e){return{id:"tab-".concat(e),"aria-controls":"tabpanel-".concat(e)}}(e)},e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{className:y.tabs,value:v,onChange:(e,a)=>{a!==v&&(h(a),u&&u(a))},children:[a.map((e,a)=>{if(null==e?void 0:e.toolTip){var i,l,n;return(0,t.jsx)(s.A,{title:e.toolTip.title,arrow:null===(i=e.toolTip)||void 0===i?void 0:i.arrow,placement:null===(l=e.toolTip)||void 0===l?void 0:l.placement,classes:null===(n=e.toolTip)||void 0===n?void 0:n.classes,children:b(a,e)},a)}return b(a,e)}),m&&(0,t.jsx)("div",{className:y.additionalLink,children:m})]}),!l&&(0,t.jsx)(o.A,{}),a.map((e,a)=>(0,t.jsx)(p,{tab:e,index:a,value:v},a))]})}}}]); //# sourceMappingURL=./7088-8f51aed63ebd098e.js.map