@templatical/editor 0.55.0 → 0.56.1

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 (299) hide show
  1. package/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-CpZ7UeAZ.js} +4 -4
  2. package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
  3. package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-Cy05P-iO.js} +56 -56
  4. package/dist/{AiPanels-CR6zphjP.js → AiPanels-CwKmXzyr.js} +1 -1
  5. package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DgqJHnza.js} +13 -13
  6. package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-CxHJmuOh.js} +5 -5
  7. package/dist/BlockPreviewCanvas-DEmNZkEG.js +154 -0
  8. package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
  9. package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-Bmlf05Il.js} +12 -12
  10. package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-C27GCMvK.js} +8 -8
  11. package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
  12. package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-B5NqPMmY.js} +1 -1
  13. package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-BDrcrDxS.js} +42 -42
  14. package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-D8dqjm3F.js} +6 -6
  15. package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
  16. package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-uwuzeMSW.js} +89 -89
  17. package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CDK_9D7P.js} +10 -10
  19. package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-BSolF7Fd.js} +24 -24
  20. package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-C8yc9dxt.js} +7 -7
  21. package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-FI4I8asn.js} +1 -1
  22. package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-B1nl2ZMT.js} +12 -12
  23. package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-DJlf3VbS.js} +5 -5
  25. package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-Dqco128s.js} +173 -173
  26. package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
  27. package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xIEF0Y3Z.js} +8 -8
  28. package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-CQlCP_XC.js} +47 -47
  29. package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-BXA32Fx6.js} +24 -24
  30. package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
  32. package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-CYFtR8zv.js} +41 -41
  33. package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-BbaL17HO.js} +20 -20
  34. package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-DhB1CSpg.js} +1 -1
  35. package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-3BRl8u5l.js} +22 -22
  36. package/dist/{Toolbar-D904Yw_R.js → Toolbar-pzNIakGM.js} +1090 -856
  37. package/dist/{TplModal-BBdotDf1.js → TplModal-WNuWhHZm.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu--T-Qp_mH.js} +17 -17
  39. package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
  40. package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
  41. package/dist/WrapperBlock-CjfCPceb.js +56 -0
  42. package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-12OMwVyN.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
  45. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-PFjTrl0y.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-BMjzvApH.js} +5 -5
  48. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-C2gpq4kP.js} +107 -107
  50. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-Cx3PE2mE.js} +2 -2
  52. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-CnkyjPEu.js} +13 -13
  54. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-DncZ-HDf.js} +5 -5
  56. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
  57. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
  58. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.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-CQ0vNgsH.js → CloudPanels-CRztnw4M.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-IuLYT2x7.js} +9 -9
  64. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-IuLYT2x7.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-lgjJNrrY.js} +2 -2
  68. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
  69. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-DTold7iy.js} +214 -214
  70. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-8aPSExrv.js} +7 -7
  72. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
  73. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-CnWQEW5g.js} +50 -50
  74. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-CrplCzo8.js} +13 -13
  76. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-B6MNInCL.js} +57 -57
  78. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
  79. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-TxeAl8Iq.js} +10 -10
  80. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
  81. package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-DvSVx2DB.js} +30 -30
  82. package/dist/cdn/chunks/LogicTagInsertButton-DvSVx2DB.js.map +1 -0
  83. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-tGK6htBl.js} +8 -8
  84. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
  85. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-BVrQYz2C.js} +2 -2
  86. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
  87. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-DeuNH3re.js} +13 -13
  88. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-B2xxIU3e.js} +6 -6
  92. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
  94. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
  96. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-Dze4C9VI.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
  100. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-YwwRbxPc.js} +102 -102
  108. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-BiFP2Cbx.js} +20 -20
  110. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-BrivPMk2.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-CzPkkL2s.js} +19 -19
  114. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-VH07SzX7.js} +1153 -919
  116. package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-DMe6J811.js} +6 -6
  118. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-DMe6J811.js.map} +1 -1
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-DkwbKhBl.js} +16 -16
  120. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
  121. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
  123. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
  124. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
  125. package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js +58 -0
  126. package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.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-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/composables-D3lsO7Io.js +3101 -0
  132. package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-CE79GB1H.js} +16 -16
  134. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
  135. package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
  136. package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
  137. package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
  138. package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
  139. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-CN69NlOK.js} +187 -187
  140. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-CN69NlOK.js.map} +1 -1
  141. package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
  142. package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
  143. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  144. package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
  145. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  146. package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-8dlM-fU4.js} +112 -112
  147. package/dist/cdn/chunks/extensions-8dlM-fU4.js.map +1 -0
  148. package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
  149. package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
  150. package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
  151. package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
  152. package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
  153. package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
  154. package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
  155. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
  156. package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
  157. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  158. package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
  159. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  160. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  162. package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
  163. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  164. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-B3njfkSy.js} +11 -11
  165. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
  166. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-BFgc3qqJ.js} +354 -341
  167. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
  168. package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/src-GgKlXNxy.js +710 -0
  171. package/dist/cdn/chunks/src-GgKlXNxy.js.map +1 -0
  172. package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
  173. package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
  174. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
  175. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
  176. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
  177. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
  178. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
  179. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
  180. package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
  181. package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
  182. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
  183. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  184. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-B0PDeDxl.js} +5 -5
  185. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
  186. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-BSU75bKk.js} +8 -8
  187. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
  188. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
  189. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
  190. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
  191. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
  192. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
  193. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  194. package/dist/cdn/editor.css +1 -1
  195. package/dist/cdn/editor.js +814 -817
  196. package/dist/cdn/editor.js.map +1 -1
  197. package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
  198. package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
  199. package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
  200. package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
  201. package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
  202. package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
  203. package/dist/{composables-DPgNn9GZ.js → composables-DreAt_0A.js} +1660 -1620
  204. package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-CL4tUlDC.js} +15 -15
  205. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  206. package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
  207. package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
  208. package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
  209. package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
  210. package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
  211. package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
  212. package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
  213. package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
  214. package/dist/dist-CiYotUR8.js +406 -0
  215. package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
  216. package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
  217. package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
  218. package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
  219. package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
  220. package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
  221. package/dist/{editor-modal-BeX6otLk.js → editor-modal-BD32TXws.js} +107 -107
  222. package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
  223. package/dist/en-Dgs_-NBw.js +1 -0
  224. package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
  225. package/dist/{extensions-QFAARrjF.js → extensions-DKxHlSd7.js} +385 -385
  226. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  227. package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
  228. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  229. package/dist/index.d.ts +60 -12
  230. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  231. package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
  232. package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
  233. package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
  234. package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
  235. package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
  236. package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
  237. package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
  238. package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
  239. package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
  240. package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
  241. package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
  242. package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  243. package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
  244. package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
  245. package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
  246. package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
  247. package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
  248. package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
  249. package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
  250. package/dist/{socialIcons-NvIg5ahU.js → socialIcons-oo4uL16Y.js} +427 -414
  251. package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
  252. package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
  253. package/dist/style.css +1 -1
  254. package/dist/templatical-editor.js +922 -925
  255. package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
  256. package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
  257. package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
  258. package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
  259. package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
  260. package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
  261. package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
  262. package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
  263. package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-B4Zpk3eo.js} +4 -4
  264. package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-B5qlq8px.js} +8 -8
  265. package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
  266. package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
  267. package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
  268. package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
  269. package/package.json +10 -10
  270. package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
  271. package/dist/LanguageMenu-DcABUYop.js +0 -403
  272. package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
  273. package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js +0 -142
  274. package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
  275. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
  276. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
  277. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
  278. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
  279. package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
  280. package/dist/cdn/chunks/composables-nyxwrM27.js +0 -3061
  281. package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
  282. package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
  283. package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
  284. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  285. package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
  286. package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
  287. package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
  288. package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
  289. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  290. package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
  291. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
  292. package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
  293. package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
  294. package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
  295. package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
  296. package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
  297. package/dist/dist-0alKVRc_.js +0 -406
  298. package/dist/en-Do0SU6tR.js +0 -1
  299. package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
