1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[212],{8463:(e,a,s)=>{"use strict";s.r(a),s.d(a,{__N_SSG:()=>f,default:()=>y});var r=s(7876),n=s(7328),t=s.n(n),i=s(4232),l=s(8992),o=s(3112),m=s(3810),c=s(9460),d=s(1969),g=s(7229);async function p(e){let a=await fetch("/api/partner-enquiries",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await a.json().catch(()=>null);if(!a.ok)throw Error((null==s?void 0:s.message)||"Unable to send your enquiry. Please try again later.");return(null==s?void 0:s.message)||"Thanks â your enquiry is on its way."}var x=s(9943),h=s(4649);let b={"insurance-warranty":{eyebrow:"Insurance & Warranty",title:"Better vehicle information for better decisions.",description:"Talk to Glovbox about verified service records, vehicle history and partnership opportunities for insurance and warranty products."},"finance-fleet":{eyebrow:"Finance & Fleet",title:"Clearer records across every vehicle.",description:"Talk to Glovbox about vehicle history, documented maintenance and partnership opportunities for finance and fleet operations."}},u=o.Ikc({name:o.YjP().trim().min(1,"Name is required"),organisation:o.YjP().trim().min(1,"Organisation is required"),email:o.YjP().trim().email("Please enter a valid email"),mobile:o.YjP().trim().regex(/^[0-9 ]+$/,"Please enter a valid mobile number").transform(e=>e.replace(/\s/g,"")).refine(e=>e.length>=6&&e.length<=15,{message:"Please enter a valid mobile number"}),message:o.YjP().trim().min(1,"Tell us how we can help")});function j(e){let{partnerType:a}=e,s=b[a],[n,t]=(0,i.useState)(null),[o,j]=(0,i.useState)(null),{register:f,handleSubmit:y,formState:{errors:N,isSubmitting:v}}=(0,l.mN)({resolver:(0,m.u)(u),mode:"onTouched"}),w=async e=>{t(null);try{let s=await p({partner_type:"insurance-warranty"===a?"insurance_warranty":"finance_fleet",contact_name:e.name,business_name:e.organisation,email:e.email,phone:e.mobile,message:e.message,source_page:"/partners/".concat(a)});j(s)}catch(e){t(e instanceof Error?e.message:"Unable to send your enquiry. Please try again later.")}};return(0,r.jsxs)("div",{className:"min-h-screen bg-gb-background text-gb-fg",children:[(0,r.jsx)(x.D,{}),(0,r.jsx)("main",{children:(0,r.jsx)("section",{className:"bg-[linear-gradient(180deg,#f4f8ff_0%,#ffffff_100%)] py-16 lg:py-24",children:(0,r.jsxs)(d.m,{className:"grid items-start gap-12 lg:grid-cols-[0.9fr_1.1fr] lg:gap-20",children:[(0,r.jsxs)("div",{className:"pt-2 lg:pt-8",children:[(0,r.jsxs)("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-gb-primary",children:[s.eyebrow," partnerships"]}),(0,r.jsx)("h1",{className:"font-heading mt-4 max-w-xl text-[42px] font-extrabold leading-[1.08] tracking-[-1.5px] text-gb-fg-brand sm:text-[54px]",children:s.title}),(0,r.jsx)("p",{className:"mt-6 max-w-xl text-lg leading-8 text-gb-fg-secondary",children:s.description}),(0,r.jsxs)("div",{className:"mt-8 rounded-gb-2xl border border-gb-line bg-white p-5",children:[(0,r.jsx)("p",{className:"font-semibold text-gb-fg-brand",children:"What happens next?"}),(0,r.jsx)("p",{className:"mt-2 text-sm leading-6 text-gb-fg-secondary",children:"Tell us about your organisation and what you want to achieve. The Glovbox team will review your enquiry and contact you directly."})]})]}),(0,r.jsxs)("div",{className:"rounded-[28px] border border-gb-line bg-white p-6 shadow-gb-panel sm:p-8",children:[(0,r.jsx)("h2",{className:"font-heading text-2xl font-extrabold text-gb-fg-brand",children:"Talk to our partnerships team"}),(0,r.jsx)("p",{className:"mt-2 text-sm leading-6 text-gb-fg-secondary",children:"Complete the form and we'll get back to you."}),o?(0,r.jsxs)("div",{className:"mt-8 rounded-gb-xl bg-gb-success-subtle p-6 text-center",children:[(0,r.jsx)("p",{className:"font-heading text-xl font-bold text-gb-fg-brand",children:"Enquiry sent"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gb-fg-secondary",children:o})]}):(0,r.jsxs)("form",{onSubmit:y(w),noValidate:!0,className:"mt-7 grid gap-5",children:[(0,r.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"partner-name",className:g.x,children:"Name *"}),(0,r.jsx)("input",{id:"partner-name",autoComplete:"name",className:(0,g.jb)(!!N.name),...f("name")}
1),N.name?(0,r.jsx)("p",{className:g.r1,children:N.name.message}):null]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"partner-organisation",className:g.x,children:"Organisation *"}),(0,r.jsx)("input",{id:"partner-organisation",autoComplete:"organization",className:(0,g.jb)(!!N.organisation),...f("organisation")}),N.organisation?(0,r.jsx)("p",{className:g.r1,children:N.organisation.message}):null]})]}),(0,r.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"partner-email",className:g.x,children:"Email *"}),(0,r.jsx)("input",{id:"partner-email",type:"email",autoComplete:"email",className:(0,g.jb)(!!N.email),...f("email")}),N.email?(0,r.jsx)("p",{className:g.r1,children:N.email.message}):null]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"partner-mobile",className:g.x,children:"Mobile *"}),(0,r.jsx)("input",{id:"partner-mobile",type:"tel",inputMode:"numeric",autoComplete:"tel-national",placeholder:"0400 000 000",className:(0,g.jb)(!!N.mobile),...f("mobile")}),N.mobile?(0,r.jsx)("p",{className:g.r1,children:N.mobile.message}):null]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"partner-message",className:g.x,children:"How can we help? *"}),(0,r.jsx)("textarea",{id:"partner-message",rows:6,className:"".concat((0,g.jb)(!!N.message)," min-h-[150px] resize-y"),...f("message")}),N.message?(0,r.jsx)("p",{className:g.r1,children:N.message.message}):null]}),n?(0,r.jsx)("p",{role:"alert",className:"rounded-gb-lg border border-gb-error bg-red-50 px-4 py-3 text-sm font-medium text-gb-error",children:n}):null,(0,r.jsx)(c.$,{type:"submit",variant:"primary",size:"lg",shape:"lg",fullWidth:!0,loading:v,loadingLabel:"Sendingâ¦",children:"Send partnership enquiry"})]})]})]})})}),(0,r.jsx)(h.D,{showPartners:!0})]})}var f=!0;function y(e){let{partnerType:a}=e,s=b[a];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t(),{children:[(0,r.jsx)("title",{children:"".concat(s.eyebrow," Partnerships | Glovbox")}),(0,r.jsx)("meta",{name:"description",content:s.description})]}),(0,r.jsx)(j,{partnerType:a})]})}},9228:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/partners/[partner]",function(){return s(8463)}])}},e=>{var a=a=>e(e.s=a);e.O(0,[3327,4877,9943,636,6593,8792],()=>a(9228)),_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.