PageSourceSearch

https://production.assets.hyperpad.com/assets/ShopSellers-FPVWWUDJ.js

js hyperpad.com collected 2026-10-02 06:06:42 UTC 2,480 bytes, 2 lines download raw bytes

1import{a as r}from"/assets/chunk-GXR4IPRE.js";import{a as o}from"/assets/chunk-AOURNC2H.js";import{a as m,f as d}from"/assets/chunk-OXFJUOJE.js";import{a as s}from"/assets/chunk-QZEGL5W7.js";import"/assets/chunk-4Z4DMVOV.js";import{a as l}from"/assets/chunk-J3IT7JTE.js";import{c as i}from"/assets/chunk-3P2IUJ3S.js";var e=i(l()),n=a=>{switch(a){case"active":return(0,e.jsx)(r,{variant:"success",children:"Active"});case"under_review":return(0,e.jsx)(r,{variant:"warning",children:"Under Review"});default:return(0,e.jsx)(r,{children:"Initialized"})}},c=({data:a})=>(0,e.jsx)("div",{className:"min-h-screen bg-background text-foreground",children:(0,e.jsxs)("div",{className:"py-8 px-4 sm:px-6 lg:px-8",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,e.jsx)(m,{children:"Sellers"}),(0,e.jsxs)(s,{onClick:()=>window.location.href="/shop/sellers/new",children:[(0,e.jsx)("i",{className:"fa-solid fa-plus mr-2","aria-hidden":"true"}),"New Seller"]})]}),a.sellers.length===0?(0,e.jsx)(o,{className:"p-8 text-center",children:(0,e.jsx)(d,{children:"No sellers found."})}):(0,e.jsx)(o,{className:"overflow-hidden",children:(0,e.jsx)("div",{className:"overflow-x-auto",children:(0,e.jsxs)("table",{className:"w-full text-sm",children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{className:"border-b border-border bg-gray-50 dark:bg-gray-800",children:[(0,e.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"User"}),(0,e.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"Status"}),(0,e.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"Created"}),(0,e.jsx)("th",{className:"text-right px-4 py-3 font-medium",children:"Actions"})]})}),(0,e.jsx)("tbody",{children:a.sellers.map(t=>(0,e.jsxs)("tr",{className:"border-b border-border hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[(0,e.jsx)("td",{className:"px-4 py-3",children:(0,e.jsx)("a",{href:`/shop/sellers/${t.id}`,className:"text-primary hover:underline font-medium",children:t.user?.display_name??`User #${t.user_id}`})}),(0,e.jsx)("td",{className:"px-4 py-3",children:n(t.seller_status)}),(0,e.jsx)("td",{className:"px-4 py-3",children:(0,e.jsx)(d,{children:new Date(t.created_at).toLocaleDateString()})}),(0,e.jsx)("td",{className:"px-4 py-3 text-right",children:(0,e.jsx)(s,{variant:"ghost",size:"sm",onClick:()=>window.location.href=`/shop/sellers/${t.id}/edit`,children:"Edit"})})]},t.id))})]})})})]})}),x=c;export{x as default};
2

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.