@chaibuilder/sdk 1.1.17 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/AddBlocks-57-vroWk.cjs +1 -0
  2. package/dist/AddBlocks-QvCc-oag.js +225 -0
  3. package/dist/BrandingOptions-arKT1zCy.cjs +1 -0
  4. package/dist/{BrandingOptions-zFJ28xmJ.js → BrandingOptions-mZXO7thQ.js} +27 -25
  5. package/dist/{CanvasArea-rYasOU__.js → CanvasArea-59Gm0EZx.js} +581 -598
  6. package/dist/CanvasArea-jRg53jrS.cjs +59 -0
  7. package/dist/CurrentPage-MLObvs0K.cjs +1 -0
  8. package/dist/{CurrentPage-WqtxFry1.js → CurrentPage-YPI5QTjk.js} +17 -14
  9. package/dist/Functions-7jnEwJyw.js +15 -0
  10. package/dist/Functions-N3yhPYKY.cjs +1 -0
  11. package/dist/{Layers-RHEggNXs.js → Layers-no2keK4N.js} +149 -146
  12. package/dist/Layers-x_mWeT_q.cjs +1 -0
  13. package/dist/MODIFIERS-2FeVfZQ9.cjs +1 -0
  14. package/dist/{MODIFIERS-MLfpKQY1.js → MODIFIERS-RiXS5Mn1.js} +7 -13
  15. package/dist/MarkAsGlobalBlock-S2BhHTsK.cjs +1 -0
  16. package/dist/{MarkAsGlobalBlock-uhj0kGZo.js → MarkAsGlobalBlock-SPWd6Flk.js} +9 -7
  17. package/dist/{PagesPanel-SVbLlNL2.js → PagesPanel-Q08uN4X3.js} +12 -9
  18. package/dist/PagesPanel-pOIuFPOA.cjs +1 -0
  19. package/dist/ProjectPanel-4bN_GyNm.cjs +1 -0
  20. package/dist/{ProjectPanel-TsgPqgld.js → ProjectPanel-zzYV9yrV.js} +25 -22
  21. package/dist/{Settings-GNMvG48j.js → Settings-28A7R61i.js} +334 -331
  22. package/dist/Settings-KlTtgu3w.cjs +1 -0
  23. package/dist/{SidePanels-Pmuyt1yi.js → SidePanels--ZK6Iqou.js} +84 -78
  24. package/dist/SidePanels-eJBA_cUu.cjs +1 -0
  25. package/dist/{Topbar-_-1HX-EE.js → Topbar-ks1ckGLz.js} +15 -13
  26. package/dist/Topbar-u5XKdWgQ.cjs +1 -0
  27. package/dist/{UnsplashImages-mqK09h8E.js → UnsplashImages-8vJPuqrF.js} +25 -23
  28. package/dist/UnsplashImages-V8oKEHfi.cjs +1 -0
  29. package/dist/{UploadImages-IDkkRuhx.js → UploadImages-6N6UrjLo.js} +26 -24
  30. package/dist/UploadImages-eHYxwWAp.cjs +1 -0
  31. package/dist/_commonjsHelpers-UyOWmZb0.js +8 -0
  32. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +1 -0
  33. package/dist/{add-page-modal-y0aJIDIB.js → add-page-modal-EHIYTW4T.js} +27 -24
  34. package/dist/add-page-modal-OvNXLGf0.cjs +1 -0
  35. package/dist/{confirm-alert-ea5xpncD.js → confirm-alert-biqvaLT-.js} +9 -7
  36. package/dist/confirm-alert-f3DYO5Hj.cjs +1 -0
  37. package/dist/controls-Dy1qa8Dc.cjs +1 -0
  38. package/dist/controls-XPXGHKht.js +182 -0
  39. package/dist/core.cjs +1 -1
  40. package/dist/core.d.ts +10 -1
  41. package/dist/core.js +60 -57
  42. package/dist/delete-page-modal-U4yiuhx0.cjs +1 -0
  43. package/dist/{delete-page-modal-EJH55JCq.js → delete-page-modal-qZJCk_JH.js} +15 -12
  44. package/dist/email-blocks.cjs +1 -0
  45. package/dist/email-blocks.d.ts +3 -0
  46. package/dist/email-blocks.js +35 -0
  47. package/dist/{form-irY39wvJ.js → form-Moz_psOw.js} +16 -16
  48. package/dist/form-lJhy9DEC.cjs +1 -0
  49. package/dist/functions-Ox_svtKm.cjs +1 -0
  50. package/dist/functions-xIebp8Aw.js +23 -0
  51. package/dist/html-to-json-dfALTAdG.cjs +1 -0
  52. package/dist/{html-to-json-Y5M0N8PH.js → html-to-json-xKBERAI1.js} +48 -48
  53. package/dist/index-IIJ_o44s.cjs +1 -0
  54. package/dist/{index-EYAc-AmR.js → index-QEchoZ98.js} +8 -8
  55. package/dist/{index-0OqmBgqo.js → index-_OgCuSUz.js} +528 -533
  56. package/dist/{index-rrw2zpXv.cjs → index-hMoPNZVn.cjs} +2 -2
  57. package/dist/{jsx-runtime-NV737rRe.js → jsx-runtime-WbnYoNE9.js} +1 -1
  58. package/dist/{jsx-runtime-WUGKV8jN.cjs → jsx-runtime-Z_BpKhVy.cjs} +7 -7
  59. package/dist/lib.cjs +2 -2
  60. package/dist/lib.d.ts +1 -1
  61. package/dist/lib.js +47 -44
  62. package/dist/page-viewer-WhM1FSU0.cjs +1 -0
  63. package/dist/{page-viewer-aMSKcj1Y.js → page-viewer-zFLkUu2I.js} +17 -14
  64. package/dist/{project-general-setting-9ErNnYBT.js → project-general-setting-MWGOOurD.js} +16 -13
  65. package/dist/project-general-setting-y8daY7V9.cjs +1 -0
  66. package/dist/project-seo-setting-9JGBPzcA.cjs +1 -0
  67. package/dist/{project-seo-setting-EhqUcTKy.js → project-seo-setting-dXclexQW.js} +15 -13
  68. package/dist/render.cjs +1 -1
  69. package/dist/render.d.ts +1 -1
  70. package/dist/render.js +50 -49
  71. package/dist/server.cjs +1 -1
  72. package/dist/server.d.ts +1 -1
  73. package/dist/server.js +11 -11
  74. package/dist/single-page-detail--xPv74bX.cjs +1 -0
  75. package/dist/{single-page-detail-nJpXW24r.js → single-page-detail-C48IPzbd.js} +77 -74
  76. package/dist/studio.cjs +1 -1
  77. package/dist/studio.js +11 -8
  78. package/dist/ui.cjs +1 -1
  79. package/dist/ui.d.ts +3 -3
  80. package/dist/ui.js +144 -142
  81. package/dist/useAddBlockByDrop-_nd8yZBa.cjs +1 -0
  82. package/dist/useAddBlockByDrop-uPXvrg4G.js +20 -0
  83. package/dist/{utils-XsPKXMVo.js → utils-AvyFzbPC.js} +26 -35
  84. package/dist/utils-PTxFk6qT.cjs +1 -0
  85. package/dist/web-blocks.cjs +9 -0
  86. package/dist/web-blocks.d.ts +3 -0
  87. package/dist/web-blocks.js +1033 -0
  88. package/package.json +5 -2
  89. package/dist/AddBlocks-1DrS62uN.js +0 -222
  90. package/dist/AddBlocks-jqRRefXj.cjs +0 -1
  91. package/dist/BrandingOptions-TRVyCvVq.cjs +0 -1
  92. package/dist/CanvasArea-bBJnaL94.cjs +0 -59
  93. package/dist/CurrentPage-pdXAVj0k.cjs +0 -1
  94. package/dist/Layers-KFHk3Vm2.cjs +0 -1
  95. package/dist/MODIFIERS-WFzDQfiT.cjs +0 -1
  96. package/dist/MarkAsGlobalBlock-CDmEHNx7.cjs +0 -1
  97. package/dist/PagesPanel-N47gENpI.cjs +0 -1
  98. package/dist/ProjectPanel-3ectWanq.cjs +0 -1
  99. package/dist/Settings-PJQzllud.cjs +0 -1
  100. package/dist/SidePanels-zLLaId5V.cjs +0 -1
  101. package/dist/Topbar-gQxbcPtG.cjs +0 -1
  102. package/dist/UnsplashImages-PNp5fYCc.cjs +0 -1
  103. package/dist/UploadImages-BoSSsLtD.cjs +0 -1
  104. package/dist/add-page-modal-p1gverbp.cjs +0 -1
  105. package/dist/confirm-alert-dHRDZrA1.cjs +0 -1
  106. package/dist/controls-QnyBNkXG.cjs +0 -36
  107. package/dist/controls-kEuiMMDf.js +0 -4600
  108. package/dist/delete-page-modal-Diob8vQd.cjs +0 -1
  109. package/dist/form-6qGAOYI3.cjs +0 -1
  110. package/dist/functions-86L6n983.js +0 -23
  111. package/dist/functions-Jr7gX_RX.cjs +0 -1
  112. package/dist/html-to-json-aAZkA0f5.cjs +0 -1
  113. package/dist/index-d55M5MRz.cjs +0 -1
  114. package/dist/lodash-2us0VT8I.cjs +0 -36
  115. package/dist/lodash-3gkdNK5u.js +0 -4538
  116. package/dist/page-viewer-8X9fhU4m.cjs +0 -1
  117. package/dist/project-general-setting-paENhc-v.cjs +0 -1
  118. package/dist/project-seo-setting-N0OnBCvh.cjs +0 -1
  119. package/dist/single-page-detail-7C3hL6lT.cjs +0 -1
  120. package/dist/useAddBlockByDrop-5QW86HjG.js +0 -20
  121. package/dist/useAddBlockByDrop-Ckzuvu-s.cjs +0 -1
  122. package/dist/utils-37UXq2O5.cjs +0 -1
