@templatical/editor 0.39.4 → 0.40.0

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 (210) hide show
  1. package/dist/{AiChatSidebar-5qqrS6uy.js → AiChatSidebar-a8TPBAl2.js} +3 -3
  2. package/dist/{AiFeatureMenu-BBO_Ojlp.js → AiFeatureMenu-CbgDjLqk.js} +3 -3
  3. package/dist/{BlockIssueBadge-D5oGxOQP.js → BlockIssueBadge-D8KsGWY6.js} +2 -2
  4. package/dist/BlockPreviewCanvas-XNV83YGg.js +133 -0
  5. package/dist/{CloudHeaderExtras-Cg6uF-yQ.js → CloudHeaderExtras-C-tbLyfE.js} +2 -2
  6. package/dist/{CloudPanels-D1Gg4qrG.js → CloudPanels-DnWDrgnQ.js} +4 -4
  7. package/dist/{CollaboratorBar-Cmn0LccS.js → CollaboratorBar-DUmeCkyD.js} +2 -2
  8. package/dist/{CommentsPanel-twNhYUqZ.js → CommentsPanel-9k1q-79y.js} +1 -1
  9. package/dist/{CommentsSidebar-DDO0Qx8U.js → CommentsSidebar-Bc7nORmD.js} +2 -2
  10. package/dist/{CountdownBlock-DSvbf3qU.js → CountdownBlock-C6R-hn7D.js} +1 -1
  11. package/dist/{CountdownToolbar-nvHxu8Gu.js → CountdownToolbar-DkC-qSgq.js} +4 -4
  12. package/dist/{DesignReferenceSidebar-C8ohNhOd.js → DesignReferenceSidebar-OoiYJAKS.js} +3 -3
  13. package/dist/{IssuesPanel-Ck0EGoV5.js → IssuesPanel-Dnns3O9z.js} +3 -3
  14. package/dist/{LogicTagInsertButton-D8IwH-9Z.js → LogicTagInsertButton-BimKobaG.js} +67 -67
  15. package/dist/{MergeTagInput-QI-5KG2R.js → MergeTagInput-DqpVzhy7.js} +1 -1
  16. package/dist/{MergeTagModeToggle-D793Bj_E.js → MergeTagModeToggle-BkIiAgpQ.js} +4 -4
  17. package/dist/{ParagraphEditor-D6FRxr8Y.js → ParagraphEditor-D67Cqh-T.js} +19 -19
  18. package/dist/{RestoreVersionDialog--b0qfNaK.js → RestoreVersionDialog-BaKDuPCX.js} +2 -2
  19. package/dist/{RichTextEditorContent-BC5UTVnb.js → RichTextEditorContent-AEtfKvLz.js} +5 -5
  20. package/dist/{SaveBlockDialog-C0BdEGeL.js → SaveBlockDialog-BxkI52fN.js} +8 -8
  21. package/dist/{SavedBlocksBrowserModal-BzDgXtr4.js → SavedBlocksBrowserModal-C4_25Kvn.js} +6 -6
  22. package/dist/{SavedBlocksPanels-DN-bDZzy.js → SavedBlocksPanels-DQ0w9G1O.js} +1 -1
  23. package/dist/{SavedBlocksPickBar-pEi9Et8Q.js → SavedBlocksPickBar-CtH-sfxh.js} +2 -2
  24. package/dist/{TemplateScoringPanel-B1wcfE0w.js → TemplateScoringPanel-Cs0TGtRF.js} +3 -3
  25. package/dist/{TemplateSettings-C_5leDdF.js → TemplateSettings-BD1WNP4C.js} +7 -7
  26. package/dist/{TestEmailModal-maM8SLBV.js → TestEmailModal-DZi58FU9.js} +70 -65
  27. package/dist/{TestEmailPanel-8iAZYpCK.js → TestEmailPanel-D__9Wvgz.js} +1 -1
  28. package/dist/{TitleEditor-L26QXwna.js → TitleEditor-v5p89Djs.js} +9 -9
  29. package/dist/{ToggleSwitch-JvQ_CmI1.js → ToggleSwitch-CJfQ8u57.js} +1 -1
  30. package/dist/{Toolbar-B2kDLFhn.js → Toolbar-C7SjilzH.js} +540 -525
  31. package/dist/{TplModal-DVMS_nAn.js → TplModal-B8uLyoXE.js} +3 -3
  32. package/dist/{VersionHistoryMenu-BVQityes.js → VersionHistoryMenu-b0A8mS2_.js} +2 -2
  33. package/dist/{VersionHistoryPanels-D8f8KvKX.js → VersionHistoryPanels-DfNrRT6y.js} +1 -1
  34. package/dist/{VersionPreviewBanner-BaMSgA1O.js → VersionPreviewBanner-xB9r83r0.js} +1 -1
  35. package/dist/WrapperBlock-yGmKw0T-.js +34 -0
  36. package/dist/{blockTypeIcons-CdXugKyV.js → blockTypeIcons-B0Bq1WT1.js} +1 -1
  37. package/dist/bundle-stats.json +6 -6
  38. package/dist/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +1 -0
  39. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js → AiChatSidebar-mKImUXi6.js} +7 -7
  40. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js.map → AiChatSidebar-mKImUXi6.js.map} +1 -1
  41. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js → AiFeatureMenu-23HCL517.js} +4 -4
  42. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js.map → AiFeatureMenu-23HCL517.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js → BlockIssueBadge-DS1pUf5g.js} +3 -3
  44. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js.map → BlockIssueBadge-DS1pUf5g.js.map} +1 -1
  45. package/dist/cdn/chunks/BlockPreviewCanvas-DObWyQfh.js +135 -0
  46. package/dist/cdn/chunks/BlockPreviewCanvas-DObWyQfh.js.map +1 -0
  47. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js → CloudHeaderExtras-DOB_uWpt.js} +3 -3
  48. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js.map → CloudHeaderExtras-DOB_uWpt.js.map} +1 -1
  49. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js → CloudPanels-DcAn5QW7.js} +5 -5
  50. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js.map → CloudPanels-DcAn5QW7.js.map} +1 -1
  51. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js → CollaboratorBar-C0M8c2Vv.js} +3 -3
  52. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js.map → CollaboratorBar-C0M8c2Vv.js.map} +1 -1
  53. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js → CommentsPanel-BtAGZfF6.js} +2 -2
  54. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js.map → CommentsPanel-BtAGZfF6.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js → CommentsSidebar-Ws07MXYj.js} +3 -3
  56. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js.map → CommentsSidebar-Ws07MXYj.js.map} +1 -1
  57. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js → CountdownBlock-sVDjKkRw.js} +2 -2
  58. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js.map → CountdownBlock-sVDjKkRw.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js → CountdownToolbar-Bu93WiS8.js} +5 -5
  60. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js.map → CountdownToolbar-Bu93WiS8.js.map} +1 -1
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js → DesignReferenceSidebar-BlSdh5B7.js} +4 -4
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js.map → DesignReferenceSidebar-BlSdh5B7.js.map} +1 -1
  63. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js → IssuesPanel-CKkv9z9g.js} +4 -4
  64. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js.map → IssuesPanel-CKkv9z9g.js.map} +1 -1
  65. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js → LogicTagInsertButton-CHc1yZ9v.js} +165 -165
  66. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js.map → LogicTagInsertButton-CHc1yZ9v.js.map} +1 -1
  67. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js → MergeTagInput--qTYfCWk.js} +2 -2
  68. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js.map → MergeTagInput--qTYfCWk.js.map} +1 -1
  69. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js → MergeTagModeToggle-CdWIGo3Q.js} +5 -5
  70. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js.map → MergeTagModeToggle-CdWIGo3Q.js.map} +1 -1
  71. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js → ParagraphEditor-BilbVtrG.js} +17 -17
  72. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js.map → ParagraphEditor-BilbVtrG.js.map} +1 -1
  73. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js → RestoreVersionDialog-Q-a44Vjv.js} +3 -3
  74. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js.map → RestoreVersionDialog-Q-a44Vjv.js.map} +1 -1
  75. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js → RichTextEditorContent-Fzuu9pLP.js} +6 -6
  76. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js.map → RichTextEditorContent-Fzuu9pLP.js.map} +1 -1
  77. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js → SaveBlockDialog-DeW_M6kh.js} +9 -9
  78. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js.map → SaveBlockDialog-DeW_M6kh.js.map} +1 -1
  79. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js → SavedBlocksBrowserModal-BzQWibKG.js} +6 -6
  80. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js.map → SavedBlocksBrowserModal-BzQWibKG.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js → SavedBlocksPanels-Ce1RePjk.js} +2 -2
  82. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js.map → SavedBlocksPanels-Ce1RePjk.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js → SavedBlocksPickBar-DIDl6xfy.js} +3 -3
  84. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js.map → SavedBlocksPickBar-DIDl6xfy.js.map} +1 -1
  85. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js → TemplateScoringPanel-d_Ppowsq.js} +49 -49
  86. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js.map → TemplateScoringPanel-d_Ppowsq.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js → TemplateSettings-Dr5OJ0Gi.js} +8 -8
  88. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js.map → TemplateSettings-Dr5OJ0Gi.js.map} +1 -1
  89. package/dist/cdn/chunks/{TestEmailModal-DId9Og-N.js → TestEmailModal-CWTmaJuT.js} +56 -51
  90. package/dist/cdn/chunks/TestEmailModal-CWTmaJuT.js.map +1 -0
  91. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js → TestEmailPanel-BdYsVHXA.js} +2 -2
  92. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js.map → TestEmailPanel-BdYsVHXA.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js → TitleEditor-pJeeZ-PX.js} +9 -9
  94. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js.map → TitleEditor-pJeeZ-PX.js.map} +1 -1
  95. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js → ToggleSwitch-0dGCYnRY.js} +2 -2
  96. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js.map → ToggleSwitch-0dGCYnRY.js.map} +1 -1
  97. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js → Toolbar-BsiHW9gY.js} +493 -478
  98. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js.map → Toolbar-BsiHW9gY.js.map} +1 -1
  99. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js → TplModal-CEuGD7pt.js} +4 -4
  100. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js.map → TplModal-CEuGD7pt.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js → VersionHistoryMenu-B3-hNu9c.js} +3 -3
  102. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js.map → VersionHistoryMenu-B3-hNu9c.js.map} +1 -1
  103. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js → VersionHistoryPanels-C1yck5gT.js} +2 -2
  104. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js.map → VersionHistoryPanels-C1yck5gT.js.map} +1 -1
  105. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js → VersionPreviewBanner-PzVQSBJE.js} +2 -2
  106. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js.map → VersionPreviewBanner-PzVQSBJE.js.map} +1 -1
  107. package/dist/cdn/chunks/WrapperBlock-DGkbmj06.js +36 -0
  108. package/dist/cdn/chunks/WrapperBlock-DGkbmj06.js.map +1 -0
  109. package/dist/cdn/chunks/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +2 -1
  110. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +1 -0
  111. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js → cloud-CIT4yPp4.js} +2 -2
  112. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js.map → cloud-CIT4yPp4.js.map} +1 -1
  113. package/dist/cdn/chunks/{createCloudRuntime-D5bXzcTe.js → createCloudRuntime-COUxbPvd.js} +49 -40
  114. package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +1 -0
  115. package/dist/cdn/chunks/{de-CY6SlqBx.js → de-D4dweQw8.js} +2 -1
  116. package/dist/cdn/chunks/de-D4dweQw8.js.map +1 -0
  117. package/dist/{en-8V-2kDcp.js → cdn/chunks/en-VE7R7NyL.js} +3 -0
  118. package/dist/cdn/chunks/en-VE7R7NyL.js.map +1 -0
  119. package/dist/{es-Cmn1rT3l.js → cdn/chunks/es-B9OhP8H3.js} +3 -0
  120. package/dist/cdn/chunks/es-B9OhP8H3.js.map +1 -0
  121. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js → extensions-CafoGF65.js} +5 -5
  122. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js.map → extensions-CafoGF65.js.map} +1 -1
  123. package/dist/cdn/chunks/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +2 -1
  124. package/dist/cdn/chunks/fr-wrXhIi00.js.map +1 -0
  125. package/dist/cdn/chunks/keys-DCWeHkSF.js +12 -0
  126. package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -0
  127. package/dist/{nl-Bzk2zRI8.js → cdn/chunks/nl-DeFatKJe.js} +3 -0
  128. package/dist/cdn/chunks/nl-DeFatKJe.js.map +1 -0
  129. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js +21 -0
  130. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +1 -0
  131. package/dist/cdn/chunks/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +2 -1
  132. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +1 -0
  133. package/dist/cdn/chunks/{socialIcons-9VrG8X3m.js → socialIcons-BvYNMn1G.js} +264 -258
  134. package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +1 -0
  135. package/dist/cdn/chunks/{src-CqYYKcCI.js → src-CbGCES0u.js} +175 -168
  136. package/dist/cdn/chunks/src-CbGCES0u.js.map +1 -0
  137. package/dist/cdn/chunks/{src-CaNsA_WX.js → src-Cnc5E71L.js} +258 -247
  138. package/dist/cdn/chunks/src-Cnc5E71L.js.map +1 -0
  139. package/dist/cdn/chunks/{src-Dwgq7hf4.js → src-DveVYoWS.js} +281 -181
  140. package/dist/cdn/chunks/src-DveVYoWS.js.map +1 -0
  141. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js → useCloudI18n-CrjWbpbu.js} +2 -2
  142. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js.map → useCloudI18n-CrjWbpbu.js.map} +1 -1
  143. package/dist/cdn/chunks/{useEditorCore-CXYI14ux.js → useEditorCore-CQraU2s_.js} +421 -408
  144. package/dist/cdn/chunks/useEditorCore-CQraU2s_.js.map +1 -0
  145. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js → useEditorRoot-CshefZLP.js} +2 -2
  146. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js.map → useEditorRoot-CshefZLP.js.map} +1 -1
  147. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js → useI18n-CyO_Nmca.js} +2 -2
  148. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js.map → useI18n-CyO_Nmca.js.map} +1 -1
  149. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js → useLogicTag-DF7-l66G.js} +4 -4
  150. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js.map → useLogicTag-DF7-l66G.js.map} +1 -1
  151. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js → useMergeTag-DbIHw4NG.js} +4 -4
  152. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js.map → useMergeTag-DbIHw4NG.js.map} +1 -1
  153. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js → usePopoverPosition-BJRvAb-h.js} +2 -2
  154. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js.map → usePopoverPosition-BJRvAb-h.js.map} +1 -1
  155. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js → useScrollToBlock-DgHZJvID.js} +2 -2
  156. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js.map → useScrollToBlock-DgHZJvID.js.map} +1 -1
  157. package/dist/cdn/editor.css +1 -1
  158. package/dist/cdn/editor.js +484 -460
  159. package/dist/cdn/editor.js.map +1 -1
  160. package/dist/{cloud-C9xWZXhg.js → cloud-DsqqUfzh.js} +1 -1
  161. package/dist/{createCloudRuntime-BGd5--Bq.js → createCloudRuntime-iLflkYzP.js} +47 -38
  162. package/dist/{de-CY6SlqBx.js → de-D4dweQw8.js} +1 -0
  163. package/dist/{dist-tGkjkX-v.js → dist-DbUZvK04.js} +277 -176
  164. package/dist/{cdn/chunks/en-8V-2kDcp.js → en-VE7R7NyL.js} +1 -2
  165. package/dist/{cdn/chunks/es-Cmn1rT3l.js → es-B9OhP8H3.js} +1 -2
  166. package/dist/{extensions-DRN-elXT.js → extensions-DDhjuVKy.js} +4 -4
  167. package/dist/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +1 -0
  168. package/dist/index.d.ts +65 -0
  169. package/dist/keys-CDqfZIRt.js +10 -0
  170. package/dist/{cdn/chunks/nl-Bzk2zRI8.js → nl-DeFatKJe.js} +1 -2
  171. package/dist/preRenderCustomBlocks-BBSqQgke.js +19 -0
  172. package/dist/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +1 -0
  173. package/dist/{socialIcons-DkGcpEwC.js → socialIcons-O7PZCW2P.js} +245 -239
  174. package/dist/style.css +1 -1
  175. package/dist/templatical-editor.js +520 -496
  176. package/dist/{useCloudI18n-D1iedlP3.js → useCloudI18n-DpEsiLeR.js} +1 -1
  177. package/dist/{useEditorCore-BUVbQgwb.js → useEditorCore-Dt_VWNqX.js} +817 -804
  178. package/dist/{useEditorRoot-BOxn5EfP.js → useEditorRoot-CkB_5d0h.js} +1 -1
  179. package/dist/{useI18n-Ds_-druD.js → useI18n-B_CdcBwG.js} +1 -1
  180. package/dist/{useLogicTag-DoHfc08B.js → useLogicTag-D9pvgxQR.js} +3 -3
  181. package/dist/{useMergeTag-DXyum3kG.js → useMergeTag-BaVFPdlq.js} +5 -5
  182. package/dist/{usePopoverPosition-Du-Ah8E9.js → usePopoverPosition-DH7z3Ghm.js} +1 -1
  183. package/dist/{useScrollToBlock-DXQYPCnJ.js → useScrollToBlock-Dj4v3rxr.js} +1 -1
  184. package/package.json +7 -7
  185. package/dist/BlockPreviewCanvas-BMC16_QU.js +0 -131
  186. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js +0 -133
  187. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js.map +0 -1
  188. package/dist/cdn/chunks/TestEmailModal-DId9Og-N.js.map +0 -1
  189. package/dist/cdn/chunks/ca-Bqeygp1_.js.map +0 -1
  190. package/dist/cdn/chunks/createCloudRuntime-D5bXzcTe.js.map +0 -1
  191. package/dist/cdn/chunks/de-CY6SlqBx.js.map +0 -1
  192. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +0 -8
  193. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +0 -1
  194. package/dist/cdn/chunks/en-8V-2kDcp.js.map +0 -1
  195. package/dist/cdn/chunks/es-Cmn1rT3l.js.map +0 -1
  196. package/dist/cdn/chunks/fr-2yDa4zXM.js.map +0 -1
  197. package/dist/cdn/chunks/keys-dJbD1QPs.js +0 -12
  198. package/dist/cdn/chunks/keys-dJbD1QPs.js.map +0 -1
  199. package/dist/cdn/chunks/nl-Bzk2zRI8.js.map +0 -1
  200. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js +0 -23
  201. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js.map +0 -1
  202. package/dist/cdn/chunks/pt-BR-DqtSCTUi.js.map +0 -1
  203. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js.map +0 -1
  204. package/dist/cdn/chunks/src-CaNsA_WX.js.map +0 -1
  205. package/dist/cdn/chunks/src-CqYYKcCI.js.map +0 -1
  206. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +0 -1
  207. package/dist/cdn/chunks/useEditorCore-CXYI14ux.js.map +0 -1
  208. package/dist/emailFrameWidth-BmFCN2dp.js +0 -6
  209. package/dist/keys-BdoSgsz9.js +0 -10
  210. package/dist/preRenderCustomBlocks-DFXH54Zr.js +0 -21
