PageSourceSearch

https://production.assets.hyperpad.com/assets/ShopProducts-WF7SPEZ7.js

js hyperpad.com collected 2026-10-02 06:06:38 UTC 3,301 bytes, 2 lines download raw bytes

1import{a as l}from"/assets/chunk-4I2NODGB.js";import{a}from"/assets/chunk-GXR4IPRE.js";import{a as s}from"/assets/chunk-AOURNC2H.js";import{a as p,f as d}from"/assets/chunk-OXFJUOJE.js";import{a as o}from"/assets/chunk-QZEGL5W7.js";import"/assets/chunk-4Z4DMVOV.js";import{a as m}from"/assets/chunk-J3IT7JTE.js";import{c as i}from"/assets/chunk-3P2IUJ3S.js";var t=i(m()),h=({data:c})=>{let{products:r,pagination:n}=c,g=e=>{window.location.href=`/shop/products?page=${e}`},u=e=>{switch(e){case"completed":return(0,t.jsx)(a,{variant:"success",children:"Completed"});case"adding_variant":return(0,t.jsx)(a,{variant:"warning",children:"Adding Variant"});case"adding_file":return(0,t.jsx)(a,{variant:"warning",children:"Adding File"});case"adding_other_content":return(0,t.jsx)(a,{variant:"warning",children:"Adding Content"});default:return(0,t.jsx)(a,{children:e})}};return(0,t.jsx)("div",{className:"min-h-screen bg-background text-foreground",children:(0,t.jsxs)("div",{className:"py-8 px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(p,{children:"Products"}),(0,t.jsxs)(o,{onClick:()=>window.location.href="/shop/products/new",children:[(0,t.jsx)("i",{className:"fa-solid fa-plus mr-2","aria-hidden":"true"}),"New Product"]})]}),r.length===0?(0,t.jsx)(s,{className:"p-8 text-center",children:(0,t.jsx)(d,{children:"No products found."})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s,{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-border bg-gray-50 dark:bg-gray-800",children:[(0,t.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"Name"}),(0,t.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"Type"}),(0,t.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"Seller"}),(0,t.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"State"}),(0,t.jsx)("th",{className:"text-left px-4 py-3 font-medium",children:"Downloads"}),(0,t.jsx)("th",{className:"text-right px-4 py-3 font-medium",children:"Actions"})]})}),(0,t.jsx)("tbody",{children:r.map(e=>(0,t.jsxs)("tr",{className:"border-b border-border hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)("a",{href:`/shop/products/${e.id}`,className:"text-primary hover:underline font-medium",children:e.name})}),(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)(d,{children:e.product_type?.name??"-"})}),(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)(d,{children:e.seller?.user?.display_name??"-"})}),(0,t.jsx)("td",{className:"px-4 py-3",children:u(e.state)}),(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)(d,{children:e.downloads})}),(0,t.jsx)("td",{className:"px-4 py-3 text-right",children:(0,t.jsx)("div",{className:"flex items-center justify-end gap-2",children:(0,t.jsx)(o,{variant:"ghost",size:"sm",onClick:()=>window.location.href=`/shop/products/${e.id}/edit`,children:"Edit"})})})]},e.id))})]})})}),n.total_pages>1&&(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(l,{pagination:n,onPageChange:g,itemName:"products"})})]})]})})},w=h;export{w 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.