@aswin.dev/editor 0.7.0 → 0.7.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.
Files changed (182) hide show
  1. package/LICENSE +56 -0
  2. package/README.md +3 -3
  3. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-EmQ19wiS.js} +37 -37
  4. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-DeB0w_32.js} +67 -81
  5. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-DoLD5Cde.js} +22 -22
  6. package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-DkNbDvJA.js} +12 -12
  7. package/dist/CloudEditor-zo9PjjvY.js +1214 -0
  8. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-BsXMY-8e.js} +21 -21
  9. package/dist/CommentsSidebar-DIWIa4rS.js +436 -0
  10. package/dist/CountdownBlock-BCi7-DAM.js +92 -0
  11. package/dist/CountdownToolbar-BuS8p5ju.js +210 -0
  12. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-RDlnhL-6.js} +58 -58
  13. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-BJ59h9ok.js} +2 -2
  14. package/dist/ModuleBrowserModal-b7HbpByz.js +206 -0
  15. package/dist/ModulePreviewCanvas-D__YlOLS.js +108 -0
  16. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Ca3vNY84.js} +87 -87
  17. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-B1aYPO-6.js} +182 -182
  18. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-BmEVMrkJ.js} +38 -38
  19. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-ClovqI6h.js} +28 -28
  20. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-DoqtH0cw.js} +45 -50
  21. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-DQv2ZAiL.js} +75 -75
  22. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-iIeYJYsj.js} +28 -28
  23. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-CTDIwRF_.js} +68 -68
  24. package/dist/{TplModal-BwSfxIHf.js → TplModal-CBq1J1pG.js} +14 -14
  25. package/dist/{accessibility-e8JYu_zd.js → accessibility-BU09xZrQ.js} +1 -1
  26. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-QkC6f5UE.js} +19 -5
  27. package/dist/bundle-stats.json +7 -7
  28. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BeU8nz7A.js} +28 -28
  29. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BeU8nz7A.js.map} +1 -1
  30. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-B2mhscyP.js} +21 -21
  31. package/dist/cdn/chunks/AiFeatureMenu-B2mhscyP.js.map +1 -0
  32. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C4g77gF0.js} +11 -11
  33. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-C4g77gF0.js.map} +1 -1
  34. package/dist/{CloudEditor-BCz1ZTYC.js → cdn/chunks/CloudEditor-Btyr0b0_.js} +486 -475
  35. package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +1 -0
  36. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-YBiIjiRh.js} +15 -15
  37. package/dist/cdn/chunks/CollaboratorBar-YBiIjiRh.js.map +1 -0
  38. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +93 -0
  39. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +1 -0
  40. package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js +212 -0
  41. package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js.map +1 -0
  42. package/dist/{ModuleBrowserModal-DrUFMTDx.js → cdn/chunks/ModuleBrowserModal-C2CDWKW6.js} +51 -62
  43. package/dist/cdn/chunks/ModuleBrowserModal-C2CDWKW6.js.map +1 -0
  44. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js +109 -0
  45. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +1 -0
  46. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-Ty1bp9vB.js} +64 -64
  47. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-Ty1bp9vB.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-BA1WbHI7.js} +188 -188
  49. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-BA1WbHI7.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BtWCA_Oc.js} +30 -30
  51. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BtWCA_Oc.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-AwL0tkCV.js} +21 -21
  53. package/dist/cdn/chunks/SaveModuleDialog-AwL0tkCV.js.map +1 -0
  54. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-DbSyeixS.js} +65 -65
  55. package/dist/cdn/chunks/TitleEditor-DbSyeixS.js.map +1 -0
  56. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +23 -0
  57. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +1 -0
  58. package/dist/cdn/chunks/{de-D8CnZxV9.js → de-_tooy3Q8.js} +250 -2
  59. package/dist/cdn/chunks/de-_tooy3Q8.js.map +1 -0
  60. package/dist/cdn/chunks/{draggable-Bcb86AsV.js → draggable-C-1_gch3.js} +2 -2
  61. package/dist/cdn/chunks/{draggable-Bcb86AsV.js.map → draggable-C-1_gch3.js.map} +1 -1
  62. package/dist/cdn/chunks/{en-8FHaQv4V.js → en-CNqLoIm9.js} +250 -2
  63. package/dist/cdn/chunks/en-CNqLoIm9.js.map +1 -0
  64. package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-BVKQw_sp.js} +107 -107
  65. package/dist/cdn/chunks/extensions-BVKQw_sp.js.map +1 -0
  66. package/dist/cdn/chunks/{features-DEMb13KS.js → features-DIBEo4xl.js} +3388 -2289
  67. package/dist/cdn/chunks/features-DIBEo4xl.js.map +1 -0
  68. package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-C1Gg-ov-.js} +346 -54
  69. package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +1 -0
  70. package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BTF_Ko70.js} +985 -985
  71. package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +1 -0
  72. package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-C5AmotmP.js} +312 -312
  73. package/dist/cdn/chunks/quality-C5AmotmP.js.map +1 -0
  74. package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-D0L44Vlp.js} +236 -142
  75. package/dist/cdn/chunks/renderer-D0L44Vlp.js.map +1 -0
  76. package/dist/cdn/chunks/{src-CRaqN-p8.js → src-RKexlYjA.js} +161 -161
  77. package/dist/cdn/chunks/src-RKexlYjA.js.map +1 -0
  78. package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js +57 -0
  79. package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js.map +1 -0
  80. package/dist/cdn/chunks/styles-CQR6ed13.js +4976 -0
  81. package/dist/cdn/chunks/styles-CQR6ed13.js.map +1 -0
  82. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-CDzAbF2j.js} +43 -43
  83. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-CDzAbF2j.js.map} +1 -1
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +211 -123
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{check-Da05j8yl.js → check-DJrpDKO_.js} +1 -1
  88. package/dist/{chevron-down-R2uY34iD.js → chevron-down-C5oBUhT8.js} +1 -1
  89. package/dist/chevron-right-BqCptpdp.js +10 -0
  90. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-ZQQc98HC.js} +1 -1
  91. package/dist/{clock-CRp2sIub.js → clock-ik2pRJKG.js} +1 -1
  92. package/dist/{cloud-DEk_b4CR.js → cloud-DJG4tb4_.js} +485 -427
  93. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-ClREiSx3.js} +6 -6
  94. package/dist/{de-Brqvgr43.js → de-2LEvILeZ.js} +249 -1
  95. package/dist/{dist-Cp0zXPAD.js → dist-BHAeXaUY.js} +1 -1
  96. package/dist/{dist-BaQIYPsn.js → dist-BSJvAvH3.js} +1 -1
  97. package/dist/{dist-wzMIGj-D.js → dist-BeFnymxK.js} +1 -1
  98. package/dist/dist-Bmir0gYb.js +1167 -0
  99. package/dist/{dist-DDJIWTRY.js → dist-BvPgo-UK.js} +1 -1
  100. package/dist/{dist-BFawx6IS.js → dist-CPVBKMmd.js} +51 -51
  101. package/dist/dist-CivF9P8b.js +382 -0
  102. package/dist/{dist-D6uC2xhi.js → dist-Df4ie7vZ.js} +1 -1
  103. package/dist/{dist-us-RpCWN.js → dist-DxOoemkW.js} +1 -1
  104. package/dist/{dist-KoBJjK1G.js → dist-HEQ52gTJ.js} +1 -1
  105. package/dist/{dist-DjviJBCi.js → dist-b-XUqAoF.js} +1 -1
  106. package/dist/{dist-D90y8dvT.js → dist-kZfaVUpW.js} +3 -3
  107. package/dist/{dist-aRzjfSRN.js → dist-wfAedlzi.js} +1 -1
  108. package/dist/{en-WDVp87TE.js → en-D2RU2Poj.js} +249 -1
  109. package/dist/{extensions-CUcl9Ok4.js → extensions-BQ1xXx3d.js} +103 -103
  110. package/dist/{image-up-MBZKKg9p.js → image-up-DT7gcJLN.js} +1 -1
  111. package/dist/index.d.ts +102 -14
  112. package/dist/{info-CJEC7piy.js → info-BSPGcsSM.js} +1 -1
  113. package/dist/keys-CvX8D-8C.js +10 -0
  114. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-Balo8p3d.js} +1 -1
  115. package/dist/{message-circle-yElBbR2C.js → message-circle-B39qAHxs.js} +1 -1
  116. package/dist/pencil-BZJPNYWR.js +10 -0
  117. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-DwDqGUM0.js} +1 -1
  118. package/dist/{scan-line-D0vcUekt.js → scan-line-DlghmhNf.js} +1 -1
  119. package/dist/{send-DH4oDQqC.js → send-DDdhIRj8.js} +1 -1
  120. package/dist/{shield-check-CfJgs2Hd.js → shield-check-OSQ-JVTX.js} +1 -1
  121. package/dist/{sparkles-CvRXGqFs.js → sparkles-BN4a-CoF.js} +1 -1
  122. package/dist/style.css +1 -1
  123. package/dist/styleConstants-wWRbcuEK.js +55 -0
  124. package/dist/styles-CavWjvol.js +5487 -0
  125. package/dist/templatical-editor.js +211 -119
  126. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-D1weisjS.js} +1 -1
  127. package/dist/{trash-2-DbP2Y6t2.js → trash-2-CMWvQ5KX.js} +1 -1
  128. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DyidRNX_.js} +1 -1
  129. package/dist/undo-2-Cg8I7obC.js +16 -0
  130. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-BTTNBk5i.js} +2 -2
  131. package/dist/{useEditorCore-C6ost42Q.js → useEditorCore-BGnzcT7p.js} +2424 -2249
  132. package/dist/{useI18n-lb2DHDiu.js → useI18n-C2xQZ6K9.js} +2 -2
  133. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-CfuZq2fF.js} +4 -4
  134. package/dist/{vue.runtime.esm-bundler-DpvJL-nX.js → vue.runtime.esm-bundler-CjauPXjj.js} +1 -1
  135. package/dist/{x-u2oVmjN_.js → x-CgIhNcT9.js} +1 -1
  136. package/package.json +15 -15
  137. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  138. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  139. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  140. package/dist/ModulePreviewCanvas-CHdOwV_4.js +0 -106
  141. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js.map +0 -1
  142. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js +0 -1143
  143. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js.map +0 -1
  144. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js.map +0 -1
  145. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js +0 -93
  146. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js.map +0 -1
  147. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  148. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js.map +0 -1
  149. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js +0 -195
  150. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js.map +0 -1
  151. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js +0 -107
  152. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js.map +0 -1
  153. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js.map +0 -1
  154. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js.map +0 -1
  155. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js +0 -22
  156. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js.map +0 -1
  157. package/dist/cdn/chunks/de-D8CnZxV9.js.map +0 -1
  158. package/dist/cdn/chunks/en-8FHaQv4V.js.map +0 -1
  159. package/dist/cdn/chunks/extensions-DIxF31tA.js.map +0 -1
  160. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  161. package/dist/cdn/chunks/icons-CsLTcirh.js.map +0 -1
  162. package/dist/cdn/chunks/media-library-CVaNvhpM.js.map +0 -1
  163. package/dist/cdn/chunks/quality-BaBfc54_.js.map +0 -1
  164. package/dist/cdn/chunks/renderer-CUxvx7ro.js.map +0 -1
  165. package/dist/cdn/chunks/src-CRaqN-p8.js.map +0 -1
  166. package/dist/cdn/chunks/styleConstants-DP1VOca8.js +0 -57
  167. package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +0 -1
  168. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  169. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  170. package/dist/dist-B1IR0bpH.js +0 -326
  171. package/dist/dist-DJmnUmW9.js +0 -362
  172. package/dist/keys-ciNfSSGj.js +0 -10
  173. package/dist/styleConstants-fWzlIIwN.js +0 -55
  174. package/dist/styles-DEXEkBvg.js +0 -3176
  175. /package/dist/{_plugin-vue_export-helper-B0hnzhyu.js → _plugin-vue_export-helper-Bwh4ceeO.js} +0 -0
  176. /package/dist/{de-DCaaCE5s.js → de-D2npYjrZ.js} +0 -0
  177. /package/dist/{dist-iLBdeBDR.js → dist-DvHLtWVP.js} +0 -0
  178. /package/dist/{emojiData-PQyVa4bU.js → emojiData-DvQBBzmO.js} +0 -0
  179. /package/dist/{en-DXCyK4-X.js → en-ib-4h3_o.js} +0 -0
  180. /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-CFDZnEIs.js} +0 -0
  181. /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-7Rv0QDiO.js} +0 -0
  182. /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-C_9OpzBw.js} +0 -0
