@charisol/plexo-sdk 1.4.0 → 1.4.2

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,605 +1,6 @@
1
- import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, x as g, y as _ } from "./iconSvgStatic-CGue7nyp.js";
2
- //#region src/utilities/playground.constants.ts
3
- var v = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, y = [
4
- {
5
- id: "all",
6
- label: "All sources"
7
- },
8
- {
9
- id: "unsplash",
10
- label: "Unsplash"
11
- },
12
- {
13
- id: "pexels",
14
- label: "Pexels"
15
- },
16
- {
17
- id: "pixabay",
18
- label: "Pixabay"
19
- }
20
- ], b = [
21
- {
22
- id: "surface-book",
23
- label: "Surface Book",
24
- width: 1500,
25
- category: "desktop"
26
- },
27
- {
28
- id: "macbook-pro",
29
- label: "MacBook Pro",
30
- width: 1440,
31
- category: "desktop"
32
- },
33
- {
34
- id: "imac",
35
- label: "iMac",
36
- width: 1280,
37
- category: "desktop"
38
- },
39
- {
40
- id: "macbook",
41
- label: "MacBook",
42
- width: 1152,
43
- category: "desktop"
44
- },
45
- {
46
- id: "surface-pro-4",
47
- label: "Surface Pro 4",
48
- width: 1368,
49
- category: "tablet"
50
- },
51
- {
52
- id: "ipad-pro-129",
53
- label: "iPad Pro 12.9\"",
54
- width: 1024,
55
- category: "tablet"
56
- },
57
- {
58
- id: "ipad-pro-11",
59
- label: "iPad Pro 11\"",
60
- width: 834,
61
- category: "tablet"
62
- },
63
- {
64
- id: "ipad-mini",
65
- label: "iPad Mini",
66
- width: 768,
67
- category: "tablet"
68
- },
69
- {
70
- id: "iphone-15-pro-max",
71
- label: "iPhone 15 Pro Max",
72
- width: 430,
73
- category: "mobile"
74
- },
75
- {
76
- id: "iphone-15-plus",
77
- label: "iPhone 15 Plus",
78
- width: 430,
79
- category: "mobile"
80
- },
81
- {
82
- id: "iphone-se",
83
- label: "iPhone SE",
84
- width: 375,
85
- category: "mobile"
86
- }
87
- ], x = 1280, S = Object.entries(_).map(([e, t]) => ({
88
- id: e,
89
- label: t.label
90
- })), C = [
91
- {
92
- label: "Text",
93
- value: "text"
94
- },
95
- {
96
- label: "Email",
97
- value: "email"
98
- },
99
- {
100
- label: "Number",
101
- value: "number"
102
- },
103
- {
104
- label: "Date",
105
- value: "date"
106
- },
107
- {
108
- label: "Textarea",
109
- value: "textarea"
110
- },
111
- {
112
- label: "Select",
113
- value: "select"
114
- },
115
- {
116
- label: "Radio",
117
- value: "radio"
118
- },
119
- {
120
- label: "Checkbox",
121
- value: "checkbox"
122
- }
123
- ], w = [
124
- {
125
- label: "1 Column",
126
- widths: ["100%"],
127
- percentages: ["100%"]
128
- },
129
- {
130
- label: "2 Columns",
131
- widths: ["50%", "50%"],
132
- percentages: ["50%", "50%"]
133
- },
134
- {
135
- label: "60 / 40",
136
- widths: ["60%", "40%"],
137
- percentages: ["60%", "40%"]
138
- },
139
- {
140
- label: "40 / 60",
141
- widths: ["40%", "60%"],
142
- percentages: ["40%", "60%"]
143
- },
144
- {
145
- label: "3 Columns",
146
- widths: [
147
- "33.33%",
148
- "33.33%",
149
- "33.33%"
150
- ],
151
- percentages: [
152
- "33%",
153
- "33%",
154
- "33%"
155
- ]
156
- },
157
- {
158
- label: "4 Columns",
159
- widths: [
160
- "25%",
161
- "25%",
162
- "25%",
163
- "25%"
164
- ],
165
- percentages: [
166
- "25%",
167
- "25%",
168
- "25%",
169
- "25%"
170
- ]
171
- }
172
- ], T = [
173
- {
174
- label: "Roboto",
175
- value: "'Roboto', sans-serif",
176
- style: "sans"
177
- },
178
- {
179
- label: "Open Sans",
180
- value: "'Open Sans', sans-serif",
181
- style: "sans"
182
- },
183
- {
184
- label: "Lato",
185
- value: "'Lato', sans-serif",
186
- style: "sans"
187
- },
188
- {
189
- label: "Montserrat",
190
- value: "'Montserrat', sans-serif",
191
- style: "sans"
192
- },
193
- {
194
- label: "Inter",
195
- value: "'Inter', sans-serif",
196
- style: "sans"
197
- },
198
- {
199
- label: "Poppins",
200
- value: "'Poppins', sans-serif",
201
- style: "sans"
202
- },
203
- {
204
- label: "Raleway",
205
- value: "'Raleway', sans-serif",
206
- style: "sans"
207
- },
208
- {
209
- label: "Nunito",
210
- value: "'Nunito', sans-serif",
211
- style: "sans"
212
- },
213
- {
214
- label: "Nunito Sans",
215
- value: "'Nunito Sans', sans-serif",
216
- style: "sans"
217
- },
218
- {
219
- label: "Ubuntu",
220
- value: "'Ubuntu', sans-serif",
221
- style: "sans"
222
- },
223
- {
224
- label: "Rubik",
225
- value: "'Rubik', sans-serif",
226
- style: "sans"
227
- },
228
- {
229
- label: "Plus Jakarta Sans",
230
- value: "'Plus Jakarta Sans', sans-serif",
231
- style: "sans"
232
- },
233
- {
234
- label: "DM Sans",
235
- value: "'DM Sans', sans-serif",
236
- style: "sans"
237
- },
238
- {
239
- label: "Outfit",
240
- value: "'Outfit', sans-serif",
241
- style: "sans"
242
- },
243
- {
244
- label: "Figtree",
245
- value: "'Figtree', sans-serif",
246
- style: "sans"
247
- },
248
- {
249
- label: "Karla",
250
- value: "'Karla', sans-serif",
251
- style: "sans"
252
- },
253
- {
254
- label: "Barlow",
255
- value: "'Barlow', sans-serif",
256
- style: "sans"
257
- },
258
- {
259
- label: "Work Sans",
260
- value: "'Work Sans', sans-serif",
261
- style: "sans"
262
- },
263
- {
264
- label: "Manrope",
265
- value: "'Manrope', sans-serif",
266
- style: "sans"
267
- },
268
- {
269
- label: "Jost",
270
- value: "'Jost', sans-serif",
271
- style: "sans"
272
- },
273
- {
274
- label: "Sora",
275
- value: "'Sora', sans-serif",
276
- style: "sans"
277
- },
278
- {
279
- label: "Be Vietnam Pro",
280
- value: "'Be Vietnam Pro', sans-serif",
281
- style: "sans"
282
- },
283
- {
284
- label: "Mulish",
285
- value: "'Mulish', sans-serif",
286
- style: "sans"
287
- },
288
- {
289
- label: "Noto Sans",
290
- value: "'Noto Sans', sans-serif",
291
- style: "sans"
292
- },
293
- {
294
- label: "Source Sans 3",
295
- value: "'Source Sans 3', sans-serif",
296
- style: "sans"
297
- },
298
- {
299
- label: "IBM Plex Sans",
300
- value: "'IBM Plex Sans', sans-serif",
301
- style: "sans"
302
- },
303
- {
304
- label: "Josefin Sans",
305
- value: "'Josefin Sans', sans-serif",
306
- style: "sans"
307
- },
308
- {
309
- label: "Quicksand",
310
- value: "'Quicksand', sans-serif",
311
- style: "sans"
312
- },
313
- {
314
- label: "Exo 2",
315
- value: "'Exo 2', sans-serif",
316
- style: "sans"
317
- },
318
- {
319
- label: "Titillium Web",
320
- value: "'Titillium Web', sans-serif",
321
- style: "sans"
322
- },
323
- {
324
- label: "Merriweather",
325
- value: "'Merriweather', serif",
326
- style: "serif"
327
- },
328
- {
329
- label: "Playfair Display",
330
- value: "'Playfair Display', serif",
331
- style: "serif"
332
- },
333
- {
334
- label: "Lora",
335
- value: "'Lora', serif",
336
- style: "serif"
337
- },
338
- {
339
- label: "PT Serif",
340
- value: "'PT Serif', serif",
341
- style: "serif"
342
- },
343
- {
344
- label: "Noto Serif",
345
- value: "'Noto Serif', serif",
346
- style: "serif"
347
- },
348
- {
349
- label: "EB Garamond",
350
- value: "'EB Garamond', serif",
351
- style: "serif"
352
- },
353
- {
354
- label: "Libre Baskerville",
355
- value: "'Libre Baskerville', serif",
356
- style: "serif"
357
- },
358
- {
359
- label: "Cormorant Garamond",
360
- value: "'Cormorant Garamond', serif",
361
- style: "serif"
362
- },
363
- {
364
- label: "Crimson Text",
365
- value: "'Crimson Text', serif",
366
- style: "serif"
367
- },
368
- {
369
- label: "DM Serif Display",
370
- value: "'DM Serif Display', serif",
371
- style: "serif"
372
- },
373
- {
374
- label: "Domine",
375
- value: "'Domine', serif",
376
- style: "serif"
377
- },
378
- {
379
- label: "Bitter",
380
- value: "'Bitter', serif",
381
- style: "serif"
382
- },
383
- {
384
- label: "Spectral",
385
- value: "'Spectral', serif",
386
- style: "serif"
387
- },
388
- {
389
- label: "Cardo",
390
- value: "'Cardo', serif",
391
- style: "serif"
392
- },
393
- {
394
- label: "Gilda Display",
395
- value: "'Gilda Display', serif",
396
- style: "serif"
397
- },
398
- {
399
- label: "Roboto Mono",
400
- value: "'Roboto Mono', monospace",
401
- style: "mono"
402
- },
403
- {
404
- label: "Source Code Pro",
405
- value: "'Source Code Pro', monospace",
406
- style: "mono"
407
- },
408
- {
409
- label: "Fira Code",
410
- value: "'Fira Code', monospace",
411
- style: "mono"
412
- },
413
- {
414
- label: "JetBrains Mono",
415
- value: "'JetBrains Mono', monospace",
416
- style: "mono"
417
- },
418
- {
419
- label: "IBM Plex Mono",
420
- value: "'IBM Plex Mono', monospace",
421
- style: "mono"
422
- },
423
- {
424
- label: "Space Mono",
425
- value: "'Space Mono', monospace",
426
- style: "mono"
427
- },
428
- {
429
- label: "Inconsolata",
430
- value: "'Inconsolata', monospace",
431
- style: "mono"
432
- },
433
- {
434
- label: "Courier Prime",
435
- value: "'Courier Prime', monospace",
436
- style: "mono"
437
- },
438
- {
439
- label: "Oswald",
440
- value: "'Oswald', sans-serif",
441
- style: "display"
442
- },
443
- {
444
- label: "Anton",
445
- value: "'Anton', sans-serif",
446
- style: "display"
447
- },
448
- {
449
- label: "Bebas Neue",
450
- value: "'Bebas Neue', sans-serif",
451
- style: "display"
452
- },
453
- {
454
- label: "Righteous",
455
- value: "'Righteous', sans-serif",
456
- style: "display"
457
- },
458
- {
459
- label: "Russo One",
460
- value: "'Russo One', sans-serif",
461
- style: "display"
462
- },
463
- {
464
- label: "Chakra Petch",
465
- value: "'Chakra Petch', sans-serif",
466
- style: "display"
467
- },
468
- {
469
- label: "Orbitron",
470
- value: "'Orbitron', sans-serif",
471
- style: "display"
472
- },
473
- {
474
- label: "Abril Fatface",
475
- value: "'Abril Fatface', serif",
476
- style: "display"
477
- },
478
- {
479
- label: "Lobster",
480
- value: "'Lobster', cursive",
481
- style: "display"
482
- },
483
- {
484
- label: "Alfa Slab One",
485
- value: "'Alfa Slab One', serif",
486
- style: "display"
487
- },
488
- {
489
- label: "Archivo Black",
490
- value: "'Archivo Black', sans-serif",
491
- style: "display"
492
- },
493
- {
494
- label: "Bangers",
495
- value: "'Bangers', cursive",
496
- style: "display"
497
- },
498
- {
499
- label: "Boogaloo",
500
- value: "'Boogaloo', cursive",
501
- style: "display"
502
- },
503
- {
504
- label: "Fredoka One",
505
- value: "'Fredoka One', cursive",
506
- style: "display"
507
- },
508
- {
509
- label: "Permanent Marker",
510
- value: "'Permanent Marker', cursive",
511
- style: "display"
512
- },
513
- {
514
- label: "Lilita One",
515
- value: "'Lilita One', cursive",
516
- style: "display"
517
- },
518
- {
519
- label: "Dancing Script",
520
- value: "'Dancing Script', cursive",
521
- style: "handwriting"
522
- },
523
- {
524
- label: "Pacifico",
525
- value: "'Pacifico', cursive",
526
- style: "handwriting"
527
- },
528
- {
529
- label: "Satisfy",
530
- value: "'Satisfy', cursive",
531
- style: "handwriting"
532
- },
533
- {
534
- label: "Caveat",
535
- value: "'Caveat', cursive",
536
- style: "handwriting"
537
- },
538
- {
539
- label: "Indie Flower",
540
- value: "'Indie Flower', cursive",
541
- style: "handwriting"
542
- },
543
- {
544
- label: "Kalam",
545
- value: "'Kalam', cursive",
546
- style: "handwriting"
547
- },
548
- {
549
- label: "Shadows Into Light",
550
- value: "'Shadows Into Light', cursive",
551
- style: "handwriting"
552
- },
553
- {
554
- label: "Amatic SC",
555
- value: "'Amatic SC', cursive",
556
- style: "handwriting"
557
- },
558
- {
559
- label: "Courgette",
560
- value: "'Courgette', cursive",
561
- style: "handwriting"
562
- },
563
- {
564
- label: "Cookie",
565
- value: "'Cookie', cursive",
566
- style: "handwriting"
567
- },
568
- {
569
- label: "Great Vibes",
570
- value: "'Great Vibes', cursive",
571
- style: "handwriting"
572
- }
573
- ], E = new Map(T.map((e) => [e.value, e.label]));
574
- function D(e, t = []) {
575
- let n = /* @__PURE__ */ new Set(), r = (e) => {
576
- if (!e) return;
577
- let t = Array.isArray(e.columns) ? e.columns : [];
578
- for (let e of t) {
579
- if (!e) continue;
580
- let t = Array.isArray(e.elements) ? e.elements : [];
581
- for (let e of t) {
582
- let t = e?.style?.fontFamily;
583
- typeof t == "string" && t.trim() && n.add(t.trim());
584
- }
585
- (Array.isArray(e.nestedRows) ? e.nestedRows : []).forEach(r);
586
- }
587
- };
588
- (e || []).forEach(r);
589
- for (let e of t) typeof e == "string" && e.trim() && n.add(e.trim());
590
- return n;
591
- }
592
- function O(e) {
593
- let t = /* @__PURE__ */ new Set();
594
- for (let n of e) {
595
- let e = E.get(n);
596
- e && t.add(e);
597
- }
598
- return t.size === 0 ? null : `https://fonts.googleapis.com/css?family=${Array.from(t).map((e) => `${encodeURIComponent(e).replace(/%20/g, "+")}:400,700`).join("|")}&display=swap`;
599
- }
600
- //#endregion
1
+ import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, j as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./iconSvgStatic-DEgDUD68.js";
601
2
  //#region src/utilities/responsiveDefaults.ts
