@chaibuilder/sdk 1.1.18 → 1.2.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.
Files changed (122) hide show
  1. package/dist/AddBlocks-57-vroWk.cjs +1 -0
  2. package/dist/AddBlocks-QvCc-oag.js +225 -0
  3. package/dist/BrandingOptions-arKT1zCy.cjs +1 -0
  4. package/dist/{BrandingOptions-zFJ28xmJ.js → BrandingOptions-mZXO7thQ.js} +27 -25
  5. package/dist/{CanvasArea-vTV3O27-.js → CanvasArea-59Gm0EZx.js} +581 -598
  6. package/dist/CanvasArea-jRg53jrS.cjs +59 -0
  7. package/dist/CurrentPage-MLObvs0K.cjs +1 -0
  8. package/dist/{CurrentPage-Ay7X9h9y.js → CurrentPage-YPI5QTjk.js} +17 -14
  9. package/dist/Functions-7jnEwJyw.js +15 -0
  10. package/dist/Functions-N3yhPYKY.cjs +1 -0
  11. package/dist/{Layers-CWnzKXMo.js → Layers-no2keK4N.js} +149 -146
  12. package/dist/Layers-x_mWeT_q.cjs +1 -0
  13. package/dist/MODIFIERS-2FeVfZQ9.cjs +1 -0
  14. package/dist/{MODIFIERS-MLfpKQY1.js → MODIFIERS-RiXS5Mn1.js} +7 -13
  15. package/dist/MarkAsGlobalBlock-S2BhHTsK.cjs +1 -0
  16. package/dist/{MarkAsGlobalBlock-uhj0kGZo.js → MarkAsGlobalBlock-SPWd6Flk.js} +9 -7
  17. package/dist/{PagesPanel-ALbBHaO3.js → PagesPanel-Q08uN4X3.js} +12 -9
  18. package/dist/PagesPanel-pOIuFPOA.cjs +1 -0
  19. package/dist/ProjectPanel-4bN_GyNm.cjs +1 -0
  20. package/dist/{ProjectPanel-tIDarI9R.js → ProjectPanel-zzYV9yrV.js} +25 -22
  21. package/dist/{Settings-5uDMY9SU.js → Settings-28A7R61i.js} +334 -331
  22. package/dist/Settings-KlTtgu3w.cjs +1 -0
  23. package/dist/{SidePanels-D6U95ur1.js → SidePanels--ZK6Iqou.js} +80 -77
  24. package/dist/SidePanels-eJBA_cUu.cjs +1 -0
  25. package/dist/{Topbar-_-1HX-EE.js → Topbar-ks1ckGLz.js} +15 -13
  26. package/dist/Topbar-u5XKdWgQ.cjs +1 -0
  27. package/dist/{UnsplashImages-mqK09h8E.js → UnsplashImages-8vJPuqrF.js} +25 -23
  28. package/dist/UnsplashImages-V8oKEHfi.cjs +1 -0
  29. package/dist/{UploadImages-IDkkRuhx.js → UploadImages-6N6UrjLo.js} +26 -24
  30. package/dist/UploadImages-eHYxwWAp.cjs +1 -0
  31. package/dist/_commonjsHelpers-UyOWmZb0.js +8 -0
  32. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +1 -0
  33. package/dist/{add-page-modal-C1UGoRkw.js → add-page-modal-EHIYTW4T.js} +27 -24
  34. package/dist/add-page-modal-OvNXLGf0.cjs +1 -0
  35. package/dist/{confirm-alert-ea5xpncD.js → confirm-alert-biqvaLT-.js} +9 -7
  36. package/dist/confirm-alert-f3DYO5Hj.cjs +1 -0
  37. package/dist/controls-Dy1qa8Dc.cjs +1 -0
  38. package/dist/controls-XPXGHKht.js +182 -0
  39. package/dist/core.cjs +1 -1
  40. package/dist/core.d.ts +10 -1
  41. package/dist/core.js +60 -57
  42. package/dist/delete-page-modal-U4yiuhx0.cjs +1 -0
  43. package/dist/{delete-page-modal-0GxR128b.js → delete-page-modal-qZJCk_JH.js} +15 -12
  44. package/dist/email-blocks.cjs +1 -0
  45. package/dist/email-blocks.d.ts +3 -0
  46. package/dist/email-blocks.js +35 -0
  47. package/dist/{form-irY39wvJ.js → form-Moz_psOw.js} +16 -16
  48. package/dist/form-lJhy9DEC.cjs +1 -0
  49. package/dist/functions-Ox_svtKm.cjs +1 -0
  50. package/dist/functions-xIebp8Aw.js +23 -0
  51. package/dist/html-to-json-dfALTAdG.cjs +1 -0
  52. package/dist/{html-to-json-wmbV9eZP.js → html-to-json-xKBERAI1.js} +47 -46
  53. package/dist/index-IIJ_o44s.cjs +1 -0
  54. package/dist/{index-qEix1meh.js → index-QEchoZ98.js} +8 -8
  55. package/dist/{index-0OqmBgqo.js → index-_OgCuSUz.js} +528 -533
  56. package/dist/{index-npVo1wi3.cjs → index-hMoPNZVn.cjs} +2 -2
  57. package/dist/{jsx-runtime-NV737rRe.js → jsx-runtime-WbnYoNE9.js} +1 -1
  58. package/dist/{jsx-runtime-WUGKV8jN.cjs → jsx-runtime-Z_BpKhVy.cjs} +7 -7
  59. package/dist/lib.cjs +2 -2
  60. package/dist/lib.d.ts +1 -1
  61. package/dist/lib.js +47 -44
  62. package/dist/page-viewer-WhM1FSU0.cjs +1 -0
  63. package/dist/{page-viewer-mgnZt6nO.js → page-viewer-zFLkUu2I.js} +17 -14
  64. package/dist/{project-general-setting-M52W-vUp.js → project-general-setting-MWGOOurD.js} +16 -13
  65. package/dist/project-general-setting-y8daY7V9.cjs +1 -0
  66. package/dist/project-seo-setting-9JGBPzcA.cjs +1 -0
  67. package/dist/{project-seo-setting-EhqUcTKy.js → project-seo-setting-dXclexQW.js} +15 -13
  68. package/dist/render.cjs +1 -1
  69. package/dist/render.d.ts +1 -1
  70. package/dist/render.js +50 -49
  71. package/dist/server.cjs +1 -1
  72. package/dist/server.d.ts +1 -1
  73. package/dist/server.js +11 -11
  74. package/dist/single-page-detail--xPv74bX.cjs +1 -0
  75. package/dist/{single-page-detail-61UDUgWG.js → single-page-detail-C48IPzbd.js} +77 -74
  76. package/dist/studio.cjs +1 -1
  77. package/dist/studio.js +11 -8
  78. package/dist/ui.cjs +1 -1
  79. package/dist/ui.d.ts +3 -3
  80. package/dist/ui.js +144 -142
  81. package/dist/useAddBlockByDrop-_nd8yZBa.cjs +1 -0
  82. package/dist/useAddBlockByDrop-uPXvrg4G.js +20 -0
  83. package/dist/{utils-XsPKXMVo.js → utils-AvyFzbPC.js} +26 -35
  84. package/dist/utils-PTxFk6qT.cjs +1 -0
  85. package/dist/web-blocks.cjs +9 -0
  86. package/dist/web-blocks.d.ts +3 -0
  87. package/dist/web-blocks.js +1033 -0
  88. package/package.json +5 -2
  89. package/dist/AddBlocks-sKF4ti68.js +0 -222
  90. package/dist/AddBlocks-yPovJXtD.cjs +0 -1
  91. package/dist/BrandingOptions-TRVyCvVq.cjs +0 -1
  92. package/dist/CanvasArea-xxqOiENt.cjs +0 -59
  93. package/dist/CurrentPage-ju6otPNk.cjs +0 -1
  94. package/dist/Layers-d9OU0HRE.cjs +0 -1
  95. package/dist/MODIFIERS-WFzDQfiT.cjs +0 -1
  96. package/dist/MarkAsGlobalBlock-CDmEHNx7.cjs +0 -1
  97. package/dist/PagesPanel-F9Cdi4Pf.cjs +0 -1
  98. package/dist/ProjectPanel-T49RUDyt.cjs +0 -1
  99. package/dist/Settings-eZnusNbR.cjs +0 -1
  100. package/dist/SidePanels-BVM5JwGC.cjs +0 -1
  101. package/dist/Topbar-gQxbcPtG.cjs +0 -1
  102. package/dist/UnsplashImages-PNp5fYCc.cjs +0 -1
  103. package/dist/UploadImages-BoSSsLtD.cjs +0 -1
  104. package/dist/add-page-modal-HP1yv9yJ.cjs +0 -1
  105. package/dist/confirm-alert-dHRDZrA1.cjs +0 -1
  106. package/dist/controls-QnyBNkXG.cjs +0 -36
  107. package/dist/controls-kEuiMMDf.js +0 -4600
  108. package/dist/delete-page-modal-yOgfPcHr.cjs +0 -1
  109. package/dist/form-6qGAOYI3.cjs +0 -1
  110. package/dist/functions-86L6n983.js +0 -23
  111. package/dist/functions-Jr7gX_RX.cjs +0 -1
  112. package/dist/html-to-json-AqLy6ye-.cjs +0 -1
  113. package/dist/index-d55M5MRz.cjs +0 -1
  114. package/dist/lodash-2us0VT8I.cjs +0 -36
  115. package/dist/lodash-3gkdNK5u.js +0 -4538
  116. package/dist/page-viewer-G2YIKVSt.cjs +0 -1
  117. package/dist/project-general-setting-sinIiBKe.cjs +0 -1
  118. package/dist/project-seo-setting-N0OnBCvh.cjs +0 -1
  119. package/dist/single-page-detail-oa-yTXhQ.cjs +0 -1
  120. package/dist/useAddBlockByDrop-5QW86HjG.js +0 -20
  121. package/dist/useAddBlockByDrop-Ckzuvu-s.cjs +0 -1
  122. package/dist/utils-37UXq2O5.cjs +0 -1
@@ -1,13 +1,13 @@
1
- import { j as a } from "./jsx-runtime-NV737rRe.js";
1
+ import { j as a } from "./jsx-runtime-WbnYoNE9.js";
2
2
  import * as m from "react";
3
- import et, { createContext as Os, useContext as zs, useRef as Br, createElement as Rr, useReducer as Vs, useEffect as je, useDebugValue as $s, useCallback as A, useMemo as Fs, useState as De, Suspense as vt } from "react";
3
+ import et, { createContext as Os, useContext as zs, useRef as Cr, createElement as _r, useReducer as Vs, useEffect as je, useDebugValue as $s, useCallback as A, useMemo as Fs, useState as De, Suspense as vt } from "react";
4
4
  import * as zt from "@radix-ui/react-toggle";
5
5
  import { cva as be } from "class-variance-authority";
6
- import { g as le, c as Pe, a as Gs, b as c } from "./utils-XsPKXMVo.js";
6
+ import { c as Pe, a as c } from "./utils-AvyFzbPC.js";
7
7
  import * as He from "@radix-ui/react-switch";
8
- import { Slot as Ws } from "@radix-ui/react-slot";
8
+ import { Slot as Gs } from "@radix-ui/react-slot";
9
9
  import * as pe from "@radix-ui/react-accordion";
10
- import { ChevronDownIcon as Us, Cross2Icon as tt, ChevronRightIcon as st, CheckIcon as Ee, DotFilledIcon as ot, CaretSortIcon as Hs, MagnifyingGlassIcon as qs } from "@radix-ui/react-icons";
10
+ import { ChevronDownIcon as Ws, Cross2Icon as tt, ChevronRightIcon as st, CheckIcon as Ee, DotFilledIcon as ot, CaretSortIcon as Us, MagnifyingGlassIcon as Hs } from "@radix-ui/react-icons";
11
11
  import * as F from "@radix-ui/react-alert-dialog";
12
12
  import * as B from "@radix-ui/react-dialog";
13
13
  import * as Vt from "@radix-ui/react-label";
@@ -23,14 +23,15 @@ import * as $t from "@radix-ui/react-separator";
23
23
  import * as q from "@radix-ui/react-toast";
24
24
  import { Command as U } from "cmdk";
25
25
  import * as T from "@radix-ui/react-context-menu";
26
- import Ks, { IconPickerItem as Js } from "react-icons-picker";
27
- import Ys from "react-dom";
28
- import { n as Y, b as I, o as at, a as oe, i as Qs, j as se, d as V, f as ce, g as E, s as fe, t as nt, c as $, w as zr, x as Ft, y as Gt, z as Be, l as Xs, h as ee, e as Wt, A as qe, B as wt, q as Nt, C as Zs } from "./lodash-3gkdNK5u.js";
29
- import eo from "react-quill";
26
+ import qs, { IconPickerItem as Ks } from "react-icons-picker";
27
+ import Js from "react-dom";
28
+ import { flatten as Y, filter as I, omit as at, isEmpty as oe, isString as Ys, find as se, map as V, each as le, get as E, set as fe, has as nt, includes as $, isUndefined as Lr, without as Ft, forIn as Gt, findIndex as Be, last as Qs, first as ee, startsWith as Wt, isNull as qe, pick as wt, sortBy as Nt, isObject as Xs } from "lodash-es";
29
+ import Zs from "react-quill";
30
30
  import { atom as y, useAtom as R, useAtomValue as L, useSetAtom as de } from "jotai";
