@burdenoff/microfe-store 2026.624.4 → 2026.625.1
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 +107 -120
- 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/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/CombinedGraphQLErrors.js +1 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/utils.js +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/core/ApolloLink.js +2 -2
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/subscriptions/index.js +2 -2
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/utils/createOperation.js +1 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/graphql/print.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/caches.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/checkDocument.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getMainDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getOperationDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/globals/global.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/makeUniqueId.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/memoize.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/stringifyForDisplay.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/invariant/index.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
- package/dist/node_modules/@apollo/client/version.js +6 -0
- package/dist/node_modules/@apollo/client/version.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_caches@1.0.1/node_modules/@wry → @wry}/caches/lib/weak.js +1 -1
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_trie@0.5.0/node_modules/@wry → @wry}/trie/lib/index.js +1 -1
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/client.js +1 -1
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/common-CGW11Fyb.js +1 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/NotificationFactories.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscriber.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscription.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/config.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/observable/empty.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/scheduler/timeoutProvider.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/symbol/observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/UnsubscriptionError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/createErrorClass.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/errorContext.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/pipe.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/reportUnhandledError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/node_modules/{.bun/tslib@2.8.1 → rxjs}/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/pages/AdminDashboardPage.js +90 -89
- package/dist/pages/AdminDashboardPage.js.map +1 -1
- package/dist/pages/AdminReviewModerationPage.js +58 -56
- package/dist/pages/AdminReviewModerationPage.js.map +1 -1
- package/dist/pages/AdminStoresPage.js +391 -372
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +134 -148
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/AppDetailPage.js +123 -120
- package/dist/pages/AppDetailPage.js.map +1 -1
- package/dist/pages/AppSettingsPage.js +43 -38
- package/dist/pages/AppSettingsPage.js.map +1 -1
- package/dist/pages/CartPage.js +60 -59
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +112 -135
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +176 -175
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +34 -33
- package/dist/pages/MyLicensesPage.js.map +1 -1
- package/dist/pages/OrderConfirmationPage.js +38 -37
- package/dist/pages/OrderConfirmationPage.js.map +1 -1
- package/dist/pages/OrdersPage.js +20 -19
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +101 -98
- 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 +93 -92
- package/dist/pages/PublisherDashboardPage.js.map +1 -1
- package/dist/pages/PublisherRevenuePage.js +61 -60
- package/dist/pages/PublisherRevenuePage.js.map +1 -1
- package/dist/pages/PublisherSubmissionsPage.js +97 -96
- package/dist/pages/PublisherSubmissionsPage.js.map +1 -1
- package/dist/pages/PublisherSubmitPage.js +189 -184
- package/dist/pages/PublisherSubmitPage.js.map +1 -1
- package/dist/providers/StoreProvider.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -9
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -10
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js +0 -6
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/.bun/@wry_caches@1.0.1/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/.bun/@wry_trie@0.5.0/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +0 -1
- /package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/caching/sizes.js +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useStore as e } from "../providers/StoreProvider.js";
|
|
2
2
|
import { formatPriceForModel as t } from "../utils/index.js";
|
|
3
3
|
import { useCallback as n, useEffect as r, useState as i } from "react";
|
|
4
|
-
import { ArrowLeft as a, Check as o, ChevronDown as s, ChevronUp as c,
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { useNavigate as
|
|
7
|
-
import { graphqlFetch as
|
|
4
|
+
import { ArrowLeft as a, Check as o, ChevronDown as s, ChevronUp as c, PackageCheck as l, RefreshCw as u, X as d } from "lucide-react";
|
|
5
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
|
+
import { useNavigate as m } from "react-router-dom";
|
|
7
|
+
import { graphqlFetch as h } from "@burdenoff/fe-libs/shared/graphql";
|
|
8
8
|
//#region src/pages/AdminSubmissionsQueuePage.tsx
|
|
9
|
-
var
|
|
9
|
+
var g = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pendingReviewProducts(limit: $limit, offset: $offset) {\n totalCount\n products {\n id\n slug\n name\n type\n nature\n status\n pricingModel\n price\n currency\n description\n submittedAt\n submittedBy\n category\n icon\n publisher {\n id\n name\n email\n }\n }\n }\n }\n", _ = "\n query AdminProducts($limit: Int, $offset: Int, $status: ProductStatus) {\n products(filter: { status: $status }, limit: $limit, offset: $offset) {\n id\n slug\n name\n type\n nature\n status\n pricingModel\n price\n currency\n description\n submittedAt\n submittedBy\n category\n icon\n publisher {\n id\n name\n email\n }\n }\n }\n", v = "\n mutation ApproveProduct($id: ID!, $notes: String) {\n approveProduct(id: $id, notes: $notes) {\n id\n status\n publishedAt\n }\n }\n", y = "\n mutation RejectProduct($id: ID!, $reason: String!) {\n rejectProduct(id: $id, reason: $reason) {\n id\n status\n rejectedReason\n }\n }\n", b = [
|
|
10
10
|
{
|
|
11
11
|
label: "Pending review",
|
|
12
12
|
value: "PENDING_REVIEW"
|
|
@@ -23,279 +23,272 @@ var _ = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pendi
|
|
|
23
23
|
label: "All",
|
|
24
24
|
value: "ALL"
|
|
25
25
|
}
|
|
26
|
-
],
|
|
27
|
-
let
|
|
28
|
-
|
|
26
|
+
], x = () => {
|
|
27
|
+
let x = m(), { authToken: S, basePath: C } = e(), [w, T] = i([]), [E, D] = i(0), [O, k] = i(!1), [A, j] = i(null), [M, N] = i(null), [P, F] = i("PENDING_REVIEW"), [I, L] = i(null), [R, z] = i(""), [B, V] = i(null), H = n(async (e) => {
|
|
28
|
+
k(!0), j(null);
|
|
29
29
|
try {
|
|
30
30
|
if (e === "PENDING_REVIEW") {
|
|
31
|
-
let e = await
|
|
31
|
+
let e = await h({
|
|
32
32
|
gateway: "global",
|
|
33
|
-
query:
|
|
33
|
+
query: g,
|
|
34
34
|
variables: {
|
|
35
35
|
limit: 100,
|
|
36
36
|
offset: 0
|
|
37
37
|
},
|
|
38
|
-
authToken:
|
|
38
|
+
authToken: S || void 0
|
|
39
39
|
});
|
|
40
40
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? "Failed to load pending products");
|
|
41
|
-
|
|
41
|
+
T(e.data?.pendingReviewProducts.products ?? []), D(e.data?.pendingReviewProducts.totalCount ?? 0);
|
|
42
42
|
} else {
|
|
43
|
-
let t = await
|
|
43
|
+
let t = await h({
|
|
44
44
|
gateway: "global",
|
|
45
|
-
query:
|
|
45
|
+
query: _,
|
|
46
46
|
variables: {
|
|
47
47
|
limit: 100,
|
|
48
48
|
offset: 0,
|
|
49
49
|
...e !== "ALL" && { status: e }
|
|
50
50
|
},
|
|
51
|
-
authToken:
|
|
51
|
+
authToken: S || void 0
|
|
52
52
|
});
|
|
53
53
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Failed to load products");
|
|
54
54
|
let n = t.data?.products ?? [];
|
|
55
|
-
|
|
55
|
+
T(n), D(n.length);
|
|
56
56
|
}
|
|
57
57
|
} catch (e) {
|
|
58
|
-
|
|
58
|
+
j(e instanceof Error ? e.message : "Failed to load products");
|
|
59
59
|
} finally {
|
|
60
|
-
|
|
60
|
+
k(!1);
|
|
61
61
|
}
|
|
62
|
-
}, [
|
|
62
|
+
}, [S]);
|
|
63
63
|
r(() => {
|
|
64
|
-
|
|
65
|
-
}, [
|
|
66
|
-
let
|
|
67
|
-
|
|
64
|
+
H(P);
|
|
65
|
+
}, [H, P]);
|
|
66
|
+
let U = async (e) => {
|
|
67
|
+
N(e), j(null);
|
|
68
68
|
try {
|
|
69
|
-
let t = await
|
|
69
|
+
let t = await h({
|
|
70
70
|
gateway: "global",
|
|
71
|
-
query:
|
|
71
|
+
query: v,
|
|
72
72
|
variables: {
|
|
73
73
|
id: e,
|
|
74
74
|
notes: null
|
|
75
75
|
},
|
|
76
|
-
authToken:
|
|
76
|
+
authToken: S || void 0
|
|
77
77
|
});
|
|
78
78
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Approval failed");
|
|
79
|
-
await
|
|
79
|
+
await H(P);
|
|
80
80
|
} catch (e) {
|
|
81
|
-
|
|
81
|
+
j(e instanceof Error ? e.message : "Approval failed");
|
|
82
82
|
} finally {
|
|
83
|
-
|
|
83
|
+
N(null);
|
|
84
84
|
}
|
|
85
|
-
},
|
|
86
|
-
if (!
|
|
87
|
-
|
|
85
|
+
}, W = async (e) => {
|
|
86
|
+
if (!R.trim()) {
|
|
87
|
+
j("Rejection reason is required");
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
N(e), j(null);
|
|
91
91
|
try {
|
|
92
|
-
let t = await
|
|
92
|
+
let t = await h({
|
|
93
93
|
gateway: "global",
|
|
94
|
-
query:
|
|
94
|
+
query: y,
|
|
95
95
|
variables: {
|
|
96
96
|
id: e,
|
|
97
|
-
reason:
|
|
97
|
+
reason: R.trim()
|
|
98
98
|
},
|
|
99
|
-
authToken:
|
|
99
|
+
authToken: S || void 0
|
|
100
100
|
});
|
|
101
101
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Rejection failed");
|
|
102
|
-
|
|
102
|
+
L(null), z(""), await H(P);
|
|
103
103
|
} catch (e) {
|
|
104
|
-
|
|
104
|
+
j(e instanceof Error ? e.message : "Rejection failed");
|
|
105
105
|
} finally {
|
|
106
|
-
|
|
106
|
+
N(null);
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ p("div", {
|
|
110
110
|
className: "min-h-screen bg-surface-default",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
112
|
-
className: "border-b border-border-
|
|
113
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ f("header", {
|
|
112
|
+
className: "border-b border-border-seam bg-surface-raised",
|
|
113
|
+
children: /* @__PURE__ */ p("div", {
|
|
114
114
|
className: "mx-auto max-w-7xl px-6 py-4",
|
|
115
|
-
children: [/* @__PURE__ */
|
|
115
|
+
children: [/* @__PURE__ */ p("div", {
|
|
116
116
|
className: "flex items-center justify-between",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ p("div", {
|
|
118
118
|
className: "flex items-center gap-3",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ p("button", {
|
|
120
120
|
type: "button",
|
|
121
|
-
onClick: () =>
|
|
121
|
+
onClick: () => x(`${C}/dashboard`),
|
|
122
122
|
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",
|
|
123
|
-
children: [/* @__PURE__ */
|
|
124
|
-
}), /* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ f(a, { className: "size-4" }), "Back"]
|
|
124
|
+
}), /* @__PURE__ */ p("div", {
|
|
125
125
|
className: "flex items-center gap-2",
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ f(l, { className: "size-5 text-text-primary" }),
|
|
128
|
+
/* @__PURE__ */ f("h1", {
|
|
129
129
|
className: "text-xl font-semibold text-text-primary",
|
|
130
130
|
children: "Submission queue"
|
|
131
131
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ f("span", {
|
|
133
133
|
className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
|
|
134
|
-
children:
|
|
134
|
+
children: E
|
|
135
135
|
})
|
|
136
136
|
]
|
|
137
137
|
})]
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ p("button", {
|
|
139
139
|
type: "button",
|
|
140
|
-
onClick: () => void
|
|
140
|
+
onClick: () => void H(P),
|
|
141
141
|
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",
|
|
142
|
-
disabled:
|
|
143
|
-
children: [/* @__PURE__ */
|
|
142
|
+
disabled: O,
|
|
143
|
+
children: [/* @__PURE__ */ f(u, { className: `size-4 ${O ? "animate-spin" : ""}` }), "Refresh"]
|
|
144
144
|
})]
|
|
145
|
-
}), /* @__PURE__ */
|
|
145
|
+
}), /* @__PURE__ */ f("div", {
|
|
146
146
|
className: "mt-4 flex gap-2",
|
|
147
|
-
children:
|
|
147
|
+
children: b.map((e) => /* @__PURE__ */ f("button", {
|
|
148
148
|
type: "button",
|
|
149
|
-
onClick: () =>
|
|
150
|
-
className: `rounded-full px-3 py-1 text-xs font-medium transition-colors ${
|
|
149
|
+
onClick: () => F(e.value),
|
|
150
|
+
className: `rounded-full px-3 py-1 text-xs font-medium transition-colors ${P === e.value ? "bg-surface-accent text-text-on-accent" : "bg-surface-muted text-text-secondary hover:bg-surface-hover"}`,
|
|
151
151
|
children: e.label
|
|
152
152
|
}, e.value))
|
|
153
153
|
})]
|
|
154
154
|
})
|
|
155
|
-
}), /* @__PURE__ */
|
|
155
|
+
}), /* @__PURE__ */ p("main", {
|
|
156
156
|
className: "mx-auto max-w-7xl p-6",
|
|
157
|
-
children: [
|
|
157
|
+
children: [A && /* @__PURE__ */ f("div", {
|
|
158
158
|
role: "alert",
|
|
159
159
|
className: "mb-4 rounded-md border border-border-danger bg-surface-danger-muted px-4 py-3 text-sm text-text-danger",
|
|
160
|
-
children:
|
|
161
|
-
}),
|
|
160
|
+
children: A
|
|
161
|
+
}), O && w.length === 0 ? /* @__PURE__ */ f("output", {
|
|
162
162
|
className: "block py-16 text-center text-text-secondary",
|
|
163
163
|
children: "Loading submissions…"
|
|
164
|
-
}) :
|
|
164
|
+
}) : w.length === 0 ? /* @__PURE__ */ f("div", {
|
|
165
165
|
className: "py-16 text-center text-text-secondary",
|
|
166
166
|
children: "No products matching the current filter."
|
|
167
|
-
}) : /* @__PURE__ */
|
|
167
|
+
}) : /* @__PURE__ */ f("ul", {
|
|
168
168
|
className: "space-y-3",
|
|
169
|
-
children:
|
|
170
|
-
className: "overflow-hidden rounded-lg border border-border-
|
|
169
|
+
children: w.map((e) => /* @__PURE__ */ p("li", {
|
|
170
|
+
className: "overflow-hidden rounded-lg border border-border-seam bg-surface-raised transition-[box-shadow,border-color] hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
171
171
|
children: [
|
|
172
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ p("div", {
|
|
173
173
|
className: "flex items-start gap-4 p-4",
|
|
174
174
|
children: [
|
|
175
|
-
e.icon ? /* @__PURE__ */
|
|
175
|
+
e.icon ? /* @__PURE__ */ f("img", {
|
|
176
176
|
src: e.icon,
|
|
177
177
|
alt: "",
|
|
178
178
|
className: "size-14 flex-shrink-0 rounded-md object-cover"
|
|
179
|
-
}) : /* @__PURE__ */
|
|
179
|
+
}) : /* @__PURE__ */ f("div", {
|
|
180
180
|
className: "flex size-14 flex-shrink-0 items-center justify-center rounded-md bg-surface-muted text-xs text-text-secondary",
|
|
181
181
|
children: e.type
|
|
182
182
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ p("div", {
|
|
184
184
|
className: "min-w-0 flex-1",
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ p("div", {
|
|
187
187
|
className: "flex items-center gap-2",
|
|
188
188
|
children: [
|
|
189
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ f("h3", {
|
|
190
190
|
className: "truncate text-base font-semibold text-text-primary",
|
|
191
191
|
children: e.name
|
|
192
192
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ f("span", {
|
|
194
194
|
className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
|
|
195
195
|
children: e.type
|
|
196
196
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ f("span", {
|
|
198
198
|
className: "rounded-full bg-surface-muted px-2 py-0.5 text-xs font-medium text-text-secondary",
|
|
199
199
|
children: e.nature
|
|
200
200
|
})
|
|
201
201
|
]
|
|
202
202
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ f("div", {
|
|
204
204
|
className: "mt-0.5 text-xs text-text-tertiary",
|
|
205
205
|
children: e.slug
|
|
206
206
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ p("div", {
|
|
208
208
|
className: "mt-1 flex items-center gap-3 text-xs text-text-secondary",
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
e.submittedAt && /* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ p("span", { children: ["Publisher: ", e.publisher?.name ?? "Unknown"] }),
|
|
211
|
+
/* @__PURE__ */ p("span", { children: ["Price: ", t(e.price, e.currency, e.pricingModel)] }),
|
|
212
|
+
e.submittedAt && /* @__PURE__ */ p("span", { children: ["Submitted ", new Date(e.submittedAt).toLocaleString()] })
|
|
213
213
|
]
|
|
214
214
|
}),
|
|
215
|
-
e.description && /* @__PURE__ */
|
|
215
|
+
e.description && /* @__PURE__ */ f("p", {
|
|
216
216
|
className: "mt-2 line-clamp-2 text-sm text-text-secondary",
|
|
217
217
|
children: e.description
|
|
218
218
|
})
|
|
219
219
|
]
|
|
220
220
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ p("div", {
|
|
222
222
|
className: "flex flex-shrink-0 flex-col gap-2",
|
|
223
223
|
children: [
|
|
224
|
-
|
|
225
|
-
href: `/devportal/apps/${e.productId}`,
|
|
226
|
-
target: "_blank",
|
|
227
|
-
rel: "noreferrer",
|
|
228
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border-default px-3 py-1.5 text-xs text-text-secondary hover:bg-surface-hover",
|
|
229
|
-
children: [/* @__PURE__ */ p(l, { className: "size-3.5" }), "View app"]
|
|
230
|
-
}),
|
|
231
|
-
/* @__PURE__ */ m("button", {
|
|
224
|
+
/* @__PURE__ */ p("button", {
|
|
232
225
|
type: "button",
|
|
233
|
-
onClick: () =>
|
|
226
|
+
onClick: () => V(B === e.id ? null : e.id),
|
|
234
227
|
className: "inline-flex items-center gap-1 rounded-md border border-border-default px-3 py-1.5 text-xs text-text-secondary hover:bg-surface-hover",
|
|
235
|
-
children: [
|
|
228
|
+
children: [B === e.id ? /* @__PURE__ */ f(c, { className: "size-3.5" }) : /* @__PURE__ */ f(s, { className: "size-3.5" }), "Details"]
|
|
236
229
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ p("button", {
|
|
238
231
|
type: "button",
|
|
239
|
-
onClick: () => void
|
|
240
|
-
disabled:
|
|
232
|
+
onClick: () => void U(e.id),
|
|
233
|
+
disabled: M === e.id,
|
|
241
234
|
className: "inline-flex items-center gap-1 rounded-md bg-surface-success px-3 py-1.5 text-xs font-medium text-text-on-success hover:bg-surface-success-hover disabled:opacity-60",
|
|
242
|
-
children: [/* @__PURE__ */
|
|
235
|
+
children: [/* @__PURE__ */ f(o, { className: "size-3.5" }), "Approve"]
|
|
243
236
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ p("button", {
|
|
245
238
|
type: "button",
|
|
246
239
|
onClick: () => {
|
|
247
|
-
|
|
240
|
+
L(e.id), z("");
|
|
248
241
|
},
|
|
249
|
-
disabled:
|
|
242
|
+
disabled: M === e.id,
|
|
250
243
|
className: "inline-flex items-center gap-1 rounded-md border border-border-danger bg-surface-danger-muted px-3 py-1.5 text-xs font-medium text-text-danger hover:bg-surface-danger hover:text-text-on-danger disabled:opacity-60",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ f(d, { className: "size-3.5" }), "Reject"]
|
|
252
245
|
})
|
|
253
246
|
]
|
|
254
247
|
})
|
|
255
248
|
]
|
|
256
249
|
}),
|
|
257
|
-
|
|
258
|
-
className: "border-t border-border-
|
|
259
|
-
children: /* @__PURE__ */
|
|
250
|
+
B === e.id && /* @__PURE__ */ f("div", {
|
|
251
|
+
className: "border-t border-border-seam bg-surface-muted p-4",
|
|
252
|
+
children: /* @__PURE__ */ p("dl", {
|
|
260
253
|
className: "grid grid-cols-2 gap-x-6 gap-y-3 text-xs sm:grid-cols-3",
|
|
261
254
|
children: [
|
|
262
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
263
256
|
className: "font-medium text-text-secondary",
|
|
264
257
|
children: "Slug"
|
|
265
|
-
}), /* @__PURE__ */
|
|
258
|
+
}), /* @__PURE__ */ f("dd", {
|
|
266
259
|
className: "mt-0.5 font-mono text-text-primary",
|
|
267
260
|
children: e.slug
|
|
268
261
|
})] }),
|
|
269
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
270
263
|
className: "font-medium text-text-secondary",
|
|
271
264
|
children: "Type"
|
|
272
|
-
}), /* @__PURE__ */
|
|
265
|
+
}), /* @__PURE__ */ f("dd", {
|
|
273
266
|
className: "mt-0.5 text-text-primary",
|
|
274
267
|
children: e.type
|
|
275
268
|
})] }),
|
|
276
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
277
270
|
className: "font-medium text-text-secondary",
|
|
278
271
|
children: "Nature"
|
|
279
|
-
}), /* @__PURE__ */
|
|
272
|
+
}), /* @__PURE__ */ f("dd", {
|
|
280
273
|
className: "mt-0.5 text-text-primary",
|
|
281
274
|
children: e.nature
|
|
282
275
|
})] }),
|
|
283
|
-
e.category && /* @__PURE__ */
|
|
276
|
+
e.category && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
284
277
|
className: "font-medium text-text-secondary",
|
|
285
278
|
children: "Category"
|
|
286
|
-
}), /* @__PURE__ */
|
|
279
|
+
}), /* @__PURE__ */ f("dd", {
|
|
287
280
|
className: "mt-0.5 text-text-primary",
|
|
288
281
|
children: e.category
|
|
289
282
|
})] }),
|
|
290
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
291
284
|
className: "font-medium text-text-secondary",
|
|
292
285
|
children: "Pricing"
|
|
293
|
-
}), /* @__PURE__ */
|
|
286
|
+
}), /* @__PURE__ */ p("dd", {
|
|
294
287
|
className: "mt-0.5 text-text-primary",
|
|
295
288
|
children: [
|
|
296
289
|
t(e.price, e.currency, e.pricingModel),
|
|
297
290
|
" ",
|
|
298
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ p("span", {
|
|
299
292
|
className: "text-text-tertiary",
|
|
300
293
|
children: [
|
|
301
294
|
"(",
|
|
@@ -305,43 +298,36 @@ var _ = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pendi
|
|
|
305
298
|
})
|
|
306
299
|
]
|
|
307
300
|
})] }),
|
|
308
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
309
302
|
className: "font-medium text-text-secondary",
|
|
310
303
|
children: "Publisher"
|
|
311
|
-
}), /* @__PURE__ */
|
|
304
|
+
}), /* @__PURE__ */ p("dd", {
|
|
312
305
|
className: "mt-0.5 text-text-primary",
|
|
313
|
-
children: [e.publisher?.name ?? "—", e.publisher?.email && /* @__PURE__ */
|
|
306
|
+
children: [e.publisher?.name ?? "—", e.publisher?.email && /* @__PURE__ */ f("span", {
|
|
314
307
|
className: "block text-text-tertiary",
|
|
315
308
|
children: e.publisher.email
|
|
316
309
|
})]
|
|
317
310
|
})] }),
|
|
318
|
-
e.
|
|
319
|
-
className: "font-medium text-text-secondary",
|
|
320
|
-
children: "Devportal app ID"
|
|
321
|
-
}), /* @__PURE__ */ p("dd", {
|
|
322
|
-
className: "mt-0.5 font-mono text-text-primary",
|
|
323
|
-
children: e.productId
|
|
324
|
-
})] }),
|
|
325
|
-
e.submittedBy && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
311
|
+
e.submittedBy && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
326
312
|
className: "font-medium text-text-secondary",
|
|
327
313
|
children: "Submitted by"
|
|
328
|
-
}), /* @__PURE__ */
|
|
314
|
+
}), /* @__PURE__ */ f("dd", {
|
|
329
315
|
className: "mt-0.5 font-mono text-text-primary",
|
|
330
316
|
children: e.submittedBy
|
|
331
317
|
})] }),
|
|
332
|
-
e.submittedAt && /* @__PURE__ */
|
|
318
|
+
e.submittedAt && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("dt", {
|
|
333
319
|
className: "font-medium text-text-secondary",
|
|
334
320
|
children: "Submitted at"
|
|
335
|
-
}), /* @__PURE__ */
|
|
321
|
+
}), /* @__PURE__ */ f("dd", {
|
|
336
322
|
className: "mt-0.5 text-text-primary",
|
|
337
323
|
children: new Date(e.submittedAt).toLocaleString()
|
|
338
324
|
})] }),
|
|
339
|
-
e.description && /* @__PURE__ */
|
|
325
|
+
e.description && /* @__PURE__ */ p("div", {
|
|
340
326
|
className: "col-span-2 sm:col-span-3",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
327
|
+
children: [/* @__PURE__ */ f("dt", {
|
|
342
328
|
className: "font-medium text-text-secondary",
|
|
343
329
|
children: "Description"
|
|
344
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ f("dd", {
|
|
345
331
|
className: "mt-0.5 whitespace-pre-wrap text-text-primary",
|
|
346
332
|
children: e.description
|
|
347
333
|
})]
|
|
@@ -349,38 +335,38 @@ var _ = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pendi
|
|
|
349
335
|
]
|
|
350
336
|
})
|
|
351
337
|
}),
|
|
352
|
-
|
|
353
|
-
className: "border-t border-border-
|
|
338
|
+
I === e.id && /* @__PURE__ */ p("div", {
|
|
339
|
+
className: "border-t border-border-seam bg-surface-muted px-4 py-3",
|
|
354
340
|
children: [
|
|
355
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ f("label", {
|
|
356
342
|
htmlFor: `reject-reason-${e.id}`,
|
|
357
343
|
className: "block text-xs font-medium text-text-secondary",
|
|
358
344
|
children: "Rejection reason (required)"
|
|
359
345
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ f("textarea", {
|
|
361
347
|
id: `reject-reason-${e.id}`,
|
|
362
348
|
"aria-label": "Rejection reason",
|
|
363
|
-
value:
|
|
364
|
-
onChange: (e) =>
|
|
349
|
+
value: R,
|
|
350
|
+
onChange: (e) => z(e.target.value),
|
|
365
351
|
rows: 3,
|
|
366
352
|
required: !0,
|
|
367
353
|
"aria-required": "true",
|
|
368
|
-
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-2 text-sm text-text-primary focus:border-border-accent focus:outline-none",
|
|
354
|
+
className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-2 text-sm text-text-primary focus:border-border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
369
355
|
placeholder: "Explain why this submission is being rejected…"
|
|
370
356
|
}),
|
|
371
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ p("div", {
|
|
372
358
|
className: "mt-2 flex justify-end gap-2",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ f("button", {
|
|
374
360
|
type: "button",
|
|
375
361
|
onClick: () => {
|
|
376
|
-
|
|
362
|
+
L(null), z("");
|
|
377
363
|
},
|
|
378
364
|
className: "rounded-md border border-border-default bg-surface-default px-3 py-1 text-xs text-text-primary hover:bg-surface-hover",
|
|
379
365
|
children: "Cancel"
|
|
380
|
-
}), /* @__PURE__ */
|
|
366
|
+
}), /* @__PURE__ */ f("button", {
|
|
381
367
|
type: "button",
|
|
382
|
-
onClick: () => void
|
|
383
|
-
disabled: !
|
|
368
|
+
onClick: () => void W(e.id),
|
|
369
|
+
disabled: !R.trim() || M === e.id,
|
|
384
370
|
className: "rounded-md bg-surface-danger px-3 py-1 text-xs font-medium text-text-on-danger hover:bg-surface-danger-hover disabled:opacity-60",
|
|
385
371
|
children: "Submit rejection"
|
|
386
372
|
})]
|
|
@@ -394,6 +380,6 @@ var _ = "\n query PendingReviewProducts($limit: Int, $offset: Int) {\n pendi
|
|
|
394
380
|
});
|
|
395
381
|
};
|
|
396
382
|
//#endregion
|
|
397
|
-
export {
|
|
383
|
+
export { x as AdminSubmissionsQueuePage };
|
|
398
384
|
|
|
399
385
|
//# sourceMappingURL=AdminSubmissionsQueuePage.js.map
|