@epam/ai-dial-publish-panel 1.1.0-dev.377 → 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.
Files changed (2) hide show
  1. package/index.js +240 -164
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -8640,7 +8640,7 @@ var pr = (e) => {
8640
8640
  ]) }), kr = (e) => "dataTransfer" in e && e.dataTransfer !== null, Ar = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: n, allowedFileTypes: r, validationMessages: i = {}, onUploadArchive: a, prepareUploadFileName: s, uploadEnabled: l = !0, currentFolder: u } = {}) => {
8641
8641
  let [d, h] = m(!1), [g, _] = m(!1), [v, y] = m(), b = p(null), x = p(""), S = p([]), C = f(() => !!u?.permissions?.includes(Jn.WRITE), [u]), [w, T] = m(/* @__PURE__ */ new Map()), [E, ee] = m(null), D = o((e) => !r || r.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => cr(r, e.type, t)), [r]), te = o(() => {
8642
8642
  T(/* @__PURE__ */ new Map()), ee(null);
8643
- }, []), { conflictingFiles: ne, conflictResolutionOpen: re, hasActiveConflictRef: ie, startConflictResolution: ae, closeConflictResolution: oe, openConflictResolution: se, handleReplaceAll: O, handleDuplicateAll: ce, handleCancelAll: le, handleDecideForEach: ue } = wr({
8643
+ }, []), { conflictingFiles: ne, conflictResolutionOpen: re, hasActiveConflictRef: ie, checkForConflicts: ae, startConflictResolution: oe, closeConflictResolution: se, openConflictResolution: O, handleReplaceAll: ce, handleDuplicateAll: le, handleCancelAll: ue, handleDecideForEach: de } = wr({
8644
8644
  getDestinationFiles: () => S.current,
8645
8645
  onResolve: (t, n) => {
8646
8646
  if (!l || !C) {
@@ -8657,7 +8657,7 @@ var pr = (e) => {
8657
8657
  name: n
8658
8658
  };
8659
8659
  }).filter(Boolean);
8660
- if (r[0]?.fileContent?.type === "application/zip") {
8660
+ if (E.isArchive && r[0]) {
8661
8661
  let { fileContent: e, name: t } = r[0];
8662
8662
  a?.(e, t, n);
8663
8663
  } else r.length > 0 && e?.(r, n);
@@ -8665,10 +8665,10 @@ var pr = (e) => {
8665
8665
  }
8666
8666
  });
8667
8667
  c(() => {
8668
- l && C || (h(!1), _(!1), y(void 0), oe(), te());
8668
+ l && C || (h(!1), _(!1), y(void 0), se(), te());
8669
8669
  }, [
8670
8670
  l,
8671
- oe,
8671
+ se,
8672
8672
  te,
8673
8673
  C
8674
8674
  ]), c(() => {
@@ -8686,7 +8686,7 @@ var pr = (e) => {
8686
8686
  window.removeEventListener("dragenter", t), window.removeEventListener("dragleave", n), window.removeEventListener("drop", r), window.removeEventListener("dragover", i);
8687
8687
  };
8688
8688
  }, [l, C]);
8689
- let de = o((e) => n ? e.filter((e) => e.fileContent.size > n).map((e) => e.name) : [], [n]), fe = o((e, t) => e.map((e) => ({
8689
+ let fe = o((e) => n ? e.filter((e) => e.fileContent.size > n).map((e) => e.name) : [], [n]), pe = o((e, t) => e.map((e) => ({
8690
8690
  id: e.name,
8691
8691
  name: e.name,
8692
8692
  folderId: t,
@@ -8694,13 +8694,13 @@ var pr = (e) => {
8694
8694
  nodeType: Kn.ITEM,
8695
8695
  parentPath: t,
8696
8696
  contentLength: e.fileContent.size
8697
- })), []), pe = o(async (r, a, o) => {
8697
+ })), []), me = o(async (r, a, o) => {
8698
8698
  if (!l || !C) return !1;
8699
8699
  y(void 0), S.current = o;
8700
8700
  let c = s ? r.map((e) => ({
8701
8701
  ...e,
8702
8702
  name: s(e.name)
8703
- })) : r, u = de(c);
8703
+ })) : r, u = fe(c);
8704
8704
  if (u.length > 0) {
8705
8705
  let e = n ? (n / 1048576).toFixed(2) : 0;
8706
8706
  return y(i.oversizedFiles || `Files exceed maximum size (${e}MB): ${u.join(", ")}`), !1;
@@ -8711,45 +8711,45 @@ var pr = (e) => {
8711
8711
  } catch {
8712
8712
  return y(i.validationError || "Validation error occurred"), !1;
8713
8713
  }
8714
- T(new Map(c.map((e) => [e.name, e])));
8715
- let d = fe(c, a);
8716
- return ee({ destinationFolder: a }), ae(a, d, { destinationFolder: a }).hasConflicts ? !1 : (e?.(c, a), te(), !0);
8714
+ let d = pe(c, a), { conflicts: f } = ae(a, d), p = new Set(f.map((e) => e.name)), m = c.filter((e) => !p.has(e.name));
8715
+ return m.length > 0 && e?.(m, a), p.size === 0 ? (te(), !0) : (S.current = [...o, ...pe(m, a)], T(new Map(c.filter((e) => p.has(e.name)).map((e) => [e.name, e]))), ee({ destinationFolder: a }), oe(a, d.filter((e) => p.has(e.name)), { destinationFolder: a }), !1);
8717
8716
  }, [
8718
8717
  l,
8719
8718
  e,
8720
8719
  t,
8721
8720
  s,
8722
- de,
8721
+ fe,
8723
8722
  n,
8724
8723
  i,
8725
- fe,
8724
+ pe,
8726
8725
  ae,
8726
+ oe,
8727
8727
  te,
8728
8728
  C
8729
- ]), me = o(() => {
8730
- O(), te();
8731
- }, [O, te]), he = o(() => {
8729
+ ]), he = o(() => {
8732
8730
  ce(), te();
8733
8731
  }, [ce, te]), ge = o(() => {
8734
8732
  le(), te();
8735
- }, [le, te]), _e = o((e) => {
8736
- ue(e), te();
8737
- }, [ue, te]), ve = o(() => {
8738
- oe(), ie.current || te();
8733
+ }, [le, te]), _e = o(() => {
8734
+ ue(), te();
8735
+ }, [ue, te]), ve = o((e) => {
8736
+ de(e), te();
8737
+ }, [de, te]), ye = o(() => {
8738
+ se(), ie.current || te();
8739
8739
  }, [
8740
- oe,
8740
+ se,
8741
8741
  ie,
8742
8742
  te
8743
- ]), ye = o((e) => {
8743
+ ]), be = o((e) => {
8744
8744
  !l || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && h(!0));
8745
- }, [l, C]), be = o((e) => {
8745
+ }, [l, C]), xe = o((e) => {
8746
8746
  if (!l || !C) return;
8747
8747
  e.preventDefault(), e.stopPropagation();
8748
8748
  let t = e.currentTarget.getBoundingClientRect(), n = e.clientX, r = e.clientY;
8749
8749
  (n <= t.left || n >= t.right || r <= t.top || r >= t.bottom) && h(!1);
8750
- }, [l, C]), xe = o((e) => {
8750
+ }, [l, C]), Se = o((e) => {
8751
8751
  !l || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && (e.dataTransfer.dropEffect = "copy"));
8752
- }, [l, C]), Se = o(async (e, t, n) => {
8752
+ }, [l, C]), Ce = o(async (e, t, n) => {
8753
8753
  if (!l || !C || (e.preventDefault(), e.stopPropagation(), h(!1), !e.dataTransfer.types.includes("Files"))) return;
8754
8754
  let r = Array.from(e.dataTransfer.items || []), a = [], o = !1;
8755
8755
  if (r.length > 0 && r.forEach((e) => {
@@ -8773,16 +8773,16 @@ var pr = (e) => {
8773
8773
  y(i.unsupportedFiles || "Selected files are not supported");
8774
8774
  return;
8775
8775
  }
8776
- await pe(s, t, n);
8776
+ await me(s, t, n);
8777
8777
  }, [
8778
8778
  l,
8779
8779
  D,
8780
- pe,
8780
+ me,
8781
8781
  i,
8782
8782
  C
8783
- ]), Ce = p(() => {});
8783
+ ]), we = p(() => {});
8784
8784
  c(() => {
8785
- Ce.current = async () => {
8785
+ we.current = async () => {
8786
8786
  let e = b.current;
8787
8787
  if (!e) return;
8788
8788
  if (!l || !C) {
@@ -8799,7 +8799,7 @@ var pr = (e) => {
8799
8799
  return;
8800
8800
  }
8801
8801
  try {
8802
- await pe(t, x.current, S.current);
8802
+ await me(t, x.current, S.current);
8803
8803
  } catch {
8804
8804
  y(i.validationError || "Upload failed");
8805
8805
  } finally {
@@ -8810,12 +8810,12 @@ var pr = (e) => {
8810
8810
  l,
8811
8811
  C,
8812
8812
  D,
8813
- pe,
8813
+ me,
8814
8814
  i
8815
8815
  ]), c(() => {
8816
8816
  let e = document.createElement("input");
8817
8817
  e.type = "file", e.multiple = !0, e.style.display = "none", document.body.appendChild(e), b.current = e;
8818
- let t = () => Ce.current?.();
8818
+ let t = () => we.current?.();
8819
8819
  return e.addEventListener("change", t), () => {
8820
8820
  e.removeEventListener("change", t), b.current === e && (document.body.removeChild(e), b.current = null);
8821
8821
  };
@@ -8823,9 +8823,9 @@ var pr = (e) => {
8823
8823
  let e = b.current;
8824
8824
  e && (r && r.length > 0 ? e.accept = r.join(",") : e.removeAttribute("accept"));
8825
8825
  }, [r]);
8826
- let we = o((e, t) => {
8826
+ let Te = o((e, t) => {
8827
8827
  !l || !C || (x.current = e, S.current = t, b.current && b.current.click());
8828
- }, [l, C]), Te = o((e, t) => {
8828
+ }, [l, C]), Ee = o((e, t) => {
8829
8829
  if (!a || !l || !C) return;
8830
8830
  let n = document.createElement("input");
8831
8831
  n.type = "file", n.accept = ".zip,application/zip", n.multiple = !1, n.style.display = "none", n.addEventListener("change", () => {
@@ -8844,10 +8844,13 @@ var pr = (e) => {
8844
8844
  contentLength: r.size,
8845
8845
  contentType: r.type
8846
8846
  };
8847
- if (S.current = t, ee({ destinationFolder: e }), T(/* @__PURE__ */ new Map([[c.path, {
8847
+ if (S.current = t, ee({
8848
+ destinationFolder: e,
8849
+ isArchive: !0
8850
+ }), T(/* @__PURE__ */ new Map([[c.path, {
8848
8851
  fileContent: r,
8849
8852
  name: o
8850
- }]])), ae(e, [c], { destinationFolder: e }).hasConflicts) {
8853
+ }]])), oe(e, [c], { destinationFolder: e }).hasConflicts) {
8851
8854
  document.body.removeChild(n);
8852
8855
  return;
8853
8856
  }
@@ -8861,33 +8864,33 @@ var pr = (e) => {
8861
8864
  a,
8862
8865
  l,
8863
8866
  C,
8864
- ae,
8867
+ oe,
8865
8868
  s
8866
8869
  ]);
8867
8870
  return {
8868
8871
  isDragging: d,
8869
8872
  isDraggingOverWindow: g,
8870
8873
  uploadError: v,
8871
- handleDragEnter: ye,
8872
- handleDragLeave: be,
8873
- handleDragOver: xe,
8874
- handleDrop: Se,
8874
+ handleDragEnter: be,
8875
+ handleDragLeave: xe,
8876
+ handleDragOver: Se,
8877
+ handleDrop: Ce,
8875
8878
  clearError: o(() => {
8876
8879
  y(void 0);
8877
8880
  }, []),
8878
- handleUpload: pe,
8879
- openFileDialog: we,
8880
- openArchiveDialog: Te,
8881
+ handleUpload: me,
8882
+ openFileDialog: Te,
8883
+ openArchiveDialog: Ee,
8881
8884
  fileInputRef: b,
8882
8885
  uploadConflictingFiles: ne,
8883
8886
  uploadConflictResolutionOpen: re,
8884
8887
  hasActiveUploadConflictRef: ie,
8885
- openUploadConflictResolution: se,
8886
- closeUploadConflictResolution: ve,
8887
- handleUploadConflictReplace: me,
8888
- handleUploadConflictDuplicate: he,
8889
- handleUploadConflictCancel: ge,
8890
- handleUploadConflictDecideForEach: _e
8888
+ openUploadConflictResolution: O,
8889
+ closeUploadConflictResolution: ye,
8890
+ handleUploadConflictReplace: he,
8891
+ handleUploadConflictDuplicate: ge,
8892
+ handleUploadConflictCancel: _e,
8893
+ handleUploadConflictDecideForEach: ve
8891
8894
  };
8892
8895
  }, jr = n(void 0), Mr = { hiddenItemWarning: `${De.Warning}__A dot at the start of the name will make the item hidden` }, Nr = { consecutiveDotsError: "Name cannot contain consecutive dots" }, Pr = {
8893
8896
  emptyName: "Name cannot be empty",
@@ -66860,12 +66863,30 @@ var qz = 2e3, Jz = (e, t = qz) => {
66860
66863
  return i.observe(n), i.observe(r), () => i.disconnect();
66861
66864
  }, [s]), {
66862
66865
  scrollContainerRef: e,
66863
- tableRef: t,
66866
+ contentRef: t,
66864
66867
  hasContentBeyondStart: n,
66865
66868
  hasContentBeyondEnd: i,
66866
66869
  handleScroll: s
66867
66870
  };
66868
66871
  }, oB = {
66872
+ scrollContainer: "_scrollContainer_1f433_1",
66873
+ mathContent: "_mathContent_1f433_24"
66874
+ }, sB = a(({ children: e, className: t, scrollRegionAriaLabel: n = "Scrollable formula" }) => {
66875
+ let { scrollContainerRef: r, contentRef: i, hasContentBeyondStart: a, hasContentBeyondEnd: o, handleScroll: s } = aB(), c = a || o;
66876
+ return /* @__PURE__ */ k("div", {
66877
+ ref: r,
66878
+ className: Do("w-full min-w-0 max-w-full overflow-x-auto overflow-y-hidden", oB.scrollContainer, t),
66879
+ onScroll: s,
66880
+ role: c ? "region" : void 0,
66881
+ "aria-label": c ? n : void 0,
66882
+ tabIndex: c ? 0 : void 0,
66883
+ children: /* @__PURE__ */ k("span", {
66884
+ ref: i,
66885
+ className: Do("katex", oB.mathContent),
66886
+ children: e
66887
+ })
66888
+ });
66889
+ }), cB = {
66869
66890
  tableContainer: "_tableContainer_13hc6_1",
66870
66891
  tableContainerLight: "_tableContainerLight_13hc6_6",
66871
66892
  scrollContainer: "_scrollContainer_13hc6_10",
@@ -66876,8 +66897,8 @@ var qz = 2e3, Jz = (e, t = qz) => {
66876
66897
  tableScrollFadeEnd: "_tableScrollFadeEnd_13hc6_48",
66877
66898
  tableScrollFadeStart: "_tableScrollFadeStart_13hc6_56",
66878
66899
  tableScrollFadeBoth: "_tableScrollFadeBoth_13hc6_64"
66879
- }, sB = a(({ children: e, classNames: t, colors: n, scrollRegionAriaLabel: r = "Scrollable table" }) => {
66880
- let { scrollContainerRef: i, tableRef: a, hasContentBeyondStart: o, hasContentBeyondEnd: s, handleScroll: c } = aB(), l = Oo({
66900
+ }, lB = a(({ children: e, classNames: t, colors: n, scrollRegionAriaLabel: r = "Scrollable table" }) => {
66901
+ let { scrollContainerRef: i, contentRef: a, hasContentBeyondStart: o, hasContentBeyondEnd: s, handleScroll: c } = aB(), l = Oo({
66881
66902
  "--cm-markdown-border": n?.border,
66882
66903
  "--cm-table-scrollbar": n?.scrollbar,
66883
66904
  "--cm-table-fade": n?.fade,
@@ -66887,13 +66908,13 @@ var qz = 2e3, Jz = (e, t = qz) => {
66887
66908
  }), u = o || s;
66888
66909
  return /* @__PURE__ */ k("div", {
66889
66910
  style: l,
66890
- className: Do("relative w-full min-w-0 max-w-full overflow-hidden rounded-xl border", oB.tableContainer, oB.tableContainerLight, t.tableWrapper),
66911
+ className: Do("relative w-full min-w-0 max-w-full overflow-hidden rounded-xl border", cB.tableContainer, cB.tableContainerLight, t.tableWrapper),
66891
66912
  children: /* @__PURE__ */ k("div", {
66892
66913
  ref: i,
66893
- className: Do("w-full min-w-0 max-w-full overflow-x-auto", oB.scrollContainer, {
66894
- [oB.tableScrollFadeBoth]: o && s,
66895
- [oB.tableScrollFadeStart]: o && !s,
66896
- [oB.tableScrollFadeEnd]: !o && s
66914
+ className: Do("w-full min-w-0 max-w-full overflow-x-auto", cB.scrollContainer, {
66915
+ [cB.tableScrollFadeBoth]: o && s,
66916
+ [cB.tableScrollFadeStart]: o && !s,
66917
+ [cB.tableScrollFadeEnd]: !o && s
66897
66918
  }),
66898
66919
  onScroll: c,
66899
66920
  role: u ? "region" : void 0,
@@ -66906,17 +66927,46 @@ var qz = 2e3, Jz = (e, t = qz) => {
66906
66927
  })
66907
66928
  })
66908
66929
  });
66909
- }), cB = ({ checked: e = !1 }) => /* @__PURE__ */ k("span", {
66930
+ }), uB = ({ checked: e = !1 }) => /* @__PURE__ */ k("span", {
66910
66931
  className: "me-1.5 inline-flex align-middle",
66911
66932
  children: /* @__PURE__ */ k(y, {
66912
66933
  isSelected: e,
66913
66934
  disabled: !0
66914
66935
  })
66915
- }), lB = [
66936
+ }), dB = [
66916
66937
  Oh,
66917
66938
  vM,
66918
66939
  [RM, { singleDollarTextMath: !1 }]
66919
- ], uB = /* @__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("."), dB = [
66940
+ ], fB = /* @__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("."), pB = {
66941
+ math: ["display", "xmlns"],
66942
+ annotation: ["encoding"],
66943
+ mfrac: ["linethickness"],
66944
+ mi: ["mathvariant"],
66945
+ mo: [
66946
+ "fence",
66947
+ "minsize",
66948
+ "stretchy"
66949
+ ],
66950
+ mover: ["accent"],
66951
+ mpadded: [
66952
+ "height",
66953
+ "lspace",
66954
+ "width"
66955
+ ],
66956
+ mspace: ["width"],
66957
+ mstyle: [
66958
+ "displaystyle",
66959
+ "mathcolor",
66960
+ "scriptlevel"
66961
+ ],
66962
+ mtable: [
66963
+ "columnalign",
66964
+ "columnspacing",
66965
+ "rowspacing",
66966
+ "width"
66967
+ ],
66968
+ mtd: ["width"]
66969
+ }, mB = [
66920
66970
  Xj,
66921
66971
  [$E, {
66922
66972
  output: "mathml",
@@ -66924,16 +66974,25 @@ var qz = 2e3, Jz = (e, t = qz) => {
66924
66974
  }],
66925
66975
  [hM, {
66926
66976
  ...Qj,
66927
- tagNames: [...Qj.tagNames ?? [], ...uB],
66977
+ tagNames: [...Qj.tagNames ?? [], ...fB],
66928
66978
  attributes: {
66929
66979
  ...Qj.attributes,
66930
- code: [...Qj.attributes?.code ?? [], ["className"]]
66980
+ ...pB,
66981
+ code: [...Qj.attributes?.code ?? [], ["className"]],
66982
+ span: [...Qj.attributes?.span ?? [], [
66983
+ "className",
66984
+ "katex",
66985
+ "katex-error"
66986
+ ]]
66931
66987
  }
66932
66988
  }]
66933
- ], fB = [], pB = {}, mB = { li: ({ children: e }) => /* @__PURE__ */ k("li", {
66989
+ ], hB = [], gB = {}, _B = { li: ({ children: e }) => /* @__PURE__ */ k("li", {
66934
66990
  className: "mb-1.5 last:mb-0",
66935
66991
  children: e
66936
- }) }, hB = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(hB).join("") : "", gB = (e, t, n, r, i, a) => ({
66992
+ }) }, vB = (e) => {
66993
+ let t = e?.properties?.className;
66994
+ return !Array.isArray(t) || !t.includes("katex") ? !1 : (e?.children ?? []).some((e) => e.type === "element" && e.tagName === "math" && e.properties?.display === "block");
66995
+ }, yB = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(yB).join("") : "", bB = (e, { isStreaming: t, codeBlockCopyLabel: n, codeBlockCopiedLabel: r, codeBlockTheme: i, tableScrollRegionAriaLabel: a, mathScrollRegionAriaLabel: o }) => ({
66937
66996
  h1: ({ children: t }) => /* @__PURE__ */ k("h1", {
66938
66997
  className: e.h1,
66939
66998
  children: t
@@ -67012,30 +67071,38 @@ var qz = 2e3, Jz = (e, t = qz) => {
67012
67071
  className: Do("opacity-75", e.del),
67013
67072
  children: t
67014
67073
  }),
67015
- input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ k(cB, { checked: t ?? !1 }) : null,
67016
- table: ({ children: t }) => /* @__PURE__ */ k(sB, {
67074
+ input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ k(uB, { checked: t ?? !1 }) : null,
67075
+ span: ({ children: t, node: n, ...r }) => vB(n) ? /* @__PURE__ */ k(sB, {
67076
+ className: e.mathBlock,
67077
+ scrollRegionAriaLabel: o,
67078
+ children: t
67079
+ }) : /* @__PURE__ */ k("span", {
67080
+ ...r,
67081
+ children: t
67082
+ }),
67083
+ table: ({ children: t }) => /* @__PURE__ */ k(lB, {
67017
67084
  classNames: e,
67018
67085
  scrollRegionAriaLabel: a,
67019
67086
  children: t
67020
67087
  }),
67021
67088
  tr: ({ children: e, node: t }) => {
67022
- let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => hB(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
67089
+ let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => yB(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
67023
67090
  return /* @__PURE__ */ k("tr", {
67024
- className: Do(oB.row, a && oB.sectionRow),
67091
+ className: Do(cB.row, a && cB.sectionRow),
67025
67092
  children: e
67026
67093
  });
67027
67094
  },
67028
67095
  th: ({ children: t }) => /* @__PURE__ */ k("th", {
67029
67096
  scope: "col",
67030
- className: Do("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start", oB.rowDivider, oB.tableHeaderCell, e.tableHeaderFont ?? "dial-tiny-lead-semi-text", e.tableCell, e.tableHeader),
67097
+ className: Do("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start", cB.rowDivider, cB.tableHeaderCell, e.tableHeaderFont ?? "dial-tiny-lead-semi-text", e.tableCell, e.tableHeader),
67031
67098
  children: t
67032
67099
  }),
67033
67100
  td: ({ children: t }) => /* @__PURE__ */ k("td", {
67034
- className: Do("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]", oB.rowDivider, e.tableBodyCell, e.tableCell),
67101
+ className: Do("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]", cB.rowDivider, e.tableBodyCell, e.tableCell),
67035
67102
  children: t
67036
67103
  })
67037
- }), _B = a(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = pB, components: i, rehypePlugins: a = fB, thinkingLabel: o = "Thinking", codeBlockCopyLabel: s, codeBlockCopiedLabel: c, codeBlockTheme: l, colors: u, tableScrollRegionAriaLabel: d }) => {
67038
- let p = GM(e, t, n), m = f(() => tN(p), [p]), h = Oo({
67104
+ }), xB = a(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = gB, components: i, rehypePlugins: a = hB, thinkingLabel: o = "Thinking", codeBlockCopyLabel: s, codeBlockCopiedLabel: c, codeBlockTheme: l, colors: u, tableScrollRegionAriaLabel: d, mathScrollRegionAriaLabel: p }) => {
67105
+ let m = GM(e, t, n), h = f(() => tN(m), [m]), g = Oo({
67039
67106
  "--cm-thinking-inverted": u?.thinkingPrimary,
67040
67107
  "--cm-thinking-secondary": u?.thinkingSecondary,
67041
67108
  "--cm-markdown-border": u?.border,
@@ -67047,9 +67114,16 @@ var qz = 2e3, Jz = (e, t = qz) => {
67047
67114
  "--cm-h6-text": u?.headingSixText,
67048
67115
  "--cm-code-inline-bg": u?.inlineCodeBackground,
67049
67116
  "--cm-code-inline-text": u?.inlineCodeText
67050
- }), g = f(() => ({
67051
- ...gB(r, t, s, c, l, d),
67052
- ...mB,
67117
+ }), _ = f(() => ({
67118
+ ...bB(r, {
67119
+ isStreaming: t,
67120
+ codeBlockCopyLabel: s,
67121
+ codeBlockCopiedLabel: c,
67122
+ codeBlockTheme: l,
67123
+ tableScrollRegionAriaLabel: d,
67124
+ mathScrollRegionAriaLabel: p
67125
+ }),
67126
+ ..._B,
67053
67127
  ...i
67054
67128
  }), [
67055
67129
  r,
@@ -67058,22 +67132,23 @@ var qz = 2e3, Jz = (e, t = qz) => {
67058
67132
  c,
67059
67133
  l,
67060
67134
  d,
67135
+ p,
67061
67136
  i
67062
67137
  ]);
67063
- return t && !p ? /* @__PURE__ */ k("span", {
67138
+ return t && !m ? /* @__PURE__ */ k("span", {
67064
67139
  className: rB.thinking,
67065
- style: h,
67140
+ style: g,
67066
67141
  children: o
67067
67142
  }) : /* @__PURE__ */ k("div", {
67068
- style: h,
67143
+ style: g,
67069
67144
  children: /* @__PURE__ */ k(Ly, {
67070
- remarkPlugins: lB,
67071
- rehypePlugins: [...dB, ...a],
67072
- components: g,
67073
- children: m
67145
+ remarkPlugins: dB,
67146
+ rehypePlugins: [...mB, ...a],
67147
+ components: _,
67148
+ children: h
67074
67149
  })
67075
67150
  });
67076
- }), vB = {
67151
+ }), SB = {
67077
67152
  h1: "dial-h1-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
67078
67153
  h2: "dial-h2-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
67079
67154
  h3: "dial-h3-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
@@ -67086,9 +67161,10 @@ var qz = 2e3, Jz = (e, t = qz) => {
67086
67161
  codeInline: "mx-0.5 px-1.5 break-words [overflow-wrap:anywhere]",
67087
67162
  blockquote: "my-4",
67088
67163
  link: "break-words [overflow-wrap:anywhere]",
67089
- tableWrapper: "my-4"
67164
+ tableWrapper: "my-4",
67165
+ mathBlock: "my-4"
67090
67166
  };
67091
- ({ ...vB }), a(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o, classNames: s = vB }) => /* @__PURE__ */ k(_B, {
67167
+ ({ ...SB }), a(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o, classNames: s = SB }) => /* @__PURE__ */ k(xB, {
67092
67168
  content: e,
67093
67169
  isStreaming: t,
67094
67170
  thinkingLabel: n,
@@ -67098,31 +67174,31 @@ var qz = 2e3, Jz = (e, t = qz) => {
67098
67174
  codeBlockTheme: o,
67099
67175
  classNames: s
67100
67176
  }));
67101
- var yB = /* @__PURE__ */ function(e) {
67177
+ var CB = /* @__PURE__ */ function(e) {
67102
67178
  return e.Attach = "attach", e.Standalone = "standalone", e.FolderPicker = "folder-picker", e;
67103
- }({}), bB = /* @__PURE__ */ function(e) {
67179
+ }({}), wB = /* @__PURE__ */ function(e) {
67104
67180
  return e.Attach = "attach", e.Browse = "browse", e.Full = "full", e;
67105
- }({}), xB = (e) => e.split("/").some((e) => e.startsWith(".")), SB = (e) => {
67181
+ }({}), TB = (e) => e.split("/").some((e) => e.startsWith(".")), EB = (e) => {
67106
67182
  let t = e.replace(/\/$/, ""), n = t.lastIndexOf("/");
67107
67183
  return n > 0 ? t.slice(0, n + 1) : "";
67108
- }, CB = /* @__PURE__ */ function(e) {
67184
+ }, DB = /* @__PURE__ */ function(e) {
67109
67185
  return e.Queued = "queued", e.Uploading = "uploading", e.Completed = "completed", e.Failed = "failed", e.Cancelled = "cancelled", e;
67110
- }({}), wB = (e) => {
67186
+ }({}), OB = (e) => {
67111
67187
  if (e.id) {
67112
67188
  let t = document.querySelector(`[row-id="${e.id}"]`);
67113
67189
  if (t) return t;
67114
67190
  }
67115
67191
  return e.rowIndex == null ? null : document.querySelector(`[row-index="${e.rowIndex}"]`);
67116
- }, TB = (e, t) => {
67192
+ }, kB = (e, t) => {
67117
67193
  requestAnimationFrame(() => {
67118
67194
  requestAnimationFrame(() => {
67119
- !e.isDestroyed() && t.rowIndex != null && e.ensureNodeVisible(t, "middle"), wB(t)?.scrollIntoView({
67195
+ !e.isDestroyed() && t.rowIndex != null && e.ensureNodeVisible(t, "middle"), OB(t)?.scrollIntoView({
67120
67196
  block: "center",
67121
67197
  behavior: "auto"
67122
67198
  });
67123
67199
  });
67124
67200
  });
67125
- }, EB = (e) => e.find((e) => e.data?.isTemporary) ?? e[0] ?? null, DB = ({ resolveTargetNode: e = EB } = {}) => {
67201
+ }, AB = (e) => e.find((e) => e.data?.isTemporary) ?? e[0] ?? null, jB = ({ resolveTargetNode: e = AB } = {}) => {
67126
67202
  let t = p(/* @__PURE__ */ new Set()), n = p(!1), r = p(null), i = o(() => {
67127
67203
  t.current = /* @__PURE__ */ new Set(), n.current = !1;
67128
67204
  }, []), a = o((e) => {
@@ -67135,7 +67211,7 @@ var yB = /* @__PURE__ */ function(e) {
67135
67211
  r && (a.add(r), n.current && !t.current.has(r) && o.push(e));
67136
67212
  }), t.current = a, n.current = !0;
67137
67213
  let s = e(o);
67138
- s && TB(i, s);
67214
+ s && kB(i, s);
67139
67215
  }, [e]), l = o((e) => {
67140
67216
  let t = r.current;
67141
67217
  t !== e && (t != null && (t.removeEventListener("cellEditingStarted", a), t.removeEventListener("rowDataUpdated", s)), e.addEventListener("cellEditingStarted", a), e.addEventListener("rowDataUpdated", s), r.current = e);
@@ -67147,7 +67223,7 @@ var yB = /* @__PURE__ */ function(e) {
67147
67223
  handleGridApiChange: l,
67148
67224
  reset: i
67149
67225
  };
67150
- }, OB = ({ title: e, text: t, cancelLabel: n, onCancel: r }) => /* @__PURE__ */ k(Oe, {
67226
+ }, MB = ({ title: e, text: t, cancelLabel: n, onCancel: r }) => /* @__PURE__ */ k(Oe, {
67151
67227
  className: "!h-fit !max-h-full !w-[400px]",
67152
67228
  open: !0,
67153
67229
  closeOnOutsideClick: !1,
@@ -67176,8 +67252,8 @@ var yB = /* @__PURE__ */ function(e) {
67176
67252
  })]
67177
67253
  })
67178
67254
  });
67179
- a(OB);
67180
- var kB = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancelLabel: r, onCancel: i }) => {
67255
+ a(MB);
67256
+ var NB = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancelLabel: r, onCancel: i }) => {
67181
67257
  let { files: a } = e, s = o((e) => e === void 0 ? null : /* @__PURE__ */ k("div", {
67182
67258
  className: "h-1 w-full overflow-hidden rounded-full bg-control-disable-primary",
67183
67259
  "data-qa": "uploading-indicator",
@@ -67226,15 +67302,15 @@ var kB = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancel
67226
67302
  })
67227
67303
  });
67228
67304
  };
67229
- a(kB);
67230
- var AB = (e, t) => {
67305
+ a(NB);
67306
+ var PB = (e, t) => {
67231
67307
  if (e.isDownloading) return t.downloadingLabel;
67232
67308
  if (e.isDeleting) return t.deletingLabel;
67233
67309
  if (e.isRenaming && !e.isMoving) return t.renamingLabel;
67234
67310
  if (e.isUnsharing) return t.unsharingLabel;
67235
67311
  if (e.isRemovingAccess) return t.removingAccessLabel;
67236
- }, jB = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: l, autoSelectUploadedItems: u = !1, allowedFileTypes: d, maxSelectableFileSize: p, isRowSelectable: h, getDisabledTooltip: g, unsupportedFileTypeTooltip: _ }) => {
67237
- let { items: v, isLoading: y, error: b, path: x, onPathChange: S, retry: C, onSearchFiles: w, isSearching: T, searchResults: E, clearSearchResults: ee, expandedPaths: D, loadedPaths: te, onExpandedPathsChange: ne, onFolderPopupPathChange: re, folderPopupLoadingPaths: ie, onUploadFiles: ae, onUploadArchive: oe, onValidateUpload: se, uploadBatchState: O, cancelUpload: ce, clearUploadBatch: le, onCreateFolder: ue, onCreateFolderValidate: de, onDownloadFiles: fe, isDownloading: pe, onDeleteFiles: me, isDeleting: he, onMoveToFiles: ge, onRenameValidate: _e, isRenaming: ve, onCopyFiles: ye, isCopying: be, isMoving: xe, cancelCopyMove: Ce, uploadEnabled: we, isNewButtonDisabled: Te, disabledNewButtonTooltip: Ee, visibleColumns: De, dateLocale: Oe, dateOptions: ke, actionLabels: je, sharedWithMeIds: Me, sharedByMePaths: Ne, onUnshareFiles: Pe, isUnsharing: Fe, onRemoveFilesAccess: Le, isRemovingAccess: Re, fileMetadata: ze, isFileMetadataLoading: Be, onGetInfo: Ve, clearMetadata: He } = e, [Ue, We] = m(void 0), { handleGridApiChange: Ge, reset: Ke } = DB();
67312
+ }, FB = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: l, autoSelectUploadedItems: u = !1, allowedFileTypes: d, maxSelectableFileSize: p, isRowSelectable: h, getDisabledTooltip: g, unsupportedFileTypeTooltip: _ }) => {
67313
+ let { items: v, isLoading: y, error: b, path: x, onPathChange: S, retry: C, onSearchFiles: w, isSearching: T, searchResults: E, clearSearchResults: ee, expandedPaths: D, loadedPaths: te, onExpandedPathsChange: ne, onFolderPopupPathChange: re, folderPopupLoadingPaths: ie, onUploadFiles: ae, onUploadArchive: oe, onValidateUpload: se, uploadBatchState: O, cancelUpload: ce, clearUploadBatch: le, onCreateFolder: ue, onCreateFolderValidate: de, onDownloadFiles: fe, isDownloading: pe, onDeleteFiles: me, isDeleting: he, onMoveToFiles: ge, onRenameValidate: _e, isRenaming: ve, onCopyFiles: ye, isCopying: be, isMoving: xe, cancelCopyMove: Ce, uploadEnabled: we, isNewButtonDisabled: Te, disabledNewButtonTooltip: Ee, visibleColumns: De, dateLocale: Oe, dateOptions: ke, actionLabels: je, sharedWithMeIds: Me, sharedByMePaths: Ne, onUnshareFiles: Pe, isUnsharing: Fe, onRemoveFilesAccess: Le, isRemovingAccess: Re, fileMetadata: ze, isFileMetadataLoading: Be, onGetInfo: Ve, clearMetadata: He } = e, [Ue, We] = m(void 0), { handleGridApiChange: Ge, reset: Ke } = jB();
67238
67314
  c(() => {
67239
67315
  Ke();
67240
67316
  }, [n, Ke]);
@@ -67300,7 +67376,7 @@ var AB = (e, t) => {
67300
67376
  ie,
67301
67377
  ne,
67302
67378
  qe
67303
- ]), et = s === yB.Standalone && l === bB.Full && n === yn.MyFiles && we, tt = f(() => ({
67379
+ ]), et = s === CB.Standalone && l === wB.Full && n === yn.MyFiles && we, tt = f(() => ({
67304
67380
  tabs: r,
67305
67381
  activeTab: n,
67306
67382
  onTabChange: i,
@@ -67344,7 +67420,7 @@ var AB = (e, t) => {
67344
67420
  ]), it = f(() => {
67345
67421
  let e;
67346
67422
  for (let t of a) {
67347
- let n = SB(t);
67423
+ let n = EB(t);
67348
67424
  if (e === void 0) e = n;
67349
67425
  else if (e !== n) return;
67350
67426
  }
@@ -67399,7 +67475,7 @@ var AB = (e, t) => {
67399
67475
  t.metadataModifiedDateLabel,
67400
67476
  t.metadataSizeLabel,
67401
67477
  t.metadataAuthorLabel
67402
- ]), ut = AB({
67478
+ ]), ut = PB({
67403
67479
  isDownloading: pe,
67404
67480
  isDeleting: he,
67405
67481
  isRenaming: ve,
@@ -67408,7 +67484,7 @@ var AB = (e, t) => {
67408
67484
  isRemovingAccess: Re
67409
67485
  }, t), dt = f(() => {
67410
67486
  if (O == null) return "";
67411
- let e = O.files.filter((e) => e.status !== CB.Uploading).length;
67487
+ let e = O.files.filter((e) => e.status !== DB.Uploading).length;
67412
67488
  return t.getUploadProgressText(e, O.files.length);
67413
67489
  }, [O, t]), ft = f(() => E != null && !T ? {
67414
67490
  title: t.searchEmptyStateTitle,
@@ -67497,14 +67573,14 @@ var AB = (e, t) => {
67497
67573
  onClick: C
67498
67574
  })]
67499
67575
  }),
67500
- O != null && /* @__PURE__ */ k(kB, {
67576
+ O != null && /* @__PURE__ */ k(NB, {
67501
67577
  batchState: O,
67502
67578
  uploadProgressTitle: t.uploadProgressTitle,
67503
67579
  uploadProgressText: dt,
67504
67580
  cancelLabel: t.cancelLabel,
67505
67581
  onCancel: ct
67506
67582
  }),
67507
- (be || xe) && /* @__PURE__ */ k(OB, {
67583
+ (be || xe) && /* @__PURE__ */ k(MB, {
67508
67584
  title: xe ? t.operationLoaderMoveTitle : t.operationLoaderCopyTitle,
67509
67585
  text: xe ? t.movingLabel : t.copyingLabel,
67510
67586
  cancelLabel: t.operationLoaderCancelLabel,
@@ -67512,8 +67588,8 @@ var AB = (e, t) => {
67512
67588
  })
67513
67589
  ] });
67514
67590
  };
67515
- a(jB);
67516
- var MB = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: s, activeTab: c, tabs: l, onTabChange: u, labels: d, variant: p, actionProfile: m, selectedPaths: h, onSelectedPathsChange: g, resolveFolderPath: _, isFileTypeAllowed: v, maxSelectableFileSize: y, maximumAttachmentsAmount: b, existingAttachmentsAmount: x = 0, isRowSelectable: S, getDisabledTooltip: C, unsupportedFileTypeTooltip: w, allowedFileTypes: T, autoSelectUploadedItems: E = !1 }) => {
67591
+ a(FB);
67592
+ var IB = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: s, activeTab: c, tabs: l, onTabChange: u, labels: d, variant: p, actionProfile: m, selectedPaths: h, onSelectedPathsChange: g, resolveFolderPath: _, isFileTypeAllowed: v, maxSelectableFileSize: y, maximumAttachmentsAmount: b, existingAttachmentsAmount: x = 0, isRowSelectable: S, getDisabledTooltip: C, unsupportedFileTypeTooltip: w, allowedFileTypes: T, autoSelectUploadedItems: E = !1 }) => {
67517
67593
  let { items: ee, isLoading: D, searchResults: te } = a, ne = f(() => {
67518
67594
  let e = /* @__PURE__ */ new Map(), t = (n) => {
67519
67595
  n.forEach((n) => {
@@ -67525,8 +67601,8 @@ var MB = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
67525
67601
  }), e;
67526
67602
  }, [ee, te]), re = f(() => Array.from(h).map((e) => ne.get(e)).filter((e) => e != null), [ne, h]), ie = o(() => {
67527
67603
  let e = [], t = [];
67528
- for (let n of re) xB(n.path) || (n.nodeType === Kn.FOLDER ? e.push(n.path) : t.push(n));
67529
- let a = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), o = t.filter((e) => !(xB(e.path) || v != null && e.contentType != null && !v(e.contentType))), s = o.filter((e) => !a.some((t) => e.path.startsWith(`${t}/`)));
67604
+ for (let n of re) TB(n.path) || (n.nodeType === Kn.FOLDER ? e.push(n.path) : t.push(n));
67605
+ let a = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), o = t.filter((e) => !(TB(e.path) || v != null && e.contentType != null && !v(e.contentType))), s = o.filter((e) => !a.some((t) => e.path.startsWith(`${t}/`)));
67530
67606
  t.length - o.length > 0 && r?.();
67531
67607
  let c = a.flatMap((e) => {
67532
67608
  let t = ne.get(e);
@@ -67576,7 +67652,7 @@ var MB = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
67576
67652
  }),
67577
67653
  children: /* @__PURE__ */ k("div", {
67578
67654
  className: "flex min-h-0 flex-col",
67579
- children: /* @__PURE__ */ k(jB, {
67655
+ children: /* @__PURE__ */ k(FB, {
67580
67656
  controller: a,
67581
67657
  labels: O,
67582
67658
  activeTab: c,
@@ -67596,21 +67672,21 @@ var MB = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
67596
67672
  })
67597
67673
  });
67598
67674
  });
67599
- MB.displayName = "FileManagerAttachModal";
67600
- var NB = {
67675
+ IB.displayName = "FileManagerAttachModal";
67676
+ var LB = {
67601
67677
  dialog: "_dialog_1chty_2",
67602
67678
  error: "_error_1chty_11",
67603
67679
  selectField: "_selectField_1chty_25",
67604
67680
  selectFieldOpen: "_selectFieldOpen_1chty_37"
67605
- }, PB = 20, FB = 200, IB = 8, LB = (e) => {
67681
+ }, RB = 20, zB = 200, BB = 8, VB = (e) => {
67606
67682
  let t = e.trim();
67607
- if (t.length === 0 || t.length > FB) return !1;
67683
+ if (t.length === 0 || t.length > zB) return !1;
67608
67684
  try {
67609
67685
  return new RegExp(t) instanceof RegExp;
67610
67686
  } catch {
67611
67687
  return !1;
67612
67688
  }
67613
- }, RB = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = PB, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
67689
+ }, HB = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = RB, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
67614
67690
  let u = {
67615
67691
  ...Oo({
67616
67692
  "--pare-mobile-bg": s.colors?.mobileBackground,
@@ -67626,7 +67702,7 @@ var NB = {
67626
67702
  c(() => {
67627
67703
  se.current?.focus();
67628
67704
  }, []);
67629
- let [O, ce] = m(), [le, ue] = m(), [de, fe] = m([]), [pe, me] = m(""), [he, ge] = m(!1), [ve, ye] = m(!1), [be, Se] = m(!1), we = Do(NB.selectField, he && NB.selectFieldOpen), Te = Do(NB.selectField, ve && NB.selectFieldOpen), Ee = f(() => e.map((e) => ({
67705
+ let [O, ce] = m(), [le, ue] = m(), [de, fe] = m([]), [pe, me] = m(""), [he, ge] = m(!1), [ve, ye] = m(!1), [be, Se] = m(!1), we = Do(LB.selectField, he && LB.selectFieldOpen), Te = Do(LB.selectField, ve && LB.selectFieldOpen), Ee = f(() => e.map((e) => ({
67630
67706
  value: e,
67631
67707
  label: e
67632
67708
  })), [e]), De = f(() => [
@@ -67646,7 +67722,7 @@ var NB = {
67646
67722
  _,
67647
67723
  v,
67648
67724
  y
67649
- ]), Oe = le === Pt.Regex, ke = LB(pe), Ae = O != null && le != null && (Oe ? ke : de.length > 0);
67725
+ ]), Oe = le === Pt.Regex, ke = VB(pe), Ae = O != null && le != null && (Oe ? ke : de.length > 0);
67650
67726
  return /* @__PURE__ */ A("div", {
67651
67727
  ref: se,
67652
67728
  role: "dialog",
@@ -67657,7 +67733,7 @@ var NB = {
67657
67733
  e.key === "Escape" && (e.stopPropagation(), n());
67658
67734
  },
67659
67735
  style: u,
67660
- className: Do("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", NB.dialog),
67736
+ className: Do("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", LB.dialog),
67661
67737
  children: [
67662
67738
  /* @__PURE__ */ k(Ne, {
67663
67739
  id: ie,
@@ -67668,7 +67744,7 @@ var NB = {
67668
67744
  ce(Array.isArray(e) ? e[0] : e), ge(!1);
67669
67745
  },
67670
67746
  placeholder: h,
67671
- searchable: e.length > IB,
67747
+ searchable: e.length > BB,
67672
67748
  searchPlaceholder: h,
67673
67749
  disabled: r,
67674
67750
  open: he,
@@ -67706,7 +67782,7 @@ var NB = {
67706
67782
  }), (pe.length > 0 || be) && !ke && /* @__PURE__ */ k("span", {
67707
67783
  id: re,
67708
67784
  role: "alert",
67709
- className: Do("mt-1 block", o, NB.error),
67785
+ className: Do("mt-1 block", o, LB.error),
67710
67786
  children: T
67711
67787
  })] }) : /* @__PURE__ */ k(Be, {
67712
67788
  id: oe,
@@ -67751,13 +67827,13 @@ var NB = {
67751
67827
  })
67752
67828
  ]
67753
67829
  });
67754
- }, zB = {
67830
+ }, UB = {
67755
67831
  ruleRow: "_ruleRow_nx0en_1",
67756
67832
  heading: "_heading_nx0en_5",
67757
67833
  hint: "_hint_nx0en_9",
67758
67834
  loading: "_loading_nx0en_13",
67759
67835
  ruleText: "_ruleText_nx0en_17"
67760
- }, BB = 20, VB = (e, t) => e === Pt.Equal ? t.equal : e === Pt.Contain ? t.contain : t.regex, HB = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = BB, maxTargetsPerRule: u, labels: d = {}, headingClassName: f = "dial-body-semi-text", hintClassName: h = "dial-small-text", loadingClassName: g = "dial-small-text", ruleTextClassName: _ = "dial-small-text", ruleSourceClassName: y = "dial-small-semi-text", styles: b = {} }) => {
67836
+ }, WB = 20, GB = (e, t) => e === Pt.Equal ? t.equal : e === Pt.Contain ? t.contain : t.regex, KB = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = WB, maxTargetsPerRule: u, labels: d = {}, headingClassName: f = "dial-body-semi-text", hintClassName: h = "dial-small-text", loadingClassName: g = "dial-small-text", ruleTextClassName: _ = "dial-small-text", ruleSourceClassName: y = "dial-small-semi-text", styles: b = {} }) => {
67761
67837
  let x = {
67762
67838
  ...Oo({
67763
67839
  "--par-rule-bg": b.colors?.ruleBackground,
@@ -67806,7 +67882,7 @@ var NB = {
67806
67882
  className: "mb-1 flex items-center justify-between gap-2",
67807
67883
  children: [/* @__PURE__ */ k("div", {
67808
67884
  id: me,
67809
- className: Do(f, zB.heading),
67885
+ className: Do(f, UB.heading),
67810
67886
  children: S
67811
67887
  }), e.length > 0 && /* @__PURE__ */ k(_e, {
67812
67888
  variant: v.Primary,
@@ -67816,7 +67892,7 @@ var NB = {
67816
67892
  })]
67817
67893
  }),
67818
67894
  /* @__PURE__ */ k("p", {
67819
- className: Do("mb-2", h, zB.hint),
67895
+ className: Do("mb-2", h, UB.hint),
67820
67896
  children: Pe ? C.replace("{folder}", r) : w
67821
67897
  }),
67822
67898
  e.length > 0 && !Pe && /* @__PURE__ */ k("div", {
@@ -67828,7 +67904,7 @@ var NB = {
67828
67904
  })
67829
67905
  }),
67830
67906
  a && /* @__PURE__ */ A("div", {
67831
- className: Do("mb-2 flex items-center gap-2", g, zB.loading),
67907
+ className: Do("mb-2 flex items-center gap-2", g, UB.loading),
67832
67908
  children: [/* @__PURE__ */ k(Ie, {
67833
67909
  size: 16,
67834
67910
  ariaLabel: O
@@ -67847,16 +67923,16 @@ var NB = {
67847
67923
  children: e.map((e, t) => {
67848
67924
  let n = e.targets.join(` ${re} `), r = ie.replace("{source}", e.source).replace("{targets}", n);
67849
67925
  return /* @__PURE__ */ A("li", {
67850
- className: Do("flex items-center justify-between gap-2 rounded-lg px-3 py-2", zB.ruleRow),
67926
+ className: Do("flex items-center justify-between gap-2 rounded-lg px-3 py-2", UB.ruleRow),
67851
67927
  children: [/* @__PURE__ */ A("span", {
67852
- className: Do("truncate", _, zB.ruleText),
67928
+ className: Do("truncate", _, UB.ruleText),
67853
67929
  children: [
67854
67930
  /* @__PURE__ */ k("span", {
67855
67931
  className: y,
67856
67932
  children: e.source
67857
67933
  }),
67858
67934
  " ",
67859
- VB(e.function, je),
67935
+ GB(e.function, je),
67860
67936
  ": ",
67861
67937
  n
67862
67938
  ]
@@ -67873,7 +67949,7 @@ var NB = {
67873
67949
  }, t);
67874
67950
  })
67875
67951
  }),
67876
- he && /* @__PURE__ */ k(RB, {
67952
+ he && /* @__PURE__ */ k(HB, {
67877
67953
  sourceOptions: n,
67878
67954
  onSave: Oe,
67879
67955
  onCancel: we,
@@ -67896,18 +67972,18 @@ var NB = {
67896
67972
  })
67897
67973
  }),
67898
67974
  Me && /* @__PURE__ */ k("p", {
67899
- className: Do("mt-2", h, zB.hint),
67975
+ className: Do("mt-2", h, UB.hint),
67900
67976
  children: E.replace("{max}", String(s))
67901
67977
  })
67902
67978
  ]
67903
67979
  });
67904
- }, UB = {
67980
+ }, qB = {
67905
67981
  currentBadge: "_currentBadge_eo6mj_1",
67906
67982
  version: "_version_eo6mj_7",
67907
67983
  date: "_date_eo6mj_11",
67908
67984
  emptyState: "_emptyState_eo6mj_15",
67909
67985
  stripedRow: "_stripedRow_eo6mj_19"
67910
- }, WB = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateLabel: o = "Not published to this folder yet — this will be the first version here.", loadingLabel: s = "Loading history…", errorLabel: c = "Failed to load publish history.", versionClassName: l = "dial-small-text", dateClassName: u = "dial-small-text", emptyStateClassName: d = "dial-small-text", colors: f }) => {
67986
+ }, JB = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateLabel: o = "Not published to this folder yet — this will be the first version here.", loadingLabel: s = "Loading history…", errorLabel: c = "Failed to load publish history.", versionClassName: l = "dial-small-text", dateClassName: u = "dial-small-text", emptyStateClassName: d = "dial-small-text", colors: f }) => {
67911
67987
  let p = Oo({
67912
67988
  "--phl-badge-border": f?.currentBadgeBorder,
67913
67989
  "--phl-badge-bg": f?.currentBadgeBackground,
@@ -67916,7 +67992,7 @@ var NB = {
67916
67992
  "--phl-date-text": f?.dateText,
67917
67993
  "--phl-empty-text": f?.emptyStateText,
67918
67994
  "--phl-striped-bg": f?.stripedBackground
67919
- }), m = Do(d, UB.emptyState);
67995
+ }), m = Do(d, qB.emptyState);
67920
67996
  return n ? /* @__PURE__ */ k("p", {
67921
67997
  style: p,
67922
67998
  className: m,
@@ -67933,12 +68009,12 @@ var NB = {
67933
68009
  }) : /* @__PURE__ */ k("ul", {
67934
68010
  style: p,
67935
68011
  children: e.map((e, n) => /* @__PURE__ */ A("li", {
67936
- className: Do("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && UB.stripedRow),
68012
+ className: Do("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && qB.stripedRow),
67937
68013
  children: [/* @__PURE__ */ A("span", {
67938
68014
  className: "flex min-w-0 items-center gap-2",
67939
68015
  style: p,
67940
68016
  children: [/* @__PURE__ */ A("span", {
67941
- className: Do(l, UB.version),
68017
+ className: Do(l, qB.version),
67942
68018
  children: [
67943
68019
  i,
67944
68020
  " ",
@@ -67946,15 +68022,15 @@ var NB = {
67946
68022
  ]
67947
68023
  }), e.version === t && /* @__PURE__ */ k(ze, {
67948
68024
  label: a,
67949
- className: Do("shrink-0 whitespace-nowrap", UB.currentBadge)
68025
+ className: Do("shrink-0 whitespace-nowrap", qB.currentBadge)
67950
68026
  })]
67951
68027
  }), /* @__PURE__ */ k("span", {
67952
- className: Do(u, UB.date),
68028
+ className: Do(u, qB.date),
67953
68029
  children: Rt(e.publishedAt)
67954
68030
  })]
67955
68031
  }, `${e.version}-${n}`))
67956
68032
  });
67957
- }, GB = { divider: "_divider_a8iz6_1" }, KB = ({ 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: h = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: S = {} }) => {
68033
+ }, YB = { divider: "_divider_a8iz6_1" }, XB = ({ 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: h = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: S = {} }) => {
67958
68034
  let C = {
67959
68035
  ...Oo({ "--pft-divider": S.colors?.divider }),
67960
68036
  ...S.cssVars
@@ -68043,7 +68119,7 @@ var NB = {
68043
68119
  })
68044
68120
  }),
68045
68121
  /* @__PURE__ */ k("div", {
68046
- className: Do("my-2 h-px", GB.divider),
68122
+ className: Do("my-2 h-px", YB.divider),
68047
68123
  "aria-hidden": !0
68048
68124
  }),
68049
68125
  /* @__PURE__ */ A("div", {
@@ -68065,10 +68141,10 @@ var NB = {
68065
68141
  })
68066
68142
  ]
68067
68143
  });
68068
- }, qB = {
68144
+ }, ZB = {
68069
68145
  summaryTitle: "_summaryTitle_tf20a_1",
68070
68146
  sectionHeading: "_sectionHeading_tf20a_5"
68071
- }, JB = ({ 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: p, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, rules: y, onRulesChange: b, ruleSourceOptions: x, isRulesLoading: S = !1, hasRulesLoadError: C = !1, labels: w = {}, summaryTitleClassName: T = "dial-body-semi-text", headingClassName: E = "dial-body-semi-text", styles: ee = {} }) => {
68147
+ }, QB = ({ 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: p, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, rules: y, onRulesChange: b, ruleSourceOptions: x, isRulesLoading: S = !1, hasRulesLoadError: C = !1, labels: w = {}, summaryTitleClassName: T = "dial-body-semi-text", headingClassName: E = "dial-body-semi-text", styles: ee = {} }) => {
68072
68148
  let { colors: D, folderTree: te, accessRules: ne } = ee, re = {
68073
68149
  ...Oo({
68074
68150
  "--pp-summary-title-text": D?.summaryTitleText,
@@ -68098,7 +68174,7 @@ var NB = {
68098
68174
  _,
68099
68175
  v
68100
68176
  ]), De = Ce ? o[o.length - 1] ?? he : "", Oe = t ? t() : /* @__PURE__ */ k("span", {
68101
- className: Do("truncate", T, qB.summaryTitle),
68177
+ className: Do("truncate", T, ZB.summaryTitle),
68102
68178
  children: e?.title
68103
68179
  });
68104
68180
  return /* @__PURE__ */ A("div", {
@@ -68118,7 +68194,7 @@ var NB = {
68118
68194
  colors: ie
68119
68195
  }), /* @__PURE__ */ A("div", { children: [
68120
68196
  /* @__PURE__ */ k("div", {
68121
- className: Do("mb-2", E, qB.sectionHeading),
68197
+ className: Do("mb-2", E, ZB.sectionHeading),
68122
68198
  children: ae
68123
68199
  }),
68124
68200
  /* @__PURE__ */ k("div", {
@@ -68132,7 +68208,7 @@ var NB = {
68132
68208
  "aria-label": ve
68133
68209
  })
68134
68210
  }),
68135
- /* @__PURE__ */ k(KB, {
68211
+ /* @__PURE__ */ k(XB, {
68136
68212
  items: a,
68137
68213
  selectedPath: o,
68138
68214
  onSelectedPathChange: s,
@@ -68156,8 +68232,8 @@ var NB = {
68156
68232
  className: "mt-3",
68157
68233
  children: /* @__PURE__ */ k(Te, {
68158
68234
  type: Ee.SectionMessage,
68159
- variant: YB(we.calloutKind),
68160
- message: ZB(we.calloutKind, {
68235
+ variant: $B(we.calloutKind),
68236
+ message: tV(we.calloutKind, {
68161
68237
  replaceWarning: oe,
68162
68238
  noAccessError: se,
68163
68239
  submitError: O,
@@ -68168,7 +68244,7 @@ var NB = {
68168
68244
  }),
68169
68245
  /* @__PURE__ */ k("div", {
68170
68246
  className: "mt-4",
68171
- children: /* @__PURE__ */ k(HB, {
68247
+ children: /* @__PURE__ */ k(KB, {
68172
68248
  rules: y,
68173
68249
  onRulesChange: b,
68174
68250
  sourceOptions: x,
@@ -68182,7 +68258,7 @@ var NB = {
68182
68258
  })
68183
68259
  ] })]
68184
68260
  });
68185
- }, YB = (e) => e === Ft.ReplaceWarning ? De.Warning : De.Error, XB = (e, t) => {
68261
+ }, $B = (e) => e === Ft.ReplaceWarning ? De.Warning : De.Error, eV = (e, t) => {
68186
68262
  let [n, r, ...i] = e.split("{folder}");
68187
68263
  return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ A(Xe, { children: [
68188
68264
  n,
@@ -68192,11 +68268,11 @@ var NB = {
68192
68268
  }),
68193
68269
  r
68194
68270
  ] });
68195
- }, ZB = (e, t) => e === Ft.ReplaceWarning ? XB(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === Ft.NoAccess ? XB(t.noAccessError, t.folderName) : t.submitError, QB = { footer: "_footer_dks1v_1" }, $B = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
68271
+ }, tV = (e, t) => e === Ft.ReplaceWarning ? eV(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === Ft.NoAccess ? eV(t.noAccessError, t.folderName) : t.submitError, nV = { footer: "_footer_dks1v_1" }, rV = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
68196
68272
  let c = Oo({ "--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;
68197
68273
  return /* @__PURE__ */ A("div", {
68198
68274
  style: c,
68199
- className: Do("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", QB.footer),
68275
+ className: Do("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", nV.footer),
68200
68276
  children: [/* @__PURE__ */ k(_e, {
68201
68277
  label: l,
68202
68278
  disabled: r,
@@ -68208,7 +68284,7 @@ var NB = {
68208
68284
  onClick: a
68209
68285
  })]
68210
68286
  });
68211
- }, eV = [
68287
+ }, iV = [
68212
68288
  "a[href]",
68213
68289
  "area[href]",
68214
68290
  "button",
@@ -68218,13 +68294,13 @@ var NB = {
68218
68294
  "summary",
68219
68295
  "[contenteditable=\"true\"]",
68220
68296
  "[tabindex]"
68221
- ].join(","), tV = (e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.tabIndex < 0 ? !1 : e.closest("[inert],[hidden],[aria-hidden=\"true\"]") == null, nV = (e) => Array.from(e.querySelectorAll(eV)).filter(tV), rV = {
68297
+ ].join(","), aV = (e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.tabIndex < 0 ? !1 : e.closest("[inert],[hidden],[aria-hidden=\"true\"]") == null, oV = (e) => Array.from(e.querySelectorAll(iV)).filter(aV), sV = {
68222
68298
  backdrop: "_backdrop_1rdk6_1",
68223
68299
  panel: "_panel_1rdk6_5",
68224
68300
  divider: "_divider_1rdk6_10",
68225
68301
  content: "_content_1rdk6_14",
68226
68302
  title: "_title_1rdk6_19"
68227
- }, iV = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: u, expandedPaths: d, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, allowReplace: x = !0, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, onClose: ee, returnFocusRef: D, onSubmit: te, panelLabels: ne, panelStyles: re, footerLabels: ie, labels: ae = {}, titleClassName: oe = "dial-body-semi-text", colors: se }) => {
68303
+ }, cV = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: u, expandedPaths: d, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, allowReplace: x = !0, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, onClose: ee, returnFocusRef: D, onSubmit: te, panelLabels: ne, panelStyles: re, footerLabels: ie, labels: ae = {}, titleClassName: oe = "dial-body-semi-text", colors: se }) => {
68228
68304
  let O = Oo({
68229
68305
  "--spp-backdrop-bg": se?.backdropBackground,
68230
68306
  "--spp-panel-bg": se?.panelBackground,
@@ -68275,7 +68351,7 @@ var NB = {
68275
68351
  if (!t) return;
68276
68352
  let n = document.activeElement;
68277
68353
  if (!(n instanceof HTMLElement) || !t.contains(n)) return;
68278
- let r = nV(t);
68354
+ let r = oV(t);
68279
68355
  if (r.length === 0) {
68280
68356
  e.preventDefault(), t.focus({ preventScroll: !0 });
68281
68357
  return;
@@ -68292,7 +68368,7 @@ var NB = {
68292
68368
  };
68293
68369
  }, [e, ee]), /* @__PURE__ */ A(Xe, { children: [/* @__PURE__ */ k("div", {
68294
68370
  style: O,
68295
- className: Do("fixed inset-0 z-[51] transition-opacity duration-300", rV.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
68371
+ className: Do("fixed inset-0 z-[51] transition-opacity duration-300", sV.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
68296
68372
  onClick: ee,
68297
68373
  "aria-hidden": "true"
68298
68374
  }), /* @__PURE__ */ A("div", {
@@ -68304,14 +68380,14 @@ var NB = {
68304
68380
  inert: !e,
68305
68381
  tabIndex: -1,
68306
68382
  style: O,
68307
- className: Do("fixed inset-y-0 end-0 z-[52] 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", rV.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
68383
+ className: Do("fixed inset-y-0 end-0 z-[52] 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", sV.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
68308
68384
  children: [
68309
68385
  /* @__PURE__ */ A("div", {
68310
68386
  className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
68311
68387
  children: [
68312
68388
  /* @__PURE__ */ k("div", { className: "flex-1" }),
68313
68389
  /* @__PURE__ */ k("span", {
68314
- className: Do("flex-1 text-center", oe, rV.title),
68390
+ className: Do("flex-1 text-center", oe, sV.title),
68315
68391
  children: le
68316
68392
  }),
68317
68393
  /* @__PURE__ */ k("div", {
@@ -68324,12 +68400,12 @@ var NB = {
68324
68400
  })
68325
68401
  ]
68326
68402
  }),
68327
- /* @__PURE__ */ k("div", { className: Do("shrink-0", rV.divider) }),
68403
+ /* @__PURE__ */ k("div", { className: Do("shrink-0", sV.divider) }),
68328
68404
  /* @__PURE__ */ k("div", {
68329
- className: Do("min-h-0 flex-1 overflow-y-auto", rV.content),
68405
+ className: Do("min-h-0 flex-1 overflow-y-auto", sV.content),
68330
68406
  children: /* @__PURE__ */ k("div", {
68331
68407
  className: "p-[22px]",
68332
- children: /* @__PURE__ */ k(JB, {
68408
+ children: /* @__PURE__ */ k(QB, {
68333
68409
  resource: t,
68334
68410
  renderSummary: n,
68335
68411
  history: r,
@@ -68357,7 +68433,7 @@ var NB = {
68357
68433
  })
68358
68434
  })
68359
68435
  }),
68360
- /* @__PURE__ */ k($B, {
68436
+ /* @__PURE__ */ k(rV, {
68361
68437
  version: t?.version,
68362
68438
  hasExistingPublicationInFolder: g,
68363
68439
  isSubmitDisabled: fe.isSubmitDisabled,
@@ -68370,4 +68446,4 @@ var NB = {
68370
68446
  })] });
68371
68447
  };
68372
68448
  //#endregion
68373
- export { Pt as PublicationRuleFunction, RB as PublishAccessRuleEditor, HB as PublishAccessRules, Ft as PublishCalloutKind, KB as PublishFoldersTree, $B as PublishFooter, WB as PublishHistoryList, JB as PublishPanel, iV as StandalonePublishPanel, qt as collectFolderKeys, It as derivePublishState, Ht as filterFolderTree, Rt as formatPublishedDate, Yt as fromFolderPathKey, en as getSiblingFolderNames, $t as getUniqueFolderName, Kt as mergeFolderPaths, Wt as sortFolderTree, Xt as toDialFileTree, Jt as toFolderPathKey, Vt as usePublishFlow, Qt as validateFolderName };
68449
+ export { Pt as PublicationRuleFunction, HB as PublishAccessRuleEditor, KB as PublishAccessRules, Ft as PublishCalloutKind, XB as PublishFoldersTree, rV as PublishFooter, JB as PublishHistoryList, QB as PublishPanel, cV as StandalonePublishPanel, qt as collectFolderKeys, It as derivePublishState, Ht as filterFolderTree, Rt as formatPublishedDate, Yt as fromFolderPathKey, en as getSiblingFolderNames, $t as getUniqueFolderName, Kt as mergeFolderPaths, Wt as sortFolderTree, Xt as toDialFileTree, Jt as toFolderPathKey, Vt as usePublishFlow, Qt as validateFolderName };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-publish-panel",
3
3
  "description": "Publish-to-folder UI and state flow shared by catalog entity publish and conversation publish",
4
- "version": "1.1.0-dev.377",
4
+ "version": "1.1.0-dev.383",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,7 +19,7 @@
19
19
  "peerDependencies": {
20
20
  "react": "^19.0.0",
21
21
  "@tabler/icons-react": "^3.0.0",
22
- "@epam/ai-dial-chat-shared": "1.1.0-dev.377",
22
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.383",
23
23
  "@epam/ai-dial-ui-kit": "*",
24
24
  "@epam/ai-dial-react-file-manager": "^0.2.0-dev.10"
25
25
  },