@simple-builder/react 1.0.3 → 1.0.4

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.
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- require('./chunk-N2X3IJBG.js');
5
- var chunkGSOMMLCG_js = require('./chunk-GSOMMLCG.js');
6
- var chunkUZFAGH6G_js = require('./chunk-UZFAGH6G.js');
7
- var React13 = require('react');
4
+ require('./chunk-KOBGFPWB.js');
5
+ var chunkXEMUNFCV_js = require('./chunk-XEMUNFCV.js');
6
+ var chunkJ36K7WVK_js = require('./chunk-J36K7WVK.js');
7
+ var React12 = require('react');
8
8
  var lucideReact = require('lucide-react');
9
9
  var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
10
10
  var PopoverPrimitive = require('@radix-ui/react-popover');
@@ -15,14 +15,11 @@ var reactSlot = require('@radix-ui/react-slot');
15
15
  var LabelPrimitive = require('@radix-ui/react-label');
16
16
  var classVarianceAuthority = require('class-variance-authority');
17
17
  var TabsPrimitive = require('@radix-ui/react-tabs');
18
- var NextImage = require('next/image');
19
18
  var SwitchPrimitives = require('@radix-ui/react-switch');
20
19
  var TogglePrimitive = require('@radix-ui/react-toggle');
21
20
  var dateFns = require('date-fns');
22
21
  var reactDayPicker = require('react-day-picker');
23
22
 
24
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
25
-
26
23
  function _interopNamespace(e) {
27
24
  if (e && e.__esModule) return e;
28
25
  var n = Object.create(null);
@@ -41,22 +38,21 @@ function _interopNamespace(e) {
41
38
  return Object.freeze(n);
42
39
  }
43
40
 
44
- var React13__namespace = /*#__PURE__*/_interopNamespace(React13);
41
+ var React12__namespace = /*#__PURE__*/_interopNamespace(React12);
45
42
  var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
46
43
  var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
47
44
  var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
48
45
  var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
49
- var NextImage__default = /*#__PURE__*/_interopDefault(NextImage);
50
46
  var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
51
47
  var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive);
52
48
 
53
49
  var AlertDialog = AlertDialogPrimitive__namespace.Root;
54
50
  var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
55
51
  var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
56
- var AlertDialogOverlay = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
52
+ var AlertDialogOverlay = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
57
53
  AlertDialogPrimitive__namespace.Overlay,