package/dist/ui.js CHANGED
@@ -1,11 +1,12 @@
1
- import { bh as J, bk as K, bi as j, bj as y, bw as z, bG as N, D as O, ap as Q, K as U, F as W, I as X, J as Y, G as Z, H as _, E as $, bx as aa, bH as ea, B as oa, bq as ta, bt as ra, bs as sa, bv as na, br as ia, bJ as ba, b3 as pa, ck as ua, b6 as la, b7 as ma, b4 as ca, b8 as da, b5 as Ca, cm as ga, cl as Ma, bB as Sa, cn as Da, bA as Ta, cs as xa, bz as Aa, cp as Ia, ct as ha, cx as wa, co as Pa, cq as Fa, cr as Ga, cu as ka, cv as Ha, cw as La, bC as va, ak as Ra, al as Ba, ao as Ea, b9 as Va, am as fa, an as qa, ba as Ja, aN as Ka, aS as ja, aP as ya, cb as za, c8 as Na, aQ as Oa, cc as Qa, cg as Ua, c9 as Wa, aR as Xa, ca as Ya, cd as Za, ce as _a, cf as $a, aO as ae, aK as ee, aM as oe, aL as te, be as re, bf as se, bl as ne, aI as ie, bg as be, bL as pe, bS as ue, bO as le, bY as me, bP as ce, bR as de, bM as Ce, bV as ge, bT as Me, bU as Se, bQ as De, b_ as Te, bZ as xe, bW as Ae, bX as Ie, bN as he, b0 as we, b2 as Pe, b1 as Fe, bd as Ge, bo as ke, bK as He, aq as Le, at as ve, aB as Re, au as Be, aC as Ee, b$ as Ve, ar as fe, as as qe, aH as Je, c0 as Ke, c2 as je, c3 as ye, c7 as ze, c5 as Ne, c4 as Oe, c6 as Qe, c1 as Ue, S as We, aJ as Xe, ax as Ye, aA as Ze, ay as _e, az as $e, bu as ao, C as eo, aF as oo, aD as to, aG as ro, bm as so, T as no, aE as io, bI as bo, bF as po, ch as uo, cj as lo, bE as mo, ci as co } from "./index-0OqmBgqo.js";
2
- import "./jsx-runtime-NV737rRe.js";
3
- import "./MODIFIERS-MLfpKQY1.js";
1
+ import { bg as K, bj as j, bh as z, bi as N, bu as O, bE as Q, D as $, ap as U, K as W, F as X, I as Y, J as Z, G as _, H as aa, E as ea, bv as oa, bF as ta, B as ra, bo as sa, br as na, bq as ia, bt as ba, bp as pa, bH as ua, b2 as ma, ci as la, b5 as ca, b6 as da, b3 as Ca, b7 as ga, b4 as Ma, ck as Sa, cj as Da, bz as Ta, cl as xa, by as Aa, cq as Ia, bx as ha, cn as wa, cr as Pa, cv as Fa, cm as Ga, co as ka, cp as Ha, cs as La, ct as va, cu as Ra, bA as Ba, ak as Ea, al as Va, ao as fa, b8 as qa, am as ya, an as Ja, b9 as Ka, aM as ja, aR as za, aO as Na, c9 as Oa, c6 as Qa, aP as $a, ca as Ua, ce as Wa, c7 as Xa, aQ as Ya, c8 as Za, cb as _a, cc as ae, cd as ee, aN as oe, aJ as te, aL as re, aK as se, bd as ne, be as ie, bk as be, aH as pe, bf as ue, bJ as me, bQ as le, bM as ce, bW as de, bN as Ce, bP as ge, bK as Me, bT as Se, bR as De, bS as Te, bO as xe, bY as Ae, bX as Ie, bU as he, bV as we, bL as Pe, a$ as Fe, b1 as Ge, b0 as ke, bc as He, bn as Le, bI as ve, aq as Re, at as Be, aA as Ee, au as Ve, aB as fe, bZ as qe, ar as ye, as as Je, aG as Ke, b_ as je, c0 as ze, c1 as Ne, c5 as Oe, c3 as Qe, c2 as $e, c4 as Ue, b$ as We, S as Xe, aI as Ye, aw as Ze, az as _e, ax as ao, ay as eo, bs as oo, C as to, aE as ro, aC as so, aF as no, bl as io, T as bo, aD as po, bG as uo, bD as mo, cf as lo, ch as co, bC as Co, cg as go } from "./index-_OgCuSUz.js";
2
+ import "./jsx-runtime-WbnYoNE9.js";
3
+ import "./_commonjsHelpers-UyOWmZb0.js";
4
4
  import "react";
5
5
  import "@radix-ui/react-toggle";
6
6
  import "class-variance-authority";
7
- import "./utils-XsPKXMVo.js";
8
- import "./lodash-3gkdNK5u.js";
7
+ import "./utils-AvyFzbPC.js";
8
+ import "lodash-es";
9
+ import "./MODIFIERS-RiXS5Mn1.js";
9
10
  import "clsx";
10
11
  import "tailwind-merge";
11
12
  import "@radix-ui/react-switch";
@@ -32,146 +33,147 @@ import "react-dom";
32
33
  import "react-quill";
33
34
  import "jotai";
34
35
  import "flat-to-nested";
36
+ import "./Functions-7jnEwJyw.js";
35
37
  import "redux-undo";
36
38
  import "@chaibuilder/runtime";
37
39
  import "@react-hookz/web";
38
40
  import "react-i18next";
