@burdenoff/microfe-store 2026.625.3 → 2026.625.5
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 +255 -175
- package/dist/components/InstallAppModal.js.map +1 -1
- package/dist/components/cart/CartDrawer.js +10 -10
- package/dist/components/cart/CartDrawer.js.map +1 -1
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/errors/CombinedGraphQLErrors.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/errors/utils.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/link/core/ApolloLink.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/link/subscriptions/index.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/link/utils/createOperation.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/graphql/print.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/caches.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/checkDocument.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/getMainDefinition.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/getOperationDefinition.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/globals/global.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/makeUniqueId.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/memoize.js +2 -2
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/internal/stringifyForDisplay.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/invariant/index.js +1 -1
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js +6 -0
- package/dist/node_modules/.bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo/client/version.js.map +1 -0
- package/dist/node_modules/{@wry → .bun/@wry_caches@1.0.1/node_modules/@wry}/caches/lib/weak.js +1 -1
- package/dist/node_modules/.bun/@wry_caches@1.0.1/node_modules/@wry/caches/lib/weak.js.map +1 -0
- package/dist/node_modules/{@wry → .bun/@wry_trie@0.5.0/node_modules/@wry}/trie/lib/index.js +1 -1
- package/dist/node_modules/.bun/@wry_trie@0.5.0/node_modules/@wry/trie/lib/index.js.map +1 -0
- package/dist/node_modules/{graphql-ws → .bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws}/dist/client.js +1 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/client.js.map +1 -0
- package/dist/node_modules/{graphql-ws → .bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws}/dist/common-CGW11Fyb.js +1 -1
- package/dist/node_modules/.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/NotificationFactories.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/Observable.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/Subscriber.js +2 -2
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/Subscription.js +2 -2
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/config.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/observable/empty.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/scheduler/timeoutProvider.js +2 -2
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/symbol/observable.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/UnsubscriptionError.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/createErrorClass.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/errorContext.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/pipe.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/rxjs@7.8.2/node_modules/rxjs}/dist/esm5/internal/util/reportUnhandledError.js +1 -1
- package/dist/node_modules/.bun/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/node_modules/{rxjs → .bun/tslib@2.8.1}/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/pages/AdminDashboardPage.js +89 -90
- package/dist/pages/AdminDashboardPage.js.map +1 -1
- package/dist/pages/AdminReviewModerationPage.js +56 -58
- package/dist/pages/AdminReviewModerationPage.js.map +1 -1
- package/dist/pages/AdminStoresPage.js +372 -391
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +148 -134
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/AppDetailPage.js +120 -123
- package/dist/pages/AppDetailPage.js.map +1 -1
- package/dist/pages/AppSettingsPage.js +297 -70
- package/dist/pages/AppSettingsPage.js.map +1 -1
- package/dist/pages/CartPage.js +76 -65
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +315 -106
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +378 -368
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +75 -67
- package/dist/pages/MyLicensesPage.js.map +1 -1
- package/dist/pages/OrderConfirmationPage.js +37 -38
- package/dist/pages/OrderConfirmationPage.js.map +1 -1
- package/dist/pages/OrdersPage.js +64 -53
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +213 -215
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/dist/pages/ProductReviewsPage.js +2 -2
- package/dist/pages/ProductReviewsPage.js.map +1 -1
- package/dist/pages/PublisherDashboardPage.js +92 -93
- package/dist/pages/PublisherDashboardPage.js.map +1 -1
- package/dist/pages/PublisherRevenuePage.js +60 -61
- package/dist/pages/PublisherRevenuePage.js.map +1 -1
- package/dist/pages/PublisherSubmissionsPage.js +96 -97
- package/dist/pages/PublisherSubmissionsPage.js.map +1 -1
- package/dist/pages/PublisherSubmitPage.js +184 -189
- package/dist/pages/PublisherSubmitPage.js.map +1 -1
- package/dist/providers/StoreProvider.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -10
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/version.js +0 -6
- package/dist/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
- /package/dist/node_modules/{@apollo → .bun/@apollo_client@4.1.9_e571b0b00fd00a97/node_modules/@apollo}/client/utilities/caching/sizes.js +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { useStore as e } from "../providers/StoreProvider.js";
|
|
2
2
|
import { useCallback as t, useEffect as n, useReducer as r, useState as i } from "react";
|
|
3
|
-
import { AlertCircle as a, Building2 as o, CheckCircle as s, Info as c, Loader2 as l } from "lucide-react";
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { graphqlFetch as
|
|
6
|
-
import { Dialog as m, DialogContent as h, DialogDescription as g, DialogFooter as _, DialogHeader as v, DialogTitle as y } from "@burdenoff/fe-libs/ui";
|
|
3
|
+
import { AlertCircle as a, Building2 as o, CheckCircle as s, Info as c, Loader2 as l, ShieldCheck as u, X as d } from "lucide-react";
|
|
4
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
5
|
+
import { graphqlFetch as h } from "@burdenoff/fe-libs/shared/graphql";
|
|
7
6
|
//#region src/components/InstallAppModal.tsx
|
|
8
|
-
var
|
|
7
|
+
var g = "query MyWorkspaces { myWorkspaces { items { id name slug type status organizationId } total } }", _ = "mutation InstallWorkspaceApps($workspaceIds: [ID!]!, $input: InstallWorkspaceAppInput!) { installWorkspaceApps(workspaceIds: $workspaceIds, input: $input) { successCount failedCount results { success workspaceId error } } }", v = "mutation RecordAppInstallation($input: RecordAppInstallationInput!) { recordAppInstallation(input: $input) { id status workspaceId version } }", y = "mutation InstallPurchasedApp($orderId: ID, $productId: String!, $workspaceId: String!) { installPurchasedApp(orderId: $orderId, productId: $productId, workspaceId: $workspaceId) { success alreadyInstalled installation { id productId workspaceId status version } error message } }", b = "mutation CreateProductEntitlement($input: CreateProductEntitlementInput!) { createProductEntitlement(input: $input) { id status productId workspaceId } }", x = new Set([
|
|
9
8
|
"VIBEMODULE",
|
|
10
9
|
"NODE",
|
|
11
10
|
"CONSOLE",
|
|
12
11
|
"DASHBOARD",
|
|
13
12
|
"PARSER",
|
|
14
13
|
"DATASINK"
|
|
15
|
-
]),
|
|
14
|
+
]), S = {
|
|
16
15
|
ALREADY_INSTALLED: "This app is already installed in the selected workspace.",
|
|
17
16
|
QUOTA_EXCEEDED: "Installation limit reached. Please upgrade your plan or contact support.",
|
|
18
17
|
PERMISSION_DENIED: "You do not have permission to install apps in this workspace.",
|
|
@@ -21,19 +20,19 @@ var b = "query MyWorkspaces { myWorkspaces { items { id name slug type status or
|
|
|
21
20
|
ENTITLEMENT_EXPIRED: "Your license for this app has expired.",
|
|
22
21
|
UNSUPPORTED_TYPE: "This product type cannot be installed in the selected workspace."
|
|
23
22
|
};
|
|
24
|
-
function
|
|
25
|
-
for (let [t, n] of Object.entries(
|
|
23
|
+
function C(e) {
|
|
24
|
+
for (let [t, n] of Object.entries(S)) if (e.toUpperCase().includes(t)) return n;
|
|
26
25
|
return "Installation failed. Please try again or contact support.";
|
|
27
26
|
}
|
|
28
|
-
var
|
|
27
|
+
var w = {
|
|
29
28
|
selectedWorkspace: null,
|
|
30
29
|
installing: !1,
|
|
31
30
|
installError: null,
|
|
32
31
|
installInfo: null
|
|
33
32
|
};
|
|
34
|
-
function
|
|
33
|
+
function T(e, t) {
|
|
35
34
|
switch (t.type) {
|
|
36
|
-
case "reset": return
|
|
35
|
+
case "reset": return w;
|
|
37
36
|
case "selectWorkspace": return {
|
|
38
37
|
...e,
|
|
39
38
|
selectedWorkspace: t.workspaceId
|
|
@@ -59,14 +58,14 @@ function k(e, t) {
|
|
|
59
58
|
default: return e;
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
|
-
function
|
|
61
|
+
function E(r) {
|
|
63
62
|
let { authToken: a } = e(), [o, s] = i([]), [c, l] = i(!1), [u, d] = i(null), f = t(async () => {
|
|
64
63
|
if (!r) {
|
|
65
64
|
l(!0), d(null);
|
|
66
65
|
try {
|
|
67
|
-
let e = await
|
|
66
|
+
let e = await h({
|
|
68
67
|
gateway: "global",
|
|
69
|
-
query:
|
|
68
|
+
query: g,
|
|
70
69
|
authToken: a || void 0
|
|
71
70
|
});
|
|
72
71
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? "GraphQL error");
|
|
@@ -87,254 +86,335 @@ function A(r) {
|
|
|
87
86
|
refetch: f
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
|
-
var
|
|
91
|
-
let { authToken:
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
var D = ({ isOpen: t, onClose: g, app: S, orderId: D, purchaseState: O = "free", onInstallSuccess: k, onInstallError: A }) => {
|
|
90
|
+
let { authToken: j, user: M } = e(), [N, P] = r(T, w), { selectedWorkspace: F, installing: I, installError: L, installInfo: R } = N, z = S.requiredPermissions ?? [], [B, V] = i(z.length > 0 ? "permissions" : "workspace");
|
|
91
|
+
n(() => {
|
|
92
|
+
t && (V(z.length > 0 ? "permissions" : "workspace"), P({ type: "reset" }));
|
|
93
|
+
}, [t, z.length]);
|
|
94
|
+
let { workspaces: H, loading: U, error: W } = E(!t || B === "permissions"), G = H.filter((e) => e.status === "ACTIVE"), K = async () => {
|
|
95
|
+
if (!F) return;
|
|
96
|
+
let e = G.find((e) => e.id === F);
|
|
94
97
|
if (!e) return;
|
|
95
|
-
let t =
|
|
96
|
-
|
|
98
|
+
let t = M?.id;
|
|
99
|
+
P({ type: "startInstall" });
|
|
97
100
|
try {
|
|
98
|
-
if (!
|
|
101
|
+
if (!D && O !== "purchased") {
|
|
99
102
|
if (!t) throw Error("Unable to identify the current user for license creation");
|
|
100
|
-
await
|
|
103
|
+
await h({
|
|
101
104
|
gateway: "global",
|
|
102
|
-
query:
|
|
105
|
+
query: b,
|
|
103
106
|
variables: { input: {
|
|
104
|
-
productId:
|
|
107
|
+
productId: S.id,
|
|
105
108
|
purchasedBy: t,
|
|
106
109
|
workspaceId: e.id,
|
|
107
110
|
metadata: {
|
|
108
111
|
source: "store-ui",
|
|
109
|
-
productType:
|
|
112
|
+
productType: S.type
|
|
110
113
|
}
|
|
111
114
|
} },
|
|
112
|
-
authToken:
|
|
115
|
+
authToken: j || void 0
|
|
113
116
|
});
|
|
114
117
|
}
|
|
115
|
-
let
|
|
118
|
+
let n = await h({
|
|
116
119
|
gateway: "global",
|
|
117
|
-
query:
|
|
120
|
+
query: y,
|
|
118
121
|
variables: {
|
|
119
|
-
orderId:
|
|
120
|
-
productId:
|
|
122
|
+
orderId: D ?? null,
|
|
123
|
+
productId: S.id,
|
|
121
124
|
workspaceId: e.id
|
|
122
125
|
},
|
|
123
|
-
authToken:
|
|
126
|
+
authToken: j || void 0
|
|
124
127
|
});
|
|
125
|
-
if (
|
|
126
|
-
let
|
|
127
|
-
if (
|
|
128
|
+
if (n.errors?.length) throw Error(n.errors[0]?.message ?? "Installation failed");
|
|
129
|
+
let r = n.data?.installPurchasedApp;
|
|
130
|
+
if (r?.success) r.alreadyInstalled ? P({
|
|
128
131
|
type: "setInfo",
|
|
129
|
-
info:
|
|
130
|
-
}) : (
|
|
132
|
+
info: r.message || "Already installed on this workspace"
|
|
133
|
+
}) : (k?.(e.id, e.name), g());
|
|
131
134
|
else {
|
|
132
|
-
let e =
|
|
133
|
-
|
|
135
|
+
let e = r?.error || "Installation failed";
|
|
136
|
+
P({
|
|
134
137
|
type: "setError",
|
|
135
|
-
error:
|
|
136
|
-
}),
|
|
138
|
+
error: C(e)
|
|
139
|
+
}), A?.(Error(e));
|
|
137
140
|
}
|
|
138
141
|
} catch (e) {
|
|
139
142
|
let t = e instanceof Error ? e.message : "Installation failed";
|
|
140
|
-
|
|
143
|
+
P({
|
|
141
144
|
type: "setError",
|
|
142
|
-
error:
|
|
143
|
-
}),
|
|
145
|
+
error: C(t)
|
|
146
|
+
}), A?.(Error(t));
|
|
144
147
|
} finally {
|
|
145
|
-
|
|
148
|
+
P({ type: "finishInstall" });
|
|
146
149
|
}
|
|
147
|
-
},
|
|
148
|
-
if (!
|
|
149
|
-
let e =
|
|
150
|
+
}, q = async () => {
|
|
151
|
+
if (!F) return;
|
|
152
|
+
let e = G.find((e) => e.id === F);
|
|
150
153
|
if (e) {
|
|
151
|
-
|
|
154
|
+
P({ type: "startInstall" });
|
|
152
155
|
try {
|
|
153
|
-
let t = await
|
|
156
|
+
let t = await h({
|
|
154
157
|
gateway: "workspace",
|
|
155
|
-
query:
|
|
158
|
+
query: _,
|
|
156
159
|
variables: {
|
|
157
160
|
workspaceIds: [e.id],
|
|
158
161
|
input: {
|
|
159
|
-
appName:
|
|
160
|
-
displayName:
|
|
161
|
-
version:
|
|
162
|
-
type:
|
|
162
|
+
appName: S.slug || S.name.toLowerCase().replace(/\s+/g, "-"),
|
|
163
|
+
displayName: S.name,
|
|
164
|
+
version: S.version || "1.0.0",
|
|
165
|
+
type: S.type || "app",
|
|
163
166
|
manifest: {
|
|
164
|
-
productId:
|
|
165
|
-
icon:
|
|
167
|
+
productId: S.id,
|
|
168
|
+
icon: S.icon
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
},
|
|
169
|
-
authToken:
|
|
172
|
+
authToken: j || void 0,
|
|
170
173
|
workspaceId: e.id,
|
|
171
174
|
workspaceToken: !0
|
|
172
175
|
});
|
|
173
176
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Installation failed");
|
|
174
|
-
let
|
|
175
|
-
if (
|
|
177
|
+
let n = t.data?.installWorkspaceApps;
|
|
178
|
+
if (n?.successCount && n.successCount > 0) {
|
|
176
179
|
try {
|
|
177
|
-
await
|
|
180
|
+
await h({
|
|
178
181
|
gateway: "global",
|
|
179
|
-
query:
|
|
182
|
+
query: v,
|
|
180
183
|
variables: { input: {
|
|
181
|
-
productId:
|
|
184
|
+
productId: S.id,
|
|
182
185
|
workspaceId: e.id,
|
|
183
186
|
workspaceName: e.name,
|
|
184
187
|
workspaceType: e.type,
|
|
185
188
|
organizationId: e.organizationId,
|
|
186
|
-
version:
|
|
189
|
+
version: S.version || "1.0.0",
|
|
187
190
|
manifest: {
|
|
188
|
-
productId:
|
|
189
|
-
icon:
|
|
190
|
-
slug:
|
|
191
|
-
type:
|
|
191
|
+
productId: S.id,
|
|
192
|
+
icon: S.icon,
|
|
193
|
+
slug: S.slug,
|
|
194
|
+
type: S.type
|
|
192
195
|
}
|
|
193
196
|
} },
|
|
194
|
-
authToken:
|
|
197
|
+
authToken: j || void 0
|
|
195
198
|
});
|
|
196
199
|
} catch {}
|
|
197
|
-
|
|
200
|
+
k?.(e.id, e.name), g();
|
|
198
201
|
} else {
|
|
199
|
-
let e =
|
|
200
|
-
|
|
202
|
+
let e = n?.results?.[0]?.error || "Installation failed";
|
|
203
|
+
P({
|
|
201
204
|
type: "setError",
|
|
202
|
-
error:
|
|
203
|
-
}),
|
|
205
|
+
error: C(e)
|
|
206
|
+
}), A?.(Error(e));
|
|
204
207
|
}
|
|
205
208
|
} catch (e) {
|
|
206
209
|
let t = e instanceof Error ? e.message : "Installation failed";
|
|
207
|
-
|
|
210
|
+
P({
|
|
208
211
|
type: "setError",
|
|
209
|
-
error:
|
|
210
|
-
}),
|
|
212
|
+
error: C(t)
|
|
213
|
+
}), A?.(Error(t));
|
|
211
214
|
} finally {
|
|
212
|
-
|
|
215
|
+
P({ type: "finishInstall" });
|
|
213
216
|
}
|
|
214
217
|
}
|
|
218
|
+
}, J = async () => {
|
|
219
|
+
let e = S.type?.toUpperCase() ?? "";
|
|
220
|
+
O === "purchased" || D || x.has(e) ? await K() : await q();
|
|
215
221
|
};
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
222
|
+
if (!t) return null;
|
|
223
|
+
let Y = B === "permissions" ? "Review Permissions" : "Install App";
|
|
224
|
+
return /* @__PURE__ */ m("div", {
|
|
225
|
+
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
226
|
+
children: [/* @__PURE__ */ p("button", {
|
|
227
|
+
type: "button",
|
|
228
|
+
"aria-label": "Close modal",
|
|
229
|
+
className: "absolute inset-0 bg-bg-overlay/50 backdrop-blur-sm",
|
|
230
|
+
onClick: g
|
|
231
|
+
}), /* @__PURE__ */ m("dialog", {
|
|
232
|
+
open: !0,
|
|
233
|
+
"aria-modal": "true",
|
|
234
|
+
"aria-labelledby": "install-app-modal-title",
|
|
235
|
+
className: "relative z-10 mx-4 w-full max-w-lg rounded-2xl border border-border-default bg-bg-surface shadow-2xl",
|
|
221
236
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
className: "flex
|
|
224
|
-
children: /* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ m("div", {
|
|
238
|
+
className: "flex items-center justify-between border-b border-border-default px-6 py-4",
|
|
239
|
+
children: [/* @__PURE__ */ m("div", {
|
|
225
240
|
className: "flex items-center gap-3",
|
|
226
|
-
children: [
|
|
227
|
-
src:
|
|
228
|
-
alt:
|
|
241
|
+
children: [S.icon ? /* @__PURE__ */ p("img", {
|
|
242
|
+
src: S.icon,
|
|
243
|
+
alt: S.name,
|
|
229
244
|
className: "size-10 rounded-lg object-cover"
|
|
230
|
-
}) : /* @__PURE__ */
|
|
245
|
+
}) : /* @__PURE__ */ p("div", {
|
|
231
246
|
className: "flex size-10 items-center justify-center rounded-lg bg-bg-sunken text-lg font-bold text-text-muted",
|
|
232
|
-
children:
|
|
233
|
-
}), /* @__PURE__ */
|
|
247
|
+
children: S.name.charAt(0)
|
|
248
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
249
|
+
id: "install-app-modal-title",
|
|
234
250
|
className: "text-lg font-semibold text-text-primary",
|
|
235
|
-
children:
|
|
236
|
-
}), /* @__PURE__ */
|
|
251
|
+
children: Y
|
|
252
|
+
}), /* @__PURE__ */ p("p", {
|
|
237
253
|
className: "text-sm text-text-muted",
|
|
238
|
-
children:
|
|
254
|
+
children: S.name
|
|
239
255
|
})] })]
|
|
240
|
-
})
|
|
256
|
+
}), /* @__PURE__ */ p("button", {
|
|
257
|
+
type: "button",
|
|
258
|
+
onClick: g,
|
|
259
|
+
"aria-label": "Close install dialog",
|
|
260
|
+
className: "cursor-pointer rounded-lg p-2 text-text-muted transition-colors hover:bg-bg-sunken hover:text-text-primary",
|
|
261
|
+
children: /* @__PURE__ */ p(d, { className: "size-5" })
|
|
262
|
+
})]
|
|
241
263
|
}),
|
|
242
|
-
/* @__PURE__ */ f("div", {
|
|
264
|
+
B === "permissions" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
|
|
243
265
|
className: "px-6 py-4",
|
|
244
|
-
children: [
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
className: "
|
|
254
|
-
children:
|
|
255
|
-
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
className: "text-sm text-
|
|
258
|
-
children:
|
|
259
|
-
})
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
})
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ m("p", {
|
|
268
|
+
className: "mb-1 text-sm text-text-secondary",
|
|
269
|
+
children: [/* @__PURE__ */ p("span", {
|
|
270
|
+
className: "font-medium text-text-primary",
|
|
271
|
+
children: S.name
|
|
272
|
+
}), " requests access to the following data in your workspace. You must accept to continue."]
|
|
273
|
+
}),
|
|
274
|
+
/* @__PURE__ */ p("div", {
|
|
275
|
+
className: "mt-4 max-h-72 overflow-y-auto space-y-2",
|
|
276
|
+
children: z.map((e) => /* @__PURE__ */ m("div", {
|
|
277
|
+
className: "flex items-center gap-3 rounded-lg bg-bg-sunken px-4 py-3",
|
|
278
|
+
children: [/* @__PURE__ */ p(u, { className: "size-5 flex-shrink-0 text-status-success-text" }), /* @__PURE__ */ p("span", {
|
|
279
|
+
className: "text-sm text-text-primary",
|
|
280
|
+
children: e
|
|
281
|
+
})]
|
|
282
|
+
}, e))
|
|
283
|
+
}),
|
|
284
|
+
/* @__PURE__ */ p("p", {
|
|
285
|
+
className: "mt-3 text-xs text-text-muted",
|
|
286
|
+
children: "These permissions will be recorded. You will be notified if they change in a future version."
|
|
287
|
+
})
|
|
288
|
+
]
|
|
289
|
+
}), /* @__PURE__ */ m("div", {
|
|
290
|
+
className: "border-t border-border-default px-6 py-4 flex items-center justify-end gap-3",
|
|
291
|
+
children: [/* @__PURE__ */ p("button", {
|
|
292
|
+
type: "button",
|
|
293
|
+
onClick: g,
|
|
294
|
+
className: "cursor-pointer rounded-lg border border-border-default px-4 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken",
|
|
295
|
+
children: "Cancel"
|
|
296
|
+
}), /* @__PURE__ */ m("button", {
|
|
297
|
+
type: "button",
|
|
298
|
+
onClick: () => V("workspace"),
|
|
299
|
+
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 inline-flex items-center gap-2",
|
|
300
|
+
children: [/* @__PURE__ */ p(s, { className: "size-4" }), "Accept & Continue"]
|
|
301
|
+
})]
|
|
302
|
+
})] }),
|
|
303
|
+
B === "workspace" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
|
|
304
|
+
className: "px-6 py-4",
|
|
305
|
+
children: [
|
|
306
|
+
z.length > 0 && /* @__PURE__ */ m("div", {
|
|
307
|
+
className: "mb-3 flex items-center gap-2 rounded-lg bg-status-success-bg-subtle px-3 py-2 text-sm text-status-success-text",
|
|
308
|
+
children: [/* @__PURE__ */ p(s, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ m("span", { children: [
|
|
309
|
+
"Permissions accepted (",
|
|
310
|
+
z.length,
|
|
311
|
+
" permission",
|
|
312
|
+
z.length === 1 ? "" : "s",
|
|
313
|
+
")"
|
|
314
|
+
] })]
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ p("p", {
|
|
317
|
+
className: "mb-4 text-text-secondary",
|
|
318
|
+
children: "Select the workspace where you want to install this app:"
|
|
319
|
+
}),
|
|
320
|
+
/* @__PURE__ */ p("div", {
|
|
321
|
+
className: "max-h-64 overflow-y-auto rounded-lg border border-border-default",
|
|
322
|
+
children: U ? /* @__PURE__ */ p("div", {
|
|
323
|
+
className: "flex items-center justify-center py-12",
|
|
324
|
+
children: /* @__PURE__ */ p(l, { className: "size-8 animate-spin text-text-muted" })
|
|
325
|
+
}) : W ? /* @__PURE__ */ m("div", {
|
|
326
|
+
className: "flex flex-col items-center justify-center py-12 text-center",
|
|
280
327
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
|
|
283
|
-
|
|
328
|
+
/* @__PURE__ */ p(a, { className: "mb-2 size-8 text-status-error-text" }),
|
|
329
|
+
/* @__PURE__ */ p("p", {
|
|
330
|
+
className: "text-sm text-status-error-text",
|
|
331
|
+
children: "Failed to load workspaces"
|
|
284
332
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
className: "
|
|
287
|
-
children:
|
|
288
|
-
|
|
289
|
-
children: e.name
|
|
290
|
-
}), e.slug ? /* @__PURE__ */ f("p", {
|
|
291
|
-
className: "text-xs text-text-muted truncate",
|
|
292
|
-
children: ["/", e.slug]
|
|
293
|
-
}) : null]
|
|
294
|
-
}),
|
|
295
|
-
L === e.id && /* @__PURE__ */ d(s, { className: "size-5 flex-shrink-0 text-action-primary-bg" })
|
|
333
|
+
/* @__PURE__ */ p("p", {
|
|
334
|
+
className: "text-xs text-text-muted mt-1",
|
|
335
|
+
children: W.message
|
|
336
|
+
})
|
|
296
337
|
]
|
|
297
|
-
},
|
|
338
|
+
}) : G.length === 0 ? /* @__PURE__ */ m("div", {
|
|
339
|
+
className: "flex flex-col items-center justify-center py-12 text-center",
|
|
340
|
+
children: [/* @__PURE__ */ p(o, { className: "mb-2 size-8 text-text-muted" }), /* @__PURE__ */ p("p", {
|
|
341
|
+
className: "text-sm text-text-muted",
|
|
342
|
+
children: "No workspaces available"
|
|
343
|
+
})]
|
|
344
|
+
}) : /* @__PURE__ */ p("div", {
|
|
345
|
+
className: "divide-y divide-border-default",
|
|
346
|
+
children: G.map((e) => /* @__PURE__ */ m("button", {
|
|
347
|
+
type: "button",
|
|
348
|
+
onClick: () => P({
|
|
349
|
+
type: "selectWorkspace",
|
|
350
|
+
workspaceId: e.id
|
|
351
|
+
}),
|
|
352
|
+
className: `w-full cursor-pointer flex items-center gap-3 px-4 py-3 text-left transition-colors ${F === e.id ? "bg-action-primary-bg/10" : "transition-colors hover:bg-bg-sunken"}`,
|
|
353
|
+
children: [
|
|
354
|
+
/* @__PURE__ */ p("div", {
|
|
355
|
+
className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10 text-text-link",
|
|
356
|
+
children: /* @__PURE__ */ p(o, { className: "size-5" })
|
|
357
|
+
}),
|
|
358
|
+
/* @__PURE__ */ m("div", {
|
|
359
|
+
className: "flex-1 min-w-0",
|
|
360
|
+
children: [/* @__PURE__ */ p("p", {
|
|
361
|
+
className: "font-medium text-text-primary truncate",
|
|
362
|
+
children: e.name
|
|
363
|
+
}), e.slug ? /* @__PURE__ */ m("p", {
|
|
364
|
+
className: "text-xs text-text-muted truncate",
|
|
365
|
+
children: ["/", e.slug]
|
|
366
|
+
}) : null]
|
|
367
|
+
}),
|
|
368
|
+
F === e.id && /* @__PURE__ */ p(s, { className: "size-5 flex-shrink-0 text-action-primary-bg" })
|
|
369
|
+
]
|
|
370
|
+
}, e.id))
|
|
371
|
+
})
|
|
298
372
|
})
|
|
299
|
-
|
|
300
|
-
}),
|
|
301
|
-
|
|
302
|
-
className: "block border-t border-border-default px-6 py-4 sm:flex-col sm:items-stretch sm:space-x-0",
|
|
373
|
+
]
|
|
374
|
+
}), /* @__PURE__ */ m("div", {
|
|
375
|
+
className: "border-t border-border-default px-6 py-4",
|
|
303
376
|
children: [
|
|
304
|
-
|
|
377
|
+
R && /* @__PURE__ */ m("div", {
|
|
305
378
|
className: "mb-3 flex items-center gap-2 rounded-lg bg-status-info-bg-subtle px-3 py-2 text-sm text-status-info-text",
|
|
306
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ p(c, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ p("span", { children: R })]
|
|
307
380
|
}),
|
|
308
|
-
|
|
381
|
+
L && /* @__PURE__ */ m("div", {
|
|
309
382
|
className: "mb-3 flex items-center gap-2 rounded-lg bg-status-error-bg-subtle/10 px-3 py-2 text-sm text-status-error-text",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ p(a, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ p("span", { children: L })]
|
|
311
384
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ m("div", {
|
|
313
386
|
className: "flex items-center justify-end gap-3",
|
|
314
|
-
children: [
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
387
|
+
children: [
|
|
388
|
+
z.length > 0 && /* @__PURE__ */ p("button", {
|
|
389
|
+
type: "button",
|
|
390
|
+
onClick: () => V("permissions"),
|
|
391
|
+
disabled: I,
|
|
392
|
+
className: "cursor-pointer rounded-lg border border-border-default px-4 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken disabled:opacity-50",
|
|
393
|
+
children: "Back"
|
|
394
|
+
}),
|
|
395
|
+
/* @__PURE__ */ p("button", {
|
|
396
|
+
type: "button",
|
|
397
|
+
onClick: g,
|
|
398
|
+
disabled: I,
|
|
399
|
+
className: "cursor-pointer rounded-lg border border-border-default px-4 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken disabled:opacity-50",
|
|
400
|
+
children: "Cancel"
|
|
401
|
+
}),
|
|
402
|
+
/* @__PURE__ */ p("button", {
|
|
403
|
+
type: "button",
|
|
404
|
+
onClick: J,
|
|
405
|
+
disabled: !F || I,
|
|
406
|
+
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 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center gap-2",
|
|
407
|
+
children: I ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(l, { className: "size-4 animate-spin" }), "Installing…"] }) : "Install App"
|
|
408
|
+
})
|
|
409
|
+
]
|
|
330
410
|
})
|
|
331
411
|
]
|
|
332
|
-
})
|
|
412
|
+
})] })
|
|
333
413
|
]
|
|
334
|
-
})
|
|
414
|
+
})]
|
|
335
415
|
});
|
|
336
416
|
};
|
|
337
417
|
//#endregion
|
|
338
|
-
export {
|
|
418
|
+
export { D as InstallAppModal };
|
|
339
419
|
|
|
340
420
|
//# sourceMappingURL=InstallAppModal.js.map
|