1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1783],{52808:function(e,t,i){i.d(t,{w:function(){return Z},z:function(){return k}});var n=i(35944),a=i(47163),r=i(32191),o=i(76480),l=i(89555),d=i(87506),s=i(47911),u=i(20286),c=i(27121),p=i(34466),m=i(67294),h=i(25935),f=i(75084),b=i(43523),g=i(33227),y=i(47199),x=i(85590);let Z={small:(0,d.v)(60,80),medium:(0,d.v)(80,100),large:(0,d.v)(80,120)},v={small:"body2",medium:"body1",large:"subtitle1"};function k(e){let t;let{cartItem:i,sx:d=[],size:k="large",readOnly:C=!1,...w}=e,{uid:S,quantity:q,prices:R,errors:N,product:B}=i,{name:$,thumbnail:_,url_key:D}=B,L=(0,r.z)(),A=(0,m.useRef)(null),[F,X]=(0,m.useState)(q),{setUpdating:W}=(0,y.k)();return(0,m.useEffect)(()=>{X(q)},[q]),(0,m.useEffect)(()=>{W(F!==q)},[F,q,W]),(0,m.useEffect)(()=>{let e=A.current;if(!e||C)return;let t=()=>{let t=e.querySelector('input[type="number"]');return parseInt(t?.value||"0",10)},i=i=>{let n=i.target.closest("button");if(!n)return;let a=t();if("decrease"===n.dataset.action){if(1===a){let t=e.querySelector('form button[type="submit"]');t&&(i.preventDefault(),i.stopPropagation(),t.click())}else X(Math.max(1,a-1))}n.getAttribute("aria-label")?.toLowerCase().includes("increase")&&X(a+1)},n=()=>{let e=t();e>0&&X(e)};return e.addEventListener("click",i,!0),e.addEventListener("input",n,!0),()=>{e.removeEventListener("click",i,!0),e.removeEventListener("input",n,!0)}},[C]),t=L?R?.price_including_tax?R.price_including_tax.value:(R?.row_total_including_tax?.value??0)/q:R?.price.value,(0,n.tZ)(s.f,{value:S,sx:[e=>({"&.ActionCard-root":{px:0,py:e.spacings.xs},"& .MuiBox-root":{justifyContent:"space-between",gap:"10px"},"&.sizeSmall":{px:0},"& .ActionCard-end":{justifyContent:C?"center":"space-between",alignSelf:"last baseline"},"& .ActionCard-action":{},"& .ActionCard-image":{alignSelf:"flex-start"},"& .ActionCard-secondaryAction":{display:"flex",flexDirection:"column",typography:v.small,color:"text.secondary",maxWidth:"8.5rem",gap:"10px"},"& .ActionCard-price":{typography:v[k],pr:C?0:e.spacings.xs}}),...Array.isArray(d)?d:[d]],image:_?.url&&(0,n.tZ)(a.Ee,{loader:x.default,layout:"fill",src:(0,g.h)((0,b.D)(_?.url)),sx:{width:Z[k],height:Z[k],display:"block",borderRadius:1,objectFit:"contain"},sizes:Z[k]}),title:D?(0,n.tZ)(c.Z,{href:`/product/${D}`,underline:"hover",sx:{color:"inherit",flexWrap:"nowrap",maxWidth:"max-content"},children:$}):$,secondaryAction:(0,n.BX)(n.HY,{children:[(0,n.BX)(p.Z,{ref:A,sx:{display:"flex",alignItems:"normal"},children:[C?`${l.ag._("Quantity")}: ${q}`:(0,n.tZ)(f.H,{uid:S,quantity:q,textInputProps:{DownProps:{"data-action":"decrease"}}}),!C&&(0,n.tZ)(h.t,{...i,buttonProps:{size:k,variant:"outline"}})]}),(0,n.BX)("div",{children:[(0,n.tZ)(o.W,{value:t,currency:R?.price.currency}),"/ea"]})]}),price:(0,n.tZ)(o.W,{value:(t??0)*F,currency:R?.price.currency}),size:k,after:(0,u.B)(N).map(e=>(0,n.tZ)(p.Z,{sx:{color:"error.main",typography:"caption"},children:e.message},e.message)),...w})}},47199:function(e,t,i){i.d(t,{R:function(){return l},k:function(){return o}});var n=i(35944),a=i(67294);let r=(0,a.createContext)({isUpdating:!1,setUpdating:()=>{}}),o=()=>(0,a.useContext)(r);function l({children:e}){let[t,i]=(0,a.useState)(!1),o=(0,a.useCallback)(e=>{i(e)},[]);return(0,n.tZ)(r.Provider,{value:{isUpdating:t,setUpdating:o},children:e})}},67614:function(e,t,i){i.r(t),i.d(t,{StepRenderer:function(){return eo},default:function(){return el}});var n=i(35944);let a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetQuoteRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getQuoteRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"entity_id"}},{kind:"Field",name:{kind:"Name",value:"date_submitted"}},{kind:"Field",name:{kind:"Name",value:"contact_immediately"}},{kind:"Field",name:{kind:"Name",value:"preferred_contact_method"}},{kind:"Field",name:{kind:"Name",value:"further_comments"}},{kind:"Field",name:{kind:"Name",value:"quote_use"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"qty"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"url_key"}}]}}]}}]}}]};var r=i(67886),o=i(66252),l=i(37887),d=i(11163),s=i(67294);let u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SubmitQuoteRequest"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SubmitQuoteRequestInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitQuoteRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}]}]}}]};var c=i(88777),p=i(66549),m=i(46371),h=i(42968),f=i(94745),b=i(60607),g=i(3022),y=i(37990),x=i(55832),Z=i(89555),v=i(34466);let k=[{id:"purchaseWithin30Days",label:Z.ag._("Purchase within 30 days")},{id:"purchaseWithin90Days",label:Z.ag._("Purchase within 90 days")},{id:"purchaseWithin12Months",label:Z.ag._("Purchase within 12 months")},{id:"budgetaryReference",label:Z.ag._("Budgetary reference")},{id:"other",label:Z.ag._("Other")}],C=[{id:"email",label:Z.ag._("Email")},{id:"phone",label:Z.ag._("Phone")},{id:"fax",label:Z.ag._("Fax")}],w=({control:e})=>(0,n.BX)(v.Z,{sx:{display:"flex",flexDirection:"column",gap:"1rem",gridArea:"content"},children:[(0,n.tZ)("div",{children:(0,n.tZ)(f.cC,{id:'Please review your data before clicking "Send Quote Request."'})}),(0,n.tZ)("div",{children:(0,n.tZ)(f.cC,{id:"If you have an immediate deadline, or if you have other questions or comments, please let us know in the form below."})}),(0,n.tZ)("div",{children:(0,n.tZ)(f.cC,{id:"Please answer the following questions. Fields marked with * are required."})}),(0,n.BX)(y.Z,{disableGutters:!0,maxWidth:"sm",sx:{marginInlineStart:"0",display:"flex",flexDirection:"column",gap:"1rem",gridArea:"content"},children:[(0,n.tZ)(c.nj,{name:"input.preferredContactMethod",control:e,label:(0,n.tZ)(f.cC,{id:"How would you like to be contacted?"}),options:C,required:!0}),(0,n.tZ)(c.nj,{name:"input.quoteUse",control:e,label:(0,n.tZ)(f.cC,{id:"How will this quote be used?"}),options:k,required:!0}),(0,n.tZ)(c.SF,{control:e,label:(0,n.tZ)(f.cC,{id:"Tell us about the application or process you need this equipment for"}),helperText:(0,n.tZ)(f.cC,{id:"What specific challenges do you hope to overcome with this equipment?"}),minRows:4,multiline:!0,name:"input.furtherComments",sx:{"& .MuiFormHelperText-root":{marginInlineStart:"0"}}})]}),(0,n.tZ)(x.Z,{control:e,label:(0,n.tZ)(f.cC,{id:"Please have a Labconco representative contact me immediately"}),name:"input.contactImmediately"})]});var S=i(9945),q=i(37448),R=i(46800),N=i(54988),B=i(13482);let $=({title:e,sx:t,children:i})=>(0,n.BX)(v.Z,{sx:[e=>({padding:`${e.spacings.sm} ${e.spacings.sm}`,border:`1px ${e.palette.divider} solid`,...(0,N.E)("borderRadius",2*e.shape.borderRadius,3*e.shape.borderRadius,e.breakpoints.values)}),...Array.isArray(t)?t:[t]],children:[e&&(0,n.tZ)(B.S,{sx:{"& .SectionHeader-root":{mt:0}},labelLeft:(0,n.tZ)(f.cC,{id:e}),variantLeft:"h6",children:i}),!e&&i]});function _({customer:e,title:t,sx:i}){if(!e)return null;let a=e?.addresses?.filter(e=>e?.default_shipping)?.[0]||e?.addresses?.[0];return(0,n.BX)($,{title:t,sx:i,children:[(0,n.BX)(g.Z,{variant:"body1",children:[e?.firstname," ",e?.lastname]}),a?.company&&(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",component:"span",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Company/Institution: "})}),a?.company]}),a?.street&&(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Address: "})}),a?.street.map((e,t)=>n.BX(n.HY,{children:[n.tZ("span",{children:e},t)," "]})),(0,n.tZ)("br",{}),a?.city,", ",a?.region?.region," ",a?.postcode]}),a?.telephone&&(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",component:"span",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Phone: "})}),a?.telephone]}),e?.email&&(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",component:"span",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Email: "})}),e?.email]})]})}let D=()=>{let e=(0,q.k)(R.h),t=e.data?.customer;return(0,n.tZ)(_,{sx:{width:"100%",alignSelf:"flex-start",gridArea:"sidebar"},customer:t,title:"Submitted By"})};var L=i(35568),A=i(55472),F=i(81503),X=i(97280),W=i(35255),P=i(52808),I=i(47163),z=i(58389),E=i(33227),M=i(85590);let Q={small:"body2"},{classes:T}=(0,z.AY)("QuoteTableRow",["root"]),H=({product:e,index:t,isLastRow:i,control:a,isSubmitting:r,setValue:o,readOnly:l,register:d,size:s})=>{if(!e)return null;let u=(0,A.Z)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)(v.Z,{sx:{gridRow:`${4*t+1} / span 3`,gridColumn:"1",[u.breakpoints.up("sm")]:{gridRow:`${3*t+1} / span 2`}},className:T.root,children:e.image_url&&(0,n.tZ)(I.Ee,{loader:M.default,layout:"fill",src:(0,E.h)(e.image_url),alt:e.name??"",sx:{width:P.w[s],height:P.w[s],display:"block",borderRadius:1,objectFit:"contain"},sizes:P.w[s]})}),(0,n.tZ)(v.Z,{sx:{gridColumn:"2 / span 2",gridRow:4*t+3,typography:Q.small,color:"text.secondary",[u.breakpoints.up("sm")]:{gridRow:3*t+2,gridColumn:"2"}},children:(0,n.BX)(g.Z,{variant:"paragraphDefault",sx:e=>({display:"flex",flexWrap:"wrap",gap:".2em",color:e.palette.customColors.gray2,[e.breakpoints.up("md")]:{fontSize:"1rem"}}),children:[(0,n.tZ)(g.Z,{component:"span",variant:"paragraphDefaultBold",sx:{margin:0,fontSize:"inherit"},children:(0,n.tZ)(f.cC,{id:"Catalog #:"})})," ",e.sku]})}),(0,n.tZ)(v.Z,{sx:{gridColumn:"2 / span 2",gridRow:4*t+1,[u.breakpoints.up("sm")]:{gridColumn:"2 / span 3",gridRow:3*t+1}},children:(0,n.tZ)(g.Z,{variant:"h6",sx:{color:"inherit"},children:e.name})}),(0,n.BX)(v.Z,{sx:{display:"flex",justifyContent:"flex-end",gridArea:"qty",gridColumn:"2",gridRow:4*t+2,[u.breakpoints.up("sm")]:{gridColumn:"3",grid
1Row:3*t+2}},children:[(0,n.tZ)("input",{type:"hidden",...d(`input.products.${t}.sku`)}),l?(0,n.BX)(g.Z,{variant:"paragraphDefault",sx:e=>({display:"flex",gap:".2em",color:e.palette.customColors.gray2,[e.breakpoints.up("md")]:{fontSize:"1rem"}}),children:[(0,n.tZ)(g.Z,{component:"span",variant:"paragraphDefaultBold",sx:{margin:0,fontSize:"inherit"},children:(0,n.tZ)(f.cC,{id:"Quantity:"})})," ",e.qty]}):(0,n.tZ)(W.E,{variant:"outlined",size:"small",color:"primary",control:a,required:!0,inputProps:{min:1,"aria-label":Z.ag._("Update quantity on quote")},"aria-label":Z.ag._("Update quantity on quote"),name:`input.products.${t}.qty`,disabled:r})]}),!l&&(0,n.tZ)(v.Z,{sx:{gridColumn:"3",gridRow:4*t+2,[u.breakpoints.up("sm")]:{gridRow:3*t+2,gridColumn:"4"}},children:(0,n.tZ)(F.Z,{variant:"contained",color:"light",sx:e=>({color:e.palette.text.secondary}),onClick:()=>o(`input.products.${t}.qty`,0),disabled:r,children:(0,n.tZ)(f.cC,{id:"Remove"})})}),!i&&(0,n.tZ)(X.Z,{sx:{gridColumn:"1 / span 3",gridRow:4*t+4,[u.breakpoints.up("sm")]:{gridRow:3*t+3,gridColumn:"1 / span 4"}}})]})};var O=i(46180);let j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateQuoteRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateQuoteRequestInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createQuoteRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"qty"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"url_key"}}]}}]}}]}}]};var V=i(17872);let U=({products:e,readOnly:t,setProducts:i,setMessage:a,quote:r})=>{let o=(0,V.a)(e=>e.breakpoints.down("sm"))?"medium":"large",{control:l,setValue:d,register:s,formState:{isSubmitting:u},handleSubmit:c}=(0,m.IB)(j,{mode:"onChange",defaultValues:{input:{id:r?.id,products:e?.filter(e=>null!==e).map(e=>({sku:e.sku,qty:e.qty}))??[]}},onComplete:({data:t,errors:n})=>{if(n){i(e),a({open:!0,message:"Could not update quantity for this product.",severity:"error"}),console.error(n);return}let r=t?.createQuoteRequest?.products;r&&(i(r),a({open:!0,message:"Successfully updated your quote.",severity:"success"}))}}),p=c(()=>{});return(0,n.BX)(O.l,{onSubmit:p,children:[(0,n.tZ)(L.d,{control:l,submit:p,initialWait:0}),(0,n.tZ)("input",{type:"hidden",...s("input.id")}),(0,n.tZ)(v.Z,{sx:t=>({display:"grid",alignItems:"center",gridTemplateRows:`repeat(${e?.length}, auto)`,gridAutoColumns:`${P.w[o]} auto 1fr`,gap:"1rem","& .quoteTableHeader":{display:"none"},width:"100%",[t.breakpoints.up("sm")]:{gridAutoColumns:`${P.w[o]} 1fr auto auto`}}),children:e?.filter(e=>null!==e).map((i,a)=>n.tZ(H,{product:i,index:a,isLastRow:a===e.length-1,control:l,isSubmitting:u,setValue:d,readOnly:t,register:s,size:o},i.sku))})]})};var Y=i(32145),G=i(58060),J=i(88313);let K=({children:e})=>{let t=(0,d.useRouter)();return(0,n.tZ)(Y.j,{sx:e=>({mt:{md:e.spacings.md}}),title:(0,n.tZ)(f.cC,{id:"Your quote is empty"}),icon:(0,n.tZ)(J.Z,{sx:{fontSize:G.J7.xxl}}),button:(0,n.tZ)(F.Z,{onClick:()=>t.back(),variant:"pill",color:"secondary",size:"large",children:(0,n.tZ)(f.cC,{id:"Continue shopping"})}),children:e??(0,n.tZ)(f.cC,{id:"Discover our collection and add items to your quote!"})})},ee=({products:e,readOnly:t,setProducts:i,setMessage:a,quote:r})=>(0,n.BX)(v.Z,{sx:{display:"flex",flexDirection:"column",gap:"1rem"},children:[e&&0===e.length&&(0,n.tZ)(K,{}),e&&e.length>0&&(0,n.tZ)(v.Z,{sx:[e=>({padding:`${e.spacings.sm} ${e.spacings.sm}`,border:`1px ${e.palette.divider} solid`,...(0,N.E)("borderRadius",2*e.shape.borderRadius,3*e.shape.borderRadius,e.breakpoints.values)})],children:(0,n.tZ)(B.S,{sx:{"& .SectionHeader-root":{mt:0}},labelLeft:(0,n.tZ)(f.cC,{id:"Quote items"}),variantLeft:"h6",children:(0,n.tZ)(U,{products:e,readOnly:t,setProducts:i,setMessage:a,quote:r})})})]}),et=e=>{let{quote:t}=e,i=(0,d.useRouter)(),a=(0,m.IB)(u,{defaultValues:{input:{contactImmediately:!1,dateSubmitted:(0,S.WU)(new Date,"yyyy-MM-dd kk:mm:ss"),furtherComments:"",id:t?.id}},onComplete:({data:e})=>
1{if(e?.submitQuoteRequest){let e=(0,r.po)();(0,r.f8)(),i.push({pathname:"/quote/thanks",query:{quoteId:e}})}}},{errorPolicy:"all"}),{control:o,error:l,formState:{isSubmitting:s},handleSubmit:x}=a;return(0,h.y)({form:a,step:1,submit:x(()=>{}),key:"QuoteCheckout"}),(0,n.BX)(p.h,{children:[(0,n.tZ)(g.Z,{variant:"h2",component:"h1",children:(0,n.tZ)(f.cC,{id:"Submit a quote request"})}),(0,n.BX)(y.Z,{maxWidth:"lg",disableGutters:!0,sx:[e=>({display:"flex",flexDirection:"column",gap:e.spacings.xs,[e.breakpoints.up("mdPlus")]:{display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateAreas:'"content sidebar"'},[e.breakpoints.up("lg")]:{gridTemplateColumns:"auto 500px",gap:e.spacings.sm}})],children:[(0,n.tZ)(w,{control:o}),(0,n.tZ)(D,{})]}),(0,n.tZ)(y.Z,{maxWidth:"sm",disableGutters:!0,sx:{marginInlineStart:"0"},children:(0,n.tZ)(ee,{...e,readOnly:!0})}),(0,n.tZ)("div",{children:(0,n.tZ)(b.Z,{loading:s,variant:"contained",color:"secondary",onClick:x(()=>{}),children:(0,n.tZ)(f.cC,{id:"Send quote request"})})}),(0,n.tZ)(c.$I,{error:l})]})};var ei=i(63704),en=i(89782);let ea=({products:e,setProducts:t,setMessage:i,quote:a})=>{let r=(0,d.useRouter)();a?.id||r.push("/quote");let o=new Date(a?.date_submitted??Date.now()).toLocaleString("default",{day:"2-digit",month:"2-digit",year:"numeric"}),l=(0,q.k)(R.h),s=l.data?.customer,u=k.find(e=>e.id===a?.quote_use)?.label,c=C.find(e=>e.id===a?.preferred_contact_method)?.label;return(0,n.tZ)(p.h,{children:(0,n.BX)(v.Z,{sx:{display:"flex",flexDirection:"column",gap:"1em"},children:[(0,n.tZ)(g.Z,{variant:"h2",children:(0,n.tZ)(f.cC,{id:"Thank you for requesting a quote."})}),(0,n.tZ)(g.Z,{variant:"body1",children:(0,n.tZ)(f.cC,{id:"A copy of your request has been sent to your email address. To ensure you continue to receive emails from Labconco, please add labconco.com to your Safe Emails (Safe Senders) List in your address book."})}),(0,n.BX)($,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"1rem"},children:[(0,n.tZ)(g.Z,{variant:"h3",children:(0,n.tZ)(f.cC,{id:"Before you go..."})}),(0,n.tZ)(g.Z,{variant:"body1",children:(0,n.tZ)(f.cC,{id:"We'd love your feedback on your website experience, good or bad. Please fill out our brief survey."})}),(0,n.tZ)(F.Z,{variant:"contained",color:"primary",href:"https://www.surveymonkey.com/r/LabconcoWeb",startIcon:(0,n.tZ)(en.Z,{}),children:(0,n.tZ)(f.cC,{id:"Take the website feedback survey"})})]}),(0,n.tZ)(g.Z,{variant:"h3",children:(0,n.tZ)(f.cC,{id:`Request #${a?.entity_id} on ${o}`})}),(0,n.BX)(v.Z,{sx:e=>({display:"flex",flexDirection:"column",width:"100%",gap:"1em",[e.breakpoints.up("md")]:{flexDirection:"row"}}),children:[(0,n.tZ)(_,{customer:s,title:"Contact"}),(0,n.BX)($,{title:"Additional Information",sx:{flex:1},children:[(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",component:"span",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Preferred Contact Method: "})}),c]}),(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",component:"span",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Quote Use: "})}),u]}),(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",component:"span",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Contact Immediately: "})}),a?.contact_immediately?"Yes":"No"]}),a?.further_comments&&(0,n.BX)(g.Z,{variant:"body1",children:[(0,n.tZ)(g.Z,{variant:"body1",component:"span",sx:{fontWeight:"bold"},children:(0,n.tZ)(f.cC,{id:"Further Comments: "})}),a?.further_comments]})]})]}),e&&e?.length>0&&(0,n.tZ)(v.Z,{sx:[e=>({padding:`${e.spacings.sm} ${e.spacings.sm}`,border:`1px ${e.palette.divider} solid`,...(0,N.E)("borderRadius",2*e.shape.borderRadius,3*e.shape.borderRadius,e.breakpoints.values)})],children:(0,n.tZ)(B.S,{sx:{"& .SectionHeader-root":{mt:0}},labelLeft:(0,n.tZ)(f.cC,{id:"Quote items"}),variantLeft:"h6",children:(0,n.tZ)(U,{products:e,readOnly:!0,setProducts:t,setMessage:i,quote:a})})})]})})};var er=i(15893);let eo=({activeStep:e,products:t,setMessage:i,setProducts:u})=>{let c=(0,d.useRouter)(),p=(0,o.x)(),m=(0,r.po)(),[h,f]=(0,s.use
1State)(!1),{data:b,refetch:g,loading:y}=(0,l.a)(a,{variables:{id:m},skip:!m,fetchPolicy:"no-cache",onCompleted:e=>{u(e.getQuoteRequest?.products??[])},onError:async({graphQLErrors:e})=>{if(e.find(e=>"Quote Request does not exist"===e.message)){let{data:e}=await p.query({query:ei.g,fetchPolicy:"network-only"});e?.customerToken?.token?(console.log("Quote: deleting cookie"),(0,r.f8)()):f(!0)}}});(0,s.useEffect)(()=>{c.events.on("routeChangeComplete",e=>{h&&e.startsWith("/quote")&&g()})},[c,g,h]);let x={products:t,setProducts:u,setMessage:i,quote:b?.getQuoteRequest,activeStep:e};if(!m)return(0,n.tZ)(K,{});if(h&&c.push("/account/signin"),y)return(0,n.tZ)(er.Z,{});switch(e){case 1:return(0,n.tZ)(ee,{...x});case 2:return(0,n.tZ)(et,{...x});case 3:return(0,n.tZ)(ea,{...x});default:return null}};var el=eo},46110:function(e,t,i){i.d(t,{f:function(){return h}});var n=i(35944),a=i(34466),r=i(1875),o=i(4754);i(67294);var l=i(58389),d=i(87506),s=i(54988),u=i(12475);let c=e=>{let{asLabel:t,...i}=e;return e.asLabel?(0,n.tZ)(a.Z,{component:"label",sx:{cursor:"pointer"},...i}):void 0!==i.onClick?(0,n.tZ)(u.p,{component:"div",...i}):(0,n.tZ)(a.Z,{...i})},{withState:p,selectors:m}=(0,l.AY)("ActionCard",["root","image","title","action","details","price","after","secondaryAction","reset","end"]);function h(e){let{title:t,image:i,action:l,details:u,price:m,after:h,secondaryAction:f,sx:b=[],onClick:g,value:y,selected:x=!1,reset:Z,disabled:v=!1,size:k="medium",color:C="primary",variant:w="outlined",layout:S="list",error:q=!1,uiSelected:R=!1,skipRootClass:N=!1}=e,B=p({disabled:v,selected:x,image:!!i,variant:w,size:k,color:C,layout:S,error:q,uiSelected:R});return(0,n.BX)(c,{asLabel:"radio"===w,className:N?"":B.root,onClick:g&&(e=>g?.(e,y)),disabled:v,uiSelected:R,color:C,sx:[e=>({...(0,s.E)("borderRadius",1.5*e.shape.borderRadius,3*e.shape.borderRadius,e.breakpoints.values),"&.sizeSmall":{px:(0,d.v)(8,12),py:(0,d.v)(4,6),display:"flex",typography:"body2"},"&.sizeMedium":{px:(0,d.v)(10,14),py:(0,d.v)(10,12),typography:"body2",display:"block"},"&.sizeLarge":{px:(0,d.v)(12,16),py:(0,d.v)(12,14),display:"block"},"&.variantDefault":{position:"relative","&::after":{content:'""',position:"absolute",width:"100%",left:0,bottom:"-1px",borderBottom:`1px solid ${e.palette.divider}`,display:"block"},"&.selected":{backgroundColor:"light"===e.palette.mode?(0,r.Fq)(e.palette[C].main,e.palette.action.hoverOpacity):(0,r.$n)(e.palette.background.default,e.palette.action.hoverOpacity)},"&.error":{backgroundColor:`${(0,r.Fq)(e.palette.error.main,e.palette.action.hoverOpacity)}`},"&.sizeSmall":{mt:{xs:"2px",sm:"3px",md:"5px"},mb:{xs:"3px",sm:"4px",md:"6px"},"&::after":{mb:{xs:"-2px",sm:"-3px",md:"-5px"}}},"&.sizeMedium":{mt:{xs:"4px",sm:"5px",md:"6px"},mb:{xs:"5px",sm:"6px",md:"7px"},"&::after":{mb:{xs:"-4px",sm:"-5px",md:"-6px"}}},"&.sizeLarge":{mt:{xs:"5px",sm:"7px",md:"8px"},mb:{xs:"6px",sm:"8px",md:"9px"},"&::after":{mb:{xs:"-5px",sm:"-7px",md:"-8px"}}}},"&.variantOutlined":{backgroundColor:e.palette.background.paper,boxShadow:`inset 0 0 0 1px ${e.palette.divider}`,"&:not(:last-of-type)":{marginBottom:"-1px"},"&.layoutList":{borderRadius:0,"&:first-of-type":{...(0,s.E)("borderTopLeftRadius",3*e.shape.borderRadius,4*e.shape.borderRadius,e.breakpoints.values),...(0,s.E)("borderTopRightRadius",3*e.shape.borderRadius,4*e.shape.borderRadius,e.breakpoints.values)},"&:last-of-type":{...(0,s.E)("borderBottomLeftRadius",3*e.shape.borderRadius,4*e.shape.borderRadius,e.breakpoints.values),...(0,s.E)("borderBottomRightRadius",3*e.shape.borderRadius,4*e.shape.borderRadius,e.breakpoints.values)}},"&.selected":{borderColor:"transparent",boxShadow:`inset 0 0 0 2px ${e.palette[C].main}`},"&.selected:focus":{borderColor:"transparent",boxShadow:`inset 0 0 0 2px ${e.palette[C].main}, 0 0 0 4px ${(0,r.Fq)(e.palette[C].main,e.palette.action.hoverOpacity)}`},"&:focus":{boxShadow:`inset 0 0 0 1px ${e.palette.divider},0 0 0 4px ${(0,r.Fq)(e.palette[C].main,e.palette.action.hoverOpacity)}`},"&.error":{boxShadow:`0 0 0 2px ${e.palette.error.main}`}},"&.variantRadio":{position:"relative",boxShadow:"none",padding:"0","&.error":{color:`${(0,r.Fq)(e.palette.error.main,e.palette.action.hoverOpacity)}`},"&.disabled":{background:"transparent",opacity:1,color:e.palette.customColors.gray5},"&.sizeSmall":{justifyContent:"flex-start"}}
1,"&.disabled":{background:e.palette.action.disabledBackground,opacity:e.palette.action.disabledOpacity,color:e.palette.action.disabled}}),...Array.isArray(b)?b:[b]],children:[(0,n.BX)(a.Z,{sx:{display:"flex",flexDirection:"row",width:"100%",justifyContent:"space-between",alignContent:"stretch",alignItems:"center"},children:[(0,n.BX)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignContent:"stretch"},children:[i&&(0,n.tZ)(a.Z,{className:B.image,sx:{display:"flex",pr:"15px",alignSelf:"center"},children:i}),(0,n.BX)(a.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[t&&(0,n.BX)(a.Z,{className:B.title,sx:{"&.sizeSmall":{typography:"body2"},"&.sizeMedium":{typography:"body1"},"&.sizeLarge":{typography:"h6"},display:"flex",flexDirection:"row",alignItems:"center",gap:".5em"},children:["radio"===w&&(0,n.tZ)(o.Z,{type:"radio",checked:x,onChange:()=>{},disabled:v,sx:e=>({padding:"0",color:v?e.palette.customColors.gray7:e.palette.customColors.blue5})}),t]}),u&&(0,n.tZ)(a.Z,{className:B.details,sx:{color:"text.secondary"},children:u}),f&&(0,n.tZ)(a.Z,{className:B.secondaryAction,children:f})]})]}),(0,n.BX)(a.Z,{className:B.end,sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-end"},children:[l&&(0,n.tZ)(a.Z,{className:B.action,sx:e=>({marginBlockEnd:e.spacings.sm,marginInlineEnd:"10px",color:e.palette[C].main}),children:x?Z:l}),m&&!v&&(0,n.tZ)(a.Z,{className:B.price,sx:{textAlign:"right",typography:"body1","&.sizeMedium":{typographty:"subtitle1"},"&.sizeLarge":{typography:"h6"}},children:m})]})]}),h&&(0,n.tZ)(a.Z,{className:B.after,children:h})]})}},12475:function(e,t,i){i.d(t,{p:function(){return l}});var n=i(35944);i(67294);var a=i(97198),r=i(58060),o={src:"/_next/static/media/arrow_down.0c1dddbf.svg",height:72,width:72,blurWidth:0,blurHeight:0};let l=e=>{let{children:t,component:i,sx:l,uiSelected:d,color:s,className:u,...c}=e;return(0,n.BX)(a.Z,{component:i,variant:"tab",color:d?"lbcBlue":"light",sx:[e=>({display:"flex",justifyContent:"center",gap:"0.625rem",[e.breakpoints.up("xs")]:{padding:`0 ${e.page.horizontal} 0`},[e.breakpoints.up("md")]:{width:"100%"}}),...Array.isArray(l)?l:[l]],className:`${u} ${d?"selected":""}`,...c,children:[t,d&&(0,n.tZ)(r.ez,{src:o,sx:{strokeWidth:"3"}})]})}},52694:function(e,t,i){i.d(t,{H:function(){return a},c:function(){return n}});let n=e=>({minWidth:"100%","& .MuiInputBase-root":{padding:"8px 16px",borderRadius:"10px",borderWidth:"2px"},"& textarea":{padding:0},"& .MuiInputLabel-asterisk":{color:e.palette.secondary.main},"& .MuiFormLabel-root":{position:"relative",display:"flex",margin:0,padding:0,transform:"translate(0)",justifyContent:"flex-start",marginBlockEnd:"0.375rem",color:e.palette.lbcBlue.main,fontWeight:"800",fontSize:"0.875rem",textTransform:"uppercase","&.Mui-error":{color:e.palette.lbcBlue.main}},"& fieldset":{top:0},"& .Mui-error fieldset":{background:e.palette.error.light},"& .Mui-disabled fieldset":{background:e.palette.background.disabled,color:e.palette.text.disabled},"& .Mui-disabled input, & .Mui-disabled div, & .Mui-error input, & .Mui-error div":{zIndex:10},"& .Mui-error input":{zIndex:"10",color:e.palette.error.main},"& legend":{display:"none"}}),a=e=>({color:e.palette.text.primary,padding:"0.375rem 0",minHeight:"1.45rem","&::placeholder":{color:e.palette.input.placeholder}})},17872:function(e,t,i){i.d(t,{a:function(){return r}});var n=i(55472),a=i(67294);let r=e=>{let t=(0,n.Z)(),i=(0,a.useMemo)(()=>e(t).replace(/^@media( ?)/m,""),[t,e]),[r,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.matchMedia(i);function t(e){o(e.matches)}return o(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[i]),r}},85590:function(e,t,i){function n({src:e,width:t,quality:i}){if(e.endsWith(".svg"))return e;if(e.includes("images.ctfassets.net")||e.includes("downloads.ctfassets.net")){let n=new URL(e);return n.searchParams.set("w",String(t)),n.searchParams.set("q",String(i||75)),n.searchParams.set("fm","webp"),n.href}return e}i.r(t),i.d(t,{default:function(){return n}})},33227:function(e,t,i){i.d(t,{h:function(){return a},s:function(){return n}});let n="/images/placeholder.png",a=e=>{try{if(!e||e===n||e.toLowerCase().includes("placeholder"))return n;return e}catch(t){return console.error("replacePlaceholder error",{url:e,message:t?.message??String(t)}),e||""}}},43523:function(e,t,i){i.d(t,{D:function(){return n}});let n=e=>e?e.startsWith("//")?`https:${e}`:e.startsWith("https:")||e.startsWith("http://")?e:`https://${e}`:""},21997:function(e,t,i){i.d(t,{Sy:function(){return r}});var n=i(35944),a=i(46110);let r=e=>(0,n.tZ)(a.f,{...e})},11052:function(e,t,i){i.d(t,{Sy:function(){return o}});var n=i(35944),a=i(34466),r=i(52694);i(67294);let o=e=>{let{Prev:t,label:i,name:o,control:l,code:d,sx:s,required:u,...c}=e;return(0,n.tZ)(a.Z,{sx:s,children:(0,n.tZ)(t,{sx:e=>(0,r.c)(e),...c,name:o,control:l,variant:"outlined",InputLabelProps:{shrink:!0},inputProps:{sx:e=>(0,r.H)(e)},label:i,required:u,id:`${d}-${o}`})})}},92298:function(e,t,i){i.d(t,{Sy:function(){return o}});var n=i(35944),a=i(34466),r=i(52694);i(67294);let o=e=>{let{Prev:t,label:i,name:o,control:l,code:d,sx:s,required:u,...c}=e;return(0,n.tZ)(a.Z,{sx:s,children:(0,n.tZ)(t,{sx:e=>(0,r.c)(e),...c,name:o,control:l,variant:"outlined",InputLabelProps:{shrink:!0},inputProps:{sx:e=>(0,r.H)(e)},label:i,required:u,id:`${d}-${o}`})})}},97308:function(e,t,i){i.d(t,{Sy:function(){return o}});var n=i(35944),a=i(34466),r=i(52694);i(67294);let o=e=>{let{Prev:t,label:i,name:o,control:l,code:d,sx:s,required:u,...c}=e;return(0,n.tZ)(a.Z,{sx:s,children:(0,n.tZ)(t,{sx:e=>(0,r.c)(e),...c,name:o,control:l,variant:"outlined",InputLabelProps:{shrink:!0},inputProps:{sx:e=>(0,r.H)(e)},label:i,required:u,id:`${d}-${o}`})})}}
1,77146:function(e,t,i){i.d(t,{Sy:function(){return o}});var n=i(35944),a=i(34466),r=i(52694);i(67294);let o=e=>{let{Prev:t,label:i,name:o,control:l,code:d,sx:s,required:u,...c}=e;return(0,n.tZ)(a.Z,{sx:s,children:(0,n.tZ)(t,{sx:e=>(0,r.c)(e),...c,name:o,control:l,variant:"outlined",InputLabelProps:{shrink:!0},inputProps:{sx:e=>(0,r.H)(e)},label:i,required:u,id:`${d}-${o}`})})}}}]);
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.