@templatical/editor 0.24.1 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-X4viKtvs.js → AiChatSidebar-BYMdVldY.js} +15 -15
- package/dist/{AiFeatureMenu-DDAamRaA.js → AiFeatureMenu-BhHhnu9G.js} +7 -7
- package/dist/{BlockIssueBadge-Qxrl7Ujl.js → BlockIssueBadge-De36PJC4.js} +5 -5
- package/dist/{BlockPreviewCanvas-Cf-kxbEr.js → BlockPreviewCanvas-BxSoA1QV.js} +11 -7
- package/dist/{CloudEditor-JIzhj1Xq.js → CloudEditor-BXfuytQj.js} +73 -71
- package/dist/{CollaboratorBar-tC7AACTb.js → CollaboratorBar-D9AfWRTH.js} +4 -4
- package/dist/{ColorPicker--_2PbzFk.js → ColorPicker-VPq4ASC8.js} +6 -6
- package/dist/{CommentsSidebar-Ci2Ov8FG.js → CommentsSidebar-C8BLy3Pr.js} +16 -16
- package/dist/{CountdownBlock-aZIKfBWY.js → CountdownBlock-Bs2Q_bFX.js} +3 -3
- package/dist/{CountdownToolbar-DHp6T0Q_.js → CountdownToolbar-Cic6cdOw.js} +4 -4
- package/dist/{DesignReferenceSidebar-DQsC-3hB.js → DesignReferenceSidebar-k-26nkJI.js} +11 -11
- package/dist/{IssuesPanel-CoOfib44.js → IssuesPanel-NPzwTPYW.js} +8 -8
- package/dist/{LoadingTrack-XK_eeUdq.js → LoadingTrack-DH3OEM3z.js} +1 -1
- package/dist/{MergeTagModeToggle-CiFiSV0C.js → MergeTagModeToggle-DEGyx8tw.js} +6 -6
- package/dist/{MergeTagSuggestion-D0OHRv7L.js → MergeTagSuggestion-DvisJ9im.js} +2 -2
- package/dist/{NumberWithSuffix-CXFbUqsx.js → NumberWithSuffix-CuHCIwSn.js} +2 -2
- package/dist/{ParagraphEditor-Cy-bpEjI.js → ParagraphEditor-DK_IPi9H.js} +57 -34
- package/dist/{RichTextEditorContent-CYJko6id.js → RichTextEditorContent-DznIQcdY.js} +8 -8
- package/dist/{SaveBlockDialog-CNTSaMEa.js → SaveBlockDialog-R9PbMsy-.js} +12 -12
- package/dist/{SavedBlocksBrowserModal-CvxS5-YX.js → SavedBlocksBrowserModal-ttPAklPE.js} +11 -11
- package/dist/{SavedBlocksPanels-CNdUxS89.js → SavedBlocksPanels-BCwQgKLF.js} +2 -2
- package/dist/{SavedBlocksPickBar-BvXKhblL.js → SavedBlocksPickBar-DD5Ddv9t.js} +4 -4
- package/dist/{SnapshotHistory-BqPSIV9L.js → SnapshotHistory-BXSTGgBh.js} +10 -10
- package/dist/{TemplateScoringPanel-CMEuz9yF.js → TemplateScoringPanel-Ue6Dfnjb.js} +16 -16
- package/dist/{TestEmailModal-BDhnnCBx.js → TestEmailModal-KPFc5oSv.js} +89 -58
- package/dist/{TestEmailPanel--RwnwLn2.js → TestEmailPanel-b8GHTrnE.js} +2 -2
- package/dist/{TitleEditor-F7E_pU9H.js → TitleEditor-8ln7UBr_.js} +11 -11
- package/dist/{TplModal-BIiS24Of.js → TplModal-D_FA3Wm3.js} +5 -5
- package/dist/{blockTypeIcons-C6PnLMp7.js → blockTypeIcons-BoZeK6l7.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-CO4nq6TX.js → ca-D1zgI9fQ.js} +6 -0
- package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js → AiChatSidebar-D6jGwb4y.js} +17 -17
- package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js.map → AiChatSidebar-D6jGwb4y.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js → AiFeatureMenu-BtEcjxLL.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js.map → AiFeatureMenu-BtEcjxLL.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js → BlockIssueBadge-dnqZk6pl.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js.map → BlockIssueBadge-dnqZk6pl.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-C-ut8GkJ.js → BlockPreviewCanvas-D8pfTFWi.js} +12 -8
- package/dist/cdn/chunks/BlockPreviewCanvas-D8pfTFWi.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-D87qsqbZ.js → CloudEditor-BJ4-pPAl.js} +75 -73
- package/dist/cdn/chunks/CloudEditor-BJ4-pPAl.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js → CollaboratorBar-SeUOuLeJ.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js.map → CollaboratorBar-SeUOuLeJ.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js → ColorPicker-yxvrro60.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js.map → ColorPicker-yxvrro60.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js → CommentsSidebar-FPbg-FuU.js} +21 -21
- package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js.map → CommentsSidebar-FPbg-FuU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js → CountdownBlock-D2Oth7YY.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js.map → CountdownBlock-D2Oth7YY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js → CountdownToolbar-BNgTBQGB.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js.map → CountdownToolbar-BNgTBQGB.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js → DesignReferenceSidebar-ChB_HBK1.js} +11 -11
- package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js.map → DesignReferenceSidebar-ChB_HBK1.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js → IssuesPanel-CjiZ8cLW.js} +9 -9
- package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js.map → IssuesPanel-CjiZ8cLW.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js → LoadingTrack-CiNg9s16.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js.map → LoadingTrack-CiNg9s16.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js → MergeTagModeToggle-CiYbOKzd.js} +16 -16
- package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js.map → MergeTagModeToggle-CiYbOKzd.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js → MergeTagSuggestion-CvZLI6Np.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js.map → MergeTagSuggestion-CvZLI6Np.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js → NumberWithSuffix-vVwCWrd_.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js.map → NumberWithSuffix-vVwCWrd_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js → ParagraphEditor-o4hs9mgy.js} +142 -132
- package/dist/cdn/chunks/ParagraphEditor-o4hs9mgy.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js → RichTextEditorContent-BAriGldd.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js.map → RichTextEditorContent-BAriGldd.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js → SaveBlockDialog-D3-oILb5.js} +19 -19
- package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js.map → SaveBlockDialog-D3-oILb5.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js → SavedBlocksBrowserModal-jMnNd4wn.js} +13 -13
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js.map → SavedBlocksBrowserModal-jMnNd4wn.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js → SavedBlocksPanels-BDd8FH6l.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js.map → SavedBlocksPanels-BDd8FH6l.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js → SavedBlocksPickBar-BNkLe8In.js} +7 -7
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js.map → SavedBlocksPickBar-BNkLe8In.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js → SnapshotHistory-CYVi7fvQ.js} +12 -12
- package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js.map → SnapshotHistory-CYVi7fvQ.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js → TemplateScoringPanel-D0KrxVnr.js} +71 -71
- package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js.map → TemplateScoringPanel-D0KrxVnr.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-Ce8-vzGh.js → TestEmailModal-_RbTD787.js} +89 -58
- package/dist/cdn/chunks/TestEmailModal-_RbTD787.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js → TestEmailPanel-BAnKtbSu.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js.map → TestEmailPanel-BAnKtbSu.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js → TitleEditor-LiUvXGPw.js} +18 -18
- package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js.map → TitleEditor-LiUvXGPw.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-D6bFON2K.js → TplModal-C1iguuZz.js} +5 -5
- package/dist/cdn/chunks/{TplModal-D6bFON2K.js.map → TplModal-C1iguuZz.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-CrPzyP_k.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-B8s3_ahs.js.map → blockTypeIcons-CrPzyP_k.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CO4nq6TX.js → ca-D1zgI9fQ.js} +7 -1
- package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CRlDc0Ev.js → cloud-CxNsW3hp.js} +3 -3
- package/dist/cdn/chunks/{cloud-CRlDc0Ev.js.map → cloud-CxNsW3hp.js.map} +1 -1
- package/dist/{de-CUeaFJph.js → cdn/chunks/de-DHra3lvx.js} +8 -0
- package/dist/cdn/chunks/de-DHra3lvx.js.map +1 -0
- package/dist/cdn/chunks/{dist-B8AX9np4.js → dist-BLF-S9_A.js} +4 -4
- package/dist/cdn/chunks/{dist-B8AX9np4.js.map → dist-BLF-S9_A.js.map} +1 -1
- package/dist/cdn/chunks/{dist-lZgXNk4G.js → dist-Dp46rwVY.js} +3 -3
- package/dist/cdn/chunks/{dist-lZgXNk4G.js.map → dist-Dp46rwVY.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-JcMTNF3U.js → draggable-BRF_Q_jB.js} +445 -433
- package/dist/cdn/chunks/draggable-BRF_Q_jB.js.map +1 -0
- package/dist/{en-zCYIPAL5.js → cdn/chunks/en-DlqX2YWZ.js} +8 -0
- package/dist/cdn/chunks/en-DlqX2YWZ.js.map +1 -0
- package/dist/{es-BSiH7YkP.js → cdn/chunks/es-Cuss2snv.js} +8 -0
- package/dist/cdn/chunks/es-Cuss2snv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CKMD_er_.js → extensions-yNQlgLNE.js} +22 -22
- package/dist/cdn/chunks/{extensions-CKMD_er_.js.map → extensions-yNQlgLNE.js.map} +1 -1
- package/dist/{fr-DTVJ3det.js → cdn/chunks/fr-Cm85vB2g.js} +8 -0
- package/dist/cdn/chunks/fr-Cm85vB2g.js.map +1 -0
- package/dist/cdn/chunks/{icons-Cp4ZIJw-.js → icons-DN008liP.js} +45 -32
- package/dist/cdn/chunks/icons-DN008liP.js.map +1 -0
- package/dist/cdn/chunks/keys-CZOBuCQd.js +12 -0
- package/dist/cdn/chunks/keys-CZOBuCQd.js.map +1 -0
- package/dist/{nl-BqSquFS3.js → cdn/chunks/nl-dmiIX7oT.js} +8 -0
- package/dist/cdn/chunks/nl-dmiIX7oT.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-CMljK37h.js → pt-BR-CaIG-7EM.js} +7 -1
- package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +1 -0
- package/dist/cdn/chunks/{src-CumZZNXZ.js → src-B2LpXMIw.js} +373 -373
- package/dist/cdn/chunks/{src-CumZZNXZ.js.map → src-B2LpXMIw.js.map} +1 -1
- package/dist/cdn/chunks/{src-D5mfLR4V.js → src-CZjSXPYq.js} +8 -3
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +1 -0
- package/dist/cdn/chunks/{src-B4UhYbI8.js → src-D_3bXt7-.js} +353 -313
- package/dist/cdn/chunks/src-D_3bXt7-.js.map +1 -0
- package/dist/cdn/chunks/{src-B3HKHglu.js → src-uc_Mb_yH.js} +20 -20
- package/dist/cdn/chunks/{src-B3HKHglu.js.map → src-uc_Mb_yH.js.map} +1 -1
- package/dist/cdn/chunks/{styles--m9OCb_Z.js → styles-BzP13r-I.js} +745 -726
- package/dist/cdn/chunks/styles-BzP13r-I.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-rsib432n.js → tiptap-CgwK_fKJ.js} +2 -2
- package/dist/cdn/chunks/{tiptap-rsib432n.js.map → tiptap-CgwK_fKJ.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js → useAliveFlag-Ctyt3GgH.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js.map → useAliveFlag-Ctyt3GgH.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js → useCloudI18n-CML0BxqX.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js.map → useCloudI18n-CML0BxqX.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-ZqF7P99K.js → useEditorCore-CTYH6u4r.js} +471 -400
- package/dist/cdn/chunks/useEditorCore-CTYH6u4r.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-vD57BfVR.js → useI18n-aRMtgYRj.js} +3 -3
- package/dist/cdn/chunks/{useI18n-vD57BfVR.js.map → useI18n-aRMtgYRj.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js → useMergeTag-8a8BnIZp.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js.map → useMergeTag-8a8BnIZp.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js → usePopoverPosition-Dm1jv3y5.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js.map → usePopoverPosition-Dm1jv3y5.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +23 -21
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CIhIDh4h.js → check-Bqimqf7l.js} +1 -1
- package/dist/{chevron-down-CZ0m6G3s.js → chevron-down-CYOoeGBd.js} +1 -1
- package/dist/{chevron-up-BH_tJLeb.js → chevron-up-DYknsfm0.js} +1 -1
- package/dist/{circle-alert-DkEXnGPV.js → circle-alert-6q_jgtv_.js} +1 -1
- package/dist/{clock-BDIJZUET.js → clock-CnadSSTD.js} +1 -1
- package/dist/{cloud-R8ci6yR1.js → cloud-BJLg_SlM.js} +2 -2
- package/dist/{createLucideIcon-AEltGIse.js → createLucideIcon-D7GKhya2.js} +3 -3
- package/dist/{cdn/chunks/de-CUeaFJph.js → de-DHra3lvx.js} +6 -2
- package/dist/{dist-CIqhVQ1O.js → dist-C31bMR4x.js} +3 -3
- package/dist/{dist-Ba5Q-UX1.js → dist-CQ0fVBQ3.js} +7 -2
- package/dist/{dist-DT1XnEnj.js → dist-DDfXShPv.js} +2 -2
- package/dist/{cdn/chunks/en-zCYIPAL5.js → en-DlqX2YWZ.js} +6 -2
- package/dist/{cdn/chunks/es-BSiH7YkP.js → es-Cuss2snv.js} +6 -2
- package/dist/{extensions-CGxj6-2o.js → extensions-CbiWtzS6.js} +7 -7
- package/dist/{cdn/chunks/fr-DTVJ3det.js → fr-Cm85vB2g.js} +6 -2
- package/dist/{image-up-8ktdYdaZ.js → image-up-BfukboIn.js} +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/{info-CvrCgTLH.js → info-DSYRzSZo.js} +1 -1
- package/dist/keys-BI6VSUh4.js +10 -0
- package/dist/{list-checks-yzGT93ZL.js → list-checks-URZOyLhr.js} +1 -1
- package/dist/{loader-circle-B6euendB.js → loader-circle-GADaYcyQ.js} +1 -1
- package/dist/{message-circle-BMldLVcA.js → message-circle-B62fdo0b.js} +1 -1
- package/dist/{cdn/chunks/nl-BqSquFS3.js → nl-dmiIX7oT.js} +6 -2
- package/dist/{pencil-CkKkSd6N.js → pencil-BGwkOpD_.js} +1 -1
- package/dist/{pt-BR-CMljK37h.js → pt-BR-CaIG-7EM.js} +6 -0
- package/dist/{refresh-cw-fBPgB97G.js → refresh-cw-Z4wXfduO.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CBbDt7sw.js → runtime-dom.esm-bundler-BkOsapVg.js} +163 -162
- package/dist/{scan-line-CRoEOUiK.js → scan-line-D8Oh5xos.js} +1 -1
- package/dist/{send-B9Tt2qBi.js → send-BYp4k38T.js} +1 -1
- package/dist/{shield-check-QfZkYeIo.js → shield-check-Cm0RePnW.js} +1 -1
- package/dist/{sparkles-8UeMmZb8.js → sparkles-BHEE-vRD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-C9AMvkJk.js → styles-B0MEBpOK.js} +888 -869
- package/dist/templatical-editor.js +96 -94
- package/dist/{text-align-start-Dn8uIheW.js → text-align-start-CHrg3vK8.js} +1 -1
- package/dist/{trash-2-DDyvqj0E.js → trash-2-BoNT8wbq.js} +1 -1
- package/dist/{triangle-alert-B3PydLzl.js → triangle-alert-CiN0ssB3.js} +1 -1
- package/dist/{upload-hE8ItfyG.js → upload-WvZGBySw.js} +1 -1
- package/dist/{useAliveFlag-AfoTE_AY.js → useAliveFlag-eT67QCMf.js} +1 -1
- package/dist/{useCloudI18n-BC_QV2Z7.js → useCloudI18n-KgIWl-IE.js} +2 -2
- package/dist/{useEditorCore-Dojb-P2f.js → useEditorCore-BMbxdUbY.js} +912 -841
- package/dist/{useI18n-DzOcl2wl.js → useI18n-BkHfCWC6.js} +2 -2
- package/dist/{useMergeTag-BFxXCv3p.js → useMergeTag-CZ4XYAxu.js} +4 -4
- package/dist/{usePopoverPosition-Dtr1Mp1x.js → usePopoverPosition-D93u-EZm.js} +4 -4
- package/dist/{vue.runtime.esm-bundler-Xpz-L9Fn.js → vue.runtime.esm-bundler-0R1UhmZB.js} +179 -157
- package/dist/{x-C4lETLDx.js → x-B4WnJVRx.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-D87qsqbZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DKz4vTWB.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-B8s3_ahs.js +0 -21
- package/dist/cdn/chunks/ca-CO4nq6TX.js.map +0 -1
- package/dist/cdn/chunks/de-CUeaFJph.js.map +0 -1
- package/dist/cdn/chunks/draggable-JcMTNF3U.js.map +0 -1
- package/dist/cdn/chunks/en-zCYIPAL5.js.map +0 -1
- package/dist/cdn/chunks/es-BSiH7YkP.js.map +0 -1
- package/dist/cdn/chunks/fr-DTVJ3det.js.map +0 -1
- package/dist/cdn/chunks/icons-Cp4ZIJw-.js.map +0 -1
- package/dist/cdn/chunks/keys-CswSK7eb.js +0 -12
- package/dist/cdn/chunks/keys-CswSK7eb.js.map +0 -1
- package/dist/cdn/chunks/nl-BqSquFS3.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CMljK37h.js.map +0 -1
- package/dist/cdn/chunks/src-B4UhYbI8.js.map +0 -1
- package/dist/cdn/chunks/src-D5mfLR4V.js.map +0 -1
- package/dist/cdn/chunks/styles--m9OCb_Z.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-ZqF7P99K.js.map +0 -1
- package/dist/keys-uWpGv4Pq.js +0 -10
|
@@ -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);
|
|
@@ -954,7 +954,7 @@ function yn(e, t = Infinity, n) {
|
|
|
954
954
|
return e;
|
|
955
955
|
}
|
|
956
956
|
//#endregion
|
|
957
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
957
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.41/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
958
958
|
function bn(e, t, n, r) {
|
|
959
959
|
try {
|
|
960
960
|
return r ? e(...r) : e();
|
|
@@ -1024,7 +1024,9 @@ function Pn() {
|
|
|
1024
1024
|
An ||= kn.then(zn);
|
|
1025
1025
|
}
|
|
1026
1026
|
function Fn(e) {
|
|
1027
|
-
d(e)
|
|
1027
|
+
if (!d(e)) Dn && e.id === -1 ? Dn.splice(On + 1, 0, e) : e.flags & 1 || (En.push(e), e.flags |= 1);
|
|
1028
|
+
else for (let t = 0; t < e.length; t++) En.push(e[t]);
|
|
1029
|
+
Pn();
|
|
1028
1030
|
}
|
|
1029
1031
|
function In(e, t, n = Tn + 1) {
|
|
1030
1032
|
for (; n < wn.length; n++) {
|
|
@@ -1039,7 +1041,7 @@ function Ln(e) {
|
|
|
1039
1041
|
if (En.length) {
|
|
1040
1042
|
let e = [...new Set(En)].sort((e, t) => Rn(e) - Rn(t));
|
|
1041
1043
|
if (En.length = 0, Dn) {
|
|
1042
|
-
Dn.push(
|
|
1044
|
+
for (let t = 0; t < e.length; t++) Dn.push(e[t]);
|
|
1043
1045
|
return;
|
|
1044
1046
|
}
|
|
1045
1047
|
for (Dn = e, On = 0; On < Dn.length; On++) {
|
|
@@ -1424,7 +1426,11 @@ function Or(e) {
|
|
|
1424
1426
|
}
|
|
1425
1427
|
}
|
|
1426
1428
|
function kr(e, t) {
|
|
1427
|
-
e.shapeFlag & 6 && e.component
|
|
1429
|
+
if (e.shapeFlag & 6 && e.component) {
|
|
1430
|
+
e.transition = t;
|
|
1431
|
+
let n = e.component.subTree;
|
|
1432
|
+
kr(ir(n.type) && Or(n) || n, t);
|
|
1433
|
+
} else e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1428
1434
|
}
|
|
1429
1435
|
function Ar(e, t = !1, n) {
|
|
1430
1436
|
let r = [], i = 0;
|
|
@@ -1666,8 +1672,8 @@ function di(e, t, n, r) {
|
|
|
1666
1672
|
else i = [];
|
|
1667
1673
|
return n && (n[r] = i), i;
|
|
1668
1674
|
}
|
|
1669
|
-
function fi(e, t, n
|
|
1670
|
-
if (L.ce || L.parent && zr(L.parent) && L.parent.ce) {
|
|
1675
|
+
function fi(e, t, n, r, i, a) {
|
|
1676
|
+
if (n ??= {}, L.ce || L.parent && zr(L.parent) && L.parent.ce) {
|
|
1671
1677
|
let e = a != null && n.key == null ? s({}, n, { key: a }) : n, i = Object.keys(e).length > 0;
|
|
1672
1678
|
return t !== "default" && (e.name = t), Pa(), Ba(ka, null, [z("slot", e, r && r())], i ? -2 : 64);
|
|
1673
1679
|
}
|
|
@@ -2055,7 +2061,7 @@ function Gi(e) {
|
|
|
2055
2061
|
let e = Object.keys(y), { shapeFlag: t } = b;
|
|
2056
2062
|
e.length && t & 7 && (a && e.some(o) && (y = qi(y, a)), b = Ja(b, y, !1, !0));
|
|
2057
2063
|
}
|
|
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;
|
|
2064
|
+
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
2065
|
}
|
|
2060
2066
|
var Ki = (e) => {
|
|
2061
2067
|
let t;
|
|
@@ -2931,7 +2937,12 @@ function ho(e, t) {
|
|
|
2931
2937
|
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
2938
|
if (Ge(), i(), (o || e.sp) && !zr(e) && Mr(e), o) {
|
|
2933
2939
|
if (a.then(uo, uo), t) return a.then((n) => {
|
|
2934
|
-
|
|
2940
|
+
co(!0);
|
|
2941
|
+
try {
|
|
2942
|
+
go(e, n, t);
|
|
2943
|
+
} finally {
|
|
2944
|
+
co(!1);
|
|
2945
|
+
}
|
|
2935
2946
|
}).catch((t) => {
|
|
2936
2947
|
Sn(t, e, 0);
|
|
2937
2948
|
});
|
|
@@ -3008,7 +3019,7 @@ function Eo(e, t, n) {
|
|
|
3008
3019
|
La(1);
|
|
3009
3020
|
}
|
|
3010
3021
|
}
|
|
3011
|
-
var Do = "3.5.
|
|
3022
|
+
var Do = "3.5.41", Oo = void 0, ko = typeof window < "u" && window.trustedTypes;
|
|
3012
3023
|
if (ko) try {
|
|
3013
3024
|
Oo = /* @__PURE__ */ ko.createPolicy("vue", { createHTML: (e) => e });
|
|
3014
3025
|
} catch {}
|
|
@@ -3348,22 +3359,23 @@ function Fs(e) {
|
|
|
3348
3359
|
let t = e.target;
|
|
3349
3360
|
t.composing && (t.composing = !1, t.dispatchEvent(new Event("input")));
|
|
3350
3361
|
}
|
|
3351
|
-
var Is = /* @__PURE__ */ Symbol("_assign");
|
|
3352
|
-
function
|
|
3362
|
+
var Is = /* @__PURE__ */ Symbol("_assign"), Ls = /* @__PURE__ */ Symbol("_initialValue");
|
|
3363
|
+
function Rs(e, t, n) {
|
|
3353
3364
|
return t && (e = e.trim()), n && (e = ae(e)), e;
|
|
3354
3365
|
}
|
|
3355
|
-
var
|
|
3366
|
+
var zs = {
|
|
3356
3367
|
created(e, { modifiers: { lazy: t, trim: n, number: r } }, i) {
|
|
3357
|
-
e[Is] = Ns(i);
|
|
3368
|
+
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
3369
|
let a = r || i.props && i.props.type === "number";
|
|
3359
3370
|
vs(e, t ? "change" : "input", (t) => {
|
|
3360
|
-
t.target.composing || e[Is](
|
|
3371
|
+
t.target.composing || e[Is](Rs(e.value, n, a));
|
|
3361
3372
|
}), (n || a) && vs(e, "change", () => {
|
|
3362
|
-
e.value =
|
|
3373
|
+
e.value = Rs(e.value, n, a);
|
|
3363
3374
|
}), t || (vs(e, "compositionstart", Ps), vs(e, "compositionend", Fs), vs(e, "change", Fs));
|
|
3364
3375
|
},
|
|
3365
|
-
mounted(e, { value: t }) {
|
|
3366
|
-
|
|
3376
|
+
mounted(e, { value: t, modifiers: { trim: n, number: r } }) {
|
|
3377
|
+
let i = t ?? "", a = e[Ls];
|
|
3378
|
+
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
3379
|
},
|
|
3368
3380
|
beforeUpdate(e, { value: t, oldValue: n, modifiers: { lazy: r, trim: i, number: a } }, o) {
|
|
3369
3381
|
if (e[Is] = Ns(o), e.composing) return;
|
|
@@ -3372,36 +3384,36 @@ var Rs = {
|
|
|
3372
3384
|
let l = e.getRootNode();
|
|
3373
3385
|
(l instanceof Document || l instanceof ShadowRoot) && l.activeElement === e && e.type !== "range" && (r && t === n || i && e.value.trim() === c) || (e.value = c);
|
|
3374
3386
|
}
|
|
3375
|
-
},
|
|
3387
|
+
}, Bs = {
|
|
3376
3388
|
deep: !0,
|
|
3377
3389
|
created(e, { value: t, modifiers: { number: n } }, r) {
|
|
3378
3390
|
e._modelValue = t, vs(e, "change", () => {
|
|
3379
|
-
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(
|
|
3391
|
+
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(Hs(e)) : Hs(e));
|
|
3380
3392
|
e[Is](e.multiple ? p(e._modelValue) ? new Set(t) : t : t[0]), e._assigning = !0, jn(() => {
|
|
3381
3393
|
e._assigning = !1;
|
|
3382
3394
|
});
|
|
3383
3395
|
}), e[Is] = Ns(r);
|
|
3384
3396
|
},
|
|
3385
3397
|
mounted(e, { value: t }) {
|
|
3386
|
-
|
|
3398
|
+
Vs(e, t);
|
|
3387
3399
|
},
|
|
3388
3400
|
beforeUpdate(e, { value: t }, n) {
|
|
3389
3401
|
e._modelValue = t, e[Is] = Ns(n);
|
|
3390
3402
|
},
|
|
3391
3403
|
updated(e, { value: t }) {
|
|
3392
|
-
e._assigning ||
|
|
3404
|
+
e._assigning || Vs(e, t);
|
|
3393
3405
|
}
|
|
3394
3406
|
};
|
|
3395
|
-
function
|
|
3407
|
+
function Vs(e, t) {
|
|
3396
3408
|
let n = e.multiple, r = d(t);
|
|
3397
3409
|
if (!(n && !r && !p(t))) {
|
|
3398
3410
|
for (let i = 0, a = e.options.length; i < a; i++) {
|
|
3399
|
-
let a = e.options[i], o =
|
|
3411
|
+
let a = e.options[i], o = Hs(a);
|
|
3400
3412
|
if (n) if (r) {
|
|
3401
3413
|
let e = typeof o;
|
|
3402
3414
|
a.selected = e === "string" || e === "number" ? t.some((e) => String(e) === String(o)) : be(t, o) > -1;
|
|
3403
3415
|
} else a.selected = t.has(o);
|
|
3404
|
-
else if (ye(
|
|
3416
|
+
else if (ye(Hs(a), t)) {
|
|
3405
3417
|
e.selectedIndex !== i && (e.selectedIndex = i);
|
|
3406
3418
|
return;
|
|
3407
3419
|
}
|
|
@@ -3409,15 +3421,15 @@ function Bs(e, t) {
|
|
|
3409
3421
|
!n && e.selectedIndex !== -1 && (e.selectedIndex = -1);
|
|
3410
3422
|
}
|
|
3411
3423
|
}
|
|
3412
|
-
function
|
|
3424
|
+
function Hs(e) {
|
|
3413
3425
|
return "_value" in e ? e._value : e.value;
|
|
3414
3426
|
}
|
|
3415
|
-
var
|
|
3427
|
+
var Us = [
|
|
3416
3428
|
"ctrl",
|
|
3417
3429
|
"shift",
|
|
3418
3430
|
"alt",
|
|
3419
3431
|
"meta"
|
|
3420
|
-
],
|
|
3432
|
+
], Ws = {
|
|
3421
3433
|
stop: (e) => e.stopPropagation(),
|
|
3422
3434
|
prevent: (e) => e.preventDefault(),
|
|
3423
3435
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -3428,18 +3440,18 @@ var Hs = [
|
|
|
3428
3440
|
left: (e) => "button" in e && e.button !== 0,
|
|
3429
3441
|
middle: (e) => "button" in e && e.button !== 1,
|
|
3430
3442
|
right: (e) => "button" in e && e.button !== 2,
|
|
3431
|
-
exact: (e, t) =>
|
|
3432
|
-
},
|
|
3443
|
+
exact: (e, t) => Us.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
3444
|
+
}, Gs = (e, t) => {
|
|
3433
3445
|
if (!e) return e;
|
|
3434
3446
|
let n = e._withMods ||= {}, r = t.join(".");
|
|
3435
3447
|
return n[r] || (n[r] = ((n, ...r) => {
|
|
3436
3448
|
for (let e = 0; e < t.length; e++) {
|
|
3437
|
-
let r =
|
|
3449
|
+
let r = Ws[t[e]];
|
|
3438
3450
|
if (r && r(n, t)) return;
|
|
3439
3451
|
}
|
|
3440
3452
|
return e(n, ...r);
|
|
3441
3453
|
}));
|
|
3442
|
-
},
|
|
3454
|
+
}, Ks = {
|
|
3443
3455
|
esc: "escape",
|
|
3444
3456
|
space: " ",
|
|
3445
3457
|
up: "arrow-up",
|
|
@@ -3447,115 +3459,115 @@ var Hs = [
|
|
|
3447
3459
|
right: "arrow-right",
|
|
3448
3460
|
down: "arrow-down",
|
|
3449
3461
|
delete: "backspace"
|
|
3450
|
-
},
|
|
3462
|
+
}, qs = (e, t) => {
|
|
3451
3463
|
let n = e._withKeys ||= {}, r = t.join(".");
|
|
3452
3464
|
return n[r] || (n[r] = ((n) => {
|
|
3453
3465
|
if (!("key" in n)) return;
|
|
3454
3466
|
let r = O(n.key);
|
|
3455
|
-
if (t.some((e) => e === r ||
|
|
3467
|
+
if (t.some((e) => e === r || Ks[e] === r)) return e(n);
|
|
3456
3468
|
}));
|
|
3457
|
-
},
|
|
3458
|
-
function
|
|
3459
|
-
return
|
|
3460
|
-
}
|
|
3461
|
-
var
|
|
3462
|
-
|
|
3463
|
-
}),
|
|
3464
|
-
let t =
|
|
3469
|
+
}, Js = /* @__PURE__ */ s({ patchProp: As }, Fo), Ys;
|
|
3470
|
+
function Xs() {
|
|
3471
|
+
return Ys ||= _a(Js);
|
|
3472
|
+
}
|
|
3473
|
+
var Zs = ((...e) => {
|
|
3474
|
+
Xs().render(...e);
|
|
3475
|
+
}), Qs = ((...e) => {
|
|
3476
|
+
let t = Xs().createApp(...e), { mount: n } = t;
|
|
3465
3477
|
return t.mount = (e) => {
|
|
3466
|
-
let r =
|
|
3478
|
+
let r = ec(e);
|
|
3467
3479
|
if (!r) return;
|
|
3468
3480
|
let i = t._component;
|
|
3469
3481
|
!h(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
3470
|
-
let a = n(r, !1,
|
|
3482
|
+
let a = n(r, !1, $s(r));
|
|
3471
3483
|
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), a;
|
|
3472
3484
|
}, t;
|
|
3473
3485
|
});
|
|
3474
|
-
function
|
|
3486
|
+
function $s(e) {
|
|
3475
3487
|
if (e instanceof SVGElement) return "svg";
|
|
3476
3488
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
|
|
3477
3489
|
}
|
|
3478
|
-
function
|
|
3490
|
+
function ec(e) {
|
|
3479
3491
|
return g(e) ? document.querySelector(e) : e;
|
|
3480
3492
|
}
|
|
3481
3493
|
//#endregion
|
|
3482
3494
|
//#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
|
|
3495
|
+
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
3496
|
enumerable: !0,
|
|
3485
3497
|
configurable: !0,
|
|
3486
3498
|
writable: !0,
|
|
3487
3499
|
value: n
|
|
3488
|
-
}) : e[t] = n,
|
|
3489
|
-
for (var n in t ||= {})
|
|
3490
|
-
if (
|
|
3500
|
+
}) : e[t] = n, oc = (e, t) => {
|
|
3501
|
+
for (var n in t ||= {}) rc.call(t, n) && ac(e, n, t[n]);
|
|
3502
|
+
if (nc) for (var n of nc(t)) ic.call(t, n) && ac(e, n, t[n]);
|
|
3491
3503
|
return e;
|
|
3492
|
-
},
|
|
3504
|
+
}, sc = (e, t) => {
|
|
3493
3505
|
var n = {};
|
|
3494
|
-
for (var r in e)
|
|
3495
|
-
if (e != null &&
|
|
3506
|
+
for (var r in e) rc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3507
|
+
if (e != null && nc) for (var r of nc(e)) t.indexOf(r) < 0 && ic.call(e, r) && (n[r] = e[r]);
|
|
3496
3508
|
return n;
|
|
3497
|
-
},
|
|
3498
|
-
function cc(e) {
|
|
3499
|
-
console.warn(sc + e);
|
|
3500
|
-
}
|
|
3509
|
+
}, cc = "[vue-draggable-plus]: ";
|
|
3501
3510
|
function lc(e) {
|
|
3502
|
-
console.
|
|
3511
|
+
console.warn(cc + e);
|
|
3512
|
+
}
|
|
3513
|
+
function uc(e) {
|
|
3514
|
+
console.error(cc + e);
|
|
3503
3515
|
}
|
|
3504
|
-
function
|
|
3516
|
+
function dc(e, t, n) {
|
|
3505
3517
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
3506
3518
|
}
|
|
3507
|
-
function
|
|
3519
|
+
function fc(e) {
|
|
3508
3520
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
3509
3521
|
}
|
|
3510
|
-
function
|
|
3511
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
3522
|
+
function pc(e) {
|
|
3523
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[fc(n)] = e[n]), t), {});
|
|
3512
3524
|
}
|
|
3513
|
-
function
|
|
3525
|
+
function mc(e, t) {
|
|
3514
3526
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
3515
3527
|
}
|
|
3516
|
-
function
|
|
3528
|
+
function hc(e, t, n) {
|
|
3517
3529
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
3518
3530
|
}
|
|
3519
|
-
function
|
|
3531
|
+
function gc(e) {
|
|
3520
3532
|
return e === void 0;
|
|
3521
3533
|
}
|
|
3522
|
-
function
|
|
3534
|
+
function _c(e) {
|
|
3523
3535
|
return typeof e == "string";
|
|
3524
3536
|
}
|
|
3525
|
-
function
|
|
3537
|
+
function vc(e, t, n) {
|
|
3526
3538
|
e.insertBefore(t, e.children[n]);
|
|
3527
3539
|
}
|
|
3528
|
-
function
|
|
3540
|
+
function yc(e) {
|
|
3529
3541
|
e.parentNode && e.parentNode.removeChild(e);
|
|
3530
3542
|
}
|
|
3531
|
-
function
|
|
3543
|
+
function bc(e, t = document) {
|
|
3532
3544
|
let n = null;
|
|
3533
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
3545
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || lc(`Element not found: ${e}`), n;
|
|
3534
3546
|
}
|
|
3535
|
-
function
|
|
3547
|
+
function xc(e, t, n = null) {
|
|
3536
3548
|
return function(...r) {
|
|
3537
3549
|
return e.apply(n, r), t.apply(n, r);
|
|
3538
3550
|
};
|
|
3539
3551
|
}
|
|
3540
|
-
function
|
|
3541
|
-
let n =
|
|
3552
|
+
function Sc(e, t) {
|
|
3553
|
+
let n = oc({}, e);
|
|
3542
3554
|
return Object.keys(t).forEach((r) => {
|
|
3543
|
-
n[r] ? n[r] =
|
|
3555
|
+
n[r] ? n[r] = xc(e[r], t[r]) : n[r] = t[r];
|
|
3544
3556
|
}), n;
|
|
3545
3557
|
}
|
|
3546
|
-
function
|
|
3558
|
+
function Cc(e) {
|
|
3547
3559
|
return e instanceof HTMLElement;
|
|
3548
3560
|
}
|
|
3549
|
-
function
|
|
3561
|
+
function wc(e, t) {
|
|
3550
3562
|
Object.keys(e).forEach((n) => {
|
|
3551
3563
|
t(n, e[n]);
|
|
3552
3564
|
});
|
|
3553
3565
|
}
|
|
3554
|
-
function
|
|
3566
|
+
function Tc(e) {
|
|
3555
3567
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
3556
3568
|
}
|
|
3557
|
-
var
|
|
3558
|
-
function
|
|
3569
|
+
var Ec = Object.assign;
|
|
3570
|
+
function Dc(e, t) {
|
|
3559
3571
|
var n = Object.keys(e);
|
|
3560
3572
|
if (Object.getOwnPropertySymbols) {
|
|
3561
3573
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -3565,26 +3577,26 @@ function Ec(e, t) {
|
|
|
3565
3577
|
}
|
|
3566
3578
|
return n;
|
|
3567
3579
|
}
|
|
3568
|
-
function
|
|
3580
|
+
function Oc(e) {
|
|
3569
3581
|
for (var t = 1; t < arguments.length; t++) {
|
|
3570
3582
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
3571
|
-
t % 2 ?
|
|
3572
|
-
|
|
3573
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3583
|
+
t % 2 ? Dc(Object(n), !0).forEach(function(t) {
|
|
3584
|
+
Ac(e, t, n[t]);
|
|
3585
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Dc(Object(n)).forEach(function(t) {
|
|
3574
3586
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
3575
3587
|
});
|
|
3576
3588
|
}
|
|
3577
3589
|
return e;
|
|
3578
3590
|
}
|
|
3579
|
-
function
|
|
3591
|
+
function kc(e) {
|
|
3580
3592
|
"@babel/helpers - typeof";
|
|
3581
|
-
return
|
|
3593
|
+
return kc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3582
3594
|
return typeof e;
|
|
3583
3595
|
} : function(e) {
|
|
3584
3596
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3585
|
-
},
|
|
3597
|
+
}, kc(e);
|
|
3586
3598
|
}
|
|
3587
|
-
function
|
|
3599
|
+
function Ac(e, t, n) {
|
|
3588
3600
|
return t in e ? Object.defineProperty(e, t, {
|
|
3589
3601
|
value: n,
|
|
3590
3602
|
enumerable: !0,
|
|
@@ -3592,45 +3604,45 @@ function kc(e, t, n) {
|
|
|
3592
3604
|
writable: !0
|
|
3593
3605
|
}) : e[t] = n, e;
|
|
3594
3606
|
}
|
|
3595
|
-
function
|
|
3596
|
-
return
|
|
3607
|
+
function jc() {
|
|
3608
|
+
return jc = Object.assign || function(e) {
|
|
3597
3609
|
for (var t = 1; t < arguments.length; t++) {
|
|
3598
3610
|
var n = arguments[t];
|
|
3599
3611
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3600
3612
|
}
|
|
3601
3613
|
return e;
|
|
3602
|
-
},
|
|
3614
|
+
}, jc.apply(this, arguments);
|
|
3603
3615
|
}
|
|
3604
|
-
function
|
|
3616
|
+
function Mc(e, t) {
|
|
3605
3617
|
if (e == null) return {};
|
|
3606
3618
|
var n = {}, r = Object.keys(e), i, a;
|
|
3607
3619
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
3608
3620
|
return n;
|
|
3609
3621
|
}
|
|
3610
|
-
function
|
|
3622
|
+
function Nc(e, t) {
|
|
3611
3623
|
if (e == null) return {};
|
|
3612
|
-
var n =
|
|
3624
|
+
var n = Mc(e, t), r, i;
|
|
3613
3625
|
if (Object.getOwnPropertySymbols) {
|
|
3614
3626
|
var a = Object.getOwnPropertySymbols(e);
|
|
3615
3627
|
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
3628
|
}
|
|
3617
3629
|
return n;
|
|
3618
3630
|
}
|
|
3619
|
-
var
|
|
3620
|
-
function
|
|
3631
|
+
var Pc = "1.15.2";
|
|
3632
|
+
function Fc(e) {
|
|
3621
3633
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
3622
3634
|
}
|
|
3623
|
-
var
|
|
3635
|
+
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
3636
|
capture: !1,
|
|
3625
3637
|
passive: !1
|
|
3626
3638
|
};
|
|
3627
3639
|
function V(e, t, n) {
|
|
3628
|
-
e.addEventListener(t, n, !
|
|
3640
|
+
e.addEventListener(t, n, !Ic && Hc);
|
|
3629
3641
|
}
|
|
3630
3642
|
function H(e, t, n) {
|
|
3631
|
-
e.removeEventListener(t, n, !
|
|
3643
|
+
e.removeEventListener(t, n, !Ic && Hc);
|
|
3632
3644
|
}
|
|
3633
|
-
function
|
|
3645
|
+
function Uc(e, t) {
|
|
3634
3646
|
if (t) {
|
|
3635
3647
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
3636
3648
|
if (e.matches) return e.matches(t);
|
|
@@ -3642,22 +3654,22 @@ function Hc(e, t) {
|
|
|
3642
3654
|
return !1;
|
|
3643
3655
|
}
|
|
3644
3656
|
}
|
|
3645
|
-
function
|
|
3657
|
+
function Wc(e) {
|
|
3646
3658
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
3647
3659
|
}
|
|
3648
|
-
function
|
|
3660
|
+
function Gc(e, t, n, r) {
|
|
3649
3661
|
if (e) {
|
|
3650
3662
|
n ||= document;
|
|
3651
3663
|
do {
|
|
3652
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
3664
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Uc(e, t) : Uc(e, t)) || r && e === n) return e;
|
|
3653
3665
|
if (e === n) break;
|
|
3654
|
-
} while (e =
|
|
3666
|
+
} while (e = Wc(e));
|
|
3655
3667
|
}
|
|
3656
3668
|
return null;
|
|
3657
3669
|
}
|
|
3658
|
-
var
|
|
3659
|
-
function
|
|
3660
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
3670
|
+
var Kc = /\s+/g;
|
|
3671
|
+
function qc(e, t, n) {
|
|
3672
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Kc, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Kc, " "));
|
|
3661
3673
|
}
|
|
3662
3674
|
function U(e, t, n) {
|
|
3663
3675
|
var r = e && e.style;
|
|
@@ -3666,7 +3678,7 @@ function U(e, t, n) {
|
|
|
3666
3678
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
3667
3679
|
}
|
|
3668
3680
|
}
|
|
3669
|
-
function
|
|
3681
|
+
function Jc(e, t) {
|
|
3670
3682
|
var n = "";
|
|
3671
3683
|
if (typeof e == "string") n = e;
|
|
3672
3684
|
else do {
|
|
@@ -3676,7 +3688,7 @@ function qc(e, t) {
|
|
|
3676
3688
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
3677
3689
|
return i && new i(n);
|
|
3678
3690
|
}
|
|
3679
|
-
function
|
|
3691
|
+
function Yc(e, t, n) {
|
|
3680
3692
|
if (e) {
|
|
3681
3693
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
3682
3694
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -3684,13 +3696,13 @@ function Jc(e, t, n) {
|
|
|
3684
3696
|
}
|
|
3685
3697
|
return [];
|
|
3686
3698
|
}
|
|
3687
|
-
function
|
|
3699
|
+
function Xc() {
|
|
3688
3700
|
return document.scrollingElement || document.documentElement;
|
|
3689
3701
|
}
|
|
3690
3702
|
function W(e, t, n, r, i) {
|
|
3691
3703
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
3692
3704
|
var a, o, s, c, l, u, d;
|
|
3693
|
-
if (e !== window && e.parentNode && e !==
|
|
3705
|
+
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
3706
|
if (i && i.getBoundingClientRect && (U(i, "transform") !== "none" || n && U(i, "position") !== "static")) {
|
|
3695
3707
|
var f = i.getBoundingClientRect();
|
|
3696
3708
|
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 +3710,7 @@ function W(e, t, n, r, i) {
|
|
|
3698
3710
|
}
|
|
3699
3711
|
while (i = i.parentNode);
|
|
3700
3712
|
if (r && e !== window) {
|
|
3701
|
-
var p =
|
|
3713
|
+
var p = Jc(i || e), m = p && p.a, h = p && p.d;
|
|
3702
3714
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
3703
3715
|
}
|
|
3704
3716
|
return {
|
|
@@ -3711,18 +3723,18 @@ function W(e, t, n, r, i) {
|
|
|
3711
3723
|
};
|
|
3712
3724
|
}
|
|
3713
3725
|
}
|
|
3714
|
-
function
|
|
3715
|
-
for (var r =
|
|
3726
|
+
function Zc(e, t, n) {
|
|
3727
|
+
for (var r = rl(e, !0), i = W(e)[t]; r;) {
|
|
3716
3728
|
var a = W(r)[n], o = void 0;
|
|
3717
3729
|
if (o = i >= a, !o) return r;
|
|
3718
|
-
if (r ===
|
|
3719
|
-
r =
|
|
3730
|
+
if (r === Xc()) break;
|
|
3731
|
+
r = rl(r, !1);
|
|
3720
3732
|
}
|
|
3721
3733
|
return !1;
|
|
3722
3734
|
}
|
|
3723
|
-
function
|
|
3735
|
+
function Qc(e, t, n, r) {
|
|
3724
3736
|
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) &&
|
|
3737
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Gc(o[a], n.draggable, e, !1)) {
|
|
3726
3738
|
if (i === t) return o[a];
|
|
3727
3739
|
i++;
|
|
3728
3740
|
}
|
|
@@ -3730,84 +3742,84 @@ function Zc(e, t, n, r) {
|
|
|
3730
3742
|
}
|
|
3731
3743
|
return null;
|
|
3732
3744
|
}
|
|
3733
|
-
function
|
|
3734
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !
|
|
3745
|
+
function $c(e, t) {
|
|
3746
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !Uc(n, t));) n = n.previousElementSibling;
|
|
3735
3747
|
return n || null;
|
|
3736
3748
|
}
|
|
3737
|
-
function
|
|
3749
|
+
function el(e, t) {
|
|
3738
3750
|
var n = 0;
|
|
3739
3751
|
if (!e || !e.parentNode) return -1;
|
|
3740
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
3752
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Uc(e, t)) && n++;
|
|
3741
3753
|
return n;
|
|
3742
3754
|
}
|
|
3743
|
-
function
|
|
3744
|
-
var t = 0, n = 0, r =
|
|
3755
|
+
function tl(e) {
|
|
3756
|
+
var t = 0, n = 0, r = Xc();
|
|
3745
3757
|
if (e) do {
|
|
3746
|
-
var i =
|
|
3758
|
+
var i = Jc(e), a = i.a, o = i.d;
|
|
3747
3759
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
3748
3760
|
} while (e !== r && (e = e.parentNode));
|
|
3749
3761
|
return [t, n];
|
|
3750
3762
|
}
|
|
3751
|
-
function
|
|
3763
|
+
function nl(e, t) {
|
|
3752
3764
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
3753
3765
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
3754
3766
|
}
|
|
3755
3767
|
return -1;
|
|
3756
3768
|
}
|
|
3757
|
-
function
|
|
3758
|
-
if (!e || !e.getBoundingClientRect) return
|
|
3769
|
+
function rl(e, t) {
|
|
3770
|
+
if (!e || !e.getBoundingClientRect) return Xc();
|
|
3759
3771
|
var n = e, r = !1;
|
|
3760
3772
|
do
|
|
3761
3773
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
3762
3774
|
var i = U(n);
|
|
3763
3775
|
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
|
|
3776
|
+
if (!n.getBoundingClientRect || n === document.body) return Xc();
|
|
3765
3777
|
if (r || t) return n;
|
|
3766
3778
|
r = !0;
|
|
3767
3779
|
}
|
|
3768
3780
|
}
|
|
3769
3781
|
while (n = n.parentNode);
|
|
3770
|
-
return
|
|
3782
|
+
return Xc();
|
|
3771
3783
|
}
|
|
3772
|
-
function
|
|
3784
|
+
function il(e, t) {
|
|
3773
3785
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
3774
3786
|
return e;
|
|
3775
3787
|
}
|
|
3776
|
-
function
|
|
3788
|
+
function al(e, t) {
|
|
3777
3789
|
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
3790
|
}
|
|
3779
|
-
var
|
|
3780
|
-
function
|
|
3791
|
+
var ol;
|
|
3792
|
+
function sl(e, t) {
|
|
3781
3793
|
return function() {
|
|
3782
|
-
if (!
|
|
3794
|
+
if (!ol) {
|
|
3783
3795
|
var n = arguments, r = this;
|
|
3784
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
3785
|
-
|
|
3796
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), ol = setTimeout(function() {
|
|
3797
|
+
ol = void 0;
|
|
3786
3798
|
}, t);
|
|
3787
3799
|
}
|
|
3788
3800
|
};
|
|
3789
3801
|
}
|
|
3790
|
-
function
|
|
3791
|
-
clearTimeout(
|
|
3802
|
+
function cl() {
|
|
3803
|
+
clearTimeout(ol), ol = void 0;
|
|
3792
3804
|
}
|
|
3793
|
-
function
|
|
3805
|
+
function ll(e, t, n) {
|
|
3794
3806
|
e.scrollLeft += t, e.scrollTop += n;
|
|
3795
3807
|
}
|
|
3796
|
-
function
|
|
3808
|
+
function ul(e) {
|
|
3797
3809
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
3798
3810
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
3799
3811
|
}
|
|
3800
|
-
function
|
|
3812
|
+
function dl(e, t, n) {
|
|
3801
3813
|
var r = {};
|
|
3802
3814
|
return Array.from(e.children).forEach(function(i) {
|
|
3803
|
-
if (!(!
|
|
3815
|
+
if (!(!Gc(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
3804
3816
|
var a = W(i);
|
|
3805
3817
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
3806
3818
|
}
|
|
3807
3819
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
3808
3820
|
}
|
|
3809
|
-
var
|
|
3810
|
-
function
|
|
3821
|
+
var fl = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
3822
|
+
function pl() {
|
|
3811
3823
|
var e = [], t;
|
|
3812
3824
|
return {
|
|
3813
3825
|
captureAnimationState: function() {
|
|
@@ -3817,9 +3829,9 @@ function fl() {
|
|
|
3817
3829
|
target: t,
|
|
3818
3830
|
rect: W(t)
|
|
3819
3831
|
});
|
|
3820
|
-
var n =
|
|
3832
|
+
var n = Oc({}, e[e.length - 1].rect);
|
|
3821
3833
|
if (t.thisAnimationDuration) {
|
|
3822
|
-
var r =
|
|
3834
|
+
var r = Jc(t, !0);
|
|
3823
3835
|
r && (n.top -= r.f, n.left -= r.e);
|
|
3824
3836
|
}
|
|
3825
3837
|
t.fromRect = n;
|
|
@@ -3830,7 +3842,7 @@ function fl() {
|
|
|
3830
3842
|
e.push(t);
|
|
3831
3843
|
},
|
|
3832
3844
|
removeAnimationState: function(t) {
|
|
3833
|
-
e.splice(
|
|
3845
|
+
e.splice(nl(e, { target: t }), 1);
|
|
3834
3846
|
},
|
|
3835
3847
|
animateAll: function(n) {
|
|
3836
3848
|
var r = this;
|
|
@@ -3840,8 +3852,8 @@ function fl() {
|
|
|
3840
3852
|
}
|
|
3841
3853
|
var i = !1, a = 0;
|
|
3842
3854
|
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 &&
|
|
3855
|
+
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);
|
|
3856
|
+
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
3857
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
3846
3858
|
}, t), n.thisAnimationDuration = t);
|
|
3847
3859
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -3851,26 +3863,26 @@ function fl() {
|
|
|
3851
3863
|
animate: function(e, t, n, r) {
|
|
3852
3864
|
if (r) {
|
|
3853
3865
|
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 =
|
|
3866
|
+
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);
|
|
3867
|
+
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
3868
|
U(e, "transition", ""), U(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
3857
3869
|
}, r);
|
|
3858
3870
|
}
|
|
3859
3871
|
}
|
|
3860
3872
|
};
|
|
3861
3873
|
}
|
|
3862
|
-
function
|
|
3874
|
+
function ml(e) {
|
|
3863
3875
|
return e.offsetWidth;
|
|
3864
3876
|
}
|
|
3865
|
-
function
|
|
3877
|
+
function hl(e, t, n, r) {
|
|
3866
3878
|
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
3879
|
}
|
|
3868
|
-
var
|
|
3880
|
+
var gl = [], _l = { initializeByDefault: !0 }, vl = {
|
|
3869
3881
|
mount: function(e) {
|
|
3870
|
-
for (var t in
|
|
3871
|
-
|
|
3882
|
+
for (var t in _l) _l.hasOwnProperty(t) && !(t in e) && (e[t] = _l[t]);
|
|
3883
|
+
gl.forEach(function(t) {
|
|
3872
3884
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
3873
|
-
}),
|
|
3885
|
+
}), gl.push(e);
|
|
3874
3886
|
},
|
|
3875
3887
|
pluginEvent: function(e, t, n) {
|
|
3876
3888
|
var r = this;
|
|
@@ -3878,16 +3890,16 @@ var hl = [], gl = { initializeByDefault: !0 }, _l = {
|
|
|
3878
3890
|
r.eventCanceled = !0;
|
|
3879
3891
|
};
|
|
3880
3892
|
var i = e + "Global";
|
|
3881
|
-
|
|
3882
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
3893
|
+
gl.forEach(function(r) {
|
|
3894
|
+
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
3895
|
});
|
|
3884
3896
|
},
|
|
3885
3897
|
initializePlugins: function(e, t, n, r) {
|
|
3886
|
-
for (var i in
|
|
3898
|
+
for (var i in gl.forEach(function(r) {
|
|
3887
3899
|
var i = r.pluginName;
|
|
3888
3900
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
3889
3901
|
var a = new r(e, t, e.options);
|
|
3890
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
3902
|
+
a.sortable = e, a.options = e.options, e[i] = a, jc(n, a.defaults);
|
|
3891
3903
|
}
|
|
3892
3904
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
3893
3905
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -3896,59 +3908,59 @@ var hl = [], gl = { initializeByDefault: !0 }, _l = {
|
|
|
3896
3908
|
},
|
|
3897
3909
|
getEventProperties: function(e, t) {
|
|
3898
3910
|
var n = {};
|
|
3899
|
-
return
|
|
3900
|
-
typeof r.eventProperties == "function" &&
|
|
3911
|
+
return gl.forEach(function(r) {
|
|
3912
|
+
typeof r.eventProperties == "function" && jc(n, r.eventProperties.call(t[r.pluginName], e));
|
|
3901
3913
|
}), n;
|
|
3902
3914
|
},
|
|
3903
3915
|
modifyOption: function(e, t, n) {
|
|
3904
3916
|
var r;
|
|
3905
|
-
return
|
|
3917
|
+
return gl.forEach(function(i) {
|
|
3906
3918
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
3907
3919
|
}), r;
|
|
3908
3920
|
}
|
|
3909
3921
|
};
|
|
3910
|
-
function
|
|
3922
|
+
function yl(e) {
|
|
3911
3923
|
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[
|
|
3924
|
+
if (t ||= n && n[fl], t) {
|
|
3913
3925
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
3914
|
-
window.CustomEvent && !
|
|
3926
|
+
window.CustomEvent && !Ic && !Lc ? h = new CustomEvent(r, {
|
|
3915
3927
|
bubbles: !0,
|
|
3916
3928
|
cancelable: !0
|
|
3917
3929
|
}) : (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 =
|
|
3930
|
+
var v = Oc(Oc({}, m), vl.getEventProperties(r, t));
|
|
3919
3931
|
for (var y in v) h[y] = v[y];
|
|
3920
3932
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
3921
3933
|
}
|
|
3922
3934
|
}
|
|
3923
|
-
var
|
|
3924
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
3925
|
-
|
|
3935
|
+
var bl = ["evt"], xl = function(e, t) {
|
|
3936
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Nc(n, bl);
|
|
3937
|
+
vl.pluginEvent.bind(Q)(e, t, Oc({
|
|
3926
3938
|
dragEl: G,
|
|
3927
3939
|
parentEl: K,
|
|
3928
3940
|
ghostEl: q,
|
|
3929
3941
|
rootEl: J,
|
|
3930
|
-
nextEl:
|
|
3931
|
-
lastDownEl:
|
|
3942
|
+
nextEl: Cl,
|
|
3943
|
+
lastDownEl: wl,
|
|
3932
3944
|
cloneEl: Y,
|
|
3933
|
-
cloneHidden:
|
|
3934
|
-
dragStarted:
|
|
3945
|
+
cloneHidden: Tl,
|
|
3946
|
+
dragStarted: Bl,
|
|
3935
3947
|
putSortable: X,
|
|
3936
3948
|
activeSortable: Q.active,
|
|
3937
3949
|
originalEvent: r,
|
|
3938
|
-
oldIndex:
|
|
3939
|
-
oldDraggableIndex:
|
|
3940
|
-
newIndex:
|
|
3941
|
-
newDraggableIndex:
|
|
3942
|
-
hideGhostForTarget:
|
|
3943
|
-
unhideGhostForTarget:
|
|
3950
|
+
oldIndex: El,
|
|
3951
|
+
oldDraggableIndex: Ol,
|
|
3952
|
+
newIndex: Dl,
|
|
3953
|
+
newDraggableIndex: kl,
|
|
3954
|
+
hideGhostForTarget: iu,
|
|
3955
|
+
unhideGhostForTarget: au,
|
|
3944
3956
|
cloneNowHidden: function() {
|
|
3945
|
-
|
|
3957
|
+
Tl = !0;
|
|
3946
3958
|
},
|
|
3947
3959
|
cloneNowShown: function() {
|
|
3948
|
-
|
|
3960
|
+
Tl = !1;
|
|
3949
3961
|
},
|
|
3950
3962
|
dispatchSortableEvent: function(e) {
|
|
3951
|
-
|
|
3963
|
+
Sl({
|
|
3952
3964
|
sortable: t,
|
|
3953
3965
|
name: e,
|
|
3954
3966
|
originalEvent: r
|
|
@@ -3956,40 +3968,40 @@ var yl = ["evt"], bl = function(e, t) {
|
|
|
3956
3968
|
}
|
|
3957
3969
|
}, i));
|
|
3958
3970
|
};
|
|
3959
|
-
function
|
|
3960
|
-
|
|
3971
|
+
function Sl(e) {
|
|
3972
|
+
yl(Oc({
|
|
3961
3973
|
putSortable: X,
|
|
3962
3974
|
cloneEl: Y,
|
|
3963
3975
|
targetEl: G,
|
|
3964
3976
|
rootEl: J,
|
|
3965
|
-
oldIndex:
|
|
3966
|
-
oldDraggableIndex:
|
|
3967
|
-
newIndex:
|
|
3968
|
-
newDraggableIndex:
|
|
3977
|
+
oldIndex: El,
|
|
3978
|
+
oldDraggableIndex: Ol,
|
|
3979
|
+
newIndex: Dl,
|
|
3980
|
+
newDraggableIndex: kl
|
|
3969
3981
|
}, e));
|
|
3970
3982
|
}
|
|
3971
|
-
var G, K, q, J,
|
|
3972
|
-
if (
|
|
3973
|
-
if (
|
|
3983
|
+
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() {
|
|
3984
|
+
if (Yl) {
|
|
3985
|
+
if (Ic) return !1;
|
|
3974
3986
|
var e = document.createElement("x");
|
|
3975
3987
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
3976
3988
|
}
|
|
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
|
-
},
|
|
3989
|
+
}(), eu = function(e, t) {
|
|
3990
|
+
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;
|
|
3991
|
+
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";
|
|
3992
|
+
}, tu = function(e, t, n) {
|
|
3981
3993
|
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
3994
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
3983
|
-
},
|
|
3995
|
+
}, nu = function(e, t) {
|
|
3984
3996
|
var n;
|
|
3985
|
-
return
|
|
3986
|
-
var i = r[
|
|
3987
|
-
if (!(!i ||
|
|
3997
|
+
return Nl.some(function(r) {
|
|
3998
|
+
var i = r[fl].options.emptyInsertThreshold;
|
|
3999
|
+
if (!(!i || $c(r))) {
|
|
3988
4000
|
var a = W(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
3989
4001
|
if (o && s) return n = r;
|
|
3990
4002
|
}
|
|
3991
4003
|
}), n;
|
|
3992
|
-
},
|
|
4004
|
+
}, ru = function(e) {
|
|
3993
4005
|
function t(e, n) {
|
|
3994
4006
|
return function(r, i, a, o) {
|
|
3995
4007
|
if (e == null && (n || r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name)) return !0;
|
|
@@ -4001,31 +4013,31 @@ var G, K, q, J, Sl, Cl, Y, wl, Tl, El, Dl, Ol, kl, X, Al = !1, jl = !1, Ml = [],
|
|
|
4001
4013
|
};
|
|
4002
4014
|
}
|
|
4003
4015
|
var n = {}, r = e.group;
|
|
4004
|
-
(!r ||
|
|
4005
|
-
}, ru = function() {
|
|
4006
|
-
!Ql && q && U(q, "display", "none");
|
|
4016
|
+
(!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
4017
|
}, iu = function() {
|
|
4008
|
-
|
|
4018
|
+
!$l && q && U(q, "display", "none");
|
|
4019
|
+
}, au = function() {
|
|
4020
|
+
!$l && q && U(q, "display", "");
|
|
4009
4021
|
};
|
|
4010
|
-
|
|
4011
|
-
if (
|
|
4022
|
+
Yl && !Vc && document.addEventListener("click", function(e) {
|
|
4023
|
+
if (Ml) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ml = !1, !1;
|
|
4012
4024
|
}, !0);
|
|
4013
|
-
var
|
|
4025
|
+
var ou = function(e) {
|
|
4014
4026
|
if (G) {
|
|
4015
4027
|
e = e.touches ? e.touches[0] : e;
|
|
4016
|
-
var t =
|
|
4028
|
+
var t = nu(e.clientX, e.clientY);
|
|
4017
4029
|
if (t) {
|
|
4018
4030
|
var n = {};
|
|
4019
4031
|
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[
|
|
4032
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[fl]._onDragOver(n);
|
|
4021
4033
|
}
|
|
4022
4034
|
}
|
|
4023
|
-
},
|
|
4024
|
-
G && G.parentNode[
|
|
4035
|
+
}, su = function(e) {
|
|
4036
|
+
G && G.parentNode[fl]._isOutsideThisEl(e.target);
|
|
4025
4037
|
};
|
|
4026
4038
|
function Q(e, t) {
|
|
4027
4039
|
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 =
|
|
4040
|
+
this.el = e, this.options = t = jc({}, t), e[fl] = this;
|
|
4029
4041
|
var n = {
|
|
4030
4042
|
group: null,
|
|
4031
4043
|
sort: !0,
|
|
@@ -4038,7 +4050,7 @@ function Q(e, t) {
|
|
|
4038
4050
|
invertedSwapThreshold: null,
|
|
4039
4051
|
removeCloneOnHide: !0,
|
|
4040
4052
|
direction: function() {
|
|
4041
|
-
return
|
|
4053
|
+
return eu(e, this.options);
|
|
4042
4054
|
},
|
|
4043
4055
|
ghostClass: "sortable-ghost",
|
|
4044
4056
|
chosenClass: "sortable-chosen",
|
|
@@ -4065,17 +4077,17 @@ function Q(e, t) {
|
|
|
4065
4077
|
x: 0,
|
|
4066
4078
|
y: 0
|
|
4067
4079
|
},
|
|
4068
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
4080
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !zc,
|
|
4069
4081
|
emptyInsertThreshold: 5
|
|
4070
4082
|
};
|
|
4071
|
-
for (var r in
|
|
4072
|
-
for (var i in
|
|
4073
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
4083
|
+
for (var r in vl.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
4084
|
+
for (var i in ru(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
4085
|
+
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
4086
|
}
|
|
4075
4087
|
Q.prototype = {
|
|
4076
4088
|
constructor: Q,
|
|
4077
4089
|
_isOutsideThisEl: function(e) {
|
|
4078
|
-
!this.el.contains(e) && e !== this.el && (
|
|
4090
|
+
!this.el.contains(e) && e !== this.el && (Vl = null);
|
|
4079
4091
|
},
|
|
4080
4092
|
_getDirection: function(e, t) {
|
|
4081
4093
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
@@ -4083,33 +4095,33 @@ Q.prototype = {
|
|
|
4083
4095
|
_onTapStart: function(e) {
|
|
4084
4096
|
if (e.cancelable) {
|
|
4085
4097
|
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 (
|
|
4098
|
+
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)) {
|
|
4099
|
+
if (El = el(s), Ol = el(s, r.draggable), typeof l == "function") {
|
|
4088
4100
|
if (l.call(this, e, s, this)) {
|
|
4089
|
-
|
|
4101
|
+
Sl({
|
|
4090
4102
|
sortable: t,
|
|
4091
4103
|
rootEl: c,
|
|
4092
4104
|
name: "filter",
|
|
4093
4105
|
targetEl: s,
|
|
4094
4106
|
toEl: n,
|
|
4095
4107
|
fromEl: n
|
|
4096
|
-
}),
|
|
4108
|
+
}), xl("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
4097
4109
|
return;
|
|
4098
4110
|
}
|
|
4099
4111
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
4100
|
-
if (r =
|
|
4112
|
+
if (r = Gc(c, r.trim(), n, !1), r) return Sl({
|
|
4101
4113
|
sortable: t,
|
|
4102
4114
|
rootEl: r,
|
|
4103
4115
|
name: "filter",
|
|
4104
4116
|
targetEl: s,
|
|
4105
4117
|
fromEl: n,
|
|
4106
4118
|
toEl: n
|
|
4107
|
-
}),
|
|
4119
|
+
}), xl("filter", t, { evt: e }), !0;
|
|
4108
4120
|
}), l)) {
|
|
4109
4121
|
i && e.cancelable && e.preventDefault();
|
|
4110
4122
|
return;
|
|
4111
4123
|
}
|
|
4112
|
-
r.handle && !
|
|
4124
|
+
r.handle && !Gc(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
4113
4125
|
}
|
|
4114
4126
|
}
|
|
4115
4127
|
},
|
|
@@ -4117,23 +4129,23 @@ Q.prototype = {
|
|
|
4117
4129
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
4118
4130
|
if (n && !G && n.parentNode === i) {
|
|
4119
4131
|
var c = W(n);
|
|
4120
|
-
if (J = i, G = n, K = G.parentNode,
|
|
4132
|
+
if (J = i, G = n, K = G.parentNode, Cl = G.nextSibling, wl = n, Al = a.group, Q.dragged = G, Pl = {
|
|
4121
4133
|
target: G,
|
|
4122
4134
|
clientX: (t || e).clientX,
|
|
4123
4135
|
clientY: (t || e).clientY
|
|
4124
|
-
},
|
|
4125
|
-
if (
|
|
4136
|
+
}, 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() {
|
|
4137
|
+
if (xl("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
4126
4138
|
r._onDrop();
|
|
4127
4139
|
return;
|
|
4128
4140
|
}
|
|
4129
|
-
r._disableDelayedDragEvents(), !
|
|
4141
|
+
r._disableDelayedDragEvents(), !Rc && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), Sl({
|
|
4130
4142
|
sortable: r,
|
|
4131
4143
|
name: "choose",
|
|
4132
4144
|
originalEvent: e
|
|
4133
|
-
}),
|
|
4145
|
+
}), qc(G, a.chosenClass, !0);
|
|
4134
4146
|
}, a.ignore.split(",").forEach(function(e) {
|
|
4135
|
-
|
|
4136
|
-
}), V(o, "dragover",
|
|
4147
|
+
Yc(G, e.trim(), uu);
|
|
4148
|
+
}), 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
4149
|
if (Q.eventCanceled) {
|
|
4138
4150
|
this._onDrop();
|
|
4139
4151
|
return;
|
|
@@ -4147,7 +4159,7 @@ Q.prototype = {
|
|
|
4147
4159
|
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
4160
|
},
|
|
4149
4161
|
_disableDelayedDrag: function() {
|
|
4150
|
-
G &&
|
|
4162
|
+
G && uu(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
4151
4163
|
},
|
|
4152
4164
|
_disableDelayedDragEvents: function() {
|
|
4153
4165
|
var e = this.el.ownerDocument;
|
|
@@ -4156,16 +4168,16 @@ Q.prototype = {
|
|
|
4156
4168
|
_triggerDragStart: function(e, t) {
|
|
4157
4169
|
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
4170
|
try {
|
|
4159
|
-
document.selection ?
|
|
4171
|
+
document.selection ? vu(function() {
|
|
4160
4172
|
document.selection.empty();
|
|
4161
4173
|
}) : window.getSelection().removeAllRanges();
|
|
4162
4174
|
} catch {}
|
|
4163
4175
|
},
|
|
4164
4176
|
_dragStarted: function(e, t) {
|
|
4165
|
-
if (
|
|
4166
|
-
|
|
4177
|
+
if (jl = !1, J && G) {
|
|
4178
|
+
xl("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", su);
|
|
4167
4179
|
var n = this.options;
|
|
4168
|
-
!e &&
|
|
4180
|
+
!e && qc(G, n.dragClass, !1), qc(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), Sl({
|
|
4169
4181
|
sortable: this,
|
|
4170
4182
|
name: "start",
|
|
4171
4183
|
originalEvent: t
|
|
@@ -4173,33 +4185,33 @@ Q.prototype = {
|
|
|
4173
4185
|
} else this._nulling();
|
|
4174
4186
|
},
|
|
4175
4187
|
_emulateDragOver: function() {
|
|
4176
|
-
if (
|
|
4177
|
-
this._lastX =
|
|
4178
|
-
for (var e = document.elementFromPoint(
|
|
4179
|
-
if (G.parentNode[
|
|
4180
|
-
if (t[
|
|
4188
|
+
if (Fl) {
|
|
4189
|
+
this._lastX = Fl.clientX, this._lastY = Fl.clientY, iu();
|
|
4190
|
+
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;
|
|
4191
|
+
if (G.parentNode[fl]._isOutsideThisEl(e), t) do {
|
|
4192
|
+
if (t[fl]) {
|
|
4181
4193
|
var n = void 0;
|
|
4182
|
-
if (n = t[
|
|
4183
|
-
clientX:
|
|
4184
|
-
clientY:
|
|
4194
|
+
if (n = t[fl]._onDragOver({
|
|
4195
|
+
clientX: Fl.clientX,
|
|
4196
|
+
clientY: Fl.clientY,
|
|
4185
4197
|
target: e,
|
|
4186
4198
|
rootEl: t
|
|
4187
4199
|
}), n && !this.options.dragoverBubble) break;
|
|
4188
4200
|
}
|
|
4189
4201
|
e = t;
|
|
4190
4202
|
} while (t = t.parentNode);
|
|
4191
|
-
|
|
4203
|
+
au();
|
|
4192
4204
|
}
|
|
4193
4205
|
},
|
|
4194
4206
|
_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 && !
|
|
4207
|
+
if (Pl) {
|
|
4208
|
+
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);
|
|
4209
|
+
if (!Q.active && !jl) {
|
|
4198
4210
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
4199
4211
|
this._onDragStart(e, !0);
|
|
4200
4212
|
}
|
|
4201
4213
|
if (q) {
|
|
4202
|
-
a ? (a.e += l - (
|
|
4214
|
+
a ? (a.e += l - (Il || 0), a.f += u - (Ll || 0)) : a = {
|
|
4203
4215
|
a: 1,
|
|
4204
4216
|
b: 0,
|
|
4205
4217
|
c: 0,
|
|
@@ -4208,39 +4220,39 @@ Q.prototype = {
|
|
|
4208
4220
|
f: u
|
|
4209
4221
|
};
|
|
4210
4222
|
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),
|
|
4223
|
+
U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), Il = l, Ll = u, Fl = i;
|
|
4212
4224
|
}
|
|
4213
4225
|
e.cancelable && e.preventDefault();
|
|
4214
4226
|
}
|
|
4215
4227
|
},
|
|
4216
4228
|
_appendGhost: function() {
|
|
4217
4229
|
if (!q) {
|
|
4218
|
-
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0,
|
|
4219
|
-
if (
|
|
4230
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, Xl, !0, e), n = this.options;
|
|
4231
|
+
if (Xl) {
|
|
4220
4232
|
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 =
|
|
4233
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Xc()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Xc(), Kl = tl(Z);
|
|
4222
4234
|
}
|
|
4223
|
-
q = G.cloneNode(!0),
|
|
4235
|
+
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
4236
|
}
|
|
4225
4237
|
},
|
|
4226
4238
|
_onDragStart: function(e, t) {
|
|
4227
4239
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
4228
|
-
if (
|
|
4240
|
+
if (xl("dragStart", this, { evt: e }), Q.eventCanceled) {
|
|
4229
4241
|
this._onDrop();
|
|
4230
4242
|
return;
|
|
4231
4243
|
}
|
|
4232
|
-
|
|
4233
|
-
|
|
4244
|
+
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() {
|
|
4245
|
+
xl("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), Sl({
|
|
4234
4246
|
sortable: n,
|
|
4235
4247
|
name: "clone"
|
|
4236
4248
|
}));
|
|
4237
|
-
}), !t &&
|
|
4249
|
+
}), !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
4250
|
},
|
|
4239
4251
|
_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 (
|
|
4252
|
+
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;
|
|
4253
|
+
if (ql) return;
|
|
4242
4254
|
function h(o, s) {
|
|
4243
|
-
|
|
4255
|
+
xl(o, p, Oc({
|
|
4244
4256
|
evt: e,
|
|
4245
4257
|
isOwner: l,
|
|
4246
4258
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -4252,7 +4264,7 @@ Q.prototype = {
|
|
|
4252
4264
|
target: n,
|
|
4253
4265
|
completed: _,
|
|
4254
4266
|
onMove: function(n, i) {
|
|
4255
|
-
return
|
|
4267
|
+
return lu(J, t, G, r, n, W(n), e, i);
|
|
4256
4268
|
},
|
|
4257
4269
|
changed: v
|
|
4258
4270
|
}, s));
|
|
@@ -4261,50 +4273,50 @@ Q.prototype = {
|
|
|
4261
4273
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
4262
4274
|
}
|
|
4263
4275
|
function _(r) {
|
|
4264
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
4276
|
+
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
4277
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
4266
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (
|
|
4278
|
+
}), 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
4279
|
}
|
|
4268
4280
|
function v() {
|
|
4269
|
-
|
|
4281
|
+
Dl = el(G), kl = el(G, o.draggable), Sl({
|
|
4270
4282
|
sortable: p,
|
|
4271
4283
|
name: "change",
|
|
4272
4284
|
toEl: t,
|
|
4273
|
-
newIndex:
|
|
4274
|
-
newDraggableIndex:
|
|
4285
|
+
newIndex: Dl,
|
|
4286
|
+
newDraggableIndex: kl,
|
|
4275
4287
|
originalEvent: e
|
|
4276
4288
|
});
|
|
4277
4289
|
}
|
|
4278
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
4290
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Gc(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
4279
4291
|
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
4280
|
-
if (
|
|
4292
|
+
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
4293
|
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 ||
|
|
4294
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Cl ? J.insertBefore(G, Cl) : J.appendChild(G)), _(!0);
|
|
4295
|
+
var y = $c(t, o.draggable);
|
|
4296
|
+
if (!y || pu(e, f, this) && !y.animated) {
|
|
4285
4297
|
if (y === G) return _(!1);
|
|
4286
|
-
if (y && t === e.target && (n = y), n && (i = W(n)),
|
|
4287
|
-
} else if (y &&
|
|
4288
|
-
var b =
|
|
4298
|
+
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);
|
|
4299
|
+
} else if (y && fu(e, f, this)) {
|
|
4300
|
+
var b = Qc(t, 0, o, !0);
|
|
4289
4301
|
if (b === G) return _(!1);
|
|
4290
|
-
if (n = b, i = W(n),
|
|
4302
|
+
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
4303
|
} else if (n.parentNode === t) {
|
|
4292
4304
|
i = W(n);
|
|
4293
|
-
var x = 0, S, C = G.parentNode !== t, w = !
|
|
4294
|
-
|
|
4305
|
+
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;
|
|
4306
|
+
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
4307
|
var D;
|
|
4296
4308
|
if (x !== 0) {
|
|
4297
|
-
var te =
|
|
4309
|
+
var te = el(G);
|
|
4298
4310
|
do
|
|
4299
4311
|
te -= x, D = K.children[te];
|
|
4300
4312
|
while (D && (U(D, "display") === "none" || D === q));
|
|
4301
4313
|
}
|
|
4302
4314
|
if (x === 0 || D === n) return _(!1);
|
|
4303
|
-
|
|
4315
|
+
Vl = n, Hl = x;
|
|
4304
4316
|
var O = n.nextElementSibling, ne = !1;
|
|
4305
4317
|
ne = x === 1;
|
|
4306
|
-
var re =
|
|
4307
|
-
if (re !== !1) return (re === 1 || re === -1) && (ne = re === 1),
|
|
4318
|
+
var re = lu(J, t, G, r, n, i, e, ne);
|
|
4319
|
+
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
4320
|
}
|
|
4309
4321
|
if (t.contains(G)) return _(!1);
|
|
4310
4322
|
}
|
|
@@ -4312,7 +4324,7 @@ Q.prototype = {
|
|
|
4312
4324
|
},
|
|
4313
4325
|
_ignoreWhileAnimating: null,
|
|
4314
4326
|
_offMoveEvents: function() {
|
|
4315
|
-
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover",
|
|
4327
|
+
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
4328
|
},
|
|
4317
4329
|
_offUpEvents: function() {
|
|
4318
4330
|
var e = this.el.ownerDocument;
|
|
@@ -4320,50 +4332,50 @@ Q.prototype = {
|
|
|
4320
4332
|
},
|
|
4321
4333
|
_onDrop: function(e) {
|
|
4322
4334
|
var t = this.el, n = this.options;
|
|
4323
|
-
if (
|
|
4335
|
+
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
4336
|
this._nulling();
|
|
4325
4337
|
return;
|
|
4326
4338
|
}
|
|
4327
|
-
|
|
4339
|
+
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
4340
|
sortable: this,
|
|
4329
4341
|
name: "unchoose",
|
|
4330
4342
|
toEl: K,
|
|
4331
4343
|
newIndex: null,
|
|
4332
4344
|
newDraggableIndex: null,
|
|
4333
4345
|
originalEvent: e
|
|
4334
|
-
}), J === K ?
|
|
4346
|
+
}), J === K ? Dl !== El && Dl >= 0 && (Sl({
|
|
4335
4347
|
sortable: this,
|
|
4336
4348
|
name: "update",
|
|
4337
4349
|
toEl: K,
|
|
4338
4350
|
originalEvent: e
|
|
4339
|
-
}),
|
|
4351
|
+
}), Sl({
|
|
4340
4352
|
sortable: this,
|
|
4341
4353
|
name: "sort",
|
|
4342
4354
|
toEl: K,
|
|
4343
4355
|
originalEvent: e
|
|
4344
|
-
})) : (
|
|
4356
|
+
})) : (Dl >= 0 && (Sl({
|
|
4345
4357
|
rootEl: K,
|
|
4346
4358
|
name: "add",
|
|
4347
4359
|
toEl: K,
|
|
4348
4360
|
fromEl: J,
|
|
4349
4361
|
originalEvent: e
|
|
4350
|
-
}),
|
|
4362
|
+
}), Sl({
|
|
4351
4363
|
sortable: this,
|
|
4352
4364
|
name: "remove",
|
|
4353
4365
|
toEl: K,
|
|
4354
4366
|
originalEvent: e
|
|
4355
|
-
}),
|
|
4367
|
+
}), Sl({
|
|
4356
4368
|
rootEl: K,
|
|
4357
4369
|
name: "sort",
|
|
4358
4370
|
toEl: K,
|
|
4359
4371
|
fromEl: J,
|
|
4360
4372
|
originalEvent: e
|
|
4361
|
-
}),
|
|
4373
|
+
}), Sl({
|
|
4362
4374
|
sortable: this,
|
|
4363
4375
|
name: "sort",
|
|
4364
4376
|
toEl: K,
|
|
4365
4377
|
originalEvent: e
|
|
4366
|
-
})), X && X.save()), Q.active && ((
|
|
4378
|
+
})), X && X.save()), Q.active && ((Dl == null || Dl === -1) && (Dl = El, kl = Ol), Sl({
|
|
4367
4379
|
sortable: this,
|
|
4368
4380
|
name: "end",
|
|
4369
4381
|
toEl: K,
|
|
@@ -4371,9 +4383,9 @@ Q.prototype = {
|
|
|
4371
4383
|
}), this.save()))), this._nulling();
|
|
4372
4384
|
},
|
|
4373
4385
|
_nulling: function() {
|
|
4374
|
-
|
|
4386
|
+
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
4387
|
e.checked = !0;
|
|
4376
|
-
}),
|
|
4388
|
+
}), Jl.length = Il = Ll = 0;
|
|
4377
4389
|
},
|
|
4378
4390
|
handleEvent: function(e) {
|
|
4379
4391
|
switch (e.type) {
|
|
@@ -4383,20 +4395,20 @@ Q.prototype = {
|
|
|
4383
4395
|
break;
|
|
4384
4396
|
case "dragenter":
|
|
4385
4397
|
case "dragover":
|
|
4386
|
-
G && (this._onDragOver(e),
|
|
4398
|
+
G && (this._onDragOver(e), cu(e));
|
|
4387
4399
|
break;
|
|
4388
4400
|
case "selectstart": e.preventDefault();
|
|
4389
4401
|
}
|
|
4390
4402
|
},
|
|
4391
4403
|
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],
|
|
4404
|
+
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
4405
|
return e;
|
|
4394
4406
|
},
|
|
4395
4407
|
sort: function(e, t) {
|
|
4396
4408
|
var n = {}, r = this.el;
|
|
4397
4409
|
this.toArray().forEach(function(e, t) {
|
|
4398
4410
|
var i = r.children[t];
|
|
4399
|
-
|
|
4411
|
+
Gc(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
4400
4412
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
4401
4413
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
4402
4414
|
}), t && this.animateAll();
|
|
@@ -4406,25 +4418,25 @@ Q.prototype = {
|
|
|
4406
4418
|
e && e.set && e.set(this);
|
|
4407
4419
|
},
|
|
4408
4420
|
closest: function(e, t) {
|
|
4409
|
-
return
|
|
4421
|
+
return Gc(e, t || this.options.draggable, this.el, !1);
|
|
4410
4422
|
},
|
|
4411
4423
|
option: function(e, t) {
|
|
4412
4424
|
var n = this.options;
|
|
4413
4425
|
if (t === void 0) return n[e];
|
|
4414
|
-
var r =
|
|
4415
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
4426
|
+
var r = vl.modifyOption(this, e, t);
|
|
4427
|
+
n[e] = r === void 0 ? t : r, e === "group" && ru(n);
|
|
4416
4428
|
},
|
|
4417
4429
|
destroy: function() {
|
|
4418
|
-
|
|
4430
|
+
xl("destroy", this);
|
|
4419
4431
|
var e = this.el;
|
|
4420
|
-
e[
|
|
4432
|
+
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
4433
|
e.removeAttribute("draggable");
|
|
4422
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
4434
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Nl.splice(Nl.indexOf(this.el), 1), this.el = e = null;
|
|
4423
4435
|
},
|
|
4424
4436
|
_hideClone: function() {
|
|
4425
|
-
if (!
|
|
4426
|
-
if (
|
|
4427
|
-
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y),
|
|
4437
|
+
if (!Tl) {
|
|
4438
|
+
if (xl("hideClone", this), Q.eventCanceled) return;
|
|
4439
|
+
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Tl = !0;
|
|
4428
4440
|
}
|
|
4429
4441
|
},
|
|
4430
4442
|
_showClone: function(e) {
|
|
@@ -4432,99 +4444,99 @@ Q.prototype = {
|
|
|
4432
4444
|
this._hideClone();
|
|
4433
4445
|
return;
|
|
4434
4446
|
}
|
|
4435
|
-
if (
|
|
4436
|
-
if (
|
|
4437
|
-
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) :
|
|
4447
|
+
if (Tl) {
|
|
4448
|
+
if (xl("showClone", this), Q.eventCanceled) return;
|
|
4449
|
+
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
4450
|
}
|
|
4439
4451
|
}
|
|
4440
4452
|
};
|
|
4441
|
-
function
|
|
4453
|
+
function cu(e) {
|
|
4442
4454
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
4443
4455
|
}
|
|
4444
|
-
function
|
|
4445
|
-
var c, l = e[
|
|
4446
|
-
return window.CustomEvent && !
|
|
4456
|
+
function lu(e, t, n, r, i, a, o, s) {
|
|
4457
|
+
var c, l = e[fl], u = l.options.onMove, d;
|
|
4458
|
+
return window.CustomEvent && !Ic && !Lc ? c = new CustomEvent("move", {
|
|
4447
4459
|
bubbles: !0,
|
|
4448
4460
|
cancelable: !0
|
|
4449
4461
|
}) : (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
4462
|
}
|
|
4451
|
-
function
|
|
4463
|
+
function uu(e) {
|
|
4452
4464
|
e.draggable = !1;
|
|
4453
4465
|
}
|
|
4454
|
-
function
|
|
4455
|
-
|
|
4466
|
+
function du() {
|
|
4467
|
+
ql = !1;
|
|
4456
4468
|
}
|
|
4457
|
-
function
|
|
4458
|
-
var r = W(
|
|
4469
|
+
function fu(e, t, n) {
|
|
4470
|
+
var r = W(Qc(n.el, 0, n.options, !0)), i = dl(n.el, n.options, q), a = 10;
|
|
4459
4471
|
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
4472
|
}
|
|
4461
|
-
function
|
|
4462
|
-
var r = W(
|
|
4473
|
+
function pu(e, t, n) {
|
|
4474
|
+
var r = W($c(n.el, n.options.draggable)), i = dl(n.el, n.options, q), a = 10;
|
|
4463
4475
|
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
4476
|
}
|
|
4465
|
-
function
|
|
4477
|
+
function mu(e, t, n, r, i, a, o, s) {
|
|
4466
4478
|
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
4479
|
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
|
|
4480
|
+
if (s && Gl < l * i) {
|
|
4481
|
+
if (!Ul && (Hl === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ul = !0), Ul) f = !0;
|
|
4482
|
+
else if (Hl === 1 ? c < u + Gl : c > d - Gl) return -Hl;
|
|
4483
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return hu(t);
|
|
4472
4484
|
}
|
|
4473
4485
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
4474
4486
|
}
|
|
4475
|
-
function mu(e) {
|
|
4476
|
-
return $c(G) < $c(e) ? 1 : -1;
|
|
4477
|
-
}
|
|
4478
4487
|
function hu(e) {
|
|
4488
|
+
return el(G) < el(e) ? 1 : -1;
|
|
4489
|
+
}
|
|
4490
|
+
function gu(e) {
|
|
4479
4491
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
4480
4492
|
return r.toString(36);
|
|
4481
4493
|
}
|
|
4482
|
-
function
|
|
4483
|
-
|
|
4494
|
+
function _u(e) {
|
|
4495
|
+
Jl.length = 0;
|
|
4484
4496
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
4485
4497
|
var r = t[n];
|
|
4486
|
-
r.checked &&
|
|
4498
|
+
r.checked && Jl.push(r);
|
|
4487
4499
|
}
|
|
4488
4500
|
}
|
|
4489
|
-
function
|
|
4501
|
+
function vu(e) {
|
|
4490
4502
|
return setTimeout(e, 0);
|
|
4491
4503
|
}
|
|
4492
|
-
function
|
|
4504
|
+
function yu(e) {
|
|
4493
4505
|
return clearTimeout(e);
|
|
4494
4506
|
}
|
|
4495
|
-
|
|
4496
|
-
(Q.active ||
|
|
4507
|
+
Yl && V(document, "touchmove", function(e) {
|
|
4508
|
+
(Q.active || jl) && e.cancelable && e.preventDefault();
|
|
4497
4509
|
}), Q.utils = {
|
|
4498
4510
|
on: V,
|
|
4499
4511
|
off: H,
|
|
4500
4512
|
css: U,
|
|
4501
|
-
find:
|
|
4513
|
+
find: Yc,
|
|
4502
4514
|
is: function(e, t) {
|
|
4503
|
-
return !!
|
|
4515
|
+
return !!Gc(e, t, e, !1);
|
|
4504
4516
|
},
|
|
4505
|
-
extend:
|
|
4506
|
-
throttle:
|
|
4507
|
-
closest:
|
|
4508
|
-
toggleClass:
|
|
4509
|
-
clone:
|
|
4510
|
-
index:
|
|
4511
|
-
nextTick:
|
|
4512
|
-
cancelNextTick:
|
|
4513
|
-
detectDirection:
|
|
4514
|
-
getChild:
|
|
4517
|
+
extend: il,
|
|
4518
|
+
throttle: sl,
|
|
4519
|
+
closest: Gc,
|
|
4520
|
+
toggleClass: qc,
|
|
4521
|
+
clone: ul,
|
|
4522
|
+
index: el,
|
|
4523
|
+
nextTick: vu,
|
|
4524
|
+
cancelNextTick: yu,
|
|
4525
|
+
detectDirection: eu,
|
|
4526
|
+
getChild: Qc
|
|
4515
4527
|
}, Q.get = function(e) {
|
|
4516
|
-
return e[
|
|
4528
|
+
return e[fl];
|
|
4517
4529
|
}, Q.mount = function() {
|
|
4518
4530
|
var e = [...arguments];
|
|
4519
4531
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
4520
4532
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
4521
|
-
e.utils && (Q.utils =
|
|
4533
|
+
e.utils && (Q.utils = Oc(Oc({}, Q.utils), e.utils)), vl.mount(e);
|
|
4522
4534
|
});
|
|
4523
4535
|
}, Q.create = function(e, t) {
|
|
4524
4536
|
return new Q(e, t);
|
|
4525
|
-
}, Q.version =
|
|
4526
|
-
var $ = [],
|
|
4527
|
-
function
|
|
4537
|
+
}, Q.version = Pc;
|
|
4538
|
+
var $ = [], bu, xu, Su = !1, Cu, wu, Tu, Eu;
|
|
4539
|
+
function Du() {
|
|
4528
4540
|
function e() {
|
|
4529
4541
|
for (var e in this.defaults = {
|
|
4530
4542
|
scroll: !0,
|
|
@@ -4544,63 +4556,63 @@ function Eu() {
|
|
|
4544
4556
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
4545
4557
|
},
|
|
4546
4558
|
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)),
|
|
4559
|
+
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
4560
|
},
|
|
4549
4561
|
nulling: function() {
|
|
4550
|
-
|
|
4562
|
+
Tu = xu = bu = Su = Eu = Cu = wu = null, $.length = 0;
|
|
4551
4563
|
},
|
|
4552
4564
|
_handleFallbackAutoScroll: function(e) {
|
|
4553
4565
|
this._handleAutoScroll(e, !0);
|
|
4554
4566
|
},
|
|
4555
4567
|
_handleAutoScroll: function(e, t) {
|
|
4556
4568
|
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),
|
|
4569
|
+
if (Tu = e, t || this.options.forceAutoScrollFallback || Lc || Ic || zc) {
|
|
4570
|
+
Au(e, this.options, a, t);
|
|
4571
|
+
var o = rl(a, !0);
|
|
4572
|
+
Su && (!Eu || r !== Cu || i !== wu) && (Eu && ku(), Eu = setInterval(function() {
|
|
4573
|
+
var a = rl(document.elementFromPoint(r, i), !0);
|
|
4574
|
+
a !== o && (o = a, Ou()), Au(e, n.options, a, t);
|
|
4575
|
+
}, 10), Cu = r, wu = i);
|
|
4564
4576
|
} else {
|
|
4565
|
-
if (!this.options.bubbleScroll ||
|
|
4566
|
-
|
|
4577
|
+
if (!this.options.bubbleScroll || rl(a, !0) === Xc()) {
|
|
4578
|
+
Ou();
|
|
4567
4579
|
return;
|
|
4568
4580
|
}
|
|
4569
|
-
|
|
4581
|
+
Au(e, this.options, rl(a, !1), !1);
|
|
4570
4582
|
}
|
|
4571
4583
|
}
|
|
4572
|
-
},
|
|
4584
|
+
}, jc(e, {
|
|
4573
4585
|
pluginName: "scroll",
|
|
4574
4586
|
initializeByDefault: !0
|
|
4575
4587
|
});
|
|
4576
4588
|
}
|
|
4577
|
-
function
|
|
4589
|
+
function Ou() {
|
|
4578
4590
|
$.forEach(function(e) {
|
|
4579
4591
|
clearInterval(e.pid);
|
|
4580
4592
|
}), $ = [];
|
|
4581
4593
|
}
|
|
4582
|
-
function
|
|
4583
|
-
clearInterval(
|
|
4594
|
+
function ku() {
|
|
4595
|
+
clearInterval(Eu);
|
|
4584
4596
|
}
|
|
4585
|
-
var
|
|
4597
|
+
var Au = sl(function(e, t, n, r) {
|
|
4586
4598
|
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 =
|
|
4599
|
+
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;
|
|
4600
|
+
xu !== n && (xu = n, Ou(), bu = t.scroll, u = t.scrollFn, bu === !0 && (bu = rl(n, !0)));
|
|
4601
|
+
var d = 0, f = bu;
|
|
4590
4602
|
do {
|
|
4591
4603
|
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
4604
|
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
4605
|
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
4606
|
if (!$[d]) for (var O = 0; O <= d; O++) $[O] || ($[O] = {});
|
|
4595
4607
|
($[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(
|
|
4608
|
+
r && this.layer === 0 && Q.active._onTouchMove(Tu);
|
|
4597
4609
|
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[
|
|
4610
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[fl], n, t, e, Tu, $[this.layer].el) !== "continue" || ll($[this.layer].el, n, t);
|
|
4599
4611
|
}.bind({ layer: d }), 24))), d++;
|
|
4600
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
4601
|
-
|
|
4612
|
+
} while (t.bubbleScroll && f !== c && (f = rl(f, !1)));
|
|
4613
|
+
Su = l;
|
|
4602
4614
|
}
|
|
4603
|
-
}, 30),
|
|
4615
|
+
}, 30), ju = function(e) {
|
|
4604
4616
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
4605
4617
|
if (t) {
|
|
4606
4618
|
var c = n || i;
|
|
@@ -4612,8 +4624,8 @@ var ku = ol(function(e, t, n, r) {
|
|
|
4612
4624
|
}));
|
|
4613
4625
|
}
|
|
4614
4626
|
};
|
|
4615
|
-
function
|
|
4616
|
-
|
|
4627
|
+
function Mu() {}
|
|
4628
|
+
Mu.prototype = {
|
|
4617
4629
|
startIndex: null,
|
|
4618
4630
|
dragStart: function(e) {
|
|
4619
4631
|
var t = e.oldDraggableIndex;
|
|
@@ -4622,72 +4634,72 @@ ju.prototype = {
|
|
|
4622
4634
|
onSpill: function(e) {
|
|
4623
4635
|
var t = e.dragEl, n = e.putSortable;
|
|
4624
4636
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
4625
|
-
var r =
|
|
4637
|
+
var r = Qc(this.sortable.el, this.startIndex, this.options);
|
|
4626
4638
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
4627
4639
|
},
|
|
4628
|
-
drop:
|
|
4629
|
-
},
|
|
4630
|
-
function
|
|
4631
|
-
|
|
4640
|
+
drop: ju
|
|
4641
|
+
}, jc(Mu, { pluginName: "revertOnSpill" });
|
|
4642
|
+
function Nu() {}
|
|
4643
|
+
Nu.prototype = {
|
|
4632
4644
|
onSpill: function(e) {
|
|
4633
4645
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
4634
4646
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
4635
4647
|
},
|
|
4636
|
-
drop:
|
|
4637
|
-
},
|
|
4638
|
-
function
|
|
4648
|
+
drop: ju
|
|
4649
|
+
}, jc(Nu, { pluginName: "removeOnSpill" }), Q.mount(new Du()), Q.mount(Nu, Mu);
|
|
4650
|
+
function Pu(e) {
|
|
4639
4651
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
4640
4652
|
}
|
|
4641
|
-
function
|
|
4653
|
+
function Fu(e) {
|
|
4642
4654
|
oo() && ei(e);
|
|
4643
4655
|
}
|
|
4644
|
-
function
|
|
4656
|
+
function Iu(e) {
|
|
4645
4657
|
oo() ? Xr(e) : jn(e);
|
|
4646
4658
|
}
|
|
4647
|
-
var
|
|
4648
|
-
function
|
|
4649
|
-
|
|
4659
|
+
var Lu = null, Ru = null;
|
|
4660
|
+
function zu(e = null, t = null) {
|
|
4661
|
+
Lu = e, Ru = t;
|
|
4650
4662
|
}
|
|
4651
|
-
function
|
|
4663
|
+
function Bu() {
|
|
4652
4664
|
return {
|
|
4653
|
-
data:
|
|
4654
|
-
clonedData:
|
|
4665
|
+
data: Lu,
|
|
4666
|
+
clonedData: Ru
|
|
4655
4667
|
};
|
|
4656
4668
|
}
|
|
4657
|
-
var
|
|
4658
|
-
function
|
|
4669
|
+
var Vu = Symbol("cloneElement");
|
|
4670
|
+
function Hu(...e) {
|
|
4659
4671
|
let t = oo()?.proxy, n = null, r = e[0], [, i, a] = e;
|
|
4660
4672
|
Array.isArray(I(i)) || (a = i, i = null);
|
|
4661
|
-
let o = null, { immediate: s = !0, clone: c =
|
|
4673
|
+
let o = null, { immediate: s = !0, clone: c = Pu, forceFallback: l, fallbackOnBody: u, customUpdate: d } = I(a) ?? {};
|
|
4662
4674
|
function f(e) {
|
|
4663
4675
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
4664
4676
|
n = l && !u ? o.slice(0, -1) : o;
|
|
4665
4677
|
let s = I(I(i)?.[r]), d = c(s);
|
|
4666
|
-
|
|
4678
|
+
zu(s, d), a[Vu] = d;
|
|
4667
4679
|
}
|
|
4668
4680
|
function p(e) {
|
|
4669
|
-
let t = e.item[
|
|
4670
|
-
if (!
|
|
4671
|
-
if (
|
|
4681
|
+
let t = e.item[Vu];
|
|
4682
|
+
if (!gc(t)) {
|
|
4683
|
+
if (yc(e.item), /* @__PURE__ */ F(i)) {
|
|
4672
4684
|
let n = [...I(i)];
|
|
4673
|
-
i.value =
|
|
4685
|
+
i.value = hc(n, e.newDraggableIndex, t);
|
|
4674
4686
|
return;
|
|
4675
4687
|
}
|
|
4676
|
-
|
|
4688
|
+
hc(I(i), e.newDraggableIndex, t);
|
|
4677
4689
|
}
|
|
4678
4690
|
}
|
|
4679
4691
|
function m(e) {
|
|
4680
4692
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
4681
|
-
if (
|
|
4682
|
-
|
|
4693
|
+
if (vc(t, n, r), o === "clone") {
|
|
4694
|
+
yc(s);
|
|
4683
4695
|
return;
|
|
4684
4696
|
}
|
|
4685
4697
|
if (/* @__PURE__ */ F(i)) {
|
|
4686
4698
|
let e = [...I(i)];
|
|
4687
|
-
i.value =
|
|
4699
|
+
i.value = mc(e, a);
|
|
4688
4700
|
return;
|
|
4689
4701
|
}
|
|
4690
|
-
|
|
4702
|
+
mc(I(i), a);
|
|
4691
4703
|
}
|
|
4692
4704
|
function h(e) {
|
|
4693
4705
|
if (d) {
|
|
@@ -4695,12 +4707,12 @@ function Vu(...e) {
|
|
|
4695
4707
|
return;
|
|
4696
4708
|
}
|
|
4697
4709
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
4698
|
-
if (
|
|
4710
|
+
if (yc(n), vc(t, n, r), /* @__PURE__ */ F(i)) {
|
|
4699
4711
|
let e = [...I(i)];
|
|
4700
|
-
i.value =
|
|
4712
|
+
i.value = dc(e, a, o);
|
|
4701
4713
|
return;
|
|
4702
4714
|
}
|
|
4703
|
-
|
|
4715
|
+
dc(I(i), a, o);
|
|
4704
4716
|
}
|
|
4705
4717
|
function g(e) {
|
|
4706
4718
|
let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
|
|
@@ -4718,7 +4730,7 @@ function Vu(...e) {
|
|
|
4718
4730
|
n = null;
|
|
4719
4731
|
}
|
|
4720
4732
|
jn(() => {
|
|
4721
|
-
if (
|
|
4733
|
+
if (zu(), o) throw o;
|
|
4722
4734
|
});
|
|
4723
4735
|
}
|
|
4724
4736
|
let _ = {
|
|
@@ -4730,19 +4742,19 @@ function Vu(...e) {
|
|
|
4730
4742
|
};
|
|
4731
4743
|
function v(e) {
|
|
4732
4744
|
let n = I(r);
|
|
4733
|
-
return e ||=
|
|
4745
|
+
return e ||= _c(n) ? bc(n, t?.$el) : n, e && !Cc(e) && (e = e.$el), e || uc("Root element not found"), e;
|
|
4734
4746
|
}
|
|
4735
4747
|
function y() {
|
|
4736
|
-
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r =
|
|
4737
|
-
return
|
|
4738
|
-
|
|
4739
|
-
}),
|
|
4748
|
+
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r = sc(e, ["immediate", "clone"]);
|
|
4749
|
+
return wc(r, (e, t) => {
|
|
4750
|
+
Tc(e) && (r[e] = (e, ...n) => (Ec(e, Bu()), t(e, ...n)));
|
|
4751
|
+
}), Sc(i === null ? {} : _, r);
|
|
4740
4752
|
}
|
|
4741
4753
|
let b = (e) => {
|
|
4742
4754
|
e = v(e), o && x.destroy(), o = new Q(e, y());
|
|
4743
4755
|
};
|
|
4744
4756
|
Qn(() => a, () => {
|
|
4745
|
-
o &&
|
|
4757
|
+
o && wc(y(), (e, t) => {
|
|
4746
4758
|
o?.option(e, t);
|
|
4747
4759
|
});
|
|
4748
4760
|
}, { deep: !0 });
|
|
@@ -4755,15 +4767,15 @@ function Vu(...e) {
|
|
|
4755
4767
|
toArray: () => o?.toArray(),
|
|
4756
4768
|
closest: (...e) => o?.closest(...e)
|
|
4757
4769
|
};
|
|
4758
|
-
return
|
|
4770
|
+
return Iu(() => {
|
|
4759
4771
|
s && b();
|
|
4760
|
-
}),
|
|
4772
|
+
}), Fu(x.destroy), oc({
|
|
4761
4773
|
start: b,
|
|
4762
4774
|
pause: () => x?.option("disabled", !0),
|
|
4763
4775
|
resume: () => x?.option("disabled", !1)
|
|
4764
4776
|
}, x);
|
|
4765
4777
|
}
|
|
4766
|
-
var
|
|
4778
|
+
var Uu = [
|
|
4767
4779
|
"update",
|
|
4768
4780
|
"start",
|
|
4769
4781
|
"add",
|
|
@@ -4776,7 +4788,7 @@ var Hu = [
|
|
|
4776
4788
|
"clone",
|
|
4777
4789
|
"move",
|
|
4778
4790
|
"change"
|
|
4779
|
-
],
|
|
4791
|
+
], Wu = /* @__PURE__ */ jr({
|
|
4780
4792
|
name: "VueDraggable",
|
|
4781
4793
|
model: {
|
|
4782
4794
|
prop: "modelValue",
|
|
@@ -4826,27 +4838,27 @@ var Hu = [
|
|
|
4826
4838
|
"tag",
|
|
4827
4839
|
"target",
|
|
4828
4840
|
"customUpdate",
|
|
4829
|
-
...
|
|
4841
|
+
...Uu.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
4830
4842
|
],
|
|
4831
|
-
emits: ["update:modelValue", ...
|
|
4843
|
+
emits: ["update:modelValue", ...Uu],
|
|
4832
4844
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
4833
|
-
let a =
|
|
4845
|
+
let a = Uu.reduce((e, t) => {
|
|
4834
4846
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
4835
4847
|
return e[r] = (...e) => n(t, ...e), e;
|
|
4836
4848
|
}, {}), o = To(() => {
|
|
4837
|
-
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r =
|
|
4849
|
+
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r = sc(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
4838
4850
|
let r = I(n);
|
|
4839
4851
|
return r !== void 0 && (e[t] = r), e;
|
|
4840
4852
|
}, {});
|
|
4841
|
-
return
|
|
4853
|
+
return oc(oc({}, a), pc(oc(oc({}, i), o)));
|
|
4842
4854
|
}), s = To({
|
|
4843
4855
|
get: () => e.modelValue,
|
|
4844
4856
|
set: (e) => n("update:modelValue", e)
|
|
4845
|
-
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(
|
|
4857
|
+
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(Hu(e.target || c, s, o));
|
|
4846
4858
|
return r(l), () => Eo(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
4847
4859
|
}
|
|
4848
4860
|
});
|
|
4849
4861
|
//#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 _,
|
|
4862
|
+
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
4863
|
|
|
4852
|
-
//# sourceMappingURL=draggable-
|
|
4864
|
+
//# sourceMappingURL=draggable-BRF_Q_jB.js.map
|