@@ -1,40 +1,40 @@
1
1
  import { E as e, F as t, H as n, K as r, N as i, Q as a, S as o, Y as s, at as c, b as l, c as u, ct as d, d as f, f as p, g as m, h, k as g, l as _, lt as v, m as y, n as b, p as x, q as S, r as C, u as w, ut as T, w as E, y as D } from "./draggable-IB4x6w2O.js";
2
- import { a as O, c as k, d as ee, l as A } from "./src-Dwgq7hf4.js";
3
- import { t as te } from "./dist-CXB2_kBa.js";
4
- import { K as ne, Y as re, d as ie, q as j } from "./keys-dJbD1QPs.js";
5
- import { t as M } from "./useI18n-DTZ9sIcv.js";
6
- import { a as ae, i as oe, n as se, r as ce, t as le } from "./usePopoverPosition-gB9q-ql7.js";
7
- import { K as N, P as ue, Rt as P, n as F } from "./icons-BKkJ-5xF.js";
8
- import { t as I } from "./useMergeTag-BE8oDoha.js";
9
- import { t as L } from "./useLogicTag-E2V0Xdcb.js";
10
- import { u as de } from "./styleConstants-C_YAPdQS.js";
2
+ import { a as O, c as k, d as A, l as j } from "./src-DveVYoWS.js";
3
+ import { t as ee } from "./dist-CXB2_kBa.js";
4
+ import { J as te, Y as M, Z as ne, d as re } from "./keys-DCWeHkSF.js";
5
+ import { t as N } from "./useI18n-CyO_Nmca.js";
6
+ import { a as ie, i as ae, n as oe, r as se, t as ce } from "./usePopoverPosition-BJRvAb-h.js";
7
+ import { K as P, P as le, Rt as F, n as I } from "./icons-BKkJ-5xF.js";
8
+ import { t as L } from "./useMergeTag-DbIHw4NG.js";
9
+ import { t as R } from "./useLogicTag-DF7-l66G.js";
10
+ import { u as ue } from "./styleConstants-C_YAPdQS.js";
11
11
  //#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
