@templatical/editor 0.54.2 → 0.56.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 (281) hide show
  1. package/dist/{AiAltTextPopover-BBKVJ6HA.js → AiAltTextPopover-DdsvhE78.js} +4 -4
  2. package/dist/{AiAltTextReview-BuVbeQh-.js → AiAltTextReview-P6to1_0t.js} +3 -3
  3. package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-BSlmzMRC.js} +10 -10
  4. package/dist/{AiPanels-CR6zphjP.js → AiPanels-DAsnX-a3.js} +1 -1
  5. package/dist/{AiRewriteMenu-ZpYJfm-O.js → AiRewriteMenu-DIISOR6U.js} +11 -11
  6. package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-Bmtc50BQ.js} +4 -4
  7. package/dist/BlockPreviewCanvas-BYIzNn-9.js +154 -0
  8. package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
  9. package/dist/{CloudPanels-DQRWMc59.js → CloudPanels-w34W8_BP.js} +4 -4
  10. package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-HTbCebjV.js} +2 -2
  11. package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
  12. package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-C5qG17Ki.js} +1 -1
  13. package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-C7CWcUYZ.js} +12 -12
  14. package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-BTXcCvjZ.js} +2 -2
  15. package/dist/{CountdownToolbar-DTpMEDyh.js → CountdownToolbar-CP-pkntQ.js} +5 -5
  16. package/dist/{IssuesPanel-BZn7-p9e.js → IssuesPanel-CiiNBzH0.js} +12 -12
  17. package/dist/{LanguageMenu-OOmQWVzO.js → LanguageMenu-B981Av-6.js} +15 -15
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
  19. package/dist/{LogicTagInsertButton-XESwnJia.js → LogicTagInsertButton-DEOPc4RC.js} +284 -279
  20. package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-DJsPLTwP.js} +1 -1
  21. package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-D2WD2aE2.js} +1 -1
  22. package/dist/{MergeTagInput-CAsBRoSm.js → MergeTagInput-C9icdxw7.js} +1 -1
  23. package/dist/{MergeTagModeToggle-bOf27Hg1.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-DH_6JFui.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
  25. package/dist/{ParagraphEditor-XGUkV5Uw.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
  26. package/dist/{RestoreVersionDialog-C72kWccI.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
  27. package/dist/{RichTextEditorContent-BZN8KRvR.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
  28. package/dist/{SaveBlockDialog-CKOnTMTU.js → SaveBlockDialog-pebNJBTc.js} +9 -9
  29. package/dist/{SavedBlocksBrowserModal-BrlNxqDH.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
  30. package/dist/{SavedBlocksPanels--lPR6gdh.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-4ON4_KKl.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
  32. package/dist/{TemplateSettings-BE0jZmRJ.js → TemplateSettings-ORq4PbCN.js} +12 -12
  33. package/dist/{TestEmailModal-BKmNGrZN.js → TestEmailModal-DRjCpcPl.js} +11 -11
  34. package/dist/{TestEmailPanel-DT1wllX3.js → TestEmailPanel-H0v8El__.js} +1 -1
  35. package/dist/{TitleEditor-HjVZuUTB.js → TitleEditor-CEGbJXeU.js} +11 -11
  36. package/dist/{Toolbar-BppchV2k.js → Toolbar-XT-uGA9J.js} +1134 -852
  37. package/dist/{TplModal-BFWOoK8l.js → TplModal-7NQq5-VW.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
  39. package/dist/{VersionHistoryPanels-D4yNVLvq.js → VersionHistoryPanels-CuKuOSJG.js} +1 -1
  40. package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-BVFBkveR.js} +2 -2
  41. package/dist/WrapperBlock-Bdw-072t.js +56 -0
  42. package/dist/{blockTypeIcons-D91v9k0x.js → blockTypeIcons-CGplGmmr.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DOuIxWRv.js → ca-BJn8lcJx.js} +18 -1
  45. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js → AiAltTextPopover-x999Gimz.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js → AiAltTextReview-DjnFz1wO.js} +4 -4
  48. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js.map → AiAltTextReview-DjnFz1wO.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-DKDu9cs7.js} +4 -4
  50. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-DKDu9cs7.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-jMLVaiKx.js} +2 -2
  52. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-jMLVaiKx.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.js → AiRewriteMenu-s79rmHFy.js} +10 -10
  54. package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.js.map → AiRewriteMenu-s79rmHFy.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-Bnmq_M4G.js} +4 -4
  56. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-Bnmq_M4G.js.map} +1 -1
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-B6ndvof2.js → BlockPreviewCanvas-B3HkuENF.js} +46 -32
  58. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +1 -0
  59. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
  60. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
  61. package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.js → CloudPanels-DQnlH_YJ.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.js.map → CloudPanels-DQnlH_YJ.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-CHqUGhOZ.js} +3 -3
  64. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-CHqUGhOZ.js.map} +1 -1
  65. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
  66. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
  67. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-EtdTzTmq.js} +2 -2
  68. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-EtdTzTmq.js.map} +1 -1
  69. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-Qmj049QX.js} +4 -4
  70. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-Qmj049QX.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-DyGsh92b.js} +3 -3
  72. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-DyGsh92b.js.map} +1 -1
  73. package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js → CountdownToolbar-Ddj2erNm.js} +6 -6
  74. package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js → IssuesPanel-DnSnEh1X.js} +8 -8
  76. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js → LanguageMenu-C2I_yTL5.js} +110 -110
  78. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js.map → LanguageMenu-C2I_yTL5.js.map} +1 -1
  79. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-Dr9LRCAg.js} +4 -4
  80. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-Dr9LRCAg.js.map} +1 -1
  81. package/dist/cdn/chunks/{LogicTagInsertButton-PDKuo2J3.js → LogicTagInsertButton-BdzE9-l7.js} +260 -255
  82. package/dist/cdn/chunks/LogicTagInsertButton-BdzE9-l7.js.map +1 -0
  83. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-CMJFXu_o.js} +2 -2
  84. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-CMJFXu_o.js.map} +1 -1
  85. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-C790ZXuY.js} +2 -2
  86. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-C790ZXuY.js.map} +1 -1
  87. package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js → MergeTagInput-CmrX8Md6.js} +2 -2
  88. package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js → MergeTagTextarea-KOnd2teB.js} +8 -8
  92. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js → ParagraphEditor-I9lbKaPk.js} +19 -19
  94. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
  96. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js → RichTextEditorContent-_O22z0pn.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js → SaveBlockDialog-CClRLXgF.js} +8 -8
  100. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js → TemplateSettings-JMUo0LIV.js} +10 -10
  108. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js → TestEmailModal-D52VtwBZ.js} +12 -12
  110. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js → TestEmailPanel-D9ezVDHd.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js → TitleEditor-D04vvbUc.js} +9 -9
  114. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-Cv6Rv1S-.js → Toolbar-C_Hfsher.js} +1196 -914
  116. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-DGpGdwgf.js → TplModal-d6fEZGJ5.js} +5 -5
  118. package/dist/cdn/chunks/{TplModal-DGpGdwgf.js.map → TplModal-d6fEZGJ5.js.map} +1 -1
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-C8ucm43v.js} +7 -7
  120. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-C8ucm43v.js.map} +1 -1
  121. package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.js.map → VersionHistoryPanels-BAdzmhvH.js.map} +1 -1
  123. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-BWuovbFc.js} +3 -3
  124. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-BWuovbFc.js.map} +1 -1
  125. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js +58 -0
  126. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js.map +1 -0
  127. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
  128. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
  129. package/dist/cdn/chunks/{ca-DOuIxWRv.js → ca-BJn8lcJx.js} +19 -2
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/{composables-BxikPuC1.js → composables-CsfQlmcf.js} +676 -620
  132. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js → createCloudRuntime-PpIFCDfj.js} +4 -4
  134. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
  135. package/dist/{de-DaOUfYBX.js → cdn/chunks/de-BLFp3nWx.js} +20 -1
  136. package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
  137. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-B8UE9V8B.js} +90 -90
  138. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-B8UE9V8B.js.map} +1 -1
  139. package/dist/cdn/chunks/en-CVxNoHww.js +1 -0
  140. package/dist/cdn/chunks/{en-C0pHHMiR.js → en-DGGQJGbm.js} +19 -2
  141. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  142. package/dist/{es-CxyEKr6n.js → cdn/chunks/es-DTY9qgLv.js} +20 -1
  143. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  144. package/dist/cdn/chunks/{extensions-DuDWpKo7.js → extensions-BM6ZSnsQ.js} +82 -76
  145. package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
  146. package/dist/{fr-CYbamiI6.js → cdn/chunks/fr-L4FqO9Gp.js} +20 -1
  147. package/dist/cdn/chunks/fr-L4FqO9Gp.js.map +1 -0
  148. package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
  149. package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
  150. package/dist/cdn/chunks/{ja-DfaIAoGI.js → ja-6uOXkh4v.js} +19 -2
  151. package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
  152. package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
  153. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
  154. package/dist/cdn/chunks/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +19 -2
  155. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  156. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js +300 -0
  157. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js → preRenderCustomBlocks-Dn6dFUwx.js} +2 -2
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  160. package/dist/cdn/chunks/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +19 -2
  161. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  162. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js → sanitizeHtml-DJI7vvET.js} +3 -3
  163. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js → socialIcons-Qw9rHc8C.js} +420 -406
  165. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js.map → socialIcons-Qw9rHc8C.js.map} +1 -1
  166. package/dist/cdn/chunks/src-Bfj1jHnn.js +710 -0
  167. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +1 -0
  168. package/dist/cdn/chunks/{src-712f3ofG.js → src-C9JWWxAk.js} +683 -568
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/{src-ZFw5fg_z.js → src-mXG-Of9A.js} +892 -735
  171. package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
  172. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
  173. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
  174. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
  175. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
  176. package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
  177. package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
  178. package/dist/cdn/chunks/useLocalizedDisplay-Bgg4qpev.js +33 -0
  179. package/dist/cdn/chunks/{useLocalizedDisplay-DiNjT22M.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  180. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js → useLogicTag-DLvWzWsp.js} +4 -4
  181. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
  182. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js → useMergeTag-B4FHCGGm.js} +6 -6
  183. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js.map → useMergeTag-B4FHCGGm.js.map} +1 -1
  184. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
  185. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
  186. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
  187. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
  188. package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js → withCurrentFont-QqBilClC.js} +2 -2
  189. package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  190. package/dist/cdn/editor.css +1 -1
  191. package/dist/cdn/editor.js +761 -764
  192. package/dist/cdn/editor.js.map +1 -1
  193. package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
  194. package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
  195. package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
  196. package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
  197. package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
  198. package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
  199. package/dist/{composables-BbPFRlBf.js → composables-CRX6rncm.js} +1044 -988
  200. package/dist/{createCloudRuntime-Dlrg88gS.js → createCloudRuntime-DplyIlsy.js} +3 -3
  201. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  202. package/dist/{cdn/chunks/de-DaOUfYBX.js → de-BLFp3nWx.js} +18 -3
  203. package/dist/{dist-C34cYI5S.js → dist-BMUUt3zJ.js} +964 -807
  204. package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
  205. package/dist/{en-C0pHHMiR.js → en-DGGQJGbm.js} +18 -1
  206. package/dist/en-De3uAutQ.js +1 -0
  207. package/dist/{cdn/chunks/es-CxyEKr6n.js → es-DTY9qgLv.js} +18 -3
  208. package/dist/{extensions-xCiyqSg7.js → extensions-Cm6K4SRX.js} +344 -338
  209. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  210. package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-L4FqO9Gp.js} +18 -3
  211. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  212. package/dist/index.d.ts +74 -13
  213. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  214. package/dist/{ja-DfaIAoGI.js → ja-6uOXkh4v.js} +18 -1
  215. package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
  216. package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
  217. package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
  218. package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
  219. package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
  220. package/dist/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +18 -1
  221. package/dist/normalizeMergeTagMarkup-Da9JAgx7.js +298 -0
  222. package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
  223. package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
  224. package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-DvbRa3L3.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  226. package/dist/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +18 -1
  227. package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
  228. package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
  229. package/dist/{sanitizeHtml-D_ab7dD6.js → sanitizeHtml-wBibnBF4.js} +6 -6
  230. package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
  231. package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
  232. package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
  233. package/dist/{socialIcons-DhAolBjt.js → socialIcons-CJD6OsI7.js} +283 -269
  234. package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
  235. package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
  236. package/dist/style.css +1 -1
  237. package/dist/templatical-editor.js +851 -854
  238. package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
  239. package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
  240. package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
  241. package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
  242. package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
  243. package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
  244. package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
  245. package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
  246. package/dist/{useLogicTag-BmuakZBd.js → useLogicTag-DLkYos2Q.js} +3 -3
  247. package/dist/{useMergeTag-DC4a8b_v.js → useMergeTag-IoWOO679.js} +5 -5
  248. package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
  249. package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
  250. package/dist/{withCurrentFont-BSxJai99.js → withCurrentFont-m_PHcOD0.js} +1 -1
  251. package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
  252. package/package.json +10 -10
  253. package/dist/BlockPreviewCanvas-DtOo5y3U.js +0 -140
  254. package/dist/WrapperBlock-BUzQTZuu.js +0 -44
  255. package/dist/cdn/chunks/BlockPreviewCanvas-B6ndvof2.js.map +0 -1
  256. package/dist/cdn/chunks/LogicTagInsertButton-PDKuo2J3.js.map +0 -1
  257. package/dist/cdn/chunks/Toolbar-Cv6Rv1S-.js.map +0 -1
  258. package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js +0 -46
  259. package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js.map +0 -1
  260. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +0 -1
  261. package/dist/cdn/chunks/composables-BxikPuC1.js.map +0 -1
  262. package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
  263. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  264. package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
  265. package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
  266. package/dist/cdn/chunks/extensions-DuDWpKo7.js.map +0 -1
  267. package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
  268. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
  269. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  270. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
  271. package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js +0 -290
  272. package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js.map +0 -1
  273. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
  274. package/dist/cdn/chunks/src-712f3ofG.js.map +0 -1
  275. package/dist/cdn/chunks/src-B2tQbzf6.js +0 -677
  276. package/dist/cdn/chunks/src-B2tQbzf6.js.map +0 -1
  277. package/dist/cdn/chunks/src-ZFw5fg_z.js.map +0 -1
  278. package/dist/cdn/chunks/useLocalizedDisplay-DiNjT22M.js +0 -33
  279. package/dist/en-Do0SU6tR.js +0 -1
  280. package/dist/normalizeMergeTagMarkup-C7FGNURu.js +0 -288
  281. package/dist/useLocalizedDisplay-C9MBFUr4.js +0 -31
@@ -1,42 +1,42 @@
1
1
  import { A as e, B as t, D as n, F as r, Ft as i, H as a, L as o, M as s, Mt as c, N as l, O as u, P as d, Pt as f, Q as p, S as m, U as h, W as g, Y as _, Z as v, _ as y, a as b, at as x, b as S, c as C, ct as w, d as T, et as E, f as D, g as O, j as k, k as A, l as j, nt as M, ot as N, q as ee, r as P, st as te, u as F, v as I, w as L, y as R } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
2
  import { c as z, o as ne, s as re } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { $t as ie, A as ae, B as oe, Bt as se, Dt as B, G as ce, Gt as le, Ht as ue, I as de, It as fe, J as pe, Jt as me, K as he, Kt as ge, L as _e, Lt as ve, M as ye, N as be, O as xe, P as Se, Q as Ce, Qt as we, R as Te, Rt as Ee, Ut as De, V as Oe, Vt as ke, W as Ae, Wt as je, X as Me, Yt as Ne, Zt as Pe, bt as Fe, c as Ie, ct as Le, en as Re, f as ze, ft as Be, g as Ve, gt as He, it as Ue, j as We, jt as Ge, kt as Ke, lt as qe, nt as Je, o as Ye, ot as Xe, p as Ze, pt as Qe, q as $e, qt as et, rt as tt, s as nt, tn as rt, tt as it, ut as at, v as ot, vt as st, x as ct, y as lt, yt as ut, z as dt, zt as ft } from "./dist-C34cYI5S.js";
