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