@burdenoff/microfe-store 2026.625.1 → 2026.625.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +59 -60
- 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 +175 -176
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +33 -34
- 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 +19 -20
- 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
|
@@ -8,11 +8,10 @@ import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nPro
|
|
|
8
8
|
import { AlertCircle as oe, Bot as l, Box as u, Brain as d, ChevronDown as f, ChevronRight as se, Clock as ce, Database as le, Download as ue, FileCode2 as p, Filter as de, Gift as fe, GitBranch as m, LayoutDashboard as h, Loader2 as pe, Puzzle as g, Search as me, ShoppingCart as he, SlidersHorizontal as ge, Sparkles as _, Star as v, TrendingUp as _e, X as y } from "lucide-react";
|
|
9
9
|
import { Fragment as ve, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
10
10
|
import { useNavigate as ye } from "react-router-dom";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { useDebounce as Se } from "@burdenoff/fe-libs/shared/hooks";
|
|
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)",
|
|
@@ -56,7 +55,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
56
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
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",
|
|
@@ -95,7 +94,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
95
94
|
children: e.description || "No description available"
|
|
96
95
|
}),
|
|
97
96
|
/* @__PURE__ */ x("div", {
|
|
98
|
-
className: "mt-4 flex items-center justify-between border-t border-border-
|
|
97
|
+
className: "mt-4 flex items-center justify-between border-t border-border-default pt-4",
|
|
99
98
|
children: [/* @__PURE__ */ x("div", {
|
|
100
99
|
className: "flex items-center gap-3",
|
|
101
100
|
children: [/* @__PURE__ */ x("span", {
|
|
@@ -103,7 +102,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
103
102
|
children: [/* @__PURE__ */ b(v, { className: "size-4 fill-current text-status-warning-text" }), (e.rating ?? 0).toFixed(1)]
|
|
104
103
|
}), /* @__PURE__ */ x("span", {
|
|
105
104
|
className: "flex items-center gap-1 text-sm text-text-muted",
|
|
106
|
-
children: [/* @__PURE__ */ b(ue, { className: "size-4" }),
|
|
105
|
+
children: [/* @__PURE__ */ b(ue, { className: "size-4" }), Se(e.downloads)]
|
|
107
106
|
})]
|
|
108
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",
|
|
@@ -114,7 +113,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
114
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
118
|
/* @__PURE__ */ b("div", {
|
|
120
119
|
className: "flex size-12 flex-shrink-0 items-center justify-center rounded-xl",
|
|
@@ -152,7 +151,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
152
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
156
|
/* @__PURE__ */ x("div", {
|
|
158
157
|
className: "flex items-start gap-3",
|
|
@@ -201,7 +200,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
201
200
|
}),
|
|
202
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
206
|
}), /* @__PURE__ */ b("span", {
|
|
@@ -231,7 +230,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
231
230
|
className: "cursor-pointer flex items-center gap-1 text-sm font-medium text-text-link hover:underline",
|
|
232
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"}`,
|
|
@@ -246,13 +245,13 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
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__ */ x(
|
|
252
|
+
return /* @__PURE__ */ x("div", {
|
|
254
253
|
"data-tour": n,
|
|
255
|
-
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",
|
|
256
255
|
children: [
|
|
257
256
|
/* @__PURE__ */ b("div", {
|
|
258
257
|
className: "absolute inset-0 opacity-10",
|
|
@@ -345,7 +344,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
345
344
|
]
|
|
346
345
|
});
|
|
347
346
|
}, k = ({ variant: e = "default" }) => e === "featured" ? /* @__PURE__ */ x("div", {
|
|
348
|
-
className: "h-full animate-pulse rounded-2xl border border-border-
|
|
347
|
+
className: "h-full animate-pulse rounded-2xl border border-border-default bg-bg-surface p-6",
|
|
349
348
|
children: [/* @__PURE__ */ x("div", {
|
|
350
349
|
className: "flex items-start gap-4",
|
|
351
350
|
children: [/* @__PURE__ */ b("div", { className: "size-16 rounded-2xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
|
|
@@ -363,7 +362,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
363
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" })]
|
|
364
363
|
})]
|
|
365
364
|
}) : /* @__PURE__ */ x("div", {
|
|
366
|
-
className: "animate-pulse rounded-xl border border-border-
|
|
365
|
+
className: "animate-pulse rounded-xl border border-border-default bg-bg-surface p-4",
|
|
367
366
|
children: [/* @__PURE__ */ x("div", {
|
|
368
367
|
className: "flex items-start gap-3",
|
|
369
368
|
children: [/* @__PURE__ */ b("div", { className: "size-14 rounded-xl bg-bg-sunken" }), /* @__PURE__ */ x("div", {
|
|
@@ -432,7 +431,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
432
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" })]
|
|
433
432
|
})]
|
|
434
433
|
}), /* @__PURE__ */ b("div", { className: "h-4 w-16 animate-pulse rounded bg-bg-sunken" })]
|
|
435
|
-
}),
|
|
434
|
+
}), Te = () => /* @__PURE__ */ x("div", {
|
|
436
435
|
className: "mx-auto max-w-7xl space-y-8 p-6",
|
|
437
436
|
children: [
|
|
438
437
|
/* @__PURE__ */ b(A, {}),
|
|
@@ -490,7 +489,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
490
489
|
"aria-label": e,
|
|
491
490
|
value: t,
|
|
492
491
|
onChange: (e) => r(e.target.value),
|
|
493
|
-
className: "min-w-[8rem] appearance-none bg-transparent pr-6 text-sm font-medium text-text-primary focus
|
|
492
|
+
className: "min-w-[8rem] appearance-none bg-transparent pr-6 text-sm font-medium text-text-primary focus:outline-none",
|
|
494
493
|
children: n.map((e) => /* @__PURE__ */ b("option", {
|
|
495
494
|
value: e.value,
|
|
496
495
|
children: e.label
|
|
@@ -500,7 +499,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
500
499
|
]
|
|
501
500
|
});
|
|
502
501
|
}, F = () => {
|
|
503
|
-
let l = ye(), { basePath: d } = e(), { t: f } = ae(), se = re(), le =
|
|
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 = [
|
|
504
503
|
{
|
|
505
504
|
value: "all",
|
|
506
505
|
label: "All Prices"
|
|
@@ -517,7 +516,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
517
516
|
value: "subscription",
|
|
518
517
|
label: "Subscription"
|
|
519
518
|
}
|
|
520
|
-
],
|
|
519
|
+
], Pe = [
|
|
521
520
|
{
|
|
522
521
|
value: "any",
|
|
523
522
|
label: "Any Rating"
|
|
@@ -538,7 +537,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
538
537
|
value: "4.5",
|
|
539
538
|
label: "4.5+ Stars"
|
|
540
539
|
}
|
|
541
|
-
],
|
|
540
|
+
], Fe = [
|
|
542
541
|
{
|
|
543
542
|
value: "all",
|
|
544
543
|
label: "All Types"
|
|
@@ -551,7 +550,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
551
550
|
value: "physical",
|
|
552
551
|
label: "Physical"
|
|
553
552
|
}
|
|
554
|
-
],
|
|
553
|
+
], Ie = [
|
|
555
554
|
{
|
|
556
555
|
value: "relevance",
|
|
557
556
|
label: "Relevance"
|
|
@@ -580,7 +579,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
580
579
|
value: "name-asc",
|
|
581
580
|
label: "Name A-Z"
|
|
582
581
|
}
|
|
583
|
-
],
|
|
582
|
+
], Le = (e) => ({
|
|
584
583
|
relevance: o.Relevance,
|
|
585
584
|
rating: o.Rating,
|
|
586
585
|
downloads: o.Downloads,
|
|
@@ -588,70 +587,70 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
588
587
|
"price-low": o.PriceLow,
|
|
589
588
|
"price-high": o.PriceHigh,
|
|
590
589
|
"name-asc": o.NameAsc
|
|
591
|
-
})[e],
|
|
590
|
+
})[e], Re = (e) => {
|
|
592
591
|
if (e !== "all") return {
|
|
593
592
|
free: i.Free,
|
|
594
593
|
paid: i.PaidOnetime,
|
|
595
594
|
subscription: i.Subscription
|
|
596
595
|
}[e];
|
|
597
|
-
},
|
|
598
|
-
|
|
599
|
-
},
|
|
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(() => {
|
|
600
599
|
let e = {
|
|
601
|
-
sortBy:
|
|
600
|
+
sortBy: Le(B),
|
|
602
601
|
pagination: { limit: 50 }
|
|
603
602
|
};
|
|
604
|
-
if (
|
|
605
|
-
e.filter = {},
|
|
606
|
-
let t =
|
|
607
|
-
t && (e.filter.pricingModel = t),
|
|
603
|
+
if (H) {
|
|
604
|
+
e.filter = {}, V.trim() && (e.filter.search = V.trim()), k !== "all" && (e.filter.type = k), L !== "all" && (e.filter.category = L), I !== "all" && (e.filter.nature = I === "digital" ? a.Digital : a.Physical);
|
|
605
|
+
let t = Re(j);
|
|
606
|
+
t && (e.filter.pricingModel = t), N !== "any" && (e.filter.minRating = parseFloat(N)), z && (e.filter.featured = !0), R !== "all" && (e.filter.license = R);
|
|
608
607
|
}
|
|
609
608
|
return e;
|
|
610
609
|
}, [
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
I,
|
|
614
|
-
F,
|
|
615
|
-
A,
|
|
616
|
-
M,
|
|
617
|
-
R,
|
|
610
|
+
V,
|
|
611
|
+
k,
|
|
618
612
|
L,
|
|
613
|
+
I,
|
|
614
|
+
j,
|
|
615
|
+
N,
|
|
619
616
|
z,
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
617
|
+
R,
|
|
618
|
+
B,
|
|
619
|
+
H
|
|
620
|
+
]), { featured: W, mostDownloaded: G, recentlyAdded: K, freeItems: q, loading: He, error: Ue, refetch: We } = r({ skip: H }), { products: Ge, totalCount: J, facets: Y, loading: X, error: Ke, refetch: qe } = n(H ? Ve : {}, { skip: !H }), Je = H ? X : He, Z = H ? Ke : Ue, Ye = H ? qe : We, Xe = H ? Ge : [], Ze = ie(J);
|
|
621
|
+
Ze.current = J;
|
|
622
|
+
let Qe = ie(le);
|
|
623
|
+
Qe.current = le, ne(() => {
|
|
624
|
+
!V.trim() || X || Qe.current.emit("store.marketplace.searched", {
|
|
625
|
+
query: V,
|
|
626
|
+
resultCount: Ze.current
|
|
628
627
|
});
|
|
629
|
-
}, [
|
|
630
|
-
let
|
|
628
|
+
}, [V, X]);
|
|
629
|
+
let Q = te((e) => {
|
|
631
630
|
l(`${d}/marketplace/product/${e.id}`);
|
|
632
|
-
}, [l, d]),
|
|
631
|
+
}, [l, d]), $e = () => {
|
|
633
632
|
p(), l(`${d}/cart`);
|
|
634
|
-
},
|
|
635
|
-
...U,
|
|
633
|
+
}, $ = s(() => [...new Map([
|
|
636
634
|
...W,
|
|
637
635
|
...G,
|
|
638
|
-
...K
|
|
636
|
+
...K,
|
|
637
|
+
...q
|
|
639
638
|
].map((e) => [e.id, e])).values()], [
|
|
640
|
-
U,
|
|
641
639
|
W,
|
|
642
640
|
G,
|
|
643
|
-
K
|
|
644
|
-
|
|
645
|
-
|
|
641
|
+
K,
|
|
642
|
+
q
|
|
643
|
+
]), et = s(() => {
|
|
644
|
+
if (Y?.types && Y.types.length > 0) return [{
|
|
646
645
|
id: "all",
|
|
647
646
|
name: "All Apps",
|
|
648
|
-
count:
|
|
649
|
-
}, ...
|
|
647
|
+
count: J
|
|
648
|
+
}, ...Y.types.map((e) => ({
|
|
650
649
|
id: e.value,
|
|
651
650
|
name: e.value.charAt(0) + e.value.slice(1).toLowerCase().replace(/_/g, " "),
|
|
652
651
|
count: e.count
|
|
653
652
|
}))];
|
|
654
|
-
let e =
|
|
653
|
+
let e = $.reduce((e, t) => (e.set(t.type, (e.get(t.type) ?? 0) + 1), e), /* @__PURE__ */ new Map()), t = Array.from(e.entries()).flatMap(([e, t]) => t > 0 ? [{
|
|
655
654
|
id: e,
|
|
656
655
|
name: e.charAt(0) + e.slice(1).toLowerCase().replace(/_/g, " "),
|
|
657
656
|
count: t
|
|
@@ -659,39 +658,39 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
659
658
|
return [{
|
|
660
659
|
id: "all",
|
|
661
660
|
name: "All Apps",
|
|
662
|
-
count:
|
|
661
|
+
count: $.length
|
|
663
662
|
}, ...t];
|
|
664
663
|
}, [
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
]),
|
|
664
|
+
Y,
|
|
665
|
+
$,
|
|
666
|
+
J
|
|
667
|
+
]), tt = s(() => Y?.categories && Y.categories.length > 0 ? [{
|
|
669
668
|
value: "all",
|
|
670
669
|
label: "All Categories"
|
|
671
|
-
}, ...
|
|
670
|
+
}, ...Y.categories.map((e) => ({
|
|
672
671
|
value: e.value,
|
|
673
672
|
label: e.value
|
|
674
673
|
}))] : [{
|
|
675
674
|
value: "all",
|
|
676
675
|
label: "All Categories"
|
|
677
|
-
}, ...Array.from(new Set(
|
|
676
|
+
}, ...Array.from(new Set($.flatMap((e) => e.category ? [e.category] : []))).map((e) => ({
|
|
678
677
|
value: e,
|
|
679
678
|
label: e
|
|
680
|
-
})).sort((e, t) => e.label.localeCompare(t.label))], [
|
|
679
|
+
})).sort((e, t) => e.label.localeCompare(t.label))], [Y, $]), nt = s(() => Y?.licenses && Y.licenses.length > 0 ? [{
|
|
681
680
|
value: "all",
|
|
682
681
|
label: "All Licenses"
|
|
683
|
-
}, ...
|
|
682
|
+
}, ...Y.licenses.map((e) => ({
|
|
684
683
|
value: e.value,
|
|
685
684
|
label: e.value
|
|
686
685
|
}))] : [{
|
|
687
686
|
value: "all",
|
|
688
687
|
label: "All Licenses"
|
|
689
|
-
}], [
|
|
688
|
+
}], [Y]);
|
|
690
689
|
return /* @__PURE__ */ x("div", {
|
|
691
690
|
className: "flex h-full flex-col",
|
|
692
691
|
children: [
|
|
693
692
|
/* @__PURE__ */ x("header", {
|
|
694
|
-
className: "border-b border-border-
|
|
693
|
+
className: "border-b border-border-default bg-bg-surface px-6 py-4",
|
|
695
694
|
children: [
|
|
696
695
|
/* @__PURE__ */ x("div", {
|
|
697
696
|
className: "flex items-center justify-between",
|
|
@@ -732,14 +731,14 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
732
731
|
"data-tour": "store-marketplace-search-input",
|
|
733
732
|
"aria-label": f("pages.marketplace.search.label", { defaultValue: "Search marketplace products" }),
|
|
734
733
|
type: "text",
|
|
735
|
-
value:
|
|
736
|
-
onChange: (e) =>
|
|
734
|
+
value: T,
|
|
735
|
+
onChange: (e) => E(e.target.value),
|
|
737
736
|
placeholder: f("pages.marketplace.search.placeholder", { defaultValue: "Search apps, workflows, integrations..." }),
|
|
738
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"
|
|
739
738
|
}),
|
|
740
|
-
|
|
739
|
+
T && /* @__PURE__ */ b("button", {
|
|
741
740
|
type: "button",
|
|
742
|
-
onClick: () =>
|
|
741
|
+
onClick: () => E(""),
|
|
743
742
|
"aria-label": f("pages.marketplace.search.clear", { defaultValue: "Clear search" }),
|
|
744
743
|
className: "cursor-pointer absolute right-4 top-1/2 -translate-y-1/2 text-text-muted transition-colors hover:text-text-primary",
|
|
745
744
|
children: /* @__PURE__ */ b(y, {
|
|
@@ -748,15 +747,15 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
748
747
|
})
|
|
749
748
|
})
|
|
750
749
|
]
|
|
751
|
-
}),
|
|
750
|
+
}), T.trim() && /* @__PURE__ */ b("div", {
|
|
752
751
|
"aria-live": "polite",
|
|
753
752
|
className: "mt-2 flex items-center gap-2 text-sm text-text-muted",
|
|
754
|
-
children:
|
|
755
|
-
|
|
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: [
|
|
754
|
+
J,
|
|
756
755
|
" result",
|
|
757
|
-
|
|
756
|
+
J === 1 ? "" : "s",
|
|
758
757
|
" for “",
|
|
759
|
-
|
|
758
|
+
V,
|
|
760
759
|
"”"
|
|
761
760
|
] })
|
|
762
761
|
})]
|
|
@@ -767,14 +766,14 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
767
766
|
/* @__PURE__ */ x("button", {
|
|
768
767
|
type: "button",
|
|
769
768
|
"data-tour": "store-marketplace-filters-button",
|
|
770
|
-
onClick: () =>
|
|
771
|
-
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"}`,
|
|
772
771
|
children: [
|
|
773
772
|
/* @__PURE__ */ b(ge, { className: "size-4" }),
|
|
774
773
|
f("pages.marketplace.filters", { defaultValue: "Filters" }),
|
|
775
|
-
|
|
774
|
+
U > 0 && /* @__PURE__ */ b("span", {
|
|
776
775
|
className: "flex size-5 items-center justify-center rounded-full bg-action-primary-bg text-xs text-action-primary-text",
|
|
777
|
-
children:
|
|
776
|
+
children: U
|
|
778
777
|
})
|
|
779
778
|
]
|
|
780
779
|
}),
|
|
@@ -784,27 +783,27 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
784
783
|
children: [
|
|
785
784
|
/* @__PURE__ */ x("button", {
|
|
786
785
|
type: "button",
|
|
787
|
-
onClick: () => j
|
|
788
|
-
className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${
|
|
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"}`,
|
|
789
788
|
children: [/* @__PURE__ */ b(fe, { className: "size-3.5" }), "Free"]
|
|
790
789
|
}),
|
|
791
790
|
/* @__PURE__ */ x("button", {
|
|
792
791
|
type: "button",
|
|
793
|
-
onClick: () => N
|
|
794
|
-
className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${
|
|
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"}`,
|
|
795
794
|
children: [/* @__PURE__ */ b(v, { className: "size-3.5" }), "4+ Stars"]
|
|
796
795
|
}),
|
|
797
796
|
/* @__PURE__ */ x("button", {
|
|
798
797
|
type: "button",
|
|
799
|
-
onClick: () =>
|
|
800
|
-
className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${
|
|
798
|
+
onClick: () => ke(!z),
|
|
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"}`,
|
|
801
800
|
children: [/* @__PURE__ */ b(_, { className: "size-3.5" }), "Featured"]
|
|
802
801
|
})
|
|
803
802
|
]
|
|
804
803
|
}),
|
|
805
|
-
|
|
804
|
+
H && /* @__PURE__ */ x("button", {
|
|
806
805
|
type: "button",
|
|
807
|
-
onClick:
|
|
806
|
+
onClick: Be,
|
|
808
807
|
className: "cursor-pointer flex items-center gap-1 text-sm text-text-muted transition-colors hover:text-text-primary",
|
|
809
808
|
children: [/* @__PURE__ */ b(y, {
|
|
810
809
|
className: "size-4",
|
|
@@ -816,15 +815,15 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
816
815
|
"data-tour": "store-marketplace-section-sort",
|
|
817
816
|
children: /* @__PURE__ */ b(P, {
|
|
818
817
|
label: "Sort",
|
|
819
|
-
value:
|
|
820
|
-
options:
|
|
821
|
-
onChange: (e) =>
|
|
818
|
+
value: B,
|
|
819
|
+
options: Ie,
|
|
820
|
+
onChange: (e) => Ae(e)
|
|
822
821
|
})
|
|
823
822
|
})
|
|
824
823
|
]
|
|
825
824
|
}),
|
|
826
|
-
|
|
827
|
-
className: "mt-4 rounded-lg border border-border-
|
|
825
|
+
je && /* @__PURE__ */ x("div", {
|
|
826
|
+
className: "mt-4 rounded-lg border border-border-default bg-bg-surface p-4",
|
|
828
827
|
children: [/* @__PURE__ */ x("div", {
|
|
829
828
|
className: "flex flex-wrap items-start gap-6",
|
|
830
829
|
children: [
|
|
@@ -835,9 +834,9 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
835
834
|
children: "Pricing"
|
|
836
835
|
}), /* @__PURE__ */ b(P, {
|
|
837
836
|
label: "Price",
|
|
838
|
-
value:
|
|
839
|
-
options:
|
|
840
|
-
onChange: (e) =>
|
|
837
|
+
value: j,
|
|
838
|
+
options: Ne,
|
|
839
|
+
onChange: (e) => M(e)
|
|
841
840
|
})]
|
|
842
841
|
}),
|
|
843
842
|
/* @__PURE__ */ x("div", {
|
|
@@ -847,21 +846,21 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
847
846
|
children: "Min Rating"
|
|
848
847
|
}), /* @__PURE__ */ b(P, {
|
|
849
848
|
label: "Rating",
|
|
850
|
-
value:
|
|
851
|
-
options:
|
|
852
|
-
onChange: (e) =>
|
|
849
|
+
value: N,
|
|
850
|
+
options: Pe,
|
|
851
|
+
onChange: (e) => F(e)
|
|
853
852
|
})]
|
|
854
853
|
}),
|
|
855
|
-
|
|
854
|
+
tt.length > 1 && /* @__PURE__ */ x("div", {
|
|
856
855
|
className: "flex flex-col gap-2",
|
|
857
856
|
children: [/* @__PURE__ */ b("span", {
|
|
858
857
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
859
858
|
children: "Category"
|
|
860
859
|
}), /* @__PURE__ */ b(P, {
|
|
861
860
|
label: "Category",
|
|
862
|
-
value:
|
|
863
|
-
options:
|
|
864
|
-
onChange:
|
|
861
|
+
value: L,
|
|
862
|
+
options: tt,
|
|
863
|
+
onChange: De
|
|
865
864
|
})]
|
|
866
865
|
}),
|
|
867
866
|
/* @__PURE__ */ x("div", {
|
|
@@ -871,34 +870,34 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
871
870
|
children: "Nature"
|
|
872
871
|
}), /* @__PURE__ */ b(P, {
|
|
873
872
|
label: "Nature",
|
|
874
|
-
value:
|
|
875
|
-
options:
|
|
876
|
-
onChange: (e) =>
|
|
873
|
+
value: I,
|
|
874
|
+
options: Fe,
|
|
875
|
+
onChange: (e) => Ee(e)
|
|
877
876
|
})]
|
|
878
877
|
}),
|
|
879
|
-
|
|
878
|
+
nt.length > 1 && /* @__PURE__ */ x("div", {
|
|
880
879
|
className: "flex flex-col gap-2",
|
|
881
880
|
children: [/* @__PURE__ */ b("span", {
|
|
882
881
|
className: "text-xs font-medium uppercase tracking-wider text-text-muted",
|
|
883
882
|
children: "License"
|
|
884
883
|
}), /* @__PURE__ */ b(P, {
|
|
885
884
|
label: "License",
|
|
886
|
-
value:
|
|
887
|
-
options:
|
|
888
|
-
onChange:
|
|
885
|
+
value: R,
|
|
886
|
+
options: nt,
|
|
887
|
+
onChange: Oe
|
|
889
888
|
})]
|
|
890
889
|
})
|
|
891
890
|
]
|
|
892
|
-
}),
|
|
891
|
+
}), U > 0 && /* @__PURE__ */ x("div", {
|
|
893
892
|
className: "mt-4 flex flex-wrap items-center gap-2 border-t border-border-default pt-4",
|
|
894
893
|
children: [
|
|
895
894
|
/* @__PURE__ */ b("span", {
|
|
896
895
|
className: "text-xs font-medium text-text-muted",
|
|
897
896
|
children: "Active filters:"
|
|
898
897
|
}),
|
|
899
|
-
|
|
898
|
+
k !== "all" && /* @__PURE__ */ x("button", {
|
|
900
899
|
type: "button",
|
|
901
|
-
onClick: () =>
|
|
900
|
+
onClick: () => A("all"),
|
|
902
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",
|
|
903
902
|
children: [
|
|
904
903
|
/* @__PURE__ */ b("span", {
|
|
@@ -906,16 +905,16 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
906
905
|
children: "Type:"
|
|
907
906
|
}),
|
|
908
907
|
" ",
|
|
909
|
-
|
|
908
|
+
k,
|
|
910
909
|
/* @__PURE__ */ b(y, {
|
|
911
910
|
className: "size-3",
|
|
912
911
|
"aria-hidden": "true"
|
|
913
912
|
})
|
|
914
913
|
]
|
|
915
914
|
}),
|
|
916
|
-
|
|
915
|
+
j !== "all" && /* @__PURE__ */ x("button", {
|
|
917
916
|
type: "button",
|
|
918
|
-
onClick: () =>
|
|
917
|
+
onClick: () => M("all"),
|
|
919
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",
|
|
920
919
|
children: [
|
|
921
920
|
/* @__PURE__ */ b("span", {
|
|
@@ -923,16 +922,16 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
923
922
|
children: "Price:"
|
|
924
923
|
}),
|
|
925
924
|
" ",
|
|
926
|
-
|
|
925
|
+
Ne.find((e) => e.value === j)?.label,
|
|
927
926
|
/* @__PURE__ */ b(y, {
|
|
928
927
|
className: "size-3",
|
|
929
928
|
"aria-hidden": "true"
|
|
930
929
|
})
|
|
931
930
|
]
|
|
932
931
|
}),
|
|
933
|
-
|
|
932
|
+
N !== "any" && /* @__PURE__ */ x("button", {
|
|
934
933
|
type: "button",
|
|
935
|
-
onClick: () =>
|
|
934
|
+
onClick: () => F("any"),
|
|
936
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",
|
|
937
936
|
children: [
|
|
938
937
|
/* @__PURE__ */ b("span", {
|
|
@@ -940,16 +939,16 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
940
939
|
children: "Rating:"
|
|
941
940
|
}),
|
|
942
941
|
" ",
|
|
943
|
-
|
|
942
|
+
Pe.find((e) => e.value === N)?.label,
|
|
944
943
|
/* @__PURE__ */ b(y, {
|
|
945
944
|
className: "size-3",
|
|
946
945
|
"aria-hidden": "true"
|
|
947
946
|
})
|
|
948
947
|
]
|
|
949
948
|
}),
|
|
950
|
-
|
|
949
|
+
L !== "all" && /* @__PURE__ */ x("button", {
|
|
951
950
|
type: "button",
|
|
952
|
-
onClick: () =>
|
|
951
|
+
onClick: () => De("all"),
|
|
953
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",
|
|
954
953
|
children: [
|
|
955
954
|
/* @__PURE__ */ b("span", {
|
|
@@ -957,16 +956,16 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
957
956
|
children: "Category:"
|
|
958
957
|
}),
|
|
959
958
|
" ",
|
|
960
|
-
|
|
959
|
+
L,
|
|
961
960
|
/* @__PURE__ */ b(y, {
|
|
962
961
|
className: "size-3",
|
|
963
962
|
"aria-hidden": "true"
|
|
964
963
|
})
|
|
965
964
|
]
|
|
966
965
|
}),
|
|
967
|
-
|
|
966
|
+
I !== "all" && /* @__PURE__ */ x("button", {
|
|
968
967
|
type: "button",
|
|
969
|
-
onClick: () =>
|
|
968
|
+
onClick: () => Ee("all"),
|
|
970
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",
|
|
971
970
|
children: [
|
|
972
971
|
/* @__PURE__ */ b("span", {
|
|
@@ -974,16 +973,16 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
974
973
|
children: "Nature:"
|
|
975
974
|
}),
|
|
976
975
|
" ",
|
|
977
|
-
|
|
976
|
+
Fe.find((e) => e.value === I)?.label,
|
|
978
977
|
/* @__PURE__ */ b(y, {
|
|
979
978
|
className: "size-3",
|
|
980
979
|
"aria-hidden": "true"
|
|
981
980
|
})
|
|
982
981
|
]
|
|
983
982
|
}),
|
|
984
|
-
|
|
983
|
+
R !== "all" && /* @__PURE__ */ x("button", {
|
|
985
984
|
type: "button",
|
|
986
|
-
onClick: () =>
|
|
985
|
+
onClick: () => Oe("all"),
|
|
987
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",
|
|
988
987
|
children: [
|
|
989
988
|
/* @__PURE__ */ b("span", {
|
|
@@ -991,16 +990,16 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
991
990
|
children: "License:"
|
|
992
991
|
}),
|
|
993
992
|
" ",
|
|
994
|
-
|
|
993
|
+
nt.find((e) => e.value === R)?.label,
|
|
995
994
|
/* @__PURE__ */ b(y, {
|
|
996
995
|
className: "size-3",
|
|
997
996
|
"aria-hidden": "true"
|
|
998
997
|
})
|
|
999
998
|
]
|
|
1000
999
|
}),
|
|
1001
|
-
|
|
1000
|
+
z && /* @__PURE__ */ x("button", {
|
|
1002
1001
|
type: "button",
|
|
1003
|
-
onClick: () =>
|
|
1002
|
+
onClick: () => ke(!1),
|
|
1004
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",
|
|
1005
1004
|
children: [
|
|
1006
1005
|
/* @__PURE__ */ b(_, { className: "size-3" }),
|
|
@@ -1021,7 +1020,7 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
1021
1020
|
children: /* @__PURE__ */ x("div", {
|
|
1022
1021
|
className: "mx-auto max-w-7xl space-y-8 p-6",
|
|
1023
1022
|
children: [
|
|
1024
|
-
|
|
1023
|
+
Z && /* @__PURE__ */ x("div", {
|
|
1025
1024
|
role: "alert",
|
|
1026
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",
|
|
1027
1026
|
children: [
|
|
@@ -1032,50 +1031,50 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
1032
1031
|
}),
|
|
1033
1032
|
/* @__PURE__ */ b("p", {
|
|
1034
1033
|
className: "mb-4 text-sm text-status-error-text",
|
|
1035
|
-
children:
|
|
1034
|
+
children: Z.message || "An error occurred while fetching products"
|
|
1036
1035
|
}),
|
|
1037
1036
|
/* @__PURE__ */ b("button", {
|
|
1038
1037
|
type: "button",
|
|
1039
|
-
onClick: () =>
|
|
1038
|
+
onClick: () => Ye(),
|
|
1040
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",
|
|
1041
1040
|
children: "Try Again"
|
|
1042
1041
|
})
|
|
1043
1042
|
]
|
|
1044
1043
|
}),
|
|
1045
|
-
|
|
1046
|
-
!
|
|
1047
|
-
!
|
|
1044
|
+
Je && !Z && /* @__PURE__ */ b(Te, {}),
|
|
1045
|
+
!Je && !Z && /* @__PURE__ */ x(ve, { children: [
|
|
1046
|
+
!H && k === "all" && W.length > 0 && /* @__PURE__ */ b(we, {
|
|
1048
1047
|
dataTour: "store-marketplace-hero-section",
|
|
1049
|
-
featuredProducts:
|
|
1050
|
-
onProductClick:
|
|
1048
|
+
featuredProducts: W,
|
|
1049
|
+
onProductClick: Q
|
|
1051
1050
|
}),
|
|
1052
|
-
|
|
1051
|
+
et.length > 1 && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
|
|
1053
1052
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
1054
1053
|
children: "Browse by Type"
|
|
1055
1054
|
}), /* @__PURE__ */ b("div", {
|
|
1056
1055
|
className: "flex flex-wrap gap-2",
|
|
1057
1056
|
"data-tour": "store-marketplace-type-categories",
|
|
1058
|
-
children:
|
|
1057
|
+
children: et.map((e) => /* @__PURE__ */ b(Ce, {
|
|
1059
1058
|
typeId: e.id,
|
|
1060
1059
|
name: e.name,
|
|
1061
1060
|
count: e.count,
|
|
1062
|
-
active:
|
|
1063
|
-
onClick: () =>
|
|
1061
|
+
active: k === e.id,
|
|
1062
|
+
onClick: () => A(e.id)
|
|
1064
1063
|
}, e.id))
|
|
1065
1064
|
})] }),
|
|
1066
|
-
|
|
1065
|
+
H && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1067
1066
|
icon: de,
|
|
1068
|
-
title:
|
|
1069
|
-
subtitle: `${
|
|
1070
|
-
}),
|
|
1067
|
+
title: V ? "Search Results" : "Filtered Results",
|
|
1068
|
+
subtitle: `${J} app${J === 1 ? "" : "s"} found`
|
|
1069
|
+
}), Xe.length > 0 ? /* @__PURE__ */ b("div", {
|
|
1071
1070
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
1072
1071
|
"data-tour": "store-marketplace-product-grid",
|
|
1073
|
-
children:
|
|
1072
|
+
children: Xe.map((e) => /* @__PURE__ */ b(D, {
|
|
1074
1073
|
product: e,
|
|
1075
|
-
onClick: () =>
|
|
1074
|
+
onClick: () => Q(e)
|
|
1076
1075
|
}, e.id))
|
|
1077
1076
|
}) : /* @__PURE__ */ x("div", {
|
|
1078
|
-
className: "flex flex-col items-center justify-center rounded-xl border border-border-
|
|
1077
|
+
className: "flex flex-col items-center justify-center rounded-xl border border-border-default bg-bg-surface p-8 text-center",
|
|
1079
1078
|
children: [
|
|
1080
1079
|
/* @__PURE__ */ b(de, { className: "mb-4 size-12 text-text-muted" }),
|
|
1081
1080
|
/* @__PURE__ */ b("h3", {
|
|
@@ -1088,62 +1087,62 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
1088
1087
|
}),
|
|
1089
1088
|
/* @__PURE__ */ b("button", {
|
|
1090
1089
|
type: "button",
|
|
1091
|
-
onClick:
|
|
1090
|
+
onClick: Be,
|
|
1092
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",
|
|
1093
1092
|
children: "Clear All Filters"
|
|
1094
1093
|
})
|
|
1095
1094
|
]
|
|
1096
1095
|
})] }),
|
|
1097
|
-
!
|
|
1098
|
-
|
|
1096
|
+
!H && k === "all" && /* @__PURE__ */ x(ve, { children: [
|
|
1097
|
+
G.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1099
1098
|
icon: _e,
|
|
1100
1099
|
title: "Most Downloaded",
|
|
1101
1100
|
subtitle: "Top picks by our community"
|
|
1102
1101
|
}), /* @__PURE__ */ b("div", {
|
|
1103
1102
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
1104
1103
|
"data-tour": "store-marketplace-most-downloaded",
|
|
1105
|
-
children:
|
|
1104
|
+
children: G.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
|
|
1106
1105
|
product: e,
|
|
1107
|
-
onClick: () =>
|
|
1106
|
+
onClick: () => Q(e)
|
|
1108
1107
|
}, e.id))
|
|
1109
1108
|
})] }),
|
|
1110
|
-
|
|
1109
|
+
K.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1111
1110
|
icon: ce,
|
|
1112
1111
|
title: "New Releases",
|
|
1113
1112
|
subtitle: "Recently published apps"
|
|
1114
1113
|
}), /* @__PURE__ */ b("div", {
|
|
1115
1114
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
1116
|
-
children:
|
|
1115
|
+
children: K.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
|
|
1117
1116
|
product: e,
|
|
1118
|
-
onClick: () =>
|
|
1117
|
+
onClick: () => Q(e)
|
|
1119
1118
|
}, e.id))
|
|
1120
1119
|
})] }),
|
|
1121
|
-
|
|
1120
|
+
q.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1122
1121
|
icon: fe,
|
|
1123
1122
|
title: "Free Apps",
|
|
1124
1123
|
subtitle: "No cost, full functionality"
|
|
1125
1124
|
}), /* @__PURE__ */ b("div", {
|
|
1126
1125
|
className: "grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6",
|
|
1127
|
-
children:
|
|
1126
|
+
children: q.slice(0, 6).map((e) => /* @__PURE__ */ b(D, {
|
|
1128
1127
|
product: e,
|
|
1129
|
-
onClick: () =>
|
|
1128
|
+
onClick: () => Q(e),
|
|
1130
1129
|
variant: "compact"
|
|
1131
1130
|
}, e.id))
|
|
1132
1131
|
})] }),
|
|
1133
|
-
|
|
1132
|
+
$.length > 0 && /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ b(O, {
|
|
1134
1133
|
icon: u,
|
|
1135
1134
|
title: "All Apps",
|
|
1136
|
-
subtitle: `${
|
|
1135
|
+
subtitle: `${$.length} apps available`
|
|
1137
1136
|
}), /* @__PURE__ */ b("div", {
|
|
1138
1137
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
1139
|
-
children:
|
|
1138
|
+
children: $.map((e) => /* @__PURE__ */ b(D, {
|
|
1140
1139
|
product: e,
|
|
1141
|
-
onClick: () =>
|
|
1140
|
+
onClick: () => Q(e)
|
|
1142
1141
|
}, e.id))
|
|
1143
1142
|
})] })
|
|
1144
1143
|
] }),
|
|
1145
|
-
|
|
1146
|
-
className: "flex flex-col items-center justify-center rounded-xl border border-border-
|
|
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",
|
|
1147
1146
|
children: [
|
|
1148
1147
|
/* @__PURE__ */ b(u, { className: "mb-4 size-16 text-text-muted" }),
|
|
1149
1148
|
/* @__PURE__ */ b("h3", {
|
|
@@ -1163,14 +1162,14 @@ var Ce = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
|
|
|
1163
1162
|
/* @__PURE__ */ b(ee, {
|
|
1164
1163
|
isOpen: ue,
|
|
1165
1164
|
onClose: p,
|
|
1166
|
-
onCheckout:
|
|
1165
|
+
onCheckout: $e,
|
|
1167
1166
|
cartItems: h,
|
|
1168
1167
|
itemCount: m,
|
|
1169
1168
|
subtotal: g,
|
|
1170
|
-
tax:
|
|
1171
|
-
total:
|
|
1172
|
-
updateQuantity:
|
|
1173
|
-
removeProduct:
|
|
1169
|
+
tax: Se,
|
|
1170
|
+
total: S,
|
|
1171
|
+
updateQuantity: C,
|
|
1172
|
+
removeProduct: w
|
|
1174
1173
|
})
|
|
1175
1174
|
]
|
|
1176
1175
|
});
|