39
41
  export {
40
- J as Accordion,
41
- K as AccordionContent,
42
- j as AccordionItem,
43
- y as AccordionTrigger,
44
- z as Alert,
45
- N as AlertDescription,
46
- O as AlertDialog,
47
- Q as AlertDialogAction,
48
- U as AlertDialogCancel,
49
- W as AlertDialogContent,
50
- X as AlertDialogDescription,
51
- Y as AlertDialogFooter,
52
- Z as AlertDialogHeader,
53
- _ as AlertDialogTitle,
54
- $ as AlertDialogTrigger,
55
- aa as AlertTitle,
56
- ea as Badge,
57
- oa as Button,
58
- ta as Card,
59
- ra as CardContent,
60
- sa as CardDescription,
61
- na as CardFooter,
62
- ia as CardHeader,
63
- ba as CardTitle,
64
- pa as Command,
65
- ua as CommandDialog,
66
- la as CommandEmpty,
67
- ma as CommandGroup,
68
- ca as CommandInput,
69
- da as CommandItem,
70
- Ca as CommandList,
71
- ga as CommandSeparator,
72
- Ma as CommandShortcut,
73
- Sa as ContextMenu,
74
- Da as ContextMenuCheckboxItem,
75
- Ta as ContextMenuContent,
76
- xa as ContextMenuGroup,
77
- Aa as ContextMenuItem,
78
- Ia as ContextMenuLabel,
79
- ha as ContextMenuPortal,
80
- wa as ContextMenuRadioGroup,
81
- Pa as ContextMenuRadioItem,
82
- Fa as ContextMenuSeparator,
83
- Ga as ContextMenuShortcut,
84
- ka as ContextMenuSub,
85
- Ha as ContextMenuSubContent,
86
- La as ContextMenuSubTrigger,
87
- va as ContextMenuTrigger,
88
- Ra as Dialog,
89
- Ba as DialogContent,
90
- Ea as DialogDescription,
91
- Va as DialogFooter,
92
- fa as DialogHeader,
93
- qa as DialogTitle,
94
- Ja as DialogTrigger,
95
- Ka as DropdownMenu,
96
- ja as DropdownMenuCheckboxItem,
97
- ya as DropdownMenuContent,
98
- za as DropdownMenuGroup,
99
- Na as DropdownMenuItem,
100
- Oa as DropdownMenuLabel,
101
- Qa as DropdownMenuPortal,
102
- Ua as DropdownMenuRadioGroup,
103
- Wa as DropdownMenuRadioItem,
104
- Xa as DropdownMenuSeparator,
105
- Ya as DropdownMenuShortcut,
106
- Za as DropdownMenuSub,
107
- _a as DropdownMenuSubContent,
108
- $a as DropdownMenuSubTrigger,
109
- ae as DropdownMenuTrigger,
110
- ee as HoverCard,
111
- oe as HoverCardContent,
112
- te as HoverCardTrigger,
113
- re as IconPickerField,
114
- se as ImagePickerField,
115
- ne as Input,
116
- ie as Label,
117
- be as LinkField,
118
- pe as Menubar,
119
- ue as MenubarCheckboxItem,
120
- le as MenubarContent,
121
- me as MenubarGroup,
122
- ce as MenubarItem,
123
- de as MenubarLabel,
124
- Ce as MenubarMenu,
125
- ge as MenubarPortal,
126
- Me as MenubarRadioGroup,
127
- Se as MenubarRadioItem,
128
- De as MenubarSeparator,
129
- Te as MenubarShortcut,
130
- xe as MenubarSub,
131
- Ae as MenubarSubContent,
132
- Ie as MenubarSubTrigger,
133
- he as MenubarTrigger,
134
- we as Popover,
135
- Pe as PopoverContent,
136
- Fe as PopoverTrigger,
137
- Ge as RTEField,
138
- ke as ScrollArea,
139
- He as ScrollBar,
140
- Le as Select,
141
- ve as SelectContent,
142
- Re as SelectGroup,
143
- Be as SelectItem,
144
- Ee as SelectLabel,
145
- Ve as SelectSeparator,
146
- fe as SelectTrigger,
147
- qe as SelectValue,
148
- Je as Separator,
149
- Ke as Sheet,
150
- je as SheetClose,
151
- ye as SheetContent,
152
- ze as SheetDescription,
153
- Ne as SheetFooter,
154
- Oe as SheetHeader,
155
- Qe as SheetTitle,
156
- Ue as SheetTrigger,
157
- We as Skeleton,
158
- Xe as Switch,
159
- Ye as Tabs,
160
- Ze as TabsContent,
161
- _e as TabsList,
162
- $e as TabsTrigger,
163
- ao as Textarea,
164
- eo as Toaster,
165
- oo as Toggle,
166
- to as Tooltip,
167
- ro as TooltipContent,
168
- so as TooltipPortal,
169
- no as TooltipProvider,
170
- io as TooltipTrigger,
171
- bo as badgeVariants,
172
- po as buttonVariants,
173
- uo as reducer,
174
- lo as toast,
175
- mo as toggleVariants,
176
- co as useToast
42
+ K as Accordion,
43
+ j as AccordionContent,
44
+ z as AccordionItem,
45
+ N as AccordionTrigger,
46
+ O as Alert,
47
+ Q as AlertDescription,
48
+ $ as AlertDialog,
49
+ U as AlertDialogAction,
50
+ W as AlertDialogCancel,
51
+ X as AlertDialogContent,
52
+ Y as AlertDialogDescription,
53
+ Z as AlertDialogFooter,
54
+ _ as AlertDialogHeader,
55
+ aa as AlertDialogTitle,
56
+ ea as AlertDialogTrigger,
57
+ oa as AlertTitle,
58
+ ta as Badge,
59
+ ra as Button,
60
+ sa as Card,
61
+ na as CardContent,
62
+ ia as CardDescription,
63
+ ba as CardFooter,
64
+ pa as CardHeader,
65
+ ua as CardTitle,
66
+ ma as Command,
67
+ la as CommandDialog,
68
+ ca as CommandEmpty,
69
+ da as CommandGroup,
70
+ Ca as CommandInput,
71
+ ga as CommandItem,
72
+ Ma as CommandList,
73
+ Sa as CommandSeparator,
74
+ Da as CommandShortcut,
75
+ Ta as ContextMenu,
76
+ xa as ContextMenuCheckboxItem,
77
+ Aa as ContextMenuContent,
78
+ Ia as ContextMenuGroup,
79
+ ha as ContextMenuItem,
80
+ wa as ContextMenuLabel,
81
+ Pa as ContextMenuPortal,
82
+ Fa as ContextMenuRadioGroup,
83
+ Ga as ContextMenuRadioItem,
84
+ ka as ContextMenuSeparator,
85
+ Ha as ContextMenuShortcut,
86
+ La as ContextMenuSub,
87
+ va as ContextMenuSubContent,
88
+ Ra as ContextMenuSubTrigger,
89
+ Ba as ContextMenuTrigger,
90
+ Ea as Dialog,
91
+ Va as DialogContent,
92
+ fa as DialogDescription,
93
+ qa as DialogFooter,
94
+ ya as DialogHeader,
95
+ Ja as DialogTitle,
96
+ Ka as DialogTrigger,
97
+ ja as DropdownMenu,
98
+ za as DropdownMenuCheckboxItem,
99
+ Na as DropdownMenuContent,
100
+ Oa as DropdownMenuGroup,
101
+ Qa as DropdownMenuItem,
102
+ $a as DropdownMenuLabel,
103
+ Ua as DropdownMenuPortal,
104
+ Wa as DropdownMenuRadioGroup,
105
+ Xa as DropdownMenuRadioItem,
106
+ Ya as DropdownMenuSeparator,
107
+ Za as DropdownMenuShortcut,
108
+ _a as DropdownMenuSub,
109
+ ae as DropdownMenuSubContent,
110
+ ee as DropdownMenuSubTrigger,
111
+ oe as DropdownMenuTrigger,
112
+ te as HoverCard,
113
+ re as HoverCardContent,
114
+ se as HoverCardTrigger,
115
+ ne as IconPickerField,
116
+ ie as ImagePickerField,
117
+ be as Input,
118
+ pe as Label,
119
+ ue as LinkField,
120
+ me as Menubar,
121
+ le as MenubarCheckboxItem,
122
+ ce as MenubarContent,
123
+ de as MenubarGroup,
124
+ Ce as MenubarItem,
125
+ ge as MenubarLabel,
126
+ Me as MenubarMenu,
127
+ Se as MenubarPortal,
128
+ De as MenubarRadioGroup,
129
+ Te as MenubarRadioItem,
130
+ xe as MenubarSeparator,
131
+ Ae as MenubarShortcut,
132
+ Ie as MenubarSub,
133
+ he as MenubarSubContent,
134
+ we as MenubarSubTrigger,
135
+ Pe as MenubarTrigger,
136
+ Fe as Popover,
137
+ Ge as PopoverContent,
138
+ ke as PopoverTrigger,
139
+ He as RTEField,
140
+ Le as ScrollArea,
141
+ ve as ScrollBar,
142
+ Re as Select,
143
+ Be as SelectContent,
144
+ Ee as SelectGroup,
145
+ Ve as SelectItem,
146
+ fe as SelectLabel,
147
+ qe as SelectSeparator,
148
+ ye as SelectTrigger,
149
+ Je as SelectValue,
150
+ Ke as Separator,
151
+ je as Sheet,
152
+ ze as SheetClose,
153
+ Ne as SheetContent,
154
+ Oe as SheetDescription,
155
+ Qe as SheetFooter,
156
+ $e as SheetHeader,
157
+ Ue as SheetTitle,
158
+ We as SheetTrigger,
159
+ Xe as Skeleton,
160
+ Ye as Switch,
161
+ Ze as Tabs,
162
+ _e as TabsContent,
163
+ ao as TabsList,
164
+ eo as TabsTrigger,
165
+ oo as Textarea,
166
+ to as Toaster,
167
+ ro as Toggle,
168
+ so as Tooltip,
169
+ no as TooltipContent,
170
+ io as TooltipPortal,
171
+ bo as TooltipProvider,
172
+ po as TooltipTrigger,
173
+ uo as badgeVariants,
174
+ mo as buttonVariants,
175
+ lo as reducer,
176
+ co as toast,
177
+ Co as toggleVariants,
178
+ go as useToast
177
179
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react"),u=require("lodash-es"),t=require("./index-IIJ_o44s.cjs"),a=()=>{const{addCoreBlock:r}=t.useAddBlock(),l=t.useBuilderProp("getExternalPredefinedBlock");return n.useCallback(async s=>{const{block:o,dropTargetId:e,relativeIndex:c}=s;if(u.has(o,"format")){const d=await l(o);return r({blocks:d},e===0?null:e,c)}return r(o,e===0?null:e,c)},[r])};exports.useAddBlockByDrop=a;
@@ -0,0 +1,20 @@
1
+ import { useCallback as n } from "react";
2
+ import { has as s } from "lodash-es";
3
+ import { O as a, i as u } from "./index-_OgCuSUz.js";
4
+ const B = () => {
5
+ const { addCoreBlock: r } = a(), l = u("getExternalPredefinedBlock");
6
+ return n(
7
+ async (c) => {
8
+ const { block: e, dropTargetId: o, relativeIndex: t } = c;
9
+ if (s(e, "format")) {
10
+ const d = await l(e);
11
+ return r({ blocks: d }, o === 0 ? null : o, t);
12
+ }
13
+ return r(e, o === 0 ? null : o, t);
14
+ },
15
+ [r]
16
+ );
17
+ };
18
+ export {
19
+ B as u
20
+ };
@@ -1,14 +1,8 @@
1
- import { a as g, e as E, E as o, d as r, F as b, G as n, n as h, g as x } from "./lodash-3gkdNK5u.js";
2
- import { clsx as f } from "clsx";
3
- import { twMerge as m } from "tailwind-merge";
4
- import { M as y } from "./MODIFIERS-MLfpKQY1.js";
5
- function Y(e = 6, t = "abcdefghijklmnopqrstuvwxyzABCD") {
6
- let a = "";
7
- for (let l = e; l > 0; --l)
8
- a += t[Math.floor(Math.random() * t.length)];
9
- return a;
10
- }
11
- const D = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >= 768 ? "MD" : e >= 640 ? "SM" : "XS", I = (...e) => m(f(e)), d = [
1
+ import { range as o, map as r, values as b, flattenDeep as l, flatten as f, isEmpty as g, get as x, startsWith as m } from "lodash-es";
2
+ import { M as E } from "./MODIFIERS-RiXS5Mn1.js";
3
+ import { clsx as h } from "clsx";
4
+ import { twMerge as y } from "tailwind-merge";
5
+ const d = [
12
6
  0,
13
7
  1,
14
8
  2,
@@ -1010,18 +1004,18 @@ const D = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
1010
1004
  "fuchsia",
1011
1005
  "pink",
1012
1006
  "rose"
1013
- ], u = ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"], i = r(b(w), (e) => e), v = n([
1014
- ...r($, (e) => h(r(i, (t) => `${t}-${e}`))),
1007
+ ], u = ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"], i = r(b(w), (e) => e), v = l([
1008
+ ...r($, (e) => f(r(i, (t) => `${t}-${e}`))),
1015
1009
  ...r(
1016
1010
  k,
1017
- (e) => n(r(i, (t) => n(r(u, (a) => `${t}-${e}-${a}`))))
1011
+ (e) => l(r(i, (t) => l(r(u, (a) => `${t}-${e}-${a}`))))
1018
1012
  ),
1019
1013
  ...r(
1020
1014
  S,
1021
- (e) => n(r(i, (t) => n(r(u, (a) => `${t}-${e}-${a}`))))
1015
+ (e) => l(r(i, (t) => l(r(u, (a) => `${t}-${e}-${a}`))))
1022
1016
  )
1023
- ]), z = r(
1024
- n(
1017
+ ]), B = r(
1018
+ l(
1025
1019
  b(p).map((e) => e.classes).concat(v)
1026
1020
  ),
1027
1021
  (e) => ({
@@ -1034,11 +1028,11 @@ function C(e) {
1034
1028
  const t = e.match(/sm:|md:|lg:|xl:|2xl:/g);
1035
1029
  return x(t, 0, "xs").replace(":", "");
1036
1030
  }
1037
- function j(e) {
1038
- const t = r(y, (l) => `${l}:`).join("|"), a = new RegExp(t, "g");
1031
+ function R(e) {
1032
+ const t = r(E, (n) => `${n}:`).join("|"), a = new RegExp(t, "g");
1039
1033
  return x(a.exec(e.trim()), 0, "").replace(":", "");
1040
1034
  }
1041
- function R(e) {
1035
+ function j(e) {
1042
1036
  return e.trim().split(":").pop() || "";
1043
1037
  }
1044
1038
  const c = {};
@@ -1049,36 +1043,33 @@ function W(e) {
1049
1043
  return c[e];
1050
1044
  let t = "";
1051
1045
  for (const a in p) {
1052
- const l = x(p, `${a}.regExp`, "");
1053
- if (new RegExp(l, "g").test(e)) {
1046
+ const n = x(p, `${a}.regExp`, "");
1047
+ if (new RegExp(n, "g").test(e)) {
1054
1048
  t = a, c[e] = t;
1055
1049
  break;
1056
1050
  }
1057
1051
  }
1058
1052
  return t;
1059
1053
  }
1060
- function T(e) {
1054
+ function z(e) {
1061
1055
  return g(e) ? null : {
1062
- dark: E(e, "dark:"),
1056
+ dark: m(e, "dark:"),
1063
1057
  mq: C(e),
1064
- mod: j(e),
1065
- cls: R(e),
1058
+ mod: R(e),
1059
+ cls: j(e),
1066
1060
  fullCls: e,
1067
1061
  property: W(e)
1068
1062
  };
1069
1063
  }
1070
- function F(e) {
1064
+ function I(e) {
1071
1065
  let t = "";
1072
1066
  return e.dark && (t += "dark:"), e.mq.toLowerCase() !== "xs" && (t += `${e.mq}:`), e.mod && (t += `${e.mod}:`), t += e.cls, t;
1073
1067
  }
1074
- const M = (...e) => m(f(e));
1068
+ const T = (...e) => y(h(e));
1075
1069
  export {
1076
- z as A,
1070
+ B as A,
1077
1071
  p as C,
1078
- D as a,
1079
- M as b,
1080
- T as c,
1081
- I as d,
1082
- F as e,
1083
- Y as g
1072
+ T as a,
1073
+ z as c,
1074
+ I as g
1084
1075
  };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("lodash-es"),c=require("./MODIFIERS-2FeVfZQ9.cjs"),g=require("clsx"),x=require("tailwind-merge"),n=[0,1,2,3,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],s={columns:[...r.range(1,13),"auto","3xs","2xs","xs","sm","md","lg","xl",...r.map(r.range(2,8),e=>`${e}xl`)],breakAfter:["auto","avoid","all","avoid-page","page","left","right","column"],breakInside:["auto","avoid","avoid-page","avoid-column"],display:["block","flex","grid","inline-block","inline","hidden"],objectFit:["contain","cover","fill","none","scale-down"],objectPosition:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],overflow:["auto","hidden","clip","visible","scroll"],overscroll:["auto","contain","none"],trbl:[0,"px","0.5",1,1.5,2,2.5,3,3.5,...r.range(4,13),14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96,"auto","1/2","1/3","2/3","1/4","2/4","3/4","full"],flexBasis:[...n,"auto","px","0.5","1.5","2.5","3.5","1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","1/12","2/12","3/12","4/12","5/12","6/12","7/12","8/12","9/12","10/12","11/12","full"],padding:[...n,"px","0.5","1.5","2.5","3.5"],margin:["auto",...n,"px","0.5","1.5","2.5","3.5"],scale:[0,50,75,90,95,100,105,110,125,150],origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],blendEffect:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],borderWidth:[0,2,4,8],borderRadius:["global","none","sm","md","lg","xl","2xl","3xl","full"],indent:[0,"px","0.5",1,1.5,2,2.5,3,3.5,...r.range(4,13),14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],maxHeight:[0,"px","0.5",1,1.5,2,2.5,3,3.5,...r.range(4,13),14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96,"full","screen","min","max","fit"],space:[0,"px","0.5",1,1.5,2,2.5,3,3.5,...r.range(4,13),14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96,"px","reverse"],width:["0","px","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96","auto","1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","1/12","2/12","3/12","4/12","5/12","6/12","7/12","8/12","9/12","10/12","11/12"],maxWidth:["0","none","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","full","min","max","fit","prose","screen-sm","screen-md","screen-lg","screen-xl","screen-2xl"],height:["0","px","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96","auto","1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","full","screen","min","max","fit"]},o={textColor:{classes:[],regExp:"text-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},aspectRatio:{classes:["aspect-auto","aspect-square","aspect-video"],regExp:"aspect-(auto|square|video)"},container:{classes:["container"],regExp:"container"},columns:{classes:r.map(s.columns,e=>`columns-${e}`),regExp:"columns-(auto|[0-9]xl|[0-9]xs|xs|sm|md|lg|xl|\\d+)"},breakAfter:{classes:r.map(s.breakAfter,e=>`break-after-${e}`),regExp:"break-after-\\S+"},breakBefore:{classes:r.map(s.breakAfter,e=>`break-before-${e}`),regExp:"break-before-\\S+"},breakInside:{classes:r.map(s.breakInside,e=>`break-inside-${e}`),regExp:"break-inside-\\S+"},boxDecoration:{classes:["box-decoration-clone","box-decoration-slice"],regExp:"box-decoration-\\S+"},boxSizing:{classes:["box-border","box-content"],regExp:"box-(border|content)"},flexDirection:{classes:["flex-row","flex-row-reverse","flex-col","flex-col-reverse"],regExp:"flex-(row|row-reverse|col|col-reverse)"},flexWrap:{classes:["flex-wrap","flex-wrap-reverse","flex-nowrap"],regExp:"flex-(wrap|wrap-reverse|nowrap)"},flexGrowShrink:{classes:["flex-1","flex-auto","flex-initial","flex-none"],regExp:"flex-1|flex-auto|flex-initial|flex-none"},gridColumns:{classes:r.map([...r.range(0,13),"none"],e=>`grid-cols-${e}`),regExp:"grid-cols-(\\d+|none)"},gridFlow:{classes:["grid-flow-row","grid-flow-col","grid-flow-row-dense","grid-flow-col-dense"],regExp:"grid-flow-(row|col|row-dense|col-dense)"},outlineStyle:{classes:r.map(["none","dashed","dotted","double","hidden"],e=>`outline-${e}`),regExp:"outline-(none|dashed|dotted|double|hidden)"},borderStyle:{classes:r.map(["solid","dashed","dotted","double","hidden","none"],e=>`border-${e}`),regExp:"border-(solid|dashed|dotted|double|hidden|none)"},overflow:{classes:r.map(s.overflow,e=>`overflow-${e}`),regExp:`overflow-(${s.overflow.join("|")})`},overflowX:{classes:r.map(s.overflow,e=>`overflow-x-${e}`),regExp:`overflow-x-(${s.overflow.join("|")})`},overflowY:{classes:r.map(s.overflow,e=>`overflow-y-${e}`),regExp:`overflow-y-(${s.overflow.join("|")})`},gridRows:{classes:r.map([1,2,3,4,5,6,"none"],e=>`grid-rows-${e}`),regExp:"grid-rows-(\\d|none)"},display:{classes:r.map(s.display,e=>e.toString()),regExp:`(${s.display.join("|")})`},float:{classes:["float-right","float-left","float-none"],regExp:"float-\\S+"},clear:{classes:["clear-right","clear-left","clear-none","clear-both"],regExp:"clear-\\S+"},isolation:{classes:["isolate","isolation-auto"],regExp:"isolate|isolation-auto"},objectFit:{classes:r.map(s.objectFit,e=>`object-${e}`),regExp:"object-(contain|cover|fill|none|scale-down)"},objectPosition:{classes:r.map(s.objectPosition,e=>`object-${e}`),regExp:`object-(${s.objectPosition.join("|")})`},overscroll:{classes:r.map(s.overscroll,e=>`overscroll-${e}`),regExp:`overscroll-(${s.overscroll.join("|")})`},overscrollX:{classes:r.map(s.overscroll,e=>`overscroll-x-${e}`),regExp:`overscroll-x-(${s.overscroll.join("|")})`},overscrollY:{classes:r.map(s.overscroll,e=>`overscroll-y-${e}`),regExp:`overscroll-y-(${s.overscroll.join("|")})`},inset:{classes:r.map(s.trbl,e=>`inset-${e}`),regExp:"-?inset-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},insetX:{classes:r.map(s.trbl,e=>`inset-x-${e}`),regExp:"-?inset-x-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},insetY:{classes:r.map(s.trbl,e=>`inset-y-${e}`),regExp:"-?inset-y-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},top:{classes:r.map(s.trbl,e=>`top-${e}`),regExp:"-?top-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},topX:{classes:r.map(s.trbl,e=>`top-x-${e}`),regExp:"-?top-x-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},topY:{classes:r.map(s.trbl,e=>`top-y-${e}`),regExp:"-?top-y-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},right:{classes:r.map(s.trbl,e=>`right-${e}`),regExp:"-?right-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},rightX:{classes:r.map(s.trbl,e=>`right-x-${e}`),regExp:"-?right-x-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},rightY:{classes:r.map(s.trbl,e=>`right-y-${e}`),regExp:"-?right-y-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},bottom:{classes:r.map(s.trbl,e=>`bottom-${e}`),regExp:"-?bottom-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},bottomX:{classes:r.map(s.trbl,e=>`bottom-x-${e}`),regExp:"-?bottom-x-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},bottomY:{classes:r.map(s.trbl,e=>`bottom-y-${e}`),regExp:"-?bottom-y-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},left:{classes:r.map(s.trbl,e=>`left-${e}`),regExp:"-?left-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},leftX:{classes:r.map(s.trbl,e=>`left-x-${e}`),regExp:"-?left-x-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},leftY:{classes:r.map(s.trbl,e=>`left-y-${e}`),regExp:"-?left-y-(px|\\d\\/\\d|\\d\\.\\d|\\d+|full|auto|\\[.*\\])"},visibility:{classes:["visible","invisible"],regExp:"invisible|visible"},zIndex:{classes:r.map(["0",10,20,30,40,50,"auto"],e=>`z-${e}`),regExp:"-?z-(\\d+|auto|\\[.*\\])"},flexBasis:{classes:r.map(s.flexBasis,e=>`basis-${e}`),regExp:"basis-(\\d+|\\S+)"},flexGrow:{classes:["grow","grow-0"],regExp:"grow(-0)?"},flexShrink:{classes:["shrink","shrink-0"],regExp:"shrink(-0)?"},gridColSpan:{classes:["col-auto",...r.map(r.range(1,13),e=>`col-span-${e}`),"col-span-full"],regExp:"col-(auto|span-(\\d+|full))"},gridColStart:{classes:[...r.map(r.range(1,14),e=>`col-start-${e}`),"col-start-auto"],regExp:"col-start-(\\d+|auto)"},gridColEnd:{classes:[...r.map(r.range(1,14),e=>`col-end-${e}`),"col-end-auto"],regExp:"col-end-(\\d+|auto)"},gridRowSpan:{classes:["row-auto",...r.map(r.range(1,7),e=>`row-span-${e}`),"row-span-full"],regExp:"row-(auto|span-(\\d+|full))"},gridRowStart:{classes:[...r.map(r.range(1,8),e=>`row-start-${e}`),"row-start-auto"],regExp:"row-start-(\\d+|auto)"},gridRowEnd:{classes:[...r.map(r.range(1,8),e=>`row-end-${e}`),"row-end-auto"],regExp:"row-end-(\\d+|auto)"},gridAutoColumns:{classes:["auto-cols-auto","auto-cols-min","auto-cols-max","auto-cols-fr"],regExp:"auto-cols-(auto|min|max|fr)"},gridAutoRows:{classes:["auto-rows-auto","auto-rows-min","auto-rows-max","auto-rows-fr"],regExp:"auto-rows-(auto|min|max|fr)"},gap:{classes:r.map(s.indent,e=>`gap-${e}`),regExp:"gap-(px|\\d.\\d|\\d|\\[.*\\])"},gapX:{classes:r.map(s.indent,e=>`gap-x-${e}`),regExp:"gap-x-(px|\\d.\\d|\\d|\\[.*\\])"},gapY:{classes:r.map(s.indent,e=>`gap-y-${e}`),regExp:"gap-y-(px|\\d.\\d|\\d|\\[.*\\])"},justifyContent:{classes:["justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly"],regExp:"justify-(start|end|center|between|around|evenly)"},justifyItems:{classes:["justify-items-start","justify-items-end","justify-items-center","justify-items-stretch"],regExp:"justify-items-(start|end|center|stretch)"},justifySelf:{classes:["justify-self-auto","justify-self-start","justify-self-end","justify-self-center","justify-self-stretch"],regExp:"justify-self-(auto|start|end|center|stretch)"},placeContent:{classes:["place-content-center","place-content-start","place-content-end","place-content-between","place-content-around","place-content-evenly","place-content-stretch"],regExp:"place-content-(center|start|end|between|around|evenly|stretch)"},placeItems:{classes:["place-items-start","place-items-end","place-items-center","place-items-stretch"],regExp:"place-items-(start|end|center|stretch)"},placeSelf:{classes:["place-self-auto","place-self-start","place-self-end","place-self-center","place-self-stretch"],regExp:"place-self-(auto|start|end|center|stretch)"},alignContent:{classes:["content-center","content-start","content-end","content-between","content-around","content-evenly"],regExp:"content-(center|start|end|between|around|evenly)"},alignItems:{classes:["items-start","items-end","items-center","items-baseline","items-stretch"],regExp:"items-(start|end|center|baseline|stretch)"},alignSelf:{classes:["self-auto","self-start","self-end","self-center","self-stretch","self-baseline"],regExp:"self-(auto|start|end|center|stretch|baseline)"},backgroundClip:{classes:["bg-clip-border","bg-clip-padding","bg-clip-content","bg-clip-text"],regExp:"bg-clip-(border|padding|content|text)"},dropShadow:{classes:r.map(["sm","md","lg","xl","2xl","none"],e=>`drop-shadow-${e}`),regExp:"drop-shadow-(sm|md|lg|xl|2xl|none)"},backdropBlur:{classes:r.map(["none","sm","md","lg","xl","2xl","3xl"],e=>`backdrop-blur-${e}`),regExp:"backdrop-blur-(none|sm|md|lg|xl|2xl|3xl)"},backdropBrightness:{classes:r.map([0,50,75,90,95,100,105,110,125,150,200],e=>`backdrop-brightness-${e}`),regExp:"backdrop-brightness-(\\d+)"},backdropContrast:{classes:r.map([0,50,75,100,125,150,200],e=>`backdrop-contrast-${e}`),regExp:"backdrop-contrast-(\\d+)"},backdropGrayScale:{classes:["backdrop-grayscale-0","backdrop-grayscale"],regExp:"backdrop-grayscale(-0)?"},backdropHueRotate:{classes:r.map([0,15,30,60,90,180],e=>`backdrop-hue-rotate-${e}`),regExp:"-?backdrop-hue-rotate-(\\d+)"},backdropInvert:{classes:["backdrop-invert-0","backdrop-invert"],regExp:"backdrop-invert(-0)?"},backdropOpacity:{classes:r.map([0,5,10,20,25,30,40,50,60,70,75,80,90,95,100],e=>`backdrop-opacity-${e}`),regExp:"backdrop-opacity-(\\d+)"},backdropSaturate:{classes:r.map([0,50,100,150,200],e=>`backdrop-saturate-${e}`),regExp:"backdrop-saturate-(\\d+)"},backdropSepia:{classes:["backdrop-sepia-0, backdrop-sepia"],regExp:"backdrop-sepia(-0)?"},backgroundOrigin:{classes:["bg-origin-border","bg-origin-padding","bg-origin-content"],regExp:"bg-origin-(border|padding|content)"},transformOrigin:{classes:r.map(s.origin,e=>`origin-${e}`),regExp:"origin-(\\d+|\\S+)"},padding:{classes:r.map(s.padding,e=>`p-${e}`),regExp:"p-(\\d+|\\S+|\\[.*\\])"},paddingX:{classes:r.map(s.padding,e=>`px-${e}`),regExp:"px-(\\d+|\\S+|\\[.*\\])"},paddingY:{classes:r.map(s.padding,e=>`py-${e}`),regExp:"py-(\\d+|\\S+|\\[.*\\])"},paddingTop:{classes:r.map(s.padding,e=>`pt-${e}`),regExp:"pt-(\\d+|\\S+|\\[.*\\])"},paddingRight:{classes:r.map(s.padding,e=>`pr-${e}`),regExp:"pr-(\\d+|\\S+|\\[.*\\])"},paddingBottom:{classes:r.map(s.padding,e=>`pb-${e}`),regExp:"pb-(\\d+|\\S+|\\[.*\\])"},paddingLeft:{classes:r.map(s.padding,e=>`pl-${e}`),regExp:"pl-(\\d+|\\S+|\\[.*\\])"},textDecorationStyle:{classes:["decoration-solid","decoration-double","decoration-dotted","decoration-dashed","decoration-wavy"],regExp:"decoration-(solid|double|dotted|dashed|wavy)"},textDecorationThickness:{classes:r.map(["auto","from-font","0",1,2,4,8],e=>`decoration-${e}`),regExp:"decoration-(auto|from-font|\\d+|\\S+)"},fromColor:{classes:[],regExp:"from-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},margin:{classes:r.map(s.margin,e=>`m-${e}`),regExp:"-?m-(\\d+|\\S+|\\[.*\\])"},marginX:{classes:r.map(s.margin,e=>`mx-${e}`),regExp:"-?mx-(\\d+|\\S+|\\[.*\\])"},marginY:{classes:r.map(s.margin,e=>`my-${e}`),regExp:"-?my-(\\d+|\\S+|\\[.*\\])"},marginTop:{classes:r.map(s.margin,e=>`mt-${e}`),regExp:"-?mt-(\\d+|\\S+|\\[.*\\])"},marginRight:{classes:r.map(s.margin,e=>`mr-${e}`),regExp:"-?mr-(\\d+|\\S+|\\[.*\\])"},marginBottom:{classes:r.map(s.margin,e=>`mb-${e}`),regExp:"-?mb-(\\d+|\\S+|\\[.*\\])"},marginLeft:{classes:r.map(s.margin,e=>`ml-${e}`),regExp:"-?ml-(\\d+|\\S+|\\[.*\\])"},spaceX:{classes:r.map(s.space,e=>`space-x-${e}`),regExp:"-?space-x-(\\d+|\\S+|\\[.*\\])"},spaceY:{classes:r.map(s.space,e=>`space-y-${e}`),regExp:"-?space-y-(\\d+|\\S+|\\[.*\\])"},boxShadow:{classes:r.map(["sm","md","lg","xl","2xl","inner","none"],e=>`shadow-${e}`),regExp:"shadow-(sm|md|lg|xl|2xl|inner|none)"},minWidth:{classes:["min-w-0","min-w-full","min-w-min","min-w-max","min-w-fit"],regExp:"min-w-(\\d+|\\S+|\\[.*\\])"},maxWidth:{classes:r.map(s.maxWidth,e=>`max-w-${e}`),regExp:"max-w-(\\d+|\\S+|\\[.*\\])"},width:{classes:r.map([...s.width,"full","screen","min","max","fit"],e=>`w-${e}`),regExp:"w-(\\d+.\\d+|\\d+|px|auto|full|screen|min|max|fit|\\[.*\\])"},minHeight:{classes:["min-h-0","min-h-full","min-h-screen","min-h-min","min-h-max","min-h-fit"],regExp:"min-h-(\\d+|\\S+|\\[.*\\])"},maxHeight:{classes:r.map(s.maxHeight,e=>`max-h-${e}`),regExp:"max-h-(\\d+|\\S+|\\[.*\\])"},height:{classes:r.map(s.height,e=>`h-${e}`),regExp:"h-(\\d+.\\d+|\\d+|px|auto|full|screen|min|max|fit|\\[.*\\])"},fontFamily:{classes:["font-heading","font-body","font-sans","font-serif","font-mono"],regExp:"font-(heading|body|sans|serif|mono)"},textAlign:{classes:["text-left","text-center","text-right","text-justify"],regExp:"text-(left|center|right|justify)"},textOverflow:{classes:["truncate","text-ellipsis","text-clip"],regExp:"truncate|text-ellipsis|text-clip"},verticalAlign:{classes:["align-baseline","align-top","align-middle","align-bottom","align-text-top","align-text-bottom","align-sub","align-super"],regExp:"align-(baseline|top|middle|bottom|text-top|text-bottom|sub|super)"},fontSize:{classes:["text-xs","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],regExp:"text-(\\d+|\\S+|\\[.*\\])"},fontSmoothing:{classes:["antialiased","subpixel-antialiased"],regExp:"antialiased|subpixel-antialiased"},fontStyle:{classes:["italic","not-italic"],regExp:"not-italic|italic"},fontWeight:{classes:["font-thin","font-extralight","font-light","font-normal","font-medium","font-semibold","font-bold","font-extrabold","font-black"],regExp:"font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)"},fontVariantNum:{classes:["normal-nums","ordinal","diagonal-fractions","stacked-fractions","tabular-nums","oldstyle-nums","proportional-nums","lining-nums","slashed-zero"],regExp:"normal-nums|ordinal|diagonal-fractions|stacked-fractions|tabular-nums|oldstyle-nums|proportional-nums|lining-nums|slashed-zero"},letterSpacing:{classes:["tracking-tighter","tracking-tight","tracking-normal","tracking-wide","tracking-wider","tracking-widest"],regExp:"-?tracking-(tighter|tight|normal|wide|wider|widest|\\[.*\\])"},lineHeight:{classes:["leading-none","leading-tight","leading-snug","leading-normal","leading-relaxed","leading-loose","leading-3","leading-4","leading-5","leading-6","leading-7","leading-8","leading-9","leading-10"],regExp:"leading-(none|tight|snug|normal|relaxed|loose|\\[.*\\]|\\d+)"},listStyleType:{classes:["list-none","list-disc","list-decimal"],regExp:"list-(none|disc|decimal)"},listStylePosition:{classes:["list-inside","list-outside"],regExp:"list-(inside|outside)"},textUnderlineOffset:{classes:["underline-offset-auto","underline-offset-0","underline-offset-1","underline-offset-2","underline-offset-4","underline-offset-8"],regExp:"underline-offset-(auto|\\d+|\\S+)"},textDecoration:{classes:["underline","overline","line-through","no-underline"],regExp:"underline|overline|line-through|no-underline"},textDecorationColor:{classes:[],regExp:"decoration-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},textTransform:{classes:["uppercase","lowercase","capitalize","normal-case"],regExp:"uppercase|lowercase|capitalize|normal-case"},textIndent:{classes:r.map(s.indent,e=>`indent-${e}`),regExp:"-?indent-(\\d+|\\S+)"},whitespace:{classes:["whitespace-normal","whitespace-no-wrap","whitespace-pre","whitespace-pre-line","whitespace-pre-wrap"],regExp:"whitespace-(normal|no-wrap|pre|pre-line|pre-wrap)"},wordBreak:{classes:["break-normal","break-words","break-all"],regExp:"break-(normal|words|all)"},content:{classes:["content-none"],regExp:"content-none"},backgroundColor:{classes:[],regExp:"bg-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},backgroundAttachment:{classes:["bg-fixed","bg-local","bg-scroll"],regExp:"bg-(fixed|local|scroll)"},backgroundPosition:{classes:["bg-bottom","bg-center","bg-left","bg-left-bottom","bg-left-top","bg-right","bg-right-bottom","bg-right-top","bg-top"],regExp:"bg-(bottom|center|left|left-bottom|left-top|right|right-bottom|right-top|top)"},backgroundRepeat:{classes:["bg-repeat","bg-repeat-x","bg-repeat-y","bg-no-repeat","bg-repeat-round","bg-repeat-space"],regExp:"bg-(repeat|repeat-x|repeat-y|no-repeat|repeat-round|repeat-space)"},backgroundSize:{classes:["bg-auto","bg-cover","bg-contain"],regExp:"bg-(auto|cover|contain)"},backgroundGradient:{classes:["bg-gradient-none","bg-gradient-to-t","bg-gradient-to-tr","bg-gradient-to-r","bg-gradient-to-br","bg-gradient-to-b","bg-gradient-to-bl","bg-gradient-to-l","bg-gradient-to-tl"],regExp:"bg-gradient-(none|to-(t|tr|r|br|b|bl|l|tl))"},viaColor:{classes:[],regExp:"via-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},toColor:{classes:[],regExp:"to-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},position:{classes:["static","fixed","absolute","relative","sticky"],regExp:"(static|fixed|absolute|relative|sticky)"},borderRadiusTopLeft:{classes:["rounded-tl",...r.map(s.borderRadius,e=>`rounded-tl-${e}`)],regExp:"rounded-tl-?(\\d+|\\S+)?"},borderRadiusTopRight:{classes:["rounded-tr",...r.map(s.borderRadius,e=>`rounded-tr-${e}`)],regExp:"rounded-tr-?(\\d+|\\S+)?"},borderRadiusBottomRight:{classes:["rounded-br",...r.map(s.borderRadius,e=>`rounded-br-${e}`)],regExp:"rounded-br-?(\\d+|\\S+)?"},borderRadiusBottomLeft:{classes:["rounded-bl",...r.map(s.borderRadius,e=>`rounded-bl-${e}`)],regExp:"rounded-bl-?(\\d+|\\S+)?"},borderRadiusTop:{classes:["rounded-t",...r.map(s.borderRadius,e=>`rounded-t-${e}`)],regExp:"rounded-t-?(\\d+|\\S+)?"},borderRadiusRight:{classes:["rounded-r",...r.map(s.borderRadius,e=>`rounded-r-${e}`)],regExp:"rounded-r-?(\\d+|\\S+)?"},borderRadiusBottom:{classes:["rounded-b",...r.map(s.borderRadius,e=>`rounded-b-${e}`)],regExp:"rounded-b-?(\\d+|\\S+)?"},borderRadiusLeft:{classes:["rounded-l",...r.map(s.borderRadius,e=>`rounded-l-${e}`)],regExp:`(rounded-l-(${s.borderRadius.join("|")})|rounded-l$)`},borderRadius:{classes:["rounded",...r.map(s.borderRadius,e=>`rounded-${e}`)],regExp:`(rounded-(${s.borderRadius.join("|")}$)|rounded)`},borderX:{classes:["border-x",...r.map(s.borderWidth,e=>`border-x-${e}`)],regExp:"border-x-?(\\d+|\\S+|\\[.*\\])?"},borderY:{classes:["border-y",...r.map(s.borderWidth,e=>`border-y-${e}`)],regExp:"border-y-?(\\d+|\\S+|\\[.*\\])?"},borderTop:{classes:["border-t",...r.map(s.borderWidth,e=>`border-t-${e}`)],regExp:"border-t-?(\\d+|\\S+|\\[.*\\])?"},borderRight:{classes:["border-r",...r.map(s.borderWidth,e=>`border-r-${e}`)],regExp:"border-r-?(\\d+|\\S+|\\[.*\\])?"},borderBottom:{classes:["border-b",...r.map(s.borderWidth,e=>`border-b-${e}`)],regExp:"border-b-?(\\d+|\\S+|\\[.*\\])?"},borderLeft:{classes:["border-l",...r.map(s.borderWidth,e=>`border-l-${e}`)],regExp:"border-l-?(\\d+|\\S+|\\[.*\\])?"},borderColor:{classes:[],regExp:"border-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},border:{classes:["border",...r.map(s.borderWidth,e=>`border-${e}`)],regExp:"border-?(\\d+|\\S+|\\[.*\\])?"},order:{classes:r.map([...r.range(0,13),"first","last","none"],e=>`order-${e}`),regExp:"-?order-(\\d+|first|last|none)"},divideXWidth:{classes:r.map(["0",2,4,8],e=>`divide-x-${e}`),regExp:"divide-x-(\\d+|\\[.*\\])"},divideYWidth:{classes:r.map(["0",2,4,8],e=>`divide-y-${e}`),regExp:"divide-y-(\\d+|\\[.*\\])"},divideColor:{classes:[],regExp:"divide-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},divideStyle:{classes:r.map(["solid","dashed","dotted","double","none"],e=>`divide-${e}`),regExp:"divide-(solid|dashed|dotted|double|none)"},outlineWidth:{classes:r.map([0,1,2,4,8],e=>`outline-${e}`),regExp:"outline-(\\d+)"},outlineOffset:{classes:r.map([0,1,2,4,8],e=>`outline-offset-${e}`),regExp:"outline-offset-(\\d+)"},outlineColor:{classes:[],regExp:"outline-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},ringWidth:{classes:r.map([0,1,2,4,8,"inset"],e=>`ring-${e}`),regExp:"ring-(\\d+|inset)"},ringOffsetWidth:{classes:r.map([0,1,2,4,8],e=>`ring-offset-${e}`),regExp:"ring-offset-(\\d+)"},ringOffsetColor:{classes:[],regExp:"ring-offset-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},ringColor:{classes:[],regExp:"ring-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},boxShadowColor:{classes:[],regExp:"shadow-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},opacity:{classes:r.map([0,5,10,20,25,30,40,50,60,70,75,80,90,95,100],e=>`opacity-${e}`),regExp:"opacity-(\\d+|\\[.*\\])"},mixBlendMode:{classes:r.map(s.blendEffect,e=>`mix-blend-${e}`),regExp:"mix-blend-(\\d+|\\S+)"},bgBlendMode:{classes:r.map(s.blendEffect,e=>`bg-blend-${e}`),regExp:"bg-blend-(\\d+|\\S+)"},blur:{classes:r.map(["none","sm","md","lg","xl","2xl","3xl"],e=>`blur-${e}`),regExp:"blur-(none|sm|md|lg|xl|2xl|3xl)"},brightness:{classes:r.map([0,50,75,90,95,100,105,110,125,150,200],e=>`brightness-${e}`),regExp:"brightness-(\\d+)"},contrast:{classes:r.map([0,50,75,100,125,150,200],e=>`contrast-${e}`),regExp:"contrast-(\\d+)"},grayScale:{classes:["grayscale-0","grayscale"],regExp:"grayscale(-0)?"},hueRotate:{classes:r.map([0,15,30,60,90,180],e=>`hue-rotate-${e}`),regExp:"-?hue-rotate-(\\d+)"},invert:{classes:["invert-0","invert"],regExp:"invert(-0)?"},saturate:{classes:r.map([0,50,100,150,200],e=>`saturate-${e}`),regExp:"saturate-(\\d+)"},sepia:{classes:["sepia-0","sepia"],regExp:"sepia(-0)?"},transition:{classes:["transition-none","transition-all","transition-colors","transition-opacity","transition-shadow","transition-transform"],regExp:"transition-(none|all|colors|opacity|shadow|transform)"},duration:{classes:r.map([75,100,150,200,300,500,700,1e3],e=>`duration-${e}`),regExp:"duration-(\\d+|\\[.*\\])"},transitionEase:{classes:["ease-linear","ease-in","ease-out","ease-in-out"],regExp:"eas(e-linear|e-in|e-out|e-in-out)"},transitionDelay:{classes:r.map([75,100,150,200,300,500,700,1e3],e=>`delay-${e}`),regExp:"delay-(\\d+|\\[.*\\])"},animation:{classes:["animation-none","animation-spin","animation-ping"],regExp:"animation-(none|spin|ping)"},scaleX:{classes:r.map(s.scale,e=>`scale-x-${e}`),regExp:"-?scale-x-(\\d+|\\S+|\\[.*\\])"},scaleY:{classes:r.map(s.scale,e=>`scale-y-${e}`),regExp:"-?scale-y-(\\d+|\\S+|\\[.*\\])"},scale:{classes:r.map(s.scale,e=>`scale-${e}`),regExp:"-?scale-(\\d+|\\S+|\\[.*\\])"},rotate:{classes:r.map([0,1,2,3,6,12,45,90,180],e=>`rotate-${e}`),regExp:"-?rotate-(\\d+|\\S+|\\[.*\\])"},translateX:{classes:r.map([0,"px","0.5",1],e=>`translate-x-${e}`),regExp:"-?translate-x-(\\d+|\\S+|\\[.*\\])"},translateY:{classes:r.map([0,"px","0.5",1],e=>`translate-y-${e}`),regExp:"-?translate-y-(\\d+|\\S+|\\[.*\\])"},skewX:{classes:r.map([0,1,2,3,6,12],e=>`skew-x-${e}`),regExp:"-?skew-x-(\\d+|\\S+|\\[.*\\])"},skewY:{classes:r.map([0,1,2,3,6,12],e=>`skew-y-${e}`),regExp:"-?skew-y-(\\d+|\\S+|\\[.*\\])"},accentColor:{classes:[],regExp:"accent-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},appearance:{classes:["appearance-none"],regExp:"appearance-none"},cursor:{classes:["cursor-auto","cursor-default","cursor-pointer","cursor-wait","cursor-text","cursor-move","cursor-help","cursor-not-allowed"],regExp:"cursor-(auto|default|pointer|wait|text|move|help|not-allowed)"},caretColor:{classes:[],regExp:"caret-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},pointerEvents:{classes:["pointer-events-none","pointer-events-auto"],regExp:"pointer-events-(none|auto)"},userSelect:{classes:["select-none","select-text","select-all","select-auto"],regExp:"select-(none|text|all|auto)"},fill:{classes:[],regExp:"caret-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},stroke:{classes:[],regExp:"caret-(black|transparent|current|white|primary(-\\d+)?|secondary(-\\d+)?|\\S+-\\d+)"},strokeWidth:{classes:["stroke-0","stroke-1","stroke-2"],regExp:"stroke-(\\d+|\\[.*\\])"}},m={backgroundColor:"bg",textColor:"text",borderColor:"border",boxShadowColor:"shadow",outlineColor:"outline",divideColor:"divide",fromColor:"from",viaColor:"via",toColor:"to",ringColor:"ring",ringOffsetColor:"ring-offset"},u=["current","inherit","transparent","black","white","primary","secondary"],b=["primary","secondary"],f=["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"],p=["50","100","200","300","400","500","600","700","800","900"],d=r.map(r.values(m),e=>e),E=r.flattenDeep([...r.map(u,e=>r.flatten(r.map(d,t=>`${t}-${e}`))),...r.map(b,e=>r.flattenDeep(r.map(d,t=>r.flattenDeep(r.map(p,a=>`${t}-${e}-${a}`))))),...r.map(f,e=>r.flattenDeep(r.map(d,t=>r.flattenDeep(r.map(p,a=>`${t}-${e}-${a}`)))))]),h=r.map(r.flattenDeep(r.values(o).map(e=>e.classes).concat(E)),e=>({name:e}));function y(e){if(r.isEmpty(e.trim()))return"";const t=e.match(/sm:|md:|lg:|xl:|2xl:/g);return r.get(t,0,"xs").replace(":","")}function w(e){const t=r.map(c.MODIFIERS,l=>`${l}:`).join("|"),a=new RegExp(t,"g");return r.get(a.exec(e.trim()),0,"").replace(":","")}function $(e){return e.trim().split(":").pop()||""}const i={};function S(e){if(r.isEmpty(e))return"";if(i[e])return i[e];let t="";for(const a in o){const l=r.get(o,`${a}.regExp`,"");if(new RegExp(l,"g").test(e)){t=a,i[e]=t;break}}return t}function k(e){return r.isEmpty(e)?null:{dark:r.startsWith(e,"dark:"),mq:y(e),mod:w(e),cls:$(e),fullCls:e,property:S(e)}}function v(e){let t="";return e.dark&&(t+="dark:"),e.mq.toLowerCase()!=="xs"&&(t+=`${e.mq}:`),e.mod&&(t+=`${e.mod}:`),t+=e.cls,t}const C=(...e)=>x.twMerge(g.clsx(e));exports.ALL_TW_CLASSES=h;exports.CLASSES_LIST=o;exports.cn=C;exports.constructClassObject=k;exports.generateFullClsName=v;
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-Z_BpKhVy.cjs"),B=require("react"),t=require("./controls-Dy1qa8Dc.cjs"),d=require("@chaibuilder/runtime"),x=require("lodash-es"),y=require("./Functions-N3yhPYKY.cjs"),p=require("@radix-ui/react-icons");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("clsx");require("tailwind-merge");function S(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const s=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const u=S(B),g=({blockProps:o,className:e="",styles:l={}})=>a.jsxRuntimeExports.jsx("div",{...o,className:y.cn("flex h-20 flex-col items-center justify-center",e),...x.omit(l,["className"]),children:a.jsxRuntimeExports.jsx("div",{className:"flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300",children:a.jsxRuntimeExports.jsx("span",{className:"opacit flex items-center gap-x-1.5 text-xs font-semibold text-gray-400"})})}),R=u.memo(o=>{const{blockProps:e,backgroundImage:l,children:s,tag:r="div",styles:n}=o;if(!s&&x.isEmpty(n==null?void 0:n.className))return a.jsxRuntimeExports.jsx(g,{blockProps:e,styles:n});let i={};return l&&(i={backgroundImage:`url(${l})`}),u.createElement(r,{...e,...n,style:i},s)});d.registerChaiBlock(R,{type:"Box",label:"Box",category:"core",group:"basic",props:{styles:t.S({default:""}),tag:t.f({title:"Tag",default:"div",options:[{value:"div",title:"div"},{value:"header",title:"header"},{value:"footer",title:"footer"},{value:"section",title:"section"},{value:"article",title:"article"},{value:"aside",title:"aside"},{value:"main",title:"main"},{value:"nav",title:"nav"},{value:"figure",title:"figure"},{value:"details",title:"details"},{value:"summary",title:"summary"},{value:"dialog",title:"dialog"},{value:"strike",title:"strike"},{value:"caption",title:"caption"},{value:"legend",title:"legend"},{value:"figcaption",title:"figcaption"},{value:"mark",title:"mark"}]}),backgroundImage:t.o({title:"Background Image"})}});const L=o=>{const{blockProps:e,styles:l,content:s,level:r="h1",children:n=null}=o;return n?u.createElement(r,{...l,...e},n):u.createElement(r,{...l,...e,dangerouslySetInnerHTML:{__html:s}})};d.registerChaiBlock(L,{type:"Heading",label:"Heading",category:"core",icon:p.HeadingIcon,group:"basic",props:{level:t.f({title:"Level",default:"h1",binding:!1,options:[{value:"h1",title:"h1"},{value:"h2",title:"h2"},{value:"h3",title:"h3"},{value:"h4",title:"h4"},{value:"h5",title:"h5"},{value:"h6",title:"h6"}]}),styles:t.S({default:"text-3xl"}),content:t.g({title:"Content",default:"Heading goes here"})}});const T=o=>{const{blockProps:e,styles:l,content:s}=o;return x.isNull(o.children)?u.createElement("div",{...l,...e,dangerouslySetInnerHTML:{__html:s}}):u.createElement("p",{...l,...e},o.children)};d.registerChaiBlock(T,{type:"Paragraph",label:"Paragraph",category:"core",icon:p.TextIcon,group:"basic",props:{styles:t.S({default:""}),content:t.g({title:"Content",default:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere."})}});const w=o=>{const{blockProps:e,content:l,styles:s}=o;return a.jsxRuntimeExports.jsx("div",{className:"prose max-w-full",children:a.jsxRuntimeExports.jsx("div",{...e,...s,dangerouslySetInnerHTML:{__html:l}})})};d.registerChaiBlock(w,{type:"RichText",label:"Rich Text",category:"core",icon:p.CursorTextIcon,group:"basic",props:{styles:t.S({default:""}),content:t.m({title:"Content",default:`Lorem Ipsum Rich Text Editor Demo
2
+
3
+ Welcome to our rich text editor demo! With our powerful editor, you can create stunning documents with ease. Let's explore some of its features:
4
+
5
+ Text Formatting: You can make text bold, italic, or underline it.
6
+ Lists:
7
+ Create ordered lists.
8
+ Craft unordered lists.
9
+ Utilize nested lists for organization.`})}});const _=o=>{const{blockProps:e,iconSize:l,icon:s,content:r,iconPos:n,styles:i,children:c}=o,m=s,f=c||a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[r,m&&a.jsxRuntimeExports.jsx("div",{style:{width:l+"px"},className:n+(n==="order-first"?" mr-2":"ml-2")||"",dangerouslySetInnerHTML:{__html:m}})]});return u.createElement("button",{...e,...i,type:"button"},f)};d.registerChaiBlock(_,{type:"Button",label:"Button",category:"core",icon:p.ButtonIcon,group:"basic",props:{content:t.u({title:"Label",default:"Button",multiLingual:!0}),styles:t.S({default:"text-white bg-primary px-4 py-2 rounded-global flex items-center"}),link:t.q({title:"Link",default:{type:"page",href:"",target:"_blank"}}),icon:t.T({title:"Icon",default:""}),iconSize:t.c({title:"Icon Size",default:24}),iconPos:t.f({title:"Icon Position",default:"order-last",options:[{title:"Start",value:"order-first"},{title:"End",value:"order-last"}]})}});const C=o=>{const{blockProps:e,link:l,children:s,styles:r,inBuilder:n,content:i}=o;return!s&&x.isEmpty(r==null?void 0:r.className)&&x.isEmpty(i)?a.jsxRuntimeExports.jsx(g,{blockProps:e}):n?s?a.jsxRuntimeExports.jsx("span",{"data-simulate":"a",...e,...r,children:s}):u.createElement("span",{...e,...r,href:l.href||"#",target:l.target||"_self",dangerouslySetInnerHTML:{__html:i},"data-simulate":"a"}):s?a.jsxRuntimeExports.jsx("a",{href:l.href||"#/",target:l.target,...e,...r,children:s}):u.createElement("a",{...e,...r,href:l.href||"#",target:l.target||"_self",dangerouslySetInnerHTML:{__html:i}})};d.registerChaiBlock(C,{type:"Link",label:"Link",category:"core",icon:p.Link1Icon,group:"basic",props:{styles:t.S({default:""}),content:t.u({title:"Content",default:""}),link:t.q({title:"Link",default:{type:"page",target:"_self",href:""}})}});const P=o=>{const{blockProps:e,children:l,listType:s,styles:r,tag:n}=o,i=y.cn(x.get(r,"className",""),s);return!l&&x.isEmpty(r==null?void 0:r.className)?a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"LIST ITEM"}):u.createElement(n||(s==="list-decimal"?"ol":"ul"),{...e,...r,className:i},l)};d.registerChaiBlock(P,{type:"List",label:"List",icon:p.RowsIcon,category:"core",group:"basic",props:{styles:t.S({default:""}),listType:t.f({title:"List type",default:"list-disc",options:[{value:"list-none",title:"None"},{value:"list-disc",title:"Disc"},{value:"list-decimal",title:"Number"}]})},blocks:[{_type:"List",_id:"a",listType:"list-none",styles:"#styles:,"},{_type:"ListItem",_id:"b",_parent:"a",styles:"#styles:,",content:"Item 1"},{_type:"ListItem",_id:"c",_parent:"a",styles:"#styles:,",content:"Item 2"},{_type:"ListItem",_id:"d",_parent:"a",styles:"#styles:,",content:"Item 3"}]});const N=o=>{const{blockProps:e,content:l,styles:s,children:r,tag:n}=o;return r?u.createElement(n||"li",{...s,...e},r):u.createElement(n||"li",{...s,...e,dangerouslySetInnerHTML:{__html:l}})};d.registerChaiBlock(N,{type:"ListItem",label:"List Item",icon:p.ColumnsIcon,category:"core",group:"basic",props:{styles:t.S({default:""}),content:t.g({title:"Content",default:"List item"})}});const M=o=>{const{blockProps:e,icon:l,styles:s}=o,r={...s,className:y.cn(s.className,"inline-block c-inline-block")};return x.isEmpty(l)?a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"",className:"h-8 w-14"}):u.createElement("span",{...e,...r,dangerouslySetInnerHTML:{__html:l}})};d.registerChaiBlock(M,{type:"Icon",label:"Icon",category:"core",icon:p.SketchLogoIcon,group:"basic",props:{styles:t.S({default:"text-black"}),icon:t.T({title:"Icon",default:'<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM8 1.5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5-6.5-2.91-6.5-6.5 2.91-6.5 6.5-6.5zM8 9.356c1.812 0 3.535-0.481 5-1.327-0.228 2.788-2.393 4.971-5 4.971s-4.772-2.186-5-4.973c1.465 0.845 3.188 1.329 5 1.329zM4 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5zM10 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5z"></path></svg>'})}});const H=o=>{const{blockProps:e,image:l,styles:s,alt:r,height:n=200,width:i=200}=o;return x.isEmpty(l)?a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"IMAGE URL",className:"h-36"}):u.createElement("img",{...e,...s,src:l,alt:r,height:n,width:i})};d.registerChaiBlock(H,{type:"Image",label:"Image",category:"core",icon:p.ImageIcon,group:"basic",props:{styles:t.S({default:""}),image:t.o({title:"Image",default:"https://fakeimg.pl/400x200?text=Choose&font=bebas"}),alt:t.u({title:"Alt",default:""}),width:t.u({title:"Width",default:""}),height:t.u({title:"Height",default:""})}});const U=o=>{var n;const{blockProps:e,styles:l,children:s}=o;let r=null;return s||(r=a.jsxRuntimeExports.jsx("div",{className:y.cn("flex flex-col items-center justify-center",(n=o.emptyStyles)==null?void 0:n.className),children:a.jsxRuntimeExports.jsx("div",{className:"h-full w-full rounded-md border-4 border-dashed",children:a.jsxRuntimeExports.jsxs("p",{className:"truncate p-1 text-left text-xs text-gray-400",children:["Slot: ",o.name]})})})),u.createElement("div",{...l,...e,droppable:"yes"},s||r)};d.registerChaiBlock(U,{type:"Slot",label:"Slot",group:"basic",category:"core",hidden:!0,props:{styles:t.S({default:""}),emptyStyles:t.S({default:""})}});const E=/^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/,I=/^(https?:\/\/)?(www\.)?vimeo\.com\/(\d+)/,v=/^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/,D=o=>{if(E.test(o)){const e=o.match(E);return e?`https://www.youtube.com/embed/${e[4]}`:o}if(I.test(o)){const e=o.match(I);return e?`https://player.vimeo.com/video/${e[3]}`:o}if(v.test(o)){const e=o.match(v);return e?`https://www.dailymotion.com/embed/video/${e[4]}`:o}return null},q=u.memo(o=>{const{blockProps:e,inBuilder:l,styles:s,url:r,controls:n}=o,i=n.autoPlay,c=n.controls,m=i||n.muted,f=n.loop;if(x.isEmpty(r))return a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"VIDEO URL",className:"h-36"});let b=D(r),h=null;if(b){if(!x.isEmpty(b)){const k=[];k.push(`autoplay=${i?1:0}`),k.push(`controls=${n?1:0}`),k.push(`mute=${m?1:0}&muted=${m?1:0}`),k.push(`loop=${f?1:0}`),b=`${b}?${k.join("&")}`}h=u.createElement("iframe",{...e,...s,src:b,allow:l?"":"autoplay *; fullscreen *",allowFullScreen:!0,frameBorder:0})}else h=u.createElement("video",{...e,...s,src:r,controls:c,muted:m,autoPlay:l?!1:i,loop:f});return a.jsxRuntimeExports.jsxs("div",{className:"relative overflow-hidden",style:{paddingBottom:"56.25%"},children:[l?a.jsxRuntimeExports.jsx("div",{...e,...s,className:"absolute h-full w-full z-20"}):null,h]})});d.registerChaiBlock(q,{type:"Video",label:"Video",category:"core",icon:p.VideoIcon,group:"basic",props:{styles:t.S({default:"absolute top-0 left-0 w-full h-full"}),url:t.u({title:"Video URL",default:"https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"}),controls:t.b({title:"Controls",properties:{autoPlay:t.r({title:"Autoplay",default:!0}),controls:t.r({title:"Show widgets",default:!1}),loop:t.r({title:"Loop",default:!1}),muted:t.r({title:"Muted",default:!0})}})}});const F=u.memo(o=>{const{blockProps:e,styles:l,content:s,inBuilder:r}=o;return a.jsxRuntimeExports.jsxs("div",{className:"relative",children:[r?a.jsxRuntimeExports.jsx("div",{...e,...l,className:"absolute h-full w-full z-20"}):null,u.createElement("div",{...l,dangerouslySetInnerHTML:{__html:s}})]})});d.registerChaiBlock(F,{type:"CustomHTML",label:"CustomHTML",category:"core",icon:p.CodeIcon,group:"basic",props:{styles:t.S({default:""}),content:t.g({title:"HTML Content",default:"<div><p>HTML Snippet goes here...</p></div>",placeholder:"Enter custom HTML code here"})}});const z=o=>{const{blockProps:e,styles:l,content:s,children:r=null,tag:n}=o;return r?u.createElement("span",{...l,...e},r):u.createElement(n||"span",{...l,...e,dangerouslySetInnerHTML:{__html:s}})};d.registerChaiBlock(z,{type:"Span",label:"Span",category:"core",group:"basic",props:{styles:t.S({default:""}),content:t.g({title:"Content",default:"Enter your content"})}});const O=o=>{const{blockProps:e,styles:l}=o;return u.createElement("hr",{...l,...e})};d.registerChaiBlock(O,{type:"Divider",label:"Divider",category:"core",icon:p.DividerHorizontalIcon,group:"basic",props:{styles:t.S({default:"bg-gray-900 h-0.5 py-2 my-1"})}});const A=o=>{const{blockProps:e,styles:l}=o;return u.createElement("br",{...e,...l})};d.registerChaiBlock(A,{type:"LineBreak",label:"Line Break",category:"core",group:"basic",icon:p.SpaceBetweenVerticallyIcon,props:{styles:t.S({default:""})}});const V=o=>o.inBuilder?a.jsxRuntimeExports.jsx("span",{className:"inline",...o.blockProps,children:o.content}):`${o.content}`;d.registerChaiBlock(V,{type:"Text",label:"Text",hidden:!0,category:"core",group:"basic",icon:p.SpaceBetweenVerticallyIcon,props:{content:t.g({title:"Content",defaultValue:""})}});const j=o=>{const e=(n,i)=>({_id:y.generateUUID(),_parent:n,_type:"TableCell",styles:"#styles:,",content:`${o==="TableHead"?"Table Head":"Table Cell "+i}`}),l=n=>{const i=y.generateUUID(),c={_type:"TableRow",_id:i,styles:"#styles:,border-b"};return n&&(c._parent=n),[c,e(i,"1"),e(i,"2"),e(i,"3")]},s=n=>{const i=y.generateUUID(),c={_id:i,_type:"TableHead",styles:"#styles:,font-medium"};return n&&(c._parent=n),[c,...l(i)]},r=n=>{const i=y.generateUUID(),c={_id:i,_type:"TableBody",styles:"#styles:,"};return n&&(c._parent=n),[c,...l(i),...l(i)]};if(o==="Table"){const n=y.generateUUID();return[{_id:n,_type:"Table",styles:"#styles:,w-full text-left text-gray-500 dark:text-gray-400"},...s(n),...r(n)]}return o==="TableRow"?l():o==="TableHead"?s():o==="TableBody"?r():[]},$=o=>{const{blockProps:e,children:l,styles:s}=o;return l?u.createElement("table",{...e,...s},l):a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"TABLE HEAD / BODY"})};d.registerChaiBlock($,{type:"Table",label:"Table",category:"core",group:"table",hidden:!0,icon:p.TableIcon,props:{styles:t.S({default:""})},blocks:j("Table")});const W=o=>{const{blockProps:e,children:l,styles:s}=o;return l?u.createElement("thead",{...e,...s},l):a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"TABLE ROW"})};d.registerChaiBlock(W,{type:"TableHead",label:"Table Head",category:"core",group:"table",hidden:!0,icon:p.BorderTopIcon,props:{styles:t.S({default:""})},blocks:j("TableHead")});const G=o=>{const{blockProps:e,children:l,styles:s}=o;return l?u.createElement("tbody",{...e,...s},l):a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"TABLE ROW"})};d.registerChaiBlock(G,{type:"TableBody",label:"Table Body",category:"core",group:"table",hidden:!0,icon:p.BorderAllIcon,props:{styles:t.S({default:""})},blocks:j("TableBody")});const Y=o=>{const{blockProps:e,children:l,styles:s}=o;return l?u.createElement("tr",{...e,...s},l):a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"TABLE CELL"})};d.registerChaiBlock(Y,{type:"TableRow",label:"Table Row",category:"core",group:"table",hidden:!0,icon:p.ViewHorizontalIcon,props:{styles:t.S({default:"w-full"})},blocks:j("TableRow")});const X=o=>{const{blockProps:e,children:l,content:s,styles:r}=o;return!l&&x.isEmpty(s)?a.jsxRuntimeExports.jsx(g,{blockProps:e}):l?u.createElement("td",{...e,...r},l):u.createElement("td",{...e,...r,dangerouslySetInnerHTML:{__html:s}})};d.registerChaiBlock(X,{type:"TableCell",label:"Table Cell",category:"core",group:"table",hidden:!0,icon:p.DragHandleHorizontalIcon,props:{styles:t.S({default:""}),content:t.m({title:"Content",default:"Table cell item"})}});const Z=o=>{const{blockProps:e,errorMessage:l,name:s,_type:r,successMessage:n,action:i,styles:c,children:m}=o;if(!m&&x.isEmpty(c==null?void 0:c.className))return a.jsxRuntimeExports.jsx(g,{blockProps:e,text:"FORM FIELDS"});const f={"x-data":"useForm","x-on:submit.prevent":"post"},b={"x-html":"formResponse",":class":"{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"};return a.jsxRuntimeExports.jsxs("form",{...f,"data-error":l,"data-success":n,method:"post",action:i,...e,...c,children:[a.jsxRuntimeExports.jsx("div",{...b}),a.jsxRuntimeExports.jsx("input",{name:"formname",type:"hidden",value:s||r}),m]})};d.registerChaiBlock(Z,{type:"Form",label:"Form",category:"core",icon:p.GroupIcon,group:"form",hidden:!0,props:{styles:t.S({default:""}),action:t.u({title:"Submit URL",default:"/api/form/submit"}),errorMessage:t.m({title:"Error Message",default:"Something went wrong. Please try again"}),successMessage:t.m({title:"Success Message",default:"Thank you for your submission."})}});const J=o=>{const{blockProps:e,content:l,styles:s,children:r}=o,n={...s,...e};return r?u.createElement("label",n,r):u.createElement("label",{...n,dangerouslySetInnerHTML:{__html:l}})};d.registerChaiBlock(J,{type:"Label",label:"Label",category:"core",icon:p.LetterCaseToggleIcon,group:"form",hidden:!0,props:{styles:t.S({default:""}),content:t.u({title:"Content",default:"Label"})}});const K=o=>{const{blockProps:e,label:l,placeholder:s,styles:r,inputStyles:n,showLabel:i,required:c,inputType:m="text",inBuilder:f,fieldName:b}=o,h=y.generateUUID();return!i||m==="submit"?(m==="submit"&&(e.value=l),a.jsxRuntimeExports.jsx("input",{id:h,name:b,readOnly:f,...e,...n,...r,type:m,placeholder:s,required:c})):a.jsxRuntimeExports.jsxs("div",{...r,...e,children:[i&&a.jsxRuntimeExports.jsx("label",{htmlFor:h,children:l}),a.jsxRuntimeExports.jsx("input",{name:b,readOnly:f,...n,id:h,type:m,placeholder:s,required:c})]})};d.registerChaiBlock(K,{type:"Input",label:"Input",category:"core",icon:p.InputIcon,group:"form",hidden:!0,props:{styles:t.S({default:""}),fieldName:t.u({title:"Field Name",default:"input"}),inputType:t.f({title:"Type",options:x.map(["text","email","password","number","tel","file","hidden","range","submit","color","date","time"],o=>({value:o,title:o})),default:"text"}),value:t.u({title:"Value",default:""}),showLabel:t.r({title:"Show label",default:!0}),inputStyles:t.S({default:"w-full p-1"}),label:t.u({title:"Label",default:"Label"}),placeholder:t.u({title:"Placeholder",default:"Placeholder"}),required:t.r({title:"Required",default:!1})}});const Q=o=>{const{blockProps:e,fieldName:l,label:s,placeholder:r,styles:n,inputStyles:i,_rows:c,showLabel:m}=o,f=y.generateUUID();return m?a.jsxRuntimeExports.jsxs("div",{...n,...e,children:[m&&a.jsxRuntimeExports.jsx("label",{htmlFor:f,children:s}),a.jsxRuntimeExports.jsx("textarea",{name:l,...i,id:f,placeholder:r,rows:c})]}):a.jsxRuntimeExports.jsx("textarea",{id:f,name:l,...e,...i,...n,placeholder:r,rows:c})};d.registerChaiBlock(Q,{type:"TextArea",label:"TextArea",category:"core",icon:p.InputIcon,group:"form",hidden:!0,props:{fieldName:t.u({title:"Field Name",default:"textarea"}),showLabel:t.r({title:"Show label",default:!0}),styles:t.S({default:""}),inputStyles:t.S({default:"w-full p-1"}),label:t.u({title:"Label",default:"Label"}),placeholder:t.u({title:"Placeholder",default:"Placeholder"}),_rows:t.c({title:"Rows",default:3})}});const ee=o=>{const{blockProps:e,fieldName:l,label:s,placeholder:r,styles:n,inputStyles:i,required:c,showLabel:m,_multiple:f=!1}=o,b=y.generateUUID();return m?a.jsxRuntimeExports.jsxs("div",{...n,children:[m&&a.jsxRuntimeExports.jsx("label",{htmlFor:b,children:s}),a.jsxRuntimeExports.jsxs("select",{...i,id:b,placeholder:r,required:c,multiple:f,name:l,children:[a.jsxRuntimeExports.jsx("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:r}),x.map(o.options,h=>a.jsxRuntimeExports.jsx("option",{selected:x.get(h,"selected",!1),value:h.value,dangerouslySetInnerHTML:{__html:h.label}},h.value))]})]}):a.jsxRuntimeExports.jsxs("select",{id:b,...n,...e,placeholder:r,required:c,multiple:f,name:l,children:[a.jsxRuntimeExports.jsx("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:r}),x.map(o.options,h=>a.jsxRuntimeExports.jsx("option",{selected:x.get(h,"selected",!1),value:h.value,dangerouslySetInnerHTML:{__html:h.label}},h.value))]})};d.registerChaiBlock(ee,{type:"Select",label:"Select",category:"core",icon:p.DropdownMenuIcon,group:"form",hidden:!0,props:{styles:t.S({default:""}),fieldName:t.u({title:"Field Name",default:"select"}),showLabel:t.r({title:"Show label",default:!0}),inputStyles:t.S({default:"w-full p-1"}),label:t.u({title:"Label",default:"Label"}),placeholder:t.u({title:"Placeholder",default:"Placeholder"}),required:t.r({title:"Required",default:!1}),_multiple:t.r({title:"Multiple Choice",default:!1}),options:t.h({title:"Options",itemProperties:{label:t.u({title:"Label",default:""}),value:t.u({title:"Value",default:""})}})}});const te=o=>{const{blockProps:e,fieldName:l,label:s,styles:r,inputStyles:n,required:i,checked:c,showLabel:m=!0}=o,f=y.generateUUID();return m?a.jsxRuntimeExports.jsxs("div",{...r,...e,children:[a.jsxRuntimeExports.jsx("input",{...n,name:l,id:f,type:"checkbox",required:i,defaultChecked:c}),s&&s!=="Label"&&a.jsxRuntimeExports.jsx("label",{htmlFor:f,children:s})]}):a.jsxRuntimeExports.jsx("input",{id:f,...e,...n,...r,type:"checkbox",required:i,name:l})};d.registerChaiBlock(te,{type:"Checkbox",label:"Checkbox",category:"core",icon:p.CheckboxIcon,group:"form",hidden:!0,props:{fieldName:t.u({title:"Field Name",default:"checkbox"}),styles:t.S({default:"flex items-center gap-x-2"}),label:t.u({title:"Label",default:"Label"}),checked:t.r({title:"Checked",default:!1}),required:t.r({title:"Required",default:!1})}});const le=o=>{const{blockProps:e,fieldName:l,label:s,styles:r,inputStyles:n,checked:i,required:c,showLabel:m=!0}=o,f=y.generateUUID();return m?a.jsxRuntimeExports.jsxs("div",{...r,...e,children:[a.jsxRuntimeExports.jsx("input",{...n,name:l,id:f,type:"radio",required:c,defaultChecked:i}),s&&a.jsxRuntimeExports.jsx("label",{htmlFor:f,children:s})]}):a.jsxRuntimeExports.jsx("input",{id:f,...e,...n,...r,type:"radio",required:c,checked:i,name:l})};d.registerChaiBlock(le,{type:"Radio",label:"Radio",category:"core",icon:p.RadiobuttonIcon,group:"form",hidden:!0,props:{styles:t.S({default:"flex items-center w-max gap-x-2"}),fieldName:t.u({title:"Field Name",default:"radio"}),label:t.u({title:"Label",default:"Label"}),checked:t.r({title:"Checked",default:!1}),required:t.r({title:"Required",default:!1})}});const oe=o=>{const{blockProps:e,inBuilder:l,label:s,placeholder:r,styles:n,inputStyles:i,icon:c,iconPos:m}=o,f=y.generateUUID(),b={"x-bind:disabled":"formLoading"};return a.jsxRuntimeExports.jsxs("button",{id:f,...b,...i,...n,...e||{},type:l?"button":"submit",placeholder:r,children:[s,c&&a.jsxRuntimeExports.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:c}})]})};d.registerChaiBlock(oe,{type:"FormButton",label:"Submit Button",category:"core",icon:p.ButtonIcon,group:"form",hidden:!0,props:{label:t.u({title:"Label",default:"Submit"}),styles:t.S({default:"text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"}),icon:t.T({title:"Icon",default:""}),iconPos:t.f({title:"Icon Position",default:"order-last",options:[{title:"Start",value:"order-first"},{title:"End",value:"order-last"}]})}});const se=x.noop;exports.loadWebBlocks=se;
@@ -0,0 +1,3 @@
1
+ export declare const loadWebBlocks: any;
2
+
3
+ export { }