@templatical/editor 0.59.1 → 0.59.2
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-CwyKz_9U.js → AiAltTextPopover-BhWHOOKX.js} +3 -3
- package/dist/{AiAltTextReview-DNFnR1PN.js → AiAltTextReview-CmW7pLmo.js} +3 -3
- package/dist/{AiChatPanel-DWWVvJIP.js → AiChatPanel-CV0mCtad.js} +2 -2
- package/dist/{AiPanels-CESbBB63.js → AiPanels-C8M7q_vM.js} +1 -1
- package/dist/{AiRewriteMenu-DH6j1jOA.js → AiRewriteMenu-DC2ZLH5L.js} +7 -7
- package/dist/{BlockIssueBadge-3k568_Od.js → BlockIssueBadge-B8sl9BM1.js} +2 -2
- package/dist/{BlockPreviewCanvas-BLJxLwTT.js → BlockPreviewCanvas-yhOQAQhJ.js} +22 -18
- package/dist/{CloudHeaderExtras-xrHubAHL.js → CloudHeaderExtras-DC_oNrxz.js} +1 -1
- package/dist/{CloudPanels-qW-MObRD.js → CloudPanels-CD0lsL0R.js} +2 -2
- package/dist/{CollaborationNotices-D9GQ477K.js → CollaborationNotices-DrMrP73M.js} +1 -1
- package/dist/{CollaboratorBar-DsRjAaqd.js → CollaboratorBar-TsK872uC.js} +1 -1
- package/dist/{CommentsPanel-lb-IFzjl.js → CommentsPanel-BX8JVrXU.js} +1 -1
- package/dist/{CommentsSidebar-CVVTCWBH.js → CommentsSidebar-BUlseNwL.js} +2 -2
- package/dist/{CountdownBlock-CSEq79Nc.js → CountdownBlock-AYPypmcX.js} +2 -2
- package/dist/{CountdownToolbar-BV9yQi9k.js → CountdownToolbar-dx3FVRjh.js} +5 -5
- package/dist/{IssuesPanel-pxcWAQJM.js → IssuesPanel-BwnvXxBC.js} +5 -5
- package/dist/{LanguageMenu-D_xbvq3D.js → LanguageMenu-Cf5bKocE.js} +5 -5
- package/dist/{LocaleNotices-j4aMFfmc.js → LocaleNotices-CGEp0pQ8.js} +2 -2
- package/dist/{LogicTagInsertButton-BDIsyl3C.js → LogicTagInsertButton-BdDe-vrZ.js} +8 -8
- package/dist/{MergeTagInput-De1yWoc2.js → MergeTagInput-CTTi-eB0.js} +1 -1
- package/dist/{MergeTagModeToggle-CL96pI1E.js → MergeTagModeToggle-Bd0svGQm.js} +3 -3
- package/dist/{MergeTagTextarea-DDyV8U44.js → MergeTagTextarea-DiahMV-3.js} +4 -4
- package/dist/{ParagraphEditor-DpOsnnai.js → ParagraphEditor-Db1cmj8Y.js} +11 -11
- package/dist/{RestoreVersionDialog-JQEkVIh5.js → RestoreVersionDialog-DA1Z0q9Z.js} +2 -2
- package/dist/{RichTextEditorContent-C2Yj1-ZA.js → RichTextEditorContent-CyO6e4ZG.js} +6 -6
- package/dist/{SaveBlockDialog-BPf6tDhg.js → SaveBlockDialog-D7SaFxa_.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-DnDCfwSv.js → SavedBlocksBrowserModal-B5r3LWWG.js} +6 -6
- package/dist/{SavedBlocksPanels-D5YaVCem.js → SavedBlocksPanels-BH2f7jm-.js} +1 -1
- package/dist/{SavedBlocksPickBar-OQ7ey3MD.js → SavedBlocksPickBar-B24TScw0.js} +2 -2
- package/dist/{TemplateSettings-CBCaybvd.js → TemplateSettings-CuN9Vkl_.js} +8 -8
- package/dist/{TestEmailModal-BDp85wIp.js → TestEmailModal-C4DAaohi.js} +11 -9
- package/dist/{TestEmailPanel-DkJx0Ptk.js → TestEmailPanel-DoMcVJSE.js} +1 -1
- package/dist/{TitleEditor-wzknZqu_.js → TitleEditor-b5Pr_m9j.js} +8 -8
- package/dist/{Toolbar-FIYSw3Us.js → Toolbar-BOf7Y862.js} +14 -14
- package/dist/{TplModal-C57J-uF0.js → TplModal-DAcXzBJh.js} +4 -4
- package/dist/{VersionHistoryMenu-6jMve6By.js → VersionHistoryMenu-TbIGteNi.js} +2 -2
- package/dist/{VersionHistoryPanels-BZ0GT52h.js → VersionHistoryPanels-Ia6ipOqG.js} +1 -1
- package/dist/{VersionPreviewBanner-Bq8z1SUc.js → VersionPreviewBanner-CRfu6quf.js} +1 -1
- package/dist/{WrapperBlock-C4XrJkx5.js → WrapperBlock-BZenrXM6.js} +4 -4
- package/dist/{blockTypeIcons-VX_8UQ21.js → blockTypeIcons-DdYZy8yG.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js → AiAltTextPopover-CcX_OMUU.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js.map → AiAltTextPopover-CcX_OMUU.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js → AiAltTextReview-Dmm3h0jd.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js.map → AiAltTextReview-Dmm3h0jd.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js → AiChatPanel-DV23DJ-2.js} +3 -3
- package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js.map → AiChatPanel-DV23DJ-2.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js → AiPanels-CxhOpMAp.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js.map → AiPanels-CxhOpMAp.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-B23ozFnP.js → AiRewriteMenu-87-O514r.js} +8 -8
- package/dist/cdn/chunks/{AiRewriteMenu-B23ozFnP.js.map → AiRewriteMenu-87-O514r.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js → BlockIssueBadge-Dp06vQd3.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js.map → BlockIssueBadge-Dp06vQd3.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CaRneMZ8.js → BlockPreviewCanvas-DQGzUvZ5.js} +23 -19
- package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js → CloudHeaderExtras-Cd-ePldd.js} +2 -2
- package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js.map → CloudHeaderExtras-Cd-ePldd.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-xAEirqNC.js → CloudPanels-D8fchoYt.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-xAEirqNC.js.map → CloudPanels-D8fchoYt.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js → CollaborationNotices-DNEs3g9B.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js.map → CollaborationNotices-DNEs3g9B.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js → CollaboratorBar-CN6XAlbn.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js.map → CollaboratorBar-CN6XAlbn.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js → CommentsPanel-CxZ1kFcK.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js.map → CommentsPanel-CxZ1kFcK.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js → CommentsSidebar-DCr2mV8b.js} +3 -3
- package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js.map → CommentsSidebar-DCr2mV8b.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js → CountdownBlock--hlKE2aj.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js.map → CountdownBlock--hlKE2aj.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js → CountdownToolbar-CUTbVPPV.js} +6 -6
- package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js.map → CountdownToolbar-CUTbVPPV.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js → IssuesPanel-BhcSzwuL.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js.map → IssuesPanel-BhcSzwuL.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-Cl0ajnXZ.js → LanguageMenu-6wGhkyFT.js} +99 -99
- package/dist/cdn/chunks/{LanguageMenu-Cl0ajnXZ.js.map → LanguageMenu-6wGhkyFT.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js → LocaleNotices-Br92Xueo.js} +3 -3
- package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js.map → LocaleNotices-Br92Xueo.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js → LogicTagInsertButton-r2EVUtDU.js} +9 -9
- package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js.map → LogicTagInsertButton-r2EVUtDU.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js → MergeTagInput-Dh3N6CEV.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js.map → MergeTagInput-Dh3N6CEV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js → MergeTagModeToggle-D6u3hMrI.js} +4 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js.map → MergeTagModeToggle-D6u3hMrI.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js → MergeTagTextarea-BpVtpiNL.js} +8 -8
- package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js.map → MergeTagTextarea-BpVtpiNL.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BoGELRr-.js → ParagraphEditor-DGJmPAC1.js} +12 -12
- package/dist/cdn/chunks/{ParagraphEditor-BoGELRr-.js.map → ParagraphEditor-DGJmPAC1.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CaKiSq-9.js → RestoreVersionDialog-D5qeCa0F.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-CaKiSq-9.js.map → RestoreVersionDialog-D5qeCa0F.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js → RichTextEditorContent-DyGiXKKI.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js.map → RichTextEditorContent-DyGiXKKI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BAR0G4UO.js → SaveBlockDialog-B0TJYxd8.js} +7 -7
- package/dist/cdn/chunks/{SaveBlockDialog-BAR0G4UO.js.map → SaveBlockDialog-B0TJYxd8.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-KYaLkQ.js → SavedBlocksBrowserModal-D8Ly7LrA.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-KYaLkQ.js.map → SavedBlocksBrowserModal-D8Ly7LrA.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3OF0EeB.js → SavedBlocksPanels-Co1cbWR8.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-C3OF0EeB.js.map → SavedBlocksPanels-Co1cbWR8.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BnyPXw5W.js → SavedBlocksPickBar-DNtVbpm-.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-BnyPXw5W.js.map → SavedBlocksPickBar-DNtVbpm-.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js → TemplateSettings-BRc878ZF.js} +9 -9
- package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js.map → TemplateSettings-BRc878ZF.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-B9d3ZsH7.js → TestEmailModal-CIui7VfS.js} +12 -10
- package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel--fPi6QjN.js → TestEmailPanel-vKvruW_r.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel--fPi6QjN.js.map → TestEmailPanel-vKvruW_r.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Cn4fnSpa.js → TitleEditor-BI-9Nnj3.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-Cn4fnSpa.js.map → TitleEditor-BI-9Nnj3.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js → Toolbar-CYnnArxv.js} +418 -418
- package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js.map → Toolbar-CYnnArxv.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-jMfK19PC.js → TplModal-B3nZeGWK.js} +5 -5
- package/dist/cdn/chunks/{TplModal-jMfK19PC.js.map → TplModal-B3nZeGWK.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js → VersionHistoryMenu-CMGfAKuV.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js.map → VersionHistoryMenu-CMGfAKuV.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DJpySkvq.js → VersionHistoryPanels-Bb2ouQg7.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-DJpySkvq.js.map → VersionHistoryPanels-Bb2ouQg7.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js → VersionPreviewBanner-573UP-g4.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js.map → VersionPreviewBanner-573UP-g4.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-Bi9XgDmX.js → WrapperBlock-DVu632LD.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-Bi9XgDmX.js.map → WrapperBlock-DVu632LD.js.map} +1 -1
- package/dist/cdn/chunks/{composables-Cp6gZ7qV.js → composables-DY3anqHO.js} +572 -571
- package/dist/cdn/chunks/composables-DY3anqHO.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js → createCloudRuntime-B5numxlW.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js.map → createCloudRuntime-B5numxlW.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BYJPv1sA.js → extensions-BWVlr8Ga.js} +5 -5
- package/dist/cdn/chunks/{extensions-BYJPv1sA.js.map → extensions-BWVlr8Ga.js.map} +1 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +11 -0
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js → normalizeMergeTagMarkup-Dw3rFvyd.js} +40 -40
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js.map → normalizeMergeTagMarkup-Dw3rFvyd.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js → preRenderCustomBlocks-BGtb8Xbp.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js.map → preRenderCustomBlocks-BGtb8Xbp.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js → sanitizeHtml-CLRY8s2s.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js.map → sanitizeHtml-CLRY8s2s.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js → socialIcons-kYhdXJ9P.js} +255 -255
- package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js.map → socialIcons-kYhdXJ9P.js.map} +1 -1
- package/dist/cdn/chunks/{src-aFRxbwqP.js → src-B7X7x_ST.js} +154 -154
- package/dist/cdn/chunks/{src-aFRxbwqP.js.map → src-B7X7x_ST.js.map} +1 -1
- package/dist/cdn/chunks/{src-BRyzUujm.js → src-BmzzkUf7.js} +539 -539
- package/dist/cdn/chunks/{src-BRyzUujm.js.map → src-BmzzkUf7.js.map} +1 -1
- package/dist/cdn/chunks/{src-CVHGPKSW.js → src-DY2kMjoD.js} +593 -589
- package/dist/cdn/chunks/src-DY2kMjoD.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js → useCloudI18n-BTV9uu3c.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js.map → useCloudI18n-BTV9uu3c.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js → useEditorRoot-D0Lp2x4_.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js.map → useEditorRoot-D0Lp2x4_.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js → useI18n-DPg6rPbu.js} +2 -2
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js.map → useI18n-DPg6rPbu.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-7iwZ1UhB.js.map → useLocalizedDisplay-B5wMJLru.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js → useLogicTag-0wkSxy3z.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js.map → useLogicTag-0wkSxy3z.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js → useMergeTag-y3bX8M_6.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js.map → useMergeTag-y3bX8M_6.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js → usePopoverPosition-CBp9uwjV.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js.map → usePopoverPosition-CBp9uwjV.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js → useScrollToBlock-32EnuMwu.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js.map → useScrollToBlock-32EnuMwu.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js → withCurrentFont-B42BKo9N.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js.map → withCurrentFont-B42BKo9N.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +600 -600
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-jTnTSqdm.js → composables-CFTH0Nqb.js} +865 -864
- package/dist/{createCloudRuntime-DiUnYjKr.js → createCloudRuntime-BvWlm_38.js} +3 -3
- package/dist/{dist-BTjObRcv.js → dist-CMo4K5So.js} +277 -273
- package/dist/{extensions-CAuXwpbI.js → extensions-BPVackEE.js} +4 -4
- package/dist/keys-B4DimcgX.js +9 -0
- package/dist/{normalizeMergeTagMarkup-fgoVMKAc.js → normalizeMergeTagMarkup-PQqrbfmt.js} +1 -1
- package/dist/{preRenderCustomBlocks-CgPtlLGL.js → preRenderCustomBlocks-Dg5GBNi2.js} +1 -1
- package/dist/{sanitizeHtml-D2wueiEe.js → sanitizeHtml-DVdfdxOz.js} +1 -1
- package/dist/{socialIcons-RKdTgJip.js → socialIcons-DBHv_ntg.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +563 -563
- package/dist/{useCloudI18n-nMZ9f_4b.js → useCloudI18n-BnuOL1YS.js} +1 -1
- package/dist/{useEditorRoot-DpssP9rX.js → useEditorRoot-DWfC2CVC.js} +1 -1
- package/dist/{useI18n-C2p-qHeb.js → useI18n-Cx9W7OWb.js} +1 -1
- package/dist/{useLocalizedDisplay-9RqT2y_Y.js → useLocalizedDisplay-CbFM0cCV.js} +1 -1
- package/dist/{useLogicTag-59fmujI7.js → useLogicTag-CVOj0VUv.js} +2 -2
- package/dist/{useMergeTag-M1vauWet.js → useMergeTag-Bams_kam.js} +2 -2
- package/dist/{usePopoverPosition-L9MOHBM-.js → usePopoverPosition-DF0ZYH7g.js} +1 -1
- package/dist/{useScrollToBlock-BMF0Dt5l.js → useScrollToBlock-CwUQ_nKz.js} +1 -1
- package/dist/{withCurrentFont-BXZ7g-K6.js → withCurrentFont-y0O5kOLW.js} +1 -1
- package/package.json +7 -7
- package/dist/cdn/chunks/BlockPreviewCanvas-CaRneMZ8.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-B9d3ZsH7.js.map +0 -1
- package/dist/cdn/chunks/composables-Cp6gZ7qV.js.map +0 -1
- package/dist/cdn/chunks/keys-DNv3xXxI.js +0 -11
- package/dist/cdn/chunks/keys-DNv3xXxI.js.map +0 -1
- package/dist/cdn/chunks/src-CVHGPKSW.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-7iwZ1UhB.js +0 -33
- package/dist/keys-BeQy64On.js +0 -9
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import { C as e, F as t, G as n, H as r, L as i, O as a, _ as o, b as s, ct as c, dt as l, g as u, h as d, j as f, m as p, mt as m, p as h, tt as g, u as _, x as v } from "./draggable-IRVFEZ-b.js";
|
|
2
2
|
import { t as ee } from "./dist-zu1jwYIS.js";
|
|
3
3
|
import { Bt as te, Gt as ne, H as re, Rt as ie, Vt as y, d as b, f as ae, kt as oe } from "./icons-C7vjUBLn.js";
|
|
4
|
-
import { Ht as se, I as ce, Jt as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { E as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { C as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
4
|
+
import { Ht as se, I as ce, Jt as le, Ut as ue, Yt as de } from "./src-DY2kMjoD.js";
|
|
5
|
+
import { t as fe } from "./useI18n-DPg6rPbu.js";
|
|
6
|
+
import { t as pe } from "./useLocalizedDisplay-B5wMJLru.js";
|
|
7
|
+
import { E as me, h as he, st as ge, t as _e } from "./keys-ywH4jHJ2.js";
|
|
8
|
+
import { t as x } from "./plural-CyxrJXL1.js";
|
|
9
|
+
import { t as S } from "./languageName-DEEOhDWI.js";
|
|
10
|
+
import { C as ve, b as ye, f as be, u as xe, w as Se } from "./styleConstants-Br6CIRoS.js";
|
|
11
|
+
import { t as Ce } from "./TplModal-B3nZeGWK.js";
|
|
12
|
+
import { t as C } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
13
13
|
// src/components/localization/LanguageMenu.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
14
|
+
var we = [
|
|
15
15
|
"aria-expanded",
|
|
16
16
|
"title",
|
|
17
17
|
"aria-label"
|
|
18
|
-
],
|
|
18
|
+
], Te = { class: "tpl-language-name" }, Ee = {
|
|
19
19
|
class: "tpl-language-tag tpl:truncate",
|
|
20
20
|
"aria-hidden": "true"
|
|
21
|
-
},
|
|
21
|
+
}, De = { class: "tpl-language-count tpl:shrink-0 tpl:tabular-nums" }, Oe = ["aria-label"], ke = { 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)]" }, Ae = { class: "tpl:max-h-64 tpl:overflow-y-auto" }, je = ["data-active"], Me = [
|
|
22
22
|
"aria-checked",
|
|
23
23
|
"data-testid",
|
|
24
24
|
"onClick"
|
|
25
|
-
],
|
|
25
|
+
], Ne = { class: "tpl:flex tpl:w-3 tpl:shrink-0" }, Pe = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, Fe = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ie = ["data-testid"], Le = [
|
|
26
26
|
"data-testid",
|
|
27
27
|
"aria-expanded",
|
|
28
28
|
"aria-label",
|
|
29
29
|
"onClick"
|
|
30
|
-
],
|
|
30
|
+
], Re = ["aria-label"], ze = [
|
|
31
31
|
"data-testid",
|
|
32
32
|
"aria-disabled",
|
|
33
33
|
"aria-label",
|
|
34
34
|
"aria-describedby",
|
|
35
35
|
"onClick"
|
|
36
|
-
],
|
|
36
|
+
], Be = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-1" }, Ve = ["data-testid", "onClick"], He = {
|
|
37
37
|
key: 0,
|
|
38
38
|
class: "tpl:relative tpl:border-t tpl:border-[var(--tpl-border)]"
|
|
39
|
-
},
|
|
39
|
+
}, Ue = ["aria-expanded"], We = ["aria-label"], Ge = ["data-testid", "onClick"], Ke = ["aria-label"], qe = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Je = {
|
|
40
40
|
key: 0,
|
|
41
41
|
class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
42
|
-
},
|
|
42
|
+
}, Ye = {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
45
|
-
},
|
|
45
|
+
}, Xe = {
|
|
46
46
|
key: 2,
|
|
47
47
|
role: "alert",
|
|
48
48
|
"data-testid": "language-default-error",
|
|
49
49
|
class: "tpl:mb-4 tpl:flex tpl:items-start tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-danger)]"
|
|
50
|
-
},
|
|
50
|
+
}, Ze = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Qe = ["data-testid"], $e = ["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__ */ e({
|
|
51
51
|
__name: "LanguageMenu",
|
|
52
52
|
props: {
|
|
53
53
|
editor: {},
|
|
54
54
|
locales: {}
|
|
55
55
|
},
|
|
56
56
|
setup(e) {
|
|
57
|
-
let
|
|
57
|
+
let C = e, { t: E, format: D } = fe(), O = a(ge, void 0) ?? "en", et = a(me, null), k = a(he, []), A = g(null), j = g(null), M = `tpl-language-reason-${ce()}`, N = g(!1), P = g(null), F = g(null), I = g(null), L = g(null), R = g(null), z = h(() => ue(C.editor.content.value)), B = h(() => C.editor.activeLocale?.value ?? z.value), V = h(() => C.editor.content.value.settings.locales ?? []), H = h(() => C.locales.filter((e) => e !== z.value && !V.value.includes(e))), U = h(() => B.value === z.value || C.locales.includes(B.value)), W = a(_e, null) ?? pe(C.editor, k), tt = h(() => N.value ? [z.value, ...V.value].map((e) => ({
|
|
58
58
|
locale: e,
|
|
59
|
-
coverage: e === z.value ? null : e === B.value ? W.value :
|
|
60
|
-
})) : []), nt = h(() => P.value && V.value.includes(P.value) && U.value &&
|
|
59
|
+
coverage: e === z.value ? null : e === B.value ? W.value : le(C.editor.content.value, e, k)
|
|
60
|
+
})) : []), nt = h(() => P.value && V.value.includes(P.value) && U.value && C.locales.includes(P.value) ? de(C.editor.content.value, P.value) : []), G = h(() => C.locales.includes(z.value)), K = h(() => nt.value.length > 0 || !G.value), q = h(() => (W.value?.missing.length ?? 0) + (W.value?.stale.length ?? 0)), J = h(() => q.value ? D(E.localization.gapTooltip, {
|
|
61
61
|
missing: W.value.missing.length,
|
|
62
62
|
stale: W.value.stale.length
|
|
63
|
-
}) :
|
|
63
|
+
}) : S(B.value)), rt = h(() => q.value ? `${S(B.value)} ${q.value} (${B.value}), ${J.value}` : `${S(B.value)} (${B.value})`);
|
|
64
64
|
function it(e) {
|
|
65
65
|
let t = [];
|
|
66
|
-
return e.missing.length && t.push(
|
|
66
|
+
return e.missing.length && t.push(x(E.localization.missingCount, e.missing.length, O)), e.stale.length && t.push(x(E.localization.staleCount, e.stale.length, O)), t.join(" · ") || E.localization.complete;
|
|
67
67
|
}
|
|
68
68
|
function Y() {
|
|
69
|
-
N.value = !1, P.value = null, f(() =>
|
|
69
|
+
N.value = !1, P.value = null, f(() => j.value?.focus());
|
|
70
70
|
}
|
|
71
71
|
async function at() {
|
|
72
|
-
N.value ? Y() : (N.value = !0, await f(),
|
|
72
|
+
N.value ? Y() : (N.value = !0, await f(), A.value?.querySelector("[role=\"menuitemradio\"]")?.focus());
|
|
73
73
|
}
|
|
74
74
|
async function X(e) {
|
|
75
|
-
P.value = P.value === e ? null : e, await f(),
|
|
75
|
+
P.value = P.value === e ? null : e, await f(), A.value?.querySelector("[data-language-submenu] [role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
76
76
|
}
|
|
77
77
|
function ot() {
|
|
78
78
|
let e = P.value;
|
|
79
|
-
P.value = null,
|
|
79
|
+
P.value = null, A.value?.querySelector(`[data-testid="${e === "add" ? "language-add" : `language-actions-${e}`}"]`)?.focus();
|
|
80
80
|
}
|
|
81
81
|
function st(e) {
|
|
82
82
|
let t = e.target;
|
|
@@ -85,13 +85,13 @@ var Ce = [
|
|
|
85
85
|
e.preventDefault(), e.stopPropagation(), P.value ? ot() : Y();
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
|
-
if (t ===
|
|
88
|
+
if (t === j.value && ["ArrowDown", "ArrowUp"].includes(e.key)) {
|
|
89
89
|
e.preventDefault(), N.value || at();
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
if (e.key === "ArrowRight" && !t.closest("[data-language-submenu]")) {
|
|
93
93
|
let n = t.dataset.testid ?? "", r = n.replace(/^language-(option|actions)-/, "");
|
|
94
|
-
(n === "language-add" || r !== z.value && U.value &&
|
|
94
|
+
(n === "language-add" || r !== z.value && U.value && C.locales.includes(r)) && (e.preventDefault(), X(n === "language-add" ? "add" : r));
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
if (![
|
|
@@ -105,39 +105,39 @@ var Ce = [
|
|
|
105
105
|
r[e.key === "Home" ? 0 : e.key === "End" ? r.length - 1 : (i + (e.key === "ArrowDown" ? 1 : -1) + r.length) % r.length]?.focus();
|
|
106
106
|
}
|
|
107
107
|
function ct(e) {
|
|
108
|
-
|
|
108
|
+
C.editor.setActiveLocale?.(e === z.value ? null : e), Y();
|
|
109
109
|
}
|
|
110
110
|
function lt(e) {
|
|
111
|
-
U.value && H.value.includes(e) && (
|
|
111
|
+
U.value && H.value.includes(e) && (C.editor.addLocale?.(e), Y());
|
|
112
112
|
}
|
|
113
113
|
function ut() {
|
|
114
114
|
L.value = null, R.value = {
|
|
115
|
-
templateId:
|
|
116
|
-
loadVersion:
|
|
115
|
+
templateId: C.editor.state.template?.id ?? null,
|
|
116
|
+
loadVersion: C.editor.loadVersion?.value
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
function dt() {
|
|
120
|
-
return R.value !== null && R.value.templateId === (
|
|
120
|
+
return R.value !== null && R.value.templateId === (C.editor.state.template?.id ?? null) && R.value.loadVersion === C.editor.loadVersion?.value;
|
|
121
121
|
}
|
|
122
122
|
function ft(e) {
|
|
123
123
|
ut(), F.value = e, P.value = null;
|
|
124
124
|
}
|
|
125
125
|
function Z(e) {
|
|
126
|
-
return U.value && V.value.includes(e) &&
|
|
126
|
+
return U.value && V.value.includes(e) && C.locales.includes(e) && G.value && de(C.editor.content.value, e).length === 0;
|
|
127
127
|
}
|
|
128
128
|
function pt(e) {
|
|
129
129
|
Z(e) && (ut(), I.value = { locale: e }, P.value = null);
|
|
130
130
|
}
|
|
131
|
-
let mt = h(() => I.value ?
|
|
131
|
+
let mt = h(() => I.value ? se(C.editor.content.value, I.value.locale, k).length : 0), Q = h(() => I.value ? D(E.localization.makeDefaultConfirmation, { language: S(I.value.locale) }) : D(E.localization.removeConfirmation, { language: S(F.value ?? z.value) }));
|
|
132
132
|
function $() {
|
|
133
133
|
let e = I.value?.locale ?? F.value;
|
|
134
134
|
R.value = null, L.value = null, I.value = null, F.value = null, f(() => {
|
|
135
135
|
if (!N.value) {
|
|
136
|
-
|
|
136
|
+
j.value?.focus();
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
let t = `language-actions-${e}`;
|
|
140
|
-
|
|
140
|
+
A.value?.querySelector(`[data-testid="${t}"]`)?.focus();
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
function ht() {
|
|
@@ -146,64 +146,64 @@ var Ce = [
|
|
|
146
146
|
if (I.value) {
|
|
147
147
|
let e = I.value.locale;
|
|
148
148
|
if (!Z(e)) return;
|
|
149
|
-
let t =
|
|
149
|
+
let t = et?.setDefaultLocale(e);
|
|
150
150
|
if (!t) return;
|
|
151
151
|
if (!t.applied) {
|
|
152
|
-
L.value =
|
|
153
|
-
language:
|
|
154
|
-
reason: t.error.code === "locked_by_others" || t.error.code === "lock_held" ?
|
|
152
|
+
L.value = D(E.localization.defaultRefused, {
|
|
153
|
+
language: S(e),
|
|
154
|
+
reason: t.error.code === "locked_by_others" || t.error.code === "lock_held" ? E.localization.defaultLockedReason : t.error.message
|
|
155
155
|
});
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
} else F.value &&
|
|
158
|
+
} else F.value && C.locales.includes(F.value) && C.editor.removeLocale?.(F.value);
|
|
159
159
|
$(), Y();
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
return r([() =>
|
|
162
|
+
return r([() => C.editor.state.template?.id ?? null, () => C.editor.loadVersion?.value], () => {
|
|
163
163
|
(N.value || R.value !== null) && ($(), Y());
|
|
164
164
|
}, { flush: "sync" }), r(() => I.value !== null && !Z(I.value.locale), (e) => {
|
|
165
165
|
e && ($(), Y());
|
|
166
|
-
}), ee(
|
|
166
|
+
}), ee(A, () => {
|
|
167
167
|
N.value = !1, P.value = null;
|
|
168
168
|
}), (r, a) => (t(), o("div", {
|
|
169
169
|
ref_key: "root",
|
|
170
|
-
ref:
|
|
170
|
+
ref: A,
|
|
171
171
|
class: "tpl-language-control tpl:relative tpl:min-w-0 tpl:shrink-0",
|
|
172
172
|
onKeydown: st
|
|
173
173
|
}, [
|
|
174
174
|
p("button", {
|
|
175
175
|
ref_key: "trigger",
|
|
176
|
-
ref:
|
|
176
|
+
ref: j,
|
|
177
177
|
type: "button",
|
|
178
178
|
"data-testid": "language-menu",
|
|
179
179
|
"aria-haspopup": "menu",
|
|
180
180
|
"aria-expanded": N.value,
|
|
181
181
|
title: J.value,
|
|
182
182
|
"aria-label": rt.value,
|
|
183
|
-
class: l([c(
|
|
183
|
+
class: l([c(Se), "tpl-language-trigger"]),
|
|
184
184
|
onClick: at
|
|
185
185
|
}, [
|
|
186
|
-
p("span",
|
|
187
|
-
p("span",
|
|
186
|
+
p("span", Te, m(c(S)(B.value)), 1),
|
|
187
|
+
p("span", Ee, m(B.value), 1),
|
|
188
188
|
q.value ? (t(), o(_, { key: 0 }, [v(c(b), {
|
|
189
189
|
size: 12,
|
|
190
190
|
"aria-hidden": "true",
|
|
191
191
|
class: "tpl:shrink-0 tpl:text-[var(--tpl-warning)]"
|
|
192
|
-
}), p("span",
|
|
192
|
+
}), p("span", De, m(q.value), 1)], 64)) : u("", !0),
|
|
193
193
|
v(c(te), {
|
|
194
194
|
size: 12,
|
|
195
195
|
"aria-hidden": "true",
|
|
196
196
|
class: "tpl-language-chevron tpl:shrink-0"
|
|
197
197
|
})
|
|
198
|
-
], 10,
|
|
198
|
+
], 10, we),
|
|
199
199
|
N.value ? (t(), o("div", {
|
|
200
200
|
key: 0,
|
|
201
201
|
role: "menu",
|
|
202
|
-
"aria-label": c(
|
|
203
|
-
class: l([
|
|
202
|
+
"aria-label": c(E).localization.languages,
|
|
203
|
+
class: l([T, "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:w-72"])
|
|
204
204
|
}, [
|
|
205
|
-
p("div",
|
|
206
|
-
p("div",
|
|
205
|
+
p("div", ke, m(c(E).localization.languages), 1),
|
|
206
|
+
p("div", Ae, [(t(!0), o(_, null, i(tt.value, (n) => (t(), o("div", {
|
|
207
207
|
key: n.locale,
|
|
208
208
|
class: "tpl-language-row tpl:flex tpl:items-center",
|
|
209
209
|
"data-active": B.value === n.locale
|
|
@@ -212,16 +212,16 @@ var Ce = [
|
|
|
212
212
|
role: "menuitemradio",
|
|
213
213
|
"aria-checked": B.value === n.locale,
|
|
214
214
|
"data-testid": `language-option-${n.locale}`,
|
|
215
|
-
class: l(
|
|
215
|
+
class: l(w),
|
|
216
216
|
onClick: (e) => ct(n.locale)
|
|
217
|
-
}, [p("span",
|
|
217
|
+
}, [p("span", Ne, [B.value === n.locale ? (t(), d(c(y), {
|
|
218
218
|
key: 0,
|
|
219
219
|
size: 12,
|
|
220
220
|
"aria-hidden": "true"
|
|
221
|
-
})) : u("", !0)]), p("span",
|
|
221
|
+
})) : u("", !0)]), p("span", Pe, [p("span", Fe, [p("span", null, m(c(S)(n.locale)), 1), n.locale === z.value || !e.locales.includes(n.locale) ? (t(), o("span", {
|
|
222
222
|
key: 0,
|
|
223
|
-
class: l(["tpl-language-pill", c(
|
|
224
|
-
}, m(n.locale === z.value ? c(
|
|
223
|
+
class: l(["tpl-language-pill", c(xe)])
|
|
224
|
+
}, m(n.locale === z.value ? c(E).localization.default : c(E).localization.notEnabled), 3)) : u("", !0)]), n.coverage ? (t(), o("span", {
|
|
225
225
|
key: 0,
|
|
226
226
|
"data-testid": `language-status-${n.locale}`,
|
|
227
227
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
@@ -235,87 +235,87 @@ var Ce = [
|
|
|
235
235
|
size: 10,
|
|
236
236
|
"aria-hidden": "true",
|
|
237
237
|
class: "tpl:text-[var(--tpl-success)]"
|
|
238
|
-
})), s(" " + m(it(n.coverage)), 1)], 8,
|
|
238
|
+
})), s(" " + m(it(n.coverage)), 1)], 8, Ie)) : u("", !0)])], 8, Me), n.locale !== z.value && U.value && e.locales.includes(n.locale) ? (t(), o("button", {
|
|
239
239
|
key: 0,
|
|
240
240
|
type: "button",
|
|
241
241
|
"data-testid": `language-actions-${n.locale}`,
|
|
242
242
|
"aria-haspopup": "menu",
|
|
243
243
|
"aria-expanded": P.value === n.locale,
|
|
244
|
-
"aria-label": c(
|
|
244
|
+
"aria-label": c(D)(c(E).localization.moreActions, { language: c(S)(n.locale) }),
|
|
245
245
|
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)]",
|
|
246
246
|
onClick: (e) => X(n.locale)
|
|
247
247
|
}, [v(c(oe), {
|
|
248
248
|
size: 14,
|
|
249
249
|
"aria-hidden": "true"
|
|
250
|
-
})], 8,
|
|
250
|
+
})], 8, Le)) : u("", !0)], 8, je))), 128))]),
|
|
251
251
|
(t(!0), o(_, null, i(tt.value.filter((t) => t.locale === P.value && U.value && e.locales.includes(t.locale)), (e) => (t(), o("div", {
|
|
252
252
|
key: e.locale,
|
|
253
253
|
role: "menu",
|
|
254
254
|
"data-language-submenu": "",
|
|
255
|
-
"aria-label": c(
|
|
256
|
-
class: l([
|
|
255
|
+
"aria-label": c(D)(c(E).localization.moreActions, { language: c(S)(e.locale) }),
|
|
256
|
+
class: l([T, "tpl-language-submenu tpl:absolute tpl:left-full tpl:top-0 tpl:ml-1 tpl:w-64 tpl:overflow-hidden"])
|
|
257
257
|
}, [p("button", {
|
|
258
258
|
type: "button",
|
|
259
259
|
role: "menuitem",
|
|
260
260
|
"data-testid": `language-make-default-${e.locale}`,
|
|
261
|
-
class: l(
|
|
261
|
+
class: l(w),
|
|
262
262
|
"aria-disabled": K.value,
|
|
263
|
-
"aria-label": c(
|
|
264
|
-
"aria-describedby": K.value ?
|
|
263
|
+
"aria-label": c(E).localization.makeDefaultLanguage,
|
|
264
|
+
"aria-describedby": K.value ? M : void 0,
|
|
265
265
|
onClick: (t) => pt(e.locale)
|
|
266
266
|
}, [v(c(ne), {
|
|
267
267
|
size: 14,
|
|
268
268
|
"aria-hidden": "true",
|
|
269
269
|
class: "tpl:shrink-0"
|
|
270
|
-
}), p("span",
|
|
270
|
+
}), p("span", Be, [p("span", null, m(c(E).localization.makeDefaultLanguage), 1), K.value ? (t(), o("span", {
|
|
271
271
|
key: 0,
|
|
272
|
-
id:
|
|
272
|
+
id: M,
|
|
273
273
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
274
|
-
}, m(G.value ? c(
|
|
274
|
+
}, m(G.value ? c(x)(c(E).localization.hiddenBeforeDefault, nt.value.length, c(O), { language: c(S)(e.locale) }) : c(D)(c(E).localization.defaultNotEnabled, { default: c(S)(z.value) })), 1)) : u("", !0)])], 8, ze), p("button", {
|
|
275
275
|
type: "button",
|
|
276
276
|
role: "menuitem",
|
|
277
277
|
"data-testid": `language-remove-${e.locale}`,
|
|
278
|
-
class: l([
|
|
278
|
+
class: l([w, "tpl:text-[var(--tpl-danger)]"]),
|
|
279
279
|
onClick: (t) => ft(e.locale)
|
|
280
280
|
}, [v(c(ae), {
|
|
281
281
|
size: 14,
|
|
282
282
|
"aria-hidden": "true"
|
|
283
|
-
}), s(m(c(
|
|
284
|
-
H.value.length && U.value ? (t(), o("div",
|
|
283
|
+
}), s(m(c(D)(c(E).localization.removeLanguage, { language: c(S)(e.locale) })) + "… ", 1)], 8, Ve)], 8, Re))), 128)),
|
|
284
|
+
H.value.length && U.value ? (t(), o("div", He, [p("button", {
|
|
285
285
|
type: "button",
|
|
286
286
|
role: "menuitem",
|
|
287
287
|
"data-testid": "language-add",
|
|
288
288
|
"aria-haspopup": "menu",
|
|
289
289
|
"aria-expanded": P.value === "add",
|
|
290
|
-
class: l(
|
|
290
|
+
class: l(w),
|
|
291
291
|
onClick: a[0] ||= (e) => X("add")
|
|
292
292
|
}, [
|
|
293
293
|
v(c(re), {
|
|
294
294
|
size: 14,
|
|
295
295
|
"aria-hidden": "true"
|
|
296
296
|
}),
|
|
297
|
-
s(m(c(
|
|
297
|
+
s(m(c(E).localization.addLanguage), 1),
|
|
298
298
|
v(c(ie), {
|
|
299
299
|
size: 12,
|
|
300
300
|
"aria-hidden": "true",
|
|
301
301
|
class: "tpl:ml-auto"
|
|
302
302
|
})
|
|
303
|
-
], 8,
|
|
303
|
+
], 8, Ue), P.value === "add" ? (t(), o("div", {
|
|
304
304
|
key: 0,
|
|
305
305
|
role: "menu",
|
|
306
306
|
"data-language-submenu": "",
|
|
307
|
-
"aria-label": c(
|
|
308
|
-
class: l([
|
|
307
|
+
"aria-label": c(E).localization.addLanguage,
|
|
308
|
+
class: l([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"])
|
|
309
309
|
}, [(t(!0), o(_, null, i(H.value, (e) => (t(), o("button", {
|
|
310
310
|
key: e,
|
|
311
311
|
type: "button",
|
|
312
312
|
role: "menuitem",
|
|
313
313
|
"data-testid": `language-add-${e}`,
|
|
314
|
-
class: l(
|
|
314
|
+
class: l(w),
|
|
315
315
|
onClick: (t) => lt(e)
|
|
316
|
-
}, m(c(
|
|
317
|
-
], 8,
|
|
318
|
-
v(
|
|
316
|
+
}, m(c(S)(e)), 9, Ge))), 128))], 8, We)) : u("", !0)])) : u("", !0)
|
|
317
|
+
], 8, Oe)) : u("", !0),
|
|
318
|
+
v(Ce, {
|
|
319
319
|
visible: F.value !== null || I.value !== null,
|
|
320
320
|
onClose: $
|
|
321
321
|
}, {
|
|
@@ -325,35 +325,35 @@ var Ce = [
|
|
|
325
325
|
"aria-label": Q.value,
|
|
326
326
|
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)]"
|
|
327
327
|
}, [
|
|
328
|
-
p("h3",
|
|
329
|
-
I.value && mt.value ? (t(), o("p",
|
|
330
|
-
language: c(
|
|
331
|
-
default: c(
|
|
328
|
+
p("h3", qe, m(Q.value), 1),
|
|
329
|
+
I.value && mt.value ? (t(), o("p", Je, m(c(x)(c(E).localization.defaultGaps, mt.value, c(O), {
|
|
330
|
+
language: c(S)(I.value.locale),
|
|
331
|
+
default: c(S)(z.value)
|
|
332
332
|
})), 1)) : u("", !0),
|
|
333
|
-
F.value ? (t(), o("p",
|
|
334
|
-
L.value ? (t(), o("p",
|
|
333
|
+
F.value ? (t(), o("p", Ye, m(c(D)(c(E).localization.removeDescription, { language: c(S)(F.value) })), 1)) : u("", !0),
|
|
334
|
+
L.value ? (t(), o("p", Xe, [v(c(b), {
|
|
335
335
|
size: 14,
|
|
336
336
|
"aria-hidden": "true",
|
|
337
337
|
class: "tpl:shrink-0"
|
|
338
338
|
}), p("span", null, m(L.value), 1)])) : u("", !0),
|
|
339
|
-
p("div",
|
|
339
|
+
p("div", Ze, [p("button", {
|
|
340
340
|
type: "button",
|
|
341
341
|
"data-testid": I.value ? "language-default-cancel" : "language-remove-cancel",
|
|
342
|
-
class: l(c(
|
|
342
|
+
class: l(c(ve)),
|
|
343
343
|
onClick: $
|
|
344
|
-
}, m(c(
|
|
344
|
+
}, m(c(E).localization.cancel), 11, Qe), p("button", {
|
|
345
345
|
type: "button",
|
|
346
346
|
"data-testid": I.value ? "language-default-confirm" : "language-remove-confirm",
|
|
347
|
-
class: l(c(F.value ?
|
|
347
|
+
class: l(c(F.value ? be : ye)),
|
|
348
348
|
disabled: !U.value,
|
|
349
349
|
onClick: ht
|
|
350
|
-
}, m(I.value ? c(
|
|
351
|
-
], 8,
|
|
350
|
+
}, m(I.value ? c(E).localization.makeDefault : c(D)(c(E).localization.removeLanguage, { language: c(S)(F.value ?? z.value) })), 11, $e)])
|
|
351
|
+
], 8, Ke)]),
|
|
352
352
|
_: 1
|
|
353
353
|
}, 8, ["visible"])
|
|
354
354
|
], 544));
|
|
355
355
|
}
|
|
356
356
|
}), [["__scopeId", "data-v-9b071249"]]);
|
|
357
|
-
export {
|
|
357
|
+
export { E as default };
|
|
358
358
|
|
|
359
|
-
//# sourceMappingURL=LanguageMenu-
|
|
359
|
+
//# sourceMappingURL=LanguageMenu-6wGhkyFT.js.map
|