@burdenoff/microfe-store 2026.625.2 → 2026.625.3
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 +70 -297
- package/dist/pages/AppSettingsPage.js.map +1 -1
- package/dist/pages/CartPage.js +65 -76
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +71 -100
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +368 -378
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +67 -75
- 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 +53 -64
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tslib.es6.js","names":[],"sources":["../../../../../node_modules/rxjs/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,9 +5,10 @@ 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";
|
|
8
9
|
//#region src/pages/AdminDashboardPage.tsx
|
|
9
|
-
var
|
|
10
|
-
let
|
|
10
|
+
var w = "\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", T = "\n mutation ApproveProduct($id: ID!) {\n approveProduct(id: $id) {\n id\n status\n }\n }\n", E = "\n mutation RejectProduct($id: ID!, $reason: String!) {\n rejectProduct(id: $id, reason: $reason) {\n id\n status\n }\n }\n", D = () => {
|
|
11
|
+
let D = b(), { authToken: O, basePath: k } = e(), [A, j] = i({
|
|
11
12
|
pendingCount: 0,
|
|
12
13
|
totalStores: 0,
|
|
13
14
|
recentPending: [],
|
|
@@ -15,8 +16,8 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
15
16
|
recentRejected: [],
|
|
16
17
|
loading: !0,
|
|
17
18
|
error: null
|
|
18
|
-
}), [
|
|
19
|
-
|
|
19
|
+
}), [M, N] = i(null), [P, F] = i(null), [I, L] = i(""), [R, z] = i(null), [B, V] = i(null), H = n(async () => {
|
|
20
|
+
j((e) => ({
|
|
20
21
|
...e,
|
|
21
22
|
loading: !0,
|
|
22
23
|
error: null
|
|
@@ -24,11 +25,11 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
24
25
|
try {
|
|
25
26
|
let e = await x({
|
|
26
27
|
gateway: "global",
|
|
27
|
-
query:
|
|
28
|
-
authToken:
|
|
28
|
+
query: w,
|
|
29
|
+
authToken: O || void 0
|
|
29
30
|
});
|
|
30
31
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? "Failed to load dashboard");
|
|
31
|
-
|
|
32
|
+
j({
|
|
32
33
|
pendingCount: e.data?.recentPending.totalCount ?? 0,
|
|
33
34
|
totalStores: e.data?.stores.length ?? 0,
|
|
34
35
|
recentPending: e.data?.recentPending.products ?? [],
|
|
@@ -38,87 +39,87 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
38
39
|
error: null
|
|
39
40
|
});
|
|
40
41
|
} catch (e) {
|
|
41
|
-
|
|
42
|
+
j((t) => ({
|
|
42
43
|
...t,
|
|
43
44
|
loading: !1,
|
|
44
45
|
error: e instanceof Error ? e.message : "Failed to load dashboard"
|
|
45
46
|
}));
|
|
46
47
|
}
|
|
47
|
-
}, [
|
|
48
|
+
}, [O]);
|
|
48
49
|
r(() => {
|
|
49
|
-
|
|
50
|
-
}, [
|
|
51
|
-
let
|
|
52
|
-
|
|
50
|
+
H();
|
|
51
|
+
}, [H]);
|
|
52
|
+
let U = async (e) => {
|
|
53
|
+
N(e), z(null);
|
|
53
54
|
try {
|
|
54
55
|
let t = await x({
|
|
55
56
|
gateway: "global",
|
|
56
|
-
query:
|
|
57
|
+
query: T,
|
|
57
58
|
variables: { id: e },
|
|
58
|
-
authToken:
|
|
59
|
+
authToken: O || void 0
|
|
59
60
|
});
|
|
60
61
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Approval failed");
|
|
61
|
-
await
|
|
62
|
+
await H();
|
|
62
63
|
} catch (e) {
|
|
63
|
-
|
|
64
|
+
z(e instanceof Error ? e.message : "Approval failed");
|
|
64
65
|
} finally {
|
|
65
|
-
|
|
66
|
+
N(null);
|
|
66
67
|
}
|
|
67
|
-
},
|
|
68
|
-
if (
|
|
69
|
-
|
|
68
|
+
}, W = async (e) => {
|
|
69
|
+
if (I.trim()) {
|
|
70
|
+
N(e), z(null);
|
|
70
71
|
try {
|
|
71
72
|
let t = await x({
|
|
72
73
|
gateway: "global",
|
|
73
|
-
query:
|
|
74
|
+
query: E,
|
|
74
75
|
variables: {
|
|
75
76
|
id: e,
|
|
76
|
-
reason:
|
|
77
|
+
reason: I.trim()
|
|
77
78
|
},
|
|
78
|
-
authToken:
|
|
79
|
+
authToken: O || void 0
|
|
79
80
|
});
|
|
80
81
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Rejection failed");
|
|
81
|
-
|
|
82
|
+
F(null), L(""), await H();
|
|
82
83
|
} catch (e) {
|
|
83
|
-
|
|
84
|
+
z(e instanceof Error ? e.message : "Rejection failed");
|
|
84
85
|
} finally {
|
|
85
|
-
|
|
86
|
+
N(null);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
|
-
},
|
|
89
|
+
}, G = (e) => e ? new Date(e).toLocaleDateString(void 0, {
|
|
89
90
|
month: "short",
|
|
90
91
|
day: "numeric",
|
|
91
92
|
year: "numeric"
|
|
92
|
-
}) : "—",
|
|
93
|
+
}) : "—", K = [
|
|
93
94
|
{
|
|
94
95
|
label: "Pending submissions",
|
|
95
|
-
value:
|
|
96
|
+
value: A.pendingCount,
|
|
96
97
|
icon: f,
|
|
97
|
-
href: `${
|
|
98
|
+
href: `${k}/submissions`
|
|
98
99
|
},
|
|
99
100
|
{
|
|
100
101
|
label: "Stores in registry",
|
|
101
|
-
value:
|
|
102
|
+
value: A.totalStores,
|
|
102
103
|
icon: m,
|
|
103
|
-
href: `${
|
|
104
|
+
href: `${k}/stores`
|
|
104
105
|
},
|
|
105
106
|
{
|
|
106
107
|
label: "Review queue",
|
|
107
108
|
value: "—",
|
|
108
109
|
icon: d,
|
|
109
|
-
href: `${
|
|
110
|
+
href: `${k}/reviews`
|
|
110
111
|
},
|
|
111
112
|
{
|
|
112
113
|
label: "Publishers",
|
|
113
114
|
value: "—",
|
|
114
115
|
icon: h,
|
|
115
|
-
href: `${
|
|
116
|
+
href: `${k}/dashboard`
|
|
116
117
|
}
|
|
117
118
|
];
|
|
118
119
|
return /* @__PURE__ */ y("div", {
|
|
119
120
|
className: "min-h-screen bg-surface-default",
|
|
120
121
|
children: [/* @__PURE__ */ v("header", {
|
|
121
|
-
className: "border-b border-border-
|
|
122
|
+
className: "border-b border-border-seam bg-surface-raised",
|
|
122
123
|
children: /* @__PURE__ */ y("div", {
|
|
123
124
|
className: "mx-auto max-w-7xl px-6 py-4",
|
|
124
125
|
children: [/* @__PURE__ */ y("div", {
|
|
@@ -131,10 +132,10 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
131
132
|
})]
|
|
132
133
|
}), /* @__PURE__ */ y("button", {
|
|
133
134
|
type: "button",
|
|
134
|
-
onClick: () => void
|
|
135
|
-
disabled:
|
|
135
|
+
onClick: () => void H(),
|
|
136
|
+
disabled: A.loading,
|
|
136
137
|
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",
|
|
137
|
-
children: [/* @__PURE__ */ v(p, { className: `size-4 ${
|
|
138
|
+
children: [/* @__PURE__ */ v(p, { className: `size-4 ${A.loading ? "animate-spin" : ""}` }), "Refresh"]
|
|
138
139
|
})]
|
|
139
140
|
}), /* @__PURE__ */ v("p", {
|
|
140
141
|
className: "mt-1 text-sm text-text-secondary",
|
|
@@ -144,19 +145,19 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
144
145
|
}), /* @__PURE__ */ y("main", {
|
|
145
146
|
className: "mx-auto max-w-7xl space-y-6 p-6",
|
|
146
147
|
children: [
|
|
147
|
-
|
|
148
|
+
A.error && /* @__PURE__ */ v("div", {
|
|
148
149
|
role: "alert",
|
|
149
150
|
className: "rounded-md border border-border-danger bg-surface-danger-muted px-4 py-3 text-sm text-text-danger",
|
|
150
|
-
children:
|
|
151
|
+
children: A.error
|
|
151
152
|
}),
|
|
152
153
|
/* @__PURE__ */ v("div", {
|
|
153
154
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
154
|
-
children:
|
|
155
|
+
children: K.map((e) => {
|
|
155
156
|
let t = e.icon;
|
|
156
157
|
return /* @__PURE__ */ y("button", {
|
|
157
158
|
type: "button",
|
|
158
|
-
onClick: () =>
|
|
159
|
-
className: "rounded-
|
|
159
|
+
onClick: () => D(e.href),
|
|
160
|
+
className: "rounded-card border border-border-seam bg-bg-surface bg-accent-wash p-4 text-left shadow-elevation-1 transition-[box-shadow,border-color] hover:border-border-strong hover:shadow-elevation-2",
|
|
160
161
|
children: [/* @__PURE__ */ y("div", {
|
|
161
162
|
className: "flex items-center justify-between",
|
|
162
163
|
children: [/* @__PURE__ */ v("span", {
|
|
@@ -164,13 +165,13 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
164
165
|
children: e.label
|
|
165
166
|
}), /* @__PURE__ */ v(t, { className: "size-4 text-text-tertiary" })]
|
|
166
167
|
}), /* @__PURE__ */ v("div", {
|
|
167
|
-
className: "mt-2 text-3xl font-semibold text-text-primary",
|
|
168
|
-
children:
|
|
168
|
+
className: "mt-2 text-3xl font-semibold tabular-nums text-text-primary",
|
|
169
|
+
children: A.loading ? "…" : e.value
|
|
169
170
|
})]
|
|
170
171
|
}, e.label);
|
|
171
172
|
})
|
|
172
173
|
}),
|
|
173
|
-
/* @__PURE__ */ y(
|
|
174
|
+
/* @__PURE__ */ y(S, { children: [
|
|
174
175
|
/* @__PURE__ */ y("div", {
|
|
175
176
|
className: "mb-3 flex items-center justify-between",
|
|
176
177
|
children: [/* @__PURE__ */ v("h2", {
|
|
@@ -178,26 +179,26 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
178
179
|
children: "Recent Submissions"
|
|
179
180
|
}), /* @__PURE__ */ y("button", {
|
|
180
181
|
type: "button",
|
|
181
|
-
onClick: () =>
|
|
182
|
+
onClick: () => D(`${k}/submissions`),
|
|
182
183
|
className: "inline-flex items-center gap-1 text-xs text-text-accent hover:underline",
|
|
183
184
|
children: ["View all", /* @__PURE__ */ v(l, { className: "size-3" })]
|
|
184
185
|
})]
|
|
185
186
|
}),
|
|
186
|
-
|
|
187
|
+
R && /* @__PURE__ */ v("div", {
|
|
187
188
|
role: "alert",
|
|
188
189
|
className: "mb-3 rounded-md border border-border-danger bg-surface-danger-muted px-4 py-2 text-sm text-text-danger",
|
|
189
|
-
children:
|
|
190
|
+
children: R
|
|
190
191
|
}),
|
|
191
|
-
|
|
192
|
+
A.loading ? /* @__PURE__ */ v("div", {
|
|
192
193
|
className: "rounded-lg border border-border-default bg-surface-raised py-10 text-center text-sm text-text-secondary",
|
|
193
194
|
children: "Loading…"
|
|
194
|
-
}) :
|
|
195
|
+
}) : A.recentPending.length === 0 ? /* @__PURE__ */ v("div", {
|
|
195
196
|
className: "rounded-lg border border-border-default bg-surface-raised py-10 text-center text-sm text-text-secondary",
|
|
196
197
|
children: "No pending submissions."
|
|
197
198
|
}) : /* @__PURE__ */ v("ul", {
|
|
198
199
|
className: "space-y-2",
|
|
199
|
-
children:
|
|
200
|
-
className: "overflow-hidden rounded-lg border border-border-
|
|
200
|
+
children: A.recentPending.map((e) => /* @__PURE__ */ y("li", {
|
|
201
|
+
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)]",
|
|
201
202
|
children: [
|
|
202
203
|
/* @__PURE__ */ y("div", {
|
|
203
204
|
className: "flex items-center gap-3 px-4 py-3",
|
|
@@ -224,7 +225,7 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
224
225
|
t(e.price, e.currency, e.pricingModel),
|
|
225
226
|
" ·",
|
|
226
227
|
" ",
|
|
227
|
-
|
|
228
|
+
G(e.submittedAt)
|
|
228
229
|
]
|
|
229
230
|
})]
|
|
230
231
|
}),
|
|
@@ -233,23 +234,23 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
233
234
|
children: [
|
|
234
235
|
/* @__PURE__ */ y("button", {
|
|
235
236
|
type: "button",
|
|
236
|
-
onClick: () =>
|
|
237
|
+
onClick: () => V(B === e.id ? null : e.id),
|
|
237
238
|
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",
|
|
238
|
-
children: [
|
|
239
|
+
children: [B === e.id ? /* @__PURE__ */ v(c, { className: "size-3.5" }) : /* @__PURE__ */ v(s, { className: "size-3.5" }), "Details"]
|
|
239
240
|
}),
|
|
240
241
|
/* @__PURE__ */ y("button", {
|
|
241
242
|
type: "button",
|
|
242
|
-
onClick: () => void
|
|
243
|
-
disabled:
|
|
243
|
+
onClick: () => void U(e.id),
|
|
244
|
+
disabled: M === e.id,
|
|
244
245
|
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",
|
|
245
246
|
children: [/* @__PURE__ */ v(a, { className: "size-3.5" }), "Approve"]
|
|
246
247
|
}),
|
|
247
248
|
/* @__PURE__ */ y("button", {
|
|
248
249
|
type: "button",
|
|
249
250
|
onClick: () => {
|
|
250
|
-
|
|
251
|
+
F(e.id), L(""), z(null);
|
|
251
252
|
},
|
|
252
|
-
disabled:
|
|
253
|
+
disabled: M === e.id,
|
|
253
254
|
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",
|
|
254
255
|
children: [/* @__PURE__ */ v(g, { className: "size-3.5" }), "Reject"]
|
|
255
256
|
})
|
|
@@ -257,8 +258,8 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
257
258
|
})
|
|
258
259
|
]
|
|
259
260
|
}),
|
|
260
|
-
|
|
261
|
-
className: "border-t border-border-
|
|
261
|
+
B === e.id && /* @__PURE__ */ v("div", {
|
|
262
|
+
className: "border-t border-border-seam bg-surface-muted p-4",
|
|
262
263
|
children: /* @__PURE__ */ y("dl", {
|
|
263
264
|
className: "grid grid-cols-2 gap-x-6 gap-y-3 text-xs sm:grid-cols-3",
|
|
264
265
|
children: [
|
|
@@ -330,7 +331,7 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
330
331
|
children: "Submitted at"
|
|
331
332
|
}), /* @__PURE__ */ v("dd", {
|
|
332
333
|
className: "mt-0.5 text-text-primary",
|
|
333
|
-
children:
|
|
334
|
+
children: G(e.submittedAt)
|
|
334
335
|
})] }),
|
|
335
336
|
e.description && /* @__PURE__ */ y("div", {
|
|
336
337
|
className: "col-span-2 sm:col-span-3",
|
|
@@ -345,8 +346,8 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
345
346
|
]
|
|
346
347
|
})
|
|
347
348
|
}),
|
|
348
|
-
|
|
349
|
-
className: "border-t border-border-
|
|
349
|
+
P === e.id && /* @__PURE__ */ y("div", {
|
|
350
|
+
className: "border-t border-border-seam bg-surface-muted px-4 py-3",
|
|
350
351
|
children: [
|
|
351
352
|
/* @__PURE__ */ v("label", {
|
|
352
353
|
htmlFor: `reject-reason-${e.id}`,
|
|
@@ -356,10 +357,10 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
356
357
|
/* @__PURE__ */ v("textarea", {
|
|
357
358
|
id: `reject-reason-${e.id}`,
|
|
358
359
|
"aria-label": "Rejection reason",
|
|
359
|
-
value:
|
|
360
|
-
onChange: (e) =>
|
|
360
|
+
value: I,
|
|
361
|
+
onChange: (e) => L(e.target.value),
|
|
361
362
|
rows: 2,
|
|
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",
|
|
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-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
363
364
|
placeholder: "Explain why this submission is being rejected…"
|
|
364
365
|
}),
|
|
365
366
|
/* @__PURE__ */ y("div", {
|
|
@@ -367,14 +368,14 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
367
368
|
children: [/* @__PURE__ */ v("button", {
|
|
368
369
|
type: "button",
|
|
369
370
|
onClick: () => {
|
|
370
|
-
|
|
371
|
+
F(null), L("");
|
|
371
372
|
},
|
|
372
373
|
className: "rounded-md border border-border-default bg-surface-default px-3 py-1 text-xs text-text-primary hover:bg-surface-hover",
|
|
373
374
|
children: "Cancel"
|
|
374
375
|
}), /* @__PURE__ */ v("button", {
|
|
375
376
|
type: "button",
|
|
376
|
-
onClick: () => void
|
|
377
|
-
disabled: !
|
|
377
|
+
onClick: () => void W(e.id),
|
|
378
|
+
disabled: !I.trim() || M === e.id,
|
|
378
379
|
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",
|
|
379
380
|
children: "Submit rejection"
|
|
380
381
|
})]
|
|
@@ -390,23 +391,23 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
390
391
|
children: "Recent Activity"
|
|
391
392
|
}), /* @__PURE__ */ y("div", {
|
|
392
393
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
393
|
-
children: [/* @__PURE__ */ y(
|
|
394
|
-
className: "
|
|
394
|
+
children: [/* @__PURE__ */ y(C, {
|
|
395
|
+
className: "overflow-hidden p-0",
|
|
395
396
|
children: [/* @__PURE__ */ y("div", {
|
|
396
|
-
className: "flex items-center gap-2 border-b border-border-
|
|
397
|
+
className: "flex items-center gap-2 border-b border-border-seam px-4 py-3",
|
|
397
398
|
children: [/* @__PURE__ */ v(o, { className: "size-4 text-text-success" }), /* @__PURE__ */ v("h3", {
|
|
398
399
|
className: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
399
400
|
children: "Recently Approved"
|
|
400
401
|
})]
|
|
401
|
-
}),
|
|
402
|
+
}), A.loading ? /* @__PURE__ */ v("p", {
|
|
402
403
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
403
404
|
children: "Loading…"
|
|
404
|
-
}) :
|
|
405
|
+
}) : A.recentPublished.length === 0 ? /* @__PURE__ */ v("p", {
|
|
405
406
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
406
407
|
children: "No approved products yet."
|
|
407
408
|
}) : /* @__PURE__ */ v("ul", {
|
|
408
|
-
className: "divide-y divide-border-
|
|
409
|
-
children:
|
|
409
|
+
className: "divide-y divide-border-seam",
|
|
410
|
+
children: A.recentPublished.map((e) => /* @__PURE__ */ y("li", {
|
|
410
411
|
className: "flex items-center gap-3 px-4 py-3",
|
|
411
412
|
children: [
|
|
412
413
|
e.icon ? /* @__PURE__ */ v("img", {
|
|
@@ -424,7 +425,7 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
424
425
|
children: e.name
|
|
425
426
|
}), /* @__PURE__ */ y("p", {
|
|
426
427
|
className: "text-xs text-text-secondary",
|
|
427
|
-
children: [e.reviewedBy ? `by ${e.reviewedBy} · ` : "",
|
|
428
|
+
children: [e.reviewedBy ? `by ${e.reviewedBy} · ` : "", G(e.publishedAt)]
|
|
428
429
|
})]
|
|
429
430
|
}),
|
|
430
431
|
/* @__PURE__ */ v("span", {
|
|
@@ -434,23 +435,23 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
434
435
|
]
|
|
435
436
|
}, e.id))
|
|
436
437
|
})]
|
|
437
|
-
}), /* @__PURE__ */ y(
|
|
438
|
-
className: "
|
|
438
|
+
}), /* @__PURE__ */ y(C, {
|
|
439
|
+
className: "overflow-hidden p-0",
|
|
439
440
|
children: [/* @__PURE__ */ y("div", {
|
|
440
|
-
className: "flex items-center gap-2 border-b border-border-
|
|
441
|
+
className: "flex items-center gap-2 border-b border-border-seam px-4 py-3",
|
|
441
442
|
children: [/* @__PURE__ */ v(_, { className: "size-4 text-text-danger" }), /* @__PURE__ */ v("h3", {
|
|
442
443
|
className: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
443
444
|
children: "Recently Rejected"
|
|
444
445
|
})]
|
|
445
|
-
}),
|
|
446
|
+
}), A.loading ? /* @__PURE__ */ v("p", {
|
|
446
447
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
447
448
|
children: "Loading…"
|
|
448
|
-
}) :
|
|
449
|
+
}) : A.recentRejected.length === 0 ? /* @__PURE__ */ v("p", {
|
|
449
450
|
className: "px-4 py-6 text-center text-sm text-text-secondary",
|
|
450
451
|
children: "No rejected products yet."
|
|
451
452
|
}) : /* @__PURE__ */ v("ul", {
|
|
452
|
-
className: "divide-y divide-border-
|
|
453
|
-
children:
|
|
453
|
+
className: "divide-y divide-border-seam",
|
|
454
|
+
children: A.recentRejected.map((e) => /* @__PURE__ */ y("li", {
|
|
454
455
|
className: "flex items-center gap-3 px-4 py-3",
|
|
455
456
|
children: [
|
|
456
457
|
e.icon ? /* @__PURE__ */ v("img", {
|
|
@@ -468,7 +469,7 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
468
469
|
children: e.name
|
|
469
470
|
}), /* @__PURE__ */ y("p", {
|
|
470
471
|
className: "truncate text-xs text-text-secondary",
|
|
471
|
-
children: [e.rejectedReason ? `"${e.rejectedReason}" · ` : "",
|
|
472
|
+
children: [e.rejectedReason ? `"${e.rejectedReason}" · ` : "", G(e.reviewedAt)]
|
|
472
473
|
})]
|
|
473
474
|
}),
|
|
474
475
|
/* @__PURE__ */ v("span", {
|
|
@@ -485,6 +486,6 @@ var S = "\n query AdminDashboardData {\n recentPending: pendingReviewProduct
|
|
|
485
486
|
});
|
|
486
487
|
};
|
|
487
488
|
//#endregion
|
|
488
|
-
export {
|
|
489
|
+
export { D as AdminDashboardPage };
|
|
489
490
|
|
|
490
491
|
//# sourceMappingURL=AdminDashboardPage.js.map
|