1"use strict";(self.webpackChunknestcom=self.webpackChunknestcom||[]).push([["4055"],{6842:function(e,o,t){t.r(o),t.d(o,{default:()=>y});var r=t(8931),a=t(2096),l=t(9330),i=t(6003),n=t(3587),s=t(7630),c=t(4116),d=t(2018),m=t(6914);async function u(e){return await (0,m.B2)((0,d.H$)("quotes/create"),e)}var p=t(7016),h=t(5312),x=t(8201),g=t(7043),f=t(8725);let y=n.memo(function({open:e,setOpen:o,informationText:t,confirmationText:i}){let m=n.useCallback(()=>{o(!1)},[o]),g=(0,d.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi")[0]?.registrationPageUrl,[y,q]=n.useState(!1),[N,W]=(0,x.j8)(),z=(0,d.T7)({},"Avensia.Excite.Commercetools.Api.Models.Customer.ICustomerApiModel,Avensia.Excite.Commercetools")[0],B=n.useCallback(e=>{e.preventDefault(),e.stopPropagation(),W(new Promise(async(o,t)=>{try{(await u((0,a.tg)(e.currentTarget))).validation.hasErrors?t():(q(!0),o())}catch(e){t()}}))},[W]);return(0,r.jsxs)(l.Ay,{onClose:m,position:l.yX.Right,visible:e,zIndex:c.P.Overlay,children:[(0,r.jsxs)(C,{children:[(0,r.jsx)(v,{children:(0,d.Tl)(e=>e.quotes.flyoutHeading)}),(0,r.jsx)(x.$n,{as:s.Sx.Transparent,onClick:m,square:!0,"aria-label":(0,d.Tl)(e=>e.ariaLabelCloseButton),children:(0,r.jsx)(f.US,{})})]}),(0,r.jsxs)(w,{children:[(0,r.jsx)(p.yo,{elements:t}),y?(0,r.jsxs)(S,{children:[(0,r.jsx)(j,{children:(0,d.Tl)(e=>e.quotes.confirmationHeading)}),(0,r.jsx)(p.yo,{elements:i}),!z?.isLoggedIn&&(0,r.jsxs)(A,{children:[(0,r.jsx)(k,{as:s.Sx.Monochrome,to:g||"",children:(0,d.Tl)(e=>e.login.createAccount)}),(0,r.jsx)(x.$n,{onClick:h.s0,children:(0,d.Tl)(e=>e.login.loginAction)})]})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(b,{onSubmit:B,children:[(0,r.jsx)(T,{as:s.Sx.White,type:"text",autoComplete:"name",name:"name",required:!0,placeholder:(0,d.Tl)(e=>e.customer.fullName)+"*",defaultValue:z?.isLoggedIn?`${z.firstName} ${z.lastName}`:""}),(0,r.jsx)(T,{as:s.Sx.White,type:"email",autoComplete:"email",name:"email",required:!0,placeholder:(0,d.Tl)(e=>e.customer.email)+"*",defaultValue:z?.email}),(0,r.jsx)(T,{as:s.Sx.White,type:"tel",autoComplete:"phone",name:"phone",required:!0,placeholder:(0,d.Tl)(e=>e.customer.phoneNumber)+"*",defaultValue:z?.mobileNumber}),(0,r.jsx)(T,{as:s.Sx.White,type:"text",autoComplete:"company",name:"company",required:!0,placeholder:(0,d.Tl)(e=>e.customer.companyCustomer)+"*"}),(0,r.jsx)(T,{as:s.Sx.White,type:"text",autoComplete:"off",name:"customersReference",placeholder:(0,d.Tl)(e=>e.customer.customersReference)}),(0,r.jsx)(I,{name:"message",rows:6,placeholder:(0,d.Tl)(e=>e.quotes.message)}),(0,r.jsx)(x.y6,{type:"submit",state:N,children:(0,d.Tl)(e=>e.quotes.send)})]})})]})]})}),C=i.I4.div({height:e=>e.flyout.headerHeight,display:"flex",justifyContent:"space-between",position:"relative",alignItems:"center",backgroundColor:e=>e.flyout.headerColor,padding:{right:e=>e.sharedSpacing.xs,left:e=>e.sharedSpacing.l},border:{bottom:{width:1,style:"solid",color:e=>e.borderColor}}}),S=i.I4.div({backgroundColor:e=>e.monochrome.color,padding:{xy:e=>e.sharedSpacing.l}}),j=i.I4.h3({fontSize:e=>e.fontSize.xs,textAlign:"center"}),b=i.I4.form({display:"flex",flexDirection:"column"}),T=(0,i.I4)(g.A_,{marginBottom:e=>e.sharedSpacing.m}),v=i.I4.h2({fontSize:e=>e.sharedFontSize.m,fontWeight:"normal",whiteSpace:"nowrap",marginBottom:0,flexGrow:1},s.VY&&{textAlign:"center"}),w=i.I4.div({padding:{xy:e=>e.sharedSpacing.l},overflowY:"auto"}),I=i.I4.textarea((0,s.bA)(s.Sx.White),(0,g.K6)(s.Sx.White),{resize:"none",marginBottom:e=>e.sharedSpacing.m,padding:{xy:11},"::placeholder":{color:e=>e.monochrome.text,opacity:.5},":focus":{outline:{color:e=>e.inputFocusOutlineColor,width:1,style:"solid"},border:{xy:{color:e=>e.inputFocusOutlineColor}}}}),A=i.I4.div({display:"grid",gridTemplateColumns:"1fr 1fr",gap:e=>e.sharedSpacing.m,marginTop:e=>e.sharedSpacing.l}),k=(0,i.I4)(x.vx,{border:{xy:{width:1,style:"solid",color:e=>e.borderColor}}})}}]); 2//# sourceMappingURL=4055.5665f8aea73b96e7.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.