@burdenoff/microfe-store 2026.625.1 → 2026.625.2
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 +120 -107
- 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 +59 -60
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +100 -71
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +175 -176
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +33 -34
- 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 +19 -20
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +98 -101
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tslib.es6.js","names":[],"sources":["../../../../../../../../node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,IAAI,IAAgB,SAAS,GAAG,GAAG;AAIjC,QAHA,IAAgB,OAAO,kBAClB,EAAE,WAAW,EAAE,EAAE,YAAY,SAAS,SAAU,GAAG,GAAG;AAAE,IAAE,YAAY;MACvE,SAAU,GAAG,GAAG;AAAE,OAAK,IAAI,KAAK,EAAG,CAAI,OAAO,UAAU,eAAe,KAAK,GAAG,EAAE,KAAE,EAAE,KAAK,EAAE;IACzF,EAAc,GAAG,EAAE;;AAG5B,SAAgB,EAAU,GAAG,GAAG;AAC9B,KAAI,OAAO,KAAM,cAAc,MAAM,KACjC,OAAU,UAAU,yBAAyB,OAAO,EAAE,GAAG,gCAAgC;AAC7F,GAAc,GAAG,EAAE;CACnB,SAAS,IAAK;AAAE,OAAK,cAAc;;AACnC,GAAE,YAAY,MAAM,OAAO,OAAO,OAAO,EAAE,IAAI,EAAG,YAAY,EAAE,WAAW,IAAI,GAAI;;AA4IrF,SAAgB,EAAS,GAAG;CAC1B,IAAI,IAAI,OAAO,UAAW,cAAc,OAAO,UAAU,IAAI,KAAK,EAAE,IAAI,IAAI;AAC5E,KAAI,EAAG,QAAO,EAAE,KAAK,EAAE;AACvB,KAAI,KAAK,OAAO,EAAE,UAAW,SAAU,QAAO,EAC1C,MAAM,WAAY;AAEd,SADI,KAAK,KAAK,EAAE,WAAQ,IAAI,KAAK,IAC1B;GAAE,OAAO,KAAK,EAAE;GAAM,MAAM,CAAC;GAAG;IAE9C;AACD,OAAU,UAAU,IAAI,4BAA4B,kCAAkC;;AAGxF,SAAgB,EAAO,GAAG,GAAG;CAC3B,IAAI,IAAI,OAAO,UAAW,cAAc,EAAE,OAAO;AACjD,KAAI,CAAC,EAAG,QAAO;CACf,IAAI,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,IAAK,EAAE,EAAE;AAC/B,KAAI;AACA,UAAQ,MAAM,KAAK,KAAK,MAAM,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,MAAM;UAEvE,GAAO;AAAE,MAAI,EAAS,UAAO;WAC5B;AACJ,MAAI;AACA,GAAI,KAAK,CAAC,EAAE,SAAS,IAAI,EAAE,WAAY,EAAE,KAAK,EAAE;YAE5C;AAAE,OAAI,EAAG,OAAM,EAAE;;;AAE7B,QAAO;;AAmBT,SAAgB,EAAc,GAAI,GAAM,GAAM;AAC5C,KAAI,KAAQ,UAAU,WAAW,QAAQ,IAAI,IAAI,GAAG,IAAI,EAAK,QAAQ,GAAI,IAAI,GAAG,IAC5E,EAAI,KAAM,EAAE,KAAK,QACb,AAAS,MAAK,MAAM,UAAU,MAAM,KAAK,GAAM,GAAG,EAAE,EACpD,EAAG,KAAK,EAAK;AAGrB,QAAO,EAAG,OAAO,KAAM,MAAM,UAAU,MAAM,KAAK,EAAK,CAAC"}
|
|
@@ -5,10 +5,9 @@ import { Check as a, CheckCircle as o, ChevronDown as s, ChevronUp as c, Externa
|
|
|
5
5
|
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
6
6
|
import { useNavigate as b } from "react-router-dom";
|
|
7
7
|
import { graphqlFetch as x } from "@burdenoff/fe-libs/shared/graphql";
|
|
8
|
-
import { EmphasisPanel as S, GlassCard as C } from "@burdenoff/fe-libs/ui";
|
|
9
8
|
//#region src/pages/AdminDashboardPage.tsx
|
|
10
|
-
var
|
|
11
|
-
let
|
|
9
|
+
var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProducts(limit: 5) {\n totalCount\n products {\n id\n slug\n name\n type\n nature\n category\n icon\n price\n currency\n pricingModel\n description\n submittedAt\n submittedBy\n publisher {\n name\n email\n }\n }\n }\n stores {\n id\n }\n recentPublished: products(filter: { status: PUBLISHED }, limit: 5) {\n id\n slug\n name\n icon\n status\n publishedAt\n reviewedBy\n }\n recentRejected: products(filter: { status: REJECTED }, limit: 5) {\n id\n slug\n name\n icon\n status\n reviewedAt\n rejectedReason\n }\n }\n", C = "\n mutation ApproveProduct($id: ID!) {\n approveProduct(id: $id) {\n id\n status\n }\n }\n", w = "\n mutation RejectProduct($id: ID!, $reason: String!) {\n rejectProduct(id: $id, reason: $reason) {\n id\n status\n }\n }\n", T = () => {
|
|
10
|
+
let T = b(), { authToken: E, basePath: D } = e(), [O, k] = i({
|
|
12
11
|
pendingCount: 0,
|
|
13
12
|
totalStores: 0,
|
|
14
13
|
recentPending: [],
|
|
@@ -16,8 +15,8 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
16
15
|
recentRejected: [],
|
|
17
16
|
loading: !0,
|
|
18
17
|
error: null
|
|
19
|
-
}), [
|
|
20
|
-
|
|
18
|
+
}), [A, j] = i(null), [M, N] = i(null), [P, F] = i(""), [I, L] = i(null), [R, z] = i(null), B = n(async () => {
|
|
19
|
+
k((e) => ({
|
|
21
20
|
...e,
|
|
22
21
|
loading: !0,
|
|
23
22
|
error: null
|
|
@@ -25,11 +24,11 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
25
24
|
try {
|
|
26
25
|
let e = await x({
|
|
27
26
|
gateway: "global",
|
|
28
|
-
query:
|
|
29
|
-
authToken:
|
|
27
|
+
query: S,
|
|
28
|
+
authToken: E || void 0
|
|
30
29
|
});
|
|
31
30
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? "Failed to load dashboard");
|
|
32
|
-
|
|
31
|
+
k({
|
|
33
32
|
pendingCount: e.data?.recentPending.totalCount ?? 0,
|
|
34
33
|
totalStores: e.data?.stores.length ?? 0,
|
|
35
34
|
recentPending: e.data?.recentPending.products ?? [],
|
|
@@ -39,87 +38,87 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
39
38
|
error: null
|
|
40
39
|
});
|
|
41
40
|
} catch (e) {
|
|
42
|
-
|
|
41
|
+
k((t) => ({
|
|
43
42
|
...t,
|
|
44
43
|
loading: !1,
|
|
45
44
|
error: e instanceof Error ? e.message : "Failed to load dashboard"
|
|
46
45
|
}));
|
|
47
46
|
}
|
|
48
|
-
}, [
|
|
47
|
+
}, [E]);
|
|
49
48
|
r(() => {
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
let
|
|
53
|
-
|
|
49
|
+
B();
|
|
50
|
+
}, [B]);
|
|
51
|
+
let V = async (e) => {
|
|
52
|
+
j(e), L(null);
|
|
54
53
|
try {
|
|
55
54
|
let t = await x({
|
|
56
55
|
gateway: "global",
|
|
57
|
-
query:
|
|
56
|
+
query: C,
|
|
58
57
|
variables: { id: e },
|
|
59
|
-
authToken:
|
|
58
|
+
authToken: E || void 0
|
|
60
59
|
});
|
|
61
60
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Approval failed");
|
|
62
|
-
await
|
|
61
|
+
await B();
|
|
63
62
|
} catch (e) {
|
|
64
|
-
|
|
63
|
+
L(e instanceof Error ? e.message : "Approval failed");
|
|
65
64
|
} finally {
|
|
66
|
-
|
|
65
|
+
j(null);
|
|
67
66
|
}
|
|
68
|
-
},
|
|
69
|
-
if (
|
|
70
|
-
|
|
67
|
+
}, H = async (e) => {
|
|
68
|
+
if (P.trim()) {
|
|
69
|
+
j(e), L(null);
|
|
71
70
|
try {
|
|
72
71
|
let t = await x({
|
|
73
72
|
gateway: "global",
|
|
74
|
-
query:
|
|
73
|
+
query: w,
|
|
75
74
|
variables: {
|
|
76
75
|
id: e,
|
|
77
|
-
reason:
|
|
76
|
+
reason: P.trim()
|
|
78
77
|
},
|
|
79
|
-
authToken:
|
|
78
|
+
authToken: E || void 0
|
|
80
79
|
});
|
|
81
80
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Rejection failed");
|
|
82
|
-
|
|
81
|
+
N(null), F(""), await B();
|
|
83
82
|
} catch (e) {
|
|
84
|
-
|
|
83
|
+
L(e instanceof Error ? e.message : "Rejection failed");
|
|
85
84
|
} finally {
|
|
86
|
-
|
|
85
|
+
j(null);
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
|
-
},
|
|
88
|
+
}, U = (e) => e ? new Date(e).toLocaleDateString(void 0, {
|
|
90
89
|
month: "short",
|
|
91
90
|
day: "numeric",
|
|
92
91
|
year: "numeric"
|
|
93
|
-
}) : "—",
|
|
92
|
+
}) : "—", W = [
|
|
94
93
|
{
|
|
95
94
|
label: "Pending submissions",
|
|
96
|
-
value:
|
|
95
|
+
value: O.pendingCount,
|
|
97
96
|
icon: f,
|
|
98
|
-
href: `${
|
|
97
|
+
href: `${D}/submissions`
|
|
99
98
|
},
|
|
100
99
|
{
|
|
101
100
|
label: "Stores in registry",
|
|
102
|
-
value:
|
|
101
|
+
value: O.totalStores,
|
|
103
102
|
icon: m,
|
|
104
|
-
href: `${
|
|
103
|
+
href: `${D}/stores`
|
|
105
104
|
},
|
|
106
105
|
{
|
|
107
106
|
label: "Review queue",
|
|
108
107
|
value: "—",
|
|
109
108
|
icon: d,
|
|
110
|
-
href: `${
|
|
109
|
+
href: `${D}/reviews`
|
|
111
110
|
},
|
|
112
111
|
{
|
|
113
112
|
label: "Publishers",
|
|
114
113
|
value: "—",
|
|
115
114
|
icon: h,
|
|
116
|
-
href: `${
|
|
115
|
+
href: `${D}/dashboard`
|
|
117
116
|
}
|
|
118
117
|
];
|
|
119
118
|
return /* @__PURE__ */ y("div", {
|
|
120
119
|
className: "min-h-screen bg-surface-default",
|
|
121
120
|
children: [/* @__PURE__ */ v("header", {
|
|
122
|
-
className: "border-b border-border-
|
|
121
|
+
className: "border-b border-border-default bg-surface-raised",
|
|
123
122
|
children: /* @__PURE__ */ y("div", {
|
|
124
123
|
className: "mx-auto max-w-7xl px-6 py-4",
|
|
125
124
|
children: [/* @__PURE__ */ y("div", {
|
|
@@ -132,10 +131,10 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
132
131
|
})]
|
|
133
132
|
}), /* @__PURE__ */ y("button", {
|
|
134
133
|
type: "button",
|
|
135
|
-
onClick: () => void
|
|
136
|
-
disabled:
|
|
134
|
+
onClick: () => void B(),
|
|
135
|
+
disabled: O.loading,
|
|
137
136
|
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 disabled:opacity-60",
|
|
138
|
-
children: [/* @__PURE__ */ v(p, { className: `size-4 ${
|
|
137
|
+
children: [/* @__PURE__ */ v(p, { className: `size-4 ${O.loading ? "animate-spin" : ""}` }), "Refresh"]
|
|
139
138
|
})]
|
|
140
139
|
}), /* @__PURE__ */ v("p", {
|
|
141
140
|
className: "mt-1 text-sm text-text-secondary",
|
|
@@ -145,19 +144,19 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
145
144
|
}), /* @__PURE__ */ y("main", {
|
|
146
145
|
className: "mx-auto max-w-7xl space-y-6 p-6",
|
|
147
146
|
children: [
|
|
148
|
-
|
|
147
|
+
O.error && /* @__PURE__ */ v("div", {
|
|
149
148
|
role: "alert",
|
|
150
149
|
className: "rounded-md border border-border-danger bg-surface-danger-muted px-4 py-3 text-sm text-text-danger",
|
|
151
|
-
children:
|
|
150
|
+
children: O.error
|
|
152
151
|
}),
|
|
153
152
|
/* @__PURE__ */ v("div", {
|
|
154
153
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
155
|
-
children:
|
|
154
|
+
children: W.map((e) => {
|
|
156
155
|
let t = e.icon;
|
|
157
156
|
return /* @__PURE__ */ y("button", {
|
|
158
157
|
type: "button",
|
|
159
|
-
onClick: () =>
|
|
160
|
-
className: "rounded-
|
|
158
|
+
onClick: () => T(e.href),
|
|
159
|
+
className: "rounded-lg border border-border-default bg-surface-raised p-4 text-left transition-colors hover:bg-surface-hover",
|
|
161
160
|
children: [/* @__PURE__ */ y("div", {
|
|
162
161
|
className: "flex items-center justify-between",
|
|
163
162
|
children: [/* @__PURE__ */ v("span", {
|
|
@@ -165,13 +164,13 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
165
164
|
children: e.label
|
|
166
165
|
}), /* @__PURE__ */ v(t, { className: "size-4 text-text-tertiary" })]
|
|
167
166
|
}), /* @__PURE__ */ v("div", {
|
|
168
|
-
className: "mt-2 text-3xl font-semibold
|
|
169
|
-
children:
|
|
167
|
+
className: "mt-2 text-3xl font-semibold text-text-primary",
|
|
168
|
+
children: O.loading ? "…" : e.value
|
|
170
169
|
})]
|
|
171
170
|
}, e.label);
|
|
172
171
|
})
|
|
173
172
|
}),
|
|
174
|
-
/* @__PURE__ */ y(
|
|
173
|
+
/* @__PURE__ */ y("section", { children: [
|
|
175
174
|
/* @__PURE__ */ y("div", {
|
|
176
175
|
className: "mb-3 flex items-center justify-between",
|
|
177
176
|
children: [/* @__PURE__ */ v("h2", {
|
|
@@ -179,26 +178,26 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
179
178
|
children: "Recent Submissions"
|
|
180
179
|
}), /* @__PURE__ */ y("button", {
|
|
181
180
|
type: "button",
|
|
182
|
-
onClick: () =>
|
|
181
|
+
onClick: () => T(`${D}/submissions`),
|
|
183
182
|
className: "inline-flex items-center gap-1 text-xs text-text-accent hover:underline",
|
|
184
183
|
children: ["View all", /* @__PURE__ */ v(l, { className: "size-3" })]
|
|
185
184
|
})]
|
|
186
185
|
}),
|
|
187
|
-
|
|
186
|
+
I && /* @__PURE__ */ v("div", {
|
|
188
187
|
role: "alert",
|
|
189
188
|
className: "mb-3 rounded-md border border-border-danger bg-surface-danger-muted px-4 py-2 text-sm text-text-danger",
|
|
190
|
-
children:
|
|
189
|
+
children: I
|
|
191
190
|
}),
|
|
192
|
-
|
|
191
|
+
O.loading ? /* @__PURE__ */ v("div", {
|
|
193
192
|
className: "rounded-lg border border-border-default bg-surface-raised py-10 text-center text-sm text-text-secondary",
|
|
194
193
|
children: "Loading…"
|
|
195
|
-
}) :
|
|
194
|
+
}) : O.recentPending.length === 0 ? /* @__PURE__ */ v("div", {
|
|
196
195
|
className: "rounded-lg border border-border-default bg-surface-raised py-10 text-center text-sm text-text-secondary",
|
|
197
196
|
children: "No pending submissions."
|
|
198
197
|
}) : /* @__PURE__ */ v("ul", {
|
|
199
198
|
className: "space-y-2",
|
|
200
|
-
children:
|
|
201
|
-
className: "overflow-hidden rounded-lg border border-border-
|
|
199
|
+
children: O.recentPending.map((e) => /* @__PURE__ */ y("li", {
|
|
200
|
+
className: "overflow-hidden rounded-lg border border-border-default bg-surface-raised",
|
|
202
201
|
children: [
|
|
203
202
|
/* @__PURE__ */ y("div", {
|
|
204
203
|
className: "flex items-center gap-3 px-4 py-3",
|
|
@@ -225,7 +224,7 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
225
224
|
t(e.price, e.currency, e.pricingModel),
|
|
226
225
|
" ·",
|
|
227
226
|
" ",
|
|
228
|
-
|
|
227
|
+
U(e.submittedAt)
|
|
229
228
|
]
|
|
230
229
|
})]
|
|
231
230
|
}),
|
|
@@ -234,23 +233,23 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
234
233
|
children: [
|
|
235
234
|
/* @__PURE__ */ y("button", {
|
|
236
235
|
type: "button",
|
|
237
|
-
onClick: () =>
|
|
236
|
+
onClick: () => z(R === e.id ? null : e.id),
|
|
238
237
|
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",
|
|
239
|
-
children: [
|
|
238
|
+
children: [R === e.id ? /* @__PURE__ */ v(c, { className: "size-3.5" }) : /* @__PURE__ */ v(s, { className: "size-3.5" }), "Details"]
|
|
240
239
|
}),
|
|
241
240
|
/* @__PURE__ */ y("button", {
|
|
242
241
|
type: "button",
|
|
243
|
-
onClick: () => void
|
|
244
|
-
disabled:
|
|
242
|
+
onClick: () => void V(e.id),
|
|
243
|
+
disabled: A === e.id,
|
|
245
244
|
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",
|
|
246
245
|
children: [/* @__PURE__ */ v(a, { className: "size-3.5" }), "Approve"]
|
|
247
246
|
}),
|
|
248
247
|
/* @__PURE__ */ y("button", {
|
|
249
248
|
type: "button",
|
|
250
249
|
onClick: () => {
|
|
251
|
-
|
|
250
|
+
N(e.id), F(""), L(null);
|
|
252
251
|
},
|
|
253
|
-
disabled:
|
|
252
|
+
disabled: A === e.id,
|
|
254
253
|
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",
|
|
255
254
|
children: [/* @__PURE__ */ v(g, { className: "size-3.5" }), "Reject"]
|
|
256
255
|
})
|
|
@@ -258,8 +257,8 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
258
257
|
})
|
|
259
258
|
]
|
|
260
259
|
}),
|
|
261
|
-
|
|
262
|
-
className: "border-t border-border-
|
|
260
|
+
R === e.id && /* @__PURE__ */ v("div", {
|
|
261
|
+
className: "border-t border-border-default bg-surface-muted p-4",
|
|
263
262
|
children: /* @__PURE__ */ y("dl", {
|
|
264
263
|
className: "grid grid-cols-2 gap-x-6 gap-y-3 text-xs sm:grid-cols-3",
|
|
265
264
|
children: [
|
|
@@ -331,7 +330,7 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
331
330
|
children: "Submitted at"
|
|
332
331
|
}), /* @__PURE__ */ v("dd", {
|
|
333
332
|
className: "mt-0.5 text-text-primary",
|
|
334
|
-
children:
|
|
333
|
+
children: U(e.submittedAt)
|
|
335
334
|
})] }),
|
|
336
335
|
e.description && /* @__PURE__ */ y("div", {
|
|
337
336
|
className: "col-span-2 sm:col-span-3",
|
|
@@ -346,8 +345,8 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
346
345
|
]
|
|
347
346
|
})
|
|
348
347
|
}),
|
|
349
|
-
|
|
350
|
-
className: "border-t border-border-
|
|
348
|
+
M === e.id && /* @__PURE__ */ y("div", {
|
|
349
|
+
className: "border-t border-border-default bg-surface-muted px-4 py-3",
|
|
351
350
|
children: [
|
|
352
351
|
/* @__PURE__ */ v("label", {
|
|
353
352
|
htmlFor: `reject-reason-${e.id}`,
|
|
@@ -357,10 +356,10 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
357
356
|
/* @__PURE__ */ v("textarea", {
|
|
358
357
|
id: `reject-reason-${e.id}`,
|
|
359
358
|
"aria-label": "Rejection reason",
|
|
360
|
-
value:
|
|
361
|
-
onChange: (e) =>
|
|
359
|
+
value: P,
|
|
360
|
+
onChange: (e) => F(e.target.value),
|
|
362
361
|
rows: 2,
|
|
363
|
-
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
|
|
362
|
+
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",
|
|
364
363
|
placeholder: "Explain why this submission is being rejected…"
|
|
365
364
|
}),
|
|
366
365
|
/* @__PURE__ */ y("div", {
|
|
@@ -368,14 +367,14 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
368
367
|
children: [/* @__PURE__ */ v("button", {
|
|
369
368
|
type: "button",
|
|
370
369
|
onClick: () => {
|
|
371
|
-
|
|
370
|
+
N(null), F("");
|
|
372
371
|
},
|
|
373
372
|
className: "rounded-md border border-border-default bg-surface-default px-3 py-1 text-xs text-text-primary hover:bg-surface-hover",
|
|
374
373
|
children: "Cancel"
|
|
375
374
|
}), /* @__PURE__ */ v("button", {
|
|
376
375
|
type: "button",
|
|
377
|
-
onClick: () => void
|
|
378
|
-
disabled: !
|
|
376
|
+
onClick: () => void H(e.id),
|
|
377
|
+
disabled: !P.trim() || A === e.id,
|
|
379
378
|
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",
|
|
380
379
|
children: "Submit rejection"
|
|
381
380
|
})]
|
|
@@ -391,23 +390,23 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
391
390
|
children: "Recent Activity"
|
|
392
391
|
}), /* @__PURE__ */ y("div", {
|
|
393
392
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
394
|
-
children: [/* @__PURE__ */ y(
|
|
395
|
-
className: "
|
|
393
|
+
children: [/* @__PURE__ */ y("div", {
|
|
394
|
+
className: "rounded-lg border border-border-default bg-surface-raised",
|
|
396
395
|
children: [/* @__PURE__ */ y("div", {
|
|
397
|
-
className: "flex items-center gap-2 border-b border-border-
|
|
396
|
+
className: "flex items-center gap-2 border-b border-border-default px-4 py-3",
|
|
398
397
|
children: [/* @__PURE__ */ v(o, { className: "size-4 text-text-success" }), /* @__PURE__ */ v("h3", {
|
|
399
398
|
className: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
400
399
|
children: "Recently Approved"
|
|
401
400
|
})]
|
|
402
|
-
}),
|
|
401
|
+
}), O.loading ? /* @__PURE__ */ v("p", {
|
|
403
402
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
404
403
|
children: "Loading…"
|
|
405
|
-
}) :
|
|
404
|
+
}) : O.recentPublished.length === 0 ? /* @__PURE__ */ v("p", {
|
|
406
405
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
407
406
|
children: "No approved products yet."
|
|
408
407
|
}) : /* @__PURE__ */ v("ul", {
|
|
409
|
-
className: "divide-y divide-border-
|
|
410
|
-
children:
|
|
408
|
+
className: "divide-y divide-border-default",
|
|
409
|
+
children: O.recentPublished.map((e) => /* @__PURE__ */ y("li", {
|
|
411
410
|
className: "flex items-center gap-3 px-4 py-3",
|
|
412
411
|
children: [
|
|
413
412
|
e.icon ? /* @__PURE__ */ v("img", {
|
|
@@ -425,7 +424,7 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
425
424
|
children: e.name
|
|
426
425
|
}), /* @__PURE__ */ y("p", {
|
|
427
426
|
className: "text-xs text-text-secondary",
|
|
428
|
-
children: [e.reviewedBy ? `by ${e.reviewedBy} · ` : "",
|
|
427
|
+
children: [e.reviewedBy ? `by ${e.reviewedBy} · ` : "", U(e.publishedAt)]
|
|
429
428
|
})]
|
|
430
429
|
}),
|
|
431
430
|
/* @__PURE__ */ v("span", {
|
|
@@ -435,23 +434,23 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
435
434
|
]
|
|
436
435
|
}, e.id))
|
|
437
436
|
})]
|
|
438
|
-
}), /* @__PURE__ */ y(
|
|
439
|
-
className: "
|
|
437
|
+
}), /* @__PURE__ */ y("div", {
|
|
438
|
+
className: "rounded-lg border border-border-default bg-surface-raised",
|
|
440
439
|
children: [/* @__PURE__ */ y("div", {
|
|
441
|
-
className: "flex items-center gap-2 border-b border-border-
|
|
440
|
+
className: "flex items-center gap-2 border-b border-border-default px-4 py-3",
|
|
442
441
|
children: [/* @__PURE__ */ v(_, { className: "size-4 text-text-danger" }), /* @__PURE__ */ v("h3", {
|
|
443
442
|
className: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
444
443
|
children: "Recently Rejected"
|
|
445
444
|
})]
|
|
446
|
-
}),
|
|
445
|
+
}), O.loading ? /* @__PURE__ */ v("p", {
|
|
447
446
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
448
447
|
children: "Loading…"
|
|
449
|
-
}) :
|
|
448
|
+
}) : O.recentRejected.length === 0 ? /* @__PURE__ */ v("p", {
|
|
450
449
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
451
450
|
children: "No rejected products yet."
|
|
452
451
|
}) : /* @__PURE__ */ v("ul", {
|
|
453
|
-
className: "divide-y divide-border-
|
|
454
|
-
children:
|
|
452
|
+
className: "divide-y divide-border-default",
|
|
453
|
+
children: O.recentRejected.map((e) => /* @__PURE__ */ y("li", {
|
|
455
454
|
className: "flex items-center gap-3 px-4 py-3",
|
|
456
455
|
children: [
|
|
457
456
|
e.icon ? /* @__PURE__ */ v("img", {
|
|
@@ -469,7 +468,7 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
469
468
|
children: e.name
|
|
470
469
|
}), /* @__PURE__ */ y("p", {
|
|
471
470
|
className: "truncate text-xs text-text-secondary",
|
|
472
|
-
children: [e.rejectedReason ? `"${e.rejectedReason}" · ` : "",
|
|
471
|
+
children: [e.rejectedReason ? `"${e.rejectedReason}" · ` : "", U(e.reviewedAt)]
|
|
473
472
|
})]
|
|
474
473
|
}),
|
|
475
474
|
/* @__PURE__ */ v("span", {
|
|
@@ -486,6 +485,6 @@ var w = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
486
485
|
});
|
|
487
486
|
};
|
|
488
487
|
//#endregion
|
|
489
|
-
export {
|
|
488
|
+
export { T as AdminDashboardPage };
|
|
490
489
|
|
|
491
490
|
//# sourceMappingURL=AdminDashboardPage.js.map
|