@crediblemark/build 0.25.6 → 0.25.8

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 (59) hide show
  1. package/dist/ArrayField-HYHS4HCO.mjs +17 -0
  2. package/dist/{ArrayField-PAJW74AC.css → ArrayField-MCFJLKAL.css} +15 -15
  3. package/dist/{Editor-Y342RWPN.css → Editor-CVT4RKSU.css} +7 -7
  4. package/dist/{Editor-OFA3KX3N.mjs → Editor-P3UUWNSZ.mjs} +9 -11
  5. package/dist/ObjectField-4N5XWAFL.mjs +17 -0
  6. package/dist/{ObjectField-WACQHQ4N.css → ObjectField-YPHZU7G2.css} +15 -15
  7. package/dist/{Render-HVM2KISU.css → Render-DOE2LXKX.css} +1 -1
  8. package/dist/{Render-5WYR4VZX.mjs → Render-I6PZ5MEA.mjs} +1 -1
  9. package/dist/{actions-LaZpJ1KE.d.mts → actions-CKSDxt4l.d.mts} +1 -1
  10. package/dist/{actions-LaZpJ1KE.d.ts → actions-CKSDxt4l.d.ts} +1 -1
  11. package/dist/{chunk-QHJGER7I.mjs → chunk-44PQTFGV.mjs} +7 -9
  12. package/dist/{chunk-STIUFJT2.mjs → chunk-AZFZRLP7.mjs} +12 -12
  13. package/dist/{chunk-JX7LICWE.mjs → chunk-E4F5M5JH.mjs} +2 -2
  14. package/dist/chunk-HHKM5MBJ.mjs +3163 -0
  15. package/dist/{chunk-H6RPI3T6.mjs → chunk-ISXFLTBM.mjs} +1 -1
  16. package/dist/{chunk-MZXW5F5R.mjs → chunk-KN26YZZJ.mjs} +286 -131
  17. package/dist/chunk-MWCFPGI6.mjs +4807 -0
  18. package/dist/{chunk-64A37UUC.mjs → chunk-O44M27KT.mjs} +442 -7
  19. package/dist/{chunk-XAD7XPP2.mjs → chunk-P2AZFZ7Q.mjs} +3 -3
  20. package/dist/{chunk-SLKHXT3Q.mjs → chunk-PFHKXXSV.mjs} +1 -1
  21. package/dist/{chunk-RUJOMPX6.mjs → chunk-S32JZ2HU.mjs} +1 -1
  22. package/dist/{chunk-KAOWYQIB.mjs → chunk-T2LBDQLG.mjs} +12 -12
  23. package/dist/{chunk-4NZUDTR6.mjs → chunk-XLRMLBFR.mjs} +1 -1
  24. package/dist/{chunk-WSTUSWZT.mjs → chunk-Z7DDX2XU.mjs} +2 -2
  25. package/dist/{full-ECZCK3RE.mjs → full-3VRJOFG5.mjs} +6 -8
  26. package/dist/{full-PLJRDIMB.css → full-C7RVGAUA.css} +6 -6
  27. package/dist/{index-CD3PszvP.d.mts → index-Ds4Dkkyr.d.mts} +1 -1
  28. package/dist/{index-Bj2x5pZ7.d.ts → index-DwajIHZf.d.ts} +1 -1
  29. package/dist/index.css +231 -43
  30. package/dist/index.d.mts +8 -40
  31. package/dist/index.d.ts +8 -40
  32. package/dist/index.js +1306 -649
  33. package/dist/index.mjs +26 -26
  34. package/dist/internal.d.mts +2 -2
  35. package/dist/internal.d.ts +2 -2
  36. package/dist/internal.mjs +1 -2
  37. package/dist/{loaded-FY2TCG5Y.css → loaded-4FAPBCAU.css} +1 -1
  38. package/dist/{loaded-NRHNHJPM.mjs → loaded-C2JGMUXV.mjs} +3 -5
  39. package/dist/{loaded-5D7VRSXM.mjs → loaded-FJHWTGH6.mjs} +3 -5
  40. package/dist/{loaded-3MKTRGL5.mjs → loaded-NTEK7RT3.mjs} +3 -5
  41. package/dist/no-external.css +225 -39
  42. package/dist/no-external.d.mts +4 -4
  43. package/dist/no-external.d.ts +4 -4
  44. package/dist/no-external.js +1306 -649
  45. package/dist/no-external.mjs +26 -26
  46. package/dist/rsc.css +1421 -1
  47. package/dist/rsc.d.mts +2 -2
  48. package/dist/rsc.d.ts +2 -2
  49. package/dist/rsc.js +10328 -1011
  50. package/dist/rsc.mjs +21 -4
  51. package/dist/{walk-tree-BO8uRNcW.d.mts → walk-tree-B_jHFa3L.d.mts} +39 -2
  52. package/dist/{walk-tree-BEw6kTXm.d.ts → walk-tree-DHMRjk5Z.d.ts} +39 -2
  53. package/package.json +1 -1
  54. package/dist/ArrayField-PGZLQW7G.mjs +0 -19
  55. package/dist/ObjectField-N7ES6H3B.mjs +0 -19
  56. package/dist/chunk-7LXZOPYT.mjs +0 -445
  57. package/dist/chunk-HIE6KXP6.mjs +0 -455
  58. package/dist/chunk-SMAWAXVX.mjs +0 -139
  59. package/dist/chunk-W7LED3JG.mjs +0 -6890
@@ -74,16 +74,16 @@ var init_get_class_name_factory = __esm({
74
74
  }
75
75
  });
76
76
 
77
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ActionBar/styles.module.css/#css-module-data
77
+ // css-module:/home/runner/work/credbuild/credbuild/components/ActionBar/styles.module.css/#css-module-data
78
78
  var init_css_module_data = __esm({
79
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ActionBar/styles.module.css/#css-module-data"() {
79
+ "css-module:/home/runner/work/credbuild/credbuild/components/ActionBar/styles.module.css/#css-module-data"() {
80
80
  }
81
81
  });
82
82
 
83
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ActionBar/styles.module.css#css-module
83
+ // css-module:/home/runner/work/credbuild/credbuild/components/ActionBar/styles.module.css#css-module
84
84
  var styles_module_default;