58
54
  {
59
- className: chunkGSOMMLCG_js.cn(
55
+ className: chunkJ36K7WVK_js.cn(
60
56
  "sb-fixed sb-inset-0 sb-z-50 sb-bg-background/80 sb-backdrop-blur-sm data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0",
61
57
  className
62
58
  ),
@@ -65,11 +61,11 @@ var AlertDialogOverlay = React13__namespace.forwardRef(({ className, ...props },
65
61
  }
66
62
  ));
67
63
  AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
68
- var AlertDialogContent = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(AlertDialogPortal, null, /* @__PURE__ */ React13__namespace.createElement(AlertDialogOverlay, null), /* @__PURE__ */ React13__namespace.createElement(
64
+ var AlertDialogContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(AlertDialogPortal, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogOverlay, null), /* @__PURE__ */ React12__namespace.createElement(
69
65
  AlertDialogPrimitive__namespace.Content,
70
66
  {
71
67
  ref,
72
- className: chunkGSOMMLCG_js.cn(
68
+ className: chunkJ36K7WVK_js.cn(
73
69
  "sb-fixed sb-font-roboto sb-left-[50%] sb-top-[50%] sb-z-50 sb-grid sb-w-full sb-max-w-lg sb-translate-x-[-50%] sb-translate-y-[-50%] sb-gap-4 sb-border sb-bg-background sb-p-6 sb-shadow-lg sb-duration-200 data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[state=closed]:sb-slide-out-to-left-1/2 data-[state=closed]:sb-slide-out-to-top-[48%] data-[state=open]:sb-slide-in-from-left-1/2 data-[state=open]:sb-slide-in-from-top-[48%] sm:sb-rounded-lg",
74
70
  className
75
71
  ),
@@ -80,10 +76,10 @@ AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.display
80
76
  var AlertDialogFooter = ({
81
77
  className,
82
78
  ...props
83
- }) => /* @__PURE__ */ React13__namespace.createElement(
79
+ }) => /* @__PURE__ */ React12__namespace.createElement(
84
80
  "div",
85
81
  {
86
- className: chunkGSOMMLCG_js.cn(
82
+ className: chunkJ36K7WVK_js.cn(
87
83
  "sb-flex sb-flex-col-reverse sm:sb-flex-row sm:sb-justify-end sm:sb-space-x-2",
88
84
  className
89
85
  ),
@@ -91,39 +87,39 @@ var AlertDialogFooter = ({
91
87
  }
92
88
  );
93
89
  AlertDialogFooter.displayName = "AlertDialogFooter";
94
- var AlertDialogTitle = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
90
+ var AlertDialogTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
95
91
  AlertDialogPrimitive__namespace.Title,
96
92
  {
97
93
  ref,
98
- className: chunkGSOMMLCG_js.cn("sb-text-lg sb-font-semibold", className),
94
+ className: chunkJ36K7WVK_js.cn("sb-text-lg sb-font-semibold", className),
99
95
  ...props
100
96
  }
101
97
  ));
102
98
  AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
103
- var AlertDialogDescription = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
99
+ var AlertDialogDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
104
100
  AlertDialogPrimitive__namespace.Description,
105
101
  {
106
102
  ref,
107
- className: chunkGSOMMLCG_js.cn("sb-text-sm sb-text-muted-foreground", className),
103
+ className: chunkJ36K7WVK_js.cn("sb-text-sm sb-text-muted-foreground", className),
108
104
  ...props
109
105
  }
110
106
  ));
111
107
  AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
112
- var AlertDialogAction = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
108
+ var AlertDialogAction = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
113
109
  AlertDialogPrimitive__namespace.Action,
114
110
  {
115
111
  ref,
116
- className: chunkGSOMMLCG_js.cn(chunkGSOMMLCG_js.buttonVariants(), className),
112
+ className: chunkJ36K7WVK_js.cn(chunkXEMUNFCV_js.buttonVariants(), className),
117
113
  ...props
118
114
  }
119
115
  ));
120
116
  AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
121
- var AlertDialogCancel = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
117
+ var AlertDialogCancel = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
122
118
  AlertDialogPrimitive__namespace.Cancel,
123
119
  {
124
120
  ref,
125
- className: chunkGSOMMLCG_js.cn(
126
- chunkGSOMMLCG_js.buttonVariants({ variant: "outline" }),
121
+ className: chunkJ36K7WVK_js.cn(
122
+ chunkXEMUNFCV_js.buttonVariants({ variant: "outline" }),
127
123
  "sb-mt-2 sm:sb-mt-0",
128
124
  className
129
125
  ),
@@ -134,13 +130,13 @@ AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayNa
134
130
  var Popover = PopoverPrimitive__namespace.Root;
135
131
  var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
136
132
  var PopoverClose = PopoverPrimitive__namespace.Close;
137
- var PopoverContent = React13__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(PopoverPrimitive__namespace.Portal, null, /* @__PURE__ */ React13__namespace.createElement(
133
+ var PopoverContent = React12__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(PopoverPrimitive__namespace.Portal, null, /* @__PURE__ */ React12__namespace.createElement(
138
134
  PopoverPrimitive__namespace.Content,
139
135
  {
140
136
  ref,
141
137
  align,
142
138
  sideOffset,
143
- className: chunkGSOMMLCG_js.cn(
139
+ className: chunkJ36K7WVK_js.cn(
144
140
  "sb-z-50 sb-w-72 sb-font-roboto sb-rounded-md sb-border sb-bg-popover sb-p-4 sb-text-popover-foreground sb-shadow-md sb-outline-none data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[side=bottom]:sb-slide-in-from-top-2 data-[side=left]:sb-slide-in-from-right-2 data-[side=right]:sb-slide-in-from-left-2 data-[side=top]:sb-slide-in-from-bottom-2",
145
141
  className
146
142
  ),
@@ -151,11 +147,11 @@ PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
151
147
  var labelVariants = classVarianceAuthority.cva(
152
148
  "sb-text-sm sb-font-medium sb-font-roboto sb-leading-none peer-disabled:sb-cursor-not-allowed peer-disabled:sb-opacity-70"
153
149
  );
154
- var Label = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
150
+ var Label = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
155
151
  LabelPrimitive__namespace.Root,
156
152
  {
157
153
  ref,
158
- className: chunkGSOMMLCG_js.cn(labelVariants(), className),
154
+ className: chunkJ36K7WVK_js.cn(labelVariants(), className),
159
155
  ...props
160
156
  }
161
157
  ));
@@ -163,17 +159,17 @@ Label.displayName = LabelPrimitive__namespace.Root.displayName;
163
159
 
164
160
  // src/components/ui/form.tsx
165
161
  var Form = reactHookForm.FormProvider;
166
- var FormFieldContext = React13__namespace.createContext(
162
+ var FormFieldContext = React12__namespace.createContext(
167
163
  {}
168
164
  );
169
165
  var FormField = ({
170
166
  ...props
171
167
  }) => {
172
- return /* @__PURE__ */ React13__namespace.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React13__namespace.createElement(reactHookForm.Controller, { ...props }));
168
+ return /* @__PURE__ */ React12__namespace.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React12__namespace.createElement(reactHookForm.Controller, { ...props }));
173
169
  };
174
170
  var useFormField = () => {
175
- const fieldContext = React13__namespace.useContext(FormFieldContext);
176
- const itemContext = React13__namespace.useContext(FormItemContext);
171
+ const fieldContext = React12__namespace.useContext(FormFieldContext);
172
+ const itemContext = React12__namespace.useContext(FormItemContext);
177
173
  const { getFieldState, formState } = reactHookForm.useFormContext();
178
174
  const fieldState = getFieldState(fieldContext.name, formState);
179
175
  if (!fieldContext) {
@@ -189,30 +185,30 @@ var useFormField = () => {
189
185
  ...fieldState
190
186
  };
191
187
  };
192
- var FormItemContext = React13__namespace.createContext(
188
+ var FormItemContext = React12__namespace.createContext(
193
189
  {}
194
190
  );
195
- var FormItem = React13__namespace.forwardRef(({ className, ...props }, ref) => {
196
- const id = React13__namespace.useId();
197
- return /* @__PURE__ */ React13__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React13__namespace.createElement("div", { ref, className: chunkGSOMMLCG_js.cn("sb-space-y-2", className), ...props }));
191
+ var FormItem = React12__namespace.forwardRef(({ className, ...props }, ref) => {
192
+ const id = React12__namespace.useId();
193
+ return /* @__PURE__ */ React12__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React12__namespace.createElement("div", { ref, className: chunkJ36K7WVK_js.cn("sb-space-y-2", className), ...props }));
198
194
  });
199
195
  FormItem.displayName = "FormItem";
200
- var FormLabel = React13__namespace.forwardRef(({ className, ...props }, ref) => {
196
+ var FormLabel = React12__namespace.forwardRef(({ className, ...props }, ref) => {
201
197
  const { error, formItemId } = useFormField();
202
- return /* @__PURE__ */ React13__namespace.createElement(
198
+ return /* @__PURE__ */ React12__namespace.createElement(
203
199
  Label,
204
200
  {
205
201
  ref,
206
- className: chunkGSOMMLCG_js.cn(error && "sb-text-destructive", className),
202
+ className: chunkJ36K7WVK_js.cn(error && "sb-text-destructive", className),
207
203
  htmlFor: formItemId,
208
204
  ...props
209
205
  }
210
206
  );
211
207
  });
212
208
  FormLabel.displayName = "FormLabel";
213
- var FormControl = React13__namespace.forwardRef(({ ...props }, ref) => {
209
+ var FormControl = React12__namespace.forwardRef(({ ...props }, ref) => {
214
210
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
215
- return /* @__PURE__ */ React13__namespace.createElement(
211
+ return /* @__PURE__ */ React12__namespace.createElement(
216
212
  reactSlot.Slot,
217
213
  {
218
214
  ref,
@@ -224,14 +220,14 @@ var FormControl = React13__namespace.forwardRef(({ ...props }, ref) => {
224
220
  );
225
221
  });
226
222
  FormControl.displayName = "FormControl";
227
- var FormDescription = React13__namespace.forwardRef(({ className, ...props }, ref) => {
223
+ var FormDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => {
228
224
  const { formDescriptionId } = useFormField();
229
- return /* @__PURE__ */ React13__namespace.createElement(
225
+ return /* @__PURE__ */ React12__namespace.createElement(
230
226
  "p",
231
227
  {
232
228
  ref,
233
229
  id: formDescriptionId,
234
- className: chunkGSOMMLCG_js.cn(
230
+ className: chunkJ36K7WVK_js.cn(
235
231
  "sb-text-sm sb-font-roboto sb-text-muted-foreground",
236
232
  className
237
233
  ),
@@ -240,18 +236,18 @@ var FormDescription = React13__namespace.forwardRef(({ className, ...props }, re
240
236
  );
241
237
  });
242
238
  FormDescription.displayName = "FormDescription";
243
- var FormMessage = React13__namespace.forwardRef(({ className, children, ...props }, ref) => {
239
+ var FormMessage = React12__namespace.forwardRef(({ className, children, ...props }, ref) => {
244
240
  const { error, formMessageId } = useFormField();
245
241
  const body = error ? String(error?.message) : children;
246
242
  if (!body) {
247
243
  return null;
248
244
  }
249
- return /* @__PURE__ */ React13__namespace.createElement(
245
+ return /* @__PURE__ */ React12__namespace.createElement(
250
246
  "p",
251
247
  {
252
248
  ref,
253
249
  id: formMessageId,
254
- className: chunkGSOMMLCG_js.cn(
250
+ className: chunkJ36K7WVK_js.cn(
255
251
  "sb-text-sm sb-font-roboto sb-font-medium sb-text-destructive",
256
252
  className
257
253
  ),
@@ -262,11 +258,11 @@ var FormMessage = React13__namespace.forwardRef(({ className, children, ...props
262
258
  });
263
259
  FormMessage.displayName = "FormMessage";
264
260
  var Tabs = TabsPrimitive__namespace.Root;
265
- var TabsList = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
261
+ var TabsList = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
266
262
  TabsPrimitive__namespace.List,
267
263
  {
268
264
  ref,
269
- className: chunkGSOMMLCG_js.cn(
265
+ className: chunkJ36K7WVK_js.cn(
270
266
  "sb-flex sb-items-center sb-border-b sb-px-4 sb-space-x-6",
271
267
  className
272
268
  ),
@@ -274,11 +270,11 @@ var TabsList = React13__namespace.forwardRef(({ className, ...props }, ref) => /
274
270
  }
275
271
  ));
276
272
  TabsList.displayName = TabsPrimitive__namespace.List.displayName;
277
- var TabsTrigger = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
273
+ var TabsTrigger = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
278
274
  TabsPrimitive__namespace.Trigger,
279
275
  {
280
276
  ref,
281
- className: chunkGSOMMLCG_js.cn(
277
+ className: chunkJ36K7WVK_js.cn(
282
278
  "sb-inline-flex sb-font-roboto sb-items-center sb-justify-center sb-whitespace-nowrap sb-py-3 sb-text-sm sb-font-medium sb-transition-all focus-visible:sb-outline-none disabled:sb-pointer-events-none disabled:sb-opacity-50 data-[state=active]:sb-border-black sb-border-b-2 sb-border-transparent data-[state=active]:sb-text-foreground sb-text-muted-foreground",
283
279
  className
284
280
  ),
@@ -286,11 +282,11 @@ var TabsTrigger = React13__namespace.forwardRef(({ className, ...props }, ref) =
286
282
  }
287
283
  ));
288
284
  TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
289
- var TabsContent = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
285
+ var TabsContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
290
286
  TabsPrimitive__namespace.Content,
291
287
  {
292
288
  ref,
293
- className: chunkGSOMMLCG_js.cn(
289
+ className: chunkJ36K7WVK_js.cn(
294
290
  "sb-ring-offset-background sb-font-roboto focus-visible:sb-outline-none focus-visible:sb-ring-2 focus-visible:sb-ring-ring focus-visible:sb-ring-offset-2",
295
291
  className
296
292
  ),
@@ -298,21 +294,13 @@ var TabsContent = React13__namespace.forwardRef(({ className, ...props }, ref) =
298
294
  }
299
295
  ));
300
296
  TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
301
- var Image = (props) => {
302
- if (typeof NextImage__default.default !== "undefined") {
303
- return /* @__PURE__ */ React13__namespace.createElement(NextImage__default.default.default, { ...props });
304
- }
305
- return /* @__PURE__ */ React13__namespace.createElement("img", { ...props });
306
- };
307
-
308
- // src/components/ui/media-input.tsx
309
297
  var MediaInput = (props) => {
310
298
  const { onFilesChange, limit = 32, multiple = false, onError } = props;
311
- const id = React13__namespace.useId();
312
- const [queue, setQueue] = React13__namespace.useState([]);
313
- const [sources, setSources] = React13__namespace.useState(props.files ?? []);
299
+ const id = React12__namespace.useId();
300
+ const [queue, setQueue] = React12__namespace.useState([]);
301
+ const [sources, setSources] = React12__namespace.useState(props.files ?? []);
314
302
  const maxConcurrentUploads = 3;
315
- const uploadingCountRef = React13__namespace.useRef(0);
303
+ const uploadingCountRef = React12__namespace.useRef(0);
316
304
  const handleFilesAdd = async (e) => {
317
305
  const files = e.target.files;
318
306
  if (!files || files.length === 0) {
@@ -383,42 +371,42 @@ var MediaInput = (props) => {
383
371
  body: JSON.stringify({ src })
384
372
  });
385
373
  };
386
- return /* @__PURE__ */ React13__namespace.createElement("div", { className: chunkGSOMMLCG_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React13__namespace.createElement(MediaInputItem, { key: src, className: chunkGSOMMLCG_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React13__namespace.createElement(
387
- Image,
374
+ return /* @__PURE__ */ React12__namespace.createElement("div", { className: chunkJ36K7WVK_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React12__namespace.createElement(MediaInputItem, { key: src, className: chunkJ36K7WVK_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React12__namespace.createElement(
375
+ chunkJ36K7WVK_js.Image,
388
376
  {
389
377
  src,
390
378
  alt: "",
391
379
  fill: true,
392
380
  className: "sb-absolute sb-inset-0 sb-object-cover sb-pointer-events-none"
393
381
  }
394
- ), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-absolute sb-right-1 sb-top-1 sb-z-30 sb-flex sb-items-center sb-justify-end sb-gap-3 sb-opacity-0 sb-transition-opacity group-hover:sb-opacity-100" }, /* @__PURE__ */ React13__namespace.createElement(
382
+ ), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-absolute sb-right-1 sb-top-1 sb-z-30 sb-flex sb-items-center sb-justify-end sb-gap-3 sb-opacity-0 sb-transition-opacity group-hover:sb-opacity-100" }, /* @__PURE__ */ React12__namespace.createElement(
395
383
  "button",
396
384
  {
397
385
  className: "sb-flex sb-h-8 sb-w-8 sb-items-center sb-justify-center sb-rounded-full sb-border sb-bg-secondary sb-text-secondary-foreground sb-opacity-90 sb-shadow sb-transition-opacity hover:sb-opacity-100",
398
386
  onClick: () => handleSourceDelete(src)
399
387
  },
400
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.Trash2Icon, { className: "sb-h-4 sb-w-4" })
401
- )))), queue.map((_, i) => /* @__PURE__ */ React13__namespace.createElement(
388
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.Trash2Icon, { className: "sb-h-4 sb-w-4" })
389
+ )))), queue.map((_, i) => /* @__PURE__ */ React12__namespace.createElement(
402
390
  MediaInputItem,
403
391
  {
404
392
  key: i,
405
- className: chunkGSOMMLCG_js.cn(
393
+ className: chunkJ36K7WVK_js.cn(
406
394
  "sb-flex sb-h-28 sb-w-28 sb-items-center sb-justify-center",
407
395
  props.itemClassName
408
396
  )
409
397
  },
410
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.Loader2Icon, { className: "sb-h-6 sb-w-6 sb-animate-spin" })
411
- )), multiple || !multiple && !sources.length && !queue.length ? /* @__PURE__ */ React13__namespace.createElement(
398
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.Loader2Icon, { className: "sb-h-6 sb-w-6 sb-animate-spin" })
399
+ )), multiple || !multiple && !sources.length && !queue.length ? /* @__PURE__ */ React12__namespace.createElement(
412
400
  "label",
413
401
  {
414
402
  htmlFor: id,
415
- className: chunkGSOMMLCG_js.cn(
403
+ className: chunkJ36K7WVK_js.cn(
416
404
  "sb-flex sb-h-28 sb-w-28 sb-cursor-pointer sb-items-center sb-justify-center sb-rounded-lg sb-border",
417
405
  props.itemClassName
418
406
  )
419
407
  },
420
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.PlusIcon, { className: "sb-h-6 sb-w-6" }),
421
- /* @__PURE__ */ React13__namespace.createElement(
408
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.PlusIcon, { className: "sb-h-6 sb-w-6" }),
409
+ /* @__PURE__ */ React12__namespace.createElement(
422
410
  "input",
423
411
  {
424
412
  id,
@@ -432,10 +420,10 @@ var MediaInput = (props) => {
432
420
  ) : null);
433
421
  };
434
422
  var MediaInputItem = (props) => {
435
- return /* @__PURE__ */ React13__namespace.createElement(
423
+ return /* @__PURE__ */ React12__namespace.createElement(
436
424
  "div",
437
425
  {
438
- className: chunkGSOMMLCG_js.cn(
426
+ className: chunkJ36K7WVK_js.cn(
439
427
  "sb-relative sb-h-28 sb-w-28 sb-overflow-hidden sb-rounded-lg sb-border",
440
428
  props.className
441
429
  )
@@ -475,38 +463,38 @@ var BackgroundPicker = (props) => {
475
463
  "url(https://images.unsplash.com/photo-1688822863426-8c5f9b257090?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2532&q=90)",
476
464
  "url(https://images.unsplash.com/photo-1691225850735-6e4e51834cad?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2532&q=90)"
477
465
  ];
478
- const defaultTab = React13__namespace.useMemo(() => {
466
+ const defaultTab = React12__namespace.useMemo(() => {
479
467
  if (background.includes("url"))
480
468
  return "image";
481
469
  if (background.includes("gradient"))
482
470
  return "gradient";
483
471
  return "solid";
484
472
  }, [background]);
485
- return /* @__PURE__ */ React13__namespace.createElement(Popover, null, /* @__PURE__ */ React13__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React13__namespace.createElement(
486
- chunkGSOMMLCG_js.Button,
473
+ return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
474
+ chunkXEMUNFCV_js.Button,
487
475
  {
488
476
  variant: "outline",
489
477
  size: "sm",
490
- className: chunkGSOMMLCG_js.cn(
478
+ className: chunkJ36K7WVK_js.cn(
491
479
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
492
480
  !background && "sb-text-muted-foreground",
493
481
  className
494
482
  )
495
483
  },
496
- /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-w-full sb-flex sb-items-center sb-gap-2" }, background ? /* @__PURE__ */ React13__namespace.createElement(
484
+ /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-w-full sb-flex sb-items-center sb-gap-2" }, background ? /* @__PURE__ */ React12__namespace.createElement(
497
485
  "div",
498
486
  {
499
487
  className: "sb-h-4 sb-w-4 sb-rounded !sb-bg-center !sb-bg-cover sb-transition-all sb-border",
500
488
  style: { background }
501
489
  }
502
- ) : /* @__PURE__ */ React13__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb-h-4 sb-w-4" }), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-truncate sb-flex-1" }, background ? background : "Kies een achtergrond"))
503
- )), /* @__PURE__ */ React13__namespace.createElement(PopoverContent, { className: "sb-w-64 sb-p-0" }, /* @__PURE__ */ React13__namespace.createElement(Tabs, { defaultValue: defaultTab }, /* @__PURE__ */ React13__namespace.createElement(TabsList, { className: "sb-w-full" }, /* @__PURE__ */ React13__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "solid" }, "Solid"), /* @__PURE__ */ React13__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "gradient" }, "Gradient"), /* @__PURE__ */ React13__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "image" }, "Image")), /* @__PURE__ */ React13__namespace.createElement(
490
+ ) : /* @__PURE__ */ React12__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb-h-4 sb-w-4" }), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-truncate sb-flex-1" }, background ? background : "Kies een achtergrond"))
491
+ )), /* @__PURE__ */ React12__namespace.createElement(PopoverContent, { className: "sb-w-64 sb-p-0" }, /* @__PURE__ */ React12__namespace.createElement(Tabs, { defaultValue: defaultTab }, /* @__PURE__ */ React12__namespace.createElement(TabsList, { className: "sb-w-full" }, /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "solid" }, "Solid"), /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "gradient" }, "Gradient"), /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "image" }, "Image")), /* @__PURE__ */ React12__namespace.createElement(
504
492
  TabsContent,
505
493
  {
506
494
  value: "solid",
507
495
  className: "data-[state=active]:sb-flex sb-flex-wrap sb-gap-1 sb-p-4"
508
496
  },
509
- solids.map((s) => /* @__PURE__ */ React13__namespace.createElement(
497
+ solids.map((s) => /* @__PURE__ */ React12__namespace.createElement(
510
498
  "div",
511
499
  {
512
500
  key: s,
@@ -515,13 +503,13 @@ var BackgroundPicker = (props) => {
515
503
  onClick: () => onBackgroundChange(s)
516
504
  }
517
505
  ))
518
- ), /* @__PURE__ */ React13__namespace.createElement(
506
+ ), /* @__PURE__ */ React12__namespace.createElement(
519
507
  TabsContent,
520
508
  {
521
509
  value: "gradient",
522
510
  className: "data-[state=active]:sb-flex sb-flex-wrap sb-gap-1 sb-p-4"
523
511
  },
524
- gradients.map((s) => /* @__PURE__ */ React13__namespace.createElement(
512
+ gradients.map((s) => /* @__PURE__ */ React12__namespace.createElement(
525
513
  "div",
526
514
  {
527
515
  key: s,
@@ -530,7 +518,7 @@ var BackgroundPicker = (props) => {
530
518
  onClick: () => onBackgroundChange(s)
531
519
  }
532
520
  ))
533
- ), /* @__PURE__ */ React13__namespace.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-p-4 sb-border-b" }, /* @__PURE__ */ React13__namespace.createElement(
521
+ ), /* @__PURE__ */ React12__namespace.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-p-4 sb-border-b" }, /* @__PURE__ */ React12__namespace.createElement(
534
522
  MediaInput,
535
523
  {
536
524
  className: "sb-grid sb-grid-cols-2 sb-gap-1",
@@ -546,7 +534,7 @@ var BackgroundPicker = (props) => {
546
534
  "media-input: Error: " + e?.description
547
535
  )
548
536
  }
549
- )), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-1 sb-p-4" }, images.map((s) => /* @__PURE__ */ React13__namespace.createElement(
537
+ )), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-1 sb-p-4" }, images.map((s) => /* @__PURE__ */ React12__namespace.createElement(
550
538
  "div",
551
539
  {
552
540
  key: s,
@@ -569,25 +557,25 @@ var ColorPicker = (props) => {
569
557
  "#009DD1",
570
558
  "#FF0000"
571
559
  ];
572
- return /* @__PURE__ */ React13__namespace.createElement(Popover, null, /* @__PURE__ */ React13__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React13__namespace.createElement(
573
- chunkGSOMMLCG_js.Button,
560
+ return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
561
+ chunkXEMUNFCV_js.Button,
574
562
  {
575
563
  variant: "outline",
576
564
  size: "sm",
577
- className: chunkGSOMMLCG_js.cn(
565
+ className: chunkJ36K7WVK_js.cn(
578
566
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
579
567
  !color && "sb-text-muted-foreground",
580
568
  className
581
569
  )
582
570
  },
583
- /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-w-full sb-flex sb-items-center sb-gap-2" }, color ? /* @__PURE__ */ React13__namespace.createElement(
571
+ /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-w-full sb-flex sb-items-center sb-gap-2" }, color ? /* @__PURE__ */ React12__namespace.createElement(
584
572
  "div",
585
573
  {
586
574
  className: "sb-h-4 sb-w-4 sb-rounded !sb-bg-center !sb-bg-cover sb-transition-all sb-border",
587
575
  style: { background: color }
588
576
  }
589
- ) : /* @__PURE__ */ React13__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb-h-4 sb-w-4" }), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-truncate sb-flex-1" }, color ? color : "Kies een kleur"))
590
- )), /* @__PURE__ */ React13__namespace.createElement(PopoverContent, { className: "sb-w-64 sb-p-4 sb-flex sb-flex-wrap sb-gap-1" }, colors.map((s) => /* @__PURE__ */ React13__namespace.createElement(
577
+ ) : /* @__PURE__ */ React12__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb-h-4 sb-w-4" }), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-truncate sb-flex-1" }, color ? color : "Kies een kleur"))
578
+ )), /* @__PURE__ */ React12__namespace.createElement(PopoverContent, { className: "sb-w-64 sb-p-4 sb-flex sb-flex-wrap sb-gap-1" }, colors.map((s) => /* @__PURE__ */ React12__namespace.createElement(
591
579
  "div",
592
580
  {
593
581
  key: s,
@@ -597,13 +585,13 @@ var ColorPicker = (props) => {
597
585
  }
598
586
  ))));
599
587
  };
600
- var Input = React13__namespace.forwardRef(
588
+ var Input = React12__namespace.forwardRef(
601
589
  ({ className, type, ...props }, ref) => {
602
- return /* @__PURE__ */ React13__namespace.createElement(
590
+ return /* @__PURE__ */ React12__namespace.createElement(
603
591
  "input",
604
592
  {
605
593
  type,
606
- className: chunkGSOMMLCG_js.cn(
594
+ className: chunkJ36K7WVK_js.cn(
607
595
  "sb-flex sb-h-8 sb-w-full sb-font-roboto sb-rounded-md sb-border sb-border-input sb-bg-background sb-px-3 sb-py-1 sb-text-sm sb-ring-offset-background file:sb-border-0 file:sb-bg-transparent file:sb-text-sm file:sb-font-medium placeholder:sb-text-muted-foreground focus-visible:sb-outline-none focus-visible:sb-ring-1 focus-visible:ring-sb-ring focus-visible:sb-ring-offset-2 disabled:sb-cursor-not-allowed disabled:sb-opacity-50",
608
596
  className
609
597
  ),
@@ -614,26 +602,26 @@ var Input = React13__namespace.forwardRef(
614
602
  }
615
603
  );
616
604
  Input.displayName = "Input";
617
- var AdvancedInput = React13__namespace.forwardRef(
605
+ var AdvancedInput = React12__namespace.forwardRef(
618
606
  ({ prepend, append, ...props }, ref) => {
619
- return /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-relative" }, /* @__PURE__ */ React13__namespace.createElement(Input, { ref, className: "sb-pl-9 sb-pr-7 sb-text-right", ...props }), prepend && /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-absolute sb-font-roboto sb-top-1/2 sb-left-3 sb--translate-y-1/2" }, prepend), append && /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-absolute sb-font-roboto sb-top-1/2 sb-right-3 sb--translate-y-1/2" }, append));
607
+ return /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-relative" }, /* @__PURE__ */ React12__namespace.createElement(Input, { ref, className: "sb-pl-9 sb-pr-7 sb-text-right", ...props }), prepend && /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-absolute sb-font-roboto sb-top-1/2 sb-left-3 sb--translate-y-1/2" }, prepend), append && /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-absolute sb-font-roboto sb-top-1/2 sb-right-3 sb--translate-y-1/2" }, append));
620
608
  }
621
609
  );
622
610
  AdvancedInput.displayName = "AdvancedInput";
623
- var Switch = React13__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
611
+ var Switch = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
624
612
  SwitchPrimitives__namespace.Root,
625
613
  {
626
- className: chunkGSOMMLCG_js.cn(
614
+ className: chunkJ36K7WVK_js.cn(
627
615
  "peer sb-inline-flex sb-h-6 sb-w-11 sb-shrink-0 sb-cursor-pointer sb-items-center sb-rounded-full sb-border-2 sb-border-transparent sb-transition-colors focus-visible:sb-outline-none focus-visible:sb-ring-2 focus-visible:sb-ring-ring focus-visible:sb-ring-offset-2 focus-visible:sb-ring-offset-background disabled:sb-cursor-not-allowed disabled:sb-opacity-50 data-[state=checked]:sb-bg-primary data-[state=unchecked]:sb-bg-input",
628
616
  className
629
617
  ),
630
618
  ...props,
631
619
  ref
632
620
  },
633
- /* @__PURE__ */ React13__namespace.createElement(
621
+ /* @__PURE__ */ React12__namespace.createElement(
634
622
  SwitchPrimitives__namespace.Thumb,
635
623
  {
636
- className: chunkGSOMMLCG_js.cn(
624
+ className: chunkJ36K7WVK_js.cn(
637
625
  "sb-pointer-events-none sb-block sb-h-5 sb-w-5 sb-rounded-full sb-bg-background sb-shadow-lg sb-ring-0 sb-transition-transform data-[state=checked]:sb-translate-x-5 data-[state=unchecked]:sb-translate-x-0"
638
626
  )
639
627
  }
@@ -660,11 +648,11 @@ var toggleVariants = classVarianceAuthority.cva(
660
648
  }
661
649
  }
662
650
  );
663
- var Toggle = React13__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ React13__namespace.createElement(
651
+ var Toggle = React12__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
664
652
  TogglePrimitive__namespace.Root,
665
653
  {
666
654
  ref,
667
- className: chunkGSOMMLCG_js.cn(toggleVariants({ variant, size, className })),
655
+ className: chunkJ36K7WVK_js.cn(toggleVariants({ variant, size, className })),
668
656
  ...props
669
657
  }
670
658
  ));
@@ -694,9 +682,9 @@ var designSchema = zod.z.object({
694
682
  });
695
683
  var ItemDesignForm = (props) => {
696
684
  const { item } = props;
697
- const { patchItem } = chunkGSOMMLCG_js.useBuilder();
698
- const initialPadding = chunkGSOMMLCG_js.spacing.parse(item.styles?.padding ?? "");
699
- const initialMargin = chunkGSOMMLCG_js.spacing.parse(item.styles?.margin ?? "");
685
+ const { patchItem } = chunkXEMUNFCV_js.useBuilder();
686
+ const initialPadding = chunkJ36K7WVK_js.spacing.parse(item.styles?.padding ?? "");
687
+ const initialMargin = chunkJ36K7WVK_js.spacing.parse(item.styles?.margin ?? "");
700
688
  const form = reactHookForm.useForm({
701
689
  resolver: zod$1.zodResolver(designSchema),
702
690
  defaultValues: {
@@ -704,7 +692,7 @@ var ItemDesignForm = (props) => {
704
692
  background: item.styles?.background ?? "",
705
693
  color: item.styles?.color ?? "",
706
694
  padding: {
707
- indipendent: chunkGSOMMLCG_js.spacing.isIndipendent(
695
+ indipendent: chunkJ36K7WVK_js.spacing.isIndipendent(
708
696
  item.styles?.padding ?? ""
709
697
  ),
710
698
  horizontal: initialPadding.left,
@@ -715,7 +703,7 @@ var ItemDesignForm = (props) => {
715
703
  bottom: initialPadding.bottom
716
704
  },
717
705
  margin: {
718
- indipendent: chunkGSOMMLCG_js.spacing.isIndipendent(
706
+ indipendent: chunkJ36K7WVK_js.spacing.isIndipendent(
719
707
  item.styles?.margin ?? ""
720
708
  ),
721
709
  horizontal: initialMargin.left,
@@ -741,7 +729,7 @@ var ItemDesignForm = (props) => {
741
729
  }
742
730
  });
743
731
  };
744
- React13__namespace.useEffect(() => {
732
+ React12__namespace.useEffect(() => {
745
733
  const subscription = form.watch(() => form.handleSubmit(onSubmit)());
746
734
  return () => subscription.unsubscribe();
747
735
  }, [form.watch, form.handleSubmit]);
@@ -749,135 +737,135 @@ var ItemDesignForm = (props) => {
749
737
  "padding.indipendent",
750
738
  "margin.indipendent"
751
739
  ]);
752
- return /* @__PURE__ */ React13__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React13__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-space-y-4 sb-p-4" }, /* @__PURE__ */ React13__namespace.createElement(
740
+ return /* @__PURE__ */ React12__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React12__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-space-y-4 sb-p-4" }, /* @__PURE__ */ React12__namespace.createElement(
753
741
  FormField,
754
742
  {
755
743
  control: form.control,
756
744
  name: "background",
757
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, "Achtergrond"), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
745
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, "Achtergrond"), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
758
746
  BackgroundPicker,
759
747
  {
760
748
  background: field.value,
761
749
  onBackgroundChange: field.onChange
762
750
  }
763
- )), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null))
751
+ )), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null))
764
752
  }
765
- ), /* @__PURE__ */ React13__namespace.createElement(
753
+ ), /* @__PURE__ */ React12__namespace.createElement(
766
754
  FormField,
767
755
  {
768
756
  control: form.control,
769
757
  name: "color",
770
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, "Inhoud kleur"), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
758
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, "Inhoud kleur"), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
771
759
  ColorPicker,
772
760
  {
773
761
  color: field.value,
774
762
  onColorChange: field.onChange
775
763
  }
776
- )), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null))
764
+ )), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null))
777
765
  }
778
- ), /* @__PURE__ */ React13__namespace.createElement("hr", null), /* @__PURE__ */ React13__namespace.createElement(
766
+ ), /* @__PURE__ */ React12__namespace.createElement("hr", null), /* @__PURE__ */ React12__namespace.createElement(
779
767
  FormField,
780
768
  {
781
769
  control: form.control,
782
770
  name: "container",
783
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, { className: "sb-flex sb-flex-row sb-items-center sb-justify-between sb-space-y-0" }, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, "Volledige breedte"), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
771
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, { className: "sb-flex sb-flex-row sb-items-center sb-justify-between sb-space-y-0" }, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, "Volledige breedte"), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
784
772
  Switch,
785
773
  {
786
774
  checked: !field.value,
787
775
  onCheckedChange: (v) => field.onChange(!v)
788
776
  }
789
- )), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null))
777
+ )), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null))
790
778
  }
