@crediblemark/build 0.24.5 → 0.24.6

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 (34) hide show
  1. package/dist/ArrayField-2QLVE7PT.mjs +19 -0
  2. package/dist/{ArrayField-ZD5UTLNU.css → ArrayField-LGEHKPX7.css} +50 -33
  3. package/dist/{Editor-HOZVZZIZ.mjs → Editor-3EPLDK4J.mjs} +7 -7
  4. package/dist/{ObjectField-SQKROKJM.css → ObjectField-XRKCCMPB.css} +50 -33
  5. package/dist/ObjectField-XXOU2VP4.mjs +19 -0
  6. package/dist/{chunk-VBNE6GK2.mjs → chunk-5JSNFZKX.mjs} +7 -7
  7. package/dist/{chunk-5VWWS4RS.mjs → chunk-AMHAYK37.mjs} +736 -372
  8. package/dist/{chunk-WKMRHPOM.mjs → chunk-KUWVOWUV.mjs} +1 -1
  9. package/dist/{chunk-LBMMY5IM.mjs → chunk-MFTVX2ME.mjs} +1 -1
  10. package/dist/{ArrayField-F7OLZF6U.mjs → chunk-QBCQ7LDT.mjs} +364 -45
  11. package/dist/chunk-TE6MUUVZ.mjs +92 -0
  12. package/dist/{chunk-5OK3IPVN.mjs → chunk-VE6BIQKS.mjs} +1 -1
  13. package/dist/{chunk-H2LU4EW3.mjs → chunk-WDTSUNWU.mjs} +209 -156
  14. package/dist/{chunk-2VS2BST6.mjs → chunk-WH3A7FAR.mjs} +1 -1
  15. package/dist/{chunk-GIUKL443.mjs → chunk-XLNVCM4Q.mjs} +30 -30
  16. package/dist/{chunk-6RPYD5IO.mjs → chunk-YE4FXNJW.mjs} +2 -2
  17. package/dist/{full-65U7W6EN.mjs → full-SYDEKGLJ.mjs} +5 -5
  18. package/dist/index.css +50 -33
  19. package/dist/index.d.mts +37 -1
  20. package/dist/index.d.ts +37 -1
  21. package/dist/index.js +1095 -696
  22. package/dist/index.mjs +17 -10
  23. package/dist/{loaded-3NNC6Q35.mjs → loaded-5JH76RZT.mjs} +2 -2
  24. package/dist/{loaded-2CPFB62H.mjs → loaded-NHGZU7V3.mjs} +2 -2
  25. package/dist/{loaded-GYA4OMNE.mjs → loaded-ON5OAY2P.mjs} +2 -2
  26. package/dist/no-external.css +50 -33
  27. package/dist/no-external.d.mts +1 -1
  28. package/dist/no-external.d.ts +1 -1
  29. package/dist/no-external.js +1095 -696
  30. package/dist/no-external.mjs +17 -10
  31. package/package.json +1 -1
  32. package/dist/ObjectField-4SN4ZYFF.mjs +0 -87
  33. package/dist/chunk-BQW2NTNG.mjs +0 -339
  34. package/dist/chunk-IRJS3HWQ.mjs +0 -60
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  LoadedRichTextMenu
3
- } from "./chunk-6RPYD5IO.mjs";
3
+ } from "./chunk-YE4FXNJW.mjs";
4
4
  import {
5
5
  DragIcon,
6
6
  collisionStore,
7
7
  createDynamicCollisionDetector,
8
8
  setDeep,
9
9
  useSensors
10
- } from "./chunk-BQW2NTNG.mjs";
10
+ } from "./chunk-QBCQ7LDT.mjs";
11
11
  import {
12
12
  AutoFieldPrivate,
13
13
  Button,
@@ -16,7 +16,7 @@ import {
16
16
  fieldContextStore,
17
17
  useContextStore,
18
18
  useSafeId
19
- } from "./chunk-H2LU4EW3.mjs";
19
+ } from "./chunk-WDTSUNWU.mjs";
20
20
  import {
21
21
  RichTextRenderFallback,
22
22
  SlotRender,
@@ -30,7 +30,7 @@ import {
30
30
  ActionBar,
31
31
  IconButton,
32
32
  Loader
33
- } from "./chunk-VBNE6GK2.mjs";
33
+ } from "./chunk-5JSNFZKX.mjs";
34
34
  import {
35
35
  Box,
36
36
  ChartColumn,
@@ -85,7 +85,7 @@ import {
85
85
  useRegisterHistorySlice,
86
86
  useRegisterPermissionsSlice,
87
87
  useResetAutoZoom
88
- } from "./chunk-GIUKL443.mjs";
88
+ } from "./chunk-XLNVCM4Q.mjs";
89
89
  import {
90
90
  getItem,
91
91
  insert,
@@ -126,11 +126,372 @@ var overrideKeys = [
126
126
  "preview"
127
127
  ];
128
128
 
129
+ // components/AutoField/fields/SliderField/index.tsx
130
+ import { jsx, jsxs } from "react/jsx-runtime";
131
+ var SliderField = ({
132
+ value,
133
+ onChange,
134
+ min = 0,
135
+ max = 100,
136
+ step = 1,
137
+ unit = "px",
138
+ defaultValue = 0,
139
+ useUnits = true
140
+ }) => {
141
+ const parseValue = (val) => {
142
+ if (typeof val === "number") return val;
143
+ if (typeof val === "string") return parseFloat(val);
144
+ return 0;
145
+ };
146
+ const inputValue = value !== void 0 && value !== null ? value : defaultValue;
147
+ const numericValue = parseValue(inputValue);
148
+ const extractUnit = (val) => {
149
+ if (!useUnits) return "";
150
+ if (typeof val === "string") {
151
+ const match = val.replace(/[0-9.-]/g, "");
152
+ return match || unit;
153
+ }
154
+ return unit;
155
+ };
156
+ const currentUnit = extractUnit(inputValue);
157
+ const handleChange = (e) => {
158
+ const newVal = parseFloat(e.target.value);
159
+ if (isNaN(newVal)) return;
160
+ if (useUnits) {
161
+ onChange(`${newVal}${currentUnit}`);
162
+ } else {
163
+ onChange(newVal);
164
+ }
165
+ };
166
+ const handleUnitChange = (e) => {
167
+ const newUnit = e.target.value;
168
+ onChange(`${numericValue}${newUnit}`);
169
+ };
170
+ return /* @__PURE__ */ jsxs("div", { style: { padding: "8px 0" }, children: [
171
+ /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: `
172
+ .cb-slider-input {
173
+ -webkit-appearance: none;
174
+ width: 100%;
175
+ height: 3px;
176
+ background: var(--cb-border, #e2e8f0);
177
+ border-radius: 2px;
178
+ outline: none;
179
+ margin: 8px 0;
180
+ }
181
+ .cb-slider-input::-webkit-slider-thumb {
182
+ -webkit-appearance: none;
183
+ appearance: none;
184
+ width: 12px;
185
+ height: 12px;
186
+ background: var(--cb-gold, #d97706);
187
+ cursor: pointer;
188
+ border-radius: 50%;
189
+ border: 2px solid var(--cb-bg-surface, #fff);
190
+ box-shadow: 0 1px 2px rgba(0,0,0,0.1);
191
+ transition: all 0.2s ease;
192
+ }
193
+ .cb-slider-input::-webkit-slider-thumb:hover {
194
+ transform: scale(1.15);
195
+ }
196
+ .cb-number-input:focus, .cb-select-input:focus {
197
+ border-color: var(--cb-gold) !important;
198
+ outline: none !important;
199
+ }
200
+ ` } }),
201
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
202
+ /* @__PURE__ */ jsx(
203
+ "input",
204
+ {
205
+ type: "range",
206
+ min,
207
+ max,
208
+ step,
209
+ value: numericValue,
210
+ onChange: handleChange,
211
+ className: "cb-slider-input",
212
+ style: { flex: 1, cursor: "pointer" }
213
+ }
214
+ ),
215
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "2px" }, children: [
216
+ /* @__PURE__ */ jsx(
217
+ "input",
218
+ {
219
+ type: "number",
220
+ min,
221
+ max,
222
+ step,
223
+ value: numericValue,
224
+ onChange: handleChange,
225
+ className: "cb-number-input",
226
+ style: {
227
+ width: "48px",
228
+ padding: "3px 4px",
229
+ borderRadius: "3px",
230
+ border: "1px solid var(--cb-border, #e2e8f0)",
231
+ background: "var(--cb-bg-base, #f8fafc)",
232
+ color: "var(--cb-silver, #0f172a)",
233
+ fontSize: "10px",
234
+ fontWeight: "500",
235
+ textAlign: "center",
236
+ transition: "all 0.2s ease"
237
+ }
238
+ }
239
+ ),
240
+ useUnits && /* @__PURE__ */ jsxs(
241
+ "select",
242
+ {
243
+ value: currentUnit,
244
+ onChange: handleUnitChange,
245
+ className: "cb-select-input",
246
+ style: {
247
+ width: "42px",
248
+ padding: "2px",
249
+ borderRadius: "3px",
250
+ border: "1px solid var(--cb-border, #e2e8f0)",
251
+ background: "var(--cb-bg-base, #f8fafc)",
252
+ color: "var(--cb-silver, #0f172a)",
253
+ fontSize: "9px",
254
+ fontWeight: "500",
255
+ cursor: "pointer",
256
+ transition: "all 0.2s ease"
257
+ },
258
+ children: [
259
+ /* @__PURE__ */ jsx("option", { value: "px", children: "px" }),
260
+ /* @__PURE__ */ jsx("option", { value: "%", children: "%" }),
261
+ /* @__PURE__ */ jsx("option", { value: "vh", children: "vh" }),
262
+ /* @__PURE__ */ jsx("option", { value: "vw", children: "vw" }),
263
+ /* @__PURE__ */ jsx("option", { value: "em", children: "em" }),
264
+ /* @__PURE__ */ jsx("option", { value: "rem", children: "rem" })
265
+ ]
266
+ }
267
+ )
268
+ ] })
269
+ ] })
270
+ ] });
271
+ };
272
+
273
+ // components/AutoField/fields/ResponsiveSliderField/index.tsx
274
+ import { useState } from "react";
275
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
276
+ var DesktopIcon = () => /* @__PURE__ */ jsxs2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
277
+ /* @__PURE__ */ jsx2("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2", ry: "2" }),
278
+ /* @__PURE__ */ jsx2("line", { x1: "8", y1: "21", x2: "16", y2: "21" }),
279
+ /* @__PURE__ */ jsx2("line", { x1: "12", y1: "17", x2: "12", y2: "21" })
280
+ ] });
281
+ var TabletIcon = () => /* @__PURE__ */ jsxs2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
282
+ /* @__PURE__ */ jsx2("rect", { x: "4", y: "2", width: "16", height: "20", rx: "2", ry: "2" }),
283
+ /* @__PURE__ */ jsx2("line", { x1: "12", y1: "18", x2: "12.01", y2: "18" })
284
+ ] });
285
+ var MobileIcon = () => /* @__PURE__ */ jsxs2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
286
+ /* @__PURE__ */ jsx2("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2", ry: "2" }),
287
+ /* @__PURE__ */ jsx2("line", { x1: "12", y1: "18", x2: "12.01", y2: "18" })
288
+ ] });
289
+ var ResponsiveSliderField = ({
290
+ value = {},
291
+ onChange,
292
+ label,
293
+ unit = "px",
294
+ max = 100,
295
+ min = 0,
296
+ step = 1,
297
+ defaultValue = 0
298
+ }) => {
299
+ const [mode, setMode] = useState("desktop");
300
+ const getCurrentValue = () => {
301
+ const val = value?.[mode];
302
+ if (val !== void 0 && val !== null) {
303
+ return val;
304
+ }
305
+ if (mode === "tablet" && value?.desktop !== void 0) return value.desktop;
306
+ if (mode === "mobile") {
307
+ if (value?.tablet !== void 0) return value.tablet;
308
+ if (value?.desktop !== void 0) return value.desktop;
309
+ }
310
+ if (typeof defaultValue === "number") return defaultValue;
311
+ const def = defaultValue;
312
+ const defVal = def?.[mode];
313
+ if (defVal !== void 0) return defVal;
314
+ if (mode === "tablet" && def?.desktop !== void 0) return def.desktop;
315
+ if (mode === "mobile") {
316
+ if (def?.tablet !== void 0) return def.tablet;
317
+ if (def?.desktop !== void 0) return def.desktop;
318
+ }
319
+ return 0;
320
+ };
321
+ const handleChange = (newVal) => {
322
+ onChange({
323
+ ...value,
324
+ [mode]: newVal
325
+ });
326
+ };
327
+ return /* @__PURE__ */ jsxs2("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: [
328
+ /* @__PURE__ */ jsxs2("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "0px" }, children: [
329
+ label && /* @__PURE__ */ jsxs2("label", { style: {
330
+ fontSize: "10px",
331
+ fontWeight: 500,
332
+ color: "var(--cb-silver-muted, #71717a)",
333
+ display: "flex",
334
+ alignItems: "center",
335
+ gap: "4px"
336
+ }, children: [
337
+ label,
338
+ /* @__PURE__ */ jsxs2("span", { style: { fontSize: "9px", opacity: 0.5, fontWeight: "400" }, children: [
339
+ "(",
340
+ mode,
341
+ ")"
342
+ ] })
343
+ ] }),
344
+ /* @__PURE__ */ jsxs2("div", { style: {
345
+ display: "flex",
346
+ backgroundColor: "var(--cb-bg-panel, #f1f5f9)",
347
+ borderRadius: "4px",
348
+ padding: "1px",
349
+ border: "1px solid var(--cb-border, #e2e8f0)"
350
+ }, children: [
351
+ /* @__PURE__ */ jsx2(
352
+ "button",
353
+ {
354
+ onClick: () => setMode("desktop"),
355
+ style: {
356
+ padding: "2px 5px",
357
+ border: "none",
358
+ background: mode === "desktop" ? "var(--cb-bg-surface, #fff)" : "transparent",
359
+ boxShadow: mode === "desktop" ? "0 1px 2px rgba(0,0,0,0.05)" : "none",
360
+ borderRadius: "3px",
361
+ cursor: "pointer",
362
+ color: mode === "desktop" ? "var(--cb-gold, #d97706)" : "var(--cb-silver-muted, #a1a1aa)",
363
+ display: "flex",
364
+ alignItems: "center",
365
+ transition: "all 0.1s ease"
366
+ },
367
+ title: "Desktop",
368
+ children: /* @__PURE__ */ jsx2(DesktopIcon, {})
369
+ }
370
+ ),
371
+ /* @__PURE__ */ jsx2(
372
+ "button",
373
+ {
374
+ onClick: () => setMode("tablet"),
375
+ style: {
376
+ padding: "2px 5px",
377
+ border: "none",
378
+ background: mode === "tablet" ? "var(--cb-bg-surface, #fff)" : "transparent",
379
+ boxShadow: mode === "tablet" ? "0 1px 2px rgba(0,0,0,0.05)" : "none",
380
+ borderRadius: "3px",
381
+ cursor: "pointer",
382
+ color: mode === "tablet" ? "var(--cb-gold, #d97706)" : "var(--cb-silver-muted, #a1a1aa)",
383
+ display: "flex",
384
+ alignItems: "center",
385
+ transition: "all 0.1s ease"
386
+ },
387
+ title: "Tablet",
388
+ children: /* @__PURE__ */ jsx2(TabletIcon, {})
389
+ }
390
+ ),
391
+ /* @__PURE__ */ jsx2(
392
+ "button",
393
+ {
394
+ onClick: () => setMode("mobile"),
395
+ style: {
396
+ padding: "2px 5px",
397
+ border: "none",
398
+ background: mode === "mobile" ? "var(--cb-bg-surface, #fff)" : "transparent",
399
+ boxShadow: mode === "mobile" ? "0 1px 2px rgba(0,0,0,0.05)" : "none",
400
+ borderRadius: "3px",
401
+ cursor: "pointer",
402
+ color: mode === "mobile" ? "var(--cb-gold, #d97706)" : "var(--cb-silver-muted, #a1a1aa)",
403
+ display: "flex",
404
+ alignItems: "center",
405
+ transition: "all 0.1s ease"
406
+ },
407
+ title: "Mobile",
408
+ children: /* @__PURE__ */ jsx2(MobileIcon, {})
409
+ }
410
+ )
411
+ ] })
412
+ ] }),
413
+ /* @__PURE__ */ jsx2(
414
+ SliderField,
415
+ {
416
+ value: getCurrentValue(),
417
+ onChange: handleChange,
418
+ unit,
419
+ max,
420
+ min,
421
+ step,
422
+ useUnits: false
423
+ }
424
+ )
425
+ ] });
426
+ };
427
+
428
+ // components/AutoField/fields/ColorPickerField/index.tsx
429
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
430
+ var ColorPickerField = ({ value, onChange }) => {
431
+ const safeValue = value || "#ffffff";
432
+ return /* @__PURE__ */ jsxs3("div", { style: { padding: "4px 0", display: "flex", gap: "6px", alignItems: "center" }, children: [
433
+ /* @__PURE__ */ jsx3("div", { style: {
434
+ position: "relative",
435
+ width: "28px",
436
+ height: "28px",
437
+ borderRadius: "3px",
438
+ border: "1px solid var(--cb-border, #e2e8f0)",
439
+ overflow: "hidden",
440
+ flexShrink: 0,
441
+ background: "var(--cb-bg-base, #f8fafc)"
442
+ }, children: /* @__PURE__ */ jsx3(
443
+ "input",
444
+ {
445
+ type: "color",
446
+ value: safeValue.startsWith("#") ? safeValue : "#000000",
447
+ onChange: (e) => {
448
+ if (e.target.value !== value) {
449
+ onChange(e.target.value);
450
+ }
451
+ },
452
+ style: {
453
+ position: "absolute",
454
+ top: "-50%",
455
+ left: "-50%",
456
+ width: "200%",
457
+ height: "200%",
458
+ cursor: "pointer",
459
+ border: "none",
460
+ padding: 0,
461
+ margin: 0
462
+ }
463
+ }
464
+ ) }),
465
+ /* @__PURE__ */ jsx3(
466
+ "input",
467
+ {
468
+ type: "text",
469
+ value: value || "",
470
+ placeholder: "#RRGGBB",
471
+ onChange: (e) => onChange(e.target.value),
472
+ style: {
473
+ flex: 1,
474
+ padding: "4px 8px",
475
+ borderRadius: "3px",
476
+ border: "1px solid var(--cb-border, #e2e8f0)",
477
+ background: "var(--cb-bg-base, #f8fafc)",
478
+ color: "var(--cb-silver, #0f172a)",
479
+ fontSize: "11px",
480
+ fontFamily: "var(--cb-font-mono, 'JetBrains Mono', monospace)",
481
+ fontWeight: "500",
482
+ height: "28px",
483
+ transition: "all 0.1s ease"
484
+ }
485
+ }
486
+ )
487
+ ] });
488
+ };
489
+
129
490
  // css-module:/home/crediblemark/Project/Credibuild/components/Drawer/styles.module.css#css-module
