1import{c as o,a as l,j as e,L as m}from"./index-W04rzwDS.js";const h=[{title:"Orders",legacySource:"merchant-v207.pl â ec_cmd=new/search/results",actions:[{title:"List submitted / unexported orders",legacyCommand:"ec_cmd=new",description:"Open the operational queue for orders that still need merchant attention.",status:"active",href:"/admin/orders?status=submitted"},{title:"Search orders",legacyCommand:"ec_cmd=search/results",description:"Search submitted orders by recent/archive table, date range, batch id, status and field/operator/value.",status:"active",href:"/admin/orders"}]},{title:"Download logs",legacySource:"OrderExtension::Download",actions:[{title:"List download log",legacyCommand:"listdllog",description:"Open the download audit log with the same searchable admin log table used for application logs.",status:"active",href:"/admin/logs"},{title:"Clear download log",legacyCommand:"cleardllog",description:"Clear download audit log files from the admin log maintenance screen after confirmation.",status:"active",href:"/admin/logs"}]},{title:"Order export",legacySource:"OrderExtension::OrderDownload",actions:[{title:"Prepare to download orders",legacyCommand:"odlstart",description:"Prepare submitted v2 orders (status=0) plus legacy new orders (status=2) for export.",status:"active",href:"/admin/order-download"},{title:"Download order headers",legacyCommand:"odlheader",description:"Download header records for the prepared order batch.",status:"active",href:"/admin/order-download"},{title:"Download order details",legacyCommand:"odldetail",description:"Download line-item/detail records for the prepared order batch.",status:"active",href:"/admin/order-download"},{title:"Mark downloaded orders",legacyCommand:"odlend",description:"Records exported/downloaded marks in rewrite audit data without changing status=3, which is reserved for active carts.",status:"active",href:"/admin/order-download"}]},{title:"Configuration",legacySource:"Merchant.pm + table_info metadata",actions:[{title:"Configure Merchant",legacyCommand:"ec_cmd=config",description:"Manage storefront template, config inventory/export/import and product table upload.",status:"active",href:"/admin/config"},{title:"Change current configuration set",legacyCommand:"ec_cmd=configset",description:"List DB-backed config sets, switch current set, copy, rename, delete, and advanced empty-create.",status:"active",href:"/admin/configsets"},{title:"Discounts & coupons",legacyCommand:"discount_rates/promocode",description:"Manage rewrite-owned automatic discounts and coupon rules for the current config set.",status:"active",href:"/admin/discounts"},{title:"System emails",legacyCommand:"EmailConfirmation/EmailNotification/CustomerDB",description:"List, edit, document, and test every email the rewrite can send.",status:"active",href:"/admin/emails"}]}];function i(t){return t==="active"?"Active":t==="planned"?"Planned":"Deferred"}function p(){const{isAuthenticated:t}=o(),{isAdmin:c,loading:d,scope:n}=l();return t?d?e.jsxs("section",{className:"panel stack",children:[e.jsx("h2",{children:"Merchant admin"}),e.jsx("p",{className:"muted",children:"Checking admin accessâ¦"})]}):!c||!n?e.jsxs("section",{className:"panel stack",children:[e.jsx("h2",{children:"Merchant admin"}),e.jsx("p",{className:"muted",children:"This customer is not allowlisted in the rewrite admin scope table."})]}):e.jsxs("section",{className:"stack admin-page merchant-admin-page",children:[e.jsx("div",{className:"panel stack merchant-admin-hero",children:e.jsxs("div",{className:"merchant-admin-hero-content",children:[e.jsxs("div",{children:[e.jsx("p",{className:"muted compact-copy",children:"Columbia Games Merchant Page parity"}),e.jsx("h2",{children:"Merchant admin"}),e.jsx("p",{className:"merchant-admin-lead",children:"A v2 merchant admin landing page for Columbia Games workflows. Every visible action opens an implemented admin screen for orders, downloads, configuration, customers, themes, logs, discounts, or email tooling."})]}),e.jsxs("div",{className:"merchant-scope-card",children:[e.jsx("strong",{children:"Current configuration set"}),e.jsx("span",{children:n.configId}),e.jsxs("small",{children:["Merchant ",n.merchantId]})]})]})}),e.jsx("div",{className:"merchant-action-grid",children:h.map(s=>e.jsxs("section",{className:"panel stack merchant-action-group",children:[e.jsxs("div",{children:[e.jsx("h3",{children:s.title}),e.jsxs("p",{className:"muted compact-copy",children:["Legacy source: ",e.jsx("code",{children:s.legacySource})]})]}),e.jsx("div",{className:"merchant-action-list",children:s.actions.map(a=>{const r=`merchant-action-card merchant-action-card-${a.status}`;return a.href?e.jsxs(m,{className:r,to:a.href,children:[e.jsxs("span",{className:"merchant-action-title-row",children:[e.jsx("strong",{children:a.title}),e.jsx("span",{className:"merchant-action-status",children:i(a.status)})]}),e.jsxs("span",{className:"muted small-text",children:["Legacy: ",e.jsx("code",{children:a.legacyCommand})]}),e.jsx("span",{children:a.description})]},a.legacyCommand):e.jsxs("div",{className:r,"aria-disabled":"true",children:[e.jsxs("span",{className:"merchant-action-title-row",children:[e.jsx("strong",{children:a.title}),e.jsx("span",{className:"merchant-action-status",children:i(a.status)})]}),e.jsxs("span",{className:"muted small-text",children:["Legacy: ",e.jsx("code",{children:a.legacyCommand})]}),e.jsx("span",{children:a.description})]},a.legacyCommand)})})]},s.title))})]}):e.jsxs("section",{className:"panel stack",children:[e.jsx("h2",{children:"Merchant admin"}),e.jsx("p",{className:"muted",children:"Log in first. The merchant admin pages are hidden from anonymous users."})]})}
1export{p as AdminDashboardPage};
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.