@epam/ai-dial-catalog 1.1.0-dev.280 → 1.1.0-dev.284

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
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import t, { Fragment as n, createContext as r, createElement as i, forwardRef as a, memo as o, useCallback as s, useContext as c, useEffect as l, useId as u, useImperativeHandle as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
3
- import { BASE_ICON_PROPS as g, BASE_ICON_SIZE as _, ButtonAppearance as v, ButtonDropdown as y, ButtonVariant as b, CardShell as x, Checkbox as S, CheckboxBox as C, CloseButton as w, ConfirmationPopup as T, ConfirmationPopupVariant as E, DEFAULT_GRID_DATE_FORMAT_OPTIONS as ee, DEFAULT_GRID_DATE_LOCALE as D, DIAL_ICON_SIZE as O, DangerButton as te, DialBreadcrumb as ne, DialCollapsibleSidebar as k, DialConditionalResizableContainer as A, DialDateCellRenderer as re, DialFileIcon as ie, DialFileName as j, DialFileNodeType as ae, DialFolderName as oe, DialGrid as se, DialIcon as ce, DialItemType as le, DialNoDataContent as ue, DialSharedEntityIndicator as de, Dropdown as fe, DropdownItemType as pe, DropdownTrigger as me, ElementSize as M, EllipsisTooltip as he, FlexibleActionsDirection as N, FolderPath as ge, FolderPath as _e, GhostButton as ve, GhostIconButton as ye, Highlight as be, InlineSelect as xe, InlineSelectTrigger as Se, Input as Ce, LinkButton as we, NOT_ALLOWED_SYMBOLS_REGEXP as Te, NeutralButton as Ee, NeutralIconButton as De, Notification as Oe, NotificationType as ke, NotificationVariant as Ae, Popup as je, PopupSize as Me, PrimaryButton as Ne, ProgressBar as Pe, RadioGroup as Fe, Search as Ie, SegmentedControl as Le, Select as Re, Skeleton as ze, SkeletonAvatarShape as Be, SkeletonVariant as Ve, Spinner as He, Switch as Ue, Tabs as We, TagInput as Ge, ToggleIconButton as Ke, Tooltip as qe, TooltipContainer as Je, TooltipContent as Ye, TooltipPlacement as Xe, TooltipTrigger as Ze, convertGridDateToDate as Qe, editableContainerProps as $e, mergeClasses as et, useEditableItem as tt } from "@epam/ai-dial-ui-kit";
3
+ import { BASE_ICON_PROPS as g, BASE_ICON_SIZE as _, ButtonAppearance as v, ButtonDropdown as y, ButtonVariant as b, CardShell as x, Checkbox as S, CheckboxBox as C, CloseButton as w, ConfirmationPopup as T, ConfirmationPopupVariant as E, DEFAULT_GRID_DATE_FORMAT_OPTIONS as ee, DEFAULT_GRID_DATE_LOCALE as D, DIAL_ICON_SIZE as O, DangerButton as k, DialBreadcrumb as te, DialCollapsibleSidebar as ne, DialConditionalResizableContainer as A, DialDateCellRenderer as re, DialFileIcon as ie, DialFileName as j, DialFileNodeType as ae, DialFolderName as oe, DialGrid as se, DialIcon as ce, DialItemType as le, DialNoDataContent as ue, DialSharedEntityIndicator as de, Dropdown as fe, DropdownItemType as pe, DropdownTrigger as me, ElementSize as M, EllipsisTooltip as he, FlexibleActionsDirection as ge, FolderPath as N, FolderPath as _e, GhostButton as ve, GhostIconButton as ye, Highlight as be, InlineSelect as xe, InlineSelectTrigger as Se, Input as Ce, LinkButton as we, NOT_ALLOWED_SYMBOLS_REGEXP as Te, NeutralButton as Ee, NeutralIconButton as De, Notification as Oe, NotificationType as ke, NotificationVariant as Ae, Popup as je, PopupSize as Me, PrimaryButton as Ne, ProgressBar as Pe, RadioGroup as Fe, Search as Ie, SegmentedControl as Le, Select as Re, Skeleton as ze, SkeletonAvatarShape as Be, SkeletonVariant as Ve, Spinner as He, Switch as Ue, Tabs as We, TagInput as Ge, ToggleIconButton as Ke, Tooltip as qe, TooltipContainer as Je, TooltipContent as Ye, TooltipPlacement as Xe, TooltipTrigger as Ze, convertGridDateToDate as Qe, editableContainerProps as $e, mergeClasses as et, useEditableItem as tt } from "@epam/ai-dial-ui-kit";
4
4
  import { Fragment as nt, jsx as P, jsxs as F } from "react/jsx-runtime";
5
5
  import { IconAlertCircleFilled as rt, IconAlertTriangleFilled as it, IconArrowLeft as at, IconArrowRight as ot, IconBuildingCommunity as st, IconCaretRightFilled as ct, IconCheck as lt, IconChevronDown as ut, IconChevronLeft as dt, IconChevronRight as ft, IconCircleCheckFilled as pt, IconCircleFilled as mt, IconCopy as ht, IconCopyMinus as gt, IconDots as _t, IconDotsVertical as vt, IconDownload as yt, IconExternalLink as bt, IconEye as xt, IconEyeOff as St, IconFile as Ct, IconFileDescription as wt, IconFileZip as Tt, IconFilter as Et, IconFolder as Dt, IconFolderPlus as Ot, IconInfoCircle as kt, IconKey as At, IconLayoutGrid as jt, IconLayoutList as Mt, IconLogin as Nt, IconLogout as Pt, IconPencil as Ft, IconPencilMinus as It, IconPlayerPlayFilled as Lt, IconPlus as Rt, IconShare as zt, IconStar as Bt, IconStarFilled as Vt, IconTrash as Ht, IconTrashX as Ut, IconUser as Wt, IconUserOff as Gt, IconUserX as Kt, IconWorldOff as qt, IconWorldShare as Jt, IconX as Yt } from "@tabler/icons-react";
6
6
  import { createPortal as Xt } from "react-dom";
@@ -442,7 +442,7 @@ var Yn = /* @__PURE__ */ Gn((/* @__PURE__ */ Hn(((e, t) => {
442
442
  "fr",
443
443
  ai,
444
444
  Zr
445
- ], te = () => [
445
+ ], k = () => [
446
446
  "start",
447
447
  "end",
448
448
  "center",
@@ -453,14 +453,14 @@ var Yn = /* @__PURE__ */ Gn((/* @__PURE__ */ Hn(((e, t) => {
453
453
  "baseline",
454
454
  "center-safe",
455
455
  "end-safe"
456
- ], ne = () => [
456
+ ], te = () => [
457
457
  "start",
458
458
  "end",
459
459
  "center",
460
460
  "stretch",
461
461
  "center-safe",
462
462
  "end-safe"
463
- ], k = () => ["auto", ...w()], A = () => [
463
+ ], ne = () => ["auto", ...w()], A = () => [
464
464
  Rr,
465
465
  "auto",
466
466
  "full",
@@ -578,11 +578,11 @@ var Yn = /* @__PURE__ */ Gn((/* @__PURE__ */ Hn(((e, t) => {
578
578
  zr,
579
579
  ai,
580
580
  Zr
581
- ], N = () => [
581
+ ], ge = () => [
582
582
  zr,
583
583
  ai,
584
584
  Zr
585
- ], ge = () => [
585
+ ], N = () => [
586
586
  Rr,
587
587
  "full",
588
588
  ...w()
@@ -839,19 +839,19 @@ var Yn = /* @__PURE__ */ Gn((/* @__PURE__ */ Hn(((e, t) => {
839
839
  gap: [{ gap: w() }],
840
840
  "gap-x": [{ "gap-x": w() }],
841
841
  "gap-y": [{ "gap-y": w() }],
842
- "justify-content": [{ justify: [...te(), "normal"] }],
843
- "justify-items": [{ "justify-items": [...ne(), "normal"] }],
844
- "justify-self": [{ "justify-self": ["auto", ...ne()] }],
845
- "align-content": [{ content: ["normal", ...te()] }],
846
- "align-items": [{ items: [...ne(), { baseline: ["", "last"] }] }],
842
+ "justify-content": [{ justify: [...k(), "normal"] }],
843
+ "justify-items": [{ "justify-items": [...te(), "normal"] }],
844
+ "justify-self": [{ "justify-self": ["auto", ...te()] }],
845
+ "align-content": [{ content: ["normal", ...k()] }],
846
+ "align-items": [{ items: [...te(), { baseline: ["", "last"] }] }],
847
847
  "align-self": [{ self: [
848
848
  "auto",
849
- ...ne(),
849
+ ...te(),
850
850
  { baseline: ["", "last"] }
851
851
  ] }],
852
- "place-content": [{ "place-content": te() }],
853
- "place-items": [{ "place-items": [...ne(), "baseline"] }],
854
- "place-self": [{ "place-self": ["auto", ...ne()] }],
852
+ "place-content": [{ "place-content": k() }],
853
+ "place-items": [{ "place-items": [...te(), "baseline"] }],
854
+ "place-self": [{ "place-self": ["auto", ...te()] }],
855
855
  p: [{ p: w() }],
856
856
  px: [{ px: w() }],
857
857
  py: [{ py: w() }],
@@ -863,17 +863,17 @@ var Yn = /* @__PURE__ */ Gn((/* @__PURE__ */ Hn(((e, t) => {
863
863
  pr: [{ pr: w() }],
864
864
  pb: [{ pb: w() }],
865
865
  pl: [{ pl: w() }],
866
- m: [{ m: k() }],
867
- mx: [{ mx: k() }],
868
- my: [{ my: k() }],
869
- ms: [{ ms: k() }],
870
- me: [{ me: k() }],
871
- mbs: [{ mbs: k() }],
872
- mbe: [{ mbe: k() }],
873
- mt: [{ mt: k() }],
874
- mr: [{ mr: k() }],
875
- mb: [{ mb: k() }],
876
- ml: [{ ml: k() }],
866
+ m: [{ m: ne() }],
867
+ mx: [{ mx: ne() }],
868
+ my: [{ my: ne() }],
869
+ ms: [{ ms: ne() }],
870
+ me: [{ me: ne() }],
871
+ mbs: [{ mbs: ne() }],
872
+ mbe: [{ mbe: ne() }],
873
+ mt: [{ mt: ne() }],
874
+ mr: [{ mr: ne() }],
875
+ mb: [{ mb: ne() }],
876
+ ml: [{ ml: ne() }],
877
877
  "space-x": [{ "space-x": w() }],
878
878
  "space-x-reverse": ["space-x-reverse"],
879
879
  "space-y": [{ "space-y": w() }],
@@ -1487,9 +1487,9 @@ var Yn = /* @__PURE__ */ Gn((/* @__PURE__ */ Hn(((e, t) => {
1487
1487
  "scale-y": [{ "scale-y": he() }],
1488
1488
  "scale-z": [{ "scale-z": he() }],
1489
1489
  "scale-3d": ["scale-3d"],
1490
- skew: [{ skew: N() }],
1491
- "skew-x": [{ "skew-x": N() }],
1492
- "skew-y": [{ "skew-y": N() }],
1490
+ skew: [{ skew: ge() }],
1491
+ "skew-x": [{ "skew-x": ge() }],
1492
+ "skew-y": [{ "skew-y": ge() }],
1493
1493
  transform: [{ transform: [
1494
1494
  ai,
1495
1495
  Zr,
@@ -1500,10 +1500,10 @@ var Yn = /* @__PURE__ */ Gn((/* @__PURE__ */ Hn(((e, t) => {
1500
1500
  ] }],
1501
1501
  "transform-origin": [{ origin: x() }],
1502
1502
  "transform-style": [{ transform: ["3d", "flat"] }],
1503
- translate: [{ translate: ge() }],
1504
- "translate-x": [{ "translate-x": ge() }],
1505
- "translate-y": [{ "translate-y": ge() }],
1506
- "translate-z": [{ "translate-z": ge() }],
1503
+ translate: [{ translate: N() }],
1504
+ "translate-x": [{ "translate-x": N() }],
1505
+ "translate-y": [{ "translate-y": N() }],
1506
+ "translate-z": [{ "translate-z": N() }],
1507
1507
  "translate-none": ["translate-none"],
1508
1508
  zoom: [{ zoom: [
1509
1509
  Br,
@@ -2129,17 +2129,17 @@ function Ka() {
2129
2129
  } finally {
2130
2130
  E--;
2131
2131
  }
2132
- }, te = function() {
2132
+ }, k = function() {
2133
2133
  return T ||= (w = Ua(u, i), !0), w;
2134
- }, ne = n, k = ne.implementation, A = ne.createNodeIterator, re = ne.createDocumentFragment, ie = ne.getElementsByTagName, j = r.importNode, ae = Wa();
2135
- t.isSupported = typeof ji == "function" && typeof g == "function" && k && k.createHTMLDocument !== void 0;
2134
+ }, te = n, ne = te.implementation, A = te.createNodeIterator, re = te.createDocumentFragment, ie = te.getElementsByTagName, j = r.importNode, ae = Wa();
2135
+ t.isSupported = typeof ji == "function" && typeof g == "function" && ne && ne.createHTMLDocument !== void 0;
2136
2136
  let oe = Da, se = Oa, ce = ka, le = Aa, ue = ja, de = Na, fe = Pa, pe = Ia, me = Ma, M = null, he = ua({}, [
2137
2137
  ...ga,
2138
2138
  ..._a,
2139
2139
  ...va,
2140
2140
  ...ba,
2141
2141
  ...Sa
2142
- ]), N = null, ge = ua({}, [
2142
+ ]), ge = null, N = ua({}, [
2143
2143
  ...Ca,
2144
2144
  ...wa,
2145
2145
  ...Ta,
@@ -2219,7 +2219,7 @@ function Ka() {
2219
2219
  }, lt = function() {
2220
2220
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2221
2221
  if (ot && ot === e) return;
2222
- (!e || typeof e != "object") && (e = {}), e = fa(e), rt = it.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, at = rt === "application/xhtml+xml" ? Yi : Ji, M = Ga(e, "ALLOWED_TAGS", he, { transform: at }), N = Ga(e, "ALLOWED_ATTR", ge, { transform: at }), Qe = Ga(e, "ALLOWED_NAMESPACES", $e, { transform: Yi }), Ge = Ga(e, "ADD_URI_SAFE_ATTR", Ke, {
2222
+ (!e || typeof e != "object") && (e = {}), e = fa(e), rt = it.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, at = rt === "application/xhtml+xml" ? Yi : Ji, M = Ga(e, "ALLOWED_TAGS", he, { transform: at }), ge = Ga(e, "ALLOWED_ATTR", N, { transform: at }), Qe = Ga(e, "ALLOWED_NAMESPACES", $e, { transform: Yi }), Ge = Ga(e, "ADD_URI_SAFE_ATTR", Ke, {
2223
2223
  transform: at,
2224
2224
  base: Ke
2225
2225
  }), Ue = Ga(e, "ADD_DATA_URI_TAGS", We, {
@@ -2227,7 +2227,7 @@ function Ka() {
2227
2227
  base: We
2228
2228
  }), Ve = Ga(e, "FORBID_CONTENTS", He, { transform: at }), ve = Ga(e, "FORBID_TAGS", fa({}), { transform: at }), ye = Ga(e, "FORBID_ATTR", fa({}), { transform: at }), Be = ia(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? fa(e.USE_PROFILES) : e.USE_PROFILES : !1, xe = e.ALLOW_ARIA_ATTR !== !1, Se = e.ALLOW_DATA_ATTR !== !1, Ce = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Te = e.SAFE_FOR_TEMPLATES || !1, Ee = e.SAFE_FOR_XML !== !1, De = e.WHOLE_DOCUMENT || !1, Me = e.RETURN_DOM || !1, Ne = e.RETURN_DOM_FRAGMENT || !1, Pe = e.RETURN_TRUSTED_TYPE || !1, je = e.FORCE_BODY || !1, Fe = e.SANITIZE_DOM !== !1, Ie = e.SANITIZE_NAMED_PROPS || !1, Re = e.KEEP_CONTENT !== !1, ze = e.IN_PLACE || !1, me = ha(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ma, Xe = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Ye, tt = ia(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? fa(e.MATHML_TEXT_INTEGRATION_POINTS) : ua({}, et), P = ia(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? fa(e.HTML_INTEGRATION_POINTS) : ua({}, nt);
2229
2229
  let t = ia(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? fa(e.CUSTOM_ELEMENT_HANDLING) : Ri(null);
2230
- if (_e = Ri(null), ia(t, "tagNameCheck") && ct(t.tagNameCheck) && (_e.tagNameCheck = t.tagNameCheck), ia(t, "attributeNameCheck") && ct(t.attributeNameCheck) && (_e.attributeNameCheck = t.attributeNameCheck), ia(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (_e.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), Li(_e), Te && (Se = !1), Ne && (Me = !0), Be && (M = ua({}, Sa), N = Ri(null), Be.html === !0 && (ua(M, ga), ua(N, Ca)), Be.svg === !0 && (ua(M, _a), ua(N, wa), ua(N, Ea)), Be.svgFilters === !0 && (ua(M, va), ua(N, wa), ua(N, Ea)), Be.mathMl === !0 && (ua(M, ba), ua(N, Ta), ua(N, Ea))), be.tagCheck = null, be.attributeCheck = null, ia(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? be.tagCheck = e.ADD_TAGS : qi(e.ADD_TAGS) && (M === he && (M = fa(M)), ua(M, e.ADD_TAGS, at))), ia(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? be.attributeCheck = e.ADD_ATTR : qi(e.ADD_ATTR) && (N === ge && (N = fa(N)), ua(N, e.ADD_ATTR, at))), ia(e, "ADD_URI_SAFE_ATTR") && qi(e.ADD_URI_SAFE_ATTR) && ua(Ge, e.ADD_URI_SAFE_ATTR, at), ia(e, "FORBID_CONTENTS") && qi(e.FORBID_CONTENTS) && (Ve === He && (Ve = fa(Ve)), ua(Ve, e.FORBID_CONTENTS, at)), ia(e, "ADD_FORBID_CONTENTS") && qi(e.ADD_FORBID_CONTENTS) && (Ve === He && (Ve = fa(Ve)), ua(Ve, e.ADD_FORBID_CONTENTS, at)), Re && (M["#text"] = !0), De && ua(M, [
2230
+ if (_e = Ri(null), ia(t, "tagNameCheck") && ct(t.tagNameCheck) && (_e.tagNameCheck = t.tagNameCheck), ia(t, "attributeNameCheck") && ct(t.attributeNameCheck) && (_e.attributeNameCheck = t.attributeNameCheck), ia(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (_e.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), Li(_e), Te && (Se = !1), Ne && (Me = !0), Be && (M = ua({}, Sa), ge = Ri(null), Be.html === !0 && (ua(M, ga), ua(ge, Ca)), Be.svg === !0 && (ua(M, _a), ua(ge, wa), ua(ge, Ea)), Be.svgFilters === !0 && (ua(M, va), ua(ge, wa), ua(ge, Ea)), Be.mathMl === !0 && (ua(M, ba), ua(ge, Ta), ua(ge, Ea))), be.tagCheck = null, be.attributeCheck = null, ia(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? be.tagCheck = e.ADD_TAGS : qi(e.ADD_TAGS) && (M === he && (M = fa(M)), ua(M, e.ADD_TAGS, at))), ia(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? be.attributeCheck = e.ADD_ATTR : qi(e.ADD_ATTR) && (ge === N && (ge = fa(ge)), ua(ge, e.ADD_ATTR, at))), ia(e, "ADD_URI_SAFE_ATTR") && qi(e.ADD_URI_SAFE_ATTR) && ua(Ge, e.ADD_URI_SAFE_ATTR, at), ia(e, "FORBID_CONTENTS") && qi(e.FORBID_CONTENTS) && (Ve === He && (Ve = fa(Ve)), ua(Ve, e.FORBID_CONTENTS, at)), ia(e, "ADD_FORBID_CONTENTS") && qi(e.ADD_FORBID_CONTENTS) && (Ve === He && (Ve = fa(Ve)), ua(Ve, e.ADD_FORBID_CONTENTS, at)), Re && (M["#text"] = !0), De && ua(M, [
2231
2231
  "html",
2232
2232
  "head",
2233
2233
  "body"
@@ -2241,7 +2241,7 @@ function Ka() {
2241
2241
  } catch (e) {
2242
2242
  throw S = t, e;
2243
2243
  }
2244
- } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = te()), S && typeof C == "string" && (C = D("")));
2244
+ } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = k()), S && typeof C == "string" && (C = D("")));
2245
2245
  Ii && Ii(e), ot = e;
2246
2246
  }, ut = ua({}, [
2247
2247
  ..._a,
@@ -2310,7 +2310,7 @@ function Ka() {
2310
2310
  let t = v(e);
2311
2311
  if (t) for (let n = t.length - 1; n >= 0; --n) {
2312
2312
  let r = t[n], i = r && r.name;
2313
- if (!(typeof i != "string" || N[at(i)])) try {
2313
+ if (!(typeof i != "string" || ge[at(i)])) try {
2314
2314
  e.removeAttribute(i);
2315
2315
  } catch {}
2316
2316
  }
@@ -2355,7 +2355,7 @@ function Ka() {
2355
2355
  t = new l().parseFromString(i, rt);
2356
2356
  } catch {}
2357
2357
  if (!t || !t.documentElement) {
2358
- t = k.createDocument(Xe, "template", null);
2358
+ t = ne.createDocument(Xe, "template", null);
2359
2359
  try {
2360
2360
  t.documentElement.innerHTML = Ze ? C : i;
2361
2361
  } catch {}
@@ -2436,7 +2436,7 @@ function Ka() {
2436
2436
  return kt(ae.afterSanitizeElements, e, null), !1;
2437
2437
  }, Pt = function(e, t, r) {
2438
2438
  if (ye[t] || Ee && t === "patchsrc" || Ee && t === "for" && e !== "label" && e !== "output" || Fe && (t === "id" || t === "name") && (r in n || r in st)) return !1;
2439
- let i = N[t] || be.attributeCheck instanceof Function && be.attributeCheck(t, e);
2439
+ let i = ge[t] || be.attributeCheck instanceof Function && be.attributeCheck(t, e);
2440
2440
  if (!(Se && oa(le, t)) && !(xe && oa(ue, t))) {
2441
2441
  if (!i) {
2442
2442
  if (!(It(e) && (_e.tagNameCheck instanceof RegExp && oa(_e.tagNameCheck, e) || _e.tagNameCheck instanceof Function && _e.tagNameCheck(e)) && (_e.attributeNameCheck instanceof RegExp && oa(_e.attributeNameCheck, t) || _e.attributeNameCheck instanceof Function && _e.attributeNameCheck(t, e)) || t === "is" && _e.allowCustomizedBuiltInElements && (_e.tagNameCheck instanceof RegExp && oa(_e.tagNameCheck, r) || _e.tagNameCheck instanceof Function && _e.tagNameCheck(r)))) return !1;
@@ -2470,12 +2470,12 @@ function Ka() {
2470
2470
  kt(ae.beforeSanitizeAttributes, e, null);
2471
2471
  let t = e.attributes;
2472
2472
  if (!t || Et(e)) return;
2473
- N = Mt(ae.uponSanitizeAttribute, N, ge, Ae);
2473
+ ge = Mt(ae.uponSanitizeAttribute, ge, N, Ae);
2474
2474
  let n = {
2475
2475
  attrName: "",
2476
2476
  attrValue: "",
2477
2477
  keepAttr: !0,
2478
- allowedAttributes: N,
2478
+ allowedAttributes: ge,
2479
2479
  forceKeepAttr: void 0
2480
2480
  }, r = t.length, i = at(e.nodeName);
2481
2481
  for (; r--;) {
@@ -2554,7 +2554,7 @@ function Ka() {
2554
2554
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
2555
2555
  if (Ze = !e, Ze && (e = "<!-->"), typeof e != "string" && !Ot(e) && (e = pa(e), typeof e != "string")) throw sa("dirty is not a string, aborting");
2556
2556
  if (!t.isSupported) return e;
2557
- Oe ? (M = ke, N = Ae) : lt(n), (ae.uponSanitizeElement.length > 0 || ae.uponSanitizeAttribute.length > 0) && (M = fa(M)), ae.uponSanitizeAttribute.length > 0 && (N = fa(N)), t.removed = [];
2557
+ Oe ? (M = ke, ge = Ae) : lt(n), (ae.uponSanitizeElement.length > 0 || ae.uponSanitizeAttribute.length > 0) && (M = fa(M)), ae.uponSanitizeAttribute.length > 0 && (ge = fa(ge)), t.removed = [];
2558
2558
  let c = ze && typeof e != "string" && Ot(e);
2559
2559
  if (c) {
2560
2560
  xt(e);
@@ -2590,12 +2590,12 @@ function Ka() {
2590
2590
  if (Me) {
2591
2591
  if (Te && Tt(i), Ne) for (s = re.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
2592
2592
  else s = i;
2593
- return (N.shadowroot || N.shadowrootmode) && (s = j.call(r, s, !0)), s;
2593
+ return (ge.shadowroot || ge.shadowrootmode) && (s = j.call(r, s, !0)), s;
2594
2594
  }
2595
2595
  let u = De ? i.outerHTML : i.innerHTML;
2596
2596
  return De && M["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && oa(Fa, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), Te && (u = wt(u)), S && Pe ? D(u) : u;
2597
2597
  }, t.setConfig = function() {
2598
- lt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Oe = !0, ke = M, Ae = N;
2598
+ lt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Oe = !0, ke = M, Ae = ge;
2599
2599
  }, t.clearConfig = function() {
2600
2600
  ot = null, Oe = !1, ke = null, Ae = null, S = w, C = "";
2601
2601
  }, t.isValidAttribute = function(e, t, n) {
@@ -6454,18 +6454,18 @@ function yf(e, t, n) {
6454
6454
  return t === null || nc(t) ? D(t) : ic(t) ? (e.consume(t), ee) : n(t);
6455
6455
  }
6456
6456
  function D(t) {
6457
- return t === 45 && i === 2 ? (e.consume(t), k) : t === 60 && i === 1 ? (e.consume(t), A) : t === 62 && i === 4 ? (e.consume(t), ae) : t === 63 && i === 3 ? (e.consume(t), j) : t === 93 && i === 5 ? (e.consume(t), ie) : nc(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(gf, oe, O)(t)) : t === null || nc(t) ? (e.exit("htmlFlowData"), O(t)) : (e.consume(t), D);
6457
+ return t === 45 && i === 2 ? (e.consume(t), ne) : t === 60 && i === 1 ? (e.consume(t), A) : t === 62 && i === 4 ? (e.consume(t), ae) : t === 63 && i === 3 ? (e.consume(t), j) : t === 93 && i === 5 ? (e.consume(t), ie) : nc(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(gf, oe, O)(t)) : t === null || nc(t) ? (e.exit("htmlFlowData"), O(t)) : (e.consume(t), D);
6458
6458
  }
6459
6459
  function O(t) {
6460
- return e.check(_f, te, oe)(t);
6460
+ return e.check(_f, k, oe)(t);
6461
6461
  }
6462
- function te(t) {
6463
- return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ne;
6462
+ function k(t) {
6463
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), te;
6464
6464
  }
6465
- function ne(t) {
6465
+ function te(t) {
6466
6466
  return t === null || nc(t) ? O(t) : (e.enter("htmlFlowData"), D(t));
6467
6467
  }
6468
- function k(t) {
6468
+ function ne(t) {
6469
6469
  return t === 45 ? (e.consume(t), j) : D(t);
6470
6470
  }
6471
6471
  function A(t) {
@@ -6533,7 +6533,7 @@ function Cf(e, t, n) {
6533
6533
  return t === 45 ? (e.consume(t), p) : d(t);
6534
6534
  }
6535
6535
  function p(e) {
6536
- return e === 62 ? k(e) : e === 45 ? f(e) : d(e);
6536
+ return e === 62 ? ne(e) : e === 45 ? f(e) : d(e);
6537
6537
  }
6538
6538
  function m(t) {
6539
6539
  return t === "CDATA[".charCodeAt(a++) ? (e.consume(t), a === 6 ? h : m) : n(t);
@@ -6545,16 +6545,16 @@ function Cf(e, t, n) {
6545
6545
  return t === 93 ? (e.consume(t), _) : h(t);
6546
6546
  }
6547
6547
  function _(t) {
6548
- return t === 62 ? k(t) : t === 93 ? (e.consume(t), _) : h(t);
6548
+ return t === 62 ? ne(t) : t === 93 ? (e.consume(t), _) : h(t);
6549
6549
  }
6550
6550
  function v(t) {
6551
- return t === null || t === 62 ? k(t) : nc(t) ? (o = v, A(t)) : (e.consume(t), v);
6551
+ return t === null || t === 62 ? ne(t) : nc(t) ? (o = v, A(t)) : (e.consume(t), v);
6552
6552
  }
6553
6553
  function y(t) {
6554
6554
  return t === null ? n(t) : t === 63 ? (e.consume(t), b) : nc(t) ? (o = y, A(t)) : (e.consume(t), y);
6555
6555
  }
6556
6556
  function b(e) {
6557
- return e === 62 ? k(e) : y(e);
6557
+ return e === 62 ? ne(e) : y(e);
6558
6558
  }
6559
6559
  function x(t) {
6560
6560
  return Ys(t) ? (e.consume(t), S) : n(t);
@@ -6563,13 +6563,13 @@ function Cf(e, t, n) {
6563
6563
  return t === 45 || Xs(t) ? (e.consume(t), S) : C(t);
6564
6564
  }
6565
6565
  function C(t) {
6566
- return nc(t) ? (o = C, A(t)) : ic(t) ? (e.consume(t), C) : k(t);
6566
+ return nc(t) ? (o = C, A(t)) : ic(t) ? (e.consume(t), C) : ne(t);
6567
6567
  }
6568
6568
  function w(t) {
6569
6569
  return t === 45 || Xs(t) ? (e.consume(t), w) : t === 47 || t === 62 || rc(t) ? T(t) : n(t);
6570
6570
  }
6571
6571
  function T(t) {
6572
- return t === 47 ? (e.consume(t), k) : t === 58 || t === 95 || Ys(t) ? (e.consume(t), E) : nc(t) ? (o = T, A(t)) : ic(t) ? (e.consume(t), T) : k(t);
6572
+ return t === 47 ? (e.consume(t), ne) : t === 58 || t === 95 || Ys(t) ? (e.consume(t), E) : nc(t) ? (o = T, A(t)) : ic(t) ? (e.consume(t), T) : ne(t);
6573
6573
  }
6574
6574
  function E(t) {
6575
6575
  return t === 45 || t === 46 || t === 58 || t === 95 || Xs(t) ? (e.consume(t), E) : ee(t);
@@ -6578,18 +6578,18 @@ function Cf(e, t, n) {
6578
6578
  return t === 61 ? (e.consume(t), D) : nc(t) ? (o = ee, A(t)) : ic(t) ? (e.consume(t), ee) : T(t);
6579
6579
  }
6580
6580
  function D(t) {
6581
- return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, O) : nc(t) ? (o = D, A(t)) : ic(t) ? (e.consume(t), D) : (e.consume(t), te);
6581
+ return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, O) : nc(t) ? (o = D, A(t)) : ic(t) ? (e.consume(t), D) : (e.consume(t), k);
6582
6582
  }
6583
6583
  function O(t) {
6584
- return t === i ? (e.consume(t), i = void 0, ne) : t === null ? n(t) : nc(t) ? (o = O, A(t)) : (e.consume(t), O);
6584
+ return t === i ? (e.consume(t), i = void 0, te) : t === null ? n(t) : nc(t) ? (o = O, A(t)) : (e.consume(t), O);
6585
6585
  }
6586
- function te(t) {
6587
- return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || rc(t) ? T(t) : (e.consume(t), te);
6586
+ function k(t) {
6587
+ return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || rc(t) ? T(t) : (e.consume(t), k);
6588
6588
  }
6589
- function ne(e) {
6589
+ function te(e) {
6590
6590
  return e === 47 || e === 62 || rc(e) ? T(e) : n(e);
6591
6591
  }
6592
- function k(r) {
6592
+ function ne(r) {
6593
6593
  return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
6594
6594
  }
6595
6595
  function A(t) {
@@ -8056,11 +8056,11 @@ function cm(e) {
8056
8056
  codeTextData: T,
8057
8057
  data: T,
8058
8058
  codeFlowValue: T,
8059
- definition: a(N),
8059
+ definition: a(ge),
8060
8060
  definitionDestinationString: o,
8061
8061
  definitionLabelString: o,
8062
8062
  definitionTitleString: o,
8063
- emphasis: a(ge),
8063
+ emphasis: a(N),
8064
8064
  hardBreakEscape: a(ve),
8065
8065
  hardBreakTrailing: a(ve),
8066
8066
  htmlFlow: a(ye, o),
@@ -8101,7 +8101,7 @@ function cm(e) {
8101
8101
  codeFencedFenceMeta: m,
8102
8102
  codeFlowValue: E,
8103
8103
  codeIndented: c(_),
8104
- codeText: c(ne),
8104
+ codeText: c(te),
8105
8105
  codeTextData: E,
8106
8106
  data: E,
8107
8107
  definition: c(),
@@ -8113,13 +8113,13 @@ function cm(e) {
8113
8113
  hardBreakTrailing: c(D),
8114
8114
  htmlFlow: c(O),
8115
8115
  htmlFlowData: E,
8116
- htmlText: c(te),
8116
+ htmlText: c(k),
8117
8117
  htmlTextData: E,
8118
8118
  image: c(A),
8119
8119
  label: ie,
8120
8120
  labelText: re,
8121
8121
  lineEnding: ee,
8122
- link: c(k),
8122
+ link: c(ne),
8123
8123
  listItem: c(),
8124
8124
  listOrdered: c(),
8125
8125
  listUnordered: c(),
@@ -8345,15 +8345,15 @@ function cm(e) {
8345
8345
  let e = this.resume(), t = this.stack[this.stack.length - 1];
8346
8346
  t.value = e;
8347
8347
  }
8348
- function te() {
8348
+ function k() {
8349
8349
  let e = this.resume(), t = this.stack[this.stack.length - 1];
8350
8350
  t.value = e;
8351
8351
  }
8352
- function ne() {
8352
+ function te() {
8353
8353
  let e = this.resume(), t = this.stack[this.stack.length - 1];
8354
8354
  t.value = e;
8355
8355
  }
8356
- function k() {
8356
+ function ne() {
8357
8357
  let e = this.stack[this.stack.length - 1];
8358
8358
  if (this.data.inReference) {
8359
8359
  let t = this.data.referenceType || "shortcut";
@@ -8438,7 +8438,7 @@ function cm(e) {
8438
8438
  value: ""
8439
8439
  };
8440
8440
  }
8441
- function N() {
8441
+ function ge() {
8442
8442
  return {
8443
8443
  type: "definition",
8444
8444
  identifier: "",
@@ -8447,7 +8447,7 @@ function cm(e) {
8447
8447
  url: ""
8448
8448
  };
8449
8449
  }
8450
- function ge() {
8450
+ function N() {
8451
8451
  return {
8452
8452
  type: "emphasis",
8453
8453
  children: []
@@ -9942,7 +9942,7 @@ var fg = {
9942
9942
  }, _g = (e, t) => {
9943
9943
  gg(new Blob([e], { type: "text/plain;charset=utf-8" }), t);
9944
9944
  }, vg = {
9945
- [Kn.Model]: "var(--text-accent, #1D4ED8)",
9945
+ [Kn.Model]: "var(--text-visual-blue, #1189C8)",
9946
9946
  [Kn.Agent]: "var(--text-visual-green-1, #059669)",
9947
9947
  [Kn.Skill]: "var(--text-visual-violet-1, #7C3AED)",
9948
9948
  [Kn.Toolset]: "var(--text-visual-brown-2, #B45309)",
@@ -28596,12 +28596,12 @@ var LS = function(e, t, n) {
28596
28596
  n && (w *= r.sizeMultiplier);
28597
28597
  var T = C / 2 - w, E = [];
28598
28598
  if (u.length > 0) {
28599
- var ee = C - m - v, D = Math.round(C * 1e3), O = Oy(u, Math.round(ee * 1e3)), te = new qy(u, O), ne = z(d / 1e3), k = z(D / 1e3), A = tx([], [new Ky([te], {
28600
- width: ne,
28601
- height: k,
28599
+ var ee = C - m - v, D = Math.round(C * 1e3), O = Oy(u, Math.round(ee * 1e3)), k = new qy(u, O), te = z(d / 1e3), ne = z(D / 1e3), A = tx([], [new Ky([k], {
28600
+ width: te,
28601
+ height: ne,
28602
28602
  viewBox: "0 0 " + d + " " + D
28603
28603
  })], r);
28604
- A.height = D / 1e3, A.style.width = ne, A.style.height = k, E.push({
28604
+ A.height = D / 1e3, A.style.width = te, A.style.height = ne, E.push({
28605
28605
  type: "elem",
28606
28606
  elem: A
28607
28607
  });
@@ -29367,17 +29367,17 @@ var AC = function(e, t) {
29367
29367
  var w = e.rowGaps[n], T = 0;
29368
29368
  w && (T = Py(w, t), T > 0 && (T += g, x < T && (x = T), T = 0)), e.addJot && n < e.body.length - 1 && (x += p), S.height = b, S.depth = x, _ += b, S.pos = _, _ += x + T, s[n] = S, v(a[n + 1]);
29369
29369
  }
29370
- var E = _ / 2 + t.fontMetrics().axisHeight, ee = e.cols || [], D = [], O, te, ne = [];
29370
+ var E = _ / 2 + t.fontMetrics().axisHeight, ee = e.cols || [], D = [], O, k, te = [];
29371
29371
  if (e.tags && e.tags.some((e) => e)) for (n = 0; n < i; ++n) {
29372
- var k = s[n], A = k.pos - E, re = e.tags[n], ie = void 0;
29373
- ie = re === !0 ? J(["eqn-num"], [], t) : re === !1 ? J([], [], t) : J([], Ox(re, t, !0), t), ie.depth = k.depth, ie.height = k.height, ne.push({
29372
+ var ne = s[n], A = ne.pos - E, re = e.tags[n], ie = void 0;
29373
+ ie = re === !0 ? J(["eqn-num"], [], t) : re === !1 ? J([], [], t) : J([], Ox(re, t, !0), t), ie.depth = ne.depth, ie.height = ne.height, te.push({
29374
29374
  type: "elem",
29375
29375
  elem: ie,
29376
29376
  shift: A
29377
29377
  });
29378
29378
  }
29379
- for (r = 0, te = 0; r < o || te < ee.length; ++r, ++te) {
29380
- for (var j = ee[te], ae = !0; (oe = j)?.type === "separator";) {
29379
+ for (r = 0, k = 0; r < o || k < ee.length; ++r, ++k) {
29380
+ for (var j = ee[k], ae = !0; (oe = j)?.type === "separator";) {
29381
29381
  var oe;
29382
29382
  if (ae || (O = J(["arraycolsep"], []), O.style.width = z(t.fontMetrics().doubleRuleSep), D.push(O)), j.separator === "|" || j.separator === ":") {
29383
29383
  var se = j.separator === "|" ? "solid" : "dashed", ce = J(["vertical-separator"], [], t);
@@ -29385,7 +29385,7 @@ var AC = function(e, t) {
29385
29385
  var le = _ - E;
29386
29386
  le && (ce.style.verticalAlign = z(-le)), D.push(ce);
29387
29387
  } else throw new R("Invalid separator type: " + j.separator);
29388
- te++, j = ee[te], ae = !1;
29388
+ k++, j = ee[k], ae = !1;
29389
29389
  }
29390
29390
  if (!(r >= o)) {
29391
29391
  var ue = void 0;
@@ -29409,11 +29409,11 @@ var AC = function(e, t) {
29409
29409
  D.push(he), (r < o - 1 || e.hskipBeforeAndAfter) && (ue = j?.postgap ?? d, ue !== 0 && (O = J(["arraycolsep"], []), O.style.width = z(ue), D.push(O)));
29410
29410
  }
29411
29411
  }
29412
- var N = J(["mtable"], D);
29412
+ var ge = J(["mtable"], D);
29413
29413
  if (c.length > 0) {
29414
- for (var ge = nx("hline", t, l), _e = nx("hdashline", t, l), ve = [{
29414
+ for (var N = nx("hline", t, l), _e = nx("hdashline", t, l), ve = [{
29415
29415
  type: "elem",
29416
- elem: N,
29416
+ elem: ge,
29417
29417
  shift: 0
29418
29418
  }]; c.length > 0;) {
29419
29419
  var ye = c.pop(), be = ye.pos - E;
@@ -29423,21 +29423,21 @@ var AC = function(e, t) {
29423
29423
  shift: be
29424
29424
  }) : ve.push({
29425
29425
  type: "elem",
29426
- elem: ge,
29426
+ elem: N,
29427
29427
  shift: be
29428
29428
  });
29429
29429
  }
29430
- N = sx({
29430
+ ge = sx({
29431
29431
  positionType: "individualShift",
29432
29432
  children: ve
29433
29433
  });
29434
29434
  }
29435
- if (ne.length === 0) return J(["mord"], [N], t);
29435
+ if (te.length === 0) return J(["mord"], [ge], t);
29436
29436
  var xe = J(["tag"], [sx({
29437
29437
  positionType: "individualShift",
29438
- children: ne
29438
+ children: te
29439
29439
  })], t);
29440
- return ix([N, xe]);
29440
+ return ix([ge, xe]);
29441
29441
  }, jC = {
29442
29442
  c: "center ",
29443
29443
  l: "left ",
@@ -34066,7 +34066,7 @@ function bE(e, n) {
34066
34066
  var i = r.language, a = r.children, o = r.style, s = o === void 0 ? n : o, c = r.customStyle, l = c === void 0 ? {} : c, u = r.codeTagProps, d = u === void 0 ? {
34067
34067
  className: i ? `language-${i}` : void 0,
34068
34068
  style: oE(oE({}, s["code[class*=\"language-\"]"]), s[`code[class*="language-${i}"]`])
34069
- } : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, ee = E === void 0 ? {} : E, D = r.renderer, O = r.PreTag, te = O === void 0 ? "pre" : O, ne = r.CodeTag, k = ne === void 0 ? "code" : ne, A = r.code, re = A === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : A, ie = r.astGenerator, j = IT(r, iE);
34069
+ } : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, ee = E === void 0 ? {} : E, D = r.renderer, O = r.PreTag, k = O === void 0 ? "pre" : O, te = r.CodeTag, ne = te === void 0 ? "code" : te, A = r.code, re = A === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : A, ie = r.astGenerator, j = IT(r, iE);
34070
34070
  ie ||= e;
34071
34071
  var ae = h ? /*#__PURE__*/ t.createElement(uE, {
34072
34072
  containerStyle: b,
@@ -34078,7 +34078,7 @@ function bE(e, n) {
34078
34078
  className: j.className ? `${se} ${j.className}` : se,
34079
34079
  style: Object.assign({}, l)
34080
34080
  });
34081
- if (T ? d.style = oE({ whiteSpace: "pre-wrap" }, d.style) : d.style = oE({ whiteSpace: "pre" }, d.style), !ie) return /*#__PURE__*/ t.createElement(te, ce, ae, /*#__PURE__*/ t.createElement(k, d, re));
34081
+ if (T ? d.style = oE({ whiteSpace: "pre-wrap" }, d.style) : d.style = oE({ whiteSpace: "pre" }, d.style), !ie) return /*#__PURE__*/ t.createElement(k, ce, ae, /*#__PURE__*/ t.createElement(ne, d, re));
34082
34082
  (C === void 0 && D || T) && (C = !0), D ||= _E;
34083
34083
  var le = [{
34084
34084
  type: "text",
@@ -34091,7 +34091,7 @@ function bE(e, n) {
34091
34091
  });
34092
34092
  ue.language === null && (ue.value = le);
34093
34093
  var de = y + (re.match(/\n/g)?.length ?? 0), fe = gE(ue, C, ee, h, _, y, de, S, T);
34094
- return /*#__PURE__*/ t.createElement(te, ce, /*#__PURE__*/ t.createElement(k, d, !_ && ae, D({
34094
+ return /*#__PURE__*/ t.createElement(k, ce, /*#__PURE__*/ t.createElement(ne, d, !_ && ae, D({
34095
34095
  rows: fe,
34096
34096
  stylesheet: s,
34097
34097
  useInlineStyles: p
@@ -34364,13 +34364,13 @@ function IE(e, t, n, r, i, a) {
34364
34364
  a && D > a.reach && (a.reach = D);
34365
34365
  var O = g.prev;
34366
34366
  E && (O = RE(t, O, E), _ += E.length), zE(t, O, y);
34367
- var te = new PE(o, u ? NE.tokenize(T, u) : T, p, T);
34368
- if (g = RE(t, O, te), ee && RE(t, g, ee), y > 1) {
34369
- var ne = {
34367
+ var k = new PE(o, u ? NE.tokenize(T, u) : T, p, T);
34368
+ if (g = RE(t, O, k), ee && RE(t, g, ee), y > 1) {
34369
+ var te = {
34370
34370
  cause: o + "," + c,
34371
34371
  reach: D
34372
34372
  };
34373
- IE(e, t, n, g.prev, _, ne), a && ne.reach > a.reach && (a.reach = ne.reach);
34373
+ IE(e, t, n, g.prev, _, te), a && te.reach > a.reach && (a.reach = te.reach);
34374
34374
  }
34375
34375
  }
34376
34376
  }
@@ -36564,8 +36564,8 @@ function ED(e) {
36564
36564
  punctuation: /[:,]/
36565
36565
  }
36566
36566
  } });
36567
- var ee = ":[^}\\r\\n]+", D = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2), O = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [D, ee]), te = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [S]), 2), ne = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [te, ee]);
36568
- function k(t, r) {
36567
+ var ee = ":[^}\\r\\n]+", D = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2), O = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [D, ee]), k = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [S]), 2), te = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [k, ee]);
36568
+ function ne(t, r) {
36569
36569
  return {
36570
36570
  interpolation: {
36571
36571
  pattern: n("((?:^|[^{])(?:\\{\\{)*)<<0>>", [t]),
@@ -36592,12 +36592,12 @@ function ED(e) {
36592
36592
  pattern: n("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [O]),
36593
36593
  lookbehind: !0,
36594
36594
  greedy: !0,
36595
- inside: k(O, D)
36595
+ inside: ne(O, D)
36596
36596
  }, {
36597
- pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [ne]),
36597
+ pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [te]),
36598
36598
  lookbehind: !0,
36599
36599
  greedy: !0,
36600
- inside: k(ne, te)
36600
+ inside: ne(te, k)
36601
36601
  }],
36602
36602
  char: {
36603
36603
  pattern: RegExp(y),
@@ -50372,25 +50372,25 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50372
50372
  })
50373
50373
  ]
50374
50374
  });
50375
- }, vN = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, featuredLabel: a = "Featured", addToFavoritesAriaLabel: o = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: u = !1, className: d, styles: f, credentialsBadgeLoggedOutLabel: p }) => {
50376
- let [m, g] = h(r);
50375
+ }, vN = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: c = "Add to favorites", removeFromFavoritesAriaLabel: u = "Remove from favorites", isSelected: d = !1, className: f, styles: p, credentialsBadgeLoggedOutLabel: m }) => {
50376
+ let [g, _] = h(r);
50377
50377
  l(() => {
50378
- g(r);
50378
+ _(r);
50379
50379
  }, [e.id, r]);
50380
- let _ = f?.typography?.descriptionClassName ?? "dial-small-text", v = f?.typography?.descriptionSizeClassName ?? "dial-tiny-text", y = f?.typography?.featuredChipClassName, b = f?.typography?.folderLabelClassName ?? "dial-tiny-text", S = f?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", C = wi({
50381
- "--cg-description-text": f?.colors?.textSecondary,
50382
- "--cg-selected-border": f?.colors?.selectedBorder,
50383
- "--cg-selected-bg": f?.colors?.selectedBackground,
50384
- "--cg-check-icon": f?.colors?.checkIcon,
50385
- "--cg-footer-border": f?.colors?.footerBorder
50386
- }), w = n ? () => n(e) : void 0, T = s((t) => {
50380
+ let v = p?.typography?.descriptionClassName ?? "dial-small-text", y = p?.typography?.descriptionSizeClassName ?? "dial-tiny-text", b = p?.typography?.featuredChipClassName, S = p?.typography?.folderLabelClassName ?? "dial-tiny-text", C = p?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", w = wi({
50381
+ "--cg-description-text": p?.colors?.textSecondary,
50382
+ "--cg-selected-border": p?.colors?.selectedBorder,
50383
+ "--cg-selected-bg": p?.colors?.selectedBackground,
50384
+ "--cg-check-icon": p?.colors?.checkIcon,
50385
+ "--cg-footer-border": p?.colors?.footerBorder
50386
+ }), T = n ? () => n(e) : void 0, E = s((t) => {
50387
50387
  n && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
50388
- }, [n, e]), E = s((t) => {
50388
+ }, [n, e]), ee = s((t) => {
50389
50389
  t.stopPropagation();
50390
- let n = !m;
50391
- g(n), i?.(e.id, n);
50390
+ let n = !g;
50391
+ _(n), i?.(e.id, n);
50392
50392
  }, [
50393
- m,
50393
+ g,
50394
50394
  i,
50395
50395
  e.id
50396
50396
  ]);
@@ -50398,22 +50398,22 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50398
50398
  ...n ? {
50399
50399
  role: "button",
50400
50400
  tabIndex: 0,
50401
- onClick: w,
50402
- onKeyDown: T
50401
+ onClick: T,
50402
+ onKeyDown: E
50403
50403
  } : {},
50404
50404
  "aria-label": e.name,
50405
- style: C,
50406
- className: I("box-border cursor-pointer gap-3", oN.card, e.isFeatured ? oN.featuredCard : void 0, u ? oN.selectedCard : void 0, d),
50405
+ style: w,
50406
+ className: I("box-border cursor-pointer gap-3", oN.card, e.isFeatured ? oN.featuredCard : void 0, d ? oN.selectedCard : void 0, f),
50407
50407
  children: [
50408
50408
  e.isFeatured && /* @__PURE__ */ P("div", {
50409
50409
  className: "absolute end-[22px] top-0 -translate-y-1/2",
50410
50410
  children: /* @__PURE__ */ P(Wg, {
50411
- label: a,
50411
+ label: o,
50412
50412
  type: e.type,
50413
- className: y
50413
+ className: b
50414
50414
  })
50415
50415
  }),
50416
- u && /* @__PURE__ */ P(lt, {
50416
+ d && /* @__PURE__ */ P(lt, {
50417
50417
  size: O.SM,
50418
50418
  className: I("absolute end-3 top-3 shrink-0", oN.checkIcon),
50419
50419
  "aria-hidden": !0
@@ -50428,11 +50428,11 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50428
50428
  iconClassName: oN.cardIcon,
50429
50429
  iconOverlay: /* @__PURE__ */ P(uN, {
50430
50430
  credentials: e.credentials,
50431
- loggedOutLabel: p
50431
+ loggedOutLabel: m
50432
50432
  })
50433
50433
  }),
50434
50434
  /* @__PURE__ */ P("p", {
50435
- className: I(_, "line-clamp-2 min-h-[2lh] break-words", v, oN.description),
50435
+ className: I(v, "line-clamp-2 min-h-[2lh] break-words", y, oN.description),
50436
50436
  children: e.description
50437
50437
  }),
50438
50438
  /* @__PURE__ */ P("div", {
@@ -50447,22 +50447,22 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50447
50447
  className: "min-w-0 flex-1",
50448
50448
  children: e.folder.length > 0 && /* @__PURE__ */ P(_e, {
50449
50449
  segments: e.folder,
50450
- labelClassName: b,
50451
- leafClassName: S
50450
+ labelClassName: S,
50451
+ leafClassName: C
50452
50452
  })
50453
- }), /* @__PURE__ */ P(fN, {
50454
- isStarred: m,
50453
+ }), a?.(e) !== !1 && /* @__PURE__ */ P(fN, {
50454
+ isStarred: g,
50455
50455
  size: M.Small,
50456
- onClick: E,
50457
- ariaLabel: m ? c : o,
50458
- className: I(oN.starBtn, !m && oN.emptyStarHidden)
50456
+ onClick: ee,
50457
+ ariaLabel: g ? u : c,
50458
+ className: I(oN.starBtn, !g && oN.emptyStarHidden)
50459
50459
  })]
50460
50460
  })
50461
50461
  })
50462
50462
  ]
50463
50463
  });
50464
- }, yN = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, onItemClick: a, featuredLabel: o, addToFavoritesAriaLabel: s, removeFromFavoritesAriaLabel: c, selectedItemId: l, credentialsBadgeLoggedOutLabel: u }) => {
50465
- let d = e * n, f = t.slice(d, d + n);
50464
+ }, yN = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d }) => {
50465
+ let f = e * n, p = t.slice(f, f + n);
50466
50466
  return /* @__PURE__ */ P("div", {
50467
50467
  style: {
50468
50468
  top: e * 268,
@@ -50470,7 +50470,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50470
50470
  },
50471
50471
  className: "absolute flex w-full gap-5 pb-5",
50472
50472
  children: Array.from({ length: n }, (e, t) => {
50473
- let n = f[t];
50473
+ let n = p[t];
50474
50474
  return /* @__PURE__ */ P("div", {
50475
50475
  className: "h-full min-w-0 flex-1",
50476
50476
  children: n && /* @__PURE__ */ P(vN, {
@@ -50478,48 +50478,51 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50478
50478
  query: r,
50479
50479
  initialIsStarred: n.isStarred,
50480
50480
  onToggle: i,
50481
- onClick: a,
50482
- featuredLabel: o,
50483
- addToFavoritesAriaLabel: s,
50484
- removeFromFavoritesAriaLabel: c,
50485
- isSelected: n.id === l,
50481
+ isFavoriteVisible: a,
50482
+ onClick: o,
50483
+ featuredLabel: s,
50484
+ addToFavoritesAriaLabel: c,
50485
+ removeFromFavoritesAriaLabel: l,
50486
+ isSelected: n.id === u,
50486
50487
  className: "h-full",
50487
- credentialsBadgeLoggedOutLabel: u
50488
+ credentialsBadgeLoggedOutLabel: d
50488
50489
  })
50489
50490
  }, n?.id ?? `spacer-${t}`);
50490
50491
  })
50491
50492
  });
50492
- }, bN = o(({ items: e, query: t = "", onToggleFavorite: n, onItemClick: r, titles: i, isLoading: a, selectedItemId: o, skeletonColor: s = oN.skeletonColor, skeletonCardBackground: c }) => {
50493
- let l = i?.noResultsTitle ?? "No results", u = i?.featuredLabel ?? "Featured", d = i?.addToFavoritesAriaLabel ?? "Add to favorites", f = i?.removeFromFavoritesAriaLabel ?? "Remove from favorites", m = i?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: h, startRow: g, endRow: _, columnCount: v, totalHeight: y } = aN(e.length), b = p(() => ({
50493
+ }, bN = o(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = oN.skeletonColor, skeletonCardBackground: l }) => {
50494
+ let u = a?.noResultsTitle ?? "No results", d = a?.featuredLabel ?? "Featured", f = a?.addToFavoritesAriaLabel ?? "Add to favorites", m = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", h = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: g, startRow: _, endRow: v, columnCount: y, totalHeight: b } = aN(e.length), x = p(() => ({
50494
50495
  items: e,
50495
- columnCount: v,
50496
+ columnCount: y,
50496
50497
  query: t,
50497
50498
  onToggleFavorite: n,
50498
- onItemClick: r,
50499
- featuredLabel: u,
50500
- addToFavoritesAriaLabel: d,
50501
- removeFromFavoritesAriaLabel: f,
50502
- selectedItemId: o,
50503
- credentialsBadgeLoggedOutLabel: m
50499
+ isFavoriteVisible: r,
50500
+ onItemClick: i,
50501
+ featuredLabel: d,
50502
+ addToFavoritesAriaLabel: f,
50503
+ removeFromFavoritesAriaLabel: m,
50504
+ selectedItemId: s,
50505
+ credentialsBadgeLoggedOutLabel: h
50504
50506
  }), [
50505
50507
  e,
50506
- v,
50508
+ y,
50507
50509
  t,
50508
50510
  n,
50509
50511
  r,
50510
- u,
50512
+ i,
50511
50513
  d,
50512
50514
  f,
50513
- o,
50514
- m
50515
+ m,
50516
+ s,
50517
+ h
50515
50518
  ]);
50516
- return a ? /* @__PURE__ */ P("div", {
50519
+ return o ? /* @__PURE__ */ P("div", {
50517
50520
  className: "grid gap-5 p-5",
50518
50521
  style: {
50519
- gridTemplateColumns: `repeat(${v}, minmax(0, 1fr))`,
50520
- ...wi({ "--cg-skeleton-card-bg": c })
50522
+ gridTemplateColumns: `repeat(${y}, minmax(0, 1fr))`,
50523
+ ...wi({ "--cg-skeleton-card-bg": l })
50521
50524
  },
50522
- children: Array.from({ length: v * 3 }, (e, t) => /* @__PURE__ */ P("div", {
50525
+ children: Array.from({ length: y * 3 }, (e, t) => /* @__PURE__ */ P("div", {
50523
50526
  className: I("rounded-md border p-4", oN.skeletonCard),
50524
50527
  style: { height: 248 },
50525
50528
  children: /* @__PURE__ */ P(ze, {
@@ -50530,21 +50533,21 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50530
50533
  showTitle: { width: `${60 + t * 17 % 30}%` },
50531
50534
  paragraph: { rows: 3 },
50532
50535
  active: !0,
50533
- color: s
50536
+ color: c
50534
50537
  })
50535
50538
  }, t))
50536
50539
  }) : e.length === 0 ? /* @__PURE__ */ P("div", {
50537
50540
  className: "flex size-full flex-col items-center justify-center",
50538
- children: /* @__PURE__ */ P(Bg, { label: l })
50541
+ children: /* @__PURE__ */ P(Bg, { label: u })
50539
50542
  }) : /* @__PURE__ */ P("div", {
50540
- ref: h,
50543
+ ref: g,
50541
50544
  className: "relative",
50542
- style: { height: y },
50543
- children: Array.from({ length: _ - g }, (e, t) => {
50544
- let n = g + t;
50545
+ style: { height: b },
50546
+ children: Array.from({ length: v - _ }, (e, t) => {
50547
+ let n = _ + t;
50545
50548
  return /* @__PURE__ */ P(yN, {
50546
50549
  rowIndex: n,
50547
- ...b
50550
+ ...x
50548
50551
  }, n);
50549
50552
  })
50550
50553
  });
@@ -50652,7 +50655,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50652
50655
  o,
50653
50656
  x,
50654
50657
  m
50655
- ]), te = s(() => {
50658
+ ]), k = s(() => {
50656
50659
  f(n), g(void 0), b(!1), S([]), E(!1);
50657
50660
  }, [n]);
50658
50661
  return {
@@ -50665,7 +50668,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50665
50668
  isSubmitting: _,
50666
50669
  hasSubmitError: y,
50667
50670
  handleSubmit: O,
50668
- reset: te,
50671
+ reset: k,
50669
50672
  rules: x,
50670
50673
  setRules: S,
50671
50674
  isRulesLoading: C,
@@ -50739,11 +50742,11 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50739
50742
  "--pare-select-border-focus": s.colors?.selectBorderFocus
50740
50743
  }),
50741
50744
  ...s.cssVars
50742
- }, { sourceLabel: d = "Source", sourcePlaceholder: f = "Select...", functionLabel: g = "Function", equalOptionLabel: _ = "Equal", containOptionLabel: v = "Contain", regexOptionLabel: y = "Regex", targetsLabel: b = "Targets", targetsPlaceholder: x = "Add a target", targetsHintLabel: S = "Press Enter or comma to add a target.", patternLabel: C = "Pattern", patternPlaceholder: w = "Enter a regular expression", invalidRegexError: T = "Enter a valid regular expression.", requiredFieldError: E = "This field is required.", targetsRequiredError: ee = "Add at least one target.", saveLabel: D = "Save", cancelLabel: O = "Cancel", dialogAriaLabel: te = "Add access rule" } = a, ne = u(), k = u(), A = u(), re = u(), ie = m(null);
50745
+ }, { sourceLabel: d = "Source", sourcePlaceholder: f = "Select...", functionLabel: g = "Function", equalOptionLabel: _ = "Equal", containOptionLabel: v = "Contain", regexOptionLabel: y = "Regex", targetsLabel: b = "Targets", targetsPlaceholder: x = "Add a target", targetsHintLabel: S = "Press Enter or comma to add a target.", patternLabel: C = "Pattern", patternPlaceholder: w = "Enter a regular expression", invalidRegexError: T = "Enter a valid regular expression.", requiredFieldError: E = "This field is required.", targetsRequiredError: ee = "Add at least one target.", saveLabel: D = "Save", cancelLabel: O = "Cancel", dialogAriaLabel: k = "Add access rule" } = a, te = u(), ne = u(), A = u(), re = u(), ie = m(null);
50743
50746
  l(() => {
50744
50747
  ie.current?.focus();
50745
50748
  }, []);
50746
- let [j, ae] = h(), [oe, se] = h(), [ce, le] = h([]), [ue, de] = h(""), [fe, pe] = h(!1), [me, M] = h(!1), [he, N] = h(!1), ge = I(RN.selectField, fe && RN.selectFieldOpen), _e = I(RN.selectField, me && RN.selectFieldOpen), ye = p(() => e.map((e) => ({
50749
+ let [j, ae] = h(), [oe, se] = h(), [ce, le] = h([]), [ue, de] = h(""), [fe, pe] = h(!1), [me, M] = h(!1), [he, ge] = h(!1), N = I(RN.selectField, fe && RN.selectFieldOpen), _e = I(RN.selectField, me && RN.selectFieldOpen), ye = p(() => e.map((e) => ({
50747
50750
  value: e,
50748
50751
  label: e
50749
50752
  })), [e]), be = p(() => [
@@ -50768,7 +50771,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50768
50771
  ref: ie,
50769
50772
  role: "dialog",
50770
50773
  "aria-modal": "true",
50771
- "aria-label": te,
50774
+ "aria-label": k,
50772
50775
  tabIndex: -1,
50773
50776
  onKeyDown: (e) => {
50774
50777
  e.key === "Escape" && (e.stopPropagation(), n());
@@ -50777,7 +50780,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50777
50780
  className: I("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", RN.dialog),
50778
50781
  children: [
50779
50782
  /* @__PURE__ */ P(Re, {
50780
- id: k,
50783
+ id: ne,
50781
50784
  labelProps: { label: d },
50782
50785
  options: ye,
50783
50786
  value: j,
@@ -50790,7 +50793,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50790
50793
  disabled: r,
50791
50794
  open: fe,
50792
50795
  onOpenChange: pe,
50793
- fieldClassName: ge,
50796
+ fieldClassName: N,
50794
50797
  invalid: he && j == null,
50795
50798
  error: he && j == null ? E : void 0
50796
50799
  }),
@@ -50812,16 +50815,16 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50812
50815
  error: he && oe == null ? E : void 0
50813
50816
  }),
50814
50817
  xe ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(Ce, {
50815
- id: `${ne}-input`,
50818
+ id: `${te}-input`,
50816
50819
  labelProps: { label: C },
50817
50820
  placeholder: w,
50818
50821
  value: ue,
50819
50822
  onChange: (e) => de(e ?? ""),
50820
50823
  invalid: (ue.length > 0 || he) && !Se,
50821
- "aria-describedby": (ue.length > 0 || he) && !Se ? ne : void 0,
50824
+ "aria-describedby": (ue.length > 0 || he) && !Se ? te : void 0,
50822
50825
  disabled: r
50823
50826
  }), (ue.length > 0 || he) && !Se && /* @__PURE__ */ P("span", {
50824
- id: ne,
50827
+ id: te,
50825
50828
  role: "alert",
50826
50829
  className: I("mt-1 block", o, RN.error),
50827
50830
  children: T
@@ -50853,7 +50856,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50853
50856
  label: D,
50854
50857
  onClick: () => {
50855
50858
  if (!we || j == null || oe == null) {
50856
- N(!0);
50859
+ ge(!0);
50857
50860
  return;
50858
50861
  }
50859
50862
  t({
@@ -50883,7 +50886,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50883
50886
  "--par-rule-text": y.colors?.ruleText
50884
50887
  }),
50885
50888
  ...y.cssVars
50886
- }, { heading: S = "Allow access if all match", folderScopeHint: C = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: w = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: T = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: E = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: ee = "Add rule", clearAllLabel: D = "Clear all", orSeparatorLabel: te = "Or", removeRuleAriaLabelTemplate: ne = "Remove rule for {source}: {targets}", equalFunctionLabel: k = "Equal", containFunctionLabel: A = "Contain", regexFunctionLabel: re = "Regex", loadingLabel: ie = "Loading existing rules…", loadErrorLabel: j = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: ae = "Rule added.", ruleRemovedAnnouncement: oe = "Rule removed.", rulesClearedAnnouncement: se = "All rules cleared.", rulesLoadedAnnouncement: ce = "Existing rules loaded for the selected folder.", editorLabels: le } = d, ue = u(), [de, fe] = h(!1), [pe, me] = h(""), M = m(null), he = m(a);
50889
+ }, { heading: S = "Allow access if all match", folderScopeHint: C = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: w = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: T = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: E = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: ee = "Add rule", clearAllLabel: D = "Clear all", orSeparatorLabel: k = "Or", removeRuleAriaLabelTemplate: te = "Remove rule for {source}: {targets}", equalFunctionLabel: ne = "Equal", containFunctionLabel: A = "Contain", regexFunctionLabel: re = "Regex", loadingLabel: ie = "Loading existing rules…", loadErrorLabel: j = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: ae = "Rule added.", ruleRemovedAnnouncement: oe = "Rule removed.", rulesClearedAnnouncement: se = "All rules cleared.", rulesLoadedAnnouncement: ce = "Existing rules loaded for the selected folder.", editorLabels: le } = d, ue = u(), [de, fe] = h(!1), [pe, me] = h(""), M = m(null), he = m(a);
50887
50890
  l(() => {
50888
50891
  he.current && !a && e.length > 0 && me(ce), he.current = a;
50889
50892
  }, [
@@ -50891,18 +50894,18 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50891
50894
  e,
50892
50895
  ce
50893
50896
  ]);
50894
- let N = () => {
50897
+ let ge = () => {
50895
50898
  M.current = document.activeElement, fe(!0);
50896
- }, ge = () => {
50899
+ }, N = () => {
50897
50900
  fe(!1), M.current?.focus?.();
50898
50901
  }, _e = (n) => {
50899
- t([...e, n]), me(ae), ge();
50902
+ t([...e, n]), me(ae), N();
50900
50903
  }, be = (n) => {
50901
50904
  t(e.filter((e, t) => t !== n)), me(oe);
50902
50905
  }, xe = () => {
50903
50906
  t([]), me(se);
50904
50907
  }, Se = {
50905
- equal: k,
50908
+ equal: ne,
50906
50909
  contain: A,
50907
50910
  regex: re
50908
50911
  }, Ce = e.length >= s, we = i || Ce, Te = r != null && r !== "";
@@ -50961,7 +50964,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50961
50964
  e.length > 0 && /* @__PURE__ */ P("ul", {
50962
50965
  className: "mb-3 flex flex-col gap-2",
50963
50966
  children: e.map((e, t) => {
50964
- let n = e.targets.join(` ${te} `), r = ne.replace("{source}", e.source).replace("{targets}", n);
50967
+ let n = e.targets.join(` ${k} `), r = te.replace("{source}", e.source).replace("{targets}", n);
50965
50968
  return /* @__PURE__ */ F("li", {
50966
50969
  className: I("flex items-center justify-between gap-2 rounded-lg px-3 py-2", WN.ruleRow),
50967
50970
  children: [/* @__PURE__ */ F("span", {
@@ -50991,7 +50994,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
50991
50994
  de && /* @__PURE__ */ P(UN, {
50992
50995
  sourceOptions: n,
50993
50996
  onSave: _e,
50994
- onCancel: ge,
50997
+ onCancel: N,
50995
50998
  disabled: i,
50996
50999
  maxTargets: c,
50997
51000
  labels: le,
@@ -51005,7 +51008,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
51005
51008
  size: O.SM,
51006
51009
  "aria-hidden": !0
51007
51010
  }),
51008
- onClick: N,
51011
+ onClick: ge,
51009
51012
  disabled: we
51010
51013
  })
51011
51014
  }),
@@ -58815,7 +58818,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
58815
58818
  gP.Author,
58816
58819
  gP.Actions
58817
58820
  ], FP = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(FP || {}), IP = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(IP || {}), LP = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(LP || {}), RP = ({ open: e, onClose: t, onReplace: n, onDuplicate: r, onDecideForEach: i, conflictingFiles: a, singleFileTitle: o = "Replace Or Duplicate Item", multipleFilesTitle: c = "Replace Or Duplicate Items", message: l, actionLabels: u, strategyLabels: d, confirmLabel: f = "Confirm", cancelLabel: m = "Cancel", nameColumnLabel: g = "Name", actionColumnLabel: _ = "Action" }) => {
58818
- let v = a.length === 1, y = v ? a[0]?.name : "", b = u?.[uP.Replace] ?? "Replace", x = u?.[uP.Duplicate] ?? "Duplicate", S = u?.[uP.Cancel] ?? "Cancel", C = d?.[dP.ReplaceAll] ?? "Replace all", w = d?.[dP.DuplicateAll] ?? "Duplicate all", T = d?.[dP.DecideForEach] ?? "Decide for each", [E, ee] = h(uP.Replace), [D, te] = h(dP.ReplaceAll), [ne, k] = h(new Map(a.map((e) => [e.path, uP.Replace]))), [A, re] = h(void 0), ie = v ? o : c, ae = /* @__PURE__ */ F(nt, { children: [
58821
+ let v = a.length === 1, y = v ? a[0]?.name : "", b = u?.[uP.Replace] ?? "Replace", x = u?.[uP.Duplicate] ?? "Duplicate", S = u?.[uP.Cancel] ?? "Cancel", C = d?.[dP.ReplaceAll] ?? "Replace all", w = d?.[dP.DuplicateAll] ?? "Duplicate all", T = d?.[dP.DecideForEach] ?? "Decide for each", [E, ee] = h(uP.Replace), [D, k] = h(dP.ReplaceAll), [te, ne] = h(new Map(a.map((e) => [e.path, uP.Replace]))), [A, re] = h(void 0), ie = v ? o : c, ae = /* @__PURE__ */ F(nt, { children: [
58819
58822
  "Item with the name ",
58820
58823
  /* @__PURE__ */ F("span", {
58821
58824
  className: "text-primary",
@@ -58838,8 +58841,8 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
58838
58841
  name: e.name,
58839
58842
  path: e.path,
58840
58843
  nodeType: e.nodeType ?? FP.ITEM,
58841
- action: ne.get(e.path) || uP.Replace
58842
- })), [a, ne]), pe = p(() => [{
58844
+ action: te.get(e.path) || uP.Replace
58845
+ })), [a, te]), pe = p(() => [{
58843
58846
  field: "name",
58844
58847
  headerName: g,
58845
58848
  flex: 1,
@@ -58898,7 +58901,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
58898
58901
  open: r,
58899
58902
  items: t,
58900
58903
  onItemClick: ({ key: t }) => {
58901
- k((n) => {
58904
+ ne((n) => {
58902
58905
  let r = new Map(n);
58903
58906
  return r.set(e.data.path, t), r;
58904
58907
  }), re(void 0);
@@ -58958,13 +58961,13 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
58958
58961
  pe,
58959
58962
  de
58960
58963
  ]), he = s(() => {
58961
- ee(uP.Replace), te(dP.ReplaceAll), k(new Map(a.map((e) => [e.path, uP.Replace])));
58962
- }, [a]), N = s(() => {
58964
+ ee(uP.Replace), k(dP.ReplaceAll), ne(new Map(a.map((e) => [e.path, uP.Replace])));
58965
+ }, [a]), ge = s(() => {
58963
58966
  he(), t();
58964
- }, [he, t]), ge = s(() => {
58967
+ }, [he, t]), N = s(() => {
58965
58968
  he(), v ? E === uP.Replace ? n() : r() : D === dP.ReplaceAll ? n() : D === dP.DuplicateAll ? r() : D === dP.DecideForEach && i && i(a.map((e) => ({
58966
58969
  file: e,
58967
- action: ne.get(e.path) || uP.Replace
58970
+ action: te.get(e.path) || uP.Replace
58968
58971
  })));
58969
58972
  }, [
58970
58973
  he,
@@ -58975,11 +58978,11 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
58975
58978
  D,
58976
58979
  i,
58977
58980
  a,
58978
- ne
58981
+ te
58979
58982
  ]);
58980
58983
  return /* @__PURE__ */ P(je, {
58981
58984
  open: e,
58982
- onClose: N,
58985
+ onClose: ge,
58983
58986
  size: v ? Me.Sm : Me.Md,
58984
58987
  className: (0, nP.default)([!v && "w-[600px]"]),
58985
58988
  header: ie,
@@ -58987,10 +58990,10 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
58987
58990
  footer: /* @__PURE__ */ F("div", {
58988
58991
  className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary",
58989
58992
  children: [/* @__PURE__ */ P(Ee, {
58990
- onClick: N,
58993
+ onClick: ge,
58991
58994
  label: m
58992
58995
  }), /* @__PURE__ */ P(Ne, {
58993
- onClick: ge,
58996
+ onClick: N,
58994
58997
  label: f
58995
58998
  })]
58996
58999
  }),
@@ -59010,7 +59013,7 @@ var ZM = [Tg], QM = ({ content: e, headingClassName: t }) => /* @__PURE__ */ P(Y
59010
59013
  ariaLabel: ie,
59011
59014
  items: M,
59012
59015
  value: D,
59013
- onChange: (e) => te(e),
59016
+ onChange: (e) => k(e),
59014
59017
  contentClassName: "ml-0"
59015
59018
  })]
59016
59019
  })
@@ -59313,7 +59316,7 @@ var tF = (e) => {
59313
59316
  ])
59314
59317
  };
59315
59318
  }, pF = ({ getDestinationFiles: e, onCopyFiles: t, onMoveToFiles: n, onCopySuccess: r, onMoveSuccess: i, onDuplicateSuccess: a, getCopyHeader: o, getMoveHeader: c }) => {
59316
- let [l, u] = h(!1), [d, f] = h([]), [p, m] = h([]), [g, _] = h(fP.Copy), [v, y] = h(), [b, x] = h(null), { conflictingFiles: S, conflictResolutionOpen: C, hasActiveConflictRef: w, startConflictResolution: T, resolveConflictsWithStrategy: E, closeConflictResolution: ee, openConflictResolution: D, handleReplaceAll: O, handleDuplicateAll: te, handleCancelAll: ne, handleDecideForEach: k } = fF({
59319
+ let [l, u] = h(!1), [d, f] = h([]), [p, m] = h([]), [g, _] = h(fP.Copy), [v, y] = h(), [b, x] = h(null), { conflictingFiles: S, conflictResolutionOpen: C, hasActiveConflictRef: w, startConflictResolution: T, resolveConflictsWithStrategy: E, closeConflictResolution: ee, openConflictResolution: D, handleReplaceAll: O, handleDuplicateAll: k, handleCancelAll: te, handleDecideForEach: ne } = fF({
59317
59320
  getDestinationFiles: e,
59318
59321
  onResolve: (e, a) => {
59319
59322
  e?.length && (b?.type === fP.Copy ? (t?.(e, a), r?.()) : b?.type === fP.Move && b.sourceFolder && (n?.(e, b.sourceFolder, a), i?.()));
@@ -59353,12 +59356,12 @@ var tF = (e) => {
59353
59356
  ]), j = s(() => {
59354
59357
  O(), A();
59355
59358
  }, [O, A]), ae = s(() => {
59359
+ k(), A();
59360
+ }, [k, A]), oe = s(() => {
59356
59361
  te(), A();
59357
- }, [te, A]), oe = s(() => {
59358
- ne(), A();
59359
- }, [ne, A]), se = s((e) => {
59360
- k(e), A();
59361
- }, [k, A]), ce = s((e) => {
59362
+ }, [te, A]), se = s((e) => {
59363
+ ne(e), A();
59364
+ }, [ne, A]), ce = s((e) => {
59362
59365
  let n = e.at(0)?.parentPath ?? "/", r = E(n, e, !1);
59363
59366
  t?.(r, n), a?.();
59364
59367
  }, [
@@ -59445,7 +59448,7 @@ var tF = (e) => {
59445
59448
  ]) }), _F = (e) => "dataTransfer" in e && e.dataTransfer !== null, vF = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: n, allowedFileTypes: r, validationMessages: i = {}, onUploadArchive: a, prepareUploadFileName: o, uploadEnabled: c = !0, currentFolder: u } = {}) => {
59446
59449
  let [d, f] = h(!1), [g, _] = h(!1), [v, y] = h(), b = m(null), x = m(""), S = m([]), C = p(() => !!u?.permissions?.includes(LP.WRITE), [u]), [w, T] = h(/* @__PURE__ */ new Map()), [E, ee] = h(null), D = s((e) => !r || r.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => XP(r, e.type, t)), [r]), O = s(() => {
59447
59450
  T(/* @__PURE__ */ new Map()), ee(null);
59448
- }, []), { conflictingFiles: te, conflictResolutionOpen: ne, hasActiveConflictRef: k, startConflictResolution: A, closeConflictResolution: re, openConflictResolution: ie, handleReplaceAll: j, handleDuplicateAll: ae, handleCancelAll: oe, handleDecideForEach: se } = fF({
59451
+ }, []), { conflictingFiles: k, conflictResolutionOpen: te, hasActiveConflictRef: ne, startConflictResolution: A, closeConflictResolution: re, openConflictResolution: ie, handleReplaceAll: j, handleDuplicateAll: ae, handleCancelAll: oe, handleDecideForEach: se } = fF({
59449
59452
  getDestinationFiles: () => S.current,
59450
59453
  onResolve: (t, n) => {
59451
59454
  if (!c || !C) {
@@ -59540,19 +59543,19 @@ var tF = (e) => {
59540
59543
  }, [oe, O]), me = s((e) => {
59541
59544
  se(e), O();
59542
59545
  }, [se, O]), M = s(() => {
59543
- re(), k.current || O();
59546
+ re(), ne.current || O();
59544
59547
  }, [
59545
59548
  re,
59546
- k,
59549
+ ne,
59547
59550
  O
59548
59551
  ]), he = s((e) => {
59549
59552
  !c || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && f(!0));
59550
- }, [c, C]), N = s((e) => {
59553
+ }, [c, C]), ge = s((e) => {
59551
59554
  if (!c || !C) return;
59552
59555
  e.preventDefault(), e.stopPropagation();
59553
59556
  let t = e.currentTarget.getBoundingClientRect(), n = e.clientX, r = e.clientY;
59554
59557
  (n <= t.left || n >= t.right || r <= t.top || r >= t.bottom) && f(!1);
59555
- }, [c, C]), ge = s((e) => {
59558
+ }, [c, C]), N = s((e) => {
59556
59559
  !c || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && (e.dataTransfer.dropEffect = "copy"));
59557
59560
  }, [c, C]), _e = s(async (e, t, n) => {
59558
59561
  if (!c || !C || (e.preventDefault(), e.stopPropagation(), f(!1), !e.dataTransfer.types.includes("Files"))) return;
@@ -59674,8 +59677,8 @@ var tF = (e) => {
59674
59677
  isDraggingOverWindow: g,
59675
59678
  uploadError: v,
59676
59679
  handleDragEnter: he,
59677
- handleDragLeave: N,
59678
- handleDragOver: ge,
59680
+ handleDragLeave: ge,
59681
+ handleDragOver: N,
59679
59682
  handleDrop: _e,
59680
59683
  clearError: s(() => {
59681
59684
  y(void 0);
@@ -59684,9 +59687,9 @@ var tF = (e) => {
59684
59687
  openFileDialog: ye,
59685
59688
  openArchiveDialog: be,
59686
59689
  fileInputRef: b,
59687
- uploadConflictingFiles: te,
59688
- uploadConflictResolutionOpen: ne,
59689
- hasActiveUploadConflictRef: k,
59690
+ uploadConflictingFiles: k,
59691
+ uploadConflictResolutionOpen: te,
59692
+ hasActiveUploadConflictRef: ne,
59690
59693
  openUploadConflictResolution: ie,
59691
59694
  closeUploadConflictResolution: M,
59692
59695
  handleUploadConflictReplace: de,
@@ -59923,9 +59926,9 @@ var DF = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59923
59926
  a || (S.current = e?.parentPath || "/", x(sF((UP(i, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === FP.FOLDER))), f(hP.Sibling), _(e), y(e?.parentPath || "/"), o(!0));
59924
59927
  }, [a, i]), O = s((e) => {
59925
59928
  a || (S.current = e.path, x(sF((e?.items ?? []).filter((e) => e.nodeType === FP.FOLDER))), f(hP.Child), _(e), y(e?.path || "/"), o(!0));
59926
- }, [a]), te = s(() => {
59929
+ }, [a]), k = s(() => {
59927
59930
  o(!1), u(null), f(hP.Folder), _(null), y(null), S.current = void 0, x("");
59928
- }, []), ne = s((e) => {
59931
+ }, []), te = s((e) => {
59929
59932
  let t = e.trim();
59930
59933
  if (!t) return C.emptyName;
59931
59934
  if (t.includes("..")) return C.consecutiveDotsError;
@@ -59951,11 +59954,11 @@ var DF = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59951
59954
  startTreeSiblingFolderCreation: D,
59952
59955
  startGridChildFolderCreation: ee,
59953
59956
  startTreeChildFolderCreation: O,
59954
- cancelFolderCreation: te,
59957
+ cancelFolderCreation: k,
59955
59958
  saveFolderCreation: s(async (e) => {
59956
59959
  let n = e.trim();
59957
59960
  if (!n) return;
59958
- te();
59961
+ k();
59959
59962
  let r = `${w?.path ?? "/"}/${n}`, i = `${r}/${OP}`, a = {
59960
59963
  fileContent: new File([], OP, { type: "text/plain" }),
59961
59964
  name: OP
@@ -59964,9 +59967,9 @@ var DF = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59964
59967
  }, [
59965
59968
  w,
59966
59969
  t,
59967
- te
59970
+ k
59968
59971
  ]),
59969
- validateFolderName: ne
59972
+ validateFolderName: te
59970
59973
  };
59971
59974
  }, MF = ({ additionalButtons: e, expandedPathsLength: t, collapseAll: n }) => {
59972
59975
  let r = t === 0;
@@ -60080,7 +60083,7 @@ function LF({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange:
60080
60083
  isControlled: r
60081
60084
  };
60082
60085
  }
60083
- var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem: i, path: a, defaultPath: o, filesLoading: c, selectedPaths: u, defaultSelectedPaths: d, onSelectedPathsChange: f, showHiddenFiles: g, onShowHiddenFilesChange: _, treeOptions: v, showNavigationPanel: y = !0, navigationPanelOptions: b, deleteConfirmationOptions: x, gridOptions: S, toolbarOptions: C, bulkActionsToolbarOptions: w, destinationFolderPopupOptions: T, conflictResolutionPopupOptions: E, onPathChange: ee, onTableFileClick: D, handleSelectionClick: O, onGridApiChange: te, onCopyFiles: ne, onMoveToFiles: k, onDeleteFiles: A, onDownloadFiles: re, onRenameValidate: ie, renameValidationMessages: j, forbiddenSymbolsRegExp: ae = Te, forbiddenSymbolsTooltip: oe, onUploadFiles: se, onValidateUpload: ce, uploadEnabled: le, uploadValidationMessages: ue, maxFileSize: de, onUploadArchive: fe, prepareUploadFileName: pe, onCreateFolder: me, onCreateFolderValidate: M, folderCreationValidationMessages: he, fileMetadataPopupOptions: N, onGetInfo: ge, onUnshareFiles: _e, onRemoveFilesAccess: ve, actionsRef: ye, sharedByMePaths: be, onSearchFiles: xe, searchResults: Se, searchInProgress: Ce, clearSearchResults: we, allowedFileTypes: Ee, maxSelectableFileSize: De, getDisabledTooltip: Oe, fileTooLargeTooltip: ke, unsupportedFileTypeTooltip: Ae, emptyStateIcon: je, emptyStateTitle: Me, emptyStateDescription: Ne, sharedWithMeIds: Pe, onFolderPopupPathChange: Fe, onManagePermissions: Ie, onPreview: Le, onOpenInNewTab: Re, previewExtensions: ze, isRenameFileAvailable: Be, isDuplicateFolderAvailable: Ve, customUploadFileAction: He, customCreateNewItemAction: Ue, customDuplicateAction: We, customDeleteItemsAction: Ge, customDownloadItemsAction: Ke, customBreakpointRef: qe, gridClassName: Je, nonClickableTableColumns: Ye, hideSearchPathItemName: Xe, showHiddenFileSwitcherInDestinationPopup: Ze, showCreateFolderButtonInDestinationPopup: Qe, autoSelectUploadedItems: $e = !1, maxNewFolderDepth: et, onNewFolderDepthExceeded: tt, initialUploadFilesOpen: nt }) => {
60086
+ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem: i, path: a, defaultPath: o, filesLoading: c, selectedPaths: u, defaultSelectedPaths: d, onSelectedPathsChange: f, showHiddenFiles: g, onShowHiddenFilesChange: _, treeOptions: v, showNavigationPanel: y = !0, navigationPanelOptions: b, deleteConfirmationOptions: x, gridOptions: S, toolbarOptions: C, bulkActionsToolbarOptions: w, destinationFolderPopupOptions: T, conflictResolutionPopupOptions: E, onPathChange: ee, onTableFileClick: D, handleSelectionClick: O, onGridApiChange: k, onCopyFiles: te, onMoveToFiles: ne, onDeleteFiles: A, onDownloadFiles: re, onRenameValidate: ie, renameValidationMessages: j, forbiddenSymbolsRegExp: ae = Te, forbiddenSymbolsTooltip: oe, onUploadFiles: se, onValidateUpload: ce, uploadEnabled: le, uploadValidationMessages: ue, maxFileSize: de, onUploadArchive: fe, prepareUploadFileName: pe, onCreateFolder: me, onCreateFolderValidate: M, folderCreationValidationMessages: he, fileMetadataPopupOptions: ge, onGetInfo: N, onUnshareFiles: _e, onRemoveFilesAccess: ve, actionsRef: ye, sharedByMePaths: be, onSearchFiles: xe, searchResults: Se, searchInProgress: Ce, clearSearchResults: we, allowedFileTypes: Ee, maxSelectableFileSize: De, getDisabledTooltip: Oe, fileTooLargeTooltip: ke, unsupportedFileTypeTooltip: Ae, emptyStateIcon: je, emptyStateTitle: Me, emptyStateDescription: Ne, sharedWithMeIds: Pe, onFolderPopupPathChange: Fe, onManagePermissions: Ie, onPreview: Le, onOpenInNewTab: Re, previewExtensions: ze, isRenameFileAvailable: Be, isDuplicateFolderAvailable: Ve, customUploadFileAction: He, customCreateNewItemAction: Ue, customDuplicateAction: We, customDeleteItemsAction: Ge, customDownloadItemsAction: Ke, customBreakpointRef: qe, gridClassName: Je, nonClickableTableColumns: Ye, hideSearchPathItemName: Xe, showHiddenFileSwitcherInDestinationPopup: Ze, showCreateFolderButtonInDestinationPopup: Qe, autoSelectUploadedItems: $e = !1, maxNewFolderDepth: et, onNewFolderDepthExceeded: tt, initialUploadFilesOpen: nt }) => {
60084
60087
  let { selectedPaths: F, clearSelection: rt, setSelectedPaths: it } = LF({
60085
60088
  selectedPaths: u,
60086
60089
  defaultSelectedPaths: d,
@@ -60152,7 +60155,7 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60152
60155
  items: r,
60153
60156
  onRenameValidate: ie,
60154
60157
  validationMessages: j,
60155
- onMoveToFiles: k
60158
+ onMoveToFiles: ne
60156
60159
  }), { isSearchMode: Nt, searchValue: Pt, effectiveSearchValue: Ft, setSearchValue: It, handleSearchChange: Lt, handleSearchClear: Rt, searchResultsRows: zt } = IF({
60157
60160
  onSearchFiles: xe,
60158
60161
  clearSearchResults: we,
@@ -60167,8 +60170,8 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60167
60170
  tt?.();
60168
60171
  }, [tt]), { handleCopyTo: Ut, handleMoveTo: Wt, handleDuplicate: Gt, handleOpenDestinationFolderPopup: Kt, handleCloseDestinationFolderPopup: qt, openDestinationFolderPopup: Jt, handleSetCopiedFiles: Yt, handleSetMovedFiles: Xt, destinationFolderMode: Zt, destinationFolderTitle: Qt, conflictingFiles: $t, conflictResolutionOpen: en, closeConflictResolution: tn, handleConflictReplace: nn, handleConflictDuplicate: rn, handleConflictCancel: an, handleConflictDecideForEach: on, sourceFolder: sn } = pF({
60169
60172
  getDestinationFiles: (e) => UP(r, e)?.items ?? [],
60170
- onCopyFiles: ne,
60171
- onMoveToFiles: k,
60173
+ onCopyFiles: te,
60174
+ onMoveToFiles: ne,
60172
60175
  onCopySuccess: rt,
60173
60176
  onMoveSuccess: rt,
60174
60177
  onDuplicateSuccess: rt,
@@ -60434,9 +60437,9 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60434
60437
  et,
60435
60438
  Vt,
60436
60439
  Ht
60437
- ]), { isMetadataPopupOpen: fr, selectedFileForMetadata: pr, openMetadataPopup: mr, closeMetadataPopup: hr } = NF({ onGetInfo: ge }), gr = s(() => {
60438
- hr(), N?.clearMetadata?.();
60439
- }, [hr, N]), _r = p(() => {
60440
+ ]), { isMetadataPopupOpen: fr, selectedFileForMetadata: pr, openMetadataPopup: mr, closeMetadataPopup: hr } = NF({ onGetInfo: N }), gr = s(() => {
60441
+ hr(), ge?.clearMetadata?.();
60442
+ }, [hr, ge]), _r = p(() => {
60440
60443
  if (ae) return $P(ae);
60441
60444
  }, [ae]), vr = {
60442
60445
  managerLabel: e,
@@ -60519,7 +60522,7 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60519
60522
  handleTableRowClick: rr,
60520
60523
  onTableFileClick: D,
60521
60524
  handleSelectionClick: O,
60522
- onGridApiChange: te,
60525
+ onGridApiChange: k,
60523
60526
  isDragging: mn,
60524
60527
  uploadError: gn,
60525
60528
  handleDragEnter: _n,
@@ -60559,12 +60562,12 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60559
60562
  handleUploadConflictDuplicate: kn,
60560
60563
  handleUploadConflictCancel: An,
60561
60564
  handleUploadConflictDecideForEach: jn,
60562
- fileMetadataPopupOptions: N,
60565
+ fileMetadataPopupOptions: ge,
60563
60566
  isMetadataPopupOpen: fr,
60564
60567
  selectedFileForMetadata: pr,
60565
60568
  openMetadataPopup: mr,
60566
60569
  closeMetadataPopup: gr,
60567
- onGetInfo: ge,
60570
+ onGetInfo: N,
60568
60571
  onUnshareFiles: _e,
60569
60572
  onRemoveFilesAccess: ve,
60570
60573
  actionsRef: ye,
@@ -60668,8 +60671,8 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60668
60671
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
60669
60672
  }, []), e;
60670
60673
  }, HF = ({ onClose: e, onConfirm: t, onFolderPopupPathChange: n, setDestinationFolderPath: r, open: i, copyLabel: a = "Copy", moveLabel: o = "Move", addFolderLabel: c = "Add folder", mode: l = fP.Copy, hiddenFilesSwitcherLabel: u = "Show hidden files", showHiddenFileSwitcher: d = !0, showCreateFolderButton: f = !0, onUploadFiles: _, onValidateUpload: y, maxFileSize: b, header: x, sourceFolder: S, disabledPathTooltip: C = "Unavailable for the original path. Please select another folder", path: w, collapsedFileTree: T = !1, alertProps: E, processDestinationFolderPath: ee, ...D }) => {
60671
- let [O, te] = h(!1), [ne, k] = h(!1), A = m(null), re = VF(), ie = s((e) => {
60672
- te(e);
60674
+ let [O, k] = h(!1), [te, ne] = h(!1), A = m(null), re = VF(), ie = s((e) => {
60675
+ k(e);
60673
60676
  }, []), j = p(() => {
60674
60677
  let e = [];
60675
60678
  return f && e.push({
@@ -60680,7 +60683,7 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60680
60683
  className: "text-secondary"
60681
60684
  }),
60682
60685
  onClick: () => {
60683
- A.current?.createFolder(), k(!1);
60686
+ A.current?.createFolder(), ne(!1);
60684
60687
  }
60685
60688
  }), d && e.push({
60686
60689
  key: "show-hidden-files",
@@ -60690,7 +60693,7 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60690
60693
  className: "text-secondary"
60691
60694
  }),
60692
60695
  onClick: () => {
60693
- te((e) => !e), k(!1);
60696
+ k((e) => !e), ne(!1);
60694
60697
  }
60695
60698
  }), e;
60696
60699
  }, [
@@ -60721,8 +60724,8 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60721
60724
  className: "flex items-center gap-4 min-w-0",
60722
60725
  children: re ? /* @__PURE__ */ P(fe, {
60723
60726
  items: j,
60724
- open: ne,
60725
- onOpenChange: k,
60727
+ open: te,
60728
+ onOpenChange: ne,
60726
60729
  children: /* @__PURE__ */ P(ye, {
60727
60730
  size: M.Large,
60728
60731
  "aria-label": "More options",
@@ -60807,10 +60810,10 @@ var RF = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60807
60810
  })
60808
60811
  });
60809
60812
  };
60810
- function UF({ actions: e, direction: t = N.Normal, moreButtonWidth: n = _, actionsGap: r = 8, containerPadding: i = 8, dependencies: a = [] }) {
60813
+ function UF({ actions: e, direction: t = ge.Normal, moreButtonWidth: n = _, actionsGap: r = 8, containerPadding: i = 8, dependencies: a = [] }) {
60811
60814
  let o = m(null), c = m(null), u = m(null), d = m(null), p = m([]), [g, v] = h(0), y = s((e, a) => {
60812
60815
  let o = (u.current?.offsetWidth ?? 0) + (d.current?.offsetWidth ?? 0), s = a.getBoundingClientRect().width - o - n - r * 2 - i * 2, c = 0, l = 0;
60813
- if (t === N.Reverse) for (let t = e.length - 1; t >= 0 && (c += e[t] + r, !(c > s)); t--) l++;
60816
+ if (t === ge.Reverse) for (let t = e.length - 1; t >= 0 && (c += e[t] + r, !(c > s)); t--) l++;
60814
60817
  else for (let t of e) {
60815
60818
  if (c += t + r, c > s) break;
60816
60819
  l++;
@@ -60847,9 +60850,9 @@ function UF({ actions: e, direction: t = N.Normal, moreButtonWidth: n = _, actio
60847
60850
  y,
60848
60851
  ...a
60849
60852
  ]);
60850
- let b = t === N.Reverse ? e.slice(0, e.length - g) : e.slice(g);
60853
+ let b = t === ge.Reverse ? e.slice(0, e.length - g) : e.slice(g);
60851
60854
  return {
60852
- visibleActions: t === N.Reverse ? e.slice(e.length - g) : e.slice(0, g),
60855
+ visibleActions: t === ge.Reverse ? e.slice(e.length - g) : e.slice(0, g),
60853
60856
  hiddenActions: b,
60854
60857
  refs: {
60855
60858
  containerRef: o,
@@ -60862,7 +60865,7 @@ function UF({ actions: e, direction: t = N.Normal, moreButtonWidth: n = _, actio
60862
60865
  var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions: n, selectedCount: r }) => {
60863
60866
  let i = VF(), { refs: { containerRef: a, leftSectionRef: o, measureRef: s }, visibleActions: c, hiddenActions: l } = UF({
60864
60867
  actions: n,
60865
- direction: N.Reverse,
60868
+ direction: ge.Reverse,
60866
60869
  dependencies: [i],
60867
60870
  actionsGap: WF,
60868
60871
  containerPadding: GF
@@ -61033,7 +61036,7 @@ var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions:
61033
61036
  }
61034
61037
  }) : /* @__PURE__ */ P("div", {
61035
61038
  className: XF,
61036
- children: /* @__PURE__ */ P(ne, {
61039
+ children: /* @__PURE__ */ P(te, {
61037
61040
  pathItems: C,
61038
61041
  ariaLabel: e,
61039
61042
  labelClassName: t,
@@ -61378,7 +61381,7 @@ var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions:
61378
61381
  onExpandedPathsChange: x
61379
61382
  }), O = (e) => {
61380
61383
  h?.(e), D(e.path);
61381
- }, te = (e, n, s) => {
61384
+ }, k = (e, n, s) => {
61382
61385
  let c = e;
61383
61386
  return s && s.path === f && (c = [{
61384
61387
  folderId: lI,
@@ -61392,7 +61395,7 @@ var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions:
61392
61395
  let { path: s, nodeType: c, name: l, items: h } = e, x = c === FP.FOLDER;
61393
61396
  if (!u && qP(e)) return null;
61394
61397
  if (!x && !t) return;
61395
- let E = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === FP.FOLDER || t), D = ee.has(s), ne = o === s, k = r.has(s), A = d === s || s === `${f}/${lI}`, re = i.has(s), ie = a.has(s), j = m && p && s === m && x, ae = b && ((t) => b(t, e)), oe = ne ? "bg-control-accent-alpha rounded" : "", se = j ? [] : _?.(e) ?? [], ce = w ? eF({
61398
+ let E = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === FP.FOLDER || t), D = ee.has(s), te = o === s, ne = r.has(s), A = d === s || s === `${f}/${lI}`, re = i.has(s), ie = a.has(s), j = m && p && s === m && x, ae = b && ((t) => b(t, e)), oe = te ? "bg-control-accent-alpha rounded" : "", se = j ? [] : _?.(e) ?? [], ce = w ? eF({
61396
61399
  name: e.name,
61397
61400
  isFolder: x
61398
61401
  }, w, T) : void 0;
@@ -61409,7 +61412,7 @@ var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions:
61409
61412
  children: /* @__PURE__ */ F("div", {
61410
61413
  style: { paddingLeft: `${n * cI}px` },
61411
61414
  className: et("py-1 pr-3 gap-2 dial-small-paragraph-text flex justify-between hover:bg-control-accent-alpha-hover rounded group/item w-full relative", oe),
61412
- "aria-selected": ne,
61415
+ "aria-selected": te,
61413
61416
  children: [
61414
61417
  !A && /* @__PURE__ */ P("div", {
61415
61418
  className: "absolute size-full left-0 top-0 z-0",
@@ -61425,9 +61428,9 @@ var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions:
61425
61428
  elementId: `${s}-tree-item`,
61426
61429
  name: j ? p : l,
61427
61430
  type: x ? le.Folder : le.File,
61428
- loading: k,
61431
+ loading: ne,
61429
61432
  shared: ie,
61430
- sharedIndicatorClassName: et("group-hover/item:bg-control-accent-alpha-hover", ne && "bg-control-accent-alpha"),
61433
+ sharedIndicatorClassName: et("group-hover/item:bg-control-accent-alpha-hover", te && "bg-control-accent-alpha"),
61431
61434
  iconSize: EP,
61432
61435
  forbiddenSymbolsRegExp: w,
61433
61436
  forbiddenSymbolsTooltip: ce,
@@ -61458,7 +61461,7 @@ var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions:
61458
61461
  })
61459
61462
  ]
61460
61463
  })
61461
- }), D && (h || e?.path === f) && te(h || [], n + 1, e)]
61464
+ }), D && (h || e?.path === f) && k(h || [], n + 1, e)]
61462
61465
  })
61463
61466
  }, `${s}-children`);
61464
61467
  });
@@ -61466,7 +61469,7 @@ var WF = 12, GF = 8, KF = ({ getSelectionLabel: e, onClearSelection: t, actions:
61466
61469
  return /* @__PURE__ */ P("div", {
61467
61470
  className: "flex-1 size-full overflow-y-auto",
61468
61471
  "aria-label": "folders-tree",
61469
- children: e.length > 0 ? te(e, 0) : /* @__PURE__ */ P(ue, {
61472
+ children: e.length > 0 ? k(e, 0) : /* @__PURE__ */ P(ue, {
61470
61473
  title: s,
61471
61474
  description: c,
61472
61475
  icon: l
@@ -61904,8 +61907,8 @@ var xI = () => {
61904
61907
  }),
61905
61908
  onClick: () => o(p, p.parentPath ?? "")
61906
61909
  });
61907
- let te = p.nodeType === FP.FOLDER || p.nodeType === FP.ITEM && v;
61908
- return e[$.Rename] && te && O && C.push({
61910
+ let k = p.nodeType === FP.FOLDER || p.nodeType === FP.ITEM && v;
61911
+ return e[$.Rename] && k && O && C.push({
61909
61912
  key: $.Rename,
61910
61913
  label: e[$.Rename],
61911
61914
  icon: /* @__PURE__ */ P(It, {
@@ -61982,7 +61985,7 @@ var xI = () => {
61982
61985
  ...e,
61983
61986
  children: /* @__PURE__ */ P(TI, {})
61984
61987
  }), TI = () => {
61985
- let { managerLabel: e, className: t, items: n, rootItem: r, filesLoading: i, treeOptions: a, showNavigationPanel: o, navigationPanelOptions: c, gridOptions: l, toolbarOptions: u, bulkActionsToolbarOptions: f, deleteConfirmationOptions: _, destinationFolderPopupOptions: v, conflictResolutionPopupOptions: y, compactViewWidthBreakpoint: b = NP, customBreakpointRef: x, sharedByMePaths: S, allowedFileTypes: C, maxSelectableFileSize: w, areHiddenFilesVisible: T, toggleHiddenFilesVisibility: E, isTreeCollapsed: ee, toggleTreeCollapse: D, currentPath: O, gridRows: te, selectedPaths: ne, selectedFiles: re, clearSelection: ie, setSelectedPaths: j, effectiveSearchValue: ae, handleBreadcrumbItemClick: oe, handleSearchChange: ce, handleTreeItemClick: le, handleTableRowClick: de, handleSelectionClick: fe, onGridApiChange: me, handleOpenDestinationFolderPopup: M, handleCloseDestinationFolderPopup: he, openDestinationFolderPopup: N, destinationFolderMode: ge, handleSetCopiedFiles: _e, handleSetMovedFiles: ve, handleDuplicate: ye, handleCopyTo: be, handleMoveTo: xe, handleGridAddSibling: Se, handleGridAddChild: Ce, handleTreeAddSibling: we, handleTreeAddChild: Te, handleDownloadFiles: Ee, openDeleteConfirmation: De, closeDeleteConfirmation: Oe, confirmDelete: ke, deleteConfirmationOpen: Ae, itemsToDelete: je, renamedPath: Me, renamedItem: Ne, onRename: Pe, onRenameSave: Fe, onRenameCancel: Ie, onRenameValidate: Le, createdFolderPath: Re, forbiddenSymbolsRegExp: ze, forbiddenSymbolsTooltip: Be, getDisplayName: Ve, isDragging: He, isDraggingOverWindow: Ue, handleDragEnter: We, handleDragLeave: Ge, handleDragOver: Ke, handleDrop: qe, onUploadFiles: Je, onValidateUpload: Ye, maxFileSize: Xe, newActions: Ze, isNewButtonVisible: Qe, isNewButtonDisabled: $e, newFolderTempId: tt, cancelFolderCreation: nt, saveFolderCreation: rt, validateFolderName: it, startFolderCreation: at, conflictingFiles: ot, conflictResolutionOpen: st, handleConflictReplace: ct, handleConflictDuplicate: lt, handleConflictCancel: ut, handleConflictDecideForEach: dt, uploadConflictingFiles: ft, uploadConflictResolutionOpen: pt, handleUploadConflictReplace: mt, handleUploadConflictDuplicate: gt, handleUploadConflictCancel: _t, handleUploadConflictDecideForEach: vt, openMetadataPopup: xt, fileMetadataPopupOptions: St, isMetadataPopupOpen: Ct, selectedFileForMetadata: Tt, closeMetadataPopup: Et, onUnshareFiles: Dt, onRemoveFilesAccess: Ot, actionsRef: kt, searchInProgress: At, isSearchMode: jt, emptyStateIcon: Mt, emptyStateTitle: Nt = "You don't have any files", emptyStateDescription: Pt = "Upload or drag and drop files", sharedWithMeIds: Ft, onFolderPopupPathChange: Lt, onManagePermissions: Rt, onPreview: zt, onOpenInNewTab: Bt, previewExtensions: Vt, isRenameFileAvailable: Ht, isDuplicateFolderAvailable: Wt, getDisabledTooltip: Gt, fileTooLargeTooltip: qt, unsupportedFileTypeTooltip: Jt, gridClassName: Yt, nonClickableTableColumns: Xt, hideSearchPathItemName: Zt, showHiddenFileSwitcherInDestinationPopup: Qt, showCreateFolderButtonInDestinationPopup: $t, newFolderDefaultName: en } = xI(), { width: tn = wP, header: nn = TP, containerClassName: rn = xP, additionalButtons: an, ...on } = a ?? {}, [sn, cn] = h(tn), { renameTriggerView: ln, onGridRename: un, onTreeRename: dn } = BP({ onRename: Pe }), { createFolderTriggerView: fn, onGridCreateSiblingFolder: pn, onTreeCreateSiblingFolder: mn, onGridCreateChildFolder: hn, onTreeCreateChildFolder: gn } = CI({
61988
+ let { managerLabel: e, className: t, items: n, rootItem: r, filesLoading: i, treeOptions: a, showNavigationPanel: o, navigationPanelOptions: c, gridOptions: l, toolbarOptions: u, bulkActionsToolbarOptions: f, deleteConfirmationOptions: _, destinationFolderPopupOptions: v, conflictResolutionPopupOptions: y, compactViewWidthBreakpoint: b = NP, customBreakpointRef: x, sharedByMePaths: S, allowedFileTypes: C, maxSelectableFileSize: w, areHiddenFilesVisible: T, toggleHiddenFilesVisibility: E, isTreeCollapsed: ee, toggleTreeCollapse: D, currentPath: O, gridRows: k, selectedPaths: te, selectedFiles: re, clearSelection: ie, setSelectedPaths: j, effectiveSearchValue: ae, handleBreadcrumbItemClick: oe, handleSearchChange: ce, handleTreeItemClick: le, handleTableRowClick: de, handleSelectionClick: fe, onGridApiChange: me, handleOpenDestinationFolderPopup: M, handleCloseDestinationFolderPopup: he, openDestinationFolderPopup: ge, destinationFolderMode: N, handleSetCopiedFiles: _e, handleSetMovedFiles: ve, handleDuplicate: ye, handleCopyTo: be, handleMoveTo: xe, handleGridAddSibling: Se, handleGridAddChild: Ce, handleTreeAddSibling: we, handleTreeAddChild: Te, handleDownloadFiles: Ee, openDeleteConfirmation: De, closeDeleteConfirmation: Oe, confirmDelete: ke, deleteConfirmationOpen: Ae, itemsToDelete: je, renamedPath: Me, renamedItem: Ne, onRename: Pe, onRenameSave: Fe, onRenameCancel: Ie, onRenameValidate: Le, createdFolderPath: Re, forbiddenSymbolsRegExp: ze, forbiddenSymbolsTooltip: Be, getDisplayName: Ve, isDragging: He, isDraggingOverWindow: Ue, handleDragEnter: We, handleDragLeave: Ge, handleDragOver: Ke, handleDrop: qe, onUploadFiles: Je, onValidateUpload: Ye, maxFileSize: Xe, newActions: Ze, isNewButtonVisible: Qe, isNewButtonDisabled: $e, newFolderTempId: tt, cancelFolderCreation: nt, saveFolderCreation: rt, validateFolderName: it, startFolderCreation: at, conflictingFiles: ot, conflictResolutionOpen: st, handleConflictReplace: ct, handleConflictDuplicate: lt, handleConflictCancel: ut, handleConflictDecideForEach: dt, uploadConflictingFiles: ft, uploadConflictResolutionOpen: pt, handleUploadConflictReplace: mt, handleUploadConflictDuplicate: gt, handleUploadConflictCancel: _t, handleUploadConflictDecideForEach: vt, openMetadataPopup: xt, fileMetadataPopupOptions: St, isMetadataPopupOpen: Ct, selectedFileForMetadata: Tt, closeMetadataPopup: Et, onUnshareFiles: Dt, onRemoveFilesAccess: Ot, actionsRef: kt, searchInProgress: At, isSearchMode: jt, emptyStateIcon: Mt, emptyStateTitle: Nt = "You don't have any files", emptyStateDescription: Pt = "Upload or drag and drop files", sharedWithMeIds: Ft, onFolderPopupPathChange: Lt, onManagePermissions: Rt, onPreview: zt, onOpenInNewTab: Bt, previewExtensions: Vt, isRenameFileAvailable: Ht, isDuplicateFolderAvailable: Wt, getDisabledTooltip: Gt, fileTooLargeTooltip: qt, unsupportedFileTypeTooltip: Jt, gridClassName: Yt, nonClickableTableColumns: Xt, hideSearchPathItemName: Zt, showHiddenFileSwitcherInDestinationPopup: Qt, showCreateFolderButtonInDestinationPopup: $t, newFolderDefaultName: en } = xI(), { width: tn = wP, header: nn = TP, containerClassName: rn = xP, additionalButtons: an, ...on } = a ?? {}, [sn, cn] = h(tn), { renameTriggerView: ln, onGridRename: un, onTreeRename: dn } = BP({ onRename: Pe }), { createFolderTriggerView: fn, onGridCreateSiblingFolder: pn, onTreeCreateSiblingFolder: mn, onGridCreateChildFolder: hn, onTreeCreateChildFolder: gn } = CI({
61986
61989
  onGridAddSibling: Se,
61987
61990
  onGridAddChild: Ce,
61988
61991
  onTreeAddSibling: we,
@@ -61997,12 +62000,12 @@ var xI = () => {
61997
62000
  gP.Actions
61998
62001
  ] : Tn, [jt, Tn]), jn = s((e, t, n) => rF(e, t, n, Jt, qt), [qt, Jt]), Mn = s((e, t, n) => !!Gt?.(e) || !!jn(e, t, n), [jn, Gt]), Nn = p(() => {
61999
62002
  let e = /* @__PURE__ */ new Set();
62000
- for (let t of te) Mn(t, C, w) && e.add(t.path);
62003
+ for (let t of k) Mn(t, C, w) && e.add(t.path);
62001
62004
  return e;
62002
62005
  }, [
62003
62006
  C,
62004
62007
  w,
62005
- te,
62008
+ k,
62006
62009
  Mn
62007
62010
  ]), Pn = s((e) => {
62008
62011
  let t = [], n = [], r = !e.parentPath, i = ze?.test(e.name);
@@ -62154,7 +62157,7 @@ var xI = () => {
62154
62157
  forbiddenSymbolsRegExp: ze
62155
62158
  }), Rn = s((e) => {
62156
62159
  u?.onTabChange?.(e), nt();
62157
- }, [u, nt]), zn = s(() => u && ne.size === 0 ? /* @__PURE__ */ F("div", {
62160
+ }, [u, nt]), zn = s(() => u && te.size === 0 ? /* @__PURE__ */ F("div", {
62158
62161
  className: vP,
62159
62162
  role: "toolbar",
62160
62163
  "aria-label": "File Manager Toolbar",
@@ -62167,20 +62170,20 @@ var xI = () => {
62167
62170
  isNewButtonDisabled: $e,
62168
62171
  newButtonDropdownItems: Ze
62169
62172
  })]
62170
- }) : ne.size > 0 && f ? /* @__PURE__ */ P("div", {
62173
+ }) : te.size > 0 && f ? /* @__PURE__ */ P("div", {
62171
62174
  className: vP,
62172
62175
  role: "toolbar",
62173
62176
  "aria-label": "File Manager Toolbar",
62174
62177
  children: /* @__PURE__ */ P(KF, {
62175
62178
  ...f,
62176
- selectedCount: ne.size,
62179
+ selectedCount: te.size,
62177
62180
  onClearSelection: ie,
62178
62181
  actions: Ln
62179
62182
  })
62180
62183
  }) : null, [
62181
62184
  Rn,
62182
62185
  f,
62183
- ne,
62186
+ te,
62184
62187
  ie,
62185
62188
  Ln,
62186
62189
  T,
@@ -62204,7 +62207,7 @@ var xI = () => {
62204
62207
  minWidth: AP,
62205
62208
  maxWidth: jP,
62206
62209
  enabled: !ee,
62207
- children: /* @__PURE__ */ P(k, {
62210
+ children: /* @__PURE__ */ P(ne, {
62208
62211
  width: sn,
62209
62212
  title: nn,
62210
62213
  containerClassName: rn,
@@ -62355,7 +62358,7 @@ var xI = () => {
62355
62358
  createdFolderPath: Re,
62356
62359
  newFolderTempId: tt,
62357
62360
  sharedByMePaths: S,
62358
- selectedPaths: ne,
62361
+ selectedPaths: te,
62359
62362
  disabledRowIds: Nn,
62360
62363
  forbiddenSymbolsRegExp: ze,
62361
62364
  forbiddenSymbolsTooltip: Be,
@@ -62380,16 +62383,16 @@ var xI = () => {
62380
62383
  Re,
62381
62384
  tt,
62382
62385
  S,
62383
- ne,
62386
+ te,
62384
62387
  Nn,
62385
62388
  ze,
62386
62389
  Be,
62387
62390
  Zt,
62388
62391
  en,
62389
62392
  i
62390
- ]), Xn = p(() => te.length === 0 && !jt && !i ? Kn() : /* @__PURE__ */ P(se, {
62393
+ ]), Xn = p(() => k.length === 0 && !jt && !i ? Kn() : /* @__PURE__ */ P(se, {
62391
62394
  columnDefs: Wn,
62392
- rowData: te,
62395
+ rowData: k,
62393
62396
  getRowId: qn,
62394
62397
  loading: i || At,
62395
62398
  getContextMenuItems: Hn,
@@ -62406,7 +62409,7 @@ var xI = () => {
62406
62409
  disabledRowIds: Nn,
62407
62410
  allowDisabledContextMenu: En
62408
62411
  }), [
62409
- te,
62412
+ k,
62410
62413
  jt,
62411
62414
  i,
62412
62415
  Kn,
@@ -62433,9 +62436,9 @@ var xI = () => {
62433
62436
  className: "size-full",
62434
62437
  children: /* @__PURE__ */ F("div", {
62435
62438
  className: et(_P, {
62436
- "gap-3 pt-4": f && ne.size > 0,
62439
+ "gap-3 pt-4": f && te.size > 0,
62437
62440
  "gap-4 p-3 pt-4": kn,
62438
- "gap-2 pt-2": kn && f && ne.size > 0
62441
+ "gap-2 pt-2": kn && f && te.size > 0
62439
62442
  }, t),
62440
62443
  children: [
62441
62444
  zn(),
@@ -62464,7 +62467,7 @@ var xI = () => {
62464
62467
  onDrop: qe,
62465
62468
  children: [Xn, /* @__PURE__ */ P(zF, {
62466
62469
  disabledGridRowIds: Nn,
62467
- gridRows: te,
62470
+ gridRows: k,
62468
62471
  getDisabledTooltip: Gt,
62469
62472
  getRowDisabledTooltip: jn,
62470
62473
  allowedFileTypes: C,
@@ -62482,13 +62485,13 @@ var xI = () => {
62482
62485
  }),
62483
62486
  /* @__PURE__ */ P(HF, {
62484
62487
  ...v,
62485
- open: N,
62488
+ open: ge,
62486
62489
  onClose: he,
62487
62490
  onConfirm: () => {
62488
62491
  let e = v?.destinationFolderPath ?? "/";
62489
- ge === fP.Copy ? be(e) : xe(e), he();
62492
+ N === fP.Copy ? be(e) : xe(e), he();
62490
62493
  },
62491
- mode: ge,
62494
+ mode: N,
62492
62495
  items: n,
62493
62496
  rootItem: r,
62494
62497
  gridOptions: {
@@ -62551,7 +62554,7 @@ var xI = () => {
62551
62554
  }, [w, T] = h(() => new Set(t?.map((e, n) => jN(t.slice(0, n + 1))) ?? [])), E = y ?? w, ee = (e) => {
62552
62555
  let t = new Set(e);
62553
62556
  t.delete(""), b ? b(t) : T(t);
62554
- }, [D, te] = h(null), [ne, k] = h(u), A = m(null), re = i.trim(), ie = D != null, j = p(() => DN(e, i), [e, i]), ae = re.length > 0 && j.length === 0, oe = !ie && re.length > 0, se = p(() => kN(oe ? j : e), [
62557
+ }, [D, k] = h(null), [te, ne] = h(u), A = m(null), re = i.trim(), ie = D != null, j = p(() => DN(e, i), [e, i]), ae = re.length > 0 && j.length === 0, oe = !ie && re.length > 0, se = p(() => kN(oe ? j : e), [
62555
62558
  oe,
62556
62559
  j,
62557
62560
  e
@@ -62574,10 +62577,10 @@ var xI = () => {
62574
62577
  invalid: g,
62575
62578
  duplicate: _
62576
62579
  }, me = (t) => IN(ae && FN(re, [], pe) == null ? re : u, LN(e, t)), M = (e) => {
62577
- te(e), k(me(e)), A.current = null;
62580
+ k(e), ne(me(e)), A.current = null;
62578
62581
  let t = jN(e);
62579
62582
  t && ee(new Set(E).add(t));
62580
- }, he = () => M(t ?? []), N = (e) => {
62583
+ }, he = () => M(t ?? []), ge = (e) => {
62581
62584
  let t = MN(e.path), n = [{
62582
62585
  key: "add-child",
62583
62586
  label: l,
@@ -62596,15 +62599,15 @@ var xI = () => {
62596
62599
  }),
62597
62600
  onClick: () => M(t.slice(0, -1))
62598
62601
  }), n;
62599
- }, ge = (t) => {
62602
+ }, N = (t) => {
62600
62603
  if (!D) return null;
62601
62604
  let n = FN(t, LN(e, D), pe);
62602
62605
  return A.current = n, n;
62603
62606
  }, _e = (e) => {
62604
62607
  if (!D) return;
62605
62608
  let t = e.trim(), i = A.current;
62606
- (ge(e) ?? i) || (r(D, t), n([...D, t])), te(null);
62607
- }, ye = () => te(null);
62609
+ (N(e) ?? i) || (r(D, t), n([...D, t])), k(null);
62610
+ }, ye = () => k(null);
62608
62611
  return /* @__PURE__ */ F("div", {
62609
62612
  style: C,
62610
62613
  className: I(a && "pointer-events-none opacity-60", S.className),
@@ -62621,12 +62624,12 @@ var xI = () => {
62621
62624
  onItemClick: (e) => {
62622
62625
  n(t != null && jN(t) === e.path ? void 0 : MN(e.path));
62623
62626
  },
62624
- getContextMenuItems: N,
62627
+ getContextMenuItems: ge,
62625
62628
  createdFolderPath: fe,
62626
- newFolderDefaultName: ne,
62629
+ newFolderDefaultName: te,
62627
62630
  onCreateFolderSave: _e,
62628
62631
  onCreateFolderCancel: ye,
62629
- onRenameValidate: (e) => ge(e),
62632
+ onRenameValidate: (e) => N(e),
62630
62633
  emptyStateTitle: oe ? d.replace("{query}", re) : void 0
62631
62634
  })
62632
62635
  }),
@@ -62656,20 +62659,20 @@ var xI = () => {
62656
62659
  summaryTitle: "_summaryTitle_tf20a_1",
62657
62660
  sectionHeading: "_sectionHeading_tf20a_5"
62658
62661
  }, kI = ({ 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: m, 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 = {} }) => {
62659
- let { colors: D, folderTree: O, accessRules: te } = ee, ne = {
62662
+ let { colors: D, folderTree: O, accessRules: k } = ee, te = {
62660
62663
  ...wi({
62661
62664
  "--pp-summary-title-text": D?.summaryTitleText,
62662
62665
  "--pp-heading-text": D?.headingText
62663
62666
  }),
62664
62667
  ...ee.cssVars
62665
- }, k = {
62668
+ }, ne = {
62666
62669
  border: D?.summaryBorder,
62667
62670
  background: D?.summaryBackground,
62668
62671
  versionTagBorder: D?.summaryVersionTagBorder,
62669
62672
  versionTagBackground: D?.summaryVersionTagBackground,
62670
62673
  versionTagText: D?.summaryVersionTagText
62671
- }, { folderLabel: A = "Publish to folder", replaceWarning: re = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ie = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: j = "Publishing failed. Please try again.", folderEmptyStateLabel: ae, addSiblingFolderLabel: oe, addChildFolderLabel: se, cancelCreatingFolderLabel: ce, createFolderEmptyNameError: le, createFolderInvalidNameError: ue, createFolderDuplicateNameError: de, rootFolderLabel: fe = "Organization", summaryVersionLabel: pe, accessRulesLabels: me, searchPlaceholder: M, clearSearchAriaLabel: he } = w, [N, ge] = h(""), _e = (e) => {
62672
- ge(e ?? "");
62674
+ }, { folderLabel: A = "Publish to folder", replaceWarning: re = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ie = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: j = "Publishing failed. Please try again.", folderEmptyStateLabel: ae, addSiblingFolderLabel: oe, addChildFolderLabel: se, cancelCreatingFolderLabel: ce, createFolderEmptyNameError: le, createFolderInvalidNameError: ue, createFolderDuplicateNameError: de, rootFolderLabel: fe = "Organization", summaryVersionLabel: pe, accessRulesLabels: me, searchPlaceholder: M, clearSearchAriaLabel: he } = w, [ge, N] = h(""), _e = (e) => {
62675
+ N(e ?? "");
62673
62676
  }, ve = o != null, ye = p(() => CN({
62674
62677
  hasSelectedFolder: ve,
62675
62678
  hasExistingPublicationInFolder: f,
@@ -62690,9 +62693,9 @@ var xI = () => {
62690
62693
  });
62691
62694
  return /* @__PURE__ */ F("div", {
62692
62695
  className: "flex flex-col gap-5",
62693
- style: ne,
62696
+ style: te,
62694
62697
  children: [e?.type == null ? /* @__PURE__ */ P(qg, {
62695
- colors: k,
62698
+ colors: ne,
62696
62699
  children: xe
62697
62700
  }) : /* @__PURE__ */ P(qg, {
62698
62701
  item: {
@@ -62702,7 +62705,7 @@ var xI = () => {
62702
62705
  iconUrl: e.iconUrl
62703
62706
  },
62704
62707
  versionLabel: pe,
62705
- colors: k
62708
+ colors: ne
62706
62709
  }), /* @__PURE__ */ F("div", { children: [
62707
62710
  /* @__PURE__ */ P("div", {
62708
62711
  className: I("mb-2", E, OI.sectionHeading),
@@ -62712,7 +62715,7 @@ var xI = () => {
62712
62715
  role: "search",
62713
62716
  className: "mb-3",
62714
62717
  children: /* @__PURE__ */ P(Ie, {
62715
- value: N,
62718
+ value: ge,
62716
62719
  onChange: _e,
62717
62720
  placeholder: M,
62718
62721
  clearLabel: he,
@@ -62727,7 +62730,7 @@ var xI = () => {
62727
62730
  expandedPaths: l,
62728
62731
  onExpandedPathsChange: u,
62729
62732
  loadingPaths: d,
62730
- searchQuery: N,
62733
+ searchQuery: ge,
62731
62734
  disabled: g,
62732
62735
  noResultsLabel: ae,
62733
62736
  addSiblingFolderLabel: oe,
@@ -62764,7 +62767,7 @@ var xI = () => {
62764
62767
  isLoading: S,
62765
62768
  hasLoadError: C,
62766
62769
  labels: me,
62767
- styles: te
62770
+ styles: k
62768
62771
  })
62769
62772
  })
62770
62773
  ] })]
@@ -63007,7 +63010,7 @@ var xI = () => {
63007
63010
  size: O.MD,
63008
63011
  "aria-hidden": !0
63009
63012
  });
63010
- })(), u = c ? te : Ee;
63013
+ })(), u = c ? k : Ee;
63011
63014
  return /* @__PURE__ */ F("div", {
63012
63015
  className: I("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", KI.footer),
63013
63016
  children: [
@@ -63153,13 +63156,13 @@ var xI = () => {
63153
63156
  rowDescription: "_rowDescription_1q3s8_9",
63154
63157
  errorText: "_errorText_1q3s8_13"
63155
63158
  }, uL = ({ item: e, level: t, label: n, description: r, icon: i, status: a, isActive: o, authenticationType: c, apiKeyAddedWhen: l, onLogin: u, onRequestLogout: d, onRequestDeleteApiKey: f, texts: p, labelClassName: m, descriptionClassName: g, errorClassName: _, keyCardTitleClassName: y, keyCardDescriptionClassName: b, deleteActionClassName: x }) => {
63156
- let [S, C] = h(""), [w, T] = h(!1), [E, ee] = h(!1), D = a === gn.SignedIn, ne = s(() => {
63159
+ let [S, C] = h(""), [w, T] = h(!1), [E, ee] = h(!1), D = a === gn.SignedIn, te = s(() => {
63157
63160
  u?.(e, { level: t });
63158
63161
  }, [
63159
63162
  e,
63160
63163
  t,
63161
63164
  u
63162
- ]), k = s((e) => {
63165
+ ]), ne = s((e) => {
63163
63166
  C(e ?? ""), T(!1);
63164
63167
  }, []), A = s(async () => {
63165
63168
  if (S.trim().length === 0) {
@@ -63205,7 +63208,7 @@ var xI = () => {
63205
63208
  className: I(g, lL.rowDescription),
63206
63209
  children: r
63207
63210
  })]
63208
- }), c === hn.OAuth && (D ? /* @__PURE__ */ P(te, {
63211
+ }), c === hn.OAuth && (D ? /* @__PURE__ */ P(k, {
63209
63212
  appearance: v.Ghost,
63210
63213
  label: ae,
63211
63214
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
@@ -63213,7 +63216,7 @@ var xI = () => {
63213
63216
  }) : /* @__PURE__ */ P(Ee, {
63214
63217
  label: j,
63215
63218
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
63216
- onClick: ne
63219
+ onClick: te
63217
63220
  }))]
63218
63221
  }),
63219
63222
  c === hn.ApiKey && !D && /* @__PURE__ */ F("div", {
@@ -63225,7 +63228,7 @@ var xI = () => {
63225
63228
  type: "password",
63226
63229
  autoComplete: "current-password",
63227
63230
  value: S,
63228
- onChange: k,
63231
+ onChange: ne,
63229
63232
  labelProps: { label: p?.apiKeyFieldLabel ?? "API key" },
63230
63233
  invalid: w,
63231
63234
  disabled: E,
@@ -63384,7 +63387,7 @@ var xI = () => {
63384
63387
  t,
63385
63388
  a,
63386
63389
  o
63387
- ]), C = c?.personalApiKeyPanelTitle ?? "Personal API key", w = c?.addApiKeyActionLabel ?? "Add", T = c?.deleteActionLabel ?? "Delete", E = c?.addingApiKeyStatusLabel ?? "Adding", ee = c?.deletingStatusLabel ?? "Deleting", D = c?.apiKeyRequiredErrorMessage ?? "API key is required.", O = c?.personalApiKeyAddedMessage ?? "Personal key has been added", te = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
63390
+ ]), C = c?.personalApiKeyPanelTitle ?? "Personal API key", w = c?.addApiKeyActionLabel ?? "Add", T = c?.deleteActionLabel ?? "Delete", E = c?.addingApiKeyStatusLabel ?? "Adding", ee = c?.deletingStatusLabel ?? "Deleting", D = c?.apiKeyRequiredErrorMessage ?? "API key is required.", O = c?.personalApiKeyAddedMessage ?? "Personal key has been added", k = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
63388
63391
  return /* @__PURE__ */ F("div", {
63389
63392
  className: "flex w-[418px] flex-col",
63390
63393
  children: [
@@ -63433,7 +63436,7 @@ var xI = () => {
63433
63436
  "aria-hidden": !0
63434
63437
  }),
63435
63438
  title: O,
63436
- description: te,
63439
+ description: k,
63437
63440
  action: /* @__PURE__ */ P(we, {
63438
63441
  label: _ ? void 0 : T,
63439
63442
  "aria-label": _ ? ee : void 0,
@@ -63480,7 +63483,7 @@ var xI = () => {
63480
63483
  renderOverlay: () => n(e, () => o(!1)),
63481
63484
  children: l
63482
63485
  }) : l;
63483
- }, xL = (e) => e === hn.ApiKey ? "Manage API keys" : "Manage credentials", SL = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, onEdit: o, onDownload: c, isDownloadVisible: u, isDownloadPrimary: d, onDelete: f, onUnshare: g, isUnshareVisible: _, onRevokeShare: v, onFetchRecipientsCount: y, isRevokeShareVisible: b, onLogin: x, onLogout: S, onOpenCredentialsManagement: C, onRequestLogout: w, texts: T, detailsStyles: E, isPublishVisible: ee, onOpenPublish: D, isUnpublishVisible: te, hasPublishedFolders: ne = !1, onRequestPublishHistory: k, onOpenUnpublish: A }) => {
63486
+ }, xL = (e) => e === hn.ApiKey ? "Manage API keys" : "Manage credentials", SL = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, onEdit: o, onDownload: c, isDownloadVisible: u, isDownloadPrimary: d, onDelete: f, onUnshare: g, isUnshareVisible: _, onRevokeShare: v, onFetchRecipientsCount: y, isRevokeShareVisible: b, onLogin: x, onLogout: S, onOpenCredentialsManagement: C, onRequestLogout: w, texts: T, detailsStyles: E, isPublishVisible: ee, onOpenPublish: D, isUnpublishVisible: k, hasPublishedFolders: te = !1, onRequestPublishHistory: ne, onOpenUnpublish: A }) => {
63484
63487
  let { nameClassName: re = "dial-body-semi-text", folderLabelClassName: ie = "dial-tiny-text", folderLeafClassName: j = "dial-tiny-semi-text" } = E?.typography ?? {}, ae = s(() => {
63485
63488
  t?.(e);
63486
63489
  }, [e, t]), oe = s(() => {
@@ -63513,21 +63516,21 @@ var xI = () => {
63513
63516
  f?.(e);
63514
63517
  }, [e, f]), he = s(() => {
63515
63518
  v?.(e);
63516
- }, [e, v]), [N, ge] = h(mL.Idle), [ve, ye] = h(void 0), be = m(null);
63519
+ }, [e, v]), [ge, N] = h(mL.Idle), [ve, ye] = h(void 0), be = m(null);
63517
63520
  l(() => {
63518
- be.current = null, ge(mL.Idle), ye(void 0);
63521
+ be.current = null, N(mL.Idle), ye(void 0);
63519
63522
  }, [e.id]);
63520
63523
  let xe = s(() => {
63521
63524
  if (!y || be.current === e.id || !v || e.isMyApp !== !0 || b?.(e) === !1) return;
63522
63525
  let t = e.id;
63523
- be.current = t, ge(mL.Loading), (async () => {
63526
+ be.current = t, N(mL.Loading), (async () => {
63524
63527
  try {
63525
63528
  let n = await y(e);
63526
63529
  if (be.current !== t) return;
63527
- ye(n), ge(n == null ? mL.Unknown : mL.Resolved);
63530
+ ye(n), N(n == null ? mL.Unknown : mL.Resolved);
63528
63531
  } catch {
63529
63532
  if (be.current !== t) return;
63530
- ye(void 0), ge(mL.Unknown);
63533
+ ye(void 0), N(mL.Unknown);
63531
63534
  }
63532
63535
  })();
63533
63536
  }, [
@@ -63536,10 +63539,10 @@ var xI = () => {
63536
63539
  v,
63537
63540
  b
63538
63541
  ]), Se = s((e) => {
63539
- e && (xe(), k?.());
63540
- }, [xe, k]), Ce = s(() => {
63541
- xe(), k?.();
63542
- }, [xe, k]), we = T?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Kn.Model || e.type === Kn.Agent || e.type === Kn.Prompt)), Te = !!A && ne && (te?.(e) ?? !0), Oe = !Te && (ee?.(e) ?? (e.type === Kn.Model || e.type === Kn.Toolset || e.type === Kn.Agent)), ke = !!o && !!e.isEditable, Ae = e.credentials?.authenticationType ?? hn.None, je = e.credentials != null && Ae !== hn.None ? Mn(e.credentials) : void 0, Me = je != null && (!!x || !!S), Pe = e.type === Kn.Toolset && Me, Fe = !!c && (u?.(e) ?? !0), Ie = Fe && !Pe && (d?.(e) ?? e.type === Kn.Skill), Le = Fe && !Ie, Re = e.isMyApp, ze = !!g && e.isMyApp !== !0 && e.sharedWithMe === !0 && (_?.(e) ?? !0), Be = !!v && e.isMyApp === !0 && (!y || N === mL.Unknown || N === mL.Resolved && (ve ?? 0) > 0) && (b?.(e) ?? !0), Ve = p(() => {
63542
+ e && (xe(), ne?.());
63543
+ }, [xe, ne]), Ce = s(() => {
63544
+ xe(), ne?.();
63545
+ }, [xe, ne]), we = T?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Kn.Model || e.type === Kn.Agent || e.type === Kn.Prompt)), Te = !!A && te && (k?.(e) ?? !0), Oe = !Te && (ee?.(e) ?? (e.type === Kn.Model || e.type === Kn.Toolset || e.type === Kn.Agent)), ke = !!o && !!e.isEditable, Ae = e.credentials?.authenticationType ?? hn.None, je = e.credentials != null && Ae !== hn.None ? Mn(e.credentials) : void 0, Me = je != null && (!!x || !!S), Pe = e.type === Kn.Toolset && Me, Fe = !!c && (u?.(e) ?? !0), Ie = Fe && !Pe && (d?.(e) ?? e.type === Kn.Skill), Le = Fe && !Ie, Re = e.isMyApp, ze = !!g && e.isMyApp !== !0 && e.sharedWithMe === !0 && (_?.(e) ?? !0), Be = !!v && e.isMyApp === !0 && (!y || ge === mL.Unknown || ge === mL.Resolved && (ve ?? 0) > 0) && (b?.(e) ?? !0), Ve = p(() => {
63543
63546
  let e = [];
63544
63547
  if (ke && e.push({
63545
63548
  key: "edit",
@@ -64155,165 +64158,165 @@ var xI = () => {
64155
64158
  "Everyone you shared it with loses access",
64156
64159
  "Existing share links stop working",
64157
64160
  "You keep full access — nothing is deleted"
64158
- ], tR = (e) => e === hn.ApiKey ? "Toolset API keys" : "Toolset credentials", nR = (e) => e === _n.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", rR = new Set([fn.Delete, fn.Unshare]), iR = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: a, onUseInChat: o, isPrimaryActionVisible: c, onShare: u, isPublishVisible: d, getPublishHistory: f, publishFolderItems: g = YL, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, onPublish: x, onPublishSuccess: S, onPublishError: C, onCreatePublishFolder: T, publishLabels: E, ruleSourceOptions: ee = XL, onFetchExistingRules: D, shareOverlay: O, isShareVisible: te, onEdit: ne, onDownload: k, isDownloadVisible: A, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: ae, onDelete: oe, onUnshare: se, isUnshareVisible: ce, onRevokeShare: le, onFetchRecipientsCount: ue, isRevokeShareVisible: de, onUnpublish: fe, isUnpublishVisible: pe, onLogin: me, onLogout: he, texts: N, styles: ge }) => {
64159
- let { subViewTitleClassName: _e = "dial-body-semi-text", overviewSectionClassName: ve = "dial-caption-text", overviewLabelClassName: be = "dial-small-semi-text", overviewValueClassName: xe = "dial-small-text", overviewValueTrueClassName: Se = "dial-small-text", confirmMessageClassName: Ce = "dial-small-text" } = ge?.typography ?? {}, we = ge?.colors, Te = wi({
64160
- "--cat-details-backdrop": we?.backdrop,
64161
- "--cat-details-bg": we?.background,
64162
- "--cat-details-border": we?.border,
64163
- "--cat-details-divider": we?.divider,
64164
- "--cat-details-scrollbar": we?.scrollbar,
64165
- "--cat-details-skeleton": we?.skeleton,
64166
- "--cat-details-name-text": we?.nameText,
64167
- "--cat-details-publish-title-text": we?.publishTitleText,
64168
- "--cat-details-content-text": we?.contentText,
64169
- "--cat-details-variable-text": we?.variableText,
64170
- "--cat-details-file-count-text": we?.contentFileCountText,
64171
- "--cat-api-heading-text": we?.apiHeadingText,
64172
- "--cat-tools-divider": we?.toolsDivider,
64173
- "--cat-tools-description-text": we?.toolsDescriptionText,
64174
- "--cat-grid-border": we?.gridBorder,
64175
- "--cat-grid-header-text": we?.gridHeaderText,
64176
- "--cat-grid-header-bg": we?.gridHeaderBackground,
64177
- "--cat-grid-cell-text": we?.gridCellText,
64178
- "--cat-grid-cell-divider": we?.gridCellDivider,
64179
- "--cat-grid-row-even-bg": we?.gridRowEvenBackground,
64180
- "--cat-info-card-bg": we?.infoCardBackground,
64181
- "--cat-info-card-danger-bg": we?.infoCardDangerBackground,
64182
- "--cat-confirm-message-text": we?.confirmMessageText,
64183
- "--cat-confirm-consequence-text": we?.confirmConsequenceText,
64184
- "--cat-confirm-footer-border": we?.confirmFooterBorder,
64185
- "--cat-cred-surface-bg": we?.credentialsSurfaceBackground,
64186
- "--cat-cred-active-icon": we?.credentialsActiveIcon,
64187
- "--cat-cred-banner-icon-bg": we?.credentialsBannerIconBackground,
64188
- "--cat-cred-description-text": we?.credentialsDescriptionText,
64189
- "--cat-cred-row-description-text": we?.credentialsRowDescriptionText,
64190
- "--cat-cred-error-text": we?.credentialsErrorText,
64191
- "--cat-cred-card-bg": we?.credentialsCardBackground,
64192
- "--cat-cred-card-icon": we?.credentialsCardIcon,
64193
- "--cat-cred-card-title-text": we?.credentialsCardTitleText,
64194
- "--cat-cred-card-description-text": we?.credentialsCardDescriptionText
64195
- }), [Ee, De] = h(n), [Oe, ke] = h(""), [Ae, je] = h(!1), [Me, Ne] = h([]), [Pe, Ie] = h(!1), [Le, Re] = h(!1), [Be, Ve] = h(!1), He = m(null), Ue = e.details?.promptContent, Ge = Ue?.selectedFileId, [Ke, qe] = h(null), [Je, Ye] = h(!1), [Xe, Ze] = h(/* @__PURE__ */ new Set()), [Qe, $e] = h(!1), et = m(null), tt = m(0), rt = s((e) => {
64196
- let t = et.current, n = e?.preview?.type === wn.Image ? e.preview.url : null;
64197
- t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), et.current = n, qe(e);
64161
+ ], tR = (e) => e === hn.ApiKey ? "Toolset API keys" : "Toolset credentials", nR = (e) => e === _n.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", rR = new Set([fn.Delete, fn.Unshare]), iR = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: a, isFavoriteVisible: o, onUseInChat: c, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, getPublishHistory: g, publishFolderItems: _ = YL, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onPublishError: T, onCreatePublishFolder: E, publishLabels: ee, ruleSourceOptions: D = XL, onFetchExistingRules: O, shareOverlay: k, isShareVisible: te, onEdit: ne, onDownload: A, isDownloadVisible: re, isDownloadPrimary: ie, onLoadContentFile: j, onLoadContentFilePreview: ae, renderContentFilePreview: oe, onDelete: se, onUnshare: ce, isUnshareVisible: le, onRevokeShare: ue, onFetchRecipientsCount: de, isRevokeShareVisible: fe, onUnpublish: pe, isUnpublishVisible: me, onLogin: he, onLogout: ge, texts: N, styles: _e }) => {
64162
+ let { subViewTitleClassName: ve = "dial-body-semi-text", overviewSectionClassName: be = "dial-caption-text", overviewLabelClassName: xe = "dial-small-semi-text", overviewValueClassName: Se = "dial-small-text", overviewValueTrueClassName: Ce = "dial-small-text", confirmMessageClassName: we = "dial-small-text" } = _e?.typography ?? {}, Te = _e?.colors, Ee = wi({
64163
+ "--cat-details-backdrop": Te?.backdrop,
64164
+ "--cat-details-bg": Te?.background,
64165
+ "--cat-details-border": Te?.border,
64166
+ "--cat-details-divider": Te?.divider,
64167
+ "--cat-details-scrollbar": Te?.scrollbar,
64168
+ "--cat-details-skeleton": Te?.skeleton,
64169
+ "--cat-details-name-text": Te?.nameText,
64170
+ "--cat-details-publish-title-text": Te?.publishTitleText,
64171
+ "--cat-details-content-text": Te?.contentText,
64172
+ "--cat-details-variable-text": Te?.variableText,
64173
+ "--cat-details-file-count-text": Te?.contentFileCountText,
64174
+ "--cat-api-heading-text": Te?.apiHeadingText,
64175
+ "--cat-tools-divider": Te?.toolsDivider,
64176
+ "--cat-tools-description-text": Te?.toolsDescriptionText,
64177
+ "--cat-grid-border": Te?.gridBorder,
64178
+ "--cat-grid-header-text": Te?.gridHeaderText,
64179
+ "--cat-grid-header-bg": Te?.gridHeaderBackground,
64180
+ "--cat-grid-cell-text": Te?.gridCellText,
64181
+ "--cat-grid-cell-divider": Te?.gridCellDivider,
64182
+ "--cat-grid-row-even-bg": Te?.gridRowEvenBackground,
64183
+ "--cat-info-card-bg": Te?.infoCardBackground,
64184
+ "--cat-info-card-danger-bg": Te?.infoCardDangerBackground,
64185
+ "--cat-confirm-message-text": Te?.confirmMessageText,
64186
+ "--cat-confirm-consequence-text": Te?.confirmConsequenceText,
64187
+ "--cat-confirm-footer-border": Te?.confirmFooterBorder,
64188
+ "--cat-cred-surface-bg": Te?.credentialsSurfaceBackground,
64189
+ "--cat-cred-active-icon": Te?.credentialsActiveIcon,
64190
+ "--cat-cred-banner-icon-bg": Te?.credentialsBannerIconBackground,
64191
+ "--cat-cred-description-text": Te?.credentialsDescriptionText,
64192
+ "--cat-cred-row-description-text": Te?.credentialsRowDescriptionText,
64193
+ "--cat-cred-error-text": Te?.credentialsErrorText,
64194
+ "--cat-cred-card-bg": Te?.credentialsCardBackground,
64195
+ "--cat-cred-card-icon": Te?.credentialsCardIcon,
64196
+ "--cat-cred-card-title-text": Te?.credentialsCardTitleText,
64197
+ "--cat-cred-card-description-text": Te?.credentialsCardDescriptionText
64198
+ }), [De, Oe] = h(n), [ke, Ae] = h(""), [je, Me] = h(!1), [Ne, Pe] = h([]), [Ie, Le] = h(!1), [Re, Be] = h(!1), [Ve, He] = h(!1), Ue = m(null), Ge = e.details?.promptContent, Ke = Ge?.selectedFileId, [qe, Je] = h(null), [Ye, Xe] = h(!1), [Ze, Qe] = h(/* @__PURE__ */ new Set()), [$e, et] = h(!1), tt = m(null), rt = m(0), it = s((e) => {
64199
+ let t = tt.current, n = e?.preview?.type === wn.Image ? e.preview.url : null;
64200
+ t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), tt.current = n, Je(e);
64198
64201
  }, []);
64199
64202
  l(() => {
64200
- tt.current += 1, rt(null), Ye(!1), Ze(II(Ue?.files ?? [])), $e(!1);
64201
- }, [e.id, Ge]), l(() => () => {
64202
- let e = et.current;
64203
+ rt.current += 1, it(null), Xe(!1), Qe(II(Ge?.files ?? [])), et(!1);
64204
+ }, [e.id, Ke]), l(() => () => {
64205
+ let e = tt.current;
64203
64206
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
64204
64207
  }, []);
64205
- let it = s((e) => {
64206
- Ze((t) => {
64208
+ let at = s((e) => {
64209
+ Qe((t) => {
64207
64210
  let n = new Set(t);
64208
64211
  return n.has(e) ? n.delete(e) : n.add(e), n;
64209
64212
  });
64210
- }, []), at = s(async (e) => {
64211
- if (e === Ge) {
64212
- tt.current += 1, rt(null), Ye(!1);
64213
+ }, []), ot = s(async (e) => {
64214
+ if (e === Ke) {
64215
+ rt.current += 1, it(null), Xe(!1);
64213
64216
  return;
64214
64217
  }
64215
- if (ae == null && ie == null && j == null) return;
64216
- if (ae != null) {
64217
- tt.current += 1, rt({
64218
+ if (oe == null && j == null && ae == null) return;
64219
+ if (oe != null) {
64220
+ rt.current += 1, it({
64218
64221
  id: e,
64219
64222
  preview: null
64220
- }), Ye(!1);
64223
+ }), Xe(!1);
64221
64224
  return;
64222
64225
  }
64223
- let t = ++tt.current;
64224
- rt({
64226
+ let t = ++rt.current;
64227
+ it({
64225
64228
  id: e,
64226
64229
  preview: null
64227
- }), Ye(!0);
64230
+ }), Xe(!0);
64228
64231
  try {
64229
- let n = j == null ? await ie?.(e).then((e) => e == null ? void 0 : {
64232
+ let n = ae == null ? await j?.(e).then((e) => e == null ? void 0 : {
64230
64233
  type: wn.Markdown,
64231
64234
  text: e
64232
- }) : await j(e);
64233
- if (tt.current !== t) {
64235
+ }) : await ae(e);
64236
+ if (rt.current !== t) {
64234
64237
  n?.type === wn.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
64235
64238
  return;
64236
64239
  }
64237
- rt({
64240
+ it({
64238
64241
  id: e,
64239
64242
  preview: n ?? null
64240
64243
  });
64241
64244
  } catch {
64242
- if (tt.current !== t) return;
64243
- rt({
64245
+ if (rt.current !== t) return;
64246
+ it({
64244
64247
  id: e,
64245
64248
  preview: null
64246
64249
  });
64247
64250
  } finally {
64248
- tt.current === t && Ye(!1);
64251
+ rt.current === t && Xe(!1);
64249
64252
  }
64250
64253
  }, [
64251
- Ge,
64252
- ie,
64254
+ Ke,
64253
64255
  j,
64254
64256
  ae,
64255
- rt
64256
- ]), ot = Ke?.id ?? Ge, st = () => Ke == null ? null : Ke.preview == null ? {
64257
+ oe,
64258
+ it
64259
+ ]), st = qe?.id ?? Ke, ct = () => qe == null ? null : qe.preview == null ? {
64257
64260
  type: wn.Text,
64258
64261
  text: N?.contentFileErrorLabel ?? "Failed to load this file."
64259
- } : Ke.preview, ct = Ke != null && ae != null ? ae(Ke.id, LI(Ue?.files ?? [], Ke.id) ?? "") : void 0, lt = s(() => {
64260
- if (!f || He.current === e.id) return;
64262
+ } : qe.preview, lt = qe != null && oe != null ? oe(qe.id, LI(Ge?.files ?? [], qe.id) ?? "") : void 0, ut = s(() => {
64263
+ if (!g || Ue.current === e.id) return;
64261
64264
  let t = e.id;
64262
- He.current = t, Ie(!0), Re(!1), (async () => {
64265
+ Ue.current = t, Le(!0), Be(!1), (async () => {
64263
64266
  try {
64264
- let n = await f(e);
64265
- if (He.current !== t) return;
64266
- Ne(n), Ve(!0), Ie(!1);
64267
+ let n = await g(e);
64268
+ if (Ue.current !== t) return;
64269
+ Pe(n), He(!0), Le(!1);
64267
64270
  } catch {
64268
- if (He.current !== t) return;
64269
- Re(!0), Ie(!1), He.current = null;
64271
+ if (Ue.current !== t) return;
64272
+ Be(!0), Le(!1), Ue.current = null;
64270
64273
  }
64271
64274
  })();
64272
- }, [f, e]);
64275
+ }, [g, e]);
64273
64276
  l(() => {
64274
- Ae && lt();
64275
- }, [Ae, lt]);
64276
- let ut = s((e, t) => {
64277
- He.current = null, Ve(!1), lt(), S?.(e, t);
64278
- }, [lt, S]), ft = EN({
64277
+ je && ut();
64278
+ }, [je, ut]);
64279
+ let ft = s((e, t) => {
64280
+ Ue.current = null, He(!1), ut(), C?.(e, t);
64281
+ }, [ut, C]), pt = EN({
64279
64282
  item: e,
64280
- history: Me,
64281
- folderItems: g,
64282
- hasWriteAccess: b,
64283
- onCreateFolder: T,
64284
- onPublish: x ?? JL,
64285
- onPublishSuccess: ut,
64286
- onPublishError: C,
64287
- onFetchExistingRules: D
64288
- }), pt = p(() => CN({
64289
- hasSelectedFolder: ft.selectedFolderPath != null,
64290
- hasExistingPublicationInFolder: ft.hasExistingPublicationInFolder,
64291
- hasWriteAccess: ft.hasWriteAccess,
64292
- isSubmitting: ft.isSubmitting,
64293
- hasSubmitError: ft.hasSubmitError
64283
+ history: Ne,
64284
+ folderItems: _,
64285
+ hasWriteAccess: x,
64286
+ onCreateFolder: E,
64287
+ onPublish: S ?? JL,
64288
+ onPublishSuccess: ft,
64289
+ onPublishError: T,
64290
+ onFetchExistingRules: O
64291
+ }), mt = p(() => CN({
64292
+ hasSelectedFolder: pt.selectedFolderPath != null,
64293
+ hasExistingPublicationInFolder: pt.hasExistingPublicationInFolder,
64294
+ hasWriteAccess: pt.hasWriteAccess,
64295
+ isSubmitting: pt.isSubmitting,
64296
+ hasSubmitError: pt.hasSubmitError
64294
64297
  }), [
64295
- ft.selectedFolderPath,
64296
- ft.hasExistingPublicationInFolder,
64297
- ft.hasWriteAccess,
64298
- ft.isSubmitting,
64299
- ft.hasSubmitError
64300
- ]), [mt, ht] = h(!1), [gt, _t] = h(null), [vt, yt] = h(!1), [bt, xt] = h(null), [St, Ct] = h(null), [wt, Tt] = h(null);
64298
+ pt.selectedFolderPath,
64299
+ pt.hasExistingPublicationInFolder,
64300
+ pt.hasWriteAccess,
64301
+ pt.isSubmitting,
64302
+ pt.hasSubmitError
64303
+ ]), [ht, gt] = h(!1), [_t, vt] = h(null), [yt, bt] = h(!1), [xt, St] = h(null), [Ct, wt] = h(null), [Tt, Et] = h(null);
64301
64304
  l(() => {
64302
- De(n);
64305
+ Oe(n);
64303
64306
  }, [e.id, n]), l(() => {
64304
- ke(""), je(!1), ft.reset(), Ne([]), Re(!1), Ie(!1), Ve(!1), He.current = null, Tt(null), ht(!1), _t(null), yt(!1), xt(null), Ct(null);
64307
+ Ae(""), Me(!1), pt.reset(), Pe([]), Be(!1), Le(!1), He(!1), Ue.current = null, Et(null), gt(!1), vt(null), bt(!1), St(null), wt(null);
64305
64308
  }, [e.id]);
64306
- let Et = s(() => ht(!0), []), Dt = s(() => ht(!1), []), Ot = s(() => {
64307
- _t(fn.Delete);
64308
- }, []), kt = s((t) => {
64309
- Ct(t ?? (e.credentials == null ? null : Pn(e.credentials))), _t(fn.Logout);
64310
- }, [e.credentials]), At = s(() => {
64311
- _t(fn.Unshare);
64312
- }, []), jt = s(() => {
64313
- _t(fn.RevokeAccess);
64314
- }, []), Mt = p(() => {
64309
+ let Dt = s(() => gt(!0), []), Ot = s(() => gt(!1), []), kt = s(() => {
64310
+ vt(fn.Delete);
64311
+ }, []), At = s((t) => {
64312
+ wt(t ?? (e.credentials == null ? null : Pn(e.credentials))), vt(fn.Logout);
64313
+ }, [e.credentials]), jt = s(() => {
64314
+ vt(fn.Unshare);
64315
+ }, []), Mt = s(() => {
64316
+ vt(fn.RevokeAccess);
64317
+ }, []), Nt = p(() => {
64315
64318
  let e = /* @__PURE__ */ new Set(), t = [];
64316
- for (let n of Me) {
64319
+ for (let n of Ne) {
64317
64320
  let r = n.folderPath.join("/");
64318
64321
  e.has(r) || (e.add(r), t.push({
64319
64322
  key: r,
@@ -64321,66 +64324,66 @@ var xI = () => {
64321
64324
  }));
64322
64325
  }
64323
64326
  return t;
64324
- }, [Me]), Nt = Be && Mt.length > 0, Pt = s((e) => e || (E?.rootFolderLabel ?? "Organization"), [E]), Ft = s(() => {
64325
- _t(fn.Unpublish);
64326
- }, []), It = s((e) => {
64327
- xt(e), _t(fn.DeleteApiKey);
64328
- }, []), Lt = s(() => {
64329
- vt || (_t(null), xt(null), Ct(null), Tt(null));
64330
- }, [vt]), Rt = s(async () => {
64331
- if (!(vt || gt == null)) {
64332
- yt(!0);
64327
+ }, [Ne]), Pt = Ve && Nt.length > 0, Ft = s((e) => e || (ee?.rootFolderLabel ?? "Organization"), [ee]), It = s(() => {
64328
+ vt(fn.Unpublish);
64329
+ }, []), Lt = s((e) => {
64330
+ St(e), vt(fn.DeleteApiKey);
64331
+ }, []), Rt = s(() => {
64332
+ yt || (vt(null), St(null), wt(null), Et(null));
64333
+ }, [yt]), zt = s(async () => {
64334
+ if (!(yt || _t == null)) {
64335
+ bt(!0);
64333
64336
  try {
64334
- switch (gt) {
64337
+ switch (_t) {
64335
64338
  case fn.Delete:
64336
- await oe?.(e);
64339
+ await se?.(e);
64337
64340
  break;
64338
64341
  case fn.Unshare:
64339
- await se?.(e);
64342
+ await ce?.(e);
64340
64343
  break;
64341
64344
  case fn.RevokeAccess:
64342
- await le?.(e);
64345
+ await ue?.(e);
64343
64346
  break;
64344
64347
  case fn.Logout:
64345
- St != null && await he?.(e, { level: St });
64348
+ Ct != null && await ge?.(e, { level: Ct });
64346
64349
  break;
64347
64350
  case fn.DeleteApiKey:
64348
- bt != null && await he?.(e, { level: bt });
64351
+ xt != null && await ge?.(e, { level: xt });
64349
64352
  break;
64350
64353
  case fn.Unpublish: {
64351
- let t = qL(Mt, wt);
64352
- t != null && await fe?.(e, t.segments);
64354
+ let t = qL(Nt, Tt);
64355
+ t != null && await pe?.(e, t.segments);
64353
64356
  break;
64354
64357
  }
64355
64358
  }
64356
- _t(null), xt(null), Ct(null), Tt(null), rR.has(gt) && i();
64359
+ vt(null), St(null), wt(null), Et(null), rR.has(_t) && i();
64357
64360
  } catch {
64358
- _t(null), xt(null), Ct(null), Tt(null);
64361
+ vt(null), St(null), wt(null), Et(null);
64359
64362
  } finally {
64360
- yt(!1);
64363
+ bt(!1);
64361
64364
  }
64362
64365
  }
64363
64366
  }, [
64364
- vt,
64365
- gt,
64366
- bt,
64367
- St,
64367
+ yt,
64368
+ _t,
64369
+ xt,
64370
+ Ct,
64368
64371
  e,
64369
- oe,
64370
64372
  se,
64371
- le,
64372
- fe,
64373
- wt,
64374
- Mt,
64375
- he,
64373
+ ce,
64374
+ ue,
64375
+ pe,
64376
+ Tt,
64377
+ Nt,
64378
+ ge,
64376
64379
  i
64377
64380
  ]);
64378
64381
  l(() => {
64379
64382
  if (!t) return;
64380
64383
  let e = (e) => {
64381
64384
  if (e.key === "Escape") {
64382
- if (gt != null) {
64383
- Lt();
64385
+ if (_t != null) {
64386
+ Rt();
64384
64387
  return;
64385
64388
  }
64386
64389
  i();
@@ -64390,21 +64393,21 @@ var xI = () => {
64390
64393
  }, [
64391
64394
  t,
64392
64395
  i,
64393
- gt,
64394
- Lt
64396
+ _t,
64397
+ Rt
64395
64398
  ]);
64396
- let zt = s(() => je(!0), []), Bt = s(() => {
64397
- je(!1), ft.reset();
64398
- }, [ft]), Vt = s(async () => {
64399
- await ft.handleSubmit() && Bt();
64400
- }, [ft, Bt]), Ht = s(() => {
64401
- let t = !Ee;
64402
- De(t), a?.(e.id, t);
64399
+ let Bt = s(() => Me(!0), []), Vt = s(() => {
64400
+ Me(!1), pt.reset();
64401
+ }, [pt]), Ht = s(async () => {
64402
+ await pt.handleSubmit() && Vt();
64403
+ }, [pt, Vt]), Ut = s(() => {
64404
+ let t = !De;
64405
+ Oe(t), a?.(e.id, t);
64403
64406
  }, [
64404
- Ee,
64407
+ De,
64405
64408
  e.id,
64406
64409
  a
64407
- ]), Ut = p(() => {
64410
+ ]), Wt = p(() => {
64408
64411
  let t = [], n = GL.has(e.type);
64409
64412
  return n || t.push({
64410
64413
  id: dn.About,
@@ -64428,17 +64431,17 @@ var xI = () => {
64428
64431
  id: dn.Api,
64429
64432
  label: N?.tabConnectLabel ?? "Connect"
64430
64433
  }), t;
64431
- }, [e, N]), Wt = m(null);
64434
+ }, [e, N]), Gt = m(null);
64432
64435
  l(() => {
64433
- let t = Wt.current !== e.id;
64434
- Wt.current = e.id, (t || !Ut.some((e) => e.id === Oe)) && ke(Ut[0]?.id ?? "");
64436
+ let t = Gt.current !== e.id;
64437
+ Gt.current = e.id, (t || !Wt.some((e) => e.id === ke)) && Ae(Wt[0]?.id ?? "");
64435
64438
  }, [
64436
64439
  e.id,
64437
- Ut,
64438
- Oe
64440
+ Wt,
64441
+ ke
64439
64442
  ]);
64440
- let Gt = N?.overviewYesLabel ?? "Yes", Kt = N?.overviewNoLabel ?? "No", qt = N?.ariaLabel ?? "Item details", Jt = N?.closeAriaLabel ?? "Close", Yt = Ee ? N?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : N?.addToFavoritesAriaLabel ?? "Add to favorites", Xt = N?.publishTitle ?? "Publish", Zt = N?.backToDetailsAriaLabel ?? "Back", Qt = N?.cancelLabel ?? "Cancel", $t = p(() => {
64441
- switch (gt) {
64443
+ let Kt = N?.overviewYesLabel ?? "Yes", qt = N?.overviewNoLabel ?? "No", Jt = N?.ariaLabel ?? "Item details", Yt = N?.closeAriaLabel ?? "Close", Xt = De ? N?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : N?.addToFavoritesAriaLabel ?? "Add to favorites", Zt = N?.publishTitle ?? "Publish", Qt = N?.backToDetailsAriaLabel ?? "Back", $t = N?.cancelLabel ?? "Cancel", en = p(() => {
64444
+ switch (_t) {
64442
64445
  case fn.Delete: {
64443
64446
  let t = N?.deleteActionLabel ?? "Delete";
64444
64447
  return {
@@ -64485,7 +64488,7 @@ var xI = () => {
64485
64488
  };
64486
64489
  }
64487
64490
  case fn.Unpublish: {
64488
- let t = N?.unpublishLabel ?? "Unpublish", n = Mt.length === 1, r = n ? Pt(Mt[0].key) : "", i = N?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ F(nt, { children: [
64491
+ let t = N?.unpublishLabel ?? "Unpublish", n = Nt.length === 1, r = n ? Ft(Nt[0].key) : "", i = N?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ F(nt, { children: [
64489
64492
  "Unpublish ",
64490
64493
  /* @__PURE__ */ P("strong", { children: e.name }),
64491
64494
  " from \"",
@@ -64517,7 +64520,7 @@ var xI = () => {
64517
64520
  };
64518
64521
  }
64519
64522
  case fn.DeleteApiKey: {
64520
- let e = N?.deleteActionLabel ?? "Delete", t = bt ?? _n.User;
64523
+ let e = N?.deleteActionLabel ?? "Delete", t = xt ?? _n.User;
64521
64524
  return {
64522
64525
  title: e,
64523
64526
  message: (N?.deleteApiKeyConfirmMessage ?? nR)(t),
@@ -64531,58 +64534,58 @@ var xI = () => {
64531
64534
  default: return null;
64532
64535
  }
64533
64536
  }, [
64534
- gt,
64537
+ _t,
64535
64538
  e.name,
64536
- bt,
64539
+ xt,
64537
64540
  N,
64538
- Mt,
64539
- Pt
64540
- ]), en = $t != null, tn = gt === fn.Unpublish && qL(Mt, wt) == null, nn = en || Ae || mt, rn = e.credentials == null ? "" : (N?.credentialsManagementTitle ?? tR)(e.credentials.authenticationType), an = en ? {
64541
- title: $t.title,
64542
- isBackDisabled: vt,
64543
- onBack: Lt
64544
- } : Ae ? {
64545
- title: Xt,
64546
- isBackDisabled: ft.isSubmitting,
64547
- onBack: Bt
64548
- } : mt ? {
64549
- title: rn,
64541
+ Nt,
64542
+ Ft
64543
+ ]), tn = en != null, nn = _t === fn.Unpublish && qL(Nt, Tt) == null, rn = tn || je || ht, an = e.credentials == null ? "" : (N?.credentialsManagementTitle ?? tR)(e.credentials.authenticationType), on = tn ? {
64544
+ title: en.title,
64545
+ isBackDisabled: yt,
64546
+ onBack: Rt
64547
+ } : je ? {
64548
+ title: Zt,
64549
+ isBackDisabled: pt.isSubmitting,
64550
+ onBack: Vt
64551
+ } : ht ? {
64552
+ title: an,
64550
64553
  isBackDisabled: !1,
64551
- onBack: Dt
64552
- } : null, on = an?.title ?? qt;
64554
+ onBack: Ot
64555
+ } : null, sn = on?.title ?? Jt;
64553
64556
  return /* @__PURE__ */ F(nt, { children: [/* @__PURE__ */ P("div", {
64554
- style: Te,
64557
+ style: Ee,
64555
64558
  className: I("fixed inset-0 z-40 transition-opacity duration-300", pL.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
64556
64559
  onClick: i,
64557
64560
  "aria-hidden": "true"
64558
64561
  }), /* @__PURE__ */ F("div", {
64559
64562
  role: "dialog",
64560
64563
  "aria-modal": "true",
64561
- "aria-label": on,
64562
- style: Te,
64564
+ "aria-label": sn,
64565
+ style: Ee,
64563
64566
  className: I("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", pL.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
64564
64567
  children: [
64565
64568
  /* @__PURE__ */ F("div", {
64566
64569
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
64567
- children: [an != null && /* @__PURE__ */ F(nt, { children: [/* @__PURE__ */ P(ye, {
64570
+ children: [on != null && /* @__PURE__ */ F(nt, { children: [/* @__PURE__ */ P(ye, {
64568
64571
  icon: /* @__PURE__ */ P(dt, { className: "rtl:scale-x-[-1]" }),
64569
- "aria-label": Zt,
64570
- disabled: an.isBackDisabled,
64571
- onClick: an.onBack
64572
+ "aria-label": Qt,
64573
+ disabled: on.isBackDisabled,
64574
+ onClick: on.onBack
64572
64575
  }), /* @__PURE__ */ P("span", {
64573
- className: I("flex-1", _e, pL.publishTitle),
64574
- children: an.title
64575
- })] }), an == null && /* @__PURE__ */ F(nt, { children: [
64576
+ className: I("flex-1", ve, pL.publishTitle),
64577
+ children: on.title
64578
+ })] }), on == null && /* @__PURE__ */ F(nt, { children: [
64576
64579
  /* @__PURE__ */ P("div", { className: "flex-1" }),
64577
- /* @__PURE__ */ P(fN, {
64578
- isStarred: Ee,
64579
- ariaLabel: Yt,
64580
- onClick: Ht
64580
+ o?.(e) !== !1 && /* @__PURE__ */ P(fN, {
64581
+ isStarred: De,
64582
+ ariaLabel: Xt,
64583
+ onClick: Ut
64581
64584
  }),
64582
64585
  /* @__PURE__ */ P(w, {
64583
64586
  onClose: i,
64584
64587
  size: M.Standard,
64585
- ariaLabel: Jt
64588
+ ariaLabel: Yt
64586
64589
  })
64587
64590
  ] })]
64588
64591
  }),
@@ -64590,33 +64593,33 @@ var xI = () => {
64590
64593
  /* @__PURE__ */ F("div", {
64591
64594
  className: I("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", pL.content),
64592
64595
  children: [
64593
- en && /* @__PURE__ */ P(XI, {
64596
+ tn && /* @__PURE__ */ P(XI, {
64594
64597
  item: e,
64595
- message: $t.message,
64596
- consequences: $t.consequences,
64597
- variant: $t.cardVariant ?? $t.variant,
64598
- messageClassName: Ce,
64599
- children: gt === fn.Unpublish && Mt.length > 1 && /* @__PURE__ */ P(Fe, {
64598
+ message: en.message,
64599
+ consequences: en.consequences,
64600
+ variant: en.cardVariant ?? en.variant,
64601
+ messageClassName: we,
64602
+ children: _t === fn.Unpublish && Nt.length > 1 && /* @__PURE__ */ P(Fe, {
64600
64603
  ariaLabel: N?.unpublishFolderGroupAriaLabel ?? "Published folders",
64601
- value: wt ?? void 0,
64602
- onChange: Tt,
64603
- disabled: vt,
64604
- items: Mt.map((e) => ({
64604
+ value: Tt ?? void 0,
64605
+ onChange: Et,
64606
+ disabled: yt,
64607
+ items: Nt.map((e) => ({
64605
64608
  value: e.key,
64606
- label: Pt(e.key)
64609
+ label: Ft(e.key)
64607
64610
  })),
64608
- radioClassName: Ce
64611
+ radioClassName: we
64609
64612
  })
64610
64613
  }),
64611
- !en && !Ae && mt && /* @__PURE__ */ P(fL, {
64614
+ !tn && !je && ht && /* @__PURE__ */ P(fL, {
64612
64615
  item: e,
64613
- onLogin: me,
64614
- onRequestLogout: kt,
64615
- onRequestDeleteApiKey: It,
64616
+ onLogin: he,
64617
+ onRequestLogout: At,
64618
+ onRequestDeleteApiKey: Lt,
64616
64619
  texts: N,
64617
- detailsStyles: ge
64620
+ detailsStyles: _e
64618
64621
  }),
64619
- !en && Ae && /* @__PURE__ */ P("div", {
64622
+ !tn && je && /* @__PURE__ */ P("div", {
64620
64623
  className: "p-[22px]",
64621
64624
  children: /* @__PURE__ */ P(kI, {
64622
64625
  resource: {
@@ -64625,63 +64628,63 @@ var xI = () => {
64625
64628
  type: e.type,
64626
64629
  iconUrl: e.iconUrl
64627
64630
  },
64628
- history: Me,
64629
- isHistoryLoading: Pe,
64630
- hasHistoryError: Le,
64631
- folderItems: ft.folderItems,
64632
- selectedFolderPath: ft.selectedFolderPath,
64633
- onSelectedFolderPathChange: ft.setSelectedFolderPath,
64634
- onCreateFolder: ft.handleCreateFolder,
64635
- expandedPaths: _,
64636
- onExpandedPathsChange: v,
64637
- loadingPaths: y,
64638
- hasExistingPublicationInFolder: ft.hasExistingPublicationInFolder,
64639
- hasWriteAccess: ft.hasWriteAccess,
64640
- isSubmitting: ft.isSubmitting,
64641
- hasSubmitError: ft.hasSubmitError,
64642
- rules: ft.rules,
64643
- onRulesChange: ft.setRules,
64644
- ruleSourceOptions: ee,
64645
- isRulesLoading: ft.isRulesLoading,
64646
- hasRulesLoadError: ft.hasRulesLoadError,
64647
- labels: E,
64631
+ history: Ne,
64632
+ isHistoryLoading: Ie,
64633
+ hasHistoryError: Re,
64634
+ folderItems: pt.folderItems,
64635
+ selectedFolderPath: pt.selectedFolderPath,
64636
+ onSelectedFolderPathChange: pt.setSelectedFolderPath,
64637
+ onCreateFolder: pt.handleCreateFolder,
64638
+ expandedPaths: v,
64639
+ onExpandedPathsChange: y,
64640
+ loadingPaths: b,
64641
+ hasExistingPublicationInFolder: pt.hasExistingPublicationInFolder,
64642
+ hasWriteAccess: pt.hasWriteAccess,
64643
+ isSubmitting: pt.isSubmitting,
64644
+ hasSubmitError: pt.hasSubmitError,
64645
+ rules: pt.rules,
64646
+ onRulesChange: pt.setRules,
64647
+ ruleSourceOptions: D,
64648
+ isRulesLoading: pt.isRulesLoading,
64649
+ hasRulesLoadError: pt.hasRulesLoadError,
64650
+ labels: ee,
64648
64651
  styles: { colors: {
64649
- summaryVersionTagBorder: we?.versionTagBorder,
64650
- summaryVersionTagBackground: we?.versionTagBackground,
64651
- summaryVersionTagText: we?.versionTagText
64652
+ summaryVersionTagBorder: Te?.versionTagBorder,
64653
+ summaryVersionTagBackground: Te?.versionTagBackground,
64654
+ summaryVersionTagText: Te?.versionTagText
64652
64655
  } }
64653
64656
  })
64654
64657
  }),
64655
- !nn && /* @__PURE__ */ F(nt, { children: [
64658
+ !rn && /* @__PURE__ */ F(nt, { children: [
64656
64659
  /* @__PURE__ */ P(SL, {
64657
64660
  item: e,
64658
- onUseInChat: o,
64659
- isPrimaryActionVisible: c,
64660
- onShare: u,
64661
- shareOverlay: O,
64661
+ onUseInChat: c,
64662
+ isPrimaryActionVisible: u,
64663
+ onShare: d,
64664
+ shareOverlay: k,
64662
64665
  isShareVisible: te,
64663
- isPublishVisible: d,
64664
- onOpenPublish: zt,
64665
- isUnpublishVisible: pe,
64666
- hasPublishedFolders: Nt,
64667
- onRequestPublishHistory: lt,
64668
- onOpenUnpublish: fe ? Ft : void 0,
64666
+ isPublishVisible: f,
64667
+ onOpenPublish: Bt,
64668
+ isUnpublishVisible: me,
64669
+ hasPublishedFolders: Pt,
64670
+ onRequestPublishHistory: ut,
64671
+ onOpenUnpublish: pe ? It : void 0,
64669
64672
  onEdit: ne,
64670
- onDownload: k,
64671
- isDownloadVisible: A,
64672
- isDownloadPrimary: re,
64673
- onDelete: oe ? Ot : void 0,
64674
- onUnshare: se ? At : void 0,
64675
- isUnshareVisible: ce,
64676
- onRevokeShare: le ? jt : void 0,
64677
- onFetchRecipientsCount: ue,
64678
- isRevokeShareVisible: de,
64679
- onLogin: me,
64680
- onLogout: he,
64681
- onOpenCredentialsManagement: Et,
64682
- onRequestLogout: kt,
64673
+ onDownload: A,
64674
+ isDownloadVisible: re,
64675
+ isDownloadPrimary: ie,
64676
+ onDelete: se ? kt : void 0,
64677
+ onUnshare: ce ? jt : void 0,
64678
+ isUnshareVisible: le,
64679
+ onRevokeShare: ue ? Mt : void 0,
64680
+ onFetchRecipientsCount: de,
64681
+ isRevokeShareVisible: fe,
64682
+ onLogin: he,
64683
+ onLogout: ge,
64684
+ onOpenCredentialsManagement: Dt,
64685
+ onRequestLogout: At,
64683
64686
  texts: N,
64684
- detailsStyles: ge
64687
+ detailsStyles: _e
64685
64688
  }),
64686
64689
  e.credentials != null && (() => {
64687
64690
  let t = Fn(e.credentials);
@@ -64697,9 +64700,9 @@ var xI = () => {
64697
64700
  /* @__PURE__ */ F("div", {
64698
64701
  className: "flex items-center px-6",
64699
64702
  children: [/* @__PURE__ */ P(We, {
64700
- tabs: Ut,
64701
- activeTabId: Oe,
64702
- onTabChange: ke
64703
+ tabs: Wt,
64704
+ activeTabId: ke,
64705
+ onTabChange: Ae
64703
64706
  }), r && /* @__PURE__ */ P("div", {
64704
64707
  role: "status",
64705
64708
  "aria-label": N?.detailsLoadingAriaLabel ?? "Loading details",
@@ -64716,52 +64719,52 @@ var xI = () => {
64716
64719
  })]
64717
64720
  }),
64718
64721
  /* @__PURE__ */ F("div", {
64719
- className: I("min-h-0 flex-1 overflow-y-auto", Oe !== dn.Overview && "px-6"),
64722
+ className: I("min-h-0 flex-1 overflow-y-auto", ke !== dn.Overview && "px-6"),
64720
64723
  children: [
64721
- Oe === dn.About && /* @__PURE__ */ P(CL, {
64724
+ ke === dn.About && /* @__PURE__ */ P(CL, {
64722
64725
  content: e.description,
64723
64726
  topics: e.topics,
64724
- detailsStyles: ge
64727
+ detailsStyles: _e
64725
64728
  }),
64726
- Oe === dn.Content && /* @__PURE__ */ P(OL, {
64727
- content: Ue?.content ?? "",
64728
- filePreview: st(),
64729
- filePreviewContent: ct,
64730
- description: Ue?.description ?? e.description,
64731
- files: Ue?.files,
64732
- selectedFileId: ot,
64733
- onSelectFile: (e) => void at(e),
64734
- isFileLoading: Je,
64735
- expandedFolderIds: Xe,
64736
- onToggleFolder: it,
64737
- isFileSelectorOpen: Qe,
64738
- onFileSelectorOpenChange: $e,
64729
+ ke === dn.Content && /* @__PURE__ */ P(OL, {
64730
+ content: Ge?.content ?? "",
64731
+ filePreview: ct(),
64732
+ filePreviewContent: lt,
64733
+ description: Ge?.description ?? e.description,
64734
+ files: Ge?.files,
64735
+ selectedFileId: st,
64736
+ onSelectFile: (e) => void ot(e),
64737
+ isFileLoading: Ye,
64738
+ expandedFolderIds: Ze,
64739
+ onToggleFolder: at,
64740
+ isFileSelectorOpen: $e,
64741
+ onFileSelectorOpenChange: et,
64739
64742
  fileSelectorAriaLabel: N?.contentFileSelectorAriaLabel,
64740
64743
  fileCountLabel: N?.contentFileCountLabel,
64741
64744
  fileLoadingLabel: N?.contentFileLoadingLabel,
64742
64745
  fileUnsupportedLabel: N?.contentFileUnsupportedLabel,
64743
- detailsStyles: ge
64746
+ detailsStyles: _e
64744
64747
  }),
64745
- Oe === dn.Overview && /* @__PURE__ */ P(zL, {
64748
+ ke === dn.Overview && /* @__PURE__ */ P(zL, {
64746
64749
  sections: e.details?.overview?.sections,
64747
- sectionClassName: ve,
64748
- labelClassName: be,
64749
- valueClassName: xe,
64750
- valueTrueClassName: Se,
64751
- yesLabel: Gt,
64752
- noLabel: Kt
64750
+ sectionClassName: be,
64751
+ labelClassName: xe,
64752
+ valueClassName: Se,
64753
+ valueTrueClassName: Ce,
64754
+ yesLabel: Kt,
64755
+ noLabel: qt
64753
64756
  }),
64754
- Oe === dn.Pricing && /* @__PURE__ */ P(BL, {
64757
+ ke === dn.Pricing && /* @__PURE__ */ P(BL, {
64755
64758
  pricing: e.details?.pricing,
64756
64759
  pricesSectionLabel: N?.pricingPricesSectionLabel,
64757
64760
  limitsSectionLabel: N?.pricingLimitsSectionLabel
64758
64761
  }),
64759
- Oe === dn.Limits && /* @__PURE__ */ P(RL, {
64762
+ ke === dn.Limits && /* @__PURE__ */ P(RL, {
64760
64763
  limits: e.details?.limits,
64761
64764
  costCapsSectionLabel: N?.limitsCostCapsSectionLabel,
64762
64765
  unlimitedSectionLabel: N?.limitsUnlimitedSectionLabel
64763
64766
  }),
64764
- Oe === dn.Api && KL(e.details?.api) && /* @__PURE__ */ P(GI, {
64767
+ ke === dn.Api && KL(e.details?.api) && /* @__PURE__ */ P(GI, {
64765
64768
  api: e.details?.api,
64766
64769
  resourceSectionLabel: N?.apiResourceSectionLabel,
64767
64770
  snippetSectionLabel: N?.apiSnippetSectionLabel,
@@ -64773,30 +64776,30 @@ var xI = () => {
64773
64776
  copyAriaLabel: N?.copyCodeAriaLabel,
64774
64777
  copiedStatusLabel: N?.copiedCodeStatusLabel
64775
64778
  }),
64776
- Oe === dn.Tools && /* @__PURE__ */ P(WL, { tools: e.details?.tools })
64779
+ ke === dn.Tools && /* @__PURE__ */ P(WL, { tools: e.details?.tools })
64777
64780
  ]
64778
64781
  })
64779
64782
  ] })
64780
64783
  ]
64781
64784
  }),
64782
- en && /* @__PURE__ */ P(qI, {
64783
- confirmLabel: $t.confirmLabel,
64784
- cancelLabel: Qt,
64785
- variant: $t.variant,
64786
- isLoading: vt,
64787
- isConfirmDisabled: tn,
64788
- loadingStatusLabel: $t.loadingStatusLabel,
64789
- onConfirm: Rt,
64790
- onCancel: Lt
64785
+ tn && /* @__PURE__ */ P(qI, {
64786
+ confirmLabel: en.confirmLabel,
64787
+ cancelLabel: $t,
64788
+ variant: en.variant,
64789
+ isLoading: yt,
64790
+ isConfirmDisabled: nn,
64791
+ loadingStatusLabel: en.loadingStatusLabel,
64792
+ onConfirm: zt,
64793
+ onCancel: Rt
64791
64794
  }),
64792
- !en && Ae && /* @__PURE__ */ P(PI, {
64795
+ !tn && je && /* @__PURE__ */ P(PI, {
64793
64796
  version: e.version,
64794
- hasExistingPublicationInFolder: ft.hasExistingPublicationInFolder,
64795
- isSubmitDisabled: pt.isSubmitDisabled,
64796
- isSubmitLoading: pt.isSubmitLoading,
64797
- onCancel: Bt,
64798
- onSubmit: Vt,
64799
- labels: E
64797
+ hasExistingPublicationInFolder: pt.hasExistingPublicationInFolder,
64798
+ isSubmitDisabled: mt.isSubmitDisabled,
64799
+ isSubmitLoading: mt.isSubmitLoading,
64800
+ onCancel: Vt,
64801
+ onSubmit: Ht,
64802
+ labels: ee
64800
64803
  })
64801
64804
  ]
64802
64805
  })] });
@@ -64815,31 +64818,31 @@ var xI = () => {
64815
64818
  favFadeIn: "_favFadeIn_14qfn_1",
64816
64819
  cardLeaving: "_cardLeaving_14qfn_54",
64817
64820
  cardFadeOut: "_cardFadeOut_14qfn_1"
64818
- }, oR = ({ item: e, initialIsStarred: t = !0, onToggle: n, onClick: r, nameClassName: i, colors: a, versionClassName: o, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
64819
- let [m, g] = h(t), [_, v] = h(!1), y = (t) => {
64821
+ }, oR = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: c, lastUsedClassName: l, query: u, addToFavoritesAriaLabel: d = "Add to favorites", removeFromFavoritesAriaLabel: f = "Remove from favorites", isSelected: p = !1, credentialsBadgeLoggedOutLabel: m }) => {
64822
+ let [g, _] = h(t), [v, y] = h(!1), b = (t) => {
64820
64823
  t.stopPropagation();
64821
- let r = !m;
64822
- g(r), r ? n?.(e.id, r) : v(!0);
64823
- }, b = r && !_ ? () => r(e) : void 0, S = s((t) => {
64824
- !r || _ || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r(e));
64824
+ let r = !g;
64825
+ _(r), r ? n?.(e.id, r) : y(!0);
64826
+ }, S = i && !v ? () => i(e) : void 0, C = s((t) => {
64827
+ !i || v || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
64825
64828
  }, [
64826
- r,
64829
+ i,
64827
64830
  e,
64828
- _
64831
+ v
64829
64832
  ]);
64830
64833
  return /* @__PURE__ */ F(x, {
64831
64834
  "data-card-id": e.id,
64832
- role: b == null ? void 0 : "button",
64833
- tabIndex: b == null ? void 0 : 0,
64835
+ role: S == null ? void 0 : "button",
64836
+ tabIndex: S == null ? void 0 : 0,
64834
64837
  "aria-label": e.name,
64835
- className: I("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", _ && aR.cardLeaving, f && aR.selectedCard),
64836
- onClick: b,
64837
- onKeyDown: S,
64838
- onAnimationEnd: _ ? (t) => {
64838
+ className: I("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", v && aR.cardLeaving, p && aR.selectedCard),
64839
+ onClick: S,
64840
+ onKeyDown: C,
64841
+ onAnimationEnd: v ? (t) => {
64839
64842
  t.currentTarget === t.target && n?.(e.id, !1);
64840
64843
  } : void 0,
64841
64844
  children: [
64842
- f && /* @__PURE__ */ P(lt, {
64845
+ p && /* @__PURE__ */ P(lt, {
64843
64846
  size: O.SM,
64844
64847
  className: I("absolute end-3 top-3 shrink-0", aR.selectedCheck),
64845
64848
  "aria-hidden": !0
@@ -64853,27 +64856,27 @@ var xI = () => {
64853
64856
  version: e.version,
64854
64857
  lastUsed: e.lastUsed,
64855
64858
  size: mn.LG,
64856
- query: l,
64859
+ query: u,
64857
64860
  className: "min-w-0 self-stretch",
64858
64861
  styles: {
64859
- colors: a,
64862
+ colors: o,
64860
64863
  typography: {
64861
- nameClassName: i,
64862
- versionClassName: o,
64863
- lastUsedClassName: c
64864
+ nameClassName: a,
64865
+ versionClassName: c,
64866
+ lastUsedClassName: l
64864
64867
  }
64865
64868
  },
64866
64869
  iconOverlay: /* @__PURE__ */ P(uN, {
64867
64870
  credentials: e.credentials,
64868
- loggedOutLabel: p
64871
+ loggedOutLabel: m
64869
64872
  })
64870
64873
  })
64871
64874
  }),
64872
- /* @__PURE__ */ P(fN, {
64873
- isStarred: m,
64875
+ r?.(e) !== !1 && /* @__PURE__ */ P(fN, {
64876
+ isStarred: g,
64874
64877
  size: M.Small,
64875
- onClick: y,
64876
- ariaLabel: m ? d : u,
64878
+ onClick: b,
64879
+ ariaLabel: g ? f : d,
64877
64880
  className: "self-end"
64878
64881
  })
64879
64882
  ]
@@ -64887,66 +64890,66 @@ var xI = () => {
64887
64890
  } catch {
64888
64891
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
64889
64892
  }
64890
- }, lR = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, onItemClick: i, styles: a, isLeaving: o, onExitComplete: s, prevPageAriaLabel: c = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: g, selectedItemId: _, credentialsBadgeLoggedOutLabel: v }) => {
64891
- let y = a?.typography?.titleClassName ?? "dial-body-semi-text", b = a?.typography?.countClassName ?? "dial-tiny-semi-text", x = wi({
64892
- "--cat-fav-title-text": a?.colors?.titleText,
64893
- "--cat-fav-count-text": a?.colors?.countText,
64894
- "--cat-fav-selected-check": a?.colors?.selectedCheckIcon,
64895
- "--cat-fav-selected-border": a?.colors?.selectedCardBorder,
64896
- "--cat-fav-selected-bg": a?.colors?.selectedCardBackground,
64897
- "--cat-fav-nav-btn": a?.colors?.navButton,
64898
- "--cat-fav-nav-btn-disabled": a?.colors?.navButtonDisabled,
64899
- "--cat-fav-nav-btn-hover-bg": a?.colors?.navButtonHoverBackground,
64900
- "--cat-fav-nav-btn-active-bg": a?.colors?.navButtonActiveBackground,
64901
- "--cat-fav-page-nav-border": a?.colors?.pageNavBorder,
64902
- "--cat-fav-page-nav-bg": a?.colors?.pageNavBackground
64903
- }), S = p(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = h(1), T = An(), E = T * sR, ee = (C - 1) * E, D = p(() => S.slice(ee, ee + E), [
64904
- S,
64905
- ee,
64906
- E
64907
- ]), O = Math.ceil(S.length / E), te = t ?? e.length, ne = m(null), k = m(null), A = m(null), [re, ie] = h(), [j, ae] = h(), oe = m(T);
64893
+ }, lR = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: u = "Previous page", nextPageAriaLabel: d = "Next page", addToFavoritesAriaLabel: g, removeFromFavoritesAriaLabel: _, selectedItemId: v, credentialsBadgeLoggedOutLabel: y }) => {
64894
+ let b = o?.typography?.titleClassName ?? "dial-body-semi-text", x = o?.typography?.countClassName ?? "dial-tiny-semi-text", S = wi({
64895
+ "--cat-fav-title-text": o?.colors?.titleText,
64896
+ "--cat-fav-count-text": o?.colors?.countText,
64897
+ "--cat-fav-selected-check": o?.colors?.selectedCheckIcon,
64898
+ "--cat-fav-selected-border": o?.colors?.selectedCardBorder,
64899
+ "--cat-fav-selected-bg": o?.colors?.selectedCardBackground,
64900
+ "--cat-fav-nav-btn": o?.colors?.navButton,
64901
+ "--cat-fav-nav-btn-disabled": o?.colors?.navButtonDisabled,
64902
+ "--cat-fav-nav-btn-hover-bg": o?.colors?.navButtonHoverBackground,
64903
+ "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
64904
+ "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
64905
+ "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
64906
+ }), C = p(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [w, T] = h(1), E = An(), ee = E * sR, D = (w - 1) * ee, O = p(() => C.slice(D, D + ee), [
64907
+ C,
64908
+ D,
64909
+ ee
64910
+ ]), k = Math.ceil(C.length / ee), te = t ?? e.length, ne = m(null), A = m(null), re = m(null), [ie, j] = h(), [ae, oe] = h(), se = m(E);
64908
64911
  l(() => {
64909
- oe.current !== T && (oe.current = T, w(1), ie(void 0), ae(void 0));
64910
- }, [T]), l(() => {
64911
- C > O && O > 0 && w(O);
64912
- }, [C, O]), l(() => {
64913
- O <= 1 && (re !== void 0 || j !== void 0) && (ie(void 0), ae(void 0));
64912
+ se.current !== E && (se.current = E, T(1), j(void 0), oe(void 0));
64913
+ }, [E]), l(() => {
64914
+ w > k && k > 0 && T(k);
64915
+ }, [w, k]), l(() => {
64916
+ k <= 1 && (ie !== void 0 || ae !== void 0) && (j(void 0), oe(void 0));
64914
64917
  }, [
64915
- O,
64916
- re,
64917
- j
64918
+ k,
64919
+ ie,
64920
+ ae
64918
64921
  ]), f(() => {
64919
- !A.current || !k.current || O <= 1 || C !== 1 || re !== void 0 || (ie(A.current.offsetHeight), ae(k.current.offsetHeight));
64922
+ !re.current || !A.current || k <= 1 || w !== 1 || ie !== void 0 || (j(re.current.offsetHeight), oe(A.current.offsetHeight));
64920
64923
  }, [
64921
- O,
64922
- C,
64923
- re
64924
+ k,
64925
+ w,
64926
+ ie
64924
64927
  ]);
64925
- let se = m(/* @__PURE__ */ new Map()), ce = m(C), le = m(T), ue = m(0), de = m(!1);
64928
+ let ce = m(/* @__PURE__ */ new Map()), le = m(w), ue = m(E), de = m(0), fe = m(!1);
64926
64929
  return f(() => {
64927
- if (!A.current || o) return;
64928
- if (ne.current && !de.current) {
64930
+ if (!re.current || s) return;
64931
+ if (ne.current && !fe.current) {
64929
64932
  let e = ne.current;
64930
64933
  e.style.height = "", e.style.transition = "";
64931
64934
  }
64932
- let e = ce.current !== C, t = le.current !== T;
64933
- ce.current = C, le.current = T;
64934
- let n = A.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
64935
+ let e = le.current !== w, t = ue.current !== E;
64936
+ le.current = w, ue.current = E;
64937
+ let n = re.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
64935
64938
  if (n.forEach((e) => {
64936
64939
  r.set(e.dataset.cardId, cR(e));
64937
64940
  }), !e && !t) {
64938
- let e = k.current, t = ue.current, i = 0;
64941
+ let e = A.current, t = de.current, i = 0;
64939
64942
  if (e) {
64940
64943
  let t = e.style.height;
64941
64944
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
64942
64945
  }
64943
64946
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
64944
64947
  if (n.forEach((e) => {
64945
- let t = e.dataset.cardId, n = se.current.get(t), i = r.get(t);
64948
+ let t = e.dataset.cardId, n = ce.current.get(t), i = r.get(t);
64946
64949
  if (!n || !i) return;
64947
64950
  let o = n.left - i.left, c = n.top - i.top;
64948
64951
  !a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
64949
- }), a && e && (e.style.height = `${t}px`, e.style.overflow = "clip"), (s.length > 0 || a) && A.current.offsetHeight, s.forEach((e) => {
64952
+ }), a && e && (e.style.height = `${t}px`, e.style.overflow = "clip"), (s.length > 0 || a) && re.current.offsetHeight, s.forEach((e) => {
64950
64953
  e.style.transition = `transform ${o}ms cubic-bezier(0, 0, 0.2, 1)`, e.style.transform = "", e.addEventListener("transitionend", () => {
64951
64954
  e.style.transition = "";
64952
64955
  }, { once: !0 });
@@ -64958,57 +64961,57 @@ var xI = () => {
64958
64961
  e.addEventListener("transitionend", t);
64959
64962
  }
64960
64963
  }
64961
- if (se.current = r, k.current) {
64962
- let e = k.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
64963
- ue.current = Number.isNaN(t) ? e.offsetHeight : t;
64964
+ if (ce.current = r, A.current) {
64965
+ let e = A.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
64966
+ de.current = Number.isNaN(t) ? e.offsetHeight : t;
64964
64967
  }
64965
64968
  }, [
64966
- D,
64967
- C,
64968
- T,
64969
- o
64969
+ O,
64970
+ w,
64971
+ E,
64972
+ s
64970
64973
  ]), f(() => {
64971
64974
  let e = ne.current;
64972
64975
  if (!e) return;
64973
64976
  let t = e.offsetHeight;
64974
64977
  if (t === 0) return;
64975
- de.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
64978
+ fe.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
64976
64979
  let n = (t) => {
64977
64980
  t.target !== e || t.propertyName !== "height" || r();
64978
64981
  }, r = () => {
64979
- de.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
64982
+ fe.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
64980
64983
  }, i = setTimeout(r, 400);
64981
64984
  return e.addEventListener("transitionend", n), () => {
64982
64985
  clearTimeout(i), e.removeEventListener("transitionend", n);
64983
64986
  };
64984
64987
  }, []), f(() => {
64985
- if (!o || !ne.current) return;
64988
+ if (!s || !ne.current) return;
64986
64989
  let e = ne.current, t = e.offsetHeight;
64987
64990
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
64988
- }, [o]), /* @__PURE__ */ P("div", {
64991
+ }, [s]), /* @__PURE__ */ P("div", {
64989
64992
  ref: ne,
64990
64993
  children: /* @__PURE__ */ F("section", {
64991
- ref: k,
64992
- className: I("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", aR.section, o && aR.sectionLeaving),
64994
+ ref: A,
64995
+ className: I("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", aR.section, s && aR.sectionLeaving),
64993
64996
  style: {
64994
- ...x,
64995
- minHeight: j
64997
+ ...S,
64998
+ minHeight: ae
64996
64999
  },
64997
65000
  onAnimationEnd: (e) => {
64998
- e.target === k.current && o && s?.();
65001
+ e.target === A.current && s && c?.();
64999
65002
  },
65000
65003
  children: [/* @__PURE__ */ P(Hg, {
65001
65004
  title: n,
65002
65005
  postfix: te,
65003
- titleClassName: I(y, aR.titleText),
65004
- postfixClassName: I(b, aR.countText),
65005
- trailing: O > 1 ? /* @__PURE__ */ F("div", {
65006
+ titleClassName: I(b, aR.titleText),
65007
+ postfixClassName: I(x, aR.countText),
65008
+ trailing: k > 1 ? /* @__PURE__ */ F("div", {
65006
65009
  className: I("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", aR.pageNav),
65007
65010
  children: [
65008
65011
  /* @__PURE__ */ P("button", {
65009
- "aria-label": c,
65010
- disabled: C === 1,
65011
- onClick: () => w((e) => e - 1),
65012
+ "aria-label": u,
65013
+ disabled: w === 1,
65014
+ onClick: () => T((e) => e - 1),
65012
65015
  className: I("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", aR.navBtn),
65013
65016
  children: /* @__PURE__ */ P(dt, {
65014
65017
  size: 14,
@@ -65016,17 +65019,17 @@ var xI = () => {
65016
65019
  })
65017
65020
  }),
65018
65021
  /* @__PURE__ */ F("span", {
65019
- className: I("min-w-[32px] select-none px-1 text-center", b, aR.countText),
65022
+ className: I("min-w-[32px] select-none px-1 text-center", x, aR.countText),
65020
65023
  children: [
65021
- C,
65024
+ w,
65022
65025
  " / ",
65023
- O
65026
+ k
65024
65027
  ]
65025
65028
  }),
65026
65029
  /* @__PURE__ */ P("button", {
65027
- "aria-label": u,
65028
- disabled: C === O,
65029
- onClick: () => w((e) => e + 1),
65030
+ "aria-label": d,
65031
+ disabled: w === k,
65032
+ onClick: () => T((e) => e + 1),
65030
65033
  className: I("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", aR.navBtn),
65031
65034
  children: /* @__PURE__ */ P(ft, {
65032
65035
  size: 14,
@@ -65036,21 +65039,22 @@ var xI = () => {
65036
65039
  ]
65037
65040
  }) : void 0
65038
65041
  }), /* @__PURE__ */ P("div", {
65039
- ref: A,
65042
+ ref: re,
65040
65043
  className: I("grid content-start gap-5", aR.gridPage),
65041
65044
  style: {
65042
- gridTemplateColumns: `repeat(${T}, minmax(0, 1fr))`,
65043
- minHeight: re
65045
+ gridTemplateColumns: `repeat(${E}, minmax(0, 1fr))`,
65046
+ minHeight: ie
65044
65047
  },
65045
- children: D.map((e) => /* @__PURE__ */ P(oR, {
65048
+ children: O.map((e) => /* @__PURE__ */ P(oR, {
65046
65049
  item: e,
65047
65050
  onToggle: r,
65048
- onClick: i,
65049
- addToFavoritesAriaLabel: d,
65050
- removeFromFavoritesAriaLabel: g,
65051
- isSelected: e.id === _,
65052
- credentialsBadgeLoggedOutLabel: v
65053
- }, `${C}-${e.id}`))
65051
+ isFavoriteVisible: i,
65052
+ onClick: a,
65053
+ addToFavoritesAriaLabel: g,
65054
+ removeFromFavoritesAriaLabel: _,
65055
+ isSelected: e.id === v,
65056
+ credentialsBadgeLoggedOutLabel: y
65057
+ }, `${w}-${e.id}`))
65054
65058
  })]
65055
65059
  })
65056
65060
  });
@@ -65102,7 +65106,7 @@ var xI = () => {
65102
65106
  let [n, r] = h(e?.isStarred ?? !1);
65103
65107
  return l(() => {
65104
65108
  r(e?.isStarred ?? !1);
65105
- }, [e?.id, e?.isStarred]), e ? /* @__PURE__ */ P("div", {
65109
+ }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ P("div", {
65106
65110
  className: "flex h-full items-center justify-end pe-4",
65107
65111
  children: /* @__PURE__ */ P(fN, {
65108
65112
  isStarred: n,
@@ -65113,7 +65117,7 @@ var xI = () => {
65113
65117
  },
65114
65118
  className: n ? void 0 : uR.starToggleOff
65115
65119
  })
65116
- }) : null;
65120
+ });
65117
65121
  }, hR = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ P("div", {
65118
65122
  className: "flex h-full items-center",
65119
65123
  children: /* @__PURE__ */ P(_N, { topics: e.topics })
@@ -65172,55 +65176,55 @@ var xI = () => {
65172
65176
  if (!e || e === document.body) return null;
65173
65177
  let { overflow: t, overflowY: n } = getComputedStyle(e);
65174
65178
  return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : vR(e.parentElement);
65175
- }, yR = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, onItemClick: s, stickyHeaderTop: c, selectedItemId: u, credentialsBadgeLoggedOutLabel: d }) => {
65179
+ }, yR = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: u, selectedItemId: d, credentialsBadgeLoggedOutLabel: f }) => {
65176
65180
  if (e.length === 0) return /* @__PURE__ */ P("div", {
65177
65181
  className: "flex size-full flex-col items-center justify-center",
65178
65182
  children: /* @__PURE__ */ P(Bg, { label: i ?? "No results" })
65179
65183
  });
65180
- let f = a?.typography ?? {}, g = a?.colors, _ = {
65181
- "--cat-list-bg": g?.background,
65182
- "--cat-list-border": g?.border,
65183
- "--cat-list-header-bg": g?.headerBackground,
65184
- "--cat-list-row-divider": g?.rowDivider,
65185
- "--cat-card-star-filled": g?.starFilled,
65186
- "--cat-list-row-even-bg": g?.rowEvenBackground,
65187
- "--cat-list-selected-border": g?.selectedRowBorder,
65188
- "--cat-list-selected-bg": g?.selectedRowBackground,
65189
- "--cat-list-selected-check": g?.selectedRowCheckIcon,
65190
- ...c == null ? {} : { "--list-header-sticky-top": `${c}px` }
65191
- }, v = m(null), y = m(null), [b, x] = h(() => Math.min(e.length, _R)), S = m(e);
65184
+ let g = a?.typography ?? {}, _ = a?.colors, v = {
65185
+ "--cat-list-bg": _?.background,
65186
+ "--cat-list-border": _?.border,
65187
+ "--cat-list-header-bg": _?.headerBackground,
65188
+ "--cat-list-row-divider": _?.rowDivider,
65189
+ "--cat-card-star-filled": _?.starFilled,
65190
+ "--cat-list-row-even-bg": _?.rowEvenBackground,
65191
+ "--cat-list-selected-border": _?.selectedRowBorder,
65192
+ "--cat-list-selected-bg": _?.selectedRowBackground,
65193
+ "--cat-list-selected-check": _?.selectedRowCheckIcon,
65194
+ ...u == null ? {} : { "--list-header-sticky-top": `${u}px` }
65195
+ }, y = m(null), b = m(null), [x, S] = h(() => Math.min(e.length, _R)), C = m(e);
65192
65196
  l(() => {
65193
- S.current !== e && (S.current = e, x(Math.min(e.length, _R)));
65197
+ C.current !== e && (C.current = e, S(Math.min(e.length, _R)));
65194
65198
  }, [e]), l(() => {
65195
- let t = y.current;
65199
+ let t = b.current;
65196
65200
  if (!t) return;
65197
65201
  let n = vR(t.parentElement);
65198
65202
  if (!n) return;
65199
65203
  let r = () => {
65200
65204
  let r = n.getBoundingClientRect(), i = t.getBoundingClientRect();
65201
- i.top < r.bottom && i.bottom > r.top && x((t) => Math.min(e.length, t + _R));
65205
+ i.top < r.bottom && i.bottom > r.top && S((t) => Math.min(e.length, t + _R));
65202
65206
  };
65203
65207
  return n.addEventListener("scroll", r, { passive: !0 }), r(), () => n.removeEventListener("scroll", r);
65204
65208
  }, [e.length]);
65205
- let C = p(() => e.slice(0, b), [e, b]);
65209
+ let w = p(() => e.slice(0, x), [e, x]);
65206
65210
  return l(() => {
65207
- v.current?.refreshCells({ force: !0 });
65211
+ y.current?.refreshCells({ force: !0 });
65208
65212
  }, [n]), l(() => {
65209
- v.current?.redrawRows();
65210
- }, [u]), l(() => {
65211
- v.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
65213
+ y.current?.redrawRows();
65214
+ }, [d]), l(() => {
65215
+ y.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
65212
65216
  }, [e]), /* @__PURE__ */ P("div", {
65213
- style: _,
65217
+ style: v,
65214
65218
  className: et("w-full rounded-xl border", uR.listContainer),
65215
65219
  children: /* @__PURE__ */ F("div", {
65216
65220
  className: et("rounded-xl", uR.gridClip),
65217
65221
  children: [/* @__PURE__ */ P(se, {
65218
65222
  columnDefs: gR(t),
65219
- rowData: C,
65223
+ rowData: w,
65220
65224
  getRowId: (e) => e.id,
65221
65225
  withoutHeaderBorders: !0,
65222
65226
  onGridApiChange: (e) => {
65223
- v.current = e;
65227
+ y.current = e;
65224
65228
  },
65225
65229
  emptyStateTitle: i,
65226
65230
  additionalGridOptions: {
@@ -65231,20 +65235,21 @@ var xI = () => {
65231
65235
  },
65232
65236
  context: {
65233
65237
  searchQuery: n,
65234
- typography: f,
65238
+ typography: g,
65235
65239
  onToggleFavorite: o,
65236
- selectedItemId: u,
65237
- credentialsBadgeLoggedOutLabel: d
65240
+ isFavoriteVisible: s,
65241
+ selectedItemId: d,
65242
+ credentialsBadgeLoggedOutLabel: f
65238
65243
  },
65239
- onCellClicked: s ? (e) => {
65240
- e.column.getColDef().field !== "isStarred" && e.data && s(e.data);
65244
+ onCellClicked: c ? (e) => {
65245
+ e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
65241
65246
  } : void 0,
65242
- rowClass: s ? "cursor-pointer" : void 0,
65243
- getRowClass: (e) => e.data?.id === u ? uR.selectedRow : void 0
65247
+ rowClass: c ? "cursor-pointer" : void 0,
65248
+ getRowClass: (e) => e.data?.id === d ? uR.selectedRow : void 0
65244
65249
  },
65245
65250
  ariaLabel: r
65246
- }), b < e.length && /* @__PURE__ */ P("div", {
65247
- ref: y,
65251
+ }), x < e.length && /* @__PURE__ */ P("div", {
65252
+ ref: b,
65248
65253
  className: "h-2",
65249
65254
  "aria-hidden": !0
65250
65255
  })]
@@ -65298,13 +65303,13 @@ var xI = () => {
65298
65303
  e,
65299
65304
  r
65300
65305
  ]);
65301
- let D = x.length + 1, [te, ne] = h(-1), k = m([]), A = m(null), re = s((e) => {
65306
+ let D = x.length + 1, [k, te] = h(-1), ne = m([]), A = m(null), re = s((e) => {
65302
65307
  let t = (e + D) % D;
65303
- ne(t), k.current[t]?.focus();
65308
+ te(t), ne.current[t]?.focus();
65304
65309
  }, [D]);
65305
65310
  l(() => {
65306
65311
  if (!v) {
65307
- ne(-1);
65312
+ te(-1);
65308
65313
  return;
65309
65314
  }
65310
65315
  let e = requestAnimationFrame(() => re(0));
@@ -65315,7 +65320,7 @@ var xI = () => {
65315
65320
  }, j = (e) => {
65316
65321
  e.key === "ArrowDown" && !v && (e.preventDefault(), y(!0));
65317
65322
  }, ae = (e) => {
65318
- e.key === "ArrowDown" ? (e.preventDefault(), re(te + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), re(te - 1)) : e.key === "Escape" && (e.preventDefault(), y(!1), A.current?.focus());
65323
+ e.key === "ArrowDown" ? (e.preventDefault(), re(k + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), re(k - 1)) : e.key === "Escape" && (e.preventDefault(), y(!1), A.current?.focus());
65319
65324
  }, oe = (e) => (t) => {
65320
65325
  (t.key === " " || t.key === "Enter") && (t.preventDefault(), e());
65321
65326
  }, se = () => {
@@ -65340,9 +65345,9 @@ var xI = () => {
65340
65345
  /* @__PURE__ */ F("div", {
65341
65346
  role: "menuitemcheckbox",
65342
65347
  "aria-checked": E,
65343
- tabIndex: te === 0 ? 0 : -1,
65348
+ tabIndex: k === 0 ? 0 : -1,
65344
65349
  ref: (e) => {
65345
- k.current[0] = e;
65350
+ ne.current[0] = e;
65346
65351
  },
65347
65352
  className: I("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", bR.row, E && bR.rowChecked),
65348
65353
  onClick: () => ee(!E),
@@ -65373,9 +65378,9 @@ var xI = () => {
65373
65378
  return /* @__PURE__ */ F("div", {
65374
65379
  role: "menuitemcheckbox",
65375
65380
  "aria-checked": n,
65376
- tabIndex: te === r ? 0 : -1,
65381
+ tabIndex: k === r ? 0 : -1,
65377
65382
  ref: (e) => {
65378
- k.current[r] = e;
65383
+ ne.current[r] = e;
65379
65384
  },
65380
65385
  className: I("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", bR.row, n && bR.rowChecked),
65381
65386
  onClick: i,
@@ -65556,258 +65561,262 @@ var xI = () => {
65556
65561
  iconBefore: /* @__PURE__ */ P(Rt, { size: O.SM }),
65557
65562
  onClick: n
65558
65563
  });
65559
- }, kR = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: a, onShare: o, isPublishVisible: c, getPublishHistory: u, publishFolderItems: d, publishExpandedPaths: f, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onPublishError: x, onCreatePublishFolder: S, publishLabels: C, ruleSourceOptions: w, onFetchExistingRules: T, shareOverlay: E, isShareVisible: ee, onFetchDetails: D, onEdit: O, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: k, onLoadContentFile: A, onLoadContentFilePreview: re, renderContentFilePreview: ie, onDelete: j, onUnshare: ae, isUnshareVisible: oe, onRevokeShare: se, onFetchRecipientsCount: ce, isRevokeShareVisible: le, onUnpublish: ue, isUnpublishVisible: de, onLogin: fe, onLogout: pe, onCreateClick: me, createOptions: M, hideCreateButton: he = !1, hidePageTitle: N = !1, initialViewMode: ge = xn.Grid, selectedItemId: _e, onCardClick: ve, isLoading: ye, styles: be, detailsTexts: xe, initialDetailsItemId: Se, sortKey: Ce, onSortChange: we, filterTopics: Te, onFilterTopicsChange: Ee, isMyAppsActive: De, onMyAppsActiveChange: Oe, activeTab: ke, onActiveTabChange: Ae }) => {
65560
- let { typography: je } = be ?? {}, Me = nN(be), Ne = n?.pageTitle ?? "Catalog", Pe = n?.createLabel ?? "Create", Fe = n?.favoritesTitle ?? "Your favorites", Ie = n?.browseTitle ?? "Browse", Le = n?.searchPlaceholder ?? "Search models, tools, agents…", Re = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), ze = n?.featuredLabel ?? "Featured", Be = n?.gridViewLabel ?? "Grid view", Ve = n?.listViewLabel ?? "List view", Ue = n?.viewToggleLabel ?? "View mode", Ge = n?.ariaLabel ?? "Catalog", Ke = [
65564
+ }, kR = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, isFavoriteVisible: i, onUseInChat: a, isPrimaryActionVisible: o, onShare: c, isPublishVisible: u, getPublishHistory: d, publishFolderItems: f, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: y, onPublish: b, onPublishSuccess: x, onPublishError: S, onCreatePublishFolder: C, publishLabels: w, ruleSourceOptions: T, onFetchExistingRules: E, shareOverlay: ee, isShareVisible: D, onFetchDetails: O, onEdit: k, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: A, onLoadContentFile: re, onLoadContentFilePreview: ie, renderContentFilePreview: j, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: pe, onLogout: me, onCreateClick: M, createOptions: he, hideCreateButton: ge = !1, hidePageTitle: N = !1, initialViewMode: _e = xn.Grid, selectedItemId: ve, onCardClick: ye, isLoading: be, styles: xe, detailsTexts: Se, initialDetailsItemId: Ce, sortKey: we, onSortChange: Te, filterTopics: Ee, onFilterTopicsChange: De, isMyAppsActive: Oe, onMyAppsActiveChange: ke, activeTab: Ae, onActiveTabChange: je }) => {
65565
+ let { typography: Me } = xe ?? {}, Ne = nN(xe), Pe = n?.pageTitle ?? "Catalog", Fe = n?.createLabel ?? "Create", Ie = n?.favoritesTitle ?? "Your favorites", Le = n?.browseTitle ?? "Browse", Re = n?.searchPlaceholder ?? "Search models, tools, agents…", ze = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), Be = n?.featuredLabel ?? "Featured", Ve = n?.gridViewLabel ?? "Grid view", Ue = n?.listViewLabel ?? "List view", Ge = n?.viewToggleLabel ?? "View mode", Ke = n?.ariaLabel ?? "Catalog", qe = [
65561
65566
  {
65562
65567
  key: Sn.RecentlyUpdated,
65563
65568
  label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated",
65564
- onClick: () => ct?.(Sn.RecentlyUpdated)
65569
+ onClick: () => lt?.(Sn.RecentlyUpdated)
65565
65570
  },
65566
65571
  {
65567
65572
  key: Sn.Newest,
65568
65573
  label: n?.sortNewestLabel ?? "Newest",
65569
- onClick: () => ct?.(Sn.Newest)
65574
+ onClick: () => lt?.(Sn.Newest)
65570
65575
  },
65571
65576
  {
65572
65577
  key: Sn.NameAZ,
65573
65578
  label: n?.sortNameAZLabel ?? "Name A-Z",
65574
- onClick: () => ct?.(Sn.NameAZ)
65579
+ onClick: () => lt?.(Sn.NameAZ)
65575
65580
  }
65576
- ], [qe, Je] = h(""), [Ye, Xe] = h(ge), [Ze, Qe] = h(ge === xn.List), [$e, et] = h(Sn.RecentlyUpdated), [tt, nt] = h(/* @__PURE__ */ new Set()), [rt, it] = h(!1), at = Ce ?? $e, ot = Te ?? tt, st = De ?? rt, ct = s((e) => {
65581
+ ], [Je, Ye] = h(""), [Xe, Ze] = h(_e), [Qe, $e] = h(_e === xn.List), [et, tt] = h(Sn.RecentlyUpdated), [nt, rt] = h(/* @__PURE__ */ new Set()), [it, at] = h(!1), ot = we ?? et, st = Ee ?? nt, ct = Oe ?? it, lt = s((e) => {
65577
65582
  let t = e;
65578
- et(t), we?.(t);
65579
- }, [we]), lt = s((e) => {
65580
- nt(e), Ee?.(e);
65581
- }, [Ee]), ut = s((e) => {
65582
- it(e), Oe?.(e);
65583
- }, [Oe]), dt = p(() => e.filter((e) => !e.isHidden), [e]), ft = p(() => new Set(dt.flatMap((e) => e.topics)), [dt]), pt = p(() => tN(dt, n?.tabLabels), [dt, n?.tabLabels]), mt = pt[0]?.id ?? "", [ht, gt] = h(mt);
65583
+ tt(t), Te?.(t);
65584
+ }, [Te]), ut = s((e) => {
65585
+ rt(e), De?.(e);
65586
+ }, [De]), dt = s((e) => {
65587
+ at(e), ke?.(e);
65588
+ }, [ke]), ft = p(() => e.filter((e) => !e.isHidden), [e]), pt = p(() => new Set(ft.flatMap((e) => e.topics)), [ft]), mt = p(() => tN(ft, n?.tabLabels), [ft, n?.tabLabels]), ht = mt[0]?.id ?? "", [gt, _t] = h(ht);
65584
65589
  l(() => {
65585
- gt((e) => e || mt);
65586
- }, [mt]);
65587
- let _t = ke ?? ht, vt = s((e) => {
65588
- gt(e), Ae?.(e);
65589
- }, [Ae]), [yt, bt] = h(t.length > 0);
65590
+ _t((e) => e || ht);
65591
+ }, [ht]);
65592
+ let vt = Ae ?? gt, yt = s((e) => {
65593
+ _t(e), je?.(e);
65594
+ }, [je]), [bt, xt] = h(t.length > 0);
65590
65595
  l(() => {
65591
- t.length > 0 && !yt && bt(!0);
65592
- }, [t.length, yt]);
65593
- let xt = s(() => {
65594
- bt(!1);
65595
- }, []), St = yt && t.length === 0, [Ct, wt] = h(null), [Tt, Et] = h(!1), [Dt, Ot] = h(void 0), [kt, At] = h(!1), jt = m(null), Mt = s(async (e) => {
65596
- wt(e), Ot(void 0), jt.current = e.id;
65596
+ t.length > 0 && !bt && xt(!0);
65597
+ }, [t.length, bt]);
65598
+ let St = s(() => {
65599
+ xt(!1);
65600
+ }, []), Ct = bt && t.length === 0, [wt, Tt] = h(null), [Et, Dt] = h(!1), [Ot, kt] = h(void 0), [At, jt] = h(!1), Mt = m(null), Nt = s(async (e) => {
65601
+ Tt(e), kt(void 0), Mt.current = e.id;
65597
65602
  let t = [];
65598
- D && (At(!0), t.push((async () => {
65603
+ O && (jt(!0), t.push((async () => {
65599
65604
  try {
65600
- let t = await D(e);
65601
- jt.current === e.id && Ot(t);
65605
+ let t = await O(e);
65606
+ Mt.current === e.id && kt(t);
65602
65607
  } finally {
65603
- jt.current === e.id && At(!1);
65608
+ Mt.current === e.id && jt(!1);
65604
65609
  }
65605
65610
  })())), await Promise.all(t);
65606
- }, [D]), Nt = m(null);
65611
+ }, [O]), Pt = m(null);
65607
65612
  l(() => {
65608
- if (!Se) {
65609
- Nt.current = null;
65613
+ if (!Ce) {
65614
+ Pt.current = null;
65610
65615
  return;
65611
65616
  }
65612
- if (Nt.current === Se) return;
65613
- let t = e.find((e) => e.id === Se);
65614
- t && (Nt.current = Se, Mt(t));
65617
+ if (Pt.current === Ce) return;
65618
+ let t = e.find((e) => e.id === Ce);
65619
+ t && (Pt.current = Ce, Nt(t));
65615
65620
  }, [
65616
- Se,
65621
+ Ce,
65617
65622
  e,
65618
- Mt
65623
+ Nt
65619
65624
  ]), l(() => {
65620
- if (Ct == null) return;
65621
- let t = e.find((e) => e.id === Ct.id);
65622
- t && t !== Ct && wt(t);
65623
- }, [e, Ct]);
65624
- let Pt = s(async (e, t) => {
65625
- await fe?.(e, t), await Mt(e);
65626
- }, [fe, Mt]), Ft = s(async (e, t) => {
65627
- await pe?.(e, t), await Mt(e);
65628
- }, [pe, Mt]), It = s(() => {
65629
- Et(!1), jt.current = null, setTimeout(() => {
65630
- wt(null), Ot(void 0), At(!1);
65625
+ if (wt == null) return;
65626
+ let t = e.find((e) => e.id === wt.id);
65627
+ t && t !== wt && Tt(t);
65628
+ }, [e, wt]);
65629
+ let Ft = s(async (e, t) => {
65630
+ await pe?.(e, t), await Nt(e);
65631
+ }, [pe, Nt]), It = s(async (e, t) => {
65632
+ await me?.(e, t), await Nt(e);
65633
+ }, [me, Nt]), Lt = s(() => {
65634
+ Dt(!1), Mt.current = null, setTimeout(() => {
65635
+ Tt(null), kt(void 0), jt(!1);
65631
65636
  }, 300);
65632
- }, []), Lt = p(() => {
65633
- if (Ct == null) return null;
65634
- if (Dt == null) return Ct;
65635
- let { credentials: e, ...t } = Dt;
65637
+ }, []), Rt = p(() => {
65638
+ if (wt == null) return null;
65639
+ if (Ot == null) return wt;
65640
+ let { credentials: e, ...t } = Ot;
65636
65641
  return {
65637
- ...Ct,
65642
+ ...wt,
65638
65643
  details: t,
65639
- credentials: e ?? Ct.credentials
65644
+ credentials: e ?? wt.credentials
65640
65645
  };
65641
- }, [Ct, Dt]), Rt = p(() => kn(dt, at), [dt, at]), zt = p(() => On(Rt, qe), [Rt, qe]), Bt = p(() => ot.size > 0 ? En(zt, ot) : zt, [zt, ot]), Vt = p(() => st ? Dn(Bt) : Bt, [Bt, st]), Ht = p(() => _t ? Vt.filter((e) => e.type === _t) : Vt, [Vt, _t]), Ut = Ct != null && t.some((e) => e.id === Ct.id);
65646
+ }, [wt, Ot]), zt = p(() => kn(ft, ot), [ft, ot]), Bt = p(() => On(zt, Je), [zt, Je]), Vt = p(() => st.size > 0 ? En(Bt, st) : Bt, [Bt, st]), Ht = p(() => ct ? Dn(Vt) : Vt, [Vt, ct]), Ut = p(() => vt ? Ht.filter((e) => e.type === vt) : Ht, [Ht, vt]), Wt = wt != null && t.some((e) => e.id === wt.id);
65642
65647
  l(() => {
65643
- if (Ct == null) return;
65644
- let e = requestAnimationFrame(() => Et(!0));
65648
+ if (wt == null) return;
65649
+ let e = requestAnimationFrame(() => Dt(!0));
65645
65650
  return () => cancelAnimationFrame(e);
65646
- }, [Ct]);
65647
- let Wt = s((e) => {
65648
- e === xn.List && Qe(!0), Xe(e);
65649
- }, []), Gt = qe ? Re(qe) : "No items", Kt = p(() => ({
65650
- noResultsTitle: Gt,
65651
- featuredLabel: ze,
65652
- credentialsBadgeLoggedOutLabel: xe?.credentialsBadgeLoggedOutLabel
65651
+ }, [wt]);
65652
+ let Gt = s((e) => {
65653
+ e === xn.List && $e(!0), Ze(e);
65654
+ }, []), Kt = Je ? ze(Je) : "No items", qt = p(() => ({
65655
+ noResultsTitle: Kt,
65656
+ featuredLabel: Be,
65657
+ credentialsBadgeLoggedOutLabel: Se?.credentialsBadgeLoggedOutLabel
65653
65658
  }), [
65654
- Gt,
65655
- ze,
65656
- xe?.credentialsBadgeLoggedOutLabel
65659
+ Kt,
65660
+ Be,
65661
+ Se?.credentialsBadgeLoggedOutLabel
65657
65662
  ]);
65658
- return ye ? /* @__PURE__ */ P("div", {
65663
+ return be ? /* @__PURE__ */ P("div", {
65659
65664
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
65660
65665
  children: /* @__PURE__ */ P(He, {})
65661
65666
  }) : /* @__PURE__ */ F("section", {
65662
- "aria-label": Ge,
65667
+ "aria-label": Ke,
65663
65668
  className: I("flex size-full min-h-0 flex-1 flex-col", DR.root),
65664
- style: Me,
65669
+ style: Ne,
65665
65670
  children: [
65666
- (!N || !he) && /* @__PURE__ */ P("div", {
65671
+ (!N || !ge) && /* @__PURE__ */ P("div", {
65667
65672
  className: I("shrink-0", DR.heading),
65668
65673
  children: /* @__PURE__ */ F("div", {
65669
65674
  className: "flex h-[64px] w-full items-center justify-between px-8",
65670
65675
  children: [!N && /* @__PURE__ */ P("h1", {
65671
- className: I(je?.pageHeadingFontClassName ?? "dial-display2-text", DR.headingTitle),
65672
- children: Ne
65673
- }), !he && /* @__PURE__ */ P(OR, {
65674
- label: Pe,
65675
- options: M,
65676
- onClick: me
65676
+ className: I(Me?.pageHeadingFontClassName ?? "dial-display2-text", DR.headingTitle),
65677
+ children: Pe
65678
+ }), !ge && /* @__PURE__ */ P(OR, {
65679
+ label: Fe,
65680
+ options: he,
65681
+ onClick: M
65677
65682
  })]
65678
65683
  })
65679
65684
  }),
65680
65685
  /* @__PURE__ */ F("div", {
65681
65686
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
65682
65687
  children: [
65683
- yt && /* @__PURE__ */ P("div", {
65688
+ bt && /* @__PURE__ */ P("div", {
65684
65689
  className: "w-full px-8",
65685
65690
  children: /* @__PURE__ */ P(lR, {
65686
65691
  items: t,
65687
65692
  totalCount: t.length,
65688
- title: Fe,
65693
+ title: Ie,
65689
65694
  onToggleFavorite: r,
65690
- onItemClick: ve ?? Mt,
65691
- isLeaving: St,
65692
- onExitComplete: xt,
65693
- selectedItemId: _e,
65694
- credentialsBadgeLoggedOutLabel: xe?.credentialsBadgeLoggedOutLabel
65695
+ isFavoriteVisible: i,
65696
+ onItemClick: ye ?? Nt,
65697
+ isLeaving: Ct,
65698
+ onExitComplete: St,
65699
+ selectedItemId: ve,
65700
+ credentialsBadgeLoggedOutLabel: Se?.credentialsBadgeLoggedOutLabel
65695
65701
  })
65696
65702
  }),
65697
65703
  /* @__PURE__ */ P("div", {
65698
65704
  className: "w-full px-4 pt-6",
65699
65705
  children: /* @__PURE__ */ P(ER, {
65700
- totalCount: Vt.length,
65701
- viewMode: Ye,
65702
- onViewModeChange: Wt,
65703
- sortKey: at,
65704
- query: qe,
65705
- onQueryChange: Je,
65706
- title: Ie,
65707
- searchPlaceholder: Le,
65708
- gridViewLabel: Be,
65709
- listViewLabel: Ve,
65710
- viewToggleLabel: Ue,
65711
- sortOptions: Ke,
65712
- filters: ot,
65713
- onFiltersChange: lt,
65714
- filterValues: ft,
65715
- isMyAppsActive: st,
65716
- onMyAppsChange: ut,
65706
+ totalCount: Ht.length,
65707
+ viewMode: Xe,
65708
+ onViewModeChange: Gt,
65709
+ sortKey: ot,
65710
+ query: Je,
65711
+ onQueryChange: Ye,
65712
+ title: Le,
65713
+ searchPlaceholder: Re,
65714
+ gridViewLabel: Ve,
65715
+ listViewLabel: Ue,
65716
+ viewToggleLabel: Ge,
65717
+ sortOptions: qe,
65718
+ filters: st,
65719
+ onFiltersChange: ut,
65720
+ filterValues: pt,
65721
+ isMyAppsActive: ct,
65722
+ onMyAppsChange: dt,
65717
65723
  filterFromLabel: n?.filterFromLabel,
65718
65724
  filterMyAppsLabel: n?.filterMyAppsLabel,
65719
65725
  filterTopicsLabel: n?.filterTopicsLabel
65720
65726
  })
65721
65727
  }),
65722
- pt.length > 0 && /* @__PURE__ */ P("div", {
65728
+ mt.length > 0 && /* @__PURE__ */ P("div", {
65723
65729
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
65724
65730
  children: /* @__PURE__ */ P(We, {
65725
- tabs: pt.map((e) => ({
65731
+ tabs: mt.map((e) => ({
65726
65732
  id: e.id,
65727
65733
  label: typeof e.label == "string" ? e.label : String(e.label),
65728
- count: Vt.filter((t) => t.type === e.id).length
65734
+ count: Ht.filter((t) => t.type === e.id).length
65729
65735
  })),
65730
- activeTabId: _t,
65731
- onTabChange: vt
65736
+ activeTabId: vt,
65737
+ onTabChange: yt
65732
65738
  })
65733
65739
  }),
65734
65740
  /* @__PURE__ */ F("div", {
65735
- className: I(Ht.length > 0 ? "mx-auto min-h-full w-full max-w-[1180px] px-8 py-6" : "min-h-[180px] flex-1", Ht.length === 0 && "px-8 py-6"),
65741
+ className: I(Ut.length > 0 ? "mx-auto min-h-full w-full max-w-[1180px] px-8 py-6" : "min-h-[180px] flex-1", Ut.length === 0 && "px-8 py-6"),
65736
65742
  children: [/* @__PURE__ */ P("div", {
65737
- className: I(Ht.length > 0 ? "pb-8" : "size-full flex-1", Ye !== xn.Grid && "hidden"),
65743
+ className: I(Ut.length > 0 ? "pb-8" : "size-full flex-1", Xe !== xn.Grid && "hidden"),
65738
65744
  children: /* @__PURE__ */ P(bN, {
65739
- items: Ht,
65740
- query: qe,
65745
+ items: Ut,
65746
+ query: Je,
65741
65747
  onToggleFavorite: r,
65742
- onItemClick: ve ?? Mt,
65743
- titles: Kt,
65744
- selectedItemId: _e
65748
+ isFavoriteVisible: i,
65749
+ onItemClick: ye ?? Nt,
65750
+ titles: qt,
65751
+ selectedItemId: ve
65745
65752
  })
65746
- }), Ze && /* @__PURE__ */ P("div", {
65747
- className: I("pb-8", Ye !== xn.List && "hidden", Ht.length === 0 && "h-full"),
65753
+ }), Qe && /* @__PURE__ */ P("div", {
65754
+ className: I("pb-8", Xe !== xn.List && "hidden", Ut.length === 0 && "h-full"),
65748
65755
  children: /* @__PURE__ */ P(yR, {
65749
- type: _t,
65750
- items: Ht,
65751
- query: qe,
65752
- ariaLabel: Ge,
65753
- emptyStateTitle: Gt,
65756
+ type: vt,
65757
+ items: Ut,
65758
+ query: Je,
65759
+ ariaLabel: Ke,
65760
+ emptyStateTitle: Kt,
65754
65761
  onToggleFavorite: r,
65755
- onItemClick: ve ?? Mt,
65762
+ isFavoriteVisible: i,
65763
+ onItemClick: ye ?? Nt,
65756
65764
  stickyHeaderTop: 0,
65757
- selectedItemId: _e,
65758
- credentialsBadgeLoggedOutLabel: xe?.credentialsBadgeLoggedOutLabel
65765
+ selectedItemId: ve,
65766
+ credentialsBadgeLoggedOutLabel: Se?.credentialsBadgeLoggedOutLabel
65759
65767
  })
65760
65768
  })]
65761
65769
  })
65762
65770
  ]
65763
65771
  }),
65764
- Lt != null && /* @__PURE__ */ P(iR, {
65765
- item: Lt,
65766
- isOpen: Tt,
65767
- isStarred: Ut,
65768
- isDetailsLoading: kt,
65769
- onClose: It,
65772
+ Rt != null && /* @__PURE__ */ P(iR, {
65773
+ item: Rt,
65774
+ isOpen: Et,
65775
+ isStarred: Wt,
65776
+ isDetailsLoading: At,
65777
+ onClose: Lt,
65770
65778
  onToggleFavorite: r,
65771
- onUseInChat: i,
65772
- isPrimaryActionVisible: a,
65773
- onShare: o,
65774
- isPublishVisible: c,
65775
- getPublishHistory: u,
65776
- publishFolderItems: d,
65777
- publishExpandedPaths: f,
65778
- onPublishExpandedPathsChange: g,
65779
- publishLoadingPaths: _,
65780
- hasPublishWriteAccess: v,
65781
- onPublish: y,
65782
- onPublishSuccess: b,
65783
- onPublishError: x,
65784
- onCreatePublishFolder: S,
65785
- publishLabels: C,
65786
- ruleSourceOptions: w,
65787
- onFetchExistingRules: T,
65788
- shareOverlay: E,
65789
- isShareVisible: ee,
65790
- onEdit: O,
65779
+ isFavoriteVisible: i,
65780
+ onUseInChat: a,
65781
+ isPrimaryActionVisible: o,
65782
+ onShare: c,
65783
+ isPublishVisible: u,
65784
+ getPublishHistory: d,
65785
+ publishFolderItems: f,
65786
+ publishExpandedPaths: g,
65787
+ onPublishExpandedPathsChange: _,
65788
+ publishLoadingPaths: v,
65789
+ hasPublishWriteAccess: y,
65790
+ onPublish: b,
65791
+ onPublishSuccess: x,
65792
+ onPublishError: S,
65793
+ onCreatePublishFolder: C,
65794
+ publishLabels: w,
65795
+ ruleSourceOptions: T,
65796
+ onFetchExistingRules: E,
65797
+ shareOverlay: ee,
65798
+ isShareVisible: D,
65799
+ onEdit: k,
65791
65800
  onDownload: te,
65792
65801
  isDownloadVisible: ne,
65793
- isDownloadPrimary: k,
65794
- onLoadContentFile: A,
65795
- onLoadContentFilePreview: re,
65796
- renderContentFilePreview: ie,
65797
- onDelete: j,
65798
- onUnshare: ae,
65799
- isUnshareVisible: oe,
65800
- onRevokeShare: se,
65801
- onFetchRecipientsCount: ce,
65802
- isRevokeShareVisible: le,
65803
- onUnpublish: ue,
65804
- isUnpublishVisible: de,
65805
- onLogin: Pt,
65806
- onLogout: Ft,
65807
- texts: xe
65802
+ isDownloadPrimary: A,
65803
+ onLoadContentFile: re,
65804
+ onLoadContentFilePreview: ie,
65805
+ renderContentFilePreview: j,
65806
+ onDelete: ae,
65807
+ onUnshare: oe,
65808
+ isUnshareVisible: se,
65809
+ onRevokeShare: ce,
65810
+ onFetchRecipientsCount: le,
65811
+ isRevokeShareVisible: ue,
65812
+ onUnpublish: de,
65813
+ isUnpublishVisible: fe,
65814
+ onLogin: Ft,
65815
+ onLogout: It,
65816
+ texts: Se
65808
65817
  })
65809
65818
  ]
65810
65819
  });
65811
65820
  };
65812
65821
  //#endregion
65813
- export { cN as AppIdentity, vN as Card, bN as CardGrid, yN as CardRowRenderer, kR as Catalog, Cn as CatalogContentNodeType, wn as CatalogContentPreviewType, dn as CatalogDetailsTab, Sn as CatalogSortKey, xn as CatalogViewMode, un as CodeLanguage, OL as ContentTab, gn as CredentialStatus, uN as CredentialsBadge, yn as CredentialsBadgeState, _n as CredentialsLevel, vn as CredentialsUiState, mn as DeploymentSize, fn as DetailsConfirmationKind, pn as DetailsConfirmationVariant, oR as FavoriteCard, lR as Favorites, CR as Filter, ge as FolderPath, YI as InfoCard, yR as ListView, ER as Toolbar, hn as ToolsetAuthenticationType, hN as TopicTag, On as filterCatalogItems, Nn as getCredentialsBadgeState, Mn as getCredentialsUiState, Pn as getSignedInLevel, kn as sortCatalogItems, An as useFavColumns, aN as useScrollVirtualizer };
65822
+ export { cN as AppIdentity, vN as Card, bN as CardGrid, yN as CardRowRenderer, kR as Catalog, Cn as CatalogContentNodeType, wn as CatalogContentPreviewType, dn as CatalogDetailsTab, Sn as CatalogSortKey, xn as CatalogViewMode, un as CodeLanguage, OL as ContentTab, gn as CredentialStatus, uN as CredentialsBadge, yn as CredentialsBadgeState, _n as CredentialsLevel, vn as CredentialsUiState, mn as DeploymentSize, fn as DetailsConfirmationKind, pn as DetailsConfirmationVariant, oR as FavoriteCard, lR as Favorites, CR as Filter, N as FolderPath, YI as InfoCard, yR as ListView, ER as Toolbar, hn as ToolsetAuthenticationType, hN as TopicTag, On as filterCatalogItems, Nn as getCredentialsBadgeState, Mn as getCredentialsUiState, Pn as getSignedInLevel, kn as sortCatalogItems, An as useFavColumns, aN as useScrollVirtualizer };