@cjlapao/ui-kit-vue 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4149,6 +4149,9 @@ function i5(e, n) {
4149
4149
  }
4150
4150
  const d5 = {
4151
4151
  kit: {
4152
+ connectionFlowConnection: {
4153
+ label: "Verbindung von {source} zu {target}"
4154
+ },
4152
4155
  connectionFlowEdit: {
4153
4156
  connected: "Verbindung angefordert",
4154
4157
  add: "Knoten {side} von {label} hinzufügen",
@@ -4276,7 +4279,9 @@ const d5 = {
4276
4279
  acceptsFrom: "Nimmt Karten an aus",
4277
4280
  acceptsAny: "Nichts ausgewählt: jede Spalte.",
4278
4281
  save: "Speichern",
4279
- cancel: "Abbrechen"
4282
+ cancel: "Abbrechen",
4283
+ maxItems: "Max. Karten",
4284
+ maxItemsHint: "Leer nutzt den Board-Standard."
4280
4285
  },
4281
4286
  help: {
4282
4287
  show: "Hilfe anzeigen",
@@ -4556,6 +4561,9 @@ const d5 = {
4556
4561
  }
4557
4562
  }, u5 = {
4558
4563
  kit: {
4564
+ connectionFlowConnection: {
4565
+ label: "Connection from {source} to {target}"
4566
+ },
4559
4567
  connectionFlowEdit: {
4560
4568
  connected: "Connection requested",
4561
4569
  add: "Add a node {side} {label}",
@@ -4683,7 +4691,9 @@ const d5 = {
4683
4691
  acceptsFrom: "Accepts cards from",
4684
4692
  acceptsAny: "None ticked: any column.",
4685
4693
  save: "Save",
4686
- cancel: "Cancel"
4694
+ cancel: "Cancel",
4695
+ maxItems: "Max items",
4696
+ maxItemsHint: "Empty uses the board default."
4687
4697
  },
4688
4698
  help: {
4689
4699
  show: "Show help",
@@ -4963,6 +4973,9 @@ const d5 = {
4963
4973
  }
4964
4974
  }, c5 = {
4965
4975
  kit: {
4976
+ connectionFlowConnection: {
4977
+ label: "Conexión de {source} a {target}"
4978
+ },
4966
4979
  connectionFlowEdit: {
4967
4980
  connected: "Conexión solicitada",
4968
4981
  add: "Añadir un nodo {side} de {label}",
@@ -5090,7 +5103,9 @@ const d5 = {
5090
5103
  acceptsFrom: "Acepta tarjetas de",
5091
5104
  acceptsAny: "Ninguna marcada: cualquier columna.",
5092
5105
  save: "Guardar",
5093
- cancel: "Cancelar"
5106
+ cancel: "Cancelar",
5107
+ maxItems: "Máx. tarjetas",
5108
+ maxItemsHint: "Vacío usa el valor del tablero."
5094
5109
  },
5095
5110
  help: {
5096
5111
  show: "Mostrar ayuda",
@@ -5370,6 +5385,9 @@ const d5 = {
5370
5385
  }
5371
5386
  }, v5 = {
5372
5387
  kit: {
5388
+ connectionFlowConnection: {
5389
+ label: "Connexion de {source} vers {target}"
5390
+ },
5373
5391
  connectionFlowEdit: {
5374
5392
  connected: "Connexion demandée",
5375
5393
  add: "Ajouter un nœud {side} de {label}",
@@ -5497,7 +5515,9 @@ const d5 = {
5497
5515
  acceptsFrom: "Accepte les cartes de",
5498
5516
  acceptsAny: "Aucune cochée : toutes les colonnes.",
5499
5517
  save: "Enregistrer",
5500
- cancel: "Annuler"
5518
+ cancel: "Annuler",
5519
+ maxItems: "Cartes max.",
5520
+ maxItemsHint: "Vide : valeur du tableau."
5501
5521
  },
5502
5522
  help: {
5503
5523
  show: "Afficher l\\'aide",
@@ -5777,6 +5797,9 @@ const d5 = {
5777
5797
  }
5778
5798
  }, h5 = {
5779
5799
  kit: {
5800
+ connectionFlowConnection: {
5801
+ label: "Ligação de {source} para {target}"
5802
+ },
5780
5803
  connectionFlowEdit: {
5781
5804
  connected: "Ligação solicitada",
5782
5805
  add: "Adicionar um nó {side} de {label}",
@@ -5904,7 +5927,9 @@ const d5 = {
5904
5927
  acceptsFrom: "Aceita cartões de",
5905
5928
  acceptsAny: "Nenhuma marcada: qualquer coluna.",
5906
5929
  save: "Salvar",
5907
- cancel: "Cancelar"
5930
+ cancel: "Cancelar",
5931
+ maxItems: "Máx. de cartões",
5932
+ maxItemsHint: "Vazio usa o padrão do quadro."
5908
5933
  },
5909
5934
  help: {
5910
5935
  show: "Mostrar ajuda",
@@ -9329,14 +9354,14 @@ const p5 = {
9329
9354
  G.top + z,
9330
9355
  G.bottom - U - z
9331
9356
  )
9332
- ), _ = Math.max(120, G.bottom - z - ge), ye = Math.max(
9357
+ ), ee = Math.max(120, G.bottom - z - ge), ye = Math.max(
9333
9358
  120,
9334
9359
  q.top - ne - (G.top + z)
9335
9360
  ), J = Math.max(
9336
9361
  120,
9337
9362
  Math.min(
9338
9363
  se,
9339
- R.isTopSide ? ye : _
9364
+ R.isTopSide ? ye : ee
9340
9365
  )
9341
9366
  ), ve = ue.left, X = ue.right - j, pe = (Ge) => {
9342
9367
  const Je = Math.max(0, G.left + z - Ge), Pe = Math.max(
@@ -11075,7 +11100,7 @@ const fS = /* @__PURE__ */ F({
11075
11100
  const z = d.value.getBoundingClientRect(), P = h.value.getBoundingClientRect(), B = t.escapeBoundary ? bo() : s6(d.value), j = i6(d.value), U = 4, ge = 8, Ce = bo(), $e = Math.min(
11076
11101
  Math.max(z.width, P.width),
11077
11102
  Math.min(B.width, Ce.width) - ge * 2
11078
- ), Ie = P.height || Kl, R = z.bottom + U, ie = z.top - U - Ie, _ = (re) => Math.max(0, Ce.top + ge - re) + Math.max(0, re + Ie - (Ce.bottom - ge)), ye = _(ie) < _(R), ve = Math.min(
11103
+ ), Ie = P.height || Kl, R = z.bottom + U, ie = z.top - U - Ie, ee = (re) => Math.max(0, Ce.top + ge - re) + Math.max(0, re + Ie - (Ce.bottom - ge)), ye = ee(ie) < ee(R), ve = Math.min(
11079
11104
  Math.max(ye ? ie : R, Ce.top + ge),
11080
11105
  Math.max(Ce.top + ge, Ce.bottom - Ie - ge)
11081
11106
  ), X = ye ? Math.max(120, z.top - U - (Ce.top + ge)) : Math.max(120, Ce.bottom - ge - R), pe = z.left, de = Math.min(
@@ -12588,7 +12613,7 @@ const fS = /* @__PURE__ */ F({
12588
12613
  flex: "0 0 auto",
12589
12614
  minWidth: 0
12590
12615
  }, de.width = `${c.value}px`, f.value && (de.maxWidth = f.value)), de;
12591
- }, _ = (J) => {
12616
+ }, ee = (J) => {
12592
12617
  const ve = J.key === "ArrowRight" || J.key === "ArrowDown" ? 1 : J.key === "ArrowLeft" || J.key === "ArrowUp" ? -1 : 0;
12593
12618
  if (ve === 0 && J.key !== "Home" && J.key !== "End") return;
12594
12619
  J.preventDefault();
@@ -12675,7 +12700,7 @@ const fS = /* @__PURE__ */ F({
12675
12700
  tabindex: Ie(X) ? -1 : X.value === e.modelValue ? 0 : -1,
12676
12701
  style: me(ie(X)),
12677
12702
  onClick: (de) => ye(X),
12678
- onKeydown: _
12703
+ onKeydown: ee
12679
12704
  }, [
12680
12705
  p("span", {
12681
12706
  class: $(
@@ -14353,11 +14378,11 @@ const TS = /* @__PURE__ */ F({
14353
14378
  function z(R) {
14354
14379
  return `${ne(R)}ms`;
14355
14380
  }
14356
- function P(R, ie, _, ye) {
14381
+ function P(R, ie, ee, ye) {
14357
14382
  return {
14358
14383
  width: ie && !h.value ? "0px" : void 0,
14359
14384
  minWidth: ie && !h.value ? "0px" : void 0,
14360
- marginRight: ie || se.value || !E.value ? `${M.value}px` : _ ? `${-S.value}px` : `${M.value}px`,
14385
+ marginRight: ie || se.value || !E.value ? `${M.value}px` : ee ? `${-S.value}px` : `${M.value}px`,
14361
14386
  marginBottom: `${M.value}px`,
14362
14387
  // While condensed the overflow dots hold their place behind the chip;
14363
14388
  // expanded, they precede it — the chip always ends the sequence it
@@ -14409,8 +14434,8 @@ const TS = /* @__PURE__ */ F({
14409
14434
  }
14410
14435
  return tn(() => {
14411
14436
  var R, ie;
14412
- v.value = ((R = s.value) == null ? void 0 : R.getBoundingClientRect().width) ?? 0, k.value = ((ie = i.value) == null ? void 0 : ie.scrollHeight) ?? 0, !(!s.value || typeof ResizeObserver > "u") && (x = new ResizeObserver((_) => {
14413
- for (const ye of _)
14437
+ v.value = ((R = s.value) == null ? void 0 : R.getBoundingClientRect().width) ?? 0, k.value = ((ie = i.value) == null ? void 0 : ie.scrollHeight) ?? 0, !(!s.value || typeof ResizeObserver > "u") && (x = new ResizeObserver((ee) => {
14438
+ for (const ye of ee)
14414
14439
  ye.target === s.value ? v.value = ye.contentRect.width : k.value = ye.target.scrollHeight;
14415
14440
  }), x.observe(s.value), i.value && x.observe(i.value));
14416
14441
  }), hn(() => {
@@ -14435,9 +14460,9 @@ const TS = /* @__PURE__ */ F({
14435
14460
  class: "flex flex-wrap items-start",
14436
14461
  style: me({ padding: `${I.value}px` })
14437
14462
  }, [
14438
- (o(!0), u(ae, null, ze(n.colors.slice(0, D.value), (_, ye) => (o(), u("span", {
14439
- key: _,
14440
- title: _,
14463
+ (o(!0), u(ae, null, ze(n.colors.slice(0, D.value), (ee, ye) => (o(), u("span", {
14464
+ key: ee,
14465
+ title: ee,
14441
14466
  class: "flex shrink-0 flex-col items-center gap-1",
14442
14467
  style: me(P(ye, !1, !0))
14443
14468
  }, [
@@ -14448,20 +14473,20 @@ const TS = /* @__PURE__ */ F({
14448
14473
  b(C)(
14449
14474
  "absolute inset-0 scale-100 opacity-0 transition duration-200 ease-out",
14450
14475
  "group-hover:scale-[1.45] group-hover:opacity-40",
14451
- g[_],
14476
+ g[ee],
14452
14477
  n.shape === "circle" ? "rounded-full" : "rounded-md"
14453
14478
  )
14454
14479
  )
14455
14480
  }, null, 2),
14456
14481
  p("span", {
14457
- class: $(b(C)(U(_), "relative block transition-transform duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-hover:scale-[1.15]"))
14482
+ class: $(b(C)(U(ee), "relative block transition-transform duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-hover:scale-[1.15]"))
14458
14483
  }, null, 2)
14459
14484
  ]),
14460
14485
  e.showNames ? (o(), u("span", {
14461
14486
  key: 0,
14462
14487
  class: "text-[10px] leading-4 text-neutral-500 dark:text-neutral-400",
14463
14488
  style: me({ opacity: d.value ? 1 : 0, transition: "opacity 200ms ease-out", transitionDelay: z(ye) })
14464
- }, N(_), 5)) : L("", !0)
14489
+ }, N(ee), 5)) : L("", !0)
14465
14490
  ], 12, Y8))), 128)),
14466
14491
  ce.value ? (o(), u("button", {
14467
14492
  key: 0,
@@ -14487,9 +14512,9 @@ const TS = /* @__PURE__ */ F({
14487
14512
  Be(N(q.value), 1)
14488
14513
  ], 64)) : L("", !0)
14489
14514
  ], 14, J8)) : L("", !0),
14490
- (o(!0), u(ae, null, ze(n.colors.slice(D.value), (_, ye) => (o(), u("span", {
14491
- key: `rest-${_}`,
14492
- title: _,
14515
+ (o(!0), u(ae, null, ze(n.colors.slice(D.value), (ee, ye) => (o(), u("span", {
14516
+ key: `rest-${ee}`,
14517
+ title: ee,
14493
14518
  class: $(b(C)("flex shrink-0 flex-col items-center gap-1", !d.value && "overflow-hidden")),
14494
14519
  style: me(P(D.value + ye, !d.value, !1, 2))
14495
14520
  }, [
@@ -14500,20 +14525,20 @@ const TS = /* @__PURE__ */ F({
14500
14525
  b(C)(
14501
14526
  "absolute inset-0 scale-100 opacity-0 transition duration-200 ease-out",
14502
14527
  "group-hover:scale-[1.45] group-hover:opacity-40",
14503
- g[_],
14528
+ g[ee],
14504
14529
  n.shape === "circle" ? "rounded-full" : "rounded-md"
14505
14530
  )
14506
14531
  )
14507
14532
  }, null, 2),
14508
14533
  p("span", {
14509
- class: $(b(C)(U(_), "relative block transition-transform duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-hover:scale-[1.15]"))
14534
+ class: $(b(C)(U(ee), "relative block transition-transform duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-hover:scale-[1.15]"))
14510
14535
  }, null, 2)
14511
14536
  ]),
14512
14537
  e.showNames ? (o(), u("span", {
14513
14538
  key: 0,
14514
14539
  class: "text-[10px] leading-4 text-neutral-500 dark:text-neutral-400",
14515
14540
  style: me({ opacity: d.value ? 1 : 0, transition: "opacity 200ms ease-out", transitionDelay: z(D.value + ye) })
14516
- }, N(_), 5)) : L("", !0)
14541
+ }, N(ee), 5)) : L("", !0)
14517
14542
  ], 14, Q8))), 128))
14518
14543
  ], 12, q8)
14519
14544
  ], 4)
@@ -15168,7 +15193,7 @@ const yv = { class: "flex h-full min-h-0" }, kv = {
15168
15193
  } catch (he) {
15169
15194
  P(he);
15170
15195
  }
15171
- }, _ = async (Se) => {
15196
+ }, ee = async (Se) => {
15172
15197
  const he = Se.trim();
15173
15198
  if (!he || c.value) return;
15174
15199
  H.value = "";
@@ -15231,7 +15256,7 @@ const yv = { class: "flex h-full min-h-0" }, kv = {
15231
15256
  }
15232
15257
  const J = async () => {
15233
15258
  const Se = [...v.value].reverse().find((he) => he.role === "user");
15234
- Se && (v.value = v.value.filter((he) => !(he.status === "error" && he.role === "assistant")), await _(Se.content));
15259
+ Se && (v.value = v.value.filter((he) => !(he.status === "error" && he.role === "assistant")), await ee(Se.content));
15235
15260
  };
15236
15261
  let ve = null;
15237
15262
  const X = () => {
@@ -15683,7 +15708,7 @@ const yv = { class: "flex h-full min-h-0" }, kv = {
15683
15708
  H.value = Me.target.value, Xe(Me.target);
15684
15709
  }),
15685
15710
  onKeydown: he[18] || (he[18] = an(lt((Me) => {
15686
- _(H.value), Xe(xe.value);
15711
+ ee(H.value), Xe(xe.value);
15687
15712
  }, ["exact", "prevent"]), ["enter"]))
15688
15713
  }, null, 40, n7),
15689
15714
  c.value ? (o(), te(st, {
@@ -15706,7 +15731,7 @@ const yv = { class: "flex h-full min-h-0" }, kv = {
15706
15731
  size: "sm",
15707
15732
  "leading-icon": "Send",
15708
15733
  disabled: !H.value.trim(),
15709
- onClick: he[20] || (he[20] = (Me) => _(H.value))
15734
+ onClick: he[20] || (he[20] = (Me) => ee(H.value))
15710
15735
  }, {
15711
15736
  default: Ae(() => [...he[29] || (he[29] = [
15712
15737
  Be(" Send ", -1)
@@ -20817,7 +20842,7 @@ const s9 = {
20817
20842
  if (t.panelHeaderProps !== void 0) return null;
20818
20843
  const W = $e.value;
20819
20844
  return W === void 0 || r.panelHeader || !t.panelHeader ? null : typeof t.panelHeader == "function" ? t.panelHeader(W) : t.panelHeader;
20820
- }), _ = l(
20845
+ }), ee = l(
20821
20846
  () => !!(R.value || t.panelHeaderProps === void 0 && $e.value !== void 0 && (r.panelHeader || t.panelHeader))
20822
20847
  ), ye = (W) => !t.autoExpand && W.subContent !== void 0, J = l(
20823
20848
  () => !!(t.listTitle || r.listTitle || ge.value || t.collapsible)
@@ -21125,7 +21150,7 @@ const s9 = {
21125
21150
  )
21126
21151
  }, [
21127
21152
  $e.value ? (o(), u(ae, { key: 0 }, [
21128
- _.value ? (o(), u("div", S9, [
21153
+ ee.value ? (o(), u("div", S9, [
21129
21154
  R.value ? (o(), u("div", {
21130
21155
  key: 0,
21131
21156
  class: $(
@@ -23262,11 +23287,11 @@ const hM = /* @__PURE__ */ F({
23262
23287
  if (!xe || ne <= 0) return [];
23263
23288
  const z = ne / xe, P = t.value, B = P.length, j = 8, U = 4, ge = B * j + (B - 1) * U;
23264
23289
  return G.map((Ce, $e) => {
23265
- const Ie = g.value + $e * z, R = P.map((ie, _) => {
23290
+ const Ie = g.value + $e * z, R = P.map((ie, ee) => {
23266
23291
  const ye = Number((Ce == null ? void 0 : Ce[ie.key]) ?? 0), J = T(Math.max(0, Number.isFinite(ye) ? ye : 0));
23267
23292
  return {
23268
23293
  key: ie.key,
23269
- x: Ie + z / 2 - ge / 2 + _ * (j + U),
23294
+ x: Ie + z / 2 - ge / 2 + ee * (j + U),
23270
23295
  y: J,
23271
23296
  width: j,
23272
23297
  height: Math.max(0, c.value - J),
@@ -23974,7 +23999,7 @@ const ap = {
23974
23999
  "mx-2 flex-1 rounded-full bg-black/10 dark:bg-white/10 animate-pulse motion-reduce:animate-none",
23975
24000
  c.value.connector
23976
24001
  )
23977
- ), _ = l(
24002
+ ), ee = l(
23978
24003
  () => C(
23979
24004
  "my-2 min-h-6 flex-1 rounded-full bg-black/10 dark:bg-white/10 animate-pulse motion-reduce:animate-none",
23980
24005
  c.value.connectorVertical
@@ -24079,7 +24104,7 @@ const ap = {
24079
24104
  }, null, 2),
24080
24105
  de < e.steps.length ? (o(), u("div", {
24081
24106
  key: 0,
24082
- class: $(_.value)
24107
+ class: $(ee.value)
24083
24108
  }, null, 2)) : L("", !0)
24084
24109
  ], 64))), 128))
24085
24110
  ]),
@@ -24673,9 +24698,9 @@ const Rb = /* @__PURE__ */ F({
24673
24698
  setup(e, { emit: n }) {
24674
24699
  var sr, ir, dr, ur, cr;
24675
24700
  const t = e, a = n, r = yt(), { classAttr: s, restAttrs: i } = Ve(), d = zn(), h = l(() => {
24676
- var ee;
24677
- return !!((ee = d == null ? void 0 : d.vnode.props) != null && ee.onRowClick);
24678
- }), m = (ee) => ee.hideable === !1 ? !0 : ee.defaultHidden !== !0, v = l(
24701
+ var _;
24702
+ return !!((_ = d == null ? void 0 : d.vnode.props) != null && _.onRowClick);
24703
+ }), m = (_) => _.hideable === !1 ? !0 : _.defaultHidden !== !0, v = l(
24679
24704
  () => t.storage ?? gp()
24680
24705
  ), k = l(
24681
24706
  () => t.storageKey ? bp(
@@ -24684,83 +24709,83 @@ const Rb = /* @__PURE__ */ F({
24684
24709
  ) : null
24685
24710
  ), x = l(() => k.value ? $p(v.value.getItem(k.value)) : null), g = l(
24686
24711
  () => t.tableSettings ?? x.value ?? void 0
24687
- ), c = (ee) => {
24688
- a("tableSettingsChange", ee), k.value && v.value.setItem(
24712
+ ), c = (_) => {
24713
+ a("tableSettingsChange", _), k.value && v.value.setItem(
24689
24714
  k.value,
24690
- Cp(ee)
24715
+ Cp(_)
24691
24716
  );
24692
24717
  }, f = l(() => t.color ?? t.tone), w = l(
24693
24718
  () => `focus-visible:ring-${f.value}-500 dark:focus-visible:ring-${f.value}-400`
24694
24719
  ), y = l(() => d2(t.density)), T = l(() => y.value.cell), M = l(() => y.value), S = l(() => !!t.panelItem || !!r.panelItem), A = l(
24695
24720
  () => {
24696
- var ee;
24697
- return !!((ee = t.columns) != null && ee.length) && S.value;
24721
+ var _;
24722
+ return !!((_ = t.columns) != null && _.length) && S.value;
24698
24723
  }
24699
24724
  ), I = !!t.panelItem || !!r.panelItem, O = ((sr = g.value) == null ? void 0 : sr.activeView) ?? t.defaultView ?? ((ir = t.columns) != null && ir.length && I ? "table" : I ? "panel" : "table"), H = K(O), E = K(t.defaultSort ?? null), V = l(
24700
24725
  () => t.sortState !== void 0 ? t.sortState : E.value
24701
24726
  ), D = K(
24702
24727
  (() => {
24703
24728
  var we;
24704
- const ee = {}, fe = ((we = g.value) == null ? void 0 : we.columnVisibility) ?? t.columnVisibility;
24729
+ const _ = {}, fe = ((we = g.value) == null ? void 0 : we.columnVisibility) ?? t.columnVisibility;
24705
24730
  for (const Re of t.columns ?? [])
24706
- ee[Re.id] = (fe == null ? void 0 : fe[Re.id]) ?? m(Re);
24707
- return ee;
24731
+ _[Re.id] = (fe == null ? void 0 : fe[Re.id]) ?? m(Re);
24732
+ return _;
24708
24733
  })()
24709
24734
  );
24710
24735
  Oe(
24711
24736
  () => {
24712
- var ee;
24713
- return [t.columnVisibility, (ee = t.tableSettings) == null ? void 0 : ee.columnVisibility];
24737
+ var _;
24738
+ return [t.columnVisibility, (_ = t.tableSettings) == null ? void 0 : _.columnVisibility];
24714
24739
  },
24715
24740
  () => {
24716
24741
  var we;
24717
- const ee = ((we = t.tableSettings) == null ? void 0 : we.columnVisibility) ?? t.columnVisibility;
24718
- if (!ee) return;
24742
+ const _ = ((we = t.tableSettings) == null ? void 0 : we.columnVisibility) ?? t.columnVisibility;
24743
+ if (!_) return;
24719
24744
  const fe = { ...D.value };
24720
24745
  for (const Re of t.columns ?? [])
24721
- fe[Re.id] = ee[Re.id] ?? D.value[Re.id] ?? m(Re);
24746
+ fe[Re.id] = _[Re.id] ?? D.value[Re.id] ?? m(Re);
24722
24747
  D.value = fe;
24723
24748
  }
24724
24749
  );
24725
24750
  const se = K(!1), q = K(null), ce = K(
24726
24751
  (() => {
24727
24752
  var we;
24728
- const ee = {}, fe = ((we = g.value) == null ? void 0 : we.columnWidths) ?? t.columnWidths;
24753
+ const _ = {}, fe = ((we = g.value) == null ? void 0 : we.columnWidths) ?? t.columnWidths;
24729
24754
  if (fe)
24730
- Object.assign(ee, fe);
24755
+ Object.assign(_, fe);
24731
24756
  else
24732
24757
  for (const Re of t.columns ?? [])
24733
- typeof Re.width == "number" ? ee[Re.id] = Re.width : typeof Re.width == "string" && /^\d+(\.\d+)?px$/.test(Re.width) && (ee[Re.id] = parseFloat(Re.width));
24734
- return ee;
24758
+ typeof Re.width == "number" ? _[Re.id] = Re.width : typeof Re.width == "string" && /^\d+(\.\d+)?px$/.test(Re.width) && (_[Re.id] = parseFloat(Re.width));
24759
+ return _;
24735
24760
  })()
24736
24761
  );
24737
24762
  Oe(
24738
24763
  () => {
24739
- var ee;
24740
- return [t.columnWidths, (ee = t.tableSettings) == null ? void 0 : ee.columnWidths];
24764
+ var _;
24765
+ return [t.columnWidths, (_ = t.tableSettings) == null ? void 0 : _.columnWidths];
24741
24766
  },
24742
24767
  () => {
24743
24768
  var fe;
24744
- const ee = ((fe = t.tableSettings) == null ? void 0 : fe.columnWidths) ?? t.columnWidths;
24745
- ee && (ce.value = { ...ce.value, ...ee });
24769
+ const _ = ((fe = t.tableSettings) == null ? void 0 : fe.columnWidths) ?? t.columnWidths;
24770
+ _ && (ce.value = { ...ce.value, ..._ });
24746
24771
  }
24747
24772
  );
24748
24773
  const ue = {}, le = K(null);
24749
24774
  let G = null, xe = {};
24750
- const ne = K(null), z = (ee, fe) => {
24751
- ue[ee] = fe ?? null;
24752
- }, P = (ee) => {
24753
- const fe = ue[ee], we = le.value;
24775
+ const ne = K(null), z = (_, fe) => {
24776
+ ue[_] = fe ?? null;
24777
+ }, P = (_) => {
24778
+ const fe = ue[_], we = le.value;
24754
24779
  if (!fe || !we) return null;
24755
24780
  const Re = fe.getBoundingClientRect(), dt = we.getBoundingClientRect();
24756
24781
  return Math.round(Re.right - dt.left + we.scrollLeft) - Ab;
24757
24782
  }, B = () => {
24758
24783
  if (!ne.value) return;
24759
- const ee = P(ne.value.colId);
24760
- ee != null && (ne.value = { ...ne.value, left: ee });
24761
- }, j = (ee, fe, we) => {
24784
+ const _ = P(ne.value.colId);
24785
+ _ != null && (ne.value = { ...ne.value, left: _ });
24786
+ }, j = (_, fe, we) => {
24762
24787
  var xt;
24763
- ee.preventDefault(), ee.stopPropagation();
24788
+ _.preventDefault(), _.stopPropagation();
24764
24789
  const Re = { ...ce.value };
24765
24790
  if (Object.keys(Re).length === 0) {
24766
24791
  for (const jt of vt.value) {
@@ -24770,7 +24795,7 @@ const Rb = /* @__PURE__ */ F({
24770
24795
  ce.value = Re;
24771
24796
  }
24772
24797
  const dt = Re[fe] ?? ((xt = ue[fe]) == null ? void 0 : xt.offsetWidth) ?? 100, ut = P(fe) ?? 0;
24773
- G = { colId: fe, startX: ee.clientX, startWidth: dt }, xe = { ...Re }, ne.value = { colId: fe, left: ut };
24798
+ G = { colId: fe, startX: _.clientX, startWidth: dt }, xe = { ...Re }, ne.value = { colId: fe, left: ut };
24774
24799
  const It = (jt) => {
24775
24800
  if (!G) return;
24776
24801
  const nn = Math.max(
@@ -24790,21 +24815,21 @@ const Rb = /* @__PURE__ */ F({
24790
24815
  }), G = null, ne.value = null;
24791
24816
  };
24792
24817
  document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", It), document.addEventListener("mouseup", Qe);
24793
- }, U = (ee, fe) => {
24818
+ }, U = (_, fe) => {
24794
24819
  const we = fe.minWidth !== void 0 ? typeof fe.minWidth == "number" ? fe.minWidth : parseInt(fe.minWidth, 10) : 48;
24795
- j(ee, fe.id, Math.max(48, isNaN(we) ? 48 : we));
24796
- }, ge = (ee) => {
24797
- const fe = P(ee.id);
24798
- fe != null && (ne.value = { colId: ee.id, left: fe });
24820
+ j(_, fe.id, Math.max(48, isNaN(we) ? 48 : we));
24821
+ }, ge = (_) => {
24822
+ const fe = P(_.id);
24823
+ fe != null && (ne.value = { colId: _.id, left: fe });
24799
24824
  }, Ce = () => {
24800
24825
  G || (ne.value = null);
24801
24826
  }, $e = l(
24802
24827
  () => t.resizableColumns && Object.keys(ce.value).length > 0
24803
24828
  ), Ie = K(
24804
24829
  ((dr = g.value) == null ? void 0 : dr.stickyColumns) ?? t.defaultStickyColumns ?? {}
24805
- ), R = K(!1), ie = K(null), _ = (ee, fe) => {
24830
+ ), R = K(!1), ie = K(null), ee = (_, fe) => {
24806
24831
  const we = { ...Ie.value };
24807
- fe === null ? delete we[ee] : we[ee] = fe, Ie.value = we, a("stickyColumnsChange", we), c({
24832
+ fe === null ? delete we[_] : we[_] = fe, Ie.value = we, a("stickyColumnsChange", we), c({
24808
24833
  ...ke.value,
24809
24834
  stickyColumns: we
24810
24835
  });
@@ -24827,17 +24852,17 @@ const Rb = /* @__PURE__ */ F({
24827
24852
  stickyColumns: Ie.value
24828
24853
  })), je = l(() => {
24829
24854
  if (!t.selectedItems || t.selectedItems.length === 0) return null;
24830
- const ee = /* @__PURE__ */ new Set();
24855
+ const _ = /* @__PURE__ */ new Set();
24831
24856
  return t.selectedItems.forEach((fe) => {
24832
- if (ee.add(fe), t.rowKey)
24833
- ee.add(t.rowKey(fe, -1));
24857
+ if (_.add(fe), t.rowKey)
24858
+ _.add(t.rowKey(fe, -1));
24834
24859
  else if (typeof fe.id < "u") {
24835
24860
  const we = fe.id;
24836
- ee.add(String(we));
24861
+ _.add(String(we));
24837
24862
  }
24838
- }), ee;
24839
- }), Ge = (ee) => {
24840
- const fe = ee.target;
24863
+ }), _;
24864
+ }), Ge = (_) => {
24865
+ const fe = _.target;
24841
24866
  se.value && q.value && !q.value.contains(fe) && (se.value = !1), pe.value && re.value && !re.value.contains(fe) && (pe.value = !1), R.value && ie.value && !ie.value.contains(fe) && (R.value = !1);
24842
24867
  };
24843
24868
  tn(() => {
@@ -24845,27 +24870,27 @@ const Rb = /* @__PURE__ */ F({
24845
24870
  }), on(() => {
24846
24871
  document.removeEventListener("mousedown", Ge), document.body.style.cursor = "", document.body.style.userSelect = "";
24847
24872
  });
24848
- const Je = (ee) => {
24873
+ const Je = (_) => {
24849
24874
  var Re;
24850
- if (!ee.sortable)
24875
+ if (!_.sortable)
24851
24876
  return;
24852
24877
  const fe = Eb(
24853
- ((Re = V.value) == null ? void 0 : Re.columnId) === ee.id ? V.value.direction : void 0
24854
- ), we = fe ? { columnId: ee.id, direction: fe } : null;
24878
+ ((Re = V.value) == null ? void 0 : Re.columnId) === _.id ? V.value.direction : void 0
24879
+ ), we = fe ? { columnId: _.id, direction: fe } : null;
24855
24880
  t.sortState === void 0 && (E.value = we), a("sortChange", we);
24856
- }, Pe = (ee) => {
24857
- ve.value = ee, X.value = {}, a("groupByChange", ee), c({
24881
+ }, Pe = (_) => {
24882
+ ve.value = _, X.value = {}, a("groupByChange", _), c({
24858
24883
  ...ke.value,
24859
- groupBy: ee
24884
+ groupBy: _
24860
24885
  });
24861
24886
  }, Ue = l(() => {
24862
24887
  var It;
24863
24888
  if (t.manualSorting)
24864
24889
  return t.data;
24865
- const ee = V.value;
24866
- if (!ee)
24890
+ const _ = V.value;
24891
+ if (!_)
24867
24892
  return t.data;
24868
- const fe = (It = t.columns) == null ? void 0 : It.find((Qe) => Qe.id === ee.columnId);
24893
+ const fe = (It = t.columns) == null ? void 0 : It.find((Qe) => Qe.id === _.columnId);
24869
24894
  if (!fe || !fe.accessor && !fe.render && !fe.sortValue)
24870
24895
  return t.data;
24871
24896
  const we = fe.sortValue ? (Qe) => fe.sortValue(Qe) : fe.accessor ? (Qe, xt) => typeof fe.accessor == "function" ? fe.accessor(Qe, xt) : Qe[fe.accessor] : (Qe, xt) => fe.render ? fe.render(Qe, xt) : null, Re = (Qe) => typeof Qe == "string" ? Qe : typeof Qe == "number" || typeof Qe == "boolean" ? String(Qe) : "";
@@ -24882,43 +24907,43 @@ const Rb = /* @__PURE__ */ F({
24882
24907
  const nn = String(Qe.key), Rn = String(xt.key);
24883
24908
  jt = nn < Rn ? -1 : nn > Rn ? 1 : 0;
24884
24909
  }
24885
- return ee.direction === "asc" ? jt : -jt;
24910
+ return _.direction === "asc" ? jt : -jt;
24886
24911
  }).map(({ row: Qe }) => Qe);
24887
24912
  }), Xe = l(() => t.columns ?? []), Ne = l(
24888
- () => Xe.value.filter((ee) => !ee.isActionsColumn)
24913
+ () => Xe.value.filter((_) => !_.isActionsColumn)
24889
24914
  ), Ke = l(
24890
- () => t.groupable === !0 && !t.groupBy && Ne.value.some((ee) => ee.groupable !== !1)
24915
+ () => t.groupable === !0 && !t.groupBy && Ne.value.some((_) => _.groupable !== !1)
24891
24916
  ), vt = l(
24892
24917
  () => Xe.value.filter(
24893
- (ee) => D.value[ee.id] !== !1 && ee.id !== W.value
24918
+ (_) => D.value[_.id] !== !1 && _.id !== W.value
24894
24919
  )
24895
24920
  ), Se = l(
24896
- () => Ne.value.some((ee) => ee.hideable !== !1)
24921
+ () => Ne.value.some((_) => _.hideable !== !1)
24897
24922
  ), he = l(() => {
24898
- const ee = [], fe = [], we = [];
24923
+ const _ = [], fe = [], we = [];
24899
24924
  return vt.value.forEach((Re, dt) => {
24900
24925
  const ut = Ie.value[Re.id] ?? Re.sticky;
24901
- ut === "left" ? ee.push(Re) : ut === "right" || t.stickyActions && dt === vt.value.length - 1 ? we.push(Re) : fe.push(Re);
24902
- }), [...ee, ...fe, ...we];
24926
+ ut === "left" ? _.push(Re) : ut === "right" || t.stickyActions && dt === vt.value.length - 1 ? we.push(Re) : fe.push(Re);
24927
+ }), [..._, ...fe, ...we];
24903
24928
  }), Me = l(() => {
24904
24929
  if (!W.value) return null;
24905
- const ee = Xe.value.find(
24930
+ const _ = Xe.value.find(
24906
24931
  (Re) => Re.id === W.value
24907
24932
  );
24908
- if (!ee) return null;
24933
+ if (!_) return null;
24909
24934
  const fe = [], we = /* @__PURE__ */ new Map();
24910
24935
  return Ue.value.forEach((Re, dt) => {
24911
24936
  let ut = "";
24912
- if (ee.groupValue)
24913
- ut = ee.groupValue(Re);
24914
- else if (ee.accessor) {
24915
- const Qe = typeof ee.accessor == "function" ? ee.accessor(Re, dt) : Re[ee.accessor];
24937
+ if (_.groupValue)
24938
+ ut = _.groupValue(Re);
24939
+ else if (_.accessor) {
24940
+ const Qe = typeof _.accessor == "function" ? _.accessor(Re, dt) : Re[_.accessor];
24916
24941
  typeof Qe == "string" ? ut = Qe : typeof Qe == "number" && (ut = String(Qe));
24917
- } else if (ee.sortValue) {
24918
- const Qe = ee.sortValue(Re);
24942
+ } else if (_.sortValue) {
24943
+ const Qe = _.sortValue(Re);
24919
24944
  ut = String(Qe);
24920
24945
  } else {
24921
- const Qe = Ni(Re, ee, dt);
24946
+ const Qe = Ni(Re, _, dt);
24922
24947
  typeof Qe == "string" ? ut = Qe : typeof Qe == "number" && (ut = String(Qe));
24923
24948
  }
24924
24949
  const It = ut.toLowerCase();
@@ -24929,41 +24954,41 @@ const Rb = /* @__PURE__ */ F({
24929
24954
  [Me, () => t.defaultGroupExpanded],
24930
24955
  () => {
24931
24956
  if (!Me.value) return;
24932
- const ee = { ...X.value };
24957
+ const _ = { ...X.value };
24933
24958
  let fe = !1;
24934
24959
  for (const we of Me.value)
24935
- we.key in ee || (ee[we.key] = t.defaultGroupExpanded !== !1, fe = !0);
24936
- fe && (X.value = ee);
24960
+ we.key in _ || (_[we.key] = t.defaultGroupExpanded !== !1, fe = !0);
24961
+ fe && (X.value = _);
24937
24962
  },
24938
24963
  { immediate: !0 }
24939
24964
  );
24940
- const Ze = (ee) => {
24965
+ const Ze = (_) => {
24941
24966
  X.value = {
24942
24967
  ...X.value,
24943
- [ee]: !X.value[ee]
24968
+ [_]: !X.value[_]
24944
24969
  };
24945
24970
  }, _e = l(() => {
24946
24971
  if (!t.panelDeduplicateBy) return Ue.value;
24947
- const ee = /* @__PURE__ */ new Set();
24972
+ const _ = /* @__PURE__ */ new Set();
24948
24973
  return Ue.value.filter((fe) => {
24949
24974
  const we = t.panelDeduplicateBy(fe);
24950
- return ee.has(we) ? !1 : (ee.add(we), !0);
24975
+ return _.has(we) ? !1 : (_.add(we), !0);
24951
24976
  });
24952
24977
  }), tt = l(
24953
24978
  () => !!(W.value && Le.value)
24954
- ), ft = (ee) => Ie.value[ee.id] ?? ee.sticky ?? void 0, wt = l(
24955
- () => he.value.some((ee) => ft(ee) === "left")
24979
+ ), ft = (_) => Ie.value[_.id] ?? _.sticky ?? void 0, wt = l(
24980
+ () => he.value.some((_) => ft(_) === "left")
24956
24981
  ), $t = l(() => {
24957
- const ee = {};
24982
+ const _ = {};
24958
24983
  let fe = 0;
24959
24984
  for (let we = he.value.length - 1; we >= 0; we--) {
24960
24985
  const Re = he.value[we];
24961
24986
  if (!((Ie.value[Re.id] ?? Re.sticky) === "right" || t.stickyActions && we === he.value.length - 1)) continue;
24962
- ee[Re.id] = fe;
24987
+ _[Re.id] = fe;
24963
24988
  const It = ce.value[Re.id] ?? (typeof Re.width == "number" ? Re.width : void 0) ?? (typeof Re.minWidth == "number" ? Re.minWidth : void 0);
24964
24989
  It !== void 0 && (fe += It);
24965
24990
  }
24966
- return ee;
24991
+ return _;
24967
24992
  }), kt = l(() => fn(t.variant)), At = l(() => t.bordered && !t.noBorders), sn = l(
24968
24993
  () => C(t.fullHeight && "h-full", s.value)
24969
24994
  ), Ht = l(
@@ -24992,32 +25017,32 @@ const Rb = /* @__PURE__ */ F({
24992
25017
  () => !!r.headerActions || t.headerActions != null
24993
25018
  ), qt = l(
24994
25019
  () => Bt.value || A.value || t.showColumnSelector && Se.value || Ke.value || !!t.userStickyColumns
24995
- ), yn = (ee) => {
24996
- H.value = ee, a("viewChange", ee), c({
25020
+ ), yn = (_) => {
25021
+ H.value = _, a("viewChange", _), c({
24997
25022
  ...ke.value,
24998
- activeView: ee
25023
+ activeView: _
24999
25024
  });
25000
- }, Ft = (ee) => {
25001
- const fe = D.value[ee.id] !== !1, we = { ...D.value, [ee.id]: !fe };
25025
+ }, Ft = (_) => {
25026
+ const fe = D.value[_.id] !== !1, we = { ...D.value, [_.id]: !fe };
25002
25027
  D.value = we, a("columnVisibilityChange", we), c({
25003
25028
  ...ke.value,
25004
25029
  columnVisibility: we
25005
25030
  });
25006
25031
  }, Ot = () => {
25007
- const ee = {};
25032
+ const _ = {};
25008
25033
  for (const fe of Xe.value)
25009
- ee[fe.id] = m(fe);
25010
- D.value = ee, a("columnVisibilityChange", ee), c({
25034
+ _[fe.id] = m(fe);
25035
+ D.value = _, a("columnVisibilityChange", _), c({
25011
25036
  ...ke.value,
25012
- columnVisibility: ee
25037
+ columnVisibility: _
25013
25038
  });
25014
25039
  }, jn = () => {
25015
- const ee = !de.value;
25016
- de.value = ee, c({
25040
+ const _ = !de.value;
25041
+ de.value = _, c({
25017
25042
  ...ke.value,
25018
- showGroupHeader: ee
25043
+ showGroupHeader: _
25019
25044
  });
25020
- }, dn = (ee) => typeof ee.header == "string" ? ee.header : ee.id, Ln = l(
25045
+ }, dn = (_) => typeof _.header == "string" ? _.header : _.id, Ln = l(
25021
25046
  () => C("h-3.5 w-3.5 rounded border-neutral-300", Ti(f.value))
25022
25047
  ), In = l(
25023
25048
  () => C("h-3.5 w-3.5 border-neutral-300", Ti(f.value))
@@ -25060,9 +25085,9 @@ const Rb = /* @__PURE__ */ F({
25060
25085
  Mb(f.value)
25061
25086
  )
25062
25087
  ), it = l(
25063
- () => he.value.map((ee, fe) => {
25088
+ () => he.value.map((_, fe) => {
25064
25089
  var rl, sl;
25065
- const we = ((rl = V.value) == null ? void 0 : rl.columnId) === ee.id, Re = we ? (sl = V.value) == null ? void 0 : sl.direction : void 0, dt = t.resizableColumns && ee.resizable !== !1, ut = ce.value[ee.id], It = ft(ee), Qe = It === "left", xt = It === "right" || t.stickyActions && fe === he.value.length - 1, jt = xt ? $t.value[ee.id] : void 0, nn = C(
25090
+ const we = ((rl = V.value) == null ? void 0 : rl.columnId) === _.id, Re = we ? (sl = V.value) == null ? void 0 : sl.direction : void 0, dt = t.resizableColumns && _.resizable !== !1, ut = ce.value[_.id], It = ft(_), Qe = It === "left", xt = It === "right" || t.stickyActions && fe === he.value.length - 1, jt = xt ? $t.value[_.id] : void 0, nn = C(
25066
25091
  He,
25067
25092
  Dt.value,
25068
25093
  T.value,
@@ -25072,36 +25097,36 @@ const Rb = /* @__PURE__ */ F({
25072
25097
  // right position is set via inline style when offset > 0
25073
25098
  xt && !jt && "right-0",
25074
25099
  t.stickyHeader && (Qe || xt) ? "z-30" : t.stickyHeader ? "z-20" : Qe || xt ? "z-10" : "",
25075
- Pi(ee.align),
25100
+ Pi(_.align),
25076
25101
  "overflow-hidden",
25077
25102
  dt && "relative",
25078
25103
  xt && It === "right" && !t.noBorders && "border-l border-neutral-200 dark:border-neutral-700",
25079
25104
  // The resize handle already marks each column edge, so the grid rule is
25080
25105
  // skipped while resizing.
25081
25106
  At.value && !dt && fe < he.value.length - 1 && `${Pt} border-r`,
25082
- ee.headerClassName
25107
+ _.headerClassName
25083
25108
  ), Rn = {
25084
25109
  ...ut ? {
25085
25110
  width: `${ut}px`,
25086
25111
  minWidth: `${ut}px`,
25087
25112
  maxWidth: `${ut}px`
25088
- } : Di(ee.width, ee.minWidth, ee.maxWidth) ?? {},
25113
+ } : Di(_.width, _.minWidth, _.maxWidth) ?? {},
25089
25114
  ...xt && jt !== void 0 ? { right: `${jt}px` } : {}
25090
25115
  };
25091
25116
  return {
25092
- id: ee.id,
25093
- column: ee,
25117
+ id: _.id,
25118
+ column: _,
25094
25119
  isSorted: we,
25095
25120
  thClass: nn,
25096
25121
  thStyle: Rn,
25097
- ariaSort: Re ? Re === "asc" ? "ascending" : "descending" : ee.sortable ? (
25122
+ ariaSort: Re ? Re === "asc" ? "ascending" : "descending" : _.sortable ? (
25098
25123
  // "other" = sortable but not currently sorted ("none" would
25099
25124
  // falsely claim the column can't be sorted at all).
25100
25125
  "other"
25101
25126
  ) : "none",
25102
25127
  flexClass: C(
25103
25128
  "flex items-center gap-1 min-w-0",
25104
- ee.align === "right" ? "justify-end" : ee.align === "center" ? "justify-center" : "justify-start"
25129
+ _.align === "right" ? "justify-end" : _.align === "center" ? "justify-center" : "justify-start"
25105
25130
  ),
25106
25131
  sortIcon: Re ? Oi[Re] : Oi.default,
25107
25132
  sortTooltip: Re === "asc" ? "Sort descending" : Re === "desc" ? "Clear sort" : "Sort ascending",
@@ -25113,32 +25138,32 @@ const Rb = /* @__PURE__ */ F({
25113
25138
  };
25114
25139
  })
25115
25140
  ), gt = l(
25116
- () => he.value.map((ee) => {
25117
- const fe = ce.value[ee.id];
25141
+ () => he.value.map((_) => {
25142
+ const fe = ce.value[_.id];
25118
25143
  if (fe)
25119
25144
  return {
25120
- id: ee.id,
25145
+ id: _.id,
25121
25146
  style: { width: `${fe}px`, minWidth: `${fe}px` }
25122
25147
  };
25123
- const we = ee.width !== void 0 ? ee.width : void 0, Re = ee.minWidth !== void 0 ? ee.minWidth : void 0, dt = we ?? Re;
25148
+ const we = _.width !== void 0 ? _.width : void 0, Re = _.minWidth !== void 0 ? _.minWidth : void 0, dt = we ?? Re;
25124
25149
  return {
25125
- id: ee.id,
25150
+ id: _.id,
25126
25151
  style: dt !== void 0 ? {
25127
25152
  width: typeof dt == "number" ? `${dt}px` : dt,
25128
25153
  minWidth: typeof dt == "number" ? `${dt}px` : dt
25129
25154
  } : void 0
25130
25155
  };
25131
25156
  })
25132
- ), De = (ee, fe, we = !1) => {
25157
+ ), De = (_, fe, we = !1) => {
25133
25158
  var vr, hr, fr;
25134
- const Re = Vi(ee, fe, t.rowKey), dt = !!((vr = je.value) != null && vr.has(ee) || (hr = je.value) != null && hr.has(Re)), ut = !dt && (((fr = t.rowHighlight) == null ? void 0 : fr.call(t, ee, fe)) ?? !1), It = dt ? Ql(f.value) : "", Qe = ut ? _l(f.value) : "", xt = t.striped && fe % 2 === 1 ? Jl : "bg-white dark:bg-neutral-900", jt = !dt && !ut && t.hoverable ? (t.striped && fe % 2 === 1, "group-hover:bg-neutral-200 dark:group-hover:bg-neutral-700") : void 0, nn = !dt && !ut && t.hoverable ? (t.striped && fe % 2 === 1, "group-hover:!bg-neutral-200 dark:group-hover:!bg-neutral-700") : void 0, Rn = C(
25159
+ const Re = Vi(_, fe, t.rowKey), dt = !!((vr = je.value) != null && vr.has(_) || (hr = je.value) != null && hr.has(Re)), ut = !dt && (((fr = t.rowHighlight) == null ? void 0 : fr.call(t, _, fe)) ?? !1), It = dt ? Ql(f.value) : "", Qe = ut ? _l(f.value) : "", xt = t.striped && fe % 2 === 1 ? Jl : "bg-white dark:bg-neutral-900", jt = !dt && !ut && t.hoverable ? (t.striped && fe % 2 === 1, "group-hover:bg-neutral-200 dark:group-hover:bg-neutral-700") : void 0, nn = !dt && !ut && t.hoverable ? (t.striped && fe % 2 === 1, "group-hover:!bg-neutral-200 dark:group-hover:!bg-neutral-700") : void 0, Rn = C(
25135
25160
  T.value,
25136
25161
  "group",
25137
25162
  dt ? It : ut ? Qe : t.striped && fe % 2 === 1 && Jl,
25138
25163
  ut && t.hoverable && "hover:brightness-95",
25139
25164
  "transition-colors duration-150 ease-out",
25140
25165
  h.value ? "cursor-pointer" : "cursor-default",
25141
- t.rowClassName ? t.rowClassName(ee, fe) : void 0
25166
+ t.rowClassName ? t.rowClassName(_, fe) : void 0
25142
25167
  ), rl = C(
25143
25168
  "w-10 sticky left-0 z-20",
25144
25169
  // Only apply an opaque background when there is a left-sticky data column;
@@ -25149,14 +25174,14 @@ const Rb = /* @__PURE__ */ F({
25149
25174
  ), sl = he.value.map(
25150
25175
  (Wt, il) => {
25151
25176
  var mr;
25152
- const Dl = Ni(ee, Wt, fe), gr = typeof Dl == "string" || typeof Dl == "number", dl = ce.value[Wt.id], Fl = ft(Wt), na = Fl === "left", Sn = Fl === "right" || t.stickyActions && il === he.value.length - 1, jl = Sn ? $t.value[Wt.id] : void 0, U1 = C(
25177
+ const Dl = Ni(_, Wt, fe), gr = typeof Dl == "string" || typeof Dl == "number", dl = ce.value[Wt.id], Fl = ft(Wt), na = Fl === "left", Sn = Fl === "right" || t.stickyActions && il === he.value.length - 1, jl = Sn ? $t.value[Wt.id] : void 0, U1 = C(
25153
25178
  "whitespace-nowrap align-middle text-sm text-neutral-700 dark:text-neutral-200",
25154
25179
  (na || Sn) && "sticky",
25155
25180
  na && (tt.value ? "left-10" : "left-0"),
25156
25181
  // right position is set via inline style when offset > 0
25157
25182
  Sn && !jl && "right-0",
25158
25183
  (na || Sn) && "z-10",
25159
- (na || Sn) && (dt ? Ql(f.value) : ut ? _l(f.value) : t.striped && fe % 2 === 1 ? Jl : ((mr = Wt.stickyBackgroundFn) == null ? void 0 : mr.call(Wt, ee, fe)) ?? Wt.stickyBackground ?? "bg-white dark:bg-neutral-900"),
25184
+ (na || Sn) && (dt ? Ql(f.value) : ut ? _l(f.value) : t.striped && fe % 2 === 1 ? Jl : ((mr = Wt.stickyBackgroundFn) == null ? void 0 : mr.call(Wt, _, fe)) ?? Wt.stickyBackground ?? "bg-white dark:bg-neutral-900"),
25160
25185
  // Sticky cells must keep an opaque background on hover to avoid scrolled content
25161
25186
  // bleeding through — use the fully-opaque sticky hover class instead of the semi-transparent hover.
25162
25187
  na || Sn ? nn : jt,
@@ -25202,18 +25227,18 @@ const Rb = /* @__PURE__ */ F({
25202
25227
  return {
25203
25228
  kind: "row",
25204
25229
  key: Re,
25205
- row: ee,
25230
+ row: _,
25206
25231
  originalIndex: fe,
25207
25232
  rowClasses: Rn,
25208
25233
  spacerClass: rl,
25209
25234
  cells: sl
25210
25235
  };
25211
25236
  }, pt = l(() => {
25212
- const ee = [];
25237
+ const _ = [];
25213
25238
  if (Me.value)
25214
25239
  for (const fe of Me.value) {
25215
25240
  const we = X.value[fe.key] !== !1;
25216
- if (Le.value && ee.push({
25241
+ if (Le.value && _.push({
25217
25242
  kind: "group",
25218
25243
  key: fe.key,
25219
25244
  display: fe.display,
@@ -25221,23 +25246,23 @@ const Rb = /* @__PURE__ */ F({
25221
25246
  isExpanded: we
25222
25247
  }), we || !Le.value)
25223
25248
  for (const { row: Re, originalIndex: dt } of fe.rows)
25224
- ee.push(De(Re, dt, !0));
25249
+ _.push(De(Re, dt, !0));
25225
25250
  }
25226
25251
  else
25227
25252
  Ue.value.forEach((fe, we) => {
25228
- ee.push(De(fe, we, !1));
25253
+ _.push(De(fe, we, !1));
25229
25254
  });
25230
- return ee;
25255
+ return _;
25231
25256
  }), Lt = l(
25232
25257
  () => C(
25233
25258
  "sticky left-0 flex w-fit items-center gap-2 bg-inherit rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-offset-1",
25234
25259
  w.value,
25235
25260
  M.value.sideLeft
25236
25261
  )
25237
- ), kn = (ee, fe) => {
25238
- (fe.key === "Enter" || fe.key === " ") && (fe.preventDefault(), Ze(ee));
25239
- }, Wn = (ee) => {
25240
- a("rowClick", ee.row, ee.originalIndex);
25262
+ ), kn = (_, fe) => {
25263
+ (fe.key === "Enter" || fe.key === " ") && (fe.preventDefault(), Ze(_));
25264
+ }, Wn = (_) => {
25265
+ a("rowClick", _.row, _.originalIndex);
25241
25266
  }, al = l(
25242
25267
  () => C(
25243
25268
  "p-4",
@@ -25252,28 +25277,28 @@ const Rb = /* @__PURE__ */ F({
25252
25277
  )
25253
25278
  ), ll = l(() => {
25254
25279
  if (t.panelMinItemWidth == null) return;
25255
- const ee = typeof t.panelMinItemWidth == "number" ? `${t.panelMinItemWidth}px` : t.panelMinItemWidth, fe = t.panelMaxItemWidth != null ? `min(${typeof t.panelMaxItemWidth == "number" ? `${t.panelMaxItemWidth}px` : t.panelMaxItemWidth}, 1fr)` : "1fr";
25280
+ const _ = typeof t.panelMinItemWidth == "number" ? `${t.panelMinItemWidth}px` : t.panelMinItemWidth, fe = t.panelMaxItemWidth != null ? `min(${typeof t.panelMaxItemWidth == "number" ? `${t.panelMaxItemWidth}px` : t.panelMaxItemWidth}, 1fr)` : "1fr";
25256
25281
  return {
25257
- gridTemplateColumns: `repeat(auto-fill, minmax(min(${ee}, 100%), ${fe}))`,
25282
+ gridTemplateColumns: `repeat(auto-fill, minmax(min(${_}, 100%), ${fe}))`,
25258
25283
  gap: t.panelGap != null ? typeof t.panelGap == "number" ? `${t.panelGap}px` : t.panelGap : "1rem"
25259
25284
  };
25260
- }), ol = (ee, fe) => Vi(ee, fe, t.rowKey), F1 = l(
25285
+ }), ol = (_, fe) => Vi(_, fe, t.rowKey), F1 = l(
25261
25286
  () => !!r.footer || !!t.footer || !!(t.pagination && t.pagination.total > 0)
25262
25287
  ), j1 = l(() => {
25263
25288
  var we;
25264
- const ee = (we = t.pagination) == null ? void 0 : we.pageSize, fe = /* @__PURE__ */ new Set([20, 50, 100, ...ee ? [ee] : []]);
25289
+ const _ = (we = t.pagination) == null ? void 0 : we.pageSize, fe = /* @__PURE__ */ new Set([20, 50, 100, ..._ ? [_] : []]);
25265
25290
  return Array.from(fe).sort((Re, dt) => Re - dt);
25266
- }), W1 = (ee) => {
25291
+ }), W1 = (_) => {
25267
25292
  var fe;
25268
- (fe = t.pagination) == null || fe.onPageSizeChange(Number(ee));
25293
+ (fe = t.pagination) == null || fe.onPageSizeChange(Number(_));
25269
25294
  }, Z1 = () => {
25270
- const ee = t.pagination;
25271
- ee && ee.onPageChange(Math.max(1, ee.page - 1));
25295
+ const _ = t.pagination;
25296
+ _ && _.onPageChange(Math.max(1, _.page - 1));
25272
25297
  }, G1 = () => {
25273
- const ee = t.pagination;
25274
- ee && ee.onPageChange(Math.min(Math.ceil(ee.total / ee.pageSize), ee.page + 1));
25298
+ const _ = t.pagination;
25299
+ _ && _.onPageChange(Math.min(Math.ceil(_.total / _.pageSize), _.page + 1));
25275
25300
  };
25276
- return (ee, fe) => (o(), te(Tt, Ee({
25301
+ return (_, fe) => (o(), te(Tt, Ee({
25277
25302
  variant: e.variant,
25278
25303
  tone: e.tone,
25279
25304
  padding: "none",
@@ -25497,7 +25522,7 @@ const Rb = /* @__PURE__ */ F({
25497
25522
  "px-2 py-0.5 transition-colors select-none",
25498
25523
  (Ie.value[we.id] ?? null) === Re ? "bg-neutral-200 dark:bg-neutral-700 font-semibold text-neutral-900 dark:text-neutral-100" : "text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800 dark:text-neutral-500"
25499
25524
  ]),
25500
- onClick: (dt) => _(we.id, Re)
25525
+ onClick: (dt) => ee(we.id, Re)
25501
25526
  }, N(Re === "left" ? "←" : Re === "right" ? "→" : "·"), 11, Xp)), 64))
25502
25527
  ])
25503
25528
  ]))), 128))
@@ -25507,7 +25532,7 @@ const Rb = /* @__PURE__ */ F({
25507
25532
  ], -1))
25508
25533
  ])) : L("", !0)
25509
25534
  ], 512)) : L("", !0),
25510
- oe(ee.$slots, "headerActions", {}, () => [
25535
+ oe(_.$slots, "headerActions", {}, () => [
25511
25536
  Z(b(be), { nodes: e.headerActions }, null, 8, ["nodes"])
25512
25537
  ])
25513
25538
  ])
@@ -25695,7 +25720,7 @@ const Rb = /* @__PURE__ */ F({
25695
25720
  colspan: gn.value,
25696
25721
  class: "px-6 py-16 text-center text-sm font-medium text-neutral-500 dark:text-neutral-300"
25697
25722
  }, [
25698
- oe(ee.$slots, "emptyState", {}, () => [
25723
+ oe(_.$slots, "emptyState", {}, () => [
25699
25724
  Z(b(be), {
25700
25725
  nodes: e.emptyState ?? "No data to display"
25701
25726
  }, null, 8, ["nodes"])
@@ -25745,7 +25770,7 @@ const Rb = /* @__PURE__ */ F({
25745
25770
  (o(!0), u(ae, null, ze(_e.value, (we, Re) => (o(), u(ae, {
25746
25771
  key: ol(we, Re)
25747
25772
  }, [
25748
- ee.$slots.panelItem ? oe(ee.$slots, "panelItem", {
25773
+ _.$slots.panelItem ? oe(_.$slots, "panelItem", {
25749
25774
  key: 0,
25750
25775
  row: we,
25751
25776
  index: Re
@@ -25755,7 +25780,7 @@ const Rb = /* @__PURE__ */ F({
25755
25780
  }, null, 8, ["nodes"]))
25756
25781
  ], 64))), 128))
25757
25782
  ], 6)) : (o(), u("div", gb, [
25758
- oe(ee.$slots, "emptyState", {}, () => [
25783
+ oe(_.$slots, "emptyState", {}, () => [
25759
25784
  Z(b(be), {
25760
25785
  nodes: e.emptyState ?? "No data to display"
25761
25786
  }, null, 8, ["nodes"])
@@ -25775,7 +25800,7 @@ const Rb = /* @__PURE__ */ F({
25775
25800
  )
25776
25801
  )
25777
25802
  }, [
25778
- ee.$slots.footer || e.footer ? oe(ee.$slots, "footer", { key: 0 }, () => [
25803
+ _.$slots.footer || e.footer ? oe(_.$slots, "footer", { key: 0 }, () => [
25779
25804
  Z(b(be), { nodes: e.footer }, null, 8, ["nodes"])
25780
25805
  ]) : e.pagination ? (o(), u("div", mb, [
25781
25806
  p("div", pb, [
@@ -27118,7 +27143,7 @@ const kM = /* @__PURE__ */ F({
27118
27143
  let R = ge - 1;
27119
27144
  for (; R > 0 && (((de = B[R]) == null ? void 0 : de.depth) ?? 0) > $e; )
27120
27145
  R--;
27121
- const _ = (B[R] ? B[R].depth ?? 0 : 0) < $e ? pl / 2 + Ba : -wn, ye = (w.value[R] ?? U) + _, J = Zn + $e * Aa - Ba, ve = Math.max(ye, U - wn), X = [
27146
+ const ee = (B[R] ? B[R].depth ?? 0 : 0) < $e ? pl / 2 + Ba : -wn, ye = (w.value[R] ?? U) + ee, J = Zn + $e * Aa - Ba, ve = Math.max(ye, U - wn), X = [
27122
27147
  `M ${Ie} ${ye}`,
27123
27148
  `L ${Ie} ${ve}`,
27124
27149
  `A ${wn} ${wn} 0 0 0 ${Ie + wn} ${U}`,
@@ -27177,7 +27202,7 @@ const kM = /* @__PURE__ */ F({
27177
27202
  xe.value = xe.value === B ? null : B;
27178
27203
  };
27179
27204
  return (B, j) => {
27180
- var U, ge, Ce, $e, Ie, R, ie, _, ye, J, ve, X, pe, de, re;
27205
+ var U, ge, Ce, $e, Ie, R, ie, ee, ye, J, ve, X, pe, de, re;
27181
27206
  return o(), u("section", Ee({
27182
27207
  class: H.value,
27183
27208
  "aria-busy": e.loading
@@ -27233,7 +27258,7 @@ const kM = /* @__PURE__ */ F({
27233
27258
  size: (Ie = e.loaderProps) == null ? void 0 : Ie.size,
27234
27259
  "spinner-variant": (R = e.loaderProps) == null ? void 0 : R.spinnerVariant,
27235
27260
  title: (ie = e.loaderProps) == null ? void 0 : ie.title,
27236
- variant: (_ = e.loaderProps) == null ? void 0 : _.variant
27261
+ variant: (ee = e.loaderProps) == null ? void 0 : ee.variant
27237
27262
  }, null, 8, ["spinner-thickness", "color", "glass", "glass-blur-intensity", "label", "size", "spinner-variant", "title", "variant"])
27238
27263
  ])) : e.items.length === 0 && (e.emptyState || B.$slots.emptyState) ? (o(), u("div", ux, [
27239
27264
  oe(B.$slots, "emptyState", {}, () => [
@@ -28025,27 +28050,27 @@ const Va = (e, n, t, a) => {
28025
28050
  He.dx && He.y > nt.y && He.y < nt.y + nt.height && (qe = He.dx > 0 ? nt.x - He.x : He.x - nt.x - nt.width), He.dy && He.x > nt.x && He.x < nt.x + nt.width && (qe = He.dy > 0 ? nt.y - He.y : He.y - nt.y - nt.height), qe >= 0 && (ot = Math.min(ot, qe / 2));
28026
28051
  }
28027
28052
  return Math.max(0.5, ot);
28028
- }, R = Ie(U), ie = Ie(ge), _ = {
28053
+ }, R = Ie(U), ie = Ie(ge), ee = {
28029
28054
  x: U.x + B.dx * R,
28030
28055
  y: U.y + B.dy * R
28031
28056
  }, ye = {
28032
28057
  x: ge.x + j.dx * ie,
28033
28058
  y: ge.y + j.dy * ie
28034
28059
  }, J = Ji(
28035
- [...V, _.x, ye.x],
28036
- Math.min(_.x, ye.x, se),
28037
- Math.max(_.x, ye.x, q)
28060
+ [...V, ee.x, ye.x],
28061
+ Math.min(ee.x, ye.x, se),
28062
+ Math.max(ee.x, ye.x, q)
28038
28063
  ).filter((He) => He >= I && He <= O), ve = Ji(
28039
- [...D, _.y, ye.y],
28040
- Math.min(_.y, ye.y, ce),
28041
- Math.max(_.y, ye.y, ue)
28042
- ).filter((He) => He >= H && He <= E), X = [.../* @__PURE__ */ new Set([...J, _.x, ye.x])].sort(
28064
+ [...D, ee.y, ye.y],
28065
+ Math.min(ee.y, ye.y, ce),
28066
+ Math.max(ee.y, ye.y, ue)
28067
+ ).filter((He) => He >= H && He <= E), X = [.../* @__PURE__ */ new Set([...J, ee.x, ye.x])].sort(
28043
28068
  (He, ot) => He - ot
28044
- ), pe = [.../* @__PURE__ */ new Set([...ve, _.y, ye.y])].sort(
28069
+ ), pe = [.../* @__PURE__ */ new Set([...ve, ee.y, ye.y])].sort(
28045
28070
  (He, ot) => He - ot
28046
28071
  );
28047
28072
  if (X.length * pe.length > 65536) return null;
28048
- const de = new Map(X.map((He, ot) => [Ye(He), ot])), re = new Map(pe.map((He, ot) => [Ye(He), ot])), W = de.get(Ye(_.x)), Le = re.get(Ye(_.y)), ke = de.get(Ye(ye.x)), je = re.get(Ye(ye.y));
28073
+ const de = new Map(X.map((He, ot) => [Ye(He), ot])), re = new Map(pe.map((He, ot) => [Ye(He), ot])), W = de.get(Ye(ee.x)), Le = re.get(Ye(ee.y)), ke = de.get(Ye(ye.x)), je = re.get(Ye(ye.y));
28049
28074
  if (W === void 0 || Le === void 0 || ke === void 0 || je === void 0)
28050
28075
  continue;
28051
28076
  const Ge = ty(B.dx, B.dy), Je = X.length, Pe = pe.length, Ue = Je * Pe * 4, Xe = new Float64Array(Ue).fill(
@@ -28699,23 +28724,23 @@ const e0 = {
28699
28724
  e.slice(r + 1).some((i) => Et(i.nodes[0]) !== "neutral") && t.add(r);
28700
28725
  }), t;
28701
28726
  }, cy = (e) => k1(e, /* @__PURE__ */ new Map(), 0), k1 = (e, n, t) => {
28702
- const a = { ...i1, ...e.options }, r = sy(e.nodes, a), s = [], i = (R, ie, _, ye) => {
28727
+ const a = { ...i1, ...e.options }, r = sy(e.nodes, a), s = [], i = (R, ie, ee, ye) => {
28703
28728
  const J = JSON.stringify([R.map((re) => re.id), ie.map((re) => re.id)]), ve = new Set(R.map((re) => re.id)), X = new Set(ie.map((re) => re.id)), pe = e.connections === void 0 ? R.length * ie.length : e.connections.filter((re) => ve.has(re.fromId) && X.has(re.toId) || X.has(re.fromId) && ve.has(re.toId)).length, de = Math.max(
28704
28729
  ye,
28705
- _ === "vertical" ? n.get(J) ?? 0 : 0,
28730
+ ee === "vertical" ? n.get(J) ?? 0 : 0,
28706
28731
  // Pack lane centres between the two terminal runs. N lanes need
28707
28732
  // N - 1 spacers; counting both outer margins as lanes wastes two slots.
28708
- _ === "horizontal" && pe > 1 ? 48 + (pe - 1) * Ua(a.pathClearance, a.cornerRadius) : 0,
28733
+ ee === "horizontal" && pe > 1 ? 48 + (pe - 1) * Ua(a.pathClearance, a.cornerRadius) : 0,
28709
28734
  ...R.map((re) => {
28710
28735
  var W;
28711
- return ((W = r.after.get(re.id)) == null ? void 0 : W[_]) ?? 0;
28736
+ return ((W = r.after.get(re.id)) == null ? void 0 : W[ee]) ?? 0;
28712
28737
  }),
28713
28738
  ...ie.map((re) => {
28714
28739
  var W;
28715
- return ((W = r.before.get(re.id)) == null ? void 0 : W[_]) ?? 0;
28740
+ return ((W = r.before.get(re.id)) == null ? void 0 : W[ee]) ?? 0;
28716
28741
  })
28717
28742
  );
28718
- return _ === "vertical" && R.length && ie.length && s.push({ key: J, before: R, after: ie, size: de }), de;
28743
+ return ee === "vertical" && R.length && ie.length && s.push({ key: J, before: R, after: ie, size: de }), de;
28719
28744
  }, d = dy(e.nodes), h = uy(d, e.autoState ?? !1), m = /* @__PURE__ */ new Map();
28720
28745
  if (e.nodes.length && e.nodes.every((R) => R.gridPosition && Number.isInteger(R.gridPosition.column) && Number.isInteger(R.gridPosition.row))) {
28721
28746
  const R = /* @__PURE__ */ new Map();
@@ -28724,10 +28749,10 @@ const e0 = {
28724
28749
  R.set(J, [...R.get(J) ?? [], ye]);
28725
28750
  }
28726
28751
  const ie = [...R].sort(([ye], [J]) => ye - J);
28727
- let _ = a.padding;
28752
+ let ee = a.padding;
28728
28753
  ie.forEach(([ye, J], ve) => {
28729
28754
  var X;
28730
- m.set(ye, _), _ += Math.max(...J.map((pe) => ca(pe, a, e.expanded))) + i(J, ((X = ie[ve + 1]) == null ? void 0 : X[1]) ?? [], "vertical", Math.max(72, a.laneGap));
28755
+ m.set(ye, ee), ee += Math.max(...J.map((pe) => ca(pe, a, e.expanded))) + i(J, ((X = ie[ve + 1]) == null ? void 0 : X[1]) ?? [], "vertical", Math.max(72, a.laneGap));
28731
28756
  });
28732
28757
  }
28733
28758
  const v = [], k = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
@@ -28735,16 +28760,16 @@ const e0 = {
28735
28760
  const c = [];
28736
28761
  d.forEach((R, ie) => {
28737
28762
  var ve;
28738
- let _ = a.padding;
28763
+ let ee = a.padding;
28739
28764
  R.nodes.forEach((X, pe) => {
28740
28765
  var Ge, Je, Pe;
28741
- _ = m.get(((Ge = X.gridPosition) == null ? void 0 : Ge.row) ?? NaN) ?? _;
28766
+ ee = m.get(((Ge = X.gridPosition) == null ? void 0 : Ge.row) ?? NaN) ?? ee;
28742
28767
  const de = v.length, re = ca(X, a, e.expanded), W = {
28743
28768
  id: X.id,
28744
28769
  node: X,
28745
28770
  outline: "",
28746
28771
  x: g,
28747
- y: _,
28772
+ y: ee,
28748
28773
  width: a.metrics.width,
28749
28774
  height: re,
28750
28775
  anchorY: re / 2,
@@ -28754,7 +28779,7 @@ const e0 = {
28754
28779
  scrollable: eo(X, a, e.expanded)
28755
28780
  };
28756
28781
  v.push(W), k.set(X.id, W);
28757
- let Le = _ + re + i(
28782
+ let Le = ee + re + i(
28758
28783
  [X],
28759
28784
  ((Je = X.children) == null ? void 0 : Je.slice(0, 1)) ?? [],
28760
28785
  "vertical",
@@ -28789,7 +28814,7 @@ const e0 = {
28789
28814
  const Ue = d1(X);
28790
28815
  if (Ue.length > 0) {
28791
28816
  const Xe = a.metrics.width, Ne = g + a.gridIndent;
28792
- let Ke = _ + re + i([X], Ue[0], "vertical", a.rowGap);
28817
+ let Ke = ee + re + i([X], Ue[0], "vertical", a.rowGap);
28793
28818
  const vt = [];
28794
28819
  let Se = Xe;
28795
28820
  Ue.forEach((Ze, _e) => {
@@ -28832,7 +28857,7 @@ const e0 = {
28832
28857
  const je = Math.max(
28833
28858
  ...v.slice(de).map((Ue) => Ue.y + Ue.height)
28834
28859
  );
28835
- _ = m.size ? je : je + i(
28860
+ ee = m.size ? je : je + i(
28836
28861
  [X],
28837
28862
  R.nodes.slice(pe + 1, pe + 2),
28838
28863
  "vertical",
@@ -28856,7 +28881,7 @@ const e0 = {
28856
28881
  a.connectorWidth
28857
28882
  );
28858
28883
  });
28859
- const f = [], w = /* @__PURE__ */ new Map(), y = (R) => xo[(R == null ? void 0 : R.ringSize) ?? a.ringSize] ?? xo.md, T = (R) => Ga(y(R)), M = (R, ie, _, ye, J, ve, X) => {
28884
+ const f = [], w = /* @__PURE__ */ new Map(), y = (R) => xo[(R == null ? void 0 : R.ringSize) ?? a.ringSize] ?? xo.md, T = (R) => Ga(y(R)), M = (R, ie, ee, ye, J, ve, X) => {
28860
28885
  const pe = y(X), de = `${R}:${Math.round(ie.x)}:${Math.round(ie.y)}`, re = w.get(de);
28861
28886
  if (re) {
28862
28887
  re.edgeIds.push(ve), e0[ye] > e0[re.state] && (re.state = ye), J && (re.active = !0), pe > re.radius && (re.radius = pe);
@@ -28868,7 +28893,7 @@ const e0 = {
28868
28893
  x: ie.x,
28869
28894
  y: ie.y,
28870
28895
  side: ie.side,
28871
- tone: _,
28896
+ tone: ee,
28872
28897
  state: ye,
28873
28898
  active: J,
28874
28899
  edgeIds: [ve],
@@ -28888,8 +28913,8 @@ const e0 = {
28888
28913
  }), O = (R) => {
28889
28914
  const ie = d[R].nodes.map((X) => k.get(X.id)).filter((X) => !!X);
28890
28915
  if (ie.length === 0) return null;
28891
- const _ = Math.min(...ie.map((X) => X.x)), ye = Math.min(...ie.map((X) => X.y)), J = Math.max(...ie.map((X) => X.x + X.width)), ve = Math.max(...ie.map((X) => X.y + X.height));
28892
- return { x: _, y: ye, width: J - _, height: ve - ye };
28916
+ const ee = Math.min(...ie.map((X) => X.x)), ye = Math.min(...ie.map((X) => X.y)), J = Math.max(...ie.map((X) => X.x + X.width)), ve = Math.max(...ie.map((X) => X.y + X.height));
28917
+ return { x: ee, y: ye, width: J - ee, height: ve - ye };
28893
28918
  }, H = (R) => (R == null ? void 0 : R.edgeStyle) ?? a.edgeStyle, E = (R, ie) => ie.side === "left" || ie.side === "right" ? R.height === 0 ? 0.5 : (ie.y - R.y) / R.height : R.width === 0 ? 0.5 : (ie.x - R.x) / R.width, V = v.map(I), D = ey(), se = (R) => {
28894
28919
  var J, ve;
28895
28920
  const ie = er(R.fromPort, R.toPort, {
@@ -28898,7 +28923,7 @@ const e0 = {
28898
28923
  radius: a.cornerRadius,
28899
28924
  trim: R.trim,
28900
28925
  via: R.via
28901
- }), _ = { ...ie, fromPort: R.fromPort, toPort: R.toPort };
28926
+ }), ee = { ...ie, fromPort: R.fromPort, toPort: R.toPort };
28902
28927
  return ln(ie.points, V) ? Va(
28903
28928
  {
28904
28929
  box: R.fromBox,
@@ -28915,16 +28940,16 @@ const e0 = {
28915
28940
  clearance: a.pathClearance,
28916
28941
  laneUse: D
28917
28942
  }
28918
- ) ?? _ : _;
28943
+ ) ?? ee : ee;
28919
28944
  };
28920
28945
  d.forEach((R, ie) => {
28921
28946
  var Je;
28922
28947
  if (e.connections !== void 0 || ie === 0) return;
28923
- const _ = A(ie);
28924
- if (_ < 0 || S(_) || h.has(ie)) return;
28925
- const ye = _ !== ie - 1, J = d[_].parallel ? void 0 : x.get(d[_].nodes[0].id);
28948
+ const ee = A(ie);
28949
+ if (ee < 0 || S(ee) || h.has(ie)) return;
28950
+ const ye = ee !== ie - 1, J = d[ee].parallel ? void 0 : x.get(d[ee].nodes[0].id);
28926
28951
  if (J && (!J.exitCard || J.exitHasBranch) || ((Je = J == null ? void 0 : J.exitCard) == null ? void 0 : Je.node.terminal) === !0) return;
28927
- const ve = J != null && J.exitCard ? [J.exitCard.node] : d[_].nodes, X = R.nodes, pe = (Pe, Ue) => {
28952
+ const ve = J != null && J.exitCard ? [J.exitCard.node] : d[ee].nodes, X = R.nodes, pe = (Pe, Ue) => {
28928
28953
  var Xe;
28929
28954
  return ((Xe = Ue.connector) == null ? void 0 : Xe.state) ?? (e.autoState ? Et(Pe) !== "neutral" ? Pn(Ue) ? "flowing" : "stopped" : "disabled" : e.flowState ?? "flowing");
28930
28955
  }, de = (Pe, Ue) => ((Pe == null ? void 0 : Pe.animated) ?? e.animated ?? !0) && (Ue === "flowing" || Ue === "stopped" && ((Pe == null ? void 0 : Pe.animateCompleted) ?? !1));
@@ -28932,13 +28957,13 @@ const e0 = {
28932
28957
  const W = (Pe) => {
28933
28958
  if (!(!Pe || re))
28934
28959
  return re = !0, Pe;
28935
- }, Le = J != null && J.exitCard ? I(J.exitCard) : O(_), ke = O(ie);
28960
+ }, Le = J != null && J.exitCard ? I(J.exitCard) : O(ee), ke = O(ie);
28936
28961
  if (!Le || !ke) return;
28937
28962
  const je = to(Le, ke);
28938
28963
  let Ge;
28939
28964
  if (ye) {
28940
28965
  const Pe = [Le, ke];
28941
- for (let Xe = _ + 1; Xe < ie; Xe += 1) {
28966
+ for (let Xe = ee + 1; Xe < ie; Xe += 1) {
28942
28967
  const Ne = O(Xe);
28943
28968
  Ne && Pe.push(Ne);
28944
28969
  }
@@ -29010,10 +29035,10 @@ const e0 = {
29010
29035
  const q = (R) => {
29011
29036
  if (R.childLayout === "chain") return;
29012
29037
  const ie = k.get(R.id);
29013
- ie && (R.children ?? []).forEach((_) => {
29014
- const ye = k.get(_.id);
29038
+ ie && (R.children ?? []).forEach((ee) => {
29039
+ const ye = k.get(ee.id);
29015
29040
  if (!ye) return;
29016
- const J = I(ie), ve = I(ye), X = _.connector, pe = (X == null ? void 0 : X.state) ?? (Pn(_) ? "flowing" : "stopped"), de = qi(J, "bottom", a.childIndent / 2), re = St(
29041
+ const J = I(ie), ve = I(ye), X = ee.connector, pe = (X == null ? void 0 : X.state) ?? (Pn(ee) ? "flowing" : "stopped"), de = qi(J, "bottom", a.childIndent / 2), re = St(
29017
29042
  ve,
29018
29043
  "left",
29019
29044
  ye.anchorY / ye.height
@@ -29025,7 +29050,7 @@ const e0 = {
29025
29050
  style: H(X),
29026
29051
  stub: 10,
29027
29052
  trim: T(X)
29028
- }), Le = `${R.id}v>${_.id}`, ke = ((X == null ? void 0 : X.animated) ?? e.animated ?? !0) && Pn(_);
29053
+ }), Le = `${R.id}v>${ee.id}`, ke = ((X == null ? void 0 : X.animated) ?? e.animated ?? !0) && Pn(ee);
29029
29054
  M(
29030
29055
  R.id,
29031
29056
  W.fromPort,
@@ -29035,9 +29060,9 @@ const e0 = {
29035
29060
  Le,
29036
29061
  X
29037
29062
  ), M(
29038
- _.id,
29063
+ ee.id,
29039
29064
  W.toPort,
29040
- Et(_),
29065
+ Et(ee),
29041
29066
  pe,
29042
29067
  ke,
29043
29068
  Le,
@@ -29045,12 +29070,12 @@ const e0 = {
29045
29070
  ), f.push({
29046
29071
  id: Le,
29047
29072
  fromId: R.id,
29048
- toId: _.id,
29073
+ toId: ee.id,
29049
29074
  state: pe,
29050
29075
  points: W.points,
29051
29076
  d: W.d,
29052
29077
  sourceTone: Et(R),
29053
- targetTone: Et(_),
29078
+ targetTone: Et(ee),
29054
29079
  bypass: !1,
29055
29080
  emitIndex: 0,
29056
29081
  emitCount: 1,
@@ -29058,7 +29083,7 @@ const e0 = {
29058
29083
  animated: ke,
29059
29084
  label: X == null ? void 0 : X.label,
29060
29085
  style: H(X)
29061
- }), q(_);
29086
+ }), q(ee);
29062
29087
  });
29063
29088
  };
29064
29089
  e.connections === void 0 && e.nodes.forEach(q);
@@ -29074,13 +29099,13 @@ const e0 = {
29074
29099
  trim: T(R.cfg),
29075
29100
  via: R.via,
29076
29101
  prefer: R.prefer
29077
- }), _ = (((J = R.cfg) == null ? void 0 : J.animated) ?? e.animated ?? !0) && (R.state === "flowing" || R.state === "stopped" && (((ve = R.cfg) == null ? void 0 : ve.animateCompleted) ?? !1));
29102
+ }), ee = (((J = R.cfg) == null ? void 0 : J.animated) ?? e.animated ?? !0) && (R.state === "flowing" || R.state === "stopped" && (((ve = R.cfg) == null ? void 0 : ve.animateCompleted) ?? !1));
29078
29103
  M(
29079
29104
  R.fromEntry.id,
29080
29105
  ie.fromPort,
29081
29106
  R.sourceTone,
29082
29107
  R.state,
29083
- _,
29108
+ ee,
29084
29109
  R.id,
29085
29110
  R.cfg
29086
29111
  ), M(
@@ -29088,7 +29113,7 @@ const e0 = {
29088
29113
  ie.toPort,
29089
29114
  R.targetTone,
29090
29115
  R.state,
29091
- _,
29116
+ ee,
29092
29117
  R.id,
29093
29118
  R.cfg
29094
29119
  ), f.push({
@@ -29104,19 +29129,19 @@ const e0 = {
29104
29129
  emitIndex: 0,
29105
29130
  emitCount: 1,
29106
29131
  emitSpan: 0,
29107
- animated: _,
29132
+ animated: ee,
29108
29133
  ringSize: (X = R.cfg) == null ? void 0 : X.ringSize,
29109
29134
  label: R.label,
29110
29135
  kind: R.kind,
29111
29136
  branchKind: R.branchKind,
29112
29137
  style: ((pe = R.cfg) == null ? void 0 : pe.edgeStyle) ?? a.edgeStyle
29113
29138
  });
29114
- }, ue = (R, ie) => St(I(R), ie, R.anchorY / R.height), le = (R, ie) => R.tone ?? (ie === "success" ? Al.succeeded : Al.failed), G = (R, ie, _) => {
29139
+ }, ue = (R, ie) => St(I(R), ie, R.anchorY / R.height), le = (R, ie) => R.tone ?? (ie === "success" ? Al.succeeded : Al.failed), G = (R, ie, ee) => {
29115
29140
  if (!ie.to) return;
29116
29141
  const ye = k.get(ie.to);
29117
29142
  if (!ye || ye.id === R.id) return;
29118
- const J = le(ie, _), ve = _ === "failure" ? bl(R.node) ? "flowing" : "stopped" : bl(R.node) ? "stopped" : "flowing", X = I(R), pe = I(ye);
29119
- if ((pe.y + pe.height <= X.y + 1 || pe.x + pe.width <= X.x + 1) && _ === "failure") {
29143
+ const J = le(ie, ee), ve = ee === "failure" ? bl(R.node) ? "flowing" : "stopped" : bl(R.node) ? "stopped" : "flowing", X = I(R), pe = I(ye);
29144
+ if ((pe.y + pe.height <= X.y + 1 || pe.x + pe.width <= X.x + 1) && ee === "failure") {
29120
29145
  ce({
29121
29146
  id: `${R.id}~fail>${ye.id}`,
29122
29147
  fromEntry: R,
@@ -29130,13 +29155,13 @@ const e0 = {
29130
29155
  targetTone: J,
29131
29156
  label: ie.label,
29132
29157
  kind: "branch",
29133
- branchKind: _
29158
+ branchKind: ee
29134
29159
  });
29135
29160
  return;
29136
29161
  }
29137
29162
  const re = to(X, pe);
29138
29163
  ce({
29139
- id: `${R.id}~${_ === "failure" ? "fail" : "ok"}>${ye.id}`,
29164
+ id: `${R.id}~${ee === "failure" ? "fail" : "ok"}>${ye.id}`,
29140
29165
  fromEntry: R,
29141
29166
  toEntry: ye,
29142
29167
  fromPort: ue(R, re.from),
@@ -29146,7 +29171,7 @@ const e0 = {
29146
29171
  targetTone: J,
29147
29172
  label: ie.label,
29148
29173
  kind: "branch",
29149
- branchKind: _
29174
+ branchKind: ee
29150
29175
  });
29151
29176
  };
29152
29177
  x.forEach((R) => {
@@ -29154,9 +29179,9 @@ const e0 = {
29154
29179
  if (e.connections !== void 0) return;
29155
29180
  const ie = k.get(R.parentNode.id);
29156
29181
  if (!ie || Na(R.parentNode) === !0) return;
29157
- const _ = R.walk.filter((pe) => !Na(pe.card.node));
29158
- if (_.length === 0) return;
29159
- const ye = _[0].card, J = I(ie), ve = I(ye);
29182
+ const ee = R.walk.filter((pe) => !Na(pe.card.node));
29183
+ if (ee.length === 0) return;
29184
+ const ye = ee[0].card, J = I(ie), ve = I(ye);
29160
29185
  ce({
29161
29186
  id: `${ie.id}~in>${ye.id}`,
29162
29187
  fromEntry: ie,
@@ -29172,14 +29197,14 @@ const e0 = {
29172
29197
  targetTone: Et(ye.node),
29173
29198
  cfg: ye.node.connector,
29174
29199
  kind: "chain"
29175
- }), _.forEach((pe, de) => {
29200
+ }), ee.forEach((pe, de) => {
29176
29201
  var Ue, Xe, Ne, Ke;
29177
29202
  const re = pe.card;
29178
29203
  if ((Ue = re.node.success) != null && Ue.to) {
29179
29204
  G(re, re.node.success, "success");
29180
29205
  return;
29181
29206
  }
29182
- const W = _[de + 1];
29207
+ const W = ee[de + 1];
29183
29208
  if (!W) return;
29184
29209
  const Le = W.card, ke = I(re), je = I(Le), Ge = W.row === pe.row, Je = ke.x + ke.width, Pe = je.x;
29185
29210
  ce({
@@ -29204,25 +29229,25 @@ const e0 = {
29204
29229
  x.forEach(
29205
29230
  (R) => R.walk.forEach((ie) => xe.add(ie.card.id))
29206
29231
  ), v.forEach((R) => {
29207
- var ie, _;
29208
- e.connections === void 0 && (xe.has(R.id) || ((ie = R.node.success) != null && ie.to && G(R, R.node.success, "success"), (_ = R.node.failure) != null && _.to && G(R, R.node.failure, "failure")));
29232
+ var ie, ee;
29233
+ e.connections === void 0 && (xe.has(R.id) || ((ie = R.node.success) != null && ie.to && G(R, R.node.success, "success"), (ee = R.node.failure) != null && ee.to && G(R, R.node.failure, "failure")));
29209
29234
  });
29210
29235
  const ne = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Set();
29211
29236
  for (const R of e.connections ?? []) {
29212
- const ie = k.get(R.fromId), _ = k.get(R.toId), ye = JSON.stringify([R.fromId, R.toId]);
29213
- if (!ie || !_ || ie === _ || !R.id || ne.has(R.id) || z.has(ye)) continue;
29237
+ const ie = k.get(R.fromId), ee = k.get(R.toId), ye = JSON.stringify([R.fromId, R.toId]);
29238
+ if (!ie || !ee || ie === ee || !R.id || ne.has(R.id) || z.has(ye)) continue;
29214
29239
  ne.add(R.id), z.add(ye);
29215
- const J = to(I(ie), I(_)), ve = R.fromSide ?? J.from, X = R.toSide ?? J.to;
29240
+ const J = to(I(ie), I(ee)), ve = R.fromSide ?? J.from, X = R.toSide ?? J.to;
29216
29241
  ce({
29217
29242
  id: R.id,
29218
29243
  fromEntry: ie,
29219
- toEntry: _,
29244
+ toEntry: ee,
29220
29245
  fromPort: ue(ie, ve),
29221
- toPort: ue(_, X),
29246
+ toPort: ue(ee, X),
29222
29247
  prefer: { from: [ve], to: [X] },
29223
- state: R.state ?? (e.autoState ? Et(ie.node) !== "neutral" ? Pn(_.node) ? "flowing" : "stopped" : "disabled" : e.flowState ?? "flowing"),
29224
- sourceTone: R.sourceTone ?? Et(ie.node),
29225
- targetTone: R.targetTone ?? Et(_.node),
29248
+ state: R.state ?? (e.autoState ? Et(ie.node) !== "neutral" ? Pn(ee.node) ? "flowing" : "stopped" : "disabled" : e.flowState ?? "flowing"),
29249
+ sourceTone: R.sourceTone ?? R.tone ?? Et(ie.node),
29250
+ targetTone: R.targetTone ?? R.tone ?? Et(ie.node),
29226
29251
  label: R.label,
29227
29252
  cfg: R
29228
29253
  });
@@ -29230,8 +29255,8 @@ const e0 = {
29230
29255
  if (iy(v, f, w, a), t < 4 && s.length) {
29231
29256
  const R = new Map(n);
29232
29257
  for (const ie of s) {
29233
- const _ = new Set(ie.before.map((W) => W.id)), ye = new Set(ie.after.map((W) => W.id)), J = [...w.values()].filter(
29234
- (W) => W.side === "bottom" && _.has(W.nodeId) || W.side === "top" && ye.has(W.nodeId)
29258
+ const ee = new Set(ie.before.map((W) => W.id)), ye = new Set(ie.after.map((W) => W.id)), J = [...w.values()].filter(
29259
+ (W) => W.side === "bottom" && ee.has(W.nodeId) || W.side === "top" && ye.has(W.nodeId)
29235
29260
  );
29236
29261
  if (!J.length) continue;
29237
29262
  const X = 48 + (new Set(J.flatMap((W) => W.edgeIds)).size - 1) * Ua(a.pathClearance, a.cornerRadius), pe = Math.min(...ie.after.map((W) => k.get(W.id).y)), de = pe - ie.size, re = Math.max(
@@ -29242,7 +29267,7 @@ const e0 = {
29242
29267
  );
29243
29268
  re > 0.01 && R.set(ie.key, ie.size + re);
29244
29269
  }
29245
- if ([...R].some(([ie, _]) => _ > (n.get(ie) ?? 0)))
29270
+ if ([...R].some(([ie, ee]) => ee > (n.get(ie) ?? 0)))
29246
29271
  return k1(e, R, t + 1);
29247
29272
  }
29248
29273
  ry(v, f, w, a);
@@ -29261,19 +29286,19 @@ const e0 = {
29261
29286
  const B = /* @__PURE__ */ new Map();
29262
29287
  f.forEach((R) => {
29263
29288
  if (!R.animated) return;
29264
- const ie = R.fromId ?? "", _ = B.get(ie) ?? [];
29265
- _.push(R), B.set(ie, _);
29289
+ const ie = R.fromId ?? "", ee = B.get(ie) ?? [];
29290
+ ee.push(R), B.set(ie, ee);
29266
29291
  }), B.forEach((R) => {
29267
- const ie = Math.max(...R.map((_) => b1(_.points)));
29268
- R.forEach((_, ye) => {
29269
- _.emitIndex = ye, _.emitCount = R.length, _.emitSpan = ie;
29292
+ const ie = Math.max(...R.map((ee) => b1(ee.points)));
29293
+ R.forEach((ee, ye) => {
29294
+ ee.emitIndex = ye, ee.emitCount = R.length, ee.emitSpan = ie;
29270
29295
  });
29271
29296
  });
29272
29297
  const j = /* @__PURE__ */ new Map();
29273
29298
  w.forEach((R) => {
29274
29299
  if (R.radius <= r1) return;
29275
- const ie = j.get(R.nodeId) ?? [], _ = R.side === "top" || R.side === "bottom";
29276
- ie.push({ side: R.side, at: _ ? R.x : R.y, radius: R.radius }), j.set(R.nodeId, ie);
29300
+ const ie = j.get(R.nodeId) ?? [], ee = R.side === "top" || R.side === "bottom";
29301
+ ie.push({ side: R.side, at: ee ? R.x : R.y, radius: R.radius }), j.set(R.nodeId, ie);
29277
29302
  }), v.forEach((R) => {
29278
29303
  R.outline = _x(
29279
29304
  I(R),
@@ -29937,9 +29962,9 @@ const e0 = {
29937
29962
  // The card silhouette is geometry, so the corner radius belongs to the
29938
29963
  // layout rather than to the renderer that draws it.
29939
29964
  nodeCornerRadius: g.value
29940
- })), f = K(/* @__PURE__ */ new Set()), w = (_) => {
29965
+ })), f = K(/* @__PURE__ */ new Set()), w = (ee) => {
29941
29966
  const ye = new Set(f.value);
29942
- ye.delete(_) || ye.add(_), f.value = ye;
29967
+ ye.delete(ee) || ye.add(ee), f.value = ye;
29943
29968
  }, y = l(
29944
29969
  () => cy({
29945
29970
  nodes: a.nodes,
@@ -29950,15 +29975,15 @@ const e0 = {
29950
29975
  options: c.value
29951
29976
  })
29952
29977
  ), T = l(() => {
29953
- const _ = m.value ?? v.value;
29954
- return !a.highlightPath || !_ ? { nodes: /* @__PURE__ */ new Set(), edges: /* @__PURE__ */ new Set() } : vy(y.value, _);
29955
- }), M = (_) => Math.min(a.maxZoom, Math.max(a.minZoom, _)), S = (_) => {
29978
+ const ee = m.value ?? v.value;
29979
+ return !a.highlightPath || !ee ? { nodes: /* @__PURE__ */ new Set(), edges: /* @__PURE__ */ new Set() } : vy(y.value, ee);
29980
+ }), M = (ee) => Math.min(a.maxZoom, Math.max(a.minZoom, ee)), S = (ee) => {
29956
29981
  ma(() => {
29957
29982
  const ye = d.value;
29958
- ye && _(ye);
29983
+ ye && ee(ye);
29959
29984
  });
29960
- }, A = (_, ye) => {
29961
- const J = M(_);
29985
+ }, A = (ee, ye) => {
29986
+ const J = M(ee);
29962
29987
  if (J === k.value) return;
29963
29988
  const ve = d.value;
29964
29989
  if (ve) {
@@ -29972,48 +29997,48 @@ const e0 = {
29972
29997
  }
29973
29998
  k.value = J, r("zoomChange", J);
29974
29999
  }, I = () => A(k.value * 1.2), O = () => A(k.value / 1.2), H = () => {
29975
- const _ = d.value;
29976
- !_ || !_.clientWidth || !_.clientHeight || (k.value = M(
29977
- hy(y.value, _.clientWidth, _.clientHeight, a.maxZoom).scale
30000
+ const ee = d.value;
30001
+ !ee || !ee.clientWidth || !ee.clientHeight || (k.value = M(
30002
+ hy(y.value, ee.clientWidth, ee.clientHeight, a.maxZoom).scale
29978
30003
  ), S((ye) => {
29979
30004
  ye.scrollLeft = 0, ye.scrollTop = 0;
29980
30005
  }), r("zoomChange", k.value));
29981
- }, E = (_) => {
30006
+ }, E = (ee) => {
29982
30007
  var ve;
29983
- if (!a.interactive || _.target.closest("[data-scrolls]")) return;
29984
- _.preventDefault();
29985
- const ye = (ve = d.value) == null ? void 0 : ve.getBoundingClientRect(), J = ye ? { x: _.clientX - ye.left, y: _.clientY - ye.top } : void 0;
29986
- A(k.value * (_.deltaY < 0 ? 1.1 : 1 / 1.1), J);
30008
+ if (!a.interactive || ee.target.closest("[data-scrolls]")) return;
30009
+ ee.preventDefault();
30010
+ const ye = (ve = d.value) == null ? void 0 : ve.getBoundingClientRect(), J = ye ? { x: ee.clientX - ye.left, y: ee.clientY - ye.top } : void 0;
30011
+ A(k.value * (ee.deltaY < 0 ? 1.1 : 1 / 1.1), J);
29987
30012
  }, V = K(!1);
29988
30013
  let D = { x: 0, y: 0, scrollLeft: 0, scrollTop: 0 };
29989
- const se = (_) => {
29990
- if (!a.interactive || _.button !== 0 || _.target.closest(
30014
+ const se = (ee) => {
30015
+ if (!a.interactive || ee.button !== 0 || ee.target.closest(
29991
30016
  "button, a, input, select, textarea, [data-no-pan]"
29992
30017
  ))
29993
30018
  return;
29994
30019
  const ye = d.value;
29995
30020
  ye && (V.value = !0, D = {
29996
- x: _.clientX,
29997
- y: _.clientY,
30021
+ x: ee.clientX,
30022
+ y: ee.clientY,
29998
30023
  scrollLeft: ye.scrollLeft,
29999
30024
  scrollTop: ye.scrollTop
30000
- }, ye.setPointerCapture(_.pointerId));
30001
- }, q = (_) => {
30025
+ }, ye.setPointerCapture(ee.pointerId));
30026
+ }, q = (ee) => {
30002
30027
  if (!V.value) return;
30003
30028
  const ye = d.value;
30004
- ye && (ye.scrollLeft = D.scrollLeft - (_.clientX - D.x), ye.scrollTop = D.scrollTop - (_.clientY - D.y));
30005
- }, ce = (_) => {
30006
- V.value && (V.value = !1, _.currentTarget.releasePointerCapture(_.pointerId));
30007
- }, ue = (_) => {
30008
- m.value = (_ == null ? void 0 : _.id) ?? null, r("nodeHover", (_ == null ? void 0 : _.node) ?? null);
30009
- }, le = (_) => {
30010
- v.value = v.value === _.id ? null : _.id, r("nodeClick", _.node);
30029
+ ye && (ye.scrollLeft = D.scrollLeft - (ee.clientX - D.x), ye.scrollTop = D.scrollTop - (ee.clientY - D.y));
30030
+ }, ce = (ee) => {
30031
+ V.value && (V.value = !1, ee.currentTarget.releasePointerCapture(ee.pointerId));
30032
+ }, ue = (ee) => {
30033
+ m.value = (ee == null ? void 0 : ee.id) ?? null, r("nodeHover", (ee == null ? void 0 : ee.node) ?? null);
30034
+ }, le = (ee) => {
30035
+ v.value = v.value === ee.id ? null : ee.id, r("nodeClick", ee.node);
30011
30036
  };
30012
30037
  let G = null;
30013
30038
  tn(() => {
30014
- G = new ResizeObserver((_) => {
30039
+ G = new ResizeObserver((ee) => {
30015
30040
  var ve;
30016
- const ye = (ve = _[0]) == null ? void 0 : ve.contentRect;
30041
+ const ye = (ve = ee[0]) == null ? void 0 : ve.contentRect;
30017
30042
  if (!ye) return;
30018
30043
  const J = h.value.width === 0;
30019
30044
  h.value = { width: ye.width, height: ye.height }, J && a.fitOnLoad && H();
@@ -30053,7 +30078,7 @@ const e0 = {
30053
30078
  { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": 2, "stroke-linecap": "round" },
30054
30079
  [Y("path", { d: "M6 12h12" })]
30055
30080
  );
30056
- return n({ zoomIn: I, zoomOut: O, fit: H, setZoom: A }), (_, ye) => (o(), te(Mt(j.value ? "div" : Tt), Ee(
30081
+ return n({ zoomIn: I, zoomOut: O, fit: H, setZoom: A }), (ee, ye) => (o(), te(Mt(j.value ? "div" : Tt), Ee(
30057
30082
  j.value ? { class: b(C)("w-full", b(s)) } : {
30058
30083
  class: b(C)("w-full", b(s)),
30059
30084
  variant: e.variant,
@@ -30169,10 +30194,10 @@ const e0 = {
30169
30194
  onHover: ue,
30170
30195
  onSelect: le
30171
30196
  }, rn({ _: 2 }, [
30172
- _.$slots.node ? {
30197
+ ee.$slots.node ? {
30173
30198
  name: "node",
30174
30199
  fn: Ae((J) => [
30175
- oe(_.$slots, "node", $n(Fn(J)))
30200
+ oe(ee.$slots, "node", $n(Fn(J)))
30176
30201
  ]),
30177
30202
  key: "0"
30178
30203
  } : void 0
@@ -32444,20 +32469,20 @@ const Yw = { class: "flex h-full min-h-0 flex-col" }, Xw = {
32444
32469
  return Fe ? Number(Fe[1]) : 160;
32445
32470
  }, ie = l(
32446
32471
  () => k.value.map((Q) => ({ ...Q, width: `${R(Q)}px` }))
32447
- ), _ = K(null), ye = K(null), J = (Q, Te) => {
32472
+ ), ee = K(null), ye = K(null), J = (Q, Te) => {
32448
32473
  if (Q.button !== 0) return;
32449
32474
  Q.preventDefault(), Q.stopPropagation();
32450
32475
  const Fe = R(
32451
32476
  k.value.find((De) => De.key === Te) ?? { key: Te }
32452
32477
  ), et = Q.clientX;
32453
- _.value = { key: Te, startX: et, startWidth: Fe }, ye.value = Te, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
32478
+ ee.value = { key: Te, startX: et, startWidth: Fe }, ye.value = Te, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
32454
32479
  const it = (De) => {
32455
- const pt = _.value;
32480
+ const pt = ee.value;
32456
32481
  if (!pt) return;
32457
32482
  const Lt = Math.max(v, Math.round(pt.startWidth + (De.clientX - pt.startX)));
32458
32483
  Ie.value[pt.key] !== Lt && (Ie.value = { ...Ie.value, [pt.key]: Lt });
32459
32484
  }, gt = () => {
32460
- window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", gt), document.body.style.cursor = "", document.body.style.userSelect = "", _.value = null, ye.value = null, a(
32485
+ window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", gt), document.body.style.cursor = "", document.body.style.userSelect = "", ee.value = null, ye.value = null, a(
32461
32486
  "column-width-change",
32462
32487
  Object.fromEntries(ie.value.map((De) => [De.key, R(De)]))
32463
32488
  );
@@ -33509,7 +33534,7 @@ const O1 = {
33509
33534
  () => Math.max(1, Math.ceil(ge.value / n.dotSpacing))
33510
33535
  ), $e = l(() => Ce.value * n.dotSpacing), Ie = l(() => n.dotSpacing / U), R = l(() => Ce.value * Ie.value), ie = l(
33511
33536
  () => Math.max(0, $e.value - ge.value)
33512
- ), _ = l(() => Math.max(0, d.value - 12)), ye = l(() => _.value / $e.value), J = l(() => {
33537
+ ), ee = l(() => Math.max(0, d.value - 12)), ye = l(() => ee.value / $e.value), J = l(() => {
33513
33538
  if (!P.value) return [];
33514
33539
  const pe = x.value, de = pe ? `M ${s.value} ${n.parentAnchorY} L 12 ${n.parentAnchorY} L 12 ${k.value + ie.value}` : `M 12 ${T.value} L 12 ${k.value + ie.value}`, re = pe ? s.value - 12 : k.value + ie.value - T.value, W = pe ? k.value - n.parentAnchorY + ie.value : 0, Le = re + W, ke = Le > 0 ? (re / Le).toFixed(4) : "1", je = pe ? {
33515
33540
  calcMode: "linear",
@@ -33973,12 +33998,12 @@ const Lo = /* @__PURE__ */ F({
33973
33998
  (B) => g.value[B.id] ?? !!B.active
33974
33999
  )
33975
34000
  ), le = (B) => {
33976
- var _, ye;
34001
+ var ee, ye;
33977
34002
  if (!i.value || !w) return;
33978
34003
  B.preventDefault(), B.stopPropagation();
33979
34004
  const j = d.value;
33980
34005
  if (j.length === 0) return;
33981
- const U = (_ = j[0]) == null ? void 0 : _.id, ge = (ye = j[j.length - 1]) == null ? void 0 : ye.id, Ce = U ? c[U] : null, $e = ge ? c[ge] : null;
34006
+ const U = (ee = j[0]) == null ? void 0 : ee.id, ge = (ye = j[j.length - 1]) == null ? void 0 : ye.id, Ce = U ? c[U] : null, $e = ge ? c[ge] : null;
33982
34007
  if (!Ce || !$e) return;
33983
34008
  let Ie = null;
33984
34009
  const R = Ce.getBoundingClientRect(), ie = $e.getBoundingClientRect();