@@ -0,0 +1,109 @@
1
+ import { C as e, D as t, I as n, P as r, R as i, ct as a, dt as o, f as s, g as c, h as l, m as u, v as d, z as f } from "./draggable-C-1_gch3.js";
2
+ import { A as p, B as m, G as h, H as g, K as _, L as v, M as y, N as b, Pt as x, U as S, Ut as C, V as w, W as T, j as E, q as D, z as O } from "./features-DIBEo4xl.js";
3
+ //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
4
+ var k = { class: "tpl:w-full" }, A = { class: "tpl:flex tpl:gap-0" }, j = /* @__PURE__ */ e({
5
+ name: "PreviewSectionBlock",
6
+ __name: "PreviewSectionBlock",
7
+ props: {
8
+ block: {},
9
+ viewport: {}
10
+ },
11
+ setup(e) {
12
+ let j = {
13
+ title: v,
14
+ paragraph: w,
15
+ image: T,
16
+ video: p,
17
+ button: x,
18
+ input: S,
19
+ divider: _,
20
+ social: b,
21
+ menu: g,
22
+ table: E,
23
+ spacer: y,
24
+ html: h,
25
+ custom: D
26
+ }, M = e, N = t(C, null), P = u(() => {
27
+ switch (M.block.columns) {
28
+ case "2": return ["50%", "50%"];
29
+ case "3": return [
30
+ "33.33%",
31
+ "33.33%",
32
+ "33.33%"
33
+ ];
34
+ case "1-2": return ["33.33%", "66.67%"];
35
+ case "2-1": return ["66.67%", "33.33%"];
36
+ default: return ["100%"];
37
+ }
38
+ }), F = u(() => {
39
+ let e = P.value.length, t = [...M.block.children];
40
+ for (; t.length < e;) t.push([]);
41
+ return t.slice(0, e);
42
+ });
43
+ function I(e) {
44
+ return F.value[e] || [];
45
+ }
46
+ function L(e) {
47
+ return m(e, N, j);
48
+ }
49
+ return (e, t) => {
50
+ let u = i("PreviewSectionBlock", !0);
51
+ return r(), d("div", k, [l("div", A, [(r(!0), d(s, null, n(F.value, (e, t) => (r(), d("div", {
52
+ key: t,
53
+ style: o({ width: P.value[t] })
54
+ }, [(r(!0), d(s, null, n(I(t), (e) => (r(), d("div", {
55
+ key: e.id,
56
+ style: o(a(O)(e))
57
+ }, [e.type === "section" ? (r(), c(u, {
58
+ key: 0,
59
+ block: e,
60
+ viewport: "desktop"
61
+ }, null, 8, ["block"])) : (r(), c(f(L(e)), {
62
+ key: 1,
63
+ block: e,
64
+ viewport: "desktop"
65
+ }, null, 8, ["block"]))], 4))), 128))], 4))), 128))])]);
66
+ };
67
+ }
68
+ }), M = {
69
+ class: "tpl:pointer-events-none tpl:mx-auto tpl:w-[600px] tpl:select-none tpl:rounded-lg",
70
+ style: {
71
+ "background-color": "var(--tpl-canvas-bg)",
72
+ "box-shadow": "var(--tpl-shadow-sm)"
73
+ }
74
+ }, N = /* @__PURE__ */ e({
75
+ __name: "ModulePreviewCanvas",
76
+ props: { blocks: {} },
77
+ setup(e) {
78
+ let i = t(C), l = {
79
+ section: j,
80
+ title: v,
81
+ paragraph: w,
82
+ image: T,
83
+ video: p,
84
+ button: x,
85
+ input: S,
86
+ divider: _,
87
+ social: b,
88
+ menu: g,
89
+ table: E,
90
+ spacer: y,
91
+ html: h,
92
+ custom: D
93
+ };
94
+ function u(e) {
95
+ return m(e, i, l);
96
+ }
97
+ return (t, i) => (r(), d("div", M, [(r(!0), d(s, null, n(e.blocks, (e) => (r(), d("div", {
98
+ key: e.id,
99
+ style: o(a(O)(e))
100
+ }, [(r(), c(f(u(e)), {
101
+ block: e,
102
+ viewport: "desktop"
103
+ }, null, 8, ["block"]))], 4))), 128))]));
104
+ }
105
+ });
106
+ //#endregion
107
+ export { N as default };
108
+
109
+ //# sourceMappingURL=ModulePreviewCanvas-Drt8Evai.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModulePreviewCanvas-Drt8Evai.js","names":[],"sources":["../../../src/components/blocks/PreviewSectionBlock.vue","../../../src/components/blocks/PreviewSectionBlock.vue","../../../src/cloud/components/ModulePreviewCanvas.vue","../../../src/cloud/components/ModulePreviewCanvas.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport ButtonBlock from \"./ButtonBlock.vue\";\nimport CustomBlock from \"./CustomBlock.vue\";\nimport DividerBlock from \"./DividerBlock.vue\";\nimport HtmlBlock from \"./HtmlBlock.vue\";\nimport ImageBlock from \"./ImageBlock.vue\";\nimport InputBlock from \"./InputBlock.vue\";\nimport MenuBlock from \"./MenuBlock.vue\";\nimport SocialIconsBlock from \"./SocialIconsBlock.vue\";\nimport SpacerBlock from \"./SpacerBlock.vue\";\nimport TableBlock from \"./TableBlock.vue\";\nimport TitleBlock from \"./TitleBlock.vue\";\nimport ParagraphBlock from \"./ParagraphBlock.vue\";\nimport VideoBlock from \"./VideoBlock.vue\";\nimport {\n resolveBlockComponent,\n getBlockWrapperStyle,\n} from \"../../utils/blockComponentResolver\";\nimport type { Block, SectionBlock as SectionBlockType } from \"@aswin.dev/types\";\nimport { computed, inject, type Component } from \"vue\";\nimport { BLOCK_REGISTRY_KEY } from \"../../keys\";\n\nconst previewBlockComponentMap: Record<string, Component> = {\n title: TitleBlock,\n paragraph: ParagraphBlock,\n image: ImageBlock,\n video: VideoBlock,\n button: ButtonBlock,\n input: InputBlock,\n divider: DividerBlock,\n social: SocialIconsBlock,\n menu: MenuBlock,\n table: TableBlock,\n spacer: SpacerBlock,\n html: HtmlBlock,\n custom: CustomBlock,\n};\n\nconst props = defineProps<{\n block: SectionBlockType;\n viewport: \"desktop\";\n}>();\n\ndefineOptions({ name: \"PreviewSectionBlock\" });\n\nconst blockRegistry = inject(BLOCK_REGISTRY_KEY, null);\n\nconst columnWidths = computed(() => {\n switch (props.block.columns) {\n case \"2\":\n return [\"50%\", \"50%\"];\n case \"3\":\n return [\"33.33%\", \"33.33%\", \"33.33%\"];\n case \"1-2\":\n return [\"33.33%\", \"66.67%\"];\n case \"2-1\":\n return [\"66.67%\", \"33.33%\"];\n default:\n return [\"100%\"];\n }\n});\n\nconst columns = computed(() => {\n const count = columnWidths.value.length;\n const children = [...props.block.children];\n while (children.length < count) {\n children.push([]);\n }\n return children.slice(0, count);\n});\n\nfunction getColumnBlocks(colIndex: number): Block[] {\n return columns.value[colIndex] || [];\n}\n\nfunction getBlockComponent(block: Block): Component | null {\n return resolveBlockComponent(block, blockRegistry, previewBlockComponentMap);\n}\n</script>\n\n<template>\n <div class=\"tpl:w-full\">\n <div class=\"tpl:flex tpl:gap-0\">\n <div\n v-for=\"(_, colIndex) in columns\"\n :key=\"colIndex\"\n :style=\"{ width: columnWidths[colIndex] }\"\n >\n <div\n v-for=\"childBlock in getColumnBlocks(colIndex)\"\n :key=\"childBlock.id\"\n :style=\"getBlockWrapperStyle(childBlock)\"\n >\n <!-- Recursive self-reference for nested sections -->\n <PreviewSectionBlock\n v-if=\"childBlock.type === 'section'\"\n :block=\"childBlock\"\n viewport=\"desktop\"\n />\n <component\n :is=\"getBlockComponent(childBlock)\"\n v-else\n :block=\"childBlock\"\n viewport=\"desktop\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport ButtonBlock from \"./ButtonBlock.vue\";\nimport CustomBlock from \"./CustomBlock.vue\";\nimport DividerBlock from \"./DividerBlock.vue\";\nimport HtmlBlock from \"./HtmlBlock.vue\";\nimport ImageBlock from \"./ImageBlock.vue\";\nimport InputBlock from \"./InputBlock.vue\";\nimport MenuBlock from \"./MenuBlock.vue\";\nimport SocialIconsBlock from \"./SocialIconsBlock.vue\";\nimport SpacerBlock from \"./SpacerBlock.vue\";\nimport TableBlock from \"./TableBlock.vue\";\nimport TitleBlock from \"./TitleBlock.vue\";\nimport ParagraphBlock from \"./ParagraphBlock.vue\";\nimport VideoBlock from \"./VideoBlock.vue\";\nimport {\n resolveBlockComponent,\n getBlockWrapperStyle,\n} from \"../../utils/blockComponentResolver\";\nimport type { Block, SectionBlock as SectionBlockType } from \"@aswin.dev/types\";\nimport { computed, inject, type Component } from \"vue\";\nimport { BLOCK_REGISTRY_KEY } from \"../../keys\";\n\nconst previewBlockComponentMap: Record<string, Component> = {\n title: TitleBlock,\n paragraph: ParagraphBlock,\n image: ImageBlock,\n video: VideoBlock,\n button: ButtonBlock,\n input: InputBlock,\n divider: DividerBlock,\n social: SocialIconsBlock,\n menu: MenuBlock,\n table: TableBlock,\n spacer: SpacerBlock,\n html: HtmlBlock,\n custom: CustomBlock,\n};\n\nconst props = defineProps<{\n block: SectionBlockType;\n viewport: \"desktop\";\n}>();\n\ndefineOptions({ name: \"PreviewSectionBlock\" });\n\nconst blockRegistry = inject(BLOCK_REGISTRY_KEY, null);\n\nconst columnWidths = computed(() => {\n switch (props.block.columns) {\n case \"2\":\n return [\"50%\", \"50%\"];\n case \"3\":\n return [\"33.33%\", \"33.33%\", \"33.33%\"];\n case \"1-2\":\n return [\"33.33%\", \"66.67%\"];\n case \"2-1\":\n return [\"66.67%\", \"33.33%\"];\n default:\n return [\"100%\"];\n }\n});\n\nconst columns = computed(() => {\n const count = columnWidths.value.length;\n const children = [...props.block.children];\n while (children.length < count) {\n children.push([]);\n }\n return children.slice(0, count);\n});\n\nfunction getColumnBlocks(colIndex: number): Block[] {\n return columns.value[colIndex] || [];\n}\n\nfunction getBlockComponent(block: Block): Component | null {\n return resolveBlockComponent(block, blockRegistry, previewBlockComponentMap);\n}\n</script>\n\n<template>\n <div class=\"tpl:w-full\">\n <div class=\"tpl:flex tpl:gap-0\">\n <div\n v-for=\"(_, colIndex) in columns\"\n :key=\"colIndex\"\n :style=\"{ width: columnWidths[colIndex] }\"\n >\n <div\n v-for=\"childBlock in getColumnBlocks(colIndex)\"\n :key=\"childBlock.id\"\n :style=\"getBlockWrapperStyle(childBlock)\"\n >\n <!-- Recursive self-reference for nested sections -->\n <PreviewSectionBlock\n v-if=\"childBlock.type === 'section'\"\n :block=\"childBlock\"\n viewport=\"desktop\"\n />\n <component\n :is=\"getBlockComponent(childBlock)\"\n v-else\n :block=\"childBlock\"\n viewport=\"desktop\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport ButtonBlock from \"../../components/blocks/ButtonBlock.vue\";\nimport CustomBlock from \"../../components/blocks/CustomBlock.vue\";\nimport DividerBlock from \"../../components/blocks/DividerBlock.vue\";\nimport HtmlBlock from \"../../components/blocks/HtmlBlock.vue\";\nimport ImageBlock from \"../../components/blocks/ImageBlock.vue\";\nimport InputBlock from \"../../components/blocks/InputBlock.vue\";\nimport MenuBlock from \"../../components/blocks/MenuBlock.vue\";\nimport PreviewSectionBlock from \"../../components/blocks/PreviewSectionBlock.vue\";\nimport SocialIconsBlock from \"../../components/blocks/SocialIconsBlock.vue\";\nimport SpacerBlock from \"../../components/blocks/SpacerBlock.vue\";\nimport TableBlock from \"../../components/blocks/TableBlock.vue\";\nimport TitleBlock from \"../../components/blocks/TitleBlock.vue\";\nimport ParagraphBlock from \"../../components/blocks/ParagraphBlock.vue\";\nimport VideoBlock from \"../../components/blocks/VideoBlock.vue\";\nimport { BLOCK_REGISTRY_KEY } from \"../../keys\";\nimport {\n resolveBlockComponent,\n getBlockWrapperStyle,\n} from \"../../utils/blockComponentResolver\";\nimport type { Block } from \"@aswin.dev/types\";\nimport { inject, type Component } from \"vue\";\n\ndefineProps<{\n blocks: Block[];\n}>();\n\nconst blockRegistry = inject(BLOCK_REGISTRY_KEY);\n\nconst modulePreviewComponentMap: Record<string, Component> = {\n section: PreviewSectionBlock,\n title: TitleBlock,\n paragraph: ParagraphBlock,\n image: ImageBlock,\n video: VideoBlock,\n button: ButtonBlock,\n input: InputBlock,\n divider: DividerBlock,\n social: SocialIconsBlock,\n menu: MenuBlock,\n table: TableBlock,\n spacer: SpacerBlock,\n html: HtmlBlock,\n custom: CustomBlock,\n};\n\nfunction getBlockComponent(block: Block): Component | null {\n return resolveBlockComponent(block, blockRegistry, modulePreviewComponentMap);\n}\n</script>\n\n<template>\n <div\n class=\"tpl:pointer-events-none tpl:mx-auto tpl:w-[600px] tpl:select-none tpl:rounded-lg\"\n style=\"\n background-color: var(--tpl-canvas-bg);\n box-shadow: var(--tpl-shadow-sm);\n \"\n >\n <div\n v-for=\"block in blocks\"\n :key=\"block.id\"\n :style=\"getBlockWrapperStyle(block)\"\n >\n <component\n :is=\"getBlockComponent(block)\"\n :block=\"block\"\n viewport=\"desktop\"\n />\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport ButtonBlock from \"../../components/blocks/ButtonBlock.vue\";\nimport CustomBlock from \"../../components/blocks/CustomBlock.vue\";\nimport DividerBlock from \"../../components/blocks/DividerBlock.vue\";\nimport HtmlBlock from \"../../components/blocks/HtmlBlock.vue\";\nimport ImageBlock from \"../../components/blocks/ImageBlock.vue\";\nimport InputBlock from \"../../components/blocks/InputBlock.vue\";\nimport MenuBlock from \"../../components/blocks/MenuBlock.vue\";\nimport PreviewSectionBlock from \"../../components/blocks/PreviewSectionBlock.vue\";\nimport SocialIconsBlock from \"../../components/blocks/SocialIconsBlock.vue\";\nimport SpacerBlock from \"../../components/blocks/SpacerBlock.vue\";\nimport TableBlock from \"../../components/blocks/TableBlock.vue\";\nimport TitleBlock from \"../../components/blocks/TitleBlock.vue\";\nimport ParagraphBlock from \"../../components/blocks/ParagraphBlock.vue\";\nimport VideoBlock from \"../../components/blocks/VideoBlock.vue\";\nimport { BLOCK_REGISTRY_KEY } from \"../../keys\";\nimport {\n resolveBlockComponent,\n getBlockWrapperStyle,\n} from \"../../utils/blockComponentResolver\";\nimport type { Block } from \"@aswin.dev/types\";\nimport { inject, type Component } from \"vue\";\n\ndefineProps<{\n blocks: Block[];\n}>();\n\nconst blockRegistry = inject(BLOCK_REGISTRY_KEY);\n\nconst modulePreviewComponentMap: Record<string, Component> = {\n section: PreviewSectionBlock,\n title: TitleBlock,\n paragraph: ParagraphBlock,\n image: ImageBlock,\n video: VideoBlock,\n button: ButtonBlock,\n input: InputBlock,\n divider: DividerBlock,\n social: SocialIconsBlock,\n menu: MenuBlock,\n table: TableBlock,\n spacer: SpacerBlock,\n html: HtmlBlock,\n custom: CustomBlock,\n};\n\nfunction getBlockComponent(block: Block): Component | null {\n return resolveBlockComponent(block, blockRegistry, modulePreviewComponentMap);\n}\n</script>\n\n<template>\n <div\n class=\"tpl:pointer-events-none tpl:mx-auto tpl:w-[600px] tpl:select-none tpl:rounded-lg\"\n style=\"\n background-color: var(--tpl-canvas-bg);\n box-shadow: var(--tpl-shadow-sm);\n \"\n >\n <div\n v-for=\"block in blocks\"\n :key=\"block.id\"\n :style=\"getBlockWrapperStyle(block)\"\n >\n <component\n :is=\"getBlockComponent(block)\"\n :block=\"block\"\n viewport=\"desktop\"\n />\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;EAsBA,IAAM,IAAsD;GAC1D,OAAO;GACP,WAAW;GACX,OAAO;GACP,OAAO;GACP,QAAQ;GACR,OAAO;GACP,SAAS;GACT,QAAQ;GACR,MAAM;GACN,OAAO;GACP,QAAQ;GACR,MAAM;GACN,QAAQ;GACT,EAEK,IAAQ,GAOR,IAAgB,EAAO,GAAoB,KAAK,EAEhD,IAAe,QAAe;AAClC,WAAQ,EAAM,MAAM,SAApB;IACE,KAAK,IACH,QAAO,CAAC,OAAO,MAAM;IACvB,KAAK,IACH,QAAO;KAAC;KAAU;KAAU;KAAS;IACvC,KAAK,MACH,QAAO,CAAC,UAAU,SAAS;IAC7B,KAAK,MACH,QAAO,CAAC,UAAU,SAAS;IAC7B,QACE,QAAO,CAAC,OAAO;;IAEnB,EAEI,IAAU,QAAe;GAC7B,IAAM,IAAQ,EAAa,MAAM,QAC3B,IAAW,CAAC,GAAG,EAAM,MAAM,SAAS;AAC1C,UAAO,EAAS,SAAS,GACvB,GAAS,KAAK,EAAE,CAAC;AAEnB,UAAO,EAAS,MAAM,GAAG,EAAM;IAC/B;EAEF,SAAS,EAAgB,GAA2B;AAClD,UAAO,EAAQ,MAAM,MAAa,EAAE;;EAGtC,SAAS,EAAkB,GAAgC;AACzD,UAAO,EAAsB,GAAO,GAAe,EAAyB;;;;eAK5E,EA2BM,OA3BN,GA2BM,CA1BJ,EAyBM,OAzBN,GAyBM,EAAA,EAAA,GAAA,EAxBJ,EAuBM,GAAA,MAAA,EAtBoB,EAAA,QAAhB,GAAG,YADb,EAuBM,OAAA;IArBH,KAAK;IACL,OAAK,EAAA,EAAA,OAAW,EAAA,MAAa,IAAQ,CAAA;eAEtC,EAiBM,GAAA,MAAA,EAhBiB,EAAgB,EAAQ,GAAtC,YADT,EAiBM,OAAA;IAfH,KAAK,EAAW;IAChB,OAAK,EAAE,EAAA,EAAoB,CAAC,EAAU,CAAA;OAI/B,EAAW,SAAI,aAAA,GAAA,EADvB,EAIE,GAAA;;IAFC,OAAO;IACR,UAAS;mCAEX,EAKE,EAJK,EAAkB,EAAU,CAAA,EAAA;;IAEhC,OAAO;IACR,UAAS;;;;;;;;;;;;;;EE5ErB,IAAM,IAAgB,EAAO,EAAmB,EAE1C,IAAuD;GAC3D,SAAS;GACT,OAAO;GACP,WAAW;GACX,OAAO;GACP,OAAO;GACP,QAAQ;GACR,OAAO;GACP,SAAS;GACT,QAAQ;GACR,MAAM;GACN,OAAO;GACP,QAAQ;GACR,MAAM;GACN,QAAQ;GACT;EAED,SAAS,EAAkB,GAAgC;AACzD,UAAO,EAAsB,GAAO,GAAe,EAA0B;;yBAK7E,EAkBM,OAlBN,GAkBM,EAAA,EAAA,GAAA,EAXJ,EAUM,GAAA,MAAA,EATY,EAAA,SAAT,YADT,EAUM,OAAA;GARH,KAAK,EAAM;GACX,OAAK,EAAE,EAAA,EAAoB,CAAC,EAAK,CAAA;YAElC,EAIE,EAHK,EAAkB,EAAK,CAAA,EAAA;GACpB;GACR,UAAS"}
@@ -1,10 +1,10 @@
1
- import { $ as e, F as t, H as n, I as r, N as i, R as a, S as o, _ as s, at as c, b as l, ct as u, d, g as f, h as p, l as m, lt as h, m as g, n as ee, p as _, st as v } from "./draggable-Bcb86AsV.js";
2
- import { Nt as y, tn as te } from "./features-DEMb13KS.js";
3
- import { h as b, i as x, m as S, p as C, u as ne } from "./styleConstants-DP1VOca8.js";
1
+ import { C as e, I as t, L as n, P as r, W as i, _ as a, ct as o, dt as s, f as c, ft as l, g as u, h as d, m as f, n as p, tt as m, u as h, ut as g, v as _, x as ee, z as v } from "./draggable-C-1_gch3.js";
2
+ import { Lt as y, ln as te } from "./features-DIBEo4xl.js";
3
+ import { h as b, i as x, m as S, p as C, u as ne } from "./styleConstants-PgmvNBzQ.js";
4
4
  //#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