31
31
  import Ut from "flat-to-nested";
32
+ import { g as ce, a as eo } from "./Functions-7jnEwJyw.js";
32
33
  import to, { excludeAction as so, ActionCreators as Ve } from "redux-undo";
33
- import { a as ge, I as Ht, S as Ke, B as Je } from "./MODIFIERS-MLfpKQY1.js";
34
+ import { a as ge, I as Ht, S as Ke, B as Je } from "./MODIFIERS-RiXS5Mn1.js";
34
35
  import { useChaiBlocks as oo } from "@chaibuilder/runtime";
35
36
  import { useThrottledCallback as ao } from "@react-hookz/web";
36
37
  import "react-i18next";
@@ -392,7 +393,7 @@ function xo(e, t) {
392
393
  [s, e]
393
394
  );
394
395
  }
395
- function Kr(e, t) {
396
+ function qr(e, t) {
396
397
  return [
397
398
  bo(e, t),
398
399
  // We do wrong type assertion here, which results in throwing an error.
@@ -509,7 +510,7 @@ function ko(e, t) {
509
510
  t || wo
510
511
  );
511
512
  }
512
- function Jr(e) {
513
+ function Kr(e) {
513
514
  const t = Symbol(), s = Z(t);
514
515
  (rt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
515
516
  const o = Z(
@@ -600,7 +601,7 @@ const it = y(null);
600
601
  it.debugLabel = "chaiBuilderPropsAtom";
601
602
  const Co = y({});
602
603
  Co.debugLabel = "chaiExternalDataAtom";
603
- const Yr = () => !1, _o = (e) => {
604
+ const Jr = () => !1, _o = (e) => {
604
605
  const t = e.replace(ge, "").split(",");
605
606
  return { baseClasses: t[0], classes: t[1] };
606
607
  };
@@ -618,15 +619,15 @@ function Yt(e, t, s) {
618
619
  for (let r = 0; r < o.length; r++) {
619
620
  const i = Qt(o[r]);
620
621
  if (Object.keys(i).length > 0 && Object.keys(i).forEach((u) => {
621
- o[r][u] = `slot:${le()}`;
622
+ o[r][u] = `slot:${ce()}`;
622
623
  }), I(e, { _parent: o[r]._id }).length > 0) {
623
- const u = le();
624
+ const u = ce();
624
625
  n.push({ ...o[r], oldId: o[r]._id, _id: u, _parent: s }), n.push(Y(Yt(e, o[r]._id, u)));
625
626
  } else
626
627
  n.push({
627
628
  ...o[r],
628
629
  oldId: o[r]._id,
629
- _id: le(),
630
+ _id: ce(),
630
631
  _parent: s
631
632
  });
632
633
  }
@@ -639,11 +640,11 @@ function Ro(e) {
639
640
  const Qt = (e) => {
640
641
  const t = {};
641
642
  return Object.keys(e).forEach((s) => {
642
- Qs(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
643
+ Ys(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
643
644
  }), t;
644
645
  }, Po = (e, t, s = null) => {
645
646
  let o = se(e, { _id: t });
646
- o = { ...o, oldId: o._id, _id: le() }, s && (o = { ...o, _parent: s });
647
+ o = { ...o, oldId: o._id, _id: ce() }, s && (o = { ...o, _parent: s });
647
648
  const n = [o];
648
649
  I(e, { _parent: t }).length > 0 && n.push(Y(Yt(e, t, o._id)));
649
650
  const r = Y(n);
@@ -705,8 +706,6 @@ const Io = y("");
705
706
  Io.debugLabel = "builderActivePageAtom";
706
707
  const Mo = y(-1);
707
708
  Mo.debugLabel = "destinationDropIndexAtom";
708
- const Do = y(!1);
709
- Do.debugLabel = "addBlocksModalAtom";
710
709
  const Zt = y([]);
711
710
  Zt.debugLabel = "buildingBlocksAtom";
712
711
  const es = y((e) => {
@@ -717,7 +716,7 @@ es.debugLabel = "globalBlocksAtom";
717
716
  const K = () => {
718
717
  const [, e] = R(Oe);
719
718
  return e;
720
- }, Qr = () => {
719
+ }, Yr = () => {
721
720
  const e = K(), t = L(Xt), s = A(
722
721
  (o) => {
723
722
  const n = Jt(o);
@@ -726,7 +725,7 @@ const K = () => {
726
725
  [e]
727
726
  );
728
727
  return [t, s];
729
- }, Xr = () => {
728
+ }, Qr = () => {
730
729
  const e = K();
731
730
  return [A(
732
731
  (s) => {
@@ -734,11 +733,11 @@ const K = () => {
734
733
  },
735
734
  [e]
736
735
  )];
737
- }, Eo = (e) => ["Box", "Slot", "Form", "Link", "Paragraph", "Heading", "List", "ListItem", "Table", "TableCell"].includes(e), Zr = (e) => !["Slot"].includes(e), ei = (e) => !["Slot"].includes(e);
736
+ }, Do = (e) => ["Box", "Slot", "Form", "Link", "Paragraph", "Heading", "List", "ListItem", "Table", "TableCell"].includes(e), Xr = (e) => !["Slot"].includes(e), Zr = (e) => !["Slot"].includes(e);
738
737
  function Ye(e, t) {
739
- return e === "Slot" || t === "List" && e !== "ListItem" || t === "Row" && e !== "Column" || t === "Heading" && !$(["Span", "Text"], e) || t === "Paragraph" && !$(["Span", "Text"], e) ? !1 : Eo(t);
738
+ return e === "Slot" || t === "List" && e !== "ListItem" || t === "Row" && e !== "Column" || t === "Heading" && !$(["Span", "Text"], e) || t === "Paragraph" && !$(["Span", "Text"], e) ? !1 : Do(t);
740
739
  }
741
- const ti = (e, { dragSource: t, dropTarget: s }) => {
740
+ const ei = (e, { dragSource: t, dropTarget: s }) => {
742
741
  const o = E(t, "data._type", ""), n = E(s, "data._type", "");
743
742
  return o === "Slot" || E(t, "id") && E(t, "id") === E(s, "id") ? !1 : oe(n) ? !0 : Ye(o, n);
744
743
  }, ct = y([]);
@@ -759,11 +758,11 @@ const ut = y((e) => {
759
758
  };
760
759
  });
761
760
  ut.debugLabel = "selectedBlockAtom";
762
- const Lo = (e) => E(e, "parent", null), Oo = y((e) => {
763
- const t = e(dt), s = V(t, Lo);
761
+ const Eo = (e) => E(e, "parent", null), Lo = y((e) => {
762
+ const t = e(dt), s = V(t, Eo);
764
763
  return I(e(Q), (o) => $(s, o._id));
765
764
  });
766
- Oo.debugLabel = "selectedBlocksParentsAtom";
765
+ Lo.debugLabel = "selectedBlocksParentsAtom";
767
766
  const ts = y(() => !1);
768
767
  ts.debugLabel = "selectedBlockFlexChildAtom";
769
768
  const ss = y(() => !1);
@@ -772,10 +771,10 @@ const mt = y("");
772
771
  mt.debugLabel = "styleStateAtom";
773
772
  const os = Ae("styleBreakpoint", "xs");
774
773
  os.debugLabel = "styleBreakpointAtom";
775
- const si = () => ({
774
+ const ti = () => ({
776
775
  flexChild: L(ts),
777
776
  gridChild: L(ss)
778
- }), oi = () => L(ut);
777
+ }), si = () => L(ut);
779
778
  const Ce = () => {
780
779
  const [e, t] = R(ct), s = A(
781
780
  (o) => {
@@ -850,9 +849,9 @@ const Ce = () => {
850
849
  }, as = (e) => {
851
850
  const t = {};
852
851
  return Object.keys(e).forEach((s) => {
853
- t[s] = Vo(e[s]);
852
+ t[s] = zo(e[s]);
854
853
  }), t;
855
- }, zo = (e) => {
854
+ }, Oo = (e) => {
856
855
  if (oe(e.default))
857
856
  return [];
858
857
  const { itemProperties: t } = e;
@@ -862,24 +861,24 @@ const Ce = () => {
862
861
  nt(t, r) && E(t[r], "i18n", !1) && (o[r] = Ht);
863
862
  }), o;
864
863
  });
865
- }, Vo = (e) => {
864
+ }, zo = (e) => {
866
865
  switch (e.type) {
867
866
  case "styles":
868
867
  return e.default;
869
868
  case "slot":
870
- return `${Ke}${le()}`;
869
+ return `${Ke}${ce()}`;
871
870
  case "singular":
872
871
  const { i18n: t, schema: s } = e;
873
872
  return t ? Ht : E(s, "default", "");
874
873
  case "model":
875
874
  return as(e.properties);
876
875
  case "list":
877
- return zo(e);
876
+ return Oo(e);
878
877
  default:
879
878
  return "";
880
879
  }
881
880
  };
882
- const $o = () => L(Q);
881
+ const Vo = () => L(Q);
883
882
  function Pt(e, t, s, o, n) {
884
883
  if (s !== null) {
885
884
  const p = Be(e, { _parent: t }), l = (p === -1 ? 0 : p) + s;
@@ -891,17 +890,17 @@ function Pt(e, t, s, o, n) {
891
890
  }
892
891
  let r = Be(e, { _id: t });
893
892
  const i = I(e, { _parent: t });
894
- oe(i) || (r = Be(e, { _id: Xs(i)._id }));
893
+ oe(i) || (r = Be(e, { _id: Qs(i)._id }));
895
894
  const u = r + 1;
896
895
  return e.splice(u, 0, ...o), e;
897
896
  }
898
- const ai = () => {
899
- const e = K(), t = $o(), [, s] = Ce(), o = A(
897
+ const oi = () => {
898
+ const e = K(), t = Vo(), [, s] = Ce(), o = A(
900
899
  (r, i, u) => {
901
900
  var w;
902
901
  for (let k = 0; k < r.length; k++) {
903
902
  const { _id: D } = r[k];
904
- r[k]._id = le();
903
+ r[k]._id = ce();
905
904
  const W = I(r, { _parent: D });
906
905
  for (let G = 0; G < W.length; G++)
907
906
  W[G]._parent = r[k]._id;
@@ -923,7 +922,7 @@ const ai = () => {
923
922
  const G = r.blocks;
924
923
  return o(G, i, u);
925
924
  }
926
- const p = le(), l = as(r.props), b = [];
925
+ const p = ce(), l = as(r.props), b = [];
927
926
  Gt(l, (G, ae) => {
928
927
  if (Wt(G, Ke)) {
929
928
  const he = G.replace(Ke, "");
@@ -962,7 +961,7 @@ const ai = () => {
962
961
  xl: 1280,
963
962
  "2xl": 1536
964
963
  }, It = ["xs", "sm", "md", "lg", "xl", "2xl"];
965
- function Fo(e, t) {
964
+ function $o(e, t) {
966
965
  if (t === null)
967
966
  return "baseClasses";
968
967
  const s = t.mq;
@@ -983,7 +982,7 @@ function Fo(e, t) {
983
982
  return o;
984
983
  }
985
984
  const Mt = [];
986
- function Go(e = "", t = "", s = []) {
985
+ function Fo(e = "", t = "", s = []) {
987
986
  e = e.trim().replace(/ +/g, "");
988
987
  let o = I(
989
988
  V(e.split(" "), Pe),
@@ -994,12 +993,12 @@ function Go(e = "", t = "", s = []) {
994
993
  (l) => !$(Mt, l.property)
995
994
  );
996
995
  const r = [], i = [];
997
- ce(s, (l) => {
996
+ le(s, (l) => {
998
997
  const b = Pe(l), w = se(o, wt(b, ["dark", "mq", "mod", "property"]));
999
998
  if (w && (o = I(
1000
999
  o,
1001
1000
  (k) => k.fullCls !== (w == null ? void 0 : w.fullCls)
1002
- )), r.push(b), b.mq === "xs" && !b.dark && b.mod === "" && (n = I(n, (k) => k.property !== b.property)), Fo(o, b) === "baseClasses" && !$(Mt, b.property)) {
1001
+ )), r.push(b), b.mq === "xs" && !b.dark && b.mod === "" && (n = I(n, (k) => k.property !== b.property)), $o(o, b) === "baseClasses" && !$(Mt, b.property)) {
1003
1002
  const k = se(n, wt(b, ["property"]));
1004
1003
  w && (n = I(
1005
1004
  n,
@@ -1022,10 +1021,10 @@ function Go(e = "", t = "", s = []) {
1022
1021
  }
1023
1022
  const _e = y([]);
1024
1023
  _e.debugLabel = "selectedStylingBlocksAtom";
1025
- const ns = () => R(_e), Wo = (e) => {
1024
+ const ns = () => R(_e), Go = (e) => {
1026
1025
  const t = e.replace(ge, "").split(",");
1027
1026
  return { baseClasses: t[0], classes: t[1] };
1028
- }, Uo = y(null, (e, t, { blockIds: s, newClasses: o, dispatch: n }) => {
1027
+ }, Wo = y(null, (e, t, { blockIds: s, newClasses: o, dispatch: n }) => {
1029
1028
  const r = I(
1030
1029
  e(lt),
1031
1030
  (u) => (
@@ -1033,18 +1032,18 @@ const ns = () => R(_e), Wo = (e) => {
1033
1032
  s.includes(e(u)._id)
1034
1033
  )
1035
1034
  ), i = ee(e(_e));
1036
- ce(r, (u) => {
1037
- const p = e(u), l = E(p, i.prop, `${ge},`), { baseClasses: b, classes: w } = Wo(l);
1035
+ le(r, (u) => {
1036
+ const p = e(u), l = E(p, i.prop, `${ge},`), { baseClasses: b, classes: w } = Go(l);
1038
1037
  n({
1039
1038
  type: "update_props_realtime",
1040
1039
  payload: {
1041
1040
  ids: [p._id],
1042
- props: { [i.prop]: `${ge}${Go(w, b, o)}` }
1041
+ props: { [i.prop]: `${ge}${Fo(w, b, o)}` }
1043
1042
  }
1044
1043
  });
1045
1044
  });
1046
- }), ni = () => {
1047
- const e = K(), t = de(Uo);
1045
+ }), ai = () => {
1046
+ const e = K(), t = de(Wo);
1048
1047
  return A(
1049
1048
  (s, o, n) => {
1050
1049
  t({ blockIds: s, newClasses: o, dispatch: e }), n && setTimeout(() => e({ type: "create_snapshot" }), 500);
@@ -1052,22 +1051,22 @@ const ns = () => R(_e), Wo = (e) => {
1052
1051
  [e, t]
1053
1052
  );
1054
1053
  }, Dt = () => {
1055
- }, Ho = () => {
1054
+ }, Uo = () => {
1056
1055
  const e = oo(), t = L(es), s = () => {
1057
1056
  Dt();
1058
1057
  }, o = A(() => Dt(), []);
1059
1058
  return [e, t, s, o];
1060
- }, qo = y(!1), Ko = () => {
1061
- const [e, t] = R(qo);
1059
+ }, Ho = y(!1), qo = () => {
1060
+ const [e, t] = R(Ho);
1062
1061
  return [e, t];
1063
- }, Jo = y(Je), Yo = () => {
1064
- const [e, t] = R(Jo);
1062
+ }, Ko = y(Je), Jo = () => {
1063
+ const [e, t] = R(Ko);
1065
1064
  return [
1066
- Zs(e) ? { ...Je, ...e } : Je,
1065
+ Xs(e) ? { ...Je, ...e } : Je,
1067
1066
  t
1068
1067
  ];
1069
- }, Qo = y(null), Xo = () => ({ currentPage: L(Qo) }), rs = new Ut({});
1070
- function Zo(e) {
1068
+ }, Yo = y(null), Qo = () => ({ currentPage: L(Yo) }), rs = new Ut({});
1069
+ function Xo(e) {
1071
1070
  let t = rs.convert(e);
1072
1071
  return t = !t.type && t.children && t.children.length ? t.children : oe(t) ? [] : [t], t;
1073
1072
  }
@@ -1093,11 +1092,11 @@ function ft(e, t = !1) {
1093
1092
  }
1094
1093
  function is(e) {
1095
1094
  let t = [], s = I(e, { type: "GlobalBlock" });
1096
- return s.length > 0 && (s = V(s, ls), ce(s, (o) => {
1097
- t = [...t, ...ea(o)];
1095
+ return s.length > 0 && (s = V(s, ls), le(s, (o) => {
1096
+ t = [...t, ...Zo(o)];
1098
1097
  })), t;
1099
1098
  }
1100
- function ea(e) {
1099
+ function Zo(e) {
1101
1100
  let t = [];
1102
1101
  const s = E(ee(e), "parent", null);
1103
1102
  fe(ee(e), "parent", null);
@@ -1115,20 +1114,20 @@ function ls(e) {
1115
1114
  }
1116
1115
  const cs = (e) => JSON.parse(JSON.stringify(e));
1117
1116
  let Qe = [];
1118
- function ta(e) {
1117
+ function ea(e) {
1119
1118
  Qe = e;
1120
- const t = Zo(cs(e));
1119
+ const t = Xo(cs(e));
1121
1120
  ft(t);
1122
1121
  const s = pt(t, null), o = is(s), n = {};
1123
- return ce(o, (r) => fe(n, ee(r).blockId, r)), [s, n];
1122
+ return le(o, (r) => fe(n, ee(r).blockId, r)), [s, n];
1124
1123
  }
1125
1124
  const ds = () => {
1126
- const [e] = Yo(), { currentPage: t } = Xo(), s = L(Q);
1125
+ const [e] = Jo(), { currentPage: t } = Qo(), s = L(Q);
1127
1126
  return A(() => {
1128
1127
  const o = V(
1129
1128
  s,
1130
1129
  (i) => at(i, ["expanded", "order", "title", "siblings", "tempClasses"])
1131
- ), [n = [], r = []] = ta(o);
1130
+ ), [n = [], r = []] = ea(o);
1132
1131
  return {
1133
1132
  currentPage: t,
1134
1133
  blocks: n,
@@ -1140,43 +1139,41 @@ const ds = () => {
1140
1139
  return E(s, e, t);
1141
1140
  }, us = y(!1);
1142
1141
  us.debugLabel = "readOnlyModeAtom";
1143
- const sa = y(!1);
1144
- sa.debugLabel = "advanceStylingOpenAtom";
1145
- const oa = y("online");
1146
- oa.debugLabel = "networkModeAtom";
1142
+ const ta = y(!1);
1143
+ ta.debugLabel = "advanceStylingOpenAtom";
1144
+ const sa = y("online");
1145
+ sa.debugLabel = "networkModeAtom";
1146
+ const oa = y(!1);
1147
+ oa.debugLabel = "codeEditorOpenAtom";
1147
1148
  const aa = y(!1);
1148
- aa.debugLabel = "codeEditorOpenAtom";
1149
- const na = y(!1);
1150
- na.debugLabel = "editLayerNameAtom";
1149
+ aa.debugLabel = "editLayerNameAtom";
1150
+ const na = y("");
1151
+ na.debugLabel = "activeLanguageAtom";
1151
1152
  const ra = y("");
1152
- ra.debugLabel = "activeLanguageAtom";
1153
- const ia = y("");
1154
- ia.debugLabel = "primaryLanguageAtom";
1155
- const la = y(null);
1156
- la.debugLabel = "canvasIframeAtom";
1157
- const ca = y("layers");
1158
- ca.debugLabel = "activePanelAtom";
1159
- const da = y(!1);
1160
- da.debugLabel = "addBlockOffCanvasAtom";
1161
- const ua = y("");
1162
- ua.debugLabel = "showPredefinedBlockCategoryAtom";
1153
+ ra.debugLabel = "primaryLanguageAtom";
1154
+ const ia = y(null);
1155
+ ia.debugLabel = "canvasIframeAtom";
1156
+ const la = y("layers");
1157
+ la.debugLabel = "activePanelAtom";
1158
+ const ca = y("");
1159
+ ca.debugLabel = "showPredefinedBlockCategoryAtom";
1163
1160
  const ze = y({ undoCount: 0, redoCount: 0 });
1164
1161
  ze.debugLabel = "historyStatesAtom";
1162
+ const da = y("");
1163
+ da.debugLabel = "inlineEditingActiveAtom";
1164
+ const ua = y(!1);
1165
+ ua.debugLabel = "draggingFlagAtom";
1165
1166
  const ma = y("");
1166
- ma.debugLabel = "inlineEditingActiveAtom";
1167
- const pa = y(!1);
1168
- pa.debugLabel = "draggingFlagAtom";
1169
- const fa = y("");
1170
- fa.debugLabel = "draggedBlockIdAtom";
1167
+ ma.debugLabel = "draggedBlockIdAtom";
1171
1168
  const ms = y([]);
1172
1169
  ms.debugLabel = "dataProvidersAtom";
1173
- const ga = () => R(ms), gt = y("SAVED");
1170
+ const pa = () => R(ms), gt = y("SAVED");
1174
1171
  gt.debugLabel = "pageSyncStateAtom";
1175
- const ri = () => {
1172
+ const ni = () => {
1176
1173
  const [e, t] = R(gt), s = ve("onSaveBlocks", async () => {
1177
1174
  }), o = ve("onSavePage", async () => {
1178
1175
  }), n = ve("onSyncStatusChange", () => {
1179
- }), r = ds(), i = de(ze), { undoCount: u, redoCount: p } = bt(), [l] = ga();
1176
+ }), r = ds(), i = de(ze), { undoCount: u, redoCount: p } = bt(), [l] = pa();
1180
1177
  return { savePage: ao(
1181
1178
  async () => {
1182
1179
  t("SAVING"), n("SAVING");
@@ -1190,7 +1187,7 @@ const ri = () => {
1190
1187
  // save only every 5 seconds
1191
1188
  ), syncState: e, setSyncState: t };
1192
1189
  }, bt = () => {
1193
- const e = L(Oe), [{ undoCount: t, redoCount: s }] = R(ze), o = K(), [n] = Ko(), [, r] = Ce(), [, i] = ns(), [u, p] = R(gt), l = ve("onSyncStatusChange", () => {
1190
+ const e = L(Oe), [{ undoCount: t, redoCount: s }] = R(ze), o = K(), [n] = qo(), [, r] = Ce(), [, i] = ns(), [u, p] = R(gt), l = ve("onSyncStatusChange", () => {
1194
1191
  }), b = A(() => {
1195
1192
  o({ type: "create_snapshot" });
1196
1193
  }, [o]);
@@ -1214,15 +1211,15 @@ const ri = () => {
1214
1211
  },
1215
1212
  createSnapshot: b
1216
1213
  };
1217
- }, ba = () => R(os), ps = Ae("canvasWidth", 800), fs = y((e) => {
1214
+ }, fa = () => R(os), ps = Ae("canvasWidth", 800), fs = y((e) => {
1218
1215
  const t = e(ps);
1219
- return Gs(t).toLowerCase();
1220
- }), ii = () => {
1221
- const [e, t] = R(ps), s = L(fs), [o, n] = ba();
1216
+ return eo(t).toLowerCase();
1217
+ }), ri = () => {
1218
+ const [e, t] = R(ps), s = L(fs), [o, n] = fa();
1222
1219
  return je(() => {
1223
1220
  o !== "xs" && n(s);
1224
1221
  }, [s, o, n]), [e, s, t];
1225
- }, xa = Ae("canvasZoom", 100), li = () => R(xa), gs = y([]), ha = () => {
1222
+ }, ga = Ae("canvasZoom", 100), ii = () => R(ga), gs = y([]), ba = () => {
1226
1223
  const [e, t] = R(gs), s = de(xt), o = A(
1227
1224
  (n) => {
1228
1225
  t(n), s([]);
@@ -1230,7 +1227,7 @@ const ri = () => {
1230
1227
  [t, s]
1231
1228
  );
1232
1229
  return [e, o];
1233
- }, xt = y([]), ci = () => {
1230
+ }, xt = y([]), li = () => {
1234
1231
  const [e, t] = R(xt), s = de(gs), o = A(
1235
1232
  (n) => {
1236
1233
  t(n), s([]);
@@ -1238,42 +1235,42 @@ const ri = () => {
1238
1235
  [t, s]
1239
1236
  );
1240
1237
  return [e, o];
1241
- }, bs = Ae("darkMode", !1), di = () => {
1238
+ }, bs = Ae("darkMode", !1), ci = () => {
1242
1239
  const [e, t] = R(bs);
1243
1240
  return [e, t];
1244
- }, ya = y(!1), ui = () => {
1245
- const [e, t] = R(ya);
1241
+ }, xa = y(!1), di = () => {
1242
+ const [e, t] = R(xa);
1246
1243
  return [e, t];
1247
- }, va = () => {
1244
+ }, ha = () => {
1248
1245
  const e = K(), t = L(Q), [, s] = Ce();
1249
1246
  return A(
1250
1247
  (o, n = null) => {
1251
1248
  const r = [];
1252
- ce(o, (i) => {
1249
+ le(o, (i) => {
1253
1250
  const p = Po(t, i, n === i ? null : n);
1254
1251
  r.push(E(p, "0._id", "")), e({ type: "add_duplicate_blocks", payload: p });
1255
1252
  }), s(r), e({ type: "create_snapshot" });
1256
1253
  },
1257
1254
  [t, s, e]
1258
1255
  );
1259
- }, wa = y([]), mi = () => {
1260
- const [e, t] = R(wa), s = A(
1256
+ }, ya = y([]), ui = () => {
1257
+ const [e, t] = R(ya), s = A(
1261
1258
  (o) => {
1262
1259
  t((n) => $(n, o) ? Ft(n, o) : [...n, o]);
1263
1260
  },
1264
1261
  [t]
1265
1262
  );
1266
1263
  return [e, t, s];
1267
- }, Na = y(""), ka = () => R(Na), pi = () => {
1268
- const e = L(Q), t = K(), s = ds(), [, , o] = Ho();
1264
+ }, va = y(""), wa = () => R(va), mi = () => {
1265
+ const e = L(Q), t = K(), s = ds(), [, , o] = Uo();
1269
1266
  return A(
1270
1267
  async (n, r) => {
1271
- const i = le(16), u = V(e, (p) => (p._id === n && (p._globalBlockId = i, p._name = r), p));
1268
+ const i = ce(16), u = V(e, (p) => (p._id === n && (p._globalBlockId = i, p._name = r), p));
1272
1269
  t({ type: "set_page_blocks", payload: u }), o();
1273
1270
  },
1274
1271
  [e, t, s, o]
1275
1272
  );
1276
- }, fi = () => ({}), Sa = () => {
1273
+ }, pi = () => ({}), Na = () => {
1277
1274
  const e = L(Q), t = K();
1278
1275
  return A(
1279
1276
  (s, o) => {
@@ -1282,8 +1279,8 @@ const ri = () => {
1282
1279
  },
1283
1280
  [e, t]
1284
1281
  );
1285
- }, gi = () => {
1286
- const e = L(xt), [t, s] = ha(), o = va(), n = Sa();
1282
+ }, fi = () => {
1283
+ const e = L(xt), [t, s] = ba(), o = ha(), n = Na();
1287
1284
  return {
1288
1285
  canPaste: Fs(
1289
1286
  () => t.length > 0 || e.length > 0,
@@ -1296,8 +1293,8 @@ const ri = () => {
1296
1293
  [t, e, o, n, s]
1297
1294
  )
1298
1295
  };
1299
- }, ja = y(""), bi = () => {
1300
- const e = L(ja), t = A(() => {
1296
+ }, ka = y(""), gi = () => {
1297
+ const e = L(ka), t = A(() => {
1301
1298
  }, []), s = A(() => {
1302
1299
  }, []), o = A(() => {
1303
1300
  }, []);
@@ -1305,7 +1302,7 @@ const ri = () => {
1305
1302
  }, xs = (e, t) => {
1306
1303
  const s = [], o = I(e, (n) => $(t, n._id) || $(t, n._parent) ? (s.push(n._id), !1) : !0);
1307
1304
  return oe(s) ? o : xs(o, s);
1308
- }, xi = () => {
1305
+ }, bi = () => {
1309
1306
  const e = K(), t = L(Q), [s, o] = Ce();
1310
1307
  return A(
1311
1308
  (n) => {
@@ -1315,7 +1312,7 @@ const ri = () => {
1315
1312
  },
1316
1313
  [t, o, e, s]
1317
1314
  );
1318
- }, Aa = y(null, (e, t, { blockIds: s, fullClasses: o, dispatch: n }) => {
1315
+ }, Sa = y(null, (e, t, { blockIds: s, fullClasses: o, dispatch: n }) => {
1319
1316
  const r = ee(e(_e)), i = I(
1320
1317
  e(lt),
1321
1318
  (u) => (
@@ -1323,15 +1320,15 @@ const ri = () => {
1323
1320
  s.includes(e(u)._id)
1324
1321
  )
1325
1322
  );
1326
- ce(i, (u) => {
1323
+ le(i, (u) => {
1327
1324
  const p = e(u), l = o;
1328
1325
  let { classes: b, baseClasses: w } = _o(E(p, r.prop, "styles:,"));
1329
- ce(l, (k) => {
1326
+ le(l, (k) => {
1330
1327
  const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1331
1328
  b = b.replace(D, " ").replace(/ +/g, " ").trim();
1332
1329
  const W = ee(k.split(":"));
1333
1330
  $(["2xl", "xl", "lg", "md", "sm"], W) && l.push(k.split(":").pop().trim());
1334
- }), ce(l, (k) => {
1331
+ }), le(l, (k) => {
1335
1332
  const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1336
1333
  w = w.replace(D, " ").replace(/ +/g, " ").trim();
1337
1334
  }), n({
@@ -1344,8 +1341,8 @@ const ri = () => {
1344
1341
  }
1345
1342
  });
1346
1343
  });
1347
- }), hi = () => {
1348
- const e = K(), t = de(Aa);
1344
+ }), xi = () => {
1345
+ const e = K(), t = de(Sa);
1349
1346
  return A(
1350
1347
  (s, o) => {
1351
1348
  t({ blockIds: s, fullClasses: o, dispatch: e }), setTimeout(() => e({ type: "create_snapshot" }));
@@ -1358,11 +1355,11 @@ const ri = () => {
1358
1355
  return [];
1359
1356
  const n = E(s, t.prop, `${ge},`).replace(ge, "").split(",").join(" ");
1360
1357
  return I(V(n.trim().split(" "), Pe), (r) => !qe(r));
1361
- }), yi = () => L(hs), Et = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ca = y((e) => {
1362
- const t = e(fs), s = e(mt), o = e(bs), n = _a(t);
1358
+ }), hi = () => L(hs), Et = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, ja = y((e) => {
1359
+ const t = e(fs), s = e(mt), o = e(bs), n = Aa(t);
1363
1360
  let r = I(e(hs), { mod: s });
1364
1361
  return Wt(s, "_") || (r = I(r, (i) => n.includes(i.mq))), r = r.sort((i, u) => Et[i.mq] - Et[u.mq]), o || (r = I(r, { dark: !1 })), r;
1365
- }), _a = (e) => {
1362
+ }), Aa = (e) => {
1366
1363
  let t = [];
1367
1364
  switch (e) {
1368
1365
  case "xs":
@@ -1388,12 +1385,12 @@ const ri = () => {
1388
1385
  break;
1389
1386
  }
1390
1387
  return t;
1391
- }, vi = () => L(Ca), wi = () => R(mt), ys = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
1388
+ }, yi = () => L(ja), vi = () => R(mt), ys = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
1392
1389
  n({
1393
1390
  type: "update_props_realtime",
1394
1391
  payload: { ids: s, props: o }
1395
1392
  });
1396
- }), Ni = () => {
1393
+ }), wi = () => {
1397
1394
  const { createSnapshot: e } = bt(), t = K(), s = de(ys);
1398
1395
  return A(
1399
1396
  (o, n) => {
@@ -1401,7 +1398,7 @@ const ri = () => {
1401
1398
  },
1402
1399
  [e, t, s]
1403
1400
  );
1404
- }, ki = () => {
1401
+ }, Ni = () => {
1405
1402
  const e = K(), t = de(ys);
1406
1403
  return A(
1407
1404
  (s, o) => {
@@ -1414,8 +1411,8 @@ const ri = () => {
1414
1411
  props: {},
1415
1412
  modalProps: {},
1416
1413
  backdropClose: !0
1417
- }, Ba = y(vs), Si = () => {
1418
- const [e, t] = R(Ba), s = A(
1414
+ }, Ca = y(vs), ki = () => {
1415
+ const [e, t] = R(Ca), s = A(
1419
1416
  (n, r = {}, i = {}) => {
1420
1417
  t({ name: n, props: r, modalProps: i });
1421
1418
  },
@@ -1432,31 +1429,31 @@ const ri = () => {
1432
1429
  openModal: s,
1433
1430
  closeModal: o
1434
1431
  };
1435
- }, ji = () => L(us), Ra = y(""), Pa = y(null), Ai = () => R(Ra), Ci = () => R(Pa), Ta = Ae("selectedBreakpoints", ["XS", "MD", "XL"]), _i = () => {
1436
- const [e, t] = R(Ta);
1432
+ }, Si = () => L(us), _a = y(""), Ba = y(null), ji = () => R(_a), Ai = () => R(Ba), Ra = Ae("selectedBreakpoints", ["XS", "MD", "XL"]), Ci = () => {
1433
+ const [e, t] = R(Ra);
1437
1434
  return [e, t];
1438
- }, Bi = () => {
1439
- const e = de(ze), { clear: t } = bt(), [, s] = Ce(), [, o] = ka(), [, n] = ns();
1435
+ }, _i = () => {
1436
+ const e = de(ze), { clear: t } = bt(), [, s] = Ce(), [, o] = wa(), [, n] = ns();
1440
1437
  return () => {
1441
1438
  s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
1442
1439
  };
1443
- }, Ia = y({ en: {} }), Ri = () => {
1444
- const [e, t] = R(Ia), s = A(
1440
+ }, Pa = y({ en: {} }), Bi = () => {
1441
+ const [e, t] = R(Pa), s = A(
1445
1442
  (o, n, r) => {
1446
1443
  fe(e, `${o}.${n}`, r), t(e);
1447
1444
  },
1448
1445
  [e, t]
1449
1446
  );
1450
1447
  return [e, s];
1451
- }, Pi = (e, t) => {
1448
+ }, Ri = (e, t) => {
1452
1449
  const [s] = R(it);
1453
1450
  return E(s, e, t);
1454
- }, Ma = y([]), Ti = () => {
1455
- const [e, t] = De(!1), [s, o] = R(Ma), n = ve("getUILibraryBlocks", () => []);
1451
+ }, Ta = y([]), Pi = () => {
1452
+ const [e, t] = De(!1), [s, o] = R(Ta), n = ve("getUILibraryBlocks", () => []);
1456
1453
  return je(() => {
1457
1454
  (async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
1458
1455
  }, []), { data: s, isLoading: e };
1459
- }, Da = be(
1456
+ }, Ia = be(
1460
1457
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1461
1458
  {
1462
1459
  variants: {
@@ -1475,9 +1472,9 @@ const ri = () => {
1475
1472
  size: "default"
1476
1473
  }
1477
1474
  }
1478
- ), Ea = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(zt.Root, { ref: n, className: c(Da({ variant: t, size: s, className: e })), ...o }));
1479
- Ea.displayName = zt.Root.displayName;
1480
- const La = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1475
+ ), Ma = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(zt.Root, { ref: n, className: c(Ia({ variant: t, size: s, className: e })), ...o }));
1476
+ Ma.displayName = zt.Root.displayName;
1477
+ const Da = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1481
1478
  He.Root,
1482
1479
  {
1483
1480
  className: c(
@@ -1496,7 +1493,7 @@ const La = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1496
1493
  )
1497
1494
  }
1498
1495
  ));
1499
- La.displayName = He.Root.displayName;
1496
+ Da.displayName = He.Root.displayName;
1500
1497
  const ht = be(
1501
1498
  "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
1502
1499
  {
@@ -1521,16 +1518,16 @@ const ht = be(
1521
1518
  size: "default"
1522
1519
  }
1523
1520
  }
1524
- ), Oa = m.forwardRef(
1521
+ ), Ea = m.forwardRef(
1525
1522
  ({ className: e, variant: t, size: s, asChild: o = !1, ...n }, r) => {
1526
- const i = o ? Ws : "button";
1523
+ const i = o ? Gs : "button";
1527
1524
  return /* @__PURE__ */ a.jsx(i, { className: c(ht({ variant: t, size: s, className: e })), ref: r, ...n });
1528
1525
  }
1529
1526
  );
1530
- Oa.displayName = "Button";
1531
- const Ii = pe.Root, za = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(pe.Item, { ref: s, className: c("border-b", e), ...t }));
1532
- za.displayName = "AccordionItem";
1533
- const Va = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(pe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1527
+ Ea.displayName = "Button";
1528
+ const Ti = pe.Root, La = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(pe.Item, { ref: s, className: c("border-b", e), ...t }));
1529
+ La.displayName = "AccordionItem";
1530
+ const Oa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(pe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1534
1531
  pe.Trigger,
1535
1532
  {
1536
1533
  ref: o,
@@ -1541,12 +1538,12 @@ const Va = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1541
1538
  ...s,
1542
1539
  children: [
1543
1540
  t,
1544
- /* @__PURE__ */ a.jsx(Us, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1541
+ /* @__PURE__ */ a.jsx(Ws, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1545
1542
  ]
1546
1543
  }
1547
1544
  ) }));
1548
- Va.displayName = pe.Trigger.displayName;
1549
- const $a = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1545
+ Oa.displayName = pe.Trigger.displayName;
1546
+ const za = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1550
1547
  pe.Content,
1551
1548
  {
1552
1549
  ref: o,
@@ -1558,8 +1555,8 @@ const $a = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1558
1555
  children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
1559
1556
  }
1560
1557
  ));
1561
- $a.displayName = pe.Content.displayName;
1562
- const Fa = be(
1558
+ za.displayName = pe.Content.displayName;
1559
+ const Va = be(
1563
1560
  "relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1564
1561
  {
1565
1562
  variants: {
@@ -1572,17 +1569,17 @@ const Fa = be(
1572
1569
  variant: "default"
1573
1570
  }
1574
1571
  }
1575
- ), Ga = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: c(Fa({ variant: t }), e), ...s }));
1576
- Ga.displayName = "Alert";
1577
- const Wa = m.forwardRef(
1572
+ ), $a = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: c(Va({ variant: t }), e), ...s }));
1573
+ $a.displayName = "Alert";
1574
+ const Fa = m.forwardRef(
1578
1575
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: c("mb-1 font-medium leading-none tracking-tight", e), ...t })
1579
1576
  );
1580
- Wa.displayName = "AlertTitle";
1581
- const Ua = m.forwardRef(
1577
+ Fa.displayName = "AlertTitle";
1578
+ const Ga = m.forwardRef(
1582
1579
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("text-sm [&_p]:leading-relaxed", e), ...t })
1583
1580
  );
1584
- Ua.displayName = "AlertDescription";
1585
- const Ha = be(
1581
+ Ga.displayName = "AlertDescription";
1582
+ const Wa = be(
1586
1583
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
1587
1584
  {
1588
1585
  variants: {
@@ -1597,7 +1594,7 @@ const Ha = be(
1597
1594
  variant: "default"
1598
1595
  }
1599
1596
  }
1600
- ), Mi = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Ha({ variant: t }), e), ...s }), Di = F.Root, Ei = F.Trigger, ws = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(F.Portal, { className: c(e), ...t });
1597
+ ), Ii = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Wa({ variant: t }), e), ...s }), Mi = F.Root, Di = F.Trigger, ws = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(F.Portal, { className: c(e), ...t });
1601
1598
  ws.displayName = F.Portal.displayName;
1602
1599
  const Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1603
1600
  F.Overlay,
@@ -1611,7 +1608,7 @@ const Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1611
1608
  }
1612
1609
  ));
1613
1610
  Ns.displayName = F.Overlay.displayName;
1614
- const qa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws, { children: [
1611
+ const Ua = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws, { children: [
1615
1612
  /* @__PURE__ */ a.jsx(Ns, {}),
1616
1613
  /* @__PURE__ */ a.jsx(
1617
1614
  F.Content,
@@ -1625,18 +1622,18 @@ const qa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws
1625
1622
  }
1626
1623
  )
1627
1624
  ] }));
1628
- qa.displayName = F.Content.displayName;
1629
- const Ka = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1630
- Ka.displayName = "AlertDialogHeader";
1631
- const Ja = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1632
- Ja.displayName = "AlertDialogFooter";
1633
- const Ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(F.Title, { ref: s, className: c("text-lg font-semibold", e), ...t }));
1634
- Ya.displayName = F.Title.displayName;
1635
- const Qa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(F.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1636
- Qa.displayName = F.Description.displayName;
1637
- const Xa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(F.Action, { ref: s, className: c(ht(), e), ...t }));
1638
- Xa.displayName = F.Action.displayName;
1639
- const Za = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1625
+ Ua.displayName = F.Content.displayName;
1626
+ const Ha = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1627
+ Ha.displayName = "AlertDialogHeader";
1628
+ const qa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1629
+ qa.displayName = "AlertDialogFooter";
1630
+ const Ka = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(F.Title, { ref: s, className: c("text-lg font-semibold", e), ...t }));
1631
+ Ka.displayName = F.Title.displayName;
1632
+ const Ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(F.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1633
+ Ja.displayName = F.Description.displayName;
1634
+ const Ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(F.Action, { ref: s, className: c(ht(), e), ...t }));
1635
+ Ya.displayName = F.Action.displayName;
1636
+ const Qa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1640
1637
  F.Cancel,
1641
1638
  {
1642
1639
  ref: s,
@@ -1644,8 +1641,8 @@ const Za = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1644
1641
  ...t
1645
1642
  }
1646
1643
  ));
1647
- Za.displayName = F.Cancel.displayName;
1648
- const ks = B.Root, en = B.Trigger, Ss = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
1644
+ Qa.displayName = F.Cancel.displayName;
1645
+ const ks = B.Root, Xa = B.Trigger, Ss = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
1649
1646
  Ss.displayName = B.Portal.displayName;
1650
1647
  const js = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1651
1648
  B.Overlay,
@@ -1681,11 +1678,11 @@ const yt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1681
1678
  )
1682
1679
  ] }));
1683
1680
  yt.displayName = B.Content.displayName;
1684
- const tn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1685
- tn.displayName = "DialogHeader";
1686
- const sn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1687
- sn.displayName = "DialogFooter";
1688
- const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1681
+ const Za = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1682
+ Za.displayName = "DialogHeader";
1683
+ const en = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1684
+ en.displayName = "DialogFooter";
1685
+ const tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1689
1686
  B.Title,
1690
1687
  {
1691
1688
  ref: s,
@@ -1693,32 +1690,32 @@ const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1693
1690
  ...t
1694
1691
  }
1695
1692
  ));
1696
- on.displayName = B.Title.displayName;
1697
- const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1698
- an.displayName = B.Description.displayName;
1699
- const nn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1700
- nn.displayName = "Card";
1701
- const rn = m.forwardRef(
1693
+ tn.displayName = B.Title.displayName;
1694
+ const sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1695
+ sn.displayName = B.Description.displayName;
1696
+ const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1697
+ on.displayName = "Card";
1698
+ const an = m.forwardRef(
1702
1699
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("flex flex-col space-y-1.5 p-6", e), ...t })
1703
1700
  );
1704
- rn.displayName = "CardHeader";
1705
- const ln = m.forwardRef(
1701
+ an.displayName = "CardHeader";
1702
+ const nn = m.forwardRef(
1706
1703
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: c("font-semibold leading-none tracking-tight", e), ...t })
1707
1704
  );
1708
- ln.displayName = "CardTitle";
1709
- const cn = m.forwardRef(
1705
+ nn.displayName = "CardTitle";
1706
+ const rn = m.forwardRef(
1710
1707
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: c("text-sm text-muted-foreground", e), ...t })
1711
1708
  );
1712
- cn.displayName = "CardDescription";
1713
- const dn = m.forwardRef(
1709
+ rn.displayName = "CardDescription";
1710
+ const ln = m.forwardRef(
1714
1711
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("p-6 pt-0", e), ...t })
1715
1712
  );
1716
- dn.displayName = "CardContent";
1717
- const un = m.forwardRef(
1713
+ ln.displayName = "CardContent";
1714
+ const cn = m.forwardRef(
1718
1715
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c(" flex items-center p-6 pt-0", e), ...t })
1719
1716
  );
1720
- un.displayName = "CardFooter";
1721
- const mn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1717
+ cn.displayName = "CardFooter";
1718
+ const dn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1722
1719
  "input",
1723
1720
  {
1724
1721
  type: t,
@@ -1730,10 +1727,10 @@ const mn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
1730
1727
  ...s
1731
1728
  }
1732
1729
  ));
1733
- mn.displayName = "Input";
1734
- const pn = be("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Vt.Root, { ref: s, className: c(pn(), e), ...t }));
1735
- fn.displayName = Vt.Root.displayName;
1736
- const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1730
+ dn.displayName = "Input";
1731
+ const un = be("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Vt.Root, { ref: s, className: c(un(), e), ...t }));
1732
+ mn.displayName = Vt.Root.displayName;
1733
+ const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1737
1734
  "textarea",
1738
1735
  {
1739
1736
  className: c(
@@ -1744,13 +1741,13 @@ const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1744
1741
  ...t
1745
1742
  }
1746
1743
  ));
1747
- gn.displayName = "Textarea";
1748
- const bn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(me.Root, { ref: o, className: c("relative overflow-hidden", e), ...s, children: [
1744
+ pn.displayName = "Textarea";
1745
+ const fn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(me.Root, { ref: o, className: c("relative overflow-hidden", e), ...s, children: [
1749
1746
  /* @__PURE__ */ a.jsx(me.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1750
1747
  /* @__PURE__ */ a.jsx(As, {}),
1751
1748
  /* @__PURE__ */ a.jsx(me.Corner, {})
1752
1749
  ] }));
1753
- bn.displayName = me.Root.displayName;
1750
+ fn.displayName = me.Root.displayName;
1754
1751
  const As = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1755
1752
  me.ScrollAreaScrollbar,
1756
1753
  {
@@ -1767,7 +1764,7 @@ const As = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
1767
1764
  }
1768
1765
  ));
1769
1766
  As.displayName = me.ScrollAreaScrollbar.displayName;
1770
- const xn = xe.Root, Cs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1767
+ const gn = xe.Root, Cs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1771
1768
  xe.List,
1772
1769
  {
1773
1770
  ref: s,
@@ -1803,7 +1800,7 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1803
1800
  }
1804
1801
  ));
1805
1802
  Ze.displayName = xe.Content.displayName;
1806
- const Li = we.Portal, Oi = we.Provider, zi = we.Root, Vi = we.Trigger, hn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1803
+ const Ei = we.Portal, Li = we.Provider, Oi = we.Root, zi = we.Trigger, bn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1807
1804
  we.Content,
1808
1805
  {
1809
1806
  ref: o,
@@ -1815,8 +1812,8 @@ const Li = we.Portal, Oi = we.Provider, zi = we.Root, Vi = we.Trigger, hn = m.fo
1815
1812
  ...s
1816
1813
  }
1817
1814
  ));
1818
- hn.displayName = we.Content.displayName;
1819
- const $i = Se.Root, Fi = Se.Trigger, yn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1815
+ bn.displayName = we.Content.displayName;
1816
+ const Vi = Se.Root, $i = Se.Trigger, xn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1820
1817
  Se.Content,
1821
1818
  {
1822
1819
  ref: n,
@@ -1829,8 +1826,8 @@ const $i = Se.Root, Fi = Se.Trigger, yn = m.forwardRef(({ className: e, align: t
1829
1826
  ...o
1830
1827
  }
1831
1828
  ) }));
1832
- yn.displayName = Se.Content.displayName;
1833
- const Gi = C.Menu, Wi = C.Group, Ui = C.Portal, Hi = C.Sub, qi = C.RadioGroup, vn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1829
+ xn.displayName = Se.Content.displayName;
1830
+ const Fi = C.Menu, Gi = C.Group, Wi = C.Portal, Ui = C.Sub, Hi = C.RadioGroup, hn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1834
1831
  C.Root,
1835
1832
  {
1836
1833
  ref: s,
@@ -1838,8 +1835,8 @@ const Gi = C.Menu, Wi = C.Group, Ui = C.Portal, Hi = C.Sub, qi = C.RadioGroup, v
1838
1835
  ...t
1839
1836
  }
1840
1837
  ));
1841
- vn.displayName = C.Root.displayName;
1842
- const wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1838
+ hn.displayName = C.Root.displayName;
1839
+ const yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1843
1840
  C.Trigger,
1844
1841
  {
1845
1842
  ref: s,
@@ -1850,8 +1847,8 @@ const wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1850
1847
  ...t
1851
1848
  }
1852
1849
  ));
1853
- wn.displayName = C.Trigger.displayName;
1854
- const Nn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1850
+ yn.displayName = C.Trigger.displayName;
1851
+ const vn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1855
1852
  C.SubTrigger,
1856
1853
  {
1857
1854
  ref: n,
@@ -1867,8 +1864,8 @@ const Nn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
1867
1864
  ]
1868
1865
  }
1869
1866
  ));
1870
- Nn.displayName = C.SubTrigger.displayName;
1871
- const kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1867
+ vn.displayName = C.SubTrigger.displayName;
1868
+ const wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1872
1869
  C.SubContent,
1873
1870
  {
1874
1871
  ref: s,
@@ -1879,8 +1876,8 @@ const kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1879
1876
  ...t
1880
1877
  }
1881
1878
  ));
1882
- kn.displayName = C.SubContent.displayName;
1883
- const Sn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, r) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1879
+ wn.displayName = C.SubContent.displayName;
1880
+ const Nn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, r) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1884
1881
  C.Content,
1885
1882
  {
1886
1883
  ref: r,
@@ -1894,8 +1891,8 @@ const Sn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
1894
1891
  ...n
1895
1892
  }
1896
1893
  ) }));
1897
- Sn.displayName = C.Content.displayName;
1898
- const jn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1894
+ Nn.displayName = C.Content.displayName;
1895
+ const kn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1899
1896
  C.Item,
1900
1897
  {
1901
1898
  ref: o,
@@ -1907,8 +1904,8 @@ const jn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1907
1904
  ...s
1908
1905
  }
1909
1906
  ));
1910
- jn.displayName = C.Item.displayName;
1911
- const An = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1907
+ kn.displayName = C.Item.displayName;
1908
+ const Sn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1912
1909
  C.CheckboxItem,
1913
1910
  {
1914
1911
  ref: n,
@@ -1924,8 +1921,8 @@ const An = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1924
1921
  ]
1925
1922
  }
1926
1923
  ));
1927
- An.displayName = C.CheckboxItem.displayName;
1928
- const Cn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1924
+ Sn.displayName = C.CheckboxItem.displayName;
1925
+ const jn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1929
1926
  C.RadioItem,
1930
1927
  {
1931
1928
  ref: o,
@@ -1940,8 +1937,8 @@ const Cn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1940
1937
  ]
1941
1938
  }
1942
1939
  ));
1943
- Cn.displayName = C.RadioItem.displayName;
1944
- const _n = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1940
+ jn.displayName = C.RadioItem.displayName;
1941
+ const An = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1945
1942
  C.Label,
1946
1943
  {
1947
1944
  ref: o,
@@ -1949,12 +1946,12 @@ const _n = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1949
1946
  ...s
1950
1947
  }
1951
1948
  ));
1952
- _n.displayName = C.Label.displayName;
1953
- const Bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
1954
- Bn.displayName = C.Separator.displayName;
1955
- const Rn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1956
- Rn.displayname = "MenubarShortcut";
1957
- const Ki = Le.Root, Ji = Le.Trigger, Pn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1949
+ An.displayName = C.Label.displayName;
1950
+ const Cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
1951
+ Cn.displayName = C.Separator.displayName;
1952
+ const _n = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1953
+ _n.displayname = "MenubarShortcut";
1954
+ const qi = Le.Root, Ki = Le.Trigger, Bn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1958
1955
  Le.Content,
1959
1956
  {
1960
1957
  ref: n,
@@ -1967,8 +1964,8 @@ const Ki = Le.Root, Ji = Le.Trigger, Pn = m.forwardRef(({ className: e, align: t
1967
1964
  ...o
1968
1965
  }
1969
1966
  ));
1970
- Pn.displayName = Le.Content.displayName;
1971
- const Yi = O.Root, Qi = O.Group, Xi = O.Value, Tn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1967
+ Bn.displayName = Le.Content.displayName;
1968
+ const Ji = O.Root, Yi = O.Group, Qi = O.Value, Rn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1972
1969
  O.Trigger,
1973
1970
  {
1974
1971
  ref: o,
@@ -1979,12 +1976,12 @@ const Yi = O.Root, Qi = O.Group, Xi = O.Value, Tn = m.forwardRef(({ className: e
1979
1976
  ...s,
1980
1977
  children: [
1981
1978
  t,
1982
- /* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
1979
+ /* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Us, { className: "h-4 w-4 opacity-50" }) })
1983
1980
  ]
1984
1981
  }
1985
1982
  ));
1986
- Tn.displayName = O.Trigger.displayName;
1987
- const In = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(O.Portal, { children: /* @__PURE__ */ a.jsx(
1983
+ Rn.displayName = O.Trigger.displayName;
1984
+ const Pn = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(O.Portal, { children: /* @__PURE__ */ a.jsx(
1988
1985
  O.Content,
1989
1986
  {
1990
1987
  ref: n,
@@ -2007,10 +2004,10 @@ const In = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
2007
2004
  )
2008
2005
  }
2009
2006
  ) }));
2010
- In.displayName = O.Content.displayName;
2011
- const Mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Label, { ref: s, className: c("px-2 py-1.5 text-sm font-semibold", e), ...t }));
2012
- Mn.displayName = O.Label.displayName;
2013
- const Dn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2007
+ Pn.displayName = O.Content.displayName;
2008
+ const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Label, { ref: s, className: c("px-2 py-1.5 text-sm font-semibold", e), ...t }));
2009
+ Tn.displayName = O.Label.displayName;
2010
+ const In = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2014
2011
  O.Item,
2015
2012
  {
2016
2013
  ref: o,
@@ -2025,10 +2022,10 @@ const Dn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2025
2022
  ]
2026
2023
  }
2027
2024
  ));
2028
- Dn.displayName = O.Item.displayName;
2029
- const En = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2030
- En.displayName = O.Separator.displayName;
2031
- const Zi = B.Root, el = B.Trigger, tl = B.Close, _s = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
2025
+ In.displayName = O.Item.displayName;
2026
+ const Mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2027
+ Mn.displayName = O.Separator.displayName;
2028
+ const Xi = B.Root, Zi = B.Trigger, el = B.Close, _s = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
2032
2029
  _s.displayName = B.Portal.displayName;
2033
2030
  const Bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2034
2031
  B.Overlay,
@@ -2042,7 +2039,7 @@ const Bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2042
2039
  }
2043
2040
  ));
2044
2041
  Bs.displayName = B.Overlay.displayName;
2045
- const Ln = be(
2042
+ const Dn = be(
2046
2043
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
2047
2044
  {
2048
2045
  variants: {
@@ -2057,10 +2054,10 @@ const Ln = be(
2057
2054
  side: "right"
2058
2055
  }
2059
2056
  }
2060
- ), On = m.forwardRef(
2057
+ ), En = m.forwardRef(
2061
2058
  ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(_s, { children: [
2062
2059
  /* @__PURE__ */ a.jsx(Bs, {}),
2063
- /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: c(Ln({ side: e }), t), ...o, children: [
2060
+ /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: c(Dn({ side: e }), t), ...o, children: [
2064
2061
  s,
2065
2062
  /* @__PURE__ */ a.jsxs(B.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
2066
2063
  /* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" }),
@@ -2069,16 +2066,16 @@ const Ln = be(
2069
2066
  ] })
2070
2067
  ] })
2071
2068
  );
2072
- On.displayName = B.Content.displayName;
2073
- const zn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
2074
- zn.displayName = "SheetHeader";
2075
- const Vn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
2076
- Vn.displayName = "SheetFooter";
2077
- const $n = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: c("text-lg font-semibold text-foreground", e), ...t }));
2078
- $n.displayName = B.Title.displayName;
2079
- const Fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
2080
- Fn.displayName = B.Description.displayName;
2081
- const sl = P.Root, ol = P.Trigger, al = P.Group, nl = P.Portal, rl = P.Sub, il = P.RadioGroup, Gn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2069
+ En.displayName = B.Content.displayName;
2070
+ const Ln = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
2071
+ Ln.displayName = "SheetHeader";
2072
+ const On = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
2073
+ On.displayName = "SheetFooter";
2074
+ const zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: c("text-lg font-semibold text-foreground", e), ...t }));
2075
+ zn.displayName = B.Title.displayName;
2076
+ const Vn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
2077
+ Vn.displayName = B.Description.displayName;
2078
+ const tl = P.Root, sl = P.Trigger, ol = P.Group, al = P.Portal, nl = P.Sub, rl = P.RadioGroup, $n = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2082
2079
  P.SubTrigger,
2083
2080
  {
2084
2081
  ref: n,
@@ -2094,8 +2091,8 @@ const sl = P.Root, ol = P.Trigger, al = P.Group, nl = P.Portal, rl = P.Sub, il =
2094
2091
  ]
2095
2092
  }
2096
2093
  ));
2097
- Gn.displayName = P.SubTrigger.displayName;
2098
- const Wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2094
+ $n.displayName = P.SubTrigger.displayName;
2095
+ const Fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2099
2096
  P.SubContent,
2100
2097
  {
2101
2098
  ref: s,
@@ -2106,8 +2103,8 @@ const Wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2106
2103
  ...t
2107
2104
  }
2108
2105
  ));
2109
- Wn.displayName = P.SubContent.displayName;
2110
- const Un = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2106
+ Fn.displayName = P.SubContent.displayName;
2107
+ const Gn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2111
2108
  P.Content,
2112
2109
  {
2113
2110
  ref: o,
@@ -2120,8 +2117,8 @@ const Un = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
2120
2117
  ...s
2121
2118
  }
2122
2119
  ) }));
2123
- Un.displayName = P.Content.displayName;
2124
- const Hn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2120
+ Gn.displayName = P.Content.displayName;
2121
+ const Wn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2125
2122
  P.Item,
2126
2123
  {
2127
2124
  ref: o,
@@ -2133,8 +2130,8 @@ const Hn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2133
2130
  ...s
2134
2131
  }
2135
2132
  ));
2136
- Hn.displayName = P.Item.displayName;
2137
- const qn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2133
+ Wn.displayName = P.Item.displayName;
2134
+ const Un = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2138
2135
  P.CheckboxItem,
2139
2136
  {
2140
2137
  ref: n,
@@ -2150,8 +2147,8 @@ const qn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2150
2147
  ]
2151
2148
  }
2152
2149
  ));
2153
- qn.displayName = P.CheckboxItem.displayName;
2154
- const Kn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2150
+ Un.displayName = P.CheckboxItem.displayName;
2151
+ const Hn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2155
2152
  P.RadioItem,
2156
2153
  {
2157
2154
  ref: o,
@@ -2166,8 +2163,8 @@ const Kn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2166
2163
  ]
2167
2164
  }
2168
2165
  ));
2169
- Kn.displayName = P.RadioItem.displayName;
2170
- const Jn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2166
+ Hn.displayName = P.RadioItem.displayName;
2167
+ const qn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2171
2168
  P.Label,
2172
2169
  {
2173
2170
  ref: o,
@@ -2175,12 +2172,12 @@ const Jn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2175
2172
  ...s
2176
2173
  }
2177
2174
  ));
2178
- Jn.displayName = P.Label.displayName;
2179
- const Yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2180
- Yn.displayName = P.Separator.displayName;
2181
- const Qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...t });
2182
- Qn.displayName = "DropdownMenuShortcut";
2183
- const Xn = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
2175
+ qn.displayName = P.Label.displayName;
2176
+ const Kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2177
+ Kn.displayName = P.Separator.displayName;
2178
+ const Jn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...t });
2179
+ Jn.displayName = "DropdownMenuShortcut";
2180
+ const Yn = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
2184
2181
  $t.Root,
2185
2182
  {
2186
2183
  ref: n,
@@ -2190,10 +2187,10 @@ const Xn = m.forwardRef(({ className: e, orientation: t = "horizontal", decorati
2190
2187
  ...o
2191
2188
  }
2192
2189
  ));
2193
- Xn.displayName = $t.Root.displayName;
2194
- const Zn = 1, er = 1e6;
2190
+ Yn.displayName = $t.Root.displayName;
2191
+ const Qn = 1, Xn = 1e6;
2195
2192
  let We = 0;
2196
- function tr() {
2193
+ function Zn() {
2197
2194
  return We = (We + 1) % Number.MAX_VALUE, We.toString();
2198
2195
  }
2199
2196
  const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
@@ -2204,14 +2201,14 @@ const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
2204
2201
  type: "REMOVE_TOAST",
2205
2202
  toastId: e
2206
2203
  });
2207
- }, er);
2204
+ }, Xn);
2208
2205
  Ue.set(e, t);
2209
- }, sr = (e, t) => {
2206
+ }, er = (e, t) => {
2210
2207
  switch (t.type) {
2211
2208
  case "ADD_TOAST":
2212
2209
  return {
2213
2210
  ...e,
2214
- toasts: [t.toast, ...e.toasts].slice(0, Zn)
2211
+ toasts: [t.toast, ...e.toasts].slice(0, Qn)
2215
2212
  };
2216
2213
  case "UPDATE_TOAST":
2217
2214
  return {
@@ -2244,12 +2241,12 @@ const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
2244
2241
  }, Te = [];
2245
2242
  let Ie = { toasts: [] };
2246
2243
  function ke(e) {
2247
- Ie = sr(Ie, e), Te.forEach((t) => {
2244
+ Ie = er(Ie, e), Te.forEach((t) => {
2248
2245
  t(Ie);
2249
2246
  });
2250
2247
  }
2251
- function or({ ...e }) {
2252
- const t = tr(), s = (n) => ke({
2248
+ function tr({ ...e }) {
2249
+ const t = Zn(), s = (n) => ke({
2253
2250
  type: "UPDATE_TOAST",
2254
2251
  toast: { ...n, id: t }
2255
2252
  }), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
@@ -2269,18 +2266,18 @@ function or({ ...e }) {
2269
2266
  update: s
2270
2267
  };
2271
2268
  }
2272
- function ar() {
2269
+ function sr() {
2273
2270
  const [e, t] = m.useState(Ie);
2274
2271
  return m.useEffect(() => (Te.push(t), () => {
2275
2272
  const s = Te.indexOf(t);
2276
2273
  s > -1 && Te.splice(s, 1);
2277
2274
  }), [e]), {
2278
2275
  ...e,
2279
- toast: or,
2276
+ toast: tr,
2280
2277
  dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
2281
2278
  };
2282
2279
  }
2283
- const nr = q.Provider, Rs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2280
+ const or = q.Provider, Rs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2284
2281
  q.Viewport,
2285
2282
  {
2286
2283
  ref: s,
@@ -2292,7 +2289,7 @@ const nr = q.Provider, Rs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
2292
2289
  }
2293
2290
  ));
2294
2291
  Rs.displayName = q.Viewport.displayName;
2295
- const rr = be(
2292
+ const ar = be(
2296
2293
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
2297
2294
  {
2298
2295
  variants: {
@@ -2305,9 +2302,9 @@ const rr = be(
2305
2302
  variant: "default"
2306
2303
  }
2307
2304
  }
2308
- ), Ps = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(q.Root, { ref: o, className: c(rr({ variant: t }), e), ...s }));
2305
+ ), Ps = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(q.Root, { ref: o, className: c(ar({ variant: t }), e), ...s }));
2309
2306
  Ps.displayName = q.Root.displayName;
2310
- const ir = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2307
+ const nr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2311
2308
  q.Action,
2312
2309
  {
2313
2310
  ref: s,
@@ -2318,7 +2315,7 @@ const ir = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2318
2315
  ...t
2319
2316
  }
2320
2317
  ));
2321
- ir.displayName = q.Action.displayName;
2318
+ nr.displayName = q.Action.displayName;
2322
2319
  const Ts = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2323
2320
  q.Close,
2324
2321
  {
@@ -2337,9 +2334,9 @@ const Is = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.T
2337
2334
  Is.displayName = q.Title.displayName;
2338
2335
  const Ms = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: c("text-sm opacity-90", e), ...t }));
2339
2336
  Ms.displayName = q.Description.displayName;
2340
- function ll() {
2341
- const { toasts: e } = ar();
2342
- return /* @__PURE__ */ a.jsxs(nr, { children: [
2337
+ function il() {
2338
+ const { toasts: e } = sr();
2339
+ return /* @__PURE__ */ a.jsxs(or, { children: [
2343
2340
  e.map(({ id: t, title: s, description: o, action: n, ...r }) => /* @__PURE__ */ a.jsxs(Ps, { ...r, children: [
2344
2341
  /* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
2345
2342
  s && /* @__PURE__ */ a.jsx(Is, { children: s }),
@@ -2351,7 +2348,7 @@ function ll() {
2351
2348
  /* @__PURE__ */ a.jsx(Rs, {})
2352
2349
  ] });
2353
2350
  }
2354
- const cl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Ds = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2351
+ const ll = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Ds = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2355
2352
  U,
2356
2353
  {
2357
2354
  ref: s,
@@ -2363,8 +2360,8 @@ const cl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
2363
2360
  }
2364
2361
  ));
2365
2362
  Ds.displayName = U.displayName;
2366
- const dl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children: /* @__PURE__ */ a.jsx(yt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ds, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), lr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2367
- /* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2363
+ const cl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children: /* @__PURE__ */ a.jsx(yt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ds, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), rr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2364
+ /* @__PURE__ */ a.jsx(Hs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2368
2365
  /* @__PURE__ */ a.jsx(
2369
2366
  U.Input,
2370
2367
  {
@@ -2377,8 +2374,8 @@ const dl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children
2377
2374
  }
2378
2375
  )
2379
2376
  ] }));
2380
- lr.displayName = U.Input.displayName;
2381
- const cr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2377
+ rr.displayName = U.Input.displayName;
2378
+ const ir = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2382
2379
  U.List,
2383
2380
  {
2384
2381
  ref: s,
@@ -2386,10 +2383,10 @@ const cr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2386
2383
  ...t
2387
2384
  }
2388
2385
  ));
2389
- cr.displayName = U.List.displayName;
2390
- const dr = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(U.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2391
- dr.displayName = U.Empty.displayName;
2392
- const ur = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2386
+ ir.displayName = U.List.displayName;
2387
+ const lr = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(U.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2388
+ lr.displayName = U.Empty.displayName;
2389
+ const cr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2393
2390
  U.Group,
2394
2391
  {
2395
2392
  ref: s,
@@ -2400,10 +2397,10 @@ const ur = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2400
2397
  ...t
2401
2398
  }
2402
2399
  ));
2403
- ur.displayName = U.Group.displayName;
2404
- const mr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: c("-mx-1 h-px bg-border", e), ...t }));
2405
- mr.displayName = U.Separator.displayName;
2406
- const pr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2400
+ cr.displayName = U.Group.displayName;
2401
+ const dr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: c("-mx-1 h-px bg-border", e), ...t }));
2402
+ dr.displayName = U.Separator.displayName;
2403
+ const ur = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2407
2404
  U.Item,
2408
2405
  {
2409
2406
  ref: s,
@@ -2414,10 +2411,10 @@ const pr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2414
2411
  ...t
2415
2412
  }
2416
2413
  ));
2417
- pr.displayName = U.Item.displayName;
2418
- const fr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2419
- fr.displayName = "CommandShortcut";
2420
- const ul = T.Root, ml = T.Trigger, pl = T.Group, fl = T.Portal, gl = T.Sub, bl = T.RadioGroup, gr = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2414
+ ur.displayName = U.Item.displayName;
2415
+ const mr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2416
+ mr.displayName = "CommandShortcut";
2417
+ const dl = T.Root, ul = T.Trigger, ml = T.Group, pl = T.Portal, fl = T.Sub, gl = T.RadioGroup, pr = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2421
2418
  T.SubTrigger,
2422
2419
  {
2423
2420
  ref: n,
@@ -2433,8 +2430,8 @@ const ul = T.Root, ml = T.Trigger, pl = T.Group, fl = T.Portal, gl = T.Sub, bl =
2433
2430
  ]
2434
2431
  }
2435
2432
  ));
2436
- gr.displayName = T.SubTrigger.displayName;
2437
- const br = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2433
+ pr.displayName = T.SubTrigger.displayName;
2434
+ const fr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2438
2435
  T.SubContent,
2439
2436
  {
2440
2437
  ref: s,
@@ -2445,8 +2442,8 @@ const br = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2445
2442
  ...t
2446
2443
  }
2447
2444
  ));
2448
- br.displayName = T.SubContent.displayName;
2449
- const xr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
2445
+ fr.displayName = T.SubContent.displayName;
2446
+ const gr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
2450
2447
  T.Content,
2451
2448
  {
2452
2449
  ref: s,
@@ -2457,8 +2454,8 @@ const xr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.P
2457
2454
  ...t
2458
2455
  }
2459
2456
  ) }));