130
491
  var styles_module_default = { "Drawer": "_Drawer_e1509_1", "Drawer-draggable": "_Drawer-draggable_e1509_7", "Drawer-draggableBg": "_Drawer-draggableBg_e1509_11", "DrawerItem-draggable": "_DrawerItem-draggable_e1509_21", "DrawerItem--disabled": "_DrawerItem--disabled_e1509_34", "DrawerItem": "_DrawerItem_e1509_21", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_e1509_43", "DrawerItem-default": "_DrawerItem-default_e1509_44", "DrawerItem-name": "_DrawerItem-name_e1509_61" };
131
492
 
132
493
  // components/Drawer/index.tsx
133
- import { useMemo, useState } from "react";
494
+ import { useMemo, useState as useState2 } from "react";
134
495
 
135
496
  // components/DragDropContext/context.tsx
136
497
  import {
@@ -171,7 +532,7 @@ function useDragListener(type, fn, deps = []) {
171
532
 
172
533
  // components/Drawer/index.tsx
173
534
  import { useDraggable, useDroppable } from "@dnd-kit/react";
174
- import { jsx, jsxs } from "react/jsx-runtime";
535
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
175
536
  var getClassName = get_class_name_factory_default("Drawer", styles_module_default);
176
537
  var getClassNameItem = get_class_name_factory_default("DrawerItem", styles_module_default);
177
538
  var DrawerItemInner = ({
@@ -182,10 +543,10 @@ var DrawerItemInner = ({
182
543
  isDragDisabled
183
544
  }) => {
184
545
  const CustomInner = useMemo(
185
- () => children || (({ children: children2 }) => /* @__PURE__ */ jsx("div", { className: getClassNameItem("default"), children: children2 })),
546
+ () => children || (({ children: children2 }) => /* @__PURE__ */ jsx4("div", { className: getClassNameItem("default"), children: children2 })),
186
547
  [children]
187
548
  );
188
- return /* @__PURE__ */ jsx(
549
+ return /* @__PURE__ */ jsx4(
189
550
  "div",
190
551
  {
191
552
  className: getClassNameItem({ disabled: isDragDisabled }),
@@ -193,9 +554,9 @@ var DrawerItemInner = ({
193
554
  onMouseDown: (e) => e.preventDefault(),
194
555
  "data-testid": dragRef ? `drawer-item:${name}` : "",
195
556
  "data-credbuild-drawer-item": true,
196
- children: /* @__PURE__ */ jsx(CustomInner, { name, children: /* @__PURE__ */ jsx("div", { className: getClassNameItem("draggableWrapper"), children: /* @__PURE__ */ jsxs("div", { className: getClassNameItem("draggable"), children: [
197
- /* @__PURE__ */ jsx("div", { className: getClassNameItem("name"), children: label ?? name }),
198
- /* @__PURE__ */ jsx("div", { className: getClassNameItem("icon"), children: /* @__PURE__ */ jsx(DragIcon, {}) })
557
+ children: /* @__PURE__ */ jsx4(CustomInner, { name, children: /* @__PURE__ */ jsx4("div", { className: getClassNameItem("draggableWrapper"), children: /* @__PURE__ */ jsxs4("div", { className: getClassNameItem("draggable"), children: [
558
+ /* @__PURE__ */ jsx4("div", { className: getClassNameItem("name"), children: label ?? name }),
559
+ /* @__PURE__ */ jsx4("div", { className: getClassNameItem("icon"), children: /* @__PURE__ */ jsx4(DragIcon, {}) })
199
560
  ] }) }) })
200
561
  }
201
562
  );
@@ -213,9 +574,9 @@ var DrawerItemDraggable = ({
213
574
  disabled: isDragDisabled,
214
575
  type: "drawer"
215
576
  });
216
- return /* @__PURE__ */ jsxs("div", { className: getClassName("draggable"), children: [
217
- /* @__PURE__ */ jsx("div", { className: getClassName("draggableBg"), children: /* @__PURE__ */ jsx(DrawerItemInner, { name, label, children }) }),
218
- /* @__PURE__ */ jsx("div", { className: getClassName("draggableFg"), children: /* @__PURE__ */ jsx(
577
+ return /* @__PURE__ */ jsxs4("div", { className: getClassName("draggable"), children: [
578
+ /* @__PURE__ */ jsx4("div", { className: getClassName("draggableBg"), children: /* @__PURE__ */ jsx4(DrawerItemInner, { name, label, children }) }),
579
+ /* @__PURE__ */ jsx4("div", { className: getClassName("draggableFg"), children: /* @__PURE__ */ jsx4(
219
580
  DrawerItemInner,
220
581
  {
221
582
  name,
@@ -236,7 +597,7 @@ var DrawerItem = ({
236
597
  isDragDisabled
237
598
  }) => {
238
599
  const resolvedId = id || name;
239
- const [dynamicId, setDynamicId] = useState(generateId(resolvedId));
600
+ const [dynamicId, setDynamicId] = useState2(generateId(resolvedId));
240
601
  if (typeof index !== "undefined") {
241
602
  console.error(
242
603
  "Warning: The `index` prop on Drawer.Item is deprecated and no longer required."
@@ -249,7 +610,7 @@ var DrawerItem = ({
249
610
  },
250
611
  [resolvedId]
251
612
  );
252
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
613
+ return /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
253
614
  DrawerItemDraggable,
254
615
  {
255
616
  name,
@@ -282,7 +643,7 @@ var Drawer = ({
282
643
  collisionPriority: 0
283
644
  // Never collide with this, but we use it so NestedDroppablePlugin respects the Drawer
284
645
  });
285
- return /* @__PURE__ */ jsx(
646
+ return /* @__PURE__ */ jsx4(
286
647
  "div",
287
648
  {
288
649
  className: getClassName(),
@@ -362,7 +723,7 @@ import {
362
723
  useLayoutEffect,
363
724
  useMemo as useMemo3,
364
725
  useRef as useRef2,
365
- useState as useState2,
726
+ useState as useState3,
366
727
  useTransition
367
728
  } from "react";
368
729
 
@@ -379,7 +740,7 @@ import {
379
740
  useMemo as useMemo2
380
741
  } from "react";
381
742
  import { createStore } from "zustand";
382
- import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
743
+ import { Fragment, jsx as jsx5 } from "react/jsx-runtime";
383
744
  var dropZoneContext = createContext2(null);
384
745
  var ZoneStoreContext = createContext2(
385
746
  createStore(() => ({
@@ -402,7 +763,7 @@ var ZoneStoreProvider = ({
402
763
  children,
403
764
  store
404
765
  }) => {
405
- return /* @__PURE__ */ jsx2(ZoneStoreContext.Provider, { value: store, children });
766
+ return /* @__PURE__ */ jsx5(ZoneStoreContext.Provider, { value: store, children });
406
767
  };
407
768
  var DropZoneProvider = ({
408
769
  children,
@@ -425,7 +786,7 @@ var DropZoneProvider = ({
425
786
  }),
426
787
  [value, registerZone]
427
788
  );
428
- return /* @__PURE__ */ jsx2(Fragment, { children: memoValue && /* @__PURE__ */ jsx2(dropZoneContext.Provider, { value: memoValue, children }) });
789
+ return /* @__PURE__ */ jsx5(Fragment, { children: memoValue && /* @__PURE__ */ jsx5(dropZoneContext.Provider, { value: memoValue, children }) });
429
790
  };
430
791
 
431
792
  // lib/get-deep-scroll-position.ts
@@ -496,7 +857,7 @@ function assignRefs(refs, node) {
496
857
  }
497
858
 
498
859
  // components/DraggableComponent/index.tsx
499
- import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
860
+ import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
500
861
  var getClassName2 = get_class_name_factory_default("DraggableComponent", styles_module_default2);
501
862
  var DEBUG = false;
502
863
  var MEASURE_EVERY_MS = 100;
@@ -508,16 +869,16 @@ var DefaultActionBar = ({
508
869
  label,
509
870
  children,
510
871
  parentAction
511
- }) => /* @__PURE__ */ jsxs2(ActionBar, { children: [
512
- /* @__PURE__ */ jsxs2(ActionBar.Group, { children: [
872
+ }) => /* @__PURE__ */ jsxs5(ActionBar, { children: [
873
+ /* @__PURE__ */ jsxs5(ActionBar.Group, { children: [
513
874
  parentAction,
514
- label && /* @__PURE__ */ jsx3(ActionBar.Label, { label })
875
+ label && /* @__PURE__ */ jsx6(ActionBar.Label, { label })
515
876
  ] }),
516
- /* @__PURE__ */ jsx3(ActionBar.Group, { children })
877
+ /* @__PURE__ */ jsx6(ActionBar.Group, { children })
517
878
  ] });
518
879
  var DefaultOverlay = ({
519
880
  children
520
- }) => /* @__PURE__ */ jsx3(Fragment2, { children });
881
+ }) => /* @__PURE__ */ jsx6(Fragment2, { children });
521
882
  var DraggableComponent = ({
522
883
  children,
523
884
  depth,
@@ -545,7 +906,7 @@ var DraggableComponent = ({
545
906
  const iframe = useAppStore((s) => s.iframe);
546
907
  const lastMeasureRef = useRef2(0);
547
908
  const ctx = useContext2(dropZoneContext);
548
- const [localZones, setLocalZones] = useState2({});
909
+ const [localZones, setLocalZones] = useState3({});
549
910
  const registerLocalZone = useCallback3(
550
911
  (zoneCompound2, active) => {
551
912
  ctx?.registerLocalZone?.(zoneCompound2, active);
@@ -578,7 +939,7 @@ var DraggableComponent = ({
578
939
  })
579
940
  );
580
941
  const zoneStore = useContext2(ZoneStoreContext);
581
- const [dragAxis, setDragAxis] = useState2(userDragAxis || autoDragAxis);
942
+ const [dragAxis, setDragAxis] = useState3(userDragAxis || autoDragAxis);
582
943
  const dynamicCollisionDetector = useMemo3(
583
944
  () => createDynamicCollisionDetector(dragAxis),
584
945
  [dragAxis]
@@ -627,7 +988,7 @@ var DraggableComponent = ({
627
988
  }
628
989
  return cleanup;
629
990
  }, [permissions.drag, zoneCompound, sortable.draggable, sortable.droppable, zoneStore]);
630
- const [, setRerender] = useState2(0);
991
+ const [, setRerender] = useState3(0);
631
992
  const ref = useRef2(null);
632
993
  const refSetter = useCallback3(
633
994
  (el) => {
@@ -642,7 +1003,7 @@ var DraggableComponent = ({
642
1003
  },
643
1004
  [itemRef, sortableRef]
644
1005
  );
645
- const [portalEl, setPortalEl] = useState2();
1006
+ const [portalEl, setPortalEl] = useState3();
646
1007
  useEffect2(() => {
647
1008
  setPortalEl(
648
1009
  iframe.enabled ? ref.current?.ownerDocument.body : ref.current?.closest("[data-credbuild-preview]") ?? document.body
@@ -679,7 +1040,7 @@ var DraggableComponent = ({
679
1040
  };
680
1041
  return style2;
681
1042
  }, [iframe.enabled]);
682
- const [style, setStyle] = useState2();
1043
+ const [style, setStyle] = useState3();
683
1044
  const lastRectRef = useRef2(null);
684
1045
  const syncRafRef = useRef2(null);
685
1046
  const sync = useCallback3(() => {
@@ -810,7 +1171,7 @@ var DraggableComponent = ({
810
1171
  zone: zoneCompound
811
1172
  });
812
1173
  }, [index, zoneCompound, dispatch]);
813
- const [hover, setHover] = useState2(false);
1174
+ const [hover, setHover] = useState3(false);
814
1175
  const indicativeHover = useContextStore(
815
1176
  ZoneStoreContext,
816
1177
  (s) => s.hoveringComponent === id
@@ -862,8 +1223,8 @@ var DraggableComponent = ({
862
1223
  zoneStore,
863
1224
  id
864
1225
  ]);
865
- const [isVisible, setIsVisible] = useState2(false);
866
- const [dragFinished, setDragFinished] = useState2(true);
1226
+ const [isVisible, setIsVisible] = useState3(false);
1227
+ const [dragFinished, setDragFinished] = useState3(true);
867
1228
  const [_, startTransition] = useTransition();
868
1229
  useEffect2(() => {
869
1230
  startTransition(() => {
@@ -876,7 +1237,7 @@ var DraggableComponent = ({
876
1237
  }
877
1238
  });
878
1239
  }, [hover, indicativeHover, isSelected, iframe, scheduleSync]);
879
- const [thisWasDragging, setThisWasDragging] = useState2(false);
1240
+ const [thisWasDragging, setThisWasDragging] = useState3(false);
880
1241
  const onDragFinished = useOnDragFinished(
881
1242
  useCallback3(
882
1243
  (finished) => {
@@ -977,7 +1338,7 @@ var DraggableComponent = ({
977
1338
  setDragAxis(autoDragAxis);
978
1339
  }, [ref, userDragAxis, autoDragAxis]);
979
1340
  const parentAction = useMemo3(
980
- () => ctx?.areaId && ctx?.areaId !== "root" && /* @__PURE__ */ jsx3(ActionBar.Action, { onClick: onSelectParent, label: "Select parent", children: /* @__PURE__ */ jsx3(CornerLeftUp, { size: 16 }) }),
1341
+ () => ctx?.areaId && ctx?.areaId !== "root" && /* @__PURE__ */ jsx6(ActionBar.Action, { onClick: onSelectParent, label: "Select parent", children: /* @__PURE__ */ jsx6(CornerLeftUp, { size: 16 }) }),
981
1342
  [ctx?.areaId, onSelectParent]
982
1343
  );
983
1344
  const nextContextValue = useMemo3(
@@ -1004,9 +1365,9 @@ var DraggableComponent = ({
1004
1365
  (s) => s.currentRichText?.inlineComponentId === id ? s.currentRichText : null
1005
1366
  );
1006
1367
  const hasNormalActions = permissions.duplicate || permissions.delete;
1007
- return /* @__PURE__ */ jsxs2(DropZoneProvider, { value: nextContextValue, children: [
1368
+ return /* @__PURE__ */ jsxs5(DropZoneProvider, { value: nextContextValue, children: [
1008
1369
  dragFinished && isVisible && createPortal(
1009
- /* @__PURE__ */ jsxs2(
1370
+ /* @__PURE__ */ jsxs5(
1010
1371
  "div",
1011
1372
  {
1012
1373
  className: getClassName2({
@@ -1018,15 +1379,15 @@ var DraggableComponent = ({
1018
1379
  "data-credbuild-overlay": true,
1019
1380
  children: [
1020
1381
  debug,
1021
- isLoading && /* @__PURE__ */ jsx3("div", { className: getClassName2("loadingOverlay"), children: /* @__PURE__ */ jsx3(Loader, {}) }),
1022
- /* @__PURE__ */ jsx3(
1382
+ isLoading && /* @__PURE__ */ jsx6("div", { className: getClassName2("loadingOverlay"), children: /* @__PURE__ */ jsx6(Loader, {}) }),
1383
+ /* @__PURE__ */ jsx6(
1023
1384
  "div",
1024
1385
  {
1025
1386
  className: getClassName2("actionsOverlay"),
1026
1387
  style: {
1027
1388
  top: actionsOverlayTop / zoom
1028
1389
  },
1029
- children: /* @__PURE__ */ jsx3(
1390
+ children: /* @__PURE__ */ jsx6(
1030
1391
  "div",
1031
1392
  {
1032
1393
  className: getClassName2("actions"),
@@ -1038,14 +1399,14 @@ var DraggableComponent = ({
1038
1399
  paddingRight: actionsSide
1039
1400
  },
1040
1401
  ref: syncActionsPosition,
1041
- children: /* @__PURE__ */ jsxs2(
1402
+ children: /* @__PURE__ */ jsxs5(
1042
1403
  CustomActionBar,
1043
1404
  {
1044
1405
  parentAction,
1045
1406
  label: DEBUG ? id : label,
1046
1407
  children: [
1047
- richText && /* @__PURE__ */ jsxs2(Fragment2, { children: [
1048
- /* @__PURE__ */ jsx3(
1408
+ richText && /* @__PURE__ */ jsxs5(Fragment2, { children: [
1409
+ /* @__PURE__ */ jsx6(
1049
1410
  LoadedRichTextMenu,
1050
1411
  {
1051
1412
  editor: richText.editor,
@@ -1054,10 +1415,10 @@ var DraggableComponent = ({
1054
1415
  readOnly: false
1055
1416
  }
1056
1417
  ),
1057
- hasNormalActions && /* @__PURE__ */ jsx3(ActionBar.Separator, {})
1418
+ hasNormalActions && /* @__PURE__ */ jsx6(ActionBar.Separator, {})
1058
1419
  ] }),
1059
- permissions.duplicate && /* @__PURE__ */ jsx3(ActionBar.Action, { onClick: onDuplicate, label: "Duplicate", children: /* @__PURE__ */ jsx3(Copy, { size: 16 }) }),
1060
- permissions.delete && /* @__PURE__ */ jsx3(ActionBar.Action, { onClick: onDelete, label: "Delete", children: /* @__PURE__ */ jsx3(Trash, { size: 16 }) })
1420
+ permissions.duplicate && /* @__PURE__ */ jsx6(ActionBar.Action, { onClick: onDuplicate, label: "Duplicate", children: /* @__PURE__ */ jsx6(Copy, { size: 16 }) }),
1421
+ permissions.delete && /* @__PURE__ */ jsx6(ActionBar.Action, { onClick: onDelete, label: "Delete", children: /* @__PURE__ */ jsx6(Trash, { size: 16 }) })
1061
1422
  ]
1062
1423
  }
1063
1424
  )
@@ -1065,14 +1426,14 @@ var DraggableComponent = ({
1065
1426
  )
1066
1427
  }
1067
1428
  ),
1068
- /* @__PURE__ */ jsx3("div", { className: getClassName2("overlayWrapper"), children: /* @__PURE__ */ jsx3(
1429
+ /* @__PURE__ */ jsx6("div", { className: getClassName2("overlayWrapper"), children: /* @__PURE__ */ jsx6(
1069
1430
  CustomOverlay,
1070
1431
  {
1071
1432
  componentId: id,
1072
1433
  componentType,
1073
1434
  hover,
1074
1435
  isSelected,
1075
- children: /* @__PURE__ */ jsx3("div", { className: getClassName2("overlay") })
1436
+ children: /* @__PURE__ */ jsx6("div", { className: getClassName2("overlay") })
1076
1437
  }
1077
1438
  ) })
1078
1439
  ]
@@ -1092,7 +1453,7 @@ import { useDroppable as useDroppable2 } from "@dnd-kit/react";
1092
1453
  import { pointerIntersection } from "@dnd-kit/collision";
1093
1454
 
1094
1455
  // components/DropZone/lib/use-min-empty-height.ts
1095
- import { useCallback as useCallback4, useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
1456
+ import { useCallback as useCallback4, useEffect as useEffect3, useRef as useRef3, useState as useState4 } from "react";
1096
1457
  var getNumItems = (appStore, zoneCompound) => appStore.getState().state.indexes.zones[zoneCompound].contentIds.length;
1097
1458
  var useMinEmptyHeight = ({
1098
1459
  zoneCompound,
@@ -1100,8 +1461,8 @@ var useMinEmptyHeight = ({
1100
1461
  ref
1101
1462
  }) => {
1102
1463
  const appStore = useAppStoreApi();
1103
- const [prevHeight, setPrevHeight] = useState3(0);
1104
- const [isAnimating, setIsAnimating] = useState3(false);
1464
+ const [prevHeight, setPrevHeight] = useState4(0);
1465
+ const [isAnimating, setIsAnimating] = useState4(false);
1105
1466
  const { draggedItem, isZone } = useContextStore(ZoneStoreContext, (s) => {
1106
1467
  return {
1107
1468
  draggedItem: s.draggedItem?.data.zone === zoneCompound ? s.draggedItem : null,
@@ -1155,7 +1516,7 @@ var useMinEmptyHeight = ({
1155
1516
  };
1156
1517
 
1157
1518
  // components/DropZone/lib/use-content-with-preview.ts
1158
- import { useCallback as useCallback6, useContext as useContext3, useEffect as useEffect4, useState as useState4 } from "react";
1519
+ import { useCallback as useCallback6, useContext as useContext3, useEffect as useEffect4, useState as useState5 } from "react";
1159
1520
 
1160
1521
  // lib/dnd/use-rendered-callback.ts
1161
1522
  import { useDragDropManager } from "@dnd-kit/react";
@@ -1179,8 +1540,8 @@ var useContentIdsWithPreview = (contentIds, zoneCompound) => {
1179
1540
  (s) => s.previewIndex[zoneCompound]
1180
1541
  );
1181
1542
  const isDragging = useAppStore((s) => s.state.ui.isDragging);
1182
- const [contentIdsWithPreview, setContentIdsWithPreview] = useState4(contentIds);
1183
- const [localPreview, setLocalPreview] = useState4(
1543
+ const [contentIdsWithPreview, setContentIdsWithPreview] = useState5(contentIds);
1544
+ const [localPreview, setLocalPreview] = useState5(
1184
1545
  preview
1185
1546
  );
1186
1547
  const updateContent = useRenderedCallback(
@@ -1233,13 +1594,13 @@ var useContentIdsWithPreview = (contentIds, zoneCompound) => {
1233
1594
  };
1234
1595
 
1235
1596
  // components/DropZone/lib/use-drag-axis.ts
1236
- import { useCallback as useCallback7, useEffect as useEffect5, useState as useState5 } from "react";
1597
+ import { useCallback as useCallback7, useEffect as useEffect5, useState as useState6 } from "react";
1237
1598
  var GRID_DRAG_AXIS = "dynamic";
1238
1599
  var FLEX_ROW_DRAG_AXIS = "x";
1239
1600
  var DEFAULT_DRAG_AXIS = "y";
1240
1601
  var useDragAxis = (ref, collisionAxis) => {
1241
1602
  const status = useAppStore((s) => s.status);
1242
- const [dragAxis, setDragAxis] = useState5(
1603
+ const [dragAxis, setDragAxis] = useState6(
1243
1604
  collisionAxis || DEFAULT_DRAG_AXIS
1244
1605
  );
1245
1606
  const calculateDragAxis = useCallback7(() => {
@@ -1271,8 +1632,8 @@ var useDragAxis = (ref, collisionAxis) => {
1271
1632
  import { useShallow as useShallow3 } from "zustand/react/shallow";
1272
1633
 
1273
1634
  // components/Render/context.tsx
1274
- import React2 from "react";
1275
- var renderContext = React2.createContext({
1635
+ import React3 from "react";
1636
+ var renderContext = React3.createContext({
1276
1637
  config: { components: {} },
1277
1638
  data: { root: {}, content: [] },
1278
1639
  metadata: {}
@@ -1280,7 +1641,7 @@ var renderContext = React2.createContext({
1280
1641
 
1281
1642
  // components/SlotRender/index.tsx
1282
1643
  import { useShallow as useShallow2 } from "zustand/react/shallow";
1283
- import { jsx as jsx4 } from "react/jsx-runtime";
1644
+ import { jsx as jsx7 } from "react/jsx-runtime";
1284
1645
  var ContextSlotRender = ({
1285
1646
  componentId,
1286
1647
  zone
@@ -1294,7 +1655,7 @@ var ContextSlotRender = ({
1294
1655
  return contentIds.map((contentId) => indexes.nodes[contentId].flatData);
1295
1656
  })
1296
1657
  );
1297
- return /* @__PURE__ */ jsx4(
1658
+ return /* @__PURE__ */ jsx7(
1298
1659
  SlotRenderPure,
1299
1660
  {
1300
1661
  content: slotContent,
@@ -1347,7 +1708,7 @@ function useFieldTransformsTracked(config, item, transforms, readOnly, forceRead
1347
1708
  }
1348
1709
 
1349
1710
  // components/InlineTextField/index.tsx
1350
- import { memo, useEffect as useEffect6, useRef as useRef5, useState as useState6 } from "react";
1711
+ import { memo, useEffect as useEffect6, useRef as useRef5, useState as useState7 } from "react";
1351
1712
 
1352
1713
  // css-module:/home/crediblemark/Project/Credibuild/components/InlineTextField/styles.module.css#css-module
1353
1714
  var styles_module_default4 = { "InlineTextField": "_InlineTextField_104qp_1" };
@@ -1362,7 +1723,7 @@ var getSelectorForId = (state, id) => {
1362
1723
  };
1363
1724
 
1364
1725
  // components/InlineTextField/index.tsx
1365
- import { jsx as jsx5 } from "react/jsx-runtime";
1726
+ import { jsx as jsx8 } from "react/jsx-runtime";
1366
1727
  var getClassName3 = get_class_name_factory_default("InlineTextField", styles_module_default4);
1367
1728
  var InlineTextFieldInternal = ({
1368
1729
  propPath,
@@ -1419,9 +1780,9 @@ var InlineTextFieldInternal = ({
1419
1780
  };
1420
1781
  }
1421
1782
  }, [appStoreApi, ref, value, disableLineBreaks, componentId, propPath]);
1422
- const [isHovering, setIsHovering] = useState6(false);
1423
- const [isFocused, setIsFocused] = useState6(false);
1424
- return /* @__PURE__ */ jsx5(
1783
+ const [isHovering, setIsHovering] = useState7(false);
1784
+ const [isFocused, setIsFocused] = useState7(false);
1785
+ return /* @__PURE__ */ jsx8(
1425
1786
  "span",
1426
1787
  {
1427
1788
  className: getClassName3(),
@@ -1460,11 +1821,11 @@ var InlineTextFieldInternal = ({
1460
1821
  var InlineTextField = memo(InlineTextFieldInternal);
1461
1822
 
1462
1823
  // lib/field-transforms/default-transforms/inline-text-transform.tsx
1463
- import { jsx as jsx6 } from "react/jsx-runtime";
1824
+ import { jsx as jsx9 } from "react/jsx-runtime";
1464
1825
  var getInlineTextTransform = () => ({
1465
1826
  text: ({ value, componentId, field, propPath, isReadOnly }) => {
1466
1827
  if (field.contentEditable) {
1467
- return /* @__PURE__ */ jsx6(
1828
+ return /* @__PURE__ */ jsx9(
1468
1829
  InlineTextField,
1469
1830
  {
1470
1831
  propPath,
@@ -1479,7 +1840,7 @@ var getInlineTextTransform = () => ({
1479
1840
  },
1480
1841
  textarea: ({ value, componentId, field, propPath, isReadOnly }) => {
1481
1842
  if (field.contentEditable) {
1482
- return /* @__PURE__ */ jsx6(
1843
+ return /* @__PURE__ */ jsx9(
1483
1844
  InlineTextField,
1484
1845
  {
1485
1846
  propPath,
@@ -1493,7 +1854,7 @@ var getInlineTextTransform = () => ({
1493
1854
  },
1494
1855
  custom: ({ value, componentId, field, propPath, isReadOnly }) => {
1495
1856
  if (field.contentEditable && typeof value === "string") {
1496
- return /* @__PURE__ */ jsx6(
1857
+ return /* @__PURE__ */ jsx9(
1497
1858
  InlineTextField,
1498
1859
  {
1499
1860
  propPath,
@@ -1516,9 +1877,9 @@ import {
1516
1877
  lazy,
1517
1878
  Suspense
1518
1879
  } from "react";
1519
- import { jsx as jsx7 } from "react/jsx-runtime";
1880
+ import { jsx as jsx10 } from "react/jsx-runtime";
1520
1881
  var Editor = lazy(
1521
- () => import("./Editor-HOZVZZIZ.mjs").then((m) => ({
1882
+ () => import("./Editor-3EPLDK4J.mjs").then((m) => ({
1522
1883
  default: m.Editor
1523
1884
  }))
1524
1885
  );
@@ -1595,7 +1956,7 @@ var InlineEditorWrapper = memo2(
1595
1956
  [field, componentId, appStoreApi, id]
1596
1957
  );
1597
1958
  if (!field.contentEditable)
1598
- return /* @__PURE__ */ jsx7(Suspense, { fallback: /* @__PURE__ */ jsx7(RichTextRenderFallback, { content: value }), children: /* @__PURE__ */ jsx7(RichTextRender, { content: value, field }) });
1959
+ return /* @__PURE__ */ jsx10(Suspense, { fallback: /* @__PURE__ */ jsx10(RichTextRenderFallback, { content: value }), children: /* @__PURE__ */ jsx10(RichTextRender, { content: value, field }) });
1599
1960
  const editorProps = {
1600
1961
  content: value,
1601
1962
  onChange: handleChange,
@@ -1605,13 +1966,13 @@ var InlineEditorWrapper = memo2(
1605
1966
  id,
1606
1967
  name: propPath
1607
1968
  };
1608
- return /* @__PURE__ */ jsx7(
1969
+ return /* @__PURE__ */ jsx10(
1609
1970
  "div",
1610
1971
  {
1611
1972
  ref: portalRef,
1612
1973
  onClick: onClickHandler,
1613
1974
  onClickCapture: onClickCaptureHandler,
1614
- children: /* @__PURE__ */ jsx7(Suspense, { fallback: /* @__PURE__ */ jsx7(EditorFallback, { ...editorProps }), children: /* @__PURE__ */ jsx7(Editor, { ...editorProps }) })
1975
+ children: /* @__PURE__ */ jsx10(Suspense, { fallback: /* @__PURE__ */ jsx10(EditorFallback, { ...editorProps }), children: /* @__PURE__ */ jsx10(Editor, { ...editorProps }) })
1615
1976
  }
1616
1977
  );
1617
1978
  }
@@ -1621,10 +1982,10 @@ var getRichTextTransform = () => ({
1621
1982
  richtext: ({ value, componentId, field, propPath, isReadOnly }) => {
1622
1983
  const { contentEditable = true, tiptap } = field;
1623
1984
  if (contentEditable === false || isReadOnly) {
1624
- return /* @__PURE__ */ jsx7(RichTextRender, { content: value, field });
1985
+ return /* @__PURE__ */ jsx10(RichTextRender, { content: value, field });
1625
1986
  }
1626
1987
  const id = `${componentId}_${field.type}_${propPath}`;
1627
- return /* @__PURE__ */ jsx7(
1988
+ return /* @__PURE__ */ jsx10(
1628
1989
  InlineEditorWrapper,
1629
1990
  {
1630
1991
  value,
@@ -1666,12 +2027,12 @@ function shallowEqual(obj1, obj2, keysToIgnore = []) {
1666
2027
  }
1667
2028
 
1668
2029
  // components/MemoizeComponent/index.tsx
1669
- import { jsx as jsx8 } from "react/jsx-runtime";
2030
+ import { jsx as jsx11 } from "react/jsx-runtime";
1670
2031
  var RenderComponent = ({
1671
2032
  Component,
1672
2033
  componentProps: renderProps
1673
2034
  }) => {
1674
- return /* @__PURE__ */ jsx8(Component, { ...renderProps });
2035
+ return /* @__PURE__ */ jsx11(Component, { ...renderProps });
1675
2036
  };
1676
2037
  var MemoizeComponent = memo3(RenderComponent, (prev, next) => {
1677
2038
  let credbuildEquals = true;
@@ -1711,7 +2072,7 @@ var getFrame = () => {
1711
2072
  };
1712
2073
 
1713
2074
  // components/DropZone/VirtualizedDropZone.tsx
1714
- import { Fragment as Fragment3, jsx as jsx9 } from "react/jsx-runtime";
2075
+ import { Fragment as Fragment3, jsx as jsx12 } from "react/jsx-runtime";
1715
2076
  var ROOT_ZONE_VIRTUALIZATION_OVERSCAN = 5;
1716
2077
  var DEFAULT_VIRTUALIZED_ITEM_HEIGHT = 320;
1717
2078
  var measuredItemHeights = /* @__PURE__ */ new Map();
@@ -1849,7 +2210,7 @@ var VirtualizedDropZone = ({
1849
2210
  const gapSize = Math.max(virtualItem.start - previousEnd, 0);
1850
2211
  if (gapSize > 0) {
1851
2212
  items.push(
1852
- /* @__PURE__ */ jsx9(
2213
+ /* @__PURE__ */ jsx12(
1853
2214
  "div",
1854
2215
  {
1855
2216
  style: { height: `${gapSize}px` }
@@ -1871,7 +2232,7 @@ var VirtualizedDropZone = ({
1871
2232
  const trailingGap = Math.max(totalSize - previousEnd, 0);
1872
2233
  if (trailingGap > 0) {
1873
2234
  items.push(
1874
- /* @__PURE__ */ jsx9(
2235
+ /* @__PURE__ */ jsx12(
1875
2236
  "div",
1876
2237
  {
1877
2238
  style: { height: `${trailingGap}px` }
@@ -1882,11 +2243,11 @@ var VirtualizedDropZone = ({
1882
2243
  }
1883
2244
  return items;
1884
2245
  }, [totalSize, virtualItems, getMeasureRef, contentIds, renderItem]);
1885
- return /* @__PURE__ */ jsx9(Fragment3, { children: renderedItems });
2246
+ return /* @__PURE__ */ jsx12(Fragment3, { children: renderedItems });
1886
2247
  };
1887
2248
 
1888
2249
  // components/DropZone/index.tsx
1889
- import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
2250
+ import { Fragment as Fragment4, jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
1890
2251
  var getClassName4 = get_class_name_factory_default("DropZone", styles_module_default3);
1891
2252
  var getRandomColor = () => `#${Math.floor(Math.random() * 16777215).toString(16)}`;
1892
2253
  var RENDER_DEBUG = false;
@@ -1898,12 +2259,12 @@ var InsertPreview = ({
1898
2259
  if (element) {
1899
2260
  return (
1900
2261
  // Safe to use this since the HTML is set by the user
1901
- /* @__PURE__ */ jsx10("div", { dangerouslySetInnerHTML: { __html: element.outerHTML } })
2262
+ /* @__PURE__ */ jsx13("div", { dangerouslySetInnerHTML: { __html: element.outerHTML } })
1902
2263
  );
1903
2264
  }
1904
- return /* @__PURE__ */ jsx10(DrawerItemInner, { name: label, children: override });
2265
+ return /* @__PURE__ */ jsx13(DrawerItemInner, { name: label, children: override });
1905
2266
  };
1906
- var DropZoneEditPure = (props) => /* @__PURE__ */ jsx10(DropZoneEdit, { ...props });
2267
+ var DropZoneEditPure = (props) => /* @__PURE__ */ jsx13(DropZoneEdit, { ...props });
1907
2268
  var DropZoneChild = ({
1908
2269
  zoneCompound,
1909
2270
  componentId,
@@ -1987,7 +2348,7 @@ var DropZoneChild = ({
1987
2348
  const userFieldTransforms = useAppStore((s) => s.fieldTransforms);
1988
2349
  const combinedFieldTransforms = useMemo6(
1989
2350
  () => ({
1990
- ...getSlotTransform(DropZoneEditPure, (slotProps) => /* @__PURE__ */ jsx10(ContextSlotRender, { componentId, zone: slotProps.zone })),
2351
+ ...getSlotTransform(DropZoneEditPure, (slotProps) => /* @__PURE__ */ jsx13(ContextSlotRender, { componentId, zone: slotProps.zone })),
1991
2352
  ...getInlineTextTransform(),
1992
2353
  ...getRichTextTransform(),
1993
2354
  ...plugins.reduce(
@@ -2006,13 +2367,13 @@ var DropZoneChild = ({
2006
2367
  isLoading
2007
2368
  );
2008
2369
  if (!item) return;
2009
- const Render2 = componentConfig ? componentConfig.render : () => /* @__PURE__ */ jsxs3("div", { style: { padding: 48, textAlign: "center" }, children: [
2370
+ const Render2 = componentConfig ? componentConfig.render : () => /* @__PURE__ */ jsxs6("div", { style: { padding: 48, textAlign: "center" }, children: [
2010
2371
  "No configuration for ",
2011
2372
  item.type
2012
2373
  ] });
2013
2374
  let componentType = item.type;
2014
2375
  const isInserting = "previewType" in item ? item.previewType === "insert" : false;
2015
- return /* @__PURE__ */ jsx10(
2376
+ return /* @__PURE__ */ jsx13(
2016
2377
  DraggableComponent,
2017
2378
  {
2018
2379
  id: componentId,
@@ -2029,7 +2390,7 @@ var DropZoneChild = ({
2029
2390
  itemRef,
2030
2391
  children: (dragRef) => {
2031
2392
  if (componentConfig?.inline && !isInserting) {
2032
- return /* @__PURE__ */ jsx10(
2393
+ return /* @__PURE__ */ jsx13(
2033
2394
  MemoizeComponent,
2034
2395
  {
2035
2396
  Component: Render2,
@@ -2040,14 +2401,14 @@ var DropZoneChild = ({
2040
2401
  }
2041
2402
  );
2042
2403
  }
2043
- return /* @__PURE__ */ jsx10("div", { ref: dragRef, children: isInserting ? /* @__PURE__ */ jsx10(
2404
+ return /* @__PURE__ */ jsx13("div", { ref: dragRef, children: isInserting ? /* @__PURE__ */ jsx13(
2044
2405
  InsertPreview,
2045
2406
  {
2046
2407
  label,
2047
2408
  override: overrides.componentItem ?? overrides.drawerItem,
2048
2409
  element: "element" in item && item.element ? item.element : void 0
2049
2410
  }
2050
- ) : /* @__PURE__ */ jsx10(
2411
+ ) : /* @__PURE__ */ jsx13(
2051
2412
  MemoizeComponent,
2052
2413
  {
2053
2414
  Component: Render2,
@@ -2216,7 +2577,7 @@ var DropZoneEdit = forwardRef(
2216
2577
  const El = as ?? "div";
2217
2578
  const isRootAreaZone = (areaId ?? rootAreaId) === rootAreaId && depth === 0;
2218
2579
  const shouldVirtualizeItems = _experimentalVirtualization && isRootAreaZone;
2219
- return /* @__PURE__ */ jsx10(
2580
+ return /* @__PURE__ */ jsx13(
2220
2581
  El,
2221
2582
  {
2222
2583
  className: `${getClassName4({
@@ -2235,12 +2596,12 @@ var DropZoneEdit = forwardRef(
2235
2596
  "--min-empty-height": minEmptyHeight,
2236
2597
  backgroundColor: RENDER_DEBUG ? getRandomColor() : style?.backgroundColor
2237
2598
  },
2238
- children: shouldVirtualizeItems ? /* @__PURE__ */ jsx10(
2599
+ children: shouldVirtualizeItems ? /* @__PURE__ */ jsx13(
2239
2600
  VirtualizedDropZone,
2240
2601
  {
2241
2602
  contentIds: contentIdsWithPreview,
2242
2603
  zoneCompound,
2243
- renderItem: (props) => /* @__PURE__ */ jsx10(
2604
+ renderItem: (props) => /* @__PURE__ */ jsx13(
2244
2605
  DropZoneChildMemo,
2245
2606
  {
2246
2607
  zoneCompound,
@@ -2254,7 +2615,7 @@ var DropZoneEdit = forwardRef(
2254
2615
  props.componentId
2255
2616
  )
2256
2617
  }
2257
- ) : contentIdsWithPreview.map((componentId, i) => /* @__PURE__ */ jsx10(
2618
+ ) : contentIdsWithPreview.map((componentId, i) => /* @__PURE__ */ jsx13(
2258
2619
  DropZoneChildMemo,
2259
2620
  {
2260
2621
  zoneCompound,
@@ -2276,7 +2637,7 @@ var DropZoneRenderItem = ({
2276
2637
  metadata
2277
2638
  }) => {
2278
2639
  const Component = config.components[item.type];
2279
- const props = useSlots(config, item, (slotProps) => /* @__PURE__ */ jsx10(SlotRenderPure, { ...slotProps, config, metadata }));
2640
+ const props = useSlots(config, item, (slotProps) => /* @__PURE__ */ jsx13(SlotRenderPure, { ...slotProps, config, metadata }));
2280
2641
  const nextContextValue = useMemo6(
2281
2642
  () => ({
2282
2643
  areaId: props.id,
@@ -2285,7 +2646,7 @@ var DropZoneRenderItem = ({
2285
2646
  [props]
2286
2647
  );
2287
2648
  const richtextProps = useRichtextProps(Component.fields, props);
2288
- return /* @__PURE__ */ jsx10(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ jsx10(
2649
+ return /* @__PURE__ */ jsx13(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ jsx13(
2289
2650
  Component.render,
2290
2651
  {
2291
2652
  ...props,
@@ -2298,7 +2659,7 @@ var DropZoneRenderItem = ({
2298
2659
  }
2299
2660
  ) }, props.id);
2300
2661
  };
2301
- var DropZoneRenderPure = (props) => /* @__PURE__ */ jsx10(DropZoneRender, { ...props });
2662
+ var DropZoneRenderPure = (props) => /* @__PURE__ */ jsx13(DropZoneRender, { ...props });
2302
2663
  var DropZoneRender = forwardRef(
2303
2664
  function DropZoneRenderInternal({ className, style, zone, as }, ref) {
2304
2665
  const ctx = useContext5(dropZoneContext);
@@ -2322,10 +2683,10 @@ var DropZoneRender = forwardRef(
2322
2683
  if (!data || !config) {
2323
2684
  return null;
2324
2685
  }
2325
- return /* @__PURE__ */ jsx10(El, { className, style, ref, children: content.map((item) => {
2686
+ return /* @__PURE__ */ jsx13(El, { className, style, ref, children: content.map((item) => {
2326
2687
  const Component = config.components[item.type];
2327
2688
  if (Component) {
2328
- return /* @__PURE__ */ jsx10(
2689
+ return /* @__PURE__ */ jsx13(
2329
2690
  DropZoneRenderItem,
2330
2691
  {
2331
2692
  config,
@@ -2339,20 +2700,20 @@ var DropZoneRender = forwardRef(
2339
2700
  }) });
2340
2701
  }
2341
2702
  );
2342
- var DropZonePure = (props) => /* @__PURE__ */ jsx10(DropZone, { ...props });
2703
+ var DropZonePure = (props) => /* @__PURE__ */ jsx13(DropZone, { ...props });
2343
2704
  var DropZone = forwardRef(
2344
2705
  function DropZone2(props, ref) {
2345
2706
  const ctx = useContext5(dropZoneContext);
2346
2707
  if (ctx?.mode === "edit") {
2347
- return /* @__PURE__ */ jsx10(Fragment4, { children: /* @__PURE__ */ jsx10(DropZoneEdit, { ...props, ref }) });
2708
+ return /* @__PURE__ */ jsx13(Fragment4, { children: /* @__PURE__ */ jsx13(DropZoneEdit, { ...props, ref }) });
2348
2709
  }
2349
- return /* @__PURE__ */ jsx10(Fragment4, { children: /* @__PURE__ */ jsx10(DropZoneRender, { ...props, ref }) });
2710
+ return /* @__PURE__ */ jsx13(Fragment4, { children: /* @__PURE__ */ jsx13(DropZoneRender, { ...props, ref }) });
2350
2711
  }
2351
2712
  );
2352
2713
 
2353
2714
  // components/Render/index.tsx
2354
2715
  import { useMemo as useMemo7 } from "react";
2355
- import { jsx as jsx11 } from "react/jsx-runtime";
2716
+ import { jsx as jsx14 } from "react/jsx-runtime";
2356
2717
  function Render({
2357
2718
  config,
2358
2719
  data,
@@ -2380,7 +2741,7 @@ function Render({
2380
2741
  const propsWithSlots = useSlots(
2381
2742
  config,
2382
2743
  { type: "root", props: pageProps },
2383
- (props) => /* @__PURE__ */ jsx11(SlotRender, { ...props, config, metadata })
2744
+ (props) => /* @__PURE__ */ jsx14(SlotRender, { ...props, config, metadata })
2384
2745
  );
2385
2746
  const richtextProps = useRichtextProps(config.root?.fields, pageProps);
2386
2747
  const nextContextValue = useMemo7(
@@ -2391,13 +2752,13 @@ function Render({
2391
2752
  []
2392
2753
  );
2393
2754
  if (config.root?.render) {
2394
- return /* @__PURE__ */ jsx11(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ jsx11(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ jsx11(config.root.render, { ...propsWithSlots, ...richtextProps, children: /* @__PURE__ */ jsx11(DropZoneRenderPure, { zone: rootZone }) }) }) });
2755
+ return /* @__PURE__ */ jsx14(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ jsx14(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ jsx14(config.root.render, { ...propsWithSlots, ...richtextProps, children: /* @__PURE__ */ jsx14(DropZoneRenderPure, { zone: rootZone }) }) }) });
2395
2756
  }
2396
- return /* @__PURE__ */ jsx11(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ jsx11(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ jsx11(DropZoneRenderPure, { zone: rootZone }) }) });
2757
+ return /* @__PURE__ */ jsx14(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ jsx14(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ jsx14(DropZoneRenderPure, { zone: rootZone }) }) });
2397
2758
  }
2398
2759
 
2399
2760
  // lib/use-credbuild.ts
2400
- import { createContext as createContext3, useContext as useContext6, useEffect as useEffect10, useState as useState7 } from "react";
2761
+ import { createContext as createContext3, useContext as useContext6, useEffect as useEffect10, useState as useState8 } from "react";
2401
2762
  import { createStore as createStore2, useStore } from "zustand";
2402
2763
 
2403
2764
  // lib/data/resolve-and-replace-data.ts
@@ -2505,7 +2866,7 @@ var convertToPickedStore = (store) => {
2505
2866
  };
2506
2867
  };
2507
2868
  var useRegisterUseCredBuildStore = (appStore) => {
2508
- const [useCredBuildStore] = useState7(
2869
+ const [useCredBuildStore] = useState8(
2509
2870
  () => createStore2(
2510
2871
  () => generateUseCredBuild(
2511
2872
  convertToPickedStore(appStore.getState()),
@@ -2555,7 +2916,7 @@ function useGetCredBuild() {
2555
2916
  }
2556
2917
 
2557
2918
  // lib/use-component-list.tsx
2558
- import { useEffect as useEffect12, useState as useState8 } from "react";
2919
+ import { useEffect as useEffect12, useState as useState9 } from "react";
2559
2920
 
2560
2921
  // css-module:/home/crediblemark/Project/Credibuild/components/ComponentList/styles.module.css#css-module
2561
2922
  var styles_module_default5 = { "ComponentList": "_ComponentList_1jl8i_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_1jl8i_5", "ComponentList-content": "_ComponentList-content_1jl8i_9", "ComponentList-title": "_ComponentList-title_1jl8i_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_1jl8i_53" };
@@ -2563,7 +2924,7 @@ var styles_module_default5 = { "ComponentList": "_ComponentList_1jl8i_1", "Compo
2563
2924
  // components/ComponentList/index.tsx
2564
2925
  import { useEffect as useEffect11, useRef as useRef9 } from "react";
2565
2926
  import { useVirtualizer as useVirtualizer2 } from "@tanstack/react-virtual";
2566
- import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
2927
+ import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
2567
2928
  var getClassName5 = get_class_name_factory_default("ComponentList", styles_module_default5);
2568
2929
  var ComponentListItem = ({
2569
2930
  name,
@@ -2582,7 +2943,7 @@ var ComponentListItem = ({
2582
2943
  );
2583
2944
  }
2584
2945
  }, [overrides]);
2585
- return /* @__PURE__ */ jsx12(Drawer.Item, { label, name, isDragDisabled: !canInsert, children: overrides.componentItem ?? overrides.drawerItem });
2946
+ return /* @__PURE__ */ jsx15(Drawer.Item, { label, name, isDragDisabled: !canInsert, children: overrides.componentItem ?? overrides.drawerItem });
2586
2947
  };
2587
2948
  var ComponentList = ({
2588
2949
  children,
@@ -2602,8 +2963,8 @@ var ComponentList = ({
2602
2963
  // Estimated height of each item
2603
2964
  overscan: 5
2604
2965
  });
2605
- return /* @__PURE__ */ jsxs4("div", { className: getClassName5({ isExpanded: expanded }), children: [
2606
- title && /* @__PURE__ */ jsxs4(
2966
+ return /* @__PURE__ */ jsxs7("div", { className: getClassName5({ isExpanded: expanded }), children: [
2967
+ title && /* @__PURE__ */ jsxs7(
2607
2968
  "button",
2608
2969
  {
2609
2970
  type: "button",
@@ -2618,20 +2979,20 @@ var ComponentList = ({
2618
2979
  }
2619
2980
  }),
2620
2981
  children: [
2621
- /* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2622
- id.toLowerCase().includes("hero") && /* @__PURE__ */ jsx12(LayoutTemplate, { size: 12, strokeWidth: 2.5 }),
2623
- id.toLowerCase().includes("content") && /* @__PURE__ */ jsx12(FileText, { size: 12, strokeWidth: 2.5 }),
2624
- id.toLowerCase().includes("marketing") && /* @__PURE__ */ jsx12(Megaphone, { size: 12, strokeWidth: 2.5 }),
2625
- id.toLowerCase().includes("layout") && /* @__PURE__ */ jsx12(Box, { size: 12, strokeWidth: 2.5 }),
2626
- id.toLowerCase().includes("basic") && /* @__PURE__ */ jsx12(Settings, { size: 12, strokeWidth: 2.5 }),
2627
- id === "other" && /* @__PURE__ */ jsx12(Layers, { size: 12, strokeWidth: 2.5 }),
2628
- /* @__PURE__ */ jsx12("div", { children: title?.replace(/[\u2600-\u27BF]|[\uD83C][\uDF00-\uDFFF]|[\uD83D][\uDC00-\uDE4F]|[\uD83D][\uDE80-\uDEFF]/g, "").trim() })
2982
+ /* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2983
+ id.toLowerCase().includes("hero") && /* @__PURE__ */ jsx15(LayoutTemplate, { size: 12, strokeWidth: 2.5 }),
2984
+ id.toLowerCase().includes("content") && /* @__PURE__ */ jsx15(FileText, { size: 12, strokeWidth: 2.5 }),
2985
+ id.toLowerCase().includes("marketing") && /* @__PURE__ */ jsx15(Megaphone, { size: 12, strokeWidth: 2.5 }),
2986
+ id.toLowerCase().includes("layout") && /* @__PURE__ */ jsx15(Box, { size: 12, strokeWidth: 2.5 }),
2987
+ id.toLowerCase().includes("basic") && /* @__PURE__ */ jsx15(Settings, { size: 12, strokeWidth: 2.5 }),
2988
+ id === "other" && /* @__PURE__ */ jsx15(Layers, { size: 12, strokeWidth: 2.5 }),
2989
+ /* @__PURE__ */ jsx15("div", { children: title?.replace(/[\u2600-\u27BF]|[\uD83C][\uDF00-\uDFFF]|[\uD83D][\uDC00-\uDE4F]|[\uD83D][\uDE80-\uDEFF]/g, "").trim() })
2629
2990
  ] }),
2630
- /* @__PURE__ */ jsx12("div", { className: getClassName5("titleIcon"), children: expanded ? /* @__PURE__ */ jsx12(ChevronUp, { size: 12 }) : /* @__PURE__ */ jsx12(ChevronDown, { size: 12 }) })
2991
+ /* @__PURE__ */ jsx15("div", { className: getClassName5("titleIcon"), children: expanded ? /* @__PURE__ */ jsx15(ChevronUp, { size: 12 }) : /* @__PURE__ */ jsx15(ChevronDown, { size: 12 }) })
2631
2992
  ]
2632
2993
  }
2633
2994
  ),
2634
- /* @__PURE__ */ jsx12(
2995
+ /* @__PURE__ */ jsx15(
2635
2996
  "div",
2636
2997
  {
2637
2998
  ref: parentRef,
@@ -2641,7 +3002,7 @@ var ComponentList = ({
2641
3002
  overflowY: "auto",
2642
3003
  transition: "max-height 0.3s ease-in-out"
2643
3004
  },
2644
- children: /* @__PURE__ */ jsx12(
3005
+ children: /* @__PURE__ */ jsx15(
2645
3006
  "div",
2646
3007
  {
2647
3008
  style: {
@@ -2649,9 +3010,9 @@ var ComponentList = ({
2649
3010
  width: "100%",
2650
3011
  position: "relative"
2651
3012
  },
2652
- children: /* @__PURE__ */ jsx12(Drawer, { children: children || virtualizer.getVirtualItems().map((virtualItem) => {
3013
+ children: /* @__PURE__ */ jsx15(Drawer, { children: children || virtualizer.getVirtualItems().map((virtualItem) => {
2653
3014
  const componentKey = components[virtualItem.index];
2654
- return /* @__PURE__ */ jsx12(
3015
+ return /* @__PURE__ */ jsx15(
2655
3016
  "div",
2656
3017
  {
2657
3018
  style: {
@@ -2662,7 +3023,7 @@ var ComponentList = ({
2662
3023
  height: `${virtualItem.size}px`,
2663
3024
  transform: `translateY(${virtualItem.start}px)`
2664
3025
  },
2665
- children: /* @__PURE__ */ jsx12(
3026
+ children: /* @__PURE__ */ jsx15(
2666
3027
  ComponentListItem,
2667
3028
  {
2668
3029
  label: config.components[componentKey]["label"] ?? componentKey,
@@ -2682,9 +3043,9 @@ var ComponentList = ({
2682
3043
  ComponentList.Item = ComponentListItem;
2683
3044
 
2684
3045
  // lib/use-component-list.tsx
2685
- import { jsx as jsx13 } from "react/jsx-runtime";
3046
+ import { jsx as jsx16 } from "react/jsx-runtime";
2686
3047
  var useComponentList = () => {
2687
- const [componentList, setComponentList] = useState8();
3048
+ const [componentList, setComponentList] = useState9();
2688
3049
  const config = useAppStore((s) => s.config);
2689
3050
  const uiComponentList = useAppStore((s) => s.state.ui.componentList);
2690
3051
  useEffect12(() => {
@@ -2702,14 +3063,14 @@ var useComponentList = () => {
2702
3063
  if (category.visible === false) {
2703
3064
  return null;
2704
3065
  }
2705
- return /* @__PURE__ */ jsx13(
3066
+ return /* @__PURE__ */ jsx16(
2706
3067
  ComponentList,
2707
3068
  {
2708
3069
  id: categoryKey,
2709
3070
  title: category.title || categoryKey,
2710
3071
  children: category.components.map((componentName, i) => {
2711
3072
  const componentConf = config.components[componentName] || {};
2712
- return /* @__PURE__ */ jsx13(
3073
+ return /* @__PURE__ */ jsx16(
2713
3074
  ComponentList.Item,
2714
3075
  {
2715
3076
  label: componentConf["label"] ?? componentName,
@@ -2729,14 +3090,14 @@ var useComponentList = () => {
2729
3090
  );
2730
3091
  if (remainingComponents.length > 0 && !uiComponentList.other?.components && uiComponentList.other?.visible !== false) {
2731
3092
  _componentList.push(
2732
- /* @__PURE__ */ jsx13(
3093
+ /* @__PURE__ */ jsx16(
2733
3094
  ComponentList,
2734
3095
  {
2735
3096
  id: "other",
2736
3097
  title: uiComponentList.other?.title || "Other",
2737
3098
  children: remainingComponents.map((componentName, i) => {
2738
3099
  const componentConf = config.components[componentName] || {};
2739
- return /* @__PURE__ */ jsx13(
3100
+ return /* @__PURE__ */ jsx16(
2740
3101
  ComponentList.Item,
2741
3102
  {
2742
3103
  name: componentName,
@@ -2759,7 +3120,7 @@ var useComponentList = () => {
2759
3120
 
2760
3121
  // components/CredBuild/components/Components/index.tsx
2761
3122
  import { useMemo as useMemo8 } from "react";
2762
- import { jsx as jsx14 } from "react/jsx-runtime";
3123
+ import { jsx as jsx17 } from "react/jsx-runtime";
2763
3124
  var Components = () => {
2764
3125
  const overrides = useAppStore((s) => s.overrides);
2765
3126
  const componentList = useComponentList();
@@ -2771,20 +3132,20 @@ var Components = () => {
2771
3132
  }
2772
3133
  return overrides.components || overrides.drawer || "div";
2773
3134
  }, [overrides]);
2774
- return /* @__PURE__ */ jsx14(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ jsx14(ComponentList, { id: "all" }) });
3135
+ return /* @__PURE__ */ jsx17(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ jsx17(ComponentList, { id: "all" }) });
2775
3136
  };
2776
3137
 
2777
3138
  // css-module:/home/crediblemark/Project/Credibuild/plugins/blocks/styles.module.css#css-module
2778
3139
  var styles_module_default6 = { "BlocksPlugin": "_BlocksPlugin_1ey1i_1" };
2779
3140
 
2780
3141
  // plugins/blocks/index.tsx
2781
- import { jsx as jsx15 } from "react/jsx-runtime";
3142
+ import { jsx as jsx18 } from "react/jsx-runtime";
2782
3143
  var getClassName6 = get_class_name_factory_default("BlocksPlugin", styles_module_default6);
2783
3144
  var blocksPlugin = () => ({
2784
3145
  name: "blocks",
2785
3146
  label: "Blocks",
2786
- render: () => /* @__PURE__ */ jsx15("div", { className: getClassName6(), children: /* @__PURE__ */ jsx15(Components, {}) }),
2787
- icon: /* @__PURE__ */ jsx15(Shapes, {})
3147
+ render: () => /* @__PURE__ */ jsx18("div", { className: getClassName6(), children: /* @__PURE__ */ jsx18(Components, {}) }),
3148
+ icon: /* @__PURE__ */ jsx18(Shapes, {})
2788
3149
  });
2789
3150
 
2790
3151
  // css-module:/home/crediblemark/Project/Credibuild/components/LayerTree/styles.module.css#css-module
@@ -2798,7 +3159,7 @@ import {
2798
3159
  useRef as useRef10
2799
3160
  } from "react";
2800
3161
  import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
2801
- import { Fragment as Fragment5, jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
3162
+ import { Fragment as Fragment5, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
2802
3163
  var getClassName7 = get_class_name_factory_default("LayerTree", styles_module_default7);
2803
3164
  var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default7);
2804
3165
  var DEFAULT_LAYER_ROW_HEIGHT = 32;
@@ -2922,19 +3283,19 @@ var Layer = forwardRef2(function Layer2({
2922
3283
  const shouldRenderChildren = isSelected || childIsSelected;
2923
3284
  const getLayerIcon = (type) => {
2924
3285
  const t = type.toLowerCase();
2925
- if (t === "text" || t === "heading" || t.includes("heading")) return /* @__PURE__ */ jsx16(Type, { size: "14", strokeWidth: 2.5 });
2926
- if (t.includes("hero")) return /* @__PURE__ */ jsx16(LayoutTemplate, { size: "14", strokeWidth: 2.5 });
2927
- if (t.includes("pricing")) return /* @__PURE__ */ jsx16(CreditCard, { size: "14", strokeWidth: 2.5 });
2928
- if (t.includes("stats")) return /* @__PURE__ */ jsx16(ChartColumn, { size: "14", strokeWidth: 2.5 });
2929
- if (t.includes("testimonials")) return /* @__PURE__ */ jsx16(Quote, { size: "14", strokeWidth: 2.5 });
2930
- if (t.includes("about") || t.includes("info")) return /* @__PURE__ */ jsx16(Info, { size: "14", strokeWidth: 2.5 });
2931
- if (t.includes("gallery") || t.includes("image")) return /* @__PURE__ */ jsx16(Image, { size: "14", strokeWidth: 2.5 });
2932
- if (t.includes("marketing") || t.includes("cta")) return /* @__PURE__ */ jsx16(Megaphone, { size: "14", strokeWidth: 2.5 });
2933
- if (t.includes("content") || t.includes("blog")) return /* @__PURE__ */ jsx16(FileText, { size: "14", strokeWidth: 2.5 });
2934
- if (t.includes("container") || t.includes("layout") || t.includes("flex")) return /* @__PURE__ */ jsx16(Box, { size: "14", strokeWidth: 2.5 });
2935
- return /* @__PURE__ */ jsx16(LayoutGrid, { size: "14", strokeWidth: 2.5 });
3286
+ if (t === "text" || t === "heading" || t.includes("heading")) return /* @__PURE__ */ jsx19(Type, { size: "14", strokeWidth: 2.5 });
3287
+ if (t.includes("hero")) return /* @__PURE__ */ jsx19(LayoutTemplate, { size: "14", strokeWidth: 2.5 });
3288
+ if (t.includes("pricing")) return /* @__PURE__ */ jsx19(CreditCard, { size: "14", strokeWidth: 2.5 });
3289
+ if (t.includes("stats")) return /* @__PURE__ */ jsx19(ChartColumn, { size: "14", strokeWidth: 2.5 });
3290
+ if (t.includes("testimonials")) return /* @__PURE__ */ jsx19(Quote, { size: "14", strokeWidth: 2.5 });
3291
+ if (t.includes("about") || t.includes("info")) return /* @__PURE__ */ jsx19(Info, { size: "14", strokeWidth: 2.5 });
3292
+ if (t.includes("gallery") || t.includes("image")) return /* @__PURE__ */ jsx19(Image, { size: "14", strokeWidth: 2.5 });
3293
+ if (t.includes("marketing") || t.includes("cta")) return /* @__PURE__ */ jsx19(Megaphone, { size: "14", strokeWidth: 2.5 });
3294
+ if (t.includes("content") || t.includes("blog")) return /* @__PURE__ */ jsx19(FileText, { size: "14", strokeWidth: 2.5 });
3295
+ if (t.includes("container") || t.includes("layout") || t.includes("flex")) return /* @__PURE__ */ jsx19(Box, { size: "14", strokeWidth: 2.5 });
3296
+ return /* @__PURE__ */ jsx19(LayoutGrid, { size: "14", strokeWidth: 2.5 });
2936
3297
  };
2937
- return /* @__PURE__ */ jsxs5(
3298
+ return /* @__PURE__ */ jsxs8(
2938
3299
  "li",
2939
3300
  {
2940
3301
  ref,
@@ -2947,7 +3308,7 @@ var Layer = forwardRef2(function Layer2({
2947
3308
  "data-index": dataIndex,
2948
3309
  "data-credbuild-layer-tree-id": node.itemId,
2949
3310
  children: [
2950
- /* @__PURE__ */ jsx16("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ jsxs5(
3311
+ /* @__PURE__ */ jsx19("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ jsxs8(
2951
3312
  "button",
2952
3313
  {
2953
3314
  type: "button",
@@ -2972,26 +3333,26 @@ var Layer = forwardRef2(function Layer2({
2972
3333
  zoneStore.setState({ hoveringComponent: null });
2973
3334
  },
2974
3335
  children: [
2975
- containsZone && /* @__PURE__ */ jsx16(
3336
+ containsZone && /* @__PURE__ */ jsx19(
2976
3337
  "div",
2977
3338
  {
2978
3339
  className: getClassNameLayer("chevron"),
2979
3340
  title: isSelected ? "Collapse" : "Expand",
2980
- children: /* @__PURE__ */ jsx16(ChevronDown, { size: "12" })
3341
+ children: /* @__PURE__ */ jsx19(ChevronDown, { size: "12" })
2981
3342
  }
2982
3343
  ),
2983
- /* @__PURE__ */ jsxs5("div", { className: getClassNameLayer("title"), children: [
2984
- /* @__PURE__ */ jsx16("div", { className: getClassNameLayer("icon"), children: getLayerIcon(node.componentType) }),
2985
- /* @__PURE__ */ jsx16("div", { className: getClassNameLayer("name"), children: node.label })
3344
+ /* @__PURE__ */ jsxs8("div", { className: getClassNameLayer("title"), children: [
3345
+ /* @__PURE__ */ jsx19("div", { className: getClassNameLayer("icon"), children: getLayerIcon(node.componentType) }),
3346
+ /* @__PURE__ */ jsx19("div", { className: getClassNameLayer("name"), children: node.label })
2986
3347
  ] })
2987
3348
  ]
2988
3349
  }
2989
3350
  ) }),
2990
- containsZone && shouldRenderChildren && node.childZones.map((childZone) => /* @__PURE__ */ jsx16(
3351
+ containsZone && shouldRenderChildren && node.childZones.map((childZone) => /* @__PURE__ */ jsx19(
2991
3352
  "div",
2992
3353
  {
2993
3354
  className: getClassNameLayer("zones"),
2994
- children: /* @__PURE__ */ jsx16(
3355
+ children: /* @__PURE__ */ jsx19(
2995
3356
  LayerTreeZone,
2996
3357
  {
2997
3358
  depth: depth + 1,
@@ -3014,12 +3375,12 @@ var LayerTreeZone = ({
3014
3375
  tree
3015
3376
  }) => {
3016
3377
  const shouldVirtualize = depth === 0 && tree.items.length >= MIN_VIRTUALIZED_LAYER_COUNT;
3017
- return /* @__PURE__ */ jsxs5(Fragment5, { children: [
3018
- tree.label && /* @__PURE__ */ jsxs5("div", { className: getClassName7("zoneTitle"), children: [
3019
- /* @__PURE__ */ jsx16("div", { className: getClassName7("zoneIcon"), children: /* @__PURE__ */ jsx16(Layers, { size: "16" }) }),
3378
+ return /* @__PURE__ */ jsxs8(Fragment5, { children: [
3379
+ tree.label && /* @__PURE__ */ jsxs8("div", { className: getClassName7("zoneTitle"), children: [
3380
+ /* @__PURE__ */ jsx19("div", { className: getClassName7("zoneIcon"), children: /* @__PURE__ */ jsx19(Layers, { size: "16" }) }),
3020
3381
  tree.label
3021
3382
  ] }),
3022
- shouldVirtualize ? /* @__PURE__ */ jsx16(
3383
+ shouldVirtualize ? /* @__PURE__ */ jsx19(
3023
3384
  VirtualizedLayerTreeItems,
3024
3385
  {
3025
3386
  depth,
@@ -3027,7 +3388,7 @@ var LayerTreeZone = ({
3027
3388
  selectedPathIds,
3028
3389
  tree
3029
3390
  }
3030
- ) : /* @__PURE__ */ jsx16(
3391
+ ) : /* @__PURE__ */ jsx19(
3031
3392
  StaticLayerTreeItems,
3032
3393
  {
3033
3394
  depth,
@@ -3044,9 +3405,9 @@ var StaticLayerTreeItems = ({
3044
3405
  selectedPathIds,
3045
3406
  tree
3046
3407
  }) => {
3047
- return /* @__PURE__ */ jsxs5("ul", { className: getClassName7(), children: [
3048
- tree.items.length === 0 && /* @__PURE__ */ jsx16("div", { className: getClassName7("helper"), children: "No items" }),
3049
- tree.items.map((node) => /* @__PURE__ */ jsx16(
3408
+ return /* @__PURE__ */ jsxs8("ul", { className: getClassName7(), children: [
3409
+ tree.items.length === 0 && /* @__PURE__ */ jsx19("div", { className: getClassName7("helper"), children: "No items" }),
3410
+ tree.items.map((node) => /* @__PURE__ */ jsx19(
3050
3411
  Layer,
3051
3412
  {
3052
3413
  childIsSelected: selectedPathIds.has(node.itemId),
@@ -3092,7 +3453,7 @@ var VirtualizedLayerTreeItems = ({
3092
3453
  const gapSize = Math.max(virtualItem.start - previousEnd, 0);
3093
3454
  if (gapSize > 0) {
3094
3455
  renderedItems.push(
3095
- /* @__PURE__ */ jsx16(
3456
+ /* @__PURE__ */ jsx19(
3096
3457
  "li",
3097
3458
  {
3098
3459
  "aria-hidden": "true",
@@ -3103,7 +3464,7 @@ var VirtualizedLayerTreeItems = ({
3103
3464
  );
3104
3465
  }
3105
3466
  renderedItems.push(
3106
- /* @__PURE__ */ jsx16(
3467
+ /* @__PURE__ */ jsx19(
3107
3468
  Layer,
3108
3469
  {
3109
3470
  childIsSelected: selectedPathIds.has(node.itemId),
@@ -3124,7 +3485,7 @@ var VirtualizedLayerTreeItems = ({
3124
3485
  const trailingGap = Math.max(totalSize - previousEnd, 0);
3125
3486
  if (trailingGap > 0) {
3126
3487
  renderedItems.push(
3127
- /* @__PURE__ */ jsx16(
3488
+ /* @__PURE__ */ jsx19(
3128
3489
  "li",
3129
3490
  {
3130
3491
  "aria-hidden": "true",
@@ -3134,8 +3495,8 @@ var VirtualizedLayerTreeItems = ({
3134
3495
  )
3135
3496
  );
3136
3497
  }
3137
- return /* @__PURE__ */ jsxs5("ul", { className: getClassName7(), ref: listRef, children: [
3138
- tree.items.length === 0 && /* @__PURE__ */ jsx16("div", { className: getClassName7("helper"), children: "No items" }),
3498
+ return /* @__PURE__ */ jsxs8("ul", { className: getClassName7(), ref: listRef, children: [
3499
+ tree.items.length === 0 && /* @__PURE__ */ jsx19("div", { className: getClassName7("helper"), children: "No items" }),
3139
3500
  renderedItems
3140
3501
  ] });
3141
3502
  };
@@ -3144,7 +3505,7 @@ var LayerTree = ({
3144
3505
  selectedPathIds,
3145
3506
  trees
3146
3507
  }) => {
3147
- return /* @__PURE__ */ jsx16(Fragment5, { children: trees.map((tree) => /* @__PURE__ */ jsx16(
3508
+ return /* @__PURE__ */ jsx19(Fragment5, { children: trees.map((tree) => /* @__PURE__ */ jsx19(
3148
3509
  LayerTreeZone,
3149
3510
  {
3150
3511
  depth: 0,
@@ -3168,7 +3529,7 @@ var findZonesForArea = (state, area) => {
3168
3529
 
3169
3530
  // components/CredBuild/components/Outline/index.tsx
3170
3531
  import { useShallow as useShallow4 } from "zustand/react/shallow";
3171
- import { jsx as jsx17 } from "react/jsx-runtime";
3532
+ import { jsx as jsx20 } from "react/jsx-runtime";
3172
3533
  var Outline = () => {
3173
3534
  const outlineOverride = useAppStore((s) => s.overrides.outline);
3174
3535
  const config = useAppStore((s) => s.config);
@@ -3197,7 +3558,7 @@ var Outline = () => {
3197
3558
  [config, nodes, rootZones, zones]
3198
3559
  );
3199
3560
  const Wrapper = useMemo9(() => outlineOverride || "div", [outlineOverride]);
3200
- return /* @__PURE__ */ jsx17(Wrapper, { children: /* @__PURE__ */ jsx17(
3561
+ return /* @__PURE__ */ jsx20(Wrapper, { children: /* @__PURE__ */ jsx20(
3201
3562
  LayerTree,
3202
3563
  {
3203
3564
  selectedId,
@@ -3211,13 +3572,13 @@ var Outline = () => {
3211
3572
  var styles_module_default8 = { "OutlinePlugin": "_OutlinePlugin_q92j6_1" };
3212
3573
 
3213
3574
  // plugins/outline/index.tsx
3214
- import { jsx as jsx18 } from "react/jsx-runtime";
3575
+ import { jsx as jsx21 } from "react/jsx-runtime";
3215
3576
  var getClassName8 = get_class_name_factory_default("OutlinePlugin", styles_module_default8);
3216
3577
  var outlinePlugin = () => ({
3217
3578
  name: "outline",
3218
3579
  label: "Outline",
3219
- render: () => /* @__PURE__ */ jsx18("div", { className: getClassName8(), children: /* @__PURE__ */ jsx18(Outline, {}) }),
3220
- icon: /* @__PURE__ */ jsx18(List, {})
3580
+ render: () => /* @__PURE__ */ jsx21("div", { className: getClassName8(), children: /* @__PURE__ */ jsx21(Outline, {}) }),
3581
+ icon: /* @__PURE__ */ jsx21(List, {})
3221
3582
  });
3222
3583
 
3223
3584
  // css-module:/home/crediblemark/Project/Credibuild/components/Breadcrumbs/styles.module.css#css-module
@@ -3260,7 +3621,7 @@ var useBreadcrumbs = (renderCount) => {
3260
3621
  };
3261
3622
 
3262
3623
  // components/Breadcrumbs/index.tsx
3263
- import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
3624
+ import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
3264
3625
  var getClassName9 = get_class_name_factory_default("Breadcrumbs", styles_module_default9);
3265
3626
  var Breadcrumbs = ({
3266
3627
  children,
@@ -3268,9 +3629,9 @@ var Breadcrumbs = ({
3268
3629
  }) => {
3269
3630
  const setUi = useAppStore((s) => s.setUi);
3270
3631
  const breadcrumbs = useBreadcrumbs(numParents);
3271
- return /* @__PURE__ */ jsxs6("div", { className: getClassName9(), children: [
3272
- breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ jsxs6("div", { className: getClassName9("breadcrumb"), children: [
3273
- /* @__PURE__ */ jsx19(
3632
+ return /* @__PURE__ */ jsxs9("div", { className: getClassName9(), children: [
3633
+ breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ jsxs9("div", { className: getClassName9("breadcrumb"), children: [
3634
+ /* @__PURE__ */ jsx22(
3274
3635
  "button",
3275
3636
  {
3276
3637
  type: "button",
@@ -3279,7 +3640,7 @@ var Breadcrumbs = ({
3279
3640
  children: breadcrumb.label
3280
3641
  }
3281
3642
  ),
3282
- /* @__PURE__ */ jsx19(ChevronRight, { size: 16 })
3643
+ /* @__PURE__ */ jsx22(ChevronRight, { size: 16 })
3283
3644
  ] }, i)),
3284
3645
  children
3285
3646
  ] });
@@ -3297,12 +3658,12 @@ import {
3297
3658
  useMemo as useMemo11
3298
3659
  } from "react";
3299
3660
  import { useShallow as useShallow5 } from "zustand/react/shallow";
3300
- import { Fragment as Fragment6, jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
3661
+ import { Fragment as Fragment6, jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
3301
3662
  var getClassName10 = get_class_name_factory_default("CredBuildFields", styles_module_default10);
3302
3663
  var DefaultFields = ({
3303
3664
  children
3304
3665
  }) => {
3305
- return /* @__PURE__ */ jsx20(Fragment6, { children });
3666
+ return /* @__PURE__ */ jsx23(Fragment6, { children });
3306
3667
  };
3307
3668
  var createOnChange = (fieldName, appStore) => async (value, updatedUi) => {
3308
3669
  const { dispatch, state, selectedItem, resolveComponentData } = appStore.getState();
@@ -3384,7 +3745,7 @@ var FieldsChildInner = ({ fieldName }) => {
3384
3745
  }, [appStore, fieldStore, fieldName]);
3385
3746
  if (!field || !id || !visible) return null;
3386
3747
  if (field.type === "slot") return null;
3387
- return /* @__PURE__ */ jsx20("div", { className: getClassName10("field"), children: /* @__PURE__ */ jsx20(
3748
+ return /* @__PURE__ */ jsx23("div", { className: getClassName10("field"), children: /* @__PURE__ */ jsx23(
3388
3749
  AutoFieldPrivate,
3389
3750
  {
3390
3751
  field,
@@ -3401,7 +3762,7 @@ var FieldsChild = ({ fieldName }) => {
3401
3762
  const value = appStore.getState().getCurrentData().props?.[fieldName];
3402
3763
  return { [fieldName]: value };
3403
3764
  }, [appStore, fieldName]);
3404
- return /* @__PURE__ */ jsx20(fieldContextStore.Provider, { value: initialValue, children: /* @__PURE__ */ jsx20(FieldsChildInner, { fieldName }) });
3765
+ return /* @__PURE__ */ jsx23(fieldContextStore.Provider, { value: initialValue, children: /* @__PURE__ */ jsx23(FieldsChildInner, { fieldName }) });
3405
3766
  };
3406
3767
  var FieldsChildMemo = memo5(FieldsChild);
3407
3768
  var FieldsInternal = ({ wrapFields = true }) => {
@@ -3425,7 +3786,7 @@ var FieldsInternal = ({ wrapFields = true }) => {
3425
3786
  );
3426
3787
  const isLoading = fieldsLoading || componentResolving;
3427
3788
  const Wrapper = useMemo11(() => overrides.fields || DefaultFields, [overrides]);
3428
- return /* @__PURE__ */ jsxs7(
3789
+ return /* @__PURE__ */ jsxs10(
3429
3790
  "form",
3430
3791
  {
3431
3792
  className: getClassName10({ wrapFields }),
@@ -3433,8 +3794,8 @@ var FieldsInternal = ({ wrapFields = true }) => {
3433
3794
  e.preventDefault();
3434
3795
  },
3435
3796
  children: [
3436
- /* @__PURE__ */ jsx20(Wrapper, { isLoading, itemSelector, children: fieldNames.map((fieldName) => /* @__PURE__ */ jsx20(FieldsChildMemo, { fieldName }, fieldName)) }),
3437
- isLoading && /* @__PURE__ */ jsx20("div", { className: getClassName10("loadingOverlay"), children: /* @__PURE__ */ jsx20("div", { className: getClassName10("loadingOverlayInner"), children: /* @__PURE__ */ jsx20(Loader, { size: 16 }) }) })
3797
+ /* @__PURE__ */ jsx23(Wrapper, { isLoading, itemSelector, children: fieldNames.map((fieldName) => /* @__PURE__ */ jsx23(FieldsChildMemo, { fieldName }, fieldName)) }),
3798
+ isLoading && /* @__PURE__ */ jsx23("div", { className: getClassName10("loadingOverlay"), children: /* @__PURE__ */ jsx23("div", { className: getClassName10("loadingOverlayInner"), children: /* @__PURE__ */ jsx23(Loader, { size: 16 }) }) })
3438
3799
  ]
3439
3800
  }
3440
3801
  );
@@ -3445,7 +3806,7 @@ var Fields = memo5(FieldsInternal);
3445
3806
  var styles_module_default11 = { "FieldsPlugin": "_FieldsPlugin_6as57_1", "FieldsPlugin-header": "_FieldsPlugin-header_6as57_7" };
3446
3807
 
3447
3808
  // plugins/fields/index.tsx
3448
- import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
3809
+ import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
3449
3810
  var getClassName11 = get_class_name_factory_default("FieldsPlugin", styles_module_default11);
3450
3811
  var CurrentTitle = () => {
3451
3812
  const label = useAppStore((s) => {
@@ -3457,11 +3818,11 @@ var CurrentTitle = () => {
3457
3818
  var fieldsPlugin = ({ desktopSideBar = "right" } = {}) => ({
3458
3819
  name: "fields",
3459
3820
  label: "Fields",
3460
- render: () => /* @__PURE__ */ jsxs8("div", { className: getClassName11(), children: [
3461
- /* @__PURE__ */ jsx21("div", { className: getClassName11("header"), children: /* @__PURE__ */ jsx21(Breadcrumbs, { numParents: 2, children: /* @__PURE__ */ jsx21(CurrentTitle, {}) }) }),
3462
- /* @__PURE__ */ jsx21(Fields, {})
3821
+ render: () => /* @__PURE__ */ jsxs11("div", { className: getClassName11(), children: [
3822
+ /* @__PURE__ */ jsx24("div", { className: getClassName11("header"), children: /* @__PURE__ */ jsx24(Breadcrumbs, { numParents: 2, children: /* @__PURE__ */ jsx24(CurrentTitle, {}) }) }),
3823
+ /* @__PURE__ */ jsx24(Fields, {})
3463
3824
  ] }),
3464
- icon: /* @__PURE__ */ jsx21(RectangleEllipsis, {}),
3825
+ icon: /* @__PURE__ */ jsx24(RectangleEllipsis, {}),
3465
3826
  mobileOnly: desktopSideBar === "right"
3466
3827
  });
3467
3828
 
@@ -3471,7 +3832,7 @@ import {
3471
3832
  useEffect as useEffect23,
3472
3833
  useMemo as useMemo21,
3473
3834
  useRef as useRef18,
3474
- useState as useState17
3835
+ useState as useState18
3475
3836
  } from "react";
3476
3837
 
3477
3838
  // components/CredBuild/components/Preview/index.tsx
@@ -3484,11 +3845,11 @@ import {
3484
3845
  useContext as useContext9,
3485
3846
  useEffect as useEffect14,
3486
3847
  useRef as useRef11,
3487
- useState as useState9
3848
+ useState as useState10
3488
3849
  } from "react";
3489
3850
  import hash from "object-hash";
3490
3851
  import { createPortal as createPortal2 } from "react-dom";
3491
- import { Fragment as Fragment7, jsx as jsx22 } from "react/jsx-runtime";
3852
+ import { Fragment as Fragment7, jsx as jsx25 } from "react/jsx-runtime";
3492
3853
  var styleSelector = 'style, link[rel="stylesheet"]';
3493
3854
  var collectStyles = (doc) => {
3494
3855
  const collected = [];
@@ -3702,7 +4063,7 @@ var CopyHostStyles = ({
3702
4063
  observer.disconnect();
3703
4064
  };
3704
4065
  }, [debug, doc, onStylesLoaded, win]);
3705
- return /* @__PURE__ */ jsx22(Fragment7, { children });
4066
+ return /* @__PURE__ */ jsx25(Fragment7, { children });
3706
4067
  };
3707
4068
  var autoFrameContext = createContext4({});
3708
4069
  var useFrame = () => useContext9(autoFrameContext);
@@ -3718,10 +4079,10 @@ function AutoFrame({
3718
4079
  frameRef,
3719
4080
  ...props
3720
4081
  }) {
3721
- const [loaded, setLoaded] = useState9(false);
3722
- const [ctx, setCtx] = useState9({});
3723
- const [mountTarget, setMountTarget] = useState9();
3724
- const [stylesLoaded, setStylesLoaded] = useState9(false);
4082
+ const [loaded, setLoaded] = useState10(false);
4083
+ const [ctx, setCtx] = useState10({});
4084
+ const [mountTarget, setMountTarget] = useState10();
4085
+ const [stylesLoaded, setStylesLoaded] = useState10(false);
3725
4086
  const handleStylesLoaded = useCallback13(() => {
3726
4087
  setStylesLoaded(true);
3727
4088
  }, []);
@@ -3752,7 +4113,7 @@ function AutoFrame({
3752
4113
  }
3753
4114
  }
3754
4115
  }, [frameRef, loaded, stylesLoaded]);
3755
- return /* @__PURE__ */ jsx22(
4116
+ return /* @__PURE__ */ jsx25(
3756
4117
  "iframe",
3757
4118
  {
3758
4119
  ...props,
@@ -3763,7 +4124,7 @@ function AutoFrame({
3763
4124
  onLoad: () => {
3764
4125
  setLoaded(true);
3765
4126
  },
3766
- children: /* @__PURE__ */ jsx22(autoFrameContext.Provider, { value: ctx, children: loaded && mountTarget && /* @__PURE__ */ jsx22(
4127
+ children: /* @__PURE__ */ jsx25(autoFrameContext.Provider, { value: ctx, children: loaded && mountTarget && /* @__PURE__ */ jsx25(
3767
4128
  CopyHostStyles,
3768
4129
  {
3769
4130
  debug,
@@ -3799,7 +4160,7 @@ var BubbledPointerEvent = class extends BaseEvent {
3799
4160
  };
3800
4161
 
3801
4162
  // components/CredBuild/components/Preview/index.tsx
3802
- import { Fragment as Fragment8, jsx as jsx23 } from "react/jsx-runtime";
4163
+ import { Fragment as Fragment8, jsx as jsx26 } from "react/jsx-runtime";
3803
4164
  var getClassName12 = get_class_name_factory_default("CredBuildPreview", styles_module_default12);
3804
4165
  var useBubbleIframeEvents = (ref) => {
3805
4166
  const status = useAppStore((s) => s.status);
@@ -3866,7 +4227,7 @@ var Preview = ({ id = "credbuild-preview" }) => {
3866
4227
  id: "credbuild-root",
3867
4228
  ...propsWithSlots,
3868
4229
  ...richtextProps
3869
- }) : /* @__PURE__ */ jsx23(Fragment8, { children: propsWithSlots.children });
4230
+ }) : /* @__PURE__ */ jsx26(Fragment8, { children: propsWithSlots.children });
3870
4231
  },
3871
4232
  [config]
3872
4233
  );
@@ -3874,7 +4235,7 @@ var Preview = ({ id = "credbuild-preview" }) => {
3874
4235
  const rootProps = root.props || root;
3875
4236
  const ref = useRef12(null);
3876
4237
  useBubbleIframeEvents(ref);
3877
- const inner = !renderData ? /* @__PURE__ */ jsx23(
4238
+ const inner = !renderData ? /* @__PURE__ */ jsx26(
3878
4239
  Page,
3879
4240
  {
3880
4241
  ...rootProps,
@@ -3885,15 +4246,15 @@ var Preview = ({ id = "credbuild-preview" }) => {
3885
4246
  metadata
3886
4247
  },
3887
4248
  editMode: true,
3888
- children: /* @__PURE__ */ jsx23(DropZonePure, { zone: rootDroppableId })
4249
+ children: /* @__PURE__ */ jsx26(DropZonePure, { zone: rootDroppableId })
3889
4250
  }
3890
- ) : /* @__PURE__ */ jsx23(Render, { data: renderData, config, metadata });
4251
+ ) : /* @__PURE__ */ jsx26(Render, { data: renderData, config, metadata });
3891
4252
  useEffect15(() => {
3892
4253
  if (!iframe.enabled) {
3893
4254
  setStatus("READY");
3894
4255
  }
3895
4256
  }, [iframe.enabled, setStatus]);
3896
- return /* @__PURE__ */ jsx23(
4257
+ return /* @__PURE__ */ jsx26(
3897
4258
  "div",
3898
4259
  {
3899
4260
  className: getClassName12(),
@@ -3905,7 +4266,7 @@ var Preview = ({ id = "credbuild-preview" }) => {
3905
4266
  dispatch({ type: "setUi", ui: { itemSelector: null } });
3906
4267
  }
3907
4268
  },
3908
- children: iframe.enabled ? /* @__PURE__ */ jsx23(
4269
+ children: iframe.enabled ? /* @__PURE__ */ jsx26(
3909
4270
  AutoFrame_default,
3910
4271
  {
3911
4272
  id: "preview-frame",
@@ -3918,14 +4279,14 @@ var Preview = ({ id = "credbuild-preview" }) => {
3918
4279
  setStatus("MOUNTED");
3919
4280
  },
3920
4281
  frameRef: ref,
3921
- children: /* @__PURE__ */ jsx23(autoFrameContext.Consumer, { children: ({ document: document2 }) => {
4282
+ children: /* @__PURE__ */ jsx26(autoFrameContext.Consumer, { children: ({ document: document2 }) => {
3922
4283
  if (Frame) {
3923
- return /* @__PURE__ */ jsx23(Frame, { document: document2, children: inner });
4284
+ return /* @__PURE__ */ jsx26(Frame, { document: document2, children: inner });
3924
4285
  }
3925
4286
  return inner;
3926
4287
  } })
3927
4288
  }
3928
- ) : /* @__PURE__ */ jsx23(
4289
+ ) : /* @__PURE__ */ jsx26(
3929
4290
  "div",
3930
4291
  {
3931
4292
  id: "preview-frame",
@@ -3991,17 +4352,17 @@ var useLoadedOverrides = ({
3991
4352
  import { deepEqual as deepEqual2 } from "fast-equals";
3992
4353
 
3993
4354
  // components/CredBuild/components/Layout/index.tsx
3994
- import { useEffect as useEffect22, useMemo as useMemo20, useState as useState16 } from "react";
4355
+ import { useEffect as useEffect22, useMemo as useMemo20, useState as useState17 } from "react";
3995
4356
 
3996
4357
  // components/CredBuild/context.tsx
3997
4358
  import {
3998
4359
  createContext as createContext5,
3999
4360
  useContext as useContext10
4000
4361
  } from "react";
4001
- import { jsx as jsx24 } from "react/jsx-runtime";
4362
+ import { jsx as jsx27 } from "react/jsx-runtime";
4002
4363
  var propsContext = createContext5({});
4003
4364
  function PropsProvider(props) {
4004
- return /* @__PURE__ */ jsx24(propsContext.Provider, { value: props, children: props.children });
4365
+ return /* @__PURE__ */ jsx27(propsContext.Provider, { value: props, children: props.children });
4005
4366
  }
4006
4367
  var usePropsContext = () => useContext10(propsContext);
4007
4368
 
@@ -4009,10 +4370,10 @@ var usePropsContext = () => useContext10(propsContext);
4009
4370
  var styles_module_default13 = { "CredBuildLayout": "_CredBuildLayout_14aaz_1", "CredBuildLayout-inner": "_CredBuildLayout-inner_14aaz_8", "CredBuildLayout--leftSideBarVisible": "_CredBuildLayout--leftSideBarVisible_14aaz_29", "CredBuildLayout--rightSideBarVisible": "_CredBuildLayout--rightSideBarVisible_14aaz_33", "CredBuild--hidePlugins": "_CredBuild--hidePlugins_14aaz_37", "CredBuildLayout-item": "_CredBuildLayout-item_14aaz_43", "CredBuildLayout-header": "_CredBuildLayout-header_14aaz_49", "CredBuildLayout-left": "_CredBuildLayout-left_14aaz_54", "CredBuildLayout-editor": "_CredBuildLayout-editor_14aaz_67", "CredBuildLayout-right": "_CredBuildLayout-right_14aaz_75", "CredBuildLayout-sidebar": "_CredBuildLayout-sidebar_14aaz_92", "CredBuildPluginTab": "_CredBuildPluginTab_14aaz_107", "CredBuildPluginTab--visible": "_CredBuildPluginTab--visible_14aaz_114", "CredBuildPluginTab-body": "_CredBuildPluginTab-body_14aaz_118", "CredBuildLayout--mounted": "_CredBuildLayout--mounted_14aaz_134" };
4010
4371
 
4011
4372
  // lib/use-inject-css.ts
4012
- import { useEffect as useEffect16, useState as useState10 } from "react";
4373
+ import { useEffect as useEffect16, useState as useState11 } from "react";
4013
4374
  var styles = ``;
4014
4375
  var useInjectStyleSheet = (initialStyles, iframeEnabled) => {
4015
- const [el, setEl] = useState10();
4376
+ const [el, setEl] = useState11();
4016
4377
  useEffect16(() => {
4017
4378
  setEl(document.createElement("style"));
4018
4379
  }, []);
@@ -4034,8 +4395,8 @@ var useInjectGlobalCss = (iframeEnabled) => {
4034
4395
  };
4035
4396
 
4036
4397
  // components/DefaultOverride/index.tsx
4037
- import { Fragment as Fragment9, jsx as jsx25 } from "react/jsx-runtime";
4038
- var DefaultOverride = ({ children }) => /* @__PURE__ */ jsx25(Fragment9, { children });
4398
+ import { Fragment as Fragment9, jsx as jsx28 } from "react/jsx-runtime";
4399
+ var DefaultOverride = ({ children }) => /* @__PURE__ */ jsx28(Fragment9, { children });
4039
4400
 
4040
4401
  // lib/use-preview-mode-hotkeys.ts
4041
4402
  import { useCallback as useCallback15 } from "react";
@@ -4061,7 +4422,7 @@ import {
4061
4422
  useEffect as useEffect17,
4062
4423
  useMemo as useMemo15,
4063
4424
  useRef as useRef13,
4064
- useState as useState11
4425
+ useState as useState12
4065
4426
  } from "react";
4066
4427
  import { AutoScroller, defaultPreset } from "@dnd-kit/dom";
4067
4428
 
@@ -4390,7 +4751,7 @@ function getDeepDir(el) {
4390
4751
 
4391
4752
  // components/DragDropContext/index.tsx
4392
4753
  import { effect } from "@dnd-kit/state";
4393
- import { jsx as jsx26 } from "react/jsx-runtime";
4754
+ import { jsx as jsx29 } from "react/jsx-runtime";
4394
4755
  var DEBUG2 = false;
4395
4756
  var AREA_CHANGE_DEBOUNCE_MS = 100;
4396
4757
  var useTempDisableFallback = (timeout2) => {
@@ -4416,7 +4777,7 @@ var DragDropContextClient = ({
4416
4777
  const appStore = useAppStoreApi();
4417
4778
  const debouncedParamsRef = useRef13(null);
4418
4779
  const tempDisableFallback = useTempDisableFallback(100);
4419
- const [zoneStore] = useState11(() => {
4780
+ const [zoneStore] = useState12(() => {
4420
4781
  const rootVirtualizers = /* @__PURE__ */ new Map();
4421
4782
  return createStore3(() => ({
4422
4783
  zoneDepthIndex: {},
@@ -4511,7 +4872,7 @@ var DragDropContextClient = ({
4511
4872
  );
4512
4873
  }
4513
4874
  }, [zoneStore]);
4514
- const [plugins] = useState11(() => [
4875
+ const [plugins] = useState12(() => [
4515
4876
  ...disableAutoScroll ? defaultPreset.plugins.filter((plugin) => plugin !== AutoScroller) : defaultPreset.plugins,
4516
4877
  createNestedDroppablePlugin(
4517
4878
  {
@@ -4559,7 +4920,7 @@ var DragDropContextClient = ({
4559
4920
  )
4560
4921
  ]);
4561
4922
  const sensors = useSensors();
4562
- const [dragListeners, setDragListeners] = useState11({});
4923
+ const [dragListeners, setDragListeners] = useState12({});
4563
4924
  const dragMode = useRef13(null);
4564
4925
  const initialSelector = useRef13(void 0);
4565
4926
  const nextContextValue = useMemo15(
@@ -4570,14 +4931,14 @@ var DragDropContextClient = ({
4570
4931
  }),
4571
4932
  []
4572
4933
  );
4573
- return /* @__PURE__ */ jsx26(
4934
+ return /* @__PURE__ */ jsx29(
4574
4935
  dragListenerContext.Provider,
4575
4936
  {
4576
4937
  value: {
4577
4938
  dragListeners,
4578
4939
  setDragListeners
4579
4940
  },
4580
- children: /* @__PURE__ */ jsx26(
4941
+ children: /* @__PURE__ */ jsx29(
4581
4942
  DragDropProvider,
4582
4943
  {
4583
4944
  plugins,
@@ -4799,7 +5160,7 @@ var DragDropContextClient = ({
4799
5160
  const entryEl = getFrame()?.querySelector("[data-credbuild-entry]");
4800
5161
  entryEl?.setAttribute("data-credbuild-dragging", "true");
4801
5162
  },
4802
- children: /* @__PURE__ */ jsx26(ZoneStoreProvider, { store: zoneStore, children: /* @__PURE__ */ jsx26(DropZoneProvider, { value: nextContextValue, children }) })
5163
+ children: /* @__PURE__ */ jsx29(ZoneStoreProvider, { store: zoneStore, children: /* @__PURE__ */ jsx29(DropZoneProvider, { value: nextContextValue, children }) })
4803
5164
  }
4804
5165
  )
4805
5166
  }
@@ -4813,17 +5174,17 @@ var DragDropContext = ({
4813
5174
  if (status === "LOADING") {
4814
5175
  return children;
4815
5176
  }
4816
- return /* @__PURE__ */ jsx26(DragDropContextClient, { disableAutoScroll, children });
5177
+ return /* @__PURE__ */ jsx29(DragDropContextClient, { disableAutoScroll, children });
4817
5178
  };
4818
5179
 
4819
5180
  // components/CredBuild/components/Header/index.tsx
4820
- import { memo as memo6, useCallback as useCallback17, useMemo as useMemo18, useState as useState13 } from "react";
5181
+ import { memo as memo6, useCallback as useCallback17, useMemo as useMemo18, useState as useState14 } from "react";
4821
5182
 
4822
5183
  // css-module:/home/crediblemark/Project/Credibuild/components/MenuBar/styles.module.css#css-module
4823
5184
  var styles_module_default14 = { "MenuBar": "_MenuBar_1m2ld_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_1m2ld_14", "MenuBar-inner": "_MenuBar-inner_1m2ld_29", "MenuBar-history": "_MenuBar-history_1m2ld_45" };
4824
5185
 
4825
5186
  // components/MenuBar/index.tsx
4826
- import { Fragment as Fragment10, jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
5187
+ import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
4827
5188
  var getClassName13 = get_class_name_factory_default("MenuBar", styles_module_default14);
4828
5189
  function MenuBar({
4829
5190
  menuOpen = false,
@@ -4834,7 +5195,7 @@ function MenuBar({
4834
5195
  const forward = useAppStore((s) => s.history.forward);
4835
5196
  const hasFuture = useAppStore((s) => s.history.hasFuture());
4836
5197
  const hasPast = useAppStore((s) => s.history.hasPast());
4837
- return /* @__PURE__ */ jsx27(
5198
+ return /* @__PURE__ */ jsx30(
4838
5199
  "div",
4839
5200
  {
4840
5201
  className: getClassName13({ menuOpen }),
@@ -4847,48 +5208,48 @@ function MenuBar({
4847
5208
  setMenuOpen(false);
4848
5209
  }
4849
5210
  },
4850
- children: /* @__PURE__ */ jsxs9("div", { className: getClassName13("inner"), children: [
4851
- /* @__PURE__ */ jsxs9("div", { className: getClassName13("history"), children: [
4852
- /* @__PURE__ */ jsx27(
5211
+ children: /* @__PURE__ */ jsxs12("div", { className: getClassName13("inner"), children: [
5212
+ /* @__PURE__ */ jsxs12("div", { className: getClassName13("history"), children: [
5213
+ /* @__PURE__ */ jsx30(
4853
5214
  IconButton,
4854
5215
  {
4855
5216
  type: "button",
4856
5217
  title: "undo",
4857
5218
  disabled: !hasPast,
4858
5219
  onClick: back,
4859
- children: /* @__PURE__ */ jsx27(Undo2, { size: 21 })
5220
+ children: /* @__PURE__ */ jsx30(Undo2, { size: 21 })
4860
5221
  }
4861
5222
  ),
4862
- /* @__PURE__ */ jsx27(
5223
+ /* @__PURE__ */ jsx30(
4863
5224
  IconButton,
4864
5225
  {
4865
5226
  type: "button",
4866
5227
  title: "redo",
4867
5228
  disabled: !hasFuture,
4868
5229
  onClick: forward,
4869
- children: /* @__PURE__ */ jsx27(Redo2, { size: 21 })
5230
+ children: /* @__PURE__ */ jsx30(Redo2, { size: 21 })
4870
5231
  }
4871
5232
  )
4872
5233
  ] }),
4873
- /* @__PURE__ */ jsx27(Fragment10, { children: renderHeaderActions && renderHeaderActions() })
5234
+ /* @__PURE__ */ jsx30(Fragment10, { children: renderHeaderActions && renderHeaderActions() })
4874
5235
  ] })
4875
5236
  }
4876
5237
  );
4877
5238
  }
4878
5239
 
4879
5240
  // components/ViewportControls/index.tsx
4880
- import { useEffect as useEffect18, useMemo as useMemo16, useState as useState12 } from "react";
5241
+ import { useEffect as useEffect18, useMemo as useMemo16, useState as useState13 } from "react";
4881
5242
 
4882
5243
  // css-module:/home/crediblemark/Project/Credibuild/components/ViewportControls/styles.module.css#css-module
4883
5244
  var styles_module_default15 = { "ViewportControls": "_ViewportControls_1e0ai_1", "ViewportControls--fullScreen": "_ViewportControls--fullScreen_1e0ai_5", "ViewportControls-toggleButton": "_ViewportControls-toggleButton_1e0ai_14", "ViewportControls--isExpanded": "_ViewportControls--isExpanded_1e0ai_38", "ViewportControls-actions": "_ViewportControls-actions_1e0ai_42", "ViewportControls-actionsInner": "_ViewportControls-actionsInner_1e0ai_46", "ViewportControls-divider": "_ViewportControls-divider_1e0ai_75", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_1e0ai_81", "ViewportControls-zoom": "_ViewportControls-zoom_1e0ai_81", "ViewportButton-inner": "_ViewportButton-inner_1e0ai_111", "ViewportButton--isActive": "_ViewportButton--isActive_1e0ai_119" };
4884
5245
 
4885
5246
  // components/ViewportControls/index.tsx
4886
- import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
5247
+ import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
4887
5248
  var icons = {
4888
- Smartphone: /* @__PURE__ */ jsx28(Smartphone, { size: 16 }),
4889
- Tablet: /* @__PURE__ */ jsx28(Tablet, { size: 16 }),
4890
- Monitor: /* @__PURE__ */ jsx28(Monitor, { size: 16 }),
4891
- FullWidth: /* @__PURE__ */ jsx28(Expand, { size: 16 })
5249
+ Smartphone: /* @__PURE__ */ jsx31(Smartphone, { size: 16 }),
5250
+ Tablet: /* @__PURE__ */ jsx31(Tablet, { size: 16 }),
5251
+ Monitor: /* @__PURE__ */ jsx31(Monitor, { size: 16 }),
5252
+ FullWidth: /* @__PURE__ */ jsx31(Expand, { size: 16 })
4892
5253
  };
4893
5254
  var getClassName14 = get_class_name_factory_default("ViewportControls", styles_module_default15);
4894
5255
  var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_module_default15);
@@ -4899,7 +5260,7 @@ var ActionButton = ({
4899
5260
  isActive,
4900
5261
  disabled
4901
5262
  }) => {
4902
- return /* @__PURE__ */ jsx28("span", { className: getClassNameButton({ isActive }), suppressHydrationWarning: true, children: /* @__PURE__ */ jsx28(
5263
+ return /* @__PURE__ */ jsx31("span", { className: getClassNameButton({ isActive }), suppressHydrationWarning: true, children: /* @__PURE__ */ jsx31(
4903
5264
  IconButton,
4904
5265
  {
4905
5266
  type: "button",
@@ -4907,7 +5268,7 @@ var ActionButton = ({
4907
5268
  disabled: disabled || isActive,
4908
5269
  onClick,
4909
5270
  suppressHydrationWarning: true,
4910
- children: /* @__PURE__ */ jsx28("span", { className: getClassNameButton("inner"), children })
5271
+ children: /* @__PURE__ */ jsx31("span", { className: getClassNameButton("inner"), children })
4911
5272
  }
4912
5273
  ) });
4913
5274
  };
@@ -4944,21 +5305,21 @@ var ViewportControls = ({
4944
5305
  ].filter((a) => a.value <= (autoZoom || 1)).sort((a, b) => a.value > b.value ? 1 : -1);
4945
5306
  return options.length > 0 ? options : defaultZoomOptions;
4946
5307
  }, [autoZoom, defaultsContainAutoZoom]);
4947
- const [activeViewport, setActiveViewport] = useState12(
5308
+ const [activeViewport, setActiveViewport] = useState13(
4948
5309
  uiViewports.current.width
4949
5310
  );
4950
5311
  useEffect18(() => {
4951
5312
  setActiveViewport(uiViewports.current.width);
4952
5313
  }, [uiViewports.current.width, uiViewports]);
4953
- const [isExpanded, setIsExpanded] = useState12(false);
4954
- return /* @__PURE__ */ jsxs10(
5314
+ const [isExpanded, setIsExpanded] = useState13(false);
5315
+ return /* @__PURE__ */ jsxs13(
4955
5316
  "div",
4956
5317
  {
4957
5318
  className: getClassName14({ isExpanded, fullScreen }),
4958
5319
  suppressHydrationWarning: true,
4959
5320
  children: [
4960
- /* @__PURE__ */ jsx28("div", { className: getClassName14("actions"), children: /* @__PURE__ */ jsxs10("div", { className: getClassName14("actionsInner"), children: [
4961
- viewports.map((viewport, i) => /* @__PURE__ */ jsx28(
5321
+ /* @__PURE__ */ jsx31("div", { className: getClassName14("actions"), children: /* @__PURE__ */ jsxs13("div", { className: getClassName14("actionsInner"), children: [
5322
+ viewports.map((viewport, i) => /* @__PURE__ */ jsx31(
4962
5323
  ActionButton,
4963
5324
  {
4964
5325
  title: viewport.label ? `Switch to ${viewport.label} viewport` : "Switch viewport",
@@ -4971,8 +5332,8 @@ var ViewportControls = ({
4971
5332
  },
4972
5333
  i
4973
5334
  )),
4974
- /* @__PURE__ */ jsx28("div", { className: getClassName14("divider") }),
4975
- /* @__PURE__ */ jsx28(
5335
+ /* @__PURE__ */ jsx31("div", { className: getClassName14("divider") }),
5336
+ /* @__PURE__ */ jsx31(
4976
5337
  ActionButton,
4977
5338
  {
4978
5339
  title: "Zoom viewport out",
@@ -4986,10 +5347,10 @@ var ViewportControls = ({
4986
5347
  );
4987
5348
  onZoom(zoomOptions[nextIndex]?.value || 1);
4988
5349
  },
4989
- children: /* @__PURE__ */ jsx28(ZoomOut, { size: 16 })
5350
+ children: /* @__PURE__ */ jsx31(ZoomOut, { size: 16 })
4990
5351
  }
4991
5352
  ),
4992
- /* @__PURE__ */ jsx28(
5353
+ /* @__PURE__ */ jsx31(
4993
5354
  ActionButton,
4994
5355
  {
4995
5356
  title: "Zoom viewport in",
@@ -5003,12 +5364,12 @@ var ViewportControls = ({
5003
5364
  );
5004
5365
  onZoom(zoomOptions[nextIndex]?.value || 1);
5005
5366
  },
5006
- children: /* @__PURE__ */ jsx28(ZoomIn, { size: 16 })
5367
+ children: /* @__PURE__ */ jsx31(ZoomIn, { size: 16 })
5007
5368
  }
5008
5369
  ),
5009
- /* @__PURE__ */ jsxs10("div", { className: getClassName14("zoom"), children: [
5010
- /* @__PURE__ */ jsx28("div", { className: getClassName14("divider") }),
5011
- /* @__PURE__ */ jsx28(
5370
+ /* @__PURE__ */ jsxs13("div", { className: getClassName14("zoom"), children: [
5371
+ /* @__PURE__ */ jsx31("div", { className: getClassName14("divider") }),
5372
+ /* @__PURE__ */ jsx31(
5012
5373
  "select",
5013
5374
  {
5014
5375
  className: getClassName14("zoomSelect"),
@@ -5019,7 +5380,7 @@ var ViewportControls = ({
5019
5380
  onChange: (e) => {
5020
5381
  onZoom(parseFloat(e.currentTarget.value));
5021
5382
  },
5022
- children: zoomOptions.map((option) => /* @__PURE__ */ jsx28(
5383
+ children: zoomOptions.map((option) => /* @__PURE__ */ jsx31(
5023
5384
  "option",
5024
5385
  {
5025
5386
  value: option.value,
@@ -5031,13 +5392,13 @@ var ViewportControls = ({
5031
5392
  )
5032
5393
  ] })
5033
5394
  ] }) }),
5034
- /* @__PURE__ */ jsx28(
5395
+ /* @__PURE__ */ jsx31(
5035
5396
  "button",
5036
5397
  {
5037
5398
  className: getClassName14("toggleButton"),
5038
5399
  title: "Toggle viewport menu",
5039
5400
  onClick: () => setIsExpanded((s) => !s),
5040
- children: isExpanded ? /* @__PURE__ */ jsx28(X, { size: 16 }) : /* @__PURE__ */ jsx28(Monitor, { size: 16 })
5401
+ children: isExpanded ? /* @__PURE__ */ jsx31(X, { size: 16 }) : /* @__PURE__ */ jsx31(Monitor, { size: 16 })
5041
5402
  }
5042
5403
  )
5043
5404
  ]
@@ -5055,7 +5416,7 @@ import {
5055
5416
  useRef as useRef14,
5056
5417
  useMemo as useMemo17
5057
5418
  } from "react";
5058
- import { jsx as jsx29 } from "react/jsx-runtime";
5419
+ import { jsx as jsx32 } from "react/jsx-runtime";
5059
5420
  var FrameContext = createContext7(null);
5060
5421
  var FrameProvider = ({
5061
5422
  children
@@ -5067,7 +5428,7 @@ var FrameProvider = ({
5067
5428
  }),
5068
5429
  []
5069
5430
  );
5070
- return /* @__PURE__ */ jsx29(FrameContext.Provider, { value, children });
5431
+ return /* @__PURE__ */ jsx32(FrameContext.Provider, { value, children });
5071
5432
  };
5072
5433
  var useCanvasFrame = () => {
5073
5434
  const context = useContext12(FrameContext);
@@ -5081,7 +5442,7 @@ var useCanvasFrame = () => {
5081
5442
  var styles_module_default16 = { "CredBuildHeader": "_CredBuildHeader_qzv5u_1", "CredBuildHeader-inner": "_CredBuildHeader-inner_qzv5u_20", "CredBuildHeader-viewportTools": "_CredBuildHeader-viewportTools_qzv5u_28", "CredBuildHeader-leftActions": "_CredBuildHeader-leftActions_qzv5u_35", "CredBuildHeader-toggle": "_CredBuildHeader-toggle_qzv5u_41", "CredBuildHeader-leftSideBarToggle": "_CredBuildHeader-leftSideBarToggle_qzv5u_47", "CredBuildHeader-rightSideBarToggle": "_CredBuildHeader-rightSideBarToggle_qzv5u_48", "CredBuildHeader-title": "_CredBuildHeader-title_qzv5u_52", "CredBuildHeader-path": "_CredBuildHeader-path_qzv5u_57", "CredBuildHeader-tools": "_CredBuildHeader-tools_qzv5u_68", "CredBuildHeader-menuButton": "_CredBuildHeader-menuButton_qzv5u_75" };
5082
5443
 
5083
5444
  // components/CredBuild/components/Header/index.tsx
5084
- import { Fragment as Fragment11, jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
5445
+ import { Fragment as Fragment11, jsx as jsx33, jsxs as jsxs14 } from "react/jsx-runtime";
5085
5446
  var getClassName15 = get_class_name_factory_default("CredBuildHeader", styles_module_default16);
5086
5447
  var HeaderInner = ({
5087
5448
  hidePlugins,
@@ -5105,7 +5466,7 @@ var HeaderInner = ({
5105
5466
  const RenderHeader = ({ actions, ...props }) => {
5106
5467
  const Comp = renderHeader;
5107
5468
  const appState = useAppStore((s) => s.state);
5108
- return /* @__PURE__ */ jsx30(Comp, { ...props, dispatch, state: appState, children: actions });
5469
+ return /* @__PURE__ */ jsx33(Comp, { ...props, dispatch, state: appState, children: actions });
5109
5470
  };
5110
5471
  return RenderHeader;
5111
5472
  }
@@ -5119,7 +5480,7 @@ var HeaderInner = ({
5119
5480
  const RenderHeader = (props) => {
5120
5481
  const Comp = renderHeaderActions;
5121
5482
  const appState = useAppStore((s) => s.state);
5122
- return /* @__PURE__ */ jsx30(Comp, { ...props, dispatch, state: appState });
5483
+ return /* @__PURE__ */ jsx33(Comp, { ...props, dispatch, state: appState });
5123
5484
  };
5124
5485
  return RenderHeader;
5125
5486
  }
@@ -5131,7 +5492,7 @@ var HeaderInner = ({
5131
5492
  const CustomHeaderActions = useAppStore(
5132
5493
  (s) => s.overrides.headerActions || defaultHeaderActionsRender
5133
5494
  );
5134
- const [menuOpen, setMenuOpen] = useState13(false);
5495
+ const [menuOpen, setMenuOpen] = useState14(false);
5135
5496
  const rootTitle = useAppStore((s) => {
5136
5497
  const rootData = s.state.indexes.nodes["root"]?.data;
5137
5498
  return rootData.props.title ?? "";
@@ -5175,33 +5536,33 @@ var HeaderInner = ({
5175
5536
  },
5176
5537
  [dispatch, leftSideBarVisible, rightSideBarVisible]
5177
5538
  );
5178
- return /* @__PURE__ */ jsx30(
5539
+ return /* @__PURE__ */ jsx33(
5179
5540
  CustomHeader,
5180
5541
  {
5181
- actions: /* @__PURE__ */ jsx30(Fragment11, { children: /* @__PURE__ */ jsxs11(CustomHeaderActions, { children: [
5182
- /* @__PURE__ */ jsx30(
5542
+ actions: /* @__PURE__ */ jsx33(Fragment11, { children: /* @__PURE__ */ jsxs14(CustomHeaderActions, { children: [
5543
+ /* @__PURE__ */ jsx33(
5183
5544
  Button,
5184
5545
  {
5185
5546
  href: headerPath || "/",
5186
5547
  newTab: true,
5187
5548
  variant: "secondary",
5188
- icon: /* @__PURE__ */ jsx30(ExternalLink, { size: 14 }),
5549
+ icon: /* @__PURE__ */ jsx33(ExternalLink, { size: 14 }),
5189
5550
  children: "View Web"
5190
5551
  }
5191
5552
  ),
5192
- /* @__PURE__ */ jsx30(
5553
+ /* @__PURE__ */ jsx33(
5193
5554
  Button,
5194
5555
  {
5195
5556
  onClick: () => {
5196
5557
  const data = appStore.getState().state.data;
5197
5558
  onPublish && onPublish(data);
5198
5559
  },
5199
- icon: /* @__PURE__ */ jsx30(Globe, { size: 14 }),
5560
+ icon: /* @__PURE__ */ jsx33(Globe, { size: 14 }),
5200
5561
  children: "Publish"
5201
5562
  }
5202
5563
  )
5203
5564
  ] }) }),
5204
- children: /* @__PURE__ */ jsx30(
5565
+ children: /* @__PURE__ */ jsx33(
5205
5566
  "header",
5206
5567
  {
5207
5568
  className: getClassName15({
@@ -5209,20 +5570,20 @@ var HeaderInner = ({
5209
5570
  rightSideBarVisible,
5210
5571
  hidePlugins
5211
5572
  }),
5212
- children: /* @__PURE__ */ jsxs11("div", { className: getClassName15("inner"), children: [
5213
- /* @__PURE__ */ jsxs11("div", { className: getClassName15("leftActions"), children: [
5214
- /* @__PURE__ */ jsxs11("div", { style: { marginRight: "8px", display: "flex", gap: "8px", alignItems: "center" }, children: [
5215
- /* @__PURE__ */ jsx30(
5573
+ children: /* @__PURE__ */ jsxs14("div", { className: getClassName15("inner"), children: [
5574
+ /* @__PURE__ */ jsxs14("div", { className: getClassName15("leftActions"), children: [
5575
+ /* @__PURE__ */ jsxs14("div", { style: { marginRight: "8px", display: "flex", gap: "8px", alignItems: "center" }, children: [
5576
+ /* @__PURE__ */ jsx33(
5216
5577
  Button,
5217
5578
  {
5218
5579
  href: "/dashboard",
5219
5580
  variant: "secondary",
5220
5581
  size: "medium",
5221
- icon: /* @__PURE__ */ jsx30(LayoutDashboard, { size: 14 }),
5582
+ icon: /* @__PURE__ */ jsx33(LayoutDashboard, { size: 14 }),
5222
5583
  children: "Dashboard"
5223
5584
  }
5224
5585
  ),
5225
- /* @__PURE__ */ jsx30(
5586
+ /* @__PURE__ */ jsx33(
5226
5587
  IconButton,
5227
5588
  {
5228
5589
  type: "button",
@@ -5240,12 +5601,12 @@ var HeaderInner = ({
5240
5601
  window.dispatchEvent(new CustomEvent("credbuild-theme-change", { detail: newTheme }));
5241
5602
  },
5242
5603
  title: "Toggle Theme",
5243
- children: theme === "dark" ? /* @__PURE__ */ jsx30(Sun, { size: 16 }) : /* @__PURE__ */ jsx30(Moon, { size: 16 })
5604
+ children: theme === "dark" ? /* @__PURE__ */ jsx33(Sun, { size: 16 }) : /* @__PURE__ */ jsx33(Moon, { size: 16 })
5244
5605
  }
5245
5606
  )
5246
5607
  ] }),
5247
- /* @__PURE__ */ jsxs11("div", { className: getClassName15("toggle"), children: [
5248
- /* @__PURE__ */ jsx30("div", { className: getClassName15("leftSideBarToggle"), children: /* @__PURE__ */ jsx30(
5608
+ /* @__PURE__ */ jsxs14("div", { className: getClassName15("toggle"), children: [
5609
+ /* @__PURE__ */ jsx33("div", { className: getClassName15("leftSideBarToggle"), children: /* @__PURE__ */ jsx33(
5249
5610
  IconButton,
5250
5611
  {
5251
5612
  type: "button",
@@ -5253,10 +5614,10 @@ var HeaderInner = ({
5253
5614
  toggleSidebars("left");
5254
5615
  },
5255
5616
  title: "Toggle left sidebar",
5256
- children: /* @__PURE__ */ jsx30(PanelLeft, { size: 16, focusable: "false" })
5617
+ children: /* @__PURE__ */ jsx33(PanelLeft, { size: 16, focusable: "false" })
5257
5618
  }
5258
5619
  ) }),
5259
- /* @__PURE__ */ jsx30("div", { className: getClassName15("rightSideBarToggle"), children: /* @__PURE__ */ jsx30(
5620
+ /* @__PURE__ */ jsx33("div", { className: getClassName15("rightSideBarToggle"), children: /* @__PURE__ */ jsx33(
5260
5621
  IconButton,
5261
5622
  {
5262
5623
  type: "button",
@@ -5264,16 +5625,16 @@ var HeaderInner = ({
5264
5625
  toggleSidebars("right");
5265
5626
  },
5266
5627
  title: "Toggle right sidebar",
5267
- children: /* @__PURE__ */ jsx30(PanelRight, { size: 16, focusable: "false" })
5628
+ children: /* @__PURE__ */ jsx33(PanelRight, { size: 16, focusable: "false" })
5268
5629
  }
5269
5630
  ) })
5270
5631
  ] }),
5271
- /* @__PURE__ */ jsx30("div", { className: getClassName15("title"), children: /* @__PURE__ */ jsxs11(Heading, { rank: "2", size: "xs", children: [
5272
- /* @__PURE__ */ jsx30("span", { style: { fontSize: "11px", textTransform: "uppercase", letterSpacing: "0.08em", fontWeight: 600 }, children: headerTitle || rootTitle || "Page" }),
5273
- headerPath && /* @__PURE__ */ jsx30(Fragment11, { children: /* @__PURE__ */ jsx30("code", { className: getClassName15("path"), style: { fontSize: "10px", opacity: 0.6, marginLeft: "8px" }, children: headerPath }) })
5632
+ /* @__PURE__ */ jsx33("div", { className: getClassName15("title"), children: /* @__PURE__ */ jsxs14(Heading, { rank: "2", size: "xs", children: [
5633
+ /* @__PURE__ */ jsx33("span", { style: { fontSize: "11px", textTransform: "uppercase", letterSpacing: "0.08em", fontWeight: 600 }, children: headerTitle || rootTitle || "Page" }),
5634
+ headerPath && /* @__PURE__ */ jsx33(Fragment11, { children: /* @__PURE__ */ jsx33("code", { className: getClassName15("path"), style: { fontSize: "10px", opacity: 0.6, marginLeft: "8px" }, children: headerPath }) })
5274
5635
  ] }) })
5275
5636
  ] }),
5276
- /* @__PURE__ */ jsx30("div", { className: getClassName15("viewportTools"), children: /* @__PURE__ */ jsx30(
5637
+ /* @__PURE__ */ jsx33("div", { className: getClassName15("viewportTools"), children: /* @__PURE__ */ jsx33(
5277
5638
  ViewportControls,
5278
5639
  {
5279
5640
  fullScreen: _experimentalFullScreenCanvas,
@@ -5299,8 +5660,8 @@ var HeaderInner = ({
5299
5660
  }
5300
5661
  }
5301
5662
  ) }),
5302
- /* @__PURE__ */ jsxs11("div", { className: getClassName15("tools"), children: [
5303
- /* @__PURE__ */ jsx30("div", { className: getClassName15("menuButton"), children: /* @__PURE__ */ jsx30(
5663
+ /* @__PURE__ */ jsxs14("div", { className: getClassName15("tools"), children: [
5664
+ /* @__PURE__ */ jsx33("div", { className: getClassName15("menuButton"), children: /* @__PURE__ */ jsx33(
5304
5665
  IconButton,
5305
5666
  {
5306
5667
  type: "button",
@@ -5308,34 +5669,34 @@ var HeaderInner = ({
5308
5669
  return setMenuOpen(!menuOpen);
5309
5670
  },
5310
5671
  title: "Toggle menu bar",
5311
- children: menuOpen ? /* @__PURE__ */ jsx30(ChevronUp, { size: 16, focusable: "false" }) : /* @__PURE__ */ jsx30(ChevronDown, { size: 16, focusable: "false" })
5672
+ children: menuOpen ? /* @__PURE__ */ jsx33(ChevronUp, { size: 16, focusable: "false" }) : /* @__PURE__ */ jsx33(ChevronDown, { size: 16, focusable: "false" })
5312
5673
  }
5313
5674
  ) }),
5314
- /* @__PURE__ */ jsx30(
5675
+ /* @__PURE__ */ jsx33(
5315
5676
  MenuBar,
5316
5677
  {
5317
5678
  dispatch,
5318
5679
  onPublish,
5319
5680
  menuOpen,
5320
- renderHeaderActions: () => /* @__PURE__ */ jsxs11(CustomHeaderActions, { children: [
5321
- /* @__PURE__ */ jsx30(
5681
+ renderHeaderActions: () => /* @__PURE__ */ jsxs14(CustomHeaderActions, { children: [
5682
+ /* @__PURE__ */ jsx33(
5322
5683
  Button,
5323
5684
  {
5324
5685
  href: headerPath || "/",
5325
5686
  newTab: true,
5326
5687
  variant: "secondary",
5327
- icon: /* @__PURE__ */ jsx30(ExternalLink, { size: 14 }),
5688
+ icon: /* @__PURE__ */ jsx33(ExternalLink, { size: 14 }),
5328
5689
  children: "View Web"
5329
5690
  }
5330
5691
  ),
5331
- /* @__PURE__ */ jsx30(
5692
+ /* @__PURE__ */ jsx33(
5332
5693
  Button,
5333
5694
  {
5334
5695
  onClick: () => {
5335
5696
  const data = appStore.getState().state.data;
5336
5697
  onPublish && onPublish(data);
5337
5698
  },
5338
- icon: /* @__PURE__ */ jsx30(Globe, { size: 14 }),
5699
+ icon: /* @__PURE__ */ jsx33(Globe, { size: 14 }),
5339
5700
  children: "Publish"
5340
5701
  }
5341
5702
  )
@@ -5356,7 +5717,7 @@ var Header = memo6(HeaderInner);
5356
5717
  var styles_module_default17 = { "SidebarSection": "_SidebarSection_1oj6d_1", "SidebarSection-title": "_SidebarSection-title_1oj6d_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_1oj6d_38", "SidebarSection-content": "_SidebarSection-content_1oj6d_42", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_1oj6d_51", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_1oj6d_80", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_1oj6d_51", "SidebarSection-heading": "_SidebarSection-heading_1oj6d_92", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_1oj6d_96" };
5357
5718
 
5358
5719
  // components/SidebarSection/index.tsx
5359
- import { jsx as jsx31, jsxs as jsxs12 } from "react/jsx-runtime";
5720
+ import { jsx as jsx34, jsxs as jsxs15 } from "react/jsx-runtime";
5360
5721
  var getClassName16 = get_class_name_factory_default("SidebarSection", styles_module_default17);
5361
5722
  var SidebarSection = ({
5362
5723
  children,
@@ -5366,13 +5727,13 @@ var SidebarSection = ({
5366
5727
  noBorderTop,
5367
5728
  isLoading
5368
5729
  }) => {
5369
- return /* @__PURE__ */ jsxs12("div", { className: getClassName16({ noBorderTop }), style: { background }, children: [
5370
- /* @__PURE__ */ jsx31("div", { className: getClassName16("title"), children: /* @__PURE__ */ jsxs12("div", { className: getClassName16("breadcrumbs"), children: [
5371
- showBreadcrumbs && /* @__PURE__ */ jsx31(Breadcrumbs, {}),
5372
- /* @__PURE__ */ jsx31("div", { className: getClassName16("heading"), children: /* @__PURE__ */ jsx31(Heading, { rank: "2", size: "xs", children: title }) })
5730
+ return /* @__PURE__ */ jsxs15("div", { className: getClassName16({ noBorderTop }), style: { background }, children: [
5731
+ /* @__PURE__ */ jsx34("div", { className: getClassName16("title"), children: /* @__PURE__ */ jsxs15("div", { className: getClassName16("breadcrumbs"), children: [
5732
+ showBreadcrumbs && /* @__PURE__ */ jsx34(Breadcrumbs, {}),
5733
+ /* @__PURE__ */ jsx34("div", { className: getClassName16("heading"), children: /* @__PURE__ */ jsx34(Heading, { rank: "2", size: "xs", children: title }) })
5373
5734
  ] }) }),
5374
- /* @__PURE__ */ jsx31("div", { className: getClassName16("content"), children }),
5375
- isLoading && /* @__PURE__ */ jsx31("div", { className: getClassName16("loadingOverlay"), children: /* @__PURE__ */ jsx31(Loader, { size: 32 }) })
5735
+ /* @__PURE__ */ jsx34("div", { className: getClassName16("content"), children }),
5736
+ isLoading && /* @__PURE__ */ jsx34("div", { className: getClassName16("loadingOverlay"), children: /* @__PURE__ */ jsx34(Loader, { size: 32 }) })
5376
5737
  ] });
5377
5738
  };
5378
5739
 
@@ -5382,7 +5743,7 @@ import {
5382
5743
  useEffect as useEffect19,
5383
5744
  useMemo as useMemo19,
5384
5745
  useRef as useRef15,
5385
- useState as useState14
5746
+ useState as useState15
5386
5747
  } from "react";
5387
5748
 
5388
5749
  // css-module:/home/crediblemark/Project/Credibuild/components/CredBuild/components/Canvas/styles.module.css#css-module
@@ -5390,7 +5751,7 @@ var styles_module_default18 = { "CredBuildCanvas": "_CredBuildCanvas_1ivia_1", "
5390
5751
 
5391
5752
  // components/CredBuild/components/Canvas/index.tsx
5392
5753
  import { useShallow as useShallow7 } from "zustand/react/shallow";
5393
- import { Fragment as Fragment12, jsx as jsx32, jsxs as jsxs13 } from "react/jsx-runtime";
5754
+ import { Fragment as Fragment12, jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
5394
5755
  var getClassName17 = get_class_name_factory_default("CredBuildCanvas", styles_module_default18);
5395
5756
  var ZOOM_ON_CHANGE = true;
5396
5757
  var TRANSITION_DURATION = 150;
@@ -5434,10 +5795,10 @@ var Canvas = () => {
5434
5795
  viewports: s.state.ui.viewports
5435
5796
  }))
5436
5797
  );
5437
- const [showTransition, setShowTransition] = useState14(false);
5798
+ const [showTransition, setShowTransition] = useState15(false);
5438
5799
  const isResizingRef = useRef15(false);
5439
5800
  const defaultRender = useMemo19(() => {
5440
- const CredBuildDefault = ({ children }) => /* @__PURE__ */ jsx32(Fragment12, { children });
5801
+ const CredBuildDefault = ({ children }) => /* @__PURE__ */ jsx35(Fragment12, { children });
5441
5802
  return CredBuildDefault;
5442
5803
  }, []);
5443
5804
  const CustomPreview = useMemo19(
@@ -5497,7 +5858,7 @@ var Canvas = () => {
5497
5858
  resizeObserver.disconnect();
5498
5859
  };
5499
5860
  }, [frameRef, resetAutoZoom]);
5500
- const [showLoader, setShowLoader] = useState14(false);
5861
+ const [showLoader, setShowLoader] = useState15(false);
5501
5862
  useEffect19(() => {
5502
5863
  setTimeout(() => {
5503
5864
  setShowLoader(true);
@@ -5558,7 +5919,7 @@ var Canvas = () => {
5558
5919
  uiProp?.viewports,
5559
5920
  frameRef
5560
5921
  ]);
5561
- return /* @__PURE__ */ jsx32(
5922
+ return /* @__PURE__ */ jsx35(
5562
5923
  "div",
5563
5924
  {
5564
5925
  className: getClassName17({
@@ -5576,8 +5937,8 @@ var Canvas = () => {
5576
5937
  });
5577
5938
  }
5578
5939
  },
5579
- children: /* @__PURE__ */ jsxs13("div", { className: getClassName17("inner"), ref: frameRef, children: [
5580
- /* @__PURE__ */ jsx32(
5940
+ children: /* @__PURE__ */ jsxs16("div", { className: getClassName17("inner"), ref: frameRef, children: [
5941
+ /* @__PURE__ */ jsx35(
5581
5942
  "div",
5582
5943
  {
5583
5944
  className: getClassName17("root"),
@@ -5595,19 +5956,19 @@ var Canvas = () => {
5595
5956
  setShowTransition(false);
5596
5957
  isResizingRef.current = false;
5597
5958
  },
5598
- children: /* @__PURE__ */ jsx32(CustomPreview, { children: /* @__PURE__ */ jsx32(Preview, {}) })
5959
+ children: /* @__PURE__ */ jsx35(CustomPreview, { children: /* @__PURE__ */ jsx35(Preview, {}) })
5599
5960
  }
5600
5961
  ),
5601
- /* @__PURE__ */ jsx32("div", { className: getClassName17("loader"), children: /* @__PURE__ */ jsx32(Loader, { size: 24 }) })
5962
+ /* @__PURE__ */ jsx35("div", { className: getClassName17("loader"), children: /* @__PURE__ */ jsx35(Loader, { size: 24 }) })
5602
5963
  ] })
5603
5964
  }
5604
5965
  );
5605
5966
  };
5606
5967
 
5607
5968
  // lib/use-sidebar-resize.ts
5608
- import { useCallback as useCallback19, useEffect as useEffect20, useRef as useRef16, useState as useState15 } from "react";
5969
+ import { useCallback as useCallback19, useEffect as useEffect20, useRef as useRef16, useState as useState16 } from "react";
5609
5970
  function useSidebarResize(position, dispatch) {
5610
- const [width, setWidth] = useState15(null);
5971
+ const [width, setWidth] = useState16(null);
5611
5972
  const sidebarRef = useRef16(null);
5612
5973
  const storeWidth = useAppStore(
5613
5974
  (s) => position === "left" ? s.state.ui.leftSideBarWidth : s.state.ui.rightSideBarWidth
@@ -5692,7 +6053,7 @@ import { useCallback as useCallback20, useRef as useRef17 } from "react";
5692
6053
  var styles_module_default19 = { "ResizeHandle": "_ResizeHandle_144bf_2", "ResizeHandle--left": "_ResizeHandle--left_144bf_16", "ResizeHandle--right": "_ResizeHandle--right_144bf_20" };
5693
6054
 
5694
6055
  // components/CredBuild/components/ResizeHandle/index.tsx
5695
- import { jsx as jsx33 } from "react/jsx-runtime";
6056
+ import { jsx as jsx36 } from "react/jsx-runtime";
5696
6057
  var getClassName18 = get_class_name_factory_default("ResizeHandle", styles_module_default19);
5697
6058
  var ResizeHandle = ({
5698
6059
  position,
@@ -5749,7 +6110,7 @@ var ResizeHandle = ({
5749
6110
  },
5750
6111
  [handleMouseMove, handleMouseUp, sidebarRef]
5751
6112
  );
5752
- return /* @__PURE__ */ jsx33(
6113
+ return /* @__PURE__ */ jsx36(
5753
6114
  "div",
5754
6115
  {
5755
6116
  ref: handleRef,
@@ -5763,7 +6124,7 @@ var ResizeHandle = ({
5763
6124
  var styles_module_default20 = { "Sidebar": "_Sidebar_1kcif_1", "Sidebar--isVisible": "_Sidebar--isVisible_1kcif_13", "Sidebar--left": "_Sidebar--left_1kcif_17", "Sidebar--right": "_Sidebar--right_1kcif_29", "Sidebar-resizeHandle": "_Sidebar-resizeHandle_1kcif_42" };
5764
6125
 
5765
6126
  // components/CredBuild/components/Sidebar/index.tsx
5766
- import { Fragment as Fragment13, jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
6127
+ import { Fragment as Fragment13, jsx as jsx37, jsxs as jsxs17 } from "react/jsx-runtime";
5767
6128
  var getClassName19 = get_class_name_factory_default("Sidebar", styles_module_default20);
5768
6129
  var Sidebar = ({
5769
6130
  position,
@@ -5773,8 +6134,8 @@ var Sidebar = ({
5773
6134
  onResizeEnd,
5774
6135
  children
5775
6136
  }) => {
5776
- return /* @__PURE__ */ jsxs14(Fragment13, { children: [
5777
- /* @__PURE__ */ jsx34(
6137
+ return /* @__PURE__ */ jsxs17(Fragment13, { children: [
6138
+ /* @__PURE__ */ jsx37(
5778
6139
  "div",
5779
6140
  {
5780
6141
  ref: sidebarRef,
@@ -5782,7 +6143,7 @@ var Sidebar = ({
5782
6143
  children
5783
6144
  }
5784
6145
  ),
5785
- /* @__PURE__ */ jsx34("div", { className: `${getClassName19("resizeHandle")}`, children: /* @__PURE__ */ jsx34(
6146
+ /* @__PURE__ */ jsx37("div", { className: `${getClassName19("resizeHandle")}`, children: /* @__PURE__ */ jsx37(
5786
6147
  ResizeHandle,
5787
6148
  {
5788
6149
  position,
@@ -5856,7 +6217,7 @@ var useDeleteHotkeys = () => {
5856
6217
  var styles_module_default21 = { "Nav": "_Nav_wbh7e_1", "Nav-list": "_Nav-list_wbh7e_9", "CredBuildHeader-path": "_CredBuildHeader-path_wbh7e_20", "NavItem": "_NavItem_wbh7e_38", "NavItem-link": "_NavItem-link_wbh7e_43", "NavItem-linkIcon": "_NavItem-linkIcon_wbh7e_64", "NavItem--active": "_NavItem--active_wbh7e_77", "NavItem--mobileOnly": "_NavItem--mobileOnly_wbh7e_90", "NavItem--desktopOnly": "_NavItem--desktopOnly_wbh7e_95" };
5857
6218
 
5858
6219
  // components/CredBuild/components/Nav/index.tsx
5859
- import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
6220
+ import { jsx as jsx38, jsxs as jsxs18 } from "react/jsx-runtime";
5860
6221
  var getClassName20 = get_class_name_factory_default("Nav", styles_module_default21);
5861
6222
  var getClassNameItem2 = get_class_name_factory_default("NavItem", styles_module_default21);
5862
6223
  var MenuItem = ({
@@ -5867,7 +6228,7 @@ var MenuItem = ({
5867
6228
  mobileOnly,
5868
6229
  desktopOnly
5869
6230
  }) => {
5870
- return /* @__PURE__ */ jsx35(
6231
+ return /* @__PURE__ */ jsx38(
5871
6232
  "li",
5872
6233
  {
5873
6234
  className: getClassNameItem2({
@@ -5875,9 +6236,9 @@ var MenuItem = ({
5875
6236
  mobileOnly,
5876
6237
  desktopOnly
5877
6238
  }),
5878
- children: onClick && /* @__PURE__ */ jsxs15("div", { className: getClassNameItem2("link"), onClick, children: [
5879
- icon && /* @__PURE__ */ jsx35("span", { className: getClassNameItem2("linkIcon"), children: icon }),
5880
- /* @__PURE__ */ jsx35("span", { className: getClassNameItem2("linkLabel"), children: label })
6239
+ children: onClick && /* @__PURE__ */ jsxs18("div", { className: getClassNameItem2("link"), onClick, children: [
6240
+ icon && /* @__PURE__ */ jsx38("span", { className: getClassNameItem2("linkIcon"), children: icon }),
6241
+ /* @__PURE__ */ jsx38("span", { className: getClassNameItem2("linkLabel"), children: label })
5881
6242
  ] })
5882
6243
  }
5883
6244
  );
@@ -5886,14 +6247,14 @@ var Nav = ({
5886
6247
  items,
5887
6248
  mobileActions
5888
6249
  }) => {
5889
- return /* @__PURE__ */ jsxs15("nav", { className: getClassName20(), children: [
5890
- /* @__PURE__ */ jsx35("ul", { className: getClassName20("list"), children: Object.entries(items).map(([key, item]) => /* @__PURE__ */ jsx35(MenuItem, { ...item }, key)) }),
5891
- mobileActions && /* @__PURE__ */ jsx35("div", { className: getClassName20("mobileActions"), children: mobileActions })
6250
+ return /* @__PURE__ */ jsxs18("nav", { className: getClassName20(), children: [
6251
+ /* @__PURE__ */ jsx38("ul", { className: getClassName20("list"), children: Object.entries(items).map(([key, item]) => /* @__PURE__ */ jsx38(MenuItem, { ...item }, key)) }),
6252
+ mobileActions && /* @__PURE__ */ jsx38("div", { className: getClassName20("mobileActions"), children: mobileActions })
5892
6253
  ] });
5893
6254
  };
5894
6255
 
5895
6256
  // components/CredBuild/components/Layout/index.tsx
5896
- import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
6257
+ import { jsx as jsx39, jsxs as jsxs19 } from "react/jsx-runtime";
5897
6258
  var getClassName21 = get_class_name_factory_default("CredBuild", styles_module_default13);
5898
6259
  var getLayoutClassName = get_class_name_factory_default("CredBuildLayout", styles_module_default13);
5899
6260
  var getPluginTabClassName = get_class_name_factory_default("CredBuildPluginTab", styles_module_default13);
@@ -5901,14 +6262,14 @@ var FieldSideBar = () => {
5901
6262
  const title = useAppStore(
5902
6263
  (s) => s.selectedItem ? s.config.components[s.selectedItem.type]?.["label"] ?? s.selectedItem.type.toString() : s.config.root?.label || "Page"
5903
6264
  );
5904
- return /* @__PURE__ */ jsx36(SidebarSection, { noBorderTop: true, showBreadcrumbs: true, title, children: /* @__PURE__ */ jsx36(Fields, {}) });
6265
+ return /* @__PURE__ */ jsx39(SidebarSection, { noBorderTop: true, showBreadcrumbs: true, title, children: /* @__PURE__ */ jsx39(Fields, {}) });
5905
6266
  };
5906
6267
  var PluginTab = ({
5907
6268
  children,
5908
6269
  visible,
5909
6270
  mobileOnly
5910
6271
  }) => {
5911
- return /* @__PURE__ */ jsx36("div", { className: getPluginTabClassName({ visible, mobileOnly }), children: /* @__PURE__ */ jsx36("div", { className: getPluginTabClassName("body"), children }) });
6272
+ return /* @__PURE__ */ jsx39("div", { className: getPluginTabClassName({ visible, mobileOnly }), children: /* @__PURE__ */ jsx39("div", { className: getPluginTabClassName("body"), children }) });
5912
6273
  };
5913
6274
  var Layout = ({ children }) => {
5914
6275
  const {
@@ -5976,8 +6337,8 @@ var Layout = ({ children }) => {
5976
6337
  () => overrides.credbuild || DefaultOverride,
5977
6338
  [overrides]
5978
6339
  );
5979
- const [mounted, setMounted] = useState16(false);
5980
- const [theme, setTheme] = useState16("dark");
6340
+ const [mounted, setMounted] = useState17(false);
6341
+ const [theme, setTheme] = useState17("dark");
5981
6342
  useEffect22(() => {
5982
6343
  setMounted(true);
5983
6344
  const savedTheme = localStorage.getItem("credbuild-theme");
@@ -6017,7 +6378,7 @@ var Layout = ({ children }) => {
6017
6378
  const setUi = useAppStore((s) => s.setUi);
6018
6379
  const currentPlugin = useAppStore((s) => s.state.ui.plugin?.current);
6019
6380
  const appStoreApi = useAppStoreApi();
6020
- const [mobilePanelHeightMode, setMobilePanelHeightMode] = useState16("toggle");
6381
+ const [mobilePanelHeightMode, setMobilePanelHeightMode] = useState17("toggle");
6021
6382
  const hasLegacySideBarPlugin = useMemo20(
6022
6383
  () => !!plugins?.find((p) => p.name === "legacy-side-bar"),
6023
6384
  [plugins]
@@ -6040,7 +6401,7 @@ var Layout = ({ children }) => {
6040
6401
  }
6041
6402
  details[plugin.name] = {
6042
6403
  label: plugin.label ?? plugin.name,
6043
- icon: plugin.icon ?? /* @__PURE__ */ jsx36(ToyBrick, {}),
6404
+ icon: plugin.icon ?? /* @__PURE__ */ jsx39(ToyBrick, {}),
6044
6405
  onClick: () => {
6045
6406
  setMobilePanelHeightMode(plugin.mobilePanelHeight ?? "toggle");
6046
6407
  if (plugin.name === currentPlugin) {
@@ -6077,7 +6438,7 @@ var Layout = ({ children }) => {
6077
6438
  const mobilePanelExpanded = useAppStore(
6078
6439
  (s) => s.state.ui.mobilePanelExpanded ?? false
6079
6440
  );
6080
- return /* @__PURE__ */ jsxs16(
6441
+ return /* @__PURE__ */ jsxs19(
6081
6442
  "div",
6082
6443
  {
6083
6444
  className: `CredBuild ${theme === "dark" ? "dark" : ""} ${getClassName21({
@@ -6087,7 +6448,7 @@ var Layout = ({ children }) => {
6087
6448
  id: instanceId,
6088
6449
  style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
6089
6450
  children: [
6090
- /* @__PURE__ */ jsx36(DragDropContext, { disableAutoScroll: dnd?.disableAutoScroll, children: /* @__PURE__ */ jsx36(CustomCredBuild, { children: children || /* @__PURE__ */ jsx36(FrameProvider, { children: /* @__PURE__ */ jsx36(
6451
+ /* @__PURE__ */ jsx39(DragDropContext, { disableAutoScroll: dnd?.disableAutoScroll, children: /* @__PURE__ */ jsx39(CustomCredBuild, { children: children || /* @__PURE__ */ jsx39(FrameProvider, { children: /* @__PURE__ */ jsx39(
6091
6452
  "div",
6092
6453
  {
6093
6454
  className: getLayoutClassName({
@@ -6099,14 +6460,14 @@ var Layout = ({ children }) => {
6099
6460
  mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content"
6100
6461
  }),
6101
6462
  style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
6102
- children: /* @__PURE__ */ jsxs16(
6463
+ children: /* @__PURE__ */ jsxs19(
6103
6464
  "div",
6104
6465
  {
6105
6466
  className: getLayoutClassName("inner"),
6106
6467
  style: layoutOptions,
6107
6468
  children: [
6108
- /* @__PURE__ */ jsx36("div", { className: getLayoutClassName("header"), children: /* @__PURE__ */ jsx36(Header, { theme, hidePlugins: hasLegacySideBarPlugin }) }),
6109
- /* @__PURE__ */ jsxs16(
6469
+ /* @__PURE__ */ jsx39("div", { className: getLayoutClassName("header"), children: /* @__PURE__ */ jsx39(Header, { theme, hidePlugins: hasLegacySideBarPlugin }) }),
6470
+ /* @__PURE__ */ jsxs19(
6110
6471
  Sidebar,
6111
6472
  {
6112
6473
  position: "left",
@@ -6115,11 +6476,11 @@ var Layout = ({ children }) => {
6115
6476
  onResize: setLeftWidth,
6116
6477
  onResizeEnd: handleLeftSidebarResizeEnd,
6117
6478
  children: [
6118
- /* @__PURE__ */ jsx36("div", { className: getLayoutClassName("nav"), children: /* @__PURE__ */ jsx36(
6479
+ /* @__PURE__ */ jsx39("div", { className: getLayoutClassName("nav"), children: /* @__PURE__ */ jsx39(
6119
6480
  Nav,
6120
6481
  {
6121
6482
  items: pluginItems,
6122
- mobileActions: typeof window !== "undefined" && !window.matchMedia("(min-width: 638px)").matches && leftSideBarVisible && mobilePanelHeightMode === "toggle" && /* @__PURE__ */ jsx36(
6483
+ mobileActions: typeof window !== "undefined" && !window.matchMedia("(min-width: 638px)").matches && leftSideBarVisible && mobilePanelHeightMode === "toggle" && /* @__PURE__ */ jsx39(
6123
6484
  IconButton,
6124
6485
  {
6125
6486
  type: "button",
@@ -6129,18 +6490,18 @@ var Layout = ({ children }) => {
6129
6490
  mobilePanelExpanded: !mobilePanelExpanded
6130
6491
  });
6131
6492
  },
6132
- children: mobilePanelExpanded ? /* @__PURE__ */ jsx36(Minimize2, { size: 21 }) : /* @__PURE__ */ jsx36(Maximize2, { size: 21 })
6493
+ children: mobilePanelExpanded ? /* @__PURE__ */ jsx39(Minimize2, { size: 21 }) : /* @__PURE__ */ jsx39(Maximize2, { size: 21 })
6133
6494
  }
6134
6495
  )
6135
6496
  }
6136
6497
  ) }),
6137
6498
  Object.entries(pluginItems).map(
6138
- ([id, { mobileOnly, render: Render2, label }]) => /* @__PURE__ */ jsx36(
6499
+ ([id, { mobileOnly, render: Render2, label }]) => /* @__PURE__ */ jsx39(
6139
6500
  PluginTab,
6140
6501
  {
6141
6502
  visible: currentPlugin === id,
6142
6503
  mobileOnly,
6143
- children: /* @__PURE__ */ jsx36(Render2, {})
6504
+ children: /* @__PURE__ */ jsx39(Render2, {})
6144
6505
  },
6145
6506
  id
6146
6507
  )
@@ -6148,8 +6509,8 @@ var Layout = ({ children }) => {
6148
6509
  ]
6149
6510
  }
6150
6511
  ),
6151
- /* @__PURE__ */ jsx36(Canvas, {}),
6152
- !hasDesktopFieldsPlugin && /* @__PURE__ */ jsx36(
6512
+ /* @__PURE__ */ jsx39(Canvas, {}),
6513
+ !hasDesktopFieldsPlugin && /* @__PURE__ */ jsx39(
6153
6514
  Sidebar,
6154
6515
  {
6155
6516
  position: "right",
@@ -6157,7 +6518,7 @@ var Layout = ({ children }) => {
6157
6518
  isVisible: rightSideBarVisible,
6158
6519
  onResize: setRightWidth,
6159
6520
  onResizeEnd: handleRightSidebarResizeEnd,
6160
- children: /* @__PURE__ */ jsx36(FieldSideBar, {})
6521
+ children: /* @__PURE__ */ jsx39(FieldSideBar, {})
6161
6522
  }
6162
6523
  )
6163
6524
  ]
@@ -6165,14 +6526,14 @@ var Layout = ({ children }) => {
6165
6526
  )
6166
6527
  }
6167
6528
  ) }) }) }),
6168
- /* @__PURE__ */ jsx36("div", { id: "credbuild-portal-root", className: getClassName21("portal") })
6529
+ /* @__PURE__ */ jsx39("div", { id: "credbuild-portal-root", className: getClassName21("portal") })
6169
6530
  ]
6170
6531
  }
6171
6532
  );
6172
6533
  };
6173
6534
 
6174
6535
  // components/CredBuild/index.tsx
6175
- import { jsx as jsx37 } from "react/jsx-runtime";
6536
+ import { jsx as jsx40 } from "react/jsx-runtime";
6176
6537
  function CredBuildProvider({ children }) {
6177
6538
  const {
6178
6539
  config,
@@ -6199,7 +6560,7 @@ function CredBuildProvider({ children }) {
6199
6560
  }),
6200
6561
  [_iframe]
6201
6562
  );
6202
- const [generatedAppState] = useState17(() => {
6563
+ const [generatedAppState] = useState18(() => {
6203
6564
  const initial = { ...defaultAppState.ui, ...initialUi };
6204
6565
  let clientUiState = {};
6205
6566
  if (Object.keys(initialData?.root || {}).length > 0 && !initialData?.root?.props) {
@@ -6246,7 +6607,7 @@ function CredBuildProvider({ children }) {
6246
6607
  return walkAppState(newAppState, config);
6247
6608
  });
6248
6609
  const { appendData = true } = _initialHistory || {};
6249
- const [blendedHistories] = useState17(
6610
+ const [blendedHistories] = useState18(
6250
6611
  [
6251
6612
  ..._initialHistory?.histories || [],
6252
6613
  ...appendData ? [{ state: generatedAppState }] : []
@@ -6315,7 +6676,7 @@ function CredBuildProvider({ children }) {
6315
6676
  loadedFieldTransforms
6316
6677
  ]
6317
6678
  );
6318
- const [appStore] = useState17(
6679
+ const [appStore] = useState18(
6319
6680
  () => createAppStore(generateAppStore(initialAppState))
6320
6681
  );
6321
6682
  useEffect23(() => {
@@ -6355,10 +6716,10 @@ function CredBuildProvider({ children }) {
6355
6716
  resolveAndCommitData();
6356
6717
  }, 0);
6357
6718
  }, [appStore]);
6358
- return /* @__PURE__ */ jsx37(appStoreContext.Provider, { value: appStore, children: /* @__PURE__ */ jsx37(UseCredBuildStoreContext.Provider, { value: uCredBuildStore, children }) });
6719
+ return /* @__PURE__ */ jsx40(appStoreContext.Provider, { value: appStore, children: /* @__PURE__ */ jsx40(UseCredBuildStoreContext.Provider, { value: uCredBuildStore, children }) });
6359
6720
  }
6360
6721
  function CredBuild(props) {
6361
- return /* @__PURE__ */ jsx37(PropsProvider, { ...props, children: /* @__PURE__ */ jsx37(CredBuildProvider, { ...props, children: /* @__PURE__ */ jsx37(Layout, { children: props.children }) }) });
6722
+ return /* @__PURE__ */ jsx40(PropsProvider, { ...props, children: /* @__PURE__ */ jsx40(CredBuildProvider, { ...props, children: /* @__PURE__ */ jsx40(Layout, { children: props.children }) }) });
6362
6723
  }
6363
6724
  CredBuild.Components = Components;
6364
6725
  CredBuild.Fields = Fields;
@@ -6367,17 +6728,20 @@ CredBuild.Outline = Outline;
6367
6728
  CredBuild.Preview = Preview;
6368
6729
 
6369
6730
  // plugins/legacy-side-bar/index.tsx
6370
- import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
6731
+ import { jsx as jsx41, jsxs as jsxs20 } from "react/jsx-runtime";
6371
6732
  var legacySideBarPlugin = () => ({
6372
6733
  name: "legacy-side-bar",
6373
- render: () => /* @__PURE__ */ jsxs17("div", { style: { overflowY: "auto" }, children: [
6374
- /* @__PURE__ */ jsx38(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ jsx38(Components, {}) }),
6375
- /* @__PURE__ */ jsx38(SidebarSection, { title: "Outline", children: /* @__PURE__ */ jsx38(Outline, {}) })
6734
+ render: () => /* @__PURE__ */ jsxs20("div", { style: { overflowY: "auto" }, children: [
6735
+ /* @__PURE__ */ jsx41(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ jsx41(Components, {}) }),
6736
+ /* @__PURE__ */ jsx41(SidebarSection, { title: "Outline", children: /* @__PURE__ */ jsx41(Outline, {}) })
6376
6737
  ] })
6377
6738
  });
6378
6739
 
6379
6740
  export {
6380
6741
  overrideKeys,
6742
+ SliderField,
6743
+ ResponsiveSliderField,
6744
+ ColorPickerField,
6381
6745
  Drawer,
6382
6746
  registerOverlayPortal,
6383
6747
  DropZone,