4
- import { B as pt, C as mt, D as ht, E as gt, F as _t, H as vt, O as yt, P as bt, T as xt, U as St, _ as Ct, a as wt, f as Tt, h as Et, k as Dt, n as Ot, o as kt, t as At, u as jt, v as Mt, w as Nt, x as Pt, y as Ft, z as It } from "./socialIcons-DhAolBjt.js";
5
- import { t as Lt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
- import { t as Rt } from "./createLucideIcon-CgDE3xAR.js";
7
- import { t as zt } from "./clock-BVT5u2uG.js";
8
- import { n as Bt } from "./upload-Cp8o-hrN.js";
9
- import { t as Vt } from "./image-Ch8tR35K.js";
10
- import { n as Ht, r as Ut, t as Wt } from "./sanitizeHtml-D_ab7dD6.js";
11
- import { t as Gt } from "./message-circle-C23R6OJR.js";
12
- import { t as Kt } from "./pencil-BK7GrQuA.js";
13
- import { t as qt } from "./trash-B99WixTA.js";
14
- import { t as Jt } from "./triangle-alert-CHMiDkHa.js";
15
- import { $ as Yt, A as Xt, B as Zt, C as Qt, D as $t, F as en, G as tn, H as nn, I as rn, J as an, K as on, L as sn, M as cn, N as ln, O as un, P as dn, Q as fn, R as pn, S as mn, T as hn, U as gn, V as _n, W as vn, X as yn, _ as bn, a as xn, at as Sn, b as Cn, c as wn, d as Tn, et as En, g as Dn, h as On, i as kn, it as An, j as jn, k as Mn, l as Nn, m as Pn, nt as Fn, ot as In, p as Ln, q as Rn, r as zn, rt as Bn, s as Vn, tt as Hn, u as Un, v as Wn, w as Gn, x as Kn, y as qn, z as Jn } from "./keys-BCqskl51.js";
16
- import { t as Yn } from "./useI18n-CgtvtF4C.js";
17
- import { n as Xn } from "./useLocalizedDisplay-C9MBFUr4.js";
18
- import { t as Zn } from "./plural-CyxrJXL1.js";
19
- import { t as Qn } from "./languageName-DEEOhDWI.js";
20
- import { m as $n, w as er, x as tr } from "./styleConstants-CgiNKdnc.js";
21
- import { _ as nr, h as rr, v as ir, y as ar } from "./dist-CX7skkvG.js";
22
- import { a as or, c as sr, i as cr, l as lr } from "./dist-0alKVRc_.js";
23
- import { t as ur } from "./useEditorRoot-DY3mgcHm.js";
24
- import "./useCloudI18n-Dh2iydo1.js";
25
- import { t as dr } from "./useMergeTag-DC4a8b_v.js";
26
- import { t as fr } from "./logger-BOu7oEtk.js";
27
- import { a as pr, c as mr, i as hr, n as gr, o as _r, t as vr } from "./usePopoverPosition-VDQjyX_A.js";
28
- import { t as yr } from "./useLogicTag-BmuakZBd.js";
29
- import { r as br, t as xr } from "./templateSettingsFields-cjlP-jdw.js";
30
- import { t as Sr } from "./LoadingTrack-BG8cg9xi.js";
31
- import { t as Cr } from "./readableTextColor-BfZUGnVj.js";
32
- var wr = Rt({
3
+ import { $ as ie, At as ae, B as oe, Bt as se, F as B, G as ce, Gt as le, H as ue, Ht as de, J as fe, Jt as pe, K as me, Kt as he, L as ge, Lt as _e, M as ve, Mt as ye, N as be, Ot as xe, P as Se, Qt as Ce, R as we, Rt as Te, Ut as Ee, V as De, Vt as Oe, Wt as ke, Xt as Ae, Y as je, Yt as Me, Z as Ne, Zt as Pe, _t as Fe, at as Ie, bt as Le, c as Re, dt as ze, en as Be, f as Ve, g as He, in as Ue, it as We, j as Ge, k as Ke, lt as qe, mt as Je, nn as Ye, nt as Xe, o as Ze, p as Qe, pt as $e, q as et, qt as tt, rn as nt, rt, s as it, st as at, tn as ot, ut as st, v as ct, x as lt, xt as ut, y as dt, yt as ft, z as pt, zt as mt } from "./dist-BMUUt3zJ.js";
4
+ import { B as ht, C as gt, D as _t, E as vt, F as yt, H as bt, O as xt, P as St, T as Ct, U as wt, _ as Tt, a as Et, f as Dt, h as Ot, k as kt, n as At, o as jt, t as Mt, u as Nt, v as Pt, w as Ft, x as It, y as Lt, z as Rt } from "./socialIcons-CJD6OsI7.js";
5
+ import { t as zt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
+ import { t as Bt } from "./createLucideIcon-CfBdtoUw.js";
7
+ import { t as Vt } from "./clock-Df0ZiXwQ.js";
8
+ import { n as Ht } from "./upload-DR9pqVON.js";
9
+ import { t as Ut } from "./image-C3yuPDxx.js";
10
+ import { n as Wt, r as Gt, t as Kt } from "./sanitizeHtml-wBibnBF4.js";
11
+ import { t as qt } from "./message-circle-C4TonoBs.js";
12
+ import { t as Jt } from "./pencil-M9vkOB7C.js";
13
+ import { t as Yt } from "./trash-Cr7rD5Hh.js";
14
+ import { t as Xt } from "./triangle-alert-CKcpwtUj.js";
15
+ import { $ as Zt, A as Qt, B as $t, C as en, D as tn, F as nn, G as rn, H as an, I as on, J as sn, K as cn, L as ln, M as un, N as dn, O as fn, P as pn, R as mn, S as hn, T as gn, U as _n, V as vn, W as yn, Y as bn, Z as xn, _ as Sn, a as Cn, at as wn, b as Tn, c as En, d as Dn, et as On, g as kn, h as An, i as jn, it as Mn, j as Nn, k as Pn, l as Fn, m as In, nt as Ln, ot as Rn, p as zn, q as Bn, r as Vn, rt as Hn, s as Un, st as Wn, tt as Gn, u as Kn, v as qn, w as Jn, x as Yn, y as Xn, z as Zn } from "./keys-w_VRjoMu.js";
16
+ import { t as Qn } from "./useI18n-zeWYtWSv.js";
17
+ import { n as $n } from "./useLocalizedDisplay-Cbhx208c.js";
18
+ import { t as er } from "./plural-CyxrJXL1.js";
19
+ import { t as tr } from "./languageName-DEEOhDWI.js";
20
+ import { m as nr, w as rr, x as ir } from "./styleConstants-CgiNKdnc.js";
21
+ import { _ as ar, h as or, v as sr, y as cr } from "./dist-CX7skkvG.js";
22
+ import { a as lr, c as ur, i as dr, l as fr } from "./dist-0alKVRc_.js";
23
+ import { t as pr } from "./useEditorRoot-BcXKhM_8.js";
24
+ import "./useCloudI18n-BczJoFf4.js";
25
+ import { t as mr } from "./useMergeTag-IoWOO679.js";
26
+ import { t as hr } from "./logger-BOu7oEtk.js";
27
+ import { a as gr, c as _r, i as vr, n as yr, o as br, t as xr } from "./usePopoverPosition-Br3zt_MQ.js";
28
+ import { t as Sr } from "./useLogicTag-DLkYos2Q.js";
29
+ import { r as Cr, t as wr } from "./templateSettingsFields-cjlP-jdw.js";
30
+ import { t as Tr } from "./LoadingTrack-BG8cg9xi.js";
31
+ import { t as Er } from "./readableTextColor-BfZUGnVj.js";
32
+ var Dr = Bt({
33
33
  name: "bookmark",
34
34
  size: 24,
35
35
  node: [["path", {
36
36
  d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
37
37
  key: "oz39mx"
38
38
  }]]
39
- }), Tr = Rt({
39
+ }), Or = Bt({
40
40
  name: "box",
41
41
  size: 24,
42
42
  node: [
@@ -53,7 +53,7 @@ var wr = Rt({
53
53
  key: "d0xqtd"
54
54
  }]
55
55
  ]
56
- }), Er = Rt({
56
+ }), kr = Bt({
57
57
  name: "eye-off",
58
58
  size: 24,
59
59
  node: [
@@ -74,7 +74,7 @@ var wr = Rt({
74
74
  key: "1ooewy"
75
75
  }]
76
76
  ]
77
- }), Dr = Rt({
77
+ }), Ar = Bt({
78
78
  name: "funnel",
79
79
  size: 24,
80
80
  node: [["path", {
@@ -82,7 +82,7 @@ var wr = Rt({
82
82
  key: "sc7q7i"
83
83
  }]],
84
84
  aliases: ["filter"]
85
- }), Or = Rt({
85
+ }), jr = Bt({
86
86
  name: "grip-vertical",
87
87
  size: 24,
88
88
  node: [
@@ -123,14 +123,14 @@ var wr = Rt({
123
123
  key: "f4zoj3"
124
124
  }]
125
125
  ]
126
- }), kr = Rt({
126
+ }), Mr = Bt({
127
127
  name: "puzzle",
128
128
  size: 24,
129
129
  node: [["path", {
130
130
  d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
131
131
  key: "w46dr5"
132
132
  }]]
133
- }), Ar = Rt({
133
+ }), Nr = Bt({
134
134
  name: "video",
135
135
  size: 24,
136
136
  node: [["path", {
@@ -144,11 +144,11 @@ var wr = Rt({
144
144
  rx: "2",
145
145
  key: "158x01"
146
146
  }]]
147
- }), jr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
148
- function Mr(e, n) {
149
- let r = ur(), i = null, a = null, o = null;
147
+ }), Pr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
148
+ function Fr(e, n) {
149
+ let r = pr(), i = null, a = null, o = null;
150
150
  function s() {
151
- return e.value ? Array.from(e.value.querySelectorAll(jr)).filter((e) => e.offsetParent !== null) : [];
151
+ return e.value ? Array.from(e.value.querySelectorAll(Pr)).filter((e) => e.offsetParent !== null) : [];
152
152
  }
153
153
  function c(e) {
154
154
  if (e.key !== "Tab") return;
@@ -163,7 +163,7 @@ function Mr(e, n) {
163
163
  o = null;
164
164
  let t = s();
165
165
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
166
- }), a = or(e, "keydown", c);
166
+ }), a = lr(e, "keydown", c);
167
167
  }
168
168
  function u(e = {}) {
169
169
  let t = e.restoreFocus !== !1;
@@ -177,8 +177,8 @@ function Mr(e, n) {
177
177
  });
178
178
  }
179
179
  // src/composables/useEmoji.ts
180
- function Nr() {
181
- let [e, n] = ir(!1), r = M([]), i = !1;
180
+ function Ir() {
181
+ let [e, n] = sr(!1), r = M([]), i = !1;
182
182
  v(() => {
183
183
  i = !0;
184
184
  }), t(e, async (e) => {
@@ -202,7 +202,7 @@ function Nr() {
202
202
  };
203
203
  }
204
204
  // src/composables/useBlockRegistry.ts
205
- function Pr() {
205
+ function Lr() {
206
206
  let e = M(/* @__PURE__ */ new Map());
207
207
  function t(t, n) {
208
208
  e.value.set(t, n), te(e);
@@ -210,7 +210,7 @@ function Pr() {
210
210
  function n(t, n) {
211
211
  let r = `custom:${t.type}`, i = {
212
212
  component: n,
213
- createBlock: () => be(t),
213
+ createBlock: () => Se(t),
214
214
  definition: t
215
215
  };
216
216
  e.value.set(r, i), te(e);
@@ -236,9 +236,9 @@ function Pr() {
236
236
  let t = a(e.customType);
237
237
  if (!t) return o("Block definition not found");
238
238
  try {
239
- return await Se(await import("./liquid.browser-DUXEekoN.js")).parseAndRender(t.template, e.fieldValues);
239
+ return await B(await import("./liquid.browser-DUXEekoN.js")).parseAndRender(t.template, e.fieldValues);
240
240
  } catch (t) {
241
- return fr.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
241
+ return hr.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
242
242
  }
243
243
  }
244
244
  function c(t) {
@@ -255,7 +255,7 @@ function Pr() {
255
255
  };
256
256
  }
257
257
  // src/composables/useFonts.ts
258
- var Fr = [
258
+ var Rr = [
259
259
  {
260
260
  value: "Arial",
261
261
  label: "Arial"
@@ -284,19 +284,19 @@ var Fr = [
284
284
  value: "Courier New",
285
285
  label: "Courier New"
286
286
  }
287
- ], Ir = "Arial, sans-serif";
288
- function Lr(e) {
289
- if (e === void 0 || e === !0) return [...Fr];
287
+ ], zr = "Arial, sans-serif";
288
+ function Br(e) {
289
+ if (e === void 0 || e === !0) return [...Rr];
290
290
  if (e === !1) return [];
291
291
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
292
292
  for (let i of e) {
293
- let e = i.toLowerCase(), a = Fr.find((t) => t.value.toLowerCase() === e);
294
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), fr.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Fr.map((e) => e.value).join(", ")}.`));
293
+ let e = i.toLowerCase(), a = Rr.find((t) => t.value.toLowerCase() === e);
294
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), hr.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Rr.map((e) => e.value).join(", ")}.`));
295
295
  }
296
296
  return t;
297
297
  }
298
- function Rr(e) {
299
- let t = E(e?.customFonts ?? []), n = E(!1), r = Lr(e?.builtIns), i = C(() => e?.defaultFallback ?? Ir), a = C(() => {
298
+ function Vr(e) {
299
+ let t = E(e?.customFonts ?? []), n = E(!1), r = Br(e?.builtIns), i = C(() => e?.defaultFallback ?? zr), a = C(() => {
300
300
  let e = [...r], n = t.value.map((e) => ({
301
301
  value: e.name,
302
302
  label: e.name,
@@ -307,18 +307,18 @@ function Rr(e) {
307
307
  function o(e) {
308
308
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
309
309
  }
310
- let s = e?.defaultFont ?? Ir.split(",")[0].trim();
311
- o(s) || fr.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
310
+ let s = e?.defaultFont ?? zr.split(",")[0].trim();
311
+ o(s) || hr.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
312
312
  function c() {
313
313
  if (e?.defaultFont && o(e.defaultFont)) {
314
314
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
315
315
  if (t) return t.value;
316
316
  }
317
- return Ir;
317
+ return zr;
318
318
  }
319
319
  let l = C(() => c());
320
320
  function u(e) {
321
- return se(e, {
321
+ return Oe(e, {
322
322
  customFonts: t.value,
323
323
  defaultFallback: i.value
324
324
  });
@@ -337,7 +337,7 @@ function Rr(e) {
337
337
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
338
338
  });
339
339
  } catch (t) {
340
- fr.warn(`Failed to load custom font "${e.name}":`, t);
340
+ hr.warn(`Failed to load custom font "${e.name}":`, t);
341
341
  }
342
342
  });
343
343
  await Promise.allSettled(e), !f && (n.value = !0);
@@ -361,7 +361,7 @@ function Rr(e) {
361
361
  };
362
362
  }
363
363
  // src/composables/useThemeStyles.ts
364
- var zr = {
364
+ var Hr = {
365
365
  bg: "--tpl-bg",
366
366
  bgElevated: "--tpl-bg-elevated",
367
367
  bgHover: "--tpl-bg-hover",
@@ -385,10 +385,10 @@ var zr = {
385
385
  dangerLight: "--tpl-danger-light",
386
386
  canvasBg: "--tpl-canvas-bg"
387
387
  };
388
- function Br({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
388
+ function Ur({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
389
389
  return { themeStyles: C(() => {
390
390
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
391
- if (a) for (let [e, t] of Object.entries(zr)) {
391
+ if (a) for (let [e, t] of Object.entries(Hr)) {
392
392
  let n = a[e];
393
393
  n && (r[t] = n);
394
394
  }
@@ -396,12 +396,12 @@ function Br({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
396
396
  }) };
397
397
  }
398
398
  // src/utils/mergeTagNodeSpec.ts
399
- function Vr(e, t, n) {
400
- return st(e, n) ? {
399
+ function Wr(e, t, n) {
400
+ return ft(e, n) ? {
401
401
  type: "logicMergeTagNode",
402
402
  attrs: {
403
403
  value: e,
404
- keyword: Le(e, n)
404
+ keyword: qe(e, n)
405
405
  }
406
406
  } : {
407
407
  type: "mergeTagNode",
@@ -412,32 +412,32 @@ function Vr(e, t, n) {
412
412
  };
413
413
  }
414
414
  // src/utils/insertLogicTag.ts
415
- function Hr(e) {
415
+ function Gr(e) {
416
416
  return "before" in e && "after" in e;
417
417
  }
418
- function Ur(e, t, n) {
419
- if (!Hr(t)) {
420
- e.chain().focus().insertContent(Vr(t.value, t.label, n)).run();
418
+ function Kr(e, t, n) {
419
+ if (!Gr(t)) {
420
+ e.chain().focus().insertContent(Wr(t.value, t.label, n)).run();
421
421
  return;
422
422
  }
423
- let r = Vr(t.before, t.label, n), i = Vr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
423
+ let r = Wr(t.before, t.label, n), i = Wr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
424
424
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
425
425
  }
426
426
  // src/utils/linkColorExtension.ts
427
- function Wr(e) {
427
+ function qr(e) {
428
428
  if (!e) return null;
429
429
  let t = e.trim();
430
430
  return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
431
431
  }
432
- function Gr(e) {
432
+ function Jr(e) {
433
433
  return e.extend({ addAttributes() {
434
434
  return {
435
435
  ...this.parent?.(),
436
436
  color: {
437
437
  default: null,
438
- parseHTML: (e) => Wr(_r(e.style.color)),
438
+ parseHTML: (e) => qr(br(e.style.color)),
439
439
  renderHTML: (e) => {
440
- let t = Wr(e.color);
440
+ let t = qr(e.color);
441
441
  return t ? { style: `color: ${t}` } : {};
442
442
  }
443
443
  }
@@ -445,9 +445,9 @@ function Gr(e) {
445
445
  } });
446
446
  }
447
447
  // src/composables/useRichTextLinkDialog.ts
448
- function Kr(e, t = Ve.liquid, n = () => !0) {
448
+ function Yr(e, t = He.liquid, n = () => !0) {
449
449
  let r = E(!1), i = E(""), a = E(""), o = E(null);
450
- Mr(o, r);
450
+ Fr(o, r);
451
451
  function s() {
452
452
  if (!n()) return;
453
453
  let t = e.value?.getAttributes("link") ?? {};
@@ -458,7 +458,7 @@ function Kr(e, t = Ve.liquid, n = () => !0) {
458
458
  if (i.value) {
459
459
  let t = d(i.value);
460
460
  if (t !== null) {
461
- let n = Wr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
461
+ let n = qr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
462
462
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
463
463
  }
464
464
  }
@@ -475,8 +475,8 @@ function Kr(e, t = Ve.liquid, n = () => !0) {
475
475
  if (t.startsWith("#")) return t;
476
476
  if (t.startsWith("//")) return `https:${t}`;
477
477
  if (l.test(t)) return t;
478
- let n = Je(t);
479
- return n ? Ze.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
478
+ let n = rt(t);
479
+ return n ? Qe.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
480
480
  }
481
481
  function f() {
482
482
  n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
@@ -500,13 +500,13 @@ function Kr(e, t = Ve.liquid, n = () => !0) {
500
500
  };
501
501
  }
502
502
  // src/composables/useRichTextEditor.ts
503
- function qr(e) {
504
- let n = L(Wn, null), r = mr(), { mergeTags: i, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: c, autocomplete: l } = dr(), { canInsertLogicTag: u, isRequesting: d, requestLogicTag: f } = yr(), p = L(Hn, null), m = (_(p) ? p.value : p)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", h = Be(c), g = M(null), v = n?.content ? Xn(n) : null, y = () => ft(v?.settings.value ?? { locale: "en" });
503
+ function Xr(e) {
504
+ let n = L(qn, null), r = _r(), { mergeTags: i, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: c, autocomplete: l } = mr(), { canInsertLogicTag: u, isRequesting: d, requestLogicTag: f } = Sr(), p = L(Ln, null), m = (_(p) ? p.value : p)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", h = $e(c), g = M(null), v = n?.content ? $n(n) : null, y = () => se(v?.settings.value ?? { locale: "en" });
505
505
  t(y, (e) => {
506
506
  let t = g.value?.view.dom;
507
507
  t && t.setAttribute("dir", e);
508
508
  });
509
- let { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = Kr(g, c, () => r.value);
509
+ let { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = Yr(g, c, () => r.value);
510
510
  t(r, (e) => {
511
511
  if (g.value?.setEditable(e, !1), !e) {
512
512
  O();
@@ -514,7 +514,7 @@ function qr(e) {
514
514
  e && e.view.dispatch(e.state.tr);
515
515
  }
516
516
  });
517
- let { start: j, stop: N } = nr(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = M(null), P = E(!0), te = E(null), F = !1, I = null;
517
+ let { start: j, stop: N } = ar(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = M(null), P = E(!0), te = E(null), F = !1, I = null;
518
518
  async function R() {
519
519
  te.value = null, P.value = !0;
520
520
  try {
@@ -545,7 +545,7 @@ function qr(e) {
545
545
  g.value = u, P.value = !1, j();
546
546
  } catch (t) {
547
547
  if (F) return;
548
- fr.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), te.value = t instanceof Error ? t.message : "Failed to load editor", P.value = !1;
548
+ hr.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), te.value = t instanceof Error ? t.message : "Failed to load editor", P.value = !1;
549
549
  }
550
550
  }
551
551
  function z() {
@@ -563,7 +563,7 @@ function qr(e) {
563
563
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
564
564
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
565
565
  }
566
- or(document, "mousedown", re), A(() => {
566
+ lr(document, "mousedown", re), A(() => {
567
567
  F = !0, ne(), N(), g.value?.destroy();
568
568
  });
569
569
  async function ie() {
@@ -577,7 +577,7 @@ function qr(e) {
577
577
  async function ae() {
578
578
  if (!r.value) return;
579
579
  let e = await f();
580
- !F && r.value && (e && g.value ? Ur(g.value, e, c) : g.value?.commands.focus());
580
+ !F && r.value && (e && g.value ? Kr(g.value, e, c) : g.value?.commands.focus());
581
581
  }
582
582
  return {
583
583
  editor: g,
@@ -606,25 +606,25 @@ function qr(e) {
606
606
  };
607
607
  }
608
608
  // src/utils/activeEditorTracker.ts
609
- var Jr = /* @__PURE__ */ new Set(), Yr = 0, Xr = 0;
610
- function Zr() {
611
- let e = ++Xr;
612
- return Jr.add(e), Yr === 0 && (Yr = e), {
609
+ var Zr = /* @__PURE__ */ new Set(), Qr = 0, $r = 0;
610
+ function ei() {
611
+ let e = ++$r;
612
+ return Zr.add(e), Qr === 0 && (Qr = e), {
613
613
  id: e,
614
- isActive: () => Jr.size <= 1 || Yr === e,
614
+ isActive: () => Zr.size <= 1 || Qr === e,
615
615
  claim: () => {
616
- Yr = e;
616
+ Qr = e;
617
617
  },
618
618
  dispose: () => {
619
- if (Jr.delete(e), Yr === e) {
620
- let e = Array.from(Jr);
621
- Yr = e[e.length - 1] ?? 0;
619
+ if (Zr.delete(e), Qr === e) {
620
+ let e = Array.from(Zr);
621
+ Qr = e[e.length - 1] ?? 0;
622
622
  }
623
623
  }
624
624
  };
625
625
  }
626
626
  // src/utils/resolveLintOptions.ts
627
- function Qr(e) {
627
+ function ti(e) {
628
628
  let t = e.contentLocale ?? e.content?.settings.locale;
629
629
  return {
630
630
  ...e.lint,
@@ -633,8 +633,8 @@ function Qr(e) {
633
633
  };
634
634
  }
635
635
  // src/composables/usePreviewResolution.ts
636
- var $r = 500;
637
- function ei(e) {
636
+ var ni = 500;
637
+ function ri(e) {
638
638
  let n = typeof e.resolvePreview == "function", r = E(null), i = E(!1), a = E(!1), o = 0, s = null;
639
639
  function c() {
640
640
  s !== null && (clearTimeout(s), s = null);
@@ -645,13 +645,13 @@ function ei(e) {
645
645
  let n = ++o;
646
646
  i.value = !0;
647
647
  let s = {
648
- content: ge(e.getContent()),
648
+ content: tt(e.getContent()),
649
649
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
650
650
  };
651
651
  try {
652
652
  let e = await t(s);
653
653
  if (n !== o) return;
654
- if (!Fe(e)) {
654
+ if (!ut(e)) {
655
655
  a.value = !0;
656
656
  return;
657
657
  }
@@ -666,7 +666,7 @@ function ei(e) {
666
666
  function u() {
667
667
  n && (c(), r.value === null ? l() : s = setTimeout(() => {
668
668
  s = null, l();
669
- }, $r));
669
+ }, ni));
670
670
  }
671
671
  return t(() => [
672
672
  e.isActive(),
@@ -689,7 +689,7 @@ function ei(e) {
689
689
  };
690
690
  }
691
691
  // src/composables/useMergeTagPicker.ts
692
- function ti() {
692
+ function ii() {
693
693
  let e = E(!1), t = E([]), n = E(null), r = null;
694
694
  function i(i, a) {
695
695
  if (r) {
@@ -719,7 +719,7 @@ function ti() {
719
719
  };
720
720
  }
721
721
  // src/composables/useLogicTagPicker.ts
722
- function ni() {
722
+ function ai() {
723
723
  let e = E(!1), t = E([]), n = E([]), r = null;
724
724
  function i(i, a) {
725
725
  if (r) {
@@ -749,23 +749,23 @@ function ni() {
749
749
  };
750
750
  }
751
751
  // src/composables/useTemplateLint.ts
752
- function ri(e) {
752
+ function oi(e) {
753
753
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
754
754
  }
755
- var ii = !1;
756
- function ai(e) {
755
+ var si = !1;
756
+ function ci(e) {
757
757
  let n = E([]), r = E(0), i = E(-1), a = t(e.content, () => {
758
758
  r.value++;
759
- }, { deep: !0 }), o = E(!1), s = E(!1), c = M(null), l = ri(e.options), u = null, d = !1;
759
+ }, { deep: !0 }), o = E(!1), s = E(!1), c = M(null), l = oi(e.options), u = null, d = !1;
760
760
  l || f();
761
761
  async function f() {
762
762
  try {
763
763
  let t = await import("@templatical/quality");
764
764
  if (d) return;
765
- c.value = { lintTemplate: t.lintTemplate }, o.value = !0, p(), u = ar(r, p, { debounce: e.debounce ?? 500 });
765
+ c.value = { lintTemplate: t.lintTemplate }, o.value = !0, p(), u = cr(r, p, { debounce: e.debounce ?? 500 });
766
766
  } catch {
767
767
  if (d) return;
768
- s.value = !0, ii || (ii = !0, fr.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
768
+ s.value = !0, si || (si = !0, hr.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
769
769
  }
770
770
  }
771
771
  function p() {
@@ -804,7 +804,7 @@ function ai(e) {
804
804
  };
805
805
  }
806
806
  // src/composables/useKeyboardReorder.ts
807
- function oi(e, t, n = []) {
807
+ function li(e, t, n = []) {
808
808
  let r = E(null), i = E(""), a = null;
809
809
  function o(t) {
810
810
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -831,7 +831,7 @@ function oi(e, t, n = []) {
831
831
  let i = o(r);
832
832
  if (!i) return "";
833
833
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
834
- return a ? Ft(a, t.t, n) : "";
834
+ return a ? Lt(a, t.t, n) : "";
835
835
  }
836
836
  function c(t, n) {
837
837
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -899,14 +899,14 @@ function oi(e, t, n = []) {
899
899
  };
900
900
  }
901
901
  // src/composables/useUiTheme.ts
902
- function si(e) {
903
- let t = sr("(prefers-color-scheme: dark)");
902
+ function ui(e) {
903
+ let t = ur("(prefers-color-scheme: dark)");
904
904
  return { resolvedTheme: C(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
905
905
  }
906
906
  // src/composables/useCustomBlockStylesheets.ts
907
- function ci(e, t) {
907
+ function di(e, t) {
908
908
  return C(() => {
909
- let n = li(e.value.blocks);
909
+ let n = fi(e.value.blocks);
910
910
  if (n.size === 0) return [];
911
911
  let r = /* @__PURE__ */ new Set(), i = [];
912
912
  for (let e of n) {
@@ -918,75 +918,75 @@ function ci(e, t) {
918
918
  return i;
919
919
  });
920
920
  }
921
- function li(e) {
921
+ function fi(e) {
922
922
  let t = /* @__PURE__ */ new Set();
923
- return ui(e, t), t;
923
+ return pi(e, t), t;
924
924
  }
925
- function ui(e, t) {
926
- for (let n of e) if (He(n)) t.add(n.customType);
925
+ function pi(e, t) {
926
+ for (let n of e) if (Fe(n)) t.add(n.customType);
927
927
  else if (n.type === "section") {
928
928
  let e = n.children;
929
929
  if (!e) continue;
930
- for (let n of e) ui(n, t);
931
- } else B(n) && ui(n.children, t);
930
+ for (let n of e) pi(n, t);
931
+ } else xe(n) && pi(n.children, t);
932
932
  }
933
933
  // src/utils/registerBuiltInBlocks.ts
934
- var di = [
934
+ var mi = [
935
935
  {
936
936
  type: "section",
937
- createBlock: Oe
937
+ createBlock: ue
938
938
  },
939
939
  {
940
940
  type: "title",
941
- createBlock: $e
941
+ createBlock: fe
942
942
  },
943
943
  {
944
944
  type: "paragraph",
945
- createBlock: oe
945
+ createBlock: De
946
946
  },
947
947
  {
948
948
  type: "image",
949
- createBlock: Te
949
+ createBlock: pt
950
950
  },
951
951
  {
952
952
  type: "button",
953
- createBlock: We
953
+ createBlock: ve
954
954
  },
955
955
  {
956
956
  type: "divider",
957
- createBlock: de
957
+ createBlock: ge
958
958
  },
959
959
  {
960
960
  type: "video",
961
- createBlock: pe
961
+ createBlock: je
962
962
  },
963
963
  {
964
964
  type: "social",
965
- createBlock: Ae
965
+ createBlock: ce
966
966
  },
967
967
  {
968
968
  type: "menu",
969
- createBlock: dt
969
+ createBlock: oe
970
970
  },
971
971
  {
972
972
  type: "table",
973
- createBlock: he
973
+ createBlock: et
974
974
  },
975
975
  {
976
976
  type: "spacer",
977
- createBlock: ce
977
+ createBlock: me
978
978
  },
979
979
  {
980
980
  type: "html",
981
- createBlock: _e
981
+ createBlock: we
982
982
  },
983
983
  {
984
984
  type: "countdown",
985
- createBlock: ye
985
+ createBlock: be
986
986
  }
987
987
  ];
988
- function fi(e, t) {
989
- for (let n of di) {
988
+ function hi(e, t) {
989
+ for (let n of mi) {
990
990
  let r = t[n.type];
991
991
  r && e.registerBuiltIn(n.type, {
992
992
  component: r,
@@ -995,31 +995,31 @@ function fi(e, t) {
995
995
  }
996
996
  }
997
997
  // src/utils/resolveHtmlBlockPreview.ts
998
- function pi(e) {
998
+ function gi(e) {
999
999
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1000
1000
  }
1001
1001
  // src/utils/collectOffPaletteDefaults.ts
1002
- function mi(e) {
1002
+ function _i(e) {
1003
1003
  return typeof e == "object" && !!e && !Array.isArray(e);
1004
1004
  }
1005
- function hi(e, t, n) {
1006
- let r = new Set(e.map((e) => pr(e))), i = [], a = (e, t) => {
1007
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(pr(o)) && i.push(`${t}.${n}: ${o}`) : mi(o) && a(o, `${t}.${n}`);
1005
+ function vi(e, t, n) {
1006
+ let r = new Set(e.map((e) => gr(e))), i = [], a = (e, t) => {
1007
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(gr(o)) && i.push(`${t}.${n}: ${o}`) : _i(o) && a(o, `${t}.${n}`);
1008
1008
  }, o = t;
1009
- for (let [e, t] of Object.entries(Ye)) {
1009
+ for (let [e, t] of Object.entries(Ze)) {
1010
1010
  let n = o?.[e];
1011
1011
  a({
1012
1012
  ...t,
1013
- ...mi(n) ? n : {}
1013
+ ..._i(n) ? n : {}
1014
1014
  }, e);
1015
1015
  }
1016
1016
  return a({
1017
- ...nt,
1017
+ ...it,
1018
1018
  ...n ?? {}
1019
1019
  }, "template"), i;
1020
1020
  }
1021
1021
  // src/utils/localizedBlockDefaults.ts
1022
- function gi(e) {
1022
+ function yi(e) {
1023
1023
  return {
1024
1024
  title: { content: `<p>${e.blockDefaults.title}</p>` },
1025
1025
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -1027,62 +1027,62 @@ function gi(e) {
1027
1027
  };
1028
1028
  }
1029
1029
  // src/i18n/index.ts
1030
- var _i = /* #__PURE__ */ Object.assign({
1031
- "./locales/ca.ts": () => import("./ca-DOuIxWRv.js"),
1032
- "./locales/de.ts": () => import("./de-DaOUfYBX.js"),
1033
- "./locales/en.ts": () => import("./en-C0pHHMiR.js"),
1034
- "./locales/es.ts": () => import("./es-CxyEKr6n.js"),
1035
- "./locales/fr.ts": () => import("./fr-CYbamiI6.js"),
1036
- "./locales/ja.ts": () => import("./ja-DfaIAoGI.js"),
1037
- "./locales/nl.ts": () => import("./nl-DkrB-VKZ.js"),
1038
- "./locales/pt-BR.ts": () => import("./pt-BR-CY5Ye7eP.js")
1039
- }), vi = /* #__PURE__ */ Object.assign({
1030
+ var bi = /* #__PURE__ */ Object.assign({
1031
+ "./locales/ca.ts": () => import("./ca-BJn8lcJx.js"),
1032
+ "./locales/de.ts": () => import("./de-BLFp3nWx.js"),
1033
+ "./locales/en.ts": () => import("./en-DGGQJGbm.js"),
1034
+ "./locales/es.ts": () => import("./es-DTY9qgLv.js"),
1035
+ "./locales/fr.ts": () => import("./fr-L4FqO9Gp.js"),
1036
+ "./locales/ja.ts": () => import("./ja-6uOXkh4v.js"),
1037
+ "./locales/nl.ts": () => import("./nl-DCxuxwNq.js"),
1038
+ "./locales/pt-BR.ts": () => import("./pt-BR-CBkcrebr.js")
1039
+ }), xi = /* #__PURE__ */ Object.assign({
1040
1040
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
1041
1041
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
1042
1042
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
1043
1043
  });
1044
- function yi(e) {
1044
+ function Si(e) {
1045
1045
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
1046
1046
  }
1047
- var bi = yi(_i), xi = yi(vi);
1048
- function Si(e) {
1047
+ var Ci = Si(bi), wi = Si(xi);
1048
+ function Ti(e) {
1049
1049
  return e.trim().replace(/_/g, "-").toLowerCase();
1050
1050
  }
1051
- function Ci(e, t) {
1052
- let n = Si(e);
1053
- return t.find((e) => Si(e) === n);
1051
+ function Ei(e, t) {
1052
+ let n = Ti(e);
1053
+ return t.find((e) => Ti(e) === n);
1054
1054
  }
1055
- function wi(e) {
1056
- return Si(e).split("-")[0];
1055
+ function Di(e) {
1056
+ return Ti(e).split("-")[0];
1057
1057
  }
1058
- function Ti(e, t) {
1059
- return Ci(e, t) ?? Ci(wi(e), t);
1058
+ function Oi(e, t) {
1059
+ return Ei(e, t) ?? Ei(Di(e), t);
1060
1060
  }
1061
- function Ei(e, t) {
1062
- return Ti(e, t) ?? "en";
1061
+ function ki(e, t) {
1062
+ return Oi(e, t) ?? "en";
1063
1063
  }
1064
- async function Di(e) {
1065
- let t = _i[`./locales/${Ei(e, bi)}.ts`];
1064
+ async function Ai(e) {
1065
+ let t = bi[`./locales/${ki(e, Ci)}.ts`];
1066
1066
  return (await t()).default;
1067
1067
  }
1068
- async function Oi(e) {
1069
- let t = vi[`./locales/cloud/${Ei(e, xi)}.ts`];
1068
+ async function ji(e) {
1069
+ let t = xi[`./locales/cloud/${ki(e, wi)}.ts`];
1070
1070
  return (await t()).default;
1071
1071
  }
1072
- function ki(e) {
1073
- return Ti(e, bi) !== void 0;
1072
+ function Mi(e) {
1073
+ return Oi(e, Ci) !== void 0;
1074
1074
  }
1075
- function Ai(e) {
1076
- return Ti(e, xi) !== void 0;
1075
+ function Ni(e) {
1076
+ return Oi(e, wi) !== void 0;
1077
1077
  }
1078
- function ji() {
1079
- return [...bi];
1078
+ function Pi() {
1079
+ return [...Ci];
1080
1080
  }
1081
- function Mi() {
1082
- return [...xi];
1081
+ function Fi() {
1082
+ return [...wi];
1083
1083
  }
1084
1084
  // src/i18n/contentDefaults.ts
1085
- var Ni = {
1085
+ var Ii = {
1086
1086
  en: {
1087
1087
  video: "Video",
1088
1088
  days: "Days",
@@ -1148,17 +1148,17 @@ var Ni = {
1148
1148
  expired: "このオファーは終了しました"
1149
1149
  }
1150
1150
  };
1151
- Object.keys(Ni);
1152
- var Pi = new Map(Object.keys(Ni).map((e) => [e.toLowerCase(), e]));
1153
- function Fi(e) {
1154
- if (!e) return Ni.en;
1155
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Pi.get(t);
1156
- if (n) return Ni[n];
1157
- let r = Pi.get(wi(t));
1158
- return r ? Ni[r] : Ni.en;
1159
- }
1160
- function Ii(e) {
1161
- let t = Fi(e);
1151
+ Object.keys(Ii);
1152
+ var Li = new Map(Object.keys(Ii).map((e) => [e.toLowerCase(), e]));
1153
+ function Ri(e) {
1154
+ if (!e) return Ii.en;
1155
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Li.get(t);
1156
+ if (n) return Ii[n];
1157
+ let r = Li.get(Di(t));
1158
+ return r ? Ii[r] : Ii.en;
1159
+ }
1160
+ function zi(e) {
1161
+ let t = Ri(e);
1162
1162
  return {
1163
1163
  video: { alt: t.video },
1164
1164
  countdown: {
@@ -1171,9 +1171,9 @@ function Ii(e) {
1171
1171
  };
1172
1172
  }
1173
1173
  // src/utils/collectColorFieldIssues.ts
1174
- function Li(e, t) {
1174
+ function Bi(e, t) {
1175
1175
  let n = [], r = (r, i) => {
1176
- let a = Mt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1176
+ let a = Pt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1177
1177
  if (a.invalidPresets.length > 0 && n.push({
1178
1178
  id: s("invalid-presets"),
1179
1179
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -1184,8 +1184,8 @@ function Li(e, t) {
1184
1184
  id: s("allow-custom-ignored"),
1185
1185
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1186
1186
  }), !a.allowCustom && a.presets.length > 0) {
1187
- let e = r.default ?? "", t = new Set(a.presets.map((e) => pr(e)));
1188
- e !== "" && !t.has(pr(e)) && n.push({
1187
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => gr(e)));
1188
+ e !== "" && !t.has(gr(e)) && n.push({
1189
1189
  id: s("off-palette-default"),
1190
1190
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
1191
1191
  });
@@ -1196,7 +1196,7 @@ function Li(e, t) {
1196
1196
  return n;
1197
1197
  }
1198
1198
  // src/utils/keyboardShortcuts.ts
1199
- function Ri(e) {
1199
+ function Vi(e) {
1200
1200
  for (let t of e.composedPath()) {
1201
1201
  if (!(t instanceof HTMLElement)) continue;
1202
1202
  if (t.isContentEditable) return !0;
@@ -1205,14 +1205,14 @@ function Ri(e) {
1205
1205
  }
1206
1206
  return !1;
1207
1207
  }
1208
- function zi(e, t) {
1208
+ function Hi(e, t) {
1209
1209
  let n = e.metaKey || e.ctrlKey;
1210
1210
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1211
1211
  else if (n && e.key.toLowerCase() === "z") {
1212
- if (Ri(e)) return;
1212
+ if (Vi(e)) return;
1213
1213
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1214
1214
  } else {
1215
- if (t.isPicking?.() && !Ri(e)) {
1215
+ if (t.isPicking?.() && !Vi(e)) {
1216
1216
  if (e.key === "Escape") {
1217
1217
  e.preventDefault(), t.onCancelPick?.();
1218
1218
  return;
@@ -1226,188 +1226,208 @@ function zi(e, t) {
1226
1226
  return;
1227
1227
  }
1228
1228
  }
1229
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ri(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1229
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Vi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1230
1230
  }
1231
1231
  }
1232
1232
  // src/utils/blockComponentResolver.ts
1233
- function Bi(e, t) {
1233
+ function Ui(e, t) {
1234
1234
  let n = { fontFamily: t(e.fontFamily) };
1235
1235
  return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
1236
1236
  }
1237
- function Vi(e, t, n) {
1237
+ function Wi(e, t, n) {
1238
1238
  if (t) {
1239
1239
  let n = t.getComponent(e);
1240
1240
  if (n) return n;
1241
1241
  }
1242
1242
  return n[e.type] ?? null;
1243
1243
  }
1244
- var Hi = "--tpl-block-bg-layer", Ui = "tpl-has-bg-image";
1245
- function Wi(e, t) {
1244
+ var Gi = "--tpl-block-bg-layer", Ki = "--tpl-email-frame-width", qi = "tpl-has-bg-image";
1245
+ function Ji(e, t) {
1246
1246
  if (t === null) return {};
1247
- let n = Ee(e);
1247
+ let n = mt(e);
1248
1248
  if (n === null) return {};
1249
- let r = t?.trim(), i = r ? it(r) : n.url;
1249
+ let r = t?.trim(), i = r ? Xe(r) : n.url;
1250
1250
  return {
1251
1251
  backgroundImage: `url("${i}")`,
1252
1252
  backgroundSize: n.size,
1253
1253
  backgroundPosition: n.position,
1254
1254
  backgroundRepeat: n.repeat,
1255
- [Hi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1255
+ [Gi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1256
1256
  };
1257
1257
  }
1258
- function Gi(e) {
1259
- return e && Hi in e ? Ui : void 0;
1258
+ function Yi(e) {
1259
+ return e && Gi in e ? qi : void 0;
1260
1260
  }
1261
- var Ki = {
1261
+ var Xi = {
1262
1262
  top: "flex-start",
1263
1263
  middle: "center",
1264
1264
  bottom: "flex-end"
1265
1265
  };
1266
- function qi(e, t) {
1267
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ji(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1266
+ function Zi(e, t) {
1267
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Qi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1268
1268
  return {
1269
1269
  display: "flex",
1270
1270
  flexDirection: "column",
1271
- justifyContent: Ki[e.verticalAlign],
1271
+ justifyContent: Xi[e.verticalAlign],
1272
1272
  boxSizing: "border-box",
1273
1273
  ...n
1274
1274
  };
1275
1275
  }
1276
- function Ji(e, t) {
1276
+ function Qi(e, t) {
1277
1277
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1278
1278
  }
1279
- function Yi(e, t = {}) {
1279
+ function $i(e, t = {}) {
1280
1280
  if (e.type === "wrapper") return {};
1281
1281
  let { padding: n, backgroundColor: r } = e.styles, i = {
1282
1282
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1283
1283
  backgroundColor: r || "transparent"
1284
1284
  };
1285
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ze.paragraphGap : ze.paragraphGap}px`), e.type === "section") {
1286
- let n = rt(e.borderRadius);
1285
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ve.paragraphGap : Ve.paragraphGap}px`), e.type === "section") {
1286
+ let n = Ue(e.borderRadius);
1287
1287
  n !== null && (i.borderRadius = n);
1288
- let r = ke(e);
1289
- r?.applied && e.backgroundImage ? (Object.assign(i, qi(r, t.heroBoxWidth)), Object.assign(i, Wi({
1288
+ let r = de(e);
1289
+ r?.applied && e.backgroundImage ? (Object.assign(i, Zi(r, t.heroBoxWidth)), Object.assign(i, Ji({
1290
1290
  ...e.backgroundImage,
1291
1291
  size: "cover",
1292
1292
  repeat: !1
1293
- }, t.backgroundImageUrl))) : (Object.assign(i, Zi(e.border)), Object.assign(i, Wi(e.backgroundImage, t.backgroundImageUrl)));
1293
+ }, t.backgroundImageUrl))) : (Object.assign(i, ta(e.border)), Object.assign(i, Ji(e.backgroundImage, t.backgroundImageUrl)));
1294
1294
  }
1295
1295
  return i;
1296
1296
  }
1297
- function Xi(e, t, n, r) {
1298
- return e.type === "section" ? Yi(e, {
1299
- backgroundImageUrl: mt(t, e.backgroundImage, n),
1297
+ function ea(e, t, n, r) {
1298
+ return e.type === "section" ? $i(e, {
1299
+ backgroundImageUrl: gt(t, e.backgroundImage, n),
1300
1300
  heroBoxWidth: r
1301
- }) : Yi(e);
1301
+ }) : $i(e);
1302
1302
  }
1303
- function Zi(e) {
1303
+ function ta(e) {
1304
1304
  let t = {};
1305
- for (let [n, r] of Object.entries(Re(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1305
+ for (let [n, r] of Object.entries(nt(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1306
1306
  return t;
1307
1307
  }
1308
- function Qi(e, t = {}) {
1308
+ var na = {
1309
+ width: "100cqw",
1310
+ maxWidth: "none",
1311
+ marginInline: "calc(50% - 50cqw)",
1312
+ boxSizing: "border-box"
1313
+ };
1314
+ function ra(e) {
1315
+ return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1316
+ }
1317
+ function ia(e) {
1318
+ let t = {
1319
+ width: "var(--tpl-email-frame-width)",
1320
+ maxWidth: "100%",
1321
+ marginInline: "auto",
1322
+ boxSizing: "border-box"
1323
+ };
1324
+ return e && (t.padding = ra(e)), t;
1325
+ }
1326
+ function aa(e, t = {}) {
1309
1327
  if (e.type !== "section" || !e.wrapper) return null;
1310
1328
  let n = e.wrapper, r = {};
1311
- n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
1312
- let i = rt(n.borderRadius);
1313
- return i !== null && (r.borderRadius = i), Object.assign(r, Wi(n.backgroundImage, t.backgroundImageUrl)), r;
1329
+ if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = ra(n.padding)), !n.fullWidth) {
1330
+ let e = Ue(n.borderRadius);
1331
+ e !== null && (r.borderRadius = e);
1332
+ }
1333
+ return Object.assign(r, Ji(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, na), r;
1314
1334
  }
1315
- function $i(e, t = {}) {
1335
+ function oa(e, t = {}) {
1316
1336
  if (e.type !== "wrapper") return null;
1317
1337
  let n = {};
1318
- if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
1319
- let t = e.styles.padding;
1320
- n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
1321
- }
1322
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Wi(e.backgroundImage, t.backgroundImageUrl)), n;
1338
+ return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = ra(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ji(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, na), n;
1323
1339
  }
1324
1340
  // src/utils/mergeTagLabelSegments.ts
1325
- function ea(e, t, n, r = !1) {
1341
+ function sa(e, t, n, r = !1) {
1326
1342
  if (!e) return [];
1327
- let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1328
- for (; (s = i.exec(e)) !== null;) {
1329
- s.index > o && a.push({
1343
+ let i = [], a = 0;
1344
+ for (let o of pe(e, n)) {
1345
+ o.index > a && i.push({
1330
1346
  type: "text",
1331
- value: e.slice(o, s.index)
1347
+ value: e.slice(a, o.index)
1332
1348
  });
1333
- let i = s[0];
1334
- if (ut(i, n)) {
1335
- let e = r ? at(i, t) : void 0;
1336
- a.push(e === void 0 ? {
1349
+ let s = o.value;
1350
+ if (Le(s, n)) {
1351
+ let e = r ? ze(s, t) : void 0;
1352
+ i.push(e === void 0 ? {
1337
1353
  type: "tag",
1338
- value: qe(i, t)
1354
+ value: st(s, t)
1339
1355
  } : {
1340
1356
  type: "text",
1341
1357
  value: e
1342
1358
  });
1343
- } else st(i, n) ? a.push({
1359
+ } else ft(s, n) ? i.push({
1344
1360
  type: "tag",
1345
- value: Le(i, n)
1346
- }) : a.push({
1361
+ value: qe(s, n)
1362
+ }) : i.push({
1347
1363
  type: "text",
1348
- value: i
1364
+ value: s
1349
1365
  });
1350
- o = s.index + i.length;
1366
+ a = o.index + s.length;
1351
1367
  }
1352
- return o < e.length && a.push({
1368
+ return a < e.length && i.push({
1353
1369
  type: "text",
1354
- value: e.slice(o)
1355
- }), a;
1370
+ value: e.slice(a)
1371
+ }), i;
1356
1372
  }
1357
1373
  // src/components/MergeTagPreviewText.vue
1358
- var ta = R({
1374
+ var ca = R({
1359
1375
  name: "MergeTagPreviewText",
1360
1376
  props: { text: {
1361
1377
  type: String,
1362
1378
  required: !0
1363
1379
  } },
1364
1380
  setup(e) {
1365
- let t = L(dn, _n), n = L(Zt, Ve.liquid), r = L(Sn, null), i = C(() => ea(e.text, t.value, n, r?.value ?? !1));
1381
+ let t = L(pn, vn), n = L($t, He.liquid), r = L(Rn, null), i = C(() => sa(e.text, t.value, n, r?.value ?? !1));
1366
1382
  return () => i.value.map((e, t) => e.type === "tag" ? m("span", {
1367
1383
  key: t,
1368
1384
  class: "tpl-merge-tag-label"
1369
1385
  }, e.value) : e.value);
1370
1386
  }
1371
- }), na = ["href"], ra = /* @__PURE__ */ R({
1387
+ }), la = ["href"], ua = /* @__PURE__ */ R({
1372
1388
  __name: "ButtonBlock",
1373
1389
  props: {
1374
1390
  block: {},
1375
1391
  viewport: {}
1376
1392
  },
1377
1393
  setup(e) {
1378
- let t = e, n = In(Cn, "ButtonBlock"), r = C(() => {
1394
+ let t = e, n = Wn(Tn, "ButtonBlock");
1395
+ function r(e) {
1396
+ return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1397
+ }
1398
+ let i = C(() => {
1379
1399
  let e = {
1380
1400
  display: "inline-block",
1381
1401
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
1382
1402
  backgroundColor: t.block.backgroundColor,
1383
1403
  color: t.block.textColor,
1384
1404
  fontSize: `${t.block.fontSize}px`,
1385
- fontWeight: "bold",
1405
+ fontWeight: r(t.block.fontWeight),
1386
1406
  textDecoration: "none",
1387
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : rt(t.block.borderRadius) ?? "0px",
1407
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Ue(t.block.borderRadius) ?? "0px",
1388
1408
  textAlign: "center"
1389
1409
  };
1390
- return Object.assign(e, Zi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1391
- }), i = C(() => ({ textAlign: t.block.align ?? "center" }));
1392
- return (t, n) => (s(), D("div", { style: f(i.value) }, [j("a", {
1410
+ return Object.assign(e, ta(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1411
+ }), a = C(() => ({ textAlign: t.block.align ?? "center" }));
1412
+ return (t, n) => (s(), D("div", { style: f(a.value) }, [j("a", {
1393
1413
  href: e.block.url || "#",
1394
- style: f(r.value),
1414
+ style: f(i.value),
1395
1415
  class: "tpl:cursor-default",
1396
1416
  onClick: n[0] ||= z(() => {}, ["prevent"])
1397
- }, [y(ta, { text: e.block.text }, null, 8, ["text"])], 12, na)], 4));
1417
+ }, [y(ca, { text: e.block.text }, null, 8, ["text"])], 12, la)], 4));
1398
1418
  }
1399
- }), ia = ["innerHTML"], aa = [
1419
+ }), da = ["innerHTML"], fa = [
1400
1420
  "src",
1401
1421
  "width",
1402
1422
  "height"
1403
- ], oa = /* @__PURE__ */ R({
1423
+ ], pa = /* @__PURE__ */ R({
1404
1424
  __name: "CustomBlockIcon",
1405
1425
  props: {
1406
1426
  icon: {},
1407
1427
  size: {}
1408
1428
  },
1409
1429
  setup(e) {
1410
- let t = e, n = C(() => t.size ?? 20), r = C(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = C(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = C(() => r.value ? Ht(t.icon ?? "") : "");
1430
+ let t = e, n = C(() => t.size ?? 20), r = C(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = C(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = C(() => r.value ? Wt(t.icon ?? "") : "");
1411
1431
  return (t, o) => r.value ? (s(), D("span", {
1412
1432
  key: 0,
1413
1433
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1416,33 +1436,33 @@ var ta = R({
1416
1436
  height: `${n.value}px`
1417
1437
  }),
1418
1438
  innerHTML: a.value
1419
- }, null, 12, ia)) : i.value ? (s(), D("img", {
1439
+ }, null, 12, da)) : i.value ? (s(), D("img", {
1420
1440
  key: 1,
1421
1441
  src: e.icon,
1422
1442
  width: n.value,
1423
1443
  height: n.value,
1424
1444
  class: "tpl:inline-block",
1425
1445
  alt: ""
1426
- }, null, 8, aa)) : (s(), F(w(Tr), {
1446
+ }, null, 8, fa)) : (s(), F(w(Or), {
1427
1447
  key: 2,
1428
1448
  size: n.value,
1429
1449
  "stroke-width": 1.5
1430
1450
  }, null, 8, ["size"]));
1431
1451
  }
1432
- }), sa = { class: "tpl:w-full" }, ca = {
1452
+ }), ma = { class: "tpl:w-full" }, ha = {
1433
1453
  key: 0,
1434
1454
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1435
- }, la = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ua = {
1455
+ }, ga = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, _a = {
1436
1456
  key: 1,
1437
1457
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1438
- }, da = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, fa = {
1458
+ }, va = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ya = {
1439
1459
  key: 2,
1440
1460
  class: "tpl:relative"
1441
- }, pa = ["innerHTML"], ma = {
1461
+ }, ba = ["innerHTML"], xa = {
1442
1462
  key: 0,
1443
1463
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
1444
1464
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1445
- }, ha = /* @__PURE__ */ R({
1465
+ }, Sa = /* @__PURE__ */ R({
1446
1466
  __name: "CustomBlock",
1447
1467
  props: {
1448
1468
  block: {},
@@ -1450,7 +1470,7 @@ var ta = R({
1450
1470
  },
1451
1471
  emits: ["fetchData"],
1452
1472
  setup(n, { emit: r }) {
1453
- let a = n, o = r, { t: c } = Yn(), l = L(Nn, null), u = E(""), d = C(() => Wt(u.value)), f = E(!1), p = C(() => l?.getDefinition(a.block.customType)), m = C(() => !!p.value), h = C(() => a.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: b } = pt({
1473
+ let a = n, o = r, { t: c } = Qn(), l = L(Fn, null), u = E(""), d = C(() => Kt(u.value)), f = E(!1), p = C(() => l?.getDefinition(a.block.customType)), m = C(() => !!p.value), h = C(() => a.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: b } = ht({
1454
1474
  definition: p,
1455
1475
  block: h,
1456
1476
  onUpdate: (e, t) => {
@@ -1459,10 +1479,10 @@ var ta = R({
1459
1479
  dataSourceFetched: t
1460
1480
  });
1461
1481
  }
1462
- }), x = L(dn, _n), S = L(Sn, null), k = C(() => {
1482
+ }), x = L(pn, vn), S = L(Rn, null), k = C(() => {
1463
1483
  if (!S?.value) return a.block;
1464
1484
  let e = {};
1465
- for (let [t, n] of Object.entries(a.block.fieldValues)) e[t] = typeof n == "string" ? we(n, x.value) : n;
1485
+ for (let [t, n] of Object.entries(a.block.fieldValues)) e[t] = typeof n == "string" ? ot(n, x.value) : n;
1466
1486
  return {
1467
1487
  ...a.block,
1468
1488
  fieldValues: e
@@ -1479,17 +1499,17 @@ var ta = R({
1479
1499
  }
1480
1500
  }
1481
1501
  }
1482
- let M = rr(A, 150);
1502
+ let M = or(A, 150);
1483
1503
  return e(() => {
1484
1504
  A();
1485
1505
  }), t(() => a.block.fieldValues, () => {
1486
1506
  M();
1487
1507
  }, { deep: !0 }), t(() => S?.value, () => {
1488
1508
  M();
1489
- }), (e, t) => (s(), D("div", sa, [m.value ? f.value ? (s(), D("div", ua, [y(w(Jt), {
1509
+ }), (e, t) => (s(), D("div", ma, [m.value ? f.value ? (s(), D("div", _a, [y(w(Xt), {
1490
1510
  size: 24,
1491
1511
  class: "tpl:text-[var(--tpl-danger)]"
1492
- }), j("span", da, i(w(c).customBlocks.renderError), 1)])) : (s(), D("div", fa, [j("div", { innerHTML: d.value }, null, 8, pa), w(b) && w(v) ? (s(), D("div", ma, [w(g) ? (s(), F(Sr, {
1512
+ }), j("span", va, i(w(c).customBlocks.renderError), 1)])) : (s(), D("div", ya, [j("div", { innerHTML: d.value }, null, 8, ba), w(b) && w(v) ? (s(), D("div", xa, [w(g) ? (s(), F(Tr, {
1493
1513
  key: 1,
1494
1514
  class: "tpl:w-48"
1495
1515
  })) : (s(), D("button", {
@@ -1497,16 +1517,16 @@ var ta = R({
1497
1517
  type: "button",
1498
1518
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1499
1519
  onClick: t[0] ||= z((...e) => w(_) && w(_)(...e), ["stop"])
1500
- }, [p.value?.icon ? (s(), F(oa, {
1520
+ }, [p.value?.icon ? (s(), F(pa, {
1501
1521
  key: 0,
1502
1522
  icon: p.value.icon,
1503
1523
  size: 16
1504
- }, null, 8, ["icon"])) : T("", !0), O(" " + i(p.value?.dataSource?.label || w(c).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (s(), D("div", ca, [y(w(kr), {
1524
+ }, null, 8, ["icon"])) : T("", !0), O(" " + i(p.value?.dataSource?.label || w(c).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (s(), D("div", ha, [y(w(Mr), {
1505
1525
  size: 24,
1506
1526
  class: "tpl:text-[var(--tpl-warning)]"
1507
- }), j("span", la, i(w(c).customBlocks.definitionNotFound), 1)]))]));
1527
+ }), j("span", ga, i(w(c).customBlocks.definitionNotFound), 1)]))]));
1508
1528
  }
1509
- }), ga = { class: "tpl:w-full" }, _a = /* @__PURE__ */ R({
1529
+ }), Ca = { class: "tpl:w-full" }, wa = /* @__PURE__ */ R({
1510
1530
  __name: "DividerBlock",
1511
1531
  props: {
1512
1532
  block: {},
@@ -1518,28 +1538,28 @@ var ta = R({
1518
1538
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1519
1539
  margin: t.block.width === "full" ? "0" : "0 auto"
1520
1540
  }));
1521
- return (e, t) => (s(), D("div", ga, [j("hr", {
1541
+ return (e, t) => (s(), D("div", Ca, [j("hr", {
1522
1542
  class: "tpl:m-0 tpl:border-none",
1523
1543
  style: f(n.value)
1524
1544
  }, null, 4)]));
1525
1545
  }
1526
- }), va = { class: "tpl:w-full" }, ya = ["srcdoc", "title"], ba = {
1546
+ }), Ta = { class: "tpl:w-full" }, Ea = ["srcdoc", "title"], Da = {
1527
1547
  key: 1,
1528
1548
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
1529
- }, xa = {
1549
+ }, Oa = {
1530
1550
  key: 0,
1531
1551
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1532
- }, Sa = {
1552
+ }, ka = {
1533
1553
  key: 1,
1534
1554
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1535
- }, Ca = /* @__PURE__ */ R({
1555
+ }, Aa = /* @__PURE__ */ R({
1536
1556
  __name: "HtmlBlock",
1537
1557
  props: {
1538
1558
  block: {},
1539
1559
  viewport: {}
1540
1560
  },
1541
1561
  setup(e) {
1542
- let n = e, { t: r } = Yn(), a = L(mn, !1), o = C(() => n.block.content.trim().length > 0), c = C(() => a && o.value), l = L(dn, _n), u = L(Sn, null), d = C(() => u?.value ? we(n.block.content, l.value) : n.block.content), p = E(null), m = E(60), h = null;
1562
+ let n = e, { t: r } = Qn(), a = L(hn, !1), o = C(() => n.block.content.trim().length > 0), c = C(() => a && o.value), l = L(pn, vn), u = L(Rn, null), d = C(() => u?.value ? ot(n.block.content, l.value) : n.block.content), p = E(null), m = E(60), h = null;
1543
1563
  function g() {
1544
1564
  let e = p.value?.contentDocument;
1545
1565
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1553,7 +1573,7 @@ var ta = R({
1553
1573
  e || (h?.disconnect(), h = null);
1554
1574
  }), A(() => {
1555
1575
  h?.disconnect(), h = null;
1556
- }), (e, t) => (s(), D("div", va, [c.value ? (s(), D("iframe", {
1576
+ }), (e, t) => (s(), D("div", Ta, [c.value ? (s(), D("iframe", {
1557
1577
  key: 0,
1558
1578
  ref_key: "iframeRef",
1559
1579
  ref: p,
@@ -1563,18 +1583,18 @@ var ta = R({
1563
1583
  class: "tpl:block tpl:w-full tpl:border-0",
1564
1584
  style: f({ height: `${m.value}px` }),
1565
1585
  onLoad: _
1566
- }, null, 44, ya)) : (s(), D("div", ba, [y(w(Dt), {
1586
+ }, null, 44, Ea)) : (s(), D("div", Da, [y(w(kt), {
1567
1587
  size: 24,
1568
1588
  class: "tpl:text-[var(--tpl-text-dim)]"
1569
- }), o.value ? (s(), D("span", xa, i(w(r).html.preview), 1)) : (s(), D("span", Sa, i(w(r).html.empty), 1))]))]));
1589
+ }), o.value ? (s(), D("span", Oa, i(w(r).html.preview), 1)) : (s(), D("span", ka, i(w(r).html.empty), 1))]))]));
1570
1590
  }
1571
- }), wa = ["data-drop-enabled"], Ta = ["href"], Ea = ["src", "alt"], Da = ["src", "alt"], Oa = {
1591
+ }), ja = ["data-drop-enabled"], Ma = ["href"], Na = ["src", "alt"], Pa = ["src", "alt"], Fa = {
1572
1592
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1573
1593
  style: { opacity: "0.7" }
1574
- }, ka = ["href"], Aa = ["src", "alt"], ja = ["src", "alt"], Ma = {
1594
+ }, Ia = ["href"], La = ["src", "alt"], Ra = ["src", "alt"], za = {
1575
1595
  key: 4,
1576
1596
  class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1577
- }, Na = ["aria-label"], Pa = { key: 1 }, Fa = /* @__PURE__ */ R({
1597
+ }, Ba = ["aria-label"], Va = { key: 1 }, Ha = /* @__PURE__ */ R({
1578
1598
  __name: "ImageBlock",
1579
1599
  props: {
1580
1600
  block: {},
@@ -1582,20 +1602,20 @@ var ta = R({
1582
1602
  },
1583
1603
  emits: ["update"],
1584
1604
  setup(e, { emit: t }) {
1585
- let n = e, r = t, { t: a } = Yn(), { syntax: o } = dr(), c = C(() => xe(n.block.src, o));
1605
+ let n = e, r = t, { t: a } = Qn(), { syntax: o } = mr(), c = C(() => Ke(n.block.src, o));
1586
1606
  function l(e) {
1587
1607
  let t = {
1588
1608
  src: e.url,
1589
- ...Et(Ct(e.width, e.height))
1609
+ ...Ot(Tt(e.width, e.height))
1590
1610
  };
1591
1611
  e.alt && (t.alt = e.alt), r("update", t);
1592
1612
  }
1593
- let u = E(), { canBrowse: d, dropEnabled: p, isUploading: m, showOverlay: h, openMediaBrowser: g } = jt({
1613
+ let u = E(), { canBrowse: d, dropEnabled: p, isUploading: m, showOverlay: h, openMediaBrowser: g } = Nt({
1594
1614
  target: u,
1595
1615
  blocked: c,
1596
1616
  apply: l
1597
1617
  }), _ = C(() => ({ textAlign: n.block.align })), v = C(() => {
1598
- let e = n.block.border, t = ["left", "right"].map((t) => ie(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1618
+ let e = n.block.border, t = ["left", "right"].map((t) => Ye(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1599
1619
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1600
1620
  }), b = C(() => {
1601
1621
  let e = n.block.align;
@@ -1603,13 +1623,13 @@ var ta = R({
1603
1623
  maxWidth: "100%",
1604
1624
  width: n.block.width === "full" ? v.value : `${n.block.width}px`,
1605
1625
  height: n.block.height ? `${n.block.height}px` : void 0,
1606
- borderRadius: rt(n.block.borderRadius) ?? void 0,
1607
- ...Zi(n.block.border),
1626
+ borderRadius: Ue(n.block.borderRadius) ?? void 0,
1627
+ ...ta(n.block.border),
1608
1628
  display: "block",
1609
1629
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1610
1630
  marginRight: e === "center" ? "auto" : void 0
1611
1631
  };
1612
- }), x = xt(() => c.value ? void 0 : n.block.src), S = xt(() => c.value ? n.block.placeholderUrl : void 0);
1632
+ }), x = Ct(() => c.value ? void 0 : n.block.src), S = Ct(() => c.value ? n.block.placeholderUrl : void 0);
1613
1633
  return (t, n) => (s(), D("div", {
1614
1634
  ref_key: "dropZoneRef",
1615
1635
  ref: u,
@@ -1617,7 +1637,7 @@ var ta = R({
1617
1637
  "data-drop-enabled": w(p),
1618
1638
  class: "tpl:relative tpl:w-full",
1619
1639
  style: f(_.value)
1620
- }, [w(h) ? (s(), F(Tt, {
1640
+ }, [w(h) ? (s(), F(Dt, {
1621
1641
  key: 0,
1622
1642
  uploading: w(m),
1623
1643
  size: "canvas"
@@ -1633,22 +1653,22 @@ var ta = R({
1633
1653
  src: w(S),
1634
1654
  alt: e.block.alt || w(a).image.altTextPlaceholder,
1635
1655
  style: f(b.value)
1636
- }, null, 12, Ea)], 8, Ta)) : (s(), D("img", {
1656
+ }, null, 12, Na)], 8, Ma)) : (s(), D("img", {
1637
1657
  key: 1,
1638
1658
  class: "tpl:border-0",
1639
1659
  src: w(S),
1640
1660
  alt: e.block.alt,
1641
1661
  style: f(b.value)
1642
- }, null, 12, Da))], 64)) : e.block.src && c.value ? (s(), D("div", {
1662
+ }, null, 12, Pa))], 64)) : e.block.src && c.value ? (s(), D("div", {
1643
1663
  key: 2,
1644
1664
  class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1645
1665
  style: f([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, b.value])
1646
- }, [y(w(Vt), {
1666
+ }, [y(w(Ut), {
1647
1667
  size: 32,
1648
1668
  "stroke-width": 1.5,
1649
1669
  class: "tpl:text-[var(--tpl-primary)]",
1650
1670
  style: { opacity: "0.5" }
1651
- }), j("span", Oa, [y(ta, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), D(P, { key: 3 }, [e.block.linkUrl ? (s(), D("a", {
1671
+ }), j("span", Fa, [y(ca, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), D(P, { key: 3 }, [e.block.linkUrl ? (s(), D("a", {
1652
1672
  key: 0,
1653
1673
  href: e.block.linkUrl,
1654
1674
  target: "_blank",
@@ -1660,33 +1680,33 @@ var ta = R({
1660
1680
  src: w(x),
1661
1681
  alt: e.block.alt || w(a).image.altTextPlaceholder,
1662
1682
  style: f(b.value)
1663
- }, null, 12, Aa)], 8, ka)) : (s(), D("img", {
1683
+ }, null, 12, La)], 8, Ia)) : (s(), D("img", {
1664
1684
  key: 1,
1665
1685
  class: "tpl:border-0",
1666
1686
  src: w(x),
1667
1687
  alt: e.block.alt,
1668
1688
  style: f(b.value)
1669
- }, null, 12, ja))], 64)) : (s(), D("div", Ma, [w(d) ? (s(), D("button", {
1689
+ }, null, 12, Ra))], 64)) : (s(), D("div", za, [w(d) ? (s(), D("button", {
1670
1690
  key: 0,
1671
1691
  "aria-label": w(a).image.browseMedia,
1672
1692
  class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1673
1693
  onClick: n[2] ||= z((...e) => w(g) && w(g)(...e), ["stop"])
1674
- }, [y(w(Vt), {
1694
+ }, [y(w(Ut), {
1675
1695
  size: 14,
1676
1696
  "stroke-width": 1.5
1677
- }), O(" " + i(w(a).image.browseMedia), 1)], 8, Na)) : (s(), D("span", Pa, i(w(a).image.clickToAdd), 1))]))], 12, wa));
1697
+ }), O(" " + i(w(a).image.browseMedia), 1)], 8, Ba)) : (s(), D("span", Va, i(w(a).image.clickToAdd), 1))]))], 12, ja));
1678
1698
  }
1679
- }), Ia = { class: "tpl:w-full" }, La = ["href"], Ra = {
1699
+ }), Ua = { class: "tpl:w-full" }, Wa = ["href"], Ga = {
1680
1700
  key: 1,
1681
1701
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
1682
- }, za = /* @__PURE__ */ R({
1702
+ }, Ka = /* @__PURE__ */ R({
1683
1703
  __name: "MenuBlock",
1684
1704
  props: {
1685
1705
  block: {},
1686
1706
  viewport: {}
1687
1707
  },
1688
1708
  setup(e) {
1689
- let t = e, { t: n } = Yn(), r = In(Cn, "MenuBlock"), a = C(() => ({
1709
+ let t = e, { t: n } = Qn(), r = Wn(Tn, "MenuBlock"), a = C(() => ({
1690
1710
  display: "flex",
1691
1711
  flexWrap: "wrap",
1692
1712
  gap: `0 ${t.block.spacing}px`,
@@ -1698,7 +1718,7 @@ var ta = R({
1698
1718
  function c(e) {
1699
1719
  return e || t.block.linkColor || t.block.color;
1700
1720
  }
1701
- return (t, r) => (s(), D("div", Ia, [o.value ? (s(), D("div", {
1721
+ return (t, r) => (s(), D("div", Ua, [o.value ? (s(), D("div", {
1702
1722
  key: 0,
1703
1723
  style: f(a.value)
1704
1724
  }, [(s(!0), D(P, null, d(e.block.items, (t, n) => (s(), D(P, { key: t.id }, [j("a", {
@@ -1710,18 +1730,18 @@ var ta = R({
1710
1730
  textDecoration: t.underline ? "underline" : "none"
1711
1731
  }),
1712
1732
  onClick: r[0] ||= z(() => {}, ["prevent"])
1713
- }, [y(ta, { text: t.text || "..." }, null, 8, ["text"])], 12, La), n < e.block.items.length - 1 ? (s(), D("span", {
1733
+ }, [y(ca, { text: t.text || "..." }, null, 8, ["text"])], 12, Wa), n < e.block.items.length - 1 ? (s(), D("span", {
1714
1734
  key: 0,
1715
1735
  style: f({
1716
1736
  color: e.block.separatorColor,
1717
1737
  padding: `0 ${e.block.spacing}px`
1718
1738
  })
1719
- }, i(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (s(), D("div", Ra, [y(w(yt), { size: 16 }), j("span", null, i(w(n).menu.addLinks), 1)]))]));
1739
+ }, i(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (s(), D("div", Ga, [y(w(xt), { size: 16 }), j("span", null, i(w(n).menu.addLinks), 1)]))]));
1720
1740
  }
1721
1741
  });
1722
1742
  // src/composables/useEditableTextBlock.ts
1723
- function Ba(e) {
1724
- let t = L(dn, _n), n = L(Sn, null), { syntax: r } = dr(), i = C(() => n?.value ? Pe(e(), t.value) : De(e(), t.value)), a = C(() => tt(Wt(ue(i.value, r)))), o = E(!1), s = E(null), { top: c, left: l } = cr(s), { toLocal: u } = vr(), d = C(() => u({
1743
+ function qa(e) {
1744
+ let t = L(pn, vn), n = L(Rn, null), { syntax: r } = mr(), i = C(() => n?.value ? Be(e(), t.value) : ke(e(), t.value)), a = C(() => We(Kt(Ee(i.value, r)))), o = E(!1), s = E(null), { top: c, left: l } = dr(s), { toLocal: u } = xr(), d = C(() => u({
1725
1745
  top: c.value - 8,
1726
1746
  left: l.value
1727
1747
  }));
@@ -1741,14 +1761,14 @@ function Ba(e) {
1741
1761
  };
1742
1762
  }
1743
1763
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1744
- var Va = ["innerHTML"], Ha = /* @__PURE__ */ R({
1764
+ var Ja = ["innerHTML"], Ya = /* @__PURE__ */ R({
1745
1765
  __name: "ParagraphBlock",
1746
1766
  props: {
1747
1767
  block: {},
1748
1768
  viewport: {}
1749
1769
  },
1750
1770
  setup(e) {
1751
- let t = e, n = I(() => import("./ParagraphEditor-XGUkV5Uw.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = Ba(() => t.block.content);
1771
+ let t = e, n = I(() => import("./ParagraphEditor-BWBQ3jKz.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = qa(() => t.block.content);
1752
1772
  return (t, u) => (s(), D("div", {
1753
1773
  ref_key: "blockRef",
1754
1774
  ref: i,
@@ -1767,11 +1787,11 @@ var Va = ["innerHTML"], Ha = /* @__PURE__ */ R({
1767
1787
  key: 1,
1768
1788
  class: "tpl-text-content tpl:outline-none",
1769
1789
  innerHTML: w(o)
1770
- }, null, 8, Va))], 544));
1790
+ }, null, 8, Ja))], 544));
1771
1791
  }
1772
1792
  });
1773
1793
  // src/utils/updateBlockList.ts
1774
- function Ua(e, t, n, r = 0, i) {
1794
+ function Xa(e, t, n, r = 0, i) {
1775
1795
  let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
1776
1796
  if (o.some((e) => !s.includes(e.id))) return;
1777
1797
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1784,67 +1804,79 @@ function Ua(e, t, n, r = 0, i) {
1784
1804
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1785
1805
  }
1786
1806
  // src/utils/mergeTagTokens.ts
1787
- function Wa(e, t, n) {
1807
+ function Za(e, t, n) {
1788
1808
  let r = [], i = "\0MT";
1789
1809
  for (; e.includes(i);) i += "_";
1790
- let a = n === "html" ? ve(e, (e) => {
1810
+ let a = n === "html" ? Te(e, (e) => {
1791
1811
  let t = r.push(e) - 1;
1792
1812
  return `${i}${t}\u0000`;
1793
1813
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1794
1814
  start: e.index,
1795
1815
  end: e.index + e[0].length
1796
- })), s = [];
1797
- for (let e of [t.logic, t.value]) {
1798
- let t = new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "g");
1799
- for (let e of a.matchAll(t)) {
1800
- let t = e.index, r = t + e[0].length;
1801
- o.some((e) => t < e.end && r > e.start) || s.some((e) => t < e.end && r > e.start) || s.push({
1802
- start: t,
1803
- end: r,
1804
- value: n === "html" ? Me(e[0]) : e[0]
1805
- });
1816
+ })), s = [], c = Me(a, t, "logic"), l = [], u = 0;
1817
+ for (let e of ["logic", "value"]) {
1818
+ let r = 0;
1819
+ for (let i of e === "logic" ? c : Me(a, t, "value")) {
1820
+ let t = i.index, a = t + i.value.length;
1821
+ for (; o[r]?.end <= t;) r++;
1822
+ let c = o[r];
1823
+ if (!(c && t < c.end && a > c.start)) {
1824
+ if (e === "value") {
1825
+ for (; l[u]?.end <= t;) u++;
1826
+ let e = l[u];
1827
+ if (e && t < e.end && a > e.start) continue;
1828
+ }
1829
+ e === "logic" && l.push({
1830
+ start: t,
1831
+ end: a
1832
+ }), s.push({
1833
+ start: t,
1834
+ end: a,
1835
+ value: n === "html" ? Ne(i.value) : i.value
1836
+ });
1837
+ }
1806
1838
  }
1807
1839
  }
1808
1840
  return [...r, ...s.map((e) => e.value)].sort();
1809
1841
  }
1810
- function Ga(e, t, n, r) {
1811
- return JSON.stringify(Wa(e, n, r)) !== JSON.stringify(Wa(t, n, r));
1842
+ function Qa(e, t, n, r) {
1843
+ return JSON.stringify(Za(e, n, r)) !== JSON.stringify(Za(t, n, r));
1812
1844
  }
1813
1845
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1814
- var Ka = [
1846
+ var $a = [
1815
1847
  "data-state",
1816
1848
  "aria-label",
1817
1849
  "title",
1818
1850
  "aria-expanded",
1819
1851
  "aria-controls",
1820
1852
  "onKeydown"
1821
- ], qa = [
1853
+ ], eo = [
1822
1854
  "aria-label",
1823
1855
  "aria-labelledby",
1824
1856
  "aria-describedby",
1825
1857
  "onKeydown"
1826
- ], Ja = ["id"], Ya = ["id"], Xa = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Za = ["disabled"], Qa = {
1858
+ ], to = ["id"], no = ["id"], ro = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, io = ["disabled"], ao = {
1827
1859
  key: 0,
1828
1860
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1829
- }, $a = {
1861
+ }, oo = {
1830
1862
  key: 1,
1831
1863
  class: "tpl:m-0"
1832
- }, eo = { class: "tpl:m-0" }, to = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, no = {
1864
+ }, so = { class: "tpl:m-0" }, co = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, lo = {
1833
1865
  key: 3,
1834
1866
  class: "tpl:m-0"
1835
- }, ro = {
1867
+ }, uo = {
1836
1868
  key: 4,
1837
1869
  class: "tpl:m-0"
1838
- }, io = {
1870
+ }, fo = {
1839
1871
  key: 5,
1840
1872
  class: "tpl:m-0"
1841
- }, ao = {
1873
+ }, po = {
1842
1874
  key: 6,
1843
1875
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1844
- }, oo = ["onClick"], so = {
1876
+ }, mo = ["onClick"], ho = {
1845
1877
  key: 7,
1846
1878
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1847
- }, co = ["data-testid", "disabled"], lo = /*#__PURE__*/ Lt(/* @__PURE__ */ R({
1879
+ }, go = ["data-testid", "disabled"], _o = /*#__PURE__*/ zt(/* @__PURE__ */ R({
1848
1880
  __name: "LocaleStatusChip",
1849
1881
  props: {
1850
1882
  blockId: {},
@@ -1864,24 +1896,24 @@ var Ka = [
1864
1896
  },
1865
1897
  emits: ["target"],
1866
1898
  setup(e, { emit: n }) {
1867
- let r = e, a = n, l = L(Wn, null), p = L(Fn, null), m = L($t, null), h = L(Bn, "en") ?? "en", { t: g, format: _ } = Yn(), v = ur(), y = gr(), { toLocal: x } = vr(), S = E(null), O = E(null), A = E(!1), M = E(!1), N = E(null), ee = E(null), te = null, I = E({
1899
+ let r = e, a = n, l = L(qn, null), p = L(Hn, null), m = L(tn, null), h = L(Mn, "en") ?? "en", { t: g, format: _ } = Qn(), v = pr(), y = yr(), { toLocal: x } = xr(), S = E(null), O = E(null), A = E(!1), M = E(!1), N = E(null), ee = E(null), te = null, I = E({
1868
1900
  top: 0,
1869
1901
  left: 0
1870
1902
  }), R = E({
1871
1903
  maxHeight: 0,
1872
1904
  maxWidth: 0
1873
- }), ne = `tpl-locale-popover-${Xe()}`, ie = C(() => Qn(l?.activeLocale?.value ?? "")), ae = C(() => Qn(l?.content.value.settings.locale ?? "en"));
1905
+ }), ne = `tpl-locale-popover-${at()}`, ie = C(() => tr(l?.activeLocale?.value ?? "")), ae = C(() => tr(l?.content.value.settings.locale ?? "en"));
1874
1906
  function oe(e, t) {
1875
1907
  switch (e) {
1876
1908
  case "tags-differ": return g.localization.tagsDiffer;
1877
1909
  case "hidden": return _(g.localization.hidden, { language: ie.value });
1878
1910
  case "changed": return _(g.localization.changed, { language: ie.value });
1879
- case "default-stale": return Zn(g.localization.staleLanguages, t, h);
1880
- case "missing": return t === 1 ? g.localization.notTranslated : Zn(g.localization.notTranslatedCount, t, h);
1881
- default: return t === 1 ? g.localization.outOfDate : Zn(g.localization.staleCount, t, h);
1911
+ case "default-stale": return er(g.localization.staleLanguages, t, h);
1912
+ case "missing": return t === 1 ? g.localization.notTranslated : er(g.localization.notTranslatedCount, t, h);
1913
+ default: return t === 1 ? g.localization.outOfDate : er(g.localization.staleCount, t, h);
1882
1914
  }
1883
1915
  }
1884
- let se = C(() => oe(r.state, r.count)), B = C(() => r.popoverState ?? r.state), ce = C(() => r.popoverCount ?? r.count), le = C(() => oe(B.value, ce.value)), ue = C(() => r.state === "hidden" ? Er : r.state === "changed" ? Kt : r.state === "default-stale" ? Ut : r.state === "stale" ? zt : Jt), de = C(() => B.value === "default-stale" || (B.value === "missing" || B.value === "stale") && ce.value > 1), fe = C(() => r.editable && r.eligibleGaps && p?.isAvailable.value);
1916
+ let se = C(() => oe(r.state, r.count)), B = C(() => r.popoverState ?? r.state), ce = C(() => r.popoverCount ?? r.count), le = C(() => oe(B.value, ce.value)), ue = C(() => r.state === "hidden" ? kr : r.state === "changed" ? Jt : r.state === "default-stale" ? Gt : r.state === "stale" ? Vt : Xt), de = C(() => B.value === "default-stale" || (B.value === "missing" || B.value === "stale") && ce.value > 1), fe = C(() => r.editable && r.eligibleGaps && p?.isAvailable.value);
1885
1917
  function pe(e = !1) {
1886
1918
  A.value = !1, M.value = !1, te = null, e && S.value?.focus({ preventScroll: !0 });
1887
1919
  }
@@ -1990,7 +2022,7 @@ var Ka = [
1990
2022
  size: 12,
1991
2023
  "stroke-width": 2,
1992
2024
  "aria-hidden": "true"
1993
- }))], 40, Ka), w(y) && A.value ? (s(), F(b, {
2025
+ }))], 40, $a), w(y) && A.value ? (s(), F(b, {
1994
2026
  key: 0,
1995
2027
  to: w(y)
1996
2028
  }, [j("div", {
@@ -2016,80 +2048,80 @@ var Ka = [
2016
2048
  j("h3", {
2017
2049
  id: `${ne}-question`,
2018
2050
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
2019
- }, i(w(Zn)(w(g).localization.translationConfirmation, e.translationCount ?? 0, w(h))), 9, Ja),
2051
+ }, i(w(er)(w(g).localization.translationConfirmation, e.translationCount ?? 0, w(h))), 9, to),
2020
2052
  j("p", {
2021
2053
  id: `${ne}-warning`,
2022
2054
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
2023
- }, i(w(_)(w(g).localization.translationDescription, { language: ie.value })), 9, Ya),
2024
- j("div", Xa, [j("button", {
2055
+ }, i(w(_)(w(g).localization.translationDescription, { language: ie.value })), 9, no),
2056
+ j("div", ro, [j("button", {
2025
2057
  ref_key: "confirmationCancel",
2026
2058
  ref: ee,
2027
2059
  type: "button",
2028
2060
  "data-testid": "translation-confirm-cancel",
2029
- class: c(w(er)),
2061
+ class: c(w(rr)),
2030
2062
  onClick: Te
2031
2063
  }, i(w(g).localization.cancel), 3), j("button", {
2032
2064
  type: "button",
2033
2065
  "data-testid": "translation-confirm",
2034
- class: c(w(tr)),
2066
+ class: c(w(ir)),
2035
2067
  disabled: !fe.value || !!w(p)?.running.value || !e.translationCount,
2036
2068
  onClick: De
2037
- }, i(w(Zn)(w(g).localization.translateAllFields, e.translationCount ?? 0, w(h))), 11, Za)])
2069
+ }, i(w(er)(w(g).localization.translateAllFields, e.translationCount ?? 0, w(h))), 11, io)])
2038
2070
  ], 64)) : (s(), D(P, { key: 1 }, [
2039
- de.value ? (s(), D("p", Qa, i(le.value), 1)) : T("", !0),
2040
- B.value === "missing" ? (s(), D("p", $a, i(w(_)(w(g).localization.missingExplanation, { default: ae.value })), 1)) : B.value === "stale" ? (s(), D(P, { key: 2 }, [j("p", eo, i(w(_)(w(g).localization.staleExplanation, { default: ae.value })), 1), j("p", to, i(w(_)(w(g).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : B.value === "tags-differ" ? (s(), D("p", no, i(w(_)(w(g).localization.tagsDifferExplanation, { default: ae.value })), 1)) : B.value === "changed" ? (s(), D("p", ro, i(w(Zn)(w(g).localization.changedProperties, ce.value, w(h), { default: ae.value })), 1)) : B.value === "hidden" ? (s(), D("p", io, i(w(_)(w(g).localization.hiddenExplanation, { language: ie.value })), 1)) : (s(), D("ul", ao, [(s(!0), D(P, null, d(e.staleLocales, (e) => (s(), D("li", {
2071
+ de.value ? (s(), D("p", ao, i(le.value), 1)) : T("", !0),
2072
+ B.value === "missing" ? (s(), D("p", oo, i(w(_)(w(g).localization.missingExplanation, { default: ae.value })), 1)) : B.value === "stale" ? (s(), D(P, { key: 2 }, [j("p", so, i(w(_)(w(g).localization.staleExplanation, { default: ae.value })), 1), j("p", co, i(w(_)(w(g).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : B.value === "tags-differ" ? (s(), D("p", lo, i(w(_)(w(g).localization.tagsDifferExplanation, { default: ae.value })), 1)) : B.value === "changed" ? (s(), D("p", uo, i(w(er)(w(g).localization.changedProperties, ce.value, w(h), { default: ae.value })), 1)) : B.value === "hidden" ? (s(), D("p", fo, i(w(_)(w(g).localization.hiddenExplanation, { language: ie.value })), 1)) : (s(), D("ul", po, [(s(!0), D(P, null, d(e.staleLocales, (e) => (s(), D("li", {
2041
2073
  key: e,
2042
2074
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
2043
- }, [j("span", null, i(w(Qn)(e)), 1), j("button", {
2075
+ }, [j("span", null, i(w(tr)(e)), 1), j("button", {
2044
2076
  type: "button",
2045
- class: c(w($n)),
2077
+ class: c(w(nr)),
2046
2078
  onClick: (t) => Ce(e)
2047
- }, i(w(g).localization.open), 11, oo)]))), 128))])),
2048
- e.editable && B.value !== "default-stale" ? (s(), D("div", so, [
2079
+ }, i(w(g).localization.open), 11, mo)]))), 128))])),
2080
+ e.editable && B.value !== "default-stale" ? (s(), D("div", ho, [
2049
2081
  fe.value && (B.value === "missing" || B.value === "stale" || B.value === "tags-differ") ? (s(), D("button", {
2050
2082
  key: 0,
2051
2083
  type: "button",
2052
2084
  ref_key: "retranslate",
2053
2085
  ref: N,
2054
2086
  "data-testid": B.value === "missing" ? "locale-translate" : "locale-retranslate",
2055
- class: c(w(er)),
2087
+ class: c(w(rr)),
2056
2088
  disabled: !!w(p)?.running.value,
2057
2089
  onClick: we
2058
- }, i(B.value === "missing" ? w(g).localization.translate : w(g).localization.retranslate), 11, co)) : T("", !0),
2090
+ }, i(B.value === "missing" ? w(g).localization.translate : w(g).localization.retranslate), 11, go)) : T("", !0),
2059
2091
  B.value === "stale" || B.value === "tags-differ" ? (s(), D(P, { key: 1 }, [B.value === "stale" ? (s(), D("button", {
2060
2092
  key: 0,
2061
2093
  type: "button",
2062
2094
  "data-testid": "locale-keep",
2063
- class: c(fe.value ? w($n) : w(er)),
2095
+ class: c(fe.value ? w(nr) : w(rr)),
2064
2096
  onClick: be
2065
2097
  }, i(w(g).localization.keep), 3)) : T("", !0), j("button", {
2066
2098
  type: "button",
2067
2099
  "data-testid": "locale-use-default",
2068
- class: c(B.value === "tags-differ" && !fe.value ? w(er) : w($n)),
2100
+ class: c(B.value === "tags-differ" && !fe.value ? w(rr) : w(nr)),
2069
2101
  onClick: n[0] ||= (t) => xe(B.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
2070
2102
  }, i(w(_)(w(g).localization.useDefaultLanguage, { default: ae.value })), 3)], 64)) : T("", !0),
2071
2103
  B.value === "changed" ? (s(), D("button", {
2072
2104
  key: 2,
2073
2105
  type: "button",
2074
2106
  "data-testid": "locale-reset",
2075
- class: c(w(er)),
2107
+ class: c(w(rr)),
2076
2108
  onClick: n[1] ||= (t) => xe(e.setPaths)
2077
2109
  }, i(w(g).localization.resetChanges), 3)) : T("", !0),
2078
2110
  B.value === "hidden" ? (s(), D("button", {
2079
2111
  key: 3,
2080
2112
  type: "button",
2081
2113
  "data-testid": "locale-show",
2082
- class: c(w(er)),
2114
+ class: c(w(rr)),
2083
2115
  onClick: Se
2084
2116
  }, i(w(g).localization.show), 3)) : T("", !0)
2085
2117
  ])) : T("", !0)
2086
- ], 64))], 44, qa)], 8, ["to"])) : T("", !0)], 64));
2118
+ ], 64))], 44, eo)], 8, ["to"])) : T("", !0)], 64));
2087
2119
  }
2088
- }), [["__scopeId", "data-v-3343ae7d"]]), uo = /* @__PURE__ */ R({
2120
+ }), [["__scopeId", "data-v-3343ae7d"]]), vo = /* @__PURE__ */ R({
2089
2121
  __name: "LocaleMarkers",
2090
2122
  props: { block: {} },
2091
2123
  setup(e) {
2092
- let n = e, r = L(Wn, null), i = L(un, void 0), a = L(On, []), o = L(Zt, Ve.liquid), c = L(kn, C(() => /* @__PURE__ */ new Set())), l = C(() => r?.activeLocale?.value), u = C(() => l.value ? n.block.l10n?.[l.value] : void 0), d = C(() => ({
2124
+ let n = e, r = L(qn, null), i = L(fn, void 0), a = L(An, []), o = L($t, He.liquid), c = L(jn, C(() => /* @__PURE__ */ new Set())), l = C(() => r?.activeLocale?.value), u = C(() => l.value ? n.block.l10n?.[l.value] : void 0), d = C(() => ({
2093
2125
  blocks: [n.block.type === "section" || n.block.type === "wrapper" ? {
2094
2126
  ...n.block,
2095
2127
  children: []
@@ -2098,14 +2130,14 @@ var Ka = [
2098
2130
  locale: r.content.value.settings.locale,
2099
2131
  locales: r.content.value.settings.locales
2100
2132
  }
2101
- })), f = C(() => r && l.value && !c.value.has(l.value) ? Ke(d.value, l.value, a) : {
2133
+ })), f = C(() => r && l.value && !c.value.has(l.value) ? ae(d.value, l.value, a) : {
2102
2134
  missing: [],
2103
2135
  stale: [],
2104
2136
  translated: []
2105
2137
  }), p = C(() => f.value.stale.map((e) => e.slice(n.block.id.length + 1))), m = C(() => f.value.translated.flatMap((e) => {
2106
- let t = e.slice(n.block.id.length + 1), r = fe(n.block, t), i = u.value?.text?.[t]?.value, a = n.block.type === "html" || lt[n.block.type]?.includes(t) ? "html" : "text";
2107
- return typeof r == "string" && i !== void 0 && Ga(r, i, o, a) ? [t] : [];
2108
- })), h = E(null), g = C(() => r && l.value && !c.value.has(l.value) ? Ge(d.value, l.value, {
2138
+ let t = e.slice(n.block.id.length + 1), r = _e(n.block, t), i = u.value?.text?.[t]?.value, a = n.block.type === "html" || dt[n.block.type]?.includes(t) ? "html" : "text";
2139
+ return typeof r == "string" && i !== void 0 && Qa(r, i, o, a) ? [t] : [];
2140
+ })), h = E(null), g = C(() => r && l.value && !c.value.has(l.value) ? ye(d.value, l.value, {
2109
2141
  syntax: o,
2110
2142
  definitions: a,
2111
2143
  doNotTranslate: i?.doNotTranslate,
@@ -2115,9 +2147,9 @@ var Ka = [
2115
2147
  let t = e.slice(n.block.id.length + 1);
2116
2148
  return f.value.translated.includes(e) && !m.value.includes(t);
2117
2149
  })), v = C(() => Object.keys(u.value?.set ?? {}).filter((e) => {
2118
- let t = e.split("."), r = t.pop(), i = t.length ? fe(n.block, t.join(".")) : n.block;
2119
- return Array.isArray(i) ? fe(i, r) !== void 0 : i !== void 0;
2120
- })), y = C(() => !l.value && r ? (r.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && Ke(d.value, e, a).stale.length > 0) : []), b = C(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : v.value.length ? "changed" : null : y.value.length ? "default-stale" : null);
2150
+ let t = e.split("."), r = t.pop(), i = t.length ? _e(n.block, t.join(".")) : n.block;
2151
+ return Array.isArray(i) ? _e(i, r) !== void 0 : i !== void 0;
2152
+ })), y = C(() => !l.value && r ? (r.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && ae(d.value, e, a).stale.length > 0) : []), b = C(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : v.value.length ? "changed" : null : y.value.length ? "default-stale" : null);
2121
2153
  function x(e) {
2122
2154
  return e === "missing" ? f.value.missing.length : e === "stale" ? p.value.length : e === "tags-differ" ? m.value.length : e === "default-stale" ? y.value.length : v.value.length;
2123
2155
  }
@@ -2126,12 +2158,12 @@ var Ka = [
2126
2158
  h.value = null;
2127
2159
  });
2128
2160
  let k = C(() => {
2129
- let e = fe(n.block, p.value[0] ?? "");
2161
+ let e = _e(n.block, p.value[0] ?? "");
2130
2162
  if (typeof e != "string") return "";
2131
2163
  let t = e.split(/<[^>]*>/).join("");
2132
2164
  return Array.from(t).slice(0, 60).join("");
2133
2165
  });
2134
- return (t, n) => w(i) && b.value ? (s(), F(lo, {
2166
+ return (t, n) => w(i) && b.value ? (s(), F(_o, {
2135
2167
  key: 0,
2136
2168
  "block-id": e.block.id,
2137
2169
  state: b.value,
@@ -2165,21 +2197,21 @@ var Ka = [
2165
2197
  "editable"
2166
2198
  ])) : T("", !0);
2167
2199
  }
2168
- }), fo = [
2200
+ }), yo = [
2169
2201
  "data-block-id",
2170
2202
  "data-block-type",
2171
2203
  "data-tpl-picked"
2172
- ], po = ["aria-label"], mo = ["data-lock-holder"], ho = ["aria-label"], go = [
2204
+ ], bo = ["aria-label"], xo = ["data-lock-holder"], So = ["aria-label"], Co = [
2173
2205
  "aria-label",
2174
2206
  "aria-pressed",
2175
2207
  "title"
2176
- ], _o = ["aria-label", "title"], vo = ["aria-label", "title"], yo = ["aria-label", "title"], bo = {
2208
+ ], wo = ["aria-label", "title"], To = ["aria-label", "title"], Eo = ["aria-label", "title"], Do = {
2177
2209
  key: 3,
2178
2210
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
2179
- }, xo = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, So = {
2211
+ }, Oo = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, ko = {
2180
2212
  key: 4,
2181
2213
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2182
- }, Co = ["aria-label", "title"], wo = /*#__PURE__*/ Lt(/* @__PURE__ */ R({
2214
+ }, Ao = ["aria-label", "title"], jo = /*#__PURE__*/ zt(/* @__PURE__ */ R({
2183
2215
  __name: "BlockWrapper",
2184
2216
  props: {
2185
2217
  block: {},
@@ -2192,33 +2224,33 @@ var Ka = [
2192
2224
  },
2193
2225
  emits: ["select"],
2194
2226
  setup(e, { emit: n }) {
2195
- let o = I(() => import("./BlockIssueBadge-DaPTq1RE.js")), l = e, d = C(() => l.displayBlock ?? l.block), p = n, { t: m, format: h } = Yn(), g = L(Gn, null), _ = E(null), v = C(() => g?.liftedBlockId.value === l.block.id), b = C(() => v.value ? h(m.blockActions.dragLifted, { block: l.block.type }) : m.blockActions.drag);
2227
+ let o = I(() => import("./BlockIssueBadge-Bmtc50BQ.js")), l = e, d = C(() => l.displayBlock ?? l.block), p = n, { t: m, format: h } = Qn(), g = L(Jn, null), _ = E(null), v = C(() => g?.liftedBlockId.value === l.block.id), b = C(() => v.value ? h(m.blockActions.dragLifted, { block: l.block.type }) : m.blockActions.drag);
2196
2228
  async function x() {
2197
2229
  await u(), _.value?.focus();
2198
2230
  }
2199
2231
  function S(e) {
2200
2232
  g && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), v.value ? g.drop(l.block.id) : g.lift(l.block.id)) : v.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), g.cancel(), x()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), g.moveUp(l.block.id), x()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), g.moveDown(l.block.id), x())));
2201
2233
  }
2202
- let k = C(() => !l.viewport || !d.value.visibility ? !1 : d.value.visibility[l.viewport] === !1), A = C(() => !!(ye?.activeLocale?.value && l.block.l10n?.[ye.activeLocale.value]?.hidden)), M = C(() => l.previewMode === !0 && (k.value || A.value)), N = C(() => l.viewport ? {
2234
+ let k = C(() => !l.viewport || !d.value.visibility ? !1 : d.value.visibility[l.viewport] === !1), A = C(() => !!(be?.activeLocale?.value && l.block.l10n?.[be.activeLocale.value]?.hidden)), M = C(() => l.previewMode === !0 && (k.value || A.value)), N = C(() => l.viewport ? {
2203
2235
  desktop: m.viewport.desktop,
2204
2236
  mobile: m.viewport.mobile
2205
- }[l.viewport] ?? l.viewport : ""), ee = C(() => !!d.value.displayCondition), P = L(Vn, null), te = L(Pn, null), R = L(Tn, {}), ne = C(() => R.savedBlocks?.isPicking.value === !0), re = C(() => !l.nested && R.savedBlocks?.isAvailable.value === !0 && R.savedBlocks?.canCreate.value === !0), ie = C(() => l.isSelected && !ne.value), ae = C(() => R.comments?.getBlockCount(l.block.id) ?? 0), oe = E(null), se = E(null), B = E(null), ce = E(null), le = E({
2237
+ }[l.viewport] ?? l.viewport : ""), ee = C(() => !!d.value.displayCondition), P = L(Un, null), te = L(In, null), R = L(Dn, {}), ne = C(() => R.savedBlocks?.isPicking.value === !0), re = C(() => !l.nested && R.savedBlocks?.isAvailable.value === !0 && R.savedBlocks?.canCreate.value === !0), ie = C(() => l.isSelected && !ne.value), ae = C(() => R.comments?.getBlockCount(l.block.id) ?? 0), oe = E(null), B = E(null), ce = E(null), le = E(null), ue = E({
2206
2238
  left: "calc(100% + 8px)",
2207
2239
  top: "50%"
2208
- }), ue = E(!1), de = C(() => se.value ?? ce.value), fe = C(() => de.value?.closest(".tpl-body"));
2209
- function pe() {
2210
- let e = ue.value, t = se.value, n = ce.value, r = oe.value;
2240
+ }), de = E(!1), fe = C(() => B.value ?? le.value), pe = C(() => fe.value?.closest(".tpl-body"));
2241
+ function me() {
2242
+ let e = de.value, t = B.value, n = le.value, r = oe.value;
2211
2243
  if (!t && !n || !r?.offsetWidth) return;
2212
- let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = fe.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2244
+ let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = pe.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2213
2245
  if (n?.offsetWidth) {
2214
2246
  let t = l ? -4 - n.offsetWidth : r.offsetWidth + 4, i = t >= s + 4 && t + n.offsetWidth + 4 <= c;
2215
2247
  if (e === i) {
2216
- ue.value = !i, u(pe);
2248
+ de.value = !i, u(me);
2217
2249
  return;
2218
2250
  }
2219
2251
  }
2220
2252
  if (!t?.offsetWidth) return;
2221
- let d = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), f = B.value, p = Math.max(28, f?.offsetHeight ? f.offsetTop + f.offsetHeight + 4 : 0), m = Math.max(p + t.offsetHeight / 2, r.offsetHeight / 2), h = d < r.offsetWidth && m + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${m}px` : "50%";
2253
+ let d = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), f = ce.value, p = Math.max(28, f?.offsetHeight ? f.offsetTop + f.offsetHeight + 4 : 0), m = Math.max(p + t.offsetHeight / 2, r.offsetHeight / 2), h = d < r.offsetWidth && m + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${m}px` : "50%";
2222
2254
  if (d >= r.offsetWidth && n?.offsetWidth && !e && !l) {
2223
2255
  let e = (n.getBoundingClientRect().bottom - i.top) / a + 4 + t.offsetHeight / 2;
2224
2256
  e > r.offsetHeight / 2 && (h = `${e}px`);
@@ -2230,37 +2262,40 @@ var Ka = [
2230
2262
  d = Math.max(s + 4, Math.min(n, c - t.offsetWidth - 4));
2231
2263
  }
2232
2264
  }
2233
- (le.value.left !== `${d}px` || le.value.top !== h) && (le.value = {
2265
+ (ue.value.left !== `${d}px` || ue.value.top !== h) && (ue.value = {
2234
2266
  left: `${d}px`,
2235
2267
  top: h
2236
2268
  });
2237
2269
  }
2238
- a(pe), lr(C(() => de.value ? [
2270
+ a(me), fr(C(() => fe.value ? [
2239
2271
  oe.value,
2240
- se.value,
2241
2272
  B.value,
2242
2273
  ce.value,
2243
- fe.value
2244
- ].filter((e) => !!e) : []), pe), or(fe, "scroll", pe, { passive: !0 });
2245
- let me = C(() => R.collaboration?.lockOf(l.block.id) ?? null), he = C(() => me.value?.holder.type === "guest" ? m.collaboration.guest : me.value?.holder.name ?? ""), ge = C(() => R.collaboration?.agentHighlightOf(l.block.id) ?? R.ai?.highlightOf(l.block.id) ?? null), _e = Nt(() => d.value.type === "section" ? d.value.backgroundImage : void 0), ve = Nt(() => d.value.type === "section" ? d.value.wrapper?.backgroundImage : void 0), ye = L(Wn, null), be = ye ? Xn(ye) : null, xe = L(Mn, null) ?? be?.content ?? null;
2246
- t([() => ye?.activeLocale?.value, () => be && ft(be.settings.value)], pe, { flush: "post" });
2247
- let Se = L(hn, void 0), Ce = C(() => Yi(d.value, {
2248
- backgroundImageUrl: _e.value,
2249
- heroBoxWidth: wt(d.value) ? kt(d.value, xe?.value, Se) : void 0
2250
- })), we = C(() => Qi(d.value, { backgroundImageUrl: ve.value }));
2251
- function Te(e) {
2274
+ le.value,
2275
+ pe.value
2276
+ ].filter((e) => !!e) : []), me), lr(pe, "scroll", me, { passive: !0 });
2277
+ let he = C(() => R.collaboration?.lockOf(l.block.id) ?? null), ge = C(() => he.value?.holder.type === "guest" ? m.collaboration.guest : he.value?.holder.name ?? ""), _e = C(() => R.collaboration?.agentHighlightOf(l.block.id) ?? R.ai?.highlightOf(l.block.id) ?? null), ve = Ft(() => d.value.type === "section" ? d.value.backgroundImage : void 0), ye = Ft(() => d.value.type === "section" ? d.value.wrapper?.backgroundImage : void 0), be = L(qn, null), xe = be ? $n(be) : null, Se = L(Pn, null) ?? xe?.content ?? null;
2278
+ t([() => be?.activeLocale?.value, () => xe && se(xe.settings.value)], me, { flush: "post" });
2279
+ let Ce = L(gn, void 0), we = C(() => $i(d.value, {
2280
+ backgroundImageUrl: ve.value,
2281
+ heroBoxWidth: Et(d.value) ? jt(d.value, Se?.value, Ce) : void 0
2282
+ })), Te = C(() => aa(d.value, { backgroundImageUrl: ye.value })), Ee = C(() => {
2283
+ let e = d.value;
2284
+ return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2285
+ }), De = C(() => ia(Ee.value?.wrapper?.padding));
2286
+ function Oe(e) {
2252
2287
  l.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), p("select"));
2253
2288
  }
2254
- function Ee() {
2289
+ function ke() {
2255
2290
  P?.deleteBlock(l.block.id);
2256
2291
  }
2257
- function De() {
2292
+ function Ae() {
2258
2293
  P?.duplicateBlock(l.block);
2259
2294
  }
2260
- function Oe() {
2295
+ function je() {
2261
2296
  R.savedBlocks?.startPicking(l.block.id);
2262
2297
  }
2263
- function ke() {
2298
+ function Me() {
2264
2299
  te?.toggleBlock(l.block.id);
2265
2300
  }
2266
2301
  return (t, n) => M.value ? T("", !0) : (s(), D("div", {
@@ -2277,48 +2312,48 @@ var Ka = [
2277
2312
  "data-block-id": e.block.id,
2278
2313
  "data-block-type": e.block.type,
2279
2314
  "data-tpl-picked": e.picked || void 0,
2280
- onClick: Te
2315
+ onClick: Oe
2281
2316
  }, [
2282
2317
  j("div", {
2283
2318
  ref_key: "badgesElement",
2284
- ref: B,
2319
+ ref: ce,
2285
2320
  class: "tpl-block-badges tpl:absolute tpl:top-1 tpl:inset-e-1 tpl:z-10 tpl:flex tpl:gap-1"
2286
2321
  }, [
2287
2322
  ae.value > 0 && !k.value ? (s(), D("button", {
2288
2323
  key: 0,
2289
2324
  ref_key: "commentElement",
2290
- ref: ce,
2291
- class: c(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", ue.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2325
+ ref: le,
2326
+ class: c(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", de.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2292
2327
  "aria-label": w(h)(w(m).blockActions.comments, { count: String(ae.value) }),
2293
2328
  onClick: n[0] ||= z((t) => w(R).comments?.openForBlock(e.block.id), ["stop"])
2294
- }, [y(w(Gt), {
2329
+ }, [y(w(qt), {
2295
2330
  size: 12,
2296
2331
  "stroke-width": 2.5
2297
- }), O(" " + i(ae.value), 1)], 10, po)) : T("", !0),
2332
+ }), O(" " + i(ae.value), 1)], 10, bo)) : T("", !0),
2298
2333
  y(w(o), { "block-id": e.block.id }, null, 8, ["block-id"]),
2299
- e.previewMode ? T("", !0) : (s(), F(uo, {
2334
+ e.previewMode ? T("", !0) : (s(), F(vo, {
2300
2335
  key: 1,
2301
2336
  block: e.block
2302
2337
  }, null, 8, ["block"]))
2303
2338
  ], 512),
2304
- me.value ? (s(), D("div", {
2339
+ he.value ? (s(), D("div", {
2305
2340
  key: 0,
2306
2341
  "data-testid": "block-lock",
2307
- "data-lock-holder": me.value.holder.sessionId,
2342
+ "data-lock-holder": he.value.holder.sessionId,
2308
2343
  class: "tpl-block-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
2309
2344
  style: f({
2310
- outline: `2px solid ${me.value.holder.color}`,
2345
+ outline: `2px solid ${he.value.holder.color}`,
2311
2346
  outlineOffset: "-1px"
2312
2347
  })
2313
2348
  }, [j("span", {
2314
2349
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
2315
2350
  style: f({
2316
- backgroundColor: me.value.holder.color,
2317
- color: w(Cr)(me.value.holder.color)
2351
+ backgroundColor: he.value.holder.color,
2352
+ color: w(Er)(he.value.holder.color)
2318
2353
  })
2319
- }, i(w(h)(w(m).collaboration.editing, { name: he.value })), 5)], 12, mo)) : T("", !0),
2320
- ge.value === null ? T("", !0) : (s(), D("div", {
2321
- key: ge.value,
2354
+ }, i(w(h)(w(m).collaboration.editing, { name: ge.value })), 5)], 12, xo)) : T("", !0),
2355
+ _e.value === null ? T("", !0) : (s(), D("div", {
2356
+ key: _e.value,
2322
2357
  "data-testid": "block-agent-highlight",
2323
2358
  "aria-hidden": "true",
2324
2359
  class: "tpl-block-agent-highlight tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm"
@@ -2326,8 +2361,8 @@ var Ka = [
2326
2361
  ie.value ? (s(), D("div", {
2327
2362
  key: 2,
2328
2363
  ref_key: "actionsElement",
2329
- ref: se,
2330
- style: f(le.value),
2364
+ ref: B,
2365
+ style: f(ue.value),
2331
2366
  role: "toolbar",
2332
2367
  "aria-label": w(m).blockActions.drag,
2333
2368
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:top-1/2 tpl:z-20 tpl:flex tpl:-translate-y-1/2 tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
@@ -2341,73 +2376,81 @@ var Ka = [
2341
2376
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2342
2377
  title: w(m).blockActions.drag,
2343
2378
  onKeydown: S
2344
- }, [y(w(Or), {
2379
+ }, [y(w(jr), {
2345
2380
  size: 14,
2346
2381
  "stroke-width": 1.5
2347
- })], 40, go),
2382
+ })], 40, Co),
2348
2383
  j("button", {
2349
2384
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2350
2385
  "aria-label": w(m).blockActions.duplicate,
2351
2386
  title: w(m).blockActions.duplicate,
2352
- onClick: z(De, ["stop"])
2353
- }, [y(w(Bt), {
2387
+ onClick: z(Ae, ["stop"])
2388
+ }, [y(w(Ht), {
2354
2389
  size: 14,
2355
2390
  "stroke-width": 1.5
2356
- })], 8, _o),
2391
+ })], 8, wo),
2357
2392
  re.value ? (s(), D("button", {
2358
2393
  key: 0,
2359
2394
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2360
2395
  "aria-label": w(m).blockActions.saveAsBlock,
2361
2396
  title: w(m).blockActions.saveAsBlock,
2362
- onClick: z(Oe, ["stop"])
2363
- }, [y(w(wr), {
2397
+ onClick: z(je, ["stop"])
2398
+ }, [y(w(Dr), {
2364
2399
  size: 14,
2365
2400
  "stroke-width": 1.5
2366
- })], 8, vo)) : T("", !0),
2401
+ })], 8, To)) : T("", !0),
2367
2402
  j("button", {
2368
2403
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2369
2404
  "aria-label": w(m).blockActions.delete,
2370
2405
  title: w(m).blockActions.delete,
2371
- onClick: z(Ee, ["stop"])
2372
- }, [y(w(qt), {
2406
+ onClick: z(ke, ["stop"])
2407
+ }, [y(w(Yt), {
2373
2408
  size: 14,
2374
2409
  "stroke-width": 1.5
2375
- })], 8, yo)
2376
- ], 12, ho)) : T("", !0),
2377
- k.value ? (s(), D("div", bo, [j("span", xo, [y(w(Er), {
2410
+ })], 8, Eo)
2411
+ ], 12, So)) : T("", !0),
2412
+ k.value ? (s(), D("div", Do, [j("span", Oo, [y(w(kr), {
2378
2413
  size: 12,
2379
2414
  "stroke-width": 1.5
2380
2415
  }), O(" " + i(w(h)(w(m).blockActions.hiddenOnViewport, { viewport: N.value })), 1)])])) : T("", !0),
2381
- ee.value && !k.value ? (s(), D("div", So, [j("button", {
2416
+ ee.value && !k.value ? (s(), D("div", ko, [j("button", {
2382
2417
  "data-testid": "condition-toggle",
2383
2418
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
2384
2419
  "aria-label": w(m).blockActions.conditionToggle,
2385
2420
  title: e.block.displayCondition?.label,
2386
- onClick: z(ke, ["stop"])
2387
- }, [y(w(Dr), {
2421
+ onClick: z(Me, ["stop"])
2422
+ }, [y(w(Ar), {
2388
2423
  size: 12,
2389
2424
  "stroke-width": 2
2390
- })], 8, Co)])) : T("", !0),
2391
- we.value ? (s(), D("div", {
2425
+ })], 8, Ao)])) : T("", !0),
2426
+ Te.value ? (s(), D("div", {
2392
2427
  key: 5,
2393
- class: c(["tpl-section-wrapper tpl-email-surface", w(Gi)(we.value)]),
2394
- style: f(we.value)
2428
+ class: c(["tpl-section-wrapper tpl-email-surface", w(Yi)(Te.value)]),
2429
+ style: f(Te.value)
2430
+ }, [Ee.value ? (s(), D("div", {
2431
+ key: 0,
2432
+ class: "tpl-band-frame",
2433
+ style: f(De.value)
2395
2434
  }, [j("div", {
2396
- class: c(["tpl-block-content tpl-email-surface", w(Gi)(Ce.value)]),
2397
- style: f(Ce.value)
2398
- }, [r(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (s(), D("div", {
2435
+ class: c(["tpl-block-content tpl-email-surface", w(Yi)(we.value)]),
2436
+ style: f(we.value)
2437
+ }, [r(t.$slots, "default", {}, void 0, !0)], 6)], 4)) : (s(), D("div", {
2438
+ key: 1,
2439
+ class: c(["tpl-block-content tpl-email-surface", w(Yi)(we.value)]),
2440
+ style: f(we.value)
2441
+ }, [r(t.$slots, "default", {}, void 0, !0)], 6))], 6)) : (s(), D("div", {
2399
2442
  key: 6,
2400
- class: c(["tpl-block-content tpl-email-surface", w(Gi)(Ce.value)]),
2401
- style: f(Ce.value)
2443
+ class: c(["tpl-block-content tpl-email-surface", w(Yi)(we.value)]),
2444
+ style: f(we.value)
2402
2445
  }, [r(t.$slots, "default", {}, void 0, !0)], 6))
2403
- ], 10, fo));
2446
+ ], 10, yo));
2404
2447
  }
2405
- }), [["__scopeId", "data-v-8c371dc9"]]);
2448
+ }), [["__scopeId", "data-v-872194d3"]]);
2406
2449
  // src/utils/unwrapParagraph.ts
2407
- function To(e) {
2450
+ function Mo(e) {
2408
2451
  let t = /^\s*<p\b/.exec(e);
2409
2452
  if (!t) return e;
2410
- let n = Ue(e, t[0].length);
2453
+ let n = Ie(e, t[0].length);
2411
2454
  if (n === -1) return e;
2412
2455
  let r = /<\/p>\s*$/.exec(e);
2413
2456
  if (!r || r.index <= n) return e;
@@ -2415,22 +2458,22 @@ function To(e) {
2415
2458
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2416
2459
  }
2417
2460
  // src/components/blocks/TitleBlock.vue
2418
- var Eo = /* @__PURE__ */ R({
2461
+ var No = /* @__PURE__ */ R({
2419
2462
  __name: "TitleBlock",
2420
2463
  props: {
2421
2464
  block: {},
2422
2465
  viewport: {}
2423
2466
  },
2424
2467
  setup(e) {
2425
- let t = e, n = I(() => import("./TitleEditor-HjVZuUTB.js")), r = In(Cn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ba(() => t.block.content), p = C(() => {
2468
+ let t = e, n = I(() => import("./TitleEditor-CEGbJXeU.js")), r = Wn(Tn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = qa(() => t.block.content), p = C(() => {
2426
2469
  let e = {
2427
- fontSize: `${Ie[t.block.level]}px`,
2428
- lineHeight: String(ot),
2470
+ fontSize: `${Re[t.block.level]}px`,
2471
+ lineHeight: String(ct),
2429
2472
  fontWeight: "700",
2430
2473
  textAlign: t.block.textAlign
2431
2474
  };
2432
2475
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2433
- }), m = C(() => `h${t.block.level}`), h = C(() => Wt(To(l.value)));
2476
+ }), m = C(() => `h${t.block.level}`), h = C(() => Kt(Mo(l.value)));
2434
2477
  return (t, r) => (s(), D("div", {
2435
2478
  ref_key: "blockRef",
2436
2479
  ref: a,
@@ -2456,14 +2499,14 @@ var Eo = /* @__PURE__ */ R({
2456
2499
  innerHTML: h.value
2457
2500
  }, null, 8, ["innerHTML"]))], 36));
2458
2501
  }
2459
- }), Do = "hero", Oo = "#1f2937", ko = "#ffffff";
2460
- function Ao(e, t) {
2461
- let n = ae("title", e);
2462
- n.color = ko, n.textAlign = "center";
2463
- let r = ae("paragraph", e);
2464
- r.content = `<p style="text-align: center"><span style="color: ${ko}">${jo(t)}</span></p>`;
2465
- let i = ae("button", e);
2466
- return i.align = "center", Oe({
2502
+ }), Po = "hero", Fo = "#1f2937", Io = "#ffffff";
2503
+ function Lo(e, t) {
2504
+ let n = Ge("title", e);
2505
+ n.color = Io, n.textAlign = "center";
2506
+ let r = Ge("paragraph", e);
2507
+ r.content = `<p style="text-align: center"><span style="color: ${Io}">${Ro(t)}</span></p>`;
2508
+ let i = Ge("button", e);
2509
+ return i.align = "center", ue({
2467
2510
  columns: "1",
2468
2511
  children: [[
2469
2512
  n,
@@ -2481,96 +2524,96 @@ function Ao(e, t) {
2481
2524
  bottom: 48,
2482
2525
  left: 24
2483
2526
  },
2484
- backgroundColor: Oo
2527
+ backgroundColor: Fo
2485
2528
  }
2486
2529
  });
2487
2530
  }
2488
- function jo(e) {
2531
+ function Ro(e) {
2489
2532
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2490
2533
  }
2491
2534
  // src/utils/sectionColumnDrop.ts
2492
- var Mo = /* @__PURE__ */ new Set(["section", Do]);
2493
- function No(e) {
2494
- return e.dataset.blockType !== "section" && !Mo.has(e.dataset.paletteType ?? "");
2535
+ var zo = /* @__PURE__ */ new Set(["section", Po]);
2536
+ function Bo(e) {
2537
+ return e.dataset.blockType !== "section" && !zo.has(e.dataset.paletteType ?? "");
2495
2538
  }
2496
2539
  // ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
2497
- var Po = Object.defineProperty, Fo = Object.getOwnPropertySymbols, Io = Object.prototype.hasOwnProperty, Lo = Object.prototype.propertyIsEnumerable, Ro = (e, t, n) => t in e ? Po(e, t, {
2540
+ var Vo = Object.defineProperty, Ho = Object.getOwnPropertySymbols, Uo = Object.prototype.hasOwnProperty, Wo = Object.prototype.propertyIsEnumerable, Go = (e, t, n) => t in e ? Vo(e, t, {
2498
2541
  enumerable: !0,
2499
2542
  configurable: !0,
2500
2543
  writable: !0,
2501
2544
  value: n
2502
- }) : e[t] = n, zo = (e, t) => {
2503
- for (var n in t ||= {}) Io.call(t, n) && Ro(e, n, t[n]);
2504
- if (Fo) for (var n of Fo(t)) Lo.call(t, n) && Ro(e, n, t[n]);
2545
+ }) : e[t] = n, Ko = (e, t) => {
2546
+ for (var n in t ||= {}) Uo.call(t, n) && Go(e, n, t[n]);
2547
+ if (Ho) for (var n of Ho(t)) Wo.call(t, n) && Go(e, n, t[n]);
2505
2548
  return e;
2506
- }, Bo = (e, t) => {
2549
+ }, qo = (e, t) => {
2507
2550
  var n = {};
2508
- for (var r in e) Io.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2509
- if (e != null && Fo) for (var r of Fo(e)) t.indexOf(r) < 0 && Lo.call(e, r) && (n[r] = e[r]);
2551
+ for (var r in e) Uo.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2552
+ if (e != null && Ho) for (var r of Ho(e)) t.indexOf(r) < 0 && Wo.call(e, r) && (n[r] = e[r]);
2510
2553
  return n;
2511
- }, Vo = "[vue-draggable-plus]: ";
2512
- function Ho(e) {
2513
- console.warn(Vo + e);
2554
+ }, Jo = "[vue-draggable-plus]: ";
2555
+ function Yo(e) {
2556
+ console.warn(Jo + e);
2514
2557
  }
2515
- function Uo(e) {
2516
- console.error(Vo + e);
2558
+ function Xo(e) {
2559
+ console.error(Jo + e);
2517
2560
  }
2518
- function Wo(e, t, n) {
2561
+ function Zo(e, t, n) {
2519
2562
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2520
2563
  }
2521
- function Go(e) {
2564
+ function Qo(e) {
2522
2565
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2523
2566
  }
2524
- function Ko(e) {
2525
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Go(n)] = e[n]), t), {});
2567
+ function $o(e) {
2568
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Qo(n)] = e[n]), t), {});
2526
2569
  }
2527
- function qo(e, t) {
2570
+ function es(e, t) {
2528
2571
  return Array.isArray(e) && e.splice(t, 1), e;
2529
2572
  }
2530
- function Jo(e, t, n) {
2573
+ function ts(e, t, n) {
2531
2574
  return Array.isArray(e) && e.splice(t, 0, n), e;
2532
2575
  }
2533
- function Yo(e) {
2576
+ function ns(e) {
2534
2577
  return e === void 0;
2535
2578
  }
2536
- function Xo(e) {
2579
+ function rs(e) {
2537
2580
  return typeof e == "string";
2538
2581
  }
2539
- function Zo(e, t, n) {
2582
+ function is(e, t, n) {
2540
2583
  let r = e.children[n];
2541
2584
  e.insertBefore(t, r);
2542
2585
  }
2543
- function Qo(e) {
2586
+ function as(e) {
2544
2587
  e.parentNode && e.parentNode.removeChild(e);
2545
2588
  }
2546
- function $o(e, t = document) {
2589
+ function os(e, t = document) {
2547
2590
  let n = null;
2548
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ho(`Element not found: ${e}`), n;
2591
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Yo(`Element not found: ${e}`), n;
2549
2592
  }
2550
- function es(e, t, n = null) {
2593
+ function ss(e, t, n = null) {
2551
2594
  return function(...r) {
2552
2595
  return e.apply(n, r), t.apply(n, r);
2553
2596
  };
2554
2597
  }
2555
- function ts(e, t) {
2556
- let n = zo({}, e);
2598
+ function cs(e, t) {
2599
+ let n = Ko({}, e);
2557
2600
  return Object.keys(t).forEach((r) => {
2558
- n[r] ? n[r] = es(e[r], t[r]) : n[r] = t[r];
2601
+ n[r] ? n[r] = ss(e[r], t[r]) : n[r] = t[r];
2559
2602
  }), n;
2560
2603
  }
2561
- function ns(e) {
2604
+ function ls(e) {
2562
2605
  return e instanceof HTMLElement;
2563
2606
  }
2564
- function rs(e, t) {
2607
+ function us(e, t) {
2565
2608
  Object.keys(e).forEach((n) => {
2566
2609
  t(n, e[n]);
2567
2610
  });
2568
2611
  }
2569
- function is(e) {
2612
+ function ds(e) {
2570
2613
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2571
2614
  }
2572
- var as = Object.assign;
2573
- function os(e, t) {
2615
+ var fs = Object.assign;
2616
+ function ps(e, t) {
2574
2617
  var n = Object.keys(e);
2575
2618
  if (Object.getOwnPropertySymbols) {
2576
2619
  var r = Object.getOwnPropertySymbols(e);
@@ -2580,26 +2623,26 @@ function os(e, t) {
2580
2623
  }
2581
2624
  return n;
2582
2625
  }
2583
- function ss(e) {
2626
+ function ms(e) {
2584
2627
  for (var t = 1; t < arguments.length; t++) {
2585
2628
  var n = arguments[t] == null ? {} : arguments[t];
2586
- t % 2 ? os(Object(n), !0).forEach(function(t) {
2587
- ls(e, t, n[t]);
2588
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : os(Object(n)).forEach(function(t) {
2629
+ t % 2 ? ps(Object(n), !0).forEach(function(t) {
2630
+ gs(e, t, n[t]);
2631
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ps(Object(n)).forEach(function(t) {
2589
2632
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2590
2633
  });
2591
2634
  }
2592
2635
  return e;
2593
2636
  }
2594
- function cs(e) {
2637
+ function hs(e) {
2595
2638
  "@babel/helpers - typeof";
2596
- return cs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2639
+ return hs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2597
2640
  return typeof e;
2598
2641
  } : function(e) {
2599
2642
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2600
- }, cs(e);
2643
+ }, hs(e);
2601
2644
  }
2602
- function ls(e, t, n) {
2645
+ function gs(e, t, n) {
2603
2646
  return t in e ? Object.defineProperty(e, t, {
2604
2647
  value: n,
2605
2648
  enumerable: !0,
@@ -2607,44 +2650,44 @@ function ls(e, t, n) {
2607
2650
  writable: !0
2608
2651
  }) : e[t] = n, e;
2609
2652
  }
2610
- function us() {
2611
- return us = Object.assign || function(e) {
2653
+ function _s() {
2654
+ return _s = Object.assign || function(e) {
2612
2655
  for (var t = 1; t < arguments.length; t++) {
2613
2656
  var n = arguments[t];
2614
2657
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2615
2658
  }
2616
2659
  return e;
2617
- }, us.apply(this, arguments);
2660
+ }, _s.apply(this, arguments);
2618
2661
  }
2619
- function ds(e, t) {
2662
+ function vs(e, t) {
2620
2663
  if (e == null) return {};
2621
2664
  for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2622
2665
  return n;
2623
2666
  }
2624
- function fs(e, t) {
2667
+ function ys(e, t) {
2625
2668
  if (e == null) return {};
2626
- var n = ds(e, t), r, i;
2669
+ var n = vs(e, t), r, i;
2627
2670
  if (Object.getOwnPropertySymbols) {
2628
2671
  var a = Object.getOwnPropertySymbols(e);
2629
2672
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2630
2673
  }
2631
2674
  return n;
2632
2675
  }
2633
- var ps = "1.15.2";
2634
- function ms(e) {
2676
+ var bs = "1.15.2";
2677
+ function xs(e) {
2635
2678
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2636
2679
  }
2637
- var hs = ms(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), gs = ms(/Edge/i), _s = ms(/firefox/i), vs = ms(/safari/i) && !ms(/chrome/i) && !ms(/android/i), ys = ms(/iP(ad|od|hone)/i), bs = ms(/chrome/i) && ms(/android/i), xs = {
2680
+ var Ss = xs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Cs = xs(/Edge/i), ws = xs(/firefox/i), Ts = xs(/safari/i) && !xs(/chrome/i) && !xs(/android/i), Es = xs(/iP(ad|od|hone)/i), Ds = xs(/chrome/i) && xs(/android/i), Os = {
2638
2681
  capture: !1,
2639
2682
  passive: !1
2640
2683
  };
2641
2684
  function V(e, t, n) {
2642
- e.addEventListener(t, n, !hs && xs);
2685
+ e.addEventListener(t, n, !Ss && Os);
2643
2686
  }
2644
2687
  function H(e, t, n) {
2645
- e.removeEventListener(t, n, !hs && xs);
2688
+ e.removeEventListener(t, n, !Ss && Os);
2646
2689
  }
2647
- function Ss(e, t) {
2690
+ function ks(e, t) {
2648
2691
  if (t) {
2649
2692
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2650
2693
  if (e.matches) return e.matches(t);
@@ -2656,22 +2699,22 @@ function Ss(e, t) {
2656
2699
  return !1;
2657
2700
  }
2658
2701
  }
2659
- function Cs(e) {
2702
+ function As(e) {
2660
2703
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2661
2704
  }
2662
- function ws(e, t, n, r) {
2705
+ function js(e, t, n, r) {
2663
2706
  if (e) {
2664
2707
  n ||= document;
2665
2708
  do {
2666
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ss(e, t) : Ss(e, t)) || r && e === n) return e;
2709
+ if (t != null && (t[0] === ">" ? e.parentNode === n && ks(e, t) : ks(e, t)) || r && e === n) return e;
2667
2710
  if (e === n) break;
2668
- } while (e = Cs(e));
2711
+ } while (e = As(e));
2669
2712
  }
2670
2713
  return null;
2671
2714
  }
2672
- var Ts = /\s+/g;
2673
- function Es(e, t, n) {
2674
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ts, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ts, " "));
2715
+ var Ms = /\s+/g;
2716
+ function Ns(e, t, n) {
2717
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ms, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ms, " "));
2675
2718
  }
2676
2719
  function U(e, t, n) {
2677
2720
  var r = e && e.style;
@@ -2680,7 +2723,7 @@ function U(e, t, n) {
2680
2723
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2681
2724
  }
2682
2725
  }
2683
- function Ds(e, t) {
2726
+ function Ps(e, t) {
2684
2727
  var n = "";
2685
2728
  if (typeof e == "string") n = e;
2686
2729
  else do {
@@ -2690,7 +2733,7 @@ function Ds(e, t) {
2690
2733
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2691
2734
  return i && new i(n);
2692
2735
  }
2693
- function Os(e, t, n) {
2736
+ function Fs(e, t, n) {
2694
2737
  if (e) {
2695
2738
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2696
2739
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2698,13 +2741,13 @@ function Os(e, t, n) {
2698
2741
  }
2699
2742
  return [];
2700
2743
  }
2701
- function ks() {
2744
+ function Is() {
2702
2745
  return document.scrollingElement || document.documentElement;
2703
2746
  }
2704
2747
  function W(e, t, n, r, i) {
2705
2748
  if (e.getBoundingClientRect || e === window) {
2706
2749
  var a, o, s, c, l, u, d;
2707
- if (e !== window && e.parentNode && e !== ks() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !hs)) do
2750
+ if (e !== window && e.parentNode && e !== Is() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Ss)) do
2708
2751
  if (i && i.getBoundingClientRect && (U(i, "transform") !== "none" || n && U(i, "position") !== "static")) {
2709
2752
  var f = i.getBoundingClientRect();
2710
2753
  o -= f.top + parseInt(U(i, "border-top-width")), s -= f.left + parseInt(U(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -2712,7 +2755,7 @@ function W(e, t, n, r, i) {
2712
2755
  }
2713
2756
  while (i = i.parentNode);
2714
2757
  if (r && e !== window) {
2715
- var p = Ds(i || e), m = p && p.a, h = p && p.d;
2758
+ var p = Ps(i || e), m = p && p.a, h = p && p.d;
2716
2759
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2717
2760
  }
2718
2761
  return {
@@ -2725,18 +2768,18 @@ function W(e, t, n, r, i) {
2725
2768
  };
2726
2769
  }
2727
2770
  }
2728
- function As(e, t, n) {
2729
- for (var r = Is(e, !0), i = W(e)[t]; r;) {
2771
+ function Ls(e, t, n) {
2772
+ for (var r = Us(e, !0), i = W(e)[t]; r;) {
2730
2773
  var a = W(r)[n], o = void 0;
2731
2774
  if (o = i >= a, !o) return r;
2732
- if (r === ks()) break;
2733
- r = Is(r, !1);
2775
+ if (r === Is()) break;
2776
+ r = Us(r, !1);
2734
2777
  }
2735
2778
  return !1;
2736
2779
  }
2737
- function js(e, t, n, r) {
2780
+ function Rs(e, t, n, r) {
2738
2781
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2739
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && ws(o[a], n.draggable, e, !1)) {
2782
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && js(o[a], n.draggable, e, !1)) {
2740
2783
  if (i === t) return o[a];
2741
2784
  i++;
2742
2785
  }
@@ -2744,84 +2787,84 @@ function js(e, t, n, r) {
2744
2787
  }
2745
2788
  return null;
2746
2789
  }
2747
- function Ms(e, t) {
2748
- for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !Ss(n, t));) n = n.previousElementSibling;
2790
+ function zs(e, t) {
2791
+ for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !ks(n, t));) n = n.previousElementSibling;
2749
2792
  return n || null;
2750
2793
  }
2751
- function Ns(e, t) {
2794
+ function Bs(e, t) {
2752
2795
  var n = 0;
2753
2796
  if (!e || !e.parentNode) return -1;
2754
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Ss(e, t)) && n++;
2797
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ks(e, t)) && n++;
2755
2798
  return n;
2756
2799
  }
2757
- function Ps(e) {
2758
- var t = 0, n = 0, r = ks();
2800
+ function Vs(e) {
2801
+ var t = 0, n = 0, r = Is();
2759
2802
  if (e) do {
2760
- var i = Ds(e), a = i.a, o = i.d;
2803
+ var i = Ps(e), a = i.a, o = i.d;
2761
2804
  t += e.scrollLeft * a, n += e.scrollTop * o;
2762
2805
  } while (e !== r && (e = e.parentNode));
2763
2806
  return [t, n];
2764
2807
  }
2765
- function Fs(e, t) {
2808
+ function Hs(e, t) {
2766
2809
  for (var n in e) if (e.hasOwnProperty(n)) {
2767
2810
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2768
2811
  }
2769
2812
  return -1;
2770
2813
  }
2771
- function Is(e, t) {
2772
- if (!e || !e.getBoundingClientRect) return ks();
2814
+ function Us(e, t) {
2815
+ if (!e || !e.getBoundingClientRect) return Is();
2773
2816
  var n = e, r = !1;
2774
2817
  do
2775
2818
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2776
2819
  var i = U(n);
2777
2820
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2778
- if (!n.getBoundingClientRect || n === document.body) return ks();
2821
+ if (!n.getBoundingClientRect || n === document.body) return Is();
2779
2822
  if (r || t) return n;
2780
2823
  r = !0;
2781
2824
  }
2782
2825
  }
2783
2826
  while (n = n.parentNode);
2784
- return ks();
2827
+ return Is();
2785
2828
  }
2786
- function Ls(e, t) {
2829
+ function Ws(e, t) {
2787
2830
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2788
2831
  return e;
2789
2832
  }
2790
- function Rs(e, t) {
2833
+ function Gs(e, t) {
2791
2834
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
2792
2835
  }
2793
- var zs;
2794
- function Bs(e, t) {
2836
+ var Ks;
2837
+ function qs(e, t) {
2795
2838
  return function() {
2796
- if (!zs) {
2839
+ if (!Ks) {
2797
2840
  var n = arguments, r = this;
2798
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), zs = setTimeout(function() {
2799
- zs = void 0;
2841
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Ks = setTimeout(function() {
2842
+ Ks = void 0;
2800
2843
  }, t);
2801
2844
  }
2802
2845
  };
2803
2846
  }
2804
- function Vs() {
2805
- clearTimeout(zs), zs = void 0;
2847
+ function Js() {
2848
+ clearTimeout(Ks), Ks = void 0;
2806
2849
  }
2807
- function Hs(e, t, n) {
2850
+ function Ys(e, t, n) {
2808
2851
  e.scrollLeft += t, e.scrollTop += n;
2809
2852
  }
2810
- function Us(e) {
2853
+ function Xs(e) {
2811
2854
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2812
2855
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2813
2856
  }
2814
- function Ws(e, t, n) {
2857
+ function Zs(e, t, n) {
2815
2858
  var r = {};
2816
2859
  return Array.from(e.children).forEach(function(i) {
2817
- if (ws(i, t.draggable, e, !1) && !i.animated && i !== n) {
2860
+ if (js(i, t.draggable, e, !1) && !i.animated && i !== n) {
2818
2861
  var a = W(i);
2819
2862
  r.left = Math.min(r.left ?? 1 / 0, a.left), r.top = Math.min(r.top ?? 1 / 0, a.top), r.right = Math.max(r.right ?? -1 / 0, a.right), r.bottom = Math.max(r.bottom ?? -1 / 0, a.bottom);
2820
2863
  }
2821
2864
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2822
2865
  }
2823
- var Gs = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2824
- function Ks() {
2866
+ var Qs = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2867
+ function $s() {
2825
2868
  var e = [], t;
2826
2869
  return {
2827
2870
  captureAnimationState: function() {
@@ -2831,9 +2874,9 @@ function Ks() {
2831
2874
  target: t,
2832
2875
  rect: W(t)
2833
2876
  });
2834
- var n = ss({}, e[e.length - 1].rect);
2877
+ var n = ms({}, e[e.length - 1].rect);
2835
2878
  if (t.thisAnimationDuration) {
2836
- var r = Ds(t, !0);
2879
+ var r = Ps(t, !0);
2837
2880
  r && (n.top -= r.f, n.left -= r.e);
2838
2881
  }
2839
2882
  t.fromRect = n;
@@ -2844,7 +2887,7 @@ function Ks() {
2844
2887
  e.push(t);
2845
2888
  },
2846
2889
  removeAnimationState: function(t) {
2847
- e.splice(Fs(e, { target: t }), 1);
2890
+ e.splice(Hs(e, { target: t }), 1);
2848
2891
  },
2849
2892
  animateAll: function(n) {
2850
2893
  var r = this;
@@ -2852,8 +2895,8 @@ function Ks() {
2852
2895
  else {
2853
2896
  var i = !1, a = 0;
2854
2897
  e.forEach(function(e) {
2855
- var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Ds(n, !0);
2856
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Rs(c, s) && !Rs(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Js(u, c, l, r.options)), Rs(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2898
+ var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Ps(n, !0);
2899
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Gs(c, s) && !Gs(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = tc(u, c, l, r.options)), Gs(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2857
2900
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2858
2901
  }, t), n.thisAnimationDuration = t);
2859
2902
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2864,26 +2907,26 @@ function Ks() {
2864
2907
  animate: function(e, t, n, r) {
2865
2908
  if (r) {
2866
2909
  U(e, "transition", ""), U(e, "transform", "");
2867
- var i = Ds(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2868
- e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = qs(e), U(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), U(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2910
+ var i = Ps(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2911
+ e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ec(e), U(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), U(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2869
2912
  U(e, "transition", ""), U(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2870
2913
  }, r);
2871
2914
  }
2872
2915
  }
2873
2916
  };
2874
2917
  }
2875
- function qs(e) {
2918
+ function ec(e) {
2876
2919
  return e.offsetWidth;
2877
2920
  }
2878
- function Js(e, t, n, r) {
2921
+ function tc(e, t, n, r) {
2879
2922
  return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
2880
2923
  }
2881
- var Ys = [], Xs = { initializeByDefault: !0 }, Zs = {
2924
+ var nc = [], rc = { initializeByDefault: !0 }, ic = {
2882
2925
  mount: function(e) {
2883
- for (var t in Xs) Xs.hasOwnProperty(t) && !(t in e) && (e[t] = Xs[t]);
2884
- Ys.forEach(function(t) {
2926
+ for (var t in rc) rc.hasOwnProperty(t) && !(t in e) && (e[t] = rc[t]);
2927
+ nc.forEach(function(t) {
2885
2928
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2886
- }), Ys.push(e);
2929
+ }), nc.push(e);
2887
2930
  },
2888
2931
  pluginEvent: function(e, t, n) {
2889
2932
  var r = this;
@@ -2891,16 +2934,16 @@ var Ys = [], Xs = { initializeByDefault: !0 }, Zs = {
2891
2934
  r.eventCanceled = !0;
2892
2935
  };
2893
2936
  var i = e + "Global";
2894
- Ys.forEach(function(r) {
2895
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ss({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ss({ sortable: t }, n)));
2937
+ nc.forEach(function(r) {
2938
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ms({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ms({ sortable: t }, n)));
2896
2939
  });
2897
2940
  },
2898
2941
  initializePlugins: function(e, t, n, r) {
2899
- for (var i in Ys.forEach(function(r) {
2942
+ for (var i in nc.forEach(function(r) {
2900
2943
  var i = r.pluginName;
2901
2944
  if (e.options[i] || r.initializeByDefault) {
2902
2945
  var a = new r(e, t, e.options);
2903
- a.sortable = e, a.options = e.options, e[i] = a, us(n, a.defaults);
2946
+ a.sortable = e, a.options = e.options, e[i] = a, _s(n, a.defaults);
2904
2947
  }
2905
2948
  }), e.options) if (e.options.hasOwnProperty(i)) {
2906
2949
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2909,59 +2952,59 @@ var Ys = [], Xs = { initializeByDefault: !0 }, Zs = {
2909
2952
  },
2910
2953
  getEventProperties: function(e, t) {
2911
2954
  var n = {};
2912
- return Ys.forEach(function(r) {
2913
- typeof r.eventProperties == "function" && us(n, r.eventProperties.call(t[r.pluginName], e));
2955
+ return nc.forEach(function(r) {
2956
+ typeof r.eventProperties == "function" && _s(n, r.eventProperties.call(t[r.pluginName], e));
2914
2957
  }), n;
2915
2958
  },
2916
2959
  modifyOption: function(e, t, n) {
2917
2960
  var r;
2918
- return Ys.forEach(function(i) {
2961
+ return nc.forEach(function(i) {
2919
2962
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2920
2963
  }), r;
2921
2964
  }
2922
2965
  };
2923
- function Qs(e) {
2966
+ function ac(e) {
2924
2967
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
2925
- if (t ||= n && n[Gs], t) {
2968
+ if (t ||= n && n[Qs], t) {
2926
2969
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2927
- window.CustomEvent && !hs && !gs ? h = new CustomEvent(r, {
2970
+ window.CustomEvent && !Ss && !Cs ? h = new CustomEvent(r, {
2928
2971
  bubbles: !0,
2929
2972
  cancelable: !0
2930
2973
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
2931
- var v = ss(ss({}, m), Zs.getEventProperties(r, t));
2974
+ var v = ms(ms({}, m), ic.getEventProperties(r, t));
2932
2975
  for (var y in v) h[y] = v[y];
2933
2976
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2934
2977
  }
2935
2978
  }
2936
- var $s = ["evt"], ec = function(e, t) {
2937
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = fs(n, $s);
2938
- Zs.pluginEvent.bind(Q)(e, t, ss({
2979
+ var oc = ["evt"], sc = function(e, t) {
2980
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ys(n, oc);
2981
+ ic.pluginEvent.bind(Q)(e, t, ms({
2939
2982
  dragEl: G,
2940
2983
  parentEl: K,
2941
2984
  ghostEl: q,
2942
2985
  rootEl: J,
2943
- nextEl: nc,
2944
- lastDownEl: rc,
2986
+ nextEl: lc,
2987
+ lastDownEl: uc,
2945
2988
  cloneEl: Y,
2946
- cloneHidden: ic,
2947
- dragStarted: yc,
2989
+ cloneHidden: dc,
2990
+ dragStarted: Ec,
2948
2991
  putSortable: X,
2949
2992
  activeSortable: Q.active,
2950
2993
  originalEvent: r,
2951
- oldIndex: ac,
2952
- oldDraggableIndex: sc,
2953
- newIndex: oc,
2954
- newDraggableIndex: cc,
2955
- hideGhostForTarget: Lc,
2956
- unhideGhostForTarget: Rc,
2994
+ oldIndex: fc,
2995
+ oldDraggableIndex: mc,
2996
+ newIndex: pc,
2997
+ newDraggableIndex: hc,
2998
+ hideGhostForTarget: Wc,
2999
+ unhideGhostForTarget: Gc,
2957
3000
  cloneNowHidden: function() {
2958
- ic = !0;
3001
+ dc = !0;
2959
3002
  },
2960
3003
  cloneNowShown: function() {
2961
- ic = !1;
3004
+ dc = !1;
2962
3005
  },
2963
3006
  dispatchSortableEvent: function(e) {
2964
- tc({
3007
+ cc({
2965
3008
  sortable: t,
2966
3009
  name: e,
2967
3010
  originalEvent: r
@@ -2969,46 +3012,46 @@ var $s = ["evt"], ec = function(e, t) {
2969
3012
  }
2970
3013
  }, i));
2971
3014
  };
2972
- function tc(e) {
2973
- Qs(ss({
3015
+ function cc(e) {
3016
+ ac(ms({
2974
3017
  putSortable: X,
2975
3018
  cloneEl: Y,
2976
3019
  targetEl: G,
2977
3020
  rootEl: J,
2978
- oldIndex: ac,
2979
- oldDraggableIndex: sc,
2980
- newIndex: oc,
2981
- newDraggableIndex: cc
3021
+ oldIndex: fc,
3022
+ oldDraggableIndex: mc,
3023
+ newIndex: pc,
3024
+ newDraggableIndex: hc
2982
3025
  }, e));
2983
3026
  }
2984
- var G, K, q, J, nc, rc, Y, ic, ac, oc, sc, cc, lc, X, uc = !1, dc = !1, fc = [], pc, mc, hc, gc, _c, vc, yc, bc, xc, Sc = !1, Cc = !1, wc, Z, Tc = [], Ec = !1, Dc = [], Oc = typeof document < "u", kc = ys, Ac = gs || hs ? "cssFloat" : "float", jc = Oc && !bs && !ys && "draggable" in document.createElement("div"), Mc = function() {
2985
- if (Oc) {
2986
- if (hs) return !1;
3027
+ var G, K, q, J, lc, uc, Y, dc, fc, pc, mc, hc, gc, X, _c = !1, vc = !1, yc = [], bc, xc, Sc, Cc, wc, Tc, Ec, Dc, Oc, kc = !1, Ac = !1, jc, Z, Mc = [], Nc = !1, Pc = [], Fc = typeof document < "u", Ic = Es, Lc = Cs || Ss ? "cssFloat" : "float", Rc = Fc && !Ds && !Es && "draggable" in document.createElement("div"), zc = function() {
3028
+ if (Fc) {
3029
+ if (Ss) return !1;
2987
3030
  var e = document.createElement("x");
2988
3031
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2989
3032
  }
2990
- }(), Nc = function(e, t) {
2991
- var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = js(e, 0, t), a = js(e, 1, t), o = i && U(i), s = a && U(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + W(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(a).width;
3033
+ }(), Bc = function(e, t) {
3034
+ var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Rs(e, 0, t), a = Rs(e, 1, t), o = i && U(i), s = a && U(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + W(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(a).width;
2992
3035
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2993
3036
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2994
3037
  if (i && o.float && o.float !== "none") {
2995
3038
  var u = o.float === "left" ? "left" : "right";
2996
3039
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2997
3040
  }
2998
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Ac] === "none" || a && n[Ac] === "none" && c + l > r) ? "vertical" : "horizontal";
2999
- }, Pc = function(e, t, n) {
3041
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Lc] === "none" || a && n[Lc] === "none" && c + l > r) ? "vertical" : "horizontal";
3042
+ }, Vc = function(e, t, n) {
3000
3043
  var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
3001
3044
  return r === o || i === s || r + a / 2 === o + c / 2;
3002
- }, Fc = function(e, t) {
3045
+ }, Hc = function(e, t) {
3003
3046
  var n;
3004
- return fc.some(function(r) {
3005
- var i = r[Gs].options.emptyInsertThreshold;
3006
- if (i && !Ms(r)) {
3047
+ return yc.some(function(r) {
3048
+ var i = r[Qs].options.emptyInsertThreshold;
3049
+ if (i && !zs(r)) {
3007
3050
  var a = W(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3008
3051
  if (o && s) return n = r;
3009
3052
  }
3010
3053
  }), n;
3011
- }, Ic = function(e) {
3054
+ }, Uc = function(e) {
3012
3055
  function t(e, n) {
3013
3056
  return function(r, i, a, o) {
3014
3057
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3021,31 +3064,31 @@ var G, K, q, J, nc, rc, Y, ic, ac, oc, sc, cc, lc, X, uc = !1, dc = !1, fc = [],
3021
3064
  };
3022
3065
  }
3023
3066
  var n = {}, r = e.group;
3024
- r && cs(r) == "object" || (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
3025
- }, Lc = function() {
3026
- !Mc && q && U(q, "display", "none");
3027
- }, Rc = function() {
3028
- !Mc && q && U(q, "display", "");
3067
+ r && hs(r) == "object" || (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
3068
+ }, Wc = function() {
3069
+ !zc && q && U(q, "display", "none");
3070
+ }, Gc = function() {
3071
+ !zc && q && U(q, "display", "");
3029
3072
  };
3030
- Oc && !bs && document.addEventListener("click", function(e) {
3031
- if (dc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), dc = !1, !1;
3073
+ Fc && !Ds && document.addEventListener("click", function(e) {
3074
+ if (vc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), vc = !1, !1;
3032
3075
  }, !0);
3033
- var zc = function(e) {
3076
+ var Kc = function(e) {
3034
3077
  if (G) {
3035
3078
  e = e.touches ? e.touches[0] : e;
3036
- var t = Fc(e.clientX, e.clientY);
3079
+ var t = Hc(e.clientX, e.clientY);
3037
3080
  if (t) {
3038
3081
  var n = {};
3039
3082
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3040
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Gs]._onDragOver(n);
3083
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Qs]._onDragOver(n);
3041
3084
  }
3042
3085
  }
3043
- }, Bc = function(e) {
3044
- G && G.parentNode[Gs]._isOutsideThisEl(e.target);
3086
+ }, qc = function(e) {
3087
+ G && G.parentNode[Qs]._isOutsideThisEl(e.target);
3045
3088
  };
3046
3089
  function Q(e, t) {
3047
3090
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3048
- this.el = e, this.options = t = us({}, t), e[Gs] = this;
3091
+ this.el = e, this.options = t = _s({}, t), e[Qs] = this;
3049
3092
  var n = {
3050
3093
  group: null,
3051
3094
  sort: !0,
@@ -3058,7 +3101,7 @@ function Q(e, t) {
3058
3101
  invertedSwapThreshold: null,
3059
3102
  removeCloneOnHide: !0,
3060
3103
  direction: function() {
3061
- return Nc(e, this.options);
3104
+ return Bc(e, this.options);
3062
3105
  },
3063
3106
  ghostClass: "sortable-ghost",
3064
3107
  chosenClass: "sortable-chosen",
@@ -3085,17 +3128,17 @@ function Q(e, t) {
3085
3128
  x: 0,
3086
3129
  y: 0
3087
3130
  },
3088
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !vs,
3131
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Ts,
3089
3132
  emptyInsertThreshold: 5
3090
3133
  };
3091
- for (var r in Zs.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3092
- for (var i in Ic(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3093
- this.nativeDraggable = !t.forceFallback && jc, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), fc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), us(this, Ks());
3134
+ for (var r in ic.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3135
+ for (var i in Uc(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3136
+ this.nativeDraggable = !t.forceFallback && Rc, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), yc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), _s(this, $s());
3094
3137
  }
3095
3138
  Q.prototype = {
3096
3139
  constructor: Q,
3097
3140
  _isOutsideThisEl: function(e) {
3098
- !this.el.contains(e) && e !== this.el && (bc = null);
3141
+ !this.el.contains(e) && e !== this.el && (Dc = null);
3099
3142
  },
3100
3143
  _getDirection: function(e, t) {
3101
3144
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
@@ -3103,33 +3146,33 @@ Q.prototype = {
3103
3146
  _onTapStart: function(e) {
3104
3147
  if (e.cancelable) {
3105
3148
  var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
3106
- if (Xc(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && vs && s && s.tagName.toUpperCase() === "SELECT") && (s = ws(s, r.draggable, n, !1), !(s && s.animated) && rc !== s)) {
3107
- if (ac = Ns(s), sc = Ns(s, r.draggable), typeof l == "function") {
3149
+ if (rl(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Ts && s && s.tagName.toUpperCase() === "SELECT") && (s = js(s, r.draggable, n, !1), !(s && s.animated) && uc !== s)) {
3150
+ if (fc = Bs(s), mc = Bs(s, r.draggable), typeof l == "function") {
3108
3151
  if (l.call(this, e, s, this)) {
3109
- tc({
3152
+ cc({
3110
3153
  sortable: t,
3111
3154
  rootEl: c,
3112
3155
  name: "filter",
3113
3156
  targetEl: s,
3114
3157
  toEl: n,
3115
3158
  fromEl: n
3116
- }), ec("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3159
+ }), sc("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3117
3160
  return;
3118
3161
  }
3119
3162
  } else if (l && (l = l.split(",").some(function(r) {
3120
- if (r = ws(c, r.trim(), n, !1), r) return tc({
3163
+ if (r = js(c, r.trim(), n, !1), r) return cc({
3121
3164
  sortable: t,
3122
3165
  rootEl: r,
3123
3166
  name: "filter",
3124
3167
  targetEl: s,
3125
3168
  fromEl: n,
3126
3169
  toEl: n
3127
- }), ec("filter", t, { evt: e }), !0;
3170
+ }), sc("filter", t, { evt: e }), !0;
3128
3171
  }), l)) {
3129
3172
  i && e.cancelable && e.preventDefault();
3130
3173
  return;
3131
3174
  }
3132
- r.handle && !ws(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3175
+ r.handle && !js(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3133
3176
  }
3134
3177
  }
3135
3178
  },
@@ -3137,19 +3180,19 @@ Q.prototype = {
3137
3180
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3138
3181
  if (n && !G && n.parentNode === i) {
3139
3182
  var c = W(n);
3140
- if (J = i, G = n, K = G.parentNode, nc = G.nextSibling, rc = n, lc = a.group, Q.dragged = G, pc = {
3183
+ if (J = i, G = n, K = G.parentNode, lc = G.nextSibling, uc = n, gc = a.group, Q.dragged = G, bc = {
3141
3184
  target: G,
3142
3185
  clientX: (t || e).clientX,
3143
3186
  clientY: (t || e).clientY
3144
- }, _c = pc.clientX - c.left, vc = pc.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3145
- ec("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !_s && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), tc({
3187
+ }, wc = bc.clientX - c.left, Tc = bc.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3188
+ sc("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !ws && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), cc({
3146
3189
  sortable: r,
3147
3190
  name: "choose",
3148
3191
  originalEvent: e
3149
- }), Es(G, a.chosenClass, !0));
3192
+ }), Ns(G, a.chosenClass, !0));
3150
3193
  }, a.ignore.split(",").forEach(function(e) {
3151
- Os(G, e.trim(), Uc);
3152
- }), V(o, "dragover", zc), V(o, "mousemove", zc), V(o, "touchmove", zc), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), _s && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), ec("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(gs || hs))) {
3194
+ Fs(G, e.trim(), Xc);
3195
+ }), V(o, "dragover", Kc), V(o, "mousemove", Kc), V(o, "touchmove", Kc), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), ws && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), sc("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Cs || Ss))) {
3153
3196
  if (Q.eventCanceled) {
3154
3197
  this._onDrop();
3155
3198
  return;
@@ -3163,7 +3206,7 @@ Q.prototype = {
3163
3206
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
3164
3207
  },
3165
3208
  _disableDelayedDrag: function() {
3166
- G && Uc(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3209
+ G && Xc(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3167
3210
  },
3168
3211
  _disableDelayedDragEvents: function() {
3169
3212
  var e = this.el.ownerDocument;
@@ -3172,16 +3215,16 @@ Q.prototype = {
3172
3215
  _triggerDragStart: function(e, t) {
3173
3216
  t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? V(document, "pointermove", this._onTouchMove) : t ? V(document, "touchmove", this._onTouchMove) : V(document, "mousemove", this._onTouchMove) : (V(G, "dragend", this), V(J, "dragstart", this._onDragStart));
3174
3217
  try {
3175
- document.selection ? Zc(function() {
3218
+ document.selection ? il(function() {
3176
3219
  document.selection.empty();
3177
3220
  }) : window.getSelection().removeAllRanges();
3178
3221
  } catch {}
3179
3222
  },
3180
3223
  _dragStarted: function(e, t) {
3181
- if (uc = !1, J && G) {
3182
- ec("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", Bc);
3224
+ if (_c = !1, J && G) {
3225
+ sc("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", qc);
3183
3226
  var n = this.options;
3184
- !e && Es(G, n.dragClass, !1), Es(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), tc({
3227
+ !e && Ns(G, n.dragClass, !1), Ns(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), cc({
3185
3228
  sortable: this,
3186
3229
  name: "start",
3187
3230
  originalEvent: t
@@ -3189,33 +3232,33 @@ Q.prototype = {
3189
3232
  } else this._nulling();
3190
3233
  },
3191
3234
  _emulateDragOver: function() {
3192
- if (mc) {
3193
- this._lastX = mc.clientX, this._lastY = mc.clientY, Lc();
3194
- for (var e = document.elementFromPoint(mc.clientX, mc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(mc.clientX, mc.clientY), e !== t);) t = e;
3195
- if (G.parentNode[Gs]._isOutsideThisEl(e), t) do {
3196
- if (t[Gs]) {
3235
+ if (xc) {
3236
+ this._lastX = xc.clientX, this._lastY = xc.clientY, Wc();
3237
+ for (var e = document.elementFromPoint(xc.clientX, xc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(xc.clientX, xc.clientY), e !== t);) t = e;
3238
+ if (G.parentNode[Qs]._isOutsideThisEl(e), t) do {
3239
+ if (t[Qs]) {
3197
3240
  var n = void 0;
3198
- if (n = t[Gs]._onDragOver({
3199
- clientX: mc.clientX,
3200
- clientY: mc.clientY,
3241
+ if (n = t[Qs]._onDragOver({
3242
+ clientX: xc.clientX,
3243
+ clientY: xc.clientY,
3201
3244
  target: e,
3202
3245
  rootEl: t
3203
3246
  }), n && !this.options.dragoverBubble) break;
3204
3247
  }
3205
3248
  e = t;
3206
3249
  } while (t = t.parentNode);
3207
- Rc();
3250
+ Gc();
3208
3251
  }
3209
3252
  },
3210
3253
  _onTouchMove: function(e) {
3211
- if (pc) {
3212
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Ds(q, !0), o = q && a && a.a, s = q && a && a.d, c = kc && Z && Ps(Z), l = (i.clientX - pc.clientX + r.x) / (o || 1) + (c ? c[0] - Tc[0] : 0) / (o || 1), u = (i.clientY - pc.clientY + r.y) / (s || 1) + (c ? c[1] - Tc[1] : 0) / (s || 1);
3213
- if (!Q.active && !uc) {
3254
+ if (bc) {
3255
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Ps(q, !0), o = q && a && a.a, s = q && a && a.d, c = Ic && Z && Vs(Z), l = (i.clientX - bc.clientX + r.x) / (o || 1) + (c ? c[0] - Mc[0] : 0) / (o || 1), u = (i.clientY - bc.clientY + r.y) / (s || 1) + (c ? c[1] - Mc[1] : 0) / (s || 1);
3256
+ if (!Q.active && !_c) {
3214
3257
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3215
3258
  this._onDragStart(e, !0);
3216
3259
  }
3217
3260
  if (q) {
3218
- a ? (a.e += l - (hc || 0), a.f += u - (gc || 0)) : a = {
3261
+ a ? (a.e += l - (Sc || 0), a.f += u - (Cc || 0)) : a = {
3219
3262
  a: 1,
3220
3263
  b: 0,
3221
3264
  c: 0,
@@ -3224,35 +3267,35 @@ Q.prototype = {
3224
3267
  f: u
3225
3268
  };
3226
3269
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3227
- U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), hc = l, gc = u, mc = i;
3270
+ U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), Sc = l, Cc = u, xc = i;
3228
3271
  }
3229
3272
  e.cancelable && e.preventDefault();
3230
3273
  }
3231
3274
  },
3232
3275
  _appendGhost: function() {
3233
3276
  if (!q) {
3234
- var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, kc, !0, e), n = this.options;
3235
- if (kc) {
3277
+ var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, Ic, !0, e), n = this.options;
3278
+ if (Ic) {
3236
3279
  for (Z = e; U(Z, "position") === "static" && U(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3237
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = ks()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = ks(), Tc = Ps(Z);
3280
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Is()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Is(), Mc = Vs(Z);
3238
3281
  }
3239
- q = G.cloneNode(!0), Es(q, n.ghostClass, !1), Es(q, n.fallbackClass, !0), Es(q, n.dragClass, !0), U(q, "transition", ""), U(q, "transform", ""), U(q, "box-sizing", "border-box"), U(q, "margin", 0), U(q, "top", t.top), U(q, "left", t.left), U(q, "width", t.width), U(q, "height", t.height), U(q, "opacity", "0.8"), U(q, "position", kc ? "absolute" : "fixed"), U(q, "zIndex", "100000"), U(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), U(q, "transform-origin", _c / parseInt(q.style.width) * 100 + "% " + vc / parseInt(q.style.height) * 100 + "%");
3282
+ q = G.cloneNode(!0), Ns(q, n.ghostClass, !1), Ns(q, n.fallbackClass, !0), Ns(q, n.dragClass, !0), U(q, "transition", ""), U(q, "transform", ""), U(q, "box-sizing", "border-box"), U(q, "margin", 0), U(q, "top", t.top), U(q, "left", t.left), U(q, "width", t.width), U(q, "height", t.height), U(q, "opacity", "0.8"), U(q, "position", Ic ? "absolute" : "fixed"), U(q, "zIndex", "100000"), U(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), U(q, "transform-origin", wc / parseInt(q.style.width) * 100 + "% " + Tc / parseInt(q.style.height) * 100 + "%");
3240
3283
  }
3241
3284
  },
3242
3285
  _onDragStart: function(e, t) {
3243
3286
  var n = this, r = e.dataTransfer, i = n.options;
3244
- ec("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (ec("setupClone", this), Q.eventCanceled || (Y = Us(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Es(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Zc(function() {
3245
- ec("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), tc({
3287
+ sc("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (sc("setupClone", this), Q.eventCanceled || (Y = Xs(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Ns(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = il(function() {
3288
+ sc("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), cc({
3246
3289
  sortable: n,
3247
3290
  name: "clone"
3248
3291
  }));
3249
- }), !t && Es(G, i.dragClass, !0), t ? (dc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), V(document, "drop", n), U(G, "transform", "translateZ(0)")), uc = !0, n._dragStartId = Zc(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), yc = !0, vs && U(document.body, "user-select", "none"));
3292
+ }), !t && Ns(G, i.dragClass, !0), t ? (vc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), V(document, "drop", n), U(G, "transform", "translateZ(0)")), _c = !0, n._dragStartId = il(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), Ec = !0, Ts && U(document.body, "user-select", "none"));
3250
3293
  },
3251
3294
  _onDragOver: function(e) {
3252
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = lc === s, u = o.sort, d = X || c, f, p = this, m = !1;
3253
- if (Ec) return;
3295
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = gc === s, u = o.sort, d = X || c, f, p = this, m = !1;
3296
+ if (Nc) return;
3254
3297
  function h(o, s) {
3255
- ec(o, p, ss({
3298
+ sc(o, p, ms({
3256
3299
  evt: e,
3257
3300
  isOwner: l,
3258
3301
  axis: f ? "vertical" : "horizontal",
@@ -3264,7 +3307,7 @@ Q.prototype = {
3264
3307
  target: n,
3265
3308
  completed: _,
3266
3309
  onMove: function(n, i) {
3267
- return Hc(J, t, G, r, n, W(n), e, i);
3310
+ return Yc(J, t, G, r, n, W(n), e, i);
3268
3311
  },
3269
3312
  changed: v
3270
3313
  }, s));
@@ -3273,50 +3316,50 @@ Q.prototype = {
3273
3316
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
3274
3317
  }
3275
3318
  function _(r) {
3276
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Es(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Es(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3319
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Ns(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Ns(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3277
3320
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3278
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (bc = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Gs]._isOutsideThisEl(e.target), !r && zc(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3321
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Dc = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Qs]._isOutsideThisEl(e.target), !r && Kc(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3279
3322
  }
3280
3323
  function v() {
3281
- oc = Ns(G), cc = Ns(G, o.draggable), tc({
3324
+ pc = Bs(G), hc = Bs(G, o.draggable), cc({
3282
3325
  sortable: p,
3283
3326
  name: "change",
3284
3327
  toEl: t,
3285
- newIndex: oc,
3286
- newDraggableIndex: cc,
3328
+ newIndex: pc,
3329
+ newDraggableIndex: hc,
3287
3330
  originalEvent: e
3288
3331
  });
3289
3332
  }
3290
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ws(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3333
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = js(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3291
3334
  if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3292
- if (dc = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = lc.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3335
+ if (vc = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = gc.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3293
3336
  if (f = this._getDirection(e, n) === "vertical", r = W(G), h("dragOverValid"), Q.eventCanceled) return m;
3294
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (nc ? J.insertBefore(G, nc) : J.appendChild(G)), _(!0);
3295
- var y = Ms(t, o.draggable);
3296
- if (!y || Kc(e, f, this) && !y.animated) {
3337
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (lc ? J.insertBefore(G, lc) : J.appendChild(G)), _(!0);
3338
+ var y = zs(t, o.draggable);
3339
+ if (!y || $c(e, f, this) && !y.animated) {
3297
3340
  if (y === G) return _(!1);
3298
- if (y && t === e.target && (n = y), n && (i = W(n)), Hc(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3299
- } else if (y && Gc(e, f, this)) {
3300
- var b = js(t, 0, o, !0);
3341
+ if (y && t === e.target && (n = y), n && (i = W(n)), Yc(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3342
+ } else if (y && Qc(e, f, this)) {
3343
+ var b = Rs(t, 0, o, !0);
3301
3344
  if (b === G) return _(!1);
3302
- if (n = b, i = W(n), Hc(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3345
+ if (n = b, i = W(n), Yc(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3303
3346
  } else if (n.parentNode === t) {
3304
3347
  i = W(n);
3305
- var x = 0, S, C = G.parentNode !== t, w = !Pc(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = As(n, "top", "top") || As(G, "top", "top"), D = E ? E.scrollTop : void 0;
3306
- bc !== n && (S = i[T], Sc = !1, Cc = !w && o.invertSwap || C), x = qc(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Cc, bc === n);
3348
+ var x = 0, S, C = G.parentNode !== t, w = !Vc(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ls(n, "top", "top") || Ls(G, "top", "top"), D = E ? E.scrollTop : void 0;
3349
+ Dc !== n && (S = i[T], kc = !1, Ac = !w && o.invertSwap || C), x = el(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ac, Dc === n);
3307
3350
  var O;
3308
3351
  if (x !== 0) {
3309
- var k = Ns(G);
3352
+ var k = Bs(G);
3310
3353
  do
3311
3354
  k -= x, O = K.children[k];
3312
3355
  while (O && (U(O, "display") === "none" || O === q));
3313
3356
  }
3314
3357
  if (x === 0 || O === n) return _(!1);
3315
- bc = n, xc = x;
3358
+ Dc = n, Oc = x;
3316
3359
  var A = n.nextElementSibling, j = !1;
3317
3360
  j = x === 1;
3318
- var M = Hc(J, t, G, r, n, i, e, j);
3319
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Ec = !0, setTimeout(Wc, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Hs(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Cc && (wc = Math.abs(S - W(n)[T])), v(), _(!0);
3361
+ var M = Yc(J, t, G, r, n, i, e, j);
3362
+ if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Nc = !0, setTimeout(Zc, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Ys(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Ac && (jc = Math.abs(S - W(n)[T])), v(), _(!0);
3320
3363
  }
3321
3364
  if (t.contains(G)) return _(!1);
3322
3365
  }
@@ -3324,7 +3367,7 @@ Q.prototype = {
3324
3367
  },
3325
3368
  _ignoreWhileAnimating: null,
3326
3369
  _offMoveEvents: function() {
3327
- H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", zc), H(document, "mousemove", zc), H(document, "touchmove", zc);
3370
+ H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", Kc), H(document, "mousemove", Kc), H(document, "touchmove", Kc);
3328
3371
  },
3329
3372
  _offUpEvents: function() {
3330
3373
  var e = this.el.ownerDocument;
@@ -3332,46 +3375,46 @@ Q.prototype = {
3332
3375
  },
3333
3376
  _onDrop: function(e) {
3334
3377
  var t = this.el, n = this.options;
3335
- oc = Ns(G), cc = Ns(G, n.draggable), ec("drop", this, { evt: e }), K = G && G.parentNode, oc = Ns(G), cc = Ns(G, n.draggable), Q.eventCanceled || (uc = !1, Cc = !1, Sc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Qc(this.cloneId), Qc(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), vs && U(document.body, "user-select", ""), U(G, "transform", ""), e && (yc && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && H(G, "dragend", this), Uc(G), G.style["will-change"] = "", yc && !uc && Es(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Es(G, this.options.chosenClass, !1), tc({
3378
+ pc = Bs(G), hc = Bs(G, n.draggable), sc("drop", this, { evt: e }), K = G && G.parentNode, pc = Bs(G), hc = Bs(G, n.draggable), Q.eventCanceled || (_c = !1, Ac = !1, kc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), al(this.cloneId), al(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ts && U(document.body, "user-select", ""), U(G, "transform", ""), e && (Ec && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && H(G, "dragend", this), Xc(G), G.style["will-change"] = "", Ec && !_c && Ns(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Ns(G, this.options.chosenClass, !1), cc({
3336
3379
  sortable: this,
3337
3380
  name: "unchoose",
3338
3381
  toEl: K,
3339
3382
  newIndex: null,
3340
3383
  newDraggableIndex: null,
3341
3384
  originalEvent: e
3342
- }), J === K ? oc !== ac && oc >= 0 && (tc({
3385
+ }), J === K ? pc !== fc && pc >= 0 && (cc({
3343
3386
  sortable: this,
3344
3387
  name: "update",
3345
3388
  toEl: K,
3346
3389
  originalEvent: e
3347
- }), tc({
3390
+ }), cc({
3348
3391
  sortable: this,
3349
3392
  name: "sort",
3350
3393
  toEl: K,
3351
3394
  originalEvent: e
3352
- })) : (oc >= 0 && (tc({
3395
+ })) : (pc >= 0 && (cc({
3353
3396
  rootEl: K,
3354
3397
  name: "add",
3355
3398
  toEl: K,
3356
3399
  fromEl: J,
3357
3400
  originalEvent: e
3358
- }), tc({
3401
+ }), cc({
3359
3402
  sortable: this,
3360
3403
  name: "remove",
3361
3404
  toEl: K,
3362
3405
  originalEvent: e
3363
- }), tc({
3406
+ }), cc({
3364
3407
  rootEl: K,
3365
3408
  name: "sort",
3366
3409
  toEl: K,
3367
3410
  fromEl: J,
3368
3411
  originalEvent: e
3369
- }), tc({
3412
+ }), cc({
3370
3413
  sortable: this,
3371
3414
  name: "sort",
3372
3415
  toEl: K,
3373
3416
  originalEvent: e
3374
- })), X && X.save()), Q.active && ((oc == null || oc === -1) && (oc = ac, cc = sc), tc({
3417
+ })), X && X.save()), Q.active && ((pc == null || pc === -1) && (pc = fc, hc = mc), cc({
3375
3418
  sortable: this,
3376
3419
  name: "end",
3377
3420
  toEl: K,
@@ -3379,9 +3422,9 @@ Q.prototype = {
3379
3422
  }), this.save())))), this._nulling();
3380
3423
  },
3381
3424
  _nulling: function() {
3382
- ec("nulling", this), J = G = K = q = nc = Y = rc = ic = pc = mc = yc = oc = cc = ac = sc = bc = xc = X = lc = Q.dragged = Q.ghost = Q.clone = Q.active = null, Dc.forEach(function(e) {
3425
+ sc("nulling", this), J = G = K = q = lc = Y = uc = dc = bc = xc = Ec = pc = hc = fc = mc = Dc = Oc = X = gc = Q.dragged = Q.ghost = Q.clone = Q.active = null, Pc.forEach(function(e) {
3383
3426
  e.checked = !0;
3384
- }), Dc.length = hc = gc = 0;
3427
+ }), Pc.length = Sc = Cc = 0;
3385
3428
  },
3386
3429
  handleEvent: function(e) {
3387
3430
  switch (e.type) {
@@ -3391,20 +3434,20 @@ Q.prototype = {
3391
3434
  break;
3392
3435
  case "dragenter":
3393
3436
  case "dragover":
3394
- G && (this._onDragOver(e), Vc(e));
3437
+ G && (this._onDragOver(e), Jc(e));
3395
3438
  break;
3396
3439
  case "selectstart": e.preventDefault();
3397
3440
  }
3398
3441
  },
3399
3442
  toArray: function() {
3400
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], ws(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Yc(t));
3443
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], js(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || nl(t));
3401
3444
  return e;
3402
3445
  },
3403
3446
  sort: function(e, t) {
3404
3447
  var n = {}, r = this.el;
3405
3448
  this.toArray().forEach(function(e, t) {
3406
3449
  var i = r.children[t];
3407
- ws(i, this.options.draggable, r, !1) && (n[e] = i);
3450
+ js(i, this.options.draggable, r, !1) && (n[e] = i);
3408
3451
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
3409
3452
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
3410
3453
  }), t && this.animateAll();
@@ -3414,122 +3457,122 @@ Q.prototype = {
3414
3457
  e && e.set && e.set(this);
3415
3458
  },
3416
3459
  closest: function(e, t) {
3417
- return ws(e, t || this.options.draggable, this.el, !1);
3460
+ return js(e, t || this.options.draggable, this.el, !1);
3418
3461
  },
3419
3462
  option: function(e, t) {
3420
3463
  var n = this.options;
3421
3464
  if (t === void 0) return n[e];
3422
- var r = Zs.modifyOption(this, e, t);
3423
- n[e] = r === void 0 ? t : r, e === "group" && Ic(n);
3465
+ var r = ic.modifyOption(this, e, t);
3466
+ n[e] = r === void 0 ? t : r, e === "group" && Uc(n);
3424
3467
  },
3425
3468
  destroy: function() {
3426
- ec("destroy", this);
3469
+ sc("destroy", this);
3427
3470
  var e = this.el;
3428
- e[Gs] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3471
+ e[Qs] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3429
3472
  e.removeAttribute("draggable");
3430
- }), this._onDrop(), this._disableDelayedDragEvents(), fc.splice(fc.indexOf(this.el), 1), this.el = e = null;
3473
+ }), this._onDrop(), this._disableDelayedDragEvents(), yc.splice(yc.indexOf(this.el), 1), this.el = e = null;
3431
3474
  },
3432
3475
  _hideClone: function() {
3433
- if (!ic) {
3434
- if (ec("hideClone", this), Q.eventCanceled) return;
3435
- U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), ic = !0;
3476
+ if (!dc) {
3477
+ if (sc("hideClone", this), Q.eventCanceled) return;
3478
+ U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), dc = !0;
3436
3479
  }
3437
3480
  },
3438
3481
  _showClone: function(e) {
3439
3482
  if (e.lastPutMode !== "clone") this._hideClone();
3440
- else if (ic) {
3441
- if (ec("showClone", this), Q.eventCanceled) return;
3442
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : nc ? J.insertBefore(Y, nc) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), U(Y, "display", ""), ic = !1;
3483
+ else if (dc) {
3484
+ if (sc("showClone", this), Q.eventCanceled) return;
3485
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : lc ? J.insertBefore(Y, lc) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), U(Y, "display", ""), dc = !1;
3443
3486
  }
3444
3487
  }
3445
3488
  };
3446
- function Vc(e) {
3489
+ function Jc(e) {
3447
3490
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3448
3491
  }
3449
- function Hc(e, t, n, r, i, a, o, s) {
3450
- var c, l = e[Gs], u = l.options.onMove, d;
3451
- return window.CustomEvent && !hs && !gs ? c = new CustomEvent("move", {
3492
+ function Yc(e, t, n, r, i, a, o, s) {
3493
+ var c, l = e[Qs], u = l.options.onMove, d;
3494
+ return window.CustomEvent && !Ss && !Cs ? c = new CustomEvent("move", {
3452
3495
  bubbles: !0,
3453
3496
  cancelable: !0
3454
3497
  }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || W(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3455
3498
  }
3456
- function Uc(e) {
3499
+ function Xc(e) {
3457
3500
  e.draggable = !1;
3458
3501
  }
3459
- function Wc() {
3460
- Ec = !1;
3502
+ function Zc() {
3503
+ Nc = !1;
3461
3504
  }
3462
- function Gc(e, t, n) {
3463
- var r = W(js(n.el, 0, n.options, !0)), i = Ws(n.el, n.options, q), a = 10;
3505
+ function Qc(e, t, n) {
3506
+ var r = W(Rs(n.el, 0, n.options, !0)), i = Zs(n.el, n.options, q), a = 10;
3464
3507
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
3465
3508
  }
3466
- function Kc(e, t, n) {
3467
- var r = W(Ms(n.el, n.options.draggable)), i = Ws(n.el, n.options, q), a = 10;
3509
+ function $c(e, t, n) {
3510
+ var r = W(zs(n.el, n.options.draggable)), i = Zs(n.el, n.options, q), a = 10;
3468
3511
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
3469
3512
  }
3470
- function qc(e, t, n, r, i, a, o, s) {
3513
+ function el(e, t, n, r, i, a, o, s) {
3471
3514
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
3472
3515
  if (!o) {
3473
- if (s && wc < l * i) {
3474
- if (!Sc && (xc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Sc = !0), Sc) f = !0;
3475
- else if (xc === 1 ? c < u + wc : c > d - wc) return -xc;
3476
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Jc(t);
3516
+ if (s && jc < l * i) {
3517
+ if (!kc && (Oc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (kc = !0), kc) f = !0;
3518
+ else if (Oc === 1 ? c < u + jc : c > d - jc) return -Oc;
3519
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return tl(t);
3477
3520
  }
3478
3521
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3479
3522
  }
3480
- function Jc(e) {
3481
- return Ns(G) < Ns(e) ? 1 : -1;
3523
+ function tl(e) {
3524
+ return Bs(G) < Bs(e) ? 1 : -1;
3482
3525
  }
3483
- function Yc(e) {
3526
+ function nl(e) {
3484
3527
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3485
3528
  return r.toString(36);
3486
3529
  }
3487
- function Xc(e) {
3488
- Dc.length = 0;
3530
+ function rl(e) {
3531
+ Pc.length = 0;
3489
3532
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3490
3533
  var r = t[n];
3491
- r.checked && Dc.push(r);
3534
+ r.checked && Pc.push(r);
3492
3535
  }
3493
3536
  }
3494
- function Zc(e) {
3537
+ function il(e) {
3495
3538
  return setTimeout(e, 0);
3496
3539
  }
3497
- function Qc(e) {
3540
+ function al(e) {
3498
3541
  return clearTimeout(e);
3499
3542
  }
3500
- Oc && V(document, "touchmove", function(e) {
3501
- (Q.active || uc) && e.cancelable && e.preventDefault();
3543
+ Fc && V(document, "touchmove", function(e) {
3544
+ (Q.active || _c) && e.cancelable && e.preventDefault();
3502
3545
  }), Q.utils = {
3503
3546
  on: V,
3504
3547
  off: H,
3505
3548
  css: U,
3506
- find: Os,
3549
+ find: Fs,
3507
3550
  is: function(e, t) {
3508
- return !!ws(e, t, e, !1);
3551
+ return !!js(e, t, e, !1);
3509
3552
  },
3510
- extend: Ls,
3511
- throttle: Bs,
3512
- closest: ws,
3513
- toggleClass: Es,
3514
- clone: Us,
3515
- index: Ns,
3516
- nextTick: Zc,
3517
- cancelNextTick: Qc,
3518
- detectDirection: Nc,
3519
- getChild: js
3553
+ extend: Ws,
3554
+ throttle: qs,
3555
+ closest: js,
3556
+ toggleClass: Ns,
3557
+ clone: Xs,
3558
+ index: Bs,
3559
+ nextTick: il,
3560
+ cancelNextTick: al,
3561
+ detectDirection: Bc,
3562
+ getChild: Rs
3520
3563
  }, Q.get = function(e) {
3521
- return e[Gs];
3564
+ return e[Qs];
3522
3565
  }, Q.mount = function() {
3523
3566
  var e = [...arguments];
3524
3567
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3525
3568
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3526
- e.utils && (Q.utils = ss(ss({}, Q.utils), e.utils)), Zs.mount(e);
3569
+ e.utils && (Q.utils = ms(ms({}, Q.utils), e.utils)), ic.mount(e);
3527
3570
  });
3528
3571
  }, Q.create = function(e, t) {
3529
3572
  return new Q(e, t);
3530
- }, Q.version = ps;
3531
- var $ = [], $c, el, tl = !1, nl, rl, il, al;
3532
- function ol() {
3573
+ }, Q.version = bs;
3574
+ var $ = [], ol, sl, cl = !1, ll, ul, dl, fl;
3575
+ function pl() {
3533
3576
  function e() {
3534
3577
  for (var e in this.defaults = {
3535
3578
  scroll: !0,
@@ -3549,63 +3592,63 @@ function ol() {
3549
3592
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3550
3593
  },
3551
3594
  drop: function() {
3552
- this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), cl(), sl(), Vs();
3595
+ this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), hl(), ml(), Js();
3553
3596
  },
3554
3597
  nulling: function() {
3555
- il = el = $c = tl = al = nl = rl = null, $.length = 0;
3598
+ dl = sl = ol = cl = fl = ll = ul = null, $.length = 0;
3556
3599
  },
3557
3600
  _handleFallbackAutoScroll: function(e) {
3558
3601
  this._handleAutoScroll(e, !0);
3559
3602
  },
3560
3603
  _handleAutoScroll: function(e, t) {
3561
3604
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3562
- if (il = e, t || this.options.forceAutoScrollFallback || gs || hs || vs) {
3563
- ll(e, this.options, a, t);
3564
- var o = Is(a, !0);
3565
- tl && (!al || r !== nl || i !== rl) && (al && cl(), al = setInterval(function() {
3566
- var a = Is(document.elementFromPoint(r, i), !0);
3567
- a !== o && (o = a, sl()), ll(e, n.options, a, t);
3568
- }, 10), nl = r, rl = i);
3605
+ if (dl = e, t || this.options.forceAutoScrollFallback || Cs || Ss || Ts) {
3606
+ gl(e, this.options, a, t);
3607
+ var o = Us(a, !0);
3608
+ cl && (!fl || r !== ll || i !== ul) && (fl && hl(), fl = setInterval(function() {
3609
+ var a = Us(document.elementFromPoint(r, i), !0);
3610
+ a !== o && (o = a, ml()), gl(e, n.options, a, t);
3611
+ }, 10), ll = r, ul = i);
3569
3612
  } else {
3570
- if (!this.options.bubbleScroll || Is(a, !0) === ks()) {
3571
- sl();
3613
+ if (!this.options.bubbleScroll || Us(a, !0) === Is()) {
3614
+ ml();
3572
3615
  return;
3573
3616
  }
3574
- ll(e, this.options, Is(a, !1), !1);
3617
+ gl(e, this.options, Us(a, !1), !1);
3575
3618
  }
3576
3619
  }
3577
- }, us(e, {
3620
+ }, _s(e, {
3578
3621
  pluginName: "scroll",
3579
3622
  initializeByDefault: !0
3580
3623
  });
3581
3624
  }
3582
- function sl() {
3625
+ function ml() {
3583
3626
  $.forEach(function(e) {
3584
3627
  clearInterval(e.pid);
3585
3628
  }), $ = [];
3586
3629
  }
3587
- function cl() {
3588
- clearInterval(al);
3630
+ function hl() {
3631
+ clearInterval(fl);
3589
3632
  }
3590
- var ll = Bs(function(e, t, n, r) {
3633
+ var gl = qs(function(e, t, n, r) {
3591
3634
  if (t.scroll) {
3592
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = ks(), l = !1, u;
3593
- el !== n && (el = n, sl(), $c = t.scroll, u = t.scrollFn, $c === !0 && ($c = Is(n, !0)));
3594
- var d = 0, f = $c;
3635
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Is(), l = !1, u;
3636
+ sl !== n && (sl = n, ml(), ol = t.scroll, u = t.scrollFn, ol === !0 && (ol = Us(n, !0)));
3637
+ var d = 0, f = ol;
3595
3638
  do {
3596
3639
  var p = f, m = W(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = U(p), E = p.scrollLeft, D = p.scrollTop;
3597
3640
  p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
3598
3641
  var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
3599
3642
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
3600
3643
  ($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
3601
- r && this.layer === 0 && Q.active._onTouchMove(il);
3644
+ r && this.layer === 0 && Q.active._onTouchMove(dl);
3602
3645
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3603
- typeof u == "function" && u.call(Q.dragged.parentNode[Gs], n, t, e, il, $[this.layer].el) !== "continue" || Hs($[this.layer].el, n, t);
3646
+ typeof u == "function" && u.call(Q.dragged.parentNode[Qs], n, t, e, dl, $[this.layer].el) !== "continue" || Ys($[this.layer].el, n, t);
3604
3647
  }.bind({ layer: d }), 24))), d++;
3605
- } while (t.bubbleScroll && f !== c && (f = Is(f, !1)));
3606
- tl = l;
3648
+ } while (t.bubbleScroll && f !== c && (f = Us(f, !1)));
3649
+ cl = l;
3607
3650
  }
3608
- }, 30), ul = function(e) {
3651
+ }, 30), _l = function(e) {
3609
3652
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3610
3653
  if (t) {
3611
3654
  var c = n || i;
@@ -3617,8 +3660,8 @@ var ll = Bs(function(e, t, n, r) {
3617
3660
  }));
3618
3661
  }
3619
3662
  };
3620
- function dl() {}
3621
- dl.prototype = {
3663
+ function vl() {}
3664
+ vl.prototype = {
3622
3665
  startIndex: null,
3623
3666
  dragStart: function(e) {
3624
3667
  var t = e.oldDraggableIndex;
@@ -3627,67 +3670,67 @@ dl.prototype = {
3627
3670
  onSpill: function(e) {
3628
3671
  var t = e.dragEl, n = e.putSortable;
3629
3672
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3630
- var r = js(this.sortable.el, this.startIndex, this.options);
3673
+ var r = Rs(this.sortable.el, this.startIndex, this.options);
3631
3674
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3632
3675
  },
3633
- drop: ul
3634
- }, us(dl, { pluginName: "revertOnSpill" });
3635
- function fl() {}
3636
- fl.prototype = {
3676
+ drop: _l
3677
+ }, _s(vl, { pluginName: "revertOnSpill" });
3678
+ function yl() {}
3679
+ yl.prototype = {
3637
3680
  onSpill: function(e) {
3638
3681
  var t = e.dragEl, n = e.putSortable || this.sortable;
3639
3682
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3640
3683
  },
3641
- drop: ul
3642
- }, us(fl, { pluginName: "removeOnSpill" }), Q.mount(new ol()), Q.mount(fl, dl);
3643
- function pl(e) {
3684
+ drop: _l
3685
+ }, _s(yl, { pluginName: "removeOnSpill" }), Q.mount(new pl()), Q.mount(yl, vl);
3686
+ function bl(e) {
3644
3687
  return e == null ? e : JSON.parse(JSON.stringify(e));
3645
3688
  }
3646
- function ml(e) {
3689
+ function xl(e) {
3647
3690
  S() && k(e);
3648
3691
  }
3649
- function hl(t) {
3692
+ function Sl(t) {
3650
3693
  S() ? e(t) : u(t);
3651
3694
  }
3652
- var gl = null, _l = null;
3653
- function vl(e = null, t = null) {
3654
- gl = e, _l = t;
3695
+ var Cl = null, wl = null;
3696
+ function Tl(e = null, t = null) {
3697
+ Cl = e, wl = t;
3655
3698
  }
3656
- function yl() {
3699
+ function El() {
3657
3700
  return {
3658
- data: gl,
3659
- clonedData: _l
3701
+ data: Cl,
3702
+ clonedData: wl
3660
3703
  };
3661
3704
  }
3662
- var bl = Symbol("cloneElement");
3663
- function xl(...e) {
3705
+ var Dl = Symbol("cloneElement");
3706
+ function Ol(...e) {
3664
3707
  let n = S()?.proxy, r = null, i = e[0], [, a, o] = e;
3665
3708
  Array.isArray(w(a)) || (o = a, a = null);
3666
- let s = null, { immediate: c = !0, clone: l = pl, forceFallback: d, fallbackOnBody: f, customUpdate: p } = w(o) ?? {};
3709
+ let s = null, { immediate: c = !0, clone: l = bl, forceFallback: d, fallbackOnBody: f, customUpdate: p } = w(o) ?? {};
3667
3710
  function m(e) {
3668
3711
  let { from: t, oldIndex: n, item: i } = e, o = Array.from(t.childNodes);
3669
3712
  r = d && !f ? o.slice(0, -1) : o;
3670
3713
  let s = w(w(a)?.[n]), c = l(s);
3671
- vl(s, c), i[bl] = c;
3714
+ Tl(s, c), i[Dl] = c;
3672
3715
  }
3673
3716
  function h(e) {
3674
- let t = e.item[bl];
3675
- if (!Yo(t)) {
3676
- if (Qo(e.item), _(a)) {
3717
+ let t = e.item[Dl];
3718
+ if (!ns(t)) {
3719
+ if (as(e.item), _(a)) {
3677
3720
  let n = [...w(a)];
3678
- a.value = Jo(n, e.newDraggableIndex, t);
3721
+ a.value = ts(n, e.newDraggableIndex, t);
3679
3722
  return;
3680
3723
  }
3681
- Jo(w(a), e.newDraggableIndex, t);
3724
+ ts(w(a), e.newDraggableIndex, t);
3682
3725
  }
3683
3726
  }
3684
3727
  function g(e) {
3685
3728
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: o, clone: s } = e;
3686
- if (Zo(t, n, r), o === "clone") Qo(s);
3729
+ if (is(t, n, r), o === "clone") as(s);
3687
3730
  else if (_(a)) {
3688
3731
  let e = [...w(a)];
3689
- a.value = qo(e, i);
3690
- } else qo(w(a), i);
3732
+ a.value = es(e, i);
3733
+ } else es(w(a), i);
3691
3734
  }
3692
3735
  function v(e) {
3693
3736
  if (p) {
@@ -3695,10 +3738,10 @@ function xl(...e) {
3695
3738
  return;
3696
3739
  }
3697
3740
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: o } = e;
3698
- if (Qo(n), Zo(t, n, r), _(a)) {
3741
+ if (as(n), is(t, n, r), _(a)) {
3699
3742
  let e = [...w(a)];
3700
- a.value = Wo(e, i, o);
3701
- } else Wo(w(a), i, o);
3743
+ a.value = Zo(e, i, o);
3744
+ } else Zo(w(a), i, o);
3702
3745
  }
3703
3746
  function y(e) {
3704
3747
  let { newIndex: t, oldIndex: n, from: i, to: a } = e, o = null, s = t === n && i === a;
@@ -3717,7 +3760,7 @@ function xl(...e) {
3717
3760
  r = null;
3718
3761
  }
3719
3762
  u(() => {
3720
- if (vl(), o) throw o;
3763
+ if (Tl(), o) throw o;
3721
3764
  });
3722
3765
  }
3723
3766
  let b = {
@@ -3729,19 +3772,19 @@ function xl(...e) {
3729
3772
  };
3730
3773
  function x(e) {
3731
3774
  let t = w(i);
3732
- return e ||= Xo(t) ? $o(t, n?.$el) : t, e && !ns(e) && (e = e.$el), e || Uo("Root element not found"), e;
3775
+ return e ||= rs(t) ? os(t, n?.$el) : t, e && !ls(e) && (e = e.$el), e || Xo("Root element not found"), e;
3733
3776
  }
3734
3777
  function C() {
3735
- let e = w(o) ?? {}, { immediate: t, clone: n } = e, r = Bo(e, ["immediate", "clone"]);
3736
- return rs(r, (e, t) => {
3737
- is(e) && (r[e] = (e, ...n) => (as(e, yl()), t(e, ...n)));
3738
- }), ts(a === null ? {} : b, r);
3778
+ let e = w(o) ?? {}, { immediate: t, clone: n } = e, r = qo(e, ["immediate", "clone"]);
3779
+ return us(r, (e, t) => {
3780
+ ds(e) && (r[e] = (e, ...n) => (fs(e, El()), t(e, ...n)));
3781
+ }), cs(a === null ? {} : b, r);
3739
3782
  }
3740
3783
  let T = (e) => {
3741
3784
  e = x(e), s && E.destroy(), s = new Q(e, C());
3742
3785
  };
3743
3786
  t(() => o, () => {
3744
- s && rs(C(), (e, t) => {
3787
+ s && us(C(), (e, t) => {
3745
3788
  s?.option(e, t);
3746
3789
  });
3747
3790
  }, { deep: !0 });
@@ -3754,15 +3797,15 @@ function xl(...e) {
3754
3797
  toArray: () => s?.toArray(),
3755
3798
  closest: (...e) => s?.closest(...e)
3756
3799
  };
3757
- return hl(() => {
3800
+ return Sl(() => {
3758
3801
  c && T();
3759
- }), ml(E.destroy), zo({
3802
+ }), xl(E.destroy), Ko({
3760
3803
  start: T,
3761
3804
  pause: () => E?.option("disabled", !0),
3762
3805
  resume: () => E?.option("disabled", !1)
3763
3806
  }, E);
3764
3807
  }
3765
- var Sl = [
3808
+ var kl = [
3766
3809
  "update",
3767
3810
  "start",
3768
3811
  "add",
@@ -3775,7 +3818,7 @@ var Sl = [
3775
3818
  "clone",
3776
3819
  "move",
3777
3820
  "change"
3778
- ], Cl = [
3821
+ ], Al = [
3779
3822
  "clone",
3780
3823
  "animation",
3781
3824
  "ghostClass",
@@ -3819,46 +3862,46 @@ var Sl = [
3819
3862
  "tag",
3820
3863
  "target",
3821
3864
  "customUpdate",
3822
- ...Sl.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3823
- ], wl = R({
3865
+ ...kl.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3866
+ ], jl = R({
3824
3867
  name: "VueDraggable",
3825
3868
  model: {
3826
3869
  prop: "modelValue",
3827
3870
  event: "update:modelValue"
3828
3871
  },
3829
- props: Cl,
3830
- emits: ["update:modelValue", ...Sl],
3872
+ props: Al,
3873
+ emits: ["update:modelValue", ...kl],
3831
3874
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3832
- let a = Sl.reduce((e, t) => {
3875
+ let a = kl.reduce((e, t) => {
3833
3876
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3834
3877
  return e[r] = (...e) => n(t, ...e), e;
3835
3878
  }, {}), o = C(() => {
3836
- let t = x(e), { modelValue: n } = t, r = Bo(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3879
+ let t = x(e), { modelValue: n } = t, r = qo(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3837
3880
  let r = w(n);
3838
3881
  return r !== void 0 && (e[t] = r), e;
3839
3882
  }, {});
3840
- return zo(zo({}, a), Ko(zo(zo({}, i), o)));
3883
+ return Ko(Ko({}, a), $o(Ko(Ko({}, i), o)));
3841
3884
  }), s = C({
3842
3885
  get: () => e.modelValue,
3843
3886
  set: (e) => n("update:modelValue", e)
3844
- }), c = E(), l = p(xl(e.target || c, s, o));
3887
+ }), c = E(), l = p(Ol(e.target || c, s, o));
3845
3888
  return r(l), () => m(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
3846
3889
  }
3847
- }), Tl = {
3890
+ }), Ml = {
3848
3891
  mounted: "mounted",
3849
3892
  unmounted: "unmounted"
3850
3893
  };
3851
- Tl.mounted, Tl.unmounted;
3894
+ Ml.mounted, Ml.unmounted;
3852
3895
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3853
- var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3896
+ var Nl = { class: "tpl:relative tpl:w-full" }, Pl = {
3854
3897
  key: 0,
3855
3898
  "data-testid": "hero-image-hint",
3856
3899
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
3857
- }, Ol = {
3900
+ }, Fl = {
3858
3901
  key: 0,
3859
3902
  "data-testid": "section-drop-hint",
3860
3903
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
3861
- }, kl = /* @__PURE__ */ R({
3904
+ }, Il = /* @__PURE__ */ R({
3862
3905
  __name: "SectionBlock",
3863
3906
  props: {
3864
3907
  block: {},
@@ -3867,15 +3910,15 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3867
3910
  },
3868
3911
  setup(e) {
3869
3912
  let t = {
3870
- title: Eo,
3871
- paragraph: Ha,
3872
- image: Fa,
3873
- button: ra,
3874
- divider: _a,
3875
- custom: ha
3876
- }, r = e, { t: a } = Yn(), u = In(Wn, "SectionBlock"), { displayBlock: p } = Xn(u), m = C(() => r.sourceBlock ?? r.block), _ = L(kn, C(() => /* @__PURE__ */ new Set()));
3877
- l(kn, C(() => /* @__PURE__ */ new Set([..._.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
3878
- let v = L(Pn, null), b = L(Nn, null), x = L(Tn, {}), S = L(xn, null);
3913
+ title: No,
3914
+ paragraph: Ya,
3915
+ image: Ha,
3916
+ button: ua,
3917
+ divider: wa,
3918
+ custom: Sa
3919
+ }, r = e, { t: a } = Qn(), u = Wn(qn, "SectionBlock"), { displayBlock: p } = $n(u), m = C(() => r.sourceBlock ?? r.block), _ = L(jn, C(() => /* @__PURE__ */ new Set()));
3920
+ l(jn, C(() => /* @__PURE__ */ new Set([..._.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
3921
+ let v = L(In, null), b = L(Fn, null), x = L(Dn, {}), S = L(Cn, null);
3879
3922
  function O(e) {
3880
3923
  let t = x.savedBlocks;
3881
3924
  t?.isPicking.value ? t.togglePick(r.block.id) : u.selectBlock(e);
@@ -3888,8 +3931,21 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3888
3931
  "33.33%",
3889
3932
  "33.33%"
3890
3933
  ];
3934
+ case "4": return [
3935
+ "25%",
3936
+ "25%",
3937
+ "25%",
3938
+ "25%"
3939
+ ];
3891
3940
  case "1-2": return ["33.33%", "66.67%"];
3892
3941
  case "2-1": return ["66.67%", "33.33%"];
3942
+ case "1-3": return ["25%", "75%"];
3943
+ case "3-1": return ["75%", "25%"];
3944
+ case "1-2-1": return [
3945
+ "25%",
3946
+ "50%",
3947
+ "25%"
3948
+ ];
3893
3949
  default: return ["100%"];
3894
3950
  }
3895
3951
  }), A = C(() => {
@@ -3912,7 +3968,7 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3912
3968
  }
3913
3969
  let z = C(() => {
3914
3970
  if (u.state.previewMode) return !1;
3915
- let e = ke(r.block);
3971
+ let e = de(r.block);
3916
3972
  return e !== null && !e.applied && e.reason === "image";
3917
3973
  });
3918
3974
  function re(e) {
@@ -3922,10 +3978,10 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3922
3978
  return N(e).length === 0 && u.state.previewMode;
3923
3979
  }
3924
3980
  function ae(e, t) {
3925
- Ua(u, t, r.block.id, e);
3981
+ Xa(u, t, r.block.id, e);
3926
3982
  }
3927
3983
  function oe(e) {
3928
- return Vi(e, b, t);
3984
+ return Wi(e, b, t);
3929
3985
  }
3930
3986
  function se(e, t) {
3931
3987
  e.type === "custom" && u.updateBlock(e.id, {
@@ -3933,16 +3989,16 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3933
3989
  dataSourceFetched: t.dataSourceFetched
3934
3990
  });
3935
3991
  }
3936
- return (t, l) => (s(), D("div", El, [z.value ? (s(), D("div", Dl, [j("span", null, i(w(a).section.heroAddImage), 1)])) : T("", !0), j("div", { class: c(["tpl:flex tpl:gap-0", { "tpl:flex-col": M.value }]) }, [(s(!0), D(P, null, d(A.value, (t, m) => (s(), D("div", {
3992
+ return (t, l) => (s(), D("div", Nl, [z.value ? (s(), D("div", Pl, [j("span", null, i(w(a).section.heroAddImage), 1)])) : T("", !0), j("div", { class: c(["tpl:flex tpl:gap-0", { "tpl:flex-col": M.value }]) }, [(s(!0), D(P, null, d(A.value, (t, m) => (s(), D("div", {
3937
3993
  key: m,
3938
3994
  class: c(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", re(m) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3939
3995
  style: f({ width: M.value ? "100%" : k.value[m] })
3940
- }, [y(w(wl), {
3996
+ }, [y(w(jl), {
3941
3997
  "model-value": N(m),
3942
3998
  group: {
3943
3999
  name: "blocks",
3944
4000
  pull: !0,
3945
- put: (e, t, n) => w(No)(n)
4001
+ put: (e, t, n) => w(Bo)(n)
3946
4002
  },
3947
4003
  animation: 150,
3948
4004
  "ghost-class": "tpl-ghost",
@@ -3956,12 +4012,12 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3956
4012
  "tpl:min-h-[60px]": R(m),
3957
4013
  "tpl:min-h-[34px]": ie(m)
3958
4014
  }]),
3959
- onUpdate: (e) => w(Ua)(w(u), N(m), r.block.id, m, e),
4015
+ onUpdate: (e) => w(Xa)(w(u), N(m), r.block.id, m, e),
3960
4016
  onStart: (e) => I.value = m,
3961
4017
  onEnd: l[0] ||= (e) => I.value = null,
3962
4018
  "onUpdate:modelValue": (e) => ae(m, e)
3963
4019
  }, {
3964
- default: h(() => [(s(!0), D(P, null, d(N(m), (t) => g((s(), D("div", { key: t.id }, [y(wo, {
4020
+ default: h(() => [(s(!0), D(P, null, d(N(m), (t) => g((s(), D("div", { key: t.id }, [y(jo, {
3965
4021
  block: t,
3966
4022
  "display-block": w(p)(t),
3967
4023
  "is-selected": w(u).state.selectedBlockId === t.id,
@@ -3997,14 +4053,14 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
3997
4053
  "onUpdate",
3998
4054
  "onStart",
3999
4055
  "onUpdate:modelValue"
4000
- ]), re(m) ? (s(), D("div", Ol, [j("span", null, i(w(a).section.dropHere), 1)])) : T("", !0)], 6))), 128))], 2)]));
4056
+ ]), re(m) ? (s(), D("div", Fl, [j("span", null, i(w(a).section.dropHere), 1)])) : T("", !0)], 6))), 128))], 2)]));
4001
4057
  }
4002
- }), Al = ["width", "height"], jl = [
4058
+ }), Ll = ["width", "height"], Rl = [
4003
4059
  "d",
4004
4060
  "stroke",
4005
4061
  "stroke-opacity",
4006
4062
  "stroke-width"
4007
- ], Ml = ["d", "fill"], Nl = /* @__PURE__ */ R({
4063
+ ], zl = ["d", "fill"], Bl = /* @__PURE__ */ R({
4008
4064
  __name: "SocialIconSvg",
4009
4065
  props: {
4010
4066
  platform: {},
@@ -4013,7 +4069,7 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4013
4069
  iconSize: {}
4014
4070
  },
4015
4071
  setup(e) {
4016
- let t = e, n = C(() => Ot[t.platform]), r = C(() => At[t.iconSize]), i = C(() => et(t.platform, t.iconTone)), a = C(() => Ne(t.iconStyle, t.iconTone)), o = C(() => {
4072
+ let t = e, n = C(() => At[t.platform]), r = C(() => Mt[t.iconSize]), i = C(() => Ae(t.platform, t.iconTone)), a = C(() => Ce(t.iconStyle, t.iconTone)), o = C(() => {
4017
4073
  let e = {
4018
4074
  display: "inline-flex",
4019
4075
  alignItems: "center",
@@ -4051,7 +4107,7 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4051
4107
  };
4052
4108
  default: return e;
4053
4109
  }
4054
- }), c = C(() => me(t.iconStyle)), l = C(() => Math.floor(r.value * c.value));
4110
+ }), c = C(() => Pe(t.iconStyle)), l = C(() => Math.floor(r.value * c.value));
4055
4111
  function u(e) {
4056
4112
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
4057
4113
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -4072,28 +4128,28 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4072
4128
  "stroke-opacity": a.value.opacity,
4073
4129
  "stroke-width": a.value.width / c.value,
4074
4130
  "stroke-linejoin": "round"
4075
- }, null, 8, jl)) : T("", !0), j("path", {
4131
+ }, null, 8, Rl)) : T("", !0), j("path", {
4076
4132
  d: n.value.path,
4077
4133
  fill: d.value
4078
- }, null, 8, Ml)], 8, Al))], 4));
4134
+ }, null, 8, zl)], 8, Ll))], 4));
4079
4135
  }
4080
- }), Pl = { class: "tpl:w-full" }, Fl = ["href"], Il = {
4136
+ }), Vl = { class: "tpl:w-full" }, Hl = ["href"], Ul = {
4081
4137
  key: 1,
4082
4138
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
4083
- }, Ll = /* @__PURE__ */ R({
4139
+ }, Wl = /* @__PURE__ */ R({
4084
4140
  __name: "SocialIconsBlock",
4085
4141
  props: {
4086
4142
  block: {},
4087
4143
  viewport: {}
4088
4144
  },
4089
4145
  setup(e) {
4090
- let t = e, { t: n } = Yn(), r = C(() => ({
4146
+ let t = e, { t: n } = Qn(), r = C(() => ({
4091
4147
  display: "flex",
4092
4148
  flexWrap: "wrap",
4093
4149
  gap: `${t.block.spacing}px`,
4094
4150
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
4095
4151
  })), a = C(() => t.block.icons.length > 0);
4096
- return (t, o) => (s(), D("div", Pl, [a.value ? (s(), D("div", {
4152
+ return (t, o) => (s(), D("div", Vl, [a.value ? (s(), D("div", {
4097
4153
  key: 0,
4098
4154
  style: f(r.value)
4099
4155
  }, [(s(!0), D(P, null, d(e.block.icons, (t) => (s(), D("a", {
@@ -4101,7 +4157,7 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4101
4157
  href: t.url || "#",
4102
4158
  class: "tpl:cursor-default",
4103
4159
  onClick: o[0] ||= z(() => {}, ["prevent"])
4104
- }, [y(Nl, {
4160
+ }, [y(Bl, {
4105
4161
  platform: t.platform,
4106
4162
  "icon-style": e.block.iconStyle,
4107
4163
  "icon-tone": e.block.iconTone,
@@ -4111,44 +4167,44 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4111
4167
  "icon-style",
4112
4168
  "icon-tone",
4113
4169
  "icon-size"
4114
- ])], 8, Fl))), 128))], 4)) : (s(), D("div", Il, [y(w(ht), { size: 16 }), j("span", null, i(w(n).social.addIcons), 1)]))]));
4170
+ ])], 8, Hl))), 128))], 4)) : (s(), D("div", Ul, [y(w(_t), { size: 16 }), j("span", null, i(w(n).social.addIcons), 1)]))]));
4115
4171
  }
4116
- }), Rl = { class: "tpl:w-full" }, zl = {
4172
+ }), Gl = { class: "tpl:w-full" }, Kl = {
4117
4173
  key: 0,
4118
4174
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4119
4175
  style: {
4120
4176
  "background-color": "var(--tpl-bg-hover)",
4121
4177
  color: "var(--tpl-text-dim)"
4122
4178
  }
4123
- }, Bl = /* @__PURE__ */ R({
4179
+ }, ql = /* @__PURE__ */ R({
4124
4180
  __name: "SpacerBlock",
4125
4181
  props: {
4126
4182
  block: {},
4127
4183
  viewport: {}
4128
4184
  },
4129
4185
  setup(e) {
4130
- let t = e, n = In(Wn, "SpacerBlock"), r = C(() => ({
4186
+ let t = e, n = Wn(qn, "SpacerBlock"), r = C(() => ({
4131
4187
  height: `${t.block.height}px`,
4132
4188
  minHeight: `${t.block.height}px`,
4133
4189
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4134
4190
  }));
4135
- return (t, a) => (s(), D("div", Rl, [j("div", {
4191
+ return (t, a) => (s(), D("div", Gl, [j("div", {
4136
4192
  style: f(r.value),
4137
4193
  class: c(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !w(n).state.previewMode }])
4138
- }, [w(n).state.previewMode ? T("", !0) : (s(), D("span", zl, i(e.block.height) + "px ", 1))], 6)]));
4194
+ }, [w(n).state.previewMode ? T("", !0) : (s(), D("span", Kl, i(e.block.height) + "px ", 1))], 6)]));
4139
4195
  }
4140
- }), Vl = { class: "tpl:w-full" }, Hl = { key: 0 }, Ul = [
4196
+ }), Jl = { class: "tpl:w-full" }, Yl = { key: 0 }, Xl = [
4141
4197
  "aria-label",
4142
4198
  "data-placeholder",
4143
4199
  "onBlur"
4144
- ], Wl = [
4200
+ ], Zl = [
4145
4201
  "aria-label",
4146
4202
  "data-placeholder",
4147
4203
  "onBlur"
4148
- ], Gl = {
4204
+ ], Ql = {
4149
4205
  key: 1,
4150
4206
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
4151
- }, Kl = /*#__PURE__*/ Lt(/* @__PURE__ */ R({
4207
+ }, $l = /*#__PURE__*/ zt(/* @__PURE__ */ R({
4152
4208
  __name: "TableBlock",
4153
4209
  props: {
4154
4210
  block: {},
@@ -4162,7 +4218,7 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4162
4218
  updated(e, t) {
4163
4219
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4164
4220
  }
4165
- }, n = e, { t: r } = Yn(), a = In(Wn, "TableBlock"), o = In(Cn, "TableBlock"), c = C(() => n.block.rows.length > 0), l = C(() => {
4221
+ }, n = e, { t: r } = Qn(), a = Wn(qn, "TableBlock"), o = Wn(Tn, "TableBlock"), c = C(() => n.block.rows.length > 0), l = C(() => {
4166
4222
  let e = {
4167
4223
  width: "100%",
4168
4224
  borderCollapse: "collapse",
@@ -4193,11 +4249,11 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4193
4249
  } : n);
4194
4250
  a.updateBlock(n.block.id, { rows: o });
4195
4251
  }
4196
- return (e, n) => (s(), D("div", Vl, [c.value ? (s(), D("table", {
4252
+ return (e, n) => (s(), D("div", Jl, [c.value ? (s(), D("table", {
4197
4253
  key: 0,
4198
4254
  style: f(l.value),
4199
4255
  class: "tpl-table-editable"
4200
- }, [m.value ? (s(), D("thead", Hl, [j("tr", null, [(s(!0), D(P, null, d(m.value.cells, (e) => g((s(), D("th", {
4256
+ }, [m.value ? (s(), D("thead", Yl, [j("tr", null, [(s(!0), D(P, null, d(m.value.cells, (e) => g((s(), D("th", {
4201
4257
  key: e.id,
4202
4258
  style: f(p.value),
4203
4259
  "aria-label": w(r).table.cellPlaceholder,
@@ -4206,7 +4262,7 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4206
4262
  onBlur: (t) => v(m.value.id, e.id, t),
4207
4263
  onKeydown: n[0] ||= re(z((e) => e.target.blur(), ["prevent"]), ["enter"]),
4208
4264
  onClick: z(_, ["stop"])
4209
- }, null, 44, Ul)), [[t, e.content]])), 128))])])) : T("", !0), j("tbody", null, [(s(!0), D(P, null, d(h.value, (e) => (s(), D("tr", { key: e.id }, [(s(!0), D(P, null, d(e.cells, (i) => g((s(), D("td", {
4265
+ }, null, 44, Xl)), [[t, e.content]])), 128))])])) : T("", !0), j("tbody", null, [(s(!0), D(P, null, d(h.value, (e) => (s(), D("tr", { key: e.id }, [(s(!0), D(P, null, d(e.cells, (i) => g((s(), D("td", {
4210
4266
  key: i.id,
4211
4267
  style: f(u.value),
4212
4268
  "aria-label": w(r).table.cellPlaceholder,
@@ -4215,9 +4271,9 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4215
4271
  onBlur: (t) => v(e.id, i.id, t),
4216
4272
  onKeydown: n[1] ||= re(z((e) => e.target.blur(), ["prevent"]), ["enter"]),
4217
4273
  onClick: z(_, ["stop"])
4218
- }, null, 44, Wl)), [[t, i.content]])), 128))]))), 128))])], 4)) : (s(), D("div", Gl, [y(w(gt), { size: 16 }), j("span", null, i(w(r).table.empty), 1)]))]));
4274
+ }, null, 44, Zl)), [[t, i.content]])), 128))]))), 128))])], 4)) : (s(), D("div", Ql, [y(w(vt), { size: 16 }), j("span", null, i(w(r).table.empty), 1)]))]));
4219
4275
  }
4220
- }), [["__scopeId", "data-v-6751d456"]]), ql = /* @__PURE__ */ R({
4276
+ }), [["__scopeId", "data-v-6751d456"]]), eu = /* @__PURE__ */ R({
4221
4277
  __name: "VideoPlayButton",
4222
4278
  props: { hoverEffect: {
4223
4279
  type: Boolean,
@@ -4234,7 +4290,7 @@ var El = { class: "tpl:relative tpl:w-full" }, Dl = {
4234
4290
  }
4235
4291
  });
4236
4292
  // src/utils/videoThumbnail.ts
4237
- function Jl(e) {
4293
+ function tu(e) {
4238
4294
  if (!e) return {
4239
4295
  platform: "unknown",
4240
4296
  videoId: null,
@@ -4266,24 +4322,24 @@ function Jl(e) {
4266
4322
  thumbnailUrl: null
4267
4323
  };
4268
4324
  }
4269
- function Yl(e, t) {
4270
- return t || Jl(e).thumbnailUrl;
4325
+ function nu(e, t) {
4326
+ return t || tu(e).thumbnailUrl;
4271
4327
  }
4272
4328
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4273
- var Xl = ["src", "alt"], Zl = {
4329
+ var ru = ["src", "alt"], iu = {
4274
4330
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4275
4331
  style: { opacity: "0.7" }
4276
- }, Ql = ["href"], $l = ["src", "alt"], eu = ["src", "alt"], tu = {
4332
+ }, au = ["href"], ou = ["src", "alt"], su = ["src", "alt"], cu = {
4277
4333
  key: 3,
4278
4334
  class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
4279
- }, nu = /* @__PURE__ */ R({
4335
+ }, lu = /* @__PURE__ */ R({
4280
4336
  __name: "VideoBlock",
4281
4337
  props: {
4282
4338
  block: {},
4283
4339
  viewport: {}
4284
4340
  },
4285
4341
  setup(e) {
4286
- let t = e, { t: n } = Yn(), { syntax: r } = dr(), a = C(() => xe(t.block.url, r) || xe(t.block.thumbnailUrl, r)), o = xt(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), c = xt(() => a.value ? t.block.placeholderUrl : void 0), l = C(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Yl(t.block.url)), u = C(() => ({ textAlign: t.block.align })), d = C(() => {
4342
+ let t = e, { t: n } = Qn(), { syntax: r } = mr(), a = C(() => Ke(t.block.url, r) || Ke(t.block.thumbnailUrl, r)), o = Ct(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), c = Ct(() => a.value ? t.block.placeholderUrl : void 0), l = C(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : nu(t.block.url)), u = C(() => ({ textAlign: t.block.align })), d = C(() => {
4287
4343
  let e = t.block.align;
4288
4344
  return {
4289
4345
  maxWidth: "100%",
@@ -4293,7 +4349,7 @@ var Xl = ["src", "alt"], Zl = {
4293
4349
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4294
4350
  marginRight: e === "center" ? "auto" : void 0
4295
4351
  };
4296
- }), p = C(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), m = C(() => xe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4352
+ }), p = C(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), m = C(() => Ke(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4297
4353
  return (t, r) => (s(), D("div", {
4298
4354
  class: "tpl:w-full",
4299
4355
  style: f(u.value)
@@ -4306,16 +4362,16 @@ var Xl = ["src", "alt"], Zl = {
4306
4362
  src: w(c),
4307
4363
  alt: e.block.alt,
4308
4364
  style: f(p.value)
4309
- }, null, 12, Xl), y(ql)], 4)) : a.value ? (s(), D("div", {
4365
+ }, null, 12, ru), y(eu)], 4)) : a.value ? (s(), D("div", {
4310
4366
  key: 1,
4311
4367
  class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
4312
4368
  style: f([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
4313
- }, [y(w(Ar), {
4369
+ }, [y(w(Nr), {
4314
4370
  size: 36,
4315
4371
  "stroke-width": 1.5,
4316
4372
  class: "tpl:text-[var(--tpl-primary)]",
4317
4373
  style: { opacity: "0.5" }
4318
- }), j("span", Zl, [y(ta, { text: m.value }, null, 8, ["text"])])], 4)) : l.value ? (s(), D(P, { key: 2 }, [e.block.url ? (s(), D("a", {
4374
+ }), j("span", iu, [y(ca, { text: m.value }, null, 8, ["text"])])], 4)) : l.value ? (s(), D(P, { key: 2 }, [e.block.url ? (s(), D("a", {
4319
4375
  key: 0,
4320
4376
  href: e.block.url,
4321
4377
  target: "_blank",
@@ -4328,7 +4384,7 @@ var Xl = ["src", "alt"], Zl = {
4328
4384
  src: l.value,
4329
4385
  alt: e.block.alt,
4330
4386
  style: f(p.value)
4331
- }, null, 12, $l), y(ql, { "hover-effect": "" })], 12, Ql)) : (s(), D("div", {
4387
+ }, null, 12, ou), y(eu, { "hover-effect": "" })], 12, au)) : (s(), D("div", {
4332
4388
  key: 1,
4333
4389
  class: "tpl:relative tpl:inline-block",
4334
4390
  style: f(d.value)
@@ -4337,53 +4393,53 @@ var Xl = ["src", "alt"], Zl = {
4337
4393
  src: l.value,
4338
4394
  alt: e.block.alt,
4339
4395
  style: f(p.value)
4340
- }, null, 12, eu), y(ql)], 4))], 64)) : (s(), D("div", tu, [y(w(Ar), {
4396
+ }, null, 12, su), y(eu)], 4))], 64)) : (s(), D("div", cu, [y(w(Nr), {
4341
4397
  size: 40,
4342
4398
  "stroke-width": 1.5,
4343
4399
  class: "tpl:text-[var(--tpl-border-light)]"
4344
4400
  }), j("span", null, i(w(n).video.addVideo), 1)]))], 4));
4345
4401
  }
4346
- }), ru = {
4347
- section: kl,
4348
- title: Eo,
4349
- paragraph: Ha,
4350
- image: Fa,
4351
- button: ra,
4352
- divider: _a,
4353
- video: nu,
4354
- social: Ll,
4355
- menu: za,
4356
- table: Kl,
4357
- spacer: Bl,
4358
- html: Ca,
4359
- countdown: I(() => import("./CountdownBlock-BMezkFbJ.js"))
4402
+ }), uu = {
4403
+ section: Il,
4404
+ title: No,
4405
+ paragraph: Ya,
4406
+ image: Ha,
4407
+ button: ua,
4408
+ divider: wa,
4409
+ video: lu,
4410
+ social: Wl,
4411
+ menu: Ka,
4412
+ table: $l,
4413
+ spacer: ql,
4414
+ html: Aa,
4415
+ countdown: I(() => import("./CountdownBlock-BTXcCvjZ.js"))
4360
4416
  };
4361
- function iu(e) {
4362
- let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: o, format: s } = Yn(i), c = C(() => Ce(Ce(Ce(gi(i), Ii(n.content.value.settings?.locale)), ft(n.content.value.settings) === "rtl" ? {
4417
+ function du(e) {
4418
+ let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: o, format: s } = Qn(i), c = C(() => ie(ie(ie(yi(i), zi(n.content.value.settings?.locale)), se(n.content.value.settings) === "rtl" ? {
4363
4419
  title: { textAlign: "right" },
4364
4420
  table: { textAlign: "right" }
4365
4421
  } : {}), r.blockDefaults ?? {}));
4366
4422
  n.setUiTheme(r.uiTheme ?? "auto");
4367
- let { resolvedTheme: u } = si(C(() => n.state.uiTheme)), d = E(r.theme ?? {}), { themeStyles: f } = Br({
4423
+ let { resolvedTheme: u } = ui(C(() => n.state.uiTheme)), d = E(r.theme ?? {}), { themeStyles: f } = Ur({
4368
4424
  themeOverrides: d,
4369
4425
  resolvedTheme: u,
4370
4426
  extraStyles: () => ({
4371
4427
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
4372
4428
  ...e.themeExtraStyles?.()
4373
4429
  })
4374
- }), p = e.history ?? vt({
4430
+ }), p = e.history ?? bt({
4375
4431
  content: n.content,
4376
4432
  setContent: (e, t) => n.setContent(e, t)
4377
4433
  });
4378
- e.history || St(n, p);
4379
- let m = _t({
4434
+ e.history || wt(n, p);
4435
+ let m = yt({
4380
4436
  addBlock: n.addBlock,
4381
4437
  removeBlock: n.removeBlock,
4382
4438
  updateBlock: n.updateBlock,
4383
4439
  selectBlock: n.selectBlock,
4384
4440
  findBlockLocation: n.findBlockLocation,
4385
4441
  blockDefaults: () => c.value
4386
- }), h = It(n), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? bt({
4442
+ }), h = Rt(n), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? St({
4387
4443
  content: n.content,
4388
4444
  isDirty: () => n.state.isDirty,
4389
4445
  ...e.autoSaveOptions
@@ -4391,30 +4447,30 @@ function iu(e) {
4391
4447
  g && (_ = t(p.isNavigating, (e) => {
4392
4448
  e ? g.pause() : g.resume();
4393
4449
  }));
4394
- let y = oi(n, {
4450
+ let y = li(n, {
4395
4451
  t: o,
4396
4452
  format: s
4397
- }, r.customBlocks ?? []), b = hr(r.colors);
4398
- if (b.allowCustomIgnored && fr.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && fr.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4399
- let e = hi(b.presets, r.blockDefaults, r.templateDefaults);
4400
- e.length > 0 && fr.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
4401
- }
4402
- let x = br(r.templateSettings);
4403
- for (let e of x.unknown) fr.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${xr.join(", ")}) — skipping it.`);
4404
- let S = Pr();
4405
- fi(S, ru);
4453
+ }, r.customBlocks ?? []), b = vr(r.colors);
4454
+ if (b.allowCustomIgnored && hr.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && hr.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4455
+ let e = vi(b.presets, r.blockDefaults, r.templateDefaults);
4456
+ e.length > 0 && hr.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
4457
+ }
4458
+ let x = Cr(r.templateSettings);
4459
+ for (let e of x.unknown) hr.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${wr.join(", ")}) — skipping it.`);
4460
+ let S = Lr();
4461
+ hi(S, uu);
4406
4462
  let w = /* @__PURE__ */ new Set();
4407
4463
  function T(e) {
4408
4464
  for (let t of e) {
4409
- S.registerCustom(t, ha);
4410
- for (let e of Li(t, b)) w.has(e.id) || (w.add(e.id), fr.warn(e.message));
4465
+ S.registerCustom(t, Sa);
4466
+ for (let e of Bi(t, b)) w.has(e.id) || (w.add(e.id), hr.warn(e.message));
4411
4467
  }
4412
4468
  }
4413
4469
  r.customBlocks?.length && T(r.customBlocks);
4414
- let D = Zr();
4470
+ let D = ei();
4415
4471
  if (ee() && v(D.dispose), e.containerEl) {
4416
4472
  let t = e.containerEl;
4417
- or(document, "pointerdown", (e) => {
4473
+ lr(document, "pointerdown", (e) => {
4418
4474
  let n = t.value;
4419
4475
  n && (e.composedPath?.() ?? []).includes(n) && D.claim();
4420
4476
  }, { capture: !0 });
@@ -4424,7 +4480,7 @@ function iu(e) {
4424
4480
  t ? t.save() : g?.flush();
4425
4481
  }
4426
4482
  function k(t) {
4427
- D.isActive() && zi(t, {
4483
+ D.isActive() && Hi(t, {
4428
4484
  history: p,
4429
4485
  selectBlock: (e) => n.selectBlock(e),
4430
4486
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -4435,42 +4491,42 @@ function iu(e) {
4435
4491
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
4436
4492
  });
4437
4493
  }
4438
- or(document, "keydown", k);
4494
+ lr(document, "keydown", k);
4439
4495
  let A = E(null), j = e.editorRoot ?? document;
4440
- l(qn, j), l(on, A), l($t, /* @__PURE__ */ new Map()), l(Hn, i), l(Wn, n), l(Kn, p), l(Vn, m), l(Pn, h), l(Cn, a), l(En, f), l(An, u), l(wn, c), l(Bn, r.locale), l(Nn, S), l(On, r.customBlocks ?? []), l(tn, r.paletteBlocks), l(mn, pi(r.htmlBlockPreview)), l(hn, r.layout), l(yn, r.sectionWrapper), l(Ln, b), l(Yt, x.fields), l(Dn, ci(n.content, S));
4441
- let N = le(r.mergeTags?.syntax);
4496
+ l(Xn, j), l(Bn, A), l(tn, /* @__PURE__ */ new Map()), l(Ln, i), l(qn, n), l(Yn, p), l(Un, m), l(In, h), l(Tn, a), l(Gn, f), l(wn, u), l(En, c), l(Mn, r.locale), l(Fn, S), l(An, r.customBlocks ?? []), l(cn, r.paletteBlocks), l(hn, gi(r.htmlBlockPreview)), l(gn, r.layout), l(xn, r.sectionWrapper), l(zn, b), l(On, x.fields), l(kn, di(n.content, S));
4497
+ let N = he(r.mergeTags?.syntax);
4442
4498
  for (let e of ["opener", "closer"]) {
4443
4499
  let t = N[e];
4444
- typeof t == "string" && t.trim() === "" && fr.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
4500
+ typeof t == "string" && t.trim() === "" && hr.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
4445
4501
  }
4446
- typeof N.opener != "string" && typeof N.closer == "string" && N.closer.trim() !== "" && Be(N) === null && fr.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
4502
+ typeof N.opener != "string" && typeof N.closer == "string" && N.closer.trim() !== "" && $e(N) === null && hr.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
4447
4503
  let P = M(r.mergeTags?.tags ?? []);
4448
4504
  function te(e) {
4449
- Array.isArray(e) ? P.value = e : fr.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4505
+ Array.isArray(e) ? P.value = e : hr.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4450
4506
  }
4451
- l(dn, P), l(Zt, N), l(vn, r.mergeTags?.onRequest ?? null), l(en, r.mergeTags?.autocomplete !== !1), l(Jn, r.mergeTags?.showRawValue !== !1);
4452
- let F = E(Qe(r.mergeTags?.tags ?? []));
4453
- l(pn, F);
4454
- let I = ei({
4507
+ l(pn, P), l($t, N), l(rn, r.mergeTags?.onRequest ?? null), l(nn, r.mergeTags?.autocomplete !== !1), l(Zn, r.mergeTags?.showRawValue !== !1);
4508
+ let F = E(Je(r.mergeTags?.tags ?? []));
4509
+ l(mn, F);
4510
+ let I = ri({
4455
4511
  resolvePreview: r.resolvePreview,
4456
4512
  getContent: () => {
4457
4513
  let e = n.content.value;
4458
4514
  if (!n.state.previewMode) return e;
4459
- let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = je(e, t);
4460
- return r.layout ? ct(je(r.layout, t, { missing: "default" }), i) : i;
4515
+ let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = le(e, t);
4516
+ return r.layout ? lt(le(r.layout, t, { missing: "default" }), i) : i;
4461
4517
  },
4462
4518
  isActive: () => n.state.previewMode,
4463
4519
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
4464
4520
  });
4465
- l(Rn, I), l(an, r.resolvePreview);
4521
+ l(sn, I), l(bn, r.resolvePreview);
4466
4522
  let L = C(() => !(n.state.previewMode && I.isConfigured));
4467
- l(xn, L);
4468
- let R = ti();
4469
- l(rn, R), l(sn, E(!1)), l(ln, E(!1)), l(jn, r.logicTags?.tags ?? []), l(Xt, r.logicTags?.pairs ?? []), l(nn, r.logicTags?.onRequest ?? null), l(cn, ni()), l(gn, r.onRequestMedia ?? null), l(Un, r.canDropMedia ?? null), l(Qt, r.resolveImageUrl ? Pt(r.resolveImageUrl) : null), l(bn, r.displayConditions?.conditions ?? []), l(zn, r.displayConditions?.allowCustom ?? !1), l(Tn, e.capabilities ?? {}), l(Gn, y);
4470
- let z = ri(r.lint) ? null : ai({
4523
+ l(Cn, L);
4524
+ let R = ii();
4525
+ l(on, R), l(ln, E(!1)), l(dn, E(!1)), l(Nn, r.logicTags?.tags ?? []), l(Qt, r.logicTags?.pairs ?? []), l(_n, r.logicTags?.onRequest ?? null), l(un, ai()), l(yn, r.onRequestMedia ?? null), l(Kn, r.canDropMedia ?? null), l(en, r.resolveImageUrl ? It(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && hr.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), l(Sn, r.displayConditions?.conditions ?? []), l(Vn, r.displayConditions?.allowCustom ?? !1), l(an, r.displayConditions?.onRequest ?? null), l(Dn, e.capabilities ?? {}), l(Jn, y);
4526
+ let z = oi(r.lint) ? null : ci({
4471
4527
  content: n.content,
4472
4528
  get options() {
4473
- return Qr({
4529
+ return ti({
4474
4530
  ...r,
4475
4531
  content: n.content.value,
4476
4532
  contentLocale: n.activeLocale?.value ?? void 0
@@ -4482,7 +4538,7 @@ function iu(e) {
4482
4538
  updateSettings: n.updateSettings,
4483
4539
  removeBlock: n.removeBlock
4484
4540
  });
4485
- l(fn, z);
4541
+ l(Zt, z);
4486
4542
  function ne() {
4487
4543
  _?.(), z?.destroy(), g?.destroy(), p.destroy();
4488
4544
  }
@@ -4512,12 +4568,12 @@ function iu(e) {
4512
4568
  };
4513
4569
  }
4514
4570
  // src/composables/useSmallScreenNotice.ts
4515
- var au = "(max-width: 767px)";
4516
- function ou(e) {
4517
- let t = sr(au);
4571
+ var fu = "(max-width: 767px)";
4572
+ function pu(e) {
4573
+ let t = ur(fu);
4518
4574
  return {
4519
4575
  isSmallScreen: t,
4520
4576
  showNotice: C(() => (N(e) ?? !0) && t.value)
4521
4577
  };
4522
4578
  }
4523
- export { ji as A, Nr as B, Yi as C, Vi as D, $i as E, ei as F, Or as H, Qr as I, qr as L, ki as M, Oi as N, wi as O, Di as P, Gr as R, Gi as S, Bi as T, Er as U, Mr as V, wr as W, Ca as _, Bl as a, oa as b, wl as c, Eo as d, wo as f, Fa as g, za as h, Kl as i, Ai as j, Mi as k, Do as l, Ha as m, iu as n, Ll as o, Ua as p, nu as r, kl as s, ou as t, Ao as u, _a as v, Xi as w, ra as x, ha as y, Rr as z };
4579
+ export { Di as A, Jr as B, Yi as C, Ui as D, ea as E, ji as F, kr as G, Ir as H, Ai as I, Dr as K, ri as L, Pi as M, Ni as N, oa as O, Mi as P, ti as R, Ki as S, $i as T, Fr as U, Vr as V, jr as W, Aa as _, ql as a, pa as b, jl as c, No as d, jo as f, Ha as g, Ka as h, $l as i, Fi as j, Wi as k, Po as l, Ya as m, du as n, Wl as o, Xa as p, lu as r, Il as s, pu as t, Lo as u, wa as v, ia as w, ua as x, Sa as y, Xr as z };