2460
- xr.displayName = T.Content.displayName;
2461
- const hr = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2457
+ gr.displayName = T.Content.displayName;
2458
+ const br = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2462
2459
  T.Item,
2463
2460
  {
2464
2461
  ref: o,
@@ -2470,8 +2467,8 @@ const hr = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2470
2467
  ...s
2471
2468
  }
2472
2469
  ));
2473
- hr.displayName = T.Item.displayName;
2474
- const yr = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2470
+ br.displayName = T.Item.displayName;
2471
+ const xr = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2475
2472
  T.CheckboxItem,
2476
2473
  {
2477
2474
  ref: n,
@@ -2487,8 +2484,8 @@ const yr = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2487
2484
  ]
2488
2485
  }
2489
2486
  ));
2490
- yr.displayName = T.CheckboxItem.displayName;
2491
- const vr = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2487
+ xr.displayName = T.CheckboxItem.displayName;
2488
+ const hr = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2492
2489
  T.RadioItem,
2493
2490
  {
2494
2491
  ref: o,
@@ -2503,8 +2500,8 @@ const vr = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2503
2500
  ]
2504
2501
  }
2505
2502
  ));
2506
- vr.displayName = T.RadioItem.displayName;
2507
- const wr = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2503
+ hr.displayName = T.RadioItem.displayName;
2504
+ const yr = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2508
2505
  T.Label,
