@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.
Files changed (184) hide show
  1. package/dist/StoreRoutes.js +3 -3
  2. package/dist/StoreRoutes.js.map +1 -1
  3. package/dist/components/AccessDenied.js +3 -3
  4. package/dist/components/AccessDenied.js.map +1 -1
  5. package/dist/components/InstallAppModal.js +107 -120
  6. package/dist/components/InstallAppModal.js.map +1 -1
  7. package/dist/components/cart/CartDrawer.js +10 -10
  8. package/dist/components/cart/CartDrawer.js.map +1 -1
  9. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/CombinedGraphQLErrors.js +1 -1
  10. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
  11. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/utils.js +1 -1
  12. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
  13. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/core/ApolloLink.js +2 -2
  14. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
  15. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/subscriptions/index.js +2 -2
  16. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
  17. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/utils/createOperation.js +1 -1
  18. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
  19. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
  20. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/graphql/print.js +1 -1
  21. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
  22. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/caches.js +2 -2
  23. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
  24. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/checkDocument.js +1 -1
  25. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
  26. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getMainDefinition.js +1 -1
  27. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
  28. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
  29. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
  30. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getOperationDefinition.js +1 -1
  31. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
  32. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
  33. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
  34. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/globals/global.js +1 -1
  35. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
  36. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
  37. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
  38. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
  39. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
  40. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/makeUniqueId.js +1 -1
  41. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
  42. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/memoize.js +2 -2
  43. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
  44. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/stringifyForDisplay.js +1 -1
  45. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
  46. package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/invariant/index.js +1 -1
  47. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
  48. package/dist/node_modules/@apollo/client/version.js +6 -0
  49. package/dist/node_modules/@apollo/client/version.js.map +1 -0
  50. package/dist/node_modules/{.bun/@wry_caches@1.0.1/node_modules/@wry → @wry}/caches/lib/weak.js +1 -1
  51. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
  52. package/dist/node_modules/{.bun/@wry_trie@0.5.0/node_modules/@wry → @wry}/trie/lib/index.js +1 -1
  53. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
  54. package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/client.js +1 -1
  55. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
  56. package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/common-CGW11Fyb.js +1 -1
  57. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
  58. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/NotificationFactories.js +1 -1
  59. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
  60. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Observable.js +1 -1
  61. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
  62. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscriber.js +2 -2
  63. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
  64. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscription.js +2 -2
  65. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
  66. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/config.js +1 -1
  67. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
  68. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/observable/empty.js +1 -1
  69. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
  70. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/scheduler/timeoutProvider.js +2 -2
  71. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
  72. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/symbol/observable.js +1 -1
  73. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
  74. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/UnsubscriptionError.js +1 -1
  75. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
  76. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
  77. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
  78. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/createErrorClass.js +1 -1
  79. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
  80. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/errorContext.js +1 -1
  81. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
  82. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
  83. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
  84. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
  85. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
  86. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
  87. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
  88. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/pipe.js +1 -1
  89. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
  90. package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/reportUnhandledError.js +1 -1
  91. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
  92. package/dist/node_modules/{.bun/tslib@2.8.1 → rxjs}/node_modules/tslib/tslib.es6.js +1 -1
  93. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
  94. package/dist/pages/AdminDashboardPage.js +90 -89
  95. package/dist/pages/AdminDashboardPage.js.map +1 -1
  96. package/dist/pages/AdminReviewModerationPage.js +58 -56
  97. package/dist/pages/AdminReviewModerationPage.js.map +1 -1
  98. package/dist/pages/AdminStoresPage.js +391 -372
  99. package/dist/pages/AdminStoresPage.js.map +1 -1
  100. package/dist/pages/AdminSubmissionsQueuePage.js +134 -148
  101. package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
  102. package/dist/pages/AppDetailPage.js +123 -120
  103. package/dist/pages/AppDetailPage.js.map +1 -1
  104. package/dist/pages/AppSettingsPage.js +70 -297
  105. package/dist/pages/AppSettingsPage.js.map +1 -1
  106. package/dist/pages/CartPage.js +65 -76
  107. package/dist/pages/CartPage.js.map +1 -1
  108. package/dist/pages/InstalledAppsPage.js +71 -100
  109. package/dist/pages/InstalledAppsPage.js.map +1 -1
  110. package/dist/pages/MarketplaceHomePage.js +368 -378
  111. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  112. package/dist/pages/MyLicensesPage.js +67 -75
  113. package/dist/pages/MyLicensesPage.js.map +1 -1
  114. package/dist/pages/OrderConfirmationPage.js +38 -37
  115. package/dist/pages/OrderConfirmationPage.js.map +1 -1
  116. package/dist/pages/OrdersPage.js +53 -64
  117. package/dist/pages/OrdersPage.js.map +1 -1
  118. package/dist/pages/ProductDetailPage.js +101 -98
  119. package/dist/pages/ProductDetailPage.js.map +1 -1
  120. package/dist/pages/ProductReviewsPage.js +2 -2
  121. package/dist/pages/ProductReviewsPage.js.map +1 -1
  122. package/dist/pages/PublisherDashboardPage.js +93 -92
  123. package/dist/pages/PublisherDashboardPage.js.map +1 -1
  124. package/dist/pages/PublisherRevenuePage.js +61 -60
  125. package/dist/pages/PublisherRevenuePage.js.map +1 -1
  126. package/dist/pages/PublisherSubmissionsPage.js +97 -96
  127. package/dist/pages/PublisherSubmissionsPage.js.map +1 -1
  128. package/dist/pages/PublisherSubmitPage.js +189 -184
  129. package/dist/pages/PublisherSubmitPage.js.map +1 -1
  130. package/dist/providers/StoreProvider.js +3 -3
  131. package/package.json +2 -2
  132. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
  133. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/utils.js.map +0 -1
  134. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
  135. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
  136. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
  137. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
  138. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
  139. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
  140. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
  141. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
  142. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -9
  143. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
  144. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
  145. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -8
  146. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
  147. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
  148. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -10
  149. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
  150. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -8
  151. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
  152. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
  153. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
  154. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
  155. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
  156. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js +0 -6
  157. package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js.map +0 -1
  158. package/dist/node_modules/.bun/@wry_caches@1.0.1/node_modules/@wry/caches/lib/weak.js.map +0 -1
  159. package/dist/node_modules/.bun/@wry_trie@0.5.0/node_modules/@wry/trie/lib/index.js.map +0 -1
  160. package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/client.js.map +0 -1
  161. package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
  162. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
  163. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
  164. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
  165. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
  166. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
  167. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
  168. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
  169. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
  170. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
  171. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
  172. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
  173. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
  174. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
  175. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
  176. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
  177. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
  178. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
  179. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
  180. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
  181. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
  182. package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
  183. package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +0 -1
  184. /package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/caching/sizes.js +0 -0
@@ -5,13 +5,14 @@ import { PricingModel as i, ProductNature as a, StoreSortBy as o } from "../gene
5
5
  import { CartDrawer as ee } from "../components/cart/CartDrawer.js";
6
6
  import { useCallback as te, useEffect as ne, useId as re, useMemo as s, useRef as ie, useState as c } from "react";
7
7
  import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import { AlertCircle as oe, Bot as l, Box as u, Brain as d, ChevronDown as f, ChevronRight as se, Clock as ce, Database as le, Download as ue, FileCode2 as p, Filter as de, Gift as fe, GitBranch as m, LayoutDashboard as h, Loader2 as pe, Puzzle as g, Search as me, ShoppingCart as he, SlidersHorizontal as ge, Sparkles as _, Star as v, TrendingUp as _e, X as y } from "lucide-react";
9
- import { Fragment as ve, jsx as b, jsxs as x } from "react/jsx-runtime";
10
- import { useNavigate as ye } from "react-router-dom";
11
- import { useEventBus as be } from "@burdenoff/fe-libs/shared/events";
12
- import { useDebounce as xe } from "@burdenoff/fe-libs/shared/hooks";
8
+ import { AlertCircle as oe, Bot as l, Box as u, Brain as d, ChevronDown as f, ChevronRight as se, Clock as ce, Database as le, Download as ue, FileCode2 as de, Filter as fe, Gift as pe, GitBranch as p, LayoutDashboard as m, Loader2 as me, Puzzle as h, Search as he, ShoppingCart as ge, SlidersHorizontal as _e, Sparkles as g, Star as _, TrendingUp as ve, X as v } from "lucide-react";
9
+ import { Fragment as ye, jsx as y, jsxs as b } from "react/jsx-runtime";
10
+ import { useNavigate as be } from "react-router-dom";
11
+ import { AuroraBackground as xe, GlassCard as Se, GradientText as Ce, IllustratedEmptyState as we } from "@burdenoff/fe-libs/ui";
12
+ import { useEventBus as Te } from "@burdenoff/fe-libs/shared/events";
13
+ import { useDebounce as Ee } from "@burdenoff/fe-libs/shared/hooks";
13
14
  //#region src/pages/MarketplaceHomePage.tsx