791
- ), /* @__PURE__ */ React13__namespace.createElement("hr", null), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, "Padding"), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-grid sb-grid-cols-[1fr,auto] sb-gap-3" }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-items-center sb-gap-3" }, !indipendentPadding ? /* @__PURE__ */ React13__namespace.createElement(React13__namespace.Fragment, null, /* @__PURE__ */ React13__namespace.createElement(
779
+ ), /* @__PURE__ */ React12__namespace.createElement("hr", null), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, "Padding"), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-grid sb-grid-cols-[1fr,auto] sb-gap-3" }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-items-center sb-gap-3" }, !indipendentPadding ? /* @__PURE__ */ React12__namespace.createElement(React12__namespace.Fragment, null, /* @__PURE__ */ React12__namespace.createElement(
792
780
  FormField,
793
781
  {
794
782
  control: form.control,
795
783
  name: "padding.horizontal",
796
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
784
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
797
785
  AdvancedInput,
798
786
  {
799
787
  ...field,
800
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4" }),
801
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
788
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4" }),
789
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
802
790
  }
803
791
  )))
804
792
  }
805
- ), /* @__PURE__ */ React13__namespace.createElement(
793
+ ), /* @__PURE__ */ React12__namespace.createElement(
806
794
  FormField,
807
795
  {
808
796
  control: form.control,
809
797
  name: "padding.vertical",
810
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
798
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
811
799
  AdvancedInput,
812
800
  {
813
801
  ...field,
814
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
815
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
802
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
803
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
816
804
  }
817
805
  )))
