@templatical/editor 0.47.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-DxPHFNoT.js} +8 -8
- package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-C8GVqu1d.js} +4 -4
- package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BShkuJis.js} +2 -2
- package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
- package/dist/{CloudHeaderExtras-gXsTYoGG.js → CloudHeaderExtras-CUSftQdm.js} +2 -2
- package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-Dgw7tb4R.js} +4 -4
- package/dist/{CollaboratorBar-BazGNMqN.js → CollaboratorBar-5rfopCPx.js} +2 -2
- package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-DiWzYtnZ.js} +1 -1
- package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-BOqj16Al.js} +10 -10
- package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-C4y3Ft7H.js} +4 -4
- package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BWAi3eQQ.js} +7 -7
- package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-C-x3I012.js} +5 -5
- package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-B1_Wy0AN.js} +6 -6
- package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-ByOvznRC.js} +1 -1
- package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-9mDBv4aL.js} +1 -1
- package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-fOewuF27.js} +1 -1
- package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-BXamLcv7.js} +4 -4
- package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-BVjOwwHx.js} +131 -131
- package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BEKXx9xk.js} +3 -3
- package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-D7kp7iig.js} +4 -4
- package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-SJu0lecx.js} +32 -33
- package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-DbmIS5uK.js} +9 -9
- package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-Dr5Fxx9Z.js} +1 -1
- package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-DnEWBZJy.js} +2 -2
- package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-ynbGl-sr.js} +11 -11
- package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Bi01S3H3.js} +7 -7
- package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-CbRY8HQx.js} +7 -7
- package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-NAOmt3xi.js} +1 -1
- package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-Cc3DHbuN.js} +8 -8
- package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-Ozc7YU38.js} +1 -1
- package/dist/Toolbar-B-2lO0I8.js +3156 -0
- package/dist/{TplModal-CoczSDma.js → TplModal-Bz4-IZ9R.js} +1 -1
- package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-CjV1d1zk.js} +5 -5
- package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-BtwxrKJn.js} +1 -1
- package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-BLAei1kj.js} +1 -1
- package/dist/WrapperBlock-D0qgNqjD.js +45 -0
- package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CEDZytqP.js} +49 -19
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-DMoGGP9L.js → ca-CbNzJM3I.js} +17 -3
- package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-Dk0rJBQN.js} +7 -7
- package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-B7b0w8ZS.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-C7sdnkrF.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-B4fhuwc_.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-awqHfJqC.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js → CollaboratorBar-CS0ivqkr.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-CbzxwsyI.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-DWPHZuQm.js} +13 -13
- package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-DWPHZuQm.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-Cqg8FUH-.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-BW9cHnA9.js} +7 -7
- package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-cXf9ywA4.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-cXf9ywA4.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BMB9vShs.js} +84 -84
- package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-zXfcArr4.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-Cp4XB_dH.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-DLqrA9co.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-BRiJzzn5.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-D4aq9eeC.js} +35 -35
- package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-D4aq9eeC.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-BgR6RXSb.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-C4DMAn0g.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BaIsQd09.js} +23 -24
- package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-CtnB58p_.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-BhEOMzEQ.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-CcdqTEIp.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BrWqJCSP.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-BkkWTDHD.js} +10 -10
- package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-BkkWTDHD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-V5mwHsUV.js} +9 -9
- package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DxrKuctP.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CsZiG3TT.js} +13 -13
- package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-BB-bQADJ.js} +2 -2
- package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DC_eodTV.js} +2 -2
- package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DC_eodTV.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-DXnM5Df2.js} +7 -7
- package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DXSqmaLS.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-DKyN6BhO.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
- package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
- package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
- package/dist/{ca-DMoGGP9L.js → cdn/chunks/ca-CbNzJM3I.js} +19 -1
- package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
- package/dist/cdn/chunks/{cloud-Cd7ptfhL.js → cloud-BHClP3e2.js} +2 -2
- package/dist/cdn/chunks/{cloud-Cd7ptfhL.js.map → cloud-BHClP3e2.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-Vd0N4elZ.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js.map → createCloudRuntime-Vd0N4elZ.js.map} +1 -1
- package/dist/cdn/chunks/{de-DgAelLbM.js → de-DMquBpZM.js} +18 -2
- package/dist/cdn/chunks/de-DMquBpZM.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-vEEmZ8Tu.js} +88 -88
- package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
- package/dist/cdn/chunks/{en-Dekrl7HA.js → en-C8Mp71sO.js} +18 -2
- package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
- package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
- package/dist/cdn/chunks/{es-BaZzyidV.js → es-Byq4tthI.js} +18 -2
- package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
- package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-hJ9VqzDc.js} +4 -4
- package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-hJ9VqzDc.js.map} +1 -1
- package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-B3j35HEw.js} +19 -1
- package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
- package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-aTYwH5-g.js} +123 -94
- package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
- package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-D7txAuGS.js} +19 -1
- package/dist/cdn/chunks/ja-D7txAuGS.js.map +1 -0
- package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-ClJ3BY3F.js} +19 -1
- package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-ByfuSjtL.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-ByfuSjtL.js.map} +1 -1
- package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-DibcXcmv.js} +19 -1
- package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-DACw1wA8.js → socialIcons-C_lnkpG6.js} +355 -179
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
- package/dist/cdn/chunks/{src-BnJlDuyB.js → src-DYCDeBDM.js} +219 -181
- package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
- package/dist/cdn/chunks/{src-CHlVFp7r.js → src-DlFlC9Tt.js} +267 -241
- package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
- package/dist/cdn/chunks/{src-Bu0qBpbf.js → src-dZ4D_tuP.js} +226 -193
- package/dist/cdn/chunks/src-dZ4D_tuP.js.map +1 -0
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js +6 -0
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
- package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-Bb2UcB20.js} +722 -717
- package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-HsyUCQtl.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-Dg9pE85U.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-oLcATrQ8.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +403 -397
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-B5R4zXr7.js → check-ClwqRMgv.js} +1 -1
- package/dist/{chevron-down-BKyl85NV.js → chevron-down-te6qn-zE.js} +1 -1
- package/dist/{chevron-right-BmToZ8qX.js → chevron-right-W2hbH1FM.js} +1 -1
- package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Bf5Zo7o4.js} +1 -1
- package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-CIEGV5DN.js} +1 -1
- package/dist/{clock-Dv9bxsSH.js → clock-Y4cx0gkJ.js} +1 -1
- package/dist/{cloud-DwjaAdwK.js → cloud-B5xwm_4X.js} +1 -1
- package/dist/{copy-BsKl4dcy.js → copy-BEcsAlfB.js} +1 -1
- package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-zNPkF6T9.js} +3 -3
- package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-CYHXK9hn.js} +5 -5
- package/dist/{de-DgAelLbM.js → de-DMquBpZM.js} +17 -1
- package/dist/{dist-C8koXLhl.js → dist-tsmnQugO.js} +285 -249
- package/dist/{editor-modal-BwyIUnV_.js → editor-modal-AlVLkU91.js} +23 -23
- package/dist/en-B0FUfNwz.js +1 -0
- package/dist/{en-Dekrl7HA.js → en-C8Mp71sO.js} +17 -1
- package/dist/{es-BaZzyidV.js → es-Byq4tthI.js} +17 -1
- package/dist/{extensions-DHyKjsNZ.js → extensions-pjO8VGkM.js} +3 -3
- package/dist/{eye-DQuinb9k.js → eye-Ddnz8nnm.js} +1 -1
- package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-B3j35HEw.js} +17 -3
- package/dist/{image-up-yTfLjOrj.js → image-up-CM_HC0Dx.js} +1 -1
- package/dist/index.d.ts +66 -3
- package/dist/{info-C7OjlS11.js → info-DXLmzoeY.js} +1 -1
- package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-D7txAuGS.js} +17 -3
- package/dist/{link-CrUFaZ0t.js → link-Cel46wgo.js} +1 -1
- package/dist/{list-CLgv6M-k.js → list-Cl0GwiV9.js} +1 -1
- package/dist/{loader-circle-BXM5VO0K.js → loader-circle-uAwpvfys.js} +1 -1
- package/dist/{message-circle-BisdQ8H9.js → message-circle-DWU1pTM_.js} +1 -1
- package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-ClJ3BY3F.js} +17 -3
- package/dist/{package-C1T4AxV1.js → package-CbyG_yU_.js} +1 -1
- package/dist/{pencil-oo2mwf4C.js → pencil-BzoDcwKu.js} +1 -1
- package/dist/{plus-BIilXopD.js → plus-8cDvoCjZ.js} +1 -1
- package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-DMP5RuHl.js} +3 -3
- package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-DibcXcmv.js} +17 -3
- package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-9WinWixo.js} +1 -1
- package/dist/{search-DNu9lImk.js → search-CqgGq1gG.js} +1 -1
- package/dist/{send-DDNh3LoJ.js → send-Ceo3c9Db.js} +1 -1
- package/dist/{shield-check-aXM3o14f.js → shield-check-uDAwur5D.js} +1 -1
- package/dist/{smartphone-isccgDee.js → smartphone-CcLaCpGK.js} +1 -1
- package/dist/{socialIcons-BctavKBN.js → socialIcons-PTiwhLoC.js} +332 -153
- package/dist/{sparkles-CIMfFxKv.js → sparkles-Do9XjAuT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +549 -543
- package/dist/{text-align-start-C4JFeqsq.js → text-align-start-DvzC0HQA.js} +1 -1
- package/dist/timeouts-Cv2jvusx.js +4 -0
- package/dist/{trash-8ZD9pK_c.js → trash-vlINTx32.js} +1 -1
- package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-MRYSJ9T2.js} +1 -1
- package/dist/{upload-DrNFmVes.js → upload-CtNOI6J2.js} +1 -1
- package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-PvErWWsp.js} +963 -957
- package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-BHn67tDd.js} +1 -1
- package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-CRkm5Ig6.js} +1 -1
- package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CXmcHQQN.js} +1 -1
- package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-CxRGeHO3.js} +1 -1
- package/dist/{x-CBFKGLB1.js → x-Cd6SFw8r.js} +1 -1
- package/package.json +8 -8
- package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
- package/dist/Toolbar-OGakTBEg.js +0 -2851
- package/dist/WrapperBlock-BOABSX9W.js +0 -46
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
- package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
- package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
- package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
- package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
- package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
- package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
- package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
- package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
- package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
- package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
- package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
- package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
- package/dist/en-CC-57eC_.js +0 -1
- package/dist/timeouts-DHPZQ0G3.js +0 -4
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, J as s, K as c, M as l, N as u, O as d, R as f, S as p, V as m, W as h, Y as g, Z as _, _ as v, at as y, b, c as x, d as S, g as C, h as w, it as T, j as E, jt as D, k as O, kt as k, l as A, nt as j, r as M, rt as ee, s as N, u as P, v as F, y as te } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
2
|
import { c as I, o as ne, s as re } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
3
|
-
import { D as ie, E as ae, F as oe, H as se,
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { i as
|
|
11
|
-
import { r as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
3
|
+
import { D as ie, E as ae, F as oe, H as se, K as ce, L as le, M as ue, N as de, O as fe, P as pe, Q as me, R as he, S as ge, T as _e, U as ve, W as ye, X as be, Y as xe, Z as Se, _ as Ce, _t as we, a as Te, at as Ee, b as De, c as Oe, ct as ke, dt as Ae, f as je, ft as Me, gt as Ne, ht as Pe, it as Fe, j as Ie, k as Le, lt as Re, mt as ze, o as Be, ot as Ve, p as He, pt as Ue, q as We, s as Ge, st as Ke, tt as qe, u as Je, ut as Ye, vt as Xe, w as Ze, x as Qe, y as $e, yt as et, z as tt } from "./dist-tsmnQugO.js";
|
|
4
|
+
import { B as nt, D as rt, E as it, I as at, L as ot, M as st, N as ct, O as lt, S as ut, _ as dt, a as ft, b as pt, g as mt, h as ht, l as gt, n as _t, p as vt, t as yt, u as bt, v as xt, w as St, x as Ct, y as wt, z as Tt } from "./socialIcons-PTiwhLoC.js";
|
|
5
|
+
import { _ as Et, h as Dt, v as Ot, y as kt } from "./dist-CUWI-IvA.js";
|
|
6
|
+
import { a as At, c as jt, i as Mt } from "./dist-DAAJogrx.js";
|
|
7
|
+
import { $ as Nt, A as Pt, B as Ft, C as It, D as Lt, E as Rt, F as zt, G as Bt, H as Vt, I as Ht, J as Ut, K as Wt, L as Gt, M as Kt, N as qt, O as Jt, P as Yt, Q as Xt, R as Zt, S as Qt, T as $t, V as en, X as tn, Y as nn, Z as rn, _ as an, a as on, b as sn, c as cn, d as ln, f as un, g as dn, h as fn, j as pn, k as mn, l as hn, m as gn, n as _n, o as vn, p as yn, q as bn, r as xn, s as Sn, v as Cn, w as wn, x as Tn, y as En, z as Dn } from "./keys-BKFq19a2.js";
|
|
8
|
+
import { t as On } from "./useI18n-CxVEpurs.js";
|
|
9
|
+
import { t as kn } from "./logger-BBlvSn6q.js";
|
|
10
|
+
import { i as An, r as jn, s as Mn, t as Nn } from "./usePopoverPosition-CwnH1o5g.js";
|
|
11
|
+
import { r as Pn, t as Fn } from "./templateSettingsFields-YCFVBVYh.js";
|
|
12
|
+
import { t as In } from "./createLucideIcon-CYHXK9hn.js";
|
|
13
|
+
import { t as Ln } from "./copy-BEcsAlfB.js";
|
|
14
|
+
import { t as Rn } from "./message-circle-DWU1pTM_.js";
|
|
15
|
+
import { t as zn } from "./trash-vlINTx32.js";
|
|
16
|
+
import { t as Bn } from "./triangle-alert-MRYSJ9T2.js";
|
|
17
|
+
import { t as Vn } from "./LoadingTrack-6XsqodoY.js";
|
|
18
|
+
import { t as Hn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
19
|
+
import { t as Un } from "./useEditorRoot-BD3piYtD.js";
|
|
20
20
|
import "./useCloudI18n-Nwqo7pI_.js";
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
21
|
+
import { t as Wn } from "./useMergeTag-CRkm5Ig6.js";
|
|
22
|
+
import { t as Gn } from "./useLogicTag-BHn67tDd.js";
|
|
23
23
|
//#region src/utils/activeEditorTracker.ts
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
let e = ++
|
|
27
|
-
return
|
|
24
|
+
var Kn = /* @__PURE__ */ new Set(), qn = 0, Jn = 0;
|
|
25
|
+
function Yn() {
|
|
26
|
+
let e = ++Jn;
|
|
27
|
+
return Kn.add(e), qn === 0 && (qn = e), {
|
|
28
28
|
id: e,
|
|
29
|
-
isActive: () =>
|
|
29
|
+
isActive: () => Kn.size <= 1 || qn === e,
|
|
30
30
|
claim: () => {
|
|
31
|
-
|
|
31
|
+
qn = e;
|
|
32
32
|
},
|
|
33
33
|
dispose: () => {
|
|
34
|
-
if (
|
|
35
|
-
let e = Array.from(
|
|
36
|
-
|
|
34
|
+
if (Kn.delete(e), qn === e) {
|
|
35
|
+
let e = Array.from(Kn);
|
|
36
|
+
qn = e[e.length - 1] ?? 0;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/composables/usePreviewResolution.ts
|
|
43
|
-
var
|
|
44
|
-
function
|
|
43
|
+
var Xn = 500;
|
|
44
|
+
function Zn(e) {
|
|
45
45
|
let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
|
|
46
46
|
function c() {
|
|
47
47
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -52,13 +52,13 @@ function Hn(e) {
|
|
|
52
52
|
let o = ++a;
|
|
53
53
|
r.value = !0;
|
|
54
54
|
let s = {
|
|
55
|
-
content:
|
|
55
|
+
content: Ae(e.getContent()),
|
|
56
56
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
57
57
|
};
|
|
58
58
|
try {
|
|
59
59
|
let e = await t(s);
|
|
60
60
|
if (o !== a) return;
|
|
61
|
-
if (!
|
|
61
|
+
if (!me(e)) {
|
|
62
62
|
i.value = !0;
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
@@ -73,7 +73,7 @@ function Hn(e) {
|
|
|
73
73
|
function u() {
|
|
74
74
|
t && (c(), n.value === null ? l() : o = setTimeout(() => {
|
|
75
75
|
o = null, l();
|
|
76
|
-
},
|
|
76
|
+
}, Xn));
|
|
77
77
|
}
|
|
78
78
|
return f(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
|
|
79
79
|
e ? u() : (c(), a++, r.value = !1, n.value = null, i.value = !1);
|
|
@@ -89,80 +89,8 @@ function Hn(e) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
//#region src/composables/useImageUrlResolver.ts
|
|
93
|
-
function Un(e) {
|
|
94
|
-
let t = g(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
|
|
95
|
-
function r(e) {
|
|
96
|
-
return t.get(e);
|
|
97
|
-
}
|
|
98
|
-
function i(e) {
|
|
99
|
-
return t.has(e) || n.has(e);
|
|
100
|
-
}
|
|
101
|
-
function a(r) {
|
|
102
|
-
if (i(r)) return;
|
|
103
|
-
let a;
|
|
104
|
-
try {
|
|
105
|
-
a = e(r);
|
|
106
|
-
} catch {
|
|
107
|
-
t.set(r, null);
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
a === null || typeof a == "string" ? t.set(r, a) : (n.add(r), Promise.resolve(a).then((e) => {
|
|
111
|
-
t.set(r, typeof e == "string" ? e : null);
|
|
112
|
-
}, () => {
|
|
113
|
-
t.set(r, null);
|
|
114
|
-
}).finally(() => n.delete(r)));
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
get: r,
|
|
118
|
-
has: i,
|
|
119
|
-
lookup: a
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function Wn(e) {
|
|
123
|
-
let t = p(gn, null), n = N(e);
|
|
124
|
-
if (!t) return n;
|
|
125
|
-
let r;
|
|
126
|
-
function i() {
|
|
127
|
-
r !== void 0 && (clearTimeout(r), r = void 0);
|
|
128
|
-
}
|
|
129
|
-
h() && s(i);
|
|
130
|
-
let a = !0;
|
|
131
|
-
return f(n, (e) => {
|
|
132
|
-
i();
|
|
133
|
-
let n = a;
|
|
134
|
-
a = !1, e && !t.has(e) && (n ? t.lookup(e) : r = setTimeout(() => {
|
|
135
|
-
r = void 0, t.lookup(e);
|
|
136
|
-
}, 300));
|
|
137
|
-
}, { immediate: !0 }), N(() => {
|
|
138
|
-
let e = n.value;
|
|
139
|
-
if (!e) return e;
|
|
140
|
-
let r = t.get(e);
|
|
141
|
-
return typeof r == "string" && r.length > 0 ? r : e;
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function Gn(e, t) {
|
|
145
|
-
if (!e || !t) return t;
|
|
146
|
-
let n = e.get(t);
|
|
147
|
-
return typeof n == "string" && n.length > 0 ? n : t;
|
|
148
|
-
}
|
|
149
|
-
function Kn(e, t) {
|
|
150
|
-
return typeof e?.url == "string" && Ce(e.url, t);
|
|
151
|
-
}
|
|
152
|
-
function qn(e, t) {
|
|
153
|
-
let n = e?.url;
|
|
154
|
-
if (typeof n == "string" && n.trim() !== "") return Ce(n, t) ? void 0 : n;
|
|
155
|
-
}
|
|
156
|
-
function Jn(e) {
|
|
157
|
-
let t = p(Bt, Ye.liquid), n = Wn(() => qn(e(), t));
|
|
158
|
-
return N(() => Kn(e(), t) ? null : n.value);
|
|
159
|
-
}
|
|
160
|
-
function Yn(e, t, n) {
|
|
161
|
-
return Kn(t, n) ? null : Gn(e, qn(t, n));
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
92
|
//#region src/composables/useMergeTagPicker.ts
|
|
165
|
-
function
|
|
93
|
+
function Qn() {
|
|
166
94
|
let e = _(!1), t = _([]), n = _(null), r = null;
|
|
167
95
|
function i(i, a) {
|
|
168
96
|
if (r) {
|
|
@@ -193,7 +121,7 @@ function Xn() {
|
|
|
193
121
|
}
|
|
194
122
|
//#endregion
|
|
195
123
|
//#region src/composables/useLogicTagPicker.ts
|
|
196
|
-
function
|
|
124
|
+
function $n() {
|
|
197
125
|
let e = _(!1), t = _([]), n = _([]), r = null;
|
|
198
126
|
function i(i, a) {
|
|
199
127
|
if (r) {
|
|
@@ -224,17 +152,17 @@ function Zn() {
|
|
|
224
152
|
}
|
|
225
153
|
//#endregion
|
|
226
154
|
//#region src/composables/useTemplateLint.ts
|
|
227
|
-
function
|
|
155
|
+
function er(e) {
|
|
228
156
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
|
|
229
157
|
}
|
|
230
|
-
function
|
|
231
|
-
let n = _([]), r = _(!1), i = _(!1), a = e(null), o =
|
|
158
|
+
function tr(t) {
|
|
159
|
+
let n = _([]), r = _(!1), i = _(!1), a = e(null), o = er(t.options), s = null, c = !1;
|
|
232
160
|
o || l();
|
|
233
161
|
async function l() {
|
|
234
162
|
try {
|
|
235
163
|
let e = await import("@templatical/quality");
|
|
236
164
|
if (c) return;
|
|
237
|
-
a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s =
|
|
165
|
+
a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = kt(t.content, u, {
|
|
238
166
|
debounce: t.debounce ?? 500,
|
|
239
167
|
deep: !0
|
|
240
168
|
});
|
|
@@ -269,7 +197,7 @@ function $n(t) {
|
|
|
269
197
|
}
|
|
270
198
|
//#endregion
|
|
271
199
|
//#region src/composables/useKeyboardReorder.ts
|
|
272
|
-
function
|
|
200
|
+
function nr(e, t, n = []) {
|
|
273
201
|
let r = _(null), i = _(""), a = null;
|
|
274
202
|
function o(t) {
|
|
275
203
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -296,7 +224,7 @@ function er(e, t, n = []) {
|
|
|
296
224
|
let i = o(r);
|
|
297
225
|
if (!i) return "";
|
|
298
226
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
299
|
-
return a ?
|
|
227
|
+
return a ? ut(a, t.t, n) : "";
|
|
300
228
|
}
|
|
301
229
|
function c(t, n) {
|
|
302
230
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -365,13 +293,13 @@ function er(e, t, n = []) {
|
|
|
365
293
|
}
|
|
366
294
|
//#endregion
|
|
367
295
|
//#region src/composables/useUiTheme.ts
|
|
368
|
-
function
|
|
369
|
-
let t =
|
|
296
|
+
function rr(e) {
|
|
297
|
+
let t = jt("(prefers-color-scheme: dark)");
|
|
370
298
|
return { resolvedTheme: N(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
371
299
|
}
|
|
372
300
|
//#endregion
|
|
373
301
|
//#region src/composables/useThemeStyles.ts
|
|
374
|
-
var
|
|
302
|
+
var ir = {
|
|
375
303
|
bg: "--tpl-bg",
|
|
376
304
|
bgElevated: "--tpl-bg-elevated",
|
|
377
305
|
bgHover: "--tpl-bg-hover",
|
|
@@ -395,10 +323,10 @@ var nr = {
|
|
|
395
323
|
dangerLight: "--tpl-danger-light",
|
|
396
324
|
canvasBg: "--tpl-canvas-bg"
|
|
397
325
|
};
|
|
398
|
-
function
|
|
326
|
+
function ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
399
327
|
return { themeStyles: N(() => {
|
|
400
328
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
401
|
-
if (a) for (let [e, t] of Object.entries(
|
|
329
|
+
if (a) for (let [e, t] of Object.entries(ir)) {
|
|
402
330
|
let n = a[e];
|
|
403
331
|
n && (r[t] = n);
|
|
404
332
|
}
|
|
@@ -407,7 +335,7 @@ function rr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
407
335
|
}
|
|
408
336
|
//#endregion
|
|
409
337
|
//#region src/composables/useBlockRegistry.ts
|
|
410
|
-
function
|
|
338
|
+
function or() {
|
|
411
339
|
let t = e(/* @__PURE__ */ new Map());
|
|
412
340
|
function n(e, n) {
|
|
413
341
|
t.value.set(e, n), T(t);
|
|
@@ -447,7 +375,7 @@ function ir() {
|
|
|
447
375
|
strictFilters: !1
|
|
448
376
|
}).parseAndRender(t.template, e.fieldValues);
|
|
449
377
|
} catch (t) {
|
|
450
|
-
return
|
|
378
|
+
return kn.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
|
|
451
379
|
}
|
|
452
380
|
}
|
|
453
381
|
function l(e) {
|
|
@@ -465,9 +393,9 @@ function ir() {
|
|
|
465
393
|
}
|
|
466
394
|
//#endregion
|
|
467
395
|
//#region src/composables/useCustomBlockStylesheets.ts
|
|
468
|
-
function
|
|
396
|
+
function sr(e, t) {
|
|
469
397
|
return N(() => {
|
|
470
|
-
let n =
|
|
398
|
+
let n = cr(e.value.blocks);
|
|
471
399
|
if (n.size === 0) return [];
|
|
472
400
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
473
401
|
for (let e of n) {
|
|
@@ -479,32 +407,32 @@ function ar(e, t) {
|
|
|
479
407
|
return i;
|
|
480
408
|
});
|
|
481
409
|
}
|
|
482
|
-
function
|
|
410
|
+
function cr(e) {
|
|
483
411
|
let t = /* @__PURE__ */ new Set();
|
|
484
|
-
return
|
|
412
|
+
return lr(e, t), t;
|
|
485
413
|
}
|
|
486
|
-
function
|
|
487
|
-
for (let n of e) if (
|
|
414
|
+
function lr(e, t) {
|
|
415
|
+
for (let n of e) if (xe(n)) t.add(n.customType);
|
|
488
416
|
else if (n.type === "section") {
|
|
489
417
|
let e = n.children;
|
|
490
418
|
if (!e) continue;
|
|
491
|
-
for (let n of e)
|
|
492
|
-
} else
|
|
419
|
+
for (let n of e) lr(n, t);
|
|
420
|
+
} else qe(n) && lr(n.children, t);
|
|
493
421
|
}
|
|
494
422
|
//#endregion
|
|
495
423
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
496
|
-
var
|
|
424
|
+
var ur = [
|
|
497
425
|
{
|
|
498
426
|
type: "section",
|
|
499
|
-
createBlock:
|
|
427
|
+
createBlock: Le
|
|
500
428
|
},
|
|
501
429
|
{
|
|
502
430
|
type: "title",
|
|
503
|
-
createBlock:
|
|
431
|
+
createBlock: pe
|
|
504
432
|
},
|
|
505
433
|
{
|
|
506
434
|
type: "paragraph",
|
|
507
|
-
createBlock:
|
|
435
|
+
createBlock: fe
|
|
508
436
|
},
|
|
509
437
|
{
|
|
510
438
|
type: "image",
|
|
@@ -524,7 +452,7 @@ var cr = [
|
|
|
524
452
|
},
|
|
525
453
|
{
|
|
526
454
|
type: "social",
|
|
527
|
-
createBlock:
|
|
455
|
+
createBlock: Ie
|
|
528
456
|
},
|
|
529
457
|
{
|
|
530
458
|
type: "menu",
|
|
@@ -532,11 +460,11 @@ var cr = [
|
|
|
532
460
|
},
|
|
533
461
|
{
|
|
534
462
|
type: "table",
|
|
535
|
-
createBlock:
|
|
463
|
+
createBlock: de
|
|
536
464
|
},
|
|
537
465
|
{
|
|
538
466
|
type: "spacer",
|
|
539
|
-
createBlock:
|
|
467
|
+
createBlock: ue
|
|
540
468
|
},
|
|
541
469
|
{
|
|
542
470
|
type: "html",
|
|
@@ -547,8 +475,8 @@ var cr = [
|
|
|
547
475
|
createBlock: Qe
|
|
548
476
|
}
|
|
549
477
|
];
|
|
550
|
-
function
|
|
551
|
-
for (let n of
|
|
478
|
+
function dr(e, t) {
|
|
479
|
+
for (let n of ur) {
|
|
552
480
|
let r = t[n.type];
|
|
553
481
|
r && e.registerBuiltIn(n.type, {
|
|
554
482
|
component: r,
|
|
@@ -558,33 +486,33 @@ function lr(e, t) {
|
|
|
558
486
|
}
|
|
559
487
|
//#endregion
|
|
560
488
|
//#region src/utils/resolveHtmlBlockPreview.ts
|
|
561
|
-
function
|
|
489
|
+
function fr(e) {
|
|
562
490
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
563
491
|
}
|
|
564
492
|
//#endregion
|
|
565
493
|
//#region src/utils/collectOffPaletteDefaults.ts
|
|
566
|
-
function
|
|
494
|
+
function pr(e) {
|
|
567
495
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
568
496
|
}
|
|
569
|
-
function
|
|
570
|
-
let r = new Set(e.map((e) =>
|
|
571
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
497
|
+
function mr(e, t, n) {
|
|
498
|
+
let r = new Set(e.map((e) => jn(e))), i = [], a = (e, t) => {
|
|
499
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(jn(o)) && i.push(`${t}.${n}: ${o}`) : pr(o) && a(o, `${t}.${n}`);
|
|
572
500
|
}, o = t;
|
|
573
501
|
for (let [e, t] of Object.entries(Te)) {
|
|
574
502
|
let n = o?.[e];
|
|
575
503
|
a({
|
|
576
504
|
...t,
|
|
577
|
-
...
|
|
505
|
+
...pr(n) ? n : {}
|
|
578
506
|
}, e);
|
|
579
507
|
}
|
|
580
508
|
return a({
|
|
581
|
-
...
|
|
509
|
+
...Be,
|
|
582
510
|
...n ?? {}
|
|
583
511
|
}, "template"), i;
|
|
584
512
|
}
|
|
585
513
|
//#endregion
|
|
586
514
|
//#region src/utils/localizedBlockDefaults.ts
|
|
587
|
-
function
|
|
515
|
+
function hr(e) {
|
|
588
516
|
return {
|
|
589
517
|
title: { content: `<p>${e.blockDefaults.title}</p>` },
|
|
590
518
|
paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
|
|
@@ -593,63 +521,63 @@ function pr(e) {
|
|
|
593
521
|
}
|
|
594
522
|
//#endregion
|
|
595
523
|
//#region src/i18n/index.ts
|
|
596
|
-
var
|
|
597
|
-
"./locales/ca.ts": () => import("./ca-
|
|
598
|
-
"./locales/de.ts": () => import("./de-
|
|
599
|
-
"./locales/en.ts": () => import("./en-
|
|
600
|
-
"./locales/es.ts": () => import("./es-
|
|
601
|
-
"./locales/fr.ts": () => import("./fr-
|
|
602
|
-
"./locales/ja.ts": () => import("./ja-
|
|
603
|
-
"./locales/nl.ts": () => import("./nl-
|
|
604
|
-
"./locales/pt-BR.ts": () => import("./pt-BR-
|
|
605
|
-
}),
|
|
524
|
+
var gr = /* #__PURE__ */ Object.assign({
|
|
525
|
+
"./locales/ca.ts": () => import("./ca-CbNzJM3I.js"),
|
|
526
|
+
"./locales/de.ts": () => import("./de-DMquBpZM.js"),
|
|
527
|
+
"./locales/en.ts": () => import("./en-C8Mp71sO.js"),
|
|
528
|
+
"./locales/es.ts": () => import("./es-Byq4tthI.js"),
|
|
529
|
+
"./locales/fr.ts": () => import("./fr-B3j35HEw.js"),
|
|
530
|
+
"./locales/ja.ts": () => import("./ja-D7txAuGS.js"),
|
|
531
|
+
"./locales/nl.ts": () => import("./nl-ClJ3BY3F.js"),
|
|
532
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-DibcXcmv.js")
|
|
533
|
+
}), _r = /* #__PURE__ */ Object.assign({
|
|
606
534
|
"./locales/cloud/de.ts": () => import("./de-mMY5yQJu.js"),
|
|
607
535
|
"./locales/cloud/en.ts": () => import("./en-ChVeGQBY.js"),
|
|
608
536
|
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-CoCwRUi0.js")
|
|
609
537
|
});
|
|
610
|
-
function
|
|
538
|
+
function vr(e) {
|
|
611
539
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
612
540
|
}
|
|
613
|
-
var
|
|
614
|
-
function
|
|
541
|
+
var yr = vr(gr), br = vr(_r);
|
|
542
|
+
function xr(e) {
|
|
615
543
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
616
544
|
}
|
|
617
|
-
function
|
|
618
|
-
let n =
|
|
619
|
-
return t.find((e) =>
|
|
545
|
+
function Sr(e, t) {
|
|
546
|
+
let n = xr(e);
|
|
547
|
+
return t.find((e) => xr(e) === n);
|
|
620
548
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
549
|
+
function Cr(e) {
|
|
550
|
+
return xr(e).split("-")[0];
|
|
623
551
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
552
|
+
function wr(e, t) {
|
|
553
|
+
return Sr(e, t) ?? Sr(Cr(e), t);
|
|
626
554
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
555
|
+
function Tr(e, t) {
|
|
556
|
+
return wr(e, t) ?? "en";
|
|
629
557
|
}
|
|
630
|
-
async function
|
|
631
|
-
let t =
|
|
558
|
+
async function Er(e) {
|
|
559
|
+
let t = gr[`./locales/${Tr(e, yr)}.ts`];
|
|
632
560
|
return (await t()).default;
|
|
633
561
|
}
|
|
634
|
-
async function
|
|
635
|
-
let t =
|
|
562
|
+
async function Dr(e) {
|
|
563
|
+
let t = _r[`./locales/cloud/${Tr(e, br)}.ts`];
|
|
636
564
|
return (await t()).default;
|
|
637
565
|
}
|
|
638
|
-
function
|
|
639
|
-
return
|
|
566
|
+
function Or(e) {
|
|
567
|
+
return wr(e, yr) !== void 0;
|
|
640
568
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
569
|
+
function kr(e) {
|
|
570
|
+
return wr(e, br) !== void 0;
|
|
643
571
|
}
|
|
644
|
-
function
|
|
645
|
-
return [...
|
|
572
|
+
function Ar() {
|
|
573
|
+
return [...yr];
|
|
646
574
|
}
|
|
647
|
-
function
|
|
648
|
-
return [...
|
|
575
|
+
function jr() {
|
|
576
|
+
return [...br];
|
|
649
577
|
}
|
|
650
578
|
//#endregion
|
|
651
579
|
//#region src/i18n/contentDefaults.ts
|
|
652
|
-
var
|
|
580
|
+
var Mr = {
|
|
653
581
|
en: {
|
|
654
582
|
video: "Video",
|
|
655
583
|
days: "Days",
|
|
@@ -715,17 +643,17 @@ var Ar = {
|
|
|
715
643
|
expired: "このオファーは終了しました"
|
|
716
644
|
}
|
|
717
645
|
};
|
|
718
|
-
Object.keys(
|
|
719
|
-
var
|
|
720
|
-
function
|
|
721
|
-
if (!e) return
|
|
722
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n =
|
|
723
|
-
if (n) return
|
|
724
|
-
let r =
|
|
725
|
-
return r ?
|
|
726
|
-
}
|
|
727
|
-
function
|
|
728
|
-
let t =
|
|
646
|
+
Object.keys(Mr);
|
|
647
|
+
var Nr = new Map(Object.keys(Mr).map((e) => [e.toLowerCase(), e]));
|
|
648
|
+
function Pr(e) {
|
|
649
|
+
if (!e) return Mr.en;
|
|
650
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Nr.get(t);
|
|
651
|
+
if (n) return Mr[n];
|
|
652
|
+
let r = Nr.get(Cr(t));
|
|
653
|
+
return r ? Mr[r] : Mr.en;
|
|
654
|
+
}
|
|
655
|
+
function Fr(e) {
|
|
656
|
+
let t = Pr(e);
|
|
729
657
|
return {
|
|
730
658
|
video: { alt: t.video },
|
|
731
659
|
countdown: {
|
|
@@ -739,9 +667,9 @@ function Nr(e) {
|
|
|
739
667
|
}
|
|
740
668
|
//#endregion
|
|
741
669
|
//#region src/utils/collectColorFieldIssues.ts
|
|
742
|
-
function
|
|
670
|
+
function Ir(e, t) {
|
|
743
671
|
let n = [], r = (r, i) => {
|
|
744
|
-
let a =
|
|
672
|
+
let a = Ct(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
745
673
|
if (a.invalidPresets.length > 0 && n.push({
|
|
746
674
|
id: s("invalid-presets"),
|
|
747
675
|
message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
|
|
@@ -752,8 +680,8 @@ function Pr(e, t) {
|
|
|
752
680
|
id: s("allow-custom-ignored"),
|
|
753
681
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
754
682
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
755
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
756
|
-
e !== "" && !t.has(
|
|
683
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => jn(e)));
|
|
684
|
+
e !== "" && !t.has(jn(e)) && n.push({
|
|
757
685
|
id: s("off-palette-default"),
|
|
758
686
|
message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
|
|
759
687
|
});
|
|
@@ -765,7 +693,7 @@ function Pr(e, t) {
|
|
|
765
693
|
}
|
|
766
694
|
//#endregion
|
|
767
695
|
//#region src/utils/keyboardShortcuts.ts
|
|
768
|
-
function
|
|
696
|
+
function Lr(e) {
|
|
769
697
|
for (let t of e.composedPath()) {
|
|
770
698
|
if (!(t instanceof HTMLElement)) continue;
|
|
771
699
|
if (t.isContentEditable) return !0;
|
|
@@ -774,14 +702,14 @@ function Fr(e) {
|
|
|
774
702
|
}
|
|
775
703
|
return !1;
|
|
776
704
|
}
|
|
777
|
-
function
|
|
705
|
+
function Rr(e, t) {
|
|
778
706
|
let n = e.metaKey || e.ctrlKey;
|
|
779
707
|
if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
|
|
780
708
|
else if (n && e.key.toLowerCase() === "z") {
|
|
781
|
-
if (
|
|
709
|
+
if (Lr(e)) return;
|
|
782
710
|
e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
|
|
783
711
|
} else {
|
|
784
|
-
if (t.isPicking?.() && !
|
|
712
|
+
if (t.isPicking?.() && !Lr(e)) {
|
|
785
713
|
if (e.key === "Escape") {
|
|
786
714
|
e.preventDefault(), t.onCancelPick?.();
|
|
787
715
|
return;
|
|
@@ -795,26 +723,26 @@ function Ir(e, t) {
|
|
|
795
723
|
return;
|
|
796
724
|
}
|
|
797
725
|
}
|
|
798
|
-
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
726
|
+
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Lr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
799
727
|
}
|
|
800
728
|
}
|
|
801
729
|
//#endregion
|
|
802
730
|
//#region src/utils/blockComponentResolver.ts
|
|
803
|
-
function
|
|
731
|
+
function zr(e, t) {
|
|
804
732
|
let n = { fontFamily: t(e.fontFamily) };
|
|
805
733
|
return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
|
|
806
734
|
}
|
|
807
|
-
function
|
|
735
|
+
function Br(e, t, n) {
|
|
808
736
|
if (t) {
|
|
809
737
|
let n = t.getComponent(e);
|
|
810
738
|
if (n) return n;
|
|
811
739
|
}
|
|
812
740
|
return n[e.type] ?? null;
|
|
813
741
|
}
|
|
814
|
-
var
|
|
815
|
-
function
|
|
742
|
+
var Vr = "--tpl-block-bg-layer", Hr = "tpl-has-bg-image";
|
|
743
|
+
function Ur(e, t) {
|
|
816
744
|
if (t === null) return {};
|
|
817
|
-
let n =
|
|
745
|
+
let n = Fe(e);
|
|
818
746
|
if (n === null) return {};
|
|
819
747
|
let r = t?.trim(), i = r ? he(r) : n.url;
|
|
820
748
|
return {
|
|
@@ -822,51 +750,78 @@ function Vr(e, t) {
|
|
|
822
750
|
backgroundSize: n.size,
|
|
823
751
|
backgroundPosition: n.position,
|
|
824
752
|
backgroundRepeat: n.repeat,
|
|
825
|
-
[
|
|
753
|
+
[Vr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
function Wr(e) {
|
|
757
|
+
return e && Vr in e ? Hr : void 0;
|
|
758
|
+
}
|
|
759
|
+
var Gr = {
|
|
760
|
+
top: "flex-start",
|
|
761
|
+
middle: "center",
|
|
762
|
+
bottom: "flex-end"
|
|
763
|
+
};
|
|
764
|
+
function Kr(e, t) {
|
|
765
|
+
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${qr(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
|
|
766
|
+
return {
|
|
767
|
+
display: "flex",
|
|
768
|
+
flexDirection: "column",
|
|
769
|
+
justifyContent: Gr[e.verticalAlign],
|
|
770
|
+
boxSizing: "border-box",
|
|
771
|
+
...n
|
|
826
772
|
};
|
|
827
773
|
}
|
|
828
|
-
function
|
|
829
|
-
return
|
|
774
|
+
function qr(e, t) {
|
|
775
|
+
return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
|
|
830
776
|
}
|
|
831
|
-
function
|
|
777
|
+
function Jr(e, t = {}) {
|
|
832
778
|
if (e.type === "wrapper") return {};
|
|
833
779
|
let { padding: n, backgroundColor: r } = e.styles, i = {
|
|
834
780
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
835
781
|
backgroundColor: r || "transparent"
|
|
836
782
|
};
|
|
837
783
|
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Oe.paragraphGap : Oe.paragraphGap}px`), e.type === "section") {
|
|
838
|
-
let n =
|
|
839
|
-
n !== null && (i.borderRadius = n)
|
|
784
|
+
let n = et(e.borderRadius);
|
|
785
|
+
n !== null && (i.borderRadius = n);
|
|
786
|
+
let r = Ke(e);
|
|
787
|
+
r?.applied && e.backgroundImage ? (Object.assign(i, Kr(r, t.heroBoxWidth)), Object.assign(i, Ur({
|
|
788
|
+
...e.backgroundImage,
|
|
789
|
+
size: "cover",
|
|
790
|
+
repeat: !1
|
|
791
|
+
}, t.backgroundImageUrl))) : (Object.assign(i, Xr(e.border)), Object.assign(i, Ur(e.backgroundImage, t.backgroundImageUrl)));
|
|
840
792
|
}
|
|
841
793
|
return i;
|
|
842
794
|
}
|
|
843
|
-
function
|
|
844
|
-
return e.type === "section" ?
|
|
795
|
+
function Yr(e, t, n, r) {
|
|
796
|
+
return e.type === "section" ? Jr(e, {
|
|
797
|
+
backgroundImageUrl: it(t, e.backgroundImage, n),
|
|
798
|
+
heroBoxWidth: r
|
|
799
|
+
}) : Jr(e);
|
|
845
800
|
}
|
|
846
|
-
function
|
|
801
|
+
function Xr(e) {
|
|
847
802
|
let t = {};
|
|
848
|
-
for (let [n, r] of Object.entries(
|
|
803
|
+
for (let [n, r] of Object.entries(Xe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
849
804
|
return t;
|
|
850
805
|
}
|
|
851
|
-
function
|
|
806
|
+
function Zr(e, t = {}) {
|
|
852
807
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
853
808
|
let n = e.wrapper, r = {};
|
|
854
809
|
n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
|
|
855
|
-
let i =
|
|
856
|
-
return i !== null && (r.borderRadius = i), Object.assign(r,
|
|
810
|
+
let i = et(n.borderRadius);
|
|
811
|
+
return i !== null && (r.borderRadius = i), Object.assign(r, Ur(n.backgroundImage, t.backgroundImageUrl)), r;
|
|
857
812
|
}
|
|
858
|
-
function
|
|
813
|
+
function Qr(e, t = {}) {
|
|
859
814
|
if (e.type !== "wrapper") return null;
|
|
860
815
|
let n = {};
|
|
861
816
|
if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
|
|
862
817
|
let t = e.styles.padding;
|
|
863
818
|
n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
|
|
864
819
|
}
|
|
865
|
-
return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n,
|
|
820
|
+
return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ur(e.backgroundImage, t.backgroundImageUrl)), n;
|
|
866
821
|
}
|
|
867
822
|
//#endregion
|
|
868
823
|
//#region src/utils/mergeTagLabelSegments.ts
|
|
869
|
-
function
|
|
824
|
+
function $r(e, t, n, r = !1) {
|
|
870
825
|
if (!e) return [];
|
|
871
826
|
let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
|
|
872
827
|
for (; (s = i.exec(e)) !== null;) {
|
|
@@ -875,7 +830,7 @@ function Jr(e, t, n, r = !1) {
|
|
|
875
830
|
value: e.slice(o, s.index)
|
|
876
831
|
});
|
|
877
832
|
let i = s[0];
|
|
878
|
-
if (
|
|
833
|
+
if (Se(i, n)) {
|
|
879
834
|
let e = r ? ye(i, t) : void 0;
|
|
880
835
|
a.push(e === void 0 ? {
|
|
881
836
|
type: "tag",
|
|
@@ -884,7 +839,7 @@ function Jr(e, t, n, r = !1) {
|
|
|
884
839
|
type: "text",
|
|
885
840
|
value: e
|
|
886
841
|
});
|
|
887
|
-
} else
|
|
842
|
+
} else be(i, n) ? a.push({
|
|
888
843
|
type: "tag",
|
|
889
844
|
value: se(i, n)
|
|
890
845
|
}) : a.push({
|
|
@@ -900,27 +855,27 @@ function Jr(e, t, n, r = !1) {
|
|
|
900
855
|
}
|
|
901
856
|
//#endregion
|
|
902
857
|
//#region src/components/MergeTagPreviewText.vue
|
|
903
|
-
var
|
|
858
|
+
var ei = F({
|
|
904
859
|
name: "MergeTagPreviewText",
|
|
905
860
|
props: { text: {
|
|
906
861
|
type: String,
|
|
907
862
|
required: !0
|
|
908
863
|
} },
|
|
909
864
|
setup(e) {
|
|
910
|
-
let t = p(
|
|
865
|
+
let t = p(Jt, zt), n = p(Yt, Je.liquid), r = p(Xt, null), i = N(() => $r(e.text, t.value, n, r?.value ?? !1));
|
|
911
866
|
return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
|
|
912
867
|
key: t,
|
|
913
868
|
class: "tpl-merge-tag-label"
|
|
914
869
|
}, e.value) : e.value);
|
|
915
870
|
}
|
|
916
|
-
}),
|
|
871
|
+
}), ti = ["href"], ni = /* @__PURE__ */ F({
|
|
917
872
|
__name: "ButtonBlock",
|
|
918
873
|
props: {
|
|
919
874
|
block: {},
|
|
920
875
|
viewport: {}
|
|
921
876
|
},
|
|
922
877
|
setup(e) {
|
|
923
|
-
let r = e, i =
|
|
878
|
+
let r = e, i = Nt(Cn, "ButtonBlock"), a = N(() => {
|
|
924
879
|
let e = {
|
|
925
880
|
display: "inline-block",
|
|
926
881
|
padding: `${r.block.buttonPadding.top}px ${r.block.buttonPadding.right}px ${r.block.buttonPadding.bottom}px ${r.block.buttonPadding.left}px`,
|
|
@@ -929,26 +884,26 @@ var Yr = F({
|
|
|
929
884
|
fontSize: `${r.block.fontSize}px`,
|
|
930
885
|
fontWeight: "bold",
|
|
931
886
|
textDecoration: "none",
|
|
932
|
-
borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` :
|
|
887
|
+
borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : et(r.block.borderRadius) ?? "0px",
|
|
933
888
|
textAlign: "center"
|
|
934
889
|
};
|
|
935
|
-
return Object.assign(e,
|
|
890
|
+
return Object.assign(e, Xr(r.block.border)), r.block.fontFamily && (e.fontFamily = i.resolveFontFamily(r.block.fontFamily)), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
|
|
936
891
|
}), o = N(() => ({ textAlign: r.block.align ?? "center" }));
|
|
937
892
|
return (r, i) => (t(), S("div", { style: n(o.value) }, [x("a", {
|
|
938
893
|
href: e.block.url || "#",
|
|
939
894
|
style: n(a.value),
|
|
940
895
|
class: "tpl:cursor-default",
|
|
941
896
|
onClick: i[0] ||= I(() => {}, ["prevent"])
|
|
942
|
-
}, [C(
|
|
897
|
+
}, [C(ei, { text: e.block.text }, null, 8, ["text"])], 12, ti)], 4));
|
|
943
898
|
}
|
|
944
|
-
}),
|
|
899
|
+
}), ri = In({
|
|
945
900
|
name: "bookmark",
|
|
946
901
|
size: 24,
|
|
947
902
|
node: [["path", {
|
|
948
903
|
d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
|
|
949
904
|
key: "oz39mx"
|
|
950
905
|
}]]
|
|
951
|
-
}),
|
|
906
|
+
}), ii = In({
|
|
952
907
|
name: "box",
|
|
953
908
|
size: 24,
|
|
954
909
|
node: [
|
|
@@ -965,7 +920,7 @@ var Yr = F({
|
|
|
965
920
|
key: "d0xqtd"
|
|
966
921
|
}]
|
|
967
922
|
]
|
|
968
|
-
}),
|
|
923
|
+
}), ai = In({
|
|
969
924
|
name: "eye-off",
|
|
970
925
|
size: 24,
|
|
971
926
|
node: [
|
|
@@ -986,7 +941,7 @@ var Yr = F({
|
|
|
986
941
|
key: "1ooewy"
|
|
987
942
|
}]
|
|
988
943
|
]
|
|
989
|
-
}),
|
|
944
|
+
}), oi = In({
|
|
990
945
|
name: "funnel",
|
|
991
946
|
size: 24,
|
|
992
947
|
node: [["path", {
|
|
@@ -994,7 +949,7 @@ var Yr = F({
|
|
|
994
949
|
key: "sc7q7i"
|
|
995
950
|
}]],
|
|
996
951
|
aliases: ["filter"]
|
|
997
|
-
}),
|
|
952
|
+
}), si = In({
|
|
998
953
|
name: "grip-vertical",
|
|
999
954
|
size: 24,
|
|
1000
955
|
node: [
|
|
@@ -1035,14 +990,14 @@ var Yr = F({
|
|
|
1035
990
|
key: "f4zoj3"
|
|
1036
991
|
}]
|
|
1037
992
|
]
|
|
1038
|
-
}),
|
|
993
|
+
}), ci = In({
|
|
1039
994
|
name: "puzzle",
|
|
1040
995
|
size: 24,
|
|
1041
996
|
node: [["path", {
|
|
1042
997
|
d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
|
|
1043
998
|
key: "w46dr5"
|
|
1044
999
|
}]]
|
|
1045
|
-
}),
|
|
1000
|
+
}), li = In({
|
|
1046
1001
|
name: "video",
|
|
1047
1002
|
size: 24,
|
|
1048
1003
|
node: [["path", {
|
|
@@ -1056,11 +1011,11 @@ var Yr = F({
|
|
|
1056
1011
|
rx: "2",
|
|
1057
1012
|
key: "158x01"
|
|
1058
1013
|
}]]
|
|
1059
|
-
}),
|
|
1014
|
+
}), ui = ["innerHTML"], di = [
|
|
1060
1015
|
"src",
|
|
1061
1016
|
"width",
|
|
1062
1017
|
"height"
|
|
1063
|
-
],
|
|
1018
|
+
], fi = /* @__PURE__ */ F({
|
|
1064
1019
|
__name: "CustomBlockIcon",
|
|
1065
1020
|
props: {
|
|
1066
1021
|
icon: {},
|
|
@@ -1076,24 +1031,24 @@ var Yr = F({
|
|
|
1076
1031
|
height: `${i.value}px`
|
|
1077
1032
|
}),
|
|
1078
1033
|
innerHTML: e.icon
|
|
1079
|
-
}, null, 12,
|
|
1034
|
+
}, null, 12, ui)) : o.value ? (t(), S("img", {
|
|
1080
1035
|
key: 1,
|
|
1081
1036
|
src: e.icon,
|
|
1082
1037
|
width: i.value,
|
|
1083
1038
|
height: i.value,
|
|
1084
1039
|
class: "tpl:inline-block",
|
|
1085
1040
|
alt: ""
|
|
1086
|
-
}, null, 8,
|
|
1041
|
+
}, null, 8, di)) : (t(), A(y(ii), {
|
|
1087
1042
|
key: 2,
|
|
1088
1043
|
size: i.value,
|
|
1089
1044
|
"stroke-width": 1.5
|
|
1090
1045
|
}, null, 8, ["size"]));
|
|
1091
1046
|
}
|
|
1092
|
-
}),
|
|
1093
|
-
function
|
|
1094
|
-
let n =
|
|
1047
|
+
}), pi = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1048
|
+
function mi(e, t) {
|
|
1049
|
+
let n = Un(), r = null, i = null, a = null;
|
|
1095
1050
|
function o() {
|
|
1096
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
1051
|
+
return e.value ? Array.from(e.value.querySelectorAll(pi)).filter((e) => e.offsetParent !== null) : [];
|
|
1097
1052
|
}
|
|
1098
1053
|
function c(e) {
|
|
1099
1054
|
if (e.key !== "Tab") return;
|
|
@@ -1108,7 +1063,7 @@ function li(e, t) {
|
|
|
1108
1063
|
a = null;
|
|
1109
1064
|
let t = o();
|
|
1110
1065
|
t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
|
|
1111
|
-
}), i =
|
|
1066
|
+
}), i = At(e, "keydown", c);
|
|
1112
1067
|
}
|
|
1113
1068
|
function u(e = {}) {
|
|
1114
1069
|
let t = e.restoreFocus !== !1;
|
|
@@ -1123,8 +1078,8 @@ function li(e, t) {
|
|
|
1123
1078
|
}
|
|
1124
1079
|
//#endregion
|
|
1125
1080
|
//#region src/composables/useEmoji.ts
|
|
1126
|
-
function
|
|
1127
|
-
let [t, n] =
|
|
1081
|
+
function hi() {
|
|
1082
|
+
let [t, n] = Ot(!1), r = e([]), i = !1;
|
|
1128
1083
|
s(() => {
|
|
1129
1084
|
i = !0;
|
|
1130
1085
|
}), f(t, async (e) => {
|
|
@@ -1149,7 +1104,7 @@ function ui() {
|
|
|
1149
1104
|
}
|
|
1150
1105
|
//#endregion
|
|
1151
1106
|
//#region src/composables/useFonts.ts
|
|
1152
|
-
var
|
|
1107
|
+
var gi = [
|
|
1153
1108
|
{
|
|
1154
1109
|
value: "Arial",
|
|
1155
1110
|
label: "Arial"
|
|
@@ -1178,19 +1133,19 @@ var di = [
|
|
|
1178
1133
|
value: "Courier New",
|
|
1179
1134
|
label: "Courier New"
|
|
1180
1135
|
}
|
|
1181
|
-
],
|
|
1182
|
-
function
|
|
1183
|
-
if (e === void 0 || e === !0) return [...
|
|
1136
|
+
], _i = "Arial, sans-serif";
|
|
1137
|
+
function vi(e) {
|
|
1138
|
+
if (e === void 0 || e === !0) return [...gi];
|
|
1184
1139
|
if (e === !1) return [];
|
|
1185
1140
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
1186
1141
|
for (let i of e) {
|
|
1187
|
-
let e = i.toLowerCase(), a =
|
|
1188
|
-
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e),
|
|
1142
|
+
let e = i.toLowerCase(), a = gi.find((t) => t.value.toLowerCase() === e);
|
|
1143
|
+
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), kn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${gi.map((e) => e.value).join(", ")}.`));
|
|
1189
1144
|
}
|
|
1190
1145
|
return t;
|
|
1191
1146
|
}
|
|
1192
|
-
function
|
|
1193
|
-
let t = _(e?.customFonts ?? []), n = _(!1), r =
|
|
1147
|
+
function yi(e) {
|
|
1148
|
+
let t = _(e?.customFonts ?? []), n = _(!1), r = vi(e?.builtIns), i = N(() => e?.defaultFallback ?? _i), a = N(() => {
|
|
1194
1149
|
let e = [...r], n = t.value.map((e) => ({
|
|
1195
1150
|
value: e.name,
|
|
1196
1151
|
label: e.name,
|
|
@@ -1201,18 +1156,18 @@ function mi(e) {
|
|
|
1201
1156
|
function o(e) {
|
|
1202
1157
|
return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1203
1158
|
}
|
|
1204
|
-
let c = e?.defaultFont ??
|
|
1205
|
-
o(c) ||
|
|
1159
|
+
let c = e?.defaultFont ?? _i.split(",")[0].trim();
|
|
1160
|
+
o(c) || kn.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
|
|
1206
1161
|
function l() {
|
|
1207
1162
|
if (e?.defaultFont && o(e.defaultFont)) {
|
|
1208
1163
|
let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1209
1164
|
if (t) return t.value;
|
|
1210
1165
|
}
|
|
1211
|
-
return
|
|
1166
|
+
return _i;
|
|
1212
1167
|
}
|
|
1213
1168
|
let u = N(() => l());
|
|
1214
1169
|
function d(e) {
|
|
1215
|
-
return
|
|
1170
|
+
return Ve(e, {
|
|
1216
1171
|
customFonts: t.value,
|
|
1217
1172
|
defaultFallback: i.value
|
|
1218
1173
|
});
|
|
@@ -1231,7 +1186,7 @@ function mi(e) {
|
|
|
1231
1186
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
1232
1187
|
});
|
|
1233
1188
|
} catch (t) {
|
|
1234
|
-
|
|
1189
|
+
kn.warn(`Failed to load custom font "${e.name}":`, t);
|
|
1235
1190
|
}
|
|
1236
1191
|
});
|
|
1237
1192
|
await Promise.allSettled(e), !p && (n.value = !0);
|
|
@@ -1256,8 +1211,8 @@ function mi(e) {
|
|
|
1256
1211
|
}
|
|
1257
1212
|
//#endregion
|
|
1258
1213
|
//#region src/utils/mergeTagNodeSpec.ts
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1214
|
+
function bi(e, t, n) {
|
|
1215
|
+
return be(e, n) ? {
|
|
1261
1216
|
type: "logicMergeTagNode",
|
|
1262
1217
|
attrs: {
|
|
1263
1218
|
value: e,
|
|
@@ -1273,33 +1228,33 @@ function hi(e, t, n) {
|
|
|
1273
1228
|
}
|
|
1274
1229
|
//#endregion
|
|
1275
1230
|
//#region src/utils/insertLogicTag.ts
|
|
1276
|
-
function
|
|
1231
|
+
function xi(e) {
|
|
1277
1232
|
return "before" in e && "after" in e;
|
|
1278
1233
|
}
|
|
1279
|
-
function
|
|
1280
|
-
if (!
|
|
1281
|
-
e.chain().focus().insertContent(
|
|
1234
|
+
function Si(e, t, n) {
|
|
1235
|
+
if (!xi(t)) {
|
|
1236
|
+
e.chain().focus().insertContent(bi(t.value, t.label, n)).run();
|
|
1282
1237
|
return;
|
|
1283
1238
|
}
|
|
1284
|
-
let r =
|
|
1239
|
+
let r = bi(t.before, t.label, n), i = bi(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
1285
1240
|
a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
1286
1241
|
}
|
|
1287
1242
|
//#endregion
|
|
1288
1243
|
//#region src/utils/linkColorExtension.ts
|
|
1289
|
-
function
|
|
1244
|
+
function Ci(e) {
|
|
1290
1245
|
if (!e) return null;
|
|
1291
1246
|
let t = e.trim();
|
|
1292
1247
|
return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
|
|
1293
1248
|
}
|
|
1294
|
-
function
|
|
1249
|
+
function wi(e) {
|
|
1295
1250
|
return e.extend({ addAttributes() {
|
|
1296
1251
|
return {
|
|
1297
1252
|
...this.parent?.(),
|
|
1298
1253
|
color: {
|
|
1299
1254
|
default: null,
|
|
1300
|
-
parseHTML: (e) =>
|
|
1255
|
+
parseHTML: (e) => Ci(An(e.style.color)),
|
|
1301
1256
|
renderHTML: (e) => {
|
|
1302
|
-
let t =
|
|
1257
|
+
let t = Ci(e.color);
|
|
1303
1258
|
return t ? { style: `color: ${t}` } : {};
|
|
1304
1259
|
}
|
|
1305
1260
|
}
|
|
@@ -1308,9 +1263,9 @@ function yi(e) {
|
|
|
1308
1263
|
}
|
|
1309
1264
|
//#endregion
|
|
1310
1265
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
1311
|
-
function
|
|
1266
|
+
function Ti(e, t = Je.liquid) {
|
|
1312
1267
|
let n = _(!1), r = _(""), i = _(""), a = _(null);
|
|
1313
|
-
|
|
1268
|
+
mi(a, n);
|
|
1314
1269
|
function o() {
|
|
1315
1270
|
let t = e.value?.getAttributes("link") ?? {};
|
|
1316
1271
|
r.value = t.href || "", i.value = t.color || "", n.value = !0;
|
|
@@ -1319,7 +1274,7 @@ function bi(e, t = Ye.liquid) {
|
|
|
1319
1274
|
if (r.value) {
|
|
1320
1275
|
let t = d(r.value);
|
|
1321
1276
|
if (t !== null) {
|
|
1322
|
-
let n =
|
|
1277
|
+
let n = Ci(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
1323
1278
|
n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
|
|
1324
1279
|
}
|
|
1325
1280
|
}
|
|
@@ -1371,13 +1326,13 @@ function bi(e, t = Ye.liquid) {
|
|
|
1371
1326
|
}
|
|
1372
1327
|
//#endregion
|
|
1373
1328
|
//#region src/composables/useRichTextEditor.ts
|
|
1374
|
-
function
|
|
1375
|
-
let n = p(
|
|
1329
|
+
function Ei(t) {
|
|
1330
|
+
let n = p(dn, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = Wn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = Gn(), g = p(nn, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = ce(l), b = e(null), x = () => Ee(n?.content?.value?.settings ?? { locale: "en" });
|
|
1376
1331
|
f(x, (e) => {
|
|
1377
1332
|
let t = b.value?.view.dom;
|
|
1378
1333
|
t && t.setAttribute("dir", e);
|
|
1379
1334
|
});
|
|
1380
|
-
let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } =
|
|
1335
|
+
let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = Ti(b, l), { start: j, stop: M } = Et(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), N = _(!0), P = _(null), F = !1, te = null;
|
|
1381
1336
|
async function I() {
|
|
1382
1337
|
P.value = null, N.value = !0;
|
|
1383
1338
|
try {
|
|
@@ -1408,7 +1363,7 @@ function xi(t) {
|
|
|
1408
1363
|
b.value = s, N.value = !1, j();
|
|
1409
1364
|
} catch (e) {
|
|
1410
1365
|
if (F) return;
|
|
1411
|
-
|
|
1366
|
+
kn.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", N.value = !1;
|
|
1412
1367
|
}
|
|
1413
1368
|
}
|
|
1414
1369
|
function ne() {
|
|
@@ -1426,7 +1381,7 @@ function xi(t) {
|
|
|
1426
1381
|
let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
|
|
1427
1382
|
r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
|
|
1428
1383
|
}
|
|
1429
|
-
|
|
1384
|
+
At(document, "mousedown", ie), i(() => {
|
|
1430
1385
|
F = !0, re(), M(), b.value?.destroy();
|
|
1431
1386
|
});
|
|
1432
1387
|
async function ae() {
|
|
@@ -1438,7 +1393,7 @@ function xi(t) {
|
|
|
1438
1393
|
}
|
|
1439
1394
|
async function oe() {
|
|
1440
1395
|
let e = await h();
|
|
1441
|
-
F || (e && b.value ?
|
|
1396
|
+
F || (e && b.value ? Si(b.value, e, l) : b.value?.commands.focus());
|
|
1442
1397
|
}
|
|
1443
1398
|
return {
|
|
1444
1399
|
editor: b,
|
|
@@ -1467,9 +1422,9 @@ function xi(t) {
|
|
|
1467
1422
|
}
|
|
1468
1423
|
//#endregion
|
|
1469
1424
|
//#region src/composables/useSmallScreenNotice.ts
|
|
1470
|
-
var
|
|
1471
|
-
function
|
|
1472
|
-
let t =
|
|
1425
|
+
var Di = "(max-width: 767px)";
|
|
1426
|
+
function Oi(e) {
|
|
1427
|
+
let t = jt(Di);
|
|
1473
1428
|
return {
|
|
1474
1429
|
isSmallScreen: t,
|
|
1475
1430
|
showNotice: N(() => (ee(e) ?? !0) && t.value)
|
|
@@ -1477,20 +1432,20 @@ function Ci(e) {
|
|
|
1477
1432
|
}
|
|
1478
1433
|
//#endregion
|
|
1479
1434
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1480
|
-
var
|
|
1435
|
+
var ki = { class: "tpl:w-full" }, Ai = {
|
|
1481
1436
|
key: 0,
|
|
1482
1437
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
1483
|
-
},
|
|
1438
|
+
}, ji = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Mi = {
|
|
1484
1439
|
key: 1,
|
|
1485
1440
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
1486
|
-
},
|
|
1441
|
+
}, Ni = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Pi = {
|
|
1487
1442
|
key: 2,
|
|
1488
1443
|
class: "tpl:relative"
|
|
1489
|
-
},
|
|
1444
|
+
}, Fi = ["innerHTML"], Ii = {
|
|
1490
1445
|
key: 0,
|
|
1491
1446
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
1492
1447
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1493
|
-
},
|
|
1448
|
+
}, Li = /* @__PURE__ */ F({
|
|
1494
1449
|
__name: "CustomBlock",
|
|
1495
1450
|
props: {
|
|
1496
1451
|
block: {},
|
|
@@ -1498,7 +1453,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1498
1453
|
},
|
|
1499
1454
|
emits: ["fetchData"],
|
|
1500
1455
|
setup(e, { emit: n }) {
|
|
1501
|
-
let r = e, i = n, { t: a } =
|
|
1456
|
+
let r = e, i = n, { t: a } = On(), o = p(Sn, null), s = _(""), c = _(!1), l = N(() => o?.getDefinition(r.block.customType)), u = N(() => !!l.value), m = N(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = ot({
|
|
1502
1457
|
definition: l,
|
|
1503
1458
|
block: m,
|
|
1504
1459
|
onUpdate: (e, t) => {
|
|
@@ -1507,10 +1462,10 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1507
1462
|
dataSourceFetched: t
|
|
1508
1463
|
});
|
|
1509
1464
|
}
|
|
1510
|
-
}), T = p(
|
|
1465
|
+
}), T = p(Jt, zt), E = p(Xt, null), O = N(() => {
|
|
1511
1466
|
if (!E?.value) return r.block;
|
|
1512
1467
|
let e = {};
|
|
1513
|
-
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ?
|
|
1468
|
+
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Ne(n, T.value) : n;
|
|
1514
1469
|
return {
|
|
1515
1470
|
...r.block,
|
|
1516
1471
|
fieldValues: e
|
|
@@ -1527,17 +1482,17 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1527
1482
|
}
|
|
1528
1483
|
}
|
|
1529
1484
|
}
|
|
1530
|
-
let j =
|
|
1485
|
+
let j = Dt(k, 150);
|
|
1531
1486
|
return d(() => {
|
|
1532
1487
|
k();
|
|
1533
1488
|
}), f(() => r.block.fieldValues, () => {
|
|
1534
1489
|
j();
|
|
1535
1490
|
}, { deep: !0 }), f(() => E?.value, () => {
|
|
1536
1491
|
j();
|
|
1537
|
-
}), (e, n) => (t(), S("div",
|
|
1492
|
+
}), (e, n) => (t(), S("div", ki, [u.value ? c.value ? (t(), S("div", Mi, [C(y(Bn), {
|
|
1538
1493
|
size: 24,
|
|
1539
1494
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1540
|
-
}), x("span",
|
|
1495
|
+
}), x("span", Ni, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", Pi, [x("div", { innerHTML: s.value }, null, 8, Fi), y(b) && y(v) ? (t(), S("div", Ii, [y(h) ? (t(), A(Vn, {
|
|
1541
1496
|
key: 1,
|
|
1542
1497
|
class: "tpl:w-48"
|
|
1543
1498
|
})) : (t(), S("button", {
|
|
@@ -1545,16 +1500,16 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1545
1500
|
type: "button",
|
|
1546
1501
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1547
1502
|
onClick: n[0] ||= I((...e) => y(g) && y(g)(...e), ["stop"])
|
|
1548
|
-
}, [l.value?.icon ? (t(), A(
|
|
1503
|
+
}, [l.value?.icon ? (t(), A(fi, {
|
|
1549
1504
|
key: 0,
|
|
1550
1505
|
icon: l.value.icon,
|
|
1551
1506
|
size: 16
|
|
1552
|
-
}, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div",
|
|
1507
|
+
}, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div", Ai, [C(y(ci), {
|
|
1553
1508
|
size: 24,
|
|
1554
1509
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1555
|
-
}), x("span",
|
|
1510
|
+
}), x("span", ji, D(y(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1556
1511
|
}
|
|
1557
|
-
}),
|
|
1512
|
+
}), Ri = { class: "tpl:w-full" }, zi = /* @__PURE__ */ F({
|
|
1558
1513
|
__name: "DividerBlock",
|
|
1559
1514
|
props: {
|
|
1560
1515
|
block: {},
|
|
@@ -1566,28 +1521,28 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1566
1521
|
width: r.block.width === "full" ? "100%" : typeof r.block.width == "number" ? `${r.block.width}px` : r.block.width,
|
|
1567
1522
|
margin: r.block.width === "full" ? "0" : "0 auto"
|
|
1568
1523
|
}));
|
|
1569
|
-
return (e, r) => (t(), S("div",
|
|
1524
|
+
return (e, r) => (t(), S("div", Ri, [x("hr", {
|
|
1570
1525
|
class: "tpl:m-0 tpl:border-none",
|
|
1571
1526
|
style: n(i.value)
|
|
1572
1527
|
}, null, 4)]));
|
|
1573
1528
|
}
|
|
1574
|
-
}),
|
|
1529
|
+
}), Bi = { class: "tpl:w-full" }, Vi = ["srcdoc", "title"], Hi = {
|
|
1575
1530
|
key: 1,
|
|
1576
1531
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
1577
|
-
},
|
|
1532
|
+
}, Ui = {
|
|
1578
1533
|
key: 0,
|
|
1579
1534
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1580
|
-
},
|
|
1535
|
+
}, Wi = {
|
|
1581
1536
|
key: 1,
|
|
1582
1537
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1583
|
-
},
|
|
1538
|
+
}, Gi = /* @__PURE__ */ F({
|
|
1584
1539
|
__name: "HtmlBlock",
|
|
1585
1540
|
props: {
|
|
1586
1541
|
block: {},
|
|
1587
1542
|
viewport: {}
|
|
1588
1543
|
},
|
|
1589
1544
|
setup(e) {
|
|
1590
|
-
let r = e, { t: a } =
|
|
1545
|
+
let r = e, { t: a } = On(), o = p(sn, !1), s = N(() => r.block.content.trim().length > 0), c = N(() => o && s.value), l = p(Jt, zt), u = p(Xt, null), d = N(() => u?.value ? Ne(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
|
|
1591
1546
|
function v() {
|
|
1592
1547
|
let e = m.value?.contentDocument;
|
|
1593
1548
|
e && (h.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1601,7 +1556,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1601
1556
|
e || (g?.disconnect(), g = null);
|
|
1602
1557
|
}), i(() => {
|
|
1603
1558
|
g?.disconnect(), g = null;
|
|
1604
|
-
}), (e, r) => (t(), S("div",
|
|
1559
|
+
}), (e, r) => (t(), S("div", Bi, [c.value ? (t(), S("iframe", {
|
|
1605
1560
|
key: 0,
|
|
1606
1561
|
ref_key: "iframeRef",
|
|
1607
1562
|
ref: m,
|
|
@@ -1611,18 +1566,18 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1611
1566
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1612
1567
|
style: n({ height: `${h.value}px` }),
|
|
1613
1568
|
onLoad: b
|
|
1614
|
-
}, null, 44,
|
|
1569
|
+
}, null, 44, Vi)) : (t(), S("div", Hi, [C(y(pt), {
|
|
1615
1570
|
size: 24,
|
|
1616
1571
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1617
|
-
}), s.value ? (t(), S("span",
|
|
1572
|
+
}), s.value ? (t(), S("span", Ui, D(y(a).html.preview), 1)) : (t(), S("span", Wi, D(y(a).html.empty), 1))]))]));
|
|
1618
1573
|
}
|
|
1619
|
-
}),
|
|
1574
|
+
}), Ki = ["data-drop-enabled"], qi = ["href"], Ji = ["src", "alt"], Yi = ["src", "alt"], Xi = {
|
|
1620
1575
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1621
1576
|
style: { opacity: "0.7" }
|
|
1622
|
-
},
|
|
1577
|
+
}, Zi = ["href"], Qi = ["src", "alt"], $i = ["src", "alt"], ea = {
|
|
1623
1578
|
key: 4,
|
|
1624
1579
|
class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
1625
|
-
},
|
|
1580
|
+
}, ta = ["aria-label"], na = { key: 1 }, ra = /* @__PURE__ */ F({
|
|
1626
1581
|
__name: "ImageBlock",
|
|
1627
1582
|
props: {
|
|
1628
1583
|
block: {},
|
|
@@ -1630,17 +1585,20 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1630
1585
|
},
|
|
1631
1586
|
emits: ["update"],
|
|
1632
1587
|
setup(e, { emit: r }) {
|
|
1633
|
-
let i = e, a = r, { t: o } =
|
|
1588
|
+
let i = e, a = r, { t: o } = On(), { syntax: s } = Wn(), c = N(() => Ce(i.block.src, s));
|
|
1634
1589
|
function l(e) {
|
|
1635
|
-
let t = {
|
|
1590
|
+
let t = {
|
|
1591
|
+
src: e.url,
|
|
1592
|
+
...vt(ht(e.width, e.height))
|
|
1593
|
+
};
|
|
1636
1594
|
e.alt && (t.alt = e.alt), a("update", t);
|
|
1637
1595
|
}
|
|
1638
|
-
let u = _(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: h } =
|
|
1596
|
+
let u = _(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: h } = gt({
|
|
1639
1597
|
target: u,
|
|
1640
1598
|
blocked: c,
|
|
1641
1599
|
apply: l
|
|
1642
1600
|
}), g = N(() => ({ textAlign: i.block.align })), v = N(() => {
|
|
1643
|
-
let e = i.block.border, t = ["left", "right"].map((t) =>
|
|
1601
|
+
let e = i.block.border, t = ["left", "right"].map((t) => we(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1644
1602
|
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1645
1603
|
}), b = N(() => {
|
|
1646
1604
|
let e = i.block.align;
|
|
@@ -1648,13 +1606,13 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1648
1606
|
maxWidth: "100%",
|
|
1649
1607
|
width: i.block.width === "full" ? v.value : `${i.block.width}px`,
|
|
1650
1608
|
height: i.block.height ? `${i.block.height}px` : void 0,
|
|
1651
|
-
borderRadius:
|
|
1652
|
-
...
|
|
1609
|
+
borderRadius: et(i.block.borderRadius) ?? void 0,
|
|
1610
|
+
...Xr(i.block.border),
|
|
1653
1611
|
display: "block",
|
|
1654
1612
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1655
1613
|
marginRight: e === "center" ? "auto" : void 0
|
|
1656
1614
|
};
|
|
1657
|
-
}), T =
|
|
1615
|
+
}), T = lt(() => c.value ? void 0 : i.block.src), E = lt(() => c.value ? i.block.placeholderUrl : void 0);
|
|
1658
1616
|
return (r, i) => (t(), S("div", {
|
|
1659
1617
|
ref_key: "dropZoneRef",
|
|
1660
1618
|
ref: u,
|
|
@@ -1662,7 +1620,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1662
1620
|
"data-drop-enabled": y(f),
|
|
1663
1621
|
class: "tpl:relative tpl:w-full",
|
|
1664
1622
|
style: n(g.value)
|
|
1665
|
-
}, [y(m) ? (t(), A(
|
|
1623
|
+
}, [y(m) ? (t(), A(bt, {
|
|
1666
1624
|
key: 0,
|
|
1667
1625
|
uploading: y(p),
|
|
1668
1626
|
size: "canvas"
|
|
@@ -1678,22 +1636,22 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1678
1636
|
src: y(E),
|
|
1679
1637
|
alt: e.block.alt || y(o).image.altTextPlaceholder,
|
|
1680
1638
|
style: n(b.value)
|
|
1681
|
-
}, null, 12,
|
|
1639
|
+
}, null, 12, Ji)], 8, qi)) : (t(), S("img", {
|
|
1682
1640
|
key: 1,
|
|
1683
1641
|
class: "tpl:border-0",
|
|
1684
1642
|
src: y(E),
|
|
1685
1643
|
alt: e.block.alt,
|
|
1686
1644
|
style: n(b.value)
|
|
1687
|
-
}, null, 12,
|
|
1645
|
+
}, null, 12, Yi))], 64)) : e.block.src && c.value ? (t(), S("div", {
|
|
1688
1646
|
key: 2,
|
|
1689
1647
|
class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
1690
1648
|
style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, b.value])
|
|
1691
|
-
}, [C(y(
|
|
1649
|
+
}, [C(y(wt), {
|
|
1692
1650
|
size: 32,
|
|
1693
1651
|
"stroke-width": 1.5,
|
|
1694
1652
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1695
1653
|
style: { opacity: "0.5" }
|
|
1696
|
-
}), x("span",
|
|
1654
|
+
}), x("span", Xi, [C(ei, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
|
|
1697
1655
|
key: 0,
|
|
1698
1656
|
href: e.block.linkUrl,
|
|
1699
1657
|
target: "_blank",
|
|
@@ -1705,33 +1663,33 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1705
1663
|
src: y(T),
|
|
1706
1664
|
alt: e.block.alt || y(o).image.altTextPlaceholder,
|
|
1707
1665
|
style: n(b.value)
|
|
1708
|
-
}, null, 12,
|
|
1666
|
+
}, null, 12, Qi)], 8, Zi)) : (t(), S("img", {
|
|
1709
1667
|
key: 1,
|
|
1710
1668
|
class: "tpl:border-0",
|
|
1711
1669
|
src: y(T),
|
|
1712
1670
|
alt: e.block.alt,
|
|
1713
1671
|
style: n(b.value)
|
|
1714
|
-
}, null, 12,
|
|
1672
|
+
}, null, 12, $i))], 64)) : (t(), S("div", ea, [y(d) ? (t(), S("button", {
|
|
1715
1673
|
key: 0,
|
|
1716
1674
|
"aria-label": y(o).image.browseMedia,
|
|
1717
1675
|
class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1718
1676
|
onClick: i[2] ||= I((...e) => y(h) && y(h)(...e), ["stop"])
|
|
1719
|
-
}, [C(y(
|
|
1677
|
+
}, [C(y(wt), {
|
|
1720
1678
|
size: 14,
|
|
1721
1679
|
"stroke-width": 1.5
|
|
1722
|
-
}), w(" " + D(y(o).image.browseMedia), 1)], 8,
|
|
1680
|
+
}), w(" " + D(y(o).image.browseMedia), 1)], 8, ta)) : (t(), S("span", na, D(y(o).image.clickToAdd), 1))]))], 12, Ki));
|
|
1723
1681
|
}
|
|
1724
|
-
}),
|
|
1682
|
+
}), ia = { class: "tpl:w-full" }, aa = ["href"], oa = {
|
|
1725
1683
|
key: 1,
|
|
1726
1684
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
1727
|
-
},
|
|
1685
|
+
}, sa = /* @__PURE__ */ F({
|
|
1728
1686
|
__name: "MenuBlock",
|
|
1729
1687
|
props: {
|
|
1730
1688
|
block: {},
|
|
1731
1689
|
viewport: {}
|
|
1732
1690
|
},
|
|
1733
1691
|
setup(e) {
|
|
1734
|
-
let r = e, { t: i } =
|
|
1692
|
+
let r = e, { t: i } = On(), a = Nt(Cn, "MenuBlock"), o = N(() => ({
|
|
1735
1693
|
display: "flex",
|
|
1736
1694
|
flexWrap: "wrap",
|
|
1737
1695
|
gap: `0 ${r.block.spacing}px`,
|
|
@@ -1743,7 +1701,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1743
1701
|
function c(e) {
|
|
1744
1702
|
return e || r.block.linkColor || r.block.color;
|
|
1745
1703
|
}
|
|
1746
|
-
return (r, a) => (t(), S("div",
|
|
1704
|
+
return (r, a) => (t(), S("div", ia, [s.value ? (t(), S("div", {
|
|
1747
1705
|
key: 0,
|
|
1748
1706
|
style: n(o.value)
|
|
1749
1707
|
}, [(t(!0), S(M, null, l(e.block.items, (r, i) => (t(), S(M, { key: r.id }, [x("a", {
|
|
@@ -1755,15 +1713,15 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1755
1713
|
textDecoration: r.underline ? "underline" : "none"
|
|
1756
1714
|
}),
|
|
1757
1715
|
onClick: a[0] ||= I(() => {}, ["prevent"])
|
|
1758
|
-
}, [C(
|
|
1716
|
+
}, [C(ei, { text: r.text || "..." }, null, 8, ["text"])], 12, aa), i < e.block.items.length - 1 ? (t(), S("span", {
|
|
1759
1717
|
key: 0,
|
|
1760
1718
|
style: n({
|
|
1761
1719
|
color: e.block.separatorColor,
|
|
1762
1720
|
padding: `0 ${e.block.spacing}px`
|
|
1763
1721
|
})
|
|
1764
|
-
}, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div",
|
|
1722
|
+
}, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div", oa, [C(y(xt), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
|
|
1765
1723
|
}
|
|
1766
|
-
}),
|
|
1724
|
+
}), ca = /* @__PURE__ */ new Set([
|
|
1767
1725
|
"http",
|
|
1768
1726
|
"https",
|
|
1769
1727
|
"mailto",
|
|
@@ -1773,7 +1731,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1773
1731
|
"sms",
|
|
1774
1732
|
"xmpp",
|
|
1775
1733
|
"cid"
|
|
1776
|
-
]),
|
|
1734
|
+
]), la = /* @__PURE__ */ new Set([
|
|
1777
1735
|
"SCRIPT",
|
|
1778
1736
|
"STYLE",
|
|
1779
1737
|
"IFRAME",
|
|
@@ -1783,7 +1741,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1783
1741
|
"META",
|
|
1784
1742
|
"BASE",
|
|
1785
1743
|
"FORM"
|
|
1786
|
-
]),
|
|
1744
|
+
]), ua = /* @__PURE__ */ new Set([
|
|
1787
1745
|
"href",
|
|
1788
1746
|
"xlink:href",
|
|
1789
1747
|
"formaction",
|
|
@@ -1792,16 +1750,16 @@ var wi = { class: "tpl:w-full" }, Ti = {
|
|
|
1792
1750
|
"background",
|
|
1793
1751
|
"poster"
|
|
1794
1752
|
]);
|
|
1795
|
-
function
|
|
1753
|
+
function da(e, t) {
|
|
1796
1754
|
let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
1797
1755
|
if (!n || n.startsWith("#")) return !0;
|
|
1798
1756
|
let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
|
|
1799
1757
|
if (!r) return !0;
|
|
1800
1758
|
let i = r[1].toLowerCase();
|
|
1801
|
-
return
|
|
1759
|
+
return ca.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
|
|
1802
1760
|
}
|
|
1803
|
-
function
|
|
1804
|
-
if (
|
|
1761
|
+
function fa(e) {
|
|
1762
|
+
if (la.has(e.tagName)) {
|
|
1805
1763
|
e.remove();
|
|
1806
1764
|
return;
|
|
1807
1765
|
}
|
|
@@ -1809,21 +1767,21 @@ function sa(e) {
|
|
|
1809
1767
|
for (let n = 0; n < e.attributes.length; n++) t.push(e.attributes[n].name);
|
|
1810
1768
|
for (let n of t) {
|
|
1811
1769
|
let t = n.toLowerCase();
|
|
1812
|
-
t.startsWith("on") ? e.removeAttribute(n) :
|
|
1770
|
+
t.startsWith("on") ? e.removeAttribute(n) : ua.has(t) ? da(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? da(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
|
|
1813
1771
|
}
|
|
1814
1772
|
let n = Array.from(e.children);
|
|
1815
|
-
for (let e of n)
|
|
1773
|
+
for (let e of n) fa(e);
|
|
1816
1774
|
}
|
|
1817
|
-
function
|
|
1775
|
+
function pa(e) {
|
|
1818
1776
|
if (typeof DOMParser > "u") return e;
|
|
1819
1777
|
let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
|
|
1820
|
-
for (let e of n)
|
|
1778
|
+
for (let e of n) fa(e);
|
|
1821
1779
|
return t.innerHTML;
|
|
1822
1780
|
}
|
|
1823
1781
|
//#endregion
|
|
1824
1782
|
//#region src/composables/useEditableTextBlock.ts
|
|
1825
|
-
function
|
|
1826
|
-
let t = p(
|
|
1783
|
+
function ma(e) {
|
|
1784
|
+
let t = p(Jt, zt), n = p(Xt, null), { syntax: r } = Wn(), i = N(() => n?.value ? Pe(e(), t.value) : Re(e(), t.value)), a = N(() => tt(pa(ke(i.value, r)))), o = _(!1), s = _(null), { top: c, left: l } = Mt(s), { toLocal: u } = Nn(), d = N(() => u({
|
|
1827
1785
|
top: c.value - 8,
|
|
1828
1786
|
left: l.value
|
|
1829
1787
|
}));
|
|
@@ -1844,14 +1802,14 @@ function la(e) {
|
|
|
1844
1802
|
}
|
|
1845
1803
|
//#endregion
|
|
1846
1804
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1847
|
-
var
|
|
1805
|
+
var ha = ["innerHTML"], ga = /* @__PURE__ */ F({
|
|
1848
1806
|
__name: "ParagraphBlock",
|
|
1849
1807
|
props: {
|
|
1850
1808
|
block: {},
|
|
1851
1809
|
viewport: {}
|
|
1852
1810
|
},
|
|
1853
1811
|
setup(e) {
|
|
1854
|
-
let n = e, r = v(() => import("./ParagraphEditor-
|
|
1812
|
+
let n = e, r = v(() => import("./ParagraphEditor-BVjOwwHx.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = ma(() => n.block.content);
|
|
1855
1813
|
return (n, u) => (t(), S("div", {
|
|
1856
1814
|
ref_key: "blockRef",
|
|
1857
1815
|
ref: a,
|
|
@@ -1870,26 +1828,26 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1870
1828
|
key: 1,
|
|
1871
1829
|
class: "tpl-text-content tpl:outline-none",
|
|
1872
1830
|
innerHTML: y(s)
|
|
1873
|
-
}, null, 8,
|
|
1831
|
+
}, null, 8, ha))], 544));
|
|
1874
1832
|
}
|
|
1875
|
-
}),
|
|
1833
|
+
}), _a = [
|
|
1876
1834
|
"data-block-id",
|
|
1877
1835
|
"data-block-type",
|
|
1878
1836
|
"data-tpl-picked"
|
|
1879
|
-
],
|
|
1837
|
+
], va = ["aria-label"], ya = [
|
|
1880
1838
|
"aria-label",
|
|
1881
1839
|
"aria-pressed",
|
|
1882
1840
|
"title"
|
|
1883
|
-
],
|
|
1841
|
+
], ba = ["aria-label", "title"], xa = ["aria-label", "title"], Sa = ["aria-label", "title"], Ca = {
|
|
1884
1842
|
key: 1,
|
|
1885
1843
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
1886
|
-
},
|
|
1844
|
+
}, wa = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Ta = {
|
|
1887
1845
|
key: 2,
|
|
1888
1846
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
1889
|
-
},
|
|
1847
|
+
}, Ea = ["aria-label", "title"], Da = {
|
|
1890
1848
|
key: 3,
|
|
1891
1849
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1892
|
-
},
|
|
1850
|
+
}, Oa = ["aria-label"], ka = /*#__PURE__*/ Hn(/* @__PURE__ */ F({
|
|
1893
1851
|
__name: "BlockWrapper",
|
|
1894
1852
|
props: {
|
|
1895
1853
|
block: {},
|
|
@@ -1901,7 +1859,7 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1901
1859
|
},
|
|
1902
1860
|
emits: ["select"],
|
|
1903
1861
|
setup(e, { emit: r }) {
|
|
1904
|
-
let i = v(() => import("./BlockIssueBadge-
|
|
1862
|
+
let i = v(() => import("./BlockIssueBadge-BShkuJis.js")), o = e, s = r, { t: c, format: l } = On(), d = p(Qt, null), f = _(null), m = N(() => d?.liftedBlockId.value === o.block.id), h = N(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
|
|
1905
1863
|
async function g() {
|
|
1906
1864
|
await a(), f.value?.focus();
|
|
1907
1865
|
}
|
|
@@ -1911,20 +1869,23 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1911
1869
|
let T = N(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), E = N(() => o.previewMode === !0 && T.value), O = N(() => o.viewport ? {
|
|
1912
1870
|
desktop: c.viewport.desktop,
|
|
1913
1871
|
mobile: c.viewport.mobile
|
|
1914
|
-
}[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(
|
|
1915
|
-
|
|
1872
|
+
}[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(on, null), M = p(un, null), ee = p(hn, {}), F = N(() => ee.savedBlocks?.isPicking.value === !0), te = N(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = N(() => o.isSelected && !F.value), re = N(() => ee.comments?.getBlockCount(o.block.id) ?? 0), ie = rt(() => o.block.type === "section" ? o.block.backgroundImage : void 0), ae = rt(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), oe = p(dn, null), se = p(It, void 0), ce = N(() => Jr(o.block, {
|
|
1873
|
+
backgroundImageUrl: ie.value,
|
|
1874
|
+
heroBoxWidth: ft(o.block, oe?.content.value, se)
|
|
1875
|
+
})), le = N(() => Zr(o.block, { backgroundImageUrl: ae.value }));
|
|
1876
|
+
function ue(e) {
|
|
1916
1877
|
o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
|
|
1917
1878
|
}
|
|
1918
|
-
function
|
|
1879
|
+
function de() {
|
|
1919
1880
|
j?.deleteBlock(o.block.id);
|
|
1920
1881
|
}
|
|
1921
|
-
function
|
|
1882
|
+
function fe() {
|
|
1922
1883
|
j?.duplicateBlock(o.block);
|
|
1923
1884
|
}
|
|
1924
|
-
function
|
|
1885
|
+
function pe() {
|
|
1925
1886
|
ee.savedBlocks?.startPicking(o.block.id);
|
|
1926
1887
|
}
|
|
1927
|
-
function
|
|
1888
|
+
function me() {
|
|
1928
1889
|
M?.toggleBlock(o.block.id);
|
|
1929
1890
|
}
|
|
1930
1891
|
return (r, a) => E.value ? P("", !0) : (t(), S("div", {
|
|
@@ -1938,7 +1899,7 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1938
1899
|
"data-block-id": e.block.id,
|
|
1939
1900
|
"data-block-type": e.block.type,
|
|
1940
1901
|
"data-tpl-picked": e.picked || void 0,
|
|
1941
|
-
onClick:
|
|
1902
|
+
onClick: ue
|
|
1942
1903
|
}, [
|
|
1943
1904
|
C(y(i), { "block-id": e.block.id }, null, 8, ["block-id"]),
|
|
1944
1905
|
ne.value ? (t(), S("div", {
|
|
@@ -1956,99 +1917,100 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1956
1917
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
1957
1918
|
title: y(c).blockActions.drag,
|
|
1958
1919
|
onKeydown: b
|
|
1959
|
-
}, [C(y(
|
|
1920
|
+
}, [C(y(si), {
|
|
1960
1921
|
size: 14,
|
|
1961
1922
|
"stroke-width": 1.5
|
|
1962
|
-
})], 40,
|
|
1923
|
+
})], 40, ya),
|
|
1963
1924
|
x("button", {
|
|
1964
1925
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
1965
1926
|
"aria-label": y(c).blockActions.duplicate,
|
|
1966
1927
|
title: y(c).blockActions.duplicate,
|
|
1967
|
-
onClick: I(
|
|
1968
|
-
}, [C(y(
|
|
1928
|
+
onClick: I(fe, ["stop"])
|
|
1929
|
+
}, [C(y(Ln), {
|
|
1969
1930
|
size: 14,
|
|
1970
1931
|
"stroke-width": 1.5
|
|
1971
|
-
})], 8,
|
|
1932
|
+
})], 8, ba),
|
|
1972
1933
|
te.value ? (t(), S("button", {
|
|
1973
1934
|
key: 0,
|
|
1974
1935
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
1975
1936
|
"aria-label": y(c).blockActions.saveAsBlock,
|
|
1976
1937
|
title: y(c).blockActions.saveAsBlock,
|
|
1977
|
-
onClick: I(
|
|
1978
|
-
}, [C(y(
|
|
1938
|
+
onClick: I(pe, ["stop"])
|
|
1939
|
+
}, [C(y(ri), {
|
|
1979
1940
|
size: 14,
|
|
1980
1941
|
"stroke-width": 1.5
|
|
1981
|
-
})], 8,
|
|
1942
|
+
})], 8, xa)) : P("", !0),
|
|
1982
1943
|
x("button", {
|
|
1983
1944
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
1984
1945
|
"aria-label": y(c).blockActions.delete,
|
|
1985
1946
|
title: y(c).blockActions.delete,
|
|
1986
|
-
onClick: I(
|
|
1987
|
-
}, [C(y(
|
|
1947
|
+
onClick: I(de, ["stop"])
|
|
1948
|
+
}, [C(y(zn), {
|
|
1988
1949
|
size: 14,
|
|
1989
1950
|
"stroke-width": 1.5
|
|
1990
|
-
})], 8,
|
|
1991
|
-
], 8,
|
|
1992
|
-
T.value ? (t(), S("div",
|
|
1951
|
+
})], 8, Sa)
|
|
1952
|
+
], 8, va)) : P("", !0),
|
|
1953
|
+
T.value ? (t(), S("div", Ca, [x("span", wa, [C(y(ai), {
|
|
1993
1954
|
size: 12,
|
|
1994
1955
|
"stroke-width": 1.5
|
|
1995
1956
|
}), w(" " + D(y(l)(y(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : P("", !0),
|
|
1996
|
-
A.value && !T.value ? (t(), S("div",
|
|
1957
|
+
A.value && !T.value ? (t(), S("div", Ta, [x("button", {
|
|
1997
1958
|
"data-testid": "condition-toggle",
|
|
1998
1959
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
1999
1960
|
"aria-label": y(c).blockActions.conditionToggle,
|
|
2000
1961
|
title: e.block.displayCondition?.label,
|
|
2001
|
-
onClick: I(
|
|
2002
|
-
}, [C(y(
|
|
1962
|
+
onClick: I(me, ["stop"])
|
|
1963
|
+
}, [C(y(oi), {
|
|
2003
1964
|
size: 12,
|
|
2004
1965
|
"stroke-width": 2
|
|
2005
|
-
})], 8,
|
|
2006
|
-
re.value > 0 && !T.value ? (t(), S("div",
|
|
1966
|
+
})], 8, Ea)])) : P("", !0),
|
|
1967
|
+
re.value > 0 && !T.value ? (t(), S("div", Da, [x("button", {
|
|
2007
1968
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
2008
1969
|
"aria-label": y(l)(y(c).blockActions.comments, { count: String(re.value) }),
|
|
2009
1970
|
onClick: a[0] ||= I((t) => y(ee).comments?.openForBlock(e.block.id), ["stop"])
|
|
2010
|
-
}, [C(y(
|
|
1971
|
+
}, [C(y(Rn), {
|
|
2011
1972
|
size: 12,
|
|
2012
1973
|
"stroke-width": 2.5
|
|
2013
|
-
}), w(" " + D(re.value), 1)], 8,
|
|
2014
|
-
|
|
1974
|
+
}), w(" " + D(re.value), 1)], 8, Oa)])) : P("", !0),
|
|
1975
|
+
le.value ? (t(), S("div", {
|
|
2015
1976
|
key: 4,
|
|
2016
|
-
class: k(["tpl-section-wrapper tpl-email-surface", y(
|
|
2017
|
-
style: n(
|
|
1977
|
+
class: k(["tpl-section-wrapper tpl-email-surface", y(Wr)(le.value)]),
|
|
1978
|
+
style: n(le.value)
|
|
2018
1979
|
}, [x("div", {
|
|
2019
|
-
class: k(["tpl-block-content tpl-email-surface", y(
|
|
2020
|
-
style: n(
|
|
1980
|
+
class: k(["tpl-block-content tpl-email-surface", y(Wr)(ce.value)]),
|
|
1981
|
+
style: n(ce.value)
|
|
2021
1982
|
}, [u(r.$slots, "default", {}, void 0, !0)], 6)], 6)) : (t(), S("div", {
|
|
2022
1983
|
key: 5,
|
|
2023
|
-
class: k(["tpl-block-content tpl-email-surface", y(
|
|
2024
|
-
style: n(
|
|
1984
|
+
class: k(["tpl-block-content tpl-email-surface", y(Wr)(ce.value)]),
|
|
1985
|
+
style: n(ce.value)
|
|
2025
1986
|
}, [u(r.$slots, "default", {}, void 0, !0)], 6))
|
|
2026
|
-
], 10,
|
|
1987
|
+
], 10, _a));
|
|
2027
1988
|
}
|
|
2028
|
-
}), [["__scopeId", "data-v-
|
|
1989
|
+
}), [["__scopeId", "data-v-254ef206"]]);
|
|
2029
1990
|
//#endregion
|
|
2030
1991
|
//#region src/utils/unwrapParagraph.ts
|
|
2031
|
-
function
|
|
1992
|
+
function Aa(e) {
|
|
2032
1993
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
2033
1994
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
2034
1995
|
}
|
|
2035
1996
|
//#endregion
|
|
2036
1997
|
//#region src/components/blocks/TitleBlock.vue
|
|
2037
|
-
var
|
|
1998
|
+
var ja = /* @__PURE__ */ F({
|
|
2038
1999
|
__name: "TitleBlock",
|
|
2039
2000
|
props: {
|
|
2040
2001
|
block: {},
|
|
2041
2002
|
viewport: {}
|
|
2042
2003
|
},
|
|
2043
2004
|
setup(e) {
|
|
2044
|
-
let r = e, i = v(() => import("./TitleEditor-
|
|
2005
|
+
let r = e, i = v(() => import("./TitleEditor-Cc3DHbuN.js")), a = Nt(Cn, "TitleBlock"), { isEditing: s, blockRef: c, toolbarPosition: l, resolvedContent: u, handleDoubleClick: d, handleEditorDone: f } = ma(() => r.block.content), p = N(() => {
|
|
2045
2006
|
let e = {
|
|
2046
|
-
fontSize: `${
|
|
2047
|
-
lineHeight: String(
|
|
2007
|
+
fontSize: `${Ge[r.block.level]}px`,
|
|
2008
|
+
lineHeight: String(je),
|
|
2009
|
+
fontWeight: "700",
|
|
2048
2010
|
textAlign: r.block.textAlign
|
|
2049
2011
|
};
|
|
2050
2012
|
return r.block.color && (e.color = r.block.color), r.block.fontFamily && (e.fontFamily = a.resolveFontFamily(r.block.fontFamily)), e;
|
|
2051
|
-
}), m = N(() => `h${r.block.level}`), h = N(() =>
|
|
2013
|
+
}), m = N(() => `h${r.block.level}`), h = N(() => Aa(u.value));
|
|
2052
2014
|
return (r, a) => (t(), S("div", {
|
|
2053
2015
|
ref_key: "blockRef",
|
|
2054
2016
|
ref: c,
|
|
@@ -2067,95 +2029,130 @@ var Ea = /* @__PURE__ */ F({
|
|
|
2067
2029
|
])) : (t(), A(o(m.value), {
|
|
2068
2030
|
key: 1,
|
|
2069
2031
|
class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-[inherit] tpl:outline-none",
|
|
2070
|
-
style: {
|
|
2032
|
+
style: {
|
|
2033
|
+
color: "inherit",
|
|
2034
|
+
fontWeight: "inherit"
|
|
2035
|
+
},
|
|
2071
2036
|
innerHTML: h.value
|
|
2072
2037
|
}, null, 8, ["innerHTML"]))], 36));
|
|
2073
2038
|
}
|
|
2074
|
-
});
|
|
2039
|
+
}), Ma = "hero", Na = "#1f2937", Pa = "#ffffff";
|
|
2040
|
+
function Fa(e, t) {
|
|
2041
|
+
let n = $e("title", e);
|
|
2042
|
+
n.color = Pa, n.textAlign = "center";
|
|
2043
|
+
let r = $e("paragraph", e);
|
|
2044
|
+
r.content = `<p style="text-align: center"><span style="color: ${Pa}">${Ia(t)}</span></p>`;
|
|
2045
|
+
let i = $e("button", e);
|
|
2046
|
+
return i.align = "center", Le({
|
|
2047
|
+
columns: "1",
|
|
2048
|
+
children: [[
|
|
2049
|
+
n,
|
|
2050
|
+
r,
|
|
2051
|
+
i
|
|
2052
|
+
]],
|
|
2053
|
+
hero: {
|
|
2054
|
+
height: "image",
|
|
2055
|
+
verticalAlign: "middle"
|
|
2056
|
+
},
|
|
2057
|
+
styles: {
|
|
2058
|
+
padding: {
|
|
2059
|
+
top: 48,
|
|
2060
|
+
right: 24,
|
|
2061
|
+
bottom: 48,
|
|
2062
|
+
left: 24
|
|
2063
|
+
},
|
|
2064
|
+
backgroundColor: Na
|
|
2065
|
+
}
|
|
2066
|
+
});
|
|
2067
|
+
}
|
|
2068
|
+
function Ia(e) {
|
|
2069
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2070
|
+
}
|
|
2075
2071
|
//#endregion
|
|
2076
2072
|
//#region src/utils/sectionColumnDrop.ts
|
|
2077
|
-
|
|
2078
|
-
|
|
2073
|
+
var La = /* @__PURE__ */ new Set(["section", Ma]);
|
|
2074
|
+
function Ra(e) {
|
|
2075
|
+
return e.dataset.blockType !== "section" && !La.has(e.dataset.paletteType ?? "");
|
|
2079
2076
|
}
|
|
2080
2077
|
//#endregion
|
|
2081
2078
|
//#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
|
|
2082
|
-
var
|
|
2079
|
+
var za = Object.defineProperty, Ba = Object.getOwnPropertySymbols, Va = Object.prototype.hasOwnProperty, Ha = Object.prototype.propertyIsEnumerable, Ua = (e, t, n) => t in e ? za(e, t, {
|
|
2083
2080
|
enumerable: !0,
|
|
2084
2081
|
configurable: !0,
|
|
2085
2082
|
writable: !0,
|
|
2086
2083
|
value: n
|
|
2087
|
-
}) : e[t] = n,
|
|
2088
|
-
for (var n in t ||= {})
|
|
2089
|
-
if (
|
|
2084
|
+
}) : e[t] = n, Wa = (e, t) => {
|
|
2085
|
+
for (var n in t ||= {}) Va.call(t, n) && Ua(e, n, t[n]);
|
|
2086
|
+
if (Ba) for (var n of Ba(t)) Ha.call(t, n) && Ua(e, n, t[n]);
|
|
2090
2087
|
return e;
|
|
2091
|
-
},
|
|
2088
|
+
}, Ga = (e, t) => {
|
|
2092
2089
|
var n = {};
|
|
2093
|
-
for (var r in e)
|
|
2094
|
-
if (e != null &&
|
|
2090
|
+
for (var r in e) Va.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2091
|
+
if (e != null && Ba) for (var r of Ba(e)) t.indexOf(r) < 0 && Ha.call(e, r) && (n[r] = e[r]);
|
|
2095
2092
|
return n;
|
|
2096
|
-
},
|
|
2097
|
-
function
|
|
2098
|
-
console.warn(
|
|
2093
|
+
}, Ka = "[vue-draggable-plus]: ";
|
|
2094
|
+
function qa(e) {
|
|
2095
|
+
console.warn(Ka + e);
|
|
2099
2096
|
}
|
|
2100
|
-
function
|
|
2101
|
-
console.error(
|
|
2097
|
+
function Ja(e) {
|
|
2098
|
+
console.error(Ka + e);
|
|
2102
2099
|
}
|
|
2103
|
-
function
|
|
2100
|
+
function Ya(e, t, n) {
|
|
2104
2101
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
2105
2102
|
}
|
|
2106
|
-
function
|
|
2103
|
+
function Xa(e) {
|
|
2107
2104
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
2108
2105
|
}
|
|
2109
|
-
function
|
|
2110
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
2106
|
+
function Za(e) {
|
|
2107
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Xa(n)] = e[n]), t), {});
|
|
2111
2108
|
}
|
|
2112
|
-
function
|
|
2109
|
+
function Qa(e, t) {
|
|
2113
2110
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
2114
2111
|
}
|
|
2115
|
-
function
|
|
2112
|
+
function $a(e, t, n) {
|
|
2116
2113
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
2117
2114
|
}
|
|
2118
|
-
function
|
|
2115
|
+
function eo(e) {
|
|
2119
2116
|
return e === void 0;
|
|
2120
2117
|
}
|
|
2121
|
-
function
|
|
2118
|
+
function to(e) {
|
|
2122
2119
|
return typeof e == "string";
|
|
2123
2120
|
}
|
|
2124
|
-
function
|
|
2121
|
+
function no(e, t, n) {
|
|
2125
2122
|
let r = e.children[n];
|
|
2126
2123
|
e.insertBefore(t, r);
|
|
2127
2124
|
}
|
|
2128
|
-
function
|
|
2125
|
+
function ro(e) {
|
|
2129
2126
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2130
2127
|
}
|
|
2131
|
-
function
|
|
2128
|
+
function io(e, t = document) {
|
|
2132
2129
|
let n = null;
|
|
2133
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
2130
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || qa(`Element not found: ${e}`), n;
|
|
2134
2131
|
}
|
|
2135
|
-
function
|
|
2132
|
+
function ao(e, t, n = null) {
|
|
2136
2133
|
return function(...r) {
|
|
2137
2134
|
return e.apply(n, r), t.apply(n, r);
|
|
2138
2135
|
};
|
|
2139
2136
|
}
|
|
2140
|
-
function
|
|
2141
|
-
let n =
|
|
2137
|
+
function oo(e, t) {
|
|
2138
|
+
let n = Wa({}, e);
|
|
2142
2139
|
return Object.keys(t).forEach((r) => {
|
|
2143
|
-
n[r] ? n[r] =
|
|
2140
|
+
n[r] ? n[r] = ao(e[r], t[r]) : n[r] = t[r];
|
|
2144
2141
|
}), n;
|
|
2145
2142
|
}
|
|
2146
|
-
function
|
|
2143
|
+
function so(e) {
|
|
2147
2144
|
return e instanceof HTMLElement;
|
|
2148
2145
|
}
|
|
2149
|
-
function
|
|
2146
|
+
function co(e, t) {
|
|
2150
2147
|
Object.keys(e).forEach((n) => {
|
|
2151
2148
|
t(n, e[n]);
|
|
2152
2149
|
});
|
|
2153
2150
|
}
|
|
2154
|
-
function
|
|
2151
|
+
function lo(e) {
|
|
2155
2152
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
2156
2153
|
}
|
|
2157
|
-
var
|
|
2158
|
-
function
|
|
2154
|
+
var uo = Object.assign;
|
|
2155
|
+
function fo(e, t) {
|
|
2159
2156
|
var n = Object.keys(e);
|
|
2160
2157
|
if (Object.getOwnPropertySymbols) {
|
|
2161
2158
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2165,26 +2162,26 @@ function eo(e, t) {
|
|
|
2165
2162
|
}
|
|
2166
2163
|
return n;
|
|
2167
2164
|
}
|
|
2168
|
-
function
|
|
2165
|
+
function po(e) {
|
|
2169
2166
|
for (var t = 1; t < arguments.length; t++) {
|
|
2170
2167
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2171
|
-
t % 2 ?
|
|
2172
|
-
|
|
2173
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2168
|
+
t % 2 ? fo(Object(n), !0).forEach(function(t) {
|
|
2169
|
+
ho(e, t, n[t]);
|
|
2170
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fo(Object(n)).forEach(function(t) {
|
|
2174
2171
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2175
2172
|
});
|
|
2176
2173
|
}
|
|
2177
2174
|
return e;
|
|
2178
2175
|
}
|
|
2179
|
-
function
|
|
2176
|
+
function mo(e) {
|
|
2180
2177
|
"@babel/helpers - typeof";
|
|
2181
|
-
return
|
|
2178
|
+
return mo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2182
2179
|
return typeof e;
|
|
2183
2180
|
} : function(e) {
|
|
2184
2181
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2185
|
-
},
|
|
2182
|
+
}, mo(e);
|
|
2186
2183
|
}
|
|
2187
|
-
function
|
|
2184
|
+
function ho(e, t, n) {
|
|
2188
2185
|
return t in e ? Object.defineProperty(e, t, {
|
|
2189
2186
|
value: n,
|
|
2190
2187
|
enumerable: !0,
|
|
@@ -2192,44 +2189,44 @@ function ro(e, t, n) {
|
|
|
2192
2189
|
writable: !0
|
|
2193
2190
|
}) : e[t] = n, e;
|
|
2194
2191
|
}
|
|
2195
|
-
function
|
|
2196
|
-
return
|
|
2192
|
+
function go() {
|
|
2193
|
+
return go = Object.assign || function(e) {
|
|
2197
2194
|
for (var t = 1; t < arguments.length; t++) {
|
|
2198
2195
|
var n = arguments[t];
|
|
2199
2196
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2200
2197
|
}
|
|
2201
2198
|
return e;
|
|
2202
|
-
},
|
|
2199
|
+
}, go.apply(this, arguments);
|
|
2203
2200
|
}
|
|
2204
|
-
function
|
|
2201
|
+
function _o(e, t) {
|
|
2205
2202
|
if (e == null) return {};
|
|
2206
2203
|
for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2207
2204
|
return n;
|
|
2208
2205
|
}
|
|
2209
|
-
function
|
|
2206
|
+
function vo(e, t) {
|
|
2210
2207
|
if (e == null) return {};
|
|
2211
|
-
var n =
|
|
2208
|
+
var n = _o(e, t), r, i;
|
|
2212
2209
|
if (Object.getOwnPropertySymbols) {
|
|
2213
2210
|
var a = Object.getOwnPropertySymbols(e);
|
|
2214
2211
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2215
2212
|
}
|
|
2216
2213
|
return n;
|
|
2217
2214
|
}
|
|
2218
|
-
var
|
|
2219
|
-
function
|
|
2215
|
+
var yo = "1.15.2";
|
|
2216
|
+
function bo(e) {
|
|
2220
2217
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2221
2218
|
}
|
|
2222
|
-
var
|
|
2219
|
+
var xo = bo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), So = bo(/Edge/i), Co = bo(/firefox/i), wo = bo(/safari/i) && !bo(/chrome/i) && !bo(/android/i), To = bo(/iP(ad|od|hone)/i), Eo = bo(/chrome/i) && bo(/android/i), Do = {
|
|
2223
2220
|
capture: !1,
|
|
2224
2221
|
passive: !1
|
|
2225
2222
|
};
|
|
2226
2223
|
function L(e, t, n) {
|
|
2227
|
-
e.addEventListener(t, n, !
|
|
2224
|
+
e.addEventListener(t, n, !xo && Do);
|
|
2228
2225
|
}
|
|
2229
2226
|
function R(e, t, n) {
|
|
2230
|
-
e.removeEventListener(t, n, !
|
|
2227
|
+
e.removeEventListener(t, n, !xo && Do);
|
|
2231
2228
|
}
|
|
2232
|
-
function
|
|
2229
|
+
function Oo(e, t) {
|
|
2233
2230
|
if (t) {
|
|
2234
2231
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
2235
2232
|
if (e.matches) return e.matches(t);
|
|
@@ -2241,41 +2238,41 @@ function _o(e, t) {
|
|
|
2241
2238
|
return !1;
|
|
2242
2239
|
}
|
|
2243
2240
|
}
|
|
2244
|
-
function
|
|
2241
|
+
function ko(e) {
|
|
2245
2242
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
2246
2243
|
}
|
|
2247
|
-
function
|
|
2244
|
+
function Ao(e, t, n, r) {
|
|
2248
2245
|
if (e) {
|
|
2249
2246
|
n ||= document;
|
|
2250
2247
|
do {
|
|
2251
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
2248
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Oo(e, t) : Oo(e, t)) || r && e === n) return e;
|
|
2252
2249
|
if (e === n) break;
|
|
2253
|
-
} while (e =
|
|
2250
|
+
} while (e = ko(e));
|
|
2254
2251
|
}
|
|
2255
2252
|
return null;
|
|
2256
2253
|
}
|
|
2257
|
-
var
|
|
2258
|
-
function xo(e, t, n) {
|
|
2259
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(bo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(bo, " "));
|
|
2260
|
-
}
|
|
2254
|
+
var jo = /\s+/g;
|
|
2261
2255
|
function z(e, t, n) {
|
|
2256
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(jo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(jo, " "));
|
|
2257
|
+
}
|
|
2258
|
+
function B(e, t, n) {
|
|
2262
2259
|
var r = e && e.style;
|
|
2263
2260
|
if (r) {
|
|
2264
2261
|
if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
2265
2262
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
2266
2263
|
}
|
|
2267
2264
|
}
|
|
2268
|
-
function
|
|
2265
|
+
function Mo(e, t) {
|
|
2269
2266
|
var n = "";
|
|
2270
2267
|
if (typeof e == "string") n = e;
|
|
2271
2268
|
else do {
|
|
2272
|
-
var r =
|
|
2269
|
+
var r = B(e, "transform");
|
|
2273
2270
|
r && r !== "none" && (n = r + " " + n);
|
|
2274
2271
|
} while (!t && (e = e.parentNode));
|
|
2275
2272
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2276
2273
|
return i && new i(n);
|
|
2277
2274
|
}
|
|
2278
|
-
function
|
|
2275
|
+
function No(e, t, n) {
|
|
2279
2276
|
if (e) {
|
|
2280
2277
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
2281
2278
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -2283,21 +2280,21 @@ function Co(e, t, n) {
|
|
|
2283
2280
|
}
|
|
2284
2281
|
return [];
|
|
2285
2282
|
}
|
|
2286
|
-
function
|
|
2283
|
+
function Po() {
|
|
2287
2284
|
return document.scrollingElement || document.documentElement;
|
|
2288
2285
|
}
|
|
2289
|
-
function
|
|
2286
|
+
function V(e, t, n, r, i) {
|
|
2290
2287
|
if (e.getBoundingClientRect || e === window) {
|
|
2291
2288
|
var a, o, s, c, l, u, d;
|
|
2292
|
-
if (e !== window && e.parentNode && e !==
|
|
2293
|
-
if (i && i.getBoundingClientRect && (
|
|
2289
|
+
if (e !== window && e.parentNode && e !== Po() ? (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, !xo)) do
|
|
2290
|
+
if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
|
|
2294
2291
|
var f = i.getBoundingClientRect();
|
|
2295
|
-
o -= f.top + parseInt(
|
|
2292
|
+
o -= f.top + parseInt(B(i, "border-top-width")), s -= f.left + parseInt(B(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
2296
2293
|
break;
|
|
2297
2294
|
}
|
|
2298
2295
|
while (i = i.parentNode);
|
|
2299
2296
|
if (r && e !== window) {
|
|
2300
|
-
var p =
|
|
2297
|
+
var p = Mo(i || e), m = p && p.a, h = p && p.d;
|
|
2301
2298
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
2302
2299
|
}
|
|
2303
2300
|
return {
|
|
@@ -2310,18 +2307,18 @@ function B(e, t, n, r, i) {
|
|
|
2310
2307
|
};
|
|
2311
2308
|
}
|
|
2312
2309
|
}
|
|
2313
|
-
function
|
|
2314
|
-
for (var r =
|
|
2315
|
-
var a =
|
|
2310
|
+
function Fo(e, t, n) {
|
|
2311
|
+
for (var r = Vo(e, !0), i = V(e)[t]; r;) {
|
|
2312
|
+
var a = V(r)[n], o = void 0;
|
|
2316
2313
|
if (o = i >= a, !o) return r;
|
|
2317
|
-
if (r ===
|
|
2318
|
-
r =
|
|
2314
|
+
if (r === Po()) break;
|
|
2315
|
+
r = Vo(r, !1);
|
|
2319
2316
|
}
|
|
2320
2317
|
return !1;
|
|
2321
2318
|
}
|
|
2322
|
-
function
|
|
2319
|
+
function Io(e, t, n, r) {
|
|
2323
2320
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
2324
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
2321
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ao(o[a], n.draggable, e, !1)) {
|
|
2325
2322
|
if (i === t) return o[a];
|
|
2326
2323
|
i++;
|
|
2327
2324
|
}
|
|
@@ -2329,96 +2326,96 @@ function Eo(e, t, n, r) {
|
|
|
2329
2326
|
}
|
|
2330
2327
|
return null;
|
|
2331
2328
|
}
|
|
2332
|
-
function
|
|
2333
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost ||
|
|
2329
|
+
function Lo(e, t) {
|
|
2330
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !Oo(n, t));) n = n.previousElementSibling;
|
|
2334
2331
|
return n || null;
|
|
2335
2332
|
}
|
|
2336
|
-
function
|
|
2333
|
+
function Ro(e, t) {
|
|
2337
2334
|
var n = 0;
|
|
2338
2335
|
if (!e || !e.parentNode) return -1;
|
|
2339
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
2336
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Oo(e, t)) && n++;
|
|
2340
2337
|
return n;
|
|
2341
2338
|
}
|
|
2342
|
-
function
|
|
2343
|
-
var t = 0, n = 0, r =
|
|
2339
|
+
function zo(e) {
|
|
2340
|
+
var t = 0, n = 0, r = Po();
|
|
2344
2341
|
if (e) do {
|
|
2345
|
-
var i =
|
|
2342
|
+
var i = Mo(e), a = i.a, o = i.d;
|
|
2346
2343
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
2347
2344
|
} while (e !== r && (e = e.parentNode));
|
|
2348
2345
|
return [t, n];
|
|
2349
2346
|
}
|
|
2350
|
-
function
|
|
2347
|
+
function Bo(e, t) {
|
|
2351
2348
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
2352
2349
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
2353
2350
|
}
|
|
2354
2351
|
return -1;
|
|
2355
2352
|
}
|
|
2356
|
-
function
|
|
2357
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2353
|
+
function Vo(e, t) {
|
|
2354
|
+
if (!e || !e.getBoundingClientRect) return Po();
|
|
2358
2355
|
var n = e, r = !1;
|
|
2359
2356
|
do
|
|
2360
2357
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2361
|
-
var i =
|
|
2358
|
+
var i = B(n);
|
|
2362
2359
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2363
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
2360
|
+
if (!n.getBoundingClientRect || n === document.body) return Po();
|
|
2364
2361
|
if (r || t) return n;
|
|
2365
2362
|
r = !0;
|
|
2366
2363
|
}
|
|
2367
2364
|
}
|
|
2368
2365
|
while (n = n.parentNode);
|
|
2369
|
-
return
|
|
2366
|
+
return Po();
|
|
2370
2367
|
}
|
|
2371
|
-
function
|
|
2368
|
+
function Ho(e, t) {
|
|
2372
2369
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2373
2370
|
return e;
|
|
2374
2371
|
}
|
|
2375
|
-
function
|
|
2372
|
+
function Uo(e, t) {
|
|
2376
2373
|
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);
|
|
2377
2374
|
}
|
|
2378
|
-
var
|
|
2379
|
-
function
|
|
2375
|
+
var Wo;
|
|
2376
|
+
function Go(e, t) {
|
|
2380
2377
|
return function() {
|
|
2381
|
-
if (!
|
|
2378
|
+
if (!Wo) {
|
|
2382
2379
|
var n = arguments, r = this;
|
|
2383
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
2384
|
-
|
|
2380
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Wo = setTimeout(function() {
|
|
2381
|
+
Wo = void 0;
|
|
2385
2382
|
}, t);
|
|
2386
2383
|
}
|
|
2387
2384
|
};
|
|
2388
2385
|
}
|
|
2389
|
-
function
|
|
2390
|
-
clearTimeout(
|
|
2386
|
+
function Ko() {
|
|
2387
|
+
clearTimeout(Wo), Wo = void 0;
|
|
2391
2388
|
}
|
|
2392
|
-
function
|
|
2389
|
+
function qo(e, t, n) {
|
|
2393
2390
|
e.scrollLeft += t, e.scrollTop += n;
|
|
2394
2391
|
}
|
|
2395
|
-
function
|
|
2392
|
+
function Jo(e) {
|
|
2396
2393
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
2397
2394
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2398
2395
|
}
|
|
2399
|
-
function
|
|
2396
|
+
function Yo(e, t, n) {
|
|
2400
2397
|
var r = {};
|
|
2401
2398
|
return Array.from(e.children).forEach(function(i) {
|
|
2402
|
-
if (
|
|
2403
|
-
var a =
|
|
2399
|
+
if (Ao(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
2400
|
+
var a = V(i);
|
|
2404
2401
|
r.left = Math.min(r.left ?? 1 / 0, a.left), r.top = Math.min(r.top ?? 1 / 0, a.top), r.right = Math.max(r.right ?? -1 / 0, a.right), r.bottom = Math.max(r.bottom ?? -1 / 0, a.bottom);
|
|
2405
2402
|
}
|
|
2406
2403
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
2407
2404
|
}
|
|
2408
|
-
var
|
|
2409
|
-
function
|
|
2405
|
+
var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2406
|
+
function Xo() {
|
|
2410
2407
|
var e = [], t;
|
|
2411
2408
|
return {
|
|
2412
2409
|
captureAnimationState: function() {
|
|
2413
2410
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
2414
|
-
if (
|
|
2411
|
+
if (B(t, "display") !== "none" && t !== Q.ghost) {
|
|
2415
2412
|
e.push({
|
|
2416
2413
|
target: t,
|
|
2417
|
-
rect:
|
|
2414
|
+
rect: V(t)
|
|
2418
2415
|
});
|
|
2419
|
-
var n =
|
|
2416
|
+
var n = po({}, e[e.length - 1].rect);
|
|
2420
2417
|
if (t.thisAnimationDuration) {
|
|
2421
|
-
var r =
|
|
2418
|
+
var r = Mo(t, !0);
|
|
2422
2419
|
r && (n.top -= r.f, n.left -= r.e);
|
|
2423
2420
|
}
|
|
2424
2421
|
t.fromRect = n;
|
|
@@ -2429,7 +2426,7 @@ function Bo() {
|
|
|
2429
2426
|
e.push(t);
|
|
2430
2427
|
},
|
|
2431
2428
|
removeAnimationState: function(t) {
|
|
2432
|
-
e.splice(
|
|
2429
|
+
e.splice(Bo(e, { target: t }), 1);
|
|
2433
2430
|
},
|
|
2434
2431
|
animateAll: function(n) {
|
|
2435
2432
|
var r = this;
|
|
@@ -2437,8 +2434,8 @@ function Bo() {
|
|
|
2437
2434
|
else {
|
|
2438
2435
|
var i = !1, a = 0;
|
|
2439
2436
|
e.forEach(function(e) {
|
|
2440
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
2441
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
2437
|
+
var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Mo(n, !0);
|
|
2438
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Uo(c, s) && !Uo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Qo(u, c, l, r.options)), Uo(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() {
|
|
2442
2439
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
2443
2440
|
}, t), n.thisAnimationDuration = t);
|
|
2444
2441
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -2448,27 +2445,27 @@ function Bo() {
|
|
|
2448
2445
|
},
|
|
2449
2446
|
animate: function(e, t, n, r) {
|
|
2450
2447
|
if (r) {
|
|
2451
|
-
|
|
2452
|
-
var i =
|
|
2453
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
2454
|
-
|
|
2448
|
+
B(e, "transition", ""), B(e, "transform", "");
|
|
2449
|
+
var i = Mo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
2450
|
+
e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Zo(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
2451
|
+
B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
2455
2452
|
}, r);
|
|
2456
2453
|
}
|
|
2457
2454
|
}
|
|
2458
2455
|
};
|
|
2459
2456
|
}
|
|
2460
|
-
function
|
|
2457
|
+
function Zo(e) {
|
|
2461
2458
|
return e.offsetWidth;
|
|
2462
2459
|
}
|
|
2463
|
-
function
|
|
2460
|
+
function Qo(e, t, n, r) {
|
|
2464
2461
|
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;
|
|
2465
2462
|
}
|
|
2466
|
-
var
|
|
2463
|
+
var $o = [], es = { initializeByDefault: !0 }, ts = {
|
|
2467
2464
|
mount: function(e) {
|
|
2468
|
-
for (var t in
|
|
2469
|
-
|
|
2465
|
+
for (var t in es) es.hasOwnProperty(t) && !(t in e) && (e[t] = es[t]);
|
|
2466
|
+
$o.forEach(function(t) {
|
|
2470
2467
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2471
|
-
}),
|
|
2468
|
+
}), $o.push(e);
|
|
2472
2469
|
},
|
|
2473
2470
|
pluginEvent: function(e, t, n) {
|
|
2474
2471
|
var r = this;
|
|
@@ -2476,16 +2473,16 @@ var Uo = [], Wo = { initializeByDefault: !0 }, Go = {
|
|
|
2476
2473
|
r.eventCanceled = !0;
|
|
2477
2474
|
};
|
|
2478
2475
|
var i = e + "Global";
|
|
2479
|
-
|
|
2480
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
2476
|
+
$o.forEach(function(r) {
|
|
2477
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](po({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](po({ sortable: t }, n)));
|
|
2481
2478
|
});
|
|
2482
2479
|
},
|
|
2483
2480
|
initializePlugins: function(e, t, n, r) {
|
|
2484
|
-
for (var i in
|
|
2481
|
+
for (var i in $o.forEach(function(r) {
|
|
2485
2482
|
var i = r.pluginName;
|
|
2486
2483
|
if (e.options[i] || r.initializeByDefault) {
|
|
2487
2484
|
var a = new r(e, t, e.options);
|
|
2488
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
2485
|
+
a.sortable = e, a.options = e.options, e[i] = a, go(n, a.defaults);
|
|
2489
2486
|
}
|
|
2490
2487
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
2491
2488
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -2494,59 +2491,59 @@ var Uo = [], Wo = { initializeByDefault: !0 }, Go = {
|
|
|
2494
2491
|
},
|
|
2495
2492
|
getEventProperties: function(e, t) {
|
|
2496
2493
|
var n = {};
|
|
2497
|
-
return
|
|
2498
|
-
typeof r.eventProperties == "function" &&
|
|
2494
|
+
return $o.forEach(function(r) {
|
|
2495
|
+
typeof r.eventProperties == "function" && go(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2499
2496
|
}), n;
|
|
2500
2497
|
},
|
|
2501
2498
|
modifyOption: function(e, t, n) {
|
|
2502
2499
|
var r;
|
|
2503
|
-
return
|
|
2500
|
+
return $o.forEach(function(i) {
|
|
2504
2501
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2505
2502
|
}), r;
|
|
2506
2503
|
}
|
|
2507
2504
|
};
|
|
2508
|
-
function
|
|
2505
|
+
function ns(e) {
|
|
2509
2506
|
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;
|
|
2510
|
-
if (t ||= n && n[
|
|
2507
|
+
if (t ||= n && n[H], t) {
|
|
2511
2508
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
2512
|
-
window.CustomEvent && !
|
|
2509
|
+
window.CustomEvent && !xo && !So ? h = new CustomEvent(r, {
|
|
2513
2510
|
bubbles: !0,
|
|
2514
2511
|
cancelable: !0
|
|
2515
2512
|
}) : (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;
|
|
2516
|
-
var v =
|
|
2513
|
+
var v = po(po({}, m), ts.getEventProperties(r, t));
|
|
2517
2514
|
for (var y in v) h[y] = v[y];
|
|
2518
2515
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
2519
2516
|
}
|
|
2520
2517
|
}
|
|
2521
|
-
var
|
|
2522
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
2523
|
-
|
|
2524
|
-
dragEl:
|
|
2525
|
-
parentEl:
|
|
2526
|
-
ghostEl:
|
|
2527
|
-
rootEl:
|
|
2528
|
-
nextEl:
|
|
2529
|
-
lastDownEl:
|
|
2530
|
-
cloneEl:
|
|
2531
|
-
cloneHidden:
|
|
2532
|
-
dragStarted:
|
|
2518
|
+
var rs = ["evt"], U = function(e, t) {
|
|
2519
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = vo(n, rs);
|
|
2520
|
+
ts.pluginEvent.bind(Q)(e, t, po({
|
|
2521
|
+
dragEl: G,
|
|
2522
|
+
parentEl: K,
|
|
2523
|
+
ghostEl: q,
|
|
2524
|
+
rootEl: J,
|
|
2525
|
+
nextEl: is,
|
|
2526
|
+
lastDownEl: as,
|
|
2527
|
+
cloneEl: Y,
|
|
2528
|
+
cloneHidden: os,
|
|
2529
|
+
dragStarted: xs,
|
|
2533
2530
|
putSortable: X,
|
|
2534
2531
|
activeSortable: Q.active,
|
|
2535
2532
|
originalEvent: r,
|
|
2536
|
-
oldIndex:
|
|
2537
|
-
oldDraggableIndex:
|
|
2538
|
-
newIndex:
|
|
2539
|
-
newDraggableIndex:
|
|
2540
|
-
hideGhostForTarget:
|
|
2541
|
-
unhideGhostForTarget:
|
|
2533
|
+
oldIndex: ss,
|
|
2534
|
+
oldDraggableIndex: ls,
|
|
2535
|
+
newIndex: cs,
|
|
2536
|
+
newDraggableIndex: us,
|
|
2537
|
+
hideGhostForTarget: zs,
|
|
2538
|
+
unhideGhostForTarget: Bs,
|
|
2542
2539
|
cloneNowHidden: function() {
|
|
2543
|
-
|
|
2540
|
+
os = !0;
|
|
2544
2541
|
},
|
|
2545
2542
|
cloneNowShown: function() {
|
|
2546
|
-
|
|
2543
|
+
os = !1;
|
|
2547
2544
|
},
|
|
2548
2545
|
dispatchSortableEvent: function(e) {
|
|
2549
|
-
|
|
2546
|
+
W({
|
|
2550
2547
|
sortable: t,
|
|
2551
2548
|
name: e,
|
|
2552
2549
|
originalEvent: r
|
|
@@ -2554,46 +2551,46 @@ var qo = ["evt"], H = function(e, t) {
|
|
|
2554
2551
|
}
|
|
2555
2552
|
}, i));
|
|
2556
2553
|
};
|
|
2557
|
-
function
|
|
2558
|
-
|
|
2554
|
+
function W(e) {
|
|
2555
|
+
ns(po({
|
|
2559
2556
|
putSortable: X,
|
|
2560
|
-
cloneEl:
|
|
2561
|
-
targetEl:
|
|
2562
|
-
rootEl:
|
|
2563
|
-
oldIndex:
|
|
2564
|
-
oldDraggableIndex:
|
|
2565
|
-
newIndex:
|
|
2566
|
-
newDraggableIndex:
|
|
2557
|
+
cloneEl: Y,
|
|
2558
|
+
targetEl: G,
|
|
2559
|
+
rootEl: J,
|
|
2560
|
+
oldIndex: ss,
|
|
2561
|
+
oldDraggableIndex: ls,
|
|
2562
|
+
newIndex: cs,
|
|
2563
|
+
newDraggableIndex: us
|
|
2567
2564
|
}, e));
|
|
2568
2565
|
}
|
|
2569
|
-
var
|
|
2570
|
-
if (
|
|
2571
|
-
if (
|
|
2566
|
+
var G, K, q, J, is, as, Y, os, ss, cs, ls, us, ds, X, fs = !1, ps = !1, ms = [], hs, gs, _s, vs, ys, bs, xs, Ss, Cs, ws = !1, Ts = !1, Es, Z, Ds = [], Os = !1, ks = [], As = typeof document < "u", js = To, Ms = So || xo ? "cssFloat" : "float", Ns = As && !Eo && !To && "draggable" in document.createElement("div"), Ps = function() {
|
|
2567
|
+
if (As) {
|
|
2568
|
+
if (xo) return !1;
|
|
2572
2569
|
var e = document.createElement("x");
|
|
2573
2570
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2574
2571
|
}
|
|
2575
|
-
}(),
|
|
2576
|
-
var n =
|
|
2572
|
+
}(), Fs = function(e, t) {
|
|
2573
|
+
var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Io(e, 0, t), a = Io(e, 1, t), o = i && B(i), s = a && B(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + V(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + V(a).width;
|
|
2577
2574
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2578
2575
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2579
2576
|
if (i && o.float && o.float !== "none") {
|
|
2580
2577
|
var u = o.float === "left" ? "left" : "right";
|
|
2581
2578
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
2582
2579
|
}
|
|
2583
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
2584
|
-
},
|
|
2580
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Ms] === "none" || a && n[Ms] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
2581
|
+
}, Is = function(e, t, n) {
|
|
2585
2582
|
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;
|
|
2586
2583
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
2587
|
-
},
|
|
2584
|
+
}, Ls = function(e, t) {
|
|
2588
2585
|
var n;
|
|
2589
|
-
return
|
|
2590
|
-
var i = r[
|
|
2591
|
-
if (i && !
|
|
2592
|
-
var a =
|
|
2586
|
+
return ms.some(function(r) {
|
|
2587
|
+
var i = r[H].options.emptyInsertThreshold;
|
|
2588
|
+
if (i && !Lo(r)) {
|
|
2589
|
+
var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
2593
2590
|
if (o && s) return n = r;
|
|
2594
2591
|
}
|
|
2595
2592
|
}), n;
|
|
2596
|
-
},
|
|
2593
|
+
}, Rs = function(e) {
|
|
2597
2594
|
function t(e, n) {
|
|
2598
2595
|
return function(r, i, a, o) {
|
|
2599
2596
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -2606,31 +2603,31 @@ var W, G, K, q, Jo, Yo, J, Xo, Zo, Y, Qo, $o, es, X, ts = !1, ns = !1, rs = [],
|
|
|
2606
2603
|
};
|
|
2607
2604
|
}
|
|
2608
2605
|
var n = {}, r = e.group;
|
|
2609
|
-
(!r ||
|
|
2610
|
-
},
|
|
2611
|
-
!
|
|
2612
|
-
},
|
|
2613
|
-
!
|
|
2606
|
+
(!r || mo(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;
|
|
2607
|
+
}, zs = function() {
|
|
2608
|
+
!Ps && q && B(q, "display", "none");
|
|
2609
|
+
}, Bs = function() {
|
|
2610
|
+
!Ps && q && B(q, "display", "");
|
|
2614
2611
|
};
|
|
2615
|
-
|
|
2616
|
-
if (
|
|
2612
|
+
As && !Eo && document.addEventListener("click", function(e) {
|
|
2613
|
+
if (ps) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ps = !1, !1;
|
|
2617
2614
|
}, !0);
|
|
2618
|
-
var
|
|
2619
|
-
if (
|
|
2615
|
+
var Vs = function(e) {
|
|
2616
|
+
if (G) {
|
|
2620
2617
|
e = e.touches ? e.touches[0] : e;
|
|
2621
|
-
var t =
|
|
2618
|
+
var t = Ls(e.clientX, e.clientY);
|
|
2622
2619
|
if (t) {
|
|
2623
2620
|
var n = {};
|
|
2624
2621
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
2625
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
2622
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[H]._onDragOver(n);
|
|
2626
2623
|
}
|
|
2627
2624
|
}
|
|
2628
|
-
},
|
|
2629
|
-
|
|
2625
|
+
}, Hs = function(e) {
|
|
2626
|
+
G && G.parentNode[H]._isOutsideThisEl(e.target);
|
|
2630
2627
|
};
|
|
2631
2628
|
function Q(e, t) {
|
|
2632
2629
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
2633
|
-
this.el = e, this.options = t =
|
|
2630
|
+
this.el = e, this.options = t = go({}, t), e[H] = this;
|
|
2634
2631
|
var n = {
|
|
2635
2632
|
group: null,
|
|
2636
2633
|
sort: !0,
|
|
@@ -2643,7 +2640,7 @@ function Q(e, t) {
|
|
|
2643
2640
|
invertedSwapThreshold: null,
|
|
2644
2641
|
removeCloneOnHide: !0,
|
|
2645
2642
|
direction: function() {
|
|
2646
|
-
return
|
|
2643
|
+
return Fs(e, this.options);
|
|
2647
2644
|
},
|
|
2648
2645
|
ghostClass: "sortable-ghost",
|
|
2649
2646
|
chosenClass: "sortable-chosen",
|
|
@@ -2670,71 +2667,71 @@ function Q(e, t) {
|
|
|
2670
2667
|
x: 0,
|
|
2671
2668
|
y: 0
|
|
2672
2669
|
},
|
|
2673
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
2670
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !wo,
|
|
2674
2671
|
emptyInsertThreshold: 5
|
|
2675
2672
|
};
|
|
2676
|
-
for (var r in
|
|
2677
|
-
for (var i in
|
|
2678
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
2673
|
+
for (var r in ts.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
2674
|
+
for (var i in Rs(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2675
|
+
this.nativeDraggable = !t.forceFallback && Ns, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), ms.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), go(this, Xo());
|
|
2679
2676
|
}
|
|
2680
2677
|
Q.prototype = {
|
|
2681
2678
|
constructor: Q,
|
|
2682
2679
|
_isOutsideThisEl: function(e) {
|
|
2683
|
-
!this.el.contains(e) && e !== this.el && (
|
|
2680
|
+
!this.el.contains(e) && e !== this.el && (Ss = null);
|
|
2684
2681
|
},
|
|
2685
2682
|
_getDirection: function(e, t) {
|
|
2686
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t,
|
|
2683
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
2687
2684
|
},
|
|
2688
2685
|
_onTapStart: function(e) {
|
|
2689
2686
|
if (e.cancelable) {
|
|
2690
2687
|
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;
|
|
2691
|
-
if (
|
|
2692
|
-
if (
|
|
2688
|
+
if (Qs(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && wo && s && s.tagName.toUpperCase() === "SELECT") && (s = Ao(s, r.draggable, n, !1), !(s && s.animated) && as !== s)) {
|
|
2689
|
+
if (ss = Ro(s), ls = Ro(s, r.draggable), typeof l == "function") {
|
|
2693
2690
|
if (l.call(this, e, s, this)) {
|
|
2694
|
-
|
|
2691
|
+
W({
|
|
2695
2692
|
sortable: t,
|
|
2696
2693
|
rootEl: c,
|
|
2697
2694
|
name: "filter",
|
|
2698
2695
|
targetEl: s,
|
|
2699
2696
|
toEl: n,
|
|
2700
2697
|
fromEl: n
|
|
2701
|
-
}),
|
|
2698
|
+
}), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
2702
2699
|
return;
|
|
2703
2700
|
}
|
|
2704
2701
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
2705
|
-
if (r =
|
|
2702
|
+
if (r = Ao(c, r.trim(), n, !1), r) return W({
|
|
2706
2703
|
sortable: t,
|
|
2707
2704
|
rootEl: r,
|
|
2708
2705
|
name: "filter",
|
|
2709
2706
|
targetEl: s,
|
|
2710
2707
|
fromEl: n,
|
|
2711
2708
|
toEl: n
|
|
2712
|
-
}),
|
|
2709
|
+
}), U("filter", t, { evt: e }), !0;
|
|
2713
2710
|
}), l)) {
|
|
2714
2711
|
i && e.cancelable && e.preventDefault();
|
|
2715
2712
|
return;
|
|
2716
2713
|
}
|
|
2717
|
-
r.handle && !
|
|
2714
|
+
r.handle && !Ao(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
2718
2715
|
}
|
|
2719
2716
|
}
|
|
2720
2717
|
},
|
|
2721
2718
|
_prepareDragStart: function(e, t, n) {
|
|
2722
2719
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
2723
|
-
if (n && !
|
|
2724
|
-
var c =
|
|
2725
|
-
if (
|
|
2726
|
-
target:
|
|
2720
|
+
if (n && !G && n.parentNode === i) {
|
|
2721
|
+
var c = V(n);
|
|
2722
|
+
if (J = i, G = n, K = G.parentNode, is = G.nextSibling, as = n, ds = a.group, Q.dragged = G, hs = {
|
|
2723
|
+
target: G,
|
|
2727
2724
|
clientX: (t || e).clientX,
|
|
2728
2725
|
clientY: (t || e).clientY
|
|
2729
|
-
},
|
|
2730
|
-
|
|
2726
|
+
}, ys = hs.clientX - c.left, bs = hs.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
2727
|
+
U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !Co && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
|
|
2731
2728
|
sortable: r,
|
|
2732
2729
|
name: "choose",
|
|
2733
2730
|
originalEvent: e
|
|
2734
|
-
}),
|
|
2731
|
+
}), z(G, a.chosenClass, !0));
|
|
2735
2732
|
}, a.ignore.split(",").forEach(function(e) {
|
|
2736
|
-
|
|
2737
|
-
}), L(o, "dragover",
|
|
2733
|
+
No(G, e.trim(), Gs);
|
|
2734
|
+
}), L(o, "dragover", Vs), L(o, "mousemove", Vs), L(o, "touchmove", Vs), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), Co && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(So || xo))) {
|
|
2738
2735
|
if (Q.eventCanceled) {
|
|
2739
2736
|
this._onDrop();
|
|
2740
2737
|
return;
|
|
@@ -2748,25 +2745,25 @@ Q.prototype = {
|
|
|
2748
2745
|
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();
|
|
2749
2746
|
},
|
|
2750
2747
|
_disableDelayedDrag: function() {
|
|
2751
|
-
|
|
2748
|
+
G && Gs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2752
2749
|
},
|
|
2753
2750
|
_disableDelayedDragEvents: function() {
|
|
2754
2751
|
var e = this.el.ownerDocument;
|
|
2755
2752
|
R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2756
2753
|
},
|
|
2757
2754
|
_triggerDragStart: function(e, t) {
|
|
2758
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(
|
|
2755
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(G, "dragend", this), L(J, "dragstart", this._onDragStart));
|
|
2759
2756
|
try {
|
|
2760
|
-
document.selection ?
|
|
2757
|
+
document.selection ? $s(function() {
|
|
2761
2758
|
document.selection.empty();
|
|
2762
2759
|
}) : window.getSelection().removeAllRanges();
|
|
2763
2760
|
} catch {}
|
|
2764
2761
|
},
|
|
2765
2762
|
_dragStarted: function(e, t) {
|
|
2766
|
-
if (
|
|
2767
|
-
|
|
2763
|
+
if (fs = !1, J && G) {
|
|
2764
|
+
U("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", Hs);
|
|
2768
2765
|
var n = this.options;
|
|
2769
|
-
!e &&
|
|
2766
|
+
!e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
|
|
2770
2767
|
sortable: this,
|
|
2771
2768
|
name: "start",
|
|
2772
2769
|
originalEvent: t
|
|
@@ -2774,33 +2771,33 @@ Q.prototype = {
|
|
|
2774
2771
|
} else this._nulling();
|
|
2775
2772
|
},
|
|
2776
2773
|
_emulateDragOver: function() {
|
|
2777
|
-
if (
|
|
2778
|
-
this._lastX =
|
|
2779
|
-
for (var e = document.elementFromPoint(
|
|
2780
|
-
if (
|
|
2781
|
-
if (t[
|
|
2774
|
+
if (gs) {
|
|
2775
|
+
this._lastX = gs.clientX, this._lastY = gs.clientY, zs();
|
|
2776
|
+
for (var e = document.elementFromPoint(gs.clientX, gs.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(gs.clientX, gs.clientY), e !== t);) t = e;
|
|
2777
|
+
if (G.parentNode[H]._isOutsideThisEl(e), t) do {
|
|
2778
|
+
if (t[H]) {
|
|
2782
2779
|
var n = void 0;
|
|
2783
|
-
if (n = t[
|
|
2784
|
-
clientX:
|
|
2785
|
-
clientY:
|
|
2780
|
+
if (n = t[H]._onDragOver({
|
|
2781
|
+
clientX: gs.clientX,
|
|
2782
|
+
clientY: gs.clientY,
|
|
2786
2783
|
target: e,
|
|
2787
2784
|
rootEl: t
|
|
2788
2785
|
}), n && !this.options.dragoverBubble) break;
|
|
2789
2786
|
}
|
|
2790
2787
|
e = t;
|
|
2791
2788
|
} while (t = t.parentNode);
|
|
2792
|
-
|
|
2789
|
+
Bs();
|
|
2793
2790
|
}
|
|
2794
2791
|
},
|
|
2795
2792
|
_onTouchMove: function(e) {
|
|
2796
|
-
if (
|
|
2797
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a =
|
|
2798
|
-
if (!Q.active && !
|
|
2793
|
+
if (hs) {
|
|
2794
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Mo(q, !0), o = q && a && a.a, s = q && a && a.d, c = js && Z && zo(Z), l = (i.clientX - hs.clientX + r.x) / (o || 1) + (c ? c[0] - Ds[0] : 0) / (o || 1), u = (i.clientY - hs.clientY + r.y) / (s || 1) + (c ? c[1] - Ds[1] : 0) / (s || 1);
|
|
2795
|
+
if (!Q.active && !fs) {
|
|
2799
2796
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
2800
2797
|
this._onDragStart(e, !0);
|
|
2801
2798
|
}
|
|
2802
|
-
if (
|
|
2803
|
-
a ? (a.e += l - (
|
|
2799
|
+
if (q) {
|
|
2800
|
+
a ? (a.e += l - (_s || 0), a.f += u - (vs || 0)) : a = {
|
|
2804
2801
|
a: 1,
|
|
2805
2802
|
b: 0,
|
|
2806
2803
|
c: 0,
|
|
@@ -2809,35 +2806,35 @@ Q.prototype = {
|
|
|
2809
2806
|
f: u
|
|
2810
2807
|
};
|
|
2811
2808
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
2812
|
-
|
|
2809
|
+
B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), _s = l, vs = u, gs = i;
|
|
2813
2810
|
}
|
|
2814
2811
|
e.cancelable && e.preventDefault();
|
|
2815
2812
|
}
|
|
2816
2813
|
},
|
|
2817
2814
|
_appendGhost: function() {
|
|
2818
|
-
if (!
|
|
2819
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
2820
|
-
if (
|
|
2821
|
-
for (Z = e;
|
|
2822
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
2815
|
+
if (!q) {
|
|
2816
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, js, !0, e), n = this.options;
|
|
2817
|
+
if (js) {
|
|
2818
|
+
for (Z = e; B(Z, "position") === "static" && B(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
2819
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Po()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Po(), Ds = zo(Z);
|
|
2823
2820
|
}
|
|
2824
|
-
|
|
2821
|
+
q = G.cloneNode(!0), z(q, n.ghostClass, !1), z(q, n.fallbackClass, !0), z(q, n.dragClass, !0), B(q, "transition", ""), B(q, "transform", ""), B(q, "box-sizing", "border-box"), B(q, "margin", 0), B(q, "top", t.top), B(q, "left", t.left), B(q, "width", t.width), B(q, "height", t.height), B(q, "opacity", "0.8"), B(q, "position", js ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), B(q, "transform-origin", ys / parseInt(q.style.width) * 100 + "% " + bs / parseInt(q.style.height) * 100 + "%");
|
|
2825
2822
|
}
|
|
2826
2823
|
},
|
|
2827
2824
|
_onDragStart: function(e, t) {
|
|
2828
2825
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
2829
|
-
|
|
2830
|
-
|
|
2826
|
+
U("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (U("setupClone", this), Q.eventCanceled || (Y = Jo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = $s(function() {
|
|
2827
|
+
U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
|
|
2831
2828
|
sortable: n,
|
|
2832
2829
|
name: "clone"
|
|
2833
2830
|
}));
|
|
2834
|
-
}), !t &&
|
|
2831
|
+
}), !t && z(G, i.dragClass, !0), t ? (ps = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), L(document, "drop", n), B(G, "transform", "translateZ(0)")), fs = !0, n._dragStartId = $s(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), xs = !0, wo && B(document.body, "user-select", "none"));
|
|
2835
2832
|
},
|
|
2836
2833
|
_onDragOver: function(e) {
|
|
2837
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
2838
|
-
if (
|
|
2834
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = ds === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
2835
|
+
if (Os) return;
|
|
2839
2836
|
function h(o, s) {
|
|
2840
|
-
|
|
2837
|
+
U(o, p, po({
|
|
2841
2838
|
evt: e,
|
|
2842
2839
|
isOwner: l,
|
|
2843
2840
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2849,7 +2846,7 @@ Q.prototype = {
|
|
|
2849
2846
|
target: n,
|
|
2850
2847
|
completed: _,
|
|
2851
2848
|
onMove: function(n, i) {
|
|
2852
|
-
return
|
|
2849
|
+
return Ws(J, t, G, r, n, V(n), e, i);
|
|
2853
2850
|
},
|
|
2854
2851
|
changed: v
|
|
2855
2852
|
}, s));
|
|
@@ -2858,58 +2855,58 @@ Q.prototype = {
|
|
|
2858
2855
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
2859
2856
|
}
|
|
2860
2857
|
function _(r) {
|
|
2861
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
2858
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(G, X ? X.options.ghostClass : c.options.ghostClass, !1), z(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
2862
2859
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
2863
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n ===
|
|
2860
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Ss = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[H]._isOutsideThisEl(e.target), !r && Vs(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
2864
2861
|
}
|
|
2865
2862
|
function v() {
|
|
2866
|
-
|
|
2863
|
+
cs = Ro(G), us = Ro(G, o.draggable), W({
|
|
2867
2864
|
sortable: p,
|
|
2868
2865
|
name: "change",
|
|
2869
2866
|
toEl: t,
|
|
2870
|
-
newIndex:
|
|
2871
|
-
newDraggableIndex:
|
|
2867
|
+
newIndex: cs,
|
|
2868
|
+
newDraggableIndex: us,
|
|
2872
2869
|
originalEvent: e
|
|
2873
2870
|
});
|
|
2874
2871
|
}
|
|
2875
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
2876
|
-
if (
|
|
2877
|
-
if (
|
|
2878
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
2879
|
-
if (a) return
|
|
2880
|
-
var y =
|
|
2881
|
-
if (!y ||
|
|
2882
|
-
if (y ===
|
|
2883
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
2884
|
-
} else if (y &&
|
|
2885
|
-
var b =
|
|
2886
|
-
if (b ===
|
|
2887
|
-
if (n = b, i =
|
|
2872
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ao(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
2873
|
+
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
2874
|
+
if (ps = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = ds.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
2875
|
+
if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), Q.eventCanceled) return m;
|
|
2876
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (is ? J.insertBefore(G, is) : J.appendChild(G)), _(!0);
|
|
2877
|
+
var y = Lo(t, o.draggable);
|
|
2878
|
+
if (!y || Js(e, f, this) && !y.animated) {
|
|
2879
|
+
if (y === G) return _(!1);
|
|
2880
|
+
if (y && t === e.target && (n = y), n && (i = V(n)), Ws(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);
|
|
2881
|
+
} else if (y && qs(e, f, this)) {
|
|
2882
|
+
var b = Io(t, 0, o, !0);
|
|
2883
|
+
if (b === G) return _(!1);
|
|
2884
|
+
if (n = b, i = V(n), Ws(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
2888
2885
|
} else if (n.parentNode === t) {
|
|
2889
|
-
i =
|
|
2890
|
-
var x = 0, S, C =
|
|
2891
|
-
|
|
2886
|
+
i = V(n);
|
|
2887
|
+
var x = 0, S, C = G.parentNode !== t, w = !Is(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Fo(n, "top", "top") || Fo(G, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
2888
|
+
Ss !== n && (S = i[T], ws = !1, Ts = !w && o.invertSwap || C), x = Ys(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ts, Ss === n);
|
|
2892
2889
|
var O;
|
|
2893
2890
|
if (x !== 0) {
|
|
2894
|
-
var k =
|
|
2891
|
+
var k = Ro(G);
|
|
2895
2892
|
do
|
|
2896
|
-
k -= x, O =
|
|
2897
|
-
while (O && (
|
|
2893
|
+
k -= x, O = K.children[k];
|
|
2894
|
+
while (O && (B(O, "display") === "none" || O === q));
|
|
2898
2895
|
}
|
|
2899
2896
|
if (x === 0 || O === n) return _(!1);
|
|
2900
|
-
|
|
2897
|
+
Ss = n, Cs = x;
|
|
2901
2898
|
var A = n.nextElementSibling, j = !1;
|
|
2902
2899
|
j = x === 1;
|
|
2903
|
-
var M =
|
|
2904
|
-
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1),
|
|
2900
|
+
var M = Ws(J, t, G, r, n, i, e, j);
|
|
2901
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Os = !0, setTimeout(Ks, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && qo(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Ts && (Es = Math.abs(S - V(n)[T])), v(), _(!0);
|
|
2905
2902
|
}
|
|
2906
|
-
if (t.contains(
|
|
2903
|
+
if (t.contains(G)) return _(!1);
|
|
2907
2904
|
}
|
|
2908
2905
|
return !1;
|
|
2909
2906
|
},
|
|
2910
2907
|
_ignoreWhileAnimating: null,
|
|
2911
2908
|
_offMoveEvents: function() {
|
|
2912
|
-
R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover",
|
|
2909
|
+
R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", Vs), R(document, "mousemove", Vs), R(document, "touchmove", Vs);
|
|
2913
2910
|
},
|
|
2914
2911
|
_offUpEvents: function() {
|
|
2915
2912
|
var e = this.el.ownerDocument;
|
|
@@ -2917,56 +2914,56 @@ Q.prototype = {
|
|
|
2917
2914
|
},
|
|
2918
2915
|
_onDrop: function(e) {
|
|
2919
2916
|
var t = this.el, n = this.options;
|
|
2920
|
-
|
|
2917
|
+
cs = Ro(G), us = Ro(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, cs = Ro(G), us = Ro(G, n.draggable), Q.eventCanceled || (fs = !1, Ts = !1, ws = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ec(this.cloneId), ec(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wo && B(document.body, "user-select", ""), B(G, "transform", ""), e && (xs && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && R(G, "dragend", this), Gs(G), G.style["will-change"] = "", xs && !fs && z(G, X ? X.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), W({
|
|
2921
2918
|
sortable: this,
|
|
2922
2919
|
name: "unchoose",
|
|
2923
|
-
toEl:
|
|
2920
|
+
toEl: K,
|
|
2924
2921
|
newIndex: null,
|
|
2925
2922
|
newDraggableIndex: null,
|
|
2926
2923
|
originalEvent: e
|
|
2927
|
-
}),
|
|
2924
|
+
}), J === K ? cs !== ss && cs >= 0 && (W({
|
|
2928
2925
|
sortable: this,
|
|
2929
2926
|
name: "update",
|
|
2930
|
-
toEl:
|
|
2927
|
+
toEl: K,
|
|
2931
2928
|
originalEvent: e
|
|
2932
|
-
}),
|
|
2929
|
+
}), W({
|
|
2933
2930
|
sortable: this,
|
|
2934
2931
|
name: "sort",
|
|
2935
|
-
toEl:
|
|
2932
|
+
toEl: K,
|
|
2936
2933
|
originalEvent: e
|
|
2937
|
-
})) : (
|
|
2938
|
-
rootEl:
|
|
2934
|
+
})) : (cs >= 0 && (W({
|
|
2935
|
+
rootEl: K,
|
|
2939
2936
|
name: "add",
|
|
2940
|
-
toEl:
|
|
2941
|
-
fromEl:
|
|
2937
|
+
toEl: K,
|
|
2938
|
+
fromEl: J,
|
|
2942
2939
|
originalEvent: e
|
|
2943
|
-
}),
|
|
2940
|
+
}), W({
|
|
2944
2941
|
sortable: this,
|
|
2945
2942
|
name: "remove",
|
|
2946
|
-
toEl:
|
|
2943
|
+
toEl: K,
|
|
2947
2944
|
originalEvent: e
|
|
2948
|
-
}),
|
|
2949
|
-
rootEl:
|
|
2945
|
+
}), W({
|
|
2946
|
+
rootEl: K,
|
|
2950
2947
|
name: "sort",
|
|
2951
|
-
toEl:
|
|
2952
|
-
fromEl:
|
|
2948
|
+
toEl: K,
|
|
2949
|
+
fromEl: J,
|
|
2953
2950
|
originalEvent: e
|
|
2954
|
-
}),
|
|
2951
|
+
}), W({
|
|
2955
2952
|
sortable: this,
|
|
2956
2953
|
name: "sort",
|
|
2957
|
-
toEl:
|
|
2954
|
+
toEl: K,
|
|
2958
2955
|
originalEvent: e
|
|
2959
|
-
})), X && X.save()), Q.active && ((
|
|
2956
|
+
})), X && X.save()), Q.active && ((cs == null || cs === -1) && (cs = ss, us = ls), W({
|
|
2960
2957
|
sortable: this,
|
|
2961
2958
|
name: "end",
|
|
2962
|
-
toEl:
|
|
2959
|
+
toEl: K,
|
|
2963
2960
|
originalEvent: e
|
|
2964
2961
|
}), this.save())))), this._nulling();
|
|
2965
2962
|
},
|
|
2966
2963
|
_nulling: function() {
|
|
2967
|
-
|
|
2964
|
+
U("nulling", this), J = G = K = q = is = Y = as = os = hs = gs = xs = cs = us = ss = ls = Ss = Cs = X = ds = Q.dragged = Q.ghost = Q.clone = Q.active = null, ks.forEach(function(e) {
|
|
2968
2965
|
e.checked = !0;
|
|
2969
|
-
}),
|
|
2966
|
+
}), ks.length = _s = vs = 0;
|
|
2970
2967
|
},
|
|
2971
2968
|
handleEvent: function(e) {
|
|
2972
2969
|
switch (e.type) {
|
|
@@ -2976,20 +2973,20 @@ Q.prototype = {
|
|
|
2976
2973
|
break;
|
|
2977
2974
|
case "dragenter":
|
|
2978
2975
|
case "dragover":
|
|
2979
|
-
|
|
2976
|
+
G && (this._onDragOver(e), Us(e));
|
|
2980
2977
|
break;
|
|
2981
2978
|
case "selectstart": e.preventDefault();
|
|
2982
2979
|
}
|
|
2983
2980
|
},
|
|
2984
2981
|
toArray: function() {
|
|
2985
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
2982
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ao(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Zs(t));
|
|
2986
2983
|
return e;
|
|
2987
2984
|
},
|
|
2988
2985
|
sort: function(e, t) {
|
|
2989
2986
|
var n = {}, r = this.el;
|
|
2990
2987
|
this.toArray().forEach(function(e, t) {
|
|
2991
2988
|
var i = r.children[t];
|
|
2992
|
-
|
|
2989
|
+
Ao(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
2993
2990
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
2994
2991
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
2995
2992
|
}), t && this.animateAll();
|
|
@@ -2999,122 +2996,122 @@ Q.prototype = {
|
|
|
2999
2996
|
e && e.set && e.set(this);
|
|
3000
2997
|
},
|
|
3001
2998
|
closest: function(e, t) {
|
|
3002
|
-
return
|
|
2999
|
+
return Ao(e, t || this.options.draggable, this.el, !1);
|
|
3003
3000
|
},
|
|
3004
3001
|
option: function(e, t) {
|
|
3005
3002
|
var n = this.options;
|
|
3006
3003
|
if (t === void 0) return n[e];
|
|
3007
|
-
var r =
|
|
3008
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
3004
|
+
var r = ts.modifyOption(this, e, t);
|
|
3005
|
+
n[e] = r === void 0 ? t : r, e === "group" && Rs(n);
|
|
3009
3006
|
},
|
|
3010
3007
|
destroy: function() {
|
|
3011
|
-
|
|
3008
|
+
U("destroy", this);
|
|
3012
3009
|
var e = this.el;
|
|
3013
|
-
e[
|
|
3010
|
+
e[H] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
3014
3011
|
e.removeAttribute("draggable");
|
|
3015
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
3012
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ms.splice(ms.indexOf(this.el), 1), this.el = e = null;
|
|
3016
3013
|
},
|
|
3017
3014
|
_hideClone: function() {
|
|
3018
|
-
if (!
|
|
3019
|
-
if (
|
|
3020
|
-
|
|
3015
|
+
if (!os) {
|
|
3016
|
+
if (U("hideClone", this), Q.eventCanceled) return;
|
|
3017
|
+
B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), os = !0;
|
|
3021
3018
|
}
|
|
3022
3019
|
},
|
|
3023
3020
|
_showClone: function(e) {
|
|
3024
3021
|
if (e.lastPutMode !== "clone") this._hideClone();
|
|
3025
|
-
else if (
|
|
3026
|
-
if (
|
|
3027
|
-
|
|
3022
|
+
else if (os) {
|
|
3023
|
+
if (U("showClone", this), Q.eventCanceled) return;
|
|
3024
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : is ? J.insertBefore(Y, is) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), os = !1;
|
|
3028
3025
|
}
|
|
3029
3026
|
}
|
|
3030
3027
|
};
|
|
3031
|
-
function
|
|
3028
|
+
function Us(e) {
|
|
3032
3029
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
3033
3030
|
}
|
|
3034
|
-
function
|
|
3035
|
-
var c, l = e[
|
|
3036
|
-
return window.CustomEvent && !
|
|
3031
|
+
function Ws(e, t, n, r, i, a, o, s) {
|
|
3032
|
+
var c, l = e[H], u = l.options.onMove, d;
|
|
3033
|
+
return window.CustomEvent && !xo && !So ? c = new CustomEvent("move", {
|
|
3037
3034
|
bubbles: !0,
|
|
3038
3035
|
cancelable: !0
|
|
3039
|
-
}) : (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 ||
|
|
3036
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || V(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
3040
3037
|
}
|
|
3041
|
-
function
|
|
3038
|
+
function Gs(e) {
|
|
3042
3039
|
e.draggable = !1;
|
|
3043
3040
|
}
|
|
3044
|
-
function
|
|
3045
|
-
|
|
3041
|
+
function Ks() {
|
|
3042
|
+
Os = !1;
|
|
3046
3043
|
}
|
|
3047
|
-
function
|
|
3048
|
-
var r =
|
|
3044
|
+
function qs(e, t, n) {
|
|
3045
|
+
var r = V(Io(n.el, 0, n.options, !0)), i = Yo(n.el, n.options, q), a = 10;
|
|
3049
3046
|
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;
|
|
3050
3047
|
}
|
|
3051
|
-
function
|
|
3052
|
-
var r =
|
|
3048
|
+
function Js(e, t, n) {
|
|
3049
|
+
var r = V(Lo(n.el, n.options.draggable)), i = Yo(n.el, n.options, q), a = 10;
|
|
3053
3050
|
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;
|
|
3054
3051
|
}
|
|
3055
|
-
function
|
|
3052
|
+
function Ys(e, t, n, r, i, a, o, s) {
|
|
3056
3053
|
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;
|
|
3057
3054
|
if (!o) {
|
|
3058
|
-
if (s &&
|
|
3059
|
-
if (!
|
|
3060
|
-
else if (
|
|
3061
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
3055
|
+
if (s && Es < l * i) {
|
|
3056
|
+
if (!ws && (Cs === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (ws = !0), ws) f = !0;
|
|
3057
|
+
else if (Cs === 1 ? c < u + Es : c > d - Es) return -Cs;
|
|
3058
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Xs(t);
|
|
3062
3059
|
}
|
|
3063
3060
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
3064
3061
|
}
|
|
3065
|
-
function
|
|
3066
|
-
return
|
|
3062
|
+
function Xs(e) {
|
|
3063
|
+
return Ro(G) < Ro(e) ? 1 : -1;
|
|
3067
3064
|
}
|
|
3068
|
-
function
|
|
3065
|
+
function Zs(e) {
|
|
3069
3066
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
3070
3067
|
return r.toString(36);
|
|
3071
3068
|
}
|
|
3072
|
-
function
|
|
3073
|
-
|
|
3069
|
+
function Qs(e) {
|
|
3070
|
+
ks.length = 0;
|
|
3074
3071
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
3075
3072
|
var r = t[n];
|
|
3076
|
-
r.checked &&
|
|
3073
|
+
r.checked && ks.push(r);
|
|
3077
3074
|
}
|
|
3078
3075
|
}
|
|
3079
|
-
function
|
|
3076
|
+
function $s(e) {
|
|
3080
3077
|
return setTimeout(e, 0);
|
|
3081
3078
|
}
|
|
3082
|
-
function
|
|
3079
|
+
function ec(e) {
|
|
3083
3080
|
return clearTimeout(e);
|
|
3084
3081
|
}
|
|
3085
|
-
|
|
3086
|
-
(Q.active ||
|
|
3082
|
+
As && L(document, "touchmove", function(e) {
|
|
3083
|
+
(Q.active || fs) && e.cancelable && e.preventDefault();
|
|
3087
3084
|
}), Q.utils = {
|
|
3088
3085
|
on: L,
|
|
3089
3086
|
off: R,
|
|
3090
|
-
css:
|
|
3091
|
-
find:
|
|
3087
|
+
css: B,
|
|
3088
|
+
find: No,
|
|
3092
3089
|
is: function(e, t) {
|
|
3093
|
-
return !!
|
|
3094
|
-
},
|
|
3095
|
-
extend:
|
|
3096
|
-
throttle:
|
|
3097
|
-
closest:
|
|
3098
|
-
toggleClass:
|
|
3099
|
-
clone:
|
|
3100
|
-
index:
|
|
3101
|
-
nextTick:
|
|
3102
|
-
cancelNextTick:
|
|
3103
|
-
detectDirection:
|
|
3104
|
-
getChild:
|
|
3090
|
+
return !!Ao(e, t, e, !1);
|
|
3091
|
+
},
|
|
3092
|
+
extend: Ho,
|
|
3093
|
+
throttle: Go,
|
|
3094
|
+
closest: Ao,
|
|
3095
|
+
toggleClass: z,
|
|
3096
|
+
clone: Jo,
|
|
3097
|
+
index: Ro,
|
|
3098
|
+
nextTick: $s,
|
|
3099
|
+
cancelNextTick: ec,
|
|
3100
|
+
detectDirection: Fs,
|
|
3101
|
+
getChild: Io
|
|
3105
3102
|
}, Q.get = function(e) {
|
|
3106
|
-
return e[
|
|
3103
|
+
return e[H];
|
|
3107
3104
|
}, Q.mount = function() {
|
|
3108
3105
|
var e = [...arguments];
|
|
3109
3106
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
3110
3107
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
3111
|
-
e.utils && (Q.utils =
|
|
3108
|
+
e.utils && (Q.utils = po(po({}, Q.utils), e.utils)), ts.mount(e);
|
|
3112
3109
|
});
|
|
3113
3110
|
}, Q.create = function(e, t) {
|
|
3114
3111
|
return new Q(e, t);
|
|
3115
|
-
}, Q.version =
|
|
3116
|
-
var $ = [],
|
|
3117
|
-
function
|
|
3112
|
+
}, Q.version = yo;
|
|
3113
|
+
var $ = [], tc, nc, rc = !1, ic, ac, oc, sc;
|
|
3114
|
+
function cc() {
|
|
3118
3115
|
function e() {
|
|
3119
3116
|
for (var e in this.defaults = {
|
|
3120
3117
|
scroll: !0,
|
|
@@ -3134,63 +3131,63 @@ function Zs() {
|
|
|
3134
3131
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
3135
3132
|
},
|
|
3136
3133
|
drop: function() {
|
|
3137
|
-
this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
3134
|
+
this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), uc(), lc(), Ko();
|
|
3138
3135
|
},
|
|
3139
3136
|
nulling: function() {
|
|
3140
|
-
|
|
3137
|
+
oc = nc = tc = rc = sc = ic = ac = null, $.length = 0;
|
|
3141
3138
|
},
|
|
3142
3139
|
_handleFallbackAutoScroll: function(e) {
|
|
3143
3140
|
this._handleAutoScroll(e, !0);
|
|
3144
3141
|
},
|
|
3145
3142
|
_handleAutoScroll: function(e, t) {
|
|
3146
3143
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
3147
|
-
if (
|
|
3148
|
-
|
|
3149
|
-
var o =
|
|
3150
|
-
|
|
3151
|
-
var a =
|
|
3152
|
-
a !== o && (o = a,
|
|
3153
|
-
}, 10),
|
|
3144
|
+
if (oc = e, t || this.options.forceAutoScrollFallback || So || xo || wo) {
|
|
3145
|
+
dc(e, this.options, a, t);
|
|
3146
|
+
var o = Vo(a, !0);
|
|
3147
|
+
rc && (!sc || r !== ic || i !== ac) && (sc && uc(), sc = setInterval(function() {
|
|
3148
|
+
var a = Vo(document.elementFromPoint(r, i), !0);
|
|
3149
|
+
a !== o && (o = a, lc()), dc(e, n.options, a, t);
|
|
3150
|
+
}, 10), ic = r, ac = i);
|
|
3154
3151
|
} else {
|
|
3155
|
-
if (!this.options.bubbleScroll ||
|
|
3156
|
-
|
|
3152
|
+
if (!this.options.bubbleScroll || Vo(a, !0) === Po()) {
|
|
3153
|
+
lc();
|
|
3157
3154
|
return;
|
|
3158
3155
|
}
|
|
3159
|
-
|
|
3156
|
+
dc(e, this.options, Vo(a, !1), !1);
|
|
3160
3157
|
}
|
|
3161
3158
|
}
|
|
3162
|
-
},
|
|
3159
|
+
}, go(e, {
|
|
3163
3160
|
pluginName: "scroll",
|
|
3164
3161
|
initializeByDefault: !0
|
|
3165
3162
|
});
|
|
3166
3163
|
}
|
|
3167
|
-
function
|
|
3164
|
+
function lc() {
|
|
3168
3165
|
$.forEach(function(e) {
|
|
3169
3166
|
clearInterval(e.pid);
|
|
3170
3167
|
}), $ = [];
|
|
3171
3168
|
}
|
|
3172
|
-
function
|
|
3173
|
-
clearInterval(
|
|
3169
|
+
function uc() {
|
|
3170
|
+
clearInterval(sc);
|
|
3174
3171
|
}
|
|
3175
|
-
var
|
|
3172
|
+
var dc = Go(function(e, t, n, r) {
|
|
3176
3173
|
if (t.scroll) {
|
|
3177
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
3178
|
-
|
|
3179
|
-
var d = 0, f =
|
|
3174
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Po(), l = !1, u;
|
|
3175
|
+
nc !== n && (nc = n, lc(), tc = t.scroll, u = t.scrollFn, tc === !0 && (tc = Vo(n, !0)));
|
|
3176
|
+
var d = 0, f = tc;
|
|
3180
3177
|
do {
|
|
3181
|
-
var p = f, m =
|
|
3178
|
+
var p = f, m = V(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = B(p), E = p.scrollLeft, D = p.scrollTop;
|
|
3182
3179
|
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"));
|
|
3183
3180
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
3184
3181
|
if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
|
|
3185
3182
|
($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
3186
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
3183
|
+
r && this.layer === 0 && Q.active._onTouchMove(oc);
|
|
3187
3184
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
3188
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
3185
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[H], n, t, e, oc, $[this.layer].el) !== "continue" || qo($[this.layer].el, n, t);
|
|
3189
3186
|
}.bind({ layer: d }), 24))), d++;
|
|
3190
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
3191
|
-
|
|
3187
|
+
} while (t.bubbleScroll && f !== c && (f = Vo(f, !1)));
|
|
3188
|
+
rc = l;
|
|
3192
3189
|
}
|
|
3193
|
-
}, 30),
|
|
3190
|
+
}, 30), fc = function(e) {
|
|
3194
3191
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
3195
3192
|
if (t) {
|
|
3196
3193
|
var c = n || i;
|
|
@@ -3202,8 +3199,8 @@ var ec = Fo(function(e, t, n, r) {
|
|
|
3202
3199
|
}));
|
|
3203
3200
|
}
|
|
3204
3201
|
};
|
|
3205
|
-
function
|
|
3206
|
-
|
|
3202
|
+
function pc() {}
|
|
3203
|
+
pc.prototype = {
|
|
3207
3204
|
startIndex: null,
|
|
3208
3205
|
dragStart: function(e) {
|
|
3209
3206
|
var t = e.oldDraggableIndex;
|
|
@@ -3212,67 +3209,67 @@ nc.prototype = {
|
|
|
3212
3209
|
onSpill: function(e) {
|
|
3213
3210
|
var t = e.dragEl, n = e.putSortable;
|
|
3214
3211
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
3215
|
-
var r =
|
|
3212
|
+
var r = Io(this.sortable.el, this.startIndex, this.options);
|
|
3216
3213
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
3217
3214
|
},
|
|
3218
|
-
drop:
|
|
3219
|
-
},
|
|
3220
|
-
function
|
|
3221
|
-
|
|
3215
|
+
drop: fc
|
|
3216
|
+
}, go(pc, { pluginName: "revertOnSpill" });
|
|
3217
|
+
function mc() {}
|
|
3218
|
+
mc.prototype = {
|
|
3222
3219
|
onSpill: function(e) {
|
|
3223
3220
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
3224
3221
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
3225
3222
|
},
|
|
3226
|
-
drop:
|
|
3227
|
-
},
|
|
3228
|
-
function
|
|
3223
|
+
drop: fc
|
|
3224
|
+
}, go(mc, { pluginName: "removeOnSpill" }), Q.mount(new cc()), Q.mount(mc, pc);
|
|
3225
|
+
function hc(e) {
|
|
3229
3226
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3230
3227
|
}
|
|
3231
|
-
function
|
|
3228
|
+
function gc(e) {
|
|
3232
3229
|
te() && O(e);
|
|
3233
3230
|
}
|
|
3234
|
-
function
|
|
3231
|
+
function _c(e) {
|
|
3235
3232
|
te() ? d(e) : a(e);
|
|
3236
3233
|
}
|
|
3237
|
-
var
|
|
3238
|
-
function
|
|
3239
|
-
|
|
3234
|
+
var vc = null, yc = null;
|
|
3235
|
+
function bc(e = null, t = null) {
|
|
3236
|
+
vc = e, yc = t;
|
|
3240
3237
|
}
|
|
3241
|
-
function
|
|
3238
|
+
function xc() {
|
|
3242
3239
|
return {
|
|
3243
|
-
data:
|
|
3244
|
-
clonedData:
|
|
3240
|
+
data: vc,
|
|
3241
|
+
clonedData: yc
|
|
3245
3242
|
};
|
|
3246
3243
|
}
|
|
3247
|
-
var
|
|
3248
|
-
function
|
|
3244
|
+
var Sc = Symbol("cloneElement");
|
|
3245
|
+
function Cc(...e) {
|
|
3249
3246
|
let t = te()?.proxy, n = null, r = e[0], [, i, o] = e;
|
|
3250
3247
|
Array.isArray(y(i)) || (o = i, i = null);
|
|
3251
|
-
let s = null, { immediate: l = !0, clone: u =
|
|
3248
|
+
let s = null, { immediate: l = !0, clone: u = hc, forceFallback: d, fallbackOnBody: p, customUpdate: m } = y(o) ?? {};
|
|
3252
3249
|
function h(e) {
|
|
3253
3250
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
3254
3251
|
n = d && !p ? o.slice(0, -1) : o;
|
|
3255
3252
|
let s = y(y(i)?.[r]), c = u(s);
|
|
3256
|
-
|
|
3253
|
+
bc(s, c), a[Sc] = c;
|
|
3257
3254
|
}
|
|
3258
3255
|
function g(e) {
|
|
3259
|
-
let t = e.item[
|
|
3260
|
-
if (!
|
|
3261
|
-
if (
|
|
3256
|
+
let t = e.item[Sc];
|
|
3257
|
+
if (!eo(t)) {
|
|
3258
|
+
if (ro(e.item), c(i)) {
|
|
3262
3259
|
let n = [...y(i)];
|
|
3263
|
-
i.value =
|
|
3260
|
+
i.value = $a(n, e.newDraggableIndex, t);
|
|
3264
3261
|
return;
|
|
3265
3262
|
}
|
|
3266
|
-
|
|
3263
|
+
$a(y(i), e.newDraggableIndex, t);
|
|
3267
3264
|
}
|
|
3268
3265
|
}
|
|
3269
3266
|
function _(e) {
|
|
3270
3267
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
3271
|
-
if (
|
|
3268
|
+
if (no(t, n, r), o === "clone") ro(s);
|
|
3272
3269
|
else if (c(i)) {
|
|
3273
3270
|
let e = [...y(i)];
|
|
3274
|
-
i.value =
|
|
3275
|
-
} else
|
|
3271
|
+
i.value = Qa(e, a);
|
|
3272
|
+
} else Qa(y(i), a);
|
|
3276
3273
|
}
|
|
3277
3274
|
function v(e) {
|
|
3278
3275
|
if (m) {
|
|
@@ -3280,10 +3277,10 @@ function fc(...e) {
|
|
|
3280
3277
|
return;
|
|
3281
3278
|
}
|
|
3282
3279
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
3283
|
-
if (
|
|
3280
|
+
if (ro(n), no(t, n, r), c(i)) {
|
|
3284
3281
|
let e = [...y(i)];
|
|
3285
|
-
i.value =
|
|
3286
|
-
} else
|
|
3282
|
+
i.value = Ya(e, a, o);
|
|
3283
|
+
} else Ya(y(i), a, o);
|
|
3287
3284
|
}
|
|
3288
3285
|
function b(e) {
|
|
3289
3286
|
let { newIndex: t, oldIndex: r, from: i, to: o } = e, s = null, c = t === r && i === o;
|
|
@@ -3302,7 +3299,7 @@ function fc(...e) {
|
|
|
3302
3299
|
n = null;
|
|
3303
3300
|
}
|
|
3304
3301
|
a(() => {
|
|
3305
|
-
if (
|
|
3302
|
+
if (bc(), s) throw s;
|
|
3306
3303
|
});
|
|
3307
3304
|
}
|
|
3308
3305
|
let x = {
|
|
@@ -3314,19 +3311,19 @@ function fc(...e) {
|
|
|
3314
3311
|
};
|
|
3315
3312
|
function S(e) {
|
|
3316
3313
|
let n = y(r);
|
|
3317
|
-
return e ||=
|
|
3314
|
+
return e ||= to(n) ? io(n, t?.$el) : n, e && !so(e) && (e = e.$el), e || Ja("Root element not found"), e;
|
|
3318
3315
|
}
|
|
3319
3316
|
function C() {
|
|
3320
|
-
let e = y(o) ?? {}, { immediate: t, clone: n } = e, r =
|
|
3321
|
-
return
|
|
3322
|
-
|
|
3323
|
-
}),
|
|
3317
|
+
let e = y(o) ?? {}, { immediate: t, clone: n } = e, r = Ga(e, ["immediate", "clone"]);
|
|
3318
|
+
return co(r, (e, t) => {
|
|
3319
|
+
lo(e) && (r[e] = (e, ...n) => (uo(e, xc()), t(e, ...n)));
|
|
3320
|
+
}), oo(i === null ? {} : x, r);
|
|
3324
3321
|
}
|
|
3325
3322
|
let w = (e) => {
|
|
3326
3323
|
e = S(e), s && T.destroy(), s = new Q(e, C());
|
|
3327
3324
|
};
|
|
3328
3325
|
f(() => o, () => {
|
|
3329
|
-
s &&
|
|
3326
|
+
s && co(C(), (e, t) => {
|
|
3330
3327
|
s?.option(e, t);
|
|
3331
3328
|
});
|
|
3332
3329
|
}, { deep: !0 });
|
|
@@ -3339,15 +3336,15 @@ function fc(...e) {
|
|
|
3339
3336
|
toArray: () => s?.toArray(),
|
|
3340
3337
|
closest: (...e) => s?.closest(...e)
|
|
3341
3338
|
};
|
|
3342
|
-
return
|
|
3339
|
+
return _c(() => {
|
|
3343
3340
|
l && w();
|
|
3344
|
-
}),
|
|
3341
|
+
}), gc(T.destroy), Wa({
|
|
3345
3342
|
start: w,
|
|
3346
3343
|
pause: () => T?.option("disabled", !0),
|
|
3347
3344
|
resume: () => T?.option("disabled", !1)
|
|
3348
3345
|
}, T);
|
|
3349
3346
|
}
|
|
3350
|
-
var
|
|
3347
|
+
var wc = [
|
|
3351
3348
|
"update",
|
|
3352
3349
|
"start",
|
|
3353
3350
|
"add",
|
|
@@ -3360,7 +3357,7 @@ var pc = [
|
|
|
3360
3357
|
"clone",
|
|
3361
3358
|
"move",
|
|
3362
3359
|
"change"
|
|
3363
|
-
],
|
|
3360
|
+
], Tc = [
|
|
3364
3361
|
"clone",
|
|
3365
3362
|
"animation",
|
|
3366
3363
|
"ghostClass",
|
|
@@ -3404,43 +3401,47 @@ var pc = [
|
|
|
3404
3401
|
"tag",
|
|
3405
3402
|
"target",
|
|
3406
3403
|
"customUpdate",
|
|
3407
|
-
...
|
|
3408
|
-
],
|
|
3404
|
+
...wc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
3405
|
+
], Ec = F({
|
|
3409
3406
|
name: "VueDraggable",
|
|
3410
3407
|
model: {
|
|
3411
3408
|
prop: "modelValue",
|
|
3412
3409
|
event: "update:modelValue"
|
|
3413
3410
|
},
|
|
3414
|
-
props:
|
|
3415
|
-
emits: ["update:modelValue", ...
|
|
3411
|
+
props: Tc,
|
|
3412
|
+
emits: ["update:modelValue", ...wc],
|
|
3416
3413
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
3417
|
-
let a =
|
|
3414
|
+
let a = wc.reduce((e, t) => {
|
|
3418
3415
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
3419
3416
|
return e[r] = (...e) => n(t, ...e), e;
|
|
3420
3417
|
}, {}), o = N(() => {
|
|
3421
|
-
let t = j(e), { modelValue: n } = t, r =
|
|
3418
|
+
let t = j(e), { modelValue: n } = t, r = Ga(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
3422
3419
|
let r = y(n);
|
|
3423
3420
|
return r !== void 0 && (e[t] = r), e;
|
|
3424
3421
|
}, {});
|
|
3425
|
-
return
|
|
3422
|
+
return Wa(Wa({}, a), Za(Wa(Wa({}, i), o)));
|
|
3426
3423
|
}), s = N({
|
|
3427
3424
|
get: () => e.modelValue,
|
|
3428
3425
|
set: (e) => n("update:modelValue", e)
|
|
3429
|
-
}), c = _(), l = g(
|
|
3426
|
+
}), c = _(), l = g(Cc(e.target || c, s, o));
|
|
3430
3427
|
return r(l), () => b(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
3431
3428
|
}
|
|
3432
|
-
}),
|
|
3429
|
+
}), Dc = {
|
|
3433
3430
|
mounted: "mounted",
|
|
3434
3431
|
unmounted: "unmounted"
|
|
3435
3432
|
};
|
|
3436
|
-
|
|
3433
|
+
Dc.mounted, Dc.unmounted;
|
|
3437
3434
|
//#endregion
|
|
3438
3435
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3439
|
-
var
|
|
3436
|
+
var Oc = { class: "tpl:relative tpl:w-full" }, kc = {
|
|
3437
|
+
key: 0,
|
|
3438
|
+
"data-testid": "hero-image-hint",
|
|
3439
|
+
class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
3440
|
+
}, Ac = {
|
|
3440
3441
|
key: 0,
|
|
3441
3442
|
"data-testid": "section-drop-hint",
|
|
3442
3443
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
3443
|
-
},
|
|
3444
|
+
}, jc = /* @__PURE__ */ F({
|
|
3444
3445
|
__name: "SectionBlock",
|
|
3445
3446
|
props: {
|
|
3446
3447
|
block: {},
|
|
@@ -3448,13 +3449,13 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3448
3449
|
},
|
|
3449
3450
|
setup(e) {
|
|
3450
3451
|
let i = {
|
|
3451
|
-
title:
|
|
3452
|
-
paragraph:
|
|
3453
|
-
image:
|
|
3454
|
-
button:
|
|
3455
|
-
divider:
|
|
3456
|
-
custom:
|
|
3457
|
-
}, a = e, { t: s } =
|
|
3452
|
+
title: ja,
|
|
3453
|
+
paragraph: ga,
|
|
3454
|
+
image: ra,
|
|
3455
|
+
button: ni,
|
|
3456
|
+
divider: zi,
|
|
3457
|
+
custom: Li
|
|
3458
|
+
}, a = e, { t: s } = On(), c = Nt(dn, "SectionBlock"), u = p(un, null), d = p(Sn, null), f = p(hn, {}), h = p(xn, null);
|
|
3458
3459
|
function g(e) {
|
|
3459
3460
|
let t = f.savedBlocks;
|
|
3460
3461
|
t?.isPicking.value ? t.togglePick(a.block.id) : c.selectBlock(e);
|
|
@@ -3489,36 +3490,41 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3489
3490
|
function ee(e) {
|
|
3490
3491
|
return c.state.previewMode ? !1 : O(e) ? !0 : j.value === e && T(e).filter((e) => E(e.id)).length <= 1;
|
|
3491
3492
|
}
|
|
3492
|
-
|
|
3493
|
+
let F = N(() => {
|
|
3494
|
+
if (c.state.previewMode) return !1;
|
|
3495
|
+
let e = Ke(a.block);
|
|
3496
|
+
return e !== null && !e.applied && e.reason === "image";
|
|
3497
|
+
});
|
|
3498
|
+
function te(e) {
|
|
3493
3499
|
return T(e).length === 0 && !c.state.previewMode;
|
|
3494
3500
|
}
|
|
3495
|
-
function
|
|
3501
|
+
function I(e) {
|
|
3496
3502
|
return T(e).length === 0 && c.state.previewMode;
|
|
3497
3503
|
}
|
|
3498
|
-
function
|
|
3504
|
+
function re(e, t) {
|
|
3499
3505
|
let n = t.map((e) => JSON.parse(JSON.stringify(e))), r = [...a.block.children];
|
|
3500
3506
|
for (; r.length <= e;) r.push([]);
|
|
3501
3507
|
r[e] = n, c.updateBlock(a.block.id, { children: r });
|
|
3502
3508
|
}
|
|
3503
|
-
function
|
|
3504
|
-
return
|
|
3509
|
+
function ie(e) {
|
|
3510
|
+
return Br(e, d, i);
|
|
3505
3511
|
}
|
|
3506
|
-
function
|
|
3512
|
+
function ae(e, t) {
|
|
3507
3513
|
e.type === "custom" && c.updateBlock(e.id, {
|
|
3508
3514
|
fieldValues: t.fieldValues,
|
|
3509
3515
|
dataSourceFetched: t.dataSourceFetched
|
|
3510
3516
|
});
|
|
3511
3517
|
}
|
|
3512
|
-
return (i, a) => (t(), S("div",
|
|
3518
|
+
return (i, a) => (t(), S("div", Oc, [F.value ? (t(), S("div", kc, [x("span", null, D(y(s).section.heroAddImage), 1)])) : P("", !0), x("div", { class: k(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(t(!0), S(M, null, l(b.value, (i, u) => (t(), S("div", {
|
|
3513
3519
|
key: u,
|
|
3514
|
-
class: k(["tpl:relative tpl:flex tpl:flex-col tpl:rounded",
|
|
3520
|
+
class: k(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", te(u) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
3515
3521
|
style: n({ width: w.value ? "100%" : v.value[u] })
|
|
3516
|
-
}, [C(y(
|
|
3522
|
+
}, [C(y(Ec), {
|
|
3517
3523
|
"model-value": T(u),
|
|
3518
3524
|
group: {
|
|
3519
3525
|
name: "blocks",
|
|
3520
3526
|
pull: !0,
|
|
3521
|
-
put: (e, t, n) => y(
|
|
3527
|
+
put: (e, t, n) => y(Ra)(n)
|
|
3522
3528
|
},
|
|
3523
3529
|
animation: 150,
|
|
3524
3530
|
"ghost-class": "tpl-ghost",
|
|
@@ -3530,13 +3536,13 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3530
3536
|
"force-fallback": !0,
|
|
3531
3537
|
class: k(["tpl:grow", {
|
|
3532
3538
|
"tpl:min-h-[60px]": ee(u),
|
|
3533
|
-
"tpl:min-h-[34px]":
|
|
3539
|
+
"tpl:min-h-[34px]": I(u)
|
|
3534
3540
|
}]),
|
|
3535
3541
|
onStart: (e) => j.value = u,
|
|
3536
3542
|
onEnd: a[0] ||= (e) => j.value = null,
|
|
3537
|
-
"onUpdate:modelValue": (e) =>
|
|
3543
|
+
"onUpdate:modelValue": (e) => re(u, e)
|
|
3538
3544
|
}, {
|
|
3539
|
-
default: r(() => [(t(!0), S(M, null, l(T(u), (n) => m((t(), S("div", { key: n.id }, [C(
|
|
3545
|
+
default: r(() => [(t(!0), S(M, null, l(T(u), (n) => m((t(), S("div", { key: n.id }, [C(ka, {
|
|
3540
3546
|
block: n,
|
|
3541
3547
|
"is-selected": y(c).state.selectedBlockId === n.id,
|
|
3542
3548
|
viewport: e.viewport,
|
|
@@ -3544,10 +3550,10 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3544
3550
|
nested: "",
|
|
3545
3551
|
onSelect: (e) => g(n.id)
|
|
3546
3552
|
}, {
|
|
3547
|
-
default: r(() => [(t(), A(o(
|
|
3553
|
+
default: r(() => [(t(), A(o(ie(n)), {
|
|
3548
3554
|
block: n,
|
|
3549
3555
|
viewport: e.viewport,
|
|
3550
|
-
onFetchData: (e) =>
|
|
3556
|
+
onFetchData: (e) => ae(n, e),
|
|
3551
3557
|
onUpdate: (e) => y(c).updateBlock(n.id, e)
|
|
3552
3558
|
}, null, 40, [
|
|
3553
3559
|
"block",
|
|
@@ -3570,14 +3576,14 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3570
3576
|
"class",
|
|
3571
3577
|
"onStart",
|
|
3572
3578
|
"onUpdate:modelValue"
|
|
3573
|
-
]),
|
|
3579
|
+
]), te(u) ? (t(), S("div", Ac, [x("span", null, D(y(s).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
|
|
3574
3580
|
}
|
|
3575
|
-
}),
|
|
3581
|
+
}), Mc = ["width", "height"], Nc = [
|
|
3576
3582
|
"d",
|
|
3577
3583
|
"stroke",
|
|
3578
3584
|
"stroke-opacity",
|
|
3579
3585
|
"stroke-width"
|
|
3580
|
-
],
|
|
3586
|
+
], Pc = ["d", "fill"], Fc = /* @__PURE__ */ F({
|
|
3581
3587
|
__name: "SocialIconSvg",
|
|
3582
3588
|
props: {
|
|
3583
3589
|
platform: {},
|
|
@@ -3586,7 +3592,7 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3586
3592
|
iconSize: {}
|
|
3587
3593
|
},
|
|
3588
3594
|
setup(e) {
|
|
3589
|
-
let r = e, i = N(() =>
|
|
3595
|
+
let r = e, i = N(() => _t[r.platform]), a = N(() => yt[r.iconSize]), o = N(() => Me(r.platform, r.iconTone)), s = N(() => ze(r.iconStyle, r.iconTone)), c = N(() => {
|
|
3590
3596
|
let e = {
|
|
3591
3597
|
display: "inline-flex",
|
|
3592
3598
|
alignItems: "center",
|
|
@@ -3624,7 +3630,7 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3624
3630
|
};
|
|
3625
3631
|
default: return e;
|
|
3626
3632
|
}
|
|
3627
|
-
}), l = N(() =>
|
|
3633
|
+
}), l = N(() => Ue(r.iconStyle)), u = N(() => Math.floor(a.value * l.value));
|
|
3628
3634
|
function d(e) {
|
|
3629
3635
|
let t = `${e.width / 2 * a.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), r = `${e.color}${n}`;
|
|
3630
3636
|
return `0 0 0 ${t} ${r}, inset 0 0 0 ${t} ${r}`;
|
|
@@ -3645,28 +3651,28 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3645
3651
|
"stroke-opacity": s.value.opacity,
|
|
3646
3652
|
"stroke-width": s.value.width / l.value,
|
|
3647
3653
|
"stroke-linejoin": "round"
|
|
3648
|
-
}, null, 8,
|
|
3654
|
+
}, null, 8, Nc)) : P("", !0), x("path", {
|
|
3649
3655
|
d: i.value.path,
|
|
3650
3656
|
fill: f.value
|
|
3651
|
-
}, null, 8,
|
|
3657
|
+
}, null, 8, Pc)], 8, Mc))], 4));
|
|
3652
3658
|
}
|
|
3653
|
-
}),
|
|
3659
|
+
}), Ic = { class: "tpl:w-full" }, Lc = ["href"], Rc = {
|
|
3654
3660
|
key: 1,
|
|
3655
3661
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3656
|
-
},
|
|
3662
|
+
}, zc = /* @__PURE__ */ F({
|
|
3657
3663
|
__name: "SocialIconsBlock",
|
|
3658
3664
|
props: {
|
|
3659
3665
|
block: {},
|
|
3660
3666
|
viewport: {}
|
|
3661
3667
|
},
|
|
3662
3668
|
setup(e) {
|
|
3663
|
-
let r = e, { t: i } =
|
|
3669
|
+
let r = e, { t: i } = On(), a = N(() => ({
|
|
3664
3670
|
display: "flex",
|
|
3665
3671
|
flexWrap: "wrap",
|
|
3666
3672
|
gap: `${r.block.spacing}px`,
|
|
3667
3673
|
justifyContent: r.block.align === "left" ? "flex-start" : r.block.align === "right" ? "flex-end" : "center"
|
|
3668
3674
|
})), o = N(() => r.block.icons.length > 0);
|
|
3669
|
-
return (r, s) => (t(), S("div",
|
|
3675
|
+
return (r, s) => (t(), S("div", Ic, [o.value ? (t(), S("div", {
|
|
3670
3676
|
key: 0,
|
|
3671
3677
|
style: n(a.value)
|
|
3672
3678
|
}, [(t(!0), S(M, null, l(e.block.icons, (n) => (t(), S("a", {
|
|
@@ -3674,7 +3680,7 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3674
3680
|
href: n.url || "#",
|
|
3675
3681
|
class: "tpl:cursor-default",
|
|
3676
3682
|
onClick: s[0] ||= I(() => {}, ["prevent"])
|
|
3677
|
-
}, [C(
|
|
3683
|
+
}, [C(Fc, {
|
|
3678
3684
|
platform: n.platform,
|
|
3679
3685
|
"icon-style": e.block.iconStyle,
|
|
3680
3686
|
"icon-tone": e.block.iconTone,
|
|
@@ -3684,44 +3690,44 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3684
3690
|
"icon-style",
|
|
3685
3691
|
"icon-tone",
|
|
3686
3692
|
"icon-size"
|
|
3687
|
-
])], 8,
|
|
3693
|
+
])], 8, Lc))), 128))], 4)) : (t(), S("div", Rc, [C(y(dt), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
|
|
3688
3694
|
}
|
|
3689
|
-
}),
|
|
3695
|
+
}), Bc = { class: "tpl:w-full" }, Vc = {
|
|
3690
3696
|
key: 0,
|
|
3691
3697
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
3692
3698
|
style: {
|
|
3693
3699
|
"background-color": "var(--tpl-bg-hover)",
|
|
3694
3700
|
color: "var(--tpl-text-dim)"
|
|
3695
3701
|
}
|
|
3696
|
-
},
|
|
3702
|
+
}, Hc = /* @__PURE__ */ F({
|
|
3697
3703
|
__name: "SpacerBlock",
|
|
3698
3704
|
props: {
|
|
3699
3705
|
block: {},
|
|
3700
3706
|
viewport: {}
|
|
3701
3707
|
},
|
|
3702
3708
|
setup(e) {
|
|
3703
|
-
let r = e, i =
|
|
3709
|
+
let r = e, i = Nt(dn, "SpacerBlock"), a = N(() => ({
|
|
3704
3710
|
height: `${r.block.height}px`,
|
|
3705
3711
|
minHeight: `${r.block.height}px`,
|
|
3706
3712
|
...i.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
3707
3713
|
}));
|
|
3708
|
-
return (r, o) => (t(), S("div",
|
|
3714
|
+
return (r, o) => (t(), S("div", Bc, [x("div", {
|
|
3709
3715
|
style: n(a.value),
|
|
3710
3716
|
class: k(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !y(i).state.previewMode }])
|
|
3711
|
-
}, [y(i).state.previewMode ? P("", !0) : (t(), S("span",
|
|
3717
|
+
}, [y(i).state.previewMode ? P("", !0) : (t(), S("span", Vc, D(e.block.height) + "px ", 1))], 6)]));
|
|
3712
3718
|
}
|
|
3713
|
-
}),
|
|
3719
|
+
}), Uc = { class: "tpl:w-full" }, Wc = { key: 0 }, Gc = [
|
|
3714
3720
|
"aria-label",
|
|
3715
3721
|
"data-placeholder",
|
|
3716
3722
|
"onBlur"
|
|
3717
|
-
],
|
|
3723
|
+
], Kc = [
|
|
3718
3724
|
"aria-label",
|
|
3719
3725
|
"data-placeholder",
|
|
3720
3726
|
"onBlur"
|
|
3721
|
-
],
|
|
3727
|
+
], qc = {
|
|
3722
3728
|
key: 1,
|
|
3723
3729
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3724
|
-
},
|
|
3730
|
+
}, Jc = /*#__PURE__*/ Hn(/* @__PURE__ */ F({
|
|
3725
3731
|
__name: "TableBlock",
|
|
3726
3732
|
props: {
|
|
3727
3733
|
block: {},
|
|
@@ -3735,7 +3741,7 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3735
3741
|
updated(e, t) {
|
|
3736
3742
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
3737
3743
|
}
|
|
3738
|
-
}, i = e, { t: a } =
|
|
3744
|
+
}, i = e, { t: a } = On(), o = Nt(dn, "TableBlock"), s = Nt(Cn, "TableBlock"), c = N(() => i.block.rows.length > 0), u = N(() => {
|
|
3739
3745
|
let e = {
|
|
3740
3746
|
width: "100%",
|
|
3741
3747
|
borderCollapse: "collapse",
|
|
@@ -3766,11 +3772,11 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3766
3772
|
} : n);
|
|
3767
3773
|
o.updateBlock(i.block.id, { rows: a });
|
|
3768
3774
|
}
|
|
3769
|
-
return (e, i) => (t(), S("div",
|
|
3775
|
+
return (e, i) => (t(), S("div", Uc, [c.value ? (t(), S("table", {
|
|
3770
3776
|
key: 0,
|
|
3771
3777
|
style: n(u.value),
|
|
3772
3778
|
class: "tpl-table-editable"
|
|
3773
|
-
}, [p.value ? (t(), S("thead",
|
|
3779
|
+
}, [p.value ? (t(), S("thead", Wc, [x("tr", null, [(t(!0), S(M, null, l(p.value.cells, (e) => m((t(), S("th", {
|
|
3774
3780
|
key: e.id,
|
|
3775
3781
|
style: n(f.value),
|
|
3776
3782
|
"aria-label": y(a).table.cellPlaceholder,
|
|
@@ -3779,7 +3785,7 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3779
3785
|
onBlur: (t) => _(p.value.id, e.id, t),
|
|
3780
3786
|
onKeydown: i[0] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3781
3787
|
onClick: I(g, ["stop"])
|
|
3782
|
-
}, null, 44,
|
|
3788
|
+
}, null, 44, Gc)), [[r, e.content]])), 128))])])) : P("", !0), x("tbody", null, [(t(!0), S(M, null, l(h.value, (e) => (t(), S("tr", { key: e.id }, [(t(!0), S(M, null, l(e.cells, (o) => m((t(), S("td", {
|
|
3783
3789
|
key: o.id,
|
|
3784
3790
|
style: n(d.value),
|
|
3785
3791
|
"aria-label": y(a).table.cellPlaceholder,
|
|
@@ -3788,9 +3794,9 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3788
3794
|
onBlur: (t) => _(e.id, o.id, t),
|
|
3789
3795
|
onKeydown: i[1] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3790
3796
|
onClick: I(g, ["stop"])
|
|
3791
|
-
}, null, 44,
|
|
3797
|
+
}, null, 44, Kc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", qc, [C(y(mt), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
|
|
3792
3798
|
}
|
|
3793
|
-
}), [["__scopeId", "data-v-6751d456"]]),
|
|
3799
|
+
}), [["__scopeId", "data-v-6751d456"]]), Yc = /* @__PURE__ */ F({
|
|
3794
3800
|
__name: "VideoPlayButton",
|
|
3795
3801
|
props: { hoverEffect: {
|
|
3796
3802
|
type: Boolean,
|
|
@@ -3808,7 +3814,7 @@ var _c = { class: "tpl:w-full" }, vc = {
|
|
|
3808
3814
|
});
|
|
3809
3815
|
//#endregion
|
|
3810
3816
|
//#region src/utils/videoThumbnail.ts
|
|
3811
|
-
function
|
|
3817
|
+
function Xc(e) {
|
|
3812
3818
|
if (!e) return {
|
|
3813
3819
|
platform: "unknown",
|
|
3814
3820
|
videoId: null,
|
|
@@ -3840,25 +3846,25 @@ function Rc(e) {
|
|
|
3840
3846
|
thumbnailUrl: null
|
|
3841
3847
|
};
|
|
3842
3848
|
}
|
|
3843
|
-
function
|
|
3844
|
-
return t ||
|
|
3849
|
+
function Zc(e, t) {
|
|
3850
|
+
return t || Xc(e).thumbnailUrl;
|
|
3845
3851
|
}
|
|
3846
3852
|
//#endregion
|
|
3847
3853
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3848
|
-
var
|
|
3854
|
+
var Qc = ["src", "alt"], $c = {
|
|
3849
3855
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
3850
3856
|
style: { opacity: "0.7" }
|
|
3851
|
-
},
|
|
3857
|
+
}, el = ["href"], tl = ["src", "alt"], nl = ["src", "alt"], rl = {
|
|
3852
3858
|
key: 3,
|
|
3853
3859
|
class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
3854
|
-
},
|
|
3860
|
+
}, il = /* @__PURE__ */ F({
|
|
3855
3861
|
__name: "VideoBlock",
|
|
3856
3862
|
props: {
|
|
3857
3863
|
block: {},
|
|
3858
3864
|
viewport: {}
|
|
3859
3865
|
},
|
|
3860
3866
|
setup(e) {
|
|
3861
|
-
let r = e, { t: i } =
|
|
3867
|
+
let r = e, { t: i } = On(), { syntax: a } = Wn(), o = N(() => Ce(r.block.url, a) || Ce(r.block.thumbnailUrl, a)), s = lt(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = lt(() => o.value ? r.block.placeholderUrl : void 0), l = N(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : Zc(r.block.url)), u = N(() => ({ textAlign: r.block.align })), d = N(() => {
|
|
3862
3868
|
let e = r.block.align;
|
|
3863
3869
|
return {
|
|
3864
3870
|
maxWidth: "100%",
|
|
@@ -3881,16 +3887,16 @@ var Bc = ["src", "alt"], Vc = {
|
|
|
3881
3887
|
src: y(c),
|
|
3882
3888
|
alt: e.block.alt,
|
|
3883
3889
|
style: n(f.value)
|
|
3884
|
-
}, null, 12,
|
|
3890
|
+
}, null, 12, Qc), C(Yc)], 4)) : o.value ? (t(), S("div", {
|
|
3885
3891
|
key: 1,
|
|
3886
3892
|
class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
3887
3893
|
style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
|
|
3888
|
-
}, [C(y(
|
|
3894
|
+
}, [C(y(li), {
|
|
3889
3895
|
size: 36,
|
|
3890
3896
|
"stroke-width": 1.5,
|
|
3891
3897
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
3892
3898
|
style: { opacity: "0.5" }
|
|
3893
|
-
}), x("span",
|
|
3899
|
+
}), x("span", $c, [C(ei, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
|
|
3894
3900
|
key: 0,
|
|
3895
3901
|
href: e.block.url,
|
|
3896
3902
|
target: "_blank",
|
|
@@ -3903,7 +3909,7 @@ var Bc = ["src", "alt"], Vc = {
|
|
|
3903
3909
|
src: l.value,
|
|
3904
3910
|
alt: e.block.alt,
|
|
3905
3911
|
style: n(f.value)
|
|
3906
|
-
}, null, 12,
|
|
3912
|
+
}, null, 12, tl), C(Yc, { "hover-effect": "" })], 12, el)) : (t(), S("div", {
|
|
3907
3913
|
key: 1,
|
|
3908
3914
|
class: "tpl:relative tpl:inline-block",
|
|
3909
3915
|
style: n(d.value)
|
|
@@ -3912,54 +3918,54 @@ var Bc = ["src", "alt"], Vc = {
|
|
|
3912
3918
|
src: l.value,
|
|
3913
3919
|
alt: e.block.alt,
|
|
3914
3920
|
style: n(f.value)
|
|
3915
|
-
}, null, 12,
|
|
3921
|
+
}, null, 12, nl), C(Yc)], 4))], 64)) : (t(), S("div", rl, [C(y(li), {
|
|
3916
3922
|
size: 40,
|
|
3917
3923
|
"stroke-width": 1.5,
|
|
3918
3924
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
3919
3925
|
}), x("span", null, D(y(i).video.addVideo), 1)]))], 4));
|
|
3920
3926
|
}
|
|
3921
|
-
}),
|
|
3922
|
-
section:
|
|
3923
|
-
title:
|
|
3924
|
-
paragraph:
|
|
3925
|
-
image:
|
|
3926
|
-
button:
|
|
3927
|
-
divider:
|
|
3928
|
-
video:
|
|
3929
|
-
social:
|
|
3930
|
-
menu:
|
|
3931
|
-
table:
|
|
3932
|
-
spacer:
|
|
3933
|
-
html:
|
|
3927
|
+
}), al = {
|
|
3928
|
+
section: jc,
|
|
3929
|
+
title: ja,
|
|
3930
|
+
paragraph: ga,
|
|
3931
|
+
image: ra,
|
|
3932
|
+
button: ni,
|
|
3933
|
+
divider: zi,
|
|
3934
|
+
video: il,
|
|
3935
|
+
social: zc,
|
|
3936
|
+
menu: sa,
|
|
3937
|
+
table: Jc,
|
|
3938
|
+
spacer: Hc,
|
|
3939
|
+
html: Gi,
|
|
3934
3940
|
countdown: v(() => import("./CountdownBlock-zx39Dyby.js"))
|
|
3935
3941
|
};
|
|
3936
|
-
function
|
|
3937
|
-
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } =
|
|
3942
|
+
function ol(t) {
|
|
3943
|
+
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = On(i), l = N(() => le(le(le(hr(i), Fr(n.content.value.settings?.locale)), Ee(n.content.value.settings) === "rtl" ? {
|
|
3938
3944
|
title: { textAlign: "right" },
|
|
3939
3945
|
table: { textAlign: "right" }
|
|
3940
3946
|
} : {}), r.blockDefaults ?? {}));
|
|
3941
3947
|
n.setUiTheme(r.uiTheme ?? "auto");
|
|
3942
|
-
let { resolvedTheme: u } =
|
|
3948
|
+
let { resolvedTheme: u } = rr(N(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = ar({
|
|
3943
3949
|
themeOverrides: d,
|
|
3944
3950
|
resolvedTheme: u,
|
|
3945
3951
|
extraStyles: () => ({
|
|
3946
3952
|
"--tpl-drop-text": `"${i.canvas.dropHere}"`,
|
|
3947
3953
|
...t.themeExtraStyles?.()
|
|
3948
3954
|
})
|
|
3949
|
-
}), m =
|
|
3955
|
+
}), m = Tt({
|
|
3950
3956
|
content: n.content,
|
|
3951
3957
|
setContent: (e, t) => n.setContent(e, t),
|
|
3952
3958
|
...t.historyOptions
|
|
3953
3959
|
});
|
|
3954
|
-
|
|
3955
|
-
let g =
|
|
3960
|
+
nt(n, m);
|
|
3961
|
+
let g = ct({
|
|
3956
3962
|
addBlock: n.addBlock,
|
|
3957
3963
|
removeBlock: n.removeBlock,
|
|
3958
3964
|
updateBlock: n.updateBlock,
|
|
3959
3965
|
selectBlock: n.selectBlock,
|
|
3960
3966
|
findBlockLocation: n.findBlockLocation,
|
|
3961
3967
|
blockDefaults: () => l.value
|
|
3962
|
-
}), v =
|
|
3968
|
+
}), v = at(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? st({
|
|
3963
3969
|
content: n.content,
|
|
3964
3970
|
isDirty: () => n.state.isDirty,
|
|
3965
3971
|
...t.autoSaveOptions
|
|
@@ -3967,30 +3973,30 @@ function Jc(t) {
|
|
|
3967
3973
|
y && (b = f(m.isNavigating, (e) => {
|
|
3968
3974
|
e ? y.pause() : y.resume();
|
|
3969
3975
|
}));
|
|
3970
|
-
let x =
|
|
3976
|
+
let x = nr(n, {
|
|
3971
3977
|
t: o,
|
|
3972
3978
|
format: c
|
|
3973
|
-
}, r.customBlocks ?? []), S =
|
|
3974
|
-
if (S.allowCustomIgnored &&
|
|
3975
|
-
let e =
|
|
3976
|
-
e.length > 0 &&
|
|
3977
|
-
}
|
|
3978
|
-
let C =
|
|
3979
|
-
for (let e of C.unknown)
|
|
3980
|
-
let w =
|
|
3981
|
-
|
|
3979
|
+
}, r.customBlocks ?? []), S = Mn(r.colors);
|
|
3980
|
+
if (S.allowCustomIgnored && kn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && kn.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
|
|
3981
|
+
let e = mr(S.presets, r.blockDefaults, r.templateDefaults);
|
|
3982
|
+
e.length > 0 && kn.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
|
|
3983
|
+
}
|
|
3984
|
+
let C = Pn(r.templateSettings);
|
|
3985
|
+
for (let e of C.unknown) kn.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Fn.join(", ")}) — skipping it.`);
|
|
3986
|
+
let w = or();
|
|
3987
|
+
dr(w, al);
|
|
3982
3988
|
let T = /* @__PURE__ */ new Set();
|
|
3983
3989
|
function D(e) {
|
|
3984
3990
|
for (let t of e) {
|
|
3985
|
-
w.registerCustom(t,
|
|
3986
|
-
for (let e of
|
|
3991
|
+
w.registerCustom(t, Li);
|
|
3992
|
+
for (let e of Ir(t, S)) T.has(e.id) || (T.add(e.id), kn.warn(e.message));
|
|
3987
3993
|
}
|
|
3988
3994
|
}
|
|
3989
3995
|
r.customBlocks?.length && D(r.customBlocks);
|
|
3990
|
-
let O =
|
|
3996
|
+
let O = Yn();
|
|
3991
3997
|
if (h() && s(O.dispose), t.containerEl) {
|
|
3992
3998
|
let e = t.containerEl;
|
|
3993
|
-
|
|
3999
|
+
At(document, "pointerdown", (t) => {
|
|
3994
4000
|
let n = e.value;
|
|
3995
4001
|
n && (t.composedPath?.() ?? []).includes(n) && O.claim();
|
|
3996
4002
|
}, { capture: !0 });
|
|
@@ -4000,7 +4006,7 @@ function Jc(t) {
|
|
|
4000
4006
|
e ? e.save() : y?.flush();
|
|
4001
4007
|
}
|
|
4002
4008
|
function A(e) {
|
|
4003
|
-
O.isActive() &&
|
|
4009
|
+
O.isActive() && Rr(e, {
|
|
4004
4010
|
history: m,
|
|
4005
4011
|
selectBlock: (e) => n.selectBlock(e),
|
|
4006
4012
|
getSelectedBlockId: () => n.state.selectedBlockId,
|
|
@@ -4012,37 +4018,37 @@ function Jc(t) {
|
|
|
4012
4018
|
onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
|
|
4013
4019
|
});
|
|
4014
4020
|
}
|
|
4015
|
-
|
|
4021
|
+
At(document, "keydown", A);
|
|
4016
4022
|
let j = _(null), M = t.editorRoot ?? document;
|
|
4017
|
-
E(
|
|
4018
|
-
let ee =
|
|
4023
|
+
E(an, M), E(Ft, j), E(nn, i), E(dn, n), E(En, m), E(on, g), E(un, v), E(Cn, a), E(Ut, p), E(rn, u), E(vn, l), E(tn, r.locale), E(Sn, w), E(yn, r.customBlocks ?? []), E(Dn, r.paletteBlocks), E(sn, fr(r.htmlBlockPreview)), E(It, r.layout), E(Bt, r.sectionWrapper), E(ln, S), E(bn, C.fields), E(gn, sr(n.content, w));
|
|
4024
|
+
let ee = Ye(r.mergeTags?.syntax), P = e(r.mergeTags?.tags ?? []);
|
|
4019
4025
|
function F(e) {
|
|
4020
|
-
Array.isArray(e) ? P.value = e :
|
|
4026
|
+
Array.isArray(e) ? P.value = e : kn.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
4021
4027
|
}
|
|
4022
|
-
E(
|
|
4023
|
-
let te = _(
|
|
4024
|
-
E(
|
|
4025
|
-
let I =
|
|
4028
|
+
E(Jt, P), E(Yt, ee), E(Zt, r.mergeTags?.onRequest ?? null), E(mn, r.mergeTags?.autocomplete !== !1), E(qt, r.mergeTags?.showRawValue !== !1);
|
|
4029
|
+
let te = _(We(r.mergeTags?.tags ?? []));
|
|
4030
|
+
E(Kt, te);
|
|
4031
|
+
let I = Zn({
|
|
4026
4032
|
resolvePreview: r.resolvePreview,
|
|
4027
4033
|
getContent: () => {
|
|
4028
4034
|
let e = n.content.value;
|
|
4029
|
-
return r.layout && n.state.previewMode ?
|
|
4035
|
+
return r.layout && n.state.previewMode ? He(r.layout, e) : e;
|
|
4030
4036
|
},
|
|
4031
4037
|
isActive: () => n.state.previewMode
|
|
4032
4038
|
});
|
|
4033
|
-
E(
|
|
4039
|
+
E(en, I), E(Vt, r.resolvePreview);
|
|
4034
4040
|
let ne = N(() => !(n.state.previewMode && I.isConfigured));
|
|
4035
|
-
E(
|
|
4036
|
-
let re =
|
|
4037
|
-
E(
|
|
4038
|
-
let ie =
|
|
4041
|
+
E(xn, ne);
|
|
4042
|
+
let re = Qn();
|
|
4043
|
+
E(Pt, re), E(pn, _(!1)), E(Lt, _(!1)), E($t, r.logicTags?.tags ?? []), E(wn, r.logicTags?.pairs ?? []), E(Ht, r.logicTags?.onRequest ?? null), E(Rt, $n()), E(Gt, r.onRequestMedia ?? null), E(cn, r.canDropMedia ?? null), E(Tn, r.resolveImageUrl ? St(r.resolveImageUrl) : null), E(fn, r.displayConditions?.conditions ?? []), E(_n, r.displayConditions?.allowCustom ?? !1), E(hn, t.capabilities ?? {}), E(Qt, x);
|
|
4044
|
+
let ie = er(r.lint) ? null : tr({
|
|
4039
4045
|
content: n.content,
|
|
4040
4046
|
options: r.lint ?? {},
|
|
4041
4047
|
updateBlock: n.updateBlock,
|
|
4042
4048
|
updateSettings: n.updateSettings,
|
|
4043
4049
|
removeBlock: n.removeBlock
|
|
4044
4050
|
});
|
|
4045
|
-
E(
|
|
4051
|
+
E(Wt, ie);
|
|
4046
4052
|
function ae() {
|
|
4047
4053
|
b?.(), ie?.destroy(), y?.destroy(), m.destroy();
|
|
4048
4054
|
}
|
|
@@ -4070,4 +4076,4 @@ function Jc(t) {
|
|
|
4070
4076
|
};
|
|
4071
4077
|
}
|
|
4072
4078
|
//#endregion
|
|
4073
|
-
export {
|
|
4079
|
+
export { Jr as A, Dr as B, mi as C, ri as D, ai as E, Cr as F, Zn as H, jr as I, Ar as L, zr as M, Qr as N, ni as O, Br as P, kr as R, hi as S, si as T, Er as V, Li as _, zc as a, wi as b, Ma as c, ka as d, ga as f, zi as g, Gi as h, Hc as i, Yr as j, Wr as k, Fa as l, ra as m, il as n, jc as o, sa as p, Jc as r, Ec as s, ol as t, ja as u, Oi as v, fi as w, yi as x, Ei as y, Or as z };
|