14
- var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K` : e.toString(), S = (e) => e.pricingModel === "FREE" || e.price === 0 ? "Free" : `$${e.price}`, C = (e) => ({
15
+ var x = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K` : e.toString(), S = (e) => e.pricingModel === "FREE" || e.price === 0 ? "Free" : `$${e.price}`, C = (e) => ({
15
16
  BOTAPP: "var(--color-accent-blue)",
16
17
  AGENT: "var(--color-accent-purple)",
17
18
  CONSOLE: "var(--color-accent-teal)",
@@ -32,108 +33,108 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
32
33
  })[e] || "var(--color-text-muted)", w = (e) => `color-mix(in srgb, ${C(e)}, transparent 85%)`, T = {
33
34
  BOTAPP: l,
34
35
  AGENT: d,
35
- CONSOLE: h,
36
- WORKFLOW: m,
36
+ CONSOLE: m,
37
+ WORKFLOW: p,
37
38
  NODE: u,
38
- WIDGET: g,
39
- VIBEMODULE: g,
40
- DASHBOARD: h,
41
- PARSER: p,
39
+ WIDGET: h,
40
+ VIBEMODULE: h,
41
+ DASHBOARD: m,
42
+ PARSER: de,
42
43
  DATASINK: le,
43
44
  APP: u,
44
- TEMPLATE: h,
45
- INTEGRATION: m,
46
- EXTENSION: g,
47
- THEME: g,
48
- PLUGIN: g,
45
+ TEMPLATE: m,
46
+ INTEGRATION: p,
47
+ EXTENSION: h,
48
+ THEME: h,
49
+ PLUGIN: h,
49
50
  COMPONENT: u
50
- }, E = ({ type: e, className: t, style: n }) => /* @__PURE__ */ b(T[e] || u, {
51
+ }, E = ({ type: e, className: t, style: n }) => /* @__PURE__ */ y(T[e] || u, {
51
52
  className: t,
52
53
  style: n
53
54
  }), D = ({ product: e, onClick: t, variant: n = "default" }) => {
54
55
  let r = C(e.type);
55
- return n === "featured" ? /* @__PURE__ */ x("button", {
56
+ return n === "featured" ? /* @__PURE__ */ b("button", {
56
57
  type: "button",
57
58
  onClick: t,
58
- className: "group relative flex size-full cursor-pointer flex-col overflow-hidden rounded-2xl border border-border-default bg-gradient-to-br from-bg-surface to-bg-sunken p-6 text-left transition-all hover:border-action-primary-border hover:shadow-lg",
59
+ className: "group relative flex size-full cursor-pointer flex-col overflow-hidden rounded-2xl border border-border-seam bg-gradient-to-br from-bg-surface to-bg-sunken p-6 text-left shadow-elevation-1 transition-[box-shadow,border-color,color] hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
59
60
  children: [
60
- e.featured && /* @__PURE__ */ x("div", {
61
+ e.featured && /* @__PURE__ */ b("div", {
61
62
  className: "absolute right-4 top-4 flex items-center gap-1 rounded-full bg-status-warning-bg-subtle px-2 py-1 text-xs font-medium text-status-warning-text",
62
- children: [/* @__PURE__ */ b(_, { className: "size-3" }), "Featured"]
63
+ children: [/* @__PURE__ */ y(g, { className: "size-3" }), "Featured"]
63
64
  }),
64
- /* @__PURE__ */ x("div", {
65
+ /* @__PURE__ */ b("div", {
65
66
  className: "flex items-start gap-4",
66
- children: [/* @__PURE__ */ b("div", {
67
+ children: [/* @__PURE__ */ y("div", {
67
68
  className: "flex size-16 flex-shrink-0 items-center justify-center rounded-2xl",
68
69
  style: { backgroundColor: w(e.type) },
69
- children: e.icon ? /* @__PURE__ */ b("img", {
70
+ children: e.icon ? /* @__PURE__ */ y("img", {
70
71
  src: e.icon,
71
72
  alt: e.name,
72
73
  className: "size-10 rounded-lg object-cover"
73
- }) : /* @__PURE__ */ b(E, {
74
+ }) : /* @__PURE__ */ y(E, {
74
75
  type: e.type,
75
76
  className: "size-10",
76
77
  style: { color: r }
77
78
  })
78
- }), /* @__PURE__ */ x("div", {
79
+ }), /* @__PURE__ */ b("div", {
79
80
  className: "flex-1 overflow-hidden",
80
- children: [/* @__PURE__ */ b("h3", {
81
+ children: [/* @__PURE__ */ y("h3", {
81
82
  className: "truncate text-lg font-semibold text-text-primary group-hover:text-text-link",
82
83
  children: e.name
83
- }), /* @__PURE__ */ x("p", {
84
+ }), /* @__PURE__ */ b("p", {
84
85
  className: "flex items-center gap-2 text-sm text-text-muted",
85
- children: [/* @__PURE__ */ b(E, {
86
+ children: [/* @__PURE__ */ y(E, {
86
87
  type: e.type,
87
88
  className: "size-3.5"
88
89
  }), e.category || e.type]
89
90
  })]
90
91
  })]
91
92
  }),
92
- /* @__PURE__ */ b("p", {
93
+ /* @__PURE__ */ y("p", {
93
94
  className: "mt-4 line-clamp-2 flex-1 text-sm text-text-muted",
94
95
  children: e.description || "No description available"
95
96
  }),
96
- /* @__PURE__ */ x("div", {
97
- className: "mt-4 flex items-center justify-between border-t border-border-default pt-4",
98
- children: [/* @__PURE__ */ x("div", {
97
+ /* @__PURE__ */ b("div", {
98
+ className: "mt-4 flex items-center justify-between border-t border-border-seam pt-4",
99
+ children: [/* @__PURE__ */ b("div", {
99
100
  className: "flex items-center gap-3",
100
- children: [/* @__PURE__ */ x("span", {
101
+ children: [/* @__PURE__ */ b("span", {
101
102
  className: "flex items-center gap-1 text-sm text-text-muted",
102
- children: [/* @__PURE__ */ b(v, { className: "size-4 fill-current text-status-warning-text" }), (e.rating ?? 0).toFixed(1)]
103
- }), /* @__PURE__ */ x("span", {
103
+ children: [/* @__PURE__ */ y(_, { className: "size-4 fill-current text-status-warning-text" }), (e.rating ?? 0).toFixed(1)]
104
+ }), /* @__PURE__ */ b("span", {
104
105
  className: "flex items-center gap-1 text-sm text-text-muted",
105
- children: [/* @__PURE__ */ b(ue, { className: "size-4" }), Se(e.downloads)]
106
+ children: [/* @__PURE__ */ y(ue, { className: "size-4" }), x(e.downloads)]
106
107
  })]
107
- }), /* @__PURE__ */ b("span", {
108
+ }), /* @__PURE__ */ y("span", {
108
109
  className: "rounded-full bg-action-primary-bg/10 px-3 py-1 text-sm font-medium text-text-link",
109
110
  children: S(e)
110
111
  })]
111
112
  })
112
113
  ]
113
- }) : n === "compact" ? /* @__PURE__ */ x("button", {
114
+ }) : n === "compact" ? /* @__PURE__ */ b("button", {
114
115
  type: "button",
115
116
  onClick: t,
116
- className: "group flex cursor-pointer items-center gap-3 rounded-xl border border-transparent p-3 text-left transition-all hover:border-border-default hover:bg-bg-surface",
117
+ className: "group flex cursor-pointer items-center gap-3 rounded-xl border border-transparent p-3 text-left transition-[background-color,border-color] hover:border-border-seam hover:bg-bg-surface",
117
118
  children: [
118
- /* @__PURE__ */ b("div", {
119
+ /* @__PURE__ */ y("div", {
119
120
  className: "flex size-12 flex-shrink-0 items-center justify-center rounded-xl",
120
121
  style: { backgroundColor: w(e.type) },
121
- children: e.icon ? /* @__PURE__ */ b("img", {
122
+ children: e.icon ? /* @__PURE__ */ y("img", {
122
123
  src: e.icon,
123
124
  alt: e.name,
124
125
  className: "size-8 rounded-lg object-cover"
125
- }) : /* @__PURE__ */ b(E, {
126
+ }) : /* @__PURE__ */ y(E, {
126
127
  type: e.type,
127
128
  className: "size-8",
128
129
  style: { color: r }
129
130
  })
130
131
  }),
131
- /* @__PURE__ */ x("div", {
132
+ /* @__PURE__ */ b("div", {
132
133
  className: "flex-1 overflow-hidden",
133
- children: [/* @__PURE__ */ b("h4", {
134
+ children: [/* @__PURE__ */ y("h4", {
134
135
  className: "truncate font-medium text-text-primary group-hover:text-text-link",
135
136
  children: e.name
136
- }), /* @__PURE__ */ x("p", {
137
+ }), /* @__PURE__ */ b("p", {
137
138
  className: "truncate text-xs text-text-muted",
138
139
  children: [
139
140
  e.category || e.type,
@@ -143,154 +144,156 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
143
144
  ]
144
145
  })]
145
146
  }),
146
- /* @__PURE__ */ b("span", {
147
+ /* @__PURE__ */ y("span", {
147
148
  className: "text-xs font-medium text-text-muted",
148
149
  children: S(e)
149
150
  })
150
151
  ]
151
- }) : /* @__PURE__ */ x("button", {
152
+ }) : /* @__PURE__ */ b("button", {
152
153
  type: "button",
153
154
  onClick: t,
154
- className: "group flex cursor-pointer flex-col overflow-hidden rounded-xl border border-border-default bg-bg-surface p-4 text-left transition-all hover:border-action-primary-border hover:shadow-md",
155
+ className: "group flex cursor-pointer flex-col overflow-hidden rounded-xl border border-border-seam bg-bg-surface p-4 text-left shadow-elevation-1 transition-[box-shadow,border-color,color] hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
155
156
  children: [
156
- /* @__PURE__ */ x("div", {
157
+ /* @__PURE__ */ b("div", {
157
158
  className: "flex items-start gap-3",
158
- children: [/* @__PURE__ */ b("div", {
159
+ children: [/* @__PURE__ */ y("div", {
159
160
  className: "flex size-14 flex-shrink-0 items-center justify-center rounded-xl",
160
161
  style: { backgroundColor: w(e.type) },
161
- children: e.icon ? /* @__PURE__ */ b("img", {
162
+ children: e.icon ? /* @__PURE__ */ y("img", {
162
163
  src: e.icon,
163
164
  alt: e.name,
164
165
  className: "size-9 rounded-lg object-cover"
165
- }) : /* @__PURE__ */ b(E, {
166
+ }) : /* @__PURE__ */ y(E, {
166
167
  type: e.type,
167
168
  className: "size-9",
168
169
  style: { color: r }
169
170
  })
170
- }), /* @__PURE__ */ x("div", {
171
+ }), /* @__PURE__ */ b("div", {
171
172
  className: "flex-1 overflow-hidden",
172
- children: [/* @__PURE__ */ b("h4", {
173
+ children: [/* @__PURE__ */ y("h4", {
173
174
  className: "truncate font-semibold text-text-primary group-hover:text-text-link",
174
175
  children: e.name
175
- }), /* @__PURE__ */ x("p", {
176
+ }), /* @__PURE__ */ b("p", {
176
177
  className: "flex items-center gap-1.5 text-xs text-text-muted",
177
- children: [/* @__PURE__ */ b(E, {
178
+ children: [/* @__PURE__ */ y(E, {
178
179
  type: e.type,
179
180
  className: "size-3"
180
181
  }), e.category || e.type]
181
182
  })]
182
183
  })]
183
184
  }),
184
- /* @__PURE__ */ b("p", {
185
+ /* @__PURE__ */ y("p", {
185
186
  className: "mt-3 line-clamp-2 text-sm text-text-muted",
186
187
  children: e.description || "No description available"
187
188
  }),
188
- /* @__PURE__ */ x("div", {
189
+ /* @__PURE__ */ b("div", {
189
190
  className: "mt-3 flex items-center justify-between",
190
- children: [/* @__PURE__ */ x("div", {
191
+ children: [/* @__PURE__ */ b("div", {
191
192
  className: "flex items-center gap-2",
192
193
  children: [
193
- /* @__PURE__ */ x("span", {
194
+ /* @__PURE__ */ b("span", {
194
195
  className: "flex items-center gap-0.5 text-xs text-text-muted",
195
- children: [/* @__PURE__ */ b(v, { className: "size-3.5 fill-current text-status-warning-text" }), (e.rating ?? 0).toFixed(1)]
196
+ children: [/* @__PURE__ */ y(_, { className: "size-3.5 fill-current text-status-warning-text" }), (e.rating ?? 0).toFixed(1)]
196
197
  }),
197
- /* @__PURE__ */ b("span", {
198
+ /* @__PURE__ */ y("span", {
198
199
  className: "text-xs text-text-muted",
199
200
  children: "·"
200
201
  }),
201
- /* @__PURE__ */ x("span", {
202
+ /* @__PURE__ */ b("span", {
202
203
  className: "text-xs text-text-muted",
203
- children: [Se(e.downloads), " downloads"]
204
+ children: [x(e.downloads), " downloads"]
204
205
  })
205
206
  ]
206
- }), /* @__PURE__ */ b("span", {
207
+ }), /* @__PURE__ */ y("span", {
207
208
  className: "text-xs font-semibold text-text-link",
208
209
  children: S(e)
209
210
  })]
210
211
  })
211
212
  ]
212
213
  });
213
- }, O = ({ icon: e, title: t, subtitle: n, onViewAll: r }) => /* @__PURE__ */ x("div", {
214
+ }, O = ({ icon: e, title: t, subtitle: n, onViewAll: r }) => /* @__PURE__ */ b("div", {
214
215
  className: "mb-4 flex items-center justify-between",
215
- children: [/* @__PURE__ */ x("div", {
216
+ children: [/* @__PURE__ */ b("div", {
216
217
  className: "flex items-center gap-3",
217
- children: [/* @__PURE__ */ b("div", {
218
+ children: [/* @__PURE__ */ y("div", {
218
219
  className: "flex size-10 items-center justify-center rounded-xl bg-action-primary-bg/10",
219
- children: /* @__PURE__ */ b(e, { className: "size-5 text-text-link" })
220
- }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
220
+ children: /* @__PURE__ */ y(e, { className: "size-5 text-text-link" })
221
+ }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h2", {
221
222
  className: "text-lg font-semibold text-text-primary",
222
223
  children: t
223
- }), n && /* @__PURE__ */ b("p", {
224
+ }), n && /* @__PURE__ */ y("p", {
224
225
  className: "text-sm text-text-muted",
225
226
  children: n
226
227
  })] })]
227
- }), r && /* @__PURE__ */ x("button", {
228
+ }), r && /* @__PURE__ */ b("button", {
228
229
  type: "button",
229
230
  onClick: r,
230
231
  className: "cursor-pointer flex items-center gap-1 text-sm font-medium text-text-link hover:underline",
231
- children: ["View all", /* @__PURE__ */ b(se, { className: "size-4" })]
232
+ children: ["View all", /* @__PURE__ */ y(se, { className: "size-4" })]
232
233
  })]
233
- }), Ce = ({ typeId: e, name: t, count: n, active: r, onClick: i }) => /* @__PURE__ */ x("button", {
234
+ }), De = ({ typeId: e, name: t, count: n, active: r, onClick: i }) => /* @__PURE__ */ b("button", {
234
235
  type: "button",
235
236
  onClick: i,
236
237
  className: `flex cursor-pointer items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition-all ${r ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"}`,
237
238
  children: [
238
- /* @__PURE__ */ b(E, {
239
+ /* @__PURE__ */ y(E, {
239
240
  type: e,
240
241
  className: "size-4"
241
242
  }),
242
243
  t,
243
- /* @__PURE__ */ b("span", {
244
+ /* @__PURE__ */ y("span", {
244
245
  className: `rounded-full px-1.5 py-0.5 text-xs ${r ? "bg-bg-surface/20" : "bg-bg-sunken"}`,
245
246
  children: n
246
247
  })
247
248
  ]
248
- }), we = ({ featuredProducts: e, onProductClick: t, dataTour: n }) => {
249
+ }), Oe = ({ featuredProducts: e, onProductClick: t, dataTour: n }) => {
249
250
  let [r, i] = c(0), a = e[r] || e[0];
250
251
  if (!a) return null;
251
252
  let o = C(a.type);
252
- return /* @__PURE__ */ x("div", {
253
+ return /* @__PURE__ */ b(Se, {
254
+ treatment: "glass",
255
+ glow: !0,
253
256
  "data-tour": n,
254
- className: "relative overflow-hidden rounded-2xl bg-gradient-to-r from-bg-surface via-bg-sunken to-bg-surface p-8",
257
+ className: "relative overflow-hidden rounded-2xl p-8",
255
258
  children: [
256
- /* @__PURE__ */ b("div", {
259
+ /* @__PURE__ */ y("div", {
257
260
  className: "absolute inset-0 opacity-10",
258
261
  style: { background: `linear-gradient(135deg, ${o} 0%, transparent 50%)` }
259
262
  }),
260
- /* @__PURE__ */ x("div", {
263
+ /* @__PURE__ */ b("div", {
261
264
  className: "relative z-10 flex items-center gap-8",
262
- children: [/* @__PURE__ */ x("div", {
265
+ children: [/* @__PURE__ */ b("div", {
263
266
  className: "flex-1",
264
267
  children: [
265
- /* @__PURE__ */ x("div", {
268
+ /* @__PURE__ */ b("div", {
266
269
  className: "mb-4 flex items-center gap-2",
267
- children: [/* @__PURE__ */ x("span", {
268
- className: "flex items-center gap-1 rounded-full bg-status-warning-bg-subtle px-3 py-1 text-xs font-semibold text-status-warning-text",
269
- children: [/* @__PURE__ */ b(_, { className: "size-3" }), "Featured App"]
270
- }), /* @__PURE__ */ b("span", {
270
+ children: [/* @__PURE__ */ b("span", {
271
+ className: "flex items-center gap-1 rounded-full bg-status-warning-bg-subtle px-3 py-1 text-xs font-semibold text-status-warning-text motion-safe:animate-vc-glow-pulse",
272
+ children: [/* @__PURE__ */ y(g, { className: "size-3" }), "Featured App"]
273
+ }), /* @__PURE__ */ y("span", {
271
274
  className: "rounded-full bg-action-primary-bg/10 px-3 py-1 text-xs font-medium text-text-link",
272
275
  children: a.category || a.type
273
276
  })]
274
277
  }),
275
- /* @__PURE__ */ b("h1", {
278
+ /* @__PURE__ */ y("h1", {
276
279
  className: "mb-3 text-3xl font-bold text-text-primary",
277
280
  children: a.name
278
281
  }),
279
- /* @__PURE__ */ b("p", {
282
+ /* @__PURE__ */ y("p", {
280
283
  className: "mb-6 max-w-xl text-text-muted",
281
284
  children: a.description || "No description available"
282
285
  }),
283
- /* @__PURE__ */ x("div", {
286
+ /* @__PURE__ */ b("div", {
284
287
  className: "mb-6 flex items-center gap-4",
285
- children: [/* @__PURE__ */ x("span", {
288
+ children: [/* @__PURE__ */ b("span", {
286
289
  className: "flex items-center gap-1 text-sm",
287
290
  children: [
288
- /* @__PURE__ */ b(v, { className: "size-5 fill-current text-status-warning-text" }),
289
- /* @__PURE__ */ b("span", {
291
+ /* @__PURE__ */ y(_, { className: "size-5 fill-current text-status-warning-text" }),
292
+ /* @__PURE__ */ y("span", {
290
293
  className: "font-semibold text-text-primary",
291
294
  children: (a.rating ?? 0).toFixed(1)
292
295
  }),
293
- /* @__PURE__ */ x("span", {
296
+ /* @__PURE__ */ b("span", {
294
297
  className: "text-text-muted",
295
298
  children: [
296
299
  "(",
@@ -299,32 +302,32 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
299
302
  ]
300
303
  })
301
304
  ]
302
- }), /* @__PURE__ */ x("span", {
305
+ }), /* @__PURE__ */ b("span", {
303
306
  className: "flex items-center gap-1 text-sm text-text-muted",
304
307
  children: [
305
- /* @__PURE__ */ b(ue, { className: "size-4" }),
308
+ /* @__PURE__ */ y(ue, { className: "size-4" }),
306
309
  a.downloads.toLocaleString(),
307
310
  " downloads"
308
311
  ]
309
312
  })]
310
313
  }),
311
- /* @__PURE__ */ b("button", {
314
+ /* @__PURE__ */ y("button", {
312
315
  type: "button",
313
316
  onClick: () => t(a),
314
317
  className: "cursor-pointer rounded-lg bg-action-primary-bg px-6 py-3 font-semibold text-action-primary-text transition-opacity hover:opacity-90",
315
318
  children: "View Details"
316
319
  })
317
320
  ]
318
- }), /* @__PURE__ */ b("div", {
321
+ }), /* @__PURE__ */ y("div", {
319
322
  className: "hidden flex-shrink-0 lg:block",
320
- children: /* @__PURE__ */ b("div", {
323
+ children: /* @__PURE__ */ y("div", {
321
324
  className: "flex size-48 items-center justify-center rounded-3xl shadow-lg",
322
325
  style: { backgroundColor: w(a.type) },
323
- children: a.icon ? /* @__PURE__ */ b("img", {
326
+ children: a.icon ? /* @__PURE__ */ y("img", {
324
327
  src: a.icon,
325
328
  alt: a.name,
326
329
  className: "size-32 rounded-2xl object-cover"
327
- }) : /* @__PURE__ */ b(E, {
330
+ }) : /* @__PURE__ */ y(E, {
328
331
  type: a.type,
329
332
  className: "size-32",
330
333
  style: { color: o }
@@ -332,9 +335,9 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
332
335
  })
333
336
  })]
334
337
  }),
335
- e.length > 1 && /* @__PURE__ */ b("div", {
338
+ e.length > 1 && /* @__PURE__ */ y("div", {
336
339
  className: "relative z-10 mt-6 flex gap-2",
337
- children: e.map((e, t) => /* @__PURE__ */ b("button", {
340
+ children: e.map((e, t) => /* @__PURE__ */ y("button", {
338
341
  type: "button",
339
342
  onClick: () => i(t),
340
343
  className: `h-2 w-8 rounded-full transition-all ${t === r ? "bg-action-primary-bg" : "bg-border-default hover:bg-action-primary-border"}`,
@@ -343,66 +346,66 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
343
346
  })
344
347
  ]
345
348
  });
346
- }, k = ({ variant: e = "default" }) => e === "featured" ? /* @__PURE__ */ x("div", {
347
- className: "h-full animate-pulse rounded-2xl border border-border-default bg-bg-surface p-6",
348
- children: [/* @__PURE__ */ x("div", {
349
+ }, k = ({ variant: e = "default" }) => e === "featured" ? /* @__PURE__ */ b("div", {
350
+ className: "h-full animate-pulse rounded-2xl border border-border-seam bg-bg-surface p-6",
351
+ children: [/* @__PURE__ */ b("div", {
349
352
  className: "flex items-start gap-4",
350
- children: [/* @__PURE__ */ b("div", { className: "size-16 rounded-2xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
353
+ children: [/* @__PURE__ */ y("div", { className: "size-16 rounded-2xl bg-bg-sunken" }), /* @__PURE__ */ b("div", {
351
354
  className: "flex-1 space-y-2",
352
- children: [/* @__PURE__ */ b("div", { className: "h-5 w-3/4 rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-4 w-1/2 rounded bg-bg-sunken" })]
355
+ children: [/* @__PURE__ */ y("div", { className: "h-5 w-3/4 rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-4 w-1/2 rounded bg-bg-sunken" })]
353
356
  })]
354
- }), /* @__PURE__ */ x("div", {
357
+ }), /* @__PURE__ */ b("div", {
355
358
  className: "mt-4 space-y-2",
356
- children: [/* @__PURE__ */ b("div", { className: "h-4 w-full rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-4 w-2/3 rounded bg-bg-sunken" })]
359
+ children: [/* @__PURE__ */ y("div", { className: "h-4 w-full rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-4 w-2/3 rounded bg-bg-sunken" })]
357
360
  })]
358
- }) : e === "compact" ? /* @__PURE__ */ x("div", {
361
+ }) : e === "compact" ? /* @__PURE__ */ b("div", {
359
362
  className: "flex animate-pulse items-center gap-3 p-3",
360
- children: [/* @__PURE__ */ b("div", { className: "size-12 rounded-xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
363
+ children: [/* @__PURE__ */ y("div", { className: "size-12 rounded-xl bg-bg-sunken" }), /* @__PURE__ */ b("div", {
361
364
  className: "flex-1 space-y-2",
362
- children: [/* @__PURE__ */ b("div", { className: "h-4 w-3/4 rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-3 w-1/2 rounded bg-bg-sunken" })]
365
+ children: [/* @__PURE__ */ y("div", { className: "h-4 w-3/4 rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-3 w-1/2 rounded bg-bg-sunken" })]
363
366
  })]
364
- }) : /* @__PURE__ */ x("div", {
365
- className: "animate-pulse rounded-xl border border-border-default bg-bg-surface p-4",
366
- children: [/* @__PURE__ */ x("div", {
367
+ }) : /* @__PURE__ */ b("div", {
368
+ className: "animate-pulse rounded-xl border border-border-seam bg-bg-surface p-4",
369
+ children: [/* @__PURE__ */ b("div", {
367
370
  className: "flex items-start gap-3",
368
- children: [/* @__PURE__ */ b("div", { className: "size-14 rounded-xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
371
+ children: [/* @__PURE__ */ y("div", { className: "size-14 rounded-xl bg-bg-sunken" }), /* @__PURE__ */ b("div", {
369
372
  className: "flex-1 space-y-2",
370
- children: [/* @__PURE__ */ b("div", { className: "h-4 w-3/4 rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-3 w-1/2 rounded bg-bg-sunken" })]
373
+ children: [/* @__PURE__ */ y("div", { className: "h-4 w-3/4 rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-3 w-1/2 rounded bg-bg-sunken" })]
371
374
  })]
372
- }), /* @__PURE__ */ x("div", {
375
+ }), /* @__PURE__ */ b("div", {
373
376
  className: "mt-3 space-y-2",
374
- children: [/* @__PURE__ */ b("div", { className: "h-3 w-full rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-3 w-2/3 rounded bg-bg-sunken" })]
377
+ children: [/* @__PURE__ */ y("div", { className: "h-3 w-full rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-3 w-2/3 rounded bg-bg-sunken" })]
375
378
  })]
376
- }), A = () => /* @__PURE__ */ x("div", {
379
+ }), A = () => /* @__PURE__ */ b("div", {
377
380
  className: "animate-pulse rounded-2xl bg-gradient-to-r from-bg-surface via-bg-sunken to-bg-surface p-8",
378
- children: [/* @__PURE__ */ x("div", {
381
+ children: [/* @__PURE__ */ b("div", {
379
382
  className: "flex items-center gap-8",
380
- children: [/* @__PURE__ */ x("div", {
383
+ children: [/* @__PURE__ */ b("div", {
381
384
  className: "flex-1 space-y-4",
382
385
  children: [
383
- /* @__PURE__ */ x("div", {
386
+ /* @__PURE__ */ b("div", {
384
387
  className: "flex gap-2",
385
- children: [/* @__PURE__ */ b("div", { className: "h-6 w-24 rounded-full bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-6 w-20 rounded-full bg-bg-sunken" })]
388
+ children: [/* @__PURE__ */ y("div", { className: "h-6 w-24 rounded-full bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-6 w-20 rounded-full bg-bg-sunken" })]
386
389
  }),
387
- /* @__PURE__ */ b("div", { className: "h-9 w-3/4 rounded bg-bg-sunken" }),
388
- /* @__PURE__ */ x("div", {
390
+ /* @__PURE__ */ y("div", { className: "h-9 w-3/4 rounded bg-bg-sunken" }),
391
+ /* @__PURE__ */ b("div", {
389
392
  className: "space-y-2",
390
- children: [/* @__PURE__ */ b("div", { className: "h-4 w-full rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-4 w-5/6 rounded bg-bg-sunken" })]
393
+ children: [/* @__PURE__ */ y("div", { className: "h-4 w-full rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-4 w-5/6 rounded bg-bg-sunken" })]
391
394
  }),
392
- /* @__PURE__ */ x("div", {
395
+ /* @__PURE__ */ b("div", {
393
396
  className: "flex gap-4",
394
- children: [/* @__PURE__ */ b("div", { className: "h-5 w-24 rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-5 w-32 rounded bg-bg-sunken" })]
397
+ children: [/* @__PURE__ */ y("div", { className: "h-5 w-24 rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-5 w-32 rounded bg-bg-sunken" })]
395
398
  }),
396
- /* @__PURE__ */ b("div", { className: "h-12 w-36 rounded-lg bg-bg-sunken" })
399
+ /* @__PURE__ */ y("div", { className: "h-12 w-36 rounded-lg bg-bg-sunken" })
397
400
  ]
398
- }), /* @__PURE__ */ b("div", { className: "hidden size-48 rounded-3xl bg-bg-sunken lg:block" })]
399
- }), /* @__PURE__ */ b("div", {
401
+ }), /* @__PURE__ */ y("div", { className: "hidden size-48 rounded-3xl bg-bg-sunken lg:block" })]
402
+ }), /* @__PURE__ */ y("div", {
400
403
  className: "mt-6 flex gap-2",
401
404
  children: [...[
402
405
  ,
403
406
  ,
404
407
  ,
405
- ]].map((e, t) => /* @__PURE__ */ b("div", { className: "h-2 w-8 rounded-full bg-bg-sunken" }, t))
408
+ ]].map((e, t) => /* @__PURE__ */ y("div", { className: "h-2 w-8 rounded-full bg-bg-sunken" }, t))
406
409
  })]
407
410
  }), j = [
408
411
  100,
@@ -413,30 +416,30 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
413
416
  95,
414
417
  115,
415
418
  105
416
- ], M = () => /* @__PURE__ */ x("div", {
419
+ ], M = () => /* @__PURE__ */ b("div", {
417
420
  className: "space-y-4",
418
- children: [/* @__PURE__ */ b("div", { className: "h-6 w-32 animate-pulse rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", {
421
+ children: [/* @__PURE__ */ y("div", { className: "h-6 w-32 animate-pulse rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", {
419
422
  className: "flex flex-wrap gap-2",
420
- children: j.map((e, t) => /* @__PURE__ */ b("div", {
423
+ children: j.map((e, t) => /* @__PURE__ */ y("div", {
421
424
  className: "h-9 animate-pulse rounded-full bg-bg-sunken",
422
425
  style: { width: `${e}px` }
423
426
  }, t))
424
427
  })]
425
- }), N = () => /* @__PURE__ */ x("div", {
428
+ }), N = () => /* @__PURE__ */ b("div", {
426
429
  className: "mb-4 flex items-center justify-between",
427
- children: [/* @__PURE__ */ x("div", {
430
+ children: [/* @__PURE__ */ b("div", {
428
431
  className: "flex items-center gap-3",
429
- children: [/* @__PURE__ */ b("div", { className: "size-10 animate-pulse rounded-xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
432
+ children: [/* @__PURE__ */ y("div", { className: "size-10 animate-pulse rounded-xl bg-bg-sunken" }), /* @__PURE__ */ b("div", {
430
433
  className: "space-y-1",
431
- children: [/* @__PURE__ */ b("div", { className: "h-5 w-40 animate-pulse rounded bg-bg-sunken" }), /* @__PURE__ */ b("div", { className: "h-4 w-32 animate-pulse rounded bg-bg-sunken" })]
434
+ children: [/* @__PURE__ */ y("div", { className: "h-5 w-40 animate-pulse rounded bg-bg-sunken" }), /* @__PURE__ */ y("div", { className: "h-4 w-32 animate-pulse rounded bg-bg-sunken" })]
432
435
  })]
433
- }), /* @__PURE__ */ b("div", { className: "h-4 w-16 animate-pulse rounded bg-bg-sunken" })]
434
- }), Te = () => /* @__PURE__ */ x("div", {
436
+ }), /* @__PURE__ */ y("div", { className: "h-4 w-16 animate-pulse rounded bg-bg-sunken" })]
437
+ }), ke = () => /* @__PURE__ */ b("div", {
435
438
  className: "mx-auto max-w-7xl space-y-8 p-6",
436
439
  children: [
437
- /* @__PURE__ */ b(A, {}),
438
- /* @__PURE__ */ b(M, {}),
439
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b(N, {}), /* @__PURE__ */ b("div", {
440
+ /* @__PURE__ */ y(A, {}),
441
+ /* @__PURE__ */ y(M, {}),
442
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y(N, {}), /* @__PURE__ */ y("div", {
440
443
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
441
444
  children: [...[
442
445
  ,
@@ -445,9 +448,9 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
445
448
  ,
446
449
  ,
447
450
  ,
448
- ]].map((e, t) => /* @__PURE__ */ b(k, {}, t))
451
+ ]].map((e, t) => /* @__PURE__ */ y(k, {}, t))
449
452
  })] }),
450
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b(N, {}), /* @__PURE__ */ b("div", {
453
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y(N, {}), /* @__PURE__ */ y("div", {
451
454
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
452
455
  children: [...[
453
456
  ,
@@ -456,9 +459,9 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
456
459
  ,
457
460
  ,
458
461
  ,
459
- ]].map((e, t) => /* @__PURE__ */ b(k, {}, t))
462
+ ]].map((e, t) => /* @__PURE__ */ y(k, {}, t))
460
463
  })] }),
461
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b(N, {}), /* @__PURE__ */ b("div", {
464
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y(N, {}), /* @__PURE__ */ y("div", {
462
465
  className: "grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6",
463
466
  children: [...[
464
467
  ,
@@ -467,39 +470,39 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
467
470
  ,
468
471
  ,
469
472
  ,
470
- ]].map((e, t) => /* @__PURE__ */ b(k, { variant: "compact" }, t))
473
+ ]].map((e, t) => /* @__PURE__ */ y(k, { variant: "compact" }, t))
471
474
  })] })
472
475
  ]
473
476
  }), P = ({ label: e, value: t, options: n, onChange: r }) => {
474
477
  let i = re();
475
- return /* @__PURE__ */ x("label", {
478
+ return /* @__PURE__ */ b("label", {
476
479
  htmlFor: i,
477
480
  className: "relative inline-flex items-center gap-2 rounded-lg border border-border-default bg-bg-surface px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken focus-within:border-action-primary-border focus-within:ring-2 focus-within:ring-action-primary-border/20",
478
481
  children: [
479
- /* @__PURE__ */ b("span", {
482
+ /* @__PURE__ */ y("span", {
480
483
  className: "sr-only",
481
484
  children: e
482
485
  }),
483
- /* @__PURE__ */ x("span", {
486
+ /* @__PURE__ */ b("span", {
484
487
  className: "text-text-muted",
485
488
  children: [e, ":"]
486
489
  }),
487
- /* @__PURE__ */ b("select", {
490
+ /* @__PURE__ */ y("select", {
488
491
  id: i,
489
492
  "aria-label": e,
490
493
  value: t,
491
494
  onChange: (e) => r(e.target.value),
492
- className: "min-w-[8rem] appearance-none bg-transparent pr-6 text-sm font-medium text-text-primary focus:outline-none",
493
- children: n.map((e) => /* @__PURE__ */ b("option", {
495
+ className: "min-w-[8rem] appearance-none bg-transparent pr-6 text-sm font-medium text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
496
+ children: n.map((e) => /* @__PURE__ */ y("option", {
494
497
  value: e.value,
495
498
  children: e.label
496
499
  }, e.value))
497
500
  }),
498
- /* @__PURE__ */ b(f, { className: "pointer-events-none absolute right-3 size-4 text-text-muted" })
501
+ /* @__PURE__ */ y(f, { className: "pointer-events-none absolute right-3 size-4 text-text-muted" })
499
502
  ]
500
503
  });
501
504
  }, F = () => {
502
- let l = ye(), { basePath: d } = e(), { t: f } = ae(), se = re(), le = be(), { cartOpen: ue, closeCart: p, itemCount: m, cartItems: h, subtotal: g, tax: Se, total: S, updateQuantity: C, removeProduct: w } = t(), [T, E] = c(""), [k, A] = c("all"), [j, M] = c("all"), [N, F] = c("any"), [I, Ee] = c("all"), [L, De] = c("all"), [R, Oe] = c("all"), [z, ke] = c(!1), [B, Ae] = c("relevance"), [je, Me] = c(!1), V = xe(T, 1500), Ne = [
505
+ let l = be(), { basePath: d } = e(), { t: f } = ae(), se = re(), le = Te(), { cartOpen: ue, closeCart: de, itemCount: p, cartItems: m, subtotal: h, tax: Se, total: x, updateQuantity: S, removeProduct: C } = t(), [w, T] = c(""), [E, k] = c("all"), [A, j] = c("all"), [M, N] = c("any"), [F, I] = c("all"), [L, Ae] = c("all"), [R, je] = c("all"), [z, Me] = c(!1), [B, Ne] = c("relevance"), [Pe, Fe] = c(!1), V = Ee(w, 1500), Ie = [
503
506
  {
504
507
  value: "all",
505
508
  label: "All Prices"
@@ -516,7 +519,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
516
519
  value: "subscription",
517
520
  label: "Subscription"
518
521
  }
519
- ], Pe = [
522
+ ], Le = [
520
523
  {
521
524
  value: "any",
522
525
  label: "Any Rating"
@@ -537,7 +540,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
537
540
  value: "4.5",
538
541
  label: "4.5+ Stars"
539
542
  }
540
- ], Fe = [
543
+ ], Re = [
541
544
  {
542
545
  value: "all",
543
546
  label: "All Types"
@@ -550,7 +553,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
550
553
  value: "physical",
551
554
  label: "Physical"
552
555
  }
553
- ], Ie = [
556
+ ], ze = [
554
557
  {
555
558
  value: "relevance",
556
559
  label: "Relevance"
@@ -579,7 +582,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
579
582
  value: "name-asc",
580
583
  label: "Name A-Z"
581
584
  }
582
- ], Le = (e) => ({
585
+ ], Be = (e) => ({
583
586
  relevance: o.Relevance,
584
587
  rating: o.Rating,
585
588
  downloads: o.Downloads,
@@ -587,49 +590,49 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
587
590
  "price-low": o.PriceLow,
588
591
  "price-high": o.PriceHigh,
589
592
  "name-asc": o.NameAsc
590
- })[e], Re = (e) => {
593
+ })[e], Ve = (e) => {
591
594
  if (e !== "all") return {
592
595
  free: i.Free,
593
596
  paid: i.PaidOnetime,
594
597
  subscription: i.Subscription
595
598
  }[e];
596
- }, H = V.trim() !== "" || j !== "all" || N !== "any" || I !== "all" || L !== "all" || R !== "all" || z || k !== "all" || B !== "relevance", ze = T.trim() !== "" && T !== V, Be = () => {
597
- E(""), M("all"), F("any"), Ee("all"), De("all"), Oe("all"), ke(!1), Ae("relevance"), A("all");
598
- }, U = (j === "all" ? 0 : 1) + (N === "any" ? 0 : 1) + (I === "all" ? 0 : 1) + (L === "all" ? 0 : 1) + (R === "all" ? 0 : 1) + +!!z + (k === "all" ? 0 : 1), Ve = s(() => {
599
+ }, H = V.trim() !== "" || A !== "all" || M !== "any" || F !== "all" || L !== "all" || R !== "all" || z || E !== "all" || B !== "relevance", He = w.trim() !== "" && w !== V, Ue = () => {
600
+ T(""), j("all"), N("any"), I("all"), Ae("all"), je("all"), Me(!1), Ne("relevance"), k("all");
601
+ }, U = (A === "all" ? 0 : 1) + (M === "any" ? 0 : 1) + (F === "all" ? 0 : 1) + (L === "all" ? 0 : 1) + (R === "all" ? 0 : 1) + +!!z + (E === "all" ? 0 : 1), We = s(() => {
599
602
  let e = {
600
- sortBy: Le(B),
603
+ sortBy: Be(B),
601
604
  pagination: { limit: 50 }
602
605
  };
603
606
  if (H) {
604
- e.filter = {}, V.trim() && (e.filter.search = V.trim()), k !== "all" && (e.filter.type = k), L !== "all" && (e.filter.category = L), I !== "all" && (e.filter.nature = I === "digital" ? a.Digital : a.Physical);
605
- let t = Re(j);
606
- t && (e.filter.pricingModel = t), N !== "any" && (e.filter.minRating = parseFloat(N)), z && (e.filter.featured = !0), R !== "all" && (e.filter.license = R);
607
+ e.filter = {}, V.trim() && (e.filter.search = V.trim()), E !== "all" && (e.filter.type = E), L !== "all" && (e.filter.category = L), F !== "all" && (e.filter.nature = F === "digital" ? a.Digital : a.Physical);
608
+ let t = Ve(A);
609
+ t && (e.filter.pricingModel = t), M !== "any" && (e.filter.minRating = parseFloat(M)), z && (e.filter.featured = !0), R !== "all" && (e.filter.license = R);
607
610
  }
608
611
  return e;
609
612
  }, [
610
613
  V,
611
- k,
614
+ E,
612
615
  L,
613
- I,
614
- j,
615
- N,
616
+ F,
617
+ A,
618
+ M,
616
619
  z,
617
620
  R,
618
621
  B,
619
622
  H
620
- ]), { featured: W, mostDownloaded: G, recentlyAdded: K, freeItems: q, loading: He, error: Ue, refetch: We } = r({ skip: H }), { products: Ge, totalCount: J, facets: Y, loading: X, error: Ke, refetch: qe } = n(H ? Ve : {}, { skip: !H }), Je = H ? X : He, Z = H ? Ke : Ue, Ye = H ? qe : We, Xe = H ? Ge : [], Ze = ie(J);
621
- Ze.current = J;
622
- let Qe = ie(le);
623
- Qe.current = le, ne(() => {
624
- !V.trim() || X || Qe.current.emit("store.marketplace.searched", {
623
+ ]), { featured: W, mostDownloaded: G, recentlyAdded: K, freeItems: q, loading: Ge, error: Ke, refetch: qe } = r({ skip: H }), { products: Je, totalCount: J, facets: Y, loading: X, error: Ye, refetch: Xe } = n(H ? We : {}, { skip: !H }), Ze = H ? X : Ge, Z = H ? Ye : Ke, Qe = H ? Xe : qe, $e = H ? Je : [], et = ie(J);
624
+ et.current = J;
625
+ let tt = ie(le);
626
+ tt.current = le, ne(() => {
627
+ !V.trim() || X || tt.current.emit("store.marketplace.searched", {
625
628
  query: V,
626
- resultCount: Ze.current
629
+ resultCount: et.current
627
630
  });
628
631
  }, [V, X]);
629
632
  let Q = te((e) => {
630
633
  l(`${d}/marketplace/product/${e.id}`);
631
- }, [l, d]), $e = () => {
632
- p(), l(`${d}/cart`);
634
+ }, [l, d]), nt = () => {
635
+ de(), l(`${d}/cart`);
633
636
  }, $ = s(() => [...new Map([
634
637
  ...W,
635
638
  ...G,
@@ -640,7 +643,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
640
643
  G,
641
644
  K,
642
645
  q
643
- ]), et = s(() => {
646
+ ]), rt = s(() => {
644
647
  if (Y?.types && Y.types.length > 0) return [{
645
648
  id: "all",
646
649
  name: "All Apps",
@@ -664,7 +667,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
664
667
  Y,
665
668
  $,
666
669
  J
667
- ]), tt = s(() => Y?.categories && Y.categories.length > 0 ? [{
670
+ ]), it = s(() => Y?.categories && Y.categories.length > 0 ? [{
668
671
  value: "all",
669
672
  label: "All Categories"
670
673
  }, ...Y.categories.map((e) => ({
@@ -676,7 +679,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
676
679
  }, ...Array.from(new Set($.flatMap((e) => e.category ? [e.category] : []))).map((e) => ({
677
680
  value: e,
678
681
  label: e
679
- })).sort((e, t) => e.label.localeCompare(t.label))], [Y, $]), nt = s(() => Y?.licenses && Y.licenses.length > 0 ? [{
682
+ })).sort((e, t) => e.label.localeCompare(t.label))], [Y, $]), at = s(() => Y?.licenses && Y.licenses.length > 0 ? [{
680
683
  value: "all",
681
684
  label: "All Licenses"
682
685
  }, ...Y.licenses.map((e) => ({
@@ -686,71 +689,76 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
686
689
  value: "all",
687
690
  label: "All Licenses"
688
691
  }], [Y]);
689
- return /* @__PURE__ */ x("div", {
692
+ return /* @__PURE__ */ b("div", {
690
693
  className: "flex h-full flex-col",
691
694
  children: [
692
- /* @__PURE__ */ x("header", {
693
- className: "border-b border-border-default bg-bg-surface px-6 py-4",
695
+ /* @__PURE__ */ b("header", {
696
+ className: "relative overflow-hidden border-b border-border-seam bg-bg-surface px-6 py-4",
694
697
  children: [
695
- /* @__PURE__ */ x("div", {
698
+ /* @__PURE__ */ y(xe, { intensity: "subtle" }),
699
+ /* @__PURE__ */ b("div", {
696
700
  className: "flex items-center justify-between",
697
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("h1", {
701
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("h1", {
698
702
  className: "text-2xl font-bold text-text-primary",
699
- children: ["App ", f("pages.marketplace.title", { defaultValue: "Marketplace" })]
700
- }), /* @__PURE__ */ b("p", {
703
+ children: [
704
+ "App",
705
+ " ",
706
+ /* @__PURE__ */ y(Ce, { children: f("pages.marketplace.title", { defaultValue: "Marketplace" }) })
707
+ ]
708
+ }), /* @__PURE__ */ y("p", {
701
709
  className: "text-sm text-text-muted",
702
710
  children: f("pages.marketplace.subtitle", { defaultValue: "Discover apps, workflows, and integrations for your workspace" })
703
- })] }), /* @__PURE__ */ x("button", {
711
+ })] }), /* @__PURE__ */ b("button", {
704
712
  type: "button",
705
713
  "data-tour": "store-marketplace-cart-button",
706
714
  onClick: () => l(`${d}/cart`),
707
715
  className: "cursor-pointer relative flex items-center gap-2 rounded-lg border border-border-default bg-bg-surface px-4 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken",
708
716
  children: [
709
- /* @__PURE__ */ b(he, { className: "size-5" }),
717
+ /* @__PURE__ */ y(ge, { className: "size-5" }),
710
718
  f("pages.marketplace.cart", { defaultValue: "Cart" }),
711
- m > 0 && /* @__PURE__ */ b("span", {
719
+ p > 0 && /* @__PURE__ */ y("span", {
712
720
  className: "absolute -right-2 -top-2 flex size-5 items-center justify-center rounded-full bg-action-primary-bg text-xs font-bold text-action-primary-text",
713
- children: m
721
+ children: p
714
722
  })
715
723
  ]
716
724
  })]
717
725
  }),
718
- /* @__PURE__ */ x("div", {
726
+ /* @__PURE__ */ b("div", {
719
727
  className: "mt-4",
720
- children: [/* @__PURE__ */ x("div", {
728
+ children: [/* @__PURE__ */ b("div", {
721
729
  className: "relative",
722
730
  children: [
723
- /* @__PURE__ */ b("label", {
731
+ /* @__PURE__ */ y("label", {
724
732
  htmlFor: se,
725
733
  className: "sr-only",
726
734
  children: f("pages.marketplace.search.label", { defaultValue: "Search marketplace products" })
727
735
  }),
728
- /* @__PURE__ */ b(me, { className: "absolute left-4 top-1/2 size-5 -translate-y-1/2 text-text-muted" }),
729
- /* @__PURE__ */ b("input", {
736
+ /* @__PURE__ */ y(he, { className: "absolute left-4 top-1/2 size-5 -translate-y-1/2 text-text-muted" }),
737
+ /* @__PURE__ */ y("input", {
730
738
  id: se,
731
739
  "data-tour": "store-marketplace-search-input",
732
740
  "aria-label": f("pages.marketplace.search.label", { defaultValue: "Search marketplace products" }),
733
741
  type: "text",
734
- value: T,
735
- onChange: (e) => E(e.target.value),
742
+ value: w,
743
+ onChange: (e) => T(e.target.value),
736
744
  placeholder: f("pages.marketplace.search.placeholder", { defaultValue: "Search apps, workflows, integrations..." }),
737
745
  className: "w-full rounded-xl border border-border-default bg-bg-sunken py-3 pl-12 pr-4 text-text-primary placeholder-text-muted focus:border-action-primary-border focus:bg-bg-surface focus:outline-none focus:ring-2 focus:ring-action-primary-border/20"
738
746
  }),
739
- T && /* @__PURE__ */ b("button", {
747
+ w && /* @__PURE__ */ y("button", {
740
748
  type: "button",
741
- onClick: () => E(""),
749
+ onClick: () => T(""),
742
750
  "aria-label": f("pages.marketplace.search.clear", { defaultValue: "Clear search" }),
743
751
  className: "cursor-pointer absolute right-4 top-1/2 -translate-y-1/2 text-text-muted transition-colors hover:text-text-primary",
744
- children: /* @__PURE__ */ b(y, {
752
+ children: /* @__PURE__ */ y(v, {
745
753
  className: "size-4",
746
754
  "aria-hidden": "true"
747
755
  })
748
756
  })
749
757
  ]
750
- }), T.trim() && /* @__PURE__ */ b("div", {
758
+ }), w.trim() && /* @__PURE__ */ y("div", {
751
759
  "aria-live": "polite",
752
760
  className: "mt-2 flex items-center gap-2 text-sm text-text-muted",
753
- children: ze || X ? /* @__PURE__ */ x(ve, { children: [/* @__PURE__ */ b(pe, { className: "size-4 animate-spin" }), /* @__PURE__ */ b("span", { children: f("pages.marketplace.search.searching", { defaultValue: "Searching..." }) })] }) : /* @__PURE__ */ x("span", { children: [
761
+ children: He || X ? /* @__PURE__ */ b(ye, { children: [/* @__PURE__ */ y(me, { className: "size-4 animate-spin" }), /* @__PURE__ */ y("span", { children: f("pages.marketplace.search.searching", { defaultValue: "Searching..." }) })] }) : /* @__PURE__ */ b("span", { children: [
754
762
  J,
755
763
  " result",
756
764
  J === 1 ? "" : "s",
@@ -760,251 +768,251 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
760
768
  ] })
761
769
  })]
762
770
  }),
763
- /* @__PURE__ */ x("div", {
771
+ /* @__PURE__ */ b("div", {
764
772
  className: "mt-4 flex flex-wrap items-center gap-3",
765
773
  children: [
766
- /* @__PURE__ */ x("button", {
774
+ /* @__PURE__ */ b("button", {
767
775
  type: "button",
768
776
  "data-tour": "store-marketplace-filters-button",
769
- onClick: () => Me(!je),
770
- className: `cursor-pointer flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${je || U > 0 ? "border-action-primary-border bg-action-primary-bg/10 text-text-link" : "border-border-default bg-bg-surface text-text-primary transition-colors hover:bg-bg-sunken"}`,
777
+ onClick: () => Fe(!Pe),
778
+ className: `cursor-pointer flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${Pe || U > 0 ? "border-action-primary-border bg-action-primary-bg/10 text-text-link" : "border-border-default bg-bg-surface text-text-primary transition-colors hover:bg-bg-sunken"}`,
771
779
  children: [
772
- /* @__PURE__ */ b(ge, { className: "size-4" }),
780
+ /* @__PURE__ */ y(_e, { className: "size-4" }),
773
781
  f("pages.marketplace.filters", { defaultValue: "Filters" }),
774
- U > 0 && /* @__PURE__ */ b("span", {
782
+ U > 0 && /* @__PURE__ */ y("span", {
775
783
  className: "flex size-5 items-center justify-center rounded-full bg-action-primary-bg text-xs text-action-primary-text",
776
784
  children: U
777
785
  })
778
786
  ]
779
787
  }),
780
- /* @__PURE__ */ x("div", {
788
+ /* @__PURE__ */ b("div", {
781
789
  className: "flex flex-wrap items-center gap-2",
782
790
  "data-tour": "store-marketplace-quick-filters",
783
791
  children: [
784
- /* @__PURE__ */ x("button", {
792
+ /* @__PURE__ */ b("button", {
785
793
  type: "button",
786
- onClick: () => M(j === "free" ? "all" : "free"),
787
- className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${j === "free" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
788
- children: [/* @__PURE__ */ b(fe, { className: "size-3.5" }), "Free"]
794
+ onClick: () => j(A === "free" ? "all" : "free"),
795
+ className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${A === "free" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
796
+ children: [/* @__PURE__ */ y(pe, { className: "size-3.5" }), "Free"]
789
797
  }),
790
- /* @__PURE__ */ x("button", {
798
+ /* @__PURE__ */ b("button", {
791
799
  type: "button",
792
- onClick: () => F(N === "4" ? "any" : "4"),
793
- className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${N === "4" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
794
- children: [/* @__PURE__ */ b(v, { className: "size-3.5" }), "4+ Stars"]
800
+ onClick: () => N(M === "4" ? "any" : "4"),
801
+ className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${M === "4" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
802
+ children: [/* @__PURE__ */ y(_, { className: "size-3.5" }), "4+ Stars"]
795
803
  }),
796
- /* @__PURE__ */ x("button", {
804
+ /* @__PURE__ */ b("button", {
797
805
  type: "button",
798
- onClick: () => ke(!z),
806
+ onClick: () => Me(!z),
799
807
  className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${z ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
800
- children: [/* @__PURE__ */ b(_, { className: "size-3.5" }), "Featured"]
808
+ children: [/* @__PURE__ */ y(g, { className: "size-3.5" }), "Featured"]
801
809
  })
802
810
  ]
803
811
  }),
804
- H && /* @__PURE__ */ x("button", {
812
+ H && /* @__PURE__ */ b("button", {
805
813
  type: "button",
806
- onClick: Be,
814
+ onClick: Ue,
807
815
  className: "cursor-pointer flex items-center gap-1 text-sm text-text-muted transition-colors hover:text-text-primary",
808
- children: [/* @__PURE__ */ b(y, {
816
+ children: [/* @__PURE__ */ y(v, {
809
817
  className: "size-4",
810
818
  "aria-hidden": "true"
811
819
  }), "Clear all"]
812
820
  }),
813
- /* @__PURE__ */ b("div", {
821
+ /* @__PURE__ */ y("div", {
814
822
  className: "ml-auto",
815
823
  "data-tour": "store-marketplace-section-sort",
816
- children: /* @__PURE__ */ b(P, {
824
+ children: /* @__PURE__ */ y(P, {
817
825
  label: "Sort",
818
826
  value: B,
819
- options: Ie,
820
- onChange: (e) => Ae(e)
827
+ options: ze,
828
+ onChange: (e) => Ne(e)
821
829
  })
822
830
  })
823
831
  ]
824
832
  }),
825
- je && /* @__PURE__ */ x("div", {
826
- className: "mt-4 rounded-lg border border-border-default bg-bg-surface p-4",
827
- children: [/* @__PURE__ */ x("div", {
833
+ Pe && /* @__PURE__ */ b("div", {
834
+ className: "mt-4 rounded-lg border border-border-seam bg-bg-surface p-4",
835
+ children: [/* @__PURE__ */ b("div", {
828
836
  className: "flex flex-wrap items-start gap-6",
829
837
  children: [
830
- /* @__PURE__ */ x("div", {
838
+ /* @__PURE__ */ b("div", {
831
839
  className: "flex flex-col gap-2",
832
- children: [/* @__PURE__ */ b("span", {
840
+ children: [/* @__PURE__ */ y("span", {
833
841
  className: "text-xs font-medium uppercase tracking-wider text-text-muted",
834
842
  children: "Pricing"
835
- }), /* @__PURE__ */ b(P, {
843
+ }), /* @__PURE__ */ y(P, {
836
844
  label: "Price",
837
- value: j,
838
- options: Ne,
839
- onChange: (e) => M(e)
845
+ value: A,
846
+ options: Ie,
847
+ onChange: (e) => j(e)
840
848
  })]
841
849
  }),
842
- /* @__PURE__ */ x("div", {
850
+ /* @__PURE__ */ b("div", {
843
851
  className: "flex flex-col gap-2",
844
- children: [/* @__PURE__ */ b("span", {
852
+ children: [/* @__PURE__ */ y("span", {
845
853
  className: "text-xs font-medium uppercase tracking-wider text-text-muted",
846
854
  children: "Min Rating"
847
- }), /* @__PURE__ */ b(P, {
855
+ }), /* @__PURE__ */ y(P, {
848
856
  label: "Rating",
849
- value: N,
850
- options: Pe,
851
- onChange: (e) => F(e)
857
+ value: M,
858
+ options: Le,
859
+ onChange: (e) => N(e)
852
860
  })]
853
861
  }),
854
- tt.length > 1 && /* @__PURE__ */ x("div", {
862
+ it.length > 1 && /* @__PURE__ */ b("div", {
855
863
  className: "flex flex-col gap-2",
856
- children: [/* @__PURE__ */ b("span", {
864
+ children: [/* @__PURE__ */ y("span", {
857
865
  className: "text-xs font-medium uppercase tracking-wider text-text-muted",
858
866
  children: "Category"
859
- }), /* @__PURE__ */ b(P, {
867
+ }), /* @__PURE__ */ y(P, {
860
868
  label: "Category",
861
869
  value: L,
862
- options: tt,
863
- onChange: De
870
+ options: it,
871
+ onChange: Ae
864
872
  })]
865
873
  }),
866
- /* @__PURE__ */ x("div", {
874
+ /* @__PURE__ */ b("div", {
867
875
  className: "flex flex-col gap-2",
868
- children: [/* @__PURE__ */ b("span", {
876
+ children: [/* @__PURE__ */ y("span", {
869
877
  className: "text-xs font-medium uppercase tracking-wider text-text-muted",
870
878
  children: "Nature"
871
- }), /* @__PURE__ */ b(P, {
879
+ }), /* @__PURE__ */ y(P, {
872
880
  label: "Nature",
873
- value: I,
874
- options: Fe,
875
- onChange: (e) => Ee(e)
881
+ value: F,
882
+ options: Re,
883
+ onChange: (e) => I(e)
876
884
  })]
877
885
  }),
878
- nt.length > 1 && /* @__PURE__ */ x("div", {
886
+ at.length > 1 && /* @__PURE__ */ b("div", {
879
887
  className: "flex flex-col gap-2",
880
- children: [/* @__PURE__ */ b("span", {
888
+ children: [/* @__PURE__ */ y("span", {
881
889
  className: "text-xs font-medium uppercase tracking-wider text-text-muted",
882
890
  children: "License"
883
- }), /* @__PURE__ */ b(P, {
891
+ }), /* @__PURE__ */ y(P, {
884
892
  label: "License",
885
893
  value: R,
886
- options: nt,
887
- onChange: Oe
894
+ options: at,
895
+ onChange: je
888
896
  })]
889
897
  })
890
898
  ]
891
- }), U > 0 && /* @__PURE__ */ x("div", {
899
+ }), U > 0 && /* @__PURE__ */ b("div", {
892
900
  className: "mt-4 flex flex-wrap items-center gap-2 border-t border-border-default pt-4",
893
901
  children: [
894
- /* @__PURE__ */ b("span", {
902
+ /* @__PURE__ */ y("span", {
895
903
  className: "text-xs font-medium text-text-muted",
896
904
  children: "Active filters:"
897
905
  }),
898
- k !== "all" && /* @__PURE__ */ x("button", {
906
+ E !== "all" && /* @__PURE__ */ b("button", {
899
907
  type: "button",
900
- onClick: () => A("all"),
908
+ onClick: () => k("all"),
901
909
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
902
910
  children: [
903
- /* @__PURE__ */ b("span", {
911
+ /* @__PURE__ */ y("span", {
904
912
  className: "text-text-muted",
905
913
  children: "Type:"
906
914
  }),
907
915
  " ",
908
- k,
909
- /* @__PURE__ */ b(y, {
916
+ E,
917
+ /* @__PURE__ */ y(v, {
910
918
  className: "size-3",
911
919
  "aria-hidden": "true"
912
920
  })
913
921
  ]
914
922
  }),
915
- j !== "all" && /* @__PURE__ */ x("button", {
923
+ A !== "all" && /* @__PURE__ */ b("button", {
916
924
  type: "button",
917
- onClick: () => M("all"),
925
+ onClick: () => j("all"),
918
926
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
919
927
  children: [
920
- /* @__PURE__ */ b("span", {
928
+ /* @__PURE__ */ y("span", {
921
929
  className: "text-text-muted",
922
930
  children: "Price:"
923
931
  }),
924
932
  " ",
925
- Ne.find((e) => e.value === j)?.label,
926
- /* @__PURE__ */ b(y, {
933
+ Ie.find((e) => e.value === A)?.label,
934
+ /* @__PURE__ */ y(v, {
927
935
  className: "size-3",
928
936
  "aria-hidden": "true"
929
937
  })
930
938
  ]
931
939
  }),
932
- N !== "any" && /* @__PURE__ */ x("button", {
940
+ M !== "any" && /* @__PURE__ */ b("button", {
933
941
  type: "button",
934
- onClick: () => F("any"),
942
+ onClick: () => N("any"),
935
943
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
936
944
  children: [
937
- /* @__PURE__ */ b("span", {
945
+ /* @__PURE__ */ y("span", {
938
946
  className: "text-text-muted",
939
947
  children: "Rating:"
940
948
  }),
941
949
  " ",
942
- Pe.find((e) => e.value === N)?.label,
943
- /* @__PURE__ */ b(y, {
950
+ Le.find((e) => e.value === M)?.label,
951
+ /* @__PURE__ */ y(v, {
944
952
  className: "size-3",
945
953
  "aria-hidden": "true"
946
954
  })
947
955
  ]
948
956
  }),
949
- L !== "all" && /* @__PURE__ */ x("button", {
957
+ L !== "all" && /* @__PURE__ */ b("button", {
950
958
  type: "button",
951
- onClick: () => De("all"),
959
+ onClick: () => Ae("all"),
952
960
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
953
961
  children: [
954
- /* @__PURE__ */ b("span", {
962
+ /* @__PURE__ */ y("span", {
955
963
  className: "text-text-muted",
956
964
  children: "Category:"
957
965
  }),
958
966
  " ",
959
967
  L,
960
- /* @__PURE__ */ b(y, {
968
+ /* @__PURE__ */ y(v, {
961
969
  className: "size-3",
962
970
  "aria-hidden": "true"
963
971
  })
964
972
  ]
965
973
  }),
966
- I !== "all" && /* @__PURE__ */ x("button", {
974
+ F !== "all" && /* @__PURE__ */ b("button", {
967
975
  type: "button",
968
- onClick: () => Ee("all"),
976
+ onClick: () => I("all"),
969
977
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
970
978
  children: [
971
- /* @__PURE__ */ b("span", {
979
+ /* @__PURE__ */ y("span", {
972
980
  className: "text-text-muted",
973
981
  children: "Nature:"
974
982
  }),
975
983
  " ",
976
- Fe.find((e) => e.value === I)?.label,
977
- /* @__PURE__ */ b(y, {
984
+ Re.find((e) => e.value === F)?.label,
985
+ /* @__PURE__ */ y(v, {
978
986
  className: "size-3",
979
987
  "aria-hidden": "true"
980
988
  })
981
989
  ]
982
990
  }),
983
- R !== "all" && /* @__PURE__ */ x("button", {
991
+ R !== "all" && /* @__PURE__ */ b("button", {
984
992
  type: "button",
985
- onClick: () => Oe("all"),
993
+ onClick: () => je("all"),
986
994
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
987
995
  children: [
988
- /* @__PURE__ */ b("span", {
996
+ /* @__PURE__ */ y("span", {
989
997
  className: "text-text-muted",
990
998
  children: "License:"
991
999
  }),
992
1000
  " ",
993
- nt.find((e) => e.value === R)?.label,
994
- /* @__PURE__ */ b(y, {
1001
+ at.find((e) => e.value === R)?.label,
1002
+ /* @__PURE__ */ y(v, {
995
1003
  className: "size-3",
996
1004
  "aria-hidden": "true"
997
1005
  })
998
1006
  ]
999
1007
  }),
1000
- z && /* @__PURE__ */ x("button", {
1008
+ z && /* @__PURE__ */ b("button", {
1001
1009
  type: "button",
1002
- onClick: () => ke(!1),
1010
+ onClick: () => Me(!1),
1003
1011
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
1004
1012
  children: [
1005
- /* @__PURE__ */ b(_, { className: "size-3" }),
1013
+ /* @__PURE__ */ y(g, { className: "size-3" }),
1006
1014
  "Featured Only",
1007
- /* @__PURE__ */ b(y, {
1015
+ /* @__PURE__ */ y(v, {
1008
1016
  className: "size-3",
1009
1017
  "aria-hidden": "true"
1010
1018
  })
@@ -1015,161 +1023,143 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1015
1023
  })
1016
1024
  ]
1017
1025
  }),
1018
- /* @__PURE__ */ b("main", {
1026
+ /* @__PURE__ */ y("main", {
1019
1027
  className: "flex-1 overflow-y-auto",
1020
- children: /* @__PURE__ */ x("div", {
1028
+ children: /* @__PURE__ */ b("div", {
1021
1029
  className: "mx-auto max-w-7xl space-y-8 p-6",
1022
1030
  children: [
1023
- Z && /* @__PURE__ */ x("div", {
1031
+ Z && /* @__PURE__ */ b("div", {
1024
1032
  role: "alert",
1025
1033
  className: "flex flex-col items-center justify-center rounded-xl border border-status-error-border bg-status-error-bg-subtle p-8 text-center",
1026
1034
  children: [
1027
- /* @__PURE__ */ b(oe, { className: "mb-4 size-12 text-status-error-text" }),
1028
- /* @__PURE__ */ b("h3", {
1035
+ /* @__PURE__ */ y(oe, { className: "mb-4 size-12 text-status-error-text" }),
1036
+ /* @__PURE__ */ y("h3", {
1029
1037
  className: "mb-2 text-lg font-semibold text-status-error-text-emphasis",
1030
1038
  children: "Failed to load marketplace"
1031
1039
  }),
1032
- /* @__PURE__ */ b("p", {
1040
+ /* @__PURE__ */ y("p", {
1033
1041
  className: "mb-4 text-sm text-status-error-text",
1034
1042
  children: Z.message || "An error occurred while fetching products"
1035
1043
  }),
1036
- /* @__PURE__ */ b("button", {
1044
+ /* @__PURE__ */ y("button", {
1037
1045
  type: "button",
1038
- onClick: () => Ye(),
1046
+ onClick: () => Qe(),
1039
1047
  className: "cursor-pointer rounded-lg bg-status-error-bg px-4 py-2 text-sm font-medium text-status-error-text transition-colors hover:bg-status-error-bg-emphasis",
1040
1048
  children: "Try Again"
1041
1049
  })
1042
1050
  ]
1043
1051
  }),
1044
- Je && !Z && /* @__PURE__ */ b(Te, {}),
1045
- !Je && !Z && /* @__PURE__ */ x(ve, { children: [
1046
- !H && k === "all" && W.length > 0 && /* @__PURE__ */ b(we, {
1052
+ Ze && !Z && /* @__PURE__ */ y(ke, {}),
1053
+ !Ze && !Z && /* @__PURE__ */ b(ye, { children: [
1054
+ !H && E === "all" && W.length > 0 && /* @__PURE__ */ y(Oe, {
1047
1055
  dataTour: "store-marketplace-hero-section",
1048
1056
  featuredProducts: W,
1049
1057
  onProductClick: Q
1050
1058
  }),
1051
- et.length > 1 && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
1059
+ rt.length > 1 && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h2", {
1052
1060
  className: "mb-4 text-lg font-semibold text-text-primary",
1053
1061
  children: "Browse by Type"
1054
- }), /* @__PURE__ */ b("div", {
1062
+ }), /* @__PURE__ */ y("div", {
1055
1063
  className: "flex flex-wrap gap-2",
1056
1064
  "data-tour": "store-marketplace-type-categories",
1057
- children: et.map((e) => /* @__PURE__ */ b(Ce, {
1065
+ children: rt.map((e) => /* @__PURE__ */ y(De, {
1058
1066
  typeId: e.id,
1059
1067
  name: e.name,
1060
1068
  count: e.count,
1061
- active: k === e.id,
1062
- onClick: () => A(e.id)
1069
+ active: E === e.id,
1070
+ onClick: () => k(e.id)
1063
1071
  }, e.id))
1064
1072
  })] }),
1065
- H && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
1066
- icon: de,
1073
+ H && /* @__PURE__ */ b("section", { children: [/* @__PURE__ */ y(O, {
1074
+ icon: fe,
1067
1075
  title: V ? "Search Results" : "Filtered Results",
1068
1076
  subtitle: `${J} app${J === 1 ? "" : "s"} found`
1069
- }), Xe.length > 0 ? /* @__PURE__ */ b("div", {
1077
+ }), $e.length > 0 ? /* @__PURE__ */ y("div", {
1070
1078
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
1071
1079
  "data-tour": "store-marketplace-product-grid",
1072
- children: Xe.map((e) => /* @__PURE__ */ b(D, {
1080
+ children: $e.map((e) => /* @__PURE__ */ y(D, {
1073
1081
  product: e,
1074
1082
  onClick: () => Q(e)
1075
1083
  }, e.id))
1076
- }) : /* @__PURE__ */ x("div", {
1077
- className: "flex flex-col items-center justify-center rounded-xl border border-border-default bg-bg-surface p-8 text-center",
1078
- children: [
1079
- /* @__PURE__ */ b(de, { className: "mb-4 size-12 text-text-muted" }),
1080
- /* @__PURE__ */ b("h3", {
1081
- className: "mb-2 text-lg font-semibold text-text-primary",
1082
- children: "No apps match your filters"
1083
- }),
1084
- /* @__PURE__ */ b("p", {
1085
- className: "mb-4 text-sm text-text-muted",
1086
- children: "Try adjusting your filter criteria or clearing filters to see more results."
1087
- }),
1088
- /* @__PURE__ */ b("button", {
1089
- type: "button",
1090
- onClick: Be,
1091
- className: "cursor-pointer rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-opacity hover:opacity-90",
1092
- children: "Clear All Filters"
1093
- })
1094
- ]
1084
+ }) : /* @__PURE__ */ y(we, {
1085
+ illustration: "empty-search",
1086
+ title: "No apps match your filters",
1087
+ description: "Try adjusting your filter criteria or clearing filters to see more results.",
1088
+ action: /* @__PURE__ */ y("button", {
1089
+ type: "button",
1090
+ onClick: Ue,
1091
+ className: "cursor-pointer rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-opacity hover:opacity-90",
1092
+ children: "Clear All Filters"
1093
+ })
1095
1094
  })] }),
1096
- !H && k === "all" && /* @__PURE__ */ x(ve, { children: [
1097
- G.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
1098
- icon: _e,
1095
+ !H && E === "all" && /* @__PURE__ */ b(ye, { children: [
1096
+ G.length > 0 && /* @__PURE__ */ b("section", { children: [/* @__PURE__ */ y(O, {
1097
+ icon: ve,
1099
1098
  title: "Most Downloaded",
1100
1099
  subtitle: "Top picks by our community"
1101
- }), /* @__PURE__ */ b("div", {
1100
+ }), /* @__PURE__ */ y("div", {
1102
1101
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
1103
1102
  "data-tour": "store-marketplace-most-downloaded",
1104
- children: G.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
1103
+ children: G.slice(0, 6).map((e) => /* @__PURE__ */ y(D, {
1105
1104
  product: e,
1106
1105
  onClick: () => Q(e)
1107
1106
  }, e.id))
1108
1107
  })] }),
1109
- K.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
1108
+ K.length > 0 && /* @__PURE__ */ b("section", { children: [/* @__PURE__ */ y(O, {
1110
1109
  icon: ce,
1111
1110
  title: "New Releases",
1112
1111
  subtitle: "Recently published apps"
1113
- }), /* @__PURE__ */ b("div", {
1112
+ }), /* @__PURE__ */ y("div", {
1114
1113
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
1115
- children: K.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
1114
+ children: K.slice(0, 6).map((e) => /* @__PURE__ */ y(D, {
1116
1115
  product: e,
1117
1116
  onClick: () => Q(e)
1118
1117
  }, e.id))
1119
1118
  })] }),
1120
- q.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
1121
- icon: fe,
1119
+ q.length > 0 && /* @__PURE__ */ b("section", { children: [/* @__PURE__ */ y(O, {
1120
+ icon: pe,
1122
1121
  title: "Free Apps",
1123
1122
  subtitle: "No cost, full functionality"
1124
- }), /* @__PURE__ */ b("div", {
1123
+ }), /* @__PURE__ */ y("div", {
1125
1124
  className: "grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6",
1126
- children: q.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
1125
+ children: q.slice(0, 6).map((e) => /* @__PURE__ */ y(D, {
1127
1126
  product: e,
1128
1127
  onClick: () => Q(e),
1129
1128
  variant: "compact"
1130
1129
  }, e.id))
1131
1130
  })] }),
1132
- $.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
1131
+ $.length > 0 && /* @__PURE__ */ b("section", { children: [/* @__PURE__ */ y(O, {
1133
1132
  icon: u,
1134
1133
  title: "All Apps",
1135
1134
  subtitle: `${$.length} apps available`
1136
- }), /* @__PURE__ */ b("div", {
1135
+ }), /* @__PURE__ */ y("div", {
1137
1136
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
1138
- children: $.map((e) => /* @__PURE__ */ b(D, {
1137
+ children: $.map((e) => /* @__PURE__ */ y(D, {
1139
1138
  product: e,
1140
1139
  onClick: () => Q(e)
1141
1140
  }, e.id))
1142
1141
  })] })
1143
1142
  ] }),
1144
- $.length === 0 && /* @__PURE__ */ x("div", {
1145
- className: "flex flex-col items-center justify-center rounded-xl border border-border-default bg-bg-surface p-12 text-center",
1146
- children: [
1147
- /* @__PURE__ */ b(u, { className: "mb-4 size-16 text-text-muted" }),
1148
- /* @__PURE__ */ b("h3", {
1149
- className: "mb-2 text-xl font-semibold text-text-primary",
1150
- children: "No apps available yet"
1151
- }),
1152
- /* @__PURE__ */ b("p", {
1153
- className: "max-w-md text-text-muted",
1154
- children: "The marketplace is empty. Check back soon for new apps, workflows, and integrations."
1155
- })
1156
- ]
1143
+ $.length === 0 && /* @__PURE__ */ y(we, {
1144
+ illustration: "onboarding",
1145
+ title: "No apps available yet",
1146
+ description: "The marketplace is empty. Check back soon for new apps, workflows, and integrations."
1157
1147
  })
1158
1148
  ] })
1159
1149
  ]
1160
1150
  })
1161
1151
  }),
1162
- /* @__PURE__ */ b(ee, {
1152
+ /* @__PURE__ */ y(ee, {
1163
1153
  isOpen: ue,
1164
- onClose: p,
1165
- onCheckout: $e,
1166
- cartItems: h,
1167
- itemCount: m,
1168
- subtotal: g,
1154
+ onClose: de,
1155
+ onCheckout: nt,
1156
+ cartItems: m,
1157
+ itemCount: p,
1158
+ subtotal: h,
1169
1159
  tax: Se,
1170
- total: S,
1171
- updateQuantity: C,
1172
- removeProduct: w
1160
+ total: x,
1161
+ updateQuantity: S,
1162
+ removeProduct: C
1173
1163
  })
1174
1164
  ]
1175
1165
  });