12
- var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, B = (e) => he(V(e)), V = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
12
+ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, V = (e) => me(H(e)), H = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
13
13
  r: parseInt(e[0] + e[0], 16),
14
14
  g: parseInt(e[1] + e[1], 16),
15
15
  b: parseInt(e[2] + e[2], 16),
16
- a: e.length === 4 ? z(parseInt(e[3] + e[3], 16) / 255, 2) : 1
16
+ a: e.length === 4 ? B(parseInt(e[3] + e[3], 16) / 255, 2) : 1
17
17
  } : {
18
18
  r: parseInt(e.substring(0, 2), 16),
19
19
  g: parseInt(e.substring(2, 4), 16),
20
20
  b: parseInt(e.substring(4, 6), 16),
21
- a: e.length === 8 ? z(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
- }), H = (e) => me(pe(e)), fe = ({ h: e, s: t, v: n, a: r }) => {
21
+ a: e.length === 8 ? B(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
+ }), U = (e) => pe(fe(e)), de = ({ h: e, s: t, v: n, a: r }) => {
23
23
  let i = (200 - t) * n / 100;
24
24
  return {
25
- h: z(e),
26
- s: z(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
- l: z(i / 2),
28
- a: z(r, 2)
25
+ h: B(e),
26
+ s: B(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
+ l: B(i / 2),
28
+ a: B(r, 2)
29
29
  };
30
- }, U = (e) => {
31
- let { h: t, s: n, l: r } = fe(e);
30
+ }, W = (e) => {
31
+ let { h: t, s: n, l: r } = de(e);
32
32
  return `hsl(${t}, ${n}%, ${r}%)`;
33
- }, pe = ({ h: e, s: t, v: n, a: r }) => {
33
+ }, fe = ({ h: e, s: t, v: n, a: r }) => {
34
34
  e = e / 360 * 6, t /= 100, n /= 100;
35
35
  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;
36
36
  return {
37
- r: z([
37
+ r: B([
38
38
  n,
39
39
  o,
40
40
  a,
@@ -42,7 +42,7 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
42
42
  s,
43
43
  n
44
44
  ][c] * 255),
45
- g: z([
45
+ g: B([
46
46
  s,
47
47
  n,
48
48
  n,
@@ -50,7 +50,7 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
50
50
  a,
51
51
  a
52
52
  ][c] * 255),
53
- b: z([
53
+ b: B([
54
54
  a,
55
55
  a,
56
56
  s,
@@ -58,73 +58,73 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
58
58
  n,
59
59
  o
60
60
  ][c] * 255),
61
- a: z(r, 2)
61
+ a: B(r, 2)
62
62
  };
63
- }, W = (e) => {
63
+ }, G = (e) => {
64
64
  let t = e.toString(16);
65
65
  return t.length < 2 ? "0" + t : t;
66
+ }, pe = ({ r: e, g: t, b: n, a: r }) => {
67
+ let i = r < 1 ? G(B(r * 255)) : "";
68
+ return "#" + G(e) + G(t) + G(n) + i;
66
69
  }, me = ({ r: e, g: t, b: n, a: r }) => {
67
- let i = r < 1 ? W(z(r * 255)) : "";
68
- return "#" + W(e) + W(t) + W(n) + i;
69
- }, he = ({ r: e, g: t, b: n, a: r }) => {
70
70
  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;
71
71
  return {
72
- h: z(60 * (o < 0 ? o + 6 : o)),
73
- s: z(i ? a / i * 100 : 0),
74
- v: z(i / 255 * 100),
72
+ h: B(60 * (o < 0 ? o + 6 : o)),
73
+ s: B(i ? a / i * 100 : 0),
74
+ v: B(i / 255 * 100),
75
75
  a: r
76
76
  };
77
- }, G = (e, t) => {
77
+ }, K = (e, t) => {
78
78
  if (e === t) return !0;
79
79
  for (let n in e) if (e[n] !== t[n]) return !1;
80
80
  return !0;
81
- }, K = (e, t) => e.toLowerCase() === t.toLowerCase() || G(V(e), V(t)), q = {}, J = (e) => {
82
- let t = q[e];
83
- return t || (t = document.createElement("template"), t.innerHTML = e, q[e] = t), t;
84
- }, Y = (e, t, n) => {
81
+ }, q = (e, t) => e.toLowerCase() === t.toLowerCase() || K(H(e), H(t)), J = {}, Y = (e) => {
82
+ let t = J[e];
83
+ return t || (t = document.createElement("template"), t.innerHTML = e, J[e] = t), t;
84
+ }, X = (e, t, n) => {
85
85
  e.dispatchEvent(new CustomEvent(t, {
86
86
  bubbles: !0,
87
87
  detail: n
88
88
  }));
89
- }, X = !1, Z = (e) => "touches" in e, ge = (e) => X && !Z(e) ? !1 : (X ||= Z(e), !0), _e = (e, t) => {
90
- let n = Z(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
- Y(e.el, "move", e.getMove({
92
- x: R((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
- y: R((n.pageY - (r.top + window.pageYOffset)) / r.height)
89
+ }, Z = !1, Q = (e) => "touches" in e, he = (e) => Z && !Q(e) ? !1 : (Z ||= Q(e), !0), ge = (e, t) => {
90
+ let n = Q(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
+ X(e.el, "move", e.getMove({
92
+ x: z((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
+ y: z((n.pageY - (r.top + window.pageYOffset)) / r.height)
94
94
  }));
95
- }, ve = (e, t) => {
95
+ }, _e = (e, t) => {
96
96
  let n = t.keyCode;
97
- n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), Y(e.el, "move", e.getMove({
97
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), X(e.el, "move", e.getMove({
98
98
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
99
99
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
100
100
  }, !0)));
101
- }, ye = class {
101
+ }, ve = class {
102
102
  constructor(e, t, n, r) {
103
- let i = J(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
103
+ let i = Y(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
104
104
  e.appendChild(i.content.cloneNode(!0));
105
105
  let a = e.querySelector(`[part=${t}]`);
106
106
  a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
107
107
  }
108
108
  set dragging(e) {
109
109
  let t = e ? document.addEventListener : document.removeEventListener;
110
- t(X ? "touchmove" : "mousemove", this), t(X ? "touchend" : "mouseup", this);
110
+ t(Z ? "touchmove" : "mousemove", this), t(Z ? "touchend" : "mouseup", this);
111
111
  }
112
112
  handleEvent(e) {
113
113
  switch (e.type) {
114
114
  case "mousedown":
115
115
  case "touchstart":
116
- if (e.preventDefault(), !ge(e) || !X && e.button != 0) return;
117
- this.el.focus(), _e(this, e), this.dragging = !0;
116
+ if (e.preventDefault(), !he(e) || !Z && e.button != 0) return;
117
+ this.el.focus(), ge(this, e), this.dragging = !0;
118
118
  break;
119
119
  case "mousemove":
120
120
  case "touchmove":
121
- e.preventDefault(), _e(this, e);
121
+ e.preventDefault(), ge(this, e);
122
122
  break;
123
123
  case "mouseup":
124
124
  case "touchend":
125
125
  this.dragging = !1;
126
126
  break;
127
- case "keydown": ve(this, e);
127
+ case "keydown": _e(this, e);
128
128
  }
129
129
  }
130
130
  style(e) {
@@ -132,25 +132,25 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
132
132
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
133
133
  });
134
134
  }
135
- }, be = class extends ye {
135
+ }, ye = class extends ve {
136
136
  constructor(e) {
137
137
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
138
138
  }
139
139
  update({ h: e }) {
140
140
  this.h = e, this.style([{
141
141
  left: `${e / 360 * 100}%`,
142
- color: U({
142
+ color: W({
143
143
  h: e,
144
144
  s: 100,
145
145
  v: 100,
146
146
  a: 1
147
147
  })
148
- }]), this.el.setAttribute("aria-valuenow", `${z(e)}`);
148
+ }]), this.el.setAttribute("aria-valuenow", `${B(e)}`);
149
149
  }
150
150
  getMove(e, t) {
151
- return { h: t ? R(this.h + e.x * 360, 0, 360) : 360 * e.x };
151
+ return { h: t ? z(this.h + e.x * 360, 0, 360) : 360 * e.x };
152
152
  }
153
- }, xe = class extends ye {
153
+ }, be = class extends ve {
154
154
  constructor(e) {
155
155
  super(e, "saturation", "aria-label=\"Color\"", !0);
156
156
  }
@@ -158,46 +158,46 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
158
158
  this.hsva = e, this.style([{
159
159
  top: `${100 - e.v}%`,
160
160
  left: `${e.s}%`,
161
- color: U(e)
162
- }, { "background-color": U({
161
+ color: W(e)
162
+ }, { "background-color": W({
163
163
  h: e.h,
164
164
  s: 100,
165
165
  v: 100,
166
166
  a: 1
167
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${z(e.s)}%, Brightness ${z(e.v)}%`);
167
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${B(e.s)}%, Brightness ${B(e.v)}%`);
168
168
  }
169
169
  getMove(e, t) {
170
170
  return {
171
- s: t ? R(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
- v: t ? R(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
171
+ s: t ? z(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
+ v: t ? z(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
173
173
  };
174
174
  }
175
- }, Se = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Ce = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", we = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Q = Symbol("same"), $ = Symbol("color"), Te = Symbol("hsva"), Ee = Symbol("update"), De = Symbol("parts"), Oe = Symbol("css"), ke = Symbol("sliders"), Ae = class extends HTMLElement {
175
+ }, xe = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Se = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ce = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", $ = Symbol("same"), we = Symbol("color"), Te = Symbol("hsva"), Ee = Symbol("update"), De = Symbol("parts"), Oe = Symbol("css"), ke = Symbol("sliders"), Ae = class extends HTMLElement {
176
176
  static get observedAttributes() {
177
177
  return ["color"];
178
178
  }
179
179
  get [Oe]() {
180
180
  return [
181
+ xe,
181
182
  Se,
182
- Ce,
183
- we
183
+ Ce
184
184
  ];
185
185
  }
186
186
  get [ke]() {
187
- return [xe, be];
187
+ return [be, ye];
188
188
  }
189
189
  get color() {
190
- return this[$];
190
+ return this[we];
191
191
  }
192
192
  set color(e) {
193
- if (!this[Q](e)) {
193
+ if (!this[$](e)) {
194
194
  let t = this.colorModel.toHsva(e);
195
- this[Ee](t), this[$] = e;
195
+ this[Ee](t), this[we] = e;
196
196
  }
197
197
  }
198
198
  constructor() {
199
199
  super();
200
- let e = J(`<style>${this[Oe].join("")}</style>`), t = this.attachShadow({ mode: "open" });
200
+ let e = Y(`<style>${this[Oe].join("")}</style>`), t = this.attachShadow({ mode: "open" });
201
201
  t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[De] = this[ke].map((e) => new e(t));
202
202
  }
203
203
  connectedCallback() {
@@ -208,7 +208,7 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
208
208
  }
209
209
  attributeChangedCallback(e, t, n) {
210
210
  let r = this.colorModel.fromAttr(n);
211
- this[Q](r) || (this.color = r);
211
+ this[$](r) || (this.color = r);
212
212
  }
213
213
  handleEvent(e) {
214
214
  let t = this[Te], n = {
@@ -217,9 +217,9 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
217
217
  };
218
218
  this[Ee](n);
219
219
  let r;
220
- !G(n, t) && !this[Q](r = this.colorModel.fromHsva(n)) && (this[$] = r, Y(this, "color-changed", { value: r }));
220
+ !K(n, t) && !this[$](r = this.colorModel.fromHsva(n)) && (this[we] = r, X(this, "color-changed", { value: r }));
221
221
  }
222
- [Q](e) {
222
+ [$](e) {
223
223
  return this.color && this.colorModel.equal(e, this.color);
224
224
  }
225
225
  [Ee](e) {
@@ -227,14 +227,14 @@ var R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 **
227
227
  }
228
228
  }, je = {
229
229
  defaultColor: "#000",
230
- toHsva: B,
231
- fromHsva: ({ h: e, s: t, v: n }) => H({
230
+ toHsva: V,
231
+ fromHsva: ({ h: e, s: t, v: n }) => U({
232
232
  h: e,
233
233
  s: t,
234
234
  v: n,
235
235
  a: 1
236
236
  }),
237
- equal: K,
237
+ equal: q,
238
238
  fromAttr: (e) => e
239
239
  }, Me = class extends Ae {
240
240
  get colorModel() {
@@ -300,33 +300,33 @@ var Ne = [
300
300
  },
301
301
  emits: ["update:modelValue"],
302
302
  setup(r, { emit: o }) {
303
- let s = r, g = o, { t: S } = M(), C = a(!1), T = a(), E = a(), D = a(!1);
304
- te(T, () => {
303
+ let s = r, g = o, { t: S } = N(), C = a(!1), T = a(), E = a(), D = a(!1);
304
+ ee(T, () => {
305
305
  C.value = !1;
306
306
  }, { ignore: [E] });
307
- let O = p(() => !s.modelValue), k = p(() => oe(s.modelValue)), ee = p(() => oe(s.modelValue || s.seedColor)), A = p(() => !s.disabled && !O.value), j = e(ie, ae), N = p(() => [...new Set(s.presets ?? j.presets)]), ue = p(() => s.allowCustom ?? j.allowCustom), P = p(() => N.value.length > 0), I = p(() => ue.value || !P.value), L = p(() => ce(s.modelValue));
308
- function R(e) {
309
- return L.value !== "" && ce(e) === L.value;
310
- }
307
+ let O = p(() => !s.modelValue), k = p(() => ae(s.modelValue)), A = p(() => ae(s.modelValue || s.seedColor)), j = p(() => !s.disabled && !O.value), M = e(re, ie), P = p(() => [...new Set(s.presets ?? M.presets)]), le = p(() => s.allowCustom ?? M.allowCustom), F = p(() => P.value.length > 0), L = p(() => le.value || !F.value), R = p(() => se(s.modelValue));
311
308
  function z(e) {
309
+ return R.value !== "" && se(e) === R.value;
310
+ }
311
+ function B(e) {
312
312
  g("update:modelValue", e);
313
313
  }
314
- let B = p(() => P.value && !I.value);
315
- function V(e) {
316
- return B.value ? e + 1 : e;
314
+ let V = p(() => F.value && !L.value);
315
+ function H(e) {
316
+ return V.value ? e + 1 : e;
317
317
  }
318
- let H = p(() => {
319
- if (B.value && O.value) return 0;
320
- let e = N.value.findIndex((e) => R(e));
321
- return e === -1 ? 0 : V(e);
318
+ let U = p(() => {
319
+ if (V.value && O.value) return 0;
320
+ let e = P.value.findIndex((e) => z(e));
321
+ return e === -1 ? 0 : H(e);
322
322
  });
323
- function fe() {
324
- return H.value === 0 ? 0 : -1;
323
+ function de() {
324
+ return U.value === 0 ? 0 : -1;
325
325
  }
326
- function U(e) {
327
- return V(e) === H.value ? 0 : -1;
326
+ function W(e) {
327
+ return H(e) === U.value ? 0 : -1;
328
328
  }
329
- function pe(e) {
329
+ function fe(e) {
330
330
  if (![
331
331
  "ArrowRight",
332
332
  "ArrowDown",
@@ -336,32 +336,32 @@ var Ne = [
336
336
  let t = Array.from(e.currentTarget.querySelectorAll("[role=\"radio\"]")), n = e.target.closest("[role=\"radio\"]"), r = n ? t.indexOf(n) : -1;
337
337
  r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
338
338
  }
339
- function W(e) {
339
+ function G(e) {
340
340
  D.value = !0, g("update:modelValue", e.detail.value);
341
341
  }
342
- function me() {
342
+ function pe() {
343
343
  D.value = !1;
344
344
  }
345
- function he() {
346
- !D.value && O.value && g("update:modelValue", ee.value);
345
+ function me() {
346
+ !D.value && O.value && g("update:modelValue", A.value);
347
347
  }
348
- function G(e) {
348
+ function K(e) {
349
349
  g("update:modelValue", e.target.value);
350
350
  }
351
- function K() {
351
+ function q() {
352
352
  g("update:modelValue", "");
353
353
  }
354
- let q = se(), { toLocal: J } = le(), Y = e(ne, null), X = e(re, null), Z = a({
354
+ let J = oe(), { toLocal: Y } = ce(), X = e(te, null), Z = e(ne, null), Q = a({
355
355
  top: 0,
356
356
  left: 0
357
357
  });
358
- function ge() {
358
+ function he() {
359
359
  if (!s.disabled) {
360
360
  if (!C.value) {
361
361
  let e = E.value?.getBoundingClientRect();
362
362
  if (e) {
363
363
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
364
- Z.value = J({
364
+ Q.value = Y({
365
365
  top: t,
366
366
  left: e.left
367
367
  });
@@ -385,34 +385,34 @@ var Ne = [
385
385
  C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !r.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
386
386
  r.size === "sm" ? "tpl:size-8" : "tpl:size-10"
387
387
  ]),
388
- onClick: ge
388
+ onClick: he
389
389
  }, [x("span", {
390
390
  class: d(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": O.value }]),
391
391
  style: v(O.value ? void 0 : { backgroundColor: k.value })
392
392
  }, null, 6)], 10, Ne),
393
- !r.swatchOnly && I.value ? (i(), m("div", Pe, [x("input", {
393
+ !r.swatchOnly && L.value ? (i(), m("div", Pe, [x("input", {
394
394
  type: "text",
395
- class: d([c(de), "tpl:w-full"]),
396
- style: v(A.value ? { paddingRight: "2.25rem" } : void 0),
395
+ class: d([c(ue), "tpl:w-full"]),
396
+ style: v(j.value ? { paddingRight: "2.25rem" } : void 0),
397
397
  value: k.value,
398
398
  placeholder: r.placeholder || c(S).colorPicker.notSet,
399
399
  disabled: r.disabled,
400
400
  "aria-label": c(S).colorPicker.hexValue,
401
- onInput: G
402
- }, null, 46, Fe), A.value ? (i(), m("button", {
401
+ onInput: K
402
+ }, null, 46, Fe), j.value ? (i(), m("button", {
403
403
  key: 0,
404
404
  type: "button",
405
405
  "aria-label": c(S).colorPicker.clear,
406
406
  title: c(S).colorPicker.clear,
407
407
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
408
- onClick: K
409
- }, [l(c(F), {
408
+ onClick: q
409
+ }, [l(c(I), {
410
410
  size: 14,
411
411
  "stroke-width": 1.5
412
412
  })], 8, Ie)) : h("", !0)])) : h("", !0),
413
413
  (i(), y(f, {
414
- to: c(q),
415
- disabled: !c(q)
414
+ to: c(J),
415
+ disabled: !c(J)
416
416
  }, [l(b, {
417
417
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
418
418
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
@@ -425,69 +425,69 @@ var Ne = [
425
425
  key: 0,
426
426
  ref_key: "popoverRef",
427
427
  ref: T,
428
- "data-tpl-theme": c(X),
428
+ "data-tpl-theme": c(Z),
429
429
  class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
430
430
  style: v({
431
- top: `${Z.value.top}px`,
432
- left: `${Z.value.left}px`,
433
- ...c(Y)
431
+ top: `${Q.value.top}px`,
432
+ left: `${Q.value.left}px`,
433
+ ...c(X)
434
434
  })
435
435
  }, [
436
- P.value ? (i(), m("div", {
436
+ F.value ? (i(), m("div", {
437
437
  key: 0,
438
438
  role: "radiogroup",
439
439
  "aria-label": c(S).colorPicker.presetColors,
440
- class: d(["tpl:flex tpl:flex-wrap tpl:gap-1.5", I.value && "tpl:mb-2"]),
441
- onKeydown: pe
442
- }, [B.value ? (i(), m("button", {
440
+ class: d(["tpl:flex tpl:flex-wrap tpl:gap-1.5", L.value && "tpl:mb-2"]),
441
+ onKeydown: fe
442
+ }, [V.value ? (i(), m("button", {
443
443
  key: 0,
444
444
  type: "button",
445
445
  role: "radio",
446
446
  "aria-label": c(S).colorPicker.clear,
447
447
  title: c(S).colorPicker.clear,
448
448
  "aria-checked": O.value,
449
- tabindex: fe(),
449
+ tabindex: de(),
450
450
  class: d(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", O.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
451
- onClick: K
452
- }, null, 10, ze)) : h("", !0), (i(!0), m(w, null, t(N.value, (e, t) => (i(), m("button", {
451
+ onClick: q
452
+ }, null, 10, ze)) : h("", !0), (i(!0), m(w, null, t(P.value, (e, t) => (i(), m("button", {
453
453
  key: e,
454
454
  type: "button",
455
455
  role: "radio",
456
456
  "aria-label": e,
457
457
  title: e,
458
- "aria-checked": R(e),
459
- tabindex: U(t),
458
+ "aria-checked": z(e),
459
+ tabindex: W(t),
460
460
  style: v({ backgroundColor: e }),
461
- class: d(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", R(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
462
- onClick: (t) => z(e)
461
+ class: d(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", z(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
462
+ onClick: (t) => B(e)
463
463
  }, null, 14, Be))), 128))], 42, Re)) : h("", !0),
464
- I.value ? (i(), m("hex-color-picker", {
464
+ L.value ? (i(), m("hex-color-picker", {
465
465
  key: 1,
466
- color: ee.value,
466
+ color: A.value,
467
467
  "aria-label": c(S).colorPicker.pickColor,
468
- onColorChanged: W,
469
- onPointerdown: me,
470
- onPointerup: he,
468
+ onColorChanged: G,
469
+ onPointerdown: pe,
470
+ onPointerup: me,
471
471
  onKeydown: a[0] ||= u((e) => C.value = !1, ["escape"])
472
472
  }, null, 40, Ve)) : h("", !0),
473
- r.swatchOnly && I.value ? (i(), m("div", He, [x("input", {
473
+ r.swatchOnly && L.value ? (i(), m("div", He, [x("input", {
474
474
  type: "text",
475
- class: d([c(de), "tpl:w-full"]),
476
- style: v(A.value ? { paddingRight: "2.25rem" } : void 0),
475
+ class: d([c(ue), "tpl:w-full"]),
476
+ style: v(j.value ? { paddingRight: "2.25rem" } : void 0),
477
477
  value: k.value,
478
478
  placeholder: r.placeholder || c(S).colorPicker.notSet,
479
479
  disabled: r.disabled,
480
480
  "aria-label": c(S).colorPicker.hexValue,
481
- onChange: G,
481
+ onChange: K,
482
482
  onKeydown: a[1] ||= u(_((e) => e.target.blur(), ["prevent"]), ["enter"])
483
- }, null, 46, Ue), A.value ? (i(), m("button", {
483
+ }, null, 46, Ue), j.value ? (i(), m("button", {
484
484
  key: 0,
485
485
  type: "button",
486
486
  "aria-label": c(S).colorPicker.clear,
487
487
  title: c(S).colorPicker.clear,
488
488
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
489
- onClick: K
490
- }, [l(c(F), {
489
+ onClick: q
490
+ }, [l(c(I), {
491
491
  size: 14,
492
492
  "stroke-width": 1.5
493
493
  })], 8, We)) : h("", !0)])) : h("", !0)
@@ -705,7 +705,7 @@ var st = /* @__PURE__ */ new Set([
705
705
  "End"
706
706
  ]);
707
707
  function ct(t) {
708
- let { elementRef: n, modelValue: i, emit: a, mergeTags: o, syntax: c, enabled: l, onInsert: u } = t, d = A(c), f = k(c), m = p(() => l && d !== null && o.value.length > 0), h = e(j, null), _ = nt((S(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), v = !1;
708
+ let { elementRef: n, modelValue: i, emit: a, mergeTags: o, syntax: c, enabled: l, onInsert: u } = t, d = j(c), f = k(c), m = p(() => l && d !== null && o.value.length > 0), h = e(M, null), _ = nt((S(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", oe()), v = !1;
709
709
  r() && s(() => {
710
710
  v = !0, _.close();
711
711
  });
@@ -759,7 +759,7 @@ function ct(t) {
759
759
  //#endregion
760
760
  //#region src/composables/useMergeTagField.ts
761
761
  function lt(e) {
762
- let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: c, isRequesting: l, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: m, syntax: h, autocomplete: _ } = I(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = L(), x = a(!1), S = !1, C = !1;
762
+ let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: c, isRequesting: l, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: m, syntax: h, autocomplete: _ } = L(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = R(), x = a(!1), S = !1, C = !1;
763
763
  r() && s(() => {
764
764
  C = !0;
765
765
  });
@@ -787,7 +787,7 @@ function lt(e) {
787
787
  type: "mergeTag",
788
788
  value: t,
789
789
  label: d(t)
790
- }) : ee(t, h) ? n.push({
790
+ }) : A(t, h) ? n.push({
791
791
  type: "logicMergeTag",
792
792
  value: t,
793
793
  keyword: O(t, h)
@@ -811,22 +811,22 @@ function lt(e) {
811
811
  function k() {
812
812
  S || (x.value = !1);
813
813
  }
814
- function A(e) {
814
+ function j(e) {
815
815
  n(e.target.value), w.refresh();
816
816
  }
817
- function te(e) {
817
+ function ee(e) {
818
818
  return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && k(), !1);
819
819
  }
820
- function ne() {
820
+ function te() {
821
821
  w.refresh();
822
822
  }
823
- function re() {
823
+ function M() {
824
824
  w.close(), k();
825
825
  }
826
- function ie() {
826
+ function ne() {
827
827
  n("");
828
828
  }
829
- async function j() {
829
+ async function re() {
830
830
  let e = x.value && i.value ? i.value.selectionStart ?? t().length : t().length;
831
831
  S = !0;
832
832
  let r;
@@ -844,7 +844,7 @@ function lt(e) {
844
844
  });
845
845
  }
846
846
  }
847
- async function M(e) {
847
+ async function N(e) {
848
848
  let t = T.value, r = t[e];
849
849
  if (r?.type !== "mergeTag") return;
850
850
  S = !0;
@@ -859,7 +859,7 @@ function lt(e) {
859
859
  }
860
860
  !C && i && n(t.map((t, n) => n === e ? i.value : t.value).join(""));
861
861
  }
862
- async function ae() {
862
+ async function ie() {
863
863
  let e = i.value, r = e?.selectionStart ?? t().length, a = e?.selectionEnd ?? r;
864
864
  S = !0;
865
865
  let o;
@@ -884,14 +884,14 @@ function lt(e) {
884
884
  isEditing: x,
885
885
  startEditing: D,
886
886
  stopEditing: k,
887
- handleInput: A,
888
- handleKeydown: te,
889
- handleClick: ne,
890
- handleBlur: re,
891
- clearValue: ie,
892
- insertMergeTag: j,
893
- replaceMergeTagAt: M,
894
- insertLogicTag: ae,
887
+ handleInput: j,
888
+ handleKeydown: ee,
889
+ handleClick: te,
890
+ handleBlur: M,
891
+ clearValue: ne,
892
+ insertMergeTag: re,
893
+ replaceMergeTagAt: N,
894
+ insertLogicTag: ie,
895
895
  autocompleteAvailable: w.available
896
896
  };
897
897
  }
@@ -917,7 +917,7 @@ var ut = ["aria-label"], dt = [
917
917
  "repick"
918
918
  ],
919
919
  setup(e, { emit: n }) {
920
- let r = n, { t: a, format: o } = M(), { canRepickMergeTag: s, showRawValue: u } = I();
920
+ let r = n, { t: a, format: o } = N(), { canRepickMergeTag: s, showRawValue: u } = L();
921
921
  function f() {
922
922
  r("edit");
923
923
  }
@@ -964,7 +964,7 @@ var ut = ["aria-label"], dt = [
964
964
  title: c(a).mergeTag.editAsText,
965
965
  "data-testid": "merge-tag-field-edit",
966
966
  onClick: _(f, ["stop"])
967
- }, [l(c(N), {
967
+ }, [l(c(P), {
968
968
  size: 12,
969
969
  "stroke-width": 2
970
970
  })], 8, ht),
@@ -975,7 +975,7 @@ var ut = ["aria-label"], dt = [
975
975
  title: c(a).mergeTag.remove,
976
976
  "data-testid": "merge-tag-field-clear",
977
977
  onClick: p[0] ||= _((e) => r("clear"), ["stop"])
978
- }, [l(c(F), {
978
+ }, [l(c(I), {
979
979
  size: 12,
980
980
  "stroke-width": 2.5
981
981
  })], 8, gt)
@@ -990,7 +990,7 @@ var ut = ["aria-label"], dt = [
990
990
  props: { disabled: { type: Boolean } },
991
991
  emits: ["insert"],
992
992
  setup(e) {
993
- let { t } = M();
993
+ let { t } = N();
994
994
  return (n, r) => (i(), m("button", {
995
995
  type: "button",
996
996
  class: d([yt, "tpl:mt-1.5"]),
@@ -999,7 +999,7 @@ var ut = ["aria-label"], dt = [
999
999
  disabled: e.disabled,
1000
1000
  onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1001
1001
  onClick: r[1] ||= (e) => n.$emit("insert")
1002
- }, [l(c(ue), {
1002
+ }, [l(c(le), {
1003
1003
  size: 12,
1004
1004
  "stroke-width": 2
1005
1005
  }), D(" " + T(c(t).mergeTag.insertShort), 1)], 42, vt));
@@ -1013,7 +1013,7 @@ var ut = ["aria-label"], dt = [
1013
1013
  props: { disabled: { type: Boolean } },
1014
1014
  emits: ["insert"],
1015
1015
  setup(e) {
1016
- let { t } = M();
1016
+ let { t } = N();
1017
1017
  return (n, r) => (i(), m("button", {
1018
1018
  type: "button",
1019
1019
  class: d([St, "tpl:mt-1.5"]),
@@ -1023,7 +1023,7 @@ var ut = ["aria-label"], dt = [
1023
1023
  "data-testid": "field-insert-logic-button",
1024
1024
  onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1025
1025
  onClick: r[1] ||= (e) => n.$emit("insert")
1026
- }, [l(c(P), {
1026
+ }, [l(c(F), {
1027
1027
  size: 12,
1028
1028
  "stroke-width": 2
1029
1029
  }), D(" " + T(c(t).logicTag.insertShort), 1)], 42, xt));
@@ -1032,4 +1032,4 @@ var ut = ["aria-label"], dt = [
1032
1032
  //#endregion
1033
1033
  export { nt as a, Ge as c, lt as i, bt as n, et as o, _t as r, tt as s, Ct as t };
1034
1034
 
1035
- //# sourceMappingURL=LogicTagInsertButton-DpyPozop.js.map
1035
+ //# sourceMappingURL=LogicTagInsertButton-CHc1yZ9v.js.map