@templatical/editor 0.25.0 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-CIkS8DsO.js → AiChatSidebar-JLsbPnsH.js} +14 -14
- package/dist/{AiFeatureMenu-Cji1LBJJ.js → AiFeatureMenu-BvA-lViN.js} +7 -7
- package/dist/{BlockIssueBadge-BQiT0FML.js → BlockIssueBadge-Cf0-GC3o.js} +5 -5
- package/dist/{BlockPreviewCanvas-DAnwZofk.js → BlockPreviewCanvas-CnJIM5TO.js} +3 -3
- package/dist/{CloudEditor-CXaft6Ej.js → CloudEditor-Caq7z4-7.js} +25 -25
- package/dist/{CollaboratorBar-BR-rL2wG.js → CollaboratorBar-BFz4LgA0.js} +4 -4
- package/dist/{ColorPicker-B4ArSUhy.js → ColorPicker-B5xXWWX5.js} +6 -6
- package/dist/{CommentsSidebar-Bm5GLDts.js → CommentsSidebar-CGihWwn9.js} +15 -15
- package/dist/{CountdownBlock-CIVAQDVu.js → CountdownBlock-DuyvGcr8.js} +3 -3
- package/dist/{CountdownToolbar-DBmb3tlb.js → CountdownToolbar-DpNCZAUI.js} +4 -4
- package/dist/{DesignReferenceSidebar-CnyJ8L-j.js → DesignReferenceSidebar-CiIHHiil.js} +11 -11
- package/dist/{IssuesPanel-D3XgmYCt.js → IssuesPanel-CUkmAC_S.js} +8 -8
- package/dist/{LoadingTrack-XK_eeUdq.js → LoadingTrack-BexpNuTV.js} +1 -1
- package/dist/{MergeTagModeToggle-BK0fI3P2.js → MergeTagModeToggle-C6nS3qri.js} +5 -5
- package/dist/{MergeTagSuggestion-D0OHRv7L.js → MergeTagSuggestion-98fAcuM-.js} +26 -24
- package/dist/{NumberWithSuffix-Cjj9UNIp.js → NumberWithSuffix-DB-1GNvx.js} +2 -2
- package/dist/{ParagraphEditor-jGnbJEA2.js → ParagraphEditor-NgW-T9YV.js} +114 -97
- package/dist/{RichTextEditorContent-DaaKdzjb.js → RichTextEditorContent-CN7OVR6u.js} +8 -8
- package/dist/{SaveBlockDialog-B3ngEldp.js → SaveBlockDialog-lgcmhAsO.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-DawN3XaB.js → SavedBlocksBrowserModal-3u247V2z.js} +11 -11
- package/dist/{SavedBlocksPanels-eDC9Y46N.js → SavedBlocksPanels-Dh6dABJt.js} +2 -2
- package/dist/{SavedBlocksPickBar-CQbbXmzj.js → SavedBlocksPickBar-Bo82D3Qy.js} +4 -4
- package/dist/{SnapshotHistory-COxKtHM-.js → SnapshotHistory-Dsb1i40w.js} +16 -16
- package/dist/{TemplateScoringPanel-bUuqOO1z.js → TemplateScoringPanel-Bzd_YSag.js} +15 -15
- package/dist/{TestEmailModal-CytkbZVQ.js → TestEmailModal-DvqDTOcO.js} +10 -10
- package/dist/{TestEmailPanel-CHUY7VZn.js → TestEmailPanel-BXoVnAqu.js} +2 -2
- package/dist/{TitleEditor-aMR1bOyY.js → TitleEditor-DWSi998C.js} +12 -12
- package/dist/{TplModal-fmYNYdyp.js → TplModal-DKn0h2qe.js} +5 -5
- package/dist/{blockTypeIcons-C6b9rg88.js → blockTypeIcons-DKlza6aR.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-8Dvbwo50.js → ca-D1zgI9fQ.js} +1 -0
- package/dist/cdn/chunks/{AiChatSidebar-bkBKpNgE.js → AiChatSidebar-BY1Iy-e8.js} +14 -14
- package/dist/cdn/chunks/{AiChatSidebar-bkBKpNgE.js.map → AiChatSidebar-BY1Iy-e8.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CI4SYTq2.js → AiFeatureMenu-BS4Rek6j.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-CI4SYTq2.js.map → AiFeatureMenu-BS4Rek6j.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CRnx8Dv9.js → BlockIssueBadge-BcIQUe_Q.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CRnx8Dv9.js.map → BlockIssueBadge-BcIQUe_Q.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CXCWhqbp.js → BlockPreviewCanvas-oND1iXLL.js} +4 -4
- package/dist/cdn/chunks/{BlockPreviewCanvas-CXCWhqbp.js.map → BlockPreviewCanvas-oND1iXLL.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-D-t7RyDh.js → CloudEditor-BaqiFbf0.js} +28 -28
- package/dist/cdn/chunks/{CloudEditor-D-t7RyDh.js.map → CloudEditor-BaqiFbf0.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DcXYo47v.js → CollaboratorBar-DF02nTwF.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-DcXYo47v.js.map → CollaboratorBar-DF02nTwF.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-_1O7YU2z.js → ColorPicker-BXH44v2H.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-_1O7YU2z.js.map → ColorPicker-BXH44v2H.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-BEgLBYX-.js → CommentsSidebar-B9bWvvbl.js} +10 -10
- package/dist/cdn/chunks/{CommentsSidebar-BEgLBYX-.js.map → CommentsSidebar-B9bWvvbl.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CPnQA44g.js → CountdownBlock-BTpRd0Hn.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-CPnQA44g.js.map → CountdownBlock-BTpRd0Hn.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cdo-30U4.js → CountdownToolbar-CW10rbWt.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-Cdo-30U4.js.map → CountdownToolbar-CW10rbWt.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-DPqBr-ut.js → DesignReferenceSidebar-BXjH47QC.js} +9 -9
- package/dist/cdn/chunks/{DesignReferenceSidebar-DPqBr-ut.js.map → DesignReferenceSidebar-BXjH47QC.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DoQWb23r.js → IssuesPanel-DStHCHfr.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-DoQWb23r.js.map → IssuesPanel-DStHCHfr.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js → LoadingTrack-DQowK3MV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js.map → LoadingTrack-DQowK3MV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CWuVC3MU.js → MergeTagModeToggle-BCmQg4Qe.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-CWuVC3MU.js.map → MergeTagModeToggle-BCmQg4Qe.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js → MergeTagSuggestion-BgExdloL.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js.map → MergeTagSuggestion-BgExdloL.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DQ4sgvt5.js → NumberWithSuffix-BANVbpT0.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DQ4sgvt5.js.map → NumberWithSuffix-BANVbpT0.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Uv5LPF3W.js → ParagraphEditor-DqilB4_f.js} +142 -132
- package/dist/cdn/chunks/ParagraphEditor-DqilB4_f.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Bt3s09qY.js → RichTextEditorContent-BeJx4LVH.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-Bt3s09qY.js.map → RichTextEditorContent-BeJx4LVH.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BAew6EFd.js → SaveBlockDialog-Dm31xRZy.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-BAew6EFd.js.map → SaveBlockDialog-Dm31xRZy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Dn4IJDJW.js → SavedBlocksBrowserModal-Tp37b4y7.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Dn4IJDJW.js.map → SavedBlocksBrowserModal-Tp37b4y7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-B62U5DYW.js → SavedBlocksPanels-ElerTTa_.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-B62U5DYW.js.map → SavedBlocksPanels-ElerTTa_.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CyRKZg2T.js → SavedBlocksPickBar-QHJ-Mjx0.js} +7 -7
- package/dist/cdn/chunks/{SavedBlocksPickBar-CyRKZg2T.js.map → SavedBlocksPickBar-QHJ-Mjx0.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-QQt0DKey.js → SnapshotHistory-jogWGLB-.js} +12 -12
- package/dist/cdn/chunks/{SnapshotHistory-QQt0DKey.js.map → SnapshotHistory-jogWGLB-.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BwyCMcit.js → TemplateScoringPanel-B2XIOTl-.js} +52 -52
- package/dist/cdn/chunks/{TemplateScoringPanel-BwyCMcit.js.map → TemplateScoringPanel-B2XIOTl-.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-B5UQkDJp.js → TestEmailModal-BcPjQygV.js} +9 -9
- package/dist/cdn/chunks/{TestEmailModal-B5UQkDJp.js.map → TestEmailModal-BcPjQygV.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CvuBq4RA.js → TestEmailPanel-1zxRa00s.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-CvuBq4RA.js.map → TestEmailPanel-1zxRa00s.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-B9W954u9.js → TitleEditor-DTrmublj.js} +14 -14
- package/dist/cdn/chunks/{TitleEditor-B9W954u9.js.map → TitleEditor-DTrmublj.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-B8UsvWc8.js → TplModal-By50gtwa.js} +5 -5
- package/dist/cdn/chunks/{TplModal-B8UsvWc8.js.map → TplModal-By50gtwa.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-BhFhHuFt.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-B8s3_ahs.js.map → blockTypeIcons-BhFhHuFt.js.map} +1 -1
- package/dist/cdn/chunks/{ca-8Dvbwo50.js → ca-D1zgI9fQ.js} +2 -1
- package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +1 -0
- package/dist/cdn/chunks/{cloud-DOaGUdR0.js → cloud-B0f7Ub8f.js} +3 -3
- package/dist/cdn/chunks/{cloud-DOaGUdR0.js.map → cloud-B0f7Ub8f.js.map} +1 -1
- package/dist/cdn/chunks/{de-CieSMCUp.js → de-DHra3lvx.js} +2 -1
- package/dist/cdn/chunks/de-DHra3lvx.js.map +1 -0
- package/dist/cdn/chunks/{dist-lZgXNk4G.js → dist-B4VIlp1g.js} +3 -3
- package/dist/cdn/chunks/{dist-lZgXNk4G.js.map → dist-B4VIlp1g.js.map} +1 -1
- package/dist/cdn/chunks/{dist-B8AX9np4.js → dist-H51neg3K.js} +10 -8
- package/dist/cdn/chunks/{dist-B8AX9np4.js.map → dist-H51neg3K.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-JcMTNF3U.js → draggable-Z4XXmbPC.js} +556 -522
- package/dist/cdn/chunks/draggable-Z4XXmbPC.js.map +1 -0
- package/dist/cdn/chunks/{en-D0t_2Fq_.js → en-DlqX2YWZ.js} +2 -1
- package/dist/cdn/chunks/en-DlqX2YWZ.js.map +1 -0
- package/dist/cdn/chunks/{es-DwDoNuLM.js → es-Cuss2snv.js} +2 -1
- package/dist/cdn/chunks/es-Cuss2snv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-5jgtarD-.js → extensions-Dq0D79tq.js} +6 -6
- package/dist/cdn/chunks/{extensions-5jgtarD-.js.map → extensions-Dq0D79tq.js.map} +1 -1
- package/dist/cdn/chunks/{fr-CSEEzv1_.js → fr-Cm85vB2g.js} +2 -1
- package/dist/cdn/chunks/fr-Cm85vB2g.js.map +1 -0
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js → htmlparser-DTML8Gvz.js} +8 -7
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js.map → htmlparser-DTML8Gvz.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Cp4ZIJw-.js → icons-C_kRN0_C.js} +104 -97
- package/dist/cdn/chunks/icons-C_kRN0_C.js.map +1 -0
- package/dist/cdn/chunks/{keys-BxPCfHBH.js → keys-DsoX52o_.js} +2 -2
- package/dist/cdn/chunks/{keys-BxPCfHBH.js.map → keys-DsoX52o_.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js → liquid.browser-DrGys_ek.js} +22 -20
- package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js.map → liquid.browser-DrGys_ek.js.map} +1 -1
- package/dist/cdn/chunks/{nl-xyk1T2mA.js → nl-dmiIX7oT.js} +2 -1
- package/dist/cdn/chunks/nl-dmiIX7oT.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-yr6uOJgn.js → pt-BR-CaIG-7EM.js} +2 -1
- package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +1 -0
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js → pusher-BbIHJKf3.js} +29 -25
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js.map → pusher-BbIHJKf3.js.map} +1 -1
- package/dist/cdn/chunks/{src-C417zeUg.js → src-Aea1Vl1H.js} +2 -2
- package/dist/cdn/chunks/{src-C417zeUg.js.map → src-Aea1Vl1H.js.map} +1 -1
- package/dist/cdn/chunks/{src-Dpj0x27M.js → src-CRvTVX4F.js} +427 -424
- package/dist/cdn/chunks/{src-Dpj0x27M.js.map → src-CRvTVX4F.js.map} +1 -1
- package/dist/cdn/chunks/{src-B8W42vT-.js → src-_GNJgPcS.js} +216 -176
- package/dist/cdn/chunks/src-_GNJgPcS.js.map +1 -0
- package/dist/cdn/chunks/{styles-DANwMzW2.js → styles-znpPfrFd.js} +79 -79
- package/dist/cdn/chunks/{styles-DANwMzW2.js.map → styles-znpPfrFd.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-rsib432n.js → tiptap-C5vzWlHv.js} +225 -183
- package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js → useAliveFlag-4IDYQRNu.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js.map → useAliveFlag-4IDYQRNu.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CjVzv11v.js → useCloudI18n-D4JpHTPk.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CjVzv11v.js.map → useCloudI18n-D4JpHTPk.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-DfW-thCr.js → useEditorCore-BMXBmdd8.js} +28 -28
- package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-DniEFeIl.js → useI18n-BvcEYzrI.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DniEFeIl.js.map → useI18n-BvcEYzrI.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Bk9_f5cc.js → useMergeTag-BSdxMUzg.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Bk9_f5cc.js.map → useMergeTag-BSdxMUzg.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-C4xFJCJ2.js → usePopoverPosition-ig-71caO.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-C4xFJCJ2.js.map → usePopoverPosition-ig-71caO.js.map} +1 -1
- package/dist/cdn/editor.js +15 -15
- package/dist/{check-CIhIDh4h.js → check-COV27dGb.js} +1 -1
- package/dist/{chevron-down-CZ0m6G3s.js → chevron-down-vsU88vcr.js} +1 -1
- package/dist/{chevron-up-BH_tJLeb.js → chevron-up-RrZ0Rjn9.js} +1 -1
- package/dist/{circle-alert-DkEXnGPV.js → circle-alert-B6GlHmmi.js} +1 -1
- package/dist/{clock-BDIJZUET.js → clock-egOt8zjQ.js} +1 -1
- package/dist/{cloud-BZn3jqoL.js → cloud-D-2StbvU.js} +1 -1
- package/dist/{createLucideIcon-AEltGIse.js → createLucideIcon-D6cqT5Pm.js} +3 -3
- package/dist/{de-CieSMCUp.js → de-DHra3lvx.js} +1 -0
- package/dist/{dist-iCEDH3cC.js → dist-B56SufAv.js} +1 -1
- package/dist/{dist-CkPvZCld.js → dist-BQZkRg05.js} +1 -1
- package/dist/{dist-DT1XnEnj.js → dist-BpKxrUi2.js} +2 -2
- package/dist/{dist-CcQFPJMF.js → dist-CHxPjcxA.js} +181 -145
- package/dist/{dist-BxbTVeY0.js → dist-CqV4XslQ.js} +1 -1
- package/dist/{dist-Dx71pluS.js → dist-D4GoAr2g.js} +9 -7
- package/dist/{dist-DSIgxp0v.js → dist-DHwnYYx0.js} +1 -1
- package/dist/{dist-DX4x6mQ1.js → dist-Du95Y9M3.js} +1 -1
- package/dist/{dist-B6Px6GPj.js → dist-DzzTB4eE.js} +1 -1
- package/dist/{dist-DyCHUyRR.js → dist-GUZZpDK3.js} +1 -1
- package/dist/{dist-nR6mxyqI.js → dist-MwT7T6Xp.js} +1 -1
- package/dist/{dist-CIqhVQ1O.js → dist-UkG5ZJ1P.js} +17 -15
- package/dist/{dist-CRH880TV.js → dist-vpuiQ7_Q.js} +1 -1
- package/dist/{en-D0t_2Fq_.js → en-DlqX2YWZ.js} +1 -0
- package/dist/{es-DwDoNuLM.js → es-Cuss2snv.js} +1 -0
- package/dist/{extensions-BjvyU9Ea.js → extensions-y6KjLr9t.js} +7 -7
- package/dist/{fr-CSEEzv1_.js → fr-Cm85vB2g.js} +1 -0
- package/dist/{image-up-8ktdYdaZ.js → image-up-CycES-MQ.js} +1 -1
- package/dist/{info-CvrCgTLH.js → info-BUdvm046.js} +1 -1
- package/dist/{keys-BFPiNAIn.js → keys-fwF3qZax.js} +1 -1
- package/dist/{liquid.browser-BECWFL5Z.js → liquid.browser-Di5zMIEx.js} +21 -19
- package/dist/{list-checks-yzGT93ZL.js → list-checks-BAeuuATD.js} +1 -1
- package/dist/{loader-circle-B6euendB.js → loader-circle-L5yuAx_j.js} +1 -1
- package/dist/{message-circle-BMldLVcA.js → message-circle-DRdaapVc.js} +1 -1
- package/dist/{nl-xyk1T2mA.js → nl-dmiIX7oT.js} +1 -0
- package/dist/{pencil-CkKkSd6N.js → pencil-BfErVPf_.js} +1 -1
- package/dist/{pt-BR-yr6uOJgn.js → pt-BR-CaIG-7EM.js} +1 -0
- package/dist/{refresh-cw-fBPgB97G.js → refresh-cw-D0PYatER.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CBbDt7sw.js → runtime-dom.esm-bundler-CepEmvwF.js} +172 -168
- package/dist/{scan-line-CRoEOUiK.js → scan-line-Byi3fJcr.js} +1 -1
- package/dist/{send-B9Tt2qBi.js → send-DuyNexMY.js} +1 -1
- package/dist/{shield-check-QfZkYeIo.js → shield-check-BkkN_1qw.js} +1 -1
- package/dist/{sparkles-8UeMmZb8.js → sparkles-DAw2sBXk.js} +1 -1
- package/dist/{styles-C9GM-bBC.js → styles-BzwheHH_.js} +32 -32
- package/dist/templatical-editor.js +17 -17
- package/dist/{text-align-start-Dn8uIheW.js → text-align-start-Ba3xJKn6.js} +1 -1
- package/dist/{trash-2-DDyvqj0E.js → trash-2-CapEBXBI.js} +1 -1
- package/dist/{triangle-alert-B3PydLzl.js → triangle-alert-52pdw8jI.js} +1 -1
- package/dist/{upload-hE8ItfyG.js → upload-oAgigC31.js} +1 -1
- package/dist/{useAliveFlag-AfoTE_AY.js → useAliveFlag-cvyBxHp7.js} +1 -1
- package/dist/{useCloudI18n-B2lItQ6O.js → useCloudI18n-DKVm6PCa.js} +2 -2
- package/dist/{useEditorCore-Ck_hBiGA.js → useEditorCore-BhjEMSeE.js} +23 -23
- package/dist/{useI18n-C1KcdX_K.js → useI18n-DoVKdCTH.js} +2 -2
- package/dist/{useMergeTag-DHCwRMfH.js → useMergeTag-DTSOQnyr.js} +2 -2
- package/dist/{usePopoverPosition-ClnEh_Cp.js → usePopoverPosition-C0dPEF4X.js} +4 -4
- package/dist/{vue.runtime.esm-bundler-Xpz-L9Fn.js → vue.runtime.esm-bundler-D1diBMsm.js} +297 -251
- package/dist/{x-C4lETLDx.js → x-DvBgbDuf.js} +1 -1
- package/package.json +11 -11
- package/dist/cdn/chunks/ParagraphEditor-Uv5LPF3W.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-B8s3_ahs.js +0 -21
- package/dist/cdn/chunks/ca-8Dvbwo50.js.map +0 -1
- package/dist/cdn/chunks/de-CieSMCUp.js.map +0 -1
- package/dist/cdn/chunks/draggable-JcMTNF3U.js.map +0 -1
- package/dist/cdn/chunks/en-D0t_2Fq_.js.map +0 -1
- package/dist/cdn/chunks/es-DwDoNuLM.js.map +0 -1
- package/dist/cdn/chunks/fr-CSEEzv1_.js.map +0 -1
- package/dist/cdn/chunks/icons-Cp4ZIJw-.js.map +0 -1
- package/dist/cdn/chunks/nl-xyk1T2mA.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-yr6uOJgn.js.map +0 -1
- package/dist/cdn/chunks/src-B8W42vT-.js.map +0 -1
- package/dist/cdn/chunks/tiptap-rsib432n.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DfW-thCr.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.41/node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
2
2
|
// @__NO_SIDE_EFFECTS__
|
|
3
3
|
function e(e) {
|
|
4
4
|
let t = /* @__PURE__ */ Object.create(null);
|
|
@@ -912,24 +912,26 @@ function vn(e, n, i = t) {
|
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
914
|
let C = b ? Array(e.length).fill(mn) : mn, w = (e) => {
|
|
915
|
-
if (!(!(m.flags & 1) || !m.dirty && !e))
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
915
|
+
if (!(!(m.flags & 1) || !m.dirty && !e)) {
|
|
916
|
+
if (n) {
|
|
917
|
+
let t = m.run();
|
|
918
|
+
if (e || o || y || (b ? t.some((e, t) => k(e, C[t])) : k(t, C))) {
|
|
919
|
+
_ && _();
|
|
920
|
+
let e = gn;
|
|
921
|
+
gn = m;
|
|
922
|
+
try {
|
|
923
|
+
let e = [
|
|
924
|
+
t,
|
|
925
|
+
C === mn ? void 0 : b && C[0] === mn ? [] : C,
|
|
926
|
+
v
|
|
927
|
+
];
|
|
928
|
+
C = t, f ? f(n, 3, e) : n(...e);
|
|
929
|
+
} finally {
|
|
930
|
+
gn = e;
|
|
931
|
+
}
|
|
930
932
|
}
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
+
} else m.run();
|
|
934
|
+
}
|
|
933
935
|
};
|
|
934
936
|
return u && u(w), m = new ke(g), m.scheduler = l ? () => l(w, !1) : w, v = (e) => _n(e, !1, m), _ = m.onStop = () => {
|
|
935
937
|
let e = hn.get(m);
|
|
@@ -954,7 +956,7 @@ function yn(e, t = Infinity, n) {
|
|
|
954
956
|
return e;
|
|
955
957
|
}
|
|
956
958
|
//#endregion
|
|
957
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
959
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.41/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
958
960
|
function bn(e, t, n, r) {
|
|
959
961
|
try {
|
|
960
962
|
return r ? e(...r) : e();
|
|
@@ -1024,7 +1026,9 @@ function Pn() {
|
|
|
1024
1026
|
An ||= kn.then(zn);
|
|
1025
1027
|
}
|
|
1026
1028
|
function Fn(e) {
|
|
1027
|
-
d(e)
|
|
1029
|
+
if (!d(e)) Dn && e.id === -1 ? Dn.splice(On + 1, 0, e) : e.flags & 1 || (En.push(e), e.flags |= 1);
|
|
1030
|
+
else for (let t = 0; t < e.length; t++) En.push(e[t]);
|
|
1031
|
+
Pn();
|
|
1028
1032
|
}
|
|
1029
1033
|
function In(e, t, n = Tn + 1) {
|
|
1030
1034
|
for (; n < wn.length; n++) {
|
|
@@ -1039,7 +1043,7 @@ function Ln(e) {
|
|
|
1039
1043
|
if (En.length) {
|
|
1040
1044
|
let e = [...new Set(En)].sort((e, t) => Rn(e) - Rn(t));
|
|
1041
1045
|
if (En.length = 0, Dn) {
|
|
1042
|
-
Dn.push(
|
|
1046
|
+
for (let t = 0; t < e.length; t++) Dn.push(e[t]);
|
|
1043
1047
|
return;
|
|
1044
1048
|
}
|
|
1045
1049
|
for (Dn = e, On = 0; On < Dn.length; On++) {
|
|
@@ -1375,8 +1379,10 @@ function Er(e, t, n, r, i) {
|
|
|
1375
1379
|
persisted: s,
|
|
1376
1380
|
beforeEnter(t) {
|
|
1377
1381
|
let r = c;
|
|
1378
|
-
if (!n.isMounted)
|
|
1379
|
-
|
|
1382
|
+
if (!n.isMounted) {
|
|
1383
|
+
if (a) r = _ || c;
|
|
1384
|
+
else return;
|
|
1385
|
+
}
|
|
1380
1386
|
t[gr] && t[gr](!0);
|
|
1381
1387
|
let i = S[x];
|
|
1382
1388
|
i && Ha(e, i) && i.el[gr] && i.el[gr](), C(r, [t]);
|
|
@@ -1384,8 +1390,10 @@ function Er(e, t, n, r, i) {
|
|
|
1384
1390
|
enter(t) {
|
|
1385
1391
|
if (S[x] === e) return;
|
|
1386
1392
|
let r = l, i = u, o = f;
|
|
1387
|
-
if (!n.isMounted)
|
|
1388
|
-
|
|
1393
|
+
if (!n.isMounted) {
|
|
1394
|
+
if (a) r = v || l, i = y || u, o = b || f;
|
|
1395
|
+
else return;
|
|
1396
|
+
}
|
|
1389
1397
|
let s = !1;
|
|
1390
1398
|
t[_r] = (e) => {
|
|
1391
1399
|
s || (s = !0, C(e ? o : i, [t]), T.delayedLeave && T.delayedLeave(), t[_r] = void 0);
|
|
@@ -1424,7 +1432,11 @@ function Or(e) {
|
|
|
1424
1432
|
}
|
|
1425
1433
|
}
|
|
1426
1434
|
function kr(e, t) {
|
|
1427
|
-
e.shapeFlag & 6 && e.component
|
|
1435
|
+
if (e.shapeFlag & 6 && e.component) {
|
|
1436
|
+
e.transition = t;
|
|
1437
|
+
let n = e.component.subTree;
|
|
1438
|
+
kr(ir(n.type) && Or(n) || n, t);
|
|
1439
|
+
} else e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1428
1440
|
}
|
|
1429
1441
|
function Ar(e, t = !1, n) {
|
|
1430
1442
|
let r = [], i = 0;
|
|
@@ -1505,9 +1517,11 @@ function Rr(e, t) {
|
|
|
1505
1517
|
for (; r;) {
|
|
1506
1518
|
if (r.nodeType === 1) {
|
|
1507
1519
|
if (t(r) === !1) break;
|
|
1508
|
-
} else if (Lr(r))
|
|
1509
|
-
if (
|
|
1510
|
-
|
|
1520
|
+
} else if (Lr(r)) {
|
|
1521
|
+
if (r.data === "]") {
|
|
1522
|
+
if (--n === 0) break;
|
|
1523
|
+
} else r.data === "[" && n++;
|
|
1524
|
+
}
|
|
1511
1525
|
r = r.nextSibling;
|
|
1512
1526
|
}
|
|
1513
1527
|
} else t(e);
|
|
@@ -1654,20 +1668,21 @@ function di(e, t, n, r) {
|
|
|
1654
1668
|
} else if (typeof e == "number") {
|
|
1655
1669
|
i = Array(e);
|
|
1656
1670
|
for (let n = 0; n < e; n++) i[n] = t(n + 1, n, void 0, a && a[n]);
|
|
1657
|
-
} else if (v(e))
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
let o = n
|
|
1663
|
-
|
|
1671
|
+
} else if (v(e)) {
|
|
1672
|
+
if (e[Symbol.iterator]) i = Array.from(e, (e, n) => t(e, n, void 0, a && a[n]));
|
|
1673
|
+
else {
|
|
1674
|
+
let n = Object.keys(e);
|
|
1675
|
+
i = Array(n.length);
|
|
1676
|
+
for (let r = 0, o = n.length; r < o; r++) {
|
|
1677
|
+
let o = n[r];
|
|
1678
|
+
i[r] = t(e[o], o, r, a && a[r]);
|
|
1679
|
+
}
|
|
1664
1680
|
}
|
|
1665
|
-
}
|
|
1666
|
-
else i = [];
|
|
1681
|
+
} else i = [];
|
|
1667
1682
|
return n && (n[r] = i), i;
|
|
1668
1683
|
}
|
|
1669
|
-
function fi(e, t, n
|
|
1670
|
-
if (L.ce || L.parent && zr(L.parent) && L.parent.ce) {
|
|
1684
|
+
function fi(e, t, n, r, i, a) {
|
|
1685
|
+
if (n ??= {}, L.ce || L.parent && zr(L.parent) && L.parent.ce) {
|
|
1671
1686
|
let e = a != null && n.key == null ? s({}, n, { key: a }) : n, i = Object.keys(e).length > 0;
|
|
1672
1687
|
return t !== "default" && (e.name = t), Pa(), Ba(ka, null, [z("slot", e, r && r())], i ? -2 : 64);
|
|
1673
1688
|
}
|
|
@@ -1786,16 +1801,18 @@ function xi(e) {
|
|
|
1786
1801
|
function A(e, t) {
|
|
1787
1802
|
d(t) ? t.forEach((t) => e(t.bind(n))) : t && e(t.bind(n));
|
|
1788
1803
|
}
|
|
1789
|
-
if (A(Yr, p), A(Xr, m), A(Zr, g), A(Qr, _), A(Ur, y), A(Wr, b), A(ii, D), A(ri, E), A(ni, ee), A($r, S), A(ei, w), A(ti, te), d(O))
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1804
|
+
if (A(Yr, p), A(Xr, m), A(Zr, g), A(Qr, _), A(Ur, y), A(Wr, b), A(ii, D), A(ri, E), A(ni, ee), A($r, S), A(ei, w), A(ti, te), d(O)) {
|
|
1805
|
+
if (O.length) {
|
|
1806
|
+
let t = e.exposed ||= {};
|
|
1807
|
+
O.forEach((e) => {
|
|
1808
|
+
Object.defineProperty(t, e, {
|
|
1809
|
+
get: () => n[e],
|
|
1810
|
+
set: (t) => n[e] = t,
|
|
1811
|
+
enumerable: !0
|
|
1812
|
+
});
|
|
1796
1813
|
});
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1814
|
+
} else e.exposed ||= {};
|
|
1815
|
+
}
|
|
1799
1816
|
T && e.render === r && (e.render = T), ne != null && (e.inheritAttrs = ne), re && (e.components = re), k && (e.directives = k), te && Mr(e);
|
|
1800
1817
|
}
|
|
1801
1818
|
function Si(e, t, n = r) {
|
|
@@ -1819,10 +1836,12 @@ function wi(e, t, n, r) {
|
|
|
1819
1836
|
let n = t[e];
|
|
1820
1837
|
h(n) && Qn(i, n);
|
|
1821
1838
|
} else if (h(e)) Qn(i, e.bind(n));
|
|
1822
|
-
else if (v(e))
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1839
|
+
else if (v(e)) {
|
|
1840
|
+
if (d(e)) e.forEach((e) => wi(e, t, n, r));
|
|
1841
|
+
else {
|
|
1842
|
+
let r = h(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
1843
|
+
h(r) && Qn(i, r, e);
|
|
1844
|
+
}
|
|
1826
1845
|
}
|
|
1827
1846
|
}
|
|
1828
1847
|
function Ti(e) {
|
|
@@ -2055,7 +2074,7 @@ function Gi(e) {
|
|
|
2055
2074
|
let e = Object.keys(y), { shapeFlag: t } = b;
|
|
2056
2075
|
e.length && t & 7 && (a && e.some(o) && (y = qi(y, a)), b = Ja(b, y, !1, !0));
|
|
2057
2076
|
}
|
|
2058
|
-
return n.dirs && (b = Ja(b, null, !1, !0), b.dirs = b.dirs ? b.dirs.concat(n.dirs) : n.dirs), n.transition && kr(b, n.transition), v = b, Vn(_), v;
|
|
2077
|
+
return n.dirs && (b = Ja(b, null, !1, !0), b.dirs = b.dirs ? b.dirs.concat(n.dirs) : n.dirs), n.transition && kr(ir(b.type) && Or(b) || b, n.transition), v = b, Vn(_), v;
|
|
2059
2078
|
}
|
|
2060
2079
|
var Ki = (e) => {
|
|
2061
2080
|
let t;
|
|
@@ -2119,12 +2138,13 @@ function na(e, t, n, r) {
|
|
|
2119
2138
|
let o = n[r];
|
|
2120
2139
|
if (Wi(e.emitsOptions, o)) continue;
|
|
2121
2140
|
let d = t[o];
|
|
2122
|
-
if (c)
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2141
|
+
if (c) {
|
|
2142
|
+
if (u(a, o)) d !== a[o] && (a[o] = d, l = !0);
|
|
2143
|
+
else {
|
|
2144
|
+
let t = D(o);
|
|
2145
|
+
i[t] = ia(c, s, t, d, e, !1);
|
|
2146
|
+
}
|
|
2147
|
+
} else d !== a[o] && (a[o] = d, l = !0);
|
|
2128
2148
|
}
|
|
2129
2149
|
}
|
|
2130
2150
|
} else {
|
|
@@ -2374,11 +2394,13 @@ function va(e, i) {
|
|
|
2374
2394
|
} else oe(s, e, t, n, i, a, o);
|
|
2375
2395
|
}, ae = (e, t, n) => {
|
|
2376
2396
|
let r = t.component = e.component;
|
|
2377
|
-
if (Ji(e, t, n))
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2397
|
+
if (Ji(e, t, n)) {
|
|
2398
|
+
if (r.asyncDep && !r.asyncResolved) {
|
|
2399
|
+
se(r, t, n);
|
|
2400
|
+
return;
|
|
2401
|
+
}
|
|
2402
|
+
r.next = t, r.update();
|
|
2403
|
+
} else t.el = e.el, r.vnode = t;
|
|
2382
2404
|
}, oe = (e, t, n, r, i, a, o) => {
|
|
2383
2405
|
let s = () => {
|
|
2384
2406
|
if (e.isMounted) {
|
|
@@ -2519,19 +2541,20 @@ function va(e, i) {
|
|
|
2519
2541
|
S(e, t, n);
|
|
2520
2542
|
return;
|
|
2521
2543
|
}
|
|
2522
|
-
if (r !== 2 && d & 1 && l)
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2544
|
+
if (r !== 2 && d & 1 && l) {
|
|
2545
|
+
if (r === 0) l.persisted && !a[gr] ? o(a, t, n) : (l.beforeEnter(a), o(a, t, n), ga(() => l.enter(a), i));
|
|
2546
|
+
else {
|
|
2547
|
+
let { leave: r, delayLeave: i, afterLeave: c } = l, u = () => {
|
|
2548
|
+
e.ctx.isUnmounted ? s(a) : o(a, t, n);
|
|
2549
|
+
}, d = () => {
|
|
2550
|
+
let e = a._isLeaving || !!a[gr];
|
|
2551
|
+
a._isLeaving && a[gr](!0), l.persisted && !e ? u() : r(a, () => {
|
|
2552
|
+
u(), c && c();
|
|
2553
|
+
});
|
|
2554
|
+
};
|
|
2555
|
+
i ? i(a, u, d) : d();
|
|
2556
|
+
}
|
|
2557
|
+
} else o(a, t, n);
|
|
2535
2558
|
}, pe = (e, t, n, r = !1, i = !1) => {
|
|
2536
2559
|
let { type: a, props: o, ref: s, children: c, dynamicChildren: l, shapeFlag: u, patchFlag: d, dirs: f, cacheIndex: p, memo: m } = e;
|
|
2537
2560
|
if (d === -2 && (i = !1), s != null && (We(), Fr(s, null, n, e, !0), Ge()), p != null && (t.renderCache[p] = void 0), u & 256) {
|
|
@@ -2788,16 +2811,18 @@ function eo(e, t) {
|
|
|
2788
2811
|
let n = 0, { shapeFlag: r } = e;
|
|
2789
2812
|
if (t == null) t = null;
|
|
2790
2813
|
else if (d(t)) n = 16;
|
|
2791
|
-
else if (typeof t == "object")
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2814
|
+
else if (typeof t == "object") {
|
|
2815
|
+
if (r & 65) {
|
|
2816
|
+
let n = t.default;
|
|
2817
|
+
n && (n._c && (n._d = !1), eo(e, n()), n._c && (n._d = !0));
|
|
2818
|
+
return;
|
|
2819
|
+
}
|
|
2820
|
+
{
|
|
2821
|
+
n = 32;
|
|
2822
|
+
let r = t._;
|
|
2823
|
+
!r && !ea(t) ? t._ctx = L : r === 3 && L && (L.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
2824
|
+
}
|
|
2825
|
+
} else if (h(t)) {
|
|
2801
2826
|
if (r & 65) {
|
|
2802
2827
|
eo(e, { default: t });
|
|
2803
2828
|
return;
|
|
@@ -2931,7 +2956,12 @@ function ho(e, t) {
|
|
|
2931
2956
|
let n = e.setupContext = r.length > 1 ? xo(e) : null, i = lo(e), a = bn(r, e, 0, [e.props, n]), o = y(a);
|
|
2932
2957
|
if (Ge(), i(), (o || e.sp) && !zr(e) && Mr(e), o) {
|
|
2933
2958
|
if (a.then(uo, uo), t) return a.then((n) => {
|
|
2934
|
-
|
|
2959
|
+
co(!0);
|
|
2960
|
+
try {
|
|
2961
|
+
go(e, n, t);
|
|
2962
|
+
} finally {
|
|
2963
|
+
co(!1);
|
|
2964
|
+
}
|
|
2935
2965
|
}).catch((t) => {
|
|
2936
2966
|
Sn(t, e, 0);
|
|
2937
2967
|
});
|
|
@@ -3008,7 +3038,7 @@ function Eo(e, t, n) {
|
|
|
3008
3038
|
La(1);
|
|
3009
3039
|
}
|
|
3010
3040
|
}
|
|
3011
|
-
var Do = "3.5.
|
|
3041
|
+
var Do = "3.5.41", Oo = void 0, ko = typeof window < "u" && window.trustedTypes;
|
|
3012
3042
|
if (ko) try {
|
|
3013
3043
|
Oo = /* @__PURE__ */ ko.createPolicy("vue", { createHTML: (e) => e });
|
|
3014
3044
|
} catch {}
|
|
@@ -3205,11 +3235,13 @@ var os = /* @__PURE__ */ Symbol(""), ss = /(?:^|;)\s*display\s*:/;
|
|
|
3205
3235
|
function cs(e, t, n) {
|
|
3206
3236
|
let r = e.style, i = g(n), a = !1;
|
|
3207
3237
|
if (n && !i) {
|
|
3208
|
-
if (t)
|
|
3209
|
-
|
|
3210
|
-
|
|
3238
|
+
if (t) {
|
|
3239
|
+
if (g(t)) for (let e of t.split(";")) {
|
|
3240
|
+
let t = e.slice(0, e.indexOf(":")).trim();
|
|
3241
|
+
n[t] ?? us(r, t, "");
|
|
3242
|
+
}
|
|
3243
|
+
else for (let e in t) n[e] ?? us(r, e, "");
|
|
3211
3244
|
}
|
|
3212
|
-
else for (let e in t) n[e] ?? us(r, e, "");
|
|
3213
3245
|
for (let i in n) {
|
|
3214
3246
|
i === "display" && (a = !0);
|
|
3215
3247
|
let o = n[i];
|
|
@@ -3348,22 +3380,23 @@ function Fs(e) {
|
|
|
3348
3380
|
let t = e.target;
|
|
3349
3381
|
t.composing && (t.composing = !1, t.dispatchEvent(new Event("input")));
|
|
3350
3382
|
}
|
|
3351
|
-
var Is = /* @__PURE__ */ Symbol("_assign");
|
|
3352
|
-
function
|
|
3383
|
+
var Is = /* @__PURE__ */ Symbol("_assign"), Ls = /* @__PURE__ */ Symbol("_initialValue");
|
|
3384
|
+
function Rs(e, t, n) {
|
|
3353
3385
|
return t && (e = e.trim()), n && (e = ae(e)), e;
|
|
3354
3386
|
}
|
|
3355
|
-
var
|
|
3387
|
+
var zs = {
|
|
3356
3388
|
created(e, { modifiers: { lazy: t, trim: n, number: r } }, i) {
|
|
3357
|
-
e[Is] = Ns(i);
|
|
3389
|
+
e.parentNode && (e.type === "text" ? e[Ls] = e.defaultValue.replace(/[\r\n]/g, "") : e.type === "textarea" && (e[Ls] = e.defaultValue.replace(/\r\n?/g, "\n"))), e[Is] = Ns(i);
|
|
3358
3390
|
let a = r || i.props && i.props.type === "number";
|
|
3359
3391
|
vs(e, t ? "change" : "input", (t) => {
|
|
3360
|
-
t.target.composing || e[Is](
|
|
3392
|
+
t.target.composing || e[Is](Rs(e.value, n, a));
|
|
3361
3393
|
}), (n || a) && vs(e, "change", () => {
|
|
3362
|
-
e.value =
|
|
3394
|
+
e.value = Rs(e.value, n, a);
|
|
3363
3395
|
}), t || (vs(e, "compositionstart", Ps), vs(e, "compositionend", Fs), vs(e, "change", Fs));
|
|
3364
3396
|
},
|
|
3365
|
-
mounted(e, { value: t }) {
|
|
3366
|
-
|
|
3397
|
+
mounted(e, { value: t, modifiers: { trim: n, number: r } }) {
|
|
3398
|
+
let i = t ?? "", a = e[Ls];
|
|
3399
|
+
delete e[Ls], a !== void 0 && (e.type === "text" || e.type === "textarea") && e.value !== a ? e[Is](Rs(e.value, n, r)) : e.value = i;
|
|
3367
3400
|
},
|
|
3368
3401
|
beforeUpdate(e, { value: t, oldValue: n, modifiers: { lazy: r, trim: i, number: a } }, o) {
|
|
3369
3402
|
if (e[Is] = Ns(o), e.composing) return;
|
|
@@ -3372,36 +3405,37 @@ var Rs = {
|
|
|
3372
3405
|
let l = e.getRootNode();
|
|
3373
3406
|
(l instanceof Document || l instanceof ShadowRoot) && l.activeElement === e && e.type !== "range" && (r && t === n || i && e.value.trim() === c) || (e.value = c);
|
|
3374
3407
|
}
|
|
3375
|
-
},
|
|
3408
|
+
}, Bs = {
|
|
3376
3409
|
deep: !0,
|
|
3377
3410
|
created(e, { value: t, modifiers: { number: n } }, r) {
|
|
3378
3411
|
e._modelValue = t, vs(e, "change", () => {
|
|
3379
|
-
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(
|
|
3412
|
+
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(Hs(e)) : Hs(e));
|
|
3380
3413
|
e[Is](e.multiple ? p(e._modelValue) ? new Set(t) : t : t[0]), e._assigning = !0, jn(() => {
|
|
3381
3414
|
e._assigning = !1;
|
|
3382
3415
|
});
|
|
3383
3416
|
}), e[Is] = Ns(r);
|
|
3384
3417
|
},
|
|
3385
3418
|
mounted(e, { value: t }) {
|
|
3386
|
-
|
|
3419
|
+
Vs(e, t);
|
|
3387
3420
|
},
|
|
3388
3421
|
beforeUpdate(e, { value: t }, n) {
|
|
3389
3422
|
e._modelValue = t, e[Is] = Ns(n);
|
|
3390
3423
|
},
|
|
3391
3424
|
updated(e, { value: t }) {
|
|
3392
|
-
e._assigning ||
|
|
3425
|
+
e._assigning || Vs(e, t);
|
|
3393
3426
|
}
|
|
3394
3427
|
};
|
|
3395
|
-
function
|
|
3428
|
+
function Vs(e, t) {
|
|
3396
3429
|
let n = e.multiple, r = d(t);
|
|
3397
3430
|
if (!(n && !r && !p(t))) {
|
|
3398
3431
|
for (let i = 0, a = e.options.length; i < a; i++) {
|
|
3399
|
-
let a = e.options[i], o =
|
|
3400
|
-
if (n)
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3432
|
+
let a = e.options[i], o = Hs(a);
|
|
3433
|
+
if (n) {
|
|
3434
|
+
if (r) {
|
|
3435
|
+
let e = typeof o;
|
|
3436
|
+
a.selected = e === "string" || e === "number" ? t.some((e) => String(e) === String(o)) : be(t, o) > -1;
|
|
3437
|
+
} else a.selected = t.has(o);
|
|
3438
|
+
} else if (ye(Hs(a), t)) {
|
|
3405
3439
|
e.selectedIndex !== i && (e.selectedIndex = i);
|
|
3406
3440
|
return;
|
|
3407
3441
|
}
|
|
@@ -3409,15 +3443,15 @@ function Bs(e, t) {
|
|
|
3409
3443
|
!n && e.selectedIndex !== -1 && (e.selectedIndex = -1);
|
|
3410
3444
|
}
|
|
3411
3445
|
}
|
|
3412
|
-
function
|
|
3446
|
+
function Hs(e) {
|
|
3413
3447
|
return "_value" in e ? e._value : e.value;
|
|
3414
3448
|
}
|
|
3415
|
-
var
|
|
3449
|
+
var Us = [
|
|
3416
3450
|
"ctrl",
|
|
3417
3451
|
"shift",
|
|
3418
3452
|
"alt",
|
|
3419
3453
|
"meta"
|
|
3420
|
-
],
|
|
3454
|
+
], Ws = {
|
|
3421
3455
|
stop: (e) => e.stopPropagation(),
|
|
3422
3456
|
prevent: (e) => e.preventDefault(),
|
|
3423
3457
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -3428,18 +3462,18 @@ var Hs = [
|
|
|
3428
3462
|
left: (e) => "button" in e && e.button !== 0,
|
|
3429
3463
|
middle: (e) => "button" in e && e.button !== 1,
|
|
3430
3464
|
right: (e) => "button" in e && e.button !== 2,
|
|
3431
|
-
exact: (e, t) =>
|
|
3432
|
-
},
|
|
3465
|
+
exact: (e, t) => Us.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
3466
|
+
}, Gs = (e, t) => {
|
|
3433
3467
|
if (!e) return e;
|
|
3434
3468
|
let n = e._withMods ||= {}, r = t.join(".");
|
|
3435
3469
|
return n[r] || (n[r] = ((n, ...r) => {
|
|
3436
3470
|
for (let e = 0; e < t.length; e++) {
|
|
3437
|
-
let r =
|
|
3471
|
+
let r = Ws[t[e]];
|
|
3438
3472
|
if (r && r(n, t)) return;
|
|
3439
3473
|
}
|
|
3440
3474
|
return e(n, ...r);
|
|
3441
3475
|
}));
|
|
3442
|
-
},
|
|
3476
|
+
}, Ks = {
|
|
3443
3477
|
esc: "escape",
|
|
3444
3478
|
space: " ",
|
|
3445
3479
|
up: "arrow-up",
|
|
@@ -3447,115 +3481,115 @@ var Hs = [
|
|
|
3447
3481
|
right: "arrow-right",
|
|
3448
3482
|
down: "arrow-down",
|
|
3449
3483
|
delete: "backspace"
|
|
3450
|
-
},
|
|
3484
|
+
}, qs = (e, t) => {
|
|
3451
3485
|
let n = e._withKeys ||= {}, r = t.join(".");
|
|
3452
3486
|
return n[r] || (n[r] = ((n) => {
|
|
3453
3487
|
if (!("key" in n)) return;
|
|
3454
3488
|
let r = O(n.key);
|
|
3455
|
-
if (t.some((e) => e === r ||
|
|
3489
|
+
if (t.some((e) => e === r || Ks[e] === r)) return e(n);
|
|
3456
3490
|
}));
|
|
3457
|
-
},
|
|
3458
|
-
function
|
|
3459
|
-
return
|
|
3460
|
-
}
|
|
3461
|
-
var
|
|
3462
|
-
|
|
3463
|
-
}),
|
|
3464
|
-
let t =
|
|
3491
|
+
}, Js = /* @__PURE__ */ s({ patchProp: As }, Fo), Ys;
|
|
3492
|
+
function Xs() {
|
|
3493
|
+
return Ys ||= _a(Js);
|
|
3494
|
+
}
|
|
3495
|
+
var Zs = ((...e) => {
|
|
3496
|
+
Xs().render(...e);
|
|
3497
|
+
}), Qs = ((...e) => {
|
|
3498
|
+
let t = Xs().createApp(...e), { mount: n } = t;
|
|
3465
3499
|
return t.mount = (e) => {
|
|
3466
|
-
let r =
|
|
3500
|
+
let r = ec(e);
|
|
3467
3501
|
if (!r) return;
|
|
3468
3502
|
let i = t._component;
|
|
3469
3503
|
!h(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
3470
|
-
let a = n(r, !1,
|
|
3504
|
+
let a = n(r, !1, $s(r));
|
|
3471
3505
|
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), a;
|
|
3472
3506
|
}, t;
|
|
3473
3507
|
});
|
|
3474
|
-
function
|
|
3508
|
+
function $s(e) {
|
|
3475
3509
|
if (e instanceof SVGElement) return "svg";
|
|
3476
3510
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
|
|
3477
3511
|
}
|
|
3478
|
-
function
|
|
3512
|
+
function ec(e) {
|
|
3479
3513
|
return g(e) ? document.querySelector(e) : e;
|
|
3480
3514
|
}
|
|
3481
3515
|
//#endregion
|
|
3482
3516
|
//#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
|
|
3483
|
-
var
|
|
3517
|
+
var tc = Object.defineProperty, nc = Object.getOwnPropertySymbols, rc = Object.prototype.hasOwnProperty, ic = Object.prototype.propertyIsEnumerable, ac = (e, t, n) => t in e ? tc(e, t, {
|
|
3484
3518
|
enumerable: !0,
|
|
3485
3519
|
configurable: !0,
|
|
3486
3520
|
writable: !0,
|
|
3487
3521
|
value: n
|
|
3488
|
-
}) : e[t] = n,
|
|
3489
|
-
for (var n in t ||= {})
|
|
3490
|
-
if (
|
|
3522
|
+
}) : e[t] = n, oc = (e, t) => {
|
|
3523
|
+
for (var n in t ||= {}) rc.call(t, n) && ac(e, n, t[n]);
|
|
3524
|
+
if (nc) for (var n of nc(t)) ic.call(t, n) && ac(e, n, t[n]);
|
|
3491
3525
|
return e;
|
|
3492
|
-
},
|
|
3526
|
+
}, sc = (e, t) => {
|
|
3493
3527
|
var n = {};
|
|
3494
|
-
for (var r in e)
|
|
3495
|
-
if (e != null &&
|
|
3528
|
+
for (var r in e) rc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3529
|
+
if (e != null && nc) for (var r of nc(e)) t.indexOf(r) < 0 && ic.call(e, r) && (n[r] = e[r]);
|
|
3496
3530
|
return n;
|
|
3497
|
-
},
|
|
3498
|
-
function cc(e) {
|
|
3499
|
-
console.warn(sc + e);
|
|
3500
|
-
}
|
|
3531
|
+
}, cc = "[vue-draggable-plus]: ";
|
|
3501
3532
|
function lc(e) {
|
|
3502
|
-
console.
|
|
3533
|
+
console.warn(cc + e);
|
|
3534
|
+
}
|
|
3535
|
+
function uc(e) {
|
|
3536
|
+
console.error(cc + e);
|
|
3503
3537
|
}
|
|
3504
|
-
function
|
|
3538
|
+
function dc(e, t, n) {
|
|
3505
3539
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
3506
3540
|
}
|
|
3507
|
-
function
|
|
3541
|
+
function fc(e) {
|
|
3508
3542
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
3509
3543
|
}
|
|
3510
|
-
function
|
|
3511
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
3544
|
+
function pc(e) {
|
|
3545
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[fc(n)] = e[n]), t), {});
|
|
3512
3546
|
}
|
|
3513
|
-
function
|
|
3547
|
+
function mc(e, t) {
|
|
3514
3548
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
3515
3549
|
}
|
|
3516
|
-
function
|
|
3550
|
+
function hc(e, t, n) {
|
|
3517
3551
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
3518
3552
|
}
|
|
3519
|
-
function
|
|
3553
|
+
function gc(e) {
|
|
3520
3554
|
return e === void 0;
|
|
3521
3555
|
}
|
|
3522
|
-
function
|
|
3556
|
+
function _c(e) {
|
|
3523
3557
|
return typeof e == "string";
|
|
3524
3558
|
}
|
|
3525
|
-
function
|
|
3559
|
+
function vc(e, t, n) {
|
|
3526
3560
|
e.insertBefore(t, e.children[n]);
|
|
3527
3561
|
}
|
|
3528
|
-
function
|
|
3562
|
+
function yc(e) {
|
|
3529
3563
|
e.parentNode && e.parentNode.removeChild(e);
|
|
3530
3564
|
}
|
|
3531
|
-
function
|
|
3565
|
+
function bc(e, t = document) {
|
|
3532
3566
|
let n = null;
|
|
3533
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
3567
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || lc(`Element not found: ${e}`), n;
|
|
3534
3568
|
}
|
|
3535
|
-
function
|
|
3569
|
+
function xc(e, t, n = null) {
|
|
3536
3570
|
return function(...r) {
|
|
3537
3571
|
return e.apply(n, r), t.apply(n, r);
|
|
3538
3572
|
};
|
|
3539
3573
|
}
|
|
3540
|
-
function
|
|
3541
|
-
let n =
|
|
3574
|
+
function Sc(e, t) {
|
|
3575
|
+
let n = oc({}, e);
|
|
3542
3576
|
return Object.keys(t).forEach((r) => {
|
|
3543
|
-
n[r] ? n[r] =
|
|
3577
|
+
n[r] ? n[r] = xc(e[r], t[r]) : n[r] = t[r];
|
|
3544
3578
|
}), n;
|
|
3545
3579
|
}
|
|
3546
|
-
function
|
|
3580
|
+
function Cc(e) {
|
|
3547
3581
|
return e instanceof HTMLElement;
|
|
3548
3582
|
}
|
|
3549
|
-
function
|
|
3583
|
+
function wc(e, t) {
|
|
3550
3584
|
Object.keys(e).forEach((n) => {
|
|
3551
3585
|
t(n, e[n]);
|
|
3552
3586
|
});
|
|
3553
3587
|
}
|
|
3554
|
-
function
|
|
3588
|
+
function Tc(e) {
|
|
3555
3589
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
3556
3590
|
}
|
|
3557
|
-
var
|
|
3558
|
-
function
|
|
3591
|
+
var Ec = Object.assign;
|
|
3592
|
+
function Dc(e, t) {
|
|
3559
3593
|
var n = Object.keys(e);
|
|
3560
3594
|
if (Object.getOwnPropertySymbols) {
|
|
3561
3595
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -3565,26 +3599,26 @@ function Ec(e, t) {
|
|
|
3565
3599
|
}
|
|
3566
3600
|
return n;
|
|
3567
3601
|
}
|
|
3568
|
-
function
|
|
3602
|
+
function Oc(e) {
|
|
3569
3603
|
for (var t = 1; t < arguments.length; t++) {
|
|
3570
3604
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
3571
|
-
t % 2 ?
|
|
3572
|
-
|
|
3573
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3605
|
+
t % 2 ? Dc(Object(n), !0).forEach(function(t) {
|
|
3606
|
+
Ac(e, t, n[t]);
|
|
3607
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Dc(Object(n)).forEach(function(t) {
|
|
3574
3608
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
3575
3609
|
});
|
|
3576
3610
|
}
|
|
3577
3611
|
return e;
|
|
3578
3612
|
}
|
|
3579
|
-
function
|
|
3613
|
+
function kc(e) {
|
|
3580
3614
|
"@babel/helpers - typeof";
|
|
3581
|
-
return
|
|
3615
|
+
return kc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3582
3616
|
return typeof e;
|
|
3583
3617
|
} : function(e) {
|
|
3584
3618
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3585
|
-
},
|
|
3619
|
+
}, kc(e);
|
|
3586
3620
|
}
|
|
3587
|
-
function
|
|
3621
|
+
function Ac(e, t, n) {
|
|
3588
3622
|
return t in e ? Object.defineProperty(e, t, {
|
|
3589
3623
|
value: n,
|
|
3590
3624
|
enumerable: !0,
|
|
@@ -3592,45 +3626,45 @@ function kc(e, t, n) {
|
|
|
3592
3626
|
writable: !0
|
|
3593
3627
|
}) : e[t] = n, e;
|
|
3594
3628
|
}
|
|
3595
|
-
function
|
|
3596
|
-
return
|
|
3629
|
+
function jc() {
|
|
3630
|
+
return jc = Object.assign || function(e) {
|
|
3597
3631
|
for (var t = 1; t < arguments.length; t++) {
|
|
3598
3632
|
var n = arguments[t];
|
|
3599
3633
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3600
3634
|
}
|
|
3601
3635
|
return e;
|
|
3602
|
-
},
|
|
3636
|
+
}, jc.apply(this, arguments);
|
|
3603
3637
|
}
|
|
3604
|
-
function
|
|
3638
|
+
function Mc(e, t) {
|
|
3605
3639
|
if (e == null) return {};
|
|
3606
3640
|
var n = {}, r = Object.keys(e), i, a;
|
|
3607
3641
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
3608
3642
|
return n;
|
|
3609
3643
|
}
|
|
3610
|
-
function
|
|
3644
|
+
function Nc(e, t) {
|
|
3611
3645
|
if (e == null) return {};
|
|
3612
|
-
var n =
|
|
3646
|
+
var n = Mc(e, t), r, i;
|
|
3613
3647
|
if (Object.getOwnPropertySymbols) {
|
|
3614
3648
|
var a = Object.getOwnPropertySymbols(e);
|
|
3615
3649
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
3616
3650
|
}
|
|
3617
3651
|
return n;
|
|
3618
3652
|
}
|
|
3619
|
-
var
|
|
3620
|
-
function
|
|
3653
|
+
var Pc = "1.15.2";
|
|
3654
|
+
function Fc(e) {
|
|
3621
3655
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
3622
3656
|
}
|
|
3623
|
-
var
|
|
3657
|
+
var Ic = Fc(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Lc = Fc(/Edge/i), Rc = Fc(/firefox/i), zc = Fc(/safari/i) && !Fc(/chrome/i) && !Fc(/android/i), Bc = Fc(/iP(ad|od|hone)/i), Vc = Fc(/chrome/i) && Fc(/android/i), Hc = {
|
|
3624
3658
|
capture: !1,
|
|
3625
3659
|
passive: !1
|
|
3626
3660
|
};
|
|
3627
3661
|
function V(e, t, n) {
|
|
3628
|
-
e.addEventListener(t, n, !
|
|
3662
|
+
e.addEventListener(t, n, !Ic && Hc);
|
|
3629
3663
|
}
|
|
3630
3664
|
function H(e, t, n) {
|
|
3631
|
-
e.removeEventListener(t, n, !
|
|
3665
|
+
e.removeEventListener(t, n, !Ic && Hc);
|
|
3632
3666
|
}
|
|
3633
|
-
function
|
|
3667
|
+
function Uc(e, t) {
|
|
3634
3668
|
if (t) {
|
|
3635
3669
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
3636
3670
|
if (e.matches) return e.matches(t);
|
|
@@ -3642,22 +3676,22 @@ function Hc(e, t) {
|
|
|
3642
3676
|
return !1;
|
|
3643
3677
|
}
|
|
3644
3678
|
}
|
|
3645
|
-
function
|
|
3679
|
+
function Wc(e) {
|
|
3646
3680
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
3647
3681
|
}
|
|
3648
|
-
function
|
|
3682
|
+
function Gc(e, t, n, r) {
|
|
3649
3683
|
if (e) {
|
|
3650
3684
|
n ||= document;
|
|
3651
3685
|
do {
|
|
3652
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
3686
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Uc(e, t) : Uc(e, t)) || r && e === n) return e;
|
|
3653
3687
|
if (e === n) break;
|
|
3654
|
-
} while (e =
|
|
3688
|
+
} while (e = Wc(e));
|
|
3655
3689
|
}
|
|
3656
3690
|
return null;
|
|
3657
3691
|
}
|
|
3658
|
-
var
|
|
3659
|
-
function
|
|
3660
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
3692
|
+
var Kc = /\s+/g;
|
|
3693
|
+
function qc(e, t, n) {
|
|
3694
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Kc, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Kc, " "));
|
|
3661
3695
|
}
|
|
3662
3696
|
function U(e, t, n) {
|
|
3663
3697
|
var r = e && e.style;
|
|
@@ -3666,7 +3700,7 @@ function U(e, t, n) {
|
|
|
3666
3700
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
3667
3701
|
}
|
|
3668
3702
|
}
|
|
3669
|
-
function
|
|
3703
|
+
function Jc(e, t) {
|
|
3670
3704
|
var n = "";
|
|
3671
3705
|
if (typeof e == "string") n = e;
|
|
3672
3706
|
else do {
|
|
@@ -3676,7 +3710,7 @@ function qc(e, t) {
|
|
|
3676
3710
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
3677
3711
|
return i && new i(n);
|
|
3678
3712
|
}
|
|
3679
|
-
function
|
|
3713
|
+
function Yc(e, t, n) {
|
|
3680
3714
|
if (e) {
|
|
3681
3715
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
3682
3716
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -3684,13 +3718,13 @@ function Jc(e, t, n) {
|
|
|
3684
3718
|
}
|
|
3685
3719
|
return [];
|
|
3686
3720
|
}
|
|
3687
|
-
function
|
|
3721
|
+
function Xc() {
|
|
3688
3722
|
return document.scrollingElement || document.documentElement;
|
|
3689
3723
|
}
|
|
3690
3724
|
function W(e, t, n, r, i) {
|
|
3691
3725
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
3692
3726
|
var a, o, s, c, l, u, d;
|
|
3693
|
-
if (e !== window && e.parentNode && e !==
|
|
3727
|
+
if (e !== window && e.parentNode && e !== Xc() ? (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, !Ic)) do
|
|
3694
3728
|
if (i && i.getBoundingClientRect && (U(i, "transform") !== "none" || n && U(i, "position") !== "static")) {
|
|
3695
3729
|
var f = i.getBoundingClientRect();
|
|
3696
3730
|
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;
|
|
@@ -3698,7 +3732,7 @@ function W(e, t, n, r, i) {
|
|
|
3698
3732
|
}
|
|
3699
3733
|
while (i = i.parentNode);
|
|
3700
3734
|
if (r && e !== window) {
|
|
3701
|
-
var p =
|
|
3735
|
+
var p = Jc(i || e), m = p && p.a, h = p && p.d;
|
|
3702
3736
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
3703
3737
|
}
|
|
3704
3738
|
return {
|
|
@@ -3711,18 +3745,18 @@ function W(e, t, n, r, i) {
|
|
|
3711
3745
|
};
|
|
3712
3746
|
}
|
|
3713
3747
|
}
|
|
3714
|
-
function
|
|
3715
|
-
for (var r =
|
|
3748
|
+
function Zc(e, t, n) {
|
|
3749
|
+
for (var r = rl(e, !0), i = W(e)[t]; r;) {
|
|
3716
3750
|
var a = W(r)[n], o = void 0;
|
|
3717
3751
|
if (o = i >= a, !o) return r;
|
|
3718
|
-
if (r ===
|
|
3719
|
-
r =
|
|
3752
|
+
if (r === Xc()) break;
|
|
3753
|
+
r = rl(r, !1);
|
|
3720
3754
|
}
|
|
3721
3755
|
return !1;
|
|
3722
3756
|
}
|
|
3723
|
-
function
|
|
3757
|
+
function Qc(e, t, n, r) {
|
|
3724
3758
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
3725
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
3759
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Gc(o[a], n.draggable, e, !1)) {
|
|
3726
3760
|
if (i === t) return o[a];
|
|
3727
3761
|
i++;
|
|
3728
3762
|
}
|
|
@@ -3730,84 +3764,84 @@ function Zc(e, t, n, r) {
|
|
|
3730
3764
|
}
|
|
3731
3765
|
return null;
|
|
3732
3766
|
}
|
|
3733
|
-
function
|
|
3734
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !
|
|
3767
|
+
function $c(e, t) {
|
|
3768
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !Uc(n, t));) n = n.previousElementSibling;
|
|
3735
3769
|
return n || null;
|
|
3736
3770
|
}
|
|
3737
|
-
function
|
|
3771
|
+
function el(e, t) {
|
|
3738
3772
|
var n = 0;
|
|
3739
3773
|
if (!e || !e.parentNode) return -1;
|
|
3740
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
3774
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Uc(e, t)) && n++;
|
|
3741
3775
|
return n;
|
|
3742
3776
|
}
|
|
3743
|
-
function
|
|
3744
|
-
var t = 0, n = 0, r =
|
|
3777
|
+
function tl(e) {
|
|
3778
|
+
var t = 0, n = 0, r = Xc();
|
|
3745
3779
|
if (e) do {
|
|
3746
|
-
var i =
|
|
3780
|
+
var i = Jc(e), a = i.a, o = i.d;
|
|
3747
3781
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
3748
3782
|
} while (e !== r && (e = e.parentNode));
|
|
3749
3783
|
return [t, n];
|
|
3750
3784
|
}
|
|
3751
|
-
function
|
|
3785
|
+
function nl(e, t) {
|
|
3752
3786
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
3753
3787
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
3754
3788
|
}
|
|
3755
3789
|
return -1;
|
|
3756
3790
|
}
|
|
3757
|
-
function
|
|
3758
|
-
if (!e || !e.getBoundingClientRect) return
|
|
3791
|
+
function rl(e, t) {
|
|
3792
|
+
if (!e || !e.getBoundingClientRect) return Xc();
|
|
3759
3793
|
var n = e, r = !1;
|
|
3760
3794
|
do
|
|
3761
3795
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
3762
3796
|
var i = U(n);
|
|
3763
3797
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
3764
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
3798
|
+
if (!n.getBoundingClientRect || n === document.body) return Xc();
|
|
3765
3799
|
if (r || t) return n;
|
|
3766
3800
|
r = !0;
|
|
3767
3801
|
}
|
|
3768
3802
|
}
|
|
3769
3803
|
while (n = n.parentNode);
|
|
3770
|
-
return
|
|
3804
|
+
return Xc();
|
|
3771
3805
|
}
|
|
3772
|
-
function
|
|
3806
|
+
function il(e, t) {
|
|
3773
3807
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
3774
3808
|
return e;
|
|
3775
3809
|
}
|
|
3776
|
-
function
|
|
3810
|
+
function al(e, t) {
|
|
3777
3811
|
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);
|
|
3778
3812
|
}
|
|
3779
|
-
var
|
|
3780
|
-
function
|
|
3813
|
+
var ol;
|
|
3814
|
+
function sl(e, t) {
|
|
3781
3815
|
return function() {
|
|
3782
|
-
if (!
|
|
3816
|
+
if (!ol) {
|
|
3783
3817
|
var n = arguments, r = this;
|
|
3784
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
3785
|
-
|
|
3818
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), ol = setTimeout(function() {
|
|
3819
|
+
ol = void 0;
|
|
3786
3820
|
}, t);
|
|
3787
3821
|
}
|
|
3788
3822
|
};
|
|
3789
3823
|
}
|
|
3790
|
-
function
|
|
3791
|
-
clearTimeout(
|
|
3824
|
+
function cl() {
|
|
3825
|
+
clearTimeout(ol), ol = void 0;
|
|
3792
3826
|
}
|
|
3793
|
-
function
|
|
3827
|
+
function ll(e, t, n) {
|
|
3794
3828
|
e.scrollLeft += t, e.scrollTop += n;
|
|
3795
3829
|
}
|
|
3796
|
-
function
|
|
3830
|
+
function ul(e) {
|
|
3797
3831
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
3798
3832
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
3799
3833
|
}
|
|
3800
|
-
function
|
|
3834
|
+
function dl(e, t, n) {
|
|
3801
3835
|
var r = {};
|
|
3802
3836
|
return Array.from(e.children).forEach(function(i) {
|
|
3803
|
-
if (!(!
|
|
3837
|
+
if (!(!Gc(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
3804
3838
|
var a = W(i);
|
|
3805
|
-
r.left = Math.min(r.left ??
|
|
3839
|
+
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);
|
|
3806
3840
|
}
|
|
3807
3841
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
3808
3842
|
}
|
|
3809
|
-
var
|
|
3810
|
-
function
|
|
3843
|
+
var fl = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
3844
|
+
function pl() {
|
|
3811
3845
|
var e = [], t;
|
|
3812
3846
|
return {
|
|
3813
3847
|
captureAnimationState: function() {
|
|
@@ -3817,9 +3851,9 @@ function fl() {
|
|
|
3817
3851
|
target: t,
|
|
3818
3852
|
rect: W(t)
|
|
3819
3853
|
});
|
|
3820
|
-
var n =
|
|
3854
|
+
var n = Oc({}, e[e.length - 1].rect);
|
|
3821
3855
|
if (t.thisAnimationDuration) {
|
|
3822
|
-
var r =
|
|
3856
|
+
var r = Jc(t, !0);
|
|
3823
3857
|
r && (n.top -= r.f, n.left -= r.e);
|
|
3824
3858
|
}
|
|
3825
3859
|
t.fromRect = n;
|
|
@@ -3830,7 +3864,7 @@ function fl() {
|
|
|
3830
3864
|
e.push(t);
|
|
3831
3865
|
},
|
|
3832
3866
|
removeAnimationState: function(t) {
|
|
3833
|
-
e.splice(
|
|
3867
|
+
e.splice(nl(e, { target: t }), 1);
|
|
3834
3868
|
},
|
|
3835
3869
|
animateAll: function(n) {
|
|
3836
3870
|
var r = this;
|
|
@@ -3840,8 +3874,8 @@ function fl() {
|
|
|
3840
3874
|
}
|
|
3841
3875
|
var i = !1, a = 0;
|
|
3842
3876
|
e.forEach(function(e) {
|
|
3843
|
-
var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d =
|
|
3844
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
3877
|
+
var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Jc(n, !0);
|
|
3878
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && al(c, s) && !al(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = hl(u, c, l, r.options)), al(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() {
|
|
3845
3879
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
3846
3880
|
}, t), n.thisAnimationDuration = t);
|
|
3847
3881
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -3851,26 +3885,26 @@ function fl() {
|
|
|
3851
3885
|
animate: function(e, t, n, r) {
|
|
3852
3886
|
if (r) {
|
|
3853
3887
|
U(e, "transition", ""), U(e, "transform", "");
|
|
3854
|
-
var i =
|
|
3855
|
-
e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
3888
|
+
var i = Jc(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
3889
|
+
e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ml(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() {
|
|
3856
3890
|
U(e, "transition", ""), U(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
3857
3891
|
}, r);
|
|
3858
3892
|
}
|
|
3859
3893
|
}
|
|
3860
3894
|
};
|
|
3861
3895
|
}
|
|
3862
|
-
function
|
|
3896
|
+
function ml(e) {
|
|
3863
3897
|
return e.offsetWidth;
|
|
3864
3898
|
}
|
|
3865
|
-
function
|
|
3899
|
+
function hl(e, t, n, r) {
|
|
3866
3900
|
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;
|
|
3867
3901
|
}
|
|
3868
|
-
var
|
|
3902
|
+
var gl = [], _l = { initializeByDefault: !0 }, vl = {
|
|
3869
3903
|
mount: function(e) {
|
|
3870
|
-
for (var t in
|
|
3871
|
-
|
|
3904
|
+
for (var t in _l) _l.hasOwnProperty(t) && !(t in e) && (e[t] = _l[t]);
|
|
3905
|
+
gl.forEach(function(t) {
|
|
3872
3906
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
3873
|
-
}),
|
|
3907
|
+
}), gl.push(e);
|
|
3874
3908
|
},
|
|
3875
3909
|
pluginEvent: function(e, t, n) {
|
|
3876
3910
|
var r = this;
|
|
@@ -3878,16 +3912,16 @@ var hl = [], gl = { initializeByDefault: !0 }, _l = {
|
|
|
3878
3912
|
r.eventCanceled = !0;
|
|
3879
3913
|
};
|
|
3880
3914
|
var i = e + "Global";
|
|
3881
|
-
|
|
3882
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
3915
|
+
gl.forEach(function(r) {
|
|
3916
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Oc({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Oc({ sortable: t }, n)));
|
|
3883
3917
|
});
|
|
3884
3918
|
},
|
|
3885
3919
|
initializePlugins: function(e, t, n, r) {
|
|
3886
|
-
for (var i in
|
|
3920
|
+
for (var i in gl.forEach(function(r) {
|
|
3887
3921
|
var i = r.pluginName;
|
|
3888
3922
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
3889
3923
|
var a = new r(e, t, e.options);
|
|
3890
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
3924
|
+
a.sortable = e, a.options = e.options, e[i] = a, jc(n, a.defaults);
|
|
3891
3925
|
}
|
|
3892
3926
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
3893
3927
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -3896,59 +3930,59 @@ var hl = [], gl = { initializeByDefault: !0 }, _l = {
|
|
|
3896
3930
|
},
|
|
3897
3931
|
getEventProperties: function(e, t) {
|
|
3898
3932
|
var n = {};
|
|
3899
|
-
return
|
|
3900
|
-
typeof r.eventProperties == "function" &&
|
|
3933
|
+
return gl.forEach(function(r) {
|
|
3934
|
+
typeof r.eventProperties == "function" && jc(n, r.eventProperties.call(t[r.pluginName], e));
|
|
3901
3935
|
}), n;
|
|
3902
3936
|
},
|
|
3903
3937
|
modifyOption: function(e, t, n) {
|
|
3904
3938
|
var r;
|
|
3905
|
-
return
|
|
3939
|
+
return gl.forEach(function(i) {
|
|
3906
3940
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
3907
3941
|
}), r;
|
|
3908
3942
|
}
|
|
3909
3943
|
};
|
|
3910
|
-
function
|
|
3944
|
+
function yl(e) {
|
|
3911
3945
|
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;
|
|
3912
|
-
if (t ||= n && n[
|
|
3946
|
+
if (t ||= n && n[fl], t) {
|
|
3913
3947
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
3914
|
-
window.CustomEvent && !
|
|
3948
|
+
window.CustomEvent && !Ic && !Lc ? h = new CustomEvent(r, {
|
|
3915
3949
|
bubbles: !0,
|
|
3916
3950
|
cancelable: !0
|
|
3917
3951
|
}) : (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;
|
|
3918
|
-
var v =
|
|
3952
|
+
var v = Oc(Oc({}, m), vl.getEventProperties(r, t));
|
|
3919
3953
|
for (var y in v) h[y] = v[y];
|
|
3920
3954
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
3921
3955
|
}
|
|
3922
3956
|
}
|
|
3923
|
-
var
|
|
3924
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
3925
|
-
|
|
3957
|
+
var bl = ["evt"], xl = function(e, t) {
|
|
3958
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Nc(n, bl);
|
|
3959
|
+
vl.pluginEvent.bind(Q)(e, t, Oc({
|
|
3926
3960
|
dragEl: G,
|
|
3927
3961
|
parentEl: K,
|
|
3928
3962
|
ghostEl: q,
|
|
3929
3963
|
rootEl: J,
|
|
3930
|
-
nextEl:
|
|
3931
|
-
lastDownEl:
|
|
3964
|
+
nextEl: Cl,
|
|
3965
|
+
lastDownEl: wl,
|
|
3932
3966
|
cloneEl: Y,
|
|
3933
|
-
cloneHidden:
|
|
3934
|
-
dragStarted:
|
|
3967
|
+
cloneHidden: Tl,
|
|
3968
|
+
dragStarted: Bl,
|
|
3935
3969
|
putSortable: X,
|
|
3936
3970
|
activeSortable: Q.active,
|
|
3937
3971
|
originalEvent: r,
|
|
3938
|
-
oldIndex:
|
|
3939
|
-
oldDraggableIndex:
|
|
3940
|
-
newIndex:
|
|
3941
|
-
newDraggableIndex:
|
|
3942
|
-
hideGhostForTarget:
|
|
3943
|
-
unhideGhostForTarget:
|
|
3972
|
+
oldIndex: El,
|
|
3973
|
+
oldDraggableIndex: Ol,
|
|
3974
|
+
newIndex: Dl,
|
|
3975
|
+
newDraggableIndex: kl,
|
|
3976
|
+
hideGhostForTarget: iu,
|
|
3977
|
+
unhideGhostForTarget: au,
|
|
3944
3978
|
cloneNowHidden: function() {
|
|
3945
|
-
|
|
3979
|
+
Tl = !0;
|
|
3946
3980
|
},
|
|
3947
3981
|
cloneNowShown: function() {
|
|
3948
|
-
|
|
3982
|
+
Tl = !1;
|
|
3949
3983
|
},
|
|
3950
3984
|
dispatchSortableEvent: function(e) {
|
|
3951
|
-
|
|
3985
|
+
Sl({
|
|
3952
3986
|
sortable: t,
|
|
3953
3987
|
name: e,
|
|
3954
3988
|
originalEvent: r
|
|
@@ -3956,40 +3990,40 @@ var yl = ["evt"], bl = function(e, t) {
|
|
|
3956
3990
|
}
|
|
3957
3991
|
}, i));
|
|
3958
3992
|
};
|
|
3959
|
-
function
|
|
3960
|
-
|
|
3993
|
+
function Sl(e) {
|
|
3994
|
+
yl(Oc({
|
|
3961
3995
|
putSortable: X,
|
|
3962
3996
|
cloneEl: Y,
|
|
3963
3997
|
targetEl: G,
|
|
3964
3998
|
rootEl: J,
|
|
3965
|
-
oldIndex:
|
|
3966
|
-
oldDraggableIndex:
|
|
3967
|
-
newIndex:
|
|
3968
|
-
newDraggableIndex:
|
|
3999
|
+
oldIndex: El,
|
|
4000
|
+
oldDraggableIndex: Ol,
|
|
4001
|
+
newIndex: Dl,
|
|
4002
|
+
newDraggableIndex: kl
|
|
3969
4003
|
}, e));
|
|
3970
4004
|
}
|
|
3971
|
-
var G, K, q, J,
|
|
3972
|
-
if (
|
|
3973
|
-
if (
|
|
4005
|
+
var G, K, q, J, Cl, wl, Y, Tl, El, Dl, Ol, kl, Al, X, jl = !1, Ml = !1, Nl = [], Pl, Fl, Il, Ll, Rl, zl, Bl, Vl, Hl, Ul = !1, Wl = !1, Gl, Z, Kl = [], ql = !1, Jl = [], Yl = typeof document < "u", Xl = Bc, Zl = Lc || Ic ? "cssFloat" : "float", Ql = Yl && !Vc && !Bc && "draggable" in document.createElement("div"), $l = function() {
|
|
4006
|
+
if (Yl) {
|
|
4007
|
+
if (Ic) return !1;
|
|
3974
4008
|
var e = document.createElement("x");
|
|
3975
4009
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
3976
4010
|
}
|
|
3977
|
-
}(),
|
|
3978
|
-
var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
3979
|
-
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[
|
|
3980
|
-
},
|
|
4011
|
+
}(), eu = function(e, t) {
|
|
4012
|
+
var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Qc(e, 0, t), a = Qc(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;
|
|
4013
|
+
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[Zl] === "none" || a && n[Zl] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
4014
|
+
}, tu = function(e, t, n) {
|
|
3981
4015
|
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;
|
|
3982
4016
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
3983
|
-
},
|
|
4017
|
+
}, nu = function(e, t) {
|
|
3984
4018
|
var n;
|
|
3985
|
-
return
|
|
3986
|
-
var i = r[
|
|
3987
|
-
if (!(!i ||
|
|
4019
|
+
return Nl.some(function(r) {
|
|
4020
|
+
var i = r[fl].options.emptyInsertThreshold;
|
|
4021
|
+
if (!(!i || $c(r))) {
|
|
3988
4022
|
var a = W(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
3989
4023
|
if (o && s) return n = r;
|
|
3990
4024
|
}
|
|
3991
4025
|
}), n;
|
|
3992
|
-
},
|
|
4026
|
+
}, ru = function(e) {
|
|
3993
4027
|
function t(e, n) {
|
|
3994
4028
|
return function(r, i, a, o) {
|
|
3995
4029
|
if (e == null && (n || r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name)) return !0;
|
|
@@ -4001,31 +4035,31 @@ var G, K, q, J, Sl, Cl, Y, wl, Tl, El, Dl, Ol, kl, X, Al = !1, jl = !1, Ml = [],
|
|
|
4001
4035
|
};
|
|
4002
4036
|
}
|
|
4003
4037
|
var n = {}, r = e.group;
|
|
4004
|
-
(!r ||
|
|
4005
|
-
}, ru = function() {
|
|
4006
|
-
!Ql && q && U(q, "display", "none");
|
|
4038
|
+
(!r || kc(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;
|
|
4007
4039
|
}, iu = function() {
|
|
4008
|
-
|
|
4040
|
+
!$l && q && U(q, "display", "none");
|
|
4041
|
+
}, au = function() {
|
|
4042
|
+
!$l && q && U(q, "display", "");
|
|
4009
4043
|
};
|
|
4010
|
-
|
|
4011
|
-
if (
|
|
4044
|
+
Yl && !Vc && document.addEventListener("click", function(e) {
|
|
4045
|
+
if (Ml) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ml = !1, !1;
|
|
4012
4046
|
}, !0);
|
|
4013
|
-
var
|
|
4047
|
+
var ou = function(e) {
|
|
4014
4048
|
if (G) {
|
|
4015
4049
|
e = e.touches ? e.touches[0] : e;
|
|
4016
|
-
var t =
|
|
4050
|
+
var t = nu(e.clientX, e.clientY);
|
|
4017
4051
|
if (t) {
|
|
4018
4052
|
var n = {};
|
|
4019
4053
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
4020
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
4054
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[fl]._onDragOver(n);
|
|
4021
4055
|
}
|
|
4022
4056
|
}
|
|
4023
|
-
},
|
|
4024
|
-
G && G.parentNode[
|
|
4057
|
+
}, su = function(e) {
|
|
4058
|
+
G && G.parentNode[fl]._isOutsideThisEl(e.target);
|
|
4025
4059
|
};
|
|
4026
4060
|
function Q(e, t) {
|
|
4027
4061
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
4028
|
-
this.el = e, this.options = t =
|
|
4062
|
+
this.el = e, this.options = t = jc({}, t), e[fl] = this;
|
|
4029
4063
|
var n = {
|
|
4030
4064
|
group: null,
|
|
4031
4065
|
sort: !0,
|
|
@@ -4038,7 +4072,7 @@ function Q(e, t) {
|
|
|
4038
4072
|
invertedSwapThreshold: null,
|
|
4039
4073
|
removeCloneOnHide: !0,
|
|
4040
4074
|
direction: function() {
|
|
4041
|
-
return
|
|
4075
|
+
return eu(e, this.options);
|
|
4042
4076
|
},
|
|
4043
4077
|
ghostClass: "sortable-ghost",
|
|
4044
4078
|
chosenClass: "sortable-chosen",
|
|
@@ -4065,17 +4099,17 @@ function Q(e, t) {
|
|
|
4065
4099
|
x: 0,
|
|
4066
4100
|
y: 0
|
|
4067
4101
|
},
|
|
4068
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
4102
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !zc,
|
|
4069
4103
|
emptyInsertThreshold: 5
|
|
4070
4104
|
};
|
|
4071
|
-
for (var r in
|
|
4072
|
-
for (var i in
|
|
4073
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
4105
|
+
for (var r in vl.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
4106
|
+
for (var i in ru(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
4107
|
+
this.nativeDraggable = !t.forceFallback && Ql, 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)), Nl.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), jc(this, pl());
|
|
4074
4108
|
}
|
|
4075
4109
|
Q.prototype = {
|
|
4076
4110
|
constructor: Q,
|
|
4077
4111
|
_isOutsideThisEl: function(e) {
|
|
4078
|
-
!this.el.contains(e) && e !== this.el && (
|
|
4112
|
+
!this.el.contains(e) && e !== this.el && (Vl = null);
|
|
4079
4113
|
},
|
|
4080
4114
|
_getDirection: function(e, t) {
|
|
4081
4115
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
@@ -4083,33 +4117,33 @@ Q.prototype = {
|
|
|
4083
4117
|
_onTapStart: function(e) {
|
|
4084
4118
|
if (e.cancelable) {
|
|
4085
4119
|
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;
|
|
4086
|
-
if (
|
|
4087
|
-
if (
|
|
4120
|
+
if (_u(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && zc && s && s.tagName.toUpperCase() === "SELECT") && (s = Gc(s, r.draggable, n, !1), !(s && s.animated) && wl !== s)) {
|
|
4121
|
+
if (El = el(s), Ol = el(s, r.draggable), typeof l == "function") {
|
|
4088
4122
|
if (l.call(this, e, s, this)) {
|
|
4089
|
-
|
|
4123
|
+
Sl({
|
|
4090
4124
|
sortable: t,
|
|
4091
4125
|
rootEl: c,
|
|
4092
4126
|
name: "filter",
|
|
4093
4127
|
targetEl: s,
|
|
4094
4128
|
toEl: n,
|
|
4095
4129
|
fromEl: n
|
|
4096
|
-
}),
|
|
4130
|
+
}), xl("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
4097
4131
|
return;
|
|
4098
4132
|
}
|
|
4099
4133
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
4100
|
-
if (r =
|
|
4134
|
+
if (r = Gc(c, r.trim(), n, !1), r) return Sl({
|
|
4101
4135
|
sortable: t,
|
|
4102
4136
|
rootEl: r,
|
|
4103
4137
|
name: "filter",
|
|
4104
4138
|
targetEl: s,
|
|
4105
4139
|
fromEl: n,
|
|
4106
4140
|
toEl: n
|
|
4107
|
-
}),
|
|
4141
|
+
}), xl("filter", t, { evt: e }), !0;
|
|
4108
4142
|
}), l)) {
|
|
4109
4143
|
i && e.cancelable && e.preventDefault();
|
|
4110
4144
|
return;
|
|
4111
4145
|
}
|
|
4112
|
-
r.handle && !
|
|
4146
|
+
r.handle && !Gc(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
4113
4147
|
}
|
|
4114
4148
|
}
|
|
4115
4149
|
},
|
|
@@ -4117,23 +4151,23 @@ Q.prototype = {
|
|
|
4117
4151
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
4118
4152
|
if (n && !G && n.parentNode === i) {
|
|
4119
4153
|
var c = W(n);
|
|
4120
|
-
if (J = i, G = n, K = G.parentNode,
|
|
4154
|
+
if (J = i, G = n, K = G.parentNode, Cl = G.nextSibling, wl = n, Al = a.group, Q.dragged = G, Pl = {
|
|
4121
4155
|
target: G,
|
|
4122
4156
|
clientX: (t || e).clientX,
|
|
4123
4157
|
clientY: (t || e).clientY
|
|
4124
|
-
},
|
|
4125
|
-
if (
|
|
4158
|
+
}, Rl = Pl.clientX - c.left, zl = Pl.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
4159
|
+
if (xl("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
4126
4160
|
r._onDrop();
|
|
4127
4161
|
return;
|
|
4128
4162
|
}
|
|
4129
|
-
r._disableDelayedDragEvents(), !
|
|
4163
|
+
r._disableDelayedDragEvents(), !Rc && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), Sl({
|
|
4130
4164
|
sortable: r,
|
|
4131
4165
|
name: "choose",
|
|
4132
4166
|
originalEvent: e
|
|
4133
|
-
}),
|
|
4167
|
+
}), qc(G, a.chosenClass, !0);
|
|
4134
4168
|
}, a.ignore.split(",").forEach(function(e) {
|
|
4135
|
-
|
|
4136
|
-
}), V(o, "dragover",
|
|
4169
|
+
Yc(G, e.trim(), uu);
|
|
4170
|
+
}), V(o, "dragover", ou), V(o, "mousemove", ou), V(o, "touchmove", ou), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), Rc && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), xl("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Lc || Ic))) {
|
|
4137
4171
|
if (Q.eventCanceled) {
|
|
4138
4172
|
this._onDrop();
|
|
4139
4173
|
return;
|
|
@@ -4147,7 +4181,7 @@ Q.prototype = {
|
|
|
4147
4181
|
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();
|
|
4148
4182
|
},
|
|
4149
4183
|
_disableDelayedDrag: function() {
|
|
4150
|
-
G &&
|
|
4184
|
+
G && uu(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
4151
4185
|
},
|
|
4152
4186
|
_disableDelayedDragEvents: function() {
|
|
4153
4187
|
var e = this.el.ownerDocument;
|
|
@@ -4156,16 +4190,16 @@ Q.prototype = {
|
|
|
4156
4190
|
_triggerDragStart: function(e, t) {
|
|
4157
4191
|
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));
|
|
4158
4192
|
try {
|
|
4159
|
-
document.selection ?
|
|
4193
|
+
document.selection ? vu(function() {
|
|
4160
4194
|
document.selection.empty();
|
|
4161
4195
|
}) : window.getSelection().removeAllRanges();
|
|
4162
4196
|
} catch {}
|
|
4163
4197
|
},
|
|
4164
4198
|
_dragStarted: function(e, t) {
|
|
4165
|
-
if (
|
|
4166
|
-
|
|
4199
|
+
if (jl = !1, J && G) {
|
|
4200
|
+
xl("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", su);
|
|
4167
4201
|
var n = this.options;
|
|
4168
|
-
!e &&
|
|
4202
|
+
!e && qc(G, n.dragClass, !1), qc(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), Sl({
|
|
4169
4203
|
sortable: this,
|
|
4170
4204
|
name: "start",
|
|
4171
4205
|
originalEvent: t
|
|
@@ -4173,33 +4207,33 @@ Q.prototype = {
|
|
|
4173
4207
|
} else this._nulling();
|
|
4174
4208
|
},
|
|
4175
4209
|
_emulateDragOver: function() {
|
|
4176
|
-
if (
|
|
4177
|
-
this._lastX =
|
|
4178
|
-
for (var e = document.elementFromPoint(
|
|
4179
|
-
if (G.parentNode[
|
|
4180
|
-
if (t[
|
|
4210
|
+
if (Fl) {
|
|
4211
|
+
this._lastX = Fl.clientX, this._lastY = Fl.clientY, iu();
|
|
4212
|
+
for (var e = document.elementFromPoint(Fl.clientX, Fl.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Fl.clientX, Fl.clientY), e !== t);) t = e;
|
|
4213
|
+
if (G.parentNode[fl]._isOutsideThisEl(e), t) do {
|
|
4214
|
+
if (t[fl]) {
|
|
4181
4215
|
var n = void 0;
|
|
4182
|
-
if (n = t[
|
|
4183
|
-
clientX:
|
|
4184
|
-
clientY:
|
|
4216
|
+
if (n = t[fl]._onDragOver({
|
|
4217
|
+
clientX: Fl.clientX,
|
|
4218
|
+
clientY: Fl.clientY,
|
|
4185
4219
|
target: e,
|
|
4186
4220
|
rootEl: t
|
|
4187
4221
|
}), n && !this.options.dragoverBubble) break;
|
|
4188
4222
|
}
|
|
4189
4223
|
e = t;
|
|
4190
4224
|
} while (t = t.parentNode);
|
|
4191
|
-
|
|
4225
|
+
au();
|
|
4192
4226
|
}
|
|
4193
4227
|
},
|
|
4194
4228
|
_onTouchMove: function(e) {
|
|
4195
|
-
if (
|
|
4196
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q &&
|
|
4197
|
-
if (!Q.active && !
|
|
4229
|
+
if (Pl) {
|
|
4230
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Jc(q, !0), o = q && a && a.a, s = q && a && a.d, c = Xl && Z && tl(Z), l = (i.clientX - Pl.clientX + r.x) / (o || 1) + (c ? c[0] - Kl[0] : 0) / (o || 1), u = (i.clientY - Pl.clientY + r.y) / (s || 1) + (c ? c[1] - Kl[1] : 0) / (s || 1);
|
|
4231
|
+
if (!Q.active && !jl) {
|
|
4198
4232
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
4199
4233
|
this._onDragStart(e, !0);
|
|
4200
4234
|
}
|
|
4201
4235
|
if (q) {
|
|
4202
|
-
a ? (a.e += l - (
|
|
4236
|
+
a ? (a.e += l - (Il || 0), a.f += u - (Ll || 0)) : a = {
|
|
4203
4237
|
a: 1,
|
|
4204
4238
|
b: 0,
|
|
4205
4239
|
c: 0,
|
|
@@ -4208,39 +4242,39 @@ Q.prototype = {
|
|
|
4208
4242
|
f: u
|
|
4209
4243
|
};
|
|
4210
4244
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
4211
|
-
U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d),
|
|
4245
|
+
U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), Il = l, Ll = u, Fl = i;
|
|
4212
4246
|
}
|
|
4213
4247
|
e.cancelable && e.preventDefault();
|
|
4214
4248
|
}
|
|
4215
4249
|
},
|
|
4216
4250
|
_appendGhost: function() {
|
|
4217
4251
|
if (!q) {
|
|
4218
|
-
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0,
|
|
4219
|
-
if (
|
|
4252
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, Xl, !0, e), n = this.options;
|
|
4253
|
+
if (Xl) {
|
|
4220
4254
|
for (Z = e; U(Z, "position") === "static" && U(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
4221
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
4255
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Xc()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Xc(), Kl = tl(Z);
|
|
4222
4256
|
}
|
|
4223
|
-
q = G.cloneNode(!0),
|
|
4257
|
+
q = G.cloneNode(!0), qc(q, n.ghostClass, !1), qc(q, n.fallbackClass, !0), qc(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", Xl ? "absolute" : "fixed"), U(q, "zIndex", "100000"), U(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), U(q, "transform-origin", Rl / parseInt(q.style.width) * 100 + "% " + zl / parseInt(q.style.height) * 100 + "%");
|
|
4224
4258
|
}
|
|
4225
4259
|
},
|
|
4226
4260
|
_onDragStart: function(e, t) {
|
|
4227
4261
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
4228
|
-
if (
|
|
4262
|
+
if (xl("dragStart", this, { evt: e }), Q.eventCanceled) {
|
|
4229
4263
|
this._onDrop();
|
|
4230
4264
|
return;
|
|
4231
4265
|
}
|
|
4232
|
-
|
|
4233
|
-
|
|
4266
|
+
xl("setupClone", this), Q.eventCanceled || (Y = ul(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), qc(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = vu(function() {
|
|
4267
|
+
xl("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), Sl({
|
|
4234
4268
|
sortable: n,
|
|
4235
4269
|
name: "clone"
|
|
4236
4270
|
}));
|
|
4237
|
-
}), !t &&
|
|
4271
|
+
}), !t && qc(G, i.dragClass, !0), t ? (Ml = !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)")), jl = !0, n._dragStartId = vu(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), Bl = !0, zc && U(document.body, "user-select", "none");
|
|
4238
4272
|
},
|
|
4239
4273
|
_onDragOver: function(e) {
|
|
4240
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
4241
|
-
if (
|
|
4274
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Al === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
4275
|
+
if (ql) return;
|
|
4242
4276
|
function h(o, s) {
|
|
4243
|
-
|
|
4277
|
+
xl(o, p, Oc({
|
|
4244
4278
|
evt: e,
|
|
4245
4279
|
isOwner: l,
|
|
4246
4280
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -4252,7 +4286,7 @@ Q.prototype = {
|
|
|
4252
4286
|
target: n,
|
|
4253
4287
|
completed: _,
|
|
4254
4288
|
onMove: function(n, i) {
|
|
4255
|
-
return
|
|
4289
|
+
return lu(J, t, G, r, n, W(n), e, i);
|
|
4256
4290
|
},
|
|
4257
4291
|
changed: v
|
|
4258
4292
|
}, s));
|
|
@@ -4261,50 +4295,50 @@ Q.prototype = {
|
|
|
4261
4295
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
4262
4296
|
}
|
|
4263
4297
|
function _(r) {
|
|
4264
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
4298
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (qc(G, X ? X.options.ghostClass : c.options.ghostClass, !1), qc(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() {
|
|
4265
4299
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
4266
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (
|
|
4300
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Vl = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[fl]._isOutsideThisEl(e.target), !r && ou(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
4267
4301
|
}
|
|
4268
4302
|
function v() {
|
|
4269
|
-
|
|
4303
|
+
Dl = el(G), kl = el(G, o.draggable), Sl({
|
|
4270
4304
|
sortable: p,
|
|
4271
4305
|
name: "change",
|
|
4272
4306
|
toEl: t,
|
|
4273
|
-
newIndex:
|
|
4274
|
-
newDraggableIndex:
|
|
4307
|
+
newIndex: Dl,
|
|
4308
|
+
newDraggableIndex: kl,
|
|
4275
4309
|
originalEvent: e
|
|
4276
4310
|
});
|
|
4277
4311
|
}
|
|
4278
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
4312
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Gc(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
4279
4313
|
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
4280
|
-
if (
|
|
4314
|
+
if (Ml = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = Al.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
4281
4315
|
if (f = this._getDirection(e, n) === "vertical", r = W(G), h("dragOverValid"), Q.eventCanceled) return m;
|
|
4282
|
-
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
4283
|
-
var y =
|
|
4284
|
-
if (!y ||
|
|
4316
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Cl ? J.insertBefore(G, Cl) : J.appendChild(G)), _(!0);
|
|
4317
|
+
var y = $c(t, o.draggable);
|
|
4318
|
+
if (!y || pu(e, f, this) && !y.animated) {
|
|
4285
4319
|
if (y === G) return _(!1);
|
|
4286
|
-
if (y && t === e.target && (n = y), n && (i = W(n)),
|
|
4287
|
-
} else if (y &&
|
|
4288
|
-
var b =
|
|
4320
|
+
if (y && t === e.target && (n = y), n && (i = W(n)), lu(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);
|
|
4321
|
+
} else if (y && fu(e, f, this)) {
|
|
4322
|
+
var b = Qc(t, 0, o, !0);
|
|
4289
4323
|
if (b === G) return _(!1);
|
|
4290
|
-
if (n = b, i = W(n),
|
|
4324
|
+
if (n = b, i = W(n), lu(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
4291
4325
|
} else if (n.parentNode === t) {
|
|
4292
4326
|
i = W(n);
|
|
4293
|
-
var x = 0, S, C = G.parentNode !== t, w = !
|
|
4294
|
-
|
|
4327
|
+
var x = 0, S, C = G.parentNode !== t, w = !tu(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Zc(n, "top", "top") || Zc(G, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
4328
|
+
Vl !== n && (S = i[T], Ul = !1, Wl = !w && o.invertSwap || C), x = mu(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Wl, Vl === n);
|
|
4295
4329
|
var D;
|
|
4296
4330
|
if (x !== 0) {
|
|
4297
|
-
var te =
|
|
4331
|
+
var te = el(G);
|
|
4298
4332
|
do
|
|
4299
4333
|
te -= x, D = K.children[te];
|
|
4300
4334
|
while (D && (U(D, "display") === "none" || D === q));
|
|
4301
4335
|
}
|
|
4302
4336
|
if (x === 0 || D === n) return _(!1);
|
|
4303
|
-
|
|
4337
|
+
Vl = n, Hl = x;
|
|
4304
4338
|
var O = n.nextElementSibling, ne = !1;
|
|
4305
4339
|
ne = x === 1;
|
|
4306
|
-
var re =
|
|
4307
|
-
if (re !== !1) return (re === 1 || re === -1) && (ne = re === 1),
|
|
4340
|
+
var re = lu(J, t, G, r, n, i, e, ne);
|
|
4341
|
+
if (re !== !1) return (re === 1 || re === -1) && (ne = re === 1), ql = !0, setTimeout(du, 30), g(), ne && !O ? t.appendChild(G) : n.parentNode.insertBefore(G, ne ? O : n), E && ll(E, 0, ee - E.scrollTop), K = G.parentNode, S !== void 0 && !Wl && (Gl = Math.abs(S - W(n)[T])), v(), _(!0);
|
|
4308
4342
|
}
|
|
4309
4343
|
if (t.contains(G)) return _(!1);
|
|
4310
4344
|
}
|
|
@@ -4312,7 +4346,7 @@ Q.prototype = {
|
|
|
4312
4346
|
},
|
|
4313
4347
|
_ignoreWhileAnimating: null,
|
|
4314
4348
|
_offMoveEvents: function() {
|
|
4315
|
-
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover",
|
|
4349
|
+
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", ou), H(document, "mousemove", ou), H(document, "touchmove", ou);
|
|
4316
4350
|
},
|
|
4317
4351
|
_offUpEvents: function() {
|
|
4318
4352
|
var e = this.el.ownerDocument;
|
|
@@ -4320,50 +4354,50 @@ Q.prototype = {
|
|
|
4320
4354
|
},
|
|
4321
4355
|
_onDrop: function(e) {
|
|
4322
4356
|
var t = this.el, n = this.options;
|
|
4323
|
-
if (
|
|
4357
|
+
if (Dl = el(G), kl = el(G, n.draggable), xl("drop", this, { evt: e }), K = G && G.parentNode, Dl = el(G), kl = el(G, n.draggable), Q.eventCanceled) {
|
|
4324
4358
|
this._nulling();
|
|
4325
4359
|
return;
|
|
4326
4360
|
}
|
|
4327
|
-
|
|
4361
|
+
jl = !1, Wl = !1, Ul = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), yu(this.cloneId), yu(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), zc && U(document.body, "user-select", ""), U(G, "transform", ""), e && (Bl && (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), uu(G), G.style["will-change"] = "", Bl && !jl && qc(G, X ? X.options.ghostClass : this.options.ghostClass, !1), qc(G, this.options.chosenClass, !1), Sl({
|
|
4328
4362
|
sortable: this,
|
|
4329
4363
|
name: "unchoose",
|
|
4330
4364
|
toEl: K,
|
|
4331
4365
|
newIndex: null,
|
|
4332
4366
|
newDraggableIndex: null,
|
|
4333
4367
|
originalEvent: e
|
|
4334
|
-
}), J === K ?
|
|
4368
|
+
}), J === K ? Dl !== El && Dl >= 0 && (Sl({
|
|
4335
4369
|
sortable: this,
|
|
4336
4370
|
name: "update",
|
|
4337
4371
|
toEl: K,
|
|
4338
4372
|
originalEvent: e
|
|
4339
|
-
}),
|
|
4373
|
+
}), Sl({
|
|
4340
4374
|
sortable: this,
|
|
4341
4375
|
name: "sort",
|
|
4342
4376
|
toEl: K,
|
|
4343
4377
|
originalEvent: e
|
|
4344
|
-
})) : (
|
|
4378
|
+
})) : (Dl >= 0 && (Sl({
|
|
4345
4379
|
rootEl: K,
|
|
4346
4380
|
name: "add",
|
|
4347
4381
|
toEl: K,
|
|
4348
4382
|
fromEl: J,
|
|
4349
4383
|
originalEvent: e
|
|
4350
|
-
}),
|
|
4384
|
+
}), Sl({
|
|
4351
4385
|
sortable: this,
|
|
4352
4386
|
name: "remove",
|
|
4353
4387
|
toEl: K,
|
|
4354
4388
|
originalEvent: e
|
|
4355
|
-
}),
|
|
4389
|
+
}), Sl({
|
|
4356
4390
|
rootEl: K,
|
|
4357
4391
|
name: "sort",
|
|
4358
4392
|
toEl: K,
|
|
4359
4393
|
fromEl: J,
|
|
4360
4394
|
originalEvent: e
|
|
4361
|
-
}),
|
|
4395
|
+
}), Sl({
|
|
4362
4396
|
sortable: this,
|
|
4363
4397
|
name: "sort",
|
|
4364
4398
|
toEl: K,
|
|
4365
4399
|
originalEvent: e
|
|
4366
|
-
})), X && X.save()), Q.active && ((
|
|
4400
|
+
})), X && X.save()), Q.active && ((Dl == null || Dl === -1) && (Dl = El, kl = Ol), Sl({
|
|
4367
4401
|
sortable: this,
|
|
4368
4402
|
name: "end",
|
|
4369
4403
|
toEl: K,
|
|
@@ -4371,9 +4405,9 @@ Q.prototype = {
|
|
|
4371
4405
|
}), this.save()))), this._nulling();
|
|
4372
4406
|
},
|
|
4373
4407
|
_nulling: function() {
|
|
4374
|
-
|
|
4408
|
+
xl("nulling", this), J = G = K = q = Cl = Y = wl = Tl = Pl = Fl = Bl = Dl = kl = El = Ol = Vl = Hl = X = Al = Q.dragged = Q.ghost = Q.clone = Q.active = null, Jl.forEach(function(e) {
|
|
4375
4409
|
e.checked = !0;
|
|
4376
|
-
}),
|
|
4410
|
+
}), Jl.length = Il = Ll = 0;
|
|
4377
4411
|
},
|
|
4378
4412
|
handleEvent: function(e) {
|
|
4379
4413
|
switch (e.type) {
|
|
@@ -4383,20 +4417,20 @@ Q.prototype = {
|
|
|
4383
4417
|
break;
|
|
4384
4418
|
case "dragenter":
|
|
4385
4419
|
case "dragover":
|
|
4386
|
-
G && (this._onDragOver(e),
|
|
4420
|
+
G && (this._onDragOver(e), cu(e));
|
|
4387
4421
|
break;
|
|
4388
4422
|
case "selectstart": e.preventDefault();
|
|
4389
4423
|
}
|
|
4390
4424
|
},
|
|
4391
4425
|
toArray: function() {
|
|
4392
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
4426
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Gc(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || gu(t));
|
|
4393
4427
|
return e;
|
|
4394
4428
|
},
|
|
4395
4429
|
sort: function(e, t) {
|
|
4396
4430
|
var n = {}, r = this.el;
|
|
4397
4431
|
this.toArray().forEach(function(e, t) {
|
|
4398
4432
|
var i = r.children[t];
|
|
4399
|
-
|
|
4433
|
+
Gc(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
4400
4434
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
4401
4435
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
4402
4436
|
}), t && this.animateAll();
|
|
@@ -4406,25 +4440,25 @@ Q.prototype = {
|
|
|
4406
4440
|
e && e.set && e.set(this);
|
|
4407
4441
|
},
|
|
4408
4442
|
closest: function(e, t) {
|
|
4409
|
-
return
|
|
4443
|
+
return Gc(e, t || this.options.draggable, this.el, !1);
|
|
4410
4444
|
},
|
|
4411
4445
|
option: function(e, t) {
|
|
4412
4446
|
var n = this.options;
|
|
4413
4447
|
if (t === void 0) return n[e];
|
|
4414
|
-
var r =
|
|
4415
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
4448
|
+
var r = vl.modifyOption(this, e, t);
|
|
4449
|
+
n[e] = r === void 0 ? t : r, e === "group" && ru(n);
|
|
4416
4450
|
},
|
|
4417
4451
|
destroy: function() {
|
|
4418
|
-
|
|
4452
|
+
xl("destroy", this);
|
|
4419
4453
|
var e = this.el;
|
|
4420
|
-
e[
|
|
4454
|
+
e[fl] = 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) {
|
|
4421
4455
|
e.removeAttribute("draggable");
|
|
4422
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
4456
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Nl.splice(Nl.indexOf(this.el), 1), this.el = e = null;
|
|
4423
4457
|
},
|
|
4424
4458
|
_hideClone: function() {
|
|
4425
|
-
if (!
|
|
4426
|
-
if (
|
|
4427
|
-
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y),
|
|
4459
|
+
if (!Tl) {
|
|
4460
|
+
if (xl("hideClone", this), Q.eventCanceled) return;
|
|
4461
|
+
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Tl = !0;
|
|
4428
4462
|
}
|
|
4429
4463
|
},
|
|
4430
4464
|
_showClone: function(e) {
|
|
@@ -4432,99 +4466,99 @@ Q.prototype = {
|
|
|
4432
4466
|
this._hideClone();
|
|
4433
4467
|
return;
|
|
4434
4468
|
}
|
|
4435
|
-
if (
|
|
4436
|
-
if (
|
|
4437
|
-
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) :
|
|
4469
|
+
if (Tl) {
|
|
4470
|
+
if (xl("showClone", this), Q.eventCanceled) return;
|
|
4471
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Cl ? J.insertBefore(Y, Cl) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), U(Y, "display", ""), Tl = !1;
|
|
4438
4472
|
}
|
|
4439
4473
|
}
|
|
4440
4474
|
};
|
|
4441
|
-
function
|
|
4475
|
+
function cu(e) {
|
|
4442
4476
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
4443
4477
|
}
|
|
4444
|
-
function
|
|
4445
|
-
var c, l = e[
|
|
4446
|
-
return window.CustomEvent && !
|
|
4478
|
+
function lu(e, t, n, r, i, a, o, s) {
|
|
4479
|
+
var c, l = e[fl], u = l.options.onMove, d;
|
|
4480
|
+
return window.CustomEvent && !Ic && !Lc ? c = new CustomEvent("move", {
|
|
4447
4481
|
bubbles: !0,
|
|
4448
4482
|
cancelable: !0
|
|
4449
4483
|
}) : (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;
|
|
4450
4484
|
}
|
|
4451
|
-
function
|
|
4485
|
+
function uu(e) {
|
|
4452
4486
|
e.draggable = !1;
|
|
4453
4487
|
}
|
|
4454
|
-
function
|
|
4455
|
-
|
|
4488
|
+
function du() {
|
|
4489
|
+
ql = !1;
|
|
4456
4490
|
}
|
|
4457
|
-
function
|
|
4458
|
-
var r = W(
|
|
4491
|
+
function fu(e, t, n) {
|
|
4492
|
+
var r = W(Qc(n.el, 0, n.options, !0)), i = dl(n.el, n.options, q), a = 10;
|
|
4459
4493
|
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;
|
|
4460
4494
|
}
|
|
4461
|
-
function
|
|
4462
|
-
var r = W(
|
|
4495
|
+
function pu(e, t, n) {
|
|
4496
|
+
var r = W($c(n.el, n.options.draggable)), i = dl(n.el, n.options, q), a = 10;
|
|
4463
4497
|
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;
|
|
4464
4498
|
}
|
|
4465
|
-
function
|
|
4499
|
+
function mu(e, t, n, r, i, a, o, s) {
|
|
4466
4500
|
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;
|
|
4467
4501
|
if (!o) {
|
|
4468
|
-
if (s &&
|
|
4469
|
-
if (!
|
|
4470
|
-
else if (
|
|
4471
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
4502
|
+
if (s && Gl < l * i) {
|
|
4503
|
+
if (!Ul && (Hl === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ul = !0), Ul) f = !0;
|
|
4504
|
+
else if (Hl === 1 ? c < u + Gl : c > d - Gl) return -Hl;
|
|
4505
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return hu(t);
|
|
4472
4506
|
}
|
|
4473
4507
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
4474
4508
|
}
|
|
4475
|
-
function mu(e) {
|
|
4476
|
-
return $c(G) < $c(e) ? 1 : -1;
|
|
4477
|
-
}
|
|
4478
4509
|
function hu(e) {
|
|
4510
|
+
return el(G) < el(e) ? 1 : -1;
|
|
4511
|
+
}
|
|
4512
|
+
function gu(e) {
|
|
4479
4513
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
4480
4514
|
return r.toString(36);
|
|
4481
4515
|
}
|
|
4482
|
-
function
|
|
4483
|
-
|
|
4516
|
+
function _u(e) {
|
|
4517
|
+
Jl.length = 0;
|
|
4484
4518
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
4485
4519
|
var r = t[n];
|
|
4486
|
-
r.checked &&
|
|
4520
|
+
r.checked && Jl.push(r);
|
|
4487
4521
|
}
|
|
4488
4522
|
}
|
|
4489
|
-
function
|
|
4523
|
+
function vu(e) {
|
|
4490
4524
|
return setTimeout(e, 0);
|
|
4491
4525
|
}
|
|
4492
|
-
function
|
|
4526
|
+
function yu(e) {
|
|
4493
4527
|
return clearTimeout(e);
|
|
4494
4528
|
}
|
|
4495
|
-
|
|
4496
|
-
(Q.active ||
|
|
4529
|
+
Yl && V(document, "touchmove", function(e) {
|
|
4530
|
+
(Q.active || jl) && e.cancelable && e.preventDefault();
|
|
4497
4531
|
}), Q.utils = {
|
|
4498
4532
|
on: V,
|
|
4499
4533
|
off: H,
|
|
4500
4534
|
css: U,
|
|
4501
|
-
find:
|
|
4535
|
+
find: Yc,
|
|
4502
4536
|
is: function(e, t) {
|
|
4503
|
-
return !!
|
|
4537
|
+
return !!Gc(e, t, e, !1);
|
|
4504
4538
|
},
|
|
4505
|
-
extend:
|
|
4506
|
-
throttle:
|
|
4507
|
-
closest:
|
|
4508
|
-
toggleClass:
|
|
4509
|
-
clone:
|
|
4510
|
-
index:
|
|
4511
|
-
nextTick:
|
|
4512
|
-
cancelNextTick:
|
|
4513
|
-
detectDirection:
|
|
4514
|
-
getChild:
|
|
4539
|
+
extend: il,
|
|
4540
|
+
throttle: sl,
|
|
4541
|
+
closest: Gc,
|
|
4542
|
+
toggleClass: qc,
|
|
4543
|
+
clone: ul,
|
|
4544
|
+
index: el,
|
|
4545
|
+
nextTick: vu,
|
|
4546
|
+
cancelNextTick: yu,
|
|
4547
|
+
detectDirection: eu,
|
|
4548
|
+
getChild: Qc
|
|
4515
4549
|
}, Q.get = function(e) {
|
|
4516
|
-
return e[
|
|
4550
|
+
return e[fl];
|
|
4517
4551
|
}, Q.mount = function() {
|
|
4518
4552
|
var e = [...arguments];
|
|
4519
4553
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
4520
4554
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
4521
|
-
e.utils && (Q.utils =
|
|
4555
|
+
e.utils && (Q.utils = Oc(Oc({}, Q.utils), e.utils)), vl.mount(e);
|
|
4522
4556
|
});
|
|
4523
4557
|
}, Q.create = function(e, t) {
|
|
4524
4558
|
return new Q(e, t);
|
|
4525
|
-
}, Q.version =
|
|
4526
|
-
var $ = [],
|
|
4527
|
-
function
|
|
4559
|
+
}, Q.version = Pc;
|
|
4560
|
+
var $ = [], bu, xu, Su = !1, Cu, wu, Tu, Eu;
|
|
4561
|
+
function Du() {
|
|
4528
4562
|
function e() {
|
|
4529
4563
|
for (var e in this.defaults = {
|
|
4530
4564
|
scroll: !0,
|
|
@@ -4544,63 +4578,63 @@ function Eu() {
|
|
|
4544
4578
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
4545
4579
|
},
|
|
4546
4580
|
drop: function() {
|
|
4547
|
-
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
4581
|
+
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), ku(), Ou(), cl();
|
|
4548
4582
|
},
|
|
4549
4583
|
nulling: function() {
|
|
4550
|
-
|
|
4584
|
+
Tu = xu = bu = Su = Eu = Cu = wu = null, $.length = 0;
|
|
4551
4585
|
},
|
|
4552
4586
|
_handleFallbackAutoScroll: function(e) {
|
|
4553
4587
|
this._handleAutoScroll(e, !0);
|
|
4554
4588
|
},
|
|
4555
4589
|
_handleAutoScroll: function(e, t) {
|
|
4556
4590
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
4557
|
-
if (
|
|
4558
|
-
|
|
4559
|
-
var o =
|
|
4560
|
-
|
|
4561
|
-
var a =
|
|
4562
|
-
a !== o && (o = a,
|
|
4563
|
-
}, 10),
|
|
4591
|
+
if (Tu = e, t || this.options.forceAutoScrollFallback || Lc || Ic || zc) {
|
|
4592
|
+
Au(e, this.options, a, t);
|
|
4593
|
+
var o = rl(a, !0);
|
|
4594
|
+
Su && (!Eu || r !== Cu || i !== wu) && (Eu && ku(), Eu = setInterval(function() {
|
|
4595
|
+
var a = rl(document.elementFromPoint(r, i), !0);
|
|
4596
|
+
a !== o && (o = a, Ou()), Au(e, n.options, a, t);
|
|
4597
|
+
}, 10), Cu = r, wu = i);
|
|
4564
4598
|
} else {
|
|
4565
|
-
if (!this.options.bubbleScroll ||
|
|
4566
|
-
|
|
4599
|
+
if (!this.options.bubbleScroll || rl(a, !0) === Xc()) {
|
|
4600
|
+
Ou();
|
|
4567
4601
|
return;
|
|
4568
4602
|
}
|
|
4569
|
-
|
|
4603
|
+
Au(e, this.options, rl(a, !1), !1);
|
|
4570
4604
|
}
|
|
4571
4605
|
}
|
|
4572
|
-
},
|
|
4606
|
+
}, jc(e, {
|
|
4573
4607
|
pluginName: "scroll",
|
|
4574
4608
|
initializeByDefault: !0
|
|
4575
4609
|
});
|
|
4576
4610
|
}
|
|
4577
|
-
function
|
|
4611
|
+
function Ou() {
|
|
4578
4612
|
$.forEach(function(e) {
|
|
4579
4613
|
clearInterval(e.pid);
|
|
4580
4614
|
}), $ = [];
|
|
4581
4615
|
}
|
|
4582
|
-
function
|
|
4583
|
-
clearInterval(
|
|
4616
|
+
function ku() {
|
|
4617
|
+
clearInterval(Eu);
|
|
4584
4618
|
}
|
|
4585
|
-
var
|
|
4619
|
+
var Au = sl(function(e, t, n, r) {
|
|
4586
4620
|
if (t.scroll) {
|
|
4587
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
4588
|
-
|
|
4589
|
-
var d = 0, f =
|
|
4621
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Xc(), l = !1, u;
|
|
4622
|
+
xu !== n && (xu = n, Ou(), bu = t.scroll, u = t.scrollFn, bu === !0 && (bu = rl(n, !0)));
|
|
4623
|
+
var d = 0, f = bu;
|
|
4590
4624
|
do {
|
|
4591
4625
|
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;
|
|
4592
4626
|
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"));
|
|
4593
4627
|
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);
|
|
4594
4628
|
if (!$[d]) for (var O = 0; O <= d; O++) $[O] || ($[O] = {});
|
|
4595
4629
|
($[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() {
|
|
4596
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
4630
|
+
r && this.layer === 0 && Q.active._onTouchMove(Tu);
|
|
4597
4631
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
4598
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
4632
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[fl], n, t, e, Tu, $[this.layer].el) !== "continue" || ll($[this.layer].el, n, t);
|
|
4599
4633
|
}.bind({ layer: d }), 24))), d++;
|
|
4600
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
4601
|
-
|
|
4634
|
+
} while (t.bubbleScroll && f !== c && (f = rl(f, !1)));
|
|
4635
|
+
Su = l;
|
|
4602
4636
|
}
|
|
4603
|
-
}, 30),
|
|
4637
|
+
}, 30), ju = function(e) {
|
|
4604
4638
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
4605
4639
|
if (t) {
|
|
4606
4640
|
var c = n || i;
|
|
@@ -4612,8 +4646,8 @@ var ku = ol(function(e, t, n, r) {
|
|
|
4612
4646
|
}));
|
|
4613
4647
|
}
|
|
4614
4648
|
};
|
|
4615
|
-
function
|
|
4616
|
-
|
|
4649
|
+
function Mu() {}
|
|
4650
|
+
Mu.prototype = {
|
|
4617
4651
|
startIndex: null,
|
|
4618
4652
|
dragStart: function(e) {
|
|
4619
4653
|
var t = e.oldDraggableIndex;
|
|
@@ -4622,72 +4656,72 @@ ju.prototype = {
|
|
|
4622
4656
|
onSpill: function(e) {
|
|
4623
4657
|
var t = e.dragEl, n = e.putSortable;
|
|
4624
4658
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
4625
|
-
var r =
|
|
4659
|
+
var r = Qc(this.sortable.el, this.startIndex, this.options);
|
|
4626
4660
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
4627
4661
|
},
|
|
4628
|
-
drop:
|
|
4629
|
-
},
|
|
4630
|
-
function
|
|
4631
|
-
|
|
4662
|
+
drop: ju
|
|
4663
|
+
}, jc(Mu, { pluginName: "revertOnSpill" });
|
|
4664
|
+
function Nu() {}
|
|
4665
|
+
Nu.prototype = {
|
|
4632
4666
|
onSpill: function(e) {
|
|
4633
4667
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
4634
4668
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
4635
4669
|
},
|
|
4636
|
-
drop:
|
|
4637
|
-
},
|
|
4638
|
-
function
|
|
4670
|
+
drop: ju
|
|
4671
|
+
}, jc(Nu, { pluginName: "removeOnSpill" }), Q.mount(new Du()), Q.mount(Nu, Mu);
|
|
4672
|
+
function Pu(e) {
|
|
4639
4673
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
4640
4674
|
}
|
|
4641
|
-
function
|
|
4675
|
+
function Fu(e) {
|
|
4642
4676
|
oo() && ei(e);
|
|
4643
4677
|
}
|
|
4644
|
-
function
|
|
4678
|
+
function Iu(e) {
|
|
4645
4679
|
oo() ? Xr(e) : jn(e);
|
|
4646
4680
|
}
|
|
4647
|
-
var
|
|
4648
|
-
function
|
|
4649
|
-
|
|
4681
|
+
var Lu = null, Ru = null;
|
|
4682
|
+
function zu(e = null, t = null) {
|
|
4683
|
+
Lu = e, Ru = t;
|
|
4650
4684
|
}
|
|
4651
|
-
function
|
|
4685
|
+
function Bu() {
|
|
4652
4686
|
return {
|
|
4653
|
-
data:
|
|
4654
|
-
clonedData:
|
|
4687
|
+
data: Lu,
|
|
4688
|
+
clonedData: Ru
|
|
4655
4689
|
};
|
|
4656
4690
|
}
|
|
4657
|
-
var
|
|
4658
|
-
function
|
|
4691
|
+
var Vu = Symbol("cloneElement");
|
|
4692
|
+
function Hu(...e) {
|
|
4659
4693
|
let t = oo()?.proxy, n = null, r = e[0], [, i, a] = e;
|
|
4660
4694
|
Array.isArray(I(i)) || (a = i, i = null);
|
|
4661
|
-
let o = null, { immediate: s = !0, clone: c =
|
|
4695
|
+
let o = null, { immediate: s = !0, clone: c = Pu, forceFallback: l, fallbackOnBody: u, customUpdate: d } = I(a) ?? {};
|
|
4662
4696
|
function f(e) {
|
|
4663
4697
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
4664
4698
|
n = l && !u ? o.slice(0, -1) : o;
|
|
4665
4699
|
let s = I(I(i)?.[r]), d = c(s);
|
|
4666
|
-
|
|
4700
|
+
zu(s, d), a[Vu] = d;
|
|
4667
4701
|
}
|
|
4668
4702
|
function p(e) {
|
|
4669
|
-
let t = e.item[
|
|
4670
|
-
if (!
|
|
4671
|
-
if (
|
|
4703
|
+
let t = e.item[Vu];
|
|
4704
|
+
if (!gc(t)) {
|
|
4705
|
+
if (yc(e.item), /* @__PURE__ */ F(i)) {
|
|
4672
4706
|
let n = [...I(i)];
|
|
4673
|
-
i.value =
|
|
4707
|
+
i.value = hc(n, e.newDraggableIndex, t);
|
|
4674
4708
|
return;
|
|
4675
4709
|
}
|
|
4676
|
-
|
|
4710
|
+
hc(I(i), e.newDraggableIndex, t);
|
|
4677
4711
|
}
|
|
4678
4712
|
}
|
|
4679
4713
|
function m(e) {
|
|
4680
4714
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
4681
|
-
if (
|
|
4682
|
-
|
|
4715
|
+
if (vc(t, n, r), o === "clone") {
|
|
4716
|
+
yc(s);
|
|
4683
4717
|
return;
|
|
4684
4718
|
}
|
|
4685
4719
|
if (/* @__PURE__ */ F(i)) {
|
|
4686
4720
|
let e = [...I(i)];
|
|
4687
|
-
i.value =
|
|
4721
|
+
i.value = mc(e, a);
|
|
4688
4722
|
return;
|
|
4689
4723
|
}
|
|
4690
|
-
|
|
4724
|
+
mc(I(i), a);
|
|
4691
4725
|
}
|
|
4692
4726
|
function h(e) {
|
|
4693
4727
|
if (d) {
|
|
@@ -4695,12 +4729,12 @@ function Vu(...e) {
|
|
|
4695
4729
|
return;
|
|
4696
4730
|
}
|
|
4697
4731
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
4698
|
-
if (
|
|
4732
|
+
if (yc(n), vc(t, n, r), /* @__PURE__ */ F(i)) {
|
|
4699
4733
|
let e = [...I(i)];
|
|
4700
|
-
i.value =
|
|
4734
|
+
i.value = dc(e, a, o);
|
|
4701
4735
|
return;
|
|
4702
4736
|
}
|
|
4703
|
-
|
|
4737
|
+
dc(I(i), a, o);
|
|
4704
4738
|
}
|
|
4705
4739
|
function g(e) {
|
|
4706
4740
|
let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
|
|
@@ -4718,7 +4752,7 @@ function Vu(...e) {
|
|
|
4718
4752
|
n = null;
|
|
4719
4753
|
}
|
|
4720
4754
|
jn(() => {
|
|
4721
|
-
if (
|
|
4755
|
+
if (zu(), o) throw o;
|
|
4722
4756
|
});
|
|
4723
4757
|
}
|
|
4724
4758
|
let _ = {
|
|
@@ -4730,19 +4764,19 @@ function Vu(...e) {
|
|
|
4730
4764
|
};
|
|
4731
4765
|
function v(e) {
|
|
4732
4766
|
let n = I(r);
|
|
4733
|
-
return e ||=
|
|
4767
|
+
return e ||= _c(n) ? bc(n, t?.$el) : n, e && !Cc(e) && (e = e.$el), e || uc("Root element not found"), e;
|
|
4734
4768
|
}
|
|
4735
4769
|
function y() {
|
|
4736
|
-
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r =
|
|
4737
|
-
return
|
|
4738
|
-
|
|
4739
|
-
}),
|
|
4770
|
+
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r = sc(e, ["immediate", "clone"]);
|
|
4771
|
+
return wc(r, (e, t) => {
|
|
4772
|
+
Tc(e) && (r[e] = (e, ...n) => (Ec(e, Bu()), t(e, ...n)));
|
|
4773
|
+
}), Sc(i === null ? {} : _, r);
|
|
4740
4774
|
}
|
|
4741
4775
|
let b = (e) => {
|
|
4742
4776
|
e = v(e), o && x.destroy(), o = new Q(e, y());
|
|
4743
4777
|
};
|
|
4744
4778
|
Qn(() => a, () => {
|
|
4745
|
-
o &&
|
|
4779
|
+
o && wc(y(), (e, t) => {
|
|
4746
4780
|
o?.option(e, t);
|
|
4747
4781
|
});
|
|
4748
4782
|
}, { deep: !0 });
|
|
@@ -4755,15 +4789,15 @@ function Vu(...e) {
|
|
|
4755
4789
|
toArray: () => o?.toArray(),
|
|
4756
4790
|
closest: (...e) => o?.closest(...e)
|
|
4757
4791
|
};
|
|
4758
|
-
return
|
|
4792
|
+
return Iu(() => {
|
|
4759
4793
|
s && b();
|
|
4760
|
-
}),
|
|
4794
|
+
}), Fu(x.destroy), oc({
|
|
4761
4795
|
start: b,
|
|
4762
4796
|
pause: () => x?.option("disabled", !0),
|
|
4763
4797
|
resume: () => x?.option("disabled", !1)
|
|
4764
4798
|
}, x);
|
|
4765
4799
|
}
|
|
4766
|
-
var
|
|
4800
|
+
var Uu = [
|
|
4767
4801
|
"update",
|
|
4768
4802
|
"start",
|
|
4769
4803
|
"add",
|
|
@@ -4776,7 +4810,7 @@ var Hu = [
|
|
|
4776
4810
|
"clone",
|
|
4777
4811
|
"move",
|
|
4778
4812
|
"change"
|
|
4779
|
-
],
|
|
4813
|
+
], Wu = /* @__PURE__ */ jr({
|
|
4780
4814
|
name: "VueDraggable",
|
|
4781
4815
|
model: {
|
|
4782
4816
|
prop: "modelValue",
|
|
@@ -4826,27 +4860,27 @@ var Hu = [
|
|
|
4826
4860
|
"tag",
|
|
4827
4861
|
"target",
|
|
4828
4862
|
"customUpdate",
|
|
4829
|
-
...
|
|
4863
|
+
...Uu.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
4830
4864
|
],
|
|
4831
|
-
emits: ["update:modelValue", ...
|
|
4865
|
+
emits: ["update:modelValue", ...Uu],
|
|
4832
4866
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
4833
|
-
let a =
|
|
4867
|
+
let a = Uu.reduce((e, t) => {
|
|
4834
4868
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
4835
4869
|
return e[r] = (...e) => n(t, ...e), e;
|
|
4836
4870
|
}, {}), o = To(() => {
|
|
4837
|
-
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r =
|
|
4871
|
+
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r = sc(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
4838
4872
|
let r = I(n);
|
|
4839
4873
|
return r !== void 0 && (e[t] = r), e;
|
|
4840
4874
|
}, {});
|
|
4841
|
-
return
|
|
4875
|
+
return oc(oc({}, a), pc(oc(oc({}, i), o)));
|
|
4842
4876
|
}), s = To({
|
|
4843
4877
|
get: () => e.modelValue,
|
|
4844
4878
|
set: (e) => n("update:modelValue", e)
|
|
4845
|
-
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(
|
|
4879
|
+
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(Hu(e.target || c, s, o));
|
|
4846
4880
|
return r(l), () => Eo(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
4847
4881
|
}
|
|
4848
4882
|
});
|
|
4849
4883
|
//#endregion
|
|
4850
|
-
export { Zt as $, Xr as A, Xn as B, Eo as C, to as D, yi as E, fi as F, Ee as G, Un as H, oi as I, De as J, F as K, ci as L, Pa as M, Gn as N, jn as O, di as P, Vt as Q, zi as R, oo as S, Kn as T, pn as U, Hn as V, on as W, Bt as X, Rt as Y, Xt as Z, Xa as _,
|
|
4884
|
+
export { Zt as $, Xr as A, Xn as B, Eo as C, to as D, yi as E, fi as F, Ee as G, Un as H, oi as I, De as J, F as K, ci as L, Pa as M, Gn as N, jn as O, di as P, Vt as Q, zi as R, oo as S, Kn as T, pn as U, Hn as V, on as W, Bt as X, Rt as Y, Xt as Z, Xa as _, Bs as a, vn as at, Br as b, qs as c, Se as ct, pr as d, P as et, To as f, za as g, Za as h, Zs as i, I as it, ei as j, $r as k, Gs as l, Ba as m, Vo as n, tn as nt, zs as o, me as ot, Ga as p, qt as q, Qs as r, en as rt, is as s, le as st, Wu as t, un as tt, ka as u, Ya as v, qn as w, jr as x, z as y, Qn as z };
|
|
4851
4885
|
|
|
4852
|
-
//# sourceMappingURL=draggable-
|
|
4886
|
+
//# sourceMappingURL=draggable-Z4XXmbPC.js.map
|