@factorialco/f0-react 1.280.0 → 1.281.0

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/f0.js CHANGED
@@ -1,10 +1,10 @@
1
- import { S as Ue, a as Xt, f as Re, L as Q, b as Jt, A as Zt, i as he, c as nt, d as ot, E as Qt, g as ue, e as ei, h as ti, C as ii, j as si, k as V, l as at, u as ri, G as ni, m as oi, n as qe, o as ai, p as lt, q as li, B as dt, X as ht, Y as ze, r as di, s as ct, t as hi, v as ci, w as ui, x as fi, y as gi, z as pi, D as mi, F as yi, H as Ke, I as vi, J as ee, K as Ne, M as bi, N as wi, O as xi, P as ut, Q as B, R as F, T as _i, U as Ei, V as Ci, W as Ri, Z as Ni, _ as Di, $ as Si, a0 as ft, a1 as zi, a2 as fe, a3 as gt, a4 as pt, a5 as ki, a6 as mt, a7 as yt, a8 as vt, a9 as Te, aa as Pi, ab as bt, ac as Ai, ad as Ti, ae as Oi, af as Ve, ag as De, ah as Li, ai as Mi, aj as wt, ak as Hi, al as Bi, am as xt, an as Ii, ao as _t, ap as Fi, aq as Gi, ar as Wi, as as $i, at as ji, au as Ui, av as qi, aw as Ki, ax as Et, ay as X, az as Ct, aA as Vi, aB as Yi, aC as Ye, aD as Xi, aE as Rt, aF as Ji, aG as Zi, aH as Qi, aI as es, aJ as ts, aK as is, aL as ss, aM as rs, aN as ns, aO as os, aP as as, aQ as ls } from "./hooks-WCchcl_J.js";
2
- import { bg as Jr, bt as Zr, bC as Qr, aR as en, aS as tn, aT as sn, aU as rn, aV as nn, aW as on, aX as an, aY as ln, a_ as dn, a$ as hn, b0 as cn, b1 as un, b2 as fn, b3 as gn, by as pn, b5 as mn, b7 as yn, b8 as vn, b9 as bn, ba as wn, bd as xn, be as _n, bf as En, bi as Cn, b6 as Rn, bh as Nn, bc as Dn, bz as Sn, bs as zn, bn as kn, bq as Pn, bm as An, bD as Tn, bl as On, bk as Ln, aZ as Mn, b4 as Hn, bb as Bn, bj as In, bo as Fn, bu as Gn, bv as Wn, bw as $n, bE as jn, bp as Un, bx as qn, bB as Kn, br as Vn, bA as Yn } from "./hooks-WCchcl_J.js";
3
- import { jsx as g, jsxs as z, Fragment as oe } from "react/jsx-runtime";
4
- import * as Oe from "react";
5
- import P, { PureComponent as ds, useState as A, forwardRef as $, useEffect as K, useMemo as te, useCallback as j, useRef as Y, createElement as Xe, useImperativeHandle as Nt, Children as hs, createContext as _e, useContext as Dt, useLayoutEffect as Je } from "react";
6
- import { createPortal as cs } from "react-dom";
7
- import './f0.css';const us = {
1
+ import { S as We, a as qt, f as Ee, L as J, b as Kt, A as Vt, i as ae, c as tt, d as it, E as Yt, g as he, e as Xt, h as Jt, C as Qt, j as Zt, k as K, l as st, u as ei, G as ti, m as ii, n as $e, o as si, p as rt, q as ri, B as nt, X as ot, Y as De, r as ni, s as at, t as oi, v as ai, w as li, x as hi, y as di, z as ci, D as ui, F as fi, H as je, I as gi, J as Q, K as Ne, M as pi, N as mi, O as vi, P as lt, Q as L, R as I, T as yi, U as bi, V as wi, W as xi, Z as _i, _ as Ci, $ as Ei, a0 as ht, a1 as Ni, a2 as de, a3 as dt, a4 as ct, a5 as Ri, a6 as ut, a7 as ft, a8 as gt, a9 as pt, aa as Di, ab as Si, ac as mt, ad as zi, ae as ki, af as vt, ag as Pi, ah as yt, ai as Ai, aj as Ti, ak as Oi, al as Li, am as Mi, an as Hi, ao as Bi, ap as Ii, aq as bt, ar as V, as as wt, at as Fi, au as Gi, av as Ue, aw as Wi, ax as xt, ay as $i, az as ji, aA as Ui, aB as qi, aC as Ki, aD as Vi, aE as Yi, aF as Xi, aG as Ji, aH as Qi, aI as Zi, aJ as es } from "./hooks-CIGhOgZ-.js";
2
+ import { ba as Gr, bn as Wr, bw as $r, aK as jr, aL as Ur, aM as qr, aN as Kr, aO as Vr, aP as Yr, aQ as Xr, aR as Jr, aT as Qr, aU as Zr, aV as en, aW as tn, aX as sn, aY as rn, aZ as nn, bs as on, a$ as an, b1 as ln, b2 as hn, b3 as dn, b4 as cn, b7 as un, b8 as fn, b9 as gn, bc as pn, b0 as mn, bb as vn, b6 as yn, bt as bn, bm as wn, bh as xn, bk as _n, bg as Cn, bx as En, bf as Nn, be as Rn, aS as Dn, a_ as Sn, b5 as zn, bd as kn, bi as Pn, bo as An, bp as Tn, bq as On, by as Ln, bj as Mn, br as Hn, bv as Bn, bl as In, bu as Fn } from "./hooks-CIGhOgZ-.js";
3
+ import { jsx as g, jsxs as R, Fragment as we } from "react/jsx-runtime";
4
+ import * as Pe from "react";
5
+ import z, { PureComponent as ts, useState as M, forwardRef as j, createElement as qe, useRef as Z, useImperativeHandle as _t, Children as is, createContext as xe, useContext as Ct, useCallback as q, useEffect as ce, useLayoutEffect as Ke, useMemo as Et } from "react";
6
+ import { createPortal as ss } from "react-dom";
7
+ import './f0.css';const rs = {
8
8
  ad: "Andorra",
9
9
  ae: "United Arab Emirates",
10
10
  af: "Afghanistan",
@@ -106,8 +106,8 @@ import './f0.css';const us = {
106
106
  jo: "Jordan",
107
107
  jp: "Japan",
108
108
  ke: "Kenya"
109
- }, xr = {
110
- countries: us,
109
+ }, ur = {
110
+ countries: rs,
111
111
  approvals: {
112
112
  history: "Approval history",
113
113
  statuses: {
@@ -360,124 +360,174 @@ import './f0.css';const us = {
360
360
  between: "It should be between {{min}} and {{max}}",
361
361
  greaterThan: "It should be greater than {{min}}",
362
362
  lessThan: "It should be less than {{max}}"
363
+ },
364
+ coCreationForm: {
365
+ actions: {
366
+ actions: "Actions",
367
+ duplicateQuestion: "Duplicate question",
368
+ deleteQuestion: "Delete question",
369
+ duplicateSection: "Duplicate section",
370
+ deleteSection: "Delete section"
371
+ },
372
+ questionTypes: {
373
+ section: "Section",
374
+ rating: "Rating",
375
+ multipleChoice: "Multiple choice",
376
+ singleChoice: "Single choice",
377
+ text: "Text",
378
+ longText: "Long text",
379
+ numeric: "Numeric",
380
+ link: "Link",
381
+ date: "Date"
382
+ },
383
+ selectQuestion: {
384
+ addOption: "Add option",
385
+ newOption: "New option {{number}}",
386
+ markAsCorrect: "Mark as correct",
387
+ remove: "Remove",
388
+ correct: "Correct",
389
+ optionPlaceholder: "Type anything you want here..."
390
+ },
391
+ answer: {
392
+ label: "Answer",
393
+ placeholder: "Respondent's answer"
394
+ },
395
+ labels: {
396
+ endOfSection: "End of section",
397
+ title: "Title",
398
+ titlePlaceholder: "Question title",
399
+ description: "Description",
400
+ questionDescriptionPlaceholder: "Describe the question in a few words",
401
+ sectionDescriptionPlaceholder: "Describe the section in a few words",
402
+ required: "Required",
403
+ questionType: "Question type",
404
+ questionOptions: "Question options",
405
+ actions: "Actions",
406
+ sectionTitlePlaceholder: "Section title"
407
+ },
408
+ defaults: {
409
+ newSection: "New Section",
410
+ newQuestion: "New Question",
411
+ newQuestionDescription: "New question description"
412
+ }
363
413
  }
364
- }, _r = [
414
+ }, fr = [
365
415
  "person",
366
416
  "team",
367
417
  "company",
368
418
  "file",
369
419
  "flag"
370
420
  ];
371
- function J(a) {
421
+ function Y(a) {
372
422
  "@babel/helpers - typeof";
373
- return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
423
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
374
424
  return typeof e;
375
425
  } : function(e) {
376
426
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
377
- }, J(a);
427
+ }, Y(a);
378
428
  }
379
- function fs(a, e) {
429
+ function ns(a, e) {
380
430
  if (!(a instanceof e))
381
431
  throw new TypeError("Cannot call a class as a function");
382
432
  }
383
- function gs(a, e) {
433
+ function os(a, e) {
384
434
  for (var t = 0; t < e.length; t++) {
385
435
  var i = e[t];
386
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, kt(i.key), i);
436
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, Dt(i.key), i);
387
437
  }
388
438
  }
389
- function ps(a, e, t) {
390
- return e && gs(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
439
+ function as(a, e, t) {
440
+ return e && os(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
391
441
  }
392
- function ms(a, e, t) {
393
- return e = ge(e), ys(a, St() ? Reflect.construct(e, t || [], ge(a).constructor) : e.apply(a, t));
442
+ function ls(a, e, t) {
443
+ return e = ue(e), hs(a, Nt() ? Reflect.construct(e, t || [], ue(a).constructor) : e.apply(a, t));
394
444
  }
395
- function ys(a, e) {
396
- if (e && (J(e) === "object" || typeof e == "function"))
445
+ function hs(a, e) {
446
+ if (e && (Y(e) === "object" || typeof e == "function"))
397
447
  return e;
398
448
  if (e !== void 0)
399
449
  throw new TypeError("Derived constructors may only return object or undefined");
400
- return vs(a);
450
+ return ds(a);
401
451
  }
402
- function vs(a) {
452
+ function ds(a) {
403
453
  if (a === void 0)
404
454
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
405
455
  return a;
406
456
  }
407
- function St() {
457
+ function Nt() {
408
458
  try {
409
459
  var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
410
460
  }));
411
461
  } catch {
412
462
  }
413
- return (St = function() {
463
+ return (Nt = function() {
414
464
  return !!a;
415
465
  })();
416
466
  }
417
- function ge(a) {
418
- return ge = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
467
+ function ue(a) {
468
+ return ue = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
419
469
  return t.__proto__ || Object.getPrototypeOf(t);
420
- }, ge(a);
470
+ }, ue(a);
421
471
  }
422
- function bs(a, e) {
472
+ function cs(a, e) {
423
473
  if (typeof e != "function" && e !== null)
424
474
  throw new TypeError("Super expression must either be null or a function");
425
- a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && ke(a, e);
475
+ a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && Se(a, e);
426
476
  }
427
- function ke(a, e) {
428
- return ke = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
477
+ function Se(a, e) {
478
+ return Se = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
429
479
  return i.__proto__ = s, i;
430
- }, ke(a, e);
480
+ }, Se(a, e);
431
481
  }
432
- function zt(a, e, t) {
433
- return e = kt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
482
+ function Rt(a, e, t) {
483
+ return e = Dt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
434
484
  }
435
- function kt(a) {
436
- var e = ws(a, "string");
437
- return J(e) == "symbol" ? e : e + "";
485
+ function Dt(a) {
486
+ var e = us(a, "string");
487
+ return Y(e) == "symbol" ? e : e + "";
438
488
  }
439
- function ws(a, e) {
440
- if (J(a) != "object" || !a) return a;
489
+ function us(a, e) {
490
+ if (Y(a) != "object" || !a) return a;
441
491
  var t = a[Symbol.toPrimitive];
442
492
  if (t !== void 0) {
443
493
  var i = t.call(a, e);
444
- if (J(i) != "object") return i;
494
+ if (Y(i) != "object") return i;
445
495
  throw new TypeError("@@toPrimitive must return a primitive value.");
446
496
  }
447
497
  return String(a);
448
498
  }
449
- var Ee = /* @__PURE__ */ function(a) {
499
+ var _e = /* @__PURE__ */ function(a) {
450
500
  function e() {
451
- return fs(this, e), ms(this, e, arguments);
501
+ return ns(this, e), ls(this, e, arguments);
452
502
  }
453
- return bs(e, a), ps(e, [{
503
+ return cs(e, a), as(e, [{
454
504
  key: "render",
455
505
  value: function() {
456
506
  return null;
457
507
  }
458
508
  }]);
459
- }(P.Component);
460
- zt(Ee, "displayName", "ZAxis");
461
- zt(Ee, "defaultProps", {
509
+ }(z.Component);
510
+ Rt(_e, "displayName", "ZAxis");
511
+ Rt(_e, "defaultProps", {
462
512
  zAxisId: 0,
463
513
  range: [64, 64],
464
514
  scale: "auto",
465
515
  type: "number"
466
516
  });
467
- var xs = ["option", "isActive"];
468
- function ie() {
469
- return ie = Object.assign ? Object.assign.bind() : function(a) {
517
+ var fs = ["option", "isActive"];
518
+ function ee() {
519
+ return ee = Object.assign ? Object.assign.bind() : function(a) {
470
520
  for (var e = 1; e < arguments.length; e++) {
471
521
  var t = arguments[e];
472
522
  for (var i in t)
473
523
  Object.prototype.hasOwnProperty.call(t, i) && (a[i] = t[i]);
474
524
  }
475
525
  return a;
476
- }, ie.apply(this, arguments);
526
+ }, ee.apply(this, arguments);
477
527
  }
478
- function _s(a, e) {
528
+ function gs(a, e) {
479
529
  if (a == null) return {};
480
- var t = Es(a, e), i, s;
530
+ var t = ps(a, e), i, s;
481
531
  if (Object.getOwnPropertySymbols) {
482
532
  var r = Object.getOwnPropertySymbols(a);
483
533
  for (s = 0; s < r.length; s++)
@@ -485,7 +535,7 @@ function _s(a, e) {
485
535
  }
486
536
  return t;
487
537
  }
488
- function Es(a, e) {
538
+ function ps(a, e) {
489
539
  if (a == null) return {};
490
540
  var t = {};
491
541
  for (var i in a)
@@ -495,39 +545,39 @@ function Es(a, e) {
495
545
  }
496
546
  return t;
497
547
  }
498
- function Cs(a) {
499
- var e = a.option, t = a.isActive, i = _s(a, xs);
500
- return typeof e == "string" ? /* @__PURE__ */ P.createElement(Ue, ie({
501
- option: /* @__PURE__ */ P.createElement(Xt, ie({
548
+ function ms(a) {
549
+ var e = a.option, t = a.isActive, i = gs(a, fs);
550
+ return typeof e == "string" ? /* @__PURE__ */ z.createElement(We, ee({
551
+ option: /* @__PURE__ */ z.createElement(qt, ee({
502
552
  type: e
503
553
  }, i)),
504
554
  isActive: t,
505
555
  shapeType: "symbols"
506
- }, i)) : /* @__PURE__ */ P.createElement(Ue, ie({
556
+ }, i)) : /* @__PURE__ */ z.createElement(We, ee({
507
557
  option: e,
508
558
  isActive: t,
509
559
  shapeType: "symbols"
510
560
  }, i));
511
561
  }
512
- function Z(a) {
562
+ function X(a) {
513
563
  "@babel/helpers - typeof";
514
- return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
564
+ return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
515
565
  return typeof e;
516
566
  } : function(e) {
517
567
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
518
- }, Z(a);
568
+ }, X(a);
519
569
  }
520
- function se() {
521
- return se = Object.assign ? Object.assign.bind() : function(a) {
570
+ function te() {
571
+ return te = Object.assign ? Object.assign.bind() : function(a) {
522
572
  for (var e = 1; e < arguments.length; e++) {
523
573
  var t = arguments[e];
524
574
  for (var i in t)
525
575
  Object.prototype.hasOwnProperty.call(t, i) && (a[i] = t[i]);
526
576
  }
527
577
  return a;
528
- }, se.apply(this, arguments);
578
+ }, te.apply(this, arguments);
529
579
  }
530
- function Ze(a, e) {
580
+ function Ve(a, e) {
531
581
  var t = Object.keys(a);
532
582
  if (Object.getOwnPropertySymbols) {
533
583
  var i = Object.getOwnPropertySymbols(a);
@@ -537,130 +587,130 @@ function Ze(a, e) {
537
587
  }
538
588
  return t;
539
589
  }
540
- function H(a) {
590
+ function O(a) {
541
591
  for (var e = 1; e < arguments.length; e++) {
542
592
  var t = arguments[e] != null ? arguments[e] : {};
543
- e % 2 ? Ze(Object(t), !0).forEach(function(i) {
544
- q(a, i, t[i]);
545
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ze(Object(t)).forEach(function(i) {
593
+ e % 2 ? Ve(Object(t), !0).forEach(function(i) {
594
+ U(a, i, t[i]);
595
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ve(Object(t)).forEach(function(i) {
546
596
  Object.defineProperty(a, i, Object.getOwnPropertyDescriptor(t, i));
547
597
  });
548
598
  }
549
599
  return a;
550
600
  }
551
- function Rs(a, e) {
601
+ function vs(a, e) {
552
602
  if (!(a instanceof e))
553
603
  throw new TypeError("Cannot call a class as a function");
554
604
  }
555
- function Qe(a, e) {
605
+ function Ye(a, e) {
556
606
  for (var t = 0; t < e.length; t++) {
557
607
  var i = e[t];
558
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, At(i.key), i);
608
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, zt(i.key), i);
559
609
  }
560
610
  }
561
- function Ns(a, e, t) {
562
- return e && Qe(a.prototype, e), t && Qe(a, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
611
+ function ys(a, e, t) {
612
+ return e && Ye(a.prototype, e), t && Ye(a, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
563
613
  }
564
- function Ds(a, e, t) {
565
- return e = pe(e), Ss(a, Pt() ? Reflect.construct(e, t || [], pe(a).constructor) : e.apply(a, t));
614
+ function bs(a, e, t) {
615
+ return e = fe(e), ws(a, St() ? Reflect.construct(e, t || [], fe(a).constructor) : e.apply(a, t));
566
616
  }
567
- function Ss(a, e) {
568
- if (e && (Z(e) === "object" || typeof e == "function"))
617
+ function ws(a, e) {
618
+ if (e && (X(e) === "object" || typeof e == "function"))
569
619
  return e;
570
620
  if (e !== void 0)
571
621
  throw new TypeError("Derived constructors may only return object or undefined");
572
- return zs(a);
622
+ return xs(a);
573
623
  }
574
- function zs(a) {
624
+ function xs(a) {
575
625
  if (a === void 0)
576
626
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
577
627
  return a;
578
628
  }
579
- function Pt() {
629
+ function St() {
580
630
  try {
581
631
  var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
582
632
  }));
583
633
  } catch {
584
634
  }
585
- return (Pt = function() {
635
+ return (St = function() {
586
636
  return !!a;
587
637
  })();
588
638
  }
589
- function pe(a) {
590
- return pe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
639
+ function fe(a) {
640
+ return fe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
591
641
  return t.__proto__ || Object.getPrototypeOf(t);
592
- }, pe(a);
642
+ }, fe(a);
593
643
  }
594
- function ks(a, e) {
644
+ function _s(a, e) {
595
645
  if (typeof e != "function" && e !== null)
596
646
  throw new TypeError("Super expression must either be null or a function");
597
- a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && Pe(a, e);
647
+ a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && ze(a, e);
598
648
  }
599
- function Pe(a, e) {
600
- return Pe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
649
+ function ze(a, e) {
650
+ return ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
601
651
  return i.__proto__ = s, i;
602
- }, Pe(a, e);
652
+ }, ze(a, e);
603
653
  }
604
- function q(a, e, t) {
605
- return e = At(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
654
+ function U(a, e, t) {
655
+ return e = zt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
606
656
  }
607
- function At(a) {
608
- var e = Ps(a, "string");
609
- return Z(e) == "symbol" ? e : e + "";
657
+ function zt(a) {
658
+ var e = Cs(a, "string");
659
+ return X(e) == "symbol" ? e : e + "";
610
660
  }
611
- function Ps(a, e) {
612
- if (Z(a) != "object" || !a) return a;
661
+ function Cs(a, e) {
662
+ if (X(a) != "object" || !a) return a;
613
663
  var t = a[Symbol.toPrimitive];
614
664
  if (t !== void 0) {
615
665
  var i = t.call(a, e);
616
- if (Z(i) != "object") return i;
666
+ if (X(i) != "object") return i;
617
667
  throw new TypeError("@@toPrimitive must return a primitive value.");
618
668
  }
619
669
  return String(a);
620
670
  }
621
- var ae = /* @__PURE__ */ function(a) {
671
+ var re = /* @__PURE__ */ function(a) {
622
672
  function e() {
623
673
  var t;
624
- Rs(this, e);
674
+ vs(this, e);
625
675
  for (var i = arguments.length, s = new Array(i), r = 0; r < i; r++)
626
676
  s[r] = arguments[r];
627
- return t = Ds(this, e, [].concat(s)), q(t, "state", {
677
+ return t = bs(this, e, [].concat(s)), U(t, "state", {
628
678
  isAnimationFinished: !1
629
- }), q(t, "handleAnimationEnd", function() {
679
+ }), U(t, "handleAnimationEnd", function() {
630
680
  t.setState({
631
681
  isAnimationFinished: !0
632
682
  });
633
- }), q(t, "handleAnimationStart", function() {
683
+ }), U(t, "handleAnimationStart", function() {
634
684
  t.setState({
635
685
  isAnimationFinished: !1
636
686
  });
637
- }), q(t, "id", ri("recharts-scatter-")), t;
687
+ }), U(t, "id", ei("recharts-scatter-")), t;
638
688
  }
639
- return ks(e, a), Ns(e, [{
689
+ return _s(e, a), ys(e, [{
640
690
  key: "renderSymbolsStatically",
641
691
  value: function(i) {
642
- var s = this, r = this.props, n = r.shape, o = r.activeShape, d = r.activeIndex, c = Re(this.props, !1);
643
- return i.map(function(l, h) {
644
- var f = d === h, p = f ? o : n, m = H(H({}, c), l);
645
- return /* @__PURE__ */ P.createElement(Q, se({
692
+ var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c = Ee(this.props, !1);
693
+ return i.map(function(l, d) {
694
+ var f = h === d, p = f ? o : n, m = O(O({}, c), l);
695
+ return /* @__PURE__ */ z.createElement(J, te({
646
696
  className: "recharts-scatter-symbol",
647
- key: "symbol-".concat(l == null ? void 0 : l.cx, "-").concat(l == null ? void 0 : l.cy, "-").concat(l == null ? void 0 : l.size, "-").concat(h)
648
- }, Jt(s.props, l, h), {
697
+ key: "symbol-".concat(l == null ? void 0 : l.cx, "-").concat(l == null ? void 0 : l.cy, "-").concat(l == null ? void 0 : l.size, "-").concat(d)
698
+ }, Kt(s.props, l, d), {
649
699
  role: "img"
650
- }), /* @__PURE__ */ P.createElement(Cs, se({
700
+ }), /* @__PURE__ */ z.createElement(ms, te({
651
701
  option: p,
652
702
  isActive: f,
653
- key: "symbol-".concat(h)
703
+ key: "symbol-".concat(d)
654
704
  }, m)));
655
705
  });
656
706
  }
657
707
  }, {
658
708
  key: "renderSymbolsWithAnimation",
659
709
  value: function() {
660
- var i = this, s = this.props, r = s.points, n = s.isAnimationActive, o = s.animationBegin, d = s.animationDuration, c = s.animationEasing, l = s.animationId, h = this.state.prevPoints;
661
- return /* @__PURE__ */ P.createElement(Zt, {
710
+ var i = this, s = this.props, r = s.points, n = s.isAnimationActive, o = s.animationBegin, h = s.animationDuration, c = s.animationEasing, l = s.animationId, d = this.state.prevPoints;
711
+ return /* @__PURE__ */ z.createElement(Vt, {
662
712
  begin: o,
663
- duration: d,
713
+ duration: h,
664
714
  isActive: n,
665
715
  easing: c,
666
716
  from: {
@@ -673,29 +723,29 @@ var ae = /* @__PURE__ */ function(a) {
673
723
  onAnimationEnd: this.handleAnimationEnd,
674
724
  onAnimationStart: this.handleAnimationStart
675
725
  }, function(f) {
676
- var p = f.t, m = r.map(function(y, b) {
677
- var N = h && h[b];
678
- if (N) {
679
- var _ = he(N.cx, y.cx), C = he(N.cy, y.cy), D = he(N.size, y.size);
680
- return H(H({}, y), {}, {
681
- cx: _(p),
726
+ var p = f.t, m = r.map(function(v, b) {
727
+ var _ = d && d[b];
728
+ if (_) {
729
+ var E = ae(_.cx, v.cx), C = ae(_.cy, v.cy), S = ae(_.size, v.size);
730
+ return O(O({}, v), {}, {
731
+ cx: E(p),
682
732
  cy: C(p),
683
- size: D(p)
733
+ size: S(p)
684
734
  });
685
735
  }
686
- var S = he(0, y.size);
687
- return H(H({}, y), {}, {
688
- size: S(p)
736
+ var N = ae(0, v.size);
737
+ return O(O({}, v), {}, {
738
+ size: N(p)
689
739
  });
690
740
  });
691
- return /* @__PURE__ */ P.createElement(Q, null, i.renderSymbolsStatically(m));
741
+ return /* @__PURE__ */ z.createElement(J, null, i.renderSymbolsStatically(m));
692
742
  });
693
743
  }
694
744
  }, {
695
745
  key: "renderSymbols",
696
746
  value: function() {
697
747
  var i = this.props, s = i.points, r = i.isAnimationActive, n = this.state.prevPoints;
698
- return r && s && s.length && (!n || !nt(n, s)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(s);
748
+ return r && s && s.length && (!n || !tt(n, s)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(s);
699
749
  }
700
750
  }, {
701
751
  key: "renderErrorBar",
@@ -703,21 +753,21 @@ var ae = /* @__PURE__ */ function(a) {
703
753
  var i = this.props.isAnimationActive;
704
754
  if (i && !this.state.isAnimationFinished)
705
755
  return null;
706
- var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, d = s.children, c = ot(d, Qt);
707
- return c ? c.map(function(l, h) {
756
+ var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = it(h, Yt);
757
+ return c ? c.map(function(l, d) {
708
758
  var f = l.props, p = f.direction, m = f.dataKey;
709
- return /* @__PURE__ */ P.cloneElement(l, {
710
- key: "".concat(p, "-").concat(m, "-").concat(r[h]),
759
+ return /* @__PURE__ */ z.cloneElement(l, {
760
+ key: "".concat(p, "-").concat(m, "-").concat(r[d]),
711
761
  data: r,
712
762
  xAxis: n,
713
763
  yAxis: o,
714
764
  layout: p === "x" ? "vertical" : "horizontal",
715
- dataPointFormatter: function(b, N) {
765
+ dataPointFormatter: function(b, _) {
716
766
  return {
717
767
  x: b.cx,
718
768
  y: b.cy,
719
769
  value: p === "x" ? +b.node.x : +b.node.y,
720
- errorVal: ue(b, N)
770
+ errorVal: he(b, _)
721
771
  };
722
772
  }
723
773
  });
@@ -726,7 +776,7 @@ var ae = /* @__PURE__ */ function(a) {
726
776
  }, {
727
777
  key: "renderLine",
728
778
  value: function() {
729
- var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, d = Re(this.props, !1), c = Re(r, !1), l, h;
779
+ var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, h = Ee(this.props, !1), c = Ee(r, !1), l, d;
730
780
  if (n === "joint")
731
781
  l = s.map(function(C) {
732
782
  return {
@@ -735,50 +785,50 @@ var ae = /* @__PURE__ */ function(a) {
735
785
  };
736
786
  });
737
787
  else if (n === "fitting") {
738
- var f = ei(s), p = f.xmin, m = f.xmax, y = f.a, b = f.b, N = function(D) {
739
- return y * D + b;
788
+ var f = Xt(s), p = f.xmin, m = f.xmax, v = f.a, b = f.b, _ = function(S) {
789
+ return v * S + b;
740
790
  };
741
791
  l = [{
742
792
  x: p,
743
- y: N(p)
793
+ y: _(p)
744
794
  }, {
745
795
  x: m,
746
- y: N(m)
796
+ y: _(m)
747
797
  }];
748
798
  }
749
- var _ = H(H(H({}, d), {}, {
799
+ var E = O(O(O({}, h), {}, {
750
800
  fill: "none",
751
- stroke: d && d.fill
801
+ stroke: h && h.fill
752
802
  }, c), {}, {
753
803
  points: l
754
804
  });
755
- return /* @__PURE__ */ P.isValidElement(r) ? h = /* @__PURE__ */ P.cloneElement(r, _) : ti(r) ? h = r(_) : h = /* @__PURE__ */ P.createElement(ii, se({}, _, {
805
+ return /* @__PURE__ */ z.isValidElement(r) ? d = /* @__PURE__ */ z.cloneElement(r, E) : Jt(r) ? d = r(E) : d = /* @__PURE__ */ z.createElement(Qt, te({}, E, {
756
806
  type: o
757
- })), /* @__PURE__ */ P.createElement(Q, {
807
+ })), /* @__PURE__ */ z.createElement(J, {
758
808
  className: "recharts-scatter-line",
759
809
  key: "recharts-scatter-line"
760
- }, h);
810
+ }, d);
761
811
  }
762
812
  }, {
763
813
  key: "render",
764
814
  value: function() {
765
- var i = this.props, s = i.hide, r = i.points, n = i.line, o = i.className, d = i.xAxis, c = i.yAxis, l = i.left, h = i.top, f = i.width, p = i.height, m = i.id, y = i.isAnimationActive;
815
+ var i = this.props, s = i.hide, r = i.points, n = i.line, o = i.className, h = i.xAxis, c = i.yAxis, l = i.left, d = i.top, f = i.width, p = i.height, m = i.id, v = i.isAnimationActive;
766
816
  if (s || !r || !r.length)
767
817
  return null;
768
- var b = this.state.isAnimationFinished, N = si("recharts-scatter", o), _ = d && d.allowDataOverflow, C = c && c.allowDataOverflow, D = _ || C, S = V(m) ? this.id : m;
769
- return /* @__PURE__ */ P.createElement(Q, {
770
- className: N,
771
- clipPath: D ? "url(#clipPath-".concat(S, ")") : null
772
- }, _ || C ? /* @__PURE__ */ P.createElement("defs", null, /* @__PURE__ */ P.createElement("clipPath", {
773
- id: "clipPath-".concat(S)
774
- }, /* @__PURE__ */ P.createElement("rect", {
775
- x: _ ? l : l - f / 2,
776
- y: C ? h : h - p / 2,
777
- width: _ ? f : f * 2,
818
+ var b = this.state.isAnimationFinished, _ = Zt("recharts-scatter", o), E = h && h.allowDataOverflow, C = c && c.allowDataOverflow, S = E || C, N = K(m) ? this.id : m;
819
+ return /* @__PURE__ */ z.createElement(J, {
820
+ className: _,
821
+ clipPath: S ? "url(#clipPath-".concat(N, ")") : null
822
+ }, E || C ? /* @__PURE__ */ z.createElement("defs", null, /* @__PURE__ */ z.createElement("clipPath", {
823
+ id: "clipPath-".concat(N)
824
+ }, /* @__PURE__ */ z.createElement("rect", {
825
+ x: E ? l : l - f / 2,
826
+ y: C ? d : d - p / 2,
827
+ width: E ? f : f * 2,
778
828
  height: C ? p : p * 2
779
- }))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ P.createElement(Q, {
829
+ }))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ z.createElement(J, {
780
830
  key: "recharts-scatter-symbols"
781
- }, this.renderSymbols()), (!y || b) && at.renderCallByParent(this.props, r));
831
+ }, this.renderSymbols()), (!v || b) && st.renderCallByParent(this.props, r));
782
832
  }
783
833
  }], [{
784
834
  key: "getDerivedStateFromProps",
@@ -792,9 +842,9 @@ var ae = /* @__PURE__ */ function(a) {
792
842
  } : null;
793
843
  }
794
844
  }]);
795
- }(ds);
796
- q(ae, "displayName", "Scatter");
797
- q(ae, "defaultProps", {
845
+ }(ts);
846
+ U(re, "displayName", "Scatter");
847
+ U(re, "defaultProps", {
798
848
  xAxisId: 0,
799
849
  yAxisId: 0,
800
850
  zAxisId: 0,
@@ -804,102 +854,102 @@ q(ae, "defaultProps", {
804
854
  data: [],
805
855
  shape: "circle",
806
856
  hide: !1,
807
- isAnimationActive: !ni.isSsr,
857
+ isAnimationActive: !ti.isSsr,
808
858
  animationBegin: 0,
809
859
  animationDuration: 400,
810
860
  animationEasing: "linear"
811
861
  });
812
- q(ae, "getComposedData", function(a) {
813
- var e = a.xAxis, t = a.yAxis, i = a.zAxis, s = a.item, r = a.displayedData, n = a.xAxisTicks, o = a.yAxisTicks, d = a.offset, c = s.props.tooltipType, l = ot(s.props.children, oi), h = V(e.dataKey) ? s.props.dataKey : e.dataKey, f = V(t.dataKey) ? s.props.dataKey : t.dataKey, p = i && i.dataKey, m = i ? i.range : Ee.defaultProps.range, y = m && m[0], b = e.scale.bandwidth ? e.scale.bandwidth() : 0, N = t.scale.bandwidth ? t.scale.bandwidth() : 0, _ = r.map(function(C, D) {
814
- var S = ue(C, h), R = ue(C, f), E = !V(p) && ue(C, p) || "-", T = [{
815
- name: V(e.dataKey) ? s.props.name : e.name || e.dataKey,
862
+ U(re, "getComposedData", function(a) {
863
+ var e = a.xAxis, t = a.yAxis, i = a.zAxis, s = a.item, r = a.displayedData, n = a.xAxisTicks, o = a.yAxisTicks, h = a.offset, c = s.props.tooltipType, l = it(s.props.children, ii), d = K(e.dataKey) ? s.props.dataKey : e.dataKey, f = K(t.dataKey) ? s.props.dataKey : t.dataKey, p = i && i.dataKey, m = i ? i.range : _e.defaultProps.range, v = m && m[0], b = e.scale.bandwidth ? e.scale.bandwidth() : 0, _ = t.scale.bandwidth ? t.scale.bandwidth() : 0, E = r.map(function(C, S) {
864
+ var N = he(C, d), P = he(C, f), A = !K(p) && he(C, p) || "-", W = [{
865
+ name: K(e.dataKey) ? s.props.name : e.name || e.dataKey,
816
866
  unit: e.unit || "",
817
- value: S,
867
+ value: N,
818
868
  payload: C,
819
- dataKey: h,
869
+ dataKey: d,
820
870
  type: c
821
871
  }, {
822
- name: V(t.dataKey) ? s.props.name : t.name || t.dataKey,
872
+ name: K(t.dataKey) ? s.props.name : t.name || t.dataKey,
823
873
  unit: t.unit || "",
824
- value: R,
874
+ value: P,
825
875
  payload: C,
826
876
  dataKey: f,
827
877
  type: c
828
878
  }];
829
- E !== "-" && T.push({
879
+ A !== "-" && W.push({
830
880
  name: i.name || i.dataKey,
831
881
  unit: i.unit || "",
832
- value: E,
882
+ value: A,
833
883
  payload: C,
834
884
  dataKey: p,
835
885
  type: c
836
886
  });
837
- var L = qe({
887
+ var H = $e({
838
888
  axis: e,
839
889
  ticks: n,
840
890
  bandSize: b,
841
891
  entry: C,
842
- index: D,
843
- dataKey: h
844
- }), G = qe({
892
+ index: S,
893
+ dataKey: d
894
+ }), F = $e({
845
895
  axis: t,
846
896
  ticks: o,
847
- bandSize: N,
897
+ bandSize: _,
848
898
  entry: C,
849
- index: D,
899
+ index: S,
850
900
  dataKey: f
851
- }), x = E !== "-" ? i.scale(E) : y, k = Math.sqrt(Math.max(x, 0) / Math.PI);
852
- return H(H({}, C), {}, {
853
- cx: L,
854
- cy: G,
855
- x: L - k,
856
- y: G - k,
901
+ }), x = A !== "-" ? i.scale(A) : v, D = Math.sqrt(Math.max(x, 0) / Math.PI);
902
+ return O(O({}, C), {}, {
903
+ cx: H,
904
+ cy: F,
905
+ x: H - D,
906
+ y: F - D,
857
907
  xAxis: e,
858
908
  yAxis: t,
859
909
  zAxis: i,
860
- width: 2 * k,
861
- height: 2 * k,
910
+ width: 2 * D,
911
+ height: 2 * D,
862
912
  size: x,
863
913
  node: {
864
- x: S,
865
- y: R,
866
- z: E
914
+ x: N,
915
+ y: P,
916
+ z: A
867
917
  },
868
- tooltipPayload: T,
918
+ tooltipPayload: W,
869
919
  tooltipPosition: {
870
- x: L,
871
- y: G
920
+ x: H,
921
+ y: F
872
922
  },
873
923
  payload: C
874
- }, l && l[D] && l[D].props);
924
+ }, l && l[S] && l[S].props);
875
925
  });
876
- return H({
877
- points: _
878
- }, d);
926
+ return O({
927
+ points: E
928
+ }, h);
879
929
  });
880
- var As = ai({
930
+ var Es = si({
881
931
  chartName: "ComposedChart",
882
- GraphicalChild: [lt, li, dt, ae],
932
+ GraphicalChild: [rt, ri, nt, re],
883
933
  axisComponents: [{
884
934
  axisType: "xAxis",
885
- AxisComp: ht
935
+ AxisComp: ot
886
936
  }, {
887
937
  axisType: "yAxis",
888
- AxisComp: ze
938
+ AxisComp: De
889
939
  }, {
890
940
  axisType: "zAxis",
891
- AxisComp: Ee
941
+ AxisComp: _e
892
942
  }],
893
- formatAxisMap: di
943
+ formatAxisMap: ni
894
944
  });
895
- const Ts = (a) => {
945
+ const Ns = (a) => {
896
946
  const e = (t) => {
897
947
  const { cx: i, cy: s, fill: r, payload: n } = t, o = () => {
898
948
  if (!n) return "-";
899
949
  if (n[a] !== void 0)
900
950
  return n[a];
901
- for (const [d, c] of Object.entries(n))
902
- if (typeof c == "number" && d !== "x")
951
+ for (const [h, c] of Object.entries(n))
952
+ if (typeof c == "number" && h !== "x")
903
953
  return c;
904
954
  return "-";
905
955
  };
@@ -910,24 +960,24 @@ const Ts = (a) => {
910
960
  fill: r,
911
961
  stroke: "white",
912
962
  strokeWidth: 2,
913
- ref: (d) => {
914
- d != null && d.parentElement && d.parentElement.setAttribute("aria-label", `Data point: ${o()}`);
963
+ ref: (h) => {
964
+ h != null && h.parentElement && h.parentElement.setAttribute("aria-label", `Data point: ${o()}`);
915
965
  }
916
966
  });
917
967
  };
918
968
  return e.displayName = `Scatter-${a}`, e;
919
- }, Os = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
969
+ }, Rs = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
920
970
  hide: !0
921
- }, label: s = !1, hideTooltip: r = !1, hideGrid: n = !1, aspect: o, legend: d, showValueUnderLabel: c = !1, bar: l, line: h, scatter: f, onClick: p }, m) => {
922
- var E, T, L, G;
923
- const y = hi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], N = h != null && h.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], _ = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], C = [...b, ...N, ..._], D = Math.max(...y.flatMap((x) => C.map((k) => ci(i != null && i.tickFormatter ? i.tickFormatter(`${x[k]}`) : `${x[k]}`)))), S = [l, h, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "left"), R = [l, h, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "right");
924
- return g(ui, {
971
+ }, label: s = !1, hideTooltip: r = !1, hideGrid: n = !1, aspect: o, legend: h, showValueUnderLabel: c = !1, bar: l, line: d, scatter: f, onClick: p }, m) => {
972
+ var A, W, H, F;
973
+ const v = oi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], _ = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], E = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], C = [...b, ..._, ...E], S = Math.max(...v.flatMap((x) => C.map((D) => ai(i != null && i.tickFormatter ? i.tickFormatter(`${x[D]}`) : `${x[D]}`)))), N = [l, d, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "left"), P = [l, d, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "right");
974
+ return g(li, {
925
975
  config: a,
926
976
  ref: m,
927
977
  aspect: o,
928
- children: z(As, {
978
+ children: R(Es, {
929
979
  accessibilityLayer: !0,
930
- data: y,
980
+ data: v,
931
981
  margin: {
932
982
  left: i && !i.hide ? 0 : 12,
933
983
  right: 12,
@@ -938,97 +988,97 @@ const Ts = (a) => {
938
988
  onClick: (x) => {
939
989
  if (!p || !x.activeLabel || !x.activePayload)
940
990
  return;
941
- const k = {
991
+ const D = {
942
992
  label: x.activeLabel,
943
993
  values: {}
944
994
  };
945
- for (const le of x.activePayload)
946
- k.values[le.name] = le.value;
947
- p(k);
995
+ for (const ne of x.activePayload)
996
+ D.values[ne.name] = ne.value;
997
+ p(D);
948
998
  },
949
- children: [!r && g(fi, {
950
- ...gi(),
951
- content: g(pi, {
999
+ children: [!r && g(hi, {
1000
+ ...di(),
1001
+ content: g(ci, {
952
1002
  yAxisFormatter: i.tickFormatter
953
1003
  })
954
- }), !n && g(mi, {
955
- ...yi()
956
- }), S.length > 0 && g(ze, {
957
- ...Ke(i),
1004
+ }), !n && g(ui, {
1005
+ ...fi()
1006
+ }), N.length > 0 && g(De, {
1007
+ ...je(i),
958
1008
  tick: !0,
959
- width: i.width ?? D + 20 + (R.length > 0 && ((E = S[0]) != null && E.axisLabel) ? 20 : 0),
960
- hide: i.hide || S.some((x) => x == null ? void 0 : x.hideAxis),
961
- label: (T = S[0]) != null && T.axisLabel ? {
962
- value: S[0].axisLabel,
1009
+ width: i.width ?? S + 20 + (P.length > 0 && ((A = N[0]) != null && A.axisLabel) ? 20 : 0),
1010
+ hide: i.hide || N.some((x) => x == null ? void 0 : x.hideAxis),
1011
+ label: (W = N[0]) != null && W.axisLabel ? {
1012
+ value: N[0].axisLabel,
963
1013
  angle: -90,
964
1014
  position: "insideLeft"
965
1015
  } : void 0
966
- }), R.length > 0 && g(ze, {
967
- ...Ke(i),
1016
+ }), P.length > 0 && g(De, {
1017
+ ...je(i),
968
1018
  yAxisId: "right",
969
1019
  orientation: "right",
970
1020
  tick: !0,
971
- width: i.width ?? D + 20 + (S.length > 0 && ((L = R[0]) != null && L.axisLabel) ? 20 : 0),
972
- hide: i.hide || R.some((x) => x == null ? void 0 : x.hideAxis),
973
- label: (G = R[0]) != null && G.axisLabel ? {
974
- value: R[0].axisLabel,
1021
+ width: i.width ?? S + 20 + (N.length > 0 && ((H = P[0]) != null && H.axisLabel) ? 20 : 0),
1022
+ hide: i.hide || P.some((x) => x == null ? void 0 : x.hideAxis),
1023
+ label: (F = P[0]) != null && F.axisLabel ? {
1024
+ value: P[0].axisLabel,
975
1025
  angle: 90,
976
1026
  position: "insideRight"
977
1027
  } : void 0
978
- }), g(ht, {
979
- ...vi(t),
1028
+ }), g(ot, {
1029
+ ...gi(t),
980
1030
  hide: t == null ? void 0 : t.hide,
981
1031
  tick: c ? (x) => {
982
- var $e, je;
983
- const { x: k, y: le, payload: Ge } = x, We = (($e = e.find((Yt) => Yt.label === Ge.value)) == null ? void 0 : $e.values) || "", de = Object.keys(We).length === 1 ? (je = Object.values(We)) == null ? void 0 : je[0] : void 0, Vt = de !== void 0 && i.tickFormatter ? i.tickFormatter(`${de}`) : de.toLocaleString();
984
- return z("g", {
985
- transform: `translate(${k},${le})`,
1032
+ var Fe, Ge;
1033
+ const { x: D, y: ne, payload: Be } = x, Ie = ((Fe = e.find((Ut) => Ut.label === Be.value)) == null ? void 0 : Fe.values) || "", oe = Object.keys(Ie).length === 1 ? (Ge = Object.values(Ie)) == null ? void 0 : Ge[0] : void 0, jt = oe !== void 0 && i.tickFormatter ? i.tickFormatter(`${oe}`) : oe.toLocaleString();
1034
+ return R("g", {
1035
+ transform: `translate(${D},${ne})`,
986
1036
  children: [g("text", {
987
1037
  x: 0,
988
1038
  y: 0,
989
1039
  dy: 12,
990
1040
  textAnchor: "middle",
991
1041
  className: "text-sm font-medium !text-f1-foreground-secondary",
992
- children: Ge.value
993
- }), !!de && g("text", {
1042
+ children: Be.value
1043
+ }), !!oe && g("text", {
994
1044
  x: 0,
995
1045
  y: 0,
996
1046
  dy: 28,
997
1047
  textAnchor: "middle",
998
1048
  className: "!fill-f1-foreground text-sm font-medium",
999
- children: Vt
1049
+ children: jt
1000
1050
  })]
1001
1051
  });
1002
1052
  } : void 0
1003
- }), b.map((x, k) => g(dt, {
1053
+ }), b.map((x, D) => g(nt, {
1004
1054
  isAnimationActive: !1,
1005
1055
  dataKey: String(x),
1006
- fill: a[x].color ? ee(a[x].color) : Ne(k),
1056
+ fill: a[x].color ? Q(a[x].color) : Ne(D),
1007
1057
  radius: 4,
1008
1058
  maxBarSize: 32,
1009
- children: s && g(at, {
1059
+ children: s && g(st, {
1010
1060
  position: "top",
1011
1061
  offset: 10,
1012
1062
  className: "fill-f1-foreground",
1013
1063
  fontSize: 12
1014
1064
  }, `label-${String(x)}`)
1015
- }, `bar-${String(x)}`)), N.map((x, k) => g(lt, {
1016
- type: (h == null ? void 0 : h.lineType) ?? "natural",
1065
+ }, `bar-${String(x)}`)), _.map((x, D) => g(rt, {
1066
+ type: (d == null ? void 0 : d.lineType) ?? "natural",
1017
1067
  dataKey: String(x),
1018
- stroke: a[x].color ? ee(a[x].color) : Ne(b.length + k),
1068
+ stroke: a[x].color ? Q(a[x].color) : Ne(b.length + D),
1019
1069
  strokeWidth: 2,
1020
- dot: (h == null ? void 0 : h.dot) ?? !1,
1070
+ dot: (d == null ? void 0 : d.dot) ?? !1,
1021
1071
  isAnimationActive: !1,
1022
- yAxisId: (h == null ? void 0 : h.axisPosition) === "right" ? "right" : void 0
1023
- }, `line-${String(x)}`)), _.map((x, k) => g(ae, {
1072
+ yAxisId: (d == null ? void 0 : d.axisPosition) === "right" ? "right" : void 0
1073
+ }, `line-${String(x)}`)), E.map((x, D) => g(re, {
1024
1074
  dataKey: String(x),
1025
- fill: a[x].color ? ee(a[x].color) : Ne(b.length + N.length + k),
1075
+ fill: a[x].color ? Q(a[x].color) : Ne(b.length + _.length + D),
1026
1076
  r: 4,
1027
1077
  isAnimationActive: !1,
1028
1078
  yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0,
1029
- shape: Ts(String(x))
1030
- }, `scatter-${String(x)}`)), d && g(bi, {
1031
- content: g(wi, {
1079
+ shape: Ns(String(x))
1080
+ }, `scatter-${String(x)}`)), h && g(pi, {
1081
+ content: g(mi, {
1032
1082
  nameKey: "label"
1033
1083
  }),
1034
1084
  align: "center",
@@ -1038,30 +1088,30 @@ const Ts = (a) => {
1038
1088
  })]
1039
1089
  })
1040
1090
  });
1041
- }, Ls = ct(Os);
1042
- var Le = "Progress", Me = 100, [Ms, Er] = xi(Le), [Hs, Bs] = Ms(Le), Tt = Oe.forwardRef(
1091
+ }, Ds = at(Rs);
1092
+ var Ae = "Progress", Te = 100, [Ss, gr] = vi(Ae), [zs, ks] = Ss(Ae), kt = Pe.forwardRef(
1043
1093
  (a, e) => {
1044
1094
  const {
1045
1095
  __scopeProgress: t,
1046
1096
  value: i = null,
1047
1097
  max: s,
1048
- getValueLabel: r = Is,
1098
+ getValueLabel: r = Ps,
1049
1099
  ...n
1050
1100
  } = a;
1051
- (s || s === 0) && !et(s) && console.error(Fs(`${s}`, "Progress"));
1052
- const o = et(s) ? s : Me;
1053
- i !== null && !tt(i, o) && console.error(Gs(`${i}`, "Progress"));
1054
- const d = tt(i, o) ? i : null, c = me(d) ? r(d, o) : void 0;
1055
- return /* @__PURE__ */ g(Hs, { scope: t, value: d, max: o, children: /* @__PURE__ */ g(
1056
- ut.div,
1101
+ (s || s === 0) && !Xe(s) && console.error(As(`${s}`, "Progress"));
1102
+ const o = Xe(s) ? s : Te;
1103
+ i !== null && !Je(i, o) && console.error(Ts(`${i}`, "Progress"));
1104
+ const h = Je(i, o) ? i : null, c = ge(h) ? r(h, o) : void 0;
1105
+ return /* @__PURE__ */ g(zs, { scope: t, value: h, max: o, children: /* @__PURE__ */ g(
1106
+ lt.div,
1057
1107
  {
1058
1108
  "aria-valuemax": o,
1059
1109
  "aria-valuemin": 0,
1060
- "aria-valuenow": me(d) ? d : void 0,
1110
+ "aria-valuenow": ge(h) ? h : void 0,
1061
1111
  "aria-valuetext": c,
1062
1112
  role: "progressbar",
1063
- "data-state": Mt(d, o),
1064
- "data-value": d ?? void 0,
1113
+ "data-state": Tt(h, o),
1114
+ "data-value": h ?? void 0,
1065
1115
  "data-max": o,
1066
1116
  ...n,
1067
1117
  ref: e
@@ -1069,14 +1119,14 @@ var Le = "Progress", Me = 100, [Ms, Er] = xi(Le), [Hs, Bs] = Ms(Le), Tt = Oe.for
1069
1119
  ) });
1070
1120
  }
1071
1121
  );
1072
- Tt.displayName = Le;
1073
- var Ot = "ProgressIndicator", Lt = Oe.forwardRef(
1122
+ kt.displayName = Ae;
1123
+ var Pt = "ProgressIndicator", At = Pe.forwardRef(
1074
1124
  (a, e) => {
1075
- const { __scopeProgress: t, ...i } = a, s = Bs(Ot, t);
1125
+ const { __scopeProgress: t, ...i } = a, s = ks(Pt, t);
1076
1126
  return /* @__PURE__ */ g(
1077
- ut.div,
1127
+ lt.div,
1078
1128
  {
1079
- "data-state": Mt(s.value, s.max),
1129
+ "data-state": Tt(s.value, s.max),
1080
1130
  "data-value": s.value ?? void 0,
1081
1131
  "data-max": s.max,
1082
1132
  ...i,
@@ -1085,39 +1135,39 @@ var Ot = "ProgressIndicator", Lt = Oe.forwardRef(
1085
1135
  );
1086
1136
  }
1087
1137
  );
1088
- Lt.displayName = Ot;
1089
- function Is(a, e) {
1138
+ At.displayName = Pt;
1139
+ function Ps(a, e) {
1090
1140
  return `${Math.round(a / e * 100)}%`;
1091
1141
  }
1092
- function Mt(a, e) {
1142
+ function Tt(a, e) {
1093
1143
  return a == null ? "indeterminate" : a === e ? "complete" : "loading";
1094
1144
  }
1095
- function me(a) {
1145
+ function ge(a) {
1096
1146
  return typeof a == "number";
1097
1147
  }
1098
- function et(a) {
1099
- return me(a) && !isNaN(a) && a > 0;
1148
+ function Xe(a) {
1149
+ return ge(a) && !isNaN(a) && a > 0;
1100
1150
  }
1101
- function tt(a, e) {
1102
- return me(a) && !isNaN(a) && a <= e && a >= 0;
1151
+ function Je(a, e) {
1152
+ return ge(a) && !isNaN(a) && a <= e && a >= 0;
1103
1153
  }
1104
- function Fs(a, e) {
1105
- return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Me}\`.`;
1154
+ function As(a, e) {
1155
+ return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Te}\`.`;
1106
1156
  }
1107
- function Gs(a, e) {
1157
+ function Ts(a, e) {
1108
1158
  return `Invalid prop \`value\` of value \`${a}\` supplied to \`${e}\`. The \`value\` prop must be:
1109
1159
  - a positive number
1110
- - less than the value passed to \`max\` (or ${Me} if no \`max\` prop is set)
1160
+ - less than the value passed to \`max\` (or ${Te} if no \`max\` prop is set)
1111
1161
  - \`null\` or \`undefined\` if the progress is indeterminate.
1112
1162
 
1113
1163
  Defaulting to \`null\`.`;
1114
1164
  }
1115
- var Ht = Tt, Ws = Lt;
1116
- const Bt = Oe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ht, {
1165
+ var Ot = kt, Os = At;
1166
+ const Lt = Pe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
1117
1167
  ref: i,
1118
- className: B("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
1168
+ className: L("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
1119
1169
  ...t,
1120
- children: g(Ws, {
1170
+ children: g(Os, {
1121
1171
  className: "h-full w-full flex-1 transition-all",
1122
1172
  style: {
1123
1173
  backgroundColor: t.color,
@@ -1125,15 +1175,15 @@ const Bt = Oe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ht, {
1125
1175
  }
1126
1176
  })
1127
1177
  }));
1128
- Bt.displayName = Ht.displayName;
1129
- const $s = ({ value: a, max: e = 100, label: t, color: i }, s) => {
1130
- const r = i ? ee(i) : ee("categorical-1"), n = a / e * 100;
1131
- return z("div", {
1178
+ Lt.displayName = Ot.displayName;
1179
+ const Ls = ({ value: a, max: e = 100, label: t, color: i }, s) => {
1180
+ const r = i ? Q(i) : Q("categorical-1"), n = a / e * 100;
1181
+ return R("div", {
1132
1182
  className: "flex items-center space-x-2",
1133
1183
  "aria-live": "polite",
1134
1184
  children: [g("div", {
1135
1185
  className: "flex-grow",
1136
- children: g(Bt, {
1186
+ children: g(Lt, {
1137
1187
  color: r,
1138
1188
  value: n,
1139
1189
  className: "w-full",
@@ -1147,78 +1197,78 @@ const $s = ({ value: a, max: e = 100, label: t, color: i }, s) => {
1147
1197
  children: t
1148
1198
  })]
1149
1199
  });
1150
- }, js = ct($s), Cr = F(
1200
+ }, Ms = at(Ls), pr = I(
1151
1201
  {
1152
1202
  name: "AreaChart",
1153
1203
  type: "info"
1154
1204
  },
1155
- Di
1156
- ), Rr = F(
1205
+ Ci
1206
+ ), mr = I(
1157
1207
  {
1158
1208
  name: "BarChart",
1159
1209
  type: "info"
1160
1210
  },
1161
- _i
1162
- ), Nr = F(
1211
+ yi
1212
+ ), vr = I(
1163
1213
  {
1164
1214
  name: "CategoryBarChart",
1165
1215
  type: "info"
1166
1216
  },
1167
- Ei
1168
- ), Dr = F(
1217
+ bi
1218
+ ), yr = I(
1169
1219
  {
1170
1220
  name: "LineChart",
1171
1221
  type: "info"
1172
1222
  },
1173
- Ci
1174
- ), Sr = F(
1223
+ wi
1224
+ ), br = I(
1175
1225
  {
1176
1226
  name: "PieChart",
1177
1227
  type: "info"
1178
1228
  },
1179
- Ri
1180
- ), zr = F(
1229
+ xi
1230
+ ), wr = I(
1181
1231
  {
1182
1232
  name: "VerticalBarChart",
1183
1233
  type: "info"
1184
1234
  },
1185
- Ni
1186
- ), kr = F(
1235
+ _i
1236
+ ), xr = I(
1187
1237
  {
1188
1238
  name: "ProgressBarChart",
1189
1239
  type: "info"
1190
1240
  },
1191
- js
1192
- ), Pr = F(
1241
+ Ms
1242
+ ), _r = I(
1193
1243
  {
1194
1244
  name: "ComboChart",
1195
1245
  type: "info"
1196
1246
  },
1197
- Ls
1198
- ), Ar = Si, Tr = ft, Or = ["default", "outline", "neutral"], Lr = ft, Mr = ["sm", "md", "lg"], Hr = zi, Ae = ({ count: a, list: e }) => {
1199
- const [t, i] = A(!1), s = g(fe, {
1247
+ Ds
1248
+ ), Cr = Ei, Er = ht, Nr = ["default", "outline", "neutral"], Rr = ht, Dr = ["sm", "md", "lg"], Sr = Ni, ke = ({ count: a, list: e }) => {
1249
+ const [t, i] = M(!1), s = g(de, {
1200
1250
  label: `+${a}`
1201
1251
  });
1202
- return e != null && e.length ? z(gt, {
1252
+ return e != null && e.length ? R(dt, {
1203
1253
  open: t,
1204
1254
  onOpenChange: i,
1205
- children: [g(pt, {
1255
+ children: [g(ct, {
1206
1256
  asChild: !0,
1207
1257
  children: g("button", {
1208
- className: ki("inline-flex flex-shrink-0 items-center"),
1258
+ className: Ri("inline-flex flex-shrink-0 items-center"),
1209
1259
  children: s
1210
1260
  })
1211
- }), g(mt, {
1261
+ }), g(ut, {
1212
1262
  className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
1213
1263
  align: "end",
1214
- children: z(yt, {
1264
+ children: R(ft, {
1215
1265
  className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
1216
1266
  children: [e.map((r, n) => g("div", {
1217
1267
  className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
1218
- children: g(fe, {
1268
+ children: g(de, {
1219
1269
  ...r
1220
1270
  })
1221
- }, n)), g(vt, {
1271
+ }, n)), g(gt, {
1222
1272
  orientation: "vertical",
1223
1273
  className: "[&_div]:bg-f1-background"
1224
1274
  })]
@@ -1226,152 +1276,36 @@ const $s = ({ value: a, max: e = 100, label: t, color: i }, s) => {
1226
1276
  })]
1227
1277
  }) : s;
1228
1278
  };
1229
- Ae.displayName = "ChipCounter";
1230
- const It = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
1279
+ ke.displayName = "ChipCounter";
1280
+ const Mt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
1231
1281
  if (i === "fill")
1232
- return g(Pi, {
1282
+ return g(Di, {
1233
1283
  items: a,
1234
- renderListItem: (d) => g(fe, {
1235
- ...d
1284
+ renderListItem: (h) => g(de, {
1285
+ ...h
1236
1286
  }),
1237
1287
  renderDropdownItem: () => null,
1238
1288
  forceShowingOverflowIndicator: t !== void 0,
1239
- renderOverflowIndicator: (d) => g(Ae, {
1240
- count: (t ?? 0) + d,
1241
- list: t ? void 0 : a.slice(a.length - d)
1289
+ renderOverflowIndicator: (h) => g(ke, {
1290
+ count: (t ?? 0) + h,
1291
+ list: t ? void 0 : a.slice(a.length - h)
1242
1292
  }),
1243
1293
  overflowIndicatorWithPopover: !1,
1244
1294
  className: "flex-1"
1245
1295
  });
1246
1296
  const s = a.slice(0, e), r = a.slice(e), n = t ?? a.length - e, o = n > 0;
1247
- return z("div", {
1297
+ return R("div", {
1248
1298
  className: "flex items-center gap-2",
1249
- children: [s.map((d, c) => g(fe, {
1250
- ...d
1251
- }, c)), o && g(Ae, {
1299
+ children: [s.map((h, c) => g(de, {
1300
+ ...h
1301
+ }, c)), o && g(ke, {
1252
1302
  count: n,
1253
1303
  list: t ? void 0 : r
1254
1304
  })]
1255
1305
  });
1256
1306
  };
1257
- It.displayName = "F0ChipList";
1258
- const Br = Te("F0ChipList", It), Ft = $(({ value: a, onDateChange: e, granularity: t, onOpenChange: i, minDate: s, maxDate: r, onClear: n, ...o }, d) => {
1259
- const [c, l] = A(""), [h, f] = A(!1), p = bt();
1260
- K(() => {
1261
- l(t.toString(a == null ? void 0 : a.value, p));
1262
- }, [a, t, p]);
1263
- const m = (_) => Oi(_, t, {
1264
- minDate: s,
1265
- maxDate: r
1266
- }), y = (_, C) => {
1267
- if (_ === "") {
1268
- e == null || e({
1269
- value: void 0,
1270
- granularity: C.key
1271
- }), f(o.required ?? !1);
1272
- return;
1273
- }
1274
- const D = C.toRange(C.fromString(_, p));
1275
- D && m(D == null ? void 0 : D.from) && m(D == null ? void 0 : D.to) ? (e == null || e({
1276
- value: D,
1277
- granularity: C.key
1278
- }), f(!1)) : f(!0);
1279
- }, b = () => {
1280
- y(c, t);
1281
- };
1282
- return g(oe, {
1283
- children: g(Ai, {
1284
- ...o,
1285
- icon: Ti,
1286
- ref: d,
1287
- onFocus: () => i == null ? void 0 : i(!0),
1288
- onClear: () => {
1289
- n == null || n(), l(""), y("", t);
1290
- },
1291
- onKeyDown: (_) => {
1292
- _.key === "Enter" && b();
1293
- },
1294
- type: "text",
1295
- onChange: (_) => {
1296
- l(_);
1297
- },
1298
- error: h || o.error,
1299
- onBlur: b,
1300
- value: c,
1301
- onClickContent: () => i == null ? void 0 : i(!0)
1302
- })
1303
- });
1304
- });
1305
- Ft.displayName = "DateInput";
1306
- function Us({ onChange: a, value: e, presets: t = [], granularities: i = ["day"], minDate: s, maxDate: r, open: n = !1, ...o }) {
1307
- const [d, c] = A(), [l, h] = A(n);
1308
- K(() => {
1309
- h(n);
1310
- }, [n]);
1311
- const f = bt(), p = te(() => i[0] ?? "day", [i]), m = j((R) => {
1312
- const E = R || p;
1313
- if (!Ve[E])
1314
- throw new Error(`Invalid granularity ${E}`);
1315
- return {
1316
- ...Ve[E],
1317
- key: E
1318
- };
1319
- }, [p]), y = j((R) => {
1320
- var T;
1321
- if (!R)
1322
- return;
1323
- const E = m(R == null ? void 0 : R.granularity);
1324
- return R ? {
1325
- value: E.toRange(E.calendarMode === "range" ? R.value : ((T = R.value) == null ? void 0 : T.from) ?? void 0),
1326
- granularity: R.granularity
1327
- } : void 0;
1328
- }, [m]), b = te(() => m(d == null ? void 0 : d.granularity), [d == null ? void 0 : d.granularity, m]);
1329
- K(() => {
1330
- const R = y(e);
1331
- De(d, R) || c(R);
1332
- }, [e]);
1333
- const N = (R) => {
1334
- const E = y(R), L = m(E == null ? void 0 : E.granularity).calendarMode !== "range" && (E == null ? void 0 : E.granularity) === (d == null ? void 0 : d.granularity) && !De(E, d);
1335
- _(E), L && h(!1);
1336
- }, _ = (R) => {
1337
- const E = y(R);
1338
- if (c(E), !De(E, d)) {
1339
- const T = m(E == null ? void 0 : E.granularity);
1340
- a == null || a(E, T.toString(E == null ? void 0 : E.value, f));
1341
- }
1342
- }, C = (R) => {
1343
- var E;
1344
- h(R), (E = o.onOpenChange) == null || E.call(o, R);
1345
- }, D = te(() => t.filter((R) => i.includes(R.granularity)), [t, i]), S = Y(null);
1346
- return K(() => {
1347
- l && S.current && requestAnimationFrame(() => {
1348
- var R;
1349
- (R = S.current) == null || R.focus();
1350
- });
1351
- }, [l]), g(Li, {
1352
- hideCalendarInput: !0,
1353
- onSelect: N,
1354
- value: d,
1355
- presets: D,
1356
- granularities: i,
1357
- minDate: s,
1358
- maxDate: r,
1359
- open: l,
1360
- onOpenChange: C,
1361
- asChild: !0,
1362
- children: g(Ft, {
1363
- ref: S,
1364
- ...o,
1365
- value: d,
1366
- granularity: b,
1367
- onDateChange: _
1368
- })
1369
- });
1370
- }
1371
- const Ir = Mi, Fr = Te(
1372
- "F0DatePicker",
1373
- Us
1374
- ), Se = wt({
1307
+ Mt.displayName = "F0ChipList";
1308
+ const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
1375
1309
  base: "text-base text-f1-foreground",
1376
1310
  variants: {
1377
1311
  variant: {
@@ -1412,7 +1346,7 @@ const Ir = Mi, Fr = Te(
1412
1346
  variant: "body",
1413
1347
  align: "left"
1414
1348
  }
1415
- }), qs = {
1349
+ }), Hs = {
1416
1350
  "heading-large": "h1",
1417
1351
  heading: "h2",
1418
1352
  body: "p",
@@ -1431,85 +1365,85 @@ const Ir = Mi, Fr = Te(
1431
1365
  "positive-strong": "p",
1432
1366
  "info-strong": "p",
1433
1367
  code: "code"
1434
- }, He = $(({ content: a, variant: e, align: t, className: i, as: s, ellipsis: r, noEllipsisTooltip: n, markdown: o, ...d }, c) => {
1435
- const l = s ?? qs[e ?? "body"];
1368
+ }, Oe = j(({ content: a, variant: e, align: t, className: i, as: s, ellipsis: r, noEllipsisTooltip: n, markdown: o, ...h }, c) => {
1369
+ const l = s ?? Hs[e ?? "body"];
1436
1370
  if (r !== void 0)
1437
- return g(Hi, {
1371
+ return g(zi, {
1438
1372
  ref: c,
1439
1373
  lines: typeof r == "number" ? r : 1,
1440
1374
  noTooltip: n,
1441
1375
  tag: l,
1442
- className: B(Se({
1376
+ className: L(Re({
1443
1377
  variant: e,
1444
1378
  align: t
1445
1379
  }), i),
1446
1380
  markdown: o,
1447
- ...d,
1381
+ ...h,
1448
1382
  children: a
1449
1383
  });
1450
1384
  if (o) {
1451
- const h = Bi(a);
1452
- return Xe(l, {
1453
- ...d,
1454
- className: B(Se({
1385
+ const d = ki(a);
1386
+ return qe(l, {
1387
+ ...h,
1388
+ className: L(Re({
1455
1389
  variant: e,
1456
1390
  align: t
1457
1391
  }), i),
1458
1392
  ref: c,
1459
1393
  dangerouslySetInnerHTML: {
1460
- __html: h
1394
+ __html: d
1461
1395
  }
1462
1396
  });
1463
1397
  }
1464
- return Xe(l, {
1465
- ...d,
1466
- className: B(Se({
1398
+ return qe(l, {
1399
+ ...h,
1400
+ className: L(Re({
1467
1401
  variant: e,
1468
1402
  align: t
1469
1403
  }), i),
1470
1404
  ref: c
1471
1405
  }, a);
1472
1406
  });
1473
- He.displayName = "Text";
1474
- const Ks = $((a, e) => g(He, {
1407
+ Oe.displayName = "Text";
1408
+ const Bs = j((a, e) => g(Oe, {
1475
1409
  ref: e,
1476
1410
  variant: "heading",
1477
1411
  ...a
1478
1412
  }));
1479
- Ks.displayName = "F0Heading";
1480
- const Vs = $((a, e) => g(He, {
1413
+ Bs.displayName = "F0Heading";
1414
+ const Is = j((a, e) => g(Oe, {
1481
1415
  ref: e,
1482
1416
  markdown: a.markdown ?? !0,
1483
1417
  ...a
1484
1418
  }));
1485
- Vs.displayName = "F0Text";
1486
- const Ys = {
1419
+ Is.displayName = "F0Text";
1420
+ const Fs = {
1487
1421
  xs: 1,
1488
1422
  sm: 2,
1489
1423
  md: 2,
1490
1424
  lg: 2
1491
- }, Xs = $(function({ widgets: e, children: t }, i) {
1492
- const s = Y(null);
1493
- Nt(i, () => s.current);
1494
- const r = hs.toArray(e).filter((n) => !!n).map((n, o) => g("div", {
1425
+ }, Gs = j(function({ widgets: e, children: t }, i) {
1426
+ const s = Z(null);
1427
+ _t(i, () => s.current);
1428
+ const r = is.toArray(e).filter((n) => !!n).map((n, o) => g("div", {
1495
1429
  className: "h-full @5xl:h-auto [&>div]:h-full",
1496
1430
  children: n
1497
1431
  }, o));
1498
- return g(xt, {
1432
+ return g(vt, {
1499
1433
  layout: "home",
1500
- children: z("div", {
1434
+ children: R("div", {
1501
1435
  ref: s,
1502
1436
  className: "@container",
1503
- children: [z("div", {
1437
+ children: [R("div", {
1504
1438
  className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
1505
- children: [g(Ii, {
1506
- columns: Ys,
1439
+ children: [g(Pi, {
1440
+ columns: Fs,
1507
1441
  showArrows: !1,
1508
1442
  children: r
1509
1443
  }), g("main", {
1510
1444
  children: t
1511
1445
  })]
1512
- }), z("div", {
1446
+ }), R("div", {
1513
1447
  className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
1514
1448
  children: [g("div", {
1515
1449
  className: "col-span-3 flex flex-row gap-5 *:flex-1",
@@ -1524,78 +1458,78 @@ const Ys = {
1524
1458
  })]
1525
1459
  })
1526
1460
  });
1527
- }), Js = $(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: s = !1 }, r) {
1461
+ }), Ws = j(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: s = !1 }, r) {
1528
1462
  return g("div", {
1529
1463
  ref: r,
1530
1464
  className: "h-full",
1531
- children: z("div", {
1532
- className: B("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", s && "md:sticky md:top-0 md:max-h-full"),
1465
+ children: R("div", {
1466
+ className: L("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", s && "md:sticky md:top-0 md:max-h-full"),
1533
1467
  children: [g("main", {
1534
- className: B("sm:min-h-xs order-2 h-fit border-0 px-4 py-5 sm:flex-1 sm:border-solid md:order-2 md:px-6", s ? "md:h-full md:max-h-full md:overflow-y-auto" : "min-h-full", i === "right" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary", "border-t border-solid border-t-f1-border-secondary sm:border-t-0"),
1468
+ className: L("sm:min-h-xs order-2 h-fit border-0 px-4 py-5 sm:flex-1 sm:border-solid md:order-2 md:px-6", s ? "md:h-full md:max-h-full md:overflow-y-auto" : "min-h-full", i === "right" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary", "border-t border-solid border-t-f1-border-secondary sm:border-t-0"),
1535
1469
  children: e
1536
- }), g(Zs, {
1470
+ }), g($s, {
1537
1471
  sticky: s,
1538
- className: B("order-1", i === "right" ? "md:order-1" : "md:order-3"),
1472
+ className: L("order-1", i === "right" ? "md:order-1" : "md:order-3"),
1539
1473
  children: t
1540
1474
  })]
1541
1475
  })
1542
1476
  });
1543
- }), Zs = ({ children: a, className: e }) => g("aside", {
1544
- className: B("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
1477
+ }), $s = ({ children: a, className: e }) => g("aside", {
1478
+ className: L("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
1545
1479
  children: a
1546
- }), Qs = wt({
1480
+ }), js = mt({
1547
1481
  base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
1548
1482
  variants: {
1549
1483
  variant: {
1550
1484
  narrow: "max-w-screen-lg"
1551
1485
  }
1552
1486
  }
1553
- }), Gt = P.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(xt, {
1487
+ }), Ht = z.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(vt, {
1554
1488
  layout: "standard",
1555
1489
  children: g("section", {
1556
1490
  ref: s,
1557
- className: B("relative flex-1 overflow-auto", t),
1491
+ className: L("relative flex-1 overflow-auto", t),
1558
1492
  ...i,
1559
1493
  children: g("div", {
1560
- className: B(Qs({
1494
+ className: L(js({
1561
1495
  variant: e
1562
1496
  })),
1563
1497
  children: a
1564
1498
  })
1565
1499
  })
1566
1500
  }));
1567
- Gt.displayName = "StandardLayout";
1568
- const Gr = F({
1501
+ Ht.displayName = "StandardLayout";
1502
+ const Pr = I({
1569
1503
  name: "StandardLayout",
1570
1504
  type: "layout"
1571
- }, Gt), Wr = F({
1505
+ }, Ht), Ar = I({
1572
1506
  name: "TwoColumnLayout",
1573
1507
  type: "layout"
1574
- }, Js), $r = F({
1508
+ }, Ws), Tr = I({
1575
1509
  name: "HomeLayout",
1576
1510
  type: "layout"
1577
- }, Xs), Wt = _e(null);
1578
- function Be() {
1579
- const a = Dt(Wt);
1511
+ }, Gs), Bt = xe(null);
1512
+ function Le() {
1513
+ const a = Ct(Bt);
1580
1514
  if (!a)
1581
1515
  throw new Error(
1582
1516
  "useGridStackContext must be used within a GridStackProvider"
1583
1517
  );
1584
1518
  return a;
1585
1519
  }
1586
- function er({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1587
- const [s, r] = A(null), [n, o] = A(() => {
1588
- var y;
1520
+ function Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1521
+ const [s, r] = M(null), [n, o] = M(() => {
1522
+ var v;
1589
1523
  const p = /* @__PURE__ */ new Map(), m = (b) => {
1590
- var N, _;
1591
- b.id && ((N = b.renderFn) != null && N.call(b)) && p.set(b.id, b), (_ = b.subGridOpts) != null && _.children && b.subGridOpts.children.forEach((C) => {
1524
+ var _, E;
1525
+ b.id && ((_ = b.renderFn) != null && _.call(b)) && p.set(b.id, b), (E = b.subGridOpts) != null && E.children && b.subGridOpts.children.forEach((C) => {
1592
1526
  m(C);
1593
1527
  });
1594
1528
  };
1595
- return (y = e.children) == null || y.forEach((b) => {
1529
+ return (v = e.children) == null || v.forEach((b) => {
1596
1530
  m(b);
1597
1531
  }), p;
1598
- }), d = j(() => {
1532
+ }), h = q(() => {
1599
1533
  if (!s)
1600
1534
  return;
1601
1535
  const p = s.save();
@@ -1608,45 +1542,45 @@ function er({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1608
1542
  y: m.y ?? 0
1609
1543
  }))));
1610
1544
  }, [s]);
1611
- K(() => {
1545
+ ce(() => {
1612
1546
  if (!s) return;
1613
- const p = (m, y) => {
1614
- t == null || t(m, y);
1547
+ const p = (m, v) => {
1548
+ t == null || t(m, v);
1615
1549
  };
1616
- return s.on("resizestop", p), s.on("change added removed", d), () => {
1550
+ return s.on("resizestop", p), s.on("change added removed", h), () => {
1617
1551
  s.off("resizestop"), s.off("change added removed");
1618
1552
  };
1619
- }, [s, t, d]), K(() => {
1620
- s && d();
1553
+ }, [s, t, h]), ce(() => {
1554
+ s && h();
1621
1555
  }, [s]);
1622
- const c = j((p) => {
1556
+ const c = q((p) => {
1623
1557
  s == null || s.addWidget(p), o((m) => {
1624
- const y = new Map(m);
1625
- return y.set(p.id, p), y;
1558
+ const v = new Map(m);
1559
+ return v.set(p.id, p), v;
1626
1560
  });
1627
- }, [s]), l = j((p) => {
1561
+ }, [s]), l = q((p) => {
1628
1562
  s == null || s.addWidget(p), o((m) => {
1629
- var b, N;
1630
- const y = new Map(m);
1631
- return (N = (b = p.subGridOpts) == null ? void 0 : b.children) == null || N.forEach((_) => {
1632
- y.set(_.id, _);
1633
- }), y;
1563
+ var b, _;
1564
+ const v = new Map(m);
1565
+ return (_ = (b = p.subGridOpts) == null ? void 0 : b.children) == null || _.forEach((E) => {
1566
+ v.set(E.id, E);
1567
+ }), v;
1634
1568
  });
1635
- }, [s]), h = j((p) => {
1569
+ }, [s]), d = q((p) => {
1636
1570
  const m = document.body.querySelector(`[gs-id="${p}"]`);
1637
- m && (s == null || s.removeWidget(m)), o((y) => {
1638
- const b = new Map(y);
1571
+ m && (s == null || s.removeWidget(m)), o((v) => {
1572
+ const b = new Map(v);
1639
1573
  return b.delete(p), b;
1640
1574
  });
1641
- }, [s]), f = j(() => {
1575
+ }, [s]), f = q(() => {
1642
1576
  s == null || s.removeAll(), o(/* @__PURE__ */ new Map());
1643
1577
  }, [s]);
1644
- return g(Wt.Provider, {
1578
+ return g(Bt.Provider, {
1645
1579
  value: {
1646
1580
  initialOptions: e,
1647
1581
  gridStack: s,
1648
1582
  addWidget: c,
1649
- removeWidget: h,
1583
+ removeWidget: d,
1650
1584
  addSubGrid: l,
1651
1585
  removeAll: f,
1652
1586
  _gridStack: {
@@ -1661,34 +1595,34 @@ function er({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1661
1595
  children: a
1662
1596
  });
1663
1597
  }
1664
- const $t = _e(null);
1665
- function tr() {
1666
- const a = Dt($t);
1598
+ const It = xe(null);
1599
+ function qs() {
1600
+ const a = Ct(It);
1667
1601
  if (!a)
1668
1602
  throw new Error(
1669
1603
  "useGridStackRenderContext must be used within a GridStackProvider"
1670
1604
  );
1671
1605
  return a;
1672
1606
  }
1673
- const ir = _e(null);
1674
- function sr() {
1675
- const { _rawWidgetMetaMap: a } = Be(), { getWidgetContainer: e } = tr();
1676
- return g(oe, {
1607
+ const Ks = xe(null);
1608
+ function Vs() {
1609
+ const { _rawWidgetMetaMap: a } = Le(), { getWidgetContainer: e } = qs();
1610
+ return g(we, {
1677
1611
  children: Array.from(a.value.entries()).map(([t, i]) => {
1678
1612
  var r;
1679
1613
  const s = e(t);
1680
- return s ? g(ir.Provider, {
1614
+ return s ? g(Ks.Provider, {
1681
1615
  value: {
1682
1616
  widget: {
1683
1617
  id: t
1684
1618
  }
1685
1619
  },
1686
- children: cs((r = i.renderFn) == null ? void 0 : r.call(i), s)
1620
+ children: ss((r = i.renderFn) == null ? void 0 : r.call(i), s)
1687
1621
  }, t) : null;
1688
1622
  })
1689
1623
  });
1690
1624
  }
1691
- function rr(a, e, t, i, s) {
1625
+ function Ys(a, e, t, i, s) {
1692
1626
  const r = (...n) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + s + " and has been replaced with `" + i + "`. It will be **removed** in a future release"), e.apply(a, n));
1693
1627
  return r.prototype = e.prototype, r;
1694
1628
  }
@@ -2062,8 +1996,8 @@ class u {
2062
1996
  const s = u.getScrollElement(e);
2063
1997
  if (!s)
2064
1998
  return;
2065
- const r = e.getBoundingClientRect(), n = s.getBoundingClientRect(), o = window.innerHeight || document.documentElement.clientHeight, d = r.bottom - Math.min(n.bottom, o), c = r.top - Math.max(n.top, 0), l = s.scrollTop;
2066
- c < 0 && i < 0 ? e.offsetHeight > n.height ? s.scrollTop += i : s.scrollTop += Math.abs(c) > Math.abs(i) ? i : c : d > 0 && i > 0 && (e.offsetHeight > n.height ? s.scrollTop += i : s.scrollTop += d > i ? i : d), t.top += s.scrollTop - l;
1999
+ const r = e.getBoundingClientRect(), n = s.getBoundingClientRect(), o = window.innerHeight || document.documentElement.clientHeight, h = r.bottom - Math.min(n.bottom, o), c = r.top - Math.max(n.top, 0), l = s.scrollTop;
2000
+ c < 0 && i < 0 ? e.offsetHeight > n.height ? s.scrollTop += i : s.scrollTop += Math.abs(c) > Math.abs(i) ? i : c : h > 0 && i > 0 && (e.offsetHeight > n.height ? s.scrollTop += i : s.scrollTop += h > i ? i : h), t.top += s.scrollTop - l;
2067
2001
  }
2068
2002
  /**
2069
2003
  * @internal Function used to scroll the page.
@@ -2073,8 +2007,8 @@ class u {
2073
2007
  * @param distance Distance from the V edges to start scrolling
2074
2008
  */
2075
2009
  static updateScrollResize(e, t, i) {
2076
- const s = u.getScrollElement(t), r = s.clientHeight, n = s === u.getScrollElement() ? 0 : s.getBoundingClientRect().top, o = e.clientY - n, d = o < i, c = o > r - i;
2077
- d ? s.scrollBy({ behavior: "smooth", top: o - i }) : c && s.scrollBy({ behavior: "smooth", top: i - (r - o) });
2010
+ const s = u.getScrollElement(t), r = s.clientHeight, n = s === u.getScrollElement() ? 0 : s.getBoundingClientRect().top, o = e.clientY - n, h = o < i, c = o > r - i;
2011
+ h ? s.scrollBy({ behavior: "smooth", top: o - i }) : c && s.scrollBy({ behavior: "smooth", top: i - (r - o) });
2078
2012
  }
2079
2013
  /** single level clone, returning a new object with same top fields. This will share sub objects and arrays */
2080
2014
  static clone(e) {
@@ -2191,7 +2125,7 @@ class u {
2191
2125
  return !(!e || e.w === e.h || e.locked || e.noResize || (t = e.grid) != null && t.opts.disableResize || e.minW && e.minW === e.maxW || e.minH && e.minH === e.maxH);
2192
2126
  }
2193
2127
  }
2194
- class U {
2128
+ class $ {
2195
2129
  constructor(e = {}) {
2196
2130
  this.addedNodes = [], this.removedNodes = [], this.defaultColumn = 12, this.column = e.column || this.defaultColumn, this.column > this.defaultColumn && (this.defaultColumn = this.column), this.maxRow = e.maxRow, this._float = e.float, this.nodes = e.nodes || [], this.onChange = e.onChange;
2197
2131
  }
@@ -2228,9 +2162,9 @@ class U {
2228
2162
  !this._loading && this._useEntireRowArea(e, t) && (r = { x: 0, w: this.column, y: t.y, h: t.h }, i = this.collide(e, r, s.skip));
2229
2163
  let n = !1;
2230
2164
  const o = { nested: !0, pack: !1 };
2231
- let d = 0;
2165
+ let h = 0;
2232
2166
  for (; i = i || this.collide(e, r, s.skip); ) {
2233
- if (d++ > this.nodes.length * 2)
2167
+ if (h++ > this.nodes.length * 2)
2234
2168
  throw new Error("Infinite collide check");
2235
2169
  let c;
2236
2170
  if (i.locked || this._loading || e._moving && !e._skipDown && t.y > e.y && !this.float && // can take space we had, or before where we're going
@@ -2289,14 +2223,14 @@ class U {
2289
2223
  const s = e._rect, r = { ...t.rect };
2290
2224
  r.y > s.y ? (r.h += r.y - s.y, r.y = s.y) : r.h += s.y - r.y, r.x > s.x ? (r.w += r.x - s.x, r.x = s.x) : r.w += s.x - r.x;
2291
2225
  let n, o = 0.5;
2292
- for (let d of i) {
2293
- if (d.locked || !d._rect)
2226
+ for (let h of i) {
2227
+ if (h.locked || !h._rect)
2294
2228
  break;
2295
- const c = d._rect;
2296
- let l = Number.MAX_VALUE, h = Number.MAX_VALUE;
2297
- s.y < c.y ? l = (r.y + r.h - c.y) / c.h : s.y + s.h > c.y + c.h && (l = (c.y + c.h - r.y) / c.h), s.x < c.x ? h = (r.x + r.w - c.x) / c.w : s.x + s.w > c.x + c.w && (h = (c.x + c.w - r.x) / c.w);
2298
- const f = Math.min(h, l);
2299
- f > o && (o = f, n = d);
2229
+ const c = h._rect;
2230
+ let l = Number.MAX_VALUE, d = Number.MAX_VALUE;
2231
+ s.y < c.y ? l = (r.y + r.h - c.y) / c.h : s.y + s.h > c.y + c.h && (l = (c.y + c.h - r.y) / c.h), s.x < c.x ? d = (r.x + r.w - c.x) / c.w : s.x + s.w > c.x + c.w && (d = (c.x + c.w - r.x) / c.w);
2232
+ const f = Math.min(d, l);
2233
+ f > o && (o = f, n = h);
2300
2234
  }
2301
2235
  return t.collide = n, n;
2302
2236
  }
@@ -2426,9 +2360,9 @@ class U {
2426
2360
  const s = this._inColumnResize;
2427
2361
  s || (this._inColumnResize = !0);
2428
2362
  const r = this.nodes;
2429
- return this.nodes = [], r.forEach((n, o, d) => {
2363
+ return this.nodes = [], r.forEach((n, o, h) => {
2430
2364
  let c;
2431
- n.locked || (n.autoPosition = !0, e === "list" && o && (c = d[o - 1])), this.addNode(n, !1, c);
2365
+ n.locked || (n.autoPosition = !0, e === "list" && o && (c = h[o - 1])), this.addNode(n, !1, c);
2432
2366
  }), s || delete this._inColumnResize, i || this.batchUpdate(!1), this;
2433
2367
  }
2434
2368
  /**
@@ -2503,7 +2437,7 @@ class U {
2503
2437
  * console.log('Node prepared at:', prepared.x, prepared.y);
2504
2438
  */
2505
2439
  prepareNode(e, t) {
2506
- e._id = e._id ?? U._idSeq++;
2440
+ e._id = e._id ?? $._idSeq++;
2507
2441
  const i = e.id;
2508
2442
  if (i) {
2509
2443
  let r = 1;
@@ -2620,11 +2554,11 @@ class U {
2620
2554
  const r = s ? s.y * i + (s.x + s.w) : 0;
2621
2555
  let n = !1;
2622
2556
  for (let o = r; !n; ++o) {
2623
- const d = o % i, c = Math.floor(o / i);
2624
- if (d + e.w > i)
2557
+ const h = o % i, c = Math.floor(o / i);
2558
+ if (h + e.w > i)
2625
2559
  continue;
2626
- const l = { x: d, y: c, w: e.w, h: e.h };
2627
- t.find((h) => u.isIntercepted(l, h)) || ((e.x !== d || e.y !== c) && (e._dirty = !0), e.x = d, e.y = c, delete e.autoPosition, n = !0);
2560
+ const l = { x: h, y: c, w: e.w, h: e.h };
2561
+ t.find((d) => u.isIntercepted(l, d)) || ((e.x !== h || e.y !== c) && (e._dirty = !0), e.x = h, e.y = c, delete e.autoPosition, n = !0);
2628
2562
  }
2629
2563
  return n;
2630
2564
  }
@@ -2703,7 +2637,7 @@ class U {
2703
2637
  if (t.pack = !0, !this.maxRow)
2704
2638
  return this.moveNode(e, t);
2705
2639
  let i;
2706
- const s = new U({
2640
+ const s = new $({
2707
2641
  column: this.column,
2708
2642
  float: this.float,
2709
2643
  nodes: this.nodes.map((n) => n._id === e._id ? (i = { ...n }, i) : { ...n })
@@ -2717,7 +2651,7 @@ class U {
2717
2651
  return this._notify(), !0;
2718
2652
  }
2719
2653
  return r ? (s.nodes.filter((n) => n._dirty).forEach((n) => {
2720
- const o = this.nodes.find((d) => d._id === n._id);
2654
+ const o = this.nodes.find((h) => h._id === n._id);
2721
2655
  o && (u.copyPos(o, n), o._dirty = !0);
2722
2656
  }), this._notify(), !0) : !1;
2723
2657
  }
@@ -2725,7 +2659,7 @@ class U {
2725
2659
  willItFit(e) {
2726
2660
  if (delete e._willFitPos, !this.maxRow)
2727
2661
  return !0;
2728
- const t = new U({
2662
+ const t = new $({
2729
2663
  column: this.column,
2730
2664
  float: this.float,
2731
2665
  nodes: this.nodes.map((s) => ({ ...s }))
@@ -2748,17 +2682,17 @@ class U {
2748
2682
  if (u.copyPos(r, t), this.nodeBoundFix(r, s), u.copyPos(t, r), !t.forceCollide && u.samePos(e, t))
2749
2683
  return !1;
2750
2684
  const n = u.copyPos({}, e), o = this.collideAll(e, r, t.skip);
2751
- let d = !0;
2685
+ let h = !0;
2752
2686
  if (o.length) {
2753
- const h = e._moving && !t.nested;
2754
- let f = h ? this.directionCollideCoverage(e, t, o) : o[0];
2755
- if (h && f && ((l = (c = e.grid) == null ? void 0 : c.opts) != null && l.subGridDynamic) && !e.grid._isTemp) {
2756
- const p = u.areaIntercept(t.rect, f._rect), m = u.area(t.rect), y = u.area(f._rect);
2757
- p / (m < y ? m : y) > 0.8 && (f.grid.makeSubGrid(f.el, void 0, e), f = void 0);
2687
+ const d = e._moving && !t.nested;
2688
+ let f = d ? this.directionCollideCoverage(e, t, o) : o[0];
2689
+ if (d && f && ((l = (c = e.grid) == null ? void 0 : c.opts) != null && l.subGridDynamic) && !e.grid._isTemp) {
2690
+ const p = u.areaIntercept(t.rect, f._rect), m = u.area(t.rect), v = u.area(f._rect);
2691
+ p / (m < v ? m : v) > 0.8 && (f.grid.makeSubGrid(f.el, void 0, e), f = void 0);
2758
2692
  }
2759
- f ? d = !this._fixCollisions(e, r, f, t) : (d = !1, i && delete t.pack);
2693
+ f ? h = !this._fixCollisions(e, r, f, t) : (h = !1, i && delete t.pack);
2760
2694
  }
2761
- return d && !u.samePos(e, r) && (e._dirty = !0, u.copyPos(e, r)), t.pack && this._packNodes()._notify(), !u.samePos(e, n);
2695
+ return h && !u.samePos(e, r) && (e._dirty = !0, u.copyPos(e, r)), t.pack && this._packNodes()._notify(), !u.samePos(e, n);
2762
2696
  }
2763
2697
  getRow() {
2764
2698
  return this.nodes.reduce((e, t) => Math.max(e, t.y + t.h), 0);
@@ -2783,9 +2717,9 @@ class U {
2783
2717
  let r;
2784
2718
  s && (i ? i !== this.column && (r = this._layouts[i]) : this.column !== s - 1 && (r = this._layouts[s - 1]));
2785
2719
  const n = [];
2786
- return this.sortNodes(), this.nodes.forEach((d) => {
2787
- const c = r == null ? void 0 : r.find((h) => h._id === d._id), l = { ...d, ...c || {} };
2788
- u.removeInternalForSave(l, !e), t && t(d, l), n.push(l);
2720
+ return this.sortNodes(), this.nodes.forEach((h) => {
2721
+ const c = r == null ? void 0 : r.find((d) => d._id === h._id), l = { ...h, ...c || {} };
2722
+ u.removeInternalForSave(l, !e), t && t(h, l), n.push(l);
2789
2723
  }), n;
2790
2724
  }
2791
2725
  /** @internal called whenever a node is added or moved - updates the cached layouts */
@@ -2824,19 +2758,19 @@ class U {
2824
2758
  s && this.sortNodes(1), t < e && this.cacheLayout(this.nodes, e), this.batchUpdate();
2825
2759
  let r = [], n = s ? this.nodes : u.sort(this.nodes, -1);
2826
2760
  if (t > e && this._layouts) {
2827
- const d = this._layouts[t] || [], c = this._layouts.length - 1;
2828
- !d.length && e !== c && ((o = this._layouts[c]) != null && o.length) && (e = c, this._layouts[c].forEach((l) => {
2829
- const h = n.find((f) => f._id === l._id);
2830
- h && (!s && !l.autoPosition && (h.x = l.x ?? h.x, h.y = l.y ?? h.y), h.w = l.w ?? h.w, (l.x == null || l.y === void 0) && (h.autoPosition = !0));
2831
- })), d.forEach((l) => {
2832
- const h = n.findIndex((f) => f._id === l._id);
2833
- if (h !== -1) {
2834
- const f = n[h];
2761
+ const h = this._layouts[t] || [], c = this._layouts.length - 1;
2762
+ !h.length && e !== c && ((o = this._layouts[c]) != null && o.length) && (e = c, this._layouts[c].forEach((l) => {
2763
+ const d = n.find((f) => f._id === l._id);
2764
+ d && (!s && !l.autoPosition && (d.x = l.x ?? d.x, d.y = l.y ?? d.y), d.w = l.w ?? d.w, (l.x == null || l.y === void 0) && (d.autoPosition = !0));
2765
+ })), h.forEach((l) => {
2766
+ const d = n.findIndex((f) => f._id === l._id);
2767
+ if (d !== -1) {
2768
+ const f = n[d];
2835
2769
  if (s) {
2836
2770
  f.w = l.w;
2837
2771
  return;
2838
2772
  }
2839
- (l.autoPosition || isNaN(l.x) || isNaN(l.y)) && this.findEmptyPosition(l, r), l.autoPosition || (f.x = l.x ?? f.x, f.y = l.y ?? f.y, f.w = l.w ?? f.w, r.push(f)), n.splice(h, 1);
2773
+ (l.autoPosition || isNaN(l.x) || isNaN(l.y)) && this.findEmptyPosition(l, r), l.autoPosition || (f.x = l.x ?? f.x, f.y = l.y ?? f.y, f.w = l.w ?? f.w, r.push(f)), n.splice(d, 1);
2840
2774
  }
2841
2775
  });
2842
2776
  }
@@ -2847,16 +2781,16 @@ class U {
2847
2781
  if (typeof i == "function")
2848
2782
  i(t, e, r, n);
2849
2783
  else {
2850
- const d = s || i === "none" ? 1 : t / e, c = i === "move" || i === "moveScale", l = i === "scale" || i === "moveScale";
2851
- n.forEach((h) => {
2852
- h.x = t === 1 ? 0 : c ? Math.round(h.x * d) : Math.min(h.x, t - 1), h.w = t === 1 || e === 1 ? 1 : l ? Math.round(h.w * d) || 1 : Math.min(h.w, t), r.push(h);
2784
+ const h = s || i === "none" ? 1 : t / e, c = i === "move" || i === "moveScale", l = i === "scale" || i === "moveScale";
2785
+ n.forEach((d) => {
2786
+ d.x = t === 1 ? 0 : c ? Math.round(d.x * h) : Math.min(d.x, t - 1), d.w = t === 1 || e === 1 ? 1 : l ? Math.round(d.w * h) || 1 : Math.min(d.w, t), r.push(d);
2853
2787
  }), n = [];
2854
2788
  }
2855
- r = u.sort(r, -1), this._inColumnResize = !0, this.nodes = [], r.forEach((d) => {
2856
- this.addNode(d, !1), delete d._orig;
2789
+ r = u.sort(r, -1), this._inColumnResize = !0, this.nodes = [], r.forEach((h) => {
2790
+ this.addNode(h, !1), delete h._orig;
2857
2791
  });
2858
2792
  }
2859
- return this.nodes.forEach((d) => delete d._orig), this.batchUpdate(!1, !s), delete this._inColumnResize, this;
2793
+ return this.nodes.forEach((h) => delete h._orig), this.batchUpdate(!1, !s), delete this._inColumnResize, this;
2860
2794
  }
2861
2795
  /**
2862
2796
  * call to cache the given layout internally to the given location so we can restore back when column changes size
@@ -2868,8 +2802,8 @@ class U {
2868
2802
  const s = [];
2869
2803
  return e.forEach((r, n) => {
2870
2804
  if (r._id === void 0) {
2871
- const o = r.id ? this.nodes.find((d) => d.id === r.id) : void 0;
2872
- r._id = (o == null ? void 0 : o._id) ?? U._idSeq++;
2805
+ const o = r.id ? this.nodes.find((h) => h.id === r.id) : void 0;
2806
+ r._id = (o == null ? void 0 : o._id) ?? $._idSeq++;
2873
2807
  }
2874
2808
  s[n] = { x: r.x, y: r.y, w: r.w, _id: r._id };
2875
2809
  }), this._layouts = i ? [] : this._layouts || [], this._layouts[t] = s, this;
@@ -2880,7 +2814,7 @@ class U {
2880
2814
  * @param column corresponding column index to save it under
2881
2815
  */
2882
2816
  cacheOneLayout(e, t) {
2883
- e._id = e._id ?? U._idSeq++;
2817
+ e._id = e._id ?? $._idSeq++;
2884
2818
  const i = { x: e.x, y: e.y, w: e.w, _id: e._id };
2885
2819
  (e.autoPosition || e.x === void 0) && (delete i.x, delete i.y, e.autoPosition && (i.autoPosition = !0)), this._layouts = this._layouts || [], this._layouts[t] = this._layouts[t] || [];
2886
2820
  const s = this.findCacheLayout(e, t);
@@ -2904,8 +2838,8 @@ class U {
2904
2838
  return this;
2905
2839
  }
2906
2840
  }
2907
- U._idSeq = 0;
2908
- const M = {
2841
+ $._idSeq = 0;
2842
+ const T = {
2909
2843
  alwaysShowResizeHandle: "mobile",
2910
2844
  animate: !0,
2911
2845
  auto: !0,
@@ -2936,37 +2870,37 @@ const M = {
2936
2870
  };
2937
2871
  class w {
2938
2872
  }
2939
- const I = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
2940
- class W {
2873
+ const B = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
2874
+ class G {
2941
2875
  }
2942
- function ye(a, e) {
2876
+ function pe(a, e) {
2943
2877
  a.touches.length > 1 || (a.cancelable && a.preventDefault(), u.simulateMouseEvent(a.changedTouches[0], e));
2944
2878
  }
2945
- function jt(a, e) {
2879
+ function Ft(a, e) {
2946
2880
  a.cancelable && a.preventDefault(), u.simulateMouseEvent(a, e);
2947
2881
  }
2948
- function ve(a) {
2949
- W.touchHandled || (W.touchHandled = !0, ye(a, "mousedown"));
2882
+ function me(a) {
2883
+ G.touchHandled || (G.touchHandled = !0, pe(a, "mousedown"));
2950
2884
  }
2951
- function be(a) {
2952
- W.touchHandled && ye(a, "mousemove");
2885
+ function ve(a) {
2886
+ G.touchHandled && pe(a, "mousemove");
2953
2887
  }
2954
- function we(a) {
2955
- if (!W.touchHandled)
2888
+ function ye(a) {
2889
+ if (!G.touchHandled)
2956
2890
  return;
2957
- W.pointerLeaveTimeout && (window.clearTimeout(W.pointerLeaveTimeout), delete W.pointerLeaveTimeout);
2891
+ G.pointerLeaveTimeout && (window.clearTimeout(G.pointerLeaveTimeout), delete G.pointerLeaveTimeout);
2958
2892
  const e = !!w.dragElement;
2959
- ye(a, "mouseup"), e || ye(a, "click"), W.touchHandled = !1;
2893
+ pe(a, "mouseup"), e || pe(a, "click"), G.touchHandled = !1;
2960
2894
  }
2961
- function xe(a) {
2895
+ function be(a) {
2962
2896
  a.pointerType !== "mouse" && a.target.releasePointerCapture(a.pointerId);
2963
2897
  }
2964
- function it(a) {
2965
- w.dragElement && a.pointerType !== "mouse" && jt(a, "mouseenter");
2898
+ function Qe(a) {
2899
+ w.dragElement && a.pointerType !== "mouse" && Ft(a, "mouseenter");
2966
2900
  }
2967
- function st(a) {
2968
- w.dragElement && a.pointerType !== "mouse" && (W.pointerLeaveTimeout = window.setTimeout(() => {
2969
- delete W.pointerLeaveTimeout, jt(a, "mouseleave");
2901
+ function Ze(a) {
2902
+ w.dragElement && a.pointerType !== "mouse" && (G.pointerLeaveTimeout = window.setTimeout(() => {
2903
+ delete G.pointerLeaveTimeout, Ft(a, "mouseleave");
2970
2904
  }, 10));
2971
2905
  }
2972
2906
  class Ce {
@@ -2976,15 +2910,15 @@ class Ce {
2976
2910
  /** @internal */
2977
2911
  _init() {
2978
2912
  const e = this.el = document.createElement("div");
2979
- return e.classList.add("ui-resizable-handle"), e.classList.add(`${Ce.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), I && (this.el.addEventListener("touchstart", ve), this.el.addEventListener("pointerdown", xe)), this;
2913
+ return e.classList.add("ui-resizable-handle"), e.classList.add(`${Ce.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), B && (this.el.addEventListener("touchstart", me), this.el.addEventListener("pointerdown", be)), this;
2980
2914
  }
2981
2915
  /** call this when resize handle needs to be removed and cleaned up */
2982
2916
  destroy() {
2983
- return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), I && (this.el.removeEventListener("touchstart", ve), this.el.removeEventListener("pointerdown", xe)), this.host.removeChild(this.el), delete this.el, delete this.host, this;
2917
+ return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), B && (this.el.removeEventListener("touchstart", me), this.el.removeEventListener("pointerdown", be)), this.host.removeChild(this.el), delete this.el, delete this.host, this;
2984
2918
  }
2985
2919
  /** @internal called on mouse down on us: capture move on the entire document (mouse might not stay on us) until we release the mouse */
2986
2920
  _mouseDown(e) {
2987
- this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), I && (this.el.addEventListener("touchmove", be), this.el.addEventListener("touchend", we)), e.stopPropagation(), e.preventDefault();
2921
+ this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (this.el.addEventListener("touchmove", ve), this.el.addEventListener("touchend", ye)), e.stopPropagation(), e.preventDefault();
2988
2922
  }
2989
2923
  /** @internal */
2990
2924
  _mouseMove(e) {
@@ -2993,7 +2927,7 @@ class Ce {
2993
2927
  }
2994
2928
  /** @internal */
2995
2929
  _mouseUp(e) {
2996
- this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), I && (this.el.removeEventListener("touchmove", be), this.el.removeEventListener("touchend", we)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
2930
+ this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), B && (this.el.removeEventListener("touchmove", ve), this.el.removeEventListener("touchend", ye)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
2997
2931
  }
2998
2932
  /** @internal call when keys are being pressed - use Esc to cancel */
2999
2933
  _keyEvent(e) {
@@ -3006,7 +2940,7 @@ class Ce {
3006
2940
  }
3007
2941
  }
3008
2942
  Ce.prefix = "ui-resizable-";
3009
- class Ie {
2943
+ class Me {
3010
2944
  constructor() {
3011
2945
  this._eventRegister = {};
3012
2946
  }
@@ -3067,7 +3001,7 @@ class Ie {
3067
3001
  return this._eventRegister[e](t);
3068
3002
  }
3069
3003
  }
3070
- class re extends Ie {
3004
+ class ie extends Me {
3071
3005
  // have to be public else complains for HTMLElementExtendOpt ?
3072
3006
  constructor(e, t = {}) {
3073
3007
  super(), this.el = e, this.option = t, this.rectScale = { x: 1, y: 1 }, this._ui = () => {
@@ -3168,7 +3102,7 @@ class re extends Ie {
3168
3102
  }
3169
3103
  /** @internal */
3170
3104
  _setupHelper() {
3171
- this.elOriginStyleVal = re._originStyleProp.map((i) => this.el.style[i]), this.parentOriginStylePosition = this.el.parentElement.style.position;
3105
+ this.elOriginStyleVal = ie._originStyleProp.map((i) => this.el.style[i]), this.parentOriginStylePosition = this.el.parentElement.style.position;
3172
3106
  const e = this.el.parentElement, t = u.getValuesFromTransformedElement(e);
3173
3107
  return this.rectScale = {
3174
3108
  x: t.xScale,
@@ -3177,7 +3111,7 @@ class re extends Ie {
3177
3111
  }
3178
3112
  /** @internal */
3179
3113
  _cleanHelper() {
3180
- return re._originStyleProp.forEach((e, t) => {
3114
+ return ie._originStyleProp.forEach((e, t) => {
3181
3115
  this.el.style[e] = this.elOriginStyleVal[t] || null;
3182
3116
  }), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
3183
3117
  }
@@ -3189,15 +3123,15 @@ class re extends Ie {
3189
3123
  left: this.originalRect.left,
3190
3124
  top: this.originalRect.top - this.scrolled
3191
3125
  }, r = e.clientX - i.clientX, n = this.sizeToContent ? 0 : e.clientY - i.clientY;
3192
- let o, d;
3193
- t.indexOf("e") > -1 ? s.width += r : t.indexOf("w") > -1 && (s.width -= r, s.left += r, o = !0), t.indexOf("s") > -1 ? s.height += n : t.indexOf("n") > -1 && (s.height -= n, s.top += n, d = !0);
3194
- const c = this._constrainSize(s.width, s.height, o, d);
3126
+ let o, h;
3127
+ t.indexOf("e") > -1 ? s.width += r : t.indexOf("w") > -1 && (s.width -= r, s.left += r, o = !0), t.indexOf("s") > -1 ? s.height += n : t.indexOf("n") > -1 && (s.height -= n, s.top += n, h = !0);
3128
+ const c = this._constrainSize(s.width, s.height, o, h);
3195
3129
  return Math.round(s.width) !== Math.round(c.width) && (t.indexOf("w") > -1 && (s.left += s.width - c.width), s.width = c.width), Math.round(s.height) !== Math.round(c.height) && (t.indexOf("n") > -1 && (s.top += s.height - c.height), s.height = c.height), s;
3196
3130
  }
3197
3131
  /** @internal constrain the size to the set min/max values */
3198
3132
  _constrainSize(e, t, i, s) {
3199
- const r = this.option, n = (i ? r.maxWidthMoveLeft : r.maxWidth) || Number.MAX_SAFE_INTEGER, o = r.minWidth / this.rectScale.x || e, d = (s ? r.maxHeightMoveUp : r.maxHeight) || Number.MAX_SAFE_INTEGER, c = r.minHeight / this.rectScale.y || t, l = Math.min(n, Math.max(o, e)), h = Math.min(d, Math.max(c, t));
3200
- return { width: l, height: h };
3133
+ const r = this.option, n = (i ? r.maxWidthMoveLeft : r.maxWidth) || Number.MAX_SAFE_INTEGER, o = r.minWidth / this.rectScale.x || e, h = (s ? r.maxHeightMoveUp : r.maxHeight) || Number.MAX_SAFE_INTEGER, c = r.minHeight / this.rectScale.y || t, l = Math.min(n, Math.max(o, e)), d = Math.min(h, Math.max(c, t));
3134
+ return { width: l, height: d };
3201
3135
  }
3202
3136
  /** @internal */
3203
3137
  _applyChange() {
@@ -3216,9 +3150,9 @@ class re extends Ie {
3216
3150
  return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
3217
3151
  }
3218
3152
  }
3219
- re._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
3220
- const nr = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
3221
- class ne extends Ie {
3153
+ ie._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
3154
+ const Xs = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
3155
+ class se extends Me {
3222
3156
  constructor(e, t = {}) {
3223
3157
  var r;
3224
3158
  super(), this.el = e, this.option = t, this.dragTransform = {
@@ -3238,12 +3172,12 @@ class ne extends Ie {
3238
3172
  }
3239
3173
  enable() {
3240
3174
  this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
3241
- e.addEventListener("mousedown", this._mouseDown), I && (e.addEventListener("touchstart", ve), e.addEventListener("pointerdown", xe));
3175
+ e.addEventListener("mousedown", this._mouseDown), B && (e.addEventListener("touchstart", me), e.addEventListener("pointerdown", be));
3242
3176
  }), this.el.classList.remove("ui-draggable-disabled"));
3243
3177
  }
3244
3178
  disable(e = !1) {
3245
3179
  this.disabled !== !0 && (super.disable(), this.dragEls.forEach((t) => {
3246
- t.removeEventListener("mousedown", this._mouseDown), I && (t.removeEventListener("touchstart", ve), t.removeEventListener("pointerdown", xe));
3180
+ t.removeEventListener("mousedown", this._mouseDown), B && (t.removeEventListener("touchstart", me), t.removeEventListener("pointerdown", be));
3247
3181
  }), e || this.el.classList.add("ui-draggable-disabled"));
3248
3182
  }
3249
3183
  destroy() {
@@ -3255,7 +3189,7 @@ class ne extends Ie {
3255
3189
  /** @internal call when mouse goes down before a dragstart happens */
3256
3190
  _mouseDown(e) {
3257
3191
  if (!w.mouseHandled)
3258
- return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(nr) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete w.dragElement, delete w.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), I && (e.currentTarget.addEventListener("touchmove", be), e.currentTarget.addEventListener("touchend", we)), e.preventDefault(), document.activeElement && document.activeElement.blur(), w.mouseHandled = !0), !0;
3192
+ return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Xs) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete w.dragElement, delete w.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (e.currentTarget.addEventListener("touchmove", ve), e.currentTarget.addEventListener("touchend", ye)), e.preventDefault(), document.activeElement && document.activeElement.blur(), w.mouseHandled = !0), !0;
3259
3193
  }
3260
3194
  /** @internal method to call actual drag event */
3261
3195
  _callDrag(e) {
@@ -3286,7 +3220,7 @@ class ne extends Ie {
3286
3220
  /** @internal call when the mouse gets released to drop the item at current location */
3287
3221
  _mouseUp(e) {
3288
3222
  var t, i;
3289
- if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), I && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", be, !0), e.currentTarget.removeEventListener("touchend", we, !0)), this.dragging) {
3223
+ if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), B && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", ve, !0), e.currentTarget.removeEventListener("touchend", ye, !0)), this.dragging) {
3290
3224
  delete this.dragging, (t = this.el.gridstackNode) == null || delete t._origRotate, document.removeEventListener("keydown", this._keyEvent), ((i = w.dropElement) == null ? void 0 : i.el) === this.el.parentElement && delete w.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
3291
3225
  const s = u.initEvent(e, { target: this.el, type: "dragstop" });
3292
3226
  this.option.stop && this.option.stop(s), this.triggerEvent("dragstop", s), w.dropElement && w.dropElement.drop(e);
@@ -3308,7 +3242,7 @@ class ne extends Ie {
3308
3242
  /** @internal create a clone copy (or user defined method) of the original drag item if set */
3309
3243
  _createHelper() {
3310
3244
  let e = this.el;
3311
- return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = u.cloneNode(this.el)), e.parentElement || u.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = ne.originStyleProp.map((t) => this.el.style[t]), e;
3245
+ return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = u.cloneNode(this.el)), e.parentElement || u.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = se.originStyleProp.map((t) => this.el.style[t]), e;
3312
3246
  }
3313
3247
  /** @internal set the fix position of the dragged item */
3314
3248
  _setupHelperStyle(e) {
@@ -3326,7 +3260,7 @@ class ne extends Ie {
3326
3260
  const e = (s = this.helper) == null ? void 0 : s.gridstackNode;
3327
3261
  if (!(e != null && e._isAboutToRemove) && this.dragElementOriginStyle) {
3328
3262
  const r = this.helper, n = this.dragElementOriginStyle.transition || null;
3329
- r.style.transition = this.dragElementOriginStyle.transition = "none", ne.originStyleProp.forEach((o) => r.style[o] = this.dragElementOriginStyle[o] || null), setTimeout(() => r.style.transition = n, 50);
3263
+ r.style.transition = this.dragElementOriginStyle.transition = "none", se.originStyleProp.forEach((o) => r.style[o] = this.dragElementOriginStyle[o] || null), setTimeout(() => r.style.transition = n, 50);
3330
3264
  }
3331
3265
  return delete this.dragElementOriginStyle, this;
3332
3266
  }
@@ -3368,8 +3302,8 @@ class ne extends Ie {
3368
3302
  };
3369
3303
  }
3370
3304
  }
3371
- ne.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3372
- class or extends Ie {
3305
+ se.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3306
+ class Js extends Me {
3373
3307
  constructor(e, t = {}) {
3374
3308
  super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
3375
3309
  }
@@ -3380,10 +3314,10 @@ class or extends Ie {
3380
3314
  super.off(e);
3381
3315
  }
3382
3316
  enable() {
3383
- this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), I && (this.el.addEventListener("pointerenter", it), this.el.addEventListener("pointerleave", st)));
3317
+ this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), B && (this.el.addEventListener("pointerenter", Qe), this.el.addEventListener("pointerleave", Ze)));
3384
3318
  }
3385
3319
  disable(e = !1) {
3386
- this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), I && (this.el.removeEventListener("pointerenter", it), this.el.removeEventListener("pointerleave", st)));
3320
+ this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), B && (this.el.removeEventListener("pointerenter", Qe), this.el.removeEventListener("pointerleave", Ze)));
3387
3321
  }
3388
3322
  destroy() {
3389
3323
  this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
@@ -3435,9 +3369,9 @@ class or extends Ie {
3435
3369
  };
3436
3370
  }
3437
3371
  }
3438
- class Fe {
3372
+ class He {
3439
3373
  static init(e) {
3440
- return e.ddElement || (e.ddElement = new Fe(e)), e.ddElement;
3374
+ return e.ddElement || (e.ddElement = new He(e)), e.ddElement;
3441
3375
  }
3442
3376
  constructor(e) {
3443
3377
  this.el = e;
@@ -3449,25 +3383,25 @@ class Fe {
3449
3383
  return this.ddDraggable && ["drag", "dragstart", "dragstop"].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && ["drop", "dropover", "dropout"].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && ["resizestart", "resize", "resizestop"].indexOf(e) > -1 && this.ddResizable.off(e), this;
3450
3384
  }
3451
3385
  setupDraggable(e) {
3452
- return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new ne(this.el, e), this;
3386
+ return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new se(this.el, e), this;
3453
3387
  }
3454
3388
  cleanDraggable() {
3455
3389
  return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
3456
3390
  }
3457
3391
  setupResizable(e) {
3458
- return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new re(this.el, e), this;
3392
+ return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new ie(this.el, e), this;
3459
3393
  }
3460
3394
  cleanResizable() {
3461
3395
  return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
3462
3396
  }
3463
3397
  setupDroppable(e) {
3464
- return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new or(this.el, e), this;
3398
+ return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Js(this.el, e), this;
3465
3399
  }
3466
3400
  cleanDroppable() {
3467
3401
  return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
3468
3402
  }
3469
3403
  }
3470
- class ar {
3404
+ class Qs {
3471
3405
  /**
3472
3406
  * Enable/disable/configure resizing for grid elements.
3473
3407
  *
@@ -3491,12 +3425,12 @@ class ar {
3491
3425
  r.setupResizable({ [i]: s });
3492
3426
  else {
3493
3427
  const o = r.el.gridstackNode.grid;
3494
- let d = r.el.getAttribute("gs-resize-handles") || o.opts.resizable.handles || "e,s,se";
3495
- d === "all" && (d = "n,e,s,w,se,sw,ne,nw");
3428
+ let h = r.el.getAttribute("gs-resize-handles") || o.opts.resizable.handles || "e,s,se";
3429
+ h === "all" && (h = "n,e,s,w,se,sw,ne,nw");
3496
3430
  const c = !o.opts.alwaysShowResizeHandle;
3497
3431
  r.setupResizable({
3498
3432
  ...o.opts.resizable,
3499
- handles: d,
3433
+ handles: h,
3500
3434
  autoHide: c,
3501
3435
  start: t.start,
3502
3436
  stop: t.stop,
@@ -3572,7 +3506,7 @@ class ar {
3572
3506
  /** @internal returns a list of DD elements, creating them on the fly by default unless option is to destroy or disable */
3573
3507
  _getDDElements(e, t) {
3574
3508
  const i = e.gridstack || t !== "destroy" && t !== "disable", s = u.getElements(e);
3575
- return s.length ? s.map((n) => n.ddElement || (i ? Fe.init(n) : null)).filter((n) => n) : [];
3509
+ return s.length ? s.map((n) => n.ddElement || (i ? He.init(n) : null)).filter((n) => n) : [];
3576
3510
  }
3577
3511
  }
3578
3512
  /*!
@@ -3582,8 +3516,8 @@ class ar {
3582
3516
  * Copyright (c) 2021-2025 Alain Dumesny
3583
3517
  * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
3584
3518
  */
3585
- const O = new ar();
3586
- class v {
3519
+ const k = new Qs();
3520
+ class y {
3587
3521
  /**
3588
3522
  * initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
3589
3523
  * simply return the existing instance (ignore any passed options). There is also an initAll() version that support
@@ -3600,8 +3534,8 @@ class v {
3600
3534
  static init(e = {}, t = ".grid-stack") {
3601
3535
  if (typeof document > "u")
3602
3536
  return null;
3603
- const i = v.getGridElement(t);
3604
- return i ? (i.gridstack || (i.gridstack = new v(i, u.cloneDeep(e))), i.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
3537
+ const i = y.getGridElement(t);
3538
+ return i ? (i.gridstack || (i.gridstack = new y(i, u.cloneDeep(e))), i.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
3605
3539
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.` : "GridStack.init() no grid element was passed."), null);
3606
3540
  }
3607
3541
  /**
@@ -3615,8 +3549,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3615
3549
  */
3616
3550
  static initAll(e = {}, t = ".grid-stack") {
3617
3551
  const i = [];
3618
- return typeof document > "u" || (v.getGridElements(t).forEach((s) => {
3619
- s.gridstack || (s.gridstack = new v(s, u.cloneDeep(e))), i.push(s.gridstack);
3552
+ return typeof document > "u" || (y.getGridElements(t).forEach((s) => {
3553
+ s.gridstack || (s.gridstack = new y(s, u.cloneDeep(e))), i.push(s.gridstack);
3620
3554
  }), i.length === 0 && console.error('GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
3621
3555
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)), i;
3622
3556
  }
@@ -3635,14 +3569,14 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3635
3569
  const n = i.gridstack;
3636
3570
  return t && (n.opts = { ...n.opts, ...t }), t.children !== void 0 && n.load(t.children), n;
3637
3571
  }
3638
- return (!e.classList.contains("grid-stack") || v.addRemoveCB) && (v.addRemoveCB ? i = v.addRemoveCB(e, t, !0, !0) : i = u.createDiv(["grid-stack", t.class], e)), v.init(t, i);
3572
+ return (!e.classList.contains("grid-stack") || y.addRemoveCB) && (y.addRemoveCB ? i = y.addRemoveCB(e, t, !0, !0) : i = u.createDiv(["grid-stack", t.class], e)), y.init(t, i);
3639
3573
  }
3640
3574
  /** call this method to register your engine instead of the default one.
3641
3575
  * See instead `GridStackOptions.engineClass` if you only need to
3642
3576
  * replace just one instance.
3643
3577
  */
3644
3578
  static registerEngine(e) {
3645
- v.engineClass = e;
3579
+ y.engineClass = e;
3646
3580
  }
3647
3581
  /**
3648
3582
  * @internal create placeholder DIV as needed
@@ -3650,7 +3584,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3650
3584
  */
3651
3585
  get placeholder() {
3652
3586
  if (!this._placeholder) {
3653
- this._placeholder = u.createDiv([this.opts.placeholderClass, M.itemClass, this.opts.itemClass]);
3587
+ this._placeholder = u.createDiv([this.opts.placeholderClass, T.itemClass, this.opts.itemClass]);
3654
3588
  const e = u.createDiv(["placeholder-content"], this._placeholder);
3655
3589
  this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
3656
3590
  }
@@ -3669,42 +3603,42 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3669
3603
  const s = t.columnOpts;
3670
3604
  if (s) {
3671
3605
  const l = s.breakpoints;
3672
- !s.columnWidth && !(l != null && l.length) ? delete t.columnOpts : (s.columnMax = s.columnMax || 12, (l == null ? void 0 : l.length) > 1 && l.sort((h, f) => (f.w || 0) - (h.w || 0)));
3606
+ !s.columnWidth && !(l != null && l.length) ? delete t.columnOpts : (s.columnMax = s.columnMax || 12, (l == null ? void 0 : l.length) > 1 && l.sort((d, f) => (f.w || 0) - (d.w || 0)));
3673
3607
  }
3674
3608
  const r = {
3675
- ...u.cloneDeep(M),
3676
- column: u.toNumber(e.getAttribute("gs-column")) || M.column,
3677
- minRow: i || u.toNumber(e.getAttribute("gs-min-row")) || M.minRow,
3678
- maxRow: i || u.toNumber(e.getAttribute("gs-max-row")) || M.maxRow,
3679
- staticGrid: u.toBool(e.getAttribute("gs-static")) || M.staticGrid,
3609
+ ...u.cloneDeep(T),
3610
+ column: u.toNumber(e.getAttribute("gs-column")) || T.column,
3611
+ minRow: i || u.toNumber(e.getAttribute("gs-min-row")) || T.minRow,
3612
+ maxRow: i || u.toNumber(e.getAttribute("gs-max-row")) || T.maxRow,
3613
+ staticGrid: u.toBool(e.getAttribute("gs-static")) || T.staticGrid,
3680
3614
  sizeToContent: u.toBool(e.getAttribute("gs-size-to-content")) || void 0,
3681
3615
  draggable: {
3682
- handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || M.draggable.handle
3616
+ handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || T.draggable.handle
3683
3617
  },
3684
3618
  removableOptions: {
3685
- accept: t.itemClass || M.removableOptions.accept,
3686
- decline: M.removableOptions.decline
3619
+ accept: t.itemClass || T.removableOptions.accept,
3620
+ decline: T.removableOptions.decline
3687
3621
  }
3688
3622
  };
3689
3623
  e.getAttribute("gs-animate") && (r.animate = u.toBool(e.getAttribute("gs-animate"))), t = u.defaults(t, r), this._initMargin(), this.checkDynamicColumn(), this._updateColumnVar(t), t.rtl === "auto" && (t.rtl = e.style.direction === "rtl"), t.rtl && this.el.classList.add("grid-stack-rtl");
3690
- const n = this.el.closest("." + M.itemClass), o = n == null ? void 0 : n.gridstackNode;
3624
+ const n = this.el.closest("." + T.itemClass), o = n == null ? void 0 : n.gridstackNode;
3691
3625
  if (o && (o.subGrid = this, this.parentGridNode = o, this.el.classList.add("grid-stack-nested"), o.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = t.cellHeight === "auto", this._isAutoCellHeight || t.cellHeight === "initial")
3692
3626
  this.cellHeight(void 0);
3693
3627
  else {
3694
- typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== M.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit);
3628
+ typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== T.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit);
3695
3629
  const l = t.cellHeight;
3696
3630
  delete t.cellHeight, this.cellHeight(l);
3697
3631
  }
3698
- t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = I), this._setStaticClass();
3699
- const d = t.engineClass || v.engineClass || U;
3700
- if (this.engine = new d({
3632
+ t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = B), this._setStaticClass();
3633
+ const h = t.engineClass || y.engineClass || $;
3634
+ if (this.engine = new h({
3701
3635
  column: this.getColumn(),
3702
3636
  float: t.float,
3703
3637
  maxRow: t.maxRow,
3704
3638
  onChange: (l) => {
3705
- l.forEach((h) => {
3706
- const f = h.el;
3707
- f && (h._removeDOM ? (f && f.remove(), delete h._removeDOM) : this._writePosAttr(f, h));
3639
+ l.forEach((d) => {
3640
+ const f = d.el;
3641
+ f && (d._removeDOM ? (f && f.remove(), delete d._removeDOM) : this._writePosAttr(f, d));
3708
3642
  }), this._updateContainerHeight();
3709
3643
  }
3710
3644
  }), t.auto && (this.batchUpdate(), this.engine._loading = !0, this.getGridItems().forEach((l) => this._prepareElement(l)), delete this.engine._loading, this.batchUpdate(!1)), t.children) {
@@ -3739,7 +3673,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3739
3673
  if (e.ELEMENT_NODE)
3740
3674
  return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(e);
3741
3675
  let t, i = e;
3742
- if (i.grid = this, i.el ? t = i.el : v.addRemoveCB ? t = v.addRemoveCB(this.el, e, !0, !1) : t = this.createWidgetDivs(i), !t)
3676
+ if (i.grid = this, i.el ? t = i.el : y.addRemoveCB ? t = y.addRemoveCB(this.el, e, !0, !1) : t = this.createWidgetDivs(i), !t)
3743
3677
  return;
3744
3678
  if (i = t.gridstackNode, i && t.parentElement === this.el && this.engine.nodes.find((r) => r._id === i._id))
3745
3679
  return t;
@@ -3759,11 +3693,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3759
3693
  const t = u.createDiv(["grid-stack-item", this.opts.itemClass]), i = u.createDiv(["grid-stack-item-content"], t);
3760
3694
  return u.lazyLoad(e) ? e.visibleObservable || (e.visibleObservable = new IntersectionObserver(([s]) => {
3761
3695
  var r, n;
3762
- s.isIntersecting && ((r = e.visibleObservable) == null || r.disconnect(), delete e.visibleObservable, v.renderCB(i, e), (n = e.grid) == null || n.prepareDragDrop(e.el));
3696
+ s.isIntersecting && ((r = e.visibleObservable) == null || r.disconnect(), delete e.visibleObservable, y.renderCB(i, e), (n = e.grid) == null || n.prepareDragDrop(e.el));
3763
3697
  }), window.setTimeout(() => {
3764
3698
  var s;
3765
3699
  return (s = e.visibleObservable) == null ? void 0 : s.observe(t);
3766
- })) : v.renderCB(i, e), t;
3700
+ })) : y.renderCB(i, e), t;
3767
3701
  }
3768
3702
  /**
3769
3703
  * Convert an existing gridItem element into a sub-grid with the given (optional) options, else inherit them
@@ -3775,13 +3709,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3775
3709
  * @returns newly created grid
3776
3710
  */
3777
3711
  makeSubGrid(e, t, i, s = !0) {
3778
- var p, m, y;
3712
+ var p, m, v;
3779
3713
  let r = e.gridstackNode;
3780
3714
  if (r || (r = this.makeWidget(e).gridstackNode), (p = r.subGrid) != null && p.el)
3781
3715
  return r.subGrid;
3782
3716
  let n, o = this;
3783
3717
  for (; o && !n; )
3784
- n = (m = o.opts) == null ? void 0 : m.subGridOpts, o = (y = o.parentGridNode) == null ? void 0 : y.grid;
3718
+ n = (m = o.opts) == null ? void 0 : m.subGridOpts, o = (v = o.parentGridNode) == null ? void 0 : v.grid;
3785
3719
  t = u.cloneDeep({
3786
3720
  // by default sub-grid inherit from us | parent, other than id, children, etc...
3787
3721
  ...this.opts,
@@ -3794,15 +3728,15 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3794
3728
  ...n || {},
3795
3729
  ...t || r.subGridOpts || {}
3796
3730
  }), r.subGridOpts = t;
3797
- let d;
3798
- t.column === "auto" && (d = !0, t.column = Math.max(r.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
3799
- let c = r.el.querySelector(".grid-stack-item-content"), l, h;
3800
- if (s && (this._removeDD(r.el), h = { ...r, x: 0, y: 0 }, u.removeInternalForSave(h), delete h.subGridOpts, r.content && (h.content = r.content, delete r.content), v.addRemoveCB ? l = v.addRemoveCB(this.el, h, !0, !1) : (l = u.createDiv(["grid-stack-item"]), l.appendChild(c), c = u.createDiv(["grid-stack-item-content"], r.el)), this.prepareDragDrop(r.el)), i) {
3801
- const b = d ? t.column : r.w, N = r.h + i.h, _ = r.el.style;
3802
- _.transition = "none", this.update(r.el, { w: b, h: N }), setTimeout(() => _.transition = null);
3731
+ let h;
3732
+ t.column === "auto" && (h = !0, t.column = Math.max(r.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
3733
+ let c = r.el.querySelector(".grid-stack-item-content"), l, d;
3734
+ if (s && (this._removeDD(r.el), d = { ...r, x: 0, y: 0 }, u.removeInternalForSave(d), delete d.subGridOpts, r.content && (d.content = r.content, delete r.content), y.addRemoveCB ? l = y.addRemoveCB(this.el, d, !0, !1) : (l = u.createDiv(["grid-stack-item"]), l.appendChild(c), c = u.createDiv(["grid-stack-item-content"], r.el)), this.prepareDragDrop(r.el)), i) {
3735
+ const b = h ? t.column : r.w, _ = r.h + i.h, E = r.el.style;
3736
+ E.transition = "none", this.update(r.el, { w: b, h: _ }), setTimeout(() => E.transition = null);
3803
3737
  }
3804
- const f = r.subGrid = v.addGrid(c, t);
3805
- return i != null && i._moving && (f._isTemp = !0), d && (f._autoColumn = !0), s && f.makeWidget(l, h), i && (i._moving ? window.setTimeout(() => u.simulateMouseEvent(i._event, "mouseenter", f.el), 0) : f.makeWidget(r.el, r)), this.resizeToContentCheck(!1, r), f;
3738
+ const f = r.subGrid = y.addGrid(c, t);
3739
+ return i != null && i._moving && (f._isTemp = !0), h && (f._autoColumn = !0), s && f.makeWidget(l, d), i && (i._moving ? window.setTimeout(() => u.simulateMouseEvent(i._event, "mouseenter", f.el), 0) : f.makeWidget(r.el, r)), this.resizeToContentCheck(!1, r), f;
3806
3740
  }
3807
3741
  /**
3808
3742
  * called when an item was converted into a nested grid to accommodate a dragged over item, but then item leaves - return back
@@ -3828,15 +3762,15 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3828
3762
  * NOTE2: nested grids will ALWAYS save to the container size to be in sync with parent.
3829
3763
  * @returns list of widgets or full grid option, including .children list of widgets
3830
3764
  */
3831
- save(e = !0, t = !1, i = v.saveCB, s) {
3765
+ save(e = !0, t = !1, i = y.saveCB, s) {
3832
3766
  const r = this.engine.save(e, i, s);
3833
3767
  if (r.forEach((n) => {
3834
3768
  var o;
3835
3769
  if (e && n.el && !n.subGrid && !i) {
3836
- const d = n.el.querySelector(".grid-stack-item-content");
3837
- n.content = d == null ? void 0 : d.innerHTML, n.content || delete n.content;
3770
+ const h = n.el.querySelector(".grid-stack-item-content");
3771
+ n.content = h == null ? void 0 : h.innerHTML, n.content || delete n.content;
3838
3772
  } else if (!e && !i && delete n.content, (o = n.subGrid) != null && o.el) {
3839
- const d = n.w || n.subGrid.getColumn(), c = n.subGrid.save(e, t, i, d);
3773
+ const h = n.w || n.subGrid.getColumn(), c = n.subGrid.save(e, t, i, h);
3840
3774
  n.subGridOpts = t ? c : { children: c }, delete n.subGrid;
3841
3775
  }
3842
3776
  delete n.el;
@@ -3844,7 +3778,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3844
3778
  const n = u.cloneDeep(this.opts);
3845
3779
  n.marginBottom === n.marginTop && n.marginRight === n.marginLeft && n.marginTop === n.marginRight && (n.margin = n.marginTop, delete n.marginTop, delete n.marginRight, delete n.marginBottom, delete n.marginLeft), n.rtl === (this.el.style.direction === "rtl") && (n.rtl = "auto"), this._isAutoCellHeight && (n.cellHeight = "auto"), this._autoColumn && (n.column = "auto");
3846
3780
  const o = n._alwaysShowResizeHandle;
3847
- return delete n._alwaysShowResizeHandle, o !== void 0 ? n.alwaysShowResizeHandle = o : delete n.alwaysShowResizeHandle, u.removeInternalAndSame(n, M), n.children = r, n;
3781
+ return delete n._alwaysShowResizeHandle, o !== void 0 ? n.alwaysShowResizeHandle = o : delete n.alwaysShowResizeHandle, u.removeInternalAndSame(n, T), n.children = r, n;
3848
3782
  }
3849
3783
  return r;
3850
3784
  }
@@ -3883,7 +3817,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3883
3817
  *
3884
3818
  * @see {@link http://gridstackjs.com/demo/serialization.html} for complete example
3885
3819
  */
3886
- load(e, t = v.addRemoveCB || !0) {
3820
+ load(e, t = y.addRemoveCB || !0) {
3887
3821
  e = u.cloneDeep(e);
3888
3822
  const i = this.getColumn();
3889
3823
  e.forEach((l) => {
@@ -3893,27 +3827,27 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3893
3827
  e.forEach((l) => {
3894
3828
  s = Math.max(s, (l.x || 0) + l.w);
3895
3829
  }), s > this.engine.defaultColumn && (this.engine.defaultColumn = s), s > i && (this.engine.nodes.length === 0 && this.responseLayout ? (this.engine.nodes = e, this.engine.columnChanged(s, i, this.responseLayout), e = this.engine.nodes, this.engine.nodes = [], delete this.responseLayout) : this.engine.cacheLayout(e, s, !0));
3896
- const r = v.addRemoveCB;
3897
- typeof t == "function" && (v.addRemoveCB = t);
3830
+ const r = y.addRemoveCB;
3831
+ typeof t == "function" && (y.addRemoveCB = t);
3898
3832
  const n = [];
3899
3833
  this.batchUpdate();
3900
- const o = !this.engine.nodes.length, d = o && this.opts.animate;
3901
- d && this.setAnimation(!1), !o && t && [...this.engine.nodes].forEach((h) => {
3902
- if (!h.id)
3834
+ const o = !this.engine.nodes.length, h = o && this.opts.animate;
3835
+ h && this.setAnimation(!1), !o && t && [...this.engine.nodes].forEach((d) => {
3836
+ if (!d.id)
3903
3837
  return;
3904
- u.find(e, h.id) || (v.addRemoveCB && v.addRemoveCB(this.el, h, !1, !1), n.push(h), this.removeWidget(h.el, !0, !1));
3838
+ u.find(e, d.id) || (y.addRemoveCB && y.addRemoveCB(this.el, d, !1, !1), n.push(d), this.removeWidget(d.el, !0, !1));
3905
3839
  }), this.engine._loading = !0;
3906
3840
  const c = [];
3907
3841
  return this.engine.nodes = this.engine.nodes.filter((l) => u.find(e, l.id) ? (c.push(l), !1) : !0), e.forEach((l) => {
3908
3842
  var f;
3909
- const h = u.find(c, l.id);
3910
- if (h) {
3911
- if (u.shouldSizeToContent(h) && (l.h = h.h), this.engine.nodeBoundFix(l), (l.autoPosition || l.x === void 0 || l.y === void 0) && (l.w = l.w || h.w, l.h = l.h || h.h, this.engine.findEmptyPosition(l)), this.engine.nodes.push(h), u.samePos(h, l) && this.engine.nodes.length > 1 && (this.moveNode(h, { ...l, forceCollide: !0 }), u.copyPos(l, h)), this.update(h.el, l), (f = l.subGridOpts) != null && f.children) {
3912
- const p = h.el.querySelector(".grid-stack");
3843
+ const d = u.find(c, l.id);
3844
+ if (d) {
3845
+ if (u.shouldSizeToContent(d) && (l.h = d.h), this.engine.nodeBoundFix(l), (l.autoPosition || l.x === void 0 || l.y === void 0) && (l.w = l.w || d.w, l.h = l.h || d.h, this.engine.findEmptyPosition(l)), this.engine.nodes.push(d), u.samePos(d, l) && this.engine.nodes.length > 1 && (this.moveNode(d, { ...l, forceCollide: !0 }), u.copyPos(l, d)), this.update(d.el, l), (f = l.subGridOpts) != null && f.children) {
3846
+ const p = d.el.querySelector(".grid-stack");
3913
3847
  p && p.gridstack && p.gridstack.load(l.subGridOpts.children);
3914
3848
  }
3915
3849
  } else t && this.addWidget(l);
3916
- }), delete this.engine._loading, this.engine.removedNodes = n, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, r ? v.addRemoveCB = r : delete v.addRemoveCB, d && this.setAnimation(!0, !0), this;
3850
+ }), delete this.engine._loading, this.engine.removedNodes = n, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, r ? y.addRemoveCB = r : delete y.addRemoveCB, h && this.setAnimation(!0, !0), this;
3917
3851
  }
3918
3852
  /**
3919
3853
  * use before calling a bunch of `addWidget()` to prevent un-necessary relayouts in between (more efficient)
@@ -4018,7 +3952,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4018
3952
  i = e.breakpoints[o++].c || t;
4019
3953
  }
4020
3954
  if (i !== t) {
4021
- const o = (n = e.breakpoints) == null ? void 0 : n.find((d) => d.c === i);
3955
+ const o = (n = e.breakpoints) == null ? void 0 : n.find((h) => h.c === i);
4022
3956
  return this.column(i, (o == null ? void 0 : o.layout) || e.layout), !0;
4023
3957
  }
4024
3958
  return !1;
@@ -4170,8 +4104,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4170
4104
  const i = this.el.getBoundingClientRect();
4171
4105
  let s;
4172
4106
  t ? s = { top: i.top + document.documentElement.scrollTop, left: i.left } : s = { top: this.el.offsetTop, left: this.el.offsetLeft };
4173
- const r = e.left - s.left, n = e.top - s.top, o = i.width / this.getColumn(), d = i.height / parseInt(this.el.getAttribute("gs-current-row"));
4174
- return { x: Math.floor(r / o), y: Math.floor(n / d) };
4107
+ const r = e.left - s.left, n = e.top - s.top, o = i.width / this.getColumn(), h = i.height / parseInt(this.el.getAttribute("gs-current-row"));
4108
+ return { x: Math.floor(r / o), y: Math.floor(n / h) };
4175
4109
  }
4176
4110
  /**
4177
4111
  * Returns the current number of rows, which will be at least `minRow` if set.
@@ -4229,7 +4163,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4229
4163
  * grid.makeWidget(element, {x: 0, y: 1, w: 4, h: 2});
4230
4164
  */
4231
4165
  makeWidget(e, t) {
4232
- const i = v.getElement(e);
4166
+ const i = y.getElement(e);
4233
4167
  if (!i || i.gridstackNode)
4234
4168
  return i;
4235
4169
  i.parentElement || this.el.appendChild(i), this._prepareElement(i, !0, t);
@@ -4268,11 +4202,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4268
4202
  * @param triggerEvent if `false` (quiet mode) element will not be added to removed list and no 'removed' callbacks will be called (Default? true).
4269
4203
  */
4270
4204
  removeWidget(e, t = !0, i = !0) {
4271
- return e ? (v.getElements(e).forEach((s) => {
4205
+ return e ? (y.getElements(e).forEach((s) => {
4272
4206
  if (s.parentElement && s.parentElement !== this.el)
4273
4207
  return;
4274
4208
  let r = s.gridstackNode;
4275
- r || (r = this.engine.nodes.find((n) => s === n.el)), r && (t && v.addRemoveCB && v.addRemoveCB(this.el, r, !1, !1), delete s.gridstackNode, this._removeDD(s), this.engine.removeNode(r, t, i), t && s.parentElement && s.remove());
4209
+ r || (r = this.engine.nodes.find((n) => s === n.el)), r && (t && y.addRemoveCB && y.addRemoveCB(this.el, r, !1, !1), delete s.gridstackNode, this._removeDD(s), this.engine.removeNode(r, t, i), t && s.parentElement && s.remove());
4276
4210
  }), i && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
4277
4211
  }
4278
4212
  /**
@@ -4282,7 +4216,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4282
4216
  */
4283
4217
  removeAll(e = !0, t = !0) {
4284
4218
  return this.engine.nodes.forEach((i) => {
4285
- e && v.addRemoveCB && v.addRemoveCB(this.el, i, !1, !1), delete i.el.gridstackNode, this.opts.staticGrid || this._removeDD(i.el);
4219
+ e && y.addRemoveCB && y.addRemoveCB(this.el, i, !1, !1), delete i.el.gridstackNode, this.opts.staticGrid || this._removeDD(i.el);
4286
4220
  }), this.engine.removeAll(e, t), t && this._triggerRemoveEvent(), this;
4287
4221
  }
4288
4222
  /**
@@ -4348,7 +4282,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4348
4282
  * });
4349
4283
  */
4350
4284
  update(e, t) {
4351
- return v.getElements(e).forEach((i) => {
4285
+ return y.getElements(e).forEach((i) => {
4352
4286
  var l;
4353
4287
  const s = i == null ? void 0 : i.gridstackNode;
4354
4288
  if (!s)
@@ -4357,20 +4291,20 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4357
4291
  this.engine.nodeBoundFix(r), delete r.autoPosition;
4358
4292
  const n = ["x", "y", "w", "h"];
4359
4293
  let o;
4360
- if (n.some((h) => r[h] !== void 0 && r[h] !== s[h]) && (o = {}, n.forEach((h) => {
4361
- o[h] = r[h] !== void 0 ? r[h] : s[h], delete r[h];
4294
+ if (n.some((d) => r[d] !== void 0 && r[d] !== s[d]) && (o = {}, n.forEach((d) => {
4295
+ o[d] = r[d] !== void 0 ? r[d] : s[d], delete r[d];
4362
4296
  })), !o && (r.minW || r.minH || r.maxW || r.maxH) && (o = {}), r.content !== void 0) {
4363
- const h = i.querySelector(".grid-stack-item-content");
4364
- h && h.textContent !== r.content && (s.content = r.content, v.renderCB(h, r), (l = s.subGrid) != null && l.el && (h.appendChild(s.subGrid.el), s.subGrid._updateContainerHeight())), delete r.content;
4297
+ const d = i.querySelector(".grid-stack-item-content");
4298
+ d && d.textContent !== r.content && (s.content = r.content, y.renderCB(d, r), (l = s.subGrid) != null && l.el && (d.appendChild(s.subGrid.el), s.subGrid._updateContainerHeight())), delete r.content;
4365
4299
  }
4366
- let d = !1, c = !1;
4367
- for (const h in r)
4368
- h[0] !== "_" && s[h] !== r[h] && (s[h] = r[h], d = !0, c = c || !this.opts.staticGrid && (h === "noResize" || h === "noMove" || h === "locked"));
4300
+ let h = !1, c = !1;
4301
+ for (const d in r)
4302
+ d[0] !== "_" && s[d] !== r[d] && (s[d] = r[d], h = !0, c = c || !this.opts.staticGrid && (d === "noResize" || d === "noMove" || d === "locked"));
4369
4303
  if (u.sanitizeMinMax(s), o) {
4370
- const h = o.w !== void 0 && o.w !== s.w;
4371
- this.moveNode(s, o), h && s.subGrid ? s.subGrid.onResize(this.hasAnimationCSS() ? s.w : void 0) : this.resizeToContentCheck(h, s), delete s._orig;
4304
+ const d = o.w !== void 0 && o.w !== s.w;
4305
+ this.moveNode(s, o), d && s.subGrid ? s.subGrid.onResize(this.hasAnimationCSS() ? s.w : void 0) : this.resizeToContentCheck(d, s), delete s._orig;
4372
4306
  }
4373
- (o || d) && this._writeAttr(i, s), c && this.prepareDragDrop(s.el), v.updateCB && v.updateCB(s);
4307
+ (o || h) && this._writeAttr(i, s), c && this.prepareDragDrop(s.el), y.updateCB && y.updateCB(s);
4374
4308
  }), this;
4375
4309
  }
4376
4310
  moveNode(e, t) {
@@ -4409,36 +4343,36 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4409
4343
  if (!s)
4410
4344
  return;
4411
4345
  let r = t.h ? t.h * s : e.clientHeight, n;
4412
- if (t.resizeToContentParent && (n = e.querySelector(t.resizeToContentParent)), n || (n = e.querySelector(v.resizeToContentParent)), !n)
4346
+ if (t.resizeToContentParent && (n = e.querySelector(t.resizeToContentParent)), n || (n = e.querySelector(y.resizeToContentParent)), !n)
4413
4347
  return;
4414
- const o = e.clientHeight - n.clientHeight, d = t.h ? t.h * s - o : n.clientHeight;
4348
+ const o = e.clientHeight - n.clientHeight, h = t.h ? t.h * s - o : n.clientHeight;
4415
4349
  let c;
4416
4350
  if (t.subGrid) {
4417
4351
  c = t.subGrid.getRow() * t.subGrid.getCellHeight(!0);
4418
- const m = t.subGrid.el.getBoundingClientRect(), y = e.getBoundingClientRect();
4419
- c += m.top - y.top;
4352
+ const m = t.subGrid.el.getBoundingClientRect(), v = e.getBoundingClientRect();
4353
+ c += m.top - v.top;
4420
4354
  } else {
4421
4355
  if ((p = (f = t.subGridOpts) == null ? void 0 : f.children) != null && p.length)
4422
4356
  return;
4423
4357
  {
4424
4358
  const m = n.firstElementChild;
4425
4359
  if (!m) {
4426
- console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${v.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
4360
+ console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${y.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
4427
4361
  return;
4428
4362
  }
4429
- c = m.getBoundingClientRect().height || d;
4363
+ c = m.getBoundingClientRect().height || h;
4430
4364
  }
4431
4365
  }
4432
- if (d === c)
4366
+ if (h === c)
4433
4367
  return;
4434
- r += c - d;
4368
+ r += c - h;
4435
4369
  let l = Math.ceil(r / s);
4436
- const h = Number.isInteger(t.sizeToContent) ? t.sizeToContent : 0;
4437
- h && l > h && (l = h, e.classList.add("size-to-content-max")), t.minH && l < t.minH ? l = t.minH : t.maxH && l > t.maxH && (l = t.maxH), l !== t.h && (i._ignoreLayoutsNodeChange = !0, i.moveNode(t, { h: l }), delete i._ignoreLayoutsNodeChange);
4370
+ const d = Number.isInteger(t.sizeToContent) ? t.sizeToContent : 0;
4371
+ d && l > d && (l = d, e.classList.add("size-to-content-max")), t.minH && l < t.minH ? l = t.minH : t.maxH && l > t.maxH && (l = t.maxH), l !== t.h && (i._ignoreLayoutsNodeChange = !0, i.moveNode(t, { h: l }), delete i._ignoreLayoutsNodeChange);
4438
4372
  }
4439
4373
  /** call the user resize (so they can do extra work) else our build in version */
4440
4374
  resizeToContentCBCheck(e) {
4441
- v.resizeToContentCB ? v.resizeToContentCB(e) : this.resizeToContent(e);
4375
+ y.resizeToContentCB ? y.resizeToContentCB(e) : this.resizeToContent(e);
4442
4376
  }
4443
4377
  /**
4444
4378
  * Rotate widgets by swapping their width and height. This is typically called when the user presses 'r' during dragging.
@@ -4456,14 +4390,14 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4456
4390
  * grid.rotate(widget, { left: 50, top: 30 });
4457
4391
  */
4458
4392
  rotate(e, t) {
4459
- return v.getElements(e).forEach((i) => {
4393
+ return y.getElements(e).forEach((i) => {
4460
4394
  const s = i.gridstackNode;
4461
4395
  if (!u.canBeRotated(s))
4462
4396
  return;
4463
4397
  const r = { w: s.h, h: s.w, minH: s.minW, minW: s.minH, maxH: s.maxW, maxW: s.maxH };
4464
4398
  if (t) {
4465
- const o = t.left > 0 ? Math.floor(t.left / this.cellWidth()) : 0, d = t.top > 0 ? Math.floor(t.top / this.opts.cellHeight) : 0;
4466
- r.x = s.x + o - (s.h - (d + 1)), r.y = s.y + d - o;
4399
+ const o = t.left > 0 ? Math.floor(t.left / this.cellWidth()) : 0, h = t.top > 0 ? Math.floor(t.top / this.opts.cellHeight) : 0;
4400
+ r.x = s.x + o - (s.h - (h + 1)), r.y = s.y + h - o;
4467
4401
  }
4468
4402
  Object.keys(r).forEach((o) => {
4469
4403
  r[o] === void 0 && delete r[o];
@@ -4593,7 +4527,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4593
4527
  }
4594
4528
  /** @internal */
4595
4529
  _prepareElement(e, t = !1, i) {
4596
- i = i || this._readAttr(e), e.gridstackNode = i, i.el = e, i.grid = this, i = this.engine.addNode(i, t), this._writeAttr(e, i), e.classList.add(M.itemClass, this.opts.itemClass);
4530
+ i = i || this._readAttr(e), e.gridstackNode = i, i.el = e, i.grid = this, i = this.engine.addNode(i, t), this._writeAttr(e, i), e.classList.add(T.itemClass, this.opts.itemClass);
4597
4531
  const s = u.shouldSizeToContent(i);
4598
4532
  return s ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), s && this.resizeToContentCheck(!1, i), u.lazyLoad(i) || this.prepareDragDrop(i.el), this;
4599
4533
  }
@@ -4681,7 +4615,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4681
4615
  }
4682
4616
  /** @internal */
4683
4617
  static getGridElement(e) {
4684
- return v.getElement(e);
4618
+ return y.getElement(e);
4685
4619
  }
4686
4620
  /** @internal */
4687
4621
  static getGridElements(e) {
@@ -4712,7 +4646,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4712
4646
  * // Access drag & drop functionality
4713
4647
  */
4714
4648
  static getDD() {
4715
- return O;
4649
+ return k;
4716
4650
  }
4717
4651
  /**
4718
4652
  * call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
@@ -4725,7 +4659,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4725
4659
  */
4726
4660
  static setupDragIn(e, t, i, s = document) {
4727
4661
  (t == null ? void 0 : t.pause) !== void 0 && (w.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? u.getElements(e, s) : e).forEach((n, o) => {
4728
- O.isDraggable(n) || O.dragIn(n, t), i != null && i[o] && (n.gridstackNode = i[o]);
4662
+ k.isDraggable(n) || k.dragIn(n, t), i != null && i[o] && (n.gridstackNode = i[o]);
4729
4663
  });
4730
4664
  }
4731
4665
  /**
@@ -4747,7 +4681,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4747
4681
  * grid.movable('#fixed-widget', false);
4748
4682
  */
4749
4683
  movable(e, t) {
4750
- return this.opts.staticGrid ? this : (v.getElements(e).forEach((i) => {
4684
+ return this.opts.staticGrid ? this : (y.getElements(e).forEach((i) => {
4751
4685
  const s = i.gridstackNode;
4752
4686
  s && (t ? delete s.noMove : s.noMove = !0, this.prepareDragDrop(s.el));
4753
4687
  }), this);
@@ -4768,7 +4702,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4768
4702
  * grid.resizable('#fixed-size-widget', false);
4769
4703
  */
4770
4704
  resizable(e, t) {
4771
- return this.opts.staticGrid ? this : (v.getElements(e).forEach((i) => {
4705
+ return this.opts.staticGrid ? this : (y.getElements(e).forEach((i) => {
4772
4706
  const s = i.gridstackNode;
4773
4707
  s && (t ? delete s.noResize : s.noResize = !0, this.prepareDragDrop(s.el));
4774
4708
  }), this);
@@ -4873,16 +4807,16 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4873
4807
  cancelDrag() {
4874
4808
  var t;
4875
4809
  const e = (t = this._placeholder) == null ? void 0 : t.gridstackNode;
4876
- e && (e._isExternal ? (e._isAboutToRemove = !0, this.engine.removeNode(e)) : e._isAboutToRemove && v._itemRemoving(e.el, !1), this.engine.restoreInitial());
4810
+ e && (e._isExternal ? (e._isAboutToRemove = !0, this.engine.removeNode(e)) : e._isAboutToRemove && y._itemRemoving(e.el, !1), this.engine.restoreInitial());
4877
4811
  }
4878
4812
  /** @internal removes any drag&drop present (called during destroy) */
4879
4813
  _removeDD(e) {
4880
- return O.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
4814
+ return k.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
4881
4815
  }
4882
4816
  /** @internal called to add drag over to support widgets being added externally */
4883
4817
  _setupAcceptWidget() {
4884
4818
  if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable)
4885
- return O.droppable(this.el, "destroy"), this;
4819
+ return k.droppable(this.el, "destroy"), this;
4886
4820
  let e, t;
4887
4821
  const i = (s, r, n) => {
4888
4822
  var f;
@@ -4895,28 +4829,28 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4895
4829
  const p = n.getBoundingClientRect();
4896
4830
  n.style.left = p.x + (this.dragTransform.xScale - 1) * (s.clientX - p.x) / this.dragTransform.xScale + "px", n.style.top = p.y + (this.dragTransform.yScale - 1) * (s.clientY - p.y) / this.dragTransform.yScale + "px", n.style.transformOrigin = "0px 0px";
4897
4831
  }
4898
- let { top: d, left: c } = n.getBoundingClientRect();
4832
+ let { top: h, left: c } = n.getBoundingClientRect();
4899
4833
  const l = this.el.getBoundingClientRect();
4900
- c -= l.left, d -= l.top;
4901
- const h = {
4834
+ c -= l.left, h -= l.top;
4835
+ const d = {
4902
4836
  position: {
4903
- top: d * this.dragTransform.xScale,
4837
+ top: h * this.dragTransform.xScale,
4904
4838
  left: c * this.dragTransform.yScale
4905
4839
  }
4906
4840
  };
4907
4841
  if (o._temporaryRemoved) {
4908
- if (o.x = Math.max(0, Math.round(c / t)), o.y = Math.max(0, Math.round(d / e)), delete o.autoPosition, this.engine.nodeBoundFix(o), !this.engine.willItFit(o)) {
4842
+ if (o.x = Math.max(0, Math.round(c / t)), o.y = Math.max(0, Math.round(h / e)), delete o.autoPosition, this.engine.nodeBoundFix(o), !this.engine.willItFit(o)) {
4909
4843
  if (o.autoPosition = !0, !this.engine.willItFit(o)) {
4910
- O.off(r, "drag");
4844
+ k.off(r, "drag");
4911
4845
  return;
4912
4846
  }
4913
4847
  o._willFitPos && (u.copyPos(o, o._willFitPos), delete o._willFitPos);
4914
4848
  }
4915
- this._onStartMoving(n, s, h, o, t, e);
4849
+ this._onStartMoving(n, s, d, o, t, e);
4916
4850
  } else
4917
- this._dragOrResize(n, s, h, o, t, e);
4851
+ this._dragOrResize(n, s, d, o, t, e);
4918
4852
  };
4919
- return O.droppable(this.el, {
4853
+ return k.droppable(this.el, {
4920
4854
  accept: (s) => {
4921
4855
  const r = s.gridstackNode || this._readAttr(s, !1);
4922
4856
  if ((r == null ? void 0 : r.grid) === this)
@@ -4953,9 +4887,9 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4953
4887
  o || (o = this._readAttr(n)), o._sidebarOrig = { w: o.w, h: o.h };
4954
4888
  }
4955
4889
  o.grid || (o.el || (o = { ...o }), o._isExternal = !0, n.gridstackNode = o);
4956
- const d = o.w || Math.round(n.offsetWidth / t) || 1, c = o.h || Math.round(n.offsetHeight / e) || 1;
4957
- return o.grid && o.grid !== this ? (r._gridstackNodeOrig || (r._gridstackNodeOrig = o), r.gridstackNode = o = { ...o, w: d, h: c, grid: this }, delete o.x, delete o.y, this.engine.cleanupNode(o).nodeBoundFix(o), o._initDD = o._isExternal = // DOM needs to be re-parented on a drop
4958
- o._temporaryRemoved = !0) : (o.w = d, o.h = c, o._temporaryRemoved = !0), v._itemRemoving(o.el, !1), O.on(r, "drag", i), i(s, r, n), !1;
4890
+ const h = o.w || Math.round(n.offsetWidth / t) || 1, c = o.h || Math.round(n.offsetHeight / e) || 1;
4891
+ return o.grid && o.grid !== this ? (r._gridstackNodeOrig || (r._gridstackNodeOrig = o), r.gridstackNode = o = { ...o, w: h, h: c, grid: this }, delete o.x, delete o.y, this.engine.cleanupNode(o).nodeBoundFix(o), o._initDD = o._isExternal = // DOM needs to be re-parented on a drop
4892
+ o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0), y._itemRemoving(o.el, !1), k.on(r, "drag", i), i(s, r, n), !1;
4959
4893
  }).on(this.el, "dropout", (s, r, n) => {
4960
4894
  const o = (n == null ? void 0 : n.gridstackNode) || r.gridstackNode;
4961
4895
  return o && (!o.grid || o.grid === this) && (this._leave(r, n), this._isTemp && this.removeAsSubGrid(o)), !1;
@@ -4964,17 +4898,17 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4964
4898
  const o = (n == null ? void 0 : n.gridstackNode) || r.gridstackNode;
4965
4899
  if ((o == null ? void 0 : o.grid) === this && !o._isExternal)
4966
4900
  return !1;
4967
- const d = !!this.placeholder.parentElement, c = r !== n;
4968
- this.placeholder.remove(), delete this.placeholder.gridstackNode, d && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
4901
+ const h = !!this.placeholder.parentElement, c = r !== n;
4902
+ this.placeholder.remove(), delete this.placeholder.gridstackNode, h && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
4969
4903
  const l = r._gridstackNodeOrig;
4970
- if (delete r._gridstackNodeOrig, d && (l != null && l.grid) && l.grid !== this) {
4971
- const y = l.grid;
4972
- y.engine.removeNodeFromLayoutCache(l), y.engine.removedNodes.push(l), y._triggerRemoveEvent()._triggerChangeEvent(), y.parentGridNode && !y.engine.nodes.length && y.opts.subGridDynamic && y.removeAsSubGrid();
4904
+ if (delete r._gridstackNodeOrig, h && (l != null && l.grid) && l.grid !== this) {
4905
+ const v = l.grid;
4906
+ v.engine.removeNodeFromLayoutCache(l), v.engine.removedNodes.push(l), v._triggerRemoveEvent()._triggerChangeEvent(), v.parentGridNode && !v.engine.nodes.length && v.opts.subGridDynamic && v.removeAsSubGrid();
4973
4907
  }
4974
- if (!o || (d && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp, O.off(r, "drag"), n !== r ? (n.remove(), r = n) : r.remove(), this._removeDD(r), !d))
4908
+ if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp, k.off(r, "drag"), n !== r ? (n.remove(), r = n) : r.remove(), this._removeDD(r), !h))
4975
4909
  return !1;
4976
- const h = (m = (p = o.subGrid) == null ? void 0 : p.el) == null ? void 0 : m.gridstack;
4977
- return u.copyPos(o, this._readAttr(this.placeholder)), u.removePositioningStyles(r), c && (o.content || o.subGridOpts || v.addRemoveCB) ? (delete o.el, r = this.addWidget(o)) : (this._prepareElement(r, !0, o), this.el.appendChild(r), this.resizeToContentCheck(!1, o), h && (h.parentGridNode = o), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...s, type: "dropped" }, l && l.grid ? l : void 0, o), !1;
4910
+ const d = (m = (p = o.subGrid) == null ? void 0 : p.el) == null ? void 0 : m.gridstack;
4911
+ return u.copyPos(o, this._readAttr(this.placeholder)), u.removePositioningStyles(r), c && (o.content || o.subGridOpts || y.addRemoveCB) ? (delete o.el, r = this.addWidget(o)) : (this._prepareElement(r, !0, o), this.el.appendChild(r), this.resizeToContentCheck(!1, o), d && (d.parentGridNode = o), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...s, type: "dropped" }, l && l.grid ? l : void 0, o), !1;
4978
4912
  }), this;
4979
4913
  }
4980
4914
  /** @internal mark item for removal */
@@ -4989,7 +4923,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4989
4923
  if (typeof this.opts.removable != "string")
4990
4924
  return this;
4991
4925
  const e = document.querySelector(this.opts.removable);
4992
- return e ? (!this.opts.staticGrid && !O.isDroppable(e) && O.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => v._itemRemoving(i, !0)).on(e, "dropout", (t, i) => v._itemRemoving(i, !1)), this) : this;
4926
+ return e ? (!this.opts.staticGrid && !k.isDroppable(e) && k.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => y._itemRemoving(i, !0)).on(e, "dropout", (t, i) => y._itemRemoving(i, !1)), this) : this;
4993
4927
  }
4994
4928
  /**
4995
4929
  * prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading
@@ -5004,34 +4938,34 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5004
4938
  if ((t || n) && (i._initDD && (this._removeDD(e), delete i._initDD), n && e.classList.add("ui-draggable-disabled", "ui-resizable-disabled"), !t))
5005
4939
  return this;
5006
4940
  if (!i._initDD) {
5007
- let o, d;
4941
+ let o, h;
5008
4942
  const c = (f, p) => {
5009
- this.triggerEvent(f, f.target), o = this.cellWidth(), d = this.getCellHeight(!0), this._onStartMoving(e, f, p, i, o, d);
4943
+ this.triggerEvent(f, f.target), o = this.cellWidth(), h = this.getCellHeight(!0), this._onStartMoving(e, f, p, i, o, h);
5010
4944
  }, l = (f, p) => {
5011
- this._dragOrResize(e, f, p, i, o, d);
5012
- }, h = (f) => {
4945
+ this._dragOrResize(e, f, p, i, o, h);
4946
+ }, d = (f) => {
5013
4947
  this.placeholder.remove(), delete this.placeholder.gridstackNode, delete i._moving, delete i._resizing, delete i._event, delete i._lastTried;
5014
4948
  const p = i.w !== i._orig.w, m = f.target;
5015
4949
  if (!(!m.gridstackNode || m.gridstackNode.grid !== this)) {
5016
4950
  if (i.el = m, i._isAboutToRemove) {
5017
- const y = e.gridstackNode.grid;
5018
- y._gsEventHandler[f.type] && y._gsEventHandler[f.type](f, m), y.engine.nodes.push(i), y.removeWidget(e, !0, !0);
4951
+ const v = e.gridstackNode.grid;
4952
+ v._gsEventHandler[f.type] && v._gsEventHandler[f.type](f, m), v.engine.nodes.push(i), v.removeWidget(e, !0, !0);
5019
4953
  } else
5020
4954
  u.removePositioningStyles(m), i._temporaryRemoved ? (this._writePosAttr(m, i), this.engine.addNode(i)) : this._writePosAttr(m, i), this.triggerEvent(f, m);
5021
4955
  this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), f.type === "resizestop" && (Number.isInteger(i.sizeToContent) && (i.sizeToContent = i.h), this.resizeToContentCheck(p, i));
5022
4956
  }
5023
4957
  };
5024
- O.draggable(e, {
4958
+ k.draggable(e, {
5025
4959
  start: c,
5026
- stop: h,
4960
+ stop: d,
5027
4961
  drag: l
5028
4962
  }).resizable(e, {
5029
4963
  start: c,
5030
- stop: h,
4964
+ stop: d,
5031
4965
  resize: l
5032
4966
  }), i._initDD = !0;
5033
4967
  }
5034
- return O.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
4968
+ return k.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
5035
4969
  }
5036
4970
  /** @internal handles actual drag/resize start */
5037
4971
  _onStartMoving(e, t, i, s, r, n) {
@@ -5039,8 +4973,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5039
4973
  if (this.engine.cleanNodes().beginUpdate(s), this._writePosAttr(this.placeholder, s), this.el.appendChild(this.placeholder), this.placeholder.gridstackNode = s, (o = s.grid) != null && o.el)
5040
4974
  this.dragTransform = u.getValuesFromTransformedElement(e);
5041
4975
  else if (this.placeholder && this.placeholder.closest(".grid-stack")) {
5042
- const d = this.placeholder.closest(".grid-stack");
5043
- this.dragTransform = u.getValuesFromTransformedElement(d);
4976
+ const h = this.placeholder.closest(".grid-stack");
4977
+ this.dragTransform = u.getValuesFromTransformedElement(h);
5044
4978
  } else
5045
4979
  this.dragTransform = {
5046
4980
  xScale: 1,
@@ -5049,46 +4983,46 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5049
4983
  yOffset: 0
5050
4984
  };
5051
4985
  if (s.el = this.placeholder, s._lastUiPosition = i.position, s._prevYPix = i.position.top, s._moving = t.type === "dragstart", s._resizing = t.type === "resizestart", delete s._lastTried, t.type === "dropover" && s._temporaryRemoved && (this.engine.addNode(s), s._moving = !0), this.engine.cacheRects(r, n, this.opts.marginTop, this.opts.marginRight, this.opts.marginBottom, this.opts.marginLeft), t.type === "resizestart") {
5052
- const d = this.getColumn() - s.x, c = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
5053
- O.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, d)).resizable(e, "option", "minHeight", n * Math.min(s.minH || 1, c)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, d)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, c)).resizable(e, "option", "maxHeightMoveUp", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
4986
+ const h = this.getColumn() - s.x, c = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
4987
+ k.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, h)).resizable(e, "option", "minHeight", n * Math.min(s.minH || 1, c)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, h)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, c)).resizable(e, "option", "maxHeightMoveUp", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
5054
4988
  }
5055
4989
  }
5056
4990
  /** @internal handles actual drag/resize */
5057
4991
  _dragOrResize(e, t, i, s, r, n) {
5058
4992
  const o = { ...s._orig };
5059
- let d, c = this.opts.marginLeft, l = this.opts.marginRight, h = this.opts.marginTop, f = this.opts.marginBottom;
4993
+ let h, c = this.opts.marginLeft, l = this.opts.marginRight, d = this.opts.marginTop, f = this.opts.marginBottom;
5060
4994
  const p = Math.round(n * 0.1), m = Math.round(r * 0.1);
5061
- if (c = Math.min(c, m), l = Math.min(l, m), h = Math.min(h, p), f = Math.min(f, p), t.type === "drag") {
4995
+ if (c = Math.min(c, m), l = Math.min(l, m), d = Math.min(d, p), f = Math.min(f, p), t.type === "drag") {
5062
4996
  if (s._temporaryRemoved)
5063
4997
  return;
5064
4998
  const b = i.position.top - s._prevYPix;
5065
4999
  s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && u.updateScrollPosition(e, i.position, b);
5066
- const N = i.position.left + (i.position.left > s._lastUiPosition.left ? -l : c), _ = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : h);
5067
- o.x = Math.round(N / r), o.y = Math.round(_ / n);
5000
+ const _ = i.position.left + (i.position.left > s._lastUiPosition.left ? -l : c), E = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : d);
5001
+ o.x = Math.round(_ / r), o.y = Math.round(E / n);
5068
5002
  const C = this._extraDragRow;
5069
5003
  if (this.engine.collide(s, o)) {
5070
- const D = this.getRow();
5071
- let S = Math.max(0, o.y + s.h - D);
5072
- this.opts.maxRow && D + S > this.opts.maxRow && (S = Math.max(0, this.opts.maxRow - D)), this._extraDragRow = S;
5004
+ const S = this.getRow();
5005
+ let N = Math.max(0, o.y + s.h - S);
5006
+ this.opts.maxRow && S + N > this.opts.maxRow && (N = Math.max(0, this.opts.maxRow - S)), this._extraDragRow = N;
5073
5007
  } else
5074
5008
  this._extraDragRow = 0;
5075
5009
  if (this._extraDragRow !== C && this._updateContainerHeight(), s.x === o.x && s.y === o.y)
5076
5010
  return;
5077
5011
  } else if (t.type === "resize") {
5078
- if (o.x < 0 || (u.updateScrollResize(t, e, n), o.w = Math.round((i.size.width - c) / r), o.h = Math.round((i.size.height - h) / n), s.w === o.w && s.h === o.h) || s._lastTried && s._lastTried.w === o.w && s._lastTried.h === o.h)
5012
+ if (o.x < 0 || (u.updateScrollResize(t, e, n), o.w = Math.round((i.size.width - c) / r), o.h = Math.round((i.size.height - d) / n), s.w === o.w && s.h === o.h) || s._lastTried && s._lastTried.w === o.w && s._lastTried.h === o.h)
5079
5013
  return;
5080
- const b = i.position.left + c, N = i.position.top + h;
5081
- o.x = Math.round(b / r), o.y = Math.round(N / n), d = !0;
5014
+ const b = i.position.left + c, _ = i.position.top + d;
5015
+ o.x = Math.round(b / r), o.y = Math.round(_ / n), h = !0;
5082
5016
  }
5083
5017
  s._event = t, s._lastTried = o;
5084
- const y = {
5018
+ const v = {
5085
5019
  x: i.position.left + c,
5086
- y: i.position.top + h,
5020
+ y: i.position.top + d,
5087
5021
  w: (i.size ? i.size.width : s.w * r) - c - l,
5088
- h: (i.size ? i.size.height : s.h * n) - h - f
5022
+ h: (i.size ? i.size.height : s.h * n) - d - f
5089
5023
  };
5090
- if (this.engine.moveNodeCheck(s, { ...o, cellWidth: r, cellHeight: n, rect: y, resizing: d })) {
5091
- s._lastUiPosition = i.position, this.engine.cacheRects(r, n, h, l, f, c), delete s._skipDown, d && s.subGrid && s.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
5024
+ if (this.engine.moveNodeCheck(s, { ...o, cellWidth: r, cellHeight: n, rect: v, resizing: h })) {
5025
+ s._lastUiPosition = i.position, this.engine.cacheRects(r, n, d, l, f, c), delete s._skipDown, h && s.subGrid && s.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
5092
5026
  const b = t.target;
5093
5027
  s._sidebarOrig || this._writePosAttr(b, s), this.triggerEvent(t, b);
5094
5028
  }
@@ -5107,51 +5041,51 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5107
5041
  _leave(e, t) {
5108
5042
  t = t || e;
5109
5043
  const i = t.gridstackNode;
5110
- if (!i || (t.style.transform = t.style.transformOrigin = null, O.off(e, "drag"), i._temporaryRemoved))
5044
+ if (!i || (t.style.transform = t.style.transformOrigin = null, k.off(e, "drag"), i._temporaryRemoved))
5111
5045
  return;
5112
5046
  i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e;
5113
5047
  const s = i._sidebarOrig;
5114
- i._isExternal && this.engine.cleanupNode(i), i._sidebarOrig = s, this.opts.removable === !0 && v._itemRemoving(e, !0), e._gridstackNodeOrig ? (e.gridstackNode = e._gridstackNodeOrig, delete e._gridstackNodeOrig) : i._isExternal && this.engine.restoreInitial();
5048
+ i._isExternal && this.engine.cleanupNode(i), i._sidebarOrig = s, this.opts.removable === !0 && y._itemRemoving(e, !0), e._gridstackNodeOrig ? (e.gridstackNode = e._gridstackNodeOrig, delete e._gridstackNodeOrig) : i._isExternal && this.engine.restoreInitial();
5115
5049
  }
5116
5050
  // legacy method removed
5117
5051
  commit() {
5118
- return rr(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
5052
+ return Ys(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
5119
5053
  }
5120
5054
  }
5121
- v.renderCB = (a, e) => {
5055
+ y.renderCB = (a, e) => {
5122
5056
  a && (e != null && e.content) && (a.textContent = e.content);
5123
5057
  };
5124
- v.resizeToContentParent = ".grid-stack-item-content";
5125
- v.Utils = u;
5126
- v.Engine = U;
5127
- v.GDRev = "12.3.2";
5128
- const ce = /* @__PURE__ */ new WeakMap();
5129
- function lr({ children: a }) {
5130
- const { _gridStack: { value: e, set: t }, initialOptions: i } = Be(), s = Y(/* @__PURE__ */ new Map()), r = Y(null), n = Y(i), o = j((c, l) => {
5058
+ y.resizeToContentParent = ".grid-stack-item-content";
5059
+ y.Utils = u;
5060
+ y.Engine = $;
5061
+ y.GDRev = "12.3.2";
5062
+ const le = /* @__PURE__ */ new WeakMap();
5063
+ function Zs({ children: a }) {
5064
+ const { _gridStack: { value: e, set: t }, initialOptions: i } = Le(), s = Z(/* @__PURE__ */ new Map()), r = Z(null), n = Z(i), o = q((c, l) => {
5131
5065
  if (l.id && l.grid) {
5132
- let h = ce.get(l.grid);
5133
- h || (h = /* @__PURE__ */ new Map(), ce.set(l.grid, h)), h.set(l.id, c), s.current.set(l.id, c);
5066
+ let d = le.get(l.grid);
5067
+ d || (d = /* @__PURE__ */ new Map(), le.set(l.grid, d)), d.set(l.id, c), s.current.set(l.id, c);
5134
5068
  }
5135
- }, []), d = j(() => r.current ? (v.renderCB = o, v.init(n.current, r.current)) : null, [o]);
5136
- return Je(() => {
5137
- if (!nt(i, n.current) && e)
5069
+ }, []), h = q(() => r.current ? (y.renderCB = o, y.init(n.current, r.current)) : null, [o]);
5070
+ return Ke(() => {
5071
+ if (!tt(i, n.current) && e)
5138
5072
  try {
5139
- e.removeAll(!1), e.destroy(!1), s.current.clear(), ce.delete(e), n.current = i, t(d());
5073
+ e.removeAll(!1), e.destroy(!1), s.current.clear(), le.delete(e), n.current = i, t(h());
5140
5074
  } catch (c) {
5141
5075
  console.error("Error reinitializing gridstack", c);
5142
5076
  }
5143
- }, [i, e, d, t]), Je(() => {
5077
+ }, [i, e, h, t]), Ke(() => {
5144
5078
  if (!e)
5145
5079
  try {
5146
- t(d());
5080
+ t(h());
5147
5081
  } catch (c) {
5148
5082
  console.error("Error initializing gridstack", c);
5149
5083
  }
5150
- }, [e, d, t]), g($t.Provider, {
5151
- value: te(() => ({
5084
+ }, [e, h, t]), g(It.Provider, {
5085
+ value: Et(() => ({
5152
5086
  getWidgetContainer: (c) => {
5153
5087
  if (e) {
5154
- const l = ce.get(e);
5088
+ const l = le.get(e);
5155
5089
  if (l != null && l.has(c))
5156
5090
  return l.get(c) || null;
5157
5091
  }
@@ -5164,72 +5098,72 @@ function lr({ children: a }) {
5164
5098
  })
5165
5099
  });
5166
5100
  }
5167
- const Ut = $((a, e) => {
5168
- const t = Be();
5169
- return Nt(e, () => ({
5101
+ const Gt = j((a, e) => {
5102
+ const t = Le();
5103
+ return _t(e, () => ({
5170
5104
  addWidget: t.addWidget,
5171
5105
  removeWidget: t.removeWidget,
5172
5106
  addSubGrid: t.addSubGrid,
5173
5107
  removeAll: t.removeAll
5174
5108
  }), [t]), null;
5175
5109
  });
5176
- Ut.displayName = "RefHandler";
5177
- const qt = $(({ options: a, widgets: e, onChange: t }, i) => {
5178
- const s = te(() => ({
5110
+ Gt.displayName = "RefHandler";
5111
+ const Wt = j(({ options: a, widgets: e, onChange: t }, i) => {
5112
+ const s = Et(() => ({
5179
5113
  ...a,
5180
5114
  children: e
5181
- }), [e]), r = (o, d, c) => {
5182
- let l = c[0], h = 1 / 0;
5115
+ }), [e]), r = (o, h, c) => {
5116
+ let l = c[0], d = 1 / 0;
5183
5117
  for (const f of c) {
5184
- const p = f.w - o, m = f.h - d, y = p * p + m * m;
5185
- y < h && (h = y, l = f);
5118
+ const p = f.w - o, m = f.h - h, v = p * p + m * m;
5119
+ v < d && (d = v, l = f);
5186
5120
  }
5187
5121
  return l;
5188
5122
  };
5189
- return z(er, {
5123
+ return R(Us, {
5190
5124
  initialOptions: s,
5191
- onResizeStop: (o, d) => {
5125
+ onResizeStop: (o, h) => {
5192
5126
  var f, p;
5193
- const c = d.gridstackNode;
5127
+ const c = h.gridstackNode;
5194
5128
  if (!c) return;
5195
- const l = ((f = d.gridstackNode) == null ? void 0 : f.allowedSizes) ?? [];
5129
+ const l = ((f = h.gridstackNode) == null ? void 0 : f.allowedSizes) ?? [];
5196
5130
  if (l.length === 0)
5197
5131
  return;
5198
- const h = r(c.w ?? 1, c.h ?? 1, l);
5199
- (c.w !== h.w || c.h !== h.h) && ((p = c.grid) == null || p.update(d, {
5200
- w: h.w,
5201
- h: h.h
5132
+ const d = r(c.w ?? 1, c.h ?? 1, l);
5133
+ (c.w !== d.w || c.h !== d.h) && ((p = c.grid) == null || p.update(h, {
5134
+ w: d.w,
5135
+ h: d.h
5202
5136
  }));
5203
5137
  },
5204
5138
  onChange: t,
5205
- children: [g(Ut, {
5139
+ children: [g(Gt, {
5206
5140
  ref: i
5207
- }), g(lr, {
5208
- children: g(sr, {})
5141
+ }), g(Zs, {
5142
+ children: g(Vs, {})
5209
5143
  })]
5210
5144
  });
5211
5145
  });
5212
- qt.displayName = "F0GridStack";
5213
- const jr = Te(
5146
+ Wt.displayName = "F0GridStack";
5147
+ const Or = pt(
5214
5148
  "F0GridStack",
5215
- qt
5216
- ), dr = ({ benefits: a }) => g("div", {
5149
+ Wt
5150
+ ), er = ({ benefits: a }) => g("div", {
5217
5151
  className: "flex flex-col gap-2",
5218
- children: a.map((e, t) => g(hr, {
5152
+ children: a.map((e, t) => g(tr, {
5219
5153
  text: e
5220
5154
  }, t))
5221
- }), hr = ({ text: a }) => z("div", {
5155
+ }), tr = ({ text: a }) => R("div", {
5222
5156
  className: "flex flex-row items-start gap-2",
5223
- children: [g(Wi, {
5224
- icon: $i,
5157
+ children: [g(Oi, {
5158
+ icon: Li,
5225
5159
  size: "md",
5226
5160
  className: "text-f1-icon-positive"
5227
5161
  }), g("span", {
5228
5162
  children: a
5229
5163
  })]
5230
- }), Kt = $(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: d }, c) => z("div", {
5164
+ }), $t = j(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: h }, c) => R("div", {
5231
5165
  ref: c,
5232
- className: B("bg-white flex flex-row rounded-xl border border-f1-border-secondary", s && "shadow-md"),
5166
+ className: L("bg-white flex flex-row rounded-xl border border-f1-border-secondary", s && "shadow-md"),
5233
5167
  children: [g("div", {
5234
5168
  className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
5235
5169
  children: g("img", {
@@ -5237,34 +5171,34 @@ const jr = Te(
5237
5171
  alt: "",
5238
5172
  className: "h-full w-full rounded-lg object-cover"
5239
5173
  })
5240
- }), z("div", {
5174
+ }), R("div", {
5241
5175
  className: "flex flex-col justify-center gap-8 px-8 py-5",
5242
- children: [z("div", {
5176
+ children: [R("div", {
5243
5177
  className: "flex flex-col gap-5",
5244
- children: [z("div", {
5178
+ children: [R("div", {
5245
5179
  className: "flex flex-col gap-2",
5246
- children: [z("div", {
5180
+ children: [R("div", {
5247
5181
  className: "flex flex-row items-center gap-2",
5248
- children: [r && g(_t, {
5182
+ children: [r && g(yt, {
5249
5183
  module: r
5250
5184
  }), n && g("p", {
5251
5185
  className: "text-base font-medium text-f1-foreground",
5252
5186
  children: n
5253
5187
  })]
5254
- }), (o || d) && z("div", {
5188
+ }), (o || h) && R("div", {
5255
5189
  className: "flex justify-start gap-2",
5256
- children: [o && g(Fi, {
5190
+ children: [o && g(Ai, {
5257
5191
  icon: o.icon,
5258
5192
  text: o.label
5259
- }), d && g(Gi, {
5260
- variant: d.variant || "positive",
5261
- text: d.label
5193
+ }), h && g(Ti, {
5194
+ variant: h.variant || "positive",
5195
+ text: h.label
5262
5196
  })]
5263
5197
  }), g("h2", {
5264
5198
  className: "font-bold text-xl text-f1-foreground",
5265
5199
  children: a
5266
5200
  })]
5267
- }), g(dr, {
5201
+ }), g(er, {
5268
5202
  benefits: t
5269
5203
  })]
5270
5204
  }), i && g("div", {
@@ -5273,38 +5207,38 @@ const jr = Te(
5273
5207
  })]
5274
5208
  })]
5275
5209
  }));
5276
- Kt.displayName = "ProductBlankslate";
5277
- function cr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
5278
- const [n, o] = A(a);
5279
- return K(() => {
5210
+ $t.displayName = "ProductBlankslate";
5211
+ function ir({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
5212
+ const [n, o] = M(a);
5213
+ return ce(() => {
5280
5214
  o(a);
5281
- }, [a]), g(ji, {
5215
+ }, [a]), g(Mi, {
5282
5216
  open: n,
5283
5217
  onOpenChange: (c) => {
5284
5218
  o(c), c || e();
5285
5219
  },
5286
5220
  modal: !0,
5287
- children: z(Ui, {
5221
+ children: R(Hi, {
5288
5222
  className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
5289
5223
  container: r,
5290
- children: [z("div", {
5224
+ children: [R("div", {
5291
5225
  className: "flex flex-row items-center justify-between px-4 py-4",
5292
- children: [z(qi, {
5226
+ children: [R(Bi, {
5293
5227
  className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
5294
- children: [s && g(_t, {
5228
+ children: [s && g(yt, {
5295
5229
  module: s,
5296
5230
  size: "lg"
5297
5231
  }), t]
5298
- }), g(Ki, {
5232
+ }), g(Ii, {
5299
5233
  variant: "outline",
5300
- icon: Et,
5234
+ icon: bt,
5301
5235
  onClick: e,
5302
5236
  label: "Close modal",
5303
5237
  hideLabel: !0
5304
5238
  })]
5305
- }), z(yt, {
5239
+ }), R(ft, {
5306
5240
  className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
5307
- children: [i, g(vt, {
5241
+ children: [i, g(gt, {
5308
5242
  orientation: "vertical",
5309
5243
  className: "[&_div]:bg-f1-background"
5310
5244
  })]
@@ -5312,47 +5246,47 @@ function cr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
5312
5246
  })
5313
5247
  });
5314
5248
  }
5315
- function Ur({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessage: r, successMessage: n, loadingState: o, nextSteps: d, closeLabel: c, primaryAction: l, modalTitle: h, modalModule: f, secondaryAction: p, portalContainer: m, tag: y, promoTag: b, showResponseDialog: N = !0 }) {
5316
- const [_, C] = A(a), [D, S] = A(null), [R, E] = A(!1), T = async () => {
5249
+ function Lr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessage: r, successMessage: n, loadingState: o, nextSteps: h, closeLabel: c, primaryAction: l, modalTitle: d, modalModule: f, secondaryAction: p, portalContainer: m, tag: v, promoTag: b, showResponseDialog: _ = !0 }) {
5250
+ const [E, C] = M(a), [S, N] = M(null), [P, A] = M(!1), W = async () => {
5317
5251
  if (l != null && l.onClick) {
5318
- E(!0);
5252
+ A(!0);
5319
5253
  try {
5320
- await l.onClick(), C(!1), N && S("success");
5254
+ await l.onClick(), C(!1), _ && N("success");
5321
5255
  } catch {
5322
- N && S("error");
5256
+ _ && N("error");
5323
5257
  } finally {
5324
- E(!1);
5258
+ A(!1);
5325
5259
  }
5326
5260
  }
5327
- }, L = () => {
5261
+ }, H = () => {
5328
5262
  C(!1), e == null || e();
5329
- }, G = R;
5330
- return z(oe, {
5331
- children: [g(cr, {
5332
- isOpen: _,
5333
- onClose: L,
5334
- title: h,
5263
+ }, F = P;
5264
+ return R(we, {
5265
+ children: [g(ir, {
5266
+ isOpen: E,
5267
+ onClose: H,
5268
+ title: d,
5335
5269
  module: f,
5336
5270
  portalContainer: m,
5337
5271
  children: g("div", {
5338
5272
  className: "pb-4 pl-4",
5339
- children: g(Kt, {
5273
+ children: g($t, {
5340
5274
  title: t,
5341
5275
  image: i,
5342
5276
  benefits: s,
5343
5277
  withShadow: !1,
5344
- tag: y,
5278
+ tag: v,
5345
5279
  promoTag: b,
5346
- actions: z("div", {
5280
+ actions: R("div", {
5347
5281
  className: "flex gap-3",
5348
- children: [l && g(X, {
5282
+ children: [l && g(V, {
5349
5283
  variant: l.variant,
5350
- label: G ? o.label : l.label,
5284
+ label: F ? o.label : l.label,
5351
5285
  icon: l.icon || void 0,
5352
- onClick: T,
5286
+ onClick: W,
5353
5287
  loading: l.loading,
5354
5288
  size: l.size
5355
- }), p && g(X, {
5289
+ }), p && g(V, {
5356
5290
  onClick: p.onClick,
5357
5291
  label: p.label,
5358
5292
  variant: p.variant,
@@ -5362,46 +5296,46 @@ function Ur({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
5362
5296
  })
5363
5297
  })
5364
5298
  })
5365
- }), D && N && g(Ct, {
5299
+ }), S && _ && g(wt, {
5366
5300
  open: !0,
5367
5301
  onClose: () => {
5368
- L(), S(null);
5302
+ H(), N(null);
5369
5303
  },
5370
- success: D === "success",
5304
+ success: S === "success",
5371
5305
  errorMessage: r,
5372
5306
  successMessage: n,
5373
- nextSteps: d,
5307
+ nextSteps: h,
5374
5308
  closeLabel: c,
5375
5309
  portalContainer: m
5376
5310
  })]
5377
5311
  });
5378
5312
  }
5379
- function ur({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: d = !0 }) {
5380
- const [c, l] = A(!1), h = () => {
5313
+ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: h = !0 }) {
5314
+ const [c, l] = M(!1), d = () => {
5381
5315
  l(!0), i && i();
5382
5316
  };
5383
- K(() => {
5317
+ ce(() => {
5384
5318
  n && n(!c);
5385
5319
  }, [n, c]);
5386
5320
  const f = a == null ? void 0 : a.includes(".mp4");
5387
- return g(oe, {
5388
- children: c ? null : z(Vi, {
5321
+ return g(we, {
5322
+ children: c ? null : R(Fi, {
5389
5323
  style: {
5390
5324
  width: r
5391
5325
  },
5392
5326
  className: "relative bg-f1-background p-1",
5393
- children: [z(Yi, {
5327
+ children: [R(Gi, {
5394
5328
  children: [s && g("div", {
5395
5329
  className: "absolute right-2 top-2 z-10",
5396
- children: g(X, {
5330
+ children: g(V, {
5397
5331
  variant: "ghost",
5398
- icon: Et,
5332
+ icon: bt,
5399
5333
  size: "sm",
5400
5334
  hideLabel: !0,
5401
- onClick: h,
5335
+ onClick: d,
5402
5336
  label: "Close"
5403
5337
  })
5404
- }), z("div", {
5338
+ }), R("div", {
5405
5339
  children: [g("div", {
5406
5340
  children: a && (f ? g("video", {
5407
5341
  src: a,
@@ -5415,20 +5349,20 @@ function ur({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
5415
5349
  alt: e,
5416
5350
  className: "h-full w-full rounded-md"
5417
5351
  }))
5418
- }), z("div", {
5352
+ }), R("div", {
5419
5353
  className: "flex flex-col gap-[2px] p-3",
5420
- children: [g(Ye, {
5354
+ children: [g(Ue, {
5421
5355
  className: "text-lg font-medium",
5422
5356
  children: e
5423
- }), g(Ye, {
5357
+ }), g(Ue, {
5424
5358
  className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
5425
5359
  children: t
5426
5360
  })]
5427
5361
  })]
5428
5362
  })]
5429
- }), o && g(Xi, {
5363
+ }), o && g(Wi, {
5430
5364
  className: "p-3",
5431
- children: o.map((p) => p.type === "upsell" ? g(Rt, {
5365
+ children: o.map((p) => p.type === "upsell" ? g(xt, {
5432
5366
  label: p.label,
5433
5367
  onRequest: p.onClick,
5434
5368
  errorMessage: p.errorMessage,
@@ -5436,9 +5370,9 @@ function ur({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
5436
5370
  loadingState: p.loadingState,
5437
5371
  nextSteps: p.nextSteps,
5438
5372
  closeLabel: p.closeLabel,
5439
- showConfirmation: d && p.showConfirmation,
5373
+ showConfirmation: h && p.showConfirmation,
5440
5374
  variant: p.variant
5441
- }, p.label) : g(X, {
5375
+ }, p.label) : g(V, {
5442
5376
  label: p.label,
5443
5377
  onClick: p.onClick,
5444
5378
  variant: p.variant
@@ -5447,28 +5381,28 @@ function ur({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
5447
5381
  })
5448
5382
  });
5449
5383
  }
5450
- const fr = $(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
5451
- const r = (d) => d.variant === "promote" ? g(Rt, {
5452
- label: d.label,
5384
+ const rr = j(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
5385
+ const r = (h) => h.variant === "promote" ? g(xt, {
5386
+ label: h.label,
5453
5387
  onRequest: async () => {
5454
- await d.onClick();
5388
+ await h.onClick();
5455
5389
  },
5456
- errorMessage: d.errorMessage,
5457
- successMessage: d.successMessage,
5458
- loadingState: d.loadingState,
5459
- nextSteps: d.nextSteps,
5460
- closeLabel: d.closeLabel,
5461
- showIcon: d.showIcon,
5462
- showConfirmation: d.showConfirmation,
5463
- variant: d.variant
5464
- }) : g(X, {
5465
- onClick: d.onClick,
5466
- label: d.label,
5467
- variant: d.variant || "default",
5390
+ errorMessage: h.errorMessage,
5391
+ successMessage: h.successMessage,
5392
+ loadingState: h.loadingState,
5393
+ nextSteps: h.nextSteps,
5394
+ closeLabel: h.closeLabel,
5395
+ showIcon: h.showIcon,
5396
+ showConfirmation: h.showConfirmation,
5397
+ variant: h.variant
5398
+ }) : g(V, {
5399
+ onClick: h.onClick,
5400
+ label: h.label,
5401
+ variant: h.variant || "default",
5468
5402
  size: "md",
5469
- icon: d.icon
5403
+ icon: h.icon
5470
5404
  }), n = (e == null ? void 0 : e.variant) !== "promote" ? e : void 0, o = (t == null ? void 0 : t.variant) !== "promote" ? t : void 0;
5471
- return z(Ji, {
5405
+ return R($i, {
5472
5406
  ref: s,
5473
5407
  ...i,
5474
5408
  primaryAction: n,
@@ -5476,47 +5410,47 @@ const fr = $(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
5476
5410
  children: [(e == null ? void 0 : e.variant) === "promote" && r(e), (t == null ? void 0 : t.variant) === "promote" && r(t)]
5477
5411
  });
5478
5412
  });
5479
- fr.displayName = "UpsellingBanner";
5480
- function qr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s = "md", showIcon: r = !0, side: n = "right", align: o = "center", icon: d = Zi, mediaUrl: c, title: l, description: h, width: f = "300px", trackVisibility: p, actions: m, onClick: y, hideLabel: b = !1 }) {
5481
- const [N, _] = A(!1), [C, D] = A(null), [S, R] = A(null), E = (k) => {
5482
- e(k), y && y();
5483
- }, T = async (k) => {
5484
- if (k.type === "upsell") {
5485
- R(k);
5413
+ rr.displayName = "UpsellingBanner";
5414
+ function Mr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s = "md", showIcon: r = !0, side: n = "right", align: o = "center", icon: h = ji, mediaUrl: c, title: l, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: v, hideLabel: b = !1 }) {
5415
+ const [_, E] = M(!1), [C, S] = M(null), [N, P] = M(null), A = (D) => {
5416
+ e(D), v && v();
5417
+ }, W = async (D) => {
5418
+ if (D.type === "upsell") {
5419
+ P(D);
5486
5420
  try {
5487
- await k.onClick(), k.showConfirmation && (_(!0), D("success"));
5421
+ await D.onClick(), D.showConfirmation && (E(!0), S("success"));
5488
5422
  } catch {
5489
- _(!0), D("error");
5423
+ E(!0), S("error");
5490
5424
  }
5491
5425
  }
5492
- }, L = () => {
5493
- D(null), _(!1), R(null), e(!1);
5494
- }, G = a && !N, x = m == null ? void 0 : m.map((k) => k.type === "upsell" ? {
5495
- ...k,
5496
- onClick: () => T(k)
5497
- } : k);
5498
- return z(oe, {
5499
- children: [z(gt, {
5500
- open: G,
5501
- onOpenChange: E,
5502
- children: [g(pt, {
5426
+ }, H = () => {
5427
+ S(null), E(!1), P(null), e(!1);
5428
+ }, F = a && !_, x = m == null ? void 0 : m.map((D) => D.type === "upsell" ? {
5429
+ ...D,
5430
+ onClick: () => W(D)
5431
+ } : D);
5432
+ return R(we, {
5433
+ children: [R(dt, {
5434
+ open: F,
5435
+ onOpenChange: A,
5436
+ children: [g(ct, {
5503
5437
  asChild: !0,
5504
- children: g(X, {
5438
+ children: g(V, {
5505
5439
  variant: i,
5506
5440
  label: t,
5507
5441
  size: s,
5508
- icon: r ? d : void 0,
5442
+ icon: r ? h : void 0,
5509
5443
  onClick: () => e(a),
5510
5444
  hideLabel: b
5511
5445
  })
5512
- }), g(mt, {
5446
+ }), g(ut, {
5513
5447
  side: n,
5514
5448
  align: o,
5515
5449
  className: "w-fit border-none bg-transparent p-2 shadow-none",
5516
- children: g(ur, {
5450
+ children: g(sr, {
5517
5451
  mediaUrl: c,
5518
5452
  title: l,
5519
- description: h,
5453
+ description: d,
5520
5454
  onClose: () => e(!1),
5521
5455
  dismissible: !1,
5522
5456
  width: f,
@@ -5525,57 +5459,57 @@ function qr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
5525
5459
  showConfirmation: !1
5526
5460
  })
5527
5461
  })]
5528
- }), (S == null ? void 0 : S.type) === "upsell" && S.showConfirmation && C && g(Ct, {
5462
+ }), (N == null ? void 0 : N.type) === "upsell" && N.showConfirmation && C && g(wt, {
5529
5463
  open: !0,
5530
- onClose: L,
5464
+ onClose: H,
5531
5465
  success: C === "success",
5532
- errorMessage: S.errorMessage,
5533
- successMessage: S.successMessage,
5534
- nextSteps: S.nextSteps,
5535
- closeLabel: S.closeLabel,
5466
+ errorMessage: N.errorMessage,
5467
+ successMessage: N.successMessage,
5468
+ nextSteps: N.nextSteps,
5469
+ closeLabel: N.closeLabel,
5536
5470
  portalContainer: null
5537
5471
  })]
5538
5472
  });
5539
5473
  }
5540
- const gr = _e(null), pr = ({ children: a, fullScreen: e = !0 }) => {
5541
- const t = Y(null), [i, s] = A(t.current);
5542
- return ls(() => {
5474
+ const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
5475
+ const t = Z(null), [i, s] = M(t.current);
5476
+ return es(() => {
5543
5477
  s(t.current);
5544
- }, []), g(gr.Provider, {
5478
+ }, []), g(nr.Provider, {
5545
5479
  value: {
5546
5480
  element: i
5547
5481
  },
5548
5482
  children: g("div", {
5549
5483
  ref: t,
5550
5484
  id: "f0-layout",
5551
- className: B({
5485
+ className: L({
5552
5486
  "flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": e
5553
5487
  }),
5554
5488
  children: a
5555
5489
  })
5556
5490
  });
5557
- }, mr = ({ children: a }) => g(as, {
5491
+ }, ar = ({ children: a }) => g(Zi, {
5558
5492
  reducedMotion: "user",
5559
5493
  children: a
5560
- }), Kr = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: d, showExperimentalWarnings: c = !1 }) => g(mr, {
5561
- children: g(Qi, {
5494
+ }), Hr = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: h, showExperimentalWarnings: c = !1 }) => g(ar, {
5495
+ children: g(Ui, {
5562
5496
  isDev: o,
5563
5497
  showExperimentalWarnings: c,
5564
- children: g(es, {
5498
+ children: g(qi, {
5565
5499
  ...n,
5566
- children: g(ts, {
5500
+ children: g(Ki, {
5567
5501
  ...r,
5568
- children: g(is, {
5502
+ children: g(Vi, {
5569
5503
  ...t,
5570
- children: g(pr, {
5504
+ children: g(or, {
5571
5505
  ...e,
5572
- children: g(ss, {
5573
- children: g(rs, {
5506
+ children: g(Yi, {
5507
+ children: g(Xi, {
5574
5508
  initiallyEnabled: i,
5575
- children: g(ns, {
5509
+ children: g(Ji, {
5576
5510
  ...s,
5577
- children: g(os, {
5578
- handler: d,
5511
+ children: g(Qi, {
5512
+ handler: h,
5579
5513
  children: a
5580
5514
  })
5581
5515
  })
@@ -5586,106 +5520,106 @@ const gr = _e(null), pr = ({ children: a, fullScreen: e = !0 }) => {
5586
5520
  })
5587
5521
  })
5588
5522
  })
5589
- }), rt = (a) => `datacollection-${a}`, Vr = {
5523
+ }), et = (a) => `datacollection-${a}`, Br = {
5590
5524
  get: async (a) => JSON.parse(
5591
- localStorage.getItem(rt(a)) ?? "{}"
5525
+ localStorage.getItem(et(a)) ?? "{}"
5592
5526
  ),
5593
5527
  set: async (a, e) => {
5594
- localStorage.setItem(rt(a), JSON.stringify(e));
5528
+ localStorage.setItem(et(a), JSON.stringify(e));
5595
5529
  }
5596
5530
  };
5597
5531
  export {
5598
- Cr as AreaChart,
5599
- Jr as Await,
5600
- Rr as BarChart,
5601
- Nr as CategoryBarChart,
5602
- Pr as ComboChart,
5603
- Zr as DndProvider,
5604
- Qr as EmojiImage,
5605
- en as F0Avatar,
5606
- tn as F0AvatarAlert,
5607
- sn as F0AvatarCompany,
5608
- rn as F0AvatarDate,
5609
- nn as F0AvatarEmoji,
5610
- on as F0AvatarFile,
5611
- an as F0AvatarIcon,
5612
- ln as F0AvatarList,
5613
- _t as F0AvatarModule,
5614
- dn as F0AvatarPerson,
5615
- hn as F0AvatarTeam,
5616
- X as F0Button,
5617
- cn as F0ButtonDropdown,
5618
- un as F0ButtonToggle,
5619
- fn as F0Card,
5620
- gn as F0Checkbox,
5621
- Br as F0ChipList,
5622
- Fr as F0DatePicker,
5623
- pn as F0EventCatcherProvider,
5624
- jr as F0GridStack,
5625
- Ks as F0Heading,
5626
- Wi as F0Icon,
5627
- mn as F0Link,
5628
- Kr as F0Provider,
5629
- yn as F0TagAlert,
5630
- vn as F0TagBalance,
5631
- bn as F0TagCompany,
5632
- wn as F0TagDot,
5633
- xn as F0TagList,
5634
- _n as F0TagPerson,
5635
- Fi as F0TagRaw,
5636
- Gi as F0TagStatus,
5637
- En as F0TagTeam,
5638
- Vs as F0Text,
5639
- Cn as GROUP_ID_SYMBOL,
5640
- $r as HomeLayout,
5641
- Dr as LineChart,
5642
- Rn as OneFilterPicker,
5643
- Sr as PieChart,
5644
- rs as PrivacyModeProvider,
5645
- Kt as ProductBlankslate,
5646
- Nn as ProductCard,
5647
- Ur as ProductModal,
5648
- ur as ProductWidget,
5649
- kr as ProgressBarChart,
5650
- Gr as StandardLayout,
5651
- Dn as TagCounter,
5652
- Wr as TwoColumnLayout,
5653
- Ct as UpsellRequestResponseDialog,
5654
- fr as UpsellingBanner,
5655
- Rt as UpsellingButton,
5656
- qr as UpsellingPopover,
5657
- zr as VerticalBarChart,
5658
- _r as avatarVariants,
5659
- Sn as buildTranslations,
5660
- Lr as buttonDropdownSizes,
5661
- Or as buttonDropdownVariants,
5662
- Tr as buttonSizes,
5663
- Mr as buttonToggleSizes,
5664
- Ar as buttonVariants,
5665
- zn as createAtlaskitDriver,
5666
- kn as createDataSourceDefinition,
5667
- Vr as dataCollectionLocalStorageHandler,
5668
- Ir as datepickerSizes,
5669
- xr as defaultTranslations,
5670
- Te as experimental,
5671
- Pn as getAnimationVariants,
5672
- An as getDataSourcePaginationType,
5673
- Tn as getEmojiLabel,
5674
- On as isInfiniteScrollPagination,
5675
- Ln as isPageBasedPagination,
5676
- Hr as linkVariants,
5677
- Mn as modules,
5678
- Hn as predefinedPresets,
5679
- Bn as tagDotColors,
5680
- In as useData,
5681
- Fn as useDataSource,
5682
- Gn as useDndEvents,
5683
- Wn as useDraggable,
5684
- $n as useDroppableList,
5685
- jn as useEmojiConfetti,
5686
- Un as useGroups,
5687
- qn as usePrivacyMode,
5688
- Kn as useReducedMotion,
5689
- Vn as useSelectable,
5690
- Yn as useXRay
5532
+ pr as AreaChart,
5533
+ Gr as Await,
5534
+ mr as BarChart,
5535
+ vr as CategoryBarChart,
5536
+ _r as ComboChart,
5537
+ Wr as DndProvider,
5538
+ $r as EmojiImage,
5539
+ jr as F0Avatar,
5540
+ Ur as F0AvatarAlert,
5541
+ qr as F0AvatarCompany,
5542
+ Kr as F0AvatarDate,
5543
+ Vr as F0AvatarEmoji,
5544
+ Yr as F0AvatarFile,
5545
+ Xr as F0AvatarIcon,
5546
+ Jr as F0AvatarList,
5547
+ yt as F0AvatarModule,
5548
+ Qr as F0AvatarPerson,
5549
+ Zr as F0AvatarTeam,
5550
+ V as F0Button,
5551
+ en as F0ButtonDropdown,
5552
+ tn as F0ButtonToggle,
5553
+ sn as F0Card,
5554
+ rn as F0Checkbox,
5555
+ zr as F0ChipList,
5556
+ nn as F0DatePicker,
5557
+ on as F0EventCatcherProvider,
5558
+ Or as F0GridStack,
5559
+ Bs as F0Heading,
5560
+ Oi as F0Icon,
5561
+ an as F0Link,
5562
+ Hr as F0Provider,
5563
+ ln as F0TagAlert,
5564
+ hn as F0TagBalance,
5565
+ dn as F0TagCompany,
5566
+ cn as F0TagDot,
5567
+ un as F0TagList,
5568
+ fn as F0TagPerson,
5569
+ Ai as F0TagRaw,
5570
+ Ti as F0TagStatus,
5571
+ gn as F0TagTeam,
5572
+ Is as F0Text,
5573
+ pn as GROUP_ID_SYMBOL,
5574
+ Tr as HomeLayout,
5575
+ yr as LineChart,
5576
+ mn as OneFilterPicker,
5577
+ br as PieChart,
5578
+ Xi as PrivacyModeProvider,
5579
+ $t as ProductBlankslate,
5580
+ vn as ProductCard,
5581
+ Lr as ProductModal,
5582
+ sr as ProductWidget,
5583
+ xr as ProgressBarChart,
5584
+ Pr as StandardLayout,
5585
+ yn as TagCounter,
5586
+ Ar as TwoColumnLayout,
5587
+ wt as UpsellRequestResponseDialog,
5588
+ rr as UpsellingBanner,
5589
+ xt as UpsellingButton,
5590
+ Mr as UpsellingPopover,
5591
+ wr as VerticalBarChart,
5592
+ fr as avatarVariants,
5593
+ bn as buildTranslations,
5594
+ Rr as buttonDropdownSizes,
5595
+ Nr as buttonDropdownVariants,
5596
+ Er as buttonSizes,
5597
+ Dr as buttonToggleSizes,
5598
+ Cr as buttonVariants,
5599
+ wn as createAtlaskitDriver,
5600
+ xn as createDataSourceDefinition,
5601
+ Br as dataCollectionLocalStorageHandler,
5602
+ kr as datepickerSizes,
5603
+ ur as defaultTranslations,
5604
+ pt as experimental,
5605
+ _n as getAnimationVariants,
5606
+ Cn as getDataSourcePaginationType,
5607
+ En as getEmojiLabel,
5608
+ Nn as isInfiniteScrollPagination,
5609
+ Rn as isPageBasedPagination,
5610
+ Sr as linkVariants,
5611
+ Dn as modules,
5612
+ Sn as predefinedPresets,
5613
+ zn as tagDotColors,
5614
+ kn as useData,
5615
+ Pn as useDataSource,
5616
+ An as useDndEvents,
5617
+ Tn as useDraggable,
5618
+ On as useDroppableList,
5619
+ Ln as useEmojiConfetti,
5620
+ Mn as useGroups,
5621
+ Hn as usePrivacyMode,
5622
+ Bn as useReducedMotion,
5623
+ In as useSelectable,
5624
+ Fn as useXRay
5691
5625
  };