@epam/ai-dial-catalog 1.1.0-dev.378 → 1.1.0-dev.383

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
@@ -62,8 +62,8 @@ var en = Object.create, tn = Object.defineProperty, nn = Object.getOwnPropertyDe
62
62
  }
63
63
  return `${n}: ${i} of ${r}`;
64
64
  }, An = (e, t) => t.size === 0 ? e : e.filter((e) => e.topics.some((e) => t.has(e))), jn = (e) => e.filter((e) => e.isMyApp === !0), Mn = (e) => new Set(e.flatMap((e) => e.topics)), Nn = (e, t) => {
65
- let n = t.trim().toLowerCase(), r = e;
66
- return n && (r = r.filter((e) => e.name.toLowerCase().includes(n) || e.description.toLowerCase().includes(n) || e.type.toLowerCase().includes(n))), r;
65
+ let n = t.trim().toLowerCase();
66
+ return n ? e.filter((e) => e.name.toLowerCase().includes(n)) : e;
67
67
  }, Pn = (e, t) => {
68
68
  let n = e.filter((e) => e.isFeatured), r = e.filter((e) => !e.isFeatured), i = (e) => t === En.NameAZ ? [...e].sort((e, t) => e.name.trim().toLowerCase().localeCompare(t.name.trim().toLowerCase())) : t === En.RecentlyUpdated ? [...e].sort((e, t) => !e.updatedAt && !t.updatedAt ? 0 : e.updatedAt ? t.updatedAt ? t.updatedAt - e.updatedAt : -1 : 1) : t === En.Newest ? [...e].sort((e, t) => !e.createdAt && !t.createdAt ? 0 : e.createdAt ? t.createdAt ? t.createdAt - e.createdAt : -1 : 1) : e;
69
69
  return [...i(n), ...i(r)];
@@ -8501,7 +8501,7 @@ var Kr = (e) => {
8501
8501
  ]) }), ci = (e) => "dataTransfer" in e && e.dataTransfer !== null, li = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: n, allowedFileTypes: r, validationMessages: i = {}, onUploadArchive: a, prepareUploadFileName: o, uploadEnabled: s = !0, currentFolder: c } = {}) => {
8502
8502
  let [l, u] = j(!1), [d, f] = j(!1), [p, m] = j(), h = it(null), g = it(""), _ = it([]), v = A(() => !!c?.permissions?.includes(Dr.WRITE), [c]), [y, b] = j(/* @__PURE__ */ new Map()), [x, S] = j(null), C = k((e) => !r || r.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => Vr(r, e.type, t)), [r]), w = k(() => {
8503
8503
  b(/* @__PURE__ */ new Map()), S(null);
8504
- }, []), { conflictingFiles: T, conflictResolutionOpen: E, hasActiveConflictRef: ee, startConflictResolution: te, closeConflictResolution: ne, openConflictResolution: re, handleReplaceAll: D, handleDuplicateAll: ie, handleCancelAll: ae, handleDecideForEach: oe } = ri({
8504
+ }, []), { conflictingFiles: T, conflictResolutionOpen: E, hasActiveConflictRef: ee, checkForConflicts: te, startConflictResolution: ne, closeConflictResolution: re, openConflictResolution: D, handleReplaceAll: ie, handleDuplicateAll: ae, handleCancelAll: oe, handleDecideForEach: se } = ri({
8505
8505
  getDestinationFiles: () => _.current,
8506
8506
  onResolve: (t, n) => {
8507
8507
  if (!s || !v) {
@@ -8518,7 +8518,7 @@ var Kr = (e) => {
8518
8518
  name: n
8519
8519
  };
8520
8520
  }).filter(Boolean);
8521
- if (r[0]?.fileContent?.type === "application/zip") {
8521
+ if (x.isArchive && r[0]) {
8522
8522
  let { fileContent: e, name: t } = r[0];
8523
8523
  a?.(e, t, n);
8524
8524
  } else r.length > 0 && e?.(r, n);
@@ -8526,10 +8526,10 @@ var Kr = (e) => {
8526
8526
  }
8527
8527
  });
8528
8528
  et(() => {
8529
- s && v || (u(!1), f(!1), m(void 0), ne(), w());
8529
+ s && v || (u(!1), f(!1), m(void 0), re(), w());
8530
8530
  }, [
8531
8531
  s,
8532
- ne,
8532
+ re,
8533
8533
  w,
8534
8534
  v
8535
8535
  ]), et(() => {
@@ -8547,7 +8547,7 @@ var Kr = (e) => {
8547
8547
  window.removeEventListener("dragenter", t), window.removeEventListener("dragleave", n), window.removeEventListener("drop", r), window.removeEventListener("dragover", i);
8548
8548
  };
8549
8549
  }, [s, v]);
8550
- let se = k((e) => n ? e.filter((e) => e.fileContent.size > n).map((e) => e.name) : [], [n]), O = k((e, t) => e.map((e) => ({
8550
+ let O = k((e) => n ? e.filter((e) => e.fileContent.size > n).map((e) => e.name) : [], [n]), ce = k((e, t) => e.map((e) => ({
8551
8551
  id: e.name,
8552
8552
  name: e.name,
8553
8553
  folderId: t,
@@ -8555,13 +8555,13 @@ var Kr = (e) => {
8555
8555
  nodeType: Tr.ITEM,
8556
8556
  parentPath: t,
8557
8557
  contentLength: e.fileContent.size
8558
- })), []), ce = k(async (r, a, c) => {
8558
+ })), []), le = k(async (r, a, c) => {
8559
8559
  if (!s || !v) return !1;
8560
8560
  m(void 0), _.current = c;
8561
8561
  let l = o ? r.map((e) => ({
8562
8562
  ...e,
8563
8563
  name: o(e.name)
8564
- })) : r, u = se(l);
8564
+ })) : r, u = O(l);
8565
8565
  if (u.length > 0) {
8566
8566
  let e = n ? (n / 1048576).toFixed(2) : 0;
8567
8567
  return m(i.oversizedFiles || `Files exceed maximum size (${e}MB): ${u.join(", ")}`), !1;
@@ -8572,45 +8572,45 @@ var Kr = (e) => {
8572
8572
  } catch {
8573
8573
  return m(i.validationError || "Validation error occurred"), !1;
8574
8574
  }
8575
- b(new Map(l.map((e) => [e.name, e])));
8576
- let d = O(l, a);
8577
- return S({ destinationFolder: a }), te(a, d, { destinationFolder: a }).hasConflicts ? !1 : (e?.(l, a), w(), !0);
8575
+ let d = ce(l, a), { conflicts: f } = te(a, d), p = new Set(f.map((e) => e.name)), h = l.filter((e) => !p.has(e.name));
8576
+ return h.length > 0 && e?.(h, a), p.size === 0 ? (w(), !0) : (_.current = [...c, ...ce(h, a)], b(new Map(l.filter((e) => p.has(e.name)).map((e) => [e.name, e]))), S({ destinationFolder: a }), ne(a, d.filter((e) => p.has(e.name)), { destinationFolder: a }), !1);
8578
8577
  }, [
8579
8578
  s,
8580
8579
  e,
8581
8580
  t,
8582
8581
  o,
8583
- se,
8582
+ O,
8584
8583
  n,
8585
8584
  i,
8586
- O,
8585
+ ce,
8587
8586
  te,
8587
+ ne,
8588
8588
  w,
8589
8589
  v
8590
- ]), le = k(() => {
8591
- D(), w();
8592
- }, [D, w]), ue = k(() => {
8590
+ ]), ue = k(() => {
8593
8591
  ie(), w();
8594
8592
  }, [ie, w]), de = k(() => {
8595
8593
  ae(), w();
8596
- }, [ae, w]), fe = k((e) => {
8597
- oe(e), w();
8598
- }, [oe, w]), pe = k(() => {
8599
- ne(), ee.current || w();
8594
+ }, [ae, w]), fe = k(() => {
8595
+ oe(), w();
8596
+ }, [oe, w]), pe = k((e) => {
8597
+ se(e), w();
8598
+ }, [se, w]), me = k(() => {
8599
+ re(), ee.current || w();
8600
8600
  }, [
8601
- ne,
8601
+ re,
8602
8602
  ee,
8603
8603
  w
8604
- ]), me = k((e) => {
8604
+ ]), he = k((e) => {
8605
8605
  !s || !v || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && u(!0));
8606
- }, [s, v]), he = k((e) => {
8606
+ }, [s, v]), ge = k((e) => {
8607
8607
  if (!s || !v) return;
8608
8608
  e.preventDefault(), e.stopPropagation();
8609
8609
  let t = e.currentTarget.getBoundingClientRect(), n = e.clientX, r = e.clientY;
8610
8610
  (n <= t.left || n >= t.right || r <= t.top || r >= t.bottom) && u(!1);
8611
- }, [s, v]), ge = k((e) => {
8611
+ }, [s, v]), _e = k((e) => {
8612
8612
  !s || !v || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && (e.dataTransfer.dropEffect = "copy"));
8613
- }, [s, v]), _e = k(async (e, t, n) => {
8613
+ }, [s, v]), ve = k(async (e, t, n) => {
8614
8614
  if (!s || !v || (e.preventDefault(), e.stopPropagation(), u(!1), !e.dataTransfer.types.includes("Files"))) return;
8615
8615
  let r = Array.from(e.dataTransfer.items || []), a = [], o = !1;
8616
8616
  if (r.length > 0 && r.forEach((e) => {
@@ -8634,16 +8634,16 @@ var Kr = (e) => {
8634
8634
  m(i.unsupportedFiles || "Selected files are not supported");
8635
8635
  return;
8636
8636
  }
8637
- await ce(c, t, n);
8637
+ await le(c, t, n);
8638
8638
  }, [
8639
8639
  s,
8640
8640
  C,
8641
- ce,
8641
+ le,
8642
8642
  i,
8643
8643
  v
8644
- ]), ve = it(() => {});
8644
+ ]), ye = it(() => {});
8645
8645
  et(() => {
8646
- ve.current = async () => {
8646
+ ye.current = async () => {
8647
8647
  let e = h.current;
8648
8648
  if (!e) return;
8649
8649
  if (!s || !v) {
@@ -8660,7 +8660,7 @@ var Kr = (e) => {
8660
8660
  return;
8661
8661
  }
8662
8662
  try {
8663
- await ce(t, g.current, _.current);
8663
+ await le(t, g.current, _.current);
8664
8664
  } catch {
8665
8665
  m(i.validationError || "Upload failed");
8666
8666
  } finally {
@@ -8671,12 +8671,12 @@ var Kr = (e) => {
8671
8671
  s,
8672
8672
  v,
8673
8673
  C,
8674
- ce,
8674
+ le,
8675
8675
  i
8676
8676
  ]), et(() => {
8677
8677
  let e = document.createElement("input");
8678
8678
  e.type = "file", e.multiple = !0, e.style.display = "none", document.body.appendChild(e), h.current = e;
8679
- let t = () => ve.current?.();
8679
+ let t = () => ye.current?.();
8680
8680
  return e.addEventListener("change", t), () => {
8681
8681
  e.removeEventListener("change", t), h.current === e && (document.body.removeChild(e), h.current = null);
8682
8682
  };
@@ -8684,9 +8684,9 @@ var Kr = (e) => {
8684
8684
  let e = h.current;
8685
8685
  e && (r && r.length > 0 ? e.accept = r.join(",") : e.removeAttribute("accept"));
8686
8686
  }, [r]);
8687
- let ye = k((e, t) => {
8687
+ let be = k((e, t) => {
8688
8688
  !s || !v || (g.current = e, _.current = t, h.current && h.current.click());
8689
- }, [s, v]), be = k((e, t) => {
8689
+ }, [s, v]), xe = k((e, t) => {
8690
8690
  if (!a || !s || !v) return;
8691
8691
  let n = document.createElement("input");
8692
8692
  n.type = "file", n.accept = ".zip,application/zip", n.multiple = !1, n.style.display = "none", n.addEventListener("change", () => {
@@ -8705,10 +8705,13 @@ var Kr = (e) => {
8705
8705
  contentLength: r.size,
8706
8706
  contentType: r.type
8707
8707
  };
8708
- if (_.current = t, S({ destinationFolder: e }), b(/* @__PURE__ */ new Map([[c.path, {
8708
+ if (_.current = t, S({
8709
+ destinationFolder: e,
8710
+ isArchive: !0
8711
+ }), b(/* @__PURE__ */ new Map([[c.path, {
8709
8712
  fileContent: r,
8710
8713
  name: s
8711
- }]])), te(e, [c], { destinationFolder: e }).hasConflicts) {
8714
+ }]])), ne(e, [c], { destinationFolder: e }).hasConflicts) {
8712
8715
  document.body.removeChild(n);
8713
8716
  return;
8714
8717
  }
@@ -8722,33 +8725,33 @@ var Kr = (e) => {
8722
8725
  a,
8723
8726
  s,
8724
8727
  v,
8725
- te,
8728
+ ne,
8726
8729
  o
8727
8730
  ]);
8728
8731
  return {
8729
8732
  isDragging: l,
8730
8733
  isDraggingOverWindow: d,
8731
8734
  uploadError: p,
8732
- handleDragEnter: me,
8733
- handleDragLeave: he,
8734
- handleDragOver: ge,
8735
- handleDrop: _e,
8735
+ handleDragEnter: he,
8736
+ handleDragLeave: ge,
8737
+ handleDragOver: _e,
8738
+ handleDrop: ve,
8736
8739
  clearError: k(() => {
8737
8740
  m(void 0);
8738
8741
  }, []),
8739
- handleUpload: ce,
8740
- openFileDialog: ye,
8741
- openArchiveDialog: be,
8742
+ handleUpload: le,
8743
+ openFileDialog: be,
8744
+ openArchiveDialog: xe,
8742
8745
  fileInputRef: h,
8743
8746
  uploadConflictingFiles: T,
8744
8747
  uploadConflictResolutionOpen: E,
8745
8748
  hasActiveUploadConflictRef: ee,
8746
- openUploadConflictResolution: re,
8747
- closeUploadConflictResolution: pe,
8748
- handleUploadConflictReplace: le,
8749
- handleUploadConflictDuplicate: ue,
8750
- handleUploadConflictCancel: de,
8751
- handleUploadConflictDecideForEach: fe
8749
+ openUploadConflictResolution: D,
8750
+ closeUploadConflictResolution: me,
8751
+ handleUploadConflictReplace: ue,
8752
+ handleUploadConflictDuplicate: de,
8753
+ handleUploadConflictCancel: fe,
8754
+ handleUploadConflictDecideForEach: pe
8752
8755
  };
8753
8756
  }, ui = Ye(void 0), di = { hiddenItemWarning: `${be.Warning}__A dot at the start of the name will make the item hidden` }, fi = { consecutiveDotsError: "Name cannot contain consecutive dots" }, pi = {
8754
8757
  emptyName: "Name cannot be empty",
@@ -66721,12 +66724,30 @@ var jB = 2e3, MB = (e, t = jB) => {
66721
66724
  return i.observe(n), i.observe(r), () => i.disconnect();
66722
66725
  }, [o]), {
66723
66726
  scrollContainerRef: e,
66724
- tableRef: t,
66727
+ contentRef: t,
66725
66728
  hasContentBeyondStart: n,
66726
66729
  hasContentBeyondEnd: i,
66727
66730
  handleScroll: o
66728
66731
  };
66729
66732
  }, WB = {
66733
+ scrollContainer: "_scrollContainer_1f433_1",
66734
+ mathContent: "_mathContent_1f433_24"
66735
+ }, GB = Qe(({ children: e, className: t, scrollRegionAriaLabel: n = "Scrollable formula" }) => {
66736
+ let { scrollContainerRef: r, contentRef: i, hasContentBeyondStart: a, hasContentBeyondEnd: o, handleScroll: s } = UB(), c = a || o;
66737
+ return /* @__PURE__ */ M("div", {
66738
+ ref: r,
66739
+ className: F("w-full min-w-0 max-w-full overflow-x-auto overflow-y-hidden", WB.scrollContainer, t),
66740
+ onScroll: s,
66741
+ role: c ? "region" : void 0,
66742
+ "aria-label": c ? n : void 0,
66743
+ tabIndex: c ? 0 : void 0,
66744
+ children: /* @__PURE__ */ M("span", {
66745
+ ref: i,
66746
+ className: F("katex", WB.mathContent),
66747
+ children: e
66748
+ })
66749
+ });
66750
+ }), KB = {
66730
66751
  tableContainer: "_tableContainer_13hc6_1",
66731
66752
  tableContainerLight: "_tableContainerLight_13hc6_6",
66732
66753
  scrollContainer: "_scrollContainer_13hc6_10",
@@ -66737,8 +66758,8 @@ var jB = 2e3, MB = (e, t = jB) => {
66737
66758
  tableScrollFadeEnd: "_tableScrollFadeEnd_13hc6_48",
66738
66759
  tableScrollFadeStart: "_tableScrollFadeStart_13hc6_56",
66739
66760
  tableScrollFadeBoth: "_tableScrollFadeBoth_13hc6_64"
66740
- }, GB = Qe(({ children: e, classNames: t, colors: n, scrollRegionAriaLabel: r = "Scrollable table" }) => {
66741
- let { scrollContainerRef: i, tableRef: a, hasContentBeyondStart: o, hasContentBeyondEnd: s, handleScroll: c } = UB(), l = os({
66761
+ }, qB = Qe(({ children: e, classNames: t, colors: n, scrollRegionAriaLabel: r = "Scrollable table" }) => {
66762
+ let { scrollContainerRef: i, contentRef: a, hasContentBeyondStart: o, hasContentBeyondEnd: s, handleScroll: c } = UB(), l = os({
66742
66763
  "--cm-markdown-border": n?.border,
66743
66764
  "--cm-table-scrollbar": n?.scrollbar,
66744
66765
  "--cm-table-fade": n?.fade,
@@ -66748,13 +66769,13 @@ var jB = 2e3, MB = (e, t = jB) => {
66748
66769
  }), u = o || s;
66749
66770
  return /* @__PURE__ */ M("div", {
66750
66771
  style: l,
66751
- className: F("relative w-full min-w-0 max-w-full overflow-hidden rounded-xl border", WB.tableContainer, WB.tableContainerLight, t.tableWrapper),
66772
+ className: F("relative w-full min-w-0 max-w-full overflow-hidden rounded-xl border", KB.tableContainer, KB.tableContainerLight, t.tableWrapper),
66752
66773
  children: /* @__PURE__ */ M("div", {
66753
66774
  ref: i,
66754
- className: F("w-full min-w-0 max-w-full overflow-x-auto", WB.scrollContainer, {
66755
- [WB.tableScrollFadeBoth]: o && s,
66756
- [WB.tableScrollFadeStart]: o && !s,
66757
- [WB.tableScrollFadeEnd]: !o && s
66775
+ className: F("w-full min-w-0 max-w-full overflow-x-auto", KB.scrollContainer, {
66776
+ [KB.tableScrollFadeBoth]: o && s,
66777
+ [KB.tableScrollFadeStart]: o && !s,
66778
+ [KB.tableScrollFadeEnd]: !o && s
66758
66779
  }),
66759
66780
  onScroll: c,
66760
66781
  role: u ? "region" : void 0,
@@ -66767,17 +66788,46 @@ var jB = 2e3, MB = (e, t = jB) => {
66767
66788
  })
66768
66789
  })
66769
66790
  });
66770
- }), KB = ({ checked: e = !1 }) => /* @__PURE__ */ M("span", {
66791
+ }), JB = ({ checked: e = !1 }) => /* @__PURE__ */ M("span", {
66771
66792
  className: "me-1.5 inline-flex align-middle",
66772
66793
  children: /* @__PURE__ */ M(a, {
66773
66794
  isSelected: e,
66774
66795
  disabled: !0
66775
66796
  })
66776
- }), qB = [
66797
+ }), YB = [
66777
66798
  sg,
66778
66799
  nN,
66779
66800
  [SN, { singleDollarTextMath: !1 }]
66780
- ], JB = /* @__PURE__ */ "math.maction.annotation.annotation-xml.menclose.merror.mfenced.mfrac.mi.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.semantics.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover".split("."), YB = [
66801
+ ], XB = /* @__PURE__ */ "math.maction.annotation.annotation-xml.menclose.merror.mfenced.mfrac.mi.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.semantics.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover".split("."), ZB = {
66802
+ math: ["display", "xmlns"],
66803
+ annotation: ["encoding"],
66804
+ mfrac: ["linethickness"],
66805
+ mi: ["mathvariant"],
66806
+ mo: [
66807
+ "fence",
66808
+ "minsize",
66809
+ "stretchy"
66810
+ ],
66811
+ mover: ["accent"],
66812
+ mpadded: [
66813
+ "height",
66814
+ "lspace",
66815
+ "width"
66816
+ ],
66817
+ mspace: ["width"],
66818
+ mstyle: [
66819
+ "displaystyle",
66820
+ "mathcolor",
66821
+ "scriptlevel"
66822
+ ],
66823
+ mtable: [
66824
+ "columnalign",
66825
+ "columnspacing",
66826
+ "rowspacing",
66827
+ "width"
66828
+ ],
66829
+ mtd: ["width"]
66830
+ }, QB = [
66781
66831
  PM,
66782
66832
  [LD, {
66783
66833
  output: "mathml",
@@ -66785,16 +66835,25 @@ var jB = 2e3, MB = (e, t = jB) => {
66785
66835
  }],
66786
66836
  [$M, {
66787
66837
  ...IM,
66788
- tagNames: [...IM.tagNames ?? [], ...JB],
66838
+ tagNames: [...IM.tagNames ?? [], ...XB],
66789
66839
  attributes: {
66790
66840
  ...IM.attributes,
66791
- code: [...IM.attributes?.code ?? [], ["className"]]
66841
+ ...ZB,
66842
+ code: [...IM.attributes?.code ?? [], ["className"]],
66843
+ span: [...IM.attributes?.span ?? [], [
66844
+ "className",
66845
+ "katex",
66846
+ "katex-error"
66847
+ ]]
66792
66848
  }
66793
66849
  }]
66794
- ], XB = [], ZB = {}, QB = { li: ({ children: e }) => /* @__PURE__ */ M("li", {
66850
+ ], $B = [], eV = {}, tV = { li: ({ children: e }) => /* @__PURE__ */ M("li", {
66795
66851
  className: "mb-1.5 last:mb-0",
66796
66852
  children: e
66797
- }) }, $B = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map($B).join("") : "", eV = (e, t, n, r, i, a) => ({
66853
+ }) }, nV = (e) => {
66854
+ let t = e?.properties?.className;
66855
+ return !Array.isArray(t) || !t.includes("katex") ? !1 : (e?.children ?? []).some((e) => e.type === "element" && e.tagName === "math" && e.properties?.display === "block");
66856
+ }, rV = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(rV).join("") : "", iV = (e, { isStreaming: t, codeBlockCopyLabel: n, codeBlockCopiedLabel: r, codeBlockTheme: i, tableScrollRegionAriaLabel: a, mathScrollRegionAriaLabel: o }) => ({
66798
66857
  h1: ({ children: t }) => /* @__PURE__ */ M("h1", {
66799
66858
  className: e.h1,
66800
66859
  children: t
@@ -66873,30 +66932,38 @@ var jB = 2e3, MB = (e, t = jB) => {
66873
66932
  className: F("opacity-75", e.del),
66874
66933
  children: t
66875
66934
  }),
66876
- input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ M(KB, { checked: t ?? !1 }) : null,
66877
- table: ({ children: t }) => /* @__PURE__ */ M(GB, {
66935
+ input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ M(JB, { checked: t ?? !1 }) : null,
66936
+ span: ({ children: t, node: n, ...r }) => nV(n) ? /* @__PURE__ */ M(GB, {
66937
+ className: e.mathBlock,
66938
+ scrollRegionAriaLabel: o,
66939
+ children: t
66940
+ }) : /* @__PURE__ */ M("span", {
66941
+ ...r,
66942
+ children: t
66943
+ }),
66944
+ table: ({ children: t }) => /* @__PURE__ */ M(qB, {
66878
66945
  classNames: e,
66879
66946
  scrollRegionAriaLabel: a,
66880
66947
  children: t
66881
66948
  }),
66882
66949
  tr: ({ children: e, node: t }) => {
66883
- let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => $B(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
66950
+ let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => rV(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
66884
66951
  return /* @__PURE__ */ M("tr", {
66885
- className: F(WB.row, a && WB.sectionRow),
66952
+ className: F(KB.row, a && KB.sectionRow),
66886
66953
  children: e
66887
66954
  });
66888
66955
  },
66889
66956
  th: ({ children: t }) => /* @__PURE__ */ M("th", {
66890
66957
  scope: "col",
66891
- className: F("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start", WB.rowDivider, WB.tableHeaderCell, e.tableHeaderFont ?? "dial-tiny-lead-semi-text", e.tableCell, e.tableHeader),
66958
+ className: F("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start", KB.rowDivider, KB.tableHeaderCell, e.tableHeaderFont ?? "dial-tiny-lead-semi-text", e.tableCell, e.tableHeader),
66892
66959
  children: t
66893
66960
  }),
66894
66961
  td: ({ children: t }) => /* @__PURE__ */ M("td", {
66895
- className: F("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]", WB.rowDivider, e.tableBodyCell, e.tableCell),
66962
+ className: F("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]", KB.rowDivider, e.tableBodyCell, e.tableCell),
66896
66963
  children: t
66897
66964
  })
66898
- }), tV = Qe(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = ZB, components: i, rehypePlugins: a = XB, thinkingLabel: o = "Thinking", codeBlockCopyLabel: s, codeBlockCopiedLabel: c, codeBlockTheme: l, colors: u, tableScrollRegionAriaLabel: d }) => {
66899
- let f = kN(e, t, n), p = A(() => zN(f), [f]), m = os({
66965
+ }), aV = Qe(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = eV, components: i, rehypePlugins: a = $B, thinkingLabel: o = "Thinking", codeBlockCopyLabel: s, codeBlockCopiedLabel: c, codeBlockTheme: l, colors: u, tableScrollRegionAriaLabel: d, mathScrollRegionAriaLabel: f }) => {
66966
+ let p = kN(e, t, n), m = A(() => zN(p), [p]), h = os({
66900
66967
  "--cm-thinking-inverted": u?.thinkingPrimary,
66901
66968
  "--cm-thinking-secondary": u?.thinkingSecondary,
66902
66969
  "--cm-markdown-border": u?.border,
@@ -66908,9 +66975,16 @@ var jB = 2e3, MB = (e, t = jB) => {
66908
66975
  "--cm-h6-text": u?.headingSixText,
66909
66976
  "--cm-code-inline-bg": u?.inlineCodeBackground,
66910
66977
  "--cm-code-inline-text": u?.inlineCodeText
66911
- }), h = A(() => ({
66912
- ...eV(r, t, s, c, l, d),
66913
- ...QB,
66978
+ }), g = A(() => ({
66979
+ ...iV(r, {
66980
+ isStreaming: t,
66981
+ codeBlockCopyLabel: s,
66982
+ codeBlockCopiedLabel: c,
66983
+ codeBlockTheme: l,
66984
+ tableScrollRegionAriaLabel: d,
66985
+ mathScrollRegionAriaLabel: f
66986
+ }),
66987
+ ...tV,
66914
66988
  ...i
66915
66989
  }), [
66916
66990
  r,
@@ -66919,22 +66993,23 @@ var jB = 2e3, MB = (e, t = jB) => {
66919
66993
  c,
66920
66994
  l,
66921
66995
  d,
66996
+ f,
66922
66997
  i
66923
66998
  ]);
66924
- return t && !f ? /* @__PURE__ */ M("span", {
66999
+ return t && !p ? /* @__PURE__ */ M("span", {
66925
67000
  className: VB.thinking,
66926
- style: m,
67001
+ style: h,
66927
67002
  children: o
66928
67003
  }) : /* @__PURE__ */ M("div", {
66929
- style: m,
67004
+ style: h,
66930
67005
  children: /* @__PURE__ */ M(vb, {
66931
- remarkPlugins: qB,
66932
- rehypePlugins: [...YB, ...a],
66933
- components: h,
66934
- children: p
67006
+ remarkPlugins: YB,
67007
+ rehypePlugins: [...QB, ...a],
67008
+ components: g,
67009
+ children: m
66935
67010
  })
66936
67011
  });
66937
- }), nV = {
67012
+ }), oV = {
66938
67013
  h1: "dial-h1-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
66939
67014
  h2: "dial-h2-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
66940
67015
  h3: "dial-h3-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
@@ -66947,9 +67022,10 @@ var jB = 2e3, MB = (e, t = jB) => {
66947
67022
  codeInline: "mx-0.5 px-1.5 break-words [overflow-wrap:anywhere]",
66948
67023
  blockquote: "my-4",
66949
67024
  link: "break-words [overflow-wrap:anywhere]",
66950
- tableWrapper: "my-4"
67025
+ tableWrapper: "my-4",
67026
+ mathBlock: "my-4"
66951
67027
  };
66952
- ({ ...nV }), Qe(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o, classNames: s = nV }) => /* @__PURE__ */ M(tV, {
67028
+ ({ ...oV }), Qe(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o, classNames: s = oV }) => /* @__PURE__ */ M(aV, {
66953
67029
  content: e,
66954
67030
  isStreaming: t,
66955
67031
  thinkingLabel: n,
@@ -66959,9 +67035,9 @@ var jB = 2e3, MB = (e, t = jB) => {
66959
67035
  codeBlockTheme: o,
66960
67036
  classNames: s
66961
67037
  }));
66962
- var rV = [cy], iV = ({ content: e, headingClassName: t }) => /* @__PURE__ */ M(tV, {
67038
+ var sV = [cy], cV = ({ content: e, headingClassName: t }) => /* @__PURE__ */ M(aV, {
66963
67039
  content: e,
66964
- rehypePlugins: rV,
67040
+ rehypePlugins: sV,
66965
67041
  classNames: {
66966
67042
  h1: t,
66967
67043
  h2: t,
@@ -66970,31 +67046,31 @@ var rV = [cy], iV = ({ content: e, headingClassName: t }) => /* @__PURE__ */ M(t
66970
67046
  h5: t,
66971
67047
  h6: t
66972
67048
  }
66973
- }), aV = /* @__PURE__ */ function(e) {
67049
+ }), lV = /* @__PURE__ */ function(e) {
66974
67050
  return e.Attach = "attach", e.Standalone = "standalone", e.FolderPicker = "folder-picker", e;
66975
- }({}), oV = /* @__PURE__ */ function(e) {
67051
+ }({}), uV = /* @__PURE__ */ function(e) {
66976
67052
  return e.Attach = "attach", e.Browse = "browse", e.Full = "full", e;
66977
- }({}), sV = (e) => e.split("/").some((e) => e.startsWith(".")), cV = (e) => {
67053
+ }({}), dV = (e) => e.split("/").some((e) => e.startsWith(".")), fV = (e) => {
66978
67054
  let t = e.replace(/\/$/, ""), n = t.lastIndexOf("/");
66979
67055
  return n > 0 ? t.slice(0, n + 1) : "";
66980
- }, lV = /* @__PURE__ */ function(e) {
67056
+ }, pV = /* @__PURE__ */ function(e) {
66981
67057
  return e.Queued = "queued", e.Uploading = "uploading", e.Completed = "completed", e.Failed = "failed", e.Cancelled = "cancelled", e;
66982
- }({}), uV = (e) => {
67058
+ }({}), mV = (e) => {
66983
67059
  if (e.id) {
66984
67060
  let t = document.querySelector(`[row-id="${e.id}"]`);
66985
67061
  if (t) return t;
66986
67062
  }
66987
67063
  return e.rowIndex == null ? null : document.querySelector(`[row-index="${e.rowIndex}"]`);
66988
- }, dV = (e, t) => {
67064
+ }, hV = (e, t) => {
66989
67065
  requestAnimationFrame(() => {
66990
67066
  requestAnimationFrame(() => {
66991
- !e.isDestroyed() && t.rowIndex != null && e.ensureNodeVisible(t, "middle"), uV(t)?.scrollIntoView({
67067
+ !e.isDestroyed() && t.rowIndex != null && e.ensureNodeVisible(t, "middle"), mV(t)?.scrollIntoView({
66992
67068
  block: "center",
66993
67069
  behavior: "auto"
66994
67070
  });
66995
67071
  });
66996
67072
  });
66997
- }, fV = (e) => e.find((e) => e.data?.isTemporary) ?? e[0] ?? null, pV = ({ resolveTargetNode: e = fV } = {}) => {
67073
+ }, gV = (e) => e.find((e) => e.data?.isTemporary) ?? e[0] ?? null, _V = ({ resolveTargetNode: e = gV } = {}) => {
66998
67074
  let t = it(/* @__PURE__ */ new Set()), n = it(!1), r = it(null), i = k(() => {
66999
67075
  t.current = /* @__PURE__ */ new Set(), n.current = !1;
67000
67076
  }, []), a = k((e) => {
@@ -67007,7 +67083,7 @@ var rV = [cy], iV = ({ content: e, headingClassName: t }) => /* @__PURE__ */ M(t
67007
67083
  r && (a.add(r), n.current && !t.current.has(r) && o.push(e));
67008
67084
  }), t.current = a, n.current = !0;
67009
67085
  let s = e(o);
67010
- s && dV(i, s);
67086
+ s && hV(i, s);
67011
67087
  }, [e]), s = k((e) => {
67012
67088
  let t = r.current;
67013
67089
  t !== e && (t != null && (t.removeEventListener("cellEditingStarted", a), t.removeEventListener("rowDataUpdated", o)), e.addEventListener("cellEditingStarted", a), e.addEventListener("rowDataUpdated", o), r.current = e);
@@ -67019,7 +67095,7 @@ var rV = [cy], iV = ({ content: e, headingClassName: t }) => /* @__PURE__ */ M(t
67019
67095
  handleGridApiChange: s,
67020
67096
  reset: i
67021
67097
  };
67022
- }, mV = ({ title: e, text: t, cancelLabel: n, onCancel: r }) => /* @__PURE__ */ M(xe, {
67098
+ }, vV = ({ title: e, text: t, cancelLabel: n, onCancel: r }) => /* @__PURE__ */ M(xe, {
67023
67099
  className: "!h-fit !max-h-full !w-[400px]",
67024
67100
  open: !0,
67025
67101
  closeOnOutsideClick: !1,
@@ -67048,8 +67124,8 @@ var rV = [cy], iV = ({ content: e, headingClassName: t }) => /* @__PURE__ */ M(t
67048
67124
  })]
67049
67125
  })
67050
67126
  });
67051
- Qe(mV);
67052
- var hV = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancelLabel: r, onCancel: i }) => {
67127
+ Qe(vV);
67128
+ var yV = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancelLabel: r, onCancel: i }) => {
67053
67129
  let { files: a } = e, o = k((e) => e === void 0 ? null : /* @__PURE__ */ M("div", {
67054
67130
  className: "h-1 w-full overflow-hidden rounded-full bg-control-disable-primary",
67055
67131
  "data-qa": "uploading-indicator",
@@ -67098,15 +67174,15 @@ var hV = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancel
67098
67174
  })
67099
67175
  });
67100
67176
  };
67101
- Qe(hV);
67102
- var gV = (e, t) => {
67177
+ Qe(yV);
67178
+ var bV = (e, t) => {
67103
67179
  if (e.isDownloading) return t.downloadingLabel;
67104
67180
  if (e.isDeleting) return t.deletingLabel;
67105
67181
  if (e.isRenaming && !e.isMoving) return t.renamingLabel;
67106
67182
  if (e.isUnsharing) return t.unsharingLabel;
67107
67183
  if (e.isRemovingAccess) return t.removingAccessLabel;
67108
- }, _V = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: c, autoSelectUploadedItems: l = !1, allowedFileTypes: u, maxSelectableFileSize: d, isRowSelectable: f, getDisabledTooltip: p, unsupportedFileTypeTooltip: m }) => {
67109
- let { items: h, isLoading: g, error: _, path: v, onPathChange: y, retry: b, onSearchFiles: x, isSearching: S, searchResults: C, clearSearchResults: w, expandedPaths: T, loadedPaths: E, onExpandedPathsChange: ee, onFolderPopupPathChange: te, folderPopupLoadingPaths: ne, onUploadFiles: re, onUploadArchive: D, onValidateUpload: ie, uploadBatchState: ae, cancelUpload: oe, clearUploadBatch: se, onCreateFolder: O, onCreateFolderValidate: ce, onDownloadFiles: le, isDownloading: ue, onDeleteFiles: de, isDeleting: fe, onMoveToFiles: pe, onRenameValidate: he, isRenaming: ge, onCopyFiles: _e, isCopying: ve, isMoving: ye, cancelCopyMove: be, uploadEnabled: xe, isNewButtonDisabled: Se, disabledNewButtonTooltip: we, visibleColumns: Te, dateLocale: Ee, dateOptions: De, actionLabels: Oe, sharedWithMeIds: ke, sharedByMePaths: Ae, onUnshareFiles: je, isUnsharing: Ne, onRemoveFilesAccess: Pe, isRemovingAccess: Fe, fileMetadata: Ie, isFileMetadataLoading: Le, onGetInfo: Re, clearMetadata: ze } = e, [Be, Ve] = j(void 0), { handleGridApiChange: He, reset: Ue } = pV();
67184
+ }, xV = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: c, autoSelectUploadedItems: l = !1, allowedFileTypes: u, maxSelectableFileSize: d, isRowSelectable: f, getDisabledTooltip: p, unsupportedFileTypeTooltip: m }) => {
67185
+ let { items: h, isLoading: g, error: _, path: v, onPathChange: y, retry: b, onSearchFiles: x, isSearching: S, searchResults: C, clearSearchResults: w, expandedPaths: T, loadedPaths: E, onExpandedPathsChange: ee, onFolderPopupPathChange: te, folderPopupLoadingPaths: ne, onUploadFiles: re, onUploadArchive: D, onValidateUpload: ie, uploadBatchState: ae, cancelUpload: oe, clearUploadBatch: se, onCreateFolder: O, onCreateFolderValidate: ce, onDownloadFiles: le, isDownloading: ue, onDeleteFiles: de, isDeleting: fe, onMoveToFiles: pe, onRenameValidate: he, isRenaming: ge, onCopyFiles: _e, isCopying: ve, isMoving: ye, cancelCopyMove: be, uploadEnabled: xe, isNewButtonDisabled: Se, disabledNewButtonTooltip: we, visibleColumns: Te, dateLocale: Ee, dateOptions: De, actionLabels: Oe, sharedWithMeIds: ke, sharedByMePaths: Ae, onUnshareFiles: je, isUnsharing: Ne, onRemoveFilesAccess: Pe, isRemovingAccess: Fe, fileMetadata: Ie, isFileMetadataLoading: Le, onGetInfo: Re, clearMetadata: ze } = e, [Be, Ve] = j(void 0), { handleGridApiChange: He, reset: Ue } = _V();
67110
67186
  et(() => {
67111
67187
  Ue();
67112
67188
  }, [n, Ue]);
@@ -67172,7 +67248,7 @@ var gV = (e, t) => {
67172
67248
  ne,
67173
67249
  ee,
67174
67250
  We
67175
- ]), Xe = s === aV.Standalone && c === oV.Full && n === Qn.MyFiles && xe, Ze = A(() => ({
67251
+ ]), Xe = s === lV.Standalone && c === uV.Full && n === Qn.MyFiles && xe, Ze = A(() => ({
67176
67252
  tabs: r,
67177
67253
  activeTab: n,
67178
67254
  onTabChange: i,
@@ -67216,7 +67292,7 @@ var gV = (e, t) => {
67216
67292
  ]), $e = A(() => {
67217
67293
  let e;
67218
67294
  for (let t of a) {
67219
- let n = cV(t);
67295
+ let n = fV(t);
67220
67296
  if (e === void 0) e = n;
67221
67297
  else if (e !== n) return;
67222
67298
  }
@@ -67271,7 +67347,7 @@ var gV = (e, t) => {
67271
67347
  t.metadataModifiedDateLabel,
67272
67348
  t.metadataSizeLabel,
67273
67349
  t.metadataAuthorLabel
67274
- ]), st = gV({
67350
+ ]), st = bV({
67275
67351
  isDownloading: ue,
67276
67352
  isDeleting: fe,
67277
67353
  isRenaming: ge,
@@ -67280,7 +67356,7 @@ var gV = (e, t) => {
67280
67356
  isRemovingAccess: Fe
67281
67357
  }, t), ct = A(() => {
67282
67358
  if (ae == null) return "";
67283
- let e = ae.files.filter((e) => e.status !== lV.Uploading).length;
67359
+ let e = ae.files.filter((e) => e.status !== pV.Uploading).length;
67284
67360
  return t.getUploadProgressText(e, ae.files.length);
67285
67361
  }, [ae, t]), lt = A(() => C != null && !S ? {
67286
67362
  title: t.searchEmptyStateTitle,
@@ -67369,14 +67445,14 @@ var gV = (e, t) => {
67369
67445
  onClick: b
67370
67446
  })]
67371
67447
  }),
67372
- ae != null && /* @__PURE__ */ M(hV, {
67448
+ ae != null && /* @__PURE__ */ M(yV, {
67373
67449
  batchState: ae,
67374
67450
  uploadProgressTitle: t.uploadProgressTitle,
67375
67451
  uploadProgressText: ct,
67376
67452
  cancelLabel: t.cancelLabel,
67377
67453
  onCancel: it
67378
67454
  }),
67379
- (ve || ye) && /* @__PURE__ */ M(mV, {
67455
+ (ve || ye) && /* @__PURE__ */ M(vV, {
67380
67456
  title: ye ? t.operationLoaderMoveTitle : t.operationLoaderCopyTitle,
67381
67457
  text: ye ? t.movingLabel : t.copyingLabel,
67382
67458
  cancelLabel: t.operationLoaderCancelLabel,
@@ -67384,8 +67460,8 @@ var gV = (e, t) => {
67384
67460
  })
67385
67461
  ] });
67386
67462
  };
67387
- Qe(_V);
67388
- var vV = Qe(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: o, activeTab: s, tabs: c, onTabChange: l, labels: u, variant: d, actionProfile: f, selectedPaths: p, onSelectedPathsChange: m, resolveFolderPath: h, isFileTypeAllowed: g, maxSelectableFileSize: _, maximumAttachmentsAmount: v, existingAttachmentsAmount: y = 0, isRowSelectable: b, getDisabledTooltip: x, unsupportedFileTypeTooltip: S, allowedFileTypes: C, autoSelectUploadedItems: w = !1 }) => {
67463
+ Qe(xV);
67464
+ var SV = Qe(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: o, activeTab: s, tabs: c, onTabChange: l, labels: u, variant: d, actionProfile: f, selectedPaths: p, onSelectedPathsChange: m, resolveFolderPath: h, isFileTypeAllowed: g, maxSelectableFileSize: _, maximumAttachmentsAmount: v, existingAttachmentsAmount: y = 0, isRowSelectable: b, getDisabledTooltip: x, unsupportedFileTypeTooltip: S, allowedFileTypes: C, autoSelectUploadedItems: w = !1 }) => {
67389
67465
  let { items: T, isLoading: E, searchResults: ee } = a, te = A(() => {
67390
67466
  let e = /* @__PURE__ */ new Map(), t = (n) => {
67391
67467
  n.forEach((n) => {
@@ -67397,8 +67473,8 @@ var vV = Qe(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
67397
67473
  }), e;
67398
67474
  }, [T, ee]), ne = A(() => Array.from(p).map((e) => te.get(e)).filter((e) => e != null), [te, p]), re = k(() => {
67399
67475
  let e = [], t = [];
67400
- for (let n of ne) sV(n.path) || (n.nodeType === Tr.FOLDER ? e.push(n.path) : t.push(n));
67401
- let a = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), o = t.filter((e) => !(sV(e.path) || g != null && e.contentType != null && !g(e.contentType))), s = o.filter((e) => !a.some((t) => e.path.startsWith(`${t}/`)));
67476
+ for (let n of ne) dV(n.path) || (n.nodeType === Tr.FOLDER ? e.push(n.path) : t.push(n));
67477
+ let a = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), o = t.filter((e) => !(dV(e.path) || g != null && e.contentType != null && !g(e.contentType))), s = o.filter((e) => !a.some((t) => e.path.startsWith(`${t}/`)));
67402
67478
  t.length - o.length > 0 && r?.();
67403
67479
  let c = a.flatMap((e) => {
67404
67480
  let t = te.get(e);
@@ -67448,7 +67524,7 @@ var vV = Qe(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
67448
67524
  }),
67449
67525
  children: /* @__PURE__ */ M("div", {
67450
67526
  className: "flex min-h-0 flex-col",
67451
- children: /* @__PURE__ */ M(_V, {
67527
+ children: /* @__PURE__ */ M(xV, {
67452
67528
  controller: a,
67453
67529
  labels: oe,
67454
67530
  activeTab: s,
@@ -67468,68 +67544,68 @@ var vV = Qe(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
67468
67544
  })
67469
67545
  });
67470
67546
  });
67471
- vV.displayName = "FileManagerAttachModal";
67547
+ SV.displayName = "FileManagerAttachModal";
67472
67548
  //#endregion
67473
67549
  //#region src/utils/catalog-tabs.ts
67474
- var yV = {
67550
+ var CV = {
67475
67551
  [Da.Model]: "Models",
67476
67552
  [Da.Agent]: "Agents",
67477
67553
  [Da.Toolset]: "Toolsets",
67478
67554
  [Da.Prompt]: "Prompts",
67479
67555
  [Da.Skill]: "Skills"
67480
- }, bV = [
67556
+ }, wV = [
67481
67557
  Da.Model,
67482
67558
  Da.Agent,
67483
67559
  Da.Toolset,
67484
67560
  Da.Skill,
67485
67561
  Da.Prompt
67486
- ], xV = (e, t) => {
67562
+ ], TV = (e, t) => {
67487
67563
  let n = {
67488
- ...yV,
67564
+ ...CV,
67489
67565
  ...t
67490
67566
  }, r = new Set(e.map((e) => e.type));
67491
- return bV.filter((e) => r.has(e)).map((e) => ({
67567
+ return wV.filter((e) => r.has(e)).map((e) => ({
67492
67568
  id: e,
67493
67569
  label: n[e] ?? e
67494
67570
  }));
67495
- }, SV = () => {
67571
+ }, EV = () => {
67496
67572
  let [e, t] = j(() => window.innerWidth);
67497
67573
  return et(() => {
67498
67574
  let e = () => t(window.innerWidth);
67499
67575
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
67500
67576
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
67501
- }, CV = (e) => e === bn.SignedIn, wV = (e) => {
67502
- let t = CV(e.userStatus), n = CV(e.globalStatus);
67577
+ }, DV = (e) => e === bn.SignedIn, OV = (e) => {
67578
+ let t = DV(e.userStatus), n = DV(e.globalStatus);
67503
67579
  return e.isManageableByAdmin ? Sn.ManageCredentials : e.isPublic && !t ? Sn.LoginWithMyCreds : !t && !n ? Sn.LogIn : Sn.LogOut;
67504
- }, TV = (e) => {
67580
+ }, kV = (e) => {
67505
67581
  if (e.authenticationType === yn.None) return;
67506
- let t = CV(e.userStatus), n = CV(e.globalStatus);
67582
+ let t = DV(e.userStatus), n = DV(e.globalStatus);
67507
67583
  return !t && !n ? Cn.LoggedOut : void 0;
67508
- }, EV = (e) => CV(e.userStatus) ? xn.User : xn.Global, DV = (e) => {
67509
- if (e.isManageableByAdmin) return CV(e.userStatus) ? wn.PersonalCredentialsActive : CV(e.globalStatus) ? wn.OrgCredentialsActive : void 0;
67510
- if (CV(e.globalStatus) && e.isPublic && !CV(e.userStatus)) return wn.UsingOrgCredentials;
67511
- }, OV = (e) => {
67584
+ }, AV = (e) => DV(e.userStatus) ? xn.User : xn.Global, jV = (e) => {
67585
+ if (e.isManageableByAdmin) return DV(e.userStatus) ? wn.PersonalCredentialsActive : DV(e.globalStatus) ? wn.OrgCredentialsActive : void 0;
67586
+ if (DV(e.globalStatus) && e.isPublic && !DV(e.userStatus)) return wn.UsingOrgCredentials;
67587
+ }, MV = (e) => {
67512
67588
  let { colors: t } = e ?? {};
67513
67589
  return os({
67514
67590
  "--cat-bg": t?.background,
67515
67591
  "--cat-heading-title-text": t?.headingTitleText
67516
67592
  });
67517
- }, kV = 1180, AV = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, jV = (e) => {
67593
+ }, NV = 1180, PV = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, FV = (e) => {
67518
67594
  if (!e || e === document.body) return document.documentElement;
67519
67595
  let { overflow: t, overflowY: n } = getComputedStyle(e);
67520
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : jV(e.parentElement);
67521
- }, MV = 10, NV = 10, PV = 30, FV = (e, t, n = MV) => {
67596
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : FV(e.parentElement);
67597
+ }, IV = 10, LV = 10, RV = 30, zV = (e, t, n = IV) => {
67522
67598
  let r = it(null), [i, a] = j({
67523
67599
  start: 0,
67524
- end: PV
67600
+ end: RV
67525
67601
  });
67526
67602
  et(() => {
67527
67603
  let i = r.current;
67528
67604
  if (!i) return;
67529
- let o = jV(i.parentElement), s = () => {
67605
+ let o = FV(i.parentElement), s = () => {
67530
67606
  let r = o.clientHeight;
67531
67607
  if (r === 0) return;
67532
- let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / NV) * NV), p = Math.min(e, Math.ceil((u + d + n) / NV) * NV);
67608
+ let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / LV) * LV), p = Math.min(e, Math.ceil((u + d + n) / LV) * LV);
67533
67609
  a((e) => e.start === f && e.end === p ? e : {
67534
67610
  start: f,
67535
67611
  end: p
@@ -67545,15 +67621,15 @@ var yV = {
67545
67621
  t,
67546
67622
  n
67547
67623
  ]);
67548
- let o = Math.max(0, Math.floor((e - 1) / NV) * NV), s = Math.min(i.start, o);
67624
+ let o = Math.max(0, Math.floor((e - 1) / LV) * LV), s = Math.min(i.start, o);
67549
67625
  return {
67550
67626
  containerRef: r,
67551
67627
  startRow: s,
67552
- endRow: Math.min(e, Math.max(i.end, s + NV))
67628
+ endRow: Math.min(e, Math.max(i.end, s + LV))
67553
67629
  };
67554
- }, IV = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
67630
+ }, BV = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
67555
67631
  let r = it(null), [i, a] = j(() => {
67556
- let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t > 768 ? 60 : 0)), i = AV((n ? r : Math.min(kV, r)) - 64), a = Math.ceil(e / i);
67632
+ let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t > 768 ? 60 : 0)), i = PV((n ? r : Math.min(NV, r)) - 64), a = Math.ceil(e / i);
67557
67633
  return {
67558
67634
  startRow: 0,
67559
67635
  endRow: Math.min(a, 12),
@@ -67563,8 +67639,8 @@ var yV = {
67563
67639
  et(() => {
67564
67640
  let n = r.current;
67565
67641
  if (!n) return;
67566
- let i = jV(n.parentElement), o = () => {
67567
- let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l = AV(c), u = Math.ceil(e / l), d = Math.max(0, o.top - r.top), f = Math.max(0, Math.floor(d / 268) - t);
67642
+ let i = FV(n.parentElement), o = () => {
67643
+ let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l = PV(c), u = Math.ceil(e / l), d = Math.max(0, o.top - r.top), f = Math.max(0, Math.floor(d / 268) - t);
67568
67644
  a({
67569
67645
  startRow: f,
67570
67646
  endRow: Math.min(u, f + Math.ceil(s / 268) + 2 * t),
@@ -67586,7 +67662,7 @@ var yV = {
67586
67662
  rowCount: o,
67587
67663
  totalHeight: o * 268
67588
67664
  };
67589
- }, LV = {
67665
+ }, VV = {
67590
67666
  skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
67591
67667
  card: "_card_18c2b_2",
67592
67668
  emptyStarHidden: "_emptyStarHidden_18c2b_2",
@@ -67596,11 +67672,11 @@ var yV = {
67596
67672
  selectedCard: "_selectedCard_18c2b_37",
67597
67673
  checkIcon: "_checkIcon_18c2b_42",
67598
67674
  footer: "_footer_18c2b_46"
67599
- }, RV = {
67675
+ }, HV = {
67600
67676
  name: "_name_188yo_1",
67601
67677
  lastUsed: "_lastUsed_188yo_5",
67602
67678
  version: "_version_188yo_9"
67603
- }, zV = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
67679
+ }, UV = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
67604
67680
  let f = c?.colors, p = c?.typography ?? {}, m = a === vn.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = os({
67605
67681
  "--ai-name-text": f?.nameColor,
67606
67682
  "--ai-last-used-text": f?.lastUsedColor,
@@ -67634,22 +67710,22 @@ var yV = {
67634
67710
  text: n,
67635
67711
  query: o
67636
67712
  }) : n,
67637
- className: F("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", RV.name)
67713
+ className: F("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", HV.name)
67638
67714
  }), r && /* @__PURE__ */ M(D, {
67639
67715
  text: r,
67640
- className: F("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", RV.version)
67716
+ className: F("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", HV.version)
67641
67717
  })]
67642
67718
  }), m && i != null && /* @__PURE__ */ N("div", {
67643
67719
  className: "flex items-center gap-2",
67644
67720
  children: [/* @__PURE__ */ M("span", {
67645
- className: F("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", RV.lastUsed),
67721
+ className: F("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", HV.lastUsed),
67646
67722
  children: i
67647
67723
  }), l]
67648
67724
  })]
67649
67725
  })]
67650
67726
  })]
67651
67727
  });
67652
- }, BV = { icon: "_icon_a0p4u_1" }, VV = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || TV(e) == null ? null : /* @__PURE__ */ M(Le, {
67728
+ }, WV = { icon: "_icon_a0p4u_1" }, GV = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || kV(e) == null ? null : /* @__PURE__ */ M(Le, {
67653
67729
  tooltip: t,
67654
67730
  asChild: !0,
67655
67731
  children: /* @__PURE__ */ M("span", {
@@ -67662,39 +67738,39 @@ var yV = {
67662
67738
  className: F("absolute -bottom-1 -end-1 shrink-0", n),
67663
67739
  children: /* @__PURE__ */ M(st, {
67664
67740
  size: m.SM,
67665
- className: BV.icon,
67741
+ className: WV.icon,
67666
67742
  "aria-hidden": !0
67667
67743
  })
67668
67744
  })
67669
- }), HV = {
67745
+ }), KV = {
67670
67746
  starFilledIcon: "_starFilledIcon_po6zj_1",
67671
67747
  starPop: "_starPop_po6zj_1"
67672
- }, UV = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ M(Ie, {
67748
+ }, qV = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ M(Ie, {
67673
67749
  size: n,
67674
67750
  style: os({ "--cat-star-filled": a }),
67675
67751
  className: i,
67676
67752
  icon: e ? /* @__PURE__ */ M(Wt, {
67677
67753
  size: m.SM,
67678
- className: HV.starFilledIcon
67754
+ className: KV.starFilledIcon
67679
67755
  }) : /* @__PURE__ */ M(Ut, {
67680
67756
  size: m.SM,
67681
67757
  stroke: h
67682
67758
  }),
67683
67759
  "aria-label": r,
67684
67760
  onClick: t
67685
- }), WV = { tag: "_tag_12518_1" }, GV = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ M("div", {
67761
+ }), JV = { tag: "_tag_12518_1" }, YV = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ M("div", {
67686
67762
  style: os({
67687
67763
  "--cat-card-tag-bg": r?.background,
67688
67764
  "--cat-card-tag-text": r?.text,
67689
67765
  "--cat-card-tag-border": r?.border
67690
67766
  }),
67691
- className: F("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", WV.tag, n, t),
67767
+ className: F("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", JV.tag, n, t),
67692
67768
  children: e
67693
- }), KV = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ M(GV, {
67769
+ }), XV = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ M(YV, {
67694
67770
  label: e,
67695
67771
  badgeClassName: t,
67696
67772
  colors: n
67697
- }), qV = 8, JV = ({ topics: e, overflowAriaLabel: t, className: n }) => {
67773
+ }), ZV = 8, QV = ({ topics: e, overflowAriaLabel: t, className: n }) => {
67698
67774
  let r = it(null), i = it([]), a = it([]), o = it(null), s = it(Infinity), [c, l] = j(e.length), u = e.join("\0"), d = k(() => {
67699
67775
  let t = r.current;
67700
67776
  if (!t || e.length === 0) return;
@@ -67706,8 +67782,8 @@ var yV = {
67706
67782
  let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
67707
67783
  for (let t = 0; t < e.length; t++) {
67708
67784
  let r = e.length - (t + 1) > 0;
67709
- if (d + (t > 0 ? qV : 0) + c[t] + (r ? qV + u : 0) > n) break;
67710
- d += (t > 0 ? qV : 0) + c[t], f = t + 1;
67785
+ if (d + (t > 0 ? ZV : 0) + c[t] + (r ? ZV + u : 0) > n) break;
67786
+ d += (t > 0 ? ZV : 0) + c[t], f = t + 1;
67711
67787
  }
67712
67788
  l(Math.min(f, s.current));
67713
67789
  }, [e.length]);
@@ -67738,24 +67814,24 @@ var yV = {
67738
67814
  ref: (e) => {
67739
67815
  i.current[t] = e;
67740
67816
  },
67741
- children: /* @__PURE__ */ M(KV, { label: e })
67817
+ children: /* @__PURE__ */ M(XV, { label: e })
67742
67818
  }, e)),
67743
67819
  f > 0 && /* @__PURE__ */ M(Le, {
67744
67820
  tooltip: e.slice(c).join(", "),
67745
67821
  children: /* @__PURE__ */ M("span", {
67746
67822
  "aria-label": t?.(f) ?? `and ${f} more topics`,
67747
- children: /* @__PURE__ */ M(KV, { label: `+${f}` })
67823
+ children: /* @__PURE__ */ M(XV, { label: `+${f}` })
67748
67824
  })
67749
67825
  }),
67750
67826
  /* @__PURE__ */ M("div", {
67751
67827
  ref: o,
67752
67828
  "aria-hidden": !0,
67753
67829
  className: "invisible absolute start-0 top-0",
67754
- children: /* @__PURE__ */ M(KV, { label: `+${e.length}` })
67830
+ children: /* @__PURE__ */ M(XV, { label: `+${e.length}` })
67755
67831
  })
67756
67832
  ]
67757
67833
  });
67758
- }, YV = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: a, isFavoriteVisible: o, featuredLabel: s = "Featured", addToFavoritesAriaLabel: c = "Add to favorites", removeFromFavoritesAriaLabel: l = "Remove from favorites", isSelected: u = !1, className: d, styles: f, credentialsBadgeLoggedOutLabel: p, isReadonly: g = !1 }) => {
67834
+ }, $V = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: a, isFavoriteVisible: o, featuredLabel: s = "Featured", addToFavoritesAriaLabel: c = "Add to favorites", removeFromFavoritesAriaLabel: l = "Remove from favorites", isSelected: u = !1, className: d, styles: f, credentialsBadgeLoggedOutLabel: p, isReadonly: g = !1 }) => {
67759
67835
  let [_, v] = j(r);
67760
67836
  et(() => {
67761
67837
  v(r);
@@ -67786,7 +67862,7 @@ var yV = {
67786
67862
  } : {},
67787
67863
  "aria-label": e.name,
67788
67864
  style: C,
67789
- className: F("box-border cursor-pointer gap-3", LV.card, w ? LV.featuredCard : void 0, u ? LV.selectedCard : void 0, d),
67865
+ className: F("box-border cursor-pointer gap-3", VV.card, w ? VV.featuredCard : void 0, u ? VV.selectedCard : void 0, d),
67790
67866
  children: [
67791
67867
  w && /* @__PURE__ */ M("div", {
67792
67868
  className: "absolute end-[22px] top-0 -translate-y-1/2",
@@ -67798,33 +67874,33 @@ var yV = {
67798
67874
  }),
67799
67875
  u && /* @__PURE__ */ M(ft, {
67800
67876
  size: m.SM,
67801
- className: F("absolute end-3 top-3 shrink-0", LV.checkIcon),
67877
+ className: F("absolute end-3 top-3 shrink-0", VV.checkIcon),
67802
67878
  "aria-hidden": !0,
67803
67879
  stroke: h
67804
67880
  }),
67805
- /* @__PURE__ */ M(zV, {
67881
+ /* @__PURE__ */ M(UV, {
67806
67882
  icon: e.iconUrl,
67807
67883
  type: e.type,
67808
67884
  name: e.name,
67809
67885
  version: e.version,
67810
67886
  size: vn.SM,
67811
67887
  query: t,
67812
- iconClassName: LV.cardIcon,
67813
- iconOverlay: /* @__PURE__ */ M(VV, {
67888
+ iconClassName: VV.cardIcon,
67889
+ iconOverlay: /* @__PURE__ */ M(GV, {
67814
67890
  credentials: e.credentials,
67815
67891
  loggedOutLabel: p
67816
67892
  })
67817
67893
  }),
67818
67894
  /* @__PURE__ */ M("p", {
67819
- className: F(y, "line-clamp-2 min-h-[2lh] break-words", LV.description),
67895
+ className: F(y, "line-clamp-2 min-h-[2lh] break-words", VV.description),
67820
67896
  children: e.description
67821
67897
  }),
67822
67898
  /* @__PURE__ */ M("div", {
67823
67899
  className: "mt-auto flex items-center gap-2",
67824
- children: /* @__PURE__ */ M(JV, { topics: e.topics })
67900
+ children: /* @__PURE__ */ M(QV, { topics: e.topics })
67825
67901
  }),
67826
67902
  E && /* @__PURE__ */ M("div", {
67827
- className: F("pt-3", !g && F("border-t", LV.footer)),
67903
+ className: F("pt-3", !g && F("border-t", VV.footer)),
67828
67904
  children: /* @__PURE__ */ N("div", {
67829
67905
  className: "flex items-center gap-2",
67830
67906
  children: [/* @__PURE__ */ M("div", {
@@ -67834,18 +67910,18 @@ var yV = {
67834
67910
  labelClassName: x,
67835
67911
  leafClassName: S
67836
67912
  })
67837
- }), T && /* @__PURE__ */ M(UV, {
67913
+ }), T && /* @__PURE__ */ M(qV, {
67838
67914
  isStarred: _,
67839
67915
  size: re.Small,
67840
67916
  onClick: ne,
67841
67917
  ariaLabel: _ ? l : c,
67842
- className: F(LV.starBtn, !_ && LV.emptyStarHidden)
67918
+ className: F(VV.starBtn, !_ && VV.emptyStarHidden)
67843
67919
  })]
67844
67920
  })
67845
67921
  })
67846
67922
  ]
67847
67923
  });
67848
- }, XV = ({ 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 }) => {
67924
+ }, eH = ({ 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 }) => {
67849
67925
  let p = e * n, m = t.slice(p, p + n);
67850
67926
  return /* @__PURE__ */ M("div", {
67851
67927
  style: {
@@ -67857,7 +67933,7 @@ var yV = {
67857
67933
  let n = m[t];
67858
67934
  return /* @__PURE__ */ M("div", {
67859
67935
  className: "h-full min-w-0 flex-1",
67860
- children: n && /* @__PURE__ */ M(YV, {
67936
+ children: n && /* @__PURE__ */ M($V, {
67861
67937
  item: n,
67862
67938
  query: r,
67863
67939
  initialIsStarred: n.isStarred,
@@ -67875,8 +67951,8 @@ var yV = {
67875
67951
  }, n?.id ?? `spacer-${t}`);
67876
67952
  })
67877
67953
  });
67878
- }, ZV = Qe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = LV.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1 }) => {
67879
- 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 } = IV(e.length, { isFullWidth: d }), S = A(() => ({
67954
+ }, tH = Qe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = VV.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1 }) => {
67955
+ 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 } = BV(e.length, { isFullWidth: d }), S = A(() => ({
67880
67956
  items: e,
67881
67957
  columnCount: b,
67882
67958
  query: t,
@@ -67910,7 +67986,7 @@ var yV = {
67910
67986
  ...os({ "--cg-skeleton-card-bg": l })
67911
67987
  },
67912
67988
  children: Array.from({ length: b * 3 }, (e, t) => /* @__PURE__ */ M("div", {
67913
- className: F("rounded-md border p-4", LV.skeletonCard),
67989
+ className: F("rounded-md border p-4", VV.skeletonCard),
67914
67990
  style: { height: 248 },
67915
67991
  children: /* @__PURE__ */ M(ke, {
67916
67992
  avatar: {
@@ -67932,41 +68008,41 @@ var yV = {
67932
68008
  style: { height: x },
67933
68009
  children: Array.from({ length: y - v }, (e, t) => {
67934
68010
  let n = v + t;
67935
- return /* @__PURE__ */ M(XV, {
68011
+ return /* @__PURE__ */ M(eH, {
67936
68012
  rowIndex: n,
67937
68013
  ...S
67938
68014
  }, n);
67939
68015
  })
67940
68016
  });
67941
- }), QV = /* @__PURE__ */ function(e) {
68017
+ }), nH = /* @__PURE__ */ function(e) {
67942
68018
  return e.Equal = "EQUAL", e.Contain = "CONTAIN", e.Regex = "REGEX", e;
67943
- }({}), $V = /* @__PURE__ */ function(e) {
68019
+ }({}), rH = /* @__PURE__ */ function(e) {
67944
68020
  return e.None = "none", e.Info = "info", e.ReplaceWarning = "replaceWarning", e.NoAccess = "noAccess", e.SubmitError = "submitError", e;
67945
- }({}), eH = (e) => e.isSubmitting ? {
67946
- calloutKind: $V.None,
68021
+ }({}), iH = (e) => e.isSubmitting ? {
68022
+ calloutKind: rH.None,
67947
68023
  isSubmitDisabled: !0,
67948
68024
  isSubmitLoading: !0
67949
68025
  } : e.hasSelectedFolder ? e.hasWriteAccess ? e.hasSubmitError ? {
67950
- calloutKind: $V.SubmitError,
68026
+ calloutKind: rH.SubmitError,
67951
68027
  isSubmitDisabled: !1,
67952
68028
  isSubmitLoading: !1
67953
68029
  } : e.hasExistingPublicationInFolder ? {
67954
- calloutKind: $V.ReplaceWarning,
68030
+ calloutKind: rH.ReplaceWarning,
67955
68031
  isSubmitDisabled: e.allowReplace === !1,
67956
68032
  isSubmitLoading: !1
67957
68033
  } : {
67958
- calloutKind: $V.Info,
68034
+ calloutKind: rH.Info,
67959
68035
  isSubmitDisabled: !1,
67960
68036
  isSubmitLoading: !1
67961
68037
  } : {
67962
- calloutKind: $V.NoAccess,
68038
+ calloutKind: rH.NoAccess,
67963
68039
  isSubmitDisabled: !0,
67964
68040
  isSubmitLoading: !1
67965
68041
  } : {
67966
- calloutKind: $V.None,
68042
+ calloutKind: rH.None,
67967
68043
  isSubmitDisabled: !0,
67968
68044
  isSubmitLoading: !1
67969
- }, tH = (e, t, n) => t.length === 0 ? [...e, {
68045
+ }, aH = (e, t, n) => t.length === 0 ? [...e, {
67970
68046
  path: [n],
67971
68047
  name: n
67972
68048
  }] : e.map((e) => e.path.join("/") === t.join("/") ? {
@@ -67977,17 +68053,17 @@ var yV = {
67977
68053
  }]
67978
68054
  } : {
67979
68055
  ...e,
67980
- children: e.children ? tH(e.children, t, n) : e.children
67981
- }), nH = (e, t, n) => {
68056
+ children: e.children ? aH(e.children, t, n) : e.children
68057
+ }), oH = (e, t, n) => {
67982
68058
  let r = [...t, n].join("/");
67983
68059
  return t.length === 0 ? e.filter((e) => e.path.join("/") !== r) : e.map((e) => e.path.join("/") === t.join("/") ? {
67984
68060
  ...e,
67985
68061
  children: (e.children ?? []).filter((e) => e.path.join("/") !== r)
67986
68062
  } : {
67987
68063
  ...e,
67988
- children: e.children ? nH(e.children, t, n) : e.children
68064
+ children: e.children ? oH(e.children, t, n) : e.children
67989
68065
  });
67990
- }, rH = ({ item: e, history: t, folderItems: n, hasWriteAccess: r = () => !0, onCreateFolder: i, onPublish: a, onPublishSuccess: o, onPublishError: s, onFetchExistingRules: c }) => {
68066
+ }, sH = ({ item: e, history: t, folderItems: n, hasWriteAccess: r = () => !0, onCreateFolder: i, onPublish: a, onPublishSuccess: o, onPublishError: s, onFetchExistingRules: c }) => {
67991
68067
  let [l, u] = j(n);
67992
68068
  et(() => {
67993
68069
  u(n);
@@ -68019,11 +68095,11 @@ var yV = {
68019
68095
  e.version,
68020
68096
  d
68021
68097
  ]), w = k(async (e, t) => {
68022
- u((n) => tH(n, e, t));
68098
+ u((n) => aH(n, e, t));
68023
68099
  try {
68024
68100
  await i?.(e, t);
68025
68101
  } catch {
68026
- u((n) => nH(n, e, t)), g(!0);
68102
+ u((n) => oH(n, e, t)), g(!0);
68027
68103
  }
68028
68104
  }, [i]), T = k(async () => {
68029
68105
  if (!d) return !1;
@@ -68061,63 +68137,63 @@ var yV = {
68061
68137
  isRulesLoading: y,
68062
68138
  hasRulesLoadError: x
68063
68139
  };
68064
- }, iH = (e, t) => {
68140
+ }, cH = (e, t) => {
68065
68141
  let n = t.trim().toLowerCase();
68066
68142
  return n ? e.reduce((e, r) => {
68067
- let i = r.children ? iH(r.children, t) : void 0;
68143
+ let i = r.children ? cH(r.children, t) : void 0;
68068
68144
  return r.name.toLowerCase().includes(n) ? e.push(r) : i?.length && e.push({
68069
68145
  ...r,
68070
68146
  children: i
68071
68147
  }), e;
68072
68148
  }, []) : e;
68073
- }, aH = (e, t) => e.localeCompare(t, void 0, {
68149
+ }, lH = (e, t) => e.localeCompare(t, void 0, {
68074
68150
  sensitivity: "base",
68075
68151
  numeric: !0
68076
- }), oH = (e) => [...e].sort((e, t) => aH(e.name, t.name)).map((e) => e.children ? {
68152
+ }), uH = (e) => [...e].sort((e, t) => lH(e.name, t.name)).map((e) => e.children ? {
68077
68153
  ...e,
68078
- children: oH(e.children)
68079
- } : e), sH = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? sH(e.children) : []]), cH = (e) => e.join("/"), lH = (e) => e.split("/").filter(Boolean), uH = (e) => e.map((e) => {
68080
- let t = cH(e.path);
68154
+ children: uH(e.children)
68155
+ } : e), dH = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? dH(e.children) : []]), fH = (e) => e.join("/"), pH = (e) => e.split("/").filter(Boolean), mH = (e) => e.map((e) => {
68156
+ let t = fH(e.path);
68081
68157
  return {
68082
68158
  path: t,
68083
68159
  name: e.name,
68084
68160
  folderId: t,
68085
68161
  nodeType: x.FOLDER,
68086
- items: e.children ? uH(e.children) : void 0
68162
+ items: e.children ? mH(e.children) : void 0
68087
68163
  };
68088
- }), dH = /[/\\:;,={}&"]/, fH = (e, t, n) => {
68164
+ }), hH = /[/\\:;,={}&"]/, gH = (e, t, n) => {
68089
68165
  let r = e.trim();
68090
- return r ? r.includes("..") || dH.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
68091
- }, pH = (e, t) => {
68166
+ return r ? r.includes("..") || hH.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
68167
+ }, _H = (e, t) => {
68092
68168
  let n = new Set(t.map((e) => e.toLowerCase()));
68093
68169
  if (!n.has(e.toLowerCase())) return e;
68094
68170
  let r = 2;
68095
68171
  for (; n.has(`${e} ${r}`.toLowerCase());) r += 1;
68096
68172
  return `${e} ${r}`;
68097
- }, mH = (e, t) => {
68173
+ }, vH = (e, t) => {
68098
68174
  if (t.length === 0) return e.map((e) => e.name);
68099
- let n = cH(t), r = (e) => {
68175
+ let n = fH(t), r = (e) => {
68100
68176
  for (let t of e) {
68101
- if (cH(t.path) === n) return t;
68177
+ if (fH(t.path) === n) return t;
68102
68178
  let e = t.children ? r(t.children) : void 0;
68103
68179
  if (e) return e;
68104
68180
  }
68105
68181
  };
68106
68182
  return (r(e)?.children ?? []).map((e) => e.name);
68107
- }, hH = {
68183
+ }, yH = {
68108
68184
  dialog: "_dialog_1chty_2",
68109
68185
  error: "_error_1chty_11",
68110
68186
  selectField: "_selectField_1chty_25",
68111
68187
  selectFieldOpen: "_selectFieldOpen_1chty_37"
68112
- }, gH = 20, _H = 200, vH = 8, yH = (e) => {
68188
+ }, bH = 20, xH = 200, SH = 8, CH = (e) => {
68113
68189
  let t = e.trim();
68114
- if (t.length === 0 || t.length > _H) return !1;
68190
+ if (t.length === 0 || t.length > xH) return !1;
68115
68191
  try {
68116
68192
  return new RegExp(t) instanceof RegExp;
68117
68193
  } catch {
68118
68194
  return !1;
68119
68195
  }
68120
- }, bH = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = gH, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
68196
+ }, wH = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = bH, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
68121
68197
  let c = {
68122
68198
  ...os({
68123
68199
  "--pare-mobile-bg": s.colors?.mobileBackground,
@@ -68133,27 +68209,27 @@ var yV = {
68133
68209
  et(() => {
68134
68210
  re.current?.focus();
68135
68211
  }, []);
68136
- let [D, ie] = j(), [ae, oe] = j(), [O, ce] = j([]), [le, ue] = j(""), [de, pe] = j(!1), [me, ge] = j(!1), [_e, ve] = j(!1), ye = F(hH.selectField, de && hH.selectFieldOpen), be = F(hH.selectField, me && hH.selectFieldOpen), xe = A(() => e.map((e) => ({
68212
+ let [D, ie] = j(), [ae, oe] = j(), [O, ce] = j([]), [le, ue] = j(""), [de, pe] = j(!1), [me, ge] = j(!1), [_e, ve] = j(!1), ye = F(yH.selectField, de && yH.selectFieldOpen), be = F(yH.selectField, me && yH.selectFieldOpen), xe = A(() => e.map((e) => ({
68137
68213
  value: e,
68138
68214
  label: e
68139
68215
  })), [e]), Se = A(() => [
68140
68216
  {
68141
- value: QV.Equal,
68217
+ value: nH.Equal,
68142
68218
  label: f
68143
68219
  },
68144
68220
  {
68145
- value: QV.Contain,
68221
+ value: nH.Contain,
68146
68222
  label: p
68147
68223
  },
68148
68224
  {
68149
- value: QV.Regex,
68225
+ value: nH.Regex,
68150
68226
  label: m
68151
68227
  }
68152
68228
  ], [
68153
68229
  f,
68154
68230
  p,
68155
68231
  m
68156
- ]), Ce = ae === QV.Regex, we = yH(le), Te = D != null && ae != null && (Ce ? we : O.length > 0);
68232
+ ]), Ce = ae === nH.Regex, we = CH(le), Te = D != null && ae != null && (Ce ? we : O.length > 0);
68157
68233
  return /* @__PURE__ */ N("div", {
68158
68234
  ref: re,
68159
68235
  role: "dialog",
@@ -68164,7 +68240,7 @@ var yV = {
68164
68240
  e.key === "Escape" && (e.stopPropagation(), n());
68165
68241
  },
68166
68242
  style: c,
68167
- className: F("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", hH.dialog),
68243
+ className: F("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", yH.dialog),
68168
68244
  children: [
68169
68245
  /* @__PURE__ */ M(Oe, {
68170
68246
  id: ee,
@@ -68175,7 +68251,7 @@ var yV = {
68175
68251
  ie(Array.isArray(e) ? e[0] : e), pe(!1);
68176
68252
  },
68177
68253
  placeholder: u,
68178
- searchable: e.length > vH,
68254
+ searchable: e.length > SH,
68179
68255
  searchPlaceholder: u,
68180
68256
  disabled: r,
68181
68257
  open: de,
@@ -68191,7 +68267,7 @@ var yV = {
68191
68267
  value: ae,
68192
68268
  onChange: (e) => {
68193
68269
  let t = Array.isArray(e) ? e[0] : e;
68194
- ae === QV.Regex != (t === QV.Regex) && (ce([]), ue("")), oe(t), ge(!1);
68270
+ ae === nH.Regex != (t === nH.Regex) && (ce([]), ue("")), oe(t), ge(!1);
68195
68271
  },
68196
68272
  placeholder: d,
68197
68273
  disabled: r,
@@ -68213,7 +68289,7 @@ var yV = {
68213
68289
  }), (le.length > 0 || _e) && !we && /* @__PURE__ */ M("span", {
68214
68290
  id: E,
68215
68291
  role: "alert",
68216
- className: F("mt-1 block", o, hH.error),
68292
+ className: F("mt-1 block", o, yH.error),
68217
68293
  children: b
68218
68294
  })] }) : /* @__PURE__ */ M(Fe, {
68219
68295
  id: ne,
@@ -68258,13 +68334,13 @@ var yV = {
68258
68334
  })
68259
68335
  ]
68260
68336
  });
68261
- }, xH = {
68337
+ }, TH = {
68262
68338
  ruleRow: "_ruleRow_nx0en_1",
68263
68339
  heading: "_heading_nx0en_5",
68264
68340
  hint: "_hint_nx0en_9",
68265
68341
  loading: "_loading_nx0en_13",
68266
68342
  ruleText: "_ruleText_nx0en_17"
68267
- }, SH = 20, CH = (e, t) => e === QV.Equal ? t.equal : e === QV.Contain ? t.contain : t.regex, wH = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: i, disabled: a = !1, isLoading: o = !1, hasLoadError: s = !1, maxRules: c = SH, maxTargetsPerRule: l, labels: u = {}, headingClassName: d = "dial-body-semi-text", hintClassName: f = "dial-small-text", loadingClassName: p = "dial-small-text", ruleTextClassName: g = "dial-small-text", ruleSourceClassName: _ = "dial-small-semi-text", styles: v = {} }) => {
68343
+ }, EH = 20, DH = (e, t) => e === nH.Equal ? t.equal : e === nH.Contain ? t.contain : t.regex, OH = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: i, disabled: a = !1, isLoading: o = !1, hasLoadError: s = !1, maxRules: c = EH, maxTargetsPerRule: l, labels: u = {}, headingClassName: d = "dial-body-semi-text", hintClassName: f = "dial-small-text", loadingClassName: p = "dial-small-text", ruleTextClassName: g = "dial-small-text", ruleSourceClassName: _ = "dial-small-semi-text", styles: v = {} }) => {
68268
68344
  let y = {
68269
68345
  ...os({
68270
68346
  "--par-rule-bg": v.colors?.ruleBackground,
@@ -68313,7 +68389,7 @@ var yV = {
68313
68389
  className: "mb-1 flex items-center justify-between gap-2",
68314
68390
  children: [/* @__PURE__ */ M("div", {
68315
68391
  id: fe,
68316
- className: F(d, xH.heading),
68392
+ className: F(d, TH.heading),
68317
68393
  children: b
68318
68394
  }), e.length > 0 && /* @__PURE__ */ M(se, {
68319
68395
  variant: r.Primary,
@@ -68323,7 +68399,7 @@ var yV = {
68323
68399
  })]
68324
68400
  }),
68325
68401
  /* @__PURE__ */ M("p", {
68326
- className: F("mb-2", f, xH.hint),
68402
+ className: F("mb-2", f, TH.hint),
68327
68403
  children: Ae ? x.replace("{folder}", i) : S
68328
68404
  }),
68329
68405
  e.length > 0 && !Ae && /* @__PURE__ */ M("div", {
@@ -68335,7 +68411,7 @@ var yV = {
68335
68411
  })
68336
68412
  }),
68337
68413
  o && /* @__PURE__ */ N("div", {
68338
- className: F("mb-2 flex items-center gap-2", p, xH.loading),
68414
+ className: F("mb-2 flex items-center gap-2", p, TH.loading),
68339
68415
  children: [/* @__PURE__ */ M(Me, {
68340
68416
  size: 16,
68341
68417
  ariaLabel: ie
@@ -68354,16 +68430,16 @@ var yV = {
68354
68430
  children: e.map((e, t) => {
68355
68431
  let n = e.targets.join(` ${ee} `), r = te.replace("{source}", e.source).replace("{targets}", n);
68356
68432
  return /* @__PURE__ */ N("li", {
68357
- className: F("flex items-center justify-between gap-2 rounded-lg px-3 py-2", xH.ruleRow),
68433
+ className: F("flex items-center justify-between gap-2 rounded-lg px-3 py-2", TH.ruleRow),
68358
68434
  children: [/* @__PURE__ */ N("span", {
68359
- className: F("truncate", g, xH.ruleText),
68435
+ className: F("truncate", g, TH.ruleText),
68360
68436
  children: [
68361
68437
  /* @__PURE__ */ M("span", {
68362
68438
  className: _,
68363
68439
  children: e.source
68364
68440
  }),
68365
68441
  " ",
68366
- CH(e.function, De),
68442
+ DH(e.function, De),
68367
68443
  ": ",
68368
68444
  n
68369
68445
  ]
@@ -68380,7 +68456,7 @@ var yV = {
68380
68456
  }, t);
68381
68457
  })
68382
68458
  }),
68383
- pe && /* @__PURE__ */ M(bH, {
68459
+ pe && /* @__PURE__ */ M(wH, {
68384
68460
  sourceOptions: n,
68385
68461
  onSave: we,
68386
68462
  onCancel: Ce,
@@ -68403,27 +68479,27 @@ var yV = {
68403
68479
  })
68404
68480
  }),
68405
68481
  Oe && /* @__PURE__ */ M("p", {
68406
- className: F("mt-2", f, xH.hint),
68482
+ className: F("mt-2", f, TH.hint),
68407
68483
  children: w.replace("{max}", String(c))
68408
68484
  })
68409
68485
  ]
68410
68486
  });
68411
- }, TH = { divider: "_divider_a8iz6_1" }, EH = ({ 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: g = "A folder with this name already exists.", rootLabel: _ = "Organization", expandedPaths: v, onExpandedPathsChange: y, loadingPaths: b, styles: x = {} }) => {
68487
+ }, kH = { divider: "_divider_a8iz6_1" }, AH = ({ 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: g = "A folder with this name already exists.", rootLabel: _ = "Organization", expandedPaths: v, onExpandedPathsChange: y, loadingPaths: b, styles: x = {} }) => {
68412
68488
  let S = {
68413
68489
  ...os({ "--pft-divider": x.colors?.divider }),
68414
68490
  ...x.cssVars
68415
- }, [C, w] = j(() => new Set(t?.map((e, n) => cH(t.slice(0, n + 1))) ?? [])), T = v ?? C, E = (e) => {
68491
+ }, [C, w] = j(() => new Set(t?.map((e, n) => fH(t.slice(0, n + 1))) ?? [])), T = v ?? C, E = (e) => {
68416
68492
  let t = new Set(e);
68417
68493
  t.delete(""), y ? y(t) : w(t);
68418
- }, [ee, te] = j(null), [ne, re] = j(u), D = it(null), ie = i.trim(), ae = ee != null, oe = A(() => iH(e, i), [e, i]), O = ie.length > 0 && oe.length === 0, ce = !ae && ie.length > 0, le = A(() => oH(ce ? oe : e), [
68494
+ }, [ee, te] = j(null), [ne, re] = j(u), D = it(null), ie = i.trim(), ae = ee != null, oe = A(() => cH(e, i), [e, i]), O = ie.length > 0 && oe.length === 0, ce = !ae && ie.length > 0, le = A(() => uH(ce ? oe : e), [
68419
68495
  ce,
68420
68496
  oe,
68421
68497
  e
68422
- ]), ue = A(() => new Set(["", ...sH(le)]), [le]), de = A(() => new Set(["", ...ce ? ue : T]), [
68498
+ ]), ue = A(() => new Set(["", ...dH(le)]), [le]), de = A(() => new Set(["", ...ce ? ue : T]), [
68423
68499
  ce,
68424
68500
  ue,
68425
68501
  T
68426
- ]), fe = A(() => uH(le), [le]), pe = A(() => ce && fe.length === 0 ? [] : [{
68502
+ ]), fe = A(() => mH(le), [le]), pe = A(() => ce && fe.length === 0 ? [] : [{
68427
68503
  path: "",
68428
68504
  name: _,
68429
68505
  folderId: "",
@@ -68433,16 +68509,16 @@ var yV = {
68433
68509
  fe,
68434
68510
  _,
68435
68511
  ce
68436
- ]), me = ee ? cH(ee) : null, he = {
68512
+ ]), me = ee ? fH(ee) : null, he = {
68437
68513
  empty: f,
68438
68514
  invalid: p,
68439
68515
  duplicate: g
68440
- }, ge = (t) => pH(O && fH(ie, [], he) == null ? ie : u, mH(e, t)), _e = (e) => {
68516
+ }, ge = (t) => _H(O && gH(ie, [], he) == null ? ie : u, vH(e, t)), _e = (e) => {
68441
68517
  te(e), re(ge(e)), D.current = null;
68442
- let t = cH(e);
68518
+ let t = fH(e);
68443
68519
  t && E(new Set(T).add(t));
68444
68520
  }, ve = () => _e(t ?? []), ye = (e) => {
68445
- let t = lH(e.path), n = [{
68521
+ let t = pH(e.path), n = [{
68446
68522
  key: "add-child",
68447
68523
  label: l,
68448
68524
  icon: /* @__PURE__ */ M(jt, {
@@ -68464,7 +68540,7 @@ var yV = {
68464
68540
  }), n;
68465
68541
  }, be = (t) => {
68466
68542
  if (!ee) return null;
68467
- let n = fH(t, mH(e, ee), he);
68543
+ let n = gH(t, vH(e, ee), he);
68468
68544
  return D.current = n, n;
68469
68545
  }, xe = (e) => {
68470
68546
  if (!ee) return;
@@ -68480,12 +68556,12 @@ var yV = {
68480
68556
  children: /* @__PURE__ */ M(ia, {
68481
68557
  items: pe,
68482
68558
  showFiles: !1,
68483
- selectedPath: t == null ? void 0 : cH(t),
68559
+ selectedPath: t == null ? void 0 : fH(t),
68484
68560
  expandedPaths: de,
68485
68561
  onExpandedPathsChange: E,
68486
68562
  loadingPaths: b,
68487
68563
  onItemClick: (e) => {
68488
- n(t != null && cH(t) === e.path ? void 0 : lH(e.path));
68564
+ n(t != null && fH(t) === e.path ? void 0 : pH(e.path));
68489
68565
  },
68490
68566
  getContextMenuItems: ye,
68491
68567
  createdFolderPath: me,
@@ -68497,7 +68573,7 @@ var yV = {
68497
68573
  })
68498
68574
  }),
68499
68575
  /* @__PURE__ */ M("div", {
68500
- className: F("my-2 h-px", TH.divider),
68576
+ className: F("my-2 h-px", kH.divider),
68501
68577
  "aria-hidden": !0
68502
68578
  }),
68503
68579
  /* @__PURE__ */ N("div", {
@@ -68519,10 +68595,10 @@ var yV = {
68519
68595
  })
68520
68596
  ]
68521
68597
  });
68522
- }, DH = {
68598
+ }, jH = {
68523
68599
  summaryTitle: "_summaryTitle_tf20a_1",
68524
68600
  sectionHeading: "_sectionHeading_tf20a_5"
68525
- }, OH = ({ 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 = {} }) => {
68601
+ }, MH = ({ 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 = {} }) => {
68526
68602
  let { colors: E, folderTree: ee, accessRules: te } = T, ne = {
68527
68603
  ...os({
68528
68604
  "--pp-summary-title-text": E?.summaryTitleText,
@@ -68537,7 +68613,7 @@ var yV = {
68537
68613
  versionTagText: E?.summaryVersionTagText
68538
68614
  }, { folderLabel: D = "Publish to folder", replaceWarning: ie = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ae = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: oe = "Publishing failed. Please try again.", folderEmptyStateLabel: se, addSiblingFolderLabel: O, addChildFolderLabel: ce, cancelCreatingFolderLabel: le, createFolderEmptyNameError: ue, createFolderInvalidNameError: de, createFolderDuplicateNameError: fe, rootFolderLabel: pe = "Organization", summaryVersionLabel: me, accessRulesLabels: he, searchPlaceholder: ge, clearSearchAriaLabel: _e } = S, [be, xe] = j(""), Se = (e) => {
68539
68615
  xe(e ?? "");
68540
- }, Ce = o != null, we = A(() => eH({
68616
+ }, Ce = o != null, we = A(() => iH({
68541
68617
  hasSelectedFolder: Ce,
68542
68618
  hasExistingPublicationInFolder: f,
68543
68619
  hasWriteAccess: p,
@@ -68552,7 +68628,7 @@ var yV = {
68552
68628
  h,
68553
68629
  g
68554
68630
  ]), Te = Ce ? o[o.length - 1] ?? pe : "", De = t ? t() : /* @__PURE__ */ M("span", {
68555
- className: F("truncate", C, DH.summaryTitle),
68631
+ className: F("truncate", C, jH.summaryTitle),
68556
68632
  children: e?.title
68557
68633
  });
68558
68634
  return /* @__PURE__ */ N("div", {
@@ -68572,7 +68648,7 @@ var yV = {
68572
68648
  colors: re
68573
68649
  }), /* @__PURE__ */ N("div", { children: [
68574
68650
  /* @__PURE__ */ M("div", {
68575
- className: F("mb-2", w, DH.sectionHeading),
68651
+ className: F("mb-2", w, jH.sectionHeading),
68576
68652
  children: D
68577
68653
  }),
68578
68654
  /* @__PURE__ */ M("div", {
@@ -68586,7 +68662,7 @@ var yV = {
68586
68662
  "aria-label": ge
68587
68663
  })
68588
68664
  }),
68589
- /* @__PURE__ */ M(EH, {
68665
+ /* @__PURE__ */ M(AH, {
68590
68666
  items: a,
68591
68667
  selectedPath: o,
68592
68668
  onSelectedPathChange: s,
@@ -68606,12 +68682,12 @@ var yV = {
68606
68682
  rootLabel: pe,
68607
68683
  styles: ee
68608
68684
  }),
68609
- we.calloutKind !== $V.None && we.calloutKind !== $V.Info && /* @__PURE__ */ M("div", {
68685
+ we.calloutKind !== rH.None && we.calloutKind !== rH.Info && /* @__PURE__ */ M("div", {
68610
68686
  className: "mt-3",
68611
68687
  children: /* @__PURE__ */ M(ve, {
68612
68688
  type: ye.SectionMessage,
68613
- variant: kH(we.calloutKind),
68614
- message: jH(we.calloutKind, {
68689
+ variant: NH(we.calloutKind),
68690
+ message: FH(we.calloutKind, {
68615
68691
  replaceWarning: ie,
68616
68692
  noAccessError: ae,
68617
68693
  submitError: oe,
@@ -68622,7 +68698,7 @@ var yV = {
68622
68698
  }),
68623
68699
  /* @__PURE__ */ M("div", {
68624
68700
  className: "mt-4",
68625
- children: /* @__PURE__ */ M(wH, {
68701
+ children: /* @__PURE__ */ M(OH, {
68626
68702
  rules: _,
68627
68703
  onRulesChange: v,
68628
68704
  sourceOptions: y,
@@ -68636,7 +68712,7 @@ var yV = {
68636
68712
  })
68637
68713
  ] })]
68638
68714
  });
68639
- }, kH = (e) => e === $V.ReplaceWarning ? be.Warning : be.Error, AH = (e, t) => {
68715
+ }, NH = (e) => e === rH.ReplaceWarning ? be.Warning : be.Error, PH = (e, t) => {
68640
68716
  let [n, r, ...i] = e.split("{folder}");
68641
68717
  return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ N(at, { children: [
68642
68718
  n,
@@ -68646,11 +68722,11 @@ var yV = {
68646
68722
  }),
68647
68723
  r
68648
68724
  ] });
68649
- }, jH = (e, t) => e === $V.ReplaceWarning ? AH(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === $V.NoAccess ? AH(t.noAccessError, t.folderName) : t.submitError, MH = { footer: "_footer_dks1v_1" }, NH = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
68725
+ }, FH = (e, t) => e === rH.ReplaceWarning ? PH(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === rH.NoAccess ? PH(t.noAccessError, t.folderName) : t.submitError, IH = { footer: "_footer_dks1v_1" }, LH = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
68650
68726
  let c = os({ "--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;
68651
68727
  return /* @__PURE__ */ N("div", {
68652
68728
  style: c,
68653
- className: F("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", MH.footer),
68729
+ className: F("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", IH.footer),
68654
68730
  children: [/* @__PURE__ */ M(se, {
68655
68731
  label: l,
68656
68732
  disabled: r,
@@ -68676,20 +68752,20 @@ var yV = {
68676
68752
  ].join(",");
68677
68753
  //#endregion
68678
68754
  //#region src/utils/catalog-content-tree.ts
68679
- var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items), 0), FH = (e) => {
68755
+ var RH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + RH(t.items), 0), zH = (e) => {
68680
68756
  let t = /* @__PURE__ */ new Set(), n = (e) => {
68681
68757
  for (let r of e) r.type === Dn.Folder && (t.add(r.id), n(r.items));
68682
68758
  };
68683
68759
  return n(e), t;
68684
- }, IH = (e, t) => {
68760
+ }, BH = (e, t) => {
68685
68761
  if (t != null) for (let n of e) {
68686
68762
  if (n.id === t) return n.name;
68687
68763
  if (n.type === Dn.Folder) {
68688
- let e = IH(n.items, t);
68764
+ let e = BH(n.items, t);
68689
68765
  if (e != null) return e;
68690
68766
  }
68691
68767
  }
68692
- }, LH = {
68768
+ }, VH = {
68693
68769
  sectionHeading: "_sectionHeading_jnq93_1",
68694
68770
  rowAlt: "_rowAlt_jnq93_5",
68695
68771
  label: "_label_jnq93_9",
@@ -68697,19 +68773,19 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68697
68773
  valueTrue: "_valueTrue_jnq93_17",
68698
68774
  valueFalse: "_valueFalse_jnq93_21",
68699
68775
  valueText: "_valueText_jnq93_25"
68700
- }, RH = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ N(at, { children: [/* @__PURE__ */ M(gt, {
68776
+ }, HH = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ N(at, { children: [/* @__PURE__ */ M(gt, {
68701
68777
  size: m.MD,
68702
- className: F(r, LH.checkIcon)
68778
+ className: F(r, VH.checkIcon)
68703
68779
  }), /* @__PURE__ */ M("span", {
68704
- className: F(n, LH.valueTrue),
68780
+ className: F(n, VH.valueTrue),
68705
68781
  children: i
68706
68782
  })] }) : e === !1 ? /* @__PURE__ */ M("span", {
68707
- className: F(t, LH.valueFalse),
68783
+ className: F(t, VH.valueFalse),
68708
68784
  children: a
68709
68785
  }) : /* @__PURE__ */ M("span", {
68710
- className: F("min-w-0 break-words", t, LH.valueText),
68786
+ className: F("min-w-0 break-words", t, VH.valueText),
68711
68787
  children: e
68712
- }), zH = ({ 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__ */ M("div", {
68788
+ }), UH = ({ 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__ */ M("div", {
68713
68789
  className: "flex flex-col",
68714
68790
  style: os({
68715
68791
  "--tv-section-heading": l?.sectionHeading,
@@ -68721,18 +68797,18 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68721
68797
  "--tv-value-text": l?.valueText
68722
68798
  }),
68723
68799
  children: t != null && t.length > 0 && /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ M("p", {
68724
- className: F("mb-3 mt-0", o, LH.sectionHeading),
68800
+ className: F("mb-3 mt-0", o, VH.sectionHeading),
68725
68801
  children: e
68726
68802
  }), /* @__PURE__ */ M("ul", {
68727
68803
  className: "m-0 list-none p-0",
68728
68804
  children: t.map((e, t) => /* @__PURE__ */ N("li", {
68729
- className: F("flex items-center rounded px-3 py-2", t % 2 == 0 ? LH.rowAlt : void 0),
68805
+ className: F("flex items-center rounded px-3 py-2", t % 2 == 0 ? VH.rowAlt : void 0),
68730
68806
  children: [/* @__PURE__ */ M("span", {
68731
- className: F(n, LH.label, "w-2/5 shrink-0"),
68807
+ className: F(n, VH.label, "w-2/5 shrink-0"),
68732
68808
  children: e.label
68733
68809
  }), /* @__PURE__ */ M("div", {
68734
68810
  className: "flex w-3/5 min-w-0 items-center gap-1",
68735
- children: /* @__PURE__ */ M(RH, {
68811
+ children: /* @__PURE__ */ M(HH, {
68736
68812
  value: e.value,
68737
68813
  valueClassName: r,
68738
68814
  valueTrueClassName: i,
@@ -68743,30 +68819,30 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68743
68819
  })]
68744
68820
  }, e.label))
68745
68821
  })] })
68746
- }), BH = { sectionHeading: "_sectionHeading_148lj_1" }, VH = {
68822
+ }), WH = { sectionHeading: "_sectionHeading_148lj_1" }, GH = {
68747
68823
  [pn.Python]: "Python",
68748
68824
  [pn.Curl]: "cURL",
68749
68825
  [pn.JavaScript]: "JavaScript"
68750
- }, HH = {
68826
+ }, KH = {
68751
68827
  [pn.Python]: "python",
68752
68828
  [pn.Curl]: "bash",
68753
68829
  [pn.JavaScript]: "javascript"
68754
- }, UH = ({ 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" }) => {
68830
+ }, qH = ({ 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" }) => {
68755
68831
  let [s, c] = j(e[0]?.language ?? pn.Python);
68756
68832
  et(() => {
68757
68833
  c(e[0]?.language ?? pn.Python);
68758
68834
  }, [e]);
68759
68835
  let l = A(() => e.map((e) => ({
68760
68836
  key: e.language,
68761
- label: VH[e.language] ?? e.language,
68837
+ label: GH[e.language] ?? e.language,
68762
68838
  onClick: () => c(e.language)
68763
68839
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
68764
68840
  return /* @__PURE__ */ N("section", { children: [t != null && /* @__PURE__ */ M("p", {
68765
- className: F("mb-3 mt-0", o, BH.sectionHeading),
68841
+ className: F("mb-3 mt-0", o, WH.sectionHeading),
68766
68842
  children: t
68767
68843
  }), /* @__PURE__ */ M(BB, {
68768
- language: HH[s] ?? s,
68769
- title: VH[s] ?? s,
68844
+ language: KH[s] ?? s,
68845
+ title: GH[s] ?? s,
68770
68846
  value: u,
68771
68847
  copyLabel: n,
68772
68848
  copiedLabel: r,
@@ -68781,7 +68857,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68781
68857
  selectedKey: s
68782
68858
  }) : void 0
68783
68859
  })] });
68784
- }, WH = ({ 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" }) => {
68860
+ }, JH = ({ 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" }) => {
68785
68861
  let [h, g] = j(0), _ = A(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = A(() => _.map((e, t) => ({
68786
68862
  key: e.url,
68787
68863
  label: e.label,
@@ -68795,7 +68871,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68795
68871
  return /* @__PURE__ */ N("div", {
68796
68872
  className: "flex flex-col gap-6",
68797
68873
  children: [
68798
- C && /* @__PURE__ */ M(zH, {
68874
+ C && /* @__PURE__ */ M(UH, {
68799
68875
  sectionLabel: t,
68800
68876
  values: x,
68801
68877
  labelClassName: u,
@@ -68813,7 +68889,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68813
68889
  }),
68814
68890
  v && /* @__PURE__ */ N("section", { children: [
68815
68891
  /* @__PURE__ */ M("p", {
68816
- className: F("mb-3 mt-0", m, BH.sectionHeading),
68892
+ className: F("mb-3 mt-0", m, WH.sectionHeading),
68817
68893
  children: n
68818
68894
  }),
68819
68895
  y != null && /* @__PURE__ */ M(BB, {
@@ -68834,7 +68910,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68834
68910
  }, h),
68835
68911
  y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ M("div", {
68836
68912
  className: "mt-4",
68837
- children: /* @__PURE__ */ M(UH, {
68913
+ children: /* @__PURE__ */ M(qH, {
68838
68914
  snippets: y.snippets,
68839
68915
  copyAriaLabel: c,
68840
68916
  copiedStatusLabel: l,
@@ -68844,7 +68920,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68844
68920
  }, h)
68845
68921
  })
68846
68922
  ] }),
68847
- !v && T && /* @__PURE__ */ M(UH, {
68923
+ !v && T && /* @__PURE__ */ M(qH, {
68848
68924
  snippets: e.snippets ?? [],
68849
68925
  sectionLabel: r,
68850
68926
  copyAriaLabel: c,
@@ -68854,7 +68930,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68854
68930
  sectionClassName: m
68855
68931
  }),
68856
68932
  E && /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ M("p", {
68857
- className: F("mb-3 mt-0", m, BH.sectionHeading),
68933
+ className: F("mb-3 mt-0", m, WH.sectionHeading),
68858
68934
  children: o
68859
68935
  }), /* @__PURE__ */ M(BB, {
68860
68936
  language: "bash",
@@ -68865,7 +68941,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68865
68941
  hideDownload: !0
68866
68942
  })] }),
68867
68943
  ee && /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ M("p", {
68868
- className: F("mb-3 mt-0", m, BH.sectionHeading),
68944
+ className: F("mb-3 mt-0", m, WH.sectionHeading),
68869
68945
  children: s
68870
68946
  }), /* @__PURE__ */ M(BB, {
68871
68947
  language: "json",
@@ -68877,11 +68953,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68877
68953
  })] })
68878
68954
  ]
68879
68955
  });
68880
- }, GH = {
68956
+ }, YH = {
68881
68957
  message: "_message_13mok_1",
68882
68958
  consequences: "_consequences_13mok_5",
68883
68959
  footer: "_footer_13mok_9"
68884
- }, KH = ({ confirmLabel: e, cancelLabel: t, variant: n = _n.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
68960
+ }, XH = ({ confirmLabel: e, cancelLabel: t, variant: n = _n.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
68885
68961
  let c = n === _n.Danger, l = (() => {
68886
68962
  if (r) return /* @__PURE__ */ M(Me, { size: m.SM });
68887
68963
  if (c) return /* @__PURE__ */ M(Kt, {
@@ -68891,7 +68967,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68891
68967
  });
68892
68968
  })(), u = c ? g : he;
68893
68969
  return /* @__PURE__ */ N("div", {
68894
- className: F("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", GH.footer),
68970
+ className: F("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", YH.footer),
68895
68971
  children: [
68896
68972
  /* @__PURE__ */ M(se, {
68897
68973
  label: t,
@@ -68912,78 +68988,78 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68912
68988
  })
68913
68989
  ]
68914
68990
  });
68915
- }, qH = {
68991
+ }, ZH = {
68916
68992
  info: "_info_lklha_1",
68917
68993
  danger: "_danger_lklha_5"
68918
- }, JH = ({ item: e, variant: t = _n.Info, iconSize: n = 40 }) => /* @__PURE__ */ M(jy, {
68994
+ }, QH = ({ item: e, variant: t = _n.Info, iconSize: n = 40 }) => /* @__PURE__ */ M(jy, {
68919
68995
  item: e,
68920
68996
  iconSize: n,
68921
68997
  hasVersionTag: !1,
68922
- className: t === _n.Danger ? qH.danger : qH.info
68923
- }), YH = ({ item: e, message: t, consequences: n, variant: r = _n.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ N("div", {
68998
+ className: t === _n.Danger ? ZH.danger : ZH.info
68999
+ }), $H = ({ item: e, message: t, consequences: n, variant: r = _n.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ N("div", {
68924
69000
  className: "flex flex-col gap-4 px-6 py-4",
68925
69001
  children: [
68926
- /* @__PURE__ */ M(JH, {
69002
+ /* @__PURE__ */ M(QH, {
68927
69003
  item: e,
68928
69004
  variant: r
68929
69005
  }),
68930
69006
  /* @__PURE__ */ M("p", {
68931
- className: F(i, "break-words", GH.message),
69007
+ className: F(i, "break-words", YH.message),
68932
69008
  children: t
68933
69009
  }),
68934
69010
  n != null && n.length > 0 && /* @__PURE__ */ M("ul", {
68935
- className: F("flex list-disc flex-col gap-2 ps-5", i, GH.consequences),
69011
+ className: F("flex list-disc flex-col gap-2 ps-5", i, YH.consequences),
68936
69012
  children: n.map((e) => /* @__PURE__ */ M("li", { children: e }, e))
68937
69013
  }),
68938
69014
  a
68939
69015
  ]
68940
- }), XH = {
69016
+ }), eU = {
68941
69017
  sunkenBox: "_sunkenBox_1lqi3_1",
68942
69018
  raisedBox: "_raisedBox_1lqi3_5",
68943
69019
  activeIcon: "_activeIcon_1lqi3_9"
68944
- }, ZH = /* @__PURE__ */ function(e) {
69020
+ }, tU = /* @__PURE__ */ function(e) {
68945
69021
  return e.Sunken = "sunken", e.Raised = "raised", e;
68946
- }({}), QH = {
68947
- sunken: XH.sunkenBox,
68948
- raised: XH.raisedBox
68949
- }, $H = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ N("span", {
69022
+ }({}), nU = {
69023
+ sunken: eU.sunkenBox,
69024
+ raised: eU.raisedBox
69025
+ }, rU = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ N("span", {
68950
69026
  className: "relative inline-flex shrink-0",
68951
69027
  children: [
68952
69028
  /* @__PURE__ */ M("span", {
68953
- className: F("flex size-8 items-center justify-center rounded-lg", QH[n]),
69029
+ className: F("flex size-8 items-center justify-center rounded-lg", nU[n]),
68954
69030
  children: e
68955
69031
  }),
68956
69032
  t && /* @__PURE__ */ M(gt, {
68957
69033
  size: m.MD,
68958
69034
  "aria-hidden": !0,
68959
- className: F("absolute -end-2 -top-2", XH.activeIcon)
69035
+ className: F("absolute -end-2 -top-2", eU.activeIcon)
68960
69036
  }),
68961
69037
  r != null && /* @__PURE__ */ M("span", {
68962
69038
  className: "sr-only",
68963
69039
  children: r
68964
69040
  })
68965
69041
  ]
68966
- }), eU = {
69042
+ }), iU = {
68967
69043
  card: "_card_tqnz7_1",
68968
69044
  icon: "_icon_tqnz7_6",
68969
69045
  title: "_title_tqnz7_10",
68970
69046
  description: "_description_tqnz7_14"
68971
- }, tU = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ N("div", {
69047
+ }, aU = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ N("div", {
68972
69048
  role: "status",
68973
69049
  "aria-live": "polite",
68974
- className: F("flex items-center gap-3 rounded-xl p-3", eU.card),
69050
+ className: F("flex items-center gap-3 rounded-xl p-3", iU.card),
68975
69051
  children: [/* @__PURE__ */ M("span", {
68976
- className: F("shrink-0", eU.icon, n != null && "mt-0.5"),
69052
+ className: F("shrink-0", iU.icon, n != null && "mt-0.5"),
68977
69053
  children: e
68978
69054
  }), /* @__PURE__ */ N("div", {
68979
69055
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
68980
69056
  children: [/* @__PURE__ */ N("div", {
68981
69057
  className: "flex min-w-0 flex-col gap-1",
68982
69058
  children: [/* @__PURE__ */ M("span", {
68983
- className: F(i, eU.title),
69059
+ className: F(i, iU.title),
68984
69060
  children: t
68985
69061
  }), n != null && /* @__PURE__ */ M("span", {
68986
- className: F(a, eU.description),
69062
+ className: F(a, iU.description),
68987
69063
  children: n
68988
69064
  })]
68989
69065
  }), r != null && /* @__PURE__ */ M("div", {
@@ -68991,53 +69067,53 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
68991
69067
  children: r
68992
69068
  })]
68993
69069
  })]
68994
- }), nU = (e) => e === yn.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", rU = (e) => e === yn.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", iU = (e) => e === yn.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", aU = (e) => e === yn.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", oU = 20, sU = ({ state: e, authenticationType: t, texts: n }) => {
69070
+ }), oU = (e) => e === yn.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", sU = (e) => e === yn.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", cU = (e) => e === yn.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", lU = (e) => e === yn.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", uU = 20, dU = ({ state: e, authenticationType: t, texts: n }) => {
68995
69071
  let r = /* @__PURE__ */ M(ut, {
68996
- size: oU,
69072
+ size: uU,
68997
69073
  "aria-hidden": !0,
68998
69074
  stroke: h
68999
69075
  });
69000
69076
  if (e === wn.PersonalCredentialsActive) {
69001
- let e = (n?.personalCredentialsActiveBannerTitle ?? aU)(t);
69002
- return /* @__PURE__ */ M(tU, {
69003
- icon: /* @__PURE__ */ M($H, {
69077
+ let e = (n?.personalCredentialsActiveBannerTitle ?? lU)(t);
69078
+ return /* @__PURE__ */ M(aU, {
69079
+ icon: /* @__PURE__ */ M(rU, {
69004
69080
  icon: /* @__PURE__ */ M(qt, {
69005
69081
  size: m.SM,
69006
69082
  "aria-hidden": !0,
69007
69083
  stroke: h
69008
69084
  }),
69009
69085
  isActive: !0,
69010
- surface: ZH.Raised
69086
+ surface: tU.Raised
69011
69087
  }),
69012
69088
  title: e
69013
69089
  });
69014
69090
  }
69015
69091
  if (e === wn.OrgCredentialsActive) {
69016
- let e = (n?.orgCredentialsActiveBannerTitle ?? iU)(t);
69017
- return /* @__PURE__ */ M(tU, {
69018
- icon: /* @__PURE__ */ M($H, {
69092
+ let e = (n?.orgCredentialsActiveBannerTitle ?? cU)(t);
69093
+ return /* @__PURE__ */ M(aU, {
69094
+ icon: /* @__PURE__ */ M(rU, {
69019
69095
  icon: /* @__PURE__ */ M(ut, {
69020
69096
  size: m.SM,
69021
69097
  "aria-hidden": !0,
69022
69098
  stroke: h
69023
69099
  }),
69024
69100
  isActive: !0,
69025
- surface: ZH.Raised
69101
+ surface: tU.Raised
69026
69102
  }),
69027
69103
  title: e
69028
69104
  });
69029
69105
  }
69030
- return /* @__PURE__ */ M(tU, {
69106
+ return /* @__PURE__ */ M(aU, {
69031
69107
  icon: r,
69032
- title: (n?.orgFallbackBannerTitle ?? nU)(t),
69033
- description: (n?.orgFallbackBannerDescription ?? rU)(t)
69108
+ title: (n?.orgFallbackBannerTitle ?? oU)(t),
69109
+ description: (n?.orgFallbackBannerDescription ?? sU)(t)
69034
69110
  });
69035
- }, cU = {
69111
+ }, fU = {
69036
69112
  surface: "_surface_1q3s8_1",
69037
69113
  description: "_description_1q3s8_5",
69038
69114
  rowDescription: "_rowDescription_1q3s8_9",
69039
69115
  errorText: "_errorText_1q3s8_13"
69040
- }, lU = ({ item: e, level: n, label: r, description: i, icon: a, status: o, isActive: s, authenticationType: c, apiKeyAddedWhen: l, onLogin: u, onRequestLogout: d, onRequestDeleteApiKey: f, texts: p, labelClassName: _, descriptionClassName: v, errorClassName: y, keyCardTitleClassName: b, keyCardDescriptionClassName: x, deleteActionClassName: S }) => {
69116
+ }, pU = ({ item: e, level: n, label: r, description: i, icon: a, status: o, isActive: s, authenticationType: c, apiKeyAddedWhen: l, onLogin: u, onRequestLogout: d, onRequestDeleteApiKey: f, texts: p, labelClassName: _, descriptionClassName: v, errorClassName: y, keyCardTitleClassName: b, keyCardDescriptionClassName: x, deleteActionClassName: S }) => {
69041
69117
  let [C, w] = j(""), [T, E] = j(!1), [ee, te] = j(!1), ne = o === bn.SignedIn, re = k(() => {
69042
69118
  u?.(e, { level: n });
69043
69119
  }, [
@@ -69072,7 +69148,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69072
69148
  }, [n, f]), se = p?.loginActionLabel ?? "Log in", O = p?.logoutActionLabel ?? "Log out", ce = p?.addApiKeyActionLabel ?? "Add", le = p?.deleteActionLabel ?? "Delete", ue = p?.credentialsSignedInLabel ?? "Signed in", de = p?.credentialsSignedOutLabel ?? "Signed out", me = p?.addingApiKeyStatusLabel ?? "Adding", ge = p?.apiKeyConfiguredMessage ?? "Key has been configured", _e = l == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(l);
69073
69149
  return /* @__PURE__ */ N("div", {
69074
69150
  className: "flex items-start gap-3 rounded-xl p-3",
69075
- children: [/* @__PURE__ */ M($H, {
69151
+ children: [/* @__PURE__ */ M(rU, {
69076
69152
  icon: a,
69077
69153
  isActive: s,
69078
69154
  statusLabel: s ? ue : de
@@ -69087,7 +69163,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69087
69163
  className: _,
69088
69164
  children: r
69089
69165
  }), /* @__PURE__ */ M("span", {
69090
- className: F(v, cU.rowDescription),
69166
+ className: F(v, fU.rowDescription),
69091
69167
  children: i
69092
69168
  })]
69093
69169
  }), c === yn.OAuth && (ne ? /* @__PURE__ */ M(g, {
@@ -69127,13 +69203,13 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69127
69203
  disabled: ee
69128
69204
  })]
69129
69205
  }), T && /* @__PURE__ */ M("span", {
69130
- className: F(y, cU.errorText),
69206
+ className: F(y, fU.errorText),
69131
69207
  children: p?.apiKeyRequiredErrorMessage ?? "API key is required."
69132
69208
  })]
69133
69209
  }),
69134
69210
  c === yn.ApiKey && ne && /* @__PURE__ */ M("div", {
69135
69211
  className: "animate-fadeIn pt-1",
69136
- children: /* @__PURE__ */ M(tU, {
69212
+ children: /* @__PURE__ */ M(aU, {
69137
69213
  icon: /* @__PURE__ */ M(Nt, {
69138
69214
  size: m.SM,
69139
69215
  "aria-hidden": !0,
@@ -69153,16 +69229,16 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69153
69229
  ]
69154
69230
  })]
69155
69231
  });
69156
- }, uU = (e) => e === yn.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.", dU = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
69232
+ }, mU = (e) => e === yn.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.", hU = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
69157
69233
  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;
69158
69234
  if (p == null) return null;
69159
- let g = (i?.credentialsManagementDescription ?? uU)(p.authenticationType), _ = p.userStatus === bn.SignedIn, v = !_ && p.globalStatus === bn.SignedIn;
69235
+ let g = (i?.credentialsManagementDescription ?? mU)(p.authenticationType), _ = p.userStatus === bn.SignedIn, v = !_ && p.globalStatus === bn.SignedIn;
69160
69236
  return /* @__PURE__ */ N("div", {
69161
69237
  className: "flex flex-col",
69162
69238
  children: [/* @__PURE__ */ M("div", {
69163
69239
  className: "px-6 py-4",
69164
69240
  children: /* @__PURE__ */ M("div", {
69165
- className: F("rounded-xl p-3", cU.surface),
69241
+ className: F("rounded-xl p-3", fU.surface),
69166
69242
  children: /* @__PURE__ */ M(ky, {
69167
69243
  item: e,
69168
69244
  iconSize: 40,
@@ -69172,11 +69248,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69172
69248
  }), /* @__PURE__ */ N("div", {
69173
69249
  className: "flex flex-col gap-5 px-6 py-4",
69174
69250
  children: [/* @__PURE__ */ M("span", {
69175
- className: F(s, cU.description),
69251
+ className: F(s, fU.description),
69176
69252
  children: g
69177
69253
  }), /* @__PURE__ */ N("div", {
69178
69254
  className: "flex flex-col",
69179
- children: [/* @__PURE__ */ M(lU, {
69255
+ children: [/* @__PURE__ */ M(pU, {
69180
69256
  item: e,
69181
69257
  level: xn.User,
69182
69258
  label: i?.personalCredentialsLabel ?? "Personal credentials",
@@ -69200,7 +69276,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69200
69276
  keyCardTitleClassName: d,
69201
69277
  keyCardDescriptionClassName: f,
69202
69278
  deleteActionClassName: o
69203
- }), /* @__PURE__ */ M(lU, {
69279
+ }), /* @__PURE__ */ M(pU, {
69204
69280
  item: e,
69205
69281
  level: xn.Global,
69206
69282
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
@@ -69228,16 +69304,16 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69228
69304
  })]
69229
69305
  })]
69230
69306
  });
69231
- }, fU = {
69307
+ }, gU = {
69232
69308
  skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
69233
69309
  backdrop: "_backdrop_16ka5_2",
69234
69310
  panel: "_panel_16ka5_6",
69235
69311
  divider: "_divider_16ka5_11",
69236
69312
  content: "_content_16ka5_15",
69237
69313
  publishTitle: "_publishTitle_16ka5_20"
69238
- }, pU = /* @__PURE__ */ function(e) {
69314
+ }, _U = /* @__PURE__ */ function(e) {
69239
69315
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
69240
- }({}), mU = { divider: "_divider_nhloi_1" }, hU = 16, gU = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: s, deleteActionClassName: c = "text-error" }) => {
69316
+ }({}), vU = { divider: "_divider_nhloi_1" }, yU = 16, bU = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: s, deleteActionClassName: c = "text-error" }) => {
69241
69317
  let [l, u] = j(""), [d, f] = j(!1), [p, m] = j(!1), [g, _] = j(!1), v = n === bn.SignedIn, y = k((e) => {
69242
69318
  u(e ?? ""), f(!1);
69243
69319
  }, []), b = k(async () => {
@@ -69283,7 +69359,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69283
69359
  children: S
69284
69360
  })
69285
69361
  }),
69286
- /* @__PURE__ */ M("div", { className: F("mx-4 h-px", mU.divider) }),
69362
+ /* @__PURE__ */ M("div", { className: F("mx-4 h-px", vU.divider) }),
69287
69363
  !v && /* @__PURE__ */ N("div", {
69288
69364
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
69289
69365
  children: [/* @__PURE__ */ N("div", {
@@ -69302,7 +69378,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69302
69378
  label: p ? void 0 : C,
69303
69379
  "aria-label": p ? T : void 0,
69304
69380
  iconBefore: p ? /* @__PURE__ */ M(Me, {
69305
- size: hU,
69381
+ size: yU,
69306
69382
  ariaLabel: T
69307
69383
  }) : void 0,
69308
69384
  onClick: b,
@@ -69315,7 +69391,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69315
69391
  }),
69316
69392
  v && /* @__PURE__ */ M("div", {
69317
69393
  className: "animate-fadeIn px-4 py-3.5",
69318
- children: /* @__PURE__ */ M(tU, {
69394
+ children: /* @__PURE__ */ M(aU, {
69319
69395
  icon: /* @__PURE__ */ M(Nt, {
69320
69396
  size: 20,
69321
69397
  "aria-hidden": !0,
@@ -69327,7 +69403,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69327
69403
  label: g ? void 0 : w,
69328
69404
  "aria-label": g ? E : void 0,
69329
69405
  iconBefore: g ? /* @__PURE__ */ M(Me, {
69330
- size: hU,
69406
+ size: yU,
69331
69407
  ariaLabel: E
69332
69408
  }) : void 0,
69333
69409
  className: c,
@@ -69338,7 +69414,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69338
69414
  })
69339
69415
  ]
69340
69416
  });
69341
- }, _U = { name: "_name_gfs1p_1" }, vU = (e) => e.isMyApp === !0, yU = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
69417
+ }, xU = { name: "_name_gfs1p_1" }, SU = (e) => e.isMyApp === !0, CU = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
69342
69418
  let [a, o] = j(!1), s = k(() => {
69343
69419
  if (n) {
69344
69420
  o((e) => !e);
@@ -69350,7 +69426,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69350
69426
  t,
69351
69427
  n
69352
69428
  ]);
69353
- if (!vU(e) || r && !r(e)) return null;
69429
+ if (!SU(e) || r && !r(e)) return null;
69354
69430
  let c = /* @__PURE__ */ M(he, {
69355
69431
  label: i,
69356
69432
  iconBefore: /* @__PURE__ */ M(Ht, {
@@ -69375,14 +69451,14 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69375
69451
  renderOverlay: () => n(e, () => o(!1)),
69376
69452
  children: c
69377
69453
  }) : c;
69378
- }, bU = (e) => e === yn.ApiKey ? "Manage API keys" : "Manage credentials", xU = {
69454
+ }, wU = (e) => e === yn.ApiKey ? "Manage API keys" : "Manage credentials", TU = {
69379
69455
  [hn.LimitReached]: "bg-error text-error",
69380
69456
  [hn.RunningLow]: "bg-warning text-warning"
69381
- }, SU = ({ status: e, label: t }) => /* @__PURE__ */ M("div", {
69382
- className: F("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", xU[e]),
69457
+ }, EU = ({ status: e, label: t }) => /* @__PURE__ */ M("div", {
69458
+ className: F("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", TU[e]),
69383
69459
  children: t
69384
- }), CU = ({ 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: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: y, onLogout: b, onOpenCredentialsManagement: x, onRequestLogout: S, texts: C, detailsStyles: w, isPublishVisible: T, isPublishPrimary: E, onOpenPublish: te, isUnpublishVisible: ne, hasPublishedFolders: re = !1, onRequestPublishHistory: D, onOpenUnpublish: ie, isReadonly: oe = !1 }) => {
69385
- let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: O = "dial-tiny-text", folderLeafClassName: ce = "dial-tiny-semi-text" } = w?.typography ?? {}, le = e.details?.limits?.status, ue = le == null ? void 0 : /* @__PURE__ */ M(SU, {
69460
+ }), DU = ({ 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: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: y, onLogout: b, onOpenCredentialsManagement: x, onRequestLogout: S, texts: C, detailsStyles: w, isPublishVisible: T, isPublishPrimary: E, onOpenPublish: te, isUnpublishVisible: ne, hasPublishedFolders: re = !1, onRequestPublishHistory: D, onOpenUnpublish: ie, isReadonly: oe = !1 }) => {
69461
+ let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: O = "dial-tiny-text", folderLeafClassName: ce = "dial-tiny-semi-text" } = w?.typography ?? {}, le = e.details?.limits?.status, ue = le == null ? void 0 : /* @__PURE__ */ M(EU, {
69386
69462
  status: le,
69387
69463
  label: le === hn.LimitReached ? C?.limitReachedLabel ?? "Limit reached" : C?.limitRunningLowLabel ?? "Running low"
69388
69464
  }), de = k(() => {
@@ -69433,21 +69509,21 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69433
69509
  d?.(e);
69434
69510
  }, [e, d]), Oe = k(() => {
69435
69511
  g?.(e);
69436
- }, [e, g]), [ke, Ae] = j(pU.Idle), [je, Ne] = j(void 0), Pe = it(null);
69512
+ }, [e, g]), [ke, Ae] = j(_U.Idle), [je, Ne] = j(void 0), Pe = it(null);
69437
69513
  et(() => {
69438
- Pe.current = null, Ae(pU.Idle), Ne(void 0);
69514
+ Pe.current = null, Ae(_U.Idle), Ne(void 0);
69439
69515
  }, [e.id]);
69440
69516
  let Fe = k(() => {
69441
69517
  if (!_ || Pe.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
69442
69518
  let t = e.id;
69443
- Pe.current = t, Ae(pU.Loading), (async () => {
69519
+ Pe.current = t, Ae(_U.Loading), (async () => {
69444
69520
  try {
69445
69521
  let n = await _(e);
69446
69522
  if (Pe.current !== t) return;
69447
- Ne(n), Ae(n == null ? pU.Unknown : pU.Resolved);
69523
+ Ne(n), Ae(n == null ? _U.Unknown : _U.Resolved);
69448
69524
  } catch {
69449
69525
  if (Pe.current !== t) return;
69450
- Ne(void 0), Ae(pU.Unknown);
69526
+ Ne(void 0), Ae(_U.Unknown);
69451
69527
  }
69452
69528
  })();
69453
69529
  }, [
@@ -69461,7 +69537,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69461
69537
  Fe(), D?.();
69462
69538
  }, [Fe, D]), Re = k(() => {
69463
69539
  D?.();
69464
- }, [D]), ze = C?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Be = !oe && !!ie && re && (ne?.(e) ?? !0), Ve = !oe && !Be && (T?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), He = !oe && !!s && !!e.isEditable, Ue = !oe && e.isMyApp === !0 && (a?.(e) ?? !0), We = o?.(e) ?? !0, Ge = E?.(e) ?? !1, Ke = e.credentials?.authenticationType ?? yn.None, qe = e.credentials != null && Ke !== yn.None ? wV(e.credentials) : void 0, Je = !oe && qe != null && (!!y || !!b), Ye = e.type === Da.Toolset && Je, Xe = !!c && (l?.(e) ?? !0), Ze = Xe && !Ye && (u?.(e) ?? e.type === Da.Skill), Qe = Xe && !Ze, $e = !oe && e.isMyApp, tt = !oe && !!f && e.isMyApp !== !0 && e.sharedWithMe === !0 && (p?.(e) ?? !0), nt = !oe && !!g && e.isMyApp === !0 && (!_ || ke === pU.Unknown || ke === pU.Resolved && (je ?? 0) > 0) && (v?.(e) ?? !0), rt = A(() => {
69540
+ }, [D]), ze = C?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Be = !oe && !!ie && re && (ne?.(e) ?? !0), Ve = !oe && !Be && (T?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), He = !oe && !!s && !!e.isEditable, Ue = !oe && e.isMyApp === !0 && (a?.(e) ?? !0), We = o?.(e) ?? !0, Ge = E?.(e) ?? !1, Ke = e.credentials?.authenticationType ?? yn.None, qe = e.credentials != null && Ke !== yn.None ? OV(e.credentials) : void 0, Je = !oe && qe != null && (!!y || !!b), Ye = e.type === Da.Toolset && Je, Xe = !!c && (l?.(e) ?? !0), Ze = Xe && !Ye && (u?.(e) ?? e.type === Da.Skill), Qe = Xe && !Ze, $e = !oe && e.isMyApp, tt = !oe && !!f && e.isMyApp !== !0 && e.sharedWithMe === !0 && (p?.(e) ?? !0), nt = !oe && !!g && e.isMyApp === !0 && (!_ || ke === _U.Unknown || ke === _U.Resolved && (je ?? 0) > 0) && (v?.(e) ?? !0), rt = A(() => {
69465
69541
  let e = [];
69466
69542
  if (!We && Ue && e.push({
69467
69543
  key: "share",
@@ -69589,7 +69665,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69589
69665
  y,
69590
69666
  x,
69591
69667
  S
69592
- ]), mt = qe === Sn.ManageCredentials ? (C?.manageCredentialsActionLabel ?? bU)(Ke) : Ke === yn.ApiKey ? qe === Sn.LogOut ? C?.changeApiKeyActionLabel ?? "Change API key" : C?.apiKeyActionLabel ?? "API key" : qe === Sn.LogOut ? C?.logoutActionLabel ?? "Log out" : C?.loginActionLabel ?? "Log in", ht = qe === Sn.ManageCredentials || Ke === yn.ApiKey ? /* @__PURE__ */ M(Nt, {
69668
+ ]), mt = qe === Sn.ManageCredentials ? (C?.manageCredentialsActionLabel ?? wU)(Ke) : Ke === yn.ApiKey ? qe === Sn.LogOut ? C?.changeApiKeyActionLabel ?? "Change API key" : C?.apiKeyActionLabel ?? "API key" : qe === Sn.LogOut ? C?.logoutActionLabel ?? "Log out" : C?.loginActionLabel ?? "Log in", ht = qe === Sn.ManageCredentials || Ke === yn.ApiKey ? /* @__PURE__ */ M(Nt, {
69593
69669
  size: m.MD,
69594
69670
  stroke: h
69595
69671
  }) : qe === Sn.LogOut ? /* @__PURE__ */ M(Lt, {
@@ -69621,7 +69697,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69621
69697
  onOpenChange: st,
69622
69698
  trigger: [],
69623
69699
  outsideClosable: !0,
69624
- renderOverlay: () => /* @__PURE__ */ M(gU, {
69700
+ renderOverlay: () => /* @__PURE__ */ M(bU, {
69625
69701
  item: e,
69626
69702
  level: xn.User,
69627
69703
  status: e.credentials?.userStatus,
@@ -69639,7 +69715,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69639
69715
  children: [/* @__PURE__ */ M(ky, {
69640
69716
  item: e,
69641
69717
  iconSize: 52,
69642
- nameClassName: F(se, _U.name),
69718
+ nameClassName: F(se, xU.name),
69643
69719
  featuredLabel: C?.featuredLabel ?? "Featured",
69644
69720
  statusBadge: ue,
69645
69721
  footer: e.folder.length > 0 ? /* @__PURE__ */ M(ae, {
@@ -69676,7 +69752,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69676
69752
  className: "sr-only",
69677
69753
  children: C?.downloadingStatusLabel ?? "Downloading"
69678
69754
  })] }),
69679
- We && Ue && /* @__PURE__ */ M(yU, {
69755
+ We && Ue && /* @__PURE__ */ M(CU, {
69680
69756
  item: e,
69681
69757
  onShare: r,
69682
69758
  shareOverlay: i,
@@ -69738,11 +69814,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69738
69814
  ]
69739
69815
  })]
69740
69816
  });
69741
- }, wU = ({ topics: e, content: t, detailsStyles: n }) => {
69817
+ }, OU = ({ topics: e, content: t, detailsStyles: n }) => {
69742
69818
  let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
69743
69819
  return /* @__PURE__ */ N("div", {
69744
69820
  className: "flex flex-col gap-5",
69745
- children: [/* @__PURE__ */ M(tV, {
69821
+ children: [/* @__PURE__ */ M(aV, {
69746
69822
  content: t,
69747
69823
  classNames: {
69748
69824
  h1: r,
@@ -69757,21 +69833,21 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69757
69833
  }
69758
69834
  }), e && e.length > 0 && /* @__PURE__ */ M("div", {
69759
69835
  className: "flex flex-wrap gap-2",
69760
- children: e.map((e) => /* @__PURE__ */ M(KV, { label: e }, e))
69836
+ children: e.map((e) => /* @__PURE__ */ M(XV, { label: e }, e))
69761
69837
  })]
69762
69838
  });
69763
- }, TU = {
69839
+ }, kU = {
69764
69840
  divider: "_divider_1gzl9_1",
69765
69841
  fileCount: "_fileCount_1gzl9_5",
69766
69842
  body: "_body_1gzl9_9"
69767
- }, EU = (e, t, n = void 0) => e.flatMap((e) => {
69843
+ }, AU = (e, t, n = void 0) => e.flatMap((e) => {
69768
69844
  let r = {
69769
69845
  node: e,
69770
69846
  parentId: n
69771
69847
  };
69772
- return e.type === Dn.File || !t.has(e.id) ? [r] : [r, ...EU(e.items, t, e.id)];
69773
- }), DU = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
69774
- let c = A(() => EU(e, n), [e, n]), l = it({}), [u, d] = j(() => t ?? c[0]?.node.id);
69848
+ return e.type === Dn.File || !t.has(e.id) ? [r] : [r, ...AU(e.items, t, e.id)];
69849
+ }), jU = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
69850
+ let c = A(() => AU(e, n), [e, n]), l = it({}), [u, d] = j(() => t ?? c[0]?.node.id);
69775
69851
  et(() => {
69776
69852
  u != null && l.current[u]?.focus();
69777
69853
  }, []);
@@ -69870,8 +69946,8 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69870
69946
  onKeyDown: p,
69871
69947
  children: e.map((e) => _(e))
69872
69948
  });
69873
- }, OU = () => void 0, kU = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = OU, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = OU, 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 }) => {
69874
- 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 = PH(x) > 1, C = IH(x, r) ?? "", w = (e) => {
69949
+ }, MU = () => void 0, NU = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = MU, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = MU, 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 }) => {
69950
+ 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 = RH(x) > 1, C = BH(x, r) ?? "", w = (e) => {
69875
69951
  i?.(e), l(!1);
69876
69952
  }, T = a ? {
69877
69953
  type: On.Text,
@@ -69892,7 +69968,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69892
69968
  matchReferenceWidth: !1,
69893
69969
  listClassName: "w-[280px]",
69894
69970
  placement: "bottom-start",
69895
- renderOverlay: () => /* @__PURE__ */ M(DU, {
69971
+ renderOverlay: () => /* @__PURE__ */ M(jU, {
69896
69972
  nodes: x,
69897
69973
  selectedFileId: r,
69898
69974
  expandedFolderIds: o,
@@ -69909,16 +69985,16 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69909
69985
  onClick: () => l(!c)
69910
69986
  })
69911
69987
  }), /* @__PURE__ */ M("span", {
69912
- className: F("shrink-0", y, TU.fileCount),
69913
- children: d(PH(x))
69988
+ className: F("shrink-0", y, kU.fileCount),
69989
+ children: d(RH(x))
69914
69990
  })]
69915
69991
  }),
69916
69992
  b && /* @__PURE__ */ N(at, { children: [/* @__PURE__ */ M("p", {
69917
69993
  className: F("m-0", _),
69918
69994
  children: t
69919
- }), /* @__PURE__ */ M("div", { className: F("shrink-0", TU.divider) })] }),
69995
+ }), /* @__PURE__ */ M("div", { className: F("shrink-0", kU.divider) })] }),
69920
69996
  /* @__PURE__ */ N("div", {
69921
- className: F("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && TU.body, h == null && _),
69997
+ className: F("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && kU.body, h == null && _),
69922
69998
  children: [a && /* @__PURE__ */ M("span", {
69923
69999
  role: "status",
69924
70000
  className: "sr-only",
@@ -69926,7 +70002,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69926
70002
  }), (() => {
69927
70003
  if (h != null) return h;
69928
70004
  switch (T.type) {
69929
- case On.Markdown: return /* @__PURE__ */ M(iV, {
70005
+ case On.Markdown: return /* @__PURE__ */ M(cV, {
69930
70006
  content: T.text,
69931
70007
  headingClassName: v
69932
70008
  });
@@ -69949,12 +70025,12 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69949
70025
  })
69950
70026
  ]
69951
70027
  });
69952
- }, AU = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), jU = /* @__PURE__ */ function(e) {
70028
+ }, PU = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), FU = /* @__PURE__ */ function(e) {
69953
70029
  return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
69954
- }({}), MU = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), NU = (e) => Number.isFinite(e) && e > 0 ? e : 1, PU = ({ used: e, total: t, valueLabel: n }) => n ?? `${AU.format(e)} / ${AU.format(t)}`, FU = ({ total: e }) => Number.isFinite(e) && e > 0, IU = (e) => e.isUnlimited !== !0 && FU(e), LU = (e) => FU(e) ? Math.max(e.used, 0) / e.total : 0, RU = (e) => {
69955
- let t = LU(e);
70030
+ }({}), IU = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), LU = (e) => Number.isFinite(e) && e > 0 ? e : 1, RU = ({ used: e, total: t, valueLabel: n }) => n ?? `${PU.format(e)} / ${PU.format(t)}`, zU = ({ total: e }) => Number.isFinite(e) && e > 0, BU = (e) => e.isUnlimited !== !0 && zU(e), VU = (e) => zU(e) ? Math.max(e.used, 0) / e.total : 0, HU = (e) => {
70031
+ let t = VU(e);
69956
70032
  return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
69957
- }, zU = {
70033
+ }, UU = {
69958
70034
  sectionHeading: "_sectionHeading_ltnqp_1",
69959
70035
  label: "_label_ltnqp_5",
69960
70036
  valuePrimary: "_valuePrimary_ltnqp_9",
@@ -69963,58 +70039,58 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
69963
70039
  progressFillDefault: "_progressFillDefault_ltnqp_24",
69964
70040
  progressFillWarning: "_progressFillWarning_ltnqp_28",
69965
70041
  progressFillDanger: "_progressFillDanger_ltnqp_32"
69966
- }, BU = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
69967
- let o = PU(e);
70042
+ }, WU = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
70043
+ let o = RU(e);
69968
70044
  return /* @__PURE__ */ N("li", {
69969
- className: F("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", zU.divider),
70045
+ className: F("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", UU.divider),
69970
70046
  children: [/* @__PURE__ */ N("div", {
69971
70047
  className: "flex min-w-0 flex-1 flex-col",
69972
70048
  children: [/* @__PURE__ */ M("span", {
69973
- className: F("break-words", t, zU.label),
70049
+ className: F("break-words", t, UU.label),
69974
70050
  children: e.label
69975
70051
  }), e.captionLabel != null && /* @__PURE__ */ M("span", {
69976
- className: F("break-words", n, zU.label),
70052
+ className: F("break-words", n, UU.label),
69977
70053
  children: e.captionLabel
69978
70054
  })]
69979
- }), IU(e) ? /* @__PURE__ */ N("div", {
70055
+ }), BU(e) ? /* @__PURE__ */ N("div", {
69980
70056
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
69981
70057
  children: [/* @__PURE__ */ M("div", {
69982
70058
  className: F("flex gap-1", r),
69983
70059
  children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ N(at, { children: [/* @__PURE__ */ M("span", {
69984
- className: zU.valuePrimary,
70060
+ className: UU.valuePrimary,
69985
70061
  children: e.usedLabel
69986
70062
  }), /* @__PURE__ */ M("span", {
69987
- className: zU.label,
70063
+ className: UU.label,
69988
70064
  children: ` / ${e.totalLabel}`
69989
70065
  })] }) : /* @__PURE__ */ M("span", {
69990
- className: zU.label,
70066
+ className: UU.label,
69991
70067
  children: o
69992
70068
  })
69993
70069
  }), /* @__PURE__ */ M(we, {
69994
- value: MU(e),
69995
- max: NU(e.total),
70070
+ value: IU(e),
70071
+ max: LU(e.total),
69996
70072
  size: re.Small,
69997
- className: F("!h-1 w-full", zU.progressTrack, RU(e) === jU.Default && zU.progressFillDefault, RU(e) === jU.Warning && zU.progressFillWarning, RU(e) === jU.Danger && zU.progressFillDanger),
70073
+ className: F("!h-1 w-full", UU.progressTrack, HU(e) === FU.Default && UU.progressFillDefault, HU(e) === FU.Warning && UU.progressFillWarning, HU(e) === FU.Danger && UU.progressFillDanger),
69998
70074
  "aria-label": e.label,
69999
70075
  "aria-valuetext": e.ariaLabel ?? o
70000
70076
  })]
70001
70077
  }) : /* @__PURE__ */ N("div", {
70002
70078
  className: "flex shrink-0 flex-col items-end",
70003
70079
  children: [/* @__PURE__ */ M("span", {
70004
- className: F(i, zU.valuePrimary),
70080
+ className: F(i, UU.valuePrimary),
70005
70081
  children: o
70006
70082
  }), e.noteLabel != null && /* @__PURE__ */ M("span", {
70007
- className: F(a, zU.label),
70083
+ className: F(a, UU.label),
70008
70084
  children: e.noteLabel
70009
70085
  })]
70010
70086
  })]
70011
70087
  });
70012
- }, VU = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ M("p", {
70013
- className: F("mb-3 mt-0", t, zU.sectionHeading),
70088
+ }, GU = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ M("p", {
70089
+ className: F("mb-3 mt-0", t, UU.sectionHeading),
70014
70090
  children: e.label
70015
70091
  }), /* @__PURE__ */ M("ul", {
70016
70092
  className: "m-0 flex list-none flex-col p-0",
70017
- children: e.rows.map((e) => /* @__PURE__ */ M(BU, {
70093
+ children: e.rows.map((e) => /* @__PURE__ */ M(WU, {
70018
70094
  row: e,
70019
70095
  labelClassName: n,
70020
70096
  captionClassName: r,
@@ -70022,7 +70098,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70022
70098
  noteValueClassName: a,
70023
70099
  noteClassName: o
70024
70100
  }, e.label))
70025
- })] }), HU = ({ 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 }) => {
70101
+ })] }), KU = ({ 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 }) => {
70026
70102
  let u = e?.groups.filter((e) => e.rows.length > 0);
70027
70103
  return u == null || u.length === 0 ? null : /* @__PURE__ */ N("div", {
70028
70104
  className: "flex flex-col gap-6",
@@ -70036,7 +70112,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70036
70112
  "--lt-progress-fill-warning": l?.progressFillWarning,
70037
70113
  "--lt-progress-fill-danger": l?.progressFillDanger
70038
70114
  }),
70039
- children: [u.map((e) => /* @__PURE__ */ M(VU, {
70115
+ children: [u.map((e) => /* @__PURE__ */ M(GU, {
70040
70116
  group: e,
70041
70117
  sectionClassName: o,
70042
70118
  labelClassName: t,
@@ -70045,17 +70121,17 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70045
70121
  noteValueClassName: i,
70046
70122
  noteClassName: a
70047
70123
  }, e.label)), c != null && /* @__PURE__ */ M("p", {
70048
- className: F("m-0 border-t pt-4", s, zU.divider, zU.label),
70124
+ className: F("m-0 border-t pt-4", s, UU.divider, UU.label),
70049
70125
  children: c
70050
70126
  })]
70051
70127
  });
70052
- }, UU = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ M("div", {
70128
+ }, qU = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ M("div", {
70053
70129
  className: "flex flex-col gap-4",
70054
70130
  children: e.map((e, s) => /* @__PURE__ */ N("div", {
70055
70131
  className: "flex flex-col gap-4",
70056
- children: [s > 0 && /* @__PURE__ */ M("div", { className: F("shrink-0 border-b", fU.divider) }), /* @__PURE__ */ M("div", {
70132
+ children: [s > 0 && /* @__PURE__ */ M("div", { className: F("shrink-0 border-b", gU.divider) }), /* @__PURE__ */ M("div", {
70057
70133
  className: "px-6",
70058
- children: /* @__PURE__ */ M(zH, {
70134
+ children: /* @__PURE__ */ M(UH, {
70059
70135
  sectionLabel: e.title,
70060
70136
  values: e.specs,
70061
70137
  sectionClassName: t,
@@ -70067,7 +70143,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70067
70143
  })
70068
70144
  })]
70069
70145
  }, s))
70070
- }) : null, WU = ({ 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" }) => {
70146
+ }) : null, JU = ({ 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" }) => {
70071
70147
  if (e == null) return null;
70072
70148
  let o = e.prices?.map((e) => ({
70073
70149
  label: e.label,
@@ -70078,13 +70154,13 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70078
70154
  }));
70079
70155
  return /* @__PURE__ */ N("div", {
70080
70156
  className: "flex flex-col gap-4",
70081
- children: [/* @__PURE__ */ M(zH, {
70157
+ children: [/* @__PURE__ */ M(UH, {
70082
70158
  sectionLabel: t,
70083
70159
  values: o ?? [],
70084
70160
  labelClassName: r,
70085
70161
  valueClassName: i,
70086
70162
  sectionClassName: a
70087
- }), /* @__PURE__ */ M(zH, {
70163
+ }), /* @__PURE__ */ M(UH, {
70088
70164
  sectionLabel: n,
70089
70165
  values: s ?? [],
70090
70166
  labelClassName: r,
@@ -70092,32 +70168,32 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70092
70168
  sectionClassName: a
70093
70169
  })]
70094
70170
  });
70095
- }, GU = {
70171
+ }, YU = {
70096
70172
  container: "_container_ddi3i_1",
70097
70173
  header: "_header_ddi3i_5",
70098
70174
  cell: "_cell_ddi3i_10",
70099
70175
  evenRow: "_evenRow_ddi3i_17"
70100
- }, KU = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
70176
+ }, XU = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
70101
70177
  let a = n ?? `repeat(${e.length}, 1fr)`;
70102
70178
  return /* @__PURE__ */ N("div", {
70103
- className: F(GU.container, "grid overflow-hidden rounded-md"),
70179
+ className: F(YU.container, "grid overflow-hidden rounded-md"),
70104
70180
  style: { gridTemplateColumns: a },
70105
70181
  children: [e.map((e) => /* @__PURE__ */ M("div", {
70106
- className: F("px-2 py-1 text-start", r, GU.header),
70182
+ className: F("px-2 py-1 text-start", r, YU.header),
70107
70183
  children: e
70108
70184
  }, e)), t.map((e, t) => /* @__PURE__ */ M(Je, { children: e.map((e, n) => /* @__PURE__ */ M("div", {
70109
- className: F("px-2 py-1.5", i, GU.cell, t % 2 == 1 ? GU.evenRow : void 0),
70185
+ className: F("px-2 py-1.5", i, YU.cell, t % 2 == 1 ? YU.evenRow : void 0),
70110
70186
  children: e
70111
70187
  }, n)) }, t))]
70112
70188
  });
70113
- }, qU = {
70189
+ }, ZU = {
70114
70190
  divider: "_divider_1f796_1",
70115
70191
  description: "_description_1f796_5",
70116
70192
  code: "_code_1f796_9"
70117
- }, JU = ({ 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__ */ M("div", {
70193
+ }, QU = ({ 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__ */ M("div", {
70118
70194
  className: "flex flex-col",
70119
70195
  children: e.tools.map((e, a) => /* @__PURE__ */ N("div", {
70120
- className: F("flex flex-col gap-3 px-[22px] py-4", a > 0 ? qU.divider : void 0),
70196
+ className: F("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ZU.divider : void 0),
70121
70197
  children: [
70122
70198
  /* @__PURE__ */ N("div", {
70123
70199
  className: "flex flex-col gap-1",
@@ -70125,11 +70201,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70125
70201
  className: t,
70126
70202
  children: e.name
70127
70203
  }), e.description != null && /* @__PURE__ */ M("p", {
70128
- className: F("m-0", n, qU.description),
70204
+ className: F("m-0", n, ZU.description),
70129
70205
  children: e.description
70130
70206
  })]
70131
70207
  }),
70132
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ M(KU, {
70208
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ M(XU, {
70133
70209
  columns: [
70134
70210
  "Name",
70135
70211
  "Type",
@@ -70138,11 +70214,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70138
70214
  columnsTemplate: "1fr 1fr auto",
70139
70215
  rows: e.inputParams.map((e) => [
70140
70216
  /* @__PURE__ */ M("code", {
70141
- className: F("text-inherit border-none bg-transparent p-0", qU.code),
70217
+ className: F("text-inherit border-none bg-transparent p-0", ZU.code),
70142
70218
  children: e.name
70143
70219
  }, "name"),
70144
70220
  /* @__PURE__ */ M("code", {
70145
- className: F("text-inherit border-none bg-transparent p-0", qU.code),
70221
+ className: F("text-inherit border-none bg-transparent p-0", ZU.code),
70146
70222
  children: e.type
70147
70223
  }, "type"),
70148
70224
  e.isRequired ? "✓" : "—"
@@ -70150,10 +70226,10 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70150
70226
  headingClassName: r,
70151
70227
  cellClassName: i
70152
70228
  }),
70153
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ M(KU, {
70229
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ M(XU, {
70154
70230
  columns: ["Key", "Value"],
70155
70231
  rows: e.annotations.map((e) => [/* @__PURE__ */ M("code", {
70156
- className: F("text-inherit border-none bg-transparent p-0", qU.code),
70232
+ className: F("text-inherit border-none bg-transparent p-0", ZU.code),
70157
70233
  children: e.key
70158
70234
  }, "key"), e.value]),
70159
70235
  headingClassName: r,
@@ -70161,23 +70237,23 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70161
70237
  })
70162
70238
  ]
70163
70239
  }, e.name))
70164
- }), YU = new Set([Da.Prompt, Da.Skill]), XU = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, ZU = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), QU = async () => void 0, $U = [], eW = [], tW = [
70240
+ }), $U = new Set([Da.Prompt, Da.Skill]), eW = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, tW = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), nW = async () => void 0, rW = [], iW = [], aW = [
70165
70241
  "All shared configurations will be lost",
70166
70242
  "Users who rely on it will lose access",
70167
70243
  "Cannot be undone"
70168
- ], nW = [
70244
+ ], oW = [
70169
70245
  "You will lose access to this item",
70170
70246
  "Other people keep their access",
70171
70247
  "You will need a new invitation to get it back"
70172
- ], rW = [
70248
+ ], sW = [
70173
70249
  "Everyone loses access to the published copy",
70174
70250
  "Your own copy is not deleted",
70175
70251
  "You can publish it again later"
70176
- ], iW = [
70252
+ ], cW = [
70177
70253
  "Everyone you shared it with loses access",
70178
70254
  "Existing share links stop working",
70179
70255
  "You keep full access — nothing is deleted"
70180
- ], aW = (e) => e === yn.ApiKey ? "Toolset API keys" : "Toolset credentials", oW = (e) => e === xn.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", sW = new Set([gn.Delete, gn.Unshare]), cW = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, publishFolderItems: g = $U, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, onPublish: x, onPublishSuccess: S, onPublishError: C, onCreatePublishFolder: w, publishLabels: T, ruleSourceOptions: E = eW, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: D, onEdit: ie, onDownload: ae, isDownloadVisible: oe, isDownloadPrimary: se, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: ue, onDelete: de, onUnshare: fe, isUnshareVisible: pe, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: ge, onUnpublish: _e, isUnpublishVisible: ve, onLogin: ye, onLogout: be, texts: xe, styles: Se, limitsFooterNote: Ce }) => {
70256
+ ], lW = (e) => e === yn.ApiKey ? "Toolset API keys" : "Toolset credentials", uW = (e) => e === xn.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", dW = new Set([gn.Delete, gn.Unshare]), fW = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, publishFolderItems: g = rW, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, onPublish: x, onPublishSuccess: S, onPublishError: C, onCreatePublishFolder: w, publishLabels: T, ruleSourceOptions: E = iW, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: D, onEdit: ie, onDownload: ae, isDownloadVisible: oe, isDownloadPrimary: se, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: ue, onDelete: de, onUnshare: fe, isUnshareVisible: pe, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: ge, onUnpublish: _e, isUnpublishVisible: ve, onLogin: ye, onLogout: be, texts: xe, styles: Se, limitsFooterNote: Ce }) => {
70181
70257
  let { subViewTitleClassName: we = "dial-body-semi-text", overviewSectionClassName: Ee = "dial-caption-text", overviewLabelClassName: De = "dial-small-semi-text", overviewValueClassName: Oe = "dial-small-text", overviewValueTrueClassName: Ae = "dial-small-text", confirmMessageClassName: je = "dial-small-text" } = Se?.typography ?? {}, Me = Se?.colors, Ne = os({
70182
70258
  "--cat-details-backdrop": Me?.backdrop,
70183
70259
  "--cat-details-bg": Me?.background,
@@ -70219,7 +70295,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70219
70295
  t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), lt.current = n, $e(e);
70220
70296
  }, []);
70221
70297
  et(() => {
70222
- ut.current += 1, dt(null), nt(!1), ot(FH(Xe?.files ?? [])), ct(!1);
70298
+ ut.current += 1, dt(null), nt(!1), ot(zH(Xe?.files ?? [])), ct(!1);
70223
70299
  }, [e.id, Ze]), et(() => () => {
70224
70300
  let e = lt.current;
70225
70301
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
@@ -70278,7 +70354,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70278
70354
  ]), ht = Qe?.id ?? Ze, gt = () => Qe == null ? null : Qe.preview == null ? {
70279
70355
  type: On.Text,
70280
70356
  text: xe?.contentFileErrorLabel ?? "Failed to load this file."
70281
- } : Qe.preview, _t = Qe != null && ue != null ? ue(Qe.id, IH(Xe?.files ?? [], Qe.id) ?? "") : void 0, vt = k(() => {
70357
+ } : Qe.preview, _t = Qe != null && ue != null ? ue(Qe.id, BH(Xe?.files ?? [], Qe.id) ?? "") : void 0, vt = k(() => {
70282
70358
  if (!m || Ye.current === e.id) return;
70283
70359
  let t = e.id;
70284
70360
  Ye.current = t, We(!0), Ke(!1), (async () => {
@@ -70297,17 +70373,17 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70297
70373
  }, [ze, vt]);
70298
70374
  let yt = k((e, t) => {
70299
70375
  Ye.current = null, Je(!1), vt(), S?.(e, t);
70300
- }, [vt, S]), bt = rH({
70376
+ }, [vt, S]), bt = sH({
70301
70377
  item: e,
70302
70378
  history: Ve,
70303
70379
  folderItems: g,
70304
70380
  hasWriteAccess: b,
70305
70381
  onCreateFolder: w,
70306
- onPublish: x ?? QU,
70382
+ onPublish: x ?? nW,
70307
70383
  onPublishSuccess: yt,
70308
70384
  onPublishError: C,
70309
70385
  onFetchExistingRules: ee
70310
- }), xt = A(() => eH({
70386
+ }), xt = A(() => iH({
70311
70387
  hasSelectedFolder: bt.selectedFolderPath != null,
70312
70388
  hasExistingPublicationInFolder: bt.hasExistingPublicationInFolder,
70313
70389
  hasWriteAccess: bt.hasWriteAccess,
@@ -70328,7 +70404,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70328
70404
  let Pt = k(() => Ct(!0), []), Ft = k(() => Ct(!1), []), It = k(() => {
70329
70405
  Tt(gn.Delete);
70330
70406
  }, []), Lt = k((t) => {
70331
- jt(t ?? (e.credentials == null ? null : EV(e.credentials))), Tt(gn.Logout);
70407
+ jt(t ?? (e.credentials == null ? null : AV(e.credentials))), Tt(gn.Logout);
70332
70408
  }, [e.credentials]), Rt = k(() => {
70333
70409
  Tt(gn.Unshare);
70334
70410
  }, []), zt = k(() => {
@@ -70370,12 +70446,12 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70370
70446
  Ot != null && await be?.(e, { level: Ot });
70371
70447
  break;
70372
70448
  case gn.Unpublish: {
70373
- let t = ZU(Bt, Mt);
70449
+ let t = tW(Bt, Mt);
70374
70450
  t != null && await _e?.(e, t.segments);
70375
70451
  break;
70376
70452
  }
70377
70453
  }
70378
- Tt(null), kt(null), jt(null), Nt(null), sW.has(wt) && a();
70454
+ Tt(null), kt(null), jt(null), Nt(null), dW.has(wt) && a();
70379
70455
  } catch {
70380
70456
  Tt(null), kt(null), jt(null), Nt(null);
70381
70457
  } finally {
@@ -70427,7 +70503,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70427
70503
  e.id,
70428
70504
  o
70429
70505
  ]), Zt = A(() => {
70430
- let t = [], n = YU.has(e.type);
70506
+ let t = [], n = $U.has(e.type);
70431
70507
  return n || t.push({
70432
70508
  id: mn.About,
70433
70509
  label: xe?.tabAboutLabel ?? "About"
@@ -70446,7 +70522,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70446
70522
  }), e.details?.tools != null && t.push({
70447
70523
  id: mn.Tools,
70448
70524
  label: xe?.tabToolsLabel ?? "Tools"
70449
- }), XU(e.details?.api) && t.push({
70525
+ }), eW(e.details?.api) && t.push({
70450
70526
  id: mn.Api,
70451
70527
  label: xe?.tabConnectLabel ?? "Connect"
70452
70528
  }), t;
@@ -70470,7 +70546,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70470
70546
  /* @__PURE__ */ M("strong", { children: e.name }),
70471
70547
  "? This action is permanent and cannot be undone."
70472
70548
  ] }),
70473
- consequences: xe?.deleteConfirmConsequences ?? tW,
70549
+ consequences: xe?.deleteConfirmConsequences ?? aW,
70474
70550
  confirmLabel: t,
70475
70551
  loadingStatusLabel: xe?.deletingStatusLabel ?? "Deleting",
70476
70552
  variant: _n.Danger
@@ -70485,7 +70561,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70485
70561
  /* @__PURE__ */ M("strong", { children: e.name }),
70486
70562
  " from your list? You'll need a new invitation to access it again."
70487
70563
  ] }),
70488
- consequences: xe?.unshareConfirmConsequences ?? nW,
70564
+ consequences: xe?.unshareConfirmConsequences ?? oW,
70489
70565
  confirmLabel: t,
70490
70566
  loadingStatusLabel: xe?.unsharingStatusLabel ?? "Removing",
70491
70567
  variant: _n.Info
@@ -70500,7 +70576,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70500
70576
  /* @__PURE__ */ M("strong", { children: e.name }),
70501
70577
  "? Anyone you shared it with will lose access."
70502
70578
  ] }),
70503
- consequences: xe?.revokeShareConfirmConsequences ?? iW,
70579
+ consequences: xe?.revokeShareConfirmConsequences ?? cW,
70504
70580
  confirmLabel: t,
70505
70581
  loadingStatusLabel: xe?.revokingShareStatusLabel ?? "Revoking access",
70506
70582
  variant: _n.Danger
@@ -70521,7 +70597,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70521
70597
  return {
70522
70598
  title: xe?.unpublishConfirmTitle ?? t,
70523
70599
  message: n ? i : a,
70524
- consequences: xe?.unpublishConfirmConsequences ?? rW,
70600
+ consequences: xe?.unpublishConfirmConsequences ?? sW,
70525
70601
  confirmLabel: t,
70526
70602
  loadingStatusLabel: xe?.unpublishingStatusLabel ?? "Requesting unpublish",
70527
70603
  variant: _n.Danger
@@ -70542,7 +70618,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70542
70618
  let e = xe?.deleteActionLabel ?? "Delete", t = Ot ?? xn.User;
70543
70619
  return {
70544
70620
  title: e,
70545
- message: (xe?.deleteApiKeyConfirmMessage ?? oW)(t),
70621
+ message: (xe?.deleteApiKeyConfirmMessage ?? uW)(t),
70546
70622
  consequences: void 0,
70547
70623
  confirmLabel: e,
70548
70624
  loadingStatusLabel: xe?.deletingStatusLabel ?? "Deleting",
@@ -70559,7 +70635,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70559
70635
  xe,
70560
70636
  Bt,
70561
70637
  Ht
70562
- ]), ln = cn != null, un = wt === gn.Unpublish && ZU(Bt, Mt) == null, dn = ln || ze || St, fn = e.credentials == null ? "" : (xe?.credentialsManagementTitle ?? aW)(e.credentials.authenticationType), pn = ln ? {
70638
+ ]), ln = cn != null, un = wt === gn.Unpublish && tW(Bt, Mt) == null, dn = ln || ze || St, fn = e.credentials == null ? "" : (xe?.credentialsManagementTitle ?? lW)(e.credentials.authenticationType), pn = ln ? {
70563
70639
  title: cn.title,
70564
70640
  isBackDisabled: Et,
70565
70641
  onBack: Gt
@@ -70574,7 +70650,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70574
70650
  } : null, hn = pn?.title ?? tn;
70575
70651
  return /* @__PURE__ */ N(at, { children: [/* @__PURE__ */ M("div", {
70576
70652
  style: Ne,
70577
- className: F("fixed inset-0 z-40 transition-opacity duration-300", fU.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
70653
+ className: F("fixed inset-0 z-40 transition-opacity duration-300", gU.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
70578
70654
  onClick: a,
70579
70655
  "aria-hidden": "true"
70580
70656
  }), /* @__PURE__ */ N("div", {
@@ -70582,7 +70658,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70582
70658
  "aria-modal": "true",
70583
70659
  "aria-label": hn,
70584
70660
  style: Ne,
70585
- className: F("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", fU.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
70661
+ className: F("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", gU.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
70586
70662
  children: [
70587
70663
  /* @__PURE__ */ N("div", {
70588
70664
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
@@ -70595,11 +70671,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70595
70671
  disabled: pn.isBackDisabled,
70596
70672
  onClick: pn.onBack
70597
70673
  }), /* @__PURE__ */ M("span", {
70598
- className: F("flex-1", we, fU.publishTitle),
70674
+ className: F("flex-1", we, gU.publishTitle),
70599
70675
  children: pn.title
70600
70676
  })] }), pn == null && /* @__PURE__ */ N(at, { children: [
70601
70677
  /* @__PURE__ */ M("div", { className: "flex-1" }),
70602
- !i && c?.(e) !== !1 && /* @__PURE__ */ M(UV, {
70678
+ !i && c?.(e) !== !1 && /* @__PURE__ */ M(qV, {
70603
70679
  isStarred: Fe,
70604
70680
  ariaLabel: rn,
70605
70681
  onClick: Xt
@@ -70611,11 +70687,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70611
70687
  })
70612
70688
  ] })]
70613
70689
  }),
70614
- /* @__PURE__ */ M("div", { className: F("shrink-0", fU.divider) }),
70690
+ /* @__PURE__ */ M("div", { className: F("shrink-0", gU.divider) }),
70615
70691
  /* @__PURE__ */ N("div", {
70616
- className: F("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", fU.content),
70692
+ className: F("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", gU.content),
70617
70693
  children: [
70618
- ln && /* @__PURE__ */ M(YH, {
70694
+ ln && /* @__PURE__ */ M($H, {
70619
70695
  item: e,
70620
70696
  message: cn.message,
70621
70697
  consequences: cn.consequences,
@@ -70633,7 +70709,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70633
70709
  radioClassName: je
70634
70710
  })
70635
70711
  }),
70636
- !ln && !ze && St && /* @__PURE__ */ M(dU, {
70712
+ !ln && !ze && St && /* @__PURE__ */ M(hU, {
70637
70713
  item: e,
70638
70714
  onLogin: ye,
70639
70715
  onRequestLogout: Lt,
@@ -70643,7 +70719,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70643
70719
  }),
70644
70720
  !ln && ze && /* @__PURE__ */ M("div", {
70645
70721
  className: "p-[22px]",
70646
- children: /* @__PURE__ */ M(OH, {
70722
+ children: /* @__PURE__ */ M(MH, {
70647
70723
  resource: {
70648
70724
  title: e.name,
70649
70725
  version: e.version,
@@ -70678,7 +70754,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70678
70754
  })
70679
70755
  }),
70680
70756
  !dn && /* @__PURE__ */ N(at, { children: [
70681
- /* @__PURE__ */ M(CU, {
70757
+ /* @__PURE__ */ M(DU, {
70682
70758
  item: e,
70683
70759
  onUseInChat: l,
70684
70760
  isPrimaryActionVisible: u,
@@ -70712,10 +70788,10 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70712
70788
  isReadonly: i
70713
70789
  }),
70714
70790
  e.credentials != null && (() => {
70715
- let t = DV(e.credentials);
70791
+ let t = jV(e.credentials);
70716
70792
  return t != null && /* @__PURE__ */ M("div", {
70717
70793
  className: "px-6",
70718
- children: /* @__PURE__ */ M(sU, {
70794
+ children: /* @__PURE__ */ M(dU, {
70719
70795
  state: t,
70720
70796
  authenticationType: e.credentials.authenticationType,
70721
70797
  texts: xe
@@ -70739,19 +70815,19 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70739
70815
  width: "72px"
70740
70816
  },
70741
70817
  active: !0,
70742
- color: fU.skeletonColor
70818
+ color: gU.skeletonColor
70743
70819
  })
70744
70820
  })]
70745
70821
  }),
70746
70822
  /* @__PURE__ */ N("div", {
70747
70823
  className: F("min-h-0 flex-1 overflow-y-auto", Le !== mn.Overview && "px-6"),
70748
70824
  children: [
70749
- Le === mn.About && /* @__PURE__ */ M(wU, {
70825
+ Le === mn.About && /* @__PURE__ */ M(OU, {
70750
70826
  content: e.description,
70751
70827
  topics: e.topics,
70752
70828
  detailsStyles: Se
70753
70829
  }),
70754
- Le === mn.Content && /* @__PURE__ */ M(kU, {
70830
+ Le === mn.Content && /* @__PURE__ */ M(NU, {
70755
70831
  content: Xe?.content ?? "",
70756
70832
  filePreview: gt(),
70757
70833
  filePreviewContent: _t,
@@ -70770,7 +70846,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70770
70846
  fileUnsupportedLabel: xe?.contentFileUnsupportedLabel,
70771
70847
  detailsStyles: Se
70772
70848
  }),
70773
- Le === mn.Overview && /* @__PURE__ */ M(UU, {
70849
+ Le === mn.Overview && /* @__PURE__ */ M(qU, {
70774
70850
  sections: e.details?.overview?.sections,
70775
70851
  sectionClassName: Ee,
70776
70852
  labelClassName: De,
@@ -70779,16 +70855,16 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70779
70855
  yesLabel: $t,
70780
70856
  noLabel: en
70781
70857
  }),
70782
- Le === mn.Pricing && /* @__PURE__ */ M(WU, {
70858
+ Le === mn.Pricing && /* @__PURE__ */ M(JU, {
70783
70859
  pricing: e.details?.pricing,
70784
70860
  pricesSectionLabel: xe?.pricingPricesSectionLabel,
70785
70861
  limitsSectionLabel: xe?.pricingLimitsSectionLabel
70786
70862
  }),
70787
- Le === mn.Limits && /* @__PURE__ */ M(HU, {
70863
+ Le === mn.Limits && /* @__PURE__ */ M(KU, {
70788
70864
  limits: e.details?.limits,
70789
70865
  footerNote: Ce
70790
70866
  }),
70791
- Le === mn.Api && XU(e.details?.api) && /* @__PURE__ */ M(WH, {
70867
+ Le === mn.Api && eW(e.details?.api) && /* @__PURE__ */ M(JH, {
70792
70868
  api: e.details?.api,
70793
70869
  resourceSectionLabel: xe?.apiResourceSectionLabel,
70794
70870
  snippetSectionLabel: xe?.apiSnippetSectionLabel,
@@ -70800,13 +70876,13 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70800
70876
  copyAriaLabel: xe?.copyCodeAriaLabel,
70801
70877
  copiedStatusLabel: xe?.copiedCodeStatusLabel
70802
70878
  }),
70803
- Le === mn.Tools && /* @__PURE__ */ M(JU, { tools: e.details?.tools })
70879
+ Le === mn.Tools && /* @__PURE__ */ M(QU, { tools: e.details?.tools })
70804
70880
  ]
70805
70881
  })
70806
70882
  ] })
70807
70883
  ]
70808
70884
  }),
70809
- ln && /* @__PURE__ */ M(KH, {
70885
+ ln && /* @__PURE__ */ M(XH, {
70810
70886
  confirmLabel: cn.confirmLabel,
70811
70887
  cancelLabel: sn,
70812
70888
  variant: cn.variant,
@@ -70816,7 +70892,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70816
70892
  onConfirm: Kt,
70817
70893
  onCancel: Gt
70818
70894
  }),
70819
- !ln && ze && /* @__PURE__ */ M(NH, {
70895
+ !ln && ze && /* @__PURE__ */ M(LH, {
70820
70896
  version: e.version,
70821
70897
  hasExistingPublicationInFolder: bt.hasExistingPublicationInFolder,
70822
70898
  isSubmitDisabled: xt.isSubmitDisabled,
@@ -70827,7 +70903,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70827
70903
  })
70828
70904
  ]
70829
70905
  })] });
70830
- }, lW = {
70906
+ }, pW = {
70831
70907
  pageNav: "_pageNav_14qfn_1",
70832
70908
  navBtn: "_navBtn_14qfn_6",
70833
70909
  titleText: "_titleText_14qfn_23",
@@ -70842,7 +70918,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70842
70918
  favFadeIn: "_favFadeIn_14qfn_1",
70843
70919
  cardLeaving: "_cardLeaving_14qfn_54",
70844
70920
  cardFadeOut: "_cardFadeOut_14qfn_1"
70845
- }, uW = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: a, nameClassName: o, colors: s, versionClassName: c, lastUsedClassName: l, query: u, addToFavoritesAriaLabel: d = "Add to favorites", removeFromFavoritesAriaLabel: f = "Remove from favorites", isSelected: p = !1, credentialsBadgeLoggedOutLabel: g }) => {
70921
+ }, mW = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: a, nameClassName: o, colors: s, versionClassName: c, lastUsedClassName: l, query: u, addToFavoritesAriaLabel: d = "Add to favorites", removeFromFavoritesAriaLabel: f = "Remove from favorites", isSelected: p = !1, credentialsBadgeLoggedOutLabel: g }) => {
70846
70922
  let [_, v] = j(t), [y, b] = j(!1), x = (t) => {
70847
70923
  t.stopPropagation();
70848
70924
  let r = !_;
@@ -70859,7 +70935,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70859
70935
  role: S == null ? void 0 : "button",
70860
70936
  tabIndex: S == null ? void 0 : 0,
70861
70937
  "aria-label": e.name,
70862
- className: F("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", y && lW.cardLeaving, p && lW.selectedCard),
70938
+ className: F("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", y && pW.cardLeaving, p && pW.selectedCard),
70863
70939
  onClick: S,
70864
70940
  onKeyDown: C,
70865
70941
  onAnimationEnd: y ? (t) => {
@@ -70868,13 +70944,13 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70868
70944
  children: [
70869
70945
  p && /* @__PURE__ */ M(ft, {
70870
70946
  size: m.SM,
70871
- className: F("absolute end-3 top-3 shrink-0", lW.selectedCheck),
70947
+ className: F("absolute end-3 top-3 shrink-0", pW.selectedCheck),
70872
70948
  "aria-hidden": !0,
70873
70949
  stroke: h
70874
70950
  }),
70875
70951
  /* @__PURE__ */ M("div", {
70876
70952
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
70877
- children: /* @__PURE__ */ M(zV, {
70953
+ children: /* @__PURE__ */ M(UV, {
70878
70954
  icon: e.iconUrl,
70879
70955
  type: e.type,
70880
70956
  name: e.name,
@@ -70891,13 +70967,13 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70891
70967
  lastUsedClassName: l
70892
70968
  }
70893
70969
  },
70894
- iconOverlay: /* @__PURE__ */ M(VV, {
70970
+ iconOverlay: /* @__PURE__ */ M(GV, {
70895
70971
  credentials: e.credentials,
70896
70972
  loggedOutLabel: g
70897
70973
  })
70898
70974
  })
70899
70975
  }),
70900
- r?.(e) !== !1 && /* @__PURE__ */ M(UV, {
70976
+ r?.(e) !== !1 && /* @__PURE__ */ M(qV, {
70901
70977
  isStarred: _,
70902
70978
  size: re.Small,
70903
70979
  onClick: x,
@@ -70906,7 +70982,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70906
70982
  })
70907
70983
  ]
70908
70984
  });
70909
- }, dW = 2, fW = (e) => {
70985
+ }, hW = 2, gW = (e) => {
70910
70986
  let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
70911
70987
  if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
70912
70988
  try {
@@ -70915,7 +70991,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70915
70991
  } catch {
70916
70992
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
70917
70993
  }
70918
- }, pW = ({ 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 }) => {
70994
+ }, _W = ({ 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 }) => {
70919
70995
  let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = os({
70920
70996
  "--cat-fav-title-text": o?.colors?.titleText,
70921
70997
  "--cat-fav-count-text": o?.colors?.countText,
@@ -70928,7 +71004,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70928
71004
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
70929
71005
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
70930
71006
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
70931
- }), y = A(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = j(1), S = SV(), C = S * dW, w = (b - 1) * C, T = A(() => y.slice(w, w + C), [
71007
+ }), y = A(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = j(1), S = EV(), C = S * hW, w = (b - 1) * C, T = A(() => y.slice(w, w + C), [
70932
71008
  y,
70933
71009
  w,
70934
71010
  C
@@ -70961,7 +71037,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
70961
71037
  ce.current = b, le.current = S;
70962
71038
  let n = re.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
70963
71039
  if (n.forEach((e) => {
70964
- r.set(e.dataset.cardId, fW(e));
71040
+ r.set(e.dataset.cardId, gW(e));
70965
71041
  }), !e && !t) {
70966
71042
  let e = ne.current, t = ue.current, i = 0;
70967
71043
  if (e) {
@@ -71017,7 +71093,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71017
71093
  ref: te,
71018
71094
  children: /* @__PURE__ */ N("section", {
71019
71095
  ref: ne,
71020
- className: F("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", lW.section, s && lW.sectionLeaving),
71096
+ className: F("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", pW.section, s && pW.sectionLeaving),
71021
71097
  style: {
71022
71098
  ...v,
71023
71099
  minHeight: ae
@@ -71028,16 +71104,16 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71028
71104
  children: [/* @__PURE__ */ M(Ey, {
71029
71105
  title: n,
71030
71106
  postfix: ee,
71031
- titleClassName: F(g, lW.titleText),
71032
- postfixClassName: F(_, lW.countText),
71107
+ titleClassName: F(g, pW.titleText),
71108
+ postfixClassName: F(_, pW.countText),
71033
71109
  trailing: E > 1 ? /* @__PURE__ */ N("div", {
71034
- className: F("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", lW.pageNav),
71110
+ className: F("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", pW.pageNav),
71035
71111
  children: [
71036
71112
  /* @__PURE__ */ M("button", {
71037
71113
  "aria-label": l,
71038
71114
  disabled: b === 1,
71039
71115
  onClick: () => x((e) => e - 1),
71040
- className: F("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", lW.navBtn),
71116
+ className: F("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", pW.navBtn),
71041
71117
  children: /* @__PURE__ */ M(mt, {
71042
71118
  size: 14,
71043
71119
  className: "rtl:scale-x-[-1]",
@@ -71045,7 +71121,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71045
71121
  })
71046
71122
  }),
71047
71123
  /* @__PURE__ */ N("span", {
71048
- className: F("min-w-[32px] select-none px-1 text-center", _, lW.countText),
71124
+ className: F("min-w-[32px] select-none px-1 text-center", _, pW.countText),
71049
71125
  children: [
71050
71126
  b,
71051
71127
  " / ",
@@ -71056,7 +71132,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71056
71132
  "aria-label": u,
71057
71133
  disabled: b === E,
71058
71134
  onClick: () => x((e) => e + 1),
71059
- className: F("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", lW.navBtn),
71135
+ className: F("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", pW.navBtn),
71060
71136
  children: /* @__PURE__ */ M(ht, {
71061
71137
  size: 14,
71062
71138
  className: "rtl:scale-x-[-1]",
@@ -71067,12 +71143,12 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71067
71143
  }) : void 0
71068
71144
  }), /* @__PURE__ */ M("div", {
71069
71145
  ref: re,
71070
- className: F("grid content-start gap-5", lW.gridPage),
71146
+ className: F("grid content-start gap-5", pW.gridPage),
71071
71147
  style: {
71072
71148
  gridTemplateColumns: `repeat(${S}, minmax(0, 1fr))`,
71073
71149
  minHeight: D
71074
71150
  },
71075
- children: T.map((e) => /* @__PURE__ */ M(uW, {
71151
+ children: T.map((e) => /* @__PURE__ */ M(mW, {
71076
71152
  item: e,
71077
71153
  onToggle: r,
71078
71154
  isFavoriteVisible: i,
@@ -71085,7 +71161,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71085
71161
  })]
71086
71162
  })
71087
71163
  });
71088
- }, mW = {
71164
+ }, vW = {
71089
71165
  listContainer: "_listContainer_145s6_1",
71090
71166
  gridClip: "_gridClip_145s6_6",
71091
71167
  favHeader: "_favHeader_145s6_43",
@@ -71094,19 +71170,19 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71094
71170
  selectedCheck: "_selectedCheck_145s6_55",
71095
71171
  starToggleOff: "_starToggleOff_145s6_59",
71096
71172
  selectedRow: "_selectedRow_145s6_72"
71097
- }, hW = ({ data: e }) => e ? /* @__PURE__ */ M("div", {
71173
+ }, yW = ({ data: e }) => e ? /* @__PURE__ */ M("div", {
71098
71174
  className: "flex h-full items-center",
71099
71175
  children: /* @__PURE__ */ M(Dy, { type: e.type })
71100
- }) : null, gW = " / ", _W = ({ data: e, context: t }) => {
71176
+ }) : null, bW = " / ", xW = ({ data: e, context: t }) => {
71101
71177
  if (!e || e.folder.length === 0) return null;
71102
- let n = e.folder.join(gW), 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";
71178
+ let n = e.folder.join(bW), 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";
71103
71179
  return /* @__PURE__ */ N("div", {
71104
71180
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
71105
71181
  children: [
71106
71182
  /* @__PURE__ */ M(At, {
71107
71183
  size: m.SM,
71108
71184
  stroke: h,
71109
- className: F("shrink-0", mW.folderIcon),
71185
+ className: F("shrink-0", vW.folderIcon),
71110
71186
  "aria-hidden": !0
71111
71187
  }),
71112
71188
  /* @__PURE__ */ M(Le, {
@@ -71128,7 +71204,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71128
71204
  })
71129
71205
  ]
71130
71206
  });
71131
- }, vW = ({ data: e, context: t }) => {
71207
+ }, SW = ({ data: e, context: t }) => {
71132
71208
  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;
71133
71209
  return e ? /* @__PURE__ */ N("div", {
71134
71210
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
@@ -71139,7 +71215,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71139
71215
  size: 36,
71140
71216
  initialsName: e.name,
71141
71217
  styles: { badgeClassName: "rounded-[10px]" }
71142
- }), /* @__PURE__ */ M(VV, {
71218
+ }), /* @__PURE__ */ M(GV, {
71143
71219
  credentials: e.credentials,
71144
71220
  loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
71145
71221
  })]
@@ -71152,41 +71228,41 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71152
71228
  className: "min-w-0 flex-1 items-baseline gap-1.5",
71153
71229
  trailing: o ? /* @__PURE__ */ M(ft, {
71154
71230
  size: m.SM,
71155
- className: F("shrink-0", mW.selectedCheck),
71231
+ className: F("shrink-0", vW.selectedCheck),
71156
71232
  "aria-hidden": !0,
71157
71233
  stroke: h
71158
71234
  }) : void 0
71159
71235
  })]
71160
71236
  }) : null;
71161
- }, yW = ({ data: e, context: t }) => {
71237
+ }, CW = ({ data: e, context: t }) => {
71162
71238
  let [n, r] = j(e?.isStarred ?? !1);
71163
71239
  return et(() => {
71164
71240
  r(e?.isStarred ?? !1);
71165
71241
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ M("div", {
71166
71242
  className: "flex h-full items-center justify-end pe-4",
71167
- children: /* @__PURE__ */ M(UV, {
71243
+ children: /* @__PURE__ */ M(qV, {
71168
71244
  isStarred: n,
71169
71245
  onClick: (i) => {
71170
71246
  i.stopPropagation();
71171
71247
  let a = !n;
71172
71248
  r(a), t?.onToggleFavorite?.(e.id, a);
71173
71249
  },
71174
- className: n ? void 0 : mW.starToggleOff
71250
+ className: n ? void 0 : vW.starToggleOff
71175
71251
  })
71176
71252
  });
71177
- }, bW = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ M("div", {
71253
+ }, wW = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ M("div", {
71178
71254
  className: "flex h-full w-full min-w-0 items-center",
71179
- children: /* @__PURE__ */ M(JV, { topics: e.topics })
71180
- }), xW = {
71255
+ children: /* @__PURE__ */ M(QV, { topics: e.topics })
71256
+ }), TW = {
71181
71257
  folder: (e) => e !== Da.Model,
71182
71258
  tags: () => !0,
71183
71259
  favorite: () => !0
71184
- }, SW = (e, t) => Object.fromEntries([
71260
+ }, EW = (e, t) => Object.fromEntries([
71185
71261
  "folder",
71186
71262
  "tags",
71187
71263
  "favorite"
71188
- ].map((n) => [n, (t?.[n] ?? xW[n])(e)])), CW = (e, t = !1, n) => {
71189
- let r = SW(e, n);
71264
+ ].map((n) => [n, (t?.[n] ?? TW[n])(e)])), DW = (e, t = !1, n) => {
71265
+ let r = EW(e, n);
71190
71266
  return [
71191
71267
  {
71192
71268
  headerName: "Name",
@@ -71194,7 +71270,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71194
71270
  minWidth: 220,
71195
71271
  field: "name",
71196
71272
  filter: !1,
71197
- cellRenderer: vW,
71273
+ cellRenderer: SW,
71198
71274
  valueGetter: (e) => e.data?.name
71199
71275
  },
71200
71276
  {
@@ -71204,7 +71280,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71204
71280
  field: "type",
71205
71281
  filter: !1,
71206
71282
  sortable: !1,
71207
- cellRenderer: hW,
71283
+ cellRenderer: yW,
71208
71284
  valueGetter: (e) => e.data?.type
71209
71285
  },
71210
71286
  {
@@ -71214,7 +71290,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71214
71290
  minWidth: 170,
71215
71291
  filter: !1,
71216
71292
  hide: !r.folder,
71217
- cellRenderer: _W,
71293
+ cellRenderer: xW,
71218
71294
  valueGetter: (e) => e.data?.folder
71219
71295
  },
71220
71296
  {
@@ -71225,7 +71301,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71225
71301
  filter: !1,
71226
71302
  sortable: !1,
71227
71303
  hide: !r.tags,
71228
- cellRenderer: bW,
71304
+ cellRenderer: wW,
71229
71305
  valueGetter: (e) => e.data?.topics
71230
71306
  },
71231
71307
  {
@@ -71237,11 +71313,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71237
71313
  sortable: !1,
71238
71314
  resizable: !1,
71239
71315
  hide: t || !r.favorite,
71240
- headerClass: mW.favHeader,
71241
- cellRenderer: yW
71316
+ headerClass: vW.favHeader,
71317
+ cellRenderer: CW
71242
71318
  }
71243
71319
  ];
71244
- }, wW = 60, TW = ({ 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 }) => {
71320
+ }, OW = 60, kW = ({ 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 }) => {
71245
71321
  if (e.length === 0) return /* @__PURE__ */ M("div", {
71246
71322
  className: "flex size-full flex-col items-center justify-center",
71247
71323
  children: /* @__PURE__ */ M(wy, { label: i ?? "No results" })
@@ -71258,7 +71334,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71258
71334
  "--cat-list-selected-bg": h?.selectedRowBackground,
71259
71335
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
71260
71336
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
71261
- }, _ = it(null), { containerRef: v, startRow: y, endRow: b } = FV(e.length, wW), x = A(() => e.slice(y, b), [
71337
+ }, _ = it(null), { containerRef: v, startRow: y, endRow: b } = zV(e.length, OW), x = A(() => e.slice(y, b), [
71262
71338
  e,
71263
71339
  y,
71264
71340
  b
@@ -71271,17 +71347,17 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71271
71347
  _.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
71272
71348
  }, [e]), /* @__PURE__ */ M("div", {
71273
71349
  style: g,
71274
- className: We("w-full rounded-xl border", mW.listContainer),
71350
+ className: We("w-full rounded-xl border", vW.listContainer),
71275
71351
  children: /* @__PURE__ */ N("div", {
71276
71352
  ref: v,
71277
- className: We("rounded-xl", mW.gridClip),
71353
+ className: We("rounded-xl", vW.gridClip),
71278
71354
  children: [
71279
71355
  y > 0 && /* @__PURE__ */ M("div", {
71280
- style: { height: y * wW },
71356
+ style: { height: y * OW },
71281
71357
  "aria-hidden": !0
71282
71358
  }),
71283
71359
  /* @__PURE__ */ M(ce, {
71284
- columnDefs: CW(t, f, p),
71360
+ columnDefs: DW(t, f, p),
71285
71361
  rowData: x,
71286
71362
  getRowId: (e) => e.id,
71287
71363
  withoutHeaderBorders: !0,
@@ -71291,7 +71367,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71291
71367
  },
71292
71368
  emptyStateTitle: i,
71293
71369
  additionalGridOptions: {
71294
- rowHeight: wW,
71370
+ rowHeight: OW,
71295
71371
  defaultColDef: {
71296
71372
  filter: !1,
71297
71373
  floatingFilter: !1
@@ -71309,18 +71385,18 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71309
71385
  e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
71310
71386
  } : void 0,
71311
71387
  rowClass: c ? "cursor-pointer" : void 0,
71312
- getRowClass: (e) => e.data?.id === u ? mW.selectedRow : void 0
71388
+ getRowClass: (e) => e.data?.id === u ? vW.selectedRow : void 0
71313
71389
  },
71314
71390
  ariaLabel: r
71315
71391
  }),
71316
71392
  b < e.length && /* @__PURE__ */ M("div", {
71317
- style: { height: (e.length - b) * wW },
71393
+ style: { height: (e.length - b) * OW },
71318
71394
  "aria-hidden": !0
71319
71395
  })
71320
71396
  ]
71321
71397
  })
71322
71398
  });
71323
- }, EW = {
71399
+ }, AW = {
71324
71400
  filterBtn: "_filterBtn_ehf8i_1",
71325
71401
  filterBtnActive: "_filterBtnActive_ehf8i_18",
71326
71402
  filterBtnOpen: "_filterBtnOpen_ehf8i_22",
@@ -71334,13 +71410,13 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71334
71410
  divider: "_divider_ehf8i_74",
71335
71411
  sectionLabel: "_sectionLabel_ehf8i_78",
71336
71412
  footer: "_footer_ehf8i_82"
71337
- }, DW = (e, t, n, r, i) => {
71413
+ }, jW = (e, t, n, r, i) => {
71338
71414
  let a = e.size > 0;
71339
71415
  return n && a ? `${r} · ${e.size}` : n ? r : a ? kn(e, t, i) : i;
71340
- }, OW = (e, t) => {
71416
+ }, MW = (e, t) => {
71341
71417
  let n = new Set(t);
71342
71418
  return n.has(e) ? n.delete(e) : n.add(e), n;
71343
- }, kW = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: s = "Topics", defaultLabel: c = "From", clearLabel: l = "Clear", applyLabel: u = "Apply", typography: d, colors: f }) => {
71419
+ }, NW = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: s = "Topics", defaultLabel: c = "From", clearLabel: l = "Clear", applyLabel: u = "Apply", typography: d, colors: f }) => {
71344
71420
  let p = (r ?? !1) || e.size > 0, [g, _] = j(!1), v = os({
71345
71421
  "--cat-filter-btn-bg": f?.buttonBackground,
71346
71422
  "--cat-filter-btn-border": f?.buttonBorder,
@@ -71360,7 +71436,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71360
71436
  "--cat-filter-section-label": f?.sectionLabel,
71361
71437
  "--cat-filter-divider": f?.divider,
71362
71438
  "--cat-filter-footer-border": f?.footerBorder
71363
- }), y = A(() => n == null ? [] : [...n].sort(), [n]), b = DW(e, n, r, a, c), [x, S] = j(() => new Set(e)), [C, w] = j(r ?? !1);
71439
+ }), y = A(() => n == null ? [] : [...n].sort(), [n]), b = jW(e, n, r, a, c), [x, S] = j(() => new Set(e)), [C, w] = j(r ?? !1);
71364
71440
  et(() => {
71365
71441
  g && (S(new Set(e)), w(r ?? !1));
71366
71442
  }, [
@@ -71404,7 +71480,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71404
71480
  "aria-label": c,
71405
71481
  tabIndex: -1,
71406
71482
  style: v,
71407
- className: F("min-w-[360px] rounded-xl p-[6px]", EW.overlay),
71483
+ className: F("min-w-[360px] rounded-xl p-[6px]", AW.overlay),
71408
71484
  onKeyDown: oe,
71409
71485
  children: [
71410
71486
  /* @__PURE__ */ N("div", {
@@ -71414,32 +71490,32 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71414
71490
  ref: (e) => {
71415
71491
  ne.current[0] = e;
71416
71492
  },
71417
- className: F("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", EW.row, C && EW.rowChecked),
71493
+ className: F("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", AW.row, C && AW.rowChecked),
71418
71494
  onClick: () => w(!C),
71419
71495
  onKeyDown: O(() => w(!C)),
71420
71496
  children: [/* @__PURE__ */ M(o, {
71421
71497
  isSelected: C,
71422
71498
  className: "shrink-0"
71423
71499
  }), /* @__PURE__ */ M("span", {
71424
- className: F(EW.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
71500
+ className: F(AW.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
71425
71501
  children: a
71426
71502
  })]
71427
71503
  }),
71428
71504
  y.length > 0 && /* @__PURE__ */ N(at, { children: [
71429
71505
  /* @__PURE__ */ M("div", {
71430
71506
  role: "separator",
71431
- className: F("my-1 h-px", EW.divider),
71507
+ className: F("my-1 h-px", AW.divider),
71432
71508
  "aria-hidden": !0
71433
71509
  }),
71434
71510
  /* @__PURE__ */ M("div", {
71435
- className: F("px-[10px] pb-1 pt-[10px]", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", EW.sectionLabel),
71511
+ className: F("px-[10px] pb-1 pt-[10px]", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", AW.sectionLabel),
71436
71512
  "aria-hidden": !0,
71437
71513
  children: s
71438
71514
  }),
71439
71515
  /* @__PURE__ */ M("div", {
71440
71516
  className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
71441
71517
  children: y.map((e, t) => {
71442
- let n = x.has(e), r = t + 1, i = () => S(OW(e, x));
71518
+ let n = x.has(e), r = t + 1, i = () => S(MW(e, x));
71443
71519
  return /* @__PURE__ */ N("div", {
71444
71520
  role: "menuitemcheckbox",
71445
71521
  "aria-checked": n,
@@ -71447,14 +71523,14 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71447
71523
  ref: (e) => {
71448
71524
  ne.current[r] = e;
71449
71525
  },
71450
- className: F("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", EW.row, n && EW.rowChecked),
71526
+ className: F("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", AW.row, n && AW.rowChecked),
71451
71527
  onClick: i,
71452
71528
  onKeyDown: O(i),
71453
71529
  children: [/* @__PURE__ */ M(o, {
71454
71530
  isSelected: n,
71455
71531
  className: "shrink-0"
71456
71532
  }), /* @__PURE__ */ M("span", {
71457
- className: EW.rowLabel,
71533
+ className: AW.rowLabel,
71458
71534
  children: e
71459
71535
  })]
71460
71536
  }, e);
@@ -71462,7 +71538,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71462
71538
  })
71463
71539
  ] }),
71464
71540
  /* @__PURE__ */ N("div", {
71465
- className: F("mt-1 flex items-center px-1 py-3", EW.footer),
71541
+ className: F("mt-1 flex items-center px-1 py-3", AW.footer),
71466
71542
  onKeyDown: (e) => {
71467
71543
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
71468
71544
  },
@@ -71484,31 +71560,31 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71484
71560
  "aria-expanded": g,
71485
71561
  onKeyDown: ae,
71486
71562
  style: v,
71487
- className: F("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", EW.filterBtn, p && EW.filterBtnActive, g && EW.filterBtnOpen),
71563
+ className: F("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", AW.filterBtn, p && AW.filterBtnActive, g && AW.filterBtnOpen),
71488
71564
  children: [
71489
71565
  /* @__PURE__ */ M(kt, {
71490
71566
  size: m.SM,
71491
71567
  stroke: h,
71492
- className: F("shrink-0", EW.filterBtnFunnel),
71568
+ className: F("shrink-0", AW.filterBtnFunnel),
71493
71569
  "aria-hidden": !0
71494
71570
  }),
71495
71571
  /* @__PURE__ */ M("span", {
71496
- className: F(EW.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
71572
+ className: F(AW.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
71497
71573
  children: b
71498
71574
  }),
71499
71575
  /* @__PURE__ */ M(pt, {
71500
71576
  size: 14,
71501
71577
  stroke: h,
71502
- className: F("shrink-0 transition-transform duration-150", EW.filterBtnChevron, g && "rotate-180"),
71578
+ className: F("shrink-0 transition-transform duration-150", AW.filterBtnChevron, g && "rotate-180"),
71503
71579
  "aria-hidden": !0
71504
71580
  })
71505
71581
  ]
71506
71582
  })
71507
71583
  });
71508
- }, AW = {
71584
+ }, PW = {
71509
71585
  section: "_section_mh952_1",
71510
71586
  divider: "_divider_mh952_5"
71511
- }, jW = ({ totalCount: e, viewMode: i, onViewModeChange: a, title: o = "Browse", browseHeaderRenderer: s, styles: c, query: l, onQueryChange: u, searchPlaceholder: d, gridViewLabel: f = "Grid view", listViewLabel: p = "List view", viewToggleLabel: g = "View mode", sortKey: _, sortOptions: v, filters: y, onFiltersChange: b, filterValues: x, isMyAppsActive: S, onMyAppsChange: C, filterFromLabel: w, filterMyAppsLabel: T, filterTopicsLabel: E }) => {
71587
+ }, FW = ({ totalCount: e, viewMode: i, onViewModeChange: a, title: o = "Browse", browseHeaderRenderer: s, styles: c, query: l, onQueryChange: u, searchPlaceholder: d, gridViewLabel: f = "Grid view", listViewLabel: p = "List view", viewToggleLabel: g = "View mode", sortKey: _, sortOptions: v, filters: y, onFiltersChange: b, filterValues: x, isMyAppsActive: S, onMyAppsChange: C, filterFromLabel: w, filterMyAppsLabel: T, filterTopicsLabel: E }) => {
71512
71588
  let ee = c?.typography?.titleClassName ?? "dial-body-semi-text", te = c?.typography?.countClassName ?? "dial-tiny-semi-text", ne = A(() => [{
71513
71589
  value: Tn.Grid,
71514
71590
  icon: /* @__PURE__ */ M(Pt, {
@@ -71548,7 +71624,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71548
71624
  value: i,
71549
71625
  onChange: a,
71550
71626
  items: ne
71551
- }), v != null && v.length > 0 && /* @__PURE__ */ N(at, { children: [/* @__PURE__ */ M("div", { className: F("h-4 w-px shrink-0", AW.divider) }), /* @__PURE__ */ M(n, {
71627
+ }), v != null && v.length > 0 && /* @__PURE__ */ N(at, { children: [/* @__PURE__ */ M("div", { className: F("h-4 w-px shrink-0", PW.divider) }), /* @__PURE__ */ M(n, {
71552
71628
  label: D,
71553
71629
  variant: r.Primary,
71554
71630
  appearance: t.Ghost,
@@ -71570,7 +71646,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71570
71646
  placeholder: d,
71571
71647
  "aria-label": d
71572
71648
  })
71573
- }), /* @__PURE__ */ M(kW, {
71649
+ }), /* @__PURE__ */ M(NW, {
71574
71650
  checked: y ?? /* @__PURE__ */ new Set(),
71575
71651
  onChange: b ?? (() => void 0),
71576
71652
  values: x,
@@ -71583,12 +71659,12 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71583
71659
  })]
71584
71660
  })]
71585
71661
  });
71586
- }, MW = ({ 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, ..._ }) => {
71662
+ }, IW = ({ 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, ..._ }) => {
71587
71663
  let v = { "--cat-browse-divider": r?.colors?.divider };
71588
71664
  return /* @__PURE__ */ M("section", {
71589
- className: F("flex-shrink-0 px-4", AW.section),
71665
+ className: F("flex-shrink-0 px-4", PW.section),
71590
71666
  style: v,
71591
- children: /* @__PURE__ */ M(jW, {
71667
+ children: /* @__PURE__ */ M(FW, {
71592
71668
  styles: r,
71593
71669
  query: e,
71594
71670
  onQueryChange: t,
@@ -71609,11 +71685,11 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71609
71685
  ..._
71610
71686
  })
71611
71687
  });
71612
- }, NW = {
71688
+ }, LW = {
71613
71689
  root: "_root_1h83l_1",
71614
71690
  heading: "_heading_1h83l_5",
71615
71691
  headingTitle: "_headingTitle_1h83l_9"
71616
- }, PW = ({ label: e, options: i, onClick: a }) => {
71692
+ }, RW = ({ label: e, options: i, onClick: a }) => {
71617
71693
  let o = it(null);
71618
71694
  return i?.length ? /* @__PURE__ */ M("div", {
71619
71695
  ref: o,
@@ -71635,8 +71711,8 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71635
71711
  }),
71636
71712
  onClick: a
71637
71713
  });
71638
- }, FW = ({ 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: ee, isShareVisible: te, isSharePrimary: ne, onFetchDetails: re, onEdit: D, onDownload: ie, isDownloadVisible: ae, isDownloadPrimary: oe, onLoadContentFile: se, onLoadContentFilePreview: O, renderContentFilePreview: ce, onDelete: le, onUnshare: ue, isUnshareVisible: de, onRevokeShare: fe, onFetchRecipientsCount: pe, isRevokeShareVisible: me, onUnpublish: he, isUnpublishVisible: ge, onLogin: _e, onLogout: ve, onCreateClick: ye, createOptions: be, hideCreateButton: xe = !1, hidePageTitle: Se = !1, isReadonly: Ce = !1, initialViewMode: we = Tn.Grid, isFullWidth: Te = !1, selectedItemId: Ee, onCardClick: De, isLoading: Oe, styles: ke, detailsTexts: Ae, detailsLimitsFooterNote: je, initialDetailsItemId: Ne, sortKey: Fe, onSortChange: Ie, filterTopics: Le, onFilterTopicsChange: Re, isMyAppsActive: ze, onMyAppsActiveChange: Be, activeTab: Ve, onActiveTabChange: He }) => {
71639
- let { typography: Ue } = ke ?? {}, We = OV(ke), Ge = i?.pageTitle ?? "Catalog", Ke = i?.createLabel ?? "Create", qe = i?.favoritesTitle ?? "Your favorites", Je = i?.browseTitle ?? "Browse", Ye = i?.searchPlaceholder ?? "Search models, tools, agents…", Xe = i?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ze = i?.featuredLabel ?? "Featured", Qe = i?.gridViewLabel ?? "Grid view", $e = i?.listViewLabel ?? "List view", tt = i?.viewToggleLabel ?? "View mode", nt = i?.ariaLabel ?? "Catalog", rt = [
71714
+ }, zW = ({ 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: ee, isShareVisible: te, isSharePrimary: ne, onFetchDetails: re, onEdit: D, onDownload: ie, isDownloadVisible: ae, isDownloadPrimary: oe, onLoadContentFile: se, onLoadContentFilePreview: O, renderContentFilePreview: ce, onDelete: le, onUnshare: ue, isUnshareVisible: de, onRevokeShare: fe, onFetchRecipientsCount: pe, isRevokeShareVisible: me, onUnpublish: he, isUnpublishVisible: ge, onLogin: _e, onLogout: ve, onCreateClick: ye, createOptions: be, hideCreateButton: xe = !1, hidePageTitle: Se = !1, isReadonly: Ce = !1, initialViewMode: we = Tn.Grid, isFullWidth: Te = !1, selectedItemId: Ee, onCardClick: De, isLoading: Oe, styles: ke, detailsTexts: Ae, detailsLimitsFooterNote: je, initialDetailsItemId: Ne, sortKey: Fe, onSortChange: Ie, filterTopics: Le, onFilterTopicsChange: Re, isMyAppsActive: ze, onMyAppsActiveChange: Be, activeTab: Ve, onActiveTabChange: He }) => {
71715
+ let { typography: Ue } = ke ?? {}, We = MV(ke), Ge = i?.pageTitle ?? "Catalog", Ke = i?.createLabel ?? "Create", qe = i?.favoritesTitle ?? "Your favorites", Je = i?.browseTitle ?? "Browse", Ye = i?.searchPlaceholder ?? "Search models, tools, agents…", Xe = i?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ze = i?.featuredLabel ?? "Featured", Qe = i?.gridViewLabel ?? "Grid view", $e = i?.listViewLabel ?? "List view", tt = i?.viewToggleLabel ?? "View mode", nt = i?.ariaLabel ?? "Catalog", rt = [
71640
71716
  {
71641
71717
  key: En.RecentlyUpdated,
71642
71718
  label: i?.sortRecentlyUpdatedLabel ?? "Recently Updated",
@@ -71659,7 +71735,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71659
71735
  mt(e), Re?.(e);
71660
71736
  }, [Re]), St = k((e) => {
71661
71737
  gt(e), Be?.(e);
71662
- }, [Be]), Ct = A(() => e.filter((e) => !e.isHidden), [e]), wt = A(() => n ?? Mn(Ct), [n, Ct]), Tt = A(() => t ?? xV(Ct, i?.tabLabels), [
71738
+ }, [Be]), Ct = A(() => e.filter((e) => !e.isHidden), [e]), wt = A(() => n ?? Mn(Ct), [n, Ct]), Tt = A(() => t ?? TV(Ct, i?.tabLabels), [
71663
71739
  t,
71664
71740
  Ct,
71665
71741
  i?.tabLabels
@@ -71743,17 +71819,17 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71743
71819
  children: /* @__PURE__ */ M(Me, {})
71744
71820
  }) : /* @__PURE__ */ N("section", {
71745
71821
  "aria-label": nt,
71746
- className: F("flex size-full min-h-0 flex-1 flex-col", NW.root),
71822
+ className: F("flex size-full min-h-0 flex-1 flex-col", LW.root),
71747
71823
  style: We,
71748
71824
  children: [
71749
71825
  (!Se || rn) && /* @__PURE__ */ M("div", {
71750
- className: F("shrink-0", NW.heading),
71826
+ className: F("shrink-0", LW.heading),
71751
71827
  children: /* @__PURE__ */ N("div", {
71752
71828
  className: "flex h-[64px] w-full items-center justify-between px-8",
71753
71829
  children: [!Se && /* @__PURE__ */ M("h1", {
71754
- className: F(Ue?.pageHeadingFontClassName ?? "dial-display2-text", NW.headingTitle),
71830
+ className: F(Ue?.pageHeadingFontClassName ?? "dial-display2-text", LW.headingTitle),
71755
71831
  children: Ge
71756
- }), rn && /* @__PURE__ */ M(PW, {
71832
+ }), rn && /* @__PURE__ */ M(RW, {
71757
71833
  label: Ke,
71758
71834
  options: be,
71759
71835
  onClick: ye
@@ -71765,7 +71841,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71765
71841
  children: [
71766
71842
  an && /* @__PURE__ */ M("div", {
71767
71843
  className: "w-full px-8",
71768
- children: /* @__PURE__ */ M(pW, {
71844
+ children: /* @__PURE__ */ M(_W, {
71769
71845
  items: r,
71770
71846
  totalCount: r.length,
71771
71847
  title: qe,
@@ -71780,7 +71856,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71780
71856
  }),
71781
71857
  /* @__PURE__ */ M("div", {
71782
71858
  className: "w-full px-4 pt-6",
71783
- children: /* @__PURE__ */ M(MW, {
71859
+ children: /* @__PURE__ */ M(IW, {
71784
71860
  totalCount: $t.length,
71785
71861
  viewMode: st,
71786
71862
  onViewModeChange: nn,
@@ -71820,7 +71896,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71820
71896
  className: F(en.length > 0 ? ["min-h-full w-full px-8 py-6", !Te && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", en.length === 0 && "px-8 py-6"),
71821
71897
  children: [/* @__PURE__ */ M("div", {
71822
71898
  className: F(en.length > 0 ? "pb-8" : "size-full flex-1", st !== Tn.Grid && "hidden"),
71823
- children: /* @__PURE__ */ M(ZV, {
71899
+ children: /* @__PURE__ */ M(tH, {
71824
71900
  items: en,
71825
71901
  query: at,
71826
71902
  onToggleFavorite: o,
@@ -71833,7 +71909,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71833
71909
  })
71834
71910
  }), lt && /* @__PURE__ */ M("div", {
71835
71911
  className: F("pb-8", st !== Tn.Cards && "hidden", en.length === 0 && "h-full"),
71836
- children: /* @__PURE__ */ M(TW, {
71912
+ children: /* @__PURE__ */ M(kW, {
71837
71913
  type: kt,
71838
71914
  items: en,
71839
71915
  query: at,
@@ -71852,7 +71928,7 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71852
71928
  })
71853
71929
  ]
71854
71930
  }),
71855
- Yt != null && /* @__PURE__ */ M(cW, {
71931
+ Yt != null && /* @__PURE__ */ M(fW, {
71856
71932
  item: Yt,
71857
71933
  isOpen: Lt,
71858
71934
  isStarred: tn,
@@ -71906,4 +71982,4 @@ var PH = (e) => e.reduce((e, t) => t.type === Dn.File ? e + 1 : e + PH(t.items),
71906
71982
  });
71907
71983
  };
71908
71984
  //#endregion
71909
- export { zV as AppIdentity, YV as Card, ZV as CardGrid, XV as CardRowRenderer, FW as Catalog, Dn as CatalogContentNodeType, On as CatalogContentPreviewType, mn as CatalogDetailsTab, hn as CatalogLimitStatus, En as CatalogSortKey, Tn as CatalogViewMode, pn as CodeLanguage, kU as ContentTab, bn as CredentialStatus, VV as CredentialsBadge, Cn as CredentialsBadgeState, xn as CredentialsLevel, Sn as CredentialsUiState, vn as DeploymentSize, gn as DetailsConfirmationKind, _n as DetailsConfirmationVariant, uW as FavoriteCard, pW as Favorites, kW as Filter, JH as InfoCard, TW as ListView, MW as Toolbar, yn as ToolsetAuthenticationType, KV as TopicTag, xV as buildCatalogTabs, Nn as filterCatalogItems, TV as getCredentialsBadgeState, wV as getCredentialsUiState, EV as getSignedInLevel, Mn as getTopicOptions, Pn as sortCatalogItems, SV as useFavColumns, IV as useScrollVirtualizer };
71985
+ export { UV as AppIdentity, $V as Card, tH as CardGrid, eH as CardRowRenderer, zW as Catalog, Dn as CatalogContentNodeType, On as CatalogContentPreviewType, mn as CatalogDetailsTab, hn as CatalogLimitStatus, En as CatalogSortKey, Tn as CatalogViewMode, pn as CodeLanguage, NU as ContentTab, bn as CredentialStatus, GV as CredentialsBadge, Cn as CredentialsBadgeState, xn as CredentialsLevel, Sn as CredentialsUiState, vn as DeploymentSize, gn as DetailsConfirmationKind, _n as DetailsConfirmationVariant, mW as FavoriteCard, _W as Favorites, NW as Filter, QH as InfoCard, kW as ListView, IW as Toolbar, yn as ToolsetAuthenticationType, XV as TopicTag, TV as buildCatalogTabs, Nn as filterCatalogItems, kV as getCredentialsBadgeState, OV as getCredentialsUiState, AV as getSignedInLevel, Mn as getTopicOptions, Pn as sortCatalogItems, EV as useFavColumns, BV as useScrollVirtualizer };