@burdenoff/microfe-devportal 2026.611.2 → 2026.614.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/devportal/components/SectionNav.js +105 -41
  2. package/dist/devportal/components/SectionNav.js.map +1 -1
  3. package/dist/devportal/hooks/useGraphQL.js +1 -1
  4. package/dist/devportal/pages/AdminReviewPage.js +36 -36
  5. package/dist/devportal/pages/AnalyticsDashboardPage.js +150 -150
  6. package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
  7. package/dist/devportal/pages/ApiKeysPage.js +184 -172
  8. package/dist/devportal/pages/ApiKeysPage.js.map +1 -1
  9. package/dist/devportal/pages/AppLogsPage.js +9 -9
  10. package/dist/devportal/pages/ApplicationDetailPage.js +414 -414
  11. package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
  12. package/dist/devportal/pages/ApplicationVersionsPage.js +44 -44
  13. package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
  14. package/dist/devportal/pages/ApplicationsPage.js +118 -118
  15. package/dist/devportal/pages/ApplicationsPage.js.map +1 -1
  16. package/dist/devportal/pages/CreateApiKeyPage.js +20 -20
  17. package/dist/devportal/pages/CreateApplicationPage.js +32 -32
  18. package/dist/devportal/pages/CreateOAuthClientPage.js +20 -20
  19. package/dist/devportal/pages/CreateOrganizationPage.js +125 -442
  20. package/dist/devportal/pages/CreateOrganizationPage.js.map +1 -1
  21. package/dist/devportal/pages/CreateWebhookPage.js +25 -25
  22. package/dist/devportal/pages/DashboardPage.js +160 -145
  23. package/dist/devportal/pages/DashboardPage.js.map +1 -1
  24. package/dist/devportal/pages/DelegationsPage.js +22 -22
  25. package/dist/devportal/pages/EditApplicationPage.js +283 -283
  26. package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
  27. package/dist/devportal/pages/ListingPreviewPage.js +9 -9
  28. package/dist/devportal/pages/OAuthClientDetailPage.js +17 -17
  29. package/dist/devportal/pages/OAuthClientsPage.js +16 -16
  30. package/dist/devportal/pages/OrganizationDetailPage.js +78 -78
  31. package/dist/devportal/pages/OrganizationMembersPage.js +260 -260
  32. package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
  33. package/dist/devportal/pages/OrganizationsPage.js +18 -18
  34. package/dist/devportal/pages/PublishPage.js +16 -16
  35. package/dist/devportal/pages/PublisherProfilePage.js +156 -146
  36. package/dist/devportal/pages/PublisherProfilePage.js.map +1 -1
  37. package/dist/devportal/pages/RevenueDashboardPage.js +512 -362
  38. package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
  39. package/dist/devportal/pages/SettingsPage.js +17 -17
  40. package/dist/devportal/pages/SetupPage.js +99 -99
  41. package/dist/devportal/pages/SetupPage.js.map +1 -1
  42. package/dist/devportal/pages/WebhookDetailPage.js +143 -143
  43. package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
  44. package/dist/devportal/pages/WebhooksPage.js +140 -140
  45. package/dist/devportal/pages/WebhooksPage.js.map +1 -1
  46. package/dist/devportal/providers/DevportalProvider.js +46 -33
  47. package/dist/devportal/providers/DevportalProvider.js.map +1 -1
  48. package/dist/generated/global-operations.js +69 -55
  49. package/dist/generated/global-operations.js.map +1 -1
  50. package/package.json +1 -1
@@ -2,23 +2,23 @@ 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 { PageLayout as i, PageSection as a } from "../components/PageLayout.js";
6
- import { APP_TYPE_LABELS as o } from "../utils/constants.js";
7
- import { FeaturedBadge as s, StatusBadge as c, VerifiedBadge as l } from "../components/StatusBadge.js";
8
- import { SelectionCheckbox as u } from "../components/SelectionCheckbox.js";
9
- import { nativeNotify as d } from "../../utils/nativeBridge.js";
10
- import { NewSecretAlert as f } from "../components/SecretDisplay.js";
11
- import { DataTable as p, DetailList as m } from "../components/DataTable.js";
12
- import { InputField as h, SelectField as g, TextareaField as _ } from "../components/FormField.js";
13
- import { ConfirmDialog as v } from "../components/ConfirmDialog.js";
14
- import { useCurrentUserDelegationsQuery as y, useDeactivateAppMutation as b, useGetApplicationAnalyticsQuery as x, useGetApplicationQuery as S, useGetWebhooksQuery as C, useInstallApplicationMutation as w, useRevokeDelegationMutation as T, useRotateAppSecretMutation as E, useUpdateApplicationMutation as D } from "../../generated/global-operations.js";
5
+ import { useCurrentUserDelegationsQuery as i, useDeactivateAppMutation as a, useGetApplicationAnalyticsQuery as o, useGetApplicationQuery as s, useGetWebhooksQuery as c, useInstallApplicationMutation as l, useRevokeDelegationMutation as u, useRotateAppSecretMutation as d, useUpdateApplicationMutation as f } from "../../generated/global-operations.js";
6
+ import { PageLayout as p, PageSection as m } from "../components/PageLayout.js";
7
+ import { APP_TYPE_LABELS as h } from "../utils/constants.js";
8
+ import { FeaturedBadge as g, StatusBadge as _, VerifiedBadge as v } from "../components/StatusBadge.js";
9
+ import { SelectionCheckbox as y } from "../components/SelectionCheckbox.js";
10
+ import { nativeNotify as b } from "../../utils/nativeBridge.js";
11
+ import { NewSecretAlert as x } from "../components/SecretDisplay.js";
12
+ import { DataTable as S, DetailList as C } from "../components/DataTable.js";
13
+ import { InputField as w, SelectField as T, TextareaField as E } from "../components/FormField.js";
14
+ import { ConfirmDialog as D } from "../components/ConfirmDialog.js";
15
15
  import { GrantDelegationModal as ee } from "../components/GrantDelegationModal.js";
16
16
  import { DEVPORTAL_PERMISSIONS as O } from "../constants/permissions.js";
17
17
  import { useDevportalPermission as k } from "../hooks/usePermission.js";
18
- import { usePackageUpload as A } from "../hooks/usePackageUpload.js";
19
- import { useCallback as j, useEffect as M, useMemo as N, useRef as P, useState as F } from "react";
20
- import { useI18n as I } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
21
- import { AlertCircle as L, AppWindow as te, BarChart3 as R, CheckCircle as z, Clock as ne, Download as re, Edit as ie, ExternalLink as B, FlaskConical as ae, Info as oe, Key as V, Loader2 as H, MoreHorizontal as se, Plus as U, Power as ce, RefreshCw as le, Shield as W, Store as G, Upload as K, Users as q, Webhook as ue, XCircle as de } from "lucide-react";
18
+ import { usePackageUpload as te } from "../hooks/usePackageUpload.js";
19
+ import { useCallback as A, useEffect as j, useMemo as M, useRef as N, useState as P } from "react";
20
+ import { useI18n as F } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
21
+ import { AlertCircle as I, AppWindow as ne, BarChart3 as L, CheckCircle as R, Clock as z, Download as re, Edit as ie, ExternalLink as B, FlaskConical as ae, Info as oe, Key as V, Loader2 as H, MoreHorizontal as se, Plus as U, Power as ce, RefreshCw as le, Shield as W, Store as G, Upload as K, Users as q, Webhook as ue, XCircle as de } from "lucide-react";
22
22
  import { useParams as fe } from "react-router-dom";
23
23
  import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
24
24
  //#region src/devportal/pages/ApplicationDetailPage.tsx
