@templatical/editor 0.52.1 → 0.54.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 (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-C8SeEJRP.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
  7. package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
  8. package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
  11. package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
  13. package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
  14. package/dist/CommentsSidebar-CHknhOar.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
  17. package/dist/IssuesPanel-1wGV0wiy.js +371 -0
  18. package/dist/LanguageMenu-d2GlX67r.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-WzsYtBRs.js +46 -0
  21. package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
  26. package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
  27. package/dist/ParagraphEditor-CI68PYDL.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
  34. package/dist/TemplateSettings-Baar78_s.js +294 -0
  35. package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
  37. package/dist/TitleEditor-DkbEDAZB.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-bOZ_eq7X.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
  43. package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
  44. package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
  139. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  152. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  153. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  154. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
  162. package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
  185. package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
  186. package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
  187. package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
  188. package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
  189. package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
  190. package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2189 -1495
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
  223. package/dist/composables-CMIrGXJ1.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-Do0SU6tR.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Cr0Mis63.js +13 -0
  266. package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
  269. package/dist/rotate-ccw-CB5wsHwv.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
  275. package/dist/socialIcons-TFiOkpoU.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
  282. package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
  296. package/package.json +21 -21
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
  375. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  376. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  377. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  378. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  379. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  381. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  382. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  384. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  385. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  386. package/dist/dist-CKi_npZM.js +0 -1344
  387. package/dist/dist-DyFArF_G.js +0 -4
  388. package/dist/dist-pA3ooG6N.js +0 -4
  389. package/dist/en-Db76vJbY.js +0 -1
  390. package/dist/keys-BgRERHzu.js +0 -9
  391. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  392. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  393. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  394. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  395. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  396. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  397. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,1404 +0,0 @@
1
- // ../types/src/blocks.ts
2
- var e = [
3
- "top",
4
- "right",
5
- "bottom",
6
- "left"
7
- ];
8
- function t(e) {
9
- return {
10
- top: { ...e },
11
- right: { ...e },
12
- bottom: { ...e },
13
- left: { ...e }
14
- };
15
- }
16
- function n(e) {
17
- return !e || typeof e.width != "number" || !Number.isFinite(e.width) || e.width <= 0 ? null : `${e.width}px ${e.style} ${e.color}`;
18
- }
19
- function r(t) {
20
- if (!t) return {};
21
- let r = e.map((e) => n(t[e]));
22
- if (r[0] !== null && r.every((e) => e === r[0])) return { border: r[0] };
23
- let i = {};
24
- return e.forEach((e, t) => {
25
- let n = r[t];
26
- n !== null && (i[`border-${e}`] = n);
27
- }), i;
28
- }
29
- var i = [
30
- "topLeft",
31
- "topRight",
32
- "bottomRight",
33
- "bottomLeft"
34
- ];
35
- function a(e) {
36
- return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 0;
37
- }
38
- function o(e) {
39
- if (e == null) return null;
40
- let t = i.map(typeof e == "number" ? () => a(e) : (t) => a(e[t]));
41
- return t.every((e) => e === 0) ? null : t.every((e) => e === t[0]) ? `${t[0]}px` : t.map((e) => `${e}px`).join(" ");
42
- }
43
- var s = {
44
- 1: 36,
45
- 2: 28,
46
- 3: 22,
47
- 4: 18
48
- }, c = 1.3, l = {
49
- paragraphGap: 8,
50
- listMarginY: 8,
51
- listPaddingLeft: 24,
52
- listItemMarginY: 4
53
- }, u = [
54
- "cover",
55
- "contain",
56
- "auto"
57
- ], d = [
58
- "left",
59
- "center",
60
- "right"
61
- ], ee = [
62
- "top",
63
- "center",
64
- "bottom"
65
- ];
66
- function te(e) {
67
- return {
68
- url: e,
69
- size: "cover",
70
- position: {
71
- x: "center",
72
- y: "center"
73
- },
74
- repeat: !1
75
- };
76
- }
77
- function ne(e) {
78
- let t = "";
79
- for (let n of e) {
80
- let e = n.charCodeAt(0);
81
- t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
82
- }
83
- return t;
84
- }
85
- function re(e) {
86
- let t = typeof e?.url == "string" ? e.url.trim() : "";
87
- if (!e || !t) return null;
88
- let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && ee.includes(r.y) ? r.y : "center";
89
- return {
90
- url: ne(t),
91
- size: n,
92
- position: `${i} ${a}`,
93
- repeat: e.repeat ? "repeat" : "no-repeat"
94
- };
95
- }
96
- // ../types/src/hero.ts
97
- var ie = [
98
- "top",
99
- "middle",
100
- "bottom"
101
- ];
102
- function ae(e) {
103
- let t = e.hero;
104
- if (!t || typeof t != "object") return null;
105
- if (e.columns !== "1") return {
106
- applied: !1,
107
- reason: "columns"
108
- };
109
- let n = re(e.backgroundImage);
110
- if (n === null) return {
111
- applied: !1,
112
- reason: "image"
113
- };
114
- let r = se(e.backgroundImage), i = oe(t.height) ? Math.round(t.height) : "image";
115
- return i === "image" && r === null ? {
116
- applied: !1,
117
- reason: "size"
118
- } : {
119
- applied: !0,
120
- image: n,
121
- height: i,
122
- verticalAlign: ie.includes(t.verticalAlign) ? t.verticalAlign : "middle",
123
- aspectRatio: r
124
- };
125
- }
126
- function oe(e) {
127
- return typeof e == "number" && Number.isFinite(e) && e >= 1;
128
- }
129
- function se(e) {
130
- let t = e?.naturalWidth, n = e?.naturalHeight;
131
- return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
132
- }
133
- // ../types/src/social.ts
134
- var ce = {
135
- facebook: {
136
- color: "#1877F2",
137
- path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
138
- },
139
- twitter: {
140
- color: "#000000",
141
- path: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
142
- },
143
- instagram: {
144
- color: "#E4405F",
145
- path: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
146
- },
147
- linkedin: {
148
- color: "#0A66C2",
149
- path: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
150
- },
151
- youtube: {
152
- color: "#FF0000",
153
- path: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
154
- },
155
- tiktok: {
156
- color: "#000000",
157
- path: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
158
- },
159
- pinterest: {
160
- color: "#BD081C",
161
- path: "M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"
162
- },
163
- email: {
164
- color: "#6B7280",
165
- path: "M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"
166
- },
167
- website: {
168
- color: "#6B7280",
169
- path: "M21.721 12.752a9.711 9.711 0 0 0-.945-5.003 12.754 12.754 0 0 1-4.339 2.708 18.991 18.991 0 0 1-.214 4.772 17.165 17.165 0 0 0 5.498-2.477ZM14.634 15.55a17.324 17.324 0 0 0 .332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 0 0 .332 4.647 17.385 17.385 0 0 0 5.268 0ZM9.772 17.119a18.963 18.963 0 0 0 4.456 0A17.182 17.182 0 0 1 12 21.724a17.18 17.18 0 0 1-2.228-4.605ZM7.777 15.23a18.87 18.87 0 0 1-.214-4.774 12.753 12.753 0 0 1-4.34-2.708 9.711 9.711 0 0 0-.944 5.004 17.165 17.165 0 0 0 5.498 2.477ZM21.356 14.752a9.765 9.765 0 0 1-7.478 6.817 18.64 18.64 0 0 0 1.988-4.718 18.627 18.627 0 0 0 5.49-2.098ZM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 0 0 1.988 4.718 9.765 9.765 0 0 1-7.478-6.816ZM13.878 2.43a9.755 9.755 0 0 1 6.116 3.986 11.267 11.267 0 0 1-3.746 2.504 18.63 18.63 0 0 0-2.37-6.49ZM12 2.276a17.152 17.152 0 0 1 2.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0 1 12 2.276ZM10.122 2.43a18.629 18.629 0 0 0-2.37 6.49 11.266 11.266 0 0 1-3.746-2.504 9.754 9.754 0 0 1 6.116-3.985Z"
170
- },
171
- whatsapp: {
172
- color: "#25D366",
173
- path: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"
174
- },
175
- telegram: {
176
- color: "#26A5E4",
177
- path: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
178
- },
179
- discord: {
180
- color: "#5865F2",
181
- path: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"
182
- },
183
- snapchat: {
184
- color: "#FFFC00",
185
- path: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146 1.124.347 2.317.535 3.554.535 6.627 0 12.017-5.373 12.017-12.001C24.034 5.367 18.644 0 12.017 0z"
186
- },
187
- reddit: {
188
- color: "#FF4500",
189
- path: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"
190
- },
191
- github: {
192
- color: "#181717",
193
- path: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
194
- },
195
- dribbble: {
196
- color: "#EA4C89",
197
- path: "M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.392-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.814zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"
198
- },
199
- behance: {
200
- color: "#1769FF",
201
- path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
202
- }
203
- }, f = {
204
- dark: "#1f1f1f",
205
- light: "#ffffff"
206
- };
207
- function p(e) {
208
- return e === "dark" || e === "light" ? e : void 0;
209
- }
210
- function le(e, t) {
211
- let n = p(t);
212
- return {
213
- fill: n ? f[n] : ce[e].color,
214
- onFill: n === "light" ? f.dark : "#ffffff"
215
- };
216
- }
217
- function ue(e, t) {
218
- let n = p(t);
219
- return n ? `${e}-${n}` : e;
220
- }
221
- function de(e, t) {
222
- if (p(t) === "dark" && (e === "plain" || e === "outlined")) return {
223
- color: f.light,
224
- opacity: .6,
225
- width: 1.4
226
- };
227
- }
228
- function fe(e) {
229
- return e === "plain" ? .84 : .6;
230
- }
231
- // ../types/src/clone.ts
232
- function m(e) {
233
- let t = [];
234
- return JSON.parse(JSON.stringify(e, function(e, n) {
235
- if (typeof n != "object" || !n) return n;
236
- for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
237
- if (!t.includes(n)) return t.push(n), n;
238
- }));
239
- }
240
- // ../types/src/deep-equal.ts
241
- function pe(e) {
242
- return typeof e == "object" && !!e && !Array.isArray(e);
243
- }
244
- function h(e, t) {
245
- if (e === t) return !0;
246
- if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => h(e, t[n]));
247
- if (pe(e)) {
248
- if (!pe(t)) return !1;
249
- let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
250
- for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !h(e[r], t[r])) return !1;
251
- return !0;
252
- }
253
- return !1;
254
- }
255
- // ../types/src/operations.ts
256
- var g = class extends Error {
257
- code;
258
- opIndex;
259
- blockId;
260
- constructor(e, t, n, r) {
261
- super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
262
- }
263
- };
264
- function me(e) {
265
- return e === "1" ? 1 : e === "3" ? 3 : 2;
266
- }
267
- function he(e, t, n = {}) {
268
- let r = m(e);
269
- return _(r, t, n), r;
270
- }
271
- function _(e, t, n = {}) {
272
- let r = {
273
- locks: n.locks ?? [],
274
- session: n.session ?? null
275
- };
276
- t.forEach((t, n) => Ce(e, t, n, r));
277
- }
278
- var ge = /* @__PURE__ */ new Set([
279
- "id",
280
- "type",
281
- "children"
282
- ]), _e = /* @__PURE__ */ new Set();
283
- function v(e, t, n, r) {
284
- throw new g(e, t, n, r);
285
- }
286
- function y(e) {
287
- return typeof e == "object" && !!e && !Array.isArray(e);
288
- }
289
- function b(e) {
290
- return e.type === "section";
291
- }
292
- function ve(e) {
293
- return Array.isArray(e.blocks) ? e.blocks : [];
294
- }
295
- function ye(e) {
296
- let t = e.children;
297
- return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
298
- }
299
- function x(e, t) {
300
- let n = ve(e);
301
- for (let e = 0; e < n.length; e++) {
302
- let r = n[e];
303
- if (!y(r)) continue;
304
- if (r.id === t) return {
305
- block: r,
306
- list: n,
307
- index: e,
308
- parent: null
309
- };
310
- if (!b(r) || typeof r.id != "string") continue;
311
- let i = r.children;
312
- if (Array.isArray(i)) for (let e = 0; e < i.length; e++) {
313
- let n = i[e];
314
- if (Array.isArray(n)) for (let i = 0; i < n.length; i++) {
315
- let a = n[i];
316
- if (y(a) && a.id === t) return {
317
- block: a,
318
- list: n,
319
- index: i,
320
- parent: {
321
- sectionId: r.id,
322
- column: e
323
- }
324
- };
325
- }
326
- }
327
- }
328
- return null;
329
- }
330
- function S(e) {
331
- let t = typeof e.id == "string" ? [e.id] : [];
332
- if (b(e)) for (let n of ye(e)) t.push(...be(n));
333
- return t;
334
- }
335
- function be(e) {
336
- return e.flatMap((e) => y(e) ? S(e) : []);
337
- }
338
- function C(e, t) {
339
- return typeof e.blockId != "string" || e.blockId === "" ? v("invalid_operation", t, "blockId must be a block id.") : e.blockId;
340
- }
341
- function xe(e, t) {
342
- let n = e.parent;
343
- return n === null ? null : y(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
344
- sectionId: n.sectionId,
345
- column: n.column
346
- } : v("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
347
- }
348
- function w(e, t) {
349
- let n = e.after;
350
- return n === null ? null : typeof n == "string" && n !== "" ? n : v("invalid_operation", t, "after must be null or a block id.");
351
- }
352
- function T(e, t) {
353
- let n = e.expect;
354
- return n == null ? null : y(n) ? n : v("invalid_operation", t, "expect must be an object.");
355
- }
356
- function E(e, t, n) {
357
- let r = e.set ?? null, i = e.unset ?? [];
358
- (r === null || y(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || v("invalid_operation", t, "set must be an object and unset a list of keys.");
359
- let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
360
- o.length === 0 && i.length === 0 && v("invalid_operation", t, "Set or unset at least one key.");
361
- for (let e of [...o, ...i]) n.has(e) && v("invalid_operation", t, `"${e}" can't be set or unset.`);
362
- let s = i.find((e) => o.includes(e));
363
- return s !== void 0 && v("invalid_operation", t, `"${s}" is both set and unset.`), {
364
- set: Object.fromEntries(o.map((e) => [e, a[e]])),
365
- unset: i
366
- };
367
- }
368
- function D(e, t, n) {
369
- if (y(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || v("invalid_operation", t, "A block needs a non-empty string id and a string type."), !b(e)) return;
370
- n && v("invalid_operation", t, "Sections can only be placed at the top level.");
371
- let r = e.children;
372
- Array.isArray(r) && r.every((e) => Array.isArray(e)) || v("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
373
- for (let e of r) for (let n of e) D(n, t, !0);
374
- }
375
- function O(e, t) {
376
- return e.session === null || t.sessionId !== e.session;
377
- }
378
- function k(e, t, n) {
379
- let r = e.locks.find((n) => t.includes(n.blockId) && O(e, n));
380
- r && v("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
381
- }
382
- function A(e, t, n, r) {
383
- for (let [i, a] of Object.entries(t)) a !== void 0 && (h(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || v("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
384
- }
385
- function j(e, t, n) {
386
- if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
387
- let r = x(e, t.sectionId);
388
- if (!r) return v("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
389
- if (!b(r.block)) return v("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
390
- let i = r.block.children;
391
- return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? v("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
392
- }
393
- function M(e, t, n) {
394
- if (t === null) return 0;
395
- let r = e.findIndex((e) => y(e) && e.id === t);
396
- return r === -1 ? v("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
397
- }
398
- function Se(e, t, n, r) {
399
- let i = me(t), a = Array.isArray(e.children) ? e.children : [];
400
- for (let e = i; e < a.length; e++) {
401
- let t = a[e];
402
- Array.isArray(t) && t.length > 0 && v("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
403
- }
404
- let o = a.slice(0, i);
405
- for (; o.length < i;) o.push([]);
406
- e.children = o;
407
- }
408
- function N(e, t, n) {
409
- for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
410
- value: m(r),
411
- writable: !0,
412
- enumerable: !0,
413
- configurable: !0
414
- }) : e[n] = m(r);
415
- for (let t of n) delete e[t];
416
- }
417
- function Ce(e, t, n, r) {
418
- let i = t;
419
- switch (y(i) && typeof i.op == "string" || v("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
420
- case "addBlock": return we(e, i, n);
421
- case "moveBlock": return Te(e, i, n, r);
422
- case "deleteBlock": return Ee(e, i, n, r);
423
- case "updateBlock": return De(e, i, n, r);
424
- case "updateSettings": return Oe(e, i, n);
425
- case "setContent": return ke(e, i, n, r);
426
- default: v("invalid_operation", n, `Unknown operation "${i.op}".`);
427
- }
428
- }
429
- function we(e, t, n) {
430
- let r = xe(t, n), i = w(t, n), a = t.block;
431
- D(a, n, r !== null);
432
- let o = new Set(be(ve(e))), s = /* @__PURE__ */ new Set();
433
- for (let e of S(a)) (o.has(e) || s.has(e)) && v("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
434
- let c = j(e, r, n);
435
- c.splice(M(c, i, n), 0, m(a));
436
- }
437
- function Te(e, t, n, r) {
438
- let i = C(t, n), a = xe(t, n), o = w(t, n), s = T(t, n), c = x(e, i);
439
- if (!c) return v("block_missing", n, `No block with id "${i}".`, i);
440
- if (k(r, S(c.block), n), s) {
441
- let e = c.index > 0 ? c.list[c.index - 1] : null, t = y(e) ? e.id ?? null : null;
442
- h(c.parent, s.parent ?? null) && h(t, s.after ?? null) || v("precondition_failed", n, `Block "${i}" has moved since.`, i);
443
- }
444
- b(c.block) && a !== null && v("invalid_operation", n, "Sections can only be placed at the top level."), o === i && v("invalid_operation", n, "A block can't be placed after itself.");
445
- let l = j(e, a, n);
446
- c.list.splice(c.index, 1), l.splice(M(l, o, n), 0, c.block);
447
- }
448
- function Ee(e, t, n, r) {
449
- let i = C(t, n), a = T(t, n), o = x(e, i);
450
- if (!o) return v("block_missing", n, `No block with id "${i}".`, i);
451
- k(r, S(o.block), n), a && !h(o.block, a.block ?? null) && v("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
452
- }
453
- function De(e, t, n, r) {
454
- let i = C(t, n), { set: a, unset: o } = E(t, n, ge), s = T(t, n), c = x(e, i);
455
- if (!c) return v("block_missing", n, `No block with id "${i}".`, i);
456
- let l = c.block, u = b(l);
457
- u && o.includes("columns") && v("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), k(r, [i], n), s && A(l, s, n, i), u && Object.hasOwn(a, "columns") && Se(l, a.columns, n, i), N(l, a, o);
458
- }
459
- function Oe(e, t, n) {
460
- let { set: r, unset: i } = E(t, n, _e), a = T(t, n);
461
- y(e.settings) || (e.settings = {});
462
- let o = e.settings;
463
- a && A(o, a, n), N(o, r, i);
464
- }
465
- function ke(e, t, n, r) {
466
- let i = t.content;
467
- if (!y(i) || !Array.isArray(i.blocks) || !y(i.settings)) return v("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
468
- let a = r.locks.find((e) => O(r, e));
469
- a && v("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = m(i.blocks), e.settings = m(i.settings);
470
- }
471
- // ../types/src/invert-operations.ts
472
- function Ae(e) {
473
- let t = e.children;
474
- return e.type === "section" && Array.isArray(t) ? t : [];
475
- }
476
- function P(e, t, n = null) {
477
- for (let r = 0; r < e.length; r++) {
478
- let i = e[r];
479
- if (i.id === t) return {
480
- block: i,
481
- parent: n,
482
- after: r > 0 ? e[r - 1].id : null
483
- };
484
- let a = Ae(i);
485
- for (let e = 0; e < a.length; e++) {
486
- if (!Array.isArray(a[e])) continue;
487
- let n = P(a[e], t, {
488
- sectionId: i.id,
489
- column: e
490
- });
491
- if (n) return n;
492
- }
493
- }
494
- return null;
495
- }
496
- function F(e, t, n) {
497
- let r = P(e.blocks, t);
498
- if (!r) throw new g("block_missing", n, `No block with id "${t}".`, t);
499
- return r;
500
- }
501
- function je(e, t, n) {
502
- let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
503
- for (let n of o) {
504
- let o = e[n];
505
- o === void 0 ? i.push(n) : r[n] = m(o);
506
- let s = t && n in t ? t[n] : void 0;
507
- a[n] = s === void 0 ? null : m(s);
508
- }
509
- return {
510
- set: r,
511
- unset: i,
512
- expect: a
513
- };
514
- }
515
- function Me(e, t, n) {
516
- switch (t.op) {
517
- case "addBlock": return {
518
- op: "deleteBlock",
519
- blockId: t.block.id,
520
- expect: { block: m(t.block) }
521
- };
522
- case "deleteBlock": {
523
- let r = F(e, t.blockId, n);
524
- return {
525
- op: "addBlock",
526
- block: m(r.block),
527
- parent: r.parent,
528
- after: r.after
529
- };
530
- }
531
- case "moveBlock": {
532
- let r = F(e, t.blockId, n);
533
- return {
534
- op: "moveBlock",
535
- blockId: t.blockId,
536
- parent: r.parent,
537
- after: r.after,
538
- expect: {
539
- parent: t.parent,
540
- after: t.after
541
- }
542
- };
543
- }
544
- case "updateBlock": {
545
- let r = F(e, t.blockId, n).block, { set: i, unset: a, expect: o } = je(r, t.set, t.unset);
546
- return {
547
- op: "updateBlock",
548
- blockId: t.blockId,
549
- ...Object.keys(i).length > 0 ? { set: i } : {},
550
- ...a.length > 0 ? { unset: a } : {},
551
- expect: o
552
- };
553
- }
554
- case "updateSettings": {
555
- let { set: n, unset: r, expect: i } = je(e.settings, t.set, t.unset);
556
- return {
557
- op: "updateSettings",
558
- ...Object.keys(n).length > 0 ? { set: n } : {},
559
- ...r.length > 0 ? { unset: r } : {},
560
- expect: i
561
- };
562
- }
563
- case "setContent": return {
564
- op: "setContent",
565
- content: {
566
- blocks: m(e.blocks),
567
- settings: m(e.settings)
568
- }
569
- };
570
- }
571
- }
572
- function Ne(e, t) {
573
- let n = m(e), r = [];
574
- return t.forEach((e, t) => {
575
- r.push(Me(n, e, t));
576
- try {
577
- _(n, [e]);
578
- } catch (e) {
579
- throw e instanceof g ? new g(e.code, t, e.message, e.blockId) : e;
580
- }
581
- }), r.reverse();
582
- }
583
- // ../types/src/config.ts
584
- var Pe = class extends Error {
585
- statusCode;
586
- code;
587
- constructor(e, t, n, r) {
588
- super(e), this.statusCode = t, this.code = n, this.name = "SdkError", r !== void 0 && Object.keys(r).length > 0 && (this.details = r);
589
- }
590
- get isNotFound() {
591
- return this.statusCode === 404;
592
- }
593
- get isUnauthorized() {
594
- return this.statusCode === 401;
595
- }
596
- get isServerError() {
597
- return this.statusCode !== void 0 && this.statusCode >= 500;
598
- }
599
- };
600
- // ../types/src/collaboration.ts
601
- function Fe(e) {
602
- return e === "invalid_operation" ? 422 : e === "content_too_large" ? 413 : 409;
603
- }
604
- var Ie = class extends Pe {
605
- opIndex;
606
- holder;
607
- holders;
608
- constructor(e, t) {
609
- super(e, t.status ?? Fe(t.code), t.code), this.name = "CollaborationConflict", t.opIndex !== void 0 && (this.opIndex = t.opIndex), t.holder !== void 0 && (this.holder = t.holder), t.holders !== void 0 && (this.holders = t.holders);
610
- }
611
- };
612
- // ../types/src/guards.ts
613
- function I(e) {
614
- return e.type === "section";
615
- }
616
- function Le(e) {
617
- return e.type === "title";
618
- }
619
- function Re(e) {
620
- return e.type === "paragraph";
621
- }
622
- function ze(e) {
623
- return e.type === "image";
624
- }
625
- function Be(e) {
626
- return e.type === "button";
627
- }
628
- function Ve(e) {
629
- return e.type === "divider";
630
- }
631
- function He(e) {
632
- return e.type === "video";
633
- }
634
- function Ue(e) {
635
- return e.type === "social";
636
- }
637
- function We(e) {
638
- return e.type === "spacer";
639
- }
640
- function Ge(e) {
641
- return e.type === "html";
642
- }
643
- function Ke(e) {
644
- return e.type === "menu";
645
- }
646
- function qe(e) {
647
- return e.type === "table";
648
- }
649
- function Je(e) {
650
- return e.type === "countdown";
651
- }
652
- function Ye(e) {
653
- return e.type === "custom";
654
- }
655
- function L(e) {
656
- return e.type === "slot";
657
- }
658
- function R(e) {
659
- return e.type === "wrapper";
660
- }
661
- // ../types/src/defaults.ts
662
- var Xe = {
663
- content: "<p>Enter your title</p>",
664
- level: 2,
665
- textAlign: "left"
666
- }, Ze = { content: "<p>Enter your text here</p>" }, Qe = {
667
- src: "",
668
- alt: "",
669
- width: "full",
670
- align: "center"
671
- }, $e = {
672
- text: "Click Here",
673
- url: "",
674
- backgroundColor: "#333333",
675
- textColor: "#ffffff",
676
- borderRadius: 6,
677
- fontSize: 15,
678
- buttonPadding: {
679
- top: 12,
680
- right: 24,
681
- bottom: 12,
682
- left: 24
683
- },
684
- align: "center"
685
- }, et = {
686
- lineStyle: "solid",
687
- color: "#e0e0e0",
688
- thickness: 1,
689
- width: "full"
690
- }, tt = { columns: "1" }, nt = {
691
- url: "",
692
- thumbnailUrl: "",
693
- alt: "Video",
694
- width: "full",
695
- align: "center"
696
- }, z = {
697
- iconStyle: "solid",
698
- iconSize: "medium",
699
- spacing: 10,
700
- align: "center"
701
- }, rt = { height: 24 }, it = { content: "" }, at = {
702
- fontSize: 15,
703
- textAlign: "center",
704
- separator: "|",
705
- separatorColor: "#e0e0e0",
706
- spacing: 10
707
- }, ot = {
708
- hasHeaderRow: !0,
709
- borderColor: "#e0e0e0",
710
- borderWidth: 1,
711
- cellPadding: 8,
712
- fontSize: 15,
713
- textAlign: "left"
714
- }, st = {
715
- targetDate: "",
716
- timezone: "UTC",
717
- showDays: !0,
718
- showHours: !0,
719
- showMinutes: !0,
720
- showSeconds: !0,
721
- separator: ":",
722
- digitFontSize: 32,
723
- digitColor: "#1a1a1a",
724
- labelColor: "#6b7280",
725
- labelFontSize: 12,
726
- backgroundColor: "#ffffff",
727
- labelDays: "Days",
728
- labelHours: "Hours",
729
- labelMinutes: "Minutes",
730
- labelSeconds: "Seconds",
731
- expiredMessage: "This offer has expired",
732
- expiredImageUrl: "",
733
- hideOnExpiry: !1
734
- }, ct = {
735
- title: Xe,
736
- paragraph: Ze,
737
- image: Qe,
738
- button: $e,
739
- divider: et,
740
- section: tt,
741
- video: nt,
742
- social: z,
743
- spacer: rt,
744
- html: it,
745
- menu: at,
746
- table: ot,
747
- countdown: st
748
- }, lt = {
749
- width: 600,
750
- backgroundColor: "#ffffff",
751
- textColor: "#1a1a1a",
752
- linkUnderline: !0,
753
- fontFamily: "Arial",
754
- locale: "en"
755
- };
756
- function ut(e) {
757
- return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
758
- }
759
- function B(e, t) {
760
- let n = { ...e };
761
- for (let r of Object.keys(t)) {
762
- let i = e[r], a = t[r];
763
- a !== void 0 && (n[r] = ut(i) && ut(a) ? B(i, a) : a);
764
- }
765
- return n;
766
- }
767
- // ../types/src/template.ts
768
- function dt(e = "Arial", t) {
769
- return {
770
- blocks: [],
771
- settings: {
772
- ...lt,
773
- fontFamily: e,
774
- ...t
775
- }
776
- };
777
- }
778
- // ../types/src/direction.ts
779
- var ft = [
780
- "ar",
781
- "he",
782
- "iw",
783
- "fa",
784
- "ur",
785
- "yi",
786
- "dv",
787
- "ps",
788
- "sd",
789
- "ug",
790
- "ckb",
791
- "ks"
792
- ];
793
- function pt(e) {
794
- let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
795
- return !!t && ft.includes(t);
796
- }
797
- function mt(e) {
798
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : pt(e.locale) ? "rtl" : "ltr";
799
- }
800
- // ../types/src/custom-block-liquid.ts
801
- function ht(e) {
802
- return new e.Liquid({
803
- strictVariables: !1,
804
- strictFilters: !1,
805
- outputEscape: "escape",
806
- templates: {}
807
- });
808
- }
809
- // ../types/src/factory.ts
810
- function V(e, t) {
811
- let n = m(e);
812
- return !t || Object.keys(t).length === 0 ? n : B(n, t);
813
- }
814
- function H(e) {
815
- return e === void 0 ? void 0 : m(e);
816
- }
817
- function U() {
818
- return crypto.randomUUID();
819
- }
820
- function gt(e = 0) {
821
- return {
822
- top: e,
823
- right: e,
824
- bottom: e,
825
- left: e
826
- };
827
- }
828
- function W(e = 10) {
829
- return { padding: gt(e) };
830
- }
831
- function _t(e = {}) {
832
- return V({
833
- id: U(),
834
- type: "title",
835
- ...Xe,
836
- styles: W()
837
- }, e);
838
- }
839
- function vt(e = {}) {
840
- return V({
841
- id: U(),
842
- type: "paragraph",
843
- ...Ze,
844
- styles: W()
845
- }, e);
846
- }
847
- function yt(e = {}) {
848
- return V({
849
- id: U(),
850
- type: "image",
851
- ...Qe,
852
- styles: W()
853
- }, e);
854
- }
855
- function bt(e = {}) {
856
- return V({
857
- id: U(),
858
- type: "button",
859
- ...$e,
860
- styles: W()
861
- }, e);
862
- }
863
- function xt(e = {}) {
864
- return V({
865
- id: U(),
866
- type: "divider",
867
- ...et,
868
- styles: W(20)
869
- }, e);
870
- }
871
- function St(e = {}) {
872
- return V({
873
- id: U(),
874
- type: "section",
875
- ...tt,
876
- children: [[]],
877
- styles: W(20)
878
- }, e);
879
- }
880
- function Ct(e = {}) {
881
- return V({
882
- id: U(),
883
- type: "video",
884
- ...nt,
885
- styles: W()
886
- }, e);
887
- }
888
- function wt(e = {}) {
889
- return V({
890
- id: U(),
891
- type: "social",
892
- icons: [],
893
- ...z,
894
- styles: W()
895
- }, e);
896
- }
897
- function Tt(e = {}) {
898
- return V({
899
- id: U(),
900
- type: "spacer",
901
- ...rt,
902
- styles: W(0)
903
- }, e);
904
- }
905
- function Et(e = {}) {
906
- return V({
907
- id: U(),
908
- type: "html",
909
- ...it,
910
- styles: W()
911
- }, e);
912
- }
913
- function Dt(e = {}) {
914
- return V({
915
- id: U(),
916
- type: "menu",
917
- items: [],
918
- ...at,
919
- styles: W()
920
- }, e);
921
- }
922
- function Ot(e, t) {
923
- return Array.from({ length: t }, () => ({
924
- id: U(),
925
- cells: Array.from({ length: e }, () => ({
926
- id: U(),
927
- content: ""
928
- }))
929
- }));
930
- }
931
- function kt(e = {}) {
932
- return V({
933
- id: U(),
934
- type: "table",
935
- rows: Ot(3, 3),
936
- ...ot,
937
- styles: W()
938
- }, e);
939
- }
940
- function At(e = {}) {
941
- return V({
942
- id: U(),
943
- type: "countdown",
944
- ...st,
945
- styles: W()
946
- }, e);
947
- }
948
- function jt(e) {
949
- return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
950
- }
951
- function Mt(e) {
952
- let t = {};
953
- for (let n of e.fields) t[n.key] = H(jt(n));
954
- let n = V(W(), H(e.defaultStyles));
955
- return {
956
- id: U(),
957
- type: "custom",
958
- customType: e.type,
959
- fieldValues: t,
960
- styles: n,
961
- ...e.dataSource ? { dataSourceFetched: !1 } : {}
962
- };
963
- }
964
- function Nt() {
965
- return {
966
- id: U(),
967
- type: "slot",
968
- styles: W(0)
969
- };
970
- }
971
- function Pt(e = {}) {
972
- return V({
973
- id: U(),
974
- type: "wrapper",
975
- children: [],
976
- styles: W(0)
977
- }, e);
978
- }
979
- function Ft(e, t) {
980
- switch (e) {
981
- case "section": return St(H(t?.section));
982
- case "title": return _t(H(t?.title));
983
- case "paragraph": return vt(H(t?.paragraph));
984
- case "image": return yt(H(t?.image));
985
- case "button": return bt(H(t?.button));
986
- case "divider": return xt(H(t?.divider));
987
- case "video": return Ct(H(t?.video));
988
- case "social": return wt(H(t?.social));
989
- case "spacer": return Tt(H(t?.spacer));
990
- case "html": return Et(H(t?.html));
991
- case "menu": return Dt(H(t?.menu));
992
- case "table": return kt(H(t?.table));
993
- case "countdown": return At(H(t?.countdown));
994
- case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
995
- case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
996
- default: throw Error(`Unknown block type: ${e}`);
997
- }
998
- }
999
- function G(e) {
1000
- let t = JSON.parse(JSON.stringify(e));
1001
- if (t.id = U(), t.type === "table") for (let e of t.rows) {
1002
- e.id = U();
1003
- for (let t of e.cells) t.id = U();
1004
- }
1005
- if (t.type === "menu") for (let e of t.items) e.id = U();
1006
- if (t.type === "social") for (let e of t.icons) e.id = U();
1007
- return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => G(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => G(e))), t;
1008
- }
1009
- // ../types/src/layout.ts
1010
- var It = "[Templatical] layout: must contain exactly one slot block", Lt = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Rt = "[Templatical] layout: a wrapper cannot contain a wrapper", zt = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Bt = "[Templatical] slot is not a valid content block", Vt = "[Templatical] wrapper is not a valid content block";
1011
- function K(e, t, n = null, r = !1) {
1012
- for (let i of e) if (t(i, n, r), I(i)) for (let e of i.children) K(e, t, i, !0);
1013
- else R(i) && K(i.children, t, i, r);
1014
- }
1015
- function Ht(e) {
1016
- let t = 0;
1017
- if (K(e.blocks, (e, n, r) => {
1018
- if (L(e) && (t += 1, r)) throw Error(Lt);
1019
- if (R(e)) {
1020
- if (r) throw Error(Lt);
1021
- if (e.children.some(R)) throw Error(Rt);
1022
- }
1023
- }), t !== 1) throw Error(It);
1024
- }
1025
- function Ut(e) {
1026
- K(e.blocks, (e) => {
1027
- if (L(e)) throw Error(Bt);
1028
- });
1029
- }
1030
- function Wt(e) {
1031
- K(e.blocks, (e) => {
1032
- if (R(e)) throw Error(Vt);
1033
- });
1034
- }
1035
- function Gt(e) {
1036
- let t = !1;
1037
- return K(e.blocks, (e, n) => {
1038
- L(e) && n !== null && R(n) && (t = !0);
1039
- }), t;
1040
- }
1041
- function Kt(e) {
1042
- if (L(e)) return e;
1043
- if (R(e)) {
1044
- let t = G({
1045
- ...e,
1046
- children: []
1047
- });
1048
- return t.children = e.children.map(Kt), t;
1049
- }
1050
- return G(e);
1051
- }
1052
- function qt(e) {
1053
- for (let t = 0; t < e.length; t++) {
1054
- let n = e[t];
1055
- if (L(n)) return {
1056
- parent: e,
1057
- index: t
1058
- };
1059
- if (R(n)) {
1060
- let e = qt(n.children);
1061
- if (e) return e;
1062
- }
1063
- }
1064
- return null;
1065
- }
1066
- function Jt(e) {
1067
- for (let t of e) if (I(t)) {
1068
- if (t.wrapper) return !0;
1069
- for (let e of t.children) if (Jt(e)) return !0;
1070
- }
1071
- return !1;
1072
- }
1073
- function Yt(e, t) {
1074
- if (Ht(e), Ut(t), Wt(t), Gt(e) && Jt(t.blocks)) throw Error(zt);
1075
- let n = e.blocks.map(Kt), r = qt(n);
1076
- if (!r) throw Error(It);
1077
- return r.parent.splice(r.index, 1, ...m(t.blocks)), {
1078
- blocks: n,
1079
- settings: {
1080
- ...m(t.settings),
1081
- backgroundColor: e.settings.backgroundColor
1082
- }
1083
- };
1084
- }
1085
- // ../types/src/url-policy.ts
1086
- var Xt = Object.freeze([
1087
- "http",
1088
- "https",
1089
- "mailto",
1090
- "tel",
1091
- "ftp",
1092
- "ftps",
1093
- "sms",
1094
- "xmpp",
1095
- "cid"
1096
- ]), Zt = Object.freeze([
1097
- "javascript",
1098
- "data",
1099
- "vbscript"
1100
- ]);
1101
- function Qt(e) {
1102
- return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1103
- }
1104
- function $t(e) {
1105
- let t = /^([a-z][a-z0-9+.-]*):/i.exec(Qt(e));
1106
- return t ? t[1].toLowerCase() : null;
1107
- }
1108
- var en = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i;
1109
- function tn(e, t) {
1110
- let n = Qt(e), r = $t(n);
1111
- return r === null || Xt.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && en.test(n);
1112
- }
1113
- // ../types/src/html-scan.ts
1114
- var nn = /* @__PURE__ */ new Set(["\"", "'"]);
1115
- function rn(e, t) {
1116
- let n = null;
1117
- for (let r = t; r < e.length; r++) {
1118
- let t = e[r];
1119
- if (n !== null) t === n && (n = null);
1120
- else if (nn.has(t)) n = t;
1121
- else if (t === ">") return r;
1122
- }
1123
- return -1;
1124
- }
1125
- function an(e) {
1126
- return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
1127
- }
1128
- function q(e) {
1129
- return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1130
- }
1131
- var on = {
1132
- amp: "&",
1133
- lt: "<",
1134
- gt: ">",
1135
- quot: "\"",
1136
- apos: "'",
1137
- nbsp: "\xA0"
1138
- };
1139
- function sn(e) {
1140
- return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
1141
- if (t[0] === "#") {
1142
- let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
1143
- return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
1144
- }
1145
- return on[t.toLowerCase()] ?? e;
1146
- }) : e;
1147
- }
1148
- function cn(e, t) {
1149
- let n = t.toLowerCase(), r = 0;
1150
- for (; r < e.length;) {
1151
- for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
1152
- if (r >= e.length) break;
1153
- let t = r;
1154
- for (; r < e.length && an(e[r]);) r++;
1155
- let i = e.substring(t, r).toLowerCase();
1156
- if (i === "") {
1157
- r++;
1158
- continue;
1159
- }
1160
- for (; r < e.length && q(e[r]);) r++;
1161
- if (e[r] !== "=") continue;
1162
- for (r++; r < e.length && q(e[r]);) r++;
1163
- let a = e[r];
1164
- if (nn.has(a)) {
1165
- let t = r + 1, o = e.indexOf(a, t);
1166
- if (o === -1) return null;
1167
- if (i === n) return sn(e.substring(t, o));
1168
- r = o + 1;
1169
- continue;
1170
- }
1171
- let o = r;
1172
- for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
1173
- if (i === n) return sn(e.substring(o, r));
1174
- }
1175
- return null;
1176
- }
1177
- // ../types/src/rich-text.ts
1178
- var ln = /<\/?p\b[^<>]*>/gi, un = /<p\b([^<>]*)>\s*<\/p>/gi;
1179
- function dn(e) {
1180
- return e.replace(ln, "").trim() === "";
1181
- }
1182
- function fn(e) {
1183
- return dn(e) ? e : e.replace(un, "<p$1>&nbsp;</p>");
1184
- }
1185
- // ../types/src/fonts.ts
1186
- var pn = {
1187
- arial: "Arial, sans-serif",
1188
- helvetica: "Helvetica, sans-serif",
1189
- georgia: "Georgia, serif",
1190
- "times new roman": "'Times New Roman', serif",
1191
- verdana: "Verdana, sans-serif",
1192
- "trebuchet ms": "'Trebuchet MS', sans-serif",
1193
- "courier new": "'Courier New', monospace",
1194
- tahoma: "Tahoma, sans-serif"
1195
- }, mn = /* @__PURE__ */ new Set([
1196
- "inherit",
1197
- "initial",
1198
- "unset",
1199
- "revert",
1200
- "revert-layer"
1201
- ]), hn = /* @__PURE__ */ new Set([
1202
- "serif",
1203
- "sans-serif",
1204
- "monospace",
1205
- "cursive",
1206
- "fantasy",
1207
- "system-ui",
1208
- "ui-serif",
1209
- "ui-sans-serif",
1210
- "ui-monospace",
1211
- "ui-rounded",
1212
- "emoji",
1213
- "math",
1214
- "fangsong"
1215
- ]);
1216
- function gn(e) {
1217
- return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1218
- }
1219
- function J(e) {
1220
- if (typeof e != "string") return [];
1221
- let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
1222
- for (;;) {
1223
- for (; r < t.length && gn(t[r]);) r++;
1224
- if (r >= t.length) return [];
1225
- let e = t[r];
1226
- if (e === "\"" || e === "'") {
1227
- let i = "", a = r + 1, o = !1;
1228
- for (; a < t.length;) {
1229
- let n = t[a];
1230
- if (n === "\\" && a + 1 < t.length) i += t[a + 1], a += 2;
1231
- else {
1232
- if (n === e) {
1233
- o = !0, a++;
1234
- break;
1235
- }
1236
- i += n, a++;
1237
- }
1238
- }
1239
- if (!o) return [];
1240
- for (; a < t.length && gn(t[a]);) a++;
1241
- if (a < t.length && t[a] !== ",") return [];
1242
- n.push({
1243
- name: i,
1244
- quoted: !0
1245
- }), r = a;
1246
- } else {
1247
- let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
1248
- if (a === "" || a.includes("\"") || a.includes("'") || mn.has(a.toLowerCase())) return [];
1249
- n.push({
1250
- name: a,
1251
- quoted: !1
1252
- }), r = i;
1253
- }
1254
- if (r >= t.length) return n;
1255
- r++;
1256
- }
1257
- }
1258
- function _n(e) {
1259
- return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
1260
- }
1261
- function vn(e) {
1262
- return !e.quoted && hn.has(e.name.toLowerCase());
1263
- }
1264
- function yn(e) {
1265
- return J(e)[0]?.name ?? "";
1266
- }
1267
- function bn(e, t) {
1268
- let n = (e) => `${_n(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1269
- if (i) return n(i);
1270
- let a = J(e);
1271
- if (a.length !== 1) return e;
1272
- let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
1273
- return c ? n(c) : pn[s] || (vn(o) ? e : `${_n(o.name)}, ${t.defaultFallback}`);
1274
- }
1275
- // ../types/src/merge-tags.ts
1276
- var Y = {
1277
- liquid: {
1278
- value: /\{\{.+?\}\}/g,
1279
- logic: /\{%-?\s*(\w+).*?-?%\}/g,
1280
- opener: "{{",
1281
- closer: "}}"
1282
- },
1283
- handlebars: {
1284
- value: /\{\{\{?.+?\}?\}\}/g,
1285
- logic: /\{\{[#/](\w+).*?\}\}/g,
1286
- opener: "{{",
1287
- closer: "}}"
1288
- },
1289
- mailchimp: {
1290
- value: /\*\|\w+\|\*/g,
1291
- logic: /\*\|(\w+)[:|].*?\|\*/g,
1292
- opener: "*|",
1293
- closer: "|*"
1294
- },
1295
- ampscript: {
1296
- value: /%%=.+?=%%/g,
1297
- logic: /%%\[\s*(\w+).*?\]%%/g,
1298
- opener: "%%=",
1299
- closer: "=%%"
1300
- }
1301
- };
1302
- function xn(e) {
1303
- return typeof e == "string" && e.trim() !== "" ? e : null;
1304
- }
1305
- function Sn(e) {
1306
- return Object.values(Y).find((t) => t.value.source === e.value.source) ?? null;
1307
- }
1308
- function Cn(e) {
1309
- return xn(e.opener) ?? Sn(e)?.opener ?? null;
1310
- }
1311
- function wn(e) {
1312
- return xn(e.closer) ?? Sn(e)?.closer ?? null;
1313
- }
1314
- function Tn(e) {
1315
- return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
1316
- }
1317
- function X(e) {
1318
- let t = e.source, n = e.flags.replace("g", "");
1319
- return RegExp(`^${t}$`, n);
1320
- }
1321
- function En(e, t) {
1322
- let n = e?.trim() || "";
1323
- return !X(t.logic).test(n) && X(t.value).test(n);
1324
- }
1325
- function Z(e, t) {
1326
- let n = t.find((t) => t.value === e);
1327
- return n ? n.label : e;
1328
- }
1329
- function Dn(e, t) {
1330
- return $(e, "data-merge-tag", (e) => Z(e, t));
1331
- }
1332
- function Q(e, t) {
1333
- return t.find((t) => t.value === e)?.sample;
1334
- }
1335
- function On(e, t) {
1336
- return $(e, "data-merge-tag", (e) => jn(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1337
- }
1338
- function kn(e) {
1339
- return e.some((e) => e.sample !== void 0);
1340
- }
1341
- function An(e, t) {
1342
- if (!e) return e;
1343
- let n = e;
1344
- for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
1345
- return n;
1346
- }
1347
- function jn(e) {
1348
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1349
- }
1350
- function Mn(e, t) {
1351
- if (!e) return !1;
1352
- let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
1353
- return n.test(e) || r.test(e);
1354
- }
1355
- function Nn(e, t) {
1356
- return X(t.logic).test(e?.trim() || "");
1357
- }
1358
- function Pn(e, t) {
1359
- let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
1360
- return r && r[1] ? r[1].toUpperCase() : e;
1361
- }
1362
- function Fn(e, t) {
1363
- return $(e, "data-logic-merge-tag", (e) => Pn(e, t));
1364
- }
1365
- function $(e, t, n, r) {
1366
- let i = "", a = 0;
1367
- for (; a < e.length;) {
1368
- let o = e.indexOf("<span", a);
1369
- if (o === -1) {
1370
- i += e.substring(a);
1371
- break;
1372
- }
1373
- let s = e[o + 5];
1374
- if (s !== ">" && s !== " " && s !== " " && s !== "\n" && s !== "\r" && s !== "/") {
1375
- i += e.substring(a, o + 5), a = o + 5;
1376
- continue;
1377
- }
1378
- let c = rn(e, o + 5);
1379
- if (c === -1) {
1380
- i += e.substring(a);
1381
- break;
1382
- }
1383
- let l = e.indexOf("</span>", c + 1);
1384
- if (l === -1) {
1385
- i += e.substring(a);
1386
- break;
1387
- }
1388
- let u = cn(e.substring(o + 5, c), t);
1389
- if (u === null) {
1390
- i += e.substring(a, o + 5), a = o + 5;
1391
- continue;
1392
- }
1393
- let d = n(u);
1394
- r?.unwrap?.(u) ? (i += e.substring(a, o), i += d) : (i += e.substring(a, c + 1), i += d, i += "</span>"), a = l + 7;
1395
- }
1396
- return i;
1397
- }
1398
- // ../types/src/preview-resolution.ts
1399
- function In(e) {
1400
- return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
1401
- }
1402
- export { mt as $, Wt as A, ue as At, yt as B, re as Bt, cn as C, g as Ct, tn as D, h as Dt, $t as E, me as Et, bt as F, ae as Ft, wt as G, c as Gt, vt as H, e as Ht, At as I, d as It, _t as J, o as Jt, Tt as K, n as Kt, Mt as L, ee as Lt, Ht as M, fe as Mt, G as N, de as Nt, Yt as O, m as Ot, Ft as P, se as Pt, ht as Q, xt as R, te as Rt, rn as S, Ne as St, Xt as T, _ as Tt, St as U, s as Ut, Dt as V, i as Vt, Nt as W, l as Wt, Pt as X, Ct as Y, t as Yt, U as Z, yn as _, Le as _t, Z as a, Je as at, fn as b, Ie as bt, Cn as c, Ge as ct, En as d, Re as dt, dt as et, Fn as f, I as ft, An as g, qe as gt, On as h, We as ht, Pn as i, Be as it, Gt as j, le as jt, Ut as k, ce as kt, kn as l, ze as lt, Tn as m, Ue as mt, Y as n, lt as nt, Q as o, Ye as ot, Dn as p, L as pt, kt as q, r as qt, Mn as r, B as rt, wn as s, Ve as st, In as t, ct as tt, Nn as u, Ke as ut, J as v, He as vt, Zt as w, he as wt, dn as x, Pe as xt, bn as y, R as yt, Et as z, ne as zt };
1403
-
1404
- //# sourceMappingURL=src-DwWrYnUj.js.map