PageSourceSearch

https://www.surexend.com/_next/static/chunks/6288.8d31a26a24cf4940.js

js surexend.com collected 2026-10-04 06:55:54 UTC 23,390 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6288],{18085:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]])},22342:(e,t,a)=>{a.d(t,{A:()=>p});var s=a(95155),i=a(12115),r=a(47650),n=a(71408),l=a(40809),o=a(5208),c=a(76489),d=a(41754),x=a(71708);function p(e){let{show:t,title:a="Approved",subtitle:p="Let’s go!",mode:u="fingerprint"}=e,{variant:h}=(0,d.D)(),m="gold"===h,b=m?"#D4A017":"#B5E23D",g=m?"#FFD966":"#D8FF6E",f=(0,i.useRef)(!1);return((0,i.useEffect)(()=>{if(!t||f.current)return;f.current=!0;let e=setTimeout(()=>{(0,x.A)({particleCount:90,spread:75,startVelocity:34,origin:{y:.55},colors:m?["#FFD700","#D4A017","#ffffff"]:["#C8F050","#B5E23D","#ffffff"],disableForReducedMotion:!0})},420),a=setTimeout(()=>{f.current=!1},2200);return()=>{clearTimeout(e),clearTimeout(a)}},[t,m]),"undefined"==typeof document)?null:(0,r.createPortal)((0,s.jsx)(n.N,{children:t&&(0,s.jsx)(l.P.div,{className:"fixed inset-0 z-[200] flex items-center justify-center liquid-backdrop",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:(0,s.jsxs)(l.P.div,{className:"flex flex-col items-center gap-5 px-8 text-center",initial:{scale:.85,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{type:"spring",damping:18,stiffness:260},children:[(0,s.jsxs)("div",{className:"relative w-28 h-28 flex items-center justify-center",children:[(0,s.jsx)(l.P.span,{className:"absolute inset-0 rounded-full",style:{border:"2px solid ".concat(g,"55")},initial:{scale:.5,opacity:.9},animate:{scale:1.6,opacity:0},transition:{duration:1,ease:"easeOut"}}),(0,s.jsx)(l.P.span,{className:"absolute inset-0 rounded-full",style:{border:"1.5px solid ".concat(b,"66")},initial:{scale:.5,opacity:.9},animate:{scale:1.35,opacity:0},transition:{duration:1,ease:"easeOut",delay:.15}}),(0,s.jsx)(l.P.div,{className:"absolute inset-0 flex items-center justify-center",initial:{opacity:1,scale:1},animate:{opacity:0,scale:1.25},transition:{duration:.35,delay:.45},children:"face"===u?(0,s.jsx)(o.A,{className:"w-14 h-14",style:{color:b},strokeWidth:1.6}):(0,s.jsx)(c.A,{className:"w-14 h-14",style:{color:b},strokeWidth:1.6})}),(0,s.jsxs)(l.P.div,{className:"absolute inset-0 rounded-full flex items-center justify-center shadow-2xl",style:{background:"conic-gradient(from 180deg, ".concat(b,", ").concat(g,", ").concat(b,")"),boxShadow:"0 0 40px ".concat(b,"66")},initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",damping:14,stiffness:320,delay:.45},children:[(0,s.jsx)(l.P.span,{className:"w-3/5 h-3/5 rounded-full",style:{background:"#020203",boxShadow:"inset 0 0 0 1px rgba(255,255,255,0.08)"}}),(0,s.jsx)("svg",{viewBox:"0 0 52 52",className:"absolute w-3/5 h-3/5",fill:"none",children:(0,s.jsx)(l.P.path,{d:"M14 27 L23 36 L39 17",stroke:g,strokeWidth:5,strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.5,ease:"easeOut",delay:.55}})})]})]}),(0,s.jsxs)(l.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.7,duration:.3},children:[(0,s.jsx)("p",{className:"text-2xl font-extrabold text-white tracking-tight",children:a}),(0,s.jsx)("p",{className:"text-sm text-[#94A3B8] mt-1",children:p})]})]})})}),document.body)}},34708:(e,t,a)=>{a.d(t,{A:()=>d});var s=a(95155),i=a(12115),r=a(60872),n=a(90960),l=a(22663),o=a(76489),c=a(22342);function d(e){let{onApproved:t,intent:a,accentHex:d,accentRgb:x,disabled:p,label:u}=e,[h,m]=(0,i.useState)(!1),[b,g]=(0,i.useState)(!1),f=async()=>{m(!0);try{let e=await n.lY.approveBegin(a),s=await (0,r.HS)({optionsJSON:e}),{passkeyToken:i}=await n.lY.approveComplete(e.challengeId,s);g(!0),setTimeout(()=>{g(!1),t(i)},1500)}catch(r){var e,s,i;let t=(null==r||null==(e=r.cause)?void 0:e.message)||(null==r?void 0:r.message)||"",a=(null==r?void 0:r.name)==="NotAllowedError"&&/cancel/i.test(t);l.Ay.error((null==r||null==(i=r.response)||null==(s=i.data)?void 0:s.message)||(a?"Biometric approval cancelled":t||"Biometric approval failed"))}finally{m(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button",onClick:f,disabled:p||h,className:"mt-3 w-full py-2.5 rounded-xl border border-white/10 bg-white/[0.03] text-white text-xs font-semibold flex items-center justify-center gap-2 hover:bg-white/[0.07] transition-colors disabled:opacity-60",style:x?{boxSh
1adow:"inset 0 0 0 1px rgba(".concat(x,", 0.15)")}:void 0,children:[(0,s.jsx)(o.A,{className:"w-4 h-4",style:d?{color:d}:void 0}),h?"Checking your biometric…":u||"Use Face ID or fingerprint instead"]}),(0,s.jsx)(c.A,{show:b,title:"Approved",subtitle:"Transaction secured ✓"})]})}},39867:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},55867:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},76288:(e,t,a)=>{a.r(t),a.d(t,{default:()=>C});var s=a(95155),i=a(12115),r=a(71408),n=a(40809),l=a(41754),o=a(76907),c=a(39867),d=a(55867),x=a(78192),p=a(65229),u=a(89559),h=a(95740),m=a(18085),b=a(22663),g=a(90960),f=a(39132),y=a(34708);let v=["How do I convert USD to Naira?","How do SureX Tags work?","How do I deposit USDC?","When will bank withdrawals go live?","Send 50 USDC to Chidi","Pay my DSTV bill","Download my receipt"],w=["ARC","ETHEREUM","POLYGON","AVALANCHE","ARBITRUM","BASE","OPTIMISM","SOLANA","MONAD","BSC","BEP20"],j=["airtime","data","electricity","tv","cable","internet","water"],N=["USD","USDC"],k=["NGN","GHS","KES","ZAR","UGX","TZS","EGP","MAD","ETB","RWF","XAF","XOF"],A=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});function S(e){let{action:t,accentRgb:a,variant:r,accentHex:n,onDone:l,onBusy:x}=e,[p,u]=(0,i.useState)({...t.params}),[h,m]=(0,i.useState)(!1),[b,v]=(0,i.useState)(""),[A,S]=(0,i.useState)(!1),[C,D]=(0,i.useState)(""),P=(e,t)=>u(a=>({...a,[e]:t})),E="send"===t.type,B="bill"===t.type,I="convert"===t.type,M="receipt"===t.type,U=E&&p.to&&Number(p.amount)>0&&w.includes(p.network)||B&&p.type&&p.provider&&p.recipient&&Number(p.amount)>0||I&&p.from&&p.to&&p.from!==p.to&&Number(p.amount)>0,F="ai-action-input w-full px-3 py-2 rounded-xl bg-white/[0.05] border border-white/10 text-white text-xs focus:outline-none focus:border-emerald-500 transition-colors",L="text-[10px] text-[#64748B] font-semibold uppercase tracking-wide mb-1 block",R=async e=>{if(!e&&(!b||4!==b.length))return void D("Enter your 4-digit PIN");D(""),S(!0),x(!0);try{if(E){let t=await g.Uf.send({address:p.to,amount:Number(p.amount),network:p.network,pin:b,passkeyToken:e},{"X-Txn-Source":"chat"});l({ok:!0,text:"Sent ".concat(Number(p.amount).toLocaleString()," USDC to ").concat(p.to,". Reference: ").concat(t.reference),ref:t.reference})}else if(B){let t=await g.rY.purchase({type:p.type,provider:p.provider,recipient:p.recipient,amount:Number(p.amount),pin:b,passkeyToken:e},{"X-Txn-Source":"chat"});l({ok:!0,text:"".concat(String(p.provider).toUpperCase()," ").concat(p.type," of ").concat(Number(p.amount).toLocaleString()," paid to ").concat(p.recipient,". Reference: ").concat(t.reference),ref:t.reference})}else if(I){let t=await g.bU.execute({from:p.from,to:p.to,amount:Number(p.amount),pin:b,passkeyToken:e},{"X-Txn-Source":"chat"});l({ok:!0,text:"Converted ".concat(Number(p.amount).toLocaleString()," ").concat(p.from," to ").concat(p.to).concat(t.receiveAmount?" (".concat(Number(t.receiveAmount).toLocaleString()," ").concat(p.to,")"):"",". Reference: ").concat(t.reference),ref:t.reference})}v(""),m(!1)}catch(s){var t,a;let e=(null==s||null==(a=s.response)||null==(t=a.data)?void 0:t.message)||(null==s?void 0:s.message)||"Transaction failed. Please try again.";String(e).toLowerCase().includes("pin")?D(e):l({ok:!1,text:e})}finally{S(!1),x(!1)}},H=async e=>{S(!0),x(!0);try{var t;let a=await g.FU.getHistory({limit:1}),s=null==a||null==(t=a.transactions)?void 0:t[0];if(!s)throw Error("No transaction found yet.");await document.fonts.ready;let i=await (0,f.$)({tx:s,variant:r,accentHex:n}),o=(s.reference||s.id||"receipt").replace(/[^a-zA-Z0-9_-]/g,"");await (0,f.R)(i,o,e),l({ok:!0,text:"Receipt downloaded as ".concat(e.toUpperCase(),".")})}catch(e){l({ok:!1,text:(null==e?void 0:e.message)||"Could not generate the receipt. Please try again."})}finally{S(!1),x(!1)}};return(0,s.jsxs)("div",{className:"ai-action-card mt-2 rounded-2xl border border-white/10 bg-[#020203]/80 overflow-hidden",children:[(0,s.jsxs)("div",{className:"px-3 py-2 flex items-center gap-2 border-b border-white/5",children:[(0,s.jsx)(o.A,{className:"w-3.5 h-3.5",style:{color:"rgb(".concat(a,")")}}),(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-gray-300 ai-action-header-text",children:E?"Send Crypto":B?"Pay Bill":I?"Convert":"Receipt"}),(0,s.jsx)("span",{className:"ml-auto text-[9px] px-1.5 py-0.5 rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:"PIN required"})]}),(0,s.jsxs)("div",{className:"p-3 space-y-2",children:[I&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"From"}),(0,s.jsx)("select",{className:F,value:p.from||"USD",onChange:e=>P("from",e.target.value),children:N.map(e=>(0,s.jsx)("option",{value:e,className:"bg-[#020203] text-white",children:e},e))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"To"}),(0,s.jsx)("select",{className:F,value:p.to||"NGN",onChange:e=>P("to",e.target.value),children:k.map(e=>(0,s.jsx)("option",{value:e,className:"bg-[#020203] text-white",children:e},e))})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Amount"}),(0,s.jsx)("input",{className:F,type:"number",min:"0",value:p.amount||"",onChange:e=>P("amount",e.target.value),placeholder:"0.00"})]})]}),M&&(0,s.jsx)("p",{className:"text-[11px] text-gray-400",children:"Download the receipt for your most recent transaction."}),E&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Recipient address"}),(0,s.jsx)("input",{className:F,value:p.to||"",onChange:e=>P("to",e.target.value),placeholder:"0x… or Xend tag"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Amount (USDC)"}),(0,s.jsx)("input",{className:F,type:"number",min:"0",value:p.amount||"",onChange:e=>P("amount",e.target.value),placeholder:"0.00"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Network"}),(0,s.jsx)("select",{className:F,value:p.network||"POLYGON",onChange:e=>P("network",e.target.value),children:w.map(e=>(0,s.jsx)("option",{value:e,className:"bg-[#020203] text-white",children:e},e))})]})]})]}),B&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Bill type"}),(0,s.jsx)("select",{className:F,value:p.type||"",onChange:e=>P("type",e.target.value),children:j.map(e=>(0,s.jsx)("option",{value:e,className:"bg-[#020203] text-white",children:e},e))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Provider"}),(0,s.jsx)("input",{className:F,value:p.provider||"",onChange:e=>P("provider",e.target.value),placeholder:"e.g. mtn"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Recipient"}),(0,s.jsx)("input",{className:F,value:p.recipient||"",onChange:e=>P("recipient",e.target.value),placeholder:"Phone / meter no."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:L,children:"Amount"}),(0,s.jsx)("input",{className:F,type:"number",min:"0",value:p.amount||"",onChange:e=>P("amount",e.target.value),placeholder:"0.00"})]})]})]}),M?(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("button",{onClick:()=>H("png"),disabled:A,className:"flex-1 py-2 rounded-xl bg-white/[0.06] border border-white/10 text-[11px] font-bold text-white flex items-center justify-center gap-1.5 disabled:opacity-50 transition-colors hover:bg-white/10",children:[(0,s.jsx)(c.A,{className:"w-3.5 h-3.5"})," PNG"]}),(0,s.jsxs)("button",{onClick:()=>H("pdf"),disabled:A,className:"flex-1 py-2 rounded-xl bg-white/[0.06] border border-white/10 text-[11px] font-bold text-white flex items-center justify-center gap-1.5 disabled:opacity-50 transition-colors hover:bg-white/10",children:[(0,s.jsx)(c.A,{className:"w-3.5 h-3.5"})," PDF"]})]}):(0,s.jsx)("button",{onClick:()=>{U&&(m(!0),v(""),D(""))},disabled:!U||A,className:"w-full py-2 rounded-xl text-[11px] font-bold text-black disabled:opacity-40 transition-transform active:scale-95",style:{background:"rgb(".concat(a,")")},children:A?"Processing…":"Confirm & authorize with PIN"}),h&&!M&&(0,s.jsxs)("div",{className:"ai-pin-box rounded-xl bg-black/40 border border-white/10 p-3 space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.A,{className:"w-3.5 h-3.5 text-emerald-400"}),(0,s.jsx)("span",{className:"text-[10px] text-gray-300 font-semibold ai-pin-label",children:"Enter your 4-digit transaction PIN"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"password",inputMode:"numeric",maxLength:4,autoF
1ocus:!0,value:b,onChange:e=>v(e.target.value.replace(/\D/g,"")),onKeyDown:e=>"Enter"===e.key&&R(),className:"ai-pin-input flex-1 px-3 py-2 rounded-xl bg-white/[0.05] border border-emerald-500/30 text-white text-sm tracking-[0.4em] text-center focus:outline-none focus:border-emerald-500",placeholder:"••••"}),(0,s.jsx)("button",{onClick:()=>R(),disabled:A,className:"px-4 rounded-xl bg-emerald-500 text-black text-xs font-bold disabled:opacity-50 transition-transform active:scale-95",children:A?"…":"Go"})]}),C&&(0,s.jsx)("p",{className:"text-[10px] text-red-400",children:C}),(0,s.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,s.jsx)("div",{className:"flex-1 h-px bg-white/10"}),(0,s.jsx)("span",{className:"text-[9px] text-[#64748B] uppercase tracking-wider",children:"or"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-white/10"})]}),(0,s.jsx)(y.A,{onApproved:e=>R(e),intent:E?{action:"wallets.send",toAddress:String(p.to||"").trim(),amount:Number(p.amount),network:String(p.network||"").toUpperCase(),destinationNetwork:null,currency:"USDC"}:B?{action:"bills.purchase",type:String(p.type||"").toLowerCase(),provider:String(p.provider||"").toUpperCase(),recipient:String(p.recipient||"").trim(),amount:Number(p.amount),planCode:null,portedNumber:!1}:{action:"conversions.execute",from:String(p.from||"").toUpperCase(),to:String(p.to||"").toUpperCase(),amount:Number(p.amount)},accentRgb:a,disabled:A,label:"Use Face ID or fingerprint"})]})]})]})}function C(){let{variant:e,colors:t}=(0,l.D)(),[a,o]=(0,i.useState)(!1),[d,y]=(0,i.useState)(""),[w,j]=(0,i.useState)(!1),[N,k]=(0,i.useState)([{id:"1",sender:"ai",kind:"text",text:"Hello! \uD83D\uDC4B I am your 24/7 SureXend Assistant. I can answer questions, and with your approval (PIN) I can help send crypto, pay bills and download receipts. How can I help?",time:A()}]),[C,D]=(0,i.useState)(!1),P=(0,i.useRef)(null),E="gold"===e,B=E?"212, 160, 23":"181, 226, 61";(0,i.useEffect)(()=>{if(a){var e;null==(e=P.current)||e.scrollIntoView({behavior:"smooth"})}},[N,a]);let I=e=>{k(t=>[...t,{id:Date.now().toString(),sender:"ai",kind:e.ok&&e.ref?"result":"text",text:e.text,ref:e.ref,time:A()}])},M=async e=>{let t=(e||d).trim();if(!t||C)return;let a=N.filter(e=>e.text).map(e=>({role:"ai"===e.sender?"AI":"USER",content:e.text})).slice(-10);k(e=>[...e,{id:Date.now().toString(),sender:"user",kind:"text",text:t,time:A()}]),e||y(""),D(!0);try{var s;let e=await g.Ge.chat({message:t,history:a}),i=(null==e||null==(s=e.action)?void 0:s.type)?e.action:void 0;k(t=>[...t,{id:(Date.now()+1).toString(),sender:"ai",kind:i?"action":"text",text:(null==e?void 0:e.response)||"Here is what I found. How can I help further?",action:i,time:A()}])}catch(e){k(e=>[...e,{id:(Date.now()+1).toString(),sender:"ai",kind:"text",text:"I could not reach the assistant right now. Please check your connection and try again.",time:A()}])}finally{D(!1)}},U=async()=>{try{var t;let a=await g.FU.getHistory({limit:1}),s=null==a||null==(t=a.transactions)?void 0:t[0];if(!s)throw Error("No transaction found yet.");await document.fonts.ready;let i=await (0,f.$)({tx:s,variant:e,accentHex:E?"#C8960C":"#B5E23D"}),r=(s.reference||s.id||"receipt").replace(/[^a-zA-Z0-9_-]/g,"");await (0,f.R)(i,r,"png"),b.Ay.success("Receipt downloaded")}catch(e){b.Ay.error("No transaction found to download.")}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"fixed bottom-20 right-4 z-40 w-12 h-12 rounded-full flex items-center justify-center text-black font-extrabold shadow-lg transition-transform border border-white/20 active:scale-95 md:bottom-6 md:right-6",style:{background:t.gradientBg,boxShadow:"0 4px 14px rgba(0, 0, 0, 0.5)"},title:"24/7 AI Support Assistant",children:[(0,s.jsx)(x.A,{className:"w-6 h-6 text-black"}),(0,s.jsx)("span",{className:"absolute -top-1 -right-1 w-3.5 h-3.5 rounded-full bg-emerald-500 ring-2 ring-[#020203]"})]}),(0,s.jsx)(r.N,{children:a&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4 liquid-backdrop",children:(0,s.jsxs)(n.P.div,{initial:{opacity:0,y:100,scale:.95}
1,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:100,scale:.95},className:"ai-chat-modal w-full sm:w-[420px] h-[85vh] sm:h-[600px] max-h-[90vh] bg-[#0B0D13] border border-white/10 rounded-t-3xl sm:rounded-3xl shadow-2xl flex flex-col overflow-hidden relative",children:[(0,s.jsxs)("div",{className:"ai-chat-header p-4 border-b border-white/10 flex items-center justify-between bg-black/40",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-2xl flex items-center justify-center text-black font-extrabold shadow-md flex-shrink-0",style:{background:t.gradientBg},children:(0,s.jsx)(x.A,{className:"w-6 h-6 text-black"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"ai-chat-title font-extrabold text-white text-sm flex items-center gap-1.5",children:["SureXend AI Assistant",(0,s.jsx)("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-emerald-500/10 text-emerald-400 font-bold border border-emerald-500/20",children:"24/7 Online"})]}),(0,s.jsx)("p",{className:"text-[11px] text-[#94A3B8] ai-chat-subtitle",children:"Answers, sends, bills & receipts — PIN-protected"})]})]}),(0,s.jsx)("button",{onClick:()=>o(!1),className:"ai-chat-close p-2 rounded-full hover:bg-white/10 text-gray-400 hover:text-white transition-colors",children:(0,s.jsx)(p.A,{className:"w-5 h-5"})})]}),(0,s.jsxs)("div",{className:"flex-1 p-4 overflow-y-auto space-y-4 ai-chat-body",children:[N.map(t=>(0,s.jsx)("div",{className:"flex ".concat("user"===t.sender?"justify-end":"justify-start"),children:(0,s.jsxs)("div",{className:"max-w-[90%] ".concat("action"===t.kind?"w-full":""),children:[(0,s.jsxs)("div",{className:"p-3.5 rounded-2xl text-xs leading-relaxed ".concat("user"===t.sender?"ai-chat-bubble-user bg-emerald-500/20 text-emerald-100 border border-emerald-500/30 rounded-tr-none":"ai-chat-bubble-bot bg-white/[0.04] text-gray-200 border border-white/10 rounded-tl-none"),children:[t.text&&(0,s.jsx)("p",{className:"whitespace-pre-line",children:t.text}),"result"===t.kind&&t.ref&&(0,s.jsxs)("button",{onClick:U,className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/[0.06] border border-white/10 text-[10px] font-bold text-emerald-300 hover:bg-white/10 transition-colors",children:[(0,s.jsx)(c.A,{className:"w-3 h-3"})," Download receipt"]}),(0,s.jsx)("span",{className:"text-[9px] text-[#64748B] block mt-1 text-right",children:t.time})]}),"action"===t.kind&&t.action&&(0,s.jsx)(S,{action:t.action,accentRgb:B,variant:e,accentHex:E?"#C8960C":"#B5E23D",onDone:I,onBusy:j})]})},t.id)),C&&(0,s.jsx)("div",{className:"flex justify-start",children:(0,s.jsxs)("div",{className:"ai-chat-typing bg-white/[0.04] border border-white/10 p-3 rounded-2xl text-xs text-gray-400 flex items-center gap-2",children:[(0,s.jsx)(u.A,{className:"w-3.5 h-3.5 animate-spin text-emerald-400"}),(0,s.jsx)("span",{children:"AI is thinking..."})]})}),(0,s.jsx)("div",{ref:P})]}),(0,s.jsx)("div",{className:"ai-chat-suggestions px-3 py-2 border-t border-white/5 bg-black/40 flex items-center gap-2 overflow-x-auto whitespace-nowrap scrollbar-none",children:v.map((e,t)=>(0,s.jsxs)("button",{onClick:()=>M(e),disabled:w,className:"ai-chat-chip flex-shrink-0 shrink-0 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/5 hover:bg-white/10 border border-white/10 text-[11px] text-[#E2E8F0] font-semibold whitespace-nowrap transition-all disabled:opacity-40 active:scale-95",children:[(0,s.jsx)(h.A,{className:"w-3 h-3 text-amber-400 flex-shrink-0"})," ",e]},t))}),(0,s.jsxs)("div",{className:"ai-chat-footer p-3 border-t border-white/10 bg-[#020203] flex items-center gap-2",children:[(0,s.jsx)("input",{type:"text",value:d,onChange:e=>y(e.target.value),onKeyDown:e=>"Enter"===e.key&&M(),placeholder:"Ask anything, or try: 'send 50 USDC to Chidi'",className:"ai-chat-input flex-1 py-3 px-4 rounded-xl bg-white/[0.04] border border-white/10 text-white text-xs focus:outline-none focus:border-emerald-500 transition-colors"}),(0,s.jsx)("button",{onClick:()=>M(),disabled:!d.trim()||w,className:"p-3 rounded-xl font-bold text-black shadow-md disabled:opacity-40 transition-transform active:scale-95 flex-shrink-0",style:{background:t.gradientBg},children:(0,s.jsx)(m.A,{className:"w-4 h-4 text-black"})})]})]})})})]})}},78192:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},89559:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},95740:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(71847).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])}}]);

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.