5
5
  var w = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, T = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
6
6
  360 / (Math.PI * 2);
7
- var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
7
+ var re = (e) => A(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
8
8
  r: parseInt(e[0] + e[0], 16),
9
9
  g: parseInt(e[1] + e[1], 16),
10
10
  b: parseInt(e[2] + e[2], 16),
@@ -14,7 +14,7 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
14
14
  g: parseInt(e.substring(2, 4), 16),
15
15
  b: parseInt(e.substring(4, 6), 16),
16
16
  a: e.length === 8 ? T(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
17
- }), D = (e) => ae(k(e)), ie = ({ h: e, s: t, v: n, a: r }) => {
17
+ }), D = (e) => oe(ae(e)), ie = ({ h: e, s: t, v: n, a: r }) => {
18
18
  let i = (200 - t) * n / 100;
19
19
  return {
20
20
  h: T(e),
@@ -25,7 +25,7 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
25
25
  }, O = (e) => {
26
26
  let { h: t, s: n, l: r } = ie(e);
27
27
  return `hsl(${t}, ${n}%, ${r}%)`;
28
- }, k = ({ h: e, s: t, v: n, a: r }) => {
28
+ }, ae = ({ h: e, s: t, v: n, a: r }) => {
29
29
  e = e / 360 * 6, t /= 100, n /= 100;
30
30
  let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
31
31
  return {
@@ -55,13 +55,13 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
55
55
  ][c] * 255),
56
56
  a: T(r, 2)
57
57
  };
