@templatical/editor 0.41.0 → 0.42.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/{AiChatSidebar-a8TPBAl2.js → AiChatSidebar-DOCvzGBe.js} +8 -8
- package/dist/{AiFeatureMenu-CroDMqRG.js → AiFeatureMenu-CfijAx4G.js} +4 -4
- package/dist/{BlockIssueBadge-D8KsGWY6.js → BlockIssueBadge-BJ3A6mqh.js} +2 -2
- package/dist/{BlockPreviewCanvas-Z9SZIgfA.js → BlockPreviewCanvas-DggfBaoJ.js} +33 -33
- package/dist/{CloudHeaderExtras-CVqHeqc6.js → CloudHeaderExtras-dFbdqBr5.js} +2 -2
- package/dist/{CloudPanels-CmEpQUJB.js → CloudPanels-DmMxhzzZ.js} +4 -4
- package/dist/{CollaboratorBar-AIQC9fEF.js → CollaboratorBar-XXk1tOC5.js} +2 -2
- package/dist/{CommentsPanel-9k1q-79y.js → CommentsPanel-CGEhbjx0.js} +1 -1
- package/dist/{CommentsSidebar-Bc7nORmD.js → CommentsSidebar-CUpst9ou.js} +10 -10
- package/dist/{CountdownToolbar-DkC-qSgq.js → CountdownToolbar-B1a_UIuB.js} +3 -3
- package/dist/{DesignReferenceSidebar-OoiYJAKS.js → DesignReferenceSidebar-DkAmsBgM.js} +6 -6
- package/dist/{IssuesPanel-Dnns3O9z.js → IssuesPanel-lTpsCV4a.js} +5 -5
- package/dist/{LogicTagInsertButton-BimKobaG.js → LogicTagInsertButton-B5YymR4U.js} +243 -219
- package/dist/{MediaEditModal-C-InB-H2.js → MediaEditModal-B1X8qtJb.js} +1 -1
- package/dist/{MediaPanels-CTosUpeo.js → MediaPanels-DO30L1KS.js} +1 -1
- package/dist/{MergeTagInput-DqpVzhy7.js → MergeTagInput-B0M_-X0K.js} +1 -1
- package/dist/{MergeTagModeToggle-BkIiAgpQ.js → MergeTagModeToggle-B-8W1tK7.js} +4 -4
- package/dist/{ParagraphEditor-DaZ03d1U.js → ParagraphEditor-BhhpXgoO.js} +35 -35
- package/dist/{RestoreVersionDialog-DHb1mPoF.js → RestoreVersionDialog-DE8aqmdi.js} +3 -3
- package/dist/{RichTextEditorContent-AEtfKvLz.js → RichTextEditorContent-AaLAArA0.js} +5 -5
- package/dist/{SaveBlockDialog-hGwLDWfE.js → SaveBlockDialog-BJ-hEwLv.js} +8 -8
- package/dist/{SavedBlocksBrowserModal-C0lYVBFi.js → SavedBlocksBrowserModal-nLI8aAQ5.js} +9 -9
- package/dist/{SavedBlocksPanels-CaTbeVDv.js → SavedBlocksPanels-RnzUMUJI.js} +1 -1
- package/dist/{SavedBlocksPickBar-DR2afid2.js → SavedBlocksPickBar-D3QA3Tgy.js} +2 -2
- package/dist/{TemplateScoringPanel-Cs0TGtRF.js → TemplateScoringPanel-C6ellAcs.js} +11 -11
- package/dist/{TemplateSettings-BD1WNP4C.js → TemplateSettings-C_0qK-zs.js} +6 -6
- package/dist/{TestEmailModal-DqoosG1u.js → TestEmailModal-CnyxLhWJ.js} +7 -7
- package/dist/{TestEmailPanel-DpozqyHF.js → TestEmailPanel-BRisIL4G.js} +1 -1
- package/dist/{TitleEditor-BCBdZLt_.js → TitleEditor-lPITPzw6.js} +12 -12
- package/dist/{ToggleSwitch-CJfQ8u57.js → ToggleSwitch-CtZ6adlX.js} +1 -1
- package/dist/{Toolbar-C7SjilzH.js → Toolbar-B6dG5_IP.js} +847 -554
- package/dist/{TplModal-CVO-2KrU.js → TplModal-BiAf7tWe.js} +2 -2
- package/dist/{VersionHistoryMenu-b0A8mS2_.js → VersionHistoryMenu-DdspCRSA.js} +5 -5
- package/dist/{VersionHistoryPanels-BzF7dmwa.js → VersionHistoryPanels-C589Jm_B.js} +1 -1
- package/dist/{VersionPreviewBanner-xB9r83r0.js → VersionPreviewBanner-XUuLe36h.js} +1 -1
- package/dist/{WrapperBlock-BDjOn3fY.js → WrapperBlock-CVQ4t1tY.js} +4 -4
- package/dist/{blockTypeIcons-B0Bq1WT1.js → blockTypeIcons-Sg8SY1NQ.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-Ckgw9yd0.js → ca--zGWn9AU.js} +14 -2
- package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js → AiChatSidebar-DiG-EQ-E.js} +8 -8
- package/dist/cdn/chunks/AiChatSidebar-DiG-EQ-E.js.map +1 -0
- package/dist/cdn/chunks/{AiFeatureMenu-Cx3qdStQ.js → AiFeatureMenu-BXSPgOzA.js} +5 -5
- package/dist/cdn/chunks/AiFeatureMenu-BXSPgOzA.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js → BlockIssueBadge-ChQ0mPf5.js} +2 -2
- package/dist/cdn/chunks/BlockIssueBadge-ChQ0mPf5.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D31TNib3.js → BlockPreviewCanvas-CMmv1FTA.js} +28 -28
- package/dist/cdn/chunks/BlockPreviewCanvas-CMmv1FTA.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-0zdlKiq7.js → CloudHeaderExtras-yvFz2_e-.js} +3 -3
- package/dist/cdn/chunks/CloudHeaderExtras-yvFz2_e-.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-DPh71yOO.js → CloudPanels-DpKck9Na.js} +4 -4
- package/dist/cdn/chunks/CloudPanels-DpKck9Na.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-lCZU8qkg.js → CollaboratorBar-Clm1ZVXQ.js} +3 -3
- package/dist/cdn/chunks/CollaboratorBar-Clm1ZVXQ.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js → CommentsPanel-CjhxGMjL.js} +2 -2
- package/dist/cdn/chunks/CommentsPanel-CjhxGMjL.js.map +1 -0
- package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js → CommentsSidebar-D9bqMnlt.js} +16 -16
- package/dist/cdn/chunks/CommentsSidebar-D9bqMnlt.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock-sVDjKkRw.js.map +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js → CountdownToolbar-CIRx5w1U.js} +4 -4
- package/dist/cdn/chunks/CountdownToolbar-CIRx5w1U.js.map +1 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js → DesignReferenceSidebar-C1-SbE_R.js} +9 -9
- package/dist/cdn/chunks/DesignReferenceSidebar-C1-SbE_R.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js → IssuesPanel-qKY6UDd-.js} +8 -8
- package/dist/cdn/chunks/IssuesPanel-qKY6UDd-.js.map +1 -0
- package/dist/cdn/chunks/LoadingTrack-_7DH_5aw.js.map +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CHc1yZ9v.js → LogicTagInsertButton-CItDS_U1.js} +250 -226
- package/dist/cdn/chunks/LogicTagInsertButton-CItDS_U1.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cw9MhjVz.js → MediaEditModal-CzUtXkpk.js} +2 -2
- package/dist/cdn/chunks/MediaEditModal-CzUtXkpk.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-FD_aX3H5.js → MediaPanels-DOLsh7WC.js} +2 -2
- package/dist/cdn/chunks/MediaPanels-DOLsh7WC.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js → MergeTagInput-B33u3nxj.js} +2 -2
- package/dist/cdn/chunks/MergeTagInput-B33u3nxj.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js → MergeTagModeToggle-Bz1CH3NT.js} +10 -10
- package/dist/cdn/chunks/MergeTagModeToggle-Bz1CH3NT.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-w2qEZTkM.js → ParagraphEditor-J74SIn-m.js} +51 -51
- package/dist/cdn/chunks/ParagraphEditor-J74SIn-m.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-cnWVN3nX.js → RestoreVersionDialog-CFE7jqDB.js} +3 -3
- package/dist/cdn/chunks/RestoreVersionDialog-CFE7jqDB.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js → RichTextEditorContent-dOg1xFqv.js} +5 -5
- package/dist/cdn/chunks/RichTextEditorContent-dOg1xFqv.js.map +1 -0
- package/dist/cdn/chunks/{SaveBlockDialog-jxQtKnVs.js → SaveBlockDialog-DZOmDCC8.js} +38 -38
- package/dist/cdn/chunks/SaveBlockDialog-DZOmDCC8.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DpXWf4Pi.js → SavedBlocksBrowserModal-B43H5zKA.js} +10 -10
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B43H5zKA.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-B-ASmf1P.js → SavedBlocksPanels-uTSb2xO_.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksPanels-uTSb2xO_.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPickBar-CEFIQ8Nd.js → SavedBlocksPickBar-BUvmGqHK.js} +3 -3
- package/dist/cdn/chunks/SavedBlocksPickBar-BUvmGqHK.js.map +1 -0
- package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js → TemplateScoringPanel-ebsrVge3.js} +19 -19
- package/dist/cdn/chunks/TemplateScoringPanel-ebsrVge3.js.map +1 -0
- package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js → TemplateSettings-BaEVdUTM.js} +9 -9
- package/dist/cdn/chunks/TemplateSettings-BaEVdUTM.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-CrjzVw8e.js → TestEmailModal-ide7UP_H.js} +7 -7
- package/dist/cdn/chunks/TestEmailModal-ide7UP_H.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-k9vdulTu.js → TestEmailPanel-Cqdsnufx.js} +2 -2
- package/dist/cdn/chunks/TestEmailPanel-Cqdsnufx.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-laILWfKh.js → TitleEditor-CoFzxLPA.js} +16 -16
- package/dist/cdn/chunks/TitleEditor-CoFzxLPA.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js → ToggleSwitch-D-8dCEbI.js} +2 -2
- package/dist/cdn/chunks/ToggleSwitch-D-8dCEbI.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-BsiHW9gY.js → Toolbar-BDzhrmGV.js} +814 -566
- package/dist/cdn/chunks/Toolbar-BDzhrmGV.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-D8DoPbFa.js → TplModal-mLMmolQp.js} +3 -3
- package/dist/cdn/chunks/TplModal-mLMmolQp.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js → VersionHistoryMenu-C_bBKOYU.js} +7 -7
- package/dist/cdn/chunks/VersionHistoryMenu-C_bBKOYU.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-zw1AtzGN.js → VersionHistoryPanels-B9LwOKxm.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryPanels-B9LwOKxm.js.map +1 -0
- package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js → VersionPreviewBanner-CKyrcgxJ.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-CKyrcgxJ.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-CpRvfAV0.js → WrapperBlock-DI8vSvTO.js} +4 -4
- package/dist/cdn/chunks/WrapperBlock-DI8vSvTO.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js.map +1 -0
- package/dist/{ca-Ckgw9yd0.js → cdn/chunks/ca--zGWn9AU.js} +16 -0
- package/dist/cdn/chunks/ca--zGWn9AU.js.map +1 -0
- package/dist/cdn/chunks/ca-BTf1Zbqb.js.map +1 -1
- package/dist/cdn/chunks/{cloud-CIT4yPp4.js → cloud-De-eh1u6.js} +2 -2
- package/dist/cdn/chunks/cloud-De-eh1u6.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js → createCloudRuntime-DsaUaWvr.js} +3 -3
- package/dist/cdn/chunks/createCloudRuntime-DsaUaWvr.js.map +1 -0
- package/dist/cdn/chunks/{de-D4dweQw8.js → de-BRNLKcDl.js} +15 -1
- package/dist/cdn/chunks/de-BRNLKcDl.js.map +1 -0
- package/dist/cdn/chunks/de-mMY5yQJu.js.map +1 -1
- package/dist/cdn/chunks/de-xzrh9PA3.js.map +1 -1
- package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -1
- package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -1
- package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -1
- package/dist/cdn/chunks/{editor-modal-CKu8HhiB.js → editor-modal-CZQArGNj.js} +88 -88
- package/dist/cdn/chunks/editor-modal-CZQArGNj.js.map +1 -0
- package/dist/cdn/chunks/emojiData-6m0DBh7O.js.map +1 -1
- package/dist/cdn/chunks/en-9unxBjV8.js +2 -0
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +1 -1
- package/dist/{en-VE7R7NyL.js → cdn/chunks/en-JJjqHMjy.js} +16 -0
- package/dist/cdn/chunks/en-JJjqHMjy.js.map +1 -0
- package/dist/cdn/chunks/{es-B9OhP8H3.js → es-BIh8BxV9.js} +15 -1
- package/dist/cdn/chunks/es-BIh8BxV9.js.map +1 -0
- package/dist/cdn/chunks/es-BT4LSpE2.js.map +1 -1
- package/dist/cdn/chunks/{extensions-CafoGF65.js → extensions-Dy251lPd.js} +5 -5
- package/dist/cdn/chunks/extensions-Dy251lPd.js.map +1 -0
- package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js.map +1 -1
- package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js.map +1 -1
- package/dist/{fr-wrXhIi00.js → cdn/chunks/fr-C5VUZogP.js} +16 -0
- package/dist/cdn/chunks/fr-C5VUZogP.js.map +1 -0
- package/dist/cdn/chunks/fr-CI7OJoql.js.map +1 -1
- package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -1
- package/dist/cdn/chunks/{icons-BKkJ-5xF.js → icons-CQnjugjy.js} +86 -45
- package/dist/cdn/chunks/icons-CQnjugjy.js.map +1 -0
- package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -1
- package/dist/cdn/chunks/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +15 -1
- package/dist/cdn/chunks/ja-x5JYxaCW.js.map +1 -0
- package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -1
- package/dist/cdn/chunks/liquid.browser-BypTT2oc.js.map +1 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -1
- package/dist/cdn/chunks/nl-D8y5OWGB.js.map +1 -1
- package/dist/cdn/chunks/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +15 -1
- package/dist/cdn/chunks/nl-UXxFyXV6.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js → preRenderCustomBlocks-h4ZFBKbD.js} +2 -2
- package/dist/cdn/chunks/preRenderCustomBlocks-h4ZFBKbD.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-CoCwRUi0.js.map +1 -1
- package/dist/{pt-BR-Bh1J8ey6.js → cdn/chunks/pt-BR-DHm3SP6W.js} +16 -0
- package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-DMCbUBvJ.js.map +1 -1
- package/dist/cdn/chunks/pusher-BbIHJKf3.js.map +1 -1
- package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
- package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js → socialIcons-ZOCwCCyn.js} +3 -3
- package/dist/cdn/chunks/socialIcons-ZOCwCCyn.js.map +1 -0
- package/dist/cdn/chunks/{src-DveVYoWS.js → src-BR3I3gOW.js} +265 -224
- package/dist/cdn/chunks/src-BR3I3gOW.js.map +1 -0
- package/dist/cdn/chunks/{src-Cnc5E71L.js → src-fZSLjhjy.js} +12 -12
- package/dist/cdn/chunks/src-fZSLjhjy.js.map +1 -0
- package/dist/cdn/chunks/{src-L6HEdwFn.js → src-nhIF5-mf.js} +179 -166
- package/dist/cdn/chunks/src-nhIF5-mf.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-C_YAPdQS.js.map +1 -1
- package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js.map +1 -1
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-DhLuKyDc.js → tiptap-D1u8JIUW.js} +1916 -1917
- package/dist/cdn/chunks/tiptap-D1u8JIUW.js.map +1 -0
- package/dist/cdn/chunks/useAliveFlag-DAlQLbM2.js.map +1 -1
- package/dist/cdn/chunks/useCloudI18n-CrjWbpbu.js.map +1 -1
- package/dist/cdn/chunks/{useEditorCore-DZmtKwJh.js → useEditorCore-D4kzTMtQ.js} +458 -446
- package/dist/cdn/chunks/useEditorCore-D4kzTMtQ.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CshefZLP.js.map +1 -1
- package/dist/cdn/chunks/useI18n-CyO_Nmca.js.map +1 -1
- package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js → useLogicTag-J_i_hvZg.js} +2 -2
- package/dist/cdn/chunks/useLogicTag-J_i_hvZg.js.map +1 -0
- package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js → useMergeTag-C5MyHYxJ.js} +2 -2
- package/dist/cdn/chunks/useMergeTag-C5MyHYxJ.js.map +1 -0
- package/dist/cdn/chunks/{usePopoverPosition-BJRvAb-h.js → usePopoverPosition-DGXjXKjM.js} +25 -12
- package/dist/cdn/chunks/usePopoverPosition-DGXjXKjM.js.map +1 -0
- package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +493 -464
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-eqb2JhqU.js → check-BMx_TLAS.js} +1 -1
- package/dist/{chevron-down-Dkr-7Ywl.js → chevron-down-KZf5mh9_.js} +1 -1
- package/dist/{chevron-right-Bge4XF_B.js → chevron-right-BLZ60Vxw.js} +1 -1
- package/dist/{chevron-up-CQAyl0kC.js → chevron-up-B9ynB8eU.js} +1 -1
- package/dist/{circle-alert-CYgTHKWr.js → circle-alert-pjvFFDrF.js} +1 -1
- package/dist/{clock-BgSJZJP5.js → clock-CiiTBfF3.js} +1 -1
- package/dist/{cloud-DsqqUfzh.js → cloud-AO_X8T9g.js} +1 -1
- package/dist/{copy-mw6PVnOJ.js → copy-BF0_pQjH.js} +1 -1
- package/dist/{createCloudRuntime-iLflkYzP.js → createCloudRuntime-D641nhri.js} +2 -2
- package/dist/{createLucideIcon-BxY5yz5u.js → createLucideIcon-C2YOVVWx.js} +8 -8
- package/dist/{de-D4dweQw8.js → de-BRNLKcDl.js} +14 -0
- package/dist/{dist-CQSVro7b.js → dist-B0dkvy7z.js} +1 -1
- package/dist/{dist-BJM3eFyT.js → dist-BPWuzECC.js} +1 -1
- package/dist/{dist-EDkj3Ub1.js → dist-BUHovM4k.js} +1 -1
- package/dist/{dist-BmsLcnrO.js → dist-BwoEME8p.js} +1 -1
- package/dist/{dist-DerFNpDY.js → dist-C2Ge44fD.js} +760 -761
- package/dist/{dist-BdHF7nyq.js → dist-CIxmOOSG.js} +5 -5
- package/dist/{dist-wyXxj3R1.js → dist-CJ7RZARo.js} +1 -1
- package/dist/{dist-Bl4rxpX9.js → dist-CxmLZQso.js} +1 -1
- package/dist/{dist-DyrEOKEJ.js → dist-DRmafAUz.js} +1 -1
- package/dist/{dist-Djmzp6wi.js → dist-DdOAotfz.js} +1 -1
- package/dist/{dist-BxVnMgXZ.js → dist-W_ERo6c_.js} +1 -1
- package/dist/{dist-DbUZvK04.js → dist-iLUVPysa.js} +263 -222
- package/dist/{dist-DQbOebGW.js → dist-p-LkiWIQ.js} +1 -1
- package/dist/{editor-modal-qzmEVcIk.js → editor-modal-99FB40dl.js} +16 -16
- package/dist/en-BvOjRLiw.js +2 -0
- package/dist/{cdn/chunks/en-VE7R7NyL.js → en-JJjqHMjy.js} +14 -2
- package/dist/{es-B9OhP8H3.js → es-BIh8BxV9.js} +14 -0
- package/dist/{extensions-DDhjuVKy.js → extensions-DqQXxrvP.js} +13 -13
- package/dist/{eye-DphkRtAD.js → eye-RdXYgrQZ.js} +1 -1
- package/dist/{cdn/chunks/fr-wrXhIi00.js → fr-C5VUZogP.js} +14 -2
- package/dist/{image-up-Qi2BXD7T.js → image-up-BwdoReQt.js} +1 -1
- package/dist/{info-VSyAs02q.js → info-zFMSGrL1.js} +1 -1
- package/dist/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +14 -0
- package/dist/{link-CNuozGqD.js → link-D7orqFBT.js} +1 -1
- package/dist/{list-BA0I5Wmu.js → list-BGt4Pgxc.js} +1 -1
- package/dist/{loader-circle-z5eeqasv.js → loader-circle-BVBgkRGz.js} +1 -1
- package/dist/{message-circle-BsQ9hEup.js → message-circle-D8YLsarv.js} +1 -1
- package/dist/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +14 -0
- package/dist/{package-OkXfuRoO.js → package-CuFvk0L5.js} +1 -1
- package/dist/{pencil-DFVFA7Dj.js → pencil-DRYbmZW7.js} +1 -1
- package/dist/{plus-D8bkVjZ7.js → plus-Dv0b3kh0.js} +1 -1
- package/dist/{preRenderCustomBlocks-BBSqQgke.js → preRenderCustomBlocks-CTstI3Q-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +14 -2
- package/dist/{refresh-cw-DPB7YFuz.js → refresh-cw-gYTIS5bJ.js} +1 -1
- package/dist/{search-C-dCgqIa.js → search-D84_Ki_a.js} +1 -1
- package/dist/{send-Cm2fy2zm.js → send-Cn-8_H_U.js} +1 -1
- package/dist/{shield-check-COgBYFDF.js → shield-check-BOoVWJtD.js} +1 -1
- package/dist/{smartphone-v0u_MOEV.js → smartphone-4Ej3PBw5.js} +1 -1
- package/dist/{socialIcons-O7PZCW2P.js → socialIcons-CzRJskEk.js} +47 -47
- package/dist/{sparkles-Ds0RF8Iu.js → sparkles-D3vnNe7O.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +432 -403
- package/dist/{text-align-start-DiavaIm6.js → text-align-start-Ci2h_Xly.js} +1 -1
- package/dist/{trash-DnOkfu2V.js → trash-wmi4UKvv.js} +1 -1
- package/dist/{triangle-alert-DGLAyXnh.js → triangle-alert-DJ0r2wmQ.js} +1 -1
- package/dist/{upload-BBDme2cy.js → upload-XMde-TXf.js} +1 -1
- package/dist/{useEditorCore-dcdHB_7H.js → useEditorCore-Dhit8Ygg.js} +894 -882
- package/dist/{useLogicTag-D9pvgxQR.js → useLogicTag-BaH8gey0.js} +1 -1
- package/dist/{useMergeTag-BaVFPdlq.js → useMergeTag-Cyad1yBE.js} +1 -1
- package/dist/{usePopoverPosition-DH7z3Ghm.js → usePopoverPosition-BYmd-lhR.js} +24 -11
- package/dist/{useScrollToBlock-Dj4v3rxr.js → useScrollToBlock-B4F7KCrf.js} +1 -1
- package/dist/{x-3BHV3Q6K.js → x-BWrtpVl-.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/AiChatSidebar-mKImUXi6.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-Cx3qdStQ.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DS1pUf5g.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-D31TNib3.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-0zdlKiq7.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-DPh71yOO.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-lCZU8qkg.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-BtAGZfF6.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Ws07MXYj.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-Bu93WiS8.js.map +0 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-BlSdh5B7.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-CKkv9z9g.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-CHc1yZ9v.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cw9MhjVz.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-FD_aX3H5.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput--qTYfCWk.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-CdWIGo3Q.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-w2qEZTkM.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-cnWVN3nX.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-Fzuu9pLP.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-jxQtKnVs.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DpXWf4Pi.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-B-ASmf1P.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-CEFIQ8Nd.js.map +0 -1
- package/dist/cdn/chunks/TemplateScoringPanel-d_Ppowsq.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-Dr5OJ0Gi.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CrjzVw8e.js.map +0 -1
- package/dist/cdn/chunks/TestEmailPanel-k9vdulTu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-laILWfKh.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-0dGCYnRY.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BsiHW9gY.js.map +0 -1
- package/dist/cdn/chunks/TplModal-D8DoPbFa.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-B3-hNu9c.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-zw1AtzGN.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-PzVQSBJE.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-CpRvfAV0.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js.map +0 -1
- package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +0 -1
- package/dist/cdn/chunks/cloud-CIT4yPp4.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +0 -1
- package/dist/cdn/chunks/de-D4dweQw8.js.map +0 -1
- package/dist/cdn/chunks/editor-modal-CKu8HhiB.js.map +0 -1
- package/dist/cdn/chunks/en-DqzAdO8F.js +0 -2
- package/dist/cdn/chunks/en-VE7R7NyL.js.map +0 -1
- package/dist/cdn/chunks/es-B9OhP8H3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CafoGF65.js.map +0 -1
- package/dist/cdn/chunks/fr-wrXhIi00.js.map +0 -1
- package/dist/cdn/chunks/icons-BKkJ-5xF.js.map +0 -1
- package/dist/cdn/chunks/ja-fKnVWXHC.js.map +0 -1
- package/dist/cdn/chunks/nl-DeFatKJe.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +0 -1
- package/dist/cdn/chunks/src-Cnc5E71L.js.map +0 -1
- package/dist/cdn/chunks/src-DveVYoWS.js.map +0 -1
- package/dist/cdn/chunks/src-L6HEdwFn.js.map +0 -1
- package/dist/cdn/chunks/tiptap-DhLuKyDc.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DZmtKwJh.js.map +0 -1
- package/dist/cdn/chunks/useLogicTag-DF7-l66G.js.map +0 -1
- package/dist/cdn/chunks/useMergeTag-DbIHw4NG.js.map +0 -1
- package/dist/cdn/chunks/usePopoverPosition-BJRvAb-h.js.map +0 -1
- package/dist/en-1tgLzB8q.js +0 -2
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, J as s, K as c, M as l, N as u, O as d, R as f, S as p, V as m, W as h, Y as g, Z as _, _ as v, at as y, b, c as x, d as S, g as C, h as w, it as T, j as E, jt as D, k as O, kt as k, l as A, nt as j, r as M, rt as ee, s as N, u as P, v as F, y as te } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
|
|
2
2
|
import { c as I, o as ne, s as re } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
|
|
3
|
-
import { $ as ie,
|
|
4
|
-
import { C as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { i as
|
|
11
|
-
import { r as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
3
|
+
import { $ as ie, A as ae, B as oe, C as se, D as ce, F as le, H as ue, I as de, L as fe, N as pe, O as me, Q as he, S as ge, T as _e, U as ve, V as ye, W as be, X as xe, Y as Se, Z as Ce, _ as we, a as Te, b as Ee, c as De, et as Oe, g as ke, i as Ae, it as je, j as Me, k as Ne, m as Pe, nt as Fe, o as Ie, q as Le, r as Re, rt as ze, tt as Be, u as Ve, v as He, w as Ue, x as We, z as Ge } from "./dist-iLUVPysa.js";
|
|
4
|
+
import { C as Ke, _ as qe, a as Je, b as Ye, c as Xe, d as Ze, g as Qe, i as $e, l as et, n as tt, o as nt, s as rt, t as it, u as at, w as ot, x as st } from "./socialIcons-CzRJskEk.js";
|
|
5
|
+
import { _ as ct, h as lt, v as ut, y as dt } from "./dist-8VFzbeu9.js";
|
|
6
|
+
import { a as ft, c as pt, i as mt } from "./dist-BDuPwOyn.js";
|
|
7
|
+
import { $ as ht, A as gt, B as _t, C as vt, D as yt, E as bt, F as xt, G as St, H as Ct, I as wt, J as Tt, K as Et, L as Dt, M as Ot, N as kt, O as At, P as jt, Q as Mt, R as Nt, S as Pt, T as Ft, V as It, X as Lt, Y as Rt, Z as zt, _ as Bt, a as Vt, b as Ht, c as Ut, d as Wt, f as Gt, g as Kt, h as qt, j as Jt, k as Yt, l as Xt, m as Zt, n as Qt, o as $t, p as en, q as tn, r as nn, s as rn, v as an, w as on, x as sn, y as cn, z as ln } from "./keys-CDqfZIRt.js";
|
|
8
|
+
import { t as un } from "./useI18n-B_CdcBwG.js";
|
|
9
|
+
import { t as dn } from "./logger-BBlvSn6q.js";
|
|
10
|
+
import { i as fn, r as pn, s as mn, t as hn } from "./usePopoverPosition-BYmd-lhR.js";
|
|
11
|
+
import { r as gn, t as _n } from "./templateSettingsFields-YCFVBVYh.js";
|
|
12
|
+
import { t as vn } from "./createLucideIcon-C2YOVVWx.js";
|
|
13
|
+
import { t as yn } from "./copy-BF0_pQjH.js";
|
|
14
|
+
import { t as bn } from "./loader-circle-BVBgkRGz.js";
|
|
15
|
+
import { t as xn } from "./message-circle-D8YLsarv.js";
|
|
16
|
+
import { t as Sn } from "./trash-wmi4UKvv.js";
|
|
17
|
+
import { t as Cn } from "./triangle-alert-DJ0r2wmQ.js";
|
|
18
|
+
import { t as wn } from "./upload-XMde-TXf.js";
|
|
19
|
+
import { t as Tn } from "./LoadingTrack-C1Epulqq.js";
|
|
20
|
+
import { t as En } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
21
|
+
import { t as Dn } from "./useEditorRoot-CkB_5d0h.js";
|
|
22
22
|
import "./useCloudI18n-DpEsiLeR.js";
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
23
|
+
import { t as On } from "./useMergeTag-Cyad1yBE.js";
|
|
24
|
+
import { t as kn } from "./useLogicTag-BaH8gey0.js";
|
|
25
|
+
import { t as An } from "./useAliveFlag-BkKyhkwZ.js";
|
|
26
26
|
//#region src/utils/activeEditorTracker.ts
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
let e = ++
|
|
30
|
-
return
|
|
27
|
+
var jn = /* @__PURE__ */ new Set(), Mn = 0, Nn = 0;
|
|
28
|
+
function Pn() {
|
|
29
|
+
let e = ++Nn;
|
|
30
|
+
return jn.add(e), Mn === 0 && (Mn = e), {
|
|
31
31
|
id: e,
|
|
32
|
-
isActive: () =>
|
|
32
|
+
isActive: () => jn.size <= 1 || Mn === e,
|
|
33
33
|
claim: () => {
|
|
34
|
-
|
|
34
|
+
Mn = e;
|
|
35
35
|
},
|
|
36
36
|
dispose: () => {
|
|
37
|
-
if (
|
|
38
|
-
let e = Array.from(
|
|
39
|
-
|
|
37
|
+
if (jn.delete(e), Mn === e) {
|
|
38
|
+
let e = Array.from(jn);
|
|
39
|
+
Mn = e[e.length - 1] ?? 0;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/composables/usePreviewResolution.ts
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var Fn = 500;
|
|
47
|
+
function In(e) {
|
|
48
48
|
let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
|
|
49
49
|
function c() {
|
|
50
50
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -55,13 +55,13 @@ function Nn(e) {
|
|
|
55
55
|
let o = ++a;
|
|
56
56
|
r.value = !0;
|
|
57
57
|
let s = {
|
|
58
|
-
content:
|
|
58
|
+
content: ie(e.getContent()),
|
|
59
59
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
60
60
|
};
|
|
61
61
|
try {
|
|
62
62
|
let e = await t(s);
|
|
63
63
|
if (o !== a) return;
|
|
64
|
-
if (!
|
|
64
|
+
if (!be(e)) {
|
|
65
65
|
i.value = !0;
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
@@ -81,7 +81,7 @@ function Nn(e) {
|
|
|
81
81
|
}
|
|
82
82
|
o = setTimeout(() => {
|
|
83
83
|
o = null, l();
|
|
84
|
-
},
|
|
84
|
+
}, Fn);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
return f(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
|
|
@@ -103,7 +103,7 @@ function Nn(e) {
|
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
105
|
//#region src/composables/useImageUrlResolver.ts
|
|
106
|
-
function
|
|
106
|
+
function Ln(e) {
|
|
107
107
|
let t = g(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
|
|
108
108
|
function r(e) {
|
|
109
109
|
return t.get(e);
|
|
@@ -136,8 +136,8 @@ function Pn(e) {
|
|
|
136
136
|
lookup: a
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let t = p(
|
|
139
|
+
function Rn(e) {
|
|
140
|
+
let t = p(sn, null), n = N(e);
|
|
141
141
|
if (!t) return n;
|
|
142
142
|
let r;
|
|
143
143
|
function i() {
|
|
@@ -166,7 +166,7 @@ function Fn(e) {
|
|
|
166
166
|
}
|
|
167
167
|
//#endregion
|
|
168
168
|
//#region src/composables/useMergeTagPicker.ts
|
|
169
|
-
function
|
|
169
|
+
function zn() {
|
|
170
170
|
let e = _(!1), t = _([]), n = _(null), r = null;
|
|
171
171
|
function i(i, a) {
|
|
172
172
|
if (r) {
|
|
@@ -197,7 +197,7 @@ function In() {
|
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region src/composables/useLogicTagPicker.ts
|
|
200
|
-
function
|
|
200
|
+
function Bn() {
|
|
201
201
|
let e = _(!1), t = _([]), n = _([]), r = null;
|
|
202
202
|
function i(i, a) {
|
|
203
203
|
if (r) {
|
|
@@ -228,17 +228,17 @@ function Ln() {
|
|
|
228
228
|
}
|
|
229
229
|
//#endregion
|
|
230
230
|
//#region src/composables/useTemplateLint.ts
|
|
231
|
-
function
|
|
231
|
+
function Vn(e) {
|
|
232
232
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
let n = _([]), r = _(!1), i = _(!1), a = e(null), o =
|
|
234
|
+
function Hn(t) {
|
|
235
|
+
let n = _([]), r = _(!1), i = _(!1), a = e(null), o = Vn(t.options), s = null, c = !1;
|
|
236
236
|
o || l();
|
|
237
237
|
async function l() {
|
|
238
238
|
try {
|
|
239
239
|
let e = await import("@templatical/quality");
|
|
240
240
|
if (c) return;
|
|
241
|
-
a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s =
|
|
241
|
+
a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = dt(t.content, u, {
|
|
242
242
|
debounce: t.debounce ?? 500,
|
|
243
243
|
deep: !0
|
|
244
244
|
});
|
|
@@ -273,7 +273,7 @@ function zn(t) {
|
|
|
273
273
|
}
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region src/composables/useKeyboardReorder.ts
|
|
276
|
-
function
|
|
276
|
+
function Un(e, t, n = []) {
|
|
277
277
|
let r = _(null), i = _(""), a = null;
|
|
278
278
|
function o(t) {
|
|
279
279
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -300,7 +300,7 @@ function Bn(e, t, n = []) {
|
|
|
300
300
|
let i = o(r);
|
|
301
301
|
if (!i) return "";
|
|
302
302
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
303
|
-
return a ?
|
|
303
|
+
return a ? Ze(a, t.t, n) : "";
|
|
304
304
|
}
|
|
305
305
|
function c(t, n) {
|
|
306
306
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -369,13 +369,13 @@ function Bn(e, t, n = []) {
|
|
|
369
369
|
}
|
|
370
370
|
//#endregion
|
|
371
371
|
//#region src/composables/useUiTheme.ts
|
|
372
|
-
function
|
|
373
|
-
let t =
|
|
372
|
+
function Wn(e) {
|
|
373
|
+
let t = pt("(prefers-color-scheme: dark)");
|
|
374
374
|
return { resolvedTheme: N(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
375
375
|
}
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region src/composables/useThemeStyles.ts
|
|
378
|
-
var
|
|
378
|
+
var Gn = {
|
|
379
379
|
bg: "--tpl-bg",
|
|
380
380
|
bgElevated: "--tpl-bg-elevated",
|
|
381
381
|
bgHover: "--tpl-bg-hover",
|
|
@@ -399,10 +399,10 @@ var Hn = {
|
|
|
399
399
|
dangerLight: "--tpl-danger-light",
|
|
400
400
|
canvasBg: "--tpl-canvas-bg"
|
|
401
401
|
};
|
|
402
|
-
function
|
|
402
|
+
function Kn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
403
403
|
return { themeStyles: N(() => {
|
|
404
404
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
405
|
-
if (a) for (let [e, t] of Object.entries(
|
|
405
|
+
if (a) for (let [e, t] of Object.entries(Gn)) {
|
|
406
406
|
let n = a[e];
|
|
407
407
|
n && (r[t] = n);
|
|
408
408
|
}
|
|
@@ -411,7 +411,7 @@ function Un({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
411
411
|
}
|
|
412
412
|
//#endregion
|
|
413
413
|
//#region src/composables/useBlockRegistry.ts
|
|
414
|
-
function
|
|
414
|
+
function qn() {
|
|
415
415
|
let t = e(/* @__PURE__ */ new Map());
|
|
416
416
|
function n(e, n) {
|
|
417
417
|
t.value.set(e, n), T(t);
|
|
@@ -419,7 +419,7 @@ function Wn() {
|
|
|
419
419
|
function r(e, n) {
|
|
420
420
|
let r = `custom:${e.type}`, i = {
|
|
421
421
|
component: n,
|
|
422
|
-
createBlock: () =>
|
|
422
|
+
createBlock: () => He(e),
|
|
423
423
|
definition: e
|
|
424
424
|
};
|
|
425
425
|
t.value.set(r, i), T(t);
|
|
@@ -451,7 +451,7 @@ function Wn() {
|
|
|
451
451
|
strictFilters: !1
|
|
452
452
|
}).parseAndRender(t.template, e.fieldValues);
|
|
453
453
|
} catch (t) {
|
|
454
|
-
return
|
|
454
|
+
return dn.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
function l(e) {
|
|
@@ -469,9 +469,9 @@ function Wn() {
|
|
|
469
469
|
}
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region src/composables/useCustomBlockStylesheets.ts
|
|
472
|
-
function
|
|
472
|
+
function Jn(e, t) {
|
|
473
473
|
return N(() => {
|
|
474
|
-
let n =
|
|
474
|
+
let n = Yn(e.value.blocks);
|
|
475
475
|
if (n.size === 0) return [];
|
|
476
476
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
477
477
|
for (let e of n) {
|
|
@@ -483,49 +483,49 @@ function Gn(e, t) {
|
|
|
483
483
|
return i;
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Yn(e) {
|
|
487
487
|
let t = /* @__PURE__ */ new Set();
|
|
488
|
-
return
|
|
488
|
+
return Xn(e, t), t;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Xn(e, t) {
|
|
491
491
|
for (let n of e) {
|
|
492
|
-
if (
|
|
492
|
+
if (ye(n)) {
|
|
493
493
|
t.add(n.customType);
|
|
494
494
|
continue;
|
|
495
495
|
}
|
|
496
496
|
if (n.type === "section") {
|
|
497
497
|
let e = n.children;
|
|
498
498
|
if (!e) continue;
|
|
499
|
-
for (let n of e)
|
|
500
|
-
} else
|
|
499
|
+
for (let n of e) Xn(n, t);
|
|
500
|
+
} else Le(n) && Xn(n.children, t);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
//#endregion
|
|
504
504
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
505
|
-
var
|
|
505
|
+
var Zn = [
|
|
506
506
|
{
|
|
507
507
|
type: "section",
|
|
508
|
-
createBlock:
|
|
508
|
+
createBlock: _e
|
|
509
509
|
},
|
|
510
510
|
{
|
|
511
511
|
type: "title",
|
|
512
|
-
createBlock:
|
|
512
|
+
createBlock: ae
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
515
|
type: "paragraph",
|
|
516
|
-
createBlock:
|
|
516
|
+
createBlock: Ue
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
type: "image",
|
|
520
|
-
createBlock:
|
|
520
|
+
createBlock: ge
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
523
|
type: "button",
|
|
524
|
-
createBlock:
|
|
524
|
+
createBlock: ke
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
527
|
type: "divider",
|
|
528
|
-
createBlock:
|
|
528
|
+
createBlock: Ee
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
531
|
type: "video",
|
|
@@ -533,31 +533,31 @@ var Jn = [
|
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
type: "social",
|
|
536
|
-
createBlock:
|
|
536
|
+
createBlock: ce
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
539
|
type: "menu",
|
|
540
|
-
createBlock:
|
|
540
|
+
createBlock: se
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
543
|
type: "table",
|
|
544
|
-
createBlock:
|
|
544
|
+
createBlock: Ne
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
type: "spacer",
|
|
548
|
-
createBlock:
|
|
548
|
+
createBlock: me
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
551
|
type: "html",
|
|
552
|
-
createBlock:
|
|
552
|
+
createBlock: We
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
type: "countdown",
|
|
556
|
-
createBlock:
|
|
556
|
+
createBlock: we
|
|
557
557
|
}
|
|
558
558
|
];
|
|
559
|
-
function
|
|
560
|
-
for (let n of
|
|
559
|
+
function Qn(e, t) {
|
|
560
|
+
for (let n of Zn) {
|
|
561
561
|
let r = t[n.type];
|
|
562
562
|
r && e.registerBuiltIn(n.type, {
|
|
563
563
|
component: r,
|
|
@@ -567,33 +567,33 @@ function Yn(e, t) {
|
|
|
567
567
|
}
|
|
568
568
|
//#endregion
|
|
569
569
|
//#region src/utils/resolveHtmlBlockPreview.ts
|
|
570
|
-
function
|
|
570
|
+
function $n(e) {
|
|
571
571
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
572
572
|
}
|
|
573
573
|
//#endregion
|
|
574
574
|
//#region src/utils/collectOffPaletteDefaults.ts
|
|
575
|
-
function
|
|
575
|
+
function er(e) {
|
|
576
576
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
let r = new Set(e.map((e) =>
|
|
580
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
578
|
+
function tr(e, t, n) {
|
|
579
|
+
let r = new Set(e.map((e) => pn(e))), i = [], a = (e, t) => {
|
|
580
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(pn(o)) && i.push(`${t}.${n}: ${o}`) : er(o) && a(o, `${t}.${n}`);
|
|
581
581
|
}, o = t;
|
|
582
582
|
for (let [e, t] of Object.entries(Re)) {
|
|
583
583
|
let n = o?.[e];
|
|
584
584
|
a({
|
|
585
585
|
...t,
|
|
586
|
-
...
|
|
586
|
+
...er(n) ? n : {}
|
|
587
587
|
}, e);
|
|
588
588
|
}
|
|
589
589
|
return a({
|
|
590
|
-
...
|
|
590
|
+
...Ae,
|
|
591
591
|
...n ?? {}
|
|
592
592
|
}, "template"), i;
|
|
593
593
|
}
|
|
594
594
|
//#endregion
|
|
595
595
|
//#region src/utils/localizedBlockDefaults.ts
|
|
596
|
-
function
|
|
596
|
+
function nr(e) {
|
|
597
597
|
return {
|
|
598
598
|
title: { content: `<p>${e.blockDefaults.title}</p>` },
|
|
599
599
|
paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
|
|
@@ -602,63 +602,63 @@ function $n(e) {
|
|
|
602
602
|
}
|
|
603
603
|
//#endregion
|
|
604
604
|
//#region src/i18n/index.ts
|
|
605
|
-
var
|
|
606
|
-
"./locales/ca.ts": () => import("./ca
|
|
607
|
-
"./locales/de.ts": () => import("./de-
|
|
608
|
-
"./locales/en.ts": () => import("./en-
|
|
609
|
-
"./locales/es.ts": () => import("./es-
|
|
610
|
-
"./locales/fr.ts": () => import("./fr-
|
|
611
|
-
"./locales/ja.ts": () => import("./ja-
|
|
612
|
-
"./locales/nl.ts": () => import("./nl-
|
|
613
|
-
"./locales/pt-BR.ts": () => import("./pt-BR-
|
|
614
|
-
}),
|
|
605
|
+
var rr = /* #__PURE__ */ Object.assign({
|
|
606
|
+
"./locales/ca.ts": () => import("./ca--zGWn9AU.js"),
|
|
607
|
+
"./locales/de.ts": () => import("./de-BRNLKcDl.js"),
|
|
608
|
+
"./locales/en.ts": () => import("./en-JJjqHMjy.js"),
|
|
609
|
+
"./locales/es.ts": () => import("./es-BIh8BxV9.js"),
|
|
610
|
+
"./locales/fr.ts": () => import("./fr-C5VUZogP.js"),
|
|
611
|
+
"./locales/ja.ts": () => import("./ja-x5JYxaCW.js"),
|
|
612
|
+
"./locales/nl.ts": () => import("./nl-UXxFyXV6.js"),
|
|
613
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-DHm3SP6W.js")
|
|
614
|
+
}), ir = /* #__PURE__ */ Object.assign({
|
|
615
615
|
"./locales/cloud/de.ts": () => import("./de-mMY5yQJu.js"),
|
|
616
616
|
"./locales/cloud/en.ts": () => import("./en-ChVeGQBY.js"),
|
|
617
617
|
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-CoCwRUi0.js")
|
|
618
618
|
});
|
|
619
|
-
function
|
|
619
|
+
function ar(e) {
|
|
620
620
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
621
621
|
}
|
|
622
|
-
var
|
|
623
|
-
function
|
|
622
|
+
var or = ar(rr), sr = ar(ir);
|
|
623
|
+
function cr(e) {
|
|
624
624
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
let n =
|
|
628
|
-
return t.find((e) =>
|
|
626
|
+
function lr(e, t) {
|
|
627
|
+
let n = cr(e);
|
|
628
|
+
return t.find((e) => cr(e) === n);
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
return
|
|
630
|
+
function ur(e) {
|
|
631
|
+
return cr(e).split("-")[0];
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
633
|
+
function dr(e, t) {
|
|
634
|
+
return lr(e, t) ?? lr(ur(e), t);
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
636
|
+
function fr(e, t) {
|
|
637
|
+
return dr(e, t) ?? "en";
|
|
638
638
|
}
|
|
639
|
-
async function
|
|
640
|
-
let t =
|
|
639
|
+
async function pr(e) {
|
|
640
|
+
let t = rr[`./locales/${fr(e, or)}.ts`];
|
|
641
641
|
return (await t()).default;
|
|
642
642
|
}
|
|
643
|
-
async function
|
|
644
|
-
let t =
|
|
643
|
+
async function mr(e) {
|
|
644
|
+
let t = ir[`./locales/cloud/${fr(e, sr)}.ts`];
|
|
645
645
|
return (await t()).default;
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
return
|
|
647
|
+
function hr(e) {
|
|
648
|
+
return dr(e, or) !== void 0;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
650
|
+
function gr(e) {
|
|
651
|
+
return dr(e, sr) !== void 0;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return [...
|
|
653
|
+
function _r() {
|
|
654
|
+
return [...or];
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
return [...
|
|
656
|
+
function vr() {
|
|
657
|
+
return [...sr];
|
|
658
658
|
}
|
|
659
659
|
//#endregion
|
|
660
660
|
//#region src/i18n/contentDefaults.ts
|
|
661
|
-
var
|
|
661
|
+
var yr = {
|
|
662
662
|
en: {
|
|
663
663
|
video: "Video",
|
|
664
664
|
days: "Days",
|
|
@@ -724,17 +724,17 @@ var gr = {
|
|
|
724
724
|
expired: "このオファーは終了しました"
|
|
725
725
|
}
|
|
726
726
|
};
|
|
727
|
-
Object.keys(
|
|
728
|
-
var
|
|
729
|
-
function
|
|
730
|
-
if (!e) return
|
|
731
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n =
|
|
732
|
-
if (n) return
|
|
733
|
-
let r =
|
|
734
|
-
return r ?
|
|
735
|
-
}
|
|
736
|
-
function
|
|
737
|
-
let t =
|
|
727
|
+
Object.keys(yr);
|
|
728
|
+
var br = new Map(Object.keys(yr).map((e) => [e.toLowerCase(), e]));
|
|
729
|
+
function xr(e) {
|
|
730
|
+
if (!e) return yr.en;
|
|
731
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = br.get(t);
|
|
732
|
+
if (n) return yr[n];
|
|
733
|
+
let r = br.get(ur(t));
|
|
734
|
+
return r ? yr[r] : yr.en;
|
|
735
|
+
}
|
|
736
|
+
function Sr(e) {
|
|
737
|
+
let t = xr(e);
|
|
738
738
|
return {
|
|
739
739
|
video: { alt: t.video },
|
|
740
740
|
countdown: {
|
|
@@ -748,9 +748,9 @@ function yr(e) {
|
|
|
748
748
|
}
|
|
749
749
|
//#endregion
|
|
750
750
|
//#region src/utils/collectColorFieldIssues.ts
|
|
751
|
-
function
|
|
751
|
+
function Cr(e, t) {
|
|
752
752
|
let n = [], r = (r, i) => {
|
|
753
|
-
let a =
|
|
753
|
+
let a = at(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
754
754
|
if (a.invalidPresets.length > 0 && n.push({
|
|
755
755
|
id: s("invalid-presets"),
|
|
756
756
|
message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
|
|
@@ -761,8 +761,8 @@ function br(e, t) {
|
|
|
761
761
|
id: s("allow-custom-ignored"),
|
|
762
762
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
763
763
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
764
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
765
|
-
e !== "" && !t.has(
|
|
764
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => pn(e)));
|
|
765
|
+
e !== "" && !t.has(pn(e)) && n.push({
|
|
766
766
|
id: s("off-palette-default"),
|
|
767
767
|
message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
|
|
768
768
|
});
|
|
@@ -774,7 +774,7 @@ function br(e, t) {
|
|
|
774
774
|
}
|
|
775
775
|
//#endregion
|
|
776
776
|
//#region src/utils/keyboardShortcuts.ts
|
|
777
|
-
function
|
|
777
|
+
function wr(e) {
|
|
778
778
|
for (let t of e.composedPath()) {
|
|
779
779
|
if (!(t instanceof HTMLElement)) continue;
|
|
780
780
|
if (t.isContentEditable) return !0;
|
|
@@ -783,18 +783,18 @@ function xr(e) {
|
|
|
783
783
|
}
|
|
784
784
|
return !1;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function Tr(e, t) {
|
|
787
787
|
let n = e.metaKey || e.ctrlKey;
|
|
788
788
|
if (n && e.key.toLowerCase() === "s") {
|
|
789
789
|
e.preventDefault(), t.onSave?.();
|
|
790
790
|
return;
|
|
791
791
|
}
|
|
792
792
|
if (n && e.key.toLowerCase() === "z") {
|
|
793
|
-
if (
|
|
793
|
+
if (wr(e)) return;
|
|
794
794
|
e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
|
|
795
795
|
return;
|
|
796
796
|
}
|
|
797
|
-
if (t.isPicking?.() && !
|
|
797
|
+
if (t.isPicking?.() && !wr(e)) {
|
|
798
798
|
if (e.key === "Escape") {
|
|
799
799
|
e.preventDefault(), t.onCancelPick?.();
|
|
800
800
|
return;
|
|
@@ -812,11 +812,57 @@ function Sr(e, t) {
|
|
|
812
812
|
t.selectBlock(null);
|
|
813
813
|
return;
|
|
814
814
|
}
|
|
815
|
-
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
815
|
+
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !wr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
816
|
+
}
|
|
817
|
+
//#endregion
|
|
818
|
+
//#region src/utils/blockComponentResolver.ts
|
|
819
|
+
function Er(e) {
|
|
820
|
+
let t = { fontFamily: e.fontFamily };
|
|
821
|
+
return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
|
|
822
|
+
}
|
|
823
|
+
function Dr(e, t, n) {
|
|
824
|
+
if (t) {
|
|
825
|
+
let n = t.getComponent(e);
|
|
826
|
+
if (n) return n;
|
|
827
|
+
}
|
|
828
|
+
return n[e.type] ?? null;
|
|
829
|
+
}
|
|
830
|
+
function Or(e) {
|
|
831
|
+
if (e.type === "wrapper") return {};
|
|
832
|
+
let { padding: t, backgroundColor: n } = e.styles, r = {
|
|
833
|
+
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
834
|
+
backgroundColor: n || "transparent"
|
|
835
|
+
};
|
|
836
|
+
if ((e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ie.paragraphGap : Ie.paragraphGap}px`), e.type === "section") {
|
|
837
|
+
let t = je(e.borderRadius);
|
|
838
|
+
t !== null && (r.borderRadius = t), Object.assign(r, kr(e.border));
|
|
839
|
+
}
|
|
840
|
+
return r;
|
|
841
|
+
}
|
|
842
|
+
function kr(e) {
|
|
843
|
+
let t = {};
|
|
844
|
+
for (let [n, r] of Object.entries(ze(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
845
|
+
return t;
|
|
846
|
+
}
|
|
847
|
+
function Ar(e) {
|
|
848
|
+
if (e.type !== "section" || !e.wrapper) return null;
|
|
849
|
+
let t = e.wrapper, n = {};
|
|
850
|
+
t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`);
|
|
851
|
+
let r = je(t.borderRadius);
|
|
852
|
+
return r !== null && (n.borderRadius = r), n;
|
|
853
|
+
}
|
|
854
|
+
function jr(e) {
|
|
855
|
+
if (e.type !== "wrapper") return null;
|
|
856
|
+
let t = {};
|
|
857
|
+
if (e.styles.backgroundColor && (t.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
|
|
858
|
+
let n = e.styles.padding;
|
|
859
|
+
t.padding = `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`;
|
|
860
|
+
}
|
|
861
|
+
return e.borderRadius && e.borderRadius > 0 && (t.borderRadius = `${e.borderRadius}px`), t;
|
|
816
862
|
}
|
|
817
863
|
//#endregion
|
|
818
864
|
//#region src/utils/mergeTagLabelSegments.ts
|
|
819
|
-
function
|
|
865
|
+
function Mr(e, t, n, r = !1) {
|
|
820
866
|
if (!e) return [];
|
|
821
867
|
let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
|
|
822
868
|
for (; (s = i.exec(e)) !== null;) {
|
|
@@ -825,18 +871,18 @@ function Cr(e, t, n, r = !1) {
|
|
|
825
871
|
value: e.slice(o, s.index)
|
|
826
872
|
});
|
|
827
873
|
let i = s[0];
|
|
828
|
-
if (
|
|
829
|
-
let e = r ?
|
|
874
|
+
if (ve(i, n)) {
|
|
875
|
+
let e = r ? fe(i, t) : void 0;
|
|
830
876
|
a.push(e === void 0 ? {
|
|
831
877
|
type: "tag",
|
|
832
|
-
value:
|
|
878
|
+
value: de(i, t)
|
|
833
879
|
} : {
|
|
834
880
|
type: "text",
|
|
835
881
|
value: e
|
|
836
882
|
});
|
|
837
|
-
} else
|
|
883
|
+
} else ue(i, n) ? a.push({
|
|
838
884
|
type: "tag",
|
|
839
|
-
value:
|
|
885
|
+
value: le(i, n)
|
|
840
886
|
}) : a.push({
|
|
841
887
|
type: "text",
|
|
842
888
|
value: i
|
|
@@ -850,20 +896,20 @@ function Cr(e, t, n, r = !1) {
|
|
|
850
896
|
}
|
|
851
897
|
//#endregion
|
|
852
898
|
//#region src/components/MergeTagPreviewText.vue
|
|
853
|
-
var
|
|
899
|
+
var Nr = F({
|
|
854
900
|
name: "MergeTagPreviewText",
|
|
855
901
|
props: { text: {
|
|
856
902
|
type: String,
|
|
857
903
|
required: !0
|
|
858
904
|
} },
|
|
859
905
|
setup(e) {
|
|
860
|
-
let t = p(
|
|
906
|
+
let t = p(At, xt), n = p(jt, De.liquid), r = p(Mt, null), i = N(() => Mr(e.text, t.value, n, r?.value ?? !1));
|
|
861
907
|
return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
|
|
862
908
|
key: t,
|
|
863
909
|
class: "tpl-merge-tag-label"
|
|
864
910
|
}, e.value) : e.value);
|
|
865
911
|
}
|
|
866
|
-
}),
|
|
912
|
+
}), Pr = ["href"], Fr = /* @__PURE__ */ F({
|
|
867
913
|
__name: "ButtonBlock",
|
|
868
914
|
props: {
|
|
869
915
|
block: {},
|
|
@@ -879,26 +925,26 @@ var wr = F({
|
|
|
879
925
|
fontSize: `${r.block.fontSize}px`,
|
|
880
926
|
fontWeight: "bold",
|
|
881
927
|
textDecoration: "none",
|
|
882
|
-
borderRadius: `${r.block.borderRadius}px
|
|
928
|
+
borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : je(r.block.borderRadius) ?? "0px",
|
|
883
929
|
textAlign: "center"
|
|
884
930
|
};
|
|
885
|
-
return r.block.fontFamily && (e.fontFamily = r.block.fontFamily), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
|
|
931
|
+
return Object.assign(e, kr(r.block.border)), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
|
|
886
932
|
}), a = N(() => ({ textAlign: r.block.align ?? "center" }));
|
|
887
933
|
return (r, o) => (t(), S("div", { style: n(a.value) }, [x("a", {
|
|
888
934
|
href: e.block.url || "#",
|
|
889
935
|
style: n(i.value),
|
|
890
936
|
class: "tpl:cursor-default",
|
|
891
937
|
onClick: o[0] ||= I(() => {}, ["prevent"])
|
|
892
|
-
}, [C(
|
|
938
|
+
}, [C(Nr, { text: e.block.text }, null, 8, ["text"])], 12, Pr)], 4));
|
|
893
939
|
}
|
|
894
|
-
}),
|
|
940
|
+
}), Ir = vn({
|
|
895
941
|
name: "bookmark",
|
|
896
942
|
size: 24,
|
|
897
943
|
node: [["path", {
|
|
898
944
|
d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
|
|
899
945
|
key: "oz39mx"
|
|
900
946
|
}]]
|
|
901
|
-
}),
|
|
947
|
+
}), Lr = vn({
|
|
902
948
|
name: "box",
|
|
903
949
|
size: 24,
|
|
904
950
|
node: [
|
|
@@ -915,7 +961,7 @@ var wr = F({
|
|
|
915
961
|
key: "d0xqtd"
|
|
916
962
|
}]
|
|
917
963
|
]
|
|
918
|
-
}),
|
|
964
|
+
}), Rr = vn({
|
|
919
965
|
name: "eye-off",
|
|
920
966
|
size: 24,
|
|
921
967
|
node: [
|
|
@@ -936,7 +982,7 @@ var wr = F({
|
|
|
936
982
|
key: "1ooewy"
|
|
937
983
|
}]
|
|
938
984
|
]
|
|
939
|
-
}),
|
|
985
|
+
}), zr = vn({
|
|
940
986
|
name: "funnel",
|
|
941
987
|
size: 24,
|
|
942
988
|
node: [["path", {
|
|
@@ -944,7 +990,7 @@ var wr = F({
|
|
|
944
990
|
key: "sc7q7i"
|
|
945
991
|
}]],
|
|
946
992
|
aliases: ["filter"]
|
|
947
|
-
}),
|
|
993
|
+
}), Br = vn({
|
|
948
994
|
name: "grip-vertical",
|
|
949
995
|
size: 24,
|
|
950
996
|
node: [
|
|
@@ -985,14 +1031,14 @@ var wr = F({
|
|
|
985
1031
|
key: "f4zoj3"
|
|
986
1032
|
}]
|
|
987
1033
|
]
|
|
988
|
-
}),
|
|
1034
|
+
}), Vr = vn({
|
|
989
1035
|
name: "puzzle",
|
|
990
1036
|
size: 24,
|
|
991
1037
|
node: [["path", {
|
|
992
1038
|
d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
|
|
993
1039
|
key: "w46dr5"
|
|
994
1040
|
}]]
|
|
995
|
-
}),
|
|
1041
|
+
}), Hr = vn({
|
|
996
1042
|
name: "video",
|
|
997
1043
|
size: 24,
|
|
998
1044
|
node: [["path", {
|
|
@@ -1006,11 +1052,11 @@ var wr = F({
|
|
|
1006
1052
|
rx: "2",
|
|
1007
1053
|
key: "158x01"
|
|
1008
1054
|
}]]
|
|
1009
|
-
}),
|
|
1055
|
+
}), Ur = ["innerHTML"], Wr = [
|
|
1010
1056
|
"src",
|
|
1011
1057
|
"width",
|
|
1012
1058
|
"height"
|
|
1013
|
-
],
|
|
1059
|
+
], Gr = /* @__PURE__ */ F({
|
|
1014
1060
|
__name: "CustomBlockIcon",
|
|
1015
1061
|
props: {
|
|
1016
1062
|
icon: {},
|
|
@@ -1026,24 +1072,24 @@ var wr = F({
|
|
|
1026
1072
|
height: `${i.value}px`
|
|
1027
1073
|
}),
|
|
1028
1074
|
innerHTML: e.icon
|
|
1029
|
-
}, null, 12,
|
|
1075
|
+
}, null, 12, Ur)) : o.value ? (t(), S("img", {
|
|
1030
1076
|
key: 1,
|
|
1031
1077
|
src: e.icon,
|
|
1032
1078
|
width: i.value,
|
|
1033
1079
|
height: i.value,
|
|
1034
1080
|
class: "tpl:inline-block",
|
|
1035
1081
|
alt: ""
|
|
1036
|
-
}, null, 8,
|
|
1082
|
+
}, null, 8, Wr)) : (t(), A(y(Lr), {
|
|
1037
1083
|
key: 2,
|
|
1038
1084
|
size: i.value,
|
|
1039
1085
|
"stroke-width": 1.5
|
|
1040
1086
|
}, null, 8, ["size"]));
|
|
1041
1087
|
}
|
|
1042
|
-
}),
|
|
1043
|
-
function
|
|
1044
|
-
let n =
|
|
1088
|
+
}), Kr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1089
|
+
function qr(e, t) {
|
|
1090
|
+
let n = Dn(), r = null, i = null, a = null;
|
|
1045
1091
|
function o() {
|
|
1046
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
1092
|
+
return e.value ? Array.from(e.value.querySelectorAll(Kr)).filter((e) => e.offsetParent !== null) : [];
|
|
1047
1093
|
}
|
|
1048
1094
|
function c(e) {
|
|
1049
1095
|
if (e.key !== "Tab") return;
|
|
@@ -1058,7 +1104,7 @@ function Rr(e, t) {
|
|
|
1058
1104
|
a = null;
|
|
1059
1105
|
let t = o();
|
|
1060
1106
|
t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
|
|
1061
|
-
}), i =
|
|
1107
|
+
}), i = ft(e, "keydown", c);
|
|
1062
1108
|
}
|
|
1063
1109
|
function u(e = {}) {
|
|
1064
1110
|
let t = e.restoreFocus !== !1;
|
|
@@ -1073,8 +1119,8 @@ function Rr(e, t) {
|
|
|
1073
1119
|
}
|
|
1074
1120
|
//#endregion
|
|
1075
1121
|
//#region src/composables/useEmoji.ts
|
|
1076
|
-
function
|
|
1077
|
-
let [t, n] =
|
|
1122
|
+
function Jr() {
|
|
1123
|
+
let [t, n] = ut(!1), r = e([]), i = !1;
|
|
1078
1124
|
s(() => {
|
|
1079
1125
|
i = !0;
|
|
1080
1126
|
}), f(t, async (e) => {
|
|
@@ -1099,7 +1145,7 @@ function zr() {
|
|
|
1099
1145
|
}
|
|
1100
1146
|
//#endregion
|
|
1101
1147
|
//#region src/composables/useFonts.ts
|
|
1102
|
-
var
|
|
1148
|
+
var Yr = [
|
|
1103
1149
|
{
|
|
1104
1150
|
value: "Arial",
|
|
1105
1151
|
label: "Arial"
|
|
@@ -1128,7 +1174,7 @@ var Br = [
|
|
|
1128
1174
|
value: "Courier New",
|
|
1129
1175
|
label: "Courier New"
|
|
1130
1176
|
}
|
|
1131
|
-
],
|
|
1177
|
+
], Xr = {
|
|
1132
1178
|
arial: "Arial, sans-serif",
|
|
1133
1179
|
helvetica: "Helvetica, sans-serif",
|
|
1134
1180
|
georgia: "Georgia, serif",
|
|
@@ -1136,23 +1182,23 @@ var Br = [
|
|
|
1136
1182
|
verdana: "Verdana, sans-serif",
|
|
1137
1183
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
1138
1184
|
"courier new": "'Courier New', monospace"
|
|
1139
|
-
},
|
|
1140
|
-
function
|
|
1141
|
-
if (e === void 0 || e === !0) return [...
|
|
1185
|
+
}, Zr = "Arial, sans-serif";
|
|
1186
|
+
function Qr(e) {
|
|
1187
|
+
if (e === void 0 || e === !0) return [...Yr];
|
|
1142
1188
|
if (e === !1) return [];
|
|
1143
1189
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
1144
1190
|
for (let i of e) {
|
|
1145
|
-
let e = i.toLowerCase(), a =
|
|
1191
|
+
let e = i.toLowerCase(), a = Yr.find((t) => t.value.toLowerCase() === e);
|
|
1146
1192
|
if (!a) {
|
|
1147
|
-
r.has(e) || (r.add(e),
|
|
1193
|
+
r.has(e) || (r.add(e), dn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Yr.map((e) => e.value).join(", ")}.`));
|
|
1148
1194
|
continue;
|
|
1149
1195
|
}
|
|
1150
1196
|
n.has(a.value) || (n.add(a.value), t.push(a));
|
|
1151
1197
|
}
|
|
1152
1198
|
return t;
|
|
1153
1199
|
}
|
|
1154
|
-
function
|
|
1155
|
-
let t = _(e?.customFonts ?? []), n = _(!1), r =
|
|
1200
|
+
function $r(e) {
|
|
1201
|
+
let t = _(e?.customFonts ?? []), n = _(!1), r = Qr(e?.builtIns), i = N(() => e?.defaultFallback ?? Zr), a = N(() => {
|
|
1156
1202
|
let e = [...r], n = t.value.map((e) => ({
|
|
1157
1203
|
value: e.name,
|
|
1158
1204
|
label: e.name,
|
|
@@ -1163,14 +1209,14 @@ function Wr(e) {
|
|
|
1163
1209
|
function o(e) {
|
|
1164
1210
|
return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1165
1211
|
}
|
|
1166
|
-
let c = e?.defaultFont ??
|
|
1167
|
-
o(c) ||
|
|
1212
|
+
let c = e?.defaultFont ?? Zr.split(",")[0].trim();
|
|
1213
|
+
o(c) || dn.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
|
|
1168
1214
|
function l() {
|
|
1169
1215
|
if (e?.defaultFont && o(e.defaultFont)) {
|
|
1170
1216
|
let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1171
1217
|
if (t) return t.value;
|
|
1172
1218
|
}
|
|
1173
|
-
return
|
|
1219
|
+
return Zr;
|
|
1174
1220
|
}
|
|
1175
1221
|
let u = N(() => l());
|
|
1176
1222
|
function d(e) {
|
|
@@ -1180,7 +1226,7 @@ function Wr(e) {
|
|
|
1180
1226
|
let e = n.fallback ?? i.value;
|
|
1181
1227
|
return `'${n.name}', ${e}`;
|
|
1182
1228
|
}
|
|
1183
|
-
return
|
|
1229
|
+
return Xr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
|
|
1184
1230
|
}
|
|
1185
1231
|
let f = [], p = !1;
|
|
1186
1232
|
async function m() {
|
|
@@ -1196,7 +1242,7 @@ function Wr(e) {
|
|
|
1196
1242
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
1197
1243
|
});
|
|
1198
1244
|
} catch (t) {
|
|
1199
|
-
|
|
1245
|
+
dn.warn(`Failed to load custom font "${e.name}":`, t);
|
|
1200
1246
|
}
|
|
1201
1247
|
});
|
|
1202
1248
|
await Promise.allSettled(e), !p && (n.value = !0);
|
|
@@ -1221,12 +1267,12 @@ function Wr(e) {
|
|
|
1221
1267
|
}
|
|
1222
1268
|
//#endregion
|
|
1223
1269
|
//#region src/utils/mergeTagNodeSpec.ts
|
|
1224
|
-
function
|
|
1225
|
-
return
|
|
1270
|
+
function ei(e, t, n) {
|
|
1271
|
+
return ue(e, n) ? {
|
|
1226
1272
|
type: "logicMergeTagNode",
|
|
1227
1273
|
attrs: {
|
|
1228
1274
|
value: e,
|
|
1229
|
-
keyword:
|
|
1275
|
+
keyword: le(e, n)
|
|
1230
1276
|
}
|
|
1231
1277
|
} : {
|
|
1232
1278
|
type: "mergeTagNode",
|
|
@@ -1238,15 +1284,15 @@ function Gr(e, t, n) {
|
|
|
1238
1284
|
}
|
|
1239
1285
|
//#endregion
|
|
1240
1286
|
//#region src/utils/insertLogicTag.ts
|
|
1241
|
-
function
|
|
1287
|
+
function ti(e) {
|
|
1242
1288
|
return "before" in e && "after" in e;
|
|
1243
1289
|
}
|
|
1244
|
-
function
|
|
1245
|
-
if (!
|
|
1246
|
-
e.chain().focus().insertContent(
|
|
1290
|
+
function ni(e, t, n) {
|
|
1291
|
+
if (!ti(t)) {
|
|
1292
|
+
e.chain().focus().insertContent(ei(t.value, t.label, n)).run();
|
|
1247
1293
|
return;
|
|
1248
1294
|
}
|
|
1249
|
-
let r =
|
|
1295
|
+
let r = ei(t.before, t.label, n), i = ei(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
1250
1296
|
if (a !== o) {
|
|
1251
1297
|
e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
1252
1298
|
return;
|
|
@@ -1255,20 +1301,20 @@ function qr(e, t, n) {
|
|
|
1255
1301
|
}
|
|
1256
1302
|
//#endregion
|
|
1257
1303
|
//#region src/utils/linkColorExtension.ts
|
|
1258
|
-
function
|
|
1304
|
+
function ri(e) {
|
|
1259
1305
|
if (!e) return null;
|
|
1260
1306
|
let t = e.trim();
|
|
1261
1307
|
return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
|
|
1262
1308
|
}
|
|
1263
|
-
function
|
|
1309
|
+
function ii(e) {
|
|
1264
1310
|
return e.extend({ addAttributes() {
|
|
1265
1311
|
return {
|
|
1266
1312
|
...this.parent?.(),
|
|
1267
1313
|
color: {
|
|
1268
1314
|
default: null,
|
|
1269
|
-
parseHTML: (e) =>
|
|
1315
|
+
parseHTML: (e) => ri(fn(e.style.color)),
|
|
1270
1316
|
renderHTML: (e) => {
|
|
1271
|
-
let t =
|
|
1317
|
+
let t = ri(e.color);
|
|
1272
1318
|
return t ? { style: `color: ${t}` } : {};
|
|
1273
1319
|
}
|
|
1274
1320
|
}
|
|
@@ -1277,9 +1323,9 @@ function Yr(e) {
|
|
|
1277
1323
|
}
|
|
1278
1324
|
//#endregion
|
|
1279
1325
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
1280
|
-
function
|
|
1326
|
+
function ai(e, t = De.liquid) {
|
|
1281
1327
|
let n = _(!1), r = _(""), i = _(""), a = _(null);
|
|
1282
|
-
|
|
1328
|
+
qr(a, n);
|
|
1283
1329
|
function o() {
|
|
1284
1330
|
let t = e.value?.getAttributes("link") ?? {};
|
|
1285
1331
|
r.value = t.href || "", i.value = t.color || "", n.value = !0;
|
|
@@ -1288,7 +1334,7 @@ function Xr(e, t = Fe.liquid) {
|
|
|
1288
1334
|
if (r.value) {
|
|
1289
1335
|
let t = u(r.value);
|
|
1290
1336
|
if (t !== null) {
|
|
1291
|
-
let n =
|
|
1337
|
+
let n = ri(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
1292
1338
|
n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
|
|
1293
1339
|
}
|
|
1294
1340
|
}
|
|
@@ -1338,13 +1384,13 @@ function Xr(e, t = Fe.liquid) {
|
|
|
1338
1384
|
}
|
|
1339
1385
|
//#endregion
|
|
1340
1386
|
//#region src/composables/useRichTextEditor.ts
|
|
1341
|
-
function
|
|
1342
|
-
let n = p(
|
|
1387
|
+
function oi(t) {
|
|
1388
|
+
let n = p(Kt, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = On(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = kn(), g = p(Rt, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = Ge(l), b = e(null), x = () => Se(n?.content?.value?.settings ?? { locale: "en" });
|
|
1343
1389
|
f(x, (e) => {
|
|
1344
1390
|
let t = b.value?.view.dom;
|
|
1345
1391
|
t && t.setAttribute("dir", e);
|
|
1346
1392
|
});
|
|
1347
|
-
let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } =
|
|
1393
|
+
let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = ai(b, l), { start: j, stop: M } = ct(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), N = _(!0), P = _(null), F = !1;
|
|
1348
1394
|
async function te() {
|
|
1349
1395
|
P.value = null, N.value = !0;
|
|
1350
1396
|
try {
|
|
@@ -1375,7 +1421,7 @@ function Zr(t) {
|
|
|
1375
1421
|
b.value = s, N.value = !1, j();
|
|
1376
1422
|
} catch (e) {
|
|
1377
1423
|
if (F) return;
|
|
1378
|
-
|
|
1424
|
+
dn.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", N.value = !1;
|
|
1379
1425
|
}
|
|
1380
1426
|
}
|
|
1381
1427
|
function I() {
|
|
@@ -1393,7 +1439,7 @@ function Zr(t) {
|
|
|
1393
1439
|
let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
|
|
1394
1440
|
r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
|
|
1395
1441
|
}
|
|
1396
|
-
|
|
1442
|
+
ft(document, "mousedown", re), i(() => {
|
|
1397
1443
|
F = !0, ne(), M(), b.value?.destroy();
|
|
1398
1444
|
});
|
|
1399
1445
|
async function ie() {
|
|
@@ -1405,7 +1451,7 @@ function Zr(t) {
|
|
|
1405
1451
|
}
|
|
1406
1452
|
async function ae() {
|
|
1407
1453
|
let e = await h();
|
|
1408
|
-
F || (e && b.value ?
|
|
1454
|
+
F || (e && b.value ? ni(b.value, e, l) : b.value?.commands.focus());
|
|
1409
1455
|
}
|
|
1410
1456
|
return {
|
|
1411
1457
|
editor: b,
|
|
@@ -1434,9 +1480,9 @@ function Zr(t) {
|
|
|
1434
1480
|
}
|
|
1435
1481
|
//#endregion
|
|
1436
1482
|
//#region src/composables/useSmallScreenNotice.ts
|
|
1437
|
-
var
|
|
1438
|
-
function
|
|
1439
|
-
let t =
|
|
1483
|
+
var si = "(max-width: 767px)";
|
|
1484
|
+
function ci(e) {
|
|
1485
|
+
let t = pt(si);
|
|
1440
1486
|
return {
|
|
1441
1487
|
isSmallScreen: t,
|
|
1442
1488
|
showNotice: N(() => (ee(e) ?? !0) && t.value)
|
|
@@ -1444,20 +1490,20 @@ function $r(e) {
|
|
|
1444
1490
|
}
|
|
1445
1491
|
//#endregion
|
|
1446
1492
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1447
|
-
var
|
|
1493
|
+
var li = { class: "tpl:w-full" }, ui = {
|
|
1448
1494
|
key: 0,
|
|
1449
1495
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
1450
|
-
},
|
|
1496
|
+
}, di = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, fi = {
|
|
1451
1497
|
key: 1,
|
|
1452
1498
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
1453
|
-
},
|
|
1499
|
+
}, pi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, mi = {
|
|
1454
1500
|
key: 2,
|
|
1455
1501
|
class: "tpl:relative"
|
|
1456
|
-
},
|
|
1502
|
+
}, hi = ["innerHTML"], gi = {
|
|
1457
1503
|
key: 0,
|
|
1458
1504
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
1459
1505
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1460
|
-
},
|
|
1506
|
+
}, _i = /* @__PURE__ */ F({
|
|
1461
1507
|
__name: "CustomBlock",
|
|
1462
1508
|
props: {
|
|
1463
1509
|
block: {},
|
|
@@ -1465,7 +1511,7 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1465
1511
|
},
|
|
1466
1512
|
emits: ["fetchData"],
|
|
1467
1513
|
setup(e, { emit: n }) {
|
|
1468
|
-
let r = e, i = n, { t: a } =
|
|
1514
|
+
let r = e, i = n, { t: a } = un(), o = p(rn, null), s = _(""), c = _(!1), l = N(() => o?.getDefinition(r.block.customType)), u = N(() => !!l.value), m = N(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = st({
|
|
1469
1515
|
definition: l,
|
|
1470
1516
|
block: m,
|
|
1471
1517
|
onUpdate: (e, t) => {
|
|
@@ -1474,10 +1520,10 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1474
1520
|
dataSourceFetched: t
|
|
1475
1521
|
});
|
|
1476
1522
|
}
|
|
1477
|
-
}), T = p(
|
|
1523
|
+
}), T = p(At, xt), E = p(Mt, null), O = N(() => {
|
|
1478
1524
|
if (!E?.value) return r.block;
|
|
1479
1525
|
let e = {};
|
|
1480
|
-
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ?
|
|
1526
|
+
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Be(n, T.value) : n;
|
|
1481
1527
|
return {
|
|
1482
1528
|
...r.block,
|
|
1483
1529
|
fieldValues: e
|
|
@@ -1494,17 +1540,17 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1494
1540
|
}
|
|
1495
1541
|
}
|
|
1496
1542
|
}
|
|
1497
|
-
let j =
|
|
1543
|
+
let j = lt(k, 150);
|
|
1498
1544
|
return d(() => {
|
|
1499
1545
|
k();
|
|
1500
1546
|
}), f(() => r.block.fieldValues, () => {
|
|
1501
1547
|
j();
|
|
1502
1548
|
}, { deep: !0 }), f(() => E?.value, () => {
|
|
1503
1549
|
j();
|
|
1504
|
-
}), (e, n) => (t(), S("div",
|
|
1550
|
+
}), (e, n) => (t(), S("div", li, [u.value ? c.value ? (t(), S("div", fi, [C(y(Cn), {
|
|
1505
1551
|
size: 24,
|
|
1506
1552
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1507
|
-
}), x("span",
|
|
1553
|
+
}), x("span", pi, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", mi, [x("div", { innerHTML: s.value }, null, 8, hi), y(b) && y(v) ? (t(), S("div", gi, [y(h) ? (t(), A(Tn, {
|
|
1508
1554
|
key: 1,
|
|
1509
1555
|
class: "tpl:w-48"
|
|
1510
1556
|
})) : (t(), S("button", {
|
|
@@ -1512,16 +1558,16 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1512
1558
|
type: "button",
|
|
1513
1559
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1514
1560
|
onClick: n[0] ||= I((...e) => y(g) && y(g)(...e), ["stop"])
|
|
1515
|
-
}, [l.value?.icon ? (t(), A(
|
|
1561
|
+
}, [l.value?.icon ? (t(), A(Gr, {
|
|
1516
1562
|
key: 0,
|
|
1517
1563
|
icon: l.value.icon,
|
|
1518
1564
|
size: 16
|
|
1519
|
-
}, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div",
|
|
1565
|
+
}, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div", ui, [C(y(Vr), {
|
|
1520
1566
|
size: 24,
|
|
1521
1567
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1522
|
-
}), x("span",
|
|
1568
|
+
}), x("span", di, D(y(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1523
1569
|
}
|
|
1524
|
-
}),
|
|
1570
|
+
}), vi = { class: "tpl:w-full" }, yi = /* @__PURE__ */ F({
|
|
1525
1571
|
__name: "DividerBlock",
|
|
1526
1572
|
props: {
|
|
1527
1573
|
block: {},
|
|
@@ -1533,28 +1579,28 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1533
1579
|
width: r.block.width === "full" ? "100%" : `${r.block.width}px`,
|
|
1534
1580
|
margin: r.block.width === "full" ? "0" : "0 auto"
|
|
1535
1581
|
}));
|
|
1536
|
-
return (e, r) => (t(), S("div",
|
|
1582
|
+
return (e, r) => (t(), S("div", vi, [x("hr", {
|
|
1537
1583
|
class: "tpl:m-0 tpl:border-none",
|
|
1538
1584
|
style: n(i.value)
|
|
1539
1585
|
}, null, 4)]));
|
|
1540
1586
|
}
|
|
1541
|
-
}),
|
|
1587
|
+
}), bi = { class: "tpl:w-full" }, xi = ["srcdoc", "title"], Si = {
|
|
1542
1588
|
key: 1,
|
|
1543
1589
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
1544
|
-
},
|
|
1590
|
+
}, Ci = {
|
|
1545
1591
|
key: 0,
|
|
1546
1592
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1547
|
-
},
|
|
1593
|
+
}, wi = {
|
|
1548
1594
|
key: 1,
|
|
1549
1595
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1550
|
-
},
|
|
1596
|
+
}, Ti = /* @__PURE__ */ F({
|
|
1551
1597
|
__name: "HtmlBlock",
|
|
1552
1598
|
props: {
|
|
1553
1599
|
block: {},
|
|
1554
1600
|
viewport: {}
|
|
1555
1601
|
},
|
|
1556
1602
|
setup(e) {
|
|
1557
|
-
let r = e, { t: a } =
|
|
1603
|
+
let r = e, { t: a } = un(), o = p(Ht, !1), s = N(() => r.block.content.trim().length > 0), c = N(() => o && s.value), l = p(At, xt), u = p(Mt, null), d = N(() => u?.value ? Be(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
|
|
1558
1604
|
function v() {
|
|
1559
1605
|
let e = m.value?.contentDocument;
|
|
1560
1606
|
e && (h.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1568,7 +1614,7 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1568
1614
|
e || (g?.disconnect(), g = null);
|
|
1569
1615
|
}), i(() => {
|
|
1570
1616
|
g?.disconnect(), g = null;
|
|
1571
|
-
}), (e, r) => (t(), S("div",
|
|
1617
|
+
}), (e, r) => (t(), S("div", bi, [c.value ? (t(), S("iframe", {
|
|
1572
1618
|
key: 0,
|
|
1573
1619
|
ref_key: "iframeRef",
|
|
1574
1620
|
ref: m,
|
|
@@ -1578,22 +1624,22 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1578
1624
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1579
1625
|
style: n({ height: `${h.value}px` }),
|
|
1580
1626
|
onLoad: b
|
|
1581
|
-
}, null, 44,
|
|
1627
|
+
}, null, 44, xi)) : (t(), S("div", Si, [C(y(et), {
|
|
1582
1628
|
size: 24,
|
|
1583
1629
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1584
|
-
}), s.value ? (t(), S("span",
|
|
1630
|
+
}), s.value ? (t(), S("span", Ci, D(y(a).html.preview), 1)) : (t(), S("span", wi, D(y(a).html.empty), 1))]))]));
|
|
1585
1631
|
}
|
|
1586
|
-
}),
|
|
1632
|
+
}), Ei = ["data-drop-enabled"], Di = {
|
|
1587
1633
|
key: 0,
|
|
1588
1634
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1589
1635
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
|
|
1590
|
-
},
|
|
1636
|
+
}, Oi = ["href"], ki = ["src", "alt"], Ai = ["src", "alt"], ji = {
|
|
1591
1637
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1592
1638
|
style: { opacity: "0.7" }
|
|
1593
|
-
},
|
|
1639
|
+
}, Mi = ["href"], Ni = ["src", "alt"], Pi = ["src", "alt"], Fi = {
|
|
1594
1640
|
key: 4,
|
|
1595
1641
|
class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
1596
|
-
},
|
|
1642
|
+
}, Ii = ["aria-label"], Li = { key: 1 }, Ri = /* @__PURE__ */ F({
|
|
1597
1643
|
__name: "ImageBlock",
|
|
1598
1644
|
props: {
|
|
1599
1645
|
block: {},
|
|
@@ -1601,7 +1647,7 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1601
1647
|
},
|
|
1602
1648
|
emits: ["update"],
|
|
1603
1649
|
setup(e, { emit: r }) {
|
|
1604
|
-
let i = e, a = r, { t: o } =
|
|
1650
|
+
let i = e, a = r, { t: o } = un(), { syntax: s } = On(), c = p(Dt, null), l = p(Ut, null), u = N(() => !!c), d = An();
|
|
1605
1651
|
async function f() {
|
|
1606
1652
|
let e = await c?.({ accept: ["images"] });
|
|
1607
1653
|
if (d.alive && e) {
|
|
@@ -1609,7 +1655,7 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1609
1655
|
e.alt && (t.alt = e.alt), a("update", t);
|
|
1610
1656
|
}
|
|
1611
1657
|
}
|
|
1612
|
-
let m = _(), h = _(!1), g = N(() => (l?.value ?? !!c) && !h.value && !
|
|
1658
|
+
let m = _(), h = _(!1), g = N(() => (l?.value ?? !!c) && !h.value && !k.value);
|
|
1613
1659
|
async function v(e) {
|
|
1614
1660
|
if (c) {
|
|
1615
1661
|
h.value = !0;
|
|
@@ -1628,22 +1674,26 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1628
1674
|
}
|
|
1629
1675
|
}
|
|
1630
1676
|
}
|
|
1631
|
-
let { isOver: b } =
|
|
1677
|
+
let { isOver: b } = $e({
|
|
1632
1678
|
target: m,
|
|
1633
1679
|
enabled: g,
|
|
1634
1680
|
onFiles: v
|
|
1635
1681
|
}), T = N(() => ({ textAlign: i.block.align })), E = N(() => {
|
|
1682
|
+
let e = i.block.border, t = ["left", "right"].map((t) => Fe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1683
|
+
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1684
|
+
}), O = N(() => {
|
|
1636
1685
|
let e = i.block.align;
|
|
1637
1686
|
return {
|
|
1638
1687
|
maxWidth: "100%",
|
|
1639
|
-
width: i.block.width === "full" ?
|
|
1688
|
+
width: i.block.width === "full" ? E.value : `${i.block.width}px`,
|
|
1640
1689
|
height: i.block.height ? `${i.block.height}px` : void 0,
|
|
1641
|
-
borderRadius: i.block.borderRadius
|
|
1690
|
+
borderRadius: je(i.block.borderRadius) ?? void 0,
|
|
1691
|
+
...kr(i.block.border),
|
|
1642
1692
|
display: "block",
|
|
1643
1693
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1644
1694
|
marginRight: e === "center" ? "auto" : void 0
|
|
1645
1695
|
};
|
|
1646
|
-
}),
|
|
1696
|
+
}), k = N(() => Pe(i.block.src, s)), A = Rn(() => k.value ? void 0 : i.block.src), j = Rn(() => k.value ? i.block.placeholderUrl : void 0);
|
|
1647
1697
|
return (r, i) => (t(), S("div", {
|
|
1648
1698
|
ref_key: "dropZoneRef",
|
|
1649
1699
|
ref: m,
|
|
@@ -1651,14 +1701,14 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1651
1701
|
"data-drop-enabled": g.value,
|
|
1652
1702
|
class: "tpl:relative tpl:w-full",
|
|
1653
1703
|
style: n(T.value)
|
|
1654
|
-
}, [g.value && (y(b) || h.value) ? (t(), S("div",
|
|
1704
|
+
}, [g.value && (y(b) || h.value) ? (t(), S("div", Di, [h.value ? (t(), S(M, { key: 0 }, [C(y(bn), {
|
|
1655
1705
|
class: "tpl-spinner",
|
|
1656
1706
|
size: 20,
|
|
1657
1707
|
"stroke-width": 2
|
|
1658
|
-
}), w(" " + D(y(o).image.uploading), 1)], 64)) : (t(), S(M, { key: 1 }, [C(y(
|
|
1708
|
+
}), w(" " + D(y(o).image.uploading), 1)], 64)) : (t(), S(M, { key: 1 }, [C(y(wn), {
|
|
1659
1709
|
size: 20,
|
|
1660
1710
|
"stroke-width": 1.5
|
|
1661
|
-
}), w(" " + D(y(o).image.dropToUpload), 1)], 64))])) : P("", !0), e.block.src &&
|
|
1711
|
+
}), w(" " + D(y(o).image.dropToUpload), 1)], 64))])) : P("", !0), e.block.src && k.value && e.block.placeholderUrl ? (t(), S(M, { key: 1 }, [e.block.linkUrl ? (t(), S("a", {
|
|
1662
1712
|
key: 0,
|
|
1663
1713
|
href: e.block.linkUrl,
|
|
1664
1714
|
target: "_blank",
|
|
@@ -1667,25 +1717,25 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1667
1717
|
}, [x("img", {
|
|
1668
1718
|
class: "tpl:border-0",
|
|
1669
1719
|
loading: "lazy",
|
|
1670
|
-
src: y(
|
|
1720
|
+
src: y(j),
|
|
1671
1721
|
alt: e.block.alt || y(o).image.altTextPlaceholder,
|
|
1672
|
-
style: n(
|
|
1673
|
-
}, null, 12,
|
|
1722
|
+
style: n(O.value)
|
|
1723
|
+
}, null, 12, ki)], 8, Oi)) : (t(), S("img", {
|
|
1674
1724
|
key: 1,
|
|
1675
1725
|
class: "tpl:border-0",
|
|
1676
|
-
src: y(
|
|
1726
|
+
src: y(j),
|
|
1677
1727
|
alt: e.block.alt,
|
|
1678
|
-
style: n(
|
|
1679
|
-
}, null, 12,
|
|
1728
|
+
style: n(O.value)
|
|
1729
|
+
}, null, 12, Ai))], 64)) : e.block.src && k.value ? (t(), S("div", {
|
|
1680
1730
|
key: 2,
|
|
1681
1731
|
class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
1682
|
-
style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" },
|
|
1683
|
-
}, [C(y(
|
|
1732
|
+
style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, O.value])
|
|
1733
|
+
}, [C(y(Xe), {
|
|
1684
1734
|
size: 32,
|
|
1685
1735
|
"stroke-width": 1.5,
|
|
1686
1736
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1687
1737
|
style: { opacity: "0.5" }
|
|
1688
|
-
}), x("span",
|
|
1738
|
+
}), x("span", ji, [C(Nr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
|
|
1689
1739
|
key: 0,
|
|
1690
1740
|
href: e.block.linkUrl,
|
|
1691
1741
|
target: "_blank",
|
|
@@ -1694,36 +1744,36 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1694
1744
|
}, [x("img", {
|
|
1695
1745
|
class: "tpl:border-0",
|
|
1696
1746
|
loading: "lazy",
|
|
1697
|
-
src: y(
|
|
1747
|
+
src: y(A),
|
|
1698
1748
|
alt: e.block.alt || y(o).image.altTextPlaceholder,
|
|
1699
|
-
style: n(
|
|
1700
|
-
}, null, 12,
|
|
1749
|
+
style: n(O.value)
|
|
1750
|
+
}, null, 12, Ni)], 8, Mi)) : (t(), S("img", {
|
|
1701
1751
|
key: 1,
|
|
1702
1752
|
class: "tpl:border-0",
|
|
1703
|
-
src: y(
|
|
1753
|
+
src: y(A),
|
|
1704
1754
|
alt: e.block.alt,
|
|
1705
|
-
style: n(
|
|
1706
|
-
}, null, 12,
|
|
1755
|
+
style: n(O.value)
|
|
1756
|
+
}, null, 12, Pi))], 64)) : (t(), S("div", Fi, [u.value ? (t(), S("button", {
|
|
1707
1757
|
key: 0,
|
|
1708
1758
|
"aria-label": y(o).image.browseMedia,
|
|
1709
1759
|
class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1710
1760
|
onClick: I(f, ["stop"])
|
|
1711
|
-
}, [C(y(
|
|
1761
|
+
}, [C(y(Xe), {
|
|
1712
1762
|
size: 14,
|
|
1713
1763
|
"stroke-width": 1.5
|
|
1714
|
-
}), w(" " + D(y(o).image.browseMedia), 1)], 8,
|
|
1764
|
+
}), w(" " + D(y(o).image.browseMedia), 1)], 8, Ii)) : (t(), S("span", Li, D(y(o).image.clickToAdd), 1))]))], 12, Ei));
|
|
1715
1765
|
}
|
|
1716
|
-
}),
|
|
1766
|
+
}), zi = { class: "tpl:w-full" }, Bi = ["href"], Vi = {
|
|
1717
1767
|
key: 1,
|
|
1718
1768
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
1719
|
-
},
|
|
1769
|
+
}, Hi = /* @__PURE__ */ F({
|
|
1720
1770
|
__name: "MenuBlock",
|
|
1721
1771
|
props: {
|
|
1722
1772
|
block: {},
|
|
1723
1773
|
viewport: {}
|
|
1724
1774
|
},
|
|
1725
1775
|
setup(e) {
|
|
1726
|
-
let r = e, { t: i } =
|
|
1776
|
+
let r = e, { t: i } = un(), a = N(() => ({
|
|
1727
1777
|
display: "flex",
|
|
1728
1778
|
flexWrap: "wrap",
|
|
1729
1779
|
gap: `0 ${r.block.spacing}px`,
|
|
@@ -1735,7 +1785,7 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1735
1785
|
function s(e) {
|
|
1736
1786
|
return e || r.block.linkColor || r.block.color;
|
|
1737
1787
|
}
|
|
1738
|
-
return (r, c) => (t(), S("div",
|
|
1788
|
+
return (r, c) => (t(), S("div", zi, [o.value ? (t(), S("div", {
|
|
1739
1789
|
key: 0,
|
|
1740
1790
|
style: n(a.value)
|
|
1741
1791
|
}, [(t(!0), S(M, null, l(e.block.items, (r, i) => (t(), S(M, { key: r.id }, [x("a", {
|
|
@@ -1747,15 +1797,15 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1747
1797
|
textDecoration: r.underline ? "underline" : "none"
|
|
1748
1798
|
}),
|
|
1749
1799
|
onClick: c[0] ||= I(() => {}, ["prevent"])
|
|
1750
|
-
}, [C(
|
|
1800
|
+
}, [C(Nr, { text: r.text || "..." }, null, 8, ["text"])], 12, Bi), i < e.block.items.length - 1 ? (t(), S("span", {
|
|
1751
1801
|
key: 0,
|
|
1752
1802
|
style: n({
|
|
1753
1803
|
color: e.block.separatorColor,
|
|
1754
1804
|
padding: `0 ${e.block.spacing}px`
|
|
1755
1805
|
})
|
|
1756
|
-
}, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div",
|
|
1806
|
+
}, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div", Vi, [C(y(rt), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
|
|
1757
1807
|
}
|
|
1758
|
-
}),
|
|
1808
|
+
}), Ui = /* @__PURE__ */ new Set([
|
|
1759
1809
|
"http",
|
|
1760
1810
|
"https",
|
|
1761
1811
|
"mailto",
|
|
@@ -1765,7 +1815,7 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1765
1815
|
"sms",
|
|
1766
1816
|
"xmpp",
|
|
1767
1817
|
"cid"
|
|
1768
|
-
]),
|
|
1818
|
+
]), Wi = /* @__PURE__ */ new Set([
|
|
1769
1819
|
"SCRIPT",
|
|
1770
1820
|
"STYLE",
|
|
1771
1821
|
"IFRAME",
|
|
@@ -1775,7 +1825,7 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1775
1825
|
"META",
|
|
1776
1826
|
"BASE",
|
|
1777
1827
|
"FORM"
|
|
1778
|
-
]),
|
|
1828
|
+
]), Gi = /* @__PURE__ */ new Set([
|
|
1779
1829
|
"href",
|
|
1780
1830
|
"xlink:href",
|
|
1781
1831
|
"formaction",
|
|
@@ -1784,16 +1834,16 @@ var ei = { class: "tpl:w-full" }, ti = {
|
|
|
1784
1834
|
"background",
|
|
1785
1835
|
"poster"
|
|
1786
1836
|
]);
|
|
1787
|
-
function
|
|
1837
|
+
function Ki(e, t) {
|
|
1788
1838
|
let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
1789
1839
|
if (!n || n.startsWith("#")) return !0;
|
|
1790
1840
|
let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
|
|
1791
1841
|
if (!r) return !0;
|
|
1792
1842
|
let i = r[1].toLowerCase();
|
|
1793
|
-
return
|
|
1843
|
+
return Ui.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
|
|
1794
1844
|
}
|
|
1795
|
-
function
|
|
1796
|
-
if (
|
|
1845
|
+
function qi(e) {
|
|
1846
|
+
if (Wi.has(e.tagName)) {
|
|
1797
1847
|
e.remove();
|
|
1798
1848
|
return;
|
|
1799
1849
|
}
|
|
@@ -1805,29 +1855,29 @@ function Ri(e) {
|
|
|
1805
1855
|
e.removeAttribute(n);
|
|
1806
1856
|
continue;
|
|
1807
1857
|
}
|
|
1808
|
-
if (
|
|
1809
|
-
|
|
1858
|
+
if (Gi.has(t)) {
|
|
1859
|
+
Ki(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
|
|
1810
1860
|
continue;
|
|
1811
1861
|
}
|
|
1812
1862
|
if (t === "src") {
|
|
1813
|
-
|
|
1863
|
+
Ki(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
|
|
1814
1864
|
continue;
|
|
1815
1865
|
}
|
|
1816
1866
|
t === "srcdoc" && e.removeAttribute(n);
|
|
1817
1867
|
}
|
|
1818
1868
|
let n = Array.from(e.children);
|
|
1819
|
-
for (let e of n)
|
|
1869
|
+
for (let e of n) qi(e);
|
|
1820
1870
|
}
|
|
1821
|
-
function
|
|
1871
|
+
function Ji(e) {
|
|
1822
1872
|
if (typeof DOMParser > "u") return e;
|
|
1823
1873
|
let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
|
|
1824
|
-
for (let e of n)
|
|
1874
|
+
for (let e of n) qi(e);
|
|
1825
1875
|
return t.innerHTML;
|
|
1826
1876
|
}
|
|
1827
1877
|
//#endregion
|
|
1828
1878
|
//#region src/composables/useEditableTextBlock.ts
|
|
1829
|
-
function
|
|
1830
|
-
let t = p(
|
|
1879
|
+
function Yi(e) {
|
|
1880
|
+
let t = p(At, xt), n = p(Mt, null), { syntax: r } = On(), i = N(() => n?.value ? Oe(e(), t.value) : Ce(e(), t.value)), a = N(() => Ji(xe(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = mt(s), { toLocal: u } = hn(), d = N(() => u({
|
|
1831
1881
|
top: c.value - 8,
|
|
1832
1882
|
left: l.value
|
|
1833
1883
|
}));
|
|
@@ -1848,14 +1898,14 @@ function Bi(e) {
|
|
|
1848
1898
|
}
|
|
1849
1899
|
//#endregion
|
|
1850
1900
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1851
|
-
var
|
|
1901
|
+
var Xi = ["innerHTML"], Zi = /* @__PURE__ */ F({
|
|
1852
1902
|
__name: "ParagraphBlock",
|
|
1853
1903
|
props: {
|
|
1854
1904
|
block: {},
|
|
1855
1905
|
viewport: {}
|
|
1856
1906
|
},
|
|
1857
1907
|
setup(e) {
|
|
1858
|
-
let n = e, r = v(() => import("./ParagraphEditor-
|
|
1908
|
+
let n = e, r = v(() => import("./ParagraphEditor-BhhpXgoO.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Yi(() => n.block.content);
|
|
1859
1909
|
return (n, u) => (t(), S("div", {
|
|
1860
1910
|
ref_key: "blockRef",
|
|
1861
1911
|
ref: a,
|
|
@@ -1874,64 +1924,26 @@ var Vi = ["innerHTML"], Hi = /* @__PURE__ */ F({
|
|
|
1874
1924
|
key: 1,
|
|
1875
1925
|
class: "tpl-text-content tpl:outline-none",
|
|
1876
1926
|
innerHTML: y(s)
|
|
1877
|
-
}, null, 8,
|
|
1878
|
-
}
|
|
1879
|
-
});
|
|
1880
|
-
//#endregion
|
|
1881
|
-
//#region src/utils/blockComponentResolver.ts
|
|
1882
|
-
function Ui(e) {
|
|
1883
|
-
let t = { fontFamily: e.fontFamily };
|
|
1884
|
-
return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
|
|
1885
|
-
}
|
|
1886
|
-
function Wi(e, t, n) {
|
|
1887
|
-
if (t) {
|
|
1888
|
-
let n = t.getComponent(e);
|
|
1889
|
-
if (n) return n;
|
|
1890
|
-
}
|
|
1891
|
-
return n[e.type] ?? null;
|
|
1892
|
-
}
|
|
1893
|
-
function Gi(e) {
|
|
1894
|
-
if (e.type === "wrapper") return {};
|
|
1895
|
-
let { padding: t, backgroundColor: n } = e.styles, r = {
|
|
1896
|
-
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
1897
|
-
backgroundColor: n || "transparent"
|
|
1898
|
-
};
|
|
1899
|
-
return (e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ae.paragraphGap : Ae.paragraphGap}px`), e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
|
|
1900
|
-
}
|
|
1901
|
-
function Ki(e) {
|
|
1902
|
-
if (e.type !== "section" || !e.wrapper) return null;
|
|
1903
|
-
let t = e.wrapper, n = {};
|
|
1904
|
-
return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
|
|
1905
|
-
}
|
|
1906
|
-
function qi(e) {
|
|
1907
|
-
if (e.type !== "wrapper") return null;
|
|
1908
|
-
let t = {};
|
|
1909
|
-
if (e.styles.backgroundColor && (t.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
|
|
1910
|
-
let n = e.styles.padding;
|
|
1911
|
-
t.padding = `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`;
|
|
1927
|
+
}, null, 8, Xi))], 544));
|
|
1912
1928
|
}
|
|
1913
|
-
|
|
1914
|
-
}
|
|
1915
|
-
//#endregion
|
|
1916
|
-
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
1917
|
-
var Ji = [
|
|
1929
|
+
}), Qi = [
|
|
1918
1930
|
"data-block-id",
|
|
1919
1931
|
"data-block-type",
|
|
1920
1932
|
"data-tpl-picked"
|
|
1921
|
-
],
|
|
1933
|
+
], $i = ["aria-label"], ea = [
|
|
1922
1934
|
"aria-label",
|
|
1923
1935
|
"aria-pressed",
|
|
1924
1936
|
"title"
|
|
1925
|
-
],
|
|
1937
|
+
], ta = ["aria-label", "title"], na = ["aria-label", "title"], ra = ["aria-label", "title"], ia = {
|
|
1926
1938
|
key: 1,
|
|
1927
1939
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
1928
|
-
},
|
|
1940
|
+
}, aa = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, oa = {
|
|
1929
1941
|
key: 2,
|
|
1930
1942
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
1931
|
-
},
|
|
1943
|
+
}, sa = ["aria-label", "title"], ca = {
|
|
1932
1944
|
key: 3,
|
|
1933
1945
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1934
|
-
},
|
|
1946
|
+
}, la = ["aria-label"], ua = /*#__PURE__*/ En(/* @__PURE__ */ F({
|
|
1935
1947
|
__name: "BlockWrapper",
|
|
1936
1948
|
props: {
|
|
1937
1949
|
block: {},
|
|
@@ -1943,7 +1955,7 @@ var Ji = [
|
|
|
1943
1955
|
},
|
|
1944
1956
|
emits: ["select"],
|
|
1945
1957
|
setup(e, { emit: r }) {
|
|
1946
|
-
let i = v(() => import("./BlockIssueBadge-
|
|
1958
|
+
let i = v(() => import("./BlockIssueBadge-BJ3A6mqh.js")), o = e, s = r, { t: c, format: l } = un(), d = p(Pt, null), f = _(null), m = N(() => d?.liftedBlockId.value === o.block.id), h = N(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
|
|
1947
1959
|
async function g() {
|
|
1948
1960
|
await a(), f.value?.focus();
|
|
1949
1961
|
}
|
|
@@ -1969,7 +1981,7 @@ var Ji = [
|
|
|
1969
1981
|
let T = N(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), E = N(() => o.previewMode === !0 && T.value), O = N(() => o.viewport ? {
|
|
1970
1982
|
desktop: c.viewport.desktop,
|
|
1971
1983
|
mobile: c.viewport.mobile
|
|
1972
|
-
}[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(
|
|
1984
|
+
}[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(Vt, null), M = p(Gt, null), ee = p(Xt, {}), F = N(() => ee.savedBlocks?.isPicking.value === !0), te = N(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = N(() => o.isSelected && !F.value), re = N(() => ee.comments?.getBlockCount(o.block.id) ?? 0), ie = N(() => Or(o.block)), ae = N(() => Ar(o.block));
|
|
1973
1985
|
function oe(e) {
|
|
1974
1986
|
o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
|
|
1975
1987
|
}
|
|
@@ -2014,61 +2026,61 @@ var Ji = [
|
|
|
2014
2026
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2015
2027
|
title: y(c).blockActions.drag,
|
|
2016
2028
|
onKeydown: b
|
|
2017
|
-
}, [C(y(
|
|
2029
|
+
}, [C(y(Br), {
|
|
2018
2030
|
size: 14,
|
|
2019
2031
|
"stroke-width": 1.5
|
|
2020
|
-
})], 40,
|
|
2032
|
+
})], 40, ea),
|
|
2021
2033
|
x("button", {
|
|
2022
2034
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
2023
2035
|
"aria-label": y(c).blockActions.duplicate,
|
|
2024
2036
|
title: y(c).blockActions.duplicate,
|
|
2025
2037
|
onClick: I(ce, ["stop"])
|
|
2026
|
-
}, [C(y(
|
|
2038
|
+
}, [C(y(yn), {
|
|
2027
2039
|
size: 14,
|
|
2028
2040
|
"stroke-width": 1.5
|
|
2029
|
-
})], 8,
|
|
2041
|
+
})], 8, ta),
|
|
2030
2042
|
te.value ? (t(), S("button", {
|
|
2031
2043
|
key: 0,
|
|
2032
2044
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
2033
2045
|
"aria-label": y(c).blockActions.saveAsBlock,
|
|
2034
2046
|
title: y(c).blockActions.saveAsBlock,
|
|
2035
2047
|
onClick: I(le, ["stop"])
|
|
2036
|
-
}, [C(y(
|
|
2048
|
+
}, [C(y(Ir), {
|
|
2037
2049
|
size: 14,
|
|
2038
2050
|
"stroke-width": 1.5
|
|
2039
|
-
})], 8,
|
|
2051
|
+
})], 8, na)) : P("", !0),
|
|
2040
2052
|
x("button", {
|
|
2041
2053
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
2042
2054
|
"aria-label": y(c).blockActions.delete,
|
|
2043
2055
|
title: y(c).blockActions.delete,
|
|
2044
2056
|
onClick: I(se, ["stop"])
|
|
2045
|
-
}, [C(y(
|
|
2057
|
+
}, [C(y(Sn), {
|
|
2046
2058
|
size: 14,
|
|
2047
2059
|
"stroke-width": 1.5
|
|
2048
|
-
})], 8,
|
|
2049
|
-
], 8,
|
|
2050
|
-
T.value ? (t(), S("div",
|
|
2060
|
+
})], 8, ra)
|
|
2061
|
+
], 8, $i)) : P("", !0),
|
|
2062
|
+
T.value ? (t(), S("div", ia, [x("span", aa, [C(y(Rr), {
|
|
2051
2063
|
size: 12,
|
|
2052
2064
|
"stroke-width": 1.5
|
|
2053
2065
|
}), w(" " + D(y(l)(y(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : P("", !0),
|
|
2054
|
-
A.value && !T.value ? (t(), S("div",
|
|
2066
|
+
A.value && !T.value ? (t(), S("div", oa, [x("button", {
|
|
2055
2067
|
"data-testid": "condition-toggle",
|
|
2056
2068
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
2057
2069
|
"aria-label": y(c).blockActions.conditionToggle,
|
|
2058
2070
|
title: e.block.displayCondition?.label,
|
|
2059
2071
|
onClick: I(ue, ["stop"])
|
|
2060
|
-
}, [C(y(
|
|
2072
|
+
}, [C(y(zr), {
|
|
2061
2073
|
size: 12,
|
|
2062
2074
|
"stroke-width": 2
|
|
2063
|
-
})], 8,
|
|
2064
|
-
re.value > 0 && !T.value ? (t(), S("div",
|
|
2075
|
+
})], 8, sa)])) : P("", !0),
|
|
2076
|
+
re.value > 0 && !T.value ? (t(), S("div", ca, [x("button", {
|
|
2065
2077
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
2066
2078
|
"aria-label": y(l)(y(c).blockActions.comments, { count: String(re.value) }),
|
|
2067
2079
|
onClick: a[0] ||= I((t) => y(ee).comments?.openForBlock(e.block.id), ["stop"])
|
|
2068
|
-
}, [C(y(
|
|
2080
|
+
}, [C(y(xn), {
|
|
2069
2081
|
size: 12,
|
|
2070
2082
|
"stroke-width": 2.5
|
|
2071
|
-
}), w(" " + D(re.value), 1)], 8,
|
|
2083
|
+
}), w(" " + D(re.value), 1)], 8, la)])) : P("", !0),
|
|
2072
2084
|
ae.value ? (t(), S("div", {
|
|
2073
2085
|
key: 4,
|
|
2074
2086
|
class: "tpl-section-wrapper",
|
|
@@ -2081,31 +2093,31 @@ var Ji = [
|
|
|
2081
2093
|
class: "tpl-block-content",
|
|
2082
2094
|
style: n(ie.value)
|
|
2083
2095
|
}, [u(r.$slots, "default", {}, void 0, !0)], 4))
|
|
2084
|
-
], 10,
|
|
2096
|
+
], 10, Qi));
|
|
2085
2097
|
}
|
|
2086
2098
|
}), [["__scopeId", "data-v-2c239048"]]);
|
|
2087
2099
|
//#endregion
|
|
2088
2100
|
//#region src/utils/unwrapParagraph.ts
|
|
2089
|
-
function
|
|
2101
|
+
function da(e) {
|
|
2090
2102
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
2091
2103
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
2092
2104
|
}
|
|
2093
2105
|
//#endregion
|
|
2094
2106
|
//#region src/components/blocks/TitleBlock.vue
|
|
2095
|
-
var
|
|
2107
|
+
var fa = /* @__PURE__ */ F({
|
|
2096
2108
|
__name: "TitleBlock",
|
|
2097
2109
|
props: {
|
|
2098
2110
|
block: {},
|
|
2099
2111
|
viewport: {}
|
|
2100
2112
|
},
|
|
2101
2113
|
setup(e) {
|
|
2102
|
-
let r = e, i = v(() => import("./TitleEditor-
|
|
2114
|
+
let r = e, i = v(() => import("./TitleEditor-lPITPzw6.js")), { isEditing: a, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Yi(() => r.block.content), f = N(() => {
|
|
2103
2115
|
let e = {
|
|
2104
|
-
fontSize: `${
|
|
2116
|
+
fontSize: `${Te[r.block.level]}px`,
|
|
2105
2117
|
textAlign: r.block.textAlign
|
|
2106
2118
|
};
|
|
2107
2119
|
return r.block.color && (e.color = r.block.color), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), e;
|
|
2108
|
-
}), p = N(() => `h${r.block.level}`), m = N(() =>
|
|
2120
|
+
}), p = N(() => `h${r.block.level}`), m = N(() => da(l.value));
|
|
2109
2121
|
return (r, l) => (t(), S("div", {
|
|
2110
2122
|
ref_key: "blockRef",
|
|
2111
2123
|
ref: s,
|
|
@@ -2131,88 +2143,88 @@ var ca = /* @__PURE__ */ F({
|
|
|
2131
2143
|
});
|
|
2132
2144
|
//#endregion
|
|
2133
2145
|
//#region src/utils/sectionColumnDrop.ts
|
|
2134
|
-
function
|
|
2146
|
+
function pa(e) {
|
|
2135
2147
|
return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
|
|
2136
2148
|
}
|
|
2137
2149
|
//#endregion
|
|
2138
2150
|
//#region ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
|
|
2139
|
-
var
|
|
2151
|
+
var ma = Object.defineProperty, ha = Object.getOwnPropertySymbols, ga = Object.prototype.hasOwnProperty, _a = Object.prototype.propertyIsEnumerable, va = (e, t, n) => t in e ? ma(e, t, {
|
|
2140
2152
|
enumerable: !0,
|
|
2141
2153
|
configurable: !0,
|
|
2142
2154
|
writable: !0,
|
|
2143
2155
|
value: n
|
|
2144
|
-
}) : e[t] = n,
|
|
2145
|
-
for (var n in t ||= {})
|
|
2146
|
-
if (
|
|
2156
|
+
}) : e[t] = n, ya = (e, t) => {
|
|
2157
|
+
for (var n in t ||= {}) ga.call(t, n) && va(e, n, t[n]);
|
|
2158
|
+
if (ha) for (var n of ha(t)) _a.call(t, n) && va(e, n, t[n]);
|
|
2147
2159
|
return e;
|
|
2148
|
-
},
|
|
2160
|
+
}, ba = (e, t) => {
|
|
2149
2161
|
var n = {};
|
|
2150
|
-
for (var r in e)
|
|
2151
|
-
if (e != null &&
|
|
2162
|
+
for (var r in e) ga.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2163
|
+
if (e != null && ha) for (var r of ha(e)) t.indexOf(r) < 0 && _a.call(e, r) && (n[r] = e[r]);
|
|
2152
2164
|
return n;
|
|
2153
|
-
},
|
|
2154
|
-
function
|
|
2155
|
-
console.warn(
|
|
2165
|
+
}, xa = "[vue-draggable-plus]: ";
|
|
2166
|
+
function Sa(e) {
|
|
2167
|
+
console.warn(xa + e);
|
|
2156
2168
|
}
|
|
2157
|
-
function
|
|
2158
|
-
console.error(
|
|
2169
|
+
function Ca(e) {
|
|
2170
|
+
console.error(xa + e);
|
|
2159
2171
|
}
|
|
2160
|
-
function
|
|
2172
|
+
function wa(e, t, n) {
|
|
2161
2173
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
2162
2174
|
}
|
|
2163
|
-
function
|
|
2175
|
+
function Ta(e) {
|
|
2164
2176
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
2165
2177
|
}
|
|
2166
|
-
function
|
|
2167
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
2178
|
+
function Ea(e) {
|
|
2179
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Ta(n)] = e[n]), t), {});
|
|
2168
2180
|
}
|
|
2169
|
-
function
|
|
2181
|
+
function Da(e, t) {
|
|
2170
2182
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
2171
2183
|
}
|
|
2172
|
-
function
|
|
2184
|
+
function Oa(e, t, n) {
|
|
2173
2185
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
2174
2186
|
}
|
|
2175
|
-
function
|
|
2187
|
+
function ka(e) {
|
|
2176
2188
|
return e === void 0;
|
|
2177
2189
|
}
|
|
2178
|
-
function
|
|
2190
|
+
function Aa(e) {
|
|
2179
2191
|
return typeof e == "string";
|
|
2180
2192
|
}
|
|
2181
|
-
function
|
|
2193
|
+
function ja(e, t, n) {
|
|
2182
2194
|
let r = e.children[n];
|
|
2183
2195
|
e.insertBefore(t, r);
|
|
2184
2196
|
}
|
|
2185
|
-
function
|
|
2197
|
+
function Ma(e) {
|
|
2186
2198
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2187
2199
|
}
|
|
2188
|
-
function
|
|
2200
|
+
function Na(e, t = document) {
|
|
2189
2201
|
let n = null;
|
|
2190
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
2202
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Sa(`Element not found: ${e}`), n;
|
|
2191
2203
|
}
|
|
2192
|
-
function
|
|
2204
|
+
function Pa(e, t, n = null) {
|
|
2193
2205
|
return function(...r) {
|
|
2194
2206
|
return e.apply(n, r), t.apply(n, r);
|
|
2195
2207
|
};
|
|
2196
2208
|
}
|
|
2197
|
-
function
|
|
2198
|
-
let n =
|
|
2209
|
+
function Fa(e, t) {
|
|
2210
|
+
let n = ya({}, e);
|
|
2199
2211
|
return Object.keys(t).forEach((r) => {
|
|
2200
|
-
n[r] ? n[r] =
|
|
2212
|
+
n[r] ? n[r] = Pa(e[r], t[r]) : n[r] = t[r];
|
|
2201
2213
|
}), n;
|
|
2202
2214
|
}
|
|
2203
|
-
function
|
|
2215
|
+
function Ia(e) {
|
|
2204
2216
|
return e instanceof HTMLElement;
|
|
2205
2217
|
}
|
|
2206
|
-
function
|
|
2218
|
+
function La(e, t) {
|
|
2207
2219
|
Object.keys(e).forEach((n) => {
|
|
2208
2220
|
t(n, e[n]);
|
|
2209
2221
|
});
|
|
2210
2222
|
}
|
|
2211
|
-
function
|
|
2223
|
+
function Ra(e) {
|
|
2212
2224
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
2213
2225
|
}
|
|
2214
|
-
var
|
|
2215
|
-
function
|
|
2226
|
+
var za = Object.assign;
|
|
2227
|
+
function Ba(e, t) {
|
|
2216
2228
|
var n = Object.keys(e);
|
|
2217
2229
|
if (Object.getOwnPropertySymbols) {
|
|
2218
2230
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2222,26 +2234,26 @@ function Ia(e, t) {
|
|
|
2222
2234
|
}
|
|
2223
2235
|
return n;
|
|
2224
2236
|
}
|
|
2225
|
-
function
|
|
2237
|
+
function Va(e) {
|
|
2226
2238
|
for (var t = 1; t < arguments.length; t++) {
|
|
2227
2239
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2228
|
-
t % 2 ?
|
|
2229
|
-
|
|
2230
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2240
|
+
t % 2 ? Ba(Object(n), !0).forEach(function(t) {
|
|
2241
|
+
Ua(e, t, n[t]);
|
|
2242
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ba(Object(n)).forEach(function(t) {
|
|
2231
2243
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2232
2244
|
});
|
|
2233
2245
|
}
|
|
2234
2246
|
return e;
|
|
2235
2247
|
}
|
|
2236
|
-
function
|
|
2248
|
+
function Ha(e) {
|
|
2237
2249
|
"@babel/helpers - typeof";
|
|
2238
|
-
return
|
|
2250
|
+
return Ha = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2239
2251
|
return typeof e;
|
|
2240
2252
|
} : function(e) {
|
|
2241
2253
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2242
|
-
},
|
|
2254
|
+
}, Ha(e);
|
|
2243
2255
|
}
|
|
2244
|
-
function
|
|
2256
|
+
function Ua(e, t, n) {
|
|
2245
2257
|
return t in e ? Object.defineProperty(e, t, {
|
|
2246
2258
|
value: n,
|
|
2247
2259
|
enumerable: !0,
|
|
@@ -2249,44 +2261,44 @@ function za(e, t, n) {
|
|
|
2249
2261
|
writable: !0
|
|
2250
2262
|
}) : e[t] = n, e;
|
|
2251
2263
|
}
|
|
2252
|
-
function
|
|
2253
|
-
return
|
|
2264
|
+
function Wa() {
|
|
2265
|
+
return Wa = Object.assign || function(e) {
|
|
2254
2266
|
for (var t = 1; t < arguments.length; t++) {
|
|
2255
2267
|
var n = arguments[t];
|
|
2256
2268
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2257
2269
|
}
|
|
2258
2270
|
return e;
|
|
2259
|
-
},
|
|
2271
|
+
}, Wa.apply(this, arguments);
|
|
2260
2272
|
}
|
|
2261
|
-
function
|
|
2273
|
+
function Ga(e, t) {
|
|
2262
2274
|
if (e == null) return {};
|
|
2263
2275
|
for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2264
2276
|
return n;
|
|
2265
2277
|
}
|
|
2266
|
-
function
|
|
2278
|
+
function Ka(e, t) {
|
|
2267
2279
|
if (e == null) return {};
|
|
2268
|
-
var n =
|
|
2280
|
+
var n = Ga(e, t), r, i;
|
|
2269
2281
|
if (Object.getOwnPropertySymbols) {
|
|
2270
2282
|
var a = Object.getOwnPropertySymbols(e);
|
|
2271
2283
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2272
2284
|
}
|
|
2273
2285
|
return n;
|
|
2274
2286
|
}
|
|
2275
|
-
var
|
|
2276
|
-
function
|
|
2287
|
+
var qa = "1.15.2";
|
|
2288
|
+
function Ja(e) {
|
|
2277
2289
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2278
2290
|
}
|
|
2279
|
-
var
|
|
2291
|
+
var Ya = Ja(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Xa = Ja(/Edge/i), Za = Ja(/firefox/i), Qa = Ja(/safari/i) && !Ja(/chrome/i) && !Ja(/android/i), $a = Ja(/iP(ad|od|hone)/i), eo = Ja(/chrome/i) && Ja(/android/i), to = {
|
|
2280
2292
|
capture: !1,
|
|
2281
2293
|
passive: !1
|
|
2282
2294
|
};
|
|
2283
2295
|
function L(e, t, n) {
|
|
2284
|
-
e.addEventListener(t, n, !
|
|
2296
|
+
e.addEventListener(t, n, !Ya && to);
|
|
2285
2297
|
}
|
|
2286
2298
|
function R(e, t, n) {
|
|
2287
|
-
e.removeEventListener(t, n, !
|
|
2299
|
+
e.removeEventListener(t, n, !Ya && to);
|
|
2288
2300
|
}
|
|
2289
|
-
function
|
|
2301
|
+
function no(e, t) {
|
|
2290
2302
|
if (t) {
|
|
2291
2303
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
2292
2304
|
if (e.matches) return e.matches(t);
|
|
@@ -2298,22 +2310,22 @@ function Qa(e, t) {
|
|
|
2298
2310
|
return !1;
|
|
2299
2311
|
}
|
|
2300
2312
|
}
|
|
2301
|
-
function
|
|
2313
|
+
function ro(e) {
|
|
2302
2314
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
2303
2315
|
}
|
|
2304
|
-
function
|
|
2316
|
+
function io(e, t, n, r) {
|
|
2305
2317
|
if (e) {
|
|
2306
2318
|
n ||= document;
|
|
2307
2319
|
do {
|
|
2308
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
2320
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && no(e, t) : no(e, t)) || r && e === n) return e;
|
|
2309
2321
|
if (e === n) break;
|
|
2310
|
-
} while (e =
|
|
2322
|
+
} while (e = ro(e));
|
|
2311
2323
|
}
|
|
2312
2324
|
return null;
|
|
2313
2325
|
}
|
|
2314
|
-
var
|
|
2326
|
+
var ao = /\s+/g;
|
|
2315
2327
|
function z(e, t, n) {
|
|
2316
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
2328
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(ao, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(ao, " "));
|
|
2317
2329
|
}
|
|
2318
2330
|
function B(e, t, n) {
|
|
2319
2331
|
var r = e && e.style;
|
|
@@ -2322,7 +2334,7 @@ function B(e, t, n) {
|
|
|
2322
2334
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
2323
2335
|
}
|
|
2324
2336
|
}
|
|
2325
|
-
function
|
|
2337
|
+
function oo(e, t) {
|
|
2326
2338
|
var n = "";
|
|
2327
2339
|
if (typeof e == "string") n = e;
|
|
2328
2340
|
else do {
|
|
@@ -2332,7 +2344,7 @@ function no(e, t) {
|
|
|
2332
2344
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2333
2345
|
return i && new i(n);
|
|
2334
2346
|
}
|
|
2335
|
-
function
|
|
2347
|
+
function so(e, t, n) {
|
|
2336
2348
|
if (e) {
|
|
2337
2349
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
2338
2350
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -2340,13 +2352,13 @@ function ro(e, t, n) {
|
|
|
2340
2352
|
}
|
|
2341
2353
|
return [];
|
|
2342
2354
|
}
|
|
2343
|
-
function
|
|
2355
|
+
function co() {
|
|
2344
2356
|
return document.scrollingElement || document.documentElement;
|
|
2345
2357
|
}
|
|
2346
2358
|
function V(e, t, n, r, i) {
|
|
2347
2359
|
if (e.getBoundingClientRect || e === window) {
|
|
2348
2360
|
var a, o, s, c, l, u, d;
|
|
2349
|
-
if (e !== window && e.parentNode && e !==
|
|
2361
|
+
if (e !== window && e.parentNode && e !== co() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Ya)) do
|
|
2350
2362
|
if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
|
|
2351
2363
|
var f = i.getBoundingClientRect();
|
|
2352
2364
|
o -= f.top + parseInt(B(i, "border-top-width")), s -= f.left + parseInt(B(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -2354,7 +2366,7 @@ function V(e, t, n, r, i) {
|
|
|
2354
2366
|
}
|
|
2355
2367
|
while (i = i.parentNode);
|
|
2356
2368
|
if (r && e !== window) {
|
|
2357
|
-
var p =
|
|
2369
|
+
var p = oo(i || e), m = p && p.a, h = p && p.d;
|
|
2358
2370
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
2359
2371
|
}
|
|
2360
2372
|
return {
|
|
@@ -2367,18 +2379,18 @@ function V(e, t, n, r, i) {
|
|
|
2367
2379
|
};
|
|
2368
2380
|
}
|
|
2369
2381
|
}
|
|
2370
|
-
function
|
|
2371
|
-
for (var r =
|
|
2382
|
+
function lo(e, t, n) {
|
|
2383
|
+
for (var r = go(e, !0), i = V(e)[t]; r;) {
|
|
2372
2384
|
var a = V(r)[n], o = void 0;
|
|
2373
2385
|
if (o = i >= a, !o) return r;
|
|
2374
|
-
if (r ===
|
|
2375
|
-
r =
|
|
2386
|
+
if (r === co()) break;
|
|
2387
|
+
r = go(r, !1);
|
|
2376
2388
|
}
|
|
2377
2389
|
return !1;
|
|
2378
2390
|
}
|
|
2379
|
-
function
|
|
2391
|
+
function uo(e, t, n, r) {
|
|
2380
2392
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
2381
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
2393
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && io(o[a], n.draggable, e, !1)) {
|
|
2382
2394
|
if (i === t) return o[a];
|
|
2383
2395
|
i++;
|
|
2384
2396
|
}
|
|
@@ -2386,84 +2398,84 @@ function oo(e, t, n, r) {
|
|
|
2386
2398
|
}
|
|
2387
2399
|
return null;
|
|
2388
2400
|
}
|
|
2389
|
-
function
|
|
2390
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !
|
|
2401
|
+
function fo(e, t) {
|
|
2402
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !no(n, t));) n = n.previousElementSibling;
|
|
2391
2403
|
return n || null;
|
|
2392
2404
|
}
|
|
2393
|
-
function
|
|
2405
|
+
function po(e, t) {
|
|
2394
2406
|
var n = 0;
|
|
2395
2407
|
if (!e || !e.parentNode) return -1;
|
|
2396
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
2408
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || no(e, t)) && n++;
|
|
2397
2409
|
return n;
|
|
2398
2410
|
}
|
|
2399
|
-
function
|
|
2400
|
-
var t = 0, n = 0, r =
|
|
2411
|
+
function mo(e) {
|
|
2412
|
+
var t = 0, n = 0, r = co();
|
|
2401
2413
|
if (e) do {
|
|
2402
|
-
var i =
|
|
2414
|
+
var i = oo(e), a = i.a, o = i.d;
|
|
2403
2415
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
2404
2416
|
} while (e !== r && (e = e.parentNode));
|
|
2405
2417
|
return [t, n];
|
|
2406
2418
|
}
|
|
2407
|
-
function
|
|
2419
|
+
function ho(e, t) {
|
|
2408
2420
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
2409
2421
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
2410
2422
|
}
|
|
2411
2423
|
return -1;
|
|
2412
2424
|
}
|
|
2413
|
-
function
|
|
2414
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2425
|
+
function go(e, t) {
|
|
2426
|
+
if (!e || !e.getBoundingClientRect) return co();
|
|
2415
2427
|
var n = e, r = !1;
|
|
2416
2428
|
do
|
|
2417
2429
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2418
2430
|
var i = B(n);
|
|
2419
2431
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2420
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
2432
|
+
if (!n.getBoundingClientRect || n === document.body) return co();
|
|
2421
2433
|
if (r || t) return n;
|
|
2422
2434
|
r = !0;
|
|
2423
2435
|
}
|
|
2424
2436
|
}
|
|
2425
2437
|
while (n = n.parentNode);
|
|
2426
|
-
return
|
|
2438
|
+
return co();
|
|
2427
2439
|
}
|
|
2428
|
-
function
|
|
2440
|
+
function _o(e, t) {
|
|
2429
2441
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2430
2442
|
return e;
|
|
2431
2443
|
}
|
|
2432
|
-
function
|
|
2444
|
+
function vo(e, t) {
|
|
2433
2445
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
2434
2446
|
}
|
|
2435
|
-
var
|
|
2436
|
-
function
|
|
2447
|
+
var yo;
|
|
2448
|
+
function bo(e, t) {
|
|
2437
2449
|
return function() {
|
|
2438
|
-
if (!
|
|
2450
|
+
if (!yo) {
|
|
2439
2451
|
var n = arguments, r = this;
|
|
2440
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
2441
|
-
|
|
2452
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), yo = setTimeout(function() {
|
|
2453
|
+
yo = void 0;
|
|
2442
2454
|
}, t);
|
|
2443
2455
|
}
|
|
2444
2456
|
};
|
|
2445
2457
|
}
|
|
2446
|
-
function
|
|
2447
|
-
clearTimeout(
|
|
2458
|
+
function xo() {
|
|
2459
|
+
clearTimeout(yo), yo = void 0;
|
|
2448
2460
|
}
|
|
2449
|
-
function
|
|
2461
|
+
function So(e, t, n) {
|
|
2450
2462
|
e.scrollLeft += t, e.scrollTop += n;
|
|
2451
2463
|
}
|
|
2452
|
-
function
|
|
2464
|
+
function Co(e) {
|
|
2453
2465
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
2454
2466
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2455
2467
|
}
|
|
2456
|
-
function
|
|
2468
|
+
function wo(e, t, n) {
|
|
2457
2469
|
var r = {};
|
|
2458
2470
|
return Array.from(e.children).forEach(function(i) {
|
|
2459
|
-
if (
|
|
2471
|
+
if (io(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
2460
2472
|
var a = V(i);
|
|
2461
2473
|
r.left = Math.min(r.left ?? 1 / 0, a.left), r.top = Math.min(r.top ?? 1 / 0, a.top), r.right = Math.max(r.right ?? -1 / 0, a.right), r.bottom = Math.max(r.bottom ?? -1 / 0, a.bottom);
|
|
2462
2474
|
}
|
|
2463
2475
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
2464
2476
|
}
|
|
2465
|
-
var
|
|
2466
|
-
function
|
|
2477
|
+
var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2478
|
+
function To() {
|
|
2467
2479
|
var e = [], t;
|
|
2468
2480
|
return {
|
|
2469
2481
|
captureAnimationState: function() {
|
|
@@ -2473,9 +2485,9 @@ function So() {
|
|
|
2473
2485
|
target: t,
|
|
2474
2486
|
rect: V(t)
|
|
2475
2487
|
});
|
|
2476
|
-
var n =
|
|
2488
|
+
var n = Va({}, e[e.length - 1].rect);
|
|
2477
2489
|
if (t.thisAnimationDuration) {
|
|
2478
|
-
var r =
|
|
2490
|
+
var r = oo(t, !0);
|
|
2479
2491
|
r && (n.top -= r.f, n.left -= r.e);
|
|
2480
2492
|
}
|
|
2481
2493
|
t.fromRect = n;
|
|
@@ -2486,7 +2498,7 @@ function So() {
|
|
|
2486
2498
|
e.push(t);
|
|
2487
2499
|
},
|
|
2488
2500
|
removeAnimationState: function(t) {
|
|
2489
|
-
e.splice(
|
|
2501
|
+
e.splice(ho(e, { target: t }), 1);
|
|
2490
2502
|
},
|
|
2491
2503
|
animateAll: function(n) {
|
|
2492
2504
|
var r = this;
|
|
@@ -2496,8 +2508,8 @@ function So() {
|
|
|
2496
2508
|
}
|
|
2497
2509
|
var i = !1, a = 0;
|
|
2498
2510
|
e.forEach(function(e) {
|
|
2499
|
-
var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d =
|
|
2500
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
2511
|
+
var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = oo(n, !0);
|
|
2512
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && vo(c, s) && !vo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Do(u, c, l, r.options)), vo(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
2501
2513
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
2502
2514
|
}, t), n.thisAnimationDuration = t);
|
|
2503
2515
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -2507,26 +2519,26 @@ function So() {
|
|
|
2507
2519
|
animate: function(e, t, n, r) {
|
|
2508
2520
|
if (r) {
|
|
2509
2521
|
B(e, "transition", ""), B(e, "transform", "");
|
|
2510
|
-
var i =
|
|
2511
|
-
e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
2522
|
+
var i = oo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
2523
|
+
e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Eo(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
2512
2524
|
B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
2513
2525
|
}, r);
|
|
2514
2526
|
}
|
|
2515
2527
|
}
|
|
2516
2528
|
};
|
|
2517
2529
|
}
|
|
2518
|
-
function
|
|
2530
|
+
function Eo(e) {
|
|
2519
2531
|
return e.offsetWidth;
|
|
2520
2532
|
}
|
|
2521
|
-
function
|
|
2533
|
+
function Do(e, t, n, r) {
|
|
2522
2534
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
2523
2535
|
}
|
|
2524
|
-
var
|
|
2536
|
+
var Oo = [], ko = { initializeByDefault: !0 }, Ao = {
|
|
2525
2537
|
mount: function(e) {
|
|
2526
|
-
for (var t in
|
|
2527
|
-
|
|
2538
|
+
for (var t in ko) ko.hasOwnProperty(t) && !(t in e) && (e[t] = ko[t]);
|
|
2539
|
+
Oo.forEach(function(t) {
|
|
2528
2540
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2529
|
-
}),
|
|
2541
|
+
}), Oo.push(e);
|
|
2530
2542
|
},
|
|
2531
2543
|
pluginEvent: function(e, t, n) {
|
|
2532
2544
|
var r = this;
|
|
@@ -2534,16 +2546,16 @@ var To = [], Eo = { initializeByDefault: !0 }, Do = {
|
|
|
2534
2546
|
r.eventCanceled = !0;
|
|
2535
2547
|
};
|
|
2536
2548
|
var i = e + "Global";
|
|
2537
|
-
|
|
2538
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
2549
|
+
Oo.forEach(function(r) {
|
|
2550
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Va({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Va({ sortable: t }, n)));
|
|
2539
2551
|
});
|
|
2540
2552
|
},
|
|
2541
2553
|
initializePlugins: function(e, t, n, r) {
|
|
2542
|
-
for (var i in
|
|
2554
|
+
for (var i in Oo.forEach(function(r) {
|
|
2543
2555
|
var i = r.pluginName;
|
|
2544
2556
|
if (e.options[i] || r.initializeByDefault) {
|
|
2545
2557
|
var a = new r(e, t, e.options);
|
|
2546
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
2558
|
+
a.sortable = e, a.options = e.options, e[i] = a, Wa(n, a.defaults);
|
|
2547
2559
|
}
|
|
2548
2560
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
2549
2561
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -2552,59 +2564,59 @@ var To = [], Eo = { initializeByDefault: !0 }, Do = {
|
|
|
2552
2564
|
},
|
|
2553
2565
|
getEventProperties: function(e, t) {
|
|
2554
2566
|
var n = {};
|
|
2555
|
-
return
|
|
2556
|
-
typeof r.eventProperties == "function" &&
|
|
2567
|
+
return Oo.forEach(function(r) {
|
|
2568
|
+
typeof r.eventProperties == "function" && Wa(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2557
2569
|
}), n;
|
|
2558
2570
|
},
|
|
2559
2571
|
modifyOption: function(e, t, n) {
|
|
2560
2572
|
var r;
|
|
2561
|
-
return
|
|
2573
|
+
return Oo.forEach(function(i) {
|
|
2562
2574
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2563
2575
|
}), r;
|
|
2564
2576
|
}
|
|
2565
2577
|
};
|
|
2566
|
-
function
|
|
2578
|
+
function jo(e) {
|
|
2567
2579
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
2568
|
-
if (t ||= n && n[
|
|
2580
|
+
if (t ||= n && n[H], t) {
|
|
2569
2581
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
2570
|
-
window.CustomEvent && !
|
|
2582
|
+
window.CustomEvent && !Ya && !Xa ? h = new CustomEvent(r, {
|
|
2571
2583
|
bubbles: !0,
|
|
2572
2584
|
cancelable: !0
|
|
2573
2585
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
2574
|
-
var v =
|
|
2586
|
+
var v = Va(Va({}, m), Ao.getEventProperties(r, t));
|
|
2575
2587
|
for (var y in v) h[y] = v[y];
|
|
2576
2588
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
2577
2589
|
}
|
|
2578
2590
|
}
|
|
2579
|
-
var
|
|
2580
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
2581
|
-
|
|
2582
|
-
dragEl:
|
|
2583
|
-
parentEl:
|
|
2584
|
-
ghostEl:
|
|
2585
|
-
rootEl:
|
|
2586
|
-
nextEl:
|
|
2587
|
-
lastDownEl:
|
|
2588
|
-
cloneEl:
|
|
2589
|
-
cloneHidden:
|
|
2590
|
-
dragStarted:
|
|
2591
|
+
var Mo = ["evt"], U = function(e, t) {
|
|
2592
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ka(n, Mo);
|
|
2593
|
+
Ao.pluginEvent.bind(Q)(e, t, Va({
|
|
2594
|
+
dragEl: G,
|
|
2595
|
+
parentEl: K,
|
|
2596
|
+
ghostEl: q,
|
|
2597
|
+
rootEl: J,
|
|
2598
|
+
nextEl: No,
|
|
2599
|
+
lastDownEl: Po,
|
|
2600
|
+
cloneEl: Y,
|
|
2601
|
+
cloneHidden: Fo,
|
|
2602
|
+
dragStarted: Xo,
|
|
2591
2603
|
putSortable: X,
|
|
2592
2604
|
activeSortable: Q.active,
|
|
2593
2605
|
originalEvent: r,
|
|
2594
|
-
oldIndex:
|
|
2595
|
-
oldDraggableIndex:
|
|
2596
|
-
newIndex:
|
|
2597
|
-
newDraggableIndex:
|
|
2598
|
-
hideGhostForTarget:
|
|
2599
|
-
unhideGhostForTarget:
|
|
2606
|
+
oldIndex: Io,
|
|
2607
|
+
oldDraggableIndex: Ro,
|
|
2608
|
+
newIndex: Lo,
|
|
2609
|
+
newDraggableIndex: zo,
|
|
2610
|
+
hideGhostForTarget: ms,
|
|
2611
|
+
unhideGhostForTarget: hs,
|
|
2600
2612
|
cloneNowHidden: function() {
|
|
2601
|
-
|
|
2613
|
+
Fo = !0;
|
|
2602
2614
|
},
|
|
2603
2615
|
cloneNowShown: function() {
|
|
2604
|
-
|
|
2616
|
+
Fo = !1;
|
|
2605
2617
|
},
|
|
2606
2618
|
dispatchSortableEvent: function(e) {
|
|
2607
|
-
|
|
2619
|
+
W({
|
|
2608
2620
|
sortable: t,
|
|
2609
2621
|
name: e,
|
|
2610
2622
|
originalEvent: r
|
|
@@ -2612,46 +2624,46 @@ var ko = ["evt"], H = function(e, t) {
|
|
|
2612
2624
|
}
|
|
2613
2625
|
}, i));
|
|
2614
2626
|
};
|
|
2615
|
-
function
|
|
2616
|
-
|
|
2627
|
+
function W(e) {
|
|
2628
|
+
jo(Va({
|
|
2617
2629
|
putSortable: X,
|
|
2618
|
-
cloneEl:
|
|
2619
|
-
targetEl:
|
|
2620
|
-
rootEl:
|
|
2621
|
-
oldIndex:
|
|
2622
|
-
oldDraggableIndex:
|
|
2623
|
-
newIndex:
|
|
2624
|
-
newDraggableIndex:
|
|
2630
|
+
cloneEl: Y,
|
|
2631
|
+
targetEl: G,
|
|
2632
|
+
rootEl: J,
|
|
2633
|
+
oldIndex: Io,
|
|
2634
|
+
oldDraggableIndex: Ro,
|
|
2635
|
+
newIndex: Lo,
|
|
2636
|
+
newDraggableIndex: zo
|
|
2625
2637
|
}, e));
|
|
2626
2638
|
}
|
|
2627
|
-
var
|
|
2628
|
-
if (
|
|
2629
|
-
if (
|
|
2639
|
+
var G, K, q, J, No, Po, Y, Fo, Io, Lo, Ro, zo, Bo, X, Vo = !1, Ho = !1, Uo = [], Wo, Go, Ko, qo, Jo, Yo, Xo, Zo, Qo, $o = !1, es = !1, ts, Z, ns = [], rs = !1, is = [], as = typeof document < "u", os = $a, ss = Xa || Ya ? "cssFloat" : "float", cs = as && !eo && !$a && "draggable" in document.createElement("div"), ls = function() {
|
|
2640
|
+
if (as) {
|
|
2641
|
+
if (Ya) return !1;
|
|
2630
2642
|
var e = document.createElement("x");
|
|
2631
2643
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2632
2644
|
}
|
|
2633
|
-
}(),
|
|
2634
|
-
var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
2645
|
+
}(), us = function(e, t) {
|
|
2646
|
+
var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = uo(e, 0, t), a = uo(e, 1, t), o = i && B(i), s = a && B(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + V(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + V(a).width;
|
|
2635
2647
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2636
2648
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2637
2649
|
if (i && o.float && o.float !== "none") {
|
|
2638
2650
|
var u = o.float === "left" ? "left" : "right";
|
|
2639
2651
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
2640
2652
|
}
|
|
2641
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
2642
|
-
},
|
|
2653
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ss] === "none" || a && n[ss] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
2654
|
+
}, ds = function(e, t, n) {
|
|
2643
2655
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
2644
2656
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
2645
|
-
},
|
|
2657
|
+
}, fs = function(e, t) {
|
|
2646
2658
|
var n;
|
|
2647
|
-
return
|
|
2648
|
-
var i = r[
|
|
2649
|
-
if (i && !
|
|
2659
|
+
return Uo.some(function(r) {
|
|
2660
|
+
var i = r[H].options.emptyInsertThreshold;
|
|
2661
|
+
if (i && !fo(r)) {
|
|
2650
2662
|
var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
2651
2663
|
if (o && s) return n = r;
|
|
2652
2664
|
}
|
|
2653
2665
|
}), n;
|
|
2654
|
-
},
|
|
2666
|
+
}, ps = function(e) {
|
|
2655
2667
|
function t(e, n) {
|
|
2656
2668
|
return function(r, i, a, o) {
|
|
2657
2669
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -2664,31 +2676,31 @@ var W, G, K, q, Ao, jo, J, Mo, No, Y, Po, Fo, Io, X, Lo = !1, Ro = !1, zo = [],
|
|
|
2664
2676
|
};
|
|
2665
2677
|
}
|
|
2666
2678
|
var n = {}, r = e.group;
|
|
2667
|
-
(!r ||
|
|
2668
|
-
},
|
|
2669
|
-
!
|
|
2670
|
-
},
|
|
2671
|
-
!
|
|
2679
|
+
(!r || Ha(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
2680
|
+
}, ms = function() {
|
|
2681
|
+
!ls && q && B(q, "display", "none");
|
|
2682
|
+
}, hs = function() {
|
|
2683
|
+
!ls && q && B(q, "display", "");
|
|
2672
2684
|
};
|
|
2673
|
-
|
|
2674
|
-
if (
|
|
2685
|
+
as && !eo && document.addEventListener("click", function(e) {
|
|
2686
|
+
if (Ho) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ho = !1, !1;
|
|
2675
2687
|
}, !0);
|
|
2676
|
-
var
|
|
2677
|
-
if (
|
|
2688
|
+
var gs = function(e) {
|
|
2689
|
+
if (G) {
|
|
2678
2690
|
e = e.touches ? e.touches[0] : e;
|
|
2679
|
-
var t =
|
|
2691
|
+
var t = fs(e.clientX, e.clientY);
|
|
2680
2692
|
if (t) {
|
|
2681
2693
|
var n = {};
|
|
2682
2694
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
2683
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
2695
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[H]._onDragOver(n);
|
|
2684
2696
|
}
|
|
2685
2697
|
}
|
|
2686
|
-
},
|
|
2687
|
-
|
|
2698
|
+
}, _s = function(e) {
|
|
2699
|
+
G && G.parentNode[H]._isOutsideThisEl(e.target);
|
|
2688
2700
|
};
|
|
2689
2701
|
function Q(e, t) {
|
|
2690
2702
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
2691
|
-
this.el = e, this.options = t =
|
|
2703
|
+
this.el = e, this.options = t = Wa({}, t), e[H] = this;
|
|
2692
2704
|
var n = {
|
|
2693
2705
|
group: null,
|
|
2694
2706
|
sort: !0,
|
|
@@ -2701,7 +2713,7 @@ function Q(e, t) {
|
|
|
2701
2713
|
invertedSwapThreshold: null,
|
|
2702
2714
|
removeCloneOnHide: !0,
|
|
2703
2715
|
direction: function() {
|
|
2704
|
-
return
|
|
2716
|
+
return us(e, this.options);
|
|
2705
2717
|
},
|
|
2706
2718
|
ghostClass: "sortable-ghost",
|
|
2707
2719
|
chosenClass: "sortable-chosen",
|
|
@@ -2728,75 +2740,75 @@ function Q(e, t) {
|
|
|
2728
2740
|
x: 0,
|
|
2729
2741
|
y: 0
|
|
2730
2742
|
},
|
|
2731
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
2743
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Qa,
|
|
2732
2744
|
emptyInsertThreshold: 5
|
|
2733
2745
|
};
|
|
2734
|
-
for (var r in
|
|
2735
|
-
for (var i in
|
|
2736
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
2746
|
+
for (var r in Ao.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
2747
|
+
for (var i in ps(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2748
|
+
this.nativeDraggable = !t.forceFallback && cs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Uo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Wa(this, To());
|
|
2737
2749
|
}
|
|
2738
2750
|
Q.prototype = {
|
|
2739
2751
|
constructor: Q,
|
|
2740
2752
|
_isOutsideThisEl: function(e) {
|
|
2741
|
-
!this.el.contains(e) && e !== this.el && (
|
|
2753
|
+
!this.el.contains(e) && e !== this.el && (Zo = null);
|
|
2742
2754
|
},
|
|
2743
2755
|
_getDirection: function(e, t) {
|
|
2744
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t,
|
|
2756
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
2745
2757
|
},
|
|
2746
2758
|
_onTapStart: function(e) {
|
|
2747
2759
|
if (e.cancelable) {
|
|
2748
2760
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
2749
|
-
if (
|
|
2750
|
-
if (
|
|
2761
|
+
if (Ds(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Qa && s && s.tagName.toUpperCase() === "SELECT") && (s = io(s, r.draggable, n, !1), !(s && s.animated) && Po !== s)) {
|
|
2762
|
+
if (Io = po(s), Ro = po(s, r.draggable), typeof l == "function") {
|
|
2751
2763
|
if (l.call(this, e, s, this)) {
|
|
2752
|
-
|
|
2764
|
+
W({
|
|
2753
2765
|
sortable: t,
|
|
2754
2766
|
rootEl: c,
|
|
2755
2767
|
name: "filter",
|
|
2756
2768
|
targetEl: s,
|
|
2757
2769
|
toEl: n,
|
|
2758
2770
|
fromEl: n
|
|
2759
|
-
}),
|
|
2771
|
+
}), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
2760
2772
|
return;
|
|
2761
2773
|
}
|
|
2762
2774
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
2763
|
-
if (r =
|
|
2775
|
+
if (r = io(c, r.trim(), n, !1), r) return W({
|
|
2764
2776
|
sortable: t,
|
|
2765
2777
|
rootEl: r,
|
|
2766
2778
|
name: "filter",
|
|
2767
2779
|
targetEl: s,
|
|
2768
2780
|
fromEl: n,
|
|
2769
2781
|
toEl: n
|
|
2770
|
-
}),
|
|
2782
|
+
}), U("filter", t, { evt: e }), !0;
|
|
2771
2783
|
}), l)) {
|
|
2772
2784
|
i && e.cancelable && e.preventDefault();
|
|
2773
2785
|
return;
|
|
2774
2786
|
}
|
|
2775
|
-
r.handle && !
|
|
2787
|
+
r.handle && !io(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
2776
2788
|
}
|
|
2777
2789
|
}
|
|
2778
2790
|
},
|
|
2779
2791
|
_prepareDragStart: function(e, t, n) {
|
|
2780
2792
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
2781
|
-
if (n && !
|
|
2793
|
+
if (n && !G && n.parentNode === i) {
|
|
2782
2794
|
var c = V(n);
|
|
2783
|
-
if (
|
|
2784
|
-
target:
|
|
2795
|
+
if (J = i, G = n, K = G.parentNode, No = G.nextSibling, Po = n, Bo = a.group, Q.dragged = G, Wo = {
|
|
2796
|
+
target: G,
|
|
2785
2797
|
clientX: (t || e).clientX,
|
|
2786
2798
|
clientY: (t || e).clientY
|
|
2787
|
-
},
|
|
2788
|
-
if (
|
|
2799
|
+
}, Jo = Wo.clientX - c.left, Yo = Wo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
2800
|
+
if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
2789
2801
|
r._onDrop();
|
|
2790
2802
|
return;
|
|
2791
2803
|
}
|
|
2792
|
-
r._disableDelayedDragEvents(), !
|
|
2804
|
+
r._disableDelayedDragEvents(), !Za && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
|
|
2793
2805
|
sortable: r,
|
|
2794
2806
|
name: "choose",
|
|
2795
2807
|
originalEvent: e
|
|
2796
|
-
}), z(
|
|
2808
|
+
}), z(G, a.chosenClass, !0);
|
|
2797
2809
|
}, a.ignore.split(",").forEach(function(e) {
|
|
2798
|
-
|
|
2799
|
-
}), L(o, "dragover",
|
|
2810
|
+
so(G, e.trim(), bs);
|
|
2811
|
+
}), L(o, "dragover", gs), L(o, "mousemove", gs), L(o, "touchmove", gs), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), Za && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Xa || Ya))) {
|
|
2800
2812
|
if (Q.eventCanceled) {
|
|
2801
2813
|
this._onDrop();
|
|
2802
2814
|
return;
|
|
@@ -2810,25 +2822,25 @@ Q.prototype = {
|
|
|
2810
2822
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
2811
2823
|
},
|
|
2812
2824
|
_disableDelayedDrag: function() {
|
|
2813
|
-
|
|
2825
|
+
G && bs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2814
2826
|
},
|
|
2815
2827
|
_disableDelayedDragEvents: function() {
|
|
2816
2828
|
var e = this.el.ownerDocument;
|
|
2817
2829
|
R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2818
2830
|
},
|
|
2819
2831
|
_triggerDragStart: function(e, t) {
|
|
2820
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(
|
|
2832
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(G, "dragend", this), L(J, "dragstart", this._onDragStart));
|
|
2821
2833
|
try {
|
|
2822
|
-
document.selection ?
|
|
2834
|
+
document.selection ? Os(function() {
|
|
2823
2835
|
document.selection.empty();
|
|
2824
2836
|
}) : window.getSelection().removeAllRanges();
|
|
2825
2837
|
} catch {}
|
|
2826
2838
|
},
|
|
2827
2839
|
_dragStarted: function(e, t) {
|
|
2828
|
-
if (
|
|
2829
|
-
|
|
2840
|
+
if (Vo = !1, J && G) {
|
|
2841
|
+
U("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", _s);
|
|
2830
2842
|
var n = this.options;
|
|
2831
|
-
!e && z(
|
|
2843
|
+
!e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
|
|
2832
2844
|
sortable: this,
|
|
2833
2845
|
name: "start",
|
|
2834
2846
|
originalEvent: t
|
|
@@ -2836,33 +2848,33 @@ Q.prototype = {
|
|
|
2836
2848
|
} else this._nulling();
|
|
2837
2849
|
},
|
|
2838
2850
|
_emulateDragOver: function() {
|
|
2839
|
-
if (
|
|
2840
|
-
this._lastX =
|
|
2841
|
-
for (var e = document.elementFromPoint(
|
|
2842
|
-
if (
|
|
2843
|
-
if (t[
|
|
2851
|
+
if (Go) {
|
|
2852
|
+
this._lastX = Go.clientX, this._lastY = Go.clientY, ms();
|
|
2853
|
+
for (var e = document.elementFromPoint(Go.clientX, Go.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Go.clientX, Go.clientY), e !== t);) t = e;
|
|
2854
|
+
if (G.parentNode[H]._isOutsideThisEl(e), t) do {
|
|
2855
|
+
if (t[H]) {
|
|
2844
2856
|
var n = void 0;
|
|
2845
|
-
if (n = t[
|
|
2846
|
-
clientX:
|
|
2847
|
-
clientY:
|
|
2857
|
+
if (n = t[H]._onDragOver({
|
|
2858
|
+
clientX: Go.clientX,
|
|
2859
|
+
clientY: Go.clientY,
|
|
2848
2860
|
target: e,
|
|
2849
2861
|
rootEl: t
|
|
2850
2862
|
}), n && !this.options.dragoverBubble) break;
|
|
2851
2863
|
}
|
|
2852
2864
|
e = t;
|
|
2853
2865
|
} while (t = t.parentNode);
|
|
2854
|
-
|
|
2866
|
+
hs();
|
|
2855
2867
|
}
|
|
2856
2868
|
},
|
|
2857
2869
|
_onTouchMove: function(e) {
|
|
2858
|
-
if (
|
|
2859
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a =
|
|
2860
|
-
if (!Q.active && !
|
|
2870
|
+
if (Wo) {
|
|
2871
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && oo(q, !0), o = q && a && a.a, s = q && a && a.d, c = os && Z && mo(Z), l = (i.clientX - Wo.clientX + r.x) / (o || 1) + (c ? c[0] - ns[0] : 0) / (o || 1), u = (i.clientY - Wo.clientY + r.y) / (s || 1) + (c ? c[1] - ns[1] : 0) / (s || 1);
|
|
2872
|
+
if (!Q.active && !Vo) {
|
|
2861
2873
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
2862
2874
|
this._onDragStart(e, !0);
|
|
2863
2875
|
}
|
|
2864
|
-
if (
|
|
2865
|
-
a ? (a.e += l - (
|
|
2876
|
+
if (q) {
|
|
2877
|
+
a ? (a.e += l - (Ko || 0), a.f += u - (qo || 0)) : a = {
|
|
2866
2878
|
a: 1,
|
|
2867
2879
|
b: 0,
|
|
2868
2880
|
c: 0,
|
|
@@ -2871,39 +2883,39 @@ Q.prototype = {
|
|
|
2871
2883
|
f: u
|
|
2872
2884
|
};
|
|
2873
2885
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
2874
|
-
B(
|
|
2886
|
+
B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), Ko = l, qo = u, Go = i;
|
|
2875
2887
|
}
|
|
2876
2888
|
e.cancelable && e.preventDefault();
|
|
2877
2889
|
}
|
|
2878
2890
|
},
|
|
2879
2891
|
_appendGhost: function() {
|
|
2880
|
-
if (!
|
|
2881
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
2882
|
-
if (
|
|
2892
|
+
if (!q) {
|
|
2893
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, os, !0, e), n = this.options;
|
|
2894
|
+
if (os) {
|
|
2883
2895
|
for (Z = e; B(Z, "position") === "static" && B(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
2884
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
2896
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = co()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = co(), ns = mo(Z);
|
|
2885
2897
|
}
|
|
2886
|
-
|
|
2898
|
+
q = G.cloneNode(!0), z(q, n.ghostClass, !1), z(q, n.fallbackClass, !0), z(q, n.dragClass, !0), B(q, "transition", ""), B(q, "transform", ""), B(q, "box-sizing", "border-box"), B(q, "margin", 0), B(q, "top", t.top), B(q, "left", t.left), B(q, "width", t.width), B(q, "height", t.height), B(q, "opacity", "0.8"), B(q, "position", os ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), B(q, "transform-origin", Jo / parseInt(q.style.width) * 100 + "% " + Yo / parseInt(q.style.height) * 100 + "%");
|
|
2887
2899
|
}
|
|
2888
2900
|
},
|
|
2889
2901
|
_onDragStart: function(e, t) {
|
|
2890
2902
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
2891
|
-
if (
|
|
2903
|
+
if (U("dragStart", this, { evt: e }), Q.eventCanceled) {
|
|
2892
2904
|
this._onDrop();
|
|
2893
2905
|
return;
|
|
2894
2906
|
}
|
|
2895
|
-
|
|
2896
|
-
|
|
2907
|
+
U("setupClone", this), Q.eventCanceled || (Y = Co(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Os(function() {
|
|
2908
|
+
U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
|
|
2897
2909
|
sortable: n,
|
|
2898
2910
|
name: "clone"
|
|
2899
2911
|
}));
|
|
2900
|
-
}), !t && z(
|
|
2912
|
+
}), !t && z(G, i.dragClass, !0), t ? (Ho = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), L(document, "drop", n), B(G, "transform", "translateZ(0)")), Vo = !0, n._dragStartId = Os(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), Xo = !0, Qa && B(document.body, "user-select", "none");
|
|
2901
2913
|
},
|
|
2902
2914
|
_onDragOver: function(e) {
|
|
2903
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
2904
|
-
if (
|
|
2915
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Bo === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
2916
|
+
if (rs) return;
|
|
2905
2917
|
function h(o, s) {
|
|
2906
|
-
|
|
2918
|
+
U(o, p, Va({
|
|
2907
2919
|
evt: e,
|
|
2908
2920
|
isOwner: l,
|
|
2909
2921
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2915,7 +2927,7 @@ Q.prototype = {
|
|
|
2915
2927
|
target: n,
|
|
2916
2928
|
completed: _,
|
|
2917
2929
|
onMove: function(n, i) {
|
|
2918
|
-
return
|
|
2930
|
+
return ys(J, t, G, r, n, V(n), e, i);
|
|
2919
2931
|
},
|
|
2920
2932
|
changed: v
|
|
2921
2933
|
}, s));
|
|
@@ -2924,58 +2936,58 @@ Q.prototype = {
|
|
|
2924
2936
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
2925
2937
|
}
|
|
2926
2938
|
function _(r) {
|
|
2927
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(
|
|
2939
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(G, X ? X.options.ghostClass : c.options.ghostClass, !1), z(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
2928
2940
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
2929
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n ===
|
|
2941
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Zo = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[H]._isOutsideThisEl(e.target), !r && gs(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
2930
2942
|
}
|
|
2931
2943
|
function v() {
|
|
2932
|
-
|
|
2944
|
+
Lo = po(G), zo = po(G, o.draggable), W({
|
|
2933
2945
|
sortable: p,
|
|
2934
2946
|
name: "change",
|
|
2935
2947
|
toEl: t,
|
|
2936
|
-
newIndex:
|
|
2937
|
-
newDraggableIndex:
|
|
2948
|
+
newIndex: Lo,
|
|
2949
|
+
newDraggableIndex: zo,
|
|
2938
2950
|
originalEvent: e
|
|
2939
2951
|
});
|
|
2940
2952
|
}
|
|
2941
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
2942
|
-
if (
|
|
2943
|
-
if (
|
|
2944
|
-
if (f = this._getDirection(e, n) === "vertical", r = V(
|
|
2945
|
-
if (a) return
|
|
2946
|
-
var y =
|
|
2947
|
-
if (!y ||
|
|
2948
|
-
if (y ===
|
|
2949
|
-
if (y && t === e.target && (n = y), n && (i = V(n)),
|
|
2950
|
-
} else if (y &&
|
|
2951
|
-
var b =
|
|
2952
|
-
if (b ===
|
|
2953
|
-
if (n = b, i = V(n),
|
|
2953
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = io(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
2954
|
+
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
2955
|
+
if (Ho = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = Bo.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
2956
|
+
if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), Q.eventCanceled) return m;
|
|
2957
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (No ? J.insertBefore(G, No) : J.appendChild(G)), _(!0);
|
|
2958
|
+
var y = fo(t, o.draggable);
|
|
2959
|
+
if (!y || Cs(e, f, this) && !y.animated) {
|
|
2960
|
+
if (y === G) return _(!1);
|
|
2961
|
+
if (y && t === e.target && (n = y), n && (i = V(n)), ys(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
|
|
2962
|
+
} else if (y && Ss(e, f, this)) {
|
|
2963
|
+
var b = uo(t, 0, o, !0);
|
|
2964
|
+
if (b === G) return _(!1);
|
|
2965
|
+
if (n = b, i = V(n), ys(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
2954
2966
|
} else if (n.parentNode === t) {
|
|
2955
2967
|
i = V(n);
|
|
2956
|
-
var x = 0, S, C =
|
|
2957
|
-
|
|
2968
|
+
var x = 0, S, C = G.parentNode !== t, w = !ds(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = lo(n, "top", "top") || lo(G, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
2969
|
+
Zo !== n && (S = i[T], $o = !1, es = !w && o.invertSwap || C), x = ws(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, es, Zo === n);
|
|
2958
2970
|
var O;
|
|
2959
2971
|
if (x !== 0) {
|
|
2960
|
-
var k =
|
|
2972
|
+
var k = po(G);
|
|
2961
2973
|
do
|
|
2962
|
-
k -= x, O =
|
|
2963
|
-
while (O && (B(O, "display") === "none" || O ===
|
|
2974
|
+
k -= x, O = K.children[k];
|
|
2975
|
+
while (O && (B(O, "display") === "none" || O === q));
|
|
2964
2976
|
}
|
|
2965
2977
|
if (x === 0 || O === n) return _(!1);
|
|
2966
|
-
|
|
2978
|
+
Zo = n, Qo = x;
|
|
2967
2979
|
var A = n.nextElementSibling, j = !1;
|
|
2968
2980
|
j = x === 1;
|
|
2969
|
-
var M =
|
|
2970
|
-
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1),
|
|
2981
|
+
var M = ys(J, t, G, r, n, i, e, j);
|
|
2982
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), rs = !0, setTimeout(xs, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && So(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !es && (ts = Math.abs(S - V(n)[T])), v(), _(!0);
|
|
2971
2983
|
}
|
|
2972
|
-
if (t.contains(
|
|
2984
|
+
if (t.contains(G)) return _(!1);
|
|
2973
2985
|
}
|
|
2974
2986
|
return !1;
|
|
2975
2987
|
},
|
|
2976
2988
|
_ignoreWhileAnimating: null,
|
|
2977
2989
|
_offMoveEvents: function() {
|
|
2978
|
-
R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover",
|
|
2990
|
+
R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", gs), R(document, "mousemove", gs), R(document, "touchmove", gs);
|
|
2979
2991
|
},
|
|
2980
2992
|
_offUpEvents: function() {
|
|
2981
2993
|
var e = this.el.ownerDocument;
|
|
@@ -2983,60 +2995,60 @@ Q.prototype = {
|
|
|
2983
2995
|
},
|
|
2984
2996
|
_onDrop: function(e) {
|
|
2985
2997
|
var t = this.el, n = this.options;
|
|
2986
|
-
if (
|
|
2998
|
+
if (Lo = po(G), zo = po(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Lo = po(G), zo = po(G, n.draggable), Q.eventCanceled) {
|
|
2987
2999
|
this._nulling();
|
|
2988
3000
|
return;
|
|
2989
3001
|
}
|
|
2990
|
-
|
|
3002
|
+
Vo = !1, es = !1, $o = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ks(this.cloneId), ks(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Qa && B(document.body, "user-select", ""), B(G, "transform", ""), e && (Xo && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && R(G, "dragend", this), bs(G), G.style["will-change"] = "", Xo && !Vo && z(G, X ? X.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), W({
|
|
2991
3003
|
sortable: this,
|
|
2992
3004
|
name: "unchoose",
|
|
2993
|
-
toEl:
|
|
3005
|
+
toEl: K,
|
|
2994
3006
|
newIndex: null,
|
|
2995
3007
|
newDraggableIndex: null,
|
|
2996
3008
|
originalEvent: e
|
|
2997
|
-
}),
|
|
3009
|
+
}), J === K ? Lo !== Io && Lo >= 0 && (W({
|
|
2998
3010
|
sortable: this,
|
|
2999
3011
|
name: "update",
|
|
3000
|
-
toEl:
|
|
3012
|
+
toEl: K,
|
|
3001
3013
|
originalEvent: e
|
|
3002
|
-
}),
|
|
3014
|
+
}), W({
|
|
3003
3015
|
sortable: this,
|
|
3004
3016
|
name: "sort",
|
|
3005
|
-
toEl:
|
|
3017
|
+
toEl: K,
|
|
3006
3018
|
originalEvent: e
|
|
3007
|
-
})) : (
|
|
3008
|
-
rootEl:
|
|
3019
|
+
})) : (Lo >= 0 && (W({
|
|
3020
|
+
rootEl: K,
|
|
3009
3021
|
name: "add",
|
|
3010
|
-
toEl:
|
|
3011
|
-
fromEl:
|
|
3022
|
+
toEl: K,
|
|
3023
|
+
fromEl: J,
|
|
3012
3024
|
originalEvent: e
|
|
3013
|
-
}),
|
|
3025
|
+
}), W({
|
|
3014
3026
|
sortable: this,
|
|
3015
3027
|
name: "remove",
|
|
3016
|
-
toEl:
|
|
3028
|
+
toEl: K,
|
|
3017
3029
|
originalEvent: e
|
|
3018
|
-
}),
|
|
3019
|
-
rootEl:
|
|
3030
|
+
}), W({
|
|
3031
|
+
rootEl: K,
|
|
3020
3032
|
name: "sort",
|
|
3021
|
-
toEl:
|
|
3022
|
-
fromEl:
|
|
3033
|
+
toEl: K,
|
|
3034
|
+
fromEl: J,
|
|
3023
3035
|
originalEvent: e
|
|
3024
|
-
}),
|
|
3036
|
+
}), W({
|
|
3025
3037
|
sortable: this,
|
|
3026
3038
|
name: "sort",
|
|
3027
|
-
toEl:
|
|
3039
|
+
toEl: K,
|
|
3028
3040
|
originalEvent: e
|
|
3029
|
-
})), X && X.save()), Q.active && ((
|
|
3041
|
+
})), X && X.save()), Q.active && ((Lo == null || Lo === -1) && (Lo = Io, zo = Ro), W({
|
|
3030
3042
|
sortable: this,
|
|
3031
3043
|
name: "end",
|
|
3032
|
-
toEl:
|
|
3044
|
+
toEl: K,
|
|
3033
3045
|
originalEvent: e
|
|
3034
3046
|
}), this.save()))), this._nulling();
|
|
3035
3047
|
},
|
|
3036
3048
|
_nulling: function() {
|
|
3037
|
-
|
|
3049
|
+
U("nulling", this), J = G = K = q = No = Y = Po = Fo = Wo = Go = Xo = Lo = zo = Io = Ro = Zo = Qo = X = Bo = Q.dragged = Q.ghost = Q.clone = Q.active = null, is.forEach(function(e) {
|
|
3038
3050
|
e.checked = !0;
|
|
3039
|
-
}),
|
|
3051
|
+
}), is.length = Ko = qo = 0;
|
|
3040
3052
|
},
|
|
3041
3053
|
handleEvent: function(e) {
|
|
3042
3054
|
switch (e.type) {
|
|
@@ -3046,20 +3058,20 @@ Q.prototype = {
|
|
|
3046
3058
|
break;
|
|
3047
3059
|
case "dragenter":
|
|
3048
3060
|
case "dragover":
|
|
3049
|
-
|
|
3061
|
+
G && (this._onDragOver(e), vs(e));
|
|
3050
3062
|
break;
|
|
3051
3063
|
case "selectstart": e.preventDefault();
|
|
3052
3064
|
}
|
|
3053
3065
|
},
|
|
3054
3066
|
toArray: function() {
|
|
3055
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
3067
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], io(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Es(t));
|
|
3056
3068
|
return e;
|
|
3057
3069
|
},
|
|
3058
3070
|
sort: function(e, t) {
|
|
3059
3071
|
var n = {}, r = this.el;
|
|
3060
3072
|
this.toArray().forEach(function(e, t) {
|
|
3061
3073
|
var i = r.children[t];
|
|
3062
|
-
|
|
3074
|
+
io(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
3063
3075
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
3064
3076
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
3065
3077
|
}), t && this.animateAll();
|
|
@@ -3069,25 +3081,25 @@ Q.prototype = {
|
|
|
3069
3081
|
e && e.set && e.set(this);
|
|
3070
3082
|
},
|
|
3071
3083
|
closest: function(e, t) {
|
|
3072
|
-
return
|
|
3084
|
+
return io(e, t || this.options.draggable, this.el, !1);
|
|
3073
3085
|
},
|
|
3074
3086
|
option: function(e, t) {
|
|
3075
3087
|
var n = this.options;
|
|
3076
3088
|
if (t === void 0) return n[e];
|
|
3077
|
-
var r =
|
|
3078
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
3089
|
+
var r = Ao.modifyOption(this, e, t);
|
|
3090
|
+
n[e] = r === void 0 ? t : r, e === "group" && ps(n);
|
|
3079
3091
|
},
|
|
3080
3092
|
destroy: function() {
|
|
3081
|
-
|
|
3093
|
+
U("destroy", this);
|
|
3082
3094
|
var e = this.el;
|
|
3083
|
-
e[
|
|
3095
|
+
e[H] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
3084
3096
|
e.removeAttribute("draggable");
|
|
3085
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
3097
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Uo.splice(Uo.indexOf(this.el), 1), this.el = e = null;
|
|
3086
3098
|
},
|
|
3087
3099
|
_hideClone: function() {
|
|
3088
|
-
if (!
|
|
3089
|
-
if (
|
|
3090
|
-
B(
|
|
3100
|
+
if (!Fo) {
|
|
3101
|
+
if (U("hideClone", this), Q.eventCanceled) return;
|
|
3102
|
+
B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Fo = !0;
|
|
3091
3103
|
}
|
|
3092
3104
|
},
|
|
3093
3105
|
_showClone: function(e) {
|
|
@@ -3095,99 +3107,99 @@ Q.prototype = {
|
|
|
3095
3107
|
this._hideClone();
|
|
3096
3108
|
return;
|
|
3097
3109
|
}
|
|
3098
|
-
if (
|
|
3099
|
-
if (
|
|
3100
|
-
|
|
3110
|
+
if (Fo) {
|
|
3111
|
+
if (U("showClone", this), Q.eventCanceled) return;
|
|
3112
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : No ? J.insertBefore(Y, No) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), Fo = !1;
|
|
3101
3113
|
}
|
|
3102
3114
|
}
|
|
3103
3115
|
};
|
|
3104
|
-
function
|
|
3116
|
+
function vs(e) {
|
|
3105
3117
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
3106
3118
|
}
|
|
3107
|
-
function
|
|
3108
|
-
var c, l = e[
|
|
3109
|
-
return window.CustomEvent && !
|
|
3119
|
+
function ys(e, t, n, r, i, a, o, s) {
|
|
3120
|
+
var c, l = e[H], u = l.options.onMove, d;
|
|
3121
|
+
return window.CustomEvent && !Ya && !Xa ? c = new CustomEvent("move", {
|
|
3110
3122
|
bubbles: !0,
|
|
3111
3123
|
cancelable: !0
|
|
3112
3124
|
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || V(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
3113
3125
|
}
|
|
3114
|
-
function
|
|
3126
|
+
function bs(e) {
|
|
3115
3127
|
e.draggable = !1;
|
|
3116
3128
|
}
|
|
3117
|
-
function
|
|
3118
|
-
|
|
3129
|
+
function xs() {
|
|
3130
|
+
rs = !1;
|
|
3119
3131
|
}
|
|
3120
|
-
function
|
|
3121
|
-
var r = V(
|
|
3132
|
+
function Ss(e, t, n) {
|
|
3133
|
+
var r = V(uo(n.el, 0, n.options, !0)), i = wo(n.el, n.options, q), a = 10;
|
|
3122
3134
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
3123
3135
|
}
|
|
3124
|
-
function
|
|
3125
|
-
var r = V(
|
|
3136
|
+
function Cs(e, t, n) {
|
|
3137
|
+
var r = V(fo(n.el, n.options.draggable)), i = wo(n.el, n.options, q), a = 10;
|
|
3126
3138
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
3127
3139
|
}
|
|
3128
|
-
function
|
|
3140
|
+
function ws(e, t, n, r, i, a, o, s) {
|
|
3129
3141
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
3130
3142
|
if (!o) {
|
|
3131
|
-
if (s &&
|
|
3132
|
-
if (
|
|
3133
|
-
else if (
|
|
3134
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
3143
|
+
if (s && ts < l * i) {
|
|
3144
|
+
if (!$o && (Qo === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && ($o = !0), $o) f = !0;
|
|
3145
|
+
else if (Qo === 1 ? c < u + ts : c > d - ts) return -Qo;
|
|
3146
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Ts(t);
|
|
3135
3147
|
}
|
|
3136
3148
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
3137
3149
|
}
|
|
3138
|
-
function
|
|
3139
|
-
return
|
|
3150
|
+
function Ts(e) {
|
|
3151
|
+
return po(G) < po(e) ? 1 : -1;
|
|
3140
3152
|
}
|
|
3141
|
-
function
|
|
3153
|
+
function Es(e) {
|
|
3142
3154
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
3143
3155
|
return r.toString(36);
|
|
3144
3156
|
}
|
|
3145
|
-
function
|
|
3146
|
-
|
|
3157
|
+
function Ds(e) {
|
|
3158
|
+
is.length = 0;
|
|
3147
3159
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
3148
3160
|
var r = t[n];
|
|
3149
|
-
r.checked &&
|
|
3161
|
+
r.checked && is.push(r);
|
|
3150
3162
|
}
|
|
3151
3163
|
}
|
|
3152
|
-
function
|
|
3164
|
+
function Os(e) {
|
|
3153
3165
|
return setTimeout(e, 0);
|
|
3154
3166
|
}
|
|
3155
|
-
function
|
|
3167
|
+
function ks(e) {
|
|
3156
3168
|
return clearTimeout(e);
|
|
3157
3169
|
}
|
|
3158
|
-
|
|
3159
|
-
(Q.active ||
|
|
3170
|
+
as && L(document, "touchmove", function(e) {
|
|
3171
|
+
(Q.active || Vo) && e.cancelable && e.preventDefault();
|
|
3160
3172
|
}), Q.utils = {
|
|
3161
3173
|
on: L,
|
|
3162
3174
|
off: R,
|
|
3163
3175
|
css: B,
|
|
3164
|
-
find:
|
|
3176
|
+
find: so,
|
|
3165
3177
|
is: function(e, t) {
|
|
3166
|
-
return !!
|
|
3178
|
+
return !!io(e, t, e, !1);
|
|
3167
3179
|
},
|
|
3168
|
-
extend:
|
|
3169
|
-
throttle:
|
|
3170
|
-
closest:
|
|
3180
|
+
extend: _o,
|
|
3181
|
+
throttle: bo,
|
|
3182
|
+
closest: io,
|
|
3171
3183
|
toggleClass: z,
|
|
3172
|
-
clone:
|
|
3173
|
-
index:
|
|
3174
|
-
nextTick:
|
|
3175
|
-
cancelNextTick:
|
|
3176
|
-
detectDirection:
|
|
3177
|
-
getChild:
|
|
3184
|
+
clone: Co,
|
|
3185
|
+
index: po,
|
|
3186
|
+
nextTick: Os,
|
|
3187
|
+
cancelNextTick: ks,
|
|
3188
|
+
detectDirection: us,
|
|
3189
|
+
getChild: uo
|
|
3178
3190
|
}, Q.get = function(e) {
|
|
3179
|
-
return e[
|
|
3191
|
+
return e[H];
|
|
3180
3192
|
}, Q.mount = function() {
|
|
3181
3193
|
var e = [...arguments];
|
|
3182
3194
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
3183
3195
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
3184
|
-
e.utils && (Q.utils =
|
|
3196
|
+
e.utils && (Q.utils = Va(Va({}, Q.utils), e.utils)), Ao.mount(e);
|
|
3185
3197
|
});
|
|
3186
3198
|
}, Q.create = function(e, t) {
|
|
3187
3199
|
return new Q(e, t);
|
|
3188
|
-
}, Q.version =
|
|
3189
|
-
var $ = [],
|
|
3190
|
-
function
|
|
3200
|
+
}, Q.version = qa;
|
|
3201
|
+
var $ = [], As, js, Ms = !1, Ns, Ps, Fs, Is;
|
|
3202
|
+
function Ls() {
|
|
3191
3203
|
function e() {
|
|
3192
3204
|
for (var e in this.defaults = {
|
|
3193
3205
|
scroll: !0,
|
|
@@ -3207,63 +3219,63 @@ function Ns() {
|
|
|
3207
3219
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
3208
3220
|
},
|
|
3209
3221
|
drop: function() {
|
|
3210
|
-
this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
3222
|
+
this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), zs(), Rs(), xo();
|
|
3211
3223
|
},
|
|
3212
3224
|
nulling: function() {
|
|
3213
|
-
|
|
3225
|
+
Fs = js = As = Ms = Is = Ns = Ps = null, $.length = 0;
|
|
3214
3226
|
},
|
|
3215
3227
|
_handleFallbackAutoScroll: function(e) {
|
|
3216
3228
|
this._handleAutoScroll(e, !0);
|
|
3217
3229
|
},
|
|
3218
3230
|
_handleAutoScroll: function(e, t) {
|
|
3219
3231
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
3220
|
-
if (
|
|
3221
|
-
|
|
3222
|
-
var o =
|
|
3223
|
-
|
|
3224
|
-
var a =
|
|
3225
|
-
a !== o && (o = a,
|
|
3226
|
-
}, 10),
|
|
3232
|
+
if (Fs = e, t || this.options.forceAutoScrollFallback || Xa || Ya || Qa) {
|
|
3233
|
+
Bs(e, this.options, a, t);
|
|
3234
|
+
var o = go(a, !0);
|
|
3235
|
+
Ms && (!Is || r !== Ns || i !== Ps) && (Is && zs(), Is = setInterval(function() {
|
|
3236
|
+
var a = go(document.elementFromPoint(r, i), !0);
|
|
3237
|
+
a !== o && (o = a, Rs()), Bs(e, n.options, a, t);
|
|
3238
|
+
}, 10), Ns = r, Ps = i);
|
|
3227
3239
|
} else {
|
|
3228
|
-
if (!this.options.bubbleScroll ||
|
|
3229
|
-
|
|
3240
|
+
if (!this.options.bubbleScroll || go(a, !0) === co()) {
|
|
3241
|
+
Rs();
|
|
3230
3242
|
return;
|
|
3231
3243
|
}
|
|
3232
|
-
|
|
3244
|
+
Bs(e, this.options, go(a, !1), !1);
|
|
3233
3245
|
}
|
|
3234
3246
|
}
|
|
3235
|
-
},
|
|
3247
|
+
}, Wa(e, {
|
|
3236
3248
|
pluginName: "scroll",
|
|
3237
3249
|
initializeByDefault: !0
|
|
3238
3250
|
});
|
|
3239
3251
|
}
|
|
3240
|
-
function
|
|
3252
|
+
function Rs() {
|
|
3241
3253
|
$.forEach(function(e) {
|
|
3242
3254
|
clearInterval(e.pid);
|
|
3243
3255
|
}), $ = [];
|
|
3244
3256
|
}
|
|
3245
|
-
function
|
|
3246
|
-
clearInterval(
|
|
3257
|
+
function zs() {
|
|
3258
|
+
clearInterval(Is);
|
|
3247
3259
|
}
|
|
3248
|
-
var
|
|
3260
|
+
var Bs = bo(function(e, t, n, r) {
|
|
3249
3261
|
if (t.scroll) {
|
|
3250
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
3251
|
-
|
|
3252
|
-
var d = 0, f =
|
|
3262
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = co(), l = !1, u;
|
|
3263
|
+
js !== n && (js = n, Rs(), As = t.scroll, u = t.scrollFn, As === !0 && (As = go(n, !0)));
|
|
3264
|
+
var d = 0, f = As;
|
|
3253
3265
|
do {
|
|
3254
3266
|
var p = f, m = V(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = B(p), E = p.scrollLeft, D = p.scrollTop;
|
|
3255
3267
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
3256
3268
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
3257
3269
|
if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
|
|
3258
3270
|
($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
3259
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
3271
|
+
r && this.layer === 0 && Q.active._onTouchMove(Fs);
|
|
3260
3272
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
3261
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
3273
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[H], n, t, e, Fs, $[this.layer].el) !== "continue" || So($[this.layer].el, n, t);
|
|
3262
3274
|
}.bind({ layer: d }), 24))), d++;
|
|
3263
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
3264
|
-
|
|
3275
|
+
} while (t.bubbleScroll && f !== c && (f = go(f, !1)));
|
|
3276
|
+
Ms = l;
|
|
3265
3277
|
}
|
|
3266
|
-
}, 30),
|
|
3278
|
+
}, 30), Vs = function(e) {
|
|
3267
3279
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
3268
3280
|
if (t) {
|
|
3269
3281
|
var c = n || i;
|
|
@@ -3275,8 +3287,8 @@ var Is = go(function(e, t, n, r) {
|
|
|
3275
3287
|
}));
|
|
3276
3288
|
}
|
|
3277
3289
|
};
|
|
3278
|
-
function
|
|
3279
|
-
|
|
3290
|
+
function Hs() {}
|
|
3291
|
+
Hs.prototype = {
|
|
3280
3292
|
startIndex: null,
|
|
3281
3293
|
dragStart: function(e) {
|
|
3282
3294
|
var t = e.oldDraggableIndex;
|
|
@@ -3285,72 +3297,72 @@ Rs.prototype = {
|
|
|
3285
3297
|
onSpill: function(e) {
|
|
3286
3298
|
var t = e.dragEl, n = e.putSortable;
|
|
3287
3299
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
3288
|
-
var r =
|
|
3300
|
+
var r = uo(this.sortable.el, this.startIndex, this.options);
|
|
3289
3301
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
3290
3302
|
},
|
|
3291
|
-
drop:
|
|
3292
|
-
},
|
|
3293
|
-
function
|
|
3294
|
-
|
|
3303
|
+
drop: Vs
|
|
3304
|
+
}, Wa(Hs, { pluginName: "revertOnSpill" });
|
|
3305
|
+
function Us() {}
|
|
3306
|
+
Us.prototype = {
|
|
3295
3307
|
onSpill: function(e) {
|
|
3296
3308
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
3297
3309
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
3298
3310
|
},
|
|
3299
|
-
drop:
|
|
3300
|
-
},
|
|
3301
|
-
function
|
|
3311
|
+
drop: Vs
|
|
3312
|
+
}, Wa(Us, { pluginName: "removeOnSpill" }), Q.mount(new Ls()), Q.mount(Us, Hs);
|
|
3313
|
+
function Ws(e) {
|
|
3302
3314
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3303
3315
|
}
|
|
3304
|
-
function
|
|
3316
|
+
function Gs(e) {
|
|
3305
3317
|
te() && O(e);
|
|
3306
3318
|
}
|
|
3307
|
-
function
|
|
3319
|
+
function Ks(e) {
|
|
3308
3320
|
te() ? d(e) : a(e);
|
|
3309
3321
|
}
|
|
3310
|
-
var
|
|
3311
|
-
function
|
|
3312
|
-
|
|
3322
|
+
var qs = null, Js = null;
|
|
3323
|
+
function Ys(e = null, t = null) {
|
|
3324
|
+
qs = e, Js = t;
|
|
3313
3325
|
}
|
|
3314
|
-
function
|
|
3326
|
+
function Xs() {
|
|
3315
3327
|
return {
|
|
3316
|
-
data:
|
|
3317
|
-
clonedData:
|
|
3328
|
+
data: qs,
|
|
3329
|
+
clonedData: Js
|
|
3318
3330
|
};
|
|
3319
3331
|
}
|
|
3320
|
-
var
|
|
3321
|
-
function
|
|
3332
|
+
var Zs = Symbol("cloneElement");
|
|
3333
|
+
function Qs(...e) {
|
|
3322
3334
|
let t = te()?.proxy, n = null, r = e[0], [, i, o] = e;
|
|
3323
3335
|
Array.isArray(y(i)) || (o = i, i = null);
|
|
3324
|
-
let s = null, { immediate: l = !0, clone: u =
|
|
3336
|
+
let s = null, { immediate: l = !0, clone: u = Ws, forceFallback: d, fallbackOnBody: p, customUpdate: m } = y(o) ?? {};
|
|
3325
3337
|
function h(e) {
|
|
3326
3338
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
3327
3339
|
n = d && !p ? o.slice(0, -1) : o;
|
|
3328
3340
|
let s = y(y(i)?.[r]), c = u(s);
|
|
3329
|
-
|
|
3341
|
+
Ys(s, c), a[Zs] = c;
|
|
3330
3342
|
}
|
|
3331
3343
|
function g(e) {
|
|
3332
|
-
let t = e.item[
|
|
3333
|
-
if (!
|
|
3334
|
-
if (
|
|
3344
|
+
let t = e.item[Zs];
|
|
3345
|
+
if (!ka(t)) {
|
|
3346
|
+
if (Ma(e.item), c(i)) {
|
|
3335
3347
|
let n = [...y(i)];
|
|
3336
|
-
i.value =
|
|
3348
|
+
i.value = Oa(n, e.newDraggableIndex, t);
|
|
3337
3349
|
return;
|
|
3338
3350
|
}
|
|
3339
|
-
|
|
3351
|
+
Oa(y(i), e.newDraggableIndex, t);
|
|
3340
3352
|
}
|
|
3341
3353
|
}
|
|
3342
3354
|
function _(e) {
|
|
3343
3355
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
3344
|
-
if (
|
|
3345
|
-
|
|
3356
|
+
if (ja(t, n, r), o === "clone") {
|
|
3357
|
+
Ma(s);
|
|
3346
3358
|
return;
|
|
3347
3359
|
}
|
|
3348
3360
|
if (c(i)) {
|
|
3349
3361
|
let e = [...y(i)];
|
|
3350
|
-
i.value =
|
|
3362
|
+
i.value = Da(e, a);
|
|
3351
3363
|
return;
|
|
3352
3364
|
}
|
|
3353
|
-
|
|
3365
|
+
Da(y(i), a);
|
|
3354
3366
|
}
|
|
3355
3367
|
function v(e) {
|
|
3356
3368
|
if (m) {
|
|
@@ -3358,12 +3370,12 @@ function Js(...e) {
|
|
|
3358
3370
|
return;
|
|
3359
3371
|
}
|
|
3360
3372
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
3361
|
-
if (
|
|
3373
|
+
if (Ma(n), ja(t, n, r), c(i)) {
|
|
3362
3374
|
let e = [...y(i)];
|
|
3363
|
-
i.value =
|
|
3375
|
+
i.value = wa(e, a, o);
|
|
3364
3376
|
return;
|
|
3365
3377
|
}
|
|
3366
|
-
|
|
3378
|
+
wa(y(i), a, o);
|
|
3367
3379
|
}
|
|
3368
3380
|
function b(e) {
|
|
3369
3381
|
let { newIndex: t, oldIndex: r, from: i, to: o } = e, s = null, c = t === r && i === o;
|
|
@@ -3382,7 +3394,7 @@ function Js(...e) {
|
|
|
3382
3394
|
n = null;
|
|
3383
3395
|
}
|
|
3384
3396
|
a(() => {
|
|
3385
|
-
if (
|
|
3397
|
+
if (Ys(), s) throw s;
|
|
3386
3398
|
});
|
|
3387
3399
|
}
|
|
3388
3400
|
let x = {
|
|
@@ -3394,19 +3406,19 @@ function Js(...e) {
|
|
|
3394
3406
|
};
|
|
3395
3407
|
function S(e) {
|
|
3396
3408
|
let n = y(r);
|
|
3397
|
-
return e ||=
|
|
3409
|
+
return e ||= Aa(n) ? Na(n, t?.$el) : n, e && !Ia(e) && (e = e.$el), e || Ca("Root element not found"), e;
|
|
3398
3410
|
}
|
|
3399
3411
|
function C() {
|
|
3400
|
-
let e = y(o) ?? {}, { immediate: t, clone: n } = e, r =
|
|
3401
|
-
return
|
|
3402
|
-
|
|
3403
|
-
}),
|
|
3412
|
+
let e = y(o) ?? {}, { immediate: t, clone: n } = e, r = ba(e, ["immediate", "clone"]);
|
|
3413
|
+
return La(r, (e, t) => {
|
|
3414
|
+
Ra(e) && (r[e] = (e, ...n) => (za(e, Xs()), t(e, ...n)));
|
|
3415
|
+
}), Fa(i === null ? {} : x, r);
|
|
3404
3416
|
}
|
|
3405
3417
|
let w = (e) => {
|
|
3406
3418
|
e = S(e), s && T.destroy(), s = new Q(e, C());
|
|
3407
3419
|
};
|
|
3408
3420
|
f(() => o, () => {
|
|
3409
|
-
s &&
|
|
3421
|
+
s && La(C(), (e, t) => {
|
|
3410
3422
|
s?.option(e, t);
|
|
3411
3423
|
});
|
|
3412
3424
|
}, { deep: !0 });
|
|
@@ -3419,15 +3431,15 @@ function Js(...e) {
|
|
|
3419
3431
|
toArray: () => s?.toArray(),
|
|
3420
3432
|
closest: (...e) => s?.closest(...e)
|
|
3421
3433
|
};
|
|
3422
|
-
return
|
|
3434
|
+
return Ks(() => {
|
|
3423
3435
|
l && w();
|
|
3424
|
-
}),
|
|
3436
|
+
}), Gs(T.destroy), ya({
|
|
3425
3437
|
start: w,
|
|
3426
3438
|
pause: () => T?.option("disabled", !0),
|
|
3427
3439
|
resume: () => T?.option("disabled", !1)
|
|
3428
3440
|
}, T);
|
|
3429
3441
|
}
|
|
3430
|
-
var
|
|
3442
|
+
var $s = [
|
|
3431
3443
|
"update",
|
|
3432
3444
|
"start",
|
|
3433
3445
|
"add",
|
|
@@ -3440,7 +3452,7 @@ var Ys = [
|
|
|
3440
3452
|
"clone",
|
|
3441
3453
|
"move",
|
|
3442
3454
|
"change"
|
|
3443
|
-
],
|
|
3455
|
+
], ec = [
|
|
3444
3456
|
"clone",
|
|
3445
3457
|
"animation",
|
|
3446
3458
|
"ghostClass",
|
|
@@ -3484,43 +3496,43 @@ var Ys = [
|
|
|
3484
3496
|
"tag",
|
|
3485
3497
|
"target",
|
|
3486
3498
|
"customUpdate",
|
|
3487
|
-
|
|
3488
|
-
],
|
|
3499
|
+
...$s.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
3500
|
+
], tc = F({
|
|
3489
3501
|
name: "VueDraggable",
|
|
3490
3502
|
model: {
|
|
3491
3503
|
prop: "modelValue",
|
|
3492
3504
|
event: "update:modelValue"
|
|
3493
3505
|
},
|
|
3494
|
-
props:
|
|
3495
|
-
emits: ["update:modelValue",
|
|
3506
|
+
props: ec,
|
|
3507
|
+
emits: ["update:modelValue", ...$s],
|
|
3496
3508
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
3497
|
-
let a =
|
|
3509
|
+
let a = $s.reduce((e, t) => {
|
|
3498
3510
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
3499
3511
|
return e[r] = (...e) => n(t, ...e), e;
|
|
3500
3512
|
}, {}), o = N(() => {
|
|
3501
|
-
let t = j(e), { modelValue: n } = t, r =
|
|
3513
|
+
let t = j(e), { modelValue: n } = t, r = ba(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
3502
3514
|
let r = y(n);
|
|
3503
3515
|
return r !== void 0 && (e[t] = r), e;
|
|
3504
3516
|
}, {});
|
|
3505
|
-
return
|
|
3517
|
+
return ya(ya({}, a), Ea(ya(ya({}, i), o)));
|
|
3506
3518
|
}), s = N({
|
|
3507
3519
|
get: () => e.modelValue,
|
|
3508
3520
|
set: (e) => n("update:modelValue", e)
|
|
3509
|
-
}), c = _(), l = g(
|
|
3521
|
+
}), c = _(), l = g(Qs(e.target || c, s, o));
|
|
3510
3522
|
return r(l), () => b(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
3511
3523
|
}
|
|
3512
|
-
}),
|
|
3524
|
+
}), nc = {
|
|
3513
3525
|
mounted: "mounted",
|
|
3514
3526
|
unmounted: "unmounted"
|
|
3515
3527
|
};
|
|
3516
|
-
|
|
3528
|
+
nc.mounted, nc.unmounted;
|
|
3517
3529
|
//#endregion
|
|
3518
3530
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3519
|
-
var
|
|
3531
|
+
var rc = { class: "tpl:w-full" }, ic = {
|
|
3520
3532
|
key: 0,
|
|
3521
3533
|
"data-testid": "section-drop-hint",
|
|
3522
3534
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
3523
|
-
},
|
|
3535
|
+
}, ac = /* @__PURE__ */ F({
|
|
3524
3536
|
__name: "SectionBlock",
|
|
3525
3537
|
props: {
|
|
3526
3538
|
block: {},
|
|
@@ -3528,13 +3540,13 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3528
3540
|
},
|
|
3529
3541
|
setup(e) {
|
|
3530
3542
|
let i = {
|
|
3531
|
-
title:
|
|
3532
|
-
paragraph:
|
|
3533
|
-
image:
|
|
3534
|
-
button:
|
|
3535
|
-
divider:
|
|
3536
|
-
custom:
|
|
3537
|
-
}, a = e, { t: s } =
|
|
3543
|
+
title: fa,
|
|
3544
|
+
paragraph: Zi,
|
|
3545
|
+
image: Ri,
|
|
3546
|
+
button: Fr,
|
|
3547
|
+
divider: yi,
|
|
3548
|
+
custom: _i
|
|
3549
|
+
}, a = e, { t: s } = un(), c = ht(Kt, "SectionBlock"), u = p(Gt, null), d = p(rn, null), f = p(Xt, {}), h = p(nn, null);
|
|
3538
3550
|
function g(e) {
|
|
3539
3551
|
let t = f.savedBlocks;
|
|
3540
3552
|
if (t?.isPicking.value) {
|
|
@@ -3569,7 +3581,7 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3569
3581
|
r[e] = n, c.updateBlock(a.block.id, { children: r });
|
|
3570
3582
|
}
|
|
3571
3583
|
function E(e) {
|
|
3572
|
-
return
|
|
3584
|
+
return Dr(e, d, i);
|
|
3573
3585
|
}
|
|
3574
3586
|
function O(e, t) {
|
|
3575
3587
|
e.type === "custom" && c.updateBlock(e.id, {
|
|
@@ -3577,16 +3589,16 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3577
3589
|
dataSourceFetched: t.dataSourceFetched
|
|
3578
3590
|
});
|
|
3579
3591
|
}
|
|
3580
|
-
return (i, a) => (t(), S("div",
|
|
3592
|
+
return (i, a) => (t(), S("div", rc, [x("div", { class: k(["tpl:flex tpl:gap-0", { "tpl:flex-col": b.value }]) }, [(t(!0), S(M, null, l(v.value, (i, a) => (t(), S("div", {
|
|
3581
3593
|
key: a,
|
|
3582
3594
|
class: k(["tpl:relative tpl:min-h-[60px] tpl:rounded", w(a).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
3583
3595
|
style: n({ width: b.value ? "100%" : _.value[a] })
|
|
3584
|
-
}, [C(y(
|
|
3596
|
+
}, [C(y(tc), {
|
|
3585
3597
|
"model-value": w(a),
|
|
3586
3598
|
group: {
|
|
3587
3599
|
name: "blocks",
|
|
3588
3600
|
pull: !0,
|
|
3589
|
-
put: (e, t, n) => y(
|
|
3601
|
+
put: (e, t, n) => y(pa)(n)
|
|
3590
3602
|
},
|
|
3591
3603
|
animation: 150,
|
|
3592
3604
|
"ghost-class": "tpl-ghost",
|
|
@@ -3599,7 +3611,7 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3599
3611
|
class: "tpl:min-h-[60px]",
|
|
3600
3612
|
"onUpdate:modelValue": (e) => T(a, e)
|
|
3601
3613
|
}, {
|
|
3602
|
-
default: r(() => [(t(!0), S(M, null, l(w(a), (n) => m((t(), S("div", { key: n.id }, [C(
|
|
3614
|
+
default: r(() => [(t(!0), S(M, null, l(w(a), (n) => m((t(), S("div", { key: n.id }, [C(ua, {
|
|
3603
3615
|
block: n,
|
|
3604
3616
|
"is-selected": y(c).state.selectedBlockId === n.id,
|
|
3605
3617
|
viewport: e.viewport,
|
|
@@ -3631,13 +3643,13 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3631
3643
|
"model-value",
|
|
3632
3644
|
"group",
|
|
3633
3645
|
"onUpdate:modelValue"
|
|
3634
|
-
]), w(a).length === 0 ? (t(), S("div",
|
|
3646
|
+
]), w(a).length === 0 ? (t(), S("div", ic, [x("span", null, D(y(s).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
|
|
3635
3647
|
}
|
|
3636
|
-
}),
|
|
3648
|
+
}), oc = [
|
|
3637
3649
|
"width",
|
|
3638
3650
|
"height",
|
|
3639
3651
|
"fill"
|
|
3640
|
-
],
|
|
3652
|
+
], sc = ["d"], cc = /* @__PURE__ */ F({
|
|
3641
3653
|
__name: "SocialIconSvg",
|
|
3642
3654
|
props: {
|
|
3643
3655
|
platform: {},
|
|
@@ -3645,7 +3657,7 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3645
3657
|
iconSize: {}
|
|
3646
3658
|
},
|
|
3647
3659
|
setup(e) {
|
|
3648
|
-
let r = e, i = N(() =>
|
|
3660
|
+
let r = e, i = N(() => tt[r.platform]), a = N(() => it[r.iconSize]), o = N(() => {
|
|
3649
3661
|
let e = {
|
|
3650
3662
|
display: "inline-flex",
|
|
3651
3663
|
alignItems: "center",
|
|
@@ -3689,25 +3701,25 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3689
3701
|
viewBox: "0 0 24 24",
|
|
3690
3702
|
fill: c.value,
|
|
3691
3703
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3692
|
-
}, [x("path", { d: i.value.path }, null, 8,
|
|
3704
|
+
}, [x("path", { d: i.value.path }, null, 8, sc)], 8, oc))], 4));
|
|
3693
3705
|
}
|
|
3694
|
-
}),
|
|
3706
|
+
}), lc = { class: "tpl:w-full" }, uc = ["href"], dc = {
|
|
3695
3707
|
key: 1,
|
|
3696
3708
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3697
|
-
},
|
|
3709
|
+
}, fc = /* @__PURE__ */ F({
|
|
3698
3710
|
__name: "SocialIconsBlock",
|
|
3699
3711
|
props: {
|
|
3700
3712
|
block: {},
|
|
3701
3713
|
viewport: {}
|
|
3702
3714
|
},
|
|
3703
3715
|
setup(e) {
|
|
3704
|
-
let r = e, { t: i } =
|
|
3716
|
+
let r = e, { t: i } = un(), a = N(() => ({
|
|
3705
3717
|
display: "flex",
|
|
3706
3718
|
flexWrap: "wrap",
|
|
3707
3719
|
gap: `${r.block.spacing}px`,
|
|
3708
3720
|
justifyContent: r.block.align === "left" ? "flex-start" : r.block.align === "right" ? "flex-end" : "center"
|
|
3709
3721
|
})), o = N(() => r.block.icons.length > 0);
|
|
3710
|
-
return (r, s) => (t(), S("div",
|
|
3722
|
+
return (r, s) => (t(), S("div", lc, [o.value ? (t(), S("div", {
|
|
3711
3723
|
key: 0,
|
|
3712
3724
|
style: n(a.value)
|
|
3713
3725
|
}, [(t(!0), S(M, null, l(e.block.icons, (n) => (t(), S("a", {
|
|
@@ -3715,7 +3727,7 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3715
3727
|
href: n.url || "#",
|
|
3716
3728
|
class: "tpl:cursor-default",
|
|
3717
3729
|
onClick: s[0] ||= I(() => {}, ["prevent"])
|
|
3718
|
-
}, [C(
|
|
3730
|
+
}, [C(cc, {
|
|
3719
3731
|
platform: n.platform,
|
|
3720
3732
|
"icon-style": e.block.iconStyle,
|
|
3721
3733
|
"icon-size": e.block.iconSize
|
|
@@ -3723,44 +3735,44 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3723
3735
|
"platform",
|
|
3724
3736
|
"icon-style",
|
|
3725
3737
|
"icon-size"
|
|
3726
|
-
])], 8,
|
|
3738
|
+
])], 8, uc))), 128))], 4)) : (t(), S("div", dc, [C(y(nt), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
|
|
3727
3739
|
}
|
|
3728
|
-
}),
|
|
3740
|
+
}), pc = { class: "tpl:w-full" }, mc = {
|
|
3729
3741
|
key: 0,
|
|
3730
3742
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
3731
3743
|
style: {
|
|
3732
3744
|
"background-color": "var(--tpl-bg-hover)",
|
|
3733
3745
|
color: "var(--tpl-text-dim)"
|
|
3734
3746
|
}
|
|
3735
|
-
},
|
|
3747
|
+
}, hc = /* @__PURE__ */ F({
|
|
3736
3748
|
__name: "SpacerBlock",
|
|
3737
3749
|
props: {
|
|
3738
3750
|
block: {},
|
|
3739
3751
|
viewport: {}
|
|
3740
3752
|
},
|
|
3741
3753
|
setup(e) {
|
|
3742
|
-
let r = e, i =
|
|
3754
|
+
let r = e, i = ht(Kt, "SpacerBlock"), a = N(() => ({
|
|
3743
3755
|
height: `${r.block.height}px`,
|
|
3744
3756
|
minHeight: `${r.block.height}px`,
|
|
3745
3757
|
...i.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
3746
3758
|
}));
|
|
3747
|
-
return (r, o) => (t(), S("div",
|
|
3759
|
+
return (r, o) => (t(), S("div", pc, [x("div", {
|
|
3748
3760
|
style: n(a.value),
|
|
3749
3761
|
class: k(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !y(i).state.previewMode }])
|
|
3750
|
-
}, [y(i).state.previewMode ? P("", !0) : (t(), S("span",
|
|
3762
|
+
}, [y(i).state.previewMode ? P("", !0) : (t(), S("span", mc, D(e.block.height) + "px ", 1))], 6)]));
|
|
3751
3763
|
}
|
|
3752
|
-
}),
|
|
3764
|
+
}), gc = { class: "tpl:w-full" }, _c = { key: 0 }, vc = [
|
|
3753
3765
|
"aria-label",
|
|
3754
3766
|
"data-placeholder",
|
|
3755
3767
|
"onBlur"
|
|
3756
|
-
],
|
|
3768
|
+
], yc = [
|
|
3757
3769
|
"aria-label",
|
|
3758
3770
|
"data-placeholder",
|
|
3759
3771
|
"onBlur"
|
|
3760
|
-
],
|
|
3772
|
+
], bc = {
|
|
3761
3773
|
key: 1,
|
|
3762
3774
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3763
|
-
},
|
|
3775
|
+
}, xc = /*#__PURE__*/ En(/* @__PURE__ */ F({
|
|
3764
3776
|
__name: "TableBlock",
|
|
3765
3777
|
props: {
|
|
3766
3778
|
block: {},
|
|
@@ -3774,7 +3786,7 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3774
3786
|
updated(e, t) {
|
|
3775
3787
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
3776
3788
|
}
|
|
3777
|
-
}, i = e, { t: a } =
|
|
3789
|
+
}, i = e, { t: a } = un(), o = ht(Kt, "TableBlock"), s = N(() => i.block.rows.length > 0), c = N(() => {
|
|
3778
3790
|
let e = {
|
|
3779
3791
|
width: "100%",
|
|
3780
3792
|
borderCollapse: "collapse",
|
|
@@ -3805,11 +3817,11 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3805
3817
|
} : n);
|
|
3806
3818
|
o.updateBlock(i.block.id, { rows: a });
|
|
3807
3819
|
}
|
|
3808
|
-
return (e, i) => (t(), S("div",
|
|
3820
|
+
return (e, i) => (t(), S("div", gc, [s.value ? (t(), S("table", {
|
|
3809
3821
|
key: 0,
|
|
3810
3822
|
style: n(c.value),
|
|
3811
3823
|
class: "tpl-table-editable"
|
|
3812
|
-
}, [f.value ? (t(), S("thead",
|
|
3824
|
+
}, [f.value ? (t(), S("thead", _c, [x("tr", null, [(t(!0), S(M, null, l(f.value.cells, (e) => m((t(), S("th", {
|
|
3813
3825
|
key: e.id,
|
|
3814
3826
|
style: n(d.value),
|
|
3815
3827
|
"aria-label": y(a).table.cellPlaceholder,
|
|
@@ -3818,7 +3830,7 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3818
3830
|
onBlur: (t) => g(f.value.id, e.id, t),
|
|
3819
3831
|
onKeydown: i[0] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3820
3832
|
onClick: I(h, ["stop"])
|
|
3821
|
-
}, null, 44,
|
|
3833
|
+
}, null, 44, vc)), [[r, e.content]])), 128))])])) : P("", !0), x("tbody", null, [(t(!0), S(M, null, l(p.value, (e) => (t(), S("tr", { key: e.id }, [(t(!0), S(M, null, l(e.cells, (o) => m((t(), S("td", {
|
|
3822
3834
|
key: o.id,
|
|
3823
3835
|
style: n(u.value),
|
|
3824
3836
|
"aria-label": y(a).table.cellPlaceholder,
|
|
@@ -3827,9 +3839,9 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3827
3839
|
onBlur: (t) => g(e.id, o.id, t),
|
|
3828
3840
|
onKeydown: i[1] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3829
3841
|
onClick: I(h, ["stop"])
|
|
3830
|
-
}, null, 44,
|
|
3842
|
+
}, null, 44, yc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", bc, [C(y(Je), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
|
|
3831
3843
|
}
|
|
3832
|
-
}), [["__scopeId", "data-v-963ac422"]]),
|
|
3844
|
+
}), [["__scopeId", "data-v-963ac422"]]), Sc = /* @__PURE__ */ F({
|
|
3833
3845
|
__name: "VideoPlayButton",
|
|
3834
3846
|
props: { hoverEffect: {
|
|
3835
3847
|
type: Boolean,
|
|
@@ -3847,7 +3859,7 @@ var $s = { class: "tpl:w-full" }, ec = {
|
|
|
3847
3859
|
});
|
|
3848
3860
|
//#endregion
|
|
3849
3861
|
//#region src/utils/videoThumbnail.ts
|
|
3850
|
-
function
|
|
3862
|
+
function Cc(e) {
|
|
3851
3863
|
if (!e) return {
|
|
3852
3864
|
platform: "unknown",
|
|
3853
3865
|
videoId: null,
|
|
@@ -3879,25 +3891,25 @@ function yc(e) {
|
|
|
3879
3891
|
thumbnailUrl: null
|
|
3880
3892
|
};
|
|
3881
3893
|
}
|
|
3882
|
-
function
|
|
3883
|
-
return t ||
|
|
3894
|
+
function wc(e, t) {
|
|
3895
|
+
return t || Cc(e).thumbnailUrl;
|
|
3884
3896
|
}
|
|
3885
3897
|
//#endregion
|
|
3886
3898
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3887
|
-
var
|
|
3899
|
+
var Tc = ["src", "alt"], Ec = {
|
|
3888
3900
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
3889
3901
|
style: { opacity: "0.7" }
|
|
3890
|
-
},
|
|
3902
|
+
}, Dc = ["href"], Oc = ["src", "alt"], kc = ["src", "alt"], Ac = {
|
|
3891
3903
|
key: 3,
|
|
3892
3904
|
class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
3893
|
-
},
|
|
3905
|
+
}, jc = /* @__PURE__ */ F({
|
|
3894
3906
|
__name: "VideoBlock",
|
|
3895
3907
|
props: {
|
|
3896
3908
|
block: {},
|
|
3897
3909
|
viewport: {}
|
|
3898
3910
|
},
|
|
3899
3911
|
setup(e) {
|
|
3900
|
-
let r = e, { t: i } =
|
|
3912
|
+
let r = e, { t: i } = un(), { syntax: a } = On(), o = N(() => Pe(r.block.url, a) || Pe(r.block.thumbnailUrl, a)), s = Rn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Rn(() => o.value ? r.block.placeholderUrl : void 0), l = N(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : wc(r.block.url)), u = N(() => ({ textAlign: r.block.align })), d = N(() => {
|
|
3901
3913
|
let e = r.block.align;
|
|
3902
3914
|
return {
|
|
3903
3915
|
maxWidth: "100%",
|
|
@@ -3907,7 +3919,7 @@ var xc = ["src", "alt"], Sc = {
|
|
|
3907
3919
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
3908
3920
|
marginRight: e === "center" ? "auto" : void 0
|
|
3909
3921
|
};
|
|
3910
|
-
}), f = N(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = N(() =>
|
|
3922
|
+
}), f = N(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = N(() => Pe(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
|
|
3911
3923
|
return (r, a) => (t(), S("div", {
|
|
3912
3924
|
class: "tpl:w-full",
|
|
3913
3925
|
style: n(u.value)
|
|
@@ -3920,16 +3932,16 @@ var xc = ["src", "alt"], Sc = {
|
|
|
3920
3932
|
src: y(c),
|
|
3921
3933
|
alt: e.block.alt,
|
|
3922
3934
|
style: n(f.value)
|
|
3923
|
-
}, null, 12,
|
|
3935
|
+
}, null, 12, Tc), C(Sc)], 4)) : o.value ? (t(), S("div", {
|
|
3924
3936
|
key: 1,
|
|
3925
3937
|
class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
3926
3938
|
style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
|
|
3927
|
-
}, [C(y(
|
|
3939
|
+
}, [C(y(Hr), {
|
|
3928
3940
|
size: 36,
|
|
3929
3941
|
"stroke-width": 1.5,
|
|
3930
3942
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
3931
3943
|
style: { opacity: "0.5" }
|
|
3932
|
-
}), x("span",
|
|
3944
|
+
}), x("span", Ec, [C(Nr, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
|
|
3933
3945
|
key: 0,
|
|
3934
3946
|
href: e.block.url,
|
|
3935
3947
|
target: "_blank",
|
|
@@ -3942,7 +3954,7 @@ var xc = ["src", "alt"], Sc = {
|
|
|
3942
3954
|
src: l.value,
|
|
3943
3955
|
alt: e.block.alt,
|
|
3944
3956
|
style: n(f.value)
|
|
3945
|
-
}, null, 12,
|
|
3957
|
+
}, null, 12, Oc), C(Sc, { "hover-effect": "" })], 12, Dc)) : (t(), S("div", {
|
|
3946
3958
|
key: 1,
|
|
3947
3959
|
class: "tpl:relative tpl:inline-block",
|
|
3948
3960
|
style: n(d.value)
|
|
@@ -3951,54 +3963,54 @@ var xc = ["src", "alt"], Sc = {
|
|
|
3951
3963
|
src: l.value,
|
|
3952
3964
|
alt: e.block.alt,
|
|
3953
3965
|
style: n(f.value)
|
|
3954
|
-
}, null, 12,
|
|
3966
|
+
}, null, 12, kc), C(Sc)], 4))], 64)) : (t(), S("div", Ac, [C(y(Hr), {
|
|
3955
3967
|
size: 40,
|
|
3956
3968
|
"stroke-width": 1.5,
|
|
3957
3969
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
3958
3970
|
}), x("span", null, D(y(i).video.addVideo), 1)]))], 4));
|
|
3959
3971
|
}
|
|
3960
|
-
}),
|
|
3961
|
-
section:
|
|
3962
|
-
title:
|
|
3963
|
-
paragraph:
|
|
3964
|
-
image:
|
|
3965
|
-
button:
|
|
3966
|
-
divider:
|
|
3967
|
-
video:
|
|
3968
|
-
social:
|
|
3969
|
-
menu:
|
|
3970
|
-
table:
|
|
3971
|
-
spacer:
|
|
3972
|
-
html:
|
|
3972
|
+
}), Mc = {
|
|
3973
|
+
section: ac,
|
|
3974
|
+
title: fa,
|
|
3975
|
+
paragraph: Zi,
|
|
3976
|
+
image: Ri,
|
|
3977
|
+
button: Fr,
|
|
3978
|
+
divider: yi,
|
|
3979
|
+
video: jc,
|
|
3980
|
+
social: fc,
|
|
3981
|
+
menu: Hi,
|
|
3982
|
+
table: xc,
|
|
3983
|
+
spacer: hc,
|
|
3984
|
+
html: Ti,
|
|
3973
3985
|
countdown: v(() => import("./CountdownBlock-C6R-hn7D.js"))
|
|
3974
3986
|
};
|
|
3975
|
-
function
|
|
3976
|
-
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } =
|
|
3987
|
+
function Nc(t) {
|
|
3988
|
+
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = un(i), l = N(() => pe(pe(pe(nr(i), Sr(n.content.value.settings?.locale)), Se(n.content.value.settings) === "rtl" ? {
|
|
3977
3989
|
title: { textAlign: "right" },
|
|
3978
3990
|
table: { textAlign: "right" }
|
|
3979
3991
|
} : {}), r.blockDefaults ?? {}));
|
|
3980
3992
|
n.setUiTheme(r.uiTheme ?? "auto");
|
|
3981
|
-
let { resolvedTheme: u } =
|
|
3993
|
+
let { resolvedTheme: u } = Wn(N(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = Kn({
|
|
3982
3994
|
themeOverrides: d,
|
|
3983
3995
|
resolvedTheme: u,
|
|
3984
3996
|
extraStyles: () => ({
|
|
3985
3997
|
"--tpl-drop-text": `"${i.canvas.dropHere}"`,
|
|
3986
3998
|
...t.themeExtraStyles?.()
|
|
3987
3999
|
})
|
|
3988
|
-
}), m =
|
|
4000
|
+
}), m = Ke({
|
|
3989
4001
|
content: n.content,
|
|
3990
4002
|
setContent: (e, t) => n.setContent(e, t),
|
|
3991
4003
|
...t.historyOptions
|
|
3992
4004
|
});
|
|
3993
|
-
|
|
3994
|
-
let g =
|
|
4005
|
+
ot(n, m);
|
|
4006
|
+
let g = qe({
|
|
3995
4007
|
addBlock: n.addBlock,
|
|
3996
4008
|
removeBlock: n.removeBlock,
|
|
3997
4009
|
updateBlock: n.updateBlock,
|
|
3998
4010
|
selectBlock: n.selectBlock,
|
|
3999
4011
|
findBlockLocation: n.findBlockLocation,
|
|
4000
4012
|
blockDefaults: () => l.value
|
|
4001
|
-
}), v =
|
|
4013
|
+
}), v = Ye(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Qe({
|
|
4002
4014
|
content: n.content,
|
|
4003
4015
|
isDirty: () => n.state.isDirty,
|
|
4004
4016
|
...t.autoSaveOptions
|
|
@@ -4006,30 +4018,30 @@ function kc(t) {
|
|
|
4006
4018
|
y && (b = f(m.isNavigating, (e) => {
|
|
4007
4019
|
e ? y.pause() : y.resume();
|
|
4008
4020
|
}));
|
|
4009
|
-
let x =
|
|
4021
|
+
let x = Un(n, {
|
|
4010
4022
|
t: o,
|
|
4011
4023
|
format: c
|
|
4012
|
-
}, r.customBlocks ?? []), S =
|
|
4013
|
-
if (S.allowCustomIgnored &&
|
|
4014
|
-
let e =
|
|
4015
|
-
e.length > 0 &&
|
|
4016
|
-
}
|
|
4017
|
-
let C =
|
|
4018
|
-
for (let e of C.unknown)
|
|
4019
|
-
let w =
|
|
4020
|
-
|
|
4024
|
+
}, r.customBlocks ?? []), S = mn(r.colors);
|
|
4025
|
+
if (S.allowCustomIgnored && dn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && dn.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
|
|
4026
|
+
let e = tr(S.presets, r.blockDefaults, r.templateDefaults);
|
|
4027
|
+
e.length > 0 && dn.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
|
|
4028
|
+
}
|
|
4029
|
+
let C = gn(r.templateSettings);
|
|
4030
|
+
for (let e of C.unknown) dn.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${_n.join(", ")}) — skipping it.`);
|
|
4031
|
+
let w = qn();
|
|
4032
|
+
Qn(w, Mc);
|
|
4021
4033
|
let T = /* @__PURE__ */ new Set();
|
|
4022
4034
|
function D(e) {
|
|
4023
4035
|
for (let t of e) {
|
|
4024
|
-
w.registerCustom(t,
|
|
4025
|
-
for (let e of
|
|
4036
|
+
w.registerCustom(t, _i);
|
|
4037
|
+
for (let e of Cr(t, S)) T.has(e.id) || (T.add(e.id), dn.warn(e.message));
|
|
4026
4038
|
}
|
|
4027
4039
|
}
|
|
4028
4040
|
r.customBlocks?.length && D(r.customBlocks);
|
|
4029
|
-
let O =
|
|
4041
|
+
let O = Pn();
|
|
4030
4042
|
if (h() && s(O.dispose), t.containerEl) {
|
|
4031
4043
|
let e = t.containerEl;
|
|
4032
|
-
|
|
4044
|
+
ft(document, "pointerdown", (t) => {
|
|
4033
4045
|
let n = e.value;
|
|
4034
4046
|
n && (t.composedPath?.() ?? []).includes(n) && O.claim();
|
|
4035
4047
|
}, { capture: !0 });
|
|
@@ -4043,7 +4055,7 @@ function kc(t) {
|
|
|
4043
4055
|
y?.flush();
|
|
4044
4056
|
}
|
|
4045
4057
|
function A(e) {
|
|
4046
|
-
O.isActive() &&
|
|
4058
|
+
O.isActive() && Tr(e, {
|
|
4047
4059
|
history: m,
|
|
4048
4060
|
selectBlock: (e) => n.selectBlock(e),
|
|
4049
4061
|
getSelectedBlockId: () => n.state.selectedBlockId,
|
|
@@ -4055,41 +4067,41 @@ function kc(t) {
|
|
|
4055
4067
|
onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
|
|
4056
4068
|
});
|
|
4057
4069
|
}
|
|
4058
|
-
|
|
4070
|
+
ft(document, "keydown", A);
|
|
4059
4071
|
let j = _(null);
|
|
4060
|
-
E(
|
|
4061
|
-
let M =
|
|
4072
|
+
E(Bt, t.editorRoot ?? document), E(_t, j), E(Rt, i), E(Kt, n), E(cn, m), E(Vt, g), E(Gt, v), E(an, a), E(Tt, p), E(zt, u), E($t, l), E(Lt, r.locale), E(rn, w), E(en, r.customBlocks ?? []), E(ln, r.paletteBlocks), E(Ht, $n(r.htmlBlockPreview)), E(vt, r.layout), E(St, r.sectionWrapper), E(Wt, S), E(tn, C.fields), E(Zt, Jn(n.content, w));
|
|
4073
|
+
let M = he(r.mergeTags?.syntax), ee = e(r.mergeTags?.tags ?? []);
|
|
4062
4074
|
function P(e) {
|
|
4063
4075
|
if (!Array.isArray(e)) {
|
|
4064
|
-
|
|
4076
|
+
dn.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
4065
4077
|
return;
|
|
4066
4078
|
}
|
|
4067
4079
|
ee.value = e;
|
|
4068
4080
|
}
|
|
4069
|
-
E(
|
|
4070
|
-
let F = _(
|
|
4071
|
-
E(
|
|
4072
|
-
let te =
|
|
4081
|
+
E(At, ee), E(jt, M), E(Nt, r.mergeTags?.onRequest ?? null), E(Yt, r.mergeTags?.autocomplete !== !1), E(kt, r.mergeTags?.showRawValue !== !1);
|
|
4082
|
+
let F = _(oe(r.mergeTags?.tags ?? []));
|
|
4083
|
+
E(Ot, F);
|
|
4084
|
+
let te = In({
|
|
4073
4085
|
resolvePreview: r.resolvePreview,
|
|
4074
4086
|
getContent: () => {
|
|
4075
4087
|
let e = n.content.value;
|
|
4076
|
-
return r.layout && n.state.previewMode ?
|
|
4088
|
+
return r.layout && n.state.previewMode ? Ve(r.layout, e) : e;
|
|
4077
4089
|
},
|
|
4078
4090
|
isActive: () => n.state.previewMode
|
|
4079
4091
|
});
|
|
4080
|
-
E(
|
|
4092
|
+
E(It, te), E(Ct, r.resolvePreview);
|
|
4081
4093
|
let I = N(() => !(n.state.previewMode && te.isConfigured));
|
|
4082
|
-
E(
|
|
4083
|
-
let ne =
|
|
4084
|
-
E(
|
|
4085
|
-
let re =
|
|
4094
|
+
E(nn, I);
|
|
4095
|
+
let ne = zn();
|
|
4096
|
+
E(gt, ne), E(Jt, _(!1)), E(yt, _(!1)), E(Ft, r.logicTags?.tags ?? []), E(on, r.logicTags?.pairs ?? []), E(wt, r.logicTags?.onRequest ?? null), E(bt, Bn()), E(Dt, r.onRequestMedia ?? null), E(Ut, r.canDropMedia ?? null), E(sn, r.resolveImageUrl ? Ln(r.resolveImageUrl) : null), E(qt, r.displayConditions?.conditions ?? []), E(Qt, r.displayConditions?.allowCustom ?? !1), E(Xt, t.capabilities ?? {}), E(Pt, x);
|
|
4097
|
+
let re = Vn(r.lint) ? null : Hn({
|
|
4086
4098
|
content: n.content,
|
|
4087
4099
|
options: r.lint ?? {},
|
|
4088
4100
|
updateBlock: n.updateBlock,
|
|
4089
4101
|
updateSettings: n.updateSettings,
|
|
4090
4102
|
removeBlock: n.removeBlock
|
|
4091
4103
|
});
|
|
4092
|
-
E(
|
|
4104
|
+
E(Et, re);
|
|
4093
4105
|
function ie() {
|
|
4094
4106
|
b?.(), re?.destroy(), y?.destroy(), m.destroy();
|
|
4095
4107
|
}
|
|
@@ -4116,4 +4128,4 @@ function kc(t) {
|
|
|
4116
4128
|
};
|
|
4117
4129
|
}
|
|
4118
4130
|
//#endregion
|
|
4119
|
-
export {
|
|
4131
|
+
export { Dr as A, Br as C, Or as D, Fr as E, hr as F, mr as I, pr as L, vr as M, _r as N, Er as O, gr as P, In as R, Gr as S, Ir as T, oi as _, fc as a, Jr as b, fa as c, Hi as d, Ri as f, ci as g, _i as h, hc as i, ur as j, jr as k, ua as l, yi as m, jc as n, ac as o, Ti as p, xc as r, tc as s, Nc as t, Zi as u, ii as v, Rr as w, qr as x, $r as y };
|