1"use strict";(self.webpackChunkroot=self.webpackChunkroot||[]).push([[4222],{76125:(e,t,o)=>{o.d(t,{A:()=>ge});var r=o(17126),a=o(74357),n=o(28887),i=o(4411),d=o(86098),l=o(73746),s=o(2804),c=o(79819),u=o(74011),p=o(15385),g=o(76895),m=o(17512),v=o(31635),y=o(25387),A=o(3444),C=o(46235),b=o(24881),h=o(12686),f=o(51810),x=o(27581),I=o(38036),O=o(27243),w=o(60103),E=o(12149),T=o(35684),M=o(61314),S=o(82846),N=o(88449),D=o(40343),P=o(91135),k=o(53492),R=o(39881),q=o(33838),L=o(59735),j=o(28889),Q=o(73780),z=o(66527),U=o(96540),$=o(73802);const B=$.Ay.div.withConfig({displayName:"LoadingOverlayStyle",componentId:"sc-1ykgwam"})`position:relative;& > div:first-child{height:100%;width:100%;background:#FFFFFF;${Q.A} &[data-loading="true"]{opacity:1;position:absolute;z-index:${(0,j.A)("theme.zIndex.loadingOverlay")};}&[data-loading="false"]{position:fixed;display:none;}}`,F=$.Ay.div.withConfig({displayName:"SpinnerWrapper",componentId:"sc-fxv2m5"})``,H=$.Ay.div.withConfig({displayName:"Loading",componentId:"sc-9xsgre"})`display:flex;flex-direction:row;margin-top:15px;justify-content:center;& > div:nth-child(1){animation-delay:0.2s;}& > div:nth-child(2){animation-delay:0.4s;}& > div:nth-child(3){animation-delay:0.6s;}& > div:nth-child(4){animation-delay:0.8s;}`,G=$.i7`0%{opacity:0;}70%{opacity:1;}100%{opacity:0;}`,Y=$.Ay.div.withConfig({displayName:"Dot",componentId:"sc-gjaxnh"})`width:10px;height:10px;margin:0 10px;border-radius:50%;background-color:#003745;opacity:0;animation:${G} 2s ease-in-out infinite;`,W=$.i7`0%{width:0%}100%{width:100%;}`,_=$.Ay.div.withConfig({displayName:"ProgressBarContainer",componentId:"sc-fwma2p"})`width:100vw;height:5px;position:absolute;top:0;left:0;`,Z=$.Ay.div.withConfig({displayName:"ProgressBar",componentId:"sc-1x6dpkp"})`animation:${W} 2s ease-in-out;animation-iteration-count:1;background:#006FF8;height:5px;`,V=(0,$.SL)((e=>{var t,o,r,{loading:a=!0}=e,n=(0,v.Tt)(e,["loading"]);const{children:i,mergeCss:d,spinnerProps:l,theme:s}=n,c=(0,v.Tt)(n,["children","mergeCss","spinnerProps","theme"]),{applyStyledProp:u}=(0,q.A)(n,{component:"loadingOverlay"}),p=null!=d?d:null===(r=null===(o=null===(t=null==c?void 0:c.theme)||void 0===t?void 0:t.loadingOverlay)||void 0===o?void 0:o.defaultProps)||void 0===r?void 0:r.mergeCss;return U.createElement(B,Object.assign({css:u("css",p)},c),U.createElement("div",{"data-loading":a,"data-test-selector":"loadingOverlaySpinner",role:"alert","aria-live":"assertive"},U.createElement(z.A,null,a?s.translate("loading content"):s.translate("content loaded")),U.createElement(_,null,U.createElement(Z,null)),U.createElement(F,null,U.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4IiBoZWlnaHQ9IjE0OCIgdmlld0JveD0iMCAwIDE0OCAxNDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wIDkuODY2NjdDMCA0LjQxNzQ2IDQuNDE3NDYgMCA5Ljg2NjY3IDBIMTM4LjEzM0MxNDMuNTgzIDAgMTQ4IDQuNDE3NDYgMTQ4IDkuODY2NjdWMTM4LjEzM0MxNDggMTQzLjU4MyAxNDMuNTgzIDE0OCAxMzguMTMzIDE0OEg5Ljg2NjY3QzQuNDE3NDYgMTQ4IDAgMTQzLjU4MyAwIDEzOC4xMzNWOS44NjY2N1oiIGZpbGw9IiMwMDM3NDUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDkuODY2NjdDMCA0LjQxNzQ2IDQuNDE3NDYgMCA5Ljg2NjY3IDBIMTcuMTc2OEMxOS43MjE5IDAgMjIuMTY4NSAwLjk4MzQ1NiAyNC4wMDU1IDIuNzQ0OUwxMDAuNDI5IDc2LjAyMzRMMjMuOTY0MiAxNDUuNDM5QzIyLjE0ODcgMTQ3LjA4NyAxOS43ODQ0IDE0OCAxNy4zMzIzIDE0OEg5Ljg2NjY3QzQuNDE3NDYgMTQ4IDAgMTQzLjU4MyAwIDEzOC4xMzNWOS44NjY2N1oiIGZpbGw9IiNGNzY2MUYiLz4KPC9zdmc+Cg==",alt:"loadingRightStore"}),U.createElement(H,null,U.createElement(Y,null),U.createElement(Y,null),U.createElement(Y,null),U.createElement(Y,null)))),U.createElement(L.A.Provider,{value:{disable:a}},i))}));var J,K=o(66596),X=o(12828),ee=o(71468);!function(e){e.invoice="Invoice",e.credits="RightSTORE Credits"}(J||(J={}));const te={placeOrder:T.Ay,preloadOrderConfirmationData:D.Ay,resetCurrentCartId:h.Ay,setPlaceOrderErrorMessage:N.Ay,addToCart:(0,y.O2)(I.Ay),updateCartLine:(0,y.O2)(O.Ay),loadBillTo:C.Ay,setCheckoutPaymentMethod:S.Ay,setCartId:M.Ay,loadDataIfNeeded:w.Ay,notifyProductRecs:E.Ay},oe={RequestQuoteErrorMessageText:{color:"danger",css:$.AH`margin-top:6px;margin-bottom:15px;`},loader:{size:16},Wrapper:{css:$.AH`button{background:${(0,p.A)("info")};border:1px solid ${(0,p.A)("info")};border-radius:6px;padding:12px 32px;line-height:0;&:focus{outline-color:transparent;}&:not([disabled]):hover{background:${(0,p.A)("common.background")};border:1px solid ${(0,p.A)("info")};color:${(0,p.A)("info")};}&:not([disabled]):hover span{color:${(0,p.A)("info")};}width:100%;}`}},re=(0,a.HG)((0,ee.Ng)(((e,t)=>{var o,r,a;const n=(0,b.vs)(e).isLoading,{isUpdatingCart:i}=e.context,{isUpdatingCartLine:l}=e.pages.cart,s=(0,d.df)(e,e.pages.productDetails.selectedProductId),c=(0,f.aA)(e),{cartId:u,placeOrderErrorMessage:p}=e.pages.checkoutReviewAndSubmit,g=u?(0,b.YU)(e,u):(0,b.vs)(e),m=(!g.value||g.value.lineCount&&!(null===(o=g.value.cartLines)||void 0===o?void 0:o.length)||!g.value.carriers)&&!g.isLoading||!c.value&&!c.isLoading;return{orderConfirmationPageLink:(0,x.U)(e,"OrderConfirmationPage"),canAddToCart:(0,d.Zd)(e,t.productC
1ontext.product,t.productContext.productInfo,t.configurationCompleted,t.variantSelectionCompleted,t.configurationSelection),isAddToCartButtonDisabled:n||i||l,placeOrderErrorMessage:p,hasEnoughInventory:(0,d.Bo)(e,t.productContext),isAutoRenewable:(null===(a=null===(r=s.value)||void 0===r?void 0:r.properties)||void 0===a?void 0:a.isAutoRenewable)||t.productContext.product.properties.isAutoRenewable,cart:g.value,billToState:(0,A._M)(e,(null==g?void 0:g.value)?g.value.billToId:void 0),isLoadDataNeeded:m,cartId:u,productRecsCalled:e.pages.checkoutReviewAndSubmit.productRecsCalled}}),te)((0,k.Zz)((0,g.$k)((function(e){var t,{productContext:{product:{id:o,unitListPrice:a,productTitle:n,productNumber:i,attributeTypes:d},productInfo:{qtyOrdered:c,unitOfMeasure:u,failedToLoadInventory:p,pricing:g}},canAddToCart:m,addToCart:y,hasEnoughInventory:A,isAddToCartButtonDisabled:b,placeOrderErrorMessage:h,setPlaceOrderErrorMessage:f,labelOverride:x,configurationSelection:I,configurationCompleted:O,variantSelectionCompleted:w,subscription:E,notes:T,setOpenModal:M,extendedStyles:S,isAutoRenewable:N,cart:D,preloadOrderConfirmationData:k,resetCurrentCartId:q,history:L,toaster:j,orderConfirmationPageLink:Q,updateCartLine:z,billToState:B,placeOrder:F,loadDataIfNeeded:H,setCheckoutPaymentMethod:G,setCartId:Y,isLoadDataNeeded:W,cartId:_,productRecsCalled:Z,notifyProductRecs:ee}=e,te=(0,v.Tt)(e,["productContext","canAddToCart","addToCart","hasEnoughInventory","isAddToCartButtonDisabled","placeOrderErrorMessage","setPlaceOrderErrorMessage","labelOverride","configurationSelection","configurationCompleted","variantSelectionCompleted","subscription","notes","setOpenModal","extendedStyles","isAutoRenewable","cart","preloadOrderConfirmationData","resetCurrentCartId","history","toaster","orderConfirmationPageLink","updateCartLine","billToState","placeOrder","loadDataIfNeeded","setCheckoutPaymentMethod","setCartId","isLoadDataNeeded","cartId","productRecsCalled","notifyProductRecs"]);const[re,ae]=(0,U.useState)(!1),[ne,ie]=(0,U.useState)(!1),de=B.value?null===(t=B.value)||void 0===t?void 0:t.properties.canPayByInvoice:void 0;return(A||p)&&m?((0,U.useEffect)((()=>{re&&(W?H({cartId:_,cartLinesShouldBeExpanded:!0}):Z||ee({cartId:_}))})),(0,U.useEffect)((()=>{!B.value&&!B.isLoading&&D&&D.billToId&&(0,C.Ay)({billToId:null==D?void 0:D.billToId})}),[B]),U.createElement(V,{loading:ne,css:$.AH`width:100%;height:100%;position:fixed !important;top:0;left:0;display:flex;justify-content:center;align-items:center;`},U.createElement(r.A,Object.assign({},oe.Wrapper),U.createElement(s.Ay,Object.assign({onClick:async function(){ae(!0),f({});const e=I&&Object.values(I).length>0?Object.values(I).filter((e=>!!e)).map((e=>({sectionOptionId:e}))):void 0,t=await y({productId:o,qtyOrdered:c,unitOfMeasure:u,notes:T,sectionOptions:e,subscription:E});await z({cartLine:Object.assign(Object.assign({},t),{properties:{isAutoRenewable:null!=N?N:"false",queryParams:window.location.search.replace("?","")}})});const r={item_id:i,item_name:n,item_brand:K.F.BRAND,item_categories:(0,X.E)(d,"Categories"),item_customerTypes:(0,X.E)(d,"CustomerType"),price:a,quantity:1};(0,X.v4)({eventName:"begin_checkout",value:a.toString(),currency:K.F.CURRENCY,data:[r]});const l=await async function(){var e,t,o,r;const a=null===(t=null===(e=null==D?void 0:D.paymentOptions)||void 0===e?void 0:e.paymentMethods)||void 0===t?void 0:t.find((e=>e.name===J.invoice)),n=null===(r=null===(o=null==D?void 0:D.paymentOptions)||void 0===o?void 0:o.paymentMethods)||void 0===r?void 0:r.find((e=>e.name===J.credits));return!a||"true"!==de||0===(null==g?void 0:g.actualPrice)&&"true"!==N?!n||N&&"false"!==N?Promise.resolve(void 0):Promise.resolve(n.name):Promise.resolve(a.name)}();if(!l)return f({errorMessage:"No valid payment methods found or the product is not configuered correctly"}),ae(!1),void(M&&M(!1));await new Promise((e=>setTimeout(e,1e3))),F({paymentMethod:l,poNumber:"",vatNumber:"",saveCard:!1,cardHolderName:"",cardNumber:"",cardType:"",expirationMonth:1,expirationYear:(new Date).getFullYear(),securityCode:"",useBillingAddress:!0,address1:"",countryId:"",stateId:"",city:"",postalCode:"",payPalToken:void 0,payPalPayerId:void 0,accountHolderName:"",accountNumber:"",routingNumber:"",payerId:"",maskedCardNumber:"",antiFraudSessionId:"",onSuccess:e=>{k({cartId:e,onSuccess:()=>{f({}),(null==D?void 0:D.isAwaitingApproval)&&q({}),L.push(`${Q.url}?cartId=${e}`)}})},onError:()=>{M&&M(!1),f({errorMessage:"Failed to place order"}),ae(!1)},onComplete(e){var t,o,r;(null===(t=e.apiResult)||void 0===t?void 0:t.cart)?null===(r=this.onSuccess)||void 0===r||r.call(this,e.apiResult.cart.id):null===(o=this.onError)||void 0===o||o.call(this)}})},disabled:c<=0||b||re},te),re?U.createElement(P.A,Object.assign({},oe.loader)):null!=x?x:(0,l.Ay)("Request now")),h&&U.createElement(R.A,Object.assign({}
1,oe.RequestQuoteErrorMessageText),h)))):null})))));var ae=o(51949),ne=o(90062),ie=o(22714),de=o(53170);const le={addToCart:(0,y.O2)(I.Ay),updateCartLine:(0,y.O2)(O.Ay),createOrRequestQuote:ie.Ay,updateQuoteParameter:de.Ay,loadQuoteIfNeeded:ne.Ay,setPlaceOrderErrorMessage:N.Ay},se={requestQuoteErrorMessageText:{color:"danger",css:$.AH`margin-top:6px;margin-bottom:15px;`},loader:{size:16},wrapper:{css:$.AH`button{background:${(0,p.A)("info")};border:1px solid ${(0,p.A)("info")};border-radius:6px;padding:12px 32px;line-height:0;&:focus{outline-color:transparent;}&:not([disabled]):hover{background:${(0,p.A)("common.background")};border:1px solid ${(0,p.A)("info")};color:${(0,p.A)("info")};}&:not([disabled]):hover span{color:${(0,p.A)("info")};}}`}},ce=(0,g.$k)((0,a.HG)((0,ee.Ng)(((e,t)=>{var o,r,a;const{productSettings:{showAddToCartConfirmationDialog:i},cartSettings:{addToCartPopupTimeout:l}}=(0,n.SB)(e),s=(0,x.U)(e,"CheckoutReviewAndSubmitPage"),c=(0,b.vs)(e).isLoading,{isUpdatingCart:u}=e.context,p=(0,d.df)(e,e.pages.productDetails.selectedProductId),g=(0,b.vs)(e).value,m=(null==g?void 0:g.id)?(0,b.YU)(e,null==g?void 0:g.id):(0,b.vs)(e),{isUpdatingCartLine:v}=e.pages.cart,{placeOrderErrorMessage:y}=e.pages.checkoutReviewAndSubmit;return{canAddToCart:(0,d.Zd)(e,t.productContext.product,t.productContext.productInfo,t.configurationCompleted,t.variantSelectionCompleted,t.configurationSelection),hasEnoughInventory:(0,d.Bo)(e,t.productContext),isAddToCartButtonDisabled:c||u||v,showAddToCartConfirmationDialog:i,addToCartPopupTimeout:l,redirectToCheckoutReviewAndSubmitPage:s,quoteProductTypeText:t.productContext.product.properties.quoteProductTypeText,isAutoRenewable:(null===(r=null===(o=p.value)||void 0===o?void 0:o.properties)||void 0===r?void 0:r.isAutoRenewable)||t.productContext.product.properties.isAutoRenewable,rfqQuoteConfirmationPageUrl:null===(a=(0,x.U)(e,"RfqConfirmationPage"))||void 0===a?void 0:a.url,cartState:m,cartId:null==g?void 0:g.id,quoteState:(0,ae._)(e,e.pages.rfqConfirmation.quoteId),isUpdatingCartLinea:v,placeOrderErrorMessage:y}}),le)((e=>{var{productContext:{product:{id:t},productInfo:{qtyOrdered:o,unitOfMeasure:a,failedToLoadInventory:n}},hasEnoughInventory:i,isAddToCartButtonDisabled:d,showAddToCartConfirmationDialog:c,addToCartPopupTimeout:u,addToCart:p,updateCartLine:g,canAddToCart:m,labelOverride:y,notes:A,configurationSelection:C,configurationCompleted:b,variantSelectionCompleted:h,subscription:f,redirectToCheckoutReviewAndSubmitPage:x,history:I,quoteProductTypeText:O,isAutoRenewable:w,rfqQuoteConfirmationPageUrl:E,cartId:T,createOrRequestQuote:M,updateQuoteParameter:S,loadQuoteIfNeeded:N,setPlaceOrderErrorMessage:D,quoteState:k,isUpdatingCartLinea:q,setOpenModal:L,placeOrderErrorMessage:j,extendedStyles:Q}=e,z=(0,v.Tt)(e,["productContext","hasEnoughInventory","isAddToCartButtonDisabled","showAddToCartConfirmationDialog","addToCartPopupTimeout","addToCart","updateCartLine","canAddToCart","labelOverride","notes","configurationSelection","configurationCompleted","variantSelectionCompleted","subscription","redirectToCheckoutReviewAndSubmitPage","history","quoteProductTypeText","isAutoRenewable","rfqQuoteConfirmationPageUrl","cartId","createOrRequestQuote","updateQuoteParameter","loadQuoteIfNeeded","setPlaceOrderErrorMessage","quoteState","isUpdatingCartLinea","setOpenModal","placeOrderErrorMessage","extendedStyles"]);const[B,F]=(0,U.useState)(!1),[H,G]=(0,U.useState)(!1),Y=k.value;let W=(null==Y?void 0:Y.quoteLineCollection)&&Y.quoteLineCollection.length>0&&Y.quoteLineCollection[0]?Y.quoteLineCollection[0].properties.fulfillmentUrl:null;return(i||n)&&m?((0,U.useEffect)((()=>{W&&(G(!0),window.location.href=W,W=null)}),[Y]),(0,U.useEffect)((function(){S({quoteId:T||"",quoteType:"quote",jobName:"",note:""})}),[T]),U.createElement(V,{loading:H,css:$.AH`width:100%;height:100%;position:fixed!important;top:0;left:0;display:flex;justify-content:center;align-items:center;`},U.createElement(r.A,Object.assign({},se.wrapper),U.createElement(s.Ay,Object.assign({},Q,{onClick:async()=>{L&&L(!1),F(!0);const e=C&&Object.values(C).length>0?Object.values(C).filter((e=>!!e)).map((e=>({sectionOptionId:e}))):void 0,r=await p({productId:t,qtyOrdered:o,unitOfMeasure:a,notes:A,sectionOptions:e,subscription:f});await g({cartLine:Object.assign(Object.assign({},r),{properties:{isAutoRenewable:null!=w?w:"false",queryParams:window.location.search.replace("?",""),quoteProductTypeText:null!=O?O:""}})}),M({onSuccess:e=>{var t,o,r;D({}),N({quoteId:e.id});const a={item_id:e.quoteLineCollection&&(null===(t=e.quoteLineCollection[0])||void 0===t?void 0:t.erpNumber),item_name:e.quoteLineCollection&&(null===(o=e.quoteLineCollection[0])||void 0===o?void 0:o.shortDescription),item_brand:K.F.BRAND,price:0,quantity:e.quoteLineCollection&&(null===(r=e.quoteLineCollection[0])||void 0===r?void 0:r.qtyOrdered)};(0,X.rF)({eventName:"purchase",transactionId:e.billTo&&e.billTo.id,currency:e.currencySymbol&&e.currencySymbol,value:"
10",data:[a]}),F(!1)},onError:e=>{D({errorMessage:e}),F(!1)}})},disabled:o<=0||d||B},z),B?U.createElement(P.A,Object.assign({},se.loader)):null!=y?y:(0,l.Ay)("Request now")),j&&U.createElement(R.A,Object.assign({},se.requestQuoteErrorMessageText),j)))):null}))));var ue=o(64598);const pe={button:{css:$.AH`background:${(0,p.A)("info")};border:1px solid ${(0,p.A)("info")};border-radius:6px;padding:12px 32px;width:100%;line-height:24px;&:focus{outline-color:transparent;}&:not([disabled]):hover{background:${(0,p.A)("common.background")};color:${(0,p.A)("info")};border:1px solid ${(0,p.A)("info")};}&:not([disabled]):hover span{color:${(0,p.A)("info")};}`},modalButtonWrapper:{css:$.AH`padding-top:20px;display:flex;width:100%;justify-content:flex-end;gap:8px;`},modalButtonWrapperForQuickQuote:{css:$.AH`padding-top:20px;display:flex;width:100%;justify-content:flex-end;gap:8px;`},quickRequestForQuoteButton:{variant:"primary",css:$.AH`background:${(0,p.A)("info")};border:1px solid ${(0,p.A)("info")};border-radius:6px;padding:12px 32px;line-height:0;&:focus{outline-color:transparent;}&:not([disabled]):hover{background:${(0,p.A)("common.background")};border:1px solid ${(0,p.A)("info")};color:${(0,p.A)("info")};}&:not([disabled]):hover span{color:${(0,p.A)("info")};}width:100%;`}},ge=(0,ee.Ng)((e=>{const t=(0,n.Ht)(e),o=t.isAuthenticated&&!t.isGuest,r=(0,d.df)(e,e.pages.productDetails.selectedProductId);return{currentLocation:(0,i.g$)(e),currentUserIsGuest:!e.context.session.isAuthenticated,isReadOnly:o&&e.context.session.userRoles.includes("ReadOnly"),isTopup:o&&e.context.session.userRoles.includes("TopUp"),roles:e.context.session.userRoles,configurationSelection:e.pages.productDetails.configurationSelection,configurationCompleted:e.pages.productDetails.configurationCompleted,variantSelectionCompleted:e.pages.productDetails.variantSelectionCompleted,subscription:e.pages.productDetails.subscription,variantProductState:r}}))((0,g.$k)((0,a.HG)((({productContext:e,currentUserIsGuest:t,history:o,currentLocation:a,isInCart:n,cart:i,isReadOnly:d,isTopup:p,configurationSelection:g,configurationCompleted:v,variantSelectionCompleted:y,subscription:A,variantProductState:C})=>{var b,h,f,x,I,O,w,E,T,M,S,N,D,P;const k=pe,{product:R}=e,q=R.quoteRequired,[L,j]=(0,U.useState)(!1),Q=(null==i?void 0:i.cartLines)&&(null===(b=null==i?void 0:i.cartLines)||void 0===b?void 0:b.length)>0?null===(h=null==i?void 0:i.cartLines)||void 0===h?void 0:h[0].shortDescription:"",z=p,$=R.productNumber.toLowerCase().startsWith("topup"),B=(null===(x=null===(f=null==C?void 0:C.value)||void 0===f?void 0:f.properties)||void 0===x?void 0:x.productTypeButtonText)||R.properties.productTypeButtonText,F=(null===(O=null===(I=null==C?void 0:C.value)||void 0===I?void 0:I.properties)||void 0===O?void 0:O.quoteProductTypeText)||R.properties.quoteProductTypeText,H=(null===(E=null===(w=null==C?void 0:C.value)||void 0===w?void 0:w.properties)||void 0===E?void 0:E.canRequestQuickQuote)||R.properties.canRequestQuickQuote,G=(null===(M=null===(T=null==C?void 0:C.value)||void 0===T?void 0:T.properties)||void 0===M?void 0:M.canRequestQuickFreeProduct)||(null===(S=R.properties)||void 0===S?void 0:S.canRequestQuickFreeProduct),Y=0===R.unitListPrice&&"true"===G,W="true"===(null===(N=R.properties)||void 0===N?void 0:N.productIsPlaceholder),_=(null===(D=R.properties)||void 0===D?void 0:D.placeholderProductButtonUrl)&&(null===(P=R.properties)||void 0===P?void 0:P.placeholderProductButtonUrl),Z=()=>{j(!0)},V=()=>{j(!1)};if(d)return null;if(!z&&$)return null;const[J,K]=(0,U.useState)("");(0,U.useEffect)((()=>{(async()=>{K(await(0,ue.A)({currentLocation:a,selectedVariant:C}))})()}),[a,C]);const X=q&&(F||(0,l.Ay)("Request Now")),ee=W&&(B||(0,l.Ay)("Get Access"));return t?U.createElement(U.Fragment,null,U.createElement(s.Ay,Object.assign({},k.button,{onClick:()=>{window&&window.location.replace(`${J}`)}}),B||X||ee||(0,l.Ay)("Get Report"))):W?U.createElement(s.Ay,Object.assign({},k.button,{onClick:()=>{window&&window.open(_,"_blank")}}),B||(0,l.Ay)("Get Access")):q&&"true"===H?U.createElement(U.Fragment,null,n?U.createElement(s.Ay,Object.assign({},k.button,{onClick:()=>Z()}),F||(0,l.Ay)("Request Now")):U.createElement(ce,{labelOverride:F||(0,l.Ay)("Request Now"),configurationSelection:g,configurationCompleted:v,variantSelectionCompleted:y,subscription:A,setOpenModal:j,extendedStyles:k.button}),L&&U.createElement(u.A,{isOpen:L,headline:(0,l.Ay)("Another product already in the cart"),handleClose:V,sizeVariant:"medium",alert:!0},U.createElement(c.o5,null,(0,l.Ay)("Start with a new request?")),U.createElement("br",null),U.createElement(c.o5,null,(0,l.Ay)(`Your cart containing ${Q} will be cleared.`)),U.createElement(r.A,Object.assign({},k.modalButtonWrapperForQuickQuote),U.createElement(s.Ay,{variant:"secondary",onClick:()=>V()},(0,l.Ay)("Cancel")),U.createElement(ce,{setOpenModal:j,labelOverride:(0,l.Ay)("Continue"),configurationSelection:g,configurationCompleted:v,variantSelectionCompleted:y,subscription:A})))):Y&&!q?U.createElement(U.Fragment,null,n?U.createElement(s.Ay,Object.assign({},k.button,{onClick:()=>Z()}),F||(0,l.Ay)("Request Now")):U.createElement(re,{configurationSelection:g,configurationCompleted:v,variantSelectionCompleted:y,subscription:A,labelOverride:B||(0,l.Ay)("Get Report"),extendedStyles:k.button,setOpenModal:j}),L&&U.createElement(u.A,{isOpen:L,headline:(0,l.Ay)("Another product already in the cart"),handleClose:V,sizeVariant:"medium",alert:!0},U.createElement(c.o5,null,(0,l.Ay)("Start with a new request?")),U.createElement("br",null),U.createElement(c.o5,null,(0,l.Ay)(`Your cart containing ${Q} will be cleared.`)),U.createElement(r.A,Object.assign({},k.modalButtonWrapperForQuickQuote),U.createElement(s.Ay,{variant:"secondary",onClick:()=>V()},(0,l.Ay)("Cancel")),U.createElement(re,{configurationSelection:g,configurationCompleted:v,variantSelectionCompleted:y,subscription:A,labelOverride:B||(0,l.Ay)("Get Report"),extendedStyles:k.button,setOpenModal:j})))):U.createElement(U.Fragment,null,n?U.createElement(s.Ay,Object.assign({},k.button,{onClick:()=>Z()}),B||(q?F||(0,l.Ay)("Request Now"):(0,l.Ay)("Get Report"))):U.createElement(m.A,{configurationSelection:g,configurationCompleted:v,variantSelectionCompleted:y,subscription:A,labelOverride:B||(q?F||(0,l.Ay)("Request Now"):(0,l.Ay)("Get Report")),extendedStyles:k.button}),L&&U.createElement(u.A,{isOpen:L,headline:(0,l.Ay)("Another product already in the cart"),handleClose:V,sizeVariant:"medium",alert:!0},U.createElement(c.o5,null,(0,l.Ay)("Start with a new purchase?")),U.createElement("br",null),U.createElement(c.o5,null,(0,l.Ay)(`Your cart containing ${Q} will be cleared.`)),U.createElement(r.A,Object.assign({},k.modalButtonWrapper),U.createElement(s.Ay,{variant:"secondary",onClick:()=>V()},(0,l.Ay)("Cancel")),U.createElement(m.A,{labelOverride:(0,l.Ay)("Continue"),configurationSelection:g,configurationCompleted:v,variantSelectionCompleted:y,subscription:A}))))}))))},90154:(e,t,o)=>{o.d(t,{A:()=>v});var r=o(17126),a=o(73746),n=o(2804),i=o(39881),d=o(11320),l=o(15385),s=o(77772),c=o(96540),u=o(71468),p=o(73802);const g={wrapper:{css:p.AH`display:flex;flex-direction:column;direction:initial;background:${(0,l.A)("common.background")};box-shadow:0px 0px 20px rgba(0, 55, 69, 0.1);border-radius:16px;padding:39px 33px;min-width:339px;${({theme:e})=>(0,d._d)(e,[p.AH` 2 width: 100%; 3 min-width: auto; 4 `,p.AH` 5 width: 100%; 6 min-width: auto; 7 `,null,null,null])}`},purchasedWrapper:{css:p.AH`margin-bottom:16px;display:flex;align-items:start;flex-direction:column;justify-content:center;padding:0px;`},purchasedMessage:{color:"#B3B3B3",weight:700,size:"2.5rem",lineHeight:"60px"},validUntilMessageWrapper:{css:p.AH`display:flex;flex-direction:row;justify-content:center;align-items:center;padding:4px 12px;gap:4px;background:#F0FFF5;border-radius:20px;`},validUntilMessage:{size:".9375rem",lineHeight:"22px",weight:400,color:"#006147"}},m=(0,r.v)("section"),v=(0,u.Ng)((e=>({language:e.context.session.language})))((({previousPurchase:e,language:t,showOnlyButton:o})=>{const d=()=>{window.open(e.fulfillmentUrl,"_blank","noopener,noreferrer")},l=(0,s.A)({date:e.validUntil,language:t});return o?c.createElement(c.Fragment,null,null!=e.fulfillmentUrl&&c.createElement(n.Ay,{variant:"primary",onClick:d},(0,a.Ay)("View product"))):c.createElement(r.A,Object.assign({},g.wrapper),c.createElement(m,Object.assign({},g.purchasedWrapper),c.createElement(r.A,null,c.createElement(i.A,Object.assign({},g.purchasedMessage,{"data-test-selector":"purchasedText"}),(0,a.Ay)("Purchased"))),c.createElement(r.A,Object.assign({},g.validUntilMessageWrapper),c.createElement(i.A,Object.assign({},g.validUntilMessage,{"data-test-selector":"validUntilMessage"}),(0,a.Ay)("Available till {Date}").replace("{Date}",l)))),null!=e.fulfillmentUrl&&c.createElement(n.Ay,{onClick:d},(0,a.Ay)("View product")))}))},1701:(e,t,o)=>{o.d(t,{f:()=>i});var r=o(74357),a=o(42597),n=o(96540);function i(e){return function(t){return n.createElement(r.z_.Consumer,null,(o=>n.createElement(e,Object.assign({}
7,t,{productContext:o,productProperties:(0,a.A)(o.product)}))))}}},40051:(e,t,o)=>{o.d(t,{Ay:()=>i});var r=o(25387),a=o(40678);const n=[e=>{e.dispatch({type:"Data/Quotes/BeginLoadQuote",quoteId:e.parameter.quoteId})},e=>{e.apiParameter=Object.assign({},e.parameter)},async e=>{try{e.apiResult=await(0,a.fn)(e.apiParameter)}catch(t){if("status"in t&&(400===t.status||404===t.status))return e.dispatch({type:"Data/Quotes/FailedToLoadQuote",quoteId:e.parameter.quoteId,status:404}),!1;throw t}},e=>{e.dispatch({type:"Data/Quotes/CompleteLoadQuote",quote:e.apiResult})}],i=(0,r.u3)(n,"LoadQuote")},12149:(e,t,o)=>{o.d(t,{Ay:()=>u});var r=o(25387),a=o(26682),n=o(40841),i=o(28887);const d=[e=>{var t,o;const{getState:r,parameter:{cart:a}}=e,d=(0,i.Ht)(r()),l=(null===(t=null==d?void 0:d.currency)||void 0===t?void 0:t.currencyCode)||"",s=(null===(o=a.cartLines)||void 0===o?void 0:o.map((e=>{var t;return{refCode:e.parentProductErpNumber||e.erpNumber,qty:e.qtyOrdered,price:null===(t=e.pricing)||void 0===t?void 0:t.actualPrice}})))||[];e.recommendation=Object.assign({type:"checkout",checkout:{items:s,shipping:a.shippingAndHandling,total:a.orderGrandTotal,subtotal:a.orderSubTotal,currency:l}},(0,n.zh)(e.getState()))},({dispatch:e,recommendation:t})=>{e((0,a.Ay)({prepareTrackData:t}))}],l=(0,r.u3)(d,"PrepareCheckout");var s=o(24881);const c=[e=>{e.dispatch({type:"Pages/CheckoutReviewAndSubmit/SetProductRecsCalled"})},({getState:e,dispatch:t,parameter:{cartId:o}})=>{const r=e(),a=o?(0,s.YU)(r,o):(0,s.vs)(r);a.value&&t(l({cart:a.value}))}],u=(0,r.u3)(c,"NotifyProductRecs")},61314:(e,t,o)=>{o.d(t,{Ay:()=>r});const r=(0,o(25387).u3)([e=>{e.dispatch({type:"Pages/CheckoutReviewAndSubmit/SetCartId",cartId:e.parameter.cartId})}],"SetCartId")},90062:(e,t,o)=>{o.d(t,{Ay:()=>d});var r=o(25387),a=o(40051),n=o(51949);const i=[e=>{e.dispatch({type:"Pages/RfqConfirmation/SetQuoteId",quoteId:e.parameter.quoteId})},e=>{(0,n._)(e.getState(),e.parameter.quoteId).value||e.dispatch((0,a.Ay)({quoteId:e.parameter.quoteId}))}],d=(0,r.u3)(i,"LoadQuoteIfNeeded")}}]); 8//# sourceMappingURL=4222_94841475bdb7ecfd0fbc.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.