@epam/ai-dial-ui-kit 0.13.0-dev.43 → 0.13.0-dev.45

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.
@@ -49625,13 +49625,13 @@ const sG = (e, t, s, i, n) => {
49625
49625
  const o = typeof e == "string" ? e.toLowerCase() : e, r = typeof t == "string" ? t.toLowerCase() : t;
49626
49626
  return o === r ? 0 : o ? r ? o > r ? 1 : -1 : n ? 1 : -1 : n ? -1 : 1;
49627
49627
  }, iG = "h-full w-full", Xv = ".ag-checkbox-input", ih = {
49628
- accentColor: "var(--bg-control-accent, #124ACE)",
49629
- backgroundColor: "var(--bg-layer-raised, #FCFCFC)",
49630
- oddRowBackgroundColor: "var(--bg-layer-sunken, #EEF1F7)",
49631
- selectedRowBackgroundColor: "var(--controls-bg-accent-primary-alpha-active, #7DA4FF5C)",
49628
+ accentColor: "var(--bg-control-accent, var(--bg-accent-primary, #5C8DEA))",
49629
+ backgroundColor: "var(--bg-layer-raised, var(--bg-layer-0, #FCFCFC))",
49630
+ oddRowBackgroundColor: "var(--bg-layer-sunken, var(--bg-layer-2, #EEF1F7))",
49631
+ selectedRowBackgroundColor: "var(--controls-bg-accent-primary-alpha-active, var(--bg-accent-primary-alpha, #7DA4FF26))",
49632
49632
  borderColor: "var(--bg-layer-4, #D1DBEA)",
49633
- rowBorder: "1px solid var(--stroke-tertiary, #E0E6F0)",
49634
- rowHoverColor: "var(--controls-bg-accent-primary-alpha-active, #7DA4FF5C)",
49633
+ rowBorder: "1px solid var(--stroke-tertiary, var(--stroke-primary, #6B7280))",
49634
+ rowHoverColor: "var(--controls-bg-accent-primary-alpha-active, var(--bg-accent-primary-alpha, #7DA4FF26))",
49635
49635
  borderRadius: 3,
49636
49636
  browserColorScheme: "dark",
49637
49637
  chromeBackgroundColor: "var(--bg-layer-1, #E0E6F0)",
@@ -53161,951 +53161,445 @@ const cV = function(t, s, i) {
53161
53161
  }
53162
53162
  )
53163
53163
  ] });
53164
- }, p0 = "rounded-xl bg-layer-raised p-1 shadow-md", g0 = L(
53165
- p0,
53166
- "w-max"
53167
- ), f0 = L(
53168
- "flex w-full cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg",
53169
- "dial-small-text text-primary truncate",
53170
- "hover:bg-accent-primary-alpha",
53171
- "focus-visible:outline focus-visible:outline-focus-black"
53172
- ), gV = "bg-accent-primary-alpha", m0 = "opacity-75", v0 = 4, fV = L(
53173
- "flex items-center gap-2 align-middle",
53174
- "h-auto px-0 bg-transparent border-0"
53175
- ), mV = L(
53176
- "z-[53] focus-visible:outline-none",
53177
- p0
53178
- ), vV = g0, bp = f0, xp = L(
53179
- m0,
53180
- "!cursor-not-allowed"
53181
- ), C0 = "text-error", CV = "my-1 border-t border-secondary", Io = v0, wV = /* @__PURE__ */ h.jsx(Xs, { size: Ve.SM, "aria-hidden": "true" }), rC = {
53182
- [Ne.Primary]: {
53183
- [ye.Solid]: "dial-kit-primary-solid-button",
53184
- [ye.Ghost]: "dial-kit-primary-ghost-button",
53185
- [ye.Link]: "dial-kit-primary-link-button"
53186
- },
53187
- [Ne.Neutral]: {
53188
- [ye.Solid]: "dial-kit-neutral-solid-button",
53189
- [ye.Outlined]: "dial-kit-neutral-outlined-button"
53190
- },
53191
- [Ne.Danger]: {
53192
- [ye.Solid]: "dial-kit-danger-solid-button",
53193
- [ye.Ghost]: "dial-kit-danger-ghost-button",
53194
- [ye.Outlined]: "dial-kit-danger-outlined-button"
53195
- },
53196
- [Ne.Static]: {
53197
- [ye.Solid]: "dial-kit-static-solid-button"
53198
- },
53199
- // TODO: remove these once we have a design for the icon button variants
53200
- [Ne.Success]: {},
53201
- [Ne.Secondary]: {},
53202
- [Ne.Tertiary]: {}
53203
- }, w0 = (e = Ne.Primary, t = ye.Solid) => {
53204
- const s = rC[e]?.[t];
53205
- return s || (console.warn(
53206
- `Could not find Button styles for variant: ${e} and appearance: ${t}. Using default primary solid button styles.`
53207
- ), rC[Ne.Primary][ye.Solid]);
53208
- }, Md = ({
53164
+ }, gV = /* @__PURE__ */ h.jsx(Js, { size: Ve.SM }), fV = /* @__PURE__ */ h.jsx(iS, { size: Ve.SM }), rC = ({
53209
53165
  variant: e,
53210
- appearance: t = ye.Solid,
53211
- size: s = Ie.Standard,
53212
- className: i,
53213
- icon: n,
53214
- tooltipProps: o,
53215
- type: r = "button",
53216
- ...a
53166
+ appearance: t,
53167
+ items: s,
53168
+ ...i
53217
53169
  }) => {
53218
- const l = L(
53219
- "dial-kit-base-icon-button dial-kit-base-button",
53220
- e && w0(e, t),
53221
- s === Ie.Small ? "size-[24px]" : "size-[40px] dial-kit-enhanced-target",
53222
- i
53223
- ), c = /* @__PURE__ */ h.jsx(
53224
- "button",
53170
+ const [n, o] = N(!1), r = W(() => n ? fV : gV, [n]);
53171
+ return /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
53172
+ jt,
53225
53173
  {
53226
- ...a,
53227
- type: r,
53228
- className: l,
53229
- "aria-label": er(
53230
- a["aria-label"],
53231
- o?.tooltip
53232
- ),
53233
- children: n
53174
+ items: s,
53175
+ onOpenChange: (a) => o(a),
53176
+ children: /* @__PURE__ */ h.jsx(
53177
+ Ri,
53178
+ {
53179
+ ...i,
53180
+ iconAfter: r,
53181
+ variant: e || Ne.Primary,
53182
+ appearance: t || ye.Solid
53183
+ }
53184
+ )
53234
53185
  }
53235
- );
53236
- return o ? /* @__PURE__ */ h.jsx(Ct, { ...o, children: c }) : c;
53237
- }, hf = (e, t) => ({ appearance: i, ...n }) => /* @__PURE__ */ h.jsx(
53238
- Md,
53239
- {
53240
- ...n,
53241
- variant: e,
53242
- appearance: i || t
53243
- }
53244
- ), b0 = (e, t) => ({ variant: i, ...n }) => /* @__PURE__ */ h.jsx(
53245
- Md,
53246
- {
53247
- ...n,
53248
- variant: i || t,
53249
- appearance: e
53250
- }
53251
- ), YW = hf(
53252
- Ne.Primary,
53253
- ye.Solid
53254
- ), ZW = hf(
53255
- Ne.Neutral,
53256
- ye.Solid
53257
- ), QW = hf(
53258
- Ne.Danger,
53259
- ye.Ghost
53260
- ), pf = b0(
53261
- ye.Ghost,
53262
- Ne.Primary
53263
- ), aC = b0(
53264
- ye.Solid,
53265
- Ne.Static
53266
- ), x0 = ({
53267
- ariaLabel: e = "Close",
53268
- className: t,
53269
- size: s = Ie.Small,
53270
- onClose: i,
53271
- ...n
53272
- }) => /* @__PURE__ */ h.jsx(
53273
- pf,
53274
- {
53275
- ...n,
53276
- size: s,
53277
- "aria-label": e,
53278
- className: t,
53279
- onClick: i,
53280
- icon: /* @__PURE__ */ h.jsx(
53281
- Si,
53282
- {
53283
- size: s === Ie.Small ? Ve.SM : Ve.MD,
53284
- "aria-hidden": "true"
53285
- }
53286
- )
53287
- }
53288
- ), bV = ({
53289
- item: e,
53290
- onRootClose: t
53186
+ ) });
53187
+ }, YW = ({
53188
+ icon: e,
53189
+ ariaLabel: t,
53190
+ size: s = Ie.Standard,
53191
+ disabled: i = !1,
53192
+ className: n,
53193
+ buttonClassName: o,
53194
+ iconClassName: r,
53195
+ caretIcon: a = /* @__PURE__ */ h.jsx(Js, { size: Ve.SM }),
53196
+ showCaret: l = !0,
53197
+ placement: c = "bottom-start",
53198
+ matchReferenceWidth: d = !1,
53199
+ open: u,
53200
+ onOpenChange: p,
53201
+ defaultOpen: g = !1,
53202
+ ...f
53291
53203
  }) => {
53292
- const {
53293
- isOpen: s,
53294
- refs: i,
53295
- floatingStyles: n,
53296
- context: o,
53297
- getReferenceProps: r,
53298
- getFloatingProps: a
53299
- } = Td(Io, "menu", !!e.disabled), l = P(
53300
- (c) => (d) => {
53301
- c.disabled || (c.onClick?.({ key: c.key, domEvent: d }), t());
53302
- },
53303
- [t]
53304
- );
53305
- return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
53306
- /* @__PURE__ */ h.jsxs(
53307
- "button",
53308
- {
53309
- ref: i.setReference,
53310
- type: "button",
53311
- role: "menuitem",
53312
- "aria-haspopup": "menu",
53313
- "aria-expanded": s,
53314
- "aria-disabled": !!e.disabled,
53315
- disabled: e.disabled,
53316
- className: L(
53317
- bp,
53318
- e.disabled && xp,
53319
- e.className
53320
- ),
53321
- ...r(),
53322
- children: [
53323
- e.icon && /* @__PURE__ */ h.jsx("span", { className: L(e.disabled && "text-secondary"), children: /* @__PURE__ */ h.jsx(He, { icon: e.icon }) }),
53324
- /* @__PURE__ */ h.jsx(
53325
- "span",
53326
- {
53327
- className: L(
53328
- "flex-1 truncate text-start",
53329
- e.disabled && "text-secondary"
53330
- ),
53331
- children: e.label
53332
- }
53204
+ const m = s === Ie.Small, [v, C] = N(g), w = u ?? v, b = m ? "w-8 px-0" : "w-10 px-0", x = {
53205
+ [Ie.Small]: "size-5",
53206
+ [Ie.Standard]: "size-6",
53207
+ [Ie.Large]: "size-7"
53208
+ }, y = (S) => {
53209
+ C(S), p?.(S);
53210
+ };
53211
+ return /* @__PURE__ */ h.jsx(
53212
+ jt,
53213
+ {
53214
+ ...f,
53215
+ disabled: i,
53216
+ placement: c,
53217
+ matchReferenceWidth: d,
53218
+ className: n,
53219
+ open: w,
53220
+ onOpenChange: y,
53221
+ defaultOpen: g,
53222
+ children: /* @__PURE__ */ h.jsxs(
53223
+ "button",
53224
+ {
53225
+ type: "button",
53226
+ "aria-label": t,
53227
+ disabled: i,
53228
+ className: L(
53229
+ "group flex items-center justify-center rounded border border-transparent bg-layer-4 text-primary",
53230
+ "enabled:hover:bg-accent-primary-alpha enabled:active:bg-controls-accent-primary-alpha-active",
53231
+ "focus-visible:border-focus-black focus-visible:outline-none disabled:cursor-not-allowed disabled:text-controls-secondary-disable disabled:opacity-75",
53232
+ m ? "h-8 px-2" : "h-10 px-2",
53233
+ l ? void 0 : b,
53234
+ o
53333
53235
  ),
53334
- /* @__PURE__ */ h.jsx(
53335
- "span",
53336
- {
53337
- className: L(
53338
- "ml-auto shrink-0",
53339
- e.disabled && "text-secondary"
53340
- ),
53341
- children: wV
53342
- }
53343
- )
53344
- ]
53345
- }
53346
- ),
53347
- s && /* @__PURE__ */ h.jsx(
53348
- Id,
53349
- {
53350
- refs: i,
53351
- floatingStyles: n,
53352
- context: o,
53353
- getFloatingProps: a,
53354
- role: "menu",
53355
- surfaceClassName: vV,
53356
- children: e.children.map((c) => /* @__PURE__ */ h.jsxs(
53357
- "button",
53358
- {
53359
- role: "menuitem",
53360
- type: "button",
53361
- "aria-disabled": !!c.disabled,
53362
- disabled: c.disabled,
53363
- className: L(
53364
- bp,
53365
- c.disabled && xp,
53366
- c.danger && C0,
53367
- c.className
53236
+ children: [
53237
+ /* @__PURE__ */ h.jsx(
53238
+ He,
53239
+ {
53240
+ icon: e,
53241
+ className: L(
53242
+ "flex items-center justify-center text-inherit",
53243
+ x[s],
53244
+ l && "-mr-2",
53245
+ r
53246
+ )
53247
+ }
53368
53248
  ),
53369
- onClick: l(c),
53370
- children: [
53371
- c.icon && /* @__PURE__ */ h.jsx(
53372
- "span",
53249
+ l && /* @__PURE__ */ h.jsxs("div", { className: "relative z-10 inline-grid size-5 shrink-0 place-items-center", children: [
53250
+ /* @__PURE__ */ h.jsx("div", { className: "absolute inset-0 rounded-full bg-layer-2" }),
53251
+ /* @__PURE__ */ h.jsx(
53252
+ He,
53373
53253
  {
53254
+ icon: a,
53374
53255
  className: L(
53375
- c.danger && "text-error",
53376
- c.disabled && "text-secondary"
53377
- ),
53378
- children: /* @__PURE__ */ h.jsx(He, { icon: c.icon })
53379
- }
53380
- ),
53381
- /* @__PURE__ */ h.jsx(
53382
- "span",
53383
- {
53384
- className: L(
53385
- "flex-1 truncate text-start",
53386
- c.danger && "text-error",
53387
- c.disabled && "text-secondary"
53388
- ),
53389
- children: c.label
53256
+ "relative flex items-center justify-center text-secondary transition-transform group-hover:text-primary group-disabled:text-controls-secondary-disable",
53257
+ w && "rotate-180"
53258
+ )
53390
53259
  }
53391
53260
  )
53392
- ]
53393
- },
53394
- c.key
53395
- ))
53396
- }
53397
- )
53398
- ] });
53399
- }, xV = (e) => "clientWidth" in e ? e.clientWidth : e.getBoundingClientRect?.()?.width ?? 0, y0 = ({
53400
- children: e,
53401
- items: t,
53402
- onItemClick: s,
53403
- menuHeader: i,
53404
- menuFooter: n,
53405
- renderOverlay: o,
53406
- trigger: r = [Nt.Click],
53407
- placement: a,
53408
- disabled: l = !1,
53409
- open: c,
53410
- defaultOpen: d = !1,
53411
- onOpenChange: u,
53412
- closable: p = !1,
53413
- onClose: g,
53414
- className: f,
53415
- overlayContentClassName: m,
53416
- separatorClassName: v,
53417
- listClassName: C,
53418
- outsidePressIgnoreRef: w,
53419
- outsideClosable: b = !0,
53420
- allowedPlacements: x,
53421
- anchorToMouse: y = !1,
53422
- matchReferenceWidth: S = !0,
53423
- maxDropdownHeight: R
53424
- }) => {
53425
- const [F, D] = N(d), k = c !== void 0, E = k ? !!c : F, I = z(null), T = P(
53426
- (M) => {
53427
- k || D(M), u?.(M);
53428
- },
53429
- [k, u]
53430
- ), O = Qs(), A = a === void 0, { refs: V, floatingStyles: _, context: B } = Xn({
53431
- placement: a,
53432
- open: E,
53433
- onOpenChange: T,
53434
- whileElementsMounted: Aa,
53435
- middleware: [
53436
- La({ mainAxis: Io, crossAxis: 0 }),
53437
- A ? VC({
53438
- alignment: "start",
53439
- crossAxis: !0,
53440
- padding: Io,
53441
- allowedPlacements: x
53442
- }) : Na({ padding: Io }),
53443
- Oa({ padding: Io }),
53444
- jC({
53445
- padding: Io,
53446
- apply({ availableWidth: M, availableHeight: q, elements: be }) {
53447
- const Pe = be.floating, K = xV(be.reference);
53448
- Pe.style.setProperty(
53449
- "--fui-available-height",
53450
- `${Math.floor(q)}px`
53451
- ), Pe.style.setProperty(
53452
- "--reference-width",
53453
- S ? `${Math.round(K)}px` : "0px"
53454
- ), S ? Pe.style.minWidth = `${Math.round(K)}px` : Pe.style.removeProperty("min-width"), Pe.style.maxWidth = `${Math.floor(M)}px`;
53455
- const fe = Math.floor(q);
53456
- Pe.style.maxHeight = `${R ? Math.min(fe, R) : fe}px`;
53261
+ ] })
53262
+ ]
53457
53263
  }
53458
- })
53459
- ]
53460
- }), Y = sd(B, {
53461
- enabled: r.includes(Nt.Click) && !l
53462
- }), G = ed(B, {
53463
- enabled: r.includes(Nt.Hover) && !l,
53464
- move: !1,
53465
- restMs: 40,
53466
- delay: { open: 80, close: 80 }
53467
- }), H = Jn(B, {
53468
- bubbles: !0,
53469
- referencePress: !1,
53470
- outsidePress: (M) => {
53471
- if (!b) return !1;
53472
- const q = M.target;
53473
- return !(w?.current && q instanceof Node && w.current.contains(q));
53264
+ )
53474
53265
  }
53475
- }), U = eo(B, { role: "menu" }), { getReferenceProps: Q, getFloatingProps: se } = to([
53476
- Y,
53477
- G,
53478
- H,
53479
- U
53480
- ]), Fe = P(
53481
- (M, q) => {
53482
- V.setPositionReference({
53483
- getBoundingClientRect: () => ({
53484
- width: 0,
53485
- height: 0,
53486
- x: M,
53487
- y: q,
53488
- top: q,
53489
- left: M,
53490
- right: M,
53491
- bottom: q
53492
- })
53493
- });
53494
- },
53495
- [V]
53496
- ), ee = P(
53497
- (M) => {
53498
- !r.includes(Nt.ContextMenu) || l || (M.preventDefault(), y && (Fe(M.clientX, M.clientY), I.current = document.elementFromPoint(
53499
- M.clientX,
53500
- M.clientY
53501
- )), T(!0));
53502
- },
53503
- [y, l, T, Fe, r]
53504
- ), ge = P(
53505
- (M) => {
53506
- !y || l || (r.includes(Nt.ContextMenu) && E && T(!1), Fe(M.clientX, M.clientY), I.current = document.elementFromPoint(
53507
- M.clientX,
53508
- M.clientY
53509
- ));
53510
- },
53511
- [y, l, Fe, E, r, T]
53512
53266
  );
53513
- Se(() => {
53514
- l && E && T(!1);
53515
- }, [l, E, T]);
53516
- const Me = P(
53517
- (M) => (q) => {
53518
- M.disabled || (M.onClick?.({ key: M.key, domEvent: q }), s?.({ key: M.key, domEvent: q }), T(!1));
53519
- },
53520
- [s, T]
53521
- ), ie = W(() => o ? o() : t ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
53522
- i && /* @__PURE__ */ h.jsx(h.Fragment, { children: typeof i == "function" ? i() : i }),
53523
- /* @__PURE__ */ h.jsx(
53524
- "div",
53267
+ }, p0 = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z", fill: "currentColor" })), g0 = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z", fill: "currentColor" })), hf = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), pf = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), gf = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z", stroke: "#7F8792", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
53268
+ var ta = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(ta || {}), te = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(te || {}), Dt = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Dt || {}), ls = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(ls || {}), Pt = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(Pt || {}), Yo = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Yo || {}), Dn = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Dn || {}), Ps = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Ps || {}), Mt = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(Mt || {});
53269
+ const mV = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", aC = "w-full text-secondary flex items-center gap-2", vV = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", CV = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", wV = "h-full rounded bg-layer-3 text-secondary min-w-0", bV = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", xV = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", yV = 280, SV = "Files", Ki = 20, RV = "Files", dh = ".dial_folder", lC = "New folder", FV = 280, EV = 460, cC = 44, DV = 800, PV = [
53270
+ Mt.Name,
53271
+ Mt.UpdatedAt,
53272
+ Mt.Size,
53273
+ Mt.Author,
53274
+ Mt.Actions
53275
+ ];
53276
+ var Te = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(Te || {}), f0 = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(f0 || {}), br = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(br || {});
53277
+ const dC = ({
53278
+ open: e,
53279
+ onClose: t,
53280
+ onReplace: s,
53281
+ onDuplicate: i,
53282
+ onDecideForEach: n,
53283
+ conflictingFiles: o,
53284
+ singleFileTitle: r = "Replace Or Duplicate Item",
53285
+ multipleFilesTitle: a = "Replace Or Duplicate Items",
53286
+ message: l,
53287
+ actionLabels: c,
53288
+ strategyLabels: d,
53289
+ confirmLabel: u = "Confirm",
53290
+ cancelLabel: p = "Cancel",
53291
+ nameColumnLabel: g = "Name",
53292
+ actionColumnLabel: f = "Action"
53293
+ }) => {
53294
+ const m = o.length === 1, v = m ? o[0]?.name : "", C = c?.[Dt.Replace] ?? "Replace", w = c?.[Dt.Duplicate] ?? "Duplicate", b = c?.[Dt.Cancel] ?? "Cancel", x = d?.[ls.ReplaceAll] ?? "Replace all", y = d?.[ls.DuplicateAll] ?? "Duplicate all", S = d?.[ls.DecideForEach] ?? "Decide for each", [R, F] = N(
53295
+ Dt.Replace
53296
+ ), [D, k] = N(
53297
+ ls.ReplaceAll
53298
+ ), [E, I] = N(
53299
+ new Map(
53300
+ o.map((ee) => [
53301
+ ee.path,
53302
+ Dt.Replace
53303
+ ])
53304
+ )
53305
+ ), [T, O] = N(
53306
+ void 0
53307
+ ), A = m ? r : a, V = /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
53308
+ "Item with the name ",
53309
+ /* @__PURE__ */ h.jsxs("span", { className: "text-primary", children: [
53310
+ '"',
53311
+ v,
53312
+ '"'
53313
+ ] }),
53314
+ " ",
53315
+ "already exists in this destination."
53316
+ ] }), _ = `${o.length} items with the same names already exist in this destination.`, B = l ?? (m ? V : _), Y = W(
53317
+ () => [
53525
53318
  {
53526
- role: "none",
53527
- className: L("py-1", m),
53528
- "aria-label": "dropdown",
53529
- children: t.map((M) => M.type === Zn.Divider ? /* @__PURE__ */ h.jsx(
53530
- "div",
53319
+ id: Dt.Replace,
53320
+ name: C
53321
+ },
53322
+ {
53323
+ id: Dt.Duplicate,
53324
+ name: w
53325
+ }
53326
+ ],
53327
+ [C, w]
53328
+ ), G = W(() => o.map((ee) => ({
53329
+ id: ee.path,
53330
+ name: ee.name,
53331
+ path: ee.path,
53332
+ nodeType: ee.nodeType ?? Te.ITEM,
53333
+ action: E.get(ee.path) || Dt.Replace
53334
+ })), [o, E]), H = W(() => [
53335
+ {
53336
+ field: "name",
53337
+ headerName: g,
53338
+ flex: 1,
53339
+ minWidth: 200,
53340
+ floatingFilter: !1,
53341
+ filter: !1,
53342
+ resizable: !1,
53343
+ cellRenderer: (ee) => ee.data?.nodeType === Te.FOLDER ? /* @__PURE__ */ h.jsx(
53344
+ Kp,
53345
+ {
53346
+ name: ee.data.name,
53347
+ iconSize: Ki
53348
+ }
53349
+ ) : /* @__PURE__ */ h.jsx(
53350
+ qp,
53351
+ {
53352
+ name: ee.data.name,
53353
+ iconSize: Ki
53354
+ }
53355
+ )
53356
+ },
53357
+ {
53358
+ field: "action",
53359
+ headerName: f,
53360
+ width: 140,
53361
+ suppressSizeToFit: !0,
53362
+ sortable: !1,
53363
+ filter: !1,
53364
+ floatingFilter: !1,
53365
+ resizable: !1,
53366
+ cellRenderer: (ee) => {
53367
+ if (!ee.data) return null;
53368
+ const ge = [
53531
53369
  {
53532
- role: "separator",
53533
- className: L(
53534
- CV,
53535
- v
53536
- )
53370
+ key: Dt.Replace,
53371
+ label: C,
53372
+ icon: /* @__PURE__ */ h.jsx($l, { size: 10, className: "text-accent-tertiary" })
53537
53373
  },
53538
- M.key
53539
- ) : M.type === Zn.PlainText ? /* @__PURE__ */ h.jsx(
53540
- "div",
53541
53374
  {
53542
- className: L(
53543
- "px-3 py-2 text-secondary dial-caption-text",
53544
- M.className
53545
- ),
53546
- children: M.label
53375
+ key: Dt.Duplicate,
53376
+ label: w,
53377
+ icon: /* @__PURE__ */ h.jsx($l, { size: 10, className: "text-accent-secondary" })
53547
53378
  },
53548
- M.key
53549
- ) : M.children?.length ? /* @__PURE__ */ h.jsx(
53550
- bV,
53551
53379
  {
53552
- item: M,
53553
- onRootClose: () => T(!1)
53554
- },
53555
- M.key
53556
- ) : /* @__PURE__ */ h.jsxs(
53557
- "button",
53380
+ key: Dt.Cancel,
53381
+ label: b,
53382
+ icon: /* @__PURE__ */ h.jsx($l, { size: 10, className: "text-error" })
53383
+ }
53384
+ ], Me = ge.find(
53385
+ (pe) => pe.key === ee.data.action
53386
+ ), ie = T === ee.data.path;
53387
+ return /* @__PURE__ */ h.jsx("div", { className: "flex items-center h-full", children: /* @__PURE__ */ h.jsx(
53388
+ jt,
53558
53389
  {
53559
- role: "menuitem",
53560
- type: "button",
53561
- "aria-disabled": !!M.disabled,
53562
- className: L(
53563
- bp,
53564
- M.disabled && xp,
53565
- M.danger && C0,
53566
- M.className
53567
- ),
53568
- disabled: M.disabled,
53569
- onClick: Me(M),
53570
- children: [
53571
- M.icon && /* @__PURE__ */ h.jsx(
53572
- "span",
53573
- {
53574
- className: L(
53575
- M.danger && "text-error",
53576
- M.disabled && "text-secondary"
53577
- ),
53578
- children: /* @__PURE__ */ h.jsx(He, { icon: M.icon })
53579
- }
53580
- ),
53390
+ trigger: [Nt.Click],
53391
+ open: ie,
53392
+ items: ge,
53393
+ onItemClick: ({ key: pe }) => {
53394
+ I((M) => {
53395
+ const q = new Map(M);
53396
+ return q.set(
53397
+ ee.data.path,
53398
+ pe
53399
+ ), q;
53400
+ }), O(void 0);
53401
+ },
53402
+ placement: "bottom-start",
53403
+ matchReferenceWidth: !1,
53404
+ allowedPlacements: ["bottom-start", "top-start"],
53405
+ onOpenChange: (pe) => {
53406
+ O(pe ? ee.data.path : void 0);
53407
+ },
53408
+ children: /* @__PURE__ */ h.jsxs("button", { type: "button", className: "flex items-center gap-2", children: [
53409
+ /* @__PURE__ */ h.jsxs("span", { className: "flex items-center gap-2", children: [
53410
+ Me?.icon,
53411
+ Me?.label ?? C
53412
+ ] }),
53581
53413
  /* @__PURE__ */ h.jsx(
53582
- "span",
53414
+ Js,
53583
53415
  {
53584
- className: L(
53585
- "flex-1 truncate text-start",
53586
- M.danger && "text-error",
53587
- M.disabled && "text-secondary"
53588
- ),
53589
- children: M.label
53416
+ size: Ve.SM,
53417
+ className: ue(
53418
+ "text-secondary transition-transform",
53419
+ ie && "rotate-180"
53420
+ )
53590
53421
  }
53591
53422
  )
53592
- ]
53593
- },
53594
- M.key
53595
- ))
53423
+ ] })
53424
+ }
53425
+ ) });
53596
53426
  }
53597
- ),
53598
- n && /* @__PURE__ */ h.jsx(h.Fragment, { children: typeof n == "function" ? n() : n })
53599
- ] }) : null, [
53600
- Me,
53601
- t,
53602
- n,
53603
- i,
53604
- o,
53605
- T,
53606
- m,
53607
- v
53608
- ]), pe = Q({
53609
- onContextMenu: ee,
53610
- onMouseDown: ge
53611
- });
53612
- return Se(() => {
53613
- if (!E) return;
53614
- const M = V.reference.current;
53615
- let q = null;
53616
- if (M instanceof Element ? q = M : I.current instanceof Element && (q = I.current), !q) return;
53617
- const be = new IntersectionObserver(
53618
- ([Pe]) => {
53619
- Pe.isIntersecting || T(!1);
53427
+ }
53428
+ ], [
53429
+ g,
53430
+ f,
53431
+ C,
53432
+ w,
53433
+ b,
53434
+ T
53435
+ ]), U = W(
53436
+ () => [
53437
+ {
53438
+ id: ls.ReplaceAll,
53439
+ name: x
53620
53440
  },
53621
- { root: null, threshold: 0 }
53622
- );
53623
- return be.observe(q), () => be.disconnect();
53624
- }, [E, V.reference, T]), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
53625
- /* @__PURE__ */ h.jsx(
53626
- "span",
53627
53441
  {
53628
- ref: V.setReference,
53629
- className: L(
53630
- fV,
53631
- l && "!cursor-not-allowed opacity-75",
53632
- f
53633
- ),
53634
- "aria-haspopup": "menu",
53635
- "aria-expanded": E,
53636
- "aria-controls": O,
53637
- ...pe,
53638
- children: e
53639
- }
53640
- ),
53641
- E && /* @__PURE__ */ h.jsx(so, { children: /* @__PURE__ */ h.jsx(
53642
- ur,
53442
+ id: ls.DuplicateAll,
53443
+ name: y
53444
+ },
53643
53445
  {
53644
- context: B,
53645
- modal: !1,
53646
- initialFocus: -1,
53647
- returnFocus: !0,
53648
- children: /* @__PURE__ */ h.jsxs(
53649
- "div",
53446
+ id: ls.DecideForEach,
53447
+ name: S,
53448
+ content: D === ls.DecideForEach ? /* @__PURE__ */ h.jsx("div", { className: "mt-4", children: /* @__PURE__ */ h.jsx(
53449
+ Kx,
53650
53450
  {
53651
- id: O,
53652
- ref: V.setFloating,
53653
- style: _,
53654
- className: L(
53655
- mV,
53656
- !S && "w-max",
53657
- C
53658
- ),
53659
- ...se(),
53660
- children: [
53661
- p && /* @__PURE__ */ h.jsx("div", { className: "flex items-center justify-between px-2 pt-2", children: /* @__PURE__ */ h.jsx(
53662
- x0,
53663
- {
53664
- ariaLabel: "Close dropdown",
53665
- onClose: (M) => {
53666
- g?.(M), T(!1);
53667
- }
53668
- }
53669
- ) }),
53670
- ie
53671
- ]
53451
+ columnDefs: H,
53452
+ rowData: G,
53453
+ getRowId: (ee) => ee.id,
53454
+ wrapCustomCellRenderers: !1,
53455
+ alternateOddRowColors: !1,
53456
+ additionalGridOptions: {
53457
+ domLayout: "autoHeight"
53458
+ }
53672
53459
  }
53673
- )
53460
+ ) }) : void 0
53674
53461
  }
53675
- ) })
53676
- ] });
53677
- }, yV = /* @__PURE__ */ h.jsx(Js, { size: Ve.SM }), SV = /* @__PURE__ */ h.jsx(iS, { size: Ve.SM }), lC = ({
53678
- variant: e,
53679
- appearance: t,
53680
- items: s,
53681
- ...i
53682
- }) => {
53683
- const [n, o] = N(!1), r = W(() => n ? SV : yV, [n]);
53684
- return /* @__PURE__ */ h.jsx(y0, { items: s, onOpenChange: (a) => o(a), children: /* @__PURE__ */ h.jsx(
53685
- Ri,
53686
- {
53687
- ...i,
53688
- iconAfter: r,
53689
- variant: e || Ne.Primary,
53690
- appearance: t || ye.Solid
53462
+ ],
53463
+ [
53464
+ x,
53465
+ y,
53466
+ S,
53467
+ D,
53468
+ H,
53469
+ G
53470
+ ]
53471
+ ), Q = P(() => {
53472
+ F(Dt.Replace), k(ls.ReplaceAll), I(
53473
+ new Map(
53474
+ o.map((ee) => [
53475
+ ee.path,
53476
+ Dt.Replace
53477
+ ])
53478
+ )
53479
+ );
53480
+ }, [o]), se = P(() => {
53481
+ Q(), t();
53482
+ }, [Q, t]), Fe = P(() => {
53483
+ if (Q(), m)
53484
+ R === Dt.Replace ? s() : i();
53485
+ else if (D === ls.ReplaceAll)
53486
+ s();
53487
+ else if (D === ls.DuplicateAll)
53488
+ i();
53489
+ else if (D === ls.DecideForEach && n) {
53490
+ const ee = o.map(
53491
+ (ge) => ({
53492
+ file: ge,
53493
+ action: E.get(ge.path) || Dt.Replace
53494
+ })
53495
+ );
53496
+ n(ee);
53691
53497
  }
53692
- ) });
53693
- }, XW = ({
53694
- icon: e,
53695
- ariaLabel: t,
53696
- size: s = Ie.Standard,
53697
- disabled: i = !1,
53698
- className: n,
53699
- buttonClassName: o,
53700
- iconClassName: r,
53701
- caretIcon: a = /* @__PURE__ */ h.jsx(Js, { size: Ve.SM }),
53702
- showCaret: l = !0,
53703
- placement: c = "bottom-start",
53704
- matchReferenceWidth: d = !1,
53705
- open: u,
53706
- onOpenChange: p,
53707
- defaultOpen: g = !1,
53708
- ...f
53709
- }) => {
53710
- const m = s === Ie.Small, [v, C] = N(g), w = u ?? v, b = m ? "w-8 px-0" : "w-10 px-0", x = {
53711
- [Ie.Small]: "size-5",
53712
- [Ie.Standard]: "size-6",
53713
- [Ie.Large]: "size-7"
53714
- }, y = (S) => {
53715
- C(S), p?.(S);
53716
- };
53498
+ }, [
53499
+ Q,
53500
+ m,
53501
+ R,
53502
+ s,
53503
+ i,
53504
+ D,
53505
+ n,
53506
+ o,
53507
+ E
53508
+ ]);
53717
53509
  return /* @__PURE__ */ h.jsx(
53718
- jt,
53510
+ wr,
53719
53511
  {
53720
- ...f,
53721
- disabled: i,
53722
- placement: c,
53723
- matchReferenceWidth: d,
53724
- className: n,
53725
- open: w,
53726
- onOpenChange: y,
53727
- defaultOpen: g,
53728
- children: /* @__PURE__ */ h.jsxs(
53729
- "button",
53730
- {
53731
- type: "button",
53732
- "aria-label": t,
53733
- disabled: i,
53734
- className: L(
53735
- "group flex items-center justify-center rounded border border-transparent bg-layer-4 text-primary",
53736
- "enabled:hover:bg-accent-primary-alpha enabled:active:bg-controls-accent-primary-alpha-active",
53737
- "focus-visible:border-focus-black focus-visible:outline-none disabled:cursor-not-allowed disabled:text-controls-secondary-disable disabled:opacity-75",
53738
- m ? "h-8 px-2" : "h-10 px-2",
53739
- l ? void 0 : b,
53740
- o
53741
- ),
53742
- children: [
53743
- /* @__PURE__ */ h.jsx(
53744
- He,
53745
- {
53746
- icon: e,
53747
- className: L(
53748
- "flex items-center justify-center text-inherit",
53749
- x[s],
53750
- l && "-mr-2",
53751
- r
53752
- )
53753
- }
53754
- ),
53755
- l && /* @__PURE__ */ h.jsxs("div", { className: "relative z-10 inline-grid size-5 shrink-0 place-items-center", children: [
53756
- /* @__PURE__ */ h.jsx("div", { className: "absolute inset-0 rounded-full bg-layer-2" }),
53757
- /* @__PURE__ */ h.jsx(
53758
- He,
53759
- {
53760
- icon: a,
53761
- className: L(
53762
- "relative flex items-center justify-center text-secondary transition-transform group-hover:text-primary group-disabled:text-controls-secondary-disable",
53763
- w && "rotate-180"
53764
- )
53765
- }
53766
- )
53767
- ] })
53768
- ]
53769
- }
53770
- )
53512
+ open: e,
53513
+ onClose: se,
53514
+ size: m ? Ht.Sm : Ht.Md,
53515
+ className: ue([!m && "w-[600px]"]),
53516
+ header: A,
53517
+ dividers: !1,
53518
+ preventKeyboardOnOpen: !0,
53519
+ footer: /* @__PURE__ */ h.jsxs("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
53520
+ /* @__PURE__ */ h.jsx(bi, { onClick: se, label: p }),
53521
+ /* @__PURE__ */ h.jsx(fi, { onClick: Fe, label: u })
53522
+ ] }),
53523
+ children: /* @__PURE__ */ h.jsxs("div", { className: "px-6 py-4", children: [
53524
+ /* @__PURE__ */ h.jsx("p", { className: "text-secondary mb-4 break-words", children: B }),
53525
+ m ? /* @__PURE__ */ h.jsx(
53526
+ xh,
53527
+ {
53528
+ elementId: "single-file-conflict",
53529
+ radioButtons: Y,
53530
+ activeRadioButton: R,
53531
+ orientation: tr.Column,
53532
+ onChange: (ee) => F(ee)
53533
+ }
53534
+ ) : /* @__PURE__ */ h.jsx(
53535
+ xh,
53536
+ {
53537
+ elementId: "multiple-files-conflict",
53538
+ radioButtons: U,
53539
+ activeRadioButton: D,
53540
+ orientation: tr.Column,
53541
+ onChange: (ee) => k(ee),
53542
+ formItemChildrenClassName: "gap-3"
53543
+ }
53544
+ )
53545
+ ] })
53771
53546
  }
