PageSourceSearch

https://axisxchange.com/static/js/8557.d4375aa6.chunk.js

js axisxchange.com collected 2026-10-02 01:24:38 UTC 33,461 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdiscovery_nissan=self.webpackChunkdiscovery_nissan||[]).push([[8557],{3169:(e,r,l)=>{l.d(r,{Z:()=>c});var o=l(579),s=l(3033),a=l(4765),t=l(5647),n=l(5003),i=l(5158),d=l(7971);const c=(0,n.R)((function(e,r){const{className:l,children:n,direction:c="column",justify:p,align:x,...m}=(0,s.M)(e),h=(0,i.o)("Card",e);return(0,o.jsx)(d.B.div,{ref:r,className:(0,a.cx)("chakra-card",l),__css:{display:"flex",flexDirection:c,justifyContent:p,alignItems:x,position:"relative",minWidth:0,wordWrap:"break-word",...h.container},...m,children:(0,o.jsx)(t.s,{value:h,children:n})})}))},3225:(e,r,l)=>{l.d(r,{MJ:()=>f,TP:()=>h,Uc:()=>u,eK:()=>g});var o=l(579),s=l(3194),a=l(3033),t=l(6417),n=l(8813),i=l(4765),d=l(5043),c=l(5003),p=l(5158),x=l(7971);const[m,h]=(0,t.q)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[b,u]=(0,t.q)({strict:!1,name:"FormControlContext"});const f=(0,c.R)((function(e,r){const l=(0,p.o)("Form",e),t=(0,a.M)(e),{getRootProps:c,htmlProps:h,...u}=function(e){const{id:r,isRequired:l,isInvalid:o,isDisabled:a,isReadOnly:t,...i}=e,c=(0,d.useId)(),p=r||`field-${c}`,x=`${p}-label`,m=`${p}-feedback`,h=`${p}-helptext`,[b,u]=(0,d.useState)(!1),[f,g]=(0,d.useState)(!1),[y,j]=(0,d.useState)(!1),v=(0,d.useCallback)((function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:h,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ref:(0,s.Px)(e,(e=>{e&&g(!0)}))}}),[h]),S=(0,d.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,"data-focus":(0,n.s)(y),"data-disabled":(0,n.s)(a),"data-invalid":(0,n.s)(o),"data-readonly":(0,n.s)(t),id:void 0!==e.id?e.id:x,htmlFor:void 0!==e.htmlFor?e.htmlFor:p}}),[p,a,y,o,t,x]),A=(0,d.useCallback)((function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:m,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ref:(0,s.Px)(e,(e=>{e&&u(!0)})),"aria-live":"polite"}}),[m]),k=(0,d.useCallback)((function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},...i,ref:e,role:"group","data-focus":(0,n.s)(y),"data-disabled":(0,n.s)(a),"data-invalid":(0,n.s)(o),"data-readonly":(0,n.s)(t)}}),[i,a,y,o,t]),C=(0,d.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,role:"presentation","aria-hidden":!0,children:e.children||"*"}}),[]);return{isRequired:!!l,isInvalid:!!o,isReadOnly:!!t,isDisabled:!!a,isFocused:!!y,onFocus:()=>j(!0),onBlur:()=>j(!1),hasFeedbackText:b,setHasFeedbackText:u,hasHelpText:f,setHasHelpText:g,id:p,labelId:x,feedbackId:m,helpTextId:h,htmlProps:i,getHelpTextProps:v,getErrorMessageProps:A,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:C}}(t),f=(0,i.cx)("chakra-form-control",e.className);return(0,o.jsx)(b,{value:u,children:(0,o.jsx)(m,{value:l,children:(0,o.jsx)(x.B.div,{...c({},r),className:f,__css:l.container})})})}));f.displayName="FormControl";const g=(0,c.R)((function(e,r){const l=u(),s=h(),a=(0,i.cx)("chakra-form__helper-text",e.className);return(0,o.jsx)(x.B.div,{...l?.getHelpTextProps(e,r),__css:s.helperText,className:a})}));g.displayName="FormHelperText"},3533:(e,r,l)=>{l.d(r,{x:()=>t});var o=l(579),s=l(5003),a=l(7971);const t=(0,s.R)((function(e,r){const{templateAreas:l,gap:s,rowGap:t,columnGap:n,column:i,row:d,autoFlow:c,autoRows:p,templateRows:x,autoColumns:m,templateColumns:h,...b}=e,u={display:"grid",gridTemplateAreas:l,gridGap:s,gridRowGap:t,gridColumnGap:n,gridAutoColumns:m,gridColumn:i,gridRow:d,gridAutoFlow:c,gridAutoRows:p,gridTemplateRows:x,gridTemplateColumns:h};return(0,o.jsx)(a.B.div,{ref:r,__css:u,...b})}));t.displayName="Grid"},3635:(e,r,l)=>{l.d(r,{t:()=>t,v:()=>n});var o=l(8813),s=l(7246),a=l(3225);function t(e){const{isDisabled:r,isInvalid:l,isReadOnly:s,isRequired:a,...t}=n(e);return{...t,disabled:r,readOnly:s,required:a,"aria-invalid":(0,o.r)(l),"aria-required":(0,o.r)(a),"aria-readonly":(0,o.r)(s)}}function n(e){const r=(0,a.Uc)(),{id:l,disabled:o,readOnly:t,required:n,isRequired:i,isInvalid:d,isReadOnly:c,isDisabled:p,onFocus:x,onBlur:m,...h}=e,b=e["aria-describedby"]?[e["aria-describedby"]]:[];return r?.hasFeedbackText&&r?.isInvalid&&b.push(r.feedbackId),r?.hasHelpText&&b.pu
1sh(r.helpTextId),{...h,"aria-describedby":b.join(" ")||void 0,id:l??r?.id,isDisabled:o??p??r?.isDisabled,isReadOnly:t??c??r?.isReadOnly,isRequired:n??i??r?.isRequired,isInvalid:d??r?.isInvalid,onFocus:(0,s.H)(r?.onFocus,x),onBlur:(0,s.H)(r?.onBlur,m)}}},4330:(e,r,l)=>{l.d(r,{b:()=>i});var o=l(579),s=l(4765),a=l(5647),t=l(5003),n=l(7971);const i=(0,t.R)((function(e,r){const{className:l,...t}=e,i=(0,a.Q)();return(0,o.jsx)(n.B.div,{ref:r,className:(0,s.cx)("chakra-card__body",l),__css:i.body,...t})}))},5647:(e,r,l)=>{l.d(r,{Q:()=>a,s:()=>s});var o=l(5290);const[s,a]=(0,o.Wh)("Card")},5699:(e,r,l)=>{l.d(r,{p:()=>c});var o=l(579),s=l(3033),a=l(4765),t=l(3635),n=l(5003),i=l(5158),d=l(7971);const c=(0,n.R)((function(e,r){const{htmlSize:l,...n}=e,c=(0,i.o)("Input",n),p=(0,s.M)(n),x=(0,t.t)(p),m=(0,a.cx)("chakra-input",e.className);return(0,o.jsx)(d.B.input,{size:l,...x,__css:c.field,ref:r,className:m})}));c.displayName="Input",c.id="Input"},8557:(e,r,l)=>{l.r(r),l.d(r,{default:()=>Y});var o=l(5043),s=l(5371),a=l(9081),t=l(2107),n=l(6870),i=l(2703),d=l(3935),c=l(1054),p=l(9542),x=l(5929),m=l(5071),h=l(7516),b=l(202),u=l(5699),f=l(8846),g=l(6148),y=l(7139),j=l(3169),v=l(4330),S=l(579),A=l(4765),k=l(5647),C=l(5003),w=l(7971);const E=(0,C.R)((function(e,r){const{className:l,...o}=e,s=(0,k.Q)();return(0,S.jsx)(w.B.div,{ref:r,className:(0,A.cx)("chakra-card__header",l),__css:s.header,...o})}));var z=l(3533),_=l(2342),W=l(3047),R=l(7667),B=l(4443);const D=e=>{let{label:r,children:l}=e;return(0,S.jsxs)(s.s,{align:"center",children:[(0,S.jsx)(a.E,{w:{base:"100px",md:"80px"},fontSize:"sm",fontWeight:"medium",color:"#595A5A",textAlign:"right",mr:3,flexShrink:0,children:r}),(0,S.jsx)(t.a,{flex:"1",children:l})]})},T={control:e=>({...e,borderColor:"#595A5A",backgroundColor:"transparent",fontSize:"14px",width:"100%"}),menu:e=>({...e,zIndex:9999})},I=[{label:"FWD",value:"FWD"},{label:"RWD",value:"RWD"},{label:"AWD",value:"AWD"},{label:"4WD",value:"4WD"}],O=[{label:"Automatic",value:"Automatic"},{label:"Manual",value:"Manual"},{label:"CVT",value:"CVT"}],L=[{label:"1.0L",value:"1.0L"},{label:"1.5L",value:"1.5L"},{label:"2.0L",value:"2.0L"},{label:"2.5L",value:"2.5L"},{label:"3.0L",value:"3.0L"}],N=[{label:"Petrol",value:"Petrol"},{label:"Diesel",value:"Diesel"},{label:"Hybrid",value:"Hybrid"},{label:"Electric",value:"Electric"}],F=[{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"},{label:"8",value:"8"}],M=(e,r)=>{if(!e||null===r||void 0===r||!r.length)return null;const l=e=>String(e).toLowerCase().replace(/[^a-z0-9]/g,""),o=l(e);let s=r.find((e=>l(e.value)===o));if(s)return s;if(s=r.find((e=>l(e.value).includes(o)||o.includes(l(e.value)))),s)return s;const a=o.split(/\s+/).filter(Boolean);return s=r.find((e=>a.some((r=>r.length>1&&l(e.value).includes(r))))),s||null},H=e=>{if(!e)return[];let r=e;if("string"===typeof e)try{if(r=JSON.parse(e),"string"===typeof r)try{r=JSON.parse(r)}catch{}}catch{return[]}if(Array.isArray(r))return r;if(r&&"object"===typeof r){if(Array.isArray(r.details))return r.details;if(Array.isArray(r.events))return r.events;if(Array.isArray(r.accidentDetails))return r.accidentDetails;if(Array.isArray(r.accidentEvents))return r.accidentEvents;if(Array.isArray(r.data))return r.data;if(Array.isArray(r.records))return r.records;if(Array.isArray(r.history))return r.history;const e=Object.values(r);if(e.length>0&&e.every((e=>"object"===typeof e&&null!==e)))return e;if(Object.keys(r).length>0)return[r]}return[]},q=e=>{if(!e)return[];let r=e;if("string"===typeof r){const e=r.trim();if(e.startsWith("[")||e.startsWith("{"))try{if(r=JSON.parse(e),"string"===typeof r)try{r=JSON.parse(r)}catch{}}catch{r=e}}return Array.isArray(r)?r:"string"===typeof r&&r.trim()?r.split(/[,;\n]/).map((e=>e.trim())).filter(Boolean):[]},P=e=>{let{carId:r}=e;const l=B.A.checkForToken(),[A,k]=(0,o.useState)(null),[C,w]=(0,o.useState)(""),P=o.useRef(!1),[Y,J]=(0,o.useState)([]),[Z,$]=(0,o.useState)([]),[G,K]=(0,o.useState)([]),[V,Q]=(0,o.useState)([]),[X,U]=(0,o.useState)([]),[ee,re]=(0,o.useState)(null),[le,oe]=(0,o.useState)(null),[se,ae]=(0,o.useState)(null),[te,ne]=(0,o.useState)(null),[ie,de]=(0,o.useState)(null),[ce,pe]=(0,o.useState)(null),[xe,me]=(0,o.useState)(null),[he,be]=(0,o.useState)(null),[ue,fe]=(0,o.useState)(null),[ge,ye]=(0,o.useState)(null),{isOpen:je,onOpen:ve,onClose:Se}=(0,n.j)();(0,o.useEffect)((()=>
1{if(!l)return;(async()=>{try{const e=await(0,R.Rl)(r,l);k(e),e.year&&re({label:String(e.year),value:String(e.year)})}catch(e){console.error(e)}})()}),[r,l]),(0,o.useEffect)((()=>{P.current||null!=(null===A||void 0===A?void 0:A.odometer)&&(w(String(A.odometer)),P.current=!0)}),[null===A||void 0===A?void 0:A.odometer]),(0,o.useEffect)((()=>{A&&(A.drivetrain&&pe(M(A.drivetrain,I)||{label:A.drivetrain,value:A.drivetrain}),A.transmission&&me(M(A.transmission,O)||{label:A.transmission,value:A.transmission}),A.displacement&&be(M(A.displacement,L)||{label:A.displacement,value:A.displacement}),A.fuel&&fe(M(A.fuel,N)||{label:A.fuel,value:A.fuel}),A.cylinder&&ye(M(A.cylinder,F)||{label:A.cylinder,value:A.cylinder}))}),[A]),(0,o.useEffect)((()=>{if(!l)return;(async()=>{try{const e=await(0,R.b0)();if(J(e.map((e=>({label:String(e),value:String(e)})))),ee){const e=(await(0,R.WP)(ee.value)).map((e=>({label:e,value:e})));if($(e),A&&!le){const r=M(A.make,e);r&&oe(r)}}else $([]);if(ee&&le){const e=(await(0,R.zr)(ee.value,le.value)).map((e=>({label:e,value:e})));if(K(e),A&&!se){const r=M(A.model,e);r&&ae(r)}}else K([]);if(ee&&le&&se){const e=(await(0,R.qY)(ee.value,le.value,se.value)).map((e=>({label:e,value:e})));if(Q(e),A&&!te){const r=M(A.trim,e);r&&ne(r)}}else Q([]);if(ee&&le&&se&&te){const e=(await(0,R.ne)(ee.value,le.value,se.value,te.value)).map((e=>({label:e,value:e})));if(U(e),A&&!ie){const r=M(A.body_type,e);r&&de(r)}}else U([])}catch(e){console.error(e)}})()}),[ee,le,se,te,l]);const Ae=async function(e,o,s){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];s(o);for(let r of a)r(null);for(let n of a){const e=n===oe?"make":n===ae?"model":n===ne?"trim":n===de?"body_type":null;if(e)try{await(0,R.SY)(r,{[e]:null},!0,l)}catch(t){console.error(`Error resetting ${e}:`,t)}}try{await(0,R.SY)(r,{[e]:(null===o||void 0===o?void 0:o.value)||null},!0,l)}catch(t){console.error(`Error updating ${e}:`,t)}},ke=async()=>{try{await(0,R.SY)(r,{odometer:C},!0,l)}catch(e){console.error("Error updating odometer:",e)}};if(!A)return(0,S.jsx)(a.E,{children:"Loading car details..."});const Ce=H(A.carfax_accident_details),we=H(A.autocheck_accident_details),Ee=H(A.autocheck_accident_events);return(0,S.jsxs)(s.s,{minH:"100vh",mt:{base:"20px",md:"50px"},direction:{base:"column",md:"row"},children:[(0,S.jsxs)(t.a,{display:{base:"flex",md:"none"},px:4,pb:3,alignItems:"center",gap:2,children:[(0,S.jsx)(i.K,{icon:(0,S.jsx)(_.R,{}),size:"sm",variant:"outline",borderColor:"#595A5A",color:"#595A5A",onClick:ve,"aria-label":"Open specs"}),(0,S.jsx)(a.E,{fontSize:"sm",color:"#595A5A",fontWeight:"medium",children:"Edit Specs"})]}),(0,S.jsxs)(d._s,{isOpen:je,placement:"left",onClose:Se,size:"xs",children:[(0,S.jsx)(c.m,{}),(0,S.jsxs)(p.z,{children:[(0,S.jsx)(x.s,{}),(0,S.jsx)(m.r,{borderBottomWidth:"1px",color:"#595A5A",fontSize:"md",children:"Vehicle Specs"}),(0,S.jsx)(h.c,{pt:4,overflowY:"auto",children:(0,S.jsxs)(b.T,{spacing:4,align:"stretch",children:[(0,S.jsx)(D,{label:"Year:",children:(0,S.jsx)(W.Ay,{options:Y,value:ee,onChange:e=>Ae("year",e,re,[oe,ae,ne,de]),styles:T,placeholder:"Select Year"})}),(0,S.jsx)(D,{label:"Make:",children:(0,S.jsx)(W.Ay,{options:Z,value:le,onChange:e=>Ae("make",e,oe,[ae,ne,de]),styles:T,isDisabled:!ee,placeholder:"Select Make"})}),(0,S.jsx)(D,{label:"Model:",children:(0,S.jsx)(W.Ay,{options:G,value:se,onChange:e=>Ae("model",e,ae,[ne,de]),styles:T,isDisabled:!le,placeholder:"Select Model"})}),(0,S.jsx)(D,{label:"Trim:",children:(0,S.jsx)(W.Ay,{options:V,value:te,onChange:e=>Ae("trim",e,ne,[de]),styles:T,isDisabled:!se,placeholder:"Select Trim"})}),(0,S.jsx)(D,{label:"Body Type:",children:(0,S.jsx)(W.Ay,{options:X,value:ie,onChange:e=>Ae("body_type",e,de),styles:T,isDisabled:!te,placeholder:"Select Body Type"})}),(0,S.jsx)(D,{label:"Drive:",children:(0,S.jsx)(W.Ay,{options:I,value:ce,onChange:e=>Ae("drivetrain",e,pe),styles:T,placeholder:"Select Drive"})}),(0,S.jsx)(D,{label:"Transmission:",children:(0,S.jsx)(W.Ay,{options:O,value:xe,onChange:e=>Ae("transmission",e,me),styles:T,placeholder:"Select Transmission"})}),(0,S.jsx)(D,{label:"Displacement:",children:(0,S.jsx)(W.Ay,{options:L,value:he,onCh
1ange:e=>Ae("displacement",e,be),styles:T,placeholder:"Select Displacement"})}),(0,S.jsx)(D,{label:"Fuel:",children:(0,S.jsx)(W.Ay,{options:N,value:ue,onChange:e=>Ae("fuel",e,fe),styles:T,placeholder:"Select Fuel"})}),(0,S.jsx)(D,{label:"Cylinders:",children:(0,S.jsx)(W.Ay,{options:F,value:ge,onChange:e=>Ae("cylinder",e,ye),styles:T,placeholder:"Select Cylinders"})}),(0,S.jsx)(D,{label:"Odometer:",children:(0,S.jsx)(u.p,{size:"sm",value:C,onChange:e=>w(e.target.value),onBlur:ke,bg:"white",border:"1px",borderColor:"#595A5A",fontSize:"sm",w:"100%"})})]})})]})]}),(0,S.jsx)(t.a,{display:{base:"none",md:"block"},w:"320px",borderRight:"1px",borderColor:"gray.200",p:4,overflowY:"auto",children:(0,S.jsxs)(b.T,{spacing:4,align:"stretch",children:[(0,S.jsx)(D,{label:"Year:",children:(0,S.jsx)(W.Ay,{options:Y,value:ee,onChange:e=>Ae("year",e,re,[oe,ae,ne,de]),styles:T,placeholder:"Select Year"})}),(0,S.jsx)(D,{label:"Make:",children:(0,S.jsx)(W.Ay,{options:Z,value:le,onChange:e=>Ae("make",e,oe,[ae,ne,de]),styles:T,isDisabled:!ee,placeholder:"Select Make"})}),(0,S.jsx)(D,{label:"Model:",children:(0,S.jsx)(W.Ay,{options:G,value:se,onChange:e=>Ae("model",e,ae,[ne,de]),styles:T,isDisabled:!le,placeholder:"Select Model"})}),(0,S.jsx)(D,{label:"Trim:",children:(0,S.jsx)(W.Ay,{options:V,value:te,onChange:e=>Ae("trim",e,ne,[de]),styles:T,isDisabled:!se,placeholder:"Select Trim"})}),(0,S.jsx)(D,{label:"Body Type:",children:(0,S.jsx)(W.Ay,{options:X,value:ie,onChange:e=>Ae("body_type",e,de),styles:T,isDisabled:!te,placeholder:"Select Body Type"})}),(0,S.jsx)(D,{label:"Drive:",children:(0,S.jsx)(W.Ay,{options:I,value:ce,onChange:e=>Ae("drivetrain",e,pe),styles:T,placeholder:"Select Drive"})}),(0,S.jsx)(D,{label:"Transmission:",children:(0,S.jsx)(W.Ay,{options:O,value:xe,onChange:e=>Ae("transmission",e,me),styles:T,placeholder:"Select Transmission"})}),(0,S.jsx)(D,{label:"Displacement:",children:(0,S.jsx)(W.Ay,{options:L,value:he,onChange:e=>Ae("displacement",e,be),styles:T,placeholder:"Select Displacement"})}),(0,S.jsx)(D,{label:"Fuel:",children:(0,S.jsx)(W.Ay,{options:N,value:ue,onChange:e=>Ae("fuel",e,fe),styles:T,placeholder:"Select Fuel"})}),(0,S.jsx)(D,{label:"Cylinders:",children:(0,S.jsx)(W.Ay,{options:F,value:ge,onChange:e=>Ae("cylinder",e,ye),styles:T,placeholder:"Select Cylinders"})}),(0,S.jsx)(D,{label:"Odometer:",children:(0,S.jsx)(u.p,{size:"sm",value:C,onChange:e=>w(e.target.value),onBlur:ke,bg:"white",border:"1px",borderColor:"#595A5A",fontSize:"sm",w:"100%"})})]})}),(0,S.jsxs)(t.a,{flex:"1",p:{base:4,md:6},overflowX:"hidden",children:[(0,S.jsxs)(t.a,{mb:{base:4,md:6},mt:{base:2,md:6},children:[(0,S.jsxs)(f.D,{size:{base:"md",sm:"lg",md:"xl"},color:"#fd6303",mb:2,lineHeight:1.3,fontWeight:"800",letterSpacing:"-0.01em",children:[(null===ee||void 0===ee?void 0:ee.label)||A.year," ",(null===le||void 0===le?void 0:le.label)||A.make," ",(null===se||void 0===se?void 0:se.label)||A.model," ",(null===te||void 0===te?void 0:te.label)||A.trim," ",(null===ie||void 0===ie?void 0:ie.label)||A.body_type]}),(0,S.jsxs)(g.z,{spacing:2,flexWrap:"wrap",mt:2,children:[ce&&(0,S.jsx)(y.E,{colorScheme:"orange",variant:"subtle",fontSize:"xs",children:ce.label}),ue&&(0,S.jsx)(y.E,{colorScheme:"gray",variant:"subtle",fontSize:"xs",children:ue.label}),xe&&(0,S.jsx)(y.E,{colorScheme:"gray",variant:"subtle",fontSize:"xs",children:xe.label}),he&&(0,S.jsx)(y.E,{colorScheme:"gray",variant:"subtle",fontSize:"xs",children:he.label})]})]}),(0,S.jsxs)(j.Z,{bg:"white",mb:6,border:"1px solid",borderColor:"gray.100",borderRadius:"12px",boxShadow:"0 2px 12px rgba(0,0,0,0.06)",overflow:"hidden",children:[(0,S.jsx)(t.a,{h:"3px",bg:"linear-gradient(90deg, #fd6303, #ff9f5a)"}),(0,S.jsx)(v.b,{p:{base:4,md:6},children:(0,S.jsxs)(s.s,{direction:{base:"column",sm:"row"},align:{base:"flex-start",sm:"center"},justify:"space-between",gap:3,children:[(0,S.jsxs)(b.T,{align:"start",spacing:1,children:[(0,S.jsxs)(a.E,{color:"#fd6303",fontWeight:"bold",fontSize:{base:"md",md:"lg"},lineHeight:1.3,children:["For Sale: ",A.year," ",A.make," ",A.model]}),(0,S.jsxs)(a.E,{fontSize:"xs",color:"gray.400",letterSpacing:"0.03em",children:["VIN: ",A.vin]}),(0,S.jsxs)(a.E,{fontSize:"xs",color:"#595A5A",children:["Contact: ",A.email||"N/A"]})]}),(0,S.jsx)(t.a,{bg:"#fff3ec",px:4,py:2,borderRadius:"8px",flexShrink:0,children:(0,S.jsxs)(a.E,{fontSize:{base:"xl",md:"2xl"},fontWeight:"900",color:"#fd6303",letterSpacing:"-0.02em",children:["$",Number(A.asking_price).toLocaleStr
1ing()]})})]})})]}),(A.mmr||A.black_book||A.kbb||A.nada||A.r_book||A.kbb_com)&&(0,S.jsxs)(j.Z,{border:"1px solid",borderColor:"gray.100",mb:6,borderRadius:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.05)",overflow:"hidden",children:[(0,S.jsx)(E,{fontWeight:"bold",color:"#fd6303",fontSize:{base:"sm",md:"md"},bg:"#fff8f4",borderBottom:"1px solid",borderColor:"gray.100",py:3,px:{base:4,md:5},children:"Market Valuations"}),(0,S.jsx)(v.b,{p:{base:4,md:5},children:(0,S.jsxs)(z.x,{templateColumns:{base:"repeat(2, 1fr)",sm:"repeat(auto-fill, minmax(140px, 1fr))"},gap:3,children:[A.mmr&&(0,S.jsxs)(t.a,{bg:"gray.50",p:3,borderRadius:"8px",textAlign:"center",border:"1px solid",borderColor:"gray.200",minW:"0",children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"gray.500",fontWeight:"bold",textTransform:"uppercase",noOfLines:1,title:"MMR",children:"MMR"}),(0,S.jsx)(a.E,{fontSize:{base:"xs",sm:"sm"},fontWeight:"bold",color:"#fd6303",mt:1,wordBreak:"break-word",children:A.mmr})]}),A.black_book&&(0,S.jsxs)(t.a,{bg:"gray.50",p:3,borderRadius:"8px",textAlign:"center",border:"1px solid",borderColor:"gray.200",minW:"0",children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"gray.500",fontWeight:"bold",textTransform:"uppercase",noOfLines:1,title:"Black Book",children:"Black Book"}),(0,S.jsx)(a.E,{fontSize:{base:"xs",sm:"sm"},fontWeight:"bold",color:"#fd6303",mt:1,wordBreak:"break-word",children:A.black_book})]}),A.kbb&&(0,S.jsxs)(t.a,{bg:"gray.50",p:3,borderRadius:"8px",textAlign:"center",border:"1px solid",borderColor:"gray.200",minW:"0",children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"gray.500",fontWeight:"bold",textTransform:"uppercase",noOfLines:1,title:"KBB",children:"KBB"}),(0,S.jsx)(a.E,{fontSize:{base:"xs",sm:"sm"},fontWeight:"bold",color:"#fd6303",mt:1,wordBreak:"break-word",children:A.kbb})]}),A.nada&&(0,S.jsxs)(t.a,{bg:"gray.50",p:3,borderRadius:"8px",textAlign:"center",border:"1px solid",borderColor:"gray.200",minW:"0",children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"gray.500",fontWeight:"bold",textTransform:"uppercase",noOfLines:1,title:"J.D. Power / NADA",children:"J.D. Power / NADA"}),(0,S.jsx)(a.E,{fontSize:{base:"xs",sm:"sm"},fontWeight:"bold",color:"#fd6303",mt:1,wordBreak:"break-word",children:A.nada})]}),A.r_book&&(0,S.jsxs)(t.a,{bg:"gray.50",p:3,borderRadius:"8px",textAlign:"center",border:"1px solid",borderColor:"gray.200",minW:"0",children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"gray.500",fontWeight:"bold",textTransform:"uppercase",noOfLines:1,title:"rBook",children:"rBook"}),(0,S.jsx)(a.E,{fontSize:{base:"xs",sm:"sm"},fontWeight:"bold",color:"#fd6303",mt:1,wordBreak:"break-word",children:A.r_book})]}),A.kbb_com&&(0,S.jsxs)(t.a,{bg:"gray.50",p:3,borderRadius:"8px",textAlign:"center",border:"1px solid",borderColor:"gray.200",minW:"0",children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"gray.500",fontWeight:"bold",textTransform:"uppercase",noOfLines:1,title:"KBB.com",children:"KBB.com"}),(0,S.jsx)(a.E,{fontSize:{base:"xs",sm:"sm"},fontWeight:"bold",color:"#fd6303",mt:1,wordBreak:"break-word",children:A.kbb_com})]})]})})]}),(()=>{const e=(e=>{if(!e)return[];const r=q(e.equipment),l=q(e.checked_equipment),o=new Set(Array.isArray(l)?l.map((e=>"string"===typeof e?e.trim().toLowerCase():((null===e||void 0===e?void 0:e.label)||(null===e||void 0===e?void 0:e.name)||"").trim().toLowerCase())):[]);return Array.isArray(r)&&r.length>0?r.map((e=>{if("string"===typeof e){const r=!(o.size>0)||o.has(e.trim().toLowerCase());return{label:e,checked:r}}if("object"===typeof e&&null!==e){const r=e.label||e.name||e.title||JSON.stringify(e),l=void 0!==e.checked?Boolean(e.checked):void 0!==e.value?Boolean(e.value):!(o.size>0)||o.has(r.trim().toLowerCase());return{label:r,checked:l}}return{label:String(e),checked:!1}})):Array.isArray(l)&&l.length>0?l.map((e=>({label:"string"===typeof e?e:(null===e||void 0===e?void 0:e.label)||(null===e||void 0===e?void 0:e.name)||String(e),checked:!0}))):[]})(A);if(!e.length)return null;const r=e.filter((e=>e.checked)).length,l=e.length;return(0,S.jsxs)(j.Z,{border:"1px solid",borderColor:"gray.100",mb:6,borderRadius:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.05)",overflow:"hidden",children:[(0,S.jsxs)(E,{fontWeight:"bold",color:"#fd6303",fontSize:{base:"sm",md:"md"},bg:"#fff8f4",borderBottom:"1px solid",borderColor:"gray.100",py:3,px:{base:4,md:5},display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,S.jsx)(a.E,{children:"Equipment Details"}),(0,S.jsxs)(y.E,{colorScheme:"orange",variant:"subtle",fontSize:"xs",px:2.5,py:.5,borderRadius:"full",children:[r," / ",l," Equipped"]})]}),(0,S.jsx)(v.b,{p:{base:3,sm:4,md:5},children:(0,S.jsx)(z.x,{templateColumns:{base:"1fr",sm:"repeat(auto-fill, minmax(220px, 1fr))"},gap:{base:2.5,sm:3},children:e.map(((e,r)=>(0,S.jsxs)(s.s,{align:"center",justify:"space-between",p:{base:2.5,sm:3},borderRadius:"8px",bg:e.checked?"green.50":"gray.50",border:"1px solid",borderColor:e.checked?"green.200":"gray.200",transition:"all 0.15s ease",gap:2,minW:"0",children:[(0,S.jsx)(a.E,{fontSize:{base:"xs",md:"xs"},fontWeight:e.checked?"semibold":"normal",color:e.checked?"green.900":"gray.600",noOfLines:2,flex:"1",minW:"0",lineHeight:"1.3",wordBreak:"normal",overflowWrap:"break-word",title:e.label,children:e.label}),(0,S.jsx)(y.E,{colorScheme:e.checked?"green":"gray",variant:e.checked?"solid":"outline",fontSize:"10px",px:{base:1.5,sm:2},py:.5,borderRadius:"full",flexShrink:0,whiteSpace:"nowrap",children:e.checked?"Installed":"Not Installed"})]},r)))})})]})})(),(A.carfax_last_mileage||A.carfax_last_location||A.carfax_owners||A.autocheck_last_mileage||A.autocheck_last_location||A.autocheck_owners)&&(0,S.jsxs)(z.x,{templateColumns:{base:"1fr",sm:"1fr 1fr"},gap:{base:4,md:6},mb:6,children:[(0,S.jsxs)(j.Z,{border:"1px solid",borderColor:"gray.100",borderRadius:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.05)",overflow:"hidden",children:[(0,S.jsx)(E,{textAlign:"center",fontWeight:"bold",color:"#fd6303",fontSize:{base:"sm",md:"md"},pb:2,pt:4,bg:"#fff8f4",borderBottom:"1px solid",borderColor:"gray.100",children:"CARFAX"}),(0,S.jsx)(v.b,{fontSize:{base:"xs",md:"sm"},p:{base:3,md:4},children:(0,S.jsxs)(b.T,{align:"start",spacing:2,children:[(0,S.jsxs)(s.s,{align:"center",gap:2,flexWrap:"wrap",children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",whiteSpace:"nowrap",children:"Last Mileage:"}),(0,S.jsxs)(a.E,{color:"#595A5A",children:[A.carfax_last_mileage," mi (",A.carfax_last_mileage_date,")"]})]}),(0,S.jsxs)(s.s,{align:"center",gap:2,flexWrap:"wrap",children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",whiteSpace:"nowrap",children:"Last Location:"}),(0,S.jsx)(a.E,{color:"#595A5A",children:A.carfax_last_location})]}),(0,S.jsxs)(s.s,{align:"center",gap:2,flexWrap:"wrap",children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",children:"Owners:"}),(0,S.jsx)(a.E,{color:"#595A5A",children:A.carfax_owners})]}),(0,S.jsxs)(s.s,{align:"center",gap:2,children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",children:"Clean:"}),(0,S.jsx)(y.E,{colorScheme:A.carfax_clean?"green":"red",fontSize:"xs",px:2,py:.5,borderRadius:"full",children:A.carfax_clean?"Yes":"No"})]})]})})]}),(0,S.jsxs)(j.Z,{border:"1px solid",borderColor:"gray.100",borderRadius:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.05)",overflow:"hidden",children:[(0,S.jsx)(E,{textAlign:"center",fontWeight:"bold",color:"#fd6303",fontSize:{base:"sm",md:"md"},pb:2,pt:4,bg:"#fff8f4",borderBottom:"1px solid",borderColor:"gray.100",children:"AutoCheck"}),(0,S.jsx)(v.b,{fontSize:{base:"xs",md:"sm"},p:{base:3,md:4},children:(0,S.jsxs)(b.T,{align:"start",spacing:2,children:[(0,S.jsxs)(s.s,{align:"center",gap:2,flexWrap:"wrap",children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",whiteSpace:"nowrap",children:"Last Mileage:"}),(0,S.jsxs)(a.E,{color:"#595A5A",children:[A.autocheck_last_mileage," mi (",A.autocheck_last_mileage_date,")"]})]}),(0,S.jsxs)(s.s,{align:"center",gap:2,flexWrap:"wrap",children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",whiteSpace:"nowrap",children:"Last Location:"}),(0,S.jsx)(a.E,{color:"#595A5A",children:A.autocheck_last_location})]}),(0,S.jsxs)(s.s,{align:"center",gap:2,flexWrap:"wrap",children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",children:"Owners:"}),(0,S.jsx)(a.E,{color:"#595A5A",children:A.autocheck_owners})]}),(0,S.jsxs)(s.s,{align:"center",gap:2,children:[(0,S.jsx)(a.E,{fontWeight:"semibold",color:"#595A5A",children:"Clean:"}),(0,S.jsx)(y.E,{colorScheme:A.autocheck_clean?"green":"red",fontSize:"xs",px:2,py:.5,borderRadius:"full",children:A.autocheck_clean?"Yes":"No"})]})]})})]})]}),Ce.length>0&&(0,S.jsxs)(j.Z,{border:"1px solid",borderColor:"gray.100",mt:6,borderRadius:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.05)",overflow:"hidden",children:[(0,S.jsx)(E,{fontWeight:"bold",color:"#fd6303",fontSize:{base:"sm",md:"md"},bg:"#fff8f4",borderBottom:"1px solid",borderColor:"gray.100",py:3,px:{base:4,md:5},children:"CARFAX History"}),(0,S.jsxs)(v.b,{p:0,children:[(0,S.jsxs)(z.x,{templateColumns:{md:"140px 110px 1fr"},fontSize:"xs",fontWeight:"bold",color:"#595A5A",borderBottom:"1px solid",borderColor:"gray.100",py:2,px:{base:4,md:5},bg:"gray.50",display:{base:"none",md:"grid"},textTransform:"uppercase",letterSpacing:"0.05em",children:[(0,S.jsx)(a.E,{children:"Date"}),(0,S.jsx)(a.E,{children:"Severity"}),(0,S.jsx)(a.E,{children:"Details"})]}),Ce.map(((e,r)=>{var l,o;return(0,S.jsxs)(t.a,{borderBottom:r<Ce.length-1?"1px solid":"none",borderColor:"gray.100",px:{base:4,md:5},py:{base:3,md:4},_hover:{bg:"gray.50"},transition:"background 0.15s",children:[(0,S.jsxs)(t.a,{display:{base:"block",md:"none"},children:[(0,S.jsxs)(s.s,{justify:"space-between",align:"center",mb:1,children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"#595A5A",fontWeight:"semibold",children:e.date||"-"}),(0,S.jsx)(y.E,{colorScheme:null!==(l=e.severity)&&void 0!==l&&l.toLowerCase().includes("minor")?"orange":"red",fontSize:"xs",borderRadius:"full",px:2,children:e.severity})]}),e.pointOfImpact&&(Array.isArray(e.pointOfImpact)?e.pointOfImpact.length>0:"string"===typeof e.pointOfImpact)&&(0,S.jsxs)(a.E,{fontSize:"xs",color:"#595A5A",mb:1,children:["Impact: ",Array.isArray(e.pointOfImpact)?e.pointOfImpact.join(", "):e.pointOfImpact]}),(Array.isArray(e.comments)?e.comments:"string"===typeof e.comments?[e.comments]:[]).map(((e,r)=>(0,S.jsxs)(a.E,{fontSize:"xs",color:"red.500",children:["\u2022 ",e]},r)))]}),(0,S.jsxs)(z.x,{display:{base:"none",md:"grid"},templateColumns:{md:"140px 110px 1fr"}
1,fontSize:"sm",color:"#595A5A",alignItems:"start",gap:2,children:[(0,S.jsx)(a.E,{fontSize:"sm",children:e.date||"-"}),(0,S.jsx)(a.E,{color:null!==(o=e.severity)&&void 0!==o&&o.toLowerCase().includes("minor")?"orange.400":"red.500",fontWeight:"semibold",fontSize:"sm",children:e.severity}),(0,S.jsxs)(t.a,{children:[e.pointOfImpact&&(Array.isArray(e.pointOfImpact)?e.pointOfImpact.length>0:"string"===typeof e.pointOfImpact)&&(0,S.jsxs)(a.E,{fontSize:"sm",color:"#595A5A",mb:1,children:["Impact: ",Array.isArray(e.pointOfImpact)?e.pointOfImpact.join(", "):e.pointOfImpact]}),(Array.isArray(e.comments)?e.comments:"string"===typeof e.comments?[e.comments]:[]).map(((e,r)=>(0,S.jsxs)(a.E,{fontSize:"sm",color:"red.500",children:["\u2022 ",e]},r)))]})]})]},r)}))]})]}),(we.length>0||Ee.length>0)&&(0,S.jsxs)(j.Z,{border:"1px solid",borderColor:"gray.100",mt:6,mb:8,borderRadius:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.05)",overflow:"hidden",children:[(0,S.jsx)(E,{fontWeight:"bold",color:"#fd6303",fontSize:{base:"sm",md:"md"},bg:"#fff8f4",borderBottom:"1px solid",borderColor:"gray.100",py:3,px:{base:4,md:5},children:"AutoCheck History"}),(0,S.jsxs)(v.b,{p:0,children:[we.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(z.x,{templateColumns:{md:"140px 110px 1fr"},fontSize:"xs",fontWeight:"bold",color:"#595A5A",borderBottom:"1px solid",borderColor:"gray.100",py:2,px:{base:4,md:5},bg:"gray.50",display:{base:"none",md:"grid"},textTransform:"uppercase",letterSpacing:"0.05em",children:[(0,S.jsx)(a.E,{children:"Date"}),(0,S.jsx)(a.E,{children:"Severity"}),(0,S.jsx)(a.E,{children:"Details"})]}),null===we||void 0===we?void 0:we.map(((e,r)=>{var l,o;return(0,S.jsxs)(t.a,{borderBottom:"1px solid",borderColor:"gray.100",px:{base:4,md:5},py:{base:3,md:4},_hover:{bg:"gray.50"},transition:"background 0.15s",children:[(0,S.jsxs)(t.a,{display:{base:"block",md:"none"},children:[(0,S.jsxs)(s.s,{justify:"space-between",align:"center",mb:1,children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"#595A5A",fontWeight:"semibold",children:e.damageDate||"-"}),(0,S.jsx)(y.E,{colorScheme:null!==(l=e.severity)&&void 0!==l&&l.toLowerCase().includes("minor")?"orange":"red",fontSize:"xs",borderRadius:"full",px:2,children:e.severity})]}),(0,S.jsx)(a.E,{fontSize:"xs",color:"red.500",children:e.damageType})]}),(0,S.jsxs)(z.x,{display:{base:"none",md:"grid"},templateColumns:{md:"140px 110px 1fr"},fontSize:"sm",color:"#595A5A",alignItems:"start",gap:2,children:[(0,S.jsx)(a.E,{fontSize:"sm",children:e.damageDate||"-"}),(0,S.jsx)(a.E,{color:null!==(o=e.severity)&&void 0!==o&&o.toLowerCase().includes("minor")?"orange.400":"red.500",fontWeight:"semibold",fontSize:"sm",children:e.severity}),(0,S.jsx)(a.E,{color:"red.500",fontSize:"sm",children:e.damageType})]})]},r)}))]}),Ee.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t.a,{px:{base:4,md:5},pt:we.length>0?5:4,pb:2,bg:"gray.50",borderTop:we.length>0?"2px solid":"none",borderColor:"gray.200",children:(0,S.jsx)(a.E,{fontWeight:"bold",color:"#595A5A",fontSize:{base:"xs",md:"sm"},textTransform:"uppercase",letterSpacing:"0.05em",children:"Detailed Events"})}),(0,S.jsxs)(z.x,{templateColumns:{md:"150px 110px 1fr"},fontSize:"xs",fontWeight:"bold",color:"#595A5A",borderBottom:"1px solid",borderColor:"gray.100",py:2,px:{base:4,md:5},bg:"gray.50",display:{base:"none",md:"grid"},textTransform:"uppercase",letterSpacing:"0.05em",children:[(0,S.jsx)(a.E,{children:"Date"}),(0,S.jsx)(a.E,{children:"Odometer"}),(0,S.jsx)(a.E,{children:"Details"})]}),Ee.map(((e,r)=>(0,S.jsxs)(t.a,{borderBottom:r<Ee.length-1?"1px solid":"none",borderColor:"gray.100",px:{base:4,md:5},py:{base:3,md:4},_hover:{bg:"gray.50"},transition:"background 0.15s",children:[(0,S.jsxs)(t.a,{display:{base:"block",md:"none"},children:[(0,S.jsxs)(s.s,{justify:"space-between",align:"flex-start",mb:1,flexWrap:"wrap",gap:1,children:[(0,S.jsxs)(t.a,{children:[(0,S.jsx)(a.E,{fontSize:"xs",color:"#595A5A",fontWeight:"semibold",children:e.eventDate||"-"}),(0,S.jsx)(a.E,{fontSize:"xs",color:"#595A5A",children:e.location}),(0,S.jsx)(a.E,{fontSize:"xs",color:"gray.400",children:e.dataSource})]}),(0,S.jsx)(a.E,{fontSize:"xs",color:"#595A5A",fontWeight:"semibold",children:e.odometer||"-"})]}),("string"===typeof e.details?e.details.split("\n"):Array.isArray(e.details)?e.details:[]).map(((e,r)=>(0,S.jsxs)(a.E,{fontSize:"xs",color:"red.500",children:["\u2022 ",e]},r)))]}),(0,S.jsxs)(z.x,{display:{base:"none",md:"grid"},templateColumns:{md:"150px 110px 1fr"}
1,fontSize:"sm",color:"#595A5A",alignItems:"start",gap:2,children:[(0,S.jsxs)(t.a,{children:[(0,S.jsx)(a.E,{fontSize:"sm",children:e.eventDate||"-"}),(0,S.jsx)(a.E,{color:"#595A5A",fontSize:"xs",children:e.location}),(0,S.jsx)(a.E,{color:"gray.400",fontSize:"xs",children:e.dataSource})]}),(0,S.jsx)(a.E,{fontSize:"sm",children:e.odometer||"-"}),(0,S.jsx)(t.a,{children:("string"===typeof e.details?e.details.split("\n"):Array.isArray(e.details)?e.details:[]).map(((e,r)=>(0,S.jsxs)(a.E,{fontSize:"sm",color:"red.500",children:["\u2022 ",e]},r)))})]})]},r)))]})]})]})]})]})},Y=o.memo(P,((e,r)=>e.carId===r.carId))},8846:(e,r,l)=>{l.d(r,{D:()=>d});var o=l(579),s=l(3033),a=l(4765),t=l(5003),n=l(5158),i=l(7971);const d=(0,t.R)((function(e,r){const l=(0,n.V)("Heading",e),{className:t,...d}=(0,s.M)(e);return(0,o.jsx)(i.B.h2,{ref:r,className:(0,a.cx)("chakra-heading",e.className),...d,__css:l})}));d.displayName="Heading"}}]);
2//# sourceMappingURL=8557.d4375aa6.chunk.js.map

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.