@chaibuilder/sdk 1.2.8 → 1.2.10-7.beta.1

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/README.md +26 -21
  2. package/dist/CodeEditor-3Vp79cuE.cjs +1 -0
  3. package/dist/CodeEditor-bUqM7eCa.js +129 -0
  4. package/dist/STRINGS-Xxstm-7I.js +7 -0
  5. package/dist/STRINGS-Yl7cSWDc.cjs +1 -0
  6. package/dist/Topbar-P7-9Rps1.js +124 -0
  7. package/dist/Topbar-xwQ4JUZD.cjs +1 -0
  8. package/dist/UnsplashImages-BxgbXGB6.cjs +1 -0
  9. package/dist/UnsplashImages-nQSvWPU0.js +244 -0
  10. package/dist/UploadImages-L9LlI-jl.cjs +1 -0
  11. package/dist/UploadImages-SVnIHigg.js +153 -0
  12. package/dist/context-menu-YGd09SE1.js +979 -0
  13. package/dist/context-menu-sQn7ryJ6.cjs +1 -0
  14. package/dist/{controls-XPXGHKht.js → controls-lEwMTdPQ.js} +96 -44
  15. package/dist/controls-p9IwFnPx.cjs +1 -0
  16. package/dist/core.cjs +1 -1
  17. package/dist/core.d.ts +344 -119
  18. package/dist/core.js +111 -88
  19. package/dist/iconBase-Ief2hJUZ.js +130 -0
  20. package/dist/iconBase-aZzpqff_.cjs +1 -0
  21. package/dist/index-3NV_rst1.js +9051 -0
  22. package/dist/index-qTKBamQ6.cjs +63 -0
  23. package/dist/jsx-runtime-JYMCiFoE.cjs +27 -0
  24. package/dist/{jsx-runtime-WbnYoNE9.js → jsx-runtime-Sp0orL4X.js} +106 -109
  25. package/dist/mockServiceWorker.js +18 -10
  26. package/dist/plugin-UiUFs2fK.js +44 -0
  27. package/dist/plugin-f6SDZ_Or.js +108 -0
  28. package/dist/plugin-jum1MjXp.cjs +1 -0
  29. package/dist/plugin-xOpS-UNV.cjs +1 -0
  30. package/dist/render.cjs +3 -1
  31. package/dist/render.d.ts +21 -40
  32. package/dist/render.js +129 -85
  33. package/dist/runtime.cjs +1 -0
  34. package/dist/runtime.d.ts +5 -0
  35. package/dist/runtime.js +21 -0
  36. package/dist/style.css +2 -2
  37. package/dist/tailwind.cjs +1 -1
  38. package/dist/tailwind.d.ts +49 -8
  39. package/dist/tailwind.js +16 -20
  40. package/dist/ui.cjs +1 -1
  41. package/dist/ui.d.ts +3 -13
  42. package/dist/ui.js +363 -163
  43. package/dist/web-blocks.cjs +3 -9
  44. package/dist/web-blocks.d.ts +1 -1
  45. package/dist/web-blocks.js +725 -766
  46. package/package.json +66 -83
  47. package/dist/AddBlocks-tMxKPoen.js +0 -225
  48. package/dist/AddBlocks-x2LkOHSj.cjs +0 -1
  49. package/dist/BrandingOptions-EzT9UYd6.cjs +0 -1
  50. package/dist/BrandingOptions-QJJ1y5ez.js +0 -194
  51. package/dist/CanvasArea-EfZgx-gN.js +0 -1425
  52. package/dist/CanvasArea-rIDwPHl5.cjs +0 -60
  53. package/dist/CurrentPage-QNFPD078.cjs +0 -1
  54. package/dist/CurrentPage-ulHTz4MD.js +0 -111
  55. package/dist/Functions-7jnEwJyw.js +0 -15
  56. package/dist/Functions-N3yhPYKY.cjs +0 -1
  57. package/dist/Layers-rehZkz78.js +0 -404
  58. package/dist/Layers-v-7k3W2I.cjs +0 -1
  59. package/dist/MODIFIERS-2FeVfZQ9.cjs +0 -1
  60. package/dist/MODIFIERS-RiXS5Mn1.js +0 -67
  61. package/dist/MarkAsGlobalBlock-BjP-Rqlf.js +0 -88
  62. package/dist/MarkAsGlobalBlock-X5dNmZcb.cjs +0 -1
  63. package/dist/PagesPanel-acGVGJf-.js +0 -69
  64. package/dist/PagesPanel-x5ms_LOD.cjs +0 -1
  65. package/dist/ProjectPanel-5BHQ5ANP.cjs +0 -1
  66. package/dist/ProjectPanel-aLFJq49M.js +0 -90
  67. package/dist/Settings-iOjfw5NQ.cjs +0 -1
  68. package/dist/Settings-v-txwlII.js +0 -2193
  69. package/dist/SidePanels-Vdc-J5wK.js +0 -349
  70. package/dist/SidePanels-t0g9ZQFT.cjs +0 -1
  71. package/dist/Topbar-V8xCetWF.cjs +0 -1
  72. package/dist/Topbar-j4t4AgCq.js +0 -116
  73. package/dist/UnsplashImages-41Y3q5_Q.js +0 -200
  74. package/dist/UnsplashImages-DbHky6cj.cjs +0 -1
  75. package/dist/UploadImages-DnQ95_NW.cjs +0 -1
  76. package/dist/UploadImages-xBg-kbKv.js +0 -138
  77. package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
  78. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
  79. package/dist/add-page-modal-0YAI9dXr.cjs +0 -1
  80. package/dist/add-page-modal-6DlGzdA4.js +0 -108
  81. package/dist/confirm-alert-U7-NcG7G.cjs +0 -1
  82. package/dist/confirm-alert-i4pM3mOt.js +0 -62
  83. package/dist/controls-Dy1qa8Dc.cjs +0 -1
  84. package/dist/delete-page-modal-T_rlQfNd.js +0 -88
  85. package/dist/delete-page-modal-qXpi_2xR.cjs +0 -1
  86. package/dist/email-blocks.cjs +0 -1
  87. package/dist/email-blocks.d.ts +0 -3
  88. package/dist/email-blocks.js +0 -274
  89. package/dist/form-OVmsLOrc.js +0 -125
  90. package/dist/form-VbouZlAW.cjs +0 -1
  91. package/dist/functions-Ox_svtKm.cjs +0 -1
  92. package/dist/functions-xIebp8Aw.js +0 -23
  93. package/dist/html-to-json-2PeOCVey.cjs +0 -1
  94. package/dist/html-to-json-57841sEK.js +0 -183
  95. package/dist/index-EGUphg4R.js +0 -41620
  96. package/dist/index-H6vIwGfD.cjs +0 -1
  97. package/dist/index-e0c8PmRQ.js +0 -205
  98. package/dist/index-gi1LIOCw.cjs +0 -1
  99. package/dist/index-jw8RxsTv.cjs +0 -206
  100. package/dist/index-niHREMmR.js +0 -2938
  101. package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
  102. package/dist/lib.cjs +0 -4
  103. package/dist/lib.d.ts +0 -78
  104. package/dist/lib.js +0 -1322
  105. package/dist/page-viewer-EoYYnA56.js +0 -115
  106. package/dist/page-viewer-Ou8vDXGV.cjs +0 -1
  107. package/dist/project-general-setting-92q4oEYv.cjs +0 -1
  108. package/dist/project-general-setting-DC_nADG-.js +0 -83
  109. package/dist/project-seo-setting-Snn2nZgS.cjs +0 -1
  110. package/dist/project-seo-setting-wxAGEkd_.js +0 -85
  111. package/dist/server.cjs +0 -1
  112. package/dist/server.d.ts +0 -299
  113. package/dist/server.js +0 -216
  114. package/dist/single-page-detail-QmmhR_h2.cjs +0 -1
  115. package/dist/single-page-detail-xtNZ9YxX.js +0 -222
  116. package/dist/studio.cjs +0 -1
  117. package/dist/studio.d.ts +0 -13
  118. package/dist/studio.js +0 -58
  119. package/dist/useAddBlockByDrop-_nwI4W3q.js +0 -20
  120. package/dist/useAddBlockByDrop-inkD7Lck.cjs +0 -1
  121. package/dist/utils-AvyFzbPC.js +0 -1075
  122. package/dist/utils-PTxFk6qT.cjs +0 -1