2509
2506
  {
2510
2507
  ref: o,
@@ -2512,15 +2509,15 @@ const wr = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2512
2509
  ...s
2513
2510
  }
2514
2511
  ));
2515
- wr.displayName = T.Label.displayName;
2516
- const Nr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-border", e), ...t }));
2517
- Nr.displayName = T.Separator.displayName;
2518
- const kr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2519
- kr.displayName = "ContextMenuShortcut";
2520
- const Sr = (e) => {
2512
+ yr.displayName = T.Label.displayName;
2513
+ const vr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-border", e), ...t }));
2514
+ vr.displayName = T.Separator.displayName;
2515
+ const wr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2516
+ wr.displayName = "ContextMenuShortcut";
2517
+ const Nr = (e) => {
2521
2518
  try {
2522
2519
  const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
2523
- Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
2520
+ Js.render(/* @__PURE__ */ a.jsx(Ks, { value: e }), s), t.appendChild(s), s.hidden = !0;
2524
2521
  let o = s.innerHTML;
2525
2522
  setTimeout(() => t.removeChild(s), 1e3);
2526
2523
  const r = new DOMParser().parseFromString(o, "image/svg+xml"), i = r.querySelector("svg");
@@ -2528,10 +2525,10 @@ const Sr = (e) => {
2528
2525
  } catch {
2529
2526
  return "";
2530
2527
  }
2531
- }, xl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
2528
+ }, bl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
2532
2529
  const n = (r) => {
2533
2530
  t("<svg />");
2534
- const i = Sr(r);
2531
+ const i = Nr(r);
2535
2532
  t(i), s(o, i);
2536
2533
  };
2537
2534
  return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
@@ -2544,7 +2541,7 @@ const Sr = (e) => {
2544
2541
  }
2545
2542
  ),
