@epam/ai-dial-catalog 1.1.0-dev.398 → 1.1.0-dev.399

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/index.js CHANGED
@@ -28200,7 +28200,7 @@ var vE = {
28200
28200
  })
28201
28201
  ]
28202
28202
  });
28203
- }, JE = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
28203
+ }, JE = { img: () => null }, YE = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
28204
28204
  let [m, h] = R(r);
28205
28205
  F(() => {
28206
28206
  h(r);
@@ -28260,9 +28260,25 @@ var vE = {
28260
28260
  loggedOutLabel: f
28261
28261
  })
28262
28262
  }),
28263
- /* @__PURE__ */ z("p", {
28264
- className: W(g, "line-clamp-2 min-h-[2lh] break-words", IE.description),
28265
- children: e.description
28263
+ /* @__PURE__ */ z("div", {
28264
+ className: W("line-clamp-2 min-h-[2lh] break-words", IE.description),
28265
+ onClick: (e) => e.stopPropagation(),
28266
+ onKeyDown: (e) => e.stopPropagation(),
28267
+ children: e.description && /* @__PURE__ */ z(eE, {
28268
+ content: e.description,
28269
+ classNames: {
28270
+ p: g,
28271
+ ul: g,
28272
+ ol: g,
28273
+ h1: g,
28274
+ h2: g,
28275
+ h3: g,
28276
+ h4: g,
28277
+ h5: g,
28278
+ h6: g
28279
+ },
28280
+ components: JE
28281
+ })
28266
28282
  }),
28267
28283
  /* @__PURE__ */ z("div", {
28268
28284
  className: "mt-auto flex items-center gap-2",
@@ -28290,7 +28306,7 @@ var vE = {
28290
28306
  })
28291
28307
  ]
28292
28308
  });
