@burdenoff/microfe-store 2026.706.1 → 2026.714.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/generated/global-operations.js +7 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/hooks/useOrders.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/AdminSubmissionsQueuePage.js +5 -4
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/OrdersPage.js +190 -115
- package/dist/pages/OrdersPage.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
package/dist/pages/OrdersPage.js
CHANGED
|
@@ -5,10 +5,10 @@ import { InstallAppModal as r } from "../components/InstallAppModal.js";
|
|
|
5
5
|
import { useInstallations as i } from "../hooks/useInstallations.js";
|
|
6
6
|
import { useOrders as a } from "../hooks/useOrders.js";
|
|
7
7
|
import { useCallback as o, useMemo as s, useState as c } from "react";
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { ArrowLeft as
|
|
10
|
-
import { jsx as
|
|
11
|
-
import { useNavigate as
|
|
8
|
+
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { ArrowLeft as u, CheckCircle as d, ChevronRight as f, Clock as p, Download as m, Loader2 as h, Package as g, RefreshCw as _, ShoppingBag as v, XCircle as y } from "lucide-react";
|
|
10
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
11
|
+
import { useNavigate as ee } from "react-router-dom";
|
|
12
12
|
import { GlassCard as S, IllustratedEmptyState as C, PagePurpose as w } from "@burdenoff/fe-libs/ui";
|
|
13
13
|
//#region src/pages/OrdersPage.tsx
|
|
14
14
|
var T = [
|
|
@@ -20,49 +20,49 @@ var T = [
|
|
|
20
20
|
case "COMPLETED":
|
|
21
21
|
case "FULFILLED":
|
|
22
22
|
case "PROCESSED": return {
|
|
23
|
-
icon:
|
|
23
|
+
icon: d,
|
|
24
24
|
classes: "bg-status-success-bg-subtle/15 text-status-success-text border-status-success-text/20",
|
|
25
25
|
label: "Completed"
|
|
26
26
|
};
|
|
27
27
|
case "PROCESSING": return {
|
|
28
|
-
icon:
|
|
28
|
+
icon: p,
|
|
29
29
|
classes: "bg-status-warning-bg-subtle/15 text-status-warning-text border-status-warning-text/20",
|
|
30
30
|
label: "Processing"
|
|
31
31
|
};
|
|
32
32
|
case "PENDING": return {
|
|
33
|
-
icon:
|
|
33
|
+
icon: p,
|
|
34
34
|
classes: "bg-status-warning-bg-subtle/15 text-status-warning-text border-status-warning-text/20",
|
|
35
35
|
label: "Pending"
|
|
36
36
|
};
|
|
37
37
|
case "FAILED": return {
|
|
38
|
-
icon:
|
|
38
|
+
icon: y,
|
|
39
39
|
classes: "bg-status-error-bg-subtle/15 text-status-error-text border-status-error-text/20",
|
|
40
40
|
label: "Failed"
|
|
41
41
|
};
|
|
42
42
|
case "REFUNDED": return {
|
|
43
|
-
icon:
|
|
43
|
+
icon: _,
|
|
44
44
|
classes: "bg-status-warning-bg-subtle/15 text-status-warning-text border-status-warning-text/20",
|
|
45
45
|
label: "Refunded"
|
|
46
46
|
};
|
|
47
47
|
case "CANCELLED": return {
|
|
48
|
-
icon:
|
|
48
|
+
icon: _,
|
|
49
49
|
classes: "bg-bg-sunken text-text-muted border-border-default",
|
|
50
50
|
label: "Cancelled"
|
|
51
51
|
};
|
|
52
52
|
default: return {
|
|
53
|
-
icon:
|
|
53
|
+
icon: p,
|
|
54
54
|
classes: "bg-bg-sunken text-text-muted border-border-default",
|
|
55
55
|
label: e
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
}, D = ({ status: e }) => {
|
|
59
59
|
let t = E(e), n = t.icon;
|
|
60
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ x("span", {
|
|
61
61
|
className: `inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold ${t.classes}`,
|
|
62
|
-
children: [/* @__PURE__ */
|
|
62
|
+
children: [/* @__PURE__ */ b(n, { className: "size-3.5" }), t.label]
|
|
63
63
|
});
|
|
64
64
|
}, O = () => {
|
|
65
|
-
let
|
|
65
|
+
let p = ee(), { basePath: _ } = e(), { t: E } = l(), { orders: O, loading: k, error: A, refetchOrders: j, hasMore: M, loadMore: N } = a(), { installations: P, refetch: te } = i();
|
|
66
66
|
t({
|
|
67
67
|
onData: () => {
|
|
68
68
|
j();
|
|
@@ -71,7 +71,7 @@ var T = [
|
|
|
71
71
|
console.warn("OrderStatusUpdated subscription error:", e.message);
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
let [
|
|
74
|
+
let [ne, re] = c(/* @__PURE__ */ new Set()), [F, I] = c("completed"), [L, R] = c(!1), [z, B] = c(null), [V, H] = c(null), [ie, U] = c(null), W = s(() => new Set(P.flatMap((e) => e.status === "ACTIVE" ? [e.productId] : [])), [P]), G = O.map((e) => {
|
|
75
75
|
let t = e.lineItems || [], n = t.reduce((e, t) => e + t.subtotal, 0), r = e.total - n, i = t.map((t, n) => ({
|
|
76
76
|
id: `${e.id}-${n}`,
|
|
77
77
|
productId: t.productId,
|
|
@@ -92,10 +92,11 @@ var T = [
|
|
|
92
92
|
tax: r,
|
|
93
93
|
total: e.total,
|
|
94
94
|
status: e.status,
|
|
95
|
-
createdAt: e.createdAt
|
|
95
|
+
createdAt: e.createdAt,
|
|
96
|
+
fulfillment: e.fulfillment ?? null
|
|
96
97
|
};
|
|
97
98
|
}), K = s(() => G.filter((e) => T.includes(e.status)), [G]), q = s(() => G.filter((e) => !T.includes(e.status)), [G]), J = F === "completed" ? K : q, Y = o((e) => {
|
|
98
|
-
|
|
99
|
+
re((t) => {
|
|
99
100
|
let n = new Set(t);
|
|
100
101
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
101
102
|
});
|
|
@@ -110,36 +111,36 @@ var T = [
|
|
|
110
111
|
}, X = () => {
|
|
111
112
|
R(!1), B(null), H(null), U(null);
|
|
112
113
|
}, oe = (e, t) => {
|
|
113
|
-
X(),
|
|
114
|
+
X(), te();
|
|
114
115
|
}, se = (e) => {}, Z = () => {
|
|
115
|
-
|
|
116
|
+
p(`${_}/marketplace`);
|
|
116
117
|
}, Q = "px-4 py-3 text-sm", $ = "px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-text-muted";
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ x("div", {
|
|
118
119
|
className: "flex h-full flex-col",
|
|
119
120
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ b("header", {
|
|
121
122
|
className: "flex-shrink-0 border-b border-border-seam bg-bg-surface px-6 py-4",
|
|
122
|
-
children: /* @__PURE__ */
|
|
123
|
+
children: /* @__PURE__ */ b("div", {
|
|
123
124
|
className: "mx-auto max-w-6xl",
|
|
124
|
-
children: /* @__PURE__ */
|
|
125
|
+
children: /* @__PURE__ */ b("div", {
|
|
125
126
|
className: "flex items-center justify-between",
|
|
126
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ x("div", {
|
|
127
128
|
className: "flex items-center gap-4",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ b("button", {
|
|
129
130
|
type: "button",
|
|
130
|
-
onClick: () =>
|
|
131
|
+
onClick: () => p(-1),
|
|
131
132
|
"aria-label": "Go back",
|
|
132
133
|
className: "cursor-pointer rounded-lg p-2 text-text-muted transition-colors hover:bg-bg-sunken hover:text-text-primary",
|
|
133
|
-
children: /* @__PURE__ */
|
|
134
|
-
}), /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ b(u, { className: "size-5" })
|
|
135
|
+
}), /* @__PURE__ */ x("div", {
|
|
135
136
|
className: "flex items-center gap-3",
|
|
136
137
|
children: [
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ b(g, { className: "size-6 text-text-primary" }),
|
|
139
|
+
/* @__PURE__ */ b("h1", {
|
|
139
140
|
className: "text-xl font-bold text-text-primary",
|
|
140
141
|
children: E("pages.orders.title", { defaultValue: "My Orders" })
|
|
141
142
|
}),
|
|
142
|
-
G.length > 0 && /* @__PURE__ */
|
|
143
|
+
G.length > 0 && /* @__PURE__ */ b("span", {
|
|
143
144
|
className: "rounded-full bg-action-primary-bg/10 px-2.5 py-0.5 text-sm font-medium text-action-primary-bg",
|
|
144
145
|
children: G.length
|
|
145
146
|
})
|
|
@@ -149,138 +150,138 @@ var T = [
|
|
|
149
150
|
})
|
|
150
151
|
})
|
|
151
152
|
}),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ b("div", {
|
|
153
154
|
className: "flex-1 overflow-y-auto",
|
|
154
|
-
children: /* @__PURE__ */
|
|
155
|
+
children: /* @__PURE__ */ x("div", {
|
|
155
156
|
className: "mx-auto max-w-6xl p-6",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ b(w, {
|
|
157
158
|
className: "mb-6",
|
|
158
159
|
children: "A record of everything you've purchased from the marketplace. Track each order's status, review what you paid, and — once an order is complete — install the apps you bought into a workspace right from here. Come back to re-install on a new workspace or check a past receipt."
|
|
159
|
-
}), k && G.length === 0 ? /* @__PURE__ */
|
|
160
|
+
}), k && G.length === 0 ? /* @__PURE__ */ x("div", {
|
|
160
161
|
className: "flex flex-col items-center justify-center py-24",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
162
|
+
children: [/* @__PURE__ */ b(h, {
|
|
162
163
|
className: "size-12 animate-spin text-text-muted mb-4",
|
|
163
164
|
"aria-hidden": "true"
|
|
164
|
-
}), /* @__PURE__ */
|
|
165
|
+
}), /* @__PURE__ */ b("p", {
|
|
165
166
|
className: "text-text-muted",
|
|
166
167
|
children: "Loading your orders…"
|
|
167
168
|
})]
|
|
168
|
-
}) : A ? /* @__PURE__ */
|
|
169
|
+
}) : A ? /* @__PURE__ */ x("div", {
|
|
169
170
|
className: "flex flex-col items-center justify-center py-24 text-center",
|
|
170
171
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ b("div", {
|
|
172
173
|
className: "mb-6 rounded-full bg-status-error-bg-subtle/10 p-6",
|
|
173
|
-
children: /* @__PURE__ */ y
|
|
174
|
+
children: /* @__PURE__ */ b(y, { className: "size-16 text-status-error-text" })
|
|
174
175
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ b("h2", {
|
|
176
177
|
className: "mb-2 text-2xl font-bold text-text-primary",
|
|
177
178
|
children: E("pages.orders.failedToLoad", { defaultValue: "Failed to load orders" })
|
|
178
179
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ b("p", {
|
|
180
181
|
className: "mb-6 max-w-md text-text-muted",
|
|
181
182
|
children: A.message || "An error occurred while loading your orders. Please try again."
|
|
182
183
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ x("button", {
|
|
184
185
|
type: "button",
|
|
185
186
|
onClick: Z,
|
|
186
187
|
className: "cursor-pointer flex items-center gap-2 rounded-lg bg-action-primary-bg px-6 py-3 font-semibold text-action-primary-text transition-opacity hover:opacity-90",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ b(v, { className: "size-5" }), "Browse Marketplace"]
|
|
188
189
|
})
|
|
189
190
|
]
|
|
190
|
-
}) : G.length === 0 ? /* @__PURE__ */
|
|
191
|
+
}) : G.length === 0 ? /* @__PURE__ */ b(C, {
|
|
191
192
|
illustration: "empty-data",
|
|
192
193
|
title: E("pages.orders.emptyTitle", { defaultValue: "No orders yet" }),
|
|
193
194
|
description: "You have not placed any orders yet. Browse the marketplace to discover apps and products!",
|
|
194
|
-
action: /* @__PURE__ */
|
|
195
|
+
action: /* @__PURE__ */ x("button", {
|
|
195
196
|
type: "button",
|
|
196
197
|
onClick: Z,
|
|
197
198
|
className: "cursor-pointer flex items-center gap-2 rounded-lg bg-action-primary-bg px-6 py-3 font-semibold text-action-primary-text transition-opacity hover:opacity-90",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
199
|
+
children: [/* @__PURE__ */ b(v, { className: "size-5" }), "Browse Marketplace"]
|
|
199
200
|
})
|
|
200
|
-
}) : /* @__PURE__ */
|
|
201
|
+
}) : /* @__PURE__ */ x("div", {
|
|
201
202
|
className: "space-y-4",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ x("div", {
|
|
203
204
|
className: "inline-flex rounded-xl border border-border-seam bg-bg-surface p-1",
|
|
204
|
-
children: [/* @__PURE__ */
|
|
205
|
+
children: [/* @__PURE__ */ x("button", {
|
|
205
206
|
type: "button",
|
|
206
207
|
onClick: () => I("completed"),
|
|
207
208
|
className: `rounded-lg px-4 py-2 text-sm font-medium transition-colors ${F === "completed" ? "bg-action-primary-bg text-action-primary-text" : "text-text-muted hover:bg-bg-sunken hover:text-text-primary"}`,
|
|
208
|
-
children: ["Completed", /* @__PURE__ */
|
|
209
|
+
children: ["Completed", /* @__PURE__ */ b("span", {
|
|
209
210
|
className: "ml-2 rounded-full bg-black/10 px-2 py-0.5 text-xs",
|
|
210
211
|
children: K.length
|
|
211
212
|
})]
|
|
212
|
-
}), /* @__PURE__ */
|
|
213
|
+
}), /* @__PURE__ */ x("button", {
|
|
213
214
|
type: "button",
|
|
214
215
|
onClick: () => I("pending"),
|
|
215
216
|
className: `rounded-lg px-4 py-2 text-sm font-medium transition-colors ${F === "pending" ? "bg-action-primary-bg text-action-primary-text" : "text-text-muted hover:bg-bg-sunken hover:text-text-primary"}`,
|
|
216
|
-
children: ["Pending", /* @__PURE__ */
|
|
217
|
+
children: ["Pending", /* @__PURE__ */ b("span", {
|
|
217
218
|
className: "ml-2 rounded-full bg-black/10 px-2 py-0.5 text-xs",
|
|
218
219
|
children: q.length
|
|
219
220
|
})]
|
|
220
221
|
})]
|
|
221
|
-
}), J.length === 0 ? /* @__PURE__ */
|
|
222
|
+
}), J.length === 0 ? /* @__PURE__ */ x(S, {
|
|
222
223
|
className: "p-10 text-center",
|
|
223
224
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ b("div", {
|
|
225
226
|
className: "mx-auto mb-4 flex size-14 items-center justify-center rounded-full bg-bg-sunken text-text-muted",
|
|
226
|
-
children: /* @__PURE__ */
|
|
227
|
+
children: /* @__PURE__ */ b(g, { className: "size-6" })
|
|
227
228
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ b("h2", {
|
|
229
230
|
className: "mb-2 text-lg font-semibold text-text-primary",
|
|
230
231
|
children: F === "completed" ? "No completed orders yet" : "No pending orders"
|
|
231
232
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ b("p", {
|
|
233
234
|
className: "text-sm text-text-muted",
|
|
234
235
|
children: F === "completed" ? "Completed purchases will appear here once payment is successful." : "Orders that are pending, processing, failed, refunded, or cancelled will appear here."
|
|
235
236
|
})
|
|
236
237
|
]
|
|
237
|
-
}) : /* @__PURE__ */
|
|
238
|
+
}) : /* @__PURE__ */ x("div", {
|
|
238
239
|
className: "overflow-hidden rounded-xl border border-border-seam bg-bg-surface",
|
|
239
240
|
children: [
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ x("div", {
|
|
241
242
|
className: "hidden border-b border-border-seam bg-bg-sunken/50 md:grid md:grid-cols-[40px_1fr_180px_140px_120px_160px]",
|
|
242
243
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ b("div", { className: $ }),
|
|
245
|
+
/* @__PURE__ */ b("div", {
|
|
245
246
|
className: $,
|
|
246
247
|
children: "Order"
|
|
247
248
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ b("div", {
|
|
249
250
|
className: $,
|
|
250
251
|
children: "Date"
|
|
251
252
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ b("div", {
|
|
253
254
|
className: $,
|
|
254
255
|
children: "Items"
|
|
255
256
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ b("div", {
|
|
257
258
|
className: `${$} text-right`,
|
|
258
259
|
children: "Total"
|
|
259
260
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ b("div", {
|
|
261
262
|
className: `${$} text-center`,
|
|
262
263
|
children: "Status"
|
|
263
264
|
})
|
|
264
265
|
]
|
|
265
266
|
}),
|
|
266
267
|
J.map((e) => {
|
|
267
|
-
let t =
|
|
268
|
-
return /* @__PURE__ */
|
|
268
|
+
let t = ne.has(e.id), r = e.status === "COMPLETED" || e.status === "FULFILLED" || e.status === "PROCESSED";
|
|
269
|
+
return /* @__PURE__ */ x("div", {
|
|
269
270
|
className: "border-b border-border-seam last:border-b-0",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ x("button", {
|
|
271
272
|
type: "button",
|
|
272
273
|
onClick: () => Y(e.id),
|
|
273
274
|
className: "grid w-full cursor-pointer grid-cols-[40px_1fr_180px_140px_120px_160px] items-center transition-colors hover:bg-bg-sunken/50 md:grid",
|
|
274
275
|
children: [
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ b("div", {
|
|
276
277
|
className: `${Q} flex justify-center`,
|
|
277
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ b(f, { className: `size-4 text-text-muted transition-transform duration-200 ${t ? "rotate-90" : ""}` })
|
|
278
279
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ b("div", {
|
|
280
281
|
className: `${Q} font-medium text-text-primary`,
|
|
281
282
|
children: e.orderNumber
|
|
282
283
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ b("div", {
|
|
284
285
|
className: `${Q} text-text-muted`,
|
|
285
286
|
children: new Date(e.createdAt).toLocaleDateString("en-US", {
|
|
286
287
|
year: "numeric",
|
|
@@ -288,46 +289,120 @@ var T = [
|
|
|
288
289
|
day: "numeric"
|
|
289
290
|
})
|
|
290
291
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ x("div", {
|
|
292
293
|
className: `${Q} text-text-muted`,
|
|
293
294
|
children: [
|
|
294
295
|
e.items.length,
|
|
295
296
|
" ",
|
|
296
297
|
e.items.length === 1 ? "item" : "items",
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ b("span", {
|
|
298
299
|
className: "block text-xs text-text-muted/70",
|
|
299
300
|
children: e.items.map((e) => e.productName).join(", ")
|
|
300
301
|
})
|
|
301
302
|
]
|
|
302
303
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ b("div", {
|
|
304
305
|
className: `${Q} text-right font-semibold tabular-nums text-text-primary`,
|
|
305
306
|
children: n(e.total)
|
|
306
307
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ b("div", {
|
|
308
309
|
className: `${Q} flex justify-center`,
|
|
309
|
-
children: /* @__PURE__ */
|
|
310
|
+
children: /* @__PURE__ */ b(D, { status: e.status })
|
|
310
311
|
})
|
|
311
312
|
]
|
|
312
|
-
}), t && /* @__PURE__ */
|
|
313
|
+
}), t && /* @__PURE__ */ x("div", {
|
|
313
314
|
className: "border-t border-border-seam bg-bg-sunken/30",
|
|
314
315
|
children: [
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
+
e.fulfillment && /* @__PURE__ */ x("div", {
|
|
317
|
+
className: "mx-4 mt-4 rounded-xl border border-border-seam bg-bg-surface px-4 py-4 md:mx-12",
|
|
318
|
+
children: [/* @__PURE__ */ x("div", {
|
|
319
|
+
className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between",
|
|
320
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("div", {
|
|
321
|
+
className: "text-sm font-semibold text-text-primary",
|
|
322
|
+
children: "Order tracking"
|
|
323
|
+
}), /* @__PURE__ */ x("div", {
|
|
324
|
+
className: "mt-1 text-xs text-text-muted",
|
|
325
|
+
children: [
|
|
326
|
+
e.fulfillment.status || "PENDING",
|
|
327
|
+
e.fulfillment.carrier ? ` · ${e.fulfillment.carrier}` : "",
|
|
328
|
+
e.fulfillment.estimatedDeliveryDate ? ` · Est. delivery ${new Date(e.fulfillment.estimatedDeliveryDate).toLocaleDateString()}` : ""
|
|
329
|
+
]
|
|
330
|
+
})] }), /* @__PURE__ */ x("div", {
|
|
331
|
+
className: "flex flex-col items-start gap-2 md:items-end",
|
|
332
|
+
children: [e.fulfillment.trackingNumber && /* @__PURE__ */ x("div", {
|
|
333
|
+
className: "text-xs text-text-muted",
|
|
334
|
+
children: [
|
|
335
|
+
"Tracking #:",
|
|
336
|
+
" ",
|
|
337
|
+
/* @__PURE__ */ b("span", {
|
|
338
|
+
className: "font-medium text-text-primary",
|
|
339
|
+
children: e.fulfillment.trackingNumber
|
|
340
|
+
})
|
|
341
|
+
]
|
|
342
|
+
}), e.fulfillment.trackingUrl && /* @__PURE__ */ x("a", {
|
|
343
|
+
href: e.fulfillment.trackingUrl,
|
|
344
|
+
target: "_blank",
|
|
345
|
+
rel: "noreferrer",
|
|
346
|
+
className: "inline-flex items-center gap-1 rounded-md border border-border-default px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
347
|
+
children: ["Track package", /* @__PURE__ */ b(f, { className: "size-3.5" })]
|
|
348
|
+
})]
|
|
349
|
+
})]
|
|
350
|
+
}), /* @__PURE__ */ b("div", {
|
|
351
|
+
className: "mt-4 grid gap-2 sm:grid-cols-4",
|
|
352
|
+
children: [
|
|
353
|
+
{
|
|
354
|
+
key: "PROCESSING",
|
|
355
|
+
label: "Processing"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
key: "SHIPPED",
|
|
359
|
+
label: "Shipped"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
key: "OUT_FOR_DELIVERY",
|
|
363
|
+
label: "Out for delivery"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
key: "DELIVERED",
|
|
367
|
+
label: "Delivered"
|
|
368
|
+
}
|
|
369
|
+
].map((t) => {
|
|
370
|
+
let n = e.fulfillment?.status || "PENDING";
|
|
371
|
+
return /* @__PURE__ */ b("div", {
|
|
372
|
+
className: `rounded-lg border px-3 py-2 text-xs font-medium ${[
|
|
373
|
+
"PROCESSING",
|
|
374
|
+
"READY_TO_SHIP",
|
|
375
|
+
"SHIPPED",
|
|
376
|
+
"IN_TRANSIT",
|
|
377
|
+
"OUT_FOR_DELIVERY",
|
|
378
|
+
"DELIVERED"
|
|
379
|
+
].indexOf(n) >= [
|
|
380
|
+
"PROCESSING",
|
|
381
|
+
"SHIPPED",
|
|
382
|
+
"OUT_FOR_DELIVERY",
|
|
383
|
+
"DELIVERED"
|
|
384
|
+
].indexOf(t.key) ? "border-status-success-border bg-status-success-bg-subtle text-status-success-text" : "border-border-seam bg-bg-sunken/40 text-text-muted"}`,
|
|
385
|
+
children: t.label
|
|
386
|
+
}, t.key);
|
|
387
|
+
})
|
|
388
|
+
})]
|
|
389
|
+
}),
|
|
390
|
+
/* @__PURE__ */ x("div", {
|
|
316
391
|
className: "hidden grid-cols-[1fr_100px_120px_160px] gap-4 px-12 py-2 md:grid",
|
|
317
392
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ b("span", {
|
|
319
394
|
className: "text-xs font-medium text-text-muted",
|
|
320
395
|
children: "Product"
|
|
321
396
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ b("span", {
|
|
323
398
|
className: "text-xs font-medium text-text-muted text-right",
|
|
324
399
|
children: "Qty"
|
|
325
400
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ b("span", {
|
|
327
402
|
className: "text-xs font-medium text-text-muted text-right",
|
|
328
403
|
children: "Price"
|
|
329
404
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ b("span", {
|
|
331
406
|
className: "text-xs font-medium text-text-muted text-center",
|
|
332
407
|
children: "Action"
|
|
333
408
|
})
|
|
@@ -335,94 +410,94 @@ var T = [
|
|
|
335
410
|
}),
|
|
336
411
|
e.items.map((t) => {
|
|
337
412
|
let i = t.productType !== "PHYSICAL" && t.productType !== "MERCHANDISE";
|
|
338
|
-
return /* @__PURE__ */
|
|
413
|
+
return /* @__PURE__ */ x("div", {
|
|
339
414
|
className: "grid grid-cols-[auto_1fr_auto] items-center gap-3 px-4 py-3 md:px-12 md:grid-cols-[1fr_100px_120px_160px]",
|
|
340
415
|
children: [
|
|
341
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ x("div", {
|
|
342
417
|
className: "flex items-center gap-3 min-w-0",
|
|
343
|
-
children: [/* @__PURE__ */
|
|
418
|
+
children: [/* @__PURE__ */ b("div", {
|
|
344
419
|
className: "size-10 flex-shrink-0 overflow-hidden rounded-lg bg-bg-sunken",
|
|
345
|
-
children: t.productIcon ? /* @__PURE__ */
|
|
420
|
+
children: t.productIcon ? /* @__PURE__ */ b("img", {
|
|
346
421
|
src: t.productIcon,
|
|
347
422
|
alt: t.productName,
|
|
348
423
|
className: "size-full object-cover"
|
|
349
|
-
}) : /* @__PURE__ */
|
|
424
|
+
}) : /* @__PURE__ */ b("div", {
|
|
350
425
|
className: "flex size-full items-center justify-center text-sm font-bold text-text-muted",
|
|
351
426
|
children: t.productName.charAt(0)
|
|
352
427
|
})
|
|
353
|
-
}), /* @__PURE__ */
|
|
428
|
+
}), /* @__PURE__ */ x("div", {
|
|
354
429
|
className: "min-w-0",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ b("p", {
|
|
356
431
|
className: "truncate text-sm font-medium text-text-primary",
|
|
357
432
|
children: t.productName
|
|
358
|
-
}), /* @__PURE__ */
|
|
433
|
+
}), /* @__PURE__ */ b("span", {
|
|
359
434
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-muted",
|
|
360
435
|
children: t.productType
|
|
361
436
|
})]
|
|
362
437
|
})]
|
|
363
438
|
}),
|
|
364
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ b("div", {
|
|
365
440
|
className: "hidden text-right text-sm text-text-muted md:block",
|
|
366
441
|
children: t.quantity
|
|
367
442
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ b("div", {
|
|
369
444
|
className: "hidden text-right text-sm font-semibold tabular-nums text-text-primary md:block",
|
|
370
445
|
children: n(t.totalPrice)
|
|
371
446
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ x("div", {
|
|
373
448
|
className: "text-right text-sm text-text-muted md:hidden",
|
|
374
|
-
children: [/* @__PURE__ */
|
|
449
|
+
children: [/* @__PURE__ */ x("span", {
|
|
375
450
|
className: "tabular-nums",
|
|
376
451
|
children: [t.quantity, " × "]
|
|
377
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ b("span", {
|
|
378
453
|
className: "font-semibold text-text-primary tabular-nums",
|
|
379
454
|
children: n(t.unitPrice)
|
|
380
455
|
})]
|
|
381
456
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ b("div", {
|
|
383
458
|
className: "flex justify-end md:justify-center",
|
|
384
|
-
children: t.installed ? /* @__PURE__ */
|
|
459
|
+
children: t.installed ? /* @__PURE__ */ x("span", {
|
|
385
460
|
className: "inline-flex items-center gap-1 rounded-lg px-3 py-1.5 text-xs font-medium text-status-success-text",
|
|
386
|
-
children: [/* @__PURE__ */
|
|
387
|
-
}) : r && i ? /* @__PURE__ */
|
|
461
|
+
children: [/* @__PURE__ */ b(d, { className: "size-3.5" }), "Installed"]
|
|
462
|
+
}) : r && i ? /* @__PURE__ */ x("button", {
|
|
388
463
|
type: "button",
|
|
389
464
|
onClick: (n) => {
|
|
390
465
|
n.stopPropagation(), ae(e.id, t);
|
|
391
466
|
},
|
|
392
467
|
className: "inline-flex cursor-pointer items-center gap-1.5 rounded-lg bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text transition-all hover:opacity-90 active:scale-95",
|
|
393
|
-
children: [/* @__PURE__ */
|
|
468
|
+
children: [/* @__PURE__ */ b(m, { className: "size-3.5" }), "Install App"]
|
|
394
469
|
}) : null
|
|
395
470
|
})
|
|
396
471
|
]
|
|
397
472
|
}, t.id);
|
|
398
473
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ b("div", {
|
|
400
475
|
className: "border-t border-border-seam/50 px-4 py-2 md:px-12",
|
|
401
|
-
children: /* @__PURE__ */
|
|
476
|
+
children: /* @__PURE__ */ x("div", {
|
|
402
477
|
className: "flex justify-end gap-6 text-xs text-text-muted",
|
|
403
478
|
children: [
|
|
404
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ x("span", { children: [
|
|
405
480
|
"Subtotal:",
|
|
406
481
|
" ",
|
|
407
|
-
/* @__PURE__ */
|
|
482
|
+
/* @__PURE__ */ b("span", {
|
|
408
483
|
className: "tabular-nums text-text-primary",
|
|
409
484
|
children: n(e.subtotal)
|
|
410
485
|
})
|
|
411
486
|
] }),
|
|
412
|
-
/* @__PURE__ */
|
|
487
|
+
/* @__PURE__ */ x("span", { children: [
|
|
413
488
|
"Tax:",
|
|
414
489
|
" ",
|
|
415
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ b("span", {
|
|
416
491
|
className: "tabular-nums text-text-primary",
|
|
417
492
|
children: n(e.tax)
|
|
418
493
|
})
|
|
419
494
|
] }),
|
|
420
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ x("span", {
|
|
421
496
|
className: "font-semibold",
|
|
422
497
|
children: [
|
|
423
498
|
"Total:",
|
|
424
499
|
" ",
|
|
425
|
-
/* @__PURE__ */
|
|
500
|
+
/* @__PURE__ */ b("span", {
|
|
426
501
|
className: "tabular-nums text-text-primary",
|
|
427
502
|
children: n(e.total)
|
|
428
503
|
})
|
|
@@ -435,15 +510,15 @@ var T = [
|
|
|
435
510
|
})]
|
|
436
511
|
}, e.id);
|
|
437
512
|
}),
|
|
438
|
-
M && /* @__PURE__ */
|
|
513
|
+
M && /* @__PURE__ */ b("div", {
|
|
439
514
|
className: "flex justify-center px-4 py-5",
|
|
440
|
-
children: /* @__PURE__ */
|
|
515
|
+
children: /* @__PURE__ */ x("button", {
|
|
441
516
|
type: "button",
|
|
442
|
-
onClick:
|
|
517
|
+
onClick: N,
|
|
443
518
|
disabled: k,
|
|
444
519
|
className: "flex items-center gap-2 rounded-lg border border-border-default px-6 py-2.5 text-sm font-medium text-text-primary transition-colors hover:bg-bg-subtle disabled:opacity-50",
|
|
445
520
|
"aria-label": E("common.loadMore", { defaultValue: "Load more" }),
|
|
446
|
-
children: [k ? /* @__PURE__ */
|
|
521
|
+
children: [k ? /* @__PURE__ */ b(h, {
|
|
447
522
|
className: "size-4 animate-spin",
|
|
448
523
|
"aria-hidden": "true"
|
|
449
524
|
}) : null, E("common.loadMore", { defaultValue: "Load more" })]
|
|
@@ -454,7 +529,7 @@ var T = [
|
|
|
454
529
|
})]
|
|
455
530
|
})
|
|
456
531
|
}),
|
|
457
|
-
V && /* @__PURE__ */
|
|
532
|
+
V && /* @__PURE__ */ b(r, {
|
|
458
533
|
isOpen: L,
|
|
459
534
|
onClose: X,
|
|
460
535
|
app: V,
|