@burdenoff/microfe-store 2026.625.2 → 2026.625.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StoreRoutes.js +3 -3
- package/dist/StoreRoutes.js.map +1 -1
- package/dist/components/AccessDenied.js +3 -3
- package/dist/components/AccessDenied.js.map +1 -1
- package/dist/components/InstallAppModal.js +107 -120
- package/dist/components/InstallAppModal.js.map +1 -1
- package/dist/components/cart/CartDrawer.js +10 -10
- package/dist/components/cart/CartDrawer.js.map +1 -1
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/CombinedGraphQLErrors.js +1 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/errors/utils.js +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/core/ApolloLink.js +2 -2
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/subscriptions/index.js +2 -2
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/link/utils/createOperation.js +1 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/graphql/print.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/caches.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/checkDocument.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getMainDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/getOperationDefinition.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/globals/global.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/makeUniqueId.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/memoize.js +2 -2
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/internal/stringifyForDisplay.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/invariant/index.js +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
- package/dist/node_modules/@apollo/client/version.js +6 -0
- package/dist/node_modules/@apollo/client/version.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_caches@1.0.1/node_modules/@wry → @wry}/caches/lib/weak.js +1 -1
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
- package/dist/node_modules/{.bun/@wry_trie@0.5.0/node_modules/@wry → @wry}/trie/lib/index.js +1 -1
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/client.js +1 -1
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/common-CGW11Fyb.js +1 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/NotificationFactories.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscriber.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/Subscription.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/config.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/observable/empty.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/scheduler/timeoutProvider.js +2 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/symbol/observable.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/UnsubscriptionError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/createErrorClass.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/errorContext.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/pipe.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/node_modules/{.bun/rxjs@7.8.2/node_modules/rxjs → rxjs}/dist/esm5/internal/util/reportUnhandledError.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/node_modules/{.bun/tslib@2.8.1 → rxjs}/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/pages/AdminDashboardPage.js +90 -89
- package/dist/pages/AdminDashboardPage.js.map +1 -1
- package/dist/pages/AdminReviewModerationPage.js +58 -56
- package/dist/pages/AdminReviewModerationPage.js.map +1 -1
- package/dist/pages/AdminStoresPage.js +391 -372
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +134 -148
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/AppDetailPage.js +123 -120
- package/dist/pages/AppDetailPage.js.map +1 -1
- package/dist/pages/AppSettingsPage.js +70 -297
- package/dist/pages/AppSettingsPage.js.map +1 -1
- package/dist/pages/CartPage.js +65 -76
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +71 -100
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +368 -378
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +67 -75
- package/dist/pages/MyLicensesPage.js.map +1 -1
- package/dist/pages/OrderConfirmationPage.js +38 -37
- package/dist/pages/OrderConfirmationPage.js.map +1 -1
- package/dist/pages/OrdersPage.js +53 -64
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +101 -98
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/dist/pages/ProductReviewsPage.js +2 -2
- package/dist/pages/ProductReviewsPage.js.map +1 -1
- package/dist/pages/PublisherDashboardPage.js +93 -92
- package/dist/pages/PublisherDashboardPage.js.map +1 -1
- package/dist/pages/PublisherRevenuePage.js +61 -60
- package/dist/pages/PublisherRevenuePage.js.map +1 -1
- package/dist/pages/PublisherSubmissionsPage.js +97 -96
- package/dist/pages/PublisherSubmissionsPage.js.map +1 -1
- package/dist/pages/PublisherSubmitPage.js +189 -184
- package/dist/pages/PublisherSubmitPage.js.map +1 -1
- package/dist/providers/StoreProvider.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -9
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -10
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -8
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js +0 -6
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/.bun/@wry_caches@1.0.1/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/.bun/@wry_trie@0.5.0/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +0 -1
- /package/dist/node_modules/{.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo → @apollo}/client/utilities/caching/sizes.js +0 -0
|
@@ -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
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { useNavigate as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
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
|
|
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:
|
|
36
|
-
WORKFLOW:
|
|
36
|
+
CONSOLE: m,
|
|
37
|
+
WORKFLOW: p,
|
|
37
38
|
NODE: u,
|
|
38
|
-
WIDGET:
|
|
39
|
-
VIBEMODULE:
|
|
40
|
-
DASHBOARD:
|
|
41
|
-
PARSER:
|
|
39
|
+
WIDGET: h,
|
|
40
|
+
VIBEMODULE: h,
|
|
41
|
+
DASHBOARD: m,
|
|
42
|
+
PARSER: de,
|
|
42
43
|
DATASINK: le,
|
|
43
44
|
APP: u,
|
|
44
|
-
TEMPLATE:
|
|
45
|
-
INTEGRATION:
|
|
46
|
-
EXTENSION:
|
|
47
|
-
THEME:
|
|
48
|
-
PLUGIN:
|
|
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__ */
|
|
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__ */
|
|
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-
|
|
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__ */
|
|
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__ */
|
|
63
|
+
children: [/* @__PURE__ */ y(g, { className: "size-3" }), "Featured"]
|
|
63
64
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ b("div", {
|
|
65
66
|
className: "flex items-start gap-4",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
74
|
+
}) : /* @__PURE__ */ y(E, {
|
|
74
75
|
type: e.type,
|
|
75
76
|
className: "size-10",
|
|
76
77
|
style: { color: r }
|
|
77
78
|
})
|
|
78
|
-
}), /* @__PURE__ */
|
|
79
|
+
}), /* @__PURE__ */ b("div", {
|
|
79
80
|
className: "flex-1 overflow-hidden",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
84
|
+
}), /* @__PURE__ */ b("p", {
|
|
84
85
|
className: "flex items-center gap-2 text-sm text-text-muted",
|
|
85
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
97
|
-
className: "mt-4 flex items-center justify-between border-t border-border-
|
|
98
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
101
|
+
children: [/* @__PURE__ */ b("span", {
|
|
101
102
|
className: "flex items-center gap-1 text-sm text-text-muted",
|
|
102
|
-
children: [/* @__PURE__ */
|
|
103
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
106
|
+
children: [/* @__PURE__ */ y(ue, { className: "size-4" }), x(e.downloads)]
|
|
106
107
|
})]
|
|
107
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
132
|
+
/* @__PURE__ */ b("div", {
|
|
132
133
|
className: "flex-1 overflow-hidden",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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-
|
|
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__ */
|
|
157
|
+
/* @__PURE__ */ b("div", {
|
|
157
158
|
className: "flex items-start gap-3",
|
|
158
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
166
|
+
}) : /* @__PURE__ */ y(E, {
|
|
166
167
|
type: e.type,
|
|
167
168
|
className: "size-9",
|
|
168
169
|
style: { color: r }
|
|
169
170
|
})
|
|
170
|
-
}), /* @__PURE__ */
|
|
171
|
+
}), /* @__PURE__ */ b("div", {
|
|
171
172
|
className: "flex-1 overflow-hidden",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
176
|
+
}), /* @__PURE__ */ b("p", {
|
|
176
177
|
className: "flex items-center gap-1.5 text-xs text-text-muted",
|
|
177
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
189
|
+
/* @__PURE__ */ b("div", {
|
|
189
190
|
className: "mt-3 flex items-center justify-between",
|
|
190
|
-
children: [/* @__PURE__ */
|
|
191
|
+
children: [/* @__PURE__ */ b("div", {
|
|
191
192
|
className: "flex items-center gap-2",
|
|
192
193
|
children: [
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ b("span", {
|
|
194
195
|
className: "flex items-center gap-0.5 text-xs text-text-muted",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ y(_, { className: "size-3.5 fill-current text-status-warning-text" }), (e.rating ?? 0).toFixed(1)]
|
|
196
197
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ y("span", {
|
|
198
199
|
className: "text-xs text-text-muted",
|
|
199
200
|
children: "·"
|
|
200
201
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ b("span", {
|
|
202
203
|
className: "text-xs text-text-muted",
|
|
203
|
-
children: [
|
|
204
|
+
children: [x(e.downloads), " downloads"]
|
|
204
205
|
})
|
|
205
206
|
]
|
|
206
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
216
|
+
children: [/* @__PURE__ */ b("div", {
|
|
216
217
|
className: "flex items-center gap-3",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
220
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
224
|
+
}), n && /* @__PURE__ */ y("p", {
|
|
224
225
|
className: "text-sm text-text-muted",
|
|
225
226
|
children: n
|
|
226
227
|
})] })]
|
|
227
|
-
}), r && /* @__PURE__ */
|
|
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__ */
|
|
232
|
+
children: ["View all", /* @__PURE__ */ y(se, { className: "size-4" })]
|
|
232
233
|
})]
|
|
233
|
-
}),
|
|
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__ */
|
|
239
|
+
/* @__PURE__ */ y(E, {
|
|
239
240
|
type: e,
|
|
240
241
|
className: "size-4"
|
|
241
242
|
}),
|
|
242
243
|
t,
|
|
243
|
-
/* @__PURE__ */
|
|
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
|
-
}),
|
|
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__ */
|
|
253
|
+
return /* @__PURE__ */ b(Se, {
|
|
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
|
-
/* @__PURE__ */
|
|
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__ */
|
|
263
|
+
/* @__PURE__ */ b("div", {
|
|
261
264
|
className: "relative z-10 flex items-center gap-8",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ b("div", {
|
|
263
266
|
className: "flex-1",
|
|
264
267
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ b("div", {
|
|
266
269
|
className: "mb-4 flex items-center gap-2",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
270
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
286
|
+
/* @__PURE__ */ b("div", {
|
|
284
287
|
className: "mb-6 flex items-center gap-4",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ b("span", {
|
|
286
289
|
className: "flex items-center gap-1 text-sm",
|
|
287
290
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
305
|
+
}), /* @__PURE__ */ b("span", {
|
|
303
306
|
className: "flex items-center gap-1 text-sm text-text-muted",
|
|
304
307
|
children: [
|
|
305
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ y(ue, { className: "size-4" }),
|
|
306
309
|
a.downloads.toLocaleString(),
|
|
307
310
|
" downloads"
|
|
308
311
|
]
|
|
309
312
|
})]
|
|
310
313
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
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__ */
|
|
321
|
+
}), /* @__PURE__ */ y("div", {
|
|
319
322
|
className: "hidden flex-shrink-0 lg:block",
|
|
320
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
347
|
-
className: "h-full animate-pulse rounded-2xl border border-border-
|
|
348
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
357
|
+
}), /* @__PURE__ */ b("div", {
|
|
355
358
|
className: "mt-4 space-y-2",
|
|
356
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
361
|
+
}) : e === "compact" ? /* @__PURE__ */ b("div", {
|
|
359
362
|
className: "flex animate-pulse items-center gap-3 p-3",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
365
|
-
className: "animate-pulse rounded-xl border border-border-
|
|
366
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
375
|
+
}), /* @__PURE__ */ b("div", {
|
|
373
376
|
className: "mt-3 space-y-2",
|
|
374
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
381
|
+
children: [/* @__PURE__ */ b("div", {
|
|
379
382
|
className: "flex items-center gap-8",
|
|
380
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ b("div", {
|
|
381
384
|
className: "flex-1 space-y-4",
|
|
382
385
|
children: [
|
|
383
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ b("div", {
|
|
384
387
|
className: "flex gap-2",
|
|
385
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
388
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
395
|
+
/* @__PURE__ */ b("div", {
|
|
393
396
|
className: "flex gap-4",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
399
|
+
/* @__PURE__ */ y("div", { className: "h-12 w-36 rounded-lg bg-bg-sunken" })
|
|
397
400
|
]
|
|
398
|
-
}), /* @__PURE__ */
|
|
399
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
419
|
+
], M = () => /* @__PURE__ */ b("div", {
|
|
417
420
|
className: "space-y-4",
|
|
418
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
428
|
+
}), N = () => /* @__PURE__ */ b("div", {
|
|
426
429
|
className: "mb-4 flex items-center justify-between",
|
|
427
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ b("div", {
|
|
428
431
|
className: "flex items-center gap-3",
|
|
429
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
434
|
-
}),
|
|
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__ */
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
/* @__PURE__ */
|
|
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__ */
|
|
451
|
+
]].map((e, t) => /* @__PURE__ */ y(k, {}, t))
|
|
449
452
|
})] }),
|
|
450
|
-
/* @__PURE__ */
|
|
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__ */
|
|
462
|
+
]].map((e, t) => /* @__PURE__ */ y(k, {}, t))
|
|
460
463
|
})] }),
|
|
461
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
482
|
+
/* @__PURE__ */ y("span", {
|
|
480
483
|
className: "sr-only",
|
|
481
484
|
children: e
|
|
482
485
|
}),
|
|
483
|
-
/* @__PURE__ */
|
|
486
|
+
/* @__PURE__ */ b("span", {
|
|
484
487
|
className: "text-text-muted",
|
|
485
488
|
children: [e, ":"]
|
|
486
489
|
}),
|
|
487
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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],
|
|
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() !== "" ||
|
|
597
|
-
|
|
598
|
-
}, U = (
|
|
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:
|
|
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()),
|
|
605
|
-
let t =
|
|
606
|
-
t && (e.filter.pricingModel = t),
|
|
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
|
-
|
|
614
|
+
E,
|
|
612
615
|
L,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
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:
|
|
621
|
-
|
|
622
|
-
let
|
|
623
|
-
|
|
624
|
-
!V.trim() || X ||
|
|
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:
|
|
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]),
|
|
632
|
-
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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, $]),
|
|
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__ */
|
|
692
|
+
return /* @__PURE__ */ b("div", {
|
|
690
693
|
className: "flex h-full flex-col",
|
|
691
694
|
children: [
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
-
className: "border-b border-border-
|
|
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__ */
|
|
698
|
+
/* @__PURE__ */ y(xe, { intensity: "subtle" }),
|
|
699
|
+
/* @__PURE__ */ b("div", {
|
|
696
700
|
className: "flex items-center justify-between",
|
|
697
|
-
children: [/* @__PURE__ */
|
|
701
|
+
children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("h1", {
|
|
698
702
|
className: "text-2xl font-bold text-text-primary",
|
|
699
|
-
children: [
|
|
700
|
-
|
|
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__ */
|
|
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__ */
|
|
717
|
+
/* @__PURE__ */ y(ge, { className: "size-5" }),
|
|
710
718
|
f("pages.marketplace.cart", { defaultValue: "Cart" }),
|
|
711
|
-
|
|
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:
|
|
721
|
+
children: p
|
|
714
722
|
})
|
|
715
723
|
]
|
|
716
724
|
})]
|
|
717
725
|
}),
|
|
718
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ b("div", {
|
|
719
727
|
className: "mt-4",
|
|
720
|
-
children: [/* @__PURE__ */
|
|
728
|
+
children: [/* @__PURE__ */ b("div", {
|
|
721
729
|
className: "relative",
|
|
722
730
|
children: [
|
|
723
|
-
/* @__PURE__ */
|
|
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__ */
|
|
729
|
-
/* @__PURE__ */
|
|
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:
|
|
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__ */ y("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
|
-
children: /* @__PURE__ */
|
|
752
|
+
children: /* @__PURE__ */ y(v, {
|
|
745
753
|
className: "size-4",
|
|
746
754
|
"aria-hidden": "true"
|
|
747
755
|
})
|
|
748
756
|
})
|
|
749
757
|
]
|
|
750
|
-
}),
|
|
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:
|
|
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__ */
|
|
771
|
+
/* @__PURE__ */ b("div", {
|
|
764
772
|
className: "mt-4 flex flex-wrap items-center gap-3",
|
|
765
773
|
children: [
|
|
766
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ b("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: () => 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__ */
|
|
780
|
+
/* @__PURE__ */ y(_e, { className: "size-4" }),
|
|
773
781
|
f("pages.marketplace.filters", { defaultValue: "Filters" }),
|
|
774
|
-
U > 0 && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
792
|
+
/* @__PURE__ */ b("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 ${
|
|
788
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
798
|
+
/* @__PURE__ */ b("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 ${
|
|
794
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
804
|
+
/* @__PURE__ */ b("button", {
|
|
797
805
|
type: "button",
|
|
798
|
-
onClick: () =>
|
|
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__ */
|
|
808
|
+
children: [/* @__PURE__ */ y(g, { className: "size-3.5" }), "Featured"]
|
|
801
809
|
})
|
|
802
810
|
]
|
|
803
811
|
}),
|
|
804
|
-
H && /* @__PURE__ */
|
|
812
|
+
H && /* @__PURE__ */ b("button", {
|
|
805
813
|
type: "button",
|
|
806
|
-
onClick:
|
|
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__ */
|
|
816
|
+
children: [/* @__PURE__ */ y(v, {
|
|
809
817
|
className: "size-4",
|
|
810
818
|
"aria-hidden": "true"
|
|
811
819
|
}), "Clear all"]
|
|
812
820
|
}),
|
|
813
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ y("div", {
|
|
814
822
|
className: "ml-auto",
|
|
815
823
|
"data-tour": "store-marketplace-section-sort",
|
|
816
|
-
children: /* @__PURE__ */
|
|
824
|
+
children: /* @__PURE__ */ y(P, {
|
|
817
825
|
label: "Sort",
|
|
818
826
|
value: B,
|
|
819
|
-
options:
|
|
820
|
-
onChange: (e) =>
|
|
827
|
+
options: ze,
|
|
828
|
+
onChange: (e) => Ne(e)
|
|
821
829
|
})
|
|
822
830
|
})
|
|
823
831
|
]
|
|
824
832
|
}),
|
|
825
|
-
|
|
826
|
-
className: "mt-4 rounded-lg border border-border-
|
|
827
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
838
|
+
/* @__PURE__ */ b("div", {
|
|
831
839
|
className: "flex flex-col gap-2",
|
|
832
|
-
children: [/* @__PURE__ */
|
|
840
|
+
children: [/* @__PURE__ */ y("span", {
|
|
833
841
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
834
842
|
children: "Pricing"
|
|
835
|
-
}), /* @__PURE__ */
|
|
843
|
+
}), /* @__PURE__ */ y(P, {
|
|
836
844
|
label: "Price",
|
|
837
|
-
value:
|
|
838
|
-
options:
|
|
839
|
-
onChange: (e) =>
|
|
845
|
+
value: A,
|
|
846
|
+
options: Ie,
|
|
847
|
+
onChange: (e) => j(e)
|
|
840
848
|
})]
|
|
841
849
|
}),
|
|
842
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ b("div", {
|
|
843
851
|
className: "flex flex-col gap-2",
|
|
844
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
855
|
+
}), /* @__PURE__ */ y(P, {
|
|
848
856
|
label: "Rating",
|
|
849
|
-
value:
|
|
850
|
-
options:
|
|
851
|
-
onChange: (e) =>
|
|
857
|
+
value: M,
|
|
858
|
+
options: Le,
|
|
859
|
+
onChange: (e) => N(e)
|
|
852
860
|
})]
|
|
853
861
|
}),
|
|
854
|
-
|
|
862
|
+
it.length > 1 && /* @__PURE__ */ b("div", {
|
|
855
863
|
className: "flex flex-col gap-2",
|
|
856
|
-
children: [/* @__PURE__ */
|
|
864
|
+
children: [/* @__PURE__ */ y("span", {
|
|
857
865
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
858
866
|
children: "Category"
|
|
859
|
-
}), /* @__PURE__ */
|
|
867
|
+
}), /* @__PURE__ */ y(P, {
|
|
860
868
|
label: "Category",
|
|
861
869
|
value: L,
|
|
862
|
-
options:
|
|
863
|
-
onChange:
|
|
870
|
+
options: it,
|
|
871
|
+
onChange: Ae
|
|
864
872
|
})]
|
|
865
873
|
}),
|
|
866
|
-
/* @__PURE__ */
|
|
874
|
+
/* @__PURE__ */ b("div", {
|
|
867
875
|
className: "flex flex-col gap-2",
|
|
868
|
-
children: [/* @__PURE__ */
|
|
876
|
+
children: [/* @__PURE__ */ y("span", {
|
|
869
877
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
870
878
|
children: "Nature"
|
|
871
|
-
}), /* @__PURE__ */
|
|
879
|
+
}), /* @__PURE__ */ y(P, {
|
|
872
880
|
label: "Nature",
|
|
873
|
-
value:
|
|
874
|
-
options:
|
|
875
|
-
onChange: (e) =>
|
|
881
|
+
value: F,
|
|
882
|
+
options: Re,
|
|
883
|
+
onChange: (e) => I(e)
|
|
876
884
|
})]
|
|
877
885
|
}),
|
|
878
|
-
|
|
886
|
+
at.length > 1 && /* @__PURE__ */ b("div", {
|
|
879
887
|
className: "flex flex-col gap-2",
|
|
880
|
-
children: [/* @__PURE__ */
|
|
888
|
+
children: [/* @__PURE__ */ y("span", {
|
|
881
889
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
882
890
|
children: "License"
|
|
883
|
-
}), /* @__PURE__ */
|
|
891
|
+
}), /* @__PURE__ */ y(P, {
|
|
884
892
|
label: "License",
|
|
885
893
|
value: R,
|
|
886
|
-
options:
|
|
887
|
-
onChange:
|
|
894
|
+
options: at,
|
|
895
|
+
onChange: je
|
|
888
896
|
})]
|
|
889
897
|
})
|
|
890
898
|
]
|
|
891
|
-
}), U > 0 && /* @__PURE__ */
|
|
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__ */
|
|
902
|
+
/* @__PURE__ */ y("span", {
|
|
895
903
|
className: "text-xs font-medium text-text-muted",
|
|
896
904
|
children: "Active filters:"
|
|
897
905
|
}),
|
|
898
|
-
|
|
906
|
+
E !== "all" && /* @__PURE__ */ b("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
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ y("span", {
|
|
904
912
|
className: "text-text-muted",
|
|
905
913
|
children: "Type:"
|
|
906
914
|
}),
|
|
907
915
|
" ",
|
|
908
|
-
|
|
909
|
-
/* @__PURE__ */
|
|
916
|
+
E,
|
|
917
|
+
/* @__PURE__ */ y(v, {
|
|
910
918
|
className: "size-3",
|
|
911
919
|
"aria-hidden": "true"
|
|
912
920
|
})
|
|
913
921
|
]
|
|
914
922
|
}),
|
|
915
|
-
|
|
923
|
+
A !== "all" && /* @__PURE__ */ b("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
|
-
/* @__PURE__ */
|
|
928
|
+
/* @__PURE__ */ y("span", {
|
|
921
929
|
className: "text-text-muted",
|
|
922
930
|
children: "Price:"
|
|
923
931
|
}),
|
|
924
932
|
" ",
|
|
925
|
-
|
|
926
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
940
|
+
M !== "any" && /* @__PURE__ */ b("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
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ y("span", {
|
|
938
946
|
className: "text-text-muted",
|
|
939
947
|
children: "Rating:"
|
|
940
948
|
}),
|
|
941
949
|
" ",
|
|
942
|
-
|
|
943
|
-
/* @__PURE__ */
|
|
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__ */
|
|
957
|
+
L !== "all" && /* @__PURE__ */ b("button", {
|
|
950
958
|
type: "button",
|
|
951
|
-
onClick: () =>
|
|
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__ */
|
|
962
|
+
/* @__PURE__ */ y("span", {
|
|
955
963
|
className: "text-text-muted",
|
|
956
964
|
children: "Category:"
|
|
957
965
|
}),
|
|
958
966
|
" ",
|
|
959
967
|
L,
|
|
960
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ y(v, {
|
|
961
969
|
className: "size-3",
|
|
962
970
|
"aria-hidden": "true"
|
|
963
971
|
})
|
|
964
972
|
]
|
|
965
973
|
}),
|
|
966
|
-
|
|
974
|
+
F !== "all" && /* @__PURE__ */ b("button", {
|
|
967
975
|
type: "button",
|
|
968
|
-
onClick: () =>
|
|
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__ */
|
|
979
|
+
/* @__PURE__ */ y("span", {
|
|
972
980
|
className: "text-text-muted",
|
|
973
981
|
children: "Nature:"
|
|
974
982
|
}),
|
|
975
983
|
" ",
|
|
976
|
-
|
|
977
|
-
/* @__PURE__ */
|
|
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__ */
|
|
991
|
+
R !== "all" && /* @__PURE__ */ b("button", {
|
|
984
992
|
type: "button",
|
|
985
|
-
onClick: () =>
|
|
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__ */
|
|
996
|
+
/* @__PURE__ */ y("span", {
|
|
989
997
|
className: "text-text-muted",
|
|
990
998
|
children: "License:"
|
|
991
999
|
}),
|
|
992
1000
|
" ",
|
|
993
|
-
|
|
994
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1008
|
+
z && /* @__PURE__ */ b("button", {
|
|
1001
1009
|
type: "button",
|
|
1002
|
-
onClick: () =>
|
|
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__ */
|
|
1013
|
+
/* @__PURE__ */ y(g, { className: "size-3" }),
|
|
1006
1014
|
"Featured Only",
|
|
1007
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1026
|
+
/* @__PURE__ */ y("main", {
|
|
1019
1027
|
className: "flex-1 overflow-y-auto",
|
|
1020
|
-
children: /* @__PURE__ */
|
|
1028
|
+
children: /* @__PURE__ */ b("div", {
|
|
1021
1029
|
className: "mx-auto max-w-7xl space-y-8 p-6",
|
|
1022
1030
|
children: [
|
|
1023
|
-
Z && /* @__PURE__ */
|
|
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__ */
|
|
1028
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
1044
|
+
/* @__PURE__ */ y("button", {
|
|
1037
1045
|
type: "button",
|
|
1038
|
-
onClick: () =>
|
|
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
|
-
|
|
1045
|
-
!
|
|
1046
|
-
!H &&
|
|
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
|
-
|
|
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__ */
|
|
1062
|
+
}), /* @__PURE__ */ y("div", {
|
|
1055
1063
|
className: "flex flex-wrap gap-2",
|
|
1056
1064
|
"data-tour": "store-marketplace-type-categories",
|
|
1057
|
-
children:
|
|
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:
|
|
1062
|
-
onClick: () =>
|
|
1069
|
+
active: E === e.id,
|
|
1070
|
+
onClick: () => k(e.id)
|
|
1063
1071
|
}, e.id))
|
|
1064
1072
|
})] }),
|
|
1065
|
-
H && /* @__PURE__ */
|
|
1066
|
-
icon:
|
|
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
|
-
}),
|
|
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:
|
|
1080
|
+
children: $e.map((e) => /* @__PURE__ */ y(D, {
|
|
1073
1081
|
product: e,
|
|
1074
1082
|
onClick: () => Q(e)
|
|
1075
1083
|
}, 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
|
-
]
|
|
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 &&
|
|
1097
|
-
G.length > 0 && /* @__PURE__ */
|
|
1098
|
-
icon:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1121
|
-
icon:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
]
|
|
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__ */
|
|
1152
|
+
/* @__PURE__ */ y(ee, {
|
|
1163
1153
|
isOpen: ue,
|
|
1164
|
-
onClose:
|
|
1165
|
-
onCheckout:
|
|
1166
|
-
cartItems:
|
|
1167
|
-
itemCount:
|
|
1168
|
-
subtotal:
|
|
1154
|
+
onClose: de,
|
|
1155
|
+
onCheckout: nt,
|
|
1156
|
+
cartItems: m,
|
|
1157
|
+
itemCount: p,
|
|
1158
|
+
subtotal: h,
|
|
1169
1159
|
tax: Se,
|
|
1170
|
-
total:
|
|
1171
|
-
updateQuantity:
|
|
1172
|
-
removeProduct:
|
|
1160
|
+
total: x,
|
|
1161
|
+
updateQuantity: S,
|
|
1162
|
+
removeProduct: C
|
|
1173
1163
|
})
|
|
1174
1164
|
]
|
|
1175
1165
|
});
|