PageSourceSearch

https://smartedu.ai/build/assets/DataTable-CSgqI4_c2.js

js smartedu.ai collected 2026-10-05 15:07:09 UTC 1,649 bytes, 1 lines download raw bytes

1import{i as s,t as r}from"./react-C6JdJxIB.js";import{t as l}from"./jsx-runtime-CGXBp6bb.js";import{t as d}from"./DataViewContainer-BWKjchIs.js";var x=s(r(),1),t=l();function u({subscriptions:a,onAdd:n}){return(0,t.jsx)(d,{title:"Subscriptions",data:a,searchKeys:["tenant_name","tenant_domain","plan_name","status","payment_status"],columns:[{key:"id",label:"ID",render:e=>(0,t.jsxs)("span",{className:"text-xs text-gray-400",children:["#",e.id]})},{key:"tenant_name",label:"Tenant",sortable:!0,render:e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-0 text-sm font-medium text-gray-800",children:e.tenant_name}),(0,t.jsx)("p",{className:"mb-0 text-xs text-gray-400",children:e.tenant_domain??"—"})]})},{key:"plan_name",label:"Plan",sortable:!0,render:e=>(0,t.jsx)("span",{className:"text-sm text-gray-700",children:e.plan_name})},{key:"amount",label:"Amount",render:e=>(0,t.jsxs)("span",{className:"font-semibold text-indigo-600",children:["$",Number(e.amount).toFixed(2)]})},{key:"payment_status",label:"Payment",render:e=>(0,t.jsx)("span",{className:"inline-flex rounded-full bg-sky-100 px-2.5 py-0.5 text-xs font-semibold text-sky-700",children:e.payment_status})},{key:"payment_method",label:"Method",render:e=>e.payment_method??"—"},{key:"status",label:"Status",render:e=>(0,t.jsx)("span",{className:`inline-flex rounded-full px-2.5 py-0.5 text-xs font-semibold ${e.status==="active"?"bg-emerald-100 text-emerald-700":"bg-slate-100 text-slate-700"}`,children:e.status})},{key:"ends_at",label:"Ends",render:e=>e.ends_at?new Date(e.ends_at).toLocaleDateString():"—"}],onAdd:n,addLabel:"Add Subscription"})}export{u 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.