@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,1344 +0,0 @@
1
- // ../types/dist/index.js
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 = typeof e == "number" ? i.map(() => a(e)) : i.map((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 f(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
- var re = [
97
- "top",
98
- "middle",
99
- "bottom"
100
- ];
101
- function ie(e) {
102
- let t = e.hero;
103
- if (!t || typeof t != "object") return null;
104
- if (e.columns !== "1") return {
105
- applied: !1,
106
- reason: "columns"
107
- };
108
- let n = f(e.backgroundImage);
109
- if (n === null) return {
110
- applied: !1,
111
- reason: "image"
112
- };
113
- let r = oe(e.backgroundImage), i = ae(t.height) ? Math.round(t.height) : "image";
114
- return i === "image" && r === null ? {
115
- applied: !1,
116
- reason: "size"
117
- } : {
118
- applied: !0,
119
- image: n,
120
- height: i,
121
- verticalAlign: re.includes(t.verticalAlign) ? t.verticalAlign : "middle",
122
- aspectRatio: r
123
- };
124
- }
125
- function ae(e) {
126
- return typeof e == "number" && Number.isFinite(e) && e >= 1;
127
- }
128
- function oe(e) {
129
- let t = e?.naturalWidth, n = e?.naturalHeight;
130
- return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
131
- }
132
- var p = {
133
- facebook: {
134
- color: "#1877F2",
135
- 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"
136
- },
137
- twitter: {
138
- color: "#000000",
139
- 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"
140
- },
141
- instagram: {
142
- color: "#E4405F",
143
- 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"
144
- },
145
- linkedin: {
146
- color: "#0A66C2",
147
- 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"
148
- },
149
- youtube: {
150
- color: "#FF0000",
151
- 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"
152
- },
153
- tiktok: {
154
- color: "#000000",
155
- 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"
156
- },
157
- pinterest: {
158
- color: "#BD081C",
159
- 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"
160
- },
161
- email: {
162
- color: "#6B7280",
163
- 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"
164
- },
165
- website: {
166
- color: "#6B7280",
167
- 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"
168
- },
169
- whatsapp: {
170
- color: "#25D366",
171
- 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"
172
- },
173
- telegram: {
174
- color: "#26A5E4",
175
- 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"
176
- },
177
- discord: {
178
- color: "#5865F2",
179
- 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"
180
- },
181
- snapchat: {
182
- color: "#FFFC00",
183
- 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"
184
- },
185
- reddit: {
186
- color: "#FF4500",
187
- 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"
188
- },
189
- github: {
190
- color: "#181717",
191
- 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"
192
- },
193
- dribbble: {
194
- color: "#EA4C89",
195
- 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"
196
- },
197
- behance: {
198
- color: "#1769FF",
199
- 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"
200
- }
201
- }, m = {
202
- dark: "#1f1f1f",
203
- light: "#ffffff"
204
- };
205
- function se(e) {
206
- return e === "dark" || e === "light" ? e : void 0;
207
- }
208
- function ce(e, t) {
209
- let n = se(t);
210
- return {
211
- fill: n ? m[n] : p[e].color,
212
- onFill: n === "light" ? m.dark : "#ffffff"
213
- };
214
- }
215
- function le(e, t) {
216
- if (se(t) === "dark" && (e === "plain" || e === "outlined")) return {
217
- color: m.light,
218
- opacity: .6,
219
- width: 1.4
220
- };
221
- }
222
- function ue(e) {
223
- return e === "plain" ? .84 : .6;
224
- }
225
- function h(e) {
226
- let t = [];
227
- return JSON.parse(JSON.stringify(e, function(e, n) {
228
- if (typeof n != "object" || !n) return n;
229
- for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
230
- if (!t.includes(n)) return t.push(n), n;
231
- }));
232
- }
233
- function de(e) {
234
- return typeof e == "object" && !!e && !Array.isArray(e);
235
- }
236
- function g(e, t) {
237
- if (e === t) return !0;
238
- if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => g(e, t[n]));
239
- if (de(e)) {
240
- if (!de(t)) return !1;
241
- let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
242
- for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !g(e[r], t[r])) return !1;
243
- return !0;
244
- }
245
- return !1;
246
- }
247
- var _ = class extends Error {
248
- code;
249
- opIndex;
250
- blockId;
251
- constructor(e, t, n, r) {
252
- super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
253
- }
254
- };
255
- function fe(e) {
256
- return e === "1" ? 1 : e === "3" ? 3 : 2;
257
- }
258
- function pe(e, t, n = {}) {
259
- let r = h(e);
260
- return v(r, t, n), r;
261
- }
262
- function v(e, t, n = {}) {
263
- let r = {
264
- locks: n.locks ?? [],
265
- session: n.session ?? null
266
- };
267
- t.forEach((t, n) => Se(e, t, n, r));
268
- }
269
- var me = /* @__PURE__ */ new Set([
270
- "id",
271
- "type",
272
- "children"
273
- ]), he = /* @__PURE__ */ new Set();
274
- function y(e, t, n, r) {
275
- throw new _(e, t, n, r);
276
- }
277
- function b(e) {
278
- return typeof e == "object" && !!e && !Array.isArray(e);
279
- }
280
- function x(e) {
281
- return e.type === "section";
282
- }
283
- function ge(e) {
284
- return Array.isArray(e.blocks) ? e.blocks : [];
285
- }
286
- function _e(e) {
287
- let t = e.children;
288
- return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
289
- }
290
- function S(e, t) {
291
- let n = ge(e);
292
- for (let e = 0; e < n.length; e++) {
293
- let r = n[e];
294
- if (!b(r)) continue;
295
- if (r.id === t) return {
296
- block: r,
297
- list: n,
298
- index: e,
299
- parent: null
300
- };
301
- if (!x(r) || typeof r.id != "string") continue;
302
- let i = r.children;
303
- if (Array.isArray(i)) for (let e = 0; e < i.length; e++) {
304
- let n = i[e];
305
- if (Array.isArray(n)) for (let i = 0; i < n.length; i++) {
306
- let a = n[i];
307
- if (b(a) && a.id === t) return {
308
- block: a,
309
- list: n,
310
- index: i,
311
- parent: {
312
- sectionId: r.id,
313
- column: e
314
- }
315
- };
316
- }
317
- }
318
- }
319
- return null;
320
- }
321
- function C(e) {
322
- let t = typeof e.id == "string" ? [e.id] : [];
323
- if (x(e)) for (let n of _e(e)) t.push(...ve(n));
324
- return t;
325
- }
326
- function ve(e) {
327
- return e.flatMap((e) => b(e) ? C(e) : []);
328
- }
329
- function w(e, t) {
330
- return typeof e.blockId != "string" || e.blockId === "" ? y("invalid_operation", t, "blockId must be a block id.") : e.blockId;
331
- }
332
- function ye(e, t) {
333
- let n = e.parent;
334
- return n === null ? null : b(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
335
- sectionId: n.sectionId,
336
- column: n.column
337
- } : y("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
338
- }
339
- function be(e, t) {
340
- let n = e.after;
341
- return n === null ? null : typeof n == "string" && n !== "" ? n : y("invalid_operation", t, "after must be null or a block id.");
342
- }
343
- function T(e, t) {
344
- let n = e.expect;
345
- return n == null ? null : b(n) ? n : y("invalid_operation", t, "expect must be an object.");
346
- }
347
- function E(e, t, n) {
348
- let r = e.set ?? null, i = e.unset ?? [];
349
- (r === null || b(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || y("invalid_operation", t, "set must be an object and unset a list of keys.");
350
- let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
351
- o.length === 0 && i.length === 0 && y("invalid_operation", t, "Set or unset at least one key.");
352
- for (let e of [...o, ...i]) n.has(e) && y("invalid_operation", t, `"${e}" can't be set or unset.`);
353
- let s = i.find((e) => o.includes(e));
354
- return s !== void 0 && y("invalid_operation", t, `"${s}" is both set and unset.`), {
355
- set: Object.fromEntries(o.map((e) => [e, a[e]])),
356
- unset: i
357
- };
358
- }
359
- function D(e, t, n) {
360
- if (b(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || y("invalid_operation", t, "A block needs a non-empty string id and a string type."), !x(e)) return;
361
- n && y("invalid_operation", t, "Sections can only be placed at the top level.");
362
- let r = e.children;
363
- Array.isArray(r) && r.every((e) => Array.isArray(e)) || y("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
364
- for (let e of r) for (let n of e) D(n, t, !0);
365
- }
366
- function O(e, t) {
367
- return e.session === null || t.sessionId !== e.session;
368
- }
369
- function k(e, t, n) {
370
- let r = e.locks.find((n) => t.includes(n.blockId) && O(e, n));
371
- r && y("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
372
- }
373
- function A(e, t, n, r) {
374
- for (let [i, a] of Object.entries(t)) a !== void 0 && (g(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || y("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
375
- }
376
- function j(e, t, n) {
377
- if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
378
- let r = S(e, t.sectionId);
379
- if (!r) return y("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
380
- if (!x(r.block)) return y("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
381
- let i = r.block.children;
382
- return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? y("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
383
- }
384
- function M(e, t, n) {
385
- if (t === null) return 0;
386
- let r = e.findIndex((e) => b(e) && e.id === t);
387
- return r === -1 ? y("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
388
- }
389
- function xe(e, t, n, r) {
390
- let i = fe(t), a = Array.isArray(e.children) ? e.children : [];
391
- for (let e = i; e < a.length; e++) {
392
- let t = a[e];
393
- Array.isArray(t) && t.length > 0 && y("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
394
- }
395
- let o = a.slice(0, i);
396
- for (; o.length < i;) o.push([]);
397
- e.children = o;
398
- }
399
- function N(e, t, n) {
400
- for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
401
- value: h(r),
402
- writable: !0,
403
- enumerable: !0,
404
- configurable: !0
405
- }) : e[n] = h(r);
406
- for (let t of n) delete e[t];
407
- }
408
- function Se(e, t, n, r) {
409
- let i = t;
410
- switch (b(i) && typeof i.op == "string" || y("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
411
- case "addBlock": return Ce(e, i, n);
412
- case "moveBlock": return we(e, i, n, r);
413
- case "deleteBlock": return Te(e, i, n, r);
414
- case "updateBlock": return Ee(e, i, n, r);
415
- case "updateSettings": return De(e, i, n);
416
- case "setContent": return Oe(e, i, n, r);
417
- default: y("invalid_operation", n, `Unknown operation "${i.op}".`);
418
- }
419
- }
420
- function Ce(e, t, n) {
421
- let r = ye(t, n), i = be(t, n), a = t.block;
422
- D(a, n, r !== null);
423
- let o = new Set(ve(ge(e))), s = /* @__PURE__ */ new Set();
424
- for (let e of C(a)) (o.has(e) || s.has(e)) && y("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
425
- let c = j(e, r, n);
426
- c.splice(M(c, i, n), 0, h(a));
427
- }
428
- function we(e, t, n, r) {
429
- let i = w(t, n), a = ye(t, n), o = be(t, n), s = T(t, n), c = S(e, i);
430
- if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
431
- if (k(r, C(c.block), n), s) {
432
- let e = c.index > 0 ? c.list[c.index - 1] : null, t = b(e) ? e.id ?? null : null;
433
- g(c.parent, s.parent ?? null) && g(t, s.after ?? null) || y("precondition_failed", n, `Block "${i}" has moved since.`, i);
434
- }
435
- x(c.block) && a !== null && y("invalid_operation", n, "Sections can only be placed at the top level."), o === i && y("invalid_operation", n, "A block can't be placed after itself.");
436
- let l = j(e, a, n);
437
- c.list.splice(c.index, 1), l.splice(M(l, o, n), 0, c.block);
438
- }
439
- function Te(e, t, n, r) {
440
- let i = w(t, n), a = T(t, n), o = S(e, i);
441
- if (!o) return y("block_missing", n, `No block with id "${i}".`, i);
442
- k(r, C(o.block), n), a && !g(o.block, a.block ?? null) && y("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
443
- }
444
- function Ee(e, t, n, r) {
445
- let i = w(t, n), { set: a, unset: o } = E(t, n, me), s = T(t, n), c = S(e, i);
446
- if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
447
- let l = c.block, u = x(l);
448
- u && o.includes("columns") && y("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") && xe(l, a.columns, n, i), N(l, a, o);
449
- }
450
- function De(e, t, n) {
451
- let { set: r, unset: i } = E(t, n, he), a = T(t, n);
452
- b(e.settings) || (e.settings = {});
453
- let o = e.settings;
454
- a && A(o, a, n), N(o, r, i);
455
- }
456
- function Oe(e, t, n, r) {
457
- let i = t.content;
458
- if (!b(i) || !Array.isArray(i.blocks) || !b(i.settings)) return y("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
459
- let a = r.locks.find((e) => O(r, e));
460
- a && y("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = h(i.blocks), e.settings = h(i.settings);
461
- }
462
- function ke(e) {
463
- let t = e.children;
464
- return e.type === "section" && Array.isArray(t) ? t : [];
465
- }
466
- function P(e, t, n = null) {
467
- for (let r = 0; r < e.length; r++) {
468
- let i = e[r];
469
- if (i.id === t) return {
470
- block: i,
471
- parent: n,
472
- after: r > 0 ? e[r - 1].id : null
473
- };
474
- let a = ke(i);
475
- for (let e = 0; e < a.length; e++) {
476
- if (!Array.isArray(a[e])) continue;
477
- let n = P(a[e], t, {
478
- sectionId: i.id,
479
- column: e
480
- });
481
- if (n) return n;
482
- }
483
- }
484
- return null;
485
- }
486
- function F(e, t, n) {
487
- let r = P(e.blocks, t);
488
- if (!r) throw new _("block_missing", n, `No block with id "${t}".`, t);
489
- return r;
490
- }
491
- function Ae(e, t, n) {
492
- let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
493
- for (let n of o) {
494
- let o = e[n];
495
- o === void 0 ? i.push(n) : r[n] = h(o);
496
- let s = t && n in t ? t[n] : void 0;
497
- a[n] = s === void 0 ? null : h(s);
498
- }
499
- return {
500
- set: r,
501
- unset: i,
502
- expect: a
503
- };
504
- }
505
- function je(e, t, n) {
506
- switch (t.op) {
507
- case "addBlock": return {
508
- op: "deleteBlock",
509
- blockId: t.block.id,
510
- expect: { block: h(t.block) }
511
- };
512
- case "deleteBlock": {
513
- let r = F(e, t.blockId, n);
514
- return {
515
- op: "addBlock",
516
- block: h(r.block),
517
- parent: r.parent,
518
- after: r.after
519
- };
520
- }
521
- case "moveBlock": {
522
- let r = F(e, t.blockId, n);
523
- return {
524
- op: "moveBlock",
525
- blockId: t.blockId,
526
- parent: r.parent,
527
- after: r.after,
528
- expect: {
529
- parent: t.parent,
530
- after: t.after
531
- }
532
- };
533
- }
534
- case "updateBlock": {
535
- let r = F(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Ae(r, t.set, t.unset);
536
- return {
537
- op: "updateBlock",
538
- blockId: t.blockId,
539
- ...Object.keys(i).length > 0 ? { set: i } : {},
540
- ...a.length > 0 ? { unset: a } : {},
541
- expect: o
542
- };
543
- }
544
- case "updateSettings": {
545
- let { set: n, unset: r, expect: i } = Ae(e.settings, t.set, t.unset);
546
- return {
547
- op: "updateSettings",
548
- ...Object.keys(n).length > 0 ? { set: n } : {},
549
- ...r.length > 0 ? { unset: r } : {},
550
- expect: i
551
- };
552
- }
553
- case "setContent": return {
554
- op: "setContent",
555
- content: {
556
- blocks: h(e.blocks),
557
- settings: h(e.settings)
558
- }
559
- };
560
- }
561
- }
562
- function Me(e, t) {
563
- let n = h(e), r = [];
564
- return t.forEach((e, t) => {
565
- r.push(je(n, e, t));
566
- try {
567
- v(n, [e]);
568
- } catch (e) {
569
- throw e instanceof _ ? new _(e.code, t, e.message, e.blockId) : e;
570
- }
571
- }), r.reverse();
572
- }
573
- var Ne = class extends Error {
574
- statusCode;
575
- code;
576
- constructor(e, t, n, r) {
577
- super(e), this.statusCode = t, this.code = n, this.name = "SdkError", r !== void 0 && Object.keys(r).length > 0 && (this.details = r);
578
- }
579
- get isNotFound() {
580
- return this.statusCode === 404;
581
- }
582
- get isUnauthorized() {
583
- return this.statusCode === 401;
584
- }
585
- get isServerError() {
586
- return this.statusCode !== void 0 && this.statusCode >= 500;
587
- }
588
- };
589
- function Pe(e) {
590
- return e === "invalid_operation" ? 422 : e === "content_too_large" ? 413 : 409;
591
- }
592
- var Fe = class extends Ne {
593
- opIndex;
594
- holder;
595
- holders;
596
- constructor(e, t) {
597
- super(e, t.status ?? Pe(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);
598
- }
599
- };
600
- function I(e) {
601
- return e.type === "section";
602
- }
603
- function Ie(e) {
604
- return e.type === "custom";
605
- }
606
- function L(e) {
607
- return e.type === "slot";
608
- }
609
- function R(e) {
610
- return e.type === "wrapper";
611
- }
612
- var Le = {
613
- content: "<p>Enter your title</p>",
614
- level: 2,
615
- textAlign: "left"
616
- }, Re = { content: "<p>Enter your text here</p>" }, ze = {
617
- src: "",
618
- alt: "",
619
- width: "full",
620
- align: "center"
621
- }, Be = {
622
- text: "Click Here",
623
- url: "",
624
- backgroundColor: "#333333",
625
- textColor: "#ffffff",
626
- borderRadius: 6,
627
- fontSize: 15,
628
- buttonPadding: {
629
- top: 12,
630
- right: 24,
631
- bottom: 12,
632
- left: 24
633
- },
634
- align: "center"
635
- }, Ve = {
636
- lineStyle: "solid",
637
- color: "#e0e0e0",
638
- thickness: 1,
639
- width: "full"
640
- }, He = { columns: "1" }, Ue = {
641
- url: "",
642
- thumbnailUrl: "",
643
- alt: "Video",
644
- width: "full",
645
- align: "center"
646
- }, We = {
647
- iconStyle: "solid",
648
- iconSize: "medium",
649
- spacing: 10,
650
- align: "center"
651
- }, Ge = { height: 24 }, Ke = { content: "" }, qe = {
652
- fontSize: 15,
653
- textAlign: "center",
654
- separator: "|",
655
- separatorColor: "#e0e0e0",
656
- spacing: 10
657
- }, Je = {
658
- hasHeaderRow: !0,
659
- borderColor: "#e0e0e0",
660
- borderWidth: 1,
661
- cellPadding: 8,
662
- fontSize: 15,
663
- textAlign: "left"
664
- }, Ye = {
665
- targetDate: "",
666
- timezone: "UTC",
667
- showDays: !0,
668
- showHours: !0,
669
- showMinutes: !0,
670
- showSeconds: !0,
671
- separator: ":",
672
- digitFontSize: 32,
673
- digitColor: "#1a1a1a",
674
- labelColor: "#6b7280",
675
- labelFontSize: 12,
676
- backgroundColor: "#ffffff",
677
- labelDays: "Days",
678
- labelHours: "Hours",
679
- labelMinutes: "Minutes",
680
- labelSeconds: "Seconds",
681
- expiredMessage: "This offer has expired",
682
- expiredImageUrl: "",
683
- hideOnExpiry: !1
684
- }, Xe = {
685
- title: Le,
686
- paragraph: Re,
687
- image: ze,
688
- button: Be,
689
- divider: Ve,
690
- section: He,
691
- video: Ue,
692
- social: We,
693
- spacer: Ge,
694
- html: Ke,
695
- menu: qe,
696
- table: Je,
697
- countdown: Ye
698
- }, Ze = {
699
- width: 600,
700
- backgroundColor: "#ffffff",
701
- textColor: "#1a1a1a",
702
- linkUnderline: !0,
703
- fontFamily: "Arial",
704
- locale: "en"
705
- };
706
- function Qe(e) {
707
- return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
708
- }
709
- function z(e, t) {
710
- let n = { ...e };
711
- for (let r of Object.keys(t)) {
712
- let i = e[r], a = t[r];
713
- a !== void 0 && (n[r] = Qe(i) && Qe(a) ? z(i, a) : a);
714
- }
715
- return n;
716
- }
717
- function $e(e = "Arial", t) {
718
- return {
719
- blocks: [],
720
- settings: {
721
- ...Ze,
722
- fontFamily: e,
723
- ...t
724
- }
725
- };
726
- }
727
- var et = [
728
- "ar",
729
- "he",
730
- "iw",
731
- "fa",
732
- "ur",
733
- "yi",
734
- "dv",
735
- "ps",
736
- "sd",
737
- "ug",
738
- "ckb",
739
- "ks"
740
- ];
741
- function tt(e) {
742
- let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
743
- return !!t && et.includes(t);
744
- }
745
- function nt(e) {
746
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : tt(e.locale) ? "rtl" : "ltr";
747
- }
748
- function rt(e) {
749
- return new e.Liquid({
750
- strictVariables: !1,
751
- strictFilters: !1,
752
- outputEscape: "escape",
753
- templates: {}
754
- });
755
- }
756
- function B(e, t) {
757
- let n = h(e);
758
- return !t || Object.keys(t).length === 0 ? n : z(n, t);
759
- }
760
- function V(e) {
761
- return e === void 0 ? void 0 : h(e);
762
- }
763
- function H() {
764
- return crypto.randomUUID();
765
- }
766
- function it(e = 0) {
767
- return {
768
- top: e,
769
- right: e,
770
- bottom: e,
771
- left: e
772
- };
773
- }
774
- function U(e = 10) {
775
- return { padding: it(e) };
776
- }
777
- function at(e = {}) {
778
- return B({
779
- id: H(),
780
- type: "title",
781
- ...Le,
782
- styles: U()
783
- }, e);
784
- }
785
- function ot(e = {}) {
786
- return B({
787
- id: H(),
788
- type: "paragraph",
789
- ...Re,
790
- styles: U()
791
- }, e);
792
- }
793
- function st(e = {}) {
794
- return B({
795
- id: H(),
796
- type: "image",
797
- ...ze,
798
- styles: U()
799
- }, e);
800
- }
801
- function ct(e = {}) {
802
- return B({
803
- id: H(),
804
- type: "button",
805
- ...Be,
806
- styles: U()
807
- }, e);
808
- }
809
- function lt(e = {}) {
810
- return B({
811
- id: H(),
812
- type: "divider",
813
- ...Ve,
814
- styles: U(20)
815
- }, e);
816
- }
817
- function W(e = {}) {
818
- return B({
819
- id: H(),
820
- type: "section",
821
- ...He,
822
- children: [[]],
823
- styles: U(20)
824
- }, e);
825
- }
826
- function ut(e = {}) {
827
- return B({
828
- id: H(),
829
- type: "video",
830
- ...Ue,
831
- styles: U()
832
- }, e);
833
- }
834
- function dt(e = {}) {
835
- return B({
836
- id: H(),
837
- type: "social",
838
- icons: [],
839
- ...We,
840
- styles: U()
841
- }, e);
842
- }
843
- function ft(e = {}) {
844
- return B({
845
- id: H(),
846
- type: "spacer",
847
- ...Ge,
848
- styles: U(0)
849
- }, e);
850
- }
851
- function pt(e = {}) {
852
- return B({
853
- id: H(),
854
- type: "html",
855
- ...Ke,
856
- styles: U()
857
- }, e);
858
- }
859
- function mt(e = {}) {
860
- return B({
861
- id: H(),
862
- type: "menu",
863
- items: [],
864
- ...qe,
865
- styles: U()
866
- }, e);
867
- }
868
- function ht(e, t) {
869
- return Array.from({ length: t }, () => ({
870
- id: H(),
871
- cells: Array.from({ length: e }, () => ({
872
- id: H(),
873
- content: ""
874
- }))
875
- }));
876
- }
877
- function gt(e = {}) {
878
- return B({
879
- id: H(),
880
- type: "table",
881
- rows: ht(3, 3),
882
- ...Je,
883
- styles: U()
884
- }, e);
885
- }
886
- function _t(e = {}) {
887
- return B({
888
- id: H(),
889
- type: "countdown",
890
- ...Ye,
891
- styles: U()
892
- }, e);
893
- }
894
- function vt(e) {
895
- return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
896
- }
897
- function yt(e) {
898
- let t = {};
899
- for (let n of e.fields) t[n.key] = V(vt(n));
900
- let n = B(U(), V(e.defaultStyles));
901
- return {
902
- id: H(),
903
- type: "custom",
904
- customType: e.type,
905
- fieldValues: t,
906
- styles: n,
907
- ...e.dataSource ? { dataSourceFetched: !1 } : {}
908
- };
909
- }
910
- function bt() {
911
- return {
912
- id: H(),
913
- type: "slot",
914
- styles: U(0)
915
- };
916
- }
917
- function xt(e = {}) {
918
- return B({
919
- id: H(),
920
- type: "wrapper",
921
- children: [],
922
- styles: U(0)
923
- }, e);
924
- }
925
- function St(e, t) {
926
- switch (e) {
927
- case "section": return W(V(t?.section));
928
- case "title": return at(V(t?.title));
929
- case "paragraph": return ot(V(t?.paragraph));
930
- case "image": return st(V(t?.image));
931
- case "button": return ct(V(t?.button));
932
- case "divider": return lt(V(t?.divider));
933
- case "video": return ut(V(t?.video));
934
- case "social": return dt(V(t?.social));
935
- case "spacer": return ft(V(t?.spacer));
936
- case "html": return pt(V(t?.html));
937
- case "menu": return mt(V(t?.menu));
938
- case "table": return gt(V(t?.table));
939
- case "countdown": return _t(V(t?.countdown));
940
- case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
941
- case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
942
- default: throw Error(`Unknown block type: ${e}`);
943
- }
944
- }
945
- function G(e) {
946
- let t = JSON.parse(JSON.stringify(e));
947
- if (t.id = H(), t.type === "table") for (let e of t.rows) {
948
- e.id = H();
949
- for (let t of e.cells) t.id = H();
950
- }
951
- if (t.type === "menu") for (let e of t.items) e.id = H();
952
- if (t.type === "social") for (let e of t.icons) e.id = H();
953
- 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;
954
- }
955
- var Ct = "[Templatical] layout: must contain exactly one slot block", wt = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Tt = "[Templatical] layout: a wrapper cannot contain a wrapper", Et = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Dt = "[Templatical] slot is not a valid content block", Ot = "[Templatical] wrapper is not a valid content block";
956
- function K(e, t, n = null, r = !1) {
957
- for (let i of e) if (t(i, n, r), I(i)) for (let e of i.children) K(e, t, i, !0);
958
- else R(i) && K(i.children, t, i, r);
959
- }
960
- function kt(e) {
961
- let t = 0;
962
- if (K(e.blocks, (e, n, r) => {
963
- if (L(e) && (t += 1, r)) throw Error(wt);
964
- if (R(e)) {
965
- if (r) throw Error(wt);
966
- if (e.children.some(R)) throw Error(Tt);
967
- }
968
- }), t !== 1) throw Error(Ct);
969
- }
970
- function At(e) {
971
- K(e.blocks, (e) => {
972
- if (L(e)) throw Error(Dt);
973
- });
974
- }
975
- function jt(e) {
976
- K(e.blocks, (e) => {
977
- if (R(e)) throw Error(Ot);
978
- });
979
- }
980
- function Mt(e) {
981
- let t = !1;
982
- return K(e.blocks, (e, n) => {
983
- L(e) && n !== null && R(n) && (t = !0);
984
- }), t;
985
- }
986
- function Nt(e) {
987
- if (L(e)) return e;
988
- if (R(e)) {
989
- let t = G({
990
- ...e,
991
- children: []
992
- });
993
- return t.children = e.children.map(Nt), t;
994
- }
995
- return G(e);
996
- }
997
- function Pt(e) {
998
- for (let t = 0; t < e.length; t++) {
999
- let n = e[t];
1000
- if (L(n)) return {
1001
- parent: e,
1002
- index: t
1003
- };
1004
- if (R(n)) {
1005
- let e = Pt(n.children);
1006
- if (e) return e;
1007
- }
1008
- }
1009
- return null;
1010
- }
1011
- function Ft(e) {
1012
- for (let t of e) if (I(t)) {
1013
- if (t.wrapper) return !0;
1014
- for (let e of t.children) if (Ft(e)) return !0;
1015
- }
1016
- return !1;
1017
- }
1018
- function It(e, t) {
1019
- if (kt(e), At(t), jt(t), Mt(e) && Ft(t.blocks)) throw Error(Et);
1020
- let n = e.blocks.map(Nt), r = Pt(n);
1021
- if (!r) throw Error(Ct);
1022
- return r.parent.splice(r.index, 1, ...h(t.blocks)), {
1023
- blocks: n,
1024
- settings: {
1025
- ...h(t.settings),
1026
- backgroundColor: e.settings.backgroundColor
1027
- }
1028
- };
1029
- }
1030
- var Lt = Object.freeze([
1031
- "http",
1032
- "https",
1033
- "mailto",
1034
- "tel",
1035
- "ftp",
1036
- "ftps",
1037
- "sms",
1038
- "xmpp",
1039
- "cid"
1040
- ]);
1041
- Object.freeze([
1042
- "javascript",
1043
- "data",
1044
- "vbscript"
1045
- ]);
1046
- function Rt(e) {
1047
- return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1048
- }
1049
- function zt(e) {
1050
- let t = /^([a-z][a-z0-9+.-]*):/i.exec(Rt(e));
1051
- return t ? t[1].toLowerCase() : null;
1052
- }
1053
- var Bt = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i;
1054
- function Vt(e, t) {
1055
- let n = Rt(e), r = zt(n);
1056
- return r === null || Lt.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && Bt.test(n);
1057
- }
1058
- var Ht = /* @__PURE__ */ new Set(["\"", "'"]);
1059
- function Ut(e, t) {
1060
- let n = null;
1061
- for (let r = t; r < e.length; r++) {
1062
- let t = e[r];
1063
- if (n !== null) t === n && (n = null);
1064
- else if (Ht.has(t)) n = t;
1065
- else if (t === ">") return r;
1066
- }
1067
- return -1;
1068
- }
1069
- function Wt(e) {
1070
- return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
1071
- }
1072
- function q(e) {
1073
- return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1074
- }
1075
- var Gt = {
1076
- amp: "&",
1077
- lt: "<",
1078
- gt: ">",
1079
- quot: "\"",
1080
- apos: "'",
1081
- nbsp: "\xA0"
1082
- };
1083
- function Kt(e) {
1084
- return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
1085
- if (t[0] === "#") {
1086
- let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
1087
- return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
1088
- }
1089
- return Gt[t.toLowerCase()] ?? e;
1090
- }) : e;
1091
- }
1092
- function qt(e, t) {
1093
- let n = t.toLowerCase(), r = 0;
1094
- for (; r < e.length;) {
1095
- for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
1096
- if (r >= e.length) break;
1097
- let t = r;
1098
- for (; r < e.length && Wt(e[r]);) r++;
1099
- let i = e.substring(t, r).toLowerCase();
1100
- if (i === "") {
1101
- r++;
1102
- continue;
1103
- }
1104
- for (; r < e.length && q(e[r]);) r++;
1105
- if (e[r] !== "=") continue;
1106
- for (r++; r < e.length && q(e[r]);) r++;
1107
- let a = e[r];
1108
- if (Ht.has(a)) {
1109
- let t = r + 1, o = e.indexOf(a, t);
1110
- if (o === -1) return null;
1111
- if (i === n) return Kt(e.substring(t, o));
1112
- r = o + 1;
1113
- continue;
1114
- }
1115
- let o = r;
1116
- for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
1117
- if (i === n) return Kt(e.substring(o, r));
1118
- }
1119
- return null;
1120
- }
1121
- var Jt = /<\/?p\b[^<>]*>/gi, Yt = /<p\b([^<>]*)>\s*<\/p>/gi;
1122
- function Xt(e) {
1123
- return e.replace(Jt, "").trim() === "";
1124
- }
1125
- function Zt(e) {
1126
- return Xt(e) ? e : e.replace(Yt, "<p$1>&nbsp;</p>");
1127
- }
1128
- var Qt = {
1129
- arial: "Arial, sans-serif",
1130
- helvetica: "Helvetica, sans-serif",
1131
- georgia: "Georgia, serif",
1132
- "times new roman": "'Times New Roman', serif",
1133
- verdana: "Verdana, sans-serif",
1134
- "trebuchet ms": "'Trebuchet MS', sans-serif",
1135
- "courier new": "'Courier New', monospace",
1136
- tahoma: "Tahoma, sans-serif"
1137
- }, $t = /* @__PURE__ */ new Set([
1138
- "inherit",
1139
- "initial",
1140
- "unset",
1141
- "revert",
1142
- "revert-layer"
1143
- ]), en = /* @__PURE__ */ new Set([
1144
- "serif",
1145
- "sans-serif",
1146
- "monospace",
1147
- "cursive",
1148
- "fantasy",
1149
- "system-ui",
1150
- "ui-serif",
1151
- "ui-sans-serif",
1152
- "ui-monospace",
1153
- "ui-rounded",
1154
- "emoji",
1155
- "math",
1156
- "fangsong"
1157
- ]);
1158
- function tn(e) {
1159
- return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1160
- }
1161
- function J(e) {
1162
- if (typeof e != "string") return [];
1163
- let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
1164
- for (;;) {
1165
- for (; r < t.length && tn(t[r]);) r++;
1166
- if (r >= t.length) return [];
1167
- let e = t[r];
1168
- if (e === "\"" || e === "'") {
1169
- let i = "", a = r + 1, o = !1;
1170
- for (; a < t.length;) {
1171
- let n = t[a];
1172
- if (n === "\\" && a + 1 < t.length) i += t[a + 1], a += 2;
1173
- else {
1174
- if (n === e) {
1175
- o = !0, a++;
1176
- break;
1177
- }
1178
- i += n, a++;
1179
- }
1180
- }
1181
- if (!o) return [];
1182
- for (; a < t.length && tn(t[a]);) a++;
1183
- if (a < t.length && t[a] !== ",") return [];
1184
- n.push({
1185
- name: i,
1186
- quoted: !0
1187
- }), r = a;
1188
- } else {
1189
- let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
1190
- if (a === "" || a.includes("\"") || a.includes("'") || $t.has(a.toLowerCase())) return [];
1191
- n.push({
1192
- name: a,
1193
- quoted: !1
1194
- }), r = i;
1195
- }
1196
- if (r >= t.length) return n;
1197
- r++;
1198
- }
1199
- }
1200
- function nn(e) {
1201
- return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
1202
- }
1203
- function rn(e) {
1204
- return !e.quoted && en.has(e.name.toLowerCase());
1205
- }
1206
- function an(e) {
1207
- return J(e)[0]?.name ?? "";
1208
- }
1209
- function on(e, t) {
1210
- let n = (e) => `${nn(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1211
- if (i) return n(i);
1212
- let a = J(e);
1213
- if (a.length !== 1) return e;
1214
- let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
1215
- return c ? n(c) : Qt[s] || (rn(o) ? e : `${nn(o.name)}, ${t.defaultFallback}`);
1216
- }
1217
- var Y = {
1218
- liquid: {
1219
- value: /\{\{.+?\}\}/g,
1220
- logic: /\{%-?\s*(\w+).*?-?%\}/g,
1221
- opener: "{{",
1222
- closer: "}}"
1223
- },
1224
- handlebars: {
1225
- value: /\{\{\{?.+?\}?\}\}/g,
1226
- logic: /\{\{[#/](\w+).*?\}\}/g,
1227
- opener: "{{",
1228
- closer: "}}"
1229
- },
1230
- mailchimp: {
1231
- value: /\*\|\w+\|\*/g,
1232
- logic: /\*\|(\w+)[:|].*?\|\*/g,
1233
- opener: "*|",
1234
- closer: "|*"
1235
- },
1236
- ampscript: {
1237
- value: /%%=.+?=%%/g,
1238
- logic: /%%\[\s*(\w+).*?\]%%/g,
1239
- opener: "%%=",
1240
- closer: "=%%"
1241
- }
1242
- };
1243
- function sn(e) {
1244
- return typeof e == "string" && e.trim() !== "" ? e : null;
1245
- }
1246
- function cn(e) {
1247
- return Object.values(Y).find((t) => t.value.source === e.value.source) ?? null;
1248
- }
1249
- function ln(e) {
1250
- return sn(e.opener) ?? cn(e)?.opener ?? null;
1251
- }
1252
- function un(e) {
1253
- return sn(e.closer) ?? cn(e)?.closer ?? null;
1254
- }
1255
- function dn(e) {
1256
- return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
1257
- }
1258
- function X(e) {
1259
- let t = e.source, n = e.flags.replace("g", "");
1260
- return RegExp(`^${t}$`, n);
1261
- }
1262
- function fn(e, t) {
1263
- let n = e?.trim() || "";
1264
- return !X(t.logic).test(n) && X(t.value).test(n);
1265
- }
1266
- function Z(e, t) {
1267
- let n = t.find((t) => t.value === e);
1268
- return n ? n.label : e;
1269
- }
1270
- function pn(e, t) {
1271
- return $(e, "data-merge-tag", (e) => Z(e, t));
1272
- }
1273
- function Q(e, t) {
1274
- return t.find((t) => t.value === e)?.sample;
1275
- }
1276
- function mn(e, t) {
1277
- return $(e, "data-merge-tag", (e) => _n(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1278
- }
1279
- function hn(e) {
1280
- return e.some((e) => e.sample !== void 0);
1281
- }
1282
- function gn(e, t) {
1283
- if (!e) return e;
1284
- let n = e;
1285
- for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
1286
- return n;
1287
- }
1288
- function _n(e) {
1289
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1290
- }
1291
- function vn(e, t) {
1292
- if (!e) return !1;
1293
- let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
1294
- return n.test(e) || r.test(e);
1295
- }
1296
- function yn(e, t) {
1297
- return X(t.logic).test(e?.trim() || "");
1298
- }
1299
- function bn(e, t) {
1300
- let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
1301
- return r && r[1] ? r[1].toUpperCase() : e;
1302
- }
1303
- function xn(e, t) {
1304
- return $(e, "data-logic-merge-tag", (e) => bn(e, t));
1305
- }
1306
- function $(e, t, n, r) {
1307
- let i = "", a = 0;
1308
- for (; a < e.length;) {
1309
- let o = e.indexOf("<span", a);
1310
- if (o === -1) {
1311
- i += e.substring(a);
1312
- break;
1313
- }
1314
- let s = e[o + 5];
1315
- if (s !== ">" && s !== " " && s !== " " && s !== "\n" && s !== "\r" && s !== "/") {
1316
- i += e.substring(a, o + 5), a = o + 5;
1317
- continue;
1318
- }
1319
- let c = Ut(e, o + 5);
1320
- if (c === -1) {
1321
- i += e.substring(a);
1322
- break;
1323
- }
1324
- let l = e.indexOf("</span>", c + 1);
1325
- if (l === -1) {
1326
- i += e.substring(a);
1327
- break;
1328
- }
1329
- let u = qt(e.substring(o + 5, c), t);
1330
- if (u === null) {
1331
- i += e.substring(a, o + 5), a = o + 5;
1332
- continue;
1333
- }
1334
- let d = n(u);
1335
- r?.unwrap?.(u) ? (i += e.substring(a, o), i += d) : (i += e.substring(a, c + 1), i += d, i += "</span>"), a = l + 7;
1336
- }
1337
- return i;
1338
- }
1339
- function Sn(e) {
1340
- if (typeof e != "object" || !e) return !1;
1341
- let t = e;
1342
- return Array.isArray(t.blocks);
1343
- }
1344
- export { Q as $, lt as A, o as At, at as B, te as C, ce as Ct, yt as D, gn as Dt, _t as E, mn as Et, W as F, ne as G, xt as H, bt as I, an as J, zt as K, dt as L, st as M, kt as Mt, mt as N, rt as O, n as Ot, ot as P, Z as Q, ft as R, vn as S, h as St, ct as T, le as Tt, g as U, ut as V, z as W, fe as X, H as Y, bn as Z, pe as _, on as _t, Fe as a, Ie as at, jt as b, pn as bt, s as c, Sn as ct, Lt as d, L as dt, un as et, p as f, R as ft, It as g, nt as gt, c as h, f as ht, e as i, Me as it, pt as j, t as jt, $e as k, r as kt, _ as l, Vt as lt, Ne as m, J as mt, ee as n, hn as nt, Xe as o, yn as ot, Y as p, Mt as pt, Zt as q, i as r, oe as rt, Ze as s, fn as st, d as t, ln as tt, l as u, I as ut, v, ie as vt, St as w, ue as wt, G as x, dn as xt, At as y, xn as yt, gt as z };