@templatical/editor 0.52.1 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-C8SeEJRP.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
  7. package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
  8. package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
  11. package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
  13. package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
  14. package/dist/CommentsSidebar-CHknhOar.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
  17. package/dist/IssuesPanel-1wGV0wiy.js +371 -0
  18. package/dist/LanguageMenu-d2GlX67r.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-WzsYtBRs.js +46 -0
  21. package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
  26. package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
  27. package/dist/ParagraphEditor-CI68PYDL.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
  34. package/dist/TemplateSettings-Baar78_s.js +294 -0
  35. package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
  37. package/dist/TitleEditor-DkbEDAZB.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-bOZ_eq7X.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
  43. package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
  44. package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
  139. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  152. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  153. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  154. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
  162. package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
  185. package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
  186. package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
  187. package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
  188. package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
  189. package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
  190. package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2189 -1495
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
  223. package/dist/composables-CMIrGXJ1.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-Do0SU6tR.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Cr0Mis63.js +13 -0
  266. package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
  269. package/dist/rotate-ccw-CB5wsHwv.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
  275. package/dist/socialIcons-TFiOkpoU.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
  282. package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
  296. package/package.json +21 -21
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
  375. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  376. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  377. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  378. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  379. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  381. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  382. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  384. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  385. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  386. package/dist/dist-CKi_npZM.js +0 -1344
  387. package/dist/dist-DyFArF_G.js +0 -4
  388. package/dist/dist-pA3ooG6N.js +0 -4
  389. package/dist/en-Db76vJbY.js +0 -1
  390. package/dist/keys-BgRERHzu.js +0 -9
  391. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  392. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  393. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  394. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  395. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  396. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  397. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,21 +1,22 @@
