PageSourceSearch

https://glovbox.com.au/_next/static/chunks/pages/ai-tool/[slug]-eaee0e0f42e861c8.js

js glovbox.com.au collected 2026-10-02 00:44:11 UTC 42,770 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4667],{689:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-tool/[slug]",function(){return s(2678)}])},937:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var l=s(7876),a=s(6968),r=s.n(a),n=s(8761),i=s(8264),o=s(4232);function d(){var e,t,s,a,d,c,x,m,h,u,p,g,v,f;let[b,j]=(0,o.useState)([]),{data:N}=(0,i.IT)(n.iO);return(0,o.useEffect)(()=>{var e;(null==N||null==(e=N.themeOptions)?void 0:e.themeSettings)&&j(N.themeOptions.themeSettings)},[N]),(0,l.jsx)("section",{className:"BuySellCta",children:(0,l.jsx)("div",{className:"container content text-center",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsxs)("div",{className:"col-lg-12",children:[(null==b?void 0:b.buySellTitle)&&(0,l.jsx)("h2",{children:b.buySellTitle}),(null==b?void 0:b.buySellLink)&&(0,l.jsx)("a",{className:"button button-fill fill-black",href:null==b?void 0:b.buySellLink.url,title:null==b?void 0:b.buySellLink.title,target:(null==b||null==(e=b.buySellLink)?void 0:e.target)?null==b||null==(t=b.buySellLink)?void 0:t.target:"_self",children:null==b?void 0:b.buySellLink.title}),(null==b?void 0:b.qrCode)&&(0,l.jsxs)("div",{className:"qrcode-block",children:[(0,l.jsx)(r(),{src:b.qrCode.node.sourceUrl,title:b.qrCode.node.title,alt:b.qrCode.node.title,width:null!=(h=null==(s=b.qrCode.node.mediaDetails)?void 0:s.width)?h:150,height:null!=(u=null==(a=b.qrCode.node.mediaDetails)?void 0:a.height)?u:150,quality:100}),(0,l.jsxs)("div",{className:"qrcode-block-download",children:[(null==b?void 0:b.appStoreUrl)&&(0,l.jsx)("a",{href:b.appStoreUrl,target:"_blank",title:"App store",children:(0,l.jsx)(r(),{src:b.appStoreImage.node.sourceUrl,title:b.appStoreImage.node.title,alt:b.appStoreImage.node.title,width:null!=(p=null==(d=b.appStoreImage.node.mediaDetails)?void 0:d.width)?p:150,height:null!=(g=null==(c=b.appStoreImage.node.mediaDetails)?void 0:c.height)?g:150,quality:100})}),(null==b?void 0:b.playStoreUrl)&&(0,l.jsx)("a",{href:b.playStoreUrl,target:"_blank",title:"Play store",children:(0,l.jsx)(r(),{src:b.playStoreImage.node.sourceUrl,title:b.playStoreImage.node.title,alt:b.playStoreImage.node.title,width:null!=(v=null==(x=b.playStoreImage.node.mediaDetails)?void 0:x.width)?v:150,height:null!=(f=null==(m=b.playStoreImage.node.mediaDetails)?void 0:m.height)?f:150,quality:100})})]})]})]})})})})}},2528:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var l=s(7876),a=s(6968),r=s.n(a),n=s(8761),i=s(8264),o=s(4232);function d(e){var t,s,a,n;let{data:i}=e;return i?(0,l.jsxs)("div",{className:"col-lg-12 box",children:[(0,l.jsxs)("div",{className:"box-content",children:[i.title&&(0,l.jsx)("h4",{children:i.title}),i.description&&(0,l.jsx)("p",{children:i.description})]}),i.image&&(0,l.jsx)("div",{className:"box-image",children:(0,l.jsx)(r(),{src:i.image.node.sourceUrl,title:i.image.node.title,alt:i.image.node.title,width:null!=(a=null==(t=i.image.node.mediaDetails)?void 0:t.width)?a:150,height:null!=(n=null==(s=i.image.node.mediaDetails)?void 0:s.height)?n:150,quality:100})}),(i.number||i.numberTitle)&&(0,l.jsx)("div",{className:"box-number",children:(0,l.jsxs)("h4",{children:[(0,l.jsx)("span",{className:"number","data-beforenumber":i.numberBefore,"data-afternumber":i.numberAfter,children:i.number})," ",i.numberTitle]})})]}):null}function c(){var e,t,s,a,c,x,m,h;let[u,p]=(0,o.useState)([]),{data:g}=(0,i.IT)(n.iO);return(0,o.useEffect)(()=>{var e;(null==g||null==(e=g.themeOptions)?void 0:e.themeSettings)&&p(g.themeOptions.themeSettings)},[g]),(0,l.jsx)("section",{className:"join-glovbox",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:"content white text-center",children:[(null==u?void 0:u.joinGlovboxTitle)&&(0,l.jsx)("h2",{children:u.joinGlovboxTitle}),(null==u?void 0:u.joinGlovboxDescription)&&(0,l.jsx)("p",{children:u.joinGlovboxDescription})]}),(0,l.jsxs)("div",{className:"row",children:[(null==u?void 0:u.workshopVideo)&&(0,l.jsx)(d,{data:u.workshopVideo}),(null==u?void 0:u.serviceHistory)&&(0,l.jsx)(d,{data:u.serviceHistory}),(null==u?void 0:u.bookingApp)&&(0,l.jsx)(d,{data:u.bookingApp}),(null==u?void 0:u.rewards)&&(0,l.jsxs)("div",{className:"col box rewards",children:[(0,l.jsxs)("div",{className:"box-content",children:[(null==(e=u.rewards)?void 0:e.title)&&(0,l.jsx)("h4",{children:u.rewards.title}),(null==(t=u.rewards)?void 0:t.description)&&(0,l.jsx)("p",{children:u.rewards.description})]}),(0,l.jsx)("div",{className:"box-number",children:(0,l.jsx)("h4",{children:(0,l.jsx)("span",{className:"number","data-beforenumber":u.rewards.numberBefore,"data-afternumber":u.rewards.numberAfter,children:u.rewards.number})})})]}),(null==u?void 0:u.andMore)&&(0,l.jsx)("div",{className:"col box",children:(0,l.jsxs)("div",{className:"addmore",children:[(null==(s=u.andMore)?void 0:s.andMoreImage)&&(0,l.jsx)(r(),{src:u.andMore.andMoreImage.node.sourceUrl,title:u.andMore.andMoreImage.node.title,alt:u.andMore.andMoreImage.node.title,width:null!=(m=null==(a=u.andMore.andMoreImage.node.mediaDetails)?void 0:a.width)?m:150,height:null!=(h=null==(c=u.andMore.andMoreImage.node.mediaDetails)?void 0:c.height)?h:150,quality:100}),(null==(x=u.andMore)?void 0:x.andMoreTitle)&&(0,l.jsx)("h4",{children:u.andMore.andMoreTitle})]})})]})]})})}},2678:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>L,default:()=>P});var l=s(7876);
1function a(e){let{component:t}=e;return(0,l.jsx)("section",{className:"landingpagehero hero-gradient text-center",children:(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsx)("div",{className:"col-sm-12",children:(0,l.jsx)("div",{className:"aitoolComponent",children:t&&t})})})})})}var r=s(4232),n=function(e){return e.URL="URL",e.FILE="FILE",e.MANUAL="MANUAL",e}({});let i="Secure session expired. Please reload the page to continue.";async function o(e,t){try{let t=await e.json();if(t&&"string"==typeof t.error&&t.error.trim())return t.error}catch(e){}return t}let d=async(e,t,s)=>{let l=await fetch("/api/ai/extract-vehicle",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inputType:e,inputValue:t,extraData:s})});if(!l.ok){let e=await o(l,"Failed to extract vehicle data");if(401===l.status)throw Error(e||i);throw Error(e)}return await l.json()},c=async e=>{let t=await fetch("/api/ai/generate-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({details:e})});if(!t.ok){let e=await o(t,"Failed to generate report");if(401===t.status)throw Error(e||i);throw Error(e)}return await t.json()},x=async e=>{try{let t=await fetch("/api/ai/generate-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({details:e})});if(!t.ok){let e=await o(t,"Image generation failed");if(401===t.status)throw Error(e||i);return console.warn("Image generation failed"),""}return(await t.json()).image||""}catch(e){if(e instanceof Error&&e.message.toLowerCase().includes("secure session"))throw e;return console.warn("Image generation failed",e),""}},m=e=>new Promise((t,s)=>{let l=new FileReader;l.readAsDataURL(e),l.onload=()=>t(l.result),l.onerror=e=>s(e)}),h=e=>{let{onSearch:t,onManualEntry:s,isLoading:a}=e,[i,o]=(0,r.useState)("UPLOAD"),[d,c]=(0,r.useState)(""),[x,h]=(0,r.useState)(!1),u=async e=>{try{let s=await m(e);t(n.FILE,"image_upload",s)}catch(e){console.error("File read error",e)}},p=async e=>{e.target.files&&e.target.files[0]&&u(e.target.files[0])};return(0,l.jsx)("div",{className:"w-full pb-12 pt-8 px-4",children:(0,l.jsxs)("div",{className:"max-w-2xl mx-auto space-y-8",children:[(0,l.jsxs)("div",{className:"text-center space-y-4",children:[(0,l.jsx)("h1",{className:"text-3xl md:text-5xl font-extrabold text-[#0F172A] leading-tight tracking-tight",children:"Free Selling Insights in 30 Seconds"}),(0,l.jsx)("p",{className:"text-slate-500 text-lg md:text-xl font-medium leading-relaxed max-w-2xl mx-auto",children:"Find out your car’s real-world value and what buyers love — then get a full Proof of Service to sell faster."})]}),(0,l.jsxs)("div",{className:"bg-white rounded-[32px] shadow-2xl shadow-slate-200/60 border border-slate-100 overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex border-b border-slate-100 bg-slate-50/50 p-2 gap-2",children:[(0,l.jsxs)("button",{onClick:()=>o("UPLOAD"),className:"flex-1 py-3 px-4 rounded-2xl text-sm md:text-base font-bold flex items-center justify-center gap-2 transition-all ".concat("UPLOAD"===i?"bg-white text-[#00C853] shadow-sm ring-1 ring-slate-200":"text-slate-500 hover:bg-slate-100"),children:[(0,l.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),"Upload Photo"]}),(0,l.jsxs)("button",{onClick:()=>o("URL"),className:"flex-1 py-3 px-4 rounded-2xl text-sm md:text-base font-bold flex items-center justify-center gap-2 transition-all ".concat("URL"===i?"bg-white text-[#00C853] shadow-sm ring-1 ring-slate-200":"text-slate-500 hover:bg-slate-100"),children:[(0,l.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})}),"Paste Link"]})]}),(0,l.jsxs)("div",{className:"p-6 md:p-8 space-y-6",children:["UPLOAD"===i&&(0,l.jsx)("div",{className:"space-y-4 animate-fade-in-up",children:(0,l.jsxs)("div",{onDragOver:e=>{e.preventDefault(),h(!0)},onDragLeave:e=>{e.preventDefault(),h(!1)},onDrop:e=>{e.preventDefault(),h(!1),e.dataTransfer.files&&e.dataTransfer.files[0]&&u(e.dataTransfer.files[0])},className:"relative flex flex-col items-center justify-center w-full min-h-[380px] rounded-[32px] transition-all border-2 border-dashed ".concat(x?"bg-green-50 border-[#00C853]":"bg-white border-slate-200"),children:[(0,l.jsx)("input",{type:"file",id:"fileUpload",accept:"image/*",onChange:p,className:"hidden",disabled:a}),a?(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[(0,l.jsxs)("svg",{className:"animate-spin h-10 w-10 text-[#00C853] mb-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,l.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,l.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,l.jsx)("span",{className:"text-lg text-slate-600 font-bold",children:"Analyzing your vehicle..."})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center p-4 text-center",children:[(0,l.jsx)("div",{className:"w-20 h-20 bg-[#F0F7FF] rounded-full flex items-center justify-center mb-8",children:(0,l.jsxs)("svg",{className:"w-10 h-10 text-[#2563EB]",width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,l.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,l.jsx)("polyline",{points:"21 15 16 10 5 21"})]})}),(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsx)("h3",{className:"text-2xl font-extrabold text-[#0F172A] mb-2 tracking-tight",children:"Drag & Drop your photo here"}),(0,l.jsx)("p",{className:"text-[#64748B] text-lg max-w-sm mx-auto leading-relaxed",children:"Upload a photo of the car, dashboard, or a screenshot of the specifications."})]}),(0,l.jsx)("label",{htmlFor:"fileUpload",className:"cursor-pointer bg-white border border-[#
1E2E8F0] hover:border-[#00C853] hover:text-[#00C853] text-[#0F172A] font-bold py-3.5 px-10 rounded-2xl shadow-sm transition-all transform active:scale-95 text-lg",children:"Choose from Device"})]})]})}),"URL"===i&&(0,l.jsxs)("div",{className:"space-y-4 animate-fade-in-up",children:[(0,l.jsx)("label",{className:"block text-sm font-bold text-slate-700",children:"Vehicle Advertisement Link"}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-3",children:[(0,l.jsxs)("div",{className:"relative flex-grow",children:[(0,l.jsx)("div",{className:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none",children:(0,l.jsx)("svg",{className:"w-5 h-5 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,l.jsx)("input",{type:"url",value:d,onChange:e=>c(e.target.value),placeholder:"e.g. carsales.com.au/car/...",className:"w-full pl-11 pr-4 py-3.5 bg-slate-50 border border-slate-200 rounded-xl focus:ring-4 focus:ring-green-500/10 focus:border-[#00C853] outline-none text-slate-900 placeholder-slate-400 transition-all font-medium"})]}),(0,l.jsx)("button",{onClick:()=>{d.trim()&&t(n.URL,d)},disabled:a,className:"bg-[#00C853] hover:bg-[#009624] text-white font-bold py-3.5 px-8 rounded-xl shadow-lg shadow-green-600/20 transition-all transform active:scale-[0.98] disabled:opacity-70 disabled:cursor-wait whitespace-nowrap",children:a?(0,l.jsxs)("span",{className:"flex items-center gap-2",children:[(0,l.jsxs)("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,l.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,l.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Analyzing..."]}):"Analyze"})]}),(0,l.jsxs)("div",{className:"flex items-start gap-2 text-xs text-slate-400 font-medium",children:[(0,l.jsx)("svg",{className:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),"Securely extracts make, model, year & specs automatically."]})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,l.jsx)("div",{className:"w-full border-t border-slate-100"})}),(0,l.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,l.jsx)("span",{className:"px-4 bg-white text-slate-400 font-bold uppercase tracking-widest text-[10px]",children:"or"})})]}),(0,l.jsxs)("button",{onClick:s,className:"w-full py-4 border-2 border-dashed border-slate-200 rounded-[20px] text-slate-500 font-bold hover:border-[#00C853] hover:text-[#00C853] hover:bg-slate-50 transition-all flex items-center justify-center gap-2 group",children:[(0,l.jsx)("svg",{className:"w-5 h-5 text-slate-400 group-hover:text-[#00C853]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})}),"Start Manual Search"]})]})]}),(0,l.jsxs)("div",{className:"text-center space-y-2 pt-2",children:[(0,l.jsx)("p",{className:"text-xs text-slate-400",children:"By continuing, you agree to our Terms of Service and Privacy Policy."}),(0,l.jsxs)("div",{className:"flex justify-center gap-6 text-xs font-semibold text-slate-500",children:[(0,l.jsx)("a",{href:"https://glovbox.com.au/legal/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#00C853] hover:underline transition-colors",children:"Terms of Service"}),(0,l.jsx)("a",{href:"https://glovbox.com.au/legal/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#00C853] hover:underline transition-colors",children:"Privacy Policy"})]})]})]})})};var u=s(2695);let p=e=>{let{value:t,isStatic:s}=e,[a,n]=(0,r.useState)(t);return(0,r.useEffect)(()=>{let e;if(s)return void n(t);let l=()=>{n(e=>{let s=t-e;return 1>Math.abs(s)?t:e+.15*s}),e=requestAnimationFrame(l)};return l(),()=>cancelAnimationFrame(e)},[t,s]),(0,l.jsx)(l.Fragment,{children:"$".concat(Math.round(a).toLocaleStr
1ing())})},g=e=>{let{data:t,onReset:s}=e,{min:a,logbook:n,retail:i}=t.marketValue,[o,d]=(0,r.useState)(0),[c,x]=(0,r.useState)(!1),m=(0,r.useRef)(null),[h,g]=(0,r.useState)(!1),[v,f]=(0,r.useState)(!1);(0,r.useEffect)(()=>{(async()=>{await new Promise(e=>setTimeout(e,400)),d(15),await new Promise(e=>setTimeout(e,600)),d(85),await new Promise(e=>setTimeout(e,800)),v||d(50)})()},[]);let b=e=>{if(!m.current)return;let t=m.current.getBoundingClientRect(),s=(e-t.left)/t.width*100;d(s=Math.max(0,Math.min(100,s)))};(0,r.useEffect)(()=>{let e=e=>{h&&(e.preventDefault(),b(e.clientX))},t=e=>{h&&b(e.touches[0].clientX)},s=()=>g(!1);return h&&(window.addEventListener("mousemove",e),window.addEventListener("mouseup",s),window.addEventListener("touchmove",t),window.addEventListener("touchend",s)),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",s),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",s)}},[h]);let j=t.image?t.image:"https://source.unsplash.com/800x600/?".concat(t.year,",").concat(t.make,",").concat(t.model,",car"),N=async()=>{x(!0),window.scrollTo({top:0,behavior:"instant"}),await new Promise(e=>setTimeout(e,800));let e=document.getElementById("report-print-container");if(!e)return;e.classList.add("pdf-mode");let s={margin:0,filename:"GlovBox-Report-".concat(t.make,"-").concat(t.model,".pdf"),image:{type:"jpeg",quality:1},html2canvas:{scale:2.5,useCORS:!0,allowTaint:!0,windowWidth:800,backgroundColor:"#ffffff",logging:!1,letterRendering:!0,scrollX:0,scrollY:0},jsPDF:{unit:"pt",format:"a4",orientation:"portrait"},pagebreak:{mode:["avoid-all","css","legacy"]}};try{window.html2pdf?await window.html2pdf().set(s).from(e).save():alert("Library is still loading. Please try again.")}catch(e){console.error("PDF Generation failed",e),alert("Failed to create PDF. Please try again.")}finally{e.classList.remove("pdf-mode"),x(!1)}};return(0,l.jsxs)("div",{id:"report-print-container",className:"max-w-4xl mx-auto px-4 pb-32 space-y-8 animate-fade-in-up ".concat(c?"pdf-mode":""),children:[(0,l.jsxs)("div",{className:"flex justify-between items-center py-2","data-html2pdf-ignore":"true",children:[(0,l.jsxs)("button",{onClick:s,className:"text-slate-500 hover:text-[#00C853] font-medium text-sm flex items-center gap-1 transition-colors",children:[(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7 7-7"})}),"Start New Report"]}),(0,l.jsxs)("button",{onClick:N,disabled:c,className:"bg-slate-100 hover:bg-slate-200 text-slate-700 text-sm font-semibold py-2 px-4 rounded-lg flex items-center gap-2 transition-colors disabled:opacity-50",children:[c?"Generating...":"Download PDF",(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})})]})]}),(0,l.jsx)("div",{className:"".concat(c?"block":"hidden"," border-b-2 border-[#00C853] pb-6 mb-8"),children:(0,l.jsxs)("div",{className:"flex justify-between items-end",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-3xl font-black text-slate-900",children:"GlovBox Seller Report"}),(0,l.jsx)("p",{className:"text-[#00C853] text-sm font-bold uppercase tracking-widest mt-1",children:"Vehicle Strategy & Valuation"})]}),(0,l.jsxs)("div",{className:"text-right",children:[(0,l.jsx)("span",{className:"text-slate-400 text-xs font-bold block",children:"DATE"}),(0,l.jsx)("span",{className:"text-slate-400 text-sm font-black",children:new Date().toLocaleDateString()})]})]})}),(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-lg border border-slate-100 overflow-hidden break-inside-avoid",children:[(0,l.jsxs)("div",{className:"px-6 py-6 border-b border-slate-50",children:[(0,l.jsxs)("h2",{className:"text-3xl font-black text-slate-900 leading-tight",children:[t.year," ",t.make," ",t.model]}),(0,l.jsx)("p",{className:"text-[#00C853] font-bold text-lg",children:t.variant})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-0",children:[(0,l.jsx)("div",{className:"p-8 bg-white flex items-center justify-center",children:(0,l.jsx)("img",{src:j,alt:"Car Visual",className:"w-full h-auto object-contain max-h-[300px]",crossOrigin:"anonymous"})}),(0,l.jsx)("div",{className:"p-8 bg-slate-50 flex flex-col justify-between gap-6",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest mb-4",children:"Market Appeal"}),(0,l.jsx)("div",{className:"space-y-3",children:t.heroHighlights.map((e,t)=>(0,l.jsxs)("div",{className:"flex items-center gap-3 bg-white px-4 py-3 rounded-lg border border-slate-200 shadow-sm",children:[(0,l.jsx)("div",{className:"w-2 h-2 rounded-full bg-[#00C853]"}),(0,l.jsx)("span",{className:"text-sm font-bold text-slate-800",children:e})]},t))})]})})]})]}),(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 border-t-8 border-slate-900 break-inside-avoid",children:[(0,l.jsxs)("h3",{className:"text-xl font-black text-slate-900 mb-8 uppercase tracking-tight flex items-center gap-3",children:[(0,l.jsx)("div",{className:"w-1.5 h-6 bg-[#00C853]"}),"Market Value Assessment"]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-10",children:[(0,l.jsxs)("div",{className:"p-6 bg-slate-50 rounded-xl border border-slate-200 text-center",children:[(0,l.jsx)("div",{className:"text-xs text-slate-500 uppercase font-black mb-1",children:"Current Estimate"}),(0,l.jsx)("div",{className:"text-4xl font-black text-slate-900 mb-1",children:(0,l.jsx)(p,{value:a+o/100*(n-a),isStatic:c})}),(0,l.jsx)("div",{className:"text-[10px] text-slate-400 font-bold",children:"Standard Logbook Level"})]}),(0,l.jsxs)("div",{className:"p-6 bg-green-50 rounded-xl border-2 border-[#00C853] text-center relative overflow-hidden",children:[(0,l.jsx)("div",{className:"text-xs text-green-700 uppercase font-black mb-1",children:"With Proof of Service"}),(0,l.jsx)("div",{className:"text-4xl font-black text-[#00C853] mb-1",children:"$".concat(Math.round(i).toLocaleStr
1ing())}),(0,l.jsx)("div",{className:"text-[10px] text-green-600 font-bold",children:"Max Market Potential"})]})]}),(0,l.jsxs)("div",{className:"mb-4 pt-4 px-2 select-none",children:[(0,l.jsx)("div",{className:"text-center mb-6",children:(0,l.jsx)("span",{className:"bg-white text-slate-900 text-xs font-black px-4 py-2 rounded-full border border-slate-200 shadow-sm uppercase tracking-wide",children:"Resale Value vs Service History"})}),(0,l.jsxs)("div",{ref:m,className:"h-12 relative cursor-pointer",onMouseDown:e=>{g(!0),f(!0),b(e.clientX)},onTouchStart:e=>{g(!0),f(!0),b(e.touches[0].clientX)},children:[(0,l.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 left-0 right-0 h-4 bg-slate-200 rounded-full overflow-hidden",children:(0,l.jsx)("div",{className:"h-full bg-[#00C853] rounded-full ".concat(h?"":"transition-all duration-700"),style:{width:"".concat(o,"%")}})}),(0,l.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 w-10 h-10 bg-white border-4 border-[#00C853] rounded-full shadow-xl flex items-center justify-center z-10 ".concat(h?"":"transition-all duration-700"),style:{left:"calc(".concat(o,"% - 20px)")},children:(0,l.jsx)("div",{className:"w-1.5 h-1.5 bg-[#00C853] rounded-full animate-ping"})})]}),(0,l.jsxs)("div",{className:"flex justify-between text-[10px] font-black text-slate-400 mt-4 uppercase tracking-[0.15em]",children:[(0,l.jsxs)("div",{className:"text-left",children:[(0,l.jsx)("div",{className:"text-red-500",children:"Missing"}),(0,l.jsx)("div",{children:"High Risk"})]}),(0,l.jsx)("div",{className:"text-center",children:"Partial"}),(0,l.jsxs)("div",{className:"text-right",children:[(0,l.jsx)("div",{className:"text-[#00C853]",children:"Complete"}),(0,l.jsx)("div",{children:"Best Value"})]})]})]})]}),(0,l.jsx)("div",{className:"bg-[#1a237e] rounded-xl p-8 break-inside-avoid text-white",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-center",children:[(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("h3",{className:"text-3xl font-black leading-tight",children:["Boost Value by ",(0,l.jsxs)("span",{className:"text-[#00C853]",children:["$",(i-n).toLocaleString(),"+"]})]}),(0,l.jsx)("p",{className:"text-blue-100 font-bold",children:"Auto-verify your workshop logs to reach the Proof of Service tier."})]}),(0,l.jsx)("div",{className:"flex justify-end","data-html2pdf-ignore":"true",children:(0,l.jsx)("a",{href:(0,u.Z)("register"),className:"bg-[#00C853] text-white font-black py-4 px-8 rounded-xl shadow-2xl hover:bg-glovGreenDark transition-all",children:"Unlock Value Now"})})]})}),(0,l.jsx)("h3",{className:"text-2xl font-black text-slate-900 border-b-4 border-slate-900 pb-2",children:"Selling Strategy"}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 break-inside-avoid",children:[{n:"1",t:"Activate Scam Protection",d:"Secure ownership of your ".concat(t.make," in 1 min. Free forever.")},{n:"2",t:"Connect Your Workshop",d:"Link your mechanic to auto-verify history and command $2k-$5k more."},{n:"3",t:"Build Secure Vault",d:"Upload photos/receipts for a tamper-proof digital buyer portfolio."}].map((e,t)=>(0,l.jsxs)("div",{className:"bg-white rounded-xl border-2 border-slate-100 p-6 flex flex-col h-full shadow-sm",children:[(0,l.jsx)("div",{className:"bg-[#00C853] text-white w-10 h-10 rounded-full flex items-center justify-center font-black mb-4",children:e.n}),(0,l.jsx)("h4",{className:"font-black text-slate-900 mb-3 text-lg",children:e.t}),(0,l.jsx)("p",{className:"text-sm text-slate-600 font-bold leading-relaxed",children:e.d})]},t))}),(0,l.jsxs)("div",{className:"bg-orange-50 rounded-xl border-2 border-orange-200 p-8 break-inside-avoid",children:[(0,l.jsxs)("h4",{className:"font-black text-orange-900 mb-4 flex items-center gap-2 uppercase tracking-widest text-sm",children:[(0,l.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),"Security Red Flags"]}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:t.sellerAdvice.redFlags.map((e,t)=>(0,l.jsxs)("div",{className:"bg-white p-4 rounded-lg border border-orange-100 text-sm text-slate-900 font-bold shadow-sm",children:["• ",e]},t))})]}),(0,l.jsx)("div",{className:"page-break"}),(0,l.jsx)("h3",{className:"text-2xl font-black text-slate-900 border-b-4 border-slate-900 pb-2",children:"Vehicle Facts"}),(0,l.jsx)("div",{className:"bg-white rounded-xl border-l-8 border-[#00C853] p-10 shadow-lg break-inside-avoid",children:(0,l.jsx)("p",{className:"text-2xl text-slate-800 font-black leading-snug italic",children:'"'+t.specs.healthNote+'"'})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 break-inside-avoid",children:[(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 border border-slate-100",children:[(0,l.jsx)("h4",{className:"text-lg font-black text-slate-900 mb-6 uppercase tracking-widest",children:"Specifications"}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex items-center gap-4 bg-slate-50 p-4 rounded-lg",children:[(0,l.jsx)("span",{className:"text-2xl",children:"⛽"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-[10px] text-slate-500 font-black uppercase",children:"Economy"}),(0,l.jsx)("div",{className:"text-slate-900 font-black",children:t.specs.economy})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-4 bg-slate-50 p-4 rounded-lg",children:[(0,l.jsx)("span",{className:"text-2xl",children:"⚙️"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-[10px] text-slate-500 font-black uppercase",children:"Engine"}),(0,l.jsx)("div",{className:"text-slate-900 font-black",children:t.specs.engine})]})]})]})]}),(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 border border-slate-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,l.jsx)("div",{className:"flex text-yellow-400",children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,l.jsx)("svg",{className:"w-6 h-6 ".concat(s<t.safety.stars?"fill-current":"text-slate-200 fill-current"),viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},s))}),(0,l.jsxs)("span",{className:"font-black text-slate-900 text-lg",children:["ANCAP ",t.safety.stars]})]}),(0,l.jsx)("ul",{className:"space-y-3",children:t.safety.features.map((e,t)=>(0,l.jsxs)("li",{className:"flex items-start gap-3 text-sm text-slate-700 font-black",children:[(0,l.jsx)("span",{className:"text-[#00C853] font-black",children:"✔"}),e]},t))})]})]}),(0,l.jsx)("div",{className:"bg-[#111827] rounded-[40px] p-12 break-inside-avoid relative overflow-hidden text-white mt-12",children:(0,l.jsxs)("div",{className:"relative z-10 grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsx)("div",{className:"inline-block bg-[#00C853]/20 text-[#00C853] text-[10px] font-black px-4 py-2 rounded-full border border-[#00C853]/30 uppercase tracking-[0.3em]",children:"Official Records Check"}),(0,l.jsx)("h2",{className:"text-5xl font-black leading-tight",children:"Don't let missing history kill your sale."}),(0,l.jsx)("p",{className:"text-slate-400 text-xl font-bold leading-relaxed",children:"Verified workshop logs prove your car's true value."}),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 pt-4","data-html2pdf-ignore":"true",children:[(0,l.jsx)("a",{href:(0,u.Z)("register"),className:"inline-flex items-center justify-center bg-[#00C853] text-white font-black py-5 px-10 rounded-2xl shadow-xl text-xl",children:"Unlock Proof of Service"}),(0,l.jsx)("a",{href:"https://tiny.one/mvhz3p8y",className:"inline-flex items-center justify-center bg-white/10 text-white font-bold py-5 px-8 rounded-2xl border border-white/10 text-lg",children:"View Sample"})]})]}),(0,l.jsxs)("div",{className:"bg-white/5 rounded-3xl border border-white/10 p-10",children:[(0,l.jsx)("h4",{className:"text-2xl font-black text-gray-200 mb-8 border-b border-white/10 pb-6 uppercase tracking-widest",children:"Verification Status"}),(0,l.jsx)("div",{className:"space-y-8",children:["Odometer Check","Service History","Recall Status","PPSR Check"].map((e,t)=>(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("span",{className:"text-gray-200 text-lg font-black",children:e}),(0,l.jsx)("span",{className:"px-4 py-2 rounded-xl text-[10px] font-black border ".concat("Recall Status"===e?"text-[#10B981] border-[#10B981]/30 bg-[#10B981]/10":"text-orange-500 border-orange-500/30 bg-
1orange-500/10"),children:"Recall Status"===e?"CLEAR":"PENDING"})]},t))})]})]})}),(0,l.jsxs)("div",{className:"text-center mt-20 pb-12 break-inside-avoid border-t border-slate-100 pt-12",children:[(0,l.jsx)("span",{className:"font-black text-3xl text-slate-300 tracking-tighter",children:"GlovBox"}),(0,l.jsx)("p",{className:"text-[10px] text-slate-400 font-bold max-w-2xl mx-auto uppercase tracking-[0.2em] mt-6 leading-relaxed",children:"AI Report indicative only. compiled from public sources. Not a professional valuation. Upgrade to Proof of Service for verified history to maximize value. \xa9 2025 GlovBox."})]})]})},v=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"fixed bottom-6 right-6 z-40 animate-float print:hidden",children:[(0,l.jsxs)("a",{href:(0,u.Z)("register"),target:"_blank",rel:"noopener noreferrer",className:"bg-[#00C853] hover:bg-[#009624] text-white font-bold py-3 px-6 rounded-full shadow-xl border-2 border-white flex items-center gap-2 transition-transform transform hover:scale-105 no-underline",children:[(0,l.jsx)("span",{children:"Get My Proof of Service"}),(0,l.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]}),(0,l.jsx)("div",{className:"text-center mt-1",children:(0,l.jsx)("span",{className:"bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow-lg opacity-90",children:"Free for first 2000 sellers"})})]})});var f=s(7229);let b=e=>{let{initialData:t,onConfirm:s,onCancel:a,isLoading:n}=e,[i,o]=(0,r.useState)(t);(0,r.useEffect)(()=>{o(t)},[t]);let d=e=>{let{name:t,value:s}=e.target;o(e=>({...e,[t]:s}))},c="space-y-1.5",x=f.x,m=f.V7,h=f.$W;return(0,l.jsx)("div",{className:"max-w-2xl mx-auto px-4 mt-8 animate-fade-in-up pb-12",children:(0,l.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl shadow-slate-200/50 p-6 md:p-8 border border-slate-100 relative",children:[(0,l.jsxs)("div",{className:"text-center mb-8 relative",children:[(0,l.jsx)("button",{type:"button",onClick:a,className:"absolute left-0 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 p-2 -ml-2 rounded-full hover:bg-slate-50 transition-colors",title:"Start Again",children:(0,l.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 19l-7-7 7-7"})})}),(0,l.jsx)("h2",{className:"text-2xl font-extrabold text-slate-900",children:"Confirm Details"}),(0,l.jsx)("p",{className:"text-slate-500 text-sm mt-1 font-medium",children:"Review the details to ensure an accurate report."})]}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),s(i)},className:"space-y-6",children:[(0,l.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,l.jsxs)("div",{className:"col-span-4 sm:col-span-3 lg:col-span-3 space-y-1.5",children:[(0,l.jsxs)("label",{className:x,children:["Year ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsx)("input",{type:"number",name:"year",value:i.year,onChange:d,className:m,placeholder:"2020",required:!0})]}),(0,l.jsxs)("div",{className:"col-span-8 sm:col-span-9 lg:col-span-9 space-y-1.5",children:[(0,l.jsxs)("label",{className:x,children:["Make ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsx)("input",{type:"text",name:"make",value:i.make,onChange:d,className:m,placeholder:"Toyota",required:!0})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{className:c,children:[(0,l.jsxs)("label",{className:x,children:["Model ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsx)("input",{type:"text",name:"model",value:i.model,onChange:d,className:m,placeholder:"RAV4",required:!0})]}),(0,l.jsxs)("div",{className:c,children:[(0,l.jsx)("label",{className:x,children:"Variant / Trim"}),(0,l.jsx)("input",{type:"text",name:"variant",value:i.variant,onChange:d,className:m,placeholder:"e.g. GXL Hybrid"})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,l.jsxs)("div",{className:c,children:[(0,l.jsx)("label",{className:x,children:"Engine"}),(0,l.jsx)("input",{type:"text",name:"engine",value:i.engine,onChange:d,className:m,placeholder:"2.5L"})]}),(0,l.jsxs)("div",{className:c,children:[(0,l.jsx)("label",{className:x,children:"Fuel"}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("select",{name:"fuelType",value:i.fuelType,onCh
1ange:d,className:h,children:[(0,l.jsx)("option",{value:"",disabled:!0,children:"Select..."}),(0,l.jsx)("option",{value:"Petrol",children:"Petrol"}),(0,l.jsx)("option",{value:"Diesel",children:"Diesel"}),(0,l.jsx)("option",{value:"Hybrid",children:"Hybrid"}),(0,l.jsx)("option",{value:"Electric",children:"Electric"}),(0,l.jsx)("option",{value:"LPG",children:"LPG"}),(0,l.jsx)("option",{value:"Other",children:"Other"})]}),(0,l.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-4 text-slate-500",children:(0,l.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]})]}),(0,l.jsxs)("div",{className:c,children:[(0,l.jsx)("label",{className:x,children:"Odometer (km)"}),(0,l.jsx)("input",{type:"number",name:"odometer",value:i.odometer,onChange:d,className:m,placeholder:"e.g. 45000"})]})]}),(0,l.jsx)("div",{className:"pt-6",children:(0,l.jsx)("button",{type:"submit",disabled:n,className:"w-full bg-[#00C853] hover:bg-[#009624] text-white font-bold text-xl py-4 rounded-xl shadow-lg shadow-green-500/20 transition-all transform active:scale-[0.99] flex justify-center items-center gap-2 group disabled:opacity-70 disabled:cursor-not-allowed",children:n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("svg",{className:"animate-spin h-6 w-6 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,l.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,l.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,l.jsx)("span",{children:"Analyzing..."})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:"Generate My Report"}),(0,l.jsx)("svg",{className:"w-5 h-5 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})})}),(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("p",{className:"text-xs text-slate-300 font-medium",children:"We use these details to calculate the market value range."})})]})]})})};function j(){let[e,t]=(0,r.useState)("INPUT"),[s,a]=(0,r.useState)({year:"",make:"",model:"",variant:"",engine:"",fuelType:"",odometer:""}),[n,i]=(0,r.useState)(null),[o,m]=(0,r.useState)(!1),[u,p]=(0,r.useState)(null),f=e=>!!(e&&e.toLowerCase().includes("secure session")),j=async(e,s,l)=>{m(!0),p(null);try{let r=await d(e,s,l);a(r),t("CONFIRM")}catch(s){console.error(s);let e=s instanceof Error?s.message:null;f(e)?(p(e),t("INPUT")):(p(e||"We couldn't extract details from that input. Please enter them manually below."),t("CONFIRM"))}finally{m(!1)}},N=async e=>{m(!0),p(null);try{a(e);let[s,l]=await Promise.all([c(e),x(e)]);s.image=l,i(s),t("REPORT")}catch(t){console.error(t);let e=t instanceof Error?t.message:null;f(e)?p(e):p(e||"Failed to generate report. Please try again.")}finally{m(!1)}},w=()=>{i(null),a({year:"",make:"",model:"",variant:"",engine:"",fuelType:"",odometer:""}),t("INPUT"),p(null)};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"min-h-screen",children:["INPUT"===e&&(0,l.jsx)(h,{onSearch:j,onManualEntry:()=>{a({year:"",make:"",model:"",variant:"",engine:"",fuelType:"",odometer:""}),t("CONFIRM")},isLoading:o}),"CONFIRM"===e&&(0,l.jsx)(b,{initialData:s,onConfirm:N,onCancel:w,isLoading:o}),"REPORT"===e&&n&&(0,l.jsxs)("div",{className:"w-full mt-6",children:[(0,l.jsx)(g,{data:n,onReset:w}),(0,l.jsx)(v,{})]}),u&&(0,l.jsx)("div",{className:"max-w-xl mx-auto mt-6 px-4",children:(0,l.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative",role:"alert",children:(0,l.jsx)("span",{className:"block sm:inline",children:u})})}),"REPORT"!==e&&(0,l.jsx)("div",{className:"max-w-xl mx-auto px-4 text-center mt-12",children:(0,l.jsxs)("p",{className:"text-xs text-gray-400",children:["This free report uses AI and public web data only. For verified workshop invoices, PPSR and full Proof of Service, upgrade above.",(0,l.jsx)("br",{}
1),"\xa9 ",new Date().getFullYear()," GlovBox. All rights reserved."]})})]})})}var N=s(937),w=s(2528),y=s(7715),k=s(7328),C=s.n(k),S=s(9099),L=!0;function P(e){var t,s,n,i,o,d,c;let{currentPage:x,aiToolOptions:m,seoOptions:h}=e,u=(0,S.useRouter)();(0,r.useEffect)(()=>{m||u.replace("/404")},[m]);let p=(0,y.$)(x);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(C(),{children:[(0,l.jsx)("title",{children:(null==h||null==(t=h.seo)?void 0:t.title)&&(null==h||null==(s=h.seo)?void 0:s.title)}),(0,l.jsx)("meta",{name:"robots",content:"noindex, follow"}),(0,l.jsx)("link",{rel:"canonical",href:p}),(null==h||null==(n=h.seo)?void 0:n.metaDesc)&&(0,l.jsx)("meta",{name:"description",content:null==h||null==(i=h.seo)?void 0:i.metaDesc}),(null==h||null==(d=h.featuredImage)||null==(o=d.node)?void 0:o.sourceUrl)&&(0,l.jsx)("meta",{property:"og:image",content:null==h||null==(c=h.featuredImage)?void 0:c.node.sourceUrl})]}),(null==m?void 0:m.component)=="gb_seller_component"&&(0,l.jsx)(a,{component:(0,l.jsx)(j,{})}),(0,l.jsx)(w.A,{}),(0,l.jsx)(N.A,{})]})}},2695:(e,t,s)=>{"use strict";s.d(t,{U:()=>l,Z:()=>a});let l="https://app.glovbox.com.au".replace(/\/?$/,"/"),a=e=>"".concat(l).concat(e.replace(/^\/+/,""))},7229:(e,t,s)=>{"use strict";s.d(t,{$W:()=>r,V7:()=>a,f8:()=>o,jb:()=>i,r1:()=>n,x:()=>l});let l="block text-[10px] font-black uppercase tracking-widest text-slate-500 ml-1 mb-2",a="w-full box-border bg-slate-50 border rounded-2xl px-6 py-4 text-base text-slate-900 outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all placeholder:text-slate-300",r="".concat(a," appearance-none pr-10"),n="text-xs font-semibold text-red-500 mt-1";function i(e){return"".concat(a," ").concat(e?"border-red-500":"border-slate-200")}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(r," ").concat(e?"border-red-500":"border-slate-200"," ").concat(t).trim()}},7715:(e,t,s)=>{"use strict";function l(e){return e&&"home"!==e?"https://glovbox.com.au/"+e:"https://glovbox.com.au/"}s.d(t,{$:()=>l}),s(4232)}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(689)),_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.