@@ -128,7 +128,7 @@ var ge = [
128
128
  {
129
129
  id: "overview",
130
130
  label: "Overview",
131
- icon: te
131
+ icon: ne
132
132
  },
133
133
  {
134
134
  id: "oauth",
@@ -153,7 +153,7 @@ var ge = [
153
153
  {
154
154
  id: "analytics",
155
155
  label: "Analytics",
156
- icon: R
156
+ icon: L
157
157
  },
158
158
  {
159
159
  id: "playground",
@@ -180,7 +180,7 @@ var ge = [
180
180
  })]
181
181
  }), ye = ({ message: e }) => /* @__PURE__ */ X("div", {
182
182
  className: "flex flex-col items-center justify-center gap-2 py-12 text-center",
183
- children: [/* @__PURE__ */ Y(L, {
183
+ children: [/* @__PURE__ */ Y(I, {
184
184
  size: 32,
185
185
  className: "text-destructive"
186
186
  }), /* @__PURE__ */ Y("p", {
@@ -188,58 +188,58 @@ var ge = [
188
188
  children: e
189
189
  })]
190
190
  }), be = () => {
191
- let { navigate: a, basePath: u, workspaceId: p } = e(), { t: m } = I(), h = (e, t) => {
192
- let n = m(e);
191
+ let { navigate: i, basePath: o, workspaceId: c } = e(), { t: u } = F(), f = (e, t) => {
192
+ let n = u(e);
193
193
  return n === e ? t : n;
194
- }, { allowed: g } = k(O.APP_UPDATE), { allowed: _ } = k(O.APP_DELETE), { appId: y } = fe(), [x, C] = F("overview"), [T, D] = F(!1), [A, M] = F(!1), [N, P] = F(null), [R, z] = F(!1), { data: re, loading: B, error: oe } = S({
195
- variables: { id: y },
196
- skip: !y
197
- }), [V, { loading: se }] = E(), [U, { loading: W }] = b(), [G, { loading: K }] = w(), q = j((e) => {
198
- a?.(`${u}${e}`);
199
- }, [a, u]), ue = j(async () => {
200
- if (y) try {
201
- let e = (await V({ variables: { id: y } })).data?.rotateAppSecret.clientSecret;
202
- e && P(e), D(!1);
194
+ }, { allowed: m } = k(O.APP_UPDATE), { allowed: y } = k(O.APP_DELETE), { appId: S } = fe(), [C, w] = P("overview"), [T, E] = P(!1), [te, j] = P(!1), [M, N] = P(null), [L, R] = P(!1), { data: re, loading: B, error: oe } = s({
195
+ variables: { id: S },
196
+ skip: !S
197
+ }), [V, { loading: se }] = d(), [U, { loading: W }] = a(), [G, { loading: K }] = l(), q = A((e) => {
198
+ i?.(`${o}${e}`);
199
+ }, [i, o]), ue = A(async () => {
200
+ if (S) try {
201
+ let e = (await V({ variables: { id: S } })).data?.rotateAppSecret.clientSecret;
202
+ e && N(e), E(!1);
203
203
  } catch {}
204
- }, [y, V]), de = j(async () => {
205
- if (y) try {
206
- await U({ variables: { id: y } }), M(!1), q("/apps");
204
+ }, [S, V]), de = A(async () => {
205
+ if (S) try {
206
+ await U({ variables: { id: S } }), j(!1), q("/apps");
207
207
  } catch {}
208
208
  }, [
209
- y,
209
+ S,
210
210
  U,
211
211
  q
212
- ]), J = j(async () => {
213
- if (!(!y || !p)) try {
212
+ ]), J = A(async () => {
213
+ if (!(!S || !c)) try {
214
214
  await G({ variables: { input: {
215
- applicationId: y,
215
+ applicationId: S,
216
216
  scope: "WORKSPACE",
217
- workspaceId: p,
217
+ workspaceId: c,
218
218
  autoUpdate: !1
219
- } } }), d("success");
219
+ } } }), b("success");
220
220
  } catch {
221
- d("error");
221
+ b("error");
222
222
  }
223
223
  }, [
224
- y,
225
- p,
224
+ S,
225
+ c,
226
226
  G
227
227
  ]);
228
- if (B && !re) return /* @__PURE__ */ Y(n, { message: h("devportal.loadingApplication", "Loading application...") });
229
- if (oe) return /* @__PURE__ */ Y(i, {
230
- title: h("devportal.error", "Error"),
231
- backLink: `${u}/apps`,
232
- backLabel: h("devportal.backToApplications", "Back to Applications"),
228
+ if (B && !re) return /* @__PURE__ */ Y(n, { message: f("devportal.loadingApplication", "Loading application...") });
229
+ if (oe) return /* @__PURE__ */ Y(p, {
230
+ title: f("devportal.error", "Error"),
231
+ backLink: `${o}/apps`,
232
+ backLabel: f("devportal.backToApplications", "Back to Applications"),
233
233
  children: /* @__PURE__ */ X("div", {
234
234
  className: "flex flex-col items-center justify-center py-12 text-center",
235
235
  children: [
236
- /* @__PURE__ */ Y(L, {
236
+ /* @__PURE__ */ Y(I, {
237
237
  size: 48,
238
238
  className: "text-destructive mb-4"
239
239
  }),
240
240
  /* @__PURE__ */ Y("h3", {
241
241
  className: "text-lg font-semibold mb-2",
242
- children: h("devportal.failedToLoadApplication", "Failed to load application")
242
+ children: f("devportal.failedToLoadApplication", "Failed to load application")
243
243
  }),
244
244
  /* @__PURE__ */ Y("p", {
245
245
  className: "text-sm text-muted-foreground",
@@ -249,74 +249,74 @@ var ge = [
249
249
  })
250
250
  });
251
251
  let Z = pe(re?.application);
252
- return Z ? /* @__PURE__ */ X(i, {
252
+ return Z ? /* @__PURE__ */ X(p, {
253
253
  title: Z.name,
254
254
  description: Z.shortDescription,
255
- backLink: `${u}/apps`,
256
- backLabel: h("devportal.backToApplications", "Back to Applications"),
255
+ backLink: `${o}/apps`,
256
+ backLabel: f("devportal.backToApplications", "Back to Applications"),
257
257
  actions: /* @__PURE__ */ X("div", {
258
258
  className: "flex items-center gap-2",
259
259
  children: [
260
260
  /* @__PURE__ */ X("button", {
261
- onClick: () => D(!0),
261
+ onClick: () => E(!0),
262
262
  className: "inline-flex items-center gap-2 rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted transition-colors",
263
- children: [/* @__PURE__ */ Y(le, { size: 16 }), h("devportal.rotateSecret", "Rotate Secret")]
263
+ children: [/* @__PURE__ */ Y(le, { size: 16 }), f("devportal.rotateSecret", "Rotate Secret")]
264
264
  }),
265
265
  /* @__PURE__ */ X("button", {
266
266
  onClick: () => q(`/apps/${Z.id}/versions`),
267
267
  className: "inline-flex items-center gap-2 rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted transition-colors",
268
- children: [/* @__PURE__ */ Y(ne, { size: 16 }), h("devportal.versions", "Versions")]
268
+ children: [/* @__PURE__ */ Y(z, { size: 16 }), f("devportal.versions", "Versions")]
269
269
  }),
270
270
  /* @__PURE__ */ X("button", {
271
271
  onClick: () => void J(),
272
- disabled: K || !p,
273
- "aria-disabled": !p,
274
- title: p ? h("devportal.testInWorkspaceHint", "Install this app into your current workspace to test it") : h("devportal.noWorkspaceContext", "No workspace context available"),
272
+ disabled: K || !c,
273
+ "aria-disabled": !c,
274
+ title: c ? f("devportal.testInWorkspaceHint", "Install this app into your current workspace to test it") : f("devportal.noWorkspaceContext", "No workspace context available"),
275
275
  className: "inline-flex items-center gap-2 rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted transition-colors disabled:opacity-50",
276
276
  children: [K ? /* @__PURE__ */ Y(H, {
277
277
  size: 16,
278
278
  className: "animate-spin"
279
- }) : /* @__PURE__ */ Y(ae, { size: 16 }), h("devportal.testInWorkspace", "Test in Workspace")]
279
+ }) : /* @__PURE__ */ Y(ae, { size: 16 }), f("devportal.testInWorkspace", "Test in Workspace")]
280
280
  }),
281
281
  /* @__PURE__ */ X("button", {
282
282
  onClick: () => q(`/apps/${Z.id}/edit`),
283
- disabled: !g,
284
- "aria-disabled": !g,
283
+ disabled: !m,
284
+ "aria-disabled": !m,
285
285
  className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",
286
- children: [/* @__PURE__ */ Y(ie, { size: 16 }), h("devportal.editApp", "Edit App")]
286
+ children: [/* @__PURE__ */ Y(ie, { size: 16 }), f("devportal.editApp", "Edit App")]
287
287
  }),
288
288
  /* @__PURE__ */ X("button", {
289
- onClick: () => M(!0),
290
- disabled: !_,
291
- "aria-disabled": !_,
289
+ onClick: () => j(!0),
290
+ disabled: !y,
291
+ "aria-disabled": !y,
292
292
  className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50",
293
- children: [/* @__PURE__ */ Y(ce, { size: 16 }), h("devportal.deactivate", "Deactivate")]
293
+ children: [/* @__PURE__ */ Y(ce, { size: 16 }), f("devportal.deactivate", "Deactivate")]
294
294
  })
295
295
  ]
296
296
  }),
297
297
  children: [
298
- N && /* @__PURE__ */ Y(f, {
299
- title: h("devportal.newAppSecretGenerated", "New App Secret Generated"),
300
- secret: N,
301
- description: h("devportal.appSecretRotatedDescription", "Your app secret has been rotated. The old secret is no longer valid."),
302
- onDismiss: () => P(null)
298
+ M && /* @__PURE__ */ Y(x, {
299
+ title: f("devportal.newAppSecretGenerated", "New App Secret Generated"),
300
+ secret: M,
301
+ description: f("devportal.appSecretRotatedDescription", "Your app secret has been rotated. The old secret is no longer valid."),
302
+ onDismiss: () => N(null)
303
303
  }),
304
304
  /* @__PURE__ */ X("div", {
305
305
  className: "flex flex-wrap items-center gap-2",
306
306
  children: [
307
- /* @__PURE__ */ Y(c, {
307
+ /* @__PURE__ */ Y(_, {
308
308
  status: Z.status,
309
309
  type: "app"
310
310
  }),
311
- /* @__PURE__ */ Y(c, {
311
+ /* @__PURE__ */ Y(_, {
312
312
  status: Z.visibility,
313
313
  type: "app"
314
314
  }),
315
- Z.isVerified && /* @__PURE__ */ Y(l, { verified: !0 }),
316
- Z.isFeatured && /* @__PURE__ */ Y(s, {}),
315
+ Z.isVerified && /* @__PURE__ */ Y(v, { verified: !0 }),
316
+ Z.isFeatured && /* @__PURE__ */ Y(g, {}),
317
317
  /* @__PURE__ */ Y("span", {
318
318
  className: "text-sm text-muted-foreground",
319
- children: o[Z.appType] || Z.appType
319
+ children: h[Z.appType] || Z.appType
320
320
  })
321
321
  ]
322
322
  }),
@@ -325,16 +325,16 @@ var ge = [
325
325
  children: /* @__PURE__ */ Y("nav", {
326
326
  className: "-mb-px flex gap-4 overflow-x-auto",
327
327
  role: "tablist",
328
- "aria-label": h("devportal.applicationSections", "Application sections"),
328
+ "aria-label": f("devportal.applicationSections", "Application sections"),
329
329
  children: ge.map((e) => {
330
330
  let n = e.icon;
331
331
  return /* @__PURE__ */ X("button", {
332
332
  id: `application-tab-${e.id}`,
333
333
  role: "tab",
334
- "aria-selected": x === e.id,
334
+ "aria-selected": C === e.id,
335
335
  "aria-controls": `application-panel-${e.id}`,
336
- onClick: () => C(e.id),
337
- className: t("flex items-center gap-2 border-b-2 px-1 py-3 text-sm font-medium transition-colors", x === e.id ? "border-primary text-primary" : "border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"),
336
+ onClick: () => w(e.id),
337
+ className: t("flex items-center gap-2 border-b-2 px-1 py-3 text-sm font-medium transition-colors", C === e.id ? "border-primary text-primary" : "border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"),
338
338
  children: [/* @__PURE__ */ Y(n, { size: 16 }), e.label]
339
339
  }, e.id);
340
340
  })
@@ -342,80 +342,80 @@ var ge = [
342
342
  }),
343
343
  /* @__PURE__ */ X("div", {
344
344
  className: "mt-6",
345
- id: `application-panel-${x}`,
345
+ id: `application-panel-${C}`,
346
346
  role: "tabpanel",
347
- "aria-labelledby": `application-tab-${x}`,
347
+ "aria-labelledby": `application-tab-${C}`,
348
348
  tabIndex: 0,
349
349
  children: [
350
- x === "overview" && /* @__PURE__ */ Y(Ee, { app: Z }),
351
- x === "oauth" && /* @__PURE__ */ Y(xe, {
350
+ C === "overview" && /* @__PURE__ */ Y(Ee, { app: Z }),
351
+ C === "oauth" && /* @__PURE__ */ Y(xe, {
352
352
  appId: Z.appId || Z.id,
353
353
  onNavigate: q
354
354
  }),
355
- x === "api-keys" && /* @__PURE__ */ Y(Se, {
355
+ C === "api-keys" && /* @__PURE__ */ Y(Se, {
356
356
  appId: Z.appId || Z.id,
357
357
  onNavigate: q
358
358
  }),
359
- x === "webhooks" && /* @__PURE__ */ Y(Ce, {
359
+ C === "webhooks" && /* @__PURE__ */ Y(Ce, {
360
360
  appId: Z.id,
361
361
  onNavigate: q
362
362
  }),
363
- x === "delegations" && /* @__PURE__ */ Y(we, {
363
+ C === "delegations" && /* @__PURE__ */ Y(we, {
364
364
  authAppId: Z.appId || void 0,
365
365
  appName: Z.name,
366
- onGrantDelegation: () => z(!0),
366
+ onGrantDelegation: () => R(!0),
367
367
  onNavigate: q
368
368
  }),
369
- x === "analytics" && /* @__PURE__ */ Y(Te, { appId: Z.id }),
370
- x === "playground" && /* @__PURE__ */ Y(je, { app: Z }),
371
- x === "store-listing" && /* @__PURE__ */ Y(Le, { app: Z })
369
+ C === "analytics" && /* @__PURE__ */ Y(Te, { appId: Z.id }),
370
+ C === "playground" && /* @__PURE__ */ Y(je, { app: Z }),
371
+ C === "store-listing" && /* @__PURE__ */ Y(Le, { app: Z })
372
372
  ]
373
373
  }),
374
- /* @__PURE__ */ Y(v, {
374
+ /* @__PURE__ */ Y(D, {
375
375
  open: T,
376
- onOpenChange: D,
376
+ onOpenChange: E,
377
377
  onConfirm: ue,
378
- title: h("devportal.rotateAppSecret", "Rotate App Secret"),
379
- description: h("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."),
380
- confirmLabel: h("devportal.rotateSecret", "Rotate Secret"),
381
- cancelLabel: h("devportal.cancel", "Cancel"),
378
+ title: f("devportal.rotateAppSecret", "Rotate App Secret"),
379
+ description: f("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."),
380
+ confirmLabel: f("devportal.rotateSecret", "Rotate Secret"),
381
+ cancelLabel: f("devportal.cancel", "Cancel"),
382
382
  variant: "warning",
383
383
  loading: se
384
384
  }),
385
- /* @__PURE__ */ Y(v, {
386
- open: A,
387
- onOpenChange: M,
385
+ /* @__PURE__ */ Y(D, {
386
+ open: te,
387
+ onOpenChange: j,
388
388
  onConfirm: de,
389
- title: h("devportal.deactivateApplication", "Deactivate Application"),
390
- description: h("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."),
391
- confirmLabel: h("devportal.deactivate", "Deactivate"),
392
- cancelLabel: h("devportal.cancel", "Cancel"),
389
+ title: f("devportal.deactivateApplication", "Deactivate Application"),
390
+ description: f("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."),
391
+ confirmLabel: f("devportal.deactivate", "Deactivate"),
392
+ cancelLabel: f("devportal.cancel", "Cancel"),
393
393
  variant: "destructive",
394
394
  loading: W
395
395
  }),
396
396
  /* @__PURE__ */ Y(ee, {
397
- open: R,
398
- onOpenChange: z,
397
+ open: L,
398
+ onOpenChange: R,
399
399
  appId: Z.appId || "",
400
400
  appName: Z.name,
401
401
  appScopes: Z.scopes?.map((e) => e.scope) ?? [],
402
402
  onSuccess: () => {
403
- z(!1);
403
+ R(!1);
404
404
  }
405
405
  })
406
406
  ]
407
- }) : /* @__PURE__ */ Y(i, {
408
- title: h("devportal.notFound", "Not Found"),
409
- backLink: `${u}/apps`,
410
- backLabel: h("devportal.backToApplications", "Back to Applications"),
407
+ }) : /* @__PURE__ */ Y(p, {
408
+ title: f("devportal.notFound", "Not Found"),
409
+ backLink: `${o}/apps`,
410
+ backLabel: f("devportal.backToApplications", "Back to Applications"),
411
411
  children: /* @__PURE__ */ Y(r, {
412
- icon: /* @__PURE__ */ Y(te, { size: 48 }),
413
- title: h("devportal.applicationNotFound", "Application not found"),
414
- description: h("devportal.applicationNotFoundDescription", "The application you're looking for doesn't exist or you don't have access to it.")
412
+ icon: /* @__PURE__ */ Y(ne, { size: 48 }),
413
+ title: f("devportal.applicationNotFound", "Application not found"),
414
+ description: f("devportal.applicationNotFoundDescription", "The application you're looking for doesn't exist or you don't have access to it.")
415
415
  })
416
416
  });
417
417
  }, xe = ({ onNavigate: e }) => {
418
- let { t } = I(), n = (e, n) => {
418
+ let { t } = F(), n = (e, n) => {
419
419
  let r = t(e);
420
420
  return r === e ? n : r;
421
421
  };
@@ -439,7 +439,7 @@ var ge = [
439
439
  ]
440
440
  });
441
441
  }, Se = ({ onNavigate: e }) => {
442
- let { t } = I(), n = (e, n) => {
442
+ let { t } = F(), n = (e, n) => {
443
443
  let r = t(e);
444
444
  return r === e ? n : r;
445
445
  };
@@ -463,46 +463,46 @@ var ge = [
463
463
  ]
464
464
  });
465
465
  }, Ce = ({ appId: e, onNavigate: t }) => {
466
- let { t: n } = I(), r = (e, t) => {
466
+ let { t: n } = F(), r = (e, t) => {
467
467
  let r = n(e);
468
468
  return r === e ? t : r;
469
- }, { data: i, loading: a, error: o } = C({ variables: { applicationId: e } });
469
+ }, { data: i, loading: a, error: o } = c({ variables: { applicationId: e } });
470
470
  return a ? /* @__PURE__ */ Y(ve, { message: r("devportal.loadingWebhooks", "Loading webhooks...") }) : o ? /* @__PURE__ */ Y(ye, { message: o.message }) : /* @__PURE__ */ Y(De, {
471
471
  appId: e,
472
472
  webhooks: (i?.webhooks ?? []).map(Z),
473
473
  onNavigate: t
474
474
  });
475
- }, we = ({ authAppId: e, appName: t, onGrantDelegation: n, onNavigate: i }) => {
476
- let { t: a } = I(), o = (e, t) => {
477
- let n = a(e);
475
+ }, we = ({ authAppId: e, appName: t, onGrantDelegation: n, onNavigate: a }) => {
476
+ let { t: o } = F(), s = (e, t) => {
477
+ let n = o(e);
478
478
  return n === e ? t : n;
479
- }, { data: s, loading: c, error: l, refetch: u } = y(), [d] = T(), [f, p] = F([]), [m, h] = F(!1), [g, _] = F(/* @__PURE__ */ new Set()), [b, x] = F(null), S = N(() => s?.currentUserDelegations ? s.currentUserDelegations.filter((t) => t.appId === e).map(he) : [], [e, s]), C = N(() => S.filter((e) => e.status === "ACTIVE"), [S]), w = N(() => C.filter((e) => g.has(e.id)), [C, g]), E = C.length > 0 && C.every((e) => g.has(e.id)), D = C.some((e) => g.has(e.id)) && !E, ee = j((e, t) => {
480
- _((n) => {
479
+ }, { data: c, loading: l, error: d, refetch: f } = i(), [p] = u(), [m, h] = P([]), [g, _] = P(!1), [v, y] = P(/* @__PURE__ */ new Set()), [b, x] = P(null), S = M(() => c?.currentUserDelegations?.delegations ? c.currentUserDelegations.delegations.filter((t) => t.appId === e).map(he) : [], [e, c]), C = M(() => S.filter((e) => e.status === "ACTIVE"), [S]), w = M(() => C.filter((e) => v.has(e.id)), [C, v]), T = C.length > 0 && C.every((e) => v.has(e.id)), E = C.some((e) => v.has(e.id)) && !T, ee = A((e, t) => {
480
+ y((n) => {
481
481
  let r = new Set(n);
482
482
  return t ? r.add(e) : r.delete(e), r;
483
483
  });
484
- }, []), O = j((e) => {
485
- _((t) => {
484
+ }, []), O = A((e) => {
485
+ y((t) => {
486
486
  let n = new Set(t);
487
487
  return C.forEach((t) => {
488
488
  e ? n.add(t.id) : n.delete(t.id);
489
489
  }), n;
490
490
  });
491
- }, [C]), k = j(() => {
492
- _(/* @__PURE__ */ new Set());
493
- }, []), A = j(async (e) => {
494
- h(!0);
491
+ }, [C]), k = A(() => {
492
+ y(/* @__PURE__ */ new Set());
493
+ }, []), te = A(async (e) => {
494
+ _(!0);
495
495
  try {
496
- let t = await Promise.allSettled(e.map((e) => d({ variables: { id: e } }))), n = t.filter((e) => e.status === "fulfilled").length, r = t.length - n;
497
- x(`Revoked ${n} delegation${n === 1 ? "" : "s"}${r > 0 ? ` • ${r} failed` : ""}`), _((t) => {
496
+ let t = await Promise.allSettled(e.map((e) => p({ variables: { id: e } }))), n = t.filter((e) => e.status === "fulfilled").length, r = t.length - n;
497
+ x(`Revoked ${n} delegation${n === 1 ? "" : "s"}${r > 0 ? ` • ${r} failed` : ""}`), y((t) => {
498
498
  let n = new Set(t);
499
499
  return e.forEach((e) => n.delete(e)), n;
500
- }), p([]), u();
500
+ }), h([]), f();
501
501
  } catch {} finally {
502
- h(!1);
502
+ _(!1);
503
503
  }
504
- }, [d, u]);
505
- return e ? c ? /* @__PURE__ */ Y(ve, { message: o("devportal.loadingDelegations", "Loading delegations...") }) : l ? /* @__PURE__ */ Y(ye, { message: l.message }) : /* @__PURE__ */ X(J, { children: [
504
+ }, [p, f]);
505
+ return e ? l ? /* @__PURE__ */ Y(ve, { message: s("devportal.loadingDelegations", "Loading delegations...") }) : d ? /* @__PURE__ */ Y(ye, { message: d.message }) : /* @__PURE__ */ X(J, { children: [
506
506
  b && /* @__PURE__ */ Y("div", {
507
507
  className: "rounded-lg border border-border-subtle bg-status-success-bg-subtle p-3 text-sm text-status-success-text",
508
508
  children: /* @__PURE__ */ X("div", {
@@ -510,7 +510,7 @@ var ge = [
510
510
  children: [/* @__PURE__ */ Y("span", { children: b }), /* @__PURE__ */ Y("button", {
511
511
  onClick: () => x(null),
512
512
  className: "text-status-success-text hover:text-status-success-text",
513
- children: o("devportal.dismiss", "Dismiss")
513
+ children: s("devportal.dismiss", "Dismiss")
514
514
  })]
515
515
  })
516
516
  }),
@@ -518,56 +518,56 @@ var ge = [
518
518
  appName: t,
519
519
  delegations: S,
520
520
  onGrantDelegation: n,
521
- onRevokeDelegation: (e) => p([e]),
522
- selectedDelegationIds: g,
521
+ onRevokeDelegation: (e) => h([e]),
522
+ selectedDelegationIds: v,
523
523
  onToggleSelectDelegation: ee,
524
524
  onToggleAllDelegations: O,
525
525
  onClearSelection: k,
526
- onRevokeSelected: () => p(w.map((e) => e.id)),
527
- allVisibleSelected: E,
528
- partiallySelected: D
526
+ onRevokeSelected: () => h(w.map((e) => e.id)),
527
+ allVisibleSelected: T,
528
+ partiallySelected: E
529
529
  }),
530
- /* @__PURE__ */ Y(v, {
531
- open: f.length > 0,
530
+ /* @__PURE__ */ Y(D, {
531
+ open: m.length > 0,
532
532
  onOpenChange: (e) => {
533
- e || p([]);
533
+ e || h([]);
534
534
  },
535
535
  onConfirm: () => {
536
- f.length > 0 && A(f);
536
+ m.length > 0 && te(m);
537
537
  },
538
- title: f.length > 1 ? o("devportal.revokeDelegations", "Revoke Delegations") : o("devportal.revokeDelegation", "Revoke Delegation"),
539
- description: f.length > 1 ? o("devportal.revokeMultipleDelegationsDescription", `This will immediately revoke ${f.length} selected delegations.`) : o("devportal.revokeDelegationDescription", "This will immediately revoke the delegation. The app will no longer be able to act on your behalf with the selected permissions."),
540
- confirmLabel: o("devportal.revoke", "Revoke"),
541
- cancelLabel: o("devportal.cancel", "Cancel"),
538
+ title: m.length > 1 ? s("devportal.revokeDelegations", "Revoke Delegations") : s("devportal.revokeDelegation", "Revoke Delegation"),
539
+ description: m.length > 1 ? s("devportal.revokeMultipleDelegationsDescription", `This will immediately revoke ${m.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."),
540
+ confirmLabel: s("devportal.revoke", "Revoke"),
541
+ cancelLabel: s("devportal.cancel", "Cancel"),
542
542
  variant: "destructive",
543
- loading: m
543
+ loading: g
544
544
  })
545
545
  ] }) : /* @__PURE__ */ Y(r, {
546
546
  icon: /* @__PURE__ */ Y(W, { size: 32 }),
547
- title: o("devportal.linkAuthAppFirst", "Link an auth app first"),
548
- description: o("devportal.linkAuthAppFirstDescription", "Delegations are managed through auth apps. Create or link an auth app before granting app-as-user access."),
547
+ title: s("devportal.linkAuthAppFirst", "Link an auth app first"),
548
+ description: s("devportal.linkAuthAppFirstDescription", "Delegations are managed through auth apps. Create or link an auth app before granting app-as-user access."),
549
549
  action: /* @__PURE__ */ X("button", {
550
- onClick: () => i("/oauth"),
550
+ onClick: () => a("/oauth"),
551
551
  className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",
552
- children: [/* @__PURE__ */ Y(B, { size: 16 }), o("devportal.manageOAuthApps", "Manage OAuth Apps")]
552
+ children: [/* @__PURE__ */ Y(B, { size: 16 }), s("devportal.manageOAuthApps", "Manage OAuth Apps")]
553
553
  })
554
554
  });
555
555
  }, Te = ({ appId: e }) => {
556
- let { t } = I(), n = (e, n) => {
556
+ let { t } = F(), n = (e, n) => {
557
557
  let r = t(e);
558
558
  return r === e ? n : r;
559
- }, r = N(() => /* @__PURE__ */ new Date(), []), { data: i, loading: a, error: o } = x({ variables: {
559
+ }, r = M(() => /* @__PURE__ */ new Date(), []), { data: i, loading: a, error: s } = o({ variables: {
560
560
  applicationId: e,
561
561
  period: "daily",
562
- startDate: N(() => {
562
+ startDate: M(() => {
563
563
  let e = new Date(r);
564
564
  return e.setDate(e.getDate() - 30), e;
565
565
  }, [r]).toISOString(),
566
566
  endDate: r.toISOString()
567
567
  } });
568
- return a ? /* @__PURE__ */ Y(ve, { message: n("devportal.loadingAnalytics", "Loading analytics...") }) : o ? /* @__PURE__ */ Y(ye, { message: o.message }) : /* @__PURE__ */ Y(ke, { analytics: (i?.applicationAnalytics ?? []).map(me) });
568
+ return a ? /* @__PURE__ */ Y(ve, { message: n("devportal.loadingAnalytics", "Loading analytics...") }) : s ? /* @__PURE__ */ Y(ye, { message: s.message }) : /* @__PURE__ */ Y(ke, { analytics: (i?.applicationAnalytics ?? []).map(me) });
569
569
  }, Ee = ({ app: e }) => {
570
- let { t } = I(), n = (e, n) => {
570
+ let { t } = F(), n = (e, n) => {
571
571
  let r = t(e);
572
572
  return r === e ? n : r;
573
573
  };
@@ -597,7 +597,7 @@ var ge = [
597
597
  })
598
598
  ]
599
599
  }),
600
- /* @__PURE__ */ Y(a, {
600
+ /* @__PURE__ */ Y(m, {
601
601
  title: n("devportal.description", "Description"),
602
602
  children: /* @__PURE__ */ Y("div", {
603
603
  className: "prose prose-sm max-w-none",
@@ -607,7 +607,7 @@ var ge = [
607
607
  })
608
608
  })
609
609
  }),
610
- /* @__PURE__ */ Y(a, {
610
+ /* @__PURE__ */ Y(m, {
611
611
  title: n("devportal.tagsAndKeywords", "Tags & Keywords"),
612
612
  children: /* @__PURE__ */ X("div", {
613
613
  className: "space-y-3",
@@ -635,9 +635,9 @@ var ge = [
635
635
  ]
636
636
  }), /* @__PURE__ */ X("div", {
637
637
  className: "space-y-6",
638
- children: [/* @__PURE__ */ Y(a, {
638
+ children: [/* @__PURE__ */ Y(m, {
639
639
  title: n("devportal.details", "Details"),
640
- children: /* @__PURE__ */ Y(m, { items: [
640
+ children: /* @__PURE__ */ Y(C, { items: [
641
641
  {
642
642
  label: n("devportal.appId", "App ID"),
643
643
  value: /* @__PURE__ */ Y("code", {
@@ -670,7 +670,7 @@ var ge = [
670
670
  value: e.publishedAt ? new Date(e.publishedAt).toLocaleDateString() : n("devportal.notPublished", "Not published")
671
671
  }
672
672
  ] })
673
- }), /* @__PURE__ */ Y(a, {
673
+ }), /* @__PURE__ */ Y(m, {
674
674
  title: n("devportal.links", "Links"),
675
675
  children: /* @__PURE__ */ X("div", {
676
676
  className: "space-y-2",
@@ -705,7 +705,7 @@ var ge = [
705
705
  })]
706
706
  });
707
707
  }, De = ({ appId: e, webhooks: t, onNavigate: n }) => {
708
- let { t: i } = I(), a = (e, t) => {
708
+ let { t: i } = F(), a = (e, t) => {
709
709
  let n = i(e);
710
710
  return n === e ? t : n;
711
711
  };
@@ -739,7 +739,7 @@ var ge = [
739
739
  children: [/* @__PURE__ */ Y("h3", {
740
740
  className: "font-medium",
741
741
  children: t.name
742
- }), /* @__PURE__ */ Y(c, {
742
+ }), /* @__PURE__ */ Y(_, {
743
743
  status: t.status,
744
744
  type: "webhook"
745
745
  })]
@@ -815,11 +815,11 @@ var ge = [
815
815
  })
816
816
  })]
817
817
  });
818
- }, Oe = ({ appName: e, delegations: n, onGrantDelegation: i, onRevokeDelegation: a, selectedDelegationIds: o, onToggleSelectDelegation: s, onToggleAllDelegations: c, onClearSelection: l, onRevokeSelected: d, allVisibleSelected: f, partiallySelected: p }) => {
819
- let { t: m } = I(), h = (e, t) => {
820
- let n = m(e);
818
+ }, Oe = ({ appName: e, delegations: n, onGrantDelegation: i, onRevokeDelegation: a, selectedDelegationIds: o, onToggleSelectDelegation: s, onToggleAllDelegations: c, onClearSelection: l, onRevokeSelected: u, allVisibleSelected: d, partiallySelected: f }) => {
819
+ let { t: p } = F(), m = (e, t) => {
820
+ let n = p(e);
821
821
  return n === e ? t : n;
822
- }, g = n.filter((e) => e.status === "ACTIVE"), _ = n.filter((e) => e.status !== "ACTIVE");
822
+ }, h = n.filter((e) => e.status === "ACTIVE"), g = n.filter((e) => e.status !== "ACTIVE");
823
823
  return /* @__PURE__ */ X("div", {
824
824
  className: "space-y-6",
825
825
  children: [
@@ -830,31 +830,31 @@ var ge = [
830
830
  children: [
831
831
  n.length,
832
832
  " ",
833
- n.length === 1 ? h("devportal.delegation", "delegation") : h("devportal.delegations", "delegations"),
833
+ n.length === 1 ? m("devportal.delegation", "delegation") : m("devportal.delegations", "delegations"),
834
834
  " ",
835
- h("devportal.for", "for"),
835
+ m("devportal.for", "for"),
836
836
  " ",
837
837
  e
838
838
  ]
839
- }), g.length > 0 && /* @__PURE__ */ X("p", {
839
+ }), h.length > 0 && /* @__PURE__ */ X("p", {
840
840
  className: "text-xs text-muted-foreground mt-0.5",
841
841
  children: [
842
- g.length,
842
+ h.length,
843
843
  " ",
844
- h("devportal.active", "active"),
844
+ m("devportal.active", "active"),
845
845
  ",",
846
846
  " ",
847
- _.length,
847
+ g.length,
848
848
  " ",
849
- h("devportal.revokedExpired", "revoked/expired")
849
+ m("devportal.revokedExpired", "revoked/expired")
850
850
  ]
851
851
  })] }), /* @__PURE__ */ X("button", {
852
852
  onClick: i,
853
853
  className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",
854
- children: [/* @__PURE__ */ Y(U, { size: 16 }), h("devportal.grantDelegation", "Grant Delegation")]
854
+ children: [/* @__PURE__ */ Y(U, { size: 16 }), m("devportal.grantDelegation", "Grant Delegation")]
855
855
  })]
856
856
  }),
857
- g.length > 0 && /* @__PURE__ */ Y("div", {
857
+ h.length > 0 && /* @__PURE__ */ Y("div", {
858
858
  className: "rounded-lg border bg-card p-4",
859
859
  children: /* @__PURE__ */ X("div", {
860
860
  className: "flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",
@@ -862,19 +862,19 @@ var ge = [
862
862
  className: "flex flex-wrap items-center gap-3",
863
863
  children: [/* @__PURE__ */ X("div", {
864
864
  className: "flex items-center gap-2",
865
- children: [/* @__PURE__ */ Y(u, {
866
- checked: f,
867
- indeterminate: p,
865
+ children: [/* @__PURE__ */ Y(y, {
866
+ checked: d,
867
+ indeterminate: f,
868
868
  onChange: c,
869
- ariaLabel: h("devportal.selectAllActiveDelegations", "Select all active app delegations")
869
+ ariaLabel: m("devportal.selectAllActiveDelegations", "Select all active app delegations")
870
870
  }), /* @__PURE__ */ Y("span", {
871
871
  className: "text-sm font-medium",
872
- children: h("devportal.selectAllActive", "Select all active")
872
+ children: m("devportal.selectAllActive", "Select all active")
873
873
  })]
874
874
  }), o.size > 0 && /* @__PURE__ */ Y("button", {
875
875
  onClick: l,
876
876
  className: "text-sm text-muted-foreground hover:text-foreground",
877
- children: h("devportal.clearSelection", "Clear selection")
877
+ children: m("devportal.clearSelection", "Clear selection")
878
878
  })]
879
879
  }), /* @__PURE__ */ X("div", {
880
880
  className: "flex flex-wrap items-center gap-2",
@@ -883,13 +883,13 @@ var ge = [
883
883
  children: [
884
884
  o.size,
885
885
  " ",
886
- h("devportal.selected", "selected")
886
+ m("devportal.selected", "selected")
887
887
  ]
888
888
  }), /* @__PURE__ */ X("button", {
889
- onClick: d,
889
+ onClick: u,
890
890
  disabled: o.size === 0,
891
891
  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",
892
- children: [h("devportal.revokeSelected", "Revoke Selected"), o.size > 0 ? ` (${o.size})` : ""]
892
+ children: [m("devportal.revokeSelected", "Revoke Selected"), o.size > 0 ? ` (${o.size})` : ""]
893
893
  })]
894
894
  })]
895
895
  })
@@ -905,7 +905,7 @@ var ge = [
905
905
  className: "flex items-start gap-3",
906
906
  children: [e.status === "ACTIVE" && /* @__PURE__ */ Y("div", {
907
907
  onClick: (e) => e.stopPropagation(),
908
- children: /* @__PURE__ */ Y(u, {
908
+ children: /* @__PURE__ */ Y(y, {
909
909
  checked: o.has(e.id),
910
910
  onChange: (t) => s(e.id, t),
911
911
  ariaLabel: `Select delegation ${e.id}`,
@@ -923,24 +923,24 @@ var ge = [
923
923
  }), /* @__PURE__ */ X("p", {
924
924
  className: "text-sm text-muted-foreground mt-1",
925
925
  children: [
926
- h("devportal.granted", "Granted"),
926
+ m("devportal.granted", "Granted"),
927
927
  " ",
928
928
  new Date(e.grantedAt).toLocaleDateString(),
929
929
  " ",
930
- h("devportal.by", "by"),
930
+ m("devportal.by", "by"),
931
931
  " ",
932
- e.grantedBy === e.userId ? h("devportal.you", "you") : e.grantedBy.slice(0, 8)
932
+ e.grantedBy === e.userId ? m("devportal.you", "you") : e.grantedBy.slice(0, 8)
933
933
  ]
934
934
  })] })]
935
935
  }), e.status === "ACTIVE" && /* @__PURE__ */ X("button", {
936
936
  onClick: () => a(e.id),
937
937
  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",
938
- children: [/* @__PURE__ */ Y(de, { size: 14 }), h("devportal.revoke", "Revoke")]
938
+ children: [/* @__PURE__ */ Y(de, { size: 14 }), m("devportal.revoke", "Revoke")]
939
939
  })]
940
940
  }),
941
941
  /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
942
942
  className: "text-xs text-muted-foreground mb-2",
943
- children: h("devportal.grantedScopes", "Granted Scopes")
943
+ children: m("devportal.grantedScopes", "Granted Scopes")
944
944
  }), /* @__PURE__ */ Y("div", {
945
945
  className: "flex flex-wrap gap-2",
946
946
  children: e.scopes.map((e) => /* @__PURE__ */ Y("span", {
@@ -950,7 +950,7 @@ var ge = [
950
950
  })] }),
951
951
  e.workspaceIds.length > 0 && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
952
952
  className: "text-xs text-muted-foreground mb-2",
953
- children: h("devportal.workspaceScope", "Workspace Scope")
953
+ children: m("devportal.workspaceScope", "Workspace Scope")
954
954
  }), /* @__PURE__ */ Y("div", {
955
955
  className: "flex flex-wrap gap-2",
956
956
  children: e.workspaceIds.map((e) => /* @__PURE__ */ Y("code", {
@@ -964,18 +964,18 @@ var ge = [
964
964
  e.expiresAt && /* @__PURE__ */ X("span", {
965
965
  className: "flex items-center gap-1",
966
966
  children: [
967
- /* @__PURE__ */ Y(ne, { size: 12 }),
968
- h("devportal.expires", "Expires"),
967
+ /* @__PURE__ */ Y(z, { size: 12 }),
968
+ m("devportal.expires", "Expires"),
969
969
  " ",
970
970
  new Date(e.expiresAt).toLocaleDateString()
971
971
  ]
972
972
  }),
973
973
  !e.expiresAt && e.status === "ACTIVE" && /* @__PURE__ */ X("span", {
974
974
  className: "flex items-center gap-1",
975
- children: [/* @__PURE__ */ Y(z, {
975
+ children: [/* @__PURE__ */ Y(R, {
976
976
  size: 12,
977
977
  className: "text-status-success-text"
978
- }), h("devportal.noExpiration", "No expiration")]
978
+ }), m("devportal.noExpiration", "No expiration")]
979
979
  }),
980
980
  e.revokedAt && /* @__PURE__ */ X("span", {
981
981
  className: "flex items-center gap-1",
@@ -984,7 +984,7 @@ var ge = [
984
984
  size: 12,
985
985
  className: "text-status-error-text"
986
986
  }),
987
- h("devportal.revoked", "Revoked"),
987
+ m("devportal.revoked", "Revoked"),
988
988
  " ",
989
989
  new Date(e.revokedAt).toLocaleDateString()
990
990
  ]
@@ -995,21 +995,21 @@ var ge = [
995
995
  }, e.id))
996
996
  }) : /* @__PURE__ */ Y(r, {
997
997
  icon: /* @__PURE__ */ Y(q, { size: 32 }),
998
- title: h("devportal.noDelegations", "No delegations"),
999
- description: h("devportal.noDelegationsDescription", "Grant a delegation to allow this app to act on your behalf"),
998
+ title: m("devportal.noDelegations", "No delegations"),
999
+ description: m("devportal.noDelegationsDescription", "Grant a delegation to allow this app to act on your behalf"),
1000
1000
  action: /* @__PURE__ */ X("button", {
1001
1001
  onClick: i,
1002
1002
  className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",
1003
- children: [/* @__PURE__ */ Y(U, { size: 16 }), h("devportal.grantDelegation", "Grant Delegation")]
1003
+ children: [/* @__PURE__ */ Y(U, { size: 16 }), m("devportal.grantDelegation", "Grant Delegation")]
1004
1004
  })
1005
1005
  })
1006
1006
  ]
1007
1007
  });
1008
1008
  }, ke = ({ analytics: e }) => {
1009
- let { t } = I(), n = (e, n) => {
1009
+ let { t } = F(), n = (e, n) => {
1010
1010
  let r = t(e);
1011
1011
  return r === e ? n : r;
1012
- }, i = e[0], o = e[1], s = (e, t) => t ? (e - t) / t * 100 : 0;
1012
+ }, i = e[0], a = e[1], o = (e, t) => t ? (e - t) / t * 100 : 0;
1013
1013
  return /* @__PURE__ */ X("div", {
1014
1014
  className: "space-y-6",
1015
1015
  children: [/* @__PURE__ */ X("div", {
@@ -1018,27 +1018,27 @@ var ge = [
1018
1018
  /* @__PURE__ */ Y(Q, {
1019
1019
  label: n("devportal.activeUsers", "Active Users"),
1020
1020
  value: i?.activeUsers.toLocaleString() || "0",
1021
- trend: o ? s(i.activeUsers, o.activeUsers) : void 0
1021
+ trend: a ? o(i.activeUsers, a.activeUsers) : void 0
1022
1022
  }),
1023
1023
  /* @__PURE__ */ Y(Q, {
1024
1024
  label: n("devportal.apiCalls", "API Calls"),
1025
1025
  value: i ? `${(i.apiCalls / 1e3).toFixed(1)}K` : "0",
1026
- trend: o ? s(i.apiCalls, o.apiCalls) : void 0
1026
+ trend: a ? o(i.apiCalls, a.apiCalls) : void 0
1027
1027
  }),
1028
1028
  /* @__PURE__ */ Y(Q, {
1029
1029
  label: n("devportal.avgResponseTime", "Avg Response Time"),
1030
1030
  value: i?.avgResponseTime ? `${i.avgResponseTime}ms` : n("devportal.notAvailable", "N/A"),
1031
- trend: o && i?.avgResponseTime ? -s(i.avgResponseTime, o.avgResponseTime || 1) : void 0
1031
+ trend: a && i?.avgResponseTime ? -o(i.avgResponseTime, a.avgResponseTime || 1) : void 0
1032
1032
  }),
1033
1033
  /* @__PURE__ */ Y(Q, {
1034
1034
  label: n("devportal.errorRate", "Error Rate"),
1035
1035
  value: i && i.apiCalls > 0 ? `${(i.errors / i.apiCalls * 100).toFixed(2)}%` : "0%",
1036
- trend: o && i && i.apiCalls > 0 && o.apiCalls > 0 ? -s(i.errors / i.apiCalls, o.errors / o.apiCalls) : void 0
1036
+ trend: a && i && i.apiCalls > 0 && a.apiCalls > 0 ? -o(i.errors / i.apiCalls, a.errors / a.apiCalls) : void 0
1037
1037
  })
1038
1038
  ]
1039
- }), /* @__PURE__ */ Y(a, {
1039
+ }), /* @__PURE__ */ Y(m, {
1040
1040
  title: n("devportal.dailyBreakdown", "Daily Breakdown"),
1041
- children: e.length > 0 ? /* @__PURE__ */ Y(p, {
1041
+ children: e.length > 0 ? /* @__PURE__ */ Y(S, {
1042
1042
  data: e,
1043
1043
  keyField: "id",
1044
1044
  columns: [
@@ -1079,17 +1079,17 @@ var ge = [
1079
1079
  }
1080
1080
  ]
1081
1081
  }) : /* @__PURE__ */ Y(r, {
1082
- icon: /* @__PURE__ */ Y(R, { size: 32 }),
1082
+ icon: /* @__PURE__ */ Y(L, { size: 32 }),
1083
1083
  title: n("devportal.noAnalyticsData", "No analytics data"),
1084
1084
  description: n("devportal.noAnalyticsDataDescription", "Analytics data will appear here once the application starts receiving traffic.")
1085
1085
  })
1086
1086
  })]
1087
1087
  });
1088
1088
  }, Ae = "# Sample query - modify as needed\nquery IntrospectSchema {\n __schema {\n queryType { name }\n mutationType { name }\n types {\n name\n kind\n }\n }\n}", je = ({ app: t }) => {
1089
- let { apiGatewayUrl: n, authToken: r } = e(), { t: i } = I(), a = (e, t) => {
1089
+ let { apiGatewayUrl: n, authToken: r } = e(), { t: i } = F(), a = (e, t) => {
1090
1090
  let n = i(e);
1091
1091
  return n === e ? t : n;
1092
- }, [o, s] = F(Ae), [c, l] = F("{}"), [u, d] = F(""), [f, p] = F(!1), [m, h] = F(`${n || "http://localhost:4000"}/global/graphql`), [g, _] = F(r || ""), [v, y] = F(!1), b = j(async () => {
1092
+ }, [o, s] = P(Ae), [c, l] = P("{}"), [u, d] = P(""), [f, p] = P(!1), [m, h] = P(`${n || "http://localhost:4000"}/global/graphql`), [g, _] = P(r || ""), [v, y] = P(!1), b = A(async () => {
1093
1093
  p(!0), d("");
1094
1094
  try {
1095
1095
  let e = {};
@@ -1120,7 +1120,7 @@ var ge = [
1120
1120
  c,
1121
1121
  m,
1122
1122
  g
1123
- ]), x = j(() => {
1123
+ ]), x = A(() => {
1124
1124
  r && _(r), y(!0);
1125
1125
  }, [r]);
1126
1126
  return /* @__PURE__ */ X("div", {
@@ -1402,87 +1402,87 @@ function Ie(e) {
1402
1402
  };
1403
1403
  }
1404
1404
  var Le = ({ app: t }) => {
1405
- let { workspacesGatewayUrl: n, authToken: r, workspaceId: i, getWorkspaceToken: o } = e(), { t: s } = I(), c = (e, t) => {
1406
- let n = s(e);
1405
+ let { workspacesGatewayUrl: n, authToken: r, workspaceId: i, getWorkspaceToken: a } = e(), { t: o } = F(), s = (e, t) => {
1406
+ let n = o(e);
1407
1407
  return n === e ? t : n;
1408
- }, [l, u] = F(() => Ie(t)), [f, p] = F(!1), m = P(t);
1409
- m.current = t;
1410
- let [v] = D();
1411
- M(() => {
1412
- u(Ie(m.current));
1408
+ }, [c, l] = P(() => Ie(t)), [u, d] = P(!1), p = N(t);
1409
+ p.current = t;
1410
+ let [h] = f();
1411
+ j(() => {
1412
+ l(Ie(p.current));
1413
1413
  }, [t.id]);
1414
- let y = (e, t) => {
1415
- u((n) => ({
1414
+ let g = (e, t) => {
1415
+ l((n) => ({
1416
1416
  ...n,
1417
1417
  [e]: t
1418
1418
  }));
1419
- }, b = async () => {
1420
- p(!0);
1419
+ }, _ = async () => {
1420
+ d(!0);
1421
1421
  try {
1422
- let e = l.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean), n = l.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), r = Me.has(l.manifestItemType), i = t.manifest ?? {}, a = {
1422
+ let e = c.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean), n = c.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), r = Me.has(c.manifestItemType), i = t.manifest ?? {}, a = {
1423
1423
  manifestVersion: typeof i.manifestVersion == "string" ? i.manifestVersion : "1.0",
1424
- itemType: l.manifestItemType || void 0,
1424
+ itemType: c.manifestItemType || void 0,
1425
1425
  identity: {
1426
- version: l.manifestVersion || "1.0.0",
1427
- displayName: l.manifestDisplayName
1426
+ version: c.manifestVersion || "1.0.0",
1427
+ displayName: c.manifestDisplayName
1428
1428
  },
1429
- ...r ? { jsonContent: l.manifestJsonContent || void 0 } : { digital: { install: {
1430
- type: l.manifestInstallType,
1431
- packageName: l.manifestPackageName,
1432
- registryUrl: l.manifestRegistryUrl
1429
+ ...r ? { jsonContent: c.manifestJsonContent || void 0 } : { digital: { install: {
1430
+ type: c.manifestInstallType,
1431
+ packageName: c.manifestPackageName,
1432
+ registryUrl: c.manifestRegistryUrl
1433
1433
  } } },
1434
1434
  permissions: n,
1435
- compatibility: { minPlatformVersion: l.manifestMinPlatformVersion }
1435
+ compatibility: { minPlatformVersion: c.manifestMinPlatformVersion }
1436
1436
  }, o = { ...t.pricingDetails ?? {} };
1437
- if (l.pricingType !== "FREE") {
1438
- let e = parseFloat(l.price);
1439
- isNaN(e) || (o.price = e), l.currency && (o.currency = l.currency);
1437
+ if (c.pricingType !== "FREE") {
1438
+ let e = parseFloat(c.price);
1439
+ isNaN(e) || (o.price = e), c.currency && (o.currency = c.currency);
1440
1440
  }
1441
- await v({ variables: {
1441
+ await h({ variables: {
1442
1442
  id: t.id,
1443
1443
  input: {
1444
- iconUrl: l.iconUrl || null,
1445
- bannerUrl: l.bannerUrl || null,
1446
- videoUrl: l.videoUrl || null,
1447
- shortDescription: l.shortDescription || null,
1448
- description: l.description || null,
1444
+ iconUrl: c.iconUrl || null,
1445
+ bannerUrl: c.bannerUrl || null,
1446
+ videoUrl: c.videoUrl || null,
1447
+ shortDescription: c.shortDescription || null,
1448
+ description: c.description || null,
1449
1449
  screenshots: e.length > 0 ? e : null,
1450
- websiteUrl: l.websiteUrl || null,
1451
- documentationUrl: l.documentationUrl || null,
1452
- githubUrl: l.githubUrl || null,
1453
- supportUrl: l.supportUrl || null,
1454
- privacyPolicyUrl: l.privacyPolicyUrl || null,
1455
- termsOfServiceUrl: l.termsOfServiceUrl || null,
1456
- pricingType: l.pricingType || null,
1450
+ websiteUrl: c.websiteUrl || null,
1451
+ documentationUrl: c.documentationUrl || null,
1452
+ githubUrl: c.githubUrl || null,
1453
+ supportUrl: c.supportUrl || null,
1454
+ privacyPolicyUrl: c.privacyPolicyUrl || null,
1455
+ termsOfServiceUrl: c.termsOfServiceUrl || null,
1456
+ pricingType: c.pricingType || null,
1457
1457
  pricingDetails: Object.keys(o).length > 0 ? o : null,
1458
1458
  manifest: a
1459
1459
  }
1460
- } }), d("success");
1460
+ } }), b("success");
1461
1461
  } catch {
1462
- d("error");
1462
+ b("error");
1463
1463
  } finally {
1464
- p(!1);
1464
+ d(!1);
1465
1465
  }
1466
- }, x = P(null), S = P(null), { upload: C, uploading: w, progress: T, error: E } = A(n, r, i, o), ee = j(async (e) => {
1466
+ }, v = N(null), y = N(null), { upload: x, uploading: S, progress: C, error: D } = te(n, r, i, a), ee = A(async (e) => {
1467
1467
  let t = e.target.files?.[0];
1468
1468
  if (t) {
1469
1469
  e.target.value = "";
1470
1470
  try {
1471
- let e = await C(t);
1472
- u((t) => ({
1471
+ let e = await x(t);
1472
+ l((t) => ({
1473
1473
  ...t,
1474
1474
  manifestRegistryUrl: e.downloadUrl
1475
1475
  }));
1476
1476
  } catch {}
1477
1477
  }
1478
- }, [C]), O = j((e) => {
1478
+ }, [x]), O = A((e) => {
1479
1479
  let t = e.target.files?.[0];
1480
1480
  if (!t) return;
1481
1481
  let n = new FileReader();
1482
1482
  n.onload = (e) => {
1483
1483
  try {
1484
1484
  let t = JSON.parse(e.target?.result), n = t.identity ?? {}, r = (t.digital ?? {}).install ?? {}, i = t.compatibility ?? {}, a = Array.isArray(t.permissions) ? t.permissions : [];
1485
- u((e) => ({
1485
+ l((e) => ({
1486
1486
  ...e,
1487
1487
  manifestItemType: typeof t.itemType == "string" ? t.itemType : e.manifestItemType,
1488
1488
  manifestDisplayName: typeof n.displayName == "string" ? n.displayName : e.manifestDisplayName,
@@ -1495,153 +1495,153 @@ var Le = ({ app: t }) => {
1495
1495
  }));
1496
1496
  } catch {}
1497
1497
  }, n.readAsText(t), e.target.value = "";
1498
- }, []), k = j(() => {
1499
- let e = l.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), n = Me.has(l.manifestItemType), r = {
1498
+ }, []), k = A(() => {
1499
+ let e = c.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), n = Me.has(c.manifestItemType), r = {
1500
1500
  manifestVersion: "1.0",
1501
- itemType: l.manifestItemType || void 0,
1501
+ itemType: c.manifestItemType || void 0,
1502
1502
  identity: {
1503
- version: l.manifestVersion || "1.0.0",
1504
- displayName: l.manifestDisplayName
1503
+ version: c.manifestVersion || "1.0.0",
1504
+ displayName: c.manifestDisplayName
1505
1505
  },
1506
- ...n ? { jsonContent: l.manifestJsonContent || void 0 } : { digital: { install: {
1507
- type: l.manifestInstallType,
1508
- packageName: l.manifestPackageName,
1509
- registryUrl: l.manifestRegistryUrl
1506
+ ...n ? { jsonContent: c.manifestJsonContent || void 0 } : { digital: { install: {
1507
+ type: c.manifestInstallType,
1508
+ packageName: c.manifestPackageName,
1509
+ registryUrl: c.manifestRegistryUrl
1510
1510
  } } },
1511
1511
  permissions: e,
1512
- compatibility: { minPlatformVersion: l.manifestMinPlatformVersion }
1512
+ compatibility: { minPlatformVersion: c.manifestMinPlatformVersion }
1513
1513
  }, i = new Blob([JSON.stringify(r, null, 2)], { type: "application/json" }), a = URL.createObjectURL(i), o = document.createElement("a");
1514
1514
  o.href = a, o.download = `${t.slug}-manifest.json`, o.click(), URL.revokeObjectURL(a);
1515
- }, [t.slug, l]), N = l.pricingType !== "FREE", L = Me.has(l.manifestItemType), te = !L && (l.manifestInstallType === "npm" || l.manifestInstallType === "git"), R = !L && (l.manifestInstallType === "git" || l.manifestInstallType === "zip"), z = l.manifestInstallType === "zip" ? c("devportal.zipDownloadUrl", "Zip Download URL") : c("devportal.repositoryUrl", "Repository URL"), ne = l.manifestInstallType === "zip" ? "https://cdn.example.com/my-app-1.0.0.zip" : "https://github.com/org/repo";
1515
+ }, [t.slug, c]), M = c.pricingType !== "FREE", I = Me.has(c.manifestItemType), ne = !I && (c.manifestInstallType === "npm" || c.manifestInstallType === "git"), L = !I && (c.manifestInstallType === "git" || c.manifestInstallType === "zip"), R = c.manifestInstallType === "zip" ? s("devportal.zipDownloadUrl", "Zip Download URL") : s("devportal.repositoryUrl", "Repository URL"), z = c.manifestInstallType === "zip" ? "https://cdn.example.com/my-app-1.0.0.zip" : "https://github.com/org/repo";
1516
1516
  return /* @__PURE__ */ X("div", {
1517
1517
  className: "space-y-8 max-w-3xl",
1518
1518
  children: [
1519
- /* @__PURE__ */ Y(a, {
1520
- title: c("devportal.storePresentation", "Store Presentation"),
1521
- description: c("devportal.storePresentationDescription", "Visual assets and descriptions shown in the store listing"),
1519
+ /* @__PURE__ */ Y(m, {
1520
+ title: s("devportal.storePresentation", "Store Presentation"),
1521
+ description: s("devportal.storePresentationDescription", "Visual assets and descriptions shown in the store listing"),
1522
1522
  children: /* @__PURE__ */ X("div", {
1523
1523
  className: "space-y-4",
1524
1524
  children: [
1525
- /* @__PURE__ */ Y(h, {
1526
- label: c("devportal.iconUrl", "Icon URL"),
1527
- value: l.iconUrl,
1528
- onChange: (e) => y("iconUrl", e.target.value),
1525
+ /* @__PURE__ */ Y(w, {
1526
+ label: s("devportal.iconUrl", "Icon URL"),
1527
+ value: c.iconUrl,
1528
+ onChange: (e) => g("iconUrl", e.target.value),
1529
1529
  placeholder: "https://..."
1530
1530
  }),
1531
- /* @__PURE__ */ Y(h, {
1532
- label: c("devportal.bannerUrl", "Banner URL"),
1533
- value: l.bannerUrl,
1534
- onChange: (e) => y("bannerUrl", e.target.value),
1531
+ /* @__PURE__ */ Y(w, {
1532
+ label: s("devportal.bannerUrl", "Banner URL"),
1533
+ value: c.bannerUrl,
1534
+ onChange: (e) => g("bannerUrl", e.target.value),
1535
1535
  placeholder: "https://..."
1536
1536
  }),
1537
- /* @__PURE__ */ Y(h, {
1538
- label: c("devportal.videoUrl", "Video URL"),
1539
- value: l.videoUrl,
1540
- onChange: (e) => y("videoUrl", e.target.value),
1537
+ /* @__PURE__ */ Y(w, {
1538
+ label: s("devportal.videoUrl", "Video URL"),
1539
+ value: c.videoUrl,
1540
+ onChange: (e) => g("videoUrl", e.target.value),
1541
1541
  placeholder: "https://...",
1542
- hint: c("devportal.videoUrlHint", "YouTube or Vimeo embed URL")
1542
+ hint: s("devportal.videoUrlHint", "YouTube or Vimeo embed URL")
1543
1543
  }),
1544
- /* @__PURE__ */ Y(_, {
1545
- label: c("devportal.shortDescription", "Short Description"),
1546
- value: l.shortDescription,
1547
- onChange: (e) => y("shortDescription", e.target.value),
1544
+ /* @__PURE__ */ Y(E, {
1545
+ label: s("devportal.shortDescription", "Short Description"),
1546
+ value: c.shortDescription,
1547
+ onChange: (e) => g("shortDescription", e.target.value),
1548
1548
  maxLength: 200,
1549
1549
  rows: 2,
1550
- hint: `${l.shortDescription.length}/200 ${c("devportal.characters", "characters")}`
1550
+ hint: `${c.shortDescription.length}/200 ${s("devportal.characters", "characters")}`
1551
1551
  }),
1552
- /* @__PURE__ */ Y(_, {
1553
- label: c("devportal.longDescription", "Long Description"),
1554
- value: l.description,
1555
- onChange: (e) => y("description", e.target.value),
1552
+ /* @__PURE__ */ Y(E, {
1553
+ label: s("devportal.longDescription", "Long Description"),
1554
+ value: c.description,
1555
+ onChange: (e) => g("description", e.target.value),
1556
1556
  rows: 4
1557
1557
  }),
1558
- /* @__PURE__ */ Y(_, {
1559
- label: c("devportal.screenshotUrls", "Screenshot URLs (one per line)"),
1560
- value: l.screenshotsText,
1561
- onChange: (e) => y("screenshotsText", e.target.value),
1558
+ /* @__PURE__ */ Y(E, {
1559
+ label: s("devportal.screenshotUrls", "Screenshot URLs (one per line)"),
1560
+ value: c.screenshotsText,
1561
+ onChange: (e) => g("screenshotsText", e.target.value),
1562
1562
  rows: 4,
1563
1563
  placeholder: "https://...\nhttps://..."
1564
1564
  })
1565
1565
  ]
1566
1566
  })
1567
1567
  }),
1568
- /* @__PURE__ */ Y(a, {
1569
- title: c("devportal.linksPolicies", "Links & Policies"),
1570
- description: c("devportal.linksPoliciesDescription", "External resources and legal documents for your application"),
1568
+ /* @__PURE__ */ Y(m, {
1569
+ title: s("devportal.linksPolicies", "Links & Policies"),
1570
+ description: s("devportal.linksPoliciesDescription", "External resources and legal documents for your application"),
1571
1571
  children: /* @__PURE__ */ X("div", {
1572
1572
  className: "grid gap-4 sm:grid-cols-2",
1573
1573
  children: [
1574
- /* @__PURE__ */ Y(h, {
1575
- label: c("devportal.websiteUrl", "Website URL"),
1576
- value: l.websiteUrl,
1577
- onChange: (e) => y("websiteUrl", e.target.value),
1574
+ /* @__PURE__ */ Y(w, {
1575
+ label: s("devportal.websiteUrl", "Website URL"),
1576
+ value: c.websiteUrl,
1577
+ onChange: (e) => g("websiteUrl", e.target.value),
1578
1578
  placeholder: "https://..."
1579
1579
  }),
1580
- /* @__PURE__ */ Y(h, {
1581
- label: c("devportal.documentationUrl", "Documentation URL"),
1582
- value: l.documentationUrl,
1583
- onChange: (e) => y("documentationUrl", e.target.value),
1580
+ /* @__PURE__ */ Y(w, {
1581
+ label: s("devportal.documentationUrl", "Documentation URL"),
1582
+ value: c.documentationUrl,
1583
+ onChange: (e) => g("documentationUrl", e.target.value),
1584
1584
  placeholder: "https://..."
1585
1585
  }),
1586
- /* @__PURE__ */ Y(h, {
1587
- label: c("devportal.githubUrl", "GitHub URL"),
1588
- value: l.githubUrl,
1589
- onChange: (e) => y("githubUrl", e.target.value),
1586
+ /* @__PURE__ */ Y(w, {
1587
+ label: s("devportal.githubUrl", "GitHub URL"),
1588
+ value: c.githubUrl,
1589
+ onChange: (e) => g("githubUrl", e.target.value),
1590
1590
  placeholder: "https://..."
1591
1591
  }),
1592
- /* @__PURE__ */ Y(h, {
1593
- label: c("devportal.supportUrl", "Support URL"),
1594
- value: l.supportUrl,
1595
- onChange: (e) => y("supportUrl", e.target.value),
1592
+ /* @__PURE__ */ Y(w, {
1593
+ label: s("devportal.supportUrl", "Support URL"),
1594
+ value: c.supportUrl,
1595
+ onChange: (e) => g("supportUrl", e.target.value),
1596
1596
  placeholder: "https://..."
1597
1597
  }),
1598
- /* @__PURE__ */ Y(h, {
1599
- label: `${c("devportal.privacyPolicyUrl", "Privacy Policy URL")} *`,
1600
- value: l.privacyPolicyUrl,
1601
- onChange: (e) => y("privacyPolicyUrl", e.target.value),
1598
+ /* @__PURE__ */ Y(w, {
1599
+ label: `${s("devportal.privacyPolicyUrl", "Privacy Policy URL")} *`,
1600
+ value: c.privacyPolicyUrl,
1601
+ onChange: (e) => g("privacyPolicyUrl", e.target.value),
1602
1602
  placeholder: "https://...",
1603
- hint: c("devportal.requiredForStore", "Required for store submission")
1603
+ hint: s("devportal.requiredForStore", "Required for store submission")
1604
1604
  }),
1605
- /* @__PURE__ */ Y(h, {
1606
- label: `${c("devportal.termsOfServiceUrl", "Terms of Service URL")} *`,
1607
- value: l.termsOfServiceUrl,
1608
- onChange: (e) => y("termsOfServiceUrl", e.target.value),
1605
+ /* @__PURE__ */ Y(w, {
1606
+ label: `${s("devportal.termsOfServiceUrl", "Terms of Service URL")} *`,
1607
+ value: c.termsOfServiceUrl,
1608
+ onChange: (e) => g("termsOfServiceUrl", e.target.value),
1609
1609
  placeholder: "https://...",
1610
- hint: c("devportal.requiredForStore", "Required for store submission")
1610
+ hint: s("devportal.requiredForStore", "Required for store submission")
1611
1611
  })
1612
1612
  ]
1613
1613
  })
1614
1614
  }),
1615
- /* @__PURE__ */ Y(a, {
1616
- title: c("devportal.pricing", "Pricing"),
1617
- description: c("devportal.pricingDescription", "Configure how your app is priced in the store"),
1615
+ /* @__PURE__ */ Y(m, {
1616
+ title: s("devportal.pricing", "Pricing"),
1617
+ description: s("devportal.pricingDescription", "Configure how your app is priced in the store"),
1618
1618
  children: /* @__PURE__ */ X("div", {
1619
1619
  className: "space-y-4",
1620
- children: [/* @__PURE__ */ Y(g, {
1621
- label: c("devportal.pricingType", "Pricing Type"),
1622
- value: l.pricingType,
1623
- onChange: (e) => y("pricingType", e.target.value),
1620
+ children: [/* @__PURE__ */ Y(T, {
1621
+ label: s("devportal.pricingType", "Pricing Type"),
1622
+ value: c.pricingType,
1623
+ onChange: (e) => g("pricingType", e.target.value),
1624
1624
  options: Ne
1625
- }), N && /* @__PURE__ */ X("div", {
1625
+ }), M && /* @__PURE__ */ X("div", {
1626
1626
  className: "grid gap-4 sm:grid-cols-2",
1627
- children: [/* @__PURE__ */ Y(h, {
1628
- label: c("devportal.price", "Price"),
1627
+ children: [/* @__PURE__ */ Y(w, {
1628
+ label: s("devportal.price", "Price"),
1629
1629
  type: "number",
1630
- value: l.price,
1631
- onChange: (e) => y("price", e.target.value),
1630
+ value: c.price,
1631
+ onChange: (e) => g("price", e.target.value),
1632
1632
  placeholder: "0.00"
1633
- }), /* @__PURE__ */ Y(h, {
1634
- label: c("devportal.currency", "Currency"),
1635
- value: l.currency,
1636
- onChange: (e) => y("currency", e.target.value),
1633
+ }), /* @__PURE__ */ Y(w, {
1634
+ label: s("devportal.currency", "Currency"),
1635
+ value: c.currency,
1636
+ onChange: (e) => g("currency", e.target.value),
1637
1637
  placeholder: "USD"
1638
1638
  })]
1639
1639
  })]
1640
1640
  })
1641
1641
  }),
1642
- /* @__PURE__ */ Y(a, {
1643
- title: c("devportal.manifestInstallConfig", "Manifest / Install Config"),
1644
- description: c("devportal.manifestInstallConfigDescription", "Technical metadata the platform uses to install and run this item"),
1642
+ /* @__PURE__ */ Y(m, {
1643
+ title: s("devportal.manifestInstallConfig", "Manifest / Install Config"),
1644
+ description: s("devportal.manifestInstallConfigDescription", "Technical metadata the platform uses to install and run this item"),
1645
1645
  children: /* @__PURE__ */ X("div", {
1646
1646
  className: "space-y-4",
1647
1647
  children: [
@@ -1654,15 +1654,15 @@ var Le = ({ app: t }) => {
1654
1654
  className: "space-y-1 text-text-secondary",
1655
1655
  children: [/* @__PURE__ */ Y("p", {
1656
1656
  className: "font-medium text-foreground",
1657
- children: L ? c("devportal.howDeliveryWorksJsonOnly", "JSON-only delivery") : c("devportal.howDeliveryWorks", "How delivery works")
1658
- }), L ? /* @__PURE__ */ Y("p", { children: c("devportal.howDeliveryWorksJsonOnlyDescription", "Workflows and templates are pure JSON — no binary code needed. Paste or import your JSON content below. When a user installs this item, the platform applies this JSON directly (no zip download required).") }) : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("p", { children: c("devportal.howDeliveryWorksDescription", "Package your code + manifest.json into a zip file (like a Chrome extension). Host it on S3, GitHub Releases, or any CDN, then paste the URL below. When a user installs this item, the platform downloads and extracts the zip.") }), /* @__PURE__ */ Y("p", { children: c("devportal.versioningNote", "Each published version captures a snapshot of this manifest. Use the Versions tab to manage per-version zip URLs, see changelogs, or roll back to a prior release.") })] })]
1657
+ children: I ? s("devportal.howDeliveryWorksJsonOnly", "JSON-only delivery") : s("devportal.howDeliveryWorks", "How delivery works")
1658
+ }), I ? /* @__PURE__ */ Y("p", { children: s("devportal.howDeliveryWorksJsonOnlyDescription", "Workflows and templates are pure JSON — no binary code needed. Paste or import your JSON content below. When a user installs this item, the platform applies this JSON directly (no zip download required).") }) : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("p", { children: s("devportal.howDeliveryWorksDescription", "Package your code + manifest.json into a zip file (like a Chrome extension). Host it on S3, GitHub Releases, or any CDN, then paste the URL below. When a user installs this item, the platform downloads and extracts the zip.") }), /* @__PURE__ */ Y("p", { children: s("devportal.versioningNote", "Each published version captures a snapshot of this manifest. Use the Versions tab to manage per-version zip URLs, see changelogs, or roll back to a prior release.") })] })]
1659
1659
  })]
1660
1660
  }),
1661
1661
  /* @__PURE__ */ X("div", {
1662
1662
  className: "flex items-center gap-2",
1663
1663
  children: [
1664
1664
  /* @__PURE__ */ Y("input", {
1665
- ref: x,
1665
+ ref: v,
1666
1666
  type: "file",
1667
1667
  accept: ".json,application/json",
1668
1668
  className: "hidden",
@@ -1670,66 +1670,66 @@ var Le = ({ app: t }) => {
1670
1670
  }),
1671
1671
  /* @__PURE__ */ X("button", {
1672
1672
  type: "button",
1673
- onClick: () => x.current?.click(),
1673
+ onClick: () => v.current?.click(),
1674
1674
  className: "inline-flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm font-medium hover:bg-muted transition-colors",
1675
- children: [/* @__PURE__ */ Y(K, { size: 14 }), c("devportal.importManifest", "Import manifest.json")]
1675
+ children: [/* @__PURE__ */ Y(K, { size: 14 }), s("devportal.importManifest", "Import manifest.json")]
1676
1676
  }),
1677
1677
  /* @__PURE__ */ X("button", {
1678
1678
  type: "button",
1679
1679
  onClick: k,
1680
1680
  className: "inline-flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm font-medium hover:bg-muted transition-colors",
1681
- children: [/* @__PURE__ */ Y(re, { size: 14 }), c("devportal.exportManifest", "Export manifest.json")]
1681
+ children: [/* @__PURE__ */ Y(re, { size: 14 }), s("devportal.exportManifest", "Export manifest.json")]
1682
1682
  })
1683
1683
  ]
1684
1684
  }),
1685
- /* @__PURE__ */ Y(g, {
1686
- label: c("devportal.storeItemType", "Store Item Type"),
1687
- value: l.manifestItemType,
1688
- onChange: (e) => y("manifestItemType", e.target.value),
1685
+ /* @__PURE__ */ Y(T, {
1686
+ label: s("devportal.storeItemType", "Store Item Type"),
1687
+ value: c.manifestItemType,
1688
+ onChange: (e) => g("manifestItemType", e.target.value),
1689
1689
  options: Pe,
1690
- placeholder: c("devportal.selectItemType", "Select item type…"),
1691
- hint: c("devportal.storeItemTypeHint", "How this app is categorized in the Burdenoff marketplace (e.g. agent, node, widget)")
1690
+ placeholder: s("devportal.selectItemType", "Select item type…"),
1691
+ hint: s("devportal.storeItemTypeHint", "How this app is categorized in the Burdenoff marketplace (e.g. agent, node, widget)")
1692
1692
  }),
1693
1693
  /* @__PURE__ */ X("div", {
1694
1694
  className: "grid gap-4 sm:grid-cols-2",
1695
- children: [/* @__PURE__ */ Y(h, {
1696
- label: c("devportal.manifestDisplayName", "Display Name"),
1697
- value: l.manifestDisplayName,
1698
- onChange: (e) => y("manifestDisplayName", e.target.value)
1699
- }), /* @__PURE__ */ Y(h, {
1700
- label: c("devportal.manifestVersion", "Version"),
1701
- value: l.manifestVersion,
1702
- onChange: (e) => y("manifestVersion", e.target.value),
1695
+ children: [/* @__PURE__ */ Y(w, {
1696
+ label: s("devportal.manifestDisplayName", "Display Name"),
1697
+ value: c.manifestDisplayName,
1698
+ onChange: (e) => g("manifestDisplayName", e.target.value)
1699
+ }), /* @__PURE__ */ Y(w, {
1700
+ label: s("devportal.manifestVersion", "Version"),
1701
+ value: c.manifestVersion,
1702
+ onChange: (e) => g("manifestVersion", e.target.value),
1703
1703
  placeholder: "1.0.0",
1704
- hint: c("devportal.semverHint", "Semantic version (MAJOR.MINOR.PATCH)")
1704
+ hint: s("devportal.semverHint", "Semantic version (MAJOR.MINOR.PATCH)")
1705
1705
  })]
1706
1706
  }),
1707
- L && /* @__PURE__ */ Y(_, {
1708
- label: c("devportal.jsonContent", l.manifestItemType === "workflow" ? "Workflow Definition (JSON)" : "Template Definition (JSON)"),
1709
- value: l.manifestJsonContent,
1710
- onChange: (e) => y("manifestJsonContent", e.target.value),
1707
+ I && /* @__PURE__ */ Y(E, {
1708
+ label: s("devportal.jsonContent", c.manifestItemType === "workflow" ? "Workflow Definition (JSON)" : "Template Definition (JSON)"),
1709
+ value: c.manifestJsonContent,
1710
+ onChange: (e) => g("manifestJsonContent", e.target.value),
1711
1711
  rows: 12,
1712
1712
  placeholder: "{\n \"nodes\": [],\n \"edges\": []\n}",
1713
- hint: c("devportal.jsonContentHint", "Paste the full JSON definition. This is stored directly — no zip needed.")
1713
+ hint: s("devportal.jsonContentHint", "Paste the full JSON definition. This is stored directly — no zip needed.")
1714
1714
  }),
1715
- !L && /* @__PURE__ */ Y(g, {
1716
- label: c("devportal.installType", "Install Type"),
1717
- value: l.manifestInstallType,
1718
- onChange: (e) => y("manifestInstallType", e.target.value),
1715
+ !I && /* @__PURE__ */ Y(T, {
1716
+ label: s("devportal.installType", "Install Type"),
1717
+ value: c.manifestInstallType,
1718
+ onChange: (e) => g("manifestInstallType", e.target.value),
1719
1719
  options: Fe,
1720
- hint: l.manifestInstallType === "npm" ? c("devportal.installTypeNpmHint", "Published to an npm-compatible registry. Provide the package name below.") : l.manifestInstallType === "git" ? c("devportal.installTypeGitHint", "Cloned from a git repository URL.") : l.manifestInstallType === "zip" ? c("devportal.installTypeZipHint", "Package your code + manifest.json into a zip. Host it publicly (S3, CDN, GitHub Releases) and paste the URL below. Use the Versions tab to manage per-release zip URLs.") : l.manifestInstallType === "builtin" ? c("devportal.installTypeBuiltinHint", "Pre-installed in the platform. No download needed.") : void 0
1720
+ hint: c.manifestInstallType === "npm" ? s("devportal.installTypeNpmHint", "Published to an npm-compatible registry. Provide the package name below.") : c.manifestInstallType === "git" ? s("devportal.installTypeGitHint", "Cloned from a git repository URL.") : c.manifestInstallType === "zip" ? s("devportal.installTypeZipHint", "Package your code + manifest.json into a zip. Host it publicly (S3, CDN, GitHub Releases) and paste the URL below. Use the Versions tab to manage per-release zip URLs.") : c.manifestInstallType === "builtin" ? s("devportal.installTypeBuiltinHint", "Pre-installed in the platform. No download needed.") : void 0
1721
1721
  }),
1722
- te && /* @__PURE__ */ Y(h, {
1723
- label: c("devportal.packageName", "Package Name"),
1724
- value: l.manifestPackageName,
1725
- onChange: (e) => y("manifestPackageName", e.target.value),
1722
+ ne && /* @__PURE__ */ Y(w, {
1723
+ label: s("devportal.packageName", "Package Name"),
1724
+ value: c.manifestPackageName,
1725
+ onChange: (e) => g("manifestPackageName", e.target.value),
1726
1726
  placeholder: "@yourscope/your-package"
1727
1727
  }),
1728
- !L && l.manifestInstallType === "zip" && /* @__PURE__ */ X("div", {
1728
+ !I && c.manifestInstallType === "zip" && /* @__PURE__ */ X("div", {
1729
1729
  className: "space-y-2",
1730
1730
  children: [
1731
1731
  /* @__PURE__ */ Y("input", {
1732
- ref: S,
1732
+ ref: y,
1733
1733
  type: "file",
1734
1734
  accept: ".zip,application/zip,application/x-zip-compressed",
1735
1735
  className: "hidden",
@@ -1739,57 +1739,57 @@ var Le = ({ app: t }) => {
1739
1739
  className: "flex items-center gap-2 flex-wrap",
1740
1740
  children: [/* @__PURE__ */ Y("button", {
1741
1741
  type: "button",
1742
- disabled: w || !n,
1743
- onClick: () => S.current?.click(),
1744
- title: n ? void 0 : c("devportal.workspacesGatewayNotConfigured", "workspacesGatewayUrl not configured — contact your shell integration"),
1742
+ disabled: S || !n,
1743
+ onClick: () => y.current?.click(),
1744
+ title: n ? void 0 : s("devportal.workspacesGatewayNotConfigured", "workspacesGatewayUrl not configured — contact your shell integration"),
1745
1745
  className: "inline-flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm font-medium hover:bg-muted transition-colors disabled:opacity-50",
1746
- children: w ? /* @__PURE__ */ X(J, { children: [
1746
+ children: S ? /* @__PURE__ */ X(J, { children: [
1747
1747
  /* @__PURE__ */ Y(H, {
1748
1748
  size: 14,
1749
1749
  className: "animate-spin"
1750
1750
  }),
1751
- c("devportal.uploading", "Uploading..."),
1751
+ s("devportal.uploading", "Uploading..."),
1752
1752
  " ",
1753
- T,
1753
+ C,
1754
1754
  "%"
1755
- ] }) : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(K, { size: 14 }), c("devportal.uploadZipPackage", "Upload zip package")] })
1756
- }), w && /* @__PURE__ */ Y("div", {
1755
+ ] }) : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(K, { size: 14 }), s("devportal.uploadZipPackage", "Upload zip package")] })
1756
+ }), S && /* @__PURE__ */ Y("div", {
1757
1757
  className: "flex-1 h-1.5 min-w-[120px] rounded-full bg-muted overflow-hidden",
1758
1758
  children: /* @__PURE__ */ Y("div", {
1759
1759
  className: "h-full bg-primary transition-all",
1760
- style: { width: `${T}%` }
1760
+ style: { width: `${C}%` }
1761
1761
  })
1762
1762
  })]
1763
1763
  }),
1764
- E && /* @__PURE__ */ Y("p", {
1764
+ D && /* @__PURE__ */ Y("p", {
1765
1765
  className: "text-xs text-status-error-text",
1766
- children: E
1766
+ children: D
1767
1767
  }),
1768
1768
  /* @__PURE__ */ Y("p", {
1769
1769
  className: "text-xs text-text-secondary",
1770
- children: c("devportal.zipUploadHint", "Upload stores the zip in your workspace Files (/DevPortal/Packages) and fills the URL below automatically.")
1770
+ children: s("devportal.zipUploadHint", "Upload stores the zip in your workspace Files (/DevPortal/Packages) and fills the URL below automatically.")
1771
1771
  })
1772
1772
  ]
1773
1773
  }),
1774
- R && /* @__PURE__ */ Y(h, {
1775
- label: z,
1776
- value: l.manifestRegistryUrl,
1777
- onChange: (e) => y("manifestRegistryUrl", e.target.value),
1778
- placeholder: ne,
1779
- hint: l.manifestInstallType === "zip" ? c("devportal.zipUrlHint", "Filled automatically after upload, or paste a URL to an externally-hosted zip.") : void 0
1774
+ L && /* @__PURE__ */ Y(w, {
1775
+ label: R,
1776
+ value: c.manifestRegistryUrl,
1777
+ onChange: (e) => g("manifestRegistryUrl", e.target.value),
1778
+ placeholder: z,
1779
+ hint: c.manifestInstallType === "zip" ? s("devportal.zipUrlHint", "Filled automatically after upload, or paste a URL to an externally-hosted zip.") : void 0
1780
1780
  }),
1781
- /* @__PURE__ */ Y(_, {
1782
- label: c("devportal.requiredPermissions", "Required Permissions (one per line)"),
1783
- value: l.manifestPermissionsText,
1784
- onChange: (e) => y("manifestPermissionsText", e.target.value),
1781
+ /* @__PURE__ */ Y(E, {
1782
+ label: s("devportal.requiredPermissions", "Required Permissions (one per line)"),
1783
+ value: c.manifestPermissionsText,
1784
+ onChange: (e) => g("manifestPermissionsText", e.target.value),
1785
1785
  rows: 3,
1786
1786
  placeholder: "read:users\nwrite:data",
1787
- hint: c("devportal.permissionsHint", "Platform capabilities this item requires the user to grant on install")
1787
+ hint: s("devportal.permissionsHint", "Platform capabilities this item requires the user to grant on install")
1788
1788
  }),
1789
- /* @__PURE__ */ Y(h, {
1790
- label: c("devportal.minPlatformVersion", "Min Platform Version"),
1791
- value: l.manifestMinPlatformVersion,
1792
- onChange: (e) => y("manifestMinPlatformVersion", e.target.value),
1789
+ /* @__PURE__ */ Y(w, {
1790
+ label: s("devportal.minPlatformVersion", "Min Platform Version"),
1791
+ value: c.manifestMinPlatformVersion,
1792
+ onChange: (e) => g("manifestMinPlatformVersion", e.target.value),
1793
1793
  placeholder: "2024.1.0"
1794
1794
  })
1795
1795
  ]
@@ -1799,19 +1799,19 @@ var Le = ({ app: t }) => {
1799
1799
  className: "border-t pt-6",
1800
1800
  children: /* @__PURE__ */ Y("button", {
1801
1801
  type: "button",
1802
- onClick: b,
1803
- disabled: f,
1802
+ onClick: _,
1803
+ disabled: u,
1804
1804
  className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",
1805
- children: f ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(H, {
1805
+ children: u ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(H, {
1806
1806
  size: 16,
1807
1807
  className: "animate-spin"
1808
- }), c("devportal.saving", "Saving...")] }) : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(G, { size: 16 }), c("devportal.saveStoreListing", "Save Store Listing")] })
1808
+ }), s("devportal.saving", "Saving...")] }) : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(G, { size: 16 }), s("devportal.saveStoreListing", "Save Store Listing")] })
1809
1809
  })
1810
1810
  })
1811
1811
  ]
1812
1812
  });
1813
1813
  }, Q = ({ label: e, value: n, trend: r }) => {
1814
- let { t: i } = I();
1814
+ let { t: i } = F();
1815
1815
  return /* @__PURE__ */ X("div", {
1816
1816
  className: "rounded-lg border bg-card p-4",
1817
1817
  children: [