818
806
  }
819
- )) : /* @__PURE__ */ React13__namespace.createElement(React13__namespace.Fragment, null, /* @__PURE__ */ React13__namespace.createElement(
807
+ )) : /* @__PURE__ */ React12__namespace.createElement(React12__namespace.Fragment, null, /* @__PURE__ */ React12__namespace.createElement(
820
808
  FormField,
821
809
  {
822
810
  control: form.control,
823
811
  name: "padding.left",
824
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
812
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
825
813
  AdvancedInput,
826
814
  {
827
815
  ...field,
828
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4" }),
829
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
816
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4" }),
817
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
830
818
  }
831
819
  )))
832
820
  }
833
- ), /* @__PURE__ */ React13__namespace.createElement(
821
+ ), /* @__PURE__ */ React12__namespace.createElement(
834
822
  FormField,
835
823
  {
836
824
  control: form.control,
837
825
  name: "padding.top",
838
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
826
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
839
827
  AdvancedInput,
840
828
  {
841
829
  ...field,
842
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
843
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
830
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
831
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
844
832
  }
845
833
  )))
846
834
  }
847
- ), /* @__PURE__ */ React13__namespace.createElement(
835
+ ), /* @__PURE__ */ React12__namespace.createElement(
848
836
  FormField,
849
837
  {
850
838
  control: form.control,
851
839
  name: "padding.right",
852
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
840
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
853
841
  AdvancedInput,
854
842
  {
855
843
  ...field,
856
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-180" }),
857
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
844
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-180" }),
845
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
858
846
  }
859
847
  )))