@@ -0,0 +1,403 @@
1
+ import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, U as ee, _ as o, c as s, ct as c, d as l, et as u, f as d, g as f, l as p, r as m, u as h, w as g, y as _ } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
+ import { t as te } from "./dist-CiYotUR8.js";
3
+ import { t as v } from "./triangle-alert-CKcpwtUj.js";
4
+ import { t as y } from "./createLucideIcon-CfBdtoUw.js";
5
+ import { t as ne } from "./check-CcuCoJDh.js";
6
+ import { t as re } from "./chevron-down-BfYIbFbC.js";
7
+ import { t as ie } from "./chevron-right-DyjFqY35.js";
8
+ import { t as ae } from "./plus-DxZiv9YC.js";
9
+ import { t as oe } from "./trash-Cr7rD5Hh.js";
10
+ import { At as se, et as ce, jt as b, st as le, tt as ue } from "./dist-BMUUt3zJ.js";
11
+ import { t as de } from "./useI18n-zeWYtWSv.js";
12
+ import { t as fe } from "./useLocalizedDisplay-Cbhx208c.js";
13
+ import { E as pe, h as me, it as he, t as ge } from "./keys-w_VRjoMu.js";
14
+ import { t as x } from "./plural-CyxrJXL1.js";
15
+ import { t as S } from "./languageName-DEEOhDWI.js";
16
+ import { C as _e, b as ve, f as ye, u as be, w as xe } from "./styleConstants-CgiNKdnc.js";
17
+ import { t as Se } from "./TplModal-WNuWhHZm.js";
18
+ import { t as C } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
19
+ var Ce = y({
20
+ name: "arrow-up-to-line",
21
+ size: 24,
22
+ node: [
23
+ ["path", {
24
+ d: "M5 3h14",
25
+ key: "7usisc"
26
+ }],
27
+ ["path", {
28
+ d: "m18 13-6-6-6 6",
29
+ key: "1kf1n9"
30
+ }],
31
+ ["path", {
32
+ d: "M12 7v14",
33
+ key: "1akyts"
34
+ }]
35
+ ]
36
+ }), we = y({
37
+ name: "ellipsis",
38
+ size: 24,
39
+ node: [
40
+ ["circle", {
41
+ cx: "12",
42
+ cy: "12",
43
+ r: "1",
44
+ key: "41hilf"
45
+ }],
46
+ ["circle", {
47
+ cx: "19",
48
+ cy: "12",
49
+ r: "1",
50
+ key: "1wjl8i"
51
+ }],
52
+ ["circle", {
53
+ cx: "5",
54
+ cy: "12",
55
+ r: "1",
56
+ key: "1pcz8c"
57
+ }]
58
+ ],
59
+ aliases: ["more-horizontal"]
60
+ }), Te = [
61
+ "aria-expanded",
62
+ "title",
63
+ "aria-label"
64
+ ], Ee = { class: "tpl-language-name" }, De = {
65
+ class: "tpl-language-tag tpl:truncate",
66
+ "aria-hidden": "true"
67
+ }, Oe = { class: "tpl-language-count tpl:shrink-0 tpl:tabular-nums" }, ke = ["aria-label"], Ae = { class: "tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, je = { class: "tpl:max-h-64 tpl:overflow-y-auto" }, Me = ["data-active"], Ne = [
68
+ "aria-checked",
69
+ "data-testid",
70
+ "onClick"
71
+ ], Pe = { class: "tpl:flex tpl:w-3 tpl:shrink-0" }, Fe = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, Ie = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Le = ["data-testid"], Re = [
72
+ "data-testid",
73
+ "aria-expanded",
74
+ "aria-label",
75
+ "onClick"
76
+ ], ze = ["aria-label"], Be = [
77
+ "data-testid",
78
+ "aria-disabled",
79
+ "aria-label",
80
+ "aria-describedby",
81
+ "onClick"
82
+ ], Ve = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-1" }, He = ["data-testid", "onClick"], Ue = {
83
+ key: 0,
84
+ class: "tpl:relative tpl:border-t tpl:border-[var(--tpl-border)]"
85
+ }, We = ["aria-expanded"], Ge = ["aria-label"], Ke = ["data-testid", "onClick"], qe = ["aria-label"], Je = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ye = {
86
+ key: 0,
87
+ class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
88
+ }, Xe = {
89
+ key: 1,
90
+ class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
91
+ }, Ze = {
92
+ key: 2,
93
+ role: "alert",
94
+ "data-testid": "language-default-error",
95
+ class: "tpl:mb-4 tpl:flex tpl:items-start tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-danger)]"
96
+ }, Qe = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, $e = ["data-testid"], et = ["data-testid", "disabled"], w = "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:border-0 tpl:bg-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:text-xs tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", T = "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:shadow-[var(--tpl-shadow-md)]", E = /*#__PURE__*/ C(/* @__PURE__ */ _({
97
+ __name: "LanguageMenu",
98
+ props: {
99
+ editor: {},
100
+ locales: {}
101
+ },
102
+ setup(_) {
103
+ let y = _, { t: C, format: E } = de(), D = g(he, void 0) ?? "en", tt = g(pe, null), O = g(me, []), k = u(null), A = u(null), j = `tpl-language-reason-${le()}`, M = u(!1), N = u(null), P = u(null), F = u(null), I = u(null), L = u(null), R = s(() => ue(y.editor.content.value)), z = s(() => y.editor.activeLocale?.value ?? R.value), B = s(() => y.editor.content.value.settings.locales ?? []), V = s(() => y.locales.filter((e) => e !== R.value && !B.value.includes(e))), H = s(() => z.value === R.value || y.locales.includes(z.value)), U = g(ge, null) ?? fe(y.editor, O), W = s(() => M.value ? [R.value, ...B.value].map((e) => ({
104
+ locale: e,
105
+ coverage: e === R.value ? null : e === z.value ? U.value : se(y.editor.content.value, e, O)
106
+ })) : []), nt = s(() => N.value && B.value.includes(N.value) && H.value && y.locales.includes(N.value) ? b(y.editor.content.value, N.value) : []), G = s(() => y.locales.includes(R.value)), K = s(() => nt.value.length > 0 || !G.value), q = s(() => (U.value?.missing.length ?? 0) + (U.value?.stale.length ?? 0)), J = s(() => q.value ? E(C.localization.gapTooltip, {
107
+ missing: U.value.missing.length,
108
+ stale: U.value.stale.length
109
+ }) : S(z.value)), rt = s(() => q.value ? `${S(z.value)} ${q.value} (${z.value}), ${J.value}` : `${S(z.value)} (${z.value})`);
110
+ function it(e) {
111
+ let t = [];
112
+ return e.missing.length && t.push(x(C.localization.missingCount, e.missing.length, D)), e.stale.length && t.push(x(C.localization.staleCount, e.stale.length, D)), t.join(" · ") || C.localization.complete;
113
+ }
114
+ function Y() {
115
+ M.value = !1, N.value = null, i(() => A.value?.focus());
116
+ }
117
+ async function at() {
118
+ M.value ? Y() : (M.value = !0, await i(), k.value?.querySelector("[role=\"menuitemradio\"]")?.focus());
119
+ }
120
+ async function X(e) {
121
+ N.value = N.value === e ? null : e, await i(), k.value?.querySelector("[data-language-submenu] [role=\"menuitem\"]:not(:disabled)")?.focus();
122
+ }
123
+ function ot() {
124
+ let e = N.value;
125
+ N.value = null, k.value?.querySelector(`[data-testid="${e === "add" ? "language-add" : `language-actions-${e}`}"]`)?.focus();
126
+ }
127
+ function st(e) {
128
+ let t = e.target;
129
+ if (t.closest("[role=\"dialog\"]")) return;
130
+ if (e.key === "Escape" || e.key === "ArrowLeft" && N.value) {
131
+ e.preventDefault(), e.stopPropagation(), N.value ? ot() : Y();
132
+ return;
133
+ }
134
+ if (t === A.value && ["ArrowDown", "ArrowUp"].includes(e.key)) {
135
+ e.preventDefault(), M.value || at();
136
+ return;
137
+ }
138
+ if (e.key === "ArrowRight" && !t.closest("[data-language-submenu]")) {
139
+ let n = t.dataset.testid ?? "", r = n.replace(/^language-(option|actions)-/, "");
140
+ (n === "language-add" || r !== R.value && H.value && y.locales.includes(r)) && (e.preventDefault(), X(n === "language-add" ? "add" : r));
141
+ return;
142
+ }
143
+ if (![
144
+ "ArrowDown",
145
+ "ArrowUp",
146
+ "Home",
147
+ "End"
148
+ ].includes(e.key)) return;
149
+ e.preventDefault();
150
+ let n = t.closest("[role=\"menu\"]"), r = Array.from(n?.querySelectorAll("[role^=\"menuitem\"]:not(:disabled)") ?? []).filter((e) => e.closest("[role=\"menu\"]") === n), i = r.indexOf(t);
151
+ r[e.key === "Home" ? 0 : e.key === "End" ? r.length - 1 : (i + (e.key === "ArrowDown" ? 1 : -1) + r.length) % r.length]?.focus();
152
+ }
153
+ function ct(e) {
154
+ y.editor.setActiveLocale?.(e === R.value ? null : e), Y();
155
+ }
156
+ function lt(e) {
157
+ H.value && V.value.includes(e) && (y.editor.addLocale?.(e), Y());
158
+ }
159
+ function ut() {
160
+ I.value = null, L.value = {
161
+ templateId: y.editor.state.template?.id ?? null,
162
+ loadVersion: y.editor.loadVersion?.value
163
+ };
164
+ }
165
+ function dt() {
166
+ return L.value !== null && L.value.templateId === (y.editor.state.template?.id ?? null) && L.value.loadVersion === y.editor.loadVersion?.value;
167
+ }
168
+ function ft(e) {
169
+ ut(), P.value = e, N.value = null;
170
+ }
171
+ function Z(e) {
172
+ return H.value && B.value.includes(e) && y.locales.includes(e) && G.value && b(y.editor.content.value, e).length === 0;
173
+ }
174
+ function pt(e) {
175
+ Z(e) && (ut(), F.value = { locale: e }, N.value = null);
176
+ }
177
+ let mt = s(() => F.value ? ce(y.editor.content.value, F.value.locale, O).length : 0), Q = s(() => F.value ? E(C.localization.makeDefaultConfirmation, { language: S(F.value.locale) }) : E(C.localization.removeConfirmation, { language: S(P.value ?? R.value) }));
178
+ function $() {
179
+ let e = F.value?.locale ?? P.value;
180
+ L.value = null, I.value = null, F.value = null, P.value = null, i(() => {
181
+ if (!M.value) {
182
+ A.value?.focus();
183
+ return;
184
+ }
185
+ let t = `language-actions-${e}`;
186
+ k.value?.querySelector(`[data-testid="${t}"]`)?.focus();
187
+ });
188
+ }
189
+ function ht() {
190
+ if (!dt()) $(), Y();
191
+ else if (H.value) {
192
+ if (F.value) {
193
+ let e = F.value.locale;
194
+ if (!Z(e)) return;
195
+ let t = tt?.setDefaultLocale(e);
196
+ if (!t) return;
197
+ if (!t.applied) {
198
+ I.value = E(C.localization.defaultRefused, {
199
+ language: S(e),
200
+ reason: t.error.code === "locked_by_others" || t.error.code === "lock_held" ? C.localization.defaultLockedReason : t.error.message
201
+ });
202
+ return;
203
+ }
204
+ } else P.value && y.locales.includes(P.value) && y.editor.removeLocale?.(P.value);
205
+ $(), Y();
206
+ }
207
+ }
208
+ return e([() => y.editor.state.template?.id ?? null, () => y.editor.loadVersion?.value], () => {
209
+ (M.value || L.value !== null) && ($(), Y());
210
+ }, { flush: "sync" }), e(() => F.value !== null && !Z(F.value.locale), (e) => {
211
+ e && ($(), Y());
212
+ }), te(k, () => {
213
+ M.value = !1, N.value = null;
214
+ }), (e, i) => (n(), d("div", {
215
+ ref_key: "root",
216
+ ref: k,
217
+ class: "tpl-language-control tpl:relative tpl:min-w-0 tpl:shrink-0",
218
+ onKeydown: st
219
+ }, [
220
+ p("button", {
221
+ ref_key: "trigger",
222
+ ref: A,
223
+ type: "button",
224
+ "data-testid": "language-menu",
225
+ "aria-haspopup": "menu",
226
+ "aria-expanded": M.value,
227
+ title: J.value,
228
+ "aria-label": rt.value,
229
+ class: r([c(xe), "tpl-language-trigger"]),
230
+ onClick: at
231
+ }, [
232
+ p("span", Ee, t(c(S)(z.value)), 1),
233
+ p("span", De, t(z.value), 1),
234
+ q.value ? (n(), d(m, { key: 0 }, [o(c(v), {
235
+ size: 12,
236
+ "aria-hidden": "true",
237
+ class: "tpl:shrink-0 tpl:text-[var(--tpl-warning)]"
238
+ }), p("span", Oe, t(q.value), 1)], 64)) : l("", !0),
239
+ o(c(re), {
240
+ size: 12,
241
+ "aria-hidden": "true",
242
+ class: "tpl-language-chevron tpl:shrink-0"
243
+ })
244
+ ], 10, Te),
245
+ M.value ? (n(), d("div", {
246
+ key: 0,
247
+ role: "menu",
248
+ "aria-label": c(C).localization.languages,
249
+ class: r([T, "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:w-72"])
250
+ }, [
251
+ p("div", Ae, t(c(C).localization.languages), 1),
252
+ p("div", je, [(n(!0), d(m, null, a(W.value, (e) => (n(), d("div", {
253
+ key: e.locale,
254
+ class: "tpl-language-row tpl:flex tpl:items-center",
255
+ "data-active": z.value === e.locale
256
+ }, [p("button", {
257
+ type: "button",
258
+ role: "menuitemradio",
259
+ "aria-checked": z.value === e.locale,
260
+ "data-testid": `language-option-${e.locale}`,
261
+ class: r(w),
262
+ onClick: (t) => ct(e.locale)
263
+ }, [p("span", Pe, [z.value === e.locale ? (n(), h(c(ne), {
264
+ key: 0,
265
+ size: 12,
266
+ "aria-hidden": "true"
267
+ })) : l("", !0)]), p("span", Fe, [p("span", Ie, [p("span", null, t(c(S)(e.locale)), 1), e.locale === R.value || !_.locales.includes(e.locale) ? (n(), d("span", {
268
+ key: 0,
269
+ class: r(["tpl-language-pill", c(be)])
270
+ }, t(e.locale === R.value ? c(C).localization.default : c(C).localization.notEnabled), 3)) : l("", !0)]), e.coverage ? (n(), d("span", {
271
+ key: 0,
272
+ "data-testid": `language-status-${e.locale}`,
273
+ class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
274
+ }, [e.coverage.missing.length || e.coverage.stale.length ? (n(), h(c(v), {
275
+ key: 0,
276
+ size: 10,
277
+ "aria-hidden": "true",
278
+ class: "tpl:text-[var(--tpl-warning)]"
279
+ })) : (n(), h(c(ne), {
280
+ key: 1,
281
+ size: 10,
282
+ "aria-hidden": "true",
283
+ class: "tpl:text-[var(--tpl-success)]"
284
+ })), f(" " + t(it(e.coverage)), 1)], 8, Le)) : l("", !0)])], 8, Ne), e.locale !== R.value && H.value && _.locales.includes(e.locale) ? (n(), d("button", {
285
+ key: 0,
286
+ type: "button",
287
+ "data-testid": `language-actions-${e.locale}`,
288
+ "aria-haspopup": "menu",
289
+ "aria-expanded": N.value === e.locale,
290
+ "aria-label": c(E)(c(C).localization.moreActions, { language: c(S)(e.locale) }),
291
+ class: "tpl-language-actions tpl:mr-2 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-0 tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]",
292
+ onClick: (t) => X(e.locale)
293
+ }, [o(c(we), {
294
+ size: 14,
295
+ "aria-hidden": "true"
296
+ })], 8, Re)) : l("", !0)], 8, Me))), 128))]),
297
+ (n(!0), d(m, null, a(W.value.filter((e) => e.locale === N.value && H.value && _.locales.includes(e.locale)), (e) => (n(), d("div", {
298
+ key: e.locale,
299
+ role: "menu",
300
+ "data-language-submenu": "",
301
+ "aria-label": c(E)(c(C).localization.moreActions, { language: c(S)(e.locale) }),
302
+ class: r([T, "tpl-language-submenu tpl:absolute tpl:left-full tpl:top-0 tpl:ml-1 tpl:w-64 tpl:overflow-hidden"])
303
+ }, [p("button", {
304
+ type: "button",
305
+ role: "menuitem",
306
+ "data-testid": `language-make-default-${e.locale}`,
307
+ class: r(w),
308
+ "aria-disabled": K.value,
309
+ "aria-label": c(C).localization.makeDefaultLanguage,
310
+ "aria-describedby": K.value ? j : void 0,
311
+ onClick: (t) => pt(e.locale)
312
+ }, [o(c(Ce), {
313
+ size: 14,
314
+ "aria-hidden": "true",
315
+ class: "tpl:shrink-0"
316
+ }), p("span", Ve, [p("span", null, t(c(C).localization.makeDefaultLanguage), 1), K.value ? (n(), d("span", {
317
+ key: 0,
318
+ id: j,
319
+ class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
320
+ }, t(G.value ? c(x)(c(C).localization.hiddenBeforeDefault, nt.value.length, c(D), { language: c(S)(e.locale) }) : c(E)(c(C).localization.defaultNotEnabled, { default: c(S)(R.value) })), 1)) : l("", !0)])], 8, Be), p("button", {
321
+ type: "button",
322
+ role: "menuitem",
323
+ "data-testid": `language-remove-${e.locale}`,
324
+ class: r([w, "tpl:text-[var(--tpl-danger)]"]),
325
+ onClick: (t) => ft(e.locale)
326
+ }, [o(c(oe), {
327
+ size: 14,
328
+ "aria-hidden": "true"
329
+ }), f(t(c(E)(c(C).localization.removeLanguage, { language: c(S)(e.locale) })) + "… ", 1)], 8, He)], 8, ze))), 128)),
330
+ V.value.length && H.value ? (n(), d("div", Ue, [p("button", {
331
+ type: "button",
332
+ role: "menuitem",
333
+ "data-testid": "language-add",
334
+ "aria-haspopup": "menu",
335
+ "aria-expanded": N.value === "add",
336
+ class: r(w),
337
+ onClick: i[0] ||= (e) => X("add")
338
+ }, [
339
+ o(c(ae), {
340
+ size: 14,
341
+ "aria-hidden": "true"
342
+ }),
343
+ f(t(c(C).localization.addLanguage), 1),
344
+ o(c(ie), {
345
+ size: 12,
346
+ "aria-hidden": "true",
347
+ class: "tpl:ml-auto"
348
+ })
349
+ ], 8, We), N.value === "add" ? (n(), d("div", {
350
+ key: 0,
351
+ role: "menu",
352
+ "data-language-submenu": "",
353
+ "aria-label": c(C).localization.addLanguage,
354
+ class: r([T, "tpl-language-submenu tpl:absolute tpl:left-full tpl:bottom-0 tpl:ml-1 tpl:max-h-64 tpl:w-48 tpl:overflow-y-auto"])
355
+ }, [(n(!0), d(m, null, a(V.value, (e) => (n(), d("button", {
356
+ key: e,
357
+ type: "button",
358
+ role: "menuitem",
359
+ "data-testid": `language-add-${e}`,
360
+ class: r(w),
361
+ onClick: (t) => lt(e)
362
+ }, t(c(S)(e)), 9, Ke))), 128))], 8, Ge)) : l("", !0)])) : l("", !0)
363
+ ], 8, ke)) : l("", !0),
364
+ o(Se, {
365
+ visible: P.value !== null || F.value !== null,
366
+ onClose: $
367
+ }, {
368
+ default: ee(() => [p("section", {
369
+ role: "dialog",
370
+ "aria-modal": "true",
371
+ "aria-label": Q.value,
372
+ class: "tpl:w-80 tpl:max-w-full tpl:max-h-[90%] tpl:overflow-y-auto tpl:box-border tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
373
+ }, [
374
+ p("h3", Je, t(Q.value), 1),
375
+ F.value && mt.value ? (n(), d("p", Ye, t(c(x)(c(C).localization.defaultGaps, mt.value, c(D), {
376
+ language: c(S)(F.value.locale),
377
+ default: c(S)(R.value)
378
+ })), 1)) : l("", !0),
379
+ P.value ? (n(), d("p", Xe, t(c(E)(c(C).localization.removeDescription, { language: c(S)(P.value) })), 1)) : l("", !0),
380
+ I.value ? (n(), d("p", Ze, [o(c(v), {
381
+ size: 14,
382
+ "aria-hidden": "true",
383
+ class: "tpl:shrink-0"
384
+ }), p("span", null, t(I.value), 1)])) : l("", !0),
385
+ p("div", Qe, [p("button", {
386
+ type: "button",
387
+ "data-testid": F.value ? "language-default-cancel" : "language-remove-cancel",
388
+ class: r(c(_e)),
389
+ onClick: $
390
+ }, t(c(C).localization.cancel), 11, $e), p("button", {
391
+ type: "button",
392
+ "data-testid": F.value ? "language-default-confirm" : "language-remove-confirm",
393
+ class: r(P.value ? c(ye) : c(ve)),
394
+ disabled: !H.value,
395
+ onClick: ht
396
+ }, t(F.value ? c(C).localization.makeDefault : c(E)(c(C).localization.removeLanguage, { language: c(S)(P.value ?? R.value) })), 11, et)])
397
+ ], 8, qe)]),
398
+ _: 1
399
+ }, 8, ["visible"])
400
+ ], 544));
401
+ }
402
+ }), [["__scopeId", "data-v-9b071249"]]);
403
+ export { E as default };
@@ -1,27 +1,27 @@
1
1
  import { Ft as e, M as t, Pt as n, _ as r, c as i, ct as a, f as o, l as s, w as c, y as l } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