602
- var k = {
3
+ var y = {
603
4
  tablet: {
604
5
  thresholdPx: 24,
605
6
  scale: .85,
@@ -610,7 +11,7 @@ var k = {
610
11
  scale: .7,
611
12
  floorPx: 14
612
13
  }
613
- }, A = {
14
+ }, b = {
614
15
  tablet: {
615
16
  thresholdPx: 320,
616
17
  scale: .8,
@@ -621,7 +22,7 @@ var k = {
621
22
  scale: .55,
622
23
  floorPx: 140
623
24
  }
624
- }, j = {
25
+ }, x = {
625
26
  tablet: {
626
27
  thresholdPx: 48,
627
28
  scale: .75,
@@ -632,7 +33,7 @@ var k = {
632
33
  scale: .55,
633
34
  floorPx: 16
634
35
  }
635
- }, M = {
36
+ }, S = {
636
37
  tablet: {
637
38
  thresholdPx: 500,
638
39
  scale: 1,
@@ -643,11 +44,11 @@ var k = {
643
44
  scale: 1,
644
45
  floorPx: 0
645
46
  }
646
- }, N = ["fontSize"], ee = [
47
+ }, C = ["fontSize"], w = [
647
48
  "height",
648
49
  "minHeight",
649
50
  "maxHeight"
650
- ], te = [
51
+ ], T = [
651
52
  "padding",
652
53
  "paddingTop",
653
54
  "paddingBottom",
@@ -656,8 +57,8 @@ var k = {
656
57
  "margin",
657
58
  "marginTop",
658
59
  "marginBottom"
659
- ], P = ["width", "maxWidth"];
660
- function F(e) {
60
+ ], E = ["width", "maxWidth"];
61
+ function D(e) {
661
62
  if (typeof e == "number" && Number.isFinite(e)) return e;
662
63
  if (typeof e != "string") return null;
663
64
  let t = e.trim().match(/^(-?\d+(?:\.\d+)?)px$/);
@@ -665,48 +66,48 @@ function F(e) {
665
66
  let n = parseFloat(t[1]);
666
67
  return Number.isFinite(n) ? n : null;
667
68
  }
668
- function I(e, t) {
69
+ function O(e, t) {
669
70
  return e < t.thresholdPx ? null : Math.max(Math.round(e * t.scale), t.floorPx);
670
71
  }
671
- function L(e, t) {
72
+ function k(e, t) {
672
73
  if (!e || typeof e != "object") return {};
673
74
  let n = {};
674
- for (let r of N) {
675
- let i = F(e[r]);
75
+ for (let r of C) {
76
+ let i = D(e[r]);
676
77
  if (i === null) continue;
677
- let a = I(i, k[t]);
78
+ let a = O(i, y[t]);
678
79
  a !== null && (n[r] = `${a}px`);
679
80
  }
680
- for (let r of ee) {
681
- let i = F(e[r]);
81
+ for (let r of w) {
82
+ let i = D(e[r]);
682
83
  if (i === null) continue;
683
- let a = I(i, A[t]);
84
+ let a = O(i, b[t]);
684
85
  a !== null && (n[r] = `${a}px`);
685
86
  }
686
- for (let r of te) {
687
- let i = F(e[r]);
87
+ for (let r of T) {
88
+ let i = D(e[r]);
688
89
  if (i === null) continue;
689
- let a = I(i, j[t]);
90
+ let a = O(i, x[t]);
690
91
  a !== null && (n[r] = `${a}px`);
691
92
  }
692
- for (let r of P) {
693
- let i = F(e[r]);
694
- i !== null && i >= M[t].thresholdPx && (n[r] = "100%");
93
+ for (let r of E) {
94
+ let i = D(e[r]);
95
+ i !== null && i >= S[t].thresholdPx && (n[r] = "100%");
695
96
  }
696
97
  return n;
697
98
  }
698
- function R(e, t, n) {
99
+ function A(e, t, n) {
699
100
  let r = e || {};
700
101
  return n ? {
701
102
  ...r,
702
- ...L(r, n),
103
+ ...k(r, n),
703
104
  ...t || {}
704
105
  } : r;
705
106
  }
706
107
  //#endregion
707
108
  //#region src/utilities/compiler.ts
708
- var z = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
709
- function B(e) {
109
+ var j = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
110
+ function M(e) {
710
111
  if (!e || typeof e != "object") return null;
711
112
  if (Array.isArray(e.columns) && e.columns.length > 0) return e;
712
113
  let t = (e.type || "").toLowerCase(), n = e.props || e.content || e.attributes || e.data || e.payload || e, r = e.style || {};
@@ -960,7 +361,7 @@ function B(e) {
960
361
  }
961
362
  }
962
363
  }
963
- var V = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter(([e, t]) => t != null && t !== "").map(([e, t]) => {
364
+ var N = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter(([e, t]) => t != null && t !== "").map(([e, t]) => {
964
365
  let n = e.replace(/([A-Z])/g, "-$1").toLowerCase(), r = t;
965
366
  return typeof t == "number" && [
966
367
  "padding",
@@ -971,25 +372,25 @@ var V = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter((
971
372
  "width",
972
373
  "height"
973
374
  ].some((t) => e.toLowerCase().includes(t)) && (r = `${t}px`), `${n}: ${r};`;
974
- }).join(" "), H = (e = {}) => V(e).replace(/;(\s|$)/g, " !important;$1");
975
- function U(e) {
375
+ }).join(" "), P = (e = {}) => N(e).replace(/;(\s|$)/g, " !important;$1");
376
+ function F(e) {
976
377
  if (typeof e != "string") return !1;
977
378
  let t = e.toLowerCase();
978
379
  return t.includes("javascript:") || t.includes("vbscript:") || t.includes("expression") || t.includes("url(") || t.includes("@import") || t.includes("-moz-binding") || t.includes("behavior") || t.includes("</style") || /\\/.test(e);
979
380
  }
980
- function W(e, t, n, r, i) {
381
+ function I(e, t, n, r, i) {
981
382
  let a = {
982
- ...L(n, r),
383
+ ...k(n, r),
983
384
  ...i || {}
984
385
  };
985
- for (let e of Object.keys(a)) U(a[e]) && delete a[e];
386
+ for (let e of Object.keys(a)) F(a[e]) && delete a[e];
986
387
  if (Object.keys(a).length === 0) return;
987
- let o = H(a);
388
+ let o = P(a);
988
389
  if (!o) return;
989
390
  let s = String(t).replace(/["\\]/g, "");
990
391
  e[r].push(`[data-plexo-id="${s}"] { ${o} }`);
991
392
  }
992
- function G(e, t) {
393
+ function L(e, t) {
993
394
  if (e.type !== "menu" || !t || t.textAlign === void 0) return t;
994
395
  let n = t.textAlign === "center" ? "center" : t.textAlign === "right" ? "flex-end" : "flex-start";
995
396
  return {
@@ -997,7 +398,7 @@ function G(e, t) {
997
398
  justifyContent: n
998
399
  };
999
400
  }
1000
- var K = () => ({
401
+ var R = () => ({
1001
402
  backgroundColor: "#ffffff",
1002
403
  borderRadius: "20px",
1003
404
  width: "100%",
@@ -1020,11 +421,11 @@ var K = () => ({
1020
421
  buttonPaddingRight: "14px",
1021
422
  buttonFontSize: "13px",
1022
423
  buttonFontWeight: "700"
1023
- }), q = (e) => (e || "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), J = (e, t) => {
424
+ }), z = (e) => (e || "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), B = (e, t) => {
1024
425
  if (typeof t != "string") return "";
1025
426
  let n = t.trim();
1026
- return n ? ` ${e}="${q(n)}"` : "";
1027
- }, Y = [
427
+ return n ? ` ${e}="${z(n)}"` : "";
428
+ }, V = [
1028
429
  "fieldSpacing",
1029
430
  "buttonBackgroundColor",
1030
431
  "buttonTextColor",
@@ -1044,9 +445,9 @@ var K = () => ({
1044
445
  "buttonWidth",
1045
446
  "buttonHeight",
1046
447
  "buttonAlign"
1047
- ], ne = (e) => {
448
+ ], H = (e) => {
1048
449
  if (!e || typeof e != "object") return "";
1049
- let t = e.kind || "text", n = q(e.name || e.id || "field"), r = e.required ? " required" : "", i = V({
450
+ let t = e.kind || "text", n = z(e.name || e.id || "field"), r = e.required ? " required" : "", i = N({
1050
451
  fontSize: e.fontSize || "13px",
1051
452
  borderRadius: e.borderRadius || "12px",
1052
453
  borderWidth: e.borderWidth || "1px",
@@ -1054,19 +455,19 @@ var K = () => ({
1054
455
  borderStyle: "solid",
1055
456
  color: e.inputTextColor
1056
457
  }), a = e.showLabel === !1 ? "" : `<label style="display: block; margin-bottom: 4px; font-size: ${e.fontSize || "12px"}; font-weight: ${e.labelFontWeight || "700"}; color: ${e.labelColor || "inherit"};">${e.label || ""}${e.required ? " <span style=\"color:#e11d48;\">*</span>" : ""}</label>`;
1057
- return t === "textarea" ? `${a}<textarea name="${n}" placeholder="${q(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}></textarea>` : t === "select" ? `${a}<select name="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}>${(Array.isArray(e.options) ? e.options : []).map((e) => `<option value="${q(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>` : t === "radio" || t === "checkbox" ? `${a}<div style="display: flex; flex-wrap: wrap; gap: 8px;">${(Array.isArray(e.options) && e.options.length > 0 ? e.options : [{
458
+ return t === "textarea" ? `${a}<textarea name="${n}" placeholder="${z(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}></textarea>` : t === "select" ? `${a}<select name="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}>${(Array.isArray(e.options) ? e.options : []).map((e) => `<option value="${z(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>` : t === "radio" || t === "checkbox" ? `${a}<div style="display: flex; flex-wrap: wrap; gap: 8px;">${(Array.isArray(e.options) && e.options.length > 0 ? e.options : [{
1058
459
  label: e.label || "Option",
1059
460
  value: e.name || "option"
1060
- }]).map((r) => `<label style="display: inline-flex; align-items: center; gap: 6px; font-size: ${e.fontSize || "12px"};"><input type="${t}" name="${n}" value="${q(r?.value ?? "")}" />${r?.label ?? r?.value ?? ""}</label>`).join("")}</div>` : `${a}<input type="${q(t)}" name="${n}" placeholder="${q(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r} />`;
461
+ }]).map((r) => `<label style="display: inline-flex; align-items: center; gap: 6px; font-size: ${e.fontSize || "12px"};"><input type="${t}" name="${n}" value="${z(r?.value ?? "")}" />${r?.label ?? r?.value ?? ""}</label>`).join("")}</div>` : `${a}<input type="${z(t)}" name="${n}" placeholder="${z(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r} />`;
1061
462
  };
1062
- function re(e, t, n) {
463
+ function U(e, t, n) {
1063
464
  if (e === "none") return "";
1064
- let r = q(t);
465
+ let r = z(t);
1065
466
  return e === "plus" ? `<span data-acc-icon style="font-size: 14px; line-height: 1; font-weight: 700; color: ${r};">${n ? "−" : "+"}</span>` : e === "arrow" ? `<span data-acc-icon style="font-size: 14px; line-height: 1; display: inline-block; color: ${r}; transform: ${n ? "rotate(90deg)" : "none"}; transition: transform 0.2s ease;">›</span>` : `<svg data-acc-icon width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="${r}" stroke-width="2.5" style="flex-shrink: 0; transform: ${n ? "rotate(180deg)" : "none"}; transition: transform 0.2s ease;"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"/></svg>`;
1066
467
  }
1067
- function X(e, t, n, r, i = []) {
468
+ function W(e, t, n, r, i = []) {
1068
469
  return e.map((a, o) => {
1069
- let s = [...i, o], c = o === e.length - 1, l = V({ borderBottom: n.showDividers && !c ? `1px solid ${t.dividerColor || "#e2e8f0"}` : void 0 }), u = V({
470
+ let s = [...i, o], c = o === e.length - 1, l = N({ borderBottom: n.showDividers && !c ? `1px solid ${t.dividerColor || "#e2e8f0"}` : void 0 }), u = N({
1070
471
  display: "flex",
1071
472
  alignItems: "center",
1072
473
  gap: "8px",
@@ -1083,35 +484,35 @@ function X(e, t, n, r, i = []) {
1083
484
  border: "none",
1084
485
  font: "inherit",
1085
486
  background: void 0
1086
- }), d = V({
487
+ }), d = N({
1087
488
  display: "grid",
1088
489
  gridTemplateRows: a.defaultOpen ? "1fr" : "0fr",
1089
490
  transition: n.animated ? "grid-template-rows 0.25s ease" : void 0,
1090
491
  backgroundColor: t.contentBackgroundColor || "#ffffff"
1091
- }), f = V({
492
+ }), f = N({
1092
493
  padding: t.contentPadding || "14px",
1093
494
  color: t.contentTextColor || "#475569",
1094
495
  fontSize: t.contentFontSize || "13px",
1095
496
  whiteSpace: "pre-wrap"
1096
- }), p = re(n.iconStyle, t.iconColor || "#64748b", !!a.defaultOpen), m = q(a.title), h = q(a.content), g = a.children.length ? `<div class="plexo-acc-group" style="margin-top: 10px;">${X(a.children, t, n, r, s)}</div>` : "";
1097
- return `<div class="plexo-acc-item" style="${l}"><button type="button"${` data-plexo-acc-item="${q(r)}|${s.join(".")}"`} data-acc-header data-acc-open="${a.defaultOpen ? "1" : "0"}" style="${u}"><span style="flex: 1;">${m}</span>${p}</button><div data-acc-panel style="${d}"><div style="overflow: hidden;"><div style="${f}">${h}${g}</div></div></div></div>`;
497
+ }), p = U(n.iconStyle, t.iconColor || "#64748b", !!a.defaultOpen), m = z(a.title), h = z(a.content), g = a.children.length ? `<div class="plexo-acc-group" style="margin-top: 10px;">${W(a.children, t, n, r, s)}</div>` : "";
498
+ return `<div class="plexo-acc-item" style="${l}"><button type="button"${` data-plexo-acc-item="${z(r)}|${s.join(".")}"`} data-acc-header data-acc-open="${a.defaultOpen ? "1" : "0"}" style="${u}"><span style="flex: 1;">${m}</span>${p}</button><div data-acc-panel style="${d}"><div style="overflow: hidden;"><div style="${f}">${h}${g}</div></div></div></div>`;
1098
499
  }).join("");
1099
500
  }
1100
- function ie(e) {
501
+ function G(e) {
1101
502
  return `<!-- Unsupported block ${String(e)} -->`;
1102
503
  }
1103
- var ae = (g) => {
1104
- if (!g || typeof g != "object") return "";
1105
- let _ = g.style || {}, v = g.type === "heading" || g.type === "paragraph" || g.type === "text", y = v ? c(g).autoWidth : !1, b = y ? Object.fromEntries(Object.entries(_).filter(([e]) => e !== "width")) : _, x = V(g.type === "form_container" ? {
1106
- ...K(),
504
+ var K = (s) => {
505
+ if (!s || typeof s != "object") return "";
506
+ let _ = s.style || {}, v = s.type === "heading" || s.type === "paragraph" || s.type === "text", y = v ? l(s).autoWidth : !1, b = y ? Object.fromEntries(Object.entries(_).filter(([e]) => e !== "width")) : _, x = N(s.type === "form_container" ? {
507
+ ...R(),
1107
508
  ..._
1108
- } : b), S = g.attributes || {}, C = ` data-plexo-id="${q(g.id)}"`, w = String(S.boxAlign || "left"), T = v && (y || !!_.width), E = (e) => T ? `<div style="text-align: ${w};">${e}</div>` : e, D = `${T ? "display: inline-block; " : ""}${v && _.height ? "overflow: hidden; " : ""}`;
1109
- switch (g.type) {
509
+ } : b), S = s.attributes || {}, C = ` data-plexo-id="${z(s.id)}"`, w = String(S.boxAlign || "left"), T = v && (y || !!_.width), E = (e) => T ? `<div style="text-align: ${w};">${e}</div>` : e, D = `${T ? "display: inline-block; " : ""}${v && _.height ? "overflow: hidden; " : ""}`;
510
+ switch (s.type) {
1110
511
  case "heading": return E(`<h2${C} style="margin-top: 0; margin-bottom: 8px; ${D}${x}">${S.text || "Heading"}</h2>`);
1111
512
  case "paragraph": return E(`<p${C} style="margin-top: 0; margin-bottom: 12px; ${D}${x}">${S.text || "Paragraph text content."}</p>`);
1112
513
  case "text": return E(`<div${C} style="${D}${x}">${S.text || ""}</div>`);
1113
514
  case "button": {
1114
- let e = u(g), t = V({
515
+ let e = d(s), t = N({
1115
516
  ..._,
1116
517
  width: e.width,
1117
518
  height: e.height
@@ -1119,7 +520,7 @@ var ae = (g) => {
1119
520
  return `<div style="text-align: ${_.textAlign || "center"};"><a${C} href="${S.href || "#"}" target="${S.openInNewTab ? "_blank" : "_self"}" style="display: inline-block; text-decoration: none; ${t}">${S.text || "Button"}</a></div>`;
1120
521
  }
1121
522
  case "image": {
1122
- let e = h(g), t = _.textAlign === "center" ? "margin: 0 auto; display: block;" : _.textAlign === "right" ? "margin-left: auto; display: block;" : "display: inline-block;", n = V({
523
+ let e = g(s), t = _.textAlign === "center" ? "margin: 0 auto; display: block;" : _.textAlign === "right" ? "margin-left: auto; display: block;" : "display: inline-block;", n = N({
1123
524
  ..._,
1124
525
  width: e.width,
1125
526
  height: e.height
@@ -1134,12 +535,12 @@ var ae = (g) => {
1134
535
  </div>`;
1135
536
  case "form_container": {
1136
537
  let n = {
1137
- ...K(),
538
+ ...R(),
1138
539
  ..._
1139
540
  }, r = {};
1140
- for (let e of Object.keys(n)) Y.includes(e) || (r[e] = n[e]);
1141
- r.height = p(g);
1142
- let i = V(r), a = l(t(Array.isArray(S.fields) ? S.fields : [])), o = n.fieldSpacing || "12px", s = a.map((e) => `<div style="margin-bottom: ${o};">${ne(e)}</div>`).join(""), c = S.buttonAutoWidth === !1 ? n.buttonWidth || "100%" : "auto", u = n.buttonAlign === "left" ? "flex-start" : n.buttonAlign === "right" ? "flex-end" : "center", d = S.buttonAutoHeight === !1 && n.buttonHeight || "auto", f = V({
541
+ for (let e of Object.keys(n)) V.includes(e) || (r[e] = n[e]);
542
+ r.height = m(s);
543
+ let i = N(r), a = u(t(Array.isArray(S.fields) ? S.fields : [])), o = n.fieldSpacing || "12px", c = a.map((e) => `<div style="margin-bottom: ${o};">${H(e)}</div>`).join(""), l = S.buttonAutoWidth === !1 ? n.buttonWidth || "100%" : "auto", d = n.buttonAlign === "left" ? "flex-start" : n.buttonAlign === "right" ? "flex-end" : "center", f = S.buttonAutoHeight === !1 && n.buttonHeight || "auto", p = N({
1143
544
  backgroundColor: n.buttonBackgroundColor,
1144
545
  color: n.buttonTextColor,
1145
546
  borderRadius: n.buttonBorderRadius,
@@ -1153,20 +554,20 @@ var ae = (g) => {
1153
554
  marginRight: e(n.buttonMarginRight, n.buttonMargin, "right"),
1154
555
  fontSize: n.buttonFontSize,
1155
556
  fontWeight: n.buttonFontWeight,
1156
- width: c,
1157
- height: d
557
+ width: l,
558
+ height: f
1158
559
  });
1159
- return `<form${C} action="${q(S.actionUrl || S.action || "#")}" method="${q(S.method || "POST")}" style="${i}">${s}<div style="display: flex; width: 100%; justify-content: ${u};"><button type="submit" style="border: 0; cursor: pointer; ${f}">${S.submitLabel || "Submit"}</button></div></form>`;
560
+ return `<form${C} action="${z(S.actionUrl || S.action || "#")}" method="${z(S.method || "POST")}" style="${i}">${c}<div style="display: flex; width: 100%; justify-content: ${d};"><button type="submit" style="border: 0; cursor: pointer; ${p}">${S.submitLabel || "Submit"}</button></div></form>`;
1160
561
  }
1161
562
  case "input": {
1162
- let e = S.inputType || S.type || "text", t = q(S.name || S.fieldName || "field"), n = q(S.placeholder || ""), r = S.required ? " required" : "";
1163
- return `<input${C} type="${q(e)}" name="${t}" placeholder="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${x}"${r} />`;
563
+ let e = S.inputType || S.type || "text", t = z(S.name || S.fieldName || "field"), n = z(S.placeholder || ""), r = S.required ? " required" : "";
564
+ return `<input${C} type="${z(e)}" name="${t}" placeholder="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${x}"${r} />`;
1164
565
  }
1165
- case "textarea": return `<textarea${C} name="${q(S.name || S.fieldName || "field")}" placeholder="${q(S.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${x}"${S.required ? " required" : ""}></textarea>`;
1166
- case "select": return `<select${C} name="${q(S.name || S.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${x}"${S.required ? " required" : ""}>${(Array.isArray(S.options) ? S.options : []).map((e) => `<option value="${q(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>`;
1167
- case "html": return `<div${C} style="${V({
566
+ case "textarea": return `<textarea${C} name="${z(S.name || S.fieldName || "field")}" placeholder="${z(S.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${x}"${S.required ? " required" : ""}></textarea>`;
567
+ case "select": return `<select${C} name="${z(S.name || S.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${x}"${S.required ? " required" : ""}>${(Array.isArray(S.options) ? S.options : []).map((e) => `<option value="${z(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>`;
568
+ case "html": return `<div${C} style="${N({
1168
569
  ..._,
1169
- height: s(g, "auto")
570
+ height: c(s, "auto")
1170
571
  })}">${S.htmlContent || S.text || ""}</div>`;
1171
572
  case "blog_title":
1172
573
  case "blog_content":
@@ -1176,12 +577,12 @@ var ae = (g) => {
1176
577
  case "blog_categories":
1177
578
  case "blog_comments":
1178
579
  case "blog_post_list": {
1179
- let e = g.type.replace(/^blog_/, "").replace(/_([a-z])/g, (e, t) => t.toUpperCase()), t = V(_);
1180
- return `<div${C} data-plexo-blog-${e}="true"${J("data-plexo-blog-prefix", S.prefix)} style="${t}"></div>`;
580
+ let e = s.type.replace(/^blog_/, "").replace(/_([a-z])/g, (e, t) => t.toUpperCase()), t = N(_);
581
+ return `<div${C} data-plexo-blog-${e}="true"${B("data-plexo-blog-prefix", S.prefix)} style="${t}"></div>`;
1181
582
  }
1182
583
  case "social": {
1183
- let e = r(g), t = _.textAlign === "center" ? "center" : _.textAlign === "right" ? "flex-end" : "flex-start";
1184
- return `<div${C} style="${V({
584
+ let e = r(s), t = _.textAlign === "center" ? "center" : _.textAlign === "right" ? "flex-end" : "flex-start";
585
+ return `<div${C} style="${N({
1185
586
  padding: _.padding,
1186
587
  margin: _.margin,
1187
588
  display: "flex",
@@ -1189,7 +590,7 @@ var ae = (g) => {
1189
590
  gap: _.iconSpacing || "8px",
1190
591
  justifyContent: t
1191
592
  })}">${e.map((e) => {
1192
- let t = V({
593
+ let t = N({
1193
594
  width: e.size,
1194
595
  height: e.size,
1195
596
  padding: "8px",
@@ -1201,83 +602,83 @@ var ae = (g) => {
1201
602
  justifyContent: "center",
1202
603
  overflow: "hidden"
1203
604
  });
1204
- return `<a href="${q(e.url)}" style="${t} text-decoration: none;">${f(e.provider, e.color)}</a>`;
605
+ return `<a href="${z(e.url)}" style="${t} text-decoration: none;">${p(e.provider, e.color)}</a>`;
1205
606
  }).join("")}</div>`;
1206
607
  }
1207
608
  case "menu": {
1208
- let e = n(g), t = _.textAlign === "center" ? "center" : _.textAlign === "right" ? "flex-end" : "flex-start";
1209
- return `<div${C} style="${V({
609
+ let e = n(s), t = _.textAlign === "center" ? "center" : _.textAlign === "right" ? "flex-end" : "flex-start";
610
+ return `<div${C} style="${N({
1210
611
  ..._,
1211
612
  display: "flex",
1212
613
  flexWrap: "wrap",
1213
614
  gap: "16px",
1214
615
  justifyContent: t
1215
- })}">${e.map((e) => `<a href="${q(e.href)}" style="text-decoration: none; color: inherit; font-weight: ${_.fontWeight || 600};">${q(e.label)}</a>`).join("")}</div>`;
616
+ })}">${e.map((e) => `<a href="${z(e.href)}" style="text-decoration: none; color: inherit; font-weight: ${_.fontWeight || 600};">${z(e.label)}</a>`).join("")}</div>`;
1216
617
  }
1217
618
  case "icon": {
1218
- let e = _.fontSize || `${S.iconSize || 48}px`, t = _.color || "#1e293b", n = parseInt(String(e), 10) || 48, r = m(S.iconName, n, t), i = _.textAlign === "right" ? "flex-end" : _.textAlign === "left" ? "flex-start" : "center", a = V({
619
+ let e = _.fontSize || `${S.iconSize || 48}px`, t = _.color || "#1e293b", n = parseInt(String(e), 10) || 48, r = h(S.iconName, n, t), i = _.textAlign === "right" ? "flex-end" : _.textAlign === "left" ? "flex-start" : "center", a = N({
1219
620
  padding: _.padding,
1220
621
  margin: _.margin,
1221
622
  display: "flex",
1222
623
  justifyContent: i
1223
624
  }), o = typeof S.href == "string" ? S.href.trim() : "", s = `<span style="display: inline-flex; align-items: center; justify-content: center; color: ${t};">${r}</span>`;
1224
- return `<div style="${a}">${o ? `<a${C} href="${q(o)}" target="${S.openInNewTab ? "_blank" : "_self"}" style="text-decoration: none;">${s}</a>` : `<span${C}>${s}</span>`}</div>`;
625
+ return `<div style="${a}">${o ? `<a${C} href="${z(o)}" target="${S.openInNewTab ? "_blank" : "_self"}" style="text-decoration: none;">${s}</a>` : `<span${C}>${s}</span>`}</div>`;
1225
626
  }
1226
627
  case "table": {
1227
- let e = d(g), t = `${_.borderWidth || "1px"} ${_.borderStyle || "solid"} ${_.borderColor || "#cbd5e1"}`, n = (n, r, i, a) => {
1228
- let o = a ? "th" : "td", s = a ? _.headerBgColor || "#f8fafc" : e.striped && r % 2 == 1 ? "#f8fafc" : _.contentBgColor || "#ffffff", c = a ? _.headerTextColor || "#1e293b" : _.contentTextColor || "#475569", l = a ? _.headerTextAlign || "left" : _.contentTextAlign || "left";
628
+ let e = f(s), t = `${_.borderWidth || "1px"} ${_.borderStyle || "solid"} ${_.borderColor || "#cbd5e1"}`, n = (n, r, i, a) => {
629
+ let o = a ? "th" : "td", c = a ? _.headerBgColor || "#f8fafc" : e.striped && r % 2 == 1 ? "#f8fafc" : _.contentBgColor || "#ffffff", l = a ? _.headerTextColor || "#1e293b" : _.contentTextColor || "#475569", u = a ? _.headerTextAlign || "left" : _.contentTextAlign || "left";
1229
630
  return `<tr>${n.map((e, n) => {
1230
- let r = V({
631
+ let r = N({
1231
632
  padding: _.cellPadding || "8px",
1232
633
  border: t,
1233
- backgroundColor: s,
1234
- color: c,
1235
- textAlign: l,
634
+ backgroundColor: c,
635
+ color: l,
636
+ textAlign: u,
1236
637
  lineHeight: _.contentLineHeight,
1237
638
  letterSpacing: _.contentLetterSpacing,
1238
639
  fontWeight: a ? "700" : void 0
1239
- }), u = ` data-plexo-cell="${q(g.id)}|${i}-${n}"`;
1240
- return `<${o}${u} style="${r}">${e || "&nbsp;"}</${o}>`;
640
+ }), d = ` data-plexo-cell="${z(s.id)}|${i}-${n}"`;
641
+ return `<${o}${d} style="${r}">${e || "&nbsp;"}</${o}>`;
1241
642
  }).join("")}</tr>`;
1242
- }, r = e.enableHeader && e.cells.length > 0 ? `<thead>${n(e.cells[0], 0, 0, !0)}</thead>` : "", i = +!!e.enableHeader, a = e.enableFooter ? e.cells.length - 1 : e.cells.length, o = e.cells.slice(i, Math.max(i, a)).map((e, t) => n(e, t, i + t, !1)).join(""), s = e.enableFooter && e.cells.length > i ? `<tfoot>${n(e.cells[e.cells.length - 1], e.cells.length - 1, e.cells.length - 1, !1)}</tfoot>` : "", c = V({
643
+ }, r = e.enableHeader && e.cells.length > 0 ? `<thead>${n(e.cells[0], 0, 0, !0)}</thead>` : "", i = +!!e.enableHeader, a = e.enableFooter ? e.cells.length - 1 : e.cells.length, o = e.cells.slice(i, Math.max(i, a)).map((e, t) => n(e, t, i + t, !1)).join(""), c = e.enableFooter && e.cells.length > i ? `<tfoot>${n(e.cells[e.cells.length - 1], e.cells.length - 1, e.cells.length - 1, !1)}</tfoot>` : "", l = N({
1243
644
  borderCollapse: "collapse",
1244
645
  width: "100%"
1245
646
  });
1246
- return `<div${C} style="${V({
647
+ return `<div${C} style="${N({
1247
648
  padding: _.padding,
1248
649
  margin: _.margin,
1249
650
  overflowX: "auto"
1250
- })}"><table style="${c}">${r}<tbody>${o}</tbody>${s}</table></div>`;
651
+ })}"><table style="${l}">${r}<tbody>${o}</tbody>${c}</table></div>`;
1251
652
  }
1252
653
  case "video": {
1253
654
  let e = i(S.videoUrl), t = S.linkType === "email" ? `mailto:${S.href || ""}` : S.href || S.videoUrl || "#", n = S.target || "_blank";
1254
- return `<div${C} style="${V({
655
+ return `<div${C} style="${N({
1255
656
  padding: _.padding,
1256
657
  margin: _.margin,
1257
658
  borderRadius: _.borderRadius,
1258
659
  overflow: "hidden"
1259
- })}"><a href="${q(t)}" target="${q(n)}" style="position: relative; display: block; text-decoration: none;"><img src="${q(e.thumbnailUrl)}" alt="${q(S.alt || "Video preview")}" style="width: 100%; display: block;" /><span style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 9999px; background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; justify-content: center;"><span style="width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #ffffff; margin-left: 4px;"></span></span></a></div>`;
660
+ })}"><a href="${z(t)}" target="${z(n)}" style="position: relative; display: block; text-decoration: none;"><img src="${z(e.thumbnailUrl)}" alt="${z(S.alt || "Video preview")}" style="width: 100%; display: block;" /><span style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 9999px; background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; justify-content: center;"><span style="width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #ffffff; margin-left: 4px;"></span></span></a></div>`;
1260
661
  }
1261
662
  case "timer": {
1262
- let e = S.showLabels !== !1, t = V({
663
+ let e = S.showLabels !== !1, t = N({
1263
664
  fontFamily: _.digitsFontFamily,
1264
665
  fontSize: _.digitsFontSize || "40px",
1265
666
  color: _.digitsColor || "#1e293b",
1266
667
  fontWeight: "800"
1267
- }), n = V({
668
+ }), n = N({
1268
669
  fontFamily: _.labelsFontFamily,
1269
670
  fontSize: _.labelsFontSize || "16px",
1270
671
  color: _.labelsColor || "#64748b"
1271
- }), r = V({
672
+ }), r = N({
1272
673
  backgroundColor: _.backgroundColor || "#f8fafc",
1273
674
  borderRadius: _.borderRadius || "8px",
1274
675
  padding: _.padding || "16px",
1275
676
  textAlign: "center"
1276
- }), i = (r, i, a) => `<div style="display: inline-flex; flex-direction: column; align-items: center; padding: 0 10px;"><span data-unit="${r}" style="${t}">${a}</span>${e ? `<span style="${n}">${i}</span>` : ""}</div>`, o = a(S.targetDate, S.timezone), s = q(new Date(o.targetTimestamp).toISOString()), c = `<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${g.id}"]`)});if(!wrap)return;var target=new Date(wrap.getAttribute('data-plexo-target')).getTime();function pad(n){return String(n).padStart(2,'0');}function tick(){var diff=target-Date.now();var d=wrap.querySelector('[data-unit="days"]'),h=wrap.querySelector('[data-unit="hours"]'),m=wrap.querySelector('[data-unit="minutes"]'),s=wrap.querySelector('[data-unit="seconds"]');if(diff<=0){[d,h,m,s].forEach(function(n){if(n)n.textContent='00';});clearInterval(iv);return;}var total=Math.floor(diff/1000);if(d)d.textContent=pad(Math.floor(total/86400));if(h)h.textContent=pad(Math.floor(total%86400/3600));if(m)m.textContent=pad(Math.floor(total%3600/60));if(s)s.textContent=pad(total%60);}tick();var iv=setInterval(tick,1000);})();<\/script>`;
1277
- return `<div${C} data-plexo-target="${s}" style="${r}"><div>${i("days", "Days", o.days)}${i("hours", "Hours", o.hours)}${i("minutes", "Mins", o.minutes)}${i("seconds", "Secs", o.seconds)}</div>${c}</div>`;
677
+ }), i = (r, i, a) => `<div style="display: inline-flex; flex-direction: column; align-items: center; padding: 0 10px;"><span data-unit="${r}" style="${t}">${a}</span>${e ? `<span style="${n}">${i}</span>` : ""}</div>`, o = a(S.targetDate, S.timezone), c = z(new Date(o.targetTimestamp).toISOString()), l = `<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${s.id}"]`)});if(!wrap)return;var target=new Date(wrap.getAttribute('data-plexo-target')).getTime();function pad(n){return String(n).padStart(2,'0');}function tick(){var diff=target-Date.now();var d=wrap.querySelector('[data-unit="days"]'),h=wrap.querySelector('[data-unit="hours"]'),m=wrap.querySelector('[data-unit="minutes"]'),s=wrap.querySelector('[data-unit="seconds"]');if(diff<=0){[d,h,m,s].forEach(function(n){if(n)n.textContent='00';});clearInterval(iv);return;}var total=Math.floor(diff/1000);if(d)d.textContent=pad(Math.floor(total/86400));if(h)h.textContent=pad(Math.floor(total%86400/3600));if(m)m.textContent=pad(Math.floor(total%3600/60));if(s)s.textContent=pad(total%60);}tick();var iv=setInterval(tick,1000);})();<\/script>`;
678
+ return `<div${C} data-plexo-target="${c}" style="${r}"><div>${i("days", "Days", o.days)}${i("hours", "Hours", o.hours)}${i("minutes", "Mins", o.minutes)}${i("seconds", "Secs", o.seconds)}</div>${l}</div>`;
1278
679
  }
1279
680
  case "carousel": {
1280
- let e = Array.isArray(S.images) ? S.images : [], t = V({
681
+ let e = Array.isArray(S.images) ? S.images : [], t = N({
1281
682
  padding: _.padding || "10px",
1282
683
  margin: _.margin,
1283
684
  backgroundColor: _.backgroundColor,
@@ -1286,59 +687,59 @@ var ae = (g) => {
1286
687
  borderRadius: "12px"
1287
688
  });
1288
689
  if (e.length === 0) return `<div${C} style="${t}"><div style="padding: 40px; text-align: center; color: #94a3b8;">No images in carousel</div></div>`;
1289
- let n = Math.min(e.length - 1, Math.max(0, parseInt(String(S.activeIdx), 10) || 0)), r = e.map((e, t) => `<div data-slide-idx="${t}" style="display: ${t === n ? "block" : "none"};"><img src="${q(e.src)}" alt="${q(e.alt || e.caption || "")}" style="width: 100%; display: block;" />${e.caption ? `<div style="padding: 8px; text-align: center; background: rgba(15, 23, 42, 0.8); color: #fff; font-size: 12px; font-weight: 600;">${q(e.caption)}</div>` : ""}</div>`).join(""), i = e.length > 1 ? `<div style="display: flex; gap: 6px; justify-content: center; padding: 8px 0;">${e.map((e, t) => `<button type="button" data-dot-idx="${t}" style="width: 8px; height: 8px; border-radius: 9999px; border: none; background: ${t === n ? "#4f46e5" : "#cbd5e1"}; cursor: pointer;"></button>`).join("")}</div>` : "";
1290
- return `<div${C} data-active-idx="${n}" style="${t}">${e.length > 1 ? "<button type=\"button\" data-nav=\"prev\" style=\"position: absolute; left: 8px; top: 40%; transform: translateY(-50%); border: none; background: rgba(15, 23, 42, 0.6); color: #fff; width: 28px; height: 28px; border-radius: 9999px; cursor: pointer;\">‹</button><button type=\"button\" data-nav=\"next\" style=\"position: absolute; right: 8px; top: 40%; transform: translateY(-50%); border: none; background: rgba(15, 23, 42, 0.6); color: #fff; width: 28px; height: 28px; border-radius: 9999px; cursor: pointer;\">›</button>" : ""}${r}${i}${`<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${g.id}"]`)});if(!wrap)return;var slides=wrap.querySelectorAll('[data-slide-idx]');var dots=wrap.querySelectorAll('[data-dot-idx]');function show(n){var idx=(n+slides.length)%slides.length;slides.forEach(function(s,i){s.style.display=i===idx?'block':'none';});dots.forEach(function(d,i){d.style.background=i===idx?'#4f46e5':'#cbd5e1';});wrap.setAttribute('data-active-idx',String(idx));}var prev=wrap.querySelector('[data-nav="prev"]');var next=wrap.querySelector('[data-nav="next"]');if(prev)prev.addEventListener('click',function(){show(parseInt(wrap.getAttribute('data-active-idx')||'0',10)-1);});if(next)next.addEventListener('click',function(){show(parseInt(wrap.getAttribute('data-active-idx')||'0',10)+1);});dots.forEach(function(d,i){d.addEventListener('click',function(){show(i);});});})();<\/script>`}</div>`;
690
+ let n = Math.min(e.length - 1, Math.max(0, parseInt(String(S.activeIdx), 10) || 0)), r = e.map((e, t) => `<div data-slide-idx="${t}" style="display: ${t === n ? "block" : "none"};"><img src="${z(e.src)}" alt="${z(e.alt || e.caption || "")}" style="width: 100%; display: block;" />${e.caption ? `<div style="padding: 8px; text-align: center; background: rgba(15, 23, 42, 0.8); color: #fff; font-size: 12px; font-weight: 600;">${z(e.caption)}</div>` : ""}</div>`).join(""), i = e.length > 1 ? `<div style="display: flex; gap: 6px; justify-content: center; padding: 8px 0;">${e.map((e, t) => `<button type="button" data-dot-idx="${t}" style="width: 8px; height: 8px; border-radius: 9999px; border: none; background: ${t === n ? "#4f46e5" : "#cbd5e1"}; cursor: pointer;"></button>`).join("")}</div>` : "";
691
+ return `<div${C} data-active-idx="${n}" style="${t}">${e.length > 1 ? "<button type=\"button\" data-nav=\"prev\" style=\"position: absolute; left: 8px; top: 40%; transform: translateY(-50%); border: none; background: rgba(15, 23, 42, 0.6); color: #fff; width: 28px; height: 28px; border-radius: 9999px; cursor: pointer;\">‹</button><button type=\"button\" data-nav=\"next\" style=\"position: absolute; right: 8px; top: 40%; transform: translateY(-50%); border: none; background: rgba(15, 23, 42, 0.6); color: #fff; width: 28px; height: 28px; border-radius: 9999px; cursor: pointer;\">›</button>" : ""}${r}${i}${`<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${s.id}"]`)});if(!wrap)return;var slides=wrap.querySelectorAll('[data-slide-idx]');var dots=wrap.querySelectorAll('[data-dot-idx]');function show(n){var idx=(n+slides.length)%slides.length;slides.forEach(function(s,i){s.style.display=i===idx?'block':'none';});dots.forEach(function(d,i){d.style.background=i===idx?'#4f46e5':'#cbd5e1';});wrap.setAttribute('data-active-idx',String(idx));}var prev=wrap.querySelector('[data-nav="prev"]');var next=wrap.querySelector('[data-nav="next"]');if(prev)prev.addEventListener('click',function(){show(parseInt(wrap.getAttribute('data-active-idx')||'0',10)-1);});if(next)next.addEventListener('click',function(){show(parseInt(wrap.getAttribute('data-active-idx')||'0',10)+1);});dots.forEach(function(d,i){d.addEventListener('click',function(){show(i);});});})();<\/script>`}</div>`;
1291
692
  }
1292
693
  case "accordion": {
1293
- let e = o(g), t = S.mode === "multi" ? "multi" : "single", n = S.iconStyle || "chevron", r = S.iconPosition === "left", i = S.showDividers !== !1, a = S.animation !== "none", s = V({
694
+ let e = o(s), t = S.mode === "multi" ? "multi" : "single", n = S.iconStyle || "chevron", r = S.iconPosition === "left", i = S.showDividers !== !1, a = S.animation !== "none", c = N({
1294
695
  border: `${_.borderWidth || "1px"} ${_.borderStyle || "solid"} ${_.borderColor || "#e2e8f0"}`,
1295
696
  borderRadius: _.borderRadius || "10px",
1296
697
  overflow: "hidden",
1297
698
  margin: _.margin
1298
699
  });
1299
- return e.length === 0 ? `<div${C} style="${s}"></div>` : `<div${C} data-acc-mode="${t}" data-acc-icon-style="${n}" style="${s}"><div class="plexo-acc-group">${X(e, _, {
700
+ return e.length === 0 ? `<div${C} style="${c}"></div>` : `<div${C} data-acc-mode="${t}" data-acc-icon-style="${n}" style="${c}"><div class="plexo-acc-group">${W(e, _, {
1300
701
  iconStyle: n,
1301
702
  iconOnLeft: r,
1302
703
  showDividers: i,
1303
704
  animated: a
1304
- }, g.id)}</div>${`<script>(function(){var root=document.querySelector(${JSON.stringify(`[data-plexo-id="${g.id}"]`)});if(!root)return;var mode=root.getAttribute('data-acc-mode')||'single';var iconStyle=root.getAttribute('data-acc-icon-style')||'chevron';function setIconState(icon,open){if(!icon)return;if(iconStyle==='plus'){icon.textContent=open?'−':'+';}else if(iconStyle==='arrow'){icon.style.transform=open?'rotate(90deg)':'';}else if(iconStyle==='chevron'){icon.style.transform=open?'rotate(180deg)':'';}}var headers=root.querySelectorAll('[data-acc-header]');headers.forEach(function(header){header.addEventListener('click',function(){var item=header.parentElement;var group=item.parentElement;var panel=item.children[1];var isOpen=header.getAttribute('data-acc-open')==='1';if(mode!=='multi'&&group){Array.prototype.forEach.call(group.children,function(sib){if(sib===item)return;var sh=sib.children[0];var sp=sib.children[1];if(sh){sh.setAttribute('data-acc-open','0');setIconState(sh.querySelector('[data-acc-icon]'),false);}if(sp)sp.style.gridTemplateRows='0fr';});}var next=!isOpen;header.setAttribute('data-acc-open',next?'1':'0');panel.style.gridTemplateRows=next?'1fr':'0fr';setIconState(header.querySelector('[data-acc-icon]'),next);});});})();<\/script>`}</div>`;
705
+ }, s.id)}</div>${`<script>(function(){var root=document.querySelector(${JSON.stringify(`[data-plexo-id="${s.id}"]`)});if(!root)return;var mode=root.getAttribute('data-acc-mode')||'single';var iconStyle=root.getAttribute('data-acc-icon-style')||'chevron';function setIconState(icon,open){if(!icon)return;if(iconStyle==='plus'){icon.textContent=open?'−':'+';}else if(iconStyle==='arrow'){icon.style.transform=open?'rotate(90deg)':'';}else if(iconStyle==='chevron'){icon.style.transform=open?'rotate(180deg)':'';}}var headers=root.querySelectorAll('[data-acc-header]');headers.forEach(function(header){header.addEventListener('click',function(){var item=header.parentElement;var group=item.parentElement;var panel=item.children[1];var isOpen=header.getAttribute('data-acc-open')==='1';if(mode!=='multi'&&group){Array.prototype.forEach.call(group.children,function(sib){if(sib===item)return;var sh=sib.children[0];var sp=sib.children[1];if(sh){sh.setAttribute('data-acc-open','0');setIconState(sh.querySelector('[data-acc-icon]'),false);}if(sp)sp.style.gridTemplateRows='0fr';});}var next=!isOpen;header.setAttribute('data-acc-open',next?'1':'0');panel.style.gridTemplateRows=next?'1fr':'0fr';setIconState(header.querySelector('[data-acc-icon]'),next);});});})();<\/script>`}</div>`;
1305
706
  }
1306
- default: return ie(g.type);
707
+ default: return G(s.type);
1307
708
  }
1308
- }, Z = (e, t, n) => {
709
+ }, q = (e, t, n) => {
1309
710
  if (!e || typeof e != "object") return "";
1310
- let r = B(e);
711
+ let r = M(e);
1311
712
  if (!r) return `\n <!-- ROW SKIPPED (type="${typeof e.type == "string" ? e.type : "unknown"}"${e.id ? `, id="${e.id}"` : ""}): this row has no 'columns' array and its shorthand content (e.g. a list of items/links) can't be auto-converted without losing data. Provide a fully hydrated row with 'columns' and 'elements' instead. -->`;
1312
- let i = V(r.style || {}), a = J("id", r.htmlId), o = J("class", r.htmlClass), s = r.id || `row-${Math.random().toString(36).substring(2, 9)}`;
1313
- W(t, s, r.style, "tablet", r.styleTablet), W(t, s, r.style, "mobile", r.styleMobile);
1314
- let c = `\n <!-- ROW START: ${r.id || "row"} -->`;
1315
- c += `\n <div data-plexo-id="${s}"${a}${o} class="plexo-row" style="display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; ${i}">`;
1316
- let l = Array.isArray(r.columns) ? r.columns : [];
1317
- for (let e of l) {
713
+ let i = N(r.style || {}), a = B("id", r.htmlId), o = B("class", r.htmlClass), c = r.id || `row-${Math.random().toString(36).substring(2, 9)}`;
714
+ I(t, c, r.style, "tablet", r.styleTablet), I(t, c, r.style, "mobile", r.styleMobile);
715
+ let l = `\n <!-- ROW START: ${r.id || "row"} -->`;
716
+ l += `\n <div data-plexo-id="${c}"${a}${o} class="plexo-row" style="display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; ${i}">`;
717
+ let u = Array.isArray(r.columns) ? r.columns : [];
718
+ for (let e of u) {
1318
719
  if (!e) continue;
1319
- let r = e.styles || e.style || {}, i = V(r), a = r.gap || "16px", o = J("id", e.attrs?.htmlId), s = e.attrs?.htmlClass ? ` ${e.attrs.htmlClass}` : "", l = e.id || `col-${Math.random().toString(36).substring(2, 9)}`;
1320
- W(t, l, r, "tablet", e.stylesTablet), W(t, l, r, "mobile", e.stylesMobile);
1321
- let u = Array.isArray(e.elements) ? e.elements : [], d = Array.isArray(e.nestedRows) ? e.nestedRows : [], f = n && u.length === 0 && d.length === 0 ? "min-height: 148px; " : "";
1322
- c += `\n <!-- COLUMN START: ${e.id || "col"} -->`, c += `\n <div data-plexo-id="${l}"${o} class="plexo-col${s}" style="box-sizing: border-box; padding-left: 8px; padding-right: 8px; width: ${e.width || "100%"}; --plexo-col-gap: ${a}; ${f}${i}">`;
1323
- let p = new Map(u.map((e) => [e.id, e])), m = new Map(d.map((e) => [e.id, e]));
1324
- for (let r of g({
720
+ let r = e.styles || e.style || {}, i = N(r), a = r.gap || "16px", o = B("id", e.attrs?.htmlId), c = e.attrs?.htmlClass ? ` ${e.attrs.htmlClass}` : "", u = e.id || `col-${Math.random().toString(36).substring(2, 9)}`;
721
+ I(t, u, r, "tablet", e.stylesTablet), I(t, u, r, "mobile", e.stylesMobile);
722
+ let d = Array.isArray(e.elements) ? e.elements : [], f = Array.isArray(e.nestedRows) ? e.nestedRows : [], p = n && d.length === 0 && f.length === 0 ? "min-height: 148px; " : "";
723
+ l += `\n <!-- COLUMN START: ${e.id || "col"} -->`, l += `\n <div data-plexo-id="${u}"${o} class="plexo-col${c}" style="box-sizing: border-box; padding-left: 8px; padding-right: 8px; width: ${e.width || "100%"}; --plexo-col-gap: ${a}; ${p}${i}">`;
724
+ let m = new Map(d.map((e) => [e.id, e])), h = new Map(f.map((e) => [e.id, e]));
725
+ for (let r of s({
1325
726
  ...e,
1326
- elements: u,
1327
- nestedRows: d
727
+ elements: d,
728
+ nestedRows: f
1328
729
  })) {
1329
- let e = p.get(r);
730
+ let e = m.get(r);
1330
731
  if (e) {
1331
- let n = e.attributes || {}, r = typeof n.htmlClassNames == "string" ? n.htmlClassNames : typeof n.htmlClass == "string" ? n.htmlClass : typeof n.className == "string" ? n.className : "", i = J("id", n.htmlId), o = J("class", r), s = e.style?.display, l = s === "inline-block" || s === "inline" || s === "inline-flex" ? `margin-bottom: ${a}; display: ${s}; vertical-align: top;` : `margin-bottom: ${a};`;
1332
- W(t, e.id, e.style, "tablet", G(e, e.styleTablet)), W(t, e.id, e.style, "mobile", G(e, e.styleMobile)), c += `\n <div${i}${o} style="${l}">`, c += `\n ${ae(e)}`, c += "\n </div>";
732
+ let n = e.attributes || {}, r = typeof n.htmlClassNames == "string" ? n.htmlClassNames : typeof n.htmlClass == "string" ? n.htmlClass : typeof n.className == "string" ? n.className : "", i = B("id", n.htmlId), o = B("class", r), s = e.style?.display, c = s === "inline-block" || s === "inline" || s === "inline-flex" ? `margin-bottom: ${a}; display: ${s}; vertical-align: top;` : `margin-bottom: ${a};`;
733
+ I(t, e.id, e.style, "tablet", L(e, e.styleTablet)), I(t, e.id, e.style, "mobile", L(e, e.styleMobile)), l += `\n <div${i}${o} style="${c}">`, l += `\n ${K(e)}`, l += "\n </div>";
1333
734
  continue;
1334
735
  }
1335
- let i = m.get(r);
1336
- i && (c += Z(i, t, n));
736
+ let i = h.get(r);
737
+ i && (l += q(i, t, n));
1337
738
  }
1338
- c += "\n </div>";
739
+ l += "\n </div>";
1339
740
  }
1340
- return c += "\n </div>", c;
1341
- }, Q = (e, t) => {
741
+ return l += "\n </div>", l;
742
+ }, J = (e, t) => {
1342
743
  let n = t?.canvasEditorPadding ?? !1;
1343
744
  if (!e || typeof e != "object") return "<!-- Empty template -->";
1344
745
  let r = e.designJson || e.template || e, i = r.body || (Array.isArray(r.rows) ? {
@@ -1367,21 +768,21 @@ var ae = (g) => {
1367
768
  "favicon"
1368
769
  ], s = {};
1369
770
  for (let e of Object.keys(a)) o.includes(e) || (s[e] = a[e]);
1370
- let c = V(s), l = typeof a.htmlTitle == "string" && a.htmlTitle.trim() ? a.htmlTitle.trim() : typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "Plexo Rendered Page", u = J("id", a.htmlId), d = J("class", a.htmlClass), f = typeof a.customCss == "string" && a.customCss.trim() ? a.customCss.trim() : "", p = typeof a.customJs == "string" && a.customJs.trim() ? a.customJs.trim() : "", m = typeof a.favicon == "string" && a.favicon.trim() ? a.favicon.trim() : "", h = Array.isArray(i.rows) ? i.rows : Array.isArray(r.rows) ? r.rows : Array.isArray(e.rows) ? e.rows : [], g = O(D(h, [a.fontFamily])), _ = {
771
+ let c = N(s), l = typeof a.htmlTitle == "string" && a.htmlTitle.trim() ? a.htmlTitle.trim() : typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "Plexo Rendered Page", u = B("id", a.htmlId), d = B("class", a.htmlClass), f = typeof a.customCss == "string" && a.customCss.trim() ? a.customCss.trim() : "", p = typeof a.customJs == "string" && a.customJs.trim() ? a.customJs.trim() : "", m = typeof a.favicon == "string" && a.favicon.trim() ? a.favicon.trim() : "", h = Array.isArray(i.rows) ? i.rows : Array.isArray(r.rows) ? r.rows : Array.isArray(e.rows) ? e.rows : [], g = _(v(h, [a.fontFamily])), y = {
1371
772
  tablet: [],
1372
773
  mobile: []
1373
- }, v = "";
1374
- for (let e of h) v += Z(e, _, n);
1375
- let y = _.tablet.length ? `\n ${_.tablet.join("\n ")}` : "", b = _.mobile.length ? `\n ${_.mobile.join("\n ")}` : "", x = `<!DOCTYPE html>
774
+ }, b = "";
775
+ for (let e of h) b += q(e, y, n);
776
+ let x = y.tablet.length ? `\n ${y.tablet.join("\n ")}` : "", S = y.mobile.length ? `\n ${y.mobile.join("\n ")}` : "", C = `<!DOCTYPE html>
1376
777
  <html>
1377
778
  <head>
1378
779
  <meta charset="utf-8">
1379
- <title>${q(l)}</title>
1380
- ${m ? `<link rel="icon" href="${q(m)}">` : ""}
780
+ <title>${z(l)}</title>
781
+ ${m ? `<link rel="icon" href="${z(m)}">` : ""}
1381
782
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
1382
783
  ${g ? `<link rel="stylesheet" href="${g}">` : ""}
1383
784
  <style>
1384
- body { margin: 0; font-family: ${z}; }
785
+ body { margin: 0; font-family: ${j}; }
1385
786
  .plexo-row {
1386
787
  display: flex;
1387
788
  flex-wrap: wrap;
@@ -1389,7 +790,7 @@ var ae = (g) => {
1389
790
  /* Tablet: auto-scaled fonts/heights/spacing (see utilities/responsiveDefaults.ts) and
1390
791
  any explicit per-element styleTablet/stylesTablet override — columns stay side by
1391
792
  side at this width. */
1392
- @media (min-width: 769px) and (max-width: 1024px) {${y}
793
+ @media (min-width: 769px) and (max-width: 1024px) {${x}
1393
794
  }
1394
795
  @media (max-width: 768px) {
1395
796
  .plexo-row {
@@ -1399,29 +800,29 @@ var ae = (g) => {
1399
800
  width: 100% !important;
1400
801
  max-width: 100% !important;
1401
802
  margin-bottom: var(--plexo-col-gap, 16px);
1402
- }${b}
803
+ }${S}
1403
804
  }
1404
805
  </style>
1405
806
  ${f ? `<style>\n${f}\n </style>` : ""}
1406
807
  </head>
1407
808
  <body${u}${d} style="${c}">
1408
809
  <div style="max-width: 1200px; margin: 0 auto; width: 100%;">`;
1409
- return x += v, x += `\n </div>
810
+ return C += b, C += `\n </div>
1410
811
  ${p ? ` <script>\n${p}\n <\/script>` : ""}
1411
812
  </body>
1412
- </html>`, x = x.replace(/<span[^>]*data-merge-val="([^"]*)"[^>]*>[\s\S]*?<\/span>/gi, "$1"), x;
813
+ </html>`, C = C.replace(/<span[^>]*data-merge-val="([^"]*)"[^>]*>[\s\S]*?<\/span>/gi, "$1"), C;
1413
814
  };
1414
- function $(e) {
815
+ function Y(e) {
1415
816
  return e.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
1416
817
  }
1417
- function oe(e) {
1418
- return $(Q(e));
818
+ function X(e) {
819
+ return Y(J(e));
1419
820
  }
1420
- function se(e) {
1421
- return Q(e);
821
+ function Z(e) {
822
+ return J(e);
1422
823
  }
1423
- function ce(e) {
824
+ function Q(e) {
1424
825
  return e;
1425
826
  }
1426
827
  //#endregion
1427
- export { v as S, C as _, se as a, S as b, K as c, ce as d, R as f, b as g, w as h, Q as i, H as l, D as m, Y as n, oe as o, O as p, W as r, B as s, z as t, $ as u, T as v, y as x, x as y };
828
+ export { Z as a, R as c, Q as d, A as f, J as i, P as l, V as n, X as o, I as r, M as s, j as t, Y as u };