860
848
  }
861
- ), /* @__PURE__ */ React13__namespace.createElement(
849
+ ), /* @__PURE__ */ React12__namespace.createElement(
862
850
  FormField,
863
851
  {
864
852
  control: form.control,
865
853
  name: "padding.bottom",
866
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
854
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
867
855
  AdvancedInput,
868
856
  {
869
857
  ...field,
870
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb--rotate-90" }),
871
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
858
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb--rotate-90" }),
859
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
872
860
  }
873
861
  )))
874
862
  }
875
- ))), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-shrink-0" }, /* @__PURE__ */ React13__namespace.createElement(
863
+ ))), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-shrink-0" }, /* @__PURE__ */ React12__namespace.createElement(
876
864
  FormField,
877
865
  {
878
866
  control: form.control,
879
867
  name: "padding.indipendent",
880
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
868
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
881
869
  Toggle,
882
870
  {
883
871
  className: "sb-shrink-0 sb-flex sb-w-8 sb-h-8 sb-p-0",
@@ -886,99 +874,99 @@ var ItemDesignForm = (props) => {
886
874
  pressed: field.value,
887
875
  onPressedChange: field.onChange
888
876
  },
889
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.ScanIcon, { className: "sb-h-4 sb-w-4" })
877
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.ScanIcon, { className: "sb-h-4 sb-w-4" })
890
878
  ))
891
879
  }
892
- ))), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null)), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, "Margin"), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-grid sb-grid-cols-[1fr,auto] sb-gap-3" }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-items-center sb-gap-3" }, !indipendentMargin ? /* @__PURE__ */ React13__namespace.createElement(React13__namespace.Fragment, null, /* @__PURE__ */ React13__namespace.createElement(
880
+ ))), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null)), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, "Margin"), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-grid sb-grid-cols-[1fr,auto] sb-gap-3" }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-items-center sb-gap-3" }, !indipendentMargin ? /* @__PURE__ */ React12__namespace.createElement(React12__namespace.Fragment, null, /* @__PURE__ */ React12__namespace.createElement(
893
881
  FormField,
894
882
  {
895
883
  control: form.control,
896
884
  name: "margin.horizontal",
897
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
885
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
898
886
  AdvancedInput,
899
887
  {
900
888
  ...field,
901
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4" }),
902
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
889
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4" }),
890
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
903
891
  }
904
892
  )))
905
893
  }
906
- ), /* @__PURE__ */ React13__namespace.createElement(
894
+ ), /* @__PURE__ */ React12__namespace.createElement(
907
895
  FormField,
908
896
  {
909
897
  control: form.control,
910
898
  name: "margin.vertical",
911
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
899
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
912
900
  AdvancedInput,
913
901
  {
914
902
  ...field,
915
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
916
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
903
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
904
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
917
905
  }
918
906
  )))
919
907
  }
