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