@burdenoff/microfe-store 2026.625.3 → 2026.625.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StoreRoutes.js +3 -3
- package/dist/StoreRoutes.js.map +1 -1
- package/dist/components/AccessDenied.js +3 -3
- package/dist/components/AccessDenied.js.map +1 -1
- package/dist/components/InstallAppModal.js +255 -175
- package/dist/components/InstallAppModal.js.map +1 -1
- package/dist/components/cart/CartDrawer.js +10 -10
- package/dist/components/cart/CartDrawer.js.map +1 -1
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/errors/CombinedGraphQLErrors.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/errors/utils.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/link/core/ApolloLink.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/link/subscriptions/index.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/link/utils/createOperation.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/graphql/print.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/caches.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/checkDocument.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/getMainDefinition.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/getOperationDefinition.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/globals/global.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/makeUniqueId.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/memoize.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/stringifyForDisplay.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/invariant/index.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js +6 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js.map +1 -0
- package/dist/node_modules/{@wry → .bun/@wry_caches@1.0.1/node_modules/@wry}/caches/lib/weak.js +1 -1
- package/dist/node_modules/.bun/@wry_caches@1.0.1/node_modules/@wry/caches/lib/weak.js.map +1 -0
- package/dist/node_modules/{@wry → .bun/@wry_trie@0.5.0/node_modules/@wry}/trie/lib/index.js +1 -1
- package/dist/node_modules/.bun/@wry_trie@0.5.0/node_modules/@wry/trie/lib/index.js.map +1 -0
- package/dist/node_modules/{graphql-ws → .bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws}/dist/client.js +1 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/client.js.map +1 -0
- package/dist/node_modules/{graphql-ws → .bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws}/dist/common-CGW11Fyb.js +1 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/NotificationFactories.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/Observable.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/Subscriber.js +2 -2
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/Subscription.js +2 -2
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/config.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/observable/empty.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/scheduler/timeoutProvider.js +2 -2
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/symbol/observable.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/UnsubscriptionError.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/createErrorClass.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/errorContext.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/pipe.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/reportUnhandledError.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/tslib@2.8.1}/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/pages/AdminDashboardPage.js +89 -90
- package/dist/pages/AdminDashboardPage.js.map +1 -1
- package/dist/pages/AdminReviewModerationPage.js +56 -58
- package/dist/pages/AdminReviewModerationPage.js.map +1 -1
- package/dist/pages/AdminStoresPage.js +372 -391
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +148 -134
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/AppDetailPage.js +120 -123
- package/dist/pages/AppDetailPage.js.map +1 -1
- package/dist/pages/AppSettingsPage.js +297 -70
- package/dist/pages/AppSettingsPage.js.map +1 -1
- package/dist/pages/CartPage.js +76 -65
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +315 -106
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +378 -368
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +75 -67
- package/dist/pages/MyLicensesPage.js.map +1 -1
- package/dist/pages/OrderConfirmationPage.js +37 -38
- package/dist/pages/OrderConfirmationPage.js.map +1 -1
- package/dist/pages/OrdersPage.js +64 -53
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +213 -215
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/dist/pages/ProductReviewsPage.js +2 -2
- package/dist/pages/ProductReviewsPage.js.map +1 -1
- package/dist/pages/PublisherDashboardPage.js +92 -93
- package/dist/pages/PublisherDashboardPage.js.map +1 -1
- package/dist/pages/PublisherRevenuePage.js +60 -61
- package/dist/pages/PublisherRevenuePage.js.map +1 -1
- package/dist/pages/PublisherSubmissionsPage.js +96 -97
- package/dist/pages/PublisherSubmissionsPage.js.map +1 -1
- package/dist/pages/PublisherSubmitPage.js +184 -189
- package/dist/pages/PublisherSubmitPage.js.map +1 -1
- package/dist/providers/StoreProvider.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -10
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/version.js +0 -6
- package/dist/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
- /package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/caching/sizes.js +0 -0
|
@@ -4,9 +4,8 @@ import { ArrowLeft as i, Pencil as a, Plus as o, RefreshCw as s, Store as c, Tra
|
|
|
4
4
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
import { useNavigate as f } from "react-router-dom";
|
|
6
6
|
import { graphqlFetch as p } from "@burdenoff/fe-libs/shared/graphql";
|
|
7
|
-
import { AlertDialog as m, AlertDialogAction as h, AlertDialogCancel as g, AlertDialogContent as _, AlertDialogDescription as v, AlertDialogFooter as y, AlertDialogHeader as b, AlertDialogTitle as x, GlassCard as S } from "@burdenoff/fe-libs/ui";
|
|
8
7
|
//#region src/pages/AdminStoresPage.tsx
|
|
9
|
-
var
|
|
8
|
+
var m = "\n query AdminStores {\n stores {\n id\n slug\n name\n type\n tenantId\n isPublic\n requiresApproval\n allowUnverifiedPublishers\n currency\n logoUrl\n description\n createdAt\n }\n }\n", h = "\n mutation CreateStore($input: CreateStoreInput!) {\n createStore(input: $input) {\n id\n slug\n name\n type\n }\n }\n", g = "\n mutation UpdateStore($id: ID!, $input: UpdateStoreInput!) {\n updateStore(id: $id, input: $input) {\n id\n name\n isPublic\n requiresApproval\n }\n }\n", _ = "\n mutation DeleteStore($id: ID!) {\n deleteStore(id: $id)\n }\n", v = {
|
|
10
9
|
slug: "",
|
|
11
10
|
name: "",
|
|
12
11
|
type: "PRIVATE",
|
|
@@ -16,30 +15,30 @@ var C = "\n query AdminStores {\n stores {\n id\n slug\n name
|
|
|
16
15
|
allowUnverifiedPublishers: !0,
|
|
17
16
|
currency: "USD",
|
|
18
17
|
description: ""
|
|
19
|
-
},
|
|
20
|
-
let
|
|
21
|
-
|
|
18
|
+
}, y = () => {
|
|
19
|
+
let y = f(), { authToken: b, basePath: x } = e(), [S, C] = r([]), [w, T] = r(!1), [E, D] = r(null), [O, k] = r(!1), [A, j] = r(v), [M, N] = r(null), P = t(async () => {
|
|
20
|
+
T(!0), D(null);
|
|
22
21
|
try {
|
|
23
22
|
let e = await p({
|
|
24
23
|
gateway: "global",
|
|
25
|
-
query:
|
|
26
|
-
authToken:
|
|
24
|
+
query: m,
|
|
25
|
+
authToken: b || void 0
|
|
27
26
|
});
|
|
28
27
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? "Failed to load stores");
|
|
29
|
-
|
|
28
|
+
C(e.data?.stores ?? []);
|
|
30
29
|
} catch (e) {
|
|
31
|
-
|
|
30
|
+
D(e instanceof Error ? e.message : "Failed to load stores");
|
|
32
31
|
} finally {
|
|
33
|
-
|
|
32
|
+
T(!1);
|
|
34
33
|
}
|
|
35
|
-
}, [
|
|
34
|
+
}, [b]);
|
|
36
35
|
n(() => {
|
|
37
|
-
|
|
38
|
-
}, [
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
36
|
+
P();
|
|
37
|
+
}, [P]);
|
|
38
|
+
let F = () => {
|
|
39
|
+
N(null), j(v), k(!0);
|
|
40
|
+
}, I = (e) => {
|
|
41
|
+
N(e.id), j({
|
|
43
42
|
slug: e.slug,
|
|
44
43
|
name: e.name,
|
|
45
44
|
type: e.type,
|
|
@@ -49,421 +48,403 @@ var C = "\n query AdminStores {\n stores {\n id\n slug\n name
|
|
|
49
48
|
allowUnverifiedPublishers: e.allowUnverifiedPublishers,
|
|
50
49
|
currency: e.currency,
|
|
51
50
|
description: e.description ?? ""
|
|
52
|
-
}),
|
|
53
|
-
},
|
|
54
|
-
if (!
|
|
55
|
-
|
|
51
|
+
}), k(!0);
|
|
52
|
+
}, L = async () => {
|
|
53
|
+
if (!A.slug.trim() || !A.name.trim()) {
|
|
54
|
+
D("Slug and name are required");
|
|
56
55
|
return;
|
|
57
56
|
}
|
|
58
|
-
|
|
57
|
+
D(null);
|
|
59
58
|
try {
|
|
60
|
-
|
|
59
|
+
M ? await p({
|
|
61
60
|
gateway: "global",
|
|
62
|
-
query:
|
|
61
|
+
query: g,
|
|
63
62
|
variables: {
|
|
64
|
-
id:
|
|
63
|
+
id: M,
|
|
65
64
|
input: {
|
|
66
|
-
name:
|
|
67
|
-
isPublic:
|
|
68
|
-
requiresApproval:
|
|
69
|
-
allowUnverifiedPublishers:
|
|
70
|
-
currency:
|
|
71
|
-
description:
|
|
65
|
+
name: A.name,
|
|
66
|
+
isPublic: A.isPublic,
|
|
67
|
+
requiresApproval: A.requiresApproval,
|
|
68
|
+
allowUnverifiedPublishers: A.allowUnverifiedPublishers,
|
|
69
|
+
currency: A.currency,
|
|
70
|
+
description: A.description || null
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
|
-
authToken:
|
|
73
|
+
authToken: b || void 0
|
|
75
74
|
}) : await p({
|
|
76
75
|
gateway: "global",
|
|
77
|
-
query:
|
|
76
|
+
query: h,
|
|
78
77
|
variables: { input: {
|
|
79
|
-
slug:
|
|
80
|
-
name:
|
|
81
|
-
type:
|
|
82
|
-
tenantId:
|
|
83
|
-
isPublic:
|
|
84
|
-
requiresApproval:
|
|
85
|
-
allowUnverifiedPublishers:
|
|
86
|
-
currency:
|
|
87
|
-
description:
|
|
78
|
+
slug: A.slug,
|
|
79
|
+
name: A.name,
|
|
80
|
+
type: A.type,
|
|
81
|
+
tenantId: A.tenantId || null,
|
|
82
|
+
isPublic: A.isPublic,
|
|
83
|
+
requiresApproval: A.requiresApproval,
|
|
84
|
+
allowUnverifiedPublishers: A.allowUnverifiedPublishers,
|
|
85
|
+
currency: A.currency,
|
|
86
|
+
description: A.description || null
|
|
88
87
|
} },
|
|
89
|
-
authToken:
|
|
90
|
-
}),
|
|
88
|
+
authToken: b || void 0
|
|
89
|
+
}), k(!1), N(null), j(v), await P();
|
|
91
90
|
} catch (e) {
|
|
92
|
-
|
|
91
|
+
D(e instanceof Error ? e.message : "Save failed");
|
|
93
92
|
}
|
|
94
|
-
},
|
|
95
|
-
try {
|
|
93
|
+
}, R = async (e) => {
|
|
94
|
+
if (confirm("Delete this store? This is a soft delete.")) try {
|
|
96
95
|
await p({
|
|
97
96
|
gateway: "global",
|
|
98
|
-
query:
|
|
97
|
+
query: _,
|
|
99
98
|
variables: { id: e },
|
|
100
|
-
authToken:
|
|
101
|
-
}), await
|
|
99
|
+
authToken: b || void 0
|
|
100
|
+
}), await P();
|
|
102
101
|
} catch (e) {
|
|
103
|
-
|
|
102
|
+
D(e instanceof Error ? e.message : "Delete failed");
|
|
104
103
|
}
|
|
105
104
|
};
|
|
106
105
|
return /* @__PURE__ */ d("div", {
|
|
107
106
|
className: "min-h-screen bg-surface-default",
|
|
108
|
-
children: [
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
children: [/* @__PURE__ */ u(i, { className: "size-4" }), "Back"]
|
|
122
|
-
}), /* @__PURE__ */ d("div", {
|
|
123
|
-
className: "flex items-center gap-2",
|
|
124
|
-
children: [
|
|
125
|
-
/* @__PURE__ */ u(c, { className: "size-5 text-text-primary" }),
|
|
126
|
-
/* @__PURE__ */ u("h1", {
|
|
127
|
-
className: "text-xl font-semibold text-text-primary",
|
|
128
|
-
children: "Store registry"
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ u("span", {
|
|
131
|
-
className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
|
|
132
|
-
children: j.length
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
})]
|
|
107
|
+
children: [/* @__PURE__ */ u("header", {
|
|
108
|
+
className: "border-b border-border-default bg-surface-raised",
|
|
109
|
+
children: /* @__PURE__ */ u("div", {
|
|
110
|
+
className: "mx-auto max-w-7xl px-6 py-4",
|
|
111
|
+
children: /* @__PURE__ */ d("div", {
|
|
112
|
+
className: "flex items-center justify-between",
|
|
113
|
+
children: [/* @__PURE__ */ d("div", {
|
|
114
|
+
className: "flex items-center gap-3",
|
|
115
|
+
children: [/* @__PURE__ */ d("button", {
|
|
116
|
+
type: "button",
|
|
117
|
+
onClick: () => y(`${x}/dashboard`),
|
|
118
|
+
className: "inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-sm text-text-secondary hover:bg-surface-hover hover:text-text-primary",
|
|
119
|
+
children: [/* @__PURE__ */ u(i, { className: "size-4" }), "Back"]
|
|
136
120
|
}), /* @__PURE__ */ d("div", {
|
|
137
|
-
className: "flex gap-2",
|
|
138
|
-
children: [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
})]
|
|
121
|
+
className: "flex items-center gap-2",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ u(c, { className: "size-5 text-text-primary" }),
|
|
124
|
+
/* @__PURE__ */ u("h1", {
|
|
125
|
+
className: "text-xl font-semibold text-text-primary",
|
|
126
|
+
children: "Store registry"
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ u("span", {
|
|
129
|
+
className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
|
|
130
|
+
children: S.length
|
|
131
|
+
})
|
|
132
|
+
]
|
|
150
133
|
})]
|
|
151
|
-
})
|
|
134
|
+
}), /* @__PURE__ */ d("div", {
|
|
135
|
+
className: "flex gap-2",
|
|
136
|
+
children: [/* @__PURE__ */ d("button", {
|
|
137
|
+
type: "button",
|
|
138
|
+
onClick: () => void P(),
|
|
139
|
+
className: "inline-flex items-center gap-2 rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary hover:bg-surface-hover",
|
|
140
|
+
disabled: w,
|
|
141
|
+
children: [/* @__PURE__ */ u(s, { className: `size-4 ${w ? "animate-spin" : ""}` }), "Refresh"]
|
|
142
|
+
}), /* @__PURE__ */ d("button", {
|
|
143
|
+
type: "button",
|
|
144
|
+
onClick: F,
|
|
145
|
+
className: "inline-flex items-center gap-2 rounded-md bg-surface-accent px-3 py-1.5 text-sm font-medium text-text-on-accent hover:bg-surface-accent-hover",
|
|
146
|
+
children: [/* @__PURE__ */ u(o, { className: "size-4" }), "Create store"]
|
|
147
|
+
})]
|
|
148
|
+
})]
|
|
152
149
|
})
|
|
153
|
-
})
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
children: "Public"
|
|
228
|
-
}),
|
|
229
|
-
/* @__PURE__ */ u("option", {
|
|
230
|
-
value: "PRIVATE",
|
|
231
|
-
children: "Private (opt-in)"
|
|
232
|
-
}),
|
|
233
|
-
/* @__PURE__ */ u("option", {
|
|
234
|
-
value: "ENTERPRISE",
|
|
235
|
-
children: "Enterprise (tenant-scoped)"
|
|
236
|
-
})
|
|
237
|
-
]
|
|
238
|
-
})]
|
|
239
|
-
}),
|
|
240
|
-
/* @__PURE__ */ d("label", {
|
|
241
|
-
className: "block",
|
|
242
|
-
children: [/* @__PURE__ */ u("span", {
|
|
243
|
-
className: "text-xs text-text-secondary",
|
|
244
|
-
children: "Currency"
|
|
245
|
-
}), /* @__PURE__ */ u("input", {
|
|
246
|
-
type: "text",
|
|
247
|
-
"aria-label": "Currency",
|
|
248
|
-
value: z.currency,
|
|
249
|
-
onChange: (e) => B({
|
|
250
|
-
...z,
|
|
251
|
-
currency: e.target.value
|
|
252
|
-
}),
|
|
253
|
-
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary"
|
|
254
|
-
})]
|
|
255
|
-
}),
|
|
256
|
-
z.type !== "PUBLIC" && /* @__PURE__ */ d("label", {
|
|
257
|
-
className: "block md:col-span-2",
|
|
258
|
-
children: [/* @__PURE__ */ u("span", {
|
|
259
|
-
className: "text-xs text-text-secondary",
|
|
260
|
-
children: "Tenant ID (optional)"
|
|
261
|
-
}), /* @__PURE__ */ u("input", {
|
|
262
|
-
type: "text",
|
|
263
|
-
"aria-label": "Tenant ID",
|
|
264
|
-
value: z.tenantId,
|
|
265
|
-
onChange: (e) => B({
|
|
266
|
-
...z,
|
|
267
|
-
tenantId: e.target.value
|
|
150
|
+
})
|
|
151
|
+
}), /* @__PURE__ */ d("main", {
|
|
152
|
+
className: "mx-auto max-w-7xl p-6",
|
|
153
|
+
children: [
|
|
154
|
+
E && /* @__PURE__ */ u("div", {
|
|
155
|
+
role: "alert",
|
|
156
|
+
className: "mb-4 rounded-md border border-border-danger bg-surface-danger-muted px-4 py-3 text-sm text-text-danger",
|
|
157
|
+
children: E
|
|
158
|
+
}),
|
|
159
|
+
O && /* @__PURE__ */ d("div", {
|
|
160
|
+
className: "mb-6 rounded-lg border border-border-default bg-surface-raised p-4",
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ u("h2", {
|
|
163
|
+
className: "mb-3 text-sm font-semibold text-text-primary",
|
|
164
|
+
children: M ? "Edit store" : "Create store"
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ d("div", {
|
|
167
|
+
className: "grid grid-cols-1 gap-3 md:grid-cols-2",
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ d("label", {
|
|
170
|
+
className: "block",
|
|
171
|
+
children: [/* @__PURE__ */ u("span", {
|
|
172
|
+
className: "text-xs text-text-secondary",
|
|
173
|
+
children: "Slug"
|
|
174
|
+
}), /* @__PURE__ */ u("input", {
|
|
175
|
+
type: "text",
|
|
176
|
+
"aria-label": "Slug",
|
|
177
|
+
value: A.slug,
|
|
178
|
+
onChange: (e) => j({
|
|
179
|
+
...A,
|
|
180
|
+
slug: e.target.value
|
|
181
|
+
}),
|
|
182
|
+
disabled: !!M,
|
|
183
|
+
required: !0,
|
|
184
|
+
"aria-required": "true",
|
|
185
|
+
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary disabled:opacity-60"
|
|
186
|
+
})]
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ d("label", {
|
|
189
|
+
className: "block",
|
|
190
|
+
children: [/* @__PURE__ */ u("span", {
|
|
191
|
+
className: "text-xs text-text-secondary",
|
|
192
|
+
children: "Name"
|
|
193
|
+
}), /* @__PURE__ */ u("input", {
|
|
194
|
+
type: "text",
|
|
195
|
+
"aria-label": "Name",
|
|
196
|
+
value: A.name,
|
|
197
|
+
onChange: (e) => j({
|
|
198
|
+
...A,
|
|
199
|
+
name: e.target.value
|
|
200
|
+
}),
|
|
201
|
+
required: !0,
|
|
202
|
+
"aria-required": "true",
|
|
203
|
+
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary"
|
|
204
|
+
})]
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ d("label", {
|
|
207
|
+
className: "block",
|
|
208
|
+
children: [/* @__PURE__ */ u("span", {
|
|
209
|
+
className: "text-xs text-text-secondary",
|
|
210
|
+
children: "Type"
|
|
211
|
+
}), /* @__PURE__ */ d("select", {
|
|
212
|
+
"aria-label": "Store type",
|
|
213
|
+
value: A.type,
|
|
214
|
+
onChange: (e) => j({
|
|
215
|
+
...A,
|
|
216
|
+
type: e.target.value
|
|
217
|
+
}),
|
|
218
|
+
disabled: !!M,
|
|
219
|
+
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary disabled:opacity-60",
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ u("option", {
|
|
222
|
+
value: "PUBLIC",
|
|
223
|
+
children: "Public"
|
|
268
224
|
}),
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}),
|
|
273
|
-
/* @__PURE__ */ d("label", {
|
|
274
|
-
className: "block md:col-span-2",
|
|
275
|
-
children: [/* @__PURE__ */ u("span", {
|
|
276
|
-
className: "text-xs text-text-secondary",
|
|
277
|
-
children: "Description"
|
|
278
|
-
}), /* @__PURE__ */ u("textarea", {
|
|
279
|
-
"aria-label": "Description",
|
|
280
|
-
value: z.description,
|
|
281
|
-
onChange: (e) => B({
|
|
282
|
-
...z,
|
|
283
|
-
description: e.target.value
|
|
225
|
+
/* @__PURE__ */ u("option", {
|
|
226
|
+
value: "PRIVATE",
|
|
227
|
+
children: "Private (opt-in)"
|
|
284
228
|
}),
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}),
|
|
289
|
-
/* @__PURE__ */ d("label", {
|
|
290
|
-
className: "flex items-center gap-2",
|
|
291
|
-
children: [/* @__PURE__ */ u("input", {
|
|
292
|
-
type: "checkbox",
|
|
293
|
-
"aria-label": "Publicly visible",
|
|
294
|
-
checked: z.isPublic,
|
|
295
|
-
onChange: (e) => B({
|
|
296
|
-
...z,
|
|
297
|
-
isPublic: e.target.checked
|
|
229
|
+
/* @__PURE__ */ u("option", {
|
|
230
|
+
value: "ENTERPRISE",
|
|
231
|
+
children: "Enterprise (tenant-scoped)"
|
|
298
232
|
})
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
className: "
|
|
306
|
-
children:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}),
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
})
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
})
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
233
|
+
]
|
|
234
|
+
})]
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ d("label", {
|
|
237
|
+
className: "block",
|
|
238
|
+
children: [/* @__PURE__ */ u("span", {
|
|
239
|
+
className: "text-xs text-text-secondary",
|
|
240
|
+
children: "Currency"
|
|
241
|
+
}), /* @__PURE__ */ u("input", {
|
|
242
|
+
type: "text",
|
|
243
|
+
"aria-label": "Currency",
|
|
244
|
+
value: A.currency,
|
|
245
|
+
onChange: (e) => j({
|
|
246
|
+
...A,
|
|
247
|
+
currency: e.target.value
|
|
248
|
+
}),
|
|
249
|
+
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary"
|
|
250
|
+
})]
|
|
251
|
+
}),
|
|
252
|
+
A.type !== "PUBLIC" && /* @__PURE__ */ d("label", {
|
|
253
|
+
className: "block md:col-span-2",
|
|
254
|
+
children: [/* @__PURE__ */ u("span", {
|
|
255
|
+
className: "text-xs text-text-secondary",
|
|
256
|
+
children: "Tenant ID (optional)"
|
|
257
|
+
}), /* @__PURE__ */ u("input", {
|
|
258
|
+
type: "text",
|
|
259
|
+
"aria-label": "Tenant ID",
|
|
260
|
+
value: A.tenantId,
|
|
261
|
+
onChange: (e) => j({
|
|
262
|
+
...A,
|
|
263
|
+
tenantId: e.target.value
|
|
264
|
+
}),
|
|
265
|
+
disabled: !!M,
|
|
266
|
+
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary disabled:opacity-60"
|
|
267
|
+
})]
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ d("label", {
|
|
270
|
+
className: "block md:col-span-2",
|
|
271
|
+
children: [/* @__PURE__ */ u("span", {
|
|
272
|
+
className: "text-xs text-text-secondary",
|
|
273
|
+
children: "Description"
|
|
274
|
+
}), /* @__PURE__ */ u("textarea", {
|
|
275
|
+
"aria-label": "Description",
|
|
276
|
+
value: A.description,
|
|
277
|
+
onChange: (e) => j({
|
|
278
|
+
...A,
|
|
279
|
+
description: e.target.value
|
|
280
|
+
}),
|
|
281
|
+
rows: 2,
|
|
282
|
+
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary"
|
|
283
|
+
})]
|
|
284
|
+
}),
|
|
285
|
+
/* @__PURE__ */ d("label", {
|
|
286
|
+
className: "flex items-center gap-2",
|
|
287
|
+
children: [/* @__PURE__ */ u("input", {
|
|
288
|
+
type: "checkbox",
|
|
289
|
+
"aria-label": "Publicly visible",
|
|
290
|
+
checked: A.isPublic,
|
|
291
|
+
onChange: (e) => j({
|
|
292
|
+
...A,
|
|
293
|
+
isPublic: e.target.checked
|
|
294
|
+
})
|
|
295
|
+
}), /* @__PURE__ */ u("span", {
|
|
296
|
+
className: "text-sm text-text-primary",
|
|
297
|
+
children: "Publicly visible"
|
|
298
|
+
})]
|
|
299
|
+
}),
|
|
300
|
+
/* @__PURE__ */ d("label", {
|
|
301
|
+
className: "flex items-center gap-2",
|
|
302
|
+
children: [/* @__PURE__ */ u("input", {
|
|
303
|
+
type: "checkbox",
|
|
304
|
+
"aria-label": "Requires admin approval",
|
|
305
|
+
checked: A.requiresApproval,
|
|
306
|
+
onChange: (e) => j({
|
|
307
|
+
...A,
|
|
308
|
+
requiresApproval: e.target.checked
|
|
309
|
+
})
|
|
310
|
+
}), /* @__PURE__ */ u("span", {
|
|
311
|
+
className: "text-sm text-text-primary",
|
|
312
|
+
children: "Requires admin approval"
|
|
313
|
+
})]
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ d("label", {
|
|
316
|
+
className: "flex items-center gap-2 md:col-span-2",
|
|
317
|
+
children: [/* @__PURE__ */ u("input", {
|
|
318
|
+
type: "checkbox",
|
|
319
|
+
"aria-label": "Allow unverified publishers to submit",
|
|
320
|
+
checked: A.allowUnverifiedPublishers,
|
|
321
|
+
onChange: (e) => j({
|
|
322
|
+
...A,
|
|
323
|
+
allowUnverifiedPublishers: e.target.checked
|
|
324
|
+
})
|
|
325
|
+
}), /* @__PURE__ */ u("span", {
|
|
326
|
+
className: "text-sm text-text-primary",
|
|
327
|
+
children: "Allow unverified publishers to submit"
|
|
328
|
+
})]
|
|
329
|
+
})
|
|
330
|
+
]
|
|
331
|
+
}),
|
|
332
|
+
/* @__PURE__ */ d("div", {
|
|
333
|
+
className: "mt-4 flex justify-end gap-2",
|
|
334
|
+
children: [/* @__PURE__ */ u("button", {
|
|
335
|
+
type: "button",
|
|
336
|
+
onClick: () => {
|
|
337
|
+
k(!1), N(null), j(v);
|
|
338
|
+
},
|
|
339
|
+
className: "rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary hover:bg-surface-hover",
|
|
340
|
+
children: "Cancel"
|
|
341
|
+
}), /* @__PURE__ */ u("button", {
|
|
342
|
+
type: "button",
|
|
343
|
+
onClick: () => void L(),
|
|
344
|
+
className: "rounded-md bg-surface-accent px-3 py-1.5 text-sm font-medium text-text-on-accent hover:bg-surface-accent-hover",
|
|
345
|
+
children: M ? "Save changes" : "Create"
|
|
346
|
+
})]
|
|
347
|
+
})
|
|
348
|
+
]
|
|
349
|
+
}),
|
|
350
|
+
w && S.length === 0 ? /* @__PURE__ */ u("output", {
|
|
351
|
+
className: "block py-16 text-center text-text-secondary",
|
|
352
|
+
children: "Loading stores…"
|
|
353
|
+
}) : S.length === 0 ? /* @__PURE__ */ u("div", {
|
|
354
|
+
className: "py-16 text-center text-text-secondary",
|
|
355
|
+
children: "No stores yet."
|
|
356
|
+
}) : /* @__PURE__ */ u("div", {
|
|
357
|
+
className: "overflow-hidden rounded-lg border border-border-default",
|
|
358
|
+
children: /* @__PURE__ */ d("table", {
|
|
359
|
+
className: "w-full text-sm",
|
|
360
|
+
children: [/* @__PURE__ */ u("thead", {
|
|
361
|
+
className: "bg-surface-muted text-left text-xs uppercase tracking-wide text-text-secondary",
|
|
362
|
+
children: /* @__PURE__ */ d("tr", { children: [
|
|
363
|
+
/* @__PURE__ */ u("th", {
|
|
364
|
+
className: "px-4 py-2",
|
|
365
|
+
children: "Slug"
|
|
366
|
+
}),
|
|
367
|
+
/* @__PURE__ */ u("th", {
|
|
368
|
+
className: "px-4 py-2",
|
|
369
|
+
children: "Name"
|
|
370
|
+
}),
|
|
371
|
+
/* @__PURE__ */ u("th", {
|
|
372
|
+
className: "px-4 py-2",
|
|
373
|
+
children: "Type"
|
|
374
|
+
}),
|
|
375
|
+
/* @__PURE__ */ u("th", {
|
|
376
|
+
className: "px-4 py-2",
|
|
377
|
+
children: "Public"
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ u("th", {
|
|
380
|
+
className: "px-4 py-2",
|
|
381
|
+
children: "Approval"
|
|
382
|
+
}),
|
|
383
|
+
/* @__PURE__ */ u("th", {
|
|
384
|
+
className: "px-4 py-2",
|
|
385
|
+
children: "Currency"
|
|
386
|
+
}),
|
|
387
|
+
/* @__PURE__ */ u("th", {
|
|
388
|
+
className: "px-4 py-2 text-right",
|
|
389
|
+
children: "Actions"
|
|
390
|
+
})
|
|
391
|
+
] })
|
|
392
|
+
}), /* @__PURE__ */ u("tbody", {
|
|
393
|
+
className: "divide-y divide-border-default bg-surface-raised",
|
|
394
|
+
children: S.map((e) => /* @__PURE__ */ d("tr", {
|
|
395
|
+
className: "text-text-primary",
|
|
396
|
+
children: [
|
|
397
|
+
/* @__PURE__ */ u("td", {
|
|
398
|
+
className: "px-4 py-2 font-mono text-xs",
|
|
399
|
+
children: e.slug
|
|
370
400
|
}),
|
|
371
|
-
/* @__PURE__ */ u("
|
|
401
|
+
/* @__PURE__ */ u("td", {
|
|
372
402
|
className: "px-4 py-2",
|
|
373
|
-
children:
|
|
403
|
+
children: e.name
|
|
374
404
|
}),
|
|
375
|
-
/* @__PURE__ */ u("
|
|
405
|
+
/* @__PURE__ */ u("td", {
|
|
376
406
|
className: "px-4 py-2",
|
|
377
|
-
children: "
|
|
407
|
+
children: /* @__PURE__ */ u("span", {
|
|
408
|
+
className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
|
|
409
|
+
children: e.type
|
|
410
|
+
})
|
|
378
411
|
}),
|
|
379
|
-
/* @__PURE__ */ u("
|
|
380
|
-
className: "px-4 py-2",
|
|
381
|
-
children: "
|
|
412
|
+
/* @__PURE__ */ u("td", {
|
|
413
|
+
className: "px-4 py-2 text-xs",
|
|
414
|
+
children: e.isPublic ? "Yes" : "No"
|
|
382
415
|
}),
|
|
383
|
-
/* @__PURE__ */ u("
|
|
384
|
-
className: "px-4 py-2",
|
|
385
|
-
children: "
|
|
416
|
+
/* @__PURE__ */ u("td", {
|
|
417
|
+
className: "px-4 py-2 text-xs",
|
|
418
|
+
children: e.requiresApproval ? "Required" : "Auto-publish"
|
|
386
419
|
}),
|
|
387
|
-
/* @__PURE__ */ u("
|
|
388
|
-
className: "px-4 py-2",
|
|
389
|
-
children:
|
|
420
|
+
/* @__PURE__ */ u("td", {
|
|
421
|
+
className: "px-4 py-2 text-xs",
|
|
422
|
+
children: e.currency
|
|
390
423
|
}),
|
|
391
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ d("td", {
|
|
392
425
|
className: "px-4 py-2 text-right",
|
|
393
|
-
children: "
|
|
426
|
+
children: [/* @__PURE__ */ d("button", {
|
|
427
|
+
type: "button",
|
|
428
|
+
onClick: () => I(e),
|
|
429
|
+
className: "inline-flex items-center gap-1 rounded-md border border-border-default px-2 py-1 text-xs text-text-primary hover:bg-surface-hover",
|
|
430
|
+
children: [/* @__PURE__ */ u(a, { className: "size-3" }), "Edit"]
|
|
431
|
+
}), e.id !== "store_public_default" && /* @__PURE__ */ d("button", {
|
|
432
|
+
type: "button",
|
|
433
|
+
onClick: () => void R(e.id),
|
|
434
|
+
className: "ml-2 inline-flex items-center gap-1 rounded-md border border-border-danger px-2 py-1 text-xs text-text-danger hover:bg-surface-danger-muted",
|
|
435
|
+
children: [/* @__PURE__ */ u(l, { className: "size-3" }), "Delete"]
|
|
436
|
+
})]
|
|
394
437
|
})
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
children: j.map((e) => /* @__PURE__ */ d("tr", {
|
|
399
|
-
className: "text-text-primary",
|
|
400
|
-
children: [
|
|
401
|
-
/* @__PURE__ */ u("td", {
|
|
402
|
-
className: "px-4 py-2 font-mono text-xs",
|
|
403
|
-
children: e.slug
|
|
404
|
-
}),
|
|
405
|
-
/* @__PURE__ */ u("td", {
|
|
406
|
-
className: "px-4 py-2",
|
|
407
|
-
children: e.name
|
|
408
|
-
}),
|
|
409
|
-
/* @__PURE__ */ u("td", {
|
|
410
|
-
className: "px-4 py-2",
|
|
411
|
-
children: /* @__PURE__ */ u("span", {
|
|
412
|
-
className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
|
|
413
|
-
children: e.type
|
|
414
|
-
})
|
|
415
|
-
}),
|
|
416
|
-
/* @__PURE__ */ u("td", {
|
|
417
|
-
className: "px-4 py-2 text-xs",
|
|
418
|
-
children: e.isPublic ? "Yes" : "No"
|
|
419
|
-
}),
|
|
420
|
-
/* @__PURE__ */ u("td", {
|
|
421
|
-
className: "px-4 py-2 text-xs",
|
|
422
|
-
children: e.requiresApproval ? "Required" : "Auto-publish"
|
|
423
|
-
}),
|
|
424
|
-
/* @__PURE__ */ u("td", {
|
|
425
|
-
className: "px-4 py-2 text-xs",
|
|
426
|
-
children: e.currency
|
|
427
|
-
}),
|
|
428
|
-
/* @__PURE__ */ d("td", {
|
|
429
|
-
className: "px-4 py-2 text-right",
|
|
430
|
-
children: [/* @__PURE__ */ d("button", {
|
|
431
|
-
type: "button",
|
|
432
|
-
onClick: () => q(e),
|
|
433
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border-default px-2 py-1 text-xs text-text-primary hover:bg-surface-hover",
|
|
434
|
-
children: [/* @__PURE__ */ u(a, { className: "size-3" }), "Edit"]
|
|
435
|
-
}), e.id !== "store_public_default" && /* @__PURE__ */ d("button", {
|
|
436
|
-
type: "button",
|
|
437
|
-
onClick: () => W(e.id),
|
|
438
|
-
className: "ml-2 inline-flex items-center gap-1 rounded-md border border-border-danger px-2 py-1 text-xs text-text-danger hover:bg-surface-danger-muted",
|
|
439
|
-
children: [/* @__PURE__ */ u(l, { className: "size-3" }), "Delete"]
|
|
440
|
-
})]
|
|
441
|
-
})
|
|
442
|
-
]
|
|
443
|
-
}, e.id))
|
|
444
|
-
})]
|
|
445
|
-
})
|
|
438
|
+
]
|
|
439
|
+
}, e.id))
|
|
440
|
+
})]
|
|
446
441
|
})
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
open: U !== null,
|
|
451
|
-
onOpenChange: (e) => !e && W(null),
|
|
452
|
-
children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(x, { children: "Delete this store?" }), /* @__PURE__ */ u(v, { children: "This is a soft delete." })] }), /* @__PURE__ */ d(y, { children: [/* @__PURE__ */ u(g, {
|
|
453
|
-
onClick: () => W(null),
|
|
454
|
-
children: "Cancel"
|
|
455
|
-
}), /* @__PURE__ */ u(h, {
|
|
456
|
-
className: "bg-surface-danger text-text-on-danger hover:bg-surface-danger-hover",
|
|
457
|
-
onClick: () => {
|
|
458
|
-
U && Y(U), W(null);
|
|
459
|
-
},
|
|
460
|
-
children: "Delete"
|
|
461
|
-
})] })] })
|
|
462
|
-
})
|
|
463
|
-
]
|
|
442
|
+
})
|
|
443
|
+
]
|
|
444
|
+
})]
|
|
464
445
|
});
|
|
465
446
|
};
|
|
466
447
|
//#endregion
|
|
467
|
-
export {
|
|
448
|
+
export { y as AdminStoresPage };
|
|
468
449
|
|
|
469
450
|
//# sourceMappingURL=AdminStoresPage.js.map
|