2546
2543
  /* @__PURE__ */ a.jsx(
2547
- Ks,
2544
+ qs,
2548
2545
  {
2549
2546
  value: e ? "BiSolidGrid" : null,
2550
2547
  onChange: n,
@@ -2580,7 +2577,7 @@ const Sr = (e) => {
2580
2577
  }
2581
2578
  )
2582
2579
  ] });
2583
- }, jr = et.lazy(() => import("./UnsplashImages-mqK09h8E.js")), Ar = et.lazy(() => import("./UploadImages-IDkkRuhx.js")), Es = ({
2580
+ }, kr = et.lazy(() => import("./UnsplashImages-8vJPuqrF.js")), Sr = et.lazy(() => import("./UploadImages-6N6UrjLo.js")), Es = ({
2584
2581
  isModalView: e = !1,
2585
2582
  onSelect: t = () => {
2586
2583
  }
@@ -2588,15 +2585,15 @@ const Sr = (e) => {
2588
2585
  const [s, o] = De("upload");
2589
2586
  return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
2590
2587
  /* @__PURE__ */ a.jsx("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: /* @__PURE__ */ a.jsx("h1", { className: "px-1 font-semibold", children: e ? "Select or upload images" : "Images" }) }),
2591
- /* @__PURE__ */ a.jsxs(xn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2588
+ /* @__PURE__ */ a.jsxs(gn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2592
2589
  /* @__PURE__ */ a.jsxs(Cs, { className: "w-full", children: [
2593
2590
  /* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
2594
2591
  /* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2595
2592
  ] }),
2596
- s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(jr, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ar, { isModalView: e, onSelect: t }) }) })
2593
+ s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(kr, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Sr, { isModalView: e, onSelect: t }) }) })
2597
2594
  ] })
2598
2595
  ] });
2599
- }, hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2596
+ }, xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2600
2597
  __proto__: null,
2601
2598
  default: Es
2602
2599
  }, Symbol.toStringTag, { value: "Module" })), Ot = ({ children: e, onSelect: t }) => {
@@ -2604,10 +2601,10 @@ const Sr = (e) => {
2604
2601
  t.call(void 0, ...r), o(!1);
2605
2602
  };
2606
2603
  return /* @__PURE__ */ a.jsxs(ks, { open: s, onOpenChange: (r) => o(r), children: [
2607
- /* @__PURE__ */ a.jsx(en, { asChild: !0, children: e }),
2604
+ /* @__PURE__ */ a.jsx(Xa, { asChild: !0, children: e }),
2608
2605
  /* @__PURE__ */ a.jsx(yt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Es, { isModalView: !0, onSelect: n }) }) })
2609
2606
  ] });
2610
- }, yl = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2607
+ }, hl = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2611
2608
  e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Ot, { onSelect: t, children: /* @__PURE__ */ a.jsx("div", { className: "h-20 w-20 cursor-pointer rounded-md border bg-[radial-gradient(#AAA,transparent_1px)] duration-300 [background-size:10px_10px] hover:border-gray-400" }) }),
2612
2609
  /* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
2613
2610
  /* @__PURE__ */ a.jsx(Ot, { onSelect: t, children: /* @__PURE__ */ a.jsx("small", { className: "cursor-pointer rounded-full bg-gray-600 px-2 py-1 text-center text-xs text-white hover:bg-gray-500 dark:bg-gray-700", children: e || !oe(e) ? "Replace Image" : "Choose Image" }) }),
@@ -2624,7 +2621,7 @@ const Sr = (e) => {
2624
2621
  }
2625
2622
  )
2626
2623
  ] })
