@billgangcom/theme-lib 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/abstractions/IBlock.d.ts +7 -0
  3. package/dist/abstractions/ISettings.d.ts +3 -0
  4. package/dist/abstractions/PageContext.d.ts +8 -0
  5. package/dist/abstractions/Variable.d.ts +13 -0
  6. package/dist/abstractions/index.d.ts +4 -0
  7. package/dist/align-center-BO84DuTM.js +5 -0
  8. package/dist/align-center-DEANXdAS.cjs +1 -0
  9. package/dist/align-left-Cm-uab8B.cjs +1 -0
  10. package/dist/align-left-M0ZgFryb.js +5 -0
  11. package/dist/align-right-3l34PJVv.cjs +1 -0
  12. package/dist/align-right-Cgz7UcnI.js +5 -0
  13. package/dist/arrow-down-BVZ1P_L9.cjs +1 -0
  14. package/dist/arrow-down-Be8fhLDw.js +5 -0
  15. package/dist/arrow-left-74wdITOH.js +5 -0
  16. package/dist/arrow-left-CXb5pfjn.cjs +1 -0
  17. package/dist/arrow-preview-down-DM61uZ0R.js +5 -0
  18. package/dist/arrow-preview-down-DaEiSgZ5.cjs +1 -0
  19. package/dist/arrow-preview-up-DaNjYolK.cjs +1 -0
  20. package/dist/arrow-preview-up-tl-dLBGP.js +5 -0
  21. package/dist/arrow-right-Cr3U4dHJ.js +5 -0
  22. package/dist/arrow-right-QxBPnNiY.cjs +1 -0
  23. package/dist/arrow-square-BQEpI5Xn.cjs +1 -0
  24. package/dist/arrow-square-CYM9usfL.js +5 -0
  25. package/dist/arrow-up-right-BAHL0rjI.cjs +1 -0
  26. package/dist/arrow-up-right-DjQHCzy_.js +5 -0
  27. package/dist/border-dashed-B0Vn5Ams.js +5 -0
  28. package/dist/border-dashed-hzn9HgjT.cjs +1 -0
  29. package/dist/border-solid-7GLUyhD0.cjs +1 -0
  30. package/dist/border-solid-BjJ2NMUc.js +5 -0
  31. package/dist/builder/index.d.ts +9 -0
  32. package/dist/builder/utils/fetchData.d.ts +3 -0
  33. package/dist/builder/utils/fetchFontsData.d.ts +1 -0
  34. package/dist/builder/utils/index.d.ts +2 -0
  35. package/dist/builder.cjs.js +11 -0
  36. package/dist/builder.es.js +6032 -0
  37. package/dist/cards-D_Fs7yzJ.js +5 -0
  38. package/dist/cards-DsOTH3J4.cjs +1 -0
  39. package/dist/chat-BAur-Hs7.js +5 -0
  40. package/dist/chat-B_av70HO.cjs +1 -0
  41. package/dist/check-Dw7aX1Gq.js +5 -0
  42. package/dist/check-b4m73KG0.cjs +1 -0
  43. package/dist/components/Header/Buttons/index.d.ts +4 -0
  44. package/dist/components/Header/Devices/index.d.ts +5 -0
  45. package/dist/components/Header/PreviewButton/index.d.ts +5 -0
  46. package/dist/components/Header/Settings/Language/index.d.ts +4 -0
  47. package/dist/components/Header/Settings/Pages/ModifyPage/index.d.ts +5 -0
  48. package/dist/components/Header/Settings/Pages/index.d.ts +5 -0
  49. package/dist/components/Header/Settings/Zoom/index.d.ts +5 -0
  50. package/dist/components/Header/Settings/index.d.ts +4 -0
  51. package/dist/components/Header/SwitchTheme/index.d.ts +4 -0
  52. package/dist/components/Header/index.d.ts +5 -0
  53. package/dist/components/Navbar/ExitButton/index.d.ts +4 -0
  54. package/dist/components/Navbar/index.d.ts +1 -0
  55. package/dist/components/Preview/PreviewBlockSidebar/index.d.ts +2 -0
  56. package/dist/components/Preview/PreviewContent/index.d.ts +2 -0
  57. package/dist/components/Preview/PreviewHeader/index.d.ts +1 -0
  58. package/dist/components/Preview/RenderBlock/index.d.ts +7 -0
  59. package/dist/components/Preview/index.d.ts +2 -0
  60. package/dist/components/Sidebar/AddSections/RenderBlockSettings/index.d.ts +6 -0
  61. package/dist/components/Sidebar/AddSections/RenderBlockSettings/settings.d.ts +7 -0
  62. package/dist/components/Sidebar/AddSections/SearchSections/index.d.ts +4 -0
  63. package/dist/components/Sidebar/AddSections/index.d.ts +5 -0
  64. package/dist/components/Sidebar/Layers/index.d.ts +5 -0
  65. package/dist/components/Sidebar/Settings/index.d.ts +1 -0
  66. package/dist/components/Sidebar/Theme/ThemeSettings/Colors/index.d.ts +5 -0
  67. package/dist/components/Sidebar/Theme/ThemeSettings/Fonts/index.d.ts +5 -0
  68. package/dist/components/Sidebar/Theme/ThemeSettings/Inputs/index.d.ts +5 -0
  69. package/dist/components/Sidebar/Theme/ThemeSettings/Item/Border/index.d.ts +5 -0
  70. package/dist/components/Sidebar/Theme/ThemeSettings/Item/Button/index.d.ts +5 -0
  71. package/dist/components/Sidebar/Theme/ThemeSettings/Item/Font/index.d.ts +5 -0
  72. package/dist/components/Sidebar/Theme/ThemeSettings/Item/index.d.ts +4 -0
  73. package/dist/components/Sidebar/Theme/ThemeSettings/index.d.ts +4 -0
  74. package/dist/components/Sidebar/Theme/index.d.ts +4 -0
  75. package/dist/components/Sidebar/index.d.ts +4 -0
  76. package/dist/components/index.d.ts +5 -0
  77. package/dist/components/layout.d.ts +5 -0
  78. package/dist/constants/api.d.ts +2 -0
  79. package/dist/constants/blocks.d.ts +1 -0
  80. package/dist/constants/device.d.ts +2 -0
  81. package/dist/constants/font.d.ts +3 -0
  82. package/dist/constants/index.d.ts +7 -0
  83. package/dist/constants/navbar.d.ts +7 -0
  84. package/dist/constants/pages.d.ts +15 -0
  85. package/dist/constants/theme-settings.d.ts +91 -0
  86. package/dist/copy-B-BFBPCj.js +5 -0
  87. package/dist/copy-D4o494-8.cjs +1 -0
  88. package/dist/corners-out-4-FEW-w_.cjs +1 -0
  89. package/dist/corners-out-DoBj8RP9.js +5 -0
  90. package/dist/desktop-BaS7MtSb.cjs +1 -0
  91. package/dist/desktop-BtX370Ww.js +5 -0
  92. package/dist/faqs-23Fq6osg.js +5 -0
  93. package/dist/faqs-BqOuvjUH.cjs +1 -0
  94. package/dist/file-8wBLPxbL.cjs +1 -0
  95. package/dist/file-DyR17xsF.js +5 -0
  96. package/dist/font-7p9R-iSH.js +5 -0
  97. package/dist/font-DkMBoXe1.cjs +1 -0
  98. package/dist/globe--VWAXBWp.js +5 -0
  99. package/dist/globe-Dc76Xp4l.cjs +1 -0
  100. package/dist/heading-CBG3k-8U.js +5 -0
  101. package/dist/heading-CPq36T7M.cjs +1 -0
  102. package/dist/house-CZ2u4ZpK.cjs +1 -0
  103. package/dist/house-WXuqDQYP.js +5 -0
  104. package/dist/index-3IJeySWj.cjs +34 -0
  105. package/dist/index-SOBckDON.js +1911 -0
  106. package/dist/index.cjs.js +1 -0
  107. package/dist/info-circle-DxyEtmA8.cjs +1 -0
  108. package/dist/info-circle-eJbOZlg5.js +5 -0
  109. package/dist/layers-Cjkf4Ywz.js +5 -0
  110. package/dist/layers-D-nS2yjm.cjs +1 -0
  111. package/dist/lock-BmgYa3ZA.cjs +1 -0
  112. package/dist/lock-CjdyZZ0l.js +5 -0
  113. package/dist/main.d.ts +1 -0
  114. package/dist/mobile-CmqAt_Mz.js +5 -0
  115. package/dist/mobile-jT12AeF2.cjs +1 -0
  116. package/dist/paint-BZpZzEUU.js +5 -0
  117. package/dist/paint-onR-PyLb.cjs +1 -0
  118. package/dist/palette-BOR3Eq6r.cjs +1 -0
  119. package/dist/palette-C8JiqbcX.js +5 -0
  120. package/dist/paragraph-BYRArpHX.cjs +1 -0
  121. package/dist/paragraph-LWVXCR4R.js +5 -0
  122. package/dist/plus-7zIw2qu6.cjs +1 -0
  123. package/dist/plus-BJbR8W_G.js +5 -0
  124. package/dist/radius-CRLmETG0.cjs +1 -0
  125. package/dist/radius-CxeWfnVG.js +5 -0
  126. package/dist/redo-C-M_xJyP.cjs +1 -0
  127. package/dist/redo-CGWptNGF.js +5 -0
  128. package/dist/search-DyJEj9C0.js +5 -0
  129. package/dist/search-kPFRd0TJ.cjs +1 -0
  130. package/dist/settings-B3DU_KZp.js +5 -0
  131. package/dist/settings-BqG-9m9d.cjs +1 -0
  132. package/dist/shared/lib/api.d.ts +3 -0
  133. package/dist/shared/lib/formatLabel.d.ts +1 -0
  134. package/dist/shared/lib/index.d.ts +2 -0
  135. package/dist/shared/ui/Button/index.d.ts +11 -0
  136. package/dist/shared/ui/ColorPicker/index.d.ts +9 -0
  137. package/dist/shared/ui/ColorPicker/modal.d.ts +2 -0
  138. package/dist/shared/ui/Icon/index.d.ts +12 -0
  139. package/dist/shared/ui/Input/index.d.ts +15 -0
  140. package/dist/shared/ui/Modal/index.d.ts +7 -0
  141. package/dist/shared/ui/Picker/index.d.ts +8 -0
  142. package/dist/shared/ui/Radio/index.d.ts +13 -0
  143. package/dist/shared/ui/Select/index.d.ts +11 -0
  144. package/dist/shared/ui/Submodal/index.d.ts +6 -0
  145. package/dist/shared/ui/Switch/index.d.ts +8 -0
  146. package/dist/shared/ui/Textarea/index.d.ts +11 -0
  147. package/dist/shared/ui/Tip/index.d.ts +8 -0
  148. package/dist/shared/ui/index.d.ts +12 -0
  149. package/dist/sign-out-C7IDLqPn.js +5 -0
  150. package/dist/sign-out-vR-y-Fk7.cjs +1 -0
  151. package/dist/squares-BaUyzSBO.cjs +1 -0
  152. package/dist/squares-D_Q5KrSa.js +5 -0
  153. package/dist/star-DX6bHsl_.cjs +1 -0
  154. package/dist/star-DmVJ8LCU.js +5 -0
  155. package/dist/store/index.d.ts +12 -0
  156. package/dist/store/useBlocksStore.d.ts +11 -0
  157. package/dist/store/useColorPickerStore.d.ts +32 -0
  158. package/dist/store/useDeviceStore.d.ts +7 -0
  159. package/dist/store/useFontsStore.d.ts +16 -0
  160. package/dist/store/useLayersStore.d.ts +31 -0
  161. package/dist/store/useLayoutStore.d.ts +7 -0
  162. package/dist/store/useNavbarStore.d.ts +7 -0
  163. package/dist/store/usePagesStore.d.ts +32 -0
  164. package/dist/store/usePreviewStore.d.ts +18 -0
  165. package/dist/store/useSettingsStore.d.ts +10 -0
  166. package/dist/store/useSubmodalStore.d.ts +16 -0
  167. package/dist/store/useThemeSettingsStore.d.ts +15 -0
  168. package/dist/tablet-BvEDp-eu.cjs +1 -0
  169. package/dist/tablet-DjgFAzpj.js +5 -0
  170. package/dist/textbox-CeYJQP_1.cjs +1 -0
  171. package/dist/textbox-VoZOnoQo.js +5 -0
  172. package/dist/thickness-8ZhgPpus.js +5 -0
  173. package/dist/thickness-DSnQHY5N.cjs +1 -0
  174. package/dist/ticket-BFI6P_1c.cjs +1 -0
  175. package/dist/ticket-Cp2gw7LG.js +5 -0
  176. package/dist/trash-C46P9ylt.js +5 -0
  177. package/dist/trash-Cy0hsvys.cjs +1 -0
  178. package/dist/ui.cjs.js +1 -0
  179. package/dist/ui.es.js +15 -0
  180. package/dist/undo-D2eH1UgJ.cjs +1 -0
  181. package/dist/undo-DQ4HRzFE.js +5 -0
  182. package/dist/user-circle-gear-DeMV7Apx.cjs +1 -0
  183. package/dist/user-circle-gear-GplwFHx0.js +5 -0
  184. package/dist/vite.svg +1 -0
  185. package/dist/x-DW1UBLIF.cjs +1 -0
  186. package/dist/x-Dwea3dAc.js +5 -0
  187. package/dist/zoom-minus-DlvFV6xy.js +5 -0
  188. package/dist/zoom-minus-TiFzxDhk.cjs +1 -0
  189. package/package.json +2 -2