58
- }, A = (e) => {
58
+ }, k = (e) => {
59
59
  let t = e.toString(16);
60
60
  return t.length < 2 ? "0" + t : t;
61
- }, ae = ({ r: e, g: t, b: n, a: r }) => {
62
- let i = r < 1 ? A(T(r * 255)) : "";
63
- return "#" + A(e) + A(t) + A(n) + i;
64
61
  }, oe = ({ r: e, g: t, b: n, a: r }) => {
62
+ let i = r < 1 ? k(T(r * 255)) : "";
63
+ return "#" + k(e) + k(t) + k(n) + i;
64
+ }, A = ({ r: e, g: t, b: n, a: r }) => {
65
65
  let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
66
66
  return {
67
67
  h: T(60 * (o < 0 ? o + 6 : o)),
@@ -250,7 +250,7 @@ var ue = [
250
250
  "placeholder",
251
251
  "disabled",
252
252
  "aria-label"
253
- ], fe = ["color", "aria-label"], pe = /* @__PURE__ */ o({
253
+ ], fe = ["color", "aria-label"], pe = /* @__PURE__ */ e({
254
254
  __name: "ColorPicker",
255
255
  props: {
256
256
  modelValue: {},
@@ -266,14 +266,14 @@ var ue = [
266
266
  }
267
267
  },
268
268
  emits: ["update:modelValue"],
269
- setup(t, { emit: r }) {
270
- let a = t, o = r, { t: d } = y(), p = e(!1), h = e(), b = e();
271
- te(h, () => {
272
- p.value = !1;
269
+ setup(e, { emit: t }) {
270
+ let n = e, c = t, { t: l } = y(), u = m(!1), v = m(), b = m();
271
+ te(v, () => {
272
+ u.value = !1;
273
273
  }, { ignore: [b] });
274
- let x = _({
275
- get: () => a.modelValue || "#000000",
276
- set: (e) => o("update:modelValue", e)
274
+ let x = f({
275
+ get: () => n.modelValue || "#000000",
276
+ set: (e) => c("update:modelValue", e)
277
277
  });
278
278
  function S(e) {
279
279
  x.value = e.detail.value;
@@ -281,36 +281,36 @@ var ue = [
281
281
  function C(e) {
282
282
  x.value = e.target.value;
283
283
  }
284
- return (e, r) => (i(), s("div", { class: v(["tpl:flex tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
285
- g("button", {
284
+ return (t, n) => (r(), _("div", { class: g(["tpl:flex tpl:gap-2 tpl:relative tpl:w-full tpl:min-w-0", e.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
285
+ d("button", {
286
286
  ref_key: "swatchRef",
287
287
  ref: b,
288
288
  type: "button",
289
- disabled: t.disabled,
290
- "aria-label": c(d).colorPicker.pickColor,
291
- "aria-expanded": p.value,
292
- class: v([
289
+ disabled: e.disabled,
290
+ "aria-label": o(l).colorPicker.pickColor,
291
+ "aria-expanded": u.value,
292
+ class: g([
293
293
  "tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
294
- t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
295
- p.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
296
- t.size === "large" ? "tpl:size-12" : "tpl:size-10"
294
+ e.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
295
+ u.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !e.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
296
+ e.size === "large" ? "tpl:size-12" : "tpl:size-10"
297
297
  ]),
298
- onClick: r[0] ||= (e) => !t.disabled && (p.value = !p.value)
299
- }, [g("span", {
298
+ onClick: n[0] ||= (t) => !e.disabled && (u.value = !u.value)
299
+ }, [d("span", {
300
300
  class: "tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]",
301
- style: u({ backgroundColor: x.value })
301
+ style: s({ backgroundColor: x.value })
302
302
  }, null, 4)], 10, ue),
303
- t.swatchOnly ? f("", !0) : (i(), s("input", {
303
+ e.swatchOnly ? a("", !0) : (r(), _("input", {
304
304
  key: 0,
305
305
  type: "text",
306
- class: v(c(ne)),
307
- value: t.modelValue,
308
- placeholder: t.placeholder,
309
- disabled: t.disabled,
310
- "aria-label": c(d).colorPicker.hexValue,
306
+ class: g(o(ne)),
307
+ value: e.modelValue,
308
+ placeholder: e.placeholder,
309
+ disabled: e.disabled,
310
+ "aria-label": o(l).colorPicker.hexValue,
311
311
  onInput: C
312
312
  }, null, 42, de)),
313
- l(ee, {
313
+ ee(p, {
314
314
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
315
315
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
316
316
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -318,17 +318,17 @@ var ue = [
318
318
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
319
319
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
320
320
  }, {
321
- default: n(() => [p.value ? (i(), s("div", {
321
+ default: i(() => [u.value ? (r(), _("div", {
322
322
  key: 0,
323
323
  ref_key: "popoverRef",
324
- ref: h,
324
+ ref: v,
325
325
  class: "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg"
326
- }, [g("hex-color-picker", {
326
+ }, [d("hex-color-picker", {
327
327
  color: x.value,
328
- "aria-label": c(d).colorPicker.pickColor,
328
+ "aria-label": o(l).colorPicker.pickColor,
329
329
  onColorChanged: S,
330
- onKeydown: r[1] ||= m((e) => p.value = !1, ["escape"])
331
- }, null, 40, fe)], 512)) : f("", !0)]),
330
+ onKeydown: n[1] ||= h((e) => u.value = !1, ["escape"])
331
+ }, null, 40, fe)], 512)) : a("", !0)]),
332
332
  _: 1
333
333
  })
334
334
  ], 2));
@@ -338,7 +338,7 @@ var ue = [
338
338
  "aria-label",
339
339
  "title",
340
340
  "onClick"
341
- ], he = { key: 1 }, ge = /* @__PURE__ */ o({
341
+ ], he = { key: 1 }, ge = /* @__PURE__ */ e({
342
342
  __name: "SlidingPillSelect",
343
343
  props: {
344
344
  options: {},
@@ -346,57 +346,57 @@ var ue = [
346
346
  },
347
347
  emits: ["update:modelValue"],
348
348
  setup(e, { emit: n }) {
349
- let r = e, o = n, c = _(() => r.options.findIndex((e) => e.value === r.modelValue)), l = _(() => `translateX(${Math.max(c.value, 0) * 100}%)`);
350
- return (n, r) => (i(), s("div", {
349
+ let i = e, o = n, d = f(() => i.options.findIndex((e) => e.value === i.modelValue)), p = f(() => `translateX(${Math.max(d.value, 0) * 100}%)`);
350
+ return (n, i) => (r(), _("div", {
351
351
  role: "radiogroup",
352
352
  class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
353
- style: u({
353
+ style: s({
354
354
  gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
355
355
  backgroundColor: "var(--tpl-bg-hover)"
356
356
  })
357
- }, [c.value >= 0 ? (i(), s("div", {
357
+ }, [d.value >= 0 ? (r(), _("div", {
358
358
  key: 0,
359
359
  class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
360
- style: u({
360
+ style: s({
361
361
  left: "4px",
362
362
  width: `calc((100% - 8px) / ${e.options.length})`,
363
- transform: l.value,
363
+ transform: p.value,
364
364
  backgroundColor: "var(--tpl-bg)",
365
365
  boxShadow: "var(--tpl-shadow)",
366
366
  transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
367
367
  })
368
- }, null, 4)) : f("", !0), (i(!0), s(d, null, t(e.options, (t) => (i(), s("button", {
368
+ }, null, 4)) : a("", !0), (r(!0), _(c, null, t(e.options, (t) => (r(), _("button", {
369
369
  key: t.value,
370
370
  role: "radio",
371
371
  "aria-checked": e.modelValue === t.value,
372
372
  "aria-label": t.label,
373
373
  class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
374
- style: u({
374
+ style: s({
375
375
  color: e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
376
376
  transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
377
377
  }),
378
378
  title: t.label,
379
379
  onClick: (e) => o("update:modelValue", t.value)
380
- }, [t.icon ? (i(), p(a(t.icon), {
380
+ }, [t.icon ? (r(), u(v(t.icon), {
381
381
  key: 0,
382
382
  size: 14,
383
383
  "stroke-width": 2
384
- })) : (i(), s("span", he, h(t.label), 1))], 12, me))), 128))], 4));
384
+ })) : (r(), _("span", he, l(t.label), 1))], 12, me))), 128))], 4));
385
385
  }
386
- }), _e = { class: "tpl:mb-3.5" }, ve = /* @__PURE__ */ o({
386
+ }), _e = { class: "tpl:mb-3.5" }, ve = /* @__PURE__ */ e({
387
387
  __name: "FieldRow",
388
388
  props: { label: {} },
389
389
  setup(e) {
390
- return (t, n) => (i(), s("div", _e, [e.label ? (i(), s("label", {
390
+ return (t, i) => (r(), _("div", _e, [e.label ? (r(), _("label", {
391
391
  key: 0,
392
- class: v(c(b))
393
- }, h(e.label), 3)) : f("", !0), r(t.$slots, "default")]));
392
+ class: g(o(b))
393
+ }, l(e.label), 3)) : a("", !0), n(t.$slots, "default")]));
394
394
  }
395
395
  }), ye = { class: "tpl:flex tpl:items-stretch" }, be = [
396
396
  "value",
397
397
  "min",
398
398
  "max"
399
- ], xe = /* @__PURE__ */ o({
399
+ ], xe = /* @__PURE__ */ e({
400
400
  __name: "NumberWithSuffix",
401
401
  props: {
402
402
  modelValue: {},
@@ -407,17 +407,17 @@ var ue = [
407
407
  emits: ["update:modelValue"],
408
408
  setup(e, { emit: t }) {
409
409
  let n = t;
410
- return (t, r) => (i(), s("div", ye, [g("input", {
410
+ return (t, i) => (r(), _("div", ye, [d("input", {
411
411
  type: "number",
412
- class: v(c(C)),
412
+ class: g(o(C)),
413
413
  value: e.modelValue,
414
414
  min: e.min,
415
415
  max: e.max,
416
- onInput: r[0] ||= (e) => n("update:modelValue", Number(e.target.value))
417
- }, null, 42, be), g("span", { class: v(c(S)) }, h(e.suffix), 3)]));
416
+ onInput: i[0] ||= (e) => n("update:modelValue", Number(e.target.value))
417
+ }, null, 42, be), d("span", { class: g(o(S)) }, l(e.suffix), 3)]));
418
418
  }
419
419
  });
420
420
  //#endregion
421
421
  export { pe as i, ve as n, ge as r, xe as t };
422
422
 
423
- //# sourceMappingURL=NumberWithSuffix-CE3NrZhH.js.map
423
+ //# sourceMappingURL=NumberWithSuffix-Ty1bp9vB.js.map