85
85
  var init_styles_module = __esm({
86
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ActionBar/styles.module.css#css-module"() {
86
+ "css-module:/home/runner/work/credbuild/credbuild/components/ActionBar/styles.module.css#css-module"() {
87
87
  "use strict";
88
88
  init_react_import();
89
89
  init_css_module_data();
@@ -146,16 +146,16 @@ var init_ActionBar = __esm({
146
146
  }
147
147
  });
148
148
 
149
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/styles.module.css/#css-module-data
149
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data
150
150
  var init_css_module_data2 = __esm({
151
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/styles.module.css/#css-module-data"() {
151
+ "css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data"() {
152
152
  }
153
153
  });
154
154
 
155
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/styles.module.css#css-module
155
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css#css-module
156
156
  var styles_module_default2;
157
157
  var init_styles_module2 = __esm({
158
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/styles.module.css#css-module"() {
158
+ "css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css#css-module"() {
159
159
  "use strict";
160
160
  init_react_import();
161
161
  init_css_module_data2();
@@ -427,125 +427,152 @@ var init_chart_column = __esm({
427
427
  }
428
428
  });
429
429
 
430
+ // node_modules/lucide-react/dist/esm/icons/check.js
431
+ var __iconNode4, Check;
432
+ var init_check = __esm({
433
+ "node_modules/lucide-react/dist/esm/icons/check.js"() {
434
+ "use strict";
435
+ init_react_import();
436
+ init_createLucideIcon();
437
+ __iconNode4 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
438
+ Check = createLucideIcon("check", __iconNode4);
439
+ }
440
+ });
441
+
430
442
  // node_modules/lucide-react/dist/esm/icons/chevron-down.js
431
- var __iconNode4, ChevronDown;
443
+ var __iconNode5, ChevronDown;
432
444
  var init_chevron_down = __esm({
433
445
  "node_modules/lucide-react/dist/esm/icons/chevron-down.js"() {
434
446
  "use strict";
435
447
  init_react_import();
436
448
  init_createLucideIcon();
437
- __iconNode4 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
438
- ChevronDown = createLucideIcon("chevron-down", __iconNode4);
449
+ __iconNode5 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
450
+ ChevronDown = createLucideIcon("chevron-down", __iconNode5);
439
451
  }
440
452
  });
441
453
 
442
454
  // node_modules/lucide-react/dist/esm/icons/chevron-right.js
443
- var __iconNode5, ChevronRight;
455
+ var __iconNode6, ChevronRight;
444
456
  var init_chevron_right = __esm({
445
457
  "node_modules/lucide-react/dist/esm/icons/chevron-right.js"() {
446
458
  "use strict";
447
459
  init_react_import();
448
460
  init_createLucideIcon();
449
- __iconNode5 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
450
- ChevronRight = createLucideIcon("chevron-right", __iconNode5);
461
+ __iconNode6 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
462
+ ChevronRight = createLucideIcon("chevron-right", __iconNode6);
451
463
  }
452
464
  });
453
465
 
454
466
  // node_modules/lucide-react/dist/esm/icons/chevron-up.js
455
- var __iconNode6, ChevronUp;
467
+ var __iconNode7, ChevronUp;
456
468
  var init_chevron_up = __esm({
457
469
  "node_modules/lucide-react/dist/esm/icons/chevron-up.js"() {
458
470
  "use strict";
459
471
  init_react_import();
460
472
  init_createLucideIcon();
461
- __iconNode6 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
462
- ChevronUp = createLucideIcon("chevron-up", __iconNode6);
473
+ __iconNode7 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
474
+ ChevronUp = createLucideIcon("chevron-up", __iconNode7);
463
475
  }
464
476
  });
465
477
 
466
478
  // node_modules/lucide-react/dist/esm/icons/circle-check-big.js
467
- var __iconNode7, CircleCheckBig;
479
+ var __iconNode8, CircleCheckBig;
468
480
  var init_circle_check_big = __esm({
469
481
  "node_modules/lucide-react/dist/esm/icons/circle-check-big.js"() {
470
482
  "use strict";
471
483
  init_react_import();
472
484
  init_createLucideIcon();
473
- __iconNode7 = [
485
+ __iconNode8 = [
474
486
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
475
487
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
476
488
  ];
477
- CircleCheckBig = createLucideIcon("circle-check-big", __iconNode7);
489
+ CircleCheckBig = createLucideIcon("circle-check-big", __iconNode8);
490
+ }
491
+ });
492
+
493
+ // node_modules/lucide-react/dist/esm/icons/circle-check.js
494
+ var __iconNode9, CircleCheck;
495
+ var init_circle_check = __esm({
496
+ "node_modules/lucide-react/dist/esm/icons/circle-check.js"() {
497
+ "use strict";
498
+ init_react_import();
499
+ init_createLucideIcon();
500
+ __iconNode9 = [
501
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
502
+ ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
503
+ ];
504
+ CircleCheck = createLucideIcon("circle-check", __iconNode9);
478
505
  }
479
506
  });
480
507
 
481
508
  // node_modules/lucide-react/dist/esm/icons/code.js
482
- var __iconNode8, Code;
509
+ var __iconNode10, Code;
483
510
  var init_code = __esm({
484
511
  "node_modules/lucide-react/dist/esm/icons/code.js"() {
485
512
  "use strict";
486
513
  init_react_import();
487
514
  init_createLucideIcon();
488
- __iconNode8 = [
515
+ __iconNode10 = [
489
516
  ["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
490
517
  ["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
491
518
  ];
492
- Code = createLucideIcon("code", __iconNode8);
519
+ Code = createLucideIcon("code", __iconNode10);
493
520
  }
494
521
  });
495
522
 
496
523
  // node_modules/lucide-react/dist/esm/icons/copy.js
497
- var __iconNode9, Copy;
524
+ var __iconNode11, Copy;
498
525
  var init_copy = __esm({
499
526
  "node_modules/lucide-react/dist/esm/icons/copy.js"() {
500
527
  "use strict";
501
528
  init_react_import();
502
529
  init_createLucideIcon();
503
- __iconNode9 = [
530
+ __iconNode11 = [
504
531
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
505
532
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
506
533
  ];
507
- Copy = createLucideIcon("copy", __iconNode9);
534
+ Copy = createLucideIcon("copy", __iconNode11);
508
535
  }
509
536
  });
510
537
 
511
538
  // node_modules/lucide-react/dist/esm/icons/corner-left-up.js
512
- var __iconNode10, CornerLeftUp;
539
+ var __iconNode12, CornerLeftUp;
513
540
  var init_corner_left_up = __esm({
514
541
  "node_modules/lucide-react/dist/esm/icons/corner-left-up.js"() {
515
542
  "use strict";
516
543
  init_react_import();
517
544
  init_createLucideIcon();
518
- __iconNode10 = [
545
+ __iconNode12 = [
519
546
  ["path", { d: "M14 9 9 4 4 9", key: "1af5af" }],
520
547
  ["path", { d: "M20 20h-7a4 4 0 0 1-4-4V4", key: "1blwi3" }]
521
548
  ];
522
- CornerLeftUp = createLucideIcon("corner-left-up", __iconNode10);
549
+ CornerLeftUp = createLucideIcon("corner-left-up", __iconNode12);
523
550
  }
524
551
  });
525
552
 
526
553
  // node_modules/lucide-react/dist/esm/icons/credit-card.js
527
- var __iconNode11, CreditCard;
554
+ var __iconNode13, CreditCard;
528
555
  var init_credit_card = __esm({
529
556
  "node_modules/lucide-react/dist/esm/icons/credit-card.js"() {
530
557
  "use strict";
531
558
  init_react_import();
532
559
  init_createLucideIcon();
533
- __iconNode11 = [
560
+ __iconNode13 = [
534
561
  ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
535
562
  ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
536
563
  ];
537
- CreditCard = createLucideIcon("credit-card", __iconNode11);
564
+ CreditCard = createLucideIcon("credit-card", __iconNode13);
538
565
  }
539
566
  });
540
567
 
541
568
  // node_modules/lucide-react/dist/esm/icons/expand.js
542
- var __iconNode12, Expand;
569
+ var __iconNode14, Expand;
543
570
  var init_expand = __esm({
544
571
  "node_modules/lucide-react/dist/esm/icons/expand.js"() {
545
572
  "use strict";
546
573
  init_react_import();
547
574
  init_createLucideIcon();
548
- __iconNode12 = [
575
+ __iconNode14 = [
549
576
  ["path", { d: "m15 15 6 6", key: "1s409w" }],
550
577
  ["path", { d: "m15 9 6-6", key: "ko1vev" }],
551
578
  ["path", { d: "M21 16v5h-5", key: "1ck2sf" }],
@@ -555,34 +582,55 @@ var init_expand = __esm({
555
582
  ["path", { d: "M3 8V3h5", key: "1ln10m" }],
556
583
  ["path", { d: "M9 9 3 3", key: "v551iv" }]
557
584
  ];
558
- Expand = createLucideIcon("expand", __iconNode12);
585
+ Expand = createLucideIcon("expand", __iconNode14);
559
586
  }
560
587
  });
561
588
 
562
589
  // node_modules/lucide-react/dist/esm/icons/external-link.js
563
- var __iconNode13, ExternalLink;
590
+ var __iconNode15, ExternalLink;
564
591
  var init_external_link = __esm({
565
592
  "node_modules/lucide-react/dist/esm/icons/external-link.js"() {
566
593
  "use strict";
567
594
  init_react_import();
568
595
  init_createLucideIcon();
569
- __iconNode13 = [
596
+ __iconNode15 = [
570
597
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
571
598
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
572
599
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
573
600
  ];
574
- ExternalLink = createLucideIcon("external-link", __iconNode13);
601
+ ExternalLink = createLucideIcon("external-link", __iconNode15);
602
+ }
603
+ });
604
+
605
+ // node_modules/lucide-react/dist/esm/icons/eye.js
606
+ var __iconNode16, Eye;
607
+ var init_eye = __esm({
608
+ "node_modules/lucide-react/dist/esm/icons/eye.js"() {
609
+ "use strict";
610
+ init_react_import();
611
+ init_createLucideIcon();
612
+ __iconNode16 = [
613
+ [
614
+ "path",
615
+ {
616
+ d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
617
+ key: "1nclc0"
618
+ }
619
+ ],
620
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
621
+ ];
622
+ Eye = createLucideIcon("eye", __iconNode16);
575
623
  }
576
624
  });
577
625
 
578
626
  // node_modules/lucide-react/dist/esm/icons/file-text.js
579
- var __iconNode14, FileText;
627
+ var __iconNode17, FileText;
580
628
  var init_file_text = __esm({
581
629
  "node_modules/lucide-react/dist/esm/icons/file-text.js"() {
582
630
  "use strict";
583
631
  init_react_import();
584
632
  init_createLucideIcon();
585
- __iconNode14 = [
633
+ __iconNode17 = [
586
634
  [
587
635
  "path",
588
636
  {
@@ -595,18 +643,18 @@ var init_file_text = __esm({
595
643
  ["path", { d: "M16 13H8", key: "t4e002" }],
596
644
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
597
645
  ];
598
- FileText = createLucideIcon("file-text", __iconNode14);
646
+ FileText = createLucideIcon("file-text", __iconNode17);
599
647
  }
600
648
  });
601
649
 
602
650
  // node_modules/lucide-react/dist/esm/icons/grip-vertical.js
603
- var __iconNode15, GripVertical;
651
+ var __iconNode18, GripVertical;
604
652
  var init_grip_vertical = __esm({
605
653
  "node_modules/lucide-react/dist/esm/icons/grip-vertical.js"() {
606
654
  "use strict";
607
655
  init_react_import();
608
656
  init_createLucideIcon();
609
- __iconNode15 = [
657
+ __iconNode18 = [
610
658
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
611
659
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
612
660
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
@@ -614,105 +662,105 @@ var init_grip_vertical = __esm({
614
662
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
615
663
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
616
664
  ];
617
- GripVertical = createLucideIcon("grip-vertical", __iconNode15);
665
+ GripVertical = createLucideIcon("grip-vertical", __iconNode18);
618
666
  }
619
667
  });
620
668
 
621
669
  // node_modules/lucide-react/dist/esm/icons/hash.js
622
- var __iconNode16, Hash;
670
+ var __iconNode19, Hash;
623
671
  var init_hash = __esm({
624
672
  "node_modules/lucide-react/dist/esm/icons/hash.js"() {
625
673
  "use strict";
626
674
  init_react_import();
627
675
  init_createLucideIcon();
628
- __iconNode16 = [
676
+ __iconNode19 = [
629
677
  ["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
630
678
  ["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
631
679
  ["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
632
680
  ["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
633
681
  ];
634
- Hash = createLucideIcon("hash", __iconNode16);
682
+ Hash = createLucideIcon("hash", __iconNode19);
635
683
  }
636
684
  });
637
685
 
638
686
  // node_modules/lucide-react/dist/esm/icons/heading-1.js
639
- var __iconNode17, Heading1;
687
+ var __iconNode20, Heading1;
640
688
  var init_heading_1 = __esm({
641
689
  "node_modules/lucide-react/dist/esm/icons/heading-1.js"() {
642
690
  "use strict";
643
691
  init_react_import();
644
692
  init_createLucideIcon();
645
- __iconNode17 = [
693
+ __iconNode20 = [
646
694
  ["path", { d: "M4 12h8", key: "17cfdx" }],
647
695
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
648
696
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
649
697
  ["path", { d: "m17 12 3-2v8", key: "1hhhft" }]
650
698
  ];
651
- Heading1 = createLucideIcon("heading-1", __iconNode17);
699
+ Heading1 = createLucideIcon("heading-1", __iconNode20);
652
700
  }
653
701
  });
654
702
 
655
703
  // node_modules/lucide-react/dist/esm/icons/heading-2.js
656
- var __iconNode18, Heading2;
704
+ var __iconNode21, Heading2;
657
705
  var init_heading_2 = __esm({
658
706
  "node_modules/lucide-react/dist/esm/icons/heading-2.js"() {
659
707
  "use strict";
660
708
  init_react_import();
661
709
  init_createLucideIcon();
662
- __iconNode18 = [
710
+ __iconNode21 = [
663
711
  ["path", { d: "M4 12h8", key: "17cfdx" }],
664
712
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
665
713
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
666
714
  ["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
667
715
  ];
668
- Heading2 = createLucideIcon("heading-2", __iconNode18);
716
+ Heading2 = createLucideIcon("heading-2", __iconNode21);
669
717
  }
670
718
  });
671
719
 
672
720
  // node_modules/lucide-react/dist/esm/icons/heading-3.js
673
- var __iconNode19, Heading3;
721
+ var __iconNode22, Heading3;
674
722
  var init_heading_3 = __esm({
675
723
  "node_modules/lucide-react/dist/esm/icons/heading-3.js"() {
676
724
  "use strict";
677
725
  init_react_import();
678
726
  init_createLucideIcon();
679
- __iconNode19 = [
727
+ __iconNode22 = [
680
728
  ["path", { d: "M4 12h8", key: "17cfdx" }],
681
729
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
682
730
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
683
731
  ["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
684
732
  ["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
685
733
  ];
686
- Heading3 = createLucideIcon("heading-3", __iconNode19);
734
+ Heading3 = createLucideIcon("heading-3", __iconNode22);
687
735
  }
688
736
  });
689
737
 
690
738
  // node_modules/lucide-react/dist/esm/icons/heading-4.js
691
- var __iconNode20, Heading4;
739
+ var __iconNode23, Heading4;
692
740
  var init_heading_4 = __esm({
693
741
  "node_modules/lucide-react/dist/esm/icons/heading-4.js"() {
694
742
  "use strict";
695
743
  init_react_import();
696
744
  init_createLucideIcon();
697
- __iconNode20 = [
745
+ __iconNode23 = [
698
746
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
699
747
  ["path", { d: "M17 10v3a1 1 0 0 0 1 1h3", key: "tj5zdr" }],
700
748
  ["path", { d: "M21 10v8", key: "1kdml4" }],
701
749
  ["path", { d: "M4 12h8", key: "17cfdx" }],
702
750
  ["path", { d: "M4 18V6", key: "1rz3zl" }]
703
751
  ];
704
- Heading4 = createLucideIcon("heading-4", __iconNode20);
752
+ Heading4 = createLucideIcon("heading-4", __iconNode23);
705
753
  }
706
754
  });
707
755
 
708
756
  // node_modules/lucide-react/dist/esm/icons/heading-5.js
709
- var __iconNode21, Heading5;
757
+ var __iconNode24, Heading5;
710
758
  var init_heading_5 = __esm({
711
759
  "node_modules/lucide-react/dist/esm/icons/heading-5.js"() {
712
760
  "use strict";
713
761
  init_react_import();
714
762
  init_createLucideIcon();
715
- __iconNode21 = [
763
+ __iconNode24 = [
716
764
  ["path", { d: "M4 12h8", key: "17cfdx" }],
717
765
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
718
766
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
@@ -722,68 +770,68 @@ var init_heading_5 = __esm({
722
770
  { d: "M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17", key: "2nebdn" }
723
771
  ]
724
772
  ];
725
- Heading5 = createLucideIcon("heading-5", __iconNode21);
773
+ Heading5 = createLucideIcon("heading-5", __iconNode24);
726
774
  }
727
775
  });
728
776
 
729
777
  // node_modules/lucide-react/dist/esm/icons/heading-6.js
730
- var __iconNode22, Heading6;
778
+ var __iconNode25, Heading6;
731
779
  var init_heading_6 = __esm({
732
780
  "node_modules/lucide-react/dist/esm/icons/heading-6.js"() {
733
781
  "use strict";
734
782
  init_react_import();
735
783
  init_createLucideIcon();
736
- __iconNode22 = [
784
+ __iconNode25 = [
737
785
  ["path", { d: "M4 12h8", key: "17cfdx" }],
738
786
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
739
787
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
740
788
  ["circle", { cx: "19", cy: "16", r: "2", key: "15mx69" }],
741
789
  ["path", { d: "M20 10c-2 2-3 3.5-3 6", key: "f35dl0" }]
742
790
  ];
743
- Heading6 = createLucideIcon("heading-6", __iconNode22);
791
+ Heading6 = createLucideIcon("heading-6", __iconNode25);
744
792
  }
745
793
  });
746
794
 
747
795
  // node_modules/lucide-react/dist/esm/icons/heading.js
748
- var __iconNode23, Heading;
796
+ var __iconNode26, Heading;
749
797
  var init_heading = __esm({
750
798
  "node_modules/lucide-react/dist/esm/icons/heading.js"() {
751
799
  "use strict";
752
800
  init_react_import();
753
801
  init_createLucideIcon();
754
- __iconNode23 = [
802
+ __iconNode26 = [
755
803
  ["path", { d: "M6 12h12", key: "8npq4p" }],
756
804
  ["path", { d: "M6 20V4", key: "1w1bmo" }],
757
805
  ["path", { d: "M18 20V4", key: "o2hl4u" }]
758
806
  ];
759
- Heading = createLucideIcon("heading", __iconNode23);
807
+ Heading = createLucideIcon("heading", __iconNode26);
760
808
  }
761
809
  });
762
810
 
763
811
  // node_modules/lucide-react/dist/esm/icons/image.js
764
- var __iconNode24, Image;
812
+ var __iconNode27, Image;
765
813
  var init_image = __esm({
766
814
  "node_modules/lucide-react/dist/esm/icons/image.js"() {
767
815
  "use strict";
768
816
  init_react_import();
769
817
  init_createLucideIcon();
770
- __iconNode24 = [
818
+ __iconNode27 = [
771
819
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
772
820
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
773
821
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
774
822
  ];
775
- Image = createLucideIcon("image", __iconNode24);
823
+ Image = createLucideIcon("image", __iconNode27);
776
824
  }
777
825
  });
778
826
 
779
827
  // node_modules/lucide-react/dist/esm/icons/inbox.js
780
- var __iconNode25, Inbox;
828
+ var __iconNode28, Inbox;
781
829
  var init_inbox = __esm({
782
830
  "node_modules/lucide-react/dist/esm/icons/inbox.js"() {
783
831
  "use strict";
784
832
  init_react_import();
785
833
  init_createLucideIcon();
786
- __iconNode25 = [
834
+ __iconNode28 = [
787
835
  ["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }],
788
836
  [
789
837
  "path",
@@ -793,50 +841,50 @@ var init_inbox = __esm({
793
841
  }
794
842
  ]
795
843
  ];
796
- Inbox = createLucideIcon("inbox", __iconNode25);
844
+ Inbox = createLucideIcon("inbox", __iconNode28);
797
845
  }
798
846
  });
799
847
 
800
848
  // node_modules/lucide-react/dist/esm/icons/info.js
801
- var __iconNode26, Info;
849
+ var __iconNode29, Info;
802
850
  var init_info = __esm({
803
851
  "node_modules/lucide-react/dist/esm/icons/info.js"() {
804
852
  "use strict";
805
853
  init_react_import();
806
854
  init_createLucideIcon();
807
- __iconNode26 = [
855
+ __iconNode29 = [
808
856
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
809
857
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
810
858
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
811
859
  ];
812
- Info = createLucideIcon("info", __iconNode26);
860
+ Info = createLucideIcon("info", __iconNode29);
813
861
  }
814
862
  });
815
863
 
816
864
  // node_modules/lucide-react/dist/esm/icons/italic.js
817
- var __iconNode27, Italic;
865
+ var __iconNode30, Italic;
818
866
  var init_italic = __esm({
819
867
  "node_modules/lucide-react/dist/esm/icons/italic.js"() {
820
868
  "use strict";
821
869
  init_react_import();
822
870
  init_createLucideIcon();
823
- __iconNode27 = [
871
+ __iconNode30 = [
824
872
  ["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
825
873
  ["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
826
874
  ["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
827
875
  ];
828
- Italic = createLucideIcon("italic", __iconNode27);
876
+ Italic = createLucideIcon("italic", __iconNode30);
829
877
  }
830
878
  });
831
879
 
832
880
  // node_modules/lucide-react/dist/esm/icons/layers.js
833
- var __iconNode28, Layers;
881
+ var __iconNode31, Layers;
834
882
  var init_layers = __esm({
835
883
  "node_modules/lucide-react/dist/esm/icons/layers.js"() {
836
884
  "use strict";
837
885
  init_react_import();
838
886
  init_createLucideIcon();
839
- __iconNode28 = [
887
+ __iconNode31 = [
840
888
  [
841
889
  "path",
842
890
  {
@@ -859,83 +907,83 @@ var init_layers = __esm({
859
907
  }
860
908
  ]
861
909
  ];
862
- Layers = createLucideIcon("layers", __iconNode28);
910
+ Layers = createLucideIcon("layers", __iconNode31);
863
911
  }
864
912
  });
865
913
 
866
914
  // node_modules/lucide-react/dist/esm/icons/layout-dashboard.js
867
- var __iconNode29, LayoutDashboard;
915
+ var __iconNode32, LayoutDashboard;
868
916
  var init_layout_dashboard = __esm({
869
917
  "node_modules/lucide-react/dist/esm/icons/layout-dashboard.js"() {
870
918
  "use strict";
871
919
  init_react_import();
872
920
  init_createLucideIcon();
873
- __iconNode29 = [
921
+ __iconNode32 = [
874
922
  ["rect", { width: "7", height: "9", x: "3", y: "3", rx: "1", key: "10lvy0" }],
875
923
  ["rect", { width: "7", height: "5", x: "14", y: "3", rx: "1", key: "16une8" }],
876
924
  ["rect", { width: "7", height: "9", x: "14", y: "12", rx: "1", key: "1hutg5" }],
877
925
  ["rect", { width: "7", height: "5", x: "3", y: "16", rx: "1", key: "ldoo1y" }]
878
926
  ];
879
- LayoutDashboard = createLucideIcon("layout-dashboard", __iconNode29);
927
+ LayoutDashboard = createLucideIcon("layout-dashboard", __iconNode32);
880
928
  }
881
929
  });
882
930
 
883
931
  // node_modules/lucide-react/dist/esm/icons/layout-grid.js
884
- var __iconNode30, LayoutGrid;
932
+ var __iconNode33, LayoutGrid;
885
933
  var init_layout_grid = __esm({
886
934
  "node_modules/lucide-react/dist/esm/icons/layout-grid.js"() {
887
935
  "use strict";
888
936
  init_react_import();
889
937
  init_createLucideIcon();
890
- __iconNode30 = [
938
+ __iconNode33 = [
891
939
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
892
940
  ["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
893
941
  ["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
894
942
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
895
943
  ];
896
- LayoutGrid = createLucideIcon("layout-grid", __iconNode30);
944
+ LayoutGrid = createLucideIcon("layout-grid", __iconNode33);
897
945
  }
898
946
  });
899
947
 
900
948
  // node_modules/lucide-react/dist/esm/icons/layout-template.js
901
- var __iconNode31, LayoutTemplate;
949
+ var __iconNode34, LayoutTemplate;
902
950
  var init_layout_template = __esm({
903
951
  "node_modules/lucide-react/dist/esm/icons/layout-template.js"() {
904
952
  "use strict";
905
953
  init_react_import();
906
954
  init_createLucideIcon();
907
- __iconNode31 = [
955
+ __iconNode34 = [
908
956
  ["rect", { width: "18", height: "7", x: "3", y: "3", rx: "1", key: "f1a2em" }],
909
957
  ["rect", { width: "9", height: "7", x: "3", y: "14", rx: "1", key: "jqznyg" }],
910
958
  ["rect", { width: "5", height: "7", x: "16", y: "14", rx: "1", key: "q5h2i8" }]
911
959
  ];
912
- LayoutTemplate = createLucideIcon("layout-template", __iconNode31);
960
+ LayoutTemplate = createLucideIcon("layout-template", __iconNode34);
913
961
  }
914
962
  });
915
963
 
916
964
  // node_modules/lucide-react/dist/esm/icons/link.js
917
- var __iconNode32, Link;
965
+ var __iconNode35, Link;
918
966
  var init_link = __esm({
919
967
  "node_modules/lucide-react/dist/esm/icons/link.js"() {
920
968
  "use strict";
921
969
  init_react_import();
922
970
  init_createLucideIcon();
923
- __iconNode32 = [
971
+ __iconNode35 = [
924
972
  ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
925
973
  ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
926
974
  ];
927
- Link = createLucideIcon("link", __iconNode32);
975
+ Link = createLucideIcon("link", __iconNode35);
928
976
  }
929
977
  });
930
978
 
931
979
  // node_modules/lucide-react/dist/esm/icons/list-ordered.js
932
- var __iconNode33, ListOrdered;
980
+ var __iconNode36, ListOrdered;
933
981
  var init_list_ordered = __esm({
934
982
  "node_modules/lucide-react/dist/esm/icons/list-ordered.js"() {
935
983
  "use strict";
936
984
  init_react_import();
937
985
  init_createLucideIcon();
938
- __iconNode33 = [
986
+ __iconNode36 = [
939
987
  ["path", { d: "M11 5h10", key: "1cz7ny" }],
940
988
  ["path", { d: "M11 12h10", key: "1438ji" }],
941
989
  ["path", { d: "M11 19h10", key: "11t30w" }],
@@ -943,18 +991,18 @@ var init_list_ordered = __esm({
943
991
  ["path", { d: "M4 9h2", key: "r1h2o0" }],
944
992
  ["path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02", key: "xtkcd5" }]
945
993
  ];
946
- ListOrdered = createLucideIcon("list-ordered", __iconNode33);
994
+ ListOrdered = createLucideIcon("list-ordered", __iconNode36);
947
995
  }
948
996
  });
949
997
 
950
998
  // node_modules/lucide-react/dist/esm/icons/list.js
951
- var __iconNode34, List;
999
+ var __iconNode37, List;
952
1000
  var init_list = __esm({
953
1001
  "node_modules/lucide-react/dist/esm/icons/list.js"() {
954
1002
  "use strict";
955
1003
  init_react_import();
956
1004
  init_createLucideIcon();
957
- __iconNode34 = [
1005
+ __iconNode37 = [
958
1006
  ["path", { d: "M3 5h.01", key: "18ugdj" }],
959
1007
  ["path", { d: "M3 12h.01", key: "nlz23k" }],
960
1008
  ["path", { d: "M3 19h.01", key: "noohij" }],
@@ -962,65 +1010,65 @@ var init_list = __esm({
962
1010
  ["path", { d: "M8 12h13", key: "1za7za" }],
963
1011
  ["path", { d: "M8 19h13", key: "m83p4d" }]
964
1012
  ];
965
- List = createLucideIcon("list", __iconNode34);
1013
+ List = createLucideIcon("list", __iconNode37);
966
1014
  }
967
1015
  });
968
1016
 
969
1017
  // node_modules/lucide-react/dist/esm/icons/lock-open.js
970
- var __iconNode35, LockOpen;
1018
+ var __iconNode38, LockOpen;
971
1019
  var init_lock_open = __esm({
972
1020
  "node_modules/lucide-react/dist/esm/icons/lock-open.js"() {
973
1021
  "use strict";
974
1022
  init_react_import();
975
1023
  init_createLucideIcon();
976
- __iconNode35 = [
1024
+ __iconNode38 = [
977
1025
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
978
1026
  ["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
979
1027
  ];
980
- LockOpen = createLucideIcon("lock-open", __iconNode35);
1028
+ LockOpen = createLucideIcon("lock-open", __iconNode38);
981
1029
  }
982
1030
  });
983
1031
 
984
1032
  // node_modules/lucide-react/dist/esm/icons/lock.js
985
- var __iconNode36, Lock;
1033
+ var __iconNode39, Lock;
986
1034
  var init_lock = __esm({
987
1035
  "node_modules/lucide-react/dist/esm/icons/lock.js"() {
988
1036
  "use strict";
989
1037
  init_react_import();
990
1038
  init_createLucideIcon();
991
- __iconNode36 = [
1039
+ __iconNode39 = [
992
1040
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
993
1041
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
994
1042
  ];
995
- Lock = createLucideIcon("lock", __iconNode36);
1043
+ Lock = createLucideIcon("lock", __iconNode39);
996
1044
  }
997
1045
  });
998
1046
 
999
1047
  // node_modules/lucide-react/dist/esm/icons/maximize-2.js
1000
- var __iconNode37, Maximize2;
1048
+ var __iconNode40, Maximize2;
1001
1049
  var init_maximize_2 = __esm({
1002
1050
  "node_modules/lucide-react/dist/esm/icons/maximize-2.js"() {
1003
1051
  "use strict";
1004
1052
  init_react_import();
1005
1053
  init_createLucideIcon();
1006
- __iconNode37 = [
1054
+ __iconNode40 = [
1007
1055
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
1008
1056
  ["path", { d: "m21 3-7 7", key: "1l2asr" }],
1009
1057
  ["path", { d: "m3 21 7-7", key: "tjx5ai" }],
1010
1058
  ["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
1011
1059
  ];
1012
- Maximize2 = createLucideIcon("maximize-2", __iconNode37);
1060
+ Maximize2 = createLucideIcon("maximize-2", __iconNode40);
1013
1061
  }
1014
1062
  });
1015
1063
 
1016
1064
  // node_modules/lucide-react/dist/esm/icons/megaphone.js
1017
- var __iconNode38, Megaphone;
1065
+ var __iconNode41, Megaphone;
1018
1066
  var init_megaphone = __esm({
1019
1067
  "node_modules/lucide-react/dist/esm/icons/megaphone.js"() {
1020
1068
  "use strict";
1021
1069
  init_react_import();
1022
1070
  init_createLucideIcon();
1023
- __iconNode38 = [
1071
+ __iconNode41 = [
1024
1072
  [
1025
1073
  "path",
1026
1074
  {
@@ -1031,63 +1079,63 @@ var init_megaphone = __esm({
1031
1079
  ["path", { d: "M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14", key: "1853fq" }],
1032
1080
  ["path", { d: "M8 6v8", key: "15ugcq" }]
1033
1081
  ];
1034
- Megaphone = createLucideIcon("megaphone", __iconNode38);
1082
+ Megaphone = createLucideIcon("megaphone", __iconNode41);
1035
1083
  }
1036
1084
  });
1037
1085
 
1038
1086
  // node_modules/lucide-react/dist/esm/icons/minimize-2.js
1039
- var __iconNode39, Minimize2;
1087
+ var __iconNode42, Minimize2;
1040
1088
  var init_minimize_2 = __esm({
1041
1089
  "node_modules/lucide-react/dist/esm/icons/minimize-2.js"() {
1042
1090
  "use strict";
1043
1091
  init_react_import();
1044
1092
  init_createLucideIcon();
1045
- __iconNode39 = [
1093
+ __iconNode42 = [
1046
1094
  ["path", { d: "m14 10 7-7", key: "oa77jy" }],
1047
1095
  ["path", { d: "M20 10h-6V4", key: "mjg0md" }],
1048
1096
  ["path", { d: "m3 21 7-7", key: "tjx5ai" }],
1049
1097
  ["path", { d: "M4 14h6v6", key: "rmj7iw" }]
1050
1098
  ];
1051
- Minimize2 = createLucideIcon("minimize-2", __iconNode39);
1099
+ Minimize2 = createLucideIcon("minimize-2", __iconNode42);
1052
1100
  }
1053
1101
  });
1054
1102
 
1055
1103
  // node_modules/lucide-react/dist/esm/icons/minus.js
1056
- var __iconNode40, Minus;
1104
+ var __iconNode43, Minus;
1057
1105
  var init_minus = __esm({
1058
1106
  "node_modules/lucide-react/dist/esm/icons/minus.js"() {
1059
1107
  "use strict";
1060
1108
  init_react_import();
1061
1109
  init_createLucideIcon();
1062
- __iconNode40 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
1063
- Minus = createLucideIcon("minus", __iconNode40);
1110
+ __iconNode43 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
1111
+ Minus = createLucideIcon("minus", __iconNode43);
1064
1112
  }
1065
1113
  });
1066
1114
 
1067
1115
  // node_modules/lucide-react/dist/esm/icons/monitor.js
1068
- var __iconNode41, Monitor;
1116
+ var __iconNode44, Monitor;
1069
1117
  var init_monitor = __esm({
1070
1118
  "node_modules/lucide-react/dist/esm/icons/monitor.js"() {
1071
1119
  "use strict";
1072
1120
  init_react_import();
1073
1121
  init_createLucideIcon();
1074
- __iconNode41 = [
1122
+ __iconNode44 = [
1075
1123
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
1076
1124
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
1077
1125
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
1078
1126
  ];
1079
- Monitor = createLucideIcon("monitor", __iconNode41);
1127
+ Monitor = createLucideIcon("monitor", __iconNode44);
1080
1128
  }
1081
1129
  });
1082
1130
 
1083
1131
  // node_modules/lucide-react/dist/esm/icons/moon.js
1084
- var __iconNode42, Moon;
1132
+ var __iconNode45, Moon;
1085
1133
  var init_moon = __esm({
1086
1134
  "node_modules/lucide-react/dist/esm/icons/moon.js"() {
1087
1135
  "use strict";
1088
1136
  init_react_import();
1089
1137
  init_createLucideIcon();
1090
- __iconNode42 = [
1138
+ __iconNode45 = [
1091
1139
  [
1092
1140
  "path",
1093
1141
  {
@@ -1096,63 +1144,63 @@ var init_moon = __esm({
1096
1144
  }
1097
1145
  ]
1098
1146
  ];
1099
- Moon = createLucideIcon("moon", __iconNode42);
1147
+ Moon = createLucideIcon("moon", __iconNode45);
1100
1148
  }
1101
1149
  });
1102
1150
 
1103
1151
  // node_modules/lucide-react/dist/esm/icons/panel-left.js
1104
- var __iconNode43, PanelLeft;
1152
+ var __iconNode46, PanelLeft;
1105
1153
  var init_panel_left = __esm({
1106
1154
  "node_modules/lucide-react/dist/esm/icons/panel-left.js"() {
1107
1155
  "use strict";
1108
1156
  init_react_import();
1109
1157
  init_createLucideIcon();
1110
- __iconNode43 = [
1158
+ __iconNode46 = [
1111
1159
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
1112
1160
  ["path", { d: "M9 3v18", key: "fh3hqa" }]
1113
1161
  ];
1114
- PanelLeft = createLucideIcon("panel-left", __iconNode43);
1162
+ PanelLeft = createLucideIcon("panel-left", __iconNode46);
1115
1163
  }
1116
1164
  });
1117
1165
 
1118
1166
  // node_modules/lucide-react/dist/esm/icons/panel-right.js
1119
- var __iconNode44, PanelRight;
1167
+ var __iconNode47, PanelRight;
1120
1168
  var init_panel_right = __esm({
1121
1169
  "node_modules/lucide-react/dist/esm/icons/panel-right.js"() {
1122
1170
  "use strict";
1123
1171
  init_react_import();
1124
1172
  init_createLucideIcon();
1125
- __iconNode44 = [
1173
+ __iconNode47 = [
1126
1174
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
1127
1175
  ["path", { d: "M15 3v18", key: "14nvp0" }]
1128
1176
  ];
1129
- PanelRight = createLucideIcon("panel-right", __iconNode44);
1177
+ PanelRight = createLucideIcon("panel-right", __iconNode47);
1130
1178
  }
1131
1179
  });
1132
1180
 
1133
1181
  // node_modules/lucide-react/dist/esm/icons/plus.js
1134
- var __iconNode45, Plus;
1182
+ var __iconNode48, Plus;
1135
1183
  var init_plus = __esm({
1136
1184
  "node_modules/lucide-react/dist/esm/icons/plus.js"() {
1137
1185
  "use strict";
1138
1186
  init_react_import();
1139
1187
  init_createLucideIcon();
1140
- __iconNode45 = [
1188
+ __iconNode48 = [
1141
1189
  ["path", { d: "M5 12h14", key: "1ays0h" }],
1142
1190
  ["path", { d: "M12 5v14", key: "s699le" }]
1143
1191
  ];
1144
- Plus = createLucideIcon("plus", __iconNode45);
1192
+ Plus = createLucideIcon("plus", __iconNode48);
1145
1193
  }
1146
1194
  });
1147
1195
 
1148
1196
  // node_modules/lucide-react/dist/esm/icons/quote.js
1149
- var __iconNode46, Quote;
1197
+ var __iconNode49, Quote;
1150
1198
  var init_quote = __esm({
1151
1199
  "node_modules/lucide-react/dist/esm/icons/quote.js"() {
1152
1200
  "use strict";
1153
1201
  init_react_import();
1154
1202
  init_createLucideIcon();
1155
- __iconNode46 = [
1203
+ __iconNode49 = [
1156
1204
  [
1157
1205
  "path",
1158
1206
  {
@@ -1168,65 +1216,65 @@ var init_quote = __esm({
1168
1216
  }
1169
1217
  ]
1170
1218
  ];
1171
- Quote = createLucideIcon("quote", __iconNode46);
1219
+ Quote = createLucideIcon("quote", __iconNode49);
1172
1220
  }
1173
1221
  });
1174
1222
 
1175
1223
  // node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js
1176
- var __iconNode47, RectangleEllipsis;
1224
+ var __iconNode50, RectangleEllipsis;
1177
1225
  var init_rectangle_ellipsis = __esm({
1178
1226
  "node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js"() {
1179
1227
  "use strict";
1180
1228
  init_react_import();
1181
1229
  init_createLucideIcon();
1182
- __iconNode47 = [
1230
+ __iconNode50 = [
1183
1231
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
1184
1232
  ["path", { d: "M12 12h.01", key: "1mp3jc" }],
1185
1233
  ["path", { d: "M17 12h.01", key: "1m0b6t" }],
1186
1234
  ["path", { d: "M7 12h.01", key: "eqddd0" }]
1187
1235
  ];
1188
- RectangleEllipsis = createLucideIcon("rectangle-ellipsis", __iconNode47);
1236
+ RectangleEllipsis = createLucideIcon("rectangle-ellipsis", __iconNode50);
1189
1237
  }
1190
1238
  });
1191
1239
 
1192
1240
  // node_modules/lucide-react/dist/esm/icons/redo-2.js
1193
- var __iconNode48, Redo2;
1241
+ var __iconNode51, Redo2;
1194
1242
  var init_redo_2 = __esm({
1195
1243
  "node_modules/lucide-react/dist/esm/icons/redo-2.js"() {
1196
1244
  "use strict";
1197
1245
  init_react_import();
1198
1246
  init_createLucideIcon();
1199
- __iconNode48 = [
1247
+ __iconNode51 = [
1200
1248
  ["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }],
1201
1249
  ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13", key: "6uklza" }]
1202
1250
  ];
1203
- Redo2 = createLucideIcon("redo-2", __iconNode48);
1251
+ Redo2 = createLucideIcon("redo-2", __iconNode51);
1204
1252
  }
1205
1253
  });
1206
1254
 
1207
1255
  // node_modules/lucide-react/dist/esm/icons/search.js
1208
- var __iconNode49, Search;
1256
+ var __iconNode52, Search;
1209
1257
  var init_search = __esm({
1210
1258
  "node_modules/lucide-react/dist/esm/icons/search.js"() {
1211
1259
  "use strict";
1212
1260
  init_react_import();
1213
1261
  init_createLucideIcon();
1214
- __iconNode49 = [
1262
+ __iconNode52 = [
1215
1263
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
1216
1264
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
1217
1265
  ];
1218
- Search = createLucideIcon("search", __iconNode49);
1266
+ Search = createLucideIcon("search", __iconNode52);
1219
1267
  }
1220
1268
  });
1221
1269
 
1222
1270
  // node_modules/lucide-react/dist/esm/icons/settings.js
1223
- var __iconNode50, Settings;
1271
+ var __iconNode53, Settings;
1224
1272
  var init_settings = __esm({
1225
1273
  "node_modules/lucide-react/dist/esm/icons/settings.js"() {
1226
1274
  "use strict";
1227
1275
  init_react_import();
1228
1276
  init_createLucideIcon();
1229
- __iconNode50 = [
1277
+ __iconNode53 = [
1230
1278
  [
1231
1279
  "path",
1232
1280
  {
@@ -1236,18 +1284,18 @@ var init_settings = __esm({
1236
1284
  ],
1237
1285
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
1238
1286
  ];
1239
- Settings = createLucideIcon("settings", __iconNode50);
1287
+ Settings = createLucideIcon("settings", __iconNode53);
1240
1288
  }
1241
1289
  });
1242
1290
 
1243
1291
  // node_modules/lucide-react/dist/esm/icons/shapes.js
1244
- var __iconNode51, Shapes;
1292
+ var __iconNode54, Shapes;
1245
1293
  var init_shapes = __esm({
1246
1294
  "node_modules/lucide-react/dist/esm/icons/shapes.js"() {
1247
1295
  "use strict";
1248
1296
  init_react_import();
1249
1297
  init_createLucideIcon();
1250
- __iconNode51 = [
1298
+ __iconNode54 = [
1251
1299
  [
1252
1300
  "path",
1253
1301
  {
@@ -1258,18 +1306,18 @@ var init_shapes = __esm({
1258
1306
  ["rect", { x: "3", y: "14", width: "7", height: "7", rx: "1", key: "1bkyp8" }],
1259
1307
  ["circle", { cx: "17.5", cy: "17.5", r: "3.5", key: "w3z12y" }]
1260
1308
  ];
1261
- Shapes = createLucideIcon("shapes", __iconNode51);
1309
+ Shapes = createLucideIcon("shapes", __iconNode54);
1262
1310
  }
1263
1311
  });
1264
1312
 
1265
1313
  // node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js
1266
- var __iconNode52, SlidersHorizontal;
1314
+ var __iconNode55, SlidersHorizontal;
1267
1315
  var init_sliders_horizontal = __esm({
1268
1316
  "node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js"() {
1269
1317
  "use strict";
1270
1318
  init_react_import();
1271
1319
  init_createLucideIcon();
1272
- __iconNode52 = [
1320
+ __iconNode55 = [
1273
1321
  ["path", { d: "M10 5H3", key: "1qgfaw" }],
1274
1322
  ["path", { d: "M12 19H3", key: "yhmn1j" }],
1275
1323
  ["path", { d: "M14 3v4", key: "1sua03" }],
@@ -1280,65 +1328,65 @@ var init_sliders_horizontal = __esm({
1280
1328
  ["path", { d: "M8 10v4", key: "tgpxqk" }],
1281
1329
  ["path", { d: "M8 12H3", key: "a7s4jb" }]
1282
1330
  ];
1283
- SlidersHorizontal = createLucideIcon("sliders-horizontal", __iconNode52);
1331
+ SlidersHorizontal = createLucideIcon("sliders-horizontal", __iconNode55);
1284
1332
  }
1285
1333
  });
1286
1334
 
1287
1335
  // node_modules/lucide-react/dist/esm/icons/smartphone.js
1288
- var __iconNode53, Smartphone;
1336
+ var __iconNode56, Smartphone;
1289
1337
  var init_smartphone = __esm({
1290
1338
  "node_modules/lucide-react/dist/esm/icons/smartphone.js"() {
1291
1339
  "use strict";
1292
1340
  init_react_import();
1293
1341
  init_createLucideIcon();
1294
- __iconNode53 = [
1342
+ __iconNode56 = [
1295
1343
  ["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
1296
1344
  ["path", { d: "M12 18h.01", key: "mhygvu" }]
1297
1345
  ];
1298
- Smartphone = createLucideIcon("smartphone", __iconNode53);
1346
+ Smartphone = createLucideIcon("smartphone", __iconNode56);
1299
1347
  }
1300
1348
  });
1301
1349
 
1302
1350
  // node_modules/lucide-react/dist/esm/icons/square-code.js
1303
- var __iconNode54, SquareCode;
1351
+ var __iconNode57, SquareCode;
1304
1352
  var init_square_code = __esm({
1305
1353
  "node_modules/lucide-react/dist/esm/icons/square-code.js"() {
1306
1354
  "use strict";
1307
1355
  init_react_import();
1308
1356
  init_createLucideIcon();
1309
- __iconNode54 = [
1357
+ __iconNode57 = [
1310
1358
  ["path", { d: "m10 9-3 3 3 3", key: "1oro0q" }],
1311
1359
  ["path", { d: "m14 15 3-3-3-3", key: "bz13h7" }],
1312
1360
  ["rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", key: "h1oib" }]
1313
1361
  ];
1314
- SquareCode = createLucideIcon("square-code", __iconNode54);
1362
+ SquareCode = createLucideIcon("square-code", __iconNode57);
1315
1363
  }
1316
1364
  });
1317
1365
 
1318
1366
  // node_modules/lucide-react/dist/esm/icons/strikethrough.js
1319
- var __iconNode55, Strikethrough;
1367
+ var __iconNode58, Strikethrough;
1320
1368
  var init_strikethrough = __esm({
1321
1369
  "node_modules/lucide-react/dist/esm/icons/strikethrough.js"() {
1322
1370
  "use strict";
1323
1371
  init_react_import();
1324
1372
  init_createLucideIcon();
1325
- __iconNode55 = [
1373
+ __iconNode58 = [
1326
1374
  ["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
1327
1375
  ["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
1328
1376
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
1329
1377
  ];
1330
- Strikethrough = createLucideIcon("strikethrough", __iconNode55);
1378
+ Strikethrough = createLucideIcon("strikethrough", __iconNode58);
1331
1379
  }
1332
1380
  });
1333
1381
 
1334
1382
  // node_modules/lucide-react/dist/esm/icons/sun.js
1335
- var __iconNode56, Sun;
1383
+ var __iconNode59, Sun;
1336
1384
  var init_sun = __esm({
1337
1385
  "node_modules/lucide-react/dist/esm/icons/sun.js"() {
1338
1386
  "use strict";
1339
1387
  init_react_import();
1340
1388
  init_createLucideIcon();
1341
- __iconNode56 = [
1389
+ __iconNode59 = [
1342
1390
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
1343
1391
  ["path", { d: "M12 2v2", key: "tus03m" }],
1344
1392
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -1349,190 +1397,190 @@ var init_sun = __esm({
1349
1397
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
1350
1398
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
1351
1399
  ];
1352
- Sun = createLucideIcon("sun", __iconNode56);
1400
+ Sun = createLucideIcon("sun", __iconNode59);
1353
1401
  }
1354
1402
  });
1355
1403
 
1356
1404
  // node_modules/lucide-react/dist/esm/icons/tablet.js
1357
- var __iconNode57, Tablet;
1405
+ var __iconNode60, Tablet;
1358
1406
  var init_tablet = __esm({
1359
1407
  "node_modules/lucide-react/dist/esm/icons/tablet.js"() {
1360
1408
  "use strict";
1361
1409
  init_react_import();
1362
1410
  init_createLucideIcon();
1363
- __iconNode57 = [
1411
+ __iconNode60 = [
1364
1412
  ["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", ry: "2", key: "76otgf" }],
1365
1413
  ["line", { x1: "12", x2: "12.01", y1: "18", y2: "18", key: "1dp563" }]
1366
1414
  ];
1367
- Tablet = createLucideIcon("tablet", __iconNode57);
1415
+ Tablet = createLucideIcon("tablet", __iconNode60);
1368
1416
  }
1369
1417
  });
1370
1418
 
1371
1419
  // node_modules/lucide-react/dist/esm/icons/text-align-center.js
1372
- var __iconNode58, TextAlignCenter;
1420
+ var __iconNode61, TextAlignCenter;
1373
1421
  var init_text_align_center = __esm({
1374
1422
  "node_modules/lucide-react/dist/esm/icons/text-align-center.js"() {
1375
1423
  "use strict";
1376
1424
  init_react_import();
1377
1425
  init_createLucideIcon();
1378
- __iconNode58 = [
1426
+ __iconNode61 = [
1379
1427
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
1380
1428
  ["path", { d: "M17 12H7", key: "16if0g" }],
1381
1429
  ["path", { d: "M19 19H5", key: "vjpgq2" }]
1382
1430
  ];
1383
- TextAlignCenter = createLucideIcon("text-align-center", __iconNode58);
1431
+ TextAlignCenter = createLucideIcon("text-align-center", __iconNode61);
1384
1432
  }
1385
1433
  });
1386
1434
 
1387
1435
  // node_modules/lucide-react/dist/esm/icons/text-align-end.js
1388
- var __iconNode59, TextAlignEnd;
1436
+ var __iconNode62, TextAlignEnd;
1389
1437
  var init_text_align_end = __esm({
1390
1438
  "node_modules/lucide-react/dist/esm/icons/text-align-end.js"() {
1391
1439
  "use strict";
1392
1440
  init_react_import();
1393
1441
  init_createLucideIcon();
1394
- __iconNode59 = [
1442
+ __iconNode62 = [
1395
1443
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
1396
1444
  ["path", { d: "M21 12H9", key: "dn1m92" }],
1397
1445
  ["path", { d: "M21 19H7", key: "4cu937" }]
1398
1446
  ];
1399
- TextAlignEnd = createLucideIcon("text-align-end", __iconNode59);
1447
+ TextAlignEnd = createLucideIcon("text-align-end", __iconNode62);
1400
1448
  }
1401
1449
  });
1402
1450
 
1403
1451
  // node_modules/lucide-react/dist/esm/icons/text-align-justify.js
1404
- var __iconNode60, TextAlignJustify;
1452
+ var __iconNode63, TextAlignJustify;
1405
1453
  var init_text_align_justify = __esm({
1406
1454
  "node_modules/lucide-react/dist/esm/icons/text-align-justify.js"() {
1407
1455
  "use strict";
1408
1456
  init_react_import();
1409
1457
  init_createLucideIcon();
1410
- __iconNode60 = [
1458
+ __iconNode63 = [
1411
1459
  ["path", { d: "M3 5h18", key: "1u36vt" }],
1412
1460
  ["path", { d: "M3 12h18", key: "1i2n21" }],
1413
1461
  ["path", { d: "M3 19h18", key: "awlh7x" }]
1414
1462
  ];
1415
- TextAlignJustify = createLucideIcon("text-align-justify", __iconNode60);
1463
+ TextAlignJustify = createLucideIcon("text-align-justify", __iconNode63);
1416
1464
  }
1417
1465
  });
1418
1466
 
1419
1467
  // node_modules/lucide-react/dist/esm/icons/text-align-start.js
1420
- var __iconNode61, TextAlignStart;
1468
+ var __iconNode64, TextAlignStart;
1421
1469
  var init_text_align_start = __esm({
1422
1470
  "node_modules/lucide-react/dist/esm/icons/text-align-start.js"() {
1423
1471
  "use strict";
1424
1472
  init_react_import();
1425
1473
  init_createLucideIcon();
1426
- __iconNode61 = [
1474
+ __iconNode64 = [
1427
1475
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
1428
1476
  ["path", { d: "M15 12H3", key: "6jk70r" }],
1429
1477
  ["path", { d: "M17 19H3", key: "z6ezky" }]
1430
1478
  ];
1431
- TextAlignStart = createLucideIcon("text-align-start", __iconNode61);
1479
+ TextAlignStart = createLucideIcon("text-align-start", __iconNode64);
1432
1480
  }
1433
1481
  });
1434
1482
 
1435
1483
  // node_modules/lucide-react/dist/esm/icons/toy-brick.js
1436
- var __iconNode62, ToyBrick;
1484
+ var __iconNode65, ToyBrick;
1437
1485
  var init_toy_brick = __esm({
1438
1486
  "node_modules/lucide-react/dist/esm/icons/toy-brick.js"() {
1439
1487
  "use strict";
1440
1488
  init_react_import();
1441
1489
  init_createLucideIcon();
1442
- __iconNode62 = [
1490
+ __iconNode65 = [
1443
1491
  ["rect", { width: "18", height: "12", x: "3", y: "8", rx: "1", key: "158fvp" }],
1444
1492
  ["path", { d: "M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3", key: "s0042v" }],
1445
1493
  ["path", { d: "M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3", key: "9wmeh2" }]
1446
1494
  ];
1447
- ToyBrick = createLucideIcon("toy-brick", __iconNode62);
1495
+ ToyBrick = createLucideIcon("toy-brick", __iconNode65);
1448
1496
  }
1449
1497
  });
1450
1498
 
1451
1499
  // node_modules/lucide-react/dist/esm/icons/trash.js
1452
- var __iconNode63, Trash;
1500
+ var __iconNode66, Trash;
1453
1501
  var init_trash = __esm({
1454
1502
  "node_modules/lucide-react/dist/esm/icons/trash.js"() {
1455
1503
  "use strict";
1456
1504
  init_react_import();
1457
1505
  init_createLucideIcon();
1458
- __iconNode63 = [
1506
+ __iconNode66 = [
1459
1507
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
1460
1508
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
1461
1509
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
1462
1510
  ];
1463
- Trash = createLucideIcon("trash", __iconNode63);
1511
+ Trash = createLucideIcon("trash", __iconNode66);
1464
1512
  }
1465
1513
  });
1466
1514
 
1467
1515
  // node_modules/lucide-react/dist/esm/icons/type.js
1468
- var __iconNode64, Type;
1516
+ var __iconNode67, Type;
1469
1517
  var init_type = __esm({
1470
1518
  "node_modules/lucide-react/dist/esm/icons/type.js"() {
1471
1519
  "use strict";
1472
1520
  init_react_import();
1473
1521
  init_createLucideIcon();
1474
- __iconNode64 = [
1522
+ __iconNode67 = [
1475
1523
  ["path", { d: "M12 4v16", key: "1654pz" }],
1476
1524
  ["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2", key: "e0r10z" }],
1477
1525
  ["path", { d: "M9 20h6", key: "s66wpe" }]
1478
1526
  ];
1479
- Type = createLucideIcon("type", __iconNode64);
1527
+ Type = createLucideIcon("type", __iconNode67);
1480
1528
  }
1481
1529
  });
1482
1530
 
1483
1531
  // node_modules/lucide-react/dist/esm/icons/underline.js
1484
- var __iconNode65, Underline;
1532
+ var __iconNode68, Underline;
1485
1533
  var init_underline = __esm({
1486
1534
  "node_modules/lucide-react/dist/esm/icons/underline.js"() {
1487
1535
  "use strict";
1488
1536
  init_react_import();
1489
1537
  init_createLucideIcon();
1490
- __iconNode65 = [
1538
+ __iconNode68 = [
1491
1539
  ["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
1492
1540
  ["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
1493
1541
  ];
1494
- Underline = createLucideIcon("underline", __iconNode65);
1542
+ Underline = createLucideIcon("underline", __iconNode68);
1495
1543
  }
1496
1544
  });
1497
1545
 
1498
1546
  // node_modules/lucide-react/dist/esm/icons/undo-2.js
1499
- var __iconNode66, Undo2;
1547
+ var __iconNode69, Undo2;
1500
1548
  var init_undo_2 = __esm({
1501
1549
  "node_modules/lucide-react/dist/esm/icons/undo-2.js"() {
1502
1550
  "use strict";
1503
1551
  init_react_import();
1504
1552
  init_createLucideIcon();
1505
- __iconNode66 = [
1553
+ __iconNode69 = [
1506
1554
  ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
1507
1555
  ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11", key: "f3b9sd" }]
1508
1556
  ];
1509
- Undo2 = createLucideIcon("undo-2", __iconNode66);
1557
+ Undo2 = createLucideIcon("undo-2", __iconNode69);
1510
1558
  }
1511
1559
  });
1512
1560
 
1513
1561
  // node_modules/lucide-react/dist/esm/icons/x.js
1514
- var __iconNode67, X;
1562
+ var __iconNode70, X;
1515
1563
  var init_x = __esm({
1516
1564
  "node_modules/lucide-react/dist/esm/icons/x.js"() {
1517
1565
  "use strict";
1518
1566
  init_react_import();
1519
1567
  init_createLucideIcon();
1520
- __iconNode67 = [
1568
+ __iconNode70 = [
1521
1569
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1522
1570
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1523
1571
  ];
1524
- X = createLucideIcon("x", __iconNode67);
1572
+ X = createLucideIcon("x", __iconNode70);
1525
1573
  }
1526
1574
  });
1527
1575
 
1528
1576
  // node_modules/lucide-react/dist/esm/icons/zap.js
1529
- var __iconNode68, Zap;
1577
+ var __iconNode71, Zap;
1530
1578
  var init_zap = __esm({
1531
1579
  "node_modules/lucide-react/dist/esm/icons/zap.js"() {
1532
1580
  "use strict";
1533
1581
  init_react_import();
1534
1582
  init_createLucideIcon();
1535
- __iconNode68 = [
1583
+ __iconNode71 = [
1536
1584
  [
1537
1585
  "path",
1538
1586
  {
@@ -1541,40 +1589,40 @@ var init_zap = __esm({
1541
1589
  }
1542
1590
  ]
1543
1591
  ];
1544
- Zap = createLucideIcon("zap", __iconNode68);
1592
+ Zap = createLucideIcon("zap", __iconNode71);
1545
1593
  }
1546
1594
  });
1547
1595
 
1548
1596
  // node_modules/lucide-react/dist/esm/icons/zoom-in.js
1549
- var __iconNode69, ZoomIn;
1597
+ var __iconNode72, ZoomIn;
1550
1598
  var init_zoom_in = __esm({
1551
1599
  "node_modules/lucide-react/dist/esm/icons/zoom-in.js"() {
1552
1600
  "use strict";
1553
1601
  init_react_import();
1554
1602
  init_createLucideIcon();
1555
- __iconNode69 = [
1603
+ __iconNode72 = [
1556
1604
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
1557
1605
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
1558
1606
  ["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
1559
1607
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
1560
1608
  ];
1561
- ZoomIn = createLucideIcon("zoom-in", __iconNode69);
1609
+ ZoomIn = createLucideIcon("zoom-in", __iconNode72);
1562
1610
  }
1563
1611
  });
1564
1612
 
1565
1613
  // node_modules/lucide-react/dist/esm/icons/zoom-out.js
1566
- var __iconNode70, ZoomOut;
1614
+ var __iconNode73, ZoomOut;
1567
1615
  var init_zoom_out = __esm({
1568
1616
  "node_modules/lucide-react/dist/esm/icons/zoom-out.js"() {
1569
1617
  "use strict";
1570
1618
  init_react_import();
1571
1619
  init_createLucideIcon();
1572
- __iconNode70 = [
1620
+ __iconNode73 = [
1573
1621
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
1574
1622
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
1575
1623
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
1576
1624
  ];
1577
- ZoomOut = createLucideIcon("zoom-out", __iconNode70);
1625
+ ZoomOut = createLucideIcon("zoom-out", __iconNode73);
1578
1626
  }
1579
1627
  });
1580
1628
 
@@ -1585,6 +1633,7 @@ var init_lucide_react = __esm({
1585
1633
  init_react_import();
1586
1634
  init_chart_column();
1587
1635
  init_circle_check_big();
1636
+ init_circle_check();
1588
1637
  init_layers();
1589
1638
  init_lock_open();
1590
1639
  init_panel_left();
@@ -1596,6 +1645,7 @@ var init_lucide_react = __esm({
1596
1645
  init_text_align_start();
1597
1646
  init_bold();
1598
1647
  init_box();
1648
+ init_check();
1599
1649
  init_chevron_down();
1600
1650
  init_chevron_right();
1601
1651
  init_chevron_up();
@@ -1605,6 +1655,7 @@ var init_lucide_react = __esm({
1605
1655
  init_credit_card();
1606
1656
  init_expand();
1607
1657
  init_external_link();
1658
+ init_eye();
1608
1659
  init_file_text();
1609
1660
  init_grip_vertical();
1610
1661
  init_hash();
@@ -4117,16 +4168,16 @@ var init_SelectField = __esm({
4117
4168
  }
4118
4169
  });
4119
4170
 
4120
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ExternalInput/styles.module.css/#css-module-data
4171
+ // css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data
4121
4172
  var init_css_module_data3 = __esm({
4122
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ExternalInput/styles.module.css/#css-module-data"() {
4173
+ "css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data"() {
4123
4174
  }
4124
4175
  });
4125
4176
 
4126
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ExternalInput/styles.module.css#css-module
4177
+ // css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css#css-module
4127
4178
  var styles_module_default3;
4128
4179
  var init_styles_module3 = __esm({
4129
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ExternalInput/styles.module.css#css-module"() {
4180
+ "css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css#css-module"() {
4130
4181
  "use strict";
4131
4182
  init_react_import();
4132
4183
  init_css_module_data3();
@@ -4134,16 +4185,16 @@ var init_styles_module3 = __esm({
4134
4185
  }
4135
4186
  });
4136
4187
 
4137
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Modal/styles.module.css/#css-module-data
4188
+ // css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css/#css-module-data
4138
4189
  var init_css_module_data4 = __esm({
4139
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Modal/styles.module.css/#css-module-data"() {
4190
+ "css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css/#css-module-data"() {
4140
4191
  }
4141
4192
  });
4142
4193
 
4143
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Modal/styles.module.css#css-module
4194
+ // css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css#css-module
4144
4195
  var styles_module_default4;
4145
4196
  var init_styles_module4 = __esm({
4146
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Modal/styles.module.css#css-module"() {
4197
+ "css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css#css-module"() {
4147
4198
  "use strict";
4148
4199
  init_react_import();
4149
4200
  init_css_module_data4();
@@ -4202,16 +4253,16 @@ var init_Modal = __esm({
4202
4253
  }
4203
4254
  });
4204
4255
 
4205
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Heading/styles.module.css/#css-module-data
4256
+ // css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css/#css-module-data
4206
4257
  var init_css_module_data5 = __esm({
4207
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Heading/styles.module.css/#css-module-data"() {
4258
+ "css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css/#css-module-data"() {
4208
4259
  }
4209
4260
  });
4210
4261
 
4211
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Heading/styles.module.css#css-module
4262
+ // css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css#css-module
4212
4263
  var styles_module_default5;
4213
4264
  var init_styles_module5 = __esm({
4214
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Heading/styles.module.css#css-module"() {
4265
+ "css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css#css-module"() {
4215
4266
  "use strict";
4216
4267
  init_react_import();
4217
4268
  init_css_module_data5();
@@ -4491,16 +4542,16 @@ var init_lib = __esm({
4491
4542
  }
4492
4543
  });
4493
4544
 
4494
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Loader/styles.module.css/#css-module-data
4545
+ // css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css/#css-module-data
4495
4546
  var init_css_module_data6 = __esm({
4496
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Loader/styles.module.css/#css-module-data"() {
4547
+ "css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css/#css-module-data"() {
4497
4548
  }
4498
4549
  });
4499
4550
 
4500
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Loader/styles.module.css#css-module
4551
+ // css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css#css-module
4501
4552
  var styles_module_default6;
4502
4553
  var init_styles_module6 = __esm({
4503
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Loader/styles.module.css#css-module"() {
4554
+ "css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css#css-module"() {
4504
4555
  "use strict";
4505
4556
  init_react_import();
4506
4557
  init_css_module_data6();
@@ -4540,16 +4591,16 @@ var init_Loader = __esm({
4540
4591
  }
4541
4592
  });
4542
4593
 
4543
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Button/Button.module.css/#css-module-data
4594
+ // css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css/#css-module-data
4544
4595
  var init_css_module_data7 = __esm({
4545
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Button/Button.module.css/#css-module-data"() {
4596
+ "css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css/#css-module-data"() {
4546
4597
  }
4547
4598
  });
4548
4599
 
4549
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Button/Button.module.css#css-module
4600
+ // css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css#css-module
4550
4601
  var Button_module_default;
4551
4602
  var init_Button_module = __esm({
4552
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Button/Button.module.css#css-module"() {
4603
+ "css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css#css-module"() {
4553
4604
  "use strict";
4554
4605
  init_react_import();
4555
4606
  init_css_module_data7();
@@ -4655,16 +4706,16 @@ var init_Button2 = __esm({
4655
4706
  }
4656
4707
  });
4657
4708
 
4658
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/IconButton/IconButton.module.css/#css-module-data
4709
+ // css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data
4659
4710
  var init_css_module_data8 = __esm({
4660
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/IconButton/IconButton.module.css/#css-module-data"() {
4711
+ "css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data"() {
4661
4712
  }
4662
4713
  });
4663
4714
 
4664
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/IconButton/IconButton.module.css#css-module
4715
+ // css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css#css-module
4665
4716
  var IconButton_module_default;
4666
4717
  var init_IconButton_module = __esm({
4667
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/IconButton/IconButton.module.css#css-module"() {
4718
+ "css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css#css-module"() {
4668
4719
  "use strict";
4669
4720
  init_react_import();
4670
4721
  init_css_module_data8();
@@ -5222,16 +5273,16 @@ var init_TextareaField = __esm({
5222
5273
  }
5223
5274
  });
5224
5275
 
5225
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/styles.module.css/#css-module-data
5276
+ // css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data
5226
5277
  var init_css_module_data9 = __esm({
5227
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/styles.module.css/#css-module-data"() {
5278
+ "css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data"() {
5228
5279
  }
5229
5280
  });
5230
5281
 
5231
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/styles.module.css#css-module
5282
+ // css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module
5232
5283
  var styles_module_default7;
5233
5284
  var init_styles_module7 = __esm({
5234
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/styles.module.css#css-module"() {
5285
+ "css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module"() {
5235
5286
  "use strict";
5236
5287
  init_react_import();
5237
5288
  init_css_module_data9();
@@ -5239,16 +5290,16 @@ var init_styles_module7 = __esm({
5239
5290
  }
5240
5291
  });
5241
5292
 
5242
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data
5293
+ // css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data
5243
5294
  var init_css_module_data10 = __esm({
5244
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data"() {
5295
+ "css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data"() {
5245
5296
  }
5246
5297
  });
5247
5298
 
5248
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module
5299
+ // css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module
5249
5300
  var styles_module_default8;
5250
5301
  var init_styles_module8 = __esm({
5251
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module"() {
5302
+ "css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module"() {
5252
5303
  "use strict";
5253
5304
  init_react_import();
5254
5305
  init_css_module_data10();
@@ -5433,16 +5484,16 @@ var init_AlignJustify = __esm({
5433
5484
  }
5434
5485
  });
5435
5486
 
5436
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Select/styles.module.css/#css-module-data
5487
+ // css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css/#css-module-data
5437
5488
  var init_css_module_data11 = __esm({
5438
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Select/styles.module.css/#css-module-data"() {
5489
+ "css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css/#css-module-data"() {
5439
5490
  }
5440
5491
  });
5441
5492
 
5442
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Select/styles.module.css#css-module
5493
+ // css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css#css-module
5443
5494
  var styles_module_default9;
5444
5495
  var init_styles_module9 = __esm({
5445
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Select/styles.module.css#css-module"() {
5496
+ "css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css#css-module"() {
5446
5497
  "use strict";
5447
5498
  init_react_import();
5448
5499
  init_css_module_data11();
@@ -6408,16 +6459,16 @@ var init_inner = __esm({
6408
6459
  }
6409
6460
  });
6410
6461
 
6411
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextEditor/styles.module.css/#css-module-data
6462
+ // css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data
6412
6463
  var init_css_module_data12 = __esm({
6413
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextEditor/styles.module.css/#css-module-data"() {
6464
+ "css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data"() {
6414
6465
  }
6415
6466
  });
6416
6467
 
6417
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextEditor/styles.module.css#css-module
6468
+ // css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module
6418
6469
  var styles_module_default10;
6419
6470
  var init_styles_module10 = __esm({
6420
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/RichTextEditor/styles.module.css#css-module"() {
6471
+ "css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module"() {
6421
6472
  "use strict";
6422
6473
  init_react_import();
6423
6474
  init_css_module_data12();
@@ -7005,16 +7056,16 @@ var init_RichtextField = __esm({
7005
7056
  }
7006
7057
  });
7007
7058
 
7008
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data
7059
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data
7009
7060
  var init_css_module_data13 = __esm({
7010
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data"() {
7061
+ "css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data"() {
7011
7062
  }
7012
7063
  });
7013
7064
 
7014
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module
7065
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module
7015
7066
  var styles_module_default11;
7016
7067
  var init_styles_module11 = __esm({
7017
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module"() {
7068
+ "css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module"() {
7018
7069
  "use strict";
7019
7070
  init_react_import();
7020
7071
  init_css_module_data13();
@@ -7022,16 +7073,16 @@ var init_styles_module11 = __esm({
7022
7073
  }
7023
7074
  });
7024
7075
 
7025
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/DragIcon/styles.module.css/#css-module-data
7076
+ // css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data
7026
7077
  var init_css_module_data14 = __esm({
7027
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/DragIcon/styles.module.css/#css-module-data"() {
7078
+ "css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data"() {
7028
7079
  }
7029
7080
  });
7030
7081
 
7031
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/DragIcon/styles.module.css#css-module
7082
+ // css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css#css-module
7032
7083
  var styles_module_default12;
7033
7084
  var init_styles_module12 = __esm({
7034
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/DragIcon/styles.module.css#css-module"() {
7085
+ "css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css#css-module"() {
7035
7086
  "use strict";
7036
7087
  init_react_import();
7037
7088
  init_css_module_data14();
@@ -8014,16 +8065,16 @@ var init_ArrayField = __esm({
8014
8065
  }
8015
8066
  });
8016
8067
 
8017
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data
8068
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data
8018
8069
  var init_css_module_data15 = __esm({
8019
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data"() {
8070
+ "css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data"() {
8020
8071
  }
8021
8072
  });
8022
8073
 
8023
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
8074
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
8024
8075
  var styles_module_default13;
8025
8076
  var init_styles_module13 = __esm({
8026
- "css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module"() {
8077
+ "css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module"() {
8027
8078
  "use strict";
8028
8079
  init_react_import();
8029
8080
  init_css_module_data15();
@@ -8417,6 +8468,7 @@ __export(no_external_exports, {
8417
8468
  Separator: () => Separator,
8418
8469
  SliderField: () => SliderField,
8419
8470
  blocksPlugin: () => blocksPlugin,
8471
+ codePlugin: () => codePlugin,
8420
8472
  createUseCredBuild: () => createUseCredBuild,
8421
8473
  fieldsPlugin: () => fieldsPlugin,
8422
8474
  legacySideBarPlugin: () => legacySideBarPlugin,
@@ -8917,7 +8969,7 @@ init_Button2();
8917
8969
  // components/Drawer/index.tsx
8918
8970
  init_react_import();
8919
8971
 
8920
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Drawer/styles.module.css#css-module
8972
+ // css-module:/home/runner/work/credbuild/credbuild/components/Drawer/styles.module.css#css-module
8921
8973
  init_react_import();
8922
8974
  var styles_module_default14 = { "Drawer": "_Drawer_1bd7y_1", "Drawer-draggable": "_Drawer-draggable_1bd7y_7", "Drawer-draggableBg": "_Drawer-draggableBg_1bd7y_11", "DrawerItem-draggable": "_DrawerItem-draggable_1bd7y_21", "DrawerItem--disabled": "_DrawerItem--disabled_1bd7y_34", "DrawerItem": "_DrawerItem_1bd7y_21", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_1bd7y_43", "DrawerItem-default": "_DrawerItem-default_1bd7y_44", "DrawerItem-name": "_DrawerItem-name_1bd7y_61" };
8923
8975
 
@@ -9096,7 +9148,7 @@ var import_isomorphic_dompurify4 = __toESM(require("isomorphic-dompurify"));
9096
9148
  init_react_import();
9097
9149
  var import_react58 = require("react");
9098
9150
 
9099
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/DraggableComponent/styles.module.css#css-module
9151
+ // css-module:/home/runner/work/credbuild/credbuild/components/DraggableComponent/styles.module.css#css-module
9100
9152
  init_react_import();
9101
9153
  var styles_module_default15 = { "DraggableComponent": "_DraggableComponent_yrtpz_1", "DraggableComponent-overlayWrapper": "_DraggableComponent-overlayWrapper_yrtpz_12", "DraggableComponent-overlay": "_DraggableComponent-overlay_yrtpz_12", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_yrtpz_34", "DraggableComponent--hover": "_DraggableComponent--hover_yrtpz_50", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_yrtpz_57", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_yrtpz_71", "DraggableComponent-actions": "_DraggableComponent-actions_yrtpz_71" };
9102
9154
 
@@ -9288,6 +9340,7 @@ var DraggableComponent = ({
9288
9340
  );
9289
9341
  const overrides = useAppStore((s) => s.overrides);
9290
9342
  const dispatch = useAppStore((s) => s.dispatch);
9343
+ const appStore = useAppStoreApi();
9291
9344
  const isIframeEnabled = useAppStore((s) => s.iframe.enabled);
9292
9345
  const lastMeasureRef = (0, import_react58.useRef)(0);
9293
9346
  const ctx = (0, import_react58.useContext)(dropZoneContext);
@@ -9416,11 +9469,12 @@ var DraggableComponent = ({
9416
9469
  x: deepScrollPosition.x - portalScroll.x - (portalContainerRect?.left ?? 0),
9417
9470
  y: deepScrollPosition.y - portalScroll.y - (portalContainerRect?.top ?? 0)
9418
9471
  };
9472
+ const zoomMultiplier = isIframeEnabled ? 1 : appStore.getState().zoomConfig.zoom;
9419
9473
  const style2 = {
9420
- left: `${rect.left + scroll.x}px`,
9421
- top: `${rect.top + scroll.y}px`,
9422
- height: `${rect.height}px`,
9423
- width: `${rect.width}px`,
9474
+ left: `${(rect.left + scroll.x) / zoomMultiplier}px`,
9475
+ top: `${(rect.top + scroll.y) / zoomMultiplier}px`,
9476
+ height: `${rect.height / zoomMultiplier}px`,
9477
+ width: `${rect.width / zoomMultiplier}px`,
9424
9478
  position: targetIsFixed ? "fixed" : void 0
9425
9479
  };
9426
9480
  return style2;
@@ -9520,7 +9574,6 @@ var DraggableComponent = ({
9520
9574
  },
9521
9575
  [index, zoneCompound, isSelected, _experimentalFullScreenCanvas, dispatch, zoneStore]
9522
9576
  );
9523
- const appStore = useAppStoreApi();
9524
9577
  const onSelectParent = (0, import_react58.useCallback)(() => {
9525
9578
  const { nodes, zones } = appStore.getState().state.indexes;
9526
9579
  const node = nodes[id];
@@ -9835,7 +9888,7 @@ init_setup_zone();
9835
9888
  init_root_droppable_id();
9836
9889
  init_lib();
9837
9890
 
9838
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/DropZone/styles.module.css#css-module
9891
+ // css-module:/home/runner/work/credbuild/credbuild/components/DropZone/styles.module.css#css-module
9839
9892
  init_react_import();
9840
9893
  var styles_module_default16 = { "DropZone": "_DropZone_1vmgt_1", "DropZone--hasChildren": "_DropZone--hasChildren_1vmgt_11", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_1vmgt_24", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_1vmgt_25", "DropZone--isRootZone": "_DropZone--isRootZone_1vmgt_25", "DropZone--isDestination": "_DropZone--isDestination_1vmgt_35", "DropZone-item": "_DropZone-item_1vmgt_47", "DropZone-hitbox": "_DropZone-hitbox_1vmgt_51", "DropZone--isEnabled": "_DropZone--isEnabled_1vmgt_59", "DropZone--isAnimating": "_DropZone--isAnimating_1vmgt_68" };
9841
9894
 
@@ -10390,7 +10443,7 @@ var registerOverlayPortal = (el, opts = {}) => {
10390
10443
  // components/InlineTextField/index.tsx
10391
10444
  init_store2();
10392
10445
 
10393
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/InlineTextField/styles.module.css#css-module
10446
+ // css-module:/home/runner/work/credbuild/credbuild/components/InlineTextField/styles.module.css#css-module
10394
10447
  init_react_import();
10395
10448
  var styles_module_default17 = { "InlineTextField": "_InlineTextField_104qp_1" };
10396
10449
 
@@ -11422,7 +11475,7 @@ init_IconButton2();
11422
11475
 
11423
11476
  // components/CredBuild/index.tsx
11424
11477
  init_react_import();
11425
- var import_react101 = require("react");
11478
+ var import_react103 = require("react");
11426
11479
  init_store2();
11427
11480
 
11428
11481
  // components/CredBuild/components/Fields/index.tsx
@@ -11433,7 +11486,7 @@ init_AutoField();
11433
11486
  init_store();
11434
11487
  init_store2();
11435
11488
 
11436
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Fields/styles.module.css#css-module
11489
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Fields/styles.module.css#css-module
11437
11490
  init_react_import();
11438
11491
  var styles_module_default18 = { "CredBuildFields": "_CredBuildFields_53gu7_1", "CredBuildFields--isLoading": "_CredBuildFields--isLoading_53gu7_6", "CredBuildFields-loadingOverlay": "_CredBuildFields-loadingOverlay_53gu7_10", "CredBuildFields-loadingOverlayInner": "_CredBuildFields-loadingOverlayInner_53gu7_25", "CredBuildFields-field": "_CredBuildFields-field_53gu7_32", "CredBuildFields--wrapFields": "_CredBuildFields--wrapFields_53gu7_36" };
11439
11492
 
@@ -11596,7 +11649,7 @@ var import_react78 = require("react");
11596
11649
  // components/ComponentList/index.tsx
11597
11650
  init_react_import();
11598
11651
 
11599
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ComponentList/styles.module.css#css-module
11652
+ // css-module:/home/runner/work/credbuild/credbuild/components/ComponentList/styles.module.css#css-module
11600
11653
  init_react_import();
11601
11654
  var styles_module_default19 = { "ComponentList": "_ComponentList_10tqo_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_10tqo_5", "ComponentList-content": "_ComponentList-content_10tqo_9", "ComponentList-title": "_ComponentList-title_10tqo_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_10tqo_53" };
11602
11655
 
@@ -11777,7 +11830,7 @@ init_store2();
11777
11830
  var import_react79 = require("react");
11778
11831
  init_lucide_react();
11779
11832
 
11780
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Components/styles.module.css#css-module
11833
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Components/styles.module.css#css-module
11781
11834
  init_react_import();
11782
11835
  var styles_module_default20 = { "CredBuildComponents": "_CredBuildComponents_1a9p4_1", "CredBuildComponents-searchContainer": "_CredBuildComponents-searchContainer_1a9p4_7", "CredBuildComponents-searchWrapper": "_CredBuildComponents-searchWrapper_1a9p4_16", "CredBuildComponents-searchInput": "_CredBuildComponents-searchInput_1a9p4_23", "CredBuildComponents-searchIcon": "_CredBuildComponents-searchIcon_1a9p4_42", "CredBuildComponents-clearButton": "_CredBuildComponents-clearButton_1a9p4_54", "CredBuildComponents-listContainer": "_CredBuildComponents-listContainer_1a9p4_74", "CredBuildComponents-noResults": "_CredBuildComponents-noResults_1a9p4_79" };
11783
11836
 
@@ -11877,7 +11930,7 @@ var Components = () => {
11877
11930
  // components/CredBuild/components/Preview/index.tsx
11878
11931
  init_react_import();
11879
11932
  init_root_droppable_id();
11880
- var import_react82 = require("react");
11933
+ var import_react83 = require("react");
11881
11934
  init_store2();
11882
11935
 
11883
11936
  // components/AutoFrame/index.tsx
@@ -12174,18 +12227,151 @@ function AutoFrame({
12174
12227
  AutoFrame.displayName = "AutoFrame";
12175
12228
  var AutoFrame_default = AutoFrame;
12176
12229
 
12177
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Preview/styles.module.css#css-module
12230
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Preview/styles.module.css#css-module
12178
12231
  init_react_import();
12179
12232
  var styles_module_default21 = { "CredBuildPreview": "_CredBuildPreview_1z08a_1", "CredBuildPreview-frame": "_CredBuildPreview-frame_1z08a_6" };
12180
12233
 
12181
12234
  // components/CredBuild/components/Preview/index.tsx
12182
12235
  init_lib();
12183
12236
 
12184
- // components/Render/index.tsx
12237
+ // components/HtmlModeRender/index.tsx
12185
12238
  init_react_import();
12186
- init_root_droppable_id();
12187
12239
  var import_react81 = require("react");
12188
12240
  var import_jsx_runtime78 = require("react/jsx-runtime");
12241
+ var HtmlModeRender = ({
12242
+ htmlCode,
12243
+ isEditing
12244
+ }) => {
12245
+ const id = (0, import_react81.useId)().replace(/:/g, "");
12246
+ const [iframeHeight, setIframeHeight] = (0, import_react81.useState)("100%");
12247
+ const divRef = (0, import_react81.useRef)(null);
12248
+ (0, import_react81.useEffect)(() => {
12249
+ if (!isEditing) return;
12250
+ const handleMessage = (event) => {
12251
+ if (event.data && event.data.type === "resize-iframe" && event.data.id === id) {
12252
+ setIframeHeight(`${event.data.height}px`);
12253
+ }
12254
+ };
12255
+ window.addEventListener("message", handleMessage);
12256
+ return () => window.removeEventListener("message", handleMessage);
12257
+ }, [id, isEditing]);
12258
+ (0, import_react81.useEffect)(() => {
12259
+ if (isEditing || !divRef.current || !htmlCode) return;
12260
+ const scripts = divRef.current.querySelectorAll("script");
12261
+ scripts.forEach((script) => {
12262
+ const newScript = document.createElement("script");
12263
+ Array.from(script.attributes).forEach(
12264
+ (attr) => newScript.setAttribute(attr.name, attr.value)
12265
+ );
12266
+ newScript.appendChild(document.createTextNode(script.innerHTML));
12267
+ script.parentNode?.replaceChild(newScript, script);
12268
+ });
12269
+ }, [htmlCode, isEditing]);
12270
+ if (!htmlCode) {
12271
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { style: { padding: 48, textAlign: "center", color: "#666" }, children: "Belum ada kode HTML yang ditempel." });
12272
+ }
12273
+ if (isEditing) {
12274
+ const resizeScript = `
12275
+ <script>
12276
+ function sendHeight() {
12277
+ const height = document.documentElement.scrollHeight || document.body.scrollHeight;
12278
+ window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
12279
+ }
12280
+ window.addEventListener('load', sendHeight);
12281
+ window.addEventListener('resize', sendHeight);
12282
+
12283
+ if (window.ResizeObserver) {
12284
+ new ResizeObserver(sendHeight).observe(document.body);
12285
+ } else {
12286
+ setInterval(sendHeight, 1000);
12287
+ }
12288
+ </script>
12289
+ `;
12290
+ const needsTailwind = htmlCode.includes("cdn.tailwindcss.com") || htmlCode.includes("tailwindcss") || /\b(bg-|text-|p[xy]?[-0-9]|m[xy]?[-0-9]|flex|grid|border-|rounded-|shadow-|justify-|items-|gap-|relative|absolute|hidden|w-|h-|leading-|tracking-|font-|transition|duration-|ease-|hover:|focus:|sm:|md:|lg:|xl:)/.test(
12291
+ htmlCode
12292
+ );
12293
+ const isStandalone = htmlCode.includes("<html") || htmlCode.includes("<!DOCTYPE") || htmlCode.includes("<body") || htmlCode.includes("<head>");
12294
+ let srcDoc = "";
12295
+ if (isStandalone) {
12296
+ let processed = htmlCode;
12297
+ if (processed.includes("</body>")) {
12298
+ processed = processed.replace("</body>", `${resizeScript}</body>`);
12299
+ } else {
12300
+ processed = processed + resizeScript;
12301
+ }
12302
+ if (needsTailwind && !processed.includes("cdn.tailwindcss.com") && !processed.includes("tailwindcss")) {
12303
+ if (processed.includes("</head>")) {
12304
+ processed = processed.replace(
12305
+ "</head>",
12306
+ `<script src="https://cdn.tailwindcss.com"></script></head>`
12307
+ );
12308
+ } else if (processed.includes("<head>")) {
12309
+ processed = processed.replace(
12310
+ "<head>",
12311
+ `<head><script src="https://cdn.tailwindcss.com"></script>`
12312
+ );
12313
+ } else {
12314
+ processed = `<script src="https://cdn.tailwindcss.com"></script>` + processed;
12315
+ }
12316
+ }
12317
+ srcDoc = processed;
12318
+ } else {
12319
+ srcDoc = `
12320
+ <!DOCTYPE html>
12321
+ <html>
12322
+ <head>
12323
+ ${needsTailwind ? `<script src="https://cdn.tailwindcss.com"></script>` : ""}
12324
+ <style>
12325
+ *, *::before, *::after { box-sizing: border-box; }
12326
+ body {
12327
+ margin: 0;
12328
+ padding: 0;
12329
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
12330
+ }
12331
+ img, iframe, video {
12332
+ max-width: 100%;
12333
+ }
12334
+ </style>
12335
+ </head>
12336
+ <body>
12337
+ ${htmlCode}
12338
+ ${resizeScript}
12339
+ </body>
12340
+ </html>
12341
+ `;
12342
+ }
12343
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
12344
+ "iframe",
12345
+ {
12346
+ srcDoc,
12347
+ sandbox: "allow-scripts",
12348
+ title: "Html Mode Sandboxed Canvas",
12349
+ loading: "lazy",
12350
+ style: {
12351
+ height: iframeHeight,
12352
+ border: "none",
12353
+ width: "100%",
12354
+ display: "block",
12355
+ background: "transparent"
12356
+ }
12357
+ }
12358
+ ) });
12359
+ }
12360
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
12361
+ "div",
12362
+ {
12363
+ ref: divRef,
12364
+ dangerouslySetInnerHTML: { __html: htmlCode },
12365
+ style: { width: "100%" }
12366
+ }
12367
+ );
12368
+ };
12369
+
12370
+ // components/Render/index.tsx
12371
+ init_react_import();
12372
+ init_root_droppable_id();
12373
+ var import_react82 = require("react");
12374
+ var import_jsx_runtime79 = require("react/jsx-runtime");
12189
12375
  function Render({
12190
12376
  config,
12191
12377
  data,
@@ -12198,6 +12384,9 @@ function Render({
12198
12384
  };
12199
12385
  const rootProps = "props" in defaultedData.root ? defaultedData.root.props : defaultedData.root;
12200
12386
  const title = rootProps?.title || "";
12387
+ if (rootProps?.mode === "html") {
12388
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(HtmlModeRender, { htmlCode: rootProps.htmlCode, isEditing: false }) });
12389
+ }
12201
12390
  const pageProps = {
12202
12391
  ...rootProps,
12203
12392
  credbuild: {
@@ -12213,10 +12402,10 @@ function Render({
12213
12402
  const propsWithSlots = useSlots(
12214
12403
  config,
12215
12404
  { type: "root", props: pageProps },
12216
- (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(SlotRender, { ...props, config, metadata })
12405
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(SlotRender, { ...props, config, metadata })
12217
12406
  );
12218
12407
  const richtextProps = useRichtextProps(config.root?.fields, pageProps);
12219
- const nextContextValue = (0, import_react81.useMemo)(
12408
+ const nextContextValue = (0, import_react82.useMemo)(
12220
12409
  () => ({
12221
12410
  mode: "render",
12222
12411
  depth: 0
@@ -12224,9 +12413,9 @@ function Render({
12224
12413
  []
12225
12414
  );
12226
12415
  if (config.root?.render) {
12227
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(config.root.render, { ...propsWithSlots, ...richtextProps, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DropZoneRenderPure, { zone: rootZone }) }) }) });
12416
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(config.root.render, { ...propsWithSlots, ...richtextProps, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneRenderPure, { zone: rootZone }) }) }) });
12228
12417
  }
12229
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DropZoneRenderPure, { zone: rootZone }) }) });
12418
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value: { config, data: defaultedData, metadata }, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneRenderPure, { zone: rootZone }) }) });
12230
12419
  }
12231
12420
 
12232
12421
  // lib/bubble-pointer-event.ts
@@ -12249,11 +12438,11 @@ var BubbledPointerEvent = class extends BaseEvent {
12249
12438
  };
12250
12439
 
12251
12440
  // components/CredBuild/components/Preview/index.tsx
12252
- var import_jsx_runtime79 = require("react/jsx-runtime");
12441
+ var import_jsx_runtime80 = require("react/jsx-runtime");
12253
12442
  var getClassName30 = get_class_name_factory_default("CredBuildPreview", styles_module_default21);
12254
12443
  var useBubbleIframeEvents = (ref) => {
12255
12444
  const status = useAppStore((s) => s.status);
12256
- (0, import_react82.useEffect)(() => {
12445
+ (0, import_react83.useEffect)(() => {
12257
12446
  if (ref.current && status === "READY") {
12258
12447
  const iframe = ref.current;
12259
12448
  const handlePointerMove = (event) => {
@@ -12301,7 +12490,7 @@ var Preview = ({ id = "credbuild-preview" }) => {
12301
12490
  const renderData = useAppStore(
12302
12491
  (s) => s.state.ui.previewMode === "edit" ? null : s.state.data
12303
12492
  );
12304
- const Page = (0, import_react82.useCallback)(
12493
+ const Page = (0, import_react83.useCallback)(
12305
12494
  (pageProps) => {
12306
12495
  const propsWithSlots = useSlots(
12307
12496
  config,
@@ -12316,15 +12505,101 @@ var Preview = ({ id = "credbuild-preview" }) => {
12316
12505
  id: "credbuild-root",
12317
12506
  ...propsWithSlots,
12318
12507
  ...richtextProps
12319
- }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, { children: propsWithSlots.children });
12508
+ }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: propsWithSlots.children });
12320
12509
  },
12321
12510
  [config]
12322
12511
  );
12323
- const Frame = (0, import_react82.useMemo)(() => overrides.iframe, [overrides]);
12512
+ const Frame = (0, import_react83.useMemo)(() => overrides.iframe, [overrides]);
12324
12513
  const rootProps = root.props || root;
12325
- const ref = (0, import_react82.useRef)(null);
12514
+ const isHtmlMode = rootProps?.mode === "html";
12515
+ const htmlViewMode = rootProps?.htmlViewMode || (rootProps?.htmlCode ? "preview" : "code");
12516
+ const htmlCode = rootProps?.htmlCode || "";
12517
+ const ref = (0, import_react83.useRef)(null);
12326
12518
  useBubbleIframeEvents(ref);
12327
- const inner = !renderData ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
12519
+ const [localCode, setLocalCode] = (0, import_react83.useState)(htmlCode);
12520
+ (0, import_react83.useEffect)(() => {
12521
+ setLocalCode(htmlCode);
12522
+ }, [htmlCode]);
12523
+ (0, import_react83.useEffect)(() => {
12524
+ if (localCode === htmlCode) return;
12525
+ const timer = setTimeout(() => {
12526
+ dispatch({
12527
+ type: "setData",
12528
+ data: (currentData) => {
12529
+ if (currentData.root?.props?.htmlCode === localCode) {
12530
+ return currentData;
12531
+ }
12532
+ return {
12533
+ ...currentData,
12534
+ root: {
12535
+ ...currentData.root,
12536
+ props: {
12537
+ ...currentData.root?.props,
12538
+ htmlCode: localCode
12539
+ }
12540
+ }
12541
+ };
12542
+ }
12543
+ });
12544
+ }, 300);
12545
+ return () => clearTimeout(timer);
12546
+ }, [localCode, htmlCode, dispatch]);
12547
+ const handleSaveOnBlur = () => {
12548
+ dispatch({
12549
+ type: "setData",
12550
+ data: (currentData) => {
12551
+ if (currentData.root?.props?.htmlCode === localCode) {
12552
+ return currentData;
12553
+ }
12554
+ return {
12555
+ ...currentData,
12556
+ root: {
12557
+ ...currentData.root,
12558
+ props: {
12559
+ ...currentData.root?.props,
12560
+ htmlCode: localCode
12561
+ }
12562
+ }
12563
+ };
12564
+ }
12565
+ });
12566
+ };
12567
+ const handleSetViewMode = (modeVal) => {
12568
+ dispatch({
12569
+ type: "setData",
12570
+ data: (currentData) => ({
12571
+ ...currentData,
12572
+ root: {
12573
+ ...currentData.root,
12574
+ props: {
12575
+ ...currentData.root?.props,
12576
+ htmlViewMode: modeVal
12577
+ }
12578
+ }
12579
+ })
12580
+ });
12581
+ };
12582
+ const handleResetToBlocks = () => {
12583
+ dispatch({
12584
+ type: "setData",
12585
+ data: (currentData) => ({
12586
+ ...currentData,
12587
+ content: [],
12588
+ root: {
12589
+ ...currentData.root,
12590
+ props: {
12591
+ ...currentData.root?.props,
12592
+ mode: "blocks",
12593
+ htmlCode: "",
12594
+ htmlViewMode: "code"
12595
+ }
12596
+ }
12597
+ })
12598
+ });
12599
+ };
12600
+ const isHtmlCodeEditActive = isHtmlMode && !renderData && htmlViewMode === "code";
12601
+ const isHtmlPreviewActive = isHtmlMode && !renderData && htmlViewMode === "preview";
12602
+ const inner = rootProps?.mode === "html" ? !renderData ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(HtmlModeRender, { htmlCode: rootProps.htmlCode, isEditing: true }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Render, { data: renderData, config, metadata }) : !renderData ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12328
12603
  Page,
12329
12604
  {
12330
12605
  ...rootProps,
@@ -12335,27 +12610,91 @@ var Preview = ({ id = "credbuild-preview" }) => {
12335
12610
  metadata
12336
12611
  },
12337
12612
  editMode: true,
12338
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZonePure, { zone: rootDroppableId })
12613
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DropZonePure, { zone: rootDroppableId })
12339
12614
  }
12340
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Render, { data: renderData, config, metadata });
12341
- (0, import_react82.useEffect)(() => {
12615
+ ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Render, { data: renderData, config, metadata });
12616
+ (0, import_react83.useEffect)(() => {
12342
12617
  if (!iframe.enabled) {
12343
12618
  setStatus("READY");
12344
12619
  }
12345
12620
  }, [iframe.enabled, setStatus]);
12346
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
12621
+ if (isHtmlCodeEditActive) {
12622
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12623
+ "div",
12624
+ {
12625
+ className: getClassName30(),
12626
+ id,
12627
+ "data-credbuild-preview": true,
12628
+ style: { height: "100%", display: "flex", flexDirection: "column" },
12629
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { style: {
12630
+ display: "flex",
12631
+ flexDirection: "column",
12632
+ flex: 1,
12633
+ background: "#020617",
12634
+ position: "relative"
12635
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { style: {
12636
+ display: "flex",
12637
+ flex: 1,
12638
+ position: "relative",
12639
+ overflow: "hidden"
12640
+ }, children: [
12641
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { style: {
12642
+ width: 45,
12643
+ background: "#0b0f19",
12644
+ borderRight: "1px solid #1e293b",
12645
+ display: "flex",
12646
+ flexDirection: "column",
12647
+ alignItems: "flex-end",
12648
+ padding: "16px 8px 16px 0",
12649
+ fontFamily: "Menlo, Monaco, Consolas, monospace",
12650
+ fontSize: 12,
12651
+ color: "#475569",
12652
+ userSelect: "none",
12653
+ lineHeight: 1.6
12654
+ }, children: Array.from({ length: Math.max(localCode.split("\n").length, 25) }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { children: i + 1 }, i)) }),
12655
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12656
+ "textarea",
12657
+ {
12658
+ value: localCode,
12659
+ onChange: (e) => setLocalCode(e.target.value),
12660
+ onBlur: handleSaveOnBlur,
12661
+ placeholder: "<!-- Tempel kode HTML/Tailwind di sini -->\n<section class='bg-zinc-900 text-white p-12'>\n <h1 class='text-3xl font-bold'>Hello World</h1>\n</section>",
12662
+ spellCheck: false,
12663
+ style: {
12664
+ flex: 1,
12665
+ background: "transparent",
12666
+ border: "none",
12667
+ outline: "none",
12668
+ color: "#e2e8f0",
12669
+ fontFamily: "Menlo, Monaco, Consolas, 'Fira Code', monospace",
12670
+ fontSize: 13,
12671
+ lineHeight: 1.6,
12672
+ padding: "16px 20px",
12673
+ resize: "none",
12674
+ height: "100%",
12675
+ width: "100%",
12676
+ overflowY: "auto"
12677
+ }
12678
+ }
12679
+ )
12680
+ ] }) })
12681
+ }
12682
+ );
12683
+ }
12684
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12347
12685
  "div",
12348
12686
  {
12349
12687
  className: getClassName30(),
12350
12688
  id,
12351
12689
  "data-credbuild-preview": true,
12690
+ style: { height: "100%", display: "flex", flexDirection: "column" },
12352
12691
  onClick: (e) => {
12353
12692
  const el = e.target;
12354
12693
  if (!el.hasAttribute("data-credbuild-component") && !el.hasAttribute("data-credbuild-dropzone")) {
12355
12694
  dispatch({ type: "setUi", ui: { itemSelector: null } });
12356
12695
  }
12357
12696
  },
12358
- children: iframe.enabled ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
12697
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { style: { flex: 1, position: "relative", minHeight: 0, height: "100%" }, children: iframe.enabled ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12359
12698
  AutoFrame_default,
12360
12699
  {
12361
12700
  id: "preview-frame",
@@ -12368,23 +12707,24 @@ var Preview = ({ id = "credbuild-preview" }) => {
12368
12707
  setStatus("MOUNTED");
12369
12708
  },
12370
12709
  frameRef: ref,
12371
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(autoFrameContext.Consumer, { children: ({ document: document2 }) => {
12710
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(autoFrameContext.Consumer, { children: ({ document: document2 }) => {
12372
12711
  if (Frame) {
12373
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Frame, { document: document2, children: inner });
12712
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Frame, { document: document2, children: inner });
12374
12713
  }
12375
12714
  return inner;
12376
12715
  } })
12377
12716
  }
12378
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
12717
+ ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12379
12718
  "div",
12380
12719
  {
12381
12720
  id: "preview-frame",
12382
12721
  className: getClassName30("frame"),
12383
12722
  ref,
12384
12723
  "data-credbuild-entry": true,
12724
+ style: { height: "100%", width: "100%" },
12385
12725
  children: inner
12386
12726
  }
12387
- )
12727
+ ) })
12388
12728
  }
12389
12729
  );
12390
12730
  };
@@ -12395,7 +12735,7 @@ init_react_import();
12395
12735
  // components/LayerTree/index.tsx
12396
12736
  init_react_import();
12397
12737
 
12398
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/LayerTree/styles.module.css#css-module
12738
+ // css-module:/home/runner/work/credbuild/credbuild/components/LayerTree/styles.module.css#css-module
12399
12739
  init_react_import();
12400
12740
  var styles_module_default22 = { "LayerTree": "_LayerTree_nus40_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_nus40_11", "LayerTree-helper": "_LayerTree-helper_nus40_17", "Layer": "_Layer_nus40_1", "Layer-inner": "_Layer-inner_nus40_29", "Layer--containsZone": "_Layer--containsZone_nus40_35", "Layer-clickable": "_Layer-clickable_nus40_39", "Layer--isSelected": "_Layer--isSelected_nus40_58", "Layer-chevron": "_Layer-chevron_nus40_79", "Layer--childIsSelected": "_Layer--childIsSelected_nus40_80", "Layer-zones": "_Layer-zones_nus40_84", "Layer-title": "_Layer-title_nus40_98", "Layer-name": "_Layer-name_nus40_107", "Layer-icon": "_Layer-icon_nus40_113", "Layer-zoneIcon": "_Layer-zoneIcon_nus40_118" };
12401
12741
 
@@ -12403,11 +12743,11 @@ var styles_module_default22 = { "LayerTree": "_LayerTree_nus40_1", "LayerTree-zo
12403
12743
  init_get_class_name_factory();
12404
12744
  init_lucide_react();
12405
12745
  init_root_droppable_id();
12406
- var import_react83 = require("react");
12746
+ var import_react84 = require("react");
12407
12747
  init_store2();
12408
12748
  init_use_context_store();
12409
12749
  var import_react_virtual2 = require("@tanstack/react-virtual");
12410
- var import_jsx_runtime80 = require("react/jsx-runtime");
12750
+ var import_jsx_runtime81 = require("react/jsx-runtime");
12411
12751
  var getClassName31 = get_class_name_factory_default("LayerTree", styles_module_default22);
12412
12752
  var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default22);
12413
12753
  var DEFAULT_LAYER_ROW_HEIGHT = 32;
@@ -12506,7 +12846,7 @@ var getScrollParent = (el) => {
12506
12846
  }
12507
12847
  return null;
12508
12848
  };
12509
- var Layer = (0, import_react83.memo)((0, import_react83.forwardRef)(function Layer2({
12849
+ var Layer = (0, import_react84.memo)((0, import_react84.forwardRef)(function Layer2({
12510
12850
  childIsSelected,
12511
12851
  dataIndex,
12512
12852
  depth,
@@ -12516,13 +12856,13 @@ var Layer = (0, import_react83.memo)((0, import_react83.forwardRef)(function Lay
12516
12856
  selectedPathIds
12517
12857
  }, ref) {
12518
12858
  const dispatch = useAppStore((s) => s.dispatch);
12519
- const zoneStore = (0, import_react83.useContext)(ZoneStoreContext);
12859
+ const zoneStore = (0, import_react84.useContext)(ZoneStoreContext);
12520
12860
  const isHovering = useContextStore(
12521
12861
  ZoneStoreContext,
12522
12862
  (s) => s.hoveringComponent === node.itemId
12523
12863
  );
12524
12864
  const containsZone = node.childZones.length > 0;
12525
- const setItemSelector = (0, import_react83.useCallback)(
12865
+ const setItemSelector = (0, import_react84.useCallback)(
12526
12866
  (itemSelector) => {
12527
12867
  dispatch({ type: "setUi", ui: { itemSelector } });
12528
12868
  },
@@ -12531,19 +12871,19 @@ var Layer = (0, import_react83.memo)((0, import_react83.forwardRef)(function Lay
12531
12871
  const shouldRenderChildren = isSelected || childIsSelected;
12532
12872
  const getLayerIcon = (type) => {
12533
12873
  const t = type.toLowerCase();
12534
- if (t === "text" || t === "heading" || t.includes("heading")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Type, { size: "14", strokeWidth: 2.5 });
12535
- if (t.includes("hero")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(LayoutTemplate, { size: "14", strokeWidth: 2.5 });
12536
- if (t.includes("pricing")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(CreditCard, { size: "14", strokeWidth: 2.5 });
12537
- if (t.includes("stats")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ChartColumn, { size: "14", strokeWidth: 2.5 });
12538
- if (t.includes("testimonials")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Quote, { size: "14", strokeWidth: 2.5 });
12539
- if (t.includes("about") || t.includes("info")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Info, { size: "14", strokeWidth: 2.5 });
12540
- if (t.includes("gallery") || t.includes("image")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Image, { size: "14", strokeWidth: 2.5 });
12541
- if (t.includes("marketing") || t.includes("cta")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Megaphone, { size: "14", strokeWidth: 2.5 });
12542
- if (t.includes("content") || t.includes("blog")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(FileText, { size: "14", strokeWidth: 2.5 });
12543
- if (t.includes("container") || t.includes("layout") || t.includes("flex")) return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Box, { size: "14", strokeWidth: 2.5 });
12544
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(LayoutGrid, { size: "14", strokeWidth: 2.5 });
12874
+ if (t === "text" || t === "heading" || t.includes("heading")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Type, { size: "14", strokeWidth: 2.5 });
12875
+ if (t.includes("hero")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(LayoutTemplate, { size: "14", strokeWidth: 2.5 });
12876
+ if (t.includes("pricing")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CreditCard, { size: "14", strokeWidth: 2.5 });
12877
+ if (t.includes("stats")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ChartColumn, { size: "14", strokeWidth: 2.5 });
12878
+ if (t.includes("testimonials")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Quote, { size: "14", strokeWidth: 2.5 });
12879
+ if (t.includes("about") || t.includes("info")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Info, { size: "14", strokeWidth: 2.5 });
12880
+ if (t.includes("gallery") || t.includes("image")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Image, { size: "14", strokeWidth: 2.5 });
12881
+ if (t.includes("marketing") || t.includes("cta")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Megaphone, { size: "14", strokeWidth: 2.5 });
12882
+ if (t.includes("content") || t.includes("blog")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(FileText, { size: "14", strokeWidth: 2.5 });
12883
+ if (t.includes("container") || t.includes("layout") || t.includes("flex")) return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Box, { size: "14", strokeWidth: 2.5 });
12884
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(LayoutGrid, { size: "14", strokeWidth: 2.5 });
12545
12885
  };
12546
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
12886
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
12547
12887
  "li",
12548
12888
  {
12549
12889
  ref,
@@ -12556,7 +12896,7 @@ var Layer = (0, import_react83.memo)((0, import_react83.forwardRef)(function Lay
12556
12896
  "data-index": dataIndex,
12557
12897
  "data-credbuild-layer-tree-id": node.itemId,
12558
12898
  children: [
12559
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
12899
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
12560
12900
  "button",
12561
12901
  {
12562
12902
  type: "button",
@@ -12581,26 +12921,26 @@ var Layer = (0, import_react83.memo)((0, import_react83.forwardRef)(function Lay
12581
12921
  zoneStore.setState({ hoveringComponent: null });
12582
12922
  },
12583
12923
  children: [
12584
- containsZone && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12924
+ containsZone && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12585
12925
  "div",
12586
12926
  {
12587
12927
  className: getClassNameLayer("chevron"),
12588
12928
  title: isSelected ? "Collapse" : "Expand",
12589
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ChevronDown, { size: "12" })
12929
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ChevronDown, { size: "12" })
12590
12930
  }
12591
12931
  ),
12592
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: getClassNameLayer("title"), children: [
12593
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: getClassNameLayer("icon"), children: getLayerIcon(node.componentType) }),
12594
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: getClassNameLayer("name"), children: node.label })
12932
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: getClassNameLayer("title"), children: [
12933
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassNameLayer("icon"), children: getLayerIcon(node.componentType) }),
12934
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassNameLayer("name"), children: node.label })
12595
12935
  ] })
12596
12936
  ]
12597
12937
  }
12598
12938
  ) }),
12599
- containsZone && shouldRenderChildren && node.childZones.map((childZone) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12939
+ containsZone && shouldRenderChildren && node.childZones.map((childZone) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12600
12940
  "div",
12601
12941
  {
12602
12942
  className: getClassNameLayer("zones"),
12603
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12943
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12604
12944
  LayerTreeZone,
12605
12945
  {
12606
12946
  depth: depth + 1,
@@ -12616,19 +12956,19 @@ var Layer = (0, import_react83.memo)((0, import_react83.forwardRef)(function Lay
12616
12956
  }
12617
12957
  );
12618
12958
  }));
12619
- var LayerTreeZone = (0, import_react83.memo)(({
12959
+ var LayerTreeZone = (0, import_react84.memo)(({
12620
12960
  depth,
12621
12961
  selectedId,
12622
12962
  selectedPathIds,
12623
12963
  tree
12624
12964
  }) => {
12625
12965
  const shouldVirtualize = depth === 0 && tree.items.length >= MIN_VIRTUALIZED_LAYER_COUNT;
12626
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
12627
- tree.label && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: getClassName31("zoneTitle"), children: [
12628
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: getClassName31("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Layers, { size: "16" }) }),
12966
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
12967
+ tree.label && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: getClassName31("zoneTitle"), children: [
12968
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassName31("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Layers, { size: "16" }) }),
12629
12969
  tree.label
12630
12970
  ] }),
12631
- shouldVirtualize ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12971
+ shouldVirtualize ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12632
12972
  VirtualizedLayerTreeItems,
12633
12973
  {
12634
12974
  depth,
@@ -12636,7 +12976,7 @@ var LayerTreeZone = (0, import_react83.memo)(({
12636
12976
  selectedPathIds,
12637
12977
  tree
12638
12978
  }
12639
- ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12979
+ ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12640
12980
  StaticLayerTreeItems,
12641
12981
  {
12642
12982
  depth,
@@ -12647,15 +12987,15 @@ var LayerTreeZone = (0, import_react83.memo)(({
12647
12987
  )
12648
12988
  ] });
12649
12989
  });
12650
- var StaticLayerTreeItems = (0, import_react83.memo)(({
12990
+ var StaticLayerTreeItems = (0, import_react84.memo)(({
12651
12991
  depth,
12652
12992
  selectedId,
12653
12993
  selectedPathIds,
12654
12994
  tree
12655
12995
  }) => {
12656
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("ul", { className: getClassName31(), children: [
12657
- tree.items.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: getClassName31("helper"), children: "No items" }),
12658
- tree.items.map((node) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12996
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("ul", { className: getClassName31(), children: [
12997
+ tree.items.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassName31("helper"), children: "No items" }),
12998
+ tree.items.map((node) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12659
12999
  Layer,
12660
13000
  {
12661
13001
  childIsSelected: selectedPathIds.has(node.itemId),
@@ -12669,13 +13009,13 @@ var StaticLayerTreeItems = (0, import_react83.memo)(({
12669
13009
  ))
12670
13010
  ] });
12671
13011
  });
12672
- var VirtualizedLayerTreeItems = (0, import_react83.memo)(({
13012
+ var VirtualizedLayerTreeItems = (0, import_react84.memo)(({
12673
13013
  depth,
12674
13014
  selectedId,
12675
13015
  selectedPathIds,
12676
13016
  tree
12677
13017
  }) => {
12678
- const listRef = (0, import_react83.useRef)(null);
13018
+ const listRef = (0, import_react84.useRef)(null);
12679
13019
  const virtualizer = (0, import_react_virtual2.useVirtualizer)({
12680
13020
  count: tree.items.length,
12681
13021
  estimateSize: (index) => getEstimatedRowHeight(tree.items[index].itemId),
@@ -12701,7 +13041,7 @@ var VirtualizedLayerTreeItems = (0, import_react83.memo)(({
12701
13041
  const gapSize = Math.max(virtualItem.start - previousEnd, 0);
12702
13042
  if (gapSize > 0) {
12703
13043
  renderedItems.push(
12704
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
13044
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12705
13045
  "li",
12706
13046
  {
12707
13047
  "aria-hidden": "true",
@@ -12712,7 +13052,7 @@ var VirtualizedLayerTreeItems = (0, import_react83.memo)(({
12712
13052
  );
12713
13053
  }
12714
13054
  renderedItems.push(
12715
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
13055
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12716
13056
  Layer,
12717
13057
  {
12718
13058
  childIsSelected: selectedPathIds.has(node.itemId),
@@ -12733,7 +13073,7 @@ var VirtualizedLayerTreeItems = (0, import_react83.memo)(({
12733
13073
  const trailingGap = Math.max(totalSize - previousEnd, 0);
12734
13074
  if (trailingGap > 0) {
12735
13075
  renderedItems.push(
12736
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
13076
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12737
13077
  "li",
12738
13078
  {
12739
13079
  "aria-hidden": "true",
@@ -12743,17 +13083,17 @@ var VirtualizedLayerTreeItems = (0, import_react83.memo)(({
12743
13083
  )
12744
13084
  );
12745
13085
  }
12746
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("ul", { className: getClassName31(), ref: listRef, children: [
12747
- tree.items.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: getClassName31("helper"), children: "No items" }),
13086
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("ul", { className: getClassName31(), ref: listRef, children: [
13087
+ tree.items.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassName31("helper"), children: "No items" }),
12748
13088
  renderedItems
12749
13089
  ] });
12750
13090
  });
12751
- var LayerTree = (0, import_react83.memo)(({
13091
+ var LayerTree = (0, import_react84.memo)(({
12752
13092
  selectedId,
12753
13093
  selectedPathIds,
12754
13094
  trees
12755
13095
  }) => {
12756
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: trees.map((tree) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
13096
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_jsx_runtime81.Fragment, { children: trees.map((tree) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
12757
13097
  LayerTreeZone,
12758
13098
  {
12759
13099
  depth: 0,
@@ -12767,7 +13107,7 @@ var LayerTree = (0, import_react83.memo)(({
12767
13107
 
12768
13108
  // components/CredBuild/components/Outline/index.tsx
12769
13109
  init_store2();
12770
- var import_react84 = require("react");
13110
+ var import_react85 = require("react");
12771
13111
 
12772
13112
  // lib/data/find-zones-for-area.ts
12773
13113
  init_react_import();
@@ -12779,8 +13119,8 @@ var findZonesForArea = (state, area) => {
12779
13119
 
12780
13120
  // components/CredBuild/components/Outline/index.tsx
12781
13121
  var import_shallow8 = require("zustand/react/shallow");
12782
- var import_jsx_runtime81 = require("react/jsx-runtime");
12783
- var Outline = (0, import_react84.memo)(() => {
13122
+ var import_jsx_runtime82 = require("react/jsx-runtime");
13123
+ var Outline = (0, import_react85.memo)(() => {
12784
13124
  const outlineOverride = useAppStore((s) => s.overrides.outline);
12785
13125
  const config = useAppStore((s) => s.config);
12786
13126
  const nodes = useAppStore((s) => s.state.indexes.nodes);
@@ -12789,13 +13129,13 @@ var Outline = (0, import_react84.memo)(() => {
12789
13129
  const rootZones = useAppStore(
12790
13130
  (0, import_shallow8.useShallow)((s) => findZonesForArea(s.state, "root"))
12791
13131
  );
12792
- const selectedPathIds = (0, import_react84.useMemo)(() => {
13132
+ const selectedPathIds = (0, import_react85.useMemo)(() => {
12793
13133
  const selectedPath = selectedId ? nodes[selectedId]?.path : null;
12794
13134
  return new Set(
12795
13135
  selectedPath?.map((candidate) => candidate.split(":")[0]).filter(Boolean) || []
12796
13136
  );
12797
13137
  }, [nodes, selectedId]);
12798
- const trees = (0, import_react84.useMemo)(
13138
+ const trees = (0, import_react85.useMemo)(
12799
13139
  () => rootZones.map(
12800
13140
  (zoneCompound) => buildLayerTree({
12801
13141
  config,
@@ -12807,8 +13147,8 @@ var Outline = (0, import_react84.memo)(() => {
12807
13147
  ),
12808
13148
  [config, nodes, rootZones, zones]
12809
13149
  );
12810
- const Wrapper = (0, import_react84.useMemo)(() => outlineOverride || "div", [outlineOverride]);
12811
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
13150
+ const Wrapper = (0, import_react85.useMemo)(() => outlineOverride || "div", [outlineOverride]);
13151
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
12812
13152
  LayerTree,
12813
13153
  {
12814
13154
  selectedId,
@@ -12823,7 +13163,7 @@ init_default_viewports();
12823
13163
 
12824
13164
  // lib/use-loaded-overrides.ts
12825
13165
  init_react_import();
12826
- var import_react85 = require("react");
13166
+ var import_react86 = require("react");
12827
13167
 
12828
13168
  // lib/load-overrides.ts
12829
13169
  init_react_import();
@@ -12866,7 +13206,7 @@ var useLoadedOverrides = ({
12866
13206
  overrides,
12867
13207
  plugins
12868
13208
  }) => {
12869
- return (0, import_react85.useMemo)(() => {
13209
+ return (0, import_react86.useMemo)(() => {
12870
13210
  return loadOverrides({ overrides, plugins });
12871
13211
  }, [plugins, overrides]);
12872
13212
  };
@@ -12877,7 +13217,7 @@ init_permissions();
12877
13217
 
12878
13218
  // lib/use-credbuild.ts
12879
13219
  init_react_import();
12880
- var import_react86 = require("react");
13220
+ var import_react87 = require("react");
12881
13221
  var import_zustand6 = require("zustand");
12882
13222
  init_make_state_public();
12883
13223
  init_get_item();
@@ -12981,7 +13321,7 @@ var generateUseCredBuild = (store, getState) => {
12981
13321
  };
12982
13322
  return storeData;
12983
13323
  };
12984
- var UseCredBuildStoreContext = (0, import_react86.createContext)(
13324
+ var UseCredBuildStoreContext = (0, import_react87.createContext)(
12985
13325
  null
12986
13326
  );
12987
13327
  var convertToPickedStore = (store) => {
@@ -12995,7 +13335,7 @@ var convertToPickedStore = (store) => {
12995
13335
  };
12996
13336
  };
12997
13337
  var useRegisterUseCredBuildStore = (appStore) => {
12998
- const [useCredBuildStore] = (0, import_react86.useState)(
13338
+ const [useCredBuildStore] = (0, import_react87.useState)(
12999
13339
  () => (0, import_zustand6.createStore)(
13000
13340
  () => generateUseCredBuild(
13001
13341
  convertToPickedStore(appStore.getState()),
@@ -13003,7 +13343,7 @@ var useRegisterUseCredBuildStore = (appStore) => {
13003
13343
  )
13004
13344
  )
13005
13345
  );
13006
- (0, import_react86.useEffect)(() => {
13346
+ (0, import_react87.useEffect)(() => {
13007
13347
  return appStore.subscribe(
13008
13348
  (store) => convertToPickedStore(store),
13009
13349
  (pickedStore) => {
@@ -13017,7 +13357,7 @@ var useRegisterUseCredBuildStore = (appStore) => {
13017
13357
  };
13018
13358
  function createUseCredBuild() {
13019
13359
  return function useCredBuild2(selector) {
13020
- const useCredBuildApi = (0, import_react86.useContext)(UseCredBuildStoreContext);
13360
+ const useCredBuildApi = (0, import_react87.useContext)(UseCredBuildStoreContext);
13021
13361
  if (!useCredBuildApi) {
13022
13362
  throw new Error("useCredBuild must be used inside <CredBuild>.");
13023
13363
  }
@@ -13029,7 +13369,7 @@ function createUseCredBuild() {
13029
13369
  };
13030
13370
  }
13031
13371
  function useCredBuild() {
13032
- (0, import_react86.useEffect)(() => {
13372
+ (0, import_react87.useEffect)(() => {
13033
13373
  console.warn(
13034
13374
  "You're using the `useCredBuild` method without a selector, which may cause unnecessary re-renders. Replace with `createUseCredBuild` and provide a selector for improved performance."
13035
13375
  );
@@ -13037,7 +13377,7 @@ function useCredBuild() {
13037
13377
  return createUseCredBuild()((s) => s);
13038
13378
  }
13039
13379
  function useGetCredBuild() {
13040
- const useCredBuildApi = (0, import_react86.useContext)(UseCredBuildStoreContext);
13380
+ const useCredBuildApi = (0, import_react87.useContext)(UseCredBuildStoreContext);
13041
13381
  if (!useCredBuildApi) {
13042
13382
  throw new Error("useCredBuildGet must be used inside <CredBuild>.");
13043
13383
  }
@@ -13052,33 +13392,33 @@ init_to_component();
13052
13392
 
13053
13393
  // components/CredBuild/components/Layout/index.tsx
13054
13394
  init_react_import();
13055
- var import_react100 = require("react");
13395
+ var import_react102 = require("react");
13056
13396
  init_lib();
13057
13397
 
13058
13398
  // components/CredBuild/context.tsx
13059
13399
  init_react_import();
13060
- var import_react87 = require("react");
13061
- var import_jsx_runtime82 = require("react/jsx-runtime");
13062
- var propsContext = (0, import_react87.createContext)({});
13400
+ var import_react88 = require("react");
13401
+ var import_jsx_runtime83 = require("react/jsx-runtime");
13402
+ var propsContext = (0, import_react88.createContext)({});
13063
13403
  function PropsProvider(props) {
13064
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(propsContext.Provider, { value: props, children: props.children });
13404
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(propsContext.Provider, { value: props, children: props.children });
13065
13405
  }
13066
- var usePropsContext = () => (0, import_react87.useContext)(propsContext);
13406
+ var usePropsContext = () => (0, import_react88.useContext)(propsContext);
13067
13407
 
13068
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Layout/styles.module.css#css-module
13408
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Layout/styles.module.css#css-module
13069
13409
  init_react_import();
13070
13410
  var styles_module_default23 = { "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" };
13071
13411
 
13072
13412
  // lib/use-inject-css.ts
13073
13413
  init_react_import();
13074
- var import_react88 = require("react");
13414
+ var import_react89 = require("react");
13075
13415
  var styles = ``;
13076
13416
  var useInjectStyleSheet = (initialStyles, iframeEnabled) => {
13077
- const [el, setEl] = (0, import_react88.useState)();
13078
- (0, import_react88.useEffect)(() => {
13417
+ const [el, setEl] = (0, import_react89.useState)();
13418
+ (0, import_react89.useEffect)(() => {
13079
13419
  setEl(document.createElement("style"));
13080
13420
  }, []);
13081
- (0, import_react88.useEffect)(() => {
13421
+ (0, import_react89.useEffect)(() => {
13082
13422
  if (!el || typeof window === "undefined") {
13083
13423
  return;
13084
13424
  }
@@ -13100,20 +13440,20 @@ init_store2();
13100
13440
 
13101
13441
  // components/DefaultOverride/index.tsx
13102
13442
  init_react_import();
13103
- var import_jsx_runtime83 = require("react/jsx-runtime");
13104
- var DefaultOverride = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children });
13443
+ var import_jsx_runtime84 = require("react/jsx-runtime");
13444
+ var DefaultOverride = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children });
13105
13445
 
13106
13446
  // components/CredBuild/components/Layout/index.tsx
13107
13447
  init_use_hotkey();
13108
13448
 
13109
13449
  // lib/use-preview-mode-hotkeys.ts
13110
13450
  init_react_import();
13111
- var import_react89 = require("react");
13451
+ var import_react90 = require("react");
13112
13452
  init_use_hotkey();
13113
13453
  init_store2();
13114
13454
  var usePreviewModeHotkeys = () => {
13115
13455
  const appStore = useAppStoreApi();
13116
- const toggleInteractive = (0, import_react89.useCallback)(() => {
13456
+ const toggleInteractive = (0, import_react90.useCallback)(() => {
13117
13457
  const dispatch = appStore.getState().dispatch;
13118
13458
  dispatch({
13119
13459
  type: "setUi",
@@ -13128,9 +13468,9 @@ var usePreviewModeHotkeys = () => {
13128
13468
 
13129
13469
  // components/DragDropContext/index.tsx
13130
13470
  init_react_import();
13131
- var import_react90 = require("@dnd-kit/react");
13471
+ var import_react91 = require("@dnd-kit/react");
13132
13472
  init_store2();
13133
- var import_react91 = require("react");
13473
+ var import_react92 = require("react");
13134
13474
  var import_dom = require("@dnd-kit/dom");
13135
13475
  init_get_item();
13136
13476
 
@@ -13473,12 +13813,12 @@ function getDeepDir(el) {
13473
13813
  // components/DragDropContext/index.tsx
13474
13814
  init_use_sensors();
13475
13815
  var import_state = require("@dnd-kit/state");
13476
- var import_jsx_runtime84 = require("react/jsx-runtime");
13816
+ var import_jsx_runtime85 = require("react/jsx-runtime");
13477
13817
  var DEBUG3 = false;
13478
13818
  var AREA_CHANGE_DEBOUNCE_MS = 100;
13479
13819
  var useTempDisableFallback = (timeout3) => {
13480
- const lastFallbackDisable = (0, import_react91.useRef)(null);
13481
- return (0, import_react91.useCallback)((manager) => {
13820
+ const lastFallbackDisable = (0, import_react92.useRef)(null);
13821
+ return (0, import_react92.useCallback)((manager) => {
13482
13822
  collisionStore.setState({ fallbackEnabled: false });
13483
13823
  const fallbackId = generateId();
13484
13824
  lastFallbackDisable.current = fallbackId;
@@ -13497,9 +13837,9 @@ var DragDropContextClient = ({
13497
13837
  const dispatch = useAppStore((s) => s.dispatch);
13498
13838
  const instanceId = useAppStore((s) => s.instanceId);
13499
13839
  const appStore = useAppStoreApi();
13500
- const debouncedParamsRef = (0, import_react91.useRef)(null);
13840
+ const debouncedParamsRef = (0, import_react92.useRef)(null);
13501
13841
  const tempDisableFallback = useTempDisableFallback(100);
13502
- const [zoneStore] = (0, import_react91.useState)(() => {
13842
+ const [zoneStore] = (0, import_react92.useState)(() => {
13503
13843
  const rootVirtualizers = /* @__PURE__ */ new Map();
13504
13844
  return (0, import_zustand7.createStore)(() => ({
13505
13845
  zoneDepthIndex: {},
@@ -13538,7 +13878,7 @@ var DragDropContextClient = ({
13538
13878
  }
13539
13879
  }));
13540
13880
  });
13541
- const getChanged2 = (0, import_react91.useCallback)(
13881
+ const getChanged2 = (0, import_react92.useCallback)(
13542
13882
  (params) => {
13543
13883
  const { zoneDepthIndex = {}, areaDepthIndex = {} } = zoneStore.getState() || {};
13544
13884
  const stateHasZone = Object.keys(zoneDepthIndex).length > 0;
@@ -13559,7 +13899,7 @@ var DragDropContextClient = ({
13559
13899
  },
13560
13900
  [zoneStore]
13561
13901
  );
13562
- const setDeepestAndCollide = (0, import_react91.useCallback)(
13902
+ const setDeepestAndCollide = (0, import_react92.useCallback)(
13563
13903
  (params, manager) => {
13564
13904
  const { zoneChanged, areaChanged } = getChanged2(params);
13565
13905
  if (!zoneChanged && !areaChanged) return;
@@ -13583,7 +13923,7 @@ var DragDropContextClient = ({
13583
13923
  setDeepestDb.cancel();
13584
13924
  debouncedParamsRef.current = null;
13585
13925
  };
13586
- (0, import_react91.useEffect)(() => {
13926
+ (0, import_react92.useEffect)(() => {
13587
13927
  if (DEBUG3) {
13588
13928
  return zoneStore.subscribe(
13589
13929
  (s) => console.log(
@@ -13594,7 +13934,7 @@ var DragDropContextClient = ({
13594
13934
  );
13595
13935
  }
13596
13936
  }, [zoneStore]);
13597
- const [plugins] = (0, import_react91.useState)(() => [
13937
+ const [plugins] = (0, import_react92.useState)(() => [
13598
13938
  ...disableAutoScroll ? import_dom.defaultPreset.plugins.filter((plugin) => plugin !== import_dom.AutoScroller) : import_dom.defaultPreset.plugins,
13599
13939
  createNestedDroppablePlugin(
13600
13940
  {
@@ -13642,10 +13982,10 @@ var DragDropContextClient = ({
13642
13982
  )
13643
13983
  ]);
13644
13984
  const sensors = useSensors();
13645
- const [dragListeners, setDragListeners] = (0, import_react91.useState)({});
13646
- const dragMode = (0, import_react91.useRef)(null);
13647
- const initialSelector = (0, import_react91.useRef)(void 0);
13648
- const nextContextValue = (0, import_react91.useMemo)(
13985
+ const [dragListeners, setDragListeners] = (0, import_react92.useState)({});
13986
+ const dragMode = (0, import_react92.useRef)(null);
13987
+ const initialSelector = (0, import_react92.useRef)(void 0);
13988
+ const nextContextValue = (0, import_react92.useMemo)(
13649
13989
  () => ({
13650
13990
  mode: "edit",
13651
13991
  areaId: "root",
@@ -13653,15 +13993,15 @@ var DragDropContextClient = ({
13653
13993
  }),
13654
13994
  []
13655
13995
  );
13656
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
13996
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
13657
13997
  dragListenerContext.Provider,
13658
13998
  {
13659
13999
  value: {
13660
14000
  dragListeners,
13661
14001
  setDragListeners
13662
14002
  },
13663
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
13664
- import_react90.DragDropProvider,
14003
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
14004
+ import_react91.DragDropProvider,
13665
14005
  {
13666
14006
  plugins,
13667
14007
  sensors,
@@ -13882,7 +14222,7 @@ var DragDropContextClient = ({
13882
14222
  const entryEl = getFrame()?.querySelector("[data-credbuild-entry]");
13883
14223
  entryEl?.setAttribute("data-credbuild-dragging", "true");
13884
14224
  },
13885
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ZoneStoreProvider, { store: zoneStore, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DropZoneProvider, { value: nextContextValue, children }) })
14225
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ZoneStoreProvider, { store: zoneStore, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DropZoneProvider, { value: nextContextValue, children }) })
13886
14226
  }
13887
14227
  )
13888
14228
  }
@@ -13896,12 +14236,12 @@ var DragDropContext = ({
13896
14236
  if (status === "LOADING") {
13897
14237
  return children;
13898
14238
  }
13899
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DragDropContextClient, { disableAutoScroll, children });
14239
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DragDropContextClient, { disableAutoScroll, children });
13900
14240
  };
13901
14241
 
13902
14242
  // components/CredBuild/components/Header/index.tsx
13903
14243
  init_react_import();
13904
- var import_react94 = require("react");
14244
+ var import_react95 = require("react");
13905
14245
  init_store2();
13906
14246
  init_lucide_react();
13907
14247
  init_Heading();
@@ -13913,13 +14253,13 @@ init_lucide_react();
13913
14253
  init_IconButton();
13914
14254
  init_get_class_name_factory();
13915
14255
 
13916
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/MenuBar/styles.module.css#css-module
14256
+ // css-module:/home/runner/work/credbuild/credbuild/components/MenuBar/styles.module.css#css-module
13917
14257
  init_react_import();
13918
14258
  var styles_module_default24 = { "MenuBar": "_MenuBar_1m2ld_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_1m2ld_14", "MenuBar-inner": "_MenuBar-inner_1m2ld_29", "MenuBar-history": "_MenuBar-history_1m2ld_45" };
13919
14259
 
13920
14260
  // components/MenuBar/index.tsx
13921
14261
  init_store2();
13922
- var import_jsx_runtime85 = require("react/jsx-runtime");
14262
+ var import_jsx_runtime86 = require("react/jsx-runtime");
13923
14263
  var getClassName32 = get_class_name_factory_default("MenuBar", styles_module_default24);
13924
14264
  function MenuBar({
13925
14265
  menuOpen = false,
@@ -13930,7 +14270,7 @@ function MenuBar({
13930
14270
  const forward = useAppStore((s) => s.history.forward);
13931
14271
  const hasFuture = useAppStore((s) => s.history.hasFuture());
13932
14272
  const hasPast = useAppStore((s) => s.history.hasPast());
13933
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
14273
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
13934
14274
  "div",
13935
14275
  {
13936
14276
  className: getClassName32({ menuOpen }),
@@ -13943,30 +14283,30 @@ function MenuBar({
13943
14283
  setMenuOpen(false);
13944
14284
  }
13945
14285
  },
13946
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: getClassName32("inner"), children: [
13947
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: getClassName32("history"), children: [
13948
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
14286
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: getClassName32("inner"), children: [
14287
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: getClassName32("history"), children: [
14288
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
13949
14289
  IconButton,
13950
14290
  {
13951
14291
  type: "button",
13952
14292
  title: "undo",
13953
14293
  disabled: !hasPast,
13954
14294
  onClick: back,
13955
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Undo2, { size: 21 })
14295
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Undo2, { size: 21 })
13956
14296
  }
13957
14297
  ),
13958
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
14298
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
13959
14299
  IconButton,
13960
14300
  {
13961
14301
  type: "button",
13962
14302
  title: "redo",
13963
14303
  disabled: !hasFuture,
13964
14304
  onClick: forward,
13965
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Redo2, { size: 21 })
14305
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Redo2, { size: 21 })
13966
14306
  }
13967
14307
  )
13968
14308
  ] }),
13969
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_jsx_runtime85.Fragment, { children: renderHeaderActions && renderHeaderActions() })
14309
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_jsx_runtime86.Fragment, { children: renderHeaderActions && renderHeaderActions() })
13970
14310
  ] })
13971
14311
  }
13972
14312
  );
@@ -13981,20 +14321,20 @@ init_react_import();
13981
14321
  init_lucide_react();
13982
14322
  init_IconButton2();
13983
14323
  init_store2();
13984
- var import_react92 = require("react");
14324
+ var import_react93 = require("react");
13985
14325
  init_lib();
13986
14326
 
13987
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ViewportControls/styles.module.css#css-module
14327
+ // css-module:/home/runner/work/credbuild/credbuild/components/ViewportControls/styles.module.css#css-module
13988
14328
  init_react_import();
13989
14329
  var styles_module_default25 = { "ViewportControls": "_ViewportControls_gefvg_1", "ViewportControls--fullScreen": "_ViewportControls--fullScreen_gefvg_5", "ViewportControls-toggleButton": "_ViewportControls-toggleButton_gefvg_14", "ViewportControls--isExpanded": "_ViewportControls--isExpanded_gefvg_38", "ViewportControls-actions": "_ViewportControls-actions_gefvg_42", "ViewportControls-actionsInner": "_ViewportControls-actionsInner_gefvg_46", "ViewportControls-divider": "_ViewportControls-divider_gefvg_76", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_gefvg_83", "ViewportControls-zoom": "_ViewportControls-zoom_gefvg_83", "ViewportButton-inner": "_ViewportButton-inner_gefvg_114", "ViewportButton--isActive": "_ViewportButton--isActive_gefvg_122" };
13990
14330
 
13991
14331
  // components/ViewportControls/index.tsx
13992
- var import_jsx_runtime86 = require("react/jsx-runtime");
14332
+ var import_jsx_runtime87 = require("react/jsx-runtime");
13993
14333
  var icons = {
13994
- Smartphone: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Smartphone, { size: 16 }),
13995
- Tablet: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Tablet, { size: 16 }),
13996
- Monitor: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Monitor, { size: 16 }),
13997
- FullWidth: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Expand, { size: 16 })
14334
+ Smartphone: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Smartphone, { size: 16 }),
14335
+ Tablet: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Tablet, { size: 16 }),
14336
+ Monitor: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Monitor, { size: 16 }),
14337
+ FullWidth: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Expand, { size: 16 })
13998
14338
  };
13999
14339
  var getClassName33 = get_class_name_factory_default("ViewportControls", styles_module_default25);
14000
14340
  var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_module_default25);
@@ -14005,7 +14345,7 @@ var ActionButton = ({
14005
14345
  isActive,
14006
14346
  disabled
14007
14347
  }) => {
14008
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: getClassNameButton({ isActive }), suppressHydrationWarning: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14348
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: getClassNameButton({ isActive }), suppressHydrationWarning: true, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14009
14349
  IconButton,
14010
14350
  {
14011
14351
  type: "button",
@@ -14013,7 +14353,7 @@ var ActionButton = ({
14013
14353
  disabled: disabled || isActive,
14014
14354
  onClick,
14015
14355
  suppressHydrationWarning: true,
14016
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: getClassNameButton("inner"), children })
14356
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: getClassNameButton("inner"), children })
14017
14357
  }
14018
14358
  ) });
14019
14359
  };
@@ -14038,7 +14378,7 @@ var ViewportControls = ({
14038
14378
  const defaultsContainAutoZoom = defaultZoomOptions.find(
14039
14379
  (option) => option.value === autoZoom
14040
14380
  );
14041
- const zoomOptions = (0, import_react92.useMemo)(() => {
14381
+ const zoomOptions = (0, import_react93.useMemo)(() => {
14042
14382
  const options = [
14043
14383
  ...defaultZoomOptions,
14044
14384
  ...defaultsContainAutoZoom || isNaN(autoZoom) ? [] : [
@@ -14050,21 +14390,21 @@ var ViewportControls = ({
14050
14390
  ].filter((a) => a.value <= (autoZoom || 1)).sort((a, b) => a.value > b.value ? 1 : -1);
14051
14391
  return options.length > 0 ? options : defaultZoomOptions;
14052
14392
  }, [autoZoom, defaultsContainAutoZoom]);
14053
- const [activeViewport, setActiveViewport] = (0, import_react92.useState)(
14393
+ const [activeViewport, setActiveViewport] = (0, import_react93.useState)(
14054
14394
  uiViewports.current.width
14055
14395
  );
14056
- (0, import_react92.useEffect)(() => {
14396
+ (0, import_react93.useEffect)(() => {
14057
14397
  setActiveViewport(uiViewports.current.width);
14058
14398
  }, [uiViewports.current.width, uiViewports]);
14059
- const [isExpanded, setIsExpanded] = (0, import_react92.useState)(false);
14060
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
14399
+ const [isExpanded, setIsExpanded] = (0, import_react93.useState)(false);
14400
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
14061
14401
  "div",
14062
14402
  {
14063
14403
  className: getClassName33({ isExpanded, fullScreen }),
14064
14404
  suppressHydrationWarning: true,
14065
14405
  children: [
14066
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: getClassName33("actions"), children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: getClassName33("actionsInner"), children: [
14067
- viewports.map((viewport, i) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14406
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: getClassName33("actions"), children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: getClassName33("actionsInner"), children: [
14407
+ viewports.map((viewport, i) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14068
14408
  ActionButton,
14069
14409
  {
14070
14410
  title: viewport.label ? `Switch to ${viewport.label} viewport` : "Switch viewport",
@@ -14077,8 +14417,8 @@ var ViewportControls = ({
14077
14417
  },
14078
14418
  i
14079
14419
  )),
14080
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: getClassName33("divider") }),
14081
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14420
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: getClassName33("divider") }),
14421
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14082
14422
  ActionButton,
14083
14423
  {
14084
14424
  title: "Zoom viewport out",
@@ -14092,10 +14432,10 @@ var ViewportControls = ({
14092
14432
  );
14093
14433
  onZoom(zoomOptions[nextIndex]?.value || 1);
14094
14434
  },
14095
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ZoomOut, { size: 16 })
14435
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ZoomOut, { size: 16 })
14096
14436
  }
14097
14437
  ),
14098
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14438
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14099
14439
  ActionButton,
14100
14440
  {
14101
14441
  title: "Zoom viewport in",
@@ -14109,12 +14449,12 @@ var ViewportControls = ({
14109
14449
  );
14110
14450
  onZoom(zoomOptions[nextIndex]?.value || 1);
14111
14451
  },
14112
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ZoomIn, { size: 16 })
14452
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ZoomIn, { size: 16 })
14113
14453
  }
14114
14454
  ),
14115
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: getClassName33("zoom"), children: [
14116
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: getClassName33("divider") }),
14117
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14455
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: getClassName33("zoom"), children: [
14456
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: getClassName33("divider") }),
14457
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14118
14458
  "select",
14119
14459
  {
14120
14460
  className: getClassName33("zoomSelect"),
@@ -14125,7 +14465,7 @@ var ViewportControls = ({
14125
14465
  onChange: (e) => {
14126
14466
  onZoom(parseFloat(e.currentTarget.value));
14127
14467
  },
14128
- children: zoomOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14468
+ children: zoomOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14129
14469
  "option",
14130
14470
  {
14131
14471
  value: option.value,
@@ -14137,14 +14477,14 @@ var ViewportControls = ({
14137
14477
  )
14138
14478
  ] })
14139
14479
  ] }) }),
14140
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14480
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14141
14481
  "button",
14142
14482
  {
14143
14483
  className: getClassName33("toggleButton"),
14144
14484
  title: "Toggle viewport menu",
14145
14485
  "aria-expanded": isExpanded,
14146
14486
  onClick: () => setIsExpanded((s) => !s),
14147
- children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(X, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Monitor, { size: 16 })
14487
+ children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(X, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Monitor, { size: 16 })
14148
14488
  }
14149
14489
  )
14150
14490
  ]
@@ -14157,35 +14497,35 @@ var import_shallow9 = require("zustand/react/shallow");
14157
14497
 
14158
14498
  // lib/frame-context.tsx
14159
14499
  init_react_import();
14160
- var import_react93 = require("react");
14161
- var import_jsx_runtime87 = require("react/jsx-runtime");
14162
- var FrameContext = (0, import_react93.createContext)(null);
14500
+ var import_react94 = require("react");
14501
+ var import_jsx_runtime88 = require("react/jsx-runtime");
14502
+ var FrameContext = (0, import_react94.createContext)(null);
14163
14503
  var FrameProvider = ({
14164
14504
  children
14165
14505
  }) => {
14166
- const frameRef = (0, import_react93.useRef)(null);
14167
- const value = (0, import_react93.useMemo)(
14506
+ const frameRef = (0, import_react94.useRef)(null);
14507
+ const value = (0, import_react94.useMemo)(
14168
14508
  () => ({
14169
14509
  frameRef
14170
14510
  }),
14171
14511
  []
14172
14512
  );
14173
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FrameContext.Provider, { value, children });
14513
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(FrameContext.Provider, { value, children });
14174
14514
  };
14175
14515
  var useCanvasFrame = () => {
14176
- const context = (0, import_react93.useContext)(FrameContext);
14516
+ const context = (0, import_react94.useContext)(FrameContext);
14177
14517
  if (context === null) {
14178
14518
  throw new Error("useCanvasFrame must be used within a FrameProvider");
14179
14519
  }
14180
14520
  return context;
14181
14521
  };
14182
14522
 
14183
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Header/styles.module.css#css-module
14523
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Header/styles.module.css#css-module
14184
14524
  init_react_import();
14185
14525
  var styles_module_default26 = { "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" };
14186
14526
 
14187
14527
  // components/CredBuild/components/Header/index.tsx
14188
- var import_jsx_runtime88 = require("react/jsx-runtime");
14528
+ var import_jsx_runtime89 = require("react/jsx-runtime");
14189
14529
  var getClassName34 = get_class_name_factory_default("CredBuildHeader", styles_module_default26);
14190
14530
  var HeaderInner = ({
14191
14531
  hidePlugins,
@@ -14201,7 +14541,7 @@ var HeaderInner = ({
14201
14541
  } = usePropsContext();
14202
14542
  const dispatch = useAppStore((s) => s.dispatch);
14203
14543
  const appStore = useAppStoreApi();
14204
- const defaultHeaderRender = (0, import_react94.useMemo)(() => {
14544
+ const defaultHeaderRender = (0, import_react95.useMemo)(() => {
14205
14545
  if (renderHeader) {
14206
14546
  console.warn(
14207
14547
  "`renderHeader` is deprecated. Please use `overrides.header` and the `useCredBuild` hook instead"
@@ -14209,13 +14549,13 @@ var HeaderInner = ({
14209
14549
  const RenderHeader = ({ actions, ...props }) => {
14210
14550
  const Comp = renderHeader;
14211
14551
  const appState = useAppStore((s) => s.state);
14212
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Comp, { ...props, dispatch, state: appState, children: actions });
14552
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Comp, { ...props, dispatch, state: appState, children: actions });
14213
14553
  };
14214
14554
  return RenderHeader;
14215
14555
  }
14216
14556
  return DefaultOverride;
14217
14557
  }, [renderHeader, dispatch]);
14218
- const defaultHeaderActionsRender = (0, import_react94.useMemo)(() => {
14558
+ const defaultHeaderActionsRender = (0, import_react95.useMemo)(() => {
14219
14559
  if (renderHeaderActions) {
14220
14560
  console.warn(
14221
14561
  "`renderHeaderActions` is deprecated. Please use `overrides.headerActions` and the `useCredBuild` hook instead."
@@ -14223,7 +14563,7 @@ var HeaderInner = ({
14223
14563
  const RenderHeader = (props) => {
14224
14564
  const Comp = renderHeaderActions;
14225
14565
  const appState = useAppStore((s) => s.state);
14226
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Comp, { ...props, dispatch, state: appState });
14566
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Comp, { ...props, dispatch, state: appState });
14227
14567
  };
14228
14568
  return RenderHeader;
14229
14569
  }
@@ -14235,11 +14575,48 @@ var HeaderInner = ({
14235
14575
  const CustomHeaderActions = useAppStore(
14236
14576
  (s) => s.overrides.headerActions || defaultHeaderActionsRender
14237
14577
  );
14238
- const [menuOpen, setMenuOpen] = (0, import_react94.useState)(false);
14578
+ const [menuOpen, setMenuOpen] = (0, import_react95.useState)(false);
14239
14579
  const rootTitle = useAppStore((s) => {
14240
14580
  const rootData = s.state.indexes.nodes["root"]?.data;
14241
14581
  return rootData.props.title ?? "";
14242
14582
  });
14583
+ const root = useAppStore((s) => s.state.data.root);
14584
+ const rootProps = root?.props || root;
14585
+ const isHtmlMode = rootProps?.mode === "html";
14586
+ const htmlViewMode = rootProps?.htmlViewMode || (rootProps?.htmlCode ? "preview" : "code");
14587
+ const handleSetViewMode = (0, import_react95.useCallback)((modeVal) => {
14588
+ dispatch({
14589
+ type: "setData",
14590
+ data: (currentData) => ({
14591
+ ...currentData,
14592
+ root: {
14593
+ ...currentData.root,
14594
+ props: {
14595
+ ...currentData.root?.props,
14596
+ htmlViewMode: modeVal
14597
+ }
14598
+ }
14599
+ })
14600
+ });
14601
+ }, [dispatch]);
14602
+ const handleResetToBlocks = (0, import_react95.useCallback)(() => {
14603
+ dispatch({
14604
+ type: "setData",
14605
+ data: (currentData) => ({
14606
+ ...currentData,
14607
+ content: [],
14608
+ root: {
14609
+ ...currentData.root,
14610
+ props: {
14611
+ ...currentData.root?.props,
14612
+ mode: "blocks",
14613
+ htmlCode: "",
14614
+ htmlViewMode: "code"
14615
+ }
14616
+ }
14617
+ })
14618
+ });
14619
+ }, [dispatch]);
14243
14620
  const leftSideBarVisible = useAppStore((s) => s.state.ui.leftSideBarVisible);
14244
14621
  const rightSideBarVisible = useAppStore(
14245
14622
  (s) => s.state.ui.rightSideBarVisible
@@ -14264,7 +14641,7 @@ var HeaderInner = ({
14264
14641
  );
14265
14642
  const { frameRef } = useCanvasFrame();
14266
14643
  const resetAutoZoom = useResetAutoZoom(frameRef);
14267
- const toggleSidebars = (0, import_react94.useCallback)(
14644
+ const toggleSidebars = (0, import_react95.useCallback)(
14268
14645
  (sidebar) => {
14269
14646
  const widerViewport = window.matchMedia("(min-width: 638px)").matches;
14270
14647
  const sideBarVisible = sidebar === "left" ? leftSideBarVisible : rightSideBarVisible;
@@ -14279,33 +14656,33 @@ var HeaderInner = ({
14279
14656
  },
14280
14657
  [dispatch, leftSideBarVisible, rightSideBarVisible]
14281
14658
  );
14282
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14659
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14283
14660
  CustomHeader,
14284
14661
  {
14285
- actions: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_jsx_runtime88.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CustomHeaderActions, { children: [
14286
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14662
+ actions: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(CustomHeaderActions, { children: [
14663
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14287
14664
  Button,
14288
14665
  {
14289
14666
  href: headerPath || "/",
14290
14667
  newTab: true,
14291
14668
  variant: "secondary",
14292
- icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ExternalLink, { size: 14 }),
14669
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ExternalLink, { size: 14 }),
14293
14670
  children: "View Web"
14294
14671
  }
14295
14672
  ),
14296
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "PublishButton", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14673
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "PublishButton", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14297
14674
  Button,
14298
14675
  {
14299
14676
  onClick: () => {
14300
14677
  const data = appStore.getState().state.data;
14301
14678
  onPublish && onPublish(data);
14302
14679
  },
14303
- icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Zap, { size: 14, fill: "currentColor" }),
14680
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Zap, { size: 14, fill: "currentColor" }),
14304
14681
  children: "Publish"
14305
14682
  }
14306
14683
  ) })
14307
14684
  ] }) }),
14308
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14685
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14309
14686
  "header",
14310
14687
  {
14311
14688
  className: getClassName34({
@@ -14313,20 +14690,20 @@ var HeaderInner = ({
14313
14690
  rightSideBarVisible,
14314
14691
  hidePlugins
14315
14692
  }),
14316
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: getClassName34("inner"), children: [
14317
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: getClassName34("leftActions"), children: [
14318
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { style: { marginRight: "8px", display: "flex", gap: "8px", alignItems: "center" }, children: [
14319
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14693
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: getClassName34("inner"), children: [
14694
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: getClassName34("leftActions"), children: [
14695
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { style: { marginRight: "8px", display: "flex", gap: "8px", alignItems: "center" }, children: [
14696
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14320
14697
  Button,
14321
14698
  {
14322
14699
  href: "/dashboard",
14323
14700
  variant: "secondary",
14324
14701
  size: "medium",
14325
- icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(LayoutDashboard, { size: 14 }),
14702
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(LayoutDashboard, { size: 14 }),
14326
14703
  children: "Dashboard"
14327
14704
  }
14328
14705
  ),
14329
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14706
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14330
14707
  IconButton,
14331
14708
  {
14332
14709
  type: "button",
@@ -14344,12 +14721,12 @@ var HeaderInner = ({
14344
14721
  window.dispatchEvent(new CustomEvent("credbuild-theme-change", { detail: newTheme }));
14345
14722
  },
14346
14723
  title: "Toggle Theme",
14347
- children: theme === "dark" ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Sun, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Moon, { size: 16 })
14724
+ children: theme === "dark" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Sun, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Moon, { size: 16 })
14348
14725
  }
14349
14726
  )
14350
14727
  ] }),
14351
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: getClassName34("toggle"), children: [
14352
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: getClassName34("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14728
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: getClassName34("toggle"), children: [
14729
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: getClassName34("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14353
14730
  IconButton,
14354
14731
  {
14355
14732
  type: "button",
@@ -14357,10 +14734,10 @@ var HeaderInner = ({
14357
14734
  toggleSidebars("left");
14358
14735
  },
14359
14736
  title: "Toggle left sidebar",
14360
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(PanelLeft, { size: 16, focusable: "false" })
14737
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(PanelLeft, { size: 16, focusable: "false" })
14361
14738
  }
14362
14739
  ) }),
14363
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: getClassName34("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14740
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: getClassName34("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14364
14741
  IconButton,
14365
14742
  {
14366
14743
  type: "button",
@@ -14368,43 +14745,124 @@ var HeaderInner = ({
14368
14745
  toggleSidebars("right");
14369
14746
  },
14370
14747
  title: "Toggle right sidebar",
14371
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(PanelRight, { size: 16, focusable: "false" })
14748
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(PanelRight, { size: 16, focusable: "false" })
14372
14749
  }
14373
14750
  ) })
14374
14751
  ] }),
14375
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: getClassName34("title"), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Heading7, { rank: "2", size: "xs", children: [
14376
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { style: { fontSize: "11px", textTransform: "uppercase", letterSpacing: "0.08em", fontWeight: 600 }, children: headerTitle || rootTitle || "Page" }),
14377
- headerPath && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_jsx_runtime88.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("code", { className: getClassName34("path"), style: { fontSize: "10px", opacity: 0.6, marginLeft: "8px" }, children: headerPath }) })
14752
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: getClassName34("title"), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Heading7, { rank: "2", size: "xs", children: [
14753
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { style: { fontSize: "11px", textTransform: "uppercase", letterSpacing: "0.08em", fontWeight: 600 }, children: headerTitle || rootTitle || "Page" }),
14754
+ headerPath && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("code", { className: getClassName34("path"), style: { fontSize: "10px", opacity: 0.6, marginLeft: "8px" }, children: headerPath }) })
14378
14755
  ] }) })
14379
14756
  ] }),
14380
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: getClassName34("viewportTools"), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14381
- ViewportControls,
14382
- {
14383
- fullScreen: _experimentalFullScreenCanvas,
14384
- autoZoom: zoomConfig.autoZoom,
14385
- zoom: zoomConfig.zoom,
14386
- onViewportChange: (viewport) => {
14387
- const isFullWidth = viewport.width === "100%";
14388
- const uiViewport = {
14389
- ...viewport,
14390
- height: viewport.height || "auto",
14391
- zoom: isFullWidth ? 1 : zoomConfig.zoom
14392
- };
14393
- const newUi = {
14394
- viewports: { ...viewports, current: uiViewport }
14395
- };
14396
- if (isFullWidth) {
14397
- setZoomConfig({ ...zoomConfig, zoom: 1 });
14757
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: getClassName34("viewportTools"), style: { display: "flex", gap: "16px", alignItems: "center" }, children: [
14758
+ isHtmlMode && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { style: {
14759
+ display: "flex",
14760
+ alignItems: "center",
14761
+ gap: "8px"
14762
+ }, children: [
14763
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { style: {
14764
+ display: "flex",
14765
+ background: "var(--credbuild-color-grey-09)",
14766
+ padding: 2,
14767
+ borderRadius: 6,
14768
+ border: "1px solid var(--credbuild-color-grey-10)"
14769
+ }, children: [
14770
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
14771
+ "button",
14772
+ {
14773
+ type: "button",
14774
+ onClick: () => handleSetViewMode("code"),
14775
+ style: {
14776
+ display: "flex",
14777
+ alignItems: "center",
14778
+ gap: 4,
14779
+ padding: "4px 10px",
14780
+ borderRadius: 4,
14781
+ fontSize: 11,
14782
+ fontWeight: 600,
14783
+ cursor: "pointer",
14784
+ border: "none",
14785
+ background: htmlViewMode === "code" ? "var(--credbuild-color-white)" : "transparent",
14786
+ color: "var(--credbuild-color-black)",
14787
+ opacity: htmlViewMode === "code" ? 1 : 0.6,
14788
+ boxShadow: htmlViewMode === "code" ? "0 1px 2px rgba(0,0,0,0.1)" : "none",
14789
+ transition: "all 0.15s ease"
14790
+ },
14791
+ children: [
14792
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Code, { size: 12 }),
14793
+ "Edit Kode"
14794
+ ]
14795
+ }
14796
+ ),
14797
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
14798
+ "button",
14799
+ {
14800
+ type: "button",
14801
+ onClick: () => handleSetViewMode("preview"),
14802
+ style: {
14803
+ display: "flex",
14804
+ alignItems: "center",
14805
+ gap: 4,
14806
+ padding: "4px 10px",
14807
+ borderRadius: 4,
14808
+ fontSize: 11,
14809
+ fontWeight: 600,
14810
+ cursor: "pointer",
14811
+ border: "none",
14812
+ background: htmlViewMode === "preview" ? "var(--credbuild-color-white)" : "transparent",
14813
+ color: "var(--credbuild-color-black)",
14814
+ opacity: htmlViewMode === "preview" ? 1 : 0.6,
14815
+ boxShadow: htmlViewMode === "preview" ? "0 1px 2px rgba(0,0,0,0.1)" : "none",
14816
+ transition: "all 0.15s ease"
14817
+ },
14818
+ children: [
14819
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Eye, { size: 12 }),
14820
+ "Lihat Hasil"
14821
+ ]
14822
+ }
14823
+ )
14824
+ ] }),
14825
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14826
+ Button,
14827
+ {
14828
+ type: "button",
14829
+ onClick: handleResetToBlocks,
14830
+ variant: "secondary",
14831
+ size: "medium",
14832
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(LayoutGrid, { size: 14 }),
14833
+ children: "Kembali ke Mode Blok"
14834
+ }
14835
+ )
14836
+ ] }),
14837
+ (!isHtmlMode || htmlViewMode === "preview") && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14838
+ ViewportControls,
14839
+ {
14840
+ fullScreen: _experimentalFullScreenCanvas,
14841
+ autoZoom: zoomConfig.autoZoom,
14842
+ zoom: zoomConfig.zoom,
14843
+ onViewportChange: (viewport) => {
14844
+ const isFullWidth = viewport.width === "100%";
14845
+ const uiViewport = {
14846
+ ...viewport,
14847
+ height: viewport.height || "auto",
14848
+ zoom: isFullWidth ? 1 : zoomConfig.zoom
14849
+ };
14850
+ const newUi = {
14851
+ viewports: { ...viewports, current: uiViewport }
14852
+ };
14853
+ if (isFullWidth) {
14854
+ setZoomConfig({ ...zoomConfig, zoom: 1 });
14855
+ }
14856
+ setUi(newUi);
14857
+ },
14858
+ onZoom: (zoom) => {
14859
+ setZoomConfig({ ...zoomConfig, zoom });
14398
14860
  }
14399
- setUi(newUi);
14400
- },
14401
- onZoom: (zoom) => {
14402
- setZoomConfig({ ...zoomConfig, zoom });
14403
14861
  }
14404
- }
14405
- ) }),
14406
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: getClassName34("tools"), children: [
14407
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: getClassName34("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14862
+ )
14863
+ ] }),
14864
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: getClassName34("tools"), children: [
14865
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: getClassName34("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14408
14866
  IconButton,
14409
14867
  {
14410
14868
  type: "button",
@@ -14412,34 +14870,34 @@ var HeaderInner = ({
14412
14870
  return setMenuOpen(!menuOpen);
14413
14871
  },
14414
14872
  title: "Toggle menu bar",
14415
- children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ChevronUp, { size: 16, focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ChevronDown, { size: 16, focusable: "false" })
14873
+ children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ChevronUp, { size: 16, focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ChevronDown, { size: 16, focusable: "false" })
14416
14874
  }
14417
14875
  ) }),
14418
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14876
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14419
14877
  MenuBar,
14420
14878
  {
14421
14879
  dispatch,
14422
14880
  onPublish,
14423
14881
  menuOpen,
14424
- renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CustomHeaderActions, { children: [
14425
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14882
+ renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(CustomHeaderActions, { children: [
14883
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14426
14884
  Button,
14427
14885
  {
14428
14886
  href: headerPath || "/",
14429
14887
  newTab: true,
14430
14888
  variant: "secondary",
14431
- icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ExternalLink, { size: 14 }),
14889
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ExternalLink, { size: 14 }),
14432
14890
  children: "View Web"
14433
14891
  }
14434
14892
  ),
14435
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "PublishButton", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14893
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "PublishButton", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14436
14894
  Button,
14437
14895
  {
14438
14896
  onClick: () => {
14439
14897
  const data = appStore.getState().state.data;
14440
14898
  onPublish && onPublish(data);
14441
14899
  },
14442
- icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Zap, { size: 14, fill: "currentColor" }),
14900
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Zap, { size: 14, fill: "currentColor" }),
14443
14901
  children: "Publish"
14444
14902
  }
14445
14903
  ) })
@@ -14454,12 +14912,12 @@ var HeaderInner = ({
14454
14912
  }
14455
14913
  );
14456
14914
  };
14457
- var Header = (0, import_react94.memo)(HeaderInner);
14915
+ var Header = (0, import_react95.memo)(HeaderInner);
14458
14916
 
14459
14917
  // components/SidebarSection/index.tsx
14460
14918
  init_react_import();
14461
14919
 
14462
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/SidebarSection/styles.module.css#css-module
14920
+ // css-module:/home/runner/work/credbuild/credbuild/components/SidebarSection/styles.module.css#css-module
14463
14921
  init_react_import();
14464
14922
  var styles_module_default27 = { "SidebarSection": "_SidebarSection_bv89x_1", "SidebarSection-title": "_SidebarSection-title_bv89x_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_bv89x_37", "SidebarSection-content": "_SidebarSection-content_bv89x_41", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_bv89x_50", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_bv89x_79", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_bv89x_50", "SidebarSection-heading": "_SidebarSection-heading_bv89x_91", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_bv89x_95" };
14465
14923
 
@@ -14471,7 +14929,7 @@ init_Loader();
14471
14929
  // components/Breadcrumbs/index.tsx
14472
14930
  init_react_import();
14473
14931
 
14474
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Breadcrumbs/styles.module.css#css-module
14932
+ // css-module:/home/runner/work/credbuild/credbuild/components/Breadcrumbs/styles.module.css#css-module
14475
14933
  init_react_import();
14476
14934
  var styles_module_default28 = { "Breadcrumbs": "_Breadcrumbs_1e0gb_1", "Breadcrumbs-breadcrumbLabel": "_Breadcrumbs-breadcrumbLabel_1e0gb_7", "Breadcrumbs-breadcrumb": "_Breadcrumbs-breadcrumb_1e0gb_7" };
14477
14935
 
@@ -14481,14 +14939,14 @@ init_lucide_react();
14481
14939
 
14482
14940
  // lib/use-breadcrumbs.ts
14483
14941
  init_react_import();
14484
- var import_react95 = require("react");
14942
+ var import_react96 = require("react");
14485
14943
  init_store2();
14486
14944
  var useBreadcrumbs = (renderCount) => {
14487
14945
  const selectedId = useAppStore((s) => s.selectedItem?.props.id);
14488
14946
  const config = useAppStore((s) => s.config);
14489
14947
  const path = useAppStore((s) => s.state.indexes.nodes[selectedId]?.path);
14490
14948
  const appStore = useAppStoreApi();
14491
- return (0, import_react95.useMemo)(() => {
14949
+ return (0, import_react96.useMemo)(() => {
14492
14950
  const breadcrumbs = path?.map((zoneCompound) => {
14493
14951
  const [componentId] = zoneCompound.split(":");
14494
14952
  if (componentId === "root") {
@@ -14519,7 +14977,7 @@ var useBreadcrumbs = (renderCount) => {
14519
14977
 
14520
14978
  // components/Breadcrumbs/index.tsx
14521
14979
  init_store2();
14522
- var import_jsx_runtime89 = require("react/jsx-runtime");
14980
+ var import_jsx_runtime90 = require("react/jsx-runtime");
14523
14981
  var getClassName35 = get_class_name_factory_default("Breadcrumbs", styles_module_default28);
14524
14982
  var Breadcrumbs = ({
14525
14983
  children,
@@ -14527,9 +14985,9 @@ var Breadcrumbs = ({
14527
14985
  }) => {
14528
14986
  const setUi = useAppStore((s) => s.setUi);
14529
14987
  const breadcrumbs = useBreadcrumbs(numParents);
14530
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: getClassName35(), children: [
14531
- breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: getClassName35("breadcrumb"), children: [
14532
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14988
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: getClassName35(), children: [
14989
+ breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: getClassName35("breadcrumb"), children: [
14990
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
14533
14991
  "button",
14534
14992
  {
14535
14993
  type: "button",
@@ -14538,14 +14996,14 @@ var Breadcrumbs = ({
14538
14996
  children: breadcrumb.label
14539
14997
  }
14540
14998
  ),
14541
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ChevronRight, { size: 16 })
14999
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ChevronRight, { size: 16 })
14542
15000
  ] }, i)),
14543
15001
  children
14544
15002
  ] });
14545
15003
  };
14546
15004
 
14547
15005
  // components/SidebarSection/index.tsx
14548
- var import_jsx_runtime90 = require("react/jsx-runtime");
15006
+ var import_jsx_runtime91 = require("react/jsx-runtime");
14549
15007
  var getClassName36 = get_class_name_factory_default("SidebarSection", styles_module_default27);
14550
15008
  var SidebarSection = ({
14551
15009
  children,
@@ -14555,23 +15013,23 @@ var SidebarSection = ({
14555
15013
  noBorderTop,
14556
15014
  isLoading
14557
15015
  }) => {
14558
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: getClassName36({ noBorderTop }), style: { background }, children: [
14559
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: getClassName36("title"), children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: getClassName36("breadcrumbs"), children: [
14560
- showBreadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Breadcrumbs, {}),
14561
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: getClassName36("heading"), children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Heading7, { rank: "2", size: "xs", children: title }) })
15016
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: getClassName36({ noBorderTop }), style: { background }, children: [
15017
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: getClassName36("title"), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: getClassName36("breadcrumbs"), children: [
15018
+ showBreadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Breadcrumbs, {}),
15019
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: getClassName36("heading"), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Heading7, { rank: "2", size: "xs", children: title }) })
14562
15020
  ] }) }),
14563
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: getClassName36("content"), children }),
14564
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: getClassName36("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Loader, { size: 32 }) })
15021
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: getClassName36("content"), children }),
15022
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: getClassName36("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Loader, { size: 32 }) })
14565
15023
  ] });
14566
15024
  };
14567
15025
 
14568
15026
  // components/CredBuild/components/Canvas/index.tsx
14569
15027
  init_react_import();
14570
15028
  init_css_box_model_esm();
14571
- var import_react96 = require("react");
15029
+ var import_react97 = require("react");
14572
15030
  init_store2();
14573
15031
 
14574
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Canvas/styles.module.css#css-module
15032
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Canvas/styles.module.css#css-module
14575
15033
  init_react_import();
14576
15034
  var styles_module_default29 = { "CredBuildCanvas": "_CredBuildCanvas_1ivia_1", "CredBuildCanvas--fullScreen": "_CredBuildCanvas--fullScreen_1ivia_22", "CredBuildCanvas-inner": "_CredBuildCanvas-inner_1ivia_33", "CredBuildCanvas-root": "_CredBuildCanvas-root_1ivia_42", "CredBuildCanvas--ready": "_CredBuildCanvas--ready_1ivia_67", "CredBuildCanvas-loader": "_CredBuildCanvas-loader_1ivia_72", "CredBuildCanvas--showLoader": "_CredBuildCanvas--showLoader_1ivia_82" };
14577
15035
 
@@ -14580,7 +15038,7 @@ init_lib();
14580
15038
  init_Loader();
14581
15039
  var import_shallow10 = require("zustand/react/shallow");
14582
15040
  init_default_viewports();
14583
- var import_jsx_runtime91 = require("react/jsx-runtime");
15041
+ var import_jsx_runtime92 = require("react/jsx-runtime");
14584
15042
  var getClassName37 = get_class_name_factory_default("CredBuildCanvas", styles_module_default29);
14585
15043
  var ZOOM_ON_CHANGE = true;
14586
15044
  var TRANSITION_DURATION = 150;
@@ -14614,27 +15072,31 @@ var Canvas = () => {
14614
15072
  rightSideBarVisible,
14615
15073
  leftSideBarWidth,
14616
15074
  rightSideBarWidth,
14617
- viewports
15075
+ viewports,
15076
+ root
14618
15077
  } = useAppStore(
14619
15078
  (0, import_shallow10.useShallow)((s) => ({
14620
15079
  leftSideBarVisible: s.state.ui.leftSideBarVisible,
14621
15080
  rightSideBarVisible: s.state.ui.rightSideBarVisible,
14622
15081
  leftSideBarWidth: s.state.ui.leftSideBarWidth,
14623
15082
  rightSideBarWidth: s.state.ui.rightSideBarWidth,
14624
- viewports: s.state.ui.viewports
15083
+ viewports: s.state.ui.viewports,
15084
+ root: s.state.data.root
14625
15085
  }))
14626
15086
  );
14627
- const [showTransition, setShowTransition] = (0, import_react96.useState)(false);
14628
- const isResizingRef = (0, import_react96.useRef)(false);
14629
- const defaultRender = (0, import_react96.useMemo)(() => {
14630
- const CredBuildDefault = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_jsx_runtime91.Fragment, { children });
15087
+ const isNonFullWidth = viewports.current.width !== "100%";
15088
+ const shouldApplyViewport = true;
15089
+ const [showTransition, setShowTransition] = (0, import_react97.useState)(false);
15090
+ const isResizingRef = (0, import_react97.useRef)(false);
15091
+ const defaultRender = (0, import_react97.useMemo)(() => {
15092
+ const CredBuildDefault = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children });
14631
15093
  return CredBuildDefault;
14632
15094
  }, []);
14633
- const CustomPreview = (0, import_react96.useMemo)(
15095
+ const CustomPreview = (0, import_react97.useMemo)(
14634
15096
  () => overrides.preview || defaultRender,
14635
15097
  [overrides, defaultRender]
14636
15098
  );
14637
- const getFrameDimensions = (0, import_react96.useCallback)(() => {
15099
+ const getFrameDimensions = (0, import_react97.useCallback)(() => {
14638
15100
  if (frameRef.current) {
14639
15101
  const frame = frameRef.current;
14640
15102
  const box = getBox(frame);
@@ -14642,7 +15104,7 @@ var Canvas = () => {
14642
15104
  }
14643
15105
  return { width: 0, height: 0 };
14644
15106
  }, [frameRef]);
14645
- (0, import_react96.useEffect)(() => {
15107
+ (0, import_react97.useEffect)(() => {
14646
15108
  resetAutoZoom();
14647
15109
  }, [
14648
15110
  frameRef,
@@ -14652,9 +15114,29 @@ var Canvas = () => {
14652
15114
  viewports,
14653
15115
  resetAutoZoom
14654
15116
  ]);
14655
- (0, import_react96.useEffect)(() => {
14656
- const { height: frameHeight } = getFrameDimensions();
14657
- if (viewports.current.height === "auto") {
15117
+ (0, import_react97.useEffect)(() => {
15118
+ const updateRootHeight = () => {
15119
+ const iframeEl = frameRef.current?.querySelector("iframe");
15120
+ if (iframeEl) {
15121
+ try {
15122
+ const doc = iframeEl.contentDocument;
15123
+ if (doc && doc.body) {
15124
+ const contentHeight = doc.body.scrollHeight || doc.documentElement.scrollHeight;
15125
+ if (contentHeight > 0) {
15126
+ const newRootHeight2 = contentHeight;
15127
+ if (zoomConfig.rootHeight !== newRootHeight2) {
15128
+ setZoomConfig({
15129
+ ...zoomConfig,
15130
+ rootHeight: newRootHeight2
15131
+ });
15132
+ }
15133
+ return;
15134
+ }
15135
+ }
15136
+ } catch (e) {
15137
+ }
15138
+ }
15139
+ const { height: frameHeight } = getFrameDimensions();
14658
15140
  const newRootHeight = frameHeight / zoomConfig.zoom;
14659
15141
  if (zoomConfig.rootHeight !== newRootHeight) {
14660
15142
  setZoomConfig({
@@ -14662,20 +15144,36 @@ var Canvas = () => {
14662
15144
  rootHeight: newRootHeight
14663
15145
  });
14664
15146
  }
15147
+ };
15148
+ if (viewports.current.height === "auto") {
15149
+ updateRootHeight();
15150
+ const iframeEl = frameRef.current?.querySelector("iframe");
15151
+ if (iframeEl) {
15152
+ try {
15153
+ const doc = iframeEl.contentDocument;
15154
+ if (doc && doc.body) {
15155
+ const observer = new ResizeObserver(updateRootHeight);
15156
+ observer.observe(doc.body);
15157
+ return () => observer.disconnect();
15158
+ }
15159
+ } catch (e) {
15160
+ }
15161
+ }
14665
15162
  }
14666
15163
  }, [
14667
15164
  zoomConfig.zoom,
14668
15165
  getFrameDimensions,
14669
15166
  setZoomConfig,
14670
15167
  viewports,
14671
- zoomConfig.rootHeight
15168
+ zoomConfig.rootHeight,
15169
+ frameRef
14672
15170
  ]);
14673
- (0, import_react96.useEffect)(() => {
15171
+ (0, import_react97.useEffect)(() => {
14674
15172
  if (ZOOM_ON_CHANGE) {
14675
15173
  resetAutoZoom();
14676
15174
  }
14677
15175
  }, [viewports.current.width, viewports, resetAutoZoom]);
14678
- (0, import_react96.useEffect)(() => {
15176
+ (0, import_react97.useEffect)(() => {
14679
15177
  if (!frameRef.current) return;
14680
15178
  const resizeObserver = new ResizeObserver(() => {
14681
15179
  if (!isResizingRef.current) {
@@ -14687,14 +15185,14 @@ var Canvas = () => {
14687
15185
  resizeObserver.disconnect();
14688
15186
  };
14689
15187
  }, [frameRef, resetAutoZoom]);
14690
- const [showLoader, setShowLoader] = (0, import_react96.useState)(false);
14691
- (0, import_react96.useEffect)(() => {
15188
+ const [showLoader, setShowLoader] = (0, import_react97.useState)(false);
15189
+ (0, import_react97.useEffect)(() => {
14692
15190
  setTimeout(() => {
14693
15191
  setShowLoader(true);
14694
15192
  }, 500);
14695
15193
  }, []);
14696
15194
  const appStoreApi = useAppStoreApi();
14697
- (0, import_react96.useEffect)(() => {
15195
+ (0, import_react97.useEffect)(() => {
14698
15196
  if (typeof window === "undefined") return;
14699
15197
  if (uiProp?.viewports?.current) return;
14700
15198
  const viewportWidth = window.innerWidth;
@@ -14717,7 +15215,7 @@ var Canvas = () => {
14717
15215
  if (closestViewport.width < frameWidth && containsFullWidthViewport) {
14718
15216
  closestViewport = fullWidthViewport;
14719
15217
  }
14720
- if (iframe.enabled) {
15218
+ {
14721
15219
  const s = appStoreApi.getState();
14722
15220
  const appState = {
14723
15221
  state: {
@@ -14748,7 +15246,7 @@ var Canvas = () => {
14748
15246
  uiProp?.viewports,
14749
15247
  frameRef
14750
15248
  ]);
14751
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
15249
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14752
15250
  "div",
14753
15251
  {
14754
15252
  className: getClassName37({
@@ -14766,18 +15264,18 @@ var Canvas = () => {
14766
15264
  });
14767
15265
  }
14768
15266
  },
14769
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: getClassName37("inner"), ref: frameRef, children: [
14770
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
15267
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName37("inner"), ref: frameRef, children: [
15268
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14771
15269
  "div",
14772
15270
  {
14773
15271
  className: getClassName37("root"),
14774
15272
  style: {
14775
- width: iframe.enabled ? viewports.current.width : "100%",
15273
+ width: viewports.current.width || "100%",
14776
15274
  height: !zoomConfig.rootHeight || isNaN(zoomConfig.rootHeight) ? "100%" : zoomConfig.rootHeight,
14777
15275
  minHeight: "100%",
14778
- transform: iframe.enabled ? `scale(${zoomConfig.zoom})` : void 0,
15276
+ transform: `scale(${zoomConfig.zoom})`,
14779
15277
  transition: showTransition ? `width ${TRANSITION_DURATION}ms ease-out, height ${TRANSITION_DURATION}ms ease-out, transform ${TRANSITION_DURATION}ms ease-out` : "",
14780
- overflow: iframe.enabled ? void 0 : "auto"
15278
+ overflow: isNonFullWidth ? void 0 : "auto"
14781
15279
  },
14782
15280
  suppressHydrationWarning: true,
14783
15281
  id: "credbuild-canvas-root",
@@ -14785,10 +15283,10 @@ var Canvas = () => {
14785
15283
  setShowTransition(false);
14786
15284
  isResizingRef.current = false;
14787
15285
  },
14788
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(CustomPreview, { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Preview, {}) })
15286
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CustomPreview, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Preview, {}) })
14789
15287
  }
14790
15288
  ),
14791
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: getClassName37("loader"), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Loader, { size: 24 }) })
15289
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getClassName37("loader"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Loader, { size: 24 }) })
14792
15290
  ] })
14793
15291
  }
14794
15292
  );
@@ -14796,15 +15294,15 @@ var Canvas = () => {
14796
15294
 
14797
15295
  // lib/use-sidebar-resize.ts
14798
15296
  init_react_import();
14799
- var import_react97 = require("react");
15297
+ var import_react98 = require("react");
14800
15298
  init_store2();
14801
15299
  function useSidebarResize(position, dispatch) {
14802
- const [width, setWidth] = (0, import_react97.useState)(null);
14803
- const sidebarRef = (0, import_react97.useRef)(null);
15300
+ const [width, setWidth] = (0, import_react98.useState)(null);
15301
+ const sidebarRef = (0, import_react98.useRef)(null);
14804
15302
  const storeWidth = useAppStore(
14805
15303
  (s) => position === "left" ? s.state.ui.leftSideBarWidth : s.state.ui.rightSideBarWidth
14806
15304
  );
14807
- (0, import_react97.useEffect)(() => {
15305
+ (0, import_react98.useEffect)(() => {
14808
15306
  if (typeof window !== "undefined" && !storeWidth) {
14809
15307
  try {
14810
15308
  const savedWidths = localStorage.getItem("credbuild-sidebar-widths");
@@ -14829,12 +15327,12 @@ function useSidebarResize(position, dispatch) {
14829
15327
  }
14830
15328
  }
14831
15329
  }, [dispatch, position, storeWidth]);
14832
- (0, import_react97.useEffect)(() => {
15330
+ (0, import_react98.useEffect)(() => {
14833
15331
  if (storeWidth !== void 0) {
14834
15332
  setWidth(storeWidth);
14835
15333
  }
14836
15334
  }, [storeWidth]);
14837
- const handleResizeEnd = (0, import_react97.useCallback)(
15335
+ const handleResizeEnd = (0, import_react98.useCallback)(
14838
15336
  (width2) => {
14839
15337
  dispatch({
14840
15338
  type: "setUi",
@@ -14882,16 +15380,16 @@ init_react_import();
14882
15380
 
14883
15381
  // components/CredBuild/components/ResizeHandle/index.tsx
14884
15382
  init_react_import();
14885
- var import_react98 = require("react");
15383
+ var import_react99 = require("react");
14886
15384
  init_get_class_name_factory();
14887
15385
 
14888
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/ResizeHandle/styles.module.css#css-module
15386
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/ResizeHandle/styles.module.css#css-module
14889
15387
  init_react_import();
14890
15388
  var styles_module_default30 = { "ResizeHandle": "_ResizeHandle_144bf_2", "ResizeHandle--left": "_ResizeHandle--left_144bf_16", "ResizeHandle--right": "_ResizeHandle--right_144bf_20" };
14891
15389
 
14892
15390
  // components/CredBuild/components/ResizeHandle/index.tsx
14893
15391
  init_lib();
14894
- var import_jsx_runtime92 = require("react/jsx-runtime");
15392
+ var import_jsx_runtime93 = require("react/jsx-runtime");
14895
15393
  var getClassName38 = get_class_name_factory_default("ResizeHandle", styles_module_default30);
14896
15394
  var ResizeHandle = ({
14897
15395
  position,
@@ -14901,11 +15399,11 @@ var ResizeHandle = ({
14901
15399
  }) => {
14902
15400
  const { frameRef } = useCanvasFrame();
14903
15401
  const resetAutoZoom = useResetAutoZoom(frameRef);
14904
- const handleRef = (0, import_react98.useRef)(null);
14905
- const isDragging = (0, import_react98.useRef)(false);
14906
- const startX = (0, import_react98.useRef)(0);
14907
- const startWidth = (0, import_react98.useRef)(0);
14908
- const handleMouseMove = (0, import_react98.useCallback)(
15402
+ const handleRef = (0, import_react99.useRef)(null);
15403
+ const isDragging = (0, import_react99.useRef)(false);
15404
+ const startX = (0, import_react99.useRef)(0);
15405
+ const startWidth = (0, import_react99.useRef)(0);
15406
+ const handleMouseMove = (0, import_react99.useCallback)(
14909
15407
  (e) => {
14910
15408
  if (!isDragging.current) return;
14911
15409
  const delta = e.clientX - startX.current;
@@ -14916,7 +15414,7 @@ var ResizeHandle = ({
14916
15414
  },
14917
15415
  [onResize, position]
14918
15416
  );
14919
- const handleMouseUp = (0, import_react98.useCallback)(() => {
15417
+ const handleMouseUp = (0, import_react99.useCallback)(() => {
14920
15418
  if (!isDragging.current) return;
14921
15419
  isDragging.current = false;
14922
15420
  document.body.style.cursor = "";
@@ -14931,7 +15429,7 @@ var ResizeHandle = ({
14931
15429
  onResizeEnd(finalWidth);
14932
15430
  resetAutoZoom();
14933
15431
  }, [onResizeEnd, handleMouseMove, resetAutoZoom, sidebarRef]);
14934
- const handleMouseDown = (0, import_react98.useCallback)(
15432
+ const handleMouseDown = (0, import_react99.useCallback)(
14935
15433
  (e) => {
14936
15434
  isDragging.current = true;
14937
15435
  startX.current = e.clientX;
@@ -14948,7 +15446,7 @@ var ResizeHandle = ({
14948
15446
  },
14949
15447
  [handleMouseMove, handleMouseUp, sidebarRef]
14950
15448
  );
14951
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
15449
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14952
15450
  "div",
14953
15451
  {
14954
15452
  ref: handleRef,
@@ -14961,12 +15459,12 @@ var ResizeHandle = ({
14961
15459
  // components/CredBuild/components/Sidebar/index.tsx
14962
15460
  init_get_class_name_factory();
14963
15461
 
14964
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Sidebar/styles.module.css#css-module
15462
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Sidebar/styles.module.css#css-module
14965
15463
  init_react_import();
14966
15464
  var styles_module_default31 = { "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" };
14967
15465
 
14968
15466
  // components/CredBuild/components/Sidebar/index.tsx
14969
- var import_jsx_runtime93 = require("react/jsx-runtime");
15467
+ var import_jsx_runtime94 = require("react/jsx-runtime");
14970
15468
  var getClassName39 = get_class_name_factory_default("Sidebar", styles_module_default31);
14971
15469
  var Sidebar = ({
14972
15470
  position,
@@ -14976,8 +15474,8 @@ var Sidebar = ({
14976
15474
  onResizeEnd,
14977
15475
  children
14978
15476
  }) => {
14979
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
14980
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
15477
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
15478
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
14981
15479
  "div",
14982
15480
  {
14983
15481
  ref: sidebarRef,
@@ -14985,7 +15483,7 @@ var Sidebar = ({
14985
15483
  children
14986
15484
  }
14987
15485
  ),
14988
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: `${getClassName39("resizeHandle")}`, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
15486
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `${getClassName39("resizeHandle")}`, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
14989
15487
  ResizeHandle,
14990
15488
  {
14991
15489
  position,
@@ -14999,7 +15497,7 @@ var Sidebar = ({
14999
15497
 
15000
15498
  // lib/use-delete-hotkeys.ts
15001
15499
  init_react_import();
15002
- var import_react99 = require("react");
15500
+ var import_react100 = require("react");
15003
15501
  init_use_hotkey();
15004
15502
  init_store2();
15005
15503
  var isElementVisible = (element) => {
@@ -15035,7 +15533,7 @@ var shouldBlockDeleteHotkey = (e) => {
15035
15533
  };
15036
15534
  var useDeleteHotkeys = () => {
15037
15535
  const appStore = useAppStoreApi();
15038
- const deleteSelectedComponent = (0, import_react99.useCallback)(
15536
+ const deleteSelectedComponent = (0, import_react100.useCallback)(
15039
15537
  (e) => {
15040
15538
  if (shouldBlockDeleteHotkey(e)) {
15041
15539
  return false;
@@ -15061,13 +15559,13 @@ var useDeleteHotkeys = () => {
15061
15559
  // components/CredBuild/components/Nav/index.tsx
15062
15560
  init_react_import();
15063
15561
 
15064
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/CredBuild/components/Nav/styles.module.css#css-module
15562
+ // css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Nav/styles.module.css#css-module
15065
15563
  init_react_import();
15066
15564
  var styles_module_default32 = { "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" };
15067
15565
 
15068
15566
  // components/CredBuild/components/Nav/index.tsx
15069
15567
  init_lib();
15070
- var import_jsx_runtime94 = require("react/jsx-runtime");
15568
+ var import_jsx_runtime95 = require("react/jsx-runtime");
15071
15569
  var getClassName40 = get_class_name_factory_default("Nav", styles_module_default32);
15072
15570
  var getClassNameItem3 = get_class_name_factory_default("NavItem", styles_module_default32);
15073
15571
  var MenuItem = ({
@@ -15078,7 +15576,7 @@ var MenuItem = ({
15078
15576
  mobileOnly,
15079
15577
  desktopOnly
15080
15578
  }) => {
15081
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
15579
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15082
15580
  "li",
15083
15581
  {
15084
15582
  className: getClassNameItem3({
@@ -15086,10 +15584,7 @@ var MenuItem = ({
15086
15584
  mobileOnly,
15087
15585
  desktopOnly
15088
15586
  }),
15089
- children: onClick && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: getClassNameItem3("link"), onClick, children: [
15090
- icon && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: getClassNameItem3("linkIcon"), children: icon }),
15091
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: getClassNameItem3("linkLabel"), children: label })
15092
- ] })
15587
+ children: onClick && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: getClassNameItem3("link"), onClick, title: label, children: icon && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: getClassNameItem3("linkIcon"), children: icon }) })
15093
15588
  }
15094
15589
  );
15095
15590
  };
@@ -15097,9 +15592,9 @@ var Nav = ({
15097
15592
  items,
15098
15593
  mobileActions
15099
15594
  }) => {
15100
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("nav", { className: getClassName40(), children: [
15101
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("ul", { className: getClassName40("list"), children: Object.entries(items).map(([key, item]) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(MenuItem, { ...item }, key)) }),
15102
- mobileActions && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: getClassName40("mobileActions"), children: mobileActions })
15595
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("nav", { className: getClassName40(), children: [
15596
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("ul", { className: getClassName40("list"), children: Object.entries(items).map(([key, item]) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(MenuItem, { ...item }, key)) }),
15597
+ mobileActions && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: getClassName40("mobileActions"), children: mobileActions })
15103
15598
  ] });
15104
15599
  };
15105
15600
 
@@ -15111,38 +15606,38 @@ init_lucide_react();
15111
15606
  init_react_import();
15112
15607
  init_lucide_react();
15113
15608
 
15114
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/plugins/blocks/styles.module.css#css-module
15609
+ // css-module:/home/runner/work/credbuild/credbuild/plugins/blocks/styles.module.css#css-module
15115
15610
  init_react_import();
15116
- var styles_module_default33 = { "BlocksPlugin": "_BlocksPlugin_1ey1i_1" };
15611
+ var styles_module_default33 = { "BlocksPlugin": "_BlocksPlugin_1q0b2_1" };
15117
15612
 
15118
15613
  // plugins/blocks/index.tsx
15119
15614
  init_lib();
15120
- var import_jsx_runtime95 = require("react/jsx-runtime");
15615
+ var import_jsx_runtime96 = require("react/jsx-runtime");
15121
15616
  var getClassName41 = get_class_name_factory_default("BlocksPlugin", styles_module_default33);
15122
15617
  var blocksPlugin = () => ({
15123
15618
  name: "blocks",
15124
15619
  label: "Blocks",
15125
- render: () => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: getClassName41(), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Components, {}) }),
15126
- icon: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Shapes, {})
15620
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: getClassName41(), children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Components, {}) }),
15621
+ icon: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Shapes, {})
15127
15622
  });
15128
15623
 
15129
15624
  // plugins/outline/index.tsx
15130
15625
  init_react_import();
15131
15626
  init_lucide_react();
15132
15627
 
15133
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/plugins/outline/styles.module.css#css-module
15628
+ // css-module:/home/runner/work/credbuild/credbuild/plugins/outline/styles.module.css#css-module
15134
15629
  init_react_import();
15135
15630
  var styles_module_default34 = { "OutlinePlugin": "_OutlinePlugin_q92j6_1" };
15136
15631
 
15137
15632
  // plugins/outline/index.tsx
15138
15633
  init_lib();
15139
- var import_jsx_runtime96 = require("react/jsx-runtime");
15634
+ var import_jsx_runtime97 = require("react/jsx-runtime");
15140
15635
  var getClassName42 = get_class_name_factory_default("OutlinePlugin", styles_module_default34);
15141
15636
  var outlinePlugin = () => ({
15142
15637
  name: "outline",
15143
15638
  label: "Outline",
15144
- render: () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: getClassName42(), children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Outline, {}) }),
15145
- icon: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(List, {})
15639
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: getClassName42(), children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Outline, {}) }),
15640
+ icon: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(List, {})
15146
15641
  });
15147
15642
 
15148
15643
  // plugins/fields/index.tsx
@@ -15150,13 +15645,13 @@ init_react_import();
15150
15645
  init_lucide_react();
15151
15646
  init_store2();
15152
15647
 
15153
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/plugins/fields/styles.module.css#css-module
15648
+ // css-module:/home/runner/work/credbuild/credbuild/plugins/fields/styles.module.css#css-module
15154
15649
  init_react_import();
15155
15650
  var styles_module_default35 = { "FieldsPlugin": "_FieldsPlugin_6as57_1", "FieldsPlugin-header": "_FieldsPlugin-header_6as57_7" };
15156
15651
 
15157
15652
  // plugins/fields/index.tsx
15158
15653
  init_lib();
15159
- var import_jsx_runtime97 = require("react/jsx-runtime");
15654
+ var import_jsx_runtime98 = require("react/jsx-runtime");
15160
15655
  var getClassName43 = get_class_name_factory_default("FieldsPlugin", styles_module_default35);
15161
15656
  var CurrentTitle = () => {
15162
15657
  const label = useAppStore((s) => {
@@ -15168,31 +15663,185 @@ var CurrentTitle = () => {
15168
15663
  var fieldsPlugin = ({ desktopSideBar = "right" } = {}) => ({
15169
15664
  name: "fields",
15170
15665
  label: "Fields",
15171
- render: () => /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: getClassName43(), children: [
15172
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: getClassName43("header"), children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Breadcrumbs, { numParents: 2, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(CurrentTitle, {}) }) }),
15173
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Fields, {})
15666
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: getClassName43(), children: [
15667
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: getClassName43("header"), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Breadcrumbs, { numParents: 2, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CurrentTitle, {}) }) }),
15668
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Fields, {})
15174
15669
  ] }),
15175
- icon: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(RectangleEllipsis, {}),
15670
+ icon: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(RectangleEllipsis, {}),
15176
15671
  mobileOnly: desktopSideBar === "right"
15177
15672
  });
15178
15673
 
15674
+ // plugins/code/index.tsx
15675
+ init_react_import();
15676
+ init_lucide_react();
15677
+
15678
+ // plugins/code/CodePanel.tsx
15679
+ init_react_import();
15680
+ var import_react101 = require("react");
15681
+ init_store2();
15682
+ init_lucide_react();
15683
+ init_get_class_name_factory();
15684
+
15685
+ // css-module:/home/runner/work/credbuild/credbuild/plugins/code/styles.module.css#css-module
15686
+ init_react_import();
15687
+ var styles_module_default36 = { "CodePlugin": "_CodePlugin_77s8n_1", "CodePanel": "_CodePanel_77s8n_9", "CodePanel-title": "_CodePanel-title_77s8n_18", "CodePanel-textarea": "_CodePanel-textarea_77s8n_27", "CodePanel-optionsSection": "_CodePanel-optionsSection_77s8n_49", "CodePanel-optionTitle": "_CodePanel-optionTitle_77s8n_53", "CodePanel-radioGroup": "_CodePanel-radioGroup_77s8n_62", "CodePanel-radioLabel": "_CodePanel-radioLabel_77s8n_68", "CodePanel-radioInput": "_CodePanel-radioInput_77s8n_77", "CodePanel-button": "_CodePanel-button_77s8n_87", "CodePanel-error": "_CodePanel-error_77s8n_120", "CodePanel-success": "_CodePanel-success_77s8n_131", "CodePanel-promptSection": "_CodePanel-promptSection_77s8n_142", "CodePanel-promptHeader": "_CodePanel-promptHeader_77s8n_148", "CodePanel-promptText": "_CodePanel-promptText_77s8n_155", "CodePanel-copyBtn": "_CodePanel-copyBtn_77s8n_169", "CodePanel-copyBtn--copied": "_CodePanel-copyBtn--copied_77s8n_193" };
15688
+
15689
+ // plugins/code/CodePanel.tsx
15690
+ var import_jsx_runtime99 = require("react/jsx-runtime");
15691
+ var getClassName44 = get_class_name_factory_default("CodePanel", styles_module_default36);
15692
+ var CodePanel = () => {
15693
+ const [copied, setCopied] = (0, import_react101.useState)(false);
15694
+ const dispatch = useAppStore((s) => s.dispatch);
15695
+ const root = useAppStore((s) => s.state.data.root);
15696
+ const rootProps = root?.props || root;
15697
+ const currentMode = rootProps?.mode || "blocks";
15698
+ const aiPrompt = `Buatkan desain landing page lengkap dan premium dengan pendekatan mobile-first, modern, rapi, dan compact (padat & elegan) menggunakan HTML murni dan utilitas kelas Tailwind CSS. Halaman harus memuat struktur lengkap seperti Header/Navigation, Hero Section, Features/Layanan, Testimoni, Call-to-Action (CTA), dan Footer.
15699
+
15700
+ Ketentuan penulisan kode:
15701
+ 1. STRUKTUR BERSIH: Gunakan elemen semantik HTML5 seperti <section>, <header>, atau <div> sebagai wrapper utama per seksi. JANGAN sertakan tag <html>, <body>, <head>, atau <script>.
15702
+ 2. MOBILE-FIRST & RESPONSIF: Desain harus sepenuhnya responsif. Mulai dari layout ponsel (default), lalu gunakan breakpoint (sm:, md:, lg:, xl:) secara terstruktur untuk layar yang lebih besar.
15703
+ 3. ESTETIKA MODERN & PREMIUM: Gunakan skema warna harmonis (misal: warna gelap bernuansa glassmorphism, gradasi halus, border tipis semi-transparan, efek hover mikro interaktif).
15704
+ 4. COMPACT & EFISIEN: Hindari padding/margin berlebih yang membuat halaman kosong melompong. Pastikan konten padat, terbaca dengan baik, dan memiliki rasio grid/flexbox yang rapi.
15705
+ 5. BEBAS JAVASCRIPT: Seluruh interaktivitas dasar (seperti hover, focus, state) harus ditangani murni menggunakan utilitas kelas CSS Tailwind.`;
15706
+ const handleCopyPrompt = () => {
15707
+ navigator.clipboard.writeText(aiPrompt);
15708
+ setCopied(true);
15709
+ setTimeout(() => setCopied(false), 2e3);
15710
+ };
15711
+ const handleActivateHtmlMode = () => {
15712
+ dispatch({
15713
+ type: "setData",
15714
+ data: (currentData) => {
15715
+ return {
15716
+ ...currentData,
15717
+ content: [],
15718
+ root: {
15719
+ ...currentData.root,
15720
+ props: {
15721
+ ...currentData.root?.props,
15722
+ mode: "html",
15723
+ htmlCode: "",
15724
+ htmlViewMode: "code"
15725
+ }
15726
+ }
15727
+ };
15728
+ }
15729
+ });
15730
+ };
15731
+ const handleResetToBlocks = () => {
15732
+ dispatch({
15733
+ type: "setData",
15734
+ data: (currentData) => {
15735
+ return {
15736
+ ...currentData,
15737
+ content: [],
15738
+ root: {
15739
+ ...currentData.root,
15740
+ props: {
15741
+ ...currentData.root?.props,
15742
+ mode: "blocks",
15743
+ htmlCode: "",
15744
+ htmlViewMode: "code"
15745
+ }
15746
+ }
15747
+ };
15748
+ }
15749
+ });
15750
+ };
15751
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: getClassName44(), children: [
15752
+ currentMode === "html" ? /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
15753
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("title"), children: "Tempel Kode HTML" }),
15754
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "p-3 bg-emerald-950/40 border border-emerald-800/40 rounded-lg", children: [
15755
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex items-center gap-2 text-emerald-400 text-xs font-semibold mb-3", children: [
15756
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(CircleCheck, { size: 14, className: "shrink-0" }),
15757
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: "Mode HTML Aktif pada Kanvas" })
15758
+ ] }),
15759
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-[11px] leading-relaxed text-zinc-400 mb-4", children: "Gunakan editor kode langsung yang lapang langsung di area kanvas tengah untuk mengedit kode." }),
15760
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
15761
+ "button",
15762
+ {
15763
+ type: "button",
15764
+ onClick: handleResetToBlocks,
15765
+ className: "w-full px-3 py-2 text-xs font-bold text-zinc-400 hover:text-white bg-zinc-950/50 border border-zinc-900 hover:border-zinc-800 rounded transition-colors cursor-pointer flex items-center justify-center gap-1.5",
15766
+ children: [
15767
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(LayoutGrid, { size: 13 }),
15768
+ "Matikan Mode HTML (Mode Blok)"
15769
+ ]
15770
+ }
15771
+ ) })
15772
+ ] })
15773
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { style: { display: "flex", flexDirection: "column" }, children: [
15774
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("title"), children: "Tempel Kode HTML" }),
15775
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "mb-4 p-3 bg-zinc-900/60 border border-zinc-800/60 rounded-lg text-[11px] leading-relaxed text-zinc-400", children: [
15776
+ "Kanvas saat ini menggunakan ",
15777
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("strong", { children: "Mode Blok Visual" }),
15778
+ ". Klik tombol di bawah untuk beralih ke Mode HTML penuh pada kanvas."
15779
+ ] }),
15780
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
15781
+ "button",
15782
+ {
15783
+ type: "button",
15784
+ onClick: handleActivateHtmlMode,
15785
+ className: "w-full px-4 py-2 border border-zinc-800 rounded-md text-xs font-semibold text-zinc-300 bg-zinc-900 hover:bg-zinc-800 hover:text-white transition-colors cursor-pointer flex items-center justify-center gap-1.5 mb-4",
15786
+ children: [
15787
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Code, { size: 13 }),
15788
+ "Aktifkan Mode HTML"
15789
+ ]
15790
+ }
15791
+ )
15792
+ ] }),
15793
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: getClassName44("promptSection"), children: [
15794
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: getClassName44("promptHeader"), children: [
15795
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("optionTitle"), style: { margin: 0 }, children: "Prompt AI Generator" }),
15796
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
15797
+ "button",
15798
+ {
15799
+ type: "button",
15800
+ onClick: handleCopyPrompt,
15801
+ className: getClassName44("copyBtn") + (copied ? ` ${styles_module_default36["CodePanel-copyBtn--copied"]}` : ""),
15802
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
15803
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Check, { size: 11 }),
15804
+ "Tersalin"
15805
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
15806
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Copy, { size: 11 }),
15807
+ "Salin Prompt"
15808
+ ] })
15809
+ }
15810
+ )
15811
+ ] }),
15812
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("promptText"), children: aiPrompt })
15813
+ ] })
15814
+ ] });
15815
+ };
15816
+
15817
+ // plugins/code/index.tsx
15818
+ init_lib();
15819
+ var import_jsx_runtime100 = require("react/jsx-runtime");
15820
+ var getClassName45 = get_class_name_factory_default("CodePlugin", styles_module_default36);
15821
+ var codePlugin = () => ({
15822
+ name: "code",
15823
+ label: "Code",
15824
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: getClassName45(), children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(CodePanel, {}) }),
15825
+ icon: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Code, { size: 18 })
15826
+ });
15827
+
15179
15828
  // components/CredBuild/components/Layout/index.tsx
15180
- var import_jsx_runtime98 = require("react/jsx-runtime");
15181
- var getClassName44 = get_class_name_factory_default("CredBuild", styles_module_default23);
15829
+ var import_jsx_runtime101 = require("react/jsx-runtime");
15830
+ var getClassName46 = get_class_name_factory_default("CredBuild", styles_module_default23);
15182
15831
  var getLayoutClassName = get_class_name_factory_default("CredBuildLayout", styles_module_default23);
15183
15832
  var getPluginTabClassName = get_class_name_factory_default("CredBuildPluginTab", styles_module_default23);
15184
15833
  var FieldSideBar = () => {
15185
15834
  const title = useAppStore(
15186
15835
  (s) => s.selectedItem ? s.config.components[s.selectedItem.type]?.["label"] ?? s.selectedItem.type.toString() : s.config.root?.label || "Page"
15187
15836
  );
15188
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(SidebarSection, { noBorderTop: true, showBreadcrumbs: true, title, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Fields, {}) });
15837
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(SidebarSection, { noBorderTop: true, showBreadcrumbs: true, title, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Fields, {}) });
15189
15838
  };
15190
15839
  var PluginTab = ({
15191
15840
  children,
15192
15841
  visible,
15193
15842
  mobileOnly
15194
15843
  }) => {
15195
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: getPluginTabClassName({ visible, mobileOnly }), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: getPluginTabClassName("body"), children }) });
15844
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: getPluginTabClassName({ visible, mobileOnly }), children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: getPluginTabClassName("body"), children }) });
15196
15845
  };
15197
15846
  var Layout = ({ children }) => {
15198
15847
  const {
@@ -15202,7 +15851,7 @@ var Layout = ({ children }) => {
15202
15851
  plugins,
15203
15852
  height
15204
15853
  } = usePropsContext();
15205
- const iframe = (0, import_react100.useMemo)(
15854
+ const iframe = (0, import_react102.useMemo)(
15206
15855
  () => ({
15207
15856
  enabled: true,
15208
15857
  waitForStyles: true,
@@ -15229,7 +15878,7 @@ var Layout = ({ children }) => {
15229
15878
  sidebarRef: rightSidebarRef,
15230
15879
  handleResizeEnd: handleRightSidebarResizeEnd
15231
15880
  } = useSidebarResize("right", dispatch);
15232
- (0, import_react100.useEffect)(() => {
15881
+ (0, import_react102.useEffect)(() => {
15233
15882
  if (!window.matchMedia("(min-width: 638px)").matches) {
15234
15883
  dispatch({
15235
15884
  type: "setUi",
@@ -15256,13 +15905,13 @@ var Layout = ({ children }) => {
15256
15905
  };
15257
15906
  }, [dispatch]);
15258
15907
  const overrides = useAppStore((s) => s.overrides);
15259
- const CustomCredBuild = (0, import_react100.useMemo)(
15908
+ const CustomCredBuild = (0, import_react102.useMemo)(
15260
15909
  () => overrides.credbuild || DefaultOverride,
15261
15910
  [overrides]
15262
15911
  );
15263
- const [mounted, setMounted] = (0, import_react100.useState)(false);
15264
- const [theme, setTheme] = (0, import_react100.useState)("dark");
15265
- (0, import_react100.useEffect)(() => {
15912
+ const [mounted, setMounted] = (0, import_react102.useState)(false);
15913
+ const [theme, setTheme] = (0, import_react102.useState)("dark");
15914
+ (0, import_react102.useEffect)(() => {
15266
15915
  setMounted(true);
15267
15916
  const savedTheme = localStorage.getItem("credbuild-theme");
15268
15917
  if (savedTheme) {
@@ -15281,7 +15930,7 @@ var Layout = ({ children }) => {
15281
15930
  }, []);
15282
15931
  const ready = useAppStore((s) => s.status === "READY");
15283
15932
  useMonitorHotkeys();
15284
- (0, import_react100.useEffect)(() => {
15933
+ (0, import_react102.useEffect)(() => {
15285
15934
  if (ready && iframe.enabled) {
15286
15935
  const frameDoc = getFrame();
15287
15936
  if (frameDoc) {
@@ -15301,14 +15950,18 @@ var Layout = ({ children }) => {
15301
15950
  const setUi = useAppStore((s) => s.setUi);
15302
15951
  const currentPlugin = useAppStore((s) => s.state.ui.plugin?.current);
15303
15952
  const appStoreApi = useAppStoreApi();
15304
- const [mobilePanelHeightMode, setMobilePanelHeightMode] = (0, import_react100.useState)("toggle");
15305
- const hasLegacySideBarPlugin = (0, import_react100.useMemo)(
15953
+ const [mobilePanelHeightMode, setMobilePanelHeightMode] = (0, import_react102.useState)("toggle");
15954
+ const hasLegacySideBarPlugin = (0, import_react102.useMemo)(
15306
15955
  () => !!plugins?.find((p) => p.name === "legacy-side-bar"),
15307
15956
  [plugins]
15308
15957
  );
15309
- const pluginItems = (0, import_react100.useMemo)(() => {
15958
+ const pluginItems = (0, import_react102.useMemo)(() => {
15310
15959
  const details = {};
15311
- const defaultPlugins = [blocksPlugin(), outlinePlugin()];
15960
+ const defaultPlugins = [
15961
+ blocksPlugin(),
15962
+ outlinePlugin(),
15963
+ codePlugin()
15964
+ ];
15312
15965
  const isLegacy = (plugin) => plugin.name === "legacy-side-bar" ? -1 : 0;
15313
15966
  const combinedPlugins = [
15314
15967
  ...defaultPlugins,
@@ -15324,7 +15977,7 @@ var Layout = ({ children }) => {
15324
15977
  }
15325
15978
  details[plugin.name] = {
15326
15979
  label: plugin.label ?? plugin.name,
15327
- icon: plugin.icon ?? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ToyBrick, {}),
15980
+ icon: plugin.icon ?? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ToyBrick, {}),
15328
15981
  onClick: () => {
15329
15982
  setMobilePanelHeightMode(plugin.mobilePanelHeight ?? "toggle");
15330
15983
  if (plugin.name === currentPlugin) {
@@ -15351,7 +16004,7 @@ var Layout = ({ children }) => {
15351
16004
  });
15352
16005
  return details;
15353
16006
  }, [plugins, currentPlugin, leftSideBarVisible, hasLegacySideBarPlugin, setUi]);
15354
- (0, import_react100.useEffect)(() => {
16007
+ (0, import_react102.useEffect)(() => {
15355
16008
  if (!currentPlugin) {
15356
16009
  const names = Object.keys(pluginItems);
15357
16010
  setUi({ plugin: { current: names[0] } });
@@ -15361,17 +16014,17 @@ var Layout = ({ children }) => {
15361
16014
  const mobilePanelExpanded = useAppStore(
15362
16015
  (s) => s.state.ui.mobilePanelExpanded ?? false
15363
16016
  );
15364
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
16017
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
15365
16018
  "div",
15366
16019
  {
15367
- className: `CredBuild ${theme === "dark" ? "dark" : ""} ${getClassName44({
16020
+ className: `CredBuild ${theme === "dark" ? "dark" : ""} ${getClassName46({
15368
16021
  hidePlugins: hasLegacySideBarPlugin
15369
16022
  })}`,
15370
16023
  "data-theme": theme,
15371
16024
  id: instanceId,
15372
16025
  style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
15373
16026
  children: [
15374
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(DragDropContext, { disableAutoScroll: dnd?.disableAutoScroll, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CustomCredBuild, { children: children || /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(FrameProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
16027
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(DragDropContext, { disableAutoScroll: dnd?.disableAutoScroll, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CustomCredBuild, { children: children || /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(FrameProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
15375
16028
  "div",
15376
16029
  {
15377
16030
  className: getLayoutClassName({
@@ -15383,14 +16036,14 @@ var Layout = ({ children }) => {
15383
16036
  mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content"
15384
16037
  }),
15385
16038
  style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
15386
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
16039
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
15387
16040
  "div",
15388
16041
  {
15389
16042
  className: getLayoutClassName("inner"),
15390
16043
  style: layoutOptions,
15391
16044
  children: [
15392
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: getLayoutClassName("header"), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Header, { theme, hidePlugins: hasLegacySideBarPlugin }) }),
15393
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
16045
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: getLayoutClassName("header"), children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Header, { theme, hidePlugins: hasLegacySideBarPlugin }) }),
16046
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
15394
16047
  Sidebar,
15395
16048
  {
15396
16049
  position: "left",
@@ -15399,11 +16052,11 @@ var Layout = ({ children }) => {
15399
16052
  onResize: setLeftWidth,
15400
16053
  onResizeEnd: handleLeftSidebarResizeEnd,
15401
16054
  children: [
15402
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: getLayoutClassName("nav"), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
16055
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: getLayoutClassName("nav"), children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
15403
16056
  Nav,
15404
16057
  {
15405
16058
  items: pluginItems,
15406
- mobileActions: typeof window !== "undefined" && !window.matchMedia("(min-width: 638px)").matches && leftSideBarVisible && mobilePanelHeightMode === "toggle" && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
16059
+ mobileActions: typeof window !== "undefined" && !window.matchMedia("(min-width: 638px)").matches && leftSideBarVisible && mobilePanelHeightMode === "toggle" && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
15407
16060
  IconButton,
15408
16061
  {
15409
16062
  type: "button",
@@ -15413,18 +16066,18 @@ var Layout = ({ children }) => {
15413
16066
  mobilePanelExpanded: !mobilePanelExpanded
15414
16067
  });
15415
16068
  },
15416
- children: mobilePanelExpanded ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Minimize2, { size: 21 }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Maximize2, { size: 21 })
16069
+ children: mobilePanelExpanded ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Minimize2, { size: 21 }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Maximize2, { size: 21 })
15417
16070
  }
15418
16071
  )
15419
16072
  }
15420
16073
  ) }),
15421
16074
  Object.entries(pluginItems).map(
15422
- ([id, { mobileOnly, render: Render2, label }]) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
16075
+ ([id, { mobileOnly, render: Render2, label }]) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
15423
16076
  PluginTab,
15424
16077
  {
15425
16078
  visible: currentPlugin === id,
15426
16079
  mobileOnly,
15427
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Render2, {})
16080
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Render2, {})
15428
16081
  },
15429
16082
  id
15430
16083
  )
@@ -15432,8 +16085,8 @@ var Layout = ({ children }) => {
15432
16085
  ]
15433
16086
  }
15434
16087
  ),
15435
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Canvas, {}),
15436
- !hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
16088
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Canvas, {}),
16089
+ !hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
15437
16090
  Sidebar,
15438
16091
  {
15439
16092
  position: "right",
@@ -15441,7 +16094,7 @@ var Layout = ({ children }) => {
15441
16094
  isVisible: rightSideBarVisible,
15442
16095
  onResize: setRightWidth,
15443
16096
  onResizeEnd: handleRightSidebarResizeEnd,
15444
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(FieldSideBar, {})
16097
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(FieldSideBar, {})
15445
16098
  }
15446
16099
  )
15447
16100
  ]
@@ -15449,7 +16102,7 @@ var Layout = ({ children }) => {
15449
16102
  )
15450
16103
  }
15451
16104
  ) }) }) }),
15452
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { id: "credbuild-portal-root", className: getClassName44("portal") })
16105
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { id: "credbuild-portal-root", className: getClassName46("portal") })
15453
16106
  ]
15454
16107
  }
15455
16108
  );
@@ -15457,7 +16110,7 @@ var Layout = ({ children }) => {
15457
16110
 
15458
16111
  // components/CredBuild/index.tsx
15459
16112
  init_use_safe_id();
15460
- var import_jsx_runtime99 = require("react/jsx-runtime");
16113
+ var import_jsx_runtime102 = require("react/jsx-runtime");
15461
16114
  function CredBuildProvider({ children }) {
15462
16115
  const {
15463
16116
  config,
@@ -15476,7 +16129,7 @@ function CredBuildProvider({ children }) {
15476
16129
  _experimentalFullScreenCanvas,
15477
16130
  _experimentalVirtualization
15478
16131
  } = usePropsContext();
15479
- const iframe = (0, import_react101.useMemo)(
16132
+ const iframe = (0, import_react103.useMemo)(
15480
16133
  () => ({
15481
16134
  enabled: true,
15482
16135
  waitForStyles: true,
@@ -15484,7 +16137,7 @@ function CredBuildProvider({ children }) {
15484
16137
  }),
15485
16138
  [_iframe]
15486
16139
  );
15487
- const [generatedAppState] = (0, import_react101.useState)(() => {
16140
+ const [generatedAppState] = (0, import_react103.useState)(() => {
15488
16141
  const initial = { ...defaultAppState.ui, ...initialUi };
15489
16142
  let clientUiState = {};
15490
16143
  if (Object.keys(initialData?.root || {}).length > 0 && !initialData?.root?.props) {
@@ -15531,7 +16184,7 @@ function CredBuildProvider({ children }) {
15531
16184
  return walkAppState(newAppState, config);
15532
16185
  });
15533
16186
  const { appendData = true } = _initialHistory || {};
15534
- const [blendedHistories] = (0, import_react101.useState)(
16187
+ const [blendedHistories] = (0, import_react103.useState)(
15535
16188
  [
15536
16189
  ..._initialHistory?.histories || [],
15537
16190
  ...appendData ? [{ state: generatedAppState }] : []
@@ -15546,7 +16199,7 @@ function CredBuildProvider({ children }) {
15546
16199
  };
15547
16200
  })
15548
16201
  );
15549
- const initialHistoryIndex = (0, import_react101.useMemo)(() => {
16202
+ const initialHistoryIndex = (0, import_react103.useMemo)(() => {
15550
16203
  if (_initialHistory?.index !== void 0 && _initialHistory?.index >= 0 && _initialHistory?.index < blendedHistories.length) {
15551
16204
  return _initialHistory?.index;
15552
16205
  }
@@ -15557,7 +16210,7 @@ function CredBuildProvider({ children }) {
15557
16210
  overrides,
15558
16211
  plugins
15559
16212
  });
15560
- const loadedFieldTransforms = (0, import_react101.useMemo)(() => {
16213
+ const loadedFieldTransforms = (0, import_react103.useMemo)(() => {
15561
16214
  const _plugins = plugins || [];
15562
16215
  const pluginFieldTransforms = _plugins.reduce(
15563
16216
  (acc, plugin) => ({ ...acc, ...plugin.fieldTransforms }),
@@ -15569,7 +16222,7 @@ function CredBuildProvider({ children }) {
15569
16222
  };
15570
16223
  }, [fieldTransforms, plugins]);
15571
16224
  const instanceId = useSafeId();
15572
- const generateAppStore = (0, import_react101.useCallback)(
16225
+ const generateAppStore = (0, import_react103.useCallback)(
15573
16226
  (state) => {
15574
16227
  return {
15575
16228
  instanceId,
@@ -15600,15 +16253,15 @@ function CredBuildProvider({ children }) {
15600
16253
  loadedFieldTransforms
15601
16254
  ]
15602
16255
  );
15603
- const [appStore] = (0, import_react101.useState)(
16256
+ const [appStore] = (0, import_react103.useState)(
15604
16257
  () => createAppStore(generateAppStore(initialAppState))
15605
16258
  );
15606
- (0, import_react101.useEffect)(() => {
16259
+ (0, import_react103.useEffect)(() => {
15607
16260
  if (process.env.NODE_ENV !== "production") {
15608
16261
  window.__CREDBUILD_INTERNAL_DO_NOT_USE = { appStore };
15609
16262
  }
15610
16263
  }, [appStore]);
15611
- (0, import_react101.useEffect)(() => {
16264
+ (0, import_react103.useEffect)(() => {
15612
16265
  const state = appStore.getState().state;
15613
16266
  appStore.setState({
15614
16267
  ...generateAppStore(state)
@@ -15619,8 +16272,8 @@ function CredBuildProvider({ children }) {
15619
16272
  index: initialHistoryIndex,
15620
16273
  initialAppState
15621
16274
  });
15622
- const previousData = (0, import_react101.useRef)(null);
15623
- (0, import_react101.useEffect)(() => {
16275
+ const previousData = (0, import_react103.useRef)(null);
16276
+ (0, import_react103.useEffect)(() => {
15624
16277
  return appStore.subscribe(
15625
16278
  (s) => s.state.data,
15626
16279
  (data) => {
@@ -15634,16 +16287,16 @@ function CredBuildProvider({ children }) {
15634
16287
  }, [onChange, appStore]);
15635
16288
  useRegisterPermissionsSlice(appStore, permissions);
15636
16289
  const uCredBuildStore = useRegisterUseCredBuildStore(appStore);
15637
- (0, import_react101.useEffect)(() => {
16290
+ (0, import_react103.useEffect)(() => {
15638
16291
  const { resolveAndCommitData } = appStore.getState();
15639
16292
  setTimeout(() => {
15640
16293
  resolveAndCommitData();
15641
16294
  }, 0);
15642
16295
  }, [appStore]);
15643
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(appStoreContext.Provider, { value: appStore, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(UseCredBuildStoreContext.Provider, { value: uCredBuildStore, children }) });
16296
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(appStoreContext.Provider, { value: appStore, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(UseCredBuildStoreContext.Provider, { value: uCredBuildStore, children }) });
15644
16297
  }
15645
16298
  function CredBuild(props) {
15646
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(PropsProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(CredBuildProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Layout, { children: props.children }) }) });
16299
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(PropsProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CredBuildProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Layout, { children: props.children }) }) });
15647
16300
  }
15648
16301
  CredBuild.Components = Components;
15649
16302
  CredBuild.Fields = Fields;
@@ -15907,12 +16560,12 @@ init_walk_tree();
15907
16560
 
15908
16561
  // plugins/legacy-side-bar/index.tsx
15909
16562
  init_react_import();
15910
- var import_jsx_runtime100 = require("react/jsx-runtime");
16563
+ var import_jsx_runtime103 = require("react/jsx-runtime");
15911
16564
  var legacySideBarPlugin = () => ({
15912
16565
  name: "legacy-side-bar",
15913
- render: () => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { style: { overflowY: "auto" }, children: [
15914
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Components, {}) }),
15915
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SidebarSection, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Outline, {}) })
16566
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { style: { overflowY: "auto" }, children: [
16567
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Components, {}) }),
16568
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SidebarSection, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Outline, {}) })
15916
16569
  ] })
15917
16570
  });
15918
16571
  // Annotate the CommonJS export names for ESM import in node:
@@ -15935,6 +16588,7 @@ var legacySideBarPlugin = () => ({
15935
16588
  Separator,
15936
16589
  SliderField,
15937
16590
  blocksPlugin,
16591
+ codePlugin,
15938
16592
  createUseCredBuild,
15939
16593
  fieldsPlugin,
15940
16594
  legacySideBarPlugin,
@@ -15958,16 +16612,19 @@ lucide-react/dist/esm/createLucideIcon.js:
15958
16612
  lucide-react/dist/esm/icons/bold.js:
15959
16613
  lucide-react/dist/esm/icons/box.js:
15960
16614
  lucide-react/dist/esm/icons/chart-column.js:
16615
+ lucide-react/dist/esm/icons/check.js:
15961
16616
  lucide-react/dist/esm/icons/chevron-down.js:
15962
16617
  lucide-react/dist/esm/icons/chevron-right.js:
15963
16618
  lucide-react/dist/esm/icons/chevron-up.js:
15964
16619
  lucide-react/dist/esm/icons/circle-check-big.js:
16620
+ lucide-react/dist/esm/icons/circle-check.js:
15965
16621
  lucide-react/dist/esm/icons/code.js:
15966
16622
  lucide-react/dist/esm/icons/copy.js:
15967
16623
  lucide-react/dist/esm/icons/corner-left-up.js:
15968
16624
  lucide-react/dist/esm/icons/credit-card.js:
15969
16625
  lucide-react/dist/esm/icons/expand.js:
15970
16626
  lucide-react/dist/esm/icons/external-link.js:
16627
+ lucide-react/dist/esm/icons/eye.js:
15971
16628
  lucide-react/dist/esm/icons/file-text.js:
15972
16629
  lucide-react/dist/esm/icons/grip-vertical.js:
15973
16630
  lucide-react/dist/esm/icons/hash.js: