1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7670],{344:(e,t,s)=>{"use strict";s.d(t,{v:()=>o});var a=s(7876),r=s(4232),l=s(5790),n=s(897);function o(e){let{className:t}=e,s=(0,r.useRef)(null);return((0,r.useEffect)(()=>{let e=s.current;if(e)return(0,l.Ky)(e)},[]),(0,l.LK)())?(0,a.jsx)("div",{ref:s,className:(0,n.cx)("flex w-full justify-center empty:hidden",t)}):null}},898:(e,t,s)=>{"use strict";s.d(t,{m:()=>f});var a=s(7876);s(4232);var r=s(6968),l=s.n(r),n=s(9460),o=s(1969),i=s(897),c=s(686),d=s(8581);let x={name:"2019 TOYOTA RAV4 CRUISER",detail:"Compliance date: 11/2019 ⢠AWD Hybrid",stats:[{label:"Service Documents",value:"14"},{label:"Logbook completeness",value:"14/16"},{label:"Data Depth",value:"7"}]},g=[{Icon:c.Zu,tint:"bg-[#eff6ff] text-gb-primary",label:"FINANCE OWING STATUS",status:"Pass"},{Icon:c.ui,tint:"bg-[#f5f3ff] text-[#7c3aed]",label:"REGISTRATION CHECK",status:"Registered"},{Icon:c.AN,tint:"bg-[#fffbeb] text-gb-warning",label:"WRITTEN OFF STATUS",status:"Pass"},{Icon:c.eq,tint:"bg-[#fef2f2] text-gb-error",label:"STOLEN STATUS",status:"Pass"}],h=[{kilometres:"71,250 km",service:"70k Logbook Service",date:"12 Aug 2026",workshop:"Mercedes-Benz Service"},{kilometres:"65,110 km",service:"65k Interval Service",date:"15 Mar 2026",workshop:"Kwik Fit"},{kilometres:"54,800 km",service:"55k Factory Service",date:"02 Dec 2025",workshop:"Halfords Autocentre"}];function u(){return(0,a.jsxs)("div",{className:"rounded-[24px] border border-[#e2e8f0] bg-white px-4 pb-8 pt-5 shadow-[0_8px_12px_rgba(15,23,42,0.03)] sm:px-5 sm:pb-10 sm:pt-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 roun
1ded-2xl border border-[#a7f3d0] bg-emerald-50/30 p-4",children:[(0,a.jsx)("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-[#d1fae5] text-sm font-extrabold text-[#047857]",children:"3"}),(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsx)("strong",{className:"block text-sm font-bold text-[#0f172a]",children:"Logbook Authenticated"}),(0,a.jsx)("span",{className:"mt-0.5 block text-xs leading-5 text-[#475569]",children:"All maintenance visits are digitally verified"})]})]}),(0,a.jsx)("h3",{className:"mt-5 font-heading text-lg font-bold text-[#0f172a]",children:"Digital Logbook"}),(0,a.jsx)("div",{className:"mt-4",children:h.map((e,t)=>(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsxs)("div",{className:"relative flex w-4 shrink-0 flex-col items-center",children:[(0,a.jsx)("span",{className:"w-px bg-[#cbd5e1] ".concat(0===t?"h-[18px]":"h-[14px]")}),(0,a.jsx)("span",{className:"flex h-3 w-3 shrink-0 items-center justify-center rounded-full border-2 border-[#2e62ff] bg-white",children:(0,a.jsx)("span",{className:"h-[5px] w-[5px] rounded-full bg-[#2e62ff]"})}),t<h.length-1&&(0,a.jsx)("span",{className:"min-h-[92px] w-px flex-1 bg-[#cbd5e1]"}),t===h.length-1&&(0,a.jsx)("span",{className:"h-8 w-px bg-gradient-to-b from-[#cbd5e1] to-transparent"})]}),(0,a.jsxs)("article",{className:"mb-3 min-w-0 flex-1 rounded-xl bg-white p-3.5 shadow-[0_1px_2px_rgba(15,23,42,0.03),0_4px_6px_rgba(15,23,42,0.08)]",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("strong",{className:"text-base font-extrabold text-[#2e62ff]",children:e.kilometres}),(0,a.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-[#d1fae5] px-2 py-1 text-[11px] font-semibold text-[#047857] sm:px-2.5 sm:py-1.5 sm:text-xs",children:["Verified",(0,a.jsx)(l(),{src:0===t?"/seller/service-history-verified.svg":"/seller/service-history-verified-small.svg",alt:"",width:12,height:12,className:"h-3 w-3"})]})]}),(0,a.jsxs)("div",{className:"mt-2 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between sm:gap-3",children:[(0,a.jsx)("strong",{className:"min-w-0 text-sm font-bold text-[#0f172a]",children:e.service}),(0,a.jsx)("span",{className:"shrink-0 text-xs text-[#94a3b8]",children:e.date})]}),(0,a.jsxs)("div",{className:"mt-2 flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-[13px] text-[#64748b]",children:e.workshop}),(0,a.jsx)("span",{className:"rounded-md bg-[#2e62ff] px-2.5 py-1 text-[10px] font-bold text-white",children:"VIEW"})]})]})]},e.kilometres))})]})}function m(e){let{eyebrow:t,className:s,children:r}=e;return(0,a.jsxs)("div",{className:(0,i.cx)("flex flex-col gap-4 roun
1ded-gb-3xl border border-gb-line bg-gb-surface-secondary p-5",s),children:[(0,a.jsx)("p",{className:"font-heading text-gb-caption font-bold uppercase text-gb-primary",children:t}),r]})}function f(e){let{eyebrow:t="Inside the report",heading:s="What's inside your Glovbox report?",description:r="A comprehensive, beautiful layout designed to give buyers absolute clarity.",showSampleLink:c=!0}=e;return(0,a.jsxs)("section",{"aria-labelledby":"report-preview-heading",className:"w-full bg-gb-background pb-14 pt-14 lg:pb-6 lg:pt-[55px]",children:[(0,a.jsx)(o.m,{wideMobileGutter:!0,children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-5 pb-10 lg:pb-[55px]",children:[(0,a.jsxs)("span",{className:"font-body inline-flex items-center gap-1.5 rounded-gb-full bg-gb-surface px-3 py-[5px] text-gb-overline font-semibold uppercase tracking-wide text-gb-success-strong",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"h-[5px] w-[5px] rounded-gb-full bg-gb-success"}),t]}),(0,a.jsx)("h2",{id:"report-preview-heading",className:"font-heading max-w-[680px] text-center text-[28px] font-extrabold leading-[34px] text-gb-fg lg:text-[62px] lg:leading-[65px]",children:s}),(0,a.jsx)("p",{className:"font-body max-w-[500px] text-center text-gb-body-small font-normal leading-[1.65] text-gb-fg lg:text-gb-body",children:r}),c&&d.kX&&(0,a.jsx)(n.$,{href:d.kX,target:"_blank",variant:"primary",size:"lg",shape:"md",children:"View a sample report"})]})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-[668px] gap-5 px-gb-gutter-md lg:max-w-[1372px] lg:grid-cols-2 lg:items-start lg:gap-6 lg:px-6",children:[(0,a.jsxs)(m,{eyebrow:"Proof of service report",children:[(0,a.jsx)(l(),{src:"/seller/report-vehicle.webp",alt:"",width:1220,height:368,sizes:"(min-width: 1280px) 610px, (min-width: 1024px) 470px, 100vw",className:"h-auto w-full rounded-gb-2xl object-cover"}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"font-heading text-gb-h4 font-bold text-gb-fg",children:x.name}),(0,a.jsx)("p",{className:"font-body text-gb-caption font-normal text-gb-fg-secondary",children:x.detail})]}),(0,a.jsx)("hr",{className:"border-0 border-t border-t-gb-line"}),(0,a.jsx)("dl",{className:"flex flex-col gap-3",children:x.stats.map(e=>(0,a.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,a.jsx)("dt",{className:"font-body text-gb-body-small font-normal text-gb-fg-secondary",children:e.label}),(0,a.jsx)("dd",{className:"font-body text-gb-body-small font-bold text-gb-fg",children:e.value})]},e.label))})]}),(0,a.jsx)(m,{eyebrow:"Vehicle images",children:(0,a.jsx)(l(),{src:"/seller/report-gallery.webp",alt:"",width:1289,height:703,sizes:"(min-width: 1280px) 610px, (min-width: 1024px) 470px, 100vw",className:"h-auto w-full rounded-gb-2xl object-cover"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)(m,{eyebrow:"Valuation",children:(0,a.jsx)(l(),{src:"/seller/report-valuation.webp",alt:"",width:1220,height:822,sizes:"(min-width: 1280px) 610px, (min-width: 1024px) 470px, 100vw",className:"h-auto w-full rounded-gb-2xl object-cover"})}),(0,a.jsx)(m,{eyebrow:"PPSR report",children:(0,a.jsx)("ul",{className:"grid gap-3 md:grid-cols-2 lg:grid-cols-1 xl:grid-cols-2",children:g.map(e=>{let{Icon:t,tint:s,label:r,status:l}=e;
1return(0,a.jsxs)("li",{className:"flex items-center gap-4 rounded-gb-2xl border border-[#eceff3] bg-gb-surface px-4 py-3",children:[(0,a.jsx)("span",{className:(0,i.cx)("flex h-12 w-12 shrink-0 items-center justify-center rounded-gb-xl",s),children:(0,a.jsx)(t,{className:"h-5 w-5"})}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,a.jsx)("span",{className:"font-body text-gb-overline font-semibold uppercase tracking-[0.5px] text-[#8e9cae]",children:r}),(0,a.jsx)("span",{className:"font-body text-gb-body-compact font-bold text-[#16a34a]",children:l})]})]},r)})})})]}),(0,a.jsx)(m,{eyebrow:"Service history",children:(0,a.jsx)(u,{})})]})]})}},2552:()=>{},2874:(e,t,s)=>{"use strict";s.d(t,{S:()=>n});var a=s(7876),r=s(4250),l=s.n(r);function n(e){let{heading:t="Building your report",subtext:s="Hang tight â this usually only takes a few seconds.",phrases:r=["PPSR check","Odometer scan","Market value"]}=e;return(0,a.jsxs)("div",{className:"jsx-d4822ae38002c1f7 mx-auto flex w-full max-w-md flex-1 flex-col items-center justify-center py-16 text-center",children:[(0,a.jsxs)("div",{className:"jsx-d4822ae38002c1f7 relative h-28 w-44 overflow-hidden rounded-[2rem] border border-blue-100 bg-gradient-to-b from-blue-50 to-white shadow-xl shadow-blue-100/60",children:[(0,a.jsx)("div",{className:"jsx-d4822ae38002c1f7 absolute left-8 right-8 top-9 h-9 rounded-full border-4 border-blue-700"}),(0,a.jsx)("div",{className:"jsx-d4822ae38002c1f7 absolute left-5 top-14 h-8 w-8 rounded-full border-4 border-slate-900 bg-white"}),(0,a.jsx)("div",{className:"jsx-d4822ae38002c1f7 absolute right-5 top-14 h-8 w-8 rounded-full border-4 border-slate-900 bg-white"}),(0,a.jsx)("div",{className:"jsx-d4822ae38002c1f7 absolute inset-y-0 left-0 w-14 animate-[redFlagScan_1.45s_ease-in-out_infinite] bg-gradient-to-r from-transparent via-blue-600/25 to-transparent"}),(0,a.jsx)("div",{className:"jsx-d4822ae38002c1f7 absolute bottom-3 left-1/2 h-1 w-28 -translate-x-1/2 overflow-hidden rounded-full bg-slate-200",children:(0,a.jsx)("span",{className:"jsx-d4822ae38002c1f7 block h-full w-1/2 animate-[redFlagBar_1.45s_ease-in-out_infinite] rounded-full bg-blue-700"})})]}),(0,a.jsx)("h2",{className:"jsx-d4822ae38002c1f7 mt-8 text-3xl font-black tracking-tight text-slate-950",children:t}),(0,a.jsx)("div",{className:"jsx-d4822ae38002c1f7 mt-5 flex min-h-[2.5rem] flex-wrap items-center justify-center gap-2",children:r.map((e,t)=>(0,a.jsx)("span",{style:{animationDelay:"".concat(1.2*t,"s")},className:"jsx-d4822ae38002c1f7 animate-[redFlagWord_3.6s_ease-in-out_infinite] rounded-full bg-blue-50 px-3 py-1.5 text-sm font-black text-blue-700 opacity-0",children:e},e))}),s&&(0,a.jsx)("p",{className:"jsx-d4822ae38002c1f7 mt-3 text-base font-semibold leading-relaxed text-slate-500",children:s}),(0,a.jsx)(l(),{id:"d4822ae38002c1f7",children:"@-webkit-keyframes redFlagScan{0%,100%{-webkit-transform:translatex(-3.5rem);transform:translatex(-3.5rem)}50%{-webkit-transform:translatex(11rem);transform:translatex(11rem)}}@-moz-keyframes redFlagScan{0%,100%{-moz-transform:translatex(-3.5rem);transform:translatex(-3.5rem)}50%{-moz-transform:translatex(11rem);transform:translatex(11rem)}}@-o-keyframes redFlagScan{0%,100%{-o-transform:translatex(-3.5rem);transform:translatex(-3.5rem)}50%{-o-transform:translatex(11rem);transform:translatex(11rem)}}@keyframes redFlagScan{0%,100%{-webkit-transform:translatex(-3.5rem);-moz-transform:translatex(-3.5rem);-o-transform:translatex(-3.5rem);transform:translatex(-3.5rem)}50%{-webkit-transform:translatex(11rem);-moz-transform:translatex(11rem);-o-transform:translatex(11rem);transform:translatex(11rem)}}@-webkit-keyframes redFlagBar{0%,100%{-webkit-transform:translatex(-100%);transform:translatex(-100%)}50%{-webkit-transform:translatex(200%);transform:translatex(200%)}}@-moz-keyframes redFlagBar{0%,100%{-moz-transform:translatex(-100%);transform:translatex(-100%)}50%{-moz-transform:translatex(200%);transform:translatex(200%)}}@-o-keyframes redFlagBar{0%,100%{-o-transform:translatex(-100%);transform:translatex(-100%)}50%{-o-transform:translatex(200%);transform:translatex(200%)}}@keyframes redFlagBar{0%,100%{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}50%{-webkit-transform:translatex(200%);-moz-transform:translatex(200%);-o-transform:translatex(200%);transform:translatex(200%)}}@-webkit-keyframes redFlagWord{0%,18%{opacity:0;-webkit-transform:translatey(.4rem);transform:translatey(.4rem)}28%,48%{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}60%,100%{opacity:0;-webkit-transform:translatey(-.35rem);transform:translatey(-.35rem)}}@-moz-keyframes redFlagWord{0%,18%{opacity:0;-moz-transform:translatey(.4rem);transform:translatey(.4rem)}28%,48%{opacity:1;-moz-transform:translatey(0);transform:translatey(0)}60%,100%{opacity:0;-moz-transform:translatey(-.35rem);transform:translatey(-.35rem)}}@-o-keyframes redFlagWord{0%,18%{opacity:0;-o-transform:translatey(.4rem);transform:translatey(.4rem)}28%,48%{opacity:1;-o-transform:translatey(0);transform:translatey(0)}60%,100%{opacity:0;-o-transform:translatey(-.35rem);transform:translatey(-.35rem)}}@keyframes redFlagWord{0%,18%{opacity:0;-webkit-transform:translatey(.4rem);-moz-transform:translatey(.4rem);-o-transform:translatey(.4rem);transform:translatey(.4rem)}28%,48%{opacity:1;-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0)}60%,100%{opacity:0;-webkit-transform:translatey(-.35rem);-moz-transform:translatey(-.35rem);-o-transform:translatey(-.35rem);transform:translatey(-.35rem)}}"})]})}s(4232)},3549:(e,t,s)=>{"use strict";s.d(t,{Q:()=>S});var a=s(7876),r=s(4232),l=s(8230),n=s.n(l),o=s(2372),i=s(5575),c=s(9460),d=s(344),x=s(897),g=s(686);let h=["NSW","VIC","QLD","WA","SA","TAS","ACT","NT"],u={selling:"seller",buying:"buyer",logbook:null},m={selling:"I'm Selling",buying:"I'm Buying",logbook:"Digital Logbook"},f={selling:{label:"Digital Logbook",accent:"Free",href:"/digital-logbook"},buying:{label:"I'm Selling",href:"/sellers/servicehistorycheck"},logbook:{label:"I'm Selling",href:"/sellers/servicehistorycheck"}},b={selling:!1,buying:!0,logbook:!0},p={hero:"bg-gb-gradient-card shadow-gb-card backdrop-blur-md lg:border lg:border-white lg:sh
1adow-gb-float",plain:"bg-gb-surface shadow-gb-card lg:shadow-gb-cta-card",tint:"bg-gb-primary-soft border border-gb-line-primary-soft shadow-gb-brand-float"},y={brand:"bg-gb-gradient-tab-active",flag:"bg-gb-gradient-tab-active-buyer",logbook:"bg-gb-gradient-tab-active-logbook"},v="font-body flex h-9 min-w-0 items-center justify-center gap-1 rounded-gb-full text-gb-label lg:h-8",w="".concat(v," font-semibold text-gb-fg-secondary lg:bg-gb-surface-secondary"),j="".concat(v," text-gb-fg-inverse shadow-gb-tab");function N(e,t){return t?"".concat(e," -"):e}function k(e){return e?(0,a.jsx)("span",{className:"text-gb-overline font-semibold text-gb-success",children:e}):null}function _(e,t){let s=(0,a.jsxs)(a.Fragment,{children:[N(e.label,e.accent),k(e.accent)]});return e.href?(0,a.jsx)(n(),{role:"tab","aria-selected":!1,href:e.href,className:(0,x.cx)(w,t),children:s}):(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":!1,"aria-disabled":!0,disabled:!0,title:"Coming soon",className:(0,x.cx)(w,t,"cursor-not-allowed"),children:s})}function S(e){let{rego:t,onRegoChange:s,state:l,onStateChange:n,onSubmit:v,isSubmitting:w=!1,submitLabel:S="Start my Proof of Service",submitComingSoon:C=!1,helperText:R,media:O,tone:E="hero",activeTab:L="selling",activeTabTone:T="brand",activeTabAccent:A,secondaryTab:I,secondaryTabFirst:D,showTabs:F=!0,showSecondaryTab:z=!0,tabsClassName:P,className:W}=e,B=(0,r.useId)(),M=(0,r.useId)(),G=u[L];(0,r.useEffect)(()=>{(0,o.oJ)(),G&&(0,i.lb)({journey:G,step:"landing"})},[G]);let U=null!=I?I:f[L],H=null!=D?D:b[L],V="logbook"===L,q=V&&z?"shrink-0 px-4":"flex-1";return(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),!C&&t.trim()&&!w&&v()}
1,className:(0,x.cx)("flex w-full flex-col gap-4 rounded-gb-3xl p-5 lg:rounded-gb-4xl lg:p-6",p[E],W),children:[F&&(0,a.jsxs)("div",{role:"tablist","aria-label":"What would you like to do?",className:(0,x.cx)("flex w-full items-center gap-1 rounded-gb-full bg-gb-surface-tertiary p-1 lg:h-10 lg:border lg:border-gb-line",P),children:[z&&H&&_(U,"flex-1"),(0,a.jsxs)("button",{type:"button",role:"tab","aria-selected":!0,className:(0,x.cx)(j,q,V?"font-semibold":"font-bold",y[T]),children:[N(m[L],A),k(A)]}),z&&!H&&_(U,"flex-1")]}),O,(0,a.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center",children:[(0,a.jsxs)("div",{className:"flex h-[54px] items-center gap-3 rounded-gb-lg border-gb-thick border-gb-line bg-gb-surface px-4 lg:h-16 lg:flex-1 lg:rounded-gb-2xl lg:border-0 lg:shadow-gb-input",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:(0,x.cx)("font-body shrink-0 rounded-gb-xs px-1.5 py-0.5 text-gb-overline font-extrabold text-gb-fg-inverse",V?"bg-gb-plate-brand":"bg-gb-background-inverse"),children:"AU"}),(0,a.jsx)("label",{htmlFor:B,className:"sr-only",children:"Vehicle registration number"}),(0,a.jsx)("input",{id:B,name:"rego",type:"text",value:t,onChange:e=>{(0,o.Mp)("registration_input_started"),G&&(0,i.lb)({journey:G,step:"rego_entry"}),s(e.target.value.toUpperCase())},placeholder:"ENTER REGO",autoCapitalize:"characters",autoComplete:"off",spellCheck:!1,disabled:w,className:(0,x.cx)("w-full min-w-0 bg-transparent uppercase text-gb-fg outline-none placeholder:text-gb-fg-placeholder disabled:cursor-not-allowed",V?"font-heading text-gb-h4 font-extrabold lg:font-body lg:text-[16px] lg:font-semibold lg:tracking-[0.5px]":"font-heading text-gb-h4 font-extrabold tracking-[1.5px] lg:text-[22px]")})]}),(0,a.jsxs)("div",{className:"relative flex h-[54px] items-center rounded-gb-lg border border-gb-line bg-gb-surface-secondary lg:h-16 lg:w-[140px] lg:rounded-gb-2xl lg:bg-gb-surface",children:[(0,a.jsx)("label",{htmlFor:M,className:"sr-only",children:"State of registration"}),(0,a.jsx)("select",{id:M,name:"state",value:l,onChange:e=>{(0,o.Mp)("state_selected"),G&&(0,i.lb)({journey:G,step:"rego_entry"}),n(e.target.value)},disabled:w,className:"font-body h-full w-full cursor-pointer appearance-none bg-transparent px-4 pr-10 text-gb-body-compact font-semibold text-gb-fg outline-none disabled:cursor-not-allowed lg:text-gb-body",children:h.map(e=>(0,a.jsx)("option",{value:e,children:e},e))}),(0,a.jsx)(g.D3,{className:(0,x.cx)("pointer-events-none absolute",V?"right-3 h-6 w-6 text-gb-fg [stroke-width:2.5]":"right-4 h-4 w-4 text-gb-fg-secondary")})]})]}),(0,a.jsx)(d.v,{}),(0,a.jsxs)("div",{className:(0,x.cx)("flex flex-col items-center",V?"gap-4":"gap-2.5"),children:[(0,a.jsx)(c.$,{type:"submit",variant:"primary",size:"lg",shape:"lg",fullWidth:!0,disabled:C,loading:w,loadingLabel:"Startingâ¦",className:"h-[50px] rounded-gb-lg shadow-gb-button lg:h-14 lg:rounded-gb-2xl",children:C?"".concat(S," - Coming Soon"):S}),R&&(0,a.jsx)("p",{className:"font-body text-gb-caption font-normal text-gb-fg-secondary",children:R})]})]})}},4170:(e,t,s)=>{"use strict";s.d(t,{X:()=>n});var a=s(7876);s(4232);var r=s(3298),l=s(897);function n(e){let{eyebrow:t,eyebrowWithDot:s=!1,eyebrowSentenceCase:n=!1,heading:o,subheading:i,as:c="h2",align:d="center",onDark:x=!1,subheadingWidthClassName:g="max-w-[600px]",headingWidthClassName:h,headingId:u,className:m}=e;return(0,a.jsxs)("div",{className:(0,l.cx)("flex flex-col gap-4","center"===d?"items-center text-center":"items-start text-left",m),children:[t&&(0,a.jsx)(r.l,{tone:x?"inverse":"brand",withDot:s,sentenceCase:n,children:t}),(0,a.jsx)(c,{id:u,className:(0,l.cx)("font-heading font-extrabold text-gb-h3-lg lg:text-gb-h1",x?"text-gb-fg-inverse":"text-gb-fg",h),children:o}),i&&(0,a.jsx)("p",{className:(0,l.cx)("font-body font-normal text-gb-body-small lg:text-gb-body",x?"text-gb-fg-inverse-secondary":"text-gb-fg-secondary",g),children:i})]})}},4250:(e,t,s)=>{"use strict";e.exports=s(8817).style},4648:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>e4});var a=s(7876),r=s(4232),l=s(7328),n=s.n(l),o=s(4649),i=s(9943),c=s(1856),d=s(1214),x=s(1921),g=s(8133),h=s(315),u=s(166),m=s(6241),f=s(9508),b=s(2848);async function p(e){let t=await e.json().catch(()=>({}));if(!e.ok){let s=Error((null==t?void 0:t.message)||"Request failed");throw s.statusCode=e.status,s.data=null==t?void 0:t.data,s}return t}let y=()=>({"Content-Type":"application/json",Accept:"application/json",...(0,b.z5)()}),v="/api/digital-logbooks",w=async(e,t)=>p(await fetch("".concat(v,"/vehicle-preflight"),{method:"POST",headers:y(),body:JSON.stringify({rego:e,state:t})})),j=async e=>p(await fetch(v,{method:"POST",headers:y(),body:JSON.stringify(e)})),N=async e=>{var t;let s=await fetch("/api/logbook?vehicle=".concat(encodeURIComponent(e),"&is_report_snapshot=False"),{method:"GET",headers:y()}),{data:a}=await p(s);return Array.isArray(a)?a:null!=(t=null==a?void 0:a.results)?t:[]},k=e=>e instanceof Error?e.statusCode:void 0,_=e=>503===k(e),S=e=>409===k(e),C=e=>429===k(e),R=e=>{var t;let s=null==e?void 0:e.data;return s&&"number"==typeof s.limit?{count:null!=(t=s.count)?t:0,limit:s.limit}:null},O=e=>{let t=function(){for(var t=arguments.length,s=Array(t),a=0;a<t;a++)s[a]=arguments[a];for(let t of s){let s=e[t];if("string"==typeof s&&s.trim())return s;if("number"==typeof s)return String(s)}},s=t("rego_search_id","rego_search_vehicle_id","id");if(!s)return null;let a=t("rego_mid_code","rego_search_mid_code");return{rego_search_vehicle_id:s,...a?{rego_search_mid_code:a}:{}}},E=async(e,t)=>p(await fetch("".concat(v,"/").concat(e,"/receipts"),{method:"POST",headers:y(),body:JSON.stringify({temp_paths:t})})),L=async e=>{let t=await fetch("/api/tasks/batch/".concat(encodeURIComponent(e)),{method:"GET",headers:y()}),{data:s}=await p(t);return s},T=async(e,t,s)=>{var a,r;if(!t.length)return{batchId:"",count:0};let l=await fetch("/api/generate-upload-url",{method:"POST",headers:y(),body:JSON.stringify({object_keys:t.map(e=>({upload_type:"receipt_temp",file_name:e.name}))})}),{data:n}=await p(l),o=null!=(a=null==n?void 0:n.image_urls)?a:[];if(o.length!==t.length)throw Error("We couldnât prepare all of your files for upload.");await Promise.all(o.map(async(e,a)=>{var r;let l=t[a];if(!(await fetch(e.url,{method:"PUT",headers:{"Content-Type":null!=(r=s(l))?r:l.type},body:l})).ok)throw Error("Upload failed for ".concat(l.name,"."))}));let{data:i}=await E(e,o.map(e=>e.object_key));return{batchId:null!=(r=null==i?void 0:i.batch_id)?r:"",count:o.length}},A=async e=>{var t,s,a,r;let l=await fetch("/api/vehicle-history-requests",{method:"POST",headers:y(),body:JSON.stringify(e)});return await p(l),{registeredCount:null!=(a=null==(t=e.workshops)?void 0:t.length)?a:0,customCount:null!=(r=null==(s=e.custom_workshops)?void 0:s.length)?r:0}},I=async(e,t)=>p(await fetch("".concat(v,"/").concat(e,"/workshop-authorisation?context=1"),{method:"POST",headers:y(),body:JSON.stringify(t)})),D=async(e,t,s)=>p(await fetch("".concat(v,"/").concat(e,"/workshop-authorisation"),{method:"POST",headers:y(),body:JSON.stringify({...t,...s})})),F=e=>({getContext:t=>I(t,e),sign:(t,s)=>D(t,e,s),isStaleError:f.i_});var z=s(2276);let P={rego_mid_code:"MID-4471",year:"2014",vin:"JTMHV05J104123456",year_from:"2013",year_to:"2017",make:"Toyota",model:null,series:"GRJ150R",chassis:"GRJ150",chassis_no:"GRJ150-8012345",engine:"1GR-FE",engine_displacement:"4.0",cc:"3956",cylinder:"6",kw:"202",induction:"Aspirated",fuel_type:"Petrol",fuel_system:"Multi-Point Injection",doors:"5",valves:"24",configuration:"V6",drive_type:"4x4",country_of_origin:"Japan",cam:"DOHC",cam_type:"Double Overhead Cam",body_type:"Wagon",model_image:null,is_confirmed:!1,user:null};({...P,id:"8f2b41c6-0d5a-4c8e-9a17-5b3e2d1f7a90",rego_search_id:"8f2b41c6-0d5a-4c8e-9a17-5b3e2d1f7a90",model_variant_name:"LandCruiser Prado GXL",transmission:"Automatic",is_transmission:!0}),{...P,id:"3c9d75e0-6a2f-4b11-8e44-91c07f6b2d38",rego_search_id:"3c9d75e0-6a2f-4b11-8e44-91c07f6b2d38",model_variant_name:"LandCruiser Prado GXL",transmission:"Manual",is_transmission:!1};var W=s(2874);let B={build:{heading:"Building your logbook",subtext:"We're setting up your vehicle and matching any invoices you added.",phrases:["Vehicle lookup","Service schedule","Matching invoices"]},open:{heading:"Opening your logbook",subtext:"You already have a Digital Logbook for this vehicle.",phrases:["Finding your vehicle"]},"workshop-request":{heading:"Sending your request",subtext:"We're passing your signed authorisation to the workshops you chose.",phrases:["Signed authorisation","Contacting workshops"]}};function M(e){let{variant:t="build"}=e;return(0,a.jsx)(W.S,{...B[t]})}var G=s(5957),U=s(9200);let H="https://app.glovbox.com.au".replace(/\/?$/,"/"),V=e=>"".concat(H,"vehicle/").concat(e);function q(e){let{vehicleId:t,timedOut:s,vehicleRegistration:r,existing:l=!1,onClose:n}=e;return s?(0,a.jsxs)("div",{className:"mx-auto flex min-h-full w-full max-w-lg flex-col items-center justify-center text-center",children:[(0,a.jsx)("h1",{className:U.X,children:"This is taking longer than expected"}),(0,a.jsxs)("p",{className:"mt-2 ".concat(U.q),children:["Your logbook for ",r," is still being built. Weâll email you as soon as itâs ready â you donât need to stay on this page."]}),(0,a.jsx)("div",{className:"mt-8 w-full",children:(0,a.jsx)(G.$,{onClick:n,children:"Done"})})]}):(0,a.jsxs)("div",{className:"mx-auto flex min-h-full w-full max-w-lg flex-col pb-4",children:[(0,a.jsx)("div",{className:"mt-2 flex justify-center",children:(0,a.jsx)("span",{className:"flex h-16 w-16 items-center justify-center rounded-full border-2 border-emerald-500 text-emerald-500",children:(0,a.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"m6 12.5 4 4 8-9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),(0,a.jsx)("h1",{className:"mx-auto mt-5 max-w-xs text-center ".concat(U.X),children:l?"You already have a Digital Logbook":"Your Digital Logbook is ready"}),(0,a.jsx)("p",{className:"mx-auto mt-3 max-w-sm text-center ".concat(U.q),children:l?"We found the Digital Logbook for ".concat(r,". Open it to add more service records."):"Your service record has been added and your Digital Logbook is ready to view."}),(0,a.jsxs)("div",{className:"mt-6 flex items-center gap-3 rounded-2xl border border-blue-100 bg-blue-50/60 px-4 py-3.5",children:[(0,a.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-white text-blue-600",children:(0,a.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"2.5",y:"4.5",width:"15",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"m3.5 6 6.5 4.5L16.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,a.jsx)("p",{className:"text-sm font-medium text-slate-600",children:"A secure digital record has been successfully stored in your profile dashboard."})]}),(0,a.jsxs)("div",{className:"mt-7",children:[t?(0,a.jsx)("a",{href:V(t),target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center justify-center rounded-2xl bg-blue-700 px-4 py-4 text-lg font-extrabold text-white shadow-lg shadow-blue-700/25 transition-all hover:bg-blue-800 active:scale-[0.98]",children:"View My Digital Logbook"}):(0,a.jsx)(G.$,{onClick:n,children:"Done"}),(0,a.jsx)("button",{type:"button",onClick:n,className:"mt-3 w-full text-sm font-bold text-blue-700 transition-colors hover:text-blue-800",children:"You can add more service records anytime."})]})]})}function Y(e){let{onClose:t}=e;return(0,a.jsxs)("div",{className:"mx-auto flex min-h-full w-full max-w-lg flex-col items-center justify-center text-center",children:[(0,a.jsx)("h1",{className:U.X,children:"Digital Logbook isnât available right now"}),(0,a.jsx)("p",{className:"mt-2 ".concat(U.q),children:"Weâre making some changes. Please try again shortly â nothing you entered has been saved."}),(0,a.jsx)("div",{className:"mt-8 w-full",children:(0,a.jsx)(G.$,{onClick:t,children:"Close"})})]})}let K=[{label:"Authorised",state:"complete"},{label:"Workshop reviewing",state:"active"},{label:"Digital Logbook ready",state:"pending"}];function $(e){let{state:t}=e;return"complete"===t?(0,a.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-emerald-500 text-white",children:(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"m3 6.2 2 2 4-4.4",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}):"active"===t?(0,a.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-full border-2 border-blue-600 bg-white",children:(0,a.jsx)("span",{className:"h-2 w-2 rounded-full bg-blue-600"})}):(0,a.jsx)("span",{className:"h-5 w-5 rounded-full border-2 border-slate-200 bg-white"})}function X(e){var t;let{workshopNames:s,customCount:r,onGoHome:l,onClose:n}=e,o=s.filter(e=>e.trim()),i=o.length>1;return(0,a.jsxs)("div",{className:"mx-auto flex min-h-full w-full max-w-lg flex-col pb-4",children:[(0,a.jsx)("div",{className:"mt-2 flex justify-center",children:(0,a.jsx)("span",{className:"flex h-16 w-16 items-center justify-center rounded-full border-2 border-emerald-500 text-emerald-500",children:(0,a.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"m6 12.5 4 4 8-9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),(0,a.jsxs)("h1",{className:"mx-auto mt-5 max-w-xs text-center ".concat(U.X),children:["Request sent to your ",i?"workshops":"workshop"]}),(0,a.jsxs)("p",{className:"mx-auto mt-3 max-w-sm text-center ".concat(U.q),children:["We have emailed"," ",(0,a.jsx)("span",{className:"font-black text-slate-900",children:o.length?"â".concat(o.length<=1?null!=(t=o[0])?t:"":"".concat(o.slice(0,-1).join(", ")," and ").concat(o[o.length-1]),"â"):"your workshop"})," ","and copied you in. Your Digital Logbook will update as soon as they share the service history."]}),(0,a.jsxs)("div",{className:"mt-6 rounded-2xl border border-slate-200 px-5 py-4",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-slate-500",children:"Current status"}),(0,a.jsx)("p",{className:"mt-1 text-lg font-black text-emerald-600",children:"Waiting for workshop reply"}),(0,a.jsx)("p",{className:"mt-1 text-sm font-medium text-slate-500",children:"Most workshops reply within 2 to 24 hours."}),(0,a.jsx)("div",{className:"mt-5 flex items-start",children:K.map((e,t)=>(0,a.jsxs)("div",{className:"relative flex flex-1 flex-col items-center px-1 text-center",children:[0!==t&&(0,a.jsx)("span",{className:"absolute right-1/2 top-2.5 h-0.5 w-full -translate-y-1/2 ".concat("complete"===K[t-1].state?"bg-emerald-500":"bg-slate-200")}),(0,a.jsx)("span",{className:"relative z-10",children:(0,a.jsx)($,{state:e.state})}),(0,a.jsx)("span",{className:"mt-2 text-[11px] font-bold leading-tight ".concat("pending"===e.state?"text-slate-400":"active"===e.state?"text-blue-600":"text-emerald-600"),children:e.label})]},e.label))})]}),(0,a.jsxs)("div",{className:"mt-4 flex items-center gap-3 rounded-2xl border border-blue-100 bg-blue-50/60 px-4 py-3.5",children:[(0,a.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-white text-blue-600",children:(0,a.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"2.5",y:"4.5",width:"15",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"m3.5 6 6.5 4.5L16.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,a.jsx)("p",{className:"text-sm font-medium text-slate-600",children:"You will receive an email the moment your Digital Logbook is ready to view."})]}),r>0&&(0,a.jsx)("p",{className:"mt-4 text-center ".concat(U.q),children:1===r?"Our team will get in touch with the workshop you added and follow up with you.":"Our team will get in touch with the ".concat(r," workshops you added and follow up with you.")}),(0,a.jsxs)("div",{className:"mt-7",children:[(0,a.jsx)(G.$,{onClick:l,ch
1ildren:"Home"}),(0,a.jsx)("button",{type:"button",onClick:n,className:"mt-3 w-full text-base font-bold text-blue-700 transition-colors hover:text-blue-800",children:"Done"})]})]})}var J=s(3640),Q=s(6629);let Z=["METHOD","UPLOAD","REGISTER","LOGBOOK_READY"],ee=["METHOD","WORKSHOP","REGISTER","AUTHORISATION","REQUEST_SENT"],et=["UNAVAILABLE","LOOKUP_ERROR","VEHICLE_CLAIMED","REQUEST_SENT","LOGBOOK_READY"],es=(e,t)=>{var s,a;let r=(0,Q._9)(e,t),l=null!=(s=r.workshops)?s:[],n=null!=(a=r.custom_workshops)?a:[];return{...l.length?{workshops:l}:{},...n.length?{custom_workshops:n}:{}}},ea=e=>"string"==typeof e&&e.trim()?e:void 0,er=e=>[e.year,e.make,e.model_variant_name].filter(Boolean).join(" ").trim(),el=e=>({id:String(e.id),vehicleName:er(e),vehicleMake:e.make,vehicleBodyType:e.body_type,vehicleTransmission:e.transmission,vehicleFuelType:e.fuel_type,vehicleSeries:ea(e.series),vehicleInduction:ea(e.induction),vehicleDriveType:ea(e.drive_type)});function en(e){var t,s,l;let{regoNumber:n,state:o,handleClose:i,onInitializing:p}=e,[y,v]=(0,r.useState)("LOADING"),[k,E]=(0,r.useState)(n),[I,D]=(0,r.useState)(o),[P,W]=(0,r.useState)([]),[B,G]=(0,r.useState)(""),[U,H]=(0,r.useState)(0),[V,K]=(0,r.useState)(0),[$,er]=(0,r.useState)("no-match"),[en,eo]=(0,r.useState)(null),[ei,ec]=(0,r.useState)([]),[ed,ex]=(0,r.useState)(""),[eg,eh]=(0,r.useState)(!1),[eu,em]=(0,r.useState)("upload"),[ef,eb]=(0,r.useState)(null),[ep,ey]=(0,r.useState)({registeredCount:0,customCount:0}),[ev,ew]=(0,r.useState)(""),[ej,eN]=(0,r.useState)(""),[ek,e_]=(0,r.useState)(!1),[eS,eC]=(0,r.useState)("build"),eR=(0,r.useRef)(""),eO=(0,r.useRef)(""),eE=(0,r.useRef)(!1),eL=(0,r.useRef)(!1),eT=(0,r.useRef)(!1);(0,r.useEffect)(()=>(eL.current=!1,()=>{eL.current=!0}),[]);let eA=null!=(t=P.find(e=>String(e.id)===B))?t:P[0],eI=[...(null!=(s=null==ef?void 0:ef.selected)?s:[]).map(e=>e.workshop_name),...(null!=(l=null==ef?void 0:ef.customWorkshops)?l:[]).map(e=>e.workshop_name)].filter(e=>e.trim()),eD="workshop"===eu?ee:Z,[eF,ez]=(0,r.useState)(0);(0,r.useEffect)(()=>{let e=eD.indexOf(y);e>=0&&ez(e)},[eD,y]),(0,r.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]);let eP=(0,r.useCallback)(async(e,t)=>{v("LOADING"),eo(null),null==p||p(!0);let s=!1;try{let{data:a}=await w(e,t);if("claimed_by_another_user"===a.status)return void v("VEHICLE_CLAIMED");s="already_owned_by_requester"===a.status}catch(e){if(_(e))return void v("UNAVAILABLE");if(C(e)){let t=R(e);t&&(H(t.count),K(t.limit)),er("limit-reached"),v("LOOKUP_ERROR");return}er("no-match"),v("LOOKUP_ERROR");return}finally{null==p||p(!1)}if(s){eC("open"),v("BUILDING");try{let{data:s}=await j({rego:e,state:t});if(eL.current)return;eR.current=s.vehicle_id,eN(s.vehicle_id),eE.current=!0,s.logbook_id&&(eO.current=s.logbook_id),e_(!0),v("LOGBOOK_READY");return}catch(e){e_(!1)}}try{var a,r;let s=await (0,z.pV)(e,t,"digital_logbook"),l=null!=(r=null==(a=s.data)?void 0:a.modal_variants)?r:[];if(l.length,H(e=>{var t,a;return null!=(a=null==(t=s.data)?void 0:t.count)?a:e}),K(e=>{var t,a;return null!=(a=null==(t=s.data)?void 0:t.limit)?a:e}),!l.length){W([]),G(""),er("no-match"),v("LOOKUP_ERROR");return}W(l),G(String(l[0].id)),v(l.length>1?"SELECT_VEHICLE":"METHOD")}catch(e){if(429===e.statusCode){er("limit-reached"),v("LOOKUP_ERROR");return}W([]),G(""),er("no-match"),v("LOOKUP_ERROR")}},[p]);(0,r.useEffect)(()=>{eP(n,o)},[n,o,eP]);let eW=(0,r.useCallback)(async e=>{let t=Date.now()+9e4;for(;!eL.current&&Date.now()<t;){try{let[t]=await N(e);if(t)return t}catch(e){}await new Promise(e=>setTimeout(e,3e3))}return eL.current||eh(!0),null},[]),eB=(0,r.useCallback)(async e=>{let t=Date.now()+18e4;for(;!eL.current&&Date.now()<t;){try{let t=await L(e);if(null==t?void 0:t.batch_completed)return!0}catch(e){}await new Promise(e=>setTimeout(e,3e3))}return!eL.current&&(eh(!0),!1)},[]),eM=(0,r.useCallback)(async()=>{eC("build"),v("BUILDING"),eo(null);try{var e,t;if(!eE.current){let t=eA?O(eA):null,s="workshop"===eu?null!=(e=null==ef?void 0:ef.odometer)?e:"":ed,a=Number(s.replace(/[^0-9.]/g,"")),{data:r}=await j({rego:k,state:I,...Number.isFinite(a)&&a>0?{odometer:a}:{},...null!=t?t:{}});eR.current=r.vehicle_id,eN(r.vehicle_id),eE.current=!0,r.logbook_id&&(eO.current=r.logbook_id)}if("workshop"===eu){let e=eO.current||(null==(t=await eW(eR.current))?void 0:t.id)||"";if(!e){eo("We couldnât open the workshop authorisation. Please try again."),v("METHOD");return}eO.current=e,ew(e),v("AUTHORISATION");return}let s=await eW(eR.current);if(eL.current)return;if(s&&(eO.current=s.id),ei.length){if(!eO.current){eh(!1),eo("Your logbook is still being prepared, so we couldnât attach your invoices yet. Your files are still here â please try again in a moment."),v("METHOD");return}let{batchId:e}=await T(eO.current,ei,f.Un);if(eL.current||(ec([]),e&&await eB(e)&&await eW(eR.current),eL.current))return}v("LOGBOOK_READY")}catch(e){if(S(e))return void v("VEHICLE_CLAIMED");if(_(e))return void v("UNAVAILABLE");eo(e instanceof Error?e.message:"We couldnât build your logbook. Please try again."),v((0,b.iD)()?"METHOD":"REGISTER")}},[eu,ed,eB,eW,k,eA,I,ei,ef]),eG=(0,r.useCallback)(async()=>
1{if(ef&&eR.current&&!eT.current){eT.current=!0,eC("workshop-request"),v("BUILDING");try{let e=es(ef,I),t=await A({vehicle:eR.current,...e});if(eL.current)return;ey(t),v("REQUEST_SENT")}catch(e){if(eL.current)return;eo(e instanceof Error?e.message:"We couldnât send your request. Please try again."),v("AUTHORISATION")}finally{eT.current=!1}}},[I,ef]),eU=(0,r.useCallback)(()=>{eM()},[eM]),eH=(0,r.useCallback)(()=>{(0,b.q0)(),v("REGISTER")},[]);return(0,a.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-slate-200/90 p-4 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"flex h-[90vh] w-full max-w-lg flex-col overflow-hidden rounded-[2.5rem] bg-white shadow-2xl",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 px-6 pt-6",children:[(0,a.jsx)("div",{className:"min-w-0 flex-1",children:(0,a.jsx)(c.C,{stepCount:eD.length,currentIndex:eF,complete:"LOGBOOK_READY"===y&&!eg})}),et.includes(y)&&(0,a.jsx)("button",{type:"button",onClick:i,"aria-label":"Close",className:"-mr-1.5 shrink-0 rounded-full p-1.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-600",children:(0,a.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M6 18
118 6M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto px-6 pb-6 pt-4",children:["LOADING"===y&&(0,a.jsx)("p",{className:"mt-16 text-center text-sm font-semibold text-slate-500",children:"Looking up your vehicleâ¦"}),"UNAVAILABLE"===y&&(0,a.jsx)(Y,{onClose:i}),"LOOKUP_ERROR"===y&&(0,a.jsx)(m.L,{variant:$,vehicleRegistration:k,vehicleState:I,onRegoChange:E,onStateChange:D,onSearchAgain:()=>void eP(k,I),regoLookupsUsed:U,regoLookupLimit:V,onClose:i}),"VEHICLE_CLAIMED"===y&&(0,a.jsx)(u.M,{vehicleRegistration:k,vehicleState:I,onBack:()=>v("LOOKUP_ERROR"),onUseDifferentRegistration:()=>v("LOOKUP_ERROR"),onClose:i}),"SELECT_VEHICLE"===y&&(0,a.jsx)(h.Z,{vehicles:P.map(el),selectedVehicleId:B,onSelectVehicle:G,onTransmissionChange:()=>void 0,onConfirmVehicle:()=>v("METHOD"),onBack:()=>v("LOOKUP_ERROR"),onClose:i}),"METHOD"===y&&(0,a.jsx)(d.M,{vehicleRegistration:k,vehicleState:I,vehicleMake:null==eA?void 0:eA.make,vehicleModel:null==eA?void 0:eA.model_variant_name,vehicleYear:null==eA?void 0:eA.year,vehicleEngine:null==eA?void 0:eA.engine,vehicleTransmission:null==eA?void 0:eA.transmission,vehicleBodyType:null==eA?void 0:eA.body_type,vehicleFuelType:null==eA?void 0:eA.fuel_type,vehicleSeries:ea(null==eA?void 0:eA.series),onEditVehicle:()=>v(P.length>1?"SELECT_VEHICLE":"LOOKUP_ERROR"),onSelectMethod:e=>{em(e),v("upload"===e?"UPLOAD":"WORKSHOP")},error:en}),"WORKSHOP"===y&&(0,a.jsx)(Q.pq,{regoState:I,vehicleRegistration:k,vehicleMake:null==eA?void 0:eA.make,vehicleModel:null==eA?void 0:eA.model_variant_name,vehicleYear:null==eA?void 0:eA.year,vehicleDescriptor:null==eA?void 0:eA.engine,initialValues:null!=ef?ef:void 0,showConsent:!1,submitLabel:"Ask my workshop",saveWorkshops:async()=>void 0,onBack:e=>{eb(e),v("METHOD")},onNext:e=>{eb(e),eH()}}),"UPLOAD"===y&&(0,a.jsx)(x.$X,{initialFiles:ei,initialOdometer:ed,collectOdometer:!0,uploadFiles:async()=>void 0,onBack:(e,t)=>{ec(e),void 0!==t&&ex(t),v("METHOD")},onNext:(e,t,s)=>{ec(e),void 0!==s&&ex(s),eH()}}),(0,a.jsx)("div",{className:"REGISTER"===y?"flex flex-1 flex-col":"hidden",children:(0,a.jsx)(g.N,{regoNumber:k,regoState:I,heading:"Let's set up your logbook",bannerTitle:"We just need a few details to set up your free Digital Logbook.",phoneHelper:"We'll use this to keep you updated about your logbook.",submitLabel:"Build my logbook",onBack:()=>v("workshop"===eu?"WORKSHOP":"UPLOAD"),handleNext:eU})}),"BUILDING"===y&&(0,a.jsx)(M,{variant:eS}),"AUTHORISATION"===y&&ev&&ef&&(0,a.jsx)(J.c,{draftToken:ev,documentLabel:"Digital Logbook",transport:F(es(ef,I)),onBack:()=>v("WORKSHOP"),onCorrectCustomerDetails:()=>v("WORKSHOP"),onSuccess:()=>void eG(),fallbackMake:null==eA?void 0:eA.make,fallbackModel:null==eA?void 0:eA.model_variant_name,fallbackYear:null==eA?void 0:eA.year}),"REQUEST_SENT"===y&&(0,a.jsx)(X,{workshopNames:eI,customCount:ep.customCount,onGoHome:()=>{window.location.href="/"},onClose:i}),"LOGBOOK_READY"===y&&(0,a.jsx)(q,{vehicleId:ej,timedOut:eg,vehicleRegistration:k,existing:ek,onClose:i})]})]})})}var eo=s(5437),ei=s(9087),ec=s(6968),ed=s.n(ec),ex=s(1969),eg=s(686);let eh="flex flex-col gap-6 rounded-gb-4xl border border-gb-line bg-gb-surface p-6 shadow-gb-panel lg:p-8",eu="font-heading text-[44px] font-extrabold leading-[1.1] text-gb-primary lg:text-[56px]",em="font-heading text-[18px] font-bold leading-[1.25] text-gb-fg",ef="font-body text-[15px] font-normal leading-[1.4] text-gb-fg-secondary",eb="font-body mt-auto text-[12px] font-normal text-gb-fg-placeholder",ep=[{value:"$19,175",valueClassName:"text-gb-fg",caption:"Without history",captionClassName:"font-medium text-gb-fg-muted",heightClassName:"h-[52px]",fillClassName:"bg-[linear-gradient(to_bottom,#60a5fa,#3b82f6)]"},{value:"$21,975",valueClassName:"text-gb-fg",caption:"With history",captionClassName:"font-semibold text-gb-fg",heightClassName:"h-[76px]",fillClassName:"bg-[linear-gradient(to_bottom,#ffffff,#93c5fd)]"},{value:"$20,450",valueClassName:"text-[#fcd34d]",caption:"Market avg",captionClassName:"font-medium text-gb-fg-muted",heightClassName:"h-[64px]",fillClassName:"bg-[linear-gradient(to_bottom,#fcd34d,#f59e0b)]"}];function ey(){return(0,a.jsxs)("div",{role:"img","aria-label":"A bar chart comparing resale value: $19,175 without service history, $21,975 with history and a $20,450 market average â a $2,800 difference.",className:"flex h-[200px] w-full flex-col gap-3 rounded-gb-2xl border border-gb-line bg-gb-surface px-5 py-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"font-body text-[9px] font-semibold uppercase tracking-[0.4px] text-gb-fg",children:"Resale V
1alue Impact"}),(0,a.jsxs)("span",{className:"font-body flex items-center gap-1 rounded-gb-full bg-gb-primary-subtle px-2 py-[3px] text-[8px] font-semibold text-[#34d399]",children:[(0,a.jsx)(eg.Mx,{className:"h-2 w-2"}),"+$2,800"]})]}),(0,a.jsx)("div",{className:"flex min-h-0 flex-1 items-end gap-2.5",children:ep.map(e=>(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center gap-1.5",children:[(0,a.jsx)("span",{className:"font-body text-[9px] font-bold ".concat(e.valueClassName),children:e.value}),(0,a.jsx)("span",{className:"flex w-full items-end rounded-b-[2px] rounded-t-[6px] bg-gb-surface-secondary ".concat(e.heightClassName),children:(0,a.jsx)("span",{className:"h-full w-full rounded-b-[2px] rounded-t-[4px] ".concat(e.fillClassName)})}),(0,a.jsx)("span",{className:"font-body text-center text-[8px] ".concat(e.captionClassName),children:e.caption})]},e.caption))})]})}function ev(){return(0,a.jsx)("section",{"aria-labelledby":"logbook-advantages-heading",className:"w-full bg-gb-gradient-logbook-stats py-16 lg:py-24",children:(0,a.jsx)(ex.m,{children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-10 lg:gap-16",children:[(0,a.jsxs)("div",{className:"flex w-full max-w-[800px] flex-col items-center gap-4 lg:gap-6",children:[(0,a.jsxs)("span",{className:"font-body inline-flex w-fit items-center gap-2 rounded-gb-full bg-gb-success-subtle px-4 py-1.5 text-[12px] font-bold uppercase tracking-[1px] text-gb-success",children:[(0,a.jsx)(eg.lm,{className:"h-3.5 w-3.5 shrink-0"}),"Your service history matters"]}),(0,a.jsx)("h2",{id:"logbook-advantages-heading",className:"font-heading text-center text-[30px] font-extrabold leading-[1.1] text-gb-fg-inverse lg:text-[56px]",children:"Advantages of keeping it in one place"})]}),(0,a.jsxs)("ul",{className:"grid w-full list-none grid-cols-1 items-stretch gap-6 lg:grid-cols-3 lg:gap-8",children:[(0,a.jsxs)("li",{className:eh,children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("p",{className:"flex flex-col gap-1",children:[(0,a.jsx)("span",{className:eu,children:"Up to 20%"}),(0,a.jsx)("span",{className:em,children:"of your car's value could be at risk"})]}),(0,a.jsx)("p",{className:ef,children:"Missing or incomplete service history has been reported to reduce a vehicle's value by as much as a fifth."})]}),(0,a.jsx)("hr",{className:"border-0 border-t border-t-gb-line"}),(0,a.jsx)(ey,{}),(0,a.jsx)("p",{className:eb,children:"Source: MotorEasy / UK automotive guidance"})]}),(0,a.jsxs)("li",{className:eh,children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"flex flex-col gap-1",children:[(0,a.jsx)("span",{className:eu,children:"128%"}),(0,a.jsx)("span",{className:em,children:"more views"})]}),(0,a.jsx)("p",{className:ef,children:"Vehicles backed by independent vehicle information received substantially more listing views than comparable vehicles without it."})]}),(0,a.jsx)("hr",{className:"border-0 border-t border-t-gb-line"}),(0,a.jsxs)("div",{className:"flex flex-col overflow-hidden rounded-gb-2xl border border-gb-line-primary-soft bg-gb-surface",children:[(0,a.jsxs)("div",{className:"relative h-[150px] w-full",children:[(0,a.jsx)(ed(),{src:"/seller/stat-more-leads.webp",alt:"A white Toyota RAV4 parked at a lookout at sunset",fill:!0,sizes:"(min-width: 1280px) 342px, (min-width: 1024px) 280px, 100vw",className:"object-cover"}),(0,a.jsxs)("span",{className:"font-body absolute left-3 top-3 inline-flex items-center gap-1.5 rounded-gb-full bg-gb-success px-2.5 py-1 text-[11px] font-bold text-gb-fg-inverse",children:[(0,a.jsx)(eg.Sr,{className:"h-3 w-3"}),"Full Service History"]})]}),(0,a.jsx)("p",{className:"font-heading p-4 text-[16px] font-extrabold text-gb-fg",children:"2019 Toyota RAV4 GXL AWD"})]}),(0,a.jsx)("p",{className:eb,children:"Source: carsales.com.au / RedBook Inspect"})]}),(0,a.jsxs)("li",{className:eh,children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"flex flex-col gap-1",children:[(0,a.jsx)("span",{className:eu,children:"104%"}),(0,a.jsx)("span",{className:em,children:"more leads"})]}),(0,a.jsx)("p",{className:ef,children:"Vehicles with independent vehicle information generated significantly more buyer enquiries on average."})]}),(0,a.jsx)("hr",{className:"border-0 border-t border-t-gb-line"}),(0,a.jsxs)("div",{className:"relative h-[200px] w-full overflow-hidden rounded-gb-2xl border border-gb-line-primary-soft",children:[(0,a.jsx)(ed(),{src:"/seller/stat-more-views.webp",alt:"A buyer sitting on a couch reviewing a vehicle history report on their phone",fill:!0,sizes:"(min-width: 1280px) 342px, (min-width: 1024px) 280px, 100vw",className:"object-cover object-[60%_50%]"}),(0,a.jsx)("span",{className:"font-body absolute bottom-6 left-3 rounded-gb-full bg-[#a2caff] px-2.5 py-1.5 text-[11px] font-semibold text-gb-fg-inverse",children:"carsales / RedBook Inspect data"})]}
1),(0,a.jsx)("p",{className:eb,children:"Source: carsales.com.au / RedBook Inspect"})]})]}),(0,a.jsxs)("p",{className:"font-body flex items-center justify-center gap-2 text-center text-[15px] font-semibold text-gb-fg-inverse",children:[(0,a.jsx)(eg.yA,{className:"h-4 w-4 shrink-0 text-gb-success"}),"Your Glovbox digital logbook is free to store and stays with the vehicle."]})]})})})}let ew=["Keep track of your vehicle's maintenance","Find old service and repair records","Show buyers the history when you sell","Transfer the vehicle history to the next owner","Give the next owner a record they can continue using"];function ej(){return(0,a.jsx)("section",{"aria-labelledby":"logbook-benefits-heading",className:"w-full bg-gb-gradient-logbook-benefits py-14 lg:py-24",children:(0,a.jsx)(ex.m,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-10 lg:gap-14",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsx)("span",{className:"font-body inline-flex w-fit items-center rounded-gb-full bg-gb-surface-deep px-4 py-1.5 text-[12px] font-bold uppercase text-gb-accent-teal",children:"Value & Utility"}),(0,a.jsx)("h2",{id:"logbook-benefits-heading",className:"font-heading text-center text-[28px] font-extrabold leading-[1.15] text-gb-fg-inverse lg:text-[40px]",children:"Make your service history useful when it matters most"}),(0,a.jsx)("p",{className:"font-body max-w-[640px] text-center text-[15px] font-normal leading-[1.5] text-gb-fg-inverse lg:text-[16px]",children:"A digital logbook isn't just for remembering your last service. It can help you:"})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-8 lg:flex-row lg:gap-10",children:[(0,a.jsx)("ul",{className:"flex w-full list-none flex-col gap-5 lg:min-w-0 lg:flex-1 lg:max-w-[413px]",children:ew.map(e=>
1(0,a.jsxs)("li",{className:"flex items-center gap-4 rounded-gb-lg border border-gb-line-deep bg-gb-surface-deep p-5",children:[(0,a.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-gb-xl bg-gb-success-subtle text-gb-success",children:(0,a.jsx)(eg.Sr,{className:"h-3.5 w-3.5"})}),(0,a.jsx)("span",{className:"font-body min-w-0 flex-1 text-[15px] font-semibold text-gb-fg-inverse",children:e})]},e))}),(0,a.jsx)("div",{className:"relative aspect-[768/432] w-full shrink-0 lg:w-[60%]",children:(0,a.jsx)(ed(),{src:"/buyer/benefits-vehicle-checks.webp",alt:"A car with callouts showing battery, oil, differential, tyre and brake service records, each dated and ticked",fill:!0,sizes:"(min-width: 1024px) 768px, 100vw",className:"object-contain"})})]})]})})})}var eN=s(3298),ek=s(4021);let e_=[{x:18.38,y:140,kind:"gap"},{x:63.38,y:105,kind:"done"},{x:108.38,y:75,kind:"done"},{x:153.38,y:70,kind:"awaiting"},{x:198.38,y:65,kind:"done"},{x:243.38,y:55,kind:"missing"},{x:288.38,y:45,kind:"done"},{x:331.38,y:18,kind:"latest"}],eS=[{x:28.38,y:150,height:15},{x:73.38,y:115,height:50},{x:118.38,y:85,height:80},{x:163.38,y:80,height:85},{x:208.38,y:75,height:90},{x:253.38,y:65,height:100},{x:298.38,y:55,height:110},{x:343.38,y:30,height:135}],eC=[{x:57.38,y:91},{x:102.38,y:61},{x:192.38,y:51}],eR=[{reading:"No record",odometer:"50k"},{reading:"31k km",odometer:"60k"},{reading:"68k km",odometer:"70k"},{reading:"Awaiting",odometer:"80k"},{reading:"79k km",odometer:"90k"},{reading:"No record",odometer:"100k"},{reading:"92k km",odometer:"110k"},{reading:"124k km",odometer:"120k"}],eO=[15,52.5,90,127.5,165];function eE(e){let{kind:t}=e;if("latest"===t)return(0,a.jsx)("span",{className:"flex h-6 w-6 items-center justify-center rounded-gb-full border-2 border-gb-primary bg-[rgba(37,99,235,0.2)]",children:(0,a.jsx)("span",{className:"h-[10px] w-[10px] rounded-gb-full bg-gb-primary"})});if("gap"===t)return(0,a.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-gb-full bg-[#e2e8f0]",children:(0,a.jsx)("span",{className:"h-[10px] w-[10px] rounded-gb-full border-2 border-[#94a3b8] bg-gb-surface"})});if("missing"===t)return(0,a.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-gb-full bg-[#1e3a8a]",children:(0,a.jsx)("span",{className:"h-[10px] w-[10px] rounded-gb-full border-2 border-gb-success-bright bg-gb-surface"})});let s="awaiting"===t;return(0,a.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-gb-full ".concat(s?"bg-[rgba(217,119,6,0.2)]":"bg-[rgba(16,185,129,0.2)]"),children:(0,a.jsx)("span",{className:"h-[10px] w-[10px] rounded-gb-full ".concat(s?"bg-gb-warning-deep":"bg-gb-success")})})}function eL(){return(0,a.jsxs)("div",{className:"flex w-full max-w-[428px] flex-col gap-4 roun
1ded-gb-2xl border border-gb-line bg-gb-surface p-4 shadow-gb-panel",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"font-heading text-[11px] font-bold uppercase text-gb-primary",children:"Primary View"}),(0,a.jsx)("span",{className:"font-body rounded-gb-full bg-gb-success-subtle px-2.5 py-1 text-[11px] font-bold text-gb-success",children:"5 records connected"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)("h4",{className:"font-heading text-[18px] font-extrabold leading-[1.25] text-gb-fg",children:"Your service history, at a glance"}),(0,a.jsx)("p",{className:"font-body text-[12px] font-normal leading-[1.35] text-gb-fg-secondary",children:"Select any service point to inspect its supporting evidence."})]}),(0,a.jsx)("div",{className:"w-full overflow-x-auto rounded-gb-lg border border-gb-line",children:(0,a.jsxs)("div",{role:"img","aria-label":"A service-history chart plotting eight odometer readings from 50,000 km to 120,000 km: five services recorded, one awaiting workshop confirmation, one missing and one evidence gap before the first record.",className:"h-[214px] w-[380px] shrink-0",children:[(0,a.jsxs)("div",{className:"relative h-[180px] w-[380px]",children:[(0,a.jsxs)("svg",{viewBox:"0 0 380 180",width:"380",height:"180","aria-hidden":"true",className:"absolute inset-0",children:[(0,a.jsxs)("g",{stroke:"#e2e8f0",strokeWidth:"1",strokeDasharray:"1.5 3",fill:"none",children:[eO.map(e=>(0,a.jsx)("line",{x1:"0",y1:e,x2:"380",y2:e},e)),eS.map(e=>(0,a.jsx)("line",{x1:e.x,y1:e.y,x2:e.x,y2:e.y+e.height},e.x))]}),(0,a.jsx)("polyline",{points:"75,115 120,85 210,75 300,55 345,30",fill:"none",stroke:"#2563eb",strokeWidth:"3"})]}),eC.map(e=>(0,a.jsx)("span",{className:"font-body absolute rounded-gb-xs border border-gb-primary bg-gb-surface px-1.5 py-0.5 text-[8px] font-bold leading-none text-gb-primary",style:{left:e.x,top:e.y},children:"View"},"".concat(e.x,"-").concat(e.y))),(0,a.jsx)("span",{className:"font-body absolute rounded-gb-xs bg-[#1e3a8a] px-2 py-1 text-[9px] font-bold leading-none text-gb-fg-inverse",style:{left:158.38,top:21},children:"Latest service record"}),(0,a.jsx)("span",{className:"font-body absolute rounded-[10px] bg-gb-primary-subtle px-2 py-0.5 text-[8px] font-extrabold leading-none text-gb-primary",style:{left:38.38,top:150},children:"EVIDENCE GAP"}),e_.map(e=>(0,a.jsx)("span",{className:"absolute",style:{left:e.x,top:e.y},children:(0,a.jsx)(eE,{kind:e.kind})},e.x))]}),(0,a.jsx)("div",{className:"flex h-[34px] w-[380px] items-start px-2",children:eR.map((e,t)=>(0,a.jsxs)("div",{className:"flex w-[42px] shrink-0 flex-col items-center gap-0.5 text-center",children:[(0,a.jsx)("span",{className:"font-heading whitespace-nowrap text-[8px] font-bold leading-none text-gb-fg",children:e.reading}),(0,a.jsx)("span",{className:"font-body whitespace-nowrap text-[8px] font-medium leading-none text-gb-fg-placeholder",children:e.odometer})]},"".concat(e.odometer,"-").concat(t)))})]})})]})}let eT="font-heading text-[24px] font-semibold leading-[34px] lg:text-[25px] lg:leading-[40px]";function eA(){return(0,a.jsx)(ek.w,{tone:"light","aria-labelledby":"logbook-comparison-heading",paddingClassName:"py-14 lg:py-24",children:(0,a.jsxs)("div",{className:"flex flex-col gap-10 lg:gap-14",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsx)(eN.l,{children:"Digital Logbook"}),(0,a.jsx)("h2",{id:"logbook-comparison-heading",className:"font-heading max-w-[900px] text-center text-[28px] font-extrabold leading-[1.15] text-gb-fg lg:text-[40px]",children:"A digital logbook that stays with your car"}),(0,a.jsx)("p",{className:"font-body max-w-[640px] text-center text-[15px] font-normal leading-[1.5] text-gb-fg-secondary lg:text-[16px]",children:"Paper logbooks get lost. Receipts disappear. Workshops change. Glovbox brings your vehicle's service history together in one digital logbook, so you can keep track of what has been done and when."})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-10 lg:flex-row lg:items-center lg:justify-center lg:gap-10",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-6 lg:flex-1",children:[(0,a.jsxs)("h3",{className:"".concat(eT," text-center"),children:[(0,a.jsx)("span",{className:"text-gb-primary",children:"The old way!"}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-gb-fg",children:"Hard to verify. Easy to lose."})]}),(0,a.jsx)(ed(),{src:"/logbook/logbook-paper.webp",alt:"An open paper service logbook with handwritten entries, workshop stamps and one page reading no record",width:1e3,height:639,sizes:"(min-width: 1024px) 438px, 90vw",className:"h-auto w-full max-w-[438px] rounded-[11px] object-contain"})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-6 lg:flex-1",children:[(0,a.jsxs)("h3",{className:"".concat(eT," text-center"),children:[(0,a.jsx)("span",{className:"text-gb-primary",children:"The new way"}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-gb-fg",children:"Easy to view. Easy to share. Easy to trust."})]}),(0,a.jsx)(eL,{})]})]})]})})}var eI=s(8858),eD=s(4170);let eF=[{question:"What is a Glovbox Digital Logbook?",answer:"One place to keep your vehicle's service history and workshop records online."},{question:"Is the Digital Logbook free?",answer:"Yes. You can start building your vehicle's Digital Logbook for free."},{question:"How does my service history get added?",answer:"Add existing records yourself or connect your workshop so available service records can be added to your vehicle history."},{question:"Can I use more than one workshop?",answer:"Yes. Your history can stay together even if your vehicle is serviced at different workshops."},{question:"Can I sell my car with my Digital Logbook?",answer:"Yes. You can share your service history with buyers to give them more confidence in the vehicle."},{question:"Does the Digital Logbook stay with the car when I sell it?",answer:"Yes. The vehicle history stays connected to the car so the next owner can continue building it."}];function ez(){return(0,a.jsx)(ek.w,{id:"faq",tone:"none","aria-labelledby":"logbook-faq-heading",className:"bg-gb-surface-muted text-gb-fg",paddingClassName:"py-16 lg:py-24",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-8 lg:gap-16",children:[(0,a.jsx)(eD.X,{headingId:"logbook-faq-heading",eyebrow:"Frequently asked questions",eyebrowSentenceCase:!0,heading:"Digital Logbook FAQ",subheading:"Everything you need to know about your Glovbox Digital Logbook."}),(0,a.jsx)(eI.Z,{items:eF,className:"max-w-[800px]"})]})})}var eP=s(9460),eW=s(3549),eB=s(8581);function eM(e){let{rego:t,onRegoChange:s,state:r,onStateChange:l,onSubmit:n,isSubmitting:o}=e;return(0,a.jsx)(ek.w,{tone:"light","aria-labelledby":"logbook-final-cta-heading",paddingClassName:"py-16 lg:py-[100px]",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-10 lg:gap-12",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsx)("h2",{id:"logbook-final-cta-heading",className:"font-heading text-center text-[28px] font-extrabold leading-[1.15] text-gb-fg lg:text-[40px]",children:"Your vehicle's history shouldn't disappear when it's sold."}),(0,a.jsx)("p",{className:"font-body max-w-[640px] text-center text-[15px] font-normal leading-[1.5] text-gb-fg-secondary lg:text-[16
1px]",children:"Start your Glovbox Digital Logbook today."})]}),(0,a.jsx)(eW.Q,{className:"max-w-[600px]",tone:"tint",rego:t,onRegoChange:s,state:r,onStateChange:l,onSubmit:n,isSubmitting:o,activeTab:"logbook",activeTabTone:"logbook",activeTabAccent:"Free",tabsClassName:"lg:mx-auto lg:w-[284px]",showSecondaryTab:!1,submitLabel:"Build My Digital Logbook",helperText:(0,a.jsxs)("span",{className:"font-heading text-[16px] font-bold",children:[(0,a.jsx)("span",{className:"text-gb-success-vivid",children:"Free to start -"}),(0,a.jsxs)("span",{className:"text-gb-fg-quiet",children:[" ","Takes less than 3 minutes"]})]})}),eB.xs&&(0,a.jsx)(eP.$,{href:eB.xs,target:"_blank",variant:"secondary",size:"lg",shape:"md",children:"View sample logbook"})]})})}function eG(e){let{rego:t,onRegoChange:s,state:r,onStateChange:l,onSubmit:n,isSubmitting:o}=e;return(0,a.jsx)("section",{"aria-labelledby":"logbook-hero-heading",className:"w-full bg-gb-gradient-logbook-hero pb-14 pt-12 lg:pb-[100px] lg:pt-20",children:(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-[560px] flex-col items-center gap-6 px-gb-gutter lg:gap-8 lg:px-0",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-4 text-center",children:[(0,a.jsxs)("h1",{id:"logbook-hero-heading",className:"font-heading text-[34px] font-extrabold leading-[1.15] text-gb-fg-inverse lg:text-[52px] lg:leading-[1.1]",children:["Let's build",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-gb-success-bright",children:"Your Digital Logbook"})]}),(0,a.jsx)("p",{className:"font-body text-[16px] font-normal leading-[1.5] text-gb-fg-inverse lg:text-[18px]",children:"Every service. Any workshop. One trusted digital history."})]}),(0,a.jsx)(eW.Q,{rego:t,onRegoChange:s,state:r,onStateChange:l,onSubmit:n,isSubmitting:o,activeTab:"logbook",activeTabTone:"logbook",activeTabAccent:"Free",tabsClassName:"lg:mx-auto lg:w-[284px]",submitLabel:"Build My Digital Logbook",media:(0,a.jsx)(ed(),{src:"/logbook/hero-service-timeline.webp",alt:"A Glovbox service journey from 45,000 km to 120,000 km with every service marked completed",width:1e3,height:251,sizes:"(min-width: 1024px) 434px, 90vw",className:"mx-auto h-auto w-full max-w-[434px] object-contain",priority:!0}),helperText:(0,a.jsxs)("span",{className:"font-heading text-[16px] font-bold",children:[(0,a.jsx)("span",{className:"text-gb-success-vivid",children:"Free to start -"}),(0,a.jsxs)("span",{className:"text-gb-fg-quiet",children:[" ","Takes less than 3 minutes"]})]})}),eB.xs&&(0,a.jsx)(eP.$,{href:eB.xs,target:"_blank",variant:"inverseOutline",size:"lg",shape:"md",children:"View sample logbook"})]})})}let eU="flex flex-col overflow-hidden rounded-gb-3xl border border-gb-line bg-gb-surface shadow-gb-raised",eH="flex flex-col items-center justify-center gap-5 bg-gb-primary-tint px-6 pb-5 pt-6 lg:h-[240px] lg:shrink-0",eV="font-heading text-center text-[20px] font-bold leading-[1.25] text-gb-fg lg:text-[22px]",eq="font-body w-full text-center text-[15px] font-normal leading-[1.65] text-gb-fg-soft";function eY(){return(0,a.jsx)("section",{id:"how-it-works","aria-labelledby":"logbook-how-it-works-heading",className:"w-full bg-gb-gradient-logbook-steps pb-16 pt-14 lg:pb-24 lg:pt-[70px]",children:(0,a.jsx)(ex.m,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-10 lg:gap-14",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsx)("h2",{id:"logbook-how-it-works-heading",className:"font-heading text-center text-[28px] font-extrabold leading-[1.15] text-gb-fg-inverse lg:text-[40px]",children:"How it works"}),(0,a.jsx)("p",{className:"font-body max-w-[600px] text-center text-[15px] font-normal leading-[1.5] text-gb-fg-inverse lg:text-[16px]",children:"Glovbox makes checking, verifying, and presenting your vehicle's service history effortless. Protect your asset value in three steps."})]}),(0,a.jsxs)("ol",{className:"grid list-none grid-cols-1 gap-6 lg:grid-cols-3 lg:gap-8",children:[(0,a.jsxs)("li",{className:eU,children:[(0,a.jsxs)("div",{className:eH,children:[(0,a.jsx)("h3",{className:eV,children:"Find your car"}),(0,a.jsxs)("span",{"aria-hidden":"true",className:"flex h-[68px] w-[260px] max-w-full overflow-hidden rounded-[10px] border-2 border-[#c8d6e8] shadow-gb-panel",children:[(0,a.jsx)("span",{className:"flex w-[34px] shrink-0 items-center justify-center bg-gb-background-inverse",children:(0,a.jsx)("span",{className:"font-heading text-[11px] font-extrabold uppercase text-gb-fg-inverse",children:"ACT"})}),(0,a.jsx)("span",{className:"flex min-w-0 flex-1 items-center justify-center bg-gb-primary",children:(0,a.jsx)("span",{className:"font-heading text-[26px] font-extrabold text-gb-fg-inverse",children:"MYCAR"})})]})]}),(0,a.jsx)("div",{className:"flex flex-1 items-start px-7 pb-8 pt-7",children:(0,a.jsx)("p",{className:eq,children:"Enter your registration and state."})})]}),(0,a.jsxs)("li",{className:eU,children:[(0,a.jsxs)("div",{className:eH,children:[(0,a.jsx)("h3",{className:eV,children:"Build your digital logbook"}),(0,a.jsxs)("div",{"aria-hidden":"true",className:"flex w-full max-w-[290px] items-center gap-3 lg:gap-2 xl:gap-4",children:[(0,a.jsxs)("span",{className:"flex h-[107px] min-w-0 max-w-[104px] flex-1 flex-col items-center gap-2.5 rounded-gb-3xl border border-gb-line bg-gb-surface p-3 shadow-gb-panel",children:[(0,a.jsx)("span",{className:"flex h-[52px] w-[49px] items-center justify-center rounded-gb-lg bg-gb-primary text-gb-fg-inverse",children:(0,a.jsx)(eg.PX,{className:"h-6 w-6"})}),(0,a.jsx)("span",{className:"font-heading whitespace-nowrap text-[13px] font-bold text-gb-fg",children:"Workshop"})]}),(0,a.jsx)("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-gb-full bg-gb-primary text-gb-fg-inverse shadow-gb-button-sm",children:(0,a.jsx)(eg.qY,{className:"h-[22px] w-[22px]"})}),(0,a.jsxs)("span",{className:"flex h-[109px] min-w-0 max-w-[109px] flex-1 flex-col items-center justify-center gap-1.5 overflow-hidden rounded-gb-3xl border border-gb-line bg-gb-surface px-2 py-3 shadow-gb-raised",children:[(0,a.jsx)("span",{className:"flex h-[52px] w-[52px] shrink-0 items-center justify-center rounded-gb-full border-2 border-gb-success-soft bg-gb-success-subtle",children:(0,a.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-gb-full bg-gb-success text-gb-fg-inverse",children:(0,a.jsx)(eg.Sr,{className:"h-[18px] w-[18px]"})})}),(0,a.jsx)("span",{className:"font-heading whitespace-nowrap text-[14px] font-bold text-gb-success",children:"Connected"})]})]})]}),(0,a.jsx)("div",{className:"flex flex-1 items-start px-7 pb-8 pt-7",children:(0,a.jsx)("p",{className:eq,children:"Add the records you already have and request service history from your workshops."})})]}),(0,a.jsxs)("li",{className:eU,children:[(0,a.jsxs)("div",{className:eH,children:[(0,a.jsx)("h3",{className:eV,children:"Keep it updated"}),(0,a.jsx)("div",{className:"w-full rounded-gb-md bg-gb-surface",children:(0,a.jsx)(ed(),{src:"/logbook/step-keep-updated.webp",alt:"A Glovbox service timeline showing 75,000 km, 90,000 km, 105,000 km and 120,000 km services all marked completed",width:760,height:288,sizes:"(min-width: 1024px) 358px, 90vw",className:"h-auto w-full object-contain"})})]}),(0,a.jsx)("div",{className:"flex flex-1 items-start px-7 pb-8 pt-7",children:(0,a.jsx)("p",{className:eq,children:"New services and repairs can be added as your vehicle's history grows."})})]})]})]})})})}function eK(){return(0,a.jsx)(ek.w,{tone:"light","aria-labelledby":"logbook-workshops-heading",paddingClassName:"pb-16 pt-12 lg:py-24",children:(0,a.jsxs)("div",{className:"flex flex-col gap-8 lg:flex-row lg:items-center lg:gap-20",children:[(0,a.jsx)("div",{className:"overflow-hidden rounded-gb-3xl lg:w-[560px] lg:shrink-0",children:(0,a.jsx)(ed(),{src:"/seller/workshops-illustration.webp",alt:"Service records from several different workshops flowing into a single Glovbox vehicle history on a phone",width:1200,height:800,sizes:"(min-width: 1024px) 560px, 100vw",className:"h-auto w-full object-contain"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-6 lg:min-w-0 lg:flex-1",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("h2",{id:"logbook-workshops-heading",className:"font-heading text-[28px] font-extrabold leading-[36px] text-gb-fg lg:text-[36px] lg:leading-[45px]",children:"Service history from more than one workshop?"}),(0,a.jsx)("p",{className:"font-heading text-[22px] font-bold leading-[28px] text-gb-primary",children:"No problem."})]}),(0,a.jsx)("p",{className:"font-body text-[15px] font-normal leading-[1.6] text-gb-fg-secondary lg:text-[16
1px]",children:"Cars often visit different workshops over their lifetime. Glovbox is designed to bring those records together into one vehicle history. So whether you move, change mechanics or buy a used car, the service history doesn't have to start again."})]})]})})}let e$=["No searching through gloveboxes.","No handing over folders of old receipts.","No starting the service history again from scratch."],eX=[{label:"Full name",value:"Kevin Lush"},{label:"Email",value:"[email protected]"},{label:"Mobile number",value:"0412 345 678"},{label:"Address",value:"12 Example Street, Newcastle NSW 2300"}],eJ=[{label:"Full name",value:"Sarah Collins"},{label:"Email",value:"[email protected]"},{label:"Mobile number",value:"0423 685 014"},{label:"Address",value:"44 Harbour Road, Newcastle NSW 2300"}];function eQ(e){let{label:t,value:s}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsxs)("span",{className:"font-body flex items-center gap-0.5 text-[12px] font-bold text-gb-fg-secondary",children:[t,(0,a.jsx)("span",{className:"text-gb-error",children:"*"})]}),(0,a.jsx)("span",{className:"font-body rounded-gb-md border-gb-thick border-gb-line bg-gb-surface-secondary px-3 py-2.5 text-[14px] font-medium text-gb-fg",children:s})]})}function eZ(e){let{initials:t,initialsClassName:s,title:r,status:l,statusClassName:n,statusIcon:o,fields:i,footer:c}=e;return(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-4 roun
1ded-gb-2xl border-gb-thick border-gb-line bg-gb-surface p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{className:"font-heading flex h-10 w-10 shrink-0 items-center justify-center rounded-gb-full border text-[14px] font-extrabold ".concat(s),children:t}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,a.jsx)("span",{className:"font-heading text-[14px] font-extrabold text-gb-fg",children:r}),(0,a.jsxs)("span",{className:"font-body flex items-center gap-1 text-[11px] font-semibold ".concat(n),children:[o,l]})]})]}),(0,a.jsx)("hr",{className:"border-0 border-t border-t-gb-line"}),(0,a.jsx)("div",{className:"flex flex-col gap-3",children:i.map(e=>(0,a.jsx)(eQ,{...e},e.label))}),c]})}function e0(){return(0,a.jsx)(ek.w,{tone:"secondary","aria-labelledby":"logbook-transfer-heading",paddingClassName:"py-16 lg:py-24",children:(0,a.jsxs)("div",{className:"flex flex-col gap-10 lg:flex-row lg:items-center lg:gap-20",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-8 lg:min-w-0 lg:flex-1",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("span",{className:"font-body inline-flex w-fit items-center rounded-gb-full border border-gb-line-primary-wash bg-gb-primary-wash px-4 py-1.5 text-[12px] font-bold text-gb-fg",children:"Selling your car?"}),(0,a.jsx)("h2",{id:"logbook-transfer-heading",className:"font-heading text-[28px] font-extrabold leading-[1.15] text-gb-fg lg:text-[40px]",children:"Transfer your digital logbook when selling your car"}),(0,a.jsx)("p",{className:"font-body text-[15px] font-normal leading-[1.5] text-gb-fg-secondary lg:text-[16px]",children:"When your car changes hands, its service history shouldn't disappear. Glovbox lets you transfer the vehicle's digital logbook to the new owner, so the history you've built can stay with the car."})]}),(0,a.jsxs)("p",{className:"font-body rounded-gb-lg border border-gb-line-primary-wash bg-gb-primary-vivid p-5 text-[15px] font-semibold leading-[1.4] text-gb-fg-inverse",children:[(0,a.jsx)("span",{"aria-hidden":"true",children:"\uD83D\uDCA1 "}),"You keep your account. The new owner gets the vehicle history."]}),(0,a.jsx)("ul",{className:"flex list-none flex-col gap-3",children:e$.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"h-1.5 w-1.5 shrink-0 rounded-gb-full bg-gb-primary"}),(0,a.jsx)("span",{className:"font-body min-w-0 flex-1 text-[15px] font-normal text-gb-fg",children:e})]},e))})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-4 md:flex-row md:items-stretch lg:w-[600px] lg:shrink-0",children:[(0,a.jsx)(eZ,{initials:"KL",initialsClassName:"border-gb-success bg-gb-success-subtle text-gb-success",title:"Current owner â Seller",status:"Verified Glovbox account",statusClassName:"text-gb-success",statusIcon:(0,a.jsx)(eg.Sr,{className:"h-3 w-3 shrink-0"}),fields:eX}),(0,a.jsx)(eZ,{initials:"SC",initialsClassName:"border-gb-warning-deep bg-gb-warning-subtle text-gb-warning-deep",title:"New owner â Buyer",status:"Account not yet confirmed",statusClassName:"text-gb-warning-deep",statusIcon:(0,a.jsx)(eg.eq,{className:"h-3 w-3 shrink-0"}),fields:eJ,footer:(0,a.jsxs)("span",{className:"font-body mt-auto flex items-center justify-center gap-2 rounded-gb-lg border-gb-thick border-gb-primary bg-gb-primary-subtle px-4 py-3 text-[13px] font-bold text-gb-primary",children:[(0,a.jsx)(eg.Rv,{className:"h-4 w-4 shrink-0"}),"Check or create buyer account"]})})]})]})})}var e1=s(898);function e2(){let{pageReady:e}=(0,ei.n)(),[t,s]=(0,r.useState)(""),[l,n]=(0,r.useState)("NSW"),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(!1),[h,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{window.location.hash||window.scrollTo({top:0,behavior:"instant"})},[]),(0,r.useEffect)(()=>{if(!e)return;let t=window.location.hash.slice(1);if(!t)return;let s=document.getElementById(t);s&&s.scrollIntoView({behavior:"smooth",block:"start"})},[e]);let m=()=>{t.trim()&&!x&&d(!0)},f=()=>{x||(s(""),n("NSW"),d(!0))};return(0,a.jsxs)("div",{className:"min-h-screen bg-gb-background text-gb-fg",children:[(0,a.jsx)(i.D,{activeHref:"/digital-logbook",onRegisterClick:f}),c&&(0,a.jsx)(en,{regoNumber:t,state:l,handleClose:()=>{d(!1),g(!1)},onInitializing:g}),h&&(0,a.jsx)(eo.L,{onClose:()=>u(!1)}),(0,a.jsxs)("main",{children:[(0,a.jsx)(eG,{rego:t,onRegoChange:s,state:l,onStateChange:n,onSubmit:m,isSubmitting:x}),(0,a.jsx)(eA,{}),(0,a.jsx)(eY,{}),(0,a.jsx)(eK,{}),(0,a.jsx)(ev,{}),(0,a.jsx)(e0,{}),(0,a.jsx)(ej,{}),(0,a.jsx)(e1.m,{eyebrow:"Ready when you sell",heading:"Ready for when it's time to sell.",description:"Keep your service history organised now, so when it's time to sell, buyers can see the care behind your car in one clear report.",showSampleLink:!1}),(0,a.jsx)(ez,{}),(0,a.jsx)(eM,{rego:t,onRegoChange:s,state:l,onStateChange:n,onSubmit:m,isSubmitting:x})]}),(0,a.jsx)(o.D,{onRegisterClick:f,onContactClick:()=>u(!0)})]})}var e5=s(7715);function e4(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:"Digital Logbook | Your Car's Service History | GlovBox"}),(0,a.jsx)("meta",{name:"description",content:"Build a free Glovbox Digital Logbook for your car. Bring every service from any workshop into one digital history that stays with the vehicle when you sell."}),(0,a.jsx)("link",{rel:"canonical",href:(0,e5.$)("digital-logbook")})]}),(0,a.jsx)(e2,{})]})}},5828:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/digital-logbook",function(){return s(4648)}])},7715:(e,t,s)=>{"use strict";function a(e){return e&&"home"!==e?"https://glovbox.com.au/"+e:"https://glovbox.com.au/"}s.d(t,{$:()=>a}),s(4232)},8581:(e,t,s)=>{"use strict";var a,r,l;s.d(t,{kX:()=>n,m6:()=>i,xs:()=>o});let n=null!=(a="https://app.glovbox.com.au/proof-of-service-certificate/29d1d80e-d170-4f97-bd91-5c3fe01579ad/".trim())?a:"",o=null!=(r="https://app.glovbox.com.au/vehicle/8ffc2af0-5346-4ebd-8b44-b71dbf7c0e6a".trim())?r:"",i=null!=(l="https://app.glovbox.com.au/red-flag/30110801-364a-4fb5-9baa-fae7db3edac9".trim())?l:""},8817:(e,t,s)=>{"use strict";var a=s(5364);s(2552);var r=s(4232),l=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(r),n=void 0!==a&&a.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},i=function(){function e(e){var t=void 0===e?{}
1:e,s=t.name,a=void 0===s?"stylesheet":s,r=t.optimizeForSpeed,l=void 0===r?n:r;c(o(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",c("boolean"==typeof l,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=l,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var i=document.querySelector('meta[property="csp-nonce"]');this._nonce=i?i.getAttribute("content"):null}var t,s=e.prototype;return s.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},s.isOptimizeForSpeed=function(){return this._optimizeForSpeed},s.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(n||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,s){return"number"==typeof s?e._serverSheet.cssRules[s]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),s},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},s.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},s.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},s.insertRule=function(e,t){if(c(o(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var s=this.getSheet();"number"!=typeof t&&(t=s.cssRules.length);try{s.insertRule(e,t)}catch(t){return n||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var a=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,a))}return this._rulesCount++},s.replaceRule=function(e,t){if(this._optimizeForSpeed){var s=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(a){n||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),s.insertRule(this._deletedRulePlaceholder,e)}}else{var a=this._tags[e];c(a,"old rule at index `"+e+"` not found"),a.textContent=t}return e},s.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},s.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},s.cssRules=function(){var e=this;return this._tags.reduce(function(t,s){return s?t=t.concat(Array.prototype.map.call(e.getSheetForTag(s).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},s.makeStyleTag=function(e,t,s){t&&c(o(t),"makeStyleTag accepts only strings as second parameter");var a=document.createElement("style");this._nonce&&a.setAttribute("nonce",this._nonce),a.type="text/css",a.setAttribute("data-"+e,""),t&&a.appendChild(document.createTextNode(t));var r=document.head||document.getElementsByTagName("head")[0];return s?r.insertBefore(a,s):r.appendChild(a),a},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,s=e.length;s;)t=33*t^e.charCodeAt(--s);return t>>>0},x={};function g(e,t){if(!t)return"jsx-"+e;var s=String(t),a=e+s;return x[a]||(x[a]="jsx-"+d(e+"-"+s)),x[a]}function h(e,t){var s=e+t;return x[s]||(x[s]=t.replace(/__jsx-style-dynamic-selector/g,e)),x[s]}var u=function(){function e(e){var t=void 0===e?{}:e,s=t.styleSheet,a=void 0===s?null:s,r=t.optimizeForSpeed,l=void 0!==r&&r;this._sheet=a||new i({name:"styled-jsx",optimizeForSpeed:l}),this._sheet.inject(),a&&"boolean"==typeof l&&(this._sheet.setOptimizeForSpeed(l),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var s=this.getIdAndRules(e),a=s.styleId,r=s.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var l=r.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=l,this._instancesCounts[a]=1},t.remove=function(e){var t=this,s=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(s in this._instancesCounts,"styleId: `"+s+"` not found"),this._instancesCounts[s]-=1,this._instancesCounts[s]<1){var a=this._fromServer&&this._fromServer[s];a?(a.parentNode.removeChild(a),delete this._fromServer[s]):(this._indices[s].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[s]),delete this._instancesCounts[s]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],s=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return s[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,s;return t=this.cssRules(),void 0===(s=e)&&(s={}),t.map(function(e){var t=e[0],a=e[1];return l.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,a=e.id;if(s){var r=g(a,s);return{styleId:r,rules:Array.isArray(t)?t.map(function(e){return h(r,e)}):[h(r,t)]}}return{styleId:g(a),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=r.createContext(null);m.displayName="StyleSheetContext";var f=l.default.useInsertionEffect||l.default.useLayoutEffect,b=new u;function p(e){var t=b||r.useContext(m);return t&&f(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}p.dynamic=function(e){return e.map(function(e){return g(e[0],e[1])}).join(" ")},t.style=p},8858:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var a=s(7876),r=s(4232),l=s(897),n=s(686);function o(e){let{items:t,defaultOpenIndex:s=0,className:o}=e,[i,c]=(0,r.useState)(s),d=(0,r.useId)();return(0,a.jsx)("div",{className:(0,l.cx)("flex w-full flex-col gap-4 lg:gap-[15px]",o),children:t.map((e,t)=>{let s=i===t,r="".concat(d,"-q").concat(t),o="".concat(d,"-a").concat(t);return(0,a.jsxs)("div",{className:"overflow-hidden rounded-gb-4xl border border-white bg-gb-surface shadow-gb-faq",children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("button",{id:r,type:"button","aria-expanded":s,"aria-controls":o,onClick:()=>c(s?null:t),className:"flex w-full items-center justify-between gap-4 p-4 text-left transition-colors hover:bg-gb-surface-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-gb-primary lg:px-6 lg:py-5",children:[(0,a.jsx)("span",{className:"font-heading text-[15px] font-extrabold leading-[22px] text-gb-fg lg:font-body lg:text-[18px] lg:font-semibold lg:leading-[26px] lg:text-gb-fg-strong",children:e.question}),(0,a.jsx)(n.D3,{className:(0,l.cx)("h-3.5 w-3.5 shrink-0 text-gb-primary transition-transform duration-200 lg:h-6 lg:w-6",s&&"rotate-180")}
1)]})}),(0,a.jsx)("div",{id:o,role:"region","aria-labelledby":r,hidden:!s,className:"px-4 pb-4 lg:px-6 lg:pb-5 lg:pt-0",children:(0,a.jsx)("div",{className:"font-body text-[13px] font-normal leading-[18px] text-gb-fg-secondary lg:text-[15px] lg:leading-[22px]",children:e.answer})})]},e.question)})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[3327,9750,4877,9943,5174,9501,3855,636,6593,8792],()=>t(5828)),_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.