@@ -1,2938 +0,0 @@
1
- import { j as a } from "./jsx-runtime-WbnYoNE9.js";
2
- import * as p from "react";
3
- import et, { createContext as Vs, useContext as $s, useRef as Br, createElement as Tr, useReducer as Fs, useEffect as je, useDebugValue as Gs, useCallback as A, useMemo as Ws, useState as De, Suspense as Nt } from "react";
4
- import * as $t from "@radix-ui/react-toggle";
5
- import { cva as be } from "class-variance-authority";
6
- import { c as Re, a as c } from "./utils-AvyFzbPC.js";
7
- import * as He from "@radix-ui/react-switch";
8
- import { Slot as Us } from "@radix-ui/react-slot";
9
- import * as me from "@radix-ui/react-accordion";
10
- import { ChevronDownIcon as Hs, Cross2Icon as tt, ChevronRightIcon as st, CheckIcon as Ee, DotFilledIcon as ot, CaretSortIcon as qs, MagnifyingGlassIcon as Ks } from "@radix-ui/react-icons";
11
- import * as $ from "@radix-ui/react-alert-dialog";
12
- import * as B from "@radix-ui/react-dialog";
13
- import * as Ft from "@radix-ui/react-label";
14
- import * as pe from "@radix-ui/react-scroll-area";
15
- import * as he from "@radix-ui/react-tabs";
16
- import * as we from "@radix-ui/react-tooltip";
17
- import * as Se from "@radix-ui/react-popover";
18
- import * as C from "@radix-ui/react-menubar";
19
- import * as Oe from "@radix-ui/react-hover-card";
20
- import * as O from "@radix-ui/react-select";
21
- import * as R from "@radix-ui/react-dropdown-menu";
22
- import * as Gt from "@radix-ui/react-separator";
23
- import * as q from "@radix-ui/react-toast";
24
- import { Command as U } from "cmdk";
25
- import * as P from "@radix-ui/react-context-menu";
26
- import Js, { IconPickerItem as Ys } from "react-icons-picker";
27
- import Qs from "react-dom";
28
- import { flatten as Y, filter as I, omit as at, isEmpty as ce, isString as Xs, find as se, map as V, each as ie, get as z, set as fe, has as nt, includes as W, isUndefined as zr, without as Wt, forIn as Ut, findIndex as Be, last as Zs, first as ee, startsWith as Ht, isNull as qe, pick as kt, sortBy as St, isObject as eo } from "lodash-es";
29
- import to from "react-quill";
30
- import { atom as y, useAtom as T, useAtomValue as E, useSetAtom as de } from "jotai";
31
- import qt from "flat-to-nested";
32
- import { g as le, a as so } from "./Functions-7jnEwJyw.js";
33
- import oo, { excludeAction as ao, ActionCreators as Ve } from "redux-undo";
34
- import { getBlockComponent as rt, useChaiBlocks as no } from "@chaibuilder/runtime";
35
- import { has as it } from "lodash";
36
- import { a as ge, I as Kt, S as Ke, B as Je } from "./MODIFIERS-RiXS5Mn1.js";
37
- import { useThrottledCallback as ro } from "@react-hookz/web";
38
- import "react-i18next";
39
- var L = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
40
- let io = 0;
41
- function Z(e, t) {
42
- const s = `atom${++io}`, o = {
43
- toString: () => s
44
- };
45
- return typeof e == "function" ? o.read = e : (o.init = e, o.read = (n) => n(o), o.write = (n, r, i) => r(
46
- o,
47
- typeof i == "function" ? i(n(o)) : i
48
- )), t && (o.write = t), o;
49
- }
50
- const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new WeakMap(), lo = (e, t) => {
51
- Me.set(e, t), e.catch(() => {
52
- }).finally(() => Me.delete(e));
53
- }, jt = (e, t) => {
54
- const s = Me.get(e);
55
- s && (Me.delete(e), s(t));
56
- }, At = (e, t) => {
57
- e.status = "fulfilled", e.value = t;
58
- }, Ct = (e, t) => {
59
- e.status = "rejected", e.reason = t;
60
- }, co = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), _t = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), ye = (e) => "v" in e && e.v instanceof Promise, uo = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Te = (e) => {
61
- if ("e" in e)
62
- throw e.e;
63
- return e.v;
64
- }, po = () => {
65
- const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
66
- let o, n, r;
67
- (L ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set());
68
- const i = (d) => e.get(d), u = (d, f) => {
69
- (L ? "production" : void 0) !== "production" && Object.freeze(f);
70
- const x = e.get(d);
71
- if (e.set(d, f), s.has(d) || s.set(d, x), x && ye(x)) {
72
- const g = "v" in f ? f.v instanceof Promise ? f.v : Promise.resolve(f.v) : Promise.reject(f.e);
73
- jt(x.v, g);
74
- }
75
- }, m = (d, f, x) => {
76
- const g = /* @__PURE__ */ new Map();
77
- let v = !1;
78
- x.forEach((h, N) => {
79
- !h && N === d && (h = f), h ? (g.set(N, h), f.d.get(N) !== h && (v = !0)) : (L ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
80
- }), (v || f.d.size !== g.size) && (f.d = g);
81
- }, l = (d, f, x) => {
82
- const g = i(d), v = {
83
- d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
84
- v: f
85
- };
86
- if (x && m(d, v, x), g && Ne(g, v) && g.d === v.d)
87
- return g;
88
- if (g && ye(g) && ye(v) && uo(g, v)) {
89
- if (g.d === v.d)
90
- return g;
91
- v.v = g.v;
92
- }
93
- return u(d, v), v;
94
- }, b = (d, f, x, g) => {
95
- if (co(f)) {
96
- let v;
97
- const h = new Promise((N, M) => {
98
- let S = !1;
99
- f.then(
100
- (_) => {
101
- if (!S) {
102
- S = !0;
103
- const j = i(d), X = l(
104
- d,
105
- h,
106
- x
107
- );
108
- At(h, _), N(_), (j == null ? void 0 : j.d) !== X.d && H(d, X, j == null ? void 0 : j.d);
109
- }
110
- },
111
- (_) => {
112
- if (!S) {
113
- S = !0;
114
- const j = i(d), X = l(
115
- d,
116
- h,
117
- x
118
- );
119
- Ct(h, _), M(_), (j == null ? void 0 : j.d) !== X.d && H(d, X, j == null ? void 0 : j.d);
120
- }
121
- }
122
- ), v = (_) => {
123
- S || (S = !0, _.then(
124
- (j) => At(h, j),
125
- (j) => Ct(h, j)
126
- ), N(_));
127
- };
128
- });
129
- return h.orig = f, h.status = "pending", lo(h, (N) => {
130
- N && v(N), g == null || g();
131
- }), l(d, h, x);
132
- }
133
- return l(d, f, x);
134
- }, w = (d, f, x) => {
135
- const g = i(d), v = {
136
- d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
137
- e: f
138
- };
139
- return x && m(d, v, x), g && _t(g, v) && g.d === v.d ? g : (u(d, v), v);
140
- }, k = (d) => {
141
- const f = i(d);
142
- if (f && (f.d.forEach((S, _) => {
143
- _ !== d && !t.has(_) && k(_);
144
- }), Array.from(f.d).every(([S, _]) => {
145
- const j = i(S);
146
- return S === d || j === _ || // TODO This is a hack, we should find a better solution.
147
- j && !ye(j) && Ne(j, _);
148
- })))
149
- return f;
150
- const x = /* @__PURE__ */ new Map();
151
- let g = !0;
152
- const v = (S) => {
153
- if (S === d) {
154
- const j = i(S);
155
- if (j)
156
- return x.set(S, j), Te(j);
157
- if ($e(S))
158
- return x.set(S, void 0), S.init;
159
- throw new Error("no atom init");
160
- }
161
- const _ = k(S);
162
- return x.set(S, _), Te(_);
163
- };
164
- let h, N;
165
- const M = {
166
- get signal() {
167
- return h || (h = new AbortController()), h.signal;
168
- },
169
- get setSelf() {
170
- return (L ? "production" : void 0) !== "production" && !Fe(d) && console.warn("setSelf function cannot be used with read-only atom"), !N && Fe(d) && (N = (...S) => {
171
- if ((L ? "production" : void 0) !== "production" && g && console.warn("setSelf function cannot be called in sync"), !g)
172
- return te(d, ...S);
173
- }), N;
174
- }
175
- };
176
- try {
177
- const S = d.read(v, M);
178
- return b(
179
- d,
180
- S,
181
- x,
182
- () => h == null ? void 0 : h.abort()
183
- );
184
- } catch (S) {
185
- return w(d, S, x);
186
- } finally {
187
- g = !1;
188
- }
189
- }, D = (d) => Te(k(d)), G = (d) => {
190
- let f = t.get(d);
191
- return f || (f = J(d)), f;
192
- }, F = (d, f) => !f.l.size && (!f.t.size || f.t.size === 1 && f.t.has(d)), oe = (d) => {
193
- const f = t.get(d);
194
- f && F(d, f) && ue(d);
195
- }, xe = (d) => {
196
- const f = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new WeakMap(), g = (h) => {
197
- const N = t.get(h);
198
- N == null || N.t.forEach((M) => {
199
- M !== h && (f.set(
200
- M,
201
- (f.get(M) || /* @__PURE__ */ new Set()).add(h)
202
- ), x.set(M, (x.get(M) || 0) + 1), g(M));
203
- });
204
- };
205
- g(d);
206
- const v = (h) => {
207
- const N = t.get(h);
208
- N == null || N.t.forEach((M) => {
209
- var S;
210
- if (M !== h) {
211
- let _ = x.get(M);
212
- if (_ && x.set(M, --_), !_) {
213
- let j = !!((S = f.get(M)) != null && S.size);
214
- if (j) {
215
- const X = i(M), zs = k(M);
216
- j = !X || !Ne(X, zs);
217
- }
218
- j || f.forEach((X) => X.delete(M));
219
- }
220
- v(M);
221
- }
222
- });
223
- };
224
- v(d);
225
- }, ae = (d, ...f) => {
226
- let x = !0;
227
- const g = (N) => Te(k(N)), v = (N, ...M) => {
228
- let S;
229
- if (N === d) {
230
- if (!$e(N))
231
- throw new Error("atom not writable");
232
- const _ = i(N), j = b(N, M[0]);
233
- (!_ || !Ne(_, j)) && xe(N);
234
- } else
235
- S = ae(N, ...M);
236
- if (!x) {
237
- const _ = ne();
238
- (L ? "production" : void 0) !== "production" && n.forEach(
239
- (j) => j({ type: "async-write", flushed: _ })
240
- );
241
- }
242
- return S;
243
- }, h = d.write(g, v, ...f);
244
- return x = !1, h;
245
- }, te = (d, ...f) => {
246
- const x = ae(d, ...f), g = ne();
247
- return (L ? "production" : void 0) !== "production" && n.forEach(
248
- (v) => v({ type: "write", flushed: g })
249
- ), x;
250
- }, J = (d, f) => {
251
- const x = {
252
- t: new Set(f && [f]),
253
- l: /* @__PURE__ */ new Set()
254
- };
255
- if (t.set(d, x), (L ? "production" : void 0) !== "production" && r.add(d), k(d).d.forEach((g, v) => {
256
- const h = t.get(v);
257
- h ? h.t.add(d) : v !== d && J(v, d);
258
- }), k(d), Fe(d) && d.onMount) {
259
- const g = d.onMount((...v) => te(d, ...v));
260
- g && (x.u = g);
261
- }
262
- return x;
263
- }, ue = (d) => {
264
- var f;
265
- const x = (f = t.get(d)) == null ? void 0 : f.u;
266
- x && x(), t.delete(d), (L ? "production" : void 0) !== "production" && r.delete(d);
267
- const g = i(d);
268
- g ? (ye(g) && jt(g.v), g.d.forEach((v, h) => {
269
- if (h !== d) {
270
- const N = t.get(h);
271
- N && (N.t.delete(d), F(h, N) && ue(h));
272
- }
273
- })) : (L ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", d);
274
- }, H = (d, f, x) => {
275
- const g = new Set(f.d.keys());
276
- x == null || x.forEach((v, h) => {
277
- if (g.has(h)) {
278
- g.delete(h);
279
- return;
280
- }
281
- const N = t.get(h);
282
- N && (N.t.delete(d), F(h, N) && ue(h));
283
- }), g.forEach((v) => {
284
- const h = t.get(v);
285
- h ? h.t.add(d) : t.has(d) && J(v, d);
286
- });
287
- }, ne = () => {
288
- let d;
289
- for ((L ? "production" : void 0) !== "production" && (d = /* @__PURE__ */ new Set()); s.size; ) {
290
- const f = Array.from(s);
291
- s.clear(), f.forEach(([x, g]) => {
292
- const v = i(x);
293
- if (v) {
294
- v.d !== (g == null ? void 0 : g.d) && H(x, v, g == null ? void 0 : g.d);
295
- const h = t.get(x);
296
- h && !// TODO This seems pretty hacky. Hope to fix it.
297
- // Maybe we could `mountDependencies` in `setAtomState`?
298
- (g && !ye(g) && (Ne(g, v) || _t(g, v))) && (h.l.forEach((N) => N()), (L ? "production" : void 0) !== "production" && d.add(x));
299
- } else
300
- (L ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
301
- });
302
- }
303
- if ((L ? "production" : void 0) !== "production")
304
- return o.forEach((f) => f("state")), d;
305
- }, re = (d, f) => {
306
- const x = G(d), g = ne(), v = x.l;
307
- return v.add(f), (L ? "production" : void 0) !== "production" && (o.forEach((h) => h("sub")), n.forEach(
308
- (h) => h({ type: "sub", flushed: g })
309
- )), () => {
310
- v.delete(f), oe(d), (L ? "production" : void 0) !== "production" && (o.forEach((h) => h("unsub")), n.forEach((h) => h({ type: "unsub" })));
311
- };
312
- };
313
- return (L ? "production" : void 0) !== "production" ? {
314
- get: D,
315
- set: te,
316
- sub: re,
317
- // store dev methods (these are tentative and subject to change without notice)
318
- dev_subscribe_store: (d, f) => f !== 2 ? (console.warn(
319
- "The current StoreListener revision is 2. The older ones are deprecated."
320
- ), o.add(d), () => {
321
- o.delete(d);
322
- }) : (n.add(d), () => {
323
- n.delete(d);
324
- }),
325
- dev_get_mounted_atoms: () => r.values(),
326
- dev_get_atom_state: (d) => e.get(d),
327
- dev_get_mounted: (d) => t.get(d),
328
- dev_restore_atoms: (d) => {
329
- for (const [x, g] of d)
330
- $e(x) && (b(x, g), xe(x));
331
- const f = ne();
332
- n.forEach(
333
- (x) => x({ type: "restore", flushed: f })
334
- );
335
- }
336
- } : {
337
- get: D,
338
- set: te,
339
- sub: re
340
- };
341
- };
342
- let Ge;
343
- const mo = () => (Ge || (Ge = po()), Ge);
344
- var fo = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
345
- const go = Vs(void 0), Jt = (e) => {
346
- const t = $s(go);
347
- return (e == null ? void 0 : e.store) || t || mo();
348
- };
349
- const bo = (e) => typeof (e == null ? void 0 : e.then) == "function", ho = et.use || ((e) => {
350
- if (e.status === "pending")
351
- throw e;
352
- if (e.status === "fulfilled")
353
- return e.value;
354
- throw e.status === "rejected" ? e.reason : (e.status = "pending", e.then(
355
- (t) => {
356
- e.status = "fulfilled", e.value = t;
357
- },
358
- (t) => {
359
- e.status = "rejected", e.reason = t;
360
- }
361
- ), e);
362
- });
363
- function xo(e, t) {
364
- const s = Jt(t), [[o, n, r], i] = Fs(
365
- (l) => {
366
- const b = s.get(e);
367
- return Object.is(l[0], b) && l[1] === s && l[2] === e ? l : [b, s, e];
368
- },
369
- void 0,
370
- () => [s.get(e), s, e]
371
- );
372
- let u = o;
373
- (n !== s || r !== e) && (i(), u = s.get(e));
374
- const m = t == null ? void 0 : t.delay;
375
- return je(() => {
376
- const l = s.sub(e, () => {
377
- if (typeof m == "number") {
378
- setTimeout(i, m);
379
- return;
380
- }
381
- i();
382
- });
383
- return i(), l;
384
- }, [s, e, m]), Gs(u), bo(u) ? ho(u) : u;
385
- }
386
- function yo(e, t) {
387
- const s = Jt(t);
388
- return A(
389
- (...n) => {
390
- if ((fo ? "production" : void 0) !== "production" && !("write" in e))
391
- throw new Error("not writable atom");
392
- return s.set(e, ...n);
393
- },
394
- [s, e]
395
- );
396
- }
397
- function Yr(e, t) {
398
- return [
399
- xo(e, t),
400
- // We do wrong type assertion here, which results in throwing an error.
401
- yo(e, t)
402
- ];
403
- }
404
- var lt = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
405
- const Yt = Symbol();
406
- function vo(e, t) {
407
- const s = Z(
408
- e,
409
- (o, n, r) => n(s, t(o(s), r))
410
- );
411
- return s;
412
- }
413
- const Bt = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), wo = /* @__PURE__ */ new WeakMap(), No = (e, t, s) => {
414
- const o = Bt(() => /* @__PURE__ */ new WeakMap(), wo, t);
415
- return Bt(e, o, s);
416
- }, ko = {}, Tt = (e) => !!e.write, So = (e) => typeof e == "function";
417
- function jo(e, t) {
418
- return No(
419
- () => {
420
- const s = /* @__PURE__ */ new WeakMap(), o = (i, u) => {
421
- let m = s.get(i);
422
- if (m)
423
- return m;
424
- const l = u && s.get(u), b = [], w = [];
425
- return i.forEach((k, D) => {
426
- const G = t ? t(k) : D;
427
- w[D] = G;
428
- const F = l && l.atomList[l.keyList.indexOf(G)];
429
- if (F) {
430
- b[D] = F;
431
- return;
432
- }
433
- const oe = (ae) => {
434
- const te = ae(n), J = ae(e), H = o(J, te == null ? void 0 : te.arr).keyList.indexOf(G);
435
- if (H < 0 || H >= J.length) {
436
- const ne = i[o(i).keyList.indexOf(G)];
437
- if (ne)
438
- return ne;
439
- throw new Error("splitAtom: index out of bounds for read");
440
- }
441
- return J[H];
442
- }, xe = (ae, te, J) => {
443
- const ue = ae(n), H = ae(e), re = o(H, ue == null ? void 0 : ue.arr).keyList.indexOf(G);
444
- if (re < 0 || re >= H.length)
445
- throw new Error("splitAtom: index out of bounds for write");
446
- const d = So(J) ? J(H[re]) : J;
447
- te(e, [
448
- ...H.slice(0, re),
449
- d,
450
- ...H.slice(re + 1)
451
- ]);
452
- };
453
- b[D] = Tt(e) ? Z(oe, xe) : Z(oe);
454
- }), l && l.keyList.length === w.length && l.keyList.every((k, D) => k === w[D]) ? m = l : m = { arr: i, atomList: b, keyList: w }, s.set(i, m), m;
455
- }, n = Z((i) => {
456
- const u = i(n), m = i(e);
457
- return o(m, u == null ? void 0 : u.arr);
458
- });
459
- (lt ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
460
- const r = Tt(e) ? Z(
461
- (i) => i(n).atomList,
462
- (i, u, m) => {
463
- switch (m.type) {
464
- case "remove": {
465
- const l = i(r).indexOf(m.atom);
466
- if (l >= 0) {
467
- const b = i(e);
468
- u(e, [
469
- ...b.slice(0, l),
470
- ...b.slice(l + 1)
471
- ]);
472
- }
473
- break;
474
- }
475
- case "insert": {
476
- const l = m.before ? i(r).indexOf(m.before) : i(r).length;
477
- if (l >= 0) {
478
- const b = i(e);
479
- u(e, [
480
- ...b.slice(0, l),
481
- m.value,
482
- ...b.slice(l)
483
- ]);
484
- }
485
- break;
486
- }
487
- case "move": {
488
- const l = i(r).indexOf(m.atom), b = m.before ? i(r).indexOf(m.before) : i(r).length;
489
- if (l >= 0 && b >= 0) {
490
- const w = i(e);
491
- l < b ? u(e, [
492
- ...w.slice(0, l),
493
- ...w.slice(l + 1, b),
494
- w[l],
495
- ...w.slice(b)
496
- ]) : u(e, [
497
- ...w.slice(0, b),
498
- w[l],
499
- ...w.slice(b, l),
500
- ...w.slice(l + 1)
501
- ]);
502
- }
503
- break;
504
- }
505
- }
506
- }
507
- ) : Z((i) => i(n).atomList);
508
- return r;
509
- },
510
- e,
511
- t || ko
512
- );
513
- }
514
- function Qr(e) {
515
- const t = Symbol(), s = Z(t);
516
- (lt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
517
- const o = Z(
518
- (n, r) => {
519
- const i = n(s);
520
- return i !== t ? i : e(n, r);
521
- },
522
- (n, r, i) => {
523
- if (i === Yt)
524
- r(s, t);
525
- else if (typeof i == "function") {
526
- const u = n(o);
527
- r(s, i(u));
528
- } else
529
- r(s, i);
530
- }
531
- );
532
- return o;
533
- }
534
- const Ao = (e) => typeof (e == null ? void 0 : e.then) == "function";
535
- function Co(e) {
536
- let t, s;
537
- const o = {
538
- getItem: (n, r) => {
539
- var i, u;
540
- const m = (b) => {
541
- if (b = b || "", t !== b) {
542
- try {
543
- s = JSON.parse(b);
544
- } catch {
545
- return r;
546
- }
547
- t = b;
548
- }
549
- return s;
550
- }, l = (u = (i = e()) == null ? void 0 : i.getItem(n)) != null ? u : null;
551
- return Ao(l) ? l.then(m) : m(l);
552
- },
553
- setItem: (n, r) => {
554
- var i;
555
- return (i = e()) == null ? void 0 : i.setItem(n, JSON.stringify(r));
556
- },
557
- removeItem: (n) => {
558
- var r;
559
- return (r = e()) == null ? void 0 : r.removeItem(n);
560
- }
561
- };
562
- return typeof window < "u" && typeof window.addEventListener == "function" && (o.subscribe = (n, r, i) => {
563
- if (!(e() instanceof window.Storage))
564
- return () => {
565
- };
566
- const u = (m) => {
567
- if (m.storageArea === e() && m.key === n) {
568
- let l;
569
- try {
570
- l = JSON.parse(m.newValue || "");
571
- } catch {
572
- l = i;
573
- }
574
- r(l);
575
- }
576
- };
577
- return window.addEventListener("storage", u), () => {
578
- window.removeEventListener("storage", u);
579
- };
580
- }), o;
581
- }
582
- const _o = Co(
583
- () => typeof window < "u" ? window.localStorage : void 0
584
- );
585
- function Ae(e, t, s = _o, o) {
586
- const n = o == null ? void 0 : o.unstable_getOnInit, r = Z(
587
- n ? s.getItem(e, t) : t
588
- );
589
- return (lt ? "production" : void 0) !== "production" && (r.debugPrivate = !0), r.onMount = (u) => {
590
- n || u(s.getItem(e, t));
591
- let m;
592
- return s.subscribe && (m = s.subscribe(e, u, t)), m;
593
- }, Z(
594
- (u) => u(r),
595
- (u, m, l) => {
596
- const b = typeof l == "function" ? l(u(r)) : l;
597
- return b === Yt ? (m(r, t), s.removeItem(e)) : b instanceof Promise ? b.then((w) => (m(r, w), s.setItem(e, w))) : (m(r, b), s.setItem(e, b));
598
- }
599
- );
600
- }
601
- const ct = y(null);
602
- ct.debugLabel = "chaiBuilderPropsAtom";
603
- const Bo = y({});
604
- Bo.debugLabel = "chaiExternalDataAtom";
605
- const Xr = () => !1, To = (e) => {
606
- const t = e.replace(ge, "").split(",");
607
- return { baseClasses: t[0], classes: t[1] };
608
- };
609
- const Ro = new qt({ children: "blockNodes" }), Qt = (e, t = null) => Y(
610
- e.map((s) => {
611
- if (s = t !== null ? { ...s, parent: t } : s, s.children && s.children.length) {
612
- const o = [...s.children];
613
- return delete s.children, Y([s, ...Qt(o, s._id)]);
614
- }
615
- return s;
616
- })
617
- );
618
- function Xt(e, t, s) {
619
- const o = I(e, (r) => r._parent === t), n = [];
620
- for (let r = 0; r < o.length; r++) {
621
- const i = Zt(o[r]);
622
- if (Object.keys(i).length > 0 && Object.keys(i).forEach((u) => {
623
- o[r][u] = `slot:${le()}`;
624
- }), I(e, { _parent: o[r]._id }).length > 0) {
625
- const u = le();
626
- n.push({ ...o[r], oldId: o[r]._id, _id: u, _parent: s }), n.push(Y(Xt(e, o[r]._id, u)));
627
- } else
628
- n.push({
629
- ...o[r],
630
- oldId: o[r]._id,
631
- _id: le(),
632
- _parent: s
633
- });
634
- }
635
- return Y(n);
636
- }
637
- function Po(e) {
638
- let t = Ro.convert(e.map((s) => at(s, ["settings"])));
639
- return t = !t.type && t.blockNodes ? t.blockNodes : ce(t) ? [] : [t], t;
640
- }
641
- const Zt = (e) => {
642
- const t = {};
643
- return Object.keys(e).forEach((s) => {
644
- Xs(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
645
- }), t;
646
- }, Io = (e, t, s = null) => {
647
- let o = se(e, { _id: t });
648
- o = { ...o, oldId: o._id, _id: le() }, s && (o = { ...o, _parent: s });
649
- const n = [o];
650
- I(e, { _parent: t }).length > 0 && n.push(Y(Xt(e, t, o._id)));
651
- const r = Y(n);
652
- return V(r, (i) => {
653
- const u = i, m = Zt(u);
654
- return Object.keys(m).length > 0 && Object.keys(m).forEach((l) => {
655
- const b = se(r, { oldId: m[l].replace("slot:", "") });
656
- u[l] = `slot:${b._id}`;
657
- }), at(u, ["global", "oldId"]);
658
- });
659
- };
660
- const Mo = oo(
661
- // eslint-disable-next-line default-param-last
662
- (e = [], t) => {
663
- switch (t.type) {
664
- case "add_new_blocks":
665
- case "add_duplicate_blocks":
666
- return [...e, ...t.payload];
667
- case "create_snapshot":
668
- return [...e];
669
- case "set_blocks":
670
- case "set_page_blocks":
671
- return [...t.payload];
672
- case "update_props":
673
- case "update_props_realtime":
674
- const { payload: s } = t;
675
- return e.map((o) => (s.ids.includes(o._id) && !ce(t.payload.props) && Object.keys(t.payload.props).forEach((n) => {
676
- fe(o, n, t.payload.props[n]);
677
- }), o));
678
- default:
679
- return e;
680
- }
681
- },
682
- {
683
- debug: !1,
684
- ignoreInitialState: !1,
685
- limit: 30,
686
- filter: ao(["update_props_realtime", "add_duplicate_blocks", "set_page_blocks"])
687
- }
688
- ), Le = vo(
689
- {
690
- past: [],
691
- present: [],
692
- future: []
693
- },
694
- Mo
695
- );
696
- Le.debugLabel = "pageBlocksAtom";
697
- const Q = y((e) => {
698
- var t;
699
- return (t = e(Le)) == null ? void 0 : t.present;
700
- });
701
- Q.debugLabel = "presentBlocksAtom";
702
- const dt = jo(Q);
703
- dt.debugLabel = "pageBlocksAtomsAtom";
704
- const es = y((e) => Po(e(Q)));
705
- es.debugLabel = "pageBlocksTreeAtom";
706
- const Do = y("");
707
- Do.debugLabel = "builderActivePageAtom";
708
- const Eo = y(-1);
709
- Eo.debugLabel = "destinationDropIndexAtom";
710
- const ts = y([]);
711
- ts.debugLabel = "buildingBlocksAtom";
712
- const ss = y((e) => {
713
- const t = e(ts);
714
- return I(t, (s) => nt(s, "blockId"));
715
- });
716
- ss.debugLabel = "globalBlocksAtom";
717
- const K = () => {
718
- const [, e] = T(Le);
719
- return e;
720
- }, Zr = () => {
721
- const e = K(), t = E(es), s = A(
722
- (o) => {
723
- const n = Qt(o);
724
- e({ type: "set_page_blocks", payload: n });
725
- },
726
- [e]
727
- );
728
- return [t, s];
729
- }, ei = () => {
730
- const e = K();
731
- return [A(
732
- (s) => {
733
- e({ type: "set_page_blocks", payload: s });
734
- },
735
- [e]
736
- )];
737
- }, Ye = (e, t) => {
738
- if (!e)
739
- return !0;
740
- const s = rt(e);
741
- return s && it(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
742
- }, ti = (e) => {
743
- const t = rt(e);
744
- return t && it(t, "canDuplicate") ? t.canDuplicate() : !0;
745
- }, si = (e) => {
746
- const t = rt(e);
747
- return t && it(t, "canDelete") ? t.canDelete() : !0;
748
- }, oi = (e, { dragSource: t, dropTarget: s }) => {
749
- const o = z(t, "data._type", ""), n = z(s, "data._type", "");
750
- return Ye(n, o);
751
- }, ut = y([]);
752
- ut.debugLabel = "selectedBlockIdsAtom";
753
- const pt = y((e) => {
754
- const t = e(Q), s = e(ut);
755
- return V(
756
- I(t, ({ _id: o }) => W(s, o)),
757
- (o) => ({ ...o })
758
- );
759
- });
760
- pt.debugLabel = "selectedBlocksAtom";
761
- const mt = y((e) => {
762
- const t = e(pt);
763
- return t.length === 0 ? null : t.length === 1 ? t[0] : {
764
- type: "Multiple",
765
- id: V(t, "id")
766
- };
767
- });
768
- mt.debugLabel = "selectedBlockAtom";
769
- const Oo = (e) => z(e, "parent", null), Lo = y((e) => {
770
- const t = e(pt), s = V(t, Oo);
771
- return I(e(Q), (o) => W(s, o._id));
772
- });
773
- Lo.debugLabel = "selectedBlocksParentsAtom";
774
- const os = y(() => !1);
775
- os.debugLabel = "selectedBlockFlexChildAtom";
776
- const as = y(() => !1);
777
- as.debugLabel = "selectedBlockGridChildAtom";
778
- const ft = y("");
779
- ft.debugLabel = "styleStateAtom";
780
- const ns = Ae("styleBreakpoint", "xs");
781
- ns.debugLabel = "styleBreakpointAtom";
782
- const ai = () => ({
783
- flexChild: E(os),
784
- gridChild: E(as)
785
- }), ni = () => E(mt);
786
- const Ce = () => {
787
- const [e, t] = T(ut), s = A(
788
- (o) => {
789
- t((n) => W(n, o) ? Wt(n, o) : [...n, o]);
790
- },
791
- [t]
792
- );
793
- return [e, t, s];
794
- }, Rt = (e) => {
795
- switch (e.type) {
796
- case "singular":
797
- return e.uiSchema;
798
- case "model":
799
- const { properties: t } = e, s = {};
800
- return Object.keys(t).forEach((r) => {
801
- const i = t[r];
802
- if (W(["slot", "styles"], i.type))
803
- return;
804
- const u = r;
805
- s[u] = Rt(i);
806
- }), s;
807
- case "list":
808
- const { itemProperties: o } = e, n = {
809
- items: {}
810
- };
811
- return Object.keys(o).forEach((r) => {
812
- const i = o[r];
813
- if (W(["slot", "styles"], i.type))
814
- return;
815
- const u = r;
816
- n.items[u] = Rt(i);
817
- }), n;
818
- default:
819
- return {};
820
- }
821
- }, Pt = (e) => {
822
- switch (e.type) {
823
- case "singular":
824
- return e.schema;
825
- case "model":
826
- const { properties: t, title: s } = e, o = {
827
- title: s,
828
- type: "object",
829
- properties: {}
830
- };
831
- return Object.keys(t).forEach((u) => {
832
- const m = t[u];
833
- if (W(["slot", "styles"], m.type))
834
- return;
835
- const l = u;
836
- o.properties[l] = Pt(m);
837
- }), o;
838
- case "list":
839
- const { itemProperties: n, title: r } = e, i = {
840
- title: r,
841
- type: "array",
842
- items: {
843
- type: "object",
844
- properties: {}
845
- }
846
- };
847
- return Object.keys(n).forEach((u) => {
848
- const m = n[u];
849
- if (W(["slot", "styles"], m.type))
850
- return;
851
- const l = u;
852
- i.items.properties[l] = Pt(m), fe(i.items, "title", z(m, "itemTitle", `${r} item`));
853
- }), i;
854
- default:
855
- return {};
856
- }
857
- }, rs = (e) => {
858
- const t = {};
859
- return Object.keys(e).forEach((s) => {
860
- t[s] = Vo(e[s]);
861
- }), t;
862
- }, zo = (e) => {
863
- if (ce(e.default))
864
- return [];
865
- const { itemProperties: t } = e;
866
- return V(e.default, (s) => {
867
- const o = { ...s };
868
- return Ut(s, (n, r) => {
869
- nt(t, r) && z(t[r], "i18n", !1) && (o[r] = Kt);
870
- }), o;
871
- });
872
- }, Vo = (e) => {
873
- switch (e.type) {
874
- case "styles":
875
- return e.default;
876
- case "slot":
877
- return `${Ke}${le()}`;
878
- case "singular":
879
- const { i18n: t, schema: s } = e;
880
- return t ? Kt : z(s, "default", "");
881
- case "model":
882
- return rs(e.properties);
883
- case "list":
884
- return zo(e);
885
- default:
886
- return "";
887
- }
888
- };
889
- const $o = () => E(Q);
890
- function It(e, t, s, o, n) {
891
- if (s !== null) {
892
- const m = Be(e, { _parent: t }), l = (m === -1 ? 0 : m) + s;
893
- return e.splice(l, 0, ...o), e;
894
- }
895
- if (!n) {
896
- const l = Be(e, { _id: t }) + 1;
897
- return e.splice(l, 0, ...o), e;
898
- }
899
- let r = Be(e, { _id: t });
900
- const i = I(e, { _parent: t });
901
- ce(i) || (r = Be(e, { _id: Zs(i)._id }));
902
- const u = r + 1;
903
- return e.splice(u, 0, ...o), e;
904
- }
905
- const ri = () => {
906
- const e = K(), t = $o(), [, s] = Ce(), o = A(
907
- (r, i, u) => {
908
- var w;
909
- for (let k = 0; k < r.length; k++) {
910
- const { _id: D } = r[k];
911
- r[k]._id = le();
912
- const G = I(r, { _parent: D });
913
- for (let F = 0; F < G.length; F++)
914
- G[F]._parent = r[k]._id;
915
- }
916
- const m = ee(r);
917
- let l;
918
- i && (l = se(t, { _id: i }), r[0]._parent = i);
919
- const b = l ? Ye(l._type, m._type) : !0;
920
- return !b && l && (r[0]._parent = l._parent), e({
921
- type: "set_blocks",
922
- payload: It(t, i || null, u || null, r, b)
923
- }), s([(w = ee(r)) == null ? void 0 : w._id]), ee(r);
924
- },
925
- [t, e, s]
926
- );
927
- return { addCoreBlock: A(
928
- (r, i, u) => {
929
- if (nt(r, "blocks")) {
930
- const F = r.blocks;
931
- return o(F, i, u);
932
- }
933
- const m = le(), l = rs(r.props), b = [];
934
- Ut(l, (F, oe) => {
935
- if (Ht(F, Ke)) {
936
- const xe = F.replace(Ke, "");
937
- b.push({
938
- _id: xe,
939
- _type: "Slot",
940
- _parent: m,
941
- _name: r.props[oe].name,
942
- _styles: r.props[oe].styles,
943
- _emptyStyles: r.props[oe].emptyStyles
944
- });
945
- }
946
- });
947
- const w = {
948
- _type: r.type,
949
- _id: m,
950
- ...l
951
- };
952
- let k;
953
- i && (k = se(t, { _id: i }), w._parent = i);
954
- const D = k ? Ye(k._type, r.type) : !0;
955
- !D && k && (w._parent = k._parent);
956
- const G = [w, ...b];
957
- return e({
958
- type: "set_blocks",
959
- payload: It(t, i || null, u || null, G, D)
960
- }), s([w._id]), w;
961
- },
962
- [o, t, e, s]
963
- ), addPredefinedBlock: o };
964
- }, Mt = {
965
- xs: 420,
966
- sm: 620,
967
- md: 768,
968
- lg: 1024,
969
- xl: 1280,
970
- "2xl": 1536
971
- }, Dt = ["xs", "sm", "md", "lg", "xl", "2xl"];
972
- function Fo(e, t) {
973
- if (t === null)
974
- return "baseClasses";
975
- const s = t.mq;
976
- if (s === "xs" || t.dark || t.mod !== "")
977
- return "classes";
978
- let o = "baseClasses", n = Dt.indexOf(s);
979
- for (; n > 0; ) {
980
- const r = Dt[n - 1];
981
- if (se(e, {
982
- mq: r,
983
- property: t.property
984
- })) {
985
- o = "classes";
986
- break;
987
- }
988
- n--;
989
- }
990
- return o;
991
- }
992
- const Et = [];
993
- function Go(e = "", t = "", s = []) {
994
- e = e.trim().replace(/ +/g, "");
995
- let o = I(
996
- V(e.split(" "), Re),
997
- (l) => !qe(l)
998
- ), n = I(V(t.split(" "), Re), (l) => !qe(l));
999
- n = I(
1000
- n,
1001
- (l) => !W(Et, l.property)
1002
- );
1003
- const r = [], i = [];
1004
- ie(s, (l) => {
1005
- const b = Re(l), w = se(o, kt(b, ["dark", "mq", "mod", "property"]));
1006
- if (w && (o = I(
1007
- o,
1008
- (k) => k.fullCls !== (w == null ? void 0 : w.fullCls)
1009
- )), r.push(b), b.mq === "xs" && !b.dark && b.mod === "" && (n = I(n, (k) => k.property !== b.property)), Fo(o, b) === "baseClasses" && !W(Et, b.property)) {
1010
- const k = se(n, kt(b, ["property"]));
1011
- w && (n = I(
1012
- n,
1013
- (D) => D.fullCls !== (k == null ? void 0 : k.fullCls)
1014
- )), i.push({
1015
- ...b,
1016
- fullCls: b.cls,
1017
- mq: "xs"
1018
- });
1019
- }
1020
- });
1021
- const u = V(
1022
- St([...o, ...r], (l) => Mt[l.mq]),
1023
- "fullCls"
1024
- ).join(" ");
1025
- return `${V(
1026
- St([...n, ...i], (l) => Mt[l.mq]),
1027
- "fullCls"
1028
- ).join(" ").trim()},${u.trim()}`.trim().replace(/ +/g, "");
1029
- }
1030
- const _e = y([]);
1031
- _e.debugLabel = "selectedStylingBlocksAtom";
1032
- const is = () => T(_e), Wo = (e) => {
1033
- const t = e.replace(ge, "").split(",");
1034
- return { baseClasses: t[0], classes: t[1] };
1035
- }, Uo = y(null, (e, t, { blockIds: s, newClasses: o, dispatch: n }) => {
1036
- const r = I(
1037
- e(dt),
1038
- (u) => (
1039
- // @ts-ignore
1040
- s.includes(e(u)._id)
1041
- )
1042
- ), i = ee(e(_e));
1043
- ie(r, (u) => {
1044
- const m = e(u), l = z(m, i.prop, `${ge},`), { baseClasses: b, classes: w } = Wo(l);
1045
- n({
1046
- type: "update_props_realtime",
1047
- payload: {
1048
- ids: [m._id],
1049
- props: { [i.prop]: `${ge}${Go(w, b, o)}` }
1050
- }
1051
- });
1052
- });
1053
- }), ii = () => {
1054
- const e = K(), t = de(Uo);
1055
- return A(
1056
- (s, o, n) => {
1057
- t({ blockIds: s, newClasses: o, dispatch: e }), n && setTimeout(() => e({ type: "create_snapshot" }), 500);
1058
- },
1059
- [e, t]
1060
- );
1061
- }, Ot = () => {
1062
- }, Ho = () => {
1063
- const e = no(), t = E(ss), s = () => {
1064
- Ot();
1065
- }, o = A(() => Ot(), []);
1066
- return [e, t, s, o];
1067
- }, qo = y(!1), Ko = () => {
1068
- const [e, t] = T(qo);
1069
- return [e, t];
1070
- }, Jo = y(Je), Yo = y(null), Qo = () => {
1071
- const [e, t] = T(Jo);
1072
- return [
1073
- eo(e) ? { ...Je, ...e } : Je,
1074
- t
1075
- ];
1076
- }, li = () => T(Yo), Xo = y(null), Zo = () => ({ currentPage: E(Xo) }), ls = new qt({});
1077
- function ea(e) {
1078
- let t = ls.convert(e);
1079
- return t = !t.type && t.children && t.children.length ? t.children : ce(t) ? [] : [t], t;
1080
- }
1081
- const gt = (e, t) => Y(
1082
- e.map((s) => {
1083
- if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
1084
- const o = [...s.children];
1085
- return delete s.children, Y([s, ...gt(o, s._id)]);
1086
- }
1087
- return s;
1088
- })
1089
- );
1090
- function bt(e, t = !1) {
1091
- for (let s = 0; s < e.length; s++) {
1092
- const o = e[s];
1093
- o.global && !t ? e[s] = {
1094
- type: "GlobalBlock",
1095
- blockId: o.blockId,
1096
- _parent: z(o, "parent", null),
1097
- _id: o._id
1098
- } : o.children && o.children.length && bt(o.children);
1099
- }
1100
- }
1101
- function cs(e) {
1102
- let t = [], s = I(e, { type: "GlobalBlock" });
1103
- return s.length > 0 && (s = V(s, ds), ie(s, (o) => {
1104
- t = [...t, ...ta(o)];
1105
- })), t;
1106
- }
1107
- function ta(e) {
1108
- let t = [];
1109
- const s = z(ee(e), "parent", null);
1110
- fe(ee(e), "parent", null);
1111
- const o = [ls.convert(us(e))];
1112
- bt(o, !0);
1113
- let n = gt(o, e[0]._id);
1114
- return n = fe(n, "0.parent", s), t = [...t, n, ...cs(n)], t;
1115
- }
1116
- function ds(e) {
1117
- const t = se(Qe, { _id: e._id });
1118
- if (!t)
1119
- return [];
1120
- const s = [t], o = I(Qe, { _parent: e._id });
1121
- return o.length ? Y([...s, ...Y(V(o, ds))]) : Y(s);
1122
- }
1123
- const us = (e) => JSON.parse(JSON.stringify(e));
1124
- let Qe = [];
1125
- function sa(e) {
1126
- Qe = e;
1127
- const t = ea(us(e));
1128
- bt(t);
1129
- const s = gt(t, null), o = cs(s), n = {};
1130
- return ie(o, (r) => fe(n, ee(r).blockId, r)), [s, n];
1131
- }
1132
- const ps = () => {
1133
- const [e] = Qo(), { currentPage: t } = Zo(), s = E(Q);
1134
- return A(() => {
1135
- const o = V(
1136
- s,
1137
- (i) => at(i, ["expanded", "order", "title", "siblings", "tempClasses"])
1138
- ), [n = [], r = []] = sa(o);
1139
- return {
1140
- currentPage: t,
1141
- blocks: n,
1142
- globalBlocks: r
1143
- };
1144
- }, [e, t, s]);
1145
- }, ve = (e, t = void 0) => {
1146
- const s = E(ct);
1147
- return z(s, e, t);
1148
- }, ms = y(!1);
1149
- ms.debugLabel = "readOnlyModeAtom";
1150
- const oa = y(!1);
1151
- oa.debugLabel = "advanceStylingOpenAtom";
1152
- const aa = y("online");
1153
- aa.debugLabel = "networkModeAtom";
1154
- const na = y(!1);
1155
- na.debugLabel = "codeEditorOpenAtom";
1156
- const ra = y(!1);
1157
- ra.debugLabel = "editLayerNameAtom";
1158
- const ia = y("");
1159
- ia.debugLabel = "activeLanguageAtom";
1160
- const la = y("");
1161
- la.debugLabel = "primaryLanguageAtom";
1162
- const ca = y(null);
1163
- ca.debugLabel = "canvasIframeAtom";
1164
- const da = y("layers");
1165
- da.debugLabel = "activePanelAtom";
1166
- const ua = y("");
1167
- ua.debugLabel = "showPredefinedBlockCategoryAtom";
1168
- const ze = y({ undoCount: 0, redoCount: 0 });
1169
- ze.debugLabel = "historyStatesAtom";
1170
- const pa = y("");
1171
- pa.debugLabel = "inlineEditingActiveAtom";
1172
- const ma = y(!1);
1173
- ma.debugLabel = "draggingFlagAtom";
1174
- const fa = y("");
1175
- fa.debugLabel = "draggedBlockIdAtom";
1176
- const fs = y([]);
1177
- fs.debugLabel = "dataProvidersAtom";
1178
- const ga = () => T(fs), ht = y("SAVED");
1179
- ht.debugLabel = "pageSyncStateAtom";
1180
- const ci = () => {
1181
- const [e, t] = T(ht), s = ve("onSaveBlocks", async () => {
1182
- }), o = ve("onSavePage", async () => {
1183
- }), n = ve("onSyncStatusChange", () => {
1184
- }), r = ps(), i = de(ze), { undoCount: u, redoCount: m } = xt(), [l] = ga();
1185
- return { savePage: ro(
1186
- async () => {
1187
- t("SAVING"), n("SAVING");
1188
- const w = r();
1189
- return await o({ blocks: w.blocks, providers: l }), setTimeout(() => {
1190
- i({ undoCount: u, redoCount: m }), t("SAVED"), n("SAVED");
1191
- }, 100), !0;
1192
- },
1193
- [r, t, n, s],
1194
- 5e3
1195
- // save only every 5 seconds
1196
- ), syncState: e, setSyncState: t };
1197
- }, xt = () => {
1198
- const e = E(Le), [{ undoCount: t, redoCount: s }] = T(ze), o = K(), [n] = Ko(), [, r] = Ce(), [, i] = is(), [u, m] = T(ht), l = ve("onSyncStatusChange", () => {
1199
- }), b = A(() => {
1200
- o({ type: "create_snapshot" });
1201
- }, [o]);
1202
- return je(() => {
1203
- (u === "SAVED" && t !== (e == null ? void 0 : e.past.length) || s !== (e == null ? void 0 : e.future.length)) && (m("UNSAVED"), l("UNSAVED"));
1204
- }, [e == null ? void 0 : e.past.length, e == null ? void 0 : e.future.length, t, s, l, m, u]), {
1205
- undoCount: e == null ? void 0 : e.past.length,
1206
- redoCount: e == null ? void 0 : e.future.length,
1207
- undo: A(() => {
1208
- n || (o(Ve.undo()), setTimeout(() => {
1209
- i([]), r([]);
1210
- }, 200));
1211
- }, [o, n, r, i]),
1212
- redo: A(() => {
1213
- n || (o(Ve.redo()), setTimeout(() => {
1214
- i([]), r([]);
1215
- }, 200));
1216
- }, [n, o, i, r]),
1217
- clear: () => {
1218
- o(Ve.clearHistory());
1219
- },
1220
- createSnapshot: b
1221
- };
1222
- }, ba = () => T(ns), gs = Ae("canvasWidth", 800), bs = y((e) => {
1223
- const t = e(gs);
1224
- return so(t).toLowerCase();
1225
- }), di = () => {
1226
- const [e, t] = T(gs), s = E(bs), [o, n] = ba();
1227
- return je(() => {
1228
- o !== "xs" && n(s);
1229
- }, [s, o, n]), [e, s, t];
1230
- }, ha = Ae("canvasZoom", 100), ui = () => T(ha), hs = y([]), xa = () => {
1231
- const [e, t] = T(hs), s = de(yt), o = A(
1232
- (n) => {
1233
- t(n), s([]);
1234
- },
1235
- [t, s]
1236
- );
1237
- return [e, o];
1238
- }, yt = y([]), pi = () => {
1239
- const [e, t] = T(yt), s = de(hs), o = A(
1240
- (n) => {
1241
- t(n), s([]);
1242
- },
1243
- [t, s]
1244
- );
1245
- return [e, o];
1246
- }, xs = Ae("darkMode", !1), mi = () => {
1247
- const [e, t] = T(xs);
1248
- return [e, t];
1249
- }, ya = y(!1), fi = () => {
1250
- const [e, t] = T(ya);
1251
- return [e, t];
1252
- }, va = () => {
1253
- const e = K(), t = E(Q), [, s] = Ce();
1254
- return A(
1255
- (o, n = null) => {
1256
- const r = [];
1257
- ie(o, (i) => {
1258
- const m = Io(t, i, n === i ? null : n);
1259
- r.push(z(m, "0._id", "")), e({ type: "add_duplicate_blocks", payload: m });
1260
- }), s(r), e({ type: "create_snapshot" });
1261
- },
1262
- [t, s, e]
1263
- );
1264
- }, wa = y([]), gi = () => {
1265
- const [e, t] = T(wa), s = A(
1266
- (o) => {
1267
- t((n) => W(n, o) ? Wt(n, o) : [...n, o]);
1268
- },
1269
- [t]
1270
- );
1271
- return [e, t, s];
1272
- }, Na = y(""), ka = () => T(Na), bi = () => {
1273
- const e = E(Q), t = K(), s = ps(), [, , o] = Ho();
1274
- return A(
1275
- async (n, r) => {
1276
- const i = le(16), u = V(e, (m) => (m._id === n && (m._globalBlockId = i, m._name = r), m));
1277
- t({ type: "set_page_blocks", payload: u }), o();
1278
- },
1279
- [e, t, s, o]
1280
- );
1281
- }, hi = () => ({}), Sa = () => {
1282
- const e = E(Q), t = K();
1283
- return A(
1284
- (s, o) => {
1285
- const n = V(e, (r) => (W(s, z(r, "_id")) && fe(r, "_parent", o), r));
1286
- t({ type: "set_blocks", payload: n });
1287
- },
1288
- [e, t]
1289
- );
1290
- }, xi = () => {
1291
- const e = E(yt), [t, s] = xa(), o = va(), n = Sa();
1292
- return {
1293
- canPaste: Ws(
1294
- () => t.length > 0 || e.length > 0,
1295
- [e, t]
1296
- ),
1297
- pasteBlocks: A(
1298
- (i) => {
1299
- ce(e) ? n(t, i) : o(e, i), s(() => []);
1300
- },
1301
- [t, e, o, n, s]
1302
- )
1303
- };
1304
- }, ja = y(""), yi = () => {
1305
- const e = E(ja), t = A(() => {
1306
- }, []), s = A(() => {
1307
- }, []), o = A(() => {
1308
- }, []);
1309
- return { currentProject: e, createProject: o, deleteProject: t, updateProject: s };
1310
- }, ys = (e, t) => {
1311
- const s = [], o = I(e, (n) => W(t, n._id) || W(t, n._parent) ? (s.push(n._id), !1) : !0);
1312
- return ce(s) ? o : ys(o, s);
1313
- }, vi = () => {
1314
- const e = K(), t = E(Q), [s, o] = Ce();
1315
- return A(
1316
- (n) => {
1317
- var u;
1318
- const r = ((u = se(t, { _id: n[0] })) == null ? void 0 : u._parent) || null, i = ys(t, n);
1319
- e({ type: "set_blocks", payload: i }), setTimeout(() => o(r ? [r] : []), 200);
1320
- },
1321
- [t, o, e, s]
1322
- );
1323
- }, Aa = y(null, (e, t, { blockIds: s, fullClasses: o, dispatch: n }) => {
1324
- const r = ee(e(_e)), i = I(
1325
- e(dt),
1326
- (u) => (
1327
- // @ts-ignore
1328
- s.includes(e(u)._id)
1329
- )
1330
- );
1331
- ie(i, (u) => {
1332
- const m = e(u), l = o;
1333
- let { classes: b, baseClasses: w } = To(z(m, r.prop, "styles:,"));
1334
- ie(l, (k) => {
1335
- const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1336
- b = b.replace(D, " ").replace(/ +/g, " ").trim();
1337
- const G = ee(k.split(":"));
1338
- W(["2xl", "xl", "lg", "md", "sm"], G) && l.push(k.split(":").pop().trim());
1339
- }), ie(l, (k) => {
1340
- const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1341
- w = w.replace(D, " ").replace(/ +/g, " ").trim();
1342
- }), n({
1343
- type: "update_props_realtime",
1344
- payload: {
1345
- ids: [m._id],
1346
- props: {
1347
- [r.prop]: `${ge}${w},${b}`
1348
- }
1349
- }
1350
- });
1351
- });
1352
- }), wi = () => {
1353
- const e = K(), t = de(Aa);
1354
- return A(
1355
- (s, o) => {
1356
- t({ blockIds: s, fullClasses: o, dispatch: e }), setTimeout(() => e({ type: "create_snapshot" }));
1357
- },
1358
- [e, t]
1359
- );
1360
- }, vs = y((e) => {
1361
- const t = ee(e(_e)), s = e(mt);
1362
- if (!t || t.blockId !== z(s, "_id", null))
1363
- return [];
1364
- const n = z(s, t.prop, `${ge},`).replace(ge, "").split(",").join(" ");
1365
- return I(V(n.trim().split(" "), Re), (r) => !qe(r));
1366
- }), Ni = () => E(vs), Lt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ca = y((e) => {
1367
- const t = e(bs), s = e(ft), o = e(xs), n = _a(t);
1368
- let r = I(e(vs), { mod: s });
1369
- return Ht(s, "_") || (r = I(r, (i) => n.includes(i.mq))), r = r.sort((i, u) => Lt[i.mq] - Lt[u.mq]), o || (r = I(r, { dark: !1 })), r;
1370
- }), _a = (e) => {
1371
- let t = [];
1372
- switch (e) {
1373
- case "xs":
1374
- t = ["xs"];
1375
- break;
1376
- case "sm":
1377
- t = ["xs", "sm"];
1378
- break;
1379
- case "md":
1380
- t = ["xs", "sm", "md"];
1381
- break;
1382
- case "lg":
1383
- t = ["xs", "sm", "md", "lg"];
1384
- break;
1385
- case "xl":
1386
- t = ["xs", "sm", "md", "lg", "xl"];
1387
- break;
1388
- case "2xl":
1389
- t = ["xs", "sm", "md", "lg", "xl", "2xl"];
1390
- break;
1391
- default:
1392
- t = ["xs"];
1393
- break;
1394
- }
1395
- return t;
1396
- }, ki = () => E(Ca), Si = () => T(ft), ws = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
1397
- n({
1398
- type: "update_props_realtime",
1399
- payload: { ids: s, props: o }
1400
- });
1401
- }), ji = () => {
1402
- const { createSnapshot: e } = xt(), t = K(), s = de(ws);
1403
- return A(
1404
- (o, n) => {
1405
- s({ blockIds: o, props: n, dispatch: t }), e();
1406
- },
1407
- [e, t, s]
1408
- );
1409
- }, Ai = () => {
1410
- const e = K(), t = de(ws);
1411
- return A(
1412
- (s, o) => {
1413
- t({ blockIds: s, props: o, dispatch: e });
1414
- },
1415
- [e, t]
1416
- );
1417
- }, Ns = {
1418
- name: "",
1419
- props: {},
1420
- modalProps: {},
1421
- backdropClose: !0
1422
- }, Ba = y(Ns), Ci = () => {
1423
- const [e, t] = T(Ba), s = A(
1424
- (n, r = {}, i = {}) => {
1425
- t({ name: n, props: r, modalProps: i });
1426
- },
1427
- [t]
1428
- ), o = A(
1429
- (...n) => {
1430
- z(e, "props.onClose", () => {
1431
- })(...n), t(Ns);
1432
- },
1433
- [t, e]
1434
- );
1435
- return {
1436
- activeModal: e,
1437
- openModal: s,
1438
- closeModal: o
1439
- };
1440
- }, _i = () => E(ms), Ta = y(""), Ra = y(null), Bi = () => T(Ta), Ti = () => T(Ra), Pa = Ae("selectedBreakpoints", ["XS", "MD", "XL"]), Ri = () => {
1441
- const [e, t] = T(Pa);
1442
- return [e, t];
1443
- }, Pi = () => {
1444
- const e = de(ze), { clear: t } = xt(), [, s] = Ce(), [, o] = ka(), [, n] = is();
1445
- return () => {
1446
- s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
1447
- };
1448
- }, Ia = y({ en: {} }), Ii = () => {
1449
- const [e, t] = T(Ia), s = A(
1450
- (o, n, r) => {
1451
- fe(e, `${o}.${n}`, r), t(e);
1452
- },
1453
- [e, t]
1454
- );
1455
- return [e, s];
1456
- }, Mi = (e, t) => {
1457
- const [s] = T(ct);
1458
- return z(s, e, t);
1459
- }, Ma = y([]), Di = () => {
1460
- const [e, t] = De(!1), [s, o] = T(Ma), n = ve("getUILibraryBlocks", () => []);
1461
- return je(() => {
1462
- (async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
1463
- }, []), { data: s, isLoading: e };
1464
- }, Da = be(
1465
- "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",
1466
- {
1467
- variants: {
1468
- variant: {
1469
- default: "bg-transparent",
1470
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
1471
- },
1472
- size: {
1473
- default: "h-10 px-3",
1474
- sm: "h-9 px-2.5",
1475
- lg: "h-11 px-5"
1476
- }
1477
- },
1478
- defaultVariants: {
1479
- variant: "default",
1480
- size: "default"
1481
- }
1482
- }
1483
- ), Ea = p.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx($t.Root, { ref: n, className: c(Da({ variant: t, size: s, className: e })), ...o }));
1484
- Ea.displayName = $t.Root.displayName;
1485
- const Oa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1486
- He.Root,
1487
- {
1488
- className: c(
1489
- "peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",
1490
- e
1491
- ),
1492
- ...t,
1493
- ref: s,
1494
- children: /* @__PURE__ */ a.jsx(
1495
- He.Thumb,
1496
- {
1497
- className: c(
1498
- "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950"
1499
- )
1500
- }
1501
- )
1502
- }
1503
- ));
1504
- Oa.displayName = He.Root.displayName;
1505
- const vt = be(
1506
- "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",
1507
- {
1508
- variants: {
1509
- variant: {
1510
- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
1511
- destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
1512
- outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
1513
- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
1514
- ghost: "hover:bg-accent hover:text-accent-foreground",
1515
- link: "text-primary underline-offset-4 hover:underline"
1516
- },
1517
- size: {
1518
- default: "h-9 px-4 py-2",
1519
- sm: "h-8 rounded-md px-3 text-xs",
1520
- lg: "h-10 rounded-md px-8",
1521
- icon: "h-9 w-9"
1522
- }
1523
- },
1524
- defaultVariants: {
1525
- variant: "default",
1526
- size: "default"
1527
- }
1528
- }
1529
- ), La = p.forwardRef(
1530
- ({ className: e, variant: t, size: s, asChild: o = !1, ...n }, r) => {
1531
- const i = o ? Us : "button";
1532
- return /* @__PURE__ */ a.jsx(i, { className: c(vt({ variant: t, size: s, className: e })), ref: r, ...n });
1533
- }
1534
- );
1535
- La.displayName = "Button";
1536
- const Ei = me.Root, za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(me.Item, { ref: s, className: c("border-b", e), ...t }));
1537
- za.displayName = "AccordionItem";
1538
- const Va = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(me.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1539
- me.Trigger,
1540
- {
1541
- ref: o,
1542
- className: c(
1543
- "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
1544
- e
1545
- ),
1546
- ...s,
1547
- children: [
1548
- t,
1549
- /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1550
- ]
1551
- }
1552
- ) }));
1553
- Va.displayName = me.Trigger.displayName;
1554
- const $a = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1555
- me.Content,
1556
- {
1557
- ref: o,
1558
- className: c(
1559
- "text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
1560
- e
1561
- ),
1562
- ...s,
1563
- children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
1564
- }
1565
- ));
1566
- $a.displayName = me.Content.displayName;
1567
- const Fa = be(
1568
- "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",
1569
- {
1570
- variants: {
1571
- variant: {
1572
- default: "bg-background text-foreground",
1573
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
1574
- }
1575
- },
1576
- defaultVariants: {
1577
- variant: "default"
1578
- }
1579
- }
1580
- ), Ga = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: c(Fa({ variant: t }), e), ...s }));
1581
- Ga.displayName = "Alert";
1582
- const Wa = p.forwardRef(
1583
- ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: c("mb-1 font-medium leading-none tracking-tight", e), ...t })
1584
- );
1585
- Wa.displayName = "AlertTitle";
1586
- const Ua = p.forwardRef(
1587
- ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("text-sm [&_p]:leading-relaxed", e), ...t })
1588
- );
1589
- Ua.displayName = "AlertDescription";
1590
- const Ha = be(
1591
- "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",
1592
- {
1593
- variants: {
1594
- variant: {
1595
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
1596
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
1597
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
1598
- outline: "text-foreground"
1599
- }
1600
- },
1601
- defaultVariants: {
1602
- variant: "default"
1603
- }
1604
- }
1605
- ), Oi = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Ha({ variant: t }), e), ...s }), Li = $.Root, zi = $.Trigger, ks = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx($.Portal, { className: c(e), ...t });
1606
- ks.displayName = $.Portal.displayName;
1607
- const Ss = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1608
- $.Overlay,
1609
- {
1610
- className: c(
1611
- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1612
- e
1613
- ),
1614
- ...t,
1615
- ref: s
1616
- }
1617
- ));
1618
- Ss.displayName = $.Overlay.displayName;
1619
- const qa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ks, { children: [
1620
- /* @__PURE__ */ a.jsx(Ss, {}),
1621
- /* @__PURE__ */ a.jsx(
1622
- $.Content,
1623
- {
1624
- ref: s,
1625
- className: c(
1626
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
1627
- e
1628
- ),
1629
- ...t
1630
- }
1631
- )
1632
- ] }));
1633
- qa.displayName = $.Content.displayName;
1634
- const Ka = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1635
- Ka.displayName = "AlertDialogHeader";
1636
- 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 });
1637
- Ja.displayName = "AlertDialogFooter";
1638
- const Ya = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Title, { ref: s, className: c("text-lg font-semibold", e), ...t }));
1639
- Ya.displayName = $.Title.displayName;
1640
- const Qa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1641
- Qa.displayName = $.Description.displayName;
1642
- const Xa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Action, { ref: s, className: c(vt(), e), ...t }));
1643
- Xa.displayName = $.Action.displayName;
1644
- const Za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1645
- $.Cancel,
1646
- {
1647
- ref: s,
1648
- className: c(vt({ variant: "outline" }), "mt-2 sm:mt-0", e),
1649
- ...t
1650
- }
1651
- ));
1652
- Za.displayName = $.Cancel.displayName;
1653
- const js = B.Root, en = B.Trigger, As = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
1654
- As.displayName = B.Portal.displayName;
1655
- const Cs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1656
- B.Overlay,
1657
- {
1658
- ref: s,
1659
- className: c(
1660
- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1661
- e
1662
- ),
1663
- ...t
1664
- }
1665
- ));
1666
- Cs.displayName = B.Overlay.displayName;
1667
- const wt = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(As, { children: [
1668
- /* @__PURE__ */ a.jsx(Cs, {}),
1669
- /* @__PURE__ */ a.jsxs(
1670
- B.Content,
1671
- {
1672
- ref: o,
1673
- className: c(
1674
- "fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
1675
- e
1676
- ),
1677
- ...s,
1678
- children: [
1679
- t,
1680
- /* @__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-accent data-[state=open]:text-muted-foreground", children: [
1681
- /* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" }),
1682
- /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1683
- ] })
1684
- ]
1685
- }
1686
- )
1687
- ] }));
1688
- wt.displayName = B.Content.displayName;
1689
- 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 });
1690
- tn.displayName = "DialogHeader";
1691
- 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 });
1692
- sn.displayName = "DialogFooter";
1693
- const on = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1694
- B.Title,
1695
- {
1696
- ref: s,
1697
- className: c("text-lg font-semibold leading-none tracking-tight", e),
1698
- ...t
1699
- }
1700
- ));
1701
- on.displayName = B.Title.displayName;
1702
- const an = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1703
- an.displayName = B.Description.displayName;
1704
- const nn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1705
- nn.displayName = "Card";
1706
- const rn = p.forwardRef(
1707
- ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("flex flex-col space-y-1.5 p-6", e), ...t })
1708
- );
1709
- rn.displayName = "CardHeader";
1710
- const ln = p.forwardRef(
1711
- ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: c("font-semibold leading-none tracking-tight", e), ...t })
1712
- );
1713
- ln.displayName = "CardTitle";
1714
- const cn = p.forwardRef(
1715
- ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: c("text-sm text-muted-foreground", e), ...t })
1716
- );
1717
- cn.displayName = "CardDescription";
1718
- const dn = p.forwardRef(
1719
- ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("p-6 pt-0", e), ...t })
1720
- );
1721
- dn.displayName = "CardContent";
1722
- const un = p.forwardRef(
1723
- ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c(" flex items-center p-6 pt-0", e), ...t })
1724
- );
1725
- un.displayName = "CardFooter";
1726
- const pn = p.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1727
- "input",
1728
- {
1729
- type: t,
1730
- className: c(
1731
- "flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
1732
- e
1733
- ),
1734
- ref: o,
1735
- ...s
1736
- }
1737
- ));
1738
- pn.displayName = "Input";
1739
- const mn = be("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), fn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: s, className: c(mn(), e), ...t }));
1740
- fn.displayName = Ft.Root.displayName;
1741
- const gn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1742
- "textarea",
1743
- {
1744
- className: c(
1745
- "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
1746
- e
1747
- ),
1748
- ref: s,
1749
- ...t
1750
- }
1751
- ));
1752
- gn.displayName = "Textarea";
1753
- const bn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(pe.Root, { ref: o, className: c("relative overflow-hidden", e), ...s, children: [
1754
- /* @__PURE__ */ a.jsx(pe.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1755
- /* @__PURE__ */ a.jsx(_s, {}),
1756
- /* @__PURE__ */ a.jsx(pe.Corner, {})
1757
- ] }));
1758
- bn.displayName = pe.Root.displayName;
1759
- const _s = p.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1760
- pe.ScrollAreaScrollbar,
1761
- {
1762
- ref: o,
1763
- orientation: t,
1764
- className: c(
1765
- "flex touch-none select-none transition-colors",
1766
- t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
1767
- t === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
1768
- e
1769
- ),
1770
- ...s,
1771
- children: /* @__PURE__ */ a.jsx(pe.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1772
- }
1773
- ));
1774
- _s.displayName = pe.ScrollAreaScrollbar.displayName;
1775
- const hn = he.Root, Bs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1776
- he.List,
1777
- {
1778
- ref: s,
1779
- className: c(
1780
- "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
1781
- e
1782
- ),
1783
- ...t
1784
- }
1785
- ));
1786
- Bs.displayName = he.List.displayName;
1787
- const Xe = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1788
- he.Trigger,
1789
- {
1790
- ref: s,
1791
- className: c(
1792
- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all 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=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
1793
- e
1794
- ),
1795
- ...t
1796
- }
1797
- ));
1798
- Xe.displayName = he.Trigger.displayName;
1799
- const Ze = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1800
- he.Content,
1801
- {
1802
- ref: s,
1803
- className: c(
1804
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1805
- e
1806
- ),
1807
- ...t
1808
- }
1809
- ));
1810
- Ze.displayName = he.Content.displayName;
1811
- const Vi = we.Portal, $i = we.Provider, Fi = we.Root, Gi = we.Trigger, xn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1812
- we.Content,
1813
- {
1814
- ref: o,
1815
- sideOffset: t,
1816
- className: c(
1817
- "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1818
- e
1819
- ),
1820
- ...s
1821
- }
1822
- ));
1823
- xn.displayName = we.Content.displayName;
1824
- const Wi = Se.Root, Ui = Se.Trigger, yn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1825
- Se.Content,
1826
- {
1827
- ref: n,
1828
- align: t,
1829
- sideOffset: s,
1830
- className: c(
1831
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1832
- e
1833
- ),
1834
- ...o
1835
- }
1836
- ) }));
1837
- yn.displayName = Se.Content.displayName;
1838
- const Hi = C.Menu, qi = C.Group, Ki = C.Portal, Ji = C.Sub, Yi = C.RadioGroup, vn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1839
- C.Root,
1840
- {
1841
- ref: s,
1842
- className: c("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
1843
- ...t
1844
- }
1845
- ));
1846
- vn.displayName = C.Root.displayName;
1847
- const wn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1848
- C.Trigger,
1849
- {
1850
- ref: s,
1851
- className: c(
1852
- "flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
1853
- e
1854
- ),
1855
- ...t
1856
- }
1857
- ));
1858
- wn.displayName = C.Trigger.displayName;
1859
- const Nn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1860
- C.SubTrigger,
1861
- {
1862
- ref: n,
1863
- className: c(
1864
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
1865
- t && "pl-8",
1866
- e
1867
- ),
1868
- ...o,
1869
- children: [
1870
- s,
1871
- /* @__PURE__ */ a.jsx(st, { className: "ml-auto h-4 w-4" })
1872
- ]
1873
- }
1874
- ));
1875
- Nn.displayName = C.SubTrigger.displayName;
1876
- const kn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1877
- C.SubContent,
1878
- {
1879
- ref: s,
1880
- className: c(
1881
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1882
- e
1883
- ),
1884
- ...t
1885
- }
1886
- ));
1887
- kn.displayName = C.SubContent.displayName;
1888
- const Sn = p.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, r) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1889
- C.Content,
1890
- {
1891
- ref: r,
1892
- align: t,
1893
- alignOffset: s,
1894
- sideOffset: o,
1895
- className: c(
1896
- "z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1897
- e
1898
- ),
1899
- ...n
1900
- }
1901
- ) }));
1902
- Sn.displayName = C.Content.displayName;
1903
- const jn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1904
- C.Item,
1905
- {
1906
- ref: o,
1907
- className: c(
1908
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1909
- t && "pl-8",
1910
- e
1911
- ),
1912
- ...s
1913
- }
1914
- ));
1915
- jn.displayName = C.Item.displayName;
1916
- const An = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1917
- C.CheckboxItem,
1918
- {
1919
- ref: n,
1920
- className: c(
1921
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1922
- e
1923
- ),
1924
- checked: s,
1925
- ...o,
1926
- children: [
1927
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(C.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
1928
- t
1929
- ]
1930
- }
1931
- ));
1932
- An.displayName = C.CheckboxItem.displayName;
1933
- const Cn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1934
- C.RadioItem,
1935
- {
1936
- ref: o,
1937
- className: c(
1938
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1939
- e
1940
- ),
1941
- ...s,
1942
- children: [
1943
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(C.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
1944
- t
1945
- ]
1946
- }
1947
- ));
1948
- Cn.displayName = C.RadioItem.displayName;
1949
- const _n = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1950
- C.Label,
1951
- {
1952
- ref: o,
1953
- className: c("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
1954
- ...s
1955
- }
1956
- ));
1957
- _n.displayName = C.Label.displayName;
1958
- const Bn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
1959
- Bn.displayName = C.Separator.displayName;
1960
- const Tn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1961
- Tn.displayname = "MenubarShortcut";
1962
- const Qi = Oe.Root, Xi = Oe.Trigger, Rn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1963
- Oe.Content,
1964
- {
1965
- ref: n,
1966
- align: t,
1967
- sideOffset: s,
1968
- className: c(
1969
- "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1970
- e
1971
- ),
1972
- ...o
1973
- }
1974
- ));
1975
- Rn.displayName = Oe.Content.displayName;
1976
- const Zi = O.Root, el = O.Group, tl = O.Value, Pn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1977
- O.Trigger,
1978
- {
1979
- ref: o,
1980
- className: c(
1981
- "flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
1982
- e
1983
- ),
1984
- ...s,
1985
- children: [
1986
- t,
1987
- /* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(qs, { className: "h-4 w-4 opacity-50" }) })
1988
- ]
1989
- }
1990
- ));
1991
- Pn.displayName = O.Trigger.displayName;
1992
- const In = p.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(O.Portal, { children: /* @__PURE__ */ a.jsx(
1993
- O.Content,
1994
- {
1995
- ref: n,
1996
- className: c(
1997
- "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1998
- s === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1999
- e
2000
- ),
2001
- position: s,
2002
- ...o,
2003
- children: /* @__PURE__ */ a.jsx(
2004
- O.Viewport,
2005
- {
2006
- className: c(
2007
- "p-1",
2008
- s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
2009
- ),
2010
- children: t
2011
- }
2012
- )
2013
- }
2014
- ) }));
2015
- In.displayName = O.Content.displayName;
2016
- const Mn = p.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 }));
2017
- Mn.displayName = O.Label.displayName;
2018
- const Dn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2019
- O.Item,
2020
- {
2021
- ref: o,
2022
- className: c(
2023
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2024
- e
2025
- ),
2026
- ...s,
2027
- children: [
2028
- /* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(O.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
2029
- /* @__PURE__ */ a.jsx(O.ItemText, { children: t })
2030
- ]
2031
- }
2032
- ));
2033
- Dn.displayName = O.Item.displayName;
2034
- const En = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2035
- En.displayName = O.Separator.displayName;
2036
- const sl = B.Root, ol = B.Trigger, al = B.Close, Ts = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
2037
- Ts.displayName = B.Portal.displayName;
2038
- const Rs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2039
- B.Overlay,
2040
- {
2041
- className: c(
2042
- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2043
- e
2044
- ),
2045
- ...t,
2046
- ref: s
2047
- }
2048
- ));
2049
- Rs.displayName = B.Overlay.displayName;
2050
- const On = be(
2051
- "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",
2052
- {
2053
- variants: {
2054
- side: {
2055
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
2056
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
2057
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
2058
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
2059
- }
2060
- },
2061
- defaultVariants: {
2062
- side: "right"
2063
- }
2064
- }
2065
- ), Ln = p.forwardRef(
2066
- ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(Ts, { children: [
2067
- /* @__PURE__ */ a.jsx(Rs, {}),
2068
- /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: c(On({ side: e }), t), ...o, children: [
2069
- s,
2070
- /* @__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: [
2071
- /* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" }),
2072
- /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
2073
- ] })
2074
- ] })
2075
- ] })
2076
- );
2077
- Ln.displayName = B.Content.displayName;
2078
- const zn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
2079
- zn.displayName = "SheetHeader";
2080
- 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 });
2081
- Vn.displayName = "SheetFooter";
2082
- const $n = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: c("text-lg font-semibold text-foreground", e), ...t }));
2083
- $n.displayName = B.Title.displayName;
2084
- const Fn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
2085
- Fn.displayName = B.Description.displayName;
2086
- const nl = R.Root, rl = R.Trigger, il = R.Group, ll = R.Portal, cl = R.Sub, dl = R.RadioGroup, Gn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2087
- R.SubTrigger,
2088
- {
2089
- ref: n,
2090
- className: c(
2091
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
2092
- t && "pl-8",
2093
- e
2094
- ),
2095
- ...o,
2096
- children: [
2097
- s,
2098
- /* @__PURE__ */ a.jsx(st, { className: "ml-auto h-4 w-4" })
2099
- ]
2100
- }
2101
- ));
2102
- Gn.displayName = R.SubTrigger.displayName;
2103
- const Wn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2104
- R.SubContent,
2105
- {
2106
- ref: s,
2107
- className: c(
2108
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
2109
- e
2110
- ),
2111
- ...t
2112
- }
2113
- ));
2114
- Wn.displayName = R.SubContent.displayName;
2115
- const Un = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(R.Portal, { children: /* @__PURE__ */ a.jsx(
2116
- R.Content,
2117
- {
2118
- ref: o,
2119
- sideOffset: t,
2120
- className: c(
2121
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
2122
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
2123
- e
2124
- ),
2125
- ...s
2126
- }
2127
- ) }));
2128
- Un.displayName = R.Content.displayName;
2129
- const Hn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2130
- R.Item,
2131
- {
2132
- ref: o,
2133
- className: c(
2134
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2135
- t && "pl-8",
2136
- e
2137
- ),
2138
- ...s
2139
- }
2140
- ));
2141
- Hn.displayName = R.Item.displayName;
2142
- const qn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2143
- R.CheckboxItem,
2144
- {
2145
- ref: n,
2146
- className: c(
2147
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2148
- e
2149
- ),
2150
- checked: s,
2151
- ...o,
2152
- children: [
2153
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(R.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
2154
- t
2155
- ]
2156
- }
2157
- ));
2158
- qn.displayName = R.CheckboxItem.displayName;
2159
- const Kn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2160
- R.RadioItem,
2161
- {
2162
- ref: o,
2163
- className: c(
2164
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2165
- e
2166
- ),
2167
- ...s,
2168
- children: [
2169
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(R.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
2170
- t
2171
- ]
2172
- }
2173
- ));
2174
- Kn.displayName = R.RadioItem.displayName;
2175
- const Jn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2176
- R.Label,
2177
- {
2178
- ref: o,
2179
- className: c("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
2180
- ...s
2181
- }
2182
- ));
2183
- Jn.displayName = R.Label.displayName;
2184
- const Yn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2185
- Yn.displayName = R.Separator.displayName;
2186
- const Qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...t });
2187
- Qn.displayName = "DropdownMenuShortcut";
2188
- const Xn = p.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
2189
- Gt.Root,
2190
- {
2191
- ref: n,
2192
- decorative: s,
2193
- orientation: t,
2194
- className: c("shrink-0 bg-border", t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
2195
- ...o
2196
- }
2197
- ));
2198
- Xn.displayName = Gt.Root.displayName;
2199
- const Zn = 1, er = 1e6;
2200
- let We = 0;
2201
- function tr() {
2202
- return We = (We + 1) % Number.MAX_VALUE, We.toString();
2203
- }
2204
- const Ue = /* @__PURE__ */ new Map(), zt = (e) => {
2205
- if (Ue.has(e))
2206
- return;
2207
- const t = setTimeout(() => {
2208
- Ue.delete(e), ke({
2209
- type: "REMOVE_TOAST",
2210
- toastId: e
2211
- });
2212
- }, er);
2213
- Ue.set(e, t);
2214
- }, sr = (e, t) => {
2215
- switch (t.type) {
2216
- case "ADD_TOAST":
2217
- return {
2218
- ...e,
2219
- toasts: [t.toast, ...e.toasts].slice(0, Zn)
2220
- };
2221
- case "UPDATE_TOAST":
2222
- return {
2223
- ...e,
2224
- toasts: e.toasts.map((s) => s.id === t.toast.id ? { ...s, ...t.toast } : s)
2225
- };
2226
- case "DISMISS_TOAST": {
2227
- const { toastId: s } = t;
2228
- return s ? zt(s) : e.toasts.forEach((o) => {
2229
- zt(o.id);
2230
- }), {
2231
- ...e,
2232
- toasts: e.toasts.map(
2233
- (o) => o.id === s || s === void 0 ? {
2234
- ...o,
2235
- open: !1
2236
- } : o
2237
- )
2238
- };
2239
- }
2240
- case "REMOVE_TOAST":
2241
- return t.toastId === void 0 ? {
2242
- ...e,
2243
- toasts: []
2244
- } : {
2245
- ...e,
2246
- toasts: e.toasts.filter((s) => s.id !== t.toastId)
2247
- };
2248
- }
2249
- }, Pe = [];
2250
- let Ie = { toasts: [] };
2251
- function ke(e) {
2252
- Ie = sr(Ie, e), Pe.forEach((t) => {
2253
- t(Ie);
2254
- });
2255
- }
2256
- function or({ ...e }) {
2257
- const t = tr(), s = (n) => ke({
2258
- type: "UPDATE_TOAST",
2259
- toast: { ...n, id: t }
2260
- }), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
2261
- return ke({
2262
- type: "ADD_TOAST",
2263
- toast: {
2264
- ...e,
2265
- id: t,
2266
- open: !0,
2267
- onOpenChange: (n) => {
2268
- n || o();
2269
- }
2270
- }
2271
- }), {
2272
- id: t,
2273
- dismiss: o,
2274
- update: s
2275
- };
2276
- }
2277
- function ar() {
2278
- const [e, t] = p.useState(Ie);
2279
- return p.useEffect(() => (Pe.push(t), () => {
2280
- const s = Pe.indexOf(t);
2281
- s > -1 && Pe.splice(s, 1);
2282
- }), [e]), {
2283
- ...e,
2284
- toast: or,
2285
- dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
2286
- };
2287
- }
2288
- const nr = q.Provider, Ps = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2289
- q.Viewport,
2290
- {
2291
- ref: s,
2292
- className: c(
2293
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
2294
- e
2295
- ),
2296
- ...t
2297
- }
2298
- ));
2299
- Ps.displayName = q.Viewport.displayName;
2300
- const rr = be(
2301
- "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",
2302
- {
2303
- variants: {
2304
- variant: {
2305
- default: "border bg-background",
2306
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
2307
- }
2308
- },
2309
- defaultVariants: {
2310
- variant: "default"
2311
- }
2312
- }
2313
- ), Is = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(q.Root, { ref: o, className: c(rr({ variant: t }), e), ...s }));
2314
- Is.displayName = q.Root.displayName;
2315
- const ir = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2316
- q.Action,
2317
- {
2318
- ref: s,
2319
- className: c(
2320
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
2321
- e
2322
- ),
2323
- ...t
2324
- }
2325
- ));
2326
- ir.displayName = q.Action.displayName;
2327
- const Ms = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2328
- q.Close,
2329
- {
2330
- ref: s,
2331
- className: c(
2332
- "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
2333
- e
2334
- ),
2335
- "toast-close": "",
2336
- ...t,
2337
- children: /* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" })
2338
- }
2339
- ));
2340
- Ms.displayName = q.Close.displayName;
2341
- const Ds = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Title, { ref: s, className: c("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2342
- Ds.displayName = q.Title.displayName;
2343
- const Es = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: c("text-sm opacity-90", e), ...t }));
2344
- Es.displayName = q.Description.displayName;
2345
- function ul() {
2346
- const { toasts: e } = ar();
2347
- return /* @__PURE__ */ a.jsxs(nr, { children: [
2348
- e.map(({ id: t, title: s, description: o, action: n, ...r }) => /* @__PURE__ */ a.jsxs(Is, { ...r, children: [
2349
- /* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
2350
- s && /* @__PURE__ */ a.jsx(Ds, { children: s }),
2351
- o && /* @__PURE__ */ a.jsx(Es, { children: o })
2352
- ] }),
2353
- n,
2354
- /* @__PURE__ */ a.jsx(Ms, {})
2355
- ] }, t)),
2356
- /* @__PURE__ */ a.jsx(Ps, {})
2357
- ] });
2358
- }
2359
- const pl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Os = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2360
- U,
2361
- {
2362
- ref: s,
2363
- className: c(
2364
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
2365
- e
2366
- ),
2367
- ...t
2368
- }
2369
- ));
2370
- Os.displayName = U.displayName;
2371
- const ml = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(js, { ...t, children: /* @__PURE__ */ a.jsx(wt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Os, { 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 = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2372
- /* @__PURE__ */ a.jsx(Ks, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2373
- /* @__PURE__ */ a.jsx(
2374
- U.Input,
2375
- {
2376
- ref: s,
2377
- className: c(
2378
- "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
2379
- e
2380
- ),
2381
- ...t
2382
- }
2383
- )
2384
- ] }));
2385
- lr.displayName = U.Input.displayName;
2386
- const cr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2387
- U.List,
2388
- {
2389
- ref: s,
2390
- className: c("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
2391
- ...t
2392
- }
2393
- ));
2394
- cr.displayName = U.List.displayName;
2395
- const dr = p.forwardRef((e, t) => /* @__PURE__ */ a.jsx(U.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2396
- dr.displayName = U.Empty.displayName;
2397
- const ur = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2398
- U.Group,
2399
- {
2400
- ref: s,
2401
- className: c(
2402
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
2403
- e
2404
- ),
2405
- ...t
2406
- }
2407
- ));
2408
- ur.displayName = U.Group.displayName;
2409
- const pr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: c("-mx-1 h-px bg-border", e), ...t }));
2410
- pr.displayName = U.Separator.displayName;
2411
- const mr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2412
- U.Item,
2413
- {
2414
- ref: s,
2415
- className: c(
2416
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2417
- e
2418
- ),
2419
- ...t
2420
- }
2421
- ));
2422
- mr.displayName = U.Item.displayName;
2423
- const fr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2424
- fr.displayName = "CommandShortcut";
2425
- const fl = P.Root, gl = P.Trigger, bl = P.Group, hl = P.Portal, xl = P.Sub, yl = P.RadioGroup, gr = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2426
- P.SubTrigger,
2427
- {
2428
- ref: n,
2429
- className: c(
2430
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
2431
- t && "pl-8",
2432
- e
2433
- ),
2434
- ...o,
2435
- children: [
2436
- s,
2437
- /* @__PURE__ */ a.jsx(st, { className: "ml-auto h-4 w-4" })
2438
- ]
2439
- }
2440
- ));
2441
- gr.displayName = P.SubTrigger.displayName;
2442
- const br = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2443
- P.SubContent,
2444
- {
2445
- ref: s,
2446
- className: c(
2447
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
2448
- e
2449
- ),
2450
- ...t
2451
- }
2452
- ));
2453
- br.displayName = P.SubContent.displayName;
2454
- const hr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2455
- P.Content,
2456
- {
2457
- ref: s,
2458
- className: c(
2459
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
2460
- e
2461
- ),
2462
- ...t
2463
- }
2464
- ) }));
2465
- hr.displayName = P.Content.displayName;
2466
- const xr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2467
- P.Item,
2468
- {
2469
- ref: o,
2470
- className: c(
2471
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2472
- t && "pl-8",
2473
- e
2474
- ),
2475
- ...s
2476
- }
2477
- ));
2478
- xr.displayName = P.Item.displayName;
2479
- const yr = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2480
- P.CheckboxItem,
2481
- {
2482
- ref: n,
2483
- className: c(
2484
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2485
- e
2486
- ),
2487
- checked: s,
2488
- ...o,
2489
- children: [
2490
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(P.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
2491
- t
2492
- ]
2493
- }
2494
- ));
2495
- yr.displayName = P.CheckboxItem.displayName;
2496
- const vr = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2497
- P.RadioItem,
2498
- {
2499
- ref: o,
2500
- className: c(
2501
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2502
- e
2503
- ),
2504
- ...s,
2505
- children: [
2506
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(P.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
2507
- t
2508
- ]
2509
- }
2510
- ));
2511
- vr.displayName = P.RadioItem.displayName;
2512
- const wr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2513
- P.Label,
2514
- {
2515
- ref: o,
2516
- className: c("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
2517
- ...s
2518
- }
2519
- ));
2520
- wr.displayName = P.Label.displayName;
2521
- const Nr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-border", e), ...t }));
2522
- Nr.displayName = P.Separator.displayName;
2523
- const kr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2524
- kr.displayName = "ContextMenuShortcut";
2525
- const Sr = (e) => {
2526
- try {
2527
- const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
2528
- Qs.render(/* @__PURE__ */ a.jsx(Ys, { value: e }), s), t.appendChild(s), s.hidden = !0;
2529
- let o = s.innerHTML;
2530
- setTimeout(() => t.removeChild(s), 1e3);
2531
- const r = new DOMParser().parseFromString(o, "image/svg+xml"), i = r.querySelector("svg");
2532
- return i && (i.removeAttribute("width"), i.removeAttribute("height")), new XMLSerializer().serializeToString(r);
2533
- } catch {
2534
- return "";
2535
- }
2536
- }, vl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
2537
- const n = (r) => {
2538
- t("<svg />");
2539
- const i = Sr(r);
2540
- t(i), s(o, i);
2541
- };
2542
- return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
2543
- /* @__PURE__ */ a.jsxs("div", { className: "relative h-12 w-12 group", children: [
2544
- /* @__PURE__ */ a.jsx(
2545
- "div",
2546
- {
2547
- dangerouslySetInnerHTML: { __html: e == null ? void 0 : e.replace("<svg", '<svg class="h-5 w-5"') },
2548
- className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform cursor-pointer bg-white z-0"
2549
- }
2550
- ),
2551
- /* @__PURE__ */ a.jsx(
2552
- Js,
2553
- {
2554
- value: e ? "BiSolidGrid" : null,
2555
- onChange: n,
2556
- pickButtonStyle: {
2557
- position: "relative",
2558
- height: "48px",
2559
- width: "48px",
2560
- border: "1px solid #BBBBBB",
2561
- display: "flex",
2562
- alignItems: "center",
2563
- justifyContent: "center",
2564
- borderRadius: "6px",
2565
- backgroundColor: "transparent",
2566
- zIndex: 1
2567
- },
2568
- searchInputStyle: {
2569
- backgroundColor: "transparent",
2570
- width: "100%",
2571
- border: "1px solid #BBBBBB",
2572
- margin: "0px 10px",
2573
- padding: "10px"
2574
- }
2575
- }
2576
- )
2577
- ] }),
2578
- /* @__PURE__ */ a.jsx(
2579
- "textarea",
2580
- {
2581
- value: e,
2582
- onChange: (r) => t(r.target.value),
2583
- className: "h-full border w-full rounded-sm border-foreground/20 px-2 py-1 text-xs shadow-sm focus:border-gray-500/80 focus:outline-none focus:ring-0",
2584
- placeholder: "Choose icon or enter svg"
2585
- }
2586
- )
2587
- ] });
2588
- }, jr = et.lazy(() => import("./UnsplashImages-41Y3q5_Q.js")), Ar = et.lazy(() => import("./UploadImages-xBg-kbKv.js")), Ls = ({
2589
- isModalView: e = !1,
2590
- onSelect: t = () => {
2591
- }
2592
- }) => {
2593
- const [s, o] = De("upload");
2594
- return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
2595
- /* @__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" }) }),
2596
- /* @__PURE__ */ a.jsxs(hn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2597
- /* @__PURE__ */ a.jsxs(Bs, { className: "w-full", children: [
2598
- /* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
2599
- /* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2600
- ] }),
2601
- s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(Nt, { 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(Nt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ar, { isModalView: e, onSelect: t }) }) })
2602
- ] })
2603
- ] });
2604
- }, wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2605
- __proto__: null,
2606
- default: Ls
2607
- }, Symbol.toStringTag, { value: "Module" })), Vt = ({ children: e, onSelect: t }) => {
2608
- const [s, o] = De(!1), n = (...r) => {
2609
- t.call(void 0, ...r), o(!1);
2610
- };
2611
- return /* @__PURE__ */ a.jsxs(js, { open: s, onOpenChange: (r) => o(r), children: [
2612
- /* @__PURE__ */ a.jsx(en, { asChild: !0, children: e }),
2613
- /* @__PURE__ */ a.jsx(wt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Ls, { isModalView: !0, onSelect: n }) }) })
2614
- ] });
2615
- }, Nl = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2616
- e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Vt, { 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" }) }),
2617
- /* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
2618
- /* @__PURE__ */ a.jsx(Vt, { 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 || !ce(e) ? "Replace Image" : "Choose Image" }) }),
2619
- /* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
2620
- /* @__PURE__ */ a.jsx(
2621
- "input",
2622
- {
2623
- type: "url",
2624
- className: "text-xs",
2625
- placeholder: "Enter image URL",
2626
- value: e,
2627
- onBlur: ({ target: { value: n } }) => o(s, n),
2628
- onChange: (n) => t(n.target.value)
2629
- }
2630
- )
2631
- ] })
2632
- ] }), kl = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2633
- const r = {
2634
- toolbar: [
2635
- ["bold", "italic", "underline", "strike", "blockquote"],
2636
- [{ list: "ordered" }, { list: "bullet" }],
2637
- [{ color: [] }, { background: [] }, { align: [] }],
2638
- ["link", "clean"]
2639
- ]
2640
- }, i = [
2641
- "header",
2642
- "font",
2643
- "list",
2644
- "bold",
2645
- "italic",
2646
- "underline",
2647
- "strike",
2648
- "blockquote",
2649
- "color",
2650
- "background",
2651
- "align",
2652
- "link",
2653
- "image"
2654
- ];
2655
- return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
2656
- to,
2657
- {
2658
- id: e,
2659
- value: s,
2660
- onBlur: (u) => n(e, u),
2661
- onChange: (u) => o(u),
2662
- modules: r,
2663
- formats: i,
2664
- placeholder: t,
2665
- className: "mt-1 rounded-md"
2666
- }
2667
- );
2668
- }, Sl = ({ schema: e, formData: t, onChange: s }) => {
2669
- const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target: m = "self" } = t;
2670
- return je(() => {
2671
- (async () => {
2672
- const l = await r();
2673
- n(l || []);
2674
- })();
2675
- }, []), /* @__PURE__ */ a.jsxs("div", { children: [
2676
- /* @__PURE__ */ a.jsx("span", { className: "text-xs font-medium", children: (e == null ? void 0 : e.title) ?? "Link" }),
2677
- /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-y-1.5", children: [
2678
- /* @__PURE__ */ a.jsx("select", { name: "type", value: i, onChange: (l) => s({ ...t, type: l.target.value }), children: [
2679
- { const: "page", title: "Open Page" },
2680
- { const: "url", title: "Open URL" },
2681
- { const: "email", title: "Compose Email" },
2682
- { const: "telephone", title: "Call Phone" },
2683
- { const: "scroll", title: "Scroll to element" }
2684
- ].map((l) => /* @__PURE__ */ a.jsx("option", { value: l.const, children: l.title }, l.const)) }),
2685
- i === "page" ? /* @__PURE__ */ a.jsxs(
2686
- "select",
2687
- {
2688
- name: "href",
2689
- placeholder: "Choose Page",
2690
- value: u,
2691
- onChange: (l) => s({ ...t, href: l.target.value }),
2692
- children: [
2693
- /* @__PURE__ */ a.jsx("option", { value: "", children: "Choose page" }),
2694
- V(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
2695
- ]
2696
- }
2697
- ) : /* @__PURE__ */ a.jsx(
2698
- "input",
2699
- {
2700
- name: "href",
2701
- type: "text",
2702
- value: u,
2703
- onChange: (l) => s({ ...t, href: l.target.value }),
2704
- placeholder: i === "page" || i === "url" ? "Enter URL" : i === "scroll" ? "#ElementID" : "Enter detail"
2705
- }
2706
- ),
2707
- (i === "page" || i === "url") && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-x-2", children: [
2708
- /* @__PURE__ */ a.jsx(
2709
- "input",
2710
- {
2711
- type: "checkbox",
2712
- defaultChecked: m === "_blank",
2713
- className: "cursor-pointer rounded-md border border-border",
2714
- onChange: () => s({ ...t, target: m === "_blank" ? "_self" : "_blank" })
2715
- }
2716
- ),
2717
- /* @__PURE__ */ a.jsx("span", { className: "pt-1 text-xs", children: "Open in new tab" })
2718
- ] })
2719
- ] })
2720
- ] });
2721
- };
2722
- export {
2723
- ka as $,
2724
- ct as A,
2725
- La as B,
2726
- fs as C,
2727
- ul as D,
2728
- Li as E,
2729
- zi as F,
2730
- qa as G,
2731
- Ka as H,
2732
- Ya as I,
2733
- Qa as J,
2734
- Ja as K,
2735
- Za as L,
2736
- Mi as M,
2737
- _i as N,
2738
- Ci as O,
2739
- ri as P,
2740
- ii as Q,
2741
- Ho as R,
2742
- pl as S,
2743
- $i as T,
2744
- di as U,
2745
- ui as V,
2746
- Zo as W,
2747
- mi as X,
2748
- fi as Y,
2749
- ps as Z,
2750
- gi as _,
2751
- Yr as a,
2752
- Wi as a$,
2753
- bi as a0,
2754
- hi as a1,
2755
- yi as a2,
2756
- Ii as a3,
2757
- wi as a4,
2758
- ki as a5,
2759
- Ni as a6,
2760
- ni as a7,
2761
- ba as a8,
2762
- Di as a9,
2763
- Ze as aA,
2764
- el as aB,
2765
- Mn as aC,
2766
- Fi as aD,
2767
- Gi as aE,
2768
- Ea as aF,
2769
- xn as aG,
2770
- Xn as aH,
2771
- fn as aI,
2772
- Oa as aJ,
2773
- Qi as aK,
2774
- Xi as aL,
2775
- Rn as aM,
2776
- nl as aN,
2777
- rl as aO,
2778
- Un as aP,
2779
- Jn as aQ,
2780
- Yn as aR,
2781
- qn as aS,
2782
- ma as aT,
2783
- pa as aU,
2784
- ra as aV,
2785
- fa as aW,
2786
- ti as aX,
2787
- si as aY,
2788
- aa as aZ,
2789
- ca as a_,
2790
- Si as aa,
2791
- Zr as ab,
2792
- ji as ac,
2793
- Ai as ad,
2794
- ai as ae,
2795
- $o as af,
2796
- Bi as ag,
2797
- ci as ah,
2798
- Ti as ai,
2799
- Ri as aj,
2800
- is as ak,
2801
- js as al,
2802
- wt as am,
2803
- tn as an,
2804
- on as ao,
2805
- an as ap,
2806
- Xa as aq,
2807
- Zi as ar,
2808
- Pn as as,
2809
- tl as at,
2810
- In as au,
2811
- Dn as av,
2812
- da as aw,
2813
- hn as ax,
2814
- Bs as ay,
2815
- Xe as az,
2816
- Z as b,
2817
- ol as b$,
2818
- Ui as b0,
2819
- yn as b1,
2820
- Os as b2,
2821
- lr as b3,
2822
- cr as b4,
2823
- dr as b5,
2824
- ur as b6,
2825
- mr as b7,
2826
- sn as b8,
2827
- en as b9,
2828
- gl as bA,
2829
- oi as bB,
2830
- Da as bC,
2831
- vt as bD,
2832
- Ua as bE,
2833
- Oi as bF,
2834
- Ha as bG,
2835
- ln as bH,
2836
- _s as bI,
2837
- vn as bJ,
2838
- Hi as bK,
2839
- wn as bL,
2840
- Sn as bM,
2841
- jn as bN,
2842
- Bn as bO,
2843
- _n as bP,
2844
- An as bQ,
2845
- Yi as bR,
2846
- Cn as bS,
2847
- Ki as bT,
2848
- kn as bU,
2849
- Nn as bV,
2850
- qi as bW,
2851
- Ji as bX,
2852
- Tn as bY,
2853
- En as bZ,
2854
- sl as b_,
2855
- Pt as ba,
2856
- Rt as bb,
2857
- kl as bc,
2858
- vl as bd,
2859
- Nl as be,
2860
- Sl as bf,
2861
- Ei as bg,
2862
- za as bh,
2863
- Va as bi,
2864
- $a as bj,
2865
- pn as bk,
2866
- Vi as bl,
2867
- oa as bm,
2868
- bn,
2869
- nn as bo,
2870
- rn as bp,
2871
- cn as bq,
2872
- dn as br,
2873
- gn as bs,
2874
- un as bt,
2875
- Ga as bu,
2876
- Wa as bv,
2877
- ua as bw,
2878
- xr as bx,
2879
- hr as by,
2880
- fl as bz,
2881
- po as c,
2882
- al as c0,
2883
- Ln as c1,
2884
- zn as c2,
2885
- Vn as c3,
2886
- $n as c4,
2887
- Fn as c5,
2888
- Hn as c6,
2889
- Kn as c7,
2890
- Qn as c8,
2891
- il as c9,
2892
- ll as ca,
2893
- cl as cb,
2894
- Wn as cc,
2895
- Gn as cd,
2896
- dl as ce,
2897
- sr as cf,
2898
- ar as cg,
2899
- or as ch,
2900
- ml as ci,
2901
- fr as cj,
2902
- pr as ck,
2903
- yr as cl,
2904
- vr as cm,
2905
- wr as cn,
2906
- Nr as co,
2907
- kr as cp,
2908
- bl as cq,
2909
- hl as cr,
2910
- xl as cs,
2911
- br as ct,
2912
- gr as cu,
2913
- yl as cv,
2914
- wl as cw,
2915
- yo as d,
2916
- xo as e,
2917
- Ae as f,
2918
- Qr as g,
2919
- Ko as h,
2920
- ve as i,
2921
- Ce as j,
2922
- pi as k,
2923
- vi as l,
2924
- va as m,
2925
- xa as n,
2926
- xi as o,
2927
- xt as p,
2928
- Q as q,
2929
- Bo as r,
2930
- ga as s,
2931
- ht as t,
2932
- Jt as u,
2933
- Xr as v,
2934
- ei as w,
2935
- Qo as x,
2936
- li as y,
2937
- Pi as z
2938
- };