@templatical/editor 0.56.0 → 0.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-CpZ7UeAZ.js} +3 -3
- package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cy05P-iO.js} +53 -53
- package/dist/{AiPanels-DAsnX-a3.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-DgqJHnza.js} +8 -8
- package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-CxHJmuOh.js} +3 -3
- package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-DEmNZkEG.js} +44 -44
- package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-Bmlf05Il.js} +11 -11
- package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-C27GCMvK.js} +7 -7
- package/dist/{CommentsPanel-C5qG17Ki.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-C7CWcUYZ.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-uwuzeMSW.js} +87 -87
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-CDK_9D7P.js} +8 -8
- package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-BSolF7Fd.js} +3 -3
- package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-DJlf3VbS.js} +1 -1
- package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-Dqco128s.js} +156 -156
- package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-xIEF0Y3Z.js} +2 -2
- package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CQlCP_XC.js} +46 -46
- package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-BXA32Fx6.js} +23 -23
- package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-3BRl8u5l.js} +21 -21
- package/dist/{Toolbar-XT-uGA9J.js → Toolbar-pzNIakGM.js} +656 -656
- package/dist/{TplModal-7NQq5-VW.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu--T-Qp_mH.js} +15 -15
- package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-CjfCPceb.js} +11 -11
- package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-12OMwVyN.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-PFjTrl0y.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-CnkyjPEu.js} +11 -11
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DncZ-HDf.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-B3HkuENF.js.map → BlockPreviewCanvas-CCSEzL46.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-CRztnw4M.js} +2 -2
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-IuLYT2x7.js} +8 -8
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-CrplCzo8.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-B6MNInCL.js} +110 -110
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-TxeAl8Iq.js} +9 -9
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-DvSVx2DB.js} +4 -4
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-DvSVx2DB.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B2xxIU3e.js} +2 -2
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-Dze4C9VI.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-VH07SzX7.js} +550 -550
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js.map → Toolbar-VH07SzX7.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-DkwbKhBl.js} +15 -15
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-CCCIcqe2.js} +12 -12
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-CCCIcqe2.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-D3lsO7Io.js} +925 -925
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-CE79GB1H.js} +15 -15
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CN69NlOK.js} +170 -170
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-8dlM-fU4.js} +96 -96
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-8dlM-fU4.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-BFgc3qqJ.js} +2 -2
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-GgKlXNxy.js} +2 -2
- package/dist/cdn/chunks/{src-Bfj1jHnn.js.map → src-GgKlXNxy.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-B0PDeDxl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BSU75bKk.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/editor.js +325 -325
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-CRX6rncm.js → composables-DreAt_0A.js} +1031 -1031
- package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-CL4tUlDC.js} +14 -14
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
- package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
- package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
- package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
- package/dist/dist-CiYotUR8.js +406 -0
- package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
- package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
- package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
- package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
- package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
- package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
- package/dist/{editor-modal-D9HT9bD6.js → editor-modal-BD32TXws.js} +106 -106
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{extensions-Cm6K4SRX.js → extensions-DKxHlSd7.js} +179 -179
- package/dist/{socialIcons-CJD6OsI7.js → socialIcons-oo4uL16Y.js} +1 -1
- package/dist/templatical-editor.js +526 -526
- package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-B4Zpk3eo.js} +3 -3
- package/dist/{useMergeTag-IoWOO679.js → useMergeTag-B5qlq8px.js} +7 -7
- package/package.json +7 -7
- package/dist/LanguageMenu-B981Av-6.js +0 -403
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-De3uAutQ.js +0 -1
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, U as ee, _ as o, c as s, ct as c, d as l, et as u, f as d, g as f, l as p, r as m, u as h, w as g, y as _ } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
+
import { t as te } from "./dist-CiYotUR8.js";
|
|
3
|
+
import { t as v } from "./triangle-alert-CKcpwtUj.js";
|
|
4
|
+
import { t as y } from "./createLucideIcon-CfBdtoUw.js";
|
|
5
|
+
import { t as ne } from "./check-CcuCoJDh.js";
|
|
6
|
+
import { t as re } from "./chevron-down-BfYIbFbC.js";
|
|
7
|
+
import { t as ie } from "./chevron-right-DyjFqY35.js";
|
|
8
|
+
import { t as ae } from "./plus-DxZiv9YC.js";
|
|
9
|
+
import { t as oe } from "./trash-Cr7rD5Hh.js";
|
|
10
|
+
import { At as se, et as ce, jt as b, st as le, tt as ue } from "./dist-BMUUt3zJ.js";
|
|
11
|
+
import { t as de } from "./useI18n-zeWYtWSv.js";
|
|
12
|
+
import { t as fe } from "./useLocalizedDisplay-Cbhx208c.js";
|
|
13
|
+
import { E as pe, h as me, it as he, t as ge } from "./keys-w_VRjoMu.js";
|
|
14
|
+
import { t as x } from "./plural-CyxrJXL1.js";
|
|
15
|
+
import { t as S } from "./languageName-DEEOhDWI.js";
|
|
16
|
+
import { C as _e, b as ve, f as ye, u as be, w as xe } from "./styleConstants-CgiNKdnc.js";
|
|
17
|
+
import { t as Se } from "./TplModal-WNuWhHZm.js";
|
|
18
|
+
import { t as C } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
19
|
+
var Ce = y({
|
|
20
|
+
name: "arrow-up-to-line",
|
|
21
|
+
size: 24,
|
|
22
|
+
node: [
|
|
23
|
+
["path", {
|
|
24
|
+
d: "M5 3h14",
|
|
25
|
+
key: "7usisc"
|
|
26
|
+
}],
|
|
27
|
+
["path", {
|
|
28
|
+
d: "m18 13-6-6-6 6",
|
|
29
|
+
key: "1kf1n9"
|
|
30
|
+
}],
|
|
31
|
+
["path", {
|
|
32
|
+
d: "M12 7v14",
|
|
33
|
+
key: "1akyts"
|
|
34
|
+
}]
|
|
35
|
+
]
|
|
36
|
+
}), we = y({
|
|
37
|
+
name: "ellipsis",
|
|
38
|
+
size: 24,
|
|
39
|
+
node: [
|
|
40
|
+
["circle", {
|
|
41
|
+
cx: "12",
|
|
42
|
+
cy: "12",
|
|
43
|
+
r: "1",
|
|
44
|
+
key: "41hilf"
|
|
45
|
+
}],
|
|
46
|
+
["circle", {
|
|
47
|
+
cx: "19",
|
|
48
|
+
cy: "12",
|
|
49
|
+
r: "1",
|
|
50
|
+
key: "1wjl8i"
|
|
51
|
+
}],
|
|
52
|
+
["circle", {
|
|
53
|
+
cx: "5",
|
|
54
|
+
cy: "12",
|
|
55
|
+
r: "1",
|
|
56
|
+
key: "1pcz8c"
|
|
57
|
+
}]
|
|
58
|
+
],
|
|
59
|
+
aliases: ["more-horizontal"]
|
|
60
|
+
}), Te = [
|
|
61
|
+
"aria-expanded",
|
|
62
|
+
"title",
|
|
63
|
+
"aria-label"
|
|
64
|
+
], Ee = { class: "tpl-language-name" }, De = {
|
|
65
|
+
class: "tpl-language-tag tpl:truncate",
|
|
66
|
+
"aria-hidden": "true"
|
|
67
|
+
}, Oe = { class: "tpl-language-count tpl:shrink-0 tpl:tabular-nums" }, ke = ["aria-label"], Ae = { class: "tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, je = { class: "tpl:max-h-64 tpl:overflow-y-auto" }, Me = ["data-active"], Ne = [
|
|
68
|
+
"aria-checked",
|
|
69
|
+
"data-testid",
|
|
70
|
+
"onClick"
|
|
71
|
+
], Pe = { class: "tpl:flex tpl:w-3 tpl:shrink-0" }, Fe = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, Ie = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Le = ["data-testid"], Re = [
|
|
72
|
+
"data-testid",
|
|
73
|
+
"aria-expanded",
|
|
74
|
+
"aria-label",
|
|
75
|
+
"onClick"
|
|
76
|
+
], ze = ["aria-label"], Be = [
|
|
77
|
+
"data-testid",
|
|
78
|
+
"aria-disabled",
|
|
79
|
+
"aria-label",
|
|
80
|
+
"aria-describedby",
|
|
81
|
+
"onClick"
|
|
82
|
+
], Ve = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-1" }, He = ["data-testid", "onClick"], Ue = {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: "tpl:relative tpl:border-t tpl:border-[var(--tpl-border)]"
|
|
85
|
+
}, We = ["aria-expanded"], Ge = ["aria-label"], Ke = ["data-testid", "onClick"], qe = ["aria-label"], Je = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ye = {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
88
|
+
}, Xe = {
|
|
89
|
+
key: 1,
|
|
90
|
+
class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
91
|
+
}, Ze = {
|
|
92
|
+
key: 2,
|
|
93
|
+
role: "alert",
|
|
94
|
+
"data-testid": "language-default-error",
|
|
95
|
+
class: "tpl:mb-4 tpl:flex tpl:items-start tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-danger)]"
|
|
96
|
+
}, Qe = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, $e = ["data-testid"], et = ["data-testid", "disabled"], w = "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:border-0 tpl:bg-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:text-xs tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", T = "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:shadow-[var(--tpl-shadow-md)]", E = /*#__PURE__*/ C(/* @__PURE__ */ _({
|
|
97
|
+
__name: "LanguageMenu",
|
|
98
|
+
props: {
|
|
99
|
+
editor: {},
|
|
100
|
+
locales: {}
|
|
101
|
+
},
|
|
102
|
+
setup(_) {
|
|
103
|
+
let y = _, { t: C, format: E } = de(), D = g(he, void 0) ?? "en", tt = g(pe, null), O = g(me, []), k = u(null), A = u(null), j = `tpl-language-reason-${le()}`, M = u(!1), N = u(null), P = u(null), F = u(null), I = u(null), L = u(null), R = s(() => ue(y.editor.content.value)), z = s(() => y.editor.activeLocale?.value ?? R.value), B = s(() => y.editor.content.value.settings.locales ?? []), V = s(() => y.locales.filter((e) => e !== R.value && !B.value.includes(e))), H = s(() => z.value === R.value || y.locales.includes(z.value)), U = g(ge, null) ?? fe(y.editor, O), W = s(() => M.value ? [R.value, ...B.value].map((e) => ({
|
|
104
|
+
locale: e,
|
|
105
|
+
coverage: e === R.value ? null : e === z.value ? U.value : se(y.editor.content.value, e, O)
|
|
106
|
+
})) : []), nt = s(() => N.value && B.value.includes(N.value) && H.value && y.locales.includes(N.value) ? b(y.editor.content.value, N.value) : []), G = s(() => y.locales.includes(R.value)), K = s(() => nt.value.length > 0 || !G.value), q = s(() => (U.value?.missing.length ?? 0) + (U.value?.stale.length ?? 0)), J = s(() => q.value ? E(C.localization.gapTooltip, {
|
|
107
|
+
missing: U.value.missing.length,
|
|
108
|
+
stale: U.value.stale.length
|
|
109
|
+
}) : S(z.value)), rt = s(() => q.value ? `${S(z.value)} ${q.value} (${z.value}), ${J.value}` : `${S(z.value)} (${z.value})`);
|
|
110
|
+
function it(e) {
|
|
111
|
+
let t = [];
|
|
112
|
+
return e.missing.length && t.push(x(C.localization.missingCount, e.missing.length, D)), e.stale.length && t.push(x(C.localization.staleCount, e.stale.length, D)), t.join(" · ") || C.localization.complete;
|
|
113
|
+
}
|
|
114
|
+
function Y() {
|
|
115
|
+
M.value = !1, N.value = null, i(() => A.value?.focus());
|
|
116
|
+
}
|
|
117
|
+
async function at() {
|
|
118
|
+
M.value ? Y() : (M.value = !0, await i(), k.value?.querySelector("[role=\"menuitemradio\"]")?.focus());
|
|
119
|
+
}
|
|
120
|
+
async function X(e) {
|
|
121
|
+
N.value = N.value === e ? null : e, await i(), k.value?.querySelector("[data-language-submenu] [role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
122
|
+
}
|
|
123
|
+
function ot() {
|
|
124
|
+
let e = N.value;
|
|
125
|
+
N.value = null, k.value?.querySelector(`[data-testid="${e === "add" ? "language-add" : `language-actions-${e}`}"]`)?.focus();
|
|
126
|
+
}
|
|
127
|
+
function st(e) {
|
|
128
|
+
let t = e.target;
|
|
129
|
+
if (t.closest("[role=\"dialog\"]")) return;
|
|
130
|
+
if (e.key === "Escape" || e.key === "ArrowLeft" && N.value) {
|
|
131
|
+
e.preventDefault(), e.stopPropagation(), N.value ? ot() : Y();
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (t === A.value && ["ArrowDown", "ArrowUp"].includes(e.key)) {
|
|
135
|
+
e.preventDefault(), M.value || at();
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (e.key === "ArrowRight" && !t.closest("[data-language-submenu]")) {
|
|
139
|
+
let n = t.dataset.testid ?? "", r = n.replace(/^language-(option|actions)-/, "");
|
|
140
|
+
(n === "language-add" || r !== R.value && H.value && y.locales.includes(r)) && (e.preventDefault(), X(n === "language-add" ? "add" : r));
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (![
|
|
144
|
+
"ArrowDown",
|
|
145
|
+
"ArrowUp",
|
|
146
|
+
"Home",
|
|
147
|
+
"End"
|
|
148
|
+
].includes(e.key)) return;
|
|
149
|
+
e.preventDefault();
|
|
150
|
+
let n = t.closest("[role=\"menu\"]"), r = Array.from(n?.querySelectorAll("[role^=\"menuitem\"]:not(:disabled)") ?? []).filter((e) => e.closest("[role=\"menu\"]") === n), i = r.indexOf(t);
|
|
151
|
+
r[e.key === "Home" ? 0 : e.key === "End" ? r.length - 1 : (i + (e.key === "ArrowDown" ? 1 : -1) + r.length) % r.length]?.focus();
|
|
152
|
+
}
|
|
153
|
+
function ct(e) {
|
|
154
|
+
y.editor.setActiveLocale?.(e === R.value ? null : e), Y();
|
|
155
|
+
}
|
|
156
|
+
function lt(e) {
|
|
157
|
+
H.value && V.value.includes(e) && (y.editor.addLocale?.(e), Y());
|
|
158
|
+
}
|
|
159
|
+
function ut() {
|
|
160
|
+
I.value = null, L.value = {
|
|
161
|
+
templateId: y.editor.state.template?.id ?? null,
|
|
162
|
+
loadVersion: y.editor.loadVersion?.value
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
function dt() {
|
|
166
|
+
return L.value !== null && L.value.templateId === (y.editor.state.template?.id ?? null) && L.value.loadVersion === y.editor.loadVersion?.value;
|
|
167
|
+
}
|
|
168
|
+
function ft(e) {
|
|
169
|
+
ut(), P.value = e, N.value = null;
|
|
170
|
+
}
|
|
171
|
+
function Z(e) {
|
|
172
|
+
return H.value && B.value.includes(e) && y.locales.includes(e) && G.value && b(y.editor.content.value, e).length === 0;
|
|
173
|
+
}
|
|
174
|
+
function pt(e) {
|
|
175
|
+
Z(e) && (ut(), F.value = { locale: e }, N.value = null);
|
|
176
|
+
}
|
|
177
|
+
let mt = s(() => F.value ? ce(y.editor.content.value, F.value.locale, O).length : 0), Q = s(() => F.value ? E(C.localization.makeDefaultConfirmation, { language: S(F.value.locale) }) : E(C.localization.removeConfirmation, { language: S(P.value ?? R.value) }));
|
|
178
|
+
function $() {
|
|
179
|
+
let e = F.value?.locale ?? P.value;
|
|
180
|
+
L.value = null, I.value = null, F.value = null, P.value = null, i(() => {
|
|
181
|
+
if (!M.value) {
|
|
182
|
+
A.value?.focus();
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
let t = `language-actions-${e}`;
|
|
186
|
+
k.value?.querySelector(`[data-testid="${t}"]`)?.focus();
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function ht() {
|
|
190
|
+
if (!dt()) $(), Y();
|
|
191
|
+
else if (H.value) {
|
|
192
|
+
if (F.value) {
|
|
193
|
+
let e = F.value.locale;
|
|
194
|
+
if (!Z(e)) return;
|
|
195
|
+
let t = tt?.setDefaultLocale(e);
|
|
196
|
+
if (!t) return;
|
|
197
|
+
if (!t.applied) {
|
|
198
|
+
I.value = E(C.localization.defaultRefused, {
|
|
199
|
+
language: S(e),
|
|
200
|
+
reason: t.error.code === "locked_by_others" || t.error.code === "lock_held" ? C.localization.defaultLockedReason : t.error.message
|
|
201
|
+
});
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
} else P.value && y.locales.includes(P.value) && y.editor.removeLocale?.(P.value);
|
|
205
|
+
$(), Y();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return e([() => y.editor.state.template?.id ?? null, () => y.editor.loadVersion?.value], () => {
|
|
209
|
+
(M.value || L.value !== null) && ($(), Y());
|
|
210
|
+
}, { flush: "sync" }), e(() => F.value !== null && !Z(F.value.locale), (e) => {
|
|
211
|
+
e && ($(), Y());
|
|
212
|
+
}), te(k, () => {
|
|
213
|
+
M.value = !1, N.value = null;
|
|
214
|
+
}), (e, i) => (n(), d("div", {
|
|
215
|
+
ref_key: "root",
|
|
216
|
+
ref: k,
|
|
217
|
+
class: "tpl-language-control tpl:relative tpl:min-w-0 tpl:shrink-0",
|
|
218
|
+
onKeydown: st
|
|
219
|
+
}, [
|
|
220
|
+
p("button", {
|
|
221
|
+
ref_key: "trigger",
|
|
222
|
+
ref: A,
|
|
223
|
+
type: "button",
|
|
224
|
+
"data-testid": "language-menu",
|
|
225
|
+
"aria-haspopup": "menu",
|
|
226
|
+
"aria-expanded": M.value,
|
|
227
|
+
title: J.value,
|
|
228
|
+
"aria-label": rt.value,
|
|
229
|
+
class: r([c(xe), "tpl-language-trigger"]),
|
|
230
|
+
onClick: at
|
|
231
|
+
}, [
|
|
232
|
+
p("span", Ee, t(c(S)(z.value)), 1),
|
|
233
|
+
p("span", De, t(z.value), 1),
|
|
234
|
+
q.value ? (n(), d(m, { key: 0 }, [o(c(v), {
|
|
235
|
+
size: 12,
|
|
236
|
+
"aria-hidden": "true",
|
|
237
|
+
class: "tpl:shrink-0 tpl:text-[var(--tpl-warning)]"
|
|
238
|
+
}), p("span", Oe, t(q.value), 1)], 64)) : l("", !0),
|
|
239
|
+
o(c(re), {
|
|
240
|
+
size: 12,
|
|
241
|
+
"aria-hidden": "true",
|
|
242
|
+
class: "tpl-language-chevron tpl:shrink-0"
|
|
243
|
+
})
|
|
244
|
+
], 10, Te),
|
|
245
|
+
M.value ? (n(), d("div", {
|
|
246
|
+
key: 0,
|
|
247
|
+
role: "menu",
|
|
248
|
+
"aria-label": c(C).localization.languages,
|
|
249
|
+
class: r([T, "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:w-72"])
|
|
250
|
+
}, [
|
|
251
|
+
p("div", Ae, t(c(C).localization.languages), 1),
|
|
252
|
+
p("div", je, [(n(!0), d(m, null, a(W.value, (e) => (n(), d("div", {
|
|
253
|
+
key: e.locale,
|
|
254
|
+
class: "tpl-language-row tpl:flex tpl:items-center",
|
|
255
|
+
"data-active": z.value === e.locale
|
|
256
|
+
}, [p("button", {
|
|
257
|
+
type: "button",
|
|
258
|
+
role: "menuitemradio",
|
|
259
|
+
"aria-checked": z.value === e.locale,
|
|
260
|
+
"data-testid": `language-option-${e.locale}`,
|
|
261
|
+
class: r(w),
|
|
262
|
+
onClick: (t) => ct(e.locale)
|
|
263
|
+
}, [p("span", Pe, [z.value === e.locale ? (n(), h(c(ne), {
|
|
264
|
+
key: 0,
|
|
265
|
+
size: 12,
|
|
266
|
+
"aria-hidden": "true"
|
|
267
|
+
})) : l("", !0)]), p("span", Fe, [p("span", Ie, [p("span", null, t(c(S)(e.locale)), 1), e.locale === R.value || !_.locales.includes(e.locale) ? (n(), d("span", {
|
|
268
|
+
key: 0,
|
|
269
|
+
class: r(["tpl-language-pill", c(be)])
|
|
270
|
+
}, t(e.locale === R.value ? c(C).localization.default : c(C).localization.notEnabled), 3)) : l("", !0)]), e.coverage ? (n(), d("span", {
|
|
271
|
+
key: 0,
|
|
272
|
+
"data-testid": `language-status-${e.locale}`,
|
|
273
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
274
|
+
}, [e.coverage.missing.length || e.coverage.stale.length ? (n(), h(c(v), {
|
|
275
|
+
key: 0,
|
|
276
|
+
size: 10,
|
|
277
|
+
"aria-hidden": "true",
|
|
278
|
+
class: "tpl:text-[var(--tpl-warning)]"
|
|
279
|
+
})) : (n(), h(c(ne), {
|
|
280
|
+
key: 1,
|
|
281
|
+
size: 10,
|
|
282
|
+
"aria-hidden": "true",
|
|
283
|
+
class: "tpl:text-[var(--tpl-success)]"
|
|
284
|
+
})), f(" " + t(it(e.coverage)), 1)], 8, Le)) : l("", !0)])], 8, Ne), e.locale !== R.value && H.value && _.locales.includes(e.locale) ? (n(), d("button", {
|
|
285
|
+
key: 0,
|
|
286
|
+
type: "button",
|
|
287
|
+
"data-testid": `language-actions-${e.locale}`,
|
|
288
|
+
"aria-haspopup": "menu",
|
|
289
|
+
"aria-expanded": N.value === e.locale,
|
|
290
|
+
"aria-label": c(E)(c(C).localization.moreActions, { language: c(S)(e.locale) }),
|
|
291
|
+
class: "tpl-language-actions tpl:mr-2 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-0 tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]",
|
|
292
|
+
onClick: (t) => X(e.locale)
|
|
293
|
+
}, [o(c(we), {
|
|
294
|
+
size: 14,
|
|
295
|
+
"aria-hidden": "true"
|
|
296
|
+
})], 8, Re)) : l("", !0)], 8, Me))), 128))]),
|
|
297
|
+
(n(!0), d(m, null, a(W.value.filter((e) => e.locale === N.value && H.value && _.locales.includes(e.locale)), (e) => (n(), d("div", {
|
|
298
|
+
key: e.locale,
|
|
299
|
+
role: "menu",
|
|
300
|
+
"data-language-submenu": "",
|
|
301
|
+
"aria-label": c(E)(c(C).localization.moreActions, { language: c(S)(e.locale) }),
|
|
302
|
+
class: r([T, "tpl-language-submenu tpl:absolute tpl:left-full tpl:top-0 tpl:ml-1 tpl:w-64 tpl:overflow-hidden"])
|
|
303
|
+
}, [p("button", {
|
|
304
|
+
type: "button",
|
|
305
|
+
role: "menuitem",
|
|
306
|
+
"data-testid": `language-make-default-${e.locale}`,
|
|
307
|
+
class: r(w),
|
|
308
|
+
"aria-disabled": K.value,
|
|
309
|
+
"aria-label": c(C).localization.makeDefaultLanguage,
|
|
310
|
+
"aria-describedby": K.value ? j : void 0,
|
|
311
|
+
onClick: (t) => pt(e.locale)
|
|
312
|
+
}, [o(c(Ce), {
|
|
313
|
+
size: 14,
|
|
314
|
+
"aria-hidden": "true",
|
|
315
|
+
class: "tpl:shrink-0"
|
|
316
|
+
}), p("span", Ve, [p("span", null, t(c(C).localization.makeDefaultLanguage), 1), K.value ? (n(), d("span", {
|
|
317
|
+
key: 0,
|
|
318
|
+
id: j,
|
|
319
|
+
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
320
|
+
}, t(G.value ? c(x)(c(C).localization.hiddenBeforeDefault, nt.value.length, c(D), { language: c(S)(e.locale) }) : c(E)(c(C).localization.defaultNotEnabled, { default: c(S)(R.value) })), 1)) : l("", !0)])], 8, Be), p("button", {
|
|
321
|
+
type: "button",
|
|
322
|
+
role: "menuitem",
|
|
323
|
+
"data-testid": `language-remove-${e.locale}`,
|
|
324
|
+
class: r([w, "tpl:text-[var(--tpl-danger)]"]),
|
|
325
|
+
onClick: (t) => ft(e.locale)
|
|
326
|
+
}, [o(c(oe), {
|
|
327
|
+
size: 14,
|
|
328
|
+
"aria-hidden": "true"
|
|
329
|
+
}), f(t(c(E)(c(C).localization.removeLanguage, { language: c(S)(e.locale) })) + "… ", 1)], 8, He)], 8, ze))), 128)),
|
|
330
|
+
V.value.length && H.value ? (n(), d("div", Ue, [p("button", {
|
|
331
|
+
type: "button",
|
|
332
|
+
role: "menuitem",
|
|
333
|
+
"data-testid": "language-add",
|
|
334
|
+
"aria-haspopup": "menu",
|
|
335
|
+
"aria-expanded": N.value === "add",
|
|
336
|
+
class: r(w),
|
|
337
|
+
onClick: i[0] ||= (e) => X("add")
|
|
338
|
+
}, [
|
|
339
|
+
o(c(ae), {
|
|
340
|
+
size: 14,
|
|
341
|
+
"aria-hidden": "true"
|
|
342
|
+
}),
|
|
343
|
+
f(t(c(C).localization.addLanguage), 1),
|
|
344
|
+
o(c(ie), {
|
|
345
|
+
size: 12,
|
|
346
|
+
"aria-hidden": "true",
|
|
347
|
+
class: "tpl:ml-auto"
|
|
348
|
+
})
|
|
349
|
+
], 8, We), N.value === "add" ? (n(), d("div", {
|
|
350
|
+
key: 0,
|
|
351
|
+
role: "menu",
|
|
352
|
+
"data-language-submenu": "",
|
|
353
|
+
"aria-label": c(C).localization.addLanguage,
|
|
354
|
+
class: r([T, "tpl-language-submenu tpl:absolute tpl:left-full tpl:bottom-0 tpl:ml-1 tpl:max-h-64 tpl:w-48 tpl:overflow-y-auto"])
|
|
355
|
+
}, [(n(!0), d(m, null, a(V.value, (e) => (n(), d("button", {
|
|
356
|
+
key: e,
|
|
357
|
+
type: "button",
|
|
358
|
+
role: "menuitem",
|
|
359
|
+
"data-testid": `language-add-${e}`,
|
|
360
|
+
class: r(w),
|
|
361
|
+
onClick: (t) => lt(e)
|
|
362
|
+
}, t(c(S)(e)), 9, Ke))), 128))], 8, Ge)) : l("", !0)])) : l("", !0)
|
|
363
|
+
], 8, ke)) : l("", !0),
|
|
364
|
+
o(Se, {
|
|
365
|
+
visible: P.value !== null || F.value !== null,
|
|
366
|
+
onClose: $
|
|
367
|
+
}, {
|
|
368
|
+
default: ee(() => [p("section", {
|
|
369
|
+
role: "dialog",
|
|
370
|
+
"aria-modal": "true",
|
|
371
|
+
"aria-label": Q.value,
|
|
372
|
+
class: "tpl:w-80 tpl:max-w-full tpl:max-h-[90%] tpl:overflow-y-auto tpl:box-border tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
373
|
+
}, [
|
|
374
|
+
p("h3", Je, t(Q.value), 1),
|
|
375
|
+
F.value && mt.value ? (n(), d("p", Ye, t(c(x)(c(C).localization.defaultGaps, mt.value, c(D), {
|
|
376
|
+
language: c(S)(F.value.locale),
|
|
377
|
+
default: c(S)(R.value)
|
|
378
|
+
})), 1)) : l("", !0),
|
|
379
|
+
P.value ? (n(), d("p", Xe, t(c(E)(c(C).localization.removeDescription, { language: c(S)(P.value) })), 1)) : l("", !0),
|
|
380
|
+
I.value ? (n(), d("p", Ze, [o(c(v), {
|
|
381
|
+
size: 14,
|
|
382
|
+
"aria-hidden": "true",
|
|
383
|
+
class: "tpl:shrink-0"
|
|
384
|
+
}), p("span", null, t(I.value), 1)])) : l("", !0),
|
|
385
|
+
p("div", Qe, [p("button", {
|
|
386
|
+
type: "button",
|
|
387
|
+
"data-testid": F.value ? "language-default-cancel" : "language-remove-cancel",
|
|
388
|
+
class: r(c(_e)),
|
|
389
|
+
onClick: $
|
|
390
|
+
}, t(c(C).localization.cancel), 11, $e), p("button", {
|
|
391
|
+
type: "button",
|
|
392
|
+
"data-testid": F.value ? "language-default-confirm" : "language-remove-confirm",
|
|
393
|
+
class: r(P.value ? c(ye) : c(ve)),
|
|
394
|
+
disabled: !H.value,
|
|
395
|
+
onClick: ht
|
|
396
|
+
}, t(F.value ? c(C).localization.makeDefault : c(E)(c(C).localization.removeLanguage, { language: c(S)(P.value ?? R.value) })), 11, et)])
|
|
397
|
+
], 8, qe)]),
|
|
398
|
+
_: 1
|
|
399
|
+
}, 8, ["visible"])
|
|
400
|
+
], 544));
|
|
401
|
+
}
|
|
402
|
+
}), [["__scopeId", "data-v-9b071249"]]);
|
|
403
|
+
export { E as default };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Ft as e, M as t, Pt as n, _ as r, c as i, ct as a, f as o, l as s, w as c, y as l } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { t as u } from "./check-CcuCoJDh.js";
|
|
3
3
|
import { t as d } from "./x-DZSFHafL.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as p } from "./
|
|
4
|
+
import { t as f } from "./useI18n-zeWYtWSv.js";
|
|
5
|
+
import { t as p } from "./noticeTones-D7BPu-Le.js";
|
|
6
6
|
import { t as m } from "./plural-CyxrJXL1.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as g } from "./
|
|
7
|
+
import { it as h } from "./keys-w_VRjoMu.js";
|
|
8
|
+
import { t as g } from "./languageName-DEEOhDWI.js";
|
|
9
9
|
// src/components/localization/LocaleNotices.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var _ = ["aria-label", "title"], v = /* @__PURE__ */ l({
|
|
11
11
|
__name: "LocaleNotices",
|
|
12
12
|
props: { notice: {} },
|
|
13
13
|
emits: ["dismiss"],
|
|
14
14
|
setup(l, { emit: v }) {
|
|
15
|
-
let y = l, b = v, { t: x, format: S } =
|
|
16
|
-
let { notice: e } = y, t = [S(x.localization.defaultChanged, { language:
|
|
17
|
-
return e.count && t.push(m(x.localization.defaultRemaining, e.count, C, { old:
|
|
15
|
+
let y = l, b = v, { t: x, format: S } = f(), C = c(h, void 0) ?? "en", w = i(() => {
|
|
16
|
+
let { notice: e } = y, t = [S(x.localization.defaultChanged, { language: g(e.language) })];
|
|
17
|
+
return e.count && t.push(m(x.localization.defaultRemaining, e.count, C, { old: g(e.old) })), t.join(" ");
|
|
18
18
|
});
|
|
19
19
|
return (i, c) => (t(), o("div", {
|
|
20
20
|
"data-testid": "locale-notice",
|
|
21
21
|
role: "status",
|
|
22
22
|
"aria-live": "polite",
|
|
23
23
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
24
|
-
style: n(a(
|
|
24
|
+
style: n(a(p).info)
|
|
25
25
|
}, [
|
|
26
26
|
r(a(u), {
|
|
27
27
|
size: 14,
|
|
@@ -7,10 +7,10 @@ import { t as I } from "./x-DZSFHafL.js";
|
|
|
7
7
|
import { at as ne, nt as L, p as re, tt as ie } from "./keys-w_VRjoMu.js";
|
|
8
8
|
import { t as R } from "./useI18n-zeWYtWSv.js";
|
|
9
9
|
import { d as ae } from "./styleConstants-CgiNKdnc.js";
|
|
10
|
-
import { t as oe } from "./dist-
|
|
11
|
-
import { t as z } from "./useMergeTag-
|
|
10
|
+
import { t as oe } from "./dist-CiYotUR8.js";
|
|
11
|
+
import { t as z } from "./useMergeTag-B5qlq8px.js";
|
|
12
12
|
import { a as se, c as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./usePopoverPosition-Br3zt_MQ.js";
|
|
13
|
-
import { t as me } from "./useLogicTag-
|
|
13
|
+
import { t as me } from "./useLogicTag-B4Zpk3eo.js";
|
|
14
14
|
var B = P({
|
|
15
15
|
name: "braces",
|
|
16
16
|
size: 24,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as e, D as t, F as n, Ft as r, I as i, L as a, M as o, Mt as s, P as c, Pt as l, U as u, W as d, _ as f, a as p, c as m, ct as h, d as g, et as _, f as v, g as ee, l as y, r as te, u as b, w as ne, y as x } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { a as re, c as ie, o as ae, t as oe } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { a as se, n as ce, o as le, r as ue, t as de } from "./editor-modal-BD32TXws.js";
|
|
4
|
+
import { t as fe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
5
|
// ../media-library/src/composables/useImageCrop.ts
|
|
6
6
|
var pe = {
|
|
7
7
|
free: void 0,
|
|
@@ -3355,7 +3355,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3355
3355
|
role: "alert",
|
|
3356
3356
|
class: "tpl:shrink-0 tpl:px-5 tpl:pt-3 tpl:text-xs",
|
|
3357
3357
|
style: { color: "var(--tpl-danger)" }
|
|
3358
|
-
}, bn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, xn = ["disabled"], Sn = ["disabled"], Cn = /*#__PURE__*/
|
|
3358
|
+
}, bn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, xn = ["disabled"], Sn = ["disabled"], Cn = /*#__PURE__*/ fe(/* @__PURE__ */ x({
|
|
3359
3359
|
__name: "MediaEditModal",
|
|
3360
3360
|
props: {
|
|
3361
3361
|
visible: { type: Boolean },
|
|
@@ -3365,7 +3365,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3365
3365
|
},
|
|
3366
3366
|
emits: ["close"],
|
|
3367
3367
|
setup(t, { emit: n }) {
|
|
3368
|
-
let i = t, a = n, { t: x } =
|
|
3368
|
+
let i = t, a = n, { t: x } = ue(), ae = ne(le, null), fe = ne(se, _(null)), ve = x.mediaLibrary, { isImageMimeType: S } = ce(), C = _(""), ye = _(""), w = _(null), T = _("free"), E = _(void 0), D = _(void 0), O = _(""), k = _(""), A = _(void 0), j = _(null), be = _(!1), M = _(!1), N = _(!1), P = _(null), F = null, I = [
|
|
3369
3369
|
"image/jpeg",
|
|
3370
3370
|
"image/png",
|
|
3371
3371
|
"image/webp"
|
|
@@ -3433,7 +3433,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3433
3433
|
M.value || a("close");
|
|
3434
3434
|
}
|
|
3435
3435
|
let Me = _(null), Ne = m(() => i.visible && i.item !== null);
|
|
3436
|
-
|
|
3436
|
+
de(Me, Ne);
|
|
3437
3437
|
function B(e) {
|
|
3438
3438
|
if (e.stopPropagation(), e.key === "Enter" && !M.value) {
|
|
3439
3439
|
if (e.target?.closest("textarea, [contenteditable]")) return;
|
|
@@ -3441,7 +3441,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3441
3441
|
}
|
|
3442
3442
|
e.key === "Escape" && je();
|
|
3443
3443
|
}
|
|
3444
|
-
return (e, n) => (o(), b(p, { to: h(
|
|
3444
|
+
return (e, n) => (o(), b(p, { to: h(fe) || "body" }, [f(oe, {
|
|
3445
3445
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
3446
3446
|
"enter-from-class": "tpl:opacity-0",
|
|
3447
3447
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -3452,7 +3452,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3452
3452
|
default: u(() => [t.visible && t.item ? (o(), v("div", {
|
|
3453
3453
|
key: 0,
|
|
3454
3454
|
"data-tpl-theme": h(ae),
|
|
3455
|
-
class: s([h(
|
|
3455
|
+
class: s([h(fe) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
|
|
3456
3456
|
style: { "background-color": "var(--tpl-overlay)" },
|
|
3457
3457
|
onClick: ie(je, ["self"]),
|
|
3458
3458
|
onKeydown: B
|
|
@@ -10,7 +10,7 @@ var o = /* @__PURE__ */ a({
|
|
|
10
10
|
popoverTarget: {}
|
|
11
11
|
},
|
|
12
12
|
setup(a) {
|
|
13
|
-
let o = a, s = i(async () => (await import("./editor-modal-
|
|
13
|
+
let o = a, s = i(async () => (await import("./editor-modal-BD32TXws.js")).MediaLibraryModal);
|
|
14
14
|
function c(e) {
|
|
15
15
|
o.feature.select(e);
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as e, Mt as t, _ as n, ct as r, d as i, et as a, f as o, l as s, u as c, y as l } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { h } from "./
|
|
2
|
+
import { i as u, n as d, r as f, t as p } from "./LogicTagInsertButton-BSolF7Fd.js";
|
|
3
|
+
import { h as m } from "./styleConstants-CgiNKdnc.js";
|
|
4
|
+
import { t as h } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
5
|
// src/components/MergeTagInput.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var g = { key: 0 }, _ = {
|
|
7
7
|
key: 0,
|
|
@@ -13,7 +13,7 @@ var g = { key: 0 }, _ = {
|
|
|
13
13
|
], b = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
16
|
-
}, x = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", S = /*#__PURE__*/
|
|
16
|
+
}, x = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", S = /*#__PURE__*/ h(/* @__PURE__ */ l({
|
|
17
17
|
__name: "MergeTagInput",
|
|
18
18
|
props: {
|
|
19
19
|
modelValue: {},
|
|
@@ -25,8 +25,8 @@ var g = { key: 0 }, _ = {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
emits: ["update:modelValue", "keydown"],
|
|
28
|
-
setup(l, { emit:
|
|
29
|
-
let S = l, C =
|
|
28
|
+
setup(l, { emit: h }) {
|
|
29
|
+
let S = l, C = h, w = a(null), { segments: T, hasMergeTags: E, canRequestMergeTag: D, isRequestingMergeTag: O, canInsertLogicTag: k, isRequestingLogicTag: A, isEditing: j, startEditing: M, handleInput: N, handleKeydown: P, handleClick: F, handleBlur: I, clearValue: L, insertMergeTag: R, insertLogicTag: z, replaceMergeTagAt: B } = u({
|
|
30
30
|
modelValue: () => S.modelValue,
|
|
31
31
|
emit: (e) => C("update:modelValue", e),
|
|
32
32
|
elementRef: w
|
|
@@ -34,7 +34,7 @@ var g = { key: 0 }, _ = {
|
|
|
34
34
|
function V(e) {
|
|
35
35
|
P(e) || C("keydown", e);
|
|
36
36
|
}
|
|
37
|
-
return (a, u) => r(E) && !r(j) ? (e(), o("div", g, [n(
|
|
37
|
+
return (a, u) => r(E) && !r(j) ? (e(), o("div", g, [n(f, {
|
|
38
38
|
segments: r(T),
|
|
39
39
|
"display-class": x,
|
|
40
40
|
pulse: l.pulse,
|
|
@@ -47,11 +47,11 @@ var g = { key: 0 }, _ = {
|
|
|
47
47
|
"onEdit",
|
|
48
48
|
"onClear",
|
|
49
49
|
"onRepick"
|
|
50
|
-
]), r(D) || r(k) ? (e(), o("div", _, [r(D) ? (e(), c(
|
|
50
|
+
]), r(D) || r(k) ? (e(), o("div", _, [r(D) ? (e(), c(d, {
|
|
51
51
|
key: 0,
|
|
52
52
|
disabled: r(O),
|
|
53
53
|
onInsert: r(R)
|
|
54
|
-
}, null, 8, ["disabled", "onInsert"])) : i("", !0), r(k) ? (e(), c(
|
|
54
|
+
}, null, 8, ["disabled", "onInsert"])) : i("", !0), r(k) ? (e(), c(p, {
|
|
55
55
|
key: 1,
|
|
56
56
|
disabled: r(A),
|
|
57
57
|
onInsert: r(z)
|
|
@@ -59,18 +59,18 @@ var g = { key: 0 }, _ = {
|
|
|
59
59
|
ref_key: "inputRef",
|
|
60
60
|
ref: w,
|
|
61
61
|
type: l.type,
|
|
62
|
-
class: t([r(
|
|
62
|
+
class: t([r(m), { "tpl-pulse-fill": l.pulse }]),
|
|
63
63
|
value: l.modelValue,
|
|
64
64
|
placeholder: l.placeholder,
|
|
65
65
|
onInput: u[0] ||= (...e) => r(N) && r(N)(...e),
|
|
66
66
|
onKeydown: V,
|
|
67
67
|
onClick: u[1] ||= (...e) => r(F) && r(F)(...e),
|
|
68
68
|
onBlur: u[2] ||= (...e) => r(I) && r(I)(...e)
|
|
69
|
-
}, null, 42, y), r(D) || r(k) ? (e(), o("div", b, [r(D) ? (e(), c(
|
|
69
|
+
}, null, 42, y), r(D) || r(k) ? (e(), o("div", b, [r(D) ? (e(), c(d, {
|
|
70
70
|
key: 0,
|
|
71
71
|
disabled: r(O),
|
|
72
72
|
onInsert: r(R)
|
|
73
|
-
}, null, 8, ["disabled", "onInsert"])) : i("", !0), r(k) ? (e(), c(
|
|
73
|
+
}, null, 8, ["disabled", "onInsert"])) : i("", !0), r(k) ? (e(), c(p, {
|
|
74
74
|
key: 1,
|
|
75
75
|
disabled: r(A),
|
|
76
76
|
onInsert: r(z)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as e, Ft as t, M as n, Mt as r, Nt as i, _ as a, c as o, ct as s, d as c, et as l, f as u, g as d, l as f, u as p, w as m, x as h, y as g } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { Lt as _, Q as v, st as y } from "./dist-BMUUt3zJ.js";
|
|
3
|
-
import { i as b, n as x, r as S, t as C } from "./LogicTagInsertButton-
|
|
3
|
+
import { i as b, n as x, r as S, t as C } from "./LogicTagInsertButton-BSolF7Fd.js";
|
|
4
4
|
import { t as w } from "./rotate-ccw-BFTGCpHn.js";
|
|
5
5
|
import { v as T } from "./keys-w_VRjoMu.js";
|
|
6
6
|
import { t as E } from "./useI18n-zeWYtWSv.js";
|