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