1
- import { $ as e, C as t, F as n, H as r, J as i, M as a, Mt as o, N as s, Nt as c, O as l, U as u, X as d, _ as f, a as p, at as m, c as h, d as g, f as _, g as v, j as y, jt as b, l as x, r as S, rt as C, st as w, u as T, v as E, y as D, z as O } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
- import { a as k, c as A, s as j, t as M } from "./runtime-dom.esm-bundler-BURR-bj5.js";
3
- import { h as N } from "./dist-CVy-7PHQ.js";
4
- import { a as P, n as F, o as I, r as L, s as R, t as z } from "./dist-ByCWA2Tv.js";
5
- import { t as B } from "./createLucideIcon-CvhTA2KG.js";
6
- import { t as V } from "./check-BZ8o0eet.js";
7
- import { t as ee } from "./chevron-right-Bk4mGdr7.js";
8
- import { n as te, t as ne } from "./upload-DuFEOi_0.js";
9
- import { t as re } from "./link-ju_2Cmir.js";
10
- import { t as ie } from "./list-DYZJf0aZ.js";
11
- import { t as H } from "./loader-circle-BZRD0a4I.js";
12
- import { t as U } from "./pencil-D3aFCL7c.js";
13
- import { n as W, t as G } from "./refresh-cw-xnro7_Sk.js";
14
- import { t as ae } from "./search-CDrstRBv.js";
15
- import { t as oe } from "./trash-DxCd7zIy.js";
16
- import { t as se } from "./x-BpfG7v9g.js";
17
- import { t as K } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
18
- var q = B({
1
+ import { B as e, Ft as t, I as n, M as r, Mt as i, N as a, P as o, Pt as s, U as c, W as l, Y as u, Z as d, _ as f, a as p, c as m, ct as h, d as g, et as _, f as v, g as y, it as b, k as x, l as S, ot as C, r as w, u as T, v as E, w as D, y as O } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
+ import { a as k, c as A, s as j, t as M } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
+ import { t as N } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
+ import { t as P } from "./createLucideIcon-CgDE3xAR.js";
5
+ import { t as F } from "./check-XMnOOIEC.js";
6
+ import { t as I } from "./chevron-right-BEFXOH27.js";
7
+ import { n as ee, t as L } from "./upload-Cp8o-hrN.js";
8
+ import { t as te } from "./link-oDn9AR2w.js";
9
+ import { t as ne } from "./list-C5t07dp8.js";
10
+ import { t as R } from "./loader-circle-k6xvKgUB.js";
11
+ import { t as z } from "./pencil-BK7GrQuA.js";
12
+ import { t as B } from "./plus-Cr0Mis63.js";
13
+ import { t as V } from "./refresh-cw-_ZLOIEvA.js";
14
+ import { t as re } from "./search-BmrQNox8.js";
15
+ import { t as H } from "./trash-B99WixTA.js";
16
+ import { t as U } from "./x-BIBStNMS.js";
17
+ import { h as ie } from "./dist-CX7skkvG.js";
18
+ import { a as W, n as ae, o as oe, r as se, s as ce, t as le } from "./dist-0alKVRc_.js";
19
+ var G = P({
19
20
  name: "file",
20
21
  size: 24,
21
22
  node: [["path", {
@@ -25,14 +26,14 @@ var q = B({
25
26
  d: "M14 2v5a1 1 0 0 0 1 1h5",
26
27
  key: "wfsgrz"
27
28
  }]]
28
- }), J = B({
29
+ }), K = P({
29
30
  name: "folder",
30
31
  size: 24,
31
32
  node: [["path", {
32
33
  d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
33
34
  key: "1kt360"
34
35
  }]]
35
- }), ce = B({
36
+ }), ue = P({
36
37
  name: "grid-2x2",
37
38
  size: 24,
38
39
  node: [
@@ -54,7 +55,7 @@ var q = B({
54
55
  }]
55
56
  ],
56
57
  aliases: ["grid-2-x-2"]
57
- }), Y = B({
58
+ }), q = P({
58
59
  name: "panel-left",
59
60
  size: 24,
60
61
  node: [["rect", {
@@ -69,14 +70,14 @@ var q = B({
69
70
  key: "fh3hqa"
70
71
  }]],
71
72
  aliases: ["sidebar"]
72
- }), le = B({
73
+ }), de = P({
73
74
  name: "star",
74
75
  size: 24,
75
76
  node: [["path", {
76
77
  d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
77
78
  key: "r04s7s"
78
79
  }]]
79
- }), ue = Symbol("templaticalMediaLimits"), X = Symbol("templaticalMediaPopoverTarget"), de = Symbol("templaticalMediaTranslations"), fe = Symbol("templaticalMediaUiTheme"), Z = Symbol("templaticalMediaUiLocale"), pe = { mediaLibrary: {
80
+ }), fe = Symbol("templaticalMediaLimits"), J = Symbol("templaticalMediaPopoverTarget"), pe = Symbol("templaticalMediaTranslations"), Y = Symbol("templaticalMediaUiTheme"), X = Symbol("templaticalMediaUiLocale"), me = { mediaLibrary: {
80
81
  title: "Media Library",
81
82
  searchPlaceholder: "Search files...",
82
83
  allFiles: "All Files",
@@ -170,101 +171,101 @@ var q = B({
170
171
  storageTooltip: "{used} of {total} used ({remaining} remaining)"
171
172
  } };
172
173
  // ../media-library/src/composables/useI18n.ts
173
- function Q(e) {
174
- let n = e ?? t(de, null), r = (i(n) ? n.value : n) ?? pe;
175
- function a(e, t) {
174
+ function Z(e) {
175
+ let t = e ?? D(pe, null), n = (u(t) ? t.value : t) ?? me;
176
+ function r(e, t) {
176
177
  return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : `{${n}}`);
177
178
  }
178
179
  return {
179
- t: r,
180
- format: a
180
+ t: n,
181
+ format: r
181
182
  };
182
183
  }
183
184
  // ../media-library/src/composables/useMediaCategories.ts
184
- var me = [
185
+ var he = [
185
186
  "images",
186
187
  "documents",
187
188
  "videos",
188
189
  "audio"
189
190
  ];
190
- function he(e) {
191
- let n = e ?? t(ue, null);
192
- if (!n) throw Error("[Templatical] useMediaCategories() needs media limits in scope. Render it under <MediaLibraryModal> or provide MEDIA_LIMITS_KEY yourself.");
193
- let r = n, i = h(() => !0), a = h(() => r.maxFileSize ?? Infinity), o = h(() => {
194
- let e = r.accept;
191
+ function Q(e) {
192
+ let t = e ?? D(fe, null);
193
+ if (!t) throw Error("[Templatical] useMediaCategories() needs media limits in scope. Render it under <MediaLibraryModal> or provide MEDIA_LIMITS_KEY yourself.");
194
+ let n = t, r = m(() => !0), i = m(() => n.maxFileSize ?? Infinity), a = m(() => {
195
+ let e = n.accept;
195
196
  if (e && e.length > 0) return e;
196
- let t = r.mimeTypes;
197
- return t ? Object.keys(t) : me;
198
- }), s = h(() => {
199
- let e = r.mimeTypes;
200
- return e ? o.value.flatMap((t) => e[t] ?? []) : [];
201
- }), c = h(() => s.value.join(",")), l = h(() => r.mimeTypes !== void 0);
202
- function u(e, t) {
203
- let n = r.mimeTypes;
204
- return !n || (t && t.length > 0 ? t : Object.keys(n)).some((t) => n[t]?.includes(e) ?? !1);
197
+ let t = n.mimeTypes;
198
+ return t ? Object.keys(t) : he;
199
+ }), o = m(() => {
200
+ let e = n.mimeTypes;
201
+ return e ? a.value.flatMap((t) => e[t] ?? []) : [];
202
+ }), s = m(() => o.value.join(",")), c = m(() => n.mimeTypes !== void 0);
203
+ function l(e, t) {
204
+ let r = n.mimeTypes;
205
+ return !r || (t && t.length > 0 ? t : Object.keys(r)).some((t) => r[t]?.includes(e) ?? !1);
206
+ }
207
+ function u(e) {
208
+ return l(e.type) && e.size <= i.value;
205
209
  }
206
210
  function d(e) {
207
- return u(e.type) && e.size <= a.value;
208
- }
209
- function f(e) {
210
- let t = r.mimeTypes;
211
+ let t = n.mimeTypes;
211
212
  return t ? t.images?.includes(e) ?? !1 : e.startsWith("image/");
212
213
  }
213
- function p(e) {
214
- let t = r.mimeTypes;
214
+ function f(e) {
215
+ let t = n.mimeTypes;
215
216
  if (!t) return null;
216
217
  for (let [n, r] of Object.entries(t)) if (r?.includes(e)) return n;
217
218
  return null;
218
219
  }
219
220
  return {
220
- isMediaLibraryEnabled: i,
221
- allAcceptedMimeTypes: s,
222
- allAcceptedInputString: c,
223
- restrictsMimeTypes: l,
224
- maxFileSize: a,
225
- availableCategories: o,
226
- isAcceptedMimeType: u,
227
- isAcceptedFile: d,
228
- isImageMimeType: f,
229
- getCategoryForMimeType: p
221
+ isMediaLibraryEnabled: r,
222
+ allAcceptedMimeTypes: o,
223
+ allAcceptedInputString: s,
224
+ restrictsMimeTypes: c,
225
+ maxFileSize: i,
226
+ availableCategories: a,
227
+ isAcceptedMimeType: l,
228
+ isAcceptedFile: u,
229
+ isImageMimeType: d,
230
+ getCategoryForMimeType: f
230
231
  };
231
232
  }
232
233
  // ../media-library/src/composables/useFocusTrap.ts
233
234
  var ge = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
234
- function _e(e, t) {
235
- let n = null, r = null, i = null;
236
- function a(e) {
235
+ function _e(t, n) {
236
+ let r = null, i = null, a = null;
237
+ function o(e) {
237
238
  if (!e) return document;
238
239
  let t = e.getRootNode();
239
240
  return t && "activeElement" in t ? t : document;
240
241
  }
241
- function o() {
242
- return e.value ? Array.from(e.value.querySelectorAll(ge)).filter((e) => e.offsetParent !== null) : [];
242
+ function s() {
243
+ return t.value ? Array.from(t.value.querySelectorAll(ge)).filter((e) => e.offsetParent !== null) : [];
243
244
  }
244
- function s(t) {
245
- if (t.key !== "Tab") return;
246
- let n = o();
245
+ function c(e) {
246
+ if (e.key !== "Tab") return;
247
+ let n = s();
247
248
  if (n.length === 0) return;
248
- let r = n[0], i = n[n.length - 1], s = a(e.value).activeElement;
249
- t.shiftKey ? s === r && (t.preventDefault(), i.focus()) : s === i && (t.preventDefault(), r.focus());
250
- }
251
- function c() {
252
- let t = r !== null || i !== null;
253
- t && l({ restoreFocus: !1 }), t || (n = a(e.value).activeElement), i = requestAnimationFrame(() => {
254
- i = null;
255
- let t = o();
256
- t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
257
- }), r = P(e, "keydown", s);
258
- }
259
- function l(e = {}) {
249
+ let r = n[0], i = n[n.length - 1], a = o(t.value).activeElement;
250
+ e.shiftKey ? a === r && (e.preventDefault(), i.focus()) : a === i && (e.preventDefault(), r.focus());
251
+ }
252
+ function l() {
253
+ let e = i !== null || a !== null;
254
+ e && u({ restoreFocus: !1 }), e || (r = o(t.value).activeElement), a = requestAnimationFrame(() => {
255
+ a = null;
256
+ let e = s();
257
+ e.length > 0 && (t.value?.querySelector("[autofocus], input:not([disabled])") ?? e[0]).focus();
258
+ }), i = W(t, "keydown", c);
259
+ }
260
+ function u(e = {}) {
260
261
  let t = e.restoreFocus !== !1;
261
- i !== null && (typeof cancelAnimationFrame < "u" && cancelAnimationFrame(i), i = null), r?.(), r = null, t && n && n.focus && (n.focus(), n = null);
262
+ a !== null && (typeof cancelAnimationFrame < "u" && cancelAnimationFrame(a), a = null), i?.(), i = null, t && r && r.focus && (r.focus(), r = null);
262
263
  }
263
- let u = O([t, e], ([e, t]) => {
264
- e && t ? c() : l();
264
+ let f = e([n, t], ([e, t]) => {
265
+ e && t ? l() : u();
265
266
  }, { flush: "post" });
266
267
  d(() => {
267
- u(), l();
268
+ f(), u();
268
269
  });
269
270
  }
270
271
  // ../media-library/src/components/media/MediaBreadcrumb.vue?vue&type=script&setup=true&lang.ts
@@ -275,39 +276,39 @@ var ve = {
275
276
  }, ye = ["onClick"], be = {
276
277
  key: 1,
277
278
  style: { color: "var(--tpl-text)" }
278
- }, xe = /* @__PURE__ */ D({
279
+ }, xe = /* @__PURE__ */ O({
279
280
  __name: "MediaBreadcrumb",
280
281
  props: {
281
282
  folders: {},
282
283
  currentFolderId: {}
283
284
  },
284
285
  emits: ["navigate"],
285
- setup(e, { emit: t }) {
286
- let n = e, r = t, { t: i } = Q(), a = h(() => {
287
- if (!n.currentFolderId) return [];
286
+ setup(e, { emit: n }) {
287
+ let i = e, a = n, { t: s } = Z(), c = m(() => {
288
+ if (!i.currentFolderId) return [];
288
289
  let e = [];
289
- return o(n.folders, n.currentFolderId, e), e;
290
+ return l(i.folders, i.currentFolderId, e), e;
290
291
  });
291
- function o(e, t, n) {
292
+ function l(e, t, n) {
292
293
  for (let r of e) {
293
294
  if (r.id === t) return n.push(r), !0;
294
- if (o(r.children, t, n)) return n.unshift(r), !0;
295
+ if (l(r.children, t, n)) return n.unshift(r), !0;
295
296
  }
296
297
  return !1;
297
298
  }
298
- return (e, t) => a.value.length > 0 ? (y(), _("div", ve, [x("button", {
299
+ return (e, n) => c.value.length > 0 ? (r(), v("div", ve, [S("button", {
299
300
  class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
300
301
  style: { color: "var(--tpl-primary)" },
301
- onClick: t[0] ||= (e) => r("navigate", null)
302
- }, c(w(i).mediaLibrary.allFiles), 1), (y(!0), _(S, null, s(a.value, (e, t) => (y(), _(S, { key: e.id }, [f(w(ee), {
302
+ onClick: n[0] ||= (e) => a("navigate", null)
303
+ }, t(h(s).mediaLibrary.allFiles), 1), (r(!0), v(w, null, o(c.value, (e, n) => (r(), v(w, { key: e.id }, [f(h(I), {
303
304
  size: 12,
304
305
  "stroke-width": 2
305
- }), t < a.value.length - 1 ? (y(), _("button", {
306
+ }), n < c.value.length - 1 ? (r(), v("button", {
306
307
  key: 0,
307
308
  class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
308
309
  style: { color: "var(--tpl-primary)" },
309
- onClick: (t) => r("navigate", e.id)
310
- }, c(e.name), 9, ye)) : (y(), _("span", be, c(e.name), 1))], 64))), 128))])) : g("", !0);
310
+ onClick: (t) => a("navigate", e.id)
311
+ }, t(e.name), 9, ye)) : (r(), v("span", be, t(e.name), 1))], 64))), 128))])) : g("", !0);
311
312
  }
312
313
  }), Se = ["aria-expanded", "aria-label"], Ce = {
313
314
  key: 1,
@@ -315,7 +316,7 @@ var ve = {
315
316
  }, we = {
316
317
  key: 0,
317
318
  class: "tpl:truncate"
318
- }, Te = ["onKeydown"], Ee = ["title", "aria-label"], De = ["title", "aria-label"], Oe = ["title", "aria-label"], ke = { key: 0 }, Ae = ["placeholder", "onKeydown"], je = /* @__PURE__ */ D({
319
+ }, Te = ["onKeydown"], Ee = ["title", "aria-label"], De = ["title", "aria-label"], Oe = ["title", "aria-label"], ke = { key: 0 }, Ae = ["placeholder", "onKeydown"], je = /* @__PURE__ */ O({
319
320
  __name: "MediaFolderTreeNode",
320
321
  props: {
321
322
  folder: {},
@@ -331,76 +332,76 @@ var ve = {
331
332
  "renameFolder",
332
333
  "deleteFolder"
333
334
  ],
334
- setup(t, { emit: r }) {
335
- let i = t, a = r, { t: l } = Q(), d = e(!1), p = e(!1), m = e(""), v = e(!1), C = e(""), E = e(!1), D = h(() => i.folder.children.length > 0), O = h(() => i.depth < 4), M = h(() => i.currentFolderId === i.folder.id), N = h(() => i.currentFolderId ? F(i.folder.children, i.currentFolderId) : !1), P = h(() => d.value || N.value);
335
+ setup(e, { emit: a }) {
336
+ let c = e, u = a, { t: d } = Z(), p = _(!1), y = _(!1), b = _(""), x = _(!1), C = _(""), E = _(!1), D = m(() => c.folder.children.length > 0), O = m(() => c.depth < 4), M = m(() => c.currentFolderId === c.folder.id), N = m(() => c.currentFolderId ? F(c.folder.children, c.currentFolderId) : !1), P = m(() => p.value || N.value);
336
337
  function F(e, t) {
337
338
  for (let n of e) if (n.id === t || F(n.children, t)) return !0;
338
339
  return !1;
339
340
  }
340
- function I() {
341
- d.value = !d.value;
341
+ function ee() {
342
+ p.value = !p.value;
342
343
  }
343
344
  function L() {
344
- p.value = !0, m.value = i.folder.name;
345
+ y.value = !0, b.value = c.folder.name;
345
346
  }
346
- function R() {
347
- let e = m.value.trim();
348
- e && e !== i.folder.name && a("renameFolder", i.folder.id, e), p.value = !1, m.value = "";
347
+ function te() {
348
+ let e = b.value.trim();
349
+ e && e !== c.folder.name && u("renameFolder", c.folder.id, e), y.value = !1, b.value = "";
349
350
  }
350
- function z() {
351
- p.value = !1, m.value = "";
351
+ function ne() {
352
+ y.value = !1, b.value = "";
352
353
  }
353
- function B() {
354
- v.value = !0, C.value = "", d.value = !0;
354
+ function R() {
355
+ x.value = !0, C.value = "", p.value = !0;
355
356
  }
356
357
  function V() {
357
- C.value.trim() && a("createFolder", C.value.trim(), i.folder.id), v.value = !1, C.value = "";
358
+ C.value.trim() && u("createFolder", C.value.trim(), c.folder.id), x.value = !1, C.value = "";
358
359
  }
359
- function te() {
360
- v.value = !1, C.value = "";
360
+ function re() {
361
+ x.value = !1, C.value = "";
361
362
  }
362
- function ne() {
363
- E.value ? (a("deleteFolder", i.folder.id), E.value = !1) : E.value = !0;
363
+ function U() {
364
+ E.value ? (u("deleteFolder", c.folder.id), E.value = !1) : E.value = !0;
364
365
  }
365
- function re(e) {
366
+ function ie(e) {
366
367
  let t = e.relatedTarget;
367
368
  t && e.currentTarget.contains(t) || (E.value = !1);
368
369
  }
369
- return (e, r) => {
370
- let i = n("MediaFolderTreeNode", !0);
371
- return y(), _("div", null, [x("div", {
370
+ return (a, c) => {
371
+ let p = n("MediaFolderTreeNode", !0);
372
+ return r(), v("div", null, [S("div", {
372
373
  class: "tpl:group tpl:flex tpl:w-full tpl:items-center tpl:gap-1 tpl:py-1.5 tpl:pr-2 tpl:text-left tpl:text-xs tpl:transition-all tpl:duration-150",
373
- style: o({
374
- paddingLeft: `${t.depth * 16 + 8}px`,
374
+ style: s({
375
+ paddingLeft: `${e.depth * 16 + 8}px`,
375
376
  backgroundColor: M.value ? "var(--tpl-bg-active)" : "transparent",
376
377
  color: M.value ? "var(--tpl-primary)" : "var(--tpl-text)"
377
378
  }),
378
- onFocusout: re
379
+ onFocusout: ie
379
380
  }, [
380
- D.value || v.value ? (y(), _("button", {
381
+ D.value || x.value ? (r(), v("button", {
381
382
  key: 0,
382
383
  type: "button",
383
384
  class: "tpl:flex tpl:size-4 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
384
385
  "aria-expanded": P.value,
385
- "aria-label": P.value ? w(l).mediaLibrary.collapseFolder : w(l).mediaLibrary.expandFolder,
386
- onClick: A(I, ["stop"])
387
- }, [f(w(ee), {
388
- class: b(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": P.value }]),
386
+ "aria-label": P.value ? h(d).mediaLibrary.collapseFolder : h(d).mediaLibrary.expandFolder,
387
+ onClick: A(ee, ["stop"])
388
+ }, [f(h(I), {
389
+ class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": P.value }]),
389
390
  size: 10,
390
391
  "stroke-width": 2
391
- }, null, 8, ["class"])], 8, Se)) : (y(), _("span", Ce)),
392
- x("button", {
392
+ }, null, 8, ["class"])], 8, Se)) : (r(), v("span", Ce)),
393
+ S("button", {
393
394
  type: "button",
394
395
  class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-center tpl:gap-1.5",
395
- onClick: r[0] ||= (e) => a("navigate", t.folder.id)
396
- }, [f(w(J), {
396
+ onClick: c[0] ||= (t) => u("navigate", e.folder.id)
397
+ }, [f(h(K), {
397
398
  class: "tpl:shrink-0",
398
399
  size: 14,
399
400
  "stroke-width": 1.5
400
- }), p.value ? g("", !0) : (y(), _("span", we, c(t.folder.name), 1))]),
401
- p.value ? u((y(), _("input", {
401
+ }), y.value ? g("", !0) : (r(), v("span", we, t(e.folder.name), 1))]),
402
+ y.value ? l((r(), v("input", {
402
403
  key: 2,
403
- "onUpdate:modelValue": r[1] ||= (e) => m.value = e,
404
+ "onUpdate:modelValue": c[1] ||= (e) => b.value = e,
404
405
  type: "text",
405
406
  class: "tpl:min-w-0 tpl:flex-1 tpl:rounded tpl:border tpl:px-1.5 tpl:py-0.5 tpl:text-xs tpl:outline-none",
406
407
  style: {
@@ -409,62 +410,62 @@ var ve = {
409
410
  color: "var(--tpl-text)"
410
411
  },
411
412
  autofocus: "",
412
- onKeydown: [j(R, ["enter"]), j(A(z, ["stop"]), ["escape"])],
413
- onBlur: R,
414
- onClick: r[2] ||= A(() => {}, ["stop"])
415
- }, null, 40, Te)), [[k, m.value]]) : g("", !0),
416
- p.value ? g("", !0) : (y(), _("span", {
413
+ onKeydown: [j(te, ["enter"]), j(A(ne, ["stop"]), ["escape"])],
414
+ onBlur: te,
415
+ onClick: c[2] ||= A(() => {}, ["stop"])
416
+ }, null, 40, Te)), [[k, b.value]]) : g("", !0),
417
+ y.value ? g("", !0) : (r(), v("span", {
417
418
  key: 3,
418
- class: b(["tpl:flex tpl:shrink-0 tpl:items-center tpl:gap-0.5 tpl:transition-opacity", M.value || E.value ? "tpl:opacity-100" : "tpl:opacity-0 tpl:group-hover:opacity-100 tpl:group-focus-within:opacity-100"])
419
+ class: i(["tpl:flex tpl:shrink-0 tpl:items-center tpl:gap-0.5 tpl:transition-opacity", M.value || E.value ? "tpl:opacity-100" : "tpl:opacity-0 tpl:group-hover:opacity-100 tpl:group-focus-within:opacity-100"])
419
420
  }, [
420
- O.value && t.canCreateFolder ? (y(), _("button", {
421
+ O.value && e.canCreateFolder ? (r(), v("button", {
421
422
  key: 0,
422
423
  type: "button",
423
424
  class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
424
- title: w(l).mediaLibrary.addSubfolder,
425
- "aria-label": w(l).mediaLibrary.addSubfolder,
426
- onClick: A(B, ["stop"])
427
- }, [f(w(W), {
425
+ title: h(d).mediaLibrary.addSubfolder,
426
+ "aria-label": h(d).mediaLibrary.addSubfolder,
427
+ onClick: A(R, ["stop"])
428
+ }, [f(h(B), {
428
429
  size: 12,
429
430
  "stroke-width": 2
430
431
  })], 8, Ee)) : g("", !0),
431
- t.canRenameFolder ? (y(), _("button", {
432
+ e.canRenameFolder ? (r(), v("button", {
432
433
  key: 1,
433
434
  type: "button",
434
435
  class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
435
- title: w(l).mediaLibrary.renameFolder,
436
- "aria-label": w(l).mediaLibrary.renameFolder,
436
+ title: h(d).mediaLibrary.renameFolder,
437
+ "aria-label": h(d).mediaLibrary.renameFolder,
437
438
  onClick: A(L, ["stop"])
438
- }, [f(w(U), {
439
+ }, [f(h(z), {
439
440
  size: 12,
440
441
  "stroke-width": 2
441
442
  })], 8, De)) : g("", !0),
442
- t.canDeleteFolder ? (y(), _("button", {
443
+ e.canDeleteFolder ? (r(), v("button", {
443
444
  key: 2,
444
445
  type: "button",
445
446
  "data-testid": "media-folder-delete",
446
447
  class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
447
- title: E.value ? w(l).mediaLibrary.deleteFolderConfirm : w(l).mediaLibrary.deleteFolder,
448
- "aria-label": E.value ? w(l).mediaLibrary.deleteFolderConfirm : w(l).mediaLibrary.deleteFolder,
449
- onClick: A(ne, ["stop"])
450
- }, [f(w(oe), {
448
+ title: E.value ? h(d).mediaLibrary.deleteFolderConfirm : h(d).mediaLibrary.deleteFolder,
449
+ "aria-label": E.value ? h(d).mediaLibrary.deleteFolderConfirm : h(d).mediaLibrary.deleteFolder,
450
+ onClick: A(U, ["stop"])
451
+ }, [f(h(H), {
451
452
  size: 12,
452
453
  "stroke-width": 2,
453
454
  style: { color: "var(--tpl-danger)" }
454
455
  })], 8, Oe)) : g("", !0)
455
456
  ], 2))
456
- ], 36), P.value ? (y(), _("div", ke, [(y(!0), _(S, null, s(t.folder.children, (e) => (y(), T(i, {
457
- key: e.id,
458
- folder: e,
459
- "current-folder-id": t.currentFolderId,
460
- depth: t.depth + 1,
461
- "can-create-folder": t.canCreateFolder,
462
- "can-rename-folder": t.canRenameFolder,
463
- "can-delete-folder": t.canDeleteFolder,
464
- onNavigate: r[3] ||= (e) => a("navigate", e),
465
- onCreateFolder: r[4] ||= (e, t) => a("createFolder", e, t),
466
- onRenameFolder: r[5] ||= (e, t) => a("renameFolder", e, t),
467
- onDeleteFolder: r[6] ||= (e) => a("deleteFolder", e)
457
+ ], 36), P.value ? (r(), v("div", ke, [(r(!0), v(w, null, o(e.folder.children, (t) => (r(), T(p, {
458
+ key: t.id,
459
+ folder: t,
460
+ "current-folder-id": e.currentFolderId,
461
+ depth: e.depth + 1,
462
+ "can-create-folder": e.canCreateFolder,
463
+ "can-rename-folder": e.canRenameFolder,
464
+ "can-delete-folder": e.canDeleteFolder,
465
+ onNavigate: c[3] ||= (e) => u("navigate", e),
466
+ onCreateFolder: c[4] ||= (e, t) => u("createFolder", e, t),
467
+ onRenameFolder: c[5] ||= (e, t) => u("renameFolder", e, t),
468
+ onDeleteFolder: c[6] ||= (e) => u("deleteFolder", e)
468
469
  }, null, 8, [
469
470
  "folder",
470
471
  "current-folder-id",
@@ -472,12 +473,12 @@ var ve = {
472
473
  "can-create-folder",
473
474
  "can-rename-folder",
474
475
  "can-delete-folder"
475
- ]))), 128)), v.value ? (y(), _("div", {
476
+ ]))), 128)), x.value ? (r(), v("div", {
476
477
  key: 0,
477
- style: o({ paddingLeft: `${(t.depth + 1) * 16 + 8}px` }),
478
+ style: s({ paddingLeft: `${(e.depth + 1) * 16 + 8}px` }),
478
479
  class: "tpl:py-1.5 tpl:pr-2"
479
- }, [u(x("input", {
480
- "onUpdate:modelValue": r[7] ||= (e) => C.value = e,
480
+ }, [l(S("input", {
481
+ "onUpdate:modelValue": c[7] ||= (e) => C.value = e,
481
482
  type: "text",
482
483
  class: "tpl:w-full tpl:rounded tpl:border tpl:px-2 tpl:py-1 tpl:text-xs tpl:outline-none",
483
484
  style: {
@@ -485,9 +486,9 @@ var ve = {
485
486
  "background-color": "var(--tpl-bg)",
486
487
  color: "var(--tpl-text)"
487
488
  },
488
- placeholder: w(l).mediaLibrary.subfolderName,
489
+ placeholder: h(d).mediaLibrary.subfolderName,
489
490
  autofocus: "",
490
- onKeydown: [j(V, ["enter"]), j(A(te, ["stop"]), ["escape"])],
491
+ onKeydown: [j(V, ["enter"]), j(A(re, ["stop"]), ["escape"])],
491
492
  onBlur: V
492
493
  }, null, 40, Ae), [[k, C.value]])], 4)) : g("", !0)])) : g("", !0)]);
493
494
  };
@@ -498,7 +499,7 @@ var ve = {
498
499
  }, Ne = {
499
500
  key: 0,
500
501
  class: "tpl:px-3 tpl:py-2"
501
- }, Pe = ["placeholder", "onKeydown"], Fe = /* @__PURE__ */ D({
502
+ }, Pe = ["placeholder", "onKeydown"], Fe = /* @__PURE__ */ O({
502
503
  __name: "MediaFolderTree",
503
504
  props: {
504
505
  folders: {},
@@ -516,41 +517,41 @@ var ve = {
516
517
  "deleteFolder",
517
518
  "showFrequentlyUsed"
518
519
  ],
519
- setup(t, { emit: n }) {
520
- let r = n, { t: i } = Q(), a = e(!1), l = e("");
520
+ setup(e, { emit: n }) {
521
+ let i = n, { t: a } = Z(), c = _(!1), u = _("");
521
522
  function d() {
522
- a.value = !0, l.value = "";
523
+ c.value = !0, u.value = "";
523
524
  }
524
525
  function p() {
525
- l.value.trim() && r("createFolder", l.value.trim()), a.value = !1, l.value = "";
526
+ u.value.trim() && i("createFolder", u.value.trim()), c.value = !1, u.value = "";
526
527
  }
527
528
  function m() {
528
- a.value = !1, l.value = "";
529
+ c.value = !1, u.value = "";
529
530
  }
530
- return (e, n) => (y(), _("div", Me, [
531
- x("button", {
531
+ return (n, _) => (r(), v("div", Me, [
532
+ S("button", {
532
533
  class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
533
- style: o({
534
- backgroundColor: t.viewMode === "files" && t.currentFolderId === null ? "var(--tpl-bg-active)" : "transparent",
535
- color: t.viewMode === "files" && t.currentFolderId === null ? "var(--tpl-primary)" : "var(--tpl-text)"
534
+ style: s({
535
+ backgroundColor: e.viewMode === "files" && e.currentFolderId === null ? "var(--tpl-bg-active)" : "transparent",
536
+ color: e.viewMode === "files" && e.currentFolderId === null ? "var(--tpl-primary)" : "var(--tpl-text)"
536
537
  }),
537
- onClick: n[0] ||= (e) => r("navigate", null)
538
- }, [f(w(q), {
538
+ onClick: _[0] ||= (e) => i("navigate", null)
539
+ }, [f(h(G), {
539
540
  size: 14,
540
541
  "stroke-width": 1.5
541
- }), v(" " + c(w(i).mediaLibrary.allFiles), 1)], 4),
542
- (y(!0), _(S, null, s(t.folders, (e) => (y(), T(je, {
543
- key: e.id,
544
- folder: e,
545
- "current-folder-id": t.currentFolderId,
542
+ }), y(" " + t(h(a).mediaLibrary.allFiles), 1)], 4),
543
+ (r(!0), v(w, null, o(e.folders, (t) => (r(), T(je, {
544
+ key: t.id,
545
+ folder: t,
546
+ "current-folder-id": e.currentFolderId,
546
547
  depth: 0,
547
- "can-create-folder": t.canCreateFolder,
548
- "can-rename-folder": t.canRenameFolder,
549
- "can-delete-folder": t.canDeleteFolder,
550
- onNavigate: n[1] ||= (e) => r("navigate", e),
551
- onCreateFolder: n[2] ||= (e, t) => r("createFolder", e, t),
552
- onRenameFolder: n[3] ||= (e, t) => r("renameFolder", e, t),
553
- onDeleteFolder: n[4] ||= (e) => r("deleteFolder", e)
548
+ "can-create-folder": e.canCreateFolder,
549
+ "can-rename-folder": e.canRenameFolder,
550
+ "can-delete-folder": e.canDeleteFolder,
551
+ onNavigate: _[1] ||= (e) => i("navigate", e),
552
+ onCreateFolder: _[2] ||= (e, t) => i("createFolder", e, t),
553
+ onRenameFolder: _[3] ||= (e, t) => i("renameFolder", e, t),
554
+ onDeleteFolder: _[4] ||= (e) => i("deleteFolder", e)
554
555
  }, null, 8, [
555
556
  "folder",
556
557
  "current-folder-id",
@@ -558,8 +559,8 @@ var ve = {
558
559
  "can-rename-folder",
559
560
  "can-delete-folder"
560
561
  ]))), 128)),
561
- a.value ? (y(), _("div", Ne, [u(x("input", {
562
- "onUpdate:modelValue": n[5] ||= (e) => l.value = e,
562
+ c.value ? (r(), v("div", Ne, [l(S("input", {
563
+ "onUpdate:modelValue": _[5] ||= (e) => u.value = e,
563
564
  type: "text",
564
565
  class: "tpl:w-full tpl:rounded tpl:border tpl:px-2 tpl:py-1 tpl:text-xs tpl:outline-none",
565
566
  style: {
@@ -567,42 +568,42 @@ var ve = {
567
568
  "background-color": "var(--tpl-bg)",
568
569
  color: "var(--tpl-text)"
569
570
  },
570
- placeholder: w(i).mediaLibrary.folderName,
571
+ placeholder: h(a).mediaLibrary.folderName,
571
572
  autofocus: "",
572
573
  onKeydown: [j(p, ["enter"]), j(A(m, ["stop"]), ["escape"])],
573
574
  onBlur: p
574
- }, null, 40, Pe), [[k, l.value]])])) : g("", !0),
575
- !a.value && t.canCreateFolder ? (y(), _("button", {
575
+ }, null, 40, Pe), [[k, u.value]])])) : g("", !0),
576
+ !c.value && e.canCreateFolder ? (r(), v("button", {
576
577
  key: 1,
577
578
  class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:transition-all tpl:duration-150",
578
579
  style: { color: "var(--tpl-text-muted)" },
579
580
  onClick: d
580
- }, [f(w(W), {
581
+ }, [f(h(B), {
581
582
  size: 14,
582
583
  "stroke-width": 1.5
583
- }), v(" " + c(w(i).mediaLibrary.newFolder), 1)])) : g("", !0),
584
- n[7] ||= x("div", { class: "tpl:flex-1" }, null, -1),
585
- t.hasFrequentlyUsed ? (y(), _("button", {
584
+ }), y(" " + t(h(a).mediaLibrary.newFolder), 1)])) : g("", !0),
585
+ _[7] ||= S("div", { class: "tpl:flex-1" }, null, -1),
586
+ e.hasFrequentlyUsed ? (r(), v("button", {
586
587
  key: 2,
587
588
  "data-testid": "media-frequently-used",
588
589
  class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:border-t tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
589
- style: o({
590
+ style: s({
590
591
  borderColor: "var(--tpl-border)",
591
- backgroundColor: t.viewMode === "frequently-used" ? "var(--tpl-bg-active)" : "transparent",
592
- color: t.viewMode === "frequently-used" ? "var(--tpl-primary)" : "var(--tpl-text)"
592
+ backgroundColor: e.viewMode === "frequently-used" ? "var(--tpl-bg-active)" : "transparent",
593
+ color: e.viewMode === "frequently-used" ? "var(--tpl-primary)" : "var(--tpl-text)"
593
594
  }),
594
- onClick: n[6] ||= (e) => r("showFrequentlyUsed")
595
- }, [f(w(le), {
595
+ onClick: _[6] ||= (e) => i("showFrequentlyUsed")
596
+ }, [f(h(de), {
596
597
  size: 14,
597
598
  "stroke-width": 1.5
598
- }), v(" " + c(w(i).mediaLibrary.frequentlyUsed), 1)], 4)) : g("", !0)
599
+ }), y(" " + t(h(a).mediaLibrary.frequentlyUsed), 1)], 4)) : g("", !0)
599
600
  ]));
600
601
  }
601
- }), Ie = /* @__PURE__ */ D({
602
+ }), Ie = /* @__PURE__ */ O({
602
603
  __name: "MediaFileIcon",
603
604
  props: { mimeType: {} },
604
605
  setup(e) {
605
- let t = e, n = {
606
+ let n = e, i = {
606
607
  "application/pdf": {
607
608
  label: "PDF",
608
609
  color: "var(--tpl-danger)",
@@ -693,16 +694,16 @@ var ve = {
693
694
  bgColor: "var(--tpl-secondary-light)",
694
695
  icon: "audio"
695
696
  }
696
- }, r = {
697
+ }, a = {
697
698
  label: "FILE",
698
699
  color: "var(--tpl-text-muted)",
699
700
  bgColor: "var(--tpl-bg-hover)",
700
701
  icon: "document"
701
- }, i = h(() => n[t.mimeType] ?? r);
702
- return (e, t) => (y(), _("div", {
702
+ }, o = m(() => i[n.mimeType] ?? a);
703
+ return (e, n) => (r(), v("div", {
703
704
  class: "tpl:flex tpl:aspect-square tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2",
704
- style: o({ backgroundColor: i.value.bgColor })
705
- }, [i.value.icon === "document" ? (y(), _("svg", {
705
+ style: s({ backgroundColor: o.value.bgColor })
706
+ }, [o.value.icon === "document" ? (r(), v("svg", {
706
707
  key: 0,
707
708
  width: "60",
708
709
  height: "60",
@@ -710,23 +711,23 @@ var ve = {
710
711
  fill: "none",
711
712
  stroke: "currentColor",
712
713
  "stroke-width": "1.5",
713
- style: o({ color: i.value.color })
714
- }, [...t[0] ||= [
715
- x("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }, null, -1),
716
- x("polyline", { points: "14 2 14 8 20 8" }, null, -1),
717
- x("line", {
714
+ style: s({ color: o.value.color })
715
+ }, [...n[0] ||= [
716
+ S("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }, null, -1),
717
+ S("polyline", { points: "14 2 14 8 20 8" }, null, -1),
718
+ S("line", {
718
719
  x1: "8",
719
720
  y1: "13",
720
721
  x2: "16",
721
722
  y2: "13"
722
723
  }, null, -1),
723
- x("line", {
724
+ S("line", {
724
725
  x1: "8",
725
726
  y1: "17",
726
727
  x2: "12",
727
728
  y2: "17"
728
729
  }, null, -1)
729
- ]], 4)) : i.value.icon === "video" ? (y(), _("svg", {
730
+ ]], 4)) : o.value.icon === "video" ? (r(), v("svg", {
730
731
  key: 1,
731
732
  width: "40",
732
733
  height: "40",
@@ -734,18 +735,18 @@ var ve = {
734
735
  fill: "none",
735
736
  stroke: "currentColor",
736
737
  "stroke-width": "1.5",
737
- style: o({ color: i.value.color })
738
- }, [...t[1] ||= [x("rect", {
738
+ style: s({ color: o.value.color })
739
+ }, [...n[1] ||= [S("rect", {
739
740
  x: "2",
740
741
  y: "4",
741
742
  width: "20",
742
743
  height: "16",
743
744
  rx: "2"
744
- }, null, -1), x("polygon", {
745
+ }, null, -1), S("polygon", {
745
746
  points: "10,8 16,12 10,16",
746
747
  fill: "currentColor",
747
748
  stroke: "none"
748
- }, null, -1)]], 4)) : (y(), _("svg", {
749
+ }, null, -1)]], 4)) : (r(), v("svg", {
749
750
  key: 2,
750
751
  width: "40",
751
752
  height: "40",
@@ -753,23 +754,23 @@ var ve = {
753
754
  fill: "none",
754
755
  stroke: "currentColor",
755
756
  "stroke-width": "1.5",
756
- style: o({ color: i.value.color })
757
- }, [...t[2] ||= [
758
- x("path", { d: "M9 18V5l12-2v13" }, null, -1),
759
- x("circle", {
757
+ style: s({ color: o.value.color })
758
+ }, [...n[2] ||= [
759
+ S("path", { d: "M9 18V5l12-2v13" }, null, -1),
760
+ S("circle", {
760
761
  cx: "6",
761
762
  cy: "18",
762
763
  r: "3"
763
764
  }, null, -1),
764
- x("circle", {
765
+ S("circle", {
765
766
  cx: "18",
766
767
  cy: "16",
767
768
  r: "3"
768
769
  }, null, -1)
769
- ]], 4)), x("span", {
770
+ ]], 4)), S("span", {
770
771
  class: "tpl:text-xs tpl:font-bold tpl:tracking-wider",
771
- style: o({ color: i.value.color })
772
- }, c(i.value.label), 5)], 4));
772
+ style: s({ color: o.value.color })
773
+ }, t(o.value.label), 5)], 4));
773
774
  }
774
775
  });
775
776
  // ../media-library/src/utils/formatAbsoluteDate.ts
@@ -869,7 +870,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
869
870
  }, ft = {
870
871
  key: 4,
871
872
  class: "tpl:flex tpl:justify-center tpl:py-4"
872
- }, pt = /*#__PURE__*/ K(/* @__PURE__ */ D({
873
+ }, pt = /*#__PURE__*/ N(/* @__PURE__ */ O({
873
874
  __name: "MediaGrid",
874
875
  props: {
875
876
  items: {},
@@ -890,8 +891,8 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
890
891
  "replace",
891
892
  "confirm"
892
893
  ],
893
- setup(n, { emit: r }) {
894
- let i = n, a = r, { isAcceptedMimeType: l, isImageMimeType: u } = he();
894
+ setup(e, { emit: n }) {
895
+ let a = e, c = n, { isAcceptedMimeType: l, isImageMimeType: u } = Q();
895
896
  function d(e) {
896
897
  return e.mimeType ?? "";
897
898
  }
@@ -899,130 +900,130 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
899
900
  return e.thumbnailUrl ?? e.url;
900
901
  }
901
902
  function m(e) {
902
- return !i.accept || i.accept.length === 0 || l(d(e), i.accept);
903
+ return !a.accept || a.accept.length === 0 || l(d(e), a.accept);
903
904
  }
904
- function h(e) {
905
- return i.canUpdate === !0 && e.canUpdate !== !1;
905
+ function b(e) {
906
+ return a.canUpdate === !0 && e.canUpdate !== !1;
906
907
  }
907
- function C(e) {
908
- return i.canReplace === !0 && e.canUpdate !== !1;
908
+ function x(e) {
909
+ return a.canReplace === !0 && e.canUpdate !== !1;
909
910
  }
910
- function E(e, t) {
911
- t.metaKey || t.ctrlKey ? a("toggle", e.id) : a("select", e);
911
+ function C(e, t) {
912
+ t.metaKey || t.ctrlKey ? c("toggle", e.id) : c("select", e);
912
913
  }
913
- function D(e) {
914
- m(e) && a("confirm", e);
914
+ function E(e) {
915
+ m(e) && c("confirm", e);
915
916
  }
916
917
  function O(e, t) {
917
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), a("select", e));
918
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), c("select", e));
918
919
  }
919
920
  function k(e) {
920
- return i.selectedIds.has(e.id);
921
+ return a.selectedIds.has(e.id);
921
922
  }
922
923
  function j(e) {
923
924
  return k(e) ? "tpl:opacity-100" : "tpl:opacity-0 tpl:group-hover:opacity-100 tpl:group-focus-within:opacity-100";
924
925
  }
925
- let { t: M } = Q(), N = t(Z, null), P = e(null);
926
- R(P, ([{ isIntersecting: e }]) => {
927
- e && i.hasMore && !i.isLoading && a("loadMore");
926
+ let { t: M } = Z(), N = D(X, null), P = _(null);
927
+ ce(P, ([{ isIntersecting: e }]) => {
928
+ e && a.hasMore && !a.isLoading && c("loadMore");
928
929
  }, { threshold: .1 });
929
- function F(e) {
930
+ function I(e) {
930
931
  return Le(e, N?.value, {
931
932
  year: "numeric",
932
933
  month: "short",
933
934
  day: "numeric"
934
935
  });
935
936
  }
936
- return (e, t) => (y(), _("div", ze, [
937
- n.isLoading && n.items.length === 0 ? (y(), _("div", {
937
+ return (n, a) => (r(), v("div", ze, [
938
+ e.isLoading && e.items.length === 0 ? (r(), v("div", {
938
939
  key: 0,
939
940
  role: "status",
940
941
  "aria-busy": "true",
941
- "aria-label": w(M).mediaLibrary.loading,
942
- class: b(n.layout === "list" ? "tpl:flex tpl:flex-col tpl:gap-1" : "tpl:grid tpl:grid-cols-4 tpl:gap-3")
943
- }, [(y(), _(S, null, s(8, (e) => x("div", {
944
- key: e,
945
- class: b(["tpl-pulse tpl:rounded-lg", n.layout === "list" ? "tpl:h-12" : "tpl:aspect-square"]),
942
+ "aria-label": h(M).mediaLibrary.loading,
943
+ class: i(e.layout === "list" ? "tpl:flex tpl:flex-col tpl:gap-1" : "tpl:grid tpl:grid-cols-4 tpl:gap-3")
944
+ }, [(r(), v(w, null, o(8, (t) => S("div", {
945
+ key: t,
946
+ class: i(["tpl-pulse tpl:rounded-lg", e.layout === "list" ? "tpl:h-12" : "tpl:aspect-square"]),
946
947
  style: { "background-color": "var(--tpl-bg-hover)" },
947
948
  "aria-hidden": "true"
948
- }, null, 2)), 64))], 10, Be)) : n.items.length === 0 ? (y(), _("div", Ve, [f(w(q), {
949
+ }, null, 2)), 64))], 10, Be)) : e.items.length === 0 ? (r(), v("div", Ve, [f(h(G), {
949
950
  class: "tpl:mb-3",
950
951
  size: 40,
951
952
  "stroke-width": 1,
952
953
  style: { color: "var(--tpl-text-dim)" }
953
- }), x("p", He, c(n.searchQuery ? w(M).mediaLibrary.noSearchResults : w(M).mediaLibrary.noFiles), 1)])) : n.layout === "list" ? (y(), _("div", {
954
+ }), S("p", He, t(e.searchQuery ? h(M).mediaLibrary.noSearchResults : h(M).mediaLibrary.noFiles), 1)])) : e.layout === "list" ? (r(), v("div", {
954
955
  key: 3,
955
956
  role: "listbox",
956
- "aria-label": w(M).mediaLibrary.filesListAriaLabel,
957
+ "aria-label": h(M).mediaLibrary.filesListAriaLabel,
957
958
  "aria-multiselectable": "true",
958
959
  class: "tpl:flex tpl:flex-col tpl:gap-1"
959
- }, [(y(!0), _(S, null, s(n.items, (e) => (y(), _("div", {
960
+ }, [(r(!0), v(w, null, o(e.items, (e) => (r(), v("div", {
960
961
  key: e.id,
961
962
  role: "option",
962
963
  tabindex: "0",
963
964
  "data-testid": "media-library-item",
964
- class: b(["tpl-media-list-item tpl:group tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-150", [!m(e) && !k(e) ? "tpl:opacity-60" : ""]]),
965
+ class: i(["tpl-media-list-item tpl:group tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-150", [!m(e) && !k(e) ? "tpl:opacity-60" : ""]]),
965
966
  "data-media-id": e.id,
966
967
  "aria-selected": k(e),
967
968
  "aria-label": e.filename || e.url,
968
- style: o({ backgroundColor: k(e) ? "var(--tpl-bg-hover)" : "transparent" }),
969
- onClick: (t) => E(e, t),
970
- onDblclick: (t) => D(e),
969
+ style: s({ backgroundColor: k(e) ? "var(--tpl-bg-hover)" : "transparent" }),
970
+ onClick: (t) => C(e, t),
971
+ onDblclick: (t) => E(e),
971
972
  onKeydown: (t) => O(e, t)
972
973
  }, [
973
- x("div", rt, [w(u)(d(e)) ? (y(), _("img", {
974
+ S("div", rt, [h(u)(d(e)) ? (r(), v("img", {
974
975
  key: 0,
975
976
  src: p(e),
976
977
  alt: e.filename || e.url,
977
978
  class: "tpl:size-full tpl:object-cover",
978
979
  loading: "lazy"
979
- }, null, 8, it)) : (y(), _("div", at, [f(Ie, { "mime-type": d(e) }, null, 8, ["mime-type"])]))]),
980
- x("div", ot, [x("p", st, c(e.filename || e.url), 1), x("p", ct, [
981
- e.size == null ? g("", !0) : (y(), _(S, { key: 0 }, [v(c(w($)(e.size)), 1)], 64)),
982
- e.createdAt ? (y(), _(S, { key: 1 }, [e.size == null ? g("", !0) : (y(), _(S, { key: 0 }, [v(" · ")], 64)), v(" " + c(F(e.createdAt)), 1)], 64)) : g("", !0),
983
- w(u)(d(e)) && e.width && e.height ? (y(), _(S, { key: 2 }, [v(" · " + c(e.width) + "×" + c(e.height), 1)], 64)) : g("", !0)
980
+ }, null, 8, it)) : (r(), v("div", at, [f(Ie, { "mime-type": d(e) }, null, 8, ["mime-type"])]))]),
981
+ S("div", ot, [S("p", st, t(e.filename || e.url), 1), S("p", ct, [
982
+ e.size == null ? g("", !0) : (r(), v(w, { key: 0 }, [y(t(h($)(e.size)), 1)], 64)),
983
+ e.createdAt ? (r(), v(w, { key: 1 }, [e.size == null ? g("", !0) : (r(), v(w, { key: 0 }, [y(" · ")], 64)), y(" " + t(I(e.createdAt)), 1)], 64)) : g("", !0),
984
+ h(u)(d(e)) && e.width && e.height ? (r(), v(w, { key: 2 }, [y(" · " + t(e.width) + "×" + t(e.height), 1)], 64)) : g("", !0)
984
985
  ])]),
985
- x("div", { class: b(["tpl:flex tpl:gap-1 tpl:transition-opacity tpl:duration-150", j(e)]) }, [h(e) ? (y(), _("button", {
986
+ S("div", { class: i(["tpl:flex tpl:gap-1 tpl:transition-opacity tpl:duration-150", j(e)]) }, [b(e) ? (r(), v("button", {
986
987
  key: 0,
987
988
  type: "button",
988
989
  "data-testid": "media-edit",
989
990
  class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded",
990
991
  style: { color: "var(--tpl-text-muted)" },
991
- title: w(M).mediaLibrary.editFile,
992
- "aria-label": w(M).mediaLibrary.editFile,
993
- onClick: A((t) => a("edit", e), ["stop"])
994
- }, [f(w(U), {
992
+ title: h(M).mediaLibrary.editFile,
993
+ "aria-label": h(M).mediaLibrary.editFile,
994
+ onClick: A((t) => c("edit", e), ["stop"])
995
+ }, [f(h(z), {
995
996
  size: 12,
996
997
  "stroke-width": 2
997
- })], 8, lt)) : g("", !0), C(e) ? (y(), _("button", {
998
+ })], 8, lt)) : g("", !0), x(e) ? (r(), v("button", {
998
999
  key: 1,
999
1000
  type: "button",
1000
1001
  "data-testid": "media-replace",
1001
1002
  class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded",
1002
1003
  style: { color: "var(--tpl-text-muted)" },
1003
- title: w(M).mediaLibrary.replaceFile,
1004
- "aria-label": w(M).mediaLibrary.replaceFile,
1005
- onClick: A((t) => a("replace", e), ["stop"])
1006
- }, [f(w(G), {
1004
+ title: h(M).mediaLibrary.replaceFile,
1005
+ "aria-label": h(M).mediaLibrary.replaceFile,
1006
+ onClick: A((t) => c("replace", e), ["stop"])
1007
+ }, [f(h(V), {
1007
1008
  size: 12,
1008
1009
  "stroke-width": 2
1009
1010
  })], 8, ut)) : g("", !0)], 2),
1010
- k(e) ? (y(), _("div", dt, [f(w(V), {
1011
+ k(e) ? (r(), v("div", dt, [f(h(F), {
1011
1012
  size: 12,
1012
1013
  "stroke-width": 3
1013
1014
  })])) : g("", !0)
1014
- ], 46, nt))), 128))], 8, tt)) : (y(), _("div", {
1015
+ ], 46, nt))), 128))], 8, tt)) : (r(), v("div", {
1015
1016
  key: 2,
1016
1017
  role: "listbox",
1017
- "aria-label": w(M).mediaLibrary.filesListAriaLabel,
1018
+ "aria-label": h(M).mediaLibrary.filesListAriaLabel,
1018
1019
  "aria-multiselectable": "true",
1019
1020
  class: "tpl:grid tpl:grid-cols-4 tpl:gap-3"
1020
- }, [(y(!0), _(S, null, s(n.items, (e) => (y(), _("div", {
1021
+ }, [(r(!0), v(w, null, o(e.items, (e) => (r(), v("div", {
1021
1022
  key: e.id,
1022
1023
  role: "option",
1023
1024
  tabindex: "0",
1024
1025
  "data-testid": "media-library-item",
1025
- class: b(["tpl-media-item tpl:group tpl:relative tpl:overflow-hidden tpl:rounded-lg tpl:border-2 tpl:transition-all tpl:duration-150", [
1026
+ class: i(["tpl-media-item tpl:group tpl:relative tpl:overflow-hidden tpl:rounded-lg tpl:border-2 tpl:transition-all tpl:duration-150", [
1026
1027
  "tpl:cursor-pointer",
1027
1028
  !m(e) && !k(e) ? "tpl:opacity-60" : "",
1028
1029
  k(e) ? "tpl-media-item--selected" : ""
@@ -1030,26 +1031,26 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1030
1031
  "data-media-id": e.id,
1031
1032
  "aria-selected": k(e),
1032
1033
  "aria-label": e.filename || e.url,
1033
- style: o({
1034
+ style: s({
1034
1035
  borderColor: k(e) ? "var(--tpl-primary)" : "transparent",
1035
1036
  backgroundColor: !m(e) && !k(e) ? "var(--tpl-bg)" : "var(--tpl-bg-hover)"
1036
1037
  }),
1037
- onClick: (t) => E(e, t),
1038
- onDblclick: (t) => D(e),
1038
+ onClick: (t) => C(e, t),
1039
+ onDblclick: (t) => E(e),
1039
1040
  onKeydown: (t) => O(e, t)
1040
1041
  }, [
1041
- x("div", Ge, [w(u)(d(e)) ? (y(), _("img", {
1042
+ S("div", Ge, [h(u)(d(e)) ? (r(), v("img", {
1042
1043
  key: 0,
1043
1044
  src: p(e),
1044
1045
  alt: e.filename || e.url,
1045
1046
  class: "tpl:size-full tpl:object-cover",
1046
1047
  loading: "lazy"
1047
- }, null, 8, Ke)) : (y(), T(Ie, {
1048
+ }, null, 8, Ke)) : (r(), T(Ie, {
1048
1049
  key: 1,
1049
1050
  "mime-type": d(e)
1050
1051
  }, null, 8, ["mime-type"]))]),
1051
- x("div", qe, [x("p", Je, c(e.filename || e.url), 1), x("p", Ye, [e.size == null ? g("", !0) : (y(), _("span", Xe, c(w($)(e.size)), 1)), w(u)(d(e)) && e.width && e.height ? (y(), _("span", Ze, c(e.width) + "×" + c(e.height), 1)) : g("", !0)])]),
1052
- x("div", { class: b(["tpl:absolute tpl:top-1.5 tpl:left-1.5 tpl:flex tpl:gap-1 tpl:transition-opacity tpl:duration-150", j(e)]) }, [h(e) ? (y(), _("button", {
1052
+ S("div", qe, [S("p", Je, t(e.filename || e.url), 1), S("p", Ye, [e.size == null ? g("", !0) : (r(), v("span", Xe, t(h($)(e.size)), 1)), h(u)(d(e)) && e.width && e.height ? (r(), v("span", Ze, t(e.width) + "×" + t(e.height), 1)) : g("", !0)])]),
1053
+ S("div", { class: i(["tpl:absolute tpl:top-1.5 tpl:left-1.5 tpl:flex tpl:gap-1 tpl:transition-opacity tpl:duration-150", j(e)]) }, [b(e) ? (r(), v("button", {
1053
1054
  key: 0,
1054
1055
  type: "button",
1055
1056
  "data-testid": "media-edit",
@@ -1058,13 +1059,13 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1058
1059
  "background-color": "var(--tpl-overlay)",
1059
1060
  color: "var(--tpl-on-primary)"
1060
1061
  },
1061
- title: w(M).mediaLibrary.editFile,
1062
- "aria-label": w(M).mediaLibrary.editFile,
1063
- onClick: A((t) => a("edit", e), ["stop"])
1064
- }, [f(w(U), {
1062
+ title: h(M).mediaLibrary.editFile,
1063
+ "aria-label": h(M).mediaLibrary.editFile,
1064
+ onClick: A((t) => c("edit", e), ["stop"])
1065
+ }, [f(h(z), {
1065
1066
  size: 11,
1066
1067
  "stroke-width": 2
1067
- })], 8, Qe)) : g("", !0), C(e) ? (y(), _("button", {
1068
+ })], 8, Qe)) : g("", !0), x(e) ? (r(), v("button", {
1068
1069
  key: 1,
1069
1070
  type: "button",
1070
1071
  "data-testid": "media-replace",
@@ -1073,24 +1074,24 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1073
1074
  "background-color": "var(--tpl-overlay)",
1074
1075
  color: "var(--tpl-on-primary)"
1075
1076
  },
1076
- title: w(M).mediaLibrary.replaceFile,
1077
- "aria-label": w(M).mediaLibrary.replaceFile,
1078
- onClick: A((t) => a("replace", e), ["stop"])
1079
- }, [f(w(G), {
1077
+ title: h(M).mediaLibrary.replaceFile,
1078
+ "aria-label": h(M).mediaLibrary.replaceFile,
1079
+ onClick: A((t) => c("replace", e), ["stop"])
1080
+ }, [f(h(V), {
1080
1081
  size: 11,
1081
1082
  "stroke-width": 2
1082
1083
  })], 8, $e)) : g("", !0)], 2),
1083
- k(e) ? (y(), _("div", et, [f(w(V), {
1084
+ k(e) ? (r(), v("div", et, [f(h(F), {
1084
1085
  size: 12,
1085
1086
  "stroke-width": 3
1086
1087
  })])) : g("", !0)
1087
1088
  ], 46, We))), 128))], 8, Ue)),
1088
- x("div", {
1089
+ S("div", {
1089
1090
  ref_key: "sentinelRef",
1090
1091
  ref: P,
1091
1092
  class: "tpl:h-4"
1092
1093
  }, null, 512),
1093
- n.isLoading && n.items.length > 0 ? (y(), _("div", ft, [f(w(H), {
1094
+ e.isLoading && e.items.length > 0 ? (r(), v("div", ft, [f(h(R), {
1094
1095
  class: "tpl-spinner",
1095
1096
  size: 20,
1096
1097
  "stroke-width": 2,
@@ -1117,7 +1118,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1117
1118
  }, yt = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, bt = ["disabled"], xt = ["disabled"], St = {
1118
1119
  key: 0,
1119
1120
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
1120
- }, Ct = { key: 1 }, wt = /* @__PURE__ */ D({
1121
+ }, Ct = { key: 1 }, wt = /* @__PURE__ */ O({
1121
1122
  __name: "MediaImportUrlModal",
1122
1123
  props: {
1123
1124
  visible: { type: Boolean },
@@ -1125,24 +1126,24 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1125
1126
  error: {}
1126
1127
  },
1127
1128
  emits: ["import", "close"],
1128
- setup(n, { emit: i }) {
1129
- let a = n, o = i, { t: s } = Q(), l = t(fe, null), d = t(X, e(null)), m = e("");
1130
- O(() => a.visible, (e) => {
1131
- e && (m.value = "");
1129
+ setup(n, { emit: a }) {
1130
+ let o = n, s = a, { t: u } = Z(), d = D(Y, null), b = D(J, _(null)), x = _("");
1131
+ e(() => o.visible, (e) => {
1132
+ e && (x.value = "");
1132
1133
  });
1133
- function S() {
1134
- let e = m.value.trim();
1135
- e && !a.isImporting && o("import", e);
1136
- }
1137
1134
  function C() {
1138
- a.isImporting || o("close");
1135
+ let e = x.value.trim();
1136
+ e && !o.isImporting && s("import", e);
1139
1137
  }
1140
- let E = e(null);
1141
- _e(E, h(() => a.visible));
1142
- function D(e) {
1143
- e.stopPropagation(), e.key === "Enter" && (e.preventDefault(), S()), e.key === "Escape" && C();
1138
+ function w() {
1139
+ o.isImporting || s("close");
1144
1140
  }
1145
- return (e, t) => (y(), T(p, { to: w(d) || "body" }, [f(M, {
1141
+ let E = _(null);
1142
+ _e(E, m(() => o.visible));
1143
+ function O(e) {
1144
+ e.stopPropagation(), e.key === "Enter" && (e.preventDefault(), C()), e.key === "Escape" && w();
1145
+ }
1146
+ return (e, a) => (r(), T(p, { to: h(b) || "body" }, [f(M, {
1146
1147
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
1147
1148
  "enter-from-class": "tpl:opacity-0",
1148
1149
  "enter-to-class": "tpl:opacity-100",
@@ -1150,14 +1151,14 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1150
1151
  "leave-from-class": "tpl:opacity-100",
1151
1152
  "leave-to-class": "tpl:opacity-0"
1152
1153
  }, {
1153
- default: r(() => [n.visible ? (y(), _("div", {
1154
+ default: c(() => [n.visible ? (r(), v("div", {
1154
1155
  key: 0,
1155
- "data-tpl-theme": w(l),
1156
- class: b([w(d) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
1156
+ "data-tpl-theme": h(d),
1157
+ class: i([h(b) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
1157
1158
  style: { "background-color": "var(--tpl-overlay)" },
1158
- onClick: A(C, ["self"]),
1159
- onKeydown: D
1160
- }, [x("div", {
1159
+ onClick: A(w, ["self"]),
1160
+ onKeydown: O
1161
+ }, [S("div", {
1161
1162
  ref_key: "dialogRef",
1162
1163
  ref: E,
1163
1164
  role: "dialog",
@@ -1166,11 +1167,11 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1166
1167
  class: "tpl:max-h-[90%] tpl:w-full tpl:max-w-sm tpl:overflow-y-auto tpl:rounded-lg tpl:p-5 tpl:shadow-xl",
1167
1168
  style: { "background-color": "var(--tpl-bg-elevated)" }
1168
1169
  }, [
1169
- x("h3", ht, c(w(s).mediaLibrary.importFromUrl), 1),
1170
- x("div", gt, [u(x("input", {
1171
- "onUpdate:modelValue": t[0] ||= (e) => m.value = e,
1170
+ S("h3", ht, t(h(u).mediaLibrary.importFromUrl), 1),
1171
+ S("div", gt, [l(S("input", {
1172
+ "onUpdate:modelValue": a[0] ||= (e) => x.value = e,
1172
1173
  type: "url",
1173
- "aria-label": w(s).mediaLibrary.importFromUrl,
1174
+ "aria-label": h(u).mediaLibrary.importFromUrl,
1174
1175
  "aria-invalid": !!n.error,
1175
1176
  "aria-describedby": n.error ? "tpl-media-import-error" : void 0,
1176
1177
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
@@ -1179,33 +1180,33 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1179
1180
  "background-color": "var(--tpl-bg)",
1180
1181
  color: "var(--tpl-text)"
1181
1182
  },
1182
- placeholder: w(s).mediaLibrary.importUrlPlaceholder,
1183
+ placeholder: h(u).mediaLibrary.importUrlPlaceholder,
1183
1184
  disabled: n.isImporting,
1184
1185
  autofocus: ""
1185
- }, null, 8, _t), [[k, m.value]])]),
1186
- n.error ? (y(), _("p", vt, c(n.error), 1)) : g("", !0),
1187
- x("div", yt, [x("button", {
1188
- class: b(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150", { "tpl:cursor-not-allowed tpl:opacity-50": n.isImporting }]),
1186
+ }, null, 8, _t), [[k, x.value]])]),
1187
+ n.error ? (r(), v("p", vt, t(n.error), 1)) : g("", !0),
1188
+ S("div", yt, [S("button", {
1189
+ class: i(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150", { "tpl:cursor-not-allowed tpl:opacity-50": n.isImporting }]),
1189
1190
  style: {
1190
1191
  "border-color": "var(--tpl-border)",
1191
1192
  color: "var(--tpl-text)",
1192
1193
  "background-color": "var(--tpl-bg)"
1193
1194
  },
1194
1195
  disabled: n.isImporting,
1195
- onClick: C
1196
- }, c(w(s).mediaLibrary.cancel), 11, bt), x("button", {
1196
+ onClick: w
1197
+ }, t(h(u).mediaLibrary.cancel), 11, bt), S("button", {
1197
1198
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
1198
1199
  style: {
1199
1200
  "background-color": "var(--tpl-primary)",
1200
1201
  color: "var(--tpl-on-primary)"
1201
1202
  },
1202
- disabled: !m.value.trim() || n.isImporting,
1203
- onClick: S
1204
- }, [n.isImporting ? (y(), _("span", St, [f(w(H), {
1203
+ disabled: !x.value.trim() || n.isImporting,
1204
+ onClick: C
1205
+ }, [n.isImporting ? (r(), v("span", St, [f(h(R), {
1205
1206
  class: "tpl:animate-spin",
1206
1207
  size: 12,
1207
1208
  "stroke-width": 2
1208
- }), v(" " + c(w(s).mediaLibrary.importing), 1)])) : (y(), _("span", Ct, c(w(s).mediaLibrary.import), 1))], 8, xt)])
1209
+ }), y(" " + t(h(u).mediaLibrary.importing), 1)])) : (r(), v("span", Ct, t(h(u).mediaLibrary.import), 1))], 8, xt)])
1209
1210
  ], 512)], 42, mt)) : g("", !0)]),
1210
1211
  _: 1
1211
1212
  })], 8, ["to"]));
@@ -1214,15 +1215,15 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1214
1215
  key: 0,
1215
1216
  class: "tpl:shrink-0",
1216
1217
  style: { color: "var(--tpl-text-dim)" }
1217
- }, kt = /* @__PURE__ */ D({
1218
+ }, kt = /* @__PURE__ */ O({
1218
1219
  __name: "MediaMovePicker",
1219
1220
  props: {
1220
1221
  folders: {},
1221
1222
  currentFolderId: {}
1222
1223
  },
1223
1224
  emits: ["select", "close"],
1224
- setup(t, { emit: n }) {
1225
- let r = n, { t: i } = Q(), a = e(null);
1225
+ setup(e, { emit: n }) {
1226
+ let i = n, { t: a } = Z(), c = _(null);
1226
1227
  function l(e, t = 0) {
1227
1228
  let n = [];
1228
1229
  for (let r of e) n.push({
@@ -1232,44 +1233,44 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1232
1233
  }), r.children.length && n.push(...l(r.children, t + 1));
1233
1234
  return n;
1234
1235
  }
1235
- return z(a, () => {
1236
- r("close");
1237
- }), (e, n) => (y(), _("div", {
1236
+ return le(c, () => {
1237
+ i("close");
1238
+ }), (n, u) => (r(), v("div", {
1238
1239
  ref_key: "pickerRef",
1239
- ref: a,
1240
+ ref: c,
1240
1241
  "data-testid": "media-move-picker",
1241
1242
  class: "tpl:absolute tpl:bottom-full tpl:left-0 tpl:z-10 tpl:mb-2 tpl:w-56 tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:shadow-lg",
1242
1243
  style: {
1243
1244
  "border-color": "var(--tpl-border)",
1244
1245
  "background-color": "var(--tpl-bg-elevated)"
1245
1246
  }
1246
- }, [x("div", Tt, [t.currentFolderId === null ? g("", !0) : (y(), _("button", {
1247
+ }, [S("div", Tt, [e.currentFolderId === null ? g("", !0) : (r(), v("button", {
1247
1248
  key: 0,
1248
1249
  class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-1.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors tpl:duration-100",
1249
1250
  style: { color: "var(--tpl-text)" },
1250
- onClick: n[0] ||= (e) => r("select", null)
1251
- }, [f(w(q), {
1251
+ onClick: u[0] ||= (e) => i("select", null)
1252
+ }, [f(h(G), {
1252
1253
  class: "tpl:shrink-0",
1253
1254
  size: 14,
1254
1255
  "stroke-width": 1.5
1255
- }), v(" " + c(w(i).mediaLibrary.moveToRoot), 1)])), (y(!0), _(S, null, s(l(t.folders), (e) => (y(), _("button", {
1256
- key: e.id,
1256
+ }), y(" " + t(h(a).mediaLibrary.moveToRoot), 1)])), (r(!0), v(w, null, o(l(e.folders), (n) => (r(), v("button", {
1257
+ key: n.id,
1257
1258
  class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-1.5 tpl:py-1.5 tpl:pr-3 tpl:text-left tpl:text-xs tpl:transition-colors tpl:duration-100",
1258
- style: o({
1259
- paddingLeft: `${e.depth * 16 + 12}px`,
1260
- color: e.id === t.currentFolderId ? "var(--tpl-text-dim)" : "var(--tpl-text)",
1261
- opacity: e.id === t.currentFolderId ? .5 : 1
1259
+ style: s({
1260
+ paddingLeft: `${n.depth * 16 + 12}px`,
1261
+ color: n.id === e.currentFolderId ? "var(--tpl-text-dim)" : "var(--tpl-text)",
1262
+ opacity: n.id === e.currentFolderId ? .5 : 1
1262
1263
  }),
1263
- disabled: e.id === t.currentFolderId,
1264
- onClick: (t) => r("select", e.id)
1264
+ disabled: n.id === e.currentFolderId,
1265
+ onClick: (e) => i("select", n.id)
1265
1266
  }, [
1266
- f(w(J), {
1267
+ f(h(K), {
1267
1268
  class: "tpl:shrink-0",
1268
1269
  size: 14,
1269
1270
  "stroke-width": 1.5
1270
1271
  }),
1271
- x("span", Dt, c(e.name), 1),
1272
- e.id === t.currentFolderId ? (y(), _("span", Ot, c(w(i).mediaLibrary.currentFolder), 1)) : g("", !0)
1272
+ S("span", Dt, t(n.name), 1),
1273
+ n.id === e.currentFolderId ? (r(), v("span", Ot, t(h(a).mediaLibrary.currentFolder), 1)) : g("", !0)
1273
1274
  ], 12, Et))), 128))])], 512));
1274
1275
  }
1275
1276
  }), At = { class: "tpl:flex tpl:items-center tpl:gap-3" }, jt = ["src", "alt"], Mt = {
@@ -1282,68 +1283,68 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1282
1283
  }, Ft = {
1283
1284
  class: "tpl:mt-0.5 tpl:text-[10px]",
1284
1285
  style: { color: "var(--tpl-text-muted)" }
1285
- }, It = /*#__PURE__*/ K(/* @__PURE__ */ D({
1286
+ }, It = /*#__PURE__*/ N(/* @__PURE__ */ O({
1286
1287
  __name: "MediaPreviewPanel",
1287
1288
  props: {
1288
1289
  item: {},
1289
1290
  folders: {}
1290
1291
  },
1291
1292
  setup(e) {
1292
- let n = e, r = t(Z, null), { isImageMimeType: i } = he();
1293
- function a(e, t, n = []) {
1293
+ let n = e, a = D(X, null), { isImageMimeType: o } = Q();
1294
+ function s(e, t, n = []) {
1294
1295
  for (let r of e) {
1295
1296
  let e = [...n, r.name];
1296
1297
  if (r.id === t) return e;
1297
1298
  if (r.children.length) {
1298
- let n = a(r.children, t, e);
1299
+ let n = s(r.children, t, e);
1299
1300
  if (n) return n;
1300
1301
  }
1301
1302
  }
1302
1303
  return null;
1303
1304
  }
1304
- let o = h(() => {
1305
+ let c = m(() => {
1305
1306
  if (!n.item.folderId || !n.folders) return null;
1306
- let e = a(n.folders, n.item.folderId);
1307
+ let e = s(n.folders, n.item.folderId);
1307
1308
  return e ? e.join("/") : null;
1308
- }), s = h(() => n.item.mimeType ?? ""), l = h(() => i(s.value));
1309
- function u(e) {
1310
- return Le(e, r?.value, {
1309
+ }), l = m(() => n.item.mimeType ?? ""), u = m(() => o(l.value));
1310
+ function d(e) {
1311
+ return Le(e, a?.value, {
1311
1312
  year: "numeric",
1312
1313
  month: "short",
1313
1314
  day: "numeric"
1314
1315
  });
1315
1316
  }
1316
- let d = h(() => n.item.filename || n.item.url);
1317
- return (t, n) => (y(), _("div", At, [l.value ? (y(), _("img", {
1317
+ let p = m(() => n.item.filename || n.item.url);
1318
+ return (n, a) => (r(), v("div", At, [u.value ? (r(), v("img", {
1318
1319
  key: 0,
1319
1320
  src: e.item.url,
1320
- alt: e.item.alt || d.value,
1321
+ alt: e.item.alt || p.value,
1321
1322
  class: "tpl:size-10 tpl:shrink-0 tpl:rounded tpl:object-cover",
1322
1323
  style: { border: "1px solid var(--tpl-border)" }
1323
- }, null, 8, jt)) : (y(), _("div", Mt, [f(Ie, {
1324
- "mime-type": s.value,
1324
+ }, null, 8, jt)) : (r(), v("div", Mt, [f(Ie, {
1325
+ "mime-type": l.value,
1325
1326
  class: "tpl-preview-icon"
1326
- }, null, 8, ["mime-type"])])), x("div", Nt, [
1327
- x("p", Pt, c(d.value), 1),
1328
- x("p", Ft, [
1329
- e.item.size == null ? g("", !0) : (y(), _(S, { key: 0 }, [v(c(w($)(e.item.size)), 1)], 64)),
1330
- e.item.createdAt ? (y(), _(S, { key: 1 }, [e.item.size == null ? g("", !0) : (y(), _(S, { key: 0 }, [v(" · ")], 64)), v(" " + c(u(e.item.createdAt)), 1)], 64)) : g("", !0),
1331
- l.value && e.item.width && e.item.height ? (y(), _(S, { key: 2 }, [v(" · " + c(e.item.width) + "×" + c(e.item.height) + "px ", 1)], 64)) : g("", !0),
1332
- o.value ? (y(), _(S, { key: 3 }, [
1333
- n[0] ||= v(" · ", -1),
1334
- f(w(J), {
1327
+ }, null, 8, ["mime-type"])])), S("div", Nt, [
1328
+ S("p", Pt, t(p.value), 1),
1329
+ S("p", Ft, [
1330
+ e.item.size == null ? g("", !0) : (r(), v(w, { key: 0 }, [y(t(h($)(e.item.size)), 1)], 64)),
1331
+ e.item.createdAt ? (r(), v(w, { key: 1 }, [e.item.size == null ? g("", !0) : (r(), v(w, { key: 0 }, [y(" · ")], 64)), y(" " + t(d(e.item.createdAt)), 1)], 64)) : g("", !0),
1332
+ u.value && e.item.width && e.item.height ? (r(), v(w, { key: 2 }, [y(" · " + t(e.item.width) + "×" + t(e.item.height) + "px ", 1)], 64)) : g("", !0),
1333
+ c.value ? (r(), v(w, { key: 3 }, [
1334
+ a[0] ||= y(" · ", -1),
1335
+ f(h(K), {
1335
1336
  class: "tpl:mb-px tpl:inline",
1336
1337
  size: 9,
1337
1338
  "stroke-width": 2
1338
1339
  }),
1339
- v(" " + c(o.value), 1)
1340
+ y(" " + t(c.value), 1)
1340
1341
  ], 64)) : g("", !0)
1341
1342
  ]),
1342
- l.value ? (y(), _("p", {
1343
+ u.value ? (r(), v("p", {
1343
1344
  key: 0,
1344
- class: b(["tpl:mt-0.5 tpl:truncate tpl:text-[10px] tpl:italic", { "tpl:invisible": !e.item.alt }]),
1345
+ class: i(["tpl:mt-0.5 tpl:truncate tpl:text-[10px] tpl:italic", { "tpl:invisible": !e.item.alt }]),
1345
1346
  style: { color: "var(--tpl-text-dim)" }
1346
- }, c(e.item.alt || "\xA0"), 3)) : g("", !0)
1347
+ }, t(e.item.alt || "\xA0"), 3)) : g("", !0)
1347
1348
  ])]));
1348
1349
  }
1349
1350
  }), [["__scopeId", "data-v-50993988"]]), Lt = ["data-tpl-theme"], Rt = {
@@ -1376,7 +1377,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1376
1377
  role: "alert",
1377
1378
  class: "tpl:mb-3 tpl:text-xs",
1378
1379
  style: { color: "var(--tpl-danger)" }
1379
- }, qt = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Jt = ["disabled"], Yt = ["disabled"], Xt = /* @__PURE__ */ D({
1380
+ }, qt = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Jt = ["disabled"], Yt = ["disabled"], Xt = /* @__PURE__ */ O({
1380
1381
  __name: "MediaReplaceModal",
1381
1382
  props: {
1382
1383
  visible: { type: Boolean },
@@ -1386,28 +1387,28 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1386
1387
  error: {}
1387
1388
  },
1388
1389
  emits: ["replace", "close"],
1389
- setup(n, { emit: i }) {
1390
- let a = n, o = i, { t: s } = Q(), l = t(fe, null), u = t(X, e(null)), d = e(null), m = e(null), v = h(() => {
1391
- if (!a.item) return "";
1392
- let e = (a.item.filename ?? "").split(".");
1390
+ setup(n, { emit: a }) {
1391
+ let o = n, s = a, { t: l } = Z(), u = D(Y, null), d = D(J, _(null)), y = _(null), b = _(null), x = m(() => {
1392
+ if (!o.item) return "";
1393
+ let e = (o.item.filename ?? "").split(".");
1393
1394
  return e.length > 1 ? e[e.length - 1].toLowerCase() : "";
1394
- }), S = h(() => v.value ? `.${v.value}` : "*"), C = h(() => (a.usageInfo?.templateCount ?? 0) > 0);
1395
- O(() => a.visible, (e) => {
1396
- e || (m.value = null, d.value && (d.value.value = ""));
1395
+ }), C = m(() => x.value ? `.${x.value}` : "*"), w = m(() => (o.usageInfo?.templateCount ?? 0) > 0);
1396
+ e(() => o.visible, (e) => {
1397
+ e || (b.value = null, y.value && (y.value.value = ""));
1397
1398
  });
1398
1399
  function E(e) {
1399
1400
  let t = e.target;
1400
- t.files && t.files.length > 0 && (m.value = t.files[0]);
1401
+ t.files && t.files.length > 0 && (b.value = t.files[0]);
1401
1402
  }
1402
- function D() {
1403
- m.value && o("replace", m.value);
1403
+ function O() {
1404
+ b.value && s("replace", b.value);
1404
1405
  }
1405
- let k = e(null);
1406
- _e(k, h(() => a.visible && a.item !== null));
1406
+ let k = _(null);
1407
+ _e(k, m(() => o.visible && o.item !== null));
1407
1408
  function j(e) {
1408
- e.stopPropagation(), e.key === "Escape" && o("close");
1409
+ e.stopPropagation(), e.key === "Escape" && s("close");
1409
1410
  }
1410
- return (e, t) => (y(), T(p, { to: w(u) || "body" }, [f(M, {
1411
+ return (e, a) => (r(), T(p, { to: h(d) || "body" }, [f(M, {
1411
1412
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
1412
1413
  "enter-from-class": "tpl:opacity-0",
1413
1414
  "enter-to-class": "tpl:opacity-100",
@@ -1415,14 +1416,14 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1415
1416
  "leave-from-class": "tpl:opacity-100",
1416
1417
  "leave-to-class": "tpl:opacity-0"
1417
1418
  }, {
1418
- default: r(() => [n.visible && n.item ? (y(), _("div", {
1419
+ default: c(() => [n.visible && n.item ? (r(), v("div", {
1419
1420
  key: 0,
1420
- "data-tpl-theme": w(l),
1421
- class: b([w(u) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
1421
+ "data-tpl-theme": h(u),
1422
+ class: i([h(d) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
1422
1423
  style: { "background-color": "var(--tpl-overlay)" },
1423
- onClick: t[1] ||= A((e) => o("close"), ["self"]),
1424
+ onClick: a[1] ||= A((e) => s("close"), ["self"]),
1424
1425
  onKeydown: j
1425
- }, [x("div", {
1426
+ }, [S("div", {
1426
1427
  ref_key: "dialogRef",
1427
1428
  ref: k,
1428
1429
  role: "dialog",
@@ -1431,15 +1432,15 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1431
1432
  class: "tpl:max-h-[90%] tpl:w-full tpl:max-w-sm tpl:overflow-y-auto tpl:rounded-lg tpl:p-5 tpl:shadow-xl",
1432
1433
  style: { "background-color": "var(--tpl-bg-elevated)" }
1433
1434
  }, [
1434
- x("h3", Rt, c(w(s).mediaLibrary.replaceWarningTitle), 1),
1435
- x("p", zt, c(w(s).mediaLibrary.replaceWarningMessage.replace("{extension}", `.${v.value}`)), 1),
1436
- C.value ? (y(), _("p", Bt, c(w(s).mediaLibrary.replaceWarningUsageNote.replace("{count}", n.usageInfo.templateCount.toString())), 1)) : g("", !0),
1437
- x("div", Vt, [x("p", Ht, c(n.item.filename), 1)]),
1438
- x("div", Ut, [x("label", Wt, c(w(s).mediaLibrary.replaceSelectFile), 1), x("input", {
1435
+ S("h3", Rt, t(h(l).mediaLibrary.replaceWarningTitle), 1),
1436
+ S("p", zt, t(h(l).mediaLibrary.replaceWarningMessage.replace("{extension}", `.${x.value}`)), 1),
1437
+ w.value ? (r(), v("p", Bt, t(h(l).mediaLibrary.replaceWarningUsageNote.replace("{count}", n.usageInfo.templateCount.toString())), 1)) : g("", !0),
1438
+ S("div", Vt, [S("p", Ht, t(n.item.filename), 1)]),
1439
+ S("div", Ut, [S("label", Wt, t(h(l).mediaLibrary.replaceSelectFile), 1), S("input", {
1439
1440
  ref_key: "fileInputRef",
1440
- ref: d,
1441
+ ref: y,
1441
1442
  type: "file",
1442
- accept: S.value,
1443
+ accept: C.value,
1443
1444
  "aria-invalid": !!n.error,
1444
1445
  "aria-describedby": n.error ? "tpl-media-replace-error" : void 0,
1445
1446
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs",
@@ -1450,8 +1451,8 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1450
1451
  },
1451
1452
  onChange: E
1452
1453
  }, null, 40, Gt)]),
1453
- n.error ? (y(), _("p", Kt, c(n.error), 1)) : g("", !0),
1454
- x("div", qt, [x("button", {
1454
+ n.error ? (r(), v("p", Kt, t(n.error), 1)) : g("", !0),
1455
+ S("div", qt, [S("button", {
1455
1456
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
1456
1457
  style: {
1457
1458
  "border-color": "var(--tpl-border)",
@@ -1459,16 +1460,16 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
1459
1460
  "background-color": "var(--tpl-bg)"
1460
1461
  },
1461
1462
  disabled: n.isReplacing,
1462
- onClick: t[0] ||= (e) => o("close")
1463
- }, c(w(s).mediaLibrary.cancel), 9, Jt), x("button", {
1463
+ onClick: a[0] ||= (e) => s("close")
1464
+ }, t(h(l).mediaLibrary.cancel), 9, Jt), S("button", {
1464
1465
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
1465
1466
  style: {
1466
1467
  "background-color": "var(--tpl-primary)",
1467
1468
  color: "var(--tpl-on-primary)"
1468
1469
  },
1469
- disabled: !m.value || n.isReplacing,
1470
- onClick: D
1471
- }, c(n.isReplacing ? w(s).mediaLibrary.replacing : w(s).mediaLibrary.replace), 9, Yt)])
1470
+ disabled: !b.value || n.isReplacing,
1471
+ onClick: O
1472
+ }, t(n.isReplacing ? h(l).mediaLibrary.replacing : h(l).mediaLibrary.replace), 9, Yt)])
1472
1473
  ], 512)], 42, Lt)) : g("", !0)]),
1473
1474
  _: 1
1474
1475
  })], 8, ["to"]));
@@ -1512,71 +1513,71 @@ var Qt = [
1512
1513
  role: "alert",
1513
1514
  class: "tpl:mt-1.5 tpl:text-xs tpl:break-words",
1514
1515
  style: { color: "var(--tpl-danger)" }
1515
- }, an = /* @__PURE__ */ D({
1516
+ }, an = /* @__PURE__ */ O({
1516
1517
  __name: "MediaUploadZone",
1517
1518
  props: {
1518
1519
  isUploading: { type: Boolean },
1519
1520
  uploadProgress: {}
1520
1521
  },
1521
1522
  emits: ["upload"],
1522
- setup(n, { emit: r }) {
1523
- let i = r, { t: a, format: o } = Q(), s = t(Z, null), { allAcceptedInputString: l, restrictsMimeTypes: u, availableCategories: d, maxFileSize: p, isAcceptedFile: m } = he(), v = {
1523
+ setup(e, { emit: n }) {
1524
+ let a = n, { t: o, format: s } = Z(), c = D(X, null), { allAcceptedInputString: l, restrictsMimeTypes: u, availableCategories: d, maxFileSize: p, isAcceptedFile: y } = Q(), b = {
1524
1525
  images: "filterImages",
1525
1526
  documents: "filterDocuments",
1526
1527
  videos: "filterVideos",
1527
1528
  audio: "filterAudio"
1528
- }, C = h(() => {
1529
- let e = a.mediaLibrary, t = u.value ? Zt(d.value.map((t) => e[v[t]]), s?.value) : a.mediaLibrary.acceptedAnyType;
1530
- return Number.isFinite(p.value) ? o(a.mediaLibrary.acceptedFormatsMaxSize, {
1529
+ }, x = m(() => {
1530
+ let e = o.mediaLibrary, t = u.value ? Zt(d.value.map((t) => e[b[t]]), c?.value) : o.mediaLibrary.acceptedAnyType;
1531
+ return Number.isFinite(p.value) ? s(o.mediaLibrary.acceptedFormatsMaxSize, {
1531
1532
  formats: t,
1532
1533
  size: $(p.value)
1533
1534
  }) : t;
1534
- }), T = e([]), E = e();
1535
- function D(e) {
1535
+ }), C = _([]), T = _();
1536
+ function E(e) {
1536
1537
  let t = [], n = [];
1537
- for (let r of Array.from(e)) m(r) ? t.push(r) : n.push(r.name);
1538
- T.value = n, t.length && i("upload", t);
1538
+ for (let r of Array.from(e)) y(r) ? t.push(r) : n.push(r.name);
1539
+ C.value = n, t.length && a("upload", t);
1539
1540
  }
1540
- let { isOverDropZone: O } = L(E, { onDrop: (e) => {
1541
- e?.length && D(e);
1542
- } }), { open: k, onChange: A } = I({
1541
+ let { isOverDropZone: O } = se(T, { onDrop: (e) => {
1542
+ e?.length && E(e);
1543
+ } }), { open: k, onChange: A } = oe({
1543
1544
  accept: l.value,
1544
1545
  multiple: !0
1545
1546
  });
1546
1547
  return A((e) => {
1547
- e?.length && D(e);
1548
- }), (e, t) => (y(), _(S, null, [x("button", {
1548
+ e?.length && E(e);
1549
+ }), (n, a) => (r(), v(w, null, [S("button", {
1549
1550
  ref_key: "dropZoneRef",
1550
- ref: E,
1551
+ ref: T,
1551
1552
  type: "button",
1552
1553
  "data-testid": "media-upload-zone",
1553
- class: b(["tpl-upload-zone tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-lg tpl:border-2 tpl:border-dashed tpl:p-5 tpl:text-center tpl:transition-all tpl:duration-150", w(O) ? "tpl-upload-zone-active" : ""]),
1554
- "aria-label": w(a).mediaLibrary.dropOrClick,
1555
- "aria-describedby": n.isUploading ? void 0 : "tpl-media-upload-hint",
1556
- "aria-busy": n.isUploading,
1554
+ class: i(["tpl-upload-zone tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-lg tpl:border-2 tpl:border-dashed tpl:p-5 tpl:text-center tpl:transition-all tpl:duration-150", h(O) ? "tpl-upload-zone-active" : ""]),
1555
+ "aria-label": h(o).mediaLibrary.dropOrClick,
1556
+ "aria-describedby": e.isUploading ? void 0 : "tpl-media-upload-hint",
1557
+ "aria-busy": e.isUploading,
1557
1558
  style: {
1558
1559
  "border-color": "var(--tpl-border-light)",
1559
1560
  "background-color": "var(--tpl-bg)"
1560
1561
  },
1561
- onClick: t[0] ||= (e) => w(k)()
1562
- }, [n.isUploading ? (y(), _("div", $t, [f(w(H), {
1562
+ onClick: a[0] ||= (e) => h(k)()
1563
+ }, [e.isUploading ? (r(), v("div", $t, [f(h(R), {
1563
1564
  class: "tpl-spinner",
1564
1565
  size: 20,
1565
1566
  "stroke-width": 2,
1566
1567
  style: { color: "var(--tpl-primary)" }
1567
- }), x("span", en, c(n.uploadProgress && n.uploadProgress.total > 1 ? w(o)(w(a).mediaLibrary.uploadingProgress, {
1568
- current: n.uploadProgress.current,
1569
- total: n.uploadProgress.total
1570
- }) : w(a).mediaLibrary.uploading), 1)])) : (y(), _(S, { key: 1 }, [
1571
- f(w(ne), {
1568
+ }), S("span", en, t(e.uploadProgress && e.uploadProgress.total > 1 ? h(s)(h(o).mediaLibrary.uploadingProgress, {
1569
+ current: e.uploadProgress.current,
1570
+ total: e.uploadProgress.total
1571
+ }) : h(o).mediaLibrary.uploading), 1)])) : (r(), v(w, { key: 1 }, [
1572
+ f(h(L), {
1572
1573
  class: "tpl:mb-2",
1573
1574
  size: 24,
1574
1575
  "stroke-width": 1.5,
1575
1576
  style: { color: "var(--tpl-text-dim)" }
1576
1577
  }),
1577
- x("p", tn, c(w(a).mediaLibrary.dropOrClick), 1),
1578
- x("p", nn, c(C.value), 1)
1579
- ], 64))], 10, Qt), T.value.length ? (y(), _("p", rn, c(w(o)(w(a).mediaLibrary.uploadRejected, { files: T.value.join(", ") })), 1)) : g("", !0)], 64));
1578
+ S("p", tn, t(h(o).mediaLibrary.dropOrClick), 1),
1579
+ S("p", nn, t(x.value), 1)
1580
+ ], 64))], 10, Qt), C.value.length ? (r(), v("p", rn, t(h(s)(h(o).mediaLibrary.uploadRejected, { files: C.value.join(", ") })), 1)) : g("", !0)], 64));
1580
1581
  }
1581
1582
  }), on = ["aria-label"], sn = [
1582
1583
  "width",
@@ -1602,41 +1603,41 @@ var Qt = [
1602
1603
  "background-color": "var(--tpl-text)",
1603
1604
  color: "var(--tpl-bg-elevated)"
1604
1605
  }
1605
- }, dn = /* @__PURE__ */ D({
1606
+ }, dn = /* @__PURE__ */ O({
1606
1607
  __name: "StorageProgressRing",
1607
1608
  props: {
1608
1609
  usedBytes: {},
1609
1610
  limitBytes: {},
1610
1611
  size: {}
1611
1612
  },
1612
- setup(t) {
1613
- let n = t, { t: i, format: a } = Q(), o = e(!1), s = h(() => n.size ?? 24), l = h(() => Math.max(2, s.value / 8)), u = h(() => (s.value - l.value) / 2), d = h(() => 2 * Math.PI * u.value), p = h(() => n.limitBytes <= 0 ? 0 : Math.min(100, n.usedBytes / n.limitBytes * 100)), m = h(() => d.value - p.value / 100 * d.value), b = h(() => p.value >= 95 ? "var(--tpl-danger)" : p.value >= 75 ? "var(--tpl-warning)" : "var(--tpl-primary)"), S = h(() => $(n.usedBytes)), C = h(() => $(n.limitBytes)), w = h(() => Math.max(0, n.limitBytes - n.usedBytes)), T = h(() => $(w.value)), E = h(() => a(i.mediaLibrary.storageTooltip, {
1614
- used: S.value,
1613
+ setup(e) {
1614
+ let n = e, { t: i, format: a } = Z(), o = _(!1), s = m(() => n.size ?? 24), l = m(() => Math.max(2, s.value / 8)), u = m(() => (s.value - l.value) / 2), d = m(() => 2 * Math.PI * u.value), p = m(() => n.limitBytes <= 0 ? 0 : Math.min(100, n.usedBytes / n.limitBytes * 100)), h = m(() => d.value - p.value / 100 * d.value), b = m(() => p.value >= 95 ? "var(--tpl-danger)" : p.value >= 75 ? "var(--tpl-warning)" : "var(--tpl-primary)"), x = m(() => $(n.usedBytes)), C = m(() => $(n.limitBytes)), w = m(() => Math.max(0, n.limitBytes - n.usedBytes)), T = m(() => $(w.value)), E = m(() => a(i.mediaLibrary.storageTooltip, {
1615
+ used: x.value,
1615
1616
  total: C.value,
1616
1617
  remaining: T.value
1617
1618
  }));
1618
- return (e, t) => (y(), _("div", {
1619
+ return (e, n) => (r(), v("div", {
1619
1620
  "data-testid": "media-storage-ring",
1620
1621
  class: "tpl:relative tpl:inline-flex tpl:cursor-help tpl:items-center tpl:justify-center",
1621
1622
  tabindex: "0",
1622
1623
  "aria-label": E.value,
1623
- onMouseenter: t[0] ||= (e) => o.value = !0,
1624
- onMouseleave: t[1] ||= (e) => o.value = !1,
1625
- onFocus: t[2] ||= (e) => o.value = !0,
1626
- onBlur: t[3] ||= (e) => o.value = !1
1627
- }, [(y(), _("svg", {
1624
+ onMouseenter: n[0] ||= (e) => o.value = !0,
1625
+ onMouseleave: n[1] ||= (e) => o.value = !1,
1626
+ onFocus: n[2] ||= (e) => o.value = !0,
1627
+ onBlur: n[3] ||= (e) => o.value = !1
1628
+ }, [(r(), v("svg", {
1628
1629
  width: s.value,
1629
1630
  height: s.value,
1630
1631
  class: "tpl:-rotate-90",
1631
1632
  viewBox: `0 0 ${s.value} ${s.value}`
1632
- }, [x("circle", {
1633
+ }, [S("circle", {
1633
1634
  cx: s.value / 2,
1634
1635
  cy: s.value / 2,
1635
1636
  r: u.value,
1636
1637
  fill: "none",
1637
1638
  "stroke-width": l.value,
1638
1639
  style: { stroke: "var(--tpl-border)" }
1639
- }, null, 8, cn), x("circle", {
1640
+ }, null, 8, cn), S("circle", {
1640
1641
  cx: s.value / 2,
1641
1642
  cy: s.value / 2,
1642
1643
  r: u.value,
@@ -1645,7 +1646,7 @@ var Qt = [
1645
1646
  stroke: b.value,
1646
1647
  "stroke-linecap": "round",
1647
1648
  "stroke-dasharray": d.value,
1648
- "stroke-dashoffset": m.value,
1649
+ "stroke-dashoffset": h.value,
1649
1650
  class: "tpl:transition-all tpl:duration-300 tpl:ease-out"
1650
1651
  }, null, 8, ln)], 8, sn)), f(M, {
1651
1652
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
@@ -1655,7 +1656,7 @@ var Qt = [
1655
1656
  "leave-from-class": "tpl:opacity-100 tpl:translate-y-0",
1656
1657
  "leave-to-class": "tpl:opacity-0 tpl:translate-y-1"
1657
1658
  }, {
1658
- default: r(() => [o.value ? (y(), _("div", un, [v(c(E.value) + " ", 1), t[4] ||= x("div", {
1659
+ default: c(() => [o.value ? (r(), v("div", un, [y(t(E.value) + " ", 1), n[4] ||= S("div", {
1659
1660
  class: "tpl:absolute tpl:-top-1 tpl:left-1/2 tpl:size-2 tpl:-translate-x-1/2 tpl:rotate-45",
1660
1661
  style: { "background-color": "var(--tpl-text)" }
1661
1662
  }, null, -1)])) : g("", !0)]),
@@ -1683,41 +1684,41 @@ function pn(t) {
1683
1684
  function i() {
1684
1685
  return "value" in r && typeof r.value == "object" ? r.value : r;
1685
1686
  }
1686
- let a = e("grid"), o = e(!1), s = e(""), c = e(null), l = e(!1), u = e(!1), d = h(() => n.previewItem.value?.url ?? null), f = h(() => n.frequentlyUsedItems.value.length > 0), p = h(() => n.viewMode.value === "frequently-used" ? n.frequentlyUsedItems.value : n.items.value), m = h(() => Object.values(n.deleteUsageInfo.value).some((e) => e.templateCount > 0)), g = h(() => fn(n.folders.value)), _ = {
1687
+ let a = _("grid"), o = _(!1), s = _(""), c = _(null), l = _(!1), u = _(!1), d = m(() => n.previewItem.value?.url ?? null), f = m(() => n.frequentlyUsedItems.value.length > 0), p = m(() => n.viewMode.value === "frequently-used" ? n.frequentlyUsedItems.value : n.items.value), h = m(() => Object.values(n.deleteUsageInfo.value).some((e) => e.templateCount > 0)), g = m(() => fn(n.folders.value)), v = {
1687
1688
  images: () => i().mediaLibrary.filterImages,
1688
1689
  documents: () => i().mediaLibrary.filterDocuments,
1689
1690
  videos: () => i().mediaLibrary.filterVideos,
1690
1691
  audio: () => i().mediaLibrary.filterAudio
1691
1692
  };
1692
- function v(e) {
1693
- return _[e]?.() ?? e;
1693
+ function y(e) {
1694
+ return v[e]?.() ?? e;
1694
1695
  }
1695
- O(o, (e) => {
1696
+ e(o, (e) => {
1696
1697
  e && n.loadFolders();
1697
1698
  });
1698
- let y = N((e) => {
1699
+ let b = ie((e) => {
1699
1700
  n.search(e);
1700
1701
  }, 300);
1701
- function b(e) {
1702
- s.value = e, y(e);
1702
+ function x(e) {
1703
+ s.value = e, b(e);
1703
1704
  }
1704
- let { copy: x, copied: S } = F({
1705
+ let { copy: S, copied: C } = ae({
1705
1706
  copiedDuring: 2e3,
1706
1707
  legacy: !0
1707
1708
  });
1708
- async function C(e) {
1709
+ async function w(e) {
1709
1710
  await n.uploadFiles(e);
1710
1711
  }
1711
- function w(e) {
1712
+ function T(e) {
1712
1713
  n.selectItem(e);
1713
1714
  }
1714
- async function T(e, t) {
1715
+ async function E(e, t) {
1715
1716
  await n.createFolder(e, t);
1716
1717
  }
1717
- async function E(e, t) {
1718
+ async function D(e, t) {
1718
1719
  await n.renameFolder(e, t);
1719
1720
  }
1720
- async function D(e) {
1721
+ async function O(e) {
1721
1722
  await n.deleteFolder(e);
1722
1723
  }
1723
1724
  function k(e) {
@@ -1732,16 +1733,16 @@ function pn(t) {
1732
1733
  async function M(e) {
1733
1734
  u.value = !1, await n.moveSelected(e);
1734
1735
  }
1735
- async function P() {
1736
+ async function N() {
1736
1737
  await n.checkUsageBeforeDelete();
1737
1738
  }
1738
- function I(e) {
1739
+ function P(e) {
1739
1740
  n.checkUsageBeforeReplace(e);
1740
1741
  }
1741
- async function L(e) {
1742
+ async function F(e) {
1742
1743
  await n.replaceFile(e);
1743
1744
  }
1744
- function R() {
1745
+ function I() {
1745
1746
  n.clearSelection(), n.cancelDelete(), n.cancelReplace(), s.value = "", n.searchQuery.value = "", n.categoryFilter.value = null, n.sortOption.value = "newest", n.viewMode.value = "files", c.value = null, l.value = !1;
1746
1747
  }
1747
1748
  return {
@@ -1754,392 +1755,392 @@ function pn(t) {
1754
1755
  selectedUrl: d,
1755
1756
  hasFrequentlyUsed: f,
1756
1757
  displayItems: p,
1757
- hasUsedFiles: m,
1758
+ hasUsedFiles: h,
1758
1759
  folderTree: g,
1759
- copy: x,
1760
- copied: S,
1761
- getCategoryLabel: v,
1762
- handleSearchInput: b,
1763
- handleUpload: C,
1764
- handleSelect: w,
1765
- handleCreateFolder: T,
1766
- handleRenameFolder: E,
1767
- handleDeleteFolder: D,
1760
+ copy: S,
1761
+ copied: C,
1762
+ getCategoryLabel: y,
1763
+ handleSearchInput: x,
1764
+ handleUpload: w,
1765
+ handleSelect: T,
1766
+ handleCreateFolder: E,
1767
+ handleRenameFolder: D,
1768
+ handleDeleteFolder: O,
1768
1769
  handleEditItem: k,
1769
1770
  handleEditSave: A,
1770
1771
  handleImportFromUrl: j,
1771
1772
  handleMoveToFolder: M,
1772
- handleDeleteClick: P,
1773
- handleReplaceItem: I,
1774
- handleReplaceFile: L,
1775
- resetUI: R
1773
+ handleDeleteClick: N,
1774
+ handleReplaceItem: P,
1775
+ handleReplaceFile: F,
1776
+ resetUI: I
1776
1777
  };
1777
1778
  }
1778
1779
  // ../media-library/src/composable.ts
1779
- function mn(t) {
1780
- let { provider: n } = t, r = e([]), i = e([]), a = e(null), o = e("files"), s = e(""), c = e(null), l = e("newest"), u = e(!1), d = e(!1), f = e(!1), p = e(null), h = e(null), g = e(/* @__PURE__ */ new Set()), _ = e(null), v = e([]), y = e({}), b = e(!1), x = e([]), S = e(!1), C = e(null), w = e(!1), T = e(null), E = e(!1), D = e(null), O = e(null), k = e(null), A = 0;
1781
- function j(e) {
1780
+ function mn(e) {
1781
+ let { provider: t } = e, n = _([]), r = _([]), i = _(null), a = _("files"), o = _(""), s = _(null), c = _("newest"), l = _(!1), u = _(!1), d = _(!1), f = _(null), p = _(null), m = _(/* @__PURE__ */ new Set()), h = _(null), g = _([]), v = _({}), y = _(!1), b = _([]), x = _(!1), S = _(null), w = _(!1), T = _(null), E = _(!1), D = _(null), O = _(null), k = _(null), A = 0;
1782
+ function j(t) {
1782
1783
  try {
1783
- e();
1784
- } catch (e) {
1785
- t.onError?.(e);
1784
+ t();
1785
+ } catch (t) {
1786
+ e.onError?.(t);
1786
1787
  }
1787
1788
  }
1788
1789
  function M() {
1789
- return n.folders === !1 ? null : n.folders;
1790
+ return t.folders === !1 ? null : t.folders;
1790
1791
  }
1791
1792
  function N() {
1792
- return m(t.templateId);
1793
+ return C(e.templateId);
1793
1794
  }
1794
1795
  function P(e) {
1795
1796
  let t = {};
1796
- s.value ? t.search = s.value : a.value != null && (t.folderId = a.value), c.value && (t.category = c.value), e && (t.cursor = e);
1797
+ o.value ? t.search = o.value : i.value != null && (t.folderId = i.value), s.value && (t.category = s.value), e && (t.cursor = e);
1797
1798
  let n = N();
1798
1799
  return n && (t.templateId = n), t;
1799
1800
  }
1800
1801
  async function F() {
1801
- let e = ++A;
1802
- u.value = !0;
1802
+ let r = ++A;
1803
+ l.value = !0;
1803
1804
  let i = P();
1804
1805
  try {
1805
- let t = await n.list(i);
1806
- if (e !== A) return;
1807
- r.value = t.items, p.value = t.nextCursor ?? null, f.value = !!t.nextCursor;
1808
- } catch (n) {
1809
- if (e !== A) return;
1810
- t.onError?.(n);
1806
+ let e = await t.list(i);
1807
+ if (r !== A) return;
1808
+ n.value = e.items, f.value = e.nextCursor ?? null, d.value = !!e.nextCursor;
1809
+ } catch (t) {
1810
+ if (r !== A) return;
1811
+ e.onError?.(t);
1811
1812
  } finally {
1812
- e === A && (u.value = !1);
1813
+ r === A && (l.value = !1);
1813
1814
  }
1814
1815
  }
1815
1816
  async function I() {
1816
- if (!f.value || !p.value || u.value) return;
1817
- let e = ++A;
1818
- u.value = !0;
1819
- let i = P(p.value);
1817
+ if (!d.value || !f.value || l.value) return;
1818
+ let r = ++A;
1819
+ l.value = !0;
1820
+ let i = P(f.value);
1820
1821
  try {
1821
- let t = await n.list(i);
1822
- if (e !== A) return;
1823
- r.value = [...r.value, ...t.items], p.value = t.nextCursor ?? null, f.value = !!t.nextCursor;
1824
- } catch (n) {
1825
- if (e !== A) return;
1826
- t.onError?.(n);
1822
+ let e = await t.list(i);
1823
+ if (r !== A) return;
1824
+ n.value = [...n.value, ...e.items], f.value = e.nextCursor ?? null, d.value = !!e.nextCursor;
1825
+ } catch (t) {
1826
+ if (r !== A) return;
1827
+ e.onError?.(t);
1827
1828
  } finally {
1828
- e === A && (u.value = !1);
1829
+ r === A && (l.value = !1);
1829
1830
  }
1830
1831
  }
1832
+ async function ee(e) {
1833
+ o.value = e, await F();
1834
+ }
1831
1835
  async function L(e) {
1832
1836
  s.value = e, await F();
1833
1837
  }
1834
- async function R(e) {
1838
+ async function te(e) {
1835
1839
  c.value = e, await F();
1836
1840
  }
1837
- async function z(e) {
1838
- l.value = e, await F();
1839
- }
1840
- async function B(e) {
1841
- o.value = "files", a.value = e, s.value = "", g.value = /* @__PURE__ */ new Set(), _.value = null, await F();
1841
+ async function ne(e) {
1842
+ a.value = "files", i.value = e, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await F();
1842
1843
  }
1843
- async function V() {
1844
- o.value = "frequently-used", a.value = null, s.value = "", g.value = /* @__PURE__ */ new Set(), _.value = null, await W();
1844
+ async function R() {
1845
+ a.value = "frequently-used", i.value = null, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await W();
1845
1846
  }
1846
- async function ee(e) {
1847
- let { create: i } = n;
1848
- if (typeof i != "function") return null;
1849
- d.value = !0;
1847
+ async function z(r) {
1848
+ let { create: a } = t;
1849
+ if (typeof a != "function") return null;
1850
+ u.value = !0;
1850
1851
  try {
1851
- let t = { file: e };
1852
- a.value != null && (t.folderId = a.value);
1852
+ let e = { file: r };
1853
+ i.value != null && (e.folderId = i.value);
1853
1854
  let o = N();
1854
- o && (t.templateId = o);
1855
- let s = await i(t);
1856
- return r.value = [s, ...r.value], j(() => n.onCreated?.(s)), s;
1857
- } catch (e) {
1858
- return t.onError?.(e), null;
1855
+ o && (e.templateId = o);
1856
+ let s = await a(e);
1857
+ return n.value = [s, ...n.value], j(() => t.onCreated?.(s)), s;
1858
+ } catch (t) {
1859
+ return e.onError?.(t), null;
1859
1860
  } finally {
1860
- d.value = !1;
1861
+ u.value = !1;
1861
1862
  }
1862
1863
  }
1863
- async function te(e) {
1864
- let { create: i } = n;
1865
- if (typeof i == "function") {
1866
- d.value = !0, h.value = {
1864
+ async function B(r) {
1865
+ let { create: a } = t;
1866
+ if (typeof a == "function") {
1867
+ u.value = !0, p.value = {
1867
1868
  current: 0,
1868
- total: e.length
1869
+ total: r.length
1869
1870
  };
1870
1871
  try {
1871
- for (let o = 0; o < e.length; o++) {
1872
- h.value = {
1872
+ for (let o = 0; o < r.length; o++) {
1873
+ p.value = {
1873
1874
  current: o + 1,
1874
- total: e.length
1875
+ total: r.length
1875
1876
  };
1876
1877
  try {
1877
- let t = { file: e[o] };
1878
- a.value != null && (t.folderId = a.value);
1878
+ let e = { file: r[o] };
1879
+ i.value != null && (e.folderId = i.value);
1879
1880
  let s = N();
1880
- s && (t.templateId = s);
1881
- let c = await i(t);
1882
- r.value = [c, ...r.value], j(() => n.onCreated?.(c));
1883
- } catch (e) {
1884
- t.onError?.(e);
1881
+ s && (e.templateId = s);
1882
+ let c = await a(e);
1883
+ n.value = [c, ...n.value], j(() => t.onCreated?.(c));
1884
+ } catch (t) {
1885
+ e.onError?.(t);
1885
1886
  }
1886
1887
  }
1887
1888
  } finally {
1888
- d.value = !1, h.value = null;
1889
+ u.value = !1, p.value = null;
1889
1890
  }
1890
1891
  }
1891
1892
  }
1892
- async function ne(e) {
1893
- if (g.value.size === 0) return;
1894
- let { move: n } = M() ?? { move: !1 };
1895
- if (typeof n == "function") try {
1896
- let t = await n([...g.value], e);
1897
- if (a.value === null) {
1898
- let e = new Map(t.map((e) => [e.id, e]));
1899
- r.value = r.value.map((t) => e.get(t.id) ?? t);
1900
- } else r.value = r.value.filter((e) => !g.value.has(e.id));
1901
- g.value = /* @__PURE__ */ new Set(), _.value = null;
1902
- } catch (e) {
1903
- t.onError?.(e);
1893
+ async function V(t) {
1894
+ if (m.value.size === 0) return;
1895
+ let { move: r } = M() ?? { move: !1 };
1896
+ if (typeof r == "function") try {
1897
+ let e = await r([...m.value], t);
1898
+ if (i.value === null) {
1899
+ let t = new Map(e.map((e) => [e.id, e]));
1900
+ n.value = n.value.map((e) => t.get(e.id) ?? e);
1901
+ } else n.value = n.value.filter((e) => !m.value.has(e.id));
1902
+ m.value = /* @__PURE__ */ new Set(), h.value = null;
1903
+ } catch (t) {
1904
+ e.onError?.(t);
1904
1905
  }
1905
1906
  }
1906
- async function re(e, i, a) {
1907
- let { update: o } = n;
1907
+ async function re(r, i, a) {
1908
+ let { update: o } = t;
1908
1909
  if (typeof o != "function") return !1;
1909
1910
  try {
1910
- let t = { filename: i };
1911
- a !== void 0 && (t.alt = a);
1912
- let s = await o(e, t);
1913
- return r.value = r.value.map((t) => t.id === e ? s : t), _.value?.id === e && (_.value = s), j(() => n.onUpdated?.(s)), !0;
1914
- } catch (e) {
1915
- return t.onError?.(e), !1;
1911
+ let e = { filename: i };
1912
+ a !== void 0 && (e.alt = a);
1913
+ let s = await o(r, e);
1914
+ return n.value = n.value.map((e) => e.id === r ? s : e), h.value?.id === r && (h.value = s), j(() => t.onUpdated?.(s)), !0;
1915
+ } catch (t) {
1916
+ return e.onError?.(t), !1;
1916
1917
  }
1917
1918
  }
1918
- function ie(e) {
1919
+ function H(e) {
1919
1920
  let t = /* @__PURE__ */ new Map();
1920
- for (let n of r.value) e.includes(n.id) && t.set(n.id, n);
1921
- for (let n of v.value) e.includes(n.id) && !t.has(n.id) && t.set(n.id, n);
1921
+ for (let r of n.value) e.includes(r.id) && t.set(r.id, r);
1922
+ for (let n of g.value) e.includes(n.id) && !t.has(n.id) && t.set(n.id, n);
1922
1923
  return [...t.values()];
1923
1924
  }
1924
- function H(e) {
1925
- r.value = r.value.filter((t) => !e.includes(t.id)), v.value = v.value.filter((t) => !e.includes(t.id)), g.value = /* @__PURE__ */ new Set(), _.value = null;
1925
+ function U(e) {
1926
+ n.value = n.value.filter((t) => !e.includes(t.id)), g.value = g.value.filter((t) => !e.includes(t.id)), m.value = /* @__PURE__ */ new Set(), h.value = null;
1926
1927
  }
1927
- async function U() {
1928
- if (g.value.size === 0) return;
1929
- let { delete: e } = n;
1930
- if (typeof e != "function") return;
1931
- let r = [...g.value], i = ie(r);
1928
+ async function ie() {
1929
+ if (m.value.size === 0) return;
1930
+ let { delete: n } = t;
1931
+ if (typeof n != "function") return;
1932
+ let r = [...m.value], i = H(r);
1932
1933
  try {
1933
- await e(r), H(r);
1934
- for (let e of i) j(() => n.onDeleted?.(e));
1935
- } catch (e) {
1936
- t.onError?.(e);
1934
+ await n(r), U(r);
1935
+ for (let e of i) j(() => t.onDeleted?.(e));
1936
+ } catch (t) {
1937
+ e.onError?.(t);
1937
1938
  }
1938
1939
  }
1939
1940
  async function W() {
1940
- let { frequentlyUsed: e } = n;
1941
- if (typeof e == "function") try {
1942
- v.value = await e();
1943
- } catch (e) {
1944
- t.onError?.(e);
1941
+ let { frequentlyUsed: n } = t;
1942
+ if (typeof n == "function") try {
1943
+ g.value = await n();
1944
+ } catch (t) {
1945
+ e.onError?.(t);
1945
1946
  }
1946
1947
  }
1947
- async function G() {
1948
- if (g.value.size === 0) return !1;
1949
- x.value = [...g.value];
1950
- let { checkUsage: e } = n;
1951
- if (typeof e != "function") return y.value = {}, b.value = !0, !1;
1948
+ async function ae() {
1949
+ if (m.value.size === 0) return !1;
1950
+ b.value = [...m.value];
1951
+ let { checkUsage: n } = t;
1952
+ if (typeof n != "function") return v.value = {}, y.value = !0, !1;
1952
1953
  try {
1953
- let t = await e(x.value);
1954
- y.value = t;
1955
- let n = Object.values(t).some((e) => e.templateCount > 0);
1956
- return b.value = !0, n;
1957
- } catch (e) {
1958
- return t.onError?.(e), !1;
1954
+ let e = await n(b.value);
1955
+ v.value = e;
1956
+ let t = Object.values(e).some((e) => e.templateCount > 0);
1957
+ return y.value = !0, t;
1958
+ } catch (t) {
1959
+ return e.onError?.(t), !1;
1959
1960
  }
1960
1961
  }
1961
- async function ae() {
1962
- let { delete: e } = n;
1963
- if (typeof e != "function" || (b.value = !1, x.value.length === 0)) return;
1964
- let r = x.value, i = ie(r);
1962
+ async function oe() {
1963
+ let { delete: n } = t;
1964
+ if (typeof n != "function" || (y.value = !1, b.value.length === 0)) return;
1965
+ let r = b.value, i = H(r);
1965
1966
  try {
1966
- await e(r), H(r), x.value = [], y.value = {};
1967
- for (let e of i) j(() => n.onDeleted?.(e));
1968
- } catch (e) {
1969
- t.onError?.(e);
1967
+ await n(r), U(r), b.value = [], v.value = {};
1968
+ for (let e of i) j(() => t.onDeleted?.(e));
1969
+ } catch (t) {
1970
+ e.onError?.(t);
1970
1971
  }
1971
1972
  }
1972
- function oe() {
1973
- b.value = !1, x.value = [], y.value = {};
1973
+ function se() {
1974
+ y.value = !1, b.value = [], v.value = {};
1974
1975
  }
1975
- async function se(e) {
1976
- let i = n.importFromUrl;
1977
- if (typeof i != "function") return null;
1978
- S.value = !0, C.value = null;
1976
+ async function ce(r) {
1977
+ let a = t.importFromUrl;
1978
+ if (typeof a != "function") return null;
1979
+ x.value = !0, S.value = null;
1979
1980
  try {
1980
- let t = await i(e, a.value, N());
1981
- return r.value = [t, ...r.value], j(() => n.onCreated?.(t)), t;
1982
- } catch (e) {
1983
- return C.value = e instanceof Error ? e.message : "Import failed", t.onError?.(e), null;
1981
+ let e = await a(r, i.value, N());
1982
+ return n.value = [e, ...n.value], j(() => t.onCreated?.(e)), e;
1983
+ } catch (t) {
1984
+ return S.value = t instanceof Error ? t.message : "Import failed", e.onError?.(t), null;
1984
1985
  } finally {
1985
- S.value = !1;
1986
+ x.value = !1;
1986
1987
  }
1987
1988
  }
1988
- function K(e) {
1989
- let t = new Set(g.value);
1990
- t.has(e) ? t.delete(e) : t.add(e), g.value = t;
1989
+ function le(e) {
1990
+ let t = new Set(m.value);
1991
+ t.has(e) ? t.delete(e) : t.add(e), m.value = t;
1991
1992
  }
1992
- function q() {
1993
- g.value = /* @__PURE__ */ new Set(), _.value = null;
1993
+ function G() {
1994
+ m.value = /* @__PURE__ */ new Set(), h.value = null;
1994
1995
  }
1995
- function J(e) {
1996
- _.value = e, g.value = /* @__PURE__ */ new Set([e.id]);
1996
+ function K(e) {
1997
+ h.value = e, m.value = /* @__PURE__ */ new Set([e.id]);
1997
1998
  }
1998
- async function ce() {
1999
- let { storage: e } = n;
2000
- if (typeof e != "function") k.value = null;
1999
+ async function ue() {
2000
+ let { storage: n } = t;
2001
+ if (typeof n != "function") k.value = null;
2001
2002
  else try {
2002
- k.value = await e();
2003
- } catch (e) {
2004
- t.onError?.(e);
2003
+ k.value = await n();
2004
+ } catch (t) {
2005
+ e.onError?.(t);
2005
2006
  }
2006
2007
  }
2007
- async function Y() {
2008
- let e = M();
2009
- if (e) try {
2010
- i.value = await e.list();
2011
- } catch (e) {
2012
- t.onError?.(e);
2008
+ async function q() {
2009
+ let t = M();
2010
+ if (t) try {
2011
+ r.value = await t.list();
2012
+ } catch (t) {
2013
+ e.onError?.(t);
2013
2014
  }
2014
2015
  }
2015
- async function le(e, n) {
2016
+ async function de(t, n) {
2016
2017
  let { create: r } = M() ?? { create: !1 };
2017
2018
  if (typeof r != "function") return null;
2018
2019
  try {
2019
- let t = { name: e };
2020
- n !== void 0 && (t.parentId = n);
2021
- let i = await r(t);
2022
- return await Y(), i;
2023
- } catch (e) {
2024
- return t.onError?.(e), null;
2020
+ let e = { name: t };
2021
+ n !== void 0 && (e.parentId = n);
2022
+ let i = await r(e);
2023
+ return await q(), i;
2024
+ } catch (t) {
2025
+ return e.onError?.(t), null;
2025
2026
  }
2026
2027
  }
2027
- function ue(e, t) {
2028
+ function fe(e, t) {
2028
2029
  for (let n of e) if (n.id === t) return n;
2029
2030
  return null;
2030
2031
  }
2031
- async function X(e, n) {
2032
+ async function J(t, n) {
2032
2033
  let { update: r } = M() ?? { update: !1 };
2033
2034
  if (typeof r == "function") try {
2034
- await r(e, { name: n }), await Y();
2035
- } catch (e) {
2036
- t.onError?.(e);
2035
+ await r(t, { name: n }), await q();
2036
+ } catch (t) {
2037
+ e.onError?.(t);
2037
2038
  }
2038
2039
  }
2039
- async function de(e) {
2040
+ async function pe(t) {
2040
2041
  let { delete: n } = M() ?? { delete: !1 };
2041
2042
  if (typeof n == "function") try {
2042
- let t = ue(i.value, e)?.parentId ?? null;
2043
- await n(e), a.value === e && (a.value = t), await Y(), await F();
2044
- } catch (e) {
2045
- t.onError?.(e);
2043
+ let e = fe(r.value, t)?.parentId ?? null;
2044
+ await n(t), i.value === t && (i.value = e), await q(), await F();
2045
+ } catch (t) {
2046
+ e.onError?.(t);
2046
2047
  }
2047
2048
  }
2048
- async function fe(e) {
2049
- D.value = e, T.value = null;
2050
- let { checkUsage: r } = n;
2049
+ async function Y(n) {
2050
+ D.value = n, T.value = null;
2051
+ let { checkUsage: r } = t;
2051
2052
  if (typeof r != "function") O.value = null, E.value = !0;
2052
2053
  else try {
2053
- let t = await r([e.id]);
2054
- O.value = t[e.id] ?? null, E.value = !0;
2055
- } catch (e) {
2056
- t.onError?.(e);
2054
+ let e = await r([n.id]);
2055
+ O.value = e[n.id] ?? null, E.value = !0;
2056
+ } catch (t) {
2057
+ e.onError?.(t);
2057
2058
  }
2058
2059
  }
2059
- function Z() {
2060
+ function X() {
2060
2061
  E.value = !1, D.value = null, O.value = null, T.value = null;
2061
2062
  }
2062
- function pe(e) {
2063
- r.value = r.value.map((t) => t.id === e.id ? e : t), v.value = v.value.map((t) => t.id === e.id ? e : t), _.value?.id === e.id && (_.value = e), j(() => n.onUpdated?.(e));
2063
+ function me(e) {
2064
+ n.value = n.value.map((t) => t.id === e.id ? e : t), g.value = g.value.map((t) => t.id === e.id ? e : t), h.value?.id === e.id && (h.value = e), j(() => t.onUpdated?.(e));
2064
2065
  }
2065
- async function Q(e) {
2066
- let { replace: r } = n;
2066
+ async function Z(n) {
2067
+ let { replace: r } = t;
2067
2068
  if (typeof r != "function" || !D.value) return null;
2068
2069
  w.value = !0, T.value = null;
2069
2070
  try {
2070
- let t = await r(D.value.id, e);
2071
- return pe(t), E.value = !1, D.value = null, O.value = null, t;
2072
- } catch (e) {
2073
- return T.value = e instanceof Error ? e.message : "Replace failed", t.onError?.(e), null;
2071
+ let e = await r(D.value.id, n);
2072
+ return me(e), E.value = !1, D.value = null, O.value = null, e;
2073
+ } catch (t) {
2074
+ return T.value = t instanceof Error ? t.message : "Replace failed", e.onError?.(t), null;
2074
2075
  } finally {
2075
2076
  w.value = !1;
2076
2077
  }
2077
2078
  }
2078
- async function me(e, r) {
2079
- let { replace: i } = n;
2079
+ async function he(n, r) {
2080
+ let { replace: i } = t;
2080
2081
  if (typeof i != "function") return null;
2081
2082
  try {
2082
- let t = await i(e, r);
2083
- return pe(t), t;
2084
- } catch (e) {
2085
- return t.onError?.(e), null;
2083
+ let e = await i(n, r);
2084
+ return me(e), e;
2085
+ } catch (t) {
2086
+ return e.onError?.(t), null;
2086
2087
  }
2087
2088
  }
2088
2089
  return {
2089
- items: r,
2090
- folders: i,
2091
- currentFolderId: a,
2092
- viewMode: o,
2093
- searchQuery: s,
2094
- categoryFilter: c,
2095
- sortOption: l,
2096
- isLoading: u,
2097
- isUploading: d,
2098
- uploadProgress: h,
2099
- hasMore: f,
2100
- selectedItems: g,
2101
- previewItem: _,
2102
- frequentlyUsedItems: v,
2103
- deleteUsageInfo: y,
2104
- showDeleteWarning: b,
2090
+ items: n,
2091
+ folders: r,
2092
+ currentFolderId: i,
2093
+ viewMode: a,
2094
+ searchQuery: o,
2095
+ categoryFilter: s,
2096
+ sortOption: c,
2097
+ isLoading: l,
2098
+ isUploading: u,
2099
+ uploadProgress: p,
2100
+ hasMore: d,
2101
+ selectedItems: m,
2102
+ previewItem: h,
2103
+ frequentlyUsedItems: g,
2104
+ deleteUsageInfo: v,
2105
+ showDeleteWarning: y,
2105
2106
  loadItems: F,
2106
2107
  loadMore: I,
2107
- search: L,
2108
- filterByCategory: R,
2109
- sortBy: z,
2110
- navigateToFolder: B,
2111
- showFrequentlyUsed: V,
2112
- uploadFile: ee,
2113
- uploadFiles: te,
2114
- moveSelected: ne,
2108
+ search: ee,
2109
+ filterByCategory: L,
2110
+ sortBy: te,
2111
+ navigateToFolder: ne,
2112
+ showFrequentlyUsed: R,
2113
+ uploadFile: z,
2114
+ uploadFiles: B,
2115
+ moveSelected: V,
2115
2116
  updateFile: re,
2116
- deleteSelected: U,
2117
- isImportingFromUrl: S,
2118
- importFromUrlError: C,
2119
- importFromUrl: se,
2120
- toggleSelection: K,
2121
- clearSelection: q,
2122
- selectItem: J,
2123
- loadFolders: Y,
2124
- createFolder: le,
2125
- renameFolder: X,
2126
- deleteFolder: de,
2127
- findFolderInTree: ue,
2117
+ deleteSelected: ie,
2118
+ isImportingFromUrl: x,
2119
+ importFromUrlError: S,
2120
+ importFromUrl: ce,
2121
+ toggleSelection: le,
2122
+ clearSelection: G,
2123
+ selectItem: K,
2124
+ loadFolders: q,
2125
+ createFolder: de,
2126
+ renameFolder: J,
2127
+ deleteFolder: pe,
2128
+ findFolderInTree: fe,
2128
2129
  loadFrequentlyUsed: W,
2129
- checkUsageBeforeDelete: G,
2130
- confirmDelete: ae,
2131
- cancelDelete: oe,
2130
+ checkUsageBeforeDelete: ae,
2131
+ confirmDelete: oe,
2132
+ cancelDelete: se,
2132
2133
  isReplacing: w,
2133
2134
  replaceError: T,
2134
2135
  showReplaceWarning: E,
2135
2136
  pendingReplaceItem: D,
2136
2137
  replaceUsageInfo: O,
2137
- checkUsageBeforeReplace: fe,
2138
- cancelReplace: Z,
2139
- replaceFile: Q,
2140
- replaceMediaDirectly: me,
2138
+ checkUsageBeforeReplace: Y,
2139
+ cancelReplace: X,
2140
+ replaceFile: Z,
2141
+ replaceMediaDirectly: he,
2141
2142
  storageInfo: k,
2142
- loadStorage: ce
2143
+ loadStorage: ue
2143
2144
  };
2144
2145
  }
2145
2146
  // ../media-library/src/components/MediaLibraryChrome.vue?vue&type=script&setup=true&lang.ts
@@ -2218,7 +2219,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2218
2219
  }, Yn = {
2219
2220
  key: 1,
2220
2221
  class: "tpl:relative"
2221
- }, Xn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Zn = ["data-testid", "disabled"], Qn = /* @__PURE__ */ D({
2222
+ }, Xn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Zn = ["data-testid", "disabled"], Qn = /* @__PURE__ */ O({
2222
2223
  __name: "MediaLibraryChrome",
2223
2224
  props: {
2224
2225
  provider: {},
@@ -2235,111 +2236,111 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2235
2236
  "confirm",
2236
2237
  "ready"
2237
2238
  ],
2238
- setup(e, { expose: t, emit: n }) {
2239
- let i = e, u = n, d = E(() => import("./MediaEditModal-Dy08GEwE.js")), p = h(() => i.translations), m = h(() => i.confirmTestId ?? "media-confirm"), C = {
2239
+ setup(n, { expose: l, emit: u }) {
2240
+ let d = n, p = u, _ = E(() => import("./MediaEditModal-C3U9Mi31.js")), b = m(() => d.translations), C = m(() => d.confirmTestId ?? "media-confirm"), D = {
2240
2241
  get maxFileSize() {
2241
- return i.provider.maxFileSize;
2242
+ return d.provider.maxFileSize;
2242
2243
  },
2243
2244
  get mimeTypes() {
2244
- return i.provider.mimeTypes;
2245
+ return d.provider.mimeTypes;
2245
2246
  },
2246
2247
  get accept() {
2247
- return i.accept;
2248
+ return d.accept;
2248
2249
  }
2249
2250
  };
2250
- a(ue, C);
2251
- let { isAcceptedMimeType: D, availableCategories: k } = he(C), j = mn({
2252
- provider: i.provider,
2253
- templateId: () => i.templateId,
2254
- onError: (e) => i.onError?.(e)
2251
+ a(fe, D);
2252
+ let { isAcceptedMimeType: O, availableCategories: k } = Q(D), j = mn({
2253
+ provider: d.provider,
2254
+ templateId: () => d.templateId,
2255
+ onError: (e) => d.onError?.(e)
2255
2256
  }), N = pn({
2256
2257
  library: j,
2257
- translations: p
2258
- }), P = h(() => typeof i.provider.create == "function"), F = h(() => i.provider.folders !== !1), I = h(() => typeof i.provider.importFromUrl == "function"), L = h(() => typeof i.provider.delete == "function"), R = h(() => typeof i.provider.update == "function"), z = h(() => typeof i.provider.replace == "function"), B = h(() => typeof i.provider.frequentlyUsed == "function"), ee = h(() => {
2259
- let e = i.provider.folders;
2258
+ translations: b
2259
+ }), P = m(() => typeof d.provider.create == "function"), I = m(() => d.provider.folders !== !1), L = m(() => typeof d.provider.importFromUrl == "function"), R = m(() => typeof d.provider.delete == "function"), z = m(() => typeof d.provider.update == "function"), B = m(() => typeof d.provider.replace == "function"), V = m(() => typeof d.provider.frequentlyUsed == "function"), H = m(() => {
2260
+ let e = d.provider.folders;
2260
2261
  return e !== !1 && typeof e.move == "function";
2261
- }), ne = h(() => {
2262
- let e = i.provider.folders;
2262
+ }), ie = m(() => {
2263
+ let e = d.provider.folders;
2263
2264
  return e !== !1 && typeof e.create == "function";
2264
- }), H = h(() => {
2265
- let e = i.provider.folders;
2265
+ }), W = m(() => {
2266
+ let e = d.provider.folders;
2266
2267
  return e !== !1 && typeof e.update == "function";
2267
- }), U = h(() => {
2268
- let e = i.provider.folders;
2268
+ }), ae = m(() => {
2269
+ let e = d.provider.folders;
2269
2270
  return e !== !1 && typeof e.delete == "function";
2270
- }), W = h(() => j.isLoading.value && N.displayItems.value.length === 0), G = h(() => {
2271
+ }), oe = m(() => j.isLoading.value && N.displayItems.value.length === 0), se = m(() => {
2271
2272
  let e = j.previewItem.value;
2272
- return e ? !i.accept?.length || D(e.mimeType ?? "", i.accept) : !1;
2273
- }), oe = h(() => {
2274
- if (!L.value) return 0;
2273
+ return e ? !d.accept?.length || O(e.mimeType ?? "", d.accept) : !1;
2274
+ }), ce = m(() => {
2275
+ if (!R.value) return 0;
2275
2276
  let e = 0;
2276
2277
  for (let t of j.selectedItems.value) N.displayItems.value.find((e) => e.id === t)?.canDelete !== !1 && (e += 1);
2277
2278
  return e;
2278
- }), K = h(() => N.showImportUrlModal.value || N.editingItem.value !== null || j.showReplaceWarning.value);
2279
- function q() {
2280
- return K.value ? !0 : N.showMovePicker.value ? (N.showMovePicker.value = !1, !0) : j.showDeleteWarning.value ? (j.cancelDelete(), !0) : !1;
2279
+ }), le = m(() => N.showImportUrlModal.value || N.editingItem.value !== null || j.showReplaceWarning.value);
2280
+ function G() {
2281
+ return le.value ? !0 : N.showMovePicker.value ? (N.showMovePicker.value = !1, !0) : j.showDeleteWarning.value ? (j.cancelDelete(), !0) : !1;
2281
2282
  }
2282
- function J() {
2283
- G.value && j.previewItem.value && u("confirm", j.previewItem.value);
2283
+ function K() {
2284
+ se.value && j.previewItem.value && p("confirm", j.previewItem.value);
2284
2285
  }
2285
- function le(e) {
2286
+ function de(e) {
2286
2287
  let t = e.target.value;
2287
2288
  j.filterByCategory(t || null);
2288
2289
  }
2289
- async function X() {
2290
+ async function J() {
2290
2291
  let e = /* @__PURE__ */ new Set();
2291
2292
  for (let t of j.selectedItems.value) N.displayItems.value.find((e) => e.id === t)?.canDelete !== !1 && e.add(t);
2292
2293
  j.selectedItems.value = e, await N.handleDeleteClick();
2293
2294
  }
2294
- return O(() => i.accept, (e) => {
2295
+ return e(() => d.accept, (e) => {
2295
2296
  e?.length === 1 && (j.categoryFilter.value = e[0]);
2296
- }, { immediate: !0 }), j.loadItems(), j.loadFrequentlyUsed(), j.loadStorage(), u("ready"), l(() => {
2297
+ }, { immediate: !0 }), j.loadItems(), j.loadFrequentlyUsed(), j.loadStorage(), p("ready"), x(() => {
2297
2298
  N.resetUI();
2298
- }), t({
2299
- nestedDialogOpen: K,
2300
- handleEscape: q,
2299
+ }), l({
2300
+ nestedDialogOpen: le,
2301
+ handleEscape: G,
2301
2302
  library: j,
2302
2303
  ui: N
2303
- }), (t, n) => (y(), _("div", hn, [
2304
- x("div", gn, [x("h2", _n, c(p.value.mediaLibrary.title), 1), x("div", vn, [
2305
- w(j).storageInfo.value ? (y(), T(dn, {
2304
+ }), (e, a) => (r(), v("div", hn, [
2305
+ S("div", gn, [S("h2", _n, t(b.value.mediaLibrary.title), 1), S("div", vn, [
2306
+ h(j).storageInfo.value ? (r(), T(dn, {
2306
2307
  key: 0,
2307
- "used-bytes": w(j).storageInfo.value.usedBytes,
2308
- "limit-bytes": w(j).storageInfo.value.limitBytes,
2308
+ "used-bytes": h(j).storageInfo.value.usedBytes,
2309
+ "limit-bytes": h(j).storageInfo.value.limitBytes,
2309
2310
  size: 22
2310
2311
  }, null, 8, ["used-bytes", "limit-bytes"])) : g("", !0),
2311
- x("div", yn, [x("input", {
2312
- value: w(N).searchInput.value,
2312
+ S("div", yn, [S("input", {
2313
+ value: h(N).searchInput.value,
2313
2314
  type: "search",
2314
- disabled: W.value,
2315
- "aria-label": p.value.mediaLibrary.searchAriaLabel,
2315
+ disabled: oe.value,
2316
+ "aria-label": b.value.mediaLibrary.searchAriaLabel,
2316
2317
  class: "tpl:w-52 tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-xs tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:outline-none tpl:focus:shadow-[var(--tpl-ring)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
2317
2318
  style: {
2318
2319
  "border-color": "var(--tpl-border)",
2319
2320
  "background-color": "var(--tpl-bg)",
2320
2321
  color: "var(--tpl-text)"
2321
2322
  },
2322
- placeholder: p.value.mediaLibrary.searchPlaceholder,
2323
- onInput: n[0] ||= (e) => w(N).handleSearchInput(e.target.value)
2324
- }, null, 40, bn), f(w(ae), {
2323
+ placeholder: b.value.mediaLibrary.searchPlaceholder,
2324
+ onInput: a[0] ||= (e) => h(N).handleSearchInput(e.target.value)
2325
+ }, null, 40, bn), f(h(re), {
2325
2326
  class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
2326
2327
  size: 13,
2327
2328
  "stroke-width": 2,
2328
2329
  style: { color: "var(--tpl-text-dim)" }
2329
2330
  })]),
2330
- e.showClose ? (y(), _("button", {
2331
+ n.showClose ? (r(), v("button", {
2331
2332
  key: 1,
2332
2333
  type: "button",
2333
- "aria-label": p.value.mediaLibrary.close,
2334
+ "aria-label": b.value.mediaLibrary.close,
2334
2335
  class: "tpl:flex tpl:size-7 tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
2335
2336
  style: { color: "var(--tpl-text-muted)" },
2336
- onClick: n[1] ||= (e) => u("close")
2337
- }, [f(w(se), {
2337
+ onClick: a[1] ||= (e) => p("close")
2338
+ }, [f(h(U), {
2338
2339
  size: 18,
2339
2340
  "stroke-width": 2
2340
2341
  })], 8, xn)) : g("", !0)
2341
2342
  ])]),
2342
- x("div", Sn, [f(M, {
2343
+ S("div", Sn, [f(M, {
2343
2344
  "enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
2344
2345
  "enter-from-class": "tpl:-ml-48 tpl:opacity-0",
2345
2346
  "enter-to-class": "tpl:ml-0 tpl:opacity-100",
@@ -2347,19 +2348,19 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2347
2348
  "leave-from-class": "tpl:ml-0 tpl:opacity-100",
2348
2349
  "leave-to-class": "tpl:-ml-48 tpl:opacity-0"
2349
2350
  }, {
2350
- default: r(() => [F.value && w(N).showSidebar.value ? (y(), _("div", Cn, [f(Fe, {
2351
- folders: w(N).folderTree.value,
2352
- "current-folder-id": w(j).currentFolderId.value,
2353
- "view-mode": w(j).viewMode.value,
2354
- "has-frequently-used": B.value && w(N).hasFrequentlyUsed.value,
2355
- "can-create-folder": ne.value,
2356
- "can-rename-folder": H.value,
2357
- "can-delete-folder": U.value,
2358
- onNavigate: w(j).navigateToFolder,
2359
- onCreateFolder: w(N).handleCreateFolder,
2360
- onRenameFolder: w(N).handleRenameFolder,
2361
- onDeleteFolder: w(N).handleDeleteFolder,
2362
- onShowFrequentlyUsed: w(j).showFrequentlyUsed
2351
+ default: c(() => [I.value && h(N).showSidebar.value ? (r(), v("div", Cn, [f(Fe, {
2352
+ folders: h(N).folderTree.value,
2353
+ "current-folder-id": h(j).currentFolderId.value,
2354
+ "view-mode": h(j).viewMode.value,
2355
+ "has-frequently-used": V.value && h(N).hasFrequentlyUsed.value,
2356
+ "can-create-folder": ie.value,
2357
+ "can-rename-folder": W.value,
2358
+ "can-delete-folder": ae.value,
2359
+ onNavigate: h(j).navigateToFolder,
2360
+ onCreateFolder: h(N).handleCreateFolder,
2361
+ onRenameFolder: h(N).handleRenameFolder,
2362
+ onDeleteFolder: h(N).handleDeleteFolder,
2363
+ onShowFrequentlyUsed: h(j).showFrequentlyUsed
2363
2364
  }, null, 8, [
2364
2365
  "folders",
2365
2366
  "current-folder-id",
@@ -2375,88 +2376,88 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2375
2376
  "onShowFrequentlyUsed"
2376
2377
  ])])) : g("", !0)]),
2377
2378
  _: 1
2378
- }), x("div", wn, [x("div", Tn, [x("div", En, [
2379
- F.value ? (y(), _("button", {
2379
+ }), S("div", wn, [S("div", Tn, [S("div", En, [
2380
+ I.value ? (r(), v("button", {
2380
2381
  key: 0,
2381
2382
  type: "button",
2382
2383
  "data-testid": "media-folder-toggle",
2383
2384
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
2384
- style: o({
2385
- color: w(N).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
2386
- backgroundColor: w(N).showSidebar.value ? "var(--tpl-bg)" : "transparent",
2387
- border: w(N).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
2385
+ style: s({
2386
+ color: h(N).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
2387
+ backgroundColor: h(N).showSidebar.value ? "var(--tpl-bg)" : "transparent",
2388
+ border: h(N).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
2388
2389
  }),
2389
- title: w(N).showSidebar.value ? p.value.mediaLibrary.hideFolders : p.value.mediaLibrary.showFolders,
2390
- "aria-label": w(N).showSidebar.value ? p.value.mediaLibrary.hideFolders : p.value.mediaLibrary.showFolders,
2391
- "aria-pressed": w(N).showSidebar.value,
2392
- onClick: n[2] ||= (e) => w(N).showSidebar.value = !w(N).showSidebar.value
2393
- }, [f(w(Y), {
2390
+ title: h(N).showSidebar.value ? b.value.mediaLibrary.hideFolders : b.value.mediaLibrary.showFolders,
2391
+ "aria-label": h(N).showSidebar.value ? b.value.mediaLibrary.hideFolders : b.value.mediaLibrary.showFolders,
2392
+ "aria-pressed": h(N).showSidebar.value,
2393
+ onClick: a[2] ||= (e) => h(N).showSidebar.value = !h(N).showSidebar.value
2394
+ }, [f(h(q), {
2394
2395
  size: 16,
2395
2396
  "stroke-width": 2
2396
2397
  })], 12, Dn)) : g("", !0),
2397
- w(j).viewMode.value === "frequently-used" ? (y(), _("span", On, c(p.value.mediaLibrary.frequentlyUsed), 1)) : (y(), T(xe, {
2398
+ h(j).viewMode.value === "frequently-used" ? (r(), v("span", On, t(b.value.mediaLibrary.frequentlyUsed), 1)) : (r(), T(xe, {
2398
2399
  key: 2,
2399
- folders: w(N).folderTree.value,
2400
- "current-folder-id": w(j).currentFolderId.value,
2401
- onNavigate: w(j).navigateToFolder
2400
+ folders: h(N).folderTree.value,
2401
+ "current-folder-id": h(j).currentFolderId.value,
2402
+ onNavigate: h(j).navigateToFolder
2402
2403
  }, null, 8, [
2403
2404
  "folders",
2404
2405
  "current-folder-id",
2405
2406
  "onNavigate"
2406
2407
  ])),
2407
- x("div", kn, [x("button", {
2408
+ S("div", kn, [S("button", {
2408
2409
  type: "button",
2409
2410
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
2410
- style: o({
2411
- color: w(N).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
2412
- backgroundColor: w(N).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
2411
+ style: s({
2412
+ color: h(N).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
2413
+ backgroundColor: h(N).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
2413
2414
  }),
2414
- title: p.value.mediaLibrary.viewGrid,
2415
- "aria-label": p.value.mediaLibrary.viewGrid,
2416
- "aria-pressed": w(N).layoutMode.value === "grid",
2417
- onClick: n[3] ||= (e) => w(N).layoutMode.value = "grid"
2418
- }, [f(w(ce), {
2415
+ title: b.value.mediaLibrary.viewGrid,
2416
+ "aria-label": b.value.mediaLibrary.viewGrid,
2417
+ "aria-pressed": h(N).layoutMode.value === "grid",
2418
+ onClick: a[3] ||= (e) => h(N).layoutMode.value = "grid"
2419
+ }, [f(h(ue), {
2419
2420
  size: 14,
2420
2421
  "stroke-width": 2
2421
- })], 12, An), x("button", {
2422
+ })], 12, An), S("button", {
2422
2423
  type: "button",
2423
2424
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
2424
- style: o({
2425
- color: w(N).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
2426
- backgroundColor: w(N).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
2425
+ style: s({
2426
+ color: h(N).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
2427
+ backgroundColor: h(N).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
2427
2428
  }),
2428
- title: p.value.mediaLibrary.viewList,
2429
- "aria-label": p.value.mediaLibrary.viewList,
2430
- "aria-pressed": w(N).layoutMode.value === "list",
2431
- onClick: n[4] ||= (e) => w(N).layoutMode.value = "list"
2432
- }, [f(w(ie), {
2429
+ title: b.value.mediaLibrary.viewList,
2430
+ "aria-label": b.value.mediaLibrary.viewList,
2431
+ "aria-pressed": h(N).layoutMode.value === "list",
2432
+ onClick: a[4] ||= (e) => h(N).layoutMode.value = "list"
2433
+ }, [f(h(ne), {
2433
2434
  size: 14,
2434
2435
  "stroke-width": 2
2435
2436
  })], 12, jn)])
2436
- ]), x("div", Mn, [w(k).length > 1 ? (y(), _("select", {
2437
+ ]), S("div", Mn, [h(k).length > 1 ? (r(), v("select", {
2437
2438
  key: 0,
2438
- "aria-label": p.value.mediaLibrary.filterAriaLabel,
2439
+ "aria-label": b.value.mediaLibrary.filterAriaLabel,
2439
2440
  class: "tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-7 tpl:pl-2.5 tpl:text-xs tpl:transition-all tpl:duration-150 tpl:outline-none",
2440
2441
  style: {
2441
2442
  "border-color": "var(--tpl-border)",
2442
2443
  "background-color": "var(--tpl-bg)",
2443
2444
  color: "var(--tpl-text)"
2444
2445
  },
2445
- value: w(j).categoryFilter.value ?? "",
2446
- onChange: le
2447
- }, [x("option", Pn, c(p.value.mediaLibrary.filterAll), 1), (y(!0), _(S, null, s(w(k), (e) => (y(), _("option", {
2446
+ value: h(j).categoryFilter.value ?? "",
2447
+ onChange: de
2448
+ }, [S("option", Pn, t(b.value.mediaLibrary.filterAll), 1), (r(!0), v(w, null, o(h(k), (e) => (r(), v("option", {
2448
2449
  key: e,
2449
2450
  value: e
2450
- }, c(w(N).getCategoryLabel(e)), 9, Fn))), 128))], 40, Nn)) : g("", !0)])]), x("div", In, [w(j).viewMode.value === "files" && (P.value || I.value) ? (y(), _("div", Ln, [P.value ? (y(), T(an, {
2451
+ }, t(h(N).getCategoryLabel(e)), 9, Fn))), 128))], 40, Nn)) : g("", !0)])]), S("div", In, [h(j).viewMode.value === "files" && (P.value || L.value) ? (r(), v("div", Ln, [P.value ? (r(), T(an, {
2451
2452
  key: 0,
2452
- "is-uploading": w(j).isUploading.value,
2453
- "upload-progress": w(j).uploadProgress.value,
2454
- onUpload: w(N).handleUpload
2453
+ "is-uploading": h(j).isUploading.value,
2454
+ "upload-progress": h(j).uploadProgress.value,
2455
+ onUpload: h(N).handleUpload
2455
2456
  }, null, 8, [
2456
2457
  "is-uploading",
2457
2458
  "upload-progress",
2458
2459
  "onUpload"
2459
- ])) : g("", !0), I.value ? (y(), _("button", {
2460
+ ])) : g("", !0), L.value ? (r(), v("button", {
2460
2461
  key: 1,
2461
2462
  "data-testid": "media-import-url",
2462
2463
  class: "tpl:mt-2 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
@@ -2465,26 +2466,26 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2465
2466
  color: "var(--tpl-text-muted)",
2466
2467
  "background-color": "var(--tpl-bg)"
2467
2468
  },
2468
- onClick: n[5] ||= (e) => w(N).showImportUrlModal.value = !0
2469
- }, [f(w(re), {
2469
+ onClick: a[5] ||= (e) => h(N).showImportUrlModal.value = !0
2470
+ }, [f(h(te), {
2470
2471
  size: 14,
2471
2472
  "stroke-width": 2
2472
- }), v(" " + c(p.value.mediaLibrary.importFromUrl), 1)])) : g("", !0)])) : g("", !0), f(pt, {
2473
- items: w(N).displayItems.value,
2474
- "selected-ids": w(j).selectedItems.value,
2475
- "is-loading": w(j).isLoading.value,
2476
- "has-more": w(j).viewMode.value === "files" && w(j).hasMore.value,
2477
- accept: e.accept,
2478
- layout: w(N).layoutMode.value,
2479
- "search-query": w(j).searchQuery.value,
2480
- "can-update": R.value,
2481
- "can-replace": z.value,
2482
- onSelect: w(N).handleSelect,
2483
- onToggle: w(j).toggleSelection,
2484
- onLoadMore: w(j).loadMore,
2485
- onEdit: w(N).handleEditItem,
2486
- onReplace: w(N).handleReplaceItem,
2487
- onConfirm: J
2473
+ }), y(" " + t(b.value.mediaLibrary.importFromUrl), 1)])) : g("", !0)])) : g("", !0), f(pt, {
2474
+ items: h(N).displayItems.value,
2475
+ "selected-ids": h(j).selectedItems.value,
2476
+ "is-loading": h(j).isLoading.value,
2477
+ "has-more": h(j).viewMode.value === "files" && h(j).hasMore.value,
2478
+ accept: n.accept,
2479
+ layout: h(N).layoutMode.value,
2480
+ "search-query": h(j).searchQuery.value,
2481
+ "can-update": z.value,
2482
+ "can-replace": B.value,
2483
+ onSelect: h(N).handleSelect,
2484
+ onToggle: h(j).toggleSelection,
2485
+ onLoadMore: h(j).loadMore,
2486
+ onEdit: h(N).handleEditItem,
2487
+ onReplace: h(N).handleReplaceItem,
2488
+ onConfirm: K
2488
2489
  }, null, 8, [
2489
2490
  "items",
2490
2491
  "selected-ids",
@@ -2502,37 +2503,37 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2502
2503
  "onReplace"
2503
2504
  ])])])]),
2504
2505
  f(wt, {
2505
- visible: w(N).showImportUrlModal.value,
2506
- "is-importing": w(j).isImportingFromUrl.value,
2507
- error: w(j).importFromUrlError.value,
2508
- onImport: w(N).handleImportFromUrl,
2509
- onClose: n[6] ||= (e) => w(N).showImportUrlModal.value = !1
2506
+ visible: h(N).showImportUrlModal.value,
2507
+ "is-importing": h(j).isImportingFromUrl.value,
2508
+ error: h(j).importFromUrlError.value,
2509
+ onImport: h(N).handleImportFromUrl,
2510
+ onClose: a[6] ||= (e) => h(N).showImportUrlModal.value = !1
2510
2511
  }, null, 8, [
2511
2512
  "visible",
2512
2513
  "is-importing",
2513
2514
  "error",
2514
2515
  "onImport"
2515
2516
  ]),
2516
- w(N).editingItem.value ? (y(), T(w(d), {
2517
+ h(N).editingItem.value ? (r(), T(h(_), {
2517
2518
  key: 0,
2518
2519
  visible: !0,
2519
- item: w(N).editingItem.value,
2520
- save: w(N).handleEditSave,
2521
- "can-crop": z.value && w(N).editingItem.value.canUpdate !== !1,
2522
- onClose: n[7] ||= (e) => w(N).editingItem.value = null
2520
+ item: h(N).editingItem.value,
2521
+ save: h(N).handleEditSave,
2522
+ "can-crop": B.value && h(N).editingItem.value.canUpdate !== !1,
2523
+ onClose: a[7] ||= (e) => h(N).editingItem.value = null
2523
2524
  }, null, 8, [
2524
2525
  "item",
2525
2526
  "save",
2526
2527
  "can-crop"
2527
2528
  ])) : g("", !0),
2528
2529
  f(Xt, {
2529
- visible: w(j).showReplaceWarning.value,
2530
- item: w(j).pendingReplaceItem.value,
2531
- "usage-info": w(j).replaceUsageInfo.value,
2532
- "is-replacing": w(j).isReplacing.value,
2533
- error: w(j).replaceError.value,
2534
- onReplace: w(N).handleReplaceFile,
2535
- onClose: w(j).cancelReplace
2530
+ visible: h(j).showReplaceWarning.value,
2531
+ item: h(j).pendingReplaceItem.value,
2532
+ "usage-info": h(j).replaceUsageInfo.value,
2533
+ "is-replacing": h(j).isReplacing.value,
2534
+ error: h(j).replaceError.value,
2535
+ onReplace: h(N).handleReplaceFile,
2536
+ onClose: h(j).cancelReplace
2536
2537
  }, null, 8, [
2537
2538
  "visible",
2538
2539
  "item",
@@ -2550,7 +2551,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2550
2551
  "leave-from-class": "tpl:opacity-100",
2551
2552
  "leave-to-class": "tpl:opacity-0"
2552
2553
  }, {
2553
- default: r(() => [w(j).showDeleteWarning.value ? (y(), _("div", {
2554
+ default: c(() => [h(j).showDeleteWarning.value ? (r(), v("div", {
2554
2555
  key: 0,
2555
2556
  role: "dialog",
2556
2557
  "aria-modal": "true",
@@ -2561,79 +2562,79 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2561
2562
  "backdrop-filter": "blur(8px)",
2562
2563
  "-webkit-backdrop-filter": "blur(8px)"
2563
2564
  },
2564
- onClick: n[10] ||= A((...e) => w(j).cancelDelete && w(j).cancelDelete(...e), ["self"])
2565
- }, [x("div", Rn, [
2566
- x("h3", zn, c(p.value.mediaLibrary.deleteWarningTitle), 1),
2567
- x("p", {
2568
- class: b(["tpl:text-xs", w(N).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
2565
+ onClick: a[10] ||= A((...e) => h(j).cancelDelete && h(j).cancelDelete(...e), ["self"])
2566
+ }, [S("div", Rn, [
2567
+ S("h3", zn, t(b.value.mediaLibrary.deleteWarningTitle), 1),
2568
+ S("p", {
2569
+ class: i(["tpl:text-xs", h(N).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
2569
2570
  style: { color: "var(--tpl-text-muted)" }
2570
- }, c(p.value.mediaLibrary.deleteWarningMessage), 3),
2571
- w(N).hasUsedFiles.value ? (y(), _("p", Bn, c(p.value.mediaLibrary.deleteWarningUsageNote), 1)) : g("", !0),
2572
- w(N).hasUsedFiles.value ? (y(), _("div", Vn, [(y(!0), _(S, null, s(w(j).deleteUsageInfo.value, (e, t) => (y(), _("div", {
2573
- key: t,
2571
+ }, t(b.value.mediaLibrary.deleteWarningMessage), 3),
2572
+ h(N).hasUsedFiles.value ? (r(), v("p", Bn, t(b.value.mediaLibrary.deleteWarningUsageNote), 1)) : g("", !0),
2573
+ h(N).hasUsedFiles.value ? (r(), v("div", Vn, [(r(!0), v(w, null, o(h(j).deleteUsageInfo.value, (e, n) => (r(), v("div", {
2574
+ key: n,
2574
2575
  class: "tpl:text-xs",
2575
2576
  style: { color: "var(--tpl-text)" }
2576
- }, [e.templateCount > 0 ? (y(), _(S, { key: 0 }, [x("span", Hn, c(w(N).displayItems.value.find((e) => e.id === t)?.filename || t), 1), x("span", Un, " - " + c(p.value.mediaLibrary.usedInTemplates.replace("{count}", e.templateCount.toString())), 1)], 64)) : g("", !0)]))), 128))])) : g("", !0),
2577
- x("div", Wn, [x("button", {
2577
+ }, [e.templateCount > 0 ? (r(), v(w, { key: 0 }, [S("span", Hn, t(h(N).displayItems.value.find((e) => e.id === n)?.filename || n), 1), S("span", Un, " - " + t(b.value.mediaLibrary.usedInTemplates.replace("{count}", e.templateCount.toString())), 1)], 64)) : g("", !0)]))), 128))])) : g("", !0),
2578
+ S("div", Wn, [S("button", {
2578
2579
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
2579
2580
  style: {
2580
2581
  "border-color": "var(--tpl-border)",
2581
2582
  color: "var(--tpl-text)",
2582
2583
  "background-color": "var(--tpl-bg)"
2583
2584
  },
2584
- onClick: n[8] ||= (...e) => w(j).cancelDelete && w(j).cancelDelete(...e)
2585
- }, c(p.value.mediaLibrary.cancel), 1), x("button", {
2585
+ onClick: a[8] ||= (...e) => h(j).cancelDelete && h(j).cancelDelete(...e)
2586
+ }, t(b.value.mediaLibrary.cancel), 1), S("button", {
2586
2587
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
2587
2588
  style: {
2588
2589
  "border-color": "var(--tpl-danger)",
2589
2590
  color: "var(--tpl-danger)",
2590
2591
  "background-color": "var(--tpl-bg)"
2591
2592
  },
2592
- onClick: n[9] ||= (...e) => w(j).confirmDelete && w(j).confirmDelete(...e)
2593
- }, c(w(N).hasUsedFiles.value ? p.value.mediaLibrary.deleteAnyway : p.value.mediaLibrary.confirmDelete), 1)])
2593
+ onClick: a[9] ||= (...e) => h(j).confirmDelete && h(j).confirmDelete(...e)
2594
+ }, t(h(N).hasUsedFiles.value ? b.value.mediaLibrary.deleteAnyway : b.value.mediaLibrary.confirmDelete), 1)])
2594
2595
  ])])) : g("", !0)]),
2595
2596
  _: 1
2596
2597
  }),
2597
- x("div", Gn, [x("div", Kn, [w(j).previewItem.value ? (y(), T(It, {
2598
+ S("div", Gn, [S("div", Kn, [h(j).previewItem.value ? (r(), T(It, {
2598
2599
  key: 0,
2599
- item: w(j).previewItem.value,
2600
- folders: w(N).folderTree.value
2601
- }, null, 8, ["item", "folders"])) : g("", !0)]), x("div", qn, [w(j).selectedItems.value.size > 0 ? (y(), _("div", Jn, [w(j).previewItem.value ? (y(), _("button", {
2600
+ item: h(j).previewItem.value,
2601
+ folders: h(N).folderTree.value
2602
+ }, null, 8, ["item", "folders"])) : g("", !0)]), S("div", qn, [h(j).selectedItems.value.size > 0 ? (r(), v("div", Jn, [h(j).previewItem.value ? (r(), v("button", {
2602
2603
  key: 0,
2603
2604
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
2604
- style: o({
2605
- borderColor: w(N).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
2606
- color: w(N).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
2605
+ style: s({
2606
+ borderColor: h(N).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
2607
+ color: h(N).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
2607
2608
  backgroundColor: "var(--tpl-bg)"
2608
2609
  }),
2609
- onClick: n[11] ||= (e) => w(N).copy(w(N).selectedUrl.value)
2610
- }, [w(N).copied.value ? (y(), T(w(V), {
2610
+ onClick: a[11] ||= (e) => h(N).copy(h(N).selectedUrl.value)
2611
+ }, [h(N).copied.value ? (r(), T(h(F), {
2611
2612
  key: 1,
2612
2613
  size: 12,
2613
2614
  "stroke-width": 2
2614
- })) : (y(), T(w(te), {
2615
+ })) : (r(), T(h(ee), {
2615
2616
  key: 0,
2616
2617
  size: 12,
2617
2618
  "stroke-width": 2
2618
- })), v(" " + c(w(N).copied.value ? p.value.mediaLibrary.copied : p.value.mediaLibrary.copyUrl), 1)], 4)) : g("", !0), ee.value ? (y(), _("div", Yn, [x("button", {
2619
+ })), y(" " + t(h(N).copied.value ? b.value.mediaLibrary.copied : b.value.mediaLibrary.copyUrl), 1)], 4)) : g("", !0), H.value ? (r(), v("div", Yn, [S("button", {
2619
2620
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
2620
2621
  style: {
2621
2622
  "border-color": "var(--tpl-border)",
2622
2623
  color: "var(--tpl-text)",
2623
2624
  "background-color": "var(--tpl-bg)"
2624
2625
  },
2625
- onClick: n[12] ||= (e) => w(N).showMovePicker.value = !w(N).showMovePicker.value
2626
- }, c(p.value.mediaLibrary.moveSelected), 1), w(N).showMovePicker.value ? (y(), T(kt, {
2626
+ onClick: a[12] ||= (e) => h(N).showMovePicker.value = !h(N).showMovePicker.value
2627
+ }, t(b.value.mediaLibrary.moveSelected), 1), h(N).showMovePicker.value ? (r(), T(kt, {
2627
2628
  key: 0,
2628
- folders: w(N).folderTree.value,
2629
- "current-folder-id": w(j).currentFolderId.value,
2630
- onSelect: w(N).handleMoveToFolder,
2631
- onClose: n[13] ||= (e) => w(N).showMovePicker.value = !1
2629
+ folders: h(N).folderTree.value,
2630
+ "current-folder-id": h(j).currentFolderId.value,
2631
+ onSelect: h(N).handleMoveToFolder,
2632
+ onClose: a[13] ||= (e) => h(N).showMovePicker.value = !1
2632
2633
  }, null, 8, [
2633
2634
  "folders",
2634
2635
  "current-folder-id",
2635
2636
  "onSelect"
2636
- ])) : g("", !0)])) : g("", !0)])) : g("", !0), x("div", Xn, [oe.value > 0 ? (y(), _("button", {
2637
+ ])) : g("", !0)])) : g("", !0)])) : g("", !0), S("div", Xn, [ce.value > 0 ? (r(), v("button", {
2637
2638
  key: 0,
2638
2639
  "data-testid": "media-delete",
2639
2640
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
@@ -2642,24 +2643,24 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
2642
2643
  color: "var(--tpl-danger)",
2643
2644
  "background-color": "var(--tpl-bg)"
2644
2645
  },
2645
- onClick: X
2646
- }, c(p.value.mediaLibrary.deleteSelected), 1)) : g("", !0), e.showConfirm ? (y(), _("button", {
2646
+ onClick: J
2647
+ }, t(b.value.mediaLibrary.deleteSelected), 1)) : g("", !0), n.showConfirm ? (r(), v("button", {
2647
2648
  key: 1,
2648
- "data-testid": m.value,
2649
+ "data-testid": C.value,
2649
2650
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-4 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
2650
2651
  style: {
2651
2652
  "background-color": "var(--tpl-primary)",
2652
2653
  color: "var(--tpl-on-primary)"
2653
2654
  },
2654
- disabled: !G.value,
2655
- onClick: J
2656
- }, c(e.accept?.length ? p.value.mediaLibrary.selectImage : p.value.mediaLibrary.selectFile), 9, Zn)) : g("", !0)])])])
2655
+ disabled: !se.value,
2656
+ onClick: K
2657
+ }, t(n.accept?.length ? b.value.mediaLibrary.selectImage : b.value.mediaLibrary.selectFile), 9, Zn)) : g("", !0)])])])
2657
2658
  ]));
2658
2659
  }
2659
2660
  }), $n = /* #__PURE__ */ Object.assign({
2660
2661
  "./locales/ca.ts": () => import("./ca-Cc6eL0ZS.js"),
2661
2662
  "./locales/de.ts": () => import("./de-DtrXVcuY.js"),
2662
- "./locales/en.ts": () => import("./en-Db76vJbY.js"),
2663
+ "./locales/en.ts": () => import("./en-Do0SU6tR.js"),
2663
2664
  "./locales/es.ts": () => import("./es-Dw_h7Oll.js"),
2664
2665
  "./locales/fr.ts": () => import("./fr-BJaeKu_8.js"),
2665
2666
  "./locales/ja.ts": () => import("./ja-Cu2HdYaK.js"),
@@ -2688,7 +2689,7 @@ async function or(e) {
2688
2689
  return (await t()).default;
2689
2690
  }
2690
2691
  // ../media-library/src/components/MediaLibraryModal.vue?vue&type=script&setup=true&lang.ts
2691
- var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ D({
2692
+ var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ O({
2692
2693
  __name: "MediaLibraryModal",
2693
2694
  props: {
2694
2695
  visible: { type: Boolean },
@@ -2702,24 +2703,24 @@ var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ D({
2702
2703
  },
2703
2704
  emits: ["close", "select"],
2704
2705
  setup(t, { emit: n }) {
2705
- let i = t, o = n, s = e(null);
2706
- O(() => i.locale, async (e) => {
2707
- s.value = await or(e ?? "en");
2708
- }, { immediate: !0 }), a(de, s);
2709
- let c = h(() => i.uiTheme);
2710
- a(fe, c);
2711
- let l = C(() => i.popoverTarget ?? null);
2712
- a(X, l), a(Z, C(() => i.locale));
2713
- let u = e(null), d = e(null);
2714
- _e(u, h(() => i.visible && s.value !== null && !d.value?.nestedDialogOpen));
2715
- function m(e) {
2716
- e.key === "Escape" && (d.value?.handleEscape() ? e.preventDefault() : o("close"));
2706
+ let o = t, s = n, l = _(null);
2707
+ e(() => o.locale, async (e) => {
2708
+ l.value = await or(e ?? "en");
2709
+ }, { immediate: !0 }), a(pe, l);
2710
+ let u = m(() => o.uiTheme);
2711
+ a(Y, u);
2712
+ let d = b(() => o.popoverTarget ?? null);
2713
+ a(J, d), a(X, b(() => o.locale));
2714
+ let h = _(null), y = _(null);
2715
+ _e(h, m(() => o.visible && l.value !== null && !y.value?.nestedDialogOpen));
2716
+ function x(e) {
2717
+ e.key === "Escape" && (y.value?.handleEscape() ? e.preventDefault() : s("close"));
2717
2718
  }
2718
- P(document, "keydown", m);
2719
- function v(e) {
2720
- o("select", e), o("close");
2719
+ W(document, "keydown", x);
2720
+ function C(e) {
2721
+ s("select", e), s("close");
2721
2722
  }
2722
- return (e, n) => (y(), T(p, { to: t.popoverTarget || "body" }, [f(M, {
2723
+ return (e, n) => (r(), T(p, { to: t.popoverTarget || "body" }, [f(M, {
2723
2724
  "enter-active-class": "tpl:transition tpl:duration-200",
2724
2725
  "enter-from-class": "tpl:opacity-0",
2725
2726
  "enter-to-class": "tpl:opacity-100",
@@ -2727,20 +2728,20 @@ var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ D({
2727
2728
  "leave-from-class": "tpl:opacity-100",
2728
2729
  "leave-to-class": "tpl:opacity-0"
2729
2730
  }, {
2730
- default: r(() => [t.visible && s.value ? (y(), _("div", {
2731
+ default: c(() => [t.visible && l.value ? (r(), v("div", {
2731
2732
  key: 0,
2732
2733
  "data-testid": "media-library-modal",
2733
- "data-tpl-theme": c.value,
2734
- class: b([t.popoverTarget ? void 0 : "tpl", "tpl-media-overlay tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
2734
+ "data-tpl-theme": u.value,
2735
+ class: i([t.popoverTarget ? void 0 : "tpl", "tpl-media-overlay tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
2735
2736
  style: {
2736
2737
  "background-color": "var(--tpl-overlay)",
2737
2738
  "backdrop-filter": "blur(8px)",
2738
2739
  "-webkit-backdrop-filter": "blur(8px)"
2739
2740
  },
2740
- onClick: n[1] ||= A((e) => o("close"), ["self"])
2741
- }, [x("div", {
2741
+ onClick: n[1] ||= A((e) => s("close"), ["self"])
2742
+ }, [S("div", {
2742
2743
  ref_key: "dialogRef",
2743
- ref: u,
2744
+ ref: h,
2744
2745
  role: "dialog",
2745
2746
  "aria-modal": "true",
2746
2747
  "aria-labelledby": "tpl-media-library-title",
@@ -2757,17 +2758,17 @@ var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ D({
2757
2758
  }
2758
2759
  }, [f(Qn, {
2759
2760
  ref_key: "chromeRef",
2760
- ref: d,
2761
+ ref: y,
2761
2762
  provider: t.provider,
2762
2763
  accept: t.accept,
2763
2764
  "template-id": t.templateId,
2764
2765
  "on-error": t.onError,
2765
- translations: s.value,
2766
+ translations: l.value,
2766
2767
  "show-close": "",
2767
2768
  "show-confirm": "",
2768
2769
  "confirm-test-id": "media-confirm",
2769
- onClose: n[0] ||= (e) => o("close"),
2770
- onConfirm: v
2770
+ onClose: n[0] ||= (e) => s("close"),
2771
+ onConfirm: C
2771
2772
  }, null, 8, [
2772
2773
  "provider",
2773
2774
  "accept",
@@ -2779,4 +2780,4 @@ var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ D({
2779
2780
  })], 8, ["to"]));
2780
2781
  }
2781
2782
  });
2782
- export { cr as MediaLibraryModal, X as a, pe as i, he as n, fe as o, Q as r, _e as t };
2783
+ export { cr as MediaLibraryModal, J as a, me as i, Q as n, Y as o, Z as r, _e as t };