1import{a as q,c as G,f as V,b as J,r as f,j as e,L as D,H as K}from"./edge-BOITG1XR.js";import{g as O}from"./mod-C1R88L9B.js";function re(){const{invoiceId:n}=q(),[i]=G(),r=i.get("order"),o=V(),{notify:a}=J(),[t,j]=f.useState(null),[c,h]=f.useState(!0),[W,S]=f.useState(""),[d,w]=f.useState([]),[l,p]=f.useState(!1);if(f.useEffect(()=>{async function s(){const m=O();try{let b;if(m&&n)b=await fetch(`/api/my/invoices/${encodeURIComponent(n)}`,{headers:{Accept:"application/json",Authorization:`Bearer ${m}`}});else if(r)b=await fetch(`/api/invoice/by-order/${encodeURIComponent(r)}`,{headers:{Accept:"application/json"}});else{S("Invoice access requires sign-in or an order link."),h(!1);return}if(b.status===401){o(`/auth/login?next=/invoice/${n}`);return}const U=await b.json();if(!b.ok){S(U?.error||"Could not load invoice."),h(!1);return}j(U.invoice),h(!1)}catch{S("Network error loading invoice."),h(!1)}}s(),fetch("/api/checkout/methods").then(m=>m.json()).then(m=>w(m?.methods||[])).catch(()=>{})},[n,r,o]),c)return e.jsx(H,{children:e.jsx("span",{style:{color:"var(--sue-text-muted)"},children:"Loading invoiceâ¦"})});if(W)return e.jsxs(H,{children:[e.jsx("span",{style:{color:"#B91C1C"},children:W}),e.jsx(D,{to:"/dashboard",style:{marginTop:16},children:"â Back to dashboard"})]});if(!t)return null;const x=t.status,F=x==="Unpaid",g=x==="Paid",I=x==="Cancelled",R=x==="Refunded",_=t.is_overdue,T=t.status_color||"#0066CC",C=t.order?.access_token,Y=s=>C?`/checkout/pay?order=${C}&method=${s}`:"#",k=parseFloat(t.total)||0,u=parseFloat(t.balance)||0,N=k-u,P=F?"Payment Due":"Invoice";return e.jsxs(e.Fragment,{children:[e.jsxs(K,{children:[e.jsxs("title",{children:[P," ",t.invoice_number," · ",x," | SendUnlimitedEmail"]}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsx("div",{className:"invoice-print-hide",style:{height:4,background:`linear-gradient(90deg, ${T}, color-mix(in srgb, ${T} 50%, white))`}}),e.jsx("section",{className:"invoice-print-hide",style:{padding:"24px 0 12px",borderBottom:"1px solid var(--sue-border)"},children:e.jsxs("div",{className:"sue-container",style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:12},children:[e.jsx(D,{to:"/dashboard",style:{fontSize:13,color:"var(--sue-blue-600)",textDecoration:"none",fontWeight:600},children:"â Back to dashboard"}),e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[F&&C&&e.jsxs("button",{type:"button",onClick:()=>{p(!0),setTimeout(()=>window.scrollTo({top:200,behavior:"smooth"}),50)},className:"sue-btn sue-btn-primary",style:{background:"#D97706",borderColor:"#D97706",boxShadow:"0 8px 24px rgba(217,119,6,0.25)"},children:["Pay $",u.toFixed(2)," now â"]}),e.jsx("button",{onClick:()=>X(t,r,a),className:"sue-btn sue-btn-outline sue-btn-sm",type:"button",children:"⬠PDF"}),e.jsx("button",{onClick:()=>window.print(),className:"sue-btn sue-btn-outline sue-btn-sm",type:"button",children:"Print"})]})]})}),e.jsx("section",{style:{padding:"32px 0 48px",background:"linear-gradient(180deg, #F8FAFC 0%, white 200px)"},children:e.jsx("div",{className:"sue-container",style:{maxWidth:1100},children:e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) 320px",gap:28,alignItems:"start"},className:"sue-inv-grid",children:[e.jsxs("div",{children:[F&&C&&e.jsx(Q,{methods:d,balance:u,currency:t.currency,payHrefFor:Y,currentMethod:t.payment_method,expanded:l,onToggle:()=>p(s=>!s)}),e.jsxs("div",{style:{position:"relative",background:"white",border:"1px solid var(--sue-border)",borderTop:`4px solid ${T}`,borderRadius:14,padding:"clamp(28px, 4vw, 48px)",boxShadow:"0 4px 24px rgba(15,23,42,0.06)",overflow:"hidden"},children:[g&&e.jsx(E,{label:"PAID",color:"#16A34A"}),I&&e.jsx(E,{label:"CANCELLED",color:"#64748B"}),R&&e.jsx(E,{label:"REFUNDED",color:"#0066CC"}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",flexWrap:"wrap",gap:18,paddingBottom:24,borderBottom:"1px solid var(--sue-border)"},children:[e.jsxs("div",{children:[e.jsx("img",{src:"/brand/sue-logo.png",alt:"SendUnlimitedEmail",width:"170",style:{display:"block",width:170,height:"auto",maxWidth:"100%"}}),e.jsxs("div",{style:{fontSize:12,color:"var(--sue-text-muted)",marginTop:10,lineHeight:1.55}
1,children:["Dedicated SMTP infrastructure",e.jsx("br",{}),e.jsx("a",{href:"mailto:[email protected]",style:{color:"var(--sue-text-muted)",textDecoration:"none"},children:"[email protected]"})]})]}),e.jsxs("div",{style:{textAlign:"right"},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,letterSpacing:"0.18em",color:"var(--sue-text-subtle)",textTransform:"uppercase",marginBottom:4},children:P}),e.jsx("div",{style:{fontFamily:"monospace",fontSize:18,fontWeight:800,color:"var(--sue-text)"},children:t.invoice_number}),e.jsx("div",{style:{marginTop:8},children:e.jsx(Z,{status:x,color:T,overdue:_})})]})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:24,padding:"24px 0",borderBottom:"1px solid var(--sue-border)"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:"0.12em",color:"var(--sue-text-subtle)",textTransform:"uppercase",marginBottom:8},children:"Billed to"}),t.billing_address?e.jsxs("div",{style:{fontSize:13.5,color:"var(--sue-text-muted)",lineHeight:1.55},children:[e.jsx("div",{style:{fontSize:15,fontWeight:700,color:"var(--sue-text)"},children:[t.billing_address.first_name,t.billing_address.last_name].filter(Boolean).join(" ")||"â"}),t.billing_address.company&&e.jsx("div",{children:t.billing_address.company}),t.billing_address.email&&e.jsx("div",{children:t.billing_address.email}),t.billing_address.country&&e.jsx("div",{children:t.billing_address.country})]}):e.jsx("div",{style:{fontSize:12,color:"var(--sue-text-subtle)"},children:"â"})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,alignContent:"start"},children:[e.jsx($,{label:"Issued",value:z(t.issued_at)}),e.jsx($,{label:"Due date",value:z(t.due_at),accent:_?"#B91C1C":null,hint:_?"past due":null}),e.jsx($,{label:"Currency",value:t.currency||"USD"}),e.jsx($,{label:"Method",value:(t.payment_method||"â").replace(/[-_]/g," "),caps:!0})]})]}),e.jsx("div",{style:{padding:"24px 0"},children:e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:v,children:"Description"}),e.jsx("th",{style:{...v,textAlign:"right",width:130},children:"Amount"})]})}),e.jsx("tbody",{children:(t.items||[]).map(s=>e.jsxs("tr",{style:{borderTop:"1px solid var(--sue-border)"},children:[e.jsxs("td",{style:{padding:"14px 4px"},children:[e.jsx("div",{style:{fontSize:14.5,fontWeight:600,color:"var(--sue-text)"},children:s.description}),e.jsx("span",{style:te(s.type),children:ee(s.type)})]}),e.jsxs("td",{style:{padding:"14px 4px",textAlign:"right",fontFamily:"monospace",fontSize:14.5,fontWeight:700,color:parseFloat(s.amount)<0?"#16A34A":"var(--sue-text)"},children:[parseFloat(s.amount)<0?"â":"","$",Math.abs(parseFloat(s.amount)).toFixed(2)]})]},s.id))})]})}),e.jsx("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16,borderTop:"1px solid var(--sue-border)"},children:e.jsxs("div",{style:{minWidth:280,fontSize:14},children:[e.jsx(y,{label:"Subtotal",value:`$${parseFloat(t.subtotal||k).toFixed(2)}`}),parseFloat(t.tax_amount||0)>0&&e.jsx(y,{label:"Tax",value:`$${parseFloat(t.tax_amount).toFixed(2)}`}),parseFloat(t.discount_amount||0)>0&&e.jsx(y,{label:"Discount applied",value:`â$${parseFloat(t.discount_amount).toFixed(2)}`,positive:!0}),e.jsx(y,{label:"Total",value:`$${k.toFixed(2)}`,bold:!0}),N>0&&!g&&e.jsx(y,{label:"Paid so far",value:`$${N.toFixed(2)}`,positive:!0}),u!==k&&e.jsx(y,{label:"Balance due",value:`$${u.toFixed(2)}`,bold:!0,accent:u>0?"#D97706":"#16A34A"})]})}),t.transactions?.length>0&&e.jsxs("div",{style:{marginTop:28,paddingTop:22,borderTop:"1px solid var(--sue-border)"},children:[e.jsx("h3",{style:{fontSize:13,fontWeight:800,color:"var(--sue-text)",letterSpacing:"-0.01em",marginBottom:12},children:"Payments received"}),e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13},children:[e.jsx("thead",{children:e.jsxs("tr",{style:{background:"var(--sue-bg-muted)"},children:[e.jsx("th",{style:v,children:"Date"}),e.jsx("th",{style:v,children:"Gateway"}),e.jsx("th",{style:v,children:"Transaction ID"}),e.jsx("th",{style:{...v,textAlign:"right"},children:"Amount"})]})}),e.jsx("tbody",{children:t.transactions.map(s=>e.jsxs("tr",{style:{borderTop:"1px solid var(--sue-border)"},children:[e.jsx("td",{style:B,children:z(s.transacted_at)}),e.jsx("td",{style:B,children:e.jsx("span",{style:{textTransform:"capitalize"},children:(s.gateway||"").replace(/[-_]/g," ")})}),e.jsx("td",{style:{...B,fontFamily:"monospace",fontSize:11.5,color:"var(--sue-text-muted)"},children:s.transaction_id||"â"}),e.jsxs("td",{style:{...B,textAlign:"right",fontFamily:"monospace",fontWeight:700,color:s.kind==="refund"?"#B91C1C":"#16A34A"},children:[s.kind==="refund"?"â":"","$",parseFloat(s.amount).toFixed(2)]})]},s.id))})]})]}),t.notes&&e.jsxs("div",{style:{marginTop:24,padding:"14px 16px",background:"var(--sue-bg-muted)",borderRadius:8,fontSize:13,color:"var(--sue-text-muted)"},children:[e.jsx("strong",{style:{color:"var(--sue-text)"},children:"Notes:"})," ",t.notes]}),e.jsxs("div",{style:{marginTop:32,paddingTop:18,borderTop:"1px solid var(--sue-border)",display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:8,fontSize:11.5,color:"var(--sue-text-subtle)"}
1,children:[e.jsx("span",{children:"Thank you for your business."}),e.jsxs("span",{children:["Reference: ",t.invoice_number]})]})]}),e.jsxs("div",{className:"invoice-print-hide",style:{marginTop:18,padding:"14px 18px",background:"white",border:"1px solid var(--sue-border)",borderRadius:12,display:"flex",justifyContent:"space-around",alignItems:"center",flexWrap:"wrap",gap:12},children:[e.jsx(A,{icon:"ð",label:"Encrypted in transit",sub:"TLS 1.3 secured"}),e.jsx(A,{icon:"â",label:"Cancel anytime",sub:"No long contracts"}),e.jsx(A,{icon:"ð¡",label:"Secure billing portal",sub:"sendunlimitedemail.com"}),e.jsx(A,{icon:"ð",label:"24/7 support",sub:"~6 h response"})]}),F&&C&&!l&&e.jsx("div",{className:"invoice-print-hide",style:{marginTop:22,textAlign:"center"},children:e.jsxs("button",{type:"button",onClick:()=>{p(!0),window.scrollTo({top:0,behavior:"smooth"})},className:"sue-btn sue-btn-primary",style:{background:"#D97706",borderColor:"#D97706",padding:"14px 28px",fontSize:15,boxShadow:"0 8px 24px rgba(217,119,6,0.25)"},children:["Pay $",u.toFixed(2)," now â"]})})]}),e.jsxs("aside",{className:"invoice-print-hide",style:{display:"flex",flexDirection:"column",gap:14},children:[e.jsx(L,{label:"Status",value:x,color:T,hint:g?`Paid on ${z(t.paid_at)}`:F?`Due ${z(t.due_at)}`:I?"No further charges":R?"Refund processed":""}),e.jsx(L,{label:g?"Total paid":"Balance due",value:`$${(g?k:u).toFixed(2)}`,color:g?"#16A34A":u>0?"#D97706":"#16A34A",hint:t.currency||"USD",big:!0}),t.service&&e.jsxs(M,{children:[e.jsx("div",{style:{padding:"14px 16px",borderBottom:"1px solid var(--sue-border)",fontSize:11,fontWeight:700,color:"var(--sue-text-muted)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Linked service"}),e.jsxs(D,{to:`/service/${t.service.id}`,style:{display:"block",padding:"14px 16px",textDecoration:"none",color:"inherit"},children:[e.jsx("div",{style:{fontWeight:700,fontSize:14,color:"var(--sue-blue-600)"},children:t.service.product||`Service #${t.service.id}`}),e.jsxs("div",{style:{fontSize:11.5,color:"var(--sue-text-subtle)",marginTop:2,textTransform:"uppercase",letterSpacing:"0.04em"},children:["Status: ",t.service.status?.replace(/_/g," ")]}),e.jsx("div",{style:{fontSize:12,color:"var(--sue-blue-600)",fontWeight:600,marginTop:6},children:"Open service â"})]})]}),e.jsxs(M,{children:[e.jsx("div",{style:{padding:"14px 16px",borderBottom:"1px solid var(--sue-border)",fontSize:11,fontWeight:700,color:"var(--sue-text-muted)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Need help?"}),e.jsxs("div",{style:{padding:14,display:"flex",flexDirection:"column",gap:8},children:[e.jsx(D,{to:"/tickets/new",className:"sue-btn sue-btn-outline sue-btn-sm",style:{justifyContent:"center"},children:"Open billing ticket"}),e.jsx("a",{href:"mailto:[email protected]",style:{fontSize:12.5,color:"var(--sue-text-muted)",textAlign:"center",textDecoration:"none"},children:"[email protected]"})]})]}),e.jsxs("div",{style:{padding:"16px 18px",background:"linear-gradient(135deg, var(--sue-teal-600), var(--sue-blue-600))",color:"white",borderRadius:12},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",opacity:.85,marginBottom:4},children:"Our promise"}),e.jsx("div",{style:{fontSize:15,fontWeight:800,letterSpacing:"-0.01em",marginBottom:4},children:"Cancel anytime"}),e.jsx("div",{style:{fontSize:12,opacity:.92,lineHeight:1.45},children:"No long-term contracts. Stop billing whenever you want from your dashboard."})]})]})]})})}),e.jsx("style",{children:` 2 @media (max-width: 980px) { 3 .sue-inv-grid { grid-template-columns: 1fr !important; } 4 } 5 @media print { 6 .invoice-print-hide { display: none !important; } 7 body { background: white !important; } 8 .sue-inv-grid { grid-template-columns: 1fr !important; gap: 0 !important; } 9 section { padding: 0 !important; } 10 } 11 `})]})}function E({label:n,color:i}){return e.jsx("div",{"aria-hidden":!0,style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) rotate(-18deg)",pointerEvents:"none",fontSize:"clamp(72px, 14vw, 132px)",fontWeight:900,letterSpacing:"0.04em",color:i,opacity:.06,textTransform:"uppercase",whiteSpace:"nowrap",zIndex:0,border:`8px solid ${i}`,padding:"14px 36px",borderRadius:18,lineHeight:1},children:n})}function Q({methods:n,balance:i,currency:r,payHrefFor:o,currentMethod:a,expanded:t,onToggle:j}){const c=(n||[]).filter(d=>d.enabled),h=["card","wallet","crypto","manual"],W={card:"Card",wallet:"Wallet",crypto:"Cryptocurrency",manual:"Manual / offline"},S=h.map(d=>[d,c.filter(w=>w.category===d)]).filter(([,d])=>d.length>0);return e.jsxs("div",{className:"invoice-print-hide",style:{background:"linear-gradient(180deg, #FFFBEB, #FEF3C7)",border:"1px solid #FCD34D",borderRadius:14,padding:"20px 24px",marginBottom:18,boxShadow:"0 4px 14px rgba(217,119,6,0.10)"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:12,marginBottom:t?16:0},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:"#92400E",letterSpacing:"0.06em",textTransform:"uppercase",marginBottom:4},children:"Pay this invoice"}),e.jsxs("div",{style:{fontSize:24,fontWeight:800,color:"#7C2D12",letterSpacing:"-0.02em"},children:["$",parseFloat(i).toFixed(2)," ",r||"USD"," due"]})]}),e.jsx("button",{type:"button",onClick:j,className:"sue-btn sue-btn-sm",style:{background:"#D97706",borderColor:"#D97706",color:"white",fontWeight:700,padding:"11px 22px",fontSize:14,boxShadow:"0 4px 12px rgba(217,119,6,0.30)"},children:t?"Hide options â²":"Choose payment method â¼"})]}),t&&e.jsx("div",{style:{background:"white",borderRadius:12,padding:16,marginTop:8},children:c.length===0?e.jsx("div",{style:{padding:20,textAlign:"center",color:"#94A3B8",fontSize:13.5},children:"No payment methods configured. Contact support."}):S.map(([d,w])=>e.jsxs("div",{style:{marginBottom:12},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:"#64748B",letterSpacing:"0.06em",textTransform:"uppercase",marginBottom:8},children:W[d]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:8},children:w.map(l=>e.jsxs(D,{to:o(l.id),style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 14px",borderRadius:10,border:`1.5px solid ${l.id===a?"#D97706":"#E2E8F0"}`,background:l.id===a?"#FFFBEB":"white",color:"var(--sue-text)",textDecoration:"none",transition:"all .15s"},onMouseEnter:p=>{p.currentTarget.style.borderColor="#D97706",p.currentTarget.style.transform="translateY(-1px)"},onMouseLeave:p=>
11{l.id!==a&&(p.currentTarget.style.borderColor="#E2E8F0"),p.currentTarget.style.transform="translateY(0)"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:13.5,fontWeight:700},children:l.name}),e.jsxs("div",{style:{fontSize:11,color:"#64748B",marginTop:2},children:[l.instant?"Instant":"Manual verification",l.badge?` · ${l.badge}`:""]})]}),e.jsx("span",{style:{color:"#D97706",fontSize:16,fontWeight:800},children:"â"})]},l.id))})]},d))})]})}async function X(n,i,r){const o=O(),a=o?`/api/my/invoices/${encodeURIComponent(n.invoice_number||n.id)}/pdf`:`/api/invoice/by-order/${encodeURIComponent(i)}/pdf`;try{const t=await fetch(a,{headers:o?{Authorization:`Bearer ${o}`}:{}});if(!t.ok){r?.({title:"PDF download failed",body:`Server returned ${t.status}.`,tone:"error"});return}const j=await t.blob(),c=document.createElement("a");c.href=URL.createObjectURL(j),c.download=`${n.invoice_number}.pdf`,document.body.appendChild(c),c.click(),c.remove(),r?.({title:"PDF downloaded",tone:"success"})}catch(t){r?.({title:"Network error",body:t.message,tone:"error"})}}function z(n){return n?new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"â"}function Z({status:n,color:i,overdue:r}){return e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:11.5,fontWeight:800,padding:"5px 12px",borderRadius:999,background:`color-mix(in srgb, ${i||"#475569"} 14%, white)`,color:i||"#475569",border:`1px solid color-mix(in srgb, ${i||"#475569"} 35%, transparent)`,textTransform:"uppercase",letterSpacing:"0.06em"},children:[e.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:i||"#475569"}}),n,r&&" · OVERDUE"]})}function $({label:n,value:i,accent:r,hint:o,caps:a}){return e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:10.5,fontWeight:700,color:"var(--sue-text-subtle)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:4},children:n}),e.jsx("div",{style:{fontSize:14,fontWeight:700,color:r||"var(--sue-text)",textTransform:a?"capitalize":"none"},children:i}),o&&e.jsx("div",{style:{fontSize:11,color:"#B91C1C",fontWeight:600,marginTop:2,textTransform:"uppercase",letterSpacing:"0.04em"},children:o})]})}function y({label:n,value:i,accent:r,bold:o,positive:a}){return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderTop:o?"2px solid var(--sue-border)":"none",fontSize:o?16.5:13.5,fontWeight:o?800:500,color:r||(a?"#16A34A":"var(--sue-text)")},children:[e.jsx("span",{children:n}),e.jsx("span",{style:{fontFamily:"monospace"},children:i})]})}function L({label:n,value:i,color:r,hint:o,big:a}){return e.jsxs("div",{style:{background:"white",border:"1px solid var(--sue-border)",borderRadius:12,padding:"14px 16px",borderTop:`3px solid ${r||"#475569"}`},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:"var(--sue-text-muted)",textTransform:"uppercase",letterSpacing:"0.06em"},children:n}),e.jsx("div",{style:{fontSize:a?28:18,fontWeight:800,color:r,letterSpacing:"-0.02em",marginTop:4,fontFamily:a?"monospace":"inherit"},children:i}),o&&e.jsx("div",{style:{fontSize:11.5,color:"var(--sue-text-subtle)",marginTop:4},children:o})]})}function M({children:n}){return e.jsx("div",{style:{background:"white",border:"1px solid var(--sue-border)",borderRadius:12,overflow:"hidden"},children:n})}function A({icon:n,label:i,sub:r}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,fontSize:12},children:[e.jsx("span",{style:{width:30,height:30,borderRadius:8,background:"var(--sue-bg-muted)",color:"var(--sue-blue-600)",display:"grid",placeItems:"center",fontSize:14},children:n}),e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:700,color:"var(--sue-text)"},children:i}),e.jsx("div",{style:{fontSize:11,color:"var(--sue-text-subtle)"},children:r})]})]})}function ee(n){return{hosting:"Hosting",setup:"Setup",addon:"Add-on",credit:"Credit",late_fee:"Late fee",manual:"Adjustment",domain:"Domain"}[n]||n}function te(n){const i={hosting:["#DBEAFE","#1D4ED8"],setup:["#F0FDF4","#15803D"],credit:["#F0FDF4","#16A34A"],late_fee:["#FEE2E2","#B91C1C"],manual:["#F1F5F9","#475569"],addon:["#F3E8FF","#7C3AED"],domain:["#FEF3C7","#92400E"]},[r,o]=i[n]||["#F1F5F9","#64748B"];return{display:"inline-block",marginTop:4,padding:"2px 8px",borderRadius:4,background:r,color:o,fontSize:10,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase"}}const v={textAlign:"left",padding:"10px 4px",fontSize:10.5,fontWeight:700,color:"var(--sue-text-muted)",letterSpacing:"0.08em",textTransform:"uppercase",borderBottom:"1px solid var(--sue-border)"},B={padding:"10px 4px",verticalAlign:"top"};function H({children:n}){return e.jsx("section",{style:{minHeight:"60vh",display:"grid",placeItems:"center",padding:48},children:e.jsx("div",{style:{maxWidth:480,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:12},children:n})})}export{re 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.