1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2e44d4cd-0a89-4abc-b69c-ddbf54cb9e38",e._sentryDebugIdIdentifier="sentry-dbid-2e44d4cd-0a89-4abc-b69c-ddbf54cb9e38")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7378],{22073:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/checkout/enquiry",function(){return n(45774)}])},45774:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return S},default:function(){return M}});var i=n(85893),o=n(67294),a=n(45697),r=n.n(a),l=n(64593),s=n(44039),d=n(95961),c=n(80709),p=n(44619),u=n(186),m=n(7861),x=n(76552),h=n(28669),f=n(11163),g=n(35374),b=n(96340),v=n(39762),y=n(16583),w=n(36971),j=n(1804),N=n(30975),I=n(18087),k=n(91243),Z=n(59448),_=n(26075),D=n(74992),q=n(83599),G=n(72811),A=n(23772),z=n(88536),T=n(22665),C=n(23824);function L(){let e=(0,w._)(["\n query productImage($productId: ID!, $shopId: ID!) {\n product(productId: $productId, shopId: $shopId) {\n media {\n URLs {\n medium\n }\n }\n }\n }\n "]);return L=function(){return e},e}let R=(0,u.default)(N.x).withConfig({componentId:"sc-4e06a890-0"})([".main-box{display:flex;align-self:center;box-sizing:border-box;max-width:100%;background-color:#ffffff;color:#2e74ff;width:1120px;justify-content:center;padding:40px;border-radius:40px;color:#000000;box-shadow:0px 3px 6px #00000029;font-family:Poppins;margin:24px;}.customer-card{justify-content:space-between;display:flex;flex-direction:row !important;}.customer-details-card{margin-right:20px;margin-left:20px;display:flex;flex-direction:column !important;}.product-image{object-fit:cover;width:150px;height:150px;border-radius:30px;}.listing-button{width:120px !important;font-size:14px !important;padding:0px !important;-webkit-transition:background-color 200ms linear;-ms-transition:background-color 200ms linear;}.listing-button:hover{background-color:#2e74ff !important;color:white !important;-webkit-transition:background-color 200ms linear;-ms-transition:background-color 200ms linear;}.heading{font-size:42px !important;text-align:center;line-height:34px !important;}.sub-heading{text-align:center;color:grey;marign-bottom:0px;}.card-heading{font-size:24px !important;line-height:1 !important;font-weight:700 !important;margin-bottom:8px !important;}.info-text{font-size:16px !important;color:#9899ad !important;margin-bottom:4px !important;}.contact-text{font-size:16px;margin-bottom:4px;color:black;font-weight:600;}.contact-text:hover{color:#2e86ff;}.contactLogo:hover{color:#2e86ff;}.name-box{margin:0 20px 20px 0px;padding-left:40px;}hr.solid{border-top:1px solid #bbb;}.box{margin-top:10px;}.price-per-box{line-height:1.3;}.vendor-info{max-width:60%;}@media only screen and (max-width:768px){.sub-heading{font-size:3.5vw;}}@media only screen and (max-width:630px){.customer-card{flex-direction:column !important;}.customer-details-card{white-space:nowrap;}.product-image{width:100px;}.vendor-info{max-width:100%;}}@media only screen and (max-width:479px){.main-box{padding:20px;}.heading{font-size:10vw !important;}.card-heading{font-size:4vw !important;}.info-text{font-size:12px !important;line-height:1.6 !important;}.contact-text{font-size:12px !important;line-height:1.6 !important;}}"]),E=(0,u.default)(N.x).withConfig({componentId:"sc-4e06a890-1"})(["transform:scale(1);transition:transform 200ms ease-in-out;&:hover{transform:scale(1.05);transition:transform 200ms ease-in-out;}"]);var B=function(e){var t;let{enquiry:n}=e,{_id:a}=(0,b.Z)(),r=(0,_.x)(),[l]=(0,v.Z)(),{thankyou:{showNextSteps:s}}=(0,z.Z)(),[d,c]=(0,o.useState)([]),p=(0,o.useMemo)(()=>{var e,t,i,o,a,r;let l="",s=null===(t=n.fulfillmentGroups[0].selectedFulfillmentOption)||void 0===t?void 0:null===(e=t.fulfillmentMethod)||void 0===e?void 0:e.name;if(["LenderDelivery","DeliveryPickup","PickupDelivery"].includes(s)){let e="PickupDelivery"===s?"Collecting from":"Delivering to";l+="".concat(e,": ").concat(n.fulfillmentGroups[0].data.shippingAddress.fullName," at ").concat(n.fulfillmentGroups[0].data.shippingAddress.address1,", ").concat(n.fulfillmentGroups[0].data.shippingAddress.postal,", ").concat(null===(a=n.fulfillmentGroups[0].data)||void 0===a?void 0:a.shippingAddress.city,", ").concat(n.fulfillmentGroups[0].data.shippingAddress.region)}return(null===(o=n.fulfillmentGroups[0].selectedFulfillmentOption)||void 0===o?void 0:null===(i=o.fulfillmentMethod)||void 0===i?void 0:i.name)=="Setup"&&(l+="Delivery and Setup to: ".concat(n.fulfillmentGroups[0].data.shippingAddress.fullName," at ").concat(n.fulfillmentGroups[0].data.shippingAddress.address1,", ").concat(n.fulfillmentGroups[0].data.shippingAddress.postal,", ").concat(null===(r=n.fulfillmentGroups[0].data)||void 0===r?void 0:r.shippingAddress.city,", ").concat(n.fulfillmentGroups[0].data.shippingAddress.region)),l},[n,n.fulfillmentGroups]),u=[];u=(0,G.Z)(n.fulfillmentGroups[0].items.nodes),u=(0,q.Z)(u);let m=[];for(let e=0;e<n.fulfillmentGroups[0].items.nodes.length;e++)n.fulfillmentGroups[0].items.nodes[e].variantTitle.includes("Bond")&&m.push(n.fulfillmentGroups[0].items.nodes[e].subtotal.amount);(0,o.useEffect)(()=>{x()},[n]);let x=async()=>{let e=[];for(let t=0;t<u.length;
1t++)u[t]&&u[t].productConfiguration&&u[t].productConfiguration.productId&&(e[t]=await h(u[t].productConfiguration.productId));c(e)},h=async e=>{var t,n;let{data:i}=await r.query({query:(0,j.ZP)(L()),variables:{shopId:a,productId:e}});return null===(n=i.product.media)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.URLs.medium},f=u.reduce((e,t)=>(e[t.lendingDetails.lenderId]=e[t.lendingDetails.lenderId]||[],e[t.lendingDetails.lenderId].push(t),e),Object.create(null)),g=null===(t=u[0])||void 0===t?void 0:t.lendingDetails;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R,{children:(0,i.jsxs)(N.x,{className:"main-box",children:[(0,i.jsxs)(N.x,{style:{marginTop:"30px",alignItems:"center"},children:[(0,i.jsx)("h1",{className:"heading",children:"Thank you for your Enquiry!"}),(0,i.jsx)(N.x,{width:"750px",className:"sub-heading",children:u.length>0?(0,i.jsxs)(i.Fragment,{children:[p,s&&(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,i.jsx)("h2",{className:"text-black",children:"What's Next:"}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center w-full",children:[(0,i.jsx)("p",{className:"rounded-full text-white bg-gradient-to-b from-[#2e74ff] to-[#7464da] text-xl px-[11px]",children:"1"}),(0,i.jsxs)("p",{className:"pt-4",children:["This is a booking request to ",null==g?void 0:g.lenderName,". Any hire agreement is between you and ",null==g?void 0:g.lenderName,"; Gecko is only the software provider."]}),(0,i.jsx)("p",{className:"rounded-full text-white bg-gradient-to-b from-[#7464da] to-[#b854b7] text-xl px-2",children:"2"}),(0,i.jsxs)("p",{children:[null==g?void 0:g.lenderName," can contact you by phone or email about your enquiry. For changes or cancellations, use the business contact details shown below."]})]})]}),(0,i.jsx)("hr",{className:"mb-4"})]}):(0,i.jsx)(I.x,{children:"No products found"})})]}),(0,i.jsx)(N.x,{direction:"column",width:"100%",margin:{bottom:"20px"},style:{alignItems:"center"},children:Object.keys(f).map(e=>{let t=f[e][0].lendingDetails.email.split(","),n=f[e][0].lendingDetails;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E,{style:{width:"900px"},children:(0,i.jsxs)("div",{className:"p-[22px] radius-[30px] rounded-[30px] border-gray-300 border-1 shadow-lg",children:[(0,i.jsxs)(N.x,{className:"customer-card",children:[(0,i.jsxs)(N.x,{className:"vendor-info",direction:"row",style:{marginLeft:"20px",marginBottom:"8px"},children:[(0,i.jsx)("img",{style:{objectFit:"cover",borderRadius:"30px",width:"60px",height:"60px",marginRight:"8px",marginBottom:"8px"},src:n.lenderImage?"".concat((0,D.Z)()).concat(n.lenderImage.small):"/images/placeholder.gif"}),(0,i.jsxs)(N.x,{direction:"column",children:[(0,i.jsx)(I.x,{className:"card-heading",children:n.lenderName}),(0,i.jsx)(I.x,{className:"info-texts",children:n.location})]})]}),(0,i.jsxs)(N.x,{className:"customer-details-card",children:[(0,i.jsxs)("div",{direction:"row",className:"contactLogo",children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:"20px",height:"20px",marginRight:"5px",marginTop:"2px",verticalAlign:"middle",float:"left"},className:"w-5 h-5",viewBox:"0 0 20 20",fill:"currentColor",children:(0,i.jsx)("path",{d:"M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"})}),(0,i.jsx)(k.Z,{isUrlAbsolute:"true",href:"tel:".concat(n.phone),style:{textDecoration:"none"},className:"contact-text",children:n.phone})]}),(0,i.jsx)("br",{}),t.map((e,t)=>e&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{direction:"row",className:"contactLogo",children:[(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:"20px",height:"20px",marginRight:"5px",marginTop:"2px",verticalAlign:"middle",float:"left"},viewBox:"0 0 20 20",fill:"currentColor",children:[(0,i.jsx)("path",{d:"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}),(0,i.jsx)("path",{d:"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"})]}),(0,i.jsx)(k.Z,{isUrlAbsolute:"true",href:"mailto:".concat(e),style:{textDecoration:"none"},className:"contact-text",children:e},t)]})}))]})]}),f[e].map((e,t)=>{var n;return(0,i.jsx)("div",{className:"flex flex-col w-full",children:(0,i.jsx)("div",{className:"p-[22px] mb-[20px]",children:(0,i.jsxs)(N.x,{direction:"row",style:{justifyContent:"space-between",marginLeft:"20px",marginRight:"20px"},children:[(0,i.jsxs)(N.x,{direction:"column",children:[(0,i.jsx)(I.x,{className:"card-heading",children:e.title}),(0,i.jsxs)("span",{className:"text-base",children:[null!==(n=e.make)&&void 0!==n?n:""," "]}),(0,i.jsxs)(i.Fragment,{children:[(()=>{var t,n;let o=(0,C.Zl)(e.metafields),a=(0,C.WJ)(e.metafields),r=null===(t=e.metafields.find(e=>"Date from"===e.key))||void 0===t?void 0:t.value,l=null===(n=e.metafields.find(e=>"Date to"===e.key))||void 0===n?void 0:n.value;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(I.x,{className:"info-text",children:["Start:"," ",(0,C.uc)({date:r,entry:null==o?void 0:o.start,timeZone:a})]}),(0,i.jsxs)(I.x,{className:"info-text",children:["End:"," ",(0,C.uc)({date:l,entry:null==o?void 0:o.end,timeZone:a})]})]})})(),(0,i.jsxs)(I.x,{className:"info-text",children:["Qty: ",e.rentalQuantity]})]})]}),(0,i.jsx)(N.x,{children:d[u.indexOf(e)]?(0,i.jsx)(A.Z,{width:150,height:150,src:"".concat((0,D.Z)()).concat(d[u.indexOf(e)].replace(/^a-zA-Z0-9 ]/g,"")),className:"product-image"}):(0,i.jsx)("p",{children:"Loading..."})})]})})},t)})]})}),(0,i.jsx)("hr",{style:{width:"100%",overflow:"inherit",marginBottom:"25px",marginTop:"25px"}})]})})}),(0,i.jsx)(T.Z,{businessName:null==g?void 0:g.lenderName,className:"max-w-2xl mx-auto my-4 text-left",compact:!0})]})}),(null==g?void 0:g.lenderId)&&l._id&&(0,i.jsx)("div",{className:"mt-10",children:(0,i.jsx)(Z.Z,{lendingDetails:g,userId:l._id})})]})};let F=u.default.div.withConfig({componentId:"sc-e00c2a54-0"})(["background-image:linear-gradient(rgba(75,152,242,200),rgba(186,95,168,1));min-height:100vh;padding-bottom:48px;"]),O=e=>{let{classes:t,shop:n}=e,[a,r]=function(){let{uiStore:e}=(0,g.Z)(),t=(0,b.Z)(),[n]=(0,v.Z)(),{query:i}=(0,f.useRouter)(),{loading:o,data:a}=(0,h.aM)(y.enquiryByReferenceId,{skip:!t||!t._id||!i.enquiryId||!i.token&&(!n||!n._id),variables:{id:i.enquiryId,language:e.language,shopId:t&&t._id,token:i.token||null}});return[a&&a.enquiry,o]}();return((0,o.useEffect)(()=>{let e=JSON.parse(localStorage.getItem("enquiryId"));localStorage.removeItem("orderId"),!e||r||a||m.Z.push("/checkout/enquiry/?enquiryId=".concat(e))},[r,a]),r)?(0,i.jsx)(c.Z,{shop:n,children:(0,i.jsx)(d.Z,{message:"Loading enquiry details..."})}):a?(0,i.jsx)(c.Z,{shop:n,hideGeckoBranding:!0,children:(0,i.jsxs)(F,{children:[(0,i.jsxs)(l.Z,{children:[(0,i.jsxs)("title",{children:[n&&n.name," | Thank y
1ou"]}),(0,i.jsx)("meta",{name:"description",content:n&&n.description})]}),(0,i.jsx)(B,{enquiry:a})]})}):(0,i.jsx)(x.Z,{shop:n,classes:t})};O.propTypes={classes:r().object,isLoadingEnquiry:r().bool,enquiry:r().shape({email:r().string.isRequired,referenceId:r().string.isRequired}),shop:r().shape({name:r().string.isRequired,description:r().string})};var S=!0,M=(0,p.C)()((0,s.Z)(e=>({orderThankYou:{marginBottom:e.spacing(3)},title:{marginBottom:e.spacing(3)},main:{flex:"1 1 auto",maxWidth:e.layout.mainLoginMaxWidth,minHeight:"calc(100vh - 135px)",margin:"0 auto",padding:"".concat(e.spacing(3),"px ").concat(e.spacing(3),"px 0"),[e.breakpoints.up("md")]:{padding:"".concat(e.spacing(10),"px ").concat(e.spacing(3),"px 0")},textAlign:"center",textAlign:"-webkit-center"}}),{withTheme:!0})(O))}},function(e){e.O(0,[3308,1940,638,4872,2997,1260,1810,1847,9335,9562,7781,1396,3623,6583,1914,2888,9774,179],function(){return e(e.s=22073)}),_N_E=e.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.