PageSourceSearch

https://www.ajprodukti.lv/assets/4158.chunk.6ed3a713ff44d768b7ea.js

js ajprodukti.lv collected 2026-10-08 01:22:28 UTC 25,379 bytes, 3 lines download raw bytes

1/*! For license information please see 4158.chunk.6ed3a713ff44d768b7ea.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunknitro5_app=globalThis.webpackChunknitro5_app||[]).push([[4158],{50068(e,t,n){n.d(t,{FZ:()=>d,KY:()=>c,LU:()=>r,Oc:()=>u});var i=n(97760),a=n(39879),o=n(10774),l=n(13149),s=n(24763);const r=(0,o.I4)(i.c$,{marginLeft:a.Y,width:({isCompact:e})=>e?"unset":`calc(100% - ${a.Y}px)`}),d=(0,o.I4)(i.lg,{maxWidth:({isCompact:e})=>e?"unset":`calc(50% - ${a.Y}px)`,minWidth:({isCompact:e})=>e?`calc(100% - ${a.Y}px)`:"unset",":hover":{cursor:"text"}}),c=(0,o.I4)(l.H4,{display:"flex",marginBottom:({isCompact:e})=>e?a.EX:a.Y}),u=(0,o.I4)(s.S,{margin:{x:a.nU,top:a.EX,bottom:({isCompact:e})=>e?a.Y:a.as}})},5611(e,t,n){n.d(t,{A:()=>c}),Object.defineProperty(c,"name",{value:"default",configurable:!0});var i=n(30561),a=n(10774),o=n(63696),l=n(14819),s=n(57248),r=n(51875),d=n(39879);function c({personalDetails:e,organization:t,address:n}){const a={name:null,address:null==n?void 0:n.address1,postalCode:null==n?void 0:n.postalCode,city:null==n?void 0:n.city,state:null==n?void 0:n.state,county:null==n?void 0:n.county,firstName:null,lastName:null},d=`${e.firstName} ${e.lastName}`,{getAddress:c}=(0,s.x)(),p=c(a,l.Tw.ONELINE,!1);return o.createElement(u,null,o.createElement(m,null,o.createElement(r.aH,{label:(0,i.TlY)("/Account/MyPages/Company/Name"),value:t.accountName}),o.createElement(r.aH,{label:(0,i.TlY)("/Account/Address/AddressLabel"),value:p})),o.createElement(r.aH,{label:(0,i.TlY)("/Account/MyPages/Private/Name"),value:d}
2),o.createElement(r.aH,{label:(0,i.TlY)("/Account/MyDetails/Email"),value:e.email}),o.createElement(r.aH,{label:(0,i.TlY)("/Account/MyDetails/MobileNumber"),value:e.phoneNumber}),o.createElement(r.aH,{label:(0,i.TlY)("/Account/MyPages/CustomerNumber"),value:t.accountNumber}),!!t.organizationNumber&&o.createElement(r.aH,{label:(0,i.TlY)("/Account/MyPages/Company/Corporate"),value:t.organizationNumber}),!!t.vatNumber&&o.createElement(r.aH,{label:(0,i.TlY)("/Account/MyPages/Company/VatNumber"),value:t.vatNumber}))}const u=a.I4.div(),m=a.I4.div({margin:{bottom:d.as}})},85188(e,t,n){n.d(t,{A:()=>s});var i=n(10774),a=n(63696),o=n(13149),l=n(39879);const s=(0,i.I4)(function({title:e,children:t}){return a.createElement(r,null,a.createElement(d,null,e),t)}),r=i.I4.div({width:"100%",margin:{bottom:({isCompact:e})=>e?l.as:l.ut},backgroundColor:l.ON,padding:{top:({isCompact:e})=>e?l.Y:0,bottom:({isCompact:e})=>e?l.as:0,x:({isCompact:e})=>e?l.EX:0}}),d=(0,i.I4)(o.H2,{textTransform:"uppercase",margin:{top:0,bottom:l.as},border:{bottom:{style:"solid",width:1,color:e=>e.siteTheme.quoteCheckoutPage.sectionBorder}}})},82399(e,t,n){n.d(t,{A:()=>i});const i=function(e=[],t){return e.length>0?e:t?[Object.assign(Object.assign({},t),{id:null})]:[]}},4158(e,t,n){n.d(t,{L:()=>lt,default:()=>it});var i=n(63696),a=n(10774),o=n(13149),l=n(42914),s=n(25927),r=n(95082),d=n(39879),c=n(13129),u=n(53550);function m({items:e,limitationInfo:t}){const{productListItems:n}=(0,c.Ok)(e);return i.createElement(i.Fragment,null,i.createElement(u.Ay,{priceWrapperDirection:"column",items:n}),i.createElement(r.Cx,{for:t,component:p}))}Object.defineProperty(m,"name",{value:"default",configurable:!0});const p=a.I4.span({display:"block",textAlign:({isCompact:e})=>e?"center":"left",margin:{top:({isCompact:e})=>e?d.as:d.EX}});var v=n(30561),g=n(28795),A=n(8918),b=n(11386);const h="quote-checkout-form",E=(e,t)=>{switch(t.type){case"UPDATE_FIELD":{const{field:n,value:i}=t.payload;return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{value:i})})}case"UPDATE_ADDRESS_FIELD":{const{value:n}=t.payload;return Object.assign(Object.assign({},e),{selectedAddress:Object.assign(Object.assign({},e.selectedAddress),{value:n})})}case"UPDATE_NEW_INVOICE_ADDRESS":{const{value:n}=t.payload;return Object.assign(Object.assign({},e),{newInvoiceAddress:n})}case"TOGGLE_PHONE_NOTIFICATION":return Object.assign(Object.assign({},e),{phoneNotification:Object.assign(Object.assign({},e.phoneNotification),{isActive:!e.phoneNotification.isActive})});case"UPDATE_PHONE_NOTIFICATION_FIELD":{const{subField:n,value:i,isValid:a}=t.payload;return"name"===n||"mobileNumber"===n?Object.assign(Object.assign({},e),{phoneNotification:Object.assign(Object.assign({},e.phoneNotification),{[n]:Object.assign(Object.assign({},e.phoneNotification[n]),{value:i,isValid:a})})}):e}case"UPDATE_TERMS_CONDITIONS_APPROVED":const{value:n}=t.payload;return Object.assign(Object.assign({},e),{isOptInTermsAndConditionsApproved:n});default:return e}},f=(0,i.createContext)(null),I=({children:e,initialState:t})=>{const[n,a]=(0,i.useReducer)(E,t);return i.createElement(f.Provider,{value:{state:n,updateField:(e,t,n=!0)=>{a({type:"UPDATE_FIELD",payload:{field:e,value:t,isValid:n}})},updateAddressField:(e,t,n=!0)=>{a({type:"UPDATE_ADDRESS_FIELD",payload:{field:e,value:t,isValid:n}})},togglePhoneNotification:()=>{a({type:"TOGGLE_PHONE_NOTIFICATION"})},updatePhoneNotificationField:(e,t,n=!0)=>{a({type:"UPDATE_PHONE_NOTIFICATION_FIELD",payload:{subField:e,value:t,isValid:n}})},updateTermsConditionsApproved:e=>{a({type:"UPDATE_TERMS_CONDITIONS_APPROVED",payload:{value:e}})},updateNewInvoiceAddress:e=>{a({type:"UPDATE_NEW_INVOICE_ADDRESS",payload:{value:e}})}}},e)},T=()=>{const e=(0,i.useContext)(f);if(!e)throw new Error("useFormContext must be used within a FormProvider");return e};var y=n(39372),C=n(59095),S=n(29874),N=n(37744),P=n(31678),k=n(62995);const O=function(e,t){const{submitState:n,pushSubmit:a}=(0,C.j8)({minimumPending:750,maximumFulfilled:500}),o=(0,i.useMemo)(()=>{var n;return{quoteId:e.quoteId,orderNote:e.orderNote.value,invoiceMarking:e.invoiceMarking.value,noteToSales:e.noteToSales.value,deliveryAddress:null===(n=e.selectedAddress)||void 0===n?void 0:n.value,
2notificationInfo:{phoneNumber:e.phoneNotification.mobileNumber.value,name:e.phoneNotification.name.value},isOptInTermsAndConditionsApproved:e.isOptInTermsAndConditionsApproved,assemblyRequested:e.assemblyRequested,carryInRequested:e.carryInRequested,newInvoiceAddress:t?null:e.newInvoiceAddress}},[e,t]);return{submitState:n,handleQuoteSubmit:(0,i.useCallback)(()=>{a((0,k.I)({url:"/QuoteCheckoutPage/CompleteQuotePurchase",body:o}).then(e=>{if(!e.success)return Promise.reject(e.errorMessage);(0,v.c88)(e.orderConfirmationRedirectUrl,{includeAppShellData:!0})}).catch(e=>"string"==typeof e?Promise.reject(e):Promise.reject((0,v.TlY)("/Errors/GeneralErrorMessage"))))},[a,o])}};const x=function({buttonText:e,totalPrice:t,disabled:n,hasBillingAddress:a}){var o;const{state:l}=T(),{submitState:s,handleQuoteSubmit:d}=O(l,a),{currencySettings:c}=(0,P.d)(e=>e.appShellData.countrySettings),u=`${null!==(o=(0,r.Jn)(e))&&void 0!==o?o:""} ${(0,N.$)(t.inclVat,c)}`;return i.createElement(S.A,{id:h,onSubmit:d},i.createElement(D,{"aria-label":u,type:"submit",state:s,disabled:n},u))},D=(0,C.V4)((0,a.I4)(y.wl,y.Xy),{wrapperCss:{display:"grid"}});var q=n(71440),Y=n(24763);function R({optInTermsAndConditionsText:e}){const{state:t,updateTermsConditionsApproved:n}=T(),a=(0,i.useCallback)(e=>{n(!!e.target.checked)},[n]);return i.createElement(w,{required:!0,checked:t.isOptInTermsAndConditionsApproved,onChange:a,form:h,label:null},i.createElement(q.Z,{content:e}))}const w=(0,a.I4)(Y.S,{padding:{x:({isCompact:e})=>e?d.EX+d.nU:0}});var M=n(55247);function F({summary:e,estimatedDeliveryTime:t,buttonText:n,termsConditionText:a,isOrderable:o,isOptInTermsAndConditionsEnabled:l,hasBillingAddress:s}){const r=(0,v.T76)((0,M.HW)()),d=l&&!(null==r?void 0:r.isAgreementCustomer),c=!l&&!!(null==a?void 0:a.html)&&!(null==r?void 0:r.isAgreementCustomer);return i.createElement(Q,null,i.createElement(_,null,i.createElement(g.A,Object.assign({hideTotalChargeAmountTooltip:!0,type:"summary",total:e.totalPrice,vatAmount:e.totalPrice.inclVat-e.totalPrice.exclVat},e)),!!t&&i.createElement(v.Gx5,{data:t,fallbackData:{deliveryTime:(0,v.TlY)("/Product/LoadingDevliveryTime")}},e=>{var t;return(null===(t=e.deliveryTime)||void 0===t?void 0:t.length)>0&&i.createElement(L,null,e.deliveryTime,i.createElement(V,{content:(0,v.TlY)("/Checkout/EstimatedDeliveryTimeTooltip")}))})),!!d&&i.createElement(H,null,i.createElement(R,{optInTermsAndConditionsText:a})),i.createElement(U,null,i.createElement(X,null,i.createElement(x,{buttonText:n,totalPrice:e.totalPrice,disabled:!o,hasBillingAddress:s}))),!!c&&i.createElement(B,null,i.createElement($,{content:a})))}Object.defineProperty(F,"name",{value:"default",configurable:!0});const j=(0,A.T3)(A.l4,A.qV),Q=a.I4.div({position:"sticky",top:121,backgroundColor:({isCompact:e})=>e?d.Cj:d.ON,padding:{top:0}}),_=(0,a.I4)(j,{boxShadow:({isCompact:e,siteTheme:t})=>e?"none":t.cartPage.boxShadow,padding:{x:d.Y,y:({isCompact:e})=>e?0:d.Y}}),L=a.I4.div({justifyContent:"center",fontWeight:"bold",padding:{top:d.Y},display:"flex",alignItems:"center"}),V=(0,a.I4)(b.A,{marginLeft:d.nU}),H=a.I4.div({padding:{top:({isCompact:e})=>e?d.Y:d.as}}),U=a.I4.div(),X=a.I4.div({padding:{x:({isCompact:e})=>e?d.EX:0,top:({isCompact:e})=>e?d.Y:d.as}}),B=a.I4.div(),$=(0,a.I4)(q.Z,{fontSize:d.Ni,maxWidth:"400px",margin:{x:"auto",top:d.Y},padding:{top:d.Y},textAlign:"center",paddingTop:0});var z=n(5611),W=n(85188),G=n(51875),Z=n(1856),J=n(93393),K=n(67863),ee=n(53947),te=n(82399),ne=n(20679),ie=n(71841);function ae(e){var t,n,a;const o=(0,te.A)(e.shippingAddresses,e.address),{state:l,updateAddressField:s}=T(),{regex:r}=(0,J.D)({}),d=(0,P.w)(),{isLookupAddressEnabled:c}=(0,P.d)(e=>e.appShellData.countrySettings.lookupAddressSettings),{isCountyEnabled:u,isStateEnabled:m}=(0,P.d)(e=>e.appShellData.countrySettings.inputFieldSettings),p=(0,P.d)(e=>e.appShellData.siteSettings.myDetailsPage.url),{selectAddress:g,selectedAddressId:A}=(0,ie.A)({addresses:o,initialAddressId:null!==(a=null===(n=null===(t=l.selectedAddress)||void 0===t?void 0:t.value)||void 0===n?void 0:n.id)&&void 0!==a?a:null});(0,i.useEffect)(()=>{var e,t;if(l.selectedAddress.value&&(null===(t=null===(e=l.selectedAddress)||void 0===e?void 0:e.value)||void 0===t?void 0:t.id)!==A){const e=o.find(e=>e.id===A);s("selectedAddress",e)}},[A,o,l.selectedAddress,s]);const b=(0,i.useCallback)(e=>{g(e.id)},[g]),E=(0,i.useCallback)(e=>{e.isValid&&e.id&&(g(e.id),(0,v.g5r)())},[g]),f=(0,i.useCallback)(()=>{d(c?(0,K.sj)({header:(0,v.TlY)("/Account/Address/AddDeliveryAddress"),endpoint:(0,v.hdP)(p,"addshippingaddress"),callback:E}):(0,ee.cX)({fields:(0,Z.S)(null,r,u,m),header:(0,v.TlY)("/Account/Address/AddDeliveryAddress"),endpointOrSubmitAction:(0,v.hdP)(p,"addshippingaddress"),callback:E}))},[E,d,p,u,c,m,r]),I=(0,i.useCallback)(e=>{d(c?(0,K.sj)({header:(0,v.TlY)("/Account/Address/EditDeliveryAddress"),address:e,endpoint:(0,v.hdP)(p,"updateaddress"),callback:E}):(0,ee.cX)({fields:(0,Z.S)(e,r,u,m),header:(0,v.TlY)("/Account/Address/EditDeliveryAddress"),endpointOrSubmitAction:(0,v.hdP)(p,"updateaddress"),callback:E}))},[E,d,p,u,c,m,r]);return i.createElement(i.Fragment,null,i.createElement(ne.A,{label:(0,v.TlY)("/Account/Address/Type/Delivery"),addresses:o,addressType:"shippingAddresses",onClickEdit:!!A&&I,ignoreSelectIfLessThen:0,currentAddressId:A,onAdressChange:b,required:l.selectedAddress.isRequired,form:h,buttonText:(0,v.TlY)("/Account/Address/AddDeliveryAddress"),onAddAddress:()=>f()}))}function oe({shippingAddresses:e,shippingViewModel:t,address:n}){var a;return i.createElement(i.Fragment,null,!t.isPickupDelivery&&i.createElement(ae,{shippingAddresses:e,address:n}),i.createElement(le,{css:!!t.isPickupDelivery&&{margin:{top:0}}},i.createElement(G.aH,{label:(0,v.TlY)("/Account/Quote/QuotePage/DeliveryLabel"),value:t.displayName}
2),!!t.description&&i.createElement(se,null,i.createElement(r.Ed,{html:null===(a=t.description)||void 0===a?void 0:a.html}))))}Object.defineProperty(oe,"name",{value:"default",configurable:!0});const le=a.I4.div({margin:{top:({isCompact:e})=>e?d.Y:d.as}}),se=a.I4.div({display:"flex",margin:{top:d.Y}});var re=n(7903),de=n(49004),ce=n(97760);const ue=(0,a.I4)((0,a.jg)(function(e){return i.createElement(re.A,{title:(0,v.TlY)("/Checkout/AddInvoiceMarking"),isOpen:e.invoiceMarkingisOpen,onClick:t=>e.setInvoiceMarking(t),tooltip:(0,v.TlY)("/Checkout/InvoiceMarkingToolTip"),alwaysIsOpen:e.isRequiredInvoiceMarking},i.createElement(ce.LB,null,i.createElement(me,{isRequiredInvoiceMarking:e.isRequiredInvoiceMarking,placeholder:(0,v.TlY)("/Checkout/InvoiceMarkingPlaceholder"),form:e.form,invoiceMaxLength:e.invoiceMaxLength,invoiceValue:e.invoiceValue,onBlur:e.onBlur})))})),me=(0,a.I4)(de.A,{maxWidth:"100%"});var pe=n(26166),ve=n(11949),ge=n(87960);function Ae({shippingAddresses:e}){var t,n;const{state:a,updateNewInvoiceAddress:o}=T(),l=(0,P.d)(e=>e.appShellData.siteSettings.myDetailsPage.url),{selectedAddress:s}=(0,ge.T)({addresses:e,selectedAddressId:null===(t=a.newInvoiceAddress)||void 0===t?void 0:t.id,overrideAddress:a.newInvoiceAddress,fallbackToFirst:!0});(0,i.useEffect)(()=>{!a.newInvoiceAddress&&s&&o(s)},[s,a.newInvoiceAddress,o]);const r=(0,i.useCallback)(e=>(0,pe.__awaiter)(this,void 0,void 0,function*(){const t=yield(0,k.I)({url:(0,v.hdP)(l,"addInvoiceAddress"),body:e});return t.isValid&&(0,v.g5r)(),t}),[l]);return i.createElement(ve.$,{addresses:e,selectedAddressId:null===(n=a.newInvoiceAddress)||void 0===n?void 0:n.id,overrideAddress:a.newInvoiceAddress,fallbackToFirst:!0,onAddressChange:o,onNewAddressSubmit:r})}var be=n(57248),he=n(14819);function Ee({invoiceAddress:e}){const{getAddress:t}=(0,be.x)(),n={name:e.firstName,address:e.address1,postalCode:e.postalCode,city:e.city,state:e.state,county:e.county,firstName:null,lastName:null};return i.createElement(i.Fragment,null,i.createElement(fe,null,(0,v.TlY)("/Checkout/InvoiceAddressHeader")),i.createElement(Ie,null,t(n,he.Tw.MULTILINE)),i.createElement(Te,null,(0,v.TlY)("/Checkout/ChangeInvoiceAddress")))}const fe=a.I4.div({fontWeight:"bold"}),Ie=a.I4.div({margin:{y:d.EX}}),Te=a.I4.div({margin:{top:d.EX,bottom:d.as},fontStyle:"italic",fontWeight:"bold"});function ye({shippingAddresses:e,billingAddress:t,invoiceMethod:n,invoiceEmail:a}){const{state:o,updateField:l}=T(),s=null!==t,[r,d]=(0,i.useState)(!1),c=(0,P.d)(e=>e.appShellData.countrySettings.isInvoiceMarkingEnabled),u=(0,i.useCallback)(e=>{l("invoiceMarking",e.target.value)},[l]);return i.createElement(i.Fragment,null,s?i.createElement(Ee,{invoiceAddress:t}):i.createElement(Ae,{shippingAddresses:e}),i.createElement(G.aH,{label:(0,v.TlY)("/Account/Quote/QuotePage/InvoiceDeliveryMethodLabel"),value:Se(n,a)}),!!c&&i.createElement(Ce,null,i.createElement(ue,{invoiceMarkingisOpen:r,setInvoiceMarking:e=>d(e),isRequiredInvoiceMarking:o.invoiceMarking.isRequired,invoiceMaxLength:40,invoiceValue:o.invoiceMarking.value,onBlur:u,form:h})))}Object.defineProperty(ye,"name",{value:"default",configurable:!0});const Ce=a.I4.div({margin:{top:d.EX}});function Se(e,t){switch(e){case"eInvoice":return(0,v.TlY)("/Account/Quote/QuotePage/InvoiceMethods/Electronic");case"email":return`${(0,v.TlY)("/Account/Quote/QuotePage/InvoiceMethods/Email")} ${null!=t?t:""}`;case"print":return(0,v.TlY)("/Account/Quote/QuotePage/InvoiceMethods/Print");default:return""}}var Ne=n(94481);const Pe=function({notificationService:e}){const[t,n]=(0,i.useState)(!1),{state:a,updatePhoneNotificationField:o,togglePhoneNotification:l}=T(),s=(0,i.useRef)(null),r=(0,i.useCallback)(e=>o("name",e),[o]),d=(0,i.useCallback)(e=>o("mobileNumber",e),[o]);return(0,i.useEffect)(()=>{var e;a.phoneNotification.isActive&&(null===(e=s.current)||void 0===e||e.focus())},[a.phoneNotification.isActive]),i.createElement(ke,{showPhoneNotification:t,setShowPhoneNotification:n,title:e.title,tooltip:e.tooltip,description:e.description,placeholders:{name:(0,v.TlY)("/Shared/Order/Name"),phoneNumber:(0,v.TlY)("/Shared/Order/MobileNumber")},isSelected:a.phoneNotification.isActive,handleNotificationToggle:l,name:a.phoneNotification.name.value,setNotificationName:r,notificationNameRef:s,phoneNumber:a.phoneNotification.mobileNumber.value,setNotificationPhoneNumber:d,form:h})},ke=(0,a.I4)(Ne.A,{width:"100%"});var Oe=n(74833);const xe=function({noteToSales:e}){const{state:t,updateField:n}=T(),[a,o]=(0,i.useState)(!1),l=(0,i.useCallback)(e=>n("noteToSales",e),[n]);return i.createElement(De,{title:e.title,tooltip:e.tooltip,showNoteToSales:a,setShowNoteToSales:o,noteToSalesValue:t.
2noteToSales.value,setNoteToSales:l})},De=(0,a.I4)(Oe.A,{width:"100%",height:80,marginBottom:d.as});var qe=n(59108);const Ye=function({orderNoteService:e}){const{state:t,updateField:n}=T(),[a,o]=(0,i.useState)(!1),l=(0,i.useCallback)(e=>n("orderNote",e),[n]);return i.createElement(Re,{title:e.title,tooltip:e.tooltip,showOrderNote:a,setShowOrderNote:o,orderNoteValue:t.orderNote.value,setOrderNote:l})},Re=(0,a.I4)(qe.A,{width:"100%"});function we({additionalServices:e}){const{sortedServices:t,notificationService:n,noteToSales:a,orderNoteService:o}=e;return i.createElement(i.Fragment,null,t.map(e=>{switch(e){case"notification":return(null==n?void 0:n.available)?i.createElement(Pe,{key:e,notificationService:n}):null;case"noteToSale":return(null==a?void 0:a.available)?i.createElement(xe,{key:e,noteToSales:a}):null;case"orderNote":return(null==o?void 0:o.available)?i.createElement(Ye,{key:e,orderNoteService:o}):null;default:return null}}))}Object.defineProperty(we,"name",{value:"default",configurable:!0});var Me=n(58463),Fe=n(62377),je=n(83137);const Qe=function({assemblyRequested:e,carryInRequested:t}){const n=(0,P.d)(e=>e.appShellData.siteSettings.siteEmail);return i.createElement(_e,null,i.createElement(o.H4,null,(0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/Title")),i.createElement(Le,null,i.createElement(Ve,null,i.createElement(He,null)),i.createElement(Ue,null,(0,Fe.o)((0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/CustomerInfo"),"{link}",(e,t)=>i.createElement(je.A,{key:t,to:`mailto:${n}`,"aria-label":(0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/CustomerServiceLink")},(0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/CustomerServiceLink"))))),i.createElement(Xe,null,!!e&&i.createElement(Be,null,i.createElement($e,null,(0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/Assembly")),i.createElement(Y.S,{label:(0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/Assembly"),disabled:!0,checked:e})),!!t&&i.createElement(Be,null,i.createElement($e,null,(0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/CarryIn")),i.createElement(Y.S,{label:(0,v.TlY)("/Account/Quote/QuotePage/RequestedServices/CarryIn"),disabled:!0,checked:t}))))},_e=a.I4.div({display:"flex",flexDirection:"column",margin:{top:d.as},padding:{xy:d.Y},border:{xy:{width:1,style:"solid",color:({siteTheme:e})=>e.quoteCheckoutPage.SelectedServices.borderColor}},borderRadius:4}),Le=a.I4.div({display:"flex",gap:d.EX}),Ve=a.I4.div(),He=(0,a.I4)(Me.R2,{height:24,width:24,flexShrink:0}),Ue=a.I4.span(),Xe=a.I4.div({display:"flex",flexDirection:"column",gap:d.Y,margin:{top:d.as}}),Be=a.I4.div({display:"flex",alignItems:"center",justifyContent:"space-between"}),$e=a.I4.span({textTransform:"capitalize",color:({siteTheme:e})=>e.quoteCheckoutPage.SelectedServices.serviceItemTitleColor});const ze=function({quoteCheckoutData:e}){const{customerDetails:t,additionalServices:n,shipping:a,quote:o}=e,{personalDetails:l,organization:s,address:r,shippingAddresses:d,billingAddress:c}=t,u=function(e){return e.noteToSales.available||e.notificationService.available||e.orderNoteService.available}(n),m=o.assemblyRequested||o.carryInRequested;return i.createElement(i.Fragment,null,i.createElement(W.A,{title:(0,v.TlY)("/Account/Quote/QuotePage/CustomerDetailTitle")},i.createElement(z.A,{personalDetails:l,organization:s,address:r})),i.createElement(W.A,{title:(0,v.TlY)("/Account/Quote/QuotePage/DeliveryTitle")},i.createElement(oe,{shippingAddresses:d,shippingViewModel:a,address:r})),!(!u&&!m)&&i.createElement(W.A,{title:(0,v.TlY)("/Account/Quote/QuotePage/AdditionalServiceTitle")},i.createElement(we,{additionalServices:n}),!!m&&i.createElement(Qe,{assemblyRequested:o.assemblyRequested,carryInRequested:o.carryInRequested})),i.createElement(W.A,{title:(0,v.TlY)("/Account/Quote/QuotePage/InvoiceTitle")},i.createElement(ye,{shippingAddresses:d,billingAddress:c,invoiceMethod:s.invoiceMethod,invoiceEmail:s.invoiceEmail})))};const We=function({quoteCheckoutData:e,content:t}){const n=(0,s.DD)(),{QuoteFormState:a}=function(e){const t=e.shipping.isPickupDelivery?null:(null===(n=e.customerDetails)||void 0===n?void 0:n.shippingAddresses[0])?e.customerDetails.shippingAddresses[0]:(null===(i=e.customerDetails)||void 0===i?void 0:i.address)?Object.assign(Object.assign({},e.customerDetails.address),{id:null}):null;var n,i;return{QuoteFormState:{quoteId:e.quoteId,contactPartyNumber:null,goodsMark:null,customerRequisition:null,selectedAddress:{value:t,isRequired:!0},phoneNotification:{isActive:!1,name:{value:"",isRequired:!1},mobileNumber:{value:"",isRequired:!1}},noteToSales:{value:"",isRequired:!1},orderNote:{value:"",isRequired:!1},invoiceMarking:{value:"",isRequired:e.isRequiredInvoiceMarking},isOptInTermsAndConditionsApproved:!1,assemblyRequested:e.quote.assemblyRequested,carryInRequested:e.quote.carryInRequested,newInvoiceAddress:null}}}(e),o=!!e.customerDetails.billingAddress;return i.createElement(I,{initialState:a}
2,i.createElement(Ge,{appearance:[l.bA.Narrow,!n&&l.bA.Gap]},i.createElement(Ke,null,i.createElement(r.Cx,{for:t.heading,component:lt}),i.createElement(m,{items:e.quote.items,limitationInfo:t.limitationInfo})),i.createElement(l.x,{layout:l.PE.FiftySixToFourtyFour},i.createElement(Ze,null,i.createElement(ze,{quoteCheckoutData:e})),i.createElement(Je,null,i.createElement(F,{hasBillingAddress:o,summary:e.quote.summary,estimatedDeliveryTime:e.quote.estimatedDeliveryTime,buttonText:t.purchaseButtonText,isOrderable:e.isOrderable,isOptInTermsAndConditionsEnabled:e.termsAndConditions.isOptInTermsAndConditionsEnabled,termsConditionText:e.termsAndConditions.termsAndConditionsText})))))},Ge=(0,a.I4)(l.x,{width:({isCompact:e})=>e?"auto":955}),Ze=(0,a.I4)(l.eS,{padding:{x:0}}),Je=(0,a.I4)(Ze,{height:"100%",position:"relative",padding:{x:0,bottom:({isCompact:e})=>e?0:d.as}}),Ke=(0,a.I4)(Ze,{backgroundColor:d.ON,padding:{top:({isCompact:e})=>e?d.Y:0,x:({isCompact:e})=>e?d.EX:0,bottom:({isCompact:e})=>e?d.as:d.ut}});const et=function({heading:e,quoteNotFoundText:t}){return i.createElement(tt,null,i.createElement(r.Cx,{for:e,component:o.H1}),i.createElement(nt,null,i.createElement(r.Cx,{for:t,component:a.I4.Span})))},tt=a.I4.div({padding:{x:({isCompact:e})=>e?d.EX:0}}),nt=a.I4.div({margin:{bottom:d.as},padding:{xy:d.Y},backgroundColor:e=>e.siteTheme.quoteCheckoutPage.fallbackPage.backgroundColor,border:{xy:{width:1,style:"solid",color:e=>e.siteTheme.quoteCheckoutPage.fallbackPage.borderColor}}});const it=function(e){const{quoteCheckoutData:t,content:n}=e;return i.createElement(at,null,i.createElement(ot,null,t?i.createElement(We,Object.assign({},e)):i.createElement(et,{heading:n.heading,quoteNotFoundText:n.quoteNotFoundText})))},at=(0,a.I4)(l.gZ,{backgroundColor:({isCompact:e})=>e?d.Cj:d.ON}),ot=(0,a.I4)(l.x,{width:({isCompact:e})=>e?"auto":955,margin:{top:({isCompact:e})=>e?0:2*d.ut}}),lt=(0,a.I4)(o.H1,{margin:{top:0},fontSize:({isCompact:e,siteTheme:t})=>e?t.headings.h2.fontSize.compact:t.headings.h2.fontSize.desktop})},1856(e,t,n){n.d(t,{S:()=>o});var i=n(30561),a=n(42916);const o=(e,t,n,o)=>({name:{displayName:(0,i.TlY)("/Account/MyPages/Company/Name"),validation:a.S.FreeText,required:!0,value:(null==e?void 0:e.firstName)||"",autoComplete:"organization"},address1:{displayName:(0,i.TlY)("/Account/Address/AddressLabel"),validation:a.S.Address,required:!0,value:(null==e?void 0:e.address1)||"",autoComplete:"street-address"},postalCode:{displayName:(0,i.TlY)("/Account/Address/PostalCode"),validation:a.S.PostalCode,required:!0,value:(null==e?void 0:e.postalCode)||"",autoComplete:"postal-code",pattern:t},city:{displayName:(0,i.TlY)("/Account/Address/City"),validation:a.S.FreeText,required:!0,value:(null==e?void 0:e.city)||"",autoComplete:"address-level2"},county:n?{required:!1,displayName:(0,i.TlY)("/Account/Address/County"),validation:a.S.FreeText,value:(null==e?void 0:e.county)||""}:null,state:o?{required:!1,displayName:(0,i.TlY)("/Account/Address/State"),validation:a.S.FreeText,value:(null==e?void 0:e.state)||""}:null,id:e?{required:!1,value:e.id,hidden:!0}:void 0})},71841(e,t,n){n.d(t,{A:()=>a});var i=n(63696);const a=function({addresses:e,initialAddressId:t}){const[n,a]=(0,i.useState)(t),[o,l]=(0,i.useState)(t);(0,i.useEffect)(()=>{const t=function(e,t,n){var i;if(!e.length)return;if(t){const n=e.find(e=>e.id===t);if(n)return n.id;const i=e.find(e=>e.tempRecId===t);if(i)return i.id}if(n){const t=e.find(e=>e.id===n);if(t)return t.id;const i=e.find(e=>e.tempRecId===n);if(i)return i.id}return null===(i=e[0])||void 0===i?void 0:i.id}(e,n,o);l(t)},[e,n]);const s=(0,i.useCallback)(e=>{a(e)},[]);return{selectedAddressId:o,selectAddress:s}}},49004(e,t,n){n.d(t,{A:()=>s});var i=n(10774),a=n(63696),o=n(54866),l=n(50068);const s=(0,i.I4)(function(e){return a.createElement(r,{preferFramed:e.preferFramed,uncontrolled:!0,form:e.form,placeholder:e.placeholder,type:"text",maxLength:e.invoiceMaxLength,required:e.isRequiredInvoiceMarking,value:e.invoiceValue,onBlur:e.onBlur})}),r=(0,i.I4)(o.Ay,l.FZ)}}]);
3//# sourceMappingURL=4158.chunk.6ed3a713ff44d768b7ea.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.