@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.
- package/dist/StoreRoot.js +47 -90
- package/dist/StoreRoot.js.map +1 -1
- package/dist/StoreRoutes.js +93 -158
- package/dist/StoreRoutes.js.map +1 -1
- package/dist/components/AccessDenied.js +3 -3
- package/dist/components/AccessDenied.js.map +1 -1
- package/dist/components/InstallAppModal.js +175 -255
- package/dist/components/InstallAppModal.js.map +1 -1
- package/dist/components/cart/CartDrawer.js +10 -10
- package/dist/components/cart/CartDrawer.js.map +1 -1
- package/dist/hooks/useStoreGraphQL.js +107 -177
- package/dist/hooks/useStoreGraphQL.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/CombinedGraphQLErrors.js +1 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/utils.js +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/core/ApolloLink.js +2 -2
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/subscriptions/index.js +2 -2
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/utils/createOperation.js +1 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/graphql/print.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/caches.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/checkDocument.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getMainDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getOperationDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/globals/global.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/makeUniqueId.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/memoize.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/stringifyForDisplay.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/invariant/index.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
- package/dist/node_modules/@apollo/client/version.js +6 -0
- package/dist/node_modules/@apollo/client/version.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_caches@1.0.1/node_modules/@wry → @wry}/caches/lib/weak.js +1 -1
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_trie@0.5.0/node_modules/@wry → @wry}/trie/lib/index.js +1 -1
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/client.js +1 -1
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/common-CGW11Fyb.js +1 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/NotificationFactories.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscriber.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscription.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/config.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/observable/empty.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/scheduler/timeoutProvider.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/symbol/observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/UnsubscriptionError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/createErrorClass.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/errorContext.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/pipe.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/reportUnhandledError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/node_modules/{.bun/tslib@2.8.1 → rxjs}/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/pages/AdminDashboardPage.js +118 -91
- package/dist/pages/AdminDashboardPage.js.map +1 -1
- package/dist/pages/AdminReviewModerationPage.js +67 -61
- package/dist/pages/AdminReviewModerationPage.js.map +1 -1
- package/dist/pages/AdminStoresPage.js +424 -371
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +303 -286
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/AppDetailPage.js +172 -135
- package/dist/pages/AppDetailPage.js.map +1 -1
- package/dist/pages/AppSettingsPage.js +83 -300
- package/dist/pages/AppSettingsPage.js.map +1 -1
- package/dist/pages/CartPage.js +71 -79
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +120 -337
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +196 -205
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +70 -75
- package/dist/pages/MyLicensesPage.js.map +1 -1
- package/dist/pages/OrderConfirmationPage.js +70 -37
- package/dist/pages/OrderConfirmationPage.js.map +1 -1
- package/dist/pages/OrdersPage.js +60 -68
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +794 -752
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/dist/providers/StoreProvider.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -9
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -10
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js +0 -6
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/.bun/@wry_caches@1.0.1/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/.bun/@wry_trie@0.5.0/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/pages/ProductReviewsPage.js +0 -87
- package/dist/pages/ProductReviewsPage.js.map +0 -1
- package/dist/pages/PublisherDashboardPage.js +0 -160
- package/dist/pages/PublisherDashboardPage.js.map +0 -1
- package/dist/pages/PublisherRevenuePage.js +0 -140
- package/dist/pages/PublisherRevenuePage.js.map +0 -1
- package/dist/pages/PublisherSubmissionsPage.js +0 -179
- package/dist/pages/PublisherSubmissionsPage.js.map +0 -1
- package/dist/pages/PublisherSubmitPage.js +0 -230
- package/dist/pages/PublisherSubmitPage.js.map +0 -1
- /package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/caching/sizes.js +0 -0
|
@@ -8,10 +8,11 @@ import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nPro
|
|
|
8
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
9
|
import { Fragment as ve, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
10
10
|
import { useNavigate as ye } from "react-router-dom";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { AuroraBackground as be, GlassCard as xe, GradientText as Se, IllustratedEmptyState as Ce, PagePurpose 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
|
|
15
|
+
var De = (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)",
|
|
@@ -55,7 +56,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
55
56
|
return n === "featured" ? /* @__PURE__ */ x("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-
|
|
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
61
|
e.featured && /* @__PURE__ */ x("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",
|
|
@@ -94,7 +95,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
94
95
|
children: e.description || "No description available"
|
|
95
96
|
}),
|
|
96
97
|
/* @__PURE__ */ x("div", {
|
|
97
|
-
className: "mt-4 flex items-center justify-between border-t border-border-
|
|
98
|
+
className: "mt-4 flex items-center justify-between border-t border-border-seam pt-4",
|
|
98
99
|
children: [/* @__PURE__ */ x("div", {
|
|
99
100
|
className: "flex items-center gap-3",
|
|
100
101
|
children: [/* @__PURE__ */ x("span", {
|
|
@@ -102,7 +103,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
102
103
|
children: [/* @__PURE__ */ b(v, { className: "size-4 fill-current text-status-warning-text" }), (e.rating ?? 0).toFixed(1)]
|
|
103
104
|
}), /* @__PURE__ */ x("span", {
|
|
104
105
|
className: "flex items-center gap-1 text-sm text-text-muted",
|
|
105
|
-
children: [/* @__PURE__ */ b(ue, { className: "size-4" }),
|
|
106
|
+
children: [/* @__PURE__ */ b(ue, { className: "size-4" }), De(e.downloads)]
|
|
106
107
|
})]
|
|
107
108
|
}), /* @__PURE__ */ b("span", {
|
|
108
109
|
className: "rounded-full bg-action-primary-bg/10 px-3 py-1 text-sm font-medium text-text-link",
|
|
@@ -113,7 +114,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
113
114
|
}) : n === "compact" ? /* @__PURE__ */ x("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-
|
|
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
119
|
/* @__PURE__ */ b("div", {
|
|
119
120
|
className: "flex size-12 flex-shrink-0 items-center justify-center rounded-xl",
|
|
@@ -151,7 +152,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
151
152
|
}) : /* @__PURE__ */ x("button", {
|
|
152
153
|
type: "button",
|
|
153
154
|
onClick: t,
|
|
154
|
-
className: "group flex cursor-pointer flex-col overflow-hidden rounded-xl border border-border-
|
|
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
157
|
/* @__PURE__ */ x("div", {
|
|
157
158
|
className: "flex items-start gap-3",
|
|
@@ -200,7 +201,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
200
201
|
}),
|
|
201
202
|
/* @__PURE__ */ x("span", {
|
|
202
203
|
className: "text-xs text-text-muted",
|
|
203
|
-
children: [
|
|
204
|
+
children: [De(e.downloads), " downloads"]
|
|
204
205
|
})
|
|
205
206
|
]
|
|
206
207
|
}), /* @__PURE__ */ b("span", {
|
|
@@ -230,7 +231,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
230
231
|
className: "cursor-pointer flex items-center gap-1 text-sm font-medium text-text-link hover:underline",
|
|
231
232
|
children: ["View all", /* @__PURE__ */ b(se, { className: "size-4" })]
|
|
232
233
|
})]
|
|
233
|
-
}),
|
|
234
|
+
}), Oe = ({ typeId: e, name: t, count: n, active: r, onClick: i }) => /* @__PURE__ */ x("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"}`,
|
|
@@ -245,13 +246,15 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
245
246
|
children: n
|
|
246
247
|
})
|
|
247
248
|
]
|
|
248
|
-
}),
|
|
249
|
+
}), ke = ({ 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(
|
|
253
|
+
return /* @__PURE__ */ x(xe, {
|
|
254
|
+
treatment: "glass",
|
|
255
|
+
glow: !0,
|
|
253
256
|
"data-tour": n,
|
|
254
|
-
className: "relative overflow-hidden rounded-2xl
|
|
257
|
+
className: "relative overflow-hidden rounded-2xl p-8",
|
|
255
258
|
children: [
|
|
256
259
|
/* @__PURE__ */ b("div", {
|
|
257
260
|
className: "absolute inset-0 opacity-10",
|
|
@@ -265,7 +268,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
265
268
|
/* @__PURE__ */ x("div", {
|
|
266
269
|
className: "mb-4 flex items-center gap-2",
|
|
267
270
|
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",
|
|
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",
|
|
269
272
|
children: [/* @__PURE__ */ b(_, { className: "size-3" }), "Featured App"]
|
|
270
273
|
}), /* @__PURE__ */ b("span", {
|
|
271
274
|
className: "rounded-full bg-action-primary-bg/10 px-3 py-1 text-xs font-medium text-text-link",
|
|
@@ -344,7 +347,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
344
347
|
]
|
|
345
348
|
});
|
|
346
349
|
}, k = ({ variant: e = "default" }) => e === "featured" ? /* @__PURE__ */ x("div", {
|
|
347
|
-
className: "h-full animate-pulse rounded-2xl border border-border-
|
|
350
|
+
className: "h-full animate-pulse rounded-2xl border border-border-seam bg-bg-surface p-6",
|
|
348
351
|
children: [/* @__PURE__ */ x("div", {
|
|
349
352
|
className: "flex items-start gap-4",
|
|
350
353
|
children: [/* @__PURE__ */ b("div", { className: "size-16 rounded-2xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
|
|
@@ -362,7 +365,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
362
365
|
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" })]
|
|
363
366
|
})]
|
|
364
367
|
}) : /* @__PURE__ */ x("div", {
|
|
365
|
-
className: "animate-pulse rounded-xl border border-border-
|
|
368
|
+
className: "animate-pulse rounded-xl border border-border-seam bg-bg-surface p-4",
|
|
366
369
|
children: [/* @__PURE__ */ x("div", {
|
|
367
370
|
className: "flex items-start gap-3",
|
|
368
371
|
children: [/* @__PURE__ */ b("div", { className: "size-14 rounded-xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
|
|
@@ -431,7 +434,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
431
434
|
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" })]
|
|
432
435
|
})]
|
|
433
436
|
}), /* @__PURE__ */ b("div", { className: "h-4 w-16 animate-pulse rounded bg-bg-sunken" })]
|
|
434
|
-
}),
|
|
437
|
+
}), Ae = () => /* @__PURE__ */ x("div", {
|
|
435
438
|
className: "mx-auto max-w-7xl space-y-8 p-6",
|
|
436
439
|
children: [
|
|
437
440
|
/* @__PURE__ */ b(A, {}),
|
|
@@ -489,7 +492,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
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",
|
|
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)]",
|
|
493
496
|
children: n.map((e) => /* @__PURE__ */ b("option", {
|
|
494
497
|
value: e.value,
|
|
495
498
|
children: e.label
|
|
@@ -499,7 +502,7 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
499
502
|
]
|
|
500
503
|
});
|
|
501
504
|
}, F = () => {
|
|
502
|
-
let l = ye(), { basePath: d } = e(), { t: f } = ae(), se = re(), le =
|
|
505
|
+
let l = ye(), { basePath: d } = e(), { t: f } = ae(), se = re(), le = Te(), { cartOpen: ue, closeCart: p, itemCount: m, cartItems: h, subtotal: g, tax: xe, total: De, updateQuantity: S, removeProduct: C } = t(), [w, T] = c(""), [E, k] = c("all"), [A, j] = c("all"), [M, N] = c("any"), [F, je] = c("all"), [I, Me] = c("all"), [L, Ne] = c("all"), [R, Pe] = c(!1), [z, Fe] = c("relevance"), [Ie, Le] = c(!1), B = Ee(w, 1500), Re = [
|
|
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
|
-
],
|
|
522
|
+
], ze = [
|
|
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
|
-
],
|
|
543
|
+
], Be = [
|
|
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
|
-
],
|
|
556
|
+
], Ve = [
|
|
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
|
-
],
|
|
585
|
+
], He = (e) => ({
|
|
583
586
|
relevance: o.Relevance,
|
|
584
587
|
rating: o.Rating,
|
|
585
588
|
downloads: o.Downloads,
|
|
@@ -587,70 +590,70 @@ 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],
|
|
593
|
+
})[e], Ue = (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
|
-
},
|
|
597
|
-
|
|
598
|
-
},
|
|
599
|
+
}, V = B.trim() !== "" || A !== "all" || M !== "any" || F !== "all" || I !== "all" || L !== "all" || R || E !== "all" || z !== "relevance", We = w.trim() !== "" && w !== B, Ge = () => {
|
|
600
|
+
T(""), j("all"), N("any"), je("all"), Me("all"), Ne("all"), Pe(!1), Fe("relevance"), k("all");
|
|
601
|
+
}, H = (A === "all" ? 0 : 1) + (M === "any" ? 0 : 1) + (F === "all" ? 0 : 1) + (I === "all" ? 0 : 1) + (L === "all" ? 0 : 1) + +!!R + (E === "all" ? 0 : 1), Ke = s(() => {
|
|
599
602
|
let e = {
|
|
600
|
-
sortBy:
|
|
603
|
+
sortBy: He(z),
|
|
601
604
|
pagination: { limit: 50 }
|
|
602
605
|
};
|
|
603
|
-
if (
|
|
604
|
-
e.filter = {},
|
|
605
|
-
let t =
|
|
606
|
-
t && (e.filter.pricingModel = t),
|
|
606
|
+
if (V) {
|
|
607
|
+
e.filter = {}, B.trim() && (e.filter.search = B.trim()), E !== "all" && (e.filter.type = E), I !== "all" && (e.filter.category = I), F !== "all" && (e.filter.nature = F === "digital" ? a.Digital : a.Physical);
|
|
608
|
+
let t = Ue(A);
|
|
609
|
+
t && (e.filter.pricingModel = t), M !== "any" && (e.filter.minRating = parseFloat(M)), R && (e.filter.featured = !0), L !== "all" && (e.filter.license = L);
|
|
607
610
|
}
|
|
608
611
|
return e;
|
|
609
612
|
}, [
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
L,
|
|
613
|
+
B,
|
|
614
|
+
E,
|
|
613
615
|
I,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
616
|
+
F,
|
|
617
|
+
A,
|
|
618
|
+
M,
|
|
617
619
|
R,
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
Ze
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
620
|
+
L,
|
|
621
|
+
z,
|
|
622
|
+
V
|
|
623
|
+
]), { featured: U, mostDownloaded: W, recentlyAdded: G, freeItems: K, loading: qe, error: Je, refetch: Ye } = r({ skip: V }), { products: Xe, totalCount: q, facets: J, loading: Y, error: Ze, refetch: Qe } = n(V ? Ke : {}, { skip: !V }), $e = V ? Y : qe, X = V ? Ze : Je, et = V ? Qe : Ye, tt = V ? Xe : [], nt = ie(q);
|
|
624
|
+
nt.current = q;
|
|
625
|
+
let rt = ie(le);
|
|
626
|
+
rt.current = le, ne(() => {
|
|
627
|
+
!B.trim() || Y || rt.current.emit("store.marketplace.searched", {
|
|
628
|
+
query: B,
|
|
629
|
+
resultCount: nt.current
|
|
627
630
|
});
|
|
628
|
-
}, [
|
|
629
|
-
let
|
|
631
|
+
}, [B, Y]);
|
|
632
|
+
let Z = te((e) => {
|
|
630
633
|
l(`${d}/marketplace/product/${e.id}`);
|
|
631
|
-
}, [l, d]),
|
|
634
|
+
}, [l, d]), it = () => {
|
|
632
635
|
p(), l(`${d}/cart`);
|
|
633
|
-
},
|
|
636
|
+
}, Q = s(() => [...new Map([
|
|
637
|
+
...U,
|
|
634
638
|
...W,
|
|
635
639
|
...G,
|
|
636
|
-
...K
|
|
637
|
-
...q
|
|
640
|
+
...K
|
|
638
641
|
].map((e) => [e.id, e])).values()], [
|
|
642
|
+
U,
|
|
639
643
|
W,
|
|
640
644
|
G,
|
|
641
|
-
K
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
if (Y?.types && Y.types.length > 0) return [{
|
|
645
|
+
K
|
|
646
|
+
]), at = s(() => {
|
|
647
|
+
if (J?.types && J.types.length > 0) return [{
|
|
645
648
|
id: "all",
|
|
646
649
|
name: "All Apps",
|
|
647
|
-
count:
|
|
648
|
-
}, ...
|
|
650
|
+
count: q
|
|
651
|
+
}, ...J.types.map((e) => ({
|
|
649
652
|
id: e.value,
|
|
650
653
|
name: e.value.charAt(0) + e.value.slice(1).toLowerCase().replace(/_/g, " "),
|
|
651
654
|
count: e.count
|
|
652
655
|
}))];
|
|
653
|
-
let e =
|
|
656
|
+
let e = Q.reduce((e, t) => (e.set(t.type, (e.get(t.type) ?? 0) + 1), e), /* @__PURE__ */ new Map()), t = Array.from(e.entries()).flatMap(([e, t]) => t > 0 ? [{
|
|
654
657
|
id: e,
|
|
655
658
|
name: e.charAt(0) + e.slice(1).toLowerCase().replace(/_/g, " "),
|
|
656
659
|
count: t
|
|
@@ -658,45 +661,50 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
658
661
|
return [{
|
|
659
662
|
id: "all",
|
|
660
663
|
name: "All Apps",
|
|
661
|
-
count:
|
|
664
|
+
count: Q.length
|
|
662
665
|
}, ...t];
|
|
663
666
|
}, [
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
]),
|
|
667
|
+
J,
|
|
668
|
+
Q,
|
|
669
|
+
q
|
|
670
|
+
]), ot = s(() => J?.categories && J.categories.length > 0 ? [{
|
|
668
671
|
value: "all",
|
|
669
672
|
label: "All Categories"
|
|
670
|
-
}, ...
|
|
673
|
+
}, ...J.categories.map((e) => ({
|
|
671
674
|
value: e.value,
|
|
672
675
|
label: e.value
|
|
673
676
|
}))] : [{
|
|
674
677
|
value: "all",
|
|
675
678
|
label: "All Categories"
|
|
676
|
-
}, ...Array.from(new Set(
|
|
679
|
+
}, ...Array.from(new Set(Q.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))], [
|
|
682
|
+
})).sort((e, t) => e.label.localeCompare(t.label))], [J, Q]), $ = s(() => J?.licenses && J.licenses.length > 0 ? [{
|
|
680
683
|
value: "all",
|
|
681
684
|
label: "All Licenses"
|
|
682
|
-
}, ...
|
|
685
|
+
}, ...J.licenses.map((e) => ({
|
|
683
686
|
value: e.value,
|
|
684
687
|
label: e.value
|
|
685
688
|
}))] : [{
|
|
686
689
|
value: "all",
|
|
687
690
|
label: "All Licenses"
|
|
688
|
-
}], [
|
|
691
|
+
}], [J]);
|
|
689
692
|
return /* @__PURE__ */ x("div", {
|
|
690
693
|
className: "flex h-full flex-col",
|
|
691
694
|
children: [
|
|
692
695
|
/* @__PURE__ */ x("header", {
|
|
693
|
-
className: "border-b border-border-
|
|
696
|
+
className: "relative overflow-hidden border-b border-border-seam bg-bg-surface px-6 py-4",
|
|
694
697
|
children: [
|
|
698
|
+
/* @__PURE__ */ b(be, { intensity: "subtle" }),
|
|
695
699
|
/* @__PURE__ */ x("div", {
|
|
696
700
|
className: "flex items-center justify-between",
|
|
697
701
|
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("h1", {
|
|
698
702
|
className: "text-2xl font-bold text-text-primary",
|
|
699
|
-
children: [
|
|
703
|
+
children: [
|
|
704
|
+
"App",
|
|
705
|
+
" ",
|
|
706
|
+
/* @__PURE__ */ b(Se, { children: f("pages.marketplace.title", { defaultValue: "Marketplace" }) })
|
|
707
|
+
]
|
|
700
708
|
}), /* @__PURE__ */ b("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" })
|
|
@@ -731,14 +739,14 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
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:
|
|
735
|
-
onChange: (e) =>
|
|
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
|
-
|
|
747
|
+
w && /* @__PURE__ */ b("button", {
|
|
740
748
|
type: "button",
|
|
741
|
-
onClick: () =>
|
|
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
752
|
children: /* @__PURE__ */ b(y, {
|
|
@@ -747,15 +755,15 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
747
755
|
})
|
|
748
756
|
})
|
|
749
757
|
]
|
|
750
|
-
}),
|
|
758
|
+
}), w.trim() && /* @__PURE__ */ b("div", {
|
|
751
759
|
"aria-live": "polite",
|
|
752
760
|
className: "mt-2 flex items-center gap-2 text-sm text-text-muted",
|
|
753
|
-
children:
|
|
754
|
-
|
|
761
|
+
children: We || Y ? /* @__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: [
|
|
762
|
+
q,
|
|
755
763
|
" result",
|
|
756
|
-
|
|
764
|
+
q === 1 ? "" : "s",
|
|
757
765
|
" for “",
|
|
758
|
-
|
|
766
|
+
B,
|
|
759
767
|
"”"
|
|
760
768
|
] })
|
|
761
769
|
})]
|
|
@@ -766,14 +774,14 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
766
774
|
/* @__PURE__ */ x("button", {
|
|
767
775
|
type: "button",
|
|
768
776
|
"data-tour": "store-marketplace-filters-button",
|
|
769
|
-
onClick: () =>
|
|
770
|
-
className: `cursor-pointer flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${
|
|
777
|
+
onClick: () => Le(!Ie),
|
|
778
|
+
className: `cursor-pointer flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${Ie || H > 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
780
|
/* @__PURE__ */ b(ge, { className: "size-4" }),
|
|
773
781
|
f("pages.marketplace.filters", { defaultValue: "Filters" }),
|
|
774
|
-
|
|
782
|
+
H > 0 && /* @__PURE__ */ b("span", {
|
|
775
783
|
className: "flex size-5 items-center justify-center rounded-full bg-action-primary-bg text-xs text-action-primary-text",
|
|
776
|
-
children:
|
|
784
|
+
children: H
|
|
777
785
|
})
|
|
778
786
|
]
|
|
779
787
|
}),
|
|
@@ -783,27 +791,27 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
783
791
|
children: [
|
|
784
792
|
/* @__PURE__ */ x("button", {
|
|
785
793
|
type: "button",
|
|
786
|
-
onClick: () =>
|
|
787
|
-
className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${
|
|
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"}`,
|
|
788
796
|
children: [/* @__PURE__ */ b(fe, { className: "size-3.5" }), "Free"]
|
|
789
797
|
}),
|
|
790
798
|
/* @__PURE__ */ x("button", {
|
|
791
799
|
type: "button",
|
|
792
|
-
onClick: () =>
|
|
793
|
-
className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${
|
|
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"}`,
|
|
794
802
|
children: [/* @__PURE__ */ b(v, { className: "size-3.5" }), "4+ Stars"]
|
|
795
803
|
}),
|
|
796
804
|
/* @__PURE__ */ x("button", {
|
|
797
805
|
type: "button",
|
|
798
|
-
onClick: () =>
|
|
799
|
-
className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${
|
|
806
|
+
onClick: () => Pe(!R),
|
|
807
|
+
className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${R ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
|
|
800
808
|
children: [/* @__PURE__ */ b(_, { className: "size-3.5" }), "Featured"]
|
|
801
809
|
})
|
|
802
810
|
]
|
|
803
811
|
}),
|
|
804
|
-
|
|
812
|
+
V && /* @__PURE__ */ x("button", {
|
|
805
813
|
type: "button",
|
|
806
|
-
onClick:
|
|
814
|
+
onClick: Ge,
|
|
807
815
|
className: "cursor-pointer flex items-center gap-1 text-sm text-text-muted transition-colors hover:text-text-primary",
|
|
808
816
|
children: [/* @__PURE__ */ b(y, {
|
|
809
817
|
className: "size-4",
|
|
@@ -815,15 +823,15 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
815
823
|
"data-tour": "store-marketplace-section-sort",
|
|
816
824
|
children: /* @__PURE__ */ b(P, {
|
|
817
825
|
label: "Sort",
|
|
818
|
-
value:
|
|
819
|
-
options:
|
|
820
|
-
onChange: (e) =>
|
|
826
|
+
value: z,
|
|
827
|
+
options: Ve,
|
|
828
|
+
onChange: (e) => Fe(e)
|
|
821
829
|
})
|
|
822
830
|
})
|
|
823
831
|
]
|
|
824
832
|
}),
|
|
825
|
-
|
|
826
|
-
className: "mt-4 rounded-lg border border-border-
|
|
833
|
+
Ie && /* @__PURE__ */ x("div", {
|
|
834
|
+
className: "mt-4 rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
827
835
|
children: [/* @__PURE__ */ x("div", {
|
|
828
836
|
className: "flex flex-wrap items-start gap-6",
|
|
829
837
|
children: [
|
|
@@ -834,9 +842,9 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
834
842
|
children: "Pricing"
|
|
835
843
|
}), /* @__PURE__ */ b(P, {
|
|
836
844
|
label: "Price",
|
|
837
|
-
value:
|
|
838
|
-
options:
|
|
839
|
-
onChange: (e) =>
|
|
845
|
+
value: A,
|
|
846
|
+
options: Re,
|
|
847
|
+
onChange: (e) => j(e)
|
|
840
848
|
})]
|
|
841
849
|
}),
|
|
842
850
|
/* @__PURE__ */ x("div", {
|
|
@@ -846,21 +854,21 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
846
854
|
children: "Min Rating"
|
|
847
855
|
}), /* @__PURE__ */ b(P, {
|
|
848
856
|
label: "Rating",
|
|
849
|
-
value:
|
|
850
|
-
options:
|
|
851
|
-
onChange: (e) =>
|
|
857
|
+
value: M,
|
|
858
|
+
options: ze,
|
|
859
|
+
onChange: (e) => N(e)
|
|
852
860
|
})]
|
|
853
861
|
}),
|
|
854
|
-
|
|
862
|
+
ot.length > 1 && /* @__PURE__ */ x("div", {
|
|
855
863
|
className: "flex flex-col gap-2",
|
|
856
864
|
children: [/* @__PURE__ */ b("span", {
|
|
857
865
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
858
866
|
children: "Category"
|
|
859
867
|
}), /* @__PURE__ */ b(P, {
|
|
860
868
|
label: "Category",
|
|
861
|
-
value:
|
|
862
|
-
options:
|
|
863
|
-
onChange:
|
|
869
|
+
value: I,
|
|
870
|
+
options: ot,
|
|
871
|
+
onChange: Me
|
|
864
872
|
})]
|
|
865
873
|
}),
|
|
866
874
|
/* @__PURE__ */ x("div", {
|
|
@@ -870,34 +878,34 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
870
878
|
children: "Nature"
|
|
871
879
|
}), /* @__PURE__ */ b(P, {
|
|
872
880
|
label: "Nature",
|
|
873
|
-
value:
|
|
874
|
-
options:
|
|
875
|
-
onChange: (e) =>
|
|
881
|
+
value: F,
|
|
882
|
+
options: Be,
|
|
883
|
+
onChange: (e) => je(e)
|
|
876
884
|
})]
|
|
877
885
|
}),
|
|
878
|
-
|
|
886
|
+
$.length > 1 && /* @__PURE__ */ x("div", {
|
|
879
887
|
className: "flex flex-col gap-2",
|
|
880
888
|
children: [/* @__PURE__ */ b("span", {
|
|
881
889
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
882
890
|
children: "License"
|
|
883
891
|
}), /* @__PURE__ */ b(P, {
|
|
884
892
|
label: "License",
|
|
885
|
-
value:
|
|
886
|
-
options:
|
|
887
|
-
onChange:
|
|
893
|
+
value: L,
|
|
894
|
+
options: $,
|
|
895
|
+
onChange: Ne
|
|
888
896
|
})]
|
|
889
897
|
})
|
|
890
898
|
]
|
|
891
|
-
}),
|
|
899
|
+
}), H > 0 && /* @__PURE__ */ x("div", {
|
|
892
900
|
className: "mt-4 flex flex-wrap items-center gap-2 border-t border-border-default pt-4",
|
|
893
901
|
children: [
|
|
894
902
|
/* @__PURE__ */ b("span", {
|
|
895
903
|
className: "text-xs font-medium text-text-muted",
|
|
896
904
|
children: "Active filters:"
|
|
897
905
|
}),
|
|
898
|
-
|
|
906
|
+
E !== "all" && /* @__PURE__ */ x("button", {
|
|
899
907
|
type: "button",
|
|
900
|
-
onClick: () =>
|
|
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
911
|
/* @__PURE__ */ b("span", {
|
|
@@ -905,16 +913,16 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
905
913
|
children: "Type:"
|
|
906
914
|
}),
|
|
907
915
|
" ",
|
|
908
|
-
|
|
916
|
+
E,
|
|
909
917
|
/* @__PURE__ */ b(y, {
|
|
910
918
|
className: "size-3",
|
|
911
919
|
"aria-hidden": "true"
|
|
912
920
|
})
|
|
913
921
|
]
|
|
914
922
|
}),
|
|
915
|
-
|
|
923
|
+
A !== "all" && /* @__PURE__ */ x("button", {
|
|
916
924
|
type: "button",
|
|
917
|
-
onClick: () =>
|
|
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
928
|
/* @__PURE__ */ b("span", {
|
|
@@ -922,16 +930,16 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
922
930
|
children: "Price:"
|
|
923
931
|
}),
|
|
924
932
|
" ",
|
|
925
|
-
|
|
933
|
+
Re.find((e) => e.value === A)?.label,
|
|
926
934
|
/* @__PURE__ */ b(y, {
|
|
927
935
|
className: "size-3",
|
|
928
936
|
"aria-hidden": "true"
|
|
929
937
|
})
|
|
930
938
|
]
|
|
931
939
|
}),
|
|
932
|
-
|
|
940
|
+
M !== "any" && /* @__PURE__ */ x("button", {
|
|
933
941
|
type: "button",
|
|
934
|
-
onClick: () =>
|
|
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
945
|
/* @__PURE__ */ b("span", {
|
|
@@ -939,16 +947,16 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
939
947
|
children: "Rating:"
|
|
940
948
|
}),
|
|
941
949
|
" ",
|
|
942
|
-
|
|
950
|
+
ze.find((e) => e.value === M)?.label,
|
|
943
951
|
/* @__PURE__ */ b(y, {
|
|
944
952
|
className: "size-3",
|
|
945
953
|
"aria-hidden": "true"
|
|
946
954
|
})
|
|
947
955
|
]
|
|
948
956
|
}),
|
|
949
|
-
|
|
957
|
+
I !== "all" && /* @__PURE__ */ x("button", {
|
|
950
958
|
type: "button",
|
|
951
|
-
onClick: () =>
|
|
959
|
+
onClick: () => Me("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
962
|
/* @__PURE__ */ b("span", {
|
|
@@ -956,16 +964,16 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
956
964
|
children: "Category:"
|
|
957
965
|
}),
|
|
958
966
|
" ",
|
|
959
|
-
|
|
967
|
+
I,
|
|
960
968
|
/* @__PURE__ */ b(y, {
|
|
961
969
|
className: "size-3",
|
|
962
970
|
"aria-hidden": "true"
|
|
963
971
|
})
|
|
964
972
|
]
|
|
965
973
|
}),
|
|
966
|
-
|
|
974
|
+
F !== "all" && /* @__PURE__ */ x("button", {
|
|
967
975
|
type: "button",
|
|
968
|
-
onClick: () =>
|
|
976
|
+
onClick: () => je("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
979
|
/* @__PURE__ */ b("span", {
|
|
@@ -973,16 +981,16 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
973
981
|
children: "Nature:"
|
|
974
982
|
}),
|
|
975
983
|
" ",
|
|
976
|
-
|
|
984
|
+
Be.find((e) => e.value === F)?.label,
|
|
977
985
|
/* @__PURE__ */ b(y, {
|
|
978
986
|
className: "size-3",
|
|
979
987
|
"aria-hidden": "true"
|
|
980
988
|
})
|
|
981
989
|
]
|
|
982
990
|
}),
|
|
983
|
-
|
|
991
|
+
L !== "all" && /* @__PURE__ */ x("button", {
|
|
984
992
|
type: "button",
|
|
985
|
-
onClick: () =>
|
|
993
|
+
onClick: () => Ne("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
996
|
/* @__PURE__ */ b("span", {
|
|
@@ -990,16 +998,16 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
990
998
|
children: "License:"
|
|
991
999
|
}),
|
|
992
1000
|
" ",
|
|
993
|
-
|
|
1001
|
+
$.find((e) => e.value === L)?.label,
|
|
994
1002
|
/* @__PURE__ */ b(y, {
|
|
995
1003
|
className: "size-3",
|
|
996
1004
|
"aria-hidden": "true"
|
|
997
1005
|
})
|
|
998
1006
|
]
|
|
999
1007
|
}),
|
|
1000
|
-
|
|
1008
|
+
R && /* @__PURE__ */ x("button", {
|
|
1001
1009
|
type: "button",
|
|
1002
|
-
onClick: () =>
|
|
1010
|
+
onClick: () => Pe(!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
1013
|
/* @__PURE__ */ b(_, { className: "size-3" }),
|
|
@@ -1020,7 +1028,8 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
1020
1028
|
children: /* @__PURE__ */ x("div", {
|
|
1021
1029
|
className: "mx-auto max-w-7xl space-y-8 p-6",
|
|
1022
1030
|
children: [
|
|
1023
|
-
|
|
1031
|
+
/* @__PURE__ */ b(we, { children: "The marketplace is where you discover and install apps, agents, workflows, nodes and widgets that extend your workspaces. Browse featured and trending picks, filter by type or category, search for something specific, then open any product to view pricing and reviews before adding it to your cart." }),
|
|
1032
|
+
X && /* @__PURE__ */ x("div", {
|
|
1024
1033
|
role: "alert",
|
|
1025
1034
|
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
1035
|
children: [
|
|
@@ -1031,129 +1040,111 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
1031
1040
|
}),
|
|
1032
1041
|
/* @__PURE__ */ b("p", {
|
|
1033
1042
|
className: "mb-4 text-sm text-status-error-text",
|
|
1034
|
-
children:
|
|
1043
|
+
children: X.message || "An error occurred while fetching products"
|
|
1035
1044
|
}),
|
|
1036
1045
|
/* @__PURE__ */ b("button", {
|
|
1037
1046
|
type: "button",
|
|
1038
|
-
onClick: () =>
|
|
1047
|
+
onClick: () => et(),
|
|
1039
1048
|
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
1049
|
children: "Try Again"
|
|
1041
1050
|
})
|
|
1042
1051
|
]
|
|
1043
1052
|
}),
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
!
|
|
1053
|
+
$e && !X && /* @__PURE__ */ b(Ae, {}),
|
|
1054
|
+
!$e && !X && /* @__PURE__ */ x(ve, { children: [
|
|
1055
|
+
!V && E === "all" && U.length > 0 && /* @__PURE__ */ b(ke, {
|
|
1047
1056
|
dataTour: "store-marketplace-hero-section",
|
|
1048
|
-
featuredProducts:
|
|
1049
|
-
onProductClick:
|
|
1057
|
+
featuredProducts: U,
|
|
1058
|
+
onProductClick: Z
|
|
1050
1059
|
}),
|
|
1051
|
-
|
|
1060
|
+
at.length > 1 && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
|
|
1052
1061
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
1053
1062
|
children: "Browse by Type"
|
|
1054
1063
|
}), /* @__PURE__ */ b("div", {
|
|
1055
1064
|
className: "flex flex-wrap gap-2",
|
|
1056
1065
|
"data-tour": "store-marketplace-type-categories",
|
|
1057
|
-
children:
|
|
1066
|
+
children: at.map((e) => /* @__PURE__ */ b(Oe, {
|
|
1058
1067
|
typeId: e.id,
|
|
1059
1068
|
name: e.name,
|
|
1060
1069
|
count: e.count,
|
|
1061
|
-
active:
|
|
1062
|
-
onClick: () =>
|
|
1070
|
+
active: E === e.id,
|
|
1071
|
+
onClick: () => k(e.id)
|
|
1063
1072
|
}, e.id))
|
|
1064
1073
|
})] }),
|
|
1065
|
-
|
|
1074
|
+
V && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1066
1075
|
icon: de,
|
|
1067
|
-
title:
|
|
1068
|
-
subtitle: `${
|
|
1069
|
-
}),
|
|
1076
|
+
title: B ? "Search Results" : "Filtered Results",
|
|
1077
|
+
subtitle: `${q} app${q === 1 ? "" : "s"} found`
|
|
1078
|
+
}), tt.length > 0 ? /* @__PURE__ */ b("div", {
|
|
1070
1079
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
1071
1080
|
"data-tour": "store-marketplace-product-grid",
|
|
1072
|
-
children:
|
|
1081
|
+
children: tt.map((e) => /* @__PURE__ */ b(D, {
|
|
1073
1082
|
product: e,
|
|
1074
|
-
onClick: () =>
|
|
1083
|
+
onClick: () => Z(e)
|
|
1075
1084
|
}, e.id))
|
|
1076
|
-
}) : /* @__PURE__ */
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
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
|
-
]
|
|
1085
|
+
}) : /* @__PURE__ */ b(Ce, {
|
|
1086
|
+
illustration: "empty-search",
|
|
1087
|
+
title: "No apps match your filters",
|
|
1088
|
+
description: "Try adjusting your filter criteria or clearing filters to see more results.",
|
|
1089
|
+
action: /* @__PURE__ */ b("button", {
|
|
1090
|
+
type: "button",
|
|
1091
|
+
onClick: Ge,
|
|
1092
|
+
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",
|
|
1093
|
+
children: "Clear All Filters"
|
|
1094
|
+
})
|
|
1095
1095
|
})] }),
|
|
1096
|
-
!
|
|
1097
|
-
|
|
1096
|
+
!V && E === "all" && /* @__PURE__ */ x(ve, { children: [
|
|
1097
|
+
W.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1098
1098
|
icon: _e,
|
|
1099
1099
|
title: "Most Downloaded",
|
|
1100
1100
|
subtitle: "Top picks by our community"
|
|
1101
1101
|
}), /* @__PURE__ */ b("div", {
|
|
1102
1102
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
1103
1103
|
"data-tour": "store-marketplace-most-downloaded",
|
|
1104
|
-
children:
|
|
1104
|
+
children: W.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
|
|
1105
1105
|
product: e,
|
|
1106
|
-
onClick: () =>
|
|
1106
|
+
onClick: () => Z(e)
|
|
1107
1107
|
}, e.id))
|
|
1108
1108
|
})] }),
|
|
1109
|
-
|
|
1109
|
+
G.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1110
1110
|
icon: ce,
|
|
1111
1111
|
title: "New Releases",
|
|
1112
1112
|
subtitle: "Recently published apps"
|
|
1113
1113
|
}), /* @__PURE__ */ b("div", {
|
|
1114
1114
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
1115
|
-
children:
|
|
1115
|
+
children: G.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
|
|
1116
1116
|
product: e,
|
|
1117
|
-
onClick: () =>
|
|
1117
|
+
onClick: () => Z(e)
|
|
1118
1118
|
}, e.id))
|
|
1119
1119
|
})] }),
|
|
1120
|
-
|
|
1120
|
+
K.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1121
1121
|
icon: fe,
|
|
1122
1122
|
title: "Free Apps",
|
|
1123
1123
|
subtitle: "No cost, full functionality"
|
|
1124
1124
|
}), /* @__PURE__ */ b("div", {
|
|
1125
1125
|
className: "grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6",
|
|
1126
|
-
children:
|
|
1126
|
+
children: K.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
|
|
1127
1127
|
product: e,
|
|
1128
|
-
onClick: () =>
|
|
1128
|
+
onClick: () => Z(e),
|
|
1129
1129
|
variant: "compact"
|
|
1130
1130
|
}, e.id))
|
|
1131
1131
|
})] }),
|
|
1132
|
-
|
|
1132
|
+
Q.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1133
1133
|
icon: u,
|
|
1134
1134
|
title: "All Apps",
|
|
1135
|
-
subtitle: `${
|
|
1135
|
+
subtitle: `${Q.length} apps available`
|
|
1136
1136
|
}), /* @__PURE__ */ b("div", {
|
|
1137
1137
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
1138
|
-
children:
|
|
1138
|
+
children: Q.map((e) => /* @__PURE__ */ b(D, {
|
|
1139
1139
|
product: e,
|
|
1140
|
-
onClick: () =>
|
|
1140
|
+
onClick: () => Z(e)
|
|
1141
1141
|
}, e.id))
|
|
1142
1142
|
})] })
|
|
1143
1143
|
] }),
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
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
|
-
]
|
|
1144
|
+
Q.length === 0 && /* @__PURE__ */ b(Ce, {
|
|
1145
|
+
illustration: "onboarding",
|
|
1146
|
+
title: "No apps available yet",
|
|
1147
|
+
description: "The marketplace is empty. Check back soon for new apps, workflows, and integrations."
|
|
1157
1148
|
})
|
|
1158
1149
|
] })
|
|
1159
1150
|
]
|
|
@@ -1162,14 +1153,14 @@ var Se = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
1162
1153
|
/* @__PURE__ */ b(ee, {
|
|
1163
1154
|
isOpen: ue,
|
|
1164
1155
|
onClose: p,
|
|
1165
|
-
onCheckout:
|
|
1156
|
+
onCheckout: it,
|
|
1166
1157
|
cartItems: h,
|
|
1167
1158
|
itemCount: m,
|
|
1168
1159
|
subtotal: g,
|
|
1169
|
-
tax:
|
|
1170
|
-
total:
|
|
1171
|
-
updateQuantity:
|
|
1172
|
-
removeProduct:
|
|
1160
|
+
tax: xe,
|
|
1161
|
+
total: De,
|
|
1162
|
+
updateQuantity: S,
|
|
1163
|
+
removeProduct: C
|
|
1173
1164
|
})
|
|
1174
1165
|
]
|
|
1175
1166
|
});
|