@factorialco/f0-react 1.279.2 → 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 $e, a as qt, f as Re, L as Q, b as Kt, A as Vt, i as de, c as it, d as st, E as Yt, g as ue, e as Xt, h as Jt, C as Zt, j as Qt, k as V, l as rt, u as ei, G as ti, m as ii, n as je, o as si, p as nt, q as ri, B as ot, X as at, Y as Se, r as ni, s as lt, 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 Ue, I as gi, J as ee, K as Ne, M as pi, N as mi, O as yi, P as ht, Q as j, R as I, T as vi, U as bi, V as wi, W as _i, Z as xi, _ as Ei, $ as Ci, a0 as dt, a1 as Ri, a2 as fe, a3 as ct, a4 as ut, a5 as Ni, a6 as ft, a7 as gt, a8 as pt, a9 as Ae, aa as Di, ab as mt, ac as Si, ad as zi, ae as ki, af as qe, ag as De, ah as Pi, ai as Ai, aj as yt, ak as Oi, al as Ti, am as vt, an as Li, ao as Mi, ap as Hi, aq as Bi, ar as Ii, as as Fi, at as Gi, au as Wi, av as bt, aw as X, ax as wt, ay as $i, az as ji, aA as Ke, aB as Ui, aC as _t, aD as qi, aE as Ki, aF as Vi, aG as Yi, aH as Xi, aI as Ji, aJ as Zi, aK as Qi, aL as es, aM as ts, aN as is, aO as ss } from "./hooks-CfFQMvCM.js";
2
- import { be as $r, br as jr, bA as Ur, aP as qr, aQ as Kr, aR as Vr, aS as Yr, aT as Xr, aU as Jr, aV as Zr, aW as Qr, aY as en, aZ as tn, a_ as sn, a$ as rn, b0 as nn, b1 as on, bw as an, b3 as ln, b5 as hn, b6 as dn, b7 as cn, b8 as un, bb as fn, bc as gn, bd as pn, bg as mn, b4 as yn, bf as vn, ba as bn, bx as wn, bq as _n, bl as xn, bo as En, bk as Cn, bB as Rn, bj as Nn, bi as Dn, aX as Sn, b2 as zn, b9 as kn, bh as Pn, bm as An, bs as On, bt as Tn, bu as Ln, bC as Mn, bn as Hn, bv as Bn, bz as In, bp as Fn, by as Gn } from "./hooks-CfFQMvCM.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 rs, useState as A, forwardRef as K, useEffect as q, useMemo as te, useCallback as W, useRef as Y, useImperativeHandle as xt, Children as ns, createContext as xe, useContext as Et, useLayoutEffect as Ve } from "react";
6
- import { createPortal as os } from "react-dom";
7
- import './f0.css';const as = {
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 as = {
106
106
  jo: "Jordan",
107
107
  jp: "Japan",
108
108
  ke: "Kenya"
109
- }, fr = {
110
- countries: as,
109
+ }, ur = {
110
+ countries: rs,
111
111
  approvals: {
112
112
  history: "Approval history",
113
113
  statuses: {
@@ -360,124 +360,174 @@ import './f0.css';const as = {
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
- }, gr = [
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 ls(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 hs(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, Nt(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 ds(a, e, t) {
390
- return e && hs(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 cs(a, e, t) {
393
- return e = ge(e), us(a, Ct() ? 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 us(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 fs(a);
450
+ return ds(a);
401
451
  }
402
- function fs(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 Ct() {
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 (Ct = 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 gs(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 && ze(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 ze(a, e) {
428
- return ze = 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
- }, ze(a, e);
480
+ }, Se(a, e);
431
481
  }
432
482
  function Rt(a, e, t) {
433
- return e = Nt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
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 Nt(a) {
436
- var e = ps(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 ps(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 ls(this, e), cs(this, e, arguments);
501
+ return ns(this, e), ls(this, e, arguments);
452
502
  }
453
- return gs(e, a), ds(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
- Rt(Ee, "displayName", "ZAxis");
461
- Rt(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 ms = ["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 ys(a, e) {
528
+ function gs(a, e) {
479
529
  if (a == null) return {};
480
- var t = vs(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 ys(a, e) {
485
535
  }
486
536
  return t;
487
537
  }
488
- function vs(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 vs(a, e) {
495
545
  }
496
546
  return t;
497
547
  }
498
- function bs(a) {
499
- var e = a.option, t = a.isActive, i = ys(a, ms);
500
- return typeof e == "string" ? /* @__PURE__ */ P.createElement($e, ie({
501
- option: /* @__PURE__ */ P.createElement(qt, 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($e, 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 Ye(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,94 +587,94 @@ function Ye(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 ? Ye(Object(t), !0).forEach(function(i) {
593
+ e % 2 ? Ve(Object(t), !0).forEach(function(i) {
544
594
  U(a, i, t[i]);
545
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ye(Object(t)).forEach(function(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 ws(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 Xe(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, St(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 _s(a, e, t) {
562
- return e && Xe(a.prototype, e), t && Xe(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 xs(a, e, t) {
565
- return e = pe(e), Es(a, Dt() ? 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 Es(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 Cs(a);
622
+ return xs(a);
573
623
  }
574
- function Cs(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 Dt() {
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 (Dt = 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 Rs(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 && ke(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 ke(a, e) {
600
- return ke = 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
- }, ke(a, e);
652
+ }, ze(a, e);
603
653
  }
604
654
  function U(a, e, t) {
605
- return e = St(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
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 St(a) {
608
- var e = Ns(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 Ns(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
- ws(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 = xs(this, e, [].concat(s)), U(t, "state", {
677
+ return t = bs(this, e, [].concat(s)), U(t, "state", {
628
678
  isAnimationFinished: !1
629
679
  }), U(t, "handleAnimationEnd", function() {
630
680
  t.setState({
@@ -636,18 +686,18 @@ var ae = /* @__PURE__ */ function(a) {
636
686
  });
637
687
  }), U(t, "id", ei("recharts-scatter-")), t;
638
688
  }
639
- return Rs(e, a), _s(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, h = r.activeIndex, c = Re(this.props, !1);
692
+ var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c = Ee(this.props, !1);
643
693
  return i.map(function(l, d) {
644
- var f = h === d, p = f ? o : n, m = H(H({}, c), l);
645
- return /* @__PURE__ */ P.createElement(Q, se({
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
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)
648
698
  }, Kt(s.props, l, d), {
649
699
  role: "img"
650
- }), /* @__PURE__ */ P.createElement(bs, se({
700
+ }), /* @__PURE__ */ z.createElement(ms, te({
651
701
  option: p,
652
702
  isActive: f,
653
703
  key: "symbol-".concat(d)
@@ -658,7 +708,7 @@ var ae = /* @__PURE__ */ function(a) {
658
708
  key: "renderSymbolsWithAnimation",
659
709
  value: function() {
660
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;
661
- return /* @__PURE__ */ P.createElement(Vt, {
711
+ return /* @__PURE__ */ z.createElement(Vt, {
662
712
  begin: o,
663
713
  duration: h,
664
714
  isActive: n,
@@ -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 = d && d[b];
678
- if (N) {
679
- var x = de(N.cx, y.cx), C = de(N.cy, y.cy), D = de(N.size, y.size);
680
- return H(H({}, y), {}, {
681
- cx: x(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 = de(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 || !it(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, h = s.children, c = st(h, Yt);
756
+ var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = it(h, Yt);
707
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, {
759
+ return /* @__PURE__ */ z.cloneElement(l, {
710
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, h = Re(this.props, !1), c = Re(r, !1), l, d;
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,26 +785,26 @@ var ae = /* @__PURE__ */ function(a) {
735
785
  };
736
786
  });
737
787
  else if (n === "fitting") {
738
- var f = Xt(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 x = H(H(H({}, h), {}, {
799
+ var E = O(O(O({}, h), {}, {
750
800
  fill: "none",
751
801
  stroke: h && h.fill
752
802
  }, c), {}, {
753
803
  points: l
754
804
  });
755
- return /* @__PURE__ */ P.isValidElement(r) ? d = /* @__PURE__ */ P.cloneElement(r, x) : Jt(r) ? d = r(x) : d = /* @__PURE__ */ P.createElement(Zt, se({}, x, {
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
810
  }, d);
@@ -762,23 +812,23 @@ var ae = /* @__PURE__ */ function(a) {
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, h = i.xAxis, c = i.yAxis, l = i.left, d = 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 = Qt("recharts-scatter", o), x = h && h.allowDataOverflow, C = c && c.allowDataOverflow, D = x || 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
- }, x || C ? /* @__PURE__ */ P.createElement("defs", null, /* @__PURE__ */ P.createElement("clipPath", {
773
- id: "clipPath-".concat(S)
774
- }, /* @__PURE__ */ P.createElement("rect", {
775
- x: x ? l : l - 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,
776
826
  y: C ? d : d - p / 2,
777
- width: x ? f : f * 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) && rt.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
- }(rs);
796
- U(ae, "displayName", "Scatter");
797
- U(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,
@@ -809,90 +859,90 @@ U(ae, "defaultProps", {
809
859
  animationDuration: 400,
810
860
  animationEasing: "linear"
811
861
  });
812
- U(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, h = a.offset, c = s.props.tooltipType, l = st(s.props.children, ii), d = 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, x = r.map(function(C, D) {
814
- var S = ue(C, d), R = ue(C, f), E = !V(p) && ue(C, p) || "-", O = [{
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
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 !== "-" && O.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 = je({
887
+ var H = $e({
838
888
  axis: e,
839
889
  ticks: n,
840
890
  bandSize: b,
841
891
  entry: C,
842
- index: D,
892
+ index: S,
843
893
  dataKey: d
844
- }), F = je({
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
- }), _ = E !== "-" ? i.scale(E) : y, k = Math.sqrt(Math.max(_, 0) / Math.PI);
852
- return H(H({}, C), {}, {
853
- cx: L,
901
+ }), x = A !== "-" ? i.scale(A) : v, D = Math.sqrt(Math.max(x, 0) / Math.PI);
902
+ return O(O({}, C), {}, {
903
+ cx: H,
854
904
  cy: F,
855
- x: L - k,
856
- y: F - k,
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,
862
- size: _,
910
+ width: 2 * D,
911
+ height: 2 * D,
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: O,
918
+ tooltipPayload: W,
869
919
  tooltipPosition: {
870
- x: L,
920
+ x: H,
871
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: x
926
+ return O({
927
+ points: E
878
928
  }, h);
879
929
  });
880
- var Ds = si({
930
+ var Es = si({
881
931
  chartName: "ComposedChart",
882
- GraphicalChild: [nt, ri, ot, ae],
932
+ GraphicalChild: [rt, ri, nt, re],
883
933
  axisComponents: [{
884
934
  axisType: "xAxis",
885
- AxisComp: at
935
+ AxisComp: ot
886
936
  }, {
887
937
  axisType: "yAxis",
888
- AxisComp: Se
938
+ AxisComp: De
889
939
  }, {
890
940
  axisType: "zAxis",
891
- AxisComp: Ee
941
+ AxisComp: _e
892
942
  }],
893
943
  formatAxisMap: ni
894
944
  });
895
- const Ss = (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 "-";
@@ -916,18 +966,18 @@ const Ss = (a) => {
916
966
  });
917
967
  };
918
968
  return e.displayName = `Scatter-${a}`, e;
919
- }, zs = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
969
+ }, Rs = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
920
970
  hide: !0
921
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) => {
922
- var E, O, L, F;
923
- const y = oi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], N = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], x = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], C = [...b, ...N, ...x], D = Math.max(...y.flatMap((_) => C.map((k) => ai(i != null && i.tickFormatter ? i.tickFormatter(`${_[k]}`) : `${_[k]}`)))), S = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "left"), R = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "right");
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");
924
974
  return g(li, {
925
975
  config: a,
926
976
  ref: m,
927
977
  aspect: o,
928
- children: z(Ds, {
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,
@@ -935,16 +985,16 @@ const Ss = (a) => {
935
985
  bottom: c ? 24 : 12
936
986
  },
937
987
  stackOffset: void 0,
938
- onClick: (_) => {
939
- if (!p || !_.activeLabel || !_.activePayload)
988
+ onClick: (x) => {
989
+ if (!p || !x.activeLabel || !x.activePayload)
940
990
  return;
941
- const k = {
942
- label: _.activeLabel,
991
+ const D = {
992
+ label: x.activeLabel,
943
993
  values: {}
944
994
  };
945
- for (const le of _.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
999
  children: [!r && g(hi, {
950
1000
  ...di(),
@@ -953,44 +1003,44 @@ const Ss = (a) => {
953
1003
  })
954
1004
  }), !n && g(ui, {
955
1005
  ...fi()
956
- }), S.length > 0 && g(Se, {
957
- ...Ue(i),
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((_) => _ == null ? void 0 : _.hideAxis),
961
- label: (O = S[0]) != null && O.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(Se, {
967
- ...Ue(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((_) => _ == null ? void 0 : _.hideAxis),
973
- label: (F = R[0]) != null && F.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(at, {
1028
+ }), g(ot, {
979
1029
  ...gi(t),
980
1030
  hide: t == null ? void 0 : t.hide,
981
- tick: c ? (_) => {
982
- var Ge, We;
983
- const { x: k, y: le, payload: Ie } = _, Fe = ((Ge = e.find((Ut) => Ut.label === Ie.value)) == null ? void 0 : Ge.values) || "", he = Object.keys(Fe).length === 1 ? (We = Object.values(Fe)) == null ? void 0 : We[0] : void 0, jt = he !== void 0 && i.tickFormatter ? i.tickFormatter(`${he}`) : he.toLocaleString();
984
- return z("g", {
985
- transform: `translate(${k},${le})`,
1031
+ tick: c ? (x) => {
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: Ie.value
993
- }), !!he && g("text", {
1042
+ children: Be.value
1043
+ }), !!oe && g("text", {
994
1044
  x: 0,
995
1045
  y: 0,
996
1046
  dy: 28,
@@ -1000,34 +1050,34 @@ const Ss = (a) => {
1000
1050
  })]
1001
1051
  });
1002
1052
  } : void 0
1003
- }), b.map((_, k) => g(ot, {
1053
+ }), b.map((x, D) => g(nt, {
1004
1054
  isAnimationActive: !1,
1005
- dataKey: String(_),
1006
- fill: a[_].color ? ee(a[_].color) : Ne(k),
1055
+ dataKey: String(x),
1056
+ fill: a[x].color ? Q(a[x].color) : Ne(D),
1007
1057
  radius: 4,
1008
1058
  maxBarSize: 32,
1009
- children: s && g(rt, {
1059
+ children: s && g(st, {
1010
1060
  position: "top",
1011
1061
  offset: 10,
1012
1062
  className: "fill-f1-foreground",
1013
1063
  fontSize: 12
1014
- }, `label-${String(_)}`)
1015
- }, `bar-${String(_)}`)), N.map((_, k) => g(nt, {
1064
+ }, `label-${String(x)}`)
1065
+ }, `bar-${String(x)}`)), _.map((x, D) => g(rt, {
1016
1066
  type: (d == null ? void 0 : d.lineType) ?? "natural",
1017
- dataKey: String(_),
1018
- stroke: a[_].color ? ee(a[_].color) : Ne(b.length + k),
1067
+ dataKey: String(x),
1068
+ stroke: a[x].color ? Q(a[x].color) : Ne(b.length + D),
1019
1069
  strokeWidth: 2,
1020
1070
  dot: (d == null ? void 0 : d.dot) ?? !1,
1021
1071
  isAnimationActive: !1,
1022
1072
  yAxisId: (d == null ? void 0 : d.axisPosition) === "right" ? "right" : void 0
1023
- }, `line-${String(_)}`)), x.map((_, k) => g(ae, {
1024
- dataKey: String(_),
1025
- fill: a[_].color ? ee(a[_].color) : Ne(b.length + N.length + k),
1073
+ }, `line-${String(x)}`)), E.map((x, D) => g(re, {
1074
+ dataKey: String(x),
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: Ss(String(_))
1030
- }, `scatter-${String(_)}`)), h && g(pi, {
1079
+ shape: Ns(String(x))
1080
+ }, `scatter-${String(x)}`)), h && g(pi, {
1031
1081
  content: g(mi, {
1032
1082
  nameKey: "label"
1033
1083
  }),
@@ -1038,29 +1088,29 @@ const Ss = (a) => {
1038
1088
  })]
1039
1089
  })
1040
1090
  });
1041
- }, ks = lt(zs);
1042
- var Te = "Progress", Le = 100, [Ps, pr] = yi(Te), [As, Os] = Ps(Te), zt = 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 = Ts,
1098
+ getValueLabel: r = Ps,
1049
1099
  ...n
1050
1100
  } = a;
1051
- (s || s === 0) && !Je(s) && console.error(Ls(`${s}`, "Progress"));
1052
- const o = Je(s) ? s : Le;
1053
- i !== null && !Ze(i, o) && console.error(Ms(`${i}`, "Progress"));
1054
- const h = Ze(i, o) ? i : null, c = me(h) ? r(h, o) : void 0;
1055
- return /* @__PURE__ */ g(As, { scope: t, value: h, max: o, children: /* @__PURE__ */ g(
1056
- ht.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(h) ? h : void 0,
1110
+ "aria-valuenow": ge(h) ? h : void 0,
1061
1111
  "aria-valuetext": c,
1062
1112
  role: "progressbar",
1063
- "data-state": At(h, o),
1113
+ "data-state": Tt(h, o),
1064
1114
  "data-value": h ?? void 0,
1065
1115
  "data-max": o,
1066
1116
  ...n,
@@ -1069,14 +1119,14 @@ var Te = "Progress", Le = 100, [Ps, pr] = yi(Te), [As, Os] = Ps(Te), zt = Oe.for
1069
1119
  ) });
1070
1120
  }
1071
1121
  );
1072
- zt.displayName = Te;
1073
- var kt = "ProgressIndicator", Pt = Oe.forwardRef(
1122
+ kt.displayName = Ae;
1123
+ var Pt = "ProgressIndicator", At = Pe.forwardRef(
1074
1124
  (a, e) => {
1075
- const { __scopeProgress: t, ...i } = a, s = Os(kt, t);
1125
+ const { __scopeProgress: t, ...i } = a, s = ks(Pt, t);
1076
1126
  return /* @__PURE__ */ g(
1077
- ht.div,
1127
+ lt.div,
1078
1128
  {
1079
- "data-state": At(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 kt = "ProgressIndicator", Pt = Oe.forwardRef(
1085
1135
  );
1086
1136
  }
1087
1137
  );
1088
- Pt.displayName = kt;
1089
- function Ts(a, e) {
1138
+ At.displayName = Pt;
1139
+ function Ps(a, e) {
1090
1140
  return `${Math.round(a / e * 100)}%`;
1091
1141
  }
1092
- function At(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 Je(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 Ze(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 Ls(a, e) {
1105
- return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Le}\`.`;
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 Ms(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 ${Le} 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 Ot = zt, Hs = Pt;
1116
- const Tt = Oe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
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: j("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(Hs, {
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 Tt = Oe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
1125
1175
  }
1126
1176
  })
1127
1177
  }));
1128
- Tt.displayName = Ot.displayName;
1129
- const Bs = ({ 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(Tt, {
1186
+ children: g(Lt, {
1137
1187
  color: r,
1138
1188
  value: n,
1139
1189
  className: "w-full",
@@ -1147,78 +1197,78 @@ const Bs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
1147
1197
  children: t
1148
1198
  })]
1149
1199
  });
1150
- }, Is = lt(Bs), mr = I(
1200
+ }, Ms = at(Ls), pr = I(
1151
1201
  {
1152
1202
  name: "AreaChart",
1153
1203
  type: "info"
1154
1204
  },
1155
- Ei
1156
- ), yr = I(
1205
+ Ci
1206
+ ), mr = I(
1157
1207
  {
1158
1208
  name: "BarChart",
1159
1209
  type: "info"
1160
1210
  },
1161
- vi
1211
+ yi
1162
1212
  ), vr = I(
1163
1213
  {
1164
1214
  name: "CategoryBarChart",
1165
1215
  type: "info"
1166
1216
  },
1167
1217
  bi
1168
- ), br = I(
1218
+ ), yr = I(
1169
1219
  {
1170
1220
  name: "LineChart",
1171
1221
  type: "info"
1172
1222
  },
1173
1223
  wi
1174
- ), wr = I(
1224
+ ), br = I(
1175
1225
  {
1176
1226
  name: "PieChart",
1177
1227
  type: "info"
1178
1228
  },
1179
- _i
1180
- ), _r = I(
1229
+ xi
1230
+ ), wr = I(
1181
1231
  {
1182
1232
  name: "VerticalBarChart",
1183
1233
  type: "info"
1184
1234
  },
1185
- xi
1235
+ _i
1186
1236
  ), xr = I(
1187
1237
  {
1188
1238
  name: "ProgressBarChart",
1189
1239
  type: "info"
1190
1240
  },
1191
- Is
1192
- ), Er = I(
1241
+ Ms
1242
+ ), _r = I(
1193
1243
  {
1194
1244
  name: "ComboChart",
1195
1245
  type: "info"
1196
1246
  },
1197
- ks
1198
- ), Cr = Ci, Rr = dt, Nr = ["default", "outline", "neutral"], Dr = dt, Sr = ["sm", "md", "lg"], zr = Ri, Pe = ({ 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(ct, {
1252
+ return e != null && e.length ? R(dt, {
1203
1253
  open: t,
1204
1254
  onOpenChange: i,
1205
- children: [g(ut, {
1255
+ children: [g(ct, {
1206
1256
  asChild: !0,
1207
1257
  children: g("button", {
1208
- className: Ni("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(ft, {
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(gt, {
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(pt, {
1271
+ }, n)), g(gt, {
1222
1272
  orientation: "vertical",
1223
1273
  className: "[&_div]:bg-f1-background"
1224
1274
  })]
@@ -1226,17 +1276,17 @@ const Bs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
1226
1276
  })]
1227
1277
  }) : s;
1228
1278
  };
1229
- Pe.displayName = "ChipCounter";
1230
- const Lt = ({ 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
1282
  return g(Di, {
1233
1283
  items: a,
1234
- renderListItem: (h) => g(fe, {
1284
+ renderListItem: (h) => g(de, {
1235
1285
  ...h
1236
1286
  }),
1237
1287
  renderDropdownItem: () => null,
1238
1288
  forceShowingOverflowIndicator: t !== void 0,
1239
- renderOverflowIndicator: (h) => g(Pe, {
1289
+ renderOverflowIndicator: (h) => g(ke, {
1240
1290
  count: (t ?? 0) + h,
1241
1291
  list: t ? void 0 : a.slice(a.length - h)
1242
1292
  }),
@@ -1244,160 +1294,156 @@ const Lt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" })
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((h, c) => g(fe, {
1299
+ children: [s.map((h, c) => g(de, {
1250
1300
  ...h
1251
- }, c)), o && g(Pe, {
1301
+ }, c)), o && g(ke, {
1252
1302
  count: n,
1253
1303
  list: t ? void 0 : r
1254
1304
  })]
1255
1305
  });
1256
1306
  };
1257
- Lt.displayName = "F0ChipList";
1258
- const kr = Ae("F0ChipList", Lt), Mt = K(({ value: a, onDateChange: e, granularity: t, onOpenChange: i, minDate: s, maxDate: r, onClear: n, ...o }, h) => {
1259
- const [c, l] = A(""), [d, f] = A(!1), p = mt();
1260
- q(() => {
1261
- l(t.toString(a == null ? void 0 : a.value, p));
1262
- }, [a, t, p]);
1263
- const m = (x) => ki(x, t, {
1264
- minDate: s,
1265
- maxDate: r
1266
- }), y = (x, C) => {
1267
- if (x === "") {
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(x, 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(Si, {
1284
- ...o,
1285
- icon: zi,
1286
- ref: h,
1287
- onFocus: () => i == null ? void 0 : i(!0),
1288
- onClear: () => {
1289
- n == null || n(), l(""), y("", t);
1290
- },
1291
- onKeyDown: (x) => {
1292
- x.key === "Enter" && b();
1293
- },
1294
- type: "text",
1295
- onChange: (x) => {
1296
- l(x);
1297
- },
1298
- error: d || o.error,
1299
- onBlur: b,
1300
- value: c,
1301
- onClickContent: () => i == null ? void 0 : i(!0)
1302
- })
1303
- });
1304
- });
1305
- Mt.displayName = "DateInput";
1306
- function Fs({ onChange: a, value: e, presets: t = [], granularities: i = ["day"], minDate: s, maxDate: r, open: n = !1, ...o }) {
1307
- const [h, c] = A(), [l, d] = A(n);
1308
- q(() => {
1309
- d(n);
1310
- }, [n]);
1311
- const f = mt(), p = te(() => i[0] ?? "day", [i]), m = W((R) => {
1312
- const E = R || p;
1313
- if (!qe[E])
1314
- throw new Error(`Invalid granularity ${E}`);
1315
- return {
1316
- ...qe[E],
1317
- key: E
1318
- };
1319
- }, [p]), y = W((R) => {
1320
- var O;
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 : ((O = R.value) == null ? void 0 : O.from) ?? void 0),
1326
- granularity: R.granularity
1327
- } : void 0;
1328
- }, [m]), b = te(() => m(h == null ? void 0 : h.granularity), [h == null ? void 0 : h.granularity, m]);
1329
- q(() => {
1330
- const R = y(e);
1331
- De(h, 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) === (h == null ? void 0 : h.granularity) && !De(E, h);
1335
- x(E), L && d(!1);
1336
- }, x = (R) => {
1337
- const E = y(R);
1338
- if (c(E), !De(E, h)) {
1339
- const O = m(E == null ? void 0 : E.granularity);
1340
- a == null || a(E, O.toString(E == null ? void 0 : E.value, f));
1307
+ Mt.displayName = "F0ChipList";
1308
+ const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
1309
+ base: "text-base text-f1-foreground",
1310
+ variants: {
1311
+ variant: {
1312
+ // -- PUBLIC VARIANTS
1313
+ // Heading
1314
+ heading: "text-lg font-semibold",
1315
+ // Body
1316
+ body: "",
1317
+ description: "text-f1-foreground-secondary",
1318
+ small: "text-sm font-medium text-f1-foreground-secondary",
1319
+ inverse: "text-f1-foreground-inverse",
1320
+ code: "text-f1-foreground-secondary",
1321
+ // Label
1322
+ label: "font-medium",
1323
+ // -- PRIVATE VARIANTS
1324
+ // Heading
1325
+ "heading-large": "text-2xl font-semibold",
1326
+ // Label
1327
+ "label-input": "font-medium text-f1-foreground-secondary",
1328
+ // Semantic text
1329
+ selected: "font-medium text-f1-foreground-selected",
1330
+ warning: "text-f1-foreground-warning",
1331
+ critical: "text-f1-foreground-critical",
1332
+ positive: "text-f1-foreground-positive",
1333
+ info: "text-f1-foreground-info",
1334
+ "warning-strong": "font-semibold text-f1-foreground-warning",
1335
+ "critical-strong": "font-semibold text-f1-foreground-critical",
1336
+ "positive-strong": "font-semibold text-f1-foreground-positive",
1337
+ "info-strong": "font-semibold text-f1-foreground-info"
1338
+ },
1339
+ align: {
1340
+ left: "text-left",
1341
+ center: "text-center",
1342
+ right: "text-right"
1341
1343
  }
1342
- }, C = (R) => {
1343
- var E;
1344
- d(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 q(() => {
1347
- l && S.current && requestAnimationFrame(() => {
1348
- var R;
1349
- (R = S.current) == null || R.focus();
1344
+ },
1345
+ defaultVariants: {
1346
+ variant: "body",
1347
+ align: "left"
1348
+ }
1349
+ }), Hs = {
1350
+ "heading-large": "h1",
1351
+ heading: "h2",
1352
+ body: "p",
1353
+ description: "p",
1354
+ label: "p",
1355
+ "label-input": "label",
1356
+ small: "p",
1357
+ selected: "p",
1358
+ inverse: "p",
1359
+ warning: "p",
1360
+ critical: "p",
1361
+ positive: "p",
1362
+ info: "p",
1363
+ "warning-strong": "p",
1364
+ "critical-strong": "p",
1365
+ "positive-strong": "p",
1366
+ "info-strong": "p",
1367
+ code: "code"
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"];
1370
+ if (r !== void 0)
1371
+ return g(zi, {
1372
+ ref: c,
1373
+ lines: typeof r == "number" ? r : 1,
1374
+ noTooltip: n,
1375
+ tag: l,
1376
+ className: L(Re({
1377
+ variant: e,
1378
+ align: t
1379
+ }), i),
1380
+ markdown: o,
1381
+ ...h,
1382
+ children: a
1350
1383
  });
1351
- }, [l]), g(Pi, {
1352
- hideCalendarInput: !0,
1353
- onSelect: N,
1354
- value: h,
1355
- presets: D,
1356
- granularities: i,
1357
- minDate: s,
1358
- maxDate: r,
1359
- open: l,
1360
- onOpenChange: C,
1361
- asChild: !0,
1362
- children: g(Mt, {
1363
- ref: S,
1364
- ...o,
1365
- value: h,
1366
- granularity: b,
1367
- onDateChange: x
1368
- })
1369
- });
1370
- }
1371
- const Pr = Ai, Ar = Ae(
1372
- "F0DatePicker",
1373
- Fs
1374
- ), Gs = {
1384
+ if (o) {
1385
+ const d = ki(a);
1386
+ return qe(l, {
1387
+ ...h,
1388
+ className: L(Re({
1389
+ variant: e,
1390
+ align: t
1391
+ }), i),
1392
+ ref: c,
1393
+ dangerouslySetInnerHTML: {
1394
+ __html: d
1395
+ }
1396
+ });
1397
+ }
1398
+ return qe(l, {
1399
+ ...h,
1400
+ className: L(Re({
1401
+ variant: e,
1402
+ align: t
1403
+ }), i),
1404
+ ref: c
1405
+ }, a);
1406
+ });
1407
+ Oe.displayName = "Text";
1408
+ const Bs = j((a, e) => g(Oe, {
1409
+ ref: e,
1410
+ variant: "heading",
1411
+ ...a
1412
+ }));
1413
+ Bs.displayName = "F0Heading";
1414
+ const Is = j((a, e) => g(Oe, {
1415
+ ref: e,
1416
+ markdown: a.markdown ?? !0,
1417
+ ...a
1418
+ }));
1419
+ Is.displayName = "F0Text";
1420
+ const Fs = {
1375
1421
  xs: 1,
1376
1422
  sm: 2,
1377
1423
  md: 2,
1378
1424
  lg: 2
1379
- }, Ws = K(function({ widgets: e, children: t }, i) {
1380
- const s = Y(null);
1381
- xt(i, () => s.current);
1382
- const r = ns.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", {
1383
1429
  className: "h-full @5xl:h-auto [&>div]:h-full",
1384
1430
  children: n
1385
1431
  }, o));
1386
- return g(yt, {
1432
+ return g(vt, {
1387
1433
  layout: "home",
1388
- children: z("div", {
1434
+ children: R("div", {
1389
1435
  ref: s,
1390
1436
  className: "@container",
1391
- children: [z("div", {
1437
+ children: [R("div", {
1392
1438
  className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
1393
- children: [g(Oi, {
1394
- columns: Gs,
1439
+ children: [g(Pi, {
1440
+ columns: Fs,
1395
1441
  showArrows: !1,
1396
1442
  children: r
1397
1443
  }), g("main", {
1398
1444
  children: t
1399
1445
  })]
1400
- }), z("div", {
1446
+ }), R("div", {
1401
1447
  className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
1402
1448
  children: [g("div", {
1403
1449
  className: "col-span-3 flex flex-row gap-5 *:flex-1",
@@ -1412,40 +1458,40 @@ const Pr = Ai, Ar = Ae(
1412
1458
  })]
1413
1459
  })
1414
1460
  });
1415
- }), $s = K(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) {
1416
1462
  return g("div", {
1417
1463
  ref: r,
1418
1464
  className: "h-full",
1419
- children: z("div", {
1420
- className: j("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"),
1421
1467
  children: [g("main", {
1422
- className: j("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"),
1423
1469
  children: e
1424
- }), g(js, {
1470
+ }), g($s, {
1425
1471
  sticky: s,
1426
- className: j("order-1", i === "right" ? "md:order-1" : "md:order-3"),
1472
+ className: L("order-1", i === "right" ? "md:order-1" : "md:order-3"),
1427
1473
  children: t
1428
1474
  })]
1429
1475
  })
1430
1476
  });
1431
- }), js = ({ children: a, className: e }) => g("aside", {
1432
- className: j("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),
1433
1479
  children: a
1434
- }), Us = Ti({
1480
+ }), js = mt({
1435
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",
1436
1482
  variants: {
1437
1483
  variant: {
1438
1484
  narrow: "max-w-screen-lg"
1439
1485
  }
1440
1486
  }
1441
- }), Ht = P.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(yt, {
1487
+ }), Ht = z.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(vt, {
1442
1488
  layout: "standard",
1443
1489
  children: g("section", {
1444
1490
  ref: s,
1445
- className: j("relative flex-1 overflow-auto", t),
1491
+ className: L("relative flex-1 overflow-auto", t),
1446
1492
  ...i,
1447
1493
  children: g("div", {
1448
- className: j(Us({
1494
+ className: L(js({
1449
1495
  variant: e
1450
1496
  })),
1451
1497
  children: a
@@ -1453,37 +1499,37 @@ const Pr = Ai, Ar = Ae(
1453
1499
  })
1454
1500
  }));
1455
1501
  Ht.displayName = "StandardLayout";
1456
- const Or = I({
1502
+ const Pr = I({
1457
1503
  name: "StandardLayout",
1458
1504
  type: "layout"
1459
- }, Ht), Tr = I({
1505
+ }, Ht), Ar = I({
1460
1506
  name: "TwoColumnLayout",
1461
1507
  type: "layout"
1462
- }, $s), Lr = I({
1508
+ }, Ws), Tr = I({
1463
1509
  name: "HomeLayout",
1464
1510
  type: "layout"
1465
- }, Ws), Bt = xe(null);
1466
- function Me() {
1467
- const a = Et(Bt);
1511
+ }, Gs), Bt = xe(null);
1512
+ function Le() {
1513
+ const a = Ct(Bt);
1468
1514
  if (!a)
1469
1515
  throw new Error(
1470
1516
  "useGridStackContext must be used within a GridStackProvider"
1471
1517
  );
1472
1518
  return a;
1473
1519
  }
1474
- function qs({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1475
- const [s, r] = A(null), [n, o] = A(() => {
1476
- 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;
1477
1523
  const p = /* @__PURE__ */ new Map(), m = (b) => {
1478
- var N, x;
1479
- b.id && ((N = b.renderFn) != null && N.call(b)) && p.set(b.id, b), (x = b.subGridOpts) != null && x.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) => {
1480
1526
  m(C);
1481
1527
  });
1482
1528
  };
1483
- return (y = e.children) == null || y.forEach((b) => {
1529
+ return (v = e.children) == null || v.forEach((b) => {
1484
1530
  m(b);
1485
1531
  }), p;
1486
- }), h = W(() => {
1532
+ }), h = q(() => {
1487
1533
  if (!s)
1488
1534
  return;
1489
1535
  const p = s.save();
@@ -1496,37 +1542,37 @@ function qs({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1496
1542
  y: m.y ?? 0
1497
1543
  }))));
1498
1544
  }, [s]);
1499
- q(() => {
1545
+ ce(() => {
1500
1546
  if (!s) return;
1501
- const p = (m, y) => {
1502
- t == null || t(m, y);
1547
+ const p = (m, v) => {
1548
+ t == null || t(m, v);
1503
1549
  };
1504
1550
  return s.on("resizestop", p), s.on("change added removed", h), () => {
1505
1551
  s.off("resizestop"), s.off("change added removed");
1506
1552
  };
1507
- }, [s, t, h]), q(() => {
1553
+ }, [s, t, h]), ce(() => {
1508
1554
  s && h();
1509
1555
  }, [s]);
1510
- const c = W((p) => {
1556
+ const c = q((p) => {
1511
1557
  s == null || s.addWidget(p), o((m) => {
1512
- const y = new Map(m);
1513
- return y.set(p.id, p), y;
1558
+ const v = new Map(m);
1559
+ return v.set(p.id, p), v;
1514
1560
  });
1515
- }, [s]), l = W((p) => {
1561
+ }, [s]), l = q((p) => {
1516
1562
  s == null || s.addWidget(p), o((m) => {
1517
- var b, N;
1518
- const y = new Map(m);
1519
- return (N = (b = p.subGridOpts) == null ? void 0 : b.children) == null || N.forEach((x) => {
1520
- y.set(x.id, x);
1521
- }), 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;
1522
1568
  });
1523
- }, [s]), d = W((p) => {
1569
+ }, [s]), d = q((p) => {
1524
1570
  const m = document.body.querySelector(`[gs-id="${p}"]`);
1525
- m && (s == null || s.removeWidget(m)), o((y) => {
1526
- const b = new Map(y);
1571
+ m && (s == null || s.removeWidget(m)), o((v) => {
1572
+ const b = new Map(v);
1527
1573
  return b.delete(p), b;
1528
1574
  });
1529
- }, [s]), f = W(() => {
1575
+ }, [s]), f = q(() => {
1530
1576
  s == null || s.removeAll(), o(/* @__PURE__ */ new Map());
1531
1577
  }, [s]);
1532
1578
  return g(Bt.Provider, {
@@ -1550,33 +1596,33 @@ function qs({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1550
1596
  });
1551
1597
  }
1552
1598
  const It = xe(null);
1553
- function Ks() {
1554
- const a = Et(It);
1599
+ function qs() {
1600
+ const a = Ct(It);
1555
1601
  if (!a)
1556
1602
  throw new Error(
1557
1603
  "useGridStackRenderContext must be used within a GridStackProvider"
1558
1604
  );
1559
1605
  return a;
1560
1606
  }
1561
- const Vs = xe(null);
1562
- function Ys() {
1563
- const { _rawWidgetMetaMap: a } = Me(), { getWidgetContainer: e } = Ks();
1564
- return g(oe, {
1607
+ const Ks = xe(null);
1608
+ function Vs() {
1609
+ const { _rawWidgetMetaMap: a } = Le(), { getWidgetContainer: e } = qs();
1610
+ return g(we, {
1565
1611
  children: Array.from(a.value.entries()).map(([t, i]) => {
1566
1612
  var r;
1567
1613
  const s = e(t);
1568
- return s ? g(Vs.Provider, {
1614
+ return s ? g(Ks.Provider, {
1569
1615
  value: {
1570
1616
  widget: {
1571
1617
  id: t
1572
1618
  }
1573
1619
  },
1574
- children: os((r = i.renderFn) == null ? void 0 : r.call(i), s)
1620
+ children: ss((r = i.renderFn) == null ? void 0 : r.call(i), s)
1575
1621
  }, t) : null;
1576
1622
  })
1577
1623
  });
1578
1624
  }
1579
- function Xs(a, e, t, i, s) {
1625
+ function Ys(a, e, t, i, s) {
1580
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));
1581
1627
  return r.prototype = e.prototype, r;
1582
1628
  }
@@ -2641,8 +2687,8 @@ class $ {
2641
2687
  const d = e._moving && !t.nested;
2642
2688
  let f = d ? this.directionCollideCoverage(e, t, o) : o[0];
2643
2689
  if (d && f && ((l = (c = e.grid) == null ? void 0 : c.opts) != null && l.subGridDynamic) && !e.grid._isTemp) {
2644
- const p = u.areaIntercept(t.rect, f._rect), m = u.area(t.rect), y = u.area(f._rect);
2645
- p / (m < y ? m : y) > 0.8 && (f.grid.makeSubGrid(f.el, void 0, e), f = void 0);
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);
2646
2692
  }
2647
2693
  f ? h = !this._fixCollisions(e, r, f, t) : (h = !1, i && delete t.pack);
2648
2694
  }
@@ -2793,7 +2839,7 @@ class $ {
2793
2839
  }
2794
2840
  }
2795
2841
  $._idSeq = 0;
2796
- const M = {
2842
+ const T = {
2797
2843
  alwaysShowResizeHandle: "mobile",
2798
2844
  animate: !0,
2799
2845
  auto: !0,
@@ -2827,32 +2873,32 @@ class w {
2827
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);
2828
2874
  class G {
2829
2875
  }
2830
- function ye(a, e) {
2876
+ function pe(a, e) {
2831
2877
  a.touches.length > 1 || (a.cancelable && a.preventDefault(), u.simulateMouseEvent(a.changedTouches[0], e));
2832
2878
  }
2833
2879
  function Ft(a, e) {
2834
2880
  a.cancelable && a.preventDefault(), u.simulateMouseEvent(a, e);
2835
2881
  }
2836
- function ve(a) {
2837
- G.touchHandled || (G.touchHandled = !0, ye(a, "mousedown"));
2882
+ function me(a) {
2883
+ G.touchHandled || (G.touchHandled = !0, pe(a, "mousedown"));
2838
2884
  }
2839
- function be(a) {
2840
- G.touchHandled && ye(a, "mousemove");
2885
+ function ve(a) {
2886
+ G.touchHandled && pe(a, "mousemove");
2841
2887
  }
2842
- function we(a) {
2888
+ function ye(a) {
2843
2889
  if (!G.touchHandled)
2844
2890
  return;
2845
2891
  G.pointerLeaveTimeout && (window.clearTimeout(G.pointerLeaveTimeout), delete G.pointerLeaveTimeout);
2846
2892
  const e = !!w.dragElement;
2847
- ye(a, "mouseup"), e || ye(a, "click"), G.touchHandled = !1;
2893
+ pe(a, "mouseup"), e || pe(a, "click"), G.touchHandled = !1;
2848
2894
  }
2849
- function _e(a) {
2895
+ function be(a) {
2850
2896
  a.pointerType !== "mouse" && a.target.releasePointerCapture(a.pointerId);
2851
2897
  }
2852
2898
  function Qe(a) {
2853
2899
  w.dragElement && a.pointerType !== "mouse" && Ft(a, "mouseenter");
2854
2900
  }
2855
- function et(a) {
2901
+ function Ze(a) {
2856
2902
  w.dragElement && a.pointerType !== "mouse" && (G.pointerLeaveTimeout = window.setTimeout(() => {
2857
2903
  delete G.pointerLeaveTimeout, Ft(a, "mouseleave");
2858
2904
  }, 10));
@@ -2864,15 +2910,15 @@ class Ce {
2864
2910
  /** @internal */
2865
2911
  _init() {
2866
2912
  const e = this.el = document.createElement("div");
2867
- 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", ve), this.el.addEventListener("pointerdown", _e)), 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;
2868
2914
  }
2869
2915
  /** call this when resize handle needs to be removed and cleaned up */
2870
2916
  destroy() {
2871
- return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), B && (this.el.removeEventListener("touchstart", ve), this.el.removeEventListener("pointerdown", _e)), 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;
2872
2918
  }
2873
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 */
2874
2920
  _mouseDown(e) {
2875
- this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (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();
2876
2922
  }
2877
2923
  /** @internal */
2878
2924
  _mouseMove(e) {
@@ -2881,7 +2927,7 @@ class Ce {
2881
2927
  }
2882
2928
  /** @internal */
2883
2929
  _mouseUp(e) {
2884
- 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", 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();
2885
2931
  }
2886
2932
  /** @internal call when keys are being pressed - use Esc to cancel */
2887
2933
  _keyEvent(e) {
@@ -2894,7 +2940,7 @@ class Ce {
2894
2940
  }
2895
2941
  }
2896
2942
  Ce.prefix = "ui-resizable-";
2897
- class He {
2943
+ class Me {
2898
2944
  constructor() {
2899
2945
  this._eventRegister = {};
2900
2946
  }
@@ -2955,7 +3001,7 @@ class He {
2955
3001
  return this._eventRegister[e](t);
2956
3002
  }
2957
3003
  }
2958
- class re extends He {
3004
+ class ie extends Me {
2959
3005
  // have to be public else complains for HTMLElementExtendOpt ?
2960
3006
  constructor(e, t = {}) {
2961
3007
  super(), this.el = e, this.option = t, this.rectScale = { x: 1, y: 1 }, this._ui = () => {
@@ -3056,7 +3102,7 @@ class re extends He {
3056
3102
  }
3057
3103
  /** @internal */
3058
3104
  _setupHelper() {
3059
- 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;
3060
3106
  const e = this.el.parentElement, t = u.getValuesFromTransformedElement(e);
3061
3107
  return this.rectScale = {
3062
3108
  x: t.xScale,
@@ -3065,7 +3111,7 @@ class re extends He {
3065
3111
  }
3066
3112
  /** @internal */
3067
3113
  _cleanHelper() {
3068
- return re._originStyleProp.forEach((e, t) => {
3114
+ return ie._originStyleProp.forEach((e, t) => {
3069
3115
  this.el.style[e] = this.elOriginStyleVal[t] || null;
3070
3116
  }), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
3071
3117
  }
@@ -3104,9 +3150,9 @@ class re extends He {
3104
3150
  return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
3105
3151
  }
3106
3152
  }
3107
- re._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
3108
- const Js = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
3109
- class ne extends He {
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 {
3110
3156
  constructor(e, t = {}) {
3111
3157
  var r;
3112
3158
  super(), this.el = e, this.option = t, this.dragTransform = {
@@ -3126,12 +3172,12 @@ class ne extends He {
3126
3172
  }
3127
3173
  enable() {
3128
3174
  this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
3129
- e.addEventListener("mousedown", this._mouseDown), B && (e.addEventListener("touchstart", ve), e.addEventListener("pointerdown", _e));
3175
+ e.addEventListener("mousedown", this._mouseDown), B && (e.addEventListener("touchstart", me), e.addEventListener("pointerdown", be));
3130
3176
  }), this.el.classList.remove("ui-draggable-disabled"));
3131
3177
  }
3132
3178
  disable(e = !1) {
3133
3179
  this.disabled !== !0 && (super.disable(), this.dragEls.forEach((t) => {
3134
- t.removeEventListener("mousedown", this._mouseDown), B && (t.removeEventListener("touchstart", ve), t.removeEventListener("pointerdown", _e));
3180
+ t.removeEventListener("mousedown", this._mouseDown), B && (t.removeEventListener("touchstart", me), t.removeEventListener("pointerdown", be));
3135
3181
  }), e || this.el.classList.add("ui-draggable-disabled"));
3136
3182
  }
3137
3183
  destroy() {
@@ -3143,7 +3189,7 @@ class ne extends He {
3143
3189
  /** @internal call when mouse goes down before a dragstart happens */
3144
3190
  _mouseDown(e) {
3145
3191
  if (!w.mouseHandled)
3146
- return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Js) || 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", 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;
3147
3193
  }
3148
3194
  /** @internal method to call actual drag event */
3149
3195
  _callDrag(e) {
@@ -3174,7 +3220,7 @@ class ne extends He {
3174
3220
  /** @internal call when the mouse gets released to drop the item at current location */
3175
3221
  _mouseUp(e) {
3176
3222
  var t, i;
3177
- if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), B && 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) {
3178
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();
3179
3225
  const s = u.initEvent(e, { target: this.el, type: "dragstop" });
3180
3226
  this.option.stop && this.option.stop(s), this.triggerEvent("dragstop", s), w.dropElement && w.dropElement.drop(e);
@@ -3196,7 +3242,7 @@ class ne extends He {
3196
3242
  /** @internal create a clone copy (or user defined method) of the original drag item if set */
3197
3243
  _createHelper() {
3198
3244
  let e = this.el;
3199
- 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;
3200
3246
  }
3201
3247
  /** @internal set the fix position of the dragged item */
3202
3248
  _setupHelperStyle(e) {
@@ -3214,7 +3260,7 @@ class ne extends He {
3214
3260
  const e = (s = this.helper) == null ? void 0 : s.gridstackNode;
3215
3261
  if (!(e != null && e._isAboutToRemove) && this.dragElementOriginStyle) {
3216
3262
  const r = this.helper, n = this.dragElementOriginStyle.transition || null;
3217
- 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);
3218
3264
  }
3219
3265
  return delete this.dragElementOriginStyle, this;
3220
3266
  }
@@ -3256,8 +3302,8 @@ class ne extends He {
3256
3302
  };
3257
3303
  }
3258
3304
  }
3259
- ne.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3260
- class Zs extends He {
3305
+ se.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3306
+ class Js extends Me {
3261
3307
  constructor(e, t = {}) {
3262
3308
  super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
3263
3309
  }
@@ -3268,10 +3314,10 @@ class Zs extends He {
3268
3314
  super.off(e);
3269
3315
  }
3270
3316
  enable() {
3271
- 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", et)));
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)));
3272
3318
  }
3273
3319
  disable(e = !1) {
3274
- 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", et)));
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)));
3275
3321
  }
3276
3322
  destroy() {
3277
3323
  this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
@@ -3323,9 +3369,9 @@ class Zs extends He {
3323
3369
  };
3324
3370
  }
3325
3371
  }
3326
- class Be {
3372
+ class He {
3327
3373
  static init(e) {
3328
- return e.ddElement || (e.ddElement = new Be(e)), e.ddElement;
3374
+ return e.ddElement || (e.ddElement = new He(e)), e.ddElement;
3329
3375
  }
3330
3376
  constructor(e) {
3331
3377
  this.el = e;
@@ -3337,19 +3383,19 @@ class Be {
3337
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;
3338
3384
  }
3339
3385
  setupDraggable(e) {
3340
- 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;
3341
3387
  }
3342
3388
  cleanDraggable() {
3343
3389
  return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
3344
3390
  }
3345
3391
  setupResizable(e) {
3346
- 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;
3347
3393
  }
3348
3394
  cleanResizable() {
3349
3395
  return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
3350
3396
  }
3351
3397
  setupDroppable(e) {
3352
- return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Zs(this.el, e), this;
3398
+ return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Js(this.el, e), this;
3353
3399
  }
3354
3400
  cleanDroppable() {
3355
3401
  return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
@@ -3460,7 +3506,7 @@ class Qs {
3460
3506
  /** @internal returns a list of DD elements, creating them on the fly by default unless option is to destroy or disable */
3461
3507
  _getDDElements(e, t) {
3462
3508
  const i = e.gridstack || t !== "destroy" && t !== "disable", s = u.getElements(e);
3463
- return s.length ? s.map((n) => n.ddElement || (i ? Be.init(n) : null)).filter((n) => n) : [];
3509
+ return s.length ? s.map((n) => n.ddElement || (i ? He.init(n) : null)).filter((n) => n) : [];
3464
3510
  }
3465
3511
  }
3466
3512
  /*!
@@ -3470,8 +3516,8 @@ class Qs {
3470
3516
  * Copyright (c) 2021-2025 Alain Dumesny
3471
3517
  * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
3472
3518
  */
3473
- const T = new Qs();
3474
- class v {
3519
+ const k = new Qs();
3520
+ class y {
3475
3521
  /**
3476
3522
  * initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
3477
3523
  * simply return the existing instance (ignore any passed options). There is also an initAll() version that support
@@ -3488,8 +3534,8 @@ class v {
3488
3534
  static init(e = {}, t = ".grid-stack") {
3489
3535
  if (typeof document > "u")
3490
3536
  return null;
3491
- const i = v.getGridElement(t);
3492
- 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 ?
3493
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);
3494
3540
  }
3495
3541
  /**
@@ -3503,8 +3549,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3503
3549
  */
3504
3550
  static initAll(e = {}, t = ".grid-stack") {
3505
3551
  const i = [];
3506
- return typeof document > "u" || (v.getGridElements(t).forEach((s) => {
3507
- 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);
3508
3554
  }), i.length === 0 && console.error('GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
3509
3555
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)), i;
3510
3556
  }
@@ -3523,14 +3569,14 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3523
3569
  const n = i.gridstack;
3524
3570
  return t && (n.opts = { ...n.opts, ...t }), t.children !== void 0 && n.load(t.children), n;
3525
3571
  }
3526
- 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);
3527
3573
  }
3528
3574
  /** call this method to register your engine instead of the default one.
3529
3575
  * See instead `GridStackOptions.engineClass` if you only need to
3530
3576
  * replace just one instance.
3531
3577
  */
3532
3578
  static registerEngine(e) {
3533
- v.engineClass = e;
3579
+ y.engineClass = e;
3534
3580
  }
3535
3581
  /**
3536
3582
  * @internal create placeholder DIV as needed
@@ -3538,7 +3584,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3538
3584
  */
3539
3585
  get placeholder() {
3540
3586
  if (!this._placeholder) {
3541
- 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]);
3542
3588
  const e = u.createDiv(["placeholder-content"], this._placeholder);
3543
3589
  this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
3544
3590
  }
@@ -3560,31 +3606,31 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3560
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)));
3561
3607
  }
3562
3608
  const r = {
3563
- ...u.cloneDeep(M),
3564
- column: u.toNumber(e.getAttribute("gs-column")) || M.column,
3565
- minRow: i || u.toNumber(e.getAttribute("gs-min-row")) || M.minRow,
3566
- maxRow: i || u.toNumber(e.getAttribute("gs-max-row")) || M.maxRow,
3567
- 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,
3568
3614
  sizeToContent: u.toBool(e.getAttribute("gs-size-to-content")) || void 0,
3569
3615
  draggable: {
3570
- 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
3571
3617
  },
3572
3618
  removableOptions: {
3573
- accept: t.itemClass || M.removableOptions.accept,
3574
- decline: M.removableOptions.decline
3619
+ accept: t.itemClass || T.removableOptions.accept,
3620
+ decline: T.removableOptions.decline
3575
3621
  }
3576
3622
  };
3577
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");
3578
- 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;
3579
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")
3580
3626
  this.cellHeight(void 0);
3581
3627
  else {
3582
- 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);
3583
3629
  const l = t.cellHeight;
3584
3630
  delete t.cellHeight, this.cellHeight(l);
3585
3631
  }
3586
3632
  t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = B), this._setStaticClass();
3587
- const h = t.engineClass || v.engineClass || $;
3633
+ const h = t.engineClass || y.engineClass || $;
3588
3634
  if (this.engine = new h({
3589
3635
  column: this.getColumn(),
3590
3636
  float: t.float,
@@ -3627,7 +3673,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3627
3673
  if (e.ELEMENT_NODE)
3628
3674
  return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(e);
3629
3675
  let t, i = e;
3630
- 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)
3631
3677
  return;
3632
3678
  if (i = t.gridstackNode, i && t.parentElement === this.el && this.engine.nodes.find((r) => r._id === i._id))
3633
3679
  return t;
@@ -3647,11 +3693,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3647
3693
  const t = u.createDiv(["grid-stack-item", this.opts.itemClass]), i = u.createDiv(["grid-stack-item-content"], t);
3648
3694
  return u.lazyLoad(e) ? e.visibleObservable || (e.visibleObservable = new IntersectionObserver(([s]) => {
3649
3695
  var r, n;
3650
- 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));
3651
3697
  }), window.setTimeout(() => {
3652
3698
  var s;
3653
3699
  return (s = e.visibleObservable) == null ? void 0 : s.observe(t);
3654
- })) : v.renderCB(i, e), t;
3700
+ })) : y.renderCB(i, e), t;
3655
3701
  }
3656
3702
  /**
3657
3703
  * Convert an existing gridItem element into a sub-grid with the given (optional) options, else inherit them
@@ -3663,13 +3709,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3663
3709
  * @returns newly created grid
3664
3710
  */
3665
3711
  makeSubGrid(e, t, i, s = !0) {
3666
- var p, m, y;
3712
+ var p, m, v;
3667
3713
  let r = e.gridstackNode;
3668
3714
  if (r || (r = this.makeWidget(e).gridstackNode), (p = r.subGrid) != null && p.el)
3669
3715
  return r.subGrid;
3670
3716
  let n, o = this;
3671
3717
  for (; o && !n; )
3672
- 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;
3673
3719
  t = u.cloneDeep({
3674
3720
  // by default sub-grid inherit from us | parent, other than id, children, etc...
3675
3721
  ...this.opts,
@@ -3685,11 +3731,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3685
3731
  let h;
3686
3732
  t.column === "auto" && (h = !0, t.column = Math.max(r.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
3687
3733
  let c = r.el.querySelector(".grid-stack-item-content"), l, d;
3688
- 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), v.addRemoveCB ? l = v.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) {
3689
- const b = h ? t.column : r.w, N = r.h + i.h, x = r.el.style;
3690
- x.transition = "none", this.update(r.el, { w: b, h: N }), setTimeout(() => x.transition = null);
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);
3691
3737
  }
3692
- const f = r.subGrid = v.addGrid(c, t);
3738
+ const f = r.subGrid = y.addGrid(c, t);
3693
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;
3694
3740
  }
3695
3741
  /**
@@ -3716,7 +3762,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3716
3762
  * NOTE2: nested grids will ALWAYS save to the container size to be in sync with parent.
3717
3763
  * @returns list of widgets or full grid option, including .children list of widgets
3718
3764
  */
3719
- save(e = !0, t = !1, i = v.saveCB, s) {
3765
+ save(e = !0, t = !1, i = y.saveCB, s) {
3720
3766
  const r = this.engine.save(e, i, s);
3721
3767
  if (r.forEach((n) => {
3722
3768
  var o;
@@ -3732,7 +3778,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3732
3778
  const n = u.cloneDeep(this.opts);
3733
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");
3734
3780
  const o = n._alwaysShowResizeHandle;
3735
- 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;
3736
3782
  }
3737
3783
  return r;
3738
3784
  }
@@ -3771,7 +3817,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3771
3817
  *
3772
3818
  * @see {@link http://gridstackjs.com/demo/serialization.html} for complete example
3773
3819
  */
3774
- load(e, t = v.addRemoveCB || !0) {
3820
+ load(e, t = y.addRemoveCB || !0) {
3775
3821
  e = u.cloneDeep(e);
3776
3822
  const i = this.getColumn();
3777
3823
  e.forEach((l) => {
@@ -3781,15 +3827,15 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3781
3827
  e.forEach((l) => {
3782
3828
  s = Math.max(s, (l.x || 0) + l.w);
3783
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));
3784
- const r = v.addRemoveCB;
3785
- typeof t == "function" && (v.addRemoveCB = t);
3830
+ const r = y.addRemoveCB;
3831
+ typeof t == "function" && (y.addRemoveCB = t);
3786
3832
  const n = [];
3787
3833
  this.batchUpdate();
3788
3834
  const o = !this.engine.nodes.length, h = o && this.opts.animate;
3789
3835
  h && this.setAnimation(!1), !o && t && [...this.engine.nodes].forEach((d) => {
3790
3836
  if (!d.id)
3791
3837
  return;
3792
- u.find(e, d.id) || (v.addRemoveCB && v.addRemoveCB(this.el, d, !1, !1), n.push(d), this.removeWidget(d.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));
3793
3839
  }), this.engine._loading = !0;
3794
3840
  const c = [];
3795
3841
  return this.engine.nodes = this.engine.nodes.filter((l) => u.find(e, l.id) ? (c.push(l), !1) : !0), e.forEach((l) => {
@@ -3801,7 +3847,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3801
3847
  p && p.gridstack && p.gridstack.load(l.subGridOpts.children);
3802
3848
  }
3803
3849
  } else t && this.addWidget(l);
3804
- }), 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, h && 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;
3805
3851
  }
3806
3852
  /**
3807
3853
  * use before calling a bunch of `addWidget()` to prevent un-necessary relayouts in between (more efficient)
@@ -4117,7 +4163,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4117
4163
  * grid.makeWidget(element, {x: 0, y: 1, w: 4, h: 2});
4118
4164
  */
4119
4165
  makeWidget(e, t) {
4120
- const i = v.getElement(e);
4166
+ const i = y.getElement(e);
4121
4167
  if (!i || i.gridstackNode)
4122
4168
  return i;
4123
4169
  i.parentElement || this.el.appendChild(i), this._prepareElement(i, !0, t);
@@ -4156,11 +4202,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4156
4202
  * @param triggerEvent if `false` (quiet mode) element will not be added to removed list and no 'removed' callbacks will be called (Default? true).
4157
4203
  */
4158
4204
  removeWidget(e, t = !0, i = !0) {
4159
- return e ? (v.getElements(e).forEach((s) => {
4205
+ return e ? (y.getElements(e).forEach((s) => {
4160
4206
  if (s.parentElement && s.parentElement !== this.el)
4161
4207
  return;
4162
4208
  let r = s.gridstackNode;
4163
- 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());
4164
4210
  }), i && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
4165
4211
  }
4166
4212
  /**
@@ -4170,7 +4216,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4170
4216
  */
4171
4217
  removeAll(e = !0, t = !0) {
4172
4218
  return this.engine.nodes.forEach((i) => {
4173
- 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);
4174
4220
  }), this.engine.removeAll(e, t), t && this._triggerRemoveEvent(), this;
4175
4221
  }
4176
4222
  /**
@@ -4236,7 +4282,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4236
4282
  * });
4237
4283
  */
4238
4284
  update(e, t) {
4239
- return v.getElements(e).forEach((i) => {
4285
+ return y.getElements(e).forEach((i) => {
4240
4286
  var l;
4241
4287
  const s = i == null ? void 0 : i.gridstackNode;
4242
4288
  if (!s)
@@ -4249,7 +4295,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4249
4295
  o[d] = r[d] !== void 0 ? r[d] : s[d], delete r[d];
4250
4296
  })), !o && (r.minW || r.minH || r.maxW || r.maxH) && (o = {}), r.content !== void 0) {
4251
4297
  const d = i.querySelector(".grid-stack-item-content");
4252
- d && d.textContent !== r.content && (s.content = r.content, v.renderCB(d, r), (l = s.subGrid) != null && l.el && (d.appendChild(s.subGrid.el), s.subGrid._updateContainerHeight())), delete r.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;
4253
4299
  }
4254
4300
  let h = !1, c = !1;
4255
4301
  for (const d in r)
@@ -4258,7 +4304,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4258
4304
  const d = o.w !== void 0 && o.w !== s.w;
4259
4305
  this.moveNode(s, o), d && s.subGrid ? s.subGrid.onResize(this.hasAnimationCSS() ? s.w : void 0) : this.resizeToContentCheck(d, s), delete s._orig;
4260
4306
  }
4261
- (o || h) && 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);
4262
4308
  }), this;
4263
4309
  }
4264
4310
  moveNode(e, t) {
@@ -4297,21 +4343,21 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4297
4343
  if (!s)
4298
4344
  return;
4299
4345
  let r = t.h ? t.h * s : e.clientHeight, n;
4300
- 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)
4301
4347
  return;
4302
4348
  const o = e.clientHeight - n.clientHeight, h = t.h ? t.h * s - o : n.clientHeight;
4303
4349
  let c;
4304
4350
  if (t.subGrid) {
4305
4351
  c = t.subGrid.getRow() * t.subGrid.getCellHeight(!0);
4306
- const m = t.subGrid.el.getBoundingClientRect(), y = e.getBoundingClientRect();
4307
- c += m.top - y.top;
4352
+ const m = t.subGrid.el.getBoundingClientRect(), v = e.getBoundingClientRect();
4353
+ c += m.top - v.top;
4308
4354
  } else {
4309
4355
  if ((p = (f = t.subGridOpts) == null ? void 0 : f.children) != null && p.length)
4310
4356
  return;
4311
4357
  {
4312
4358
  const m = n.firstElementChild;
4313
4359
  if (!m) {
4314
- 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.`);
4315
4361
  return;
4316
4362
  }
4317
4363
  c = m.getBoundingClientRect().height || h;
@@ -4326,7 +4372,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4326
4372
  }
4327
4373
  /** call the user resize (so they can do extra work) else our build in version */
4328
4374
  resizeToContentCBCheck(e) {
4329
- v.resizeToContentCB ? v.resizeToContentCB(e) : this.resizeToContent(e);
4375
+ y.resizeToContentCB ? y.resizeToContentCB(e) : this.resizeToContent(e);
4330
4376
  }
4331
4377
  /**
4332
4378
  * Rotate widgets by swapping their width and height. This is typically called when the user presses 'r' during dragging.
@@ -4344,7 +4390,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4344
4390
  * grid.rotate(widget, { left: 50, top: 30 });
4345
4391
  */
4346
4392
  rotate(e, t) {
4347
- return v.getElements(e).forEach((i) => {
4393
+ return y.getElements(e).forEach((i) => {
4348
4394
  const s = i.gridstackNode;
4349
4395
  if (!u.canBeRotated(s))
4350
4396
  return;
@@ -4481,7 +4527,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4481
4527
  }
4482
4528
  /** @internal */
4483
4529
  _prepareElement(e, t = !1, i) {
4484
- 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);
4485
4531
  const s = u.shouldSizeToContent(i);
4486
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;
4487
4533
  }
@@ -4569,7 +4615,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4569
4615
  }
4570
4616
  /** @internal */
4571
4617
  static getGridElement(e) {
4572
- return v.getElement(e);
4618
+ return y.getElement(e);
4573
4619
  }
4574
4620
  /** @internal */
4575
4621
  static getGridElements(e) {
@@ -4600,7 +4646,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4600
4646
  * // Access drag & drop functionality
4601
4647
  */
4602
4648
  static getDD() {
4603
- return T;
4649
+ return k;
4604
4650
  }
4605
4651
  /**
4606
4652
  * call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
@@ -4613,7 +4659,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4613
4659
  */
4614
4660
  static setupDragIn(e, t, i, s = document) {
4615
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) => {
4616
- T.isDraggable(n) || T.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]);
4617
4663
  });
4618
4664
  }
4619
4665
  /**
@@ -4635,7 +4681,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4635
4681
  * grid.movable('#fixed-widget', false);
4636
4682
  */
4637
4683
  movable(e, t) {
4638
- return this.opts.staticGrid ? this : (v.getElements(e).forEach((i) => {
4684
+ return this.opts.staticGrid ? this : (y.getElements(e).forEach((i) => {
4639
4685
  const s = i.gridstackNode;
4640
4686
  s && (t ? delete s.noMove : s.noMove = !0, this.prepareDragDrop(s.el));
4641
4687
  }), this);
@@ -4656,7 +4702,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4656
4702
  * grid.resizable('#fixed-size-widget', false);
4657
4703
  */
4658
4704
  resizable(e, t) {
4659
- return this.opts.staticGrid ? this : (v.getElements(e).forEach((i) => {
4705
+ return this.opts.staticGrid ? this : (y.getElements(e).forEach((i) => {
4660
4706
  const s = i.gridstackNode;
4661
4707
  s && (t ? delete s.noResize : s.noResize = !0, this.prepareDragDrop(s.el));
4662
4708
  }), this);
@@ -4761,16 +4807,16 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4761
4807
  cancelDrag() {
4762
4808
  var t;
4763
4809
  const e = (t = this._placeholder) == null ? void 0 : t.gridstackNode;
4764
- 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());
4765
4811
  }
4766
4812
  /** @internal removes any drag&drop present (called during destroy) */
4767
4813
  _removeDD(e) {
4768
- return T.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;
4769
4815
  }
4770
4816
  /** @internal called to add drag over to support widgets being added externally */
4771
4817
  _setupAcceptWidget() {
4772
4818
  if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable)
4773
- return T.droppable(this.el, "destroy"), this;
4819
+ return k.droppable(this.el, "destroy"), this;
4774
4820
  let e, t;
4775
4821
  const i = (s, r, n) => {
4776
4822
  var f;
@@ -4795,7 +4841,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4795
4841
  if (o._temporaryRemoved) {
4796
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)) {
4797
4843
  if (o.autoPosition = !0, !this.engine.willItFit(o)) {
4798
- T.off(r, "drag");
4844
+ k.off(r, "drag");
4799
4845
  return;
4800
4846
  }
4801
4847
  o._willFitPos && (u.copyPos(o, o._willFitPos), delete o._willFitPos);
@@ -4804,7 +4850,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4804
4850
  } else
4805
4851
  this._dragOrResize(n, s, d, o, t, e);
4806
4852
  };
4807
- return T.droppable(this.el, {
4853
+ return k.droppable(this.el, {
4808
4854
  accept: (s) => {
4809
4855
  const r = s.gridstackNode || this._readAttr(s, !1);
4810
4856
  if ((r == null ? void 0 : r.grid) === this)
@@ -4843,7 +4889,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4843
4889
  o.grid || (o.el || (o = { ...o }), o._isExternal = !0, n.gridstackNode = o);
4844
4890
  const h = o.w || Math.round(n.offsetWidth / t) || 1, c = o.h || Math.round(n.offsetHeight / e) || 1;
4845
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
4846
- o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0), v._itemRemoving(o.el, !1), T.on(r, "drag", i), i(s, r, n), !1;
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;
4847
4893
  }).on(this.el, "dropout", (s, r, n) => {
4848
4894
  const o = (n == null ? void 0 : n.gridstackNode) || r.gridstackNode;
4849
4895
  return o && (!o.grid || o.grid === this) && (this._leave(r, n), this._isTemp && this.removeAsSubGrid(o)), !1;
@@ -4856,13 +4902,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4856
4902
  this.placeholder.remove(), delete this.placeholder.gridstackNode, h && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
4857
4903
  const l = r._gridstackNodeOrig;
4858
4904
  if (delete r._gridstackNodeOrig, h && (l != null && l.grid) && l.grid !== this) {
4859
- const y = l.grid;
4860
- y.engine.removeNodeFromLayoutCache(l), y.engine.removedNodes.push(l), y._triggerRemoveEvent()._triggerChangeEvent(), y.parentGridNode && !y.engine.nodes.length && y.opts.subGridDynamic && y.removeAsSubGrid();
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();
4861
4907
  }
4862
- if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp, T.off(r, "drag"), n !== r ? (n.remove(), r = n) : r.remove(), this._removeDD(r), !h))
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))
4863
4909
  return !1;
4864
4910
  const d = (m = (p = o.subGrid) == null ? void 0 : p.el) == null ? void 0 : m.gridstack;
4865
- 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), 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;
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;
4866
4912
  }), this;
4867
4913
  }
4868
4914
  /** @internal mark item for removal */
@@ -4877,7 +4923,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4877
4923
  if (typeof this.opts.removable != "string")
4878
4924
  return this;
4879
4925
  const e = document.querySelector(this.opts.removable);
4880
- return e ? (!this.opts.staticGrid && !T.isDroppable(e) && T.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;
4881
4927
  }
4882
4928
  /**
4883
4929
  * prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading
@@ -4902,14 +4948,14 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4902
4948
  const p = i.w !== i._orig.w, m = f.target;
4903
4949
  if (!(!m.gridstackNode || m.gridstackNode.grid !== this)) {
4904
4950
  if (i.el = m, i._isAboutToRemove) {
4905
- const y = e.gridstackNode.grid;
4906
- 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);
4907
4953
  } else
4908
4954
  u.removePositioningStyles(m), i._temporaryRemoved ? (this._writePosAttr(m, i), this.engine.addNode(i)) : this._writePosAttr(m, i), this.triggerEvent(f, m);
4909
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));
4910
4956
  }
4911
4957
  };
4912
- T.draggable(e, {
4958
+ k.draggable(e, {
4913
4959
  start: c,
4914
4960
  stop: d,
4915
4961
  drag: l
@@ -4919,7 +4965,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4919
4965
  resize: l
4920
4966
  }), i._initDD = !0;
4921
4967
  }
4922
- return T.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;
4923
4969
  }
4924
4970
  /** @internal handles actual drag/resize start */
4925
4971
  _onStartMoving(e, t, i, s, r, n) {
@@ -4938,7 +4984,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4938
4984
  };
4939
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") {
4940
4986
  const h = this.getColumn() - s.x, c = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
4941
- T.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));
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));
4942
4988
  }
4943
4989
  }
4944
4990
  /** @internal handles actual drag/resize */
@@ -4951,13 +4997,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4951
4997
  return;
4952
4998
  const b = i.position.top - s._prevYPix;
4953
4999
  s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && u.updateScrollPosition(e, i.position, b);
4954
- const N = i.position.left + (i.position.left > s._lastUiPosition.left ? -l : c), x = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : d);
4955
- o.x = Math.round(N / r), o.y = Math.round(x / 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);
4956
5002
  const C = this._extraDragRow;
4957
5003
  if (this.engine.collide(s, o)) {
4958
- const D = this.getRow();
4959
- let S = Math.max(0, o.y + s.h - D);
4960
- 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;
4961
5007
  } else
4962
5008
  this._extraDragRow = 0;
4963
5009
  if (this._extraDragRow !== C && this._updateContainerHeight(), s.x === o.x && s.y === o.y)
@@ -4965,17 +5011,17 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4965
5011
  } else if (t.type === "resize") {
4966
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)
4967
5013
  return;
4968
- const b = i.position.left + c, N = i.position.top + d;
4969
- o.x = Math.round(b / r), o.y = Math.round(N / n), h = !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;
4970
5016
  }
4971
5017
  s._event = t, s._lastTried = o;
4972
- const y = {
5018
+ const v = {
4973
5019
  x: i.position.left + c,
4974
5020
  y: i.position.top + d,
4975
5021
  w: (i.size ? i.size.width : s.w * r) - c - l,
4976
5022
  h: (i.size ? i.size.height : s.h * n) - d - f
4977
5023
  };
4978
- if (this.engine.moveNodeCheck(s, { ...o, cellWidth: r, cellHeight: n, rect: y, resizing: h })) {
5024
+ if (this.engine.moveNodeCheck(s, { ...o, cellWidth: r, cellHeight: n, rect: v, resizing: h })) {
4979
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();
4980
5026
  const b = t.target;
4981
5027
  s._sidebarOrig || this._writePosAttr(b, s), this.triggerEvent(t, b);
@@ -4995,40 +5041,40 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4995
5041
  _leave(e, t) {
4996
5042
  t = t || e;
4997
5043
  const i = t.gridstackNode;
4998
- if (!i || (t.style.transform = t.style.transformOrigin = null, T.off(e, "drag"), i._temporaryRemoved))
5044
+ if (!i || (t.style.transform = t.style.transformOrigin = null, k.off(e, "drag"), i._temporaryRemoved))
4999
5045
  return;
5000
5046
  i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e;
5001
5047
  const s = i._sidebarOrig;
5002
- 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();
5003
5049
  }
5004
5050
  // legacy method removed
5005
5051
  commit() {
5006
- return Xs(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
5052
+ return Ys(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
5007
5053
  }
5008
5054
  }
5009
- v.renderCB = (a, e) => {
5055
+ y.renderCB = (a, e) => {
5010
5056
  a && (e != null && e.content) && (a.textContent = e.content);
5011
5057
  };
5012
- v.resizeToContentParent = ".grid-stack-item-content";
5013
- v.Utils = u;
5014
- v.Engine = $;
5015
- v.GDRev = "12.3.2";
5016
- const ce = /* @__PURE__ */ new WeakMap();
5017
- function er({ children: a }) {
5018
- const { _gridStack: { value: e, set: t }, initialOptions: i } = Me(), s = Y(/* @__PURE__ */ new Map()), r = Y(null), n = Y(i), o = W((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) => {
5019
5065
  if (l.id && l.grid) {
5020
- let d = ce.get(l.grid);
5021
- d || (d = /* @__PURE__ */ new Map(), ce.set(l.grid, d)), d.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);
5022
5068
  }
5023
- }, []), h = W(() => r.current ? (v.renderCB = o, v.init(n.current, r.current)) : null, [o]);
5024
- return Ve(() => {
5025
- if (!it(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)
5026
5072
  try {
5027
- e.removeAll(!1), e.destroy(!1), s.current.clear(), ce.delete(e), n.current = i, t(h());
5073
+ e.removeAll(!1), e.destroy(!1), s.current.clear(), le.delete(e), n.current = i, t(h());
5028
5074
  } catch (c) {
5029
5075
  console.error("Error reinitializing gridstack", c);
5030
5076
  }
5031
- }, [i, e, h, t]), Ve(() => {
5077
+ }, [i, e, h, t]), Ke(() => {
5032
5078
  if (!e)
5033
5079
  try {
5034
5080
  t(h());
@@ -5036,10 +5082,10 @@ function er({ children: a }) {
5036
5082
  console.error("Error initializing gridstack", c);
5037
5083
  }
5038
5084
  }, [e, h, t]), g(It.Provider, {
5039
- value: te(() => ({
5085
+ value: Et(() => ({
5040
5086
  getWidgetContainer: (c) => {
5041
5087
  if (e) {
5042
- const l = ce.get(e);
5088
+ const l = le.get(e);
5043
5089
  if (l != null && l.has(c))
5044
5090
  return l.get(c) || null;
5045
5091
  }
@@ -5052,9 +5098,9 @@ function er({ children: a }) {
5052
5098
  })
5053
5099
  });
5054
5100
  }
5055
- const Gt = K((a, e) => {
5056
- const t = Me();
5057
- return xt(e, () => ({
5101
+ const Gt = j((a, e) => {
5102
+ const t = Le();
5103
+ return _t(e, () => ({
5058
5104
  addWidget: t.addWidget,
5059
5105
  removeWidget: t.removeWidget,
5060
5106
  addSubGrid: t.addSubGrid,
@@ -5062,19 +5108,19 @@ const Gt = K((a, e) => {
5062
5108
  }), [t]), null;
5063
5109
  });
5064
5110
  Gt.displayName = "RefHandler";
5065
- const Wt = K(({ options: a, widgets: e, onChange: t }, i) => {
5066
- const s = te(() => ({
5111
+ const Wt = j(({ options: a, widgets: e, onChange: t }, i) => {
5112
+ const s = Et(() => ({
5067
5113
  ...a,
5068
5114
  children: e
5069
5115
  }), [e]), r = (o, h, c) => {
5070
5116
  let l = c[0], d = 1 / 0;
5071
5117
  for (const f of c) {
5072
- const p = f.w - o, m = f.h - h, y = p * p + m * m;
5073
- y < d && (d = 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);
5074
5120
  }
5075
5121
  return l;
5076
5122
  };
5077
- return z(qs, {
5123
+ return R(Us, {
5078
5124
  initialOptions: s,
5079
5125
  onResizeStop: (o, h) => {
5080
5126
  var f, p;
@@ -5092,32 +5138,32 @@ const Wt = K(({ options: a, widgets: e, onChange: t }, i) => {
5092
5138
  onChange: t,
5093
5139
  children: [g(Gt, {
5094
5140
  ref: i
5095
- }), g(er, {
5096
- children: g(Ys, {})
5141
+ }), g(Zs, {
5142
+ children: g(Vs, {})
5097
5143
  })]
5098
5144
  });
5099
5145
  });
5100
5146
  Wt.displayName = "F0GridStack";
5101
- const Mr = Ae(
5147
+ const Or = pt(
5102
5148
  "F0GridStack",
5103
5149
  Wt
5104
- ), tr = ({ benefits: a }) => g("div", {
5150
+ ), er = ({ benefits: a }) => g("div", {
5105
5151
  className: "flex flex-col gap-2",
5106
- children: a.map((e, t) => g(ir, {
5152
+ children: a.map((e, t) => g(tr, {
5107
5153
  text: e
5108
5154
  }, t))
5109
- }), ir = ({ text: a }) => z("div", {
5155
+ }), tr = ({ text: a }) => R("div", {
5110
5156
  className: "flex flex-row items-start gap-2",
5111
- children: [g(Hi, {
5112
- icon: Bi,
5157
+ children: [g(Oi, {
5158
+ icon: Li,
5113
5159
  size: "md",
5114
5160
  className: "text-f1-icon-positive"
5115
5161
  }), g("span", {
5116
5162
  children: a
5117
5163
  })]
5118
- }), $t = K(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: h }, 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", {
5119
5165
  ref: c,
5120
- className: j("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"),
5121
5167
  children: [g("div", {
5122
5168
  className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
5123
5169
  children: g("img", {
@@ -5125,26 +5171,26 @@ const Mr = Ae(
5125
5171
  alt: "",
5126
5172
  className: "h-full w-full rounded-lg object-cover"
5127
5173
  })
5128
- }), z("div", {
5174
+ }), R("div", {
5129
5175
  className: "flex flex-col justify-center gap-8 px-8 py-5",
5130
- children: [z("div", {
5176
+ children: [R("div", {
5131
5177
  className: "flex flex-col gap-5",
5132
- children: [z("div", {
5178
+ children: [R("div", {
5133
5179
  className: "flex flex-col gap-2",
5134
- children: [z("div", {
5180
+ children: [R("div", {
5135
5181
  className: "flex flex-row items-center gap-2",
5136
- children: [r && g(vt, {
5182
+ children: [r && g(yt, {
5137
5183
  module: r
5138
5184
  }), n && g("p", {
5139
5185
  className: "text-base font-medium text-f1-foreground",
5140
5186
  children: n
5141
5187
  })]
5142
- }), (o || h) && z("div", {
5188
+ }), (o || h) && R("div", {
5143
5189
  className: "flex justify-start gap-2",
5144
- children: [o && g(Li, {
5190
+ children: [o && g(Ai, {
5145
5191
  icon: o.icon,
5146
5192
  text: o.label
5147
- }), h && g(Mi, {
5193
+ }), h && g(Ti, {
5148
5194
  variant: h.variant || "positive",
5149
5195
  text: h.label
5150
5196
  })]
@@ -5152,7 +5198,7 @@ const Mr = Ae(
5152
5198
  className: "font-bold text-xl text-f1-foreground",
5153
5199
  children: a
5154
5200
  })]
5155
- }), g(tr, {
5201
+ }), g(er, {
5156
5202
  benefits: t
5157
5203
  })]
5158
5204
  }), i && g("div", {
@@ -5162,37 +5208,37 @@ const Mr = Ae(
5162
5208
  })]
5163
5209
  }));
5164
5210
  $t.displayName = "ProductBlankslate";
5165
- function sr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
5166
- const [n, o] = A(a);
5167
- return q(() => {
5211
+ function ir({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
5212
+ const [n, o] = M(a);
5213
+ return ce(() => {
5168
5214
  o(a);
5169
- }, [a]), g(Ii, {
5215
+ }, [a]), g(Mi, {
5170
5216
  open: n,
5171
5217
  onOpenChange: (c) => {
5172
5218
  o(c), c || e();
5173
5219
  },
5174
5220
  modal: !0,
5175
- children: z(Fi, {
5221
+ children: R(Hi, {
5176
5222
  className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
5177
5223
  container: r,
5178
- children: [z("div", {
5224
+ children: [R("div", {
5179
5225
  className: "flex flex-row items-center justify-between px-4 py-4",
5180
- children: [z(Gi, {
5226
+ children: [R(Bi, {
5181
5227
  className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
5182
- children: [s && g(vt, {
5228
+ children: [s && g(yt, {
5183
5229
  module: s,
5184
5230
  size: "lg"
5185
5231
  }), t]
5186
- }), g(Wi, {
5232
+ }), g(Ii, {
5187
5233
  variant: "outline",
5188
5234
  icon: bt,
5189
5235
  onClick: e,
5190
5236
  label: "Close modal",
5191
5237
  hideLabel: !0
5192
5238
  })]
5193
- }), z(gt, {
5239
+ }), R(ft, {
5194
5240
  className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
5195
- children: [i, g(pt, {
5241
+ children: [i, g(gt, {
5196
5242
  orientation: "vertical",
5197
5243
  className: "[&_div]:bg-f1-background"
5198
5244
  })]
@@ -5200,25 +5246,25 @@ function sr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
5200
5246
  })
5201
5247
  });
5202
5248
  }
5203
- function Hr({ 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: y, promoTag: b, showResponseDialog: N = !0 }) {
5204
- const [x, C] = A(a), [D, S] = A(null), [R, E] = A(!1), O = 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 () => {
5205
5251
  if (l != null && l.onClick) {
5206
- E(!0);
5252
+ A(!0);
5207
5253
  try {
5208
- await l.onClick(), C(!1), N && S("success");
5254
+ await l.onClick(), C(!1), _ && N("success");
5209
5255
  } catch {
5210
- N && S("error");
5256
+ _ && N("error");
5211
5257
  } finally {
5212
- E(!1);
5258
+ A(!1);
5213
5259
  }
5214
5260
  }
5215
- }, L = () => {
5261
+ }, H = () => {
5216
5262
  C(!1), e == null || e();
5217
- }, F = R;
5218
- return z(oe, {
5219
- children: [g(sr, {
5220
- isOpen: x,
5221
- onClose: L,
5263
+ }, F = P;
5264
+ return R(we, {
5265
+ children: [g(ir, {
5266
+ isOpen: E,
5267
+ onClose: H,
5222
5268
  title: d,
5223
5269
  module: f,
5224
5270
  portalContainer: m,
@@ -5229,18 +5275,18 @@ function Hr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
5229
5275
  image: i,
5230
5276
  benefits: s,
5231
5277
  withShadow: !1,
5232
- tag: y,
5278
+ tag: v,
5233
5279
  promoTag: b,
5234
- actions: z("div", {
5280
+ actions: R("div", {
5235
5281
  className: "flex gap-3",
5236
- children: [l && g(X, {
5282
+ children: [l && g(V, {
5237
5283
  variant: l.variant,
5238
5284
  label: F ? o.label : l.label,
5239
5285
  icon: l.icon || void 0,
5240
- onClick: O,
5286
+ onClick: W,
5241
5287
  loading: l.loading,
5242
5288
  size: l.size
5243
- }), p && g(X, {
5289
+ }), p && g(V, {
5244
5290
  onClick: p.onClick,
5245
5291
  label: p.label,
5246
5292
  variant: p.variant,
@@ -5250,12 +5296,12 @@ function Hr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
5250
5296
  })
5251
5297
  })
5252
5298
  })
5253
- }), D && N && g(wt, {
5299
+ }), S && _ && g(wt, {
5254
5300
  open: !0,
5255
5301
  onClose: () => {
5256
- L(), S(null);
5302
+ H(), N(null);
5257
5303
  },
5258
- success: D === "success",
5304
+ success: S === "success",
5259
5305
  errorMessage: r,
5260
5306
  successMessage: n,
5261
5307
  nextSteps: h,
@@ -5264,24 +5310,24 @@ function Hr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
5264
5310
  })]
5265
5311
  });
5266
5312
  }
5267
- function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: h = !0 }) {
5268
- const [c, l] = A(!1), d = () => {
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 = () => {
5269
5315
  l(!0), i && i();
5270
5316
  };
5271
- q(() => {
5317
+ ce(() => {
5272
5318
  n && n(!c);
5273
5319
  }, [n, c]);
5274
5320
  const f = a == null ? void 0 : a.includes(".mp4");
5275
- return g(oe, {
5276
- children: c ? null : z($i, {
5321
+ return g(we, {
5322
+ children: c ? null : R(Fi, {
5277
5323
  style: {
5278
5324
  width: r
5279
5325
  },
5280
5326
  className: "relative bg-f1-background p-1",
5281
- children: [z(ji, {
5327
+ children: [R(Gi, {
5282
5328
  children: [s && g("div", {
5283
5329
  className: "absolute right-2 top-2 z-10",
5284
- children: g(X, {
5330
+ children: g(V, {
5285
5331
  variant: "ghost",
5286
5332
  icon: bt,
5287
5333
  size: "sm",
@@ -5289,7 +5335,7 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
5289
5335
  onClick: d,
5290
5336
  label: "Close"
5291
5337
  })
5292
- }), z("div", {
5338
+ }), R("div", {
5293
5339
  children: [g("div", {
5294
5340
  children: a && (f ? g("video", {
5295
5341
  src: a,
@@ -5303,20 +5349,20 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
5303
5349
  alt: e,
5304
5350
  className: "h-full w-full rounded-md"
5305
5351
  }))
5306
- }), z("div", {
5352
+ }), R("div", {
5307
5353
  className: "flex flex-col gap-[2px] p-3",
5308
- children: [g(Ke, {
5354
+ children: [g(Ue, {
5309
5355
  className: "text-lg font-medium",
5310
5356
  children: e
5311
- }), g(Ke, {
5357
+ }), g(Ue, {
5312
5358
  className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
5313
5359
  children: t
5314
5360
  })]
5315
5361
  })]
5316
5362
  })]
5317
- }), o && g(Ui, {
5363
+ }), o && g(Wi, {
5318
5364
  className: "p-3",
5319
- children: o.map((p) => p.type === "upsell" ? g(_t, {
5365
+ children: o.map((p) => p.type === "upsell" ? g(xt, {
5320
5366
  label: p.label,
5321
5367
  onRequest: p.onClick,
5322
5368
  errorMessage: p.errorMessage,
@@ -5326,7 +5372,7 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
5326
5372
  closeLabel: p.closeLabel,
5327
5373
  showConfirmation: h && p.showConfirmation,
5328
5374
  variant: p.variant
5329
- }, p.label) : g(X, {
5375
+ }, p.label) : g(V, {
5330
5376
  label: p.label,
5331
5377
  onClick: p.onClick,
5332
5378
  variant: p.variant
@@ -5335,8 +5381,8 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
5335
5381
  })
5336
5382
  });
5337
5383
  }
5338
- const nr = K(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
5339
- const r = (h) => h.variant === "promote" ? g(_t, {
5384
+ const rr = j(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
5385
+ const r = (h) => h.variant === "promote" ? g(xt, {
5340
5386
  label: h.label,
5341
5387
  onRequest: async () => {
5342
5388
  await h.onClick();
@@ -5349,14 +5395,14 @@ const nr = K(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
5349
5395
  showIcon: h.showIcon,
5350
5396
  showConfirmation: h.showConfirmation,
5351
5397
  variant: h.variant
5352
- }) : g(X, {
5398
+ }) : g(V, {
5353
5399
  onClick: h.onClick,
5354
5400
  label: h.label,
5355
5401
  variant: h.variant || "default",
5356
5402
  size: "md",
5357
5403
  icon: h.icon
5358
5404
  }), n = (e == null ? void 0 : e.variant) !== "promote" ? e : void 0, o = (t == null ? void 0 : t.variant) !== "promote" ? t : void 0;
5359
- return z(qi, {
5405
+ return R($i, {
5360
5406
  ref: s,
5361
5407
  ...i,
5362
5408
  primaryAction: n,
@@ -5364,32 +5410,32 @@ const nr = K(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
5364
5410
  children: [(e == null ? void 0 : e.variant) === "promote" && r(e), (t == null ? void 0 : t.variant) === "promote" && r(t)]
5365
5411
  });
5366
5412
  });
5367
- nr.displayName = "UpsellingBanner";
5368
- function Br({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s = "md", showIcon: r = !0, side: n = "right", align: o = "center", icon: h = Ki, mediaUrl: c, title: l, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: y, hideLabel: b = !1 }) {
5369
- const [N, x] = A(!1), [C, D] = A(null), [S, R] = A(null), E = (k) => {
5370
- e(k), y && y();
5371
- }, O = async (k) => {
5372
- if (k.type === "upsell") {
5373
- 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);
5374
5420
  try {
5375
- await k.onClick(), k.showConfirmation && (x(!0), D("success"));
5421
+ await D.onClick(), D.showConfirmation && (E(!0), S("success"));
5376
5422
  } catch {
5377
- x(!0), D("error");
5423
+ E(!0), S("error");
5378
5424
  }
5379
5425
  }
5380
- }, L = () => {
5381
- D(null), x(!1), R(null), e(!1);
5382
- }, F = a && !N, _ = m == null ? void 0 : m.map((k) => k.type === "upsell" ? {
5383
- ...k,
5384
- onClick: () => O(k)
5385
- } : k);
5386
- return z(oe, {
5387
- children: [z(ct, {
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, {
5388
5434
  open: F,
5389
- onOpenChange: E,
5390
- children: [g(ut, {
5435
+ onOpenChange: A,
5436
+ children: [g(ct, {
5391
5437
  asChild: !0,
5392
- children: g(X, {
5438
+ children: g(V, {
5393
5439
  variant: i,
5394
5440
  label: t,
5395
5441
  size: s,
@@ -5397,11 +5443,11 @@ function Br({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
5397
5443
  onClick: () => e(a),
5398
5444
  hideLabel: b
5399
5445
  })
5400
- }), g(ft, {
5446
+ }), g(ut, {
5401
5447
  side: n,
5402
5448
  align: o,
5403
5449
  className: "w-fit border-none bg-transparent p-2 shadow-none",
5404
- children: g(rr, {
5450
+ children: g(sr, {
5405
5451
  mediaUrl: c,
5406
5452
  title: l,
5407
5453
  description: d,
@@ -5409,60 +5455,60 @@ function Br({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
5409
5455
  dismissible: !1,
5410
5456
  width: f,
5411
5457
  trackVisibility: p,
5412
- actions: _,
5458
+ actions: x,
5413
5459
  showConfirmation: !1
5414
5460
  })
5415
5461
  })]
5416
- }), (S == null ? void 0 : S.type) === "upsell" && S.showConfirmation && C && g(wt, {
5462
+ }), (N == null ? void 0 : N.type) === "upsell" && N.showConfirmation && C && g(wt, {
5417
5463
  open: !0,
5418
- onClose: L,
5464
+ onClose: H,
5419
5465
  success: C === "success",
5420
- errorMessage: S.errorMessage,
5421
- successMessage: S.successMessage,
5422
- nextSteps: S.nextSteps,
5423
- closeLabel: S.closeLabel,
5466
+ errorMessage: N.errorMessage,
5467
+ successMessage: N.successMessage,
5468
+ nextSteps: N.nextSteps,
5469
+ closeLabel: N.closeLabel,
5424
5470
  portalContainer: null
5425
5471
  })]
5426
5472
  });
5427
5473
  }
5428
- const or = xe(null), ar = ({ children: a, fullScreen: e = !0 }) => {
5429
- const t = Y(null), [i, s] = A(t.current);
5430
- return ss(() => {
5474
+ const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
5475
+ const t = Z(null), [i, s] = M(t.current);
5476
+ return es(() => {
5431
5477
  s(t.current);
5432
- }, []), g(or.Provider, {
5478
+ }, []), g(nr.Provider, {
5433
5479
  value: {
5434
5480
  element: i
5435
5481
  },
5436
5482
  children: g("div", {
5437
5483
  ref: t,
5438
5484
  id: "f0-layout",
5439
- className: j({
5485
+ className: L({
5440
5486
  "flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": e
5441
5487
  }),
5442
5488
  children: a
5443
5489
  })
5444
5490
  });
5445
- }, lr = ({ children: a }) => g(is, {
5491
+ }, ar = ({ children: a }) => g(Zi, {
5446
5492
  reducedMotion: "user",
5447
5493
  children: a
5448
- }), Ir = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: h, showExperimentalWarnings: c = !1 }) => g(lr, {
5449
- children: g(Vi, {
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, {
5450
5496
  isDev: o,
5451
5497
  showExperimentalWarnings: c,
5452
- children: g(Yi, {
5498
+ children: g(qi, {
5453
5499
  ...n,
5454
- children: g(Xi, {
5500
+ children: g(Ki, {
5455
5501
  ...r,
5456
- children: g(Ji, {
5502
+ children: g(Vi, {
5457
5503
  ...t,
5458
- children: g(ar, {
5504
+ children: g(or, {
5459
5505
  ...e,
5460
- children: g(Zi, {
5461
- children: g(Qi, {
5506
+ children: g(Yi, {
5507
+ children: g(Xi, {
5462
5508
  initiallyEnabled: i,
5463
- children: g(es, {
5509
+ children: g(Ji, {
5464
5510
  ...s,
5465
- children: g(ts, {
5511
+ children: g(Qi, {
5466
5512
  handler: h,
5467
5513
  children: a
5468
5514
  })
@@ -5474,104 +5520,106 @@ const or = xe(null), ar = ({ children: a, fullScreen: e = !0 }) => {
5474
5520
  })
5475
5521
  })
5476
5522
  })
5477
- }), tt = (a) => `datacollection-${a}`, Fr = {
5523
+ }), et = (a) => `datacollection-${a}`, Br = {
5478
5524
  get: async (a) => JSON.parse(
5479
- localStorage.getItem(tt(a)) ?? "{}"
5525
+ localStorage.getItem(et(a)) ?? "{}"
5480
5526
  ),
5481
5527
  set: async (a, e) => {
5482
- localStorage.setItem(tt(a), JSON.stringify(e));
5528
+ localStorage.setItem(et(a), JSON.stringify(e));
5483
5529
  }
5484
5530
  };
5485
5531
  export {
5486
- mr as AreaChart,
5487
- $r as Await,
5488
- yr as BarChart,
5532
+ pr as AreaChart,
5533
+ Gr as Await,
5534
+ mr as BarChart,
5489
5535
  vr as CategoryBarChart,
5490
- Er as ComboChart,
5491
- jr as DndProvider,
5492
- Ur as EmojiImage,
5493
- qr as F0Avatar,
5494
- Kr as F0AvatarAlert,
5495
- Vr as F0AvatarCompany,
5496
- Yr as F0AvatarDate,
5497
- Xr as F0AvatarEmoji,
5498
- Jr as F0AvatarFile,
5499
- Zr as F0AvatarIcon,
5500
- Qr as F0AvatarList,
5501
- vt as F0AvatarModule,
5502
- en as F0AvatarPerson,
5503
- tn as F0AvatarTeam,
5504
- X as F0Button,
5505
- sn as F0ButtonDropdown,
5506
- rn as F0ButtonToggle,
5507
- nn as F0Card,
5508
- on as F0Checkbox,
5509
- kr as F0ChipList,
5510
- Ar as F0DatePicker,
5511
- an as F0EventCatcherProvider,
5512
- Mr as F0GridStack,
5513
- Hi as F0Icon,
5514
- ln as F0Link,
5515
- Ir as F0Provider,
5516
- hn as F0TagAlert,
5517
- dn as F0TagBalance,
5518
- cn as F0TagCompany,
5519
- un as F0TagDot,
5520
- fn as F0TagList,
5521
- gn as F0TagPerson,
5522
- Li as F0TagRaw,
5523
- Mi as F0TagStatus,
5524
- pn as F0TagTeam,
5525
- mn as GROUP_ID_SYMBOL,
5526
- Lr as HomeLayout,
5527
- br as LineChart,
5528
- yn as OneFilterPicker,
5529
- wr as PieChart,
5530
- Qi as PrivacyModeProvider,
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,
5531
5579
  $t as ProductBlankslate,
5532
5580
  vn as ProductCard,
5533
- Hr as ProductModal,
5534
- rr as ProductWidget,
5581
+ Lr as ProductModal,
5582
+ sr as ProductWidget,
5535
5583
  xr as ProgressBarChart,
5536
- Or as StandardLayout,
5537
- bn as TagCounter,
5538
- Tr as TwoColumnLayout,
5584
+ Pr as StandardLayout,
5585
+ yn as TagCounter,
5586
+ Ar as TwoColumnLayout,
5539
5587
  wt as UpsellRequestResponseDialog,
5540
- nr as UpsellingBanner,
5541
- _t as UpsellingButton,
5542
- Br as UpsellingPopover,
5543
- _r as VerticalBarChart,
5544
- gr as avatarVariants,
5545
- wn as buildTranslations,
5546
- Dr as buttonDropdownSizes,
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,
5547
5595
  Nr as buttonDropdownVariants,
5548
- Rr as buttonSizes,
5549
- Sr as buttonToggleSizes,
5596
+ Er as buttonSizes,
5597
+ Dr as buttonToggleSizes,
5550
5598
  Cr as buttonVariants,
5551
- _n as createAtlaskitDriver,
5599
+ wn as createAtlaskitDriver,
5552
5600
  xn as createDataSourceDefinition,
5553
- Fr as dataCollectionLocalStorageHandler,
5554
- Pr as datepickerSizes,
5555
- fr as defaultTranslations,
5556
- Ae as experimental,
5557
- En as getAnimationVariants,
5601
+ Br as dataCollectionLocalStorageHandler,
5602
+ kr as datepickerSizes,
5603
+ ur as defaultTranslations,
5604
+ pt as experimental,
5605
+ _n as getAnimationVariants,
5558
5606
  Cn as getDataSourcePaginationType,
5559
- Rn as getEmojiLabel,
5607
+ En as getEmojiLabel,
5560
5608
  Nn as isInfiniteScrollPagination,
5561
- Dn as isPageBasedPagination,
5562
- zr as linkVariants,
5563
- Sn as modules,
5564
- zn as predefinedPresets,
5565
- kn as tagDotColors,
5566
- Pn as useData,
5567
- An as useDataSource,
5568
- On as useDndEvents,
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,
5569
5617
  Tn as useDraggable,
5570
- Ln as useDroppableList,
5571
- Mn as useEmojiConfetti,
5572
- Hn as useGroups,
5573
- Bn as usePrivacyMode,
5574
- In as useReducedMotion,
5575
- Fn as useSelectable,
5576
- Gn as useXRay
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
5577
5625
  };