PageSourceSearch

https://aidealer360.com/assets/AcquireConfirmResponse-DRbjRVEw.js

js aidealer360.com collected 2026-09-24 12:38:17 UTC 3,581 bytes, 1 lines download raw bytes

1import{j as e}from"./ui-vendor-B12AOeKi.js";import{u as b,e as y,r as s}from"./react-vendor-DZt7wVAJ.js";import{s as w}from"./index-CUOC2qQu.js";import"./charts-vendor-B6q1L48j.js";import"./supabase-vendor-dOy44Gxq.js";import"./animation-vendor-BAVy02gd.js";const a="#1B2D5C",S="#5BBA47",v="#C0392B";function F(){const[l]=b(),c=y(),u=(l.get("id")||"").trim(),d=(l.get("r")||"").trim().toLowerCase(),f=(l.get("sig")||"").trim(),n=d==="interested"||d==="declined"?d:null,[o,p]=s.useState(!1),[g,h]=s.useState(null),t=s.useMemo(()=>n==="interested"?{title:"Confirm your response",accent:S,heading:"You're interested — one quick tap to confirm",message:"Tap the button below and we'll let our Vehicle Acquisition Manager know you'd like an offer on your vehicle.",button:"Yes, I'm Interested"}:{title:"Confirm your response",accent:a,heading:"Not interested — one quick tap to confirm",message:"Tap the button below to let us know you're not interested and we won't reach out again about this vehicle.",button:"Confirm Not Interested"},[n]),r=!u||!n||!f,x=async()=>{if(!(r||o)){p(!0),h(null);try{const{data:i,error:m}=await w.functions.invoke("acquire-intro-response",{body:{id:u,r:n,sig:f}});if(m)throw m;if(i&&typeof i=="object"&&"error"in i)throw new Error(String(i.error));c(`/acquire/thanks?state=${n}`,{replace:!0})}catch(i){console.error("acquire confirm failed",i),h("Something went wrong. Please try again in a moment."),p(!1)}}};return s.useEffect(()=>{r&&c("/acquire/thanks?state=invalid",{replace:!0})},[r,c]),r?null:e.jsxs("div",{style:{minHeight:"100vh",backgroundImage:"linear-gradient(180deg,#DCE6F5 0%,#EEF2F7 45%,#ffffff 100%)",backgroundColor:"#EEF2F7",fontFamily:"-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif",WebkitFontSmoothing:"antialiased",color:a,display:"flex",alignItems:"center",justifyContent:"center",padding:"40px 14px",boxSizing:"border-box"},children:[e.jsx("title",{children:t.title}),e.jsxs("div",{style:{width:"100%",maxWidth:560,background:"#ffffff",border:"1px solid #D6DEE8",borderRadius:16,overflow:"hidden",boxShadow:"0 18px 44px rgba(27,45,92,.14)"},children:[e.jsxs("div",{style:{padding:"22px 32px",borderBottom:"1px solid #E5EBF3",color:a,fontWeight:800,letterSpacing:1.4,textTransform:"uppercase",fontSize:11},children:[e.jsx("span",{style:{color:t.accent,fontSize:14,lineHeight:1},children:"●"})," ",e.jsx("span",{style:{verticalAlign:"middle"},children:"Vehicle Acquisition"})]}),e.jsxs("div",{style:{padding:"40px 36px 20px 36px",textAlign:"center"},children:[e.jsx("div",{style:{fontFamily:"'Arial Black',Impact,sans-serif",fontWeight:900,fontSize:24,lineHeight:1.25,color:a},children:t.heading}),e.jsx("div",{style:{height:4,width:72,background:t.accent,borderRadius:2,margin:"16px auto 20px auto"}}),e.jsx("div",{style:{color:"#3A4A6B",fontSize:16,lineHeight:1.6},children:t.message}),e.jsx("div",{style:{marginTop:28},children:e.jsx("button",{type:"button",onClick:x,disabled:o,style:{display:"inline-block",background:t.accent,color:"#ffffff",border:"none",cursor:o?"wait":"pointer",fontWeight:800,fontSize:16,padding:"14px 26px",borderRadius:10,minHeight:48,boxSizing:"border-box",opacity:o?.7:1,boxShadow:"0 8px 20px rgba(27,45,92,.18)"},children:o?"Sending…":t.button})}),g&&e.jsx("div",{style:{marginTop:16,color:v,fontSize:14},children:g})]}),e.jsx("div",{style:{padding:"16px 36px 28px 36px",textAlign:"center",color:"#6B7A96",fontSize:12,lineHeight:1.5},children:"Didn't mean to click? Just close this window — nothing is recorded until you tap the button."})]})]})}export{F as default};

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.