@@ -0,0 +1,1911 @@
1
+ import T from "react";
2
+ function Bt(r) {
3
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4
+ }
5
+ var je = { exports: {} }, ee = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var Qe;
16
+ function At() {
17
+ if (Qe) return ee;
18
+ Qe = 1;
19
+ var r = T, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ function l(f, u, v) {
21
+ var d, y = {}, R = null, E = null;
22
+ v !== void 0 && (R = "" + v), u.key !== void 0 && (R = "" + u.key), u.ref !== void 0 && (E = u.ref);
23
+ for (d in u) s.call(u, d) && !o.hasOwnProperty(d) && (y[d] = u[d]);
24
+ if (f && f.defaultProps) for (d in u = f.defaultProps, u) y[d] === void 0 && (y[d] = u[d]);
25
+ return { $$typeof: t, type: f, key: R, ref: E, props: y, _owner: i.current };
26
+ }
27
+ return ee.Fragment = n, ee.jsx = l, ee.jsxs = l, ee;
28
+ }
29
+ var te = {};
30
+ /**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */
39
+ var et;
40
+ function Nt() {
41
+ return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
42
+ var r = T, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), S = Symbol.iterator, h = "@@iterator";
43
+ function O(e) {
44
+ if (e === null || typeof e != "object")
45
+ return null;
46
+ var a = S && e[S] || e[h];
47
+ return typeof a == "function" ? a : null;
48
+ }
49
+ var w = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ function g(e) {
51
+ {
52
+ for (var a = arguments.length, c = new Array(a > 1 ? a - 1 : 0), p = 1; p < a; p++)
53
+ c[p - 1] = arguments[p];
54
+ I("error", e, c);
55
+ }
56
+ }
57
+ function I(e, a, c) {
58
+ {
59
+ var p = w.ReactDebugCurrentFrame, k = p.getStackAddendum();
60
+ k !== "" && (a += "%s", c = c.concat([k]));
61
+ var x = c.map(function(_) {
62
+ return String(_);
63
+ });
64
+ x.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, x);
65
+ }
66
+ }
67
+ var q = !1, K = !1, G = !1, ve = !1, ne = !1, se;
68
+ se = Symbol.for("react.module.reference");
69
+ function $(e) {
70
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === o || ne || e === i || e === v || e === d || ve || e === E || q || K || G || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === y || e.$$typeof === l || e.$$typeof === f || e.$$typeof === u || // This needs to include all possible module reference object
71
+ // types supported by any Flight configuration anywhere since
72
+ // we don't know which Flight build this will end up being used
73
+ // with.
74
+ e.$$typeof === se || e.getModuleId !== void 0));
75
+ }
76
+ function D(e, a, c) {
77
+ var p = e.displayName;
78
+ if (p)
79
+ return p;
80
+ var k = a.displayName || a.name || "";
81
+ return k !== "" ? c + "(" + k + ")" : c;
82
+ }
83
+ function me(e) {
84
+ return e.displayName || "Context";
85
+ }
86
+ function M(e) {
87
+ if (e == null)
88
+ return null;
89
+ if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ return e.displayName || e.name || null;
91
+ if (typeof e == "string")
92
+ return e;
93
+ switch (e) {
94
+ case s:
95
+ return "Fragment";
96
+ case n:
97
+ return "Portal";
98
+ case o:
99
+ return "Profiler";
100
+ case i:
101
+ return "StrictMode";
102
+ case v:
103
+ return "Suspense";
104
+ case d:
105
+ return "SuspenseList";
106
+ }
107
+ if (typeof e == "object")
108
+ switch (e.$$typeof) {
109
+ case f:
110
+ var a = e;
111
+ return me(a) + ".Consumer";
112
+ case l:
113
+ var c = e;
114
+ return me(c._context) + ".Provider";
115
+ case u:
116
+ return D(e, e.render, "ForwardRef");
117
+ case y:
118
+ var p = e.displayName || null;
119
+ return p !== null ? p : M(e.type) || "Memo";
120
+ case R: {
121
+ var k = e, x = k._payload, _ = k._init;
122
+ try {
123
+ return M(_(x));
124
+ } catch {
125
+ return null;
126
+ }
127
+ }
128
+ }
129
+ return null;
130
+ }
131
+ var U = Object.assign, X = 0, Te, Ie, Be, Ae, Ne, Fe, $e;
132
+ function De() {
133
+ }
134
+ De.__reactDisabledLog = !0;
135
+ function at() {
136
+ {
137
+ if (X === 0) {
138
+ Te = console.log, Ie = console.info, Be = console.warn, Ae = console.error, Ne = console.group, Fe = console.groupCollapsed, $e = console.groupEnd;
139
+ var e = {
140
+ configurable: !0,
141
+ enumerable: !0,
142
+ value: De,
143
+ writable: !0
144
+ };
145
+ Object.defineProperties(console, {
146
+ info: e,
147
+ log: e,
148
+ warn: e,
149
+ error: e,
150
+ group: e,
151
+ groupCollapsed: e,
152
+ groupEnd: e
153
+ });
154
+ }
155
+ X++;
156
+ }
157
+ }
158
+ function it() {
159
+ {
160
+ if (X--, X === 0) {
161
+ var e = {
162
+ configurable: !0,
163
+ enumerable: !0,
164
+ writable: !0
165
+ };
166
+ Object.defineProperties(console, {
167
+ log: U({}, e, {
168
+ value: Te
169
+ }),
170
+ info: U({}, e, {
171
+ value: Ie
172
+ }),
173
+ warn: U({}, e, {
174
+ value: Be
175
+ }),
176
+ error: U({}, e, {
177
+ value: Ae
178
+ }),
179
+ group: U({}, e, {
180
+ value: Ne
181
+ }),
182
+ groupCollapsed: U({}, e, {
183
+ value: Fe
184
+ }),
185
+ groupEnd: U({}, e, {
186
+ value: $e
187
+ })
188
+ });
189
+ }
190
+ X < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ }
192
+ }
193
+ var ge = w.ReactCurrentDispatcher, he;
194
+ function oe(e, a, c) {
195
+ {
196
+ if (he === void 0)
197
+ try {
198
+ throw Error();
199
+ } catch (k) {
200
+ var p = k.stack.trim().match(/\n( *(at )?)/);
201
+ he = p && p[1] || "";
202
+ }
203
+ return `
204
+ ` + he + e;
205
+ }
206
+ }
207
+ var be = !1, ae;
208
+ {
209
+ var ct = typeof WeakMap == "function" ? WeakMap : Map;
210
+ ae = new ct();
211
+ }
212
+ function Me(e, a) {
213
+ if (!e || be)
214
+ return "";
215
+ {
216
+ var c = ae.get(e);
217
+ if (c !== void 0)
218
+ return c;
219
+ }
220
+ var p;
221
+ be = !0;
222
+ var k = Error.prepareStackTrace;
223
+ Error.prepareStackTrace = void 0;
224
+ var x;
225
+ x = ge.current, ge.current = null, at();
226
+ try {
227
+ if (a) {
228
+ var _ = function() {
229
+ throw Error();
230
+ };
231
+ if (Object.defineProperty(_.prototype, "props", {
232
+ set: function() {
233
+ throw Error();
234
+ }
235
+ }), typeof Reflect == "object" && Reflect.construct) {
236
+ try {
237
+ Reflect.construct(_, []);
238
+ } catch (A) {
239
+ p = A;
240
+ }
241
+ Reflect.construct(e, [], _);
242
+ } else {
243
+ try {
244
+ _.call();
245
+ } catch (A) {
246
+ p = A;
247
+ }
248
+ e.call(_.prototype);
249
+ }
250
+ } else {
251
+ try {
252
+ throw Error();
253
+ } catch (A) {
254
+ p = A;
255
+ }
256
+ e();
257
+ }
258
+ } catch (A) {
259
+ if (A && p && typeof A.stack == "string") {
260
+ for (var b = A.stack.split(`
261
+ `), B = p.stack.split(`
262
+ `), C = b.length - 1, j = B.length - 1; C >= 1 && j >= 0 && b[C] !== B[j]; )
263
+ j--;
264
+ for (; C >= 1 && j >= 0; C--, j--)
265
+ if (b[C] !== B[j]) {
266
+ if (C !== 1 || j !== 1)
267
+ do
268
+ if (C--, j--, j < 0 || b[C] !== B[j]) {
269
+ var N = `
270
+ ` + b[C].replace(" at new ", " at ");
271
+ return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && ae.set(e, N), N;
272
+ }
273
+ while (C >= 1 && j >= 0);
274
+ break;
275
+ }
276
+ }
277
+ } finally {
278
+ be = !1, ge.current = x, it(), Error.prepareStackTrace = k;
279
+ }
280
+ var H = e ? e.displayName || e.name : "", W = H ? oe(H) : "";
281
+ return typeof e == "function" && ae.set(e, W), W;
282
+ }
283
+ function lt(e, a, c) {
284
+ return Me(e, !1);
285
+ }
286
+ function ut(e) {
287
+ var a = e.prototype;
288
+ return !!(a && a.isReactComponent);
289
+ }
290
+ function ie(e, a, c) {
291
+ if (e == null)
292
+ return "";
293
+ if (typeof e == "function")
294
+ return Me(e, ut(e));
295
+ if (typeof e == "string")
296
+ return oe(e);
297
+ switch (e) {
298
+ case v:
299
+ return oe("Suspense");
300
+ case d:
301
+ return oe("SuspenseList");
302
+ }
303
+ if (typeof e == "object")
304
+ switch (e.$$typeof) {
305
+ case u:
306
+ return lt(e.render);
307
+ case y:
308
+ return ie(e.type, a, c);
309
+ case R: {
310
+ var p = e, k = p._payload, x = p._init;
311
+ try {
312
+ return ie(x(k), a, c);
313
+ } catch {
314
+ }
315
+ }
316
+ }
317
+ return "";
318
+ }
319
+ var Z = Object.prototype.hasOwnProperty, qe = {}, Le = w.ReactDebugCurrentFrame;
320
+ function ce(e) {
321
+ if (e) {
322
+ var a = e._owner, c = ie(e.type, e._source, a ? a.type : null);
323
+ Le.setExtraStackFrame(c);
324
+ } else
325
+ Le.setExtraStackFrame(null);
326
+ }
327
+ function dt(e, a, c, p, k) {
328
+ {
329
+ var x = Function.call.bind(Z);
330
+ for (var _ in e)
331
+ if (x(e, _)) {
332
+ var b = void 0;
333
+ try {
334
+ if (typeof e[_] != "function") {
335
+ var B = Error((p || "React class") + ": " + c + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
+ throw B.name = "Invariant Violation", B;
337
+ }
338
+ b = e[_](a, _, p, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ } catch (C) {
340
+ b = C;
341
+ }
342
+ b && !(b instanceof Error) && (ce(k), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", c, _, typeof b), ce(null)), b instanceof Error && !(b.message in qe) && (qe[b.message] = !0, ce(k), g("Failed %s type: %s", c, b.message), ce(null));
343
+ }
344
+ }
345
+ }
346
+ var ft = Array.isArray;
347
+ function _e(e) {
348
+ return ft(e);
349
+ }
350
+ function pt(e) {
351
+ {
352
+ var a = typeof Symbol == "function" && Symbol.toStringTag, c = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
353
+ return c;
354
+ }
355
+ }
356
+ function vt(e) {
357
+ try {
358
+ return Ve(e), !1;
359
+ } catch {
360
+ return !0;
361
+ }
362
+ }
363
+ function Ve(e) {
364
+ return "" + e;
365
+ }
366
+ function Ue(e) {
367
+ if (vt(e))
368
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(e)), Ve(e);
369
+ }
370
+ var Q = w.ReactCurrentOwner, mt = {
371
+ key: !0,
372
+ ref: !0,
373
+ __self: !0,
374
+ __source: !0
375
+ }, We, ze, ye;
376
+ ye = {};
377
+ function gt(e) {
378
+ if (Z.call(e, "ref")) {
379
+ var a = Object.getOwnPropertyDescriptor(e, "ref").get;
380
+ if (a && a.isReactWarning)
381
+ return !1;
382
+ }
383
+ return e.ref !== void 0;
384
+ }
385
+ function ht(e) {
386
+ if (Z.call(e, "key")) {
387
+ var a = Object.getOwnPropertyDescriptor(e, "key").get;
388
+ if (a && a.isReactWarning)
389
+ return !1;
390
+ }
391
+ return e.key !== void 0;
392
+ }
393
+ function bt(e, a) {
394
+ if (typeof e.ref == "string" && Q.current && a && Q.current.stateNode !== a) {
395
+ var c = M(Q.current.type);
396
+ ye[c] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', M(Q.current.type), e.ref), ye[c] = !0);
397
+ }
398
+ }
399
+ function _t(e, a) {
400
+ {
401
+ var c = function() {
402
+ We || (We = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
403
+ };
404
+ c.isReactWarning = !0, Object.defineProperty(e, "key", {
405
+ get: c,
406
+ configurable: !0
407
+ });
408
+ }
409
+ }
410
+ function yt(e, a) {
411
+ {
412
+ var c = function() {
413
+ ze || (ze = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
414
+ };
415
+ c.isReactWarning = !0, Object.defineProperty(e, "ref", {
416
+ get: c,
417
+ configurable: !0
418
+ });
419
+ }
420
+ }
421
+ var wt = function(e, a, c, p, k, x, _) {
422
+ var b = {
423
+ // This tag allows us to uniquely identify this as a React Element
424
+ $$typeof: t,
425
+ // Built-in properties that belong on the element
426
+ type: e,
427
+ key: a,
428
+ ref: c,
429
+ props: _,
430
+ // Record the component responsible for creating this element.
431
+ _owner: x
432
+ };
433
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
434
+ configurable: !1,
435
+ enumerable: !1,
436
+ writable: !0,
437
+ value: !1
438
+ }), Object.defineProperty(b, "_self", {
439
+ configurable: !1,
440
+ enumerable: !1,
441
+ writable: !1,
442
+ value: p
443
+ }), Object.defineProperty(b, "_source", {
444
+ configurable: !1,
445
+ enumerable: !1,
446
+ writable: !1,
447
+ value: k
448
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
449
+ };
450
+ function kt(e, a, c, p, k) {
451
+ {
452
+ var x, _ = {}, b = null, B = null;
453
+ c !== void 0 && (Ue(c), b = "" + c), ht(a) && (Ue(a.key), b = "" + a.key), gt(a) && (B = a.ref, bt(a, k));
454
+ for (x in a)
455
+ Z.call(a, x) && !mt.hasOwnProperty(x) && (_[x] = a[x]);
456
+ if (e && e.defaultProps) {
457
+ var C = e.defaultProps;
458
+ for (x in C)
459
+ _[x] === void 0 && (_[x] = C[x]);
460
+ }
461
+ if (b || B) {
462
+ var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
463
+ b && _t(_, j), B && yt(_, j);
464
+ }
465
+ return wt(e, b, B, k, p, Q.current, _);
466
+ }
467
+ }
468
+ var we = w.ReactCurrentOwner, Ye = w.ReactDebugCurrentFrame;
469
+ function Y(e) {
470
+ if (e) {
471
+ var a = e._owner, c = ie(e.type, e._source, a ? a.type : null);
472
+ Ye.setExtraStackFrame(c);
473
+ } else
474
+ Ye.setExtraStackFrame(null);
475
+ }
476
+ var ke;
477
+ ke = !1;
478
+ function Se(e) {
479
+ return typeof e == "object" && e !== null && e.$$typeof === t;
480
+ }
481
+ function He() {
482
+ {
483
+ if (we.current) {
484
+ var e = M(we.current.type);
485
+ if (e)
486
+ return `
487
+
488
+ Check the render method of \`` + e + "`.";
489
+ }
490
+ return "";
491
+ }
492
+ }
493
+ function St(e) {
494
+ return "";
495
+ }
496
+ var Je = {};
497
+ function xt(e) {
498
+ {
499
+ var a = He();
500
+ if (!a) {
501
+ var c = typeof e == "string" ? e : e.displayName || e.name;
502
+ c && (a = `
503
+
504
+ Check the top-level render call using <` + c + ">.");
505
+ }
506
+ return a;
507
+ }
508
+ }
509
+ function Ke(e, a) {
510
+ {
511
+ if (!e._store || e._store.validated || e.key != null)
512
+ return;
513
+ e._store.validated = !0;
514
+ var c = xt(a);
515
+ if (Je[c])
516
+ return;
517
+ Je[c] = !0;
518
+ var p = "";
519
+ e && e._owner && e._owner !== we.current && (p = " It was passed a child from " + M(e._owner.type) + "."), Y(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, p), Y(null);
520
+ }
521
+ }
522
+ function Ge(e, a) {
523
+ {
524
+ if (typeof e != "object")
525
+ return;
526
+ if (_e(e))
527
+ for (var c = 0; c < e.length; c++) {
528
+ var p = e[c];
529
+ Se(p) && Ke(p, a);
530
+ }
531
+ else if (Se(e))
532
+ e._store && (e._store.validated = !0);
533
+ else if (e) {
534
+ var k = O(e);
535
+ if (typeof k == "function" && k !== e.entries)
536
+ for (var x = k.call(e), _; !(_ = x.next()).done; )
537
+ Se(_.value) && Ke(_.value, a);
538
+ }
539
+ }
540
+ }
541
+ function Et(e) {
542
+ {
543
+ var a = e.type;
544
+ if (a == null || typeof a == "string")
545
+ return;
546
+ var c;
547
+ if (typeof a == "function")
548
+ c = a.propTypes;
549
+ else if (typeof a == "object" && (a.$$typeof === u || // Note: Memo only checks outer props here.
550
+ // Inner props are checked in the reconciler.
551
+ a.$$typeof === y))
552
+ c = a.propTypes;
553
+ else
554
+ return;
555
+ if (c) {
556
+ var p = M(a);
557
+ dt(c, e.props, "prop", p, e);
558
+ } else if (a.PropTypes !== void 0 && !ke) {
559
+ ke = !0;
560
+ var k = M(a);
561
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
562
+ }
563
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
+ }
565
+ }
566
+ function Rt(e) {
567
+ {
568
+ for (var a = Object.keys(e.props), c = 0; c < a.length; c++) {
569
+ var p = a[c];
570
+ if (p !== "children" && p !== "key") {
571
+ Y(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Y(null);
572
+ break;
573
+ }
574
+ }
575
+ e.ref !== null && (Y(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
576
+ }
577
+ }
578
+ var Xe = {};
579
+ function Ze(e, a, c, p, k, x) {
580
+ {
581
+ var _ = $(e);
582
+ if (!_) {
583
+ var b = "";
584
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
585
+ var B = St();
586
+ B ? b += B : b += He();
587
+ var C;
588
+ e === null ? C = "null" : _e(e) ? C = "array" : e !== void 0 && e.$$typeof === t ? (C = "<" + (M(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : C = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, b);
589
+ }
590
+ var j = kt(e, a, c, k, x);
591
+ if (j == null)
592
+ return j;
593
+ if (_) {
594
+ var N = a.children;
595
+ if (N !== void 0)
596
+ if (p)
597
+ if (_e(N)) {
598
+ for (var H = 0; H < N.length; H++)
599
+ Ge(N[H], e);
600
+ Object.freeze && Object.freeze(N);
601
+ } else
602
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
603
+ else
604
+ Ge(N, e);
605
+ }
606
+ if (Z.call(a, "key")) {
607
+ var W = M(e), A = Object.keys(a).filter(function(It) {
608
+ return It !== "key";
609
+ }), xe = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
610
+ if (!Xe[W + xe]) {
611
+ var Tt = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
612
+ g(`A props object containing a "key" prop is being spread into JSX:
613
+ let props = %s;
614
+ <%s {...props} />
615
+ React keys must be passed directly to JSX without using spread:
616
+ let props = %s;
617
+ <%s key={someKey} {...props} />`, xe, W, Tt, W), Xe[W + xe] = !0;
618
+ }
619
+ }
620
+ return e === s ? Rt(j) : Et(j), j;
621
+ }
622
+ }
623
+ function Ct(e, a, c) {
624
+ return Ze(e, a, c, !0);
625
+ }
626
+ function jt(e, a, c) {
627
+ return Ze(e, a, c, !1);
628
+ }
629
+ var Pt = jt, Ot = Ct;
630
+ te.Fragment = s, te.jsx = Pt, te.jsxs = Ot;
631
+ }()), te;
632
+ }
633
+ process.env.NODE_ENV === "production" ? je.exports = At() : je.exports = Nt();
634
+ var m = je.exports;
635
+ const tt = (r) => {
636
+ let t;
637
+ const n = /* @__PURE__ */ new Set(), s = (v, d) => {
638
+ const y = typeof v == "function" ? v(t) : v;
639
+ if (!Object.is(y, t)) {
640
+ const R = t;
641
+ t = d ?? (typeof y != "object" || y === null) ? y : Object.assign({}, t, y), n.forEach((E) => E(t, R));
642
+ }
643
+ }, i = () => t, f = { setState: s, getState: i, getInitialState: () => u, subscribe: (v) => (n.add(v), () => n.delete(v)) }, u = t = r(s, i, f);
644
+ return f;
645
+ }, Ft = (r) => r ? tt(r) : tt, $t = (r) => r;
646
+ function Dt(r, t = $t) {
647
+ const n = T.useSyncExternalStore(
648
+ r.subscribe,
649
+ () => t(r.getState()),
650
+ () => t(r.getInitialState())
651
+ );
652
+ return T.useDebugValue(n), n;
653
+ }
654
+ const rt = (r) => {
655
+ const t = Ft(r), n = (s) => Dt(t, s);
656
+ return Object.assign(n, t), n;
657
+ }, F = (r) => r ? rt(r) : rt, Qr = F((r) => ({
658
+ blocks: {},
659
+ setBlocks: (t) => r(() => ({ blocks: t })),
660
+ activeBlock: null,
661
+ setActiveBlock: (t) => r(() => ({ activeBlock: t })),
662
+ sourceBlocks: {},
663
+ setSourceBlocks: (t) => r(() => ({ sourceBlocks: t }))
664
+ })), en = F((r) => ({
665
+ currentDevice: "desktop",
666
+ setCurrentDevice: (t) => r(() => ({ currentDevice: t }))
667
+ }));
668
+ F((r) => ({
669
+ pageData: null,
670
+ setPageData: (t) => r(() => ({ pageData: t }))
671
+ }));
672
+ const Mt = [
673
+ {
674
+ icon: "layers",
675
+ name: "Layers"
676
+ },
677
+ {
678
+ icon: "plus",
679
+ name: "Add"
680
+ },
681
+ {
682
+ icon: "palette",
683
+ name: "Theme"
684
+ },
685
+ {
686
+ icon: "settings",
687
+ name: "Settings"
688
+ }
689
+ ], tn = Array.from({ length: 122 / 2 + 1 }, (r, t) => String(6 + t * 2)), rn = [
690
+ "100",
691
+ "200",
692
+ "300",
693
+ "400",
694
+ "500",
695
+ "600",
696
+ "700",
697
+ "800",
698
+ "900"
699
+ ], nn = [
700
+ "home",
701
+ "reviews",
702
+ "faqs",
703
+ "contact",
704
+ "product",
705
+ "ticket",
706
+ "login"
707
+ ], qt = {
708
+ home: {
709
+ path: "/",
710
+ name: "home",
711
+ icon: "house",
712
+ seo: {
713
+ description: "",
714
+ title: ""
715
+ },
716
+ visibility: "public"
717
+ },
718
+ product: {
719
+ path: "/product",
720
+ name: "product",
721
+ icon: "squares",
722
+ seo: {
723
+ description: "",
724
+ title: ""
725
+ },
726
+ visibility: "public"
727
+ },
728
+ faqs: {
729
+ path: "/faqs",
730
+ name: "faqs",
731
+ icon: "faqs",
732
+ seo: {
733
+ description: "",
734
+ title: ""
735
+ },
736
+ visibility: "public"
737
+ },
738
+ reviews: {
739
+ path: "/reviews",
740
+ name: "reviews",
741
+ icon: "star",
742
+ seo: {
743
+ description: "",
744
+ title: ""
745
+ },
746
+ visibility: "public"
747
+ },
748
+ contact: {
749
+ path: "/contact",
750
+ name: "contact",
751
+ icon: "chat",
752
+ seo: {
753
+ description: "",
754
+ title: ""
755
+ },
756
+ visibility: "public"
757
+ },
758
+ ticket: {
759
+ path: "/ticket",
760
+ name: "ticket",
761
+ icon: "ticket",
762
+ seo: {
763
+ description: "",
764
+ title: ""
765
+ },
766
+ visibility: "public"
767
+ },
768
+ login: {
769
+ path: "/login",
770
+ name: "login",
771
+ icon: "user-circle-gear",
772
+ seo: {
773
+ description: "",
774
+ title: ""
775
+ },
776
+ visibility: "public"
777
+ }
778
+ }, sn = F((r) => ({
779
+ activeBlock: Mt[0],
780
+ setActiveBlock: (t) => r(() => ({ activeBlock: t }))
781
+ }));
782
+ function Lt(r, t) {
783
+ let n;
784
+ try {
785
+ n = r();
786
+ } catch {
787
+ return;
788
+ }
789
+ return {
790
+ getItem: (i) => {
791
+ var o;
792
+ const l = (u) => u === null ? null : JSON.parse(u, void 0), f = (o = n.getItem(i)) != null ? o : null;
793
+ return f instanceof Promise ? f.then(l) : l(f);
794
+ },
795
+ setItem: (i, o) => n.setItem(
796
+ i,
797
+ JSON.stringify(o, void 0)
798
+ ),
799
+ removeItem: (i) => n.removeItem(i)
800
+ };
801
+ }
802
+ const Pe = (r) => (t) => {
803
+ try {
804
+ const n = r(t);
805
+ return n instanceof Promise ? n : {
806
+ then(s) {
807
+ return Pe(s)(n);
808
+ },
809
+ catch(s) {
810
+ return this;
811
+ }
812
+ };
813
+ } catch (n) {
814
+ return {
815
+ then(s) {
816
+ return this;
817
+ },
818
+ catch(s) {
819
+ return Pe(s)(n);
820
+ }
821
+ };
822
+ }
823
+ }, Vt = (r, t) => (n, s, i) => {
824
+ let o = {
825
+ storage: Lt(() => localStorage),
826
+ partialize: (h) => h,
827
+ version: 0,
828
+ merge: (h, O) => ({
829
+ ...O,
830
+ ...h
831
+ }),
832
+ ...t
833
+ }, l = !1;
834
+ const f = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
835
+ let v = o.storage;
836
+ if (!v)
837
+ return r(
838
+ (...h) => {
839
+ console.warn(
840
+ `[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`
841
+ ), n(...h);
842
+ },
843
+ s,
844
+ i
845
+ );
846
+ const d = () => {
847
+ const h = o.partialize({ ...s() });
848
+ return v.setItem(o.name, {
849
+ state: h,
850
+ version: o.version
851
+ });
852
+ }, y = i.setState;
853
+ i.setState = (h, O) => {
854
+ y(h, O), d();
855
+ };
856
+ const R = r(
857
+ (...h) => {
858
+ n(...h), d();
859
+ },
860
+ s,
861
+ i
862
+ );
863
+ i.getInitialState = () => R;
864
+ let E;
865
+ const S = () => {
866
+ var h, O;
867
+ if (!v) return;
868
+ l = !1, f.forEach((g) => {
869
+ var I;
870
+ return g((I = s()) != null ? I : R);
871
+ });
872
+ const w = ((O = o.onRehydrateStorage) == null ? void 0 : O.call(o, (h = s()) != null ? h : R)) || void 0;
873
+ return Pe(v.getItem.bind(v))(o.name).then((g) => {
874
+ if (g)
875
+ if (typeof g.version == "number" && g.version !== o.version) {
876
+ if (o.migrate)
877
+ return [
878
+ !0,
879
+ o.migrate(
880
+ g.state,
881
+ g.version
882
+ )
883
+ ];
884
+ console.error(
885
+ "State loaded from storage couldn't be migrated since no migrate function was provided"
886
+ );
887
+ } else
888
+ return [!1, g.state];
889
+ return [!1, void 0];
890
+ }).then((g) => {
891
+ var I;
892
+ const [q, K] = g;
893
+ if (E = o.merge(
894
+ K,
895
+ (I = s()) != null ? I : R
896
+ ), n(E, !0), q)
897
+ return d();
898
+ }).then(() => {
899
+ w == null || w(E, void 0), E = s(), l = !0, u.forEach((g) => g(E));
900
+ }).catch((g) => {
901
+ w == null || w(void 0, g);
902
+ });
903
+ };
904
+ return i.persist = {
905
+ setOptions: (h) => {
906
+ o = {
907
+ ...o,
908
+ ...h
909
+ }, h.storage && (v = h.storage);
910
+ },
911
+ clearStorage: () => {
912
+ v == null || v.removeItem(o.name);
913
+ },
914
+ getOptions: () => o,
915
+ rehydrate: () => S(),
916
+ hasHydrated: () => l,
917
+ onHydrate: (h) => (f.add(h), () => {
918
+ f.delete(h);
919
+ }),
920
+ onFinishHydration: (h) => (u.add(h), () => {
921
+ u.delete(h);
922
+ })
923
+ }, o.skipHydration || S(), E || R;
924
+ }, pe = Vt, on = F(
925
+ pe(
926
+ (r) => ({
927
+ onPreview: !1,
928
+ setOnPreview: (t) => r(() => ({ onPreview: t })),
929
+ activeBlock: null,
930
+ setActiveBlock: (t) => r(() => ({ activeBlock: t }))
931
+ }),
932
+ {
933
+ name: "preview-storage",
934
+ partialize: (r) => {
935
+ const { onPreview: t } = r;
936
+ return { onPreview: t };
937
+ }
938
+ }
939
+ )
940
+ );
941
+ var P = [];
942
+ for (var Ee = 0; Ee < 256; ++Ee)
943
+ P.push((Ee + 256).toString(16).slice(1));
944
+ function Ut(r, t = 0) {
945
+ return (P[r[t + 0]] + P[r[t + 1]] + P[r[t + 2]] + P[r[t + 3]] + "-" + P[r[t + 4]] + P[r[t + 5]] + "-" + P[r[t + 6]] + P[r[t + 7]] + "-" + P[r[t + 8]] + P[r[t + 9]] + "-" + P[r[t + 10]] + P[r[t + 11]] + P[r[t + 12]] + P[r[t + 13]] + P[r[t + 14]] + P[r[t + 15]]).toLowerCase();
946
+ }
947
+ var le, Wt = new Uint8Array(16);
948
+ function zt() {
949
+ if (!le && (le = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !le))
950
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
951
+ return le(Wt);
952
+ }
953
+ var Yt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
954
+ const nt = {
955
+ randomUUID: Yt
956
+ };
957
+ function Oe(r, t, n) {
958
+ if (nt.randomUUID && !t && !r)
959
+ return nt.randomUUID();
960
+ r = r || {};
961
+ var s = r.random || (r.rng || zt)();
962
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Ut(s);
963
+ }
964
+ const an = F(
965
+ pe(
966
+ (r, t) => ({
967
+ blocks: {
968
+ home: {},
969
+ contact: {},
970
+ product: {},
971
+ faqs: {},
972
+ reviews: {},
973
+ ticket: {},
974
+ login: {}
975
+ },
976
+ currentBlock: null,
977
+ positionBlock: null,
978
+ createPage: (n) => {
979
+ const s = t().blocks;
980
+ s[n] = {}, r({ blocks: s });
981
+ },
982
+ deletePage: (n) => {
983
+ const s = t().blocks;
984
+ delete s[n], r({ blocks: s });
985
+ },
986
+ updatePage: (n, s) => {
987
+ const i = t().blocks;
988
+ if (i[s]) return;
989
+ const o = i[n];
990
+ delete i[n], i[s] = o, r({ blocks: i });
991
+ },
992
+ setCurrentBlock: (n) => {
993
+ r({ currentBlock: n });
994
+ },
995
+ setPositionBlock: (n) => {
996
+ r({ positionBlock: n });
997
+ },
998
+ addBlock: (n, s) => {
999
+ const i = t().blocks, o = i[n] || {}, l = t().positionBlock, f = Oe(), u = Object.keys(o);
1000
+ if (l === null || l >= u.length)
1001
+ o[f] = {
1002
+ name: s.name,
1003
+ value: { ...s.value }
1004
+ }, r({
1005
+ blocks: {
1006
+ ...i,
1007
+ [n]: o
1008
+ }
1009
+ });
1010
+ else {
1011
+ const v = {
1012
+ name: s.name,
1013
+ value: { ...s.value }
1014
+ }, d = u.slice(0, l), y = u.slice(l), R = {
1015
+ ...d.reduce((E, S) => (E[S] = o[S], E), {}),
1016
+ [f]: v,
1017
+ ...y.reduce((E, S) => (E[S] = o[S], E), {})
1018
+ };
1019
+ r({
1020
+ blocks: {
1021
+ ...i,
1022
+ [n]: R
1023
+ }
1024
+ });
1025
+ }
1026
+ },
1027
+ editBlock: (n, s, i) => {
1028
+ const o = t().blocks, l = o[n] || {};
1029
+ l[s] = {
1030
+ name: i.name,
1031
+ value: { ...i.value }
1032
+ }, r({
1033
+ blocks: {
1034
+ ...o,
1035
+ [n]: l
1036
+ }
1037
+ });
1038
+ },
1039
+ removeBlock: (n, s) => {
1040
+ const i = t().blocks, o = i[n] || {};
1041
+ delete o[s], r({
1042
+ blocks: {
1043
+ ...i,
1044
+ [n]: o
1045
+ }
1046
+ });
1047
+ },
1048
+ moveBlock: (n, s, i) => r((o) => {
1049
+ const l = { ...o.blocks[n] }, f = Object.keys(l), [u] = f.splice(s, 1);
1050
+ f.splice(i, 0, u);
1051
+ const v = f.reduce(
1052
+ (d, y) => (d[y] = l[y], d),
1053
+ {}
1054
+ );
1055
+ return {
1056
+ blocks: {
1057
+ ...o.blocks,
1058
+ [n]: v
1059
+ }
1060
+ };
1061
+ }),
1062
+ duplicateBlock: (n, s) => {
1063
+ const { blocks: i } = t(), o = i[n], l = o[s], f = Oe(), u = {
1064
+ name: l.name,
1065
+ value: { ...l.value }
1066
+ }, v = Object.keys(o), d = v.indexOf(s), y = v.slice(0, d + 1), R = v.slice(d + 1), E = {
1067
+ ...y.reduce((S, h) => (S[h] = o[h], S), {}),
1068
+ [f]: u,
1069
+ ...R.reduce((S, h) => (S[h] = o[h], S), {})
1070
+ };
1071
+ r({
1072
+ blocks: {
1073
+ ...i,
1074
+ [n]: E
1075
+ }
1076
+ });
1077
+ }
1078
+ }),
1079
+ {
1080
+ name: "layers-storage",
1081
+ partialize: (r) => {
1082
+ const { blocks: t } = r;
1083
+ return { blocks: t };
1084
+ }
1085
+ }
1086
+ )
1087
+ ), Ht = F((r, t) => ({
1088
+ isModalVisible: !1,
1089
+ hoverBlockId: null,
1090
+ isMouseOverModal: !1,
1091
+ hideTimeout: null,
1092
+ showModal: (n) => {
1093
+ t().hideTimeout && clearTimeout(t().hideTimeout), r({ isModalVisible: !0, hoverBlockId: n });
1094
+ },
1095
+ hideModal: () => {
1096
+ r({ isModalVisible: !1, hoverBlockId: null });
1097
+ },
1098
+ startHideTimeout: () => {
1099
+ if (!t().isMouseOverModal) {
1100
+ const n = setTimeout(() => {
1101
+ r({ isModalVisible: !1, hoverBlockId: null });
1102
+ }, 500);
1103
+ r({ hideTimeout: n });
1104
+ }
1105
+ },
1106
+ clearHideTimeout: () => {
1107
+ t().hideTimeout && (clearTimeout(t().hideTimeout), r({ hideTimeout: null }));
1108
+ },
1109
+ setMouseOverModal: (n) => {
1110
+ r({ isMouseOverModal: n });
1111
+ },
1112
+ isPreviewVisible: !1,
1113
+ // Изначально превью скрыто
1114
+ showPreview: (n) => {
1115
+ r({ isPreviewVisible: !0, hoverBlockId: n });
1116
+ },
1117
+ hidePreview: () => {
1118
+ r({ isPreviewVisible: !1, hoverBlockId: null });
1119
+ }
1120
+ })), cn = F((r) => ({
1121
+ activeBlock: null,
1122
+ setActiveBlock: (t) => r(() => ({ activeBlock: t })),
1123
+ activeFont: null,
1124
+ setActiveFont: (t) => r(() => ({ activeFont: t })),
1125
+ themeSettings: {
1126
+ colors: {
1127
+ brand: {
1128
+ primary: "#fefefe",
1129
+ secondary: "#fefefe",
1130
+ toner: "#ffffff"
1131
+ },
1132
+ background: {
1133
+ primary: "#fefefe",
1134
+ secondary: "#000000"
1135
+ },
1136
+ text_icons: {
1137
+ primary: "#000000",
1138
+ secondary: "#fefefe",
1139
+ tertiary: "#fefefe",
1140
+ disabled: "#ffffff"
1141
+ },
1142
+ lines: {
1143
+ divider: "#000000",
1144
+ border: "#fefefe"
1145
+ },
1146
+ others: {
1147
+ link: "#000000"
1148
+ }
1149
+ },
1150
+ fonts: {
1151
+ heading: {
1152
+ h1: {
1153
+ font: "Archivo",
1154
+ weight: "900",
1155
+ size: 48
1156
+ },
1157
+ h2: {
1158
+ font: "Archivo",
1159
+ weight: "700",
1160
+ size: 32
1161
+ },
1162
+ h3: {
1163
+ font: "Archivo",
1164
+ weight: "600",
1165
+ size: 24
1166
+ },
1167
+ h4: {
1168
+ font: "Archivo",
1169
+ weight: "500",
1170
+ size: 16
1171
+ },
1172
+ h5: {
1173
+ font: "Archivo",
1174
+ weight: "400",
1175
+ size: 16
1176
+ },
1177
+ h6: {
1178
+ font: "Archivo",
1179
+ weight: "400",
1180
+ size: 16
1181
+ }
1182
+ },
1183
+ paragraph: {
1184
+ text: {
1185
+ font: "Archivo",
1186
+ size: 48,
1187
+ weight: "400"
1188
+ }
1189
+ }
1190
+ },
1191
+ borders: {
1192
+ radius: 52,
1193
+ thickness: 52
1194
+ },
1195
+ buttons: {
1196
+ size: 26,
1197
+ alignment: "left",
1198
+ radius: 32,
1199
+ height: 40
1200
+ },
1201
+ inputs: {
1202
+ general: {
1203
+ height: 48,
1204
+ name: "Style Name",
1205
+ size: 48,
1206
+ color: "black"
1207
+ },
1208
+ field: {
1209
+ active: !0,
1210
+ color: "black",
1211
+ opacity: 40
1212
+ },
1213
+ border: {
1214
+ active: !0,
1215
+ style: "solid",
1216
+ radius: 0,
1217
+ thickness: 0,
1218
+ color: "black"
1219
+ },
1220
+ label: {
1221
+ height: 48,
1222
+ size: 48,
1223
+ color: "black",
1224
+ alignment: "left"
1225
+ }
1226
+ }
1227
+ },
1228
+ updateColor: (t, n, s) => r((i) => {
1229
+ const o = {
1230
+ ...i.themeSettings.colors,
1231
+ [t]: {
1232
+ ...i.themeSettings.colors[t],
1233
+ [n]: s
1234
+ }
1235
+ };
1236
+ return { themeSettings: { ...i.themeSettings, colors: o } };
1237
+ }),
1238
+ updateFont: (t, n, s, i) => r((o) => {
1239
+ const l = {
1240
+ ...o.themeSettings.fonts,
1241
+ [t]: {
1242
+ ...o.themeSettings.fonts[t],
1243
+ [n]: {
1244
+ ...o.themeSettings.fonts[t][n],
1245
+ [s]: i
1246
+ }
1247
+ }
1248
+ };
1249
+ return { themeSettings: { ...o.themeSettings, fonts: l } };
1250
+ }),
1251
+ updateBorder: (t, n) => r((s) => {
1252
+ const i = {
1253
+ ...s.themeSettings.borders,
1254
+ [t]: n
1255
+ };
1256
+ return { themeSettings: { ...s.themeSettings, borders: i } };
1257
+ }),
1258
+ updateButton: (t, n) => r((s) => {
1259
+ const i = {
1260
+ ...s.themeSettings.buttons,
1261
+ [t]: n
1262
+ };
1263
+ return { themeSettings: { ...s.themeSettings, buttons: i } };
1264
+ }),
1265
+ updateInput: (t, n, s) => r((i) => ({
1266
+ themeSettings: {
1267
+ ...i.themeSettings,
1268
+ inputs: {
1269
+ ...i.themeSettings.inputs,
1270
+ [t]: {
1271
+ ...i.themeSettings.inputs[t],
1272
+ [s]: n
1273
+ }
1274
+ }
1275
+ }
1276
+ }))
1277
+ })), ln = F(
1278
+ pe(
1279
+ (r) => ({
1280
+ fonts: [],
1281
+ setFonts: (t) => r(() => ({ fonts: t }))
1282
+ }),
1283
+ {
1284
+ name: "fonts-storage"
1285
+ }
1286
+ )
1287
+ ), un = F((r) => ({
1288
+ settings: null,
1289
+ setSettings: (t) => r(() => ({ settings: t }))
1290
+ })), Jt = F()((r) => ({
1291
+ color: "default",
1292
+ initialColor: "",
1293
+ setInitialColor: (t) => r(() => ({ initialColor: t })),
1294
+ colorChange: () => {
1295
+ },
1296
+ update: () => {
1297
+ },
1298
+ activeLabel: null,
1299
+ modalPosition: {
1300
+ left: 0,
1301
+ top: 0
1302
+ },
1303
+ showModal: !1,
1304
+ dragging: !1,
1305
+ hue: 0,
1306
+ saturation: 100,
1307
+ brightness: 100,
1308
+ setModalPosition: (t) => r(() => ({ modalPosition: t })),
1309
+ setHue: (t) => r(() => ({ hue: t })),
1310
+ setSaturation: (t) => r(() => ({ saturation: t })),
1311
+ setBrightness: (t) => r(() => ({ brightness: t })),
1312
+ setShowModal: (t) => r(() => ({ showModal: t })),
1313
+ setDragging: (t) => r(() => ({ dragging: t })),
1314
+ setActiveLabel: (t) => r(() => ({ activeLabel: t })),
1315
+ setColor: (t) => r(() => ({ color: t })),
1316
+ setUpdate: (t) => r(() => ({ update: t })),
1317
+ setColorChange: (t) => r(() => ({ colorChange: t }))
1318
+ })), dn = F(
1319
+ pe(
1320
+ (r, t) => ({
1321
+ pages: qt,
1322
+ currentPage: "home",
1323
+ pageContext: {
1324
+ listings: void 0,
1325
+ products: void 0,
1326
+ reviews: void 0,
1327
+ categories: void 0,
1328
+ faqs: void 0,
1329
+ general: void 0
1330
+ },
1331
+ isOpenModal: !1,
1332
+ isOpenSelectModal: !1,
1333
+ isEdit: !1,
1334
+ editedPage: null,
1335
+ setEditedPage: (n) => r(() => ({ editedPage: n })),
1336
+ setCurrentPage: (n) => r(() => ({ currentPage: n })),
1337
+ setPageContext: (n) => r(() => ({ pageContext: n })),
1338
+ setIsOpenModal: (n) => r(() => ({ isOpenModal: n })),
1339
+ setIsOpenSelectModal: (n) => r(() => ({ isOpenSelectModal: n })),
1340
+ setIsEdit: (n) => r(() => ({ isEdit: n })),
1341
+ createPage: (n) => {
1342
+ const s = t().pages, i = Oe();
1343
+ s[i] = n, r({ pages: s });
1344
+ },
1345
+ updatePage: (n, s) => {
1346
+ const i = t().pages;
1347
+ i[n] = {
1348
+ ...s
1349
+ }, r({ pages: i });
1350
+ },
1351
+ deletePage: (n) => {
1352
+ const s = t().pages;
1353
+ delete s[n], r({ pages: s });
1354
+ }
1355
+ }),
1356
+ {
1357
+ name: "pages-storage",
1358
+ partialize: (r) => {
1359
+ const { pages: t } = r;
1360
+ return { pages: t };
1361
+ }
1362
+ }
1363
+ )
1364
+ ), Kt = (r, t, n) => {
1365
+ const s = r[t];
1366
+ return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((i, o) => {
1367
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
1368
+ o.bind(
1369
+ null,
1370
+ new Error(
1371
+ "Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
1372
+ )
1373
+ )
1374
+ );
1375
+ });
1376
+ }, Gt = "_icon_21b8w_1", Xt = "_hoverable_21b8w_5", st = {
1377
+ icon: Gt,
1378
+ hoverable: Xt
1379
+ };
1380
+ var ot = { exports: {} };
1381
+ /*!
1382
+ Copyright (c) 2018 Jed Watson.
1383
+ Licensed under the MIT License (MIT), see
1384
+ http://jedwatson.github.io/classnames
1385
+ */
1386
+ (function(r) {
1387
+ (function() {
1388
+ var t = {}.hasOwnProperty;
1389
+ function n() {
1390
+ for (var o = "", l = 0; l < arguments.length; l++) {
1391
+ var f = arguments[l];
1392
+ f && (o = i(o, s(f)));
1393
+ }
1394
+ return o;
1395
+ }
1396
+ function s(o) {
1397
+ if (typeof o == "string" || typeof o == "number")
1398
+ return o;
1399
+ if (typeof o != "object")
1400
+ return "";
1401
+ if (Array.isArray(o))
1402
+ return n.apply(null, o);
1403
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
1404
+ return o.toString();
1405
+ var l = "";
1406
+ for (var f in o)
1407
+ t.call(o, f) && o[f] && (l = i(l, f));
1408
+ return l;
1409
+ }
1410
+ function i(o, l) {
1411
+ return l ? o ? o + " " + l : o + l : o;
1412
+ }
1413
+ r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
1414
+ })();
1415
+ })(ot);
1416
+ var Zt = ot.exports;
1417
+ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
1418
+ const {
1419
+ name: t,
1420
+ fill: n = "currentColor",
1421
+ hoverable: s = !1,
1422
+ onClick: i,
1423
+ className: o,
1424
+ width: l,
1425
+ height: f
1426
+ } = r, [u, v] = T.useState(null);
1427
+ return T.useEffect(() => {
1428
+ (async () => {
1429
+ try {
1430
+ const { default: y } = await Kt(/* @__PURE__ */ Object.assign({ "../../../assets/icons/align-center.svg": () => import("./align-center-BO84DuTM.js"), "../../../assets/icons/align-left.svg": () => import("./align-left-M0ZgFryb.js"), "../../../assets/icons/align-right.svg": () => import("./align-right-Cgz7UcnI.js"), "../../../assets/icons/arrow-down.svg": () => import("./arrow-down-Be8fhLDw.js"), "../../../assets/icons/arrow-left.svg": () => import("./arrow-left-74wdITOH.js"), "../../../assets/icons/arrow-preview-down.svg": () => import("./arrow-preview-down-DM61uZ0R.js"), "../../../assets/icons/arrow-preview-up.svg": () => import("./arrow-preview-up-tl-dLBGP.js"), "../../../assets/icons/arrow-right.svg": () => import("./arrow-right-Cr3U4dHJ.js"), "../../../assets/icons/arrow-square.svg": () => import("./arrow-square-CYM9usfL.js"), "../../../assets/icons/arrow-up-right.svg": () => import("./arrow-up-right-DjQHCzy_.js"), "../../../assets/icons/border-dashed.svg": () => import("./border-dashed-B0Vn5Ams.js"), "../../../assets/icons/border-solid.svg": () => import("./border-solid-BjJ2NMUc.js"), "../../../assets/icons/cards.svg": () => import("./cards-D_Fs7yzJ.js"), "../../../assets/icons/chat.svg": () => import("./chat-BAur-Hs7.js"), "../../../assets/icons/check.svg": () => import("./check-Dw7aX1Gq.js"), "../../../assets/icons/copy.svg": () => import("./copy-B-BFBPCj.js"), "../../../assets/icons/corners-out.svg": () => import("./corners-out-DoBj8RP9.js"), "../../../assets/icons/desktop.svg": () => import("./desktop-BtX370Ww.js"), "../../../assets/icons/faqs.svg": () => import("./faqs-23Fq6osg.js"), "../../../assets/icons/file.svg": () => import("./file-DyR17xsF.js"), "../../../assets/icons/font.svg": () => import("./font-7p9R-iSH.js"), "../../../assets/icons/globe.svg": () => import("./globe--VWAXBWp.js"), "../../../assets/icons/heading.svg": () => import("./heading-CBG3k-8U.js"), "../../../assets/icons/house.svg": () => import("./house-WXuqDQYP.js"), "../../../assets/icons/info-circle.svg": () => import("./info-circle-eJbOZlg5.js"), "../../../assets/icons/layers.svg": () => import("./layers-Cjkf4Ywz.js"), "../../../assets/icons/lock.svg": () => import("./lock-CjdyZZ0l.js"), "../../../assets/icons/mobile.svg": () => import("./mobile-CmqAt_Mz.js"), "../../../assets/icons/paint.svg": () => import("./paint-BZpZzEUU.js"), "../../../assets/icons/palette.svg": () => import("./palette-C8JiqbcX.js"), "../../../assets/icons/paragraph.svg": () => import("./paragraph-LWVXCR4R.js"), "../../../assets/icons/plus.svg": () => import("./plus-BJbR8W_G.js"), "../../../assets/icons/radius.svg": () => import("./radius-CxeWfnVG.js"), "../../../assets/icons/redo.svg": () => import("./redo-CGWptNGF.js"), "../../../assets/icons/search.svg": () => import("./search-DyJEj9C0.js"), "../../../assets/icons/settings.svg": () => import("./settings-B3DU_KZp.js"), "../../../assets/icons/sign-out.svg": () => import("./sign-out-C7IDLqPn.js"), "../../../assets/icons/squares.svg": () => import("./squares-D_Q5KrSa.js"), "../../../assets/icons/star.svg": () => import("./star-DmVJ8LCU.js"), "../../../assets/icons/tablet.svg": () => import("./tablet-DjgFAzpj.js"), "../../../assets/icons/textbox.svg": () => import("./textbox-VoZOnoQo.js"), "../../../assets/icons/thickness.svg": () => import("./thickness-8ZhgPpus.js"), "../../../assets/icons/ticket.svg": () => import("./ticket-Cp2gw7LG.js"), "../../../assets/icons/trash.svg": () => import("./trash-C46P9ylt.js"), "../../../assets/icons/undo.svg": () => import("./undo-DQ4HRzFE.js"), "../../../assets/icons/user-circle-gear.svg": () => import("./user-circle-gear-GplwFHx0.js"), "../../../assets/icons/x.svg": () => import("./x-Dwea3dAc.js"), "../../../assets/icons/zoom-minus.svg": () => import("./zoom-minus-DlvFV6xy.js") }), `../../../assets/icons/${t}.svg`, 6);
1431
+ v(() => y);
1432
+ } catch {
1433
+ console.error(`Icon "${t}" not found in assets.`), v(null);
1434
+ }
1435
+ })();
1436
+ }, [t]), u ? /* @__PURE__ */ m.jsx(
1437
+ u,
1438
+ {
1439
+ fill: n,
1440
+ style: {
1441
+ "--icon-fill": n
1442
+ },
1443
+ className: V(st.icon, o, {
1444
+ [st.hoverable]: s
1445
+ }),
1446
+ onClick: i,
1447
+ width: l || "24",
1448
+ height: f || "24"
1449
+ }
1450
+ ) : null;
1451
+ }, Qt = "_button_rcjso_1", er = {
1452
+ button: Qt
1453
+ }, fn = (r) => {
1454
+ const { children: t, onClick: n, style: s, className: i, disabled: o = !1, size: l = "m" } = r;
1455
+ return /* @__PURE__ */ m.jsx(
1456
+ "button",
1457
+ {
1458
+ className: V(er.button, i),
1459
+ onClick: n,
1460
+ style: {
1461
+ ...s,
1462
+ fontSize: l === "m" ? 14 : 16
1463
+ },
1464
+ disabled: o,
1465
+ children: t
1466
+ }
1467
+ );
1468
+ }, tr = "_wrapper_x5ap4_1", rr = "_label_x5ap4_9", nr = "_input_x5ap4_17", sr = "_required_x5ap4_36", ue = {
1469
+ wrapper: tr,
1470
+ label: rr,
1471
+ input: nr,
1472
+ required: sr
1473
+ }, pn = (r) => {
1474
+ const {
1475
+ onChange: t,
1476
+ label: n,
1477
+ value: s,
1478
+ type: i,
1479
+ min: o,
1480
+ placeholder: l,
1481
+ disabled: f = !1,
1482
+ required: u = !1,
1483
+ regex: v
1484
+ } = r, [d, y] = T.useState(!1);
1485
+ function R(S) {
1486
+ return Number(S) < 0 ? "0" : S;
1487
+ }
1488
+ function E(S) {
1489
+ return !u || !v ? !0 : new RegExp(v).test(S);
1490
+ }
1491
+ return /* @__PURE__ */ m.jsxs("div", { className: ue.wrapper, children: [
1492
+ n && /* @__PURE__ */ m.jsx(
1493
+ "label",
1494
+ {
1495
+ className: ue.label,
1496
+ htmlFor: n,
1497
+ children: n
1498
+ }
1499
+ ),
1500
+ /* @__PURE__ */ m.jsx(
1501
+ "input",
1502
+ {
1503
+ id: n,
1504
+ type: i || "text",
1505
+ defaultValue: s,
1506
+ onChange: (S) => {
1507
+ if (i === "text") t(S.target.value);
1508
+ else {
1509
+ const h = R(S.target.value);
1510
+ t(h);
1511
+ }
1512
+ },
1513
+ autoComplete: "off",
1514
+ placeholder: l,
1515
+ className: V(ue.input, {
1516
+ [ue.required]: d && u && !E(s)
1517
+ }),
1518
+ min: i === "number" ? o : void 0,
1519
+ disabled: f,
1520
+ onFocus: () => y(!0)
1521
+ }
1522
+ )
1523
+ ] });
1524
+ }, or = "_wrapper_dmzhr_1", ar = "_label_dmzhr_9", ir = "_select_dmzhr_17", cr = "_icon_dmzhr_30", lr = "_rotate_dmzhr_34", ur = "_content_dmzhr_38", dr = "_options_dmzhr_42", fr = "_option_dmzhr_42", L = {
1525
+ wrapper: or,
1526
+ label: ar,
1527
+ select: ir,
1528
+ icon: cr,
1529
+ rotate: lr,
1530
+ content: ur,
1531
+ options: dr,
1532
+ option: fr
1533
+ }, vn = (r) => {
1534
+ const { leftAddon: t, onChange: n, label: s, value: i, options: o, style: l } = r, [f, u] = T.useState(!1);
1535
+ function v(d) {
1536
+ n(d), u(!1);
1537
+ }
1538
+ return T.useEffect(() => {
1539
+ const d = () => {
1540
+ u(!1);
1541
+ };
1542
+ return d(), document.body.addEventListener("click", d), () => {
1543
+ document.body.removeEventListener("click", d);
1544
+ };
1545
+ }, []), /* @__PURE__ */ m.jsxs(
1546
+ "div",
1547
+ {
1548
+ className: L.wrapper,
1549
+ style: { ...l },
1550
+ children: [
1551
+ s && /* @__PURE__ */ m.jsx(
1552
+ "label",
1553
+ {
1554
+ className: L.label,
1555
+ htmlFor: s,
1556
+ children: s
1557
+ }
1558
+ ),
1559
+ /* @__PURE__ */ m.jsxs(
1560
+ "div",
1561
+ {
1562
+ className: L.content,
1563
+ onClick: (d) => d.stopPropagation(),
1564
+ children: [
1565
+ /* @__PURE__ */ m.jsxs(
1566
+ "div",
1567
+ {
1568
+ className: L.select,
1569
+ onClick: () => u((d) => !d),
1570
+ children: [
1571
+ t,
1572
+ /* @__PURE__ */ m.jsx("span", { children: i }),
1573
+ /* @__PURE__ */ m.jsx(
1574
+ fe,
1575
+ {
1576
+ name: "arrow-down",
1577
+ className: V(L.icon, {
1578
+ [L.rotate]: f
1579
+ })
1580
+ }
1581
+ )
1582
+ ]
1583
+ }
1584
+ ),
1585
+ f && /* @__PURE__ */ m.jsx(
1586
+ "div",
1587
+ {
1588
+ className: L.options,
1589
+ onClick: () => u(!1),
1590
+ children: o.filter((d) => d !== i).map((d) => /* @__PURE__ */ m.jsx(
1591
+ "div",
1592
+ {
1593
+ className: L.option,
1594
+ onClick: () => v(d),
1595
+ children: d
1596
+ },
1597
+ d
1598
+ ))
1599
+ }
1600
+ )
1601
+ ]
1602
+ }
1603
+ )
1604
+ ]
1605
+ }
1606
+ );
1607
+ }, pr = "_active_1gvxu_12", vr = "_toggle_1gvxu_15", Re = {
1608
+ switch: "_switch_1gvxu_1",
1609
+ active: pr,
1610
+ toggle: vr
1611
+ }, mn = ({ onChange: r, style: t, current: n }) => {
1612
+ const [s, i] = T.useState(n), o = () => {
1613
+ i((l) => !l), r == null || r(!s);
1614
+ };
1615
+ return /* @__PURE__ */ m.jsx(
1616
+ "div",
1617
+ {
1618
+ className: V(Re.switch, {
1619
+ [Re.active]: s
1620
+ }),
1621
+ onClick: o,
1622
+ style: t,
1623
+ children: /* @__PURE__ */ m.jsx("div", { className: Re.toggle })
1624
+ }
1625
+ );
1626
+ }, mr = "_wrapper_1inu5_1", gr = {
1627
+ wrapper: mr
1628
+ }, gn = ({ children: r }) => {
1629
+ const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: s, setMouseOverModal: i } = Ht();
1630
+ return t ? /* @__PURE__ */ m.jsx(
1631
+ "div",
1632
+ {
1633
+ className: gr.wrapper,
1634
+ onMouseEnter: () => {
1635
+ s(), i(!0);
1636
+ },
1637
+ onMouseLeave: () => {
1638
+ i(!1), n();
1639
+ },
1640
+ children: r
1641
+ }
1642
+ ) : null;
1643
+ }, hr = "_blocks_1op3c_1", br = "_block_1op3c_1", _r = "_active_1op3c_18", Ce = {
1644
+ blocks: hr,
1645
+ block: br,
1646
+ active: _r
1647
+ }, hn = (r) => {
1648
+ const { items: t, selectedItem: n, onSelect: s, getIconName: i } = r;
1649
+ return /* @__PURE__ */ m.jsx("div", { className: Ce.blocks, children: t.map((o) => /* @__PURE__ */ m.jsx(
1650
+ "div",
1651
+ {
1652
+ className: V(Ce.block, { [Ce.active]: n === o }),
1653
+ onClick: () => s(o),
1654
+ children: /* @__PURE__ */ m.jsx(
1655
+ fe,
1656
+ {
1657
+ name: i(o),
1658
+ fill: n === o ? "#252525" : "#757575"
1659
+ }
1660
+ )
1661
+ },
1662
+ String(o)
1663
+ )) });
1664
+ }, yr = "_applyButton_1cqw4_2", wr = "_cancelButton_1cqw4_7", kr = "_content_1cqw4_12", Sr = "_label_1cqw4_18", xr = "_colorValue_1cqw4_30", Er = "_modal_1cqw4_37", Rr = "_colorMap_1cqw4_56", Cr = "_indicator_1cqw4_64", jr = "_hueSlider_1cqw4_73", Pr = "_slider_1cqw4_102", Or = "_buttons_1cqw4_107", Tr = "_name_1cqw4_113", Ir = "_secondary_1cqw4_118", Br = "_input_1cqw4_126", J = {
1665
+ applyButton: yr,
1666
+ cancelButton: wr,
1667
+ content: kr,
1668
+ label: Sr,
1669
+ colorValue: xr,
1670
+ modal: Er,
1671
+ colorMap: Rr,
1672
+ indicator: Cr,
1673
+ hueSlider: jr,
1674
+ slider: Pr,
1675
+ buttons: Or,
1676
+ name: Tr,
1677
+ secondary: Ir,
1678
+ input: Br
1679
+ }, bn = (r) => {
1680
+ const { initialColor: t, onChange: n, title: s, labelStyle: i = "primary" } = r, [o, l] = T.useState(t), {
1681
+ setActiveLabel: f,
1682
+ setModalPosition: u,
1683
+ setInitialColor: v,
1684
+ setShowModal: d,
1685
+ setUpdate: y,
1686
+ setColor: R,
1687
+ setColorChange: E,
1688
+ colorChange: S
1689
+ } = Jt();
1690
+ T.useEffect(() => {
1691
+ const O = () => {
1692
+ d(!1), f(null), v(t), y(() => {
1693
+ }), R(t), E(() => {
1694
+ });
1695
+ };
1696
+ return document.body.addEventListener("click", O), () => {
1697
+ document.body.removeEventListener("click", O);
1698
+ };
1699
+ }, []);
1700
+ const h = (O) => {
1701
+ O.stopPropagation(), d(!0), E(l), y(n), v(t), R(o);
1702
+ const w = O.currentTarget.getBoundingClientRect(), g = 400, I = 288, q = 10, K = 20, G = window.innerHeight - w.bottom, ve = w.top, ne = window.innerWidth - w.right, se = w.left;
1703
+ let $, D;
1704
+ $ = w.bottom + q + window.scrollY, D = w.left, (G < g || G < K) && (ve >= g ? $ = w.top - g - q + window.scrollY : $ = window.scrollY + (window.innerHeight - g) / 2), ne < I && (se >= I ? D = w.right - I : D = (window.innerWidth - I) / 2), D < w.right && D + I > w.left && $ < w.bottom && $ + g > w.top && (ne >= I ? D = w.right + q + 100 : G >= g ? $ = w.bottom + q + window.scrollY : ($ = window.scrollY + (window.innerHeight - g) / 2, D = (window.innerWidth - I) / 2)), u({
1705
+ top: $,
1706
+ left: D
1707
+ });
1708
+ };
1709
+ return /* @__PURE__ */ m.jsxs("div", { className: J.content, children: [
1710
+ /* @__PURE__ */ m.jsx(
1711
+ "span",
1712
+ {
1713
+ className: V(J.name, {
1714
+ [J.secondary]: i === "secondary"
1715
+ }),
1716
+ children: s
1717
+ }
1718
+ ),
1719
+ /* @__PURE__ */ m.jsxs(
1720
+ "label",
1721
+ {
1722
+ htmlFor: "color",
1723
+ className: J.label,
1724
+ children: [
1725
+ /* @__PURE__ */ m.jsx(
1726
+ "div",
1727
+ {
1728
+ className: J.colorValue,
1729
+ style: {
1730
+ background: o
1731
+ },
1732
+ onClick: h
1733
+ }
1734
+ ),
1735
+ /* @__PURE__ */ m.jsx(
1736
+ "input",
1737
+ {
1738
+ type: "text",
1739
+ defaultValue: o,
1740
+ value: o,
1741
+ onChange: (O) => {
1742
+ const w = O.target.value;
1743
+ n(w), R(w), l(w), S(w);
1744
+ },
1745
+ className: J.input
1746
+ }
1747
+ )
1748
+ ]
1749
+ }
1750
+ )
1751
+ ] });
1752
+ }, Ar = "_modal_1t5at_1", Nr = {
1753
+ modal: Ar
1754
+ }, _n = (r) => {
1755
+ const { close: t, children: n } = r;
1756
+ return T.useEffect(() => {
1757
+ const s = () => {
1758
+ t(!1);
1759
+ };
1760
+ return document.body.addEventListener("click", s), () => {
1761
+ document.body.removeEventListener("click", s);
1762
+ };
1763
+ }, []), /* @__PURE__ */ m.jsx("div", { className: Nr.modal, children: n });
1764
+ }, Fr = "_wrapper_1qvfi_1", $r = "_label_1qvfi_10", Dr = "_textarea_1qvfi_18", Mr = "_length_1qvfi_33", de = {
1765
+ wrapper: Fr,
1766
+ label: $r,
1767
+ textarea: Dr,
1768
+ length: Mr
1769
+ }, yn = (r) => {
1770
+ const { onChange: t, label: n, value: s, maxLength: i, placeholder: o } = r, [l, f] = T.useState(0);
1771
+ return /* @__PURE__ */ m.jsxs("div", { className: de.wrapper, children: [
1772
+ n && /* @__PURE__ */ m.jsx(
1773
+ "label",
1774
+ {
1775
+ className: de.label,
1776
+ htmlFor: n,
1777
+ children: n
1778
+ }
1779
+ ),
1780
+ /* @__PURE__ */ m.jsx(
1781
+ "textarea",
1782
+ {
1783
+ id: n,
1784
+ defaultValue: s,
1785
+ onChange: (u) => {
1786
+ f(u.target.value.length), t(u.target.value);
1787
+ },
1788
+ placeholder: o,
1789
+ className: de.textarea,
1790
+ maxLength: i
1791
+ }
1792
+ ),
1793
+ i && /* @__PURE__ */ m.jsxs("div", { className: de.length, children: [
1794
+ l,
1795
+ "/",
1796
+ i
1797
+ ] })
1798
+ ] });
1799
+ }, qr = "_wrapper_1fcne_2", Lr = "_label_1fcne_10", Vr = "_options_1fcne_18", Ur = "_radioLabel_1fcne_23", Wr = "_radio_1fcne_23", zr = "_custom_1fcne_36", Yr = "_option_1fcne_18", z = {
1800
+ wrapper: qr,
1801
+ label: Lr,
1802
+ options: Vr,
1803
+ radioLabel: Ur,
1804
+ radio: Wr,
1805
+ custom: zr,
1806
+ option: Yr
1807
+ }, wn = (r) => {
1808
+ const { defaultValue: t, options: n, onChange: s, label: i } = r, [o, l] = T.useState(t), f = (u) => {
1809
+ const v = u.target.value;
1810
+ l(v), s(v);
1811
+ };
1812
+ return /* @__PURE__ */ m.jsxs("div", { className: z.wrapper, children: [
1813
+ /* @__PURE__ */ m.jsx("span", { className: z.label, children: i }),
1814
+ /* @__PURE__ */ m.jsx("div", { className: z.options, children: n.map((u) => /* @__PURE__ */ m.jsxs(
1815
+ "label",
1816
+ {
1817
+ className: z.radioLabel,
1818
+ children: [
1819
+ /* @__PURE__ */ m.jsx(
1820
+ "input",
1821
+ {
1822
+ type: "radio",
1823
+ value: u.value,
1824
+ checked: o === u.value,
1825
+ onChange: f,
1826
+ className: z.radio
1827
+ }
1828
+ ),
1829
+ /* @__PURE__ */ m.jsx("span", { className: z.custom }),
1830
+ /* @__PURE__ */ m.jsx("span", { className: z.option, children: u.label })
1831
+ ]
1832
+ },
1833
+ u.value
1834
+ )) })
1835
+ ] });
1836
+ }, Hr = "_tip_pl6k0_1", Jr = "_text_pl6k0_9", Kr = "_warning_pl6k0_15", Gr = "_error_pl6k0_20", Xr = "_hide_pl6k0_25", re = {
1837
+ tip: Hr,
1838
+ text: Jr,
1839
+ warning: Kr,
1840
+ error: Gr,
1841
+ hide: Xr
1842
+ }, kn = (r) => {
1843
+ const { type: t, message: n, style: s } = r, [i, o] = T.useState(!1);
1844
+ return /* @__PURE__ */ m.jsxs(
1845
+ "div",
1846
+ {
1847
+ className: V(re.tip, {
1848
+ [re.warning]: t === "warning",
1849
+ [re.error]: t === "error",
1850
+ [re.hide]: i
1851
+ }),
1852
+ style: s,
1853
+ children: [
1854
+ /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsx(
1855
+ fe,
1856
+ {
1857
+ name: "info-circle",
1858
+ fill: t === "warning" ? "#C1972A" : "#FF3F19",
1859
+ width: 20,
1860
+ height: 20
1861
+ }
1862
+ ) }),
1863
+ /* @__PURE__ */ m.jsx("div", { className: re.text, children: n }),
1864
+ /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsx(
1865
+ fe,
1866
+ {
1867
+ name: "x",
1868
+ fill: t === "warning" ? "#C1972A" : "#FF3F19",
1869
+ width: 20,
1870
+ height: 20,
1871
+ hoverable: !0,
1872
+ onClick: () => o(!0)
1873
+ }
1874
+ ) })
1875
+ ]
1876
+ }
1877
+ );
1878
+ };
1879
+ export {
1880
+ fn as B,
1881
+ bn as C,
1882
+ fe as I,
1883
+ _n as M,
1884
+ hn as P,
1885
+ wn as R,
1886
+ vn as S,
1887
+ yn as T,
1888
+ pn as a,
1889
+ mn as b,
1890
+ gn as c,
1891
+ kn as d,
1892
+ V as e,
1893
+ on as f,
1894
+ dn as g,
1895
+ an as h,
1896
+ nn as i,
1897
+ m as j,
1898
+ cn as k,
1899
+ un as l,
1900
+ sn as m,
1901
+ Qr as n,
1902
+ Mt as o,
1903
+ Ht as p,
1904
+ Jt as q,
1905
+ Bt as r,
1906
+ J as s,
1907
+ tn as t,
1908
+ en as u,
1909
+ ln as v,
1910
+ rn as w
1911
+ };