53772
53547
  );
53773
- }, S0 = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z", fill: "currentColor" })), R0 = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z", fill: "currentColor" })), gf = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ff = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), mf = (e) => /* @__PURE__ */ Le.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Le.createElement("path", { d: "M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z", stroke: "#7F8792", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
53774
- var ta = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(ta || {}), te = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(te || {}), Dt = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Dt || {}), ls = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(ls || {}), Pt = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(Pt || {}), Yo = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Yo || {}), Dn = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Dn || {}), Ps = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Ps || {}), Mt = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(Mt || {});
53775
- const RV = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", cC = "w-full text-secondary flex items-center gap-2", FV = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", EV = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", DV = "h-full rounded bg-layer-3 text-secondary min-w-0", PV = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", TV = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", IV = 280, kV = "Files", Ki = 20, MV = "Files", dh = ".dial_folder", dC = "New folder", AV = 280, LV = 460, uC = 44, NV = 800, OV = [
53776
- Mt.Name,
53777
- Mt.UpdatedAt,
53778
- Mt.Size,
53779
- Mt.Author,
53780
- Mt.Actions
53781
- ];
53782
- var Te = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(Te || {}), F0 = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(F0 || {}), br = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(br || {});
53783
- const hC = ({
53784
- open: e,
53785
- onClose: t,
53786
- onReplace: s,
53787
- onDuplicate: i,
53788
- onDecideForEach: n,
53789
- conflictingFiles: o,
53790
- singleFileTitle: r = "Replace Or Duplicate Item",
53791
- multipleFilesTitle: a = "Replace Or Duplicate Items",
53792
- message: l,
53793
- actionLabels: c,
53794
- strategyLabels: d,
53795
- confirmLabel: u = "Confirm",
53796
- cancelLabel: p = "Cancel",
53797
- nameColumnLabel: g = "Name",
53798
- actionColumnLabel: f = "Action"
53548
+ }, TV = ({
53549
+ getContextMenuItems: e,
53550
+ isRowDisabled: t,
53551
+ allowedFileTypes: s,
53552
+ maxSelectableFileSize: i,
53553
+ buttonClassName: n
53799
53554
  }) => {
53800
- const m = o.length === 1, v = m ? o[0]?.name : "", C = c?.[Dt.Replace] ?? "Replace", w = c?.[Dt.Duplicate] ?? "Duplicate", b = c?.[Dt.Cancel] ?? "Cancel", x = d?.[ls.ReplaceAll] ?? "Replace all", y = d?.[ls.DuplicateAll] ?? "Duplicate all", S = d?.[ls.DecideForEach] ?? "Decide for each", [R, F] = N(
53801
- Dt.Replace
53802
- ), [D, k] = N(
53803
- ls.ReplaceAll
53804
- ), [E, I] = N(
53805
- new Map(
53806
- o.map((ee) => [
53807
- ee.path,
53808
- Dt.Replace
53809
- ])
53810
- )
53811
- ), [T, O] = N(
53812
- void 0
53813
- ), A = m ? r : a, V = /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
53814
- "Item with the name ",
53815
- /* @__PURE__ */ h.jsxs("span", { className: "text-primary", children: [
53816
- '"',
53817
- v,
53818
- '"'
53819
- ] }),
53820
- " ",
53821
- "already exists in this destination."
53822
- ] }), _ = `${o.length} items with the same names already exist in this destination.`, B = l ?? (m ? V : _), Y = W(
53823
- () => [
53824
- {
53825
- id: Dt.Replace,
53826
- name: C
53827
- },
53828
- {
53829
- id: Dt.Duplicate,
53830
- name: w
53831
- }
53832
- ],
53833
- [C, w]
53834
- ), G = W(() => o.map((ee) => ({
53835
- id: ee.path,
53836
- name: ee.name,
53837
- path: ee.path,
53838
- nodeType: ee.nodeType ?? Te.ITEM,
53839
- action: E.get(ee.path) || Dt.Replace
53840
- })), [o, E]), H = W(() => [
53841
- {
53842
- field: "name",
53843
- headerName: g,
53844
- flex: 1,
53845
- minWidth: 200,
53846
- floatingFilter: !1,
53847
- filter: !1,
53848
- resizable: !1,
53849
- cellRenderer: (ee) => ee.data?.nodeType === Te.FOLDER ? /* @__PURE__ */ h.jsx(
53850
- Kp,
53851
- {
53852
- name: ee.data.name,
53853
- iconSize: Ki
53854
- }
53855
- ) : /* @__PURE__ */ h.jsx(
53856
- qp,
53555
+ const o = z(e);
53556
+ Se(() => {
53557
+ o.current = e;
53558
+ }, [e]);
53559
+ const r = P(
53560
+ (l) => {
53561
+ if (!l.data || t(
53562
+ l.data,
53563
+ s,
53564
+ i
53565
+ )) return null;
53566
+ const d = l.data ? o.current?.(l.data) ?? [] : [];
53567
+ return d.length ? /* @__PURE__ */ h.jsx(
53568
+ jt,
53857
53569
  {
53858
- name: ee.data.name,
53859
- iconSize: Ki
53570
+ placement: "bottom-start",
53571
+ allowedPlacements: ["top-start", "top-end", "bottom-start"],
53572
+ items: d,
53573
+ className: L("sticky right-0", n),
53574
+ children: /* @__PURE__ */ h.jsx(
53575
+ He,
53576
+ {
53577
+ className: "text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary cursor-default",
53578
+ icon: /* @__PURE__ */ h.jsx(dr, { ...de })
53579
+ }
53580
+ )
53860
53581
  }
53861
- )
53582
+ ) : null;
53862
53583
  },
53863
- {
53864
- field: "action",
53865
- headerName: f,
53866
- width: 140,
53584
+ [s, i, n, t]
53585
+ );
53586
+ return { actionsColumnDef: W(
53587
+ () => ({
53588
+ colId: "__actions",
53589
+ headerName: "",
53590
+ width: 44,
53591
+ minWidth: 44,
53592
+ maxWidth: 44,
53867
53593
  suppressSizeToFit: !0,
53868
53594
  sortable: !1,
53869
- filter: !1,
53870
- floatingFilter: !1,
53871
- resizable: !1,
53872
- cellRenderer: (ee) => {
53873
- if (!ee.data) return null;
53874
- const ge = [
53875
- {
53876
- key: Dt.Replace,
53877
- label: C,
53878
- icon: /* @__PURE__ */ h.jsx($l, { size: 10, className: "text-accent-tertiary" })
53879
- },
53880
- {
53881
- key: Dt.Duplicate,
53882
- label: w,
53883
- icon: /* @__PURE__ */ h.jsx($l, { size: 10, className: "text-accent-secondary" })
53884
- },
53885
- {
53886
- key: Dt.Cancel,
53887
- label: b,
53888
- icon: /* @__PURE__ */ h.jsx($l, { size: 10, className: "text-error" })
53889
- }
53890
- ], Me = ge.find(
53891
- (pe) => pe.key === ee.data.action
53892
- ), ie = T === ee.data.path;
53893
- return /* @__PURE__ */ h.jsx("div", { className: "flex items-center h-full", children: /* @__PURE__ */ h.jsx(
53894
- jt,
53895
- {
53896
- trigger: [Nt.Click],
53897
- open: ie,
53898
- items: ge,
53899
- onItemClick: ({ key: pe }) => {
53900
- I((M) => {
53901
- const q = new Map(M);
53902
- return q.set(
53903
- ee.data.path,
53904
- pe
53905
- ), q;
53906
- }), O(void 0);
53907
- },
53908
- placement: "bottom-start",
53909
- matchReferenceWidth: !1,
53910
- allowedPlacements: ["bottom-start", "top-start"],
53911
- onOpenChange: (pe) => {
53912
- O(pe ? ee.data.path : void 0);
53913
- },
53914
- children: /* @__PURE__ */ h.jsxs("button", { type: "button", className: "flex items-center gap-2", children: [
53915
- /* @__PURE__ */ h.jsxs("span", { className: "flex items-center gap-2", children: [
53916
- Me?.icon,
53917
- Me?.label ?? C
53918
- ] }),
53919
- /* @__PURE__ */ h.jsx(
53920
- Js,
53921
- {
53922
- size: Ve.SM,
53923
- className: ue(
53924
- "text-secondary transition-transform",
53925
- ie && "rotate-180"
53926
- )
53927
- }
53928
- )
53929
- ] })
53930
- }
53931
- ) });
53932
- }
53933
- }
53934
- ], [
53935
- g,
53936
- f,
53937
- C,
53938
- w,
53939
- b,
53940
- T
53941
- ]), U = W(
53942
- () => [
53943
- {
53944
- id: ls.ReplaceAll,
53945
- name: x
53946
- },
53947
- {
53948
- id: ls.DuplicateAll,
53949
- name: y
53950
- },
53951
- {
53952
- id: ls.DecideForEach,
53953
- name: S,
53954
- content: D === ls.DecideForEach ? /* @__PURE__ */ h.jsx("div", { className: "mt-4", children: /* @__PURE__ */ h.jsx(
53955
- Kx,
53956
- {
53957
- columnDefs: H,
53958
- rowData: G,
53959
- getRowId: (ee) => ee.id,
53960
- wrapCustomCellRenderers: !1,
53961
- alternateOddRowColors: !1,
53962
- additionalGridOptions: {
53963
- domLayout: "autoHeight"
53964
- }
53965
- }
53966
- ) }) : void 0
53967
- }
53968
- ],
53969
- [
53970
- x,
53971
- y,
53972
- S,
53973
- D,
53974
- H,
53975
- G
53976
- ]
53977
- ), Q = P(() => {
53978
- F(Dt.Replace), k(ls.ReplaceAll), I(
53979
- new Map(
53980
- o.map((ee) => [
53981
- ee.path,
53982
- Dt.Replace
53983
- ])
53984
- )
53985
- );
53986
- }, [o]), se = P(() => {
53987
- Q(), t();
53988
- }, [Q, t]), Fe = P(() => {
53989
- if (Q(), m)
53990
- R === Dt.Replace ? s() : i();
53991
- else if (D === ls.ReplaceAll)
53992
- s();
53993
- else if (D === ls.DuplicateAll)
53994
- i();
53995
- else if (D === ls.DecideForEach && n) {
53996
- const ee = o.map(
53997
- (ge) => ({
53998
- file: ge,
53999
- action: E.get(ge.path) || Dt.Replace
54000
- })
54001
- );
54002
- n(ee);
54003
- }
54004
- }, [
54005
- Q,
54006
- m,
54007
- R,
54008
- s,
54009
- i,
54010
- D,
54011
- n,
54012
- o,
54013
- E
54014
- ]);
54015
- return /* @__PURE__ */ h.jsx(
54016
- wr,
54017
- {
54018
- open: e,
54019
- onClose: se,
54020
- size: m ? Ht.Sm : Ht.Md,
54021
- className: ue([!m && "w-[600px]"]),
54022
- header: A,
54023
- dividers: !1,
54024
- preventKeyboardOnOpen: !0,
54025
- footer: /* @__PURE__ */ h.jsxs("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
54026
- /* @__PURE__ */ h.jsx(bi, { onClick: se, label: p }),
54027
- /* @__PURE__ */ h.jsx(fi, { onClick: Fe, label: u })
54028
- ] }),
54029
- children: /* @__PURE__ */ h.jsxs("div", { className: "px-6 py-4", children: [
54030
- /* @__PURE__ */ h.jsx("p", { className: "text-secondary mb-4 break-words", children: B }),
54031
- m ? /* @__PURE__ */ h.jsx(
54032
- xh,
54033
- {
54034
- elementId: "single-file-conflict",
54035
- radioButtons: Y,
54036
- activeRadioButton: R,
54037
- orientation: tr.Column,
54038
- onChange: (ee) => F(ee)
54039
- }
54040
- ) : /* @__PURE__ */ h.jsx(
54041
- xh,
54042
- {
54043
- elementId: "multiple-files-conflict",
54044
- radioButtons: U,
54045
- activeRadioButton: D,
54046
- orientation: tr.Column,
54047
- onChange: (ee) => k(ee),
54048
- formItemChildrenClassName: "gap-3"
54049
- }
54050
- )
54051
- ] })
54052
- }
54053
- );
54054
- }, HV = ({
54055
- getContextMenuItems: e,
54056
- isRowDisabled: t,
54057
- allowedFileTypes: s,
54058
- maxSelectableFileSize: i,
54059
- buttonClassName: n
54060
- }) => {
54061
- const o = z(e);
54062
- Se(() => {
54063
- o.current = e;
54064
- }, [e]);
54065
- const r = P(
54066
- (l) => {
54067
- if (!l.data || t(
54068
- l.data,
54069
- s,
54070
- i
54071
- )) return null;
54072
- const d = l.data ? o.current?.(l.data) ?? [] : [];
54073
- return d.length ? /* @__PURE__ */ h.jsx(
54074
- jt,
54075
- {
54076
- placement: "bottom-start",
54077
- allowedPlacements: ["top-start", "top-end", "bottom-start"],
54078
- items: d,
54079
- className: L("sticky right-0", n),
54080
- children: /* @__PURE__ */ h.jsx(
54081
- He,
54082
- {
54083
- className: "text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary cursor-default",
54084
- icon: /* @__PURE__ */ h.jsx(dr, { ...de })
54085
- }
54086
- )
54087
- }
54088
- ) : null;
54089
- },
54090
- [s, i, n, t]
54091
- );
54092
- return { actionsColumnDef: W(
54093
- () => ({
54094
- colId: "__actions",
54095
- headerName: "",
54096
- width: 44,
54097
- minWidth: 44,
54098
- maxWidth: 44,
54099
- suppressSizeToFit: !0,
54100
- sortable: !1,
54101
- resizable: !1,
53595
+ resizable: !1,
54102
53596
  filter: !1,
54103
53597
  floatingFilter: !1,
54104
53598
  cellRenderer: r
54105
53599
  }),
54106
53600
  [r]
54107
53601
  ) };
54108
- }, BV = ({
53602
+ }, IV = ({
54109
53603
  onRename: e
54110
53604
  }) => {
54111
53605
  const [t, s] = N(Yo.Grid), i = P(
@@ -54125,7 +53619,7 @@ const hC = ({
54125
53619
  onTreeRename: n
54126
53620
  };
54127
53621
  };
54128
- function GV(e, t) {
53622
+ function kV(e, t) {
54129
53623
  const s = z(null), [i, n] = N(!1);
54130
53624
  return Se(() => {
54131
53625
  if (!s.current) return;
@@ -54137,7 +53631,7 @@ function GV(e, t) {
54137
53631
  }, [e, t]), { containerRef: s, isBelowBreakpoint: i };
54138
53632
  }
54139
53633
  var uh = {};
54140
- const VV = {
53634
+ const MV = {
54141
53635
  "application/1d-interleaved-parityfec": { source: "iana" },
54142
53636
  "application/3gpdash-qoe-report+xml": { source: "iana", charset: "UTF-8", compressible: !0 },
54143
53637
  "application/3gpp-ims+xml": { source: "iana", compressible: !0 },
@@ -56661,18 +56155,18 @@ const VV = {
56661
56155
  "x-shader/x-fragment": { compressible: !0 },
56662
56156
  "x-shader/x-vertex": { compressible: !0 }
56663
56157
  };
56664
- var hh, pC;
56665
- function jV() {
56666
- return pC || (pC = 1, hh = VV), hh;
56158
+ var hh, uC;
56159
+ function AV() {
56160
+ return uC || (uC = 1, hh = MV), hh;
56667
56161
  }
56668
- const zV = {}, WV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56162
+ const LV = {}, NV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56669
56163
  __proto__: null,
56670
- default: zV
56671
- }, Symbol.toStringTag, { value: "Module" })), _V = /* @__PURE__ */ mS(WV);
56672
- var ph, gC;
56673
- function UV() {
56674
- if (gC) return ph;
56675
- gC = 1;
56164
+ default: LV
56165
+ }, Symbol.toStringTag, { value: "Module" })), OV = /* @__PURE__ */ mS(NV);
56166
+ var ph, hC;
56167
+ function HV() {
56168
+ if (hC) return ph;
56169
+ hC = 1;
56676
56170
  var e = {
56677
56171
  "prs.": 100,
56678
56172
  "x-": 200,
@@ -56704,10 +56198,10 @@ function UV() {
56704
56198
  return c + d + u + p;
56705
56199
  }, ph;
56706
56200
  }
56707
- var fC;
56708
- function $V() {
56709
- return fC || (fC = 1, (function(e) {
56710
- var t = jV(), s = _V.extname, i = UV(), n = /^\s*([^;\s]*)(?:;|\s|$)/, o = /^text\//i;
56201
+ var pC;
56202
+ function BV() {
56203
+ return pC || (pC = 1, (function(e) {
56204
+ var t = AV(), s = OV.extname, i = HV(), n = /^\s*([^;\s]*)(?:;|\s|$)/, o = /^text\//i;
56711
56205
  e.charset = r, e.charsets = { lookup: r }, e.contentType = a, e.extension = l, e.extensions = /* @__PURE__ */ Object.create(null), e.lookup = c, e.types = /* @__PURE__ */ Object.create(null), e._extensionConflicts = [], d(e.extensions, e.types);
56712
56206
  function r(g) {
56713
56207
  if (!g || typeof g != "string")
@@ -56767,7 +56261,7 @@ function $V() {
56767
56261
  }
56768
56262
  })(uh)), uh;
56769
56263
  }
56770
- var mC = $V();
56264
+ var gC = BV();
56771
56265
  const mi = (e, t) => {
56772
56266
  if (!(!e || !e.length || !t))
56773
56267
  for (const s of e) {
@@ -56784,7 +56278,7 @@ const mi = (e, t) => {
56784
56278
  if (i.length <= 1) return e[0];
56785
56279
  const n = "/" + i.slice(0, i.length - 1).join("/");
56786
56280
  return mi(e, n) ?? e[0];
56787
- }, Qo = (e) => (e ?? "").toLowerCase(), qV = (e) => Qo(e).replace(/^\./, ""), KV = (e) => {
56281
+ }, Qo = (e) => (e ?? "").toLowerCase(), GV = (e) => Qo(e).replace(/^\./, ""), VV = (e) => {
56788
56282
  if (!e) return [];
56789
56283
  const t = [], s = (i) => {
56790
56284
  const n = i.items ?? [];
@@ -56792,11 +56286,11 @@ const mi = (e, t) => {
56792
56286
  t.push(o), o.nodeType === Te.FOLDER && s(o);
56793
56287
  };
56794
56288
  return s(e), t;
56795
- }, E0 = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), Pa = (e) => {
56289
+ }, m0 = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), Pa = (e) => {
56796
56290
  if (!e) return "0 bytes";
56797
56291
  const t = 1024, s = t * 1024;
56798
56292
  return e >= s ? `${(e / s).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
56799
- }, YV = (e, t = "en-US", s = {
56293
+ }, jV = (e, t = "en-US", s = {
56800
56294
  year: "numeric",
56801
56295
  month: "short",
56802
56296
  day: "2-digit"
@@ -56808,7 +56302,7 @@ const mi = (e, t) => {
56808
56302
  return e;
56809
56303
  }
56810
56304
  };
56811
- function vf(e, t, s) {
56305
+ function ff(e, t, s) {
56812
56306
  if (!e || e.includes("*/*"))
56813
56307
  return !0;
56814
56308
  const i = t.toLowerCase(), n = s && s.includes(".") ? `.${s.split(".").at(-1).toLowerCase()}` : void 0;
@@ -56823,39 +56317,39 @@ function vf(e, t, s) {
56823
56317
  return i === r;
56824
56318
  });
56825
56319
  }
56826
- const ZV = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : QV(t).flat().map((s) => `.${s}`)).flat().join(", ") || "", QV = (e) => {
56320
+ const zV = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : WV(t).flat().map((s) => `.${s}`)).flat().join(", ") || "", WV = (e) => {
56827
56321
  const [t, s] = e.split("/");
56828
- return t === "*" ? ["all"] : s === "*" ? Object.entries(mC.extensions).reduce((i, [n, o]) => {
56322
+ return t === "*" ? ["all"] : s === "*" ? Object.entries(gC.extensions).reduce((i, [n, o]) => {
56829
56323
  const [r] = n.split("/");
56830
56324
  return r === t && i.push(...o), i;
56831
- }, []) : mC.extensions[e] || [];
56832
- }, Ad = (e) => {
56325
+ }, []) : gC.extensions[e] || [];
56326
+ }, Md = (e) => {
56833
56327
  if (!e) return;
56834
56328
  const t = e.flags.replace(/[gy]/g, "");
56835
56329
  return new RegExp(e.source, t);
56836
56330
  };
56837
- function Cf(e, t, s) {
56838
- if (t && Ad(t)?.test(e.name))
56331
+ function mf(e, t, s) {
56332
+ if (t && Md(t)?.test(e.name))
56839
56333
  return s ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
56840
56334
  }
56841
- const XV = (e) => {
56335
+ const _V = (e) => {
56842
56336
  const t = e.lastIndexOf("/");
56843
56337
  return t >= 0 ? {
56844
56338
  parent: e.slice(0, t),
56845
56339
  name: e.slice(t + 1)
56846
56340
  } : { parent: "", name: e };
56847
- }, JV = (e, t, s) => {
56848
- const i = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || vf(t, e.contentType, e.name);
56341
+ }, UV = (e, t, s) => {
56342
+ const i = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || ff(t, e.contentType, e.name);
56849
56343
  return i && n;
56850
- }, ej = (e, t, s, i, n) => {
56344
+ }, $V = (e, t, s, i, n) => {
56851
56345
  if (e.nodeType === Te.FOLDER) return;
56852
56346
  const o = !e.contentLength || s == null || e.contentLength <= s;
56853
- if (!(!e.contentType || vf(t, e.contentType, e.name)))
56854
- return i ?? (t?.length ? `Unsupported file type. Supported types: ${ZV(t)}.` : "Unsupported file type.");
56347
+ if (!(!e.contentType || ff(t, e.contentType, e.name)))
56348
+ return i ?? (t?.length ? `Unsupported file type. Supported types: ${zV(t)}.` : "Unsupported file type.");
56855
56349
  if (!o)
56856
56350
  return n ?? `File is too large. Maximum size: ${Pa(s)}.`;
56857
- }, tj = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, qr = (e) => {
56858
- const t = `${dC} `, s = new RegExp(`^${dC} (\\d+)$`), i = new Set(
56351
+ }, qV = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, qr = (e) => {
56352
+ const t = `${lC} `, s = new RegExp(`^${lC} (\\d+)$`), i = new Set(
56859
56353
  e.map((a) => a.name.toLowerCase())
56860
56354
  ), n = e.map((a) => {
56861
56355
  const l = a.name.match(s);
@@ -56865,7 +56359,7 @@ const XV = (e) => {
56865
56359
  for (; i.has(o.toLowerCase()); )
56866
56360
  r++, o = `${t}${r}`;
56867
56361
  return o;
56868
- }, sj = (e) => {
56362
+ }, KV = (e) => {
56869
56363
  const [t, s] = N(e?.showHiddenFiles ?? !1), i = !!e?.onShowHiddenFilesChange, n = i ? e.showHiddenFiles ?? !1 : t, o = P(
56870
56364
  (a) => {
56871
56365
  i ? e?.onShowHiddenFilesChange?.(a) : s(a);
@@ -56880,7 +56374,7 @@ const XV = (e) => {
56880
56374
  toggleHiddenFilesVisibility: r,
56881
56375
  setAreHiddenFilesVisible: o
56882
56376
  };
56883
- }, ij = (e) => {
56377
+ }, YV = (e) => {
56884
56378
  const [t, s] = N(
56885
56379
  e?.collapsed ?? !1
56886
56380
  ), i = !!e?.onCollapseChange, n = i ? e.collapsed ?? !1 : t, o = P(
@@ -56897,7 +56391,7 @@ const XV = (e) => {
56897
56391
  toggleTreeCollapse: r,
56898
56392
  setIsTreeCollapsed: o
56899
56393
  };
56900
- }, vC = (e, t, s) => {
56394
+ }, fC = (e, t, s) => {
56901
56395
  if (!t.has(e))
56902
56396
  return e;
56903
56397
  const i = s === Te.FOLDER ? (n, o) => `${n} (${o})` : (n, o) => {
@@ -56908,7 +56402,7 @@ const XV = (e) => {
56908
56402
  const o = i(e, n);
56909
56403
  if (!t.has(o)) return o;
56910
56404
  }
56911
- }, gh = (e) => e.name, D0 = ({
56405
+ }, gh = (e) => e.name, v0 = ({
56912
56406
  getDestinationFiles: e,
56913
56407
  onResolve: t
56914
56408
  }) => {
@@ -56929,7 +56423,7 @@ const XV = (e) => {
56929
56423
  (b, x, y, S) => {
56930
56424
  const R = e(b), F = new Set(R.map(gh));
56931
56425
  return x.map((D) => {
56932
- const k = D.name, E = F.has(k), I = y && E ? k : vC(k, F, D.nodeType);
56426
+ const k = D.name, E = F.has(k), I = y && E ? k : fC(k, F, D.nodeType);
56933
56427
  return (!y || !E) && F.add(I), {
56934
56428
  sourceUrl: D.path,
56935
56429
  destinationUrl: `${b}/${I}`,
@@ -56944,7 +56438,7 @@ const XV = (e) => {
56944
56438
  (b, x, y, S) => {
56945
56439
  const R = e(b), F = new Set(R.map(gh));
56946
56440
  return x.filter((k) => y.get(k.path) !== Dt.Cancel).map((k) => {
56947
- const E = y.get(k.path), I = F.has(k.name), T = E === Dt.Replace && I, O = T ? k.name : vC(k.name, F, k.nodeType);
56441
+ const E = y.get(k.path), I = F.has(k.name), T = E === Dt.Replace && I, O = T ? k.name : fC(k.name, F, k.nodeType);
56948
56442
  return T || F.add(O), {
56949
56443
  sourceUrl: k.path,
56950
56444
  destinationUrl: `${b}/${O}`,
@@ -57048,7 +56542,7 @@ const XV = (e) => {
57048
56542
  handleCancelAll: C,
57049
56543
  handleDecideForEach: w
57050
56544
  };
57051
- }, nj = ({
56545
+ }, ZV = ({
57052
56546
  getDestinationFiles: e,
57053
56547
  onCopyFiles: t,
57054
56548
  onMoveToFiles: s,
@@ -57070,7 +56564,7 @@ const XV = (e) => {
57070
56564
  handleDuplicateAll: I,
57071
56565
  handleCancelAll: T,
57072
56566
  handleDecideForEach: O
57073
- } = D0({
56567
+ } = v0({
57074
56568
  getDestinationFiles: e,
57075
56569
  onResolve: (ie, pe) => {
57076
56570
  ie?.length && (w?.type === Pt.Copy ? (t?.(ie, pe), i?.()) : w?.type === Pt.Move && w.sourceFolder && (s?.(
@@ -57195,7 +56689,7 @@ const XV = (e) => {
57195
56689
  handleConflictDecideForEach: H,
57196
56690
  sourceFolder: v
57197
56691
  };
57198
- }, oj = ({
56692
+ }, QV = ({
57199
56693
  path: e,
57200
56694
  defaultPath: t,
57201
56695
  onPathChange: s,
@@ -57219,7 +56713,7 @@ const XV = (e) => {
57219
56713
  setCurrentPath: l,
57220
56714
  handlePathChange: c
57221
56715
  };
57222
- }, rj = ({
56716
+ }, XV = ({
57223
56717
  onDeleteFiles: e,
57224
56718
  onDeleteSuccess: t
57225
56719
  }) => {
@@ -57253,7 +56747,7 @@ const XV = (e) => {
57253
56747
  closeDeleteConfirmation: c,
57254
56748
  confirmDelete: d
57255
56749
  };
57256
- }, aj = ({
56750
+ }, JV = ({
57257
56751
  onDownloadFiles: e,
57258
56752
  customDownloadItemsAction: t,
57259
56753
  onDownloadSuccess: s
@@ -57264,7 +56758,7 @@ const XV = (e) => {
57264
56758
  },
57265
56759
  [e, s, t]
57266
56760
  )
57267
- }), lj = (e) => "dataTransfer" in e && e.dataTransfer !== null, cj = ({
56761
+ }), ej = (e) => "dataTransfer" in e && e.dataTransfer !== null, tj = ({
57268
56762
  onUploadFiles: e,
57269
56763
  onValidateUpload: t,
57270
56764
  maxFileSize: s,
@@ -57277,7 +56771,7 @@ const XV = (e) => {
57277
56771
  } = {}) => {
57278
56772
  const [c, d] = N(!1), [u, p] = N(!1), [g, f] = N(), m = z(null), v = z(""), C = z([]), w = W(() => !!l?.permissions?.includes(br.WRITE), [l]), [b, x] = N(/* @__PURE__ */ new Map()), [y, S] = N(null), R = P(
57279
56773
  (K) => !i || i.includes("*/*") ? K : K.filter(
57280
- ({ fileContent: fe, name: me }) => vf(i, fe.type, me)
56774
+ ({ fileContent: fe, name: me }) => ff(i, fe.type, me)
57281
56775
  ),
57282
56776
  [i]
57283
56777
  ), F = P(() => {
@@ -57293,7 +56787,7 @@ const XV = (e) => {
57293
56787
  handleDuplicateAll: V,
57294
56788
  handleCancelAll: _,
57295
56789
  handleDecideForEach: B
57296
- } = D0({
56790
+ } = v0({
57297
56791
  getDestinationFiles: () => C.current,
57298
56792
  onResolve: (K, fe) => {
57299
56793
  if (!a || !w) {
@@ -57329,7 +56823,7 @@ const XV = (e) => {
57329
56823
  if (!a || !w) return;
57330
56824
  let K = 0;
57331
56825
  const fe = (Be) => {
57332
- lj(Be) && Be.dataTransfer.types.includes(MV) && (K++, p(!0));
56826
+ ej(Be) && Be.dataTransfer.types.includes(RV) && (K++, p(!0));
57333
56827
  }, me = () => {
57334
56828
  K--, K === 0 && p(!1);
57335
56829
  }, oe = () => {
@@ -57602,34 +57096,34 @@ const XV = (e) => {
57602
57096
  handleUploadConflictCancel: se,
57603
57097
  handleUploadConflictDecideForEach: Fe
57604
57098
  };
57605
- }, P0 = Ia(void 0), T0 = {
57099
+ }, C0 = Ia(void 0), w0 = {
57606
57100
  hiddenItemWarning: `${Je.Warning}__A dot at the start of the name will make the item hidden`
57607
- }, I0 = {
57101
+ }, b0 = {
57608
57102
  consecutiveDotsError: "Name cannot contain consecutive dots"
57609
- }, dj = {
57103
+ }, sj = {
57610
57104
  emptyName: "Name cannot be empty",
57611
57105
  duplicateName: "An item with this name already exists",
57612
- hiddenItemWarning: T0.hiddenItemWarning,
57613
- consecutiveDotsError: I0.consecutiveDotsError
57106
+ hiddenItemWarning: w0.hiddenItemWarning,
57107
+ consecutiveDotsError: b0.consecutiveDotsError
57614
57108
  };
57615
- function uj(e) {
57109
+ function ij(e) {
57616
57110
  let t = e.length;
57617
57111
  for (; t > 0 && e[t - 1] === "/"; ) t--;
57618
57112
  return e.slice(0, t);
57619
57113
  }
57620
- function hj(e, t) {
57621
- const s = uj(e), i = s.lastIndexOf("/");
57114
+ function nj(e, t) {
57115
+ const s = ij(e), i = s.lastIndexOf("/");
57622
57116
  return i === -1 ? t : s.slice(0, i + 1) + t;
57623
57117
  }
57624
- function pj(e) {
57118
+ function oj(e) {
57625
57119
  const t = e.lastIndexOf(".");
57626
57120
  return t === -1 || t === 0 ? e : e.substring(0, t);
57627
57121
  }
57628
- function CC(e) {
57122
+ function mC(e) {
57629
57123
  const t = e.lastIndexOf(".");
57630
57124
  return t === -1 || t === 0 ? "" : e.substring(t);
57631
57125
  }
57632
- const gj = ({
57126
+ const rj = ({
57633
57127
  items: e,
57634
57128
  onRenameValidate: t,
57635
57129
  validationMessages: s,
@@ -57637,7 +57131,7 @@ const gj = ({
57637
57131
  }) => {
57638
57132
  const [n, o] = N(), r = W(
57639
57133
  () => ({
57640
- ...dj,
57134
+ ...sj,
57641
57135
  ...s
57642
57136
  }),
57643
57137
  [s]
@@ -57658,14 +57152,14 @@ const gj = ({
57658
57152
  const f = n.nodeType === Te.ITEM;
57659
57153
  let m = g.trim();
57660
57154
  if (f) {
57661
- const b = CC(n.name);
57155
+ const b = mC(n.name);
57662
57156
  b && !m.endsWith(b) && (m = m + b);
57663
57157
  }
57664
57158
  if (m === n.name) {
57665
57159
  o(void 0);
57666
57160
  return;
57667
57161
  }
57668
- const v = hj(
57162
+ const v = nj(
57669
57163
  n.path,
57670
57164
  m
57671
57165
  ), C = n.parentPath;
@@ -57693,7 +57187,7 @@ const gj = ({
57693
57187
  const v = f.nodeType === Te.ITEM;
57694
57188
  let C = m;
57695
57189
  if (v) {
57696
- const b = CC(f.name);
57190
+ const b = mC(f.name);
57697
57191
  b && !C.endsWith(b) && (C = C + b);
57698
57192
  }
57699
57193
  const w = f.parentPath;
@@ -57712,7 +57206,7 @@ const gj = ({
57712
57206
  return null;
57713
57207
  },
57714
57208
  [t, r, e]
57715
- ), p = P((g) => g.nodeType === Te.ITEM ? pj(g.name) : g.name, []);
57209
+ ), p = P((g) => g.nodeType === Te.ITEM ? oj(g.name) : g.name, []);
57716
57210
  return {
57717
57211
  renamedPath: a,
57718
57212
  renamedItem: n,
@@ -57722,7 +57216,7 @@ const gj = ({
57722
57216
  renameValidateHandler: u,
57723
57217
  getDisplayName: p
57724
57218
  };
57725
- }, k0 = (e) => {
57219
+ }, x0 = (e) => {
57726
57220
  const [t, s] = N(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = W(
57727
57221
  () => !!e?.onExpandedPathsChange,
57728
57222
  [e?.onExpandedPathsChange]
@@ -57768,7 +57262,7 @@ const gj = ({
57768
57262
  collapsePath: c,
57769
57263
  isControlled: i
57770
57264
  };
57771
- }, fj = ({
57265
+ }, aj = ({
57772
57266
  newActions: e,
57773
57267
  currentFolder: t,
57774
57268
  onUploadFiles: s,
@@ -57826,12 +57320,12 @@ const gj = ({
57826
57320
  isNewButtonVisible: l,
57827
57321
  isNewButtonDisabled: c
57828
57322
  };
57829
- }, mj = {
57323
+ }, lj = {
57830
57324
  emptyName: "Folder name cannot be empty",
57831
57325
  duplicateName: "A folder with this name already exists",
57832
- hiddenItemWarning: T0.hiddenItemWarning,
57833
- consecutiveDotsError: I0.consecutiveDotsError
57834
- }, vj = ({
57326
+ hiddenItemWarning: w0.hiddenItemWarning,
57327
+ consecutiveDotsError: b0.consecutiveDotsError
57328
+ }, cj = ({
57835
57329
  currentFolder: e,
57836
57330
  onCreateFolder: t,
57837
57331
  onValidateFolderName: s,
@@ -57844,7 +57338,7 @@ const gj = ({
57844
57338
  null
57845
57339
  ), [m, v] = N(""), C = z(e?.path), w = W(
57846
57340
  () => ({
57847
- ...mj,
57341
+ ...lj,
57848
57342
  ...i
57849
57343
  }),
57850
57344
  [i]
@@ -57967,7 +57461,7 @@ const gj = ({
57967
57461
  saveFolderCreation: E,
57968
57462
  validateFolderName: k
57969
57463
  };
57970
- }, Cj = ({
57464
+ }, dj = ({
57971
57465
  additionalButtons: e,
57972
57466
  expandedPathsLength: t,
57973
57467
  collapseAll: s
@@ -57995,7 +57489,7 @@ const gj = ({
57995
57489
  ] });
57996
57490
  }, [e, i, s])
57997
57491
  };
57998
- }, wj = ({ onGetInfo: e }) => {
57492
+ }, uj = ({ onGetInfo: e }) => {
57999
57493
  const [t, s] = N(!1), [i, n] = N(void 0), o = P(
58000
57494
  async (a) => {
58001
57495
  n(a), s(!0), e && await e(a);
@@ -58011,7 +57505,7 @@ const gj = ({
58011
57505
  closeMetadataPopup: r
58012
57506
  };
58013
57507
  };
58014
- function bj(e) {
57508
+ function hj(e) {
58015
57509
  const t = [];
58016
57510
  function s(i) {
58017
57511
  for (const n of i)
@@ -58019,11 +57513,11 @@ function bj(e) {
58019
57513
  }
58020
57514
  return s(e), t;
58021
57515
  }
58022
- function wC(e, t) {
57516
+ function vC(e, t) {
58023
57517
  const s = Qo(t);
58024
57518
  return e.filter((i) => Qo(i.name).includes(s));
58025
57519
  }
58026
- function xj({
57520
+ function pj({
58027
57521
  onSearchFiles: e,
58028
57522
  clearSearchResults: t,
58029
57523
  currentPath: s,
@@ -58072,12 +57566,12 @@ function xj({
58072
57566
  const y = W(() => {
58073
57567
  if (e) {
58074
57568
  const R = n ? g.current : i;
58075
- return !v || R.length === 0 ? R : wC(R, v);
57569
+ return !v || R.length === 0 ? R : vC(R, v);
58076
57570
  }
58077
57571
  if (!v || !a.length)
58078
57572
  return [];
58079
- const S = bj(a);
58080
- return wC(S, v);
57573
+ const S = hj(a);
57574
+ return vC(S, v);
58081
57575
  }, [
58082
57576
  e,
58083
57577
  i,
@@ -58096,7 +57590,7 @@ function xj({
58096
57590
  searchResultsRows: y
58097
57591
  };
58098
57592
  }
58099
- function yj({
57593
+ function gj({
58100
57594
  selectedPaths: e,
58101
57595
  defaultSelectedPaths: t,
58102
57596
  onSelectedPathsChange: s
@@ -58120,11 +57614,11 @@ function yj({
58120
57614
  isControlled: i
58121
57615
  };
58122
57616
  }
58123
- const Sj = ':;,=/{}%&\\"', M0 = `(\r
57617
+ const fj = ':;,=/{}%&\\"', y0 = `(\r
58124
57618
  |
58125
- |\r| )|[\0-]`, Rj = `[${Sj.replace(/\\/g, "\\\\")}]`, Fj = new RegExp(
58126
- `${Rj}|${M0}`
58127
- ), JW = new RegExp(M0), Ej = ({
57619
+ |\r| )|[\0-]`, mj = `[${fj.replace(/\\/g, "\\\\")}]`, vj = new RegExp(
57620
+ `${mj}|${y0}`
57621
+ ), ZW = new RegExp(y0), Cj = ({
58128
57622
  managerLabel: e,
58129
57623
  children: t,
58130
57624
  className: s,
@@ -58157,7 +57651,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58157
57651
  onDownloadFiles: T,
58158
57652
  onRenameValidate: O,
58159
57653
  renameValidationMessages: A,
58160
- forbiddenSymbolsRegExp: V = Fj,
57654
+ forbiddenSymbolsRegExp: V = vj,
58161
57655
  forbiddenSymbolsTooltip: _,
58162
57656
  onUploadFiles: B,
58163
57657
  onValidateUpload: Y,
@@ -58215,14 +57709,14 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58215
57709
  selectedPaths: ii,
58216
57710
  clearSelection: ni,
58217
57711
  setSelectedPaths: fn
58218
- } = yj({
57712
+ } = gj({
58219
57713
  selectedPaths: l,
58220
57714
  defaultSelectedPaths: c,
58221
57715
  onSelectedPathsChange: d
58222
57716
  }), Xa = z(!1), Ti = z(null), Hd = P(
58223
57717
  (xe, Xe, nt) => {
58224
57718
  if (si) {
58225
- const { parent: ri, name: cu } = XV(Xe);
57719
+ const { parent: ri, name: cu } = _V(Xe);
58226
57720
  Ti.current = {
58227
57721
  fileNames: /* @__PURE__ */ new Set([cu]),
58228
57722
  destinationFolder: ri
@@ -58269,7 +57763,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58269
57763
  fn(Xe);
58270
57764
  }
58271
57765
  }, [i, ii, fn]);
58272
- const { currentPath: bt, setCurrentPath: Jt, handlePathChange: oi } = oj({
57766
+ const { currentPath: bt, setCurrentPath: Jt, handlePathChange: oi } = QV({
58273
57767
  path: o,
58274
57768
  defaultPath: r,
58275
57769
  onPathChange: S,
@@ -58286,10 +57780,10 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58286
57780
  x?.setDestinationFolderPath ? x.setDestinationFolderPath(xe) : jd(xe);
58287
57781
  },
58288
57782
  [x]
58289
- ), { areHiddenFilesVisible: mn, toggleHiddenFilesVisibility: el } = sj({
57783
+ ), { areHiddenFilesVisible: mn, toggleHiddenFilesVisibility: el } = KV({
58290
57784
  showHiddenFiles: u,
58291
57785
  onShowHiddenFilesChange: p
58292
- }), { isTreeCollapsed: tl, toggleTreeCollapse: fo, setIsTreeCollapsed: zd } = ij({
57786
+ }), { isTreeCollapsed: tl, toggleTreeCollapse: fo, setIsTreeCollapsed: zd } = YV({
58293
57787
  collapsed: g?.collapsed,
58294
57788
  onCollapseChange: g?.onCollapseChange
58295
57789
  }), {
@@ -58300,7 +57794,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58300
57794
  renameCancelHandler: $d,
58301
57795
  renameValidateHandler: qd,
58302
57796
  getDisplayName: Rr
58303
- } = gj({
57797
+ } = rj({
58304
57798
  items: i,
58305
57799
  onRenameValidate: O,
58306
57800
  validationMessages: A,
@@ -58313,7 +57807,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58313
57807
  handleSearchChange: Dr,
58314
57808
  handleSearchClear: ft,
58315
57809
  searchResultsRows: il
58316
- } = xj({
57810
+ } = pj({
58317
57811
  onSearchFiles: Pe,
58318
57812
  clearSearchResults: me,
58319
57813
  currentPath: bt,
@@ -58327,7 +57821,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58327
57821
  () => Zo(i, bt) ?? i[0],
58328
57822
  [i, bt]
58329
57823
  ), hs = P(
58330
- (xe, Xe) => !Xe || !xe ? !1 : tj(xe.path) > Xe,
57824
+ (xe, Xe) => !Xe || !xe ? !1 : qV(xe.path) > Xe,
58331
57825
  []
58332
57826
  ), as = P(() => {
58333
57827
  xr?.();
@@ -58350,7 +57844,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58350
57844
  handleConflictCancel: Xd,
58351
57845
  handleConflictDecideForEach: Jd,
58352
57846
  sourceFolder: eu
58353
- } = nj({
57847
+ } = ZV({
58354
57848
  getDestinationFiles: (xe) => Zo(i, xe)?.items ?? [],
58355
57849
  onCopyFiles: k,
58356
57850
  onMoveToFiles: E,
@@ -58369,10 +57863,10 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58369
57863
  openDeleteConfirmation: pl,
58370
57864
  closeDeleteConfirmation: gl,
58371
57865
  confirmDelete: wo
58372
- } = rj({
57866
+ } = XV({
58373
57867
  onDeleteFiles: I,
58374
57868
  onDeleteSuccess: ni
58375
- }), { handleDownloadFiles: Ai } = aj({
57869
+ }), { handleDownloadFiles: Ai } = JV({
58376
57870
  onDownloadFiles: T,
58377
57871
  customDownloadItemsAction: rt,
58378
57872
  onDownloadSuccess: ni
@@ -58395,7 +57889,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58395
57889
  handleUploadConflictDuplicate: ru,
58396
57890
  handleUploadConflictCancel: au,
58397
57891
  handleUploadConflictDecideForEach: Lr
58398
- } = cj({
57892
+ } = tj({
58399
57893
  onUploadFiles: Bd,
58400
57894
  onValidateUpload: Y,
58401
57895
  maxFileSize: U,
@@ -58447,7 +57941,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58447
57941
  cancelFolderCreation: J0,
58448
57942
  saveFolderCreation: ey,
58449
57943
  validateFolderName: ty
58450
- } = vj({
57944
+ } = cj({
58451
57945
  currentFolder: lt,
58452
57946
  onCreateFolder: Hd,
58453
57947
  onValidateFolderName: ee,
@@ -58466,7 +57960,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58466
57960
  It,
58467
57961
  hs,
58468
57962
  as
58469
- ]), { newActions: sy, isNewButtonVisible: iy, isNewButtonDisabled: ny } = fj(
57963
+ ]), { newActions: sy, isNewButtonVisible: iy, isNewButtonDisabled: ny } = aj(
58470
57964
  {
58471
57965
  newActions: w?.newActions,
58472
57966
  currentFolder: lt,
@@ -58512,10 +58006,10 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58512
58006
  }), Or;
58513
58007
  }
58514
58008
  const xe = Qo(Fr).trim(), Xe = lt?.items ?? [];
58515
- let nt = xe ? KV(lt) : Xe;
58009
+ let nt = xe ? VV(lt) : Xe;
58516
58010
  Sr || (nt = nt.filter((Ye) => Ye.nodeType !== Te.ITEM)), Ii || (nt = nt.filter(
58517
58011
  (Ye) => Ye.nodeType !== Te.FOLDER
58518
- )), mn || (nt = nt.filter((Ye) => xe ? !Ye.path.split("/").filter(Boolean).some((ct) => ct.startsWith(".")) : !E0(Ye)));
58012
+ )), mn || (nt = nt.filter((Ye) => xe ? !Ye.path.split("/").filter(Boolean).some((ct) => ct.startsWith(".")) : !m0(Ye)));
58519
58013
  const ri = nt.map((Ye) => ({
58520
58014
  ...Ye,
58521
58015
  id: Ye.id ?? Ye.path,
@@ -58546,7 +58040,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58546
58040
  const cu = xe.split(/\s+/).filter(Boolean);
58547
58041
  return ri.filter((Ye) => {
58548
58042
  if (Ye.isTemporary) return !0;
58549
- const Or = Qo(Ye.name), ct = Qo(Ye.author), If = qV(Ye.extension);
58043
+ const Or = Qo(Ye.name), ct = Qo(Ye.author), If = GV(Ye.extension);
58550
58044
  return cu.every(
58551
58045
  (Hr) => Or.includes(Hr) || ct.includes(Hr) || If.includes(Hr)
58552
58046
  );
@@ -58575,7 +58069,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58575
58069
  if (!Xe?.items) return;
58576
58070
  const nt = /* @__PURE__ */ new Set();
58577
58071
  for (const ri of Xe.items)
58578
- xe.fileNames.has(ri.name) && JV(ri, oe, ce) && nt.add(ri.path);
58072
+ xe.fileNames.has(ri.name) && UV(ri, oe, ce) && nt.add(ri.path);
58579
58073
  nt.size > 0 && (fn(nt), Ti.current = null);
58580
58074
  }, [
58581
58075
  i,
@@ -58601,10 +58095,10 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58601
58095
  xe.nodeType === Te.FOLDER ? oi(xe.path) : R?.(xe);
58602
58096
  },
58603
58097
  [oi, R]
58604
- ), { expandedPaths: xo, setExpandedPaths: Nr, collapseAll: cy } = k0({
58098
+ ), { expandedPaths: xo, setExpandedPaths: Nr, collapseAll: cy } = x0({
58605
58099
  expandedPaths: g?.expandedPaths,
58606
58100
  onExpandedPathsChange: g?.onExpandedPathsChange
58607
- }), { additionalButtons: dy } = Cj({
58101
+ }), { additionalButtons: dy } = dj({
58608
58102
  collapseAll: cy,
58609
58103
  expandedPathsLength: xo.size,
58610
58104
  additionalButtons: g?.additionalButtons
@@ -58687,11 +58181,11 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58687
58181
  selectedFileForMetadata: my,
58688
58182
  openMetadataPopup: vy,
58689
58183
  closeMetadataPopup: Tf
58690
- } = wj({ onGetInfo: ie }), Cy = P(() => {
58184
+ } = uj({ onGetInfo: ie }), Cy = P(() => {
58691
58185
  Tf(), Me?.clearMetadata?.();
58692
58186
  }, [Tf, Me]), wy = W(() => {
58693
58187
  if (V)
58694
- return Ad(V);
58188
+ return Md(V);
58695
58189
  }, [V]), by = {
58696
58190
  managerLabel: e,
58697
58191
  className: s,
@@ -58852,8 +58346,8 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58852
58346
  maxNewFolderDepth: It,
58853
58347
  onNewFolderDepthExceeded: xr
58854
58348
  };
58855
- return /* @__PURE__ */ h.jsx(P0.Provider, { value: by, children: t });
58856
- }, Dj = ({
58349
+ return /* @__PURE__ */ h.jsx(C0.Provider, { value: by, children: t });
58350
+ }, wj = ({
58857
58351
  disabledGridRowIds: e,
58858
58352
  gridRows: t,
58859
58353
  getDisabledTooltip: s,
@@ -58934,7 +58428,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
58934
58428
  ] }),
58935
58429
  document.body
58936
58430
  ) });
58937
- }, Pj = ({
58431
+ }, bj = ({
58938
58432
  onClose: e,
58939
58433
  onConfirm: t,
58940
58434
  onFolderPopupPathChange: s,
@@ -59075,7 +58569,7 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
59075
58569
  children: /* @__PURE__ */ h.jsxs("div", { className: "bg-layer-2 h-full flex flex-col", children: [
59076
58570
  x && /* @__PURE__ */ h.jsx("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ h.jsx(T2, { ...x }) }),
59077
58571
  /* @__PURE__ */ h.jsx("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ h.jsx(
59078
- oz,
58572
+ Qj,
59079
58573
  {
59080
58574
  ...S,
59081
58575
  gridClassName: "size-full",
@@ -59107,9 +58601,9 @@ const Sj = ':;,=/{}%&\\"', M0 = `(\r
59107
58601
  ] })
59108
58602
  }
59109
58603
  );
59110
- }, Tj = 12, Ij = 8;
58604
+ }, xj = 12, yj = 8;
59111
58605
  var No = /* @__PURE__ */ ((e) => (e.Normal = "normal", e.Reverse = "reverse", e))(No || {});
59112
- function kj({
58606
+ function Sj({
59113
58607
  actions: e,
59114
58608
  direction: t = No.Normal,
59115
58609
  moreButtonWidth: s = Cs,
@@ -59175,17 +58669,17 @@ function kj({
59175
58669
  }
59176
58670
  };
59177
58671
  }
59178
- const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCount: i }) => {
58672
+ const Rj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCount: i }) => {
59179
58673
  const n = Ha(), {
59180
58674
  refs: { containerRef: o, leftSectionRef: r, measureRef: a },
59181
58675
  visibleActions: l,
59182
58676
  hiddenActions: c
59183
- } = kj({
58677
+ } = Sj({
59184
58678
  actions: s,
59185
58679
  direction: No.Reverse,
59186
58680
  dependencies: [n],
59187
- actionsGap: Tj,
59188
- containerPadding: Ij
58681
+ actionsGap: xj,
58682
+ containerPadding: yj
59189
58683
  }), d = e(i);
59190
58684
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
59191
58685
  /* @__PURE__ */ h.jsx(
@@ -59263,7 +58757,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59263
58757
  }
59264
58758
  )
59265
58759
  ] });
59266
- }, Aj = ({
58760
+ }, Fj = ({
59267
58761
  open: e,
59268
58762
  itemsToDelete: t,
59269
58763
  onClose: s,
@@ -59311,7 +58805,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59311
58805
  children: p
59312
58806
  }
59313
58807
  );
59314
- }, bC = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Lj = "w-full flex items-center justify-between gap-4", Nj = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded", Oj = "w-[260px]", Hj = ({
58808
+ }, CC = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Ej = "w-full flex items-center justify-between gap-4", Dj = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded", Pj = "w-[260px]", Tj = ({
59315
58809
  ariaLabel: e = "Breadcrumb",
59316
58810
  labelClassName: t,
59317
58811
  onItemClick: s,
@@ -59334,11 +58828,11 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59334
58828
  }) => {
59335
58829
  const b = W(() => {
59336
58830
  if (!i) return;
59337
- let D = bC(i);
58831
+ let D = CC(i);
59338
58832
  const k = [...D];
59339
58833
  let E = 0;
59340
58834
  if (a) {
59341
- const T = bC(a);
58835
+ const T = CC(a);
59342
58836
  if (T.length) {
59343
58837
  const O = D.findIndex(
59344
58838
  (A, V) => T.every((_, B) => D[V + B] === _)
@@ -59403,7 +58897,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59403
58897
  y(!1), m?.("");
59404
58898
  }
59405
58899
  }
59406
- ) : /* @__PURE__ */ h.jsx("div", { className: Nj, children: /* @__PURE__ */ h.jsx(
58900
+ ) : /* @__PURE__ */ h.jsx("div", { className: Dj, children: /* @__PURE__ */ h.jsx(
59407
58901
  Jx,
59408
58902
  {
59409
58903
  pathItems: b,
@@ -59424,7 +58918,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59424
58918
  "div",
59425
58919
  {
59426
58920
  className: L(
59427
- Lj,
58921
+ Ej,
59428
58922
  {
59429
58923
  "gap-3": w
59430
58924
  },
@@ -59436,7 +58930,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59436
58930
  d && /* @__PURE__ */ h.jsx(
59437
58931
  "div",
59438
58932
  {
59439
- className: L(Oj, {
58933
+ className: L(Pj, {
59440
58934
  "w-[40px]": w && !x,
59441
58935
  "w-full": w && x
59442
58936
  }),
@@ -59462,7 +58956,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59462
58956
  ]
59463
58957
  }
59464
58958
  );
59465
- }, Bj = ({
58959
+ }, Ij = ({
59466
58960
  tabs: e,
59467
58961
  activeTab: t,
59468
58962
  onTabChange: s,
@@ -59519,7 +59013,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59519
59013
  {
59520
59014
  tooltip: r && f ? f : void 0,
59521
59015
  children: /* @__PURE__ */ h.jsx(
59522
- lC,
59016
+ rC,
59523
59017
  {
59524
59018
  label: c,
59525
59019
  variant: a,
@@ -59549,7 +59043,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59549
59043
  {
59550
59044
  tooltip: r && f ? f : void 0,
59551
59045
  children: /* @__PURE__ */ h.jsx(
59552
- lC,
59046
+ rC,
59553
59047
  {
59554
59048
  label: c,
59555
59049
  variant: a,
@@ -59564,7 +59058,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59564
59058
  /* @__PURE__ */ h.jsx("div", { className: "flex-1 min-w-0", children: C() }),
59565
59059
  /* @__PURE__ */ h.jsx("div", { className: "flex gap-2 shrink-0 items-center", children: m ? b() : w() })
59566
59060
  ] });
59567
- }, Gj = 100, Kr = 16, Vs = "text-secondary", _l = "text-primary min-w-0", Vj = "text-primary break-words min-w-0", Yr = "bg-layer-2", jj = ({
59061
+ }, kj = 100, Kr = 16, Vs = "text-secondary", _l = "text-primary min-w-0", Mj = "text-primary break-words min-w-0", Yr = "bg-layer-2", Aj = ({
59568
59062
  open: e,
59569
59063
  onClose: t,
59570
59064
  fileMetadata: s,
@@ -59589,7 +59083,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59589
59083
  "div",
59590
59084
  {
59591
59085
  className: "grid gap-4 items-center dial-small-text",
59592
- style: { gridTemplateColumns: `${Gj}px 1fr` },
59086
+ style: { gridTemplateColumns: `${kj}px 1fr` },
59593
59087
  children: i ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
59594
59088
  /* @__PURE__ */ h.jsx("div", { className: Vs, children: o }),
59595
59089
  /* @__PURE__ */ h.jsx(
@@ -59648,7 +59142,7 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59648
59142
  /* @__PURE__ */ h.jsx("div", { className: _l, children: /* @__PURE__ */ h.jsx(
59649
59143
  ut,
59650
59144
  {
59651
- text: YV(
59145
+ text: jV(
59652
59146
  s.updatedAt,
59653
59147
  d,
59654
59148
  u
@@ -59665,17 +59159,17 @@ const Mj = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
59665
59159
  /* @__PURE__ */ h.jsx("div", { className: Vs, children: c }),
59666
59160
  /* @__PURE__ */ h.jsx("div", { className: _l, children: /* @__PURE__ */ h.jsx(ut, { text: s.author || "—" }) }),
59667
59161
  /* @__PURE__ */ h.jsx("div", { className: Vs, children: r }),
59668
- /* @__PURE__ */ h.jsx("div", { className: Vj, children: decodeURIComponent(s.path) })
59162
+ /* @__PURE__ */ h.jsx("div", { className: Mj, children: decodeURIComponent(s.path) })
59669
59163
  ] }) : null
59670
59164
  }
59671
59165
  ) })
59672
59166
  }
59673
- ), zj = {
59167
+ ), Lj = {
59674
59168
  size: 10,
59675
59169
  stroke: 2
59676
- }, Wj = 26, Zr = "__new_folder";
59170
+ }, Nj = 26, Zr = "__new_folder";
59677
59171
  var Fs = /* @__PURE__ */ ((e) => (e.File = "file", e.Folder = "folder", e))(Fs || {});
59678
- const _j = ({
59172
+ const Oj = ({
59679
59173
  name: e,
59680
59174
  type: t,
59681
59175
  shared: s = !1,
@@ -59732,10 +59226,10 @@ const _j = ({
59732
59226
  }
59733
59227
  )
59734
59228
  ) : null;
59735
- }, A0 = "data-editable-container", Uj = {
59736
- [A0]: ""
59229
+ }, S0 = "data-editable-container", Hj = {
59230
+ [S0]: ""
59737
59231
  };
59738
- function $j({
59232
+ function Bj({
59739
59233
  value: e,
59740
59234
  isEditing: t,
59741
59235
  isCreating: s,
@@ -59801,7 +59295,7 @@ function $j({
59801
59295
  if (!t && !s || i) return;
59802
59296
  const D = v.current;
59803
59297
  if (!D) return;
59804
- const k = (T) => T ? (D.closest(`[${A0}]`) ?? D).contains(T) : !1, E = (T) => {
59298
+ const k = (T) => T ? (D.closest(`[${S0}]`) ?? D).contains(T) : !1, E = (T) => {
59805
59299
  k(T.target) || F();
59806
59300
  }, I = (T) => {
59807
59301
  k(T.relatedTarget) || F();
@@ -59811,7 +59305,7 @@ function $j({
59811
59305
  };
59812
59306
  }, [t, s, i, F]), { inputRef: v, value: d, onChange: y, invalid: p, invalidMessage: f };
59813
59307
  }
59814
- const qj = ({
59308
+ const Gj = ({
59815
59309
  name: e,
59816
59310
  type: t,
59817
59311
  elementId: s,
@@ -59857,9 +59351,9 @@ const qj = ({
59857
59351
  }
59858
59352
  )) });
59859
59353
  };
59860
- return /* @__PURE__ */ h.jsxs("div", { className: "flex gap-2 items-center", ...Uj, children: [
59354
+ return /* @__PURE__ */ h.jsxs("div", { className: "flex gap-2 items-center", ...Hj, children: [
59861
59355
  /* @__PURE__ */ h.jsx(
59862
- _j,
59356
+ Oj,
59863
59357
  {
59864
59358
  name: e,
59865
59359
  type: t,
@@ -59914,7 +59408,7 @@ const qj = ({
59914
59408
  forbiddenSymbolsTooltip: b,
59915
59409
  ...x
59916
59410
  }) => {
59917
- const { value: y, invalid: S, invalidMessage: R, onChange: F, inputRef: D } = $j({
59411
+ const { value: y, invalid: S, invalidMessage: R, onChange: F, inputRef: D } = Bj({
59918
59412
  value: e,
59919
59413
  isEditing: i,
59920
59414
  isCreating: o,
@@ -59926,7 +59420,7 @@ const qj = ({
59926
59420
  onCreateFolderSave: g
59927
59421
  });
59928
59422
  if (!i && !o) {
59929
- const k = Cf(
59423
+ const k = mf(
59930
59424
  {
59931
59425
  name: e,
59932
59426
  isFolder: t === Fs.Folder
@@ -59963,7 +59457,7 @@ const qj = ({
59963
59457
  );
59964
59458
  }
59965
59459
  return /* @__PURE__ */ h.jsx(
59966
- qj,
59460
+ Gj,
59967
59461
  {
59968
59462
  type: t,
59969
59463
  name: y,
@@ -59979,7 +59473,7 @@ const qj = ({
59979
59473
  sharedIndicatorClassName: m
59980
59474
  }
59981
59475
  );
59982
- }, Kj = ({
59476
+ }, Vj = ({
59983
59477
  items: e,
59984
59478
  showFiles: t = !1,
59985
59479
  expandedPaths: s,
@@ -60007,7 +59501,7 @@ const qj = ({
60007
59501
  forbiddenSymbolsTooltip: F,
60008
59502
  newFolderDefaultName: D
60009
59503
  }) => {
60010
- const { expandedPaths: k, togglePath: E } = k0({
59504
+ const { expandedPaths: k, togglePath: E } = x0({
60011
59505
  expandedPaths: s ?? /* @__PURE__ */ new Set(),
60012
59506
  onExpandedPathsChange: x
60013
59507
  }), I = (O) => {
@@ -60027,9 +59521,9 @@ const qj = ({
60027
59521
  ...O
60028
59522
  ]), _.map((B) => {
60029
59523
  const { path: Y, nodeType: G, name: H, items: U } = B, Q = G === Te.FOLDER;
60030
- if (!d && E0(B)) return null;
59524
+ if (!d && m0(B)) return null;
60031
59525
  if (!Q && !t) return;
60032
- const se = Array.isArray(U) && U.length > 0 && U.some((fe) => fe.nodeType === Te.FOLDER || t), Fe = k.has(Y), ee = r === Y, ge = i.has(Y), Me = u === Y || Y === `${p}/${Zr}`, ie = n.has(Y), pe = o.has(Y), M = f && g && Y === f && Q, q = b && ((fe) => b(fe, B)), be = ee ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Pe = M ? [] : v?.(B) ?? [], K = R ? Cf(
59526
+ const se = Array.isArray(U) && U.length > 0 && U.some((fe) => fe.nodeType === Te.FOLDER || t), Fe = k.has(Y), ee = r === Y, ge = i.has(Y), Me = u === Y || Y === `${p}/${Zr}`, ie = n.has(Y), pe = o.has(Y), M = f && g && Y === f && Q, q = b && ((fe) => b(fe, B)), be = ee ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Pe = M ? [] : v?.(B) ?? [], K = R ? mf(
60033
59527
  { name: B.name, isFolder: Q },
60034
59528
  R,
60035
59529
  F
@@ -60045,7 +59539,7 @@ const qj = ({
60045
59539
  children: /* @__PURE__ */ h.jsxs(
60046
59540
  "div",
60047
59541
  {
60048
- style: { paddingLeft: `${A * Wj}px` },
59542
+ style: { paddingLeft: `${A * Nj}px` },
60049
59543
  className: L(
60050
59544
  "py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
60051
59545
  be
@@ -60068,7 +59562,7 @@ const qj = ({
60068
59562
  Q && /* @__PURE__ */ h.jsx(
60069
59563
  LC,
60070
59564
  {
60071
- ...zj,
59565
+ ...Lj,
60072
59566
  className: ue(
60073
59567
  "flex-shrink-0",
60074
59568
  Fe && "rotate-90 transition-all",
@@ -60138,7 +59632,7 @@ const qj = ({
60138
59632
  icon: c
60139
59633
  }
60140
59634
  ) });
60141
- }, Yj = ({
59635
+ }, jj = ({
60142
59636
  selectedFiles: e,
60143
59637
  actionLabels: t,
60144
59638
  onDuplicate: s,
@@ -60157,7 +59651,7 @@ const qj = ({
60157
59651
  const f = [], m = Array.from(e.values());
60158
59652
  if (!m.length || !t)
60159
59653
  return f;
60160
- const v = Ad(g), C = v ? m.some((w) => v.test(w.name)) : !1;
59654
+ const v = Md(g), C = v ? m.some((w) => v.test(w.name)) : !1;
60161
59655
  if (t[te.RemoveAccess] && a) {
60162
59656
  const w = m.some(
60163
59657
  (b) => !u?.has(b.path)
@@ -60178,7 +59672,7 @@ const qj = ({
60178
59672
  label: t[te.Move],
60179
59673
  title: t[te.Move],
60180
59674
  icon: /* @__PURE__ */ h.jsx(
60181
- ff,
59675
+ pf,
60182
59676
  {
60183
59677
  width: de.size,
60184
59678
  height: de.size,
@@ -60191,7 +59685,7 @@ const qj = ({
60191
59685
  label: t[te.Copy],
60192
59686
  title: t[te.Copy],
60193
59687
  icon: /* @__PURE__ */ h.jsx(
60194
- gf,
59688
+ hf,
60195
59689
  {
60196
59690
  width: de.size,
60197
59691
  height: de.size,
@@ -60239,7 +59733,7 @@ const qj = ({
60239
59733
  disabled: w,
60240
59734
  tooltip: w ? "Selected items contain item which can not be unshared" : void 0,
60241
59735
  icon: /* @__PURE__ */ h.jsx(
60242
- mf,
59736
+ gf,
60243
59737
  {
60244
59738
  width: de.size,
60245
59739
  height: de.size,
@@ -60267,7 +59761,7 @@ const qj = ({
60267
59761
  p,
60268
59762
  u,
60269
59763
  g
60270
- ]), Zj = ({
59764
+ ]), zj = ({
60271
59765
  id: e,
60272
59766
  name: t,
60273
59767
  nodeType: s,
@@ -60307,7 +59801,7 @@ const qj = ({
60307
59801
  ) }) : null
60308
59802
  ] })
60309
59803
  }
60310
- ) }) }), Qj = (e) => (t, s, i) => ({
59804
+ ) }) }), Wj = (e) => (t, s, i) => ({
60311
59805
  colId: Mt.Name,
60312
59806
  field: "name",
60313
59807
  headerName: e,
@@ -60386,7 +59880,7 @@ const qj = ({
60386
59880
  }
60387
59881
  if (i)
60388
59882
  return /* @__PURE__ */ h.jsx(
60389
- Zj,
59883
+ zj,
60390
59884
  {
60391
59885
  id: n.data.id,
60392
59886
  name: n.data.name,
@@ -60402,7 +59896,7 @@ const qj = ({
60402
59896
  forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
60403
59897
  }
60404
59898
  );
60405
- const k = Cf(
59899
+ const k = mf(
60406
59900
  {
60407
59901
  name: n.data.name,
60408
59902
  isFolder: o === Te.FOLDER
@@ -60434,7 +59928,7 @@ const qj = ({
60434
59928
  }
60435
59929
  );
60436
59930
  }
60437
- }), Xj = (e) => (t, s) => ({
59931
+ }), _j = (e) => (t, s) => ({
60438
59932
  colId: Mt.UpdatedAt,
60439
59933
  field: "updatedAt",
60440
59934
  headerName: e,
@@ -60455,7 +59949,7 @@ const qj = ({
60455
59949
  s || $x
60456
59950
  ).format(o) : "";
60457
59951
  }
60458
- }), Jj = (e) => ({
59952
+ }), Uj = (e) => ({
60459
59953
  colId: Mt.Size,
60460
59954
  field: "size",
60461
59955
  headerName: e,
@@ -60463,7 +59957,7 @@ const qj = ({
60463
59957
  suppressSizeToFit: !0,
60464
59958
  cellRenderer: (t) => t.data.nodeType === Te.ITEM ? Pa(t.data.contentLength) : "",
60465
59959
  filterValueGetter: (t) => t.data.nodeType === Te.ITEM ? Pa(t.data.contentLength) : ""
60466
- }), ez = (e) => {
59960
+ }), $j = (e) => {
60467
59961
  const t = e.event;
60468
59962
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
60469
59963
  switch (t.key) {
@@ -60478,7 +59972,7 @@ const qj = ({
60478
59972
  return !1;
60479
59973
  }
60480
59974
  };
60481
- function tz({
59975
+ function qj({
60482
59976
  userColumnDefs: e,
60483
59977
  filterable: t,
60484
59978
  dateLocale: s,
@@ -60491,7 +59985,7 @@ function tz({
60491
59985
  rootItemPath: c
60492
59986
  }) {
60493
59987
  const d = W(() => [
60494
- Qj("Name")(s, i, o),
59988
+ Wj("Name")(s, i, o),
60495
59989
  {
60496
59990
  colId: Mt.Path,
60497
59991
  field: "path",
@@ -60513,8 +60007,8 @@ function tz({
60513
60007
  return /* @__PURE__ */ h.jsx(ut, { text: m, hideTooltip: g });
60514
60008
  }
60515
60009
  },
60516
- Xj("Modified Date")(s, i),
60517
- Jj("Size"),
60010
+ _j("Modified Date")(s, i),
60011
+ Uj("Size"),
60518
60012
  {
60519
60013
  colId: Mt.Author,
60520
60014
  field: "author",
@@ -60547,7 +60041,7 @@ function tz({
60547
60041
  filter: t ? m.filter : !1,
60548
60042
  floatingFilter: t ? m.floatingFilter : !1
60549
60043
  };
60550
- return f(m) && !m.suppressKeyboardEvent && (v.suppressKeyboardEvent = ez), v;
60044
+ return f(m) && !m.suppressKeyboardEvent && (v.suppressKeyboardEvent = $j), v;
60551
60045
  });
60552
60046
  }, [
60553
60047
  a,
@@ -60561,14 +60055,14 @@ function tz({
60561
60055
  e
60562
60056
  ]) };
60563
60057
  }
60564
- const sz = () => {
60565
- const e = vt(P0);
60058
+ const Kj = () => {
60059
+ const e = vt(C0);
60566
60060
  if (!e)
60567
60061
  throw new Error(
60568
60062
  "useFileManagerContext must be used within <FileManagerProvider>"
60569
60063
  );
60570
60064
  return e;
60571
- }, iz = ({
60065
+ }, Yj = ({
60572
60066
  actionLabels: e,
60573
60067
  onDuplicate: t,
60574
60068
  onCopy: s,
@@ -60594,14 +60088,14 @@ const sz = () => {
60594
60088
  const S = [];
60595
60089
  if (!e)
60596
60090
  return S;
60597
- const R = Ad(
60091
+ const R = Md(
60598
60092
  w
60599
60093
  )?.test(y.name);
60600
60094
  e[te.AddSibling] && y.nodeType === Te.FOLDER && S.push({
60601
60095
  key: "addSibling",
60602
60096
  label: e[te.AddSibling],
60603
60097
  icon: /* @__PURE__ */ h.jsx(
60604
- R0,
60098
+ g0,
60605
60099
  {
60606
60100
  width: de.size,
60607
60101
  height: de.size,
@@ -60614,7 +60108,7 @@ const sz = () => {
60614
60108
  key: "addChild",
60615
60109
  label: e[te.AddChild],
60616
60110
  icon: /* @__PURE__ */ h.jsx(
60617
- S0,
60111
+ p0,
60618
60112
  {
60619
60113
  width: de.size,
60620
60114
  height: de.size,
@@ -60643,7 +60137,7 @@ const sz = () => {
60643
60137
  key: te.Copy,
60644
60138
  label: e[te.Copy],
60645
60139
  icon: /* @__PURE__ */ h.jsx(
60646
- gf,
60140
+ hf,
60647
60141
  {
60648
60142
  width: de.size,
60649
60143
  height: de.size,
@@ -60655,7 +60149,7 @@ const sz = () => {
60655
60149
  key: te.Move,
60656
60150
  label: e[te.Move],
60657
60151
  icon: /* @__PURE__ */ h.jsx(
60658
- ff,
60152
+ pf,
60659
60153
  {
60660
60154
  width: de.size,
60661
60155
  height: de.size,
@@ -60703,7 +60197,7 @@ const sz = () => {
60703
60197
  key: te.Unshare,
60704
60198
  label: e[te.Unshare],
60705
60199
  icon: /* @__PURE__ */ h.jsx(
60706
- mf,
60200
+ gf,
60707
60201
  {
60708
60202
  width: de.size,
60709
60203
  height: de.size,
@@ -60739,7 +60233,7 @@ const sz = () => {
60739
60233
  w,
60740
60234
  x,
60741
60235
  b
60742
- ]), nz = ({
60236
+ ]), Zj = ({
60743
60237
  onGridAddSibling: e,
60744
60238
  onGridAddChild: t,
60745
60239
  onTreeAddSibling: s,
@@ -60775,7 +60269,7 @@ const sz = () => {
60775
60269
  onGridCreateChildFolder: l,
60776
60270
  onTreeCreateChildFolder: c
60777
60271
  };
60778
- }, oz = (e) => /* @__PURE__ */ h.jsx(Ej, { ...e, children: /* @__PURE__ */ h.jsx(rz, {}) }), rz = () => {
60272
+ }, Qj = (e) => /* @__PURE__ */ h.jsx(Cj, { ...e, children: /* @__PURE__ */ h.jsx(Xj, {}) }), Xj = () => {
60779
60273
  const {
60780
60274
  managerLabel: e,
60781
60275
  className: t,
@@ -60791,7 +60285,7 @@ const sz = () => {
60791
60285
  deleteConfirmationOptions: u,
60792
60286
  destinationFolderPopupOptions: p,
60793
60287
  conflictResolutionPopupOptions: g,
60794
- compactViewWidthBreakpoint: f = NV,
60288
+ compactViewWidthBreakpoint: f = DV,
60795
60289
  customBreakpointRef: m,
60796
60290
  sharedByMePaths: v,
60797
60291
  allowedFileTypes: C,
@@ -60901,19 +60395,19 @@ const sz = () => {
60901
60395
  showHiddenFileSwitcherInDestinationPopup: ft,
60902
60396
  showCreateFolderButtonInDestinationPopup: il,
60903
60397
  newFolderDefaultName: lt
60904
- } = sz(), {
60905
- width: hs = IV,
60906
- header: as = kV,
60907
- containerClassName: nl = DV,
60398
+ } = Kj(), {
60399
+ width: hs = yV,
60400
+ header: as = SV,
60401
+ containerClassName: nl = wV,
60908
60402
  additionalButtons: ol,
60909
60403
  ...rl
60910
- } = o ?? {}, [Co, al] = N(hs), { renameTriggerView: Mi, onGridRename: Kd, onTreeRename: ll } = BV({ onRename: Ge }), {
60404
+ } = o ?? {}, [Co, al] = N(hs), { renameTriggerView: Mi, onGridRename: Kd, onTreeRename: ll } = IV({ onRename: Ge }), {
60911
60405
  createFolderTriggerView: cl,
60912
60406
  onGridCreateSiblingFolder: Yd,
60913
60407
  onTreeCreateSiblingFolder: dl,
60914
60408
  onGridCreateChildFolder: Zd,
60915
60409
  onTreeCreateChildFolder: ul
60916
- } = nz({
60410
+ } = Zj({
60917
60411
  onGridAddSibling: ie,
60918
60412
  onGridAddChild: pe,
60919
60413
  onTreeAddSibling: M,
@@ -60929,10 +60423,10 @@ const sz = () => {
60929
60423
  dateOptions: tu,
60930
60424
  selectionMode: hl,
60931
60425
  wrapCustomCellRenderers: pl,
60932
- visibleColumns: gl = OV,
60426
+ visibleColumns: gl = PV,
60933
60427
  allowDisabledContextMenu: wo = !1,
60934
60428
  ...Ai
60935
- } = l ?? {}, { containerRef: su, isBelowBreakpoint: ps } = GV(
60429
+ } = l ?? {}, { containerRef: su, isBelowBreakpoint: ps } = kV(
60936
60430
  f,
60937
60431
  m
60938
60432
  ), iu = W(() => ki ? [
@@ -60940,7 +60434,7 @@ const sz = () => {
60940
60434
  Mt.Path,
60941
60435
  Mt.Actions
60942
60436
  ] : gl, [ki, gl]), Tr = P(
60943
- (ne, tt, pt) => ej(
60437
+ (ne, tt, pt) => $V(
60944
60438
  ne,
60945
60439
  tt,
60946
60440
  pt,
@@ -60965,7 +60459,7 @@ const sz = () => {
60965
60459
  key: "addSibling",
60966
60460
  label: o.actionLabels[te.AddSibling],
60967
60461
  icon: /* @__PURE__ */ h.jsx(
60968
- R0,
60462
+ g0,
60969
60463
  {
60970
60464
  width: de.size,
60971
60465
  height: de.size,
@@ -60977,7 +60471,7 @@ const sz = () => {
60977
60471
  key: "addChild",
60978
60472
  label: o.actionLabels[te.AddChild],
60979
60473
  icon: /* @__PURE__ */ h.jsx(
60980
- S0,
60474
+ p0,
60981
60475
  {
60982
60476
  width: de.size,
60983
60477
  height: de.size,
@@ -60994,7 +60488,7 @@ const sz = () => {
60994
60488
  key: Pt.Copy,
60995
60489
  label: o.actionLabels[te.Copy],
60996
60490
  icon: /* @__PURE__ */ h.jsx(
60997
- gf,
60491
+ hf,
60998
60492
  {
60999
60493
  width: de.size,
61000
60494
  height: de.size,
@@ -61008,7 +60502,7 @@ const sz = () => {
61008
60502
  key: Pt.Move,
61009
60503
  label: o.actionLabels[te.Move],
61010
60504
  icon: /* @__PURE__ */ h.jsx(
61011
- ff,
60505
+ pf,
61012
60506
  {
61013
60507
  width: de.size,
61014
60508
  height: de.size,
@@ -61054,7 +60548,7 @@ const sz = () => {
61054
60548
  key: "unshare",
61055
60549
  label: o.actionLabels[te.Unshare],
61056
60550
  icon: /* @__PURE__ */ h.jsx(
61057
- mf,
60551
+ gf,
61058
60552
  {
61059
60553
  width: de.size,
61060
60554
  height: de.size,
@@ -61105,7 +60599,7 @@ const sz = () => {
61105
60599
  I(ne), B?.(tt);
61106
60600
  },
61107
60601
  [B, I]
61108
- ), ml = Yj({
60602
+ ), ml = jj({
61109
60603
  selectedFiles: k,
61110
60604
  actionLabels: d?.actionLabels,
61111
60605
  onDuplicate: ee,
@@ -61132,13 +60626,13 @@ const sz = () => {
61132
60626
  ), nu = P(() => c && D.size === 0 ? /* @__PURE__ */ h.jsxs(
61133
60627
  "div",
61134
60628
  {
61135
- className: cC,
60629
+ className: aC,
61136
60630
  role: "toolbar",
61137
60631
  "aria-label": "File Manager Toolbar",
61138
60632
  children: [
61139
60633
  e,
61140
60634
  /* @__PURE__ */ h.jsx(
61141
- Bj,
60635
+ Ij,
61142
60636
  {
61143
60637
  ...c,
61144
60638
  onTabChange: Mr,
@@ -61154,11 +60648,11 @@ const sz = () => {
61154
60648
  ) : D.size > 0 && d ? /* @__PURE__ */ h.jsx(
61155
60649
  "div",
61156
60650
  {
61157
- className: cC,
60651
+ className: aC,
61158
60652
  role: "toolbar",
61159
60653
  "aria-label": "File Manager Toolbar",
61160
60654
  children: /* @__PURE__ */ h.jsx(
61161
- Mj,
60655
+ Rj,
61162
60656
  {
61163
60657
  ...d,
61164
60658
  selectedCount: D.size,
@@ -61201,8 +60695,8 @@ const sz = () => {
61201
60695
  width: Co,
61202
60696
  onResizeStop: al,
61203
60697
  onResize: Qd,
61204
- minWidth: AV,
61205
- maxWidth: LV,
60698
+ minWidth: FV,
60699
+ maxWidth: EV,
61206
60700
  enabled: !y,
61207
60701
  children: /* @__PURE__ */ h.jsx(
61208
60702
  _2,
@@ -61215,7 +60709,7 @@ const sz = () => {
61215
60709
  isOpened: !y,
61216
60710
  onToggle: S,
61217
60711
  children: /* @__PURE__ */ h.jsx(
61218
- Kj,
60712
+ Vj,
61219
60713
  {
61220
60714
  ...rl,
61221
60715
  items: s,
@@ -61272,7 +60766,7 @@ const sz = () => {
61272
60766
  Pi,
61273
60767
  po,
61274
60768
  lt
61275
- ]), vl = iz({
60769
+ ]), vl = Yj({
61276
60770
  actionLabels: l?.actionLabels,
61277
60771
  onDuplicate: (ne) => ee([ne]),
61278
60772
  onCopy: (ne) => {
@@ -61307,12 +60801,12 @@ const sz = () => {
61307
60801
  ), ru = P(
61308
60802
  (ne, tt, pt) => wo ? !1 : bo(ne, tt, pt),
61309
60803
  [wo, bo]
61310
- ), { actionsColumnDef: au } = HV({
60804
+ ), { actionsColumnDef: au } = TV({
61311
60805
  getContextMenuItems: Ar,
61312
60806
  isRowDisabled: ru,
61313
60807
  allowedFileTypes: C,
61314
- buttonClassName: ps ? "" : TV
61315
- }), { columnDefs: Lr } = tz({
60808
+ buttonClassName: ps ? "" : xV
60809
+ }), { columnDefs: Lr } = qj({
61316
60810
  userColumnDefs: Xd,
61317
60811
  filterable: Jd,
61318
60812
  dateLocale: eu,
@@ -61361,8 +60855,8 @@ const sz = () => {
61361
60855
  () => ({
61362
60856
  ...Ai.additionalGridOptions,
61363
60857
  onCellClicked: Cl,
61364
- headerHeight: uC,
61365
- rowHeight: uC,
60858
+ headerHeight: cC,
60859
+ rowHeight: cC,
61366
60860
  rowClass: "group/grid-row",
61367
60861
  defaultColDef: {
61368
60862
  ...Ai.additionalGridOptions?.defaultColDef,
@@ -61467,7 +60961,7 @@ const sz = () => {
61467
60961
  "div",
61468
60962
  {
61469
60963
  className: L(
61470
- RV,
60964
+ mV,
61471
60965
  {
61472
60966
  "gap-3 pt-4": d && D.size > 0,
61473
60967
  "gap-4 p-3 pt-4": ps,
@@ -61477,17 +60971,17 @@ const sz = () => {
61477
60971
  ),
61478
60972
  children: [
61479
60973
  nu(),
61480
- /* @__PURE__ */ h.jsxs("div", { className: L(FV, Fr), children: [
60974
+ /* @__PURE__ */ h.jsxs("div", { className: L(vV, Fr), children: [
61481
60975
  ou(),
61482
60976
  /* @__PURE__ */ h.jsxs(
61483
60977
  "div",
61484
60978
  {
61485
- className: L(EV, {
60979
+ className: L(CV, {
61486
60980
  "gap-3": ps
61487
60981
  }),
61488
60982
  children: [
61489
60983
  r && /* @__PURE__ */ h.jsx(
61490
- Hj,
60984
+ Tj,
61491
60985
  {
61492
60986
  ...a ?? {},
61493
60987
  makeHref: (ne) => ne.join("/"),
@@ -61506,7 +61000,7 @@ const sz = () => {
61506
61000
  {
61507
61001
  role: "region",
61508
61002
  "aria-label": "File Manager Grid View",
61509
- className: L(PV, "relative"),
61003
+ className: L(bV, "relative"),
61510
61004
  onDragEnter: Ke,
61511
61005
  onDragLeave: rs,
61512
61006
  onDragOver: pn,
@@ -61514,7 +61008,7 @@ const sz = () => {
61514
61008
  children: [
61515
61009
  lu,
61516
61010
  /* @__PURE__ */ h.jsx(
61517
- Dj,
61011
+ wj,
61518
61012
  {
61519
61013
  disabledGridRowIds: vn,
61520
61014
  gridRows: F,
@@ -61532,7 +61026,7 @@ const sz = () => {
61532
61026
  )
61533
61027
  ] }),
61534
61028
  /* @__PURE__ */ h.jsx(
61535
- Aj,
61029
+ Fj,
61536
61030
  {
61537
61031
  ...u,
61538
61032
  open: me,
@@ -61542,7 +61036,7 @@ const sz = () => {
61542
61036
  }
61543
61037
  ),
61544
61038
  /* @__PURE__ */ h.jsx(
61545
- Pj,
61039
+ bj,
61546
61040
  {
61547
61041
  ...p,
61548
61042
  open: U,
@@ -61576,7 +61070,7 @@ const sz = () => {
61576
61070
  }
61577
61071
  ),
61578
61072
  /* @__PURE__ */ h.jsx(
61579
- hC,
61073
+ dC,
61580
61074
  {
61581
61075
  ...g,
61582
61076
  open: xr,
@@ -61588,7 +61082,7 @@ const sz = () => {
61588
61082
  }
61589
61083
  ),
61590
61084
  /* @__PURE__ */ h.jsx(
61591
- hC,
61085
+ dC,
61592
61086
  {
61593
61087
  ...g,
61594
61088
  open: Ti,
@@ -61600,7 +61094,7 @@ const sz = () => {
61600
61094
  }
61601
61095
  ),
61602
61096
  /* @__PURE__ */ h.jsx(
61603
- jj,
61097
+ Aj,
61604
61098
  {
61605
61099
  open: oi,
61606
61100
  onClose: Sr,
@@ -61620,8 +61114,8 @@ const sz = () => {
61620
61114
  }
61621
61115
  ) });
61622
61116
  };
61623
- var L0 = /* @__PURE__ */ ((e) => (e.dark = "dark", e.light = "light", e))(L0 || {});
61624
- const e_ = (e, t = ta.MyFiles) => {
61117
+ var R0 = /* @__PURE__ */ ((e) => (e.dark = "dark", e.light = "light", e))(R0 || {});
61118
+ const QW = (e, t = ta.MyFiles) => {
61625
61119
  const s = Object.values(ta).includes(
61626
61120
  t
61627
61121
  ) ? t : ta.MyFiles, [i, n] = N(s), o = (a) => {
@@ -61638,8 +61132,8 @@ const e_ = (e, t = ta.MyFiles) => {
61638
61132
  handleTabChange: o,
61639
61133
  tabs: r
61640
61134
  };
61641
- }, az = "application/octet-stream";
61642
- function lz(e, t) {
61135
+ }, Jj = "application/octet-stream";
61136
+ function ez(e, t) {
61643
61137
  if (!e || e.length === 0)
61644
61138
  return [];
61645
61139
  const s = e.find(
@@ -61648,7 +61142,7 @@ function lz(e, t) {
61648
61142
  if (!s)
61649
61143
  return [];
61650
61144
  const i = s.path || s.url || "", n = fh(i, !0), o = e.filter((l) => l !== s).map((l) => {
61651
- const c = l.path || l.url || "", d = cz(l.nodeType), u = d === Te.FOLDER, p = fh(c, u);
61145
+ const c = l.path || l.url || "", d = tz(l.nodeType), u = d === Te.FOLDER, p = fh(c, u);
61652
61146
  let g;
61653
61147
  return l.parentPath === null || l.parentPath === void 0 ? g = n : l.parentPath === "" ? g = "" : g = fh(l.parentPath, !0), {
61654
61148
  ...l,
@@ -61666,12 +61160,12 @@ function lz(e, t) {
61666
61160
  path: l.path,
61667
61161
  parentPath: l.parentPath,
61668
61162
  nodeType: l.nodeType,
61669
- resourceType: dz(l.resourceType),
61163
+ resourceType: sz(l.resourceType),
61670
61164
  folderId: t,
61671
61165
  updatedAt: l.updatedAt ? new Date(l.updatedAt).toISOString() : (/* @__PURE__ */ new Date()).toISOString(),
61672
61166
  items: l.nodeType === Te.FOLDER ? [] : void 0
61673
61167
  };
61674
- l.nodeType === Te.ITEM && (c.extension = uz(l.name), c.contentType = l.contentType || az, c.contentLength = l.contentLength || 0), r.set(l.path, c);
61168
+ l.nodeType === Te.ITEM && (c.extension = iz(l.name), c.contentType = l.contentType || Jj, c.contentLength = l.contentLength || 0), r.set(l.path, c);
61675
61169
  });
61676
61170
  const a = [];
61677
61171
  return r.forEach((l) => {
@@ -61691,21 +61185,21 @@ function fh(e, t) {
61691
61185
  return t && !e.endsWith("/") ? e + "/" : !t && e.endsWith("/") ? e.slice(0, -1) : e;
61692
61186
  }
61693
61187
  }
61694
- function cz(e) {
61188
+ function tz(e) {
61695
61189
  return e.toUpperCase() === "FOLDER" ? Te.FOLDER : Te.ITEM;
61696
61190
  }
61697
- function dz(e) {
61191
+ function sz(e) {
61698
61192
  if (!e)
61699
61193
  return;
61700
61194
  const t = e.toUpperCase();
61701
- return Object.values(F0).find((i) => i.toUpperCase() === t);
61195
+ return Object.values(f0).find((i) => i.toUpperCase() === t);
61702
61196
  }
61703
- function uz(e) {
61197
+ function iz(e) {
61704
61198
  const t = e.split(".");
61705
61199
  return t.length > 1 ? t[t.length - 1] : "";
61706
61200
  }
61707
- function t_(e, t = "Prompts", s = "prompts/public/", i = "root") {
61708
- const n = lz(e, i);
61201
+ function XW(e, t = "Prompts", s = "prompts/public/", i = "root") {
61202
+ const n = ez(e, i);
61709
61203
  return [
61710
61204
  {
61711
61205
  id: i,
@@ -61718,8 +61212,8 @@ function t_(e, t = "Prompts", s = "prompts/public/", i = "root") {
61718
61212
  }
61719
61213
  ];
61720
61214
  }
61721
- var sa = /* @__PURE__ */ ((e) => (e.Sections = "sections", e.Flat = "flat", e.FlatSections = "flat-sections", e))(sa || {}), Kc = /* @__PURE__ */ ((e) => (e.Select = "select", e.Radio = "radio", e))(Kc || {}), wf = /* @__PURE__ */ ((e) => (e.Row = "row", e.Column = "column", e))(wf || {}), et = /* @__PURE__ */ ((e) => (e.String = "string", e.Number = "number", e.Integer = "integer", e.Boolean = "boolean", e.Object = "object", e.Array = "array", e.Null = "null", e))(et || {});
61722
- const hz = {
61215
+ var sa = /* @__PURE__ */ ((e) => (e.Sections = "sections", e.Flat = "flat", e.FlatSections = "flat-sections", e))(sa || {}), Kc = /* @__PURE__ */ ((e) => (e.Select = "select", e.Radio = "radio", e))(Kc || {}), vf = /* @__PURE__ */ ((e) => (e.Row = "row", e.Column = "column", e))(vf || {}), et = /* @__PURE__ */ ((e) => (e.String = "string", e.Number = "number", e.Integer = "integer", e.Boolean = "boolean", e.Object = "object", e.Array = "array", e.Null = "null", e))(et || {});
61216
+ const nz = {
61723
61217
  noItemSchema: "No item schema defined.",
61724
61218
  noItemsYet: "No items yet. Add one below.",
61725
61219
  addItem: "Add Item",
@@ -61737,14 +61231,14 @@ const hz = {
61737
61231
  selectTypePlaceholder: "Select type",
61738
61232
  removeItemAriaLabel: "Remove item",
61739
61233
  removeFieldAriaLabel: "Remove field"
61740
- }, N0 = Ia(null);
61234
+ }, F0 = Ia(null);
61741
61235
  function ti() {
61742
- const e = vt(N0);
61236
+ const e = vt(F0);
61743
61237
  if (!e)
61744
61238
  throw new Error("useSchemaContext must be used inside DialSchemaRenderer");
61745
61239
  return e;
61746
61240
  }
61747
- function xC(e, t) {
61241
+ function wC(e, t) {
61748
61242
  const s = { ...e, ...t };
61749
61243
  return (e.properties || t.properties) && (s.properties = { ...e.properties, ...t.properties }), (e.required || t.required) && (s.required = Array.from(
61750
61244
  /* @__PURE__ */ new Set([...e.required ?? [], ...t.required ?? []])
@@ -61766,18 +61260,18 @@ function _e(e, t, s = 0) {
61766
61260
  const { allOf: n, ...o } = i;
61767
61261
  let r = {};
61768
61262
  for (const a of n)
61769
- r = xC(r, _e(a, t, s + 1));
61770
- i = xC(r, o);
61263
+ r = wC(r, _e(a, t, s + 1));
61264
+ i = wC(r, o);
61771
61265
  }
61772
61266
  return i;
61773
61267
  }
61774
- function O0(e) {
61268
+ function E0(e) {
61775
61269
  return e.map((t, s) => ({ entry: t, index: s })).sort((t, s) => {
61776
61270
  const i = t.entry[1]["dial:meta"]?.["dial:propertyOrder"] ?? 1 / 0, n = s.entry[1]["dial:meta"]?.["dial:propertyOrder"] ?? 1 / 0;
61777
61271
  return i !== n ? i - n : t.index - s.index;
61778
61272
  }).map(({ entry: t }) => t);
61779
61273
  }
61780
- function Ld(e) {
61274
+ function Ad(e) {
61781
61275
  return e == null || e === "";
61782
61276
  }
61783
61277
  function lo(e) {
@@ -61786,7 +61280,7 @@ function lo(e) {
61786
61280
  function Yc(e) {
61787
61281
  return e.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/\b\w/g, (t) => t.toUpperCase());
61788
61282
  }
61789
- function H0(e, t) {
61283
+ function D0(e, t) {
61790
61284
  return e.type === et.Null ? "null" : e.$ref ? _e(e, t).title ?? e.$ref.split("/").pop() ?? "Option" : e.title ? e.title : e.type ? Array.isArray(e.type) ? e.type.join(" | ") : e.type : e.discriminator ? Object.keys(e.discriminator.mapping).join(" | ") : e.const != null ? String(e.const) : e.oneOf ? "One of options" : "Option";
61791
61285
  }
61792
61286
  function xi(e, t, s = 0) {
@@ -61871,7 +61365,7 @@ function ui(e, t, s, i = "", n = 0) {
61871
61365
  if (d && _e(d, s).isHidden)
61872
61366
  continue;
61873
61367
  const u = i ? `${i}.${c}` : c, p = l?.[c];
61874
- if (Ld(p)) {
61368
+ if (Ad(p)) {
61875
61369
  const g = d?.title ?? Yc(c);
61876
61370
  o.push({ path: u, message: `${g} is required` });
61877
61371
  }
@@ -61907,7 +61401,7 @@ function ui(e, t, s, i = "", n = 0) {
61907
61401
  }
61908
61402
  return o;
61909
61403
  }
61910
- function bf(e, t, s) {
61404
+ function Cf(e, t, s) {
61911
61405
  const i = _e(t, s);
61912
61406
  if (Array.isArray(e))
61913
61407
  return `${e.length} item${e.length !== 1 ? "s" : ""}`;
@@ -61922,7 +61416,7 @@ function bf(e, t, s) {
61922
61416
  }
61923
61417
  return "";
61924
61418
  }
61925
- function pz(e, t, s) {
61419
+ function oz(e, t, s) {
61926
61420
  if (e == null) {
61927
61421
  const i = t.findIndex((n) => n.type === et.Null);
61928
61422
  return i >= 0 ? i : 0;
@@ -61961,7 +61455,7 @@ function pz(e, t, s) {
61961
61455
  }
61962
61456
  return 0;
61963
61457
  }
61964
- function gz(e, t, s) {
61458
+ function rz(e, t, s) {
61965
61459
  if (t && typeof e == "object" && e !== null) {
61966
61460
  const i = e[t];
61967
61461
  if (i) return `Item ${s + 1}: ${i}`;
@@ -61972,7 +61466,7 @@ function gz(e, t, s) {
61972
61466
  }
61973
61467
  return `Item ${s + 1}`;
61974
61468
  }
61975
- function B0(e) {
61469
+ function P0(e) {
61976
61470
  switch (Array.isArray(e.type) ? e.type[0] : e.type) {
61977
61471
  case et.String:
61978
61472
  return "";
@@ -62056,7 +61550,7 @@ const Ta = ({
62056
61550
  ),
62057
61551
  c && /* @__PURE__ */ h.jsx("div", { className: f, children: o })
62058
61552
  ] });
62059
- }, G0 = ({
61553
+ }, T0 = ({
62060
61554
  schema: e,
62061
61555
  value: t,
62062
61556
  onChange: s,
@@ -62072,7 +61566,7 @@ const Ta = ({
62072
61566
  skipUntouched: d = !1
62073
61567
  } = ti(), u = _e(e, a), p = lo(u), g = u.type === et.Array;
62074
61568
  if (p || g) {
62075
- const v = bf(t, u, a), C = ui(
61569
+ const v = Cf(t, u, a), C = ui(
62076
61570
  t,
62077
61571
  u,
62078
61572
  a,
@@ -62101,7 +61595,7 @@ const Ta = ({
62101
61595
  }
62102
61596
  );
62103
61597
  }
62104
- const m = (!d || c.has(i.join("."))) && o && Ld(t) ? `${r ?? "Field"} is required` : void 0;
61598
+ const m = (!d || c.has(i.join("."))) && o && Ad(t) ? `${r ?? "Field"} is required` : void 0;
62105
61599
  return /* @__PURE__ */ h.jsx(
62106
61600
  Gp,
62107
61601
  {
@@ -62130,7 +61624,7 @@ const Ta = ({
62130
61624
  path: i,
62131
61625
  level: n
62132
61626
  }) => {
62133
- const { rootSchema: o, texts: r } = ti(), a = _e(e, o), l = O0(
61627
+ const { rootSchema: o, texts: r } = ti(), a = _e(e, o), l = E0(
62134
61628
  Object.entries(a.properties ?? {}).filter(
62135
61629
  ([, u]) => !_e(u, o).isHidden
62136
61630
  )
@@ -62138,7 +61632,7 @@ const Ta = ({
62138
61632
  return l.length === 0 ? /* @__PURE__ */ h.jsx("p", { className: "dial-tiny-text text-secondary italic", children: r.noConfigurableProperties }) : /* @__PURE__ */ h.jsx("div", { className: "flex flex-col gap-4", children: l.map(([u, p]) => {
62139
61633
  const f = _e(p, o).title ?? p.title ?? Yc(u), m = c.includes(u);
62140
61634
  return /* @__PURE__ */ h.jsx(
62141
- G0,
61635
+ T0,
62142
61636
  {
62143
61637
  schema: p,
62144
61638
  value: d[u],
@@ -62151,7 +61645,7 @@ const Ta = ({
62151
61645
  u
62152
61646
  );
62153
61647
  }) });
62154
- }, fz = ({
61648
+ }, az = ({
62155
61649
  schema: e,
62156
61650
  value: t,
62157
61651
  onChange: s,
@@ -62193,7 +61687,7 @@ const Ta = ({
62193
61687
  );
62194
61688
  y = { ...xi(S, o) ?? {}, [f.propertyName]: x };
62195
61689
  } else
62196
- y = xi(g, o) ?? B0(g);
61690
+ y = xi(g, o) ?? P0(g);
62197
61691
  s([...c, y]);
62198
61692
  }, w = (x) => {
62199
61693
  s(c.filter((y, S) => S !== x));
@@ -62203,7 +61697,7 @@ const Ta = ({
62203
61697
  return /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-3", children: [
62204
61698
  c.length === 0 && /* @__PURE__ */ h.jsx("p", { className: "dial-tiny-text text-secondary italic", children: r.noItemsYet }),
62205
61699
  c.map((x, y) => {
62206
- const S = gz(x, m, y), R = bf(x, g, o), F = ui(
61700
+ const S = rz(x, m, y), R = Cf(x, g, o), F = ui(
62207
61701
  x,
62208
61702
  g,
62209
61703
  o,
@@ -62256,7 +61750,7 @@ const Ta = ({
62256
61750
  )
62257
61751
  ] })
62258
61752
  ] });
62259
- }, mz = ({
61753
+ }, lz = ({
62260
61754
  schema: e,
62261
61755
  value: t,
62262
61756
  onChange: s,
@@ -62273,7 +61767,7 @@ const Ta = ({
62273
61767
  s({ ...F, [v]: S });
62274
61768
  };
62275
61769
  if (e.discriminatorDisplay === Kc.Radio) {
62276
- const S = e.discriminatorOrientation === wf.Row, R = b ? (() => {
61770
+ const S = e.discriminatorOrientation === vf.Row, R = b ? (() => {
62277
61771
  const F = _e(
62278
61772
  { $ref: C[b] },
62279
61773
  o
@@ -62381,7 +61875,7 @@ const Ta = ({
62381
61875
  }, f = d[p];
62382
61876
  if (e.discriminatorDisplay === Kc.Radio)
62383
61877
  return /* @__PURE__ */ h.jsx("div", { role: "radiogroup", className: "flex flex-col gap-2", children: d.map((v, C) => {
62384
- const w = _e(v, o), b = H0(v, o) ?? `Option ${C + 1}`, x = p === C;
61878
+ const w = _e(v, o), b = D0(v, o) ?? `Option ${C + 1}`, x = p === C;
62385
61879
  return /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col", children: [
62386
61880
  /* @__PURE__ */ h.jsx(
62387
61881
  Oo,
@@ -62435,7 +61929,7 @@ const Ta = ({
62435
61929
  }
62436
61930
  ) })
62437
61931
  ] });
62438
- }, vz = ({
61932
+ }, cz = ({
62439
61933
  schema: e,
62440
61934
  value: t,
62441
61935
  onChange: s,
@@ -62444,8 +61938,8 @@ const Ta = ({
62444
61938
  }) => {
62445
61939
  const { rootSchema: o, readonly: r = !1 } = ti(), a = e.anyOf ?? [], l = a.map((f, m) => ({
62446
61940
  value: String(m),
62447
- label: H0(f, o)
62448
- })), c = pz(t, a, o), d = a[c], p = _e(d, o).type === et.Null, g = (f) => {
61941
+ label: D0(f, o)
61942
+ })), c = oz(t, a, o), d = a[c], p = _e(d, o).type === et.Null, g = (f) => {
62449
61943
  const m = _e(a[f], o);
62450
61944
  if (m.type === et.Null) {
62451
61945
  s(null);
@@ -62499,7 +61993,7 @@ const Ta = ({
62499
61993
  }
62500
61994
  ) })
62501
61995
  ] });
62502
- }, V0 = ({
61996
+ }, I0 = ({
62503
61997
  schema: e,
62504
61998
  value: t,
62505
61999
  onChange: s,
@@ -62545,7 +62039,7 @@ const Ta = ({
62545
62039
  }
62546
62040
  );
62547
62041
  if (d && e.enumDisplay === Kc.Radio) {
62548
- const p = e.enumOrientation === wf.Row;
62042
+ const p = e.enumOrientation === vf.Row;
62549
62043
  return /* @__PURE__ */ h.jsx(
62550
62044
  "div",
62551
62045
  {
@@ -62646,11 +62140,11 @@ const Ta = ({
62646
62140
  }
62647
62141
  );
62648
62142
  }
62649
- }, yC = (e, t) => ({
62143
+ }, bC = (e, t) => ({
62650
62144
  id: Math.random().toString(36).slice(2),
62651
62145
  key: e,
62652
62146
  value: t
62653
- }), j0 = (e) => !!(e.oneOf || e.anyOf || e.type === et.Array || lo(e)), Cz = ({
62147
+ }), k0 = (e) => !!(e.oneOf || e.anyOf || e.type === et.Array || lo(e)), dz = ({
62654
62148
  pairId: e,
62655
62149
  pairKey: t,
62656
62150
  pairValue: s,
@@ -62673,7 +62167,7 @@ const Ta = ({
62673
62167
  markTouched: C = () => {
62674
62168
  },
62675
62169
  skipUntouched: w = !1
62676
- } = ti(), [b, x] = N(t), y = j0(i), S = [...c, e, "key"].join("."), F = (!w || v.has(S)) && t === "", D = /* @__PURE__ */ h.jsxs("div", { className: "flex gap-2 items-start", children: [
62170
+ } = ti(), [b, x] = N(t), y = k0(i), S = [...c, e, "key"].join("."), F = (!w || v.has(S)) && t === "", D = /* @__PURE__ */ h.jsxs("div", { className: "flex gap-2 items-start", children: [
62677
62171
  /* @__PURE__ */ h.jsxs("div", { className: y ? "flex-1 min-w-0" : "w-2/5 min-w-0", children: [
62678
62172
  /* @__PURE__ */ h.jsx(
62679
62173
  on,
@@ -62697,7 +62191,7 @@ const Ta = ({
62697
62191
  )
62698
62192
  ] }),
62699
62193
  !y && /* @__PURE__ */ h.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ h.jsx(
62700
- V0,
62194
+ I0,
62701
62195
  {
62702
62196
  schema: i,
62703
62197
  value: s,
@@ -62715,7 +62209,7 @@ const Ta = ({
62715
62209
  )
62716
62210
  ] });
62717
62211
  if (!y) return D;
62718
- const k = [...c, t], E = bf(s, i, g), I = ui(
62212
+ const k = [...c, t], E = Cf(s, i, g), I = ui(
62719
62213
  s,
62720
62214
  i,
62721
62215
  g,
@@ -62744,7 +62238,7 @@ const Ta = ({
62744
62238
  }
62745
62239
  )
62746
62240
  ] });
62747
- }, wz = ({
62241
+ }, uz = ({
62748
62242
  schema: e,
62749
62243
  value: t,
62750
62244
  onChange: s,
@@ -62756,9 +62250,9 @@ const Ta = ({
62756
62250
  texts: r,
62757
62251
  readonly: a = !1,
62758
62252
  inputClassName: l
62759
- } = ti(), c = e.additionalProperties === !0 || e.additionalProperties == null ? { type: "string" } : typeof e.additionalProperties == "object" ? _e(e.additionalProperties, o) : { type: "string" }, d = j0(c), [u, p] = N(
62253
+ } = ti(), c = e.additionalProperties === !0 || e.additionalProperties == null ? { type: "string" } : typeof e.additionalProperties == "object" ? _e(e.additionalProperties, o) : { type: "string" }, d = k0(c), [u, p] = N(
62760
62254
  () => Object.entries(t ?? {}).map(
62761
- ([b, x]) => yC(b, x)
62255
+ ([b, x]) => bC(b, x)
62762
62256
  )
62763
62257
  ), g = (b) => Object.fromEntries(
62764
62258
  b.filter((x) => x.key !== "").map((x) => [x.key, x.value])
@@ -62772,8 +62266,8 @@ const Ta = ({
62772
62266
  (S, R) => R === b ? { ...S, value: x } : S
62773
62267
  );
62774
62268
  p(y), s(g(y));
62775
- }, v = () => d ? xi(c, o) ?? B0(c) : "", C = () => {
62776
- p((b) => [...b, yC("", v())]);
62269
+ }, v = () => d ? xi(c, o) ?? P0(c) : "", C = () => {
62270
+ p((b) => [...b, bC("", v())]);
62777
62271
  }, w = (b) => {
62778
62272
  const x = u.filter((y, S) => S !== b);
62779
62273
  p(x), s(g(x));
@@ -62785,7 +62279,7 @@ const Ta = ({
62785
62279
  /* @__PURE__ */ h.jsx("span", { className: "flex-1 dial-tiny-text text-secondary font-medium", children: r.valueColumnHeader })
62786
62280
  ] }),
62787
62281
  u.map((b, x) => /* @__PURE__ */ h.jsx(
62788
- Cz,
62282
+ dz,
62789
62283
  {
62790
62284
  pairId: b.id,
62791
62285
  pairKey: b.key,
@@ -62812,12 +62306,12 @@ const Ta = ({
62812
62306
  }
62813
62307
  ) })
62814
62308
  ] });
62815
- }, z0 = ({ value: e, onChange: t, theme: s = L0.dark, height: i = 240 }) => {
62309
+ }, M0 = ({ value: e, onChange: t, theme: s = R0.dark, height: i = 240 }) => {
62816
62310
  const { readonly: n } = ti(), [o, r] = N(null), [a, l] = N(
62817
62311
  () => JSON.stringify(e, null, 2)
62818
62312
  );
62819
62313
  Se(() => {
62820
- typeof window < "u" && import("./JsonEditor-4-qZCNDm.js").then((d) => {
62314
+ typeof window < "u" && import("./JsonEditor-7yoJYuqZ.js").then((d) => {
62821
62315
  r(() => d.DialJsonEditor);
62822
62316
  });
62823
62317
  }, []);
@@ -62868,7 +62362,7 @@ const Ta = ({
62868
62362
  let v;
62869
62363
  if (g.oneOf)
62870
62364
  v = /* @__PURE__ */ h.jsx(
62871
- mz,
62365
+ lz,
62872
62366
  {
62873
62367
  schema: g,
62874
62368
  value: t,
@@ -62879,7 +62373,7 @@ const Ta = ({
62879
62373
  );
62880
62374
  else if (g.anyOf && g.type !== et.Object)
62881
62375
  v = /* @__PURE__ */ h.jsx(
62882
- vz,
62376
+ cz,
62883
62377
  {
62884
62378
  schema: g,
62885
62379
  value: t,
@@ -62891,7 +62385,7 @@ const Ta = ({
62891
62385
  else if (lo(g)) {
62892
62386
  const C = g.additionalProperties != null && g.additionalProperties !== !1, w = !g.properties || Object.keys(g.properties).length === 0;
62893
62387
  C && w ? v = /* @__PURE__ */ h.jsx(
62894
- wz,
62388
+ uz,
62895
62389
  {
62896
62390
  schema: g,
62897
62391
  value: t,
@@ -62900,7 +62394,7 @@ const Ta = ({
62900
62394
  level: n
62901
62395
  }
62902
62396
  ) : w && g.additionalProperties !== !1 ? v = /* @__PURE__ */ h.jsx(
62903
- z0,
62397
+ M0,
62904
62398
  {
62905
62399
  value: t,
62906
62400
  onChange: f,
@@ -62918,7 +62412,7 @@ const Ta = ({
62918
62412
  );
62919
62413
  } else if (g.type === et.Array)
62920
62414
  v = /* @__PURE__ */ h.jsx(
62921
- fz,
62415
+ az,
62922
62416
  {
62923
62417
  schema: g,
62924
62418
  value: t,
@@ -62928,10 +62422,10 @@ const Ta = ({
62928
62422
  }
62929
62423
  );
62930
62424
  else {
62931
- const C = m && o && Ld(t), w = !r && C ? `${g.title ?? "Field"} is required` : void 0;
62425
+ const C = m && o && Ad(t), w = !r && C ? `${g.title ?? "Field"} is required` : void 0;
62932
62426
  v = /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
62933
62427
  /* @__PURE__ */ h.jsx(
62934
- V0,
62428
+ I0,
62935
62429
  {
62936
62430
  schema: g,
62937
62431
  value: t,
@@ -62943,7 +62437,7 @@ const Ta = ({
62943
62437
  ] });
62944
62438
  }
62945
62439
  return l ? l(i, g, v) : v;
62946
- }, s_ = ({
62440
+ }, JW = ({
62947
62441
  schema: e,
62948
62442
  defaultValue: t,
62949
62443
  texts: s,
@@ -62961,7 +62455,7 @@ const Ta = ({
62961
62455
  acceptableResourceTypes: f
62962
62456
  }) => {
62963
62457
  const m = W(
62964
- () => ({ ...hz, ...s }),
62458
+ () => ({ ...nz, ...s }),
62965
62459
  [s]
62966
62460
  ), v = W(() => t || (xi(e, e) ?? {}), []), [C, w] = N(v), [b, x] = N(
62967
62461
  /* @__PURE__ */ new Set()
@@ -62976,13 +62470,13 @@ const Ta = ({
62976
62470
  w(T), l?.(T), c?.(E, I);
62977
62471
  }, R = new Set(Object.keys(e.properties ?? {})), F = Object.keys(C).filter(
62978
62472
  (E) => !R.has(E)
62979
- ), D = O0(
62473
+ ), D = E0(
62980
62474
  Object.entries(e.properties ?? {}).filter(
62981
62475
  ([, E]) => !_e(E, e).isHidden
62982
62476
  )
62983
62477
  ), k = e.required ?? [];
62984
62478
  return /* @__PURE__ */ h.jsx(
62985
- N0.Provider,
62479
+ F0.Provider,
62986
62480
  {
62987
62481
  value: {
62988
62482
  rootSchema: e,
@@ -63002,7 +62496,7 @@ const Ta = ({
63002
62496
  const T = _e(I, e), O = T.title ?? I.title ?? Yc(E), A = k.includes(E), V = C[E];
63003
62497
  if (a === sa.Flat)
63004
62498
  return /* @__PURE__ */ h.jsx(
63005
- G0,
62499
+ T0,
63006
62500
  {
63007
62501
  schema: I,
63008
62502
  value: V,
@@ -63037,7 +62531,7 @@ const Ta = ({
63037
62531
  description: T.description,
63038
62532
  level: 0,
63039
62533
  defaultExpanded: o,
63040
- errorCount: Y ? A && Ld(V) ? Math.max(_.length, 1) : _.length : 0,
62534
+ errorCount: Y ? A && Ad(V) ? Math.max(_.length, 1) : _.length : 0,
63041
62535
  children: /* @__PURE__ */ h.jsx(
63042
62536
  yi,
63043
62537
  {
@@ -63055,7 +62549,7 @@ const Ta = ({
63055
62549
  }),
63056
62550
  F.map((E) => {
63057
62551
  const I = Yc(E), T = /* @__PURE__ */ h.jsx(
63058
- z0,
62552
+ M0,
63059
62553
  {
63060
62554
  value: C[E],
63061
62555
  onChange: (O) => S(E, O),
@@ -63079,25 +62573,25 @@ const Ta = ({
63079
62573
  ] })
63080
62574
  }
63081
62575
  );
63082
- }, bz = (e) => ({
62576
+ }, hz = (e) => ({
63083
62577
  info: /* @__PURE__ */ h.jsx(AC, { size: e.size }),
63084
62578
  error: /* @__PURE__ */ h.jsx(Ep, { size: e.size }),
63085
62579
  warning: /* @__PURE__ */ h.jsx(Fp, { size: e.size }),
63086
62580
  success: /* @__PURE__ */ h.jsx(MC, { size: e.size }),
63087
62581
  loading: /* @__PURE__ */ h.jsx(Bp, { size: e.size })
63088
- }), xz = {
62582
+ }), pz = {
63089
62583
  [Je.Info]: "bg-info text-info",
63090
62584
  [Je.Success]: "bg-success text-success",
63091
62585
  [Je.Warning]: "bg-warning text-warning",
63092
62586
  [Je.Error]: "bg-error text-error",
63093
62587
  [Je.Loading]: "bg-layer-raised text-info"
63094
- }, yz = {
62588
+ }, gz = {
63095
62589
  [Je.Info]: "status",
63096
62590
  [Je.Success]: "status",
63097
62591
  [Je.Warning]: "alert",
63098
62592
  [Je.Error]: "alert",
63099
62593
  [Je.Loading]: "status"
63100
- }, Sz = "items-center justify-between rounded-xl relative gap-3 p-3 border flex border-transparent", W0 = ({
62594
+ }, fz = "items-center justify-between rounded-xl relative gap-3 p-3 border flex border-transparent", A0 = ({
63101
62595
  variant: e = Je.Info,
63102
62596
  type: t = $t.Toast,
63103
62597
  title: s,
@@ -63111,15 +62605,15 @@ const Ta = ({
63111
62605
  textClassName: d,
63112
62606
  ...u
63113
62607
  }) => {
63114
- const p = W(() => bz({ size: o })[e], [e, o, r]), g = d ?? (t === $t.SectionMessage ? "flex-row flex-wrap items-baseline gap-x-1" : "flex-col");
62608
+ const p = W(() => hz({ size: o })[e], [e, o, r]), g = d ?? (t === $t.SectionMessage ? "flex-row flex-wrap items-baseline gap-x-1" : "flex-col");
63115
62609
  return /* @__PURE__ */ h.jsxs(
63116
62610
  "div",
63117
62611
  {
63118
- role: yz[e],
62612
+ role: gz[e],
63119
62613
  ...u,
63120
62614
  className: L(
63121
- Sz,
63122
- xz[e],
62615
+ fz,
62616
+ pz[e],
63123
62617
  t === $t.Toast && "min-w-[200px] max-w-[600px] shadow-lg",
63124
62618
  t === $t.SectionMessage && e === Je.Loading && "border-secondary",
63125
62619
  n
@@ -63154,20 +62648,20 @@ const Ta = ({
63154
62648
  ]
63155
62649
  }
63156
62650
  );
63157
- }, SC = {
62651
+ }, xC = {
63158
62652
  2: "line-clamp-2",
63159
62653
  3: "line-clamp-3",
63160
62654
  4: "line-clamp-4",
63161
62655
  5: "line-clamp-5",
63162
62656
  6: "line-clamp-6"
63163
- }, Rz = (e) => e === 1 ? "!truncate !whitespace-nowrap" : `${SC[e] ?? SC[2]} !whitespace-normal`, i_ = ({
62657
+ }, mz = (e) => e === 1 ? "!truncate !whitespace-nowrap" : `${xC[e] ?? xC[2]} !whitespace-normal`, e_ = ({
63164
62658
  text: e,
63165
62659
  query: t,
63166
62660
  markClassName: s,
63167
62661
  className: i,
63168
62662
  maxLines: n = 2
63169
62663
  }) => {
63170
- const o = Rz(n);
62664
+ const o = mz(n);
63171
62665
  if (!t.trim())
63172
62666
  return /* @__PURE__ */ h.jsx(
63173
62667
  ut,
@@ -63197,7 +62691,7 @@ const Ta = ({
63197
62691
  text: a
63198
62692
  }
63199
62693
  );
63200
- }, n_ = ({
62694
+ }, t_ = ({
63201
62695
  className: e,
63202
62696
  children: t,
63203
62697
  ...s
@@ -63212,69 +62706,125 @@ const Ta = ({
63212
62706
  ),
63213
62707
  children: t
63214
62708
  }
63215
- ), qa = (e, t) => ({ type: i, ...n }) => /* @__PURE__ */ h.jsx(W0, { ...n, variant: e, type: i || t }), Ka = (e, t) => ({ variant: i, ...n }) => /* @__PURE__ */ h.jsx(
63216
- W0,
62709
+ ), qa = (e, t) => ({ type: i, ...n }) => /* @__PURE__ */ h.jsx(A0, { ...n, variant: e, type: i || t }), Ka = (e, t) => ({ variant: i, ...n }) => /* @__PURE__ */ h.jsx(
62710
+ A0,
63217
62711
  {
63218
62712
  ...n,
63219
62713
  variant: i || t,
63220
62714
  type: e
63221
62715
  }
63222
- ), o_ = qa(
62716
+ ), s_ = qa(
63223
62717
  Je.Error,
63224
62718
  $t.Toast
63225
- ), r_ = qa(
62719
+ ), i_ = qa(
63226
62720
  Je.Info,
63227
62721
  $t.Toast
63228
- ), a_ = qa(
62722
+ ), n_ = qa(
63229
62723
  Je.Success,
63230
62724
  $t.Toast
63231
- ), l_ = qa(
62725
+ ), o_ = qa(
63232
62726
  Je.Warning,
63233
62727
  $t.Toast
63234
- ), c_ = qa(
62728
+ ), r_ = qa(
63235
62729
  Je.Loading,
63236
62730
  $t.Toast
63237
- ), d_ = Ka(
62731
+ ), a_ = Ka(
63238
62732
  $t.SectionMessage,
63239
62733
  Je.Error
63240
- ), u_ = Ka(
62734
+ ), l_ = Ka(
63241
62735
  $t.SectionMessage,
63242
62736
  Je.Info
63243
- ), h_ = Ka(
62737
+ ), c_ = Ka(
63244
62738
  $t.SectionMessage,
63245
62739
  Je.Success
63246
- ), p_ = Ka(
62740
+ ), d_ = Ka(
63247
62741
  $t.SectionMessage,
63248
62742
  Je.Warning
63249
- ), g_ = Ka(
62743
+ ), u_ = Ka(
63250
62744
  $t.SectionMessage,
63251
62745
  Je.Loading
63252
62746
  );
63253
62747
  var vs = /* @__PURE__ */ ((e) => (e.Date = "date", e.DateTime = "datetime", e.Time = "time", e.Weekday = "weekday", e))(vs || {});
63254
- const Fz = ({
63255
- caption: e,
63256
- onClick: t,
63257
- "aria-label": s
63258
- }) => {
63259
- if (!e) return null;
63260
- const i = L(
63261
- "text-secondary hover:text-control-blue-hover active:text-control-blue-active",
63262
- "focus-visible:outline focus-visible:outline-focus-black"
63263
- );
63264
- return /* @__PURE__ */ h.jsx(
63265
- Md,
63266
- {
63267
- "aria-label": s,
63268
- className: i,
63269
- icon: /* @__PURE__ */ h.jsx(Rp, { size: Ve.SM, "aria-hidden": "true" }),
63270
- onClick: t,
63271
- size: Ie.Small,
63272
- tooltipProps: {
63273
- tooltip: e,
63274
- triggerClassName: "flex justify-center items-center"
63275
- }
63276
- }
63277
- );
62748
+ const yC = {
62749
+ [Ne.Primary]: {
62750
+ [ye.Solid]: "dial-kit-primary-solid-button",
62751
+ [ye.Ghost]: "dial-kit-primary-ghost-button",
62752
+ [ye.Link]: "dial-kit-primary-link-button"
62753
+ },
62754
+ [Ne.Neutral]: {
62755
+ [ye.Solid]: "dial-kit-neutral-solid-button",
62756
+ [ye.Outlined]: "dial-kit-neutral-outlined-button"
62757
+ },
62758
+ [Ne.Danger]: {
62759
+ [ye.Solid]: "dial-kit-danger-solid-button",
62760
+ [ye.Ghost]: "dial-kit-danger-ghost-button",
62761
+ [ye.Outlined]: "dial-kit-danger-outlined-button"
62762
+ },
62763
+ [Ne.Static]: {
62764
+ [ye.Solid]: "dial-kit-static-solid-button"
62765
+ },
62766
+ // TODO: remove these once we have a design for the icon button variants
62767
+ [Ne.Success]: {},
62768
+ [Ne.Secondary]: {},
62769
+ [Ne.Tertiary]: {}
62770
+ }, L0 = (e = Ne.Primary, t = ye.Solid) => {
62771
+ const s = yC[e]?.[t];
62772
+ return s || (console.warn(
62773
+ `Could not find Button styles for variant: ${e} and appearance: ${t}. Using default primary solid button styles.`
62774
+ ), yC[Ne.Primary][ye.Solid]);
62775
+ }, Ld = ({
62776
+ variant: e,
62777
+ appearance: t = ye.Solid,
62778
+ size: s = Ie.Standard,
62779
+ className: i,
62780
+ icon: n,
62781
+ tooltipProps: o,
62782
+ type: r = "button",
62783
+ ...a
62784
+ }) => {
62785
+ const l = L(
62786
+ "dial-kit-base-icon-button dial-kit-base-button",
62787
+ e && L0(e, t),
62788
+ s === Ie.Small ? "size-[24px]" : "size-[40px] dial-kit-enhanced-target",
62789
+ i
62790
+ ), c = /* @__PURE__ */ h.jsx(
62791
+ "button",
62792
+ {
62793
+ ...a,
62794
+ type: r,
62795
+ className: l,
62796
+ "aria-label": er(
62797
+ a["aria-label"],
62798
+ o?.tooltip
62799
+ ),
62800
+ children: n
62801
+ }
62802
+ );
62803
+ return o ? /* @__PURE__ */ h.jsx(Ct, { ...o, children: c }) : c;
62804
+ }, vz = ({
62805
+ caption: e,
62806
+ onClick: t,
62807
+ "aria-label": s
62808
+ }) => {
62809
+ if (!e) return null;
62810
+ const i = L(
62811
+ "text-secondary hover:text-control-blue-hover active:text-control-blue-active",
62812
+ "focus-visible:outline focus-visible:outline-focus-black"
62813
+ );
62814
+ return /* @__PURE__ */ h.jsx(
62815
+ Ld,
62816
+ {
62817
+ "aria-label": s,
62818
+ className: i,
62819
+ icon: /* @__PURE__ */ h.jsx(Rp, { size: Ve.SM, "aria-hidden": "true" }),
62820
+ onClick: t,
62821
+ size: Ie.Small,
62822
+ tooltipProps: {
62823
+ tooltip: e,
62824
+ triggerClassName: "flex justify-center items-center"
62825
+ }
62826
+ }
62827
+ );
63278
62828
  }, Xo = ({
63279
62829
  label: e,
63280
62830
  required: t,
@@ -63301,29 +62851,58 @@ const Fz = ({
63301
62851
  ]
63302
62852
  }
63303
62853
  ),
63304
- /* @__PURE__ */ h.jsx(Fz, { caption: i })
63305
- ] }) : null, Ez = "en-GB", Dz = {
62854
+ /* @__PURE__ */ h.jsx(vz, { caption: i })
62855
+ ] }) : null, wf = (e, t) => ({ appearance: i, ...n }) => /* @__PURE__ */ h.jsx(
62856
+ Ld,
62857
+ {
62858
+ ...n,
62859
+ variant: e,
62860
+ appearance: i || t
62861
+ }
62862
+ ), N0 = (e, t) => ({ variant: i, ...n }) => /* @__PURE__ */ h.jsx(
62863
+ Ld,
62864
+ {
62865
+ ...n,
62866
+ variant: i || t,
62867
+ appearance: e
62868
+ }
62869
+ ), h_ = wf(
62870
+ Ne.Primary,
62871
+ ye.Solid
62872
+ ), p_ = wf(
62873
+ Ne.Neutral,
62874
+ ye.Solid
62875
+ ), g_ = wf(
62876
+ Ne.Danger,
62877
+ ye.Ghost
62878
+ ), bf = N0(
62879
+ ye.Ghost,
62880
+ Ne.Primary
62881
+ ), SC = N0(
62882
+ ye.Solid,
62883
+ Ne.Static
62884
+ ), Cz = "en-GB", wz = {
63306
62885
  [vs.Date]: "Select date",
63307
62886
  [vs.DateTime]: "Select date and time",
63308
62887
  [vs.Time]: "--:--",
63309
62888
  [vs.Weekday]: "Select day"
63310
- }, _0 = (
62889
+ }, O0 = (
63311
62890
  // TODO: check after design review for input
63312
62891
  "flex w-full items-center justify-between gap-2 rounded-xl border border-secondary bg-layer-0 px-4 py-3 dial-small-text text-primary outline-none transition-colors hover:border-accent-primary focus-within:border-accent-primary"
63313
- ), U0 = (
62892
+ ), H0 = (
63314
62893
  // TODO: check after design review for input
63315
62894
  "!cursor-not-allowed !border-transparent bg-controls-disable text-controls-primary-disable hover:!border-transparent"
63316
- ), $0 = "!border-error", Pz = "z-[53] flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-3 py-4 shadow-md", Tz = "flex size-8 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-none focus-visible:outline focus-visible:outline-focus-black", Iz = "bg-control-accent text-control-permanent", kz = "text-accent dial-small-semi-text", Mz = "text-control-disable-alpha", q0 = "text-secondary", Az = /* @__PURE__ */ h.jsx(
62895
+ ), B0 = "!border-error", bz = "z-[53] flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-3 py-4 shadow-md", xz = "flex size-8 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-none focus-visible:outline focus-visible:outline-focus-black", yz = "bg-control-accent text-control-permanent", Sz = "text-accent dial-small-semi-text", Rz = "text-control-disable-alpha", G0 = "text-secondary", Fz = /* @__PURE__ */ h.jsx(
63317
62896
  lS,
63318
62897
  {
63319
62898
  size: Ve.MD,
63320
62899
  "aria-hidden": "true",
63321
- className: q0
62900
+ className: G0
63322
62901
  }
63323
62902
  ), RC = {
63324
62903
  prev: /* @__PURE__ */ h.jsx(OC, { size: Ve.SM, "aria-hidden": "true" }),
63325
62904
  next: /* @__PURE__ */ h.jsx(Xs, { size: Ve.SM, "aria-hidden": "true" })
63326
- }, Lz = (e, t) => {
62905
+ }, Ez = (e, t) => {
63327
62906
  const i = (new Date(e, t, 1).getDay() + 6) % 7, n = new Date(e, t, 1 - i);
63328
62907
  return Array.from({ length: 42 }, (o, r) => {
63329
62908
  const a = new Date(n);
@@ -63348,11 +62927,11 @@ const Fz = ({
63348
62927
  if (i > n) return !0;
63349
62928
  }
63350
62929
  return !1;
63351
- }, Nz = (e, t) => e.toLocaleDateString(t, { month: "long", year: "numeric" }), DC = (e, t) => e.toLocaleDateString(t, {
62930
+ }, Dz = (e, t) => e.toLocaleDateString(t, { month: "long", year: "numeric" }), DC = (e, t) => e.toLocaleDateString(t, {
63352
62931
  day: "numeric",
63353
62932
  month: "short",
63354
62933
  year: "numeric"
63355
- }), Oz = (e, t) => e.toLocaleDateString(t, {
62934
+ }), Pz = (e, t) => e.toLocaleDateString(t, {
63356
62935
  weekday: "long",
63357
62936
  day: "numeric",
63358
62937
  month: "long",
@@ -63360,7 +62939,7 @@ const Fz = ({
63360
62939
  }), Ul = (e) => `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`, PC = (e, t) => {
63361
62940
  const [s, i] = t.split(":").map(Number), n = new Date(e);
63362
62941
  return n.setHours(s || 0, i || 0, 0, 0), n;
63363
- }, Hz = (e) => /^([01]\d|2[0-3]):[0-5]\d$/.test(e), Bz = (e) => {
62942
+ }, Tz = (e) => /^([01]\d|2[0-3]):[0-5]\d$/.test(e), Iz = (e) => {
63364
62943
  const t = e.replace(/\D/g, "").slice(0, 4);
63365
62944
  let s = t.slice(0, 2);
63366
62945
  const i = t.slice(2, 4);
@@ -63370,17 +62949,17 @@ const Fz = ({
63370
62949
  "0"
63371
62950
  );
63372
62951
  return `${s}:${n}`;
63373
- }, K0 = 5, Y0 = (e) => e.charAt(0).toUpperCase() + e.slice(1), Gz = (e) => Array.from({ length: 7 }, (t, s) => {
63374
- const i = new Date(Date.UTC(1970, 0, K0 + s));
63375
- return Y0(
62952
+ }, V0 = 5, j0 = (e) => e.charAt(0).toUpperCase() + e.slice(1), kz = (e) => Array.from({ length: 7 }, (t, s) => {
62953
+ const i = new Date(Date.UTC(1970, 0, V0 + s));
62954
+ return j0(
63376
62955
  i.toLocaleDateString(e, { weekday: "short", timeZone: "UTC" })
63377
62956
  );
63378
- }), Vz = (e) => Array.from({ length: 7 }, (t, s) => {
63379
- const i = new Date(Date.UTC(1970, 0, K0 + s));
62957
+ }), Mz = (e) => Array.from({ length: 7 }, (t, s) => {
62958
+ const i = new Date(Date.UTC(1970, 0, V0 + s));
63380
62959
  return {
63381
62960
  value: String(s + 1),
63382
62961
  // ISO weekday: 1 = Monday, 7 = Sunday
63383
- label: Y0(
62962
+ label: j0(
63384
62963
  i.toLocaleDateString(e, { weekday: "long", timeZone: "UTC" })
63385
62964
  )
63386
62965
  };
@@ -63419,10 +62998,10 @@ const Fz = ({
63419
62998
  "aria-labelledby": a,
63420
62999
  tabIndex: t ? -1 : 0,
63421
63000
  className: L(
63422
- _0,
63001
+ O0,
63423
63002
  "focus-visible:outline focus-visible:outline-focus-black",
63424
- s && $0,
63425
- t && U0,
63003
+ s && B0,
63004
+ t && H0,
63426
63005
  o
63427
63006
  ),
63428
63007
  ...C(),
@@ -63442,7 +63021,7 @@ const Fz = ({
63442
63021
  ref: u.setFloating,
63443
63022
  style: p,
63444
63023
  "aria-label": l,
63445
- className: L(Pz, n),
63024
+ className: L(bz, n),
63446
63025
  ...w(),
63447
63026
  children: r(() => d(!1))
63448
63027
  }
@@ -63475,13 +63054,13 @@ const Fz = ({
63475
63054
  disabled: i,
63476
63055
  value: l,
63477
63056
  onChange: (d) => {
63478
- const u = Bz(d.target.value);
63479
- c(u), Hz(u) && s(u);
63057
+ const u = Iz(d.target.value);
63058
+ c(u), Tz(u) && s(u);
63480
63059
  },
63481
63060
  className: L(
63482
- _0,
63483
- n && $0,
63484
- i && U0,
63061
+ O0,
63062
+ n && B0,
63063
+ i && H0,
63485
63064
  o
63486
63065
  )
63487
63066
  }
@@ -63498,16 +63077,16 @@ const Fz = ({
63498
63077
  className: l,
63499
63078
  minDate: c,
63500
63079
  maxDate: d,
63501
- locale: u = Ez,
63080
+ locale: u = Cz,
63502
63081
  fieldClassName: p
63503
63082
  }) => {
63504
- const g = n ?? Dz[e], f = t instanceof Date ? t : null, m = Qs(), v = a ?? m, C = `${v}-label`, w = i ? `${C} ${v}` : void 0, [b, x] = N(
63083
+ const g = n ?? wz[e], f = t instanceof Date ? t : null, m = Qs(), v = a ?? m, C = `${v}-label`, w = i ? `${C} ${v}` : void 0, [b, x] = N(
63505
63084
  () => f ?? /* @__PURE__ */ new Date()
63506
63085
  ), y = W(() => /* @__PURE__ */ new Date(), []), S = W(
63507
- () => Gz(u),
63086
+ () => kz(u),
63508
63087
  [u]
63509
- ), R = W(() => Vz(u), [u]), F = W(
63510
- () => Lz(b.getFullYear(), b.getMonth()),
63088
+ ), R = W(() => Mz(u), [u]), F = W(
63089
+ () => Ez(b.getFullYear(), b.getMonth()),
63511
63090
  [b]
63512
63091
  ), D = (T) => {
63513
63092
  x(
@@ -63567,7 +63146,7 @@ const Fz = ({
63567
63146
  {
63568
63147
  size: Ve.MD,
63569
63148
  "aria-hidden": "true",
63570
- className: q0
63149
+ className: G0
63571
63150
  }
63572
63151
  )
63573
63152
  ] }),
@@ -63623,12 +63202,12 @@ const Fz = ({
63623
63202
  children: I()
63624
63203
  }
63625
63204
  ),
63626
- Az
63205
+ Fz
63627
63206
  ] }),
63628
63207
  panel: (T) => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
63629
63208
  /* @__PURE__ */ h.jsxs("div", { className: "flex items-center justify-between", children: [
63630
63209
  /* @__PURE__ */ h.jsx(
63631
- aC,
63210
+ SC,
63632
63211
  {
63633
63212
  "aria-label": "Previous month",
63634
63213
  icon: RC.prev,
@@ -63641,214 +63220,642 @@ const Fz = ({
63641
63220
  {
63642
63221
  className: "dial-small-semi-text text-primary",
63643
63222
  "aria-live": "polite",
63644
- children: Nz(b, u)
63223
+ children: Dz(b, u)
63224
+ }
63225
+ ),
63226
+ /* @__PURE__ */ h.jsx(
63227
+ SC,
63228
+ {
63229
+ "aria-label": "Next month",
63230
+ icon: RC.next,
63231
+ size: Ie.Small,
63232
+ onClick: () => D(1)
63233
+ }
63234
+ )
63235
+ ] }),
63236
+ /* @__PURE__ */ h.jsxs("div", { className: "grid grid-cols-7 gap-y-1 text-center", children: [
63237
+ S.map((O) => /* @__PURE__ */ h.jsx(
63238
+ "div",
63239
+ {
63240
+ "aria-hidden": "true",
63241
+ className: "dial-tiny-text py-1 text-secondary",
63242
+ children: O
63243
+ },
63244
+ O
63245
+ )),
63246
+ F.map((O) => {
63247
+ const A = O.getMonth() !== b.getMonth(), V = FC(O, f), _ = FC(O, y), B = EC(O, c, d);
63248
+ return /* @__PURE__ */ h.jsx(
63249
+ "button",
63250
+ {
63251
+ type: "button",
63252
+ disabled: B,
63253
+ "aria-label": Pz(O, u),
63254
+ "aria-pressed": V,
63255
+ "aria-current": _ ? "date" : void 0,
63256
+ className: L(
63257
+ xz,
63258
+ A && Rz,
63259
+ _ && !V && Sz,
63260
+ V && yz,
63261
+ B && "cursor-not-allowed opacity-40 hover:bg-transparent"
63262
+ ),
63263
+ onClick: () => k(O, T),
63264
+ children: O.getDate()
63265
+ },
63266
+ O.toISOString()
63267
+ );
63268
+ })
63269
+ ] }),
63270
+ e === vs.DateTime && /* @__PURE__ */ h.jsxs("div", { className: "flex items-center justify-between gap-3 border-t border-secondary pt-3", children: [
63271
+ /* @__PURE__ */ h.jsx("span", { className: "dial-small-text text-primary", children: "Time" }),
63272
+ /* @__PURE__ */ h.jsx(
63273
+ IC,
63274
+ {
63275
+ ariaLabel: "Time",
63276
+ value: f ? Ul(f) : "",
63277
+ onChange: E,
63278
+ className: "w-[120px] px-3 py-1.5"
63645
63279
  }
63280
+ )
63281
+ ] })
63282
+ ] })
63283
+ }
63284
+ )
63285
+ ] });
63286
+ }, m_ = ({
63287
+ segments: e,
63288
+ labelClassName: t = "dial-small-text",
63289
+ leafClassName: s = "dial-small-semi-text",
63290
+ className: i,
63291
+ ariaLabel: n = "Folder path"
63292
+ }) => {
63293
+ const o = /* @__PURE__ */ h.jsx(
63294
+ He,
63295
+ {
63296
+ icon: /* @__PURE__ */ h.jsx(Xc, { size: Ve.SM, "aria-hidden": "true" }),
63297
+ className: "text-secondary"
63298
+ }
63299
+ ), r = e.map((a, l) => ({
63300
+ label: l === e.length - 1 ? /* @__PURE__ */ h.jsx("span", { className: s, children: a }) : a,
63301
+ disabled: !0,
63302
+ ...l === 0 ? { iconBefore: o } : {}
63303
+ }));
63304
+ return /* @__PURE__ */ h.jsx(
63305
+ Jx,
63306
+ {
63307
+ className: i,
63308
+ ariaLabel: n,
63309
+ separator: /* @__PURE__ */ h.jsx(
63310
+ He,
63311
+ {
63312
+ icon: /* @__PURE__ */ h.jsx(
63313
+ Xs,
63314
+ {
63315
+ size: 14,
63316
+ "aria-hidden": "true",
63317
+ className: "rtl:scale-x-[-1]"
63318
+ }
63319
+ ),
63320
+ className: "text-secondary"
63321
+ }
63322
+ ),
63323
+ pathItems: r,
63324
+ labelClassName: L(
63325
+ t,
63326
+ "text-secondary",
63327
+ "!cursor-default"
63328
+ )
63329
+ }
63330
+ );
63331
+ }, Nd = ({
63332
+ label: e,
63333
+ variant: t,
63334
+ appearance: s = ye.Solid,
63335
+ size: i = Ie.Standard,
63336
+ className: n,
63337
+ textClassName: o,
63338
+ iconAfter: r,
63339
+ iconBefore: a,
63340
+ type: l = "button",
63341
+ tooltipProps: c,
63342
+ ...d
63343
+ }) => {
63344
+ const u = L(
63345
+ "dial-kit-base-button",
63346
+ t && L0(t, s),
63347
+ i === Ie.Small ? "dial-tiny-semi-text" : "dial-small-paragraph-semi-text",
63348
+ i === Ie.Small ? "h-[24px] gap-1" : "h-[40px] gap-2",
63349
+ s !== ye.Link && (i === Ie.Small ? "px-2" : "px-4"),
63350
+ // A link-appearance button sits inline in text, where WCAG 2.5.5 exempts
63351
+ // it and an expanded target would overlap the surrounding copy.
63352
+ i !== Ie.Small && s !== ye.Link && "dial-kit-enhanced-target",
63353
+ n
63354
+ ), p = e ? void 0 : c?.tooltip, g = /* @__PURE__ */ h.jsxs(
63355
+ "button",
63356
+ {
63357
+ ...d,
63358
+ type: l,
63359
+ className: u,
63360
+ "aria-label": er(
63361
+ typeof e == "string" ? e : void 0,
63362
+ d["aria-label"],
63363
+ p
63364
+ ),
63365
+ children: [
63366
+ /* @__PURE__ */ h.jsx(He, { icon: a }),
63367
+ e && /* @__PURE__ */ h.jsx("span", { className: o, children: e }),
63368
+ /* @__PURE__ */ h.jsx(He, { icon: r })
63369
+ ]
63370
+ }
63371
+ );
63372
+ return c ? /* @__PURE__ */ h.jsx(Ct, { ...c, children: g }) : g;
63373
+ }, xf = (e, t) => ({ appearance: i, ...n }) => /* @__PURE__ */ h.jsx(
63374
+ Nd,
63375
+ {
63376
+ ...n,
63377
+ variant: e,
63378
+ appearance: i || t
63379
+ }
63380
+ ), yf = (e, t) => ({ variant: i, ...n }) => /* @__PURE__ */ h.jsx(
63381
+ Nd,
63382
+ {
63383
+ ...n,
63384
+ variant: i || t,
63385
+ appearance: e
63386
+ }
63387
+ ), v_ = xf(
63388
+ Ne.Primary,
63389
+ ye.Solid
63390
+ ), Az = xf(
63391
+ Ne.Neutral,
63392
+ ye.Solid
63393
+ ), C_ = xf(
63394
+ Ne.Danger,
63395
+ ye.Solid
63396
+ ), w_ = yf(
63397
+ ye.Link,
63398
+ Ne.Primary
63399
+ ), b_ = yf(
63400
+ ye.Ghost,
63401
+ Ne.Primary
63402
+ ), x_ = yf(
63403
+ ye.Outlined,
63404
+ Ne.Neutral
63405
+ ), y_ = ({
63406
+ className: e,
63407
+ icon: t,
63408
+ tooltipProps: s,
63409
+ type: i = "button",
63410
+ ...n
63411
+ }) => {
63412
+ const o = L(
63413
+ "flex items-center justify-center rounded-full size-[40px]",
63414
+ "dial-kit-enhanced-target",
63415
+ "dial-kit-fab-button disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-focus-black outline-offset-0",
63416
+ e
63417
+ ), r = /* @__PURE__ */ h.jsx(
63418
+ "button",
63419
+ {
63420
+ ...n,
63421
+ type: i,
63422
+ className: o,
63423
+ "aria-label": er(
63424
+ n["aria-label"],
63425
+ s?.tooltip
63426
+ ),
63427
+ children: t || /* @__PURE__ */ h.jsx(cS, { size: 24, stroke: 1.5, "aria-hidden": "true" })
63428
+ }
63429
+ );
63430
+ return s ? /* @__PURE__ */ h.jsx(Ct, { ...s, children: r }) : r;
63431
+ }, z0 = "rounded-xl bg-layer-raised p-1 shadow-md", W0 = L(
63432
+ z0,
63433
+ "w-max"
63434
+ ), _0 = L(
63435
+ "flex w-full cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg",
63436
+ "dial-small-text text-primary truncate",
63437
+ "hover:bg-accent-primary-alpha",
63438
+ "focus-visible:outline focus-visible:outline-focus-black"
63439
+ ), Lz = "bg-accent-primary-alpha", U0 = "opacity-75", $0 = 4, Nz = L(
63440
+ "flex items-center gap-2 align-middle",
63441
+ "h-auto px-0 bg-transparent border-0"
63442
+ ), Oz = L(
63443
+ "z-[53] focus-visible:outline-none",
63444
+ z0
63445
+ ), Hz = W0, bp = _0, xp = L(
63446
+ U0,
63447
+ "!cursor-not-allowed"
63448
+ ), q0 = "text-error", Bz = "my-1 border-t border-secondary", Io = $0, Gz = /* @__PURE__ */ h.jsx(Xs, { size: Ve.SM, "aria-hidden": "true" }), K0 = ({
63449
+ ariaLabel: e = "Close",
63450
+ className: t,
63451
+ size: s = Ie.Small,
63452
+ onClose: i,
63453
+ ...n
63454
+ }) => /* @__PURE__ */ h.jsx(
63455
+ bf,
63456
+ {
63457
+ ...n,
63458
+ size: s,
63459
+ "aria-label": e,
63460
+ className: t,
63461
+ onClick: i,
63462
+ icon: /* @__PURE__ */ h.jsx(
63463
+ Si,
63464
+ {
63465
+ size: s === Ie.Small ? Ve.SM : Ve.MD,
63466
+ "aria-hidden": "true"
63467
+ }
63468
+ )
63469
+ }
63470
+ ), Vz = ({
63471
+ item: e,
63472
+ onRootClose: t
63473
+ }) => {
63474
+ const {
63475
+ isOpen: s,
63476
+ refs: i,
63477
+ floatingStyles: n,
63478
+ context: o,
63479
+ getReferenceProps: r,
63480
+ getFloatingProps: a
63481
+ } = Td(Io, "menu", !!e.disabled), l = P(
63482
+ (c) => (d) => {
63483
+ c.disabled || (c.onClick?.({ key: c.key, domEvent: d }), t());
63484
+ },
63485
+ [t]
63486
+ );
63487
+ return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
63488
+ /* @__PURE__ */ h.jsxs(
63489
+ "button",
63490
+ {
63491
+ ref: i.setReference,
63492
+ type: "button",
63493
+ role: "menuitem",
63494
+ "aria-haspopup": "menu",
63495
+ "aria-expanded": s,
63496
+ "aria-disabled": !!e.disabled,
63497
+ disabled: e.disabled,
63498
+ className: L(
63499
+ bp,
63500
+ e.disabled && xp,
63501
+ e.className
63502
+ ),
63503
+ ...r(),
63504
+ children: [
63505
+ e.icon && /* @__PURE__ */ h.jsx("span", { className: L(e.disabled && "text-secondary"), children: /* @__PURE__ */ h.jsx(He, { icon: e.icon }) }),
63506
+ /* @__PURE__ */ h.jsx(
63507
+ "span",
63508
+ {
63509
+ className: L(
63510
+ "flex-1 truncate text-start",
63511
+ e.disabled && "text-secondary"
63512
+ ),
63513
+ children: e.label
63514
+ }
63515
+ ),
63516
+ /* @__PURE__ */ h.jsx(
63517
+ "span",
63518
+ {
63519
+ className: L(
63520
+ "ml-auto shrink-0",
63521
+ e.disabled && "text-secondary"
63522
+ ),
63523
+ children: Gz
63524
+ }
63525
+ )
63526
+ ]
63527
+ }
63528
+ ),
63529
+ s && /* @__PURE__ */ h.jsx(
63530
+ Id,
63531
+ {
63532
+ refs: i,
63533
+ floatingStyles: n,
63534
+ context: o,
63535
+ getFloatingProps: a,
63536
+ role: "menu",
63537
+ surfaceClassName: Hz,
63538
+ children: e.children.map((c) => /* @__PURE__ */ h.jsxs(
63539
+ "button",
63540
+ {
63541
+ role: "menuitem",
63542
+ type: "button",
63543
+ "aria-disabled": !!c.disabled,
63544
+ disabled: c.disabled,
63545
+ className: L(
63546
+ bp,
63547
+ c.disabled && xp,
63548
+ c.danger && q0,
63549
+ c.className
63550
+ ),
63551
+ onClick: l(c),
63552
+ children: [
63553
+ c.icon && /* @__PURE__ */ h.jsx(
63554
+ "span",
63555
+ {
63556
+ className: L(
63557
+ c.danger && "text-error",
63558
+ c.disabled && "text-secondary"
63559
+ ),
63560
+ children: /* @__PURE__ */ h.jsx(He, { icon: c.icon })
63561
+ }
63562
+ ),
63563
+ /* @__PURE__ */ h.jsx(
63564
+ "span",
63565
+ {
63566
+ className: L(
63567
+ "flex-1 truncate text-start",
63568
+ c.danger && "text-error",
63569
+ c.disabled && "text-secondary"
63570
+ ),
63571
+ children: c.label
63572
+ }
63573
+ )
63574
+ ]
63575
+ },
63576
+ c.key
63577
+ ))
63578
+ }
63579
+ )
63580
+ ] });
63581
+ }, jz = (e) => "clientWidth" in e ? e.clientWidth : e.getBoundingClientRect?.()?.width ?? 0, Y0 = ({
63582
+ children: e,
63583
+ items: t,
63584
+ onItemClick: s,
63585
+ menuHeader: i,
63586
+ menuFooter: n,
63587
+ renderOverlay: o,
63588
+ trigger: r = [Nt.Click],
63589
+ placement: a,
63590
+ disabled: l = !1,
63591
+ open: c,
63592
+ defaultOpen: d = !1,
63593
+ onOpenChange: u,
63594
+ closable: p = !1,
63595
+ onClose: g,
63596
+ className: f,
63597
+ overlayContentClassName: m,
63598
+ separatorClassName: v,
63599
+ listClassName: C,
63600
+ outsidePressIgnoreRef: w,
63601
+ outsideClosable: b = !0,
63602
+ allowedPlacements: x,
63603
+ anchorToMouse: y = !1,
63604
+ matchReferenceWidth: S = !0,
63605
+ maxDropdownHeight: R
63606
+ }) => {
63607
+ const [F, D] = N(d), k = c !== void 0, E = k ? !!c : F, I = z(null), T = P(
63608
+ (M) => {
63609
+ k || D(M), u?.(M);
63610
+ },
63611
+ [k, u]
63612
+ ), O = Qs(), A = a === void 0, { refs: V, floatingStyles: _, context: B } = Xn({
63613
+ placement: a,
63614
+ open: E,
63615
+ onOpenChange: T,
63616
+ whileElementsMounted: Aa,
63617
+ middleware: [
63618
+ La({ mainAxis: Io, crossAxis: 0 }),
63619
+ A ? VC({
63620
+ alignment: "start",
63621
+ crossAxis: !0,
63622
+ padding: Io,
63623
+ allowedPlacements: x
63624
+ }) : Na({ padding: Io }),
63625
+ Oa({ padding: Io }),
63626
+ jC({
63627
+ padding: Io,
63628
+ apply({ availableWidth: M, availableHeight: q, elements: be }) {
63629
+ const Pe = be.floating, K = jz(be.reference);
63630
+ Pe.style.setProperty(
63631
+ "--fui-available-height",
63632
+ `${Math.floor(q)}px`
63633
+ ), Pe.style.setProperty(
63634
+ "--reference-width",
63635
+ S ? `${Math.round(K)}px` : "0px"
63636
+ ), S ? Pe.style.minWidth = `${Math.round(K)}px` : Pe.style.removeProperty("min-width"), Pe.style.maxWidth = `${Math.floor(M)}px`;
63637
+ const fe = Math.floor(q);
63638
+ Pe.style.maxHeight = `${R ? Math.min(fe, R) : fe}px`;
63639
+ }
63640
+ })
63641
+ ]
63642
+ }), Y = sd(B, {
63643
+ enabled: r.includes(Nt.Click) && !l
63644
+ }), G = ed(B, {
63645
+ enabled: r.includes(Nt.Hover) && !l,
63646
+ move: !1,
63647
+ restMs: 40,
63648
+ delay: { open: 80, close: 80 }
63649
+ }), H = Jn(B, {
63650
+ bubbles: !0,
63651
+ referencePress: !1,
63652
+ outsidePress: (M) => {
63653
+ if (!b) return !1;
63654
+ const q = M.target;
63655
+ return !(w?.current && q instanceof Node && w.current.contains(q));
63656
+ }
63657
+ }), U = eo(B, { role: "menu" }), { getReferenceProps: Q, getFloatingProps: se } = to([
63658
+ Y,
63659
+ G,
63660
+ H,
63661
+ U
63662
+ ]), Fe = P(
63663
+ (M, q) => {
63664
+ V.setPositionReference({
63665
+ getBoundingClientRect: () => ({
63666
+ width: 0,
63667
+ height: 0,
63668
+ x: M,
63669
+ y: q,
63670
+ top: q,
63671
+ left: M,
63672
+ right: M,
63673
+ bottom: q
63674
+ })
63675
+ });
63676
+ },
63677
+ [V]
63678
+ ), ee = P(
63679
+ (M) => {
63680
+ !r.includes(Nt.ContextMenu) || l || (M.preventDefault(), y && (Fe(M.clientX, M.clientY), I.current = document.elementFromPoint(
63681
+ M.clientX,
63682
+ M.clientY
63683
+ )), T(!0));
63684
+ },
63685
+ [y, l, T, Fe, r]
63686
+ ), ge = P(
63687
+ (M) => {
63688
+ !y || l || (r.includes(Nt.ContextMenu) && E && T(!1), Fe(M.clientX, M.clientY), I.current = document.elementFromPoint(
63689
+ M.clientX,
63690
+ M.clientY
63691
+ ));
63692
+ },
63693
+ [y, l, Fe, E, r, T]
63694
+ );
63695
+ Se(() => {
63696
+ l && E && T(!1);
63697
+ }, [l, E, T]);
63698
+ const Me = P(
63699
+ (M) => (q) => {
63700
+ M.disabled || (M.onClick?.({ key: M.key, domEvent: q }), s?.({ key: M.key, domEvent: q }), T(!1));
63701
+ },
63702
+ [s, T]
63703
+ ), ie = W(() => o ? o() : t ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
63704
+ i && /* @__PURE__ */ h.jsx(h.Fragment, { children: typeof i == "function" ? i() : i }),
63705
+ /* @__PURE__ */ h.jsx(
63706
+ "div",
63707
+ {
63708
+ role: "none",
63709
+ className: L("py-1", m),
63710
+ "aria-label": "dropdown",
63711
+ children: t.map((M) => M.type === Zn.Divider ? /* @__PURE__ */ h.jsx(
63712
+ "div",
63713
+ {
63714
+ role: "separator",
63715
+ className: L(
63716
+ Bz,
63717
+ v
63718
+ )
63719
+ },
63720
+ M.key
63721
+ ) : M.type === Zn.PlainText ? /* @__PURE__ */ h.jsx(
63722
+ "div",
63723
+ {
63724
+ className: L(
63725
+ "px-3 py-2 text-secondary dial-caption-text",
63726
+ M.className
63727
+ ),
63728
+ children: M.label
63729
+ },
63730
+ M.key
63731
+ ) : M.children?.length ? /* @__PURE__ */ h.jsx(
63732
+ Vz,
63733
+ {
63734
+ item: M,
63735
+ onRootClose: () => T(!1)
63736
+ },
63737
+ M.key
63738
+ ) : /* @__PURE__ */ h.jsxs(
63739
+ "button",
63740
+ {
63741
+ role: "menuitem",
63742
+ type: "button",
63743
+ "aria-disabled": !!M.disabled,
63744
+ className: L(
63745
+ bp,
63746
+ M.disabled && xp,
63747
+ M.danger && q0,
63748
+ M.className
63749
+ ),
63750
+ disabled: M.disabled,
63751
+ onClick: Me(M),
63752
+ children: [
63753
+ M.icon && /* @__PURE__ */ h.jsx(
63754
+ "span",
63755
+ {
63756
+ className: L(
63757
+ M.danger && "text-error",
63758
+ M.disabled && "text-secondary"
63759
+ ),
63760
+ children: /* @__PURE__ */ h.jsx(He, { icon: M.icon })
63761
+ }
63762
+ ),
63763
+ /* @__PURE__ */ h.jsx(
63764
+ "span",
63765
+ {
63766
+ className: L(
63767
+ "flex-1 truncate text-start",
63768
+ M.danger && "text-error",
63769
+ M.disabled && "text-secondary"
63770
+ ),
63771
+ children: M.label
63772
+ }
63773
+ )
63774
+ ]
63775
+ },
63776
+ M.key
63777
+ ))
63778
+ }
63779
+ ),
63780
+ n && /* @__PURE__ */ h.jsx(h.Fragment, { children: typeof n == "function" ? n() : n })
63781
+ ] }) : null, [
63782
+ Me,
63783
+ t,
63784
+ n,
63785
+ i,
63786
+ o,
63787
+ T,
63788
+ m,
63789
+ v
63790
+ ]), pe = Q({
63791
+ onContextMenu: ee,
63792
+ onMouseDown: ge
63793
+ });
63794
+ return Se(() => {
63795
+ if (!E) return;
63796
+ const M = V.reference.current;
63797
+ let q = null;
63798
+ if (M instanceof Element ? q = M : I.current instanceof Element && (q = I.current), !q) return;
63799
+ const be = new IntersectionObserver(
63800
+ ([Pe]) => {
63801
+ Pe.isIntersecting || T(!1);
63802
+ },
63803
+ { root: null, threshold: 0 }
63804
+ );
63805
+ return be.observe(q), () => be.disconnect();
63806
+ }, [E, V.reference, T]), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
63807
+ /* @__PURE__ */ h.jsx(
63808
+ "span",
63809
+ {
63810
+ ref: V.setReference,
63811
+ className: L(
63812
+ Nz,
63813
+ l && "!cursor-not-allowed opacity-75",
63814
+ f
63815
+ ),
63816
+ "aria-haspopup": "menu",
63817
+ "aria-expanded": E,
63818
+ "aria-controls": O,
63819
+ ...pe,
63820
+ children: e
63821
+ }
63822
+ ),
63823
+ E && /* @__PURE__ */ h.jsx(so, { children: /* @__PURE__ */ h.jsx(
63824
+ ur,
63825
+ {
63826
+ context: B,
63827
+ modal: !1,
63828
+ initialFocus: -1,
63829
+ returnFocus: !0,
63830
+ children: /* @__PURE__ */ h.jsxs(
63831
+ "div",
63832
+ {
63833
+ id: O,
63834
+ ref: V.setFloating,
63835
+ style: _,
63836
+ className: L(
63837
+ Oz,
63838
+ !S && "w-max",
63839
+ C
63646
63840
  ),
63647
- /* @__PURE__ */ h.jsx(
63648
- aC,
63649
- {
63650
- "aria-label": "Next month",
63651
- icon: RC.next,
63652
- size: Ie.Small,
63653
- onClick: () => D(1)
63654
- }
63655
- )
63656
- ] }),
63657
- /* @__PURE__ */ h.jsxs("div", { className: "grid grid-cols-7 gap-y-1 text-center", children: [
63658
- S.map((O) => /* @__PURE__ */ h.jsx(
63659
- "div",
63660
- {
63661
- "aria-hidden": "true",
63662
- className: "dial-tiny-text py-1 text-secondary",
63663
- children: O
63664
- },
63665
- O
63666
- )),
63667
- F.map((O) => {
63668
- const A = O.getMonth() !== b.getMonth(), V = FC(O, f), _ = FC(O, y), B = EC(O, c, d);
63669
- return /* @__PURE__ */ h.jsx(
63670
- "button",
63841
+ ...se(),
63842
+ children: [
63843
+ p && /* @__PURE__ */ h.jsx("div", { className: "flex items-center justify-between px-2 pt-2", children: /* @__PURE__ */ h.jsx(
63844
+ K0,
63671
63845
  {
63672
- type: "button",
63673
- disabled: B,
63674
- "aria-label": Oz(O, u),
63675
- "aria-pressed": V,
63676
- "aria-current": _ ? "date" : void 0,
63677
- className: L(
63678
- Tz,
63679
- A && Mz,
63680
- _ && !V && kz,
63681
- V && Iz,
63682
- B && "cursor-not-allowed opacity-40 hover:bg-transparent"
63683
- ),
63684
- onClick: () => k(O, T),
63685
- children: O.getDate()
63686
- },
63687
- O.toISOString()
63688
- );
63689
- })
63690
- ] }),
63691
- e === vs.DateTime && /* @__PURE__ */ h.jsxs("div", { className: "flex items-center justify-between gap-3 border-t border-secondary pt-3", children: [
63692
- /* @__PURE__ */ h.jsx("span", { className: "dial-small-text text-primary", children: "Time" }),
63693
- /* @__PURE__ */ h.jsx(
63694
- IC,
63695
- {
63696
- ariaLabel: "Time",
63697
- value: f ? Ul(f) : "",
63698
- onChange: E,
63699
- className: "w-[120px] px-3 py-1.5"
63700
- }
63701
- )
63702
- ] })
63703
- ] })
63846
+ ariaLabel: "Close dropdown",
63847
+ onClose: (M) => {
63848
+ g?.(M), T(!1);
63849
+ }
63850
+ }
63851
+ ) }),
63852
+ ie
63853
+ ]
63854
+ }
63855
+ )
63704
63856
  }
63705
- )
63857
+ ) })
63706
63858
  ] });
63707
- }, m_ = ({
63708
- segments: e,
63709
- labelClassName: t = "dial-small-text",
63710
- leafClassName: s = "dial-small-semi-text",
63711
- className: i,
63712
- ariaLabel: n = "Folder path"
63713
- }) => {
63714
- const o = /* @__PURE__ */ h.jsx(
63715
- He,
63716
- {
63717
- icon: /* @__PURE__ */ h.jsx(Xc, { size: Ve.SM, "aria-hidden": "true" }),
63718
- className: "text-secondary"
63719
- }
63720
- ), r = e.map((a, l) => ({
63721
- label: l === e.length - 1 ? /* @__PURE__ */ h.jsx("span", { className: s, children: a }) : a,
63722
- disabled: !0,
63723
- ...l === 0 ? { iconBefore: o } : {}
63724
- }));
63725
- return /* @__PURE__ */ h.jsx(
63726
- Jx,
63727
- {
63728
- className: i,
63729
- ariaLabel: n,
63730
- separator: /* @__PURE__ */ h.jsx(
63731
- He,
63732
- {
63733
- icon: /* @__PURE__ */ h.jsx(
63734
- Xs,
63735
- {
63736
- size: 14,
63737
- "aria-hidden": "true",
63738
- className: "rtl:scale-x-[-1]"
63739
- }
63740
- ),
63741
- className: "text-secondary"
63742
- }
63743
- ),
63744
- pathItems: r,
63745
- labelClassName: L(
63746
- t,
63747
- "text-secondary",
63748
- "!cursor-default"
63749
- )
63750
- }
63751
- );
63752
- }, Nd = ({
63753
- label: e,
63754
- variant: t,
63755
- appearance: s = ye.Solid,
63756
- size: i = Ie.Standard,
63757
- className: n,
63758
- textClassName: o,
63759
- iconAfter: r,
63760
- iconBefore: a,
63761
- type: l = "button",
63762
- tooltipProps: c,
63763
- ...d
63764
- }) => {
63765
- const u = L(
63766
- "dial-kit-base-button",
63767
- t && w0(t, s),
63768
- i === Ie.Small ? "dial-tiny-semi-text" : "dial-small-paragraph-semi-text",
63769
- i === Ie.Small ? "h-[24px] gap-1" : "h-[40px] gap-2",
63770
- s !== ye.Link && (i === Ie.Small ? "px-2" : "px-4"),
63771
- // A link-appearance button sits inline in text, where WCAG 2.5.5 exempts
63772
- // it and an expanded target would overlap the surrounding copy.
63773
- i !== Ie.Small && s !== ye.Link && "dial-kit-enhanced-target",
63774
- n
63775
- ), p = e ? void 0 : c?.tooltip, g = /* @__PURE__ */ h.jsxs(
63776
- "button",
63777
- {
63778
- ...d,
63779
- type: l,
63780
- className: u,
63781
- "aria-label": er(
63782
- typeof e == "string" ? e : void 0,
63783
- d["aria-label"],
63784
- p
63785
- ),
63786
- children: [
63787
- /* @__PURE__ */ h.jsx(He, { icon: a }),
63788
- e && /* @__PURE__ */ h.jsx("span", { className: o, children: e }),
63789
- /* @__PURE__ */ h.jsx(He, { icon: r })
63790
- ]
63791
- }
63792
- );
63793
- return c ? /* @__PURE__ */ h.jsx(Ct, { ...c, children: g }) : g;
63794
- }, xf = (e, t) => ({ appearance: i, ...n }) => /* @__PURE__ */ h.jsx(
63795
- Nd,
63796
- {
63797
- ...n,
63798
- variant: e,
63799
- appearance: i || t
63800
- }
63801
- ), yf = (e, t) => ({ variant: i, ...n }) => /* @__PURE__ */ h.jsx(
63802
- Nd,
63803
- {
63804
- ...n,
63805
- variant: i || t,
63806
- appearance: e
63807
- }
63808
- ), v_ = xf(
63809
- Ne.Primary,
63810
- ye.Solid
63811
- ), jz = xf(
63812
- Ne.Neutral,
63813
- ye.Solid
63814
- ), C_ = xf(
63815
- Ne.Danger,
63816
- ye.Solid
63817
- ), w_ = yf(
63818
- ye.Link,
63819
- Ne.Primary
63820
- ), b_ = yf(
63821
- ye.Ghost,
63822
- Ne.Primary
63823
- ), x_ = yf(
63824
- ye.Outlined,
63825
- Ne.Neutral
63826
- ), y_ = ({
63827
- className: e,
63828
- icon: t,
63829
- tooltipProps: s,
63830
- type: i = "button",
63831
- ...n
63832
- }) => {
63833
- const o = L(
63834
- "flex items-center justify-center rounded-full size-[40px]",
63835
- "dial-kit-enhanced-target",
63836
- "dial-kit-fab-button disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-focus-black outline-offset-0",
63837
- e
63838
- ), r = /* @__PURE__ */ h.jsx(
63839
- "button",
63840
- {
63841
- ...n,
63842
- type: i,
63843
- className: o,
63844
- "aria-label": er(
63845
- n["aria-label"],
63846
- s?.tooltip
63847
- ),
63848
- children: t || /* @__PURE__ */ h.jsx(cS, { size: 24, stroke: 1.5, "aria-hidden": "true" })
63849
- }
63850
- );
63851
- return s ? /* @__PURE__ */ h.jsx(Ct, { ...s, children: r }) : r;
63852
63859
  }, zz = (e) => /* @__PURE__ */ h.jsx(
63853
63860
  Js,
63854
63861
  {
@@ -63863,24 +63870,17 @@ const Fz = ({
63863
63870
  ...i
63864
63871
  }) => {
63865
63872
  const [n, o] = N(!1), r = W(() => zz(n), [n]);
63866
- return /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
63867
- jt,
63873
+ return /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(Y0, { items: s, onOpenChange: (a) => o(a), children: /* @__PURE__ */ h.jsx(
63874
+ Nd,
63868
63875
  {
63869
- items: s,
63870
- onOpenChange: (a) => o(a),
63871
- children: /* @__PURE__ */ h.jsx(
63872
- Nd,
63873
- {
63874
- ...i,
63875
- iconAfter: r,
63876
- variant: e || Ne.Primary,
63877
- appearance: t || ye.Solid,
63878
- "aria-haspopup": "menu",
63879
- "aria-expanded": n
63880
- }
63881
- )
63876
+ ...i,
63877
+ iconAfter: r,
63878
+ variant: e || Ne.Primary,
63879
+ appearance: t || ye.Solid,
63880
+ "aria-haspopup": "menu",
63881
+ "aria-expanded": n
63882
63882
  }
63883
- ) });
63883
+ ) }) });
63884
63884
  }, Wz = ({
63885
63885
  label: e,
63886
63886
  size: t,
@@ -63996,7 +63996,7 @@ const Fz = ({
63996
63996
  i === Ie.Standard ? "size-[40px]" : "size-[24px]"
63997
63997
  ),
63998
63998
  children: /* @__PURE__ */ h.jsx(
63999
- Md,
63999
+ Ld,
64000
64000
  {
64001
64001
  className: L(
64002
64002
  _z,
@@ -64194,10 +64194,10 @@ const Fz = ({
64194
64194
  i
64195
64195
  );
64196
64196
  }) }), Kz = L("w-full flex flex-col"), ga = L(
64197
- f0,
64197
+ _0,
64198
64198
  // The row ends with a check icon, so label and mark sit at opposite edges.
64199
64199
  "justify-between"
64200
- ), Yz = gV, Zz = "!max-w-[var(--reference-width)]", Qc = m0, Qz = 352, Xz = v0, Jz = g0, eW = /* @__PURE__ */ h.jsx(Xs, { size: Ve.SM, "aria-hidden": "true" }), tW = "text-secondary transition-transform", sW = 8, iW = /* @__PURE__ */ h.jsx(BC, { size: Ve.MD, "aria-hidden": "true" }), nW = /* @__PURE__ */ h.jsx(Si, { size: Ve.SM, "aria-hidden": "true" }), X0 = /* @__PURE__ */ h.jsx(
64200
+ ), Yz = Lz, Zz = "!max-w-[var(--reference-width)]", Qc = U0, Qz = 352, Xz = $0, Jz = W0, eW = /* @__PURE__ */ h.jsx(Xs, { size: Ve.SM, "aria-hidden": "true" }), tW = "text-secondary transition-transform", sW = 8, iW = /* @__PURE__ */ h.jsx(BC, { size: Ve.MD, "aria-hidden": "true" }), nW = /* @__PURE__ */ h.jsx(Si, { size: Ve.SM, "aria-hidden": "true" }), X0 = /* @__PURE__ */ h.jsx(
64201
64201
  ka,
64202
64202
  {
64203
64203
  size: Ve.SM,
@@ -64460,7 +64460,7 @@ const Fz = ({
64460
64460
  }
64461
64461
  ),
64462
64462
  k && /* @__PURE__ */ h.jsx(
64463
- pf,
64463
+ bf,
64464
64464
  {
64465
64465
  "aria-label": "Close select",
64466
64466
  className: "shrink-0",
@@ -64572,7 +64572,7 @@ const Fz = ({
64572
64572
  c && /* @__PURE__ */ h.jsx(Xo, { ...c, htmlFor: U }),
64573
64573
  /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-1", children: [
64574
64574
  /* @__PURE__ */ h.jsx(
64575
- y0,
64575
+ Y0,
64576
64576
  {
64577
64577
  open: Me,
64578
64578
  onOpenChange: ie,
@@ -64688,7 +64688,7 @@ const Fz = ({
64688
64688
  disabled: s,
64689
64689
  type: a ? "text" : "password",
64690
64690
  iconAfter: /* @__PURE__ */ h.jsx(
64691
- pf,
64691
+ bf,
64692
64692
  {
64693
64693
  size: Ie.Small,
64694
64694
  disabled: s,
@@ -64814,7 +64814,7 @@ const Fz = ({
64814
64814
  children: [
64815
64815
  F(t),
64816
64816
  !p && /* @__PURE__ */ h.jsx(
64817
- x0,
64817
+ K0,
64818
64818
  {
64819
64819
  ariaLabel: g,
64820
64820
  onClose: (D) => d?.(D)
@@ -64871,7 +64871,7 @@ const Fz = ({
64871
64871
  }) => {
64872
64872
  const b = r ? null : /* @__PURE__ */ h.jsxs("div", { className: mW, children: [
64873
64873
  /* @__PURE__ */ h.jsx(
64874
- jz,
64874
+ Az,
64875
64875
  {
64876
64876
  label: o,
64877
64877
  onClick: () => p ? p() : d?.()
@@ -64912,17 +64912,17 @@ const Fz = ({
64912
64912
  children: x()
64913
64913
  }
64914
64914
  );
64915
- }, I_ = () => import("./JsonEditor-4-qZCNDm.js"), k_ = () => import("./MarkdownEditor-DQj20dnS.js"), M_ = () => import("./MarkdownEditor-CLQJUjhx.js");
64915
+ }, I_ = () => import("./JsonEditor-7yoJYuqZ.js"), k_ = () => import("./MarkdownEditor-DCISpbdm.js"), M_ = () => import("./MarkdownEditor-l4bZSXD7.js");
64916
64916
  export {
64917
64917
  qp as $,
64918
64918
  pc as A,
64919
64919
  de as B,
64920
64920
  f_ as C,
64921
64921
  Ve as D,
64922
- L0 as E,
64922
+ R0 as E,
64923
64923
  zl as F,
64924
64924
  Ri as G,
64925
- lC as H,
64925
+ rC as H,
64926
64926
  nd as I,
64927
64927
  gc as J,
64928
64928
  _x as K,
@@ -64932,23 +64932,23 @@ export {
64932
64932
  gG as O,
64933
64933
  F2 as P,
64934
64934
  Yx as Q,
64935
- Pj as R,
64935
+ bj as R,
64936
64936
  GW as S,
64937
64937
  jt as T,
64938
- XW as U,
64938
+ YW as U,
64939
64939
  ut as V,
64940
64940
  qt as W,
64941
64941
  xw as X,
64942
- oz as Y,
64942
+ Qj as Y,
64943
64943
  te as Z,
64944
64944
  ta as _,
64945
64945
  Cs as a,
64946
64946
  Ie as a$,
64947
64947
  Te as a0,
64948
64948
  br as a1,
64949
- F0 as a2,
64949
+ f0 as a2,
64950
64950
  Kp as a3,
64951
- Kj as a4,
64951
+ Vj as a4,
64952
64952
  Gp as a5,
64953
64953
  $W as a6,
64954
64954
  t0 as a7,
@@ -64956,7 +64956,7 @@ export {
64956
64956
  Kx as a9,
64957
64957
  df as aA,
64958
64958
  dF as aB,
64959
- s_ as aC,
64959
+ JW as aC,
64960
64960
  o0 as aD,
64961
64961
  kW as aE,
64962
64962
  _W as aF,
@@ -64976,11 +64976,11 @@ export {
64976
64976
  Np as aT,
64977
64977
  Op as aU,
64978
64978
  Hp as aV,
64979
- y0 as aW,
64979
+ Y0 as aW,
64980
64980
  Zn as aX,
64981
64981
  Nt as aY,
64982
64982
  UB as aZ,
64983
- A0 as a_,
64983
+ S0 as a_,
64984
64984
  He as aa,
64985
64985
  Qi as ab,
64986
64986
  on as ac,
@@ -65008,18 +65008,18 @@ export {
65008
65008
  xh as ay,
65009
65009
  UW as az,
65010
65010
  Nd as b,
65011
- h_ as b$,
65012
- d_ as b0,
65011
+ c_ as b$,
65012
+ a_ as b0,
65013
65013
  Sf as b1,
65014
- o_ as b2,
65014
+ s_ as b2,
65015
65015
  y_ as b3,
65016
65016
  Mt as b4,
65017
- Ej as b5,
65017
+ Cj as b5,
65018
65018
  No as b6,
65019
65019
  m_ as b7,
65020
65020
  fc as b8,
65021
65021
  b_ as b9,
65022
- W0 as bA,
65022
+ A0 as bA,
65023
65023
  $t as bB,
65024
65024
  Je as bC,
65025
65025
  P_ as bD,
@@ -65028,12 +65028,12 @@ export {
65028
65028
  fW as bG,
65029
65029
  Ht as bH,
65030
65030
  v_ as bI,
65031
- YW as bJ,
65031
+ h_ as bJ,
65032
65032
  tr as bK,
65033
65033
  vc as bL,
65034
- Jj as bM,
65034
+ Uj as bM,
65035
65035
  Kc as bN,
65036
- wf as bO,
65036
+ vf as bO,
65037
65037
  sa as bP,
65038
65038
  Uc as bQ,
65039
65039
  F_ as bR,
@@ -65044,15 +65044,15 @@ export {
65044
65044
  Yl as bW,
65045
65045
  ks as bX,
65046
65046
  Bp as bY,
65047
- aC as bZ,
65047
+ SC as bZ,
65048
65048
  ys as b_,
65049
- pf as ba,
65049
+ bf as ba,
65050
65050
  dc as bb,
65051
- i_ as bc,
65052
- Md as bd,
65053
- Fz as be,
65054
- u_ as bf,
65055
- r_ as bg,
65051
+ e_ as bc,
65052
+ Ld as bd,
65053
+ vz as be,
65054
+ l_ as bf,
65055
+ i_ as bg,
65056
65056
  R_ as bh,
65057
65057
  Wz as bi,
65058
65058
  Zc as bj,
@@ -65062,36 +65062,36 @@ export {
65062
65062
  k_ as bn,
65063
65063
  M_ as bo,
65064
65064
  w_ as bp,
65065
- g_ as bq,
65066
- c_ as br,
65065
+ u_ as bq,
65066
+ r_ as br,
65067
65067
  qz as bs,
65068
- Qj as bt,
65069
- M0 as bu,
65070
- JW as bv,
65071
- Sj as bw,
65072
- Fj as bx,
65073
- jz as by,
65074
- ZW as bz,
65068
+ Wj as bt,
65069
+ y0 as bu,
65070
+ ZW as bv,
65071
+ fj as bw,
65072
+ vj as bx,
65073
+ Az as by,
65074
+ p_ as bz,
65075
65075
  ye as c,
65076
- a_ as c0,
65076
+ n_ as c0,
65077
65077
  fp as c1,
65078
65078
  Ko as c2,
65079
65079
  E_ as c3,
65080
- Xj as c4,
65081
- p_ as c5,
65082
- l_ as c6,
65080
+ _j as c4,
65081
+ d_ as c5,
65082
+ o_ as c6,
65083
65083
  lf as c7,
65084
- Uj as c8,
65085
- e_ as c9,
65086
- $j as ca,
65087
- sz as cb,
65088
- t_ as cc,
65084
+ Hj as c8,
65085
+ QW as c9,
65086
+ Bj as ca,
65087
+ Kj as cb,
65088
+ XW as cc,
65089
65089
  S_ as d,
65090
65090
  Ne as e,
65091
65091
  vs as f,
65092
65092
  Od as g,
65093
- n_ as h,
65094
- x0 as i,
65093
+ t_ as h,
65094
+ K0 as i,
65095
65095
  h as j,
65096
65096
  T_ as k,
65097
65097
  nn as l,
@@ -65100,7 +65100,7 @@ export {
65100
65100
  $x as o,
65101
65101
  Ux as p,
65102
65102
  C_ as q,
65103
- QW as r,
65103
+ g_ as r,
65104
65104
  w2 as s,
65105
65105
  hu as t,
65106
65106
  DW as u,