28293
- }, YE = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f }) => {
28309
+ }, XE = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f }) => {
28294
28310
  let p = e * n, m = t.slice(p, p + n);
28295
28311
  return /* @__PURE__ */ z("div", {
28296
28312
  style: {
@@ -28302,7 +28318,7 @@ var vE = {
28302
28318
  let n = m[t];
28303
28319
  return /* @__PURE__ */ z("div", {
28304
28320
  className: "h-full min-w-0 flex-1",
28305
- children: n && /* @__PURE__ */ z(JE, {
28321
+ children: n && /* @__PURE__ */ z(YE, {
28306
28322
  item: n,
28307
28323
  query: r,
28308
28324
  initialIsStarred: n.isStarred,
@@ -28320,7 +28336,7 @@ var vE = {
28320
28336
  }, n?.id ?? `spacer-${t}`);
28321
28337
  })
28322
28338
  });
28323
- }, XE = ut(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = IE.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1 }) => {
28339
+ }, ZE = ut(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = IE.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1 }) => {
28324
28340
  let f = a?.noResultsTitle ?? "No results", p = a?.featuredLabel ?? "Featured", m = a?.addToFavoritesAriaLabel ?? "Add to favorites", h = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", g = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: _, startRow: v, endRow: y, columnCount: b, totalHeight: x } = FE(e.length, { isFullWidth: d }), S = I(() => ({
28325
28341
  items: e,
28326
28342
  columnCount: b,
@@ -28377,41 +28393,41 @@ var vE = {
28377
28393
  style: { height: x },
28378
28394
  children: Array.from({ length: y - v }, (e, t) => {
28379
28395
  let n = v + t;
28380
- return /* @__PURE__ */ z(YE, {
28396
+ return /* @__PURE__ */ z(XE, {
28381
28397
  rowIndex: n,
28382
28398
  ...S
28383
28399
  }, n);
28384
28400
  })
28385
28401
  });
28386
- }), ZE = /* @__PURE__ */ function(e) {
28402
+ }), QE = /* @__PURE__ */ function(e) {
28387
28403
  return e.Equal = "EQUAL", e.Contain = "CONTAIN", e.Regex = "REGEX", e;
28388
- }({}), QE = /* @__PURE__ */ function(e) {
28404
+ }({}), $E = /* @__PURE__ */ function(e) {
28389
28405
  return e.None = "none", e.Info = "info", e.ReplaceWarning = "replaceWarning", e.NoAccess = "noAccess", e.SubmitError = "submitError", e;
28390
- }({}), $E = (e) => e.isSubmitting ? {
28391
- calloutKind: QE.None,
28406
+ }({}), eD = (e) => e.isSubmitting ? {
28407
+ calloutKind: $E.None,
28392
28408
  isSubmitDisabled: !0,
28393
28409
  isSubmitLoading: !0
28394
28410
  } : e.hasSelectedFolder ? e.hasWriteAccess ? e.hasSubmitError ? {
28395
- calloutKind: QE.SubmitError,
28411
+ calloutKind: $E.SubmitError,
28396
28412
  isSubmitDisabled: !1,
28397
28413
  isSubmitLoading: !1
28398
28414
  } : e.hasExistingPublicationInFolder ? {
28399
- calloutKind: QE.ReplaceWarning,
28415
+ calloutKind: $E.ReplaceWarning,
28400
28416
  isSubmitDisabled: e.allowReplace === !1,
28401
28417
  isSubmitLoading: !1
28402
28418
  } : {
28403
- calloutKind: QE.Info,
28419
+ calloutKind: $E.Info,
28404
28420
  isSubmitDisabled: !1,
28405
28421
  isSubmitLoading: !1
28406
28422
  } : {
28407
- calloutKind: QE.NoAccess,
28423
+ calloutKind: $E.NoAccess,
28408
28424
  isSubmitDisabled: !0,
28409
28425
  isSubmitLoading: !1
28410
28426
  } : {
28411
- calloutKind: QE.None,
28427
+ calloutKind: $E.None,
28412
28428
  isSubmitDisabled: !0,
28413
28429
  isSubmitLoading: !1
28414
- }, eD = (e, t, n) => t.length === 0 ? [...e, {
28430
+ }, tD = (e, t, n) => t.length === 0 ? [...e, {
28415
28431
  path: [n],
28416
28432
  name: n
28417
28433
  }] : e.map((e) => e.path.join("/") === t.join("/") ? {
@@ -28422,17 +28438,17 @@ var vE = {
28422
28438
  }]
28423
28439
  } : {
28424
28440
  ...e,
28425
- children: e.children ? eD(e.children, t, n) : e.children
28426
- }), tD = (e, t, n) => {
28441
+ children: e.children ? tD(e.children, t, n) : e.children
28442
+ }), nD = (e, t, n) => {
28427
28443
  let r = [...t, n].join("/");
28428
28444
  return t.length === 0 ? e.filter((e) => e.path.join("/") !== r) : e.map((e) => e.path.join("/") === t.join("/") ? {
28429
28445
  ...e,
28430
28446
  children: (e.children ?? []).filter((e) => e.path.join("/") !== r)
28431
28447
  } : {
28432
28448
  ...e,
28433
- children: e.children ? tD(e.children, t, n) : e.children
28449
+ children: e.children ? nD(e.children, t, n) : e.children
28434
28450
  });
28435
- }, nD = ({ item: e, history: t, folderItems: n, hasWriteAccess: r = () => !0, onCreateFolder: i, onPublish: a, onPublishSuccess: o, onPublishError: s, onFetchExistingRules: c }) => {
28451
+ }, rD = ({ item: e, history: t, folderItems: n, hasWriteAccess: r = () => !0, onCreateFolder: i, onPublish: a, onPublishSuccess: o, onPublishError: s, onFetchExistingRules: c }) => {
28436
28452
  let [l, u] = R(n);
28437
28453
  F(() => {
28438
28454
  u(n);
@@ -28464,11 +28480,11 @@ var vE = {
28464
28480
  e.version,
28465
28481
  d
28466
28482
  ]), w = P(async (e, t) => {
28467
- u((n) => eD(n, e, t));
28483
+ u((n) => tD(n, e, t));
28468
28484
  try {
28469
28485
  await i?.(e, t);
28470
28486
  } catch {
28471
- u((n) => tD(n, e, t)), g(!0);
28487
+ u((n) => nD(n, e, t)), g(!0);
28472
28488
  }
28473
28489
  }, [i]), T = P(async () => {
28474
28490
  if (!d) return !1;
@@ -28506,63 +28522,63 @@ var vE = {
28506
28522
  isRulesLoading: y,
28507
28523
  hasRulesLoadError: x
28508
28524
  };
28509
- }, rD = (e, t) => {
28525
+ }, iD = (e, t) => {
28510
28526
  let n = t.trim().toLowerCase();
28511
28527
  return n ? e.reduce((e, r) => {
28512
- let i = r.children ? rD(r.children, t) : void 0;
28528
+ let i = r.children ? iD(r.children, t) : void 0;
28513
28529
  return r.name.toLowerCase().includes(n) ? e.push(r) : i?.length && e.push({
28514
28530
  ...r,
28515
28531
  children: i
28516
28532
  }), e;
28517
28533
  }, []) : e;
28518
- }, iD = (e, t) => e.localeCompare(t, void 0, {
28534
+ }, aD = (e, t) => e.localeCompare(t, void 0, {
28519
28535
  sensitivity: "base",
28520
28536
  numeric: !0
28521
- }), aD = (e) => [...e].sort((e, t) => iD(e.name, t.name)).map((e) => e.children ? {
28537
+ }), oD = (e) => [...e].sort((e, t) => aD(e.name, t.name)).map((e) => e.children ? {
28522
28538
  ...e,
28523
- children: aD(e.children)
28524
- } : e), oD = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? oD(e.children) : []]), sD = (e) => e.join("/"), cD = (e) => e.split("/").filter(Boolean), lD = (e) => e.map((e) => {
28525
- let t = sD(e.path);
28539
+ children: oD(e.children)
28540
+ } : e), sD = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? sD(e.children) : []]), cD = (e) => e.join("/"), lD = (e) => e.split("/").filter(Boolean), uD = (e) => e.map((e) => {
28541
+ let t = cD(e.path);
28526
28542
  return {
28527
28543
  path: t,
28528
28544
  name: e.name,
28529
28545
  folderId: t,
28530
28546
  nodeType: M.FOLDER,
28531
- items: e.children ? lD(e.children) : void 0
28547
+ items: e.children ? uD(e.children) : void 0
28532
28548
  };
28533
- }), uD = /[/\\:;,={}&"]/, dD = (e, t, n) => {
28549
+ }), dD = /[/\\:;,={}&"]/, fD = (e, t, n) => {
28534
28550
  let r = e.trim();
28535
- return r ? r.includes("..") || uD.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
28536
- }, fD = (e, t) => {
28551
+ return r ? r.includes("..") || dD.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
28552
+ }, pD = (e, t) => {
28537
28553
  let n = new Set(t.map((e) => e.toLowerCase()));
28538
28554
  if (!n.has(e.toLowerCase())) return e;
28539
28555
  let r = 2;
28540
28556
  for (; n.has(`${e} ${r}`.toLowerCase());) r += 1;
28541
28557
  return `${e} ${r}`;
28542
- }, pD = (e, t) => {
28558
+ }, mD = (e, t) => {
28543
28559
  if (t.length === 0) return e.map((e) => e.name);
28544
- let n = sD(t), r = (e) => {
28560
+ let n = cD(t), r = (e) => {
28545
28561
  for (let t of e) {
28546
- if (sD(t.path) === n) return t;
28562
+ if (cD(t.path) === n) return t;
28547
28563
  let e = t.children ? r(t.children) : void 0;
28548
28564
  if (e) return e;
28549
28565
  }
28550
28566
  };
28551
28567
  return (r(e)?.children ?? []).map((e) => e.name);
28552
- }, mD = {
28568
+ }, hD = {
28553
28569
  dialog: "_dialog_1chty_2",
28554
28570
  error: "_error_1chty_11",
28555
28571
  selectField: "_selectField_1chty_25",
28556
28572
  selectFieldOpen: "_selectFieldOpen_1chty_37"
28557
- }, hD = 20, gD = 200, _D = 8, vD = (e) => {
28573
+ }, gD = 20, _D = 200, vD = 8, yD = (e) => {
28558
28574
  let t = e.trim();
28559
- if (t.length === 0 || t.length > gD) return !1;
28575
+ if (t.length === 0 || t.length > _D) return !1;
28560
28576
  try {
28561
28577
  return new RegExp(t) instanceof RegExp;
28562
28578
  } catch {
28563
28579
  return !1;
28564
28580
  }
28565
- }, yD = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = hD, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
28581
+ }, bD = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = gD, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
28566
28582
  let c = {
28567
28583
  ...is({
28568
28584
  "--pare-mobile-bg": s.colors?.mobileBackground,
@@ -28578,27 +28594,27 @@ var vE = {
28578
28594
  F(() => {
28579
28595
  k.current?.focus();
28580
28596
  }, []);
28581
- let [A, te] = R(), [ne, re] = R(), [ie, j] = R([]), [M, ae] = R(""), [oe, se] = R(!1), [ce, le] = R(!1), [ue, de] = R(!1), fe = W(mD.selectField, oe && mD.selectFieldOpen), pe = W(mD.selectField, ce && mD.selectFieldOpen), me = I(() => e.map((e) => ({
28597
+ let [A, te] = R(), [ne, re] = R(), [ie, j] = R([]), [M, ae] = R(""), [oe, se] = R(!1), [ce, le] = R(!1), [ue, de] = R(!1), fe = W(hD.selectField, oe && hD.selectFieldOpen), pe = W(hD.selectField, ce && hD.selectFieldOpen), me = I(() => e.map((e) => ({
28582
28598
  value: e,
28583
28599
  label: e
28584
28600
  })), [e]), he = I(() => [
28585
28601
  {
28586
- value: ZE.Equal,
28602
+ value: QE.Equal,
28587
28603
  label: f
28588
28604
  },
28589
28605
  {
28590
- value: ZE.Contain,
28606
+ value: QE.Contain,
28591
28607
  label: p
28592
28608
  },
28593
28609
  {
28594
- value: ZE.Regex,
28610
+ value: QE.Regex,
28595
28611
  label: m
28596
28612
  }
28597
28613
  ], [
28598
28614
  f,
28599
28615
  p,
28600
28616
  m
28601
- ]), N = ne === ZE.Regex, ge = vD(M), ve = A != null && ne != null && (N ? ge : ie.length > 0);
28617
+ ]), N = ne === QE.Regex, ge = yD(M), ve = A != null && ne != null && (N ? ge : ie.length > 0);
28602
28618
  return /* @__PURE__ */ B("div", {
28603
28619
  ref: k,
28604
28620
  role: "dialog",
@@ -28609,7 +28625,7 @@ var vE = {
28609
28625
  e.key === "Escape" && (e.stopPropagation(), n());
28610
28626
  },
28611
28627
  style: c,
28612
- className: W("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", mD.dialog),
28628
+ className: W("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", hD.dialog),
28613
28629
  children: [
28614
28630
  /* @__PURE__ */ z(ze, {
28615
28631
  id: D,
@@ -28620,7 +28636,7 @@ var vE = {
28620
28636
  te(Array.isArray(e) ? e[0] : e), se(!1);
28621
28637
  },
28622
28638
  placeholder: u,
28623
- searchable: e.length > _D,
28639
+ searchable: e.length > vD,
28624
28640
  searchPlaceholder: u,
28625
28641
  disabled: r,
28626
28642
  open: oe,
@@ -28636,7 +28652,7 @@ var vE = {
28636
28652
  value: ne,
28637
28653
  onChange: (e) => {
28638
28654
  let t = Array.isArray(e) ? e[0] : e;
28639
- ne === ZE.Regex != (t === ZE.Regex) && (j([]), ae("")), re(t), le(!1);
28655
+ ne === QE.Regex != (t === QE.Regex) && (j([]), ae("")), re(t), le(!1);
28640
28656
  },
28641
28657
  placeholder: d,
28642
28658
  disabled: r,
@@ -28658,7 +28674,7 @@ var vE = {
28658
28674
  }), (M.length > 0 || ue) && !ge && /* @__PURE__ */ z("span", {
28659
28675
  id: E,
28660
28676
  role: "alert",
28661
- className: W("mt-1 block", o, mD.error),
28677
+ className: W("mt-1 block", o, hD.error),
28662
28678
  children: b
28663
28679
  })] }) : /* @__PURE__ */ z(Ke, {
28664
28680
  id: ee,
@@ -28703,13 +28719,13 @@ var vE = {
28703
28719
  })
28704
28720
  ]
28705
28721
  });
28706
- }, bD = {
28722
+ }, xD = {
28707
28723
  ruleRow: "_ruleRow_nx0en_1",
28708
28724
  heading: "_heading_nx0en_5",
28709
28725
  hint: "_hint_nx0en_9",
28710
28726
  loading: "_loading_nx0en_13",
28711
28727
  ruleText: "_ruleText_nx0en_17"
28712
- }, xD = 20, SD = (e, t) => e === ZE.Equal ? t.equal : e === ZE.Contain ? t.contain : t.regex, CD = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = xD, maxTargetsPerRule: c, labels: l = {}, headingClassName: u = "dial-body-semi-text", hintClassName: d = "dial-small-text", loadingClassName: f = "dial-small-text", ruleTextClassName: p = "dial-small-text", ruleSourceClassName: m = "dial-small-semi-text", styles: h = {} }) => {
28728
+ }, SD = 20, CD = (e, t) => e === QE.Equal ? t.equal : e === QE.Contain ? t.contain : t.regex, wD = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = SD, maxTargetsPerRule: c, labels: l = {}, headingClassName: u = "dial-body-semi-text", hintClassName: d = "dial-small-text", loadingClassName: f = "dial-small-text", ruleTextClassName: p = "dial-small-text", ruleSourceClassName: m = "dial-small-semi-text", styles: h = {} }) => {
28713
28729
  let g = {
28714
28730
  ...is({
28715
28731
  "--par-rule-bg": h.colors?.ruleBackground,
@@ -28758,7 +28774,7 @@ var vE = {
28758
28774
  className: "mb-1 flex items-center justify-between gap-2",
28759
28775
  children: [/* @__PURE__ */ z("div", {
28760
28776
  id: oe,
28761
- className: W(u, bD.heading),
28777
+ className: W(u, xD.heading),
28762
28778
  children: _
28763
28779
  }), e.length > 0 && /* @__PURE__ */ z(_e, {
28764
28780
  variant: y.Primary,
@@ -28768,7 +28784,7 @@ var vE = {
28768
28784
  })]
28769
28785
  }),
28770
28786
  /* @__PURE__ */ z("p", {
28771
- className: W("mb-2", d, bD.hint),
28787
+ className: W("mb-2", d, xD.hint),
28772
28788
  children: Se ? v.replace("{folder}", r) : b
28773
28789
  }),
28774
28790
  e.length > 0 && !Se && /* @__PURE__ */ z("div", {
@@ -28780,7 +28796,7 @@ var vE = {
28780
28796
  })
28781
28797
  }),
28782
28798
  a && /* @__PURE__ */ B("div", {
28783
- className: W("mb-2 flex items-center gap-2", f, bD.loading),
28799
+ className: W("mb-2 flex items-center gap-2", f, xD.loading),
28784
28800
  children: [/* @__PURE__ */ z(Ue, {
28785
28801
  size: 16,
28786
28802
  ariaLabel: te
@@ -28799,16 +28815,16 @@ var vE = {
28799
28815
  children: e.map((e, t) => {
28800
28816
  let n = e.targets.join(` ${T} `), r = E.replace("{source}", e.source).replace("{targets}", n);
28801
28817
  return /* @__PURE__ */ B("li", {
28802
- className: W("flex items-center justify-between gap-2 rounded-lg px-3 py-2", bD.ruleRow),
28818
+ className: W("flex items-center justify-between gap-2 rounded-lg px-3 py-2", xD.ruleRow),
28803
28819
  children: [/* @__PURE__ */ B("span", {
28804
- className: W("truncate", p, bD.ruleText),
28820
+ className: W("truncate", p, xD.ruleText),
28805
28821
  children: [
28806
28822
  /* @__PURE__ */ z("span", {
28807
28823
  className: m,
28808
28824
  children: e.source
28809
28825
  }),
28810
28826
  " ",
28811
- SD(e.function, ye),
28827
+ CD(e.function, ye),
28812
28828
  ": ",
28813
28829
  n
28814
28830
  ]
@@ -28825,7 +28841,7 @@ var vE = {
28825
28841
  }, t);
28826
28842
  })
28827
28843
  }),
28828
- se && /* @__PURE__ */ z(yD, {
28844
+ se && /* @__PURE__ */ z(bD, {
28829
28845
  sourceOptions: n,
28830
28846
  onSave: he,
28831
28847
  onCancel: me,
@@ -28848,27 +28864,27 @@ var vE = {
28848
28864
  })
28849
28865
  }),
28850
28866
  be && /* @__PURE__ */ z("p", {
28851
- className: W("mt-2", d, bD.hint),
28867
+ className: W("mt-2", d, xD.hint),
28852
28868
  children: S.replace("{max}", String(s))
28853
28869
  })
28854
28870
  ]
28855
28871
  });
28856
- }, wD = { divider: "_divider_a8iz6_1" }, TD = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: c = "Add sibling", addChildFolderLabel: l = "Add child", newFolderDefaultName: u = "New folder", noResultsLabel: d = "No folders match \"{query}\".", emptyFolderNameError: f = "Folder name cannot be empty.", invalidFolderNameError: p = "Folder name contains invalid characters.", duplicateFolderNameError: m = "A folder with this name already exists.", rootLabel: h = "Organization", expandedPaths: g, onExpandedPathsChange: _, loadingPaths: v, styles: y = {} }) => {
28872
+ }, TD = { divider: "_divider_a8iz6_1" }, ED = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: c = "Add sibling", addChildFolderLabel: l = "Add child", newFolderDefaultName: u = "New folder", noResultsLabel: d = "No folders match \"{query}\".", emptyFolderNameError: f = "Folder name cannot be empty.", invalidFolderNameError: p = "Folder name contains invalid characters.", duplicateFolderNameError: m = "A folder with this name already exists.", rootLabel: h = "Organization", expandedPaths: g, onExpandedPathsChange: _, loadingPaths: v, styles: y = {} }) => {
28857
28873
  let b = {
28858
28874
  ...is({ "--pft-divider": y.colors?.divider }),
28859
28875
  ...y.cssVars
28860
- }, [x, S] = R(() => new Set(t?.map((e, n) => sD(t.slice(0, n + 1))) ?? [])), C = g ?? x, w = (e) => {
28876
+ }, [x, S] = R(() => new Set(t?.map((e, n) => cD(t.slice(0, n + 1))) ?? [])), C = g ?? x, w = (e) => {
28861
28877
  let t = new Set(e);
28862
28878
  t.delete(""), _ ? _(t) : S(t);
28863
- }, [T, E] = R(null), [D, O] = R(u), ee = L(null), te = i.trim(), ne = T != null, re = I(() => rD(e, i), [e, i]), ie = te.length > 0 && re.length === 0, j = !ne && te.length > 0, M = I(() => aD(j ? re : e), [
28879
+ }, [T, E] = R(null), [D, O] = R(u), ee = L(null), te = i.trim(), ne = T != null, re = I(() => iD(e, i), [e, i]), ie = te.length > 0 && re.length === 0, j = !ne && te.length > 0, M = I(() => oD(j ? re : e), [
28864
28880
  j,
28865
28881
  re,
28866
28882
  e
28867
- ]), ae = I(() => new Set(["", ...oD(M)]), [M]), oe = I(() => new Set(["", ...j ? ae : C]), [
28883
+ ]), ae = I(() => new Set(["", ...sD(M)]), [M]), oe = I(() => new Set(["", ...j ? ae : C]), [
28868
28884
  j,
28869
28885
  ae,
28870
28886
  C
28871
- ]), se = I(() => lD(M), [M]), ce = I(() => j && se.length === 0 ? [] : [{
28887
+ ]), se = I(() => uD(M), [M]), ce = I(() => j && se.length === 0 ? [] : [{
28872
28888
  path: "",
28873
28889
  name: h,
28874
28890
  folderId: "",
@@ -28878,16 +28894,16 @@ var vE = {
28878
28894
  se,
28879
28895
  h,
28880
28896
  j
28881
- ]), le = T ? sD(T) : null, ue = {
28897
+ ]), le = T ? cD(T) : null, ue = {
28882
28898
  empty: f,
28883
28899
  invalid: p,
28884
28900
  duplicate: m
28885
- }, de = (t) => fD(ie && dD(te, [], ue) == null ? te : u, pD(e, t)), fe = (e) => {
28901
+ }, de = (t) => pD(ie && fD(te, [], ue) == null ? te : u, mD(e, t)), fe = (e) => {
28886
28902
  E(e), O(de(e)), ee.current = null;
28887
- let t = sD(e);
28903
+ let t = cD(e);
28888
28904
  t && w(new Set(C).add(t));
28889
28905
  }, pe = () => fe(t ?? []), me = (e) => {
28890
- let t = cD(e.path), n = [{
28906
+ let t = lD(e.path), n = [{
28891
28907
  key: "add-child",
28892
28908
  label: l,
28893
28909
  icon: /* @__PURE__ */ z(Vt, {
@@ -28909,7 +28925,7 @@ var vE = {
28909
28925
  }), n;
28910
28926
  }, he = (t) => {
28911
28927
  if (!T) return null;
28912
- let n = dD(t, pD(e, T), ue);
28928
+ let n = fD(t, mD(e, T), ue);
28913
28929
  return ee.current = n, n;
28914
28930
  }, N = (e) => {
28915
28931
  if (!T) return;
@@ -28925,12 +28941,12 @@ var vE = {
28925
28941
  children: /* @__PURE__ */ z(ma, {
28926
28942
  items: ce,
28927
28943
  showFiles: !1,
28928
- selectedPath: t == null ? void 0 : sD(t),
28944
+ selectedPath: t == null ? void 0 : cD(t),
28929
28945
  expandedPaths: oe,
28930
28946
  onExpandedPathsChange: w,
28931
28947
  loadingPaths: v,
28932
28948
  onItemClick: (e) => {
28933
- n(t != null && sD(t) === e.path ? void 0 : cD(e.path));
28949
+ n(t != null && cD(t) === e.path ? void 0 : lD(e.path));
28934
28950
  },
28935
28951
  getContextMenuItems: me,
28936
28952
  createdFolderPath: le,
@@ -28942,7 +28958,7 @@ var vE = {
28942
28958
  })
28943
28959
  }),
28944
28960
  /* @__PURE__ */ z("div", {
28945
- className: W("my-2 h-px", wD.divider),
28961
+ className: W("my-2 h-px", TD.divider),
28946
28962
  "aria-hidden": !0
28947
28963
  }),
28948
28964
  /* @__PURE__ */ B("div", {
@@ -28964,10 +28980,10 @@ var vE = {
28964
28980
  })
28965
28981
  ]
28966
28982
  });
28967
- }, ED = {
28983
+ }, DD = {
28968
28984
  summaryTitle: "_summaryTitle_tf20a_1",
28969
28985
  sectionHeading: "_sectionHeading_tf20a_5"
28970
- }, DD = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: f, hasWriteAccess: p, isSubmitting: m, hasSubmitError: h = !1, allowReplace: g = !0, rules: _, onRulesChange: v, ruleSourceOptions: y, isRulesLoading: b = !1, hasRulesLoadError: x = !1, labels: S = {}, summaryTitleClassName: C = "dial-body-semi-text", headingClassName: w = "dial-body-semi-text", styles: T = {} }) => {
28986
+ }, OD = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: f, hasWriteAccess: p, isSubmitting: m, hasSubmitError: h = !1, allowReplace: g = !0, rules: _, onRulesChange: v, ruleSourceOptions: y, isRulesLoading: b = !1, hasRulesLoadError: x = !1, labels: S = {}, summaryTitleClassName: C = "dial-body-semi-text", headingClassName: w = "dial-body-semi-text", styles: T = {} }) => {
28971
28987
  let { colors: E, folderTree: D, accessRules: O } = T, ee = {
28972
28988
  ...is({
28973
28989
  "--pp-summary-title-text": E?.summaryTitleText,
@@ -28982,7 +28998,7 @@ var vE = {
28982
28998
  versionTagText: E?.summaryVersionTagText
28983
28999
  }, { folderLabel: A = "Publish to folder", replaceWarning: te = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ne = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: re = "Publishing failed. Please try again.", folderEmptyStateLabel: ie, addSiblingFolderLabel: j, addChildFolderLabel: M, cancelCreatingFolderLabel: ae, createFolderEmptyNameError: oe, createFolderInvalidNameError: se, createFolderDuplicateNameError: ce, rootFolderLabel: le = "Organization", summaryVersionLabel: ue, accessRulesLabels: de, searchPlaceholder: fe, clearSearchAriaLabel: pe } = S, [me, he] = R(""), N = (e) => {
28984
29000
  he(e ?? "");
28985
- }, ge = o != null, _e = I(() => $E({
29001
+ }, ge = o != null, _e = I(() => eD({
28986
29002
  hasSelectedFolder: ge,
28987
29003
  hasExistingPublicationInFolder: f,
28988
29004
  hasWriteAccess: p,
@@ -28997,7 +29013,7 @@ var vE = {
28997
29013
  h,
28998
29014
  g
28999
29015
  ]), ve = ge ? o[o.length - 1] ?? le : "", ye = t ? t() : /* @__PURE__ */ z("span", {
29000
- className: W("truncate", C, ED.summaryTitle),
29016
+ className: W("truncate", C, DD.summaryTitle),
29001
29017
  children: e?.title
29002
29018
  });
29003
29019
  return /* @__PURE__ */ B("div", {
@@ -29017,7 +29033,7 @@ var vE = {
29017
29033
  colors: k
29018
29034
  }), /* @__PURE__ */ B("div", { children: [
29019
29035
  /* @__PURE__ */ z("div", {
29020
- className: W("mb-2", w, ED.sectionHeading),
29036
+ className: W("mb-2", w, DD.sectionHeading),
29021
29037
  children: A
29022
29038
  }),
29023
29039
  /* @__PURE__ */ z("div", {
@@ -29031,7 +29047,7 @@ var vE = {
29031
29047
  "aria-label": fe
29032
29048
  })
29033
29049
  }),
29034
- /* @__PURE__ */ z(TD, {
29050
+ /* @__PURE__ */ z(ED, {
29035
29051
  items: a,
29036
29052
  selectedPath: o,
29037
29053
  onSelectedPathChange: s,
@@ -29051,12 +29067,12 @@ var vE = {
29051
29067
  rootLabel: le,
29052
29068
  styles: D
29053
29069
  }),
29054
- _e.calloutKind !== QE.None && _e.calloutKind !== QE.Info && /* @__PURE__ */ z("div", {
29070
+ _e.calloutKind !== $E.None && _e.calloutKind !== $E.Info && /* @__PURE__ */ z("div", {
29055
29071
  className: "mt-3",
29056
29072
  children: /* @__PURE__ */ z(ke, {
29057
29073
  type: Ae.SectionMessage,
29058
- variant: OD(_e.calloutKind),
29059
- message: AD(_e.calloutKind, {
29074
+ variant: kD(_e.calloutKind),
29075
+ message: jD(_e.calloutKind, {
29060
29076
  replaceWarning: te,
29061
29077
  noAccessError: ne,
29062
29078
  submitError: re,
@@ -29067,7 +29083,7 @@ var vE = {
29067
29083
  }),
29068
29084
  /* @__PURE__ */ z("div", {
29069
29085
  className: "mt-4",
29070
- children: /* @__PURE__ */ z(CD, {
29086
+ children: /* @__PURE__ */ z(wD, {
29071
29087
  rules: _,
29072
29088
  onRulesChange: v,
29073
29089
  sourceOptions: y,
@@ -29081,7 +29097,7 @@ var vE = {
29081
29097
  })
29082
29098
  ] })]
29083
29099
  });
29084
- }, OD = (e) => e === QE.ReplaceWarning ? je.Warning : je.Error, kD = (e, t) => {
29100
+ }, kD = (e) => e === $E.ReplaceWarning ? je.Warning : je.Error, AD = (e, t) => {
29085
29101
  let [n, r, ...i] = e.split("{folder}");
29086
29102
  return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ B(ht, { children: [
29087
29103
  n,
@@ -29091,11 +29107,11 @@ var vE = {
29091
29107
  }),
29092
29108
  r
29093
29109
  ] });
29094
- }, AD = (e, t) => e === QE.ReplaceWarning ? kD(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === QE.NoAccess ? kD(t.noAccessError, t.folderName) : t.submitError, jD = { footer: "_footer_dks1v_1" }, MD = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
29110
+ }, jD = (e, t) => e === $E.ReplaceWarning ? AD(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === $E.NoAccess ? AD(t.noAccessError, t.folderName) : t.submitError, MD = { footer: "_footer_dks1v_1" }, ND = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
29095
29111
  let c = is({ "--pf-border": s?.border }), { cancelLabel: l = "Cancel", publishDefaultLabel: u = "Publish", updateLabel: d = "Update version {version}", publishingInProgressLabel: f = "Publishing…" } = o, p = r ? f : t && e != null ? d.replace("{version}", e) : u;
29096
29112
  return /* @__PURE__ */ B("div", {
29097
29113
  style: c,
29098
- className: W("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", jD.footer),
29114
+ className: W("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", MD.footer),
29099
29115
  children: [/* @__PURE__ */ z(_e, {
29100
29116
  label: l,
29101
29117
  disabled: r,
@@ -29121,20 +29137,20 @@ var vE = {
29121
29137
  ].join(",");
29122
29138
  //#endregion
29123
29139
  //#region src/utils/catalog-content-tree.ts
29124
- var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items), 0), PD = (e) => {
29140
+ var PD = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + PD(t.items), 0), FD = (e) => {
29125
29141
  let t = /* @__PURE__ */ new Set(), n = (e) => {
29126
29142
  for (let r of e) r.type === Ln.Folder && (t.add(r.id), n(r.items));
29127
29143
  };
29128
29144
  return n(e), t;
29129
- }, FD = (e, t) => {
29145
+ }, ID = (e, t) => {
29130
29146
  if (t != null) for (let n of e) {
29131
29147
  if (n.id === t) return n.name;
29132
29148
  if (n.type === Ln.Folder) {
29133
- let e = FD(n.items, t);
29149
+ let e = ID(n.items, t);
29134
29150
  if (e != null) return e;
29135
29151
  }
29136
29152
  }
29137
- }, ID = {
29153
+ }, LD = {
29138
29154
  sectionHeading: "_sectionHeading_jnq93_1",
29139
29155
  rowAlt: "_rowAlt_jnq93_5",
29140
29156
  label: "_label_jnq93_9",
@@ -29142,19 +29158,19 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29142
29158
  valueTrue: "_valueTrue_jnq93_17",
29143
29159
  valueFalse: "_valueFalse_jnq93_21",
29144
29160
  valueText: "_valueText_jnq93_25"
29145
- }, LD = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z(Et, {
29161
+ }, RD = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z(Et, {
29146
29162
  size: k.MD,
29147
- className: W(r, ID.checkIcon)
29163
+ className: W(r, LD.checkIcon)
29148
29164
  }), /* @__PURE__ */ z("span", {
29149
- className: W(n, ID.valueTrue),
29165
+ className: W(n, LD.valueTrue),
29150
29166
  children: i
29151
29167
  })] }) : e === !1 ? /* @__PURE__ */ z("span", {
29152
- className: W(t, ID.valueFalse),
29168
+ className: W(t, LD.valueFalse),
29153
29169
  children: a
29154
29170
  }) : /* @__PURE__ */ z("span", {
29155
- className: W("min-w-0 break-words", t, ID.valueText),
29171
+ className: W("min-w-0 break-words", t, LD.valueText),
29156
29172
  children: e
29157
- }), RD = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ z("div", {
29173
+ }), zD = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ z("div", {
29158
29174
  className: "flex flex-col",
29159
29175
  style: is({
29160
29176
  "--tv-section-heading": l?.sectionHeading,
@@ -29166,18 +29182,18 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29166
29182
  "--tv-value-text": l?.valueText
29167
29183
  }),
29168
29184
  children: t != null && t.length > 0 && /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
29169
- className: W("mb-3 mt-0", o, ID.sectionHeading),
29185
+ className: W("mb-3 mt-0", o, LD.sectionHeading),
29170
29186
  children: e
29171
29187
  }), /* @__PURE__ */ z("ul", {
29172
29188
  className: "m-0 list-none p-0",
29173
29189
  children: t.map((e, t) => /* @__PURE__ */ B("li", {
29174
- className: W("flex items-center rounded px-3 py-2", t % 2 == 0 ? ID.rowAlt : void 0),
29190
+ className: W("flex items-center rounded px-3 py-2", t % 2 == 0 ? LD.rowAlt : void 0),
29175
29191
  children: [/* @__PURE__ */ z("span", {
29176
- className: W(n, ID.label, "w-2/5 shrink-0"),
29192
+ className: W(n, LD.label, "w-2/5 shrink-0"),
29177
29193
  children: e.label
29178
29194
  }), /* @__PURE__ */ z("div", {
29179
29195
  className: "flex w-3/5 min-w-0 items-center gap-1",
29180
- children: /* @__PURE__ */ z(LD, {
29196
+ children: /* @__PURE__ */ z(RD, {
29181
29197
  value: e.value,
29182
29198
  valueClassName: r,
29183
29199
  valueTrueClassName: i,
@@ -29188,30 +29204,30 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29188
29204
  })]
29189
29205
  }, e.label))
29190
29206
  })] })
29191
- }), zD = { sectionHeading: "_sectionHeading_148lj_1" }, BD = {
29207
+ }), BD = { sectionHeading: "_sectionHeading_148lj_1" }, VD = {
29192
29208
  [Cn.Python]: "Python",
29193
29209
  [Cn.Curl]: "cURL",
29194
29210
  [Cn.JavaScript]: "JavaScript"
29195
- }, VD = {
29211
+ }, HD = {
29196
29212
  [Cn.Python]: "python",
29197
29213
  [Cn.Curl]: "bash",
29198
29214
  [Cn.JavaScript]: "javascript"
29199
- }, HD = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
29215
+ }, UD = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
29200
29216
  let [s, c] = R(e[0]?.language ?? Cn.Python);
29201
29217
  F(() => {
29202
29218
  c(e[0]?.language ?? Cn.Python);
29203
29219
  }, [e]);
29204
29220
  let l = I(() => e.map((e) => ({
29205
29221
  key: e.language,
29206
- label: BD[e.language] ?? e.language,
29222
+ label: VD[e.language] ?? e.language,
29207
29223
  onClick: () => c(e.language)
29208
29224
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
29209
29225
  return /* @__PURE__ */ B("section", { children: [t != null && /* @__PURE__ */ z("p", {
29210
- className: W("mb-3 mt-0", o, zD.sectionHeading),
29226
+ className: W("mb-3 mt-0", o, BD.sectionHeading),
29211
29227
  children: t
29212
29228
  }), /* @__PURE__ */ z(MT, {
29213
- language: VD[s] ?? s,
29214
- title: BD[s] ?? s,
29229
+ language: HD[s] ?? s,
29230
+ title: VD[s] ?? s,
29215
29231
  value: u,
29216
29232
  copyLabel: n,
29217
29233
  copiedLabel: r,
@@ -29226,7 +29242,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29226
29242
  selectedKey: s
29227
29243
  }) : void 0
29228
29244
  })] });
29229
- }, UD = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
29245
+ }, WD = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
29230
29246
  let [h, g] = R(0), _ = I(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = I(() => _.map((e, t) => ({
29231
29247
  key: e.url,
29232
29248
  label: e.label,
@@ -29240,7 +29256,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29240
29256
  return /* @__PURE__ */ B("div", {
29241
29257
  className: "flex flex-col gap-6",
29242
29258
  children: [
29243
- C && /* @__PURE__ */ z(RD, {
29259
+ C && /* @__PURE__ */ z(zD, {
29244
29260
  sectionLabel: t,
29245
29261
  values: x,
29246
29262
  labelClassName: u,
@@ -29258,7 +29274,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29258
29274
  }),
29259
29275
  v && /* @__PURE__ */ B("section", { children: [
29260
29276
  /* @__PURE__ */ z("p", {
29261
- className: W("mb-3 mt-0", m, zD.sectionHeading),
29277
+ className: W("mb-3 mt-0", m, BD.sectionHeading),
29262
29278
  children: n
29263
29279
  }),
29264
29280
  y != null && /* @__PURE__ */ z(MT, {
@@ -29279,7 +29295,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29279
29295
  }, h),
29280
29296
  y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ z("div", {
29281
29297
  className: "mt-4",
29282
- children: /* @__PURE__ */ z(HD, {
29298
+ children: /* @__PURE__ */ z(UD, {
29283
29299
  snippets: y.snippets,
29284
29300
  copyAriaLabel: c,
29285
29301
  copiedStatusLabel: l,
@@ -29289,7 +29305,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29289
29305
  }, h)
29290
29306
  })
29291
29307
  ] }),
29292
- !v && T && /* @__PURE__ */ z(HD, {
29308
+ !v && T && /* @__PURE__ */ z(UD, {
29293
29309
  snippets: e.snippets ?? [],
29294
29310
  sectionLabel: r,
29295
29311
  copyAriaLabel: c,
@@ -29299,7 +29315,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29299
29315
  sectionClassName: m
29300
29316
  }),
29301
29317
  E && /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
29302
- className: W("mb-3 mt-0", m, zD.sectionHeading),
29318
+ className: W("mb-3 mt-0", m, BD.sectionHeading),
29303
29319
  children: o
29304
29320
  }), /* @__PURE__ */ z(MT, {
29305
29321
  language: "bash",
@@ -29310,7 +29326,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29310
29326
  hideDownload: !0
29311
29327
  })] }),
29312
29328
  D && /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
29313
- className: W("mb-3 mt-0", m, zD.sectionHeading),
29329
+ className: W("mb-3 mt-0", m, BD.sectionHeading),
29314
29330
  children: s
29315
29331
  }), /* @__PURE__ */ z(MT, {
29316
29332
  language: "json",
@@ -29322,11 +29338,11 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29322
29338
  })] })
29323
29339
  ]
29324
29340
  });
29325
- }, WD = {
29341
+ }, GD = {
29326
29342
  message: "_message_13mok_1",
29327
29343
  consequences: "_consequences_13mok_5",
29328
29344
  footer: "_footer_13mok_9"
29329
- }, GD = ({ confirmLabel: e, cancelLabel: t, variant: n = Dn.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
29345
+ }, KD = ({ confirmLabel: e, cancelLabel: t, variant: n = Dn.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
29330
29346
  let c = n === Dn.Danger, l = (() => {
29331
29347
  if (r) return /* @__PURE__ */ z(Ue, { size: k.SM });
29332
29348
  if (c) return /* @__PURE__ */ z(nn, {
@@ -29336,7 +29352,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29336
29352
  });
29337
29353
  })(), u = c ? te : Ee;
29338
29354
  return /* @__PURE__ */ B("div", {
29339
- className: W("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", WD.footer),
29355
+ className: W("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", GD.footer),
29340
29356
  children: [
29341
29357
  /* @__PURE__ */ z(_e, {
29342
29358
  label: t,
@@ -29357,78 +29373,78 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29357
29373
  })
29358
29374
  ]
29359
29375
  });
29360
- }, KD = {
29376
+ }, qD = {
29361
29377
  info: "_info_lklha_1",
29362
29378
  danger: "_danger_lklha_5"
29363
- }, qD = ({ item: e, variant: t = Dn.Info, iconSize: n = 40 }) => /* @__PURE__ */ z(Ov, {
29379
+ }, JD = ({ item: e, variant: t = Dn.Info, iconSize: n = 40 }) => /* @__PURE__ */ z(Ov, {
29364
29380
  item: e,
29365
29381
  iconSize: n,
29366
29382
  hasVersionTag: !1,
29367
- className: t === Dn.Danger ? KD.danger : KD.info
29368
- }), JD = ({ item: e, message: t, consequences: n, variant: r = Dn.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ B("div", {
29383
+ className: t === Dn.Danger ? qD.danger : qD.info
29384
+ }), YD = ({ item: e, message: t, consequences: n, variant: r = Dn.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ B("div", {
29369
29385
  className: "flex flex-col gap-4 px-6 py-4",
29370
29386
  children: [
29371
- /* @__PURE__ */ z(qD, {
29387
+ /* @__PURE__ */ z(JD, {
29372
29388
  item: e,
29373
29389
  variant: r
29374
29390
  }),
29375
29391
  /* @__PURE__ */ z("p", {
29376
- className: W(i, "break-words", WD.message),
29392
+ className: W(i, "break-words", GD.message),
29377
29393
  children: t
29378
29394
  }),
29379
29395
  n != null && n.length > 0 && /* @__PURE__ */ z("ul", {
29380
- className: W("flex list-disc flex-col gap-2 ps-5", i, WD.consequences),
29396
+ className: W("flex list-disc flex-col gap-2 ps-5", i, GD.consequences),
29381
29397
  children: n.map((e) => /* @__PURE__ */ z("li", { children: e }, e))
29382
29398
  }),
29383
29399
  a
29384
29400
  ]
29385
- }), YD = {
29401
+ }), XD = {
29386
29402
  sunkenBox: "_sunkenBox_1lqi3_1",
29387
29403
  raisedBox: "_raisedBox_1lqi3_5",
29388
29404
  activeIcon: "_activeIcon_1lqi3_9"
29389
- }, XD = /* @__PURE__ */ function(e) {
29405
+ }, ZD = /* @__PURE__ */ function(e) {
29390
29406
  return e.Sunken = "sunken", e.Raised = "raised", e;
29391
- }({}), ZD = {
29392
- sunken: YD.sunkenBox,
29393
- raised: YD.raisedBox
29394
- }, QD = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ B("span", {
29407
+ }({}), QD = {
29408
+ sunken: XD.sunkenBox,
29409
+ raised: XD.raisedBox
29410
+ }, $D = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ B("span", {
29395
29411
  className: "relative inline-flex shrink-0",
29396
29412
  children: [
29397
29413
  /* @__PURE__ */ z("span", {
29398
- className: W("flex size-8 items-center justify-center rounded-lg", ZD[n]),
29414
+ className: W("flex size-8 items-center justify-center rounded-lg", QD[n]),
29399
29415
  children: e
29400
29416
  }),
29401
29417
  t && /* @__PURE__ */ z(Et, {
29402
29418
  size: k.MD,
29403
29419
  "aria-hidden": !0,
29404
- className: W("absolute -end-2 -top-2", YD.activeIcon)
29420
+ className: W("absolute -end-2 -top-2", XD.activeIcon)
29405
29421
  }),
29406
29422
  r != null && /* @__PURE__ */ z("span", {
29407
29423
  className: "sr-only",
29408
29424
  children: r
29409
29425
  })
29410
29426
  ]
29411
- }), $D = {
29427
+ }), eO = {
29412
29428
  card: "_card_tqnz7_1",
29413
29429
  icon: "_icon_tqnz7_6",
29414
29430
  title: "_title_tqnz7_10",
29415
29431
  description: "_description_tqnz7_14"
29416
- }, eO = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ B("div", {
29432
+ }, tO = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ B("div", {
29417
29433
  role: "status",
29418
29434
  "aria-live": "polite",
29419
- className: W("flex items-center gap-3 rounded-xl p-3", $D.card),
29435
+ className: W("flex items-center gap-3 rounded-xl p-3", eO.card),
29420
29436
  children: [/* @__PURE__ */ z("span", {
29421
- className: W("shrink-0", $D.icon, n != null && "mt-0.5"),
29437
+ className: W("shrink-0", eO.icon, n != null && "mt-0.5"),
29422
29438
  children: e
29423
29439
  }), /* @__PURE__ */ B("div", {
29424
29440
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
29425
29441
  children: [/* @__PURE__ */ B("div", {
29426
29442
  className: "flex min-w-0 flex-col gap-1",
29427
29443
  children: [/* @__PURE__ */ z("span", {
29428
- className: W(i, $D.title),
29444
+ className: W(i, eO.title),
29429
29445
  children: t
29430
29446
  }), n != null && /* @__PURE__ */ z("span", {
29431
- className: W(a, $D.description),
29447
+ className: W(a, eO.description),
29432
29448
  children: n
29433
29449
  })]
29434
29450
  }), r != null && /* @__PURE__ */ z("div", {
@@ -29436,53 +29452,53 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29436
29452
  children: r
29437
29453
  })]
29438
29454
  })]
29439
- }), tO = (e) => e === kn.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", nO = (e) => e === kn.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", rO = (e) => e === kn.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", iO = (e) => e === kn.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", aO = 20, oO = ({ state: e, authenticationType: t, texts: n }) => {
29455
+ }), nO = (e) => e === kn.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", rO = (e) => e === kn.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", iO = (e) => e === kn.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", aO = (e) => e === kn.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", oO = 20, sO = ({ state: e, authenticationType: t, texts: n }) => {
29440
29456
  let r = /* @__PURE__ */ z(bt, {
29441
- size: aO,
29457
+ size: oO,
29442
29458
  "aria-hidden": !0,
29443
29459
  stroke: A
29444
29460
  });
29445
29461
  if (e === Pn.PersonalCredentialsActive) {
29446
- let e = (n?.personalCredentialsActiveBannerTitle ?? iO)(t);
29447
- return /* @__PURE__ */ z(eO, {
29448
- icon: /* @__PURE__ */ z(QD, {
29462
+ let e = (n?.personalCredentialsActiveBannerTitle ?? aO)(t);
29463
+ return /* @__PURE__ */ z(tO, {
29464
+ icon: /* @__PURE__ */ z($D, {
29449
29465
  icon: /* @__PURE__ */ z(rn, {
29450
29466
  size: k.SM,
29451
29467
  "aria-hidden": !0,
29452
29468
  stroke: A
29453
29469
  }),
29454
29470
  isActive: !0,
29455
- surface: XD.Raised
29471
+ surface: ZD.Raised
29456
29472
  }),
29457
29473
  title: e
29458
29474
  });
29459
29475
  }
29460
29476
  if (e === Pn.OrgCredentialsActive) {
29461
- let e = (n?.orgCredentialsActiveBannerTitle ?? rO)(t);
29462
- return /* @__PURE__ */ z(eO, {
29463
- icon: /* @__PURE__ */ z(QD, {
29477
+ let e = (n?.orgCredentialsActiveBannerTitle ?? iO)(t);
29478
+ return /* @__PURE__ */ z(tO, {
29479
+ icon: /* @__PURE__ */ z($D, {
29464
29480
  icon: /* @__PURE__ */ z(bt, {
29465
29481
  size: k.SM,
29466
29482
  "aria-hidden": !0,
29467
29483
  stroke: A
29468
29484
  }),
29469
29485
  isActive: !0,
29470
- surface: XD.Raised
29486
+ surface: ZD.Raised
29471
29487
  }),
29472
29488
  title: e
29473
29489
  });
29474
29490
  }
29475
- return /* @__PURE__ */ z(eO, {
29491
+ return /* @__PURE__ */ z(tO, {
29476
29492
  icon: r,
29477
- title: (n?.orgFallbackBannerTitle ?? tO)(t),
29478
- description: (n?.orgFallbackBannerDescription ?? nO)(t)
29493
+ title: (n?.orgFallbackBannerTitle ?? nO)(t),
29494
+ description: (n?.orgFallbackBannerDescription ?? rO)(t)
29479
29495
  });
29480
- }, sO = {
29496
+ }, cO = {
29481
29497
  surface: "_surface_1q3s8_1",
29482
29498
  description: "_description_1q3s8_5",
29483
29499
  rowDescription: "_rowDescription_1q3s8_9",
29484
29500
  errorText: "_errorText_1q3s8_13"
29485
- }, cO = ({ item: e, level: t, label: n, description: r, icon: i, status: a, isActive: o, authenticationType: s, apiKeyAddedWhen: c, onLogin: l, onRequestLogout: u, onRequestDeleteApiKey: d, texts: f, labelClassName: p, descriptionClassName: m, errorClassName: h, keyCardTitleClassName: g, keyCardDescriptionClassName: v, deleteActionClassName: y }) => {
29501
+ }, lO = ({ item: e, level: t, label: n, description: r, icon: i, status: a, isActive: o, authenticationType: s, apiKeyAddedWhen: c, onLogin: l, onRequestLogout: u, onRequestDeleteApiKey: d, texts: f, labelClassName: p, descriptionClassName: m, errorClassName: h, keyCardTitleClassName: g, keyCardDescriptionClassName: v, deleteActionClassName: y }) => {
29486
29502
  let [b, x] = R(""), [S, C] = R(!1), [w, T] = R(!1), E = a === An.SignedIn, D = P(() => {
29487
29503
  l?.(e, { level: t });
29488
29504
  }, [
@@ -29517,7 +29533,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29517
29533
  }, [t, d]), ie = f?.loginActionLabel ?? "Log in", j = f?.logoutActionLabel ?? "Log out", M = f?.addApiKeyActionLabel ?? "Add", ae = f?.deleteActionLabel ?? "Delete", oe = f?.credentialsSignedInLabel ?? "Signed in", se = f?.credentialsSignedOutLabel ?? "Signed out", ce = f?.addingApiKeyStatusLabel ?? "Adding", le = f?.apiKeyConfiguredMessage ?? "Key has been configured", ue = c == null ? void 0 : (f?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(c);
29518
29534
  return /* @__PURE__ */ B("div", {
29519
29535
  className: "flex items-start gap-3 rounded-xl p-3",
29520
- children: [/* @__PURE__ */ z(QD, {
29536
+ children: [/* @__PURE__ */ z($D, {
29521
29537
  icon: i,
29522
29538
  isActive: o,
29523
29539
  statusLabel: o ? oe : se
@@ -29532,7 +29548,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29532
29548
  className: p,
29533
29549
  children: n
29534
29550
  }), /* @__PURE__ */ z("span", {
29535
- className: W(m, sO.rowDescription),
29551
+ className: W(m, cO.rowDescription),
29536
29552
  children: r
29537
29553
  })]
29538
29554
  }), s === kn.OAuth && (E ? /* @__PURE__ */ z(te, {
@@ -29572,13 +29588,13 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29572
29588
  disabled: w
29573
29589
  })]
29574
29590
  }), S && /* @__PURE__ */ z("span", {
29575
- className: W(h, sO.errorText),
29591
+ className: W(h, cO.errorText),
29576
29592
  children: f?.apiKeyRequiredErrorMessage ?? "API key is required."
29577
29593
  })]
29578
29594
  }),
29579
29595
  s === kn.ApiKey && E && /* @__PURE__ */ z("div", {
29580
29596
  className: "animate-fadeIn pt-1",
29581
- children: /* @__PURE__ */ z(eO, {
29597
+ children: /* @__PURE__ */ z(tO, {
29582
29598
  icon: /* @__PURE__ */ z(Ut, {
29583
29599
  size: k.SM,
29584
29600
  "aria-hidden": !0,
@@ -29598,16 +29614,16 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29598
29614
  ]
29599
29615
  })]
29600
29616
  });
29601
- }, lO = (e) => e === kn.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", uO = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
29617
+ }, uO = (e) => e === kn.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", dO = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
29602
29618
  let { credentialsDescriptionClassName: s = "dial-body-paragraph-text", credentialsRowLabelClassName: c = "dial-small-semi-text", credentialsRowDescriptionClassName: l = "dial-small-text", credentialsErrorClassName: u = "dial-caption-text", credentialsKeyCardTitleClassName: d = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: f = "dial-tiny-text" } = a?.typography ?? {}, p = e.credentials;
29603
29619
  if (p == null) return null;
29604
- let m = (i?.credentialsManagementDescription ?? lO)(p.authenticationType), h = p.userStatus === An.SignedIn, g = !h && p.globalStatus === An.SignedIn;
29620
+ let m = (i?.credentialsManagementDescription ?? uO)(p.authenticationType), h = p.userStatus === An.SignedIn, g = !h && p.globalStatus === An.SignedIn;
29605
29621
  return /* @__PURE__ */ B("div", {
29606
29622
  className: "flex flex-col",
29607
29623
  children: [/* @__PURE__ */ z("div", {
29608
29624
  className: "px-6 py-4",
29609
29625
  children: /* @__PURE__ */ z("div", {
29610
- className: W("rounded-xl p-3", sO.surface),
29626
+ className: W("rounded-xl p-3", cO.surface),
29611
29627
  children: /* @__PURE__ */ z(Ev, {
29612
29628
  item: e,
29613
29629
  iconSize: 40,
@@ -29617,11 +29633,11 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29617
29633
  }), /* @__PURE__ */ B("div", {
29618
29634
  className: "flex flex-col gap-5 px-6 py-4",
29619
29635
  children: [/* @__PURE__ */ z("span", {
29620
- className: W(s, sO.description),
29636
+ className: W(s, cO.description),
29621
29637
  children: m
29622
29638
  }), /* @__PURE__ */ B("div", {
29623
29639
  className: "flex flex-col",
29624
- children: [/* @__PURE__ */ z(cO, {
29640
+ children: [/* @__PURE__ */ z(lO, {
29625
29641
  item: e,
29626
29642
  level: jn.User,
29627
29643
  label: i?.personalCredentialsLabel ?? "Personal credentials",
@@ -29645,7 +29661,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29645
29661
  keyCardTitleClassName: d,
29646
29662
  keyCardDescriptionClassName: f,
29647
29663
  deleteActionClassName: o
29648
- }), /* @__PURE__ */ z(cO, {
29664
+ }), /* @__PURE__ */ z(lO, {
29649
29665
  item: e,
29650
29666
  level: jn.Global,
29651
29667
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
@@ -29673,16 +29689,16 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29673
29689
  })]
29674
29690
  })]
29675
29691
  });
29676
- }, dO = {
29692
+ }, fO = {
29677
29693
  skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
29678
29694
  backdrop: "_backdrop_16ka5_2",
29679
29695
  panel: "_panel_16ka5_6",
29680
29696
  divider: "_divider_16ka5_11",
29681
29697
  content: "_content_16ka5_15",
29682
29698
  publishTitle: "_publishTitle_16ka5_20"
29683
- }, fO = /* @__PURE__ */ function(e) {
29699
+ }, pO = /* @__PURE__ */ function(e) {
29684
29700
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
29685
- }({}), pO = { divider: "_divider_nhloi_1" }, mO = 16, hO = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: s, deleteActionClassName: c = "text-error" }) => {
29701
+ }({}), mO = { divider: "_divider_nhloi_1" }, hO = 16, gO = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: s, deleteActionClassName: c = "text-error" }) => {
29686
29702
  let [l, u] = R(""), [d, f] = R(!1), [p, m] = R(!1), [h, g] = R(!1), _ = n === An.SignedIn, v = P((e) => {
29687
29703
  u(e ?? ""), f(!1);
29688
29704
  }, []), y = P(async () => {
@@ -29728,7 +29744,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29728
29744
  children: x
29729
29745
  })
29730
29746
  }),
29731
- /* @__PURE__ */ z("div", { className: W("mx-4 h-px", pO.divider) }),
29747
+ /* @__PURE__ */ z("div", { className: W("mx-4 h-px", mO.divider) }),
29732
29748
  !_ && /* @__PURE__ */ B("div", {
29733
29749
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
29734
29750
  children: [/* @__PURE__ */ B("div", {
@@ -29747,7 +29763,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29747
29763
  label: p ? void 0 : S,
29748
29764
  "aria-label": p ? w : void 0,
29749
29765
  iconBefore: p ? /* @__PURE__ */ z(Ue, {
29750
- size: mO,
29766
+ size: hO,
29751
29767
  ariaLabel: w
29752
29768
  }) : void 0,
29753
29769
  onClick: y,
@@ -29760,7 +29776,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29760
29776
  }),
29761
29777
  _ && /* @__PURE__ */ z("div", {
29762
29778
  className: "animate-fadeIn px-4 py-3.5",
29763
- children: /* @__PURE__ */ z(eO, {
29779
+ children: /* @__PURE__ */ z(tO, {
29764
29780
  icon: /* @__PURE__ */ z(Ut, {
29765
29781
  size: 20,
29766
29782
  "aria-hidden": !0,
@@ -29772,7 +29788,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29772
29788
  label: h ? void 0 : C,
29773
29789
  "aria-label": h ? T : void 0,
29774
29790
  iconBefore: h ? /* @__PURE__ */ z(Ue, {
29775
- size: mO,
29791
+ size: hO,
29776
29792
  ariaLabel: T
29777
29793
  }) : void 0,
29778
29794
  className: c,
@@ -29783,7 +29799,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29783
29799
  })
29784
29800
  ]
29785
29801
  });
29786
- }, gO = { name: "_name_gfs1p_1" }, _O = (e) => e.isMyApp === !0, vO = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
29802
+ }, _O = { name: "_name_gfs1p_1" }, vO = (e) => e.isMyApp === !0, yO = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
29787
29803
  let [a, o] = R(!1), s = P(() => {
29788
29804
  if (n) {
29789
29805
  o((e) => !e);
@@ -29795,7 +29811,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29795
29811
  t,
29796
29812
  n
29797
29813
  ]);
29798
- if (!_O(e) || r && !r(e)) return null;
29814
+ if (!vO(e) || r && !r(e)) return null;
29799
29815
  let c = /* @__PURE__ */ z(Ee, {
29800
29816
  label: i,
29801
29817
  iconBefore: /* @__PURE__ */ z(Qt, {
@@ -29820,14 +29836,14 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29820
29836
  renderOverlay: () => n(e, () => o(!1)),
29821
29837
  children: c
29822
29838
  }) : c;
29823
- }, yO = (e) => e === kn.ApiKey ? "Manage API keys" : "Manage credentials", bO = {
29839
+ }, bO = (e) => e === kn.ApiKey ? "Manage API keys" : "Manage credentials", xO = {
29824
29840
  [Tn.LimitReached]: "bg-error text-error",
29825
29841
  [Tn.RunningLow]: "bg-warning text-warning"
29826
- }, xO = ({ status: e, label: t }) => /* @__PURE__ */ z("div", {
29827
- className: W("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", bO[e]),
29842
+ }, SO = ({ status: e, label: t }) => /* @__PURE__ */ z("div", {
29843
+ className: W("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", xO[e]),
29828
29844
  children: t
29829
- }), SO = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: m, onFetchRecipientsCount: h, isRevokeShareVisible: g, onLogin: _, onLogout: v, onOpenCredentialsManagement: y, onRequestLogout: b, texts: x, detailsStyles: S, isPublishVisible: C, isPublishPrimary: w, onOpenPublish: T, isUnpublishVisible: E, hasPublishedFolders: D = !1, onRequestPublishHistory: O, onOpenUnpublish: ee, isReadonly: te = !1 }) => {
29830
- let { nameClassName: ne = "dial-body-semi-text", folderLabelClassName: re = "dial-tiny-text", folderLeafClassName: ie = "dial-tiny-semi-text" } = S?.typography ?? {}, j = e.details?.limits?.status, M = j == null ? void 0 : /* @__PURE__ */ z(xO, {
29845
+ }), CO = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: m, onFetchRecipientsCount: h, isRevokeShareVisible: g, onLogin: _, onLogout: v, onOpenCredentialsManagement: y, onRequestLogout: b, texts: x, detailsStyles: S, isPublishVisible: C, isPublishPrimary: w, onOpenPublish: T, isUnpublishVisible: E, hasPublishedFolders: D = !1, onRequestPublishHistory: O, onOpenUnpublish: ee, isReadonly: te = !1 }) => {
29846
+ let { nameClassName: ne = "dial-body-semi-text", folderLabelClassName: re = "dial-tiny-text", folderLeafClassName: ie = "dial-tiny-semi-text" } = S?.typography ?? {}, j = e.details?.limits?.status, M = j == null ? void 0 : /* @__PURE__ */ z(SO, {
29831
29847
  status: j,
29832
29848
  label: j === Tn.LimitReached ? x?.limitReachedLabel ?? "Limit reached" : x?.limitRunningLowLabel ?? "Running low"
29833
29849
  }), ae = P(() => {
@@ -29878,21 +29894,21 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29878
29894
  d?.(e);
29879
29895
  }, [e, d]), be = P(() => {
29880
29896
  m?.(e);
29881
- }, [e, m]), [xe, Se] = R(fO.Idle), [Ce, we] = R(void 0), Te = L(null);
29897
+ }, [e, m]), [xe, Se] = R(pO.Idle), [Ce, we] = R(void 0), Te = L(null);
29882
29898
  F(() => {
29883
- Te.current = null, Se(fO.Idle), we(void 0);
29899
+ Te.current = null, Se(pO.Idle), we(void 0);
29884
29900
  }, [e.id]);
29885
29901
  let Oe = P(() => {
29886
29902
  if (!h || Te.current === e.id || !m || e.isMyApp !== !0 || g?.(e) === !1) return;
29887
29903
  let t = e.id;
29888
- Te.current = t, Se(fO.Loading), (async () => {
29904
+ Te.current = t, Se(pO.Loading), (async () => {
29889
29905
  try {
29890
29906
  let n = await h(e);
29891
29907
  if (Te.current !== t) return;
29892
- we(n), Se(n == null ? fO.Unknown : fO.Resolved);
29908
+ we(n), Se(n == null ? pO.Unknown : pO.Resolved);
29893
29909
  } catch {
29894
29910
  if (Te.current !== t) return;
29895
- we(void 0), Se(fO.Unknown);
29911
+ we(void 0), Se(pO.Unknown);
29896
29912
  }
29897
29913
  })();
29898
29914
  }, [
@@ -29906,7 +29922,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
29906
29922
  Oe(), O?.();
29907
29923
  }, [Oe, O]), je = P(() => {
29908
29924
  O?.();
29909
- }, [O]), Me = x?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Ne = !te && !!ee && D && (E?.(e) ?? !0), Fe = !te && !Ne && (C?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), Ie = !te && !!s && !!e.isEditable, Le = !te && e.isMyApp === !0 && (a?.(e) ?? !0), Re = o?.(e) ?? !0, ze = w?.(e) ?? !1, Be = e.credentials?.authenticationType ?? kn.None, Ve = e.credentials != null && Be !== kn.None ? CE(e.credentials) : void 0, He = !te && Ve != null && (!!_ || !!v), We = e.type === Da.Toolset && He, Ge = !!c && (l?.(e) ?? !0), Ke = Ge && !We && (u?.(e) ?? e.type === Da.Skill), qe = Ge && !Ke, Je = !te && e.isMyApp, Ye = !te && !!f && e.isMyApp !== !0 && e.sharedWithMe === !0 && (p?.(e) ?? !0), Xe = !te && !!m && e.isMyApp === !0 && (!h || xe === fO.Unknown || xe === fO.Resolved && (Ce ?? 0) > 0) && (g?.(e) ?? !0), Ze = I(() => {
29925
+ }, [O]), Me = x?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Ne = !te && !!ee && D && (E?.(e) ?? !0), Fe = !te && !Ne && (C?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), Ie = !te && !!s && !!e.isEditable, Le = !te && e.isMyApp === !0 && (a?.(e) ?? !0), Re = o?.(e) ?? !0, ze = w?.(e) ?? !1, Be = e.credentials?.authenticationType ?? kn.None, Ve = e.credentials != null && Be !== kn.None ? CE(e.credentials) : void 0, He = !te && Ve != null && (!!_ || !!v), We = e.type === Da.Toolset && He, Ge = !!c && (l?.(e) ?? !0), Ke = Ge && !We && (u?.(e) ?? e.type === Da.Skill), qe = Ge && !Ke, Je = !te && e.isMyApp, Ye = !te && !!f && e.isMyApp !== !0 && e.sharedWithMe === !0 && (p?.(e) ?? !0), Xe = !te && !!m && e.isMyApp === !0 && (!h || xe === pO.Unknown || xe === pO.Resolved && (Ce ?? 0) > 0) && (g?.(e) ?? !0), Ze = I(() => {
29910
29926
  let e = [];
29911
29927
  if (!Re && Le && e.push({
29912
29928
  key: "share",
@@ -30034,7 +30050,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30034
30050
  _,
30035
30051
  y,
30036
30052
  b
30037
- ]), it = Ve === Mn.ManageCredentials ? (x?.manageCredentialsActionLabel ?? yO)(Be) : Be === kn.ApiKey ? Ve === Mn.LogOut ? x?.changeApiKeyActionLabel ?? "Change API key" : x?.apiKeyActionLabel ?? "API key" : Ve === Mn.LogOut ? x?.logoutActionLabel ?? "Log out" : x?.loginActionLabel ?? "Log in", at = Ve === Mn.ManageCredentials || Be === kn.ApiKey ? /* @__PURE__ */ z(Ut, {
30053
+ ]), it = Ve === Mn.ManageCredentials ? (x?.manageCredentialsActionLabel ?? bO)(Be) : Be === kn.ApiKey ? Ve === Mn.LogOut ? x?.changeApiKeyActionLabel ?? "Change API key" : x?.apiKeyActionLabel ?? "API key" : Ve === Mn.LogOut ? x?.logoutActionLabel ?? "Log out" : x?.loginActionLabel ?? "Log in", at = Ve === Mn.ManageCredentials || Be === kn.ApiKey ? /* @__PURE__ */ z(Ut, {
30038
30054
  size: k.MD,
30039
30055
  stroke: A
30040
30056
  }) : Ve === Mn.LogOut ? /* @__PURE__ */ z(qt, {
@@ -30066,7 +30082,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30066
30082
  onOpenChange: $e,
30067
30083
  trigger: [],
30068
30084
  outsideClosable: !0,
30069
- renderOverlay: () => /* @__PURE__ */ z(hO, {
30085
+ renderOverlay: () => /* @__PURE__ */ z(gO, {
30070
30086
  item: e,
30071
30087
  level: jn.User,
30072
30088
  status: e.credentials?.userStatus,
@@ -30084,7 +30100,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30084
30100
  children: [/* @__PURE__ */ z(Ev, {
30085
30101
  item: e,
30086
30102
  iconSize: 52,
30087
- nameClassName: W(ne, gO.name),
30103
+ nameClassName: W(ne, _O.name),
30088
30104
  featuredLabel: x?.featuredLabel ?? "Featured",
30089
30105
  statusBadge: M,
30090
30106
  footer: e.folder.length > 0 ? /* @__PURE__ */ z(N, {
@@ -30121,7 +30137,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30121
30137
  className: "sr-only",
30122
30138
  children: x?.downloadingStatusLabel ?? "Downloading"
30123
30139
  })] }),
30124
- Re && Le && /* @__PURE__ */ z(vO, {
30140
+ Re && Le && /* @__PURE__ */ z(yO, {
30125
30141
  item: e,
30126
30142
  onShare: r,
30127
30143
  shareOverlay: i,
@@ -30183,7 +30199,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30183
30199
  ]
30184
30200
  })]
30185
30201
  });
30186
- }, CO = ({ topics: e, content: t, detailsStyles: n }) => {
30202
+ }, wO = ({ topics: e, content: t, detailsStyles: n }) => {
30187
30203
  let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
30188
30204
  return /* @__PURE__ */ B("div", {
30189
30205
  className: "flex flex-col gap-5",
@@ -30205,18 +30221,18 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30205
30221
  children: e.map((e) => /* @__PURE__ */ z(GE, { label: e }, e))
30206
30222
  })]
30207
30223
  });
30208
- }, wO = {
30224
+ }, TO = {
30209
30225
  divider: "_divider_1gzl9_1",
30210
30226
  fileCount: "_fileCount_1gzl9_5",
30211
30227
  body: "_body_1gzl9_9"
30212
- }, TO = (e, t, n = void 0) => e.flatMap((e) => {
30228
+ }, EO = (e, t, n = void 0) => e.flatMap((e) => {
30213
30229
  let r = {
30214
30230
  node: e,
30215
30231
  parentId: n
30216
30232
  };
30217
- return e.type === Ln.File || !t.has(e.id) ? [r] : [r, ...TO(e.items, t, e.id)];
30218
- }), EO = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
30219
- let c = I(() => TO(e, n), [e, n]), l = L({}), [u, d] = R(() => t ?? c[0]?.node.id);
30233
+ return e.type === Ln.File || !t.has(e.id) ? [r] : [r, ...EO(e.items, t, e.id)];
30234
+ }), DO = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
30235
+ let c = I(() => EO(e, n), [e, n]), l = L({}), [u, d] = R(() => t ?? c[0]?.node.id);
30220
30236
  F(() => {
30221
30237
  u != null && l.current[u]?.focus();
30222
30238
  }, []);
@@ -30315,8 +30331,8 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30315
30331
  onKeyDown: p,
30316
30332
  children: e.map((e) => h(e))
30317
30333
  });
30318
- }, DO = () => void 0, OO = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = DO, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = DO, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
30319
- let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = ND(x) > 1, C = FD(x, r) ?? "", w = (e) => {
30334
+ }, OO = () => void 0, kO = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = OO, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = OO, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
30335
+ let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = PD(x) > 1, C = ID(x, r) ?? "", w = (e) => {
30320
30336
  i?.(e), l(!1);
30321
30337
  }, T = a ? {
30322
30338
  type: Rn.Text,
@@ -30337,7 +30353,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30337
30353
  matchReferenceWidth: !1,
30338
30354
  listClassName: "w-[280px]",
30339
30355
  placement: "bottom-start",
30340
- renderOverlay: () => /* @__PURE__ */ z(EO, {
30356
+ renderOverlay: () => /* @__PURE__ */ z(DO, {
30341
30357
  nodes: x,
30342
30358
  selectedFileId: r,
30343
30359
  expandedFolderIds: o,
@@ -30354,16 +30370,16 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30354
30370
  onClick: () => l(!c)
30355
30371
  })
30356
30372
  }), /* @__PURE__ */ z("span", {
30357
- className: W("shrink-0", y, wO.fileCount),
30358
- children: d(ND(x))
30373
+ className: W("shrink-0", y, TO.fileCount),
30374
+ children: d(PD(x))
30359
30375
  })]
30360
30376
  }),
30361
30377
  b && /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("p", {
30362
30378
  className: W("m-0", _),
30363
30379
  children: t
30364
- }), /* @__PURE__ */ z("div", { className: W("shrink-0", wO.divider) })] }),
30380
+ }), /* @__PURE__ */ z("div", { className: W("shrink-0", TO.divider) })] }),
30365
30381
  /* @__PURE__ */ B("div", {
30366
- className: W("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && wO.body, h == null && _),
30382
+ className: W("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && TO.body, h == null && _),
30367
30383
  children: [a && /* @__PURE__ */ z("span", {
30368
30384
  role: "status",
30369
30385
  className: "sr-only",
@@ -30394,12 +30410,12 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30394
30410
  })
30395
30411
  ]
30396
30412
  });
30397
- }, kO = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), AO = /* @__PURE__ */ function(e) {
30413
+ }, AO = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), jO = /* @__PURE__ */ function(e) {
30398
30414
  return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
30399
- }({}), jO = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), MO = (e) => Number.isFinite(e) && e > 0 ? e : 1, NO = ({ used: e, total: t, valueLabel: n }) => n ?? `${kO.format(e)} / ${kO.format(t)}`, PO = ({ total: e }) => Number.isFinite(e) && e > 0, FO = (e) => e.isUnlimited !== !0 && PO(e), IO = (e) => PO(e) ? Math.max(e.used, 0) / e.total : 0, LO = (e) => {
30400
- let t = IO(e);
30415
+ }({}), MO = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), NO = (e) => Number.isFinite(e) && e > 0 ? e : 1, PO = ({ used: e, total: t, valueLabel: n }) => n ?? `${AO.format(e)} / ${AO.format(t)}`, FO = ({ total: e }) => Number.isFinite(e) && e > 0, IO = (e) => e.isUnlimited !== !0 && FO(e), LO = (e) => FO(e) ? Math.max(e.used, 0) / e.total : 0, RO = (e) => {
30416
+ let t = LO(e);
30401
30417
  return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
30402
- }, RO = {
30418
+ }, zO = {
30403
30419
  sectionHeading: "_sectionHeading_ltnqp_1",
30404
30420
  label: "_label_ltnqp_5",
30405
30421
  valuePrimary: "_valuePrimary_ltnqp_9",
@@ -30408,58 +30424,58 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30408
30424
  progressFillDefault: "_progressFillDefault_ltnqp_24",
30409
30425
  progressFillWarning: "_progressFillWarning_ltnqp_28",
30410
30426
  progressFillDanger: "_progressFillDanger_ltnqp_32"
30411
- }, zO = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
30412
- let o = NO(e);
30427
+ }, BO = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
30428
+ let o = PO(e);
30413
30429
  return /* @__PURE__ */ B("li", {
30414
- className: W("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", RO.divider),
30430
+ className: W("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", zO.divider),
30415
30431
  children: [/* @__PURE__ */ B("div", {
30416
30432
  className: "flex min-w-0 flex-1 flex-col",
30417
30433
  children: [/* @__PURE__ */ z("span", {
30418
- className: W("break-words", t, RO.label),
30434
+ className: W("break-words", t, zO.label),
30419
30435
  children: e.label
30420
30436
  }), e.captionLabel != null && /* @__PURE__ */ z("span", {
30421
- className: W("break-words", n, RO.label),
30437
+ className: W("break-words", n, zO.label),
30422
30438
  children: e.captionLabel
30423
30439
  })]
30424
- }), FO(e) ? /* @__PURE__ */ B("div", {
30440
+ }), IO(e) ? /* @__PURE__ */ B("div", {
30425
30441
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
30426
30442
  children: [/* @__PURE__ */ z("div", {
30427
30443
  className: W("flex gap-1", r),
30428
30444
  children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("span", {
30429
- className: RO.valuePrimary,
30445
+ className: zO.valuePrimary,
30430
30446
  children: e.usedLabel
30431
30447
  }), /* @__PURE__ */ z("span", {
30432
- className: RO.label,
30448
+ className: zO.label,
30433
30449
  children: ` / ${e.totalLabel}`
30434
30450
  })] }) : /* @__PURE__ */ z("span", {
30435
- className: RO.label,
30451
+ className: zO.label,
30436
30452
  children: o
30437
30453
  })
30438
30454
  }), /* @__PURE__ */ z(Fe, {
30439
- value: jO(e),
30440
- max: MO(e.total),
30455
+ value: MO(e),
30456
+ max: NO(e.total),
30441
30457
  size: pe.Small,
30442
- className: W("!h-1 w-full", RO.progressTrack, LO(e) === AO.Default && RO.progressFillDefault, LO(e) === AO.Warning && RO.progressFillWarning, LO(e) === AO.Danger && RO.progressFillDanger),
30458
+ className: W("!h-1 w-full", zO.progressTrack, RO(e) === jO.Default && zO.progressFillDefault, RO(e) === jO.Warning && zO.progressFillWarning, RO(e) === jO.Danger && zO.progressFillDanger),
30443
30459
  "aria-label": e.label,
30444
30460
  "aria-valuetext": e.ariaLabel ?? o
30445
30461
  })]
30446
30462
  }) : /* @__PURE__ */ B("div", {
30447
30463
  className: "flex shrink-0 flex-col items-end",
30448
30464
  children: [/* @__PURE__ */ z("span", {
30449
- className: W(i, RO.valuePrimary),
30465
+ className: W(i, zO.valuePrimary),
30450
30466
  children: o
30451
30467
  }), e.noteLabel != null && /* @__PURE__ */ z("span", {
30452
- className: W(a, RO.label),
30468
+ className: W(a, zO.label),
30453
30469
  children: e.noteLabel
30454
30470
  })]
30455
30471
  })]
30456
30472
  });
30457
- }, BO = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
30458
- className: W("mb-3 mt-0", t, RO.sectionHeading),
30473
+ }, VO = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
30474
+ className: W("mb-3 mt-0", t, zO.sectionHeading),
30459
30475
  children: e.label
30460
30476
  }), /* @__PURE__ */ z("ul", {
30461
30477
  className: "m-0 flex list-none flex-col p-0",
30462
- children: e.rows.map((e) => /* @__PURE__ */ z(zO, {
30478
+ children: e.rows.map((e) => /* @__PURE__ */ z(BO, {
30463
30479
  row: e,
30464
30480
  labelClassName: n,
30465
30481
  captionClassName: r,
@@ -30467,7 +30483,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30467
30483
  noteValueClassName: a,
30468
30484
  noteClassName: o
30469
30485
  }, e.label))
30470
- })] }), VO = ({ limits: e, labelClassName: t = "dial-small-semi-text", captionClassName: n = "dial-caption-text", valueClassName: r = "dial-tiny-text", noteValueClassName: i = "dial-tiny-semi-text", noteClassName: a = "dial-caption-text", sectionClassName: o = "dial-caption-text", footerClassName: s = "dial-caption-text", footerNote: c, colors: l }) => {
30486
+ })] }), HO = ({ limits: e, labelClassName: t = "dial-small-semi-text", captionClassName: n = "dial-caption-text", valueClassName: r = "dial-tiny-text", noteValueClassName: i = "dial-tiny-semi-text", noteClassName: a = "dial-caption-text", sectionClassName: o = "dial-caption-text", footerClassName: s = "dial-caption-text", footerNote: c, colors: l }) => {
30471
30487
  let u = e?.groups.filter((e) => e.rows.length > 0);
30472
30488
  return u == null || u.length === 0 ? null : /* @__PURE__ */ B("div", {
30473
30489
  className: "flex flex-col gap-6",
@@ -30481,7 +30497,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30481
30497
  "--lt-progress-fill-warning": l?.progressFillWarning,
30482
30498
  "--lt-progress-fill-danger": l?.progressFillDanger
30483
30499
  }),
30484
- children: [u.map((e) => /* @__PURE__ */ z(BO, {
30500
+ children: [u.map((e) => /* @__PURE__ */ z(VO, {
30485
30501
  group: e,
30486
30502
  sectionClassName: o,
30487
30503
  labelClassName: t,
@@ -30490,17 +30506,17 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30490
30506
  noteValueClassName: i,
30491
30507
  noteClassName: a
30492
30508
  }, e.label)), c != null && /* @__PURE__ */ z("p", {
30493
- className: W("m-0 border-t pt-4", s, RO.divider, RO.label),
30509
+ className: W("m-0 border-t pt-4", s, zO.divider, zO.label),
30494
30510
  children: c
30495
30511
  })]
30496
30512
  });
30497
- }, HO = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ z("div", {
30513
+ }, UO = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ z("div", {
30498
30514
  className: "flex flex-col gap-4",
30499
30515
  children: e.map((e, s) => /* @__PURE__ */ B("div", {
30500
30516
  className: "flex flex-col gap-4",
30501
- children: [s > 0 && /* @__PURE__ */ z("div", { className: W("shrink-0 border-b", dO.divider) }), /* @__PURE__ */ z("div", {
30517
+ children: [s > 0 && /* @__PURE__ */ z("div", { className: W("shrink-0 border-b", fO.divider) }), /* @__PURE__ */ z("div", {
30502
30518
  className: "px-6",
30503
- children: /* @__PURE__ */ z(RD, {
30519
+ children: /* @__PURE__ */ z(zD, {
30504
30520
  sectionLabel: e.title,
30505
30521
  values: e.specs,
30506
30522
  sectionClassName: t,
@@ -30512,7 +30528,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30512
30528
  })
30513
30529
  })]
30514
30530
  }, s))
30515
- }) : null, UO = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
30531
+ }) : null, WO = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
30516
30532
  if (e == null) return null;
30517
30533
  let o = e.prices?.map((e) => ({
30518
30534
  label: e.label,
@@ -30523,13 +30539,13 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30523
30539
  }));
30524
30540
  return /* @__PURE__ */ B("div", {
30525
30541
  className: "flex flex-col gap-4",
30526
- children: [/* @__PURE__ */ z(RD, {
30542
+ children: [/* @__PURE__ */ z(zD, {
30527
30543
  sectionLabel: t,
30528
30544
  values: o ?? [],
30529
30545
  labelClassName: r,
30530
30546
  valueClassName: i,
30531
30547
  sectionClassName: a
30532
- }), /* @__PURE__ */ z(RD, {
30548
+ }), /* @__PURE__ */ z(zD, {
30533
30549
  sectionLabel: n,
30534
30550
  values: s ?? [],
30535
30551
  labelClassName: r,
@@ -30537,32 +30553,32 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30537
30553
  sectionClassName: a
30538
30554
  })]
30539
30555
  });
30540
- }, WO = {
30556
+ }, GO = {
30541
30557
  container: "_container_ddi3i_1",
30542
30558
  header: "_header_ddi3i_5",
30543
30559
  cell: "_cell_ddi3i_10",
30544
30560
  evenRow: "_evenRow_ddi3i_17"
30545
- }, GO = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
30561
+ }, KO = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
30546
30562
  let a = n ?? `repeat(${e.length}, 1fr)`;
30547
30563
  return /* @__PURE__ */ B("div", {
30548
- className: W(WO.container, "grid overflow-hidden rounded-md"),
30564
+ className: W(GO.container, "grid overflow-hidden rounded-md"),
30549
30565
  style: { gridTemplateColumns: a },
30550
30566
  children: [e.map((e) => /* @__PURE__ */ z("div", {
30551
- className: W("px-2 py-1 text-start", r, WO.header),
30567
+ className: W("px-2 py-1 text-start", r, GO.header),
30552
30568
  children: e
30553
30569
  }, e)), t.map((e, t) => /* @__PURE__ */ z(it, { children: e.map((e, n) => /* @__PURE__ */ z("div", {
30554
- className: W("px-2 py-1.5", i, WO.cell, t % 2 == 1 ? WO.evenRow : void 0),
30570
+ className: W("px-2 py-1.5", i, GO.cell, t % 2 == 1 ? GO.evenRow : void 0),
30555
30571
  children: e
30556
30572
  }, n)) }, t))]
30557
30573
  });
30558
- }, KO = {
30574
+ }, qO = {
30559
30575
  divider: "_divider_1f796_1",
30560
30576
  description: "_description_1f796_5",
30561
30577
  code: "_code_1f796_9"
30562
- }, qO = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ z("div", {
30578
+ }, JO = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ z("div", {
30563
30579
  className: "flex flex-col",
30564
30580
  children: e.tools.map((e, a) => /* @__PURE__ */ B("div", {
30565
- className: W("flex flex-col gap-3 px-[22px] py-4", a > 0 ? KO.divider : void 0),
30581
+ className: W("flex flex-col gap-3 px-[22px] py-4", a > 0 ? qO.divider : void 0),
30566
30582
  children: [
30567
30583
  /* @__PURE__ */ B("div", {
30568
30584
  className: "flex flex-col gap-1",
@@ -30570,11 +30586,11 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30570
30586
  className: t,
30571
30587
  children: e.name
30572
30588
  }), e.description != null && /* @__PURE__ */ z("p", {
30573
- className: W("m-0", n, KO.description),
30589
+ className: W("m-0", n, qO.description),
30574
30590
  children: e.description
30575
30591
  })]
30576
30592
  }),
30577
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ z(GO, {
30593
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ z(KO, {
30578
30594
  columns: [
30579
30595
  "Name",
30580
30596
  "Type",
@@ -30583,11 +30599,11 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30583
30599
  columnsTemplate: "1fr 1fr auto",
30584
30600
  rows: e.inputParams.map((e) => [
30585
30601
  /* @__PURE__ */ z("code", {
30586
- className: W("text-inherit border-none bg-transparent p-0", KO.code),
30602
+ className: W("text-inherit border-none bg-transparent p-0", qO.code),
30587
30603
  children: e.name
30588
30604
  }, "name"),
30589
30605
  /* @__PURE__ */ z("code", {
30590
- className: W("text-inherit border-none bg-transparent p-0", KO.code),
30606
+ className: W("text-inherit border-none bg-transparent p-0", qO.code),
30591
30607
  children: e.type
30592
30608
  }, "type"),
30593
30609
  e.isRequired ? "✓" : "—"
@@ -30595,10 +30611,10 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30595
30611
  headingClassName: r,
30596
30612
  cellClassName: i
30597
30613
  }),
30598
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ z(GO, {
30614
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ z(KO, {
30599
30615
  columns: ["Key", "Value"],
30600
30616
  rows: e.annotations.map((e) => [/* @__PURE__ */ z("code", {
30601
- className: W("text-inherit border-none bg-transparent p-0", KO.code),
30617
+ className: W("text-inherit border-none bg-transparent p-0", qO.code),
30602
30618
  children: e.key
30603
30619
  }, "key"), e.value]),
30604
30620
  headingClassName: r,
@@ -30606,23 +30622,23 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30606
30622
  })
30607
30623
  ]
30608
30624
  }, e.name))
30609
- }), JO = new Set([Da.Prompt, Da.Skill]), YO = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, XO = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), ZO = async () => void 0, QO = [], $O = [], ek = [
30625
+ }), YO = new Set([Da.Prompt, Da.Skill]), XO = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, ZO = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), QO = async () => void 0, $O = [], ek = [], tk = [
30610
30626
  "All shared configurations will be lost",
30611
30627
  "Users who rely on it will lose access",
30612
30628
  "Cannot be undone"
30613
- ], tk = [
30629
+ ], nk = [
30614
30630
  "You will lose access to this item",
30615
30631
  "Other people keep their access",
30616
30632
  "You will need a new invitation to get it back"
30617
- ], nk = [
30633
+ ], rk = [
30618
30634
  "Everyone loses access to the published copy",
30619
30635
  "Your own copy is not deleted",
30620
30636
  "You can publish it again later"
30621
- ], rk = [
30637
+ ], ik = [
30622
30638
  "Everyone you shared it with loses access",
30623
30639
  "Existing share links stop working",
30624
30640
  "You keep full access — nothing is deleted"
30625
- ], ik = (e) => e === kn.ApiKey ? "Toolset API keys" : "Toolset credentials", ak = (e) => e === jn.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", ok = new Set([En.Delete, En.Unshare]), sk = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: c, isPrimaryActionVisible: l, onShare: u, isPublishVisible: d, isPublishPrimary: f, getPublishHistory: p, publishFolderItems: m = QO, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onPublishError: x, onCreatePublishFolder: S, publishLabels: w, ruleSourceOptions: T = $O, onFetchExistingRules: E, shareOverlay: D, isShareVisible: O, isSharePrimary: ee, onEdit: k, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: M, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: me, onLogout: he, texts: N, styles: ge, limitsFooterNote: _e }) => {
30641
+ ], ak = (e) => e === kn.ApiKey ? "Toolset API keys" : "Toolset credentials", ok = (e) => e === jn.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", sk = new Set([En.Delete, En.Unshare]), ck = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: c, isPrimaryActionVisible: l, onShare: u, isPublishVisible: d, isPublishPrimary: f, getPublishHistory: p, publishFolderItems: m = $O, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onPublishError: x, onCreatePublishFolder: S, publishLabels: w, ruleSourceOptions: T = ek, onFetchExistingRules: E, shareOverlay: D, isShareVisible: O, isSharePrimary: ee, onEdit: k, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: M, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: me, onLogout: he, texts: N, styles: ge, limitsFooterNote: _e }) => {
30626
30642
  let { subViewTitleClassName: ye = "dial-body-semi-text", overviewSectionClassName: be = "dial-caption-text", overviewLabelClassName: xe = "dial-small-semi-text", overviewValueClassName: Se = "dial-small-text", overviewValueTrueClassName: Ce = "dial-small-text", confirmMessageClassName: we = "dial-small-text" } = ge?.typography ?? {}, Te = ge?.colors, Ee = is({
30627
30643
  "--cat-details-backdrop": Te?.backdrop,
30628
30644
  "--cat-details-bg": Te?.background,
@@ -30664,7 +30680,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30664
30680
  t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), tt.current = n, Je(e);
30665
30681
  }, []);
30666
30682
  F(() => {
30667
- nt.current += 1, rt(null), Xe(!1), Qe(PD(We?.files ?? [])), et(!1);
30683
+ nt.current += 1, rt(null), Xe(!1), Qe(FD(We?.files ?? [])), et(!1);
30668
30684
  }, [e.id, Ke]), F(() => () => {
30669
30685
  let e = tt.current;
30670
30686
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
@@ -30723,7 +30739,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30723
30739
  ]), ot = qe?.id ?? Ke, st = () => qe == null ? null : qe.preview == null ? {
30724
30740
  type: Rn.Text,
30725
30741
  text: N?.contentFileErrorLabel ?? "Failed to load this file."
30726
- } : qe.preview, ct = qe != null && M != null ? M(qe.id, FD(We?.files ?? [], qe.id) ?? "") : void 0, lt = P(() => {
30742
+ } : qe.preview, ct = qe != null && M != null ? M(qe.id, ID(We?.files ?? [], qe.id) ?? "") : void 0, lt = P(() => {
30727
30743
  if (!p || Ue.current === e.id) return;
30728
30744
  let t = e.id;
30729
30745
  Ue.current = t, Le(!0), ze(!1), (async () => {
@@ -30742,17 +30758,17 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30742
30758
  }, [je, lt]);
30743
30759
  let ut = P((e, t) => {
30744
30760
  Ue.current = null, He(!1), lt(), b?.(e, t);
30745
- }, [lt, b]), dt = nD({
30761
+ }, [lt, b]), dt = rD({
30746
30762
  item: e,
30747
30763
  history: Ne,
30748
30764
  folderItems: m,
30749
30765
  hasWriteAccess: v,
30750
30766
  onCreateFolder: S,
30751
- onPublish: y ?? ZO,
30767
+ onPublish: y ?? QO,
30752
30768
  onPublishSuccess: ut,
30753
30769
  onPublishError: x,
30754
30770
  onFetchExistingRules: E
30755
- }), ft = I(() => $E({
30771
+ }), ft = I(() => eD({
30756
30772
  hasSelectedFolder: dt.selectedFolderPath != null,
30757
30773
  hasExistingPublicationInFolder: dt.hasExistingPublicationInFolder,
30758
30774
  hasWriteAccess: dt.hasWriteAccess,
@@ -30815,12 +30831,12 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30815
30831
  bt != null && await he?.(e, { level: bt });
30816
30832
  break;
30817
30833
  case En.Unpublish: {
30818
- let t = XO(Nt, Tt);
30834
+ let t = ZO(Nt, Tt);
30819
30835
  t != null && await de?.(e, t.segments);
30820
30836
  break;
30821
30837
  }
30822
30838
  }
30823
- _t(null), xt(null), Ct(null), Et(null), ok.has(gt) && a();
30839
+ _t(null), xt(null), Ct(null), Et(null), sk.has(gt) && a();
30824
30840
  } catch {
30825
30841
  _t(null), xt(null), Ct(null), Et(null);
30826
30842
  } finally {
@@ -30872,7 +30888,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30872
30888
  e.id,
30873
30889
  o
30874
30890
  ]), Wt = I(() => {
30875
- let t = [], n = JO.has(e.type);
30891
+ let t = [], n = YO.has(e.type);
30876
30892
  return n || t.push({
30877
30893
  id: wn.About,
30878
30894
  label: N?.tabAboutLabel ?? "About"
@@ -30891,7 +30907,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30891
30907
  }), e.details?.tools != null && t.push({
30892
30908
  id: wn.Tools,
30893
30909
  label: N?.tabToolsLabel ?? "Tools"
30894
- }), YO(e.details?.api) && t.push({
30910
+ }), XO(e.details?.api) && t.push({
30895
30911
  id: wn.Api,
30896
30912
  label: N?.tabConnectLabel ?? "Connect"
30897
30913
  }), t;
@@ -30915,7 +30931,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30915
30931
  /* @__PURE__ */ z("strong", { children: e.name }),
30916
30932
  "? This action is permanent and cannot be undone."
30917
30933
  ] }),
30918
- consequences: N?.deleteConfirmConsequences ?? ek,
30934
+ consequences: N?.deleteConfirmConsequences ?? tk,
30919
30935
  confirmLabel: t,
30920
30936
  loadingStatusLabel: N?.deletingStatusLabel ?? "Deleting",
30921
30937
  variant: Dn.Danger
@@ -30930,7 +30946,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30930
30946
  /* @__PURE__ */ z("strong", { children: e.name }),
30931
30947
  " from your list? You'll need a new invitation to access it again."
30932
30948
  ] }),
30933
- consequences: N?.unshareConfirmConsequences ?? tk,
30949
+ consequences: N?.unshareConfirmConsequences ?? nk,
30934
30950
  confirmLabel: t,
30935
30951
  loadingStatusLabel: N?.unsharingStatusLabel ?? "Removing",
30936
30952
  variant: Dn.Info
@@ -30945,7 +30961,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30945
30961
  /* @__PURE__ */ z("strong", { children: e.name }),
30946
30962
  "? Anyone you shared it with will lose access."
30947
30963
  ] }),
30948
- consequences: N?.revokeShareConfirmConsequences ?? rk,
30964
+ consequences: N?.revokeShareConfirmConsequences ?? ik,
30949
30965
  confirmLabel: t,
30950
30966
  loadingStatusLabel: N?.revokingShareStatusLabel ?? "Revoking access",
30951
30967
  variant: Dn.Danger
@@ -30966,7 +30982,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30966
30982
  return {
30967
30983
  title: N?.unpublishConfirmTitle ?? t,
30968
30984
  message: n ? i : a,
30969
- consequences: N?.unpublishConfirmConsequences ?? nk,
30985
+ consequences: N?.unpublishConfirmConsequences ?? rk,
30970
30986
  confirmLabel: t,
30971
30987
  loadingStatusLabel: N?.unpublishingStatusLabel ?? "Requesting unpublish",
30972
30988
  variant: Dn.Danger
@@ -30987,7 +31003,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
30987
31003
  let e = N?.deleteActionLabel ?? "Delete", t = bt ?? jn.User;
30988
31004
  return {
30989
31005
  title: e,
30990
- message: (N?.deleteApiKeyConfirmMessage ?? ak)(t),
31006
+ message: (N?.deleteApiKeyConfirmMessage ?? ok)(t),
30991
31007
  consequences: void 0,
30992
31008
  confirmLabel: e,
30993
31009
  loadingStatusLabel: N?.deletingStatusLabel ?? "Deleting",
@@ -31004,7 +31020,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31004
31020
  N,
31005
31021
  Nt,
31006
31022
  Ft
31007
- ]), tn = en != null, nn = gt === En.Unpublish && XO(Nt, Tt) == null, rn = tn || je || pt, an = e.credentials == null ? "" : (N?.credentialsManagementTitle ?? ik)(e.credentials.authenticationType), on = tn ? {
31023
+ ]), tn = en != null, nn = gt === En.Unpublish && ZO(Nt, Tt) == null, rn = tn || je || pt, an = e.credentials == null ? "" : (N?.credentialsManagementTitle ?? ak)(e.credentials.authenticationType), on = tn ? {
31008
31024
  title: en.title,
31009
31025
  isBackDisabled: vt,
31010
31026
  onBack: Rt
@@ -31019,7 +31035,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31019
31035
  } : null, sn = on?.title ?? Jt;
31020
31036
  return /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("div", {
31021
31037
  style: Ee,
31022
- className: W("fixed inset-0 z-40 transition-opacity duration-300", dO.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
31038
+ className: W("fixed inset-0 z-40 transition-opacity duration-300", fO.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
31023
31039
  onClick: a,
31024
31040
  "aria-hidden": "true"
31025
31041
  }), /* @__PURE__ */ B("div", {
@@ -31027,7 +31043,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31027
31043
  "aria-modal": "true",
31028
31044
  "aria-label": sn,
31029
31045
  style: Ee,
31030
- className: W("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", dO.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
31046
+ className: W("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", fO.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
31031
31047
  children: [
31032
31048
  /* @__PURE__ */ B("div", {
31033
31049
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
@@ -31040,7 +31056,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31040
31056
  disabled: on.isBackDisabled,
31041
31057
  onClick: on.onBack
31042
31058
  }), /* @__PURE__ */ z("span", {
31043
- className: W("flex-1", ye, dO.publishTitle),
31059
+ className: W("flex-1", ye, fO.publishTitle),
31044
31060
  children: on.title
31045
31061
  })] }), on == null && /* @__PURE__ */ B(ht, { children: [
31046
31062
  /* @__PURE__ */ z("div", { className: "flex-1" }),
@@ -31056,11 +31072,11 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31056
31072
  })
31057
31073
  ] })]
31058
31074
  }),
31059
- /* @__PURE__ */ z("div", { className: W("shrink-0", dO.divider) }),
31075
+ /* @__PURE__ */ z("div", { className: W("shrink-0", fO.divider) }),
31060
31076
  /* @__PURE__ */ B("div", {
31061
- className: W("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", dO.content),
31077
+ className: W("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", fO.content),
31062
31078
  children: [
31063
- tn && /* @__PURE__ */ z(JD, {
31079
+ tn && /* @__PURE__ */ z(YD, {
31064
31080
  item: e,
31065
31081
  message: en.message,
31066
31082
  consequences: en.consequences,
@@ -31078,7 +31094,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31078
31094
  radioClassName: we
31079
31095
  })
31080
31096
  }),
31081
- !tn && !je && pt && /* @__PURE__ */ z(uO, {
31097
+ !tn && !je && pt && /* @__PURE__ */ z(dO, {
31082
31098
  item: e,
31083
31099
  onLogin: me,
31084
31100
  onRequestLogout: At,
@@ -31088,7 +31104,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31088
31104
  }),
31089
31105
  !tn && je && /* @__PURE__ */ z("div", {
31090
31106
  className: "p-[22px]",
31091
- children: /* @__PURE__ */ z(DD, {
31107
+ children: /* @__PURE__ */ z(OD, {
31092
31108
  resource: {
31093
31109
  title: e.name,
31094
31110
  version: e.version,
@@ -31123,7 +31139,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31123
31139
  })
31124
31140
  }),
31125
31141
  !rn && /* @__PURE__ */ B(ht, { children: [
31126
- /* @__PURE__ */ z(SO, {
31142
+ /* @__PURE__ */ z(CO, {
31127
31143
  item: e,
31128
31144
  onUseInChat: c,
31129
31145
  isPrimaryActionVisible: l,
@@ -31160,7 +31176,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31160
31176
  let t = EE(e.credentials);
31161
31177
  return t != null && /* @__PURE__ */ z("div", {
31162
31178
  className: "px-6",
31163
- children: /* @__PURE__ */ z(oO, {
31179
+ children: /* @__PURE__ */ z(sO, {
31164
31180
  state: t,
31165
31181
  authenticationType: e.credentials.authenticationType,
31166
31182
  texts: N
@@ -31184,19 +31200,19 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31184
31200
  width: "72px"
31185
31201
  },
31186
31202
  active: !0,
31187
- color: dO.skeletonColor
31203
+ color: fO.skeletonColor
31188
31204
  })
31189
31205
  })]
31190
31206
  }),
31191
31207
  /* @__PURE__ */ B("div", {
31192
31208
  className: W("min-h-0 flex-1 overflow-y-auto", ke !== wn.Overview && "px-6"),
31193
31209
  children: [
31194
- ke === wn.About && /* @__PURE__ */ z(CO, {
31210
+ ke === wn.About && /* @__PURE__ */ z(wO, {
31195
31211
  content: e.description,
31196
31212
  topics: e.topics,
31197
31213
  detailsStyles: ge
31198
31214
  }),
31199
- ke === wn.Content && /* @__PURE__ */ z(OO, {
31215
+ ke === wn.Content && /* @__PURE__ */ z(kO, {
31200
31216
  content: We?.content ?? "",
31201
31217
  filePreview: st(),
31202
31218
  filePreviewContent: ct,
@@ -31215,7 +31231,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31215
31231
  fileUnsupportedLabel: N?.contentFileUnsupportedLabel,
31216
31232
  detailsStyles: ge
31217
31233
  }),
31218
- ke === wn.Overview && /* @__PURE__ */ z(HO, {
31234
+ ke === wn.Overview && /* @__PURE__ */ z(UO, {
31219
31235
  sections: e.details?.overview?.sections,
31220
31236
  sectionClassName: be,
31221
31237
  labelClassName: xe,
@@ -31224,16 +31240,16 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31224
31240
  yesLabel: Kt,
31225
31241
  noLabel: qt
31226
31242
  }),
31227
- ke === wn.Pricing && /* @__PURE__ */ z(UO, {
31243
+ ke === wn.Pricing && /* @__PURE__ */ z(WO, {
31228
31244
  pricing: e.details?.pricing,
31229
31245
  pricesSectionLabel: N?.pricingPricesSectionLabel,
31230
31246
  limitsSectionLabel: N?.pricingLimitsSectionLabel
31231
31247
  }),
31232
- ke === wn.Limits && /* @__PURE__ */ z(VO, {
31248
+ ke === wn.Limits && /* @__PURE__ */ z(HO, {
31233
31249
  limits: e.details?.limits,
31234
31250
  footerNote: _e
31235
31251
  }),
31236
- ke === wn.Api && YO(e.details?.api) && /* @__PURE__ */ z(UD, {
31252
+ ke === wn.Api && XO(e.details?.api) && /* @__PURE__ */ z(WD, {
31237
31253
  api: e.details?.api,
31238
31254
  resourceSectionLabel: N?.apiResourceSectionLabel,
31239
31255
  snippetSectionLabel: N?.apiSnippetSectionLabel,
@@ -31245,13 +31261,13 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31245
31261
  copyAriaLabel: N?.copyCodeAriaLabel,
31246
31262
  copiedStatusLabel: N?.copiedCodeStatusLabel
31247
31263
  }),
31248
- ke === wn.Tools && /* @__PURE__ */ z(qO, { tools: e.details?.tools })
31264
+ ke === wn.Tools && /* @__PURE__ */ z(JO, { tools: e.details?.tools })
31249
31265
  ]
31250
31266
  })
31251
31267
  ] })
31252
31268
  ]
31253
31269
  }),
31254
- tn && /* @__PURE__ */ z(GD, {
31270
+ tn && /* @__PURE__ */ z(KD, {
31255
31271
  confirmLabel: en.confirmLabel,
31256
31272
  cancelLabel: $t,
31257
31273
  variant: en.variant,
@@ -31261,7 +31277,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31261
31277
  onConfirm: zt,
31262
31278
  onCancel: Rt
31263
31279
  }),
31264
- !tn && je && /* @__PURE__ */ z(MD, {
31280
+ !tn && je && /* @__PURE__ */ z(ND, {
31265
31281
  version: e.version,
31266
31282
  hasExistingPublicationInFolder: dt.hasExistingPublicationInFolder,
31267
31283
  isSubmitDisabled: ft.isSubmitDisabled,
@@ -31272,7 +31288,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31272
31288
  })
31273
31289
  ]
31274
31290
  })] });
31275
- }, ck = {
31291
+ }, lk = {
31276
31292
  pageNav: "_pageNav_14qfn_1",
31277
31293
  navBtn: "_navBtn_14qfn_6",
31278
31294
  titleText: "_titleText_14qfn_23",
@@ -31287,7 +31303,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31287
31303
  favFadeIn: "_favFadeIn_14qfn_1",
31288
31304
  cardLeaving: "_cardLeaving_14qfn_54",
31289
31305
  cardFadeOut: "_cardFadeOut_14qfn_1"
31290
- }, lk = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
31306
+ }, uk = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
31291
31307
  let [m, h] = R(t), [g, _] = R(!1), v = (t) => {
31292
31308
  t.stopPropagation();
31293
31309
  let r = !m;
@@ -31304,7 +31320,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31304
31320
  role: y == null ? void 0 : "button",
31305
31321
  tabIndex: y == null ? void 0 : 0,
31306
31322
  "aria-label": e.name,
31307
- className: W("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && ck.cardLeaving, f && ck.selectedCard),
31323
+ className: W("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && lk.cardLeaving, f && lk.selectedCard),
31308
31324
  onClick: y,
31309
31325
  onKeyDown: x,
31310
31326
  onAnimationEnd: g ? (t) => {
@@ -31313,7 +31329,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31313
31329
  children: [
31314
31330
  f && /* @__PURE__ */ z(St, {
31315
31331
  size: k.SM,
31316
- className: W("absolute end-3 top-3 shrink-0", ck.selectedCheck),
31332
+ className: W("absolute end-3 top-3 shrink-0", lk.selectedCheck),
31317
31333
  "aria-hidden": !0,
31318
31334
  stroke: A
31319
31335
  }),
@@ -31351,7 +31367,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31351
31367
  })
31352
31368
  ]
31353
31369
  });
31354
- }, uk = 2, dk = (e) => {
31370
+ }, dk = 2, fk = (e) => {
31355
31371
  let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
31356
31372
  if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
31357
31373
  try {
@@ -31360,7 +31376,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31360
31376
  } catch {
31361
31377
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
31362
31378
  }
31363
- }, fk = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
31379
+ }, pk = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
31364
31380
  let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = is({
31365
31381
  "--cat-fav-title-text": o?.colors?.titleText,
31366
31382
  "--cat-fav-count-text": o?.colors?.countText,
@@ -31373,7 +31389,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31373
31389
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
31374
31390
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
31375
31391
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
31376
- }), v = I(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = R(1), x = xE(), S = x * uk, C = (y - 1) * S, w = I(() => v.slice(C, C + S), [
31392
+ }), v = I(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = R(1), x = xE(), S = x * dk, C = (y - 1) * S, w = I(() => v.slice(C, C + S), [
31377
31393
  v,
31378
31394
  C,
31379
31395
  S
@@ -31406,7 +31422,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31406
31422
  M.current = y, ae.current = x;
31407
31423
  let n = ee.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
31408
31424
  if (n.forEach((e) => {
31409
- r.set(e.dataset.cardId, dk(e));
31425
+ r.set(e.dataset.cardId, fk(e));
31410
31426
  }), !e && !t) {
31411
31427
  let e = O.current, t = oe.current, i = 0;
31412
31428
  if (e) {
@@ -31462,7 +31478,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31462
31478
  ref: D,
31463
31479
  children: /* @__PURE__ */ B("section", {
31464
31480
  ref: O,
31465
- className: W("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", ck.section, s && ck.sectionLeaving),
31481
+ className: W("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", lk.section, s && lk.sectionLeaving),
31466
31482
  style: {
31467
31483
  ..._,
31468
31484
  minHeight: ne
@@ -31473,16 +31489,16 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31473
31489
  children: [/* @__PURE__ */ z(Cv, {
31474
31490
  title: n,
31475
31491
  postfix: E,
31476
- titleClassName: W(h, ck.titleText),
31477
- postfixClassName: W(g, ck.countText),
31492
+ titleClassName: W(h, lk.titleText),
31493
+ postfixClassName: W(g, lk.countText),
31478
31494
  trailing: T > 1 ? /* @__PURE__ */ B("div", {
31479
- className: W("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", ck.pageNav),
31495
+ className: W("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", lk.pageNav),
31480
31496
  children: [
31481
31497
  /* @__PURE__ */ z("button", {
31482
31498
  "aria-label": l,
31483
31499
  disabled: y === 1,
31484
31500
  onClick: () => b((e) => e - 1),
31485
- className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", ck.navBtn),
31501
+ className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", lk.navBtn),
31486
31502
  children: /* @__PURE__ */ z(wt, {
31487
31503
  size: 14,
31488
31504
  className: "rtl:scale-x-[-1]",
@@ -31490,7 +31506,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31490
31506
  })
31491
31507
  }),
31492
31508
  /* @__PURE__ */ B("span", {
31493
- className: W("min-w-[32px] select-none px-1 text-center", g, ck.countText),
31509
+ className: W("min-w-[32px] select-none px-1 text-center", g, lk.countText),
31494
31510
  children: [
31495
31511
  y,
31496
31512
  " / ",
@@ -31501,7 +31517,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31501
31517
  "aria-label": u,
31502
31518
  disabled: y === T,
31503
31519
  onClick: () => b((e) => e + 1),
31504
- className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", ck.navBtn),
31520
+ className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", lk.navBtn),
31505
31521
  children: /* @__PURE__ */ z(Tt, {
31506
31522
  size: 14,
31507
31523
  className: "rtl:scale-x-[-1]",
@@ -31512,12 +31528,12 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31512
31528
  }) : void 0
31513
31529
  }), /* @__PURE__ */ z("div", {
31514
31530
  ref: ee,
31515
- className: W("grid content-start gap-5", ck.gridPage),
31531
+ className: W("grid content-start gap-5", lk.gridPage),
31516
31532
  style: {
31517
31533
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
31518
31534
  minHeight: k
31519
31535
  },
31520
- children: w.map((e) => /* @__PURE__ */ z(lk, {
31536
+ children: w.map((e) => /* @__PURE__ */ z(uk, {
31521
31537
  item: e,
31522
31538
  onToggle: r,
31523
31539
  isFavoriteVisible: i,
@@ -31530,7 +31546,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31530
31546
  })]
31531
31547
  })
31532
31548
  });
31533
- }, pk = {
31549
+ }, mk = {
31534
31550
  listContainer: "_listContainer_145s6_1",
31535
31551
  gridClip: "_gridClip_145s6_6",
31536
31552
  favHeader: "_favHeader_145s6_43",
@@ -31539,19 +31555,19 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31539
31555
  selectedCheck: "_selectedCheck_145s6_55",
31540
31556
  starToggleOff: "_starToggleOff_145s6_59",
31541
31557
  selectedRow: "_selectedRow_145s6_72"
31542
- }, mk = ({ data: e }) => e ? /* @__PURE__ */ z("div", {
31558
+ }, hk = ({ data: e }) => e ? /* @__PURE__ */ z("div", {
31543
31559
  className: "flex h-full items-center",
31544
31560
  children: /* @__PURE__ */ z(wv, { type: e.type })
31545
- }) : null, hk = " / ", gk = ({ data: e, context: t }) => {
31561
+ }) : null, gk = " / ", _k = ({ data: e, context: t }) => {
31546
31562
  if (!e || e.folder.length === 0) return null;
31547
- let n = e.folder.join(hk), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
31563
+ let n = e.folder.join(gk), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
31548
31564
  return /* @__PURE__ */ B("div", {
31549
31565
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
31550
31566
  children: [
31551
31567
  /* @__PURE__ */ z(Bt, {
31552
31568
  size: k.SM,
31553
31569
  stroke: A,
31554
- className: W("shrink-0", pk.folderIcon),
31570
+ className: W("shrink-0", mk.folderIcon),
31555
31571
  "aria-hidden": !0
31556
31572
  }),
31557
31573
  /* @__PURE__ */ z(Je, {
@@ -31573,7 +31589,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31573
31589
  })
31574
31590
  ]
31575
31591
  });
31576
- }, _k = ({ data: e, context: t }) => {
31592
+ }, vk = ({ data: e, context: t }) => {
31577
31593
  let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
31578
31594
  return e ? /* @__PURE__ */ B("div", {
31579
31595
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
@@ -31597,13 +31613,13 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31597
31613
  className: "min-w-0 flex-1 items-baseline gap-1.5",
31598
31614
  trailing: o ? /* @__PURE__ */ z(St, {
31599
31615
  size: k.SM,
31600
- className: W("shrink-0", pk.selectedCheck),
31616
+ className: W("shrink-0", mk.selectedCheck),
31601
31617
  "aria-hidden": !0,
31602
31618
  stroke: A
31603
31619
  }) : void 0
31604
31620
  })]
31605
31621
  }) : null;
31606
- }, vk = ({ data: e, context: t }) => {
31622
+ }, yk = ({ data: e, context: t }) => {
31607
31623
  let [n, r] = R(e?.isStarred ?? !1);
31608
31624
  return F(() => {
31609
31625
  r(e?.isStarred ?? !1);
@@ -31616,22 +31632,22 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31616
31632
  let a = !n;
31617
31633
  r(a), t?.onToggleFavorite?.(e.id, a);
31618
31634
  },
31619
- className: n ? void 0 : pk.starToggleOff
31635
+ className: n ? void 0 : mk.starToggleOff
31620
31636
  })
31621
31637
  });
31622
- }, yk = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ z("div", {
31638
+ }, bk = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ z("div", {
31623
31639
  className: "flex h-full w-full min-w-0 items-center",
31624
31640
  children: /* @__PURE__ */ z(qE, { topics: e.topics })
31625
- }), bk = {
31641
+ }), xk = {
31626
31642
  folder: (e) => e !== Da.Model,
31627
31643
  tags: () => !0,
31628
31644
  favorite: () => !0
31629
- }, xk = (e, t) => Object.fromEntries([
31645
+ }, Sk = (e, t) => Object.fromEntries([
31630
31646
  "folder",
31631
31647
  "tags",
31632
31648
  "favorite"
31633
- ].map((n) => [n, (t?.[n] ?? bk[n])(e)])), Sk = (e, t = !1, n) => {
31634
- let r = xk(e, n);
31649
+ ].map((n) => [n, (t?.[n] ?? xk[n])(e)])), Ck = (e, t = !1, n) => {
31650
+ let r = Sk(e, n);
31635
31651
  return [
31636
31652
  {
31637
31653
  headerName: "Name",
@@ -31639,7 +31655,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31639
31655
  minWidth: 220,
31640
31656
  field: "name",
31641
31657
  filter: !1,
31642
- cellRenderer: _k,
31658
+ cellRenderer: vk,
31643
31659
  valueGetter: (e) => e.data?.name
31644
31660
  },
31645
31661
  {
@@ -31649,7 +31665,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31649
31665
  field: "type",
31650
31666
  filter: !1,
31651
31667
  sortable: !1,
31652
- cellRenderer: mk,
31668
+ cellRenderer: hk,
31653
31669
  valueGetter: (e) => e.data?.type
31654
31670
  },
31655
31671
  {
@@ -31659,7 +31675,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31659
31675
  minWidth: 170,
31660
31676
  filter: !1,
31661
31677
  hide: !r.folder,
31662
- cellRenderer: gk,
31678
+ cellRenderer: _k,
31663
31679
  valueGetter: (e) => e.data?.folder
31664
31680
  },
31665
31681
  {
@@ -31670,7 +31686,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31670
31686
  filter: !1,
31671
31687
  sortable: !1,
31672
31688
  hide: !r.tags,
31673
- cellRenderer: yk,
31689
+ cellRenderer: bk,
31674
31690
  valueGetter: (e) => e.data?.topics
31675
31691
  },
31676
31692
  {
@@ -31682,11 +31698,11 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31682
31698
  sortable: !1,
31683
31699
  resizable: !1,
31684
31700
  hide: t || !r.favorite,
31685
- headerClass: pk.favHeader,
31686
- cellRenderer: vk
31701
+ headerClass: mk.favHeader,
31702
+ cellRenderer: yk
31687
31703
  }
31688
31704
  ];
31689
- }, Ck = 60, wk = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
31705
+ }, wk = 60, Tk = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
31690
31706
  if (e.length === 0) return /* @__PURE__ */ z("div", {
31691
31707
  className: "flex size-full flex-col items-center justify-center",
31692
31708
  children: /* @__PURE__ */ z(xv, { label: i ?? "No results" })
@@ -31703,7 +31719,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31703
31719
  "--cat-list-selected-bg": h?.selectedRowBackground,
31704
31720
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
31705
31721
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
31706
- }, _ = L(null), { containerRef: v, startRow: y, endRow: b } = PE(e.length, Ck), x = I(() => e.slice(y, b), [
31722
+ }, _ = L(null), { containerRef: v, startRow: y, endRow: b } = PE(e.length, wk), x = I(() => e.slice(y, b), [
31707
31723
  e,
31708
31724
  y,
31709
31725
  b
@@ -31716,17 +31732,17 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31716
31732
  _.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
31717
31733
  }, [e]), /* @__PURE__ */ z("div", {
31718
31734
  style: g,
31719
- className: tt("w-full rounded-xl border", pk.listContainer),
31735
+ className: tt("w-full rounded-xl border", mk.listContainer),
31720
31736
  children: /* @__PURE__ */ B("div", {
31721
31737
  ref: v,
31722
- className: tt("rounded-xl", pk.gridClip),
31738
+ className: tt("rounded-xl", mk.gridClip),
31723
31739
  children: [
31724
31740
  y > 0 && /* @__PURE__ */ z("div", {
31725
- style: { height: y * Ck },
31741
+ style: { height: y * wk },
31726
31742
  "aria-hidden": !0
31727
31743
  }),
31728
31744
  /* @__PURE__ */ z(ye, {
31729
- columnDefs: Sk(t, f, p),
31745
+ columnDefs: Ck(t, f, p),
31730
31746
  rowData: x,
31731
31747
  getRowId: (e) => e.id,
31732
31748
  withoutHeaderBorders: !0,
@@ -31736,7 +31752,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31736
31752
  },
31737
31753
  emptyStateTitle: i,
31738
31754
  additionalGridOptions: {
31739
- rowHeight: Ck,
31755
+ rowHeight: wk,
31740
31756
  defaultColDef: {
31741
31757
  filter: !1,
31742
31758
  floatingFilter: !1
@@ -31754,18 +31770,18 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31754
31770
  e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
31755
31771
  } : void 0,
31756
31772
  rowClass: c ? "cursor-pointer" : void 0,
31757
- getRowClass: (e) => e.data?.id === u ? pk.selectedRow : void 0
31773
+ getRowClass: (e) => e.data?.id === u ? mk.selectedRow : void 0
31758
31774
  },
31759
31775
  ariaLabel: r
31760
31776
  }),
31761
31777
  b < e.length && /* @__PURE__ */ z("div", {
31762
- style: { height: (e.length - b) * Ck },
31778
+ style: { height: (e.length - b) * wk },
31763
31779
  "aria-hidden": !0
31764
31780
  })
31765
31781
  ]
31766
31782
  })
31767
31783
  });
31768
- }, Tk = {
31784
+ }, Ek = {
31769
31785
  filterBtn: "_filterBtn_ehf8i_1",
31770
31786
  filterBtnActive: "_filterBtnActive_ehf8i_18",
31771
31787
  filterBtnOpen: "_filterBtnOpen_ehf8i_22",
@@ -31779,13 +31795,13 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31779
31795
  divider: "_divider_ehf8i_74",
31780
31796
  sectionLabel: "_sectionLabel_ehf8i_78",
31781
31797
  footer: "_footer_ehf8i_82"
31782
- }, Ek = (e, t, n, r, i) => {
31798
+ }, Dk = (e, t, n, r, i) => {
31783
31799
  let a = e.size > 0;
31784
31800
  return n && a ? `${r} · ${e.size}` : n ? r : a ? zn(e, t, i) : i;
31785
- }, Dk = (e, t) => {
31801
+ }, Ok = (e, t) => {
31786
31802
  let n = new Set(t);
31787
31803
  return n.has(e) ? n.delete(e) : n.add(e), n;
31788
- }, Ok = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
31804
+ }, kk = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
31789
31805
  let f = (r ?? !1) || e.size > 0, [p, m] = R(!1), h = is({
31790
31806
  "--cat-filter-btn-bg": d?.buttonBackground,
31791
31807
  "--cat-filter-btn-border": d?.buttonBorder,
@@ -31805,7 +31821,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31805
31821
  "--cat-filter-section-label": d?.sectionLabel,
31806
31822
  "--cat-filter-divider": d?.divider,
31807
31823
  "--cat-filter-footer-border": d?.footerBorder
31808
- }), g = I(() => n == null ? [] : [...n].sort(), [n]), _ = Ek(e, n, r, a, s), [v, y] = R(() => new Set(e)), [b, x] = R(r ?? !1);
31824
+ }), g = I(() => n == null ? [] : [...n].sort(), [n]), _ = Dk(e, n, r, a, s), [v, y] = R(() => new Set(e)), [b, x] = R(r ?? !1);
31809
31825
  F(() => {
31810
31826
  p && (y(new Set(e)), x(r ?? !1));
31811
31827
  }, [
@@ -31849,7 +31865,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31849
31865
  "aria-label": s,
31850
31866
  tabIndex: -1,
31851
31867
  style: h,
31852
- className: W("min-w-[360px] rounded-xl p-[6px]", Tk.overlay),
31868
+ className: W("min-w-[360px] rounded-xl p-[6px]", Ek.overlay),
31853
31869
  onKeyDown: ne,
31854
31870
  children: [
31855
31871
  /* @__PURE__ */ B("div", {
@@ -31859,32 +31875,32 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31859
31875
  ref: (e) => {
31860
31876
  E.current[0] = e;
31861
31877
  },
31862
- className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", Tk.row, b && Tk.rowChecked),
31878
+ className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", Ek.row, b && Ek.rowChecked),
31863
31879
  onClick: () => x(!b),
31864
31880
  onKeyDown: re(() => x(!b)),
31865
31881
  children: [/* @__PURE__ */ z(S, {
31866
31882
  isSelected: b,
31867
31883
  className: "shrink-0"
31868
31884
  }), /* @__PURE__ */ z("span", {
31869
- className: W(Tk.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
31885
+ className: W(Ek.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
31870
31886
  children: a
31871
31887
  })]
31872
31888
  }),
31873
31889
  g.length > 0 && /* @__PURE__ */ B(ht, { children: [
31874
31890
  /* @__PURE__ */ z("div", {
31875
31891
  role: "separator",
31876
- className: W("my-1 h-px", Tk.divider),
31892
+ className: W("my-1 h-px", Ek.divider),
31877
31893
  "aria-hidden": !0
31878
31894
  }),
31879
31895
  /* @__PURE__ */ z("div", {
31880
- className: W("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Tk.sectionLabel),
31896
+ className: W("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Ek.sectionLabel),
31881
31897
  "aria-hidden": !0,
31882
31898
  children: o
31883
31899
  }),
31884
31900
  /* @__PURE__ */ z("div", {
31885
31901
  className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
31886
31902
  children: g.map((e, t) => {
31887
- let n = v.has(e), r = t + 1, i = () => y(Dk(e, v));
31903
+ let n = v.has(e), r = t + 1, i = () => y(Ok(e, v));
31888
31904
  return /* @__PURE__ */ B("div", {
31889
31905
  role: "menuitemcheckbox",
31890
31906
  "aria-checked": n,
@@ -31892,14 +31908,14 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31892
31908
  ref: (e) => {
31893
31909
  E.current[r] = e;
31894
31910
  },
31895
- className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", Tk.row, n && Tk.rowChecked),
31911
+ className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", Ek.row, n && Ek.rowChecked),
31896
31912
  onClick: i,
31897
31913
  onKeyDown: re(i),
31898
31914
  children: [/* @__PURE__ */ z(S, {
31899
31915
  isSelected: n,
31900
31916
  className: "shrink-0"
31901
31917
  }), /* @__PURE__ */ z("span", {
31902
- className: Tk.rowLabel,
31918
+ className: Ek.rowLabel,
31903
31919
  children: e
31904
31920
  })]
31905
31921
  }, e);
@@ -31907,7 +31923,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31907
31923
  })
31908
31924
  ] }),
31909
31925
  /* @__PURE__ */ B("div", {
31910
- className: W("mt-1 flex items-center px-1 py-3", Tk.footer),
31926
+ className: W("mt-1 flex items-center px-1 py-3", Ek.footer),
31911
31927
  onKeyDown: (e) => {
31912
31928
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
31913
31929
  },
@@ -31929,31 +31945,31 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31929
31945
  "aria-expanded": p,
31930
31946
  onKeyDown: te,
31931
31947
  style: h,
31932
- className: W("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Tk.filterBtn, f && Tk.filterBtnActive, p && Tk.filterBtnOpen),
31948
+ className: W("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Ek.filterBtn, f && Ek.filterBtnActive, p && Ek.filterBtnOpen),
31933
31949
  children: [
31934
31950
  /* @__PURE__ */ z(zt, {
31935
31951
  size: k.SM,
31936
31952
  stroke: A,
31937
- className: W("shrink-0", Tk.filterBtnFunnel),
31953
+ className: W("shrink-0", Ek.filterBtnFunnel),
31938
31954
  "aria-hidden": !0
31939
31955
  }),
31940
31956
  /* @__PURE__ */ z("span", {
31941
- className: W(Tk.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
31957
+ className: W(Ek.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
31942
31958
  children: _
31943
31959
  }),
31944
31960
  /* @__PURE__ */ z(Ct, {
31945
31961
  size: 14,
31946
31962
  stroke: A,
31947
- className: W("shrink-0 transition-transform duration-150", Tk.filterBtnChevron, p && "rotate-180"),
31963
+ className: W("shrink-0 transition-transform duration-150", Ek.filterBtnChevron, p && "rotate-180"),
31948
31964
  "aria-hidden": !0
31949
31965
  })
31950
31966
  ]
31951
31967
  })
31952
31968
  });
31953
- }, kk = {
31969
+ }, Ak = {
31954
31970
  section: "_section_mh952_1",
31955
31971
  divider: "_divider_mh952_5"
31956
- }, Ak = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, filters: m, onFiltersChange: h, filterValues: g, isMyAppsActive: b, onMyAppsChange: x, filterFromLabel: S, filterMyAppsLabel: C, filterTopicsLabel: w }) => {
31972
+ }, jk = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, filters: m, onFiltersChange: h, filterValues: g, isMyAppsActive: b, onMyAppsChange: x, filterFromLabel: S, filterMyAppsLabel: C, filterTopicsLabel: w }) => {
31957
31973
  let T = a?.typography?.titleClassName ?? "dial-body-semi-text", E = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = I(() => [{
31958
31974
  value: Fn.Grid,
31959
31975
  icon: /* @__PURE__ */ z(Wt, {
@@ -31993,7 +32009,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
31993
32009
  value: t,
31994
32010
  onChange: n,
31995
32011
  items: D
31996
- }), p != null && p.length > 0 && /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("div", { className: W("h-4 w-px shrink-0", kk.divider) }), /* @__PURE__ */ z(v, {
32012
+ }), p != null && p.length > 0 && /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("div", { className: W("h-4 w-px shrink-0", Ak.divider) }), /* @__PURE__ */ z(v, {
31997
32013
  label: O,
31998
32014
  variant: y.Primary,
31999
32015
  appearance: _.Ghost,
@@ -32015,7 +32031,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32015
32031
  placeholder: c,
32016
32032
  "aria-label": c
32017
32033
  })
32018
- }), /* @__PURE__ */ z(Ok, {
32034
+ }), /* @__PURE__ */ z(kk, {
32019
32035
  checked: m ?? /* @__PURE__ */ new Set(),
32020
32036
  onChange: h ?? (() => void 0),
32021
32037
  values: g,
@@ -32028,12 +32044,12 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32028
32044
  })]
32029
32045
  })]
32030
32046
  });
32031
- }, jk = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, ..._ }) => {
32047
+ }, Mk = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, ..._ }) => {
32032
32048
  let v = { "--cat-browse-divider": r?.colors?.divider };
32033
32049
  return /* @__PURE__ */ z("section", {
32034
- className: W("flex-shrink-0 px-4", kk.section),
32050
+ className: W("flex-shrink-0 px-4", Ak.section),
32035
32051
  style: v,
32036
- children: /* @__PURE__ */ z(Ak, {
32052
+ children: /* @__PURE__ */ z(jk, {
32037
32053
  styles: r,
32038
32054
  query: e,
32039
32055
  onQueryChange: t,
@@ -32054,11 +32070,11 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32054
32070
  ..._
32055
32071
  })
32056
32072
  });
32057
- }, Mk = {
32073
+ }, Nk = {
32058
32074
  root: "_root_1h83l_1",
32059
32075
  heading: "_heading_1h83l_5",
32060
32076
  headingTitle: "_headingTitle_1h83l_9"
32061
- }, Nk = ({ label: e, options: t, onClick: n }) => {
32077
+ }, Pk = ({ label: e, options: t, onClick: n }) => {
32062
32078
  let r = L(null);
32063
32079
  return t?.length ? /* @__PURE__ */ z("div", {
32064
32080
  ref: r,
@@ -32080,7 +32096,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32080
32096
  }),
32081
32097
  onClick: n
32082
32098
  });
32083
- }, Pk = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: i, browseHeaderRenderer: a, onToggleFavorite: o, isFavoriteVisible: s, columnVisibility: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, publishFolderItems: h, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: y, onPublish: b, onPublishSuccess: x, onPublishError: S, onCreatePublishFolder: C, publishLabels: w, ruleSourceOptions: T, onFetchExistingRules: E, shareOverlay: D, isShareVisible: O, isSharePrimary: ee, onFetchDetails: k, onEdit: A, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: M, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: pe, onLogout: me, onCreateClick: he, createOptions: N, hideCreateButton: ge = !1, hidePageTitle: _e = !1, isReadonly: ve = !1, initialViewMode: ye = Fn.Grid, isFullWidth: be = !1, selectedItemId: xe, onCardClick: Se, isLoading: Ce, styles: we, detailsTexts: Te, detailsLimitsFooterNote: Ee, initialDetailsItemId: De, sortKey: Oe, onSortChange: ke, filterTopics: Ae, onFilterTopicsChange: je, isMyAppsActive: Me, onMyAppsActiveChange: Ne, activeTab: Pe, onActiveTabChange: Fe }) => {
32099
+ }, Fk = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: i, browseHeaderRenderer: a, onToggleFavorite: o, isFavoriteVisible: s, columnVisibility: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, publishFolderItems: h, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: y, onPublish: b, onPublishSuccess: x, onPublishError: S, onCreatePublishFolder: C, publishLabels: w, ruleSourceOptions: T, onFetchExistingRules: E, shareOverlay: D, isShareVisible: O, isSharePrimary: ee, onFetchDetails: k, onEdit: A, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: M, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: pe, onLogout: me, onCreateClick: he, createOptions: N, hideCreateButton: ge = !1, hidePageTitle: _e = !1, isReadonly: ve = !1, initialViewMode: ye = Fn.Grid, isFullWidth: be = !1, selectedItemId: xe, onCardClick: Se, isLoading: Ce, styles: we, detailsTexts: Te, detailsLimitsFooterNote: Ee, initialDetailsItemId: De, sortKey: Oe, onSortChange: ke, filterTopics: Ae, onFilterTopicsChange: je, isMyAppsActive: Me, onMyAppsActiveChange: Ne, activeTab: Pe, onActiveTabChange: Fe }) => {
32084
32100
  let { typography: Ie } = we ?? {}, Le = DE(we), Re = i?.pageTitle ?? "Catalog", ze = i?.createLabel ?? "Create", Be = i?.favoritesTitle ?? "Your favorites", Ve = i?.browseTitle ?? "Browse", He = i?.searchPlaceholder ?? "Search models, tools, agents…", We = i?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ke = i?.featuredLabel ?? "Featured", qe = i?.gridViewLabel ?? "Grid view", Je = i?.listViewLabel ?? "List view", Ye = i?.viewToggleLabel ?? "View mode", Xe = i?.ariaLabel ?? "Catalog", Ze = [
32085
32101
  {
32086
32102
  key: In.RecentlyUpdated,
@@ -32188,17 +32204,17 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32188
32204
  children: /* @__PURE__ */ z(Ue, {})
32189
32205
  }) : /* @__PURE__ */ B("section", {
32190
32206
  "aria-label": Xe,
32191
- className: W("flex size-full min-h-0 flex-1 flex-col", Mk.root),
32207
+ className: W("flex size-full min-h-0 flex-1 flex-col", Nk.root),
32192
32208
  style: Le,
32193
32209
  children: [
32194
32210
  (!_e || Xt) && /* @__PURE__ */ z("div", {
32195
- className: W("shrink-0", Mk.heading),
32211
+ className: W("shrink-0", Nk.heading),
32196
32212
  children: /* @__PURE__ */ B("div", {
32197
32213
  className: "flex h-[64px] w-full items-center justify-between px-8",
32198
32214
  children: [!_e && /* @__PURE__ */ z("h1", {
32199
- className: W(Ie?.pageHeadingFontClassName ?? "dial-display2-text", Mk.headingTitle),
32215
+ className: W(Ie?.pageHeadingFontClassName ?? "dial-display2-text", Nk.headingTitle),
32200
32216
  children: Re
32201
- }), Xt && /* @__PURE__ */ z(Nk, {
32217
+ }), Xt && /* @__PURE__ */ z(Pk, {
32202
32218
  label: ze,
32203
32219
  options: N,
32204
32220
  onClick: he
@@ -32210,7 +32226,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32210
32226
  children: [
32211
32227
  Zt && /* @__PURE__ */ z("div", {
32212
32228
  className: "w-full px-8",
32213
- children: /* @__PURE__ */ z(fk, {
32229
+ children: /* @__PURE__ */ z(pk, {
32214
32230
  items: r,
32215
32231
  totalCount: r.length,
32216
32232
  title: Be,
@@ -32225,7 +32241,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32225
32241
  }),
32226
32242
  /* @__PURE__ */ z("div", {
32227
32243
  className: "w-full px-4 pt-6",
32228
- children: /* @__PURE__ */ z(jk, {
32244
+ children: /* @__PURE__ */ z(Mk, {
32229
32245
  totalCount: Kt.length,
32230
32246
  viewMode: et,
32231
32247
  onViewModeChange: Yt,
@@ -32265,7 +32281,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32265
32281
  className: W(qt.length > 0 ? ["min-h-full w-full px-8 py-6", !be && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", qt.length === 0 && "px-8 py-6"),
32266
32282
  children: [/* @__PURE__ */ z("div", {
32267
32283
  className: W(qt.length > 0 ? "pb-8" : "size-full flex-1", et !== Fn.Grid && "hidden"),
32268
- children: /* @__PURE__ */ z(XE, {
32284
+ children: /* @__PURE__ */ z(ZE, {
32269
32285
  items: qt,
32270
32286
  query: Qe,
32271
32287
  onToggleFavorite: o,
@@ -32278,7 +32294,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32278
32294
  })
32279
32295
  }), nt && /* @__PURE__ */ z("div", {
32280
32296
  className: W("pb-8", et !== Fn.Cards && "hidden", qt.length === 0 && "h-full"),
32281
- children: /* @__PURE__ */ z(wk, {
32297
+ children: /* @__PURE__ */ z(Tk, {
32282
32298
  type: St,
32283
32299
  items: qt,
32284
32300
  query: Qe,
@@ -32297,7 +32313,7 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32297
32313
  })
32298
32314
  ]
32299
32315
  }),
32300
- Ht != null && /* @__PURE__ */ z(sk, {
32316
+ Ht != null && /* @__PURE__ */ z(ck, {
32301
32317
  item: Ht,
32302
32318
  isOpen: At,
32303
32319
  isStarred: Jt,
@@ -32351,4 +32367,4 @@ var ND = (e) => e.reduce((e, t) => t.type === Ln.File ? e + 1 : e + ND(t.items),
32351
32367
  });
32352
32368
  };
32353
32369
  //#endregion
32354
- export { RE as AppIdentity, JE as Card, XE as CardGrid, YE as CardRowRenderer, Pk as Catalog, Ln as CatalogContentNodeType, Rn as CatalogContentPreviewType, wn as CatalogDetailsTab, Tn as CatalogLimitStatus, In as CatalogSortKey, Fn as CatalogViewMode, Cn as CodeLanguage, OO as ContentTab, An as CredentialStatus, BE as CredentialsBadge, Nn as CredentialsBadgeState, jn as CredentialsLevel, Mn as CredentialsUiState, On as DeploymentSize, En as DetailsConfirmationKind, Dn as DetailsConfirmationVariant, lk as FavoriteCard, fk as Favorites, Ok as Filter, qD as InfoCard, wk as ListView, jk as Toolbar, kn as ToolsetAuthenticationType, GE as TopicTag, bE as buildCatalogTabs, Un as filterCatalogItems, wE as getCredentialsBadgeState, CE as getCredentialsUiState, TE as getSignedInLevel, Hn as getTopicOptions, Wn as sortCatalogItems, xE as useFavColumns, FE as useScrollVirtualizer };
32370
+ export { RE as AppIdentity, YE as Card, ZE as CardGrid, XE as CardRowRenderer, Fk as Catalog, Ln as CatalogContentNodeType, Rn as CatalogContentPreviewType, wn as CatalogDetailsTab, Tn as CatalogLimitStatus, In as CatalogSortKey, Fn as CatalogViewMode, Cn as CodeLanguage, kO as ContentTab, An as CredentialStatus, BE as CredentialsBadge, Nn as CredentialsBadgeState, jn as CredentialsLevel, Mn as CredentialsUiState, On as DeploymentSize, En as DetailsConfirmationKind, Dn as DetailsConfirmationVariant, uk as FavoriteCard, pk as Favorites, kk as Filter, JD as InfoCard, Tk as ListView, Mk as Toolbar, kn as ToolsetAuthenticationType, GE as TopicTag, bE as buildCatalogTabs, Un as filterCatalogItems, wE as getCredentialsBadgeState, CE as getCredentialsUiState, TE as getSignedInLevel, Hn as getTopicOptions, Wn as sortCatalogItems, xE as useFavColumns, FE as useScrollVirtualizer };