@burdenoff/microfe-devportal 2026.714.9 → 2026.715.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/__tests__/utils/renderWithProviders.d.ts +32 -0
- package/dist/__tests__/utils/renderWithProviders.d.ts.map +1 -0
- package/dist/dev/main.d.ts +8 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/devportal/AdminDevportalRoot.d.ts +17 -0
- package/dist/devportal/AdminDevportalRoot.d.ts.map +1 -0
- package/dist/devportal/AdminDevportalRoutes.d.ts +2 -0
- package/dist/devportal/AdminDevportalRoutes.d.ts.map +1 -0
- package/dist/devportal/DevportalRoot.d.ts +30 -0
- package/dist/devportal/DevportalRoot.d.ts.map +1 -0
- package/dist/devportal/DevportalRoutes.d.ts +2 -0
- package/dist/devportal/DevportalRoutes.d.ts.map +1 -0
- package/dist/devportal/components/AppCard.d.ts +35 -0
- package/dist/devportal/components/AppCard.d.ts.map +1 -0
- package/dist/devportal/components/ConfirmDialog.d.ts +29 -0
- package/dist/devportal/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/devportal/components/DataTable.d.ts +41 -0
- package/dist/devportal/components/DataTable.d.ts.map +1 -0
- package/dist/devportal/components/EmptyState.d.ts +32 -0
- package/dist/devportal/components/EmptyState.d.ts.map +1 -0
- package/dist/devportal/components/FeatureFlaggedRoute.d.ts +10 -0
- package/dist/devportal/components/FeatureFlaggedRoute.d.ts.map +1 -0
- package/dist/devportal/components/FormField.d.ts +70 -0
- package/dist/devportal/components/FormField.d.ts.map +1 -0
- package/dist/devportal/components/GrantDelegationModal.d.ts +23 -0
- package/dist/devportal/components/GrantDelegationModal.d.ts.map +1 -0
- package/dist/devportal/components/LoadingState.d.ts +31 -0
- package/dist/devportal/components/LoadingState.d.ts.map +1 -0
- package/dist/devportal/components/PageLayout.d.ts +43 -0
- package/dist/devportal/components/PageLayout.d.ts.map +1 -0
- package/dist/devportal/components/PermissionGuard.d.ts +15 -0
- package/dist/devportal/components/PermissionGuard.d.ts.map +1 -0
- package/dist/devportal/components/SecretDisplay.d.ts +32 -0
- package/dist/devportal/components/SecretDisplay.d.ts.map +1 -0
- package/dist/devportal/components/SectionNav.d.ts +26 -0
- package/dist/devportal/components/SectionNav.d.ts.map +1 -0
- package/dist/devportal/components/SelectionCheckbox.d.ts +11 -0
- package/dist/devportal/components/SelectionCheckbox.d.ts.map +1 -0
- package/dist/devportal/components/StatCard.d.ts +32 -0
- package/dist/devportal/components/StatCard.d.ts.map +1 -0
- package/dist/devportal/components/StatusBadge.d.ts +33 -0
- package/dist/devportal/components/StatusBadge.d.ts.map +1 -0
- package/dist/devportal/components/TelemetryErrorBoundary.d.ts +11 -0
- package/dist/devportal/components/TelemetryErrorBoundary.d.ts.map +1 -0
- package/dist/devportal/components/index.d.ts +21 -0
- package/dist/devportal/components/index.d.ts.map +1 -0
- package/dist/devportal/constants/permissions.d.ts +90 -0
- package/dist/devportal/constants/permissions.d.ts.map +1 -0
- package/dist/devportal/events/index.d.ts +19 -0
- package/dist/devportal/events/index.d.ts.map +1 -0
- package/dist/devportal/hooks/DevPortalProvider.d.ts +18 -0
- package/dist/devportal/hooks/DevPortalProvider.d.ts.map +1 -0
- package/dist/devportal/hooks/index.d.ts +10 -0
- package/dist/devportal/hooks/index.d.ts.map +1 -0
- package/dist/devportal/hooks/useGraphQL.d.ts +56 -0
- package/dist/devportal/hooks/useGraphQL.d.ts.map +1 -0
- package/dist/devportal/hooks/usePackageUpload.d.ts +16 -0
- package/dist/devportal/hooks/usePackageUpload.d.ts.map +1 -0
- package/dist/devportal/hooks/usePermission.d.ts +24 -0
- package/dist/devportal/hooks/usePermission.d.ts.map +1 -0
- package/dist/devportal/index.d.ts +36 -0
- package/dist/devportal/index.d.ts.map +1 -0
- package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts +4 -0
- package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts.map +1 -0
- package/dist/devportal/pages/AdminReviewPage.d.ts +4 -0
- package/dist/devportal/pages/AdminReviewPage.d.ts.map +1 -0
- package/dist/devportal/pages/AnalyticsDashboardPage.d.ts +4 -0
- package/dist/devportal/pages/AnalyticsDashboardPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApiKeysPage.d.ts +12 -0
- package/dist/devportal/pages/ApiKeysPage.d.ts.map +1 -0
- package/dist/devportal/pages/AppLogsPage.d.ts +4 -0
- package/dist/devportal/pages/AppLogsPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApplicationDetailPage.d.ts +7 -0
- package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApplicationDetailPage.js +847 -793
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationVersionsPage.d.ts +4 -0
- package/dist/devportal/pages/ApplicationVersionsPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApplicationsPage.d.ts +10 -0
- package/dist/devportal/pages/ApplicationsPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateApiKeyPage.d.ts +11 -0
- package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateApplicationPage.d.ts +4 -0
- package/dist/devportal/pages/CreateApplicationPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateOAuthClientPage.d.ts +10 -0
- package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateOrganizationPage.d.ts +9 -0
- package/dist/devportal/pages/CreateOrganizationPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreatePhysicalItemPage.d.ts +4 -0
- package/dist/devportal/pages/CreatePhysicalItemPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateWebhookPage.d.ts +4 -0
- package/dist/devportal/pages/CreateWebhookPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
- package/dist/devportal/pages/DashboardPage.d.ts +4 -0
- package/dist/devportal/pages/DashboardPage.d.ts.map +1 -0
- package/dist/devportal/pages/DelegationsPage.d.ts +12 -0
- package/dist/devportal/pages/DelegationsPage.d.ts.map +1 -0
- package/dist/devportal/pages/DocumentationPage.d.ts +4 -0
- package/dist/devportal/pages/DocumentationPage.d.ts.map +1 -0
- package/dist/devportal/pages/EditApplicationPage.d.ts +7 -0
- package/dist/devportal/pages/EditApplicationPage.d.ts.map +1 -0
- package/dist/devportal/pages/EditPhysicalItemPage.d.ts +4 -0
- package/dist/devportal/pages/EditPhysicalItemPage.d.ts.map +1 -0
- package/dist/devportal/pages/InvitationDecisionPage.d.ts +4 -0
- package/dist/devportal/pages/InvitationDecisionPage.d.ts.map +1 -0
- package/dist/devportal/pages/ListingPreviewPage.d.ts +4 -0
- package/dist/devportal/pages/ListingPreviewPage.d.ts.map +1 -0
- package/dist/devportal/pages/OAuthCallbackPage.d.ts +4 -0
- package/dist/devportal/pages/OAuthCallbackPage.d.ts.map +1 -0
- package/dist/devportal/pages/OAuthClientDetailPage.d.ts +10 -0
- package/dist/devportal/pages/OAuthClientDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/OAuthClientsPage.d.ts +11 -0
- package/dist/devportal/pages/OAuthClientsPage.d.ts.map +1 -0
- package/dist/devportal/pages/OrganizationDetailPage.d.ts +7 -0
- package/dist/devportal/pages/OrganizationDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/OrganizationMembersPage.d.ts +4 -0
- package/dist/devportal/pages/OrganizationMembersPage.d.ts.map +1 -0
- package/dist/devportal/pages/OrganizationsPage.d.ts +10 -0
- package/dist/devportal/pages/OrganizationsPage.d.ts.map +1 -0
- package/dist/devportal/pages/PublishPage.d.ts +4 -0
- package/dist/devportal/pages/PublishPage.d.ts.map +1 -0
- package/dist/devportal/pages/PublisherProfilePage.d.ts +12 -0
- package/dist/devportal/pages/PublisherProfilePage.d.ts.map +1 -0
- package/dist/devportal/pages/ResourcesPage.d.ts +4 -0
- package/dist/devportal/pages/ResourcesPage.d.ts.map +1 -0
- package/dist/devportal/pages/RevenueDashboardPage.d.ts +4 -0
- package/dist/devportal/pages/RevenueDashboardPage.d.ts.map +1 -0
- package/dist/devportal/pages/RevenueRedirectPage.d.ts +4 -0
- package/dist/devportal/pages/RevenueRedirectPage.d.ts.map +1 -0
- package/dist/devportal/pages/SellerDashboardPage.d.ts +4 -0
- package/dist/devportal/pages/SellerDashboardPage.d.ts.map +1 -0
- package/dist/devportal/pages/SellerItemsPage.d.ts +4 -0
- package/dist/devportal/pages/SellerItemsPage.d.ts.map +1 -0
- package/dist/devportal/pages/SellerOrdersPage.d.ts +4 -0
- package/dist/devportal/pages/SellerOrdersPage.d.ts.map +1 -0
- package/dist/devportal/pages/SettingsPage.d.ts +4 -0
- package/dist/devportal/pages/SettingsPage.d.ts.map +1 -0
- package/dist/devportal/pages/SetupPage.d.ts +4 -0
- package/dist/devportal/pages/SetupPage.d.ts.map +1 -0
- package/dist/devportal/pages/StoreSubmissionPage.d.ts +4 -0
- package/dist/devportal/pages/StoreSubmissionPage.d.ts.map +1 -0
- package/dist/devportal/pages/WebhookDetailPage.d.ts +4 -0
- package/dist/devportal/pages/WebhookDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/WebhooksPage.d.ts +10 -0
- package/dist/devportal/pages/WebhooksPage.d.ts.map +1 -0
- package/dist/devportal/providers/DevportalProvider.d.ts +22 -0
- package/dist/devportal/providers/DevportalProvider.d.ts.map +1 -0
- package/dist/devportal/store/devportalStore.d.ts +60 -0
- package/dist/devportal/store/devportalStore.d.ts.map +1 -0
- package/dist/devportal/types/index.d.ts +710 -0
- package/dist/devportal/types/index.d.ts.map +1 -0
- package/dist/devportal/utils/cn.d.ts +8 -0
- package/dist/devportal/utils/cn.d.ts.map +1 -0
- package/dist/devportal/utils/constants.d.ts +107 -0
- package/dist/devportal/utils/constants.d.ts.map +1 -0
- package/dist/devportal/utils/i18n.d.ts +13 -0
- package/dist/devportal/utils/i18n.d.ts.map +1 -0
- package/dist/devportal/utils/recaptcha.d.ts +2 -0
- package/dist/devportal/utils/recaptcha.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +7863 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +77 -27
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +23236 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +46 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +57851 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -2,28 +2,28 @@ import { useDevportal as e } from "../providers/DevportalProvider.js";
|
|
|
2
2
|
import { cn as t } from "../utils/cn.js";
|
|
3
3
|
import { LoadingState as n } from "../components/LoadingState.js";
|
|
4
4
|
import { EmptyState as r } from "../components/EmptyState.js";
|
|
5
|
-
import { useCurrentUserDelegationsQuery as i, useDeactivateAppMutation as a, useGetApplicationAnalyticsQuery as o, useGetApplicationQuery as s, useGetApplicationVersionsQuery as c, useGetOrganizationQuery as l, useGetWebhooksQuery as u, useGetWorkspaceInstallationQuery as d, useInstallApplicationMutation as f, usePublishApplicationVersionMutation as p, useRevokeDelegationMutation as m, useRotateAppSecretMutation as h,
|
|
6
|
-
import { PageLayout as
|
|
7
|
-
import { APP_TYPE_LABELS as
|
|
8
|
-
import { FeaturedBadge as
|
|
9
|
-
import { SelectionCheckbox as
|
|
10
|
-
import { nativeNotify as
|
|
11
|
-
import { NewSecretAlert as
|
|
5
|
+
import { useCurrentUserDelegationsQuery as i, useDeactivateAppMutation as a, useGetApplicationAnalyticsQuery as o, useGetApplicationQuery as s, useGetApplicationVersionsQuery as c, useGetOrganizationQuery as l, useGetWebhooksQuery as u, useGetWorkspaceInstallationQuery as d, useInstallApplicationMutation as f, usePublishApplicationVersionMutation as p, useRevokeDelegationMutation as m, useRotateAppSecretMutation as h, useShareWorkflowMutation as g, useSubmitApplicationMutation as _, useUninstallApplicationMutation as v, useUnshareWorkflowMutation as y, useUpdateApplicationMutation as b } from "../../generated/global-operations.js";
|
|
6
|
+
import { PageLayout as x, PageSection as S } from "../components/PageLayout.js";
|
|
7
|
+
import { APP_TYPE_LABELS as C } from "../utils/constants.js";
|
|
8
|
+
import { FeaturedBadge as w, StatusBadge as ee, VerifiedBadge as T } from "../components/StatusBadge.js";
|
|
9
|
+
import { SelectionCheckbox as E } from "../components/SelectionCheckbox.js";
|
|
10
|
+
import { nativeNotify as D } from "../../utils/nativeBridge.js";
|
|
11
|
+
import { NewSecretAlert as te } from "../components/SecretDisplay.js";
|
|
12
12
|
import { DataTable as O, DetailList as k } from "../components/DataTable.js";
|
|
13
|
-
import { InputField as A, SelectField as
|
|
14
|
-
import { ConfirmDialog as
|
|
15
|
-
import { GrantDelegationModal as
|
|
16
|
-
import { DEVPORTAL_PERMISSIONS as
|
|
17
|
-
import { useDevportalPermission as
|
|
18
|
-
import { usePackageUpload as
|
|
19
|
-
import { useCallback as j, useEffect as
|
|
20
|
-
import { useI18n as
|
|
21
|
-
import { AlertCircle as
|
|
22
|
-
import { useParams as
|
|
23
|
-
import { Fragment as
|
|
24
|
-
import { CTAOverflowMenu as
|
|
13
|
+
import { InputField as A, SelectField as ne, TextareaField as re } from "../components/FormField.js";
|
|
14
|
+
import { ConfirmDialog as ie } from "../components/ConfirmDialog.js";
|
|
15
|
+
import { GrantDelegationModal as ae } from "../components/GrantDelegationModal.js";
|
|
16
|
+
import { DEVPORTAL_PERMISSIONS as oe } from "../constants/permissions.js";
|
|
17
|
+
import { useDevportalPermission as se } from "../hooks/usePermission.js";
|
|
18
|
+
import { usePackageUpload as ce } from "../hooks/usePackageUpload.js";
|
|
19
|
+
import { useCallback as j, useEffect as le, useMemo as M, useRef as ue, useState as N } from "react";
|
|
20
|
+
import { useI18n as P } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
21
|
+
import { AlertCircle as de, AppWindow as fe, BarChart3 as pe, Check as F, CheckCircle as me, ChevronRight as he, CircleDollarSign as I, Clock as ge, Copy as _e, Edit as ve, ExternalLink as L, FlaskConical as ye, Gift as be, Info as xe, Key as Se, Link as Ce, Loader2 as R, Lock as we, MoreHorizontal as Te, Package as Ee, Plus as z, Power as De, RefreshCw as Oe, SendHorizontal as ke, Shield as B, Store as Ae, TrendingUp as je, Upload as V, Users as Me, Wallet as Ne, Webhook as Pe, X as Fe, XCircle as Ie } from "lucide-react";
|
|
22
|
+
import { useParams as Le } from "react-router-dom";
|
|
23
|
+
import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
24
|
+
import { CTAOverflowMenu as Re, EmphasisPanel as ze, GlassCard as Be } from "@burdenoff/fe-libs/ui";
|
|
25
25
|
//#region src/devportal/pages/ApplicationDetailPage.tsx
|
|
26
|
-
function
|
|
26
|
+
function Ve(e) {
|
|
27
27
|
return e ? {
|
|
28
28
|
id: e.id,
|
|
29
29
|
name: e.name,
|
|
@@ -76,7 +76,7 @@ function Ie(e) {
|
|
|
76
76
|
updatedAt: e.updatedAt
|
|
77
77
|
} : null;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function He(e) {
|
|
80
80
|
return {
|
|
81
81
|
id: e.id,
|
|
82
82
|
applicationId: e.applicationId,
|
|
@@ -100,7 +100,7 @@ function Le(e) {
|
|
|
100
100
|
updatedAt: e.updatedAt
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Ue(e) {
|
|
104
104
|
return {
|
|
105
105
|
id: e.id,
|
|
106
106
|
applicationId: e.applicationId,
|
|
@@ -116,7 +116,7 @@ function K(e) {
|
|
|
116
116
|
createdAt: e.createdAt
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function We(e) {
|
|
120
120
|
return {
|
|
121
121
|
id: e.id,
|
|
122
122
|
appId: e.appId,
|
|
@@ -138,296 +138,350 @@ function Re(e) {
|
|
|
138
138
|
revokedBy: e.revokedBy || void 0
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
var
|
|
141
|
+
var Ge = [
|
|
142
142
|
{
|
|
143
143
|
id: "overview",
|
|
144
144
|
label: "Overview",
|
|
145
|
-
icon:
|
|
145
|
+
icon: fe
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
id: "analytics",
|
|
149
149
|
label: "Analytics",
|
|
150
|
-
icon:
|
|
150
|
+
icon: pe
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
id: "store-listing",
|
|
154
154
|
label: "Store Listing",
|
|
155
|
-
icon:
|
|
155
|
+
icon: Ae
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
id: "versions",
|
|
159
159
|
label: "Versions",
|
|
160
|
-
icon:
|
|
160
|
+
icon: Ee
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
id: "pricing",
|
|
164
164
|
label: "Pricing",
|
|
165
|
-
icon:
|
|
165
|
+
icon: I
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
id: "permissions",
|
|
169
169
|
label: "Permissions",
|
|
170
|
-
icon:
|
|
170
|
+
icon: B
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
id: "webhooks",
|
|
174
174
|
label: "Webhooks",
|
|
175
|
-
icon:
|
|
175
|
+
icon: Pe
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
id: "delegations",
|
|
179
179
|
label: "Delegations",
|
|
180
|
-
icon:
|
|
180
|
+
icon: Me
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
id: "playground",
|
|
184
184
|
label: "API Playground",
|
|
185
|
-
icon:
|
|
185
|
+
icon: L
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
id: "oauth",
|
|
189
189
|
label: "OAuth",
|
|
190
|
-
icon:
|
|
190
|
+
icon: we
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
id: "api-keys",
|
|
194
194
|
label: "API Keys",
|
|
195
|
-
icon:
|
|
195
|
+
icon: Se
|
|
196
196
|
}
|
|
197
|
-
],
|
|
197
|
+
], Ke = {
|
|
198
198
|
ACTIVE: "bg-status-success-bg-subtle text-status-success-text",
|
|
199
199
|
REVOKED: "bg-status-error-bg-subtle text-status-error-text",
|
|
200
200
|
EXPIRED: "bg-bg-sunken text-text-secondary"
|
|
201
|
-
},
|
|
201
|
+
}, G = ({ message: e = "Loading..." }) => /* @__PURE__ */ W("div", {
|
|
202
202
|
className: "flex items-center justify-center gap-3 py-12",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ U(R, {
|
|
204
204
|
size: 20,
|
|
205
205
|
className: "animate-spin text-text-secondary"
|
|
206
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ U("p", {
|
|
207
207
|
className: "text-sm text-text-secondary",
|
|
208
208
|
children: e
|
|
209
209
|
})]
|
|
210
|
-
}),
|
|
210
|
+
}), qe = ({ message: e }) => /* @__PURE__ */ W("div", {
|
|
211
211
|
className: "flex flex-col items-center justify-center gap-2 py-12 text-center",
|
|
212
|
-
children: [/* @__PURE__ */
|
|
212
|
+
children: [/* @__PURE__ */ U(de, {
|
|
213
213
|
size: 32,
|
|
214
214
|
className: "text-status-error-text"
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
}), /* @__PURE__ */ U("p", {
|
|
216
216
|
className: "text-sm text-text-secondary",
|
|
217
217
|
children: e
|
|
218
218
|
})]
|
|
219
|
-
}),
|
|
220
|
-
let { navigate: i, basePath: o, workspaceId: c } = e(), { t: u } =
|
|
219
|
+
}), Je = () => {
|
|
220
|
+
let { navigate: i, basePath: o, workspaceId: c } = e(), { t: u } = P(), m = (e, t) => {
|
|
221
221
|
let n = u(e);
|
|
222
222
|
return n === e ? t : n;
|
|
223
|
-
}, { allowed:
|
|
224
|
-
variables: { id:
|
|
225
|
-
skip: !
|
|
226
|
-
}), [
|
|
223
|
+
}, { allowed: b } = se(oe.APP_UPDATE), { allowed: S } = se(oe.APP_DELETE), { appId: E } = Le(), [O, k] = N("overview"), [A, ne] = N(!1), [re, ce] = N(!1), [le, M] = N(null), [ue, pe] = N(!1), { data: I, loading: L, error: be, refetch: xe } = s({
|
|
224
|
+
variables: { id: E },
|
|
225
|
+
skip: !E
|
|
226
|
+
}), [Se, { loading: we }] = h(), [Te, { loading: Ee }] = a(), [z, { loading: B }] = _(), [je] = p(), [V, { loading: Me }] = f(), [Ne, { loading: Pe }] = v(), [Fe, { loading: ze }] = g(), [Be, { loading: He }] = y(), [Ue, We] = N(!1), { data: Ke, refetch: G } = d({
|
|
227
227
|
variables: {
|
|
228
|
-
applicationId:
|
|
228
|
+
applicationId: E,
|
|
229
229
|
workspaceId: c ?? void 0
|
|
230
230
|
},
|
|
231
|
-
skip: !c || !
|
|
231
|
+
skip: !c || !E,
|
|
232
232
|
fetchPolicy: "cache-and-network"
|
|
233
|
-
}),
|
|
234
|
-
variables: { id:
|
|
235
|
-
skip: !
|
|
233
|
+
}), qe = Ke?.appInstallations?.edges?.[0]?.node ?? null, { data: Je } = l({
|
|
234
|
+
variables: { id: I?.application?.developerOrganizationId ?? "" },
|
|
235
|
+
skip: !I?.application?.developerOrganizationId,
|
|
236
236
|
fetchPolicy: "cache-first"
|
|
237
237
|
}), K = j((e) => {
|
|
238
238
|
i?.(`${o}${e}`);
|
|
239
|
-
}, [i, o]),
|
|
240
|
-
let e =
|
|
239
|
+
}, [i, o]), Ze = j(async () => {
|
|
240
|
+
let e = I?.application?.appId;
|
|
241
241
|
if (e) try {
|
|
242
|
-
let t = (await
|
|
243
|
-
t && M(t),
|
|
242
|
+
let t = (await Se({ variables: { id: e } })).data?.rotateAppSecret.clientSecret;
|
|
243
|
+
t && M(t), ne(!1);
|
|
244
244
|
} catch {}
|
|
245
|
-
}, [
|
|
246
|
-
if (
|
|
247
|
-
await
|
|
245
|
+
}, [I?.application?.appId, Se]), Qe = j(async () => {
|
|
246
|
+
if (E) try {
|
|
247
|
+
await Te({ variables: { id: E } }), ce(!1), K("/apps");
|
|
248
248
|
} catch {}
|
|
249
249
|
}, [
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
E,
|
|
251
|
+
Te,
|
|
252
252
|
K
|
|
253
|
-
]),
|
|
254
|
-
if (!(!
|
|
255
|
-
await
|
|
256
|
-
applicationId:
|
|
253
|
+
]), at = j(async () => {
|
|
254
|
+
if (!(!E || !c)) try {
|
|
255
|
+
await V({ variables: { input: {
|
|
256
|
+
applicationId: E,
|
|
257
257
|
scope: "WORKSPACE",
|
|
258
258
|
workspaceId: c,
|
|
259
259
|
autoUpdate: !1
|
|
260
|
-
} } }),
|
|
260
|
+
} } }), G(), D("success");
|
|
261
261
|
} catch (e) {
|
|
262
|
-
console.error("[DevPortal] Test in Workspace failed:", e),
|
|
262
|
+
console.error("[DevPortal] Test in Workspace failed:", e), D("error");
|
|
263
263
|
}
|
|
264
264
|
}, [
|
|
265
|
-
|
|
265
|
+
E,
|
|
266
266
|
c,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
]),
|
|
267
|
+
V,
|
|
268
|
+
G
|
|
269
|
+
]), ot = j(async (e) => {
|
|
270
270
|
try {
|
|
271
|
-
await
|
|
271
|
+
await Ne({ variables: { id: e } }), G(), D("success");
|
|
272
272
|
} catch {
|
|
273
|
-
|
|
273
|
+
D("error");
|
|
274
274
|
}
|
|
275
|
-
}, [
|
|
276
|
-
if (
|
|
277
|
-
let e = (
|
|
278
|
-
for (let t of e) await
|
|
279
|
-
await
|
|
275
|
+
}, [Ne, G]), st = j(async () => {
|
|
276
|
+
if (E) try {
|
|
277
|
+
let e = (I?.application?.versions?.edges ?? []).map((e) => e.node).filter((e) => e.status === "draft");
|
|
278
|
+
for (let t of e) await je({ variables: { id: t.id } });
|
|
279
|
+
await z({ variables: { id: E } }), D("success");
|
|
280
280
|
} catch (e) {
|
|
281
|
-
console.error("[DevPortal] Submit failed:", e),
|
|
281
|
+
console.error("[DevPortal] Submit failed:", e), D("error");
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
xe();
|
|
284
284
|
}
|
|
285
285
|
}, [
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
286
|
+
E,
|
|
287
|
+
I?.application?.versions?.edges,
|
|
288
|
+
je,
|
|
289
|
+
z,
|
|
290
|
+
xe
|
|
291
291
|
]);
|
|
292
|
-
if (
|
|
293
|
-
if (
|
|
292
|
+
if (L && !I) return /* @__PURE__ */ U(n, { message: m("devportal.loadingApplication", "Loading application...") });
|
|
293
|
+
if (be) return /* @__PURE__ */ U(x, {
|
|
294
294
|
title: m("devportal.error", "Error"),
|
|
295
295
|
backLink: `${o}/apps`,
|
|
296
296
|
backLabel: m("devportal.backToApplications", "Back to Applications"),
|
|
297
|
-
children: /* @__PURE__ */
|
|
297
|
+
children: /* @__PURE__ */ W("div", {
|
|
298
298
|
className: "flex flex-col items-center justify-center py-12 text-center",
|
|
299
299
|
children: [
|
|
300
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ U(de, {
|
|
301
301
|
size: 48,
|
|
302
302
|
className: "text-status-error-text mb-4"
|
|
303
303
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ U("h3", {
|
|
305
305
|
className: "text-lg font-semibold mb-2",
|
|
306
306
|
children: m("devportal.failedToLoadApplication", "Failed to load application")
|
|
307
307
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ U("p", {
|
|
309
309
|
className: "text-sm text-text-secondary",
|
|
310
|
-
children:
|
|
310
|
+
children: be.message
|
|
311
311
|
})
|
|
312
312
|
]
|
|
313
313
|
})
|
|
314
314
|
});
|
|
315
|
-
let q =
|
|
316
|
-
if (!q) return /* @__PURE__ */
|
|
315
|
+
let q = Ve(I?.application);
|
|
316
|
+
if (!q) return /* @__PURE__ */ U(x, {
|
|
317
317
|
title: m("devportal.notFound", "Not Found"),
|
|
318
318
|
backLink: `${o}/apps`,
|
|
319
319
|
backLabel: m("devportal.backToApplications", "Back to Applications"),
|
|
320
|
-
children: /* @__PURE__ */
|
|
320
|
+
children: /* @__PURE__ */ U(r, {
|
|
321
321
|
illustration: "empty-generic",
|
|
322
|
-
icon: /* @__PURE__ */
|
|
322
|
+
icon: /* @__PURE__ */ U(fe, { size: 48 }),
|
|
323
323
|
title: m("devportal.applicationNotFound", "Application not found"),
|
|
324
324
|
description: m("devportal.applicationNotFoundDescription", "The application you're looking for doesn't exist or you don't have access to it.")
|
|
325
325
|
})
|
|
326
326
|
});
|
|
327
|
-
let J = q.appType === "NODE" || q.appType === "WORKFLOW", Y = q.appType === "API_INTEGRATION",
|
|
327
|
+
let J = q.appType === "NODE" || q.appType === "WORKFLOW", Y = q.appType === "API_INTEGRATION", lt = I?.application?.versions?.totalCount ?? 0, ut = q.pricingType === "PAID", dt = Je?.developerOrganization, ft = dt?.platformFeeRate ?? .3, X = !!dt?.billingAccountId, Z = q.pricingDetails ?? {}, Q = q.pricingType === "FREE" || q.pricingType === "PAID" && typeof Z.price == "number" && Z.price > 0, $ = !!q.description?.trim() && !!q.category && !!q.iconUrl && (q.visibility === "PUBLIC" || q.visibility === "UNLISTED") && (!J && !Y || lt > 0) && (!ut || X) && Q, mt = $ && q.status !== "PUBLISHED" && q.status !== "SUBMITTED", ht = [
|
|
328
328
|
...J ? [] : [{
|
|
329
329
|
label: m("devportal.rotateSecret", "Rotate Secret"),
|
|
330
|
-
icon: /* @__PURE__ */
|
|
330
|
+
icon: /* @__PURE__ */ U(Oe, { size: 16 }),
|
|
331
331
|
disabled: !q.appId,
|
|
332
|
-
onSelect: () =>
|
|
332
|
+
onSelect: () => ne(!0)
|
|
333
333
|
}],
|
|
334
|
-
...J ? [] :
|
|
334
|
+
...J ? [] : qe ? [{
|
|
335
335
|
label: m("devportal.uninstallFromWorkspace", "Uninstall from Workspace"),
|
|
336
|
-
icon: /* @__PURE__ */
|
|
337
|
-
disabled:
|
|
338
|
-
onSelect: () => void
|
|
336
|
+
icon: /* @__PURE__ */ U(Ie, { size: 16 }),
|
|
337
|
+
disabled: Pe || !c,
|
|
338
|
+
onSelect: () => void ot(qe.id)
|
|
339
339
|
}] : [{
|
|
340
340
|
label: m("devportal.testInWorkspace", "Test in Workspace"),
|
|
341
|
-
icon: /* @__PURE__ */
|
|
342
|
-
disabled:
|
|
343
|
-
onSelect: () => void
|
|
341
|
+
icon: /* @__PURE__ */ U(ye, { size: 16 }),
|
|
342
|
+
disabled: Me || !c,
|
|
343
|
+
onSelect: () => void at()
|
|
344
344
|
}],
|
|
345
345
|
{
|
|
346
346
|
label: m("devportal.deactivate", "Deactivate"),
|
|
347
|
-
icon: /* @__PURE__ */
|
|
347
|
+
icon: /* @__PURE__ */ U(De, { size: 16 }),
|
|
348
348
|
intent: "destructive",
|
|
349
|
-
disabled: !
|
|
350
|
-
onSelect: () =>
|
|
349
|
+
disabled: !S,
|
|
350
|
+
onSelect: () => ce(!0)
|
|
351
351
|
}
|
|
352
352
|
];
|
|
353
|
-
return /* @__PURE__ */
|
|
353
|
+
return /* @__PURE__ */ W(x, {
|
|
354
354
|
title: q.name,
|
|
355
355
|
description: q.shortDescription,
|
|
356
356
|
purpose: m("devportal.appDetailPurpose", "Everything about this application in one place — its credentials, the permissions and webhooks it uses, its analytics, and its store listing. Use the tabs to configure each area, then edit or publish when it is ready."),
|
|
357
357
|
backLink: `${o}/apps`,
|
|
358
358
|
backLabel: m("devportal.backToApplications", "Back to Applications"),
|
|
359
|
-
actions: /* @__PURE__ */
|
|
359
|
+
actions: /* @__PURE__ */ W("div", {
|
|
360
360
|
className: "flex items-center gap-2",
|
|
361
|
-
children: [q.status === "SUBMITTED" ? /* @__PURE__ */
|
|
361
|
+
children: [q.status === "SUBMITTED" ? /* @__PURE__ */ W("div", {
|
|
362
362
|
className: "flex items-center gap-1.5 rounded-full border border-status-warning-bg bg-status-warning-bg-subtle px-3 py-1.5 text-xs font-medium text-status-warning-text",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
364
|
-
}) : q.status === "PUBLISHED" ? null : /* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ U(ge, { size: 13 }), m("devportal.underReview", "Under Review")]
|
|
364
|
+
}) : q.status === "PUBLISHED" ? null : /* @__PURE__ */ U("button", {
|
|
365
365
|
type: "button",
|
|
366
|
-
onClick: () => void
|
|
367
|
-
disabled: !
|
|
368
|
-
title:
|
|
366
|
+
onClick: () => void st(),
|
|
367
|
+
disabled: !mt || B,
|
|
368
|
+
title: $ ? void 0 : [
|
|
369
369
|
!q.description?.trim() && "Add full description",
|
|
370
370
|
!q.category && "Select a category",
|
|
371
371
|
!q.iconUrl && "Upload an app icon",
|
|
372
372
|
q.visibility === "PRIVATE" && "Set visibility to Public/Unlisted",
|
|
373
|
-
J &&
|
|
374
|
-
!
|
|
375
|
-
|
|
373
|
+
J && lt === 0 && "Upload at least one version",
|
|
374
|
+
!Q && "Set pricing (choose Free or Paid in the Pricing tab)",
|
|
375
|
+
ut && !X && "Link a billing account to receive payments"
|
|
376
376
|
].filter(Boolean).join(" · "),
|
|
377
|
-
className: t("inline-flex items-center gap-2 rounded-md px-5 py-2 text-sm font-medium whitespace-nowrap transition-colors",
|
|
378
|
-
children:
|
|
377
|
+
className: t("inline-flex items-center gap-2 rounded-md px-5 py-2 text-sm font-medium whitespace-nowrap transition-colors", mt && !B ? "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 cursor-pointer" : "cursor-not-allowed bg-bg-muted text-text-tertiary ring-1 ring-border-subtle"),
|
|
378
|
+
children: B ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(R, {
|
|
379
379
|
size: 15,
|
|
380
380
|
className: "animate-spin"
|
|
381
|
-
}), m("devportal.submitting", "Submitting…")] }) : /* @__PURE__ */
|
|
382
|
-
}), /* @__PURE__ */
|
|
381
|
+
}), m("devportal.submitting", "Submitting…")] }) : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(ke, { size: 15 }), m("devportal.submitForReview", "Submit for Review")] })
|
|
382
|
+
}), /* @__PURE__ */ U(Re, {
|
|
383
383
|
primary: {
|
|
384
384
|
label: m("devportal.editApp", "Edit App"),
|
|
385
|
-
icon: /* @__PURE__ */
|
|
386
|
-
disabled: !
|
|
385
|
+
icon: /* @__PURE__ */ U(ve, { size: 16 }),
|
|
386
|
+
disabled: !b,
|
|
387
387
|
onSelect: () => K(`/apps/${q.id}/edit`)
|
|
388
388
|
},
|
|
389
|
-
actions:
|
|
389
|
+
actions: ht
|
|
390
390
|
})]
|
|
391
391
|
}),
|
|
392
392
|
children: [
|
|
393
|
-
|
|
393
|
+
le && /* @__PURE__ */ U(te, {
|
|
394
394
|
title: m("devportal.newAppSecretGenerated", "New App Secret Generated"),
|
|
395
|
-
secret:
|
|
395
|
+
secret: le,
|
|
396
396
|
description: m("devportal.appSecretRotatedDescription", "Your app secret has been rotated. The old secret is no longer valid."),
|
|
397
397
|
onDismiss: () => M(null)
|
|
398
398
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ W("div", {
|
|
400
400
|
className: "flex flex-wrap items-center gap-2",
|
|
401
401
|
children: [
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ U(ee, {
|
|
403
403
|
status: q.status,
|
|
404
404
|
type: "app"
|
|
405
405
|
}),
|
|
406
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ U(ee, {
|
|
407
407
|
status: q.visibility,
|
|
408
408
|
type: "app"
|
|
409
409
|
}),
|
|
410
|
-
q.isVerified && /* @__PURE__ */
|
|
411
|
-
q.isFeatured && /* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
410
|
+
q.isVerified && /* @__PURE__ */ U(T, { verified: !0 }),
|
|
411
|
+
q.isFeatured && /* @__PURE__ */ U(w, {}),
|
|
412
|
+
/* @__PURE__ */ U("span", {
|
|
413
413
|
className: "text-sm text-text-secondary",
|
|
414
|
-
children:
|
|
414
|
+
children: C[q.appType] || q.appType
|
|
415
415
|
})
|
|
416
416
|
]
|
|
417
417
|
}),
|
|
418
|
-
q.
|
|
418
|
+
q.appType === "AUTOMATION" && /* @__PURE__ */ U("div", {
|
|
419
|
+
className: "rounded-lg border border-border-subtle bg-bg-elevated p-4",
|
|
420
|
+
children: /* @__PURE__ */ W("div", {
|
|
421
|
+
className: "flex items-start justify-between gap-4",
|
|
422
|
+
children: [/* @__PURE__ */ W("div", {
|
|
423
|
+
className: "flex items-start gap-3",
|
|
424
|
+
children: [/* @__PURE__ */ U("div", {
|
|
425
|
+
className: "mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-action-primary-bg-subtle",
|
|
426
|
+
children: /* @__PURE__ */ U(Ce, {
|
|
427
|
+
size: 15,
|
|
428
|
+
className: "text-action-primary-text"
|
|
429
|
+
})
|
|
430
|
+
}), /* @__PURE__ */ W("div", { children: [
|
|
431
|
+
/* @__PURE__ */ U("p", {
|
|
432
|
+
className: "text-sm font-medium text-text-primary",
|
|
433
|
+
children: m("devportal.shareWorkflow.title", "Share as Public Link")
|
|
434
|
+
}),
|
|
435
|
+
/* @__PURE__ */ U("p", {
|
|
436
|
+
className: "mt-0.5 text-xs text-text-secondary",
|
|
437
|
+
children: q.visibility === "UNLISTED" ? m("devportal.shareWorkflow.activeDesc", "Anyone with the link can preview and copy this workflow into their FluidGrids workspace.") : m("devportal.shareWorkflow.inactiveDesc", "Generate a public link anyone can use to copy this workflow into their own FluidGrids workspace — no store review needed.")
|
|
438
|
+
}),
|
|
439
|
+
q.visibility === "UNLISTED" && E && /* @__PURE__ */ W("div", {
|
|
440
|
+
className: "mt-2 flex items-center gap-2",
|
|
441
|
+
children: [/* @__PURE__ */ U("code", {
|
|
442
|
+
className: "rounded bg-bg-canvas px-2 py-1 text-xs text-text-secondary",
|
|
443
|
+
children: `${window.location.protocol}//${window.location.host.replace(/^app\./, "app.fluidgrids.com").replace(/localhost:\d+/, "app.fluidgrids.com")}/shared/${E}`
|
|
444
|
+
}), /* @__PURE__ */ W("button", {
|
|
445
|
+
type: "button",
|
|
446
|
+
className: "flex items-center gap-1 rounded px-2 py-1 text-xs text-action-primary-text hover:bg-action-primary-bg-subtle transition-colors",
|
|
447
|
+
onClick: () => {
|
|
448
|
+
let e = `${window.location.protocol}//${window.location.host}/shared/${E}`;
|
|
449
|
+
navigator.clipboard.writeText(e).then(() => {
|
|
450
|
+
We(!0), setTimeout(() => We(!1), 2e3);
|
|
451
|
+
});
|
|
452
|
+
},
|
|
453
|
+
children: [U(Ue ? F : _e, { size: 12 }), Ue ? m("devportal.copied", "Copied!") : m("devportal.copyLink", "Copy Link")]
|
|
454
|
+
})]
|
|
455
|
+
})
|
|
456
|
+
] })]
|
|
457
|
+
}), /* @__PURE__ */ U("button", {
|
|
458
|
+
type: "button",
|
|
459
|
+
disabled: ze || He || !q.manifest,
|
|
460
|
+
title: q.manifest ? void 0 : m("devportal.shareWorkflow.noManifestHint", "Add a workflow manifest before sharing"),
|
|
461
|
+
onClick: () => {
|
|
462
|
+
q.visibility === "UNLISTED" ? Be({ variables: { id: E } }).then(() => void xe()) : Fe({ variables: { id: E } }).then(() => void xe());
|
|
463
|
+
},
|
|
464
|
+
className: `flex-shrink-0 rounded-full px-3 py-1.5 text-xs font-medium transition-colors ${q.visibility === "UNLISTED" ? "border border-status-error-bg text-status-error-text hover:bg-status-error-bg-subtle" : "bg-action-primary-bg text-text-on-action hover:opacity-90 disabled:opacity-50"}`,
|
|
465
|
+
children: ze || He ? /* @__PURE__ */ U(R, {
|
|
466
|
+
size: 12,
|
|
467
|
+
className: "animate-spin"
|
|
468
|
+
}) : q.visibility === "UNLISTED" ? m("devportal.shareWorkflow.stopSharing", "Stop Sharing") : m("devportal.shareWorkflow.share", "Share Link")
|
|
469
|
+
})]
|
|
470
|
+
})
|
|
471
|
+
}),
|
|
472
|
+
q.status === "SUBMITTED" && /* @__PURE__ */ W("div", {
|
|
419
473
|
className: "flex items-start gap-3 rounded-lg border border-border-subtle bg-status-warning-bg-subtle p-4",
|
|
420
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ U(ge, {
|
|
421
475
|
size: 18,
|
|
422
476
|
className: "text-status-warning-text mt-0.5 flex-shrink-0"
|
|
423
|
-
}), /* @__PURE__ */
|
|
477
|
+
}), /* @__PURE__ */ W("div", {
|
|
424
478
|
className: "text-sm",
|
|
425
|
-
children: [/* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ U("p", {
|
|
426
480
|
className: "font-medium text-status-warning-text",
|
|
427
481
|
children: m("devportal.underReview", "Under Review")
|
|
428
|
-
}), /* @__PURE__ */
|
|
482
|
+
}), /* @__PURE__ */ W("p", {
|
|
429
483
|
className: "mt-0.5 text-text-secondary",
|
|
430
|
-
children: [m("devportal.underReviewDesc", "Your submission is being reviewed by our team. You'll be notified of the outcome."), q.submittedAt && /* @__PURE__ */
|
|
484
|
+
children: [m("devportal.underReviewDesc", "Your submission is being reviewed by our team. You'll be notified of the outcome."), q.submittedAt && /* @__PURE__ */ W("span", {
|
|
431
485
|
className: "ml-1",
|
|
432
486
|
children: [
|
|
433
487
|
"Submitted ",
|
|
@@ -438,23 +492,23 @@ var ze = [
|
|
|
438
492
|
})]
|
|
439
493
|
})]
|
|
440
494
|
}),
|
|
441
|
-
q.status === "REJECTED" && /* @__PURE__ */
|
|
495
|
+
q.status === "REJECTED" && /* @__PURE__ */ W("div", {
|
|
442
496
|
className: "flex items-start gap-3 rounded-lg border border-status-error-bg bg-status-error-bg-subtle p-4",
|
|
443
|
-
children: [/* @__PURE__ */
|
|
497
|
+
children: [/* @__PURE__ */ U(Ie, {
|
|
444
498
|
size: 18,
|
|
445
499
|
className: "text-status-error-text mt-0.5 flex-shrink-0"
|
|
446
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ W("div", {
|
|
447
501
|
className: "text-sm",
|
|
448
502
|
children: [
|
|
449
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ U("p", {
|
|
450
504
|
className: "font-medium text-status-error-text",
|
|
451
505
|
children: m("devportal.reviewRejected", "Review Rejected")
|
|
452
506
|
}),
|
|
453
|
-
/* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ U("p", {
|
|
454
508
|
className: "mt-0.5 text-text-secondary",
|
|
455
509
|
children: q.reviewNotes || m("devportal.reviewRejectedDesc", "Your submission was not approved. Please review the feedback, update your app, and re-submit.")
|
|
456
510
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ U("button", {
|
|
458
512
|
type: "button",
|
|
459
513
|
onClick: () => K(`/apps/${q.id}/edit`),
|
|
460
514
|
className: "mt-2 inline-flex items-center gap-1 text-xs font-medium text-primary underline",
|
|
@@ -463,24 +517,24 @@ var ze = [
|
|
|
463
517
|
]
|
|
464
518
|
})]
|
|
465
519
|
}),
|
|
466
|
-
q.status === "PUBLISHED" && /* @__PURE__ */
|
|
520
|
+
q.status === "PUBLISHED" && /* @__PURE__ */ W("div", {
|
|
467
521
|
className: "flex items-start gap-3 rounded-lg border border-status-success-bg bg-status-success-bg-subtle p-4",
|
|
468
|
-
children: [/* @__PURE__ */
|
|
522
|
+
children: [/* @__PURE__ */ U(me, {
|
|
469
523
|
size: 18,
|
|
470
524
|
className: "text-status-success-text mt-0.5 flex-shrink-0"
|
|
471
|
-
}), /* @__PURE__ */
|
|
525
|
+
}), /* @__PURE__ */ W("div", {
|
|
472
526
|
className: "text-sm",
|
|
473
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ U("p", {
|
|
474
528
|
className: "font-medium text-status-success-text",
|
|
475
529
|
children: m("devportal.liveInStore", "Live in the Store")
|
|
476
|
-
}), /* @__PURE__ */
|
|
530
|
+
}), /* @__PURE__ */ U("p", {
|
|
477
531
|
className: "mt-0.5 text-text-secondary",
|
|
478
532
|
children: m("devportal.liveInStoreDesc", "Your app is published and visible to users in the marketplace.")
|
|
479
533
|
})]
|
|
480
534
|
})]
|
|
481
535
|
}),
|
|
482
|
-
(q.status === "DRAFT" || q.status === "REJECTED") &&
|
|
483
|
-
let e = !!q.description?.trim() && !!q.category && !!q.iconUrl && (q.visibility === "PUBLIC" || q.visibility === "UNLISTED"), n = !J && !Y ||
|
|
536
|
+
(q.status === "DRAFT" || q.status === "REJECTED") && !$ && (() => {
|
|
537
|
+
let e = !!q.description?.trim() && !!q.category && !!q.iconUrl && (q.visibility === "PUBLIC" || q.visibility === "UNLISTED"), n = !J && !Y || lt > 0, r = [
|
|
484
538
|
!q.description?.trim() && "Add a full description",
|
|
485
539
|
!q.category && "Select a category",
|
|
486
540
|
!q.iconUrl && "Upload an app icon",
|
|
@@ -516,11 +570,11 @@ var ze = [
|
|
|
516
570
|
{
|
|
517
571
|
id: "pricing",
|
|
518
572
|
label: m("devportal.setupPricingStep", "Set Pricing"),
|
|
519
|
-
hint:
|
|
520
|
-
done:
|
|
573
|
+
hint: Q ? m("devportal.done", "Done") : m("devportal.pricingHint", "Choose Free or set a credit price in the Pricing tab"),
|
|
574
|
+
done: Q,
|
|
521
575
|
onClick: () => k("pricing")
|
|
522
576
|
},
|
|
523
|
-
|
|
577
|
+
...ut ? [{
|
|
524
578
|
id: "billing",
|
|
525
579
|
label: m("devportal.setupBillingStep", "Link Billing Account"),
|
|
526
580
|
hint: X ? m("devportal.done", "Done") : m("devportal.billingAccountHint", "Link a billing account to receive payouts — required for paid apps"),
|
|
@@ -530,27 +584,27 @@ var ze = [
|
|
|
530
584
|
{
|
|
531
585
|
id: "submit",
|
|
532
586
|
label: m("devportal.submitForReview", "Submit for Review"),
|
|
533
|
-
hint:
|
|
587
|
+
hint: $ ? m("devportal.readyToSubmit", "Ready — click Submit for Review above") : q.description?.trim() ? q.category ? q.iconUrl ? q.visibility === "PRIVATE" ? m("devportal.hintPrivateVisibility", "Set visibility to Public or Unlisted") : (J || Y) && lt === 0 ? m("devportal.hintMissingVersion", "Upload at least one version") : Q ? ut && !X ? m("devportal.hintMissingBilling", "Link a billing account in the Pricing tab to receive payouts") : m("devportal.completeStepsFirst", "Complete the steps above first") : m("devportal.hintMissingPricing", "Choose Free or set a credit price in the Pricing tab") : m("devportal.hintMissingIcon", "Upload an app icon on the Store Listing tab") : m("devportal.hintMissingCategory", "Select a category on the Store Listing tab") : m("devportal.hintMissingDescription", "Add a full description on the Store Listing tab"),
|
|
534
588
|
done: !1,
|
|
535
589
|
onClick: void 0
|
|
536
590
|
}
|
|
537
591
|
], a = i.filter((e) => e.done).length;
|
|
538
|
-
return /* @__PURE__ */
|
|
592
|
+
return /* @__PURE__ */ W("div", {
|
|
539
593
|
className: "rounded-xl border border-border-subtle bg-bg-surface shadow-sm",
|
|
540
|
-
children: [/* @__PURE__ */
|
|
594
|
+
children: [/* @__PURE__ */ U("div", {
|
|
541
595
|
className: "flex items-center justify-between border-b border-border-subtle px-5 py-4",
|
|
542
|
-
children: /* @__PURE__ */
|
|
596
|
+
children: /* @__PURE__ */ W("div", {
|
|
543
597
|
className: "flex items-center gap-3",
|
|
544
|
-
children: [/* @__PURE__ */
|
|
598
|
+
children: [/* @__PURE__ */ U("div", {
|
|
545
599
|
className: "flex h-8 w-8 items-center justify-center rounded-full bg-action-primary-bg/10",
|
|
546
|
-
children: /* @__PURE__ */
|
|
600
|
+
children: /* @__PURE__ */ U(Ae, {
|
|
547
601
|
size: 16,
|
|
548
602
|
className: "text-primary"
|
|
549
603
|
})
|
|
550
|
-
}), /* @__PURE__ */
|
|
604
|
+
}), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
551
605
|
className: "text-sm font-semibold text-text-primary",
|
|
552
606
|
children: m("devportal.completeSetup", "Complete your app setup")
|
|
553
|
-
}), /* @__PURE__ */
|
|
607
|
+
}), /* @__PURE__ */ W("p", {
|
|
554
608
|
className: "text-xs text-text-secondary",
|
|
555
609
|
children: [
|
|
556
610
|
a,
|
|
@@ -562,29 +616,29 @@ var ze = [
|
|
|
562
616
|
]
|
|
563
617
|
})] })]
|
|
564
618
|
})
|
|
565
|
-
}), /* @__PURE__ */
|
|
619
|
+
}), /* @__PURE__ */ U("div", {
|
|
566
620
|
className: "divide-y divide-border-subtle",
|
|
567
|
-
children: i.map((e, n) => /* @__PURE__ */
|
|
621
|
+
children: i.map((e, n) => /* @__PURE__ */ W("button", {
|
|
568
622
|
type: "button",
|
|
569
623
|
onClick: e.onClick,
|
|
570
624
|
disabled: !e.onClick,
|
|
571
625
|
className: t("w-full flex items-center gap-4 px-5 py-4 text-left transition-colors", e.onClick ? "hover:bg-bg-sunken/40 cursor-pointer" : "cursor-default opacity-60"),
|
|
572
626
|
children: [
|
|
573
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ U("div", {
|
|
574
628
|
className: t("flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full text-xs font-bold", e.done ? "bg-status-success-bg text-status-success-text" : "border-2 border-border-subtle bg-bg-sunken text-text-secondary"),
|
|
575
|
-
children: e.done ? /* @__PURE__ */
|
|
629
|
+
children: e.done ? /* @__PURE__ */ U(F, { size: 13 }) : n + 1
|
|
576
630
|
}),
|
|
577
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ W("div", {
|
|
578
632
|
className: "flex-1 min-w-0",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
633
|
+
children: [/* @__PURE__ */ U("p", {
|
|
580
634
|
className: t("text-sm font-medium", e.done ? "text-text-secondary line-through" : "text-text-primary"),
|
|
581
635
|
children: e.label
|
|
582
|
-
}), e.hint && !e.done && /* @__PURE__ */
|
|
636
|
+
}), e.hint && !e.done && /* @__PURE__ */ U("p", {
|
|
583
637
|
className: "mt-0.5 text-xs text-text-secondary truncate",
|
|
584
638
|
children: e.hint
|
|
585
639
|
})]
|
|
586
640
|
}),
|
|
587
|
-
e.onClick && !e.done && /* @__PURE__ */
|
|
641
|
+
e.onClick && !e.done && /* @__PURE__ */ U(he, {
|
|
588
642
|
size: 16,
|
|
589
643
|
className: "flex-shrink-0 text-text-secondary"
|
|
590
644
|
})
|
|
@@ -593,175 +647,175 @@ var ze = [
|
|
|
593
647
|
})]
|
|
594
648
|
});
|
|
595
649
|
})(),
|
|
596
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ U("div", {
|
|
597
651
|
className: "border-b",
|
|
598
|
-
children: /* @__PURE__ */
|
|
652
|
+
children: /* @__PURE__ */ U("nav", {
|
|
599
653
|
className: "-mb-px flex gap-4 overflow-x-auto",
|
|
600
654
|
role: "tablist",
|
|
601
655
|
"aria-label": m("devportal.applicationSections", "Application sections"),
|
|
602
|
-
children:
|
|
656
|
+
children: Ge.filter((e) => !(J && (e.id === "permissions" || e.id === "webhooks" || e.id === "delegations" || e.id === "playground" || e.id === "oauth" || e.id === "api-keys") || !J && !Y && e.id === "versions" || !Y && (e.id === "oauth" || e.id === "api-keys"))).map((e) => {
|
|
603
657
|
let n = e.icon;
|
|
604
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */ W("button", {
|
|
605
659
|
id: `application-tab-${e.id}`,
|
|
606
660
|
role: "tab",
|
|
607
661
|
"aria-selected": O === e.id,
|
|
608
662
|
"aria-controls": `application-panel-${e.id}`,
|
|
609
663
|
onClick: () => k(e.id),
|
|
610
664
|
className: t("flex items-center gap-2 border-b-2 px-1 py-3 text-sm font-medium transition-colors", O === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary hover:border-muted-foreground"),
|
|
611
|
-
children: [/* @__PURE__ */
|
|
665
|
+
children: [/* @__PURE__ */ U(n, { size: 16 }), e.label]
|
|
612
666
|
}, e.id);
|
|
613
667
|
})
|
|
614
668
|
})
|
|
615
669
|
}),
|
|
616
|
-
/* @__PURE__ */
|
|
670
|
+
/* @__PURE__ */ W("div", {
|
|
617
671
|
className: "mt-6",
|
|
618
672
|
id: `application-panel-${O}`,
|
|
619
673
|
role: "tabpanel",
|
|
620
674
|
"aria-labelledby": `application-tab-${O}`,
|
|
621
675
|
tabIndex: 0,
|
|
622
676
|
children: [
|
|
623
|
-
O === "overview" && /* @__PURE__ */
|
|
624
|
-
O === "permissions" && /* @__PURE__ */
|
|
677
|
+
O === "overview" && /* @__PURE__ */ U(it, { app: q }),
|
|
678
|
+
O === "permissions" && /* @__PURE__ */ U(yt, {
|
|
625
679
|
app: q,
|
|
626
|
-
versionScopes:
|
|
680
|
+
versionScopes: I?.application?.versions?.edges?.[0]?.node?.requiredScopes ?? [],
|
|
627
681
|
locked: q.status === "PUBLISHED" || q.status === "APPROVED" || q.status === "ACTIVE",
|
|
628
682
|
onNavigateToVersions: () => k("versions")
|
|
629
683
|
}),
|
|
630
|
-
O === "webhooks" && /* @__PURE__ */
|
|
684
|
+
O === "webhooks" && /* @__PURE__ */ U(tt, {
|
|
631
685
|
appId: q.id,
|
|
632
686
|
onNavigate: K
|
|
633
687
|
}),
|
|
634
|
-
O === "delegations" && /* @__PURE__ */
|
|
688
|
+
O === "delegations" && /* @__PURE__ */ U(nt, {
|
|
635
689
|
authAppId: q.appId || void 0,
|
|
636
690
|
appName: q.name,
|
|
637
|
-
onGrantDelegation: () =>
|
|
691
|
+
onGrantDelegation: () => pe(!0),
|
|
638
692
|
onNavigate: K
|
|
639
693
|
}),
|
|
640
|
-
O === "analytics" && /* @__PURE__ */
|
|
641
|
-
O === "playground" && /* @__PURE__ */
|
|
642
|
-
O === "oauth" && /* @__PURE__ */
|
|
694
|
+
O === "analytics" && /* @__PURE__ */ U(rt, { appId: q.id }),
|
|
695
|
+
O === "playground" && /* @__PURE__ */ U(ct, { app: q }),
|
|
696
|
+
O === "oauth" && /* @__PURE__ */ U(Ye, {
|
|
643
697
|
appId: q.id,
|
|
644
698
|
onNavigate: K
|
|
645
699
|
}),
|
|
646
|
-
O === "api-keys" && /* @__PURE__ */
|
|
700
|
+
O === "api-keys" && /* @__PURE__ */ U(Xe, {
|
|
647
701
|
appId: q.id,
|
|
648
702
|
onNavigate: K
|
|
649
703
|
}),
|
|
650
|
-
O === "store-listing" && /* @__PURE__ */
|
|
704
|
+
O === "store-listing" && /* @__PURE__ */ U(pt, {
|
|
651
705
|
app: q,
|
|
652
|
-
versionCount:
|
|
706
|
+
versionCount: I?.application?.versions?.totalCount ?? 0,
|
|
653
707
|
isPackageApp: J,
|
|
654
|
-
pricingDone:
|
|
708
|
+
pricingDone: Q,
|
|
655
709
|
onNavigateToVersions: J || Y ? () => k("versions") : void 0,
|
|
656
710
|
onNavigateToPricing: () => k("pricing"),
|
|
657
711
|
onNavigateToSubmission: () => K(`/apps/${q.id}/store-submission`)
|
|
658
712
|
}),
|
|
659
|
-
O === "pricing" && /* @__PURE__ */
|
|
713
|
+
O === "pricing" && /* @__PURE__ */ U($e, {
|
|
660
714
|
app: q,
|
|
661
|
-
platformFeeRate:
|
|
715
|
+
platformFeeRate: ft,
|
|
662
716
|
billingAccountLinked: X,
|
|
663
717
|
onNavigateToRevenue: () => K("/revenue"),
|
|
664
|
-
isReadyToSubmit:
|
|
718
|
+
isReadyToSubmit: $
|
|
665
719
|
}),
|
|
666
|
-
O === "versions" && /* @__PURE__ */
|
|
720
|
+
O === "versions" && /* @__PURE__ */ U(et, {
|
|
667
721
|
appId: q.id,
|
|
668
722
|
onNavigate: K,
|
|
669
|
-
pricingDone:
|
|
723
|
+
pricingDone: Q,
|
|
670
724
|
onNavigateToPricing: () => k("pricing")
|
|
671
725
|
})
|
|
672
726
|
]
|
|
673
727
|
}),
|
|
674
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ U(ie, {
|
|
675
729
|
open: A,
|
|
676
|
-
onOpenChange:
|
|
677
|
-
onConfirm:
|
|
730
|
+
onOpenChange: ne,
|
|
731
|
+
onConfirm: Ze,
|
|
678
732
|
title: m("devportal.rotateAppSecret", "Rotate App Secret"),
|
|
679
733
|
description: m("devportal.rotateAppSecretDescription", "This will generate a new client secret and invalidate the current one. All existing integrations using the old secret will stop working immediately."),
|
|
680
734
|
confirmLabel: m("devportal.rotateSecret", "Rotate Secret"),
|
|
681
735
|
cancelLabel: m("devportal.cancel", "Cancel"),
|
|
682
736
|
variant: "warning",
|
|
683
|
-
loading:
|
|
737
|
+
loading: we
|
|
684
738
|
}),
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
open:
|
|
687
|
-
onOpenChange:
|
|
688
|
-
onConfirm:
|
|
739
|
+
/* @__PURE__ */ U(ie, {
|
|
740
|
+
open: re,
|
|
741
|
+
onOpenChange: ce,
|
|
742
|
+
onConfirm: Qe,
|
|
689
743
|
title: m("devportal.deactivateApplication", "Deactivate Application"),
|
|
690
744
|
description: m("devportal.deactivateApplicationDescription", "This will deactivate the application. All OAuth clients, API keys, and webhooks associated with this app will stop functioning. This action can be reversed by reactivating the app."),
|
|
691
745
|
confirmLabel: m("devportal.deactivate", "Deactivate"),
|
|
692
746
|
cancelLabel: m("devportal.cancel", "Cancel"),
|
|
693
747
|
variant: "destructive",
|
|
694
|
-
loading:
|
|
748
|
+
loading: Ee
|
|
695
749
|
}),
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
open:
|
|
698
|
-
onOpenChange:
|
|
750
|
+
/* @__PURE__ */ U(ae, {
|
|
751
|
+
open: ue,
|
|
752
|
+
onOpenChange: pe,
|
|
699
753
|
appId: q.appId || "",
|
|
700
754
|
appName: q.name,
|
|
701
755
|
appScopes: q.scopes?.map((e) => e.scope) ?? [],
|
|
702
756
|
onSuccess: () => {
|
|
703
|
-
|
|
757
|
+
pe(!1);
|
|
704
758
|
}
|
|
705
759
|
})
|
|
706
760
|
]
|
|
707
761
|
});
|
|
708
|
-
},
|
|
709
|
-
let { t } =
|
|
762
|
+
}, Ye = ({ onNavigate: e }) => {
|
|
763
|
+
let { t } = P(), n = (e, n) => {
|
|
710
764
|
let r = t(e);
|
|
711
765
|
return r === e ? n : r;
|
|
712
766
|
};
|
|
713
|
-
return /* @__PURE__ */
|
|
767
|
+
return /* @__PURE__ */ W("div", {
|
|
714
768
|
className: "space-y-4 py-4 text-center",
|
|
715
769
|
children: [
|
|
716
|
-
/* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ U(B, { className: "mx-auto h-10 w-10 text-text-secondary" }),
|
|
771
|
+
/* @__PURE__ */ U("h3", {
|
|
718
772
|
className: "font-medium",
|
|
719
773
|
children: n("devportal.oauthApps", "OAuth Apps")
|
|
720
774
|
}),
|
|
721
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ U("p", {
|
|
722
776
|
className: "text-sm text-text-secondary",
|
|
723
777
|
children: n("devportal.oauthAppsManagedCentrally", "OAuth apps are now managed centrally. Visit the OAuth Apps page to create and manage your apps.")
|
|
724
778
|
}),
|
|
725
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ W("button", {
|
|
726
780
|
onClick: () => e("/oauth"),
|
|
727
781
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
728
|
-
children: [/* @__PURE__ */
|
|
782
|
+
children: [/* @__PURE__ */ U(L, { size: 16 }), n("devportal.manageOAuthApps", "Manage OAuth Apps")]
|
|
729
783
|
})
|
|
730
784
|
]
|
|
731
785
|
});
|
|
732
|
-
},
|
|
733
|
-
let { t } =
|
|
786
|
+
}, Xe = ({ onNavigate: e }) => {
|
|
787
|
+
let { t } = P(), n = (e, n) => {
|
|
734
788
|
let r = t(e);
|
|
735
789
|
return r === e ? n : r;
|
|
736
790
|
};
|
|
737
|
-
return /* @__PURE__ */
|
|
791
|
+
return /* @__PURE__ */ W("div", {
|
|
738
792
|
className: "space-y-4 py-4 text-center",
|
|
739
793
|
children: [
|
|
740
|
-
/* @__PURE__ */
|
|
741
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ U(Se, { className: "mx-auto h-10 w-10 text-text-secondary" }),
|
|
795
|
+
/* @__PURE__ */ U("h3", {
|
|
742
796
|
className: "font-medium",
|
|
743
797
|
children: n("devportal.apiKeys", "API Keys")
|
|
744
798
|
}),
|
|
745
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ U("p", {
|
|
746
800
|
className: "text-sm text-text-secondary",
|
|
747
801
|
children: n("devportal.apiKeysManagedCentrally", "API keys are now managed centrally. Visit the API Keys page to generate and manage your keys.")
|
|
748
802
|
}),
|
|
749
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ W("button", {
|
|
750
804
|
onClick: () => e("/api-keys"),
|
|
751
805
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
752
|
-
children: [/* @__PURE__ */
|
|
806
|
+
children: [/* @__PURE__ */ U(L, { size: 16 }), n("devportal.manageApiKeys", "Manage API Keys")]
|
|
753
807
|
})
|
|
754
808
|
]
|
|
755
809
|
});
|
|
756
|
-
},
|
|
757
|
-
let { t: o } =
|
|
810
|
+
}, K = .01, Ze = (e) => e * K, Qe = (e) => Math.round(e / K), $e = ({ app: e, platformFeeRate: n, billingAccountLinked: r, onNavigateToRevenue: i, isReadyToSubmit: a = !1 }) => {
|
|
811
|
+
let { t: o } = P(), s = (e, t) => {
|
|
758
812
|
let n = o(e);
|
|
759
813
|
return n === e ? t : n;
|
|
760
|
-
}, c = e.pricingDetails ?? {}, [l, u] =
|
|
814
|
+
}, c = e.pricingDetails ?? {}, [l, u] = N({
|
|
761
815
|
pricingType: e.pricingType ?? "FREE",
|
|
762
816
|
price: typeof c.price == "number" ? String(c.price) : ""
|
|
763
|
-
}), [d, f] =
|
|
764
|
-
m.current = e,
|
|
817
|
+
}), [d, f] = N(!1), [p] = b(), m = ue(e);
|
|
818
|
+
m.current = e, le(() => {
|
|
765
819
|
let e = m.current.pricingDetails ?? {};
|
|
766
820
|
u({
|
|
767
821
|
pricingType: m.current.pricingType ?? "FREE",
|
|
@@ -787,39 +841,39 @@ var ze = [
|
|
|
787
841
|
pricingType: l.pricingType || null,
|
|
788
842
|
pricingDetails: Object.keys(t).length > 0 ? t : null
|
|
789
843
|
}
|
|
790
|
-
} }),
|
|
844
|
+
} }), D("success");
|
|
791
845
|
} catch {
|
|
792
|
-
|
|
846
|
+
D("error");
|
|
793
847
|
} finally {
|
|
794
848
|
f(!1);
|
|
795
849
|
}
|
|
796
|
-
}, _ = l.pricingType !== "FREE",
|
|
850
|
+
}, _ = l.pricingType !== "FREE", v = parseInt(l.price, 10), y = _ && !isNaN(v) && v > 0, x = y ? Ze(v) : 0, S = y ? Math.round(v * n) : 0, C = Ze(S), w = y ? v - S : 0, ee = Ze(w), T = (e) => "$" + e.toLocaleString("en-US", {
|
|
797
851
|
minimumFractionDigits: 2,
|
|
798
852
|
maximumFractionDigits: 2
|
|
799
|
-
}),
|
|
800
|
-
return /* @__PURE__ */
|
|
853
|
+
}), E = (e) => e.toLocaleString("en-US") + " cr";
|
|
854
|
+
return /* @__PURE__ */ W("div", {
|
|
801
855
|
className: "space-y-8",
|
|
802
856
|
children: [
|
|
803
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ W("div", {
|
|
804
858
|
className: "flex items-start gap-3 rounded-lg border border-border-subtle bg-bg-sunken px-4 py-3",
|
|
805
|
-
children: [/* @__PURE__ */
|
|
859
|
+
children: [/* @__PURE__ */ U(I, {
|
|
806
860
|
size: 16,
|
|
807
861
|
className: "mt-0.5 shrink-0 text-primary"
|
|
808
|
-
}), /* @__PURE__ */
|
|
862
|
+
}), /* @__PURE__ */ W("p", {
|
|
809
863
|
className: "text-sm text-text-secondary",
|
|
810
864
|
children: [
|
|
811
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ U("span", {
|
|
812
866
|
className: "font-medium text-text-primary",
|
|
813
867
|
children: "Platform credits"
|
|
814
868
|
}),
|
|
815
869
|
" ",
|
|
816
870
|
"are the currency of the Burdenoff marketplace.",
|
|
817
871
|
" ",
|
|
818
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ W("span", {
|
|
819
873
|
className: "font-medium",
|
|
820
874
|
children: [
|
|
821
875
|
"1 credit = ",
|
|
822
|
-
|
|
876
|
+
T(K),
|
|
823
877
|
" USD."
|
|
824
878
|
]
|
|
825
879
|
}),
|
|
@@ -828,41 +882,41 @@ var ze = [
|
|
|
828
882
|
]
|
|
829
883
|
})]
|
|
830
884
|
}),
|
|
831
|
-
/* @__PURE__ */
|
|
885
|
+
/* @__PURE__ */ W("div", {
|
|
832
886
|
className: "space-y-3",
|
|
833
|
-
children: [/* @__PURE__ */
|
|
887
|
+
children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("h2", {
|
|
834
888
|
className: "text-lg font-semibold",
|
|
835
889
|
children: s("devportal.howMonetizationWorks", "How App Monetization Works")
|
|
836
|
-
}), /* @__PURE__ */
|
|
890
|
+
}), /* @__PURE__ */ U("p", {
|
|
837
891
|
className: "mt-1 text-sm text-text-secondary",
|
|
838
892
|
children: s("devportal.monetizationDesc", "Earn revenue when users install or purchase your app. Here's exactly how the money flows.")
|
|
839
|
-
})] }), /* @__PURE__ */
|
|
893
|
+
})] }), /* @__PURE__ */ W("div", {
|
|
840
894
|
className: "grid gap-4 sm:grid-cols-3",
|
|
841
895
|
children: [
|
|
842
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ W("div", {
|
|
843
897
|
className: "rounded-xl border border-border-subtle bg-bg-surface p-5 space-y-3",
|
|
844
|
-
children: [/* @__PURE__ */
|
|
898
|
+
children: [/* @__PURE__ */ U("div", {
|
|
845
899
|
className: "flex h-9 w-9 items-center justify-center rounded-lg bg-status-success-bg-subtle",
|
|
846
|
-
children: /* @__PURE__ */
|
|
900
|
+
children: /* @__PURE__ */ U(je, {
|
|
847
901
|
size: 18,
|
|
848
902
|
className: "text-status-success-text"
|
|
849
903
|
})
|
|
850
|
-
}), /* @__PURE__ */
|
|
904
|
+
}), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("p", {
|
|
851
905
|
className: "font-semibold",
|
|
852
906
|
children: [(100 - n * 100).toFixed(0), "% revenue share"]
|
|
853
|
-
}), /* @__PURE__ */
|
|
907
|
+
}), /* @__PURE__ */ W("p", {
|
|
854
908
|
className: "mt-1 text-sm text-text-secondary",
|
|
855
909
|
children: [
|
|
856
910
|
"You keep",
|
|
857
911
|
" ",
|
|
858
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ W("span", {
|
|
859
913
|
className: "font-medium text-status-success-text",
|
|
860
914
|
children: [(100 - n * 100).toFixed(0), "%"]
|
|
861
915
|
}),
|
|
862
916
|
" ",
|
|
863
917
|
"of every sale in credits. The platform retains a",
|
|
864
918
|
" ",
|
|
865
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ W("span", {
|
|
866
920
|
className: "font-medium",
|
|
867
921
|
children: [(n * 100).toFixed(0), "%"]
|
|
868
922
|
}),
|
|
@@ -871,28 +925,28 @@ var ze = [
|
|
|
871
925
|
]
|
|
872
926
|
})] })]
|
|
873
927
|
}),
|
|
874
|
-
/* @__PURE__ */
|
|
928
|
+
/* @__PURE__ */ W("div", {
|
|
875
929
|
className: "rounded-xl border border-border-subtle bg-bg-surface p-5 space-y-3",
|
|
876
|
-
children: [/* @__PURE__ */
|
|
930
|
+
children: [/* @__PURE__ */ U("div", {
|
|
877
931
|
className: "flex h-9 w-9 items-center justify-center rounded-lg bg-action-primary-bg/10",
|
|
878
|
-
children: /* @__PURE__ */
|
|
932
|
+
children: /* @__PURE__ */ U(Ne, {
|
|
879
933
|
size: 18,
|
|
880
934
|
className: "text-primary"
|
|
881
935
|
})
|
|
882
|
-
}), /* @__PURE__ */
|
|
936
|
+
}), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
883
937
|
className: "font-semibold",
|
|
884
938
|
children: "Credits → cash via billing"
|
|
885
|
-
}), /* @__PURE__ */
|
|
939
|
+
}), /* @__PURE__ */ W("p", {
|
|
886
940
|
className: "mt-1 text-sm text-text-secondary",
|
|
887
941
|
children: [
|
|
888
942
|
"Every sale instantly deposits your earned credits into your linked billing account. You can spend them on platform services or request a cash withdrawal. Track everything on the",
|
|
889
943
|
" ",
|
|
890
|
-
i ? /* @__PURE__ */
|
|
944
|
+
i ? /* @__PURE__ */ U("button", {
|
|
891
945
|
type: "button",
|
|
892
946
|
onClick: i,
|
|
893
947
|
className: "font-medium text-primary underline-offset-2 hover:underline",
|
|
894
948
|
children: "Revenue page"
|
|
895
|
-
}) : /* @__PURE__ */
|
|
949
|
+
}) : /* @__PURE__ */ U("span", {
|
|
896
950
|
className: "font-medium text-primary",
|
|
897
951
|
children: "Revenue page"
|
|
898
952
|
}),
|
|
@@ -900,18 +954,18 @@ var ze = [
|
|
|
900
954
|
]
|
|
901
955
|
})] })]
|
|
902
956
|
}),
|
|
903
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ W("div", {
|
|
904
958
|
className: "rounded-xl border border-border-subtle bg-bg-surface p-5 space-y-3",
|
|
905
|
-
children: [/* @__PURE__ */
|
|
959
|
+
children: [/* @__PURE__ */ U("div", {
|
|
906
960
|
className: "flex h-9 w-9 items-center justify-center rounded-lg bg-status-warning-bg-subtle",
|
|
907
|
-
children: /* @__PURE__ */
|
|
961
|
+
children: /* @__PURE__ */ U(be, {
|
|
908
962
|
size: 18,
|
|
909
963
|
className: "text-status-warning-text"
|
|
910
964
|
})
|
|
911
|
-
}), /* @__PURE__ */
|
|
965
|
+
}), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
912
966
|
className: "font-semibold",
|
|
913
967
|
children: "Reach the full marketplace"
|
|
914
|
-
}), /* @__PURE__ */
|
|
968
|
+
}), /* @__PURE__ */ U("p", {
|
|
915
969
|
className: "mt-1 text-sm text-text-secondary",
|
|
916
970
|
children: "Any user with platform credits can discover and install your app directly from the marketplace. Free apps maximise reach; paid apps let you monetise your work."
|
|
917
971
|
})] })]
|
|
@@ -919,52 +973,52 @@ var ze = [
|
|
|
919
973
|
]
|
|
920
974
|
})]
|
|
921
975
|
}),
|
|
922
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ W("div", {
|
|
923
977
|
className: "space-y-4",
|
|
924
978
|
children: [
|
|
925
|
-
/* @__PURE__ */
|
|
979
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("h3", {
|
|
926
980
|
className: "text-base font-semibold",
|
|
927
981
|
children: s("devportal.setPricingTitle", "Set Your Price")
|
|
928
|
-
}), /* @__PURE__ */
|
|
982
|
+
}), /* @__PURE__ */ W("p", {
|
|
929
983
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
930
984
|
children: [
|
|
931
985
|
"Choose ",
|
|
932
|
-
/* @__PURE__ */
|
|
986
|
+
/* @__PURE__ */ U("strong", { children: "Free" }),
|
|
933
987
|
" to maximise installs, or",
|
|
934
988
|
" ",
|
|
935
|
-
/* @__PURE__ */
|
|
989
|
+
/* @__PURE__ */ U("strong", { children: "Paid" }),
|
|
936
990
|
" to earn credits on every install. Paid apps require a linked billing account before publishing."
|
|
937
991
|
]
|
|
938
992
|
})] }),
|
|
939
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ U("div", {
|
|
940
994
|
className: "flex flex-wrap gap-2",
|
|
941
|
-
children:
|
|
995
|
+
children: ut.map((e) => /* @__PURE__ */ U("button", {
|
|
942
996
|
type: "button",
|
|
943
997
|
onClick: () => h("pricingType", e.value),
|
|
944
998
|
className: t("rounded-md border px-4 py-2 text-sm font-medium transition-colors", l.pricingType === e.value ? "bg-action-primary-bg text-action-primary-text border-primary" : "hover:bg-bg-sunken border-border-subtle"),
|
|
945
999
|
children: e.label
|
|
946
1000
|
}, e.value))
|
|
947
1001
|
}),
|
|
948
|
-
_ && /* @__PURE__ */
|
|
1002
|
+
_ && /* @__PURE__ */ W("div", {
|
|
949
1003
|
className: "space-y-4",
|
|
950
1004
|
children: [
|
|
951
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ W("div", {
|
|
952
1006
|
className: "max-w-xs",
|
|
953
1007
|
children: [
|
|
954
|
-
/* @__PURE__ */
|
|
1008
|
+
/* @__PURE__ */ W("label", {
|
|
955
1009
|
className: "mb-1.5 block text-sm font-medium",
|
|
956
1010
|
children: [
|
|
957
1011
|
"Listing price",
|
|
958
1012
|
" ",
|
|
959
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ U("span", {
|
|
960
1014
|
className: "text-text-tertiary font-normal",
|
|
961
1015
|
children: "(credits)"
|
|
962
1016
|
})
|
|
963
1017
|
]
|
|
964
1018
|
}),
|
|
965
|
-
/* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ W("div", {
|
|
966
1020
|
className: "relative flex items-center",
|
|
967
|
-
children: [/* @__PURE__ */
|
|
1021
|
+
children: [/* @__PURE__ */ U("input", {
|
|
968
1022
|
type: "number",
|
|
969
1023
|
min: 1,
|
|
970
1024
|
step: 1,
|
|
@@ -972,85 +1026,85 @@ var ze = [
|
|
|
972
1026
|
onChange: (e) => h("price", e.target.value),
|
|
973
1027
|
placeholder: "e.g. 1000",
|
|
974
1028
|
className: "w-full rounded-md border border-border-subtle bg-bg-input px-3 py-2 pr-20 text-sm focus:outline-none focus:ring-2 focus:ring-primary/50"
|
|
975
|
-
}), /* @__PURE__ */
|
|
1029
|
+
}), /* @__PURE__ */ U("span", {
|
|
976
1030
|
className: "pointer-events-none absolute right-3 text-xs text-text-tertiary",
|
|
977
1031
|
children: "credits"
|
|
978
1032
|
})]
|
|
979
1033
|
}),
|
|
980
|
-
|
|
1034
|
+
y && /* @__PURE__ */ W("p", {
|
|
981
1035
|
className: "mt-1.5 text-xs text-text-secondary",
|
|
982
1036
|
children: [
|
|
983
1037
|
"≈ ",
|
|
984
|
-
|
|
1038
|
+
T(x),
|
|
985
1039
|
" USD at the current credit rate (1 cr =",
|
|
986
1040
|
" ",
|
|
987
|
-
|
|
1041
|
+
T(K),
|
|
988
1042
|
")"
|
|
989
1043
|
]
|
|
990
1044
|
}),
|
|
991
|
-
/* @__PURE__ */
|
|
1045
|
+
/* @__PURE__ */ U("p", {
|
|
992
1046
|
className: "mt-1 text-xs text-text-tertiary",
|
|
993
1047
|
children: s("devportal.priceHint", "Set the number of credits a buyer spends to install your app")
|
|
994
1048
|
})
|
|
995
1049
|
]
|
|
996
1050
|
}),
|
|
997
|
-
/* @__PURE__ */
|
|
1051
|
+
/* @__PURE__ */ W("div", {
|
|
998
1052
|
className: "flex items-center gap-2 text-xs text-text-secondary",
|
|
999
|
-
children: [/* @__PURE__ */
|
|
1053
|
+
children: [/* @__PURE__ */ U("span", { children: "Quick convert:" }), [
|
|
1000
1054
|
5,
|
|
1001
1055
|
10,
|
|
1002
1056
|
25,
|
|
1003
1057
|
50
|
|
1004
|
-
].map((e) => /* @__PURE__ */
|
|
1058
|
+
].map((e) => /* @__PURE__ */ W("button", {
|
|
1005
1059
|
type: "button",
|
|
1006
|
-
onClick: () => h("price", String(
|
|
1060
|
+
onClick: () => h("price", String(Qe(e))),
|
|
1007
1061
|
className: "rounded border border-border-subtle px-2 py-0.5 hover:bg-bg-sunken transition-colors",
|
|
1008
1062
|
children: [
|
|
1009
1063
|
"$",
|
|
1010
1064
|
e,
|
|
1011
1065
|
" = ",
|
|
1012
|
-
|
|
1066
|
+
Qe(e).toLocaleString(),
|
|
1013
1067
|
" cr"
|
|
1014
1068
|
]
|
|
1015
1069
|
}, e))]
|
|
1016
1070
|
}),
|
|
1017
|
-
|
|
1071
|
+
y && /* @__PURE__ */ W("div", {
|
|
1018
1072
|
className: "rounded-lg border border-border-subtle bg-bg-sunken p-4 space-y-3",
|
|
1019
1073
|
children: [
|
|
1020
|
-
/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ U("p", {
|
|
1021
1075
|
className: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
1022
1076
|
children: s("devportal.revenueBreakdown", "Revenue Breakdown per Sale")
|
|
1023
1077
|
}),
|
|
1024
|
-
/* @__PURE__ */
|
|
1078
|
+
/* @__PURE__ */ W("div", {
|
|
1025
1079
|
className: "space-y-2 text-sm",
|
|
1026
1080
|
children: [
|
|
1027
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ W("div", {
|
|
1028
1082
|
className: "flex items-center justify-between",
|
|
1029
|
-
children: [/* @__PURE__ */
|
|
1083
|
+
children: [/* @__PURE__ */ U("span", {
|
|
1030
1084
|
className: "text-text-secondary",
|
|
1031
1085
|
children: "Buyer pays"
|
|
1032
|
-
}), /* @__PURE__ */
|
|
1086
|
+
}), /* @__PURE__ */ W("span", {
|
|
1033
1087
|
className: "font-medium tabular-nums",
|
|
1034
1088
|
children: [
|
|
1035
|
-
|
|
1089
|
+
E(v),
|
|
1036
1090
|
" ",
|
|
1037
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ W("span", {
|
|
1038
1092
|
className: "text-text-tertiary text-xs",
|
|
1039
1093
|
children: [
|
|
1040
1094
|
"(",
|
|
1041
|
-
|
|
1095
|
+
T(x),
|
|
1042
1096
|
")"
|
|
1043
1097
|
]
|
|
1044
1098
|
})
|
|
1045
1099
|
]
|
|
1046
1100
|
})]
|
|
1047
1101
|
}),
|
|
1048
|
-
/* @__PURE__ */
|
|
1102
|
+
/* @__PURE__ */ W("div", {
|
|
1049
1103
|
className: "flex items-center justify-between text-status-error-text",
|
|
1050
|
-
children: [/* @__PURE__ */
|
|
1104
|
+
children: [/* @__PURE__ */ W("span", { children: [
|
|
1051
1105
|
"Platform fee",
|
|
1052
1106
|
" ",
|
|
1053
|
-
/* @__PURE__ */
|
|
1107
|
+
/* @__PURE__ */ W("span", {
|
|
1054
1108
|
className: "opacity-70",
|
|
1055
1109
|
children: [
|
|
1056
1110
|
"(",
|
|
@@ -1058,62 +1112,62 @@ var ze = [
|
|
|
1058
1112
|
"%)"
|
|
1059
1113
|
]
|
|
1060
1114
|
})
|
|
1061
|
-
] }), /* @__PURE__ */
|
|
1115
|
+
] }), /* @__PURE__ */ W("span", {
|
|
1062
1116
|
className: "tabular-nums",
|
|
1063
1117
|
children: [
|
|
1064
1118
|
"− ",
|
|
1065
|
-
|
|
1119
|
+
E(S),
|
|
1066
1120
|
" ",
|
|
1067
|
-
/* @__PURE__ */
|
|
1121
|
+
/* @__PURE__ */ W("span", {
|
|
1068
1122
|
className: "text-xs opacity-70",
|
|
1069
1123
|
children: [
|
|
1070
1124
|
"(",
|
|
1071
|
-
|
|
1125
|
+
T(C),
|
|
1072
1126
|
")"
|
|
1073
1127
|
]
|
|
1074
1128
|
})
|
|
1075
1129
|
]
|
|
1076
1130
|
})]
|
|
1077
1131
|
}),
|
|
1078
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ W("div", {
|
|
1079
1133
|
className: "flex items-center justify-between border-t border-border-subtle pt-2 font-semibold text-status-success-text",
|
|
1080
|
-
children: [/* @__PURE__ */
|
|
1134
|
+
children: [/* @__PURE__ */ U("span", { children: "You earn" }), /* @__PURE__ */ W("span", {
|
|
1081
1135
|
className: "tabular-nums",
|
|
1082
1136
|
children: [
|
|
1083
|
-
|
|
1137
|
+
E(w),
|
|
1084
1138
|
" ",
|
|
1085
|
-
/* @__PURE__ */
|
|
1139
|
+
/* @__PURE__ */ W("span", {
|
|
1086
1140
|
className: "text-sm font-normal",
|
|
1087
|
-
children: ["≈ ",
|
|
1141
|
+
children: ["≈ ", T(ee)]
|
|
1088
1142
|
})
|
|
1089
1143
|
]
|
|
1090
1144
|
})]
|
|
1091
1145
|
})
|
|
1092
1146
|
]
|
|
1093
1147
|
}),
|
|
1094
|
-
/* @__PURE__ */
|
|
1148
|
+
/* @__PURE__ */ U("p", {
|
|
1095
1149
|
className: "text-xs text-text-tertiary",
|
|
1096
1150
|
children: "Credits are deposited to your billing account on each sale. Cash withdrawal is subject to platform terms and minimum payout thresholds."
|
|
1097
1151
|
})
|
|
1098
1152
|
]
|
|
1099
1153
|
}),
|
|
1100
|
-
!r && /* @__PURE__ */
|
|
1154
|
+
!r && /* @__PURE__ */ W("div", {
|
|
1101
1155
|
className: "flex items-start gap-3 rounded-lg border border-status-warning-bg bg-status-warning-bg-subtle p-4",
|
|
1102
|
-
children: [/* @__PURE__ */
|
|
1156
|
+
children: [/* @__PURE__ */ U(de, {
|
|
1103
1157
|
size: 16,
|
|
1104
1158
|
className: "mt-0.5 shrink-0 text-status-warning-text"
|
|
1105
|
-
}), /* @__PURE__ */
|
|
1159
|
+
}), /* @__PURE__ */ W("div", {
|
|
1106
1160
|
className: "flex-1 min-w-0",
|
|
1107
1161
|
children: [
|
|
1108
|
-
/* @__PURE__ */
|
|
1162
|
+
/* @__PURE__ */ U("p", {
|
|
1109
1163
|
className: "text-sm font-medium text-status-warning-text",
|
|
1110
1164
|
children: s("devportal.billingAccountRequired", "Billing account required to publish")
|
|
1111
1165
|
}),
|
|
1112
|
-
/* @__PURE__ */
|
|
1166
|
+
/* @__PURE__ */ U("p", {
|
|
1113
1167
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
1114
1168
|
children: "Paid apps must have a billing account linked to your developer organization before you can submit for review. This is where your earned credits and cash withdrawals will be managed."
|
|
1115
1169
|
}),
|
|
1116
|
-
i && /* @__PURE__ */
|
|
1170
|
+
i && /* @__PURE__ */ U("button", {
|
|
1117
1171
|
type: "button",
|
|
1118
1172
|
onClick: i,
|
|
1119
1173
|
className: "mt-2 text-xs font-medium text-primary hover:underline underline-offset-2",
|
|
@@ -1126,23 +1180,23 @@ var ze = [
|
|
|
1126
1180
|
})
|
|
1127
1181
|
]
|
|
1128
1182
|
}),
|
|
1129
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ W("div", {
|
|
1130
1184
|
className: "rounded-xl border border-border-subtle bg-bg-surface p-5 space-y-3",
|
|
1131
|
-
children: [/* @__PURE__ */
|
|
1185
|
+
children: [/* @__PURE__ */ U("h3", {
|
|
1132
1186
|
className: "text-sm font-semibold",
|
|
1133
1187
|
children: s("devportal.termsTitle", "Developer & Marketplace Terms")
|
|
1134
|
-
}), /* @__PURE__ */
|
|
1188
|
+
}), /* @__PURE__ */ W("ul", {
|
|
1135
1189
|
className: "space-y-2 text-sm text-text-secondary",
|
|
1136
1190
|
children: [
|
|
1137
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ W("li", {
|
|
1138
1192
|
className: "flex items-start gap-2",
|
|
1139
|
-
children: [/* @__PURE__ */
|
|
1193
|
+
children: [/* @__PURE__ */ U(F, {
|
|
1140
1194
|
size: 14,
|
|
1141
1195
|
className: "mt-0.5 shrink-0 text-status-success-text"
|
|
1142
|
-
}), /* @__PURE__ */
|
|
1196
|
+
}), /* @__PURE__ */ W("span", { children: [
|
|
1143
1197
|
"By publishing to the marketplace you agree to the",
|
|
1144
1198
|
" ",
|
|
1145
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ U("a", {
|
|
1146
1200
|
href: "/legal/developer-terms",
|
|
1147
1201
|
target: "_blank",
|
|
1148
1202
|
rel: "noopener noreferrer",
|
|
@@ -1152,29 +1206,29 @@ var ze = [
|
|
|
1152
1206
|
"."
|
|
1153
1207
|
] })]
|
|
1154
1208
|
}),
|
|
1155
|
-
/* @__PURE__ */
|
|
1209
|
+
/* @__PURE__ */ W("li", {
|
|
1156
1210
|
className: "flex items-start gap-2",
|
|
1157
|
-
children: [/* @__PURE__ */
|
|
1211
|
+
children: [/* @__PURE__ */ U(F, {
|
|
1158
1212
|
size: 14,
|
|
1159
1213
|
className: "mt-0.5 shrink-0 text-status-success-text"
|
|
1160
|
-
}), /* @__PURE__ */
|
|
1214
|
+
}), /* @__PURE__ */ U("span", { children: "All prices are in platform credits. The USD equivalent is indicative only and may vary with the current credit rate." })]
|
|
1161
1215
|
}),
|
|
1162
|
-
/* @__PURE__ */
|
|
1216
|
+
/* @__PURE__ */ W("li", {
|
|
1163
1217
|
className: "flex items-start gap-2",
|
|
1164
|
-
children: [/* @__PURE__ */
|
|
1218
|
+
children: [/* @__PURE__ */ U(F, {
|
|
1165
1219
|
size: 14,
|
|
1166
1220
|
className: "mt-0.5 shrink-0 text-status-success-text"
|
|
1167
|
-
}), /* @__PURE__ */
|
|
1221
|
+
}), /* @__PURE__ */ U("span", { children: "Earnings are credited to your billing account per-sale. Cash withdrawals are subject to a minimum threshold and applicable taxes in your jurisdiction." })]
|
|
1168
1222
|
}),
|
|
1169
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ W("li", {
|
|
1170
1224
|
className: "flex items-start gap-2",
|
|
1171
|
-
children: [/* @__PURE__ */
|
|
1225
|
+
children: [/* @__PURE__ */ U(F, {
|
|
1172
1226
|
size: 14,
|
|
1173
1227
|
className: "mt-0.5 shrink-0 text-status-success-text"
|
|
1174
|
-
}), /* @__PURE__ */
|
|
1228
|
+
}), /* @__PURE__ */ W("span", { children: [
|
|
1175
1229
|
"The platform reserves the right to adjust the credit rate, fee structure, or payout schedule with 30 days notice. See the",
|
|
1176
1230
|
" ",
|
|
1177
|
-
/* @__PURE__ */
|
|
1231
|
+
/* @__PURE__ */ U("a", {
|
|
1178
1232
|
href: "/legal/marketplace-terms",
|
|
1179
1233
|
target: "_blank",
|
|
1180
1234
|
rel: "noopener noreferrer",
|
|
@@ -1188,26 +1242,26 @@ var ze = [
|
|
|
1188
1242
|
]
|
|
1189
1243
|
})]
|
|
1190
1244
|
}),
|
|
1191
|
-
/* @__PURE__ */
|
|
1245
|
+
/* @__PURE__ */ W("div", {
|
|
1192
1246
|
className: "border-t border-border-subtle pt-6 space-y-4",
|
|
1193
|
-
children: [/* @__PURE__ */
|
|
1247
|
+
children: [/* @__PURE__ */ U("button", {
|
|
1194
1248
|
type: "button",
|
|
1195
1249
|
onClick: () => void g(),
|
|
1196
1250
|
disabled: d,
|
|
1197
1251
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50",
|
|
1198
|
-
children: d ? /* @__PURE__ */
|
|
1252
|
+
children: d ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(R, {
|
|
1199
1253
|
size: 16,
|
|
1200
1254
|
className: "animate-spin"
|
|
1201
|
-
}), s("devportal.saving", "Saving…")] }) : /* @__PURE__ */
|
|
1202
|
-
}), a && /* @__PURE__ */
|
|
1255
|
+
}), s("devportal.saving", "Saving…")] }) : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(I, { size: 16 }), s("devportal.savePricing", "Save Pricing")] })
|
|
1256
|
+
}), a && /* @__PURE__ */ W("div", {
|
|
1203
1257
|
className: "flex items-start gap-3 rounded-lg border border-status-success-bg bg-status-success-bg-subtle px-4 py-3",
|
|
1204
|
-
children: [/* @__PURE__ */
|
|
1258
|
+
children: [/* @__PURE__ */ U(F, {
|
|
1205
1259
|
size: 16,
|
|
1206
1260
|
className: "mt-0.5 shrink-0 text-status-success-text"
|
|
1207
|
-
}), /* @__PURE__ */
|
|
1261
|
+
}), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1208
1262
|
className: "text-sm font-medium text-status-success-text",
|
|
1209
1263
|
children: s("devportal.allSetToSubmit", "You're all set!")
|
|
1210
|
-
}), /* @__PURE__ */
|
|
1264
|
+
}), /* @__PURE__ */ U("p", {
|
|
1211
1265
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
1212
1266
|
children: s("devportal.allSetDesc", "Store listing, versions, and pricing are complete. Head to the top of the page and click Submit for Review.")
|
|
1213
1267
|
})] })]
|
|
@@ -1215,88 +1269,88 @@ var ze = [
|
|
|
1215
1269
|
})
|
|
1216
1270
|
]
|
|
1217
1271
|
});
|
|
1218
|
-
},
|
|
1219
|
-
let { t: o } =
|
|
1272
|
+
}, et = ({ appId: e, onNavigate: n, pricingDone: i = !1, onNavigateToPricing: a }) => {
|
|
1273
|
+
let { t: o } = P(), s = (e, t) => {
|
|
1220
1274
|
let n = o(e);
|
|
1221
1275
|
return n === e ? t : n;
|
|
1222
1276
|
}, { data: l, loading: u, error: d } = c({
|
|
1223
1277
|
variables: { applicationId: e },
|
|
1224
1278
|
fetchPolicy: "cache-and-network"
|
|
1225
1279
|
});
|
|
1226
|
-
if (u) return /* @__PURE__ */
|
|
1227
|
-
if (d) return /* @__PURE__ */
|
|
1280
|
+
if (u) return /* @__PURE__ */ U(G, { message: s("devportal.loadingVersions", "Loading versions…") });
|
|
1281
|
+
if (d) return /* @__PURE__ */ U(qe, { message: d.message });
|
|
1228
1282
|
let f = (l?.application?.versions?.edges ?? []).map((e) => e.node);
|
|
1229
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ W("div", {
|
|
1230
1284
|
className: "space-y-4",
|
|
1231
1285
|
children: [
|
|
1232
|
-
/* @__PURE__ */
|
|
1286
|
+
/* @__PURE__ */ W("div", {
|
|
1233
1287
|
className: "flex items-center justify-between",
|
|
1234
|
-
children: [/* @__PURE__ */
|
|
1288
|
+
children: [/* @__PURE__ */ W("p", {
|
|
1235
1289
|
className: "text-sm text-text-secondary",
|
|
1236
1290
|
children: [
|
|
1237
1291
|
f.length,
|
|
1238
1292
|
" ",
|
|
1239
1293
|
f.length === 1 ? s("devportal.version", "version") : s("devportal.versions", "versions")
|
|
1240
1294
|
]
|
|
1241
|
-
}), /* @__PURE__ */
|
|
1295
|
+
}), /* @__PURE__ */ W("button", {
|
|
1242
1296
|
onClick: () => n(`/apps/${e}/versions`),
|
|
1243
1297
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
1244
|
-
children: [/* @__PURE__ */
|
|
1298
|
+
children: [/* @__PURE__ */ U(V, { size: 16 }), s("devportal.uploadVersion", "Upload Version")]
|
|
1245
1299
|
})]
|
|
1246
1300
|
}),
|
|
1247
|
-
f.length > 0 ? /* @__PURE__ */
|
|
1301
|
+
f.length > 0 ? /* @__PURE__ */ U("div", {
|
|
1248
1302
|
className: "overflow-hidden rounded-lg border border-border-subtle",
|
|
1249
|
-
children: /* @__PURE__ */
|
|
1303
|
+
children: /* @__PURE__ */ W("table", {
|
|
1250
1304
|
className: "w-full text-sm",
|
|
1251
|
-
children: [/* @__PURE__ */
|
|
1305
|
+
children: [/* @__PURE__ */ U("thead", { children: /* @__PURE__ */ W("tr", {
|
|
1252
1306
|
className: "border-b border-border-subtle bg-bg-sunken/50",
|
|
1253
1307
|
children: [
|
|
1254
|
-
/* @__PURE__ */
|
|
1308
|
+
/* @__PURE__ */ U("th", {
|
|
1255
1309
|
className: "px-4 py-3 text-left font-medium text-text-secondary",
|
|
1256
1310
|
children: s("devportal.version", "Version")
|
|
1257
1311
|
}),
|
|
1258
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ U("th", {
|
|
1259
1313
|
className: "px-4 py-3 text-left font-medium text-text-secondary",
|
|
1260
1314
|
children: s("devportal.status", "Status")
|
|
1261
1315
|
}),
|
|
1262
|
-
/* @__PURE__ */
|
|
1316
|
+
/* @__PURE__ */ U("th", {
|
|
1263
1317
|
className: "px-4 py-3 text-left font-medium text-text-secondary",
|
|
1264
1318
|
children: s("devportal.released", "Released")
|
|
1265
1319
|
}),
|
|
1266
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ U("th", {
|
|
1267
1321
|
className: "px-4 py-3 text-left font-medium text-text-secondary",
|
|
1268
1322
|
children: s("devportal.flags", "Flags")
|
|
1269
1323
|
})
|
|
1270
1324
|
]
|
|
1271
|
-
}) }), /* @__PURE__ */
|
|
1325
|
+
}) }), /* @__PURE__ */ U("tbody", {
|
|
1272
1326
|
className: "divide-y divide-border-subtle",
|
|
1273
|
-
children: f.map((e) => /* @__PURE__ */
|
|
1274
|
-
/* @__PURE__ */
|
|
1327
|
+
children: f.map((e) => /* @__PURE__ */ W(H, { children: [
|
|
1328
|
+
/* @__PURE__ */ W("tr", {
|
|
1275
1329
|
className: "hover:bg-bg-sunken/30 transition-colors",
|
|
1276
1330
|
children: [
|
|
1277
|
-
/* @__PURE__ */
|
|
1331
|
+
/* @__PURE__ */ U("td", {
|
|
1278
1332
|
className: "px-4 py-3 font-mono font-medium",
|
|
1279
1333
|
children: e.version
|
|
1280
1334
|
}),
|
|
1281
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ U("td", {
|
|
1282
1336
|
className: "px-4 py-3",
|
|
1283
|
-
children: /* @__PURE__ */
|
|
1337
|
+
children: /* @__PURE__ */ U("span", {
|
|
1284
1338
|
className: t("inline-flex rounded-full px-2 py-0.5 text-xs font-medium", e.status === "published" ? "bg-status-success-bg-subtle text-status-success-text" : e.status === "pending_review" ? "bg-status-info-bg-subtle text-status-info-text" : e.status === "rejected" ? "bg-status-error-bg-subtle text-status-error-text" : e.status === "deprecated" ? "bg-bg-sunken text-text-secondary" : "bg-status-warning-bg-subtle text-status-warning-text"),
|
|
1285
1339
|
children: e.status === "pending_review" ? "In Review" : e.status
|
|
1286
1340
|
})
|
|
1287
1341
|
}),
|
|
1288
|
-
/* @__PURE__ */
|
|
1342
|
+
/* @__PURE__ */ U("td", {
|
|
1289
1343
|
className: "px-4 py-3 text-text-secondary",
|
|
1290
1344
|
children: e.publishedAt ? new Date(e.publishedAt).toLocaleDateString() : new Date(e.createdAt).toLocaleDateString()
|
|
1291
1345
|
}),
|
|
1292
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ U("td", {
|
|
1293
1347
|
className: "px-4 py-3",
|
|
1294
|
-
children: /* @__PURE__ */
|
|
1348
|
+
children: /* @__PURE__ */ W("div", {
|
|
1295
1349
|
className: "flex gap-1.5",
|
|
1296
|
-
children: [e.isLatest && /* @__PURE__ */
|
|
1350
|
+
children: [e.isLatest && /* @__PURE__ */ U("span", {
|
|
1297
1351
|
className: "rounded-full bg-action-primary-bg/10 px-2 py-0.5 text-xs text-primary font-medium",
|
|
1298
1352
|
children: "latest"
|
|
1299
|
-
}), e.isStable && /* @__PURE__ */
|
|
1353
|
+
}), e.isStable && /* @__PURE__ */ U("span", {
|
|
1300
1354
|
className: "rounded-full bg-status-success-bg-subtle px-2 py-0.5 text-xs text-status-success-text font-medium",
|
|
1301
1355
|
children: "stable"
|
|
1302
1356
|
})]
|
|
@@ -1304,26 +1358,26 @@ var ze = [
|
|
|
1304
1358
|
})
|
|
1305
1359
|
]
|
|
1306
1360
|
}, e.id),
|
|
1307
|
-
e.status === "rejected" && e.reviewNotes && /* @__PURE__ */
|
|
1361
|
+
e.status === "rejected" && e.reviewNotes && /* @__PURE__ */ U("tr", {
|
|
1308
1362
|
className: "bg-status-error-bg-subtle/40",
|
|
1309
|
-
children: /* @__PURE__ */
|
|
1363
|
+
children: /* @__PURE__ */ U("td", {
|
|
1310
1364
|
colSpan: 4,
|
|
1311
1365
|
className: "px-4 py-2",
|
|
1312
|
-
children: /* @__PURE__ */
|
|
1366
|
+
children: /* @__PURE__ */ W("p", {
|
|
1313
1367
|
className: "text-xs text-status-error-text",
|
|
1314
|
-
children: [/* @__PURE__ */
|
|
1368
|
+
children: [/* @__PURE__ */ W("span", {
|
|
1315
1369
|
className: "font-semibold",
|
|
1316
1370
|
children: ["Review feedback:", " "]
|
|
1317
1371
|
}), e.reviewNotes]
|
|
1318
1372
|
})
|
|
1319
1373
|
})
|
|
1320
1374
|
}, `${e.id}-notes`),
|
|
1321
|
-
e.status === "pending_review" && /* @__PURE__ */
|
|
1375
|
+
e.status === "pending_review" && /* @__PURE__ */ U("tr", {
|
|
1322
1376
|
className: "bg-status-info-bg-subtle/30",
|
|
1323
|
-
children: /* @__PURE__ */
|
|
1377
|
+
children: /* @__PURE__ */ U("td", {
|
|
1324
1378
|
colSpan: 4,
|
|
1325
1379
|
className: "px-4 py-2",
|
|
1326
|
-
children: /* @__PURE__ */
|
|
1380
|
+
children: /* @__PURE__ */ U("p", {
|
|
1327
1381
|
className: "text-xs text-status-info-text",
|
|
1328
1382
|
children: "Submitted for platform review — you will be notified once approved or if changes are needed."
|
|
1329
1383
|
})
|
|
@@ -1332,67 +1386,67 @@ var ze = [
|
|
|
1332
1386
|
] }))
|
|
1333
1387
|
})]
|
|
1334
1388
|
})
|
|
1335
|
-
}) : /* @__PURE__ */
|
|
1389
|
+
}) : /* @__PURE__ */ U(r, {
|
|
1336
1390
|
illustration: "empty-generic",
|
|
1337
|
-
icon: /* @__PURE__ */
|
|
1391
|
+
icon: /* @__PURE__ */ U(Ee, { size: 32 }),
|
|
1338
1392
|
title: s("devportal.noVersions", "No versions yet"),
|
|
1339
1393
|
description: s("devportal.noVersionsDescription", "Upload your first version to make this item available for review and distribution."),
|
|
1340
|
-
action: /* @__PURE__ */
|
|
1394
|
+
action: /* @__PURE__ */ W("button", {
|
|
1341
1395
|
onClick: () => n(`/apps/${e}/versions`),
|
|
1342
1396
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
1343
|
-
children: [/* @__PURE__ */
|
|
1397
|
+
children: [/* @__PURE__ */ U(V, { size: 16 }), s("devportal.uploadVersion", "Upload Version")]
|
|
1344
1398
|
})
|
|
1345
1399
|
}),
|
|
1346
|
-
f.length > 0 && !i && a && /* @__PURE__ */
|
|
1400
|
+
f.length > 0 && !i && a && /* @__PURE__ */ W("div", {
|
|
1347
1401
|
className: "mt-4 flex items-center gap-3 rounded-lg border border-border-subtle bg-bg-sunken px-4 py-3",
|
|
1348
1402
|
children: [
|
|
1349
|
-
/* @__PURE__ */
|
|
1403
|
+
/* @__PURE__ */ U(I, {
|
|
1350
1404
|
size: 16,
|
|
1351
1405
|
className: "shrink-0 text-primary"
|
|
1352
1406
|
}),
|
|
1353
|
-
/* @__PURE__ */
|
|
1407
|
+
/* @__PURE__ */ U("p", {
|
|
1354
1408
|
className: "flex-1 text-sm text-text-secondary",
|
|
1355
1409
|
children: s("devportal.versionsNextPricing", "You've got versions covered. Now set your pricing before you can submit.")
|
|
1356
1410
|
}),
|
|
1357
|
-
/* @__PURE__ */
|
|
1411
|
+
/* @__PURE__ */ W("button", {
|
|
1358
1412
|
type: "button",
|
|
1359
1413
|
onClick: a,
|
|
1360
1414
|
className: "inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline underline-offset-2 whitespace-nowrap",
|
|
1361
|
-
children: [s("devportal.nextSetPricing", "Set Pricing"), /* @__PURE__ */
|
|
1415
|
+
children: [s("devportal.nextSetPricing", "Set Pricing"), /* @__PURE__ */ U(he, { size: 15 })]
|
|
1362
1416
|
})
|
|
1363
1417
|
]
|
|
1364
1418
|
})
|
|
1365
1419
|
]
|
|
1366
1420
|
});
|
|
1367
|
-
},
|
|
1368
|
-
let { t: n } =
|
|
1421
|
+
}, tt = ({ appId: e, onNavigate: t }) => {
|
|
1422
|
+
let { t: n } = P(), r = (e, t) => {
|
|
1369
1423
|
let r = n(e);
|
|
1370
1424
|
return r === e ? t : r;
|
|
1371
1425
|
}, { data: i, loading: a, error: o } = u({ variables: { applicationId: e } });
|
|
1372
|
-
return a ? /* @__PURE__ */
|
|
1426
|
+
return a ? /* @__PURE__ */ U(G, { message: r("devportal.loadingWebhooks", "Loading webhooks...") }) : o ? /* @__PURE__ */ U(qe, { message: o.message }) : /* @__PURE__ */ U(at, {
|
|
1373
1427
|
appId: e,
|
|
1374
|
-
webhooks: (i?.webhooks ?? []).map(
|
|
1428
|
+
webhooks: (i?.webhooks ?? []).map(He),
|
|
1375
1429
|
onNavigate: t
|
|
1376
1430
|
});
|
|
1377
|
-
},
|
|
1378
|
-
let { t: o } =
|
|
1431
|
+
}, nt = ({ authAppId: e, appName: t, onGrantDelegation: n, onNavigate: a }) => {
|
|
1432
|
+
let { t: o } = P(), s = (e, t) => {
|
|
1379
1433
|
let n = o(e);
|
|
1380
1434
|
return n === e ? t : n;
|
|
1381
|
-
}, { data: c, loading: l, error: u, refetch: d } = i(), [f] = m(), [p, h] =
|
|
1435
|
+
}, { data: c, loading: l, error: u, refetch: d } = i(), [f] = m(), [p, h] = N([]), [g, _] = N(!1), [v, y] = N(/* @__PURE__ */ new Set()), [b, x] = N(null), S = M(() => c?.currentUserDelegations?.delegations ? c.currentUserDelegations.delegations.filter((t) => t.appId === e).map(We) : [], [e, c]), C = M(() => S.filter((e) => e.status === "ACTIVE"), [S]), w = M(() => C.filter((e) => v.has(e.id)), [C, v]), ee = C.length > 0 && C.every((e) => v.has(e.id)), T = C.some((e) => v.has(e.id)) && !ee, E = j((e, t) => {
|
|
1382
1436
|
y((n) => {
|
|
1383
1437
|
let r = new Set(n);
|
|
1384
1438
|
return t ? r.add(e) : r.delete(e), r;
|
|
1385
1439
|
});
|
|
1386
|
-
}, []),
|
|
1440
|
+
}, []), D = j((e) => {
|
|
1387
1441
|
y((t) => {
|
|
1388
1442
|
let n = new Set(t);
|
|
1389
1443
|
return C.forEach((t) => {
|
|
1390
1444
|
e ? n.add(t.id) : n.delete(t.id);
|
|
1391
1445
|
}), n;
|
|
1392
1446
|
});
|
|
1393
|
-
}, [C]),
|
|
1447
|
+
}, [C]), te = j(() => {
|
|
1394
1448
|
y(/* @__PURE__ */ new Set());
|
|
1395
|
-
}, []),
|
|
1449
|
+
}, []), O = j(async (e) => {
|
|
1396
1450
|
_(!0);
|
|
1397
1451
|
try {
|
|
1398
1452
|
let t = await Promise.allSettled(e.map((e) => f({ variables: { id: e } }))), n = t.filter((e) => e.status === "fulfilled").length, r = t.length - n;
|
|
@@ -1404,38 +1458,38 @@ var ze = [
|
|
|
1404
1458
|
_(!1);
|
|
1405
1459
|
}
|
|
1406
1460
|
}, [f, d]);
|
|
1407
|
-
return e ? l ? /* @__PURE__ */
|
|
1408
|
-
b && /* @__PURE__ */
|
|
1461
|
+
return e ? l ? /* @__PURE__ */ U(G, { message: s("devportal.loadingDelegations", "Loading delegations...") }) : u ? /* @__PURE__ */ U(qe, { message: u.message }) : /* @__PURE__ */ W(H, { children: [
|
|
1462
|
+
b && /* @__PURE__ */ U("div", {
|
|
1409
1463
|
className: "rounded-lg border border-border-subtle bg-status-success-bg-subtle p-3 text-sm text-status-success-text",
|
|
1410
|
-
children: /* @__PURE__ */
|
|
1464
|
+
children: /* @__PURE__ */ W("div", {
|
|
1411
1465
|
className: "flex items-center justify-between gap-3",
|
|
1412
|
-
children: [/* @__PURE__ */
|
|
1466
|
+
children: [/* @__PURE__ */ U("span", { children: b }), /* @__PURE__ */ U("button", {
|
|
1413
1467
|
onClick: () => x(null),
|
|
1414
1468
|
className: "text-status-success-text hover:text-status-success-text",
|
|
1415
1469
|
children: s("devportal.dismiss", "Dismiss")
|
|
1416
1470
|
})]
|
|
1417
1471
|
})
|
|
1418
1472
|
}),
|
|
1419
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ U(ot, {
|
|
1420
1474
|
appName: t,
|
|
1421
1475
|
delegations: S,
|
|
1422
1476
|
onGrantDelegation: n,
|
|
1423
1477
|
onRevokeDelegation: (e) => h([e]),
|
|
1424
1478
|
selectedDelegationIds: v,
|
|
1425
|
-
onToggleSelectDelegation:
|
|
1426
|
-
onToggleAllDelegations:
|
|
1427
|
-
onClearSelection:
|
|
1479
|
+
onToggleSelectDelegation: E,
|
|
1480
|
+
onToggleAllDelegations: D,
|
|
1481
|
+
onClearSelection: te,
|
|
1428
1482
|
onRevokeSelected: () => h(w.map((e) => e.id)),
|
|
1429
|
-
allVisibleSelected:
|
|
1430
|
-
partiallySelected:
|
|
1483
|
+
allVisibleSelected: ee,
|
|
1484
|
+
partiallySelected: T
|
|
1431
1485
|
}),
|
|
1432
|
-
/* @__PURE__ */
|
|
1486
|
+
/* @__PURE__ */ U(ie, {
|
|
1433
1487
|
open: p.length > 0,
|
|
1434
1488
|
onOpenChange: (e) => {
|
|
1435
1489
|
e || h([]);
|
|
1436
1490
|
},
|
|
1437
1491
|
onConfirm: () => {
|
|
1438
|
-
p.length > 0 &&
|
|
1492
|
+
p.length > 0 && O(p);
|
|
1439
1493
|
},
|
|
1440
1494
|
title: p.length > 1 ? s("devportal.revokeDelegations", "Revoke Delegations") : s("devportal.revokeDelegation", "Revoke Delegation"),
|
|
1441
1495
|
description: p.length > 1 ? s("devportal.revokeMultipleDelegationsDescription", `This will immediately revoke ${p.length} selected delegations.`) : s("devportal.revokeDelegationDescription", "This will immediately revoke the delegation. The app will no longer be able to act on your behalf with the selected permissions."),
|
|
@@ -1444,19 +1498,19 @@ var ze = [
|
|
|
1444
1498
|
variant: "destructive",
|
|
1445
1499
|
loading: g
|
|
1446
1500
|
})
|
|
1447
|
-
] }) : /* @__PURE__ */
|
|
1501
|
+
] }) : /* @__PURE__ */ U(r, {
|
|
1448
1502
|
illustration: "empty-generic",
|
|
1449
|
-
icon: /* @__PURE__ */
|
|
1503
|
+
icon: /* @__PURE__ */ U(B, { size: 32 }),
|
|
1450
1504
|
title: s("devportal.linkAuthAppFirst", "Link an auth app first"),
|
|
1451
1505
|
description: s("devportal.linkAuthAppFirstDescription", "Delegations are managed through auth apps. Create or link an auth app before granting app-as-user access."),
|
|
1452
|
-
action: /* @__PURE__ */
|
|
1506
|
+
action: /* @__PURE__ */ W("button", {
|
|
1453
1507
|
onClick: () => a("/oauth"),
|
|
1454
1508
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
1455
|
-
children: [/* @__PURE__ */
|
|
1509
|
+
children: [/* @__PURE__ */ U(L, { size: 16 }), s("devportal.manageOAuthApps", "Manage OAuth Apps")]
|
|
1456
1510
|
})
|
|
1457
1511
|
});
|
|
1458
|
-
},
|
|
1459
|
-
let { t } =
|
|
1512
|
+
}, rt = ({ appId: e }) => {
|
|
1513
|
+
let { t } = P(), n = (e, n) => {
|
|
1460
1514
|
let r = t(e);
|
|
1461
1515
|
return r === e ? n : r;
|
|
1462
1516
|
}, r = M(() => /* @__PURE__ */ new Date(), []), { data: i, loading: a, error: s } = o({ variables: {
|
|
@@ -1468,67 +1522,67 @@ var ze = [
|
|
|
1468
1522
|
}, [r]).toISOString(),
|
|
1469
1523
|
endDate: r.toISOString()
|
|
1470
1524
|
} });
|
|
1471
|
-
return a ? /* @__PURE__ */
|
|
1472
|
-
},
|
|
1473
|
-
let { t } =
|
|
1525
|
+
return a ? /* @__PURE__ */ U(G, { message: n("devportal.loadingAnalytics", "Loading analytics...") }) : s ? /* @__PURE__ */ U(qe, { message: s.message }) : /* @__PURE__ */ U(st, { analytics: (i?.applicationAnalytics ?? []).map(Ue) });
|
|
1526
|
+
}, it = ({ app: e }) => {
|
|
1527
|
+
let { t } = P(), n = (e, n) => {
|
|
1474
1528
|
let r = t(e);
|
|
1475
1529
|
return r === e ? n : r;
|
|
1476
1530
|
};
|
|
1477
|
-
return /* @__PURE__ */
|
|
1531
|
+
return /* @__PURE__ */ W("div", {
|
|
1478
1532
|
className: "grid gap-6 lg:grid-cols-3",
|
|
1479
|
-
children: [/* @__PURE__ */
|
|
1533
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1480
1534
|
className: "lg:col-span-2 space-y-6",
|
|
1481
1535
|
children: [
|
|
1482
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ U(ze, { children: /* @__PURE__ */ W("div", {
|
|
1483
1537
|
className: "grid gap-4 sm:grid-cols-4",
|
|
1484
1538
|
children: [
|
|
1485
|
-
/* @__PURE__ */
|
|
1539
|
+
/* @__PURE__ */ U(Z, {
|
|
1486
1540
|
label: n("devportal.totalInstalls", "Total Installs"),
|
|
1487
1541
|
value: e.installCount.toLocaleString()
|
|
1488
1542
|
}),
|
|
1489
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ U(Z, {
|
|
1490
1544
|
label: n("devportal.activeInstalls", "Active Installs"),
|
|
1491
1545
|
value: e.activeInstallCount.toLocaleString()
|
|
1492
1546
|
}),
|
|
1493
|
-
/* @__PURE__ */
|
|
1547
|
+
/* @__PURE__ */ U(Z, {
|
|
1494
1548
|
label: n("devportal.averageRating", "Average Rating"),
|
|
1495
1549
|
value: e.averageRating ? `${e.averageRating.toFixed(1)} ★` : n("devportal.notAvailable", "N/A")
|
|
1496
1550
|
}),
|
|
1497
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ U(Z, {
|
|
1498
1552
|
label: n("devportal.reviews", "Reviews"),
|
|
1499
1553
|
value: e.reviewCount.toString()
|
|
1500
1554
|
})
|
|
1501
1555
|
]
|
|
1502
1556
|
}) }),
|
|
1503
|
-
/* @__PURE__ */
|
|
1557
|
+
/* @__PURE__ */ U(S, {
|
|
1504
1558
|
title: n("devportal.description", "Description"),
|
|
1505
|
-
children: /* @__PURE__ */
|
|
1559
|
+
children: /* @__PURE__ */ U("div", {
|
|
1506
1560
|
className: "prose prose-sm max-w-none",
|
|
1507
|
-
children: /* @__PURE__ */
|
|
1561
|
+
children: /* @__PURE__ */ U("pre", {
|
|
1508
1562
|
className: "whitespace-pre-wrap font-sans text-sm text-text-primary bg-transparent p-0 m-0",
|
|
1509
1563
|
children: e.description || n("devportal.noDescriptionProvided", "No description provided.")
|
|
1510
1564
|
})
|
|
1511
1565
|
})
|
|
1512
1566
|
}),
|
|
1513
|
-
/* @__PURE__ */
|
|
1567
|
+
/* @__PURE__ */ U(S, {
|
|
1514
1568
|
title: n("devportal.tagsAndKeywords", "Tags & Keywords"),
|
|
1515
|
-
children: /* @__PURE__ */
|
|
1569
|
+
children: /* @__PURE__ */ W("div", {
|
|
1516
1570
|
className: "space-y-3",
|
|
1517
|
-
children: [e.tags.length > 0 && /* @__PURE__ */
|
|
1571
|
+
children: [e.tags.length > 0 && /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1518
1572
|
className: "text-xs text-text-secondary mb-2",
|
|
1519
1573
|
children: n("devportal.tags", "Tags")
|
|
1520
|
-
}), /* @__PURE__ */
|
|
1574
|
+
}), /* @__PURE__ */ U("div", {
|
|
1521
1575
|
className: "flex flex-wrap gap-2",
|
|
1522
|
-
children: e.tags.map((e) => /* @__PURE__ */
|
|
1576
|
+
children: e.tags.map((e) => /* @__PURE__ */ U("span", {
|
|
1523
1577
|
className: "rounded-full bg-action-primary-bg/10 px-3 py-1 text-xs font-medium text-primary",
|
|
1524
1578
|
children: e
|
|
1525
1579
|
}, e))
|
|
1526
|
-
})] }), e.keywords.length > 0 && /* @__PURE__ */
|
|
1580
|
+
})] }), e.keywords.length > 0 && /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1527
1581
|
className: "text-xs text-text-secondary mb-2",
|
|
1528
1582
|
children: n("devportal.keywords", "Keywords")
|
|
1529
|
-
}), /* @__PURE__ */
|
|
1583
|
+
}), /* @__PURE__ */ U("div", {
|
|
1530
1584
|
className: "flex flex-wrap gap-2",
|
|
1531
|
-
children: e.keywords.map((e) => /* @__PURE__ */
|
|
1585
|
+
children: e.keywords.map((e) => /* @__PURE__ */ U("span", {
|
|
1532
1586
|
className: "rounded-full bg-bg-sunken px-3 py-1 text-xs",
|
|
1533
1587
|
children: e
|
|
1534
1588
|
}, e))
|
|
@@ -1536,14 +1590,14 @@ var ze = [
|
|
|
1536
1590
|
})
|
|
1537
1591
|
})
|
|
1538
1592
|
]
|
|
1539
|
-
}), /* @__PURE__ */
|
|
1593
|
+
}), /* @__PURE__ */ W("div", {
|
|
1540
1594
|
className: "space-y-6",
|
|
1541
|
-
children: [/* @__PURE__ */
|
|
1595
|
+
children: [/* @__PURE__ */ U(S, {
|
|
1542
1596
|
title: n("devportal.details", "Details"),
|
|
1543
|
-
children: /* @__PURE__ */
|
|
1597
|
+
children: /* @__PURE__ */ U(k, { items: [
|
|
1544
1598
|
{
|
|
1545
1599
|
label: n("devportal.appId", "App ID"),
|
|
1546
|
-
value: /* @__PURE__ */
|
|
1600
|
+
value: /* @__PURE__ */ U("code", {
|
|
1547
1601
|
className: "text-xs",
|
|
1548
1602
|
children: e.id
|
|
1549
1603
|
})
|
|
@@ -1579,32 +1633,32 @@ var ze = [
|
|
|
1579
1633
|
value: e.publishedAt ? new Date(e.publishedAt).toLocaleDateString() : n("devportal.notPublished", "Not published")
|
|
1580
1634
|
}
|
|
1581
1635
|
] })
|
|
1582
|
-
}), /* @__PURE__ */
|
|
1636
|
+
}), /* @__PURE__ */ U(S, {
|
|
1583
1637
|
title: n("devportal.links", "Links"),
|
|
1584
|
-
children: /* @__PURE__ */
|
|
1638
|
+
children: /* @__PURE__ */ W("div", {
|
|
1585
1639
|
className: "space-y-2",
|
|
1586
1640
|
children: [
|
|
1587
|
-
e.websiteUrl && /* @__PURE__ */
|
|
1641
|
+
e.websiteUrl && /* @__PURE__ */ U(Q, {
|
|
1588
1642
|
label: n("devportal.website", "Website"),
|
|
1589
1643
|
url: e.websiteUrl
|
|
1590
1644
|
}),
|
|
1591
|
-
e.documentationUrl && /* @__PURE__ */
|
|
1645
|
+
e.documentationUrl && /* @__PURE__ */ U(Q, {
|
|
1592
1646
|
label: n("devportal.documentation", "Documentation"),
|
|
1593
1647
|
url: e.documentationUrl
|
|
1594
1648
|
}),
|
|
1595
|
-
e.supportUrl && /* @__PURE__ */
|
|
1649
|
+
e.supportUrl && /* @__PURE__ */ U(Q, {
|
|
1596
1650
|
label: n("devportal.support", "Support"),
|
|
1597
1651
|
url: e.supportUrl
|
|
1598
1652
|
}),
|
|
1599
|
-
e.githubUrl && /* @__PURE__ */
|
|
1653
|
+
e.githubUrl && /* @__PURE__ */ U(Q, {
|
|
1600
1654
|
label: n("devportal.github", "GitHub"),
|
|
1601
1655
|
url: e.githubUrl
|
|
1602
1656
|
}),
|
|
1603
|
-
e.privacyPolicyUrl && /* @__PURE__ */
|
|
1657
|
+
e.privacyPolicyUrl && /* @__PURE__ */ U(Q, {
|
|
1604
1658
|
label: n("devportal.privacyPolicy", "Privacy Policy"),
|
|
1605
1659
|
url: e.privacyPolicyUrl
|
|
1606
1660
|
}),
|
|
1607
|
-
e.termsOfServiceUrl && /* @__PURE__ */
|
|
1661
|
+
e.termsOfServiceUrl && /* @__PURE__ */ U(Q, {
|
|
1608
1662
|
label: n("devportal.termsOfService", "Terms of Service"),
|
|
1609
1663
|
url: e.termsOfServiceUrl
|
|
1610
1664
|
})
|
|
@@ -1613,16 +1667,16 @@ var ze = [
|
|
|
1613
1667
|
})]
|
|
1614
1668
|
})]
|
|
1615
1669
|
});
|
|
1616
|
-
},
|
|
1617
|
-
let { t: i } =
|
|
1670
|
+
}, at = ({ appId: e, webhooks: t, onNavigate: n }) => {
|
|
1671
|
+
let { t: i } = P(), a = (e, t) => {
|
|
1618
1672
|
let n = i(e);
|
|
1619
1673
|
return n === e ? t : n;
|
|
1620
1674
|
};
|
|
1621
|
-
return /* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ W("div", {
|
|
1622
1676
|
className: "space-y-6",
|
|
1623
|
-
children: [/* @__PURE__ */
|
|
1677
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1624
1678
|
className: "flex items-center justify-between",
|
|
1625
|
-
children: [/* @__PURE__ */
|
|
1679
|
+
children: [/* @__PURE__ */ W("p", {
|
|
1626
1680
|
className: "text-sm text-text-secondary",
|
|
1627
1681
|
children: [
|
|
1628
1682
|
t.length,
|
|
@@ -1631,81 +1685,81 @@ var ze = [
|
|
|
1631
1685
|
" ",
|
|
1632
1686
|
a("devportal.configured", "configured")
|
|
1633
1687
|
]
|
|
1634
|
-
}), /* @__PURE__ */
|
|
1688
|
+
}), /* @__PURE__ */ W("button", {
|
|
1635
1689
|
onClick: () => n(`/apps/${e}/webhooks/new`),
|
|
1636
1690
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
1637
|
-
children: [/* @__PURE__ */
|
|
1691
|
+
children: [/* @__PURE__ */ U(z, { size: 16 }), a("devportal.addWebhook", "Add Webhook")]
|
|
1638
1692
|
})]
|
|
1639
|
-
}), t.length > 0 ? /* @__PURE__ */
|
|
1693
|
+
}), t.length > 0 ? /* @__PURE__ */ U("div", {
|
|
1640
1694
|
className: "space-y-4",
|
|
1641
|
-
children: t.map((t) => /* @__PURE__ */
|
|
1695
|
+
children: t.map((t) => /* @__PURE__ */ W("div", {
|
|
1642
1696
|
className: "rounded-card border border-border-seam bg-bg-surface p-4 space-y-4 shadow-[var(--shadow-pop)]",
|
|
1643
1697
|
children: [
|
|
1644
|
-
/* @__PURE__ */
|
|
1698
|
+
/* @__PURE__ */ W("div", {
|
|
1645
1699
|
className: "flex items-start justify-between",
|
|
1646
|
-
children: [/* @__PURE__ */
|
|
1700
|
+
children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("div", {
|
|
1647
1701
|
className: "flex items-center gap-2",
|
|
1648
|
-
children: [/* @__PURE__ */
|
|
1702
|
+
children: [/* @__PURE__ */ U("h3", {
|
|
1649
1703
|
className: "font-medium",
|
|
1650
1704
|
children: t.name
|
|
1651
|
-
}), /* @__PURE__ */
|
|
1705
|
+
}), /* @__PURE__ */ U(ee, {
|
|
1652
1706
|
status: t.status,
|
|
1653
1707
|
type: "webhook"
|
|
1654
1708
|
})]
|
|
1655
|
-
}), t.description && /* @__PURE__ */
|
|
1709
|
+
}), t.description && /* @__PURE__ */ U("p", {
|
|
1656
1710
|
className: "text-sm text-text-secondary mt-1",
|
|
1657
1711
|
children: t.description
|
|
1658
|
-
})] }), /* @__PURE__ */
|
|
1712
|
+
})] }), /* @__PURE__ */ U("button", {
|
|
1659
1713
|
onClick: () => n(`/apps/${e}/webhooks/${t.id}`),
|
|
1660
1714
|
className: "rounded-md p-1 hover:bg-bg-sunken",
|
|
1661
|
-
children: /* @__PURE__ */
|
|
1715
|
+
children: /* @__PURE__ */ U(Te, { size: 20 })
|
|
1662
1716
|
})]
|
|
1663
1717
|
}),
|
|
1664
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1665
1719
|
className: "text-xs text-text-secondary mb-1",
|
|
1666
1720
|
children: a("devportal.endpointUrl", "Endpoint URL")
|
|
1667
|
-
}), /* @__PURE__ */
|
|
1721
|
+
}), /* @__PURE__ */ U("code", {
|
|
1668
1722
|
className: "text-sm bg-bg-sunken px-2 py-1 rounded block truncate",
|
|
1669
1723
|
children: t.url
|
|
1670
1724
|
})] }),
|
|
1671
|
-
/* @__PURE__ */
|
|
1725
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1672
1726
|
className: "text-xs text-text-secondary mb-2",
|
|
1673
1727
|
children: a("devportal.events", "Events")
|
|
1674
|
-
}), /* @__PURE__ */
|
|
1728
|
+
}), /* @__PURE__ */ U("div", {
|
|
1675
1729
|
className: "flex flex-wrap gap-2",
|
|
1676
|
-
children: t.events.map((e) => /* @__PURE__ */
|
|
1730
|
+
children: t.events.map((e) => /* @__PURE__ */ U("span", {
|
|
1677
1731
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-xs",
|
|
1678
1732
|
children: e
|
|
1679
1733
|
}, e))
|
|
1680
1734
|
})] }),
|
|
1681
|
-
/* @__PURE__ */
|
|
1735
|
+
/* @__PURE__ */ W("div", {
|
|
1682
1736
|
className: "grid gap-4 sm:grid-cols-4 text-sm",
|
|
1683
1737
|
children: [
|
|
1684
|
-
/* @__PURE__ */
|
|
1738
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1685
1739
|
className: "text-xs text-text-secondary",
|
|
1686
1740
|
children: a("devportal.success", "Success")
|
|
1687
|
-
}), /* @__PURE__ */
|
|
1741
|
+
}), /* @__PURE__ */ U("p", {
|
|
1688
1742
|
className: "font-medium text-status-success-text",
|
|
1689
1743
|
children: t.successCount.toLocaleString()
|
|
1690
1744
|
})] }),
|
|
1691
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1692
1746
|
className: "text-xs text-text-secondary",
|
|
1693
1747
|
children: a("devportal.failed", "Failed")
|
|
1694
|
-
}), /* @__PURE__ */
|
|
1748
|
+
}), /* @__PURE__ */ U("p", {
|
|
1695
1749
|
className: "font-medium text-status-error-text",
|
|
1696
1750
|
children: t.failureCount.toLocaleString()
|
|
1697
1751
|
})] }),
|
|
1698
|
-
/* @__PURE__ */
|
|
1752
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1699
1753
|
className: "text-xs text-text-secondary",
|
|
1700
1754
|
children: a("devportal.successRate", "Success Rate")
|
|
1701
|
-
}), /* @__PURE__ */
|
|
1755
|
+
}), /* @__PURE__ */ W("p", {
|
|
1702
1756
|
className: "font-medium",
|
|
1703
1757
|
children: [t.successCount + t.failureCount > 0 ? (t.successCount / (t.successCount + t.failureCount) * 100).toFixed(1) : "0.0", "%"]
|
|
1704
1758
|
})] }),
|
|
1705
|
-
/* @__PURE__ */
|
|
1759
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1706
1760
|
className: "text-xs text-text-secondary",
|
|
1707
1761
|
children: a("devportal.lastTriggered", "Last Triggered")
|
|
1708
|
-
}), /* @__PURE__ */
|
|
1762
|
+
}), /* @__PURE__ */ U("p", {
|
|
1709
1763
|
className: "font-medium",
|
|
1710
1764
|
children: t.lastTriggeredAt ? new Date(t.lastTriggeredAt).toLocaleString() : a("devportal.never", "Never")
|
|
1711
1765
|
})] })
|
|
@@ -1713,29 +1767,29 @@ var ze = [
|
|
|
1713
1767
|
})
|
|
1714
1768
|
]
|
|
1715
1769
|
}, t.id))
|
|
1716
|
-
}) : /* @__PURE__ */
|
|
1770
|
+
}) : /* @__PURE__ */ U(r, {
|
|
1717
1771
|
illustration: "empty-notifications",
|
|
1718
|
-
icon: /* @__PURE__ */
|
|
1772
|
+
icon: /* @__PURE__ */ U(Pe, { size: 32 }),
|
|
1719
1773
|
title: a("devportal.noWebhooks", "No webhooks"),
|
|
1720
1774
|
description: a("devportal.noWebhooksDescription", "Add a webhook to receive event notifications"),
|
|
1721
|
-
action: /* @__PURE__ */
|
|
1775
|
+
action: /* @__PURE__ */ W("button", {
|
|
1722
1776
|
onClick: () => n(`/apps/${e}/webhooks/new`),
|
|
1723
1777
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
1724
|
-
children: [/* @__PURE__ */
|
|
1778
|
+
children: [/* @__PURE__ */ U(z, { size: 16 }), a("devportal.addWebhook", "Add Webhook")]
|
|
1725
1779
|
})
|
|
1726
1780
|
})]
|
|
1727
1781
|
});
|
|
1728
|
-
},
|
|
1729
|
-
let { t: p } =
|
|
1782
|
+
}, ot = ({ appName: e, delegations: n, onGrantDelegation: i, onRevokeDelegation: a, selectedDelegationIds: o, onToggleSelectDelegation: s, onToggleAllDelegations: c, onClearSelection: l, onRevokeSelected: u, allVisibleSelected: d, partiallySelected: f }) => {
|
|
1783
|
+
let { t: p } = P(), m = (e, t) => {
|
|
1730
1784
|
let n = p(e);
|
|
1731
1785
|
return n === e ? t : n;
|
|
1732
1786
|
}, h = n.filter((e) => e.status === "ACTIVE"), g = n.filter((e) => e.status !== "ACTIVE");
|
|
1733
|
-
return /* @__PURE__ */
|
|
1787
|
+
return /* @__PURE__ */ W("div", {
|
|
1734
1788
|
className: "space-y-6",
|
|
1735
1789
|
children: [
|
|
1736
|
-
/* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ W("div", {
|
|
1737
1791
|
className: "flex items-center justify-between",
|
|
1738
|
-
children: [/* @__PURE__ */
|
|
1792
|
+
children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("p", {
|
|
1739
1793
|
className: "text-sm text-text-secondary",
|
|
1740
1794
|
children: [
|
|
1741
1795
|
n.length,
|
|
@@ -1746,7 +1800,7 @@ var ze = [
|
|
|
1746
1800
|
" ",
|
|
1747
1801
|
e
|
|
1748
1802
|
]
|
|
1749
|
-
}), h.length > 0 && /* @__PURE__ */
|
|
1803
|
+
}), h.length > 0 && /* @__PURE__ */ W("p", {
|
|
1750
1804
|
className: "text-xs text-text-secondary mt-0.5",
|
|
1751
1805
|
children: [
|
|
1752
1806
|
h.length,
|
|
@@ -1758,44 +1812,44 @@ var ze = [
|
|
|
1758
1812
|
" ",
|
|
1759
1813
|
m("devportal.revokedExpired", "revoked/expired")
|
|
1760
1814
|
]
|
|
1761
|
-
})] }), /* @__PURE__ */
|
|
1815
|
+
})] }), /* @__PURE__ */ W("button", {
|
|
1762
1816
|
onClick: i,
|
|
1763
1817
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
1764
|
-
children: [/* @__PURE__ */
|
|
1818
|
+
children: [/* @__PURE__ */ U(z, { size: 16 }), m("devportal.grantDelegation", "Grant Delegation")]
|
|
1765
1819
|
})]
|
|
1766
1820
|
}),
|
|
1767
|
-
h.length > 0 && /* @__PURE__ */
|
|
1821
|
+
h.length > 0 && /* @__PURE__ */ U("div", {
|
|
1768
1822
|
className: "rounded-card border border-border-seam bg-bg-surface p-4",
|
|
1769
|
-
children: /* @__PURE__ */
|
|
1823
|
+
children: /* @__PURE__ */ W("div", {
|
|
1770
1824
|
className: "flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",
|
|
1771
|
-
children: [/* @__PURE__ */
|
|
1825
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1772
1826
|
className: "flex flex-wrap items-center gap-3",
|
|
1773
|
-
children: [/* @__PURE__ */
|
|
1827
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1774
1828
|
className: "flex items-center gap-2",
|
|
1775
|
-
children: [/* @__PURE__ */
|
|
1829
|
+
children: [/* @__PURE__ */ U(E, {
|
|
1776
1830
|
checked: d,
|
|
1777
1831
|
indeterminate: f,
|
|
1778
1832
|
onChange: c,
|
|
1779
1833
|
ariaLabel: m("devportal.selectAllActiveDelegations", "Select all active app delegations")
|
|
1780
|
-
}), /* @__PURE__ */
|
|
1834
|
+
}), /* @__PURE__ */ U("span", {
|
|
1781
1835
|
className: "text-sm font-medium",
|
|
1782
1836
|
children: m("devportal.selectAllActive", "Select all active")
|
|
1783
1837
|
})]
|
|
1784
|
-
}), o.size > 0 && /* @__PURE__ */
|
|
1838
|
+
}), o.size > 0 && /* @__PURE__ */ U("button", {
|
|
1785
1839
|
onClick: l,
|
|
1786
1840
|
className: "text-sm text-text-secondary hover:text-text-primary",
|
|
1787
1841
|
children: m("devportal.clearSelection", "Clear selection")
|
|
1788
1842
|
})]
|
|
1789
|
-
}), /* @__PURE__ */
|
|
1843
|
+
}), /* @__PURE__ */ W("div", {
|
|
1790
1844
|
className: "flex flex-wrap items-center gap-2",
|
|
1791
|
-
children: [/* @__PURE__ */
|
|
1845
|
+
children: [/* @__PURE__ */ W("span", {
|
|
1792
1846
|
className: "rounded-full bg-bg-sunken px-3 py-1 text-sm font-medium text-text-secondary",
|
|
1793
1847
|
children: [
|
|
1794
1848
|
o.size,
|
|
1795
1849
|
" ",
|
|
1796
1850
|
m("devportal.selected", "selected")
|
|
1797
1851
|
]
|
|
1798
|
-
}), /* @__PURE__ */
|
|
1852
|
+
}), /* @__PURE__ */ W("button", {
|
|
1799
1853
|
onClick: u,
|
|
1800
1854
|
disabled: o.size === 0,
|
|
1801
1855
|
className: "rounded-md border border-status-error-bg px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -1804,33 +1858,33 @@ var ze = [
|
|
|
1804
1858
|
})]
|
|
1805
1859
|
})
|
|
1806
1860
|
}),
|
|
1807
|
-
n.length > 0 ? /* @__PURE__ */
|
|
1861
|
+
n.length > 0 ? /* @__PURE__ */ U("div", {
|
|
1808
1862
|
className: "space-y-4",
|
|
1809
|
-
children: n.map((e) => /* @__PURE__ */
|
|
1863
|
+
children: n.map((e) => /* @__PURE__ */ W("div", {
|
|
1810
1864
|
className: "rounded-card border border-border-seam bg-bg-surface p-4 space-y-4 shadow-[var(--shadow-pop)]",
|
|
1811
1865
|
children: [
|
|
1812
|
-
/* @__PURE__ */
|
|
1866
|
+
/* @__PURE__ */ W("div", {
|
|
1813
1867
|
className: "flex items-start justify-between",
|
|
1814
|
-
children: [/* @__PURE__ */
|
|
1868
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1815
1869
|
className: "flex items-start gap-3",
|
|
1816
|
-
children: [e.status === "ACTIVE" && /* @__PURE__ */
|
|
1870
|
+
children: [e.status === "ACTIVE" && /* @__PURE__ */ U("div", {
|
|
1817
1871
|
onClick: (e) => e.stopPropagation(),
|
|
1818
|
-
children: /* @__PURE__ */
|
|
1872
|
+
children: /* @__PURE__ */ U(E, {
|
|
1819
1873
|
checked: o.has(e.id),
|
|
1820
1874
|
onChange: (t) => s(e.id, t),
|
|
1821
1875
|
ariaLabel: `Select delegation ${e.id}`,
|
|
1822
1876
|
className: "mt-1"
|
|
1823
1877
|
})
|
|
1824
|
-
}), /* @__PURE__ */
|
|
1878
|
+
}), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("div", {
|
|
1825
1879
|
className: "flex items-center gap-2",
|
|
1826
|
-
children: [/* @__PURE__ */
|
|
1880
|
+
children: [/* @__PURE__ */ W("h3", {
|
|
1827
1881
|
className: "font-medium",
|
|
1828
1882
|
children: ["Delegation #", e.id.slice(0, 8)]
|
|
1829
|
-
}), /* @__PURE__ */
|
|
1830
|
-
className: t("rounded-full px-2 py-0.5 text-xs font-medium",
|
|
1883
|
+
}), /* @__PURE__ */ U("span", {
|
|
1884
|
+
className: t("rounded-full px-2 py-0.5 text-xs font-medium", Ke[e.status]),
|
|
1831
1885
|
children: e.status
|
|
1832
1886
|
})]
|
|
1833
|
-
}), /* @__PURE__ */
|
|
1887
|
+
}), /* @__PURE__ */ W("p", {
|
|
1834
1888
|
className: "text-sm text-text-secondary mt-1",
|
|
1835
1889
|
children: [
|
|
1836
1890
|
m("devportal.granted", "Granted"),
|
|
@@ -1842,55 +1896,55 @@ var ze = [
|
|
|
1842
1896
|
e.grantedBy === e.userId ? m("devportal.you", "you") : e.grantedBy.slice(0, 8)
|
|
1843
1897
|
]
|
|
1844
1898
|
})] })]
|
|
1845
|
-
}), e.status === "ACTIVE" && /* @__PURE__ */
|
|
1899
|
+
}), e.status === "ACTIVE" && /* @__PURE__ */ W("button", {
|
|
1846
1900
|
onClick: () => a(e.id),
|
|
1847
1901
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
|
|
1848
|
-
children: [/* @__PURE__ */
|
|
1902
|
+
children: [/* @__PURE__ */ U(Ie, { size: 14 }), m("devportal.revoke", "Revoke")]
|
|
1849
1903
|
})]
|
|
1850
1904
|
}),
|
|
1851
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1852
1906
|
className: "text-xs text-text-secondary mb-2",
|
|
1853
1907
|
children: m("devportal.grantedScopes", "Granted Scopes")
|
|
1854
|
-
}), /* @__PURE__ */
|
|
1908
|
+
}), /* @__PURE__ */ U("div", {
|
|
1855
1909
|
className: "flex flex-wrap gap-2",
|
|
1856
|
-
children: e.scopes.map((e) => /* @__PURE__ */
|
|
1910
|
+
children: e.scopes.map((e) => /* @__PURE__ */ U("span", {
|
|
1857
1911
|
className: "rounded-full bg-status-success-bg-subtle px-2 py-0.5 text-xs text-status-success-text",
|
|
1858
1912
|
children: e
|
|
1859
1913
|
}, e))
|
|
1860
1914
|
})] }),
|
|
1861
|
-
e.workspaceIds.length > 0 && /* @__PURE__ */
|
|
1915
|
+
e.workspaceIds.length > 0 && /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("p", {
|
|
1862
1916
|
className: "text-xs text-text-secondary mb-2",
|
|
1863
1917
|
children: m("devportal.workspaceScope", "Workspace Scope")
|
|
1864
|
-
}), /* @__PURE__ */
|
|
1918
|
+
}), /* @__PURE__ */ U("div", {
|
|
1865
1919
|
className: "flex flex-wrap gap-2",
|
|
1866
|
-
children: e.workspaceIds.map((e) => /* @__PURE__ */
|
|
1920
|
+
children: e.workspaceIds.map((e) => /* @__PURE__ */ U("code", {
|
|
1867
1921
|
className: "rounded bg-bg-sunken px-2 py-0.5 text-xs",
|
|
1868
1922
|
children: e
|
|
1869
1923
|
}, e))
|
|
1870
1924
|
})] }),
|
|
1871
|
-
/* @__PURE__ */
|
|
1925
|
+
/* @__PURE__ */ W("div", {
|
|
1872
1926
|
className: "flex items-center gap-4 text-xs text-text-secondary",
|
|
1873
1927
|
children: [
|
|
1874
|
-
e.expiresAt && /* @__PURE__ */
|
|
1928
|
+
e.expiresAt && /* @__PURE__ */ W("span", {
|
|
1875
1929
|
className: "flex items-center gap-1",
|
|
1876
1930
|
children: [
|
|
1877
|
-
/* @__PURE__ */
|
|
1931
|
+
/* @__PURE__ */ U(ge, { size: 12 }),
|
|
1878
1932
|
m("devportal.expires", "Expires"),
|
|
1879
1933
|
" ",
|
|
1880
1934
|
new Date(e.expiresAt).toLocaleDateString()
|
|
1881
1935
|
]
|
|
1882
1936
|
}),
|
|
1883
|
-
!e.expiresAt && e.status === "ACTIVE" && /* @__PURE__ */
|
|
1937
|
+
!e.expiresAt && e.status === "ACTIVE" && /* @__PURE__ */ W("span", {
|
|
1884
1938
|
className: "flex items-center gap-1",
|
|
1885
|
-
children: [/* @__PURE__ */
|
|
1939
|
+
children: [/* @__PURE__ */ U(me, {
|
|
1886
1940
|
size: 12,
|
|
1887
1941
|
className: "text-status-success-text"
|
|
1888
1942
|
}), m("devportal.noExpiration", "No expiration")]
|
|
1889
1943
|
}),
|
|
1890
|
-
e.revokedAt && /* @__PURE__ */
|
|
1944
|
+
e.revokedAt && /* @__PURE__ */ W("span", {
|
|
1891
1945
|
className: "flex items-center gap-1",
|
|
1892
1946
|
children: [
|
|
1893
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ U(Ie, {
|
|
1894
1948
|
size: 12,
|
|
1895
1949
|
className: "text-status-error-text"
|
|
1896
1950
|
}),
|
|
@@ -1903,53 +1957,53 @@ var ze = [
|
|
|
1903
1957
|
})
|
|
1904
1958
|
]
|
|
1905
1959
|
}, e.id))
|
|
1906
|
-
}) : /* @__PURE__ */
|
|
1960
|
+
}) : /* @__PURE__ */ U(r, {
|
|
1907
1961
|
illustration: "empty-people",
|
|
1908
|
-
icon: /* @__PURE__ */
|
|
1962
|
+
icon: /* @__PURE__ */ U(Me, { size: 32 }),
|
|
1909
1963
|
title: m("devportal.noDelegations", "No delegations"),
|
|
1910
1964
|
description: m("devportal.noDelegationsDescription", "Grant a delegation to allow this app to act on your behalf"),
|
|
1911
|
-
action: /* @__PURE__ */
|
|
1965
|
+
action: /* @__PURE__ */ W("button", {
|
|
1912
1966
|
onClick: i,
|
|
1913
1967
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
1914
|
-
children: [/* @__PURE__ */
|
|
1968
|
+
children: [/* @__PURE__ */ U(z, { size: 16 }), m("devportal.grantDelegation", "Grant Delegation")]
|
|
1915
1969
|
})
|
|
1916
1970
|
})
|
|
1917
1971
|
]
|
|
1918
1972
|
});
|
|
1919
|
-
},
|
|
1920
|
-
let { t } =
|
|
1973
|
+
}, st = ({ analytics: e }) => {
|
|
1974
|
+
let { t } = P(), n = (e, n) => {
|
|
1921
1975
|
let r = t(e);
|
|
1922
1976
|
return r === e ? n : r;
|
|
1923
1977
|
}, i = e[0], a = e[1], o = (e, t) => t ? (e - t) / t * 100 : 0;
|
|
1924
|
-
return /* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ W("div", {
|
|
1925
1979
|
className: "space-y-6",
|
|
1926
|
-
children: [/* @__PURE__ */
|
|
1980
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1927
1981
|
className: "grid gap-4 sm:grid-cols-4",
|
|
1928
1982
|
children: [
|
|
1929
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ U(Z, {
|
|
1930
1984
|
label: n("devportal.activeUsers", "Active Users"),
|
|
1931
1985
|
value: i?.activeUsers.toLocaleString() || "0",
|
|
1932
1986
|
trend: a ? o(i.activeUsers, a.activeUsers) : void 0
|
|
1933
1987
|
}),
|
|
1934
|
-
/* @__PURE__ */
|
|
1988
|
+
/* @__PURE__ */ U(Z, {
|
|
1935
1989
|
label: n("devportal.apiCalls", "API Calls"),
|
|
1936
1990
|
value: i ? `${(i.apiCalls / 1e3).toFixed(1)}K` : "0",
|
|
1937
1991
|
trend: a ? o(i.apiCalls, a.apiCalls) : void 0
|
|
1938
1992
|
}),
|
|
1939
|
-
/* @__PURE__ */
|
|
1993
|
+
/* @__PURE__ */ U(Z, {
|
|
1940
1994
|
label: n("devportal.avgResponseTime", "Avg Response Time"),
|
|
1941
1995
|
value: i?.avgResponseTime ? `${i.avgResponseTime}ms` : n("devportal.notAvailable", "N/A"),
|
|
1942
1996
|
trend: a && i?.avgResponseTime ? -o(i.avgResponseTime, a.avgResponseTime || 1) : void 0
|
|
1943
1997
|
}),
|
|
1944
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ U(Z, {
|
|
1945
1999
|
label: n("devportal.errorRate", "Error Rate"),
|
|
1946
2000
|
value: i && i.apiCalls > 0 ? `${(i.errors / i.apiCalls * 100).toFixed(2)}%` : "0%",
|
|
1947
2001
|
trend: a && i && i.apiCalls > 0 && a.apiCalls > 0 ? -o(i.errors / i.apiCalls, a.errors / a.apiCalls) : void 0
|
|
1948
2002
|
})
|
|
1949
2003
|
]
|
|
1950
|
-
}), /* @__PURE__ */
|
|
2004
|
+
}), /* @__PURE__ */ U(S, {
|
|
1951
2005
|
title: n("devportal.dailyBreakdown", "Daily Breakdown"),
|
|
1952
|
-
children: e.length > 0 ? /* @__PURE__ */
|
|
2006
|
+
children: e.length > 0 ? /* @__PURE__ */ U(O, {
|
|
1953
2007
|
data: e,
|
|
1954
2008
|
keyField: "id",
|
|
1955
2009
|
columns: [
|
|
@@ -1989,19 +2043,19 @@ var ze = [
|
|
|
1989
2043
|
render: (e) => e.sessions.toLocaleString()
|
|
1990
2044
|
}
|
|
1991
2045
|
]
|
|
1992
|
-
}) : /* @__PURE__ */
|
|
2046
|
+
}) : /* @__PURE__ */ U(r, {
|
|
1993
2047
|
illustration: "empty-data",
|
|
1994
|
-
icon: /* @__PURE__ */
|
|
2048
|
+
icon: /* @__PURE__ */ U(pe, { size: 32 }),
|
|
1995
2049
|
title: n("devportal.noAnalyticsData", "No analytics data"),
|
|
1996
2050
|
description: n("devportal.noAnalyticsDataDescription", "Analytics data will appear here once the application starts receiving traffic.")
|
|
1997
2051
|
})
|
|
1998
2052
|
})]
|
|
1999
2053
|
});
|
|
2000
|
-
},
|
|
2001
|
-
let { apiGatewayUrl: n, workspacesGatewayUrl: r, authToken: i } = e(), { t: a } =
|
|
2054
|
+
}, q = "# Sample query — replace with your own\n# Note: introspection is disabled on this gateway for security.\n# Use a real query from your app's API schema instead.\nquery GetCurrentUser {\n currentUser {\n id\n email\n }\n}", ct = ({ app: t }) => {
|
|
2055
|
+
let { apiGatewayUrl: n, workspacesGatewayUrl: r, authToken: i } = e(), { t: a } = P(), o = (e, t) => {
|
|
2002
2056
|
let n = a(e);
|
|
2003
2057
|
return n === e ? t : n;
|
|
2004
|
-
}, [s, c] =
|
|
2058
|
+
}, [s, c] = N(q), [l, u] = N("{}"), [d, f] = N(""), [p, m] = N(!1), [h, g] = N(`${n || "https://gw-global.local.burdenoff.com"}/global/graphql`), [_, v] = N(i || ""), [y, b] = N(!1), x = j(async () => {
|
|
2005
2059
|
m(!0), f("");
|
|
2006
2060
|
try {
|
|
2007
2061
|
let e = {};
|
|
@@ -2035,21 +2089,21 @@ var ze = [
|
|
|
2035
2089
|
]), S = j(() => {
|
|
2036
2090
|
i && v(i), b(!0);
|
|
2037
2091
|
}, [i]);
|
|
2038
|
-
return /* @__PURE__ */
|
|
2092
|
+
return /* @__PURE__ */ W("div", {
|
|
2039
2093
|
className: "space-y-4",
|
|
2040
2094
|
children: [
|
|
2041
|
-
/* @__PURE__ */
|
|
2095
|
+
/* @__PURE__ */ W("div", {
|
|
2042
2096
|
className: "flex items-center justify-between",
|
|
2043
|
-
children: [/* @__PURE__ */
|
|
2097
|
+
children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("h3", {
|
|
2044
2098
|
className: "text-lg font-semibold",
|
|
2045
2099
|
children: o("devportal.apiPlayground", "API Playground")
|
|
2046
|
-
}), /* @__PURE__ */
|
|
2100
|
+
}), /* @__PURE__ */ W("p", {
|
|
2047
2101
|
className: "text-sm text-text-secondary",
|
|
2048
2102
|
children: [
|
|
2049
2103
|
o("devportal.apiPlaygroundDescription", "Test GraphQL APIs in the context of"),
|
|
2050
2104
|
" ",
|
|
2051
|
-
/* @__PURE__ */
|
|
2052
|
-
t.appId && /* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ U("strong", { children: t.name }),
|
|
2106
|
+
t.appId && /* @__PURE__ */ W("span", {
|
|
2053
2107
|
className: "ml-1 text-xs text-text-secondary",
|
|
2054
2108
|
children: [
|
|
2055
2109
|
"(OAuth App: ",
|
|
@@ -2058,39 +2112,39 @@ var ze = [
|
|
|
2058
2112
|
]
|
|
2059
2113
|
})
|
|
2060
2114
|
]
|
|
2061
|
-
})] }), /* @__PURE__ */
|
|
2115
|
+
})] }), /* @__PURE__ */ W("button", {
|
|
2062
2116
|
onClick: S,
|
|
2063
2117
|
className: "flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm font-medium hover:bg-accent transition-colors",
|
|
2064
|
-
children: [/* @__PURE__ */
|
|
2118
|
+
children: [/* @__PURE__ */ U(Se, { size: 14 }), o("devportal.autoFillCredentials", "Auto-fill Credentials")]
|
|
2065
2119
|
})]
|
|
2066
2120
|
}),
|
|
2067
|
-
y && /* @__PURE__ */
|
|
2121
|
+
y && /* @__PURE__ */ W("div", {
|
|
2068
2122
|
className: "rounded-lg border bg-status-info-bg-subtle p-4 text-sm space-y-2",
|
|
2069
2123
|
children: [
|
|
2070
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ U("p", {
|
|
2071
2125
|
className: "font-medium text-status-info-text",
|
|
2072
2126
|
children: o("devportal.authenticationGuide", "Authentication Guide")
|
|
2073
2127
|
}),
|
|
2074
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ W("p", {
|
|
2075
2129
|
className: "text-status-info-text",
|
|
2076
2130
|
children: [
|
|
2077
2131
|
o("devportal.authenticationGuideText", "Your current session token has been filled in. For app-level authentication (Client Credentials flow), use the"),
|
|
2078
2132
|
" ",
|
|
2079
|
-
/* @__PURE__ */
|
|
2133
|
+
/* @__PURE__ */ U("strong", { children: o("devportal.oauthClientsTab", "OAuth Clients") }),
|
|
2080
2134
|
" ",
|
|
2081
2135
|
o("devportal.authenticationGuideText2", "tab to get the app's clientId and clientSecret, then call:")
|
|
2082
2136
|
]
|
|
2083
2137
|
}),
|
|
2084
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ U("pre", {
|
|
2085
2139
|
className: "rounded bg-status-info-bg-subtle p-2 text-xs overflow-x-auto text-status-info-text",
|
|
2086
2140
|
children: "mutation {\n authenticateApp(input: {\n clientId: \"<your-client-id>\"\n clientSecret: \"<your-client-secret>\"\n scopes: []\n }) {\n accessToken\n tokenType\n expiresIn\n }\n}"
|
|
2087
2141
|
}),
|
|
2088
|
-
/* @__PURE__ */
|
|
2142
|
+
/* @__PURE__ */ W("p", {
|
|
2089
2143
|
className: "text-status-info-text",
|
|
2090
2144
|
children: [
|
|
2091
2145
|
o("devportal.useReturnedAccessToken", "Use the returned"),
|
|
2092
2146
|
" ",
|
|
2093
|
-
/* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ U("code", {
|
|
2094
2148
|
className: "bg-status-info-bg-subtle px-1 rounded",
|
|
2095
2149
|
children: "accessToken"
|
|
2096
2150
|
}),
|
|
@@ -2098,132 +2152,132 @@ var ze = [
|
|
|
2098
2152
|
o("devportal.asBearerToken", "as the Bearer token below.")
|
|
2099
2153
|
]
|
|
2100
2154
|
}),
|
|
2101
|
-
/* @__PURE__ */
|
|
2155
|
+
/* @__PURE__ */ U("button", {
|
|
2102
2156
|
onClick: () => b(!1),
|
|
2103
2157
|
className: "text-xs text-accent-blue hover:underline",
|
|
2104
2158
|
children: o("devportal.dismiss", "Dismiss")
|
|
2105
2159
|
})
|
|
2106
2160
|
]
|
|
2107
2161
|
}),
|
|
2108
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("label", {
|
|
2109
2163
|
className: "block text-sm font-medium mb-1",
|
|
2110
2164
|
children: o("devportal.gatewayEndpoint", "Gateway Endpoint")
|
|
2111
|
-
}), /* @__PURE__ */
|
|
2165
|
+
}), /* @__PURE__ */ W("div", {
|
|
2112
2166
|
className: "flex gap-2",
|
|
2113
|
-
children: [/* @__PURE__ */
|
|
2167
|
+
children: [/* @__PURE__ */ U("input", {
|
|
2114
2168
|
type: "text",
|
|
2115
2169
|
value: h,
|
|
2116
2170
|
onChange: (e) => g(e.target.value),
|
|
2117
2171
|
className: "flex-1 rounded-md border px-3 py-2 text-sm font-mono bg-bg-surface"
|
|
2118
|
-
}), /* @__PURE__ */
|
|
2172
|
+
}), /* @__PURE__ */ W("select", {
|
|
2119
2173
|
onChange: (e) => g(e.target.value),
|
|
2120
2174
|
className: "rounded-md border px-3 py-2 text-sm bg-bg-surface",
|
|
2121
2175
|
value: h,
|
|
2122
|
-
children: [/* @__PURE__ */
|
|
2176
|
+
children: [/* @__PURE__ */ U("option", {
|
|
2123
2177
|
value: `${n || "https://gw-global.local.burdenoff.com"}/global/graphql`,
|
|
2124
2178
|
children: o("devportal.globalGateway", "Global Gateway")
|
|
2125
|
-
}), /* @__PURE__ */
|
|
2179
|
+
}), /* @__PURE__ */ U("option", {
|
|
2126
2180
|
value: `${r || "https://gw-wspace.local.burdenoff.com"}/workspaces/graphql`,
|
|
2127
2181
|
children: o("devportal.workspaceGateway", "Workspace Gateway")
|
|
2128
2182
|
})]
|
|
2129
2183
|
})]
|
|
2130
2184
|
})] }),
|
|
2131
|
-
/* @__PURE__ */
|
|
2185
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("label", {
|
|
2132
2186
|
className: "block text-sm font-medium mb-1",
|
|
2133
2187
|
children: o("devportal.bearerToken", "Bearer Token")
|
|
2134
|
-
}), /* @__PURE__ */
|
|
2188
|
+
}), /* @__PURE__ */ U("input", {
|
|
2135
2189
|
type: "password",
|
|
2136
2190
|
value: _,
|
|
2137
2191
|
onChange: (e) => v(e.target.value),
|
|
2138
2192
|
placeholder: o("devportal.pasteAccessToken", "Paste access token here..."),
|
|
2139
2193
|
className: "w-full rounded-md border px-3 py-2 text-sm font-mono bg-bg-surface"
|
|
2140
2194
|
})] }),
|
|
2141
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ W("div", {
|
|
2142
2196
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-4",
|
|
2143
|
-
children: [/* @__PURE__ */
|
|
2197
|
+
children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("label", {
|
|
2144
2198
|
className: "block text-sm font-medium mb-1",
|
|
2145
2199
|
children: o("devportal.query", "Query")
|
|
2146
|
-
}), /* @__PURE__ */
|
|
2200
|
+
}), /* @__PURE__ */ U("textarea", {
|
|
2147
2201
|
value: s,
|
|
2148
2202
|
onChange: (e) => c(e.target.value),
|
|
2149
2203
|
className: "w-full h-64 rounded-md border px-3 py-2 text-sm font-mono bg-bg-surface resize-y",
|
|
2150
2204
|
spellCheck: !1
|
|
2151
|
-
})] }), /* @__PURE__ */
|
|
2205
|
+
})] }), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("label", {
|
|
2152
2206
|
className: "block text-sm font-medium mb-1",
|
|
2153
2207
|
children: o("devportal.variablesJson", "Variables (JSON)")
|
|
2154
|
-
}), /* @__PURE__ */
|
|
2208
|
+
}), /* @__PURE__ */ U("textarea", {
|
|
2155
2209
|
value: l,
|
|
2156
2210
|
onChange: (e) => u(e.target.value),
|
|
2157
2211
|
className: "w-full h-64 rounded-md border px-3 py-2 text-sm font-mono bg-bg-surface resize-y",
|
|
2158
2212
|
spellCheck: !1
|
|
2159
2213
|
})] })]
|
|
2160
2214
|
}),
|
|
2161
|
-
/* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ W("button", {
|
|
2162
2216
|
onClick: x,
|
|
2163
2217
|
disabled: p,
|
|
2164
2218
|
className: "flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50",
|
|
2165
|
-
children: [p ? /* @__PURE__ */
|
|
2219
|
+
children: [p ? /* @__PURE__ */ U(R, {
|
|
2166
2220
|
size: 16,
|
|
2167
2221
|
className: "animate-spin"
|
|
2168
|
-
}) : /* @__PURE__ */
|
|
2222
|
+
}) : /* @__PURE__ */ U(L, { size: 16 }), p ? o("devportal.executing", "Executing...") : o("devportal.executeQuery", "Execute Query")]
|
|
2169
2223
|
}),
|
|
2170
|
-
d && /* @__PURE__ */
|
|
2224
|
+
d && /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("label", {
|
|
2171
2225
|
className: "block text-sm font-medium mb-1",
|
|
2172
2226
|
children: o("devportal.response", "Response")
|
|
2173
|
-
}), /* @__PURE__ */
|
|
2227
|
+
}), /* @__PURE__ */ U("pre", {
|
|
2174
2228
|
className: "w-full max-h-96 overflow-auto rounded-md border bg-bg-sunken p-4 text-xs font-mono",
|
|
2175
2229
|
children: d
|
|
2176
2230
|
})] })
|
|
2177
2231
|
]
|
|
2178
2232
|
});
|
|
2179
|
-
},
|
|
2180
|
-
let d =
|
|
2233
|
+
}, J = ({ label: e, value: n, onChange: r, hint: i, accept: a = "image/png,image/jpeg,image/webp,image/gif,image/svg+xml", aspectClass: o = "aspect-square", upload: s, uploading: c, progress: l, error: u }) => {
|
|
2234
|
+
let d = ue(null), [f, p] = N(!1), m = ue(n);
|
|
2181
2235
|
m.current !== n && (m.current = n, f && p(!1));
|
|
2182
2236
|
let h = j(async (e) => {
|
|
2183
2237
|
try {
|
|
2184
2238
|
r((await s(e)).downloadUrl);
|
|
2185
2239
|
} catch {}
|
|
2186
2240
|
}, [s, r]);
|
|
2187
|
-
return /* @__PURE__ */
|
|
2241
|
+
return /* @__PURE__ */ W("div", {
|
|
2188
2242
|
className: "space-y-1.5",
|
|
2189
2243
|
children: [
|
|
2190
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ U("label", {
|
|
2191
2245
|
className: "text-sm font-medium",
|
|
2192
2246
|
children: e
|
|
2193
2247
|
}),
|
|
2194
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ W("div", {
|
|
2195
2249
|
className: "flex gap-3 items-start",
|
|
2196
|
-
children: [/* @__PURE__ */
|
|
2250
|
+
children: [/* @__PURE__ */ W("div", {
|
|
2197
2251
|
className: t("relative shrink-0 w-20 rounded-lg border border-border-subtle bg-bg-sunken overflow-hidden flex items-center justify-center", o),
|
|
2198
|
-
children: [n && !f ? /* @__PURE__ */
|
|
2252
|
+
children: [n && !f ? /* @__PURE__ */ U("img", {
|
|
2199
2253
|
src: n,
|
|
2200
2254
|
alt: e,
|
|
2201
2255
|
className: "w-full h-full object-cover",
|
|
2202
2256
|
onError: () => p(!0)
|
|
2203
|
-
}) : /* @__PURE__ */
|
|
2257
|
+
}) : /* @__PURE__ */ U(V, {
|
|
2204
2258
|
size: 18,
|
|
2205
2259
|
className: "text-text-secondary opacity-40"
|
|
2206
|
-
}), c && /* @__PURE__ */
|
|
2260
|
+
}), c && /* @__PURE__ */ W("div", {
|
|
2207
2261
|
className: "absolute inset-0 bg-bg-overlay flex flex-col items-center justify-center gap-1",
|
|
2208
|
-
children: [/* @__PURE__ */
|
|
2262
|
+
children: [/* @__PURE__ */ U(R, {
|
|
2209
2263
|
size: 14,
|
|
2210
2264
|
className: "animate-spin text-white"
|
|
2211
|
-
}), /* @__PURE__ */
|
|
2265
|
+
}), /* @__PURE__ */ W("span", {
|
|
2212
2266
|
className: "text-white text-xs",
|
|
2213
2267
|
children: [l, "%"]
|
|
2214
2268
|
})]
|
|
2215
2269
|
})]
|
|
2216
|
-
}), /* @__PURE__ */
|
|
2270
|
+
}), /* @__PURE__ */ W("div", {
|
|
2217
2271
|
className: "flex-1 space-y-1.5",
|
|
2218
2272
|
children: [
|
|
2219
|
-
/* @__PURE__ */
|
|
2273
|
+
/* @__PURE__ */ U("input", {
|
|
2220
2274
|
type: "url",
|
|
2221
2275
|
value: n,
|
|
2222
2276
|
onChange: (e) => r(e.target.value),
|
|
2223
2277
|
placeholder: "https://...",
|
|
2224
2278
|
className: "w-full rounded-md border border-border-subtle bg-bg-input px-3 py-1.5 text-sm placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-primary/30"
|
|
2225
2279
|
}),
|
|
2226
|
-
/* @__PURE__ */
|
|
2280
|
+
/* @__PURE__ */ U("input", {
|
|
2227
2281
|
ref: d,
|
|
2228
2282
|
type: "file",
|
|
2229
2283
|
accept: a,
|
|
@@ -2233,28 +2287,28 @@ var ze = [
|
|
|
2233
2287
|
t && h(t), e.target.value = "";
|
|
2234
2288
|
}
|
|
2235
2289
|
}),
|
|
2236
|
-
/* @__PURE__ */
|
|
2290
|
+
/* @__PURE__ */ W("button", {
|
|
2237
2291
|
type: "button",
|
|
2238
2292
|
disabled: c,
|
|
2239
2293
|
onClick: () => d.current?.click(),
|
|
2240
2294
|
className: "inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium hover:bg-bg-sunken transition-colors disabled:opacity-50",
|
|
2241
|
-
children: [/* @__PURE__ */
|
|
2295
|
+
children: [/* @__PURE__ */ U(V, { size: 11 }), c ? `Uploading… ${l}%` : "Upload image"]
|
|
2242
2296
|
}),
|
|
2243
|
-
u && /* @__PURE__ */
|
|
2297
|
+
u && /* @__PURE__ */ U("p", {
|
|
2244
2298
|
className: "text-xs text-status-error-text",
|
|
2245
2299
|
children: u
|
|
2246
2300
|
})
|
|
2247
2301
|
]
|
|
2248
2302
|
})]
|
|
2249
2303
|
}),
|
|
2250
|
-
i && /* @__PURE__ */
|
|
2304
|
+
i && /* @__PURE__ */ U("p", {
|
|
2251
2305
|
className: "text-xs text-text-secondary",
|
|
2252
2306
|
children: i
|
|
2253
2307
|
})
|
|
2254
2308
|
]
|
|
2255
2309
|
});
|
|
2256
|
-
},
|
|
2257
|
-
let s =
|
|
2310
|
+
}, Y = ({ urls: e, onChange: n, upload: r, uploading: i, progress: a, error: o }) => {
|
|
2311
|
+
let s = ue(null), [c, l] = N(""), u = j(async (t) => {
|
|
2258
2312
|
try {
|
|
2259
2313
|
let i = await r(t);
|
|
2260
2314
|
n([...e, i.downloadUrl]);
|
|
@@ -2269,53 +2323,53 @@ var ze = [
|
|
|
2269
2323
|
}, f = (t) => {
|
|
2270
2324
|
n(e.filter((e, n) => n !== t));
|
|
2271
2325
|
};
|
|
2272
|
-
return /* @__PURE__ */
|
|
2326
|
+
return /* @__PURE__ */ W("div", {
|
|
2273
2327
|
className: "space-y-2",
|
|
2274
2328
|
children: [
|
|
2275
|
-
/* @__PURE__ */
|
|
2329
|
+
/* @__PURE__ */ W("div", {
|
|
2276
2330
|
className: "flex flex-col gap-0.5",
|
|
2277
|
-
children: [/* @__PURE__ */
|
|
2331
|
+
children: [/* @__PURE__ */ U("label", {
|
|
2278
2332
|
className: "text-sm font-medium",
|
|
2279
2333
|
children: "Screenshots"
|
|
2280
|
-
}), /* @__PURE__ */
|
|
2334
|
+
}), /* @__PURE__ */ U("p", {
|
|
2281
2335
|
className: "text-xs text-text-muted",
|
|
2282
2336
|
children: "Shown in the horizontal preview strip below the hero — wide landscape proportions work best (16:9)"
|
|
2283
2337
|
})]
|
|
2284
2338
|
}),
|
|
2285
|
-
/* @__PURE__ */
|
|
2339
|
+
/* @__PURE__ */ W("div", {
|
|
2286
2340
|
className: "flex flex-wrap gap-3",
|
|
2287
|
-
children: [e.map((e, t) => /* @__PURE__ */
|
|
2341
|
+
children: [e.map((e, t) => /* @__PURE__ */ W("div", {
|
|
2288
2342
|
className: "relative group w-36 aspect-video rounded-lg border border-border-subtle overflow-hidden bg-bg-sunken",
|
|
2289
|
-
children: [/* @__PURE__ */
|
|
2343
|
+
children: [/* @__PURE__ */ U("img", {
|
|
2290
2344
|
src: e,
|
|
2291
2345
|
alt: `Screenshot ${t + 1}`,
|
|
2292
2346
|
className: "w-full h-full object-cover"
|
|
2293
|
-
}), /* @__PURE__ */
|
|
2347
|
+
}), /* @__PURE__ */ U("button", {
|
|
2294
2348
|
type: "button",
|
|
2295
2349
|
onClick: () => f(t),
|
|
2296
2350
|
className: "absolute top-1 right-1 rounded-full bg-bg-overlay text-white p-0.5 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
2297
|
-
children: /* @__PURE__ */
|
|
2351
|
+
children: /* @__PURE__ */ U(Fe, { size: 12 })
|
|
2298
2352
|
})]
|
|
2299
|
-
}, t)), /* @__PURE__ */
|
|
2353
|
+
}, t)), /* @__PURE__ */ U("button", {
|
|
2300
2354
|
type: "button",
|
|
2301
2355
|
disabled: i,
|
|
2302
2356
|
onClick: () => s.current?.click(),
|
|
2303
2357
|
className: t("w-36 aspect-video rounded-lg border-2 border-dashed border-border-subtle flex flex-col items-center justify-center gap-1.5 text-text-secondary hover:border-border-strong hover:bg-bg-sunken transition-colors disabled:opacity-50"),
|
|
2304
|
-
children: i ? /* @__PURE__ */
|
|
2358
|
+
children: i ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(R, {
|
|
2305
2359
|
size: 18,
|
|
2306
2360
|
className: "animate-spin text-primary"
|
|
2307
|
-
}), /* @__PURE__ */
|
|
2361
|
+
}), /* @__PURE__ */ W("span", {
|
|
2308
2362
|
className: "text-xs",
|
|
2309
2363
|
children: [a, "%"]
|
|
2310
|
-
})] }) : /* @__PURE__ */
|
|
2364
|
+
})] }) : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(V, { size: 18 }), /* @__PURE__ */ U("span", {
|
|
2311
2365
|
className: "text-xs",
|
|
2312
2366
|
children: "Add screenshot"
|
|
2313
2367
|
})] })
|
|
2314
2368
|
})]
|
|
2315
2369
|
}),
|
|
2316
|
-
/* @__PURE__ */
|
|
2370
|
+
/* @__PURE__ */ W("div", {
|
|
2317
2371
|
className: "flex gap-2",
|
|
2318
|
-
children: [/* @__PURE__ */
|
|
2372
|
+
children: [/* @__PURE__ */ U("input", {
|
|
2319
2373
|
type: "url",
|
|
2320
2374
|
value: c,
|
|
2321
2375
|
onChange: (e) => l(e.target.value),
|
|
@@ -2324,7 +2378,7 @@ var ze = [
|
|
|
2324
2378
|
},
|
|
2325
2379
|
placeholder: "https://... paste a screenshot URL",
|
|
2326
2380
|
className: "flex-1 rounded-md border border-border-subtle bg-bg-input px-3 py-1.5 text-sm placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-primary/30"
|
|
2327
|
-
}), /* @__PURE__ */
|
|
2381
|
+
}), /* @__PURE__ */ U("button", {
|
|
2328
2382
|
type: "button",
|
|
2329
2383
|
onClick: d,
|
|
2330
2384
|
disabled: !c.trim(),
|
|
@@ -2332,7 +2386,7 @@ var ze = [
|
|
|
2332
2386
|
children: "Add"
|
|
2333
2387
|
})]
|
|
2334
2388
|
}),
|
|
2335
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ U("input", {
|
|
2336
2390
|
ref: s,
|
|
2337
2391
|
type: "file",
|
|
2338
2392
|
accept: "image/png,image/jpeg,image/webp,image/gif",
|
|
@@ -2342,19 +2396,19 @@ var ze = [
|
|
|
2342
2396
|
t && u(t), e.target.value = "";
|
|
2343
2397
|
}
|
|
2344
2398
|
}),
|
|
2345
|
-
o && /* @__PURE__ */
|
|
2399
|
+
o && /* @__PURE__ */ U("p", {
|
|
2346
2400
|
className: "text-xs text-status-error-text",
|
|
2347
2401
|
children: o
|
|
2348
2402
|
})
|
|
2349
2403
|
]
|
|
2350
2404
|
});
|
|
2351
|
-
},
|
|
2405
|
+
}, lt = new Set(["workflow", "template"]), ut = [{
|
|
2352
2406
|
value: "FREE",
|
|
2353
2407
|
label: "Free"
|
|
2354
2408
|
}, {
|
|
2355
2409
|
value: "PAID",
|
|
2356
2410
|
label: "Paid"
|
|
2357
|
-
}],
|
|
2411
|
+
}], dt = {
|
|
2358
2412
|
NODE: [
|
|
2359
2413
|
{
|
|
2360
2414
|
value: "node",
|
|
@@ -2426,12 +2480,12 @@ var ze = [
|
|
|
2426
2480
|
label: "Plugin"
|
|
2427
2481
|
}
|
|
2428
2482
|
]
|
|
2429
|
-
},
|
|
2483
|
+
}, ft = {
|
|
2430
2484
|
NODE: "node",
|
|
2431
2485
|
WORKFLOW: "workflow",
|
|
2432
2486
|
APP: "app"
|
|
2433
2487
|
};
|
|
2434
|
-
function
|
|
2488
|
+
function X(e) {
|
|
2435
2489
|
let t = e.manifest ?? {}, n = t.identity ?? {}, r = (t.digital ?? {}).install ?? {}, i = t.compatibility ?? {}, a = Array.isArray(t.permissions) ? t.permissions : [], o = Array.isArray(e.screenshots) ? e.screenshots.join("\n") : "";
|
|
2436
2490
|
return {
|
|
2437
2491
|
iconUrl: e.iconUrl ?? "",
|
|
@@ -2446,7 +2500,7 @@ function ot(e) {
|
|
|
2446
2500
|
supportUrl: e.supportUrl ?? "",
|
|
2447
2501
|
privacyPolicyUrl: e.privacyPolicyUrl ?? "",
|
|
2448
2502
|
termsOfServiceUrl: e.termsOfServiceUrl ?? "",
|
|
2449
|
-
manifestItemType: typeof t.itemType == "string" ? t.itemType :
|
|
2503
|
+
manifestItemType: typeof t.itemType == "string" ? t.itemType : ft[e.appType] ?? "",
|
|
2450
2504
|
manifestDisplayName: typeof n.displayName == "string" ? n.displayName : e.name ?? "",
|
|
2451
2505
|
manifestVersion: typeof n.version == "string" ? n.version : "",
|
|
2452
2506
|
manifestInstallType: typeof r.type == "string" ? r.type : "zip",
|
|
@@ -2457,26 +2511,26 @@ function ot(e) {
|
|
|
2457
2511
|
manifestJsonContent: typeof t.jsonContent == "string" ? t.jsonContent : typeof t.content == "string" ? t.content : ""
|
|
2458
2512
|
};
|
|
2459
2513
|
}
|
|
2460
|
-
var
|
|
2461
|
-
let { workspacesGatewayUrl: c, authToken: l, workspaceId: u, getWorkspaceToken: d } = e(), { t: f } =
|
|
2514
|
+
var pt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i = !1, onNavigateToVersions: a, onNavigateToPricing: o, onNavigateToSubmission: s }) => {
|
|
2515
|
+
let { workspacesGatewayUrl: c, authToken: l, workspaceId: u, getWorkspaceToken: d } = e(), { t: f } = P(), p = (e, t) => {
|
|
2462
2516
|
let n = f(e);
|
|
2463
2517
|
return n === e ? t : n;
|
|
2464
|
-
}, [m, h] =
|
|
2518
|
+
}, [m, h] = N(() => X(t)), [g, _] = N(!1), [v, y] = N(null), x = ue(X(t)), C = ue(t);
|
|
2465
2519
|
C.current = t;
|
|
2466
|
-
let w = JSON.stringify(m) !== JSON.stringify(
|
|
2467
|
-
|
|
2468
|
-
let e =
|
|
2469
|
-
h(e),
|
|
2520
|
+
let w = JSON.stringify(m) !== JSON.stringify(x.current), [ee] = b();
|
|
2521
|
+
le(() => {
|
|
2522
|
+
let e = X(C.current);
|
|
2523
|
+
h(e), x.current = e, y(null);
|
|
2470
2524
|
}, [t.id]);
|
|
2471
|
-
let
|
|
2525
|
+
let T = (e, t) => {
|
|
2472
2526
|
h((n) => ({
|
|
2473
2527
|
...n,
|
|
2474
2528
|
[e]: t
|
|
2475
|
-
})),
|
|
2476
|
-
},
|
|
2477
|
-
_(!0),
|
|
2529
|
+
})), y(null);
|
|
2530
|
+
}, E = m.shortDescription.trim().length > 0 && m.privacyPolicyUrl.trim().length > 0 && m.termsOfServiceUrl.trim().length > 0, te = async () => {
|
|
2531
|
+
_(!0), y(null);
|
|
2478
2532
|
try {
|
|
2479
|
-
let e = m.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean), n = m.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), r =
|
|
2533
|
+
let e = m.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean), n = m.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), r = lt.has(m.manifestItemType), i = t.manifest ?? {}, a = {
|
|
2480
2534
|
manifestVersion: typeof i.manifestVersion == "string" ? i.manifestVersion : "1.0",
|
|
2481
2535
|
itemType: m.manifestItemType || void 0,
|
|
2482
2536
|
identity: {
|
|
@@ -2490,7 +2544,7 @@ var st = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2490
2544
|
permissions: n,
|
|
2491
2545
|
compatibility: { minPlatformVersion: m.manifestMinPlatformVersion }
|
|
2492
2546
|
};
|
|
2493
|
-
await
|
|
2547
|
+
await ee({ variables: {
|
|
2494
2548
|
id: t.id,
|
|
2495
2549
|
input: {
|
|
2496
2550
|
iconUrl: m.iconUrl || null,
|
|
@@ -2507,27 +2561,27 @@ var st = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2507
2561
|
termsOfServiceUrl: m.termsOfServiceUrl || null,
|
|
2508
2562
|
manifest: a
|
|
2509
2563
|
}
|
|
2510
|
-
} }),
|
|
2564
|
+
} }), D("success"), y("success"), x.current = m;
|
|
2511
2565
|
} catch {
|
|
2512
|
-
|
|
2566
|
+
D("error"), y("error");
|
|
2513
2567
|
} finally {
|
|
2514
2568
|
_(!1);
|
|
2515
2569
|
}
|
|
2516
|
-
}, { upload:
|
|
2517
|
-
return /* @__PURE__ */
|
|
2570
|
+
}, { upload: O, uploading: k, progress: ie, error: ae } = ce(c, l, u, d, "/DevPortal/Assets"), { upload: oe, uploading: se, progress: j, error: M } = ce(c, l, u, d, "/DevPortal/Assets"), { upload: fe, uploading: pe, progress: I, error: _e } = ce(c, l, u, d, "/DevPortal/Assets"), ve = lt.has(m.manifestItemType), ye = t.status === "SUBMITTED";
|
|
2571
|
+
return /* @__PURE__ */ W("div", {
|
|
2518
2572
|
className: "space-y-8 max-w-3xl",
|
|
2519
2573
|
children: [
|
|
2520
|
-
t.status === "PUBLISHED" ? /* @__PURE__ */
|
|
2574
|
+
t.status === "PUBLISHED" ? /* @__PURE__ */ W("div", {
|
|
2521
2575
|
className: "flex items-start gap-3 rounded-lg border border-success/30 bg-success/10 px-4 py-3",
|
|
2522
|
-
children: [/* @__PURE__ */
|
|
2576
|
+
children: [/* @__PURE__ */ U(me, {
|
|
2523
2577
|
size: 16,
|
|
2524
2578
|
className: "text-success mt-0.5 shrink-0"
|
|
2525
|
-
}), /* @__PURE__ */
|
|
2579
|
+
}), /* @__PURE__ */ W("div", {
|
|
2526
2580
|
className: "text-sm",
|
|
2527
|
-
children: [/* @__PURE__ */
|
|
2581
|
+
children: [/* @__PURE__ */ U("span", {
|
|
2528
2582
|
className: "font-medium text-success",
|
|
2529
2583
|
children: p("devportal.storeListing.published", "Published")
|
|
2530
|
-
}), t.publishedAt && /* @__PURE__ */
|
|
2584
|
+
}), t.publishedAt && /* @__PURE__ */ W("span", {
|
|
2531
2585
|
className: "text-text-secondary ml-2",
|
|
2532
2586
|
children: [
|
|
2533
2587
|
p("devportal.storeListing.since", "since"),
|
|
@@ -2536,251 +2590,251 @@ var st = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2536
2590
|
]
|
|
2537
2591
|
})]
|
|
2538
2592
|
})]
|
|
2539
|
-
}) :
|
|
2593
|
+
}) : ye ? /* @__PURE__ */ W("div", {
|
|
2540
2594
|
className: "flex items-center justify-between gap-3 rounded-lg border border-primary/30 bg-action-primary-bg/5 px-4 py-3",
|
|
2541
|
-
children: [/* @__PURE__ */
|
|
2595
|
+
children: [/* @__PURE__ */ W("div", {
|
|
2542
2596
|
className: "flex items-start gap-3",
|
|
2543
|
-
children: [/* @__PURE__ */
|
|
2597
|
+
children: [/* @__PURE__ */ U(ge, {
|
|
2544
2598
|
size: 16,
|
|
2545
2599
|
className: "text-primary mt-0.5 shrink-0"
|
|
2546
|
-
}), /* @__PURE__ */
|
|
2600
|
+
}), /* @__PURE__ */ W("div", {
|
|
2547
2601
|
className: "text-sm",
|
|
2548
2602
|
children: [
|
|
2549
|
-
/* @__PURE__ */
|
|
2603
|
+
/* @__PURE__ */ U("span", {
|
|
2550
2604
|
className: "font-medium text-primary",
|
|
2551
2605
|
children: p("devportal.storeListing.underReview", "Submitted for review")
|
|
2552
2606
|
}),
|
|
2553
|
-
t.submittedAt && /* @__PURE__ */
|
|
2607
|
+
t.submittedAt && /* @__PURE__ */ U("span", {
|
|
2554
2608
|
className: "text-text-secondary ml-2",
|
|
2555
2609
|
children: new Date(t.submittedAt).toLocaleDateString()
|
|
2556
2610
|
}),
|
|
2557
|
-
t.reviewStatus && /* @__PURE__ */
|
|
2611
|
+
t.reviewStatus && /* @__PURE__ */ W("span", {
|
|
2558
2612
|
className: "text-text-secondary ml-2",
|
|
2559
2613
|
children: ["· ", t.reviewStatus]
|
|
2560
2614
|
})
|
|
2561
2615
|
]
|
|
2562
2616
|
})]
|
|
2563
|
-
}), s && /* @__PURE__ */
|
|
2617
|
+
}), s && /* @__PURE__ */ W("button", {
|
|
2564
2618
|
type: "button",
|
|
2565
2619
|
onClick: s,
|
|
2566
2620
|
className: "shrink-0 text-xs text-primary hover:underline font-medium flex items-center gap-1",
|
|
2567
|
-
children: [p("devportal.viewStatus", "View Status"), /* @__PURE__ */
|
|
2621
|
+
children: [p("devportal.viewStatus", "View Status"), /* @__PURE__ */ U(L, { size: 12 })]
|
|
2568
2622
|
})]
|
|
2569
|
-
}) : /* @__PURE__ */
|
|
2623
|
+
}) : /* @__PURE__ */ W("div", {
|
|
2570
2624
|
className: "flex items-start gap-3 rounded-lg border border-warning/30 bg-warning/5 px-4 py-3",
|
|
2571
|
-
children: [/* @__PURE__ */
|
|
2625
|
+
children: [/* @__PURE__ */ U(de, {
|
|
2572
2626
|
size: 16,
|
|
2573
2627
|
className: "text-warning mt-0.5 shrink-0"
|
|
2574
|
-
}), /* @__PURE__ */
|
|
2628
|
+
}), /* @__PURE__ */ W("div", {
|
|
2575
2629
|
className: "text-sm",
|
|
2576
|
-
children: [/* @__PURE__ */
|
|
2630
|
+
children: [/* @__PURE__ */ U("span", {
|
|
2577
2631
|
className: "font-medium text-warning",
|
|
2578
2632
|
children: p("devportal.storeListing.draft", "Draft")
|
|
2579
|
-
}), /* @__PURE__ */
|
|
2633
|
+
}), /* @__PURE__ */ U("span", {
|
|
2580
2634
|
className: "text-text-secondary ml-2",
|
|
2581
2635
|
children: p("devportal.storeListing.draftHint", "Complete your store listing and submit for review to publish.")
|
|
2582
2636
|
})]
|
|
2583
2637
|
})]
|
|
2584
2638
|
}),
|
|
2585
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ U(S, {
|
|
2586
2640
|
title: p("devportal.package", "Package"),
|
|
2587
2641
|
description: p("devportal.packageDescription", "Technical configuration — how FluidGrid installs and runs this item"),
|
|
2588
|
-
children: /* @__PURE__ */
|
|
2642
|
+
children: /* @__PURE__ */ W("div", {
|
|
2589
2643
|
className: "space-y-6",
|
|
2590
2644
|
children: [
|
|
2591
|
-
/* @__PURE__ */
|
|
2645
|
+
/* @__PURE__ */ U(ne, {
|
|
2592
2646
|
label: p("devportal.storeItemType", "Item Type"),
|
|
2593
2647
|
value: m.manifestItemType,
|
|
2594
2648
|
onChange: (e) => {
|
|
2595
2649
|
let t = e.target.value;
|
|
2596
|
-
|
|
2650
|
+
T("manifestItemType", t), lt.has(t) ? T("manifestInstallType", "json") : m.manifestInstallType === "json" && T("manifestInstallType", "zip");
|
|
2597
2651
|
},
|
|
2598
|
-
options:
|
|
2652
|
+
options: dt[t.appType] ?? dt.APP,
|
|
2599
2653
|
placeholder: p("devportal.selectItemType", "Select item type…"),
|
|
2600
2654
|
hint: p("devportal.storeItemTypeHint", "Sub-category shown in the marketplace (e.g. Node vs Agent vs Parser)")
|
|
2601
2655
|
}),
|
|
2602
|
-
/* @__PURE__ */
|
|
2656
|
+
/* @__PURE__ */ U(A, {
|
|
2603
2657
|
label: p("devportal.manifestDisplayName", "Display Name"),
|
|
2604
2658
|
value: m.manifestDisplayName,
|
|
2605
|
-
onChange: (e) =>
|
|
2659
|
+
onChange: (e) => T("manifestDisplayName", e.target.value),
|
|
2606
2660
|
placeholder: "My Awesome Node"
|
|
2607
2661
|
}),
|
|
2608
|
-
|
|
2662
|
+
ve && t.appType !== "WORKFLOW" && /* @__PURE__ */ U(re, {
|
|
2609
2663
|
label: p("devportal.jsonContent", "Template Definition (JSON)"),
|
|
2610
2664
|
value: m.manifestJsonContent,
|
|
2611
|
-
onChange: (e) =>
|
|
2665
|
+
onChange: (e) => T("manifestJsonContent", e.target.value),
|
|
2612
2666
|
rows: 12,
|
|
2613
2667
|
placeholder: "{\n \"nodes\": [],\n \"edges\": []\n}",
|
|
2614
2668
|
hint: p("devportal.jsonContentHint", "Paste the full JSON definition. Stored and applied directly — no zip needed.")
|
|
2615
2669
|
}),
|
|
2616
|
-
|
|
2670
|
+
ve && t.appType === "WORKFLOW" && /* @__PURE__ */ W("p", {
|
|
2617
2671
|
className: "text-sm text-text-secondary rounded-md bg-bg-sunken px-3 py-2",
|
|
2618
2672
|
children: [
|
|
2619
2673
|
"The Workflow Definition (JSON) is set per version. Go to the",
|
|
2620
2674
|
" ",
|
|
2621
|
-
/* @__PURE__ */
|
|
2675
|
+
/* @__PURE__ */ U("strong", { children: "Versions" }),
|
|
2622
2676
|
" tab to add or update it."
|
|
2623
2677
|
]
|
|
2624
2678
|
})
|
|
2625
2679
|
]
|
|
2626
2680
|
})
|
|
2627
2681
|
}),
|
|
2628
|
-
/* @__PURE__ */
|
|
2682
|
+
/* @__PURE__ */ U(S, {
|
|
2629
2683
|
title: p("devportal.storePresentation", "Store Presence"),
|
|
2630
2684
|
description: p("devportal.storePresentationDescription", "Visual assets and copy shown to users browsing the marketplace"),
|
|
2631
|
-
children: /* @__PURE__ */
|
|
2685
|
+
children: /* @__PURE__ */ W("div", {
|
|
2632
2686
|
className: "space-y-5",
|
|
2633
2687
|
children: [
|
|
2634
|
-
/* @__PURE__ */
|
|
2688
|
+
/* @__PURE__ */ W("div", {
|
|
2635
2689
|
className: "grid gap-5 sm:grid-cols-2",
|
|
2636
|
-
children: [/* @__PURE__ */
|
|
2690
|
+
children: [/* @__PURE__ */ U(J, {
|
|
2637
2691
|
label: p("devportal.iconUrl", "Icon"),
|
|
2638
2692
|
value: m.iconUrl,
|
|
2639
|
-
onChange: (e) =>
|
|
2693
|
+
onChange: (e) => T("iconUrl", e),
|
|
2640
2694
|
hint: p("devportal.iconUrlHint", "Shown in marketplace cards and search — square proportions (1:1)"),
|
|
2641
2695
|
aspectClass: "aspect-square",
|
|
2642
|
-
upload:
|
|
2643
|
-
uploading:
|
|
2696
|
+
upload: O,
|
|
2697
|
+
uploading: k,
|
|
2644
2698
|
progress: ie,
|
|
2645
2699
|
error: ae
|
|
2646
|
-
}), /* @__PURE__ */
|
|
2700
|
+
}), /* @__PURE__ */ U(J, {
|
|
2647
2701
|
label: p("devportal.bannerUrl", "Banner"),
|
|
2648
2702
|
value: m.bannerUrl,
|
|
2649
|
-
onChange: (e) =>
|
|
2703
|
+
onChange: (e) => T("bannerUrl", e),
|
|
2650
2704
|
hint: p("devportal.bannerUrlHint", "Fills the right panel on the product page — square or portrait works best on all screen sizes (1:1)"),
|
|
2651
2705
|
aspectClass: "aspect-square",
|
|
2652
|
-
upload:
|
|
2653
|
-
uploading:
|
|
2654
|
-
progress:
|
|
2655
|
-
error:
|
|
2706
|
+
upload: oe,
|
|
2707
|
+
uploading: se,
|
|
2708
|
+
progress: j,
|
|
2709
|
+
error: M
|
|
2656
2710
|
})]
|
|
2657
2711
|
}),
|
|
2658
|
-
/* @__PURE__ */
|
|
2712
|
+
/* @__PURE__ */ U(A, {
|
|
2659
2713
|
label: p("devportal.videoUrl", "Demo Video URL"),
|
|
2660
2714
|
value: m.videoUrl,
|
|
2661
|
-
onChange: (e) =>
|
|
2715
|
+
onChange: (e) => T("videoUrl", e.target.value),
|
|
2662
2716
|
placeholder: "https://...",
|
|
2663
2717
|
hint: p("devportal.videoUrlHint", "YouTube or Vimeo embed URL")
|
|
2664
2718
|
}),
|
|
2665
|
-
/* @__PURE__ */
|
|
2719
|
+
/* @__PURE__ */ U(re, {
|
|
2666
2720
|
label: p("devportal.shortDescription", "Short Description"),
|
|
2667
2721
|
value: m.shortDescription,
|
|
2668
|
-
onChange: (e) =>
|
|
2722
|
+
onChange: (e) => T("shortDescription", e.target.value),
|
|
2669
2723
|
maxLength: 200,
|
|
2670
2724
|
rows: 2,
|
|
2671
2725
|
hint: `${m.shortDescription.length}/200 · ${p("devportal.shortDescHint", "Shown in search results and cards")}`
|
|
2672
2726
|
}),
|
|
2673
|
-
/* @__PURE__ */
|
|
2727
|
+
/* @__PURE__ */ U(re, {
|
|
2674
2728
|
label: p("devportal.longDescription", "Full Description"),
|
|
2675
2729
|
value: m.description,
|
|
2676
|
-
onChange: (e) =>
|
|
2730
|
+
onChange: (e) => T("description", e.target.value),
|
|
2677
2731
|
rows: 5,
|
|
2678
2732
|
hint: p("devportal.fullDescHint", "Markdown supported")
|
|
2679
2733
|
}),
|
|
2680
|
-
/* @__PURE__ */
|
|
2734
|
+
/* @__PURE__ */ U(Y, {
|
|
2681
2735
|
urls: m.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean),
|
|
2682
|
-
onChange: (e) =>
|
|
2683
|
-
upload:
|
|
2684
|
-
uploading:
|
|
2685
|
-
progress:
|
|
2686
|
-
error:
|
|
2736
|
+
onChange: (e) => T("screenshotsText", e.join("\n")),
|
|
2737
|
+
upload: fe,
|
|
2738
|
+
uploading: pe,
|
|
2739
|
+
progress: I,
|
|
2740
|
+
error: _e
|
|
2687
2741
|
})
|
|
2688
2742
|
]
|
|
2689
2743
|
})
|
|
2690
2744
|
}),
|
|
2691
|
-
/* @__PURE__ */
|
|
2745
|
+
/* @__PURE__ */ U(S, {
|
|
2692
2746
|
title: p("devportal.linksPolicies", "Links & Policies"),
|
|
2693
2747
|
description: p("devportal.linksPoliciesDescription", "External resources and legal documents — privacy policy and terms are required for store submission"),
|
|
2694
|
-
children: /* @__PURE__ */
|
|
2748
|
+
children: /* @__PURE__ */ W("div", {
|
|
2695
2749
|
className: "grid gap-4 sm:grid-cols-2",
|
|
2696
2750
|
children: [
|
|
2697
|
-
/* @__PURE__ */
|
|
2751
|
+
/* @__PURE__ */ U(A, {
|
|
2698
2752
|
label: p("devportal.websiteUrl", "Website"),
|
|
2699
2753
|
value: m.websiteUrl,
|
|
2700
|
-
onChange: (e) =>
|
|
2754
|
+
onChange: (e) => T("websiteUrl", e.target.value),
|
|
2701
2755
|
placeholder: "https://..."
|
|
2702
2756
|
}),
|
|
2703
|
-
/* @__PURE__ */
|
|
2757
|
+
/* @__PURE__ */ U(A, {
|
|
2704
2758
|
label: p("devportal.documentationUrl", "Documentation"),
|
|
2705
2759
|
value: m.documentationUrl,
|
|
2706
|
-
onChange: (e) =>
|
|
2760
|
+
onChange: (e) => T("documentationUrl", e.target.value),
|
|
2707
2761
|
placeholder: "https://..."
|
|
2708
2762
|
}),
|
|
2709
|
-
/* @__PURE__ */
|
|
2763
|
+
/* @__PURE__ */ U(A, {
|
|
2710
2764
|
label: p("devportal.githubUrl", "GitHub"),
|
|
2711
2765
|
value: m.githubUrl,
|
|
2712
|
-
onChange: (e) =>
|
|
2766
|
+
onChange: (e) => T("githubUrl", e.target.value),
|
|
2713
2767
|
placeholder: "https://github.com/..."
|
|
2714
2768
|
}),
|
|
2715
|
-
/* @__PURE__ */
|
|
2769
|
+
/* @__PURE__ */ U(A, {
|
|
2716
2770
|
label: p("devportal.supportUrl", "Support"),
|
|
2717
2771
|
value: m.supportUrl,
|
|
2718
|
-
onChange: (e) =>
|
|
2772
|
+
onChange: (e) => T("supportUrl", e.target.value),
|
|
2719
2773
|
placeholder: "https://..."
|
|
2720
2774
|
}),
|
|
2721
|
-
/* @__PURE__ */
|
|
2775
|
+
/* @__PURE__ */ U(A, {
|
|
2722
2776
|
label: `${p("devportal.privacyPolicyUrl", "Privacy Policy")} *`,
|
|
2723
2777
|
value: m.privacyPolicyUrl,
|
|
2724
|
-
onChange: (e) =>
|
|
2778
|
+
onChange: (e) => T("privacyPolicyUrl", e.target.value),
|
|
2725
2779
|
placeholder: "https://...",
|
|
2726
2780
|
hint: p("devportal.requiredForStore", "Required for store submission")
|
|
2727
2781
|
}),
|
|
2728
|
-
/* @__PURE__ */
|
|
2782
|
+
/* @__PURE__ */ U(A, {
|
|
2729
2783
|
label: `${p("devportal.termsOfServiceUrl", "Terms of Service")} *`,
|
|
2730
2784
|
value: m.termsOfServiceUrl,
|
|
2731
|
-
onChange: (e) =>
|
|
2785
|
+
onChange: (e) => T("termsOfServiceUrl", e.target.value),
|
|
2732
2786
|
placeholder: "https://...",
|
|
2733
2787
|
hint: p("devportal.requiredForStore", "Required for store submission")
|
|
2734
2788
|
})
|
|
2735
2789
|
]
|
|
2736
2790
|
})
|
|
2737
2791
|
}),
|
|
2738
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ W("div", {
|
|
2739
2793
|
className: "border-t pt-6 space-y-3",
|
|
2740
2794
|
children: [
|
|
2741
|
-
|
|
2795
|
+
v === "success" && /* @__PURE__ */ W("div", {
|
|
2742
2796
|
className: "flex items-center gap-2 rounded-md border border-success/30 bg-success/10 px-3 py-2 text-sm text-success",
|
|
2743
|
-
children: [/* @__PURE__ */
|
|
2797
|
+
children: [/* @__PURE__ */ U(me, {
|
|
2744
2798
|
size: 15,
|
|
2745
2799
|
className: "shrink-0"
|
|
2746
2800
|
}), p("devportal.storeListing.savedSuccess", "Store listing saved successfully.")]
|
|
2747
2801
|
}),
|
|
2748
|
-
|
|
2802
|
+
v === "error" && /* @__PURE__ */ W("div", {
|
|
2749
2803
|
className: "flex items-center gap-2 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",
|
|
2750
|
-
children: [/* @__PURE__ */
|
|
2804
|
+
children: [/* @__PURE__ */ U(de, {
|
|
2751
2805
|
size: 15,
|
|
2752
2806
|
className: "shrink-0"
|
|
2753
2807
|
}), p("devportal.storeListing.savedError", "Failed to save. Please try again.")]
|
|
2754
2808
|
}),
|
|
2755
|
-
/* @__PURE__ */
|
|
2809
|
+
/* @__PURE__ */ W("div", {
|
|
2756
2810
|
className: "flex flex-wrap items-center gap-3",
|
|
2757
2811
|
children: [
|
|
2758
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ U("button", {
|
|
2759
2813
|
type: "button",
|
|
2760
|
-
onClick:
|
|
2761
|
-
disabled: g || !
|
|
2762
|
-
title:
|
|
2814
|
+
onClick: te,
|
|
2815
|
+
disabled: g || !E || !w,
|
|
2816
|
+
title: E ? w ? void 0 : p("devportal.storeListing.noChanges", "All changes saved — edit any field to save again") : p("devportal.storeListing.requiredFieldsHint", "Fill in Short Description, Privacy Policy URL, and Terms of Service URL to save"),
|
|
2763
2817
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
2764
|
-
children: g ? /* @__PURE__ */
|
|
2818
|
+
children: g ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(R, {
|
|
2765
2819
|
size: 16,
|
|
2766
2820
|
className: "animate-spin"
|
|
2767
|
-
}), p("devportal.saving", "Saving…")] }) : w ? /* @__PURE__ */
|
|
2821
|
+
}), p("devportal.saving", "Saving…")] }) : w ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(Ae, { size: 16 }), p("devportal.saveStoreListing", "Save Store Listing")] }) : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(F, { size: 16 }), p("devportal.saved", "Saved")] })
|
|
2768
2822
|
}),
|
|
2769
|
-
!
|
|
2823
|
+
!E && /* @__PURE__ */ U("p", {
|
|
2770
2824
|
className: "text-xs text-text-secondary",
|
|
2771
2825
|
children: p("devportal.storeListing.requiredFieldsLabel", "Short Description, Privacy Policy URL, and Terms of Service URL are required")
|
|
2772
2826
|
}),
|
|
2773
|
-
r && n === 0 && a && /* @__PURE__ */
|
|
2827
|
+
r && n === 0 && a && /* @__PURE__ */ W("button", {
|
|
2774
2828
|
type: "button",
|
|
2775
2829
|
onClick: a,
|
|
2776
2830
|
className: "inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:underline underline-offset-2",
|
|
2777
|
-
children: [p("devportal.nextUploadVersion", "Next: Upload a Version"), /* @__PURE__ */
|
|
2831
|
+
children: [p("devportal.nextUploadVersion", "Next: Upload a Version"), /* @__PURE__ */ U(he, { size: 15 })]
|
|
2778
2832
|
}),
|
|
2779
|
-
(!r || n > 0) && !i && o && /* @__PURE__ */
|
|
2833
|
+
(!r || n > 0) && !i && o && /* @__PURE__ */ W("button", {
|
|
2780
2834
|
type: "button",
|
|
2781
2835
|
onClick: o,
|
|
2782
2836
|
className: "inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:underline underline-offset-2",
|
|
2783
|
-
children: [p("devportal.nextSetPricing", "Next: Set Pricing"), /* @__PURE__ */
|
|
2837
|
+
children: [p("devportal.nextSetPricing", "Next: Set Pricing"), /* @__PURE__ */ U(he, { size: 15 })]
|
|
2784
2838
|
})
|
|
2785
2839
|
]
|
|
2786
2840
|
})
|
|
@@ -2788,21 +2842,21 @@ var st = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2788
2842
|
})
|
|
2789
2843
|
]
|
|
2790
2844
|
});
|
|
2791
|
-
},
|
|
2792
|
-
let { t: i } =
|
|
2793
|
-
return /* @__PURE__ */
|
|
2845
|
+
}, Z = ({ label: e, value: n, trend: r }) => {
|
|
2846
|
+
let { t: i } = P();
|
|
2847
|
+
return /* @__PURE__ */ W(Be, {
|
|
2794
2848
|
treatment: "metric",
|
|
2795
2849
|
className: "p-4",
|
|
2796
2850
|
children: [
|
|
2797
|
-
/* @__PURE__ */
|
|
2851
|
+
/* @__PURE__ */ U("p", {
|
|
2798
2852
|
className: "text-sm text-text-secondary",
|
|
2799
2853
|
children: e
|
|
2800
2854
|
}),
|
|
2801
|
-
/* @__PURE__ */
|
|
2855
|
+
/* @__PURE__ */ U("p", {
|
|
2802
2856
|
className: "text-2xl font-bold tabular-nums",
|
|
2803
2857
|
children: n
|
|
2804
2858
|
}),
|
|
2805
|
-
r !== void 0 && /* @__PURE__ */
|
|
2859
|
+
r !== void 0 && /* @__PURE__ */ W("p", {
|
|
2806
2860
|
className: t("text-xs mt-1 tabular-nums", r > 0 ? "text-status-success-text" : r < 0 ? "text-status-error-text" : "text-text-secondary"),
|
|
2807
2861
|
children: [
|
|
2808
2862
|
r > 0 ? "+" : "",
|
|
@@ -2816,13 +2870,13 @@ var st = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2816
2870
|
})
|
|
2817
2871
|
]
|
|
2818
2872
|
});
|
|
2819
|
-
},
|
|
2873
|
+
}, Q = ({ label: e, url: t }) => /* @__PURE__ */ W("a", {
|
|
2820
2874
|
href: t,
|
|
2821
2875
|
target: "_blank",
|
|
2822
2876
|
rel: "noopener noreferrer",
|
|
2823
2877
|
className: "flex items-center gap-2 text-sm text-primary hover:underline",
|
|
2824
|
-
children: [/* @__PURE__ */
|
|
2825
|
-
}),
|
|
2878
|
+
children: [/* @__PURE__ */ U(L, { size: 14 }), e]
|
|
2879
|
+
}), $ = {
|
|
2826
2880
|
auth: {
|
|
2827
2881
|
label: "Authentication",
|
|
2828
2882
|
description: "User identity and session management"
|
|
@@ -2879,8 +2933,8 @@ var st = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2879
2933
|
label: "Roles & Permissions",
|
|
2880
2934
|
description: "Access control configuration"
|
|
2881
2935
|
}
|
|
2882
|
-
},
|
|
2883
|
-
function
|
|
2936
|
+
}, mt = Object.keys($);
|
|
2937
|
+
function ht(e) {
|
|
2884
2938
|
if (!e || !Array.isArray(e.permissions)) return [];
|
|
2885
2939
|
let t = [];
|
|
2886
2940
|
for (let n of e.permissions) n && typeof n == "object" && typeof n.resource == "string" && n.resource && t.push({
|
|
@@ -2889,7 +2943,7 @@ function dt(e) {
|
|
|
2889
2943
|
});
|
|
2890
2944
|
return t;
|
|
2891
2945
|
}
|
|
2892
|
-
function
|
|
2946
|
+
function gt(e) {
|
|
2893
2947
|
let t = [];
|
|
2894
2948
|
for (let n of e) {
|
|
2895
2949
|
let e = n.indexOf(":");
|
|
@@ -2902,28 +2956,28 @@ function ft(e) {
|
|
|
2902
2956
|
}
|
|
2903
2957
|
return t;
|
|
2904
2958
|
}
|
|
2905
|
-
function
|
|
2959
|
+
function _t(e, t) {
|
|
2906
2960
|
if (e.length > 0) return e;
|
|
2907
2961
|
let n = /* @__PURE__ */ new Set();
|
|
2908
2962
|
return t.filter((e) => n.has(e.resource) ? !1 : (n.add(e.resource), !0));
|
|
2909
2963
|
}
|
|
2910
|
-
var
|
|
2964
|
+
var vt = ({ level: e, onChange: t }) => /* @__PURE__ */ U("div", {
|
|
2911
2965
|
className: "flex items-center gap-0.5 rounded-md border border-border-subtle bg-bg-sunken/50 p-0.5",
|
|
2912
|
-
children: ["read", "write"].map((n) => /* @__PURE__ */
|
|
2966
|
+
children: ["read", "write"].map((n) => /* @__PURE__ */ U("button", {
|
|
2913
2967
|
type: "button",
|
|
2914
2968
|
onClick: () => t(n),
|
|
2915
2969
|
className: `rounded px-2.5 py-1 text-xs font-medium transition-colors whitespace-nowrap ${e === n ? "bg-bg-base text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
2916
2970
|
children: n === "read" ? "Read" : "Read & Write"
|
|
2917
2971
|
}, n))
|
|
2918
|
-
}),
|
|
2919
|
-
let i = e.manifest ?? {}, [a, o] =
|
|
2972
|
+
}), yt = ({ app: e, versionScopes: t, locked: n = !1, onNavigateToVersions: r }) => {
|
|
2973
|
+
let i = e.manifest ?? {}, [a, o] = N(() => _t(ht(i), gt(t ?? []))), [s, c] = N(!1), [l, u] = N(""), [d, f] = N("read"), [p, m] = N(!1), [h, g] = N(!1), [_] = b(), v = (e, t) => {
|
|
2920
2974
|
g(!1), o((n) => n.map((n) => n.resource === e ? {
|
|
2921
2975
|
...n,
|
|
2922
2976
|
level: t
|
|
2923
2977
|
} : n));
|
|
2924
|
-
},
|
|
2978
|
+
}, y = (e) => {
|
|
2925
2979
|
g(!1), o((t) => t.filter((t) => t.resource !== e));
|
|
2926
|
-
},
|
|
2980
|
+
}, x = () => {
|
|
2927
2981
|
let e = l.trim().toLowerCase().replace(/\s+/g, "-");
|
|
2928
2982
|
!e || a.some((t) => t.resource === e) || (o((t) => [...t, {
|
|
2929
2983
|
resource: e,
|
|
@@ -2945,58 +2999,58 @@ var mt = ({ level: e, onChange: t }) => /* @__PURE__ */ W("div", {
|
|
|
2945
2999
|
} finally {
|
|
2946
3000
|
m(!1);
|
|
2947
3001
|
}
|
|
2948
|
-
}, w = /* @__PURE__ */
|
|
3002
|
+
}, w = /* @__PURE__ */ U("div", {
|
|
2949
3003
|
className: "rounded-lg border border-border-subtle divide-y divide-border-subtle",
|
|
2950
|
-
children: a.map((e) => /* @__PURE__ */
|
|
3004
|
+
children: a.map((e) => /* @__PURE__ */ W("div", {
|
|
2951
3005
|
className: "flex items-center gap-3 px-4 py-3 hover:bg-bg-sunken/30 transition-colors",
|
|
2952
|
-
children: [/* @__PURE__ */
|
|
3006
|
+
children: [/* @__PURE__ */ W("div", {
|
|
2953
3007
|
className: "flex-1 min-w-0",
|
|
2954
3008
|
children: [
|
|
2955
|
-
/* @__PURE__ */
|
|
3009
|
+
/* @__PURE__ */ U("p", {
|
|
2956
3010
|
className: "text-sm font-medium text-text-primary",
|
|
2957
|
-
children:
|
|
3011
|
+
children: $[e.resource]?.label ?? e.resource
|
|
2958
3012
|
}),
|
|
2959
|
-
|
|
3013
|
+
$[e.resource]?.description && /* @__PURE__ */ U("p", {
|
|
2960
3014
|
className: "text-xs text-text-secondary",
|
|
2961
|
-
children:
|
|
3015
|
+
children: $[e.resource].description
|
|
2962
3016
|
}),
|
|
2963
|
-
|
|
3017
|
+
!$[e.resource] && /* @__PURE__ */ U("p", {
|
|
2964
3018
|
className: "text-xs text-text-tertiary font-mono",
|
|
2965
3019
|
children: "custom scope"
|
|
2966
3020
|
})
|
|
2967
3021
|
]
|
|
2968
|
-
}), n ? /* @__PURE__ */
|
|
3022
|
+
}), n ? /* @__PURE__ */ U("span", {
|
|
2969
3023
|
className: `rounded-full px-2.5 py-0.5 text-xs font-medium ${e.level === "write" ? "bg-status-warning-bg text-status-warning-text" : "bg-bg-sunken text-text-secondary"}`,
|
|
2970
3024
|
children: e.level === "write" ? "Read & Write" : "Read"
|
|
2971
|
-
}) : /* @__PURE__ */
|
|
3025
|
+
}) : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(vt, {
|
|
2972
3026
|
level: e.level,
|
|
2973
|
-
onChange: (t) =>
|
|
2974
|
-
}), /* @__PURE__ */
|
|
3027
|
+
onChange: (t) => v(e.resource, t)
|
|
3028
|
+
}), /* @__PURE__ */ U("button", {
|
|
2975
3029
|
type: "button",
|
|
2976
|
-
onClick: () =>
|
|
3030
|
+
onClick: () => y(e.resource),
|
|
2977
3031
|
title: "Remove permission",
|
|
2978
3032
|
className: "p-1.5 rounded text-text-tertiary hover:text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
|
|
2979
|
-
children: /* @__PURE__ */
|
|
3033
|
+
children: /* @__PURE__ */ U(Fe, { size: 14 })
|
|
2980
3034
|
})] })]
|
|
2981
3035
|
}, e.resource))
|
|
2982
3036
|
});
|
|
2983
|
-
return /* @__PURE__ */
|
|
3037
|
+
return /* @__PURE__ */ U(S, {
|
|
2984
3038
|
title: "Permissions",
|
|
2985
3039
|
description: "These are the permissions your app requests from users. Users see exactly this list when authorizing your app.",
|
|
2986
|
-
children: /* @__PURE__ */
|
|
3040
|
+
children: /* @__PURE__ */ U("div", {
|
|
2987
3041
|
className: "space-y-4",
|
|
2988
|
-
children: n ? /* @__PURE__ */
|
|
3042
|
+
children: n ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W("div", {
|
|
2989
3043
|
className: "rounded-lg border border-status-warning-bg bg-status-warning-bg-subtle p-3 flex gap-2 text-sm",
|
|
2990
|
-
children: [/* @__PURE__ */
|
|
3044
|
+
children: [/* @__PURE__ */ U(xe, {
|
|
2991
3045
|
size: 15,
|
|
2992
3046
|
className: "flex-shrink-0 mt-0.5 text-status-warning-text"
|
|
2993
|
-
}), /* @__PURE__ */
|
|
3047
|
+
}), /* @__PURE__ */ W("span", {
|
|
2994
3048
|
className: "text-status-warning-text",
|
|
2995
3049
|
children: [
|
|
2996
|
-
/* @__PURE__ */
|
|
3050
|
+
/* @__PURE__ */ U("strong", { children: "Permission changes require a new version." }),
|
|
2997
3051
|
" Your app is live and users have already consented to the permissions below. To request new or fewer permissions, publish a new version — existing users will be shown what changed and asked to re-consent before the new version takes effect.",
|
|
2998
3052
|
" ",
|
|
2999
|
-
r && /* @__PURE__ */
|
|
3053
|
+
r && /* @__PURE__ */ U("button", {
|
|
3000
3054
|
type: "button",
|
|
3001
3055
|
onClick: r,
|
|
3002
3056
|
className: "underline font-medium hover:opacity-80 transition-opacity",
|
|
@@ -3004,96 +3058,96 @@ var mt = ({ level: e, onChange: t }) => /* @__PURE__ */ W("div", {
|
|
|
3004
3058
|
})
|
|
3005
3059
|
]
|
|
3006
3060
|
})]
|
|
3007
|
-
}), a.length === 0 ? /* @__PURE__ */
|
|
3061
|
+
}), a.length === 0 ? /* @__PURE__ */ U("div", {
|
|
3008
3062
|
className: "rounded-lg border border-border-subtle border-dashed p-6 text-center text-sm text-text-secondary",
|
|
3009
3063
|
children: "No permissions configured for this version."
|
|
3010
|
-
}) : w] }) : /* @__PURE__ */
|
|
3011
|
-
a.length === 0 ? /* @__PURE__ */
|
|
3064
|
+
}) : w] }) : /* @__PURE__ */ W(H, { children: [
|
|
3065
|
+
a.length === 0 ? /* @__PURE__ */ W("div", {
|
|
3012
3066
|
className: "rounded-lg border border-border-subtle border-dashed p-8 flex flex-col items-center gap-2 text-center text-text-secondary",
|
|
3013
3067
|
children: [
|
|
3014
|
-
/* @__PURE__ */
|
|
3068
|
+
/* @__PURE__ */ U(B, {
|
|
3015
3069
|
size: 28,
|
|
3016
3070
|
className: "opacity-25"
|
|
3017
3071
|
}),
|
|
3018
|
-
/* @__PURE__ */
|
|
3072
|
+
/* @__PURE__ */ U("p", {
|
|
3019
3073
|
className: "text-sm font-medium text-text-primary",
|
|
3020
3074
|
children: "No permissions configured"
|
|
3021
3075
|
}),
|
|
3022
|
-
/* @__PURE__ */
|
|
3076
|
+
/* @__PURE__ */ U("p", {
|
|
3023
3077
|
className: "text-xs",
|
|
3024
3078
|
children: "Add the permissions your app needs to request from users."
|
|
3025
3079
|
})
|
|
3026
3080
|
]
|
|
3027
3081
|
}) : w,
|
|
3028
|
-
s ? /* @__PURE__ */
|
|
3082
|
+
s ? /* @__PURE__ */ W("div", {
|
|
3029
3083
|
className: "rounded-lg border border-border-subtle p-3 flex items-center gap-2 flex-wrap",
|
|
3030
3084
|
children: [
|
|
3031
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ U("input", {
|
|
3032
3086
|
type: "text",
|
|
3033
3087
|
value: l,
|
|
3034
3088
|
onChange: (e) => u(e.target.value),
|
|
3035
3089
|
onKeyDown: (e) => {
|
|
3036
|
-
e.key === "Enter" &&
|
|
3090
|
+
e.key === "Enter" && x(), e.key === "Escape" && c(!1);
|
|
3037
3091
|
},
|
|
3038
3092
|
placeholder: "Resource (e.g. auth, files, widgets)",
|
|
3039
3093
|
list: "perm-resource-suggestions",
|
|
3040
3094
|
autoFocus: !0,
|
|
3041
3095
|
className: "flex-1 min-w-40 rounded-md border border-border-subtle bg-bg-base px-3 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-primary"
|
|
3042
3096
|
}),
|
|
3043
|
-
/* @__PURE__ */
|
|
3097
|
+
/* @__PURE__ */ U("datalist", {
|
|
3044
3098
|
id: "perm-resource-suggestions",
|
|
3045
|
-
children:
|
|
3099
|
+
children: mt.filter((e) => !a.some((t) => t.resource === e)).map((e) => /* @__PURE__ */ U("option", {
|
|
3046
3100
|
value: e,
|
|
3047
|
-
children:
|
|
3101
|
+
children: $[e].label
|
|
3048
3102
|
}, e))
|
|
3049
3103
|
}),
|
|
3050
|
-
/* @__PURE__ */
|
|
3104
|
+
/* @__PURE__ */ U(vt, {
|
|
3051
3105
|
level: d,
|
|
3052
3106
|
onChange: f
|
|
3053
3107
|
}),
|
|
3054
|
-
/* @__PURE__ */
|
|
3108
|
+
/* @__PURE__ */ U("button", {
|
|
3055
3109
|
type: "button",
|
|
3056
|
-
onClick:
|
|
3110
|
+
onClick: x,
|
|
3057
3111
|
disabled: !l.trim(),
|
|
3058
3112
|
className: "px-3 py-1.5 rounded-md bg-action-primary-bg text-action-primary-text text-xs font-medium hover:bg-action-primary-bg/90 disabled:opacity-50 transition-colors",
|
|
3059
3113
|
children: "Add"
|
|
3060
3114
|
}),
|
|
3061
|
-
/* @__PURE__ */
|
|
3115
|
+
/* @__PURE__ */ U("button", {
|
|
3062
3116
|
type: "button",
|
|
3063
3117
|
onClick: () => {
|
|
3064
3118
|
c(!1), u("");
|
|
3065
3119
|
},
|
|
3066
3120
|
className: "p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors",
|
|
3067
|
-
children: /* @__PURE__ */
|
|
3121
|
+
children: /* @__PURE__ */ U(Fe, { size: 14 })
|
|
3068
3122
|
})
|
|
3069
3123
|
]
|
|
3070
|
-
}) : /* @__PURE__ */
|
|
3124
|
+
}) : /* @__PURE__ */ W("button", {
|
|
3071
3125
|
type: "button",
|
|
3072
3126
|
onClick: () => c(!0),
|
|
3073
3127
|
className: "flex items-center gap-1.5 text-sm text-text-secondary hover:text-text-primary transition-colors",
|
|
3074
|
-
children: [/* @__PURE__ */
|
|
3128
|
+
children: [/* @__PURE__ */ U(z, { size: 14 }), "Add permission"]
|
|
3075
3129
|
}),
|
|
3076
|
-
/* @__PURE__ */
|
|
3130
|
+
/* @__PURE__ */ W("div", {
|
|
3077
3131
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-3 flex gap-2 text-xs text-text-secondary",
|
|
3078
|
-
children: [/* @__PURE__ */
|
|
3132
|
+
children: [/* @__PURE__ */ U(xe, {
|
|
3079
3133
|
size: 14,
|
|
3080
3134
|
className: "flex-shrink-0 mt-0.5"
|
|
3081
|
-
}), /* @__PURE__ */
|
|
3135
|
+
}), /* @__PURE__ */ W("span", { children: [/* @__PURE__ */ U("strong", { children: "Read & Write" }), " implies Read. Request only what your app genuinely needs — fewer permissions build more user trust."] })]
|
|
3082
3136
|
}),
|
|
3083
|
-
/* @__PURE__ */
|
|
3137
|
+
/* @__PURE__ */ W("div", {
|
|
3084
3138
|
className: "flex items-center justify-end gap-3",
|
|
3085
|
-
children: [h && /* @__PURE__ */
|
|
3139
|
+
children: [h && /* @__PURE__ */ W("span", {
|
|
3086
3140
|
className: "flex items-center gap-1.5 text-sm text-status-success-text",
|
|
3087
|
-
children: [/* @__PURE__ */
|
|
3088
|
-
}), /* @__PURE__ */
|
|
3141
|
+
children: [/* @__PURE__ */ U(me, { size: 14 }), "Saved"]
|
|
3142
|
+
}), /* @__PURE__ */ W("button", {
|
|
3089
3143
|
type: "button",
|
|
3090
3144
|
onClick: () => void C(),
|
|
3091
3145
|
disabled: p,
|
|
3092
3146
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50",
|
|
3093
|
-
children: [p ? /* @__PURE__ */
|
|
3147
|
+
children: [p ? /* @__PURE__ */ U(R, {
|
|
3094
3148
|
size: 14,
|
|
3095
3149
|
className: "animate-spin"
|
|
3096
|
-
}) : /* @__PURE__ */
|
|
3150
|
+
}) : /* @__PURE__ */ U(B, { size: 14 }), "Save Permissions"]
|
|
3097
3151
|
})]
|
|
3098
3152
|
})
|
|
3099
3153
|
] })
|
|
@@ -3101,6 +3155,6 @@ var mt = ({ level: e, onChange: t }) => /* @__PURE__ */ W("div", {
|
|
|
3101
3155
|
});
|
|
3102
3156
|
};
|
|
3103
3157
|
//#endregion
|
|
3104
|
-
export {
|
|
3158
|
+
export { Je as ApplicationDetailPage };
|
|
3105
3159
|
|
|
3106
3160
|
//# sourceMappingURL=ApplicationDetailPage.js.map
|