920
- )) : /* @__PURE__ */ React13__namespace.createElement(React13__namespace.Fragment, null, /* @__PURE__ */ React13__namespace.createElement(
908
+ )) : /* @__PURE__ */ React12__namespace.createElement(React12__namespace.Fragment, null, /* @__PURE__ */ React12__namespace.createElement(
921
909
  FormField,
922
910
  {
923
911
  control: form.control,
924
912
  name: "margin.left",
925
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
913
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
926
914
  AdvancedInput,
927
915
  {
928
916
  ...field,
929
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4" }),
930
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
917
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4" }),
918
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
931
919
  }
932
920
  )))
933
921
  }
934
- ), /* @__PURE__ */ React13__namespace.createElement(
922
+ ), /* @__PURE__ */ React12__namespace.createElement(
935
923
  FormField,
936
924
  {
937
925
  control: form.control,
938
926
  name: "margin.top",
939
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
927
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
940
928
  AdvancedInput,
941
929
  {
942
930
  ...field,
943
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
944
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
931
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
932
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
945
933
  }
946
934
  )))
947
935
  }
948
- ), /* @__PURE__ */ React13__namespace.createElement(
936
+ ), /* @__PURE__ */ React12__namespace.createElement(
949
937
  FormField,
950
938
  {
951
939
  control: form.control,
952
940
  name: "margin.right",
953
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
941
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
954
942
  AdvancedInput,
955
943
  {
956
944
  ...field,
957
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-180" }),
958
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
945
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-180" }),
946
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
959
947
  }
960
948
  )))
961
949
  }
962
- ), /* @__PURE__ */ React13__namespace.createElement(
950
+ ), /* @__PURE__ */ React12__namespace.createElement(
963
951
  FormField,
964
952
  {
965
953
  control: form.control,
966
954
  name: "margin.bottom",
967
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
955
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
968
956
  AdvancedInput,
969
957
  {
970
958
  ...field,
971
- prepend: /* @__PURE__ */ React13__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb--rotate-90" }),
972
- append: /* @__PURE__ */ React13__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
959
+ prepend: /* @__PURE__ */ React12__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb--rotate-90" }),
960
+ append: /* @__PURE__ */ React12__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
973
961
  }
974
962
  )))
975
963
  }
976
- ))), /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-shrink-0" }, /* @__PURE__ */ React13__namespace.createElement(
964
+ ))), /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-shrink-0" }, /* @__PURE__ */ React12__namespace.createElement(
977
965
  FormField,
978
966
  {
979
967
  control: form.control,
980
968
  name: "margin.indipendent",
981
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
969
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
982
970
  Toggle,
983
971
  {
984
972
  className: "sb-shrink-0 sb-flex sb-w-8 sb-h-8 sb-p-0",
@@ -987,10 +975,10 @@ var ItemDesignForm = (props) => {
987
975
  pressed: field.value,
988
976
  onPressedChange: field.onChange
989
977
  },
990
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.ScanIcon, { className: "sb-h-4 sb-w-4" })
978
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.ScanIcon, { className: "sb-h-4 sb-w-4" })
991
979
  ))
992
980
  }
993
- ))), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null)))));
981
+ ))), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null)))));
994
982
  };
995
983
  function Calendar({
996
984
  className,
@@ -998,19 +986,19 @@ function Calendar({
998
986
  showOutsideDays = true,
999
987
  ...props
1000
988
  }) {
1001
- return /* @__PURE__ */ React13__namespace.createElement(
989
+ return /* @__PURE__ */ React12__namespace.createElement(
1002
990
  reactDayPicker.DayPicker,
1003
991
  {
1004
992
  showOutsideDays,
1005
- className: chunkGSOMMLCG_js.cn("sb-p-3 sb-font-roboto", className),
993
+ className: chunkJ36K7WVK_js.cn("sb-p-3 sb-font-roboto", className),
1006
994
  classNames: {
1007
995
  months: "sb-flex sb-flex-col sm:sb-flex-row sb-space-y-4 sm:sb-space-x-4 sm:sb-space-y-0",
1008
996
  month: "sb-space-y-4",
1009
997
  caption: "sb-flex sb-justify-center sb-pt-1 sb-relative sb-items-center",
1010
998
  caption_label: "sb-text-sm sb-font-medium",
1011
999
  nav: "sb-space-x-1 sb-flex sb-items-center",
1012
- nav_button: chunkGSOMMLCG_js.cn(
1013
- chunkGSOMMLCG_js.buttonVariants({ variant: "outline" }),
1000
+ nav_button: chunkJ36K7WVK_js.cn(
1001
+ chunkXEMUNFCV_js.buttonVariants({ variant: "outline" }),
1014
1002
  "sb-h-7 sb-w-7 sb-bg-transparent sb-p-0 sb-opacity-50 hover:sb-opacity-100"
1015
1003
  ),
1016
1004
  nav_button_previous: "sb-absolute sb-left-1",
@@ -1019,12 +1007,12 @@ function Calendar({
1019
1007
  head_row: "sb-flex",
1020
1008
  head_cell: "sb-text-muted-foreground sb-rounded-md sb-w-8 sb-font-normal sb-text-[0.8rem]",
1021
1009
  row: "sb-flex sb-w-full sb-mt-2",
1022
- cell: chunkGSOMMLCG_js.cn(
1010
+ cell: chunkJ36K7WVK_js.cn(
1023
1011
  "sb-relative sb-p-0 sb-text-center sb-text-sm focus-within:sb-relative focus-within:sb-z-20 [&:has([aria-selected])]:sb-bg-accent [&:has([aria-selected].day-outside)]:sb-bg-accent/50 [&:has([aria-selected].day-range-end)]:sb-rounded-r-md",
1024
1012
  props.mode === "range" ? "[&:has(>.day-range-end)]:sb-rounded-r-md [&:has(>.day-range-start)]:sb-rounded-l-md first:[&:has([aria-selected])]:sb-rounded-l-md last:[&:has([aria-selected])]:sb-rounded-r-md" : "[&:has([aria-selected])]:sb-rounded-md"
1025
1013
  ),
1026
- day: chunkGSOMMLCG_js.cn(
1027
- chunkGSOMMLCG_js.buttonVariants({ variant: "ghost" }),
1014
+ day: chunkJ36K7WVK_js.cn(
1015
+ chunkXEMUNFCV_js.buttonVariants({ variant: "ghost" }),
1028
1016
  "sb-h-8 sb-w-8 sb-p-0 sb-font-normal aria-selected:sb-opacity-100"
1029
1017
  ),
1030
1018
  day_range_start: "day-range-start",
@@ -1038,20 +1026,20 @@ function Calendar({
1038
1026
  ...classNames
1039
1027
  },
1040
1028
  components: {
1041
- IconLeft: () => /* @__PURE__ */ React13__namespace.createElement(lucideReact.ChevronLeftIcon, { className: "sb-h-4 sb-w-4" }),
1042
- IconRight: () => /* @__PURE__ */ React13__namespace.createElement(lucideReact.ChevronRightIcon, { className: "sb-h-4 sb-w-4" })
1029
+ IconLeft: () => /* @__PURE__ */ React12__namespace.createElement(lucideReact.ChevronLeftIcon, { className: "sb-h-4 sb-w-4" }),
1030
+ IconRight: () => /* @__PURE__ */ React12__namespace.createElement(lucideReact.ChevronRightIcon, { className: "sb-h-4 sb-w-4" })
1043
1031
  },
1044
1032
  ...props
1045
1033
  }
1046
1034
  );
1047
1035
  }
1048
1036
  Calendar.displayName = "Calendar";
1049
- var Textarea = React13__namespace.forwardRef(
1037
+ var Textarea = React12__namespace.forwardRef(
1050
1038
  ({ className, ...props }, ref) => {
1051
- return /* @__PURE__ */ React13__namespace.createElement(
1039
+ return /* @__PURE__ */ React12__namespace.createElement(
1052
1040
  "textarea",
1053
1041
  {
1054
- className: chunkGSOMMLCG_js.cn(
1042
+ className: chunkJ36K7WVK_js.cn(
1055
1043
  "sb-flex sb-min-h-[60px] sb-font-roboto sb-w-full sb-rounded-md sb-border sb-border-input sb-bg-transparent sb-px-3 sb-py-2 sb-text-sm sb-shadow-sm placeholder:sb-text-muted-foreground focus-visible:sb-outline-none focus-visible:sb-ring-1 focus-visible:sb-ring-ring disabled:sb-cursor-not-allowed disabled:sb-opacity-50",
1056
1044
  className
1057
1045
  ),
@@ -1066,8 +1054,8 @@ Textarea.displayName = "Textarea";
1066
1054
  // src/components/container-item-form.tsx
1067
1055
  var ContainerItemForm = (props) => {
1068
1056
  const { item } = props;
1069
- const { patchItem } = chunkGSOMMLCG_js.useBuilder();
1070
- const component = chunkUZFAGH6G_js.builder.getComponent(item.component);
1057
+ const { patchItem } = chunkXEMUNFCV_js.useBuilder();
1058
+ const component = chunkJ36K7WVK_js.builder.getComponent(item.component);
1071
1059
  if (!component) {
1072
1060
  throw new Error(
1073
1061
  `[simple-builder]: Component with id ${item.component} not found in container item form component`
@@ -1087,17 +1075,17 @@ var ContainerItemForm = (props) => {
1087
1075
  props: values
1088
1076
  });
1089
1077
  };
1090
- React13__namespace.useEffect(() => {
1078
+ React12__namespace.useEffect(() => {
1091
1079
  const subscription = form.watch(() => form.handleSubmit(onSubmit)());
1092
1080
  return () => subscription.unsubscribe();
1093
1081
  }, [form.watch, form.handleSubmit]);
1094
- return /* @__PURE__ */ React13__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React13__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-space-y-4 sb-p-4" }, (component.inputs || []).map((input) => /* @__PURE__ */ React13__namespace.createElement(
1082
+ return /* @__PURE__ */ React12__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React12__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-space-y-4 sb-p-4" }, (component.inputs || []).map((input) => /* @__PURE__ */ React12__namespace.createElement(
1095
1083
  FormField,
1096
1084
  {
1097
1085
  key: input.name,
1098
1086
  control: form.control,
1099
1087
  name: input.name,
1100
- render: ({ field }) => /* @__PURE__ */ React13__namespace.createElement(RenderInput, { type: input.type, input, field })
1088
+ render: ({ field }) => /* @__PURE__ */ React12__namespace.createElement(RenderInput, { type: input.type, input, field })
1101
1089
  }
1102
1090
  )))));
1103
1091
  };
@@ -1105,29 +1093,29 @@ var RenderInput = (props) => {
1105
1093
  const { type, input, field } = props;
1106
1094
  switch (type) {
1107
1095
  case "string":
1108
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(Input, { ...field })), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1096
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(Input, { ...field })), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1109
1097
  case "longText":
1110
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(Textarea, { ...field })), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1098
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(Textarea, { ...field })), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1111
1099
  case "richText":
1112
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(Textarea, { ...field })), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1100
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(Textarea, { ...field })), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1113
1101
  case "number":
1114
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(Input, { type: "number", ...field })), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1102
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(Input, { type: "number", ...field })), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1115
1103
  case "color":
1116
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange })), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1104
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange })), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1117
1105
  case "date":
1118
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(Popover, null, /* @__PURE__ */ React13__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React13__namespace.createElement(
1119
- chunkGSOMMLCG_js.Button,
1106
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
1107
+ chunkXEMUNFCV_js.Button,
1120
1108
  {
1121
1109
  variant: "outline",
1122
1110
  size: "sm",
1123
- className: chunkGSOMMLCG_js.cn(
1111
+ className: chunkJ36K7WVK_js.cn(
1124
1112
  "sb-w-full sb-flex sb-justify-start sb-text-left sb-font-normal",
1125
1113
  !field.value && "sb-text-muted-foreground"
1126
1114
  )
1127
1115
  },
1128
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.CalendarIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }),
1129
- field.value ? dateFns.format(field.value, "PPP") : /* @__PURE__ */ React13__namespace.createElement("span", null, "Pick a date")
1130
- )), /* @__PURE__ */ React13__namespace.createElement(PopoverContent, { className: "sb-w-auto sb-p-0", align: "start" }, /* @__PURE__ */ React13__namespace.createElement(
1116
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.CalendarIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }),
1117
+ field.value ? dateFns.format(field.value, "PPP") : /* @__PURE__ */ React12__namespace.createElement("span", null, "Pick a date")
1118
+ )), /* @__PURE__ */ React12__namespace.createElement(PopoverContent, { className: "sb-w-auto sb-p-0", align: "start" }, /* @__PURE__ */ React12__namespace.createElement(
1131
1119
  Calendar,
1132
1120
  {
1133
1121
  mode: "single",
@@ -1135,11 +1123,11 @@ var RenderInput = (props) => {
1135
1123
  onSelect: field.onChange,
1136
1124
  initialFocus: true
1137
1125
  }
1138
- )))), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1126
+ )))), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1139
1127
  case "boolean":
