@maildeno/editor 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/DatePicker-6dMK-shv.js +5639 -0
  3. package/dist/DatePicker-CEm1DPgG.js +5640 -0
  4. package/dist/HealthIndicator-Ch5Ck0BL.js +1954 -0
  5. package/dist/HealthIndicator-Dr5vMr1T.js +1953 -0
  6. package/dist/PreviewCanvas-CG52GC5m.js +667 -0
  7. package/dist/PreviewCanvas-CjOrVIGt.js +668 -0
  8. package/dist/RichTextEditor-DaaHuVox.js +13487 -0
  9. package/dist/RichTextEditor-DoWpYF0R.js +13432 -0
  10. package/dist/RowPreviewChildren-DQoyExvw.js +4 -0
  11. package/dist/RowPreviewChildren-yl3aB7hb.js +4 -0
  12. package/dist/RowPreviewLegacyComponent-CHxbwy9l.js +454 -0
  13. package/dist/RowPreviewLegacyComponent-Dv7OCys4.js +454 -0
  14. package/dist/RowPreviewRow-Bizr4PTf.js +86 -0
  15. package/dist/RowPreviewRow-CLhz0YQ5.js +86 -0
  16. package/dist/SavedRowsPanel-C0DkAzHi.js +611 -0
  17. package/dist/SavedRowsPanel-Cp3gADrK.js +610 -0
  18. package/dist/babel-Bmz1GpKj.js +7218 -0
  19. package/dist/editor.css +1 -2
  20. package/dist/element-CRfWpZos.js +40842 -0
  21. package/dist/element.js +2 -2
  22. package/dist/estree-C5xyFN_T.js +4831 -0
  23. package/dist/html-Dc_r73Xn.js +3062 -0
  24. package/dist/index-BlYp4vAp.js +34092 -0
  25. package/dist/index.js +14 -48471
  26. package/dist/init.js +94 -82
  27. package/dist/standalone-Yv8gSIWN.js +2336 -0
  28. package/package.json +2 -2
  29. package/dist/RowPreviewLegacyComponent-3QuwvWmT.js +0 -402
  30. package/dist/RowPreviewLegacyComponent-DVxrCJ14.js +0 -402
  31. package/dist/RowPreviewRow-0pEQLmS4.js +0 -80
  32. package/dist/RowPreviewRow-Eum1wh1W.js +0 -80
  33. package/dist/adapters/index.d.ts +0 -38
  34. package/dist/babel-DV7WPQI0.js +0 -10043
  35. package/dist/baseStyles.d.ts +0 -13
  36. package/dist/blocks/canvasStyleHelpers.d.ts +0 -17
  37. package/dist/blocks/definitions/anchor.d.ts +0 -2
  38. package/dist/blocks/definitions/button.d.ts +0 -2
  39. package/dist/blocks/definitions/divider.d.ts +0 -2
  40. package/dist/blocks/definitions/heading.d.ts +0 -2
  41. package/dist/blocks/definitions/image.d.ts +0 -2
  42. package/dist/blocks/definitions/list.d.ts +0 -2
  43. package/dist/blocks/definitions/menu.d.ts +0 -2
  44. package/dist/blocks/definitions/paragraph.d.ts +0 -2
  45. package/dist/blocks/definitions/socials.d.ts +0 -2
  46. package/dist/blocks/definitions/spacer.d.ts +0 -2
  47. package/dist/blocks/definitions/video.d.ts +0 -2
  48. package/dist/blocks/index.d.ts +0 -8
  49. package/dist/brand.d.ts +0 -15
  50. package/dist/components/DesktopOnlyNotice.vue.d.ts +0 -20
  51. package/dist/components/features/emailBuilder/assistant/AssistantPanel.vue.d.ts +0 -37
  52. package/dist/components/features/emailBuilder/blocks/AnchorBlock.vue.d.ts +0 -3
  53. package/dist/components/features/emailBuilder/blocks/ButtonBlock.vue.d.ts +0 -3
  54. package/dist/components/features/emailBuilder/blocks/DividerBlock.vue.d.ts +0 -3
  55. package/dist/components/features/emailBuilder/blocks/HeadingBlock.vue.d.ts +0 -3
  56. package/dist/components/features/emailBuilder/blocks/ImageBlock.vue.d.ts +0 -3
  57. package/dist/components/features/emailBuilder/blocks/ListBlock.vue.d.ts +0 -3
  58. package/dist/components/features/emailBuilder/blocks/MenuBlock.vue.d.ts +0 -3
  59. package/dist/components/features/emailBuilder/blocks/ParagraphBlock.vue.d.ts +0 -3
  60. package/dist/components/features/emailBuilder/blocks/SocialsBlock.vue.d.ts +0 -3
  61. package/dist/components/features/emailBuilder/blocks/SpacerBlock.vue.d.ts +0 -3
  62. package/dist/components/features/emailBuilder/blocks/VideoBlock.vue.d.ts +0 -3
  63. package/dist/components/features/emailBuilder/canvas/Canvas.vue.d.ts +0 -3
  64. package/dist/components/features/emailBuilder/canvas/CanvasColumn.vue.d.ts +0 -49
  65. package/dist/components/features/emailBuilder/canvas/CanvasComponent.vue.d.ts +0 -56
  66. package/dist/components/features/emailBuilder/canvas/CanvasElement.vue.d.ts +0 -21
  67. package/dist/components/features/emailBuilder/canvas/CanvasRow.vue.d.ts +0 -49
  68. package/dist/components/features/emailBuilder/canvas/CanvasRowSpacer.vue.d.ts +0 -40
  69. package/dist/components/features/emailBuilder/health/HealthIndicator.vue.d.ts +0 -3
  70. package/dist/components/features/emailBuilder/layout/Header.vue.d.ts +0 -54
  71. package/dist/components/features/emailBuilder/layout/SendEmail.vue.d.ts +0 -21
  72. package/dist/components/features/emailBuilder/layout/SidebarLeft.vue.d.ts +0 -3
  73. package/dist/components/features/emailBuilder/layout/SidebarRight.vue.d.ts +0 -3
  74. package/dist/components/features/emailBuilder/panels/AnchorPanel.vue.d.ts +0 -3
  75. package/dist/components/features/emailBuilder/panels/ButtonPanel.vue.d.ts +0 -3
  76. package/dist/components/features/emailBuilder/panels/DividerPanel.vue.d.ts +0 -3
  77. package/dist/components/features/emailBuilder/panels/HeadingPanel.vue.d.ts +0 -3
  78. package/dist/components/features/emailBuilder/panels/ImagePanel.vue.d.ts +0 -3
  79. package/dist/components/features/emailBuilder/panels/ListPanel.vue.d.ts +0 -3
  80. package/dist/components/features/emailBuilder/panels/MenuPanel.vue.d.ts +0 -3
  81. package/dist/components/features/emailBuilder/panels/ParagraphPanel.vue.d.ts +0 -3
  82. package/dist/components/features/emailBuilder/panels/RowColumnPanel.vue.d.ts +0 -13
  83. package/dist/components/features/emailBuilder/panels/RowPanel.vue.d.ts +0 -13
  84. package/dist/components/features/emailBuilder/panels/RowSpacerPanel.vue.d.ts +0 -13
  85. package/dist/components/features/emailBuilder/panels/SocialsPanel.vue.d.ts +0 -3
  86. package/dist/components/features/emailBuilder/panels/SpacerPanel.vue.d.ts +0 -3
  87. package/dist/components/features/emailBuilder/panels/VideoPanel.vue.d.ts +0 -3
  88. package/dist/components/features/emailBuilder/panels/shared/DeviceTabs.vue.d.ts +0 -19
  89. package/dist/components/features/emailBuilder/panels/shared/LinkFieldMergeTags.vue.d.ts +0 -31
  90. package/dist/components/features/emailBuilder/panels/shared/OverrideBadge.vue.d.ts +0 -9
  91. package/dist/components/features/emailBuilder/panels/shared/PreviewBadge.vue.d.ts +0 -11
  92. package/dist/components/features/emailBuilder/panels/shared/TextFieldMergeTags.vue.d.ts +0 -25
  93. package/dist/components/features/emailBuilder/panels/ui/BoxStylingSection.vue.d.ts +0 -7
  94. package/dist/components/features/emailBuilder/panels/ui/PropertyAlignment.vue.d.ts +0 -30
  95. package/dist/components/features/emailBuilder/panels/ui/PropertyColor.vue.d.ts +0 -75
  96. package/dist/components/features/emailBuilder/panels/ui/PropertyGradientColor.vue.d.ts +0 -27
  97. package/dist/components/features/emailBuilder/panels/ui/PropertyNumberSlider.vue.d.ts +0 -74
  98. package/dist/components/features/emailBuilder/panels/ui/PropertySection.vue.d.ts +0 -17
  99. package/dist/components/features/emailBuilder/panels/ui/PropertySelect.vue.d.ts +0 -74
  100. package/dist/components/features/emailBuilder/panels/ui/PropertyTextStyle.vue.d.ts +0 -52
  101. package/dist/components/features/emailBuilder/panels/ui/PropertyTextStylePanel.vue.d.ts +0 -72
  102. package/dist/components/features/emailBuilder/panels/ui/PropertyToggle.vue.d.ts +0 -45
  103. package/dist/components/features/emailBuilder/panels/ui/PropertyVisibility.vue.d.ts +0 -32
  104. package/dist/components/features/emailBuilder/panels/ui/SpacingControl.vue.d.ts +0 -19
  105. package/dist/components/features/emailBuilder/panels/ui/color-picker/AlphaSlider.vue.d.ts +0 -28
  106. package/dist/components/features/emailBuilder/panels/ui/color-picker/ColorPickerPanel.vue.d.ts +0 -31
  107. package/dist/components/features/emailBuilder/panels/ui/color-picker/HueSlider.vue.d.ts +0 -19
  108. package/dist/components/features/emailBuilder/panels/ui/color-picker/RecentColors.vue.d.ts +0 -20
  109. package/dist/components/features/emailBuilder/panels/ui/color-picker/SVPanel.vue.d.ts +0 -39
  110. package/dist/components/features/emailBuilder/panels/ui/visibility-rule/Rule.vue.d.ts +0 -28
  111. package/dist/components/features/emailBuilder/preview/PreviewScreen.vue.d.ts +0 -7
  112. package/dist/components/features/emailBuilder/preview/ui/PreviewCanvas.vue.d.ts +0 -10
  113. package/dist/components/features/emailBuilder/preview/ui/PreviewCapabilityBadges.vue.d.ts +0 -12
  114. package/dist/components/features/emailBuilder/preview/ui/PreviewClientCard.vue.d.ts +0 -20
  115. package/dist/components/features/emailBuilder/preview/ui/PreviewClientList.vue.d.ts +0 -21
  116. package/dist/components/features/emailBuilder/preview/ui/PreviewClientPicker.vue.d.ts +0 -16
  117. package/dist/components/features/emailBuilder/preview/ui/PreviewComponent.vue.d.ts +0 -10
  118. package/dist/components/features/emailBuilder/preview/ui/PreviewDetailView.vue.d.ts +0 -41
  119. package/dist/components/features/emailBuilder/preview/ui/PreviewRendered.vue.d.ts +0 -8
  120. package/dist/components/features/emailBuilder/product/RowPreview.vue.d.ts +0 -8
  121. package/dist/components/features/emailBuilder/product/RowPreviewChildren.vue.d.ts +0 -14
  122. package/dist/components/features/emailBuilder/product/RowPreviewLegacyComponent.vue.d.ts +0 -14
  123. package/dist/components/features/emailBuilder/product/RowPreviewRow.vue.d.ts +0 -9
  124. package/dist/components/features/emailBuilder/product/SavedRowsPanel.vue.d.ts +0 -3
  125. package/dist/components/features/emailBuilder/product/SavedTemplatesPanel.vue.d.ts +0 -13
  126. package/dist/components/features/emailBuilder/product/VersionHistoryPanel.vue.d.ts +0 -14
  127. package/dist/components/features/emailBuilder/sidebar/SidebarBlockButton.vue.d.ts +0 -35
  128. package/dist/components/features/emailBuilder/tabs/GeneralTab.vue.d.ts +0 -3
  129. package/dist/components/features/emailBuilder/tabs/LayoutTab.vue.d.ts +0 -3
  130. package/dist/components/features/emailBuilder/tabs/content/ContentTab.vue.d.ts +0 -3
  131. package/dist/components/features/emailBuilder/tabs/content/LayersPanel.vue.d.ts +0 -7
  132. package/dist/components/features/emailBuilder/tabs/general/MergeTagsTab.vue.d.ts +0 -3
  133. package/dist/components/features/emailBuilder/tabs/general/StylesTab.vue.d.ts +0 -3
  134. package/dist/components/features/emailBuilder/tabs/general/VisibilityTab.vue.d.ts +0 -3
  135. package/dist/components/features/emailBuilder/tabs/general/VisibilityWrapESPTab.vue.d.ts +0 -3
  136. package/dist/components/features/emailBuilder/tabs/general/merge-tags/LinkTagTab.vue.d.ts +0 -3
  137. package/dist/components/features/emailBuilder/tabs/general/merge-tags/MergeTagTab.vue.d.ts +0 -3
  138. package/dist/components/features/emailBuilder/ui/LinkInputDialog.vue.d.ts +0 -17
  139. package/dist/components/features/emailBuilder/ui/canvas/CanvasRowDropZone.vue.d.ts +0 -12
  140. package/dist/components/features/emailBuilder/ui/canvas/DropZone.vue.d.ts +0 -10
  141. package/dist/components/features/emailBuilder/ui/canvas/Loader.vue.d.ts +0 -19
  142. package/dist/components/features/emailBuilder/ui/layers-panel/ComponentIcon.vue.d.ts +0 -7
  143. package/dist/components/features/emailBuilder/ui/layers-panel/LayerColumnChildren.vue.d.ts +0 -42
  144. package/dist/components/features/emailBuilder/ui/layers-panel/LayerDropLine.vue.d.ts +0 -8
  145. package/dist/components/features/emailBuilder/ui/renderers/AnchorRenderer.vue.d.ts +0 -10
  146. package/dist/components/features/emailBuilder/ui/renderers/DividerRenderer.vue.d.ts +0 -10
  147. package/dist/components/features/emailBuilder/ui/renderers/HeadingRenderer.vue.d.ts +0 -10
  148. package/dist/components/features/emailBuilder/ui/renderers/ImageRenderer.vue.d.ts +0 -10
  149. package/dist/components/features/emailBuilder/ui/renderers/ListRenderer.vue.d.ts +0 -10
  150. package/dist/components/features/emailBuilder/ui/renderers/MenuRenderer.vue.d.ts +0 -10
  151. package/dist/components/features/emailBuilder/ui/renderers/ParagraphRenderer.vue.d.ts +0 -10
  152. package/dist/components/features/emailBuilder/ui/renderers/SocialsRenderer.vue.d.ts +0 -10
  153. package/dist/components/features/emailBuilder/ui/renderers/SpacerRenderer.vue.d.ts +0 -10
  154. package/dist/components/features/emailBuilder/ui/renderers/VideoRenderer.vue.d.ts +0 -10
  155. package/dist/components/features/emailBuilder/ui/rich-text-editor/RichTextEditor.vue.d.ts +0 -12
  156. package/dist/components/features/emailBuilder/ui/rich-text-editor/pickers/MergeTagPicker.vue.d.ts +0 -18
  157. package/dist/components/features/emailBuilder/ui/rich-text-editor/pickers/RichTextColorPicker.vue.d.ts +0 -15
  158. package/dist/components/features/emailBuilder/ui/visibility/SupportBadge.vue.d.ts +0 -10
  159. package/dist/components/features/emailBuilder/ui/visibility/VisibilityPopover.vue.d.ts +0 -45
  160. package/dist/components/ui/ConfirmDialog.vue.d.ts +0 -3
  161. package/dist/components/ui/Icon.vue.d.ts +0 -33
  162. package/dist/components/ui/InfoDialog.vue.d.ts +0 -12
  163. package/dist/components/ui/Loading.vue.d.ts +0 -6
  164. package/dist/components/ui/ShadowSafeToast.vue.d.ts +0 -3
  165. package/dist/components/ui/primitives/Button.vue.d.ts +0 -23
  166. package/dist/components/ui/primitives/DatePicker.vue.d.ts +0 -16
  167. package/dist/components/ui/primitives/Dialog.vue.d.ts +0 -34
  168. package/dist/components/ui/primitives/InputText.vue.d.ts +0 -29
  169. package/dist/components/ui/primitives/Message.vue.d.ts +0 -20
  170. package/dist/components/ui/primitives/Select.vue.d.ts +0 -22
  171. package/dist/composables/emailBuilder/components/useComponentStyleEditor.d.ts +0 -72
  172. package/dist/composables/emailBuilder/components/useProductRowActions.d.ts +0 -3
  173. package/dist/composables/emailBuilder/components/useProductRows.d.ts +0 -59
  174. package/dist/composables/emailBuilder/components/useSystemRows.d.ts +0 -22
  175. package/dist/composables/emailBuilder/core/config/componentConfig.d.ts +0 -29
  176. package/dist/composables/emailBuilder/core/link-tags/useLinkTagInsert.d.ts +0 -13
  177. package/dist/composables/emailBuilder/core/merge-tags/mergeTagDefinitions.d.ts +0 -64
  178. package/dist/composables/emailBuilder/core/merge-tags/resolveMergeTags.d.ts +0 -27
  179. package/dist/composables/emailBuilder/core/ui/useLayerHoverScroll.d.ts +0 -20
  180. package/dist/composables/emailBuilder/core/ui/useLayoutDrag.d.ts +0 -85
  181. package/dist/composables/emailBuilder/core/ui/useRichTextEditors.d.ts +0 -6
  182. package/dist/composables/emailBuilder/core/ui/visibilityBadgeHelpers.d.ts +0 -22
  183. package/dist/composables/emailBuilder/core/useEmailBuilder.d.ts +0 -292
  184. package/dist/composables/emailBuilder/core/useEmailBuilderDefault.d.ts +0 -507
  185. package/dist/composables/emailBuilder/core/useEmailBuilderOperations.d.ts +0 -31
  186. package/dist/composables/emailBuilder/core/useEmailBuilderVisibility.d.ts +0 -31
  187. package/dist/composables/emailBuilder/export/actions/download.d.ts +0 -24
  188. package/dist/composables/emailBuilder/export/generators/html.d.ts +0 -3
  189. package/dist/composables/emailBuilder/export/generators/mjml.d.ts +0 -6
  190. package/dist/composables/emailBuilder/export/generators/react-email.d.ts +0 -61
  191. package/dist/composables/emailBuilder/export/helpers/generatorHelpers.d.ts +0 -53
  192. package/dist/composables/emailBuilder/export/logic/reactLogicWrapper.d.ts +0 -31
  193. package/dist/composables/emailBuilder/export/merge-tags/mergeTagMapper.d.ts +0 -42
  194. package/dist/composables/emailBuilder/export/merge-tags/reactMergeTagMapper.d.ts +0 -26
  195. package/dist/composables/emailBuilder/export/shared/containers.d.ts +0 -18
  196. package/dist/composables/emailBuilder/export/shared/styles.d.ts +0 -12
  197. package/dist/composables/emailBuilder/export/shared/tagIdentifier.d.ts +0 -1
  198. package/dist/composables/emailBuilder/export/targets/htmlExport.d.ts +0 -20
  199. package/dist/composables/emailBuilder/export/targets/jsonExport.d.ts +0 -28
  200. package/dist/composables/emailBuilder/export/targets/mjmlExport.d.ts +0 -19
  201. package/dist/composables/emailBuilder/export/targets/reactEmailExport.d.ts +0 -20
  202. package/dist/composables/emailBuilder/export/targets/templateSnapshot.d.ts +0 -24
  203. package/dist/composables/emailBuilder/export/transformers/espWrapper.d.ts +0 -2
  204. package/dist/composables/emailBuilder/export/transformers/formatting.d.ts +0 -3
  205. package/dist/composables/emailBuilder/export/transformers/minify.d.ts +0 -33
  206. package/dist/composables/emailBuilder/export/transformers/tagMapper.d.ts +0 -29
  207. package/dist/composables/emailBuilder/export/types/export.d.ts +0 -24
  208. package/dist/composables/emailBuilder/export/useEmailExportEngine.d.ts +0 -63
  209. package/dist/composables/emailBuilder/export/useEmailExportMobileStyles.d.ts +0 -3
  210. package/dist/composables/emailBuilder/export/useExportSettings.d.ts +0 -5
  211. package/dist/composables/emailBuilder/health/accessibilityChecker.d.ts +0 -64
  212. package/dist/composables/emailBuilder/health/healthIndicator.d.ts +0 -19
  213. package/dist/composables/emailBuilder/history/useEmailBuilderHistory.d.ts +0 -26
  214. package/dist/composables/emailBuilder/history/useHistory.d.ts +0 -16
  215. package/dist/composables/emailBuilder/preview/useClientPreview.d.ts +0 -127
  216. package/dist/composables/emailBuilder/transform/pipeline/hydrate.d.ts +0 -54
  217. package/dist/composables/emailBuilder/types/emailBuilder.d.ts +0 -79
  218. package/dist/composables/system/useColor.d.ts +0 -26
  219. package/dist/composables/system/useDeviceDetection.d.ts +0 -5
  220. package/dist/composables/system/useGoogleFonts.d.ts +0 -11
  221. package/dist/composables/system/useImageUpload.d.ts +0 -23
  222. package/dist/composables/system/useSavedRowsPanel.d.ts +0 -35
  223. package/dist/composables/ui/useConfirm.d.ts +0 -33
  224. package/dist/composables/ui/useInfoDialog.d.ts +0 -22
  225. package/dist/composables/ui/useTeleportTarget.d.ts +0 -49
  226. package/dist/composables/ui/useToast.d.ts +0 -32
  227. package/dist/devStyleMirror.d.ts +0 -20
  228. package/dist/documentScopedStyles.d.ts +0 -39
  229. package/dist/element-Dq6bmt2l.js +0 -48454
  230. package/dist/estree-DY9POgc0.js +0 -8195
  231. package/dist/html-wb0gSX1o.js +0 -7273
  232. package/dist/lightDom.d.ts +0 -30
  233. package/dist/shadowStyles.d.ts +0 -8
  234. package/dist/standalone-DHvJ30Td.js +0 -3554
  235. package/dist/utils/generateId.d.ts +0 -1
  236. package/dist/utils/shadowDom.d.ts +0 -30
  237. package/dist/vue.runtime.esm-bundler-CsdyQceJ.js +0 -6118
