@charisol/plexo-sdk 1.4.6 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{compiler-DjDpXnfB.js → compiler-DFybM5XW.js} +262 -152
- package/dist/compiler.js +1 -1
- package/dist/compilerClient-DNKp-n6N.js +371 -0
- package/dist/compilerClient.js +1 -1
- package/dist/{iconSvgStatic-CBYk07ko.js → iconSvgStatic-CGue7nyp.js} +61 -670
- package/dist/index.js +15296 -14606
- package/dist/{mjmlBrowser-Cb23AZ33.js → mjmlBrowser-B-7fzT_I.js} +1 -1
- package/dist/sanitize.js +1 -1
- package/dist/{sanitizeCompiledHtml-BU82w6E-.js → sanitizeCompiledHtml-BxHVsbDG.js} +1 -1
- package/package.json +1 -1
- package/dist/compilerClient-CC6VoeEK.js +0 -261
- package/dist/utilities/googleFonts.d.ts +0 -17
|
@@ -218,646 +218,37 @@ function i(e) {
|
|
|
218
218
|
return n[e]?.color || "#475569";
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
|
-
//#region src/utilities/playground.constants.ts
|
|
222
|
-
var a = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, o = [
|
|
223
|
-
{
|
|
224
|
-
id: "all",
|
|
225
|
-
label: "All sources"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
id: "unsplash",
|
|
229
|
-
label: "Unsplash"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
id: "pexels",
|
|
233
|
-
label: "Pexels"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
id: "pixabay",
|
|
237
|
-
label: "Pixabay"
|
|
238
|
-
}
|
|
239
|
-
], s = [
|
|
240
|
-
{
|
|
241
|
-
id: "surface-book",
|
|
242
|
-
label: "Surface Book",
|
|
243
|
-
width: 1500,
|
|
244
|
-
category: "desktop"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
id: "macbook-pro",
|
|
248
|
-
label: "MacBook Pro",
|
|
249
|
-
width: 1440,
|
|
250
|
-
category: "desktop"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
id: "imac",
|
|
254
|
-
label: "iMac",
|
|
255
|
-
width: 1280,
|
|
256
|
-
category: "desktop"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
id: "macbook",
|
|
260
|
-
label: "MacBook",
|
|
261
|
-
width: 1152,
|
|
262
|
-
category: "desktop"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
id: "surface-pro-4",
|
|
266
|
-
label: "Surface Pro 4",
|
|
267
|
-
width: 1368,
|
|
268
|
-
category: "tablet"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
id: "ipad-pro-129",
|
|
272
|
-
label: "iPad Pro 12.9\"",
|
|
273
|
-
width: 1024,
|
|
274
|
-
category: "tablet"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
id: "ipad-pro-11",
|
|
278
|
-
label: "iPad Pro 11\"",
|
|
279
|
-
width: 834,
|
|
280
|
-
category: "tablet"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
id: "ipad-mini",
|
|
284
|
-
label: "iPad Mini",
|
|
285
|
-
width: 768,
|
|
286
|
-
category: "tablet"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
id: "iphone-15-pro-max",
|
|
290
|
-
label: "iPhone 15 Pro Max",
|
|
291
|
-
width: 430,
|
|
292
|
-
category: "mobile"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
id: "iphone-15-plus",
|
|
296
|
-
label: "iPhone 15 Plus",
|
|
297
|
-
width: 430,
|
|
298
|
-
category: "mobile"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
id: "iphone-se",
|
|
302
|
-
label: "iPhone SE",
|
|
303
|
-
width: 375,
|
|
304
|
-
category: "mobile"
|
|
305
|
-
}
|
|
306
|
-
], c = 1280, l = Object.entries(n).map(([e, t]) => ({
|
|
307
|
-
id: e,
|
|
308
|
-
label: t.label
|
|
309
|
-
})), u = [
|
|
310
|
-
{
|
|
311
|
-
label: "Text",
|
|
312
|
-
value: "text"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
label: "Email",
|
|
316
|
-
value: "email"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
label: "Number",
|
|
320
|
-
value: "number"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
label: "Date",
|
|
324
|
-
value: "date"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
label: "Textarea",
|
|
328
|
-
value: "textarea"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
label: "Select",
|
|
332
|
-
value: "select"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
label: "Radio",
|
|
336
|
-
value: "radio"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
label: "Checkbox",
|
|
340
|
-
value: "checkbox"
|
|
341
|
-
}
|
|
342
|
-
], d = [
|
|
343
|
-
{
|
|
344
|
-
label: "1 Column",
|
|
345
|
-
widths: ["100%"],
|
|
346
|
-
percentages: ["100%"]
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
label: "2 Columns",
|
|
350
|
-
widths: ["50%", "50%"],
|
|
351
|
-
percentages: ["50%", "50%"]
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
label: "60 / 40",
|
|
355
|
-
widths: ["60%", "40%"],
|
|
356
|
-
percentages: ["60%", "40%"]
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
label: "40 / 60",
|
|
360
|
-
widths: ["40%", "60%"],
|
|
361
|
-
percentages: ["40%", "60%"]
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
label: "3 Columns",
|
|
365
|
-
widths: [
|
|
366
|
-
"33.33%",
|
|
367
|
-
"33.33%",
|
|
368
|
-
"33.33%"
|
|
369
|
-
],
|
|
370
|
-
percentages: [
|
|
371
|
-
"33%",
|
|
372
|
-
"33%",
|
|
373
|
-
"33%"
|
|
374
|
-
]
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
label: "4 Columns",
|
|
378
|
-
widths: [
|
|
379
|
-
"25%",
|
|
380
|
-
"25%",
|
|
381
|
-
"25%",
|
|
382
|
-
"25%"
|
|
383
|
-
],
|
|
384
|
-
percentages: [
|
|
385
|
-
"25%",
|
|
386
|
-
"25%",
|
|
387
|
-
"25%",
|
|
388
|
-
"25%"
|
|
389
|
-
]
|
|
390
|
-
}
|
|
391
|
-
], f = [
|
|
392
|
-
{
|
|
393
|
-
label: "Roboto",
|
|
394
|
-
value: "'Roboto', sans-serif",
|
|
395
|
-
style: "sans"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
label: "Open Sans",
|
|
399
|
-
value: "'Open Sans', sans-serif",
|
|
400
|
-
style: "sans"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
label: "Lato",
|
|
404
|
-
value: "'Lato', sans-serif",
|
|
405
|
-
style: "sans"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
label: "Montserrat",
|
|
409
|
-
value: "'Montserrat', sans-serif",
|
|
410
|
-
style: "sans"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
label: "Inter",
|
|
414
|
-
value: "'Inter', sans-serif",
|
|
415
|
-
style: "sans"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
label: "Poppins",
|
|
419
|
-
value: "'Poppins', sans-serif",
|
|
420
|
-
style: "sans"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
label: "Raleway",
|
|
424
|
-
value: "'Raleway', sans-serif",
|
|
425
|
-
style: "sans"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
label: "Nunito",
|
|
429
|
-
value: "'Nunito', sans-serif",
|
|
430
|
-
style: "sans"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
label: "Nunito Sans",
|
|
434
|
-
value: "'Nunito Sans', sans-serif",
|
|
435
|
-
style: "sans"
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
label: "Ubuntu",
|
|
439
|
-
value: "'Ubuntu', sans-serif",
|
|
440
|
-
style: "sans"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
label: "Rubik",
|
|
444
|
-
value: "'Rubik', sans-serif",
|
|
445
|
-
style: "sans"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
label: "Plus Jakarta Sans",
|
|
449
|
-
value: "'Plus Jakarta Sans', sans-serif",
|
|
450
|
-
style: "sans"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
label: "DM Sans",
|
|
454
|
-
value: "'DM Sans', sans-serif",
|
|
455
|
-
style: "sans"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
label: "Outfit",
|
|
459
|
-
value: "'Outfit', sans-serif",
|
|
460
|
-
style: "sans"
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
label: "Figtree",
|
|
464
|
-
value: "'Figtree', sans-serif",
|
|
465
|
-
style: "sans"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
label: "Karla",
|
|
469
|
-
value: "'Karla', sans-serif",
|
|
470
|
-
style: "sans"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
label: "Barlow",
|
|
474
|
-
value: "'Barlow', sans-serif",
|
|
475
|
-
style: "sans"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
label: "Work Sans",
|
|
479
|
-
value: "'Work Sans', sans-serif",
|
|
480
|
-
style: "sans"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
label: "Manrope",
|
|
484
|
-
value: "'Manrope', sans-serif",
|
|
485
|
-
style: "sans"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
label: "Jost",
|
|
489
|
-
value: "'Jost', sans-serif",
|
|
490
|
-
style: "sans"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
label: "Sora",
|
|
494
|
-
value: "'Sora', sans-serif",
|
|
495
|
-
style: "sans"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
label: "Be Vietnam Pro",
|
|
499
|
-
value: "'Be Vietnam Pro', sans-serif",
|
|
500
|
-
style: "sans"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
label: "Mulish",
|
|
504
|
-
value: "'Mulish', sans-serif",
|
|
505
|
-
style: "sans"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
label: "Noto Sans",
|
|
509
|
-
value: "'Noto Sans', sans-serif",
|
|
510
|
-
style: "sans"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
label: "Source Sans 3",
|
|
514
|
-
value: "'Source Sans 3', sans-serif",
|
|
515
|
-
style: "sans"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
label: "IBM Plex Sans",
|
|
519
|
-
value: "'IBM Plex Sans', sans-serif",
|
|
520
|
-
style: "sans"
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
label: "Josefin Sans",
|
|
524
|
-
value: "'Josefin Sans', sans-serif",
|
|
525
|
-
style: "sans"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
label: "Quicksand",
|
|
529
|
-
value: "'Quicksand', sans-serif",
|
|
530
|
-
style: "sans"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
label: "Exo 2",
|
|
534
|
-
value: "'Exo 2', sans-serif",
|
|
535
|
-
style: "sans"
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
label: "Titillium Web",
|
|
539
|
-
value: "'Titillium Web', sans-serif",
|
|
540
|
-
style: "sans"
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
label: "Public Sans",
|
|
544
|
-
value: "'Public Sans', sans-serif",
|
|
545
|
-
style: "sans"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
label: "Merriweather",
|
|
549
|
-
value: "'Merriweather', serif",
|
|
550
|
-
style: "serif"
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
label: "Fraunces",
|
|
554
|
-
value: "'Fraunces', serif",
|
|
555
|
-
style: "serif"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
label: "Playfair Display",
|
|
559
|
-
value: "'Playfair Display', serif",
|
|
560
|
-
style: "serif"
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
label: "Lora",
|
|
564
|
-
value: "'Lora', serif",
|
|
565
|
-
style: "serif"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
label: "PT Serif",
|
|
569
|
-
value: "'PT Serif', serif",
|
|
570
|
-
style: "serif"
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
label: "Noto Serif",
|
|
574
|
-
value: "'Noto Serif', serif",
|
|
575
|
-
style: "serif"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
label: "EB Garamond",
|
|
579
|
-
value: "'EB Garamond', serif",
|
|
580
|
-
style: "serif"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
label: "Libre Baskerville",
|
|
584
|
-
value: "'Libre Baskerville', serif",
|
|
585
|
-
style: "serif"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
label: "Cormorant Garamond",
|
|
589
|
-
value: "'Cormorant Garamond', serif",
|
|
590
|
-
style: "serif"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
label: "Crimson Text",
|
|
594
|
-
value: "'Crimson Text', serif",
|
|
595
|
-
style: "serif"
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
label: "DM Serif Display",
|
|
599
|
-
value: "'DM Serif Display', serif",
|
|
600
|
-
style: "serif"
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
label: "Domine",
|
|
604
|
-
value: "'Domine', serif",
|
|
605
|
-
style: "serif"
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
label: "Bitter",
|
|
609
|
-
value: "'Bitter', serif",
|
|
610
|
-
style: "serif"
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
label: "Spectral",
|
|
614
|
-
value: "'Spectral', serif",
|
|
615
|
-
style: "serif"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
label: "Cardo",
|
|
619
|
-
value: "'Cardo', serif",
|
|
620
|
-
style: "serif"
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
label: "Gilda Display",
|
|
624
|
-
value: "'Gilda Display', serif",
|
|
625
|
-
style: "serif"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
label: "Roboto Mono",
|
|
629
|
-
value: "'Roboto Mono', monospace",
|
|
630
|
-
style: "mono"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
label: "Source Code Pro",
|
|
634
|
-
value: "'Source Code Pro', monospace",
|
|
635
|
-
style: "mono"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
label: "Fira Code",
|
|
639
|
-
value: "'Fira Code', monospace",
|
|
640
|
-
style: "mono"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
label: "JetBrains Mono",
|
|
644
|
-
value: "'JetBrains Mono', monospace",
|
|
645
|
-
style: "mono"
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
label: "IBM Plex Mono",
|
|
649
|
-
value: "'IBM Plex Mono', monospace",
|
|
650
|
-
style: "mono"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
label: "Space Mono",
|
|
654
|
-
value: "'Space Mono', monospace",
|
|
655
|
-
style: "mono"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
label: "Inconsolata",
|
|
659
|
-
value: "'Inconsolata', monospace",
|
|
660
|
-
style: "mono"
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
label: "Courier Prime",
|
|
664
|
-
value: "'Courier Prime', monospace",
|
|
665
|
-
style: "mono"
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
label: "Oswald",
|
|
669
|
-
value: "'Oswald', sans-serif",
|
|
670
|
-
style: "display"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
label: "Anton",
|
|
674
|
-
value: "'Anton', sans-serif",
|
|
675
|
-
style: "display"
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
label: "Bebas Neue",
|
|
679
|
-
value: "'Bebas Neue', sans-serif",
|
|
680
|
-
style: "display"
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
label: "Righteous",
|
|
684
|
-
value: "'Righteous', sans-serif",
|
|
685
|
-
style: "display"
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
label: "Russo One",
|
|
689
|
-
value: "'Russo One', sans-serif",
|
|
690
|
-
style: "display"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
label: "Chakra Petch",
|
|
694
|
-
value: "'Chakra Petch', sans-serif",
|
|
695
|
-
style: "display"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
label: "Orbitron",
|
|
699
|
-
value: "'Orbitron', sans-serif",
|
|
700
|
-
style: "display"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
label: "Abril Fatface",
|
|
704
|
-
value: "'Abril Fatface', serif",
|
|
705
|
-
style: "display"
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
label: "Lobster",
|
|
709
|
-
value: "'Lobster', cursive",
|
|
710
|
-
style: "display"
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
label: "Alfa Slab One",
|
|
714
|
-
value: "'Alfa Slab One', serif",
|
|
715
|
-
style: "display"
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
label: "Archivo Black",
|
|
719
|
-
value: "'Archivo Black', sans-serif",
|
|
720
|
-
style: "display"
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
label: "Bangers",
|
|
724
|
-
value: "'Bangers', cursive",
|
|
725
|
-
style: "display"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
label: "Boogaloo",
|
|
729
|
-
value: "'Boogaloo', cursive",
|
|
730
|
-
style: "display"
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
label: "Fredoka One",
|
|
734
|
-
value: "'Fredoka One', cursive",
|
|
735
|
-
style: "display"
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
label: "Permanent Marker",
|
|
739
|
-
value: "'Permanent Marker', cursive",
|
|
740
|
-
style: "display"
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
label: "Lilita One",
|
|
744
|
-
value: "'Lilita One', cursive",
|
|
745
|
-
style: "display"
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
label: "Dancing Script",
|
|
749
|
-
value: "'Dancing Script', cursive",
|
|
750
|
-
style: "handwriting"
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
label: "Pacifico",
|
|
754
|
-
value: "'Pacifico', cursive",
|
|
755
|
-
style: "handwriting"
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
label: "Satisfy",
|
|
759
|
-
value: "'Satisfy', cursive",
|
|
760
|
-
style: "handwriting"
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
label: "Caveat",
|
|
764
|
-
value: "'Caveat', cursive",
|
|
765
|
-
style: "handwriting"
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
label: "Indie Flower",
|
|
769
|
-
value: "'Indie Flower', cursive",
|
|
770
|
-
style: "handwriting"
|
|
771
|
-
},
|
|
772
|
-
{
|
|
773
|
-
label: "Kalam",
|
|
774
|
-
value: "'Kalam', cursive",
|
|
775
|
-
style: "handwriting"
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
label: "Shadows Into Light",
|
|
779
|
-
value: "'Shadows Into Light', cursive",
|
|
780
|
-
style: "handwriting"
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
label: "Amatic SC",
|
|
784
|
-
value: "'Amatic SC', cursive",
|
|
785
|
-
style: "handwriting"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
label: "Courgette",
|
|
789
|
-
value: "'Courgette', cursive",
|
|
790
|
-
style: "handwriting"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
label: "Cookie",
|
|
794
|
-
value: "'Cookie', cursive",
|
|
795
|
-
style: "handwriting"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
label: "Great Vibes",
|
|
799
|
-
value: "'Great Vibes', cursive",
|
|
800
|
-
style: "handwriting"
|
|
801
|
-
}
|
|
802
|
-
], p = new Map(f.map((e) => [e.value, e.label]));
|
|
803
|
-
function m(e, t = []) {
|
|
804
|
-
let n = /* @__PURE__ */ new Set(), r = (e) => {
|
|
805
|
-
if (!e) return;
|
|
806
|
-
let t = Array.isArray(e.columns) ? e.columns : [];
|
|
807
|
-
for (let e of t) {
|
|
808
|
-
if (!e) continue;
|
|
809
|
-
let t = Array.isArray(e.elements) ? e.elements : [];
|
|
810
|
-
for (let e of t) {
|
|
811
|
-
let t = e?.style?.fontFamily;
|
|
812
|
-
typeof t == "string" && t.trim() && n.add(t.trim());
|
|
813
|
-
}
|
|
814
|
-
(Array.isArray(e.nestedRows) ? e.nestedRows : []).forEach(r);
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
|
-
(e || []).forEach(r);
|
|
818
|
-
for (let e of t) typeof e == "string" && e.trim() && n.add(e.trim());
|
|
819
|
-
return n;
|
|
820
|
-
}
|
|
821
|
-
function h(e) {
|
|
822
|
-
let t = /* @__PURE__ */ new Set();
|
|
823
|
-
for (let n of e) {
|
|
824
|
-
let e = p.get(n);
|
|
825
|
-
e && t.add(e);
|
|
826
|
-
}
|
|
827
|
-
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`;
|
|
828
|
-
}
|
|
829
|
-
//#endregion
|
|
830
221
|
//#region src/utilities/elementResolvers.ts
|
|
831
|
-
var
|
|
832
|
-
function
|
|
833
|
-
let n = e.attributes || {}, r = e.style || {},
|
|
834
|
-
return
|
|
835
|
-
let t =
|
|
222
|
+
var a = (e) => e === "twitter" ? "x" : e, o = (e, t = "currentColor") => `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="${n[a(e)]?.path || "M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}"/></svg>`;
|
|
223
|
+
function s(e, t) {
|
|
224
|
+
let n = e.attributes || {}, r = e.style || {}, o = Array.isArray(n.links) ? n.links : [], s = n.colorMode === "branded", c = s || !!t?.forceBrandedColor;
|
|
225
|
+
return o.filter((e) => e && typeof e == "object").map((e) => {
|
|
226
|
+
let t = a(String(e.provider || ""));
|
|
836
227
|
return {
|
|
837
228
|
provider: t,
|
|
838
229
|
url: typeof e.url == "string" && e.url.trim() ? e.url : "#",
|
|
839
|
-
color:
|
|
840
|
-
backgroundColor:
|
|
230
|
+
color: c ? i(t) : e.color || r.iconColor || "#475569",
|
|
231
|
+
backgroundColor: s ? "transparent" : e.backgroundColor || r.iconBackgroundColor || "#f8fafc",
|
|
841
232
|
size: e.size || r.iconSize || "36px",
|
|
842
233
|
iconType: (e.iconType || n.iconType) === "square" ? "square" : "circle"
|
|
843
234
|
};
|
|
844
235
|
});
|
|
845
236
|
}
|
|
846
|
-
function
|
|
237
|
+
function c(e) {
|
|
847
238
|
let t = e.attributes || {};
|
|
848
239
|
return (Array.isArray(t.links) ? t.links : []).filter((e) => e && typeof e == "object").map((e) => ({
|
|
849
240
|
label: typeof e.label == "string" && e.label.trim() ? e.label : "Link",
|
|
850
241
|
href: typeof e.href == "string" && e.href.trim() ? e.href : "#"
|
|
851
242
|
}));
|
|
852
243
|
}
|
|
853
|
-
function
|
|
244
|
+
function l(e) {
|
|
854
245
|
let t = e.style || {}, n = e.attributes || {};
|
|
855
246
|
return {
|
|
856
247
|
width: t.width || "100%",
|
|
857
248
|
height: n.autoHeight === !1 && t.height || "auto"
|
|
858
249
|
};
|
|
859
250
|
}
|
|
860
|
-
function
|
|
251
|
+
function u(e, t, n, r) {
|
|
861
252
|
if (e) return e;
|
|
862
253
|
if (t) {
|
|
863
254
|
let e = t.trim().split(/\s+/).filter(Boolean);
|
|
@@ -873,25 +264,25 @@ function x(e, t, n, r) {
|
|
|
873
264
|
}
|
|
874
265
|
return r;
|
|
875
266
|
}
|
|
876
|
-
function
|
|
267
|
+
function d(e) {
|
|
877
268
|
let t = e.style || {}, n = e.attributes || {};
|
|
878
269
|
return {
|
|
879
270
|
width: n.autoWidth === !1 ? t.width || "100%" : "auto",
|
|
880
271
|
height: n.autoHeight === !1 && t.height || "auto"
|
|
881
272
|
};
|
|
882
273
|
}
|
|
883
|
-
function
|
|
274
|
+
function f(e) {
|
|
884
275
|
return { autoWidth: (e.attributes || {}).autoWidth === !0 };
|
|
885
276
|
}
|
|
886
|
-
function
|
|
277
|
+
function p(e) {
|
|
887
278
|
let t = e.style || {};
|
|
888
279
|
return (e.attributes || {}).autoHeight === !1 && t.height || "auto";
|
|
889
280
|
}
|
|
890
|
-
function
|
|
281
|
+
function m(e, t) {
|
|
891
282
|
let n = e.style || {};
|
|
892
283
|
return (e.attributes || {}).autoHeight === !1 && n.height || t;
|
|
893
284
|
}
|
|
894
|
-
var
|
|
285
|
+
var h = [
|
|
895
286
|
"showLabel",
|
|
896
287
|
"fontSize",
|
|
897
288
|
"labelFontWeight",
|
|
@@ -902,15 +293,15 @@ var E = [
|
|
|
902
293
|
"inputTextColor",
|
|
903
294
|
"placeholderColor"
|
|
904
295
|
];
|
|
905
|
-
function
|
|
296
|
+
function g(e) {
|
|
906
297
|
let t = null;
|
|
907
298
|
return (Array.isArray(e) ? e : []).map((e) => {
|
|
908
299
|
let n = e?.inheritStylesFromPrevious && t ? { ...e } : e;
|
|
909
|
-
if (e?.inheritStylesFromPrevious && t) for (let e of
|
|
300
|
+
if (e?.inheritStylesFromPrevious && t) for (let e of h) n[e] = t[e];
|
|
910
301
|
return t = n, n;
|
|
911
302
|
});
|
|
912
303
|
}
|
|
913
|
-
function
|
|
304
|
+
function _(e) {
|
|
914
305
|
let t = {};
|
|
915
306
|
for (let n of e) {
|
|
916
307
|
let e = n.name || n.id || "field";
|
|
@@ -928,8 +319,8 @@ function O(e) {
|
|
|
928
319
|
};
|
|
929
320
|
});
|
|
930
321
|
}
|
|
931
|
-
var
|
|
932
|
-
function
|
|
322
|
+
var v = (e) => String(Math.max(0, e)).padStart(2, "0"), y = /[Zz]$|[+-]\d{2}:?\d{2}$/;
|
|
323
|
+
function b(e, t) {
|
|
933
324
|
let n = new Intl.DateTimeFormat("en-US", {
|
|
934
325
|
timeZone: t,
|
|
935
326
|
hourCycle: "h23",
|
|
@@ -942,12 +333,12 @@ function j(e, t) {
|
|
|
942
333
|
}).formatToParts(new Date(e)), r = (e) => Number(n.find((t) => t.type === e)?.value);
|
|
943
334
|
return Date.UTC(r("year"), r("month") - 1, r("day"), r("hour"), r("minute"), r("second")) - e;
|
|
944
335
|
}
|
|
945
|
-
function
|
|
946
|
-
let n =
|
|
947
|
-
return Number.isNaN(r) || n || !t ? r : r -
|
|
336
|
+
function x(e, t) {
|
|
337
|
+
let n = y.test(e), r = Date.parse(n ? e : `${e}Z`);
|
|
338
|
+
return Number.isNaN(r) || n || !t ? r : r - b(r, t);
|
|
948
339
|
}
|
|
949
|
-
function
|
|
950
|
-
let r = e ?
|
|
340
|
+
function S(e, t, n = Date.now()) {
|
|
341
|
+
let r = e ? x(e, t) : NaN, i = Number.isNaN(r) ? n : r, a = i - n;
|
|
951
342
|
if (a <= 0) return {
|
|
952
343
|
days: "00",
|
|
953
344
|
hours: "00",
|
|
@@ -958,31 +349,31 @@ function N(e, t, n = Date.now()) {
|
|
|
958
349
|
};
|
|
959
350
|
let o = Math.floor(a / 1e3), s = Math.floor(o / 86400), c = Math.floor(o % 86400 / 3600), l = Math.floor(o % 3600 / 60), u = o % 60;
|
|
960
351
|
return {
|
|
961
|
-
days:
|
|
962
|
-
hours:
|
|
963
|
-
minutes:
|
|
964
|
-
seconds:
|
|
352
|
+
days: v(s),
|
|
353
|
+
hours: v(c),
|
|
354
|
+
minutes: v(l),
|
|
355
|
+
seconds: v(u),
|
|
965
356
|
isExpired: !1,
|
|
966
357
|
targetTimestamp: i
|
|
967
358
|
};
|
|
968
359
|
}
|
|
969
|
-
var
|
|
360
|
+
var C = [
|
|
970
361
|
"youtube.com",
|
|
971
362
|
"www.youtube.com",
|
|
972
363
|
"youtu.be",
|
|
973
364
|
"m.youtube.com"
|
|
974
365
|
];
|
|
975
|
-
function
|
|
366
|
+
function w(e) {
|
|
976
367
|
return e.hostname === "youtu.be" ? e.pathname.slice(1).split("/")[0] || null : e.pathname.startsWith("/embed/") ? e.pathname.slice(7).split("/")[0] || null : e.pathname.startsWith("/shorts/") ? e.pathname.slice(8).split("/")[0] || null : e.searchParams.get("v");
|
|
977
368
|
}
|
|
978
|
-
function
|
|
369
|
+
function T(e) {
|
|
979
370
|
let t = e.pathname.match(/(\d+)/);
|
|
980
371
|
return t ? t[1] : null;
|
|
981
372
|
}
|
|
982
|
-
var
|
|
983
|
-
function
|
|
373
|
+
var E = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22360%22%20viewBox%3D%220%200%20640%20360%22%3E%3Crect%20width%3D%22640%22%20height%3D%22360%22%20fill%3D%22%230f172a%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22180%22%20r%3D%2248%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.9%22%2F%3E%3Cpath%20d%3D%22M304%20156%20L356%20180%20L304%20204%20Z%22%20fill%3D%22%230f172a%22%2F%3E%3C%2Fsvg%3E";
|
|
374
|
+
function D(e) {
|
|
984
375
|
if (!e || typeof e != "string") return {
|
|
985
|
-
thumbnailUrl:
|
|
376
|
+
thumbnailUrl: E,
|
|
986
377
|
provider: "unknown"
|
|
987
378
|
};
|
|
988
379
|
let t;
|
|
@@ -990,30 +381,30 @@ function R(e) {
|
|
|
990
381
|
t = new URL(e);
|
|
991
382
|
} catch {
|
|
992
383
|
return {
|
|
993
|
-
thumbnailUrl:
|
|
384
|
+
thumbnailUrl: E,
|
|
994
385
|
provider: "unknown"
|
|
995
386
|
};
|
|
996
387
|
}
|
|
997
|
-
if (
|
|
998
|
-
let e =
|
|
388
|
+
if (C.includes(t.hostname)) {
|
|
389
|
+
let e = w(t);
|
|
999
390
|
if (e) return {
|
|
1000
391
|
thumbnailUrl: `https://img.youtube.com/vi/${e}/hqdefault.jpg`,
|
|
1001
392
|
provider: "youtube"
|
|
1002
393
|
};
|
|
1003
394
|
}
|
|
1004
395
|
if (t.hostname === "vimeo.com" || t.hostname === "www.vimeo.com" || t.hostname === "player.vimeo.com") {
|
|
1005
|
-
let e =
|
|
396
|
+
let e = T(t);
|
|
1006
397
|
if (e) return {
|
|
1007
398
|
thumbnailUrl: `https://vumbnail.com/${e}.jpg`,
|
|
1008
399
|
provider: "vimeo"
|
|
1009
400
|
};
|
|
1010
401
|
}
|
|
1011
402
|
return {
|
|
1012
|
-
thumbnailUrl:
|
|
403
|
+
thumbnailUrl: E,
|
|
1013
404
|
provider: "unknown"
|
|
1014
405
|
};
|
|
1015
406
|
}
|
|
1016
|
-
function
|
|
407
|
+
function O(e) {
|
|
1017
408
|
let t = e.attributes || {}, n = Math.max(1, Number(t.rowCount) || 2), r = Math.max(1, Number(t.colCount) || 2), i = Array.isArray(t.cells) ? t.cells : [], a = [];
|
|
1018
409
|
for (let e = 0; e < n; e++) {
|
|
1019
410
|
let t = Array.isArray(i[e]) ? i[e] : [], n = [];
|
|
@@ -1029,29 +420,29 @@ function z(e) {
|
|
|
1029
420
|
striped: !!t.striped
|
|
1030
421
|
};
|
|
1031
422
|
}
|
|
1032
|
-
var
|
|
1033
|
-
function
|
|
1034
|
-
let r = n <
|
|
423
|
+
var k = 8;
|
|
424
|
+
function A(e, t, n) {
|
|
425
|
+
let r = n < k && Array.isArray(e?.children) ? e.children : [];
|
|
1035
426
|
return {
|
|
1036
427
|
id: typeof e?.id == "string" && e.id ? e.id : `item-${t}`,
|
|
1037
428
|
title: typeof e?.title == "string" && e.title.trim() ? e.title : `Item ${t + 1}`,
|
|
1038
429
|
content: typeof e?.content == "string" ? e.content : "",
|
|
1039
430
|
defaultOpen: !!e?.defaultOpen,
|
|
1040
|
-
children: r.map((e, t) =>
|
|
431
|
+
children: r.map((e, t) => A(e, t, n + 1))
|
|
1041
432
|
};
|
|
1042
433
|
}
|
|
1043
|
-
function
|
|
434
|
+
function j(e, t) {
|
|
1044
435
|
if (t !== "multi") {
|
|
1045
436
|
let t = !1;
|
|
1046
437
|
for (let n of e) n.defaultOpen && (t ? n.defaultOpen = !1 : t = !0);
|
|
1047
438
|
}
|
|
1048
|
-
for (let n of e)
|
|
439
|
+
for (let n of e) j(n.children, t);
|
|
1049
440
|
}
|
|
1050
|
-
function
|
|
1051
|
-
let t = e.attributes || {}, n = t.mode === "multi" ? "multi" : "single", r = (Array.isArray(t.items) ? t.items : []).map((e, t) =>
|
|
1052
|
-
return
|
|
441
|
+
function M(e) {
|
|
442
|
+
let t = e.attributes || {}, n = t.mode === "multi" ? "multi" : "single", r = (Array.isArray(t.items) ? t.items : []).map((e, t) => A(e, t, 0));
|
|
443
|
+
return j(r, n), r;
|
|
1053
444
|
}
|
|
1054
|
-
function
|
|
445
|
+
function N(e, t, n) {
|
|
1055
446
|
let r = JSON.parse(JSON.stringify(Array.isArray(e) ? e : [])), i = (e, t) => {
|
|
1056
447
|
let [r, ...a] = t;
|
|
1057
448
|
if (e[r]) {
|
|
@@ -1069,7 +460,7 @@ function W(e, t, n) {
|
|
|
1069
460
|
}
|
|
1070
461
|
//#endregion
|
|
1071
462
|
//#region src/utilities/iconSvgStatic.ts
|
|
1072
|
-
var
|
|
463
|
+
var P = {
|
|
1073
464
|
"a-arrow-down": [
|
|
1074
465
|
["path", { d: "m14 12 4 4 4-4" }],
|
|
1075
466
|
["path", { d: "M18 16V7" }],
|
|
@@ -15889,18 +15280,18 @@ var G = {
|
|
|
15889
15280
|
y2: "11"
|
|
15890
15281
|
}]
|
|
15891
15282
|
]
|
|
15892
|
-
},
|
|
15893
|
-
function
|
|
15283
|
+
}, F = "circle-help";
|
|
15284
|
+
function I(e) {
|
|
15894
15285
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").toLowerCase();
|
|
15895
15286
|
}
|
|
15896
|
-
function
|
|
15897
|
-
let t = e || "HelpCircle", n =
|
|
15898
|
-
if (
|
|
15287
|
+
function L(e) {
|
|
15288
|
+
let t = e || "HelpCircle", n = I(t.replace(/^\w/, (e) => e.toUpperCase()));
|
|
15289
|
+
if (P[n]) return n;
|
|
15899
15290
|
let r = t.toLowerCase().replace(/[-_\s]/g, "");
|
|
15900
|
-
return Object.keys(
|
|
15291
|
+
return Object.keys(P).find((e) => e.replace(/-/g, "") === r) || F;
|
|
15901
15292
|
}
|
|
15902
|
-
function
|
|
15903
|
-
return `<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="${n}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${(
|
|
15293
|
+
function R(e, t, n) {
|
|
15294
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="${n}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${(P[L(e)] || P[F] || []).map(([e, t]) => `<${e} ${Object.entries(t).map(([e, t]) => `${e}="${String(t)}"`).join(" ")}></${e}>`).join("")}</svg>`;
|
|
15904
15295
|
}
|
|
15905
15296
|
//#endregion
|
|
15906
|
-
export {
|
|
15297
|
+
export { t as S, N as _, u as a, i as b, g as c, c as d, s as f, D as g, S as h, M as i, m as l, f as m, _ as n, d as o, O as p, o as r, p as s, R as t, l as u, r as v, e as x, n as y };
|