@templatical/editor 0.27.6 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-jbpwD_4k.js → AiChatSidebar-mZyf81xG.js} +14 -14
- package/dist/{AiFeatureMenu-BeZR46ZG.js → AiFeatureMenu-wpL2vbbd.js} +7 -7
- package/dist/{BlockIssueBadge-B8wQY1tM.js → BlockIssueBadge-CavnyR3o.js} +5 -5
- package/dist/{BlockPreviewCanvas-CIjts7SP.js → BlockPreviewCanvas-CeNJqtJ6.js} +3 -3
- package/dist/{CloudHeaderExtras-mMqnnTi1.js → CloudHeaderExtras-fH0cB-Ru.js} +5 -5
- package/dist/{CloudPanels-fiTneIeJ.js → CloudPanels-Davlnzfd.js} +7 -7
- package/dist/{CollaboratorBar-C48K85la.js → CollaboratorBar-BvQZriPA.js} +4 -4
- package/dist/{ColorPicker-Bc1lGovM.js → ColorPicker-OLSFZBBZ.js} +7 -7
- package/dist/{CommentsPanel-D5Ljv1oj.js → CommentsPanel-B4_63eIS.js} +2 -2
- package/dist/{CommentsSidebar-C5mDJVjC.js → CommentsSidebar-BkBHMXez.js} +14 -14
- package/dist/{CountdownBlock-qKtJVRIV.js → CountdownBlock-Drr1WErd.js} +3 -3
- package/dist/{CountdownToolbar-B-9EdQvm.js → CountdownToolbar-D8FsDIfa.js} +4 -4
- package/dist/{DesignReferenceSidebar-DOy4ENYv.js → DesignReferenceSidebar-Dp44REBY.js} +11 -11
- package/dist/{IssuesPanel-DZUehVZS.js → IssuesPanel-C1v3dmoB.js} +8 -8
- package/dist/{LoadingTrack-C2T8ixEL.js → LoadingTrack-Db9j_aBr.js} +1 -1
- package/dist/{MergeTagModeToggle-Fn9Q1SrJ.js → MergeTagModeToggle-CZN0Pr1o.js} +5 -5
- package/dist/{MergeTagSuggestion-DflUPfkT.js → MergeTagSuggestion-a7Tk8tBB.js} +2 -2
- package/dist/{NumberWithSuffix-DZAktKby.js → NumberWithSuffix-C1D0WFrN.js} +1 -1
- package/dist/{ParagraphEditor-BwTQoxxF.js → ParagraphEditor-CGxsm0Mx.js} +15 -15
- package/dist/{RestoreVersionDialog-CVuUY3CK.js → RestoreVersionDialog-BLW8wC1J.js} +5 -5
- package/dist/{RichTextEditorContent-CoXoAfZ1.js → RichTextEditorContent-COBy_Q9j.js} +8 -8
- package/dist/{SaveBlockDialog-Bn5JtRSE.js → SaveBlockDialog-DPDQTGTB.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-WWGhUC8R.js → SavedBlocksBrowserModal-D8a-wIRe.js} +11 -11
- package/dist/{SavedBlocksPanels-R_4C58EN.js → SavedBlocksPanels-CmnGyJHO.js} +2 -2
- package/dist/{SavedBlocksPickBar-D5KZVvvu.js → SavedBlocksPickBar-Z-YRd488.js} +4 -4
- package/dist/{TemplateScoringPanel-Cz25F9Cf.js → TemplateScoringPanel-5zp1qOSl.js} +15 -15
- package/dist/{TestEmailModal-C_C228mX.js → TestEmailModal-C69UbsNy.js} +10 -10
- package/dist/{TestEmailPanel-D7YOLrOb.js → TestEmailPanel-CH2dG-8A.js} +2 -2
- package/dist/{TitleEditor-XOQQlb1V.js → TitleEditor-BfWPus_C.js} +10 -10
- package/dist/{TplModal-DLXIufsn.js → TplModal-DBlMd7h9.js} +5 -5
- package/dist/{VersionHistoryMenu-Bk5zEClP.js → VersionHistoryMenu-Cg4UKxKc.js} +8 -8
- package/dist/{VersionHistoryPanels-D-km60IA.js → VersionHistoryPanels-BKjbNEOM.js} +2 -2
- package/dist/{VersionPreviewBanner-PMaxy3tA.js → VersionPreviewBanner-B0thyJ8F.js} +3 -3
- package/dist/{blockTypeIcons-BG5c5gc8.js → blockTypeIcons-CQMkcHo9.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-CEuJ6IRr.js → ca-DY0AYOLG.js} +6 -0
- package/dist/cdn/chunks/{AiChatSidebar-hq9GgASn.js → AiChatSidebar-BQATQ3Tr.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-hq9GgASn.js.map → AiChatSidebar-BQATQ3Tr.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B8B-XgQB.js → AiFeatureMenu-cNoZ0xl_.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B8B-XgQB.js.map → AiFeatureMenu-cNoZ0xl_.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DOvq0xJb.js → BlockIssueBadge-CH_3vFw4.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-DOvq0xJb.js.map → BlockIssueBadge-CH_3vFw4.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-ZN-5MezA.js → BlockPreviewCanvas-9tFXPVgi.js} +4 -4
- package/dist/cdn/chunks/{BlockPreviewCanvas-ZN-5MezA.js.map → BlockPreviewCanvas-9tFXPVgi.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-Dbd6brlz.js → CloudHeaderExtras-CUAM2ADe.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-Dbd6brlz.js.map → CloudHeaderExtras-CUAM2ADe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CxkGH1dy.js → CloudPanels-DMnnSIkX.js} +7 -7
- package/dist/cdn/chunks/{CloudPanels-CxkGH1dy.js.map → CloudPanels-DMnnSIkX.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DpP8oKTU.js → CollaboratorBar-C6sorNRi.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-DpP8oKTU.js.map → CollaboratorBar-C6sorNRi.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BsYEtL7B.js → ColorPicker-q1V7ggWI.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-BsYEtL7B.js.map → ColorPicker-q1V7ggWI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-B1B_UQ2z.js → CommentsPanel-ExfxJZM3.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-B1B_UQ2z.js.map → CommentsPanel-ExfxJZM3.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-B4waNT5L.js → CommentsSidebar-CzALURMJ.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-B4waNT5L.js.map → CommentsSidebar-CzALURMJ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BKrYGRiT.js → CountdownBlock-_7TUBqJS.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-BKrYGRiT.js.map → CountdownBlock-_7TUBqJS.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DhJg2sQa.js → CountdownToolbar-CkbWSrAH.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DhJg2sQa.js.map → CountdownToolbar-CkbWSrAH.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-4Ds4D0M0.js → DesignReferenceSidebar-COh0Rx_A.js} +7 -7
- package/dist/cdn/chunks/{DesignReferenceSidebar-4Ds4D0M0.js.map → DesignReferenceSidebar-COh0Rx_A.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CyGgRHuI.js → IssuesPanel-C1NG0xRI.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-CyGgRHuI.js.map → IssuesPanel-C1NG0xRI.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-Dp_QZvAK.js → LoadingTrack-D_wweXVz.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-Dp_QZvAK.js.map → LoadingTrack-D_wweXVz.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B_oHsH0i.js → MergeTagModeToggle-B1yXCp3D.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-B_oHsH0i.js.map → MergeTagModeToggle-B1yXCp3D.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Df7jcLpS.js → MergeTagSuggestion-DqYR3jPA.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-Df7jcLpS.js.map → MergeTagSuggestion-DqYR3jPA.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DNBrbl4H.js → NumberWithSuffix-CWvM_I3T.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-DNBrbl4H.js.map → NumberWithSuffix-CWvM_I3T.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-9GPXDRns.js → ParagraphEditor-DPM1hUKo.js} +22 -22
- package/dist/cdn/chunks/{ParagraphEditor-9GPXDRns.js.map → ParagraphEditor-DPM1hUKo.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BWewwJIZ.js → RestoreVersionDialog-Dz0bX5ZZ.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-BWewwJIZ.js.map → RestoreVersionDialog-Dz0bX5ZZ.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DWD1--Yi.js → RichTextEditorContent-nkyIRAyN.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-DWD1--Yi.js.map → RichTextEditorContent-nkyIRAyN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DUyrK4nE.js → SaveBlockDialog-DVMxZbmf.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-DUyrK4nE.js.map → SaveBlockDialog-DVMxZbmf.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DZrk2Fxx.js → SavedBlocksBrowserModal-C3nfKRQg.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DZrk2Fxx.js.map → SavedBlocksBrowserModal-C3nfKRQg.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-iSAXI4IM.js → SavedBlocksPanels-DVat5S7j.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-iSAXI4IM.js.map → SavedBlocksPanels-DVat5S7j.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CFeccSg9.js → SavedBlocksPickBar-Brg8US_n.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-CFeccSg9.js.map → SavedBlocksPickBar-Brg8US_n.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-Ct5p7X_i.js → TemplateScoringPanel-DO86BvdQ.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-Ct5p7X_i.js.map → TemplateScoringPanel-DO86BvdQ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BJo6q_Dm.js → TestEmailModal-CDx1Pqtx.js} +9 -9
- package/dist/cdn/chunks/{TestEmailModal-BJo6q_Dm.js.map → TestEmailModal-CDx1Pqtx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-LuLd-ErE.js → TestEmailPanel--PpajGV7.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-LuLd-ErE.js.map → TestEmailPanel--PpajGV7.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BsGfiDXQ.js → TitleEditor-CLkXt5RZ.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-BsGfiDXQ.js.map → TitleEditor-CLkXt5RZ.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-lUdHsbjL.js → TplModal-BhfPoZ_W.js} +5 -5
- package/dist/cdn/chunks/{TplModal-lUdHsbjL.js.map → TplModal-BhfPoZ_W.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CXMPsVMR.js → VersionHistoryMenu-_DyRYBRP.js} +5 -5
- package/dist/cdn/chunks/{VersionHistoryMenu-CXMPsVMR.js.map → VersionHistoryMenu-_DyRYBRP.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-oTKA6TUS.js → VersionHistoryPanels-DGfOOcKV.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-oTKA6TUS.js.map → VersionHistoryPanels-DGfOOcKV.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-7DZLUVaE.js → VersionPreviewBanner-FbBmgknN.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-7DZLUVaE.js.map → VersionPreviewBanner-FbBmgknN.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D8dtoELC.js → blockTypeIcons-o4ammRlm.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-D8dtoELC.js.map → blockTypeIcons-o4ammRlm.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CEuJ6IRr.js → ca-DY0AYOLG.js} +7 -1
- package/dist/cdn/chunks/ca-DY0AYOLG.js.map +1 -0
- package/dist/cdn/chunks/{cloud-BA0OpRh-.js → cloud-CRCcXTc5.js} +2 -2
- package/dist/cdn/chunks/{cloud-BA0OpRh-.js.map → cloud-CRCcXTc5.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-CedWXagq.js → createCloudRuntime-C-u7oIGa.js} +7 -7
- package/dist/cdn/chunks/{createCloudRuntime-CedWXagq.js.map → createCloudRuntime-C-u7oIGa.js.map} +1 -1
- package/dist/{de-aRxhZF_K.js → cdn/chunks/de-CYLWugqb.js} +8 -0
- package/dist/cdn/chunks/de-CYLWugqb.js.map +1 -0
- package/dist/cdn/chunks/{dist-CM8TB0VD.js → dist-2fOlspdg.js} +3 -3
- package/dist/cdn/chunks/{dist-CM8TB0VD.js.map → dist-2fOlspdg.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CYLJiSiH.js → dist-eKG4m5Wx.js} +2 -2
- package/dist/cdn/chunks/{dist-CYLJiSiH.js.map → dist-eKG4m5Wx.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BfpsXFg7.js → draggable-BLMjz0GK.js} +565 -579
- package/dist/cdn/chunks/{draggable-BfpsXFg7.js.map → draggable-BLMjz0GK.js.map} +1 -1
- package/dist/cdn/chunks/{en-BX4V_7YO.js → en-C3TM249M.js} +7 -1
- package/dist/cdn/chunks/en-C3TM249M.js.map +1 -0
- package/dist/cdn/chunks/en-C6FKrw69.js +2 -0
- package/dist/cdn/chunks/{es-CA9uQ-5x.js → es-D1SF4nCR.js} +7 -1
- package/dist/cdn/chunks/es-D1SF4nCR.js.map +1 -0
- package/dist/cdn/chunks/{extensions-P0lpi6k8.js → extensions-qSqWdFko.js} +6 -6
- package/dist/cdn/chunks/{extensions-P0lpi6k8.js.map → extensions-qSqWdFko.js.map} +1 -1
- package/dist/{fr-iBuE60Ap.js → cdn/chunks/fr-CdLhJ7kw.js} +8 -0
- package/dist/cdn/chunks/fr-CdLhJ7kw.js.map +1 -0
- package/dist/cdn/chunks/{icons-BrdgOeXm.js → icons-MeYdeH4P.js} +2 -2
- package/dist/cdn/chunks/{icons-BrdgOeXm.js.map → icons-MeYdeH4P.js.map} +1 -1
- package/dist/cdn/chunks/{keys-oJdkdtPn.js → keys-D7OpfE2s.js} +2 -2
- package/dist/cdn/chunks/{keys-oJdkdtPn.js.map → keys-D7OpfE2s.js.map} +1 -1
- package/dist/cdn/chunks/{nl-Btw4ojNo.js → nl-BvsLoyKp.js} +7 -1
- package/dist/cdn/chunks/nl-BvsLoyKp.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-GjVsCqbN.js → pt-BR-CAGS5YXp.js} +7 -1
- package/dist/cdn/chunks/pt-BR-CAGS5YXp.js.map +1 -0
- package/dist/cdn/chunks/{src-BS2ClsbB.js → src-2QDLdUyx.js} +93 -11
- package/dist/cdn/chunks/src-2QDLdUyx.js.map +1 -0
- package/dist/cdn/chunks/src-B_QJduQD.js.map +1 -1
- package/dist/cdn/chunks/{src-rhf0R6xZ.js → src-DgxiymKd.js} +62 -59
- package/dist/cdn/chunks/src-DgxiymKd.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-DWeSx_P8.js → tiptap-DgH_wKK_.js} +2 -2
- package/dist/cdn/chunks/{tiptap-DWeSx_P8.js.map → tiptap-DgH_wKK_.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-Dtm174fG.js → useAliveFlag-C1pwLtPO.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Dtm174fG.js.map → useAliveFlag-C1pwLtPO.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Ch-SiRjU.js → useCloudI18n-D4gzxtqF.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Ch-SiRjU.js.map → useCloudI18n-D4gzxtqF.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CwJIw1Uy.js → useEditorCore-2ZVOY0Rh.js} +30 -25
- package/dist/cdn/chunks/{useEditorCore-CwJIw1Uy.js.map → useEditorCore-2ZVOY0Rh.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-BY-amddA.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-Cxnmf5hM.js.map → useEditorRoot-BY-amddA.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-4sUbTM3Y.js → useI18n-DYb1SgLB.js} +3 -3
- package/dist/cdn/chunks/{useI18n-4sUbTM3Y.js.map → useI18n-DYb1SgLB.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DxjTEyin.js → useMergeTag-D-SE_XN8.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-DxjTEyin.js.map → useMergeTag-D-SE_XN8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-C1N2kaiZ.js → usePopoverPosition-CJZ6EkS4.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-C1N2kaiZ.js.map → usePopoverPosition-CJZ6EkS4.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-BvWAfWd8.js → useScrollToBlock-D6gyIzT1.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-BvWAfWd8.js.map → useScrollToBlock-D6gyIzT1.js.map} +1 -1
- package/dist/cdn/editor.js +1010 -956
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-C2h94k_8.js → check-CLfibuQc.js} +1 -1
- package/dist/{chevron-down-ulZzvfvk.js → chevron-down-DamTR8ta.js} +1 -1
- package/dist/{chevron-up-8g-VtBW4.js → chevron-up-CrV_Ksg-.js} +1 -1
- package/dist/{circle-alert-BJFqBtRt.js → circle-alert-BLy-e34e.js} +1 -1
- package/dist/{clock-C-1JiH38.js → clock-DQI6aaFT.js} +1 -1
- package/dist/{cloud-BAefVBb_.js → cloud-DXFUA8H_.js} +1 -1
- package/dist/{createCloudRuntime-FEZG-Gve.js → createCloudRuntime-BrgMP9gS.js} +5 -5
- package/dist/{createLucideIcon-DJb_1j1D.js → createLucideIcon-Cbl3Ma_H.js} +1 -1
- package/dist/{cdn/chunks/de-aRxhZF_K.js → de-CYLWugqb.js} +6 -2
- package/dist/{dist-BLVvhIFj.js → dist-7Lr_A7Va.js} +2 -2
- package/dist/{dist-B5iReTtK.js → dist-CkSgS-K9.js} +2 -2
- package/dist/{dist-CqcGTIiX.js → dist-WE11SQGe.js} +1 -1
- package/dist/{en-BX4V_7YO.js → en-C3TM249M.js} +6 -0
- package/dist/{es-CA9uQ-5x.js → es-D1SF4nCR.js} +6 -0
- package/dist/{extensions-DWp4eXoE.js → extensions-PJK0gLCL.js} +6 -6
- package/dist/{cdn/chunks/fr-iBuE60Ap.js → fr-CdLhJ7kw.js} +6 -2
- package/dist/{image-up-0rvCz8rh.js → image-up-BVOMy_Fs.js} +1 -1
- package/dist/{info-CXvc-MZk.js → info-BKMKasyT.js} +1 -1
- package/dist/{keys-CVpi8xCT.js → keys-CAor2T5q.js} +1 -1
- package/dist/{loader-circle-DQIuGTFk.js → loader-circle-CSGh8n8A.js} +1 -1
- package/dist/{message-circle-BqX2Y80d.js → message-circle-C6q2Fm_W.js} +1 -1
- package/dist/{nl-Btw4ojNo.js → nl-BvsLoyKp.js} +6 -0
- package/dist/{pencil-DpGX5hCB.js → pencil-DaTN0HKw.js} +1 -1
- package/dist/{pt-BR-GjVsCqbN.js → pt-BR-CAGS5YXp.js} +6 -0
- package/dist/{refresh-cw-B13pUg95.js → refresh-cw-Cu4wRQwT.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BgKXIPLV.js → runtime-dom.esm-bundler-CHEsXNQz.js} +1 -1
- package/dist/{scan-line-BDZEtA92.js → scan-line-O_o657Gv.js} +1 -1
- package/dist/{send-DQ52s_T6.js → send-GS3soauT.js} +1 -1
- package/dist/{shield-check-C4uQTy20.js → shield-check-B2TzT3Wp.js} +1 -1
- package/dist/{sparkles-CphMFXxu.js → sparkles-CNENcXZl.js} +1 -1
- package/dist/templatical-editor.js +464 -410
- package/dist/{text-align-start-Cem3VGu8.js → text-align-start-D0-k8RUf.js} +1 -1
- package/dist/{trash-2-ijNDbe1n.js → trash-2-BE-qGIpG.js} +1 -1
- package/dist/{triangle-alert-C1e0A199.js → triangle-alert-DNM2_dyh.js} +1 -1
- package/dist/{upload-CXwGBFi0.js → upload-Cv2Jx-yM.js} +1 -1
- package/dist/{useAliveFlag-BGIAZii_.js → useAliveFlag-1yBub211.js} +1 -1
- package/dist/{useCloudI18n-DmWo4nzs.js → useCloudI18n-Dwo7usTl.js} +2 -2
- package/dist/{useEditorCore-BfPXdBsv.js → useEditorCore-DM8vzMZQ.js} +35 -30
- package/dist/{useEditorRoot-DKyG95pb.js → useEditorRoot-CUIzpMYc.js} +2 -2
- package/dist/{useI18n-CvYvat9_.js → useI18n-DT_DKupw.js} +2 -2
- package/dist/{useMergeTag-D6Z6cyDa.js → useMergeTag-CcHQCcPN.js} +2 -2
- package/dist/{usePopoverPosition-WslxM_PU.js → usePopoverPosition-DaHz1kqb.js} +2 -2
- package/dist/{useScrollToBlock-B3H6frtG.js → useScrollToBlock-C2LYXENK.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-DzEsDRtY.js → vue.runtime.esm-bundler-CdH_W9qX.js} +158 -172
- package/dist/{x-eZrtE6uf.js → x-DUPrT6Aa.js} +1 -1
- package/package.json +9 -9
- package/dist/cdn/chunks/ca-CEuJ6IRr.js.map +0 -1
- package/dist/cdn/chunks/de-aRxhZF_K.js.map +0 -1
- package/dist/cdn/chunks/en-BCgVx9zM.js +0 -90
- package/dist/cdn/chunks/en-BCgVx9zM.js.map +0 -1
- package/dist/cdn/chunks/en-BX4V_7YO.js.map +0 -1
- package/dist/cdn/chunks/es-CA9uQ-5x.js.map +0 -1
- package/dist/cdn/chunks/fr-iBuE60Ap.js.map +0 -1
- package/dist/cdn/chunks/nl-Btw4ojNo.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-GjVsCqbN.js.map +0 -1
- package/dist/cdn/chunks/src-BS2ClsbB.js.map +0 -1
- package/dist/cdn/chunks/src-rhf0R6xZ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-Cxnmf5hM.js +0 -10
|
@@ -1090,7 +1090,7 @@ function Hn(e, t = L, n) {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
function Un(e, n) {
|
|
1092
1092
|
if (L === null) return e;
|
|
1093
|
-
let r =
|
|
1093
|
+
let r = xo(L), i = e.dirs ||= [];
|
|
1094
1094
|
for (let e = 0; e < n.length; e++) {
|
|
1095
1095
|
let [a, o, s, c = t] = n[e];
|
|
1096
1096
|
a && (h(a) && (a = {
|
|
@@ -1472,7 +1472,7 @@ function Fr(e, n, r, a, o = !1) {
|
|
|
1472
1472
|
a.shapeFlag & 512 && a.type.__asyncResolved && a.component.subTree.component && Fr(e, n, r, a.component.subTree);
|
|
1473
1473
|
return;
|
|
1474
1474
|
}
|
|
1475
|
-
let s = a.shapeFlag & 4 ?
|
|
1475
|
+
let s = a.shapeFlag & 4 ? xo(a.component) : a.el, l = o ? null : s, { i: f, r: p } = e, m = n && n.r, _ = f.refs === t ? f.refs = {} : f.refs, v = f.setupState, y = /* @__PURE__ */ P(v), b = v === t ? i : (e) => !Nr(_, e) && u(y, e), x = (e, t) => !(t && Nr(_, t));
|
|
1476
1476
|
if (m != null && m !== p) {
|
|
1477
1477
|
if (Ir(n), g(m)) _[m] = null, b(m) && (v[m] = null);
|
|
1478
1478
|
else if (/* @__PURE__ */ F(m)) {
|
|
@@ -1649,7 +1649,7 @@ function li(e, t, n = !0, r = !1) {
|
|
|
1649
1649
|
if (i) {
|
|
1650
1650
|
let n = i.type;
|
|
1651
1651
|
if (e === ai) {
|
|
1652
|
-
let e =
|
|
1652
|
+
let e = So(n, !1);
|
|
1653
1653
|
if (e && (e === t || e === D(t) || e === ne(D(t)))) return n;
|
|
1654
1654
|
}
|
|
1655
1655
|
let a = ui(i[e] || n[e], t) || ui(i.appContext[e], t);
|
|
@@ -1716,7 +1716,7 @@ function pi(e, t, n, r, i, a) {
|
|
|
1716
1716
|
function mi(e) {
|
|
1717
1717
|
return e.some((e) => !Ha(e) || !(e.type === R || e.type === Aa && !mi(e.children))) ? e : null;
|
|
1718
1718
|
}
|
|
1719
|
-
var hi = (e) => e ? po(e) ?
|
|
1719
|
+
var hi = (e) => e ? po(e) ? xo(e) : hi(e.parent) : null, gi = /* @__PURE__ */ s(/* @__PURE__ */ Object.create(null), {
|
|
1720
1720
|
$: (e) => e,
|
|
1721
1721
|
$el: (e) => e.vnode.el,
|
|
1722
1722
|
$data: (e) => e.data,
|
|
@@ -1790,7 +1790,7 @@ function Si(e) {
|
|
|
1790
1790
|
v(t) && (e.data = /* @__PURE__ */ Rt(t));
|
|
1791
1791
|
}
|
|
1792
1792
|
if (xi = !0, o) for (let e in o) {
|
|
1793
|
-
let t = o[e], a =
|
|
1793
|
+
let t = o[e], a = wo({
|
|
1794
1794
|
get: h(t) ? t.bind(n, n) : h(t.get) ? t.get.bind(n, n) : r,
|
|
1795
1795
|
set: !h(t) && h(t.set) ? t.set.bind(n) : r
|
|
1796
1796
|
});
|
|
@@ -1958,7 +1958,7 @@ function Ri(e, t) {
|
|
|
1958
1958
|
_container: null,
|
|
1959
1959
|
_context: i,
|
|
1960
1960
|
_instance: null,
|
|
1961
|
-
version:
|
|
1961
|
+
version: Eo,
|
|
1962
1962
|
get config() {
|
|
1963
1963
|
return i.config;
|
|
1964
1964
|
},
|
|
@@ -1978,7 +1978,7 @@ function Ri(e, t) {
|
|
|
1978
1978
|
mount(a, o, s) {
|
|
1979
1979
|
if (!c) {
|
|
1980
1980
|
let u = l._ceVNode || z(n, r);
|
|
1981
|
-
return u.appContext = i, s === !0 ? s = "svg" : s === !1 && (s = void 0), o && t ? t(u, a) : e(u, a, s), c = !0, l._container = a, a.__vue_app__ = l,
|
|
1981
|
+
return u.appContext = i, s === !0 ? s = "svg" : s === !1 && (s = void 0), o && t ? t(u, a) : e(u, a, s), c = !0, l._container = a, a.__vue_app__ = l, xo(u.component);
|
|
1982
1982
|
}
|
|
1983
1983
|
},
|
|
1984
1984
|
onUnmount(e) {
|
|
@@ -2757,7 +2757,7 @@ function qa(e, t = null, n = null, r = 0, i = null, a = !1) {
|
|
|
2757
2757
|
let r = Ya(e, t, !0);
|
|
2758
2758
|
return n && to(r, n), La > 0 && !a && Pa && (r.shapeFlag & 6 ? Pa[Pa.indexOf(e)] = r : Pa.push(r)), r.patchFlag = -2, r;
|
|
2759
2759
|
}
|
|
2760
|
-
if (
|
|
2760
|
+
if (Co(e) && (e = e.__vccOpts), t) {
|
|
2761
2761
|
t = Ja(t);
|
|
2762
2762
|
let { class: e, style: n } = t;
|
|
2763
2763
|
e && !g(e) && (t.class = me(e)), v(n) && (/* @__PURE__ */ Kt(n) && !d(n) && (n = s({}, n)), t.style = le(n));
|
|
@@ -2964,7 +2964,7 @@ function go(e, t) {
|
|
|
2964
2964
|
let { setup: r } = n;
|
|
2965
2965
|
if (r) {
|
|
2966
2966
|
We();
|
|
2967
|
-
let n = e.setupContext = r.length > 1 ?
|
|
2967
|
+
let n = e.setupContext = r.length > 1 ? bo(e) : null, i = uo(e), a = bn(r, e, 0, [e.props, n]), o = y(a);
|
|
2968
2968
|
if (Ge(), i(), (o || e.sp) && !zr(e) && Mr(e), o) {
|
|
2969
2969
|
if (a.then(fo, fo), t) return a.then((n) => {
|
|
2970
2970
|
lo(!0);
|
|
@@ -2978,27 +2978,13 @@ function go(e, t) {
|
|
|
2978
2978
|
});
|
|
2979
2979
|
e.asyncDep = a;
|
|
2980
2980
|
} else _o(e, a, t);
|
|
2981
|
-
} else
|
|
2981
|
+
} else vo(e, t);
|
|
2982
2982
|
}
|
|
2983
2983
|
function _o(e, t, n) {
|
|
2984
|
-
h(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : v(t) && (e.setupState = rn(t)),
|
|
2985
|
-
}
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
let i = e.type;
|
|
2989
|
-
if (!e.render) {
|
|
2990
|
-
if (!t && vo && !i.render) {
|
|
2991
|
-
let t = i.template || Ei(e).template;
|
|
2992
|
-
if (t) {
|
|
2993
|
-
let { isCustomElement: n, compilerOptions: r } = e.appContext.config, { delimiters: a, compilerOptions: o } = i;
|
|
2994
|
-
i.render = vo(t, s(s({
|
|
2995
|
-
isCustomElement: n,
|
|
2996
|
-
delimiters: a
|
|
2997
|
-
}, r), o));
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
e.render = i.render || r, yo && yo(e);
|
|
3001
|
-
}
|
|
2984
|
+
h(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : v(t) && (e.setupState = rn(t)), vo(e, n);
|
|
2985
|
+
}
|
|
2986
|
+
function vo(e, t, n) {
|
|
2987
|
+
e.render ||= e.type.render || r;
|
|
3002
2988
|
{
|
|
3003
2989
|
let t = uo(e);
|
|
3004
2990
|
We();
|
|
@@ -3009,12 +2995,12 @@ function bo(e, t, n) {
|
|
|
3009
2995
|
}
|
|
3010
2996
|
}
|
|
3011
2997
|
}
|
|
3012
|
-
var
|
|
2998
|
+
var yo = { get(e, t) {
|
|
3013
2999
|
return N(e, "get", ""), e[t];
|
|
3014
3000
|
} };
|
|
3015
|
-
function
|
|
3001
|
+
function bo(e) {
|
|
3016
3002
|
return {
|
|
3017
|
-
attrs: new Proxy(e.attrs,
|
|
3003
|
+
attrs: new Proxy(e.attrs, yo),
|
|
3018
3004
|
slots: e.slots,
|
|
3019
3005
|
emit: e.emit,
|
|
3020
3006
|
expose: (t) => {
|
|
@@ -3022,7 +3008,7 @@ function So(e) {
|
|
|
3022
3008
|
}
|
|
3023
3009
|
};
|
|
3024
3010
|
}
|
|
3025
|
-
function
|
|
3011
|
+
function xo(e) {
|
|
3026
3012
|
return e.exposed ? e.exposeProxy ||= new Proxy(rn(qt(e.exposed)), {
|
|
3027
3013
|
get(t, n) {
|
|
3028
3014
|
if (n in t) return t[n];
|
|
@@ -3033,14 +3019,14 @@ function Co(e) {
|
|
|
3033
3019
|
}
|
|
3034
3020
|
}) : e.proxy;
|
|
3035
3021
|
}
|
|
3036
|
-
function
|
|
3022
|
+
function So(e, t = !0) {
|
|
3037
3023
|
return h(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
3038
3024
|
}
|
|
3039
|
-
function
|
|
3025
|
+
function Co(e) {
|
|
3040
3026
|
return h(e) && "__vccOpts" in e;
|
|
3041
3027
|
}
|
|
3042
|
-
var
|
|
3043
|
-
function
|
|
3028
|
+
var wo = (e, t) => /* @__PURE__ */ pn(e, t, mo);
|
|
3029
|
+
function To(e, t, n) {
|
|
3044
3030
|
try {
|
|
3045
3031
|
Ra(-1);
|
|
3046
3032
|
let r = arguments.length;
|
|
@@ -3049,11 +3035,11 @@ function Do(e, t, n) {
|
|
|
3049
3035
|
Ra(1);
|
|
3050
3036
|
}
|
|
3051
3037
|
}
|
|
3052
|
-
var
|
|
3053
|
-
if (
|
|
3054
|
-
|
|
3038
|
+
var Eo = "3.5.41", Do = void 0, Oo = typeof window < "u" && window.trustedTypes;
|
|
3039
|
+
if (Oo) try {
|
|
3040
|
+
Do = /* @__PURE__ */ Oo.createPolicy("vue", { createHTML: (e) => e });
|
|
3055
3041
|
} catch {}
|
|
3056
|
-
var
|
|
3042
|
+
var ko = Do ? (e) => Do.createHTML(e) : (e) => e, Ao = "http://www.w3.org/2000/svg", jo = "http://www.w3.org/1998/Math/MathML", Mo = typeof document < "u" ? document : null, No = Mo && /* @__PURE__ */ Mo.createElement("template"), Po = {
|
|
3057
3043
|
insert: (e, t, n) => {
|
|
3058
3044
|
t.insertBefore(e, n || null);
|
|
3059
3045
|
},
|
|
@@ -3062,11 +3048,11 @@ var jo = ko ? (e) => ko.createHTML(e) : (e) => e, Mo = "http://www.w3.org/2000/s
|
|
|
3062
3048
|
t && t.removeChild(e);
|
|
3063
3049
|
},
|
|
3064
3050
|
createElement: (e, t, n, r) => {
|
|
3065
|
-
let i = t === "svg" ?
|
|
3051
|
+
let i = t === "svg" ? Mo.createElementNS(Ao, e) : t === "mathml" ? Mo.createElementNS(jo, e) : n ? Mo.createElement(e, { is: n }) : Mo.createElement(e);
|
|
3066
3052
|
return e === "select" && r && r.multiple != null && i.setAttribute("multiple", r.multiple), i;
|
|
3067
3053
|
},
|
|
3068
|
-
createText: (e) =>
|
|
3069
|
-
createComment: (e) =>
|
|
3054
|
+
createText: (e) => Mo.createTextNode(e),
|
|
3055
|
+
createComment: (e) => Mo.createComment(e),
|
|
3070
3056
|
setText: (e, t) => {
|
|
3071
3057
|
e.nodeValue = t;
|
|
3072
3058
|
},
|
|
@@ -3075,7 +3061,7 @@ var jo = ko ? (e) => ko.createHTML(e) : (e) => e, Mo = "http://www.w3.org/2000/s
|
|
|
3075
3061
|
},
|
|
3076
3062
|
parentNode: (e) => e.parentNode,
|
|
3077
3063
|
nextSibling: (e) => e.nextSibling,
|
|
3078
|
-
querySelector: (e) =>
|
|
3064
|
+
querySelector: (e) => Mo.querySelector(e),
|
|
3079
3065
|
setScopeId(e, t) {
|
|
3080
3066
|
e.setAttribute(t, "");
|
|
3081
3067
|
},
|
|
@@ -3083,8 +3069,8 @@ var jo = ko ? (e) => ko.createHTML(e) : (e) => e, Mo = "http://www.w3.org/2000/s
|
|
|
3083
3069
|
let o = n ? n.previousSibling : t.lastChild;
|
|
3084
3070
|
if (i && (i === a || i.nextSibling)) for (; t.insertBefore(i.cloneNode(!0), n), !(i === a || !(i = i.nextSibling)););
|
|
3085
3071
|
else {
|
|
3086
|
-
|
|
3087
|
-
let i =
|
|
3072
|
+
No.innerHTML = ko(r === "svg" ? `<svg>${e}</svg>` : r === "mathml" ? `<math>${e}</math>` : e);
|
|
3073
|
+
let i = No.content;
|
|
3088
3074
|
if (r === "svg" || r === "mathml") {
|
|
3089
3075
|
let e = i.firstChild;
|
|
3090
3076
|
for (; e.firstChild;) i.appendChild(e.firstChild);
|
|
@@ -3094,7 +3080,7 @@ var jo = ko ? (e) => ko.createHTML(e) : (e) => e, Mo = "http://www.w3.org/2000/s
|
|
|
3094
3080
|
}
|
|
3095
3081
|
return [o ? o.nextSibling : t.firstChild, n ? n.previousSibling : t.lastChild];
|
|
3096
3082
|
}
|
|
3097
|
-
},
|
|
3083
|
+
}, Fo = "transition", Io = "animation", Lo = /* @__PURE__ */ Symbol("_vtc"), Ro = {
|
|
3098
3084
|
name: String,
|
|
3099
3085
|
type: String,
|
|
3100
3086
|
css: {
|
|
@@ -3115,81 +3101,81 @@ var jo = ko ? (e) => ko.createHTML(e) : (e) => e, Mo = "http://www.w3.org/2000/s
|
|
|
3115
3101
|
leaveFromClass: String,
|
|
3116
3102
|
leaveActiveClass: String,
|
|
3117
3103
|
leaveToClass: String
|
|
3118
|
-
},
|
|
3104
|
+
}, zo = /* @__PURE__ */ s({}, br, Ro), Bo = /* @__PURE__ */ ((e) => (e.displayName = "Transition", e.props = zo, e))((e, { slots: t }) => To(wr, Uo(e), t)), Vo = (e, t = []) => {
|
|
3119
3105
|
d(e) ? e.forEach((e) => e(...t)) : e && e(...t);
|
|
3120
|
-
},
|
|
3121
|
-
function
|
|
3106
|
+
}, Ho = (e) => e ? d(e) ? e.some((e) => e.length > 1) : e.length > 1 : !1;
|
|
3107
|
+
function Uo(e) {
|
|
3122
3108
|
let t = {};
|
|
3123
|
-
for (let n in e) n in
|
|
3109
|
+
for (let n in e) n in Ro || (t[n] = e[n]);
|
|
3124
3110
|
if (e.css === !1) return t;
|
|
3125
|
-
let { name: n = "v", type: r, duration: i, enterFromClass: a = `${n}-enter-from`, enterActiveClass: o = `${n}-enter-active`, enterToClass: c = `${n}-enter-to`, appearFromClass: l = a, appearActiveClass: u = o, appearToClass: d = c, leaveFromClass: f = `${n}-leave-from`, leaveActiveClass: p = `${n}-leave-active`, leaveToClass: m = `${n}-leave-to` } = e, h =
|
|
3126
|
-
e._enterCancelled = r,
|
|
3111
|
+
let { name: n = "v", type: r, duration: i, enterFromClass: a = `${n}-enter-from`, enterActiveClass: o = `${n}-enter-active`, enterToClass: c = `${n}-enter-to`, appearFromClass: l = a, appearActiveClass: u = o, appearToClass: d = c, leaveFromClass: f = `${n}-leave-from`, leaveActiveClass: p = `${n}-leave-active`, leaveToClass: m = `${n}-leave-to` } = e, h = Wo(i), g = h && h[0], _ = h && h[1], { onBeforeEnter: v, onEnter: y, onEnterCancelled: b, onLeave: x, onLeaveCancelled: S, onBeforeAppear: C = v, onAppear: w = y, onAppearCancelled: T = b } = t, E = (e, t, n, r) => {
|
|
3112
|
+
e._enterCancelled = r, qo(e, t ? d : c), qo(e, t ? u : o), n && n();
|
|
3127
3113
|
}, ee = (e, t) => {
|
|
3128
|
-
e._isLeaving = !1,
|
|
3114
|
+
e._isLeaving = !1, qo(e, f), qo(e, m), qo(e, p), t && t();
|
|
3129
3115
|
}, D = (e) => (t, n) => {
|
|
3130
3116
|
let i = e ? w : y, o = () => E(t, e, n);
|
|
3131
|
-
|
|
3132
|
-
|
|
3117
|
+
Vo(i, [t, o]), Jo(() => {
|
|
3118
|
+
qo(t, e ? l : a), Ko(t, e ? d : c), Ho(i) || Xo(t, r, g, o);
|
|
3133
3119
|
});
|
|
3134
3120
|
};
|
|
3135
3121
|
return s(t, {
|
|
3136
3122
|
onBeforeEnter(e) {
|
|
3137
|
-
|
|
3123
|
+
Vo(v, [e]), Ko(e, a), Ko(e, o);
|
|
3138
3124
|
},
|
|
3139
3125
|
onBeforeAppear(e) {
|
|
3140
|
-
|
|
3126
|
+
Vo(C, [e]), Ko(e, l), Ko(e, u);
|
|
3141
3127
|
},
|
|
3142
3128
|
onEnter: D(!1),
|
|
3143
3129
|
onAppear: D(!0),
|
|
3144
3130
|
onLeave(e, t) {
|
|
3145
3131
|
e._isLeaving = !0;
|
|
3146
3132
|
let n = () => ee(e, t);
|
|
3147
|
-
|
|
3148
|
-
e._isLeaving && (
|
|
3149
|
-
}),
|
|
3133
|
+
Ko(e, f), Ko(e, p), Jo(() => {
|
|
3134
|
+
e._isLeaving && (qo(e, f), Ko(e, m), Ho(x) || Xo(e, r, _, n));
|
|
3135
|
+
}), Vo(x, [e, n]);
|
|
3150
3136
|
},
|
|
3151
3137
|
onEnterCancelled(e) {
|
|
3152
|
-
E(e, !1, void 0, !0),
|
|
3138
|
+
E(e, !1, void 0, !0), Vo(b, [e]);
|
|
3153
3139
|
},
|
|
3154
3140
|
onAppearCancelled(e) {
|
|
3155
|
-
E(e, !0, void 0, !0),
|
|
3141
|
+
E(e, !0, void 0, !0), Vo(T, [e]);
|
|
3156
3142
|
},
|
|
3157
3143
|
onLeaveCancelled(e) {
|
|
3158
|
-
ee(e),
|
|
3144
|
+
ee(e), Vo(S, [e]);
|
|
3159
3145
|
}
|
|
3160
3146
|
});
|
|
3161
3147
|
}
|
|
3162
|
-
function
|
|
3148
|
+
function Wo(e) {
|
|
3163
3149
|
if (e == null) return null;
|
|
3164
|
-
if (v(e)) return [
|
|
3150
|
+
if (v(e)) return [Go(e.enter), Go(e.leave)];
|
|
3165
3151
|
{
|
|
3166
|
-
let t =
|
|
3152
|
+
let t = Go(e);
|
|
3167
3153
|
return [t, t];
|
|
3168
3154
|
}
|
|
3169
3155
|
}
|
|
3170
|
-
function
|
|
3156
|
+
function Go(e) {
|
|
3171
3157
|
return oe(e);
|
|
3172
3158
|
}
|
|
3173
|
-
function
|
|
3174
|
-
t.split(/\s+/).forEach((t) => t && e.classList.add(t)), (e[
|
|
3159
|
+
function Ko(e, t) {
|
|
3160
|
+
t.split(/\s+/).forEach((t) => t && e.classList.add(t)), (e[Lo] || (e[Lo] = /* @__PURE__ */ new Set())).add(t);
|
|
3175
3161
|
}
|
|
3176
|
-
function
|
|
3162
|
+
function qo(e, t) {
|
|
3177
3163
|
t.split(/\s+/).forEach((t) => t && e.classList.remove(t));
|
|
3178
|
-
let n = e[
|
|
3179
|
-
n && (n.delete(t), n.size || (e[
|
|
3164
|
+
let n = e[Lo];
|
|
3165
|
+
n && (n.delete(t), n.size || (e[Lo] = void 0));
|
|
3180
3166
|
}
|
|
3181
|
-
function
|
|
3167
|
+
function Jo(e) {
|
|
3182
3168
|
requestAnimationFrame(() => {
|
|
3183
3169
|
requestAnimationFrame(e);
|
|
3184
3170
|
});
|
|
3185
3171
|
}
|
|
3186
|
-
var
|
|
3187
|
-
function
|
|
3188
|
-
let i = e._endId = ++
|
|
3172
|
+
var Yo = 0;
|
|
3173
|
+
function Xo(e, t, n, r) {
|
|
3174
|
+
let i = e._endId = ++Yo, a = () => {
|
|
3189
3175
|
i === e._endId && r();
|
|
3190
3176
|
};
|
|
3191
3177
|
if (n != null) return setTimeout(a, n);
|
|
3192
|
-
let { type: o, timeout: s, propCount: c } =
|
|
3178
|
+
let { type: o, timeout: s, propCount: c } = Zo(e, t);
|
|
3193
3179
|
if (!o) return r();
|
|
3194
3180
|
let l = o + "end", u = 0, d = () => {
|
|
3195
3181
|
e.removeEventListener(l, f), a();
|
|
@@ -3200,10 +3186,10 @@ function Qo(e, t, n, r) {
|
|
|
3200
3186
|
u < c && d();
|
|
3201
3187
|
}, s + 1), e.addEventListener(l, f);
|
|
3202
3188
|
}
|
|
3203
|
-
function
|
|
3204
|
-
let n = window.getComputedStyle(e), r = (e) => (n[e] || "").split(", "), i = r(`${
|
|
3205
|
-
t ===
|
|
3206
|
-
let p = u ===
|
|
3189
|
+
function Zo(e, t) {
|
|
3190
|
+
let n = window.getComputedStyle(e), r = (e) => (n[e] || "").split(", "), i = r(`${Fo}Delay`), a = r(`${Fo}Duration`), o = Qo(i, a), s = r(`${Io}Delay`), c = r(`${Io}Duration`), l = Qo(s, c), u = null, d = 0, f = 0;
|
|
3191
|
+
t === Fo ? o > 0 && (u = Fo, d = o, f = a.length) : t === Io ? l > 0 && (u = Io, d = l, f = c.length) : (d = Math.max(o, l), u = d > 0 ? o > l ? Fo : Io : null, f = u ? u === Fo ? a.length : c.length : 0);
|
|
3192
|
+
let p = u === Fo && /\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());
|
|
3207
3193
|
return {
|
|
3208
3194
|
type: u,
|
|
3209
3195
|
timeout: d,
|
|
@@ -3211,97 +3197,97 @@ function $o(e, t) {
|
|
|
3211
3197
|
hasTransform: p
|
|
3212
3198
|
};
|
|
3213
3199
|
}
|
|
3214
|
-
function
|
|
3200
|
+
function Qo(e, t) {
|
|
3215
3201
|
for (; e.length < t.length;) e = e.concat(e);
|
|
3216
|
-
return Math.max(...t.map((t, n) =>
|
|
3202
|
+
return Math.max(...t.map((t, n) => $o(t) + $o(e[n])));
|
|
3217
3203
|
}
|
|
3218
|
-
function
|
|
3204
|
+
function $o(e) {
|
|
3219
3205
|
return e === "auto" ? 0 : Number(e.slice(0, -1).replace(",", ".")) * 1e3;
|
|
3220
3206
|
}
|
|
3221
|
-
function
|
|
3222
|
-
let r = e[
|
|
3207
|
+
function es(e, t, n) {
|
|
3208
|
+
let r = e[Lo];
|
|
3223
3209
|
r && (t = (t ? [t, ...r] : [...r]).join(" ")), t == null ? e.removeAttribute("class") : n ? e.setAttribute("class", t) : e.className = t;
|
|
3224
3210
|
}
|
|
3225
|
-
var
|
|
3211
|
+
var ts = /* @__PURE__ */ Symbol("_vod"), ns = /* @__PURE__ */ Symbol("_vsh"), rs = {
|
|
3226
3212
|
name: "show",
|
|
3227
3213
|
beforeMount(e, { value: t }, { transition: n }) {
|
|
3228
|
-
e[
|
|
3214
|
+
e[ts] = e.style.display === "none" ? "" : e.style.display, n && t ? n.beforeEnter(e) : is(e, t);
|
|
3229
3215
|
},
|
|
3230
3216
|
mounted(e, { value: t }, { transition: n }) {
|
|
3231
3217
|
n && t && n.enter(e);
|
|
3232
3218
|
},
|
|
3233
3219
|
updated(e, { value: t, oldValue: n }, { transition: r }) {
|
|
3234
|
-
!t != !n && (r ? t ? (r.beforeEnter(e),
|
|
3235
|
-
|
|
3236
|
-
}) :
|
|
3220
|
+
!t != !n && (r ? t ? (r.beforeEnter(e), is(e, !0), r.enter(e)) : r.leave(e, () => {
|
|
3221
|
+
is(e, !1);
|
|
3222
|
+
}) : is(e, t));
|
|
3237
3223
|
},
|
|
3238
3224
|
beforeUnmount(e, { value: t }) {
|
|
3239
|
-
|
|
3225
|
+
is(e, t);
|
|
3240
3226
|
}
|
|
3241
3227
|
};
|
|
3242
|
-
function
|
|
3243
|
-
e.style.display = t ? e[
|
|
3228
|
+
function is(e, t) {
|
|
3229
|
+
e.style.display = t ? e[ts] : "none", e[ns] = !t;
|
|
3244
3230
|
}
|
|
3245
|
-
var
|
|
3246
|
-
function
|
|
3231
|
+
var as = /* @__PURE__ */ Symbol(""), os = /(?:^|;)\s*display\s*:/;
|
|
3232
|
+
function ss(e, t, n) {
|
|
3247
3233
|
let r = e.style, i = g(n), a = !1;
|
|
3248
3234
|
if (n && !i) {
|
|
3249
3235
|
if (t) {
|
|
3250
3236
|
if (g(t)) for (let e of t.split(";")) {
|
|
3251
3237
|
let t = e.slice(0, e.indexOf(":")).trim();
|
|
3252
|
-
n[t] ??
|
|
3238
|
+
n[t] ?? ls(r, t, "");
|
|
3253
3239
|
}
|
|
3254
|
-
else for (let e in t) n[e] ??
|
|
3240
|
+
else for (let e in t) n[e] ?? ls(r, e, "");
|
|
3255
3241
|
}
|
|
3256
3242
|
for (let i in n) {
|
|
3257
3243
|
i === "display" && (a = !0);
|
|
3258
3244
|
let o = n[i];
|
|
3259
|
-
o == null ?
|
|
3245
|
+
o == null ? ls(r, i, "") : ps(e, i, !g(t) && t ? t[i] : void 0, o) || ls(r, i, o);
|
|
3260
3246
|
}
|
|
3261
3247
|
} else if (i) {
|
|
3262
3248
|
if (t !== n) {
|
|
3263
|
-
let e = r[
|
|
3264
|
-
e && (n += ";" + e), r.cssText = n, a =
|
|
3249
|
+
let e = r[as];
|
|
3250
|
+
e && (n += ";" + e), r.cssText = n, a = os.test(n);
|
|
3265
3251
|
}
|
|
3266
3252
|
} else t && e.removeAttribute("style");
|
|
3267
|
-
|
|
3253
|
+
ts in e && (e[ts] = a ? r.display : "", e[ns] && (r.display = "none"));
|
|
3268
3254
|
}
|
|
3269
|
-
var
|
|
3270
|
-
function
|
|
3271
|
-
if (d(n)) n.forEach((n) =>
|
|
3255
|
+
var cs = /\s*!important$/;
|
|
3256
|
+
function ls(e, t, n) {
|
|
3257
|
+
if (d(n)) n.forEach((n) => ls(e, t, n));
|
|
3272
3258
|
else if (n ??= "", t.startsWith("--")) e.setProperty(t, n);
|
|
3273
3259
|
else {
|
|
3274
|
-
let r =
|
|
3275
|
-
|
|
3260
|
+
let r = fs(e, t);
|
|
3261
|
+
cs.test(n) ? e.setProperty(O(r), n.replace(cs, ""), "important") : e[r] = n;
|
|
3276
3262
|
}
|
|
3277
3263
|
}
|
|
3278
|
-
var
|
|
3264
|
+
var us = [
|
|
3279
3265
|
"Webkit",
|
|
3280
3266
|
"Moz",
|
|
3281
3267
|
"ms"
|
|
3282
|
-
],
|
|
3283
|
-
function
|
|
3284
|
-
let n =
|
|
3268
|
+
], ds = {};
|
|
3269
|
+
function fs(e, t) {
|
|
3270
|
+
let n = ds[t];
|
|
3285
3271
|
if (n) return n;
|
|
3286
3272
|
let r = D(t);
|
|
3287
|
-
if (r !== "filter" && r in e) return
|
|
3273
|
+
if (r !== "filter" && r in e) return ds[t] = r;
|
|
3288
3274
|
r = ne(r);
|
|
3289
|
-
for (let n = 0; n <
|
|
3290
|
-
let i =
|
|
3291
|
-
if (i in e) return
|
|
3275
|
+
for (let n = 0; n < us.length; n++) {
|
|
3276
|
+
let i = us[n] + r;
|
|
3277
|
+
if (i in e) return ds[t] = i;
|
|
3292
3278
|
}
|
|
3293
3279
|
return t;
|
|
3294
3280
|
}
|
|
3295
|
-
function
|
|
3281
|
+
function ps(e, t, n, r) {
|
|
3296
3282
|
return e.tagName === "TEXTAREA" && (t === "width" || t === "height") && g(r) && n === r;
|
|
3297
3283
|
}
|
|
3298
|
-
var
|
|
3299
|
-
function
|
|
3300
|
-
r && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(
|
|
3284
|
+
var ms = "http://www.w3.org/1999/xlink";
|
|
3285
|
+
function hs(e, t, n, r, i, a = ge(t)) {
|
|
3286
|
+
r && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(ms, t.slice(6, t.length)) : e.setAttributeNS(ms, t, n) : n == null || a && !_e(n) ? e.removeAttribute(t) : e.setAttribute(t, a ? "" : _(n) ? String(n) : n);
|
|
3301
3287
|
}
|
|
3302
|
-
function
|
|
3288
|
+
function gs(e, t, n, r, i) {
|
|
3303
3289
|
if (t === "innerHTML" || t === "textContent") {
|
|
3304
|
-
n != null && (e[t] = t === "innerHTML" ?
|
|
3290
|
+
n != null && (e[t] = t === "innerHTML" ? ko(n) : n);
|
|
3305
3291
|
return;
|
|
3306
3292
|
}
|
|
3307
3293
|
let a = e.tagName;
|
|
@@ -3320,29 +3306,29 @@ function vs(e, t, n, r, i) {
|
|
|
3320
3306
|
} catch {}
|
|
3321
3307
|
o && e.removeAttribute(i || t);
|
|
3322
3308
|
}
|
|
3323
|
-
function
|
|
3309
|
+
function _s(e, t, n, r) {
|
|
3324
3310
|
e.addEventListener(t, n, r);
|
|
3325
3311
|
}
|
|
3326
|
-
function
|
|
3312
|
+
function vs(e, t, n, r) {
|
|
3327
3313
|
e.removeEventListener(t, n, r);
|
|
3328
3314
|
}
|
|
3329
|
-
var
|
|
3330
|
-
function
|
|
3331
|
-
let a = e[
|
|
3315
|
+
var ys = /* @__PURE__ */ Symbol("_vei");
|
|
3316
|
+
function bs(e, t, n, r, i = null) {
|
|
3317
|
+
let a = e[ys] || (e[ys] = {}), o = a[t];
|
|
3332
3318
|
if (r && o) o.value = r;
|
|
3333
3319
|
else {
|
|
3334
|
-
let [n, s] =
|
|
3335
|
-
r ?
|
|
3320
|
+
let [n, s] = Cs(t);
|
|
3321
|
+
r ? _s(e, n, a[t] = Ds(r, i), s) : o && (vs(e, n, o, s), a[t] = void 0);
|
|
3336
3322
|
}
|
|
3337
3323
|
}
|
|
3338
|
-
var
|
|
3339
|
-
function
|
|
3324
|
+
var xs = /(Once|Passive|Capture)$/, Ss = /^on:?(?:Once|Passive|Capture)$/;
|
|
3325
|
+
function Cs(e) {
|
|
3340
3326
|
let t, n;
|
|
3341
|
-
for (; (n = e.match(
|
|
3327
|
+
for (; (n = e.match(xs)) && !Ss.test(e);) t ||= {}, e = e.slice(0, e.length - n[1].length), t[n[1].toLowerCase()] = !0;
|
|
3342
3328
|
return [e[2] === ":" ? e.slice(3) : O(e.slice(2)), t];
|
|
3343
3329
|
}
|
|
3344
|
-
var
|
|
3345
|
-
function
|
|
3330
|
+
var ws = 0, Ts = /* @__PURE__ */ Promise.resolve(), Es = () => ws ||= (Ts.then(() => ws = 0), Date.now());
|
|
3331
|
+
function Ds(e, t) {
|
|
3346
3332
|
let n = (e) => {
|
|
3347
3333
|
if (!e._vts) e._vts = Date.now();
|
|
3348
3334
|
else if (e._vts <= n.attached) return;
|
|
@@ -3359,94 +3345,94 @@ function ks(e, t) {
|
|
|
3359
3345
|
}
|
|
3360
3346
|
} else xn(r, t, 5, [e]);
|
|
3361
3347
|
};
|
|
3362
|
-
return n.value = e, n.attached =
|
|
3348
|
+
return n.value = e, n.attached = Es(), n;
|
|
3363
3349
|
}
|
|
3364
|
-
var
|
|
3350
|
+
var Os = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, ks = (e, t, n, r, i, s) => {
|
|
3365
3351
|
let c = i === "svg";
|
|
3366
|
-
t === "class" ?
|
|
3352
|
+
t === "class" ? es(e, r, c) : t === "style" ? ss(e, n, r) : a(t) ? o(t) || bs(e, t, n, r, s) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : As(e, t, r, c)) ? (gs(e, t, r), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && hs(e, t, r, c, s, t !== "value")) : e._isVueCE && (js(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !g(r))) ? gs(e, D(t), r, s, t) : (t === "true-value" ? e._trueValue = r : t === "false-value" && (e._falseValue = r), hs(e, t, r, c));
|
|
3367
3353
|
};
|
|
3368
|
-
function
|
|
3369
|
-
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e &&
|
|
3354
|
+
function As(e, t, n, r) {
|
|
3355
|
+
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e && Os(t) && h(n));
|
|
3370
3356
|
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA") return !1;
|
|
3371
3357
|
if (t === "width" || t === "height") {
|
|
3372
3358
|
let t = e.tagName;
|
|
3373
3359
|
if (t === "IMG" || t === "VIDEO" || t === "CANVAS" || t === "SOURCE") return !1;
|
|
3374
3360
|
}
|
|
3375
|
-
return
|
|
3361
|
+
return Os(t) && g(n) ? !1 : t in e;
|
|
3376
3362
|
}
|
|
3377
|
-
function
|
|
3363
|
+
function js(e, t) {
|
|
3378
3364
|
let n = e._def.props;
|
|
3379
3365
|
if (!n) return !1;
|
|
3380
3366
|
let r = D(t);
|
|
3381
3367
|
return Array.isArray(n) ? n.some((e) => D(e) === r) : Object.keys(n).some((e) => D(e) === r);
|
|
3382
3368
|
}
|
|
3383
|
-
var
|
|
3369
|
+
var Ms = (e) => {
|
|
3384
3370
|
let t = e.props["onUpdate:modelValue"] || !1;
|
|
3385
3371
|
return d(t) ? (e) => ie(t, e) : t;
|
|
3386
3372
|
};
|
|
3387
|
-
function
|
|
3373
|
+
function Ns(e) {
|
|
3388
3374
|
e.target.composing = !0;
|
|
3389
3375
|
}
|
|
3390
|
-
function
|
|
3376
|
+
function Ps(e) {
|
|
3391
3377
|
let t = e.target;
|
|
3392
3378
|
t.composing && (t.composing = !1, t.dispatchEvent(new Event("input")));
|
|
3393
3379
|
}
|
|
3394
|
-
var
|
|
3395
|
-
function
|
|
3380
|
+
var Fs = /* @__PURE__ */ Symbol("_assign"), Is = /* @__PURE__ */ Symbol("_initialValue");
|
|
3381
|
+
function Ls(e, t, n) {
|
|
3396
3382
|
return t && (e = e.trim()), n && (e = ae(e)), e;
|
|
3397
3383
|
}
|
|
3398
|
-
var
|
|
3384
|
+
var Rs = {
|
|
3399
3385
|
created(e, { modifiers: { lazy: t, trim: n, number: r } }, i) {
|
|
3400
|
-
e.parentNode && (e.type === "text" ? e[
|
|
3386
|
+
e.parentNode && (e.type === "text" ? e[Is] = e.defaultValue.replace(/[\r\n]/g, "") : e.type === "textarea" && (e[Is] = e.defaultValue.replace(/\r\n?/g, "\n"))), e[Fs] = Ms(i);
|
|
3401
3387
|
let a = r || i.props && i.props.type === "number";
|
|
3402
|
-
|
|
3403
|
-
t.target.composing || e[
|
|
3404
|
-
}), (n || a) &&
|
|
3405
|
-
e.value =
|
|
3406
|
-
}), t || (
|
|
3388
|
+
_s(e, t ? "change" : "input", (t) => {
|
|
3389
|
+
t.target.composing || e[Fs](Ls(e.value, n, a));
|
|
3390
|
+
}), (n || a) && _s(e, "change", () => {
|
|
3391
|
+
e.value = Ls(e.value, n, a);
|
|
3392
|
+
}), t || (_s(e, "compositionstart", Ns), _s(e, "compositionend", Ps), _s(e, "change", Ps));
|
|
3407
3393
|
},
|
|
3408
3394
|
mounted(e, { value: t, modifiers: { trim: n, number: r } }) {
|
|
3409
|
-
let i = t ?? "", a = e[
|
|
3410
|
-
delete e[
|
|
3395
|
+
let i = t ?? "", a = e[Is];
|
|
3396
|
+
delete e[Is], a !== void 0 && (e.type === "text" || e.type === "textarea") && e.value !== a ? e[Fs](Ls(e.value, n, r)) : e.value = i;
|
|
3411
3397
|
},
|
|
3412
3398
|
beforeUpdate(e, { value: t, oldValue: n, modifiers: { lazy: r, trim: i, number: a } }, o) {
|
|
3413
|
-
if (e[
|
|
3399
|
+
if (e[Fs] = Ms(o), e.composing) return;
|
|
3414
3400
|
let s = (a || e.type === "number") && !/^0\d/.test(e.value) ? ae(e.value) : e.value, c = t ?? "";
|
|
3415
3401
|
if (s === c) return;
|
|
3416
3402
|
let l = e.getRootNode();
|
|
3417
3403
|
(l instanceof Document || l instanceof ShadowRoot) && l.activeElement === e && e.type !== "range" && (r && t === n || i && e.value.trim() === c) || (e.value = c);
|
|
3418
3404
|
}
|
|
3419
|
-
},
|
|
3405
|
+
}, zs = {
|
|
3420
3406
|
deep: !0,
|
|
3421
3407
|
created(e, { value: t, modifiers: { number: n } }, r) {
|
|
3422
|
-
e._modelValue = t,
|
|
3423
|
-
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(
|
|
3424
|
-
e[
|
|
3408
|
+
e._modelValue = t, _s(e, "change", () => {
|
|
3409
|
+
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(Vs(e)) : Vs(e));
|
|
3410
|
+
e[Fs](e.multiple ? p(e._modelValue) ? new Set(t) : t : t[0]), e._assigning = !0, jn(() => {
|
|
3425
3411
|
e._assigning = !1;
|
|
3426
3412
|
});
|
|
3427
|
-
}), e[
|
|
3413
|
+
}), e[Fs] = Ms(r);
|
|
3428
3414
|
},
|
|
3429
3415
|
mounted(e, { value: t }) {
|
|
3430
|
-
|
|
3416
|
+
Bs(e, t);
|
|
3431
3417
|
},
|
|
3432
3418
|
beforeUpdate(e, { value: t }, n) {
|
|
3433
|
-
e._modelValue = t, e[
|
|
3419
|
+
e._modelValue = t, e[Fs] = Ms(n);
|
|
3434
3420
|
},
|
|
3435
3421
|
updated(e, { value: t }) {
|
|
3436
|
-
e._assigning ||
|
|
3422
|
+
e._assigning || Bs(e, t);
|
|
3437
3423
|
}
|
|
3438
3424
|
};
|
|
3439
|
-
function
|
|
3425
|
+
function Bs(e, t) {
|
|
3440
3426
|
let n = e.multiple, r = d(t);
|
|
3441
3427
|
if (!(n && !r && !p(t))) {
|
|
3442
3428
|
for (let i = 0, a = e.options.length; i < a; i++) {
|
|
3443
|
-
let a = e.options[i], o =
|
|
3429
|
+
let a = e.options[i], o = Vs(a);
|
|
3444
3430
|
if (n) {
|
|
3445
3431
|
if (r) {
|
|
3446
3432
|
let e = typeof o;
|
|
3447
3433
|
a.selected = e === "string" || e === "number" ? t.some((e) => String(e) === String(o)) : be(t, o) > -1;
|
|
3448
3434
|
} else a.selected = t.has(o);
|
|
3449
|
-
} else if (ye(
|
|
3435
|
+
} else if (ye(Vs(a), t)) {
|
|
3450
3436
|
e.selectedIndex !== i && (e.selectedIndex = i);
|
|
3451
3437
|
return;
|
|
3452
3438
|
}
|
|
@@ -3454,15 +3440,15 @@ function Hs(e, t) {
|
|
|
3454
3440
|
!n && e.selectedIndex !== -1 && (e.selectedIndex = -1);
|
|
3455
3441
|
}
|
|
3456
3442
|
}
|
|
3457
|
-
function
|
|
3443
|
+
function Vs(e) {
|
|
3458
3444
|
return "_value" in e ? e._value : e.value;
|
|
3459
3445
|
}
|
|
3460
|
-
var
|
|
3446
|
+
var Hs = [
|
|
3461
3447
|
"ctrl",
|
|
3462
3448
|
"shift",
|
|
3463
3449
|
"alt",
|
|
3464
3450
|
"meta"
|
|
3465
|
-
],
|
|
3451
|
+
], Us = {
|
|
3466
3452
|
stop: (e) => e.stopPropagation(),
|
|
3467
3453
|
prevent: (e) => e.preventDefault(),
|
|
3468
3454
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -3473,18 +3459,18 @@ var Ws = [
|
|
|
3473
3459
|
left: (e) => "button" in e && e.button !== 0,
|
|
3474
3460
|
middle: (e) => "button" in e && e.button !== 1,
|
|
3475
3461
|
right: (e) => "button" in e && e.button !== 2,
|
|
3476
|
-
exact: (e, t) =>
|
|
3477
|
-
},
|
|
3462
|
+
exact: (e, t) => Hs.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
3463
|
+
}, Ws = (e, t) => {
|
|
3478
3464
|
if (!e) return e;
|
|
3479
3465
|
let n = e._withMods ||= {}, r = t.join(".");
|
|
3480
3466
|
return n[r] || (n[r] = ((n, ...r) => {
|
|
3481
3467
|
for (let e = 0; e < t.length; e++) {
|
|
3482
|
-
let r =
|
|
3468
|
+
let r = Us[t[e]];
|
|
3483
3469
|
if (r && r(n, t)) return;
|
|
3484
3470
|
}
|
|
3485
3471
|
return e(n, ...r);
|
|
3486
3472
|
}));
|
|
3487
|
-
},
|
|
3473
|
+
}, Gs = {
|
|
3488
3474
|
esc: "escape",
|
|
3489
3475
|
space: " ",
|
|
3490
3476
|
up: "arrow-up",
|
|
@@ -3492,115 +3478,115 @@ var Ws = [
|
|
|
3492
3478
|
right: "arrow-right",
|
|
3493
3479
|
down: "arrow-down",
|
|
3494
3480
|
delete: "backspace"
|
|
3495
|
-
},
|
|
3481
|
+
}, Ks = (e, t) => {
|
|
3496
3482
|
let n = e._withKeys ||= {}, r = t.join(".");
|
|
3497
3483
|
return n[r] || (n[r] = ((n) => {
|
|
3498
3484
|
if (!("key" in n)) return;
|
|
3499
3485
|
let r = O(n.key);
|
|
3500
|
-
if (t.some((e) => e === r ||
|
|
3486
|
+
if (t.some((e) => e === r || Gs[e] === r)) return e(n);
|
|
3501
3487
|
}));
|
|
3502
|
-
},
|
|
3503
|
-
function
|
|
3504
|
-
return
|
|
3505
|
-
}
|
|
3506
|
-
var
|
|
3507
|
-
|
|
3508
|
-
}),
|
|
3509
|
-
let t =
|
|
3488
|
+
}, qs = /* @__PURE__ */ s({ patchProp: ks }, Po), Js;
|
|
3489
|
+
function Ys() {
|
|
3490
|
+
return Js ||= va(qs);
|
|
3491
|
+
}
|
|
3492
|
+
var Xs = ((...e) => {
|
|
3493
|
+
Ys().render(...e);
|
|
3494
|
+
}), Zs = ((...e) => {
|
|
3495
|
+
let t = Ys().createApp(...e), { mount: n } = t;
|
|
3510
3496
|
return t.mount = (e) => {
|
|
3511
|
-
let r =
|
|
3497
|
+
let r = $s(e);
|
|
3512
3498
|
if (!r) return;
|
|
3513
3499
|
let i = t._component;
|
|
3514
3500
|
!h(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
3515
|
-
let a = n(r, !1,
|
|
3501
|
+
let a = n(r, !1, Qs(r));
|
|
3516
3502
|
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), a;
|
|
3517
3503
|
}, t;
|
|
3518
3504
|
});
|
|
3519
|
-
function
|
|
3505
|
+
function Qs(e) {
|
|
3520
3506
|
if (e instanceof SVGElement) return "svg";
|
|
3521
3507
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
|
|
3522
3508
|
}
|
|
3523
|
-
function
|
|
3509
|
+
function $s(e) {
|
|
3524
3510
|
return g(e) ? document.querySelector(e) : e;
|
|
3525
3511
|
}
|
|
3526
3512
|
//#endregion
|
|
3527
3513
|
//#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
|
|
3528
|
-
var
|
|
3514
|
+
var ec = Object.defineProperty, tc = Object.getOwnPropertySymbols, nc = Object.prototype.hasOwnProperty, rc = Object.prototype.propertyIsEnumerable, ic = (e, t, n) => t in e ? ec(e, t, {
|
|
3529
3515
|
enumerable: !0,
|
|
3530
3516
|
configurable: !0,
|
|
3531
3517
|
writable: !0,
|
|
3532
3518
|
value: n
|
|
3533
|
-
}) : e[t] = n,
|
|
3534
|
-
for (var n in t ||= {})
|
|
3535
|
-
if (
|
|
3519
|
+
}) : e[t] = n, ac = (e, t) => {
|
|
3520
|
+
for (var n in t ||= {}) nc.call(t, n) && ic(e, n, t[n]);
|
|
3521
|
+
if (tc) for (var n of tc(t)) rc.call(t, n) && ic(e, n, t[n]);
|
|
3536
3522
|
return e;
|
|
3537
|
-
},
|
|
3523
|
+
}, oc = (e, t) => {
|
|
3538
3524
|
var n = {};
|
|
3539
|
-
for (var r in e)
|
|
3540
|
-
if (e != null &&
|
|
3525
|
+
for (var r in e) nc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3526
|
+
if (e != null && tc) for (var r of tc(e)) t.indexOf(r) < 0 && rc.call(e, r) && (n[r] = e[r]);
|
|
3541
3527
|
return n;
|
|
3542
|
-
},
|
|
3543
|
-
function
|
|
3544
|
-
console.warn(
|
|
3528
|
+
}, sc = "[vue-draggable-plus]: ";
|
|
3529
|
+
function cc(e) {
|
|
3530
|
+
console.warn(sc + e);
|
|
3545
3531
|
}
|
|
3546
|
-
function
|
|
3547
|
-
console.error(
|
|
3532
|
+
function lc(e) {
|
|
3533
|
+
console.error(sc + e);
|
|
3548
3534
|
}
|
|
3549
|
-
function
|
|
3535
|
+
function uc(e, t, n) {
|
|
3550
3536
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
3551
3537
|
}
|
|
3552
|
-
function
|
|
3538
|
+
function dc(e) {
|
|
3553
3539
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
3554
3540
|
}
|
|
3555
|
-
function
|
|
3556
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
3541
|
+
function fc(e) {
|
|
3542
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[dc(n)] = e[n]), t), {});
|
|
3557
3543
|
}
|
|
3558
|
-
function
|
|
3544
|
+
function pc(e, t) {
|
|
3559
3545
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
3560
3546
|
}
|
|
3561
|
-
function
|
|
3547
|
+
function mc(e, t, n) {
|
|
3562
3548
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
3563
3549
|
}
|
|
3564
|
-
function
|
|
3550
|
+
function hc(e) {
|
|
3565
3551
|
return e === void 0;
|
|
3566
3552
|
}
|
|
3567
|
-
function
|
|
3553
|
+
function gc(e) {
|
|
3568
3554
|
return typeof e == "string";
|
|
3569
3555
|
}
|
|
3570
|
-
function
|
|
3556
|
+
function _c(e, t, n) {
|
|
3571
3557
|
e.insertBefore(t, e.children[n]);
|
|
3572
3558
|
}
|
|
3573
|
-
function
|
|
3559
|
+
function vc(e) {
|
|
3574
3560
|
e.parentNode && e.parentNode.removeChild(e);
|
|
3575
3561
|
}
|
|
3576
|
-
function
|
|
3562
|
+
function yc(e, t = document) {
|
|
3577
3563
|
let n = null;
|
|
3578
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
3564
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || cc(`Element not found: ${e}`), n;
|
|
3579
3565
|
}
|
|
3580
|
-
function
|
|
3566
|
+
function bc(e, t, n = null) {
|
|
3581
3567
|
return function(...r) {
|
|
3582
3568
|
return e.apply(n, r), t.apply(n, r);
|
|
3583
3569
|
};
|
|
3584
3570
|
}
|
|
3585
|
-
function
|
|
3586
|
-
let n =
|
|
3571
|
+
function xc(e, t) {
|
|
3572
|
+
let n = ac({}, e);
|
|
3587
3573
|
return Object.keys(t).forEach((r) => {
|
|
3588
|
-
n[r] ? n[r] =
|
|
3574
|
+
n[r] ? n[r] = bc(e[r], t[r]) : n[r] = t[r];
|
|
3589
3575
|
}), n;
|
|
3590
3576
|
}
|
|
3591
|
-
function
|
|
3577
|
+
function Sc(e) {
|
|
3592
3578
|
return e instanceof HTMLElement;
|
|
3593
3579
|
}
|
|
3594
|
-
function
|
|
3580
|
+
function Cc(e, t) {
|
|
3595
3581
|
Object.keys(e).forEach((n) => {
|
|
3596
3582
|
t(n, e[n]);
|
|
3597
3583
|
});
|
|
3598
3584
|
}
|
|
3599
|
-
function
|
|
3585
|
+
function wc(e) {
|
|
3600
3586
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
3601
3587
|
}
|
|
3602
|
-
var
|
|
3603
|
-
function
|
|
3588
|
+
var Tc = Object.assign;
|
|
3589
|
+
function Ec(e, t) {
|
|
3604
3590
|
var n = Object.keys(e);
|
|
3605
3591
|
if (Object.getOwnPropertySymbols) {
|
|
3606
3592
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -3610,26 +3596,26 @@ function Oc(e, t) {
|
|
|
3610
3596
|
}
|
|
3611
3597
|
return n;
|
|
3612
3598
|
}
|
|
3613
|
-
function
|
|
3599
|
+
function Dc(e) {
|
|
3614
3600
|
for (var t = 1; t < arguments.length; t++) {
|
|
3615
3601
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
3616
|
-
t % 2 ?
|
|
3617
|
-
|
|
3618
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3602
|
+
t % 2 ? Ec(Object(n), !0).forEach(function(t) {
|
|
3603
|
+
kc(e, t, n[t]);
|
|
3604
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ec(Object(n)).forEach(function(t) {
|
|
3619
3605
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
3620
3606
|
});
|
|
3621
3607
|
}
|
|
3622
3608
|
return e;
|
|
3623
3609
|
}
|
|
3624
|
-
function
|
|
3610
|
+
function Oc(e) {
|
|
3625
3611
|
"@babel/helpers - typeof";
|
|
3626
|
-
return
|
|
3612
|
+
return Oc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3627
3613
|
return typeof e;
|
|
3628
3614
|
} : function(e) {
|
|
3629
3615
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3630
|
-
},
|
|
3616
|
+
}, Oc(e);
|
|
3631
3617
|
}
|
|
3632
|
-
function
|
|
3618
|
+
function kc(e, t, n) {
|
|
3633
3619
|
return t in e ? Object.defineProperty(e, t, {
|
|
3634
3620
|
value: n,
|
|
3635
3621
|
enumerable: !0,
|
|
@@ -3637,45 +3623,45 @@ function jc(e, t, n) {
|
|
|
3637
3623
|
writable: !0
|
|
3638
3624
|
}) : e[t] = n, e;
|
|
3639
3625
|
}
|
|
3640
|
-
function
|
|
3641
|
-
return
|
|
3626
|
+
function Ac() {
|
|
3627
|
+
return Ac = Object.assign || function(e) {
|
|
3642
3628
|
for (var t = 1; t < arguments.length; t++) {
|
|
3643
3629
|
var n = arguments[t];
|
|
3644
3630
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3645
3631
|
}
|
|
3646
3632
|
return e;
|
|
3647
|
-
},
|
|
3633
|
+
}, Ac.apply(this, arguments);
|
|
3648
3634
|
}
|
|
3649
|
-
function
|
|
3635
|
+
function jc(e, t) {
|
|
3650
3636
|
if (e == null) return {};
|
|
3651
3637
|
var n = {}, r = Object.keys(e), i, a;
|
|
3652
3638
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
3653
3639
|
return n;
|
|
3654
3640
|
}
|
|
3655
|
-
function
|
|
3641
|
+
function Mc(e, t) {
|
|
3656
3642
|
if (e == null) return {};
|
|
3657
|
-
var n =
|
|
3643
|
+
var n = jc(e, t), r, i;
|
|
3658
3644
|
if (Object.getOwnPropertySymbols) {
|
|
3659
3645
|
var a = Object.getOwnPropertySymbols(e);
|
|
3660
3646
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
3661
3647
|
}
|
|
3662
3648
|
return n;
|
|
3663
3649
|
}
|
|
3664
|
-
var
|
|
3665
|
-
function
|
|
3650
|
+
var Nc = "1.15.2";
|
|
3651
|
+
function Pc(e) {
|
|
3666
3652
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
3667
3653
|
}
|
|
3668
|
-
var
|
|
3654
|
+
var Fc = Pc(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ic = Pc(/Edge/i), Lc = Pc(/firefox/i), Rc = Pc(/safari/i) && !Pc(/chrome/i) && !Pc(/android/i), zc = Pc(/iP(ad|od|hone)/i), Bc = Pc(/chrome/i) && Pc(/android/i), Vc = {
|
|
3669
3655
|
capture: !1,
|
|
3670
3656
|
passive: !1
|
|
3671
3657
|
};
|
|
3672
3658
|
function V(e, t, n) {
|
|
3673
|
-
e.addEventListener(t, n, !
|
|
3659
|
+
e.addEventListener(t, n, !Fc && Vc);
|
|
3674
3660
|
}
|
|
3675
3661
|
function H(e, t, n) {
|
|
3676
|
-
e.removeEventListener(t, n, !
|
|
3662
|
+
e.removeEventListener(t, n, !Fc && Vc);
|
|
3677
3663
|
}
|
|
3678
|
-
function
|
|
3664
|
+
function Hc(e, t) {
|
|
3679
3665
|
if (t) {
|
|
3680
3666
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
3681
3667
|
if (e.matches) return e.matches(t);
|
|
@@ -3687,22 +3673,22 @@ function Wc(e, t) {
|
|
|
3687
3673
|
return !1;
|
|
3688
3674
|
}
|
|
3689
3675
|
}
|
|
3690
|
-
function
|
|
3676
|
+
function Uc(e) {
|
|
3691
3677
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
3692
3678
|
}
|
|
3693
|
-
function
|
|
3679
|
+
function Wc(e, t, n, r) {
|
|
3694
3680
|
if (e) {
|
|
3695
3681
|
n ||= document;
|
|
3696
3682
|
do {
|
|
3697
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
3683
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Hc(e, t) : Hc(e, t)) || r && e === n) return e;
|
|
3698
3684
|
if (e === n) break;
|
|
3699
|
-
} while (e =
|
|
3685
|
+
} while (e = Uc(e));
|
|
3700
3686
|
}
|
|
3701
3687
|
return null;
|
|
3702
3688
|
}
|
|
3703
|
-
var
|
|
3704
|
-
function
|
|
3705
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
3689
|
+
var Gc = /\s+/g;
|
|
3690
|
+
function Kc(e, t, n) {
|
|
3691
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Gc, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Gc, " "));
|
|
3706
3692
|
}
|
|
3707
3693
|
function U(e, t, n) {
|
|
3708
3694
|
var r = e && e.style;
|
|
@@ -3711,7 +3697,7 @@ function U(e, t, n) {
|
|
|
3711
3697
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
3712
3698
|
}
|
|
3713
3699
|
}
|
|
3714
|
-
function
|
|
3700
|
+
function qc(e, t) {
|
|
3715
3701
|
var n = "";
|
|
3716
3702
|
if (typeof e == "string") n = e;
|
|
3717
3703
|
else do {
|
|
@@ -3721,7 +3707,7 @@ function Yc(e, t) {
|
|
|
3721
3707
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
3722
3708
|
return i && new i(n);
|
|
3723
3709
|
}
|
|
3724
|
-
function
|
|
3710
|
+
function Jc(e, t, n) {
|
|
3725
3711
|
if (e) {
|
|
3726
3712
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
3727
3713
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -3729,13 +3715,13 @@ function Xc(e, t, n) {
|
|
|
3729
3715
|
}
|
|
3730
3716
|
return [];
|
|
3731
3717
|
}
|
|
3732
|
-
function
|
|
3718
|
+
function Yc() {
|
|
3733
3719
|
return document.scrollingElement || document.documentElement;
|
|
3734
3720
|
}
|
|
3735
3721
|
function W(e, t, n, r, i) {
|
|
3736
3722
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
3737
3723
|
var a, o, s, c, l, u, d;
|
|
3738
|
-
if (e !== window && e.parentNode && e !==
|
|
3724
|
+
if (e !== window && e.parentNode && e !== Yc() ? (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, !Fc)) do
|
|
3739
3725
|
if (i && i.getBoundingClientRect && (U(i, "transform") !== "none" || n && U(i, "position") !== "static")) {
|
|
3740
3726
|
var f = i.getBoundingClientRect();
|
|
3741
3727
|
o -= f.top + parseInt(U(i, "border-top-width")), s -= f.left + parseInt(U(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -3743,7 +3729,7 @@ function W(e, t, n, r, i) {
|
|
|
3743
3729
|
}
|
|
3744
3730
|
while (i = i.parentNode);
|
|
3745
3731
|
if (r && e !== window) {
|
|
3746
|
-
var p =
|
|
3732
|
+
var p = qc(i || e), m = p && p.a, h = p && p.d;
|
|
3747
3733
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
3748
3734
|
}
|
|
3749
3735
|
return {
|
|
@@ -3756,18 +3742,18 @@ function W(e, t, n, r, i) {
|
|
|
3756
3742
|
};
|
|
3757
3743
|
}
|
|
3758
3744
|
}
|
|
3759
|
-
function
|
|
3760
|
-
for (var r =
|
|
3745
|
+
function Xc(e, t, n) {
|
|
3746
|
+
for (var r = nl(e, !0), i = W(e)[t]; r;) {
|
|
3761
3747
|
var a = W(r)[n], o = void 0;
|
|
3762
3748
|
if (o = i >= a, !o) return r;
|
|
3763
|
-
if (r ===
|
|
3764
|
-
r =
|
|
3749
|
+
if (r === Yc()) break;
|
|
3750
|
+
r = nl(r, !1);
|
|
3765
3751
|
}
|
|
3766
3752
|
return !1;
|
|
3767
3753
|
}
|
|
3768
|
-
function
|
|
3754
|
+
function Zc(e, t, n, r) {
|
|
3769
3755
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
3770
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
3756
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Wc(o[a], n.draggable, e, !1)) {
|
|
3771
3757
|
if (i === t) return o[a];
|
|
3772
3758
|
i++;
|
|
3773
3759
|
}
|
|
@@ -3775,84 +3761,84 @@ function $c(e, t, n, r) {
|
|
|
3775
3761
|
}
|
|
3776
3762
|
return null;
|
|
3777
3763
|
}
|
|
3778
|
-
function
|
|
3779
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !
|
|
3764
|
+
function Qc(e, t) {
|
|
3765
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !Hc(n, t));) n = n.previousElementSibling;
|
|
3780
3766
|
return n || null;
|
|
3781
3767
|
}
|
|
3782
|
-
function
|
|
3768
|
+
function $c(e, t) {
|
|
3783
3769
|
var n = 0;
|
|
3784
3770
|
if (!e || !e.parentNode) return -1;
|
|
3785
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
3771
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Hc(e, t)) && n++;
|
|
3786
3772
|
return n;
|
|
3787
3773
|
}
|
|
3788
|
-
function
|
|
3789
|
-
var t = 0, n = 0, r =
|
|
3774
|
+
function el(e) {
|
|
3775
|
+
var t = 0, n = 0, r = Yc();
|
|
3790
3776
|
if (e) do {
|
|
3791
|
-
var i =
|
|
3777
|
+
var i = qc(e), a = i.a, o = i.d;
|
|
3792
3778
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
3793
3779
|
} while (e !== r && (e = e.parentNode));
|
|
3794
3780
|
return [t, n];
|
|
3795
3781
|
}
|
|
3796
|
-
function
|
|
3782
|
+
function tl(e, t) {
|
|
3797
3783
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
3798
3784
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
3799
3785
|
}
|
|
3800
3786
|
return -1;
|
|
3801
3787
|
}
|
|
3802
|
-
function
|
|
3803
|
-
if (!e || !e.getBoundingClientRect) return
|
|
3788
|
+
function nl(e, t) {
|
|
3789
|
+
if (!e || !e.getBoundingClientRect) return Yc();
|
|
3804
3790
|
var n = e, r = !1;
|
|
3805
3791
|
do
|
|
3806
3792
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
3807
3793
|
var i = U(n);
|
|
3808
3794
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
3809
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
3795
|
+
if (!n.getBoundingClientRect || n === document.body) return Yc();
|
|
3810
3796
|
if (r || t) return n;
|
|
3811
3797
|
r = !0;
|
|
3812
3798
|
}
|
|
3813
3799
|
}
|
|
3814
3800
|
while (n = n.parentNode);
|
|
3815
|
-
return
|
|
3801
|
+
return Yc();
|
|
3816
3802
|
}
|
|
3817
|
-
function
|
|
3803
|
+
function rl(e, t) {
|
|
3818
3804
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
3819
3805
|
return e;
|
|
3820
3806
|
}
|
|
3821
|
-
function
|
|
3807
|
+
function il(e, t) {
|
|
3822
3808
|
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);
|
|
3823
3809
|
}
|
|
3824
|
-
var
|
|
3825
|
-
function
|
|
3810
|
+
var al;
|
|
3811
|
+
function ol(e, t) {
|
|
3826
3812
|
return function() {
|
|
3827
|
-
if (!
|
|
3813
|
+
if (!al) {
|
|
3828
3814
|
var n = arguments, r = this;
|
|
3829
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
3830
|
-
|
|
3815
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), al = setTimeout(function() {
|
|
3816
|
+
al = void 0;
|
|
3831
3817
|
}, t);
|
|
3832
3818
|
}
|
|
3833
3819
|
};
|
|
3834
3820
|
}
|
|
3835
|
-
function
|
|
3836
|
-
clearTimeout(
|
|
3821
|
+
function sl() {
|
|
3822
|
+
clearTimeout(al), al = void 0;
|
|
3837
3823
|
}
|
|
3838
|
-
function
|
|
3824
|
+
function cl(e, t, n) {
|
|
3839
3825
|
e.scrollLeft += t, e.scrollTop += n;
|
|
3840
3826
|
}
|
|
3841
|
-
function
|
|
3827
|
+
function ll(e) {
|
|
3842
3828
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
3843
3829
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
3844
3830
|
}
|
|
3845
|
-
function
|
|
3831
|
+
function ul(e, t, n) {
|
|
3846
3832
|
var r = {};
|
|
3847
3833
|
return Array.from(e.children).forEach(function(i) {
|
|
3848
|
-
if (!(!
|
|
3834
|
+
if (!(!Wc(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
3849
3835
|
var a = W(i);
|
|
3850
3836
|
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);
|
|
3851
3837
|
}
|
|
3852
3838
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
3853
3839
|
}
|
|
3854
|
-
var
|
|
3855
|
-
function
|
|
3840
|
+
var dl = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
3841
|
+
function fl() {
|
|
3856
3842
|
var e = [], t;
|
|
3857
3843
|
return {
|
|
3858
3844
|
captureAnimationState: function() {
|
|
@@ -3862,9 +3848,9 @@ function ml() {
|
|
|
3862
3848
|
target: t,
|
|
3863
3849
|
rect: W(t)
|
|
3864
3850
|
});
|
|
3865
|
-
var n =
|
|
3851
|
+
var n = Dc({}, e[e.length - 1].rect);
|
|
3866
3852
|
if (t.thisAnimationDuration) {
|
|
3867
|
-
var r =
|
|
3853
|
+
var r = qc(t, !0);
|
|
3868
3854
|
r && (n.top -= r.f, n.left -= r.e);
|
|
3869
3855
|
}
|
|
3870
3856
|
t.fromRect = n;
|
|
@@ -3875,7 +3861,7 @@ function ml() {
|
|
|
3875
3861
|
e.push(t);
|
|
3876
3862
|
},
|
|
3877
3863
|
removeAnimationState: function(t) {
|
|
3878
|
-
e.splice(
|
|
3864
|
+
e.splice(tl(e, { target: t }), 1);
|
|
3879
3865
|
},
|
|
3880
3866
|
animateAll: function(n) {
|
|
3881
3867
|
var r = this;
|
|
@@ -3885,8 +3871,8 @@ function ml() {
|
|
|
3885
3871
|
}
|
|
3886
3872
|
var i = !1, a = 0;
|
|
3887
3873
|
e.forEach(function(e) {
|
|
3888
|
-
var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d =
|
|
3889
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
3874
|
+
var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = qc(n, !0);
|
|
3875
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && il(c, s) && !il(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = ml(u, c, l, r.options)), il(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() {
|
|
3890
3876
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
3891
3877
|
}, t), n.thisAnimationDuration = t);
|
|
3892
3878
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -3896,26 +3882,26 @@ function ml() {
|
|
|
3896
3882
|
animate: function(e, t, n, r) {
|
|
3897
3883
|
if (r) {
|
|
3898
3884
|
U(e, "transition", ""), U(e, "transform", "");
|
|
3899
|
-
var i =
|
|
3900
|
-
e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
3885
|
+
var i = qc(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
3886
|
+
e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = pl(e), U(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), U(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
3901
3887
|
U(e, "transition", ""), U(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
3902
3888
|
}, r);
|
|
3903
3889
|
}
|
|
3904
3890
|
}
|
|
3905
3891
|
};
|
|
3906
3892
|
}
|
|
3907
|
-
function
|
|
3893
|
+
function pl(e) {
|
|
3908
3894
|
return e.offsetWidth;
|
|
3909
3895
|
}
|
|
3910
|
-
function
|
|
3896
|
+
function ml(e, t, n, r) {
|
|
3911
3897
|
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;
|
|
3912
3898
|
}
|
|
3913
|
-
var
|
|
3899
|
+
var hl = [], gl = { initializeByDefault: !0 }, _l = {
|
|
3914
3900
|
mount: function(e) {
|
|
3915
|
-
for (var t in
|
|
3916
|
-
|
|
3901
|
+
for (var t in gl) gl.hasOwnProperty(t) && !(t in e) && (e[t] = gl[t]);
|
|
3902
|
+
hl.forEach(function(t) {
|
|
3917
3903
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
3918
|
-
}),
|
|
3904
|
+
}), hl.push(e);
|
|
3919
3905
|
},
|
|
3920
3906
|
pluginEvent: function(e, t, n) {
|
|
3921
3907
|
var r = this;
|
|
@@ -3923,16 +3909,16 @@ var _l = [], vl = { initializeByDefault: !0 }, yl = {
|
|
|
3923
3909
|
r.eventCanceled = !0;
|
|
3924
3910
|
};
|
|
3925
3911
|
var i = e + "Global";
|
|
3926
|
-
|
|
3927
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
3912
|
+
hl.forEach(function(r) {
|
|
3913
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Dc({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Dc({ sortable: t }, n)));
|
|
3928
3914
|
});
|
|
3929
3915
|
},
|
|
3930
3916
|
initializePlugins: function(e, t, n, r) {
|
|
3931
|
-
for (var i in
|
|
3917
|
+
for (var i in hl.forEach(function(r) {
|
|
3932
3918
|
var i = r.pluginName;
|
|
3933
3919
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
3934
3920
|
var a = new r(e, t, e.options);
|
|
3935
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
3921
|
+
a.sortable = e, a.options = e.options, e[i] = a, Ac(n, a.defaults);
|
|
3936
3922
|
}
|
|
3937
3923
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
3938
3924
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -3941,59 +3927,59 @@ var _l = [], vl = { initializeByDefault: !0 }, yl = {
|
|
|
3941
3927
|
},
|
|
3942
3928
|
getEventProperties: function(e, t) {
|
|
3943
3929
|
var n = {};
|
|
3944
|
-
return
|
|
3945
|
-
typeof r.eventProperties == "function" &&
|
|
3930
|
+
return hl.forEach(function(r) {
|
|
3931
|
+
typeof r.eventProperties == "function" && Ac(n, r.eventProperties.call(t[r.pluginName], e));
|
|
3946
3932
|
}), n;
|
|
3947
3933
|
},
|
|
3948
3934
|
modifyOption: function(e, t, n) {
|
|
3949
3935
|
var r;
|
|
3950
|
-
return
|
|
3936
|
+
return hl.forEach(function(i) {
|
|
3951
3937
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
3952
3938
|
}), r;
|
|
3953
3939
|
}
|
|
3954
3940
|
};
|
|
3955
|
-
function
|
|
3941
|
+
function vl(e) {
|
|
3956
3942
|
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;
|
|
3957
|
-
if (t ||= n && n[
|
|
3943
|
+
if (t ||= n && n[dl], t) {
|
|
3958
3944
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
3959
|
-
window.CustomEvent && !
|
|
3945
|
+
window.CustomEvent && !Fc && !Ic ? h = new CustomEvent(r, {
|
|
3960
3946
|
bubbles: !0,
|
|
3961
3947
|
cancelable: !0
|
|
3962
3948
|
}) : (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;
|
|
3963
|
-
var v =
|
|
3949
|
+
var v = Dc(Dc({}, m), _l.getEventProperties(r, t));
|
|
3964
3950
|
for (var y in v) h[y] = v[y];
|
|
3965
3951
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
3966
3952
|
}
|
|
3967
3953
|
}
|
|
3968
|
-
var
|
|
3969
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
3970
|
-
|
|
3954
|
+
var yl = ["evt"], bl = function(e, t) {
|
|
3955
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Mc(n, yl);
|
|
3956
|
+
_l.pluginEvent.bind(Q)(e, t, Dc({
|
|
3971
3957
|
dragEl: G,
|
|
3972
3958
|
parentEl: K,
|
|
3973
3959
|
ghostEl: q,
|
|
3974
3960
|
rootEl: J,
|
|
3975
|
-
nextEl:
|
|
3976
|
-
lastDownEl:
|
|
3961
|
+
nextEl: Sl,
|
|
3962
|
+
lastDownEl: Cl,
|
|
3977
3963
|
cloneEl: Y,
|
|
3978
|
-
cloneHidden:
|
|
3979
|
-
dragStarted:
|
|
3964
|
+
cloneHidden: wl,
|
|
3965
|
+
dragStarted: zl,
|
|
3980
3966
|
putSortable: X,
|
|
3981
3967
|
activeSortable: Q.active,
|
|
3982
3968
|
originalEvent: r,
|
|
3983
|
-
oldIndex:
|
|
3984
|
-
oldDraggableIndex:
|
|
3985
|
-
newIndex:
|
|
3986
|
-
newDraggableIndex:
|
|
3987
|
-
hideGhostForTarget:
|
|
3988
|
-
unhideGhostForTarget:
|
|
3969
|
+
oldIndex: Tl,
|
|
3970
|
+
oldDraggableIndex: Dl,
|
|
3971
|
+
newIndex: El,
|
|
3972
|
+
newDraggableIndex: Ol,
|
|
3973
|
+
hideGhostForTarget: ru,
|
|
3974
|
+
unhideGhostForTarget: iu,
|
|
3989
3975
|
cloneNowHidden: function() {
|
|
3990
|
-
|
|
3976
|
+
wl = !0;
|
|
3991
3977
|
},
|
|
3992
3978
|
cloneNowShown: function() {
|
|
3993
|
-
|
|
3979
|
+
wl = !1;
|
|
3994
3980
|
},
|
|
3995
3981
|
dispatchSortableEvent: function(e) {
|
|
3996
|
-
|
|
3982
|
+
xl({
|
|
3997
3983
|
sortable: t,
|
|
3998
3984
|
name: e,
|
|
3999
3985
|
originalEvent: r
|
|
@@ -4001,40 +3987,40 @@ var xl = ["evt"], Sl = function(e, t) {
|
|
|
4001
3987
|
}
|
|
4002
3988
|
}, i));
|
|
4003
3989
|
};
|
|
4004
|
-
function
|
|
4005
|
-
|
|
3990
|
+
function xl(e) {
|
|
3991
|
+
vl(Dc({
|
|
4006
3992
|
putSortable: X,
|
|
4007
3993
|
cloneEl: Y,
|
|
4008
3994
|
targetEl: G,
|
|
4009
3995
|
rootEl: J,
|
|
4010
|
-
oldIndex:
|
|
4011
|
-
oldDraggableIndex:
|
|
4012
|
-
newIndex:
|
|
4013
|
-
newDraggableIndex:
|
|
3996
|
+
oldIndex: Tl,
|
|
3997
|
+
oldDraggableIndex: Dl,
|
|
3998
|
+
newIndex: El,
|
|
3999
|
+
newDraggableIndex: Ol
|
|
4014
4000
|
}, e));
|
|
4015
4001
|
}
|
|
4016
|
-
var G, K, q, J,
|
|
4017
|
-
if (
|
|
4018
|
-
if (
|
|
4002
|
+
var G, K, q, J, Sl, Cl, Y, wl, Tl, El, Dl, Ol, kl, X, Al = !1, jl = !1, Ml = [], Nl, Pl, Fl, Il, Ll, Rl, zl, Bl, Vl, Hl = !1, Ul = !1, Wl, Z, Gl = [], Kl = !1, ql = [], Jl = typeof document < "u", Yl = zc, Xl = Ic || Fc ? "cssFloat" : "float", Zl = Jl && !Bc && !zc && "draggable" in document.createElement("div"), Ql = function() {
|
|
4003
|
+
if (Jl) {
|
|
4004
|
+
if (Fc) return !1;
|
|
4019
4005
|
var e = document.createElement("x");
|
|
4020
4006
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4021
4007
|
}
|
|
4022
|
-
}(),
|
|
4023
|
-
var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
4024
|
-
return n.display === "flex" ? n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal" : n.display === "grid" ? n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal" : i && o.float && o.float !== "none" ? a && (s.clear === "both" || s.clear === (o.float === "left" ? "left" : "right")) ? "vertical" : "horizontal" : i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
4025
|
-
},
|
|
4008
|
+
}(), $l = function(e, t) {
|
|
4009
|
+
var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Zc(e, 0, t), a = Zc(e, 1, t), o = i && U(i), s = a && U(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + W(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(a).width;
|
|
4010
|
+
return n.display === "flex" ? n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal" : n.display === "grid" ? n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal" : i && o.float && o.float !== "none" ? a && (s.clear === "both" || s.clear === (o.float === "left" ? "left" : "right")) ? "vertical" : "horizontal" : i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Xl] === "none" || a && n[Xl] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
4011
|
+
}, eu = function(e, t, n) {
|
|
4026
4012
|
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;
|
|
4027
4013
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
4028
|
-
},
|
|
4014
|
+
}, tu = function(e, t) {
|
|
4029
4015
|
var n;
|
|
4030
|
-
return
|
|
4031
|
-
var i = r[
|
|
4032
|
-
if (!(!i ||
|
|
4016
|
+
return Ml.some(function(r) {
|
|
4017
|
+
var i = r[dl].options.emptyInsertThreshold;
|
|
4018
|
+
if (!(!i || Qc(r))) {
|
|
4033
4019
|
var a = W(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
4034
4020
|
if (o && s) return n = r;
|
|
4035
4021
|
}
|
|
4036
4022
|
}), n;
|
|
4037
|
-
},
|
|
4023
|
+
}, nu = function(e) {
|
|
4038
4024
|
function t(e, n) {
|
|
4039
4025
|
return function(r, i, a, o) {
|
|
4040
4026
|
if (e == null && (n || r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name)) return !0;
|
|
@@ -4046,31 +4032,31 @@ var G, K, q, J, wl, Tl, Y, El, Dl, Ol, kl, Al, jl, X, Ml = !1, Nl = !1, Pl = [],
|
|
|
4046
4032
|
};
|
|
4047
4033
|
}
|
|
4048
4034
|
var n = {}, r = e.group;
|
|
4049
|
-
(!r ||
|
|
4050
|
-
},
|
|
4051
|
-
!
|
|
4052
|
-
},
|
|
4053
|
-
!
|
|
4035
|
+
(!r || Oc(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;
|
|
4036
|
+
}, ru = function() {
|
|
4037
|
+
!Ql && q && U(q, "display", "none");
|
|
4038
|
+
}, iu = function() {
|
|
4039
|
+
!Ql && q && U(q, "display", "");
|
|
4054
4040
|
};
|
|
4055
|
-
|
|
4056
|
-
if (
|
|
4041
|
+
Jl && !Bc && document.addEventListener("click", function(e) {
|
|
4042
|
+
if (jl) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), jl = !1, !1;
|
|
4057
4043
|
}, !0);
|
|
4058
|
-
var
|
|
4044
|
+
var au = function(e) {
|
|
4059
4045
|
if (G) {
|
|
4060
4046
|
e = e.touches ? e.touches[0] : e;
|
|
4061
|
-
var t =
|
|
4047
|
+
var t = tu(e.clientX, e.clientY);
|
|
4062
4048
|
if (t) {
|
|
4063
4049
|
var n = {};
|
|
4064
4050
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
4065
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
4051
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[dl]._onDragOver(n);
|
|
4066
4052
|
}
|
|
4067
4053
|
}
|
|
4068
|
-
},
|
|
4069
|
-
G && G.parentNode[
|
|
4054
|
+
}, ou = function(e) {
|
|
4055
|
+
G && G.parentNode[dl]._isOutsideThisEl(e.target);
|
|
4070
4056
|
};
|
|
4071
4057
|
function Q(e, t) {
|
|
4072
4058
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
4073
|
-
this.el = e, this.options = t =
|
|
4059
|
+
this.el = e, this.options = t = Ac({}, t), e[dl] = this;
|
|
4074
4060
|
var n = {
|
|
4075
4061
|
group: null,
|
|
4076
4062
|
sort: !0,
|
|
@@ -4083,7 +4069,7 @@ function Q(e, t) {
|
|
|
4083
4069
|
invertedSwapThreshold: null,
|
|
4084
4070
|
removeCloneOnHide: !0,
|
|
4085
4071
|
direction: function() {
|
|
4086
|
-
return
|
|
4072
|
+
return $l(e, this.options);
|
|
4087
4073
|
},
|
|
4088
4074
|
ghostClass: "sortable-ghost",
|
|
4089
4075
|
chosenClass: "sortable-chosen",
|
|
@@ -4110,17 +4096,17 @@ function Q(e, t) {
|
|
|
4110
4096
|
x: 0,
|
|
4111
4097
|
y: 0
|
|
4112
4098
|
},
|
|
4113
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
4099
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Rc,
|
|
4114
4100
|
emptyInsertThreshold: 5
|
|
4115
4101
|
};
|
|
4116
|
-
for (var r in
|
|
4117
|
-
for (var i in
|
|
4118
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
4102
|
+
for (var r in _l.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
4103
|
+
for (var i in nu(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
4104
|
+
this.nativeDraggable = !t.forceFallback && Zl, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), Ml.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ac(this, fl());
|
|
4119
4105
|
}
|
|
4120
4106
|
Q.prototype = {
|
|
4121
4107
|
constructor: Q,
|
|
4122
4108
|
_isOutsideThisEl: function(e) {
|
|
4123
|
-
!this.el.contains(e) && e !== this.el && (
|
|
4109
|
+
!this.el.contains(e) && e !== this.el && (Bl = null);
|
|
4124
4110
|
},
|
|
4125
4111
|
_getDirection: function(e, t) {
|
|
4126
4112
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
@@ -4128,33 +4114,33 @@ Q.prototype = {
|
|
|
4128
4114
|
_onTapStart: function(e) {
|
|
4129
4115
|
if (e.cancelable) {
|
|
4130
4116
|
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;
|
|
4131
|
-
if (
|
|
4132
|
-
if (
|
|
4117
|
+
if (gu(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Rc && s && s.tagName.toUpperCase() === "SELECT") && (s = Wc(s, r.draggable, n, !1), !(s && s.animated) && Cl !== s)) {
|
|
4118
|
+
if (Tl = $c(s), Dl = $c(s, r.draggable), typeof l == "function") {
|
|
4133
4119
|
if (l.call(this, e, s, this)) {
|
|
4134
|
-
|
|
4120
|
+
xl({
|
|
4135
4121
|
sortable: t,
|
|
4136
4122
|
rootEl: c,
|
|
4137
4123
|
name: "filter",
|
|
4138
4124
|
targetEl: s,
|
|
4139
4125
|
toEl: n,
|
|
4140
4126
|
fromEl: n
|
|
4141
|
-
}),
|
|
4127
|
+
}), bl("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
4142
4128
|
return;
|
|
4143
4129
|
}
|
|
4144
4130
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
4145
|
-
if (r =
|
|
4131
|
+
if (r = Wc(c, r.trim(), n, !1), r) return xl({
|
|
4146
4132
|
sortable: t,
|
|
4147
4133
|
rootEl: r,
|
|
4148
4134
|
name: "filter",
|
|
4149
4135
|
targetEl: s,
|
|
4150
4136
|
fromEl: n,
|
|
4151
4137
|
toEl: n
|
|
4152
|
-
}),
|
|
4138
|
+
}), bl("filter", t, { evt: e }), !0;
|
|
4153
4139
|
}), l)) {
|
|
4154
4140
|
i && e.cancelable && e.preventDefault();
|
|
4155
4141
|
return;
|
|
4156
4142
|
}
|
|
4157
|
-
r.handle && !
|
|
4143
|
+
r.handle && !Wc(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
4158
4144
|
}
|
|
4159
4145
|
}
|
|
4160
4146
|
},
|
|
@@ -4162,23 +4148,23 @@ Q.prototype = {
|
|
|
4162
4148
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
4163
4149
|
if (n && !G && n.parentNode === i) {
|
|
4164
4150
|
var c = W(n);
|
|
4165
|
-
if (J = i, G = n, K = G.parentNode,
|
|
4151
|
+
if (J = i, G = n, K = G.parentNode, Sl = G.nextSibling, Cl = n, kl = a.group, Q.dragged = G, Nl = {
|
|
4166
4152
|
target: G,
|
|
4167
4153
|
clientX: (t || e).clientX,
|
|
4168
4154
|
clientY: (t || e).clientY
|
|
4169
|
-
},
|
|
4170
|
-
if (
|
|
4155
|
+
}, Ll = Nl.clientX - c.left, Rl = Nl.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
4156
|
+
if (bl("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
4171
4157
|
r._onDrop();
|
|
4172
4158
|
return;
|
|
4173
4159
|
}
|
|
4174
|
-
r._disableDelayedDragEvents(), !
|
|
4160
|
+
r._disableDelayedDragEvents(), !Lc && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), xl({
|
|
4175
4161
|
sortable: r,
|
|
4176
4162
|
name: "choose",
|
|
4177
4163
|
originalEvent: e
|
|
4178
|
-
}),
|
|
4164
|
+
}), Kc(G, a.chosenClass, !0);
|
|
4179
4165
|
}, a.ignore.split(",").forEach(function(e) {
|
|
4180
|
-
|
|
4181
|
-
}), V(o, "dragover",
|
|
4166
|
+
Jc(G, e.trim(), lu);
|
|
4167
|
+
}), V(o, "dragover", au), V(o, "mousemove", au), V(o, "touchmove", au), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), Lc && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), bl("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ic || Fc))) {
|
|
4182
4168
|
if (Q.eventCanceled) {
|
|
4183
4169
|
this._onDrop();
|
|
4184
4170
|
return;
|
|
@@ -4192,7 +4178,7 @@ Q.prototype = {
|
|
|
4192
4178
|
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();
|
|
4193
4179
|
},
|
|
4194
4180
|
_disableDelayedDrag: function() {
|
|
4195
|
-
G &&
|
|
4181
|
+
G && lu(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
4196
4182
|
},
|
|
4197
4183
|
_disableDelayedDragEvents: function() {
|
|
4198
4184
|
var e = this.el.ownerDocument;
|
|
@@ -4201,16 +4187,16 @@ Q.prototype = {
|
|
|
4201
4187
|
_triggerDragStart: function(e, t) {
|
|
4202
4188
|
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? V(document, "pointermove", this._onTouchMove) : t ? V(document, "touchmove", this._onTouchMove) : V(document, "mousemove", this._onTouchMove) : (V(G, "dragend", this), V(J, "dragstart", this._onDragStart));
|
|
4203
4189
|
try {
|
|
4204
|
-
document.selection ?
|
|
4190
|
+
document.selection ? _u(function() {
|
|
4205
4191
|
document.selection.empty();
|
|
4206
4192
|
}) : window.getSelection().removeAllRanges();
|
|
4207
4193
|
} catch {}
|
|
4208
4194
|
},
|
|
4209
4195
|
_dragStarted: function(e, t) {
|
|
4210
|
-
if (
|
|
4211
|
-
|
|
4196
|
+
if (Al = !1, J && G) {
|
|
4197
|
+
bl("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", ou);
|
|
4212
4198
|
var n = this.options;
|
|
4213
|
-
!e &&
|
|
4199
|
+
!e && Kc(G, n.dragClass, !1), Kc(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), xl({
|
|
4214
4200
|
sortable: this,
|
|
4215
4201
|
name: "start",
|
|
4216
4202
|
originalEvent: t
|
|
@@ -4218,33 +4204,33 @@ Q.prototype = {
|
|
|
4218
4204
|
} else this._nulling();
|
|
4219
4205
|
},
|
|
4220
4206
|
_emulateDragOver: function() {
|
|
4221
|
-
if (
|
|
4222
|
-
this._lastX =
|
|
4223
|
-
for (var e = document.elementFromPoint(
|
|
4224
|
-
if (G.parentNode[
|
|
4225
|
-
if (t[
|
|
4207
|
+
if (Pl) {
|
|
4208
|
+
this._lastX = Pl.clientX, this._lastY = Pl.clientY, ru();
|
|
4209
|
+
for (var e = document.elementFromPoint(Pl.clientX, Pl.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Pl.clientX, Pl.clientY), e !== t);) t = e;
|
|
4210
|
+
if (G.parentNode[dl]._isOutsideThisEl(e), t) do {
|
|
4211
|
+
if (t[dl]) {
|
|
4226
4212
|
var n = void 0;
|
|
4227
|
-
if (n = t[
|
|
4228
|
-
clientX:
|
|
4229
|
-
clientY:
|
|
4213
|
+
if (n = t[dl]._onDragOver({
|
|
4214
|
+
clientX: Pl.clientX,
|
|
4215
|
+
clientY: Pl.clientY,
|
|
4230
4216
|
target: e,
|
|
4231
4217
|
rootEl: t
|
|
4232
4218
|
}), n && !this.options.dragoverBubble) break;
|
|
4233
4219
|
}
|
|
4234
4220
|
e = t;
|
|
4235
4221
|
} while (t = t.parentNode);
|
|
4236
|
-
|
|
4222
|
+
iu();
|
|
4237
4223
|
}
|
|
4238
4224
|
},
|
|
4239
4225
|
_onTouchMove: function(e) {
|
|
4240
|
-
if (
|
|
4241
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q &&
|
|
4242
|
-
if (!Q.active && !
|
|
4226
|
+
if (Nl) {
|
|
4227
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && qc(q, !0), o = q && a && a.a, s = q && a && a.d, c = Yl && Z && el(Z), l = (i.clientX - Nl.clientX + r.x) / (o || 1) + (c ? c[0] - Gl[0] : 0) / (o || 1), u = (i.clientY - Nl.clientY + r.y) / (s || 1) + (c ? c[1] - Gl[1] : 0) / (s || 1);
|
|
4228
|
+
if (!Q.active && !Al) {
|
|
4243
4229
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
4244
4230
|
this._onDragStart(e, !0);
|
|
4245
4231
|
}
|
|
4246
4232
|
if (q) {
|
|
4247
|
-
a ? (a.e += l - (
|
|
4233
|
+
a ? (a.e += l - (Fl || 0), a.f += u - (Il || 0)) : a = {
|
|
4248
4234
|
a: 1,
|
|
4249
4235
|
b: 0,
|
|
4250
4236
|
c: 0,
|
|
@@ -4253,39 +4239,39 @@ Q.prototype = {
|
|
|
4253
4239
|
f: u
|
|
4254
4240
|
};
|
|
4255
4241
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
4256
|
-
U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d),
|
|
4242
|
+
U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), Fl = l, Il = u, Pl = i;
|
|
4257
4243
|
}
|
|
4258
4244
|
e.cancelable && e.preventDefault();
|
|
4259
4245
|
}
|
|
4260
4246
|
},
|
|
4261
4247
|
_appendGhost: function() {
|
|
4262
4248
|
if (!q) {
|
|
4263
|
-
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0,
|
|
4264
|
-
if (
|
|
4249
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, Yl, !0, e), n = this.options;
|
|
4250
|
+
if (Yl) {
|
|
4265
4251
|
for (Z = e; U(Z, "position") === "static" && U(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
4266
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
4252
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Yc()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Yc(), Gl = el(Z);
|
|
4267
4253
|
}
|
|
4268
|
-
q = G.cloneNode(!0),
|
|
4254
|
+
q = G.cloneNode(!0), Kc(q, n.ghostClass, !1), Kc(q, n.fallbackClass, !0), Kc(q, n.dragClass, !0), U(q, "transition", ""), U(q, "transform", ""), U(q, "box-sizing", "border-box"), U(q, "margin", 0), U(q, "top", t.top), U(q, "left", t.left), U(q, "width", t.width), U(q, "height", t.height), U(q, "opacity", "0.8"), U(q, "position", Yl ? "absolute" : "fixed"), U(q, "zIndex", "100000"), U(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), U(q, "transform-origin", Ll / parseInt(q.style.width) * 100 + "% " + Rl / parseInt(q.style.height) * 100 + "%");
|
|
4269
4255
|
}
|
|
4270
4256
|
},
|
|
4271
4257
|
_onDragStart: function(e, t) {
|
|
4272
4258
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
4273
|
-
if (
|
|
4259
|
+
if (bl("dragStart", this, { evt: e }), Q.eventCanceled) {
|
|
4274
4260
|
this._onDrop();
|
|
4275
4261
|
return;
|
|
4276
4262
|
}
|
|
4277
|
-
|
|
4278
|
-
|
|
4263
|
+
bl("setupClone", this), Q.eventCanceled || (Y = ll(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Kc(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = _u(function() {
|
|
4264
|
+
bl("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), xl({
|
|
4279
4265
|
sortable: n,
|
|
4280
4266
|
name: "clone"
|
|
4281
4267
|
}));
|
|
4282
|
-
}), !t &&
|
|
4268
|
+
}), !t && Kc(G, i.dragClass, !0), t ? (jl = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), V(document, "drop", n), U(G, "transform", "translateZ(0)")), Al = !0, n._dragStartId = _u(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), zl = !0, Rc && U(document.body, "user-select", "none");
|
|
4283
4269
|
},
|
|
4284
4270
|
_onDragOver: function(e) {
|
|
4285
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
4286
|
-
if (
|
|
4271
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = kl === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
4272
|
+
if (Kl) return;
|
|
4287
4273
|
function h(o, s) {
|
|
4288
|
-
|
|
4274
|
+
bl(o, p, Dc({
|
|
4289
4275
|
evt: e,
|
|
4290
4276
|
isOwner: l,
|
|
4291
4277
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -4297,7 +4283,7 @@ Q.prototype = {
|
|
|
4297
4283
|
target: n,
|
|
4298
4284
|
completed: _,
|
|
4299
4285
|
onMove: function(n, i) {
|
|
4300
|
-
return
|
|
4286
|
+
return cu(J, t, G, r, n, W(n), e, i);
|
|
4301
4287
|
},
|
|
4302
4288
|
changed: v
|
|
4303
4289
|
}, s));
|
|
@@ -4306,50 +4292,50 @@ Q.prototype = {
|
|
|
4306
4292
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
4307
4293
|
}
|
|
4308
4294
|
function _(r) {
|
|
4309
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
4295
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Kc(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Kc(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() {
|
|
4310
4296
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
4311
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (
|
|
4297
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Bl = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[dl]._isOutsideThisEl(e.target), !r && au(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
4312
4298
|
}
|
|
4313
4299
|
function v() {
|
|
4314
|
-
|
|
4300
|
+
El = $c(G), Ol = $c(G, o.draggable), xl({
|
|
4315
4301
|
sortable: p,
|
|
4316
4302
|
name: "change",
|
|
4317
4303
|
toEl: t,
|
|
4318
|
-
newIndex:
|
|
4319
|
-
newDraggableIndex:
|
|
4304
|
+
newIndex: El,
|
|
4305
|
+
newDraggableIndex: Ol,
|
|
4320
4306
|
originalEvent: e
|
|
4321
4307
|
});
|
|
4322
4308
|
}
|
|
4323
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
4309
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Wc(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
4324
4310
|
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
4325
|
-
if (
|
|
4311
|
+
if (jl = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = kl.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
4326
4312
|
if (f = this._getDirection(e, n) === "vertical", r = W(G), h("dragOverValid"), Q.eventCanceled) return m;
|
|
4327
|
-
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
4328
|
-
var y =
|
|
4329
|
-
if (!y ||
|
|
4313
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Sl ? J.insertBefore(G, Sl) : J.appendChild(G)), _(!0);
|
|
4314
|
+
var y = Qc(t, o.draggable);
|
|
4315
|
+
if (!y || fu(e, f, this) && !y.animated) {
|
|
4330
4316
|
if (y === G) return _(!1);
|
|
4331
|
-
if (y && t === e.target && (n = y), n && (i = W(n)),
|
|
4332
|
-
} else if (y &&
|
|
4333
|
-
var b =
|
|
4317
|
+
if (y && t === e.target && (n = y), n && (i = W(n)), cu(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);
|
|
4318
|
+
} else if (y && du(e, f, this)) {
|
|
4319
|
+
var b = Zc(t, 0, o, !0);
|
|
4334
4320
|
if (b === G) return _(!1);
|
|
4335
|
-
if (n = b, i = W(n),
|
|
4321
|
+
if (n = b, i = W(n), cu(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
4336
4322
|
} else if (n.parentNode === t) {
|
|
4337
4323
|
i = W(n);
|
|
4338
|
-
var x = 0, S, C = G.parentNode !== t, w = !
|
|
4339
|
-
|
|
4324
|
+
var x = 0, S, C = G.parentNode !== t, w = !eu(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Xc(n, "top", "top") || Xc(G, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
4325
|
+
Bl !== n && (S = i[T], Hl = !1, Ul = !w && o.invertSwap || C), x = pu(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ul, Bl === n);
|
|
4340
4326
|
var D;
|
|
4341
4327
|
if (x !== 0) {
|
|
4342
|
-
var te =
|
|
4328
|
+
var te = $c(G);
|
|
4343
4329
|
do
|
|
4344
4330
|
te -= x, D = K.children[te];
|
|
4345
4331
|
while (D && (U(D, "display") === "none" || D === q));
|
|
4346
4332
|
}
|
|
4347
4333
|
if (x === 0 || D === n) return _(!1);
|
|
4348
|
-
|
|
4334
|
+
Bl = n, Vl = x;
|
|
4349
4335
|
var O = n.nextElementSibling, ne = !1;
|
|
4350
4336
|
ne = x === 1;
|
|
4351
|
-
var re =
|
|
4352
|
-
if (re !== !1) return (re === 1 || re === -1) && (ne = re === 1),
|
|
4337
|
+
var re = cu(J, t, G, r, n, i, e, ne);
|
|
4338
|
+
if (re !== !1) return (re === 1 || re === -1) && (ne = re === 1), Kl = !0, setTimeout(uu, 30), g(), ne && !O ? t.appendChild(G) : n.parentNode.insertBefore(G, ne ? O : n), E && cl(E, 0, ee - E.scrollTop), K = G.parentNode, S !== void 0 && !Ul && (Wl = Math.abs(S - W(n)[T])), v(), _(!0);
|
|
4353
4339
|
}
|
|
4354
4340
|
if (t.contains(G)) return _(!1);
|
|
4355
4341
|
}
|
|
@@ -4357,7 +4343,7 @@ Q.prototype = {
|
|
|
4357
4343
|
},
|
|
4358
4344
|
_ignoreWhileAnimating: null,
|
|
4359
4345
|
_offMoveEvents: function() {
|
|
4360
|
-
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover",
|
|
4346
|
+
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", au), H(document, "mousemove", au), H(document, "touchmove", au);
|
|
4361
4347
|
},
|
|
4362
4348
|
_offUpEvents: function() {
|
|
4363
4349
|
var e = this.el.ownerDocument;
|
|
@@ -4365,50 +4351,50 @@ Q.prototype = {
|
|
|
4365
4351
|
},
|
|
4366
4352
|
_onDrop: function(e) {
|
|
4367
4353
|
var t = this.el, n = this.options;
|
|
4368
|
-
if (
|
|
4354
|
+
if (El = $c(G), Ol = $c(G, n.draggable), bl("drop", this, { evt: e }), K = G && G.parentNode, El = $c(G), Ol = $c(G, n.draggable), Q.eventCanceled) {
|
|
4369
4355
|
this._nulling();
|
|
4370
4356
|
return;
|
|
4371
4357
|
}
|
|
4372
|
-
|
|
4358
|
+
Al = !1, Ul = !1, Hl = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), vu(this.cloneId), vu(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Rc && U(document.body, "user-select", ""), U(G, "transform", ""), e && (zl && (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 && H(G, "dragend", this), lu(G), G.style["will-change"] = "", zl && !Al && Kc(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Kc(G, this.options.chosenClass, !1), xl({
|
|
4373
4359
|
sortable: this,
|
|
4374
4360
|
name: "unchoose",
|
|
4375
4361
|
toEl: K,
|
|
4376
4362
|
newIndex: null,
|
|
4377
4363
|
newDraggableIndex: null,
|
|
4378
4364
|
originalEvent: e
|
|
4379
|
-
}), J === K ?
|
|
4365
|
+
}), J === K ? El !== Tl && El >= 0 && (xl({
|
|
4380
4366
|
sortable: this,
|
|
4381
4367
|
name: "update",
|
|
4382
4368
|
toEl: K,
|
|
4383
4369
|
originalEvent: e
|
|
4384
|
-
}),
|
|
4370
|
+
}), xl({
|
|
4385
4371
|
sortable: this,
|
|
4386
4372
|
name: "sort",
|
|
4387
4373
|
toEl: K,
|
|
4388
4374
|
originalEvent: e
|
|
4389
|
-
})) : (
|
|
4375
|
+
})) : (El >= 0 && (xl({
|
|
4390
4376
|
rootEl: K,
|
|
4391
4377
|
name: "add",
|
|
4392
4378
|
toEl: K,
|
|
4393
4379
|
fromEl: J,
|
|
4394
4380
|
originalEvent: e
|
|
4395
|
-
}),
|
|
4381
|
+
}), xl({
|
|
4396
4382
|
sortable: this,
|
|
4397
4383
|
name: "remove",
|
|
4398
4384
|
toEl: K,
|
|
4399
4385
|
originalEvent: e
|
|
4400
|
-
}),
|
|
4386
|
+
}), xl({
|
|
4401
4387
|
rootEl: K,
|
|
4402
4388
|
name: "sort",
|
|
4403
4389
|
toEl: K,
|
|
4404
4390
|
fromEl: J,
|
|
4405
4391
|
originalEvent: e
|
|
4406
|
-
}),
|
|
4392
|
+
}), xl({
|
|
4407
4393
|
sortable: this,
|
|
4408
4394
|
name: "sort",
|
|
4409
4395
|
toEl: K,
|
|
4410
4396
|
originalEvent: e
|
|
4411
|
-
})), X && X.save()), Q.active && ((
|
|
4397
|
+
})), X && X.save()), Q.active && ((El == null || El === -1) && (El = Tl, Ol = Dl), xl({
|
|
4412
4398
|
sortable: this,
|
|
4413
4399
|
name: "end",
|
|
4414
4400
|
toEl: K,
|
|
@@ -4416,9 +4402,9 @@ Q.prototype = {
|
|
|
4416
4402
|
}), this.save()))), this._nulling();
|
|
4417
4403
|
},
|
|
4418
4404
|
_nulling: function() {
|
|
4419
|
-
|
|
4405
|
+
bl("nulling", this), J = G = K = q = Sl = Y = Cl = wl = Nl = Pl = zl = El = Ol = Tl = Dl = Bl = Vl = X = kl = Q.dragged = Q.ghost = Q.clone = Q.active = null, ql.forEach(function(e) {
|
|
4420
4406
|
e.checked = !0;
|
|
4421
|
-
}),
|
|
4407
|
+
}), ql.length = Fl = Il = 0;
|
|
4422
4408
|
},
|
|
4423
4409
|
handleEvent: function(e) {
|
|
4424
4410
|
switch (e.type) {
|
|
@@ -4428,20 +4414,20 @@ Q.prototype = {
|
|
|
4428
4414
|
break;
|
|
4429
4415
|
case "dragenter":
|
|
4430
4416
|
case "dragover":
|
|
4431
|
-
G && (this._onDragOver(e),
|
|
4417
|
+
G && (this._onDragOver(e), su(e));
|
|
4432
4418
|
break;
|
|
4433
4419
|
case "selectstart": e.preventDefault();
|
|
4434
4420
|
}
|
|
4435
4421
|
},
|
|
4436
4422
|
toArray: function() {
|
|
4437
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
4423
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Wc(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || hu(t));
|
|
4438
4424
|
return e;
|
|
4439
4425
|
},
|
|
4440
4426
|
sort: function(e, t) {
|
|
4441
4427
|
var n = {}, r = this.el;
|
|
4442
4428
|
this.toArray().forEach(function(e, t) {
|
|
4443
4429
|
var i = r.children[t];
|
|
4444
|
-
|
|
4430
|
+
Wc(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
4445
4431
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
4446
4432
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
4447
4433
|
}), t && this.animateAll();
|
|
@@ -4451,25 +4437,25 @@ Q.prototype = {
|
|
|
4451
4437
|
e && e.set && e.set(this);
|
|
4452
4438
|
},
|
|
4453
4439
|
closest: function(e, t) {
|
|
4454
|
-
return
|
|
4440
|
+
return Wc(e, t || this.options.draggable, this.el, !1);
|
|
4455
4441
|
},
|
|
4456
4442
|
option: function(e, t) {
|
|
4457
4443
|
var n = this.options;
|
|
4458
4444
|
if (t === void 0) return n[e];
|
|
4459
|
-
var r =
|
|
4460
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
4445
|
+
var r = _l.modifyOption(this, e, t);
|
|
4446
|
+
n[e] = r === void 0 ? t : r, e === "group" && nu(n);
|
|
4461
4447
|
},
|
|
4462
4448
|
destroy: function() {
|
|
4463
|
-
|
|
4449
|
+
bl("destroy", this);
|
|
4464
4450
|
var e = this.el;
|
|
4465
|
-
e[
|
|
4451
|
+
e[dl] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
4466
4452
|
e.removeAttribute("draggable");
|
|
4467
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
4453
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Ml.splice(Ml.indexOf(this.el), 1), this.el = e = null;
|
|
4468
4454
|
},
|
|
4469
4455
|
_hideClone: function() {
|
|
4470
|
-
if (!
|
|
4471
|
-
if (
|
|
4472
|
-
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y),
|
|
4456
|
+
if (!wl) {
|
|
4457
|
+
if (bl("hideClone", this), Q.eventCanceled) return;
|
|
4458
|
+
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), wl = !0;
|
|
4473
4459
|
}
|
|
4474
4460
|
},
|
|
4475
4461
|
_showClone: function(e) {
|
|
@@ -4477,99 +4463,99 @@ Q.prototype = {
|
|
|
4477
4463
|
this._hideClone();
|
|
4478
4464
|
return;
|
|
4479
4465
|
}
|
|
4480
|
-
if (
|
|
4481
|
-
if (
|
|
4482
|
-
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) :
|
|
4466
|
+
if (wl) {
|
|
4467
|
+
if (bl("showClone", this), Q.eventCanceled) return;
|
|
4468
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Sl ? J.insertBefore(Y, Sl) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), U(Y, "display", ""), wl = !1;
|
|
4483
4469
|
}
|
|
4484
4470
|
}
|
|
4485
4471
|
};
|
|
4486
|
-
function
|
|
4472
|
+
function su(e) {
|
|
4487
4473
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
4488
4474
|
}
|
|
4489
|
-
function
|
|
4490
|
-
var c, l = e[
|
|
4491
|
-
return window.CustomEvent && !
|
|
4475
|
+
function cu(e, t, n, r, i, a, o, s) {
|
|
4476
|
+
var c, l = e[dl], u = l.options.onMove, d;
|
|
4477
|
+
return window.CustomEvent && !Fc && !Ic ? c = new CustomEvent("move", {
|
|
4492
4478
|
bubbles: !0,
|
|
4493
4479
|
cancelable: !0
|
|
4494
4480
|
}) : (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 || W(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
4495
4481
|
}
|
|
4496
|
-
function
|
|
4482
|
+
function lu(e) {
|
|
4497
4483
|
e.draggable = !1;
|
|
4498
4484
|
}
|
|
4499
|
-
function
|
|
4500
|
-
|
|
4485
|
+
function uu() {
|
|
4486
|
+
Kl = !1;
|
|
4501
4487
|
}
|
|
4502
|
-
function
|
|
4503
|
-
var r = W(
|
|
4488
|
+
function du(e, t, n) {
|
|
4489
|
+
var r = W(Zc(n.el, 0, n.options, !0)), i = ul(n.el, n.options, q), a = 10;
|
|
4504
4490
|
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;
|
|
4505
4491
|
}
|
|
4506
|
-
function
|
|
4507
|
-
var r = W(
|
|
4492
|
+
function fu(e, t, n) {
|
|
4493
|
+
var r = W(Qc(n.el, n.options.draggable)), i = ul(n.el, n.options, q), a = 10;
|
|
4508
4494
|
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;
|
|
4509
4495
|
}
|
|
4510
|
-
function
|
|
4496
|
+
function pu(e, t, n, r, i, a, o, s) {
|
|
4511
4497
|
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;
|
|
4512
4498
|
if (!o) {
|
|
4513
|
-
if (s &&
|
|
4514
|
-
if (!
|
|
4515
|
-
else if (
|
|
4516
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
4499
|
+
if (s && Wl < l * i) {
|
|
4500
|
+
if (!Hl && (Vl === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Hl = !0), Hl) f = !0;
|
|
4501
|
+
else if (Vl === 1 ? c < u + Wl : c > d - Wl) return -Vl;
|
|
4502
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return mu(t);
|
|
4517
4503
|
}
|
|
4518
4504
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
4519
4505
|
}
|
|
4520
|
-
function
|
|
4521
|
-
return
|
|
4506
|
+
function mu(e) {
|
|
4507
|
+
return $c(G) < $c(e) ? 1 : -1;
|
|
4522
4508
|
}
|
|
4523
|
-
function
|
|
4509
|
+
function hu(e) {
|
|
4524
4510
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
4525
4511
|
return r.toString(36);
|
|
4526
4512
|
}
|
|
4527
|
-
function
|
|
4528
|
-
|
|
4513
|
+
function gu(e) {
|
|
4514
|
+
ql.length = 0;
|
|
4529
4515
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
4530
4516
|
var r = t[n];
|
|
4531
|
-
r.checked &&
|
|
4517
|
+
r.checked && ql.push(r);
|
|
4532
4518
|
}
|
|
4533
4519
|
}
|
|
4534
|
-
function
|
|
4520
|
+
function _u(e) {
|
|
4535
4521
|
return setTimeout(e, 0);
|
|
4536
4522
|
}
|
|
4537
|
-
function
|
|
4523
|
+
function vu(e) {
|
|
4538
4524
|
return clearTimeout(e);
|
|
4539
4525
|
}
|
|
4540
|
-
|
|
4541
|
-
(Q.active ||
|
|
4526
|
+
Jl && V(document, "touchmove", function(e) {
|
|
4527
|
+
(Q.active || Al) && e.cancelable && e.preventDefault();
|
|
4542
4528
|
}), Q.utils = {
|
|
4543
4529
|
on: V,
|
|
4544
4530
|
off: H,
|
|
4545
4531
|
css: U,
|
|
4546
|
-
find:
|
|
4532
|
+
find: Jc,
|
|
4547
4533
|
is: function(e, t) {
|
|
4548
|
-
return !!
|
|
4534
|
+
return !!Wc(e, t, e, !1);
|
|
4549
4535
|
},
|
|
4550
|
-
extend:
|
|
4551
|
-
throttle:
|
|
4552
|
-
closest:
|
|
4553
|
-
toggleClass:
|
|
4554
|
-
clone:
|
|
4555
|
-
index:
|
|
4556
|
-
nextTick:
|
|
4557
|
-
cancelNextTick:
|
|
4558
|
-
detectDirection:
|
|
4559
|
-
getChild:
|
|
4536
|
+
extend: rl,
|
|
4537
|
+
throttle: ol,
|
|
4538
|
+
closest: Wc,
|
|
4539
|
+
toggleClass: Kc,
|
|
4540
|
+
clone: ll,
|
|
4541
|
+
index: $c,
|
|
4542
|
+
nextTick: _u,
|
|
4543
|
+
cancelNextTick: vu,
|
|
4544
|
+
detectDirection: $l,
|
|
4545
|
+
getChild: Zc
|
|
4560
4546
|
}, Q.get = function(e) {
|
|
4561
|
-
return e[
|
|
4547
|
+
return e[dl];
|
|
4562
4548
|
}, Q.mount = function() {
|
|
4563
4549
|
var e = [...arguments];
|
|
4564
4550
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
4565
4551
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
4566
|
-
e.utils && (Q.utils =
|
|
4552
|
+
e.utils && (Q.utils = Dc(Dc({}, Q.utils), e.utils)), _l.mount(e);
|
|
4567
4553
|
});
|
|
4568
4554
|
}, Q.create = function(e, t) {
|
|
4569
4555
|
return new Q(e, t);
|
|
4570
|
-
}, Q.version =
|
|
4571
|
-
var $ = [],
|
|
4572
|
-
function
|
|
4556
|
+
}, Q.version = Nc;
|
|
4557
|
+
var $ = [], yu, bu, xu = !1, Su, Cu, wu, Tu;
|
|
4558
|
+
function Eu() {
|
|
4573
4559
|
function e() {
|
|
4574
4560
|
for (var e in this.defaults = {
|
|
4575
4561
|
scroll: !0,
|
|
@@ -4589,63 +4575,63 @@ function Ou() {
|
|
|
4589
4575
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
4590
4576
|
},
|
|
4591
4577
|
drop: function() {
|
|
4592
|
-
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
4578
|
+
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), Ou(), Du(), sl();
|
|
4593
4579
|
},
|
|
4594
4580
|
nulling: function() {
|
|
4595
|
-
|
|
4581
|
+
wu = bu = yu = xu = Tu = Su = Cu = null, $.length = 0;
|
|
4596
4582
|
},
|
|
4597
4583
|
_handleFallbackAutoScroll: function(e) {
|
|
4598
4584
|
this._handleAutoScroll(e, !0);
|
|
4599
4585
|
},
|
|
4600
4586
|
_handleAutoScroll: function(e, t) {
|
|
4601
4587
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
4602
|
-
if (
|
|
4603
|
-
|
|
4604
|
-
var o =
|
|
4605
|
-
|
|
4606
|
-
var a =
|
|
4607
|
-
a !== o && (o = a,
|
|
4608
|
-
}, 10),
|
|
4588
|
+
if (wu = e, t || this.options.forceAutoScrollFallback || Ic || Fc || Rc) {
|
|
4589
|
+
ku(e, this.options, a, t);
|
|
4590
|
+
var o = nl(a, !0);
|
|
4591
|
+
xu && (!Tu || r !== Su || i !== Cu) && (Tu && Ou(), Tu = setInterval(function() {
|
|
4592
|
+
var a = nl(document.elementFromPoint(r, i), !0);
|
|
4593
|
+
a !== o && (o = a, Du()), ku(e, n.options, a, t);
|
|
4594
|
+
}, 10), Su = r, Cu = i);
|
|
4609
4595
|
} else {
|
|
4610
|
-
if (!this.options.bubbleScroll ||
|
|
4611
|
-
|
|
4596
|
+
if (!this.options.bubbleScroll || nl(a, !0) === Yc()) {
|
|
4597
|
+
Du();
|
|
4612
4598
|
return;
|
|
4613
4599
|
}
|
|
4614
|
-
|
|
4600
|
+
ku(e, this.options, nl(a, !1), !1);
|
|
4615
4601
|
}
|
|
4616
4602
|
}
|
|
4617
|
-
},
|
|
4603
|
+
}, Ac(e, {
|
|
4618
4604
|
pluginName: "scroll",
|
|
4619
4605
|
initializeByDefault: !0
|
|
4620
4606
|
});
|
|
4621
4607
|
}
|
|
4622
|
-
function
|
|
4608
|
+
function Du() {
|
|
4623
4609
|
$.forEach(function(e) {
|
|
4624
4610
|
clearInterval(e.pid);
|
|
4625
4611
|
}), $ = [];
|
|
4626
4612
|
}
|
|
4627
|
-
function
|
|
4628
|
-
clearInterval(
|
|
4613
|
+
function Ou() {
|
|
4614
|
+
clearInterval(Tu);
|
|
4629
4615
|
}
|
|
4630
|
-
var
|
|
4616
|
+
var ku = ol(function(e, t, n, r) {
|
|
4631
4617
|
if (t.scroll) {
|
|
4632
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
4633
|
-
|
|
4634
|
-
var d = 0, f =
|
|
4618
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Yc(), l = !1, u;
|
|
4619
|
+
bu !== n && (bu = n, Du(), yu = t.scroll, u = t.scrollFn, yu === !0 && (yu = nl(n, !0)));
|
|
4620
|
+
var d = 0, f = yu;
|
|
4635
4621
|
do {
|
|
4636
4622
|
var p = f, m = W(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 = U(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
4637
4623
|
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"));
|
|
4638
4624
|
var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), te = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
|
|
4639
4625
|
if (!$[d]) for (var O = 0; O <= d; O++) $[O] || ($[O] = {});
|
|
4640
4626
|
($[d].vx != D || $[d].vy != te || $[d].el !== p) && ($[d].el = p, $[d].vx = D, $[d].vy = te, clearInterval($[d].pid), (D != 0 || te != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
4641
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
4627
|
+
r && this.layer === 0 && Q.active._onTouchMove(wu);
|
|
4642
4628
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
4643
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
4629
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[dl], n, t, e, wu, $[this.layer].el) !== "continue" || cl($[this.layer].el, n, t);
|
|
4644
4630
|
}.bind({ layer: d }), 24))), d++;
|
|
4645
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
4646
|
-
|
|
4631
|
+
} while (t.bubbleScroll && f !== c && (f = nl(f, !1)));
|
|
4632
|
+
xu = l;
|
|
4647
4633
|
}
|
|
4648
|
-
}, 30),
|
|
4634
|
+
}, 30), Au = function(e) {
|
|
4649
4635
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
4650
4636
|
if (t) {
|
|
4651
4637
|
var c = n || i;
|
|
@@ -4657,8 +4643,8 @@ var ju = cl(function(e, t, n, r) {
|
|
|
4657
4643
|
}));
|
|
4658
4644
|
}
|
|
4659
4645
|
};
|
|
4660
|
-
function
|
|
4661
|
-
|
|
4646
|
+
function ju() {}
|
|
4647
|
+
ju.prototype = {
|
|
4662
4648
|
startIndex: null,
|
|
4663
4649
|
dragStart: function(e) {
|
|
4664
4650
|
var t = e.oldDraggableIndex;
|
|
@@ -4667,72 +4653,72 @@ Nu.prototype = {
|
|
|
4667
4653
|
onSpill: function(e) {
|
|
4668
4654
|
var t = e.dragEl, n = e.putSortable;
|
|
4669
4655
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
4670
|
-
var r =
|
|
4656
|
+
var r = Zc(this.sortable.el, this.startIndex, this.options);
|
|
4671
4657
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
4672
4658
|
},
|
|
4673
|
-
drop:
|
|
4674
|
-
},
|
|
4675
|
-
function
|
|
4676
|
-
|
|
4659
|
+
drop: Au
|
|
4660
|
+
}, Ac(ju, { pluginName: "revertOnSpill" });
|
|
4661
|
+
function Mu() {}
|
|
4662
|
+
Mu.prototype = {
|
|
4677
4663
|
onSpill: function(e) {
|
|
4678
4664
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
4679
4665
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
4680
4666
|
},
|
|
4681
|
-
drop:
|
|
4682
|
-
},
|
|
4683
|
-
function
|
|
4667
|
+
drop: Au
|
|
4668
|
+
}, Ac(Mu, { pluginName: "removeOnSpill" }), Q.mount(new Eu()), Q.mount(Mu, ju);
|
|
4669
|
+
function Nu(e) {
|
|
4684
4670
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
4685
4671
|
}
|
|
4686
|
-
function
|
|
4672
|
+
function Pu(e) {
|
|
4687
4673
|
so() && ei(e);
|
|
4688
4674
|
}
|
|
4689
|
-
function
|
|
4675
|
+
function Fu(e) {
|
|
4690
4676
|
so() ? Xr(e) : jn(e);
|
|
4691
4677
|
}
|
|
4692
|
-
var
|
|
4693
|
-
function
|
|
4694
|
-
|
|
4678
|
+
var Iu = null, Lu = null;
|
|
4679
|
+
function Ru(e = null, t = null) {
|
|
4680
|
+
Iu = e, Lu = t;
|
|
4695
4681
|
}
|
|
4696
|
-
function
|
|
4682
|
+
function zu() {
|
|
4697
4683
|
return {
|
|
4698
|
-
data:
|
|
4699
|
-
clonedData:
|
|
4684
|
+
data: Iu,
|
|
4685
|
+
clonedData: Lu
|
|
4700
4686
|
};
|
|
4701
4687
|
}
|
|
4702
|
-
var
|
|
4703
|
-
function
|
|
4688
|
+
var Bu = Symbol("cloneElement");
|
|
4689
|
+
function Vu(...e) {
|
|
4704
4690
|
let t = so()?.proxy, n = null, r = e[0], [, i, a] = e;
|
|
4705
4691
|
Array.isArray(I(i)) || (a = i, i = null);
|
|
4706
|
-
let o = null, { immediate: s = !0, clone: c =
|
|
4692
|
+
let o = null, { immediate: s = !0, clone: c = Nu, forceFallback: l, fallbackOnBody: u, customUpdate: d } = I(a) ?? {};
|
|
4707
4693
|
function f(e) {
|
|
4708
4694
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
4709
4695
|
n = l && !u ? o.slice(0, -1) : o;
|
|
4710
4696
|
let s = I(I(i)?.[r]), d = c(s);
|
|
4711
|
-
|
|
4697
|
+
Ru(s, d), a[Bu] = d;
|
|
4712
4698
|
}
|
|
4713
4699
|
function p(e) {
|
|
4714
|
-
let t = e.item[
|
|
4715
|
-
if (!
|
|
4716
|
-
if (
|
|
4700
|
+
let t = e.item[Bu];
|
|
4701
|
+
if (!hc(t)) {
|
|
4702
|
+
if (vc(e.item), /* @__PURE__ */ F(i)) {
|
|
4717
4703
|
let n = [...I(i)];
|
|
4718
|
-
i.value =
|
|
4704
|
+
i.value = mc(n, e.newDraggableIndex, t);
|
|
4719
4705
|
return;
|
|
4720
4706
|
}
|
|
4721
|
-
|
|
4707
|
+
mc(I(i), e.newDraggableIndex, t);
|
|
4722
4708
|
}
|
|
4723
4709
|
}
|
|
4724
4710
|
function m(e) {
|
|
4725
4711
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
4726
|
-
if (
|
|
4727
|
-
|
|
4712
|
+
if (_c(t, n, r), o === "clone") {
|
|
4713
|
+
vc(s);
|
|
4728
4714
|
return;
|
|
4729
4715
|
}
|
|
4730
4716
|
if (/* @__PURE__ */ F(i)) {
|
|
4731
4717
|
let e = [...I(i)];
|
|
4732
|
-
i.value =
|
|
4718
|
+
i.value = pc(e, a);
|
|
4733
4719
|
return;
|
|
4734
4720
|
}
|
|
4735
|
-
|
|
4721
|
+
pc(I(i), a);
|
|
4736
4722
|
}
|
|
4737
4723
|
function h(e) {
|
|
4738
4724
|
if (d) {
|
|
@@ -4740,12 +4726,12 @@ function Uu(...e) {
|
|
|
4740
4726
|
return;
|
|
4741
4727
|
}
|
|
4742
4728
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
4743
|
-
if (
|
|
4729
|
+
if (vc(n), _c(t, n, r), /* @__PURE__ */ F(i)) {
|
|
4744
4730
|
let e = [...I(i)];
|
|
4745
|
-
i.value =
|
|
4731
|
+
i.value = uc(e, a, o);
|
|
4746
4732
|
return;
|
|
4747
4733
|
}
|
|
4748
|
-
|
|
4734
|
+
uc(I(i), a, o);
|
|
4749
4735
|
}
|
|
4750
4736
|
function g(e) {
|
|
4751
4737
|
let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
|
|
@@ -4763,7 +4749,7 @@ function Uu(...e) {
|
|
|
4763
4749
|
n = null;
|
|
4764
4750
|
}
|
|
4765
4751
|
jn(() => {
|
|
4766
|
-
if (
|
|
4752
|
+
if (Ru(), o) throw o;
|
|
4767
4753
|
});
|
|
4768
4754
|
}
|
|
4769
4755
|
let _ = {
|
|
@@ -4775,19 +4761,19 @@ function Uu(...e) {
|
|
|
4775
4761
|
};
|
|
4776
4762
|
function v(e) {
|
|
4777
4763
|
let n = I(r);
|
|
4778
|
-
return e ||=
|
|
4764
|
+
return e ||= gc(n) ? yc(n, t?.$el) : n, e && !Sc(e) && (e = e.$el), e || lc("Root element not found"), e;
|
|
4779
4765
|
}
|
|
4780
4766
|
function y() {
|
|
4781
|
-
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r =
|
|
4782
|
-
return
|
|
4783
|
-
|
|
4784
|
-
}),
|
|
4767
|
+
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r = oc(e, ["immediate", "clone"]);
|
|
4768
|
+
return Cc(r, (e, t) => {
|
|
4769
|
+
wc(e) && (r[e] = (e, ...n) => (Tc(e, zu()), t(e, ...n)));
|
|
4770
|
+
}), xc(i === null ? {} : _, r);
|
|
4785
4771
|
}
|
|
4786
4772
|
let b = (e) => {
|
|
4787
4773
|
e = v(e), o && x.destroy(), o = new Q(e, y());
|
|
4788
4774
|
};
|
|
4789
4775
|
Qn(() => a, () => {
|
|
4790
|
-
o &&
|
|
4776
|
+
o && Cc(y(), (e, t) => {
|
|
4791
4777
|
o?.option(e, t);
|
|
4792
4778
|
});
|
|
4793
4779
|
}, { deep: !0 });
|
|
@@ -4800,15 +4786,15 @@ function Uu(...e) {
|
|
|
4800
4786
|
toArray: () => o?.toArray(),
|
|
4801
4787
|
closest: (...e) => o?.closest(...e)
|
|
4802
4788
|
};
|
|
4803
|
-
return
|
|
4789
|
+
return Fu(() => {
|
|
4804
4790
|
s && b();
|
|
4805
|
-
}),
|
|
4791
|
+
}), Pu(x.destroy), ac({
|
|
4806
4792
|
start: b,
|
|
4807
4793
|
pause: () => x?.option("disabled", !0),
|
|
4808
4794
|
resume: () => x?.option("disabled", !1)
|
|
4809
4795
|
}, x);
|
|
4810
4796
|
}
|
|
4811
|
-
var
|
|
4797
|
+
var Hu = [
|
|
4812
4798
|
"update",
|
|
4813
4799
|
"start",
|
|
4814
4800
|
"add",
|
|
@@ -4821,7 +4807,7 @@ var Wu = [
|
|
|
4821
4807
|
"clone",
|
|
4822
4808
|
"move",
|
|
4823
4809
|
"change"
|
|
4824
|
-
],
|
|
4810
|
+
], Uu = /* @__PURE__ */ jr({
|
|
4825
4811
|
name: "VueDraggable",
|
|
4826
4812
|
model: {
|
|
4827
4813
|
prop: "modelValue",
|
|
@@ -4871,27 +4857,27 @@ var Wu = [
|
|
|
4871
4857
|
"tag",
|
|
4872
4858
|
"target",
|
|
4873
4859
|
"customUpdate",
|
|
4874
|
-
...
|
|
4860
|
+
...Hu.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
4875
4861
|
],
|
|
4876
|
-
emits: ["update:modelValue", ...
|
|
4862
|
+
emits: ["update:modelValue", ...Hu],
|
|
4877
4863
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
4878
|
-
let a =
|
|
4864
|
+
let a = Hu.reduce((e, t) => {
|
|
4879
4865
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
4880
4866
|
return e[r] = (...e) => n(t, ...e), e;
|
|
4881
|
-
}, {}), o =
|
|
4882
|
-
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r =
|
|
4867
|
+
}, {}), o = wo(() => {
|
|
4868
|
+
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r = oc(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
4883
4869
|
let r = I(n);
|
|
4884
4870
|
return r !== void 0 && (e[t] = r), e;
|
|
4885
4871
|
}, {});
|
|
4886
|
-
return
|
|
4887
|
-
}), s =
|
|
4872
|
+
return ac(ac({}, a), fc(ac(ac({}, i), o)));
|
|
4873
|
+
}), s = wo({
|
|
4888
4874
|
get: () => e.modelValue,
|
|
4889
4875
|
set: (e) => n("update:modelValue", e)
|
|
4890
|
-
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(
|
|
4891
|
-
return r(l), () =>
|
|
4876
|
+
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(Vu(e.target || c, s, o));
|
|
4877
|
+
return r(l), () => To(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
4892
4878
|
}
|
|
4893
4879
|
});
|
|
4894
4880
|
//#endregion
|
|
4895
|
-
export { Vt as $, $r as A, Qn as B, so as C, bi as D, Kn as E, di as F, on as G, Hn as H, pi as I, qt as J, Ee as K, oi as L, ei as M, Fa as N, no as O, Gn as P, Xt as Q, ci as R, jr as S, qn as T, Un as U, Xn as V, pn as W, Rt as X, De as Y, Bt as Z, fi as _,
|
|
4881
|
+
export { Vt as $, $r as A, Qn as B, so as C, bi as D, Kn as E, di as F, on as G, Hn as H, pi as I, qt as J, Ee as K, oi as L, ei as M, Fa as N, no as O, Gn as P, Xt as Q, ci as R, jr as S, qn as T, Un as U, Xn as V, pn as W, Rt as X, De as Y, Bt as Z, fi as _, zs as a, I as at, z as b, Ks as c, me as ct, pr as d, Zt as et, wo as f, Ba as g, Qa as h, Xs as i, en as it, Xr as j, jn as k, Ws as l, le as lt, Va as m, Bo as n, un as nt, Rs as o, vn as ot, Ka as p, F as q, Zs as r, tn as rt, rs as s, D as st, Uu as t, P as tt, Aa as u, Se as ut, Za as v, To as w, Br as x, Xa as y, Bi as z };
|
|
4896
4882
|
|
|
4897
|
-
//# sourceMappingURL=draggable-
|
|
4883
|
+
//# sourceMappingURL=draggable-BLMjz0GK.js.map
|