1140
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, { className: "sb-flex sb-flex-row sb-items-center sb-justify-between sb-space-y-0" }, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(Switch, { checked: field.value, onCheckedChange: field.onChange })), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1128
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, { className: "sb-flex sb-flex-row sb-items-center sb-justify-between sb-space-y-0" }, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(Switch, { checked: field.value, onCheckedChange: field.onChange })), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1141
1129
  case "file":
1142
- return /* @__PURE__ */ React13__namespace.createElement(FormItem, null, /* @__PURE__ */ React13__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React13__namespace.createElement(FormControl, null, /* @__PURE__ */ React13__namespace.createElement(
1130
+ return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(
1143
1131
  MediaInput,
1144
1132
  {
1145
1133
  className: "sb-grid sb-grid-cols-2 sb-gap-1",
@@ -1151,7 +1139,7 @@ var RenderInput = (props) => {
1151
1139
  "media-input: Error: " + e?.description
1152
1140
  )
1153
1141
  }
1154
- )), input.helperText && /* @__PURE__ */ React13__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React13__namespace.createElement(FormMessage, null));
1142
+ )), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1155
1143
  default:
1156
1144
  throw new Error(
1157
1145
  `[simple-builder]: Input type "${props.type}" not supported`
@@ -1162,29 +1150,29 @@ var RenderInput = (props) => {
1162
1150
  // src/components/container-item-toolbar.tsx
1163
1151
  var ContainerItemToolbar = (props) => {
1164
1152
  const { contentId, canBringUp = false, canBringDown = false } = props;
1165
- const { bringUp, bringDown } = chunkGSOMMLCG_js.useBuilder();
1166
- return /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-absolute sb-z-20 sb-top-1 sb-right-1 sb-rounded-md sb-shadow sb-flex sb-flex-col sb-gap-1 sb-p-1 sb-bg-card sb-text-card-foreground sb-item-toolbar sb-opacity-0 sb-transition-opacity" }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-h-10 sb-p-1 sb-border sb-border-input sb-bg-background sb-rounded-md sb-text-sm sb-font-medium sb-flex sb-gap-1 sb-items-center sb-justify-start" }, /* @__PURE__ */ React13__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React13__namespace.createElement(
1167
- chunkGSOMMLCG_js.Button,
1153
+ const { bringUp, bringDown } = chunkXEMUNFCV_js.useBuilder();
1154
+ return /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-absolute sb-z-20 sb-top-1 sb-right-1 sb-rounded-md sb-shadow sb-flex sb-flex-col sb-gap-1 sb-p-1 sb-bg-card sb-text-card-foreground sb-item-toolbar sb-opacity-0 sb-transition-opacity" }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-h-10 sb-p-1 sb-border sb-border-input sb-bg-background sb-rounded-md sb-text-sm sb-font-medium sb-flex sb-gap-1 sb-items-center sb-justify-start" }, /* @__PURE__ */ React12__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React12__namespace.createElement(
1155
+ chunkXEMUNFCV_js.Button,
1168
1156
  {
1169
1157
  variant: "ghost",
1170
1158
  className: "sb-w-8 sb-h-8 sb-p-0",
1171
1159
  onClick: () => bringUp(contentId),
1172
1160
  disabled: !canBringUp
1173
1161
  },
1174
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
1175
- ), /* @__PURE__ */ React13__namespace.createElement(
1176
- chunkGSOMMLCG_js.Button,
1162
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
1163
+ ), /* @__PURE__ */ React12__namespace.createElement(
1164
+ chunkXEMUNFCV_js.Button,
1177
1165
  {
1178
1166
  variant: "ghost",
1179
1167
  className: "sb-w-8 sb-h-8 sb-p-0",
1180
1168
  onClick: () => bringDown(contentId),
1181
1169
  disabled: !canBringDown
1182
1170
  },
1183
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.ArrowDown, { className: "sb-h-5 sb-w-5" })
1184
- ), /* @__PURE__ */ React13__namespace.createElement(DeleteButton, { contentId })));
1171
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.ArrowDown, { className: "sb-h-5 sb-w-5" })
1172
+ ), /* @__PURE__ */ React12__namespace.createElement(DeleteButton, { contentId })));
1185
1173
  };