@@ -0,0 +1,454 @@
1
+ import { defineComponent as at, computed as lt, openBlock as g, createBlock as ct, resolveDynamicComponent as dt, normalizeStyle as s, createElementBlock as m, createElementVNode as u, createCommentVNode as P, createTextVNode as gt, toDisplayString as S, Fragment as E, renderList as j } from "vue";
2
+ const st = ["innerHTML"], mt = ["src", "alt"], ft = ["src", "alt"], xt = {
3
+ style: { width: "30%", height: "30%", color: "#9ca3af" },
4
+ fill: "currentColor",
5
+ viewBox: "0 0 20 20"
6
+ }, ut = ["src", "alt"], yt = ["src", "alt"], ht = ["innerHTML"], $t = { key: 8 }, bt = { key: 0 }, St = ["src", "alt"], kt = {
7
+ key: 1,
8
+ style: { "font-size": "7px", color: "#9ca3af", "font-style": "italic" }
9
+ }, vt = {
10
+ key: 11,
11
+ class: "rounded truncate",
12
+ style: { "font-size": "7px", color: "#9ca3af", background: "#f3f4f6", padding: "1px 3px" }
13
+ }, Ft = /* @__PURE__ */ at({
14
+ __name: "RowPreviewLegacyComponent",
15
+ props: {
16
+ comp: {},
17
+ scale: {}
18
+ },
19
+ setup(r) {
20
+ const v = r, x = lt(() => v.comp.componentType ?? v.comp.type);
21
+ function k(t) {
22
+ return t ? t.replace(
23
+ /<span[^>]*\bdata-merge="([^"]+)"(?:[^>]*\bdata-merge-default="([^"]*)")?[^>]*>.*?<\/span>/gs,
24
+ (n, o, e) => {
25
+ const i = o.trim(), a = e == null ? void 0 : e.trim();
26
+ return a ? `{{ ${i}|'${a}' }}` : `{{ ${i} }}`;
27
+ }
28
+ ) : "";
29
+ }
30
+ function y(t) {
31
+ var e;
32
+ const n = t == null ? void 0 : t.backgroundGradient;
33
+ if ((n == null ? void 0 : n.useGradient) === !0 && Array.isArray((e = n == null ? void 0 : n.gradient) == null ? void 0 : e.colors) && n.gradient.colors.length >= 2) {
34
+ const { type: i, direction: a, colors: l } = n.gradient, c = l.map((d) => `${d.color} ${d.position}%`).join(", ");
35
+ return i === "radial" ? `radial-gradient(circle at center, ${c})` : `linear-gradient(${a}, ${c})`;
36
+ }
37
+ return (t == null ? void 0 : t.backgroundColor) || "transparent";
38
+ }
39
+ function h(t) {
40
+ if (!t) return;
41
+ const n = [
42
+ "Roboto",
43
+ "Open Sans",
44
+ "Lato",
45
+ "Montserrat",
46
+ "Poppins",
47
+ "Nunito",
48
+ "Raleway",
49
+ "Plus Jakarta Sans"
50
+ ];
51
+ if ((t.includes(" ") || n.some((e) => t.includes(e))) && typeof document < "u") {
52
+ const i = `https://fonts.googleapis.com/css2?family=${t.replace(/ /g, "+")}:wght@300;400;500;600;700;800&display=swap`;
53
+ if (!document.querySelector(`link[href="${i}"]`)) {
54
+ const a = document.createElement("link");
55
+ a.href = i, a.rel = "stylesheet", document.head.appendChild(a);
56
+ }
57
+ }
58
+ }
59
+ function N(t) {
60
+ var n, o, e, i, a, l, c, d;
61
+ return t != null && t.fontFamily && h(t.fontFamily), {
62
+ fontSize: Math.max(7, (t == null ? void 0 : t.fontSize) || 24) + "px",
63
+ color: (t == null ? void 0 : t.color) || "#111111",
64
+ fontWeight: (t == null ? void 0 : t.fontWeight) || "bold",
65
+ fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
66
+ textAlign: (t == null ? void 0 : t.align) || "left",
67
+ lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.2),
68
+ letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
69
+ textTransform: (t == null ? void 0 : t.textTransform) || "none",
70
+ textDecoration: (t == null ? void 0 : t.textDecoration) || "none",
71
+ background: y(t),
72
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
73
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`
74
+ };
75
+ }
76
+ function V(t) {
77
+ var n, o, e, i, a, l, c, d;
78
+ return t != null && t.fontFamily && h(t.fontFamily), {
79
+ fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) || 16) + "px",
80
+ color: (t == null ? void 0 : t.color) || "#111111",
81
+ fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
82
+ fontWeight: (t == null ? void 0 : t.fontWeight) || "normal",
83
+ fontStyle: (t == null ? void 0 : t.fontStyle) || "normal",
84
+ textAlign: (t == null ? void 0 : t.align) || "left",
85
+ lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.5),
86
+ letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
87
+ textTransform: (t == null ? void 0 : t.textTransform) || "none",
88
+ textDecoration: (t == null ? void 0 : t.textDecoration) || "none",
89
+ background: y(t),
90
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
91
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`
92
+ };
93
+ }
94
+ function q(t) {
95
+ var n, o, e, i, a, l, c, d;
96
+ return {
97
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
98
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
99
+ textAlign: (t == null ? void 0 : t.align) || "left"
100
+ };
101
+ }
102
+ function J(t) {
103
+ var o, e, i;
104
+ const n = (t == null ? void 0 : t.align) || "left";
105
+ return {
106
+ width: ((t == null ? void 0 : t.width) || 100) + "%",
107
+ height: (t == null ? void 0 : t.height) || "auto",
108
+ borderRadius: ((t == null ? void 0 : t.borderRadius) || 0) + "px",
109
+ border: `${((o = t == null ? void 0 : t.border) == null ? void 0 : o.width) || 0}px ${((e = t == null ? void 0 : t.border) == null ? void 0 : e.style) || "solid"} ${((i = t == null ? void 0 : t.border) == null ? void 0 : i.color) || "#000000"}`,
110
+ display: "block",
111
+ margin: n === "center" ? "0 auto" : n === "right" ? "0 0 0 auto" : "0"
112
+ };
113
+ }
114
+ function O(t) {
115
+ var n, o, e, i, a, l, c, d;
116
+ return {
117
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
118
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
119
+ textAlign: (t == null ? void 0 : t.align) || "left",
120
+ maxWidth: "100%"
121
+ };
122
+ }
123
+ function K(t) {
124
+ var o, e, i;
125
+ const n = (t == null ? void 0 : t.align) || "left";
126
+ return {
127
+ width: "100%",
128
+ maxWidth: "100%",
129
+ paddingBottom: "56.25%",
130
+ height: "0",
131
+ position: "relative",
132
+ display: "inline-block",
133
+ borderRadius: ((t == null ? void 0 : t.borderRadius) || 0) + "px",
134
+ border: `${((o = t == null ? void 0 : t.border) == null ? void 0 : o.width) || 0}px ${((e = t == null ? void 0 : t.border) == null ? void 0 : e.style) || "solid"} ${((i = t == null ? void 0 : t.border) == null ? void 0 : i.color) || "#000000"}`,
135
+ overflow: "hidden",
136
+ marginLeft: n === "center" || n === "right" ? "auto" : "0",
137
+ marginRight: n === "center" ? "auto" : "0",
138
+ boxSizing: "border-box"
139
+ };
140
+ }
141
+ function Q() {
142
+ return {
143
+ position: "absolute",
144
+ top: "0",
145
+ left: "0",
146
+ width: "100%",
147
+ height: "100%",
148
+ objectFit: "cover",
149
+ display: "block"
150
+ };
151
+ }
152
+ function U() {
153
+ return {
154
+ position: "absolute",
155
+ top: "0",
156
+ left: "0",
157
+ width: "100%",
158
+ height: "100%",
159
+ background: "#e5e7eb",
160
+ display: "flex",
161
+ alignItems: "center",
162
+ justifyContent: "center"
163
+ };
164
+ }
165
+ function X(t) {
166
+ var n, o, e, i;
167
+ return {
168
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
169
+ textAlign: (t == null ? void 0 : t.align) || "center"
170
+ };
171
+ }
172
+ function Y(t) {
173
+ var o, e, i, a, l, c, d;
174
+ t != null && t.fontFamily && h(t.fontFamily);
175
+ const n = !!(t != null && t.icon);
176
+ return {
177
+ background: y(t),
178
+ color: (t == null ? void 0 : t.color) || "#ffffff",
179
+ fontSize: Math.max(5, (t == null ? void 0 : t.fontSize) || 16) + "px",
180
+ fontWeight: (t == null ? void 0 : t.fontWeight) || "500",
181
+ fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
182
+ letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
183
+ padding: `${((o = t == null ? void 0 : t.padding) == null ? void 0 : o.top) ?? 8}px ${((e = t == null ? void 0 : t.padding) == null ? void 0 : e.right) ?? 16}px ${((i = t == null ? void 0 : t.padding) == null ? void 0 : i.bottom) ?? 8}px ${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.left) ?? 16}px`,
184
+ borderRadius: ((t == null ? void 0 : t.borderRadius) || 4) + "px",
185
+ border: `${((l = t == null ? void 0 : t.border) == null ? void 0 : l.width) || 0}px ${((c = t == null ? void 0 : t.border) == null ? void 0 : c.style) || "solid"} ${((d = t == null ? void 0 : t.border) == null ? void 0 : d.color) || "#000000"}`,
186
+ // Icon branch uses inline-flex so icon + text align cleanly on one row.
187
+ // Plain branch stays inline-block (unchanged behaviour).
188
+ ...n ? {
189
+ display: "inline-flex",
190
+ alignItems: "center",
191
+ verticalAlign: "middle"
192
+ } : { display: "inline-block" },
193
+ lineHeight: "1.2",
194
+ textDecoration: "none"
195
+ };
196
+ }
197
+ function w(t) {
198
+ const n = Math.max(4, (t == null ? void 0 : t.iconSize) ?? 20), o = (t == null ? void 0 : t.iconGap) ?? 8, e = (t == null ? void 0 : t.iconPosition) !== "after";
199
+ return {
200
+ display: "block",
201
+ width: n + "px",
202
+ height: n + "px",
203
+ flexShrink: "0",
204
+ marginRight: e ? o + "px" : "0",
205
+ marginLeft: e ? "0" : o + "px"
206
+ };
207
+ }
208
+ function F(t) {
209
+ const n = t.target;
210
+ n.style.display = "none";
211
+ }
212
+ function Z(t) {
213
+ var n, o, e, i, a, l, c, d;
214
+ return {
215
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
216
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
217
+ textAlign: (t == null ? void 0 : t.align) || "left"
218
+ };
219
+ }
220
+ function _(t) {
221
+ return t != null && t.fontFamily && h(t.fontFamily), {
222
+ color: (t == null ? void 0 : t.color) || "#007bff",
223
+ fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) || 16) + "px",
224
+ fontWeight: (t == null ? void 0 : t.fontWeight) || "normal",
225
+ fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
226
+ letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
227
+ textDecoration: (t == null ? void 0 : t.textDecoration) || "underline"
228
+ };
229
+ }
230
+ function p(t) {
231
+ var n, o, e, i, a, l, c, d;
232
+ return t != null && t.fontFamily && h(t.fontFamily), {
233
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
234
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 16}px`,
235
+ fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) || 16) + "px",
236
+ fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
237
+ lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.5),
238
+ letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
239
+ color: (t == null ? void 0 : t.color) || "#111111",
240
+ background: y(t)
241
+ };
242
+ }
243
+ function tt(t) {
244
+ var n, o, e, i, a, l, c, d;
245
+ return {
246
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
247
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
248
+ textAlign: (t == null ? void 0 : t.align) || "left"
249
+ };
250
+ }
251
+ function nt(t) {
252
+ const n = (t == null ? void 0 : t.align) || "left";
253
+ return {
254
+ width: ((t == null ? void 0 : t.width) || 100) + "%",
255
+ height: ((t == null ? void 0 : t.height) || 1) + "px",
256
+ background: y(t),
257
+ border: "none",
258
+ margin: n === "center" ? "0 auto" : n === "right" ? "0 0 0 auto" : "0"
259
+ };
260
+ }
261
+ function et(t) {
262
+ return {
263
+ width: "100%",
264
+ height: ((t == null ? void 0 : t.height) || 16) + "px",
265
+ background: y(t)
266
+ };
267
+ }
268
+ function it(t) {
269
+ var n, o, e, i, a, l, c, d;
270
+ return t != null && t.fontFamily && h(t.fontFamily), {
271
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
272
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
273
+ textAlign: (t == null ? void 0 : t.align) || "left",
274
+ lineHeight: "0",
275
+ background: y(t)
276
+ };
277
+ }
278
+ function ot(t, n, o) {
279
+ t != null && t.fontFamily && h(t.fontFamily);
280
+ const e = (t == null ? void 0 : t.mobileStack) === !0, i = (t == null ? void 0 : t.spacing) ?? 8, a = n === 0, l = n === o - 1;
281
+ return {
282
+ // display is always block, used for showcase
283
+ display: "inline-block",
284
+ marginLeft: a ? "0px" : `${i / 2}px`,
285
+ marginRight: l ? "0px" : `${i / 2}px`,
286
+ // marginBottom: isStacked && !isLast ? `${spacing}px` : "0",
287
+ fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) ?? 14) + "px",
288
+ lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.4),
289
+ letterSpacing: ((t == null ? void 0 : t.letterSpacing) ?? 0) + "px",
290
+ color: (t == null ? void 0 : t.color) || "#111111",
291
+ fontWeight: (t == null ? void 0 : t.fontWeight) || "normal",
292
+ fontFamily: t != null && t.fontFamily ? `'${t.fontFamily}', Arial, sans-serif` : "Arial, sans-serif",
293
+ fontStyle: (t == null ? void 0 : t.fontStyle) || "normal",
294
+ textTransform: (t == null ? void 0 : t.textTransform) || "none",
295
+ textDecoration: (t == null ? void 0 : t.textDecoration) || "none",
296
+ whiteSpace: e ? "normal" : "nowrap",
297
+ cursor: "default"
298
+ };
299
+ }
300
+ function rt(t) {
301
+ var n, o, e, i, a, l, c, d;
302
+ return {
303
+ margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
304
+ padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
305
+ textAlign: (t == null ? void 0 : t.align) || "left",
306
+ display: "flex",
307
+ flexWrap: "wrap",
308
+ gap: ((t == null ? void 0 : t.spacing) ?? 8) + "px",
309
+ justifyContent: (t == null ? void 0 : t.align) === "center" ? "center" : (t == null ? void 0 : t.align) === "right" ? "flex-end" : "flex-start"
310
+ };
311
+ }
312
+ return (t, n) => {
313
+ var o, e, i, a, l, c, d, z, A, H, C, M, T, L, W, R, D, I, G, B;
314
+ return x.value === "heading" ? (g(), ct(dt(((o = r.comp.props) == null ? void 0 : o.level) || "h2"), {
315
+ key: 0,
316
+ style: s(N(r.comp.props)),
317
+ class: "truncate",
318
+ innerHTML: k((e = r.comp.props) == null ? void 0 : e.content) || "Heading"
319
+ }, null, 8, ["style", "innerHTML"])) : x.value === "paragraph" ? (g(), m("p", {
320
+ key: 1,
321
+ style: s([V(r.comp.props), { display: "-webkit-box", "-webkit-line-clamp": "2", "-webkit-box-orient": "vertical" }]),
322
+ class: "overflow-hidden",
323
+ innerHTML: k((i = r.comp.props) == null ? void 0 : i.content) || "Text"
324
+ }, null, 12, st)) : x.value === "image" ? (g(), m("div", {
325
+ key: 2,
326
+ style: s(q(r.comp.props))
327
+ }, [
328
+ u("img", {
329
+ src: (a = r.comp.props) == null ? void 0 : a.src,
330
+ alt: ((l = r.comp.props) == null ? void 0 : l.alt) || "",
331
+ style: s(J(r.comp.props))
332
+ }, null, 12, mt)
333
+ ], 4)) : x.value === "video" ? (g(), m("div", {
334
+ key: 3,
335
+ style: s(O(r.comp.props))
336
+ }, [
337
+ u("div", {
338
+ style: s(K(r.comp.props))
339
+ }, [
340
+ (c = r.comp.props) != null && c.coverImage ? (g(), m("img", {
341
+ key: 0,
342
+ src: r.comp.props.coverImage,
343
+ alt: ((d = r.comp.props) == null ? void 0 : d.alt) || "Video",
344
+ style: s(Q())
345
+ }, null, 12, ft)) : (g(), m("div", {
346
+ key: 1,
347
+ style: s(U())
348
+ }, [
349
+ (g(), m("svg", xt, [...n[0] || (n[0] = [
350
+ u("path", {
351
+ "fill-rule": "evenodd",
352
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",
353
+ "clip-rule": "evenodd"
354
+ }, null, -1)
355
+ ])]))
356
+ ], 4))
357
+ ], 4)
358
+ ], 4)) : x.value === "button" ? (g(), m("div", {
359
+ key: 4,
360
+ style: s(X(r.comp.props))
361
+ }, [
362
+ u("span", {
363
+ style: s(Y(r.comp.props)),
364
+ class: "inline-block truncate"
365
+ }, [
366
+ (z = r.comp.props) != null && z.icon && ((A = r.comp.props) == null ? void 0 : A.iconPosition) !== "after" ? (g(), m("img", {
367
+ key: 0,
368
+ src: r.comp.props.icon,
369
+ alt: ((H = r.comp.props) == null ? void 0 : H.iconAlt) || "",
370
+ style: s(w(r.comp.props)),
371
+ onError: F
372
+ }, null, 44, ut)) : P("", !0),
373
+ gt(" " + S(((C = r.comp.props) == null ? void 0 : C.text) || "Button") + " ", 1),
374
+ (M = r.comp.props) != null && M.icon && ((T = r.comp.props) == null ? void 0 : T.iconPosition) === "after" ? (g(), m("img", {
375
+ key: 1,
376
+ src: r.comp.props.icon,
377
+ alt: ((L = r.comp.props) == null ? void 0 : L.iconAlt) || "",
378
+ style: s(w(r.comp.props)),
379
+ onError: F
380
+ }, null, 44, yt)) : P("", !0)
381
+ ], 4)
382
+ ], 4)) : x.value === "anchor" ? (g(), m("div", {
383
+ key: 5,
384
+ style: s(Z(r.comp.props))
385
+ }, [
386
+ u("span", {
387
+ style: s(_(r.comp.props)),
388
+ class: "truncate block"
389
+ }, S(((W = r.comp.props) == null ? void 0 : W.text) || "Link"), 5)
390
+ ], 4)) : x.value === "list" ? (g(), m("div", {
391
+ key: 6,
392
+ style: s(p(r.comp.props)),
393
+ innerHTML: k((R = r.comp.props) == null ? void 0 : R.content) || "<ul><li>Item</li></ul>"
394
+ }, null, 12, ht)) : x.value === "divider" ? (g(), m("div", {
395
+ key: 7,
396
+ style: s(tt(r.comp.props))
397
+ }, [
398
+ u("hr", {
399
+ style: s(nt(r.comp.props))
400
+ }, null, 4)
401
+ ], 4)) : x.value === "spacer" ? (g(), m("div", $t, [
402
+ u("div", {
403
+ style: s(et(r.comp.props))
404
+ }, null, 4)
405
+ ])) : x.value === "menu" ? (g(), m("div", {
406
+ key: 9,
407
+ style: s(it(r.comp.props))
408
+ }, [
409
+ (I = (D = r.comp.props) == null ? void 0 : D.items) != null && I.some((f) => f.enabled && f.label) ? (g(!0), m(E, { key: 1 }, j(r.comp.props.items.filter(
410
+ (f) => f.enabled && f.label
411
+ ), (f, $) => (g(), m("span", {
412
+ key: f._id || $,
413
+ style: s(
414
+ ot(
415
+ r.comp.props,
416
+ Number($),
417
+ r.comp.props.items.filter((b) => b.enabled && b.label).length
418
+ )
419
+ )
420
+ }, S(f.label), 5))), 128)) : (g(), m("div", bt, " Menu "))
421
+ ], 4)) : x.value === "socials" ? (g(), m("div", {
422
+ key: 10,
423
+ style: s(rt(r.comp.props))
424
+ }, [
425
+ (B = (G = r.comp.props) == null ? void 0 : G.platforms) != null && B.some((f) => f.enabled && f.link) ? (g(!0), m(E, { key: 0 }, j(r.comp.props.platforms.filter(
426
+ (f) => f.enabled && f.link
427
+ ), (f) => {
428
+ var $, b;
429
+ return g(), m("span", {
430
+ key: f.name,
431
+ style: {
432
+ display: "inline-flex",
433
+ alignItems: "center",
434
+ justifyContent: "center"
435
+ }
436
+ }, [
437
+ u("img", {
438
+ src: f.icon,
439
+ alt: f.name,
440
+ style: s({
441
+ width: ((($ = r.comp.props) == null ? void 0 : $.iconSize) || 24) + "px",
442
+ height: (((b = r.comp.props) == null ? void 0 : b.iconSize) || 24) + "px",
443
+ display: "block"
444
+ })
445
+ }, null, 12, St)
446
+ ]);
447
+ }), 128)) : (g(), m("span", kt, "Socials"))
448
+ ], 4)) : (g(), m("div", vt, S(x.value), 1));
449
+ };
450
+ }
451
+ });
452
+ export {
453
+ Ft as default
454
+ };
@@ -0,0 +1,86 @@
1
+ import { n as z, A, o as g, q as u, F as B, t as G, w as v, B as V, v as j, C as w, x as D } from "./element-CRfWpZos.js";
2
+ const F = {
3
+ key: 0,
4
+ class: "w-full border border-dashed border-(--md-border) rounded",
5
+ style: { "min-height": "10px" }
6
+ }, W = /* @__PURE__ */ z({
7
+ __name: "RowPreviewRow",
8
+ props: {
9
+ row: {},
10
+ scale: {},
11
+ depth: {}
12
+ },
13
+ setup(s) {
14
+ const S = D(
15
+ () => import("./RowPreviewChildren-DQoyExvw.js")
16
+ ), C = s;
17
+ function p(e) {
18
+ var o;
19
+ const r = e == null ? void 0 : e.backgroundGradient;
20
+ if ((r == null ? void 0 : r.useGradient) === !0 && Array.isArray((o = r == null ? void 0 : r.gradient) == null ? void 0 : o.colors) && r.gradient.colors.length >= 2) {
21
+ const { type: a, direction: c, colors: i } = r.gradient, t = i.map((d) => `${d.color} ${d.position}%`).join(", ");
22
+ return a === "radial" ? `radial-gradient(circle at center, ${t})` : `linear-gradient(${c}, ${t})`;
23
+ }
24
+ return (e == null ? void 0 : e.backgroundColor) ?? "transparent";
25
+ }
26
+ const P = A(() => {
27
+ var n, o, a, c, i, t, d, l;
28
+ const e = C.row, r = {
29
+ display: "flex",
30
+ flexDirection: "row",
31
+ background: p(e),
32
+ padding: `${((n = e.padding) == null ? void 0 : n.top) ?? 0}px ${((o = e.padding) == null ? void 0 : o.right) ?? 0}px ${((a = e.padding) == null ? void 0 : a.bottom) ?? 0}px ${((c = e.padding) == null ? void 0 : c.left) ?? 0}px`,
33
+ alignItems: "stretch",
34
+ border: `${((i = e.border) == null ? void 0 : i.width) ?? 0}px ${((t = e.border) == null ? void 0 : t.style) ?? "solid"} ${((d = e.border) == null ? void 0 : d.color) ?? "transparent"}`,
35
+ borderRadius: `${((l = e.border) == null ? void 0 : l.radius) ?? 0}px`,
36
+ gap: `${e.gap ?? 0}px`,
37
+ overflow: "hidden"
38
+ };
39
+ return e.backgroundImage && (r.backgroundImage = `url(${e.backgroundImage})`, r.backgroundSize = e.backgroundSize ?? "cover", r.backgroundPosition = e.backgroundPosition ?? "center center"), r;
40
+ });
41
+ function I(e, r) {
42
+ var l, b, h, x, $, f, m, k, y;
43
+ const n = {
44
+ top: "flex-start",
45
+ middle: "center",
46
+ bottom: "flex-end"
47
+ }, o = e.width ?? 50, a = ((l = r == null ? void 0 : r.columns) == null ? void 0 : l.length) || 1, c = (r == null ? void 0 : r.gap) ?? 0, i = a > 1 ? c * (a - 1) / a : 0, t = i > 0 ? `calc(${o}% - ${i}px)` : `${o}%`, d = {
48
+ flex: `0 0 ${t}`,
49
+ width: t,
50
+ maxWidth: t,
51
+ boxSizing: "border-box",
52
+ background: p(e),
53
+ padding: `${((b = e.padding) == null ? void 0 : b.top) ?? 10}px ${((h = e.padding) == null ? void 0 : h.right) ?? 10}px ${((x = e.padding) == null ? void 0 : x.bottom) ?? 10}px ${(($ = e.padding) == null ? void 0 : $.left) ?? 10}px`,
54
+ border: `${((f = e.border) == null ? void 0 : f.width) ?? 0}px ${((m = e.border) == null ? void 0 : m.style) ?? "solid"} ${((k = e.border) == null ? void 0 : k.color) ?? "transparent"}`,
55
+ borderRadius: `${((y = e.border) == null ? void 0 : y.radius) ?? 0}px`,
56
+ overflow: "hidden",
57
+ minWidth: "0",
58
+ display: "flex",
59
+ flexDirection: "column",
60
+ justifyContent: n[e.verticalAlign] ?? "flex-start"
61
+ };
62
+ return e.backgroundImage && (d.backgroundImage = `url(${e.backgroundImage})`, d.backgroundSize = e.backgroundSize ?? "cover", d.backgroundPosition = e.backgroundPosition ?? "center center", d.minHeight = "14px"), d;
63
+ }
64
+ return (e, r) => (s.depth ?? 0) < 5 ? (g(), u("div", {
65
+ key: 0,
66
+ style: v(P.value),
67
+ class: "w-full"
68
+ }, [
69
+ (g(!0), u(B, null, G(s.row.columns ?? [], (n) => (g(), u("div", {
70
+ key: n.id,
71
+ style: v(I(n, s.row)),
72
+ class: "overflow-hidden shrink-0"
73
+ }, [
74
+ V(j(S), {
75
+ children: n.children ?? n.components ?? [],
76
+ scale: s.scale,
77
+ depth: (s.depth ?? 0) + 1
78
+ }, null, 8, ["children", "scale", "depth"]),
79
+ (n.children ?? n.components ?? []).length === 0 ? (g(), u("div", F)) : w("", !0)
80
+ ], 4))), 128))
81
+ ], 4)) : w("", !0);
82
+ }
83
+ });
84
+ export {
85
+ W as default
86
+ };
@@ -0,0 +1,86 @@
1
+ import { defineComponent as z, defineAsyncComponent as A, computed as G, openBlock as g, createElementBlock as u, normalizeStyle as v, Fragment as B, renderList as V, createVNode as j, unref as D, createCommentVNode as w } from "vue";
2
+ const N = {
3
+ key: 0,
4
+ class: "w-full border border-dashed border-(--md-border) rounded",
5
+ style: { "min-height": "10px" }
6
+ }, E = /* @__PURE__ */ z({
7
+ __name: "RowPreviewRow",
8
+ props: {
9
+ row: {},
10
+ scale: {},
11
+ depth: {}
12
+ },
13
+ setup(s) {
14
+ const S = A(
15
+ () => import("./RowPreviewChildren-yl3aB7hb.js")
16
+ ), P = s;
17
+ function p(e) {
18
+ var o;
19
+ const r = e == null ? void 0 : e.backgroundGradient;
20
+ if ((r == null ? void 0 : r.useGradient) === !0 && Array.isArray((o = r == null ? void 0 : r.gradient) == null ? void 0 : o.colors) && r.gradient.colors.length >= 2) {
21
+ const { type: i, direction: c, colors: a } = r.gradient, t = a.map((d) => `${d.color} ${d.position}%`).join(", ");
22
+ return i === "radial" ? `radial-gradient(circle at center, ${t})` : `linear-gradient(${c}, ${t})`;
23
+ }
24
+ return (e == null ? void 0 : e.backgroundColor) ?? "transparent";
25
+ }
26
+ const C = G(() => {
27
+ var n, o, i, c, a, t, d, l;
28
+ const e = P.row, r = {
29
+ display: "flex",
30
+ flexDirection: "row",
31
+ background: p(e),
32
+ padding: `${((n = e.padding) == null ? void 0 : n.top) ?? 0}px ${((o = e.padding) == null ? void 0 : o.right) ?? 0}px ${((i = e.padding) == null ? void 0 : i.bottom) ?? 0}px ${((c = e.padding) == null ? void 0 : c.left) ?? 0}px`,
33
+ alignItems: "stretch",
34
+ border: `${((a = e.border) == null ? void 0 : a.width) ?? 0}px ${((t = e.border) == null ? void 0 : t.style) ?? "solid"} ${((d = e.border) == null ? void 0 : d.color) ?? "transparent"}`,
35
+ borderRadius: `${((l = e.border) == null ? void 0 : l.radius) ?? 0}px`,
36
+ gap: `${e.gap ?? 0}px`,
37
+ overflow: "hidden"
38
+ };
39
+ return e.backgroundImage && (r.backgroundImage = `url(${e.backgroundImage})`, r.backgroundSize = e.backgroundSize ?? "cover", r.backgroundPosition = e.backgroundPosition ?? "center center"), r;
40
+ });
41
+ function I(e, r) {
42
+ var l, b, h, x, $, f, m, k, y;
43
+ const n = {
44
+ top: "flex-start",
45
+ middle: "center",
46
+ bottom: "flex-end"
47
+ }, o = e.width ?? 50, i = ((l = r == null ? void 0 : r.columns) == null ? void 0 : l.length) || 1, c = (r == null ? void 0 : r.gap) ?? 0, a = i > 1 ? c * (i - 1) / i : 0, t = a > 0 ? `calc(${o}% - ${a}px)` : `${o}%`, d = {
48
+ flex: `0 0 ${t}`,
49
+ width: t,
50
+ maxWidth: t,
51
+ boxSizing: "border-box",
52
+ background: p(e),
53
+ padding: `${((b = e.padding) == null ? void 0 : b.top) ?? 10}px ${((h = e.padding) == null ? void 0 : h.right) ?? 10}px ${((x = e.padding) == null ? void 0 : x.bottom) ?? 10}px ${(($ = e.padding) == null ? void 0 : $.left) ?? 10}px`,
54
+ border: `${((f = e.border) == null ? void 0 : f.width) ?? 0}px ${((m = e.border) == null ? void 0 : m.style) ?? "solid"} ${((k = e.border) == null ? void 0 : k.color) ?? "transparent"}`,
55
+ borderRadius: `${((y = e.border) == null ? void 0 : y.radius) ?? 0}px`,
56
+ overflow: "hidden",
57
+ minWidth: "0",
58
+ display: "flex",
59
+ flexDirection: "column",
60
+ justifyContent: n[e.verticalAlign] ?? "flex-start"
61
+ };
62
+ return e.backgroundImage && (d.backgroundImage = `url(${e.backgroundImage})`, d.backgroundSize = e.backgroundSize ?? "cover", d.backgroundPosition = e.backgroundPosition ?? "center center", d.minHeight = "14px"), d;
63
+ }
64
+ return (e, r) => (s.depth ?? 0) < 5 ? (g(), u("div", {
65
+ key: 0,
66
+ style: v(C.value),
67
+ class: "w-full"
68
+ }, [
69
+ (g(!0), u(B, null, V(s.row.columns ?? [], (n) => (g(), u("div", {
70
+ key: n.id,
71
+ style: v(I(n, s.row)),
72
+ class: "overflow-hidden shrink-0"
73
+ }, [
74
+ j(D(S), {
75
+ children: n.children ?? n.components ?? [],
76
+ scale: s.scale,
77
+ depth: (s.depth ?? 0) + 1
78
+ }, null, 8, ["children", "scale", "depth"]),
79
+ (n.children ?? n.components ?? []).length === 0 ? (g(), u("div", N)) : w("", !0)
80
+ ], 4))), 128))
81
+ ], 4)) : w("", !0);
82
+ }
83
+ });
84
+ export {
85
+ E as default
86
+ };