- import { t as u } from "./check-XMnOOIEC.js";
3
- import { t as d } from "./x-BIBStNMS.js";
4
- import { rt as f } from "./keys-BCqskl51.js";
5
- import { t as p } from "./useI18n-CgtvtF4C.js";
2
+ import { t as u } from "./check-CcuCoJDh.js";
3
+ import { t as d } from "./x-DZSFHafL.js";
4
+ import { t as f } from "./useI18n-zeWYtWSv.js";
5
+ import { t as p } from "./noticeTones-D7BPu-Le.js";
6
6
  import { t as m } from "./plural-CyxrJXL1.js";
7
- import { t as h } from "./languageName-DEEOhDWI.js";
8
- import { t as g } from "./noticeTones-D7BPu-Le.js";
7
+ import { it as h } from "./keys-w_VRjoMu.js";
8
+ import { t as g } from "./languageName-DEEOhDWI.js";
9
9
  // src/components/localization/LocaleNotices.vue?vue&type=script&setup=true&lang.ts
10
10
  var _ = ["aria-label", "title"], v = /* @__PURE__ */ l({
11
11
  __name: "LocaleNotices",
12
12
  props: { notice: {} },
13
13
  emits: ["dismiss"],
14
14
  setup(l, { emit: v }) {
15
- let y = l, b = v, { t: x, format: S } = p(), C = c(f, void 0) ?? "en", w = i(() => {
16
- let { notice: e } = y, t = [S(x.localization.defaultChanged, { language: h(e.language) })];
17
- return e.count && t.push(m(x.localization.defaultRemaining, e.count, C, { old: h(e.old) })), t.join(" ");
15
+ let y = l, b = v, { t: x, format: S } = f(), C = c(h, void 0) ?? "en", w = i(() => {
16
+ let { notice: e } = y, t = [S(x.localization.defaultChanged, { language: g(e.language) })];
17
+ return e.count && t.push(m(x.localization.defaultRemaining, e.count, C, { old: g(e.old) })), t.join(" ");
18
18
  });
19
19
  return (i, c) => (t(), o("div", {
20
20
  "data-testid": "locale-notice",
21
21
  role: "status",
22
22
  "aria-live": "polite",
23
23
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:shadow-[var(--tpl-shadow-lg)]",
24
- style: n(a(g).info)
24
+ style: n(a(p).info)
25
25
  }, [
26
26
  r(a(u), {
27
27
  size: 14,
@@ -1,16 +1,16 @@
1
1
  import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, Pt as o, S as s, U as c, Y as l, Z as u, _ as d, a as f, c as p, ct as m, d as h, et as g, f as _, g as v, l as y, q as b, r as x, u as S, w as C, y as w } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
2
  import { c as T, n as E, s as ee, t as D } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { Jt as O, ct as te, dt as k, ft as A, g as j, qt as M, vt as N } from "./dist-CBdk1Vcb.js";
4
- import { t as P } from "./createLucideIcon-CgDE3xAR.js";
5
- import { t as F } from "./pencil-BK7GrQuA.js";
6
- import { t as I } from "./x-BIBStNMS.js";
7
- import { et as ne, it as re, p as ie, tt as L } from "./keys-BCqskl51.js";
8
- import { t as R } from "./useI18n-CgtvtF4C.js";
3
+ import { D as O, Jt as te, Yt as k, ft as A, lt as j, pt as M, yt as N } from "./dist-BMUUt3zJ.js";
4
+ import { t as P } from "./createLucideIcon-CfBdtoUw.js";
5
+ import { t as F } from "./pencil-M9vkOB7C.js";
6
+ import { t as I } from "./x-DZSFHafL.js";
7
+ import { at as ne, nt as L, p as re, tt as ie } from "./keys-w_VRjoMu.js";
8
+ import { t as R } from "./useI18n-zeWYtWSv.js";
9
9
  import { d as ae } from "./styleConstants-CgiNKdnc.js";
10
- import { t as oe } from "./dist-0alKVRc_.js";
11
- import { t as z } from "./useMergeTag-k7Kr0nMd.js";
12
- import { a as se, c as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./usePopoverPosition-VDQjyX_A.js";
13
- import { t as me } from "./useLogicTag-D8zgkXfb.js";
10
+ import { t as oe } from "./dist-CiYotUR8.js";
11
+ import { t as z } from "./useMergeTag-B5qlq8px.js";
12
+ import { a as se, c as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./usePopoverPosition-Br3zt_MQ.js";
13
+ import { t as me } from "./useLogicTag-B4Zpk3eo.js";
14
14
  var B = P({
15
15
  name: "braces",
16
16
  size: 24,
@@ -353,7 +353,7 @@ var Ve = [
353
353
  oe(te, () => {
354
354
  O.value = !1;
355
355
  }, { ignore: [k] });
356
- let j = p(() => !l.modelValue), M = p(() => l.modelValue.trim().toLowerCase() === "transparent"), N = p(() => ue(l.modelValue)), P = p(() => (l.modelValue ? fe(l.modelValue) : null) || (fe(l.seedColor) ?? "#ffffff")), F = p(() => !b.value && !j.value), L = C(ie, de), z = p(() => [...new Set(l.presets ?? L.presets)]), me = p(() => l.allowCustom ?? L.allowCustom), B = p(() => z.value.length > 0), V = p(() => me.value || !B.value), H = p(() => se(l.modelValue));
356
+ let j = p(() => !l.modelValue), M = p(() => l.modelValue.trim().toLowerCase() === "transparent"), N = p(() => ue(l.modelValue)), P = p(() => (l.modelValue ? fe(l.modelValue) : null) || (fe(l.seedColor) ?? "#ffffff")), F = p(() => !b.value && !j.value), L = C(re, de), z = p(() => [...new Set(l.presets ?? L.presets)]), me = p(() => l.allowCustom ?? L.allowCustom), B = p(() => z.value.length > 0), V = p(() => me.value || !B.value), H = p(() => se(l.modelValue));
357
357
  function U(e) {
358
358
  return H.value !== "" && se(e) === H.value;
359
359
  }
@@ -403,7 +403,7 @@ var Ve = [
403
403
  function Se() {
404
404
  b.value || w("update:modelValue", "transparent");
405
405
  }
406
- let Y = le(), { toLocal: X } = pe(), Z = C(ne, null), Ce = C(re, null), Q = g({
406
+ let Y = le(), { toLocal: X } = pe(), Z = C(ie, null), Ce = C(ne, null), Q = g({
407
407
  top: 0,
408
408
  left: 0
409
409
  });
@@ -718,14 +718,14 @@ function ft(e, t, n, r, i) {
718
718
  };
719
719
  }
720
720
  function pt(e, t) {
721
- let n = Object.values(j).find((e) => e.value === t);
722
- if (n) {
723
- let t = O(e, n, "value"), r = t[t.length - 1];
721
+ let n = t instanceof RegExp ? void 0 : t;
722
+ if (n && O(n)) {
723
+ let t = k(e, n, "value"), r = t[t.length - 1];
724
724
  return r ? r.index + r.value.length : 0;
725
725
  }
726
- let r = new RegExp(t.source, `${t.flags.replace(/[gy]/g, "")}g`), i = 0;
727
- for (let t of e.matchAll(r)) i = t.index + t[0].length;
728
- return i;
726
+ let r = n?.value ?? t, i = new RegExp(r.source, `${r.flags.replace(/[gy]/g, "")}g`), a = 0;
727
+ for (let t of e.matchAll(i)) a = t.index + t[0].length;
728
+ return a;
729
729
  }
730
730
  // src/utils/textFieldCaret.ts
731
731
  var mt = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
@@ -771,7 +771,7 @@ var _t = /* @__PURE__ */ new Set([
771
771
  "End"
772
772
  ]);
773
773
  function vt(t) {
774
- let { elementRef: n, modelValue: r, emit: a, mergeTags: o, syntax: s, enabled: c, onInsert: d } = t, f = ce(), m = A(s), h = k(s), g = p(() => f.value && c && m !== null && o.value.length > 0), _ = C(L, null), v = dt((l(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", le());
774
+ let { elementRef: n, modelValue: r, emit: a, mergeTags: o, syntax: s, enabled: c, onInsert: d } = t, f = ce(), m = M(s), h = A(s), g = p(() => f.value && c && m !== null && o.value.length > 0), _ = C(L, null), v = dt((l(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", le());
775
775
  e(f, (e) => {
776
776
  e || v.close();
777
777
  }, { flush: "sync" });
@@ -781,7 +781,7 @@ function vt(t) {
781
781
  });
782
782
  function x(e) {
783
783
  let t = e.value ?? "";
784
- return ft(t, e.selectionStart ?? t.length, m, h, s.value);
784
+ return ft(t, e.selectionStart ?? t.length, m, h, s);
785
785
  }
786
786
  function S(e, t, o) {
787
787
  if (!f.value) return;
@@ -847,7 +847,7 @@ function yt(e) {
847
847
  let e = t();
848
848
  if (!e) return [];
849
849
  let n = [], r = 0;
850
- for (let t of M(e, m)) {
850
+ for (let t of te(e, m)) {
851
851
  t.index > r && n.push({
852
852
  type: "text",
853
853
  value: e.slice(r, t.index)
@@ -860,7 +860,7 @@ function yt(e) {
860
860
  }) : N(i, m) ? n.push({
861
861
  type: "logicMergeTag",
862
862
  value: i,
863
- keyword: te(i, m)
863
+ keyword: j(i, m)
864
864
  }) : n.push({
865
865
  type: "text",
866
866
  value: i
@@ -890,7 +890,7 @@ function yt(e) {
890
890
  function A() {
891
891
  w.refresh();
892
892
  }
893
- function j() {
893
+ function M() {
894
894
  w.close(), D();
895
895
  }
896
896
  function P() {
@@ -957,7 +957,7 @@ function yt(e) {
957
957
  handleInput: O,
958
958
  handleKeydown: k,
959
959
  handleClick: A,
960
- handleBlur: j,
960
+ handleBlur: M,
961
961
  clearValue: P,
962
962
  insertMergeTag: F,
963
963
  replaceMergeTagAt: I,
@@ -1,7 +1,7 @@
1
1
  import { B as e, D as t, F as n, Ft as r, I as i, L as a, M as o, Mt as s, P as c, Pt as l, U as u, W as d, _ as f, a as p, c as m, ct as h, d as g, et as _, f as v, g as ee, l as y, r as te, u as b, w as ne, y as x } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
2
  import { a as re, c as ie, o as ae, t as oe } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { t as se } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
- import { a as ce, n as le, o as ue, r as de, t as fe } from "./editor-modal-BeX6otLk.js";
3
+ import { a as se, n as ce, o as le, r as ue, t as de } from "./editor-modal-BD32TXws.js";
4
+ import { t as fe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
5
  // ../media-library/src/composables/useImageCrop.ts
6
6
  var pe = {
7
7
  free: void 0,
@@ -3355,7 +3355,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3355
3355
  role: "alert",
3356
3356
  class: "tpl:shrink-0 tpl:px-5 tpl:pt-3 tpl:text-xs",
3357
3357
  style: { color: "var(--tpl-danger)" }
3358
- }, bn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, xn = ["disabled"], Sn = ["disabled"], Cn = /*#__PURE__*/ se(/* @__PURE__ */ x({
3358
+ }, bn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, xn = ["disabled"], Sn = ["disabled"], Cn = /*#__PURE__*/ fe(/* @__PURE__ */ x({
3359
3359
  __name: "MediaEditModal",
3360
3360
  props: {
3361
3361
  visible: { type: Boolean },
@@ -3365,7 +3365,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3365
3365
  },
3366
3366
  emits: ["close"],
3367
3367
  setup(t, { emit: n }) {
3368
- let i = t, a = n, { t: x } = de(), ae = ne(ue, null), se = ne(ce, _(null)), ve = x.mediaLibrary, { isImageMimeType: S } = le(), C = _(""), ye = _(""), w = _(null), T = _("free"), E = _(void 0), D = _(void 0), O = _(""), k = _(""), A = _(void 0), j = _(null), be = _(!1), M = _(!1), N = _(!1), P = _(null), F = null, I = [
3368
+ let i = t, a = n, { t: x } = ue(), ae = ne(le, null), fe = ne(se, _(null)), ve = x.mediaLibrary, { isImageMimeType: S } = ce(), C = _(""), ye = _(""), w = _(null), T = _("free"), E = _(void 0), D = _(void 0), O = _(""), k = _(""), A = _(void 0), j = _(null), be = _(!1), M = _(!1), N = _(!1), P = _(null), F = null, I = [
3369
3369
  "image/jpeg",
3370
3370
  "image/png",
3371
3371
  "image/webp"
@@ -3433,7 +3433,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3433
3433
  M.value || a("close");
3434
3434
  }
3435
3435
  let Me = _(null), Ne = m(() => i.visible && i.item !== null);
3436
- fe(Me, Ne);
3436
+ de(Me, Ne);
3437
3437
  function B(e) {
3438
3438
  if (e.stopPropagation(), e.key === "Enter" && !M.value) {
3439
3439
  if (e.target?.closest("textarea, [contenteditable]")) return;
@@ -3441,7 +3441,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3441
3441
  }
3442
3442
  e.key === "Escape" && je();
3443
3443
  }
3444
- return (e, n) => (o(), b(p, { to: h(se) || "body" }, [f(oe, {
3444
+ return (e, n) => (o(), b(p, { to: h(fe) || "body" }, [f(oe, {
3445
3445
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
3446
3446
  "enter-from-class": "tpl:opacity-0",
3447
3447
  "enter-to-class": "tpl:opacity-100",
@@ -3452,7 +3452,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3452
3452
  default: u(() => [t.visible && t.item ? (o(), v("div", {
3453
3453
  key: 0,
3454
3454
  "data-tpl-theme": h(ae),
3455
- class: s([h(se) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3455
+ class: s([h(fe) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3456
3456
  style: { "background-color": "var(--tpl-overlay)" },
3457
3457
  onClick: ie(je, ["self"]),
3458
3458
  onKeydown: B
@@ -10,7 +10,7 @@ var o = /* @__PURE__ */ a({
10
10
  popoverTarget: {}
11
11
  },
12
12
  setup(a) {
13
- let o = a, s = i(async () => (await import("./editor-modal-BeX6otLk.js")).MediaLibraryModal);
13
+ let o = a, s = i(async () => (await import("./editor-modal-BD32TXws.js")).MediaLibraryModal);
14
14
  function c(e) {
15
15
  o.feature.select(e);
16
16
  }