1186
1174
  var EditButton = ({ id }) => {
1187
- return /* @__PURE__ */ React13__namespace.createElement(Popover, null, /* @__PURE__ */ React13__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React13__namespace.createElement(chunkGSOMMLCG_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React13__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React13__namespace.createElement(
1175
+ return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(chunkXEMUNFCV_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React12__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React12__namespace.createElement(
1188
1176
  PopoverContent,
1189
1177
  {
1190
1178
  side: "left",
@@ -1194,61 +1182,38 @@ var EditButton = ({ id }) => {
1194
1182
  className: "sb-p-0",
1195
1183
  collisionPadding: 16
1196
1184
  },
1197
- /* @__PURE__ */ React13__namespace.createElement(EditPopoverInner, { id })
1185
+ /* @__PURE__ */ React12__namespace.createElement(EditPopoverInner, { id })
1198
1186
  ));
1199
1187
  };
1200
1188
  var EditPopoverInner = (props) => {
1201
1189
  const { id } = props;
1202
- const { getItem } = chunkGSOMMLCG_js.useBuilder();
1190
+ const { getItem } = chunkXEMUNFCV_js.useBuilder();
1203
1191
  const item = getItem(id);
1204
1192
  if (!item) {
1205
1193
  throw new Error(
1206
1194
  `[simple-builder]: Item with id ${id} not found in container item form component`
1207
1195
  );
1208
1196
  }
1209
- return /* @__PURE__ */ React13__namespace.createElement(Tabs, null, /* @__PURE__ */ React13__namespace.createElement(TabsList, { defaultValue: "content" }, /* @__PURE__ */ React13__namespace.createElement(TabsTrigger, { value: "content" }, "Inhoud"), /* @__PURE__ */ React13__namespace.createElement(TabsTrigger, { value: "design" }, "Design")), /* @__PURE__ */ React13__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React13__namespace.createElement(ContainerItemForm, { item })), /* @__PURE__ */ React13__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React13__namespace.createElement(ItemDesignForm, { item })));
1197
+ return /* @__PURE__ */ React12__namespace.createElement(Tabs, null, /* @__PURE__ */ React12__namespace.createElement(TabsList, { defaultValue: "content" }, /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { value: "content" }, "Inhoud"), /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { value: "design" }, "Design")), /* @__PURE__ */ React12__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React12__namespace.createElement(ContainerItemForm, { item })), /* @__PURE__ */ React12__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React12__namespace.createElement(ItemDesignForm, { item })));
1210
1198
  };
1211
1199
  var DeleteButton = ({ contentId }) => {
1212
- const { deleteContent } = chunkGSOMMLCG_js.useBuilder();
1213
- return /* @__PURE__ */ React13__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React13__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React13__namespace.createElement(
1214
- chunkGSOMMLCG_js.Button,
1200
+ const { deleteContent } = chunkXEMUNFCV_js.useBuilder();
1201
+ return /* @__PURE__ */ React12__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
1202
+ chunkXEMUNFCV_js.Button,
1215
1203
  {
1216
1204
  variant: "ghost",
1217
1205
  className: "sb-w-8 sb-h-8 sb-p-0 sb-text-destructive"
1218
1206
  },
1219
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.Trash2Icon, { className: "sb-h-5 sb-w-5" })
1220
- )), /* @__PURE__ */ React13__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React13__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React13__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React13__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React13__namespace.createElement(
1207
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.Trash2Icon, { className: "sb-h-5 sb-w-5" })
1208
+ )), /* @__PURE__ */ React12__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React12__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React12__namespace.createElement(
1221
1209
  AlertDialogAction,
1222
1210
  {
1223
- className: chunkGSOMMLCG_js.buttonVariants({ variant: "destructive" }),
1211
+ className: chunkXEMUNFCV_js.buttonVariants({ variant: "destructive" }),
1224
1212
  onClick: () => deleteContent(contentId)
1225
1213
  },
1226
1214
  "Verwijderen"
1227
1215
  ))));
1228
1216
  };
1229
- var DesignWrapper = (props) => {
1230
- const { children, className, styles } = props;
1231
- const { container = true, background, ...rest } = styles || {};
1232
- const matches = typeof background === "string" ? background.match(/url\(["']?(.*?)["']?\)/) : void 0;
1233
- const src = matches ? matches[1] : void 0;
1234
- return /* @__PURE__ */ React13__namespace.createElement(
1235
- "div",
1236
- {
1237
- className: chunkGSOMMLCG_js.cn("sb-relative", className),
1238
- style: { ...!src && { background }, ...rest }
1239
- },
1240
- src && /* @__PURE__ */ React13__namespace.createElement(
1241
- Image,
1242
- {
1243
- src,
1244
- alt: "",
1245
- fill: true,
1246
- className: "sb-object-cover sb-absolute sb-inset-0 sb-pointer-events-none sb--z-[1]"
1247
- }
1248
- ),
1249
- container ? /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-container sb-mx-auto" }, children) : children
1250
- );
1251
- };
1252
1217
 
1253
1218
  // src/components/build-container-client.tsx
1254
1219
  var BuildContainerInner = (props) => {
@@ -1259,14 +1224,14 @@ var BuildContainerInner = (props) => {
1259
1224
  "[simple-builder]: Multiple content blocks detected when using property multiple false."
1260
1225
  );
1261
1226
  }
1262
- return /* @__PURE__ */ React13__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React13__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React13__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React13__namespace.createElement(React13__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React13__namespace.createElement(DesignWrapper, { styles: item.styles }, chunkUZFAGH6G_js.builder.bindComponent(item, true)), /* @__PURE__ */ React13__namespace.createElement(
1227
+ return /* @__PURE__ */ React12__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React12__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React12__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React12__namespace.createElement(React12__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React12__namespace.createElement(chunkJ36K7WVK_js.DesignWrapper, { styles: item.styles }, chunkJ36K7WVK_js.builder.bindComponent(item, true)), /* @__PURE__ */ React12__namespace.createElement(
1263
1228
  ContainerItemToolbar,
1264
1229
  {
1265
1230
  contentId: item.id,
1266
1231
  canBringUp: i > 0,
1267
1232
  canBringDown: i < items.length - 1
1268
1233
  }
1269
- )), multiple && /* @__PURE__ */ React13__namespace.createElement(
1234
+ )), multiple && /* @__PURE__ */ React12__namespace.createElement(
1270
1235
  AddContentDividerButton,
1271
1236
  {
1272
1237
  parent: id,
@@ -1277,12 +1242,12 @@ var BuildContainerInner = (props) => {
1277
1242
  };
1278
1243
  var build_container_client_default = BuildContainerInner;
1279
1244
  var AddContentButton = (props) => {
1280
- const components = chunkUZFAGH6G_js.builder.getComponents();
1281
- const { addContent } = chunkGSOMMLCG_js.useBuilder();
1282
- return /* @__PURE__ */ React13__namespace.createElement(Popover, null, /* @__PURE__ */ React13__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React13__namespace.createElement(PopoverContent, { className: "sb-p-1" }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-2" }, components.map((component) => {
1245
+ const components = chunkJ36K7WVK_js.builder.getComponents();
1246
+ const { addContent } = chunkXEMUNFCV_js.useBuilder();
1247
+ return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React12__namespace.createElement(PopoverContent, { className: "sb-p-1" }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-2" }, components.map((component) => {
1283
1248
  const Icon = component.icon ?? lucideReact.ImageIcon;
1284
- return /* @__PURE__ */ React13__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React13__namespace.createElement(
1285
- chunkGSOMMLCG_js.Button,
1249
+ return /* @__PURE__ */ React12__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
1250
+ chunkXEMUNFCV_js.Button,
1286
1251
  {
1287
1252
  variant: "ghost",
1288
1253
  className: "sb-justify-start",
@@ -1295,22 +1260,22 @@ var AddContentButton = (props) => {
1295
1260
  );
1296
1261
  }
1297
1262
  },
1298
- /* @__PURE__ */ React13__namespace.createElement(Icon, { className: "sb-mr-2 sb-h-4 sb-w-4 sb-shrink-0" }),
1263
+ /* @__PURE__ */ React12__namespace.createElement(Icon, { className: "sb-mr-2 sb-h-4 sb-w-4 sb-shrink-0" }),
1299
1264
  component.friendlyName ?? component.name
1300
1265
  ));
1301
1266
  }))));
1302
1267
  };
1303
1268
  var AddContentPlaceholder = (props) => {
1304
- return /* @__PURE__ */ React13__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React13__namespace.createElement(chunkGSOMMLCG_js.Button, { size: "sm" }, /* @__PURE__ */ React13__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1269
+ return /* @__PURE__ */ React12__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React12__namespace.createElement(chunkXEMUNFCV_js.Button, { size: "sm" }, /* @__PURE__ */ React12__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1305
1270
  };
1306
1271
  var AddContentDividerButton = (props) => {
1307
- return /* @__PURE__ */ React13__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React13__namespace.createElement("div", { className: "sb-w-full sb-h-1 sb--my-[2px] sb-bg-primary sb-relative sb-z-20 sb-opacity-0 add-content-divider-button sb-transition-opacity" }, /* @__PURE__ */ React13__namespace.createElement(
1308
- chunkGSOMMLCG_js.Button,
1272
+ return /* @__PURE__ */ React12__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-w-full sb-h-1 sb--my-[2px] sb-bg-primary sb-relative sb-z-20 sb-opacity-0 add-content-divider-button sb-transition-opacity" }, /* @__PURE__ */ React12__namespace.createElement(
1273
+ chunkXEMUNFCV_js.Button,
1309
1274
  {
1310
1275
  size: "sm",
1311
1276
  className: "sb-absolute sb-left-1/2 sb-top-1/2 sb--translate-y-1/2 sb--translate-x-1/2 sb-shadow"
1312
1277
  },
1313
- /* @__PURE__ */ React13__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }),
1278
+ /* @__PURE__ */ React12__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }),
1314
1279
  "Blok Toevoegen"
1315
1280
  )));
1316
1281
  };