2627
- ] }), vl = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2624
+ ] }), yl = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2628
2625
  const r = {
2629
2626
  toolbar: [
2630
2627
  ["bold", "italic", "underline", "strike", "blockquote"],
@@ -2648,7 +2645,7 @@ const Sr = (e) => {
2648
2645
  "image"
2649
2646
  ];
2650
2647
  return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
2651
- eo,
2648
+ Zs,
2652
2649
  {
2653
2650
  id: e,
2654
2651
  value: s,
@@ -2660,7 +2657,7 @@ const Sr = (e) => {
2660
2657
  className: "mt-1 rounded-md"
2661
2658
  }
2662
2659
  );
2663
- }, wl = ({ schema: e, formData: t, onChange: s }) => {
2660
+ }, vl = ({ schema: e, formData: t, onChange: s }) => {
2664
2661
  const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target: p = "self" } = t;
2665
2662
  return je(() => {
2666
2663
  (async () => {
@@ -2715,221 +2712,219 @@ const Sr = (e) => {
2715
2712
  ] });
2716
2713
  };
2717
2714
  export {
2718
- pi as $,
2715
+ mi as $,
2719
2716
  ms as A,
2720
- Oa as B,
2721
- ll as C,
2722
- Di as D,
2723
- Ei as E,
2724
- qa as F,
2725
- Ka as G,
2726
- Ya as H,
2727
- Qa as I,
2728
- Ja as J,
2729
- Za as K,
2730
- Pi as L,
2731
- ji as M,
2732
- Si as N,
2733
- ai as O,
2734
- ni as P,
2735
- Ho as Q,
2736
- ii as R,
2737
- cl as S,
2738
- Oi as T,
2739
- li as U,
2740
- Xo as V,
2741
- di as W,
2742
- ui as X,
2717
+ Ea as B,
2718
+ il as C,
2719
+ Mi as D,
2720
+ Di as E,
2721
+ Ua as F,
2722
+ Ha as G,
2723
+ Ka as H,
2724
+ Ja as I,
2725
+ qa as J,
2726
+ Qa as K,
2727
+ Ri as L,
2728
+ Si as M,
2729
+ ki as N,
2730
+ oi as O,
2731
+ ai as P,
2732
+ Uo as Q,
2733
+ ri as R,
2734
+ ll as S,
2735
+ Li as T,
2736
+ ii as U,
2737
+ Qo as V,
2738
+ ci as W,
2739
+ di as X,
2743
2740
  ds as Y,
2744
- mi as Z,
2745
- ka as _,
2746
- Kr as a,
2747
- la as a$,
2748
- fi as a0,
2749
- bi as a1,
2750
- Ri as a2,
2751
- hi as a3,
2752
- vi as a4,
2753
- yi as a5,
2754
- oi as a6,
2755
- ba as a7,
2756
- Ti as a8,
2757
- wi as a9,
2758
- Ze as aA,
2759
- Qi as aB,
2760
- Mn as aC,
2741
+ ui as Z,
2742
+ wa as _,
2743
+ qr as a,
2744
+ Vi as a$,
2745
+ pi as a0,
2746
+ gi as a1,
2747
+ Bi as a2,
2748
+ xi as a3,
2749
+ yi as a4,
2750
+ hi as a5,
2751
+ si as a6,
2752
+ fa as a7,
2753
+ Pi as a8,
2754
+ vi as a9,
2755
+ Yi as aA,
2756
+ Tn as aB,
2757
+ Oi as aC,
2761
2758
  zi as aD,
2762
- Vi as aE,
2763
- Ea as aF,
2764
- hn as aG,
2765
- Xn as aH,
2766
- fn as aI,
2767
- La as aJ,
2759
+ Ma as aE,
2760
+ bn as aF,
2761
+ Yn as aG,
2762
+ mn as aH,
2763
+ Da as aI,
2764
+ qi as aJ,
2768
2765
  Ki as aK,
2769
- Ji as aL,
2770
- Pn as aM,
2766
+ Bn as aL,
2767
+ tl as aM,
2771
2768
  sl as aN,
2772
- ol as aO,
2773
- Un as aP,
2774
- Jn as aQ,
2775
- Yn as aR,
2776
- qn as aS,
2777
- pa as aT,
2778
- ma as aU,
2779
- na as aV,
2780
- fa as aW,
2769
+ Gn as aO,
2770
+ qn as aP,
2771
+ Kn as aQ,
2772
+ Un as aR,
2773
+ ua as aS,
2774
+ da as aT,
2775
+ aa as aU,
2776
+ ma as aV,
2777
+ Xr as aW,
2781
2778
  Zr as aX,
2782
- ei as aY,
2783
- Eo as aZ,
2784
- oa as a_,
2785
- Qr as aa,
2786
- Ni as ab,
2787
- ki as ac,
2788
- si as ad,
2789
- $o as ae,
2790
- Ai as af,
2791
- ri as ag,
2792
- Ci as ah,
2793
- _i as ai,
2779
+ Do as aY,
2780
+ sa as aZ,
2781
+ ia as a_,
2782
+ Yr as aa,
2783
+ wi as ab,
2784
+ Ni as ac,
2785
+ ti as ad,
2786
+ Vo as ae,
2787
+ ji as af,
2788
+ ni as ag,
2789
+ Ai as ah,
2790
+ Ci as ai,
2794
2791
  ns as aj,
2795
2792
  ks as ak,
2796
2793
  yt as al,
2797
- tn as am,
2798
- on as an,
2799
- an as ao,
2800
- Xa as ap,
2801
- Yi as aq,
2802
- Tn as ar,
2803
- Xi as as,
2804
- In as at,
2805
- Dn as au,
2806
- ca as av,
2807
- Do as aw,
2808
- xn as ax,
2809
- Cs as ay,
2810
- Xe as az,
2794
+ Za as am,
2795
+ tn as an,
2796
+ sn as ao,
2797
+ Ya as ap,
2798
+ Ji as aq,
2799
+ Rn as ar,
2800
+ Qi as as,
2801
+ Pn as at,
2802
+ In as au,
2803
+ la as av,
2804
+ gn as aw,
2805
+ Cs as ax,
2806
+ Xe as ay,
2807
+ Ze as az,
2811
2808
  Z as b,
2812
- En as b$,
2809
+ Zi as b$,
2813
2810
  $i as b0,
2814
- Fi as b1,
2815
- yn as b2,
2816
- Ds as b3,
2817
- lr as b4,
2818
- cr as b5,
2819
- dr as b6,
2811
+ xn as b1,
2812
+ Ds as b2,
2813
+ rr as b3,
2814
+ ir as b4,
2815
+ lr as b5,
2816
+ cr as b6,
2820
2817
  ur as b7,
2821
- pr as b8,
2822
- sn as b9,
2823
- xr as bA,
2824
- ul as bB,
2825
- ml as bC,
2826
- ti as bD,
2827
- Da as bE,
2828
- ht as bF,
2829
- Ua as bG,
2830
- Mi as bH,
2831
- Ha as bI,
2832
- ln as bJ,
2833
- As as bK,
2834
- vn as bL,
2835
- Gi as bM,
2836
- wn as bN,
2837
- Sn as bO,
2838
- jn as bP,
2839
- Bn as bQ,
2840
- _n as bR,
2841
- An as bS,
2842
- qi as bT,
2843
- Cn as bU,
2844
- Ui as bV,
2845
- kn as bW,
2846
- Nn as bX,
2847
- Wi as bY,
2848
- Hi as bZ,
2849
- Rn as b_,
2850
- en as ba,
2851
- Rt as bb,
2852
- Bt as bc,
2853
- vl as bd,
2854
- xl as be,
2855
- yl as bf,
2856
- wl as bg,
2857
- Ii as bh,
2858
- za as bi,
2859
- Va as bj,
2860
- $a as bk,
2861
- mn as bl,
2862
- Li as bm,
2863
- sa as bn,
2864
- bn as bo,
2865
- da as bp,
2866
- nn as bq,
2867
- rn as br,
2868
- cn as bs,
2869
- dn as bt,
2870
- gn as bu,
2871
- un as bv,
2872
- Ga as bw,
2873
- Wa as bx,
2874
- ua as by,
2875
- hr as bz,
2818
+ en as b8,
2819
+ Xa as b9,
2820
+ ul as bA,
2821
+ ei as bB,
2822
+ Ia as bC,
2823
+ ht as bD,
2824
+ Ga as bE,
2825
+ Ii as bF,
2826
+ Wa as bG,
2827
+ nn as bH,
2828
+ As as bI,
2829
+ hn as bJ,
2830
+ Fi as bK,
2831
+ yn as bL,
2832
+ Nn as bM,
2833
+ kn as bN,
2834
+ Cn as bO,
2835
+ An as bP,
2836
+ Sn as bQ,
2837
+ Hi as bR,
2838
+ jn as bS,
2839
+ Wi as bT,
2840
+ wn as bU,
2841
+ vn as bV,
2842
+ Gi as bW,
2843
+ Ui as bX,
2844
+ _n as bY,
2845
+ Mn as bZ,
2846
+ Xi as b_,
2847
+ Rt as ba,
2848
+ Bt as bb,
2849
+ yl as bc,
2850
+ bl as bd,
2851
+ hl as be,
2852
+ vl as bf,
2853
+ Ti as bg,
2854
+ La as bh,
2855
+ Oa as bi,
2856
+ za as bj,
2857
+ dn as bk,
2858
+ Ei as bl,
2859
+ ta as bm,
2860
+ fn as bn,
2861
+ on as bo,
2862
+ an as bp,
2863
+ rn as bq,
2864
+ ln as br,
2865
+ pn as bs,
2866
+ cn as bt,
2867
+ $a as bu,
2868
+ Fa as bv,
2869
+ ca as bw,
2870
+ br as bx,
2871
+ gr as by,
2872
+ dl as bz,
2876
2873
  co as c,
2877
- Zi as c0,
2878
- el as c1,
2879
- tl as c2,
2874
+ el as c0,
2875
+ En as c1,
2876
+ Ln as c2,
2880
2877
  On as c3,
2881
2878
  zn as c4,
2882
2879
  Vn as c5,
2883
- $n as c6,
2884
- Fn as c7,
2885
- Hn as c8,
2886
- Kn as c9,
2887
- Qn as ca,
2888
- al as cb,
2889
- nl as cc,
2890
- rl as cd,
2891
- Wn as ce,
2892
- Gn as cf,
2893
- il as cg,
2894
- sr as ch,
2895
- ar as ci,
2896
- or as cj,
2897
- dl as ck,
2898
- fr as cl,
2899
- mr as cm,
2880
+ Wn as c6,
2881
+ Hn as c7,
2882
+ Jn as c8,
2883
+ ol as c9,
2884
+ al as ca,
2885
+ nl as cb,
2886
+ Fn as cc,
2887
+ $n as cd,
2888
+ rl as ce,
2889
+ er as cf,
2890
+ sr as cg,
2891
+ tr as ch,
2892
+ cl as ci,
2893
+ mr as cj,
2894
+ dr as ck,
2895
+ xr as cl,
2896
+ hr as cm,
2900
2897
  yr as cn,
2901
2898
  vr as co,
2902
2899
  wr as cp,
2903
- Nr as cq,
2904
- kr as cr,
2905
- pl as cs,
2906
- fl as ct,
2907
- gl as cu,
2908
- br as cv,
2909
- gr as cw,
2910
- bl as cx,
2911
- hl as cy,
2900
+ ml as cq,
2901
+ pl as cr,
2902
+ fl as cs,
2903
+ fr as ct,
2904
+ pr as cu,
2905
+ gl as cv,
2906
+ xl as cw,
2912
2907
  xo as d,
2913
2908
  bo as e,
2914
2909
  Ae as f,
2915
- Jr as g,
2916
- Ko as h,
2910
+ Kr as g,
2911
+ qo as h,
2917
2912
  ve as i,
2918
2913
  Ce as j,
2919
- ci as k,
2920
- xi as l,
2921
- va as m,
2922
- ha as n,
2923
- gi as o,
2914
+ li as k,
2915
+ bi as l,
2916
+ ha as m,
2917
+ ba as n,
2918
+ fi as o,
2924
2919
  bt as p,
2925
2920
  Q as q,
2926
2921
  Co as r,
2927
- ga as s,
2922
+ pa as s,
2928
2923
  gt as t,
2929
2924
  qt as u,
2930
- Yr as v,
2931
- Xr as w,
2932
- Yo as x,
2933
- Bi as y,
2925
+ Jr as v,
2926
+ Qr as w,
2927
+ Jo as x,
2928
+ _i as y,
2934
2929
  it as z
2935
2930
  };