@nextcloud/vue 8.6.1 → 8.7.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/CHANGELOG.md +36 -0
- package/dist/Components/NcActionButton.cjs +6 -6
- package/dist/Components/NcActionButton.cjs.map +1 -1
- package/dist/Components/NcActionButton.mjs +3 -3
- package/dist/Components/NcActionButton.mjs.map +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActions.cjs +1 -1
- package/dist/Components/NcActions.mjs +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAppSidebarTab.cjs +3 -3
- package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
- package/dist/Components/NcAppSidebarTab.mjs +5 -5
- package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +1 -1
- package/dist/Components/NcDashboardWidget.cjs +1 -1
- package/dist/Components/NcDashboardWidget.mjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +3 -3
- package/dist/Components/NcDateTimePicker.cjs.map +1 -1
- package/dist/Components/NcDateTimePicker.mjs +8 -8
- package/dist/Components/NcDateTimePicker.mjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.cjs +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.mjs +1 -1
- package/dist/Components/NcListItem.cjs +1 -1
- package/dist/Components/NcListItem.mjs +1 -1
- package/dist/Components/NcListItemIcon.cjs +1 -1
- package/dist/Components/NcListItemIcon.mjs +1 -1
- package/dist/Components/NcModal.cjs +7 -7
- package/dist/Components/NcModal.cjs.map +1 -1
- package/dist/Components/NcModal.mjs +7 -7
- package/dist/Components/NcModal.mjs.map +1 -1
- package/dist/Components/NcRichContenteditable.cjs +1 -1
- package/dist/Components/NcRichContenteditable.mjs +2 -2
- package/dist/Components/NcRichText.cjs +11 -11
- package/dist/Components/NcRichText.cjs.map +1 -1
- package/dist/Components/NcRichText.mjs +22 -21
- package/dist/Components/NcRichText.mjs.map +1 -1
- package/dist/Components/NcSelect.cjs +1 -1
- package/dist/Components/NcSelect.mjs +1 -1
- package/dist/Components/NcSelectTags.cjs +1 -1
- package/dist/Components/NcSelectTags.mjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTimezonePicker.cjs +1 -1
- package/dist/Components/NcTimezonePicker.mjs +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Functions/reference.cjs +16 -0
- package/dist/Functions/reference.cjs.map +1 -0
- package/dist/Functions/reference.mjs +17 -0
- package/dist/Functions/reference.mjs.map +1 -0
- package/dist/Functions/registerReference.cjs +71 -0
- package/dist/Functions/registerReference.cjs.map +1 -0
- package/dist/Functions/registerReference.mjs +71 -0
- package/dist/Functions/registerReference.mjs.map +1 -0
- package/dist/Mixins/richEditor.cjs +1 -1
- package/dist/Mixins/richEditor.mjs +1 -1
- package/dist/assets/{NcActionButton-1Z9lN7ar.css → NcActionButton-rOZFVQA8.css} +17 -17
- package/dist/assets/{NcActions-mSL9fcPO.css → NcActions-4Gq5bZLW.css} +12 -12
- package/dist/assets/{NcAppSidebar-iU8Zp4Qk.css → NcAppSidebar-YHd7DpMW.css} +44 -44
- package/dist/assets/{NcAppSidebarTab-Phau6edJ.css → NcAppSidebarTab-FywbKxqo.css} +4 -4
- package/dist/assets/{NcBreadcrumb-M3hqCbqS.css → NcBreadcrumb-HspaFygg.css} +16 -16
- package/dist/assets/{NcDateTimePicker-vivOLt2Q.css → NcDateTimePicker-w8SEtYvQ.css} +17 -17
- package/dist/assets/{NcHeaderMenu-06vdn4tC.css → NcHeaderMenu-Srn5iXdL.css} +14 -15
- package/dist/assets/NcListItem-L8LeGwpe.css +165 -0
- package/dist/assets/{NcMentionBubble-2OXF_uEJ.css → NcMentionBubble-YYl1ib_F.css} +9 -9
- package/dist/assets/{NcModal-UZh031V1.css → NcModal-sIK5sUoC.css} +63 -63
- package/dist/assets/{NcRichContenteditable-j9edXOEH.css → NcRichContenteditable-N1TxeACO.css} +76 -84
- package/dist/assets/NcRichText-kDp48Nji.css +215 -0
- package/dist/assets/referencePickerModal-A0PlFUEI.css +316 -0
- package/dist/chunks/{NcActionInput-jQFZLsoe.mjs → NcActionInput-XHMzOL_h.mjs} +1 -1
- package/dist/chunks/{NcActionInput-jQFZLsoe.mjs.map → NcActionInput-XHMzOL_h.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput--MiyWKmE.cjs → NcActionInput-f1Oq2O71.cjs} +1 -1
- package/dist/chunks/{NcActionInput--MiyWKmE.cjs.map → NcActionInput-f1Oq2O71.cjs.map} +1 -1
- package/dist/chunks/{NcActions-qCVw08zV.mjs → NcActions-5_igU-CH.mjs} +21 -21
- package/dist/chunks/{NcActions-qCVw08zV.mjs.map → NcActions-5_igU-CH.mjs.map} +1 -1
- package/dist/chunks/{NcActions-SlBohqiI.cjs → NcActions-JXnhQhum.cjs} +7 -7
- package/dist/chunks/{NcActions-SlBohqiI.cjs.map → NcActions-JXnhQhum.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-0lGP-5CR.mjs → NcAppNavigationCaption-2rUO5Mns.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-0lGP-5CR.mjs.map → NcAppNavigationCaption-2rUO5Mns.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-nEKQXQYr.cjs → NcAppNavigationCaption-JQWbmgdy.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-nEKQXQYr.cjs.map → NcAppNavigationCaption-JQWbmgdy.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-g_XncGxL.mjs → NcAppNavigationItem-A1yAdDNN.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationItem-g_XncGxL.mjs.map → NcAppNavigationItem-A1yAdDNN.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-AdLvgSbV.cjs → NcAppNavigationItem-Wb8gX-Ln.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationItem-AdLvgSbV.cjs.map → NcAppNavigationItem-Wb8gX-Ln.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-UKQnGAEz.cjs → NcAppNavigationSettings-VLa79G7w.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-UKQnGAEz.cjs.map → NcAppNavigationSettings-VLa79G7w.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-DQHPDc4X.mjs → NcAppNavigationSettings-gwL_FqLN.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-DQHPDc4X.mjs.map → NcAppNavigationSettings-gwL_FqLN.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-WyDtlgwP.cjs → NcAppSidebar-rRNJnN-k.cjs} +59 -31
- package/dist/chunks/NcAppSidebar-rRNJnN-k.cjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-Wo8-p3nm.mjs → NcAppSidebar-tnHBPGbL.mjs} +138 -109
- package/dist/chunks/NcAppSidebar-tnHBPGbL.mjs.map +1 -0
- package/dist/chunks/{NcAvatar-c9ryo-7h.mjs → NcAvatar-xT3kz6mU.mjs} +2 -2
- package/dist/chunks/{NcAvatar-c9ryo-7h.mjs.map → NcAvatar-xT3kz6mU.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-khVnYpF2.cjs → NcAvatar-zTS9P1lK.cjs} +2 -2
- package/dist/chunks/{NcAvatar-khVnYpF2.cjs.map → NcAvatar-zTS9P1lK.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-SEyo99to.cjs → NcBreadcrumb-DEWk7wO9.cjs} +27 -20
- package/dist/chunks/NcBreadcrumb-DEWk7wO9.cjs.map +1 -0
- package/dist/chunks/{NcBreadcrumb-Ac0G-oky.mjs → NcBreadcrumb-w1UX2NR-.mjs} +14 -7
- package/dist/chunks/NcBreadcrumb-w1UX2NR-.mjs.map +1 -0
- package/dist/chunks/{NcBreadcrumbs-DXpOwLNx.cjs → NcBreadcrumbs-VuaG3ex5.cjs} +1 -1
- package/dist/chunks/{NcBreadcrumbs-DXpOwLNx.cjs.map → NcBreadcrumbs-VuaG3ex5.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-YOANgGCY.mjs → NcBreadcrumbs-tRR9CjKD.mjs} +2 -2
- package/dist/chunks/{NcBreadcrumbs-YOANgGCY.mjs.map → NcBreadcrumbs-tRR9CjKD.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-zBrcpL_E.cjs → NcDashboardWidget-QciRRvL4.cjs} +1 -1
- package/dist/chunks/{NcDashboardWidget-zBrcpL_E.cjs.map → NcDashboardWidget-QciRRvL4.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-bEnoXtKm.mjs → NcDashboardWidget-ogqyHahY.mjs} +2 -2
- package/dist/chunks/{NcDashboardWidget-bEnoXtKm.mjs.map → NcDashboardWidget-ogqyHahY.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-LcxIx2-S.cjs → NcDashboardWidgetItem-mIPkPR7r.cjs} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-LcxIx2-S.cjs.map → NcDashboardWidgetItem-mIPkPR7r.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-p7yyFX-b.mjs → NcDashboardWidgetItem-wuUHTeLl.mjs} +2 -2
- package/dist/chunks/{NcDashboardWidgetItem-p7yyFX-b.mjs.map → NcDashboardWidgetItem-wuUHTeLl.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-BSi8E43v.cjs → NcHeaderMenu-0d6eqre6.cjs} +6 -6
- package/dist/chunks/{NcHeaderMenu-Vytc8Eqg.mjs.map → NcHeaderMenu-0d6eqre6.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-Vytc8Eqg.mjs → NcHeaderMenu-91qMsRIw.mjs} +3 -3
- package/dist/chunks/{NcHeaderMenu-BSi8E43v.cjs.map → NcHeaderMenu-91qMsRIw.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-lqYZQhuZ.cjs → NcListItem--_PCqetA.cjs} +30 -47
- package/dist/chunks/NcListItem--_PCqetA.cjs.map +1 -0
- package/dist/chunks/{NcListItem-90hXqC4C.mjs → NcListItem-AMcc69jK.mjs} +33 -50
- package/dist/chunks/NcListItem-AMcc69jK.mjs.map +1 -0
- package/dist/chunks/{NcListItemIcon-ccke4gpg.cjs → NcListItemIcon-BnoIbVbD.cjs} +2 -2
- package/dist/chunks/{NcListItemIcon-ccke4gpg.cjs.map → NcListItemIcon-BnoIbVbD.cjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-hTbMo3-O.mjs → NcListItemIcon-rqgXledP.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-hTbMo3-O.mjs.map → NcListItemIcon-rqgXledP.mjs.map} +1 -1
- package/dist/chunks/NcRichContenteditable-eG8Fyo-M.mjs +638 -0
- package/dist/chunks/NcRichContenteditable-eG8Fyo-M.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-WxSgSNot.cjs → NcRichContenteditable-jReu2l-M.cjs} +235 -111
- package/dist/chunks/NcRichContenteditable-jReu2l-M.cjs.map +1 -0
- package/dist/chunks/NcRichText-Yo5pFnd0.cjs +310 -0
- package/dist/chunks/NcRichText-Yo5pFnd0.cjs.map +1 -0
- package/dist/chunks/NcRichText-qID66jAy.mjs +325 -0
- package/dist/chunks/NcRichText-qID66jAy.mjs.map +1 -0
- package/dist/chunks/{NcSelect-rMSul72R.cjs → NcSelect-U9LJcdIo.cjs} +55 -45
- package/dist/chunks/NcSelect-U9LJcdIo.cjs.map +1 -0
- package/dist/chunks/{NcSelect-vSPKKiyt.mjs → NcSelect-b2H-YQsK.mjs} +40 -30
- package/dist/chunks/NcSelect-b2H-YQsK.mjs.map +1 -0
- package/dist/chunks/{NcSelectTags-MwCs_QbM.mjs → NcSelectTags-MlILya2b.mjs} +1 -1
- package/dist/chunks/{NcSelectTags-MwCs_QbM.mjs.map → NcSelectTags-MlILya2b.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-beMN3ZsT.cjs → NcSelectTags-rO88Pk-1.cjs} +1 -1
- package/dist/chunks/{NcSelectTags-beMN3ZsT.cjs.map → NcSelectTags-rO88Pk-1.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-msn3aYsn.cjs → NcSettingsSelectGroup-rfeDPLCg.cjs} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-msn3aYsn.cjs.map → NcSettingsSelectGroup-rfeDPLCg.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-HkS2QpZS.mjs → NcSettingsSelectGroup-xhnDBg8a.mjs} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-HkS2QpZS.mjs.map → NcSettingsSelectGroup-xhnDBg8a.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-Cp479kFL.cjs → NcTimezonePicker-KG0dvgUv.cjs} +1 -1
- package/dist/chunks/{NcTimezonePicker-Cp479kFL.cjs.map → NcTimezonePicker-KG0dvgUv.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-I6wF2jeF.mjs → NcTimezonePicker-jJeiI-Ff.mjs} +1 -1
- package/dist/chunks/{NcTimezonePicker-I6wF2jeF.mjs.map → NcTimezonePicker-jJeiI-Ff.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-6AbwSr2B.cjs → NcUserBubble-027_C0cM.cjs} +1 -1
- package/dist/chunks/{NcUserBubble-6AbwSr2B.cjs.map → NcUserBubble-027_C0cM.cjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-imSUw-aP.mjs → NcUserBubble-9StjszDh.mjs} +1 -1
- package/dist/chunks/{NcUserBubble-imSUw-aP.mjs.map → NcUserBubble-9StjszDh.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-CjAOgGnx.mjs → ScopeComponent-9fOoDGYa.mjs} +1 -1
- package/dist/chunks/{ScopeComponent-CjAOgGnx.mjs.map → ScopeComponent-9fOoDGYa.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-V9SPec9g.cjs → ScopeComponent-R0tAsT2f.cjs} +1 -1
- package/dist/chunks/{ScopeComponent-V9SPec9g.cjs.map → ScopeComponent-R0tAsT2f.cjs.map} +1 -1
- package/dist/chunks/{index-U21dQVa7.cjs → index-5TyVc_TT.cjs} +29 -16
- package/dist/chunks/index-5TyVc_TT.cjs.map +1 -0
- package/dist/chunks/{index-n2q3iT69.mjs → index-xnq0-IMW.mjs} +26 -13
- package/dist/chunks/index-xnq0-IMW.mjs.map +1 -0
- package/dist/chunks/referencePickerModal-cPBjsn4r.cjs +2393 -0
- package/dist/chunks/referencePickerModal-cPBjsn4r.cjs.map +1 -0
- package/dist/chunks/referencePickerModal-gDBkGfNV.mjs +2414 -0
- package/dist/chunks/referencePickerModal-gDBkGfNV.mjs.map +1 -0
- package/dist/index.cjs +189 -170
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +184 -165
- package/dist/index.mjs.map +1 -1
- package/dist/vendor.LICENSE.txt +4 -0
- package/package.json +4 -4
- package/dist/assets/NcListItem-6sL-frKJ.css +0 -165
- package/dist/assets/referencePickerModal-iy5QSWj6.css +0 -509
- package/dist/chunks/NcAppSidebar-Wo8-p3nm.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-WyDtlgwP.cjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-Ac0G-oky.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-SEyo99to.cjs.map +0 -1
- package/dist/chunks/NcListItem-90hXqC4C.mjs.map +0 -1
- package/dist/chunks/NcListItem-lqYZQhuZ.cjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-WxSgSNot.cjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-gQh2HFSV.mjs +0 -515
- package/dist/chunks/NcRichContenteditable-gQh2HFSV.mjs.map +0 -1
- package/dist/chunks/NcRichText-RSAcESV2.mjs +0 -353
- package/dist/chunks/NcRichText-RSAcESV2.mjs.map +0 -1
- package/dist/chunks/NcRichText-fHn-j5sa.cjs +0 -337
- package/dist/chunks/NcRichText-fHn-j5sa.cjs.map +0 -1
- package/dist/chunks/NcSelect-rMSul72R.cjs.map +0 -1
- package/dist/chunks/NcSelect-vSPKKiyt.mjs.map +0 -1
- package/dist/chunks/index-U21dQVa7.cjs.map +0 -1
- package/dist/chunks/index-n2q3iT69.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-FeA-PRqB.mjs +0 -897
- package/dist/chunks/referencePickerModal-FeA-PRqB.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-GXRJ351Q.cjs +0 -880
- package/dist/chunks/referencePickerModal-GXRJ351Q.cjs.map +0 -1
|
@@ -0,0 +1,2414 @@
|
|
|
1
|
+
import '../assets/referencePickerModal-A0PlFUEI.css';
|
|
2
|
+
import { isWidgetRegistered as Pt, destroyWidget as Ct, renderWidget as Et, isCustomPickerElementRegistered as z, destroyCustomPickerElement as kt, renderCustomPickerElement as St, getCustomPickerElementSize as xt } from "../Functions/registerReference.mjs";
|
|
3
|
+
import { n as N } from "./_plugin-vue2_normalizer-u6G_3nkj.mjs";
|
|
4
|
+
import { r as F, O as $t, a as k, P as Nt, Q as Ke, R as Lt, u as Ot, S as Tt, G as At, T as It } from "./_l10n-FmsZpnE4.mjs";
|
|
5
|
+
import ge from "@nextcloud/axios";
|
|
6
|
+
import { loadState as Ze } from "@nextcloud/initial-state";
|
|
7
|
+
import { getBaseUrl as Vt, imagePath as jt, generateOcsUrl as Y } from "@nextcloud/router";
|
|
8
|
+
import ye from "../Components/NcEmptyContent.mjs";
|
|
9
|
+
import { N as Je } from "./index-2phCrsSH.mjs";
|
|
10
|
+
import { N as Xe } from "./NcSelect-b2H-YQsK.mjs";
|
|
11
|
+
import { visit as Bt, SKIP as qt } from "unist-util-visit";
|
|
12
|
+
import { u as fe } from "unist-builder";
|
|
13
|
+
import { useResizeObserver as Mt } from "@vueuse/core";
|
|
14
|
+
import Ut from "../Components/NcLoadingIcon.mjs";
|
|
15
|
+
import { N as Dt } from "./NcTextField-NnW31cA4.mjs";
|
|
16
|
+
import { D as zt } from "./DotsHorizontal-IbmXTXRA.mjs";
|
|
17
|
+
import Ft from "../Components/NcButton.mjs";
|
|
18
|
+
import Wt from "../Components/NcModal.mjs";
|
|
19
|
+
import { emit as Ht } from "@nextcloud/event-bus";
|
|
20
|
+
import { A as Gt } from "./ArrowLeft-uW5eNVkY.mjs";
|
|
21
|
+
import { C as Qt } from "./Close-QtH6_3PP.mjs";
|
|
22
|
+
import Kt from "vue";
|
|
23
|
+
/*!
|
|
24
|
+
* vue-router v3.6.5
|
|
25
|
+
* (c) 2022 Evan You
|
|
26
|
+
* @license MIT
|
|
27
|
+
*/
|
|
28
|
+
function I(t, e) {
|
|
29
|
+
if (!t)
|
|
30
|
+
throw new Error("[vue-router] " + e);
|
|
31
|
+
}
|
|
32
|
+
function P(t, e) {
|
|
33
|
+
t || typeof console < "u" && console.warn("[vue-router] " + e);
|
|
34
|
+
}
|
|
35
|
+
function S(t, e) {
|
|
36
|
+
for (var r in e)
|
|
37
|
+
t[r] = e[r];
|
|
38
|
+
return t;
|
|
39
|
+
}
|
|
40
|
+
var Zt = /[!'()*]/g, Jt = function(t) {
|
|
41
|
+
return "%" + t.charCodeAt(0).toString(16);
|
|
42
|
+
}, Xt = /%2C/g, j = function(t) {
|
|
43
|
+
return encodeURIComponent(t).replace(Zt, Jt).replace(Xt, ",");
|
|
44
|
+
};
|
|
45
|
+
function he(t) {
|
|
46
|
+
try {
|
|
47
|
+
return decodeURIComponent(t);
|
|
48
|
+
} catch {
|
|
49
|
+
process.env.NODE_ENV !== "production" && P(!1, 'Error decoding "' + t + '". Leaving it intact.');
|
|
50
|
+
}
|
|
51
|
+
return t;
|
|
52
|
+
}
|
|
53
|
+
function Yt(t, e, r) {
|
|
54
|
+
e === void 0 && (e = {});
|
|
55
|
+
var n = r || er, i;
|
|
56
|
+
try {
|
|
57
|
+
i = n(t || "");
|
|
58
|
+
} catch (a) {
|
|
59
|
+
process.env.NODE_ENV !== "production" && P(!1, a.message), i = {};
|
|
60
|
+
}
|
|
61
|
+
for (var s in e) {
|
|
62
|
+
var o = e[s];
|
|
63
|
+
i[s] = Array.isArray(o) ? o.map(xe) : xe(o);
|
|
64
|
+
}
|
|
65
|
+
return i;
|
|
66
|
+
}
|
|
67
|
+
var xe = function(t) {
|
|
68
|
+
return t == null || typeof t == "object" ? t : String(t);
|
|
69
|
+
};
|
|
70
|
+
function er(t) {
|
|
71
|
+
var e = {};
|
|
72
|
+
return t = t.trim().replace(/^(\?|#|&)/, ""), t && t.split("&").forEach(function(r) {
|
|
73
|
+
var n = r.replace(/\+/g, " ").split("="), i = he(n.shift()), s = n.length > 0 ? he(n.join("=")) : null;
|
|
74
|
+
e[i] === void 0 ? e[i] = s : Array.isArray(e[i]) ? e[i].push(s) : e[i] = [e[i], s];
|
|
75
|
+
}), e;
|
|
76
|
+
}
|
|
77
|
+
function tr(t) {
|
|
78
|
+
var e = t ? Object.keys(t).map(function(r) {
|
|
79
|
+
var n = t[r];
|
|
80
|
+
if (n === void 0)
|
|
81
|
+
return "";
|
|
82
|
+
if (n === null)
|
|
83
|
+
return j(r);
|
|
84
|
+
if (Array.isArray(n)) {
|
|
85
|
+
var i = [];
|
|
86
|
+
return n.forEach(function(s) {
|
|
87
|
+
s !== void 0 && (s === null ? i.push(j(r)) : i.push(j(r) + "=" + j(s)));
|
|
88
|
+
}), i.join("&");
|
|
89
|
+
}
|
|
90
|
+
return j(r) + "=" + j(n);
|
|
91
|
+
}).filter(function(r) {
|
|
92
|
+
return r.length > 0;
|
|
93
|
+
}).join("&") : null;
|
|
94
|
+
return e ? "?" + e : "";
|
|
95
|
+
}
|
|
96
|
+
var ee = /\/?$/;
|
|
97
|
+
function te(t, e, r, n) {
|
|
98
|
+
var i = n && n.options.stringifyQuery, s = e.query || {};
|
|
99
|
+
try {
|
|
100
|
+
s = pe(s);
|
|
101
|
+
} catch {
|
|
102
|
+
}
|
|
103
|
+
var o = {
|
|
104
|
+
name: e.name || t && t.name,
|
|
105
|
+
meta: t && t.meta || {},
|
|
106
|
+
path: e.path || "/",
|
|
107
|
+
hash: e.hash || "",
|
|
108
|
+
query: s,
|
|
109
|
+
params: e.params || {},
|
|
110
|
+
fullPath: $e(e, i),
|
|
111
|
+
matched: t ? rr(t) : []
|
|
112
|
+
};
|
|
113
|
+
return r && (o.redirectedFrom = $e(r, i)), Object.freeze(o);
|
|
114
|
+
}
|
|
115
|
+
function pe(t) {
|
|
116
|
+
if (Array.isArray(t))
|
|
117
|
+
return t.map(pe);
|
|
118
|
+
if (t && typeof t == "object") {
|
|
119
|
+
var e = {};
|
|
120
|
+
for (var r in t)
|
|
121
|
+
e[r] = pe(t[r]);
|
|
122
|
+
return e;
|
|
123
|
+
} else
|
|
124
|
+
return t;
|
|
125
|
+
}
|
|
126
|
+
var A = te(null, {
|
|
127
|
+
path: "/"
|
|
128
|
+
});
|
|
129
|
+
function rr(t) {
|
|
130
|
+
for (var e = []; t; )
|
|
131
|
+
e.unshift(t), t = t.parent;
|
|
132
|
+
return e;
|
|
133
|
+
}
|
|
134
|
+
function $e(t, e) {
|
|
135
|
+
var r = t.path, n = t.query;
|
|
136
|
+
n === void 0 && (n = {});
|
|
137
|
+
var i = t.hash;
|
|
138
|
+
i === void 0 && (i = "");
|
|
139
|
+
var s = e || tr;
|
|
140
|
+
return (r || "/") + s(n) + i;
|
|
141
|
+
}
|
|
142
|
+
function Ye(t, e, r) {
|
|
143
|
+
return e === A ? t === e : e ? t.path && e.path ? t.path.replace(ee, "") === e.path.replace(ee, "") && (r || t.hash === e.hash && Q(t.query, e.query)) : t.name && e.name ? t.name === e.name && (r || t.hash === e.hash && Q(t.query, e.query) && Q(t.params, e.params)) : !1 : !1;
|
|
144
|
+
}
|
|
145
|
+
function Q(t, e) {
|
|
146
|
+
if (t === void 0 && (t = {}), e === void 0 && (e = {}), !t || !e)
|
|
147
|
+
return t === e;
|
|
148
|
+
var r = Object.keys(t).sort(), n = Object.keys(e).sort();
|
|
149
|
+
return r.length !== n.length ? !1 : r.every(function(i, s) {
|
|
150
|
+
var o = t[i], a = n[s];
|
|
151
|
+
if (a !== i)
|
|
152
|
+
return !1;
|
|
153
|
+
var c = e[i];
|
|
154
|
+
return o == null || c == null ? o === c : typeof o == "object" && typeof c == "object" ? Q(o, c) : String(o) === String(c);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function nr(t, e) {
|
|
158
|
+
return t.path.replace(ee, "/").indexOf(
|
|
159
|
+
e.path.replace(ee, "/")
|
|
160
|
+
) === 0 && (!e.hash || t.hash === e.hash) && ir(t.query, e.query);
|
|
161
|
+
}
|
|
162
|
+
function ir(t, e) {
|
|
163
|
+
for (var r in e)
|
|
164
|
+
if (!(r in t))
|
|
165
|
+
return !1;
|
|
166
|
+
return !0;
|
|
167
|
+
}
|
|
168
|
+
function et(t) {
|
|
169
|
+
for (var e = 0; e < t.matched.length; e++) {
|
|
170
|
+
var r = t.matched[e];
|
|
171
|
+
for (var n in r.instances) {
|
|
172
|
+
var i = r.instances[n], s = r.enteredCbs[n];
|
|
173
|
+
if (!(!i || !s)) {
|
|
174
|
+
delete r.enteredCbs[n];
|
|
175
|
+
for (var o = 0; o < s.length; o++)
|
|
176
|
+
i._isBeingDestroyed || s[o](i);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
var sr = {
|
|
182
|
+
name: "RouterView",
|
|
183
|
+
functional: !0,
|
|
184
|
+
props: {
|
|
185
|
+
name: {
|
|
186
|
+
type: String,
|
|
187
|
+
default: "default"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
render: function(e, r) {
|
|
191
|
+
var n = r.props, i = r.children, s = r.parent, o = r.data;
|
|
192
|
+
o.routerView = !0;
|
|
193
|
+
for (var a = s.$createElement, c = n.name, u = s.$route, d = s._routerViewCache || (s._routerViewCache = {}), m = 0, h = !1; s && s._routerRoot !== s; ) {
|
|
194
|
+
var v = s.$vnode ? s.$vnode.data : {};
|
|
195
|
+
v.routerView && m++, v.keepAlive && s._directInactive && s._inactive && (h = !0), s = s.$parent;
|
|
196
|
+
}
|
|
197
|
+
if (o.routerViewDepth = m, h) {
|
|
198
|
+
var p = d[c], l = p && p.component;
|
|
199
|
+
return l ? (p.configProps && Ne(l, o, p.route, p.configProps), a(l, o, i)) : a();
|
|
200
|
+
}
|
|
201
|
+
var f = u.matched[m], g = f && f.components[c];
|
|
202
|
+
if (!f || !g)
|
|
203
|
+
return d[c] = null, a();
|
|
204
|
+
d[c] = { component: g }, o.registerRouteInstance = function(y, w) {
|
|
205
|
+
var R = f.instances[c];
|
|
206
|
+
(w && R !== y || !w && R === y) && (f.instances[c] = w);
|
|
207
|
+
}, (o.hook || (o.hook = {})).prepatch = function(y, w) {
|
|
208
|
+
f.instances[c] = w.componentInstance;
|
|
209
|
+
}, o.hook.init = function(y) {
|
|
210
|
+
y.data.keepAlive && y.componentInstance && y.componentInstance !== f.instances[c] && (f.instances[c] = y.componentInstance), et(u);
|
|
211
|
+
};
|
|
212
|
+
var _ = f.props && f.props[c];
|
|
213
|
+
return _ && (S(d[c], {
|
|
214
|
+
route: u,
|
|
215
|
+
configProps: _
|
|
216
|
+
}), Ne(g, o, u, _)), a(g, o, i);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
function Ne(t, e, r, n) {
|
|
220
|
+
var i = e.props = or(r, n);
|
|
221
|
+
if (i) {
|
|
222
|
+
i = e.props = S({}, i);
|
|
223
|
+
var s = e.attrs = e.attrs || {};
|
|
224
|
+
for (var o in i)
|
|
225
|
+
(!t.props || !(o in t.props)) && (s[o] = i[o], delete i[o]);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function or(t, e) {
|
|
229
|
+
switch (typeof e) {
|
|
230
|
+
case "undefined":
|
|
231
|
+
return;
|
|
232
|
+
case "object":
|
|
233
|
+
return e;
|
|
234
|
+
case "function":
|
|
235
|
+
return e(t);
|
|
236
|
+
case "boolean":
|
|
237
|
+
return e ? t.params : void 0;
|
|
238
|
+
default:
|
|
239
|
+
process.env.NODE_ENV !== "production" && P(
|
|
240
|
+
!1,
|
|
241
|
+
'props in "' + t.path + '" is a ' + typeof e + ", expecting an object, function or boolean."
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function tt(t, e, r) {
|
|
246
|
+
var n = t.charAt(0);
|
|
247
|
+
if (n === "/")
|
|
248
|
+
return t;
|
|
249
|
+
if (n === "?" || n === "#")
|
|
250
|
+
return e + t;
|
|
251
|
+
var i = e.split("/");
|
|
252
|
+
(!r || !i[i.length - 1]) && i.pop();
|
|
253
|
+
for (var s = t.replace(/^\//, "").split("/"), o = 0; o < s.length; o++) {
|
|
254
|
+
var a = s[o];
|
|
255
|
+
a === ".." ? i.pop() : a !== "." && i.push(a);
|
|
256
|
+
}
|
|
257
|
+
return i[0] !== "" && i.unshift(""), i.join("/");
|
|
258
|
+
}
|
|
259
|
+
function ar(t) {
|
|
260
|
+
var e = "", r = "", n = t.indexOf("#");
|
|
261
|
+
n >= 0 && (e = t.slice(n), t = t.slice(0, n));
|
|
262
|
+
var i = t.indexOf("?");
|
|
263
|
+
return i >= 0 && (r = t.slice(i + 1), t = t.slice(0, i)), {
|
|
264
|
+
path: t,
|
|
265
|
+
query: r,
|
|
266
|
+
hash: e
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
function L(t) {
|
|
270
|
+
return t.replace(/\/(?:\s*\/)+/g, "/");
|
|
271
|
+
}
|
|
272
|
+
var re = Array.isArray || function(t) {
|
|
273
|
+
return Object.prototype.toString.call(t) == "[object Array]";
|
|
274
|
+
}, q = it, cr = _e, ur = pr, lr = rt, fr = nt, hr = new RegExp([
|
|
275
|
+
// Match escaped characters that would otherwise appear in future matches.
|
|
276
|
+
// This allows the user to escape special characters that won't transform.
|
|
277
|
+
"(\\\\.)",
|
|
278
|
+
// Match Express-style parameters and un-named parameters with a prefix
|
|
279
|
+
// and optional suffixes. Matches appear as:
|
|
280
|
+
//
|
|
281
|
+
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
|
282
|
+
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
|
283
|
+
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
|
284
|
+
"([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
|
|
285
|
+
].join("|"), "g");
|
|
286
|
+
function _e(t, e) {
|
|
287
|
+
for (var r = [], n = 0, i = 0, s = "", o = e && e.delimiter || "/", a; (a = hr.exec(t)) != null; ) {
|
|
288
|
+
var c = a[0], u = a[1], d = a.index;
|
|
289
|
+
if (s += t.slice(i, d), i = d + c.length, u) {
|
|
290
|
+
s += u[1];
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
var m = t[i], h = a[2], v = a[3], p = a[4], l = a[5], f = a[6], g = a[7];
|
|
294
|
+
s && (r.push(s), s = "");
|
|
295
|
+
var _ = h != null && m != null && m !== h, y = f === "+" || f === "*", w = f === "?" || f === "*", R = a[2] || o, C = p || l;
|
|
296
|
+
r.push({
|
|
297
|
+
name: v || n++,
|
|
298
|
+
prefix: h || "",
|
|
299
|
+
delimiter: R,
|
|
300
|
+
optional: w,
|
|
301
|
+
repeat: y,
|
|
302
|
+
partial: _,
|
|
303
|
+
asterisk: !!g,
|
|
304
|
+
pattern: C ? mr(C) : g ? ".*" : "[^" + K(R) + "]+?"
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
return i < t.length && (s += t.substr(i)), s && r.push(s), r;
|
|
308
|
+
}
|
|
309
|
+
function pr(t, e) {
|
|
310
|
+
return rt(_e(t, e), e);
|
|
311
|
+
}
|
|
312
|
+
function dr(t) {
|
|
313
|
+
return encodeURI(t).replace(/[\/?#]/g, function(e) {
|
|
314
|
+
return "%" + e.charCodeAt(0).toString(16).toUpperCase();
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
function vr(t) {
|
|
318
|
+
return encodeURI(t).replace(/[?#]/g, function(e) {
|
|
319
|
+
return "%" + e.charCodeAt(0).toString(16).toUpperCase();
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function rt(t, e) {
|
|
323
|
+
for (var r = new Array(t.length), n = 0; n < t.length; n++)
|
|
324
|
+
typeof t[n] == "object" && (r[n] = new RegExp("^(?:" + t[n].pattern + ")$", we(e)));
|
|
325
|
+
return function(i, s) {
|
|
326
|
+
for (var o = "", a = i || {}, c = s || {}, u = c.pretty ? dr : encodeURIComponent, d = 0; d < t.length; d++) {
|
|
327
|
+
var m = t[d];
|
|
328
|
+
if (typeof m == "string") {
|
|
329
|
+
o += m;
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
var h = a[m.name], v;
|
|
333
|
+
if (h == null)
|
|
334
|
+
if (m.optional) {
|
|
335
|
+
m.partial && (o += m.prefix);
|
|
336
|
+
continue;
|
|
337
|
+
} else
|
|
338
|
+
throw new TypeError('Expected "' + m.name + '" to be defined');
|
|
339
|
+
if (re(h)) {
|
|
340
|
+
if (!m.repeat)
|
|
341
|
+
throw new TypeError('Expected "' + m.name + '" to not repeat, but received `' + JSON.stringify(h) + "`");
|
|
342
|
+
if (h.length === 0) {
|
|
343
|
+
if (m.optional)
|
|
344
|
+
continue;
|
|
345
|
+
throw new TypeError('Expected "' + m.name + '" to not be empty');
|
|
346
|
+
}
|
|
347
|
+
for (var p = 0; p < h.length; p++) {
|
|
348
|
+
if (v = u(h[p]), !r[d].test(v))
|
|
349
|
+
throw new TypeError('Expected all "' + m.name + '" to match "' + m.pattern + '", but received `' + JSON.stringify(v) + "`");
|
|
350
|
+
o += (p === 0 ? m.prefix : m.delimiter) + v;
|
|
351
|
+
}
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
if (v = m.asterisk ? vr(h) : u(h), !r[d].test(v))
|
|
355
|
+
throw new TypeError('Expected "' + m.name + '" to match "' + m.pattern + '", but received "' + v + '"');
|
|
356
|
+
o += m.prefix + v;
|
|
357
|
+
}
|
|
358
|
+
return o;
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function K(t) {
|
|
362
|
+
return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
|
|
363
|
+
}
|
|
364
|
+
function mr(t) {
|
|
365
|
+
return t.replace(/([=!:$\/()])/g, "\\$1");
|
|
366
|
+
}
|
|
367
|
+
function be(t, e) {
|
|
368
|
+
return t.keys = e, t;
|
|
369
|
+
}
|
|
370
|
+
function we(t) {
|
|
371
|
+
return t && t.sensitive ? "" : "i";
|
|
372
|
+
}
|
|
373
|
+
function gr(t, e) {
|
|
374
|
+
var r = t.source.match(/\((?!\?)/g);
|
|
375
|
+
if (r)
|
|
376
|
+
for (var n = 0; n < r.length; n++)
|
|
377
|
+
e.push({
|
|
378
|
+
name: n,
|
|
379
|
+
prefix: null,
|
|
380
|
+
delimiter: null,
|
|
381
|
+
optional: !1,
|
|
382
|
+
repeat: !1,
|
|
383
|
+
partial: !1,
|
|
384
|
+
asterisk: !1,
|
|
385
|
+
pattern: null
|
|
386
|
+
});
|
|
387
|
+
return be(t, e);
|
|
388
|
+
}
|
|
389
|
+
function yr(t, e, r) {
|
|
390
|
+
for (var n = [], i = 0; i < t.length; i++)
|
|
391
|
+
n.push(it(t[i], e, r).source);
|
|
392
|
+
var s = new RegExp("(?:" + n.join("|") + ")", we(r));
|
|
393
|
+
return be(s, e);
|
|
394
|
+
}
|
|
395
|
+
function _r(t, e, r) {
|
|
396
|
+
return nt(_e(t, r), e, r);
|
|
397
|
+
}
|
|
398
|
+
function nt(t, e, r) {
|
|
399
|
+
re(e) || (r = /** @type {!Object} */
|
|
400
|
+
e || r, e = []), r = r || {};
|
|
401
|
+
for (var n = r.strict, i = r.end !== !1, s = "", o = 0; o < t.length; o++) {
|
|
402
|
+
var a = t[o];
|
|
403
|
+
if (typeof a == "string")
|
|
404
|
+
s += K(a);
|
|
405
|
+
else {
|
|
406
|
+
var c = K(a.prefix), u = "(?:" + a.pattern + ")";
|
|
407
|
+
e.push(a), a.repeat && (u += "(?:" + c + u + ")*"), a.optional ? a.partial ? u = c + "(" + u + ")?" : u = "(?:" + c + "(" + u + "))?" : u = c + "(" + u + ")", s += u;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
var d = K(r.delimiter || "/"), m = s.slice(-d.length) === d;
|
|
411
|
+
return n || (s = (m ? s.slice(0, -d.length) : s) + "(?:" + d + "(?=$))?"), i ? s += "$" : s += n && m ? "" : "(?=" + d + "|$)", be(new RegExp("^" + s, we(r)), e);
|
|
412
|
+
}
|
|
413
|
+
function it(t, e, r) {
|
|
414
|
+
return re(e) || (r = /** @type {!Object} */
|
|
415
|
+
e || r, e = []), r = r || {}, t instanceof RegExp ? gr(
|
|
416
|
+
t,
|
|
417
|
+
/** @type {!Array} */
|
|
418
|
+
e
|
|
419
|
+
) : re(t) ? yr(
|
|
420
|
+
/** @type {!Array} */
|
|
421
|
+
t,
|
|
422
|
+
/** @type {!Array} */
|
|
423
|
+
e,
|
|
424
|
+
r
|
|
425
|
+
) : _r(
|
|
426
|
+
/** @type {string} */
|
|
427
|
+
t,
|
|
428
|
+
/** @type {!Array} */
|
|
429
|
+
e,
|
|
430
|
+
r
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
q.parse = cr;
|
|
434
|
+
q.compile = ur;
|
|
435
|
+
q.tokensToFunction = lr;
|
|
436
|
+
q.tokensToRegExp = fr;
|
|
437
|
+
var Le = /* @__PURE__ */ Object.create(null);
|
|
438
|
+
function Z(t, e, r) {
|
|
439
|
+
e = e || {};
|
|
440
|
+
try {
|
|
441
|
+
var n = Le[t] || (Le[t] = q.compile(t));
|
|
442
|
+
return typeof e.pathMatch == "string" && (e[0] = e.pathMatch), n(e, { pretty: !0 });
|
|
443
|
+
} catch (i) {
|
|
444
|
+
return process.env.NODE_ENV !== "production" && P(typeof e.pathMatch == "string", "missing param for " + r + ": " + i.message), "";
|
|
445
|
+
} finally {
|
|
446
|
+
delete e[0];
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
function Re(t, e, r, n) {
|
|
450
|
+
var i = typeof t == "string" ? { path: t } : t;
|
|
451
|
+
if (i._normalized)
|
|
452
|
+
return i;
|
|
453
|
+
if (i.name) {
|
|
454
|
+
i = S({}, t);
|
|
455
|
+
var s = i.params;
|
|
456
|
+
return s && typeof s == "object" && (i.params = S({}, s)), i;
|
|
457
|
+
}
|
|
458
|
+
if (!i.path && i.params && e) {
|
|
459
|
+
i = S({}, i), i._normalized = !0;
|
|
460
|
+
var o = S(S({}, e.params), i.params);
|
|
461
|
+
if (e.name)
|
|
462
|
+
i.name = e.name, i.params = o;
|
|
463
|
+
else if (e.matched.length) {
|
|
464
|
+
var a = e.matched[e.matched.length - 1].path;
|
|
465
|
+
i.path = Z(a, o, "path " + e.path);
|
|
466
|
+
} else
|
|
467
|
+
process.env.NODE_ENV !== "production" && P(!1, "relative params navigation requires a current route.");
|
|
468
|
+
return i;
|
|
469
|
+
}
|
|
470
|
+
var c = ar(i.path || ""), u = e && e.path || "/", d = c.path ? tt(c.path, u, r || i.append) : u, m = Yt(
|
|
471
|
+
c.query,
|
|
472
|
+
i.query,
|
|
473
|
+
n && n.options.parseQuery
|
|
474
|
+
), h = i.hash || c.hash;
|
|
475
|
+
return h && h.charAt(0) !== "#" && (h = "#" + h), {
|
|
476
|
+
_normalized: !0,
|
|
477
|
+
path: d,
|
|
478
|
+
query: m,
|
|
479
|
+
hash: h
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
var br = [String, Object], wr = [String, Array], Oe = function() {
|
|
483
|
+
}, Te, Ae, Ie, st = {
|
|
484
|
+
name: "RouterLink",
|
|
485
|
+
props: {
|
|
486
|
+
to: {
|
|
487
|
+
type: br,
|
|
488
|
+
required: !0
|
|
489
|
+
},
|
|
490
|
+
tag: {
|
|
491
|
+
type: String,
|
|
492
|
+
default: "a"
|
|
493
|
+
},
|
|
494
|
+
custom: Boolean,
|
|
495
|
+
exact: Boolean,
|
|
496
|
+
exactPath: Boolean,
|
|
497
|
+
append: Boolean,
|
|
498
|
+
replace: Boolean,
|
|
499
|
+
activeClass: String,
|
|
500
|
+
exactActiveClass: String,
|
|
501
|
+
ariaCurrentValue: {
|
|
502
|
+
type: String,
|
|
503
|
+
default: "page"
|
|
504
|
+
},
|
|
505
|
+
event: {
|
|
506
|
+
type: wr,
|
|
507
|
+
default: "click"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
render: function(e) {
|
|
511
|
+
var r = this, n = this.$router, i = this.$route, s = n.resolve(
|
|
512
|
+
this.to,
|
|
513
|
+
i,
|
|
514
|
+
this.append
|
|
515
|
+
), o = s.location, a = s.route, c = s.href, u = {}, d = n.options.linkActiveClass, m = n.options.linkExactActiveClass, h = d ?? "router-link-active", v = m ?? "router-link-exact-active", p = this.activeClass == null ? h : this.activeClass, l = this.exactActiveClass == null ? v : this.exactActiveClass, f = a.redirectedFrom ? te(null, Re(a.redirectedFrom), null, n) : a;
|
|
516
|
+
u[l] = Ye(i, f, this.exactPath), u[p] = this.exact || this.exactPath ? u[l] : nr(i, f);
|
|
517
|
+
var g = u[l] ? this.ariaCurrentValue : null, _ = function(le) {
|
|
518
|
+
Ve(le) && (r.replace ? n.replace(o, Oe) : n.push(o, Oe));
|
|
519
|
+
}, y = { click: Ve };
|
|
520
|
+
Array.isArray(this.event) ? this.event.forEach(function(le) {
|
|
521
|
+
y[le] = _;
|
|
522
|
+
}) : y[this.event] = _;
|
|
523
|
+
var w = { class: u }, R = !this.$scopedSlots.$hasNormal && this.$scopedSlots.default && this.$scopedSlots.default({
|
|
524
|
+
href: c,
|
|
525
|
+
route: a,
|
|
526
|
+
navigate: _,
|
|
527
|
+
isActive: u[p],
|
|
528
|
+
isExactActive: u[l]
|
|
529
|
+
});
|
|
530
|
+
if (R) {
|
|
531
|
+
if (process.env.NODE_ENV !== "production" && !this.custom && (!Te && P(!1, `In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:
|
|
532
|
+
<router-link v-slot="{ navigate, href }" custom></router-link>
|
|
533
|
+
`), Te = !0), R.length === 1)
|
|
534
|
+
return R[0];
|
|
535
|
+
if (R.length > 1 || !R.length)
|
|
536
|
+
return process.env.NODE_ENV !== "production" && P(
|
|
537
|
+
!1,
|
|
538
|
+
'<router-link> with to="' + this.to + `" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element.`
|
|
539
|
+
), R.length === 0 ? e() : e("span", {}, R);
|
|
540
|
+
}
|
|
541
|
+
if (process.env.NODE_ENV !== "production" && ("tag" in this.$options.propsData && !Ae && (P(
|
|
542
|
+
!1,
|
|
543
|
+
"<router-link>'s tag prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link."
|
|
544
|
+
), Ae = !0), "event" in this.$options.propsData && !Ie && (P(
|
|
545
|
+
!1,
|
|
546
|
+
"<router-link>'s event prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link."
|
|
547
|
+
), Ie = !0)), this.tag === "a")
|
|
548
|
+
w.on = y, w.attrs = { href: c, "aria-current": g };
|
|
549
|
+
else {
|
|
550
|
+
var C = ot(this.$slots.default);
|
|
551
|
+
if (C) {
|
|
552
|
+
C.isStatic = !1;
|
|
553
|
+
var E = C.data = S({}, C.data);
|
|
554
|
+
E.on = E.on || {};
|
|
555
|
+
for (var $ in E.on) {
|
|
556
|
+
var M = E.on[$];
|
|
557
|
+
$ in y && (E.on[$] = Array.isArray(M) ? M : [M]);
|
|
558
|
+
}
|
|
559
|
+
for (var H in y)
|
|
560
|
+
H in E.on ? E.on[H].push(y[H]) : E.on[H] = _;
|
|
561
|
+
var Se = C.data.attrs = S({}, C.data.attrs);
|
|
562
|
+
Se.href = c, Se["aria-current"] = g;
|
|
563
|
+
} else
|
|
564
|
+
w.on = y;
|
|
565
|
+
}
|
|
566
|
+
return e(this.tag, w, this.$slots.default);
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
function Ve(t) {
|
|
570
|
+
if (!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey) && !t.defaultPrevented && !(t.button !== void 0 && t.button !== 0)) {
|
|
571
|
+
if (t.currentTarget && t.currentTarget.getAttribute) {
|
|
572
|
+
var e = t.currentTarget.getAttribute("target");
|
|
573
|
+
if (/\b_blank\b/i.test(e))
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
return t.preventDefault && t.preventDefault(), !0;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
function ot(t) {
|
|
580
|
+
if (t) {
|
|
581
|
+
for (var e, r = 0; r < t.length; r++)
|
|
582
|
+
if (e = t[r], e.tag === "a" || e.children && (e = ot(e.children)))
|
|
583
|
+
return e;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
var ne;
|
|
587
|
+
function ie(t) {
|
|
588
|
+
if (!(ie.installed && ne === t)) {
|
|
589
|
+
ie.installed = !0, ne = t;
|
|
590
|
+
var e = function(i) {
|
|
591
|
+
return i !== void 0;
|
|
592
|
+
}, r = function(i, s) {
|
|
593
|
+
var o = i.$options._parentVnode;
|
|
594
|
+
e(o) && e(o = o.data) && e(o = o.registerRouteInstance) && o(i, s);
|
|
595
|
+
};
|
|
596
|
+
t.mixin({
|
|
597
|
+
beforeCreate: function() {
|
|
598
|
+
e(this.$options.router) ? (this._routerRoot = this, this._router = this.$options.router, this._router.init(this), t.util.defineReactive(this, "_route", this._router.history.current)) : this._routerRoot = this.$parent && this.$parent._routerRoot || this, r(this, this);
|
|
599
|
+
},
|
|
600
|
+
destroyed: function() {
|
|
601
|
+
r(this);
|
|
602
|
+
}
|
|
603
|
+
}), Object.defineProperty(t.prototype, "$router", {
|
|
604
|
+
get: function() {
|
|
605
|
+
return this._routerRoot._router;
|
|
606
|
+
}
|
|
607
|
+
}), Object.defineProperty(t.prototype, "$route", {
|
|
608
|
+
get: function() {
|
|
609
|
+
return this._routerRoot._route;
|
|
610
|
+
}
|
|
611
|
+
}), t.component("RouterView", sr), t.component("RouterLink", st);
|
|
612
|
+
var n = t.config.optionMergeStrategies;
|
|
613
|
+
n.beforeRouteEnter = n.beforeRouteLeave = n.beforeRouteUpdate = n.created;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
var W = typeof window < "u";
|
|
617
|
+
function G(t, e, r, n, i) {
|
|
618
|
+
var s = e || [], o = r || /* @__PURE__ */ Object.create(null), a = n || /* @__PURE__ */ Object.create(null);
|
|
619
|
+
t.forEach(function(h) {
|
|
620
|
+
de(s, o, a, h, i);
|
|
621
|
+
});
|
|
622
|
+
for (var c = 0, u = s.length; c < u; c++)
|
|
623
|
+
s[c] === "*" && (s.push(s.splice(c, 1)[0]), u--, c--);
|
|
624
|
+
if (process.env.NODE_ENV === "development") {
|
|
625
|
+
var d = s.filter(function(h) {
|
|
626
|
+
return h && h.charAt(0) !== "*" && h.charAt(0) !== "/";
|
|
627
|
+
});
|
|
628
|
+
if (d.length > 0) {
|
|
629
|
+
var m = d.map(function(h) {
|
|
630
|
+
return "- " + h;
|
|
631
|
+
}).join(`
|
|
632
|
+
`);
|
|
633
|
+
P(!1, `Non-nested routes must include a leading slash character. Fix the following routes:
|
|
634
|
+
` + m);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
return {
|
|
638
|
+
pathList: s,
|
|
639
|
+
pathMap: o,
|
|
640
|
+
nameMap: a
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
function de(t, e, r, n, i, s) {
|
|
644
|
+
var o = n.path, a = n.name;
|
|
645
|
+
process.env.NODE_ENV !== "production" && (I(o != null, '"path" is required in a route configuration.'), I(
|
|
646
|
+
typeof n.component != "string",
|
|
647
|
+
'route config "component" for path: ' + String(
|
|
648
|
+
o || a
|
|
649
|
+
) + " cannot be a string id. Use an actual component instead."
|
|
650
|
+
), P(
|
|
651
|
+
// eslint-disable-next-line no-control-regex
|
|
652
|
+
!/[^\u0000-\u007F]+/.test(o),
|
|
653
|
+
'Route with path "' + o + '" contains unencoded characters, make sure your path is correctly encoded before passing it to the router. Use encodeURI to encode static segments of your path.'
|
|
654
|
+
));
|
|
655
|
+
var c = n.pathToRegexpOptions || {}, u = Pr(o, i, c.strict);
|
|
656
|
+
typeof n.caseSensitive == "boolean" && (c.sensitive = n.caseSensitive);
|
|
657
|
+
var d = {
|
|
658
|
+
path: u,
|
|
659
|
+
regex: Rr(u, c),
|
|
660
|
+
components: n.components || { default: n.component },
|
|
661
|
+
alias: n.alias ? typeof n.alias == "string" ? [n.alias] : n.alias : [],
|
|
662
|
+
instances: {},
|
|
663
|
+
enteredCbs: {},
|
|
664
|
+
name: a,
|
|
665
|
+
parent: i,
|
|
666
|
+
matchAs: s,
|
|
667
|
+
redirect: n.redirect,
|
|
668
|
+
beforeEnter: n.beforeEnter,
|
|
669
|
+
meta: n.meta || {},
|
|
670
|
+
props: n.props == null ? {} : n.components ? n.props : { default: n.props }
|
|
671
|
+
};
|
|
672
|
+
if (n.children && (process.env.NODE_ENV !== "production" && n.name && !n.redirect && n.children.some(function(l) {
|
|
673
|
+
return /^\/?$/.test(l.path);
|
|
674
|
+
}) && P(
|
|
675
|
+
!1,
|
|
676
|
+
"Named Route '" + n.name + `' has a default child route. When navigating to this named route (:to="{name: '` + n.name + `'}"), the default child route will not be rendered. Remove the name from this route and use the name of the default child route for named links instead.`
|
|
677
|
+
), n.children.forEach(function(l) {
|
|
678
|
+
var f = s ? L(s + "/" + l.path) : void 0;
|
|
679
|
+
de(t, e, r, l, d, f);
|
|
680
|
+
})), e[d.path] || (t.push(d.path), e[d.path] = d), n.alias !== void 0)
|
|
681
|
+
for (var m = Array.isArray(n.alias) ? n.alias : [n.alias], h = 0; h < m.length; ++h) {
|
|
682
|
+
var v = m[h];
|
|
683
|
+
if (process.env.NODE_ENV !== "production" && v === o) {
|
|
684
|
+
P(
|
|
685
|
+
!1,
|
|
686
|
+
'Found an alias with the same value as the path: "' + o + '". You have to remove that alias. It will be ignored in development.'
|
|
687
|
+
);
|
|
688
|
+
continue;
|
|
689
|
+
}
|
|
690
|
+
var p = {
|
|
691
|
+
path: v,
|
|
692
|
+
children: n.children
|
|
693
|
+
};
|
|
694
|
+
de(
|
|
695
|
+
t,
|
|
696
|
+
e,
|
|
697
|
+
r,
|
|
698
|
+
p,
|
|
699
|
+
i,
|
|
700
|
+
d.path || "/"
|
|
701
|
+
// matchAs
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
a && (r[a] ? process.env.NODE_ENV !== "production" && !s && P(
|
|
705
|
+
!1,
|
|
706
|
+
'Duplicate named routes definition: { name: "' + a + '", path: "' + d.path + '" }'
|
|
707
|
+
) : r[a] = d);
|
|
708
|
+
}
|
|
709
|
+
function Rr(t, e) {
|
|
710
|
+
var r = q(t, [], e);
|
|
711
|
+
if (process.env.NODE_ENV !== "production") {
|
|
712
|
+
var n = /* @__PURE__ */ Object.create(null);
|
|
713
|
+
r.keys.forEach(function(i) {
|
|
714
|
+
P(
|
|
715
|
+
!n[i.name],
|
|
716
|
+
'Duplicate param keys in route with path: "' + t + '"'
|
|
717
|
+
), n[i.name] = !0;
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
return r;
|
|
721
|
+
}
|
|
722
|
+
function Pr(t, e, r) {
|
|
723
|
+
return r || (t = t.replace(/\/$/, "")), t[0] === "/" || e == null ? t : L(e.path + "/" + t);
|
|
724
|
+
}
|
|
725
|
+
function Cr(t, e) {
|
|
726
|
+
var r = G(t), n = r.pathList, i = r.pathMap, s = r.nameMap;
|
|
727
|
+
function o(v) {
|
|
728
|
+
G(v, n, i, s);
|
|
729
|
+
}
|
|
730
|
+
function a(v, p) {
|
|
731
|
+
var l = typeof v != "object" ? s[v] : void 0;
|
|
732
|
+
G([p || v], n, i, s, l), l && l.alias.length && G(
|
|
733
|
+
// $flow-disable-line route is defined if parent is
|
|
734
|
+
l.alias.map(function(f) {
|
|
735
|
+
return { path: f, children: [p] };
|
|
736
|
+
}),
|
|
737
|
+
n,
|
|
738
|
+
i,
|
|
739
|
+
s,
|
|
740
|
+
l
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
function c() {
|
|
744
|
+
return n.map(function(v) {
|
|
745
|
+
return i[v];
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
function u(v, p, l) {
|
|
749
|
+
var f = Re(v, p, !1, e), g = f.name;
|
|
750
|
+
if (g) {
|
|
751
|
+
var _ = s[g];
|
|
752
|
+
if (process.env.NODE_ENV !== "production" && P(_, "Route with name '" + g + "' does not exist"), !_)
|
|
753
|
+
return h(null, f);
|
|
754
|
+
var y = _.regex.keys.filter(function($) {
|
|
755
|
+
return !$.optional;
|
|
756
|
+
}).map(function($) {
|
|
757
|
+
return $.name;
|
|
758
|
+
});
|
|
759
|
+
if (typeof f.params != "object" && (f.params = {}), p && typeof p.params == "object")
|
|
760
|
+
for (var w in p.params)
|
|
761
|
+
!(w in f.params) && y.indexOf(w) > -1 && (f.params[w] = p.params[w]);
|
|
762
|
+
return f.path = Z(_.path, f.params, 'named route "' + g + '"'), h(_, f, l);
|
|
763
|
+
} else if (f.path) {
|
|
764
|
+
f.params = {};
|
|
765
|
+
for (var R = 0; R < n.length; R++) {
|
|
766
|
+
var C = n[R], E = i[C];
|
|
767
|
+
if (Er(E.regex, f.path, f.params))
|
|
768
|
+
return h(E, f, l);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
return h(null, f);
|
|
772
|
+
}
|
|
773
|
+
function d(v, p) {
|
|
774
|
+
var l = v.redirect, f = typeof l == "function" ? l(te(v, p, null, e)) : l;
|
|
775
|
+
if (typeof f == "string" && (f = { path: f }), !f || typeof f != "object")
|
|
776
|
+
return process.env.NODE_ENV !== "production" && P(
|
|
777
|
+
!1,
|
|
778
|
+
"invalid redirect option: " + JSON.stringify(f)
|
|
779
|
+
), h(null, p);
|
|
780
|
+
var g = f, _ = g.name, y = g.path, w = p.query, R = p.hash, C = p.params;
|
|
781
|
+
if (w = g.hasOwnProperty("query") ? g.query : w, R = g.hasOwnProperty("hash") ? g.hash : R, C = g.hasOwnProperty("params") ? g.params : C, _) {
|
|
782
|
+
var E = s[_];
|
|
783
|
+
return process.env.NODE_ENV !== "production" && I(E, 'redirect failed: named route "' + _ + '" not found.'), u({
|
|
784
|
+
_normalized: !0,
|
|
785
|
+
name: _,
|
|
786
|
+
query: w,
|
|
787
|
+
hash: R,
|
|
788
|
+
params: C
|
|
789
|
+
}, void 0, p);
|
|
790
|
+
} else if (y) {
|
|
791
|
+
var $ = kr(y, v), M = Z($, C, 'redirect route with path "' + $ + '"');
|
|
792
|
+
return u({
|
|
793
|
+
_normalized: !0,
|
|
794
|
+
path: M,
|
|
795
|
+
query: w,
|
|
796
|
+
hash: R
|
|
797
|
+
}, void 0, p);
|
|
798
|
+
} else
|
|
799
|
+
return process.env.NODE_ENV !== "production" && P(!1, "invalid redirect option: " + JSON.stringify(f)), h(null, p);
|
|
800
|
+
}
|
|
801
|
+
function m(v, p, l) {
|
|
802
|
+
var f = Z(l, p.params, 'aliased route with path "' + l + '"'), g = u({
|
|
803
|
+
_normalized: !0,
|
|
804
|
+
path: f
|
|
805
|
+
});
|
|
806
|
+
if (g) {
|
|
807
|
+
var _ = g.matched, y = _[_.length - 1];
|
|
808
|
+
return p.params = g.params, h(y, p);
|
|
809
|
+
}
|
|
810
|
+
return h(null, p);
|
|
811
|
+
}
|
|
812
|
+
function h(v, p, l) {
|
|
813
|
+
return v && v.redirect ? d(v, l || p) : v && v.matchAs ? m(v, p, v.matchAs) : te(v, p, l, e);
|
|
814
|
+
}
|
|
815
|
+
return {
|
|
816
|
+
match: u,
|
|
817
|
+
addRoute: a,
|
|
818
|
+
getRoutes: c,
|
|
819
|
+
addRoutes: o
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
function Er(t, e, r) {
|
|
823
|
+
var n = e.match(t);
|
|
824
|
+
if (n) {
|
|
825
|
+
if (!r)
|
|
826
|
+
return !0;
|
|
827
|
+
} else
|
|
828
|
+
return !1;
|
|
829
|
+
for (var i = 1, s = n.length; i < s; ++i) {
|
|
830
|
+
var o = t.keys[i - 1];
|
|
831
|
+
o && (r[o.name || "pathMatch"] = typeof n[i] == "string" ? he(n[i]) : n[i]);
|
|
832
|
+
}
|
|
833
|
+
return !0;
|
|
834
|
+
}
|
|
835
|
+
function kr(t, e) {
|
|
836
|
+
return tt(t, e.parent ? e.parent.path : "/", !0);
|
|
837
|
+
}
|
|
838
|
+
var Sr = W && window.performance && window.performance.now ? window.performance : Date;
|
|
839
|
+
function at() {
|
|
840
|
+
return Sr.now().toFixed(3);
|
|
841
|
+
}
|
|
842
|
+
var ct = at();
|
|
843
|
+
function ae() {
|
|
844
|
+
return ct;
|
|
845
|
+
}
|
|
846
|
+
function ut(t) {
|
|
847
|
+
return ct = t;
|
|
848
|
+
}
|
|
849
|
+
var lt = /* @__PURE__ */ Object.create(null);
|
|
850
|
+
function ft() {
|
|
851
|
+
"scrollRestoration" in window.history && (window.history.scrollRestoration = "manual");
|
|
852
|
+
var t = window.location.protocol + "//" + window.location.host, e = window.location.href.replace(t, ""), r = S({}, window.history.state);
|
|
853
|
+
return r.key = ae(), window.history.replaceState(r, "", e), window.addEventListener("popstate", je), function() {
|
|
854
|
+
window.removeEventListener("popstate", je);
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
function O(t, e, r, n) {
|
|
858
|
+
if (t.app) {
|
|
859
|
+
var i = t.options.scrollBehavior;
|
|
860
|
+
i && (process.env.NODE_ENV !== "production" && I(typeof i == "function", "scrollBehavior must be a function"), t.app.$nextTick(function() {
|
|
861
|
+
var s = xr(), o = i.call(
|
|
862
|
+
t,
|
|
863
|
+
e,
|
|
864
|
+
r,
|
|
865
|
+
n ? s : null
|
|
866
|
+
);
|
|
867
|
+
o && (typeof o.then == "function" ? o.then(function(a) {
|
|
868
|
+
Me(a, s);
|
|
869
|
+
}).catch(function(a) {
|
|
870
|
+
process.env.NODE_ENV !== "production" && I(!1, a.toString());
|
|
871
|
+
}) : Me(o, s));
|
|
872
|
+
}));
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function ht() {
|
|
876
|
+
var t = ae();
|
|
877
|
+
t && (lt[t] = {
|
|
878
|
+
x: window.pageXOffset,
|
|
879
|
+
y: window.pageYOffset
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
function je(t) {
|
|
883
|
+
ht(), t.state && t.state.key && ut(t.state.key);
|
|
884
|
+
}
|
|
885
|
+
function xr() {
|
|
886
|
+
var t = ae();
|
|
887
|
+
if (t)
|
|
888
|
+
return lt[t];
|
|
889
|
+
}
|
|
890
|
+
function $r(t, e) {
|
|
891
|
+
var r = document.documentElement, n = r.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
892
|
+
return {
|
|
893
|
+
x: i.left - n.left - e.x,
|
|
894
|
+
y: i.top - n.top - e.y
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
function Be(t) {
|
|
898
|
+
return B(t.x) || B(t.y);
|
|
899
|
+
}
|
|
900
|
+
function qe(t) {
|
|
901
|
+
return {
|
|
902
|
+
x: B(t.x) ? t.x : window.pageXOffset,
|
|
903
|
+
y: B(t.y) ? t.y : window.pageYOffset
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
function Nr(t) {
|
|
907
|
+
return {
|
|
908
|
+
x: B(t.x) ? t.x : 0,
|
|
909
|
+
y: B(t.y) ? t.y : 0
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
function B(t) {
|
|
913
|
+
return typeof t == "number";
|
|
914
|
+
}
|
|
915
|
+
var Lr = /^#\d/;
|
|
916
|
+
function Me(t, e) {
|
|
917
|
+
var r = typeof t == "object";
|
|
918
|
+
if (r && typeof t.selector == "string") {
|
|
919
|
+
var n = Lr.test(t.selector) ? document.getElementById(t.selector.slice(1)) : document.querySelector(t.selector);
|
|
920
|
+
if (n) {
|
|
921
|
+
var i = t.offset && typeof t.offset == "object" ? t.offset : {};
|
|
922
|
+
i = Nr(i), e = $r(n, i);
|
|
923
|
+
} else
|
|
924
|
+
Be(t) && (e = qe(t));
|
|
925
|
+
} else
|
|
926
|
+
r && Be(t) && (e = qe(t));
|
|
927
|
+
e && ("scrollBehavior" in document.documentElement.style ? window.scrollTo({
|
|
928
|
+
left: e.x,
|
|
929
|
+
top: e.y,
|
|
930
|
+
// $flow-disable-line
|
|
931
|
+
behavior: t.behavior
|
|
932
|
+
}) : window.scrollTo(e.x, e.y));
|
|
933
|
+
}
|
|
934
|
+
var T = W && function() {
|
|
935
|
+
var t = window.navigator.userAgent;
|
|
936
|
+
return (t.indexOf("Android 2.") !== -1 || t.indexOf("Android 4.0") !== -1) && t.indexOf("Mobile Safari") !== -1 && t.indexOf("Chrome") === -1 && t.indexOf("Windows Phone") === -1 ? !1 : window.history && typeof window.history.pushState == "function";
|
|
937
|
+
}();
|
|
938
|
+
function se(t, e) {
|
|
939
|
+
ht();
|
|
940
|
+
var r = window.history;
|
|
941
|
+
try {
|
|
942
|
+
if (e) {
|
|
943
|
+
var n = S({}, r.state);
|
|
944
|
+
n.key = ae(), r.replaceState(n, "", t);
|
|
945
|
+
} else
|
|
946
|
+
r.pushState({ key: ut(at()) }, "", t);
|
|
947
|
+
} catch {
|
|
948
|
+
window.location[e ? "replace" : "assign"](t);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
function ve(t) {
|
|
952
|
+
se(t, !0);
|
|
953
|
+
}
|
|
954
|
+
var V = {
|
|
955
|
+
redirected: 2,
|
|
956
|
+
aborted: 4,
|
|
957
|
+
cancelled: 8,
|
|
958
|
+
duplicated: 16
|
|
959
|
+
};
|
|
960
|
+
function Or(t, e) {
|
|
961
|
+
return ce(
|
|
962
|
+
t,
|
|
963
|
+
e,
|
|
964
|
+
V.redirected,
|
|
965
|
+
'Redirected when going from "' + t.fullPath + '" to "' + Vr(
|
|
966
|
+
e
|
|
967
|
+
) + '" via a navigation guard.'
|
|
968
|
+
);
|
|
969
|
+
}
|
|
970
|
+
function Tr(t, e) {
|
|
971
|
+
var r = ce(
|
|
972
|
+
t,
|
|
973
|
+
e,
|
|
974
|
+
V.duplicated,
|
|
975
|
+
'Avoided redundant navigation to current location: "' + t.fullPath + '".'
|
|
976
|
+
);
|
|
977
|
+
return r.name = "NavigationDuplicated", r;
|
|
978
|
+
}
|
|
979
|
+
function Ue(t, e) {
|
|
980
|
+
return ce(
|
|
981
|
+
t,
|
|
982
|
+
e,
|
|
983
|
+
V.cancelled,
|
|
984
|
+
'Navigation cancelled from "' + t.fullPath + '" to "' + e.fullPath + '" with a new navigation.'
|
|
985
|
+
);
|
|
986
|
+
}
|
|
987
|
+
function Ar(t, e) {
|
|
988
|
+
return ce(
|
|
989
|
+
t,
|
|
990
|
+
e,
|
|
991
|
+
V.aborted,
|
|
992
|
+
'Navigation aborted from "' + t.fullPath + '" to "' + e.fullPath + '" via a navigation guard.'
|
|
993
|
+
);
|
|
994
|
+
}
|
|
995
|
+
function ce(t, e, r, n) {
|
|
996
|
+
var i = new Error(n);
|
|
997
|
+
return i._isRouter = !0, i.from = t, i.to = e, i.type = r, i;
|
|
998
|
+
}
|
|
999
|
+
var Ir = ["params", "query", "hash"];
|
|
1000
|
+
function Vr(t) {
|
|
1001
|
+
if (typeof t == "string")
|
|
1002
|
+
return t;
|
|
1003
|
+
if ("path" in t)
|
|
1004
|
+
return t.path;
|
|
1005
|
+
var e = {};
|
|
1006
|
+
return Ir.forEach(function(r) {
|
|
1007
|
+
r in t && (e[r] = t[r]);
|
|
1008
|
+
}), JSON.stringify(e, null, 2);
|
|
1009
|
+
}
|
|
1010
|
+
function oe(t) {
|
|
1011
|
+
return Object.prototype.toString.call(t).indexOf("Error") > -1;
|
|
1012
|
+
}
|
|
1013
|
+
function ue(t, e) {
|
|
1014
|
+
return oe(t) && t._isRouter && (e == null || t.type === e);
|
|
1015
|
+
}
|
|
1016
|
+
function De(t, e, r) {
|
|
1017
|
+
var n = function(i) {
|
|
1018
|
+
i >= t.length ? r() : t[i] ? e(t[i], function() {
|
|
1019
|
+
n(i + 1);
|
|
1020
|
+
}) : n(i + 1);
|
|
1021
|
+
};
|
|
1022
|
+
n(0);
|
|
1023
|
+
}
|
|
1024
|
+
function jr(t) {
|
|
1025
|
+
return function(e, r, n) {
|
|
1026
|
+
var i = !1, s = 0, o = null;
|
|
1027
|
+
pt(t, function(a, c, u, d) {
|
|
1028
|
+
if (typeof a == "function" && a.cid === void 0) {
|
|
1029
|
+
i = !0, s++;
|
|
1030
|
+
var m = ze(function(l) {
|
|
1031
|
+
qr(l) && (l = l.default), a.resolved = typeof l == "function" ? l : ne.extend(l), u.components[d] = l, s--, s <= 0 && n();
|
|
1032
|
+
}), h = ze(function(l) {
|
|
1033
|
+
var f = "Failed to resolve async component " + d + ": " + l;
|
|
1034
|
+
process.env.NODE_ENV !== "production" && P(!1, f), o || (o = oe(l) ? l : new Error(f), n(o));
|
|
1035
|
+
}), v;
|
|
1036
|
+
try {
|
|
1037
|
+
v = a(m, h);
|
|
1038
|
+
} catch (l) {
|
|
1039
|
+
h(l);
|
|
1040
|
+
}
|
|
1041
|
+
if (v)
|
|
1042
|
+
if (typeof v.then == "function")
|
|
1043
|
+
v.then(m, h);
|
|
1044
|
+
else {
|
|
1045
|
+
var p = v.component;
|
|
1046
|
+
p && typeof p.then == "function" && p.then(m, h);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}), i || n();
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
function pt(t, e) {
|
|
1053
|
+
return dt(t.map(function(r) {
|
|
1054
|
+
return Object.keys(r.components).map(function(n) {
|
|
1055
|
+
return e(
|
|
1056
|
+
r.components[n],
|
|
1057
|
+
r.instances[n],
|
|
1058
|
+
r,
|
|
1059
|
+
n
|
|
1060
|
+
);
|
|
1061
|
+
});
|
|
1062
|
+
}));
|
|
1063
|
+
}
|
|
1064
|
+
function dt(t) {
|
|
1065
|
+
return Array.prototype.concat.apply([], t);
|
|
1066
|
+
}
|
|
1067
|
+
var Br = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
|
|
1068
|
+
function qr(t) {
|
|
1069
|
+
return t.__esModule || Br && t[Symbol.toStringTag] === "Module";
|
|
1070
|
+
}
|
|
1071
|
+
function ze(t) {
|
|
1072
|
+
var e = !1;
|
|
1073
|
+
return function() {
|
|
1074
|
+
for (var r = [], n = arguments.length; n--; )
|
|
1075
|
+
r[n] = arguments[n];
|
|
1076
|
+
if (!e)
|
|
1077
|
+
return e = !0, t.apply(this, r);
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
var x = function(e, r) {
|
|
1081
|
+
this.router = e, this.base = Mr(r), this.current = A, this.pending = null, this.ready = !1, this.readyCbs = [], this.readyErrorCbs = [], this.errorCbs = [], this.listeners = [];
|
|
1082
|
+
};
|
|
1083
|
+
x.prototype.listen = function(e) {
|
|
1084
|
+
this.cb = e;
|
|
1085
|
+
};
|
|
1086
|
+
x.prototype.onReady = function(e, r) {
|
|
1087
|
+
this.ready ? e() : (this.readyCbs.push(e), r && this.readyErrorCbs.push(r));
|
|
1088
|
+
};
|
|
1089
|
+
x.prototype.onError = function(e) {
|
|
1090
|
+
this.errorCbs.push(e);
|
|
1091
|
+
};
|
|
1092
|
+
x.prototype.transitionTo = function(e, r, n) {
|
|
1093
|
+
var i = this, s;
|
|
1094
|
+
try {
|
|
1095
|
+
s = this.router.match(e, this.current);
|
|
1096
|
+
} catch (a) {
|
|
1097
|
+
throw this.errorCbs.forEach(function(c) {
|
|
1098
|
+
c(a);
|
|
1099
|
+
}), a;
|
|
1100
|
+
}
|
|
1101
|
+
var o = this.current;
|
|
1102
|
+
this.confirmTransition(
|
|
1103
|
+
s,
|
|
1104
|
+
function() {
|
|
1105
|
+
i.updateRoute(s), r && r(s), i.ensureURL(), i.router.afterHooks.forEach(function(a) {
|
|
1106
|
+
a && a(s, o);
|
|
1107
|
+
}), i.ready || (i.ready = !0, i.readyCbs.forEach(function(a) {
|
|
1108
|
+
a(s);
|
|
1109
|
+
}));
|
|
1110
|
+
},
|
|
1111
|
+
function(a) {
|
|
1112
|
+
n && n(a), a && !i.ready && (!ue(a, V.redirected) || o !== A) && (i.ready = !0, i.readyErrorCbs.forEach(function(c) {
|
|
1113
|
+
c(a);
|
|
1114
|
+
}));
|
|
1115
|
+
}
|
|
1116
|
+
);
|
|
1117
|
+
};
|
|
1118
|
+
x.prototype.confirmTransition = function(e, r, n) {
|
|
1119
|
+
var i = this, s = this.current;
|
|
1120
|
+
this.pending = e;
|
|
1121
|
+
var o = function(l) {
|
|
1122
|
+
!ue(l) && oe(l) && (i.errorCbs.length ? i.errorCbs.forEach(function(f) {
|
|
1123
|
+
f(l);
|
|
1124
|
+
}) : (process.env.NODE_ENV !== "production" && P(!1, "uncaught error during route navigation:"), console.error(l))), n && n(l);
|
|
1125
|
+
}, a = e.matched.length - 1, c = s.matched.length - 1;
|
|
1126
|
+
if (Ye(e, s) && // in the case the route map has been dynamically appended to
|
|
1127
|
+
a === c && e.matched[a] === s.matched[c])
|
|
1128
|
+
return this.ensureURL(), e.hash && O(this.router, s, e, !1), o(Tr(s, e));
|
|
1129
|
+
var u = Ur(
|
|
1130
|
+
this.current.matched,
|
|
1131
|
+
e.matched
|
|
1132
|
+
), d = u.updated, m = u.deactivated, h = u.activated, v = [].concat(
|
|
1133
|
+
// in-component leave guards
|
|
1134
|
+
zr(m),
|
|
1135
|
+
// global before hooks
|
|
1136
|
+
this.router.beforeHooks,
|
|
1137
|
+
// in-component update hooks
|
|
1138
|
+
Fr(d),
|
|
1139
|
+
// in-config enter guards
|
|
1140
|
+
h.map(function(l) {
|
|
1141
|
+
return l.beforeEnter;
|
|
1142
|
+
}),
|
|
1143
|
+
// async components
|
|
1144
|
+
jr(h)
|
|
1145
|
+
), p = function(l, f) {
|
|
1146
|
+
if (i.pending !== e)
|
|
1147
|
+
return o(Ue(s, e));
|
|
1148
|
+
try {
|
|
1149
|
+
l(e, s, function(g) {
|
|
1150
|
+
g === !1 ? (i.ensureURL(!0), o(Ar(s, e))) : oe(g) ? (i.ensureURL(!0), o(g)) : typeof g == "string" || typeof g == "object" && (typeof g.path == "string" || typeof g.name == "string") ? (o(Or(s, e)), typeof g == "object" && g.replace ? i.replace(g) : i.push(g)) : f(g);
|
|
1151
|
+
});
|
|
1152
|
+
} catch (g) {
|
|
1153
|
+
o(g);
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
De(v, p, function() {
|
|
1157
|
+
var l = Wr(h), f = l.concat(i.router.resolveHooks);
|
|
1158
|
+
De(f, p, function() {
|
|
1159
|
+
if (i.pending !== e)
|
|
1160
|
+
return o(Ue(s, e));
|
|
1161
|
+
i.pending = null, r(e), i.router.app && i.router.app.$nextTick(function() {
|
|
1162
|
+
et(e);
|
|
1163
|
+
});
|
|
1164
|
+
});
|
|
1165
|
+
});
|
|
1166
|
+
};
|
|
1167
|
+
x.prototype.updateRoute = function(e) {
|
|
1168
|
+
this.current = e, this.cb && this.cb(e);
|
|
1169
|
+
};
|
|
1170
|
+
x.prototype.setupListeners = function() {
|
|
1171
|
+
};
|
|
1172
|
+
x.prototype.teardown = function() {
|
|
1173
|
+
this.listeners.forEach(function(e) {
|
|
1174
|
+
e();
|
|
1175
|
+
}), this.listeners = [], this.current = A, this.pending = null;
|
|
1176
|
+
};
|
|
1177
|
+
function Mr(t) {
|
|
1178
|
+
if (!t)
|
|
1179
|
+
if (W) {
|
|
1180
|
+
var e = document.querySelector("base");
|
|
1181
|
+
t = e && e.getAttribute("href") || "/", t = t.replace(/^https?:\/\/[^\/]+/, "");
|
|
1182
|
+
} else
|
|
1183
|
+
t = "/";
|
|
1184
|
+
return t.charAt(0) !== "/" && (t = "/" + t), t.replace(/\/$/, "");
|
|
1185
|
+
}
|
|
1186
|
+
function Ur(t, e) {
|
|
1187
|
+
var r, n = Math.max(t.length, e.length);
|
|
1188
|
+
for (r = 0; r < n && t[r] === e[r]; r++)
|
|
1189
|
+
;
|
|
1190
|
+
return {
|
|
1191
|
+
updated: e.slice(0, r),
|
|
1192
|
+
activated: e.slice(r),
|
|
1193
|
+
deactivated: t.slice(r)
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
function Pe(t, e, r, n) {
|
|
1197
|
+
var i = pt(t, function(s, o, a, c) {
|
|
1198
|
+
var u = Dr(s, e);
|
|
1199
|
+
if (u)
|
|
1200
|
+
return Array.isArray(u) ? u.map(function(d) {
|
|
1201
|
+
return r(d, o, a, c);
|
|
1202
|
+
}) : r(u, o, a, c);
|
|
1203
|
+
});
|
|
1204
|
+
return dt(n ? i.reverse() : i);
|
|
1205
|
+
}
|
|
1206
|
+
function Dr(t, e) {
|
|
1207
|
+
return typeof t != "function" && (t = ne.extend(t)), t.options[e];
|
|
1208
|
+
}
|
|
1209
|
+
function zr(t) {
|
|
1210
|
+
return Pe(t, "beforeRouteLeave", vt, !0);
|
|
1211
|
+
}
|
|
1212
|
+
function Fr(t) {
|
|
1213
|
+
return Pe(t, "beforeRouteUpdate", vt);
|
|
1214
|
+
}
|
|
1215
|
+
function vt(t, e) {
|
|
1216
|
+
if (e)
|
|
1217
|
+
return function() {
|
|
1218
|
+
return t.apply(e, arguments);
|
|
1219
|
+
};
|
|
1220
|
+
}
|
|
1221
|
+
function Wr(t) {
|
|
1222
|
+
return Pe(
|
|
1223
|
+
t,
|
|
1224
|
+
"beforeRouteEnter",
|
|
1225
|
+
function(e, r, n, i) {
|
|
1226
|
+
return Hr(e, n, i);
|
|
1227
|
+
}
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1230
|
+
function Hr(t, e, r) {
|
|
1231
|
+
return function(i, s, o) {
|
|
1232
|
+
return t(i, s, function(a) {
|
|
1233
|
+
typeof a == "function" && (e.enteredCbs[r] || (e.enteredCbs[r] = []), e.enteredCbs[r].push(a)), o(a);
|
|
1234
|
+
});
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
var mt = /* @__PURE__ */ function(t) {
|
|
1238
|
+
function e(r, n) {
|
|
1239
|
+
t.call(this, r, n), this._startLocation = D(this.base);
|
|
1240
|
+
}
|
|
1241
|
+
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.setupListeners = function() {
|
|
1242
|
+
var n = this;
|
|
1243
|
+
if (!(this.listeners.length > 0)) {
|
|
1244
|
+
var i = this.router, s = i.options.scrollBehavior, o = T && s;
|
|
1245
|
+
o && this.listeners.push(ft());
|
|
1246
|
+
var a = function() {
|
|
1247
|
+
var c = n.current, u = D(n.base);
|
|
1248
|
+
n.current === A && u === n._startLocation || n.transitionTo(u, function(d) {
|
|
1249
|
+
o && O(i, d, c, !0);
|
|
1250
|
+
});
|
|
1251
|
+
};
|
|
1252
|
+
window.addEventListener("popstate", a), this.listeners.push(function() {
|
|
1253
|
+
window.removeEventListener("popstate", a);
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
}, e.prototype.go = function(n) {
|
|
1257
|
+
window.history.go(n);
|
|
1258
|
+
}, e.prototype.push = function(n, i, s) {
|
|
1259
|
+
var o = this, a = this, c = a.current;
|
|
1260
|
+
this.transitionTo(n, function(u) {
|
|
1261
|
+
se(L(o.base + u.fullPath)), O(o.router, u, c, !1), i && i(u);
|
|
1262
|
+
}, s);
|
|
1263
|
+
}, e.prototype.replace = function(n, i, s) {
|
|
1264
|
+
var o = this, a = this, c = a.current;
|
|
1265
|
+
this.transitionTo(n, function(u) {
|
|
1266
|
+
ve(L(o.base + u.fullPath)), O(o.router, u, c, !1), i && i(u);
|
|
1267
|
+
}, s);
|
|
1268
|
+
}, e.prototype.ensureURL = function(n) {
|
|
1269
|
+
if (D(this.base) !== this.current.fullPath) {
|
|
1270
|
+
var i = L(this.base + this.current.fullPath);
|
|
1271
|
+
n ? se(i) : ve(i);
|
|
1272
|
+
}
|
|
1273
|
+
}, e.prototype.getCurrentLocation = function() {
|
|
1274
|
+
return D(this.base);
|
|
1275
|
+
}, e;
|
|
1276
|
+
}(x);
|
|
1277
|
+
function D(t) {
|
|
1278
|
+
var e = window.location.pathname, r = e.toLowerCase(), n = t.toLowerCase();
|
|
1279
|
+
return t && (r === n || r.indexOf(L(n + "/")) === 0) && (e = e.slice(t.length)), (e || "/") + window.location.search + window.location.hash;
|
|
1280
|
+
}
|
|
1281
|
+
var gt = /* @__PURE__ */ function(t) {
|
|
1282
|
+
function e(r, n, i) {
|
|
1283
|
+
t.call(this, r, n), !(i && Gr(this.base)) && Fe();
|
|
1284
|
+
}
|
|
1285
|
+
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.setupListeners = function() {
|
|
1286
|
+
var n = this;
|
|
1287
|
+
if (!(this.listeners.length > 0)) {
|
|
1288
|
+
var i = this.router, s = i.options.scrollBehavior, o = T && s;
|
|
1289
|
+
o && this.listeners.push(ft());
|
|
1290
|
+
var a = function() {
|
|
1291
|
+
var u = n.current;
|
|
1292
|
+
Fe() && n.transitionTo(J(), function(d) {
|
|
1293
|
+
o && O(n.router, d, u, !0), T || X(d.fullPath);
|
|
1294
|
+
});
|
|
1295
|
+
}, c = T ? "popstate" : "hashchange";
|
|
1296
|
+
window.addEventListener(
|
|
1297
|
+
c,
|
|
1298
|
+
a
|
|
1299
|
+
), this.listeners.push(function() {
|
|
1300
|
+
window.removeEventListener(c, a);
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
}, e.prototype.push = function(n, i, s) {
|
|
1304
|
+
var o = this, a = this, c = a.current;
|
|
1305
|
+
this.transitionTo(
|
|
1306
|
+
n,
|
|
1307
|
+
function(u) {
|
|
1308
|
+
We(u.fullPath), O(o.router, u, c, !1), i && i(u);
|
|
1309
|
+
},
|
|
1310
|
+
s
|
|
1311
|
+
);
|
|
1312
|
+
}, e.prototype.replace = function(n, i, s) {
|
|
1313
|
+
var o = this, a = this, c = a.current;
|
|
1314
|
+
this.transitionTo(
|
|
1315
|
+
n,
|
|
1316
|
+
function(u) {
|
|
1317
|
+
X(u.fullPath), O(o.router, u, c, !1), i && i(u);
|
|
1318
|
+
},
|
|
1319
|
+
s
|
|
1320
|
+
);
|
|
1321
|
+
}, e.prototype.go = function(n) {
|
|
1322
|
+
window.history.go(n);
|
|
1323
|
+
}, e.prototype.ensureURL = function(n) {
|
|
1324
|
+
var i = this.current.fullPath;
|
|
1325
|
+
J() !== i && (n ? We(i) : X(i));
|
|
1326
|
+
}, e.prototype.getCurrentLocation = function() {
|
|
1327
|
+
return J();
|
|
1328
|
+
}, e;
|
|
1329
|
+
}(x);
|
|
1330
|
+
function Gr(t) {
|
|
1331
|
+
var e = D(t);
|
|
1332
|
+
if (!/^\/#/.test(e))
|
|
1333
|
+
return window.location.replace(L(t + "/#" + e)), !0;
|
|
1334
|
+
}
|
|
1335
|
+
function Fe() {
|
|
1336
|
+
var t = J();
|
|
1337
|
+
return t.charAt(0) === "/" ? !0 : (X("/" + t), !1);
|
|
1338
|
+
}
|
|
1339
|
+
function J() {
|
|
1340
|
+
var t = window.location.href, e = t.indexOf("#");
|
|
1341
|
+
return e < 0 ? "" : (t = t.slice(e + 1), t);
|
|
1342
|
+
}
|
|
1343
|
+
function me(t) {
|
|
1344
|
+
var e = window.location.href, r = e.indexOf("#"), n = r >= 0 ? e.slice(0, r) : e;
|
|
1345
|
+
return n + "#" + t;
|
|
1346
|
+
}
|
|
1347
|
+
function We(t) {
|
|
1348
|
+
T ? se(me(t)) : window.location.hash = t;
|
|
1349
|
+
}
|
|
1350
|
+
function X(t) {
|
|
1351
|
+
T ? ve(me(t)) : window.location.replace(me(t));
|
|
1352
|
+
}
|
|
1353
|
+
var Qr = /* @__PURE__ */ function(t) {
|
|
1354
|
+
function e(r, n) {
|
|
1355
|
+
t.call(this, r, n), this.stack = [], this.index = -1;
|
|
1356
|
+
}
|
|
1357
|
+
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.push = function(n, i, s) {
|
|
1358
|
+
var o = this;
|
|
1359
|
+
this.transitionTo(
|
|
1360
|
+
n,
|
|
1361
|
+
function(a) {
|
|
1362
|
+
o.stack = o.stack.slice(0, o.index + 1).concat(a), o.index++, i && i(a);
|
|
1363
|
+
},
|
|
1364
|
+
s
|
|
1365
|
+
);
|
|
1366
|
+
}, e.prototype.replace = function(n, i, s) {
|
|
1367
|
+
var o = this;
|
|
1368
|
+
this.transitionTo(
|
|
1369
|
+
n,
|
|
1370
|
+
function(a) {
|
|
1371
|
+
o.stack = o.stack.slice(0, o.index).concat(a), i && i(a);
|
|
1372
|
+
},
|
|
1373
|
+
s
|
|
1374
|
+
);
|
|
1375
|
+
}, e.prototype.go = function(n) {
|
|
1376
|
+
var i = this, s = this.index + n;
|
|
1377
|
+
if (!(s < 0 || s >= this.stack.length)) {
|
|
1378
|
+
var o = this.stack[s];
|
|
1379
|
+
this.confirmTransition(
|
|
1380
|
+
o,
|
|
1381
|
+
function() {
|
|
1382
|
+
var a = i.current;
|
|
1383
|
+
i.index = s, i.updateRoute(o), i.router.afterHooks.forEach(function(c) {
|
|
1384
|
+
c && c(o, a);
|
|
1385
|
+
});
|
|
1386
|
+
},
|
|
1387
|
+
function(a) {
|
|
1388
|
+
ue(a, V.duplicated) && (i.index = s);
|
|
1389
|
+
}
|
|
1390
|
+
);
|
|
1391
|
+
}
|
|
1392
|
+
}, e.prototype.getCurrentLocation = function() {
|
|
1393
|
+
var n = this.stack[this.stack.length - 1];
|
|
1394
|
+
return n ? n.fullPath : "/";
|
|
1395
|
+
}, e.prototype.ensureURL = function() {
|
|
1396
|
+
}, e;
|
|
1397
|
+
}(x), b = function t(e) {
|
|
1398
|
+
e === void 0 && (e = {}), process.env.NODE_ENV !== "production" && P(this instanceof t, "Router must be called with the new operator."), this.app = null, this.apps = [], this.options = e, this.beforeHooks = [], this.resolveHooks = [], this.afterHooks = [], this.matcher = Cr(e.routes || [], this);
|
|
1399
|
+
var r = e.mode || "hash";
|
|
1400
|
+
switch (this.fallback = r === "history" && !T && e.fallback !== !1, this.fallback && (r = "hash"), W || (r = "abstract"), this.mode = r, r) {
|
|
1401
|
+
case "history":
|
|
1402
|
+
this.history = new mt(this, e.base);
|
|
1403
|
+
break;
|
|
1404
|
+
case "hash":
|
|
1405
|
+
this.history = new gt(this, e.base, this.fallback);
|
|
1406
|
+
break;
|
|
1407
|
+
case "abstract":
|
|
1408
|
+
this.history = new Qr(this, e.base);
|
|
1409
|
+
break;
|
|
1410
|
+
default:
|
|
1411
|
+
process.env.NODE_ENV !== "production" && I(!1, "invalid mode: " + r);
|
|
1412
|
+
}
|
|
1413
|
+
}, yt = { currentRoute: { configurable: !0 } };
|
|
1414
|
+
b.prototype.match = function(e, r, n) {
|
|
1415
|
+
return this.matcher.match(e, r, n);
|
|
1416
|
+
};
|
|
1417
|
+
yt.currentRoute.get = function() {
|
|
1418
|
+
return this.history && this.history.current;
|
|
1419
|
+
};
|
|
1420
|
+
b.prototype.init = function(e) {
|
|
1421
|
+
var r = this;
|
|
1422
|
+
if (process.env.NODE_ENV !== "production" && I(
|
|
1423
|
+
ie.installed,
|
|
1424
|
+
"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."
|
|
1425
|
+
), this.apps.push(e), e.$once("hook:destroyed", function() {
|
|
1426
|
+
var o = r.apps.indexOf(e);
|
|
1427
|
+
o > -1 && r.apps.splice(o, 1), r.app === e && (r.app = r.apps[0] || null), r.app || r.history.teardown();
|
|
1428
|
+
}), !this.app) {
|
|
1429
|
+
this.app = e;
|
|
1430
|
+
var n = this.history;
|
|
1431
|
+
if (n instanceof mt || n instanceof gt) {
|
|
1432
|
+
var i = function(o) {
|
|
1433
|
+
var a = n.current, c = r.options.scrollBehavior, u = T && c;
|
|
1434
|
+
u && "fullPath" in o && O(r, o, a, !1);
|
|
1435
|
+
}, s = function(o) {
|
|
1436
|
+
n.setupListeners(), i(o);
|
|
1437
|
+
};
|
|
1438
|
+
n.transitionTo(
|
|
1439
|
+
n.getCurrentLocation(),
|
|
1440
|
+
s,
|
|
1441
|
+
s
|
|
1442
|
+
);
|
|
1443
|
+
}
|
|
1444
|
+
n.listen(function(o) {
|
|
1445
|
+
r.apps.forEach(function(a) {
|
|
1446
|
+
a._route = o;
|
|
1447
|
+
});
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
};
|
|
1451
|
+
b.prototype.beforeEach = function(e) {
|
|
1452
|
+
return Ce(this.beforeHooks, e);
|
|
1453
|
+
};
|
|
1454
|
+
b.prototype.beforeResolve = function(e) {
|
|
1455
|
+
return Ce(this.resolveHooks, e);
|
|
1456
|
+
};
|
|
1457
|
+
b.prototype.afterEach = function(e) {
|
|
1458
|
+
return Ce(this.afterHooks, e);
|
|
1459
|
+
};
|
|
1460
|
+
b.prototype.onReady = function(e, r) {
|
|
1461
|
+
this.history.onReady(e, r);
|
|
1462
|
+
};
|
|
1463
|
+
b.prototype.onError = function(e) {
|
|
1464
|
+
this.history.onError(e);
|
|
1465
|
+
};
|
|
1466
|
+
b.prototype.push = function(e, r, n) {
|
|
1467
|
+
var i = this;
|
|
1468
|
+
if (!r && !n && typeof Promise < "u")
|
|
1469
|
+
return new Promise(function(s, o) {
|
|
1470
|
+
i.history.push(e, s, o);
|
|
1471
|
+
});
|
|
1472
|
+
this.history.push(e, r, n);
|
|
1473
|
+
};
|
|
1474
|
+
b.prototype.replace = function(e, r, n) {
|
|
1475
|
+
var i = this;
|
|
1476
|
+
if (!r && !n && typeof Promise < "u")
|
|
1477
|
+
return new Promise(function(s, o) {
|
|
1478
|
+
i.history.replace(e, s, o);
|
|
1479
|
+
});
|
|
1480
|
+
this.history.replace(e, r, n);
|
|
1481
|
+
};
|
|
1482
|
+
b.prototype.go = function(e) {
|
|
1483
|
+
this.history.go(e);
|
|
1484
|
+
};
|
|
1485
|
+
b.prototype.back = function() {
|
|
1486
|
+
this.go(-1);
|
|
1487
|
+
};
|
|
1488
|
+
b.prototype.forward = function() {
|
|
1489
|
+
this.go(1);
|
|
1490
|
+
};
|
|
1491
|
+
b.prototype.getMatchedComponents = function(e) {
|
|
1492
|
+
var r = e ? e.matched ? e : this.resolve(e).route : this.currentRoute;
|
|
1493
|
+
return r ? [].concat.apply(
|
|
1494
|
+
[],
|
|
1495
|
+
r.matched.map(function(n) {
|
|
1496
|
+
return Object.keys(n.components).map(function(i) {
|
|
1497
|
+
return n.components[i];
|
|
1498
|
+
});
|
|
1499
|
+
})
|
|
1500
|
+
) : [];
|
|
1501
|
+
};
|
|
1502
|
+
b.prototype.resolve = function(e, r, n) {
|
|
1503
|
+
r = r || this.history.current;
|
|
1504
|
+
var i = Re(e, r, n, this), s = this.match(i, r), o = s.redirectedFrom || s.fullPath, a = this.history.base, c = Kr(a, o, this.mode);
|
|
1505
|
+
return {
|
|
1506
|
+
location: i,
|
|
1507
|
+
route: s,
|
|
1508
|
+
href: c,
|
|
1509
|
+
// for backwards compat
|
|
1510
|
+
normalizedTo: i,
|
|
1511
|
+
resolved: s
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
b.prototype.getRoutes = function() {
|
|
1515
|
+
return this.matcher.getRoutes();
|
|
1516
|
+
};
|
|
1517
|
+
b.prototype.addRoute = function(e, r) {
|
|
1518
|
+
this.matcher.addRoute(e, r), this.history.current !== A && this.history.transitionTo(this.history.getCurrentLocation());
|
|
1519
|
+
};
|
|
1520
|
+
b.prototype.addRoutes = function(e) {
|
|
1521
|
+
process.env.NODE_ENV !== "production" && P(!1, "router.addRoutes() is deprecated and has been removed in Vue Router 4. Use router.addRoute() instead."), this.matcher.addRoutes(e), this.history.current !== A && this.history.transitionTo(this.history.getCurrentLocation());
|
|
1522
|
+
};
|
|
1523
|
+
Object.defineProperties(b.prototype, yt);
|
|
1524
|
+
function Ce(t, e) {
|
|
1525
|
+
return t.push(e), function() {
|
|
1526
|
+
var r = t.indexOf(e);
|
|
1527
|
+
r > -1 && t.splice(r, 1);
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
function Kr(t, e, r) {
|
|
1531
|
+
var n = r === "hash" ? "#" + e : e;
|
|
1532
|
+
return t ? L(t + "/" + n) : n;
|
|
1533
|
+
}
|
|
1534
|
+
b.install = ie;
|
|
1535
|
+
b.version = "3.6.5";
|
|
1536
|
+
b.isNavigationFailure = ue;
|
|
1537
|
+
b.NavigationFailureType = V;
|
|
1538
|
+
b.START_LOCATION = A;
|
|
1539
|
+
W && window.Vue && window.Vue.use(b);
|
|
1540
|
+
const vi = /(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig, He = /(\s|\(|^)((https?:\/\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/ig, Zr = {
|
|
1541
|
+
name: "NcLink",
|
|
1542
|
+
props: {
|
|
1543
|
+
href: {
|
|
1544
|
+
type: String,
|
|
1545
|
+
required: !0
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
render(t) {
|
|
1549
|
+
return t("a", {
|
|
1550
|
+
attrs: {
|
|
1551
|
+
href: this.href,
|
|
1552
|
+
rel: "noopener noreferrer",
|
|
1553
|
+
target: "_blank",
|
|
1554
|
+
class: "rich-text--external-link"
|
|
1555
|
+
}
|
|
1556
|
+
}, [this.href.trim()]);
|
|
1557
|
+
}
|
|
1558
|
+
}, mi = function({ autolink: t, useMarkdown: e, useExtendedMarkdown: r }) {
|
|
1559
|
+
return function(n) {
|
|
1560
|
+
r || !e || !t || Bt(n, (i) => i.type === "text", (i, s, o) => {
|
|
1561
|
+
let a = Jr(i.value);
|
|
1562
|
+
return a = a.map((c) => typeof c == "string" ? fe("text", c) : fe("link", {
|
|
1563
|
+
url: c.props.href
|
|
1564
|
+
}, [fe("text", c.props.href)])).filter((c) => c), o.children.splice(s, 1, ...a.flat()), [qt, s + a.flat().length];
|
|
1565
|
+
});
|
|
1566
|
+
};
|
|
1567
|
+
}, Jr = (t) => {
|
|
1568
|
+
let e = He.exec(t);
|
|
1569
|
+
const r = [];
|
|
1570
|
+
let n = 0;
|
|
1571
|
+
for (; e !== null; ) {
|
|
1572
|
+
let s = e[2], o, a = t.substring(n, e.index + e[1].length);
|
|
1573
|
+
s[0] === " " && (a += s[0], s = s.substring(1).trim());
|
|
1574
|
+
const c = s[s.length - 1];
|
|
1575
|
+
(c === "." || c === "," || c === ";" || e[0][0] === "(" && c === ")") && (s = s.substring(0, s.length - 1), o = c), r.push(a), r.push({ component: Zr, props: { href: s } }), o && r.push(o), n = e.index + e[0].length, e = He.exec(t);
|
|
1576
|
+
}
|
|
1577
|
+
r.push(t.substring(n));
|
|
1578
|
+
const i = r.map((s) => typeof s == "string" ? s : s.props.href).join("");
|
|
1579
|
+
return t === i ? r : (console.error("Failed to reassemble the chunked text: " + t), t);
|
|
1580
|
+
}, Xr = (t, e) => {
|
|
1581
|
+
if (!t || !e.includes(Vt()))
|
|
1582
|
+
return null;
|
|
1583
|
+
const r = t.getRoutes().map((n) => new RegExp(n.regex.source.slice(1, -1), n.regex.flags));
|
|
1584
|
+
for (const n of r) {
|
|
1585
|
+
const i = e.search(n);
|
|
1586
|
+
if (i !== -1)
|
|
1587
|
+
return e.slice(i);
|
|
1588
|
+
}
|
|
1589
|
+
}, Yr = {
|
|
1590
|
+
name: "NcReferenceWidget",
|
|
1591
|
+
props: {
|
|
1592
|
+
reference: {
|
|
1593
|
+
type: Object,
|
|
1594
|
+
required: !0
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
data() {
|
|
1598
|
+
return {
|
|
1599
|
+
compact: 3
|
|
1600
|
+
};
|
|
1601
|
+
},
|
|
1602
|
+
computed: {
|
|
1603
|
+
hasCustomWidget() {
|
|
1604
|
+
return Pt(this.reference.richObjectType);
|
|
1605
|
+
},
|
|
1606
|
+
noAccess() {
|
|
1607
|
+
return this.reference && !this.reference.accessible;
|
|
1608
|
+
},
|
|
1609
|
+
descriptionStyle() {
|
|
1610
|
+
if (this.compact === 0)
|
|
1611
|
+
return {
|
|
1612
|
+
display: "none"
|
|
1613
|
+
};
|
|
1614
|
+
const t = this.compact < 4 ? this.compact : 3;
|
|
1615
|
+
return {
|
|
1616
|
+
lineClamp: t,
|
|
1617
|
+
webkitLineClamp: t
|
|
1618
|
+
};
|
|
1619
|
+
},
|
|
1620
|
+
compactLink() {
|
|
1621
|
+
const t = this.reference.openGraphObject.link;
|
|
1622
|
+
return t ? t.startsWith("https://") ? t.substring(8) : t.startsWith("http://") ? t.substring(7) : t : "";
|
|
1623
|
+
},
|
|
1624
|
+
route() {
|
|
1625
|
+
return Xr(this.$router, this.reference.openGraphObject.link);
|
|
1626
|
+
},
|
|
1627
|
+
referenceWidgetLinkComponent() {
|
|
1628
|
+
return this.route ? st : "a";
|
|
1629
|
+
},
|
|
1630
|
+
referenceWidgetLinkProps() {
|
|
1631
|
+
return this.route ? { to: this.route } : { href: this.reference.openGraphObject.link, target: "_blank" };
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
mounted() {
|
|
1635
|
+
this.renderWidget(), Mt(this.$el, (t) => {
|
|
1636
|
+
t[0].contentRect.width < 450 ? this.compact = 0 : t[0].contentRect.width < 550 ? this.compact = 1 : t[0].contentRect.width < 650 ? this.compact = 2 : this.compact = 3;
|
|
1637
|
+
});
|
|
1638
|
+
},
|
|
1639
|
+
beforeDestroy() {
|
|
1640
|
+
Ct(this.reference.richObjectType, this.$el);
|
|
1641
|
+
},
|
|
1642
|
+
methods: {
|
|
1643
|
+
renderWidget() {
|
|
1644
|
+
this.$refs.customWidget && (this.$refs.customWidget.innerHTML = ""), this?.reference?.richObjectType !== "open-graph" && this.$nextTick(() => {
|
|
1645
|
+
Et(this.$refs.customWidget, this.reference);
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
var en = function() {
|
|
1651
|
+
var e = this, r = e._self._c;
|
|
1652
|
+
return r("div", [e.reference && e.hasCustomWidget ? r("div", { staticClass: "widget-custom" }, [r("div", { ref: "customWidget" })]) : !e.noAccess && e.reference && e.reference.openGraphObject && !e.hasCustomWidget ? r(e.referenceWidgetLinkComponent, e._b({ tag: "component", staticClass: "widget-default", attrs: { rel: "noopener noreferrer" } }, "component", e.referenceWidgetLinkProps, !1), [e.reference.openGraphObject.thumb ? r("img", { staticClass: "widget-default--image", attrs: { src: e.reference.openGraphObject.thumb } }) : e._e(), r("div", { staticClass: "widget-default--details" }, [r("p", { staticClass: "widget-default--name" }, [e._v(e._s(e.reference.openGraphObject.name))]), r("p", { staticClass: "widget-default--description", style: e.descriptionStyle }, [e._v(e._s(e.reference.openGraphObject.description))]), r("p", { staticClass: "widget-default--link" }, [e._v(e._s(e.compactLink))])])]) : e._e()], 1);
|
|
1653
|
+
}, tn = [], rn = /* @__PURE__ */ N(
|
|
1654
|
+
Yr,
|
|
1655
|
+
en,
|
|
1656
|
+
tn,
|
|
1657
|
+
!1,
|
|
1658
|
+
null,
|
|
1659
|
+
"38b1d56a",
|
|
1660
|
+
null,
|
|
1661
|
+
null
|
|
1662
|
+
);
|
|
1663
|
+
const nn = rn.exports, sn = {
|
|
1664
|
+
name: "NcCustomPickerElement",
|
|
1665
|
+
props: {
|
|
1666
|
+
/**
|
|
1667
|
+
* The reference provider
|
|
1668
|
+
*/
|
|
1669
|
+
provider: {
|
|
1670
|
+
type: Object,
|
|
1671
|
+
required: !0
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
emits: [
|
|
1675
|
+
"cancel",
|
|
1676
|
+
"submit"
|
|
1677
|
+
],
|
|
1678
|
+
data() {
|
|
1679
|
+
return {
|
|
1680
|
+
isRegistered: z(this.provider.id),
|
|
1681
|
+
renderResult: null
|
|
1682
|
+
};
|
|
1683
|
+
},
|
|
1684
|
+
mounted() {
|
|
1685
|
+
this.isRegistered && this.renderElement();
|
|
1686
|
+
},
|
|
1687
|
+
beforeDestroy() {
|
|
1688
|
+
this.isRegistered && kt(this.provider.id, this.$el, this.renderResult);
|
|
1689
|
+
},
|
|
1690
|
+
methods: {
|
|
1691
|
+
renderElement() {
|
|
1692
|
+
this.$refs.domElement && (this.$refs.domElement.innerHTML = "");
|
|
1693
|
+
const t = St(this.$refs.domElement, { providerId: this.provider.id, accessible: !1 });
|
|
1694
|
+
Promise.resolve(t).then((e) => {
|
|
1695
|
+
this.renderResult = e, this.renderResult.object?._isVue && this.renderResult.object?.$on && (this.renderResult.object.$on("submit", this.onSubmit), this.renderResult.object.$on("cancel", this.onCancel)), this.renderResult.element.addEventListener("submit", (r) => {
|
|
1696
|
+
this.onSubmit(r.detail);
|
|
1697
|
+
}), this.renderResult.element.addEventListener("cancel", this.onCancel);
|
|
1698
|
+
});
|
|
1699
|
+
},
|
|
1700
|
+
onSubmit(t) {
|
|
1701
|
+
this.$emit("submit", t);
|
|
1702
|
+
},
|
|
1703
|
+
onCancel() {
|
|
1704
|
+
this.$emit("cancel");
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
var on = function() {
|
|
1709
|
+
var e = this, r = e._self._c;
|
|
1710
|
+
return r("div", { ref: "domElement" });
|
|
1711
|
+
}, an = [], cn = /* @__PURE__ */ N(
|
|
1712
|
+
sn,
|
|
1713
|
+
on,
|
|
1714
|
+
an,
|
|
1715
|
+
!1,
|
|
1716
|
+
null,
|
|
1717
|
+
"25f1cef8",
|
|
1718
|
+
null,
|
|
1719
|
+
null
|
|
1720
|
+
);
|
|
1721
|
+
const un = cn.exports;
|
|
1722
|
+
F($t);
|
|
1723
|
+
const _t = "any-link", bt = {
|
|
1724
|
+
id: _t,
|
|
1725
|
+
title: k("Any link"),
|
|
1726
|
+
icon_url: jt("core", "filetypes/link.svg")
|
|
1727
|
+
};
|
|
1728
|
+
window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = Ze("core", "reference-provider-list", []));
|
|
1729
|
+
window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = Ze("core", "reference-provider-timestamps", {}));
|
|
1730
|
+
function ln(t) {
|
|
1731
|
+
return t === _t ? bt : wt().find((e) => e.id === t);
|
|
1732
|
+
}
|
|
1733
|
+
function wt() {
|
|
1734
|
+
return window._vue_richtext_reference_providers.filter((t) => {
|
|
1735
|
+
const e = !!t.search_providers_ids && t.search_providers_ids.length > 0 || z(t.id);
|
|
1736
|
+
return e || console.debug("[smart picker]", t.id, "reference provider is discoverable but does not have any related search provider or custom picker component registered"), e;
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1739
|
+
function fn(t) {
|
|
1740
|
+
const e = window._vue_richtext_reference_provider_timestamps;
|
|
1741
|
+
return t.sort((r, n) => r.order === n.order ? 0 : r.order > n.order ? 1 : -1).sort((r, n) => {
|
|
1742
|
+
const i = e[r.id], s = e[n.id];
|
|
1743
|
+
return i === s ? 0 : s === void 0 ? -1 : i === void 0 ? 1 : i > s ? -1 : 1;
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
function hn(t, e = null) {
|
|
1747
|
+
const r = wt(), n = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(n, "i"), o = fn(r).filter((c) => c.title.match(i)), a = e ? o.slice(0, e) : o;
|
|
1748
|
+
return (t === "" || a.length === 0) && a.push(bt), a;
|
|
1749
|
+
}
|
|
1750
|
+
function pn(t) {
|
|
1751
|
+
const e = Math.floor(Date.now() / 1e3), r = {
|
|
1752
|
+
timestamp: e
|
|
1753
|
+
}, n = Y("references/provider/{providerId}", { providerId: t });
|
|
1754
|
+
ge.put(n, r).then((i) => {
|
|
1755
|
+
window._vue_richtext_reference_provider_timestamps[t] = e;
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
let Ge = 0;
|
|
1759
|
+
function Rt(t, e) {
|
|
1760
|
+
return function() {
|
|
1761
|
+
const r = this, n = arguments;
|
|
1762
|
+
clearTimeout(Ge), Ge = setTimeout(function() {
|
|
1763
|
+
t.apply(r, n);
|
|
1764
|
+
}, e || 0);
|
|
1765
|
+
};
|
|
1766
|
+
}
|
|
1767
|
+
function Ee(t) {
|
|
1768
|
+
try {
|
|
1769
|
+
return !!new URL(t);
|
|
1770
|
+
} catch {
|
|
1771
|
+
return !1;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
F(Ke, Nt);
|
|
1775
|
+
const dn = {
|
|
1776
|
+
name: "LinkVariantIcon",
|
|
1777
|
+
emits: ["click"],
|
|
1778
|
+
props: {
|
|
1779
|
+
title: {
|
|
1780
|
+
type: String
|
|
1781
|
+
},
|
|
1782
|
+
fillColor: {
|
|
1783
|
+
type: String,
|
|
1784
|
+
default: "currentColor"
|
|
1785
|
+
},
|
|
1786
|
+
size: {
|
|
1787
|
+
type: Number,
|
|
1788
|
+
default: 24
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
};
|
|
1792
|
+
var vn = function() {
|
|
1793
|
+
var e = this, r = e._self._c;
|
|
1794
|
+
return r("span", e._b({ staticClass: "material-design-icon link-variant-icon", attrs: { "aria-hidden": e.title ? null : !0, "aria-label": e.title, role: "img" }, on: { click: function(n) {
|
|
1795
|
+
return e.$emit("click", n);
|
|
1796
|
+
} } }, "span", e.$attrs, !1), [r("svg", { staticClass: "material-design-icon__svg", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: "0 0 24 24" } }, [r("path", { attrs: { d: "M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z" } }, [e.title ? r("title", [e._v(e._s(e.title))]) : e._e()])])]);
|
|
1797
|
+
}, mn = [], gn = /* @__PURE__ */ N(
|
|
1798
|
+
dn,
|
|
1799
|
+
vn,
|
|
1800
|
+
mn,
|
|
1801
|
+
!1,
|
|
1802
|
+
null,
|
|
1803
|
+
null,
|
|
1804
|
+
null,
|
|
1805
|
+
null
|
|
1806
|
+
);
|
|
1807
|
+
const ke = gn.exports, yn = {
|
|
1808
|
+
name: "NcProviderList",
|
|
1809
|
+
components: {
|
|
1810
|
+
NcSelect: Xe,
|
|
1811
|
+
NcHighlight: Je,
|
|
1812
|
+
NcEmptyContent: ye,
|
|
1813
|
+
LinkVariantIcon: ke
|
|
1814
|
+
},
|
|
1815
|
+
emits: [
|
|
1816
|
+
"select-provider",
|
|
1817
|
+
"submit"
|
|
1818
|
+
],
|
|
1819
|
+
data() {
|
|
1820
|
+
return {
|
|
1821
|
+
selectedProvider: null,
|
|
1822
|
+
query: "",
|
|
1823
|
+
multiselectPlaceholder: k("Select provider"),
|
|
1824
|
+
providerIconAlt: k("Provider icon")
|
|
1825
|
+
};
|
|
1826
|
+
},
|
|
1827
|
+
computed: {
|
|
1828
|
+
options() {
|
|
1829
|
+
const t = [];
|
|
1830
|
+
return this.query !== "" && Ee(this.query) && t.push({
|
|
1831
|
+
id: this.query,
|
|
1832
|
+
title: this.query,
|
|
1833
|
+
isLink: !0
|
|
1834
|
+
}), t.push(...hn(this.query)), t;
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
methods: {
|
|
1838
|
+
focus() {
|
|
1839
|
+
setTimeout(() => {
|
|
1840
|
+
this.$refs["provider-select"]?.$el?.querySelector("#provider-select-input")?.focus();
|
|
1841
|
+
}, 300);
|
|
1842
|
+
},
|
|
1843
|
+
onProviderSelected(t) {
|
|
1844
|
+
t !== null && (t.isLink ? this.$emit("submit", t.title) : this.$emit("select-provider", t), this.selectedProvider = null);
|
|
1845
|
+
},
|
|
1846
|
+
onSearch(t, e) {
|
|
1847
|
+
this.query = t;
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
var _n = function() {
|
|
1852
|
+
var e = this, r = e._self._c;
|
|
1853
|
+
return r("div", { staticClass: "provider-list" }, [r("NcSelect", { ref: "provider-select", staticClass: "provider-list--select", attrs: { "input-id": "provider-select-input", label: "title", placeholder: e.multiselectPlaceholder, options: e.options, "append-to-body": !1, "clear-search-on-select": !0, "clear-search-on-blur": () => !1, filterable: !1 }, on: { search: e.onSearch, input: e.onProviderSelected }, scopedSlots: e._u([{ key: "option", fn: function(n) {
|
|
1854
|
+
return [n.isLink ? r("div", { staticClass: "provider" }, [r("LinkVariantIcon", { staticClass: "link-icon", attrs: { size: 20 } }), r("span", [e._v(e._s(n.title))])], 1) : r("div", { staticClass: "provider" }, [r("img", { staticClass: "provider-icon", attrs: { src: n.icon_url, alt: e.providerIconAlt } }), r("NcHighlight", { staticClass: "option-text", attrs: { search: e.query, text: n.title } })], 1)];
|
|
1855
|
+
} }]), model: { value: e.selectedProvider, callback: function(n) {
|
|
1856
|
+
e.selectedProvider = n;
|
|
1857
|
+
}, expression: "selectedProvider" } }), r("NcEmptyContent", { staticClass: "provider-list--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
1858
|
+
return [r("LinkVariantIcon")];
|
|
1859
|
+
}, proxy: !0 }]) })], 1);
|
|
1860
|
+
}, bn = [], wn = /* @__PURE__ */ N(
|
|
1861
|
+
yn,
|
|
1862
|
+
_n,
|
|
1863
|
+
bn,
|
|
1864
|
+
!1,
|
|
1865
|
+
null,
|
|
1866
|
+
"e880790e",
|
|
1867
|
+
null,
|
|
1868
|
+
null
|
|
1869
|
+
);
|
|
1870
|
+
const Rn = wn.exports;
|
|
1871
|
+
F(Lt);
|
|
1872
|
+
const Pn = {
|
|
1873
|
+
name: "NcRawLinkInput",
|
|
1874
|
+
components: {
|
|
1875
|
+
LinkVariantIcon: ke,
|
|
1876
|
+
NcEmptyContent: ye,
|
|
1877
|
+
NcLoadingIcon: Ut,
|
|
1878
|
+
NcReferenceWidget: nn,
|
|
1879
|
+
NcTextField: Dt
|
|
1880
|
+
},
|
|
1881
|
+
props: {
|
|
1882
|
+
/**
|
|
1883
|
+
* The reference provider
|
|
1884
|
+
*/
|
|
1885
|
+
provider: {
|
|
1886
|
+
type: Object,
|
|
1887
|
+
required: !0
|
|
1888
|
+
}
|
|
1889
|
+
},
|
|
1890
|
+
emits: [
|
|
1891
|
+
"submit"
|
|
1892
|
+
],
|
|
1893
|
+
data() {
|
|
1894
|
+
return {
|
|
1895
|
+
inputValue: "",
|
|
1896
|
+
loading: !1,
|
|
1897
|
+
reference: null,
|
|
1898
|
+
abortController: null,
|
|
1899
|
+
inputPlaceholder: k("Enter link")
|
|
1900
|
+
};
|
|
1901
|
+
},
|
|
1902
|
+
computed: {
|
|
1903
|
+
isLinkValid() {
|
|
1904
|
+
return Ee(this.inputValue);
|
|
1905
|
+
}
|
|
1906
|
+
},
|
|
1907
|
+
methods: {
|
|
1908
|
+
focus() {
|
|
1909
|
+
this.$refs["url-input"].$el.getElementsByTagName("input")[0]?.focus();
|
|
1910
|
+
},
|
|
1911
|
+
onSubmit(t) {
|
|
1912
|
+
const e = t.target.value;
|
|
1913
|
+
this.isLinkValid && this.$emit("submit", e);
|
|
1914
|
+
},
|
|
1915
|
+
onClear() {
|
|
1916
|
+
this.inputValue = "", this.reference = null;
|
|
1917
|
+
},
|
|
1918
|
+
onInput() {
|
|
1919
|
+
this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid && Rt(() => {
|
|
1920
|
+
this.updateReference();
|
|
1921
|
+
}, 500)();
|
|
1922
|
+
},
|
|
1923
|
+
updateReference() {
|
|
1924
|
+
this.loading = !0, this.abortController = new AbortController(), ge.get(Y("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
|
|
1925
|
+
signal: this.abortController.signal
|
|
1926
|
+
}).then((t) => {
|
|
1927
|
+
this.reference = t.data.ocs.data.references[this.inputValue];
|
|
1928
|
+
}).catch((t) => {
|
|
1929
|
+
console.error(t);
|
|
1930
|
+
}).then(() => {
|
|
1931
|
+
this.loading = !1;
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
};
|
|
1936
|
+
var Cn = function() {
|
|
1937
|
+
var e = this, r = e._self._c;
|
|
1938
|
+
return r("div", { staticClass: "raw-link" }, [r("div", { staticClass: "input-wrapper" }, [r("NcTextField", { ref: "url-input", attrs: { value: e.inputValue, "show-trailing-button": e.inputValue !== "", label: e.inputPlaceholder }, on: { "update:value": [function(n) {
|
|
1939
|
+
e.inputValue = n;
|
|
1940
|
+
}, e.onInput], "trailing-button-click": e.onClear }, nativeOn: { keyup: function(n) {
|
|
1941
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.onSubmit.apply(null, arguments);
|
|
1942
|
+
} } }, [e.loading ? r("NcLoadingIcon", { attrs: { size: 16 } }) : r("LinkVariantIcon", { attrs: { size: 16 } })], 1)], 1), e.reference !== null ? r("NcReferenceWidget", { staticClass: "reference-widget", attrs: { reference: e.reference } }) : r("NcEmptyContent", { staticClass: "raw-link--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
1943
|
+
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
1944
|
+
}, proxy: !0 }]) })], 1);
|
|
1945
|
+
}, En = [], kn = /* @__PURE__ */ N(
|
|
1946
|
+
Pn,
|
|
1947
|
+
Cn,
|
|
1948
|
+
En,
|
|
1949
|
+
!1,
|
|
1950
|
+
null,
|
|
1951
|
+
"d0ba247a",
|
|
1952
|
+
null,
|
|
1953
|
+
null
|
|
1954
|
+
);
|
|
1955
|
+
const Sn = kn.exports, xn = {
|
|
1956
|
+
name: "NcSearchResult",
|
|
1957
|
+
components: {
|
|
1958
|
+
NcHighlight: Je
|
|
1959
|
+
},
|
|
1960
|
+
props: {
|
|
1961
|
+
/**
|
|
1962
|
+
* Unified search result entry
|
|
1963
|
+
*/
|
|
1964
|
+
entry: {
|
|
1965
|
+
type: Object,
|
|
1966
|
+
required: !0
|
|
1967
|
+
},
|
|
1968
|
+
/**
|
|
1969
|
+
* The query that led to getting this result
|
|
1970
|
+
* Used to highlight the entry text
|
|
1971
|
+
*/
|
|
1972
|
+
query: {
|
|
1973
|
+
type: String,
|
|
1974
|
+
required: !0
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
};
|
|
1978
|
+
var $n = function() {
|
|
1979
|
+
var e = this, r = e._self._c;
|
|
1980
|
+
return r("div", { staticClass: "result" }, [e.entry.icon ? r("div", { staticClass: "result--icon-class", class: { [e.entry.icon]: !0, rounded: e.entry.rounded } }) : r("img", { staticClass: "result--image", class: { rounded: e.entry.rounded }, attrs: { src: e.entry.thumbnailUrl } }), r("div", { staticClass: "result--content" }, [r("span", { staticClass: "result--content--name" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.title } })], 1), r("span", { staticClass: "result--content--subline" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.subline } })], 1)])]);
|
|
1981
|
+
}, Nn = [], Ln = /* @__PURE__ */ N(
|
|
1982
|
+
xn,
|
|
1983
|
+
$n,
|
|
1984
|
+
Nn,
|
|
1985
|
+
!1,
|
|
1986
|
+
null,
|
|
1987
|
+
"7a394a58",
|
|
1988
|
+
null,
|
|
1989
|
+
null
|
|
1990
|
+
);
|
|
1991
|
+
const On = Ln.exports;
|
|
1992
|
+
F(Tt, Ke, Ot);
|
|
1993
|
+
const Qe = 5, Tn = {
|
|
1994
|
+
name: "NcSearch",
|
|
1995
|
+
components: {
|
|
1996
|
+
LinkVariantIcon: ke,
|
|
1997
|
+
DotsHorizontalIcon: zt,
|
|
1998
|
+
NcEmptyContent: ye,
|
|
1999
|
+
NcSelect: Xe,
|
|
2000
|
+
NcSearchResult: On
|
|
2001
|
+
},
|
|
2002
|
+
props: {
|
|
2003
|
+
/**
|
|
2004
|
+
* The selected reference provider
|
|
2005
|
+
*/
|
|
2006
|
+
provider: {
|
|
2007
|
+
type: Object,
|
|
2008
|
+
required: !0
|
|
2009
|
+
},
|
|
2010
|
+
showEmptyContent: {
|
|
2011
|
+
type: Boolean,
|
|
2012
|
+
default: !0
|
|
2013
|
+
},
|
|
2014
|
+
searchPlaceholder: {
|
|
2015
|
+
type: String,
|
|
2016
|
+
default: null
|
|
2017
|
+
}
|
|
2018
|
+
},
|
|
2019
|
+
emits: [
|
|
2020
|
+
"submit"
|
|
2021
|
+
],
|
|
2022
|
+
data() {
|
|
2023
|
+
return {
|
|
2024
|
+
searchQuery: "",
|
|
2025
|
+
selectedResult: null,
|
|
2026
|
+
resultsBySearchProvider: {},
|
|
2027
|
+
searching: !1,
|
|
2028
|
+
searchingMoreOf: null,
|
|
2029
|
+
abortController: null,
|
|
2030
|
+
noOptionsText: k("Start typing to search"),
|
|
2031
|
+
providerIconAlt: k("Provider icon")
|
|
2032
|
+
};
|
|
2033
|
+
},
|
|
2034
|
+
computed: {
|
|
2035
|
+
mySearchPlaceholder() {
|
|
2036
|
+
return this.searchPlaceholder || k("Search");
|
|
2037
|
+
},
|
|
2038
|
+
searchProviderIds() {
|
|
2039
|
+
return this.provider.search_providers_ids;
|
|
2040
|
+
},
|
|
2041
|
+
options() {
|
|
2042
|
+
if (this.searchQuery === "")
|
|
2043
|
+
return [];
|
|
2044
|
+
const t = [];
|
|
2045
|
+
return Ee(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
|
|
2046
|
+
},
|
|
2047
|
+
rawLinkEntry() {
|
|
2048
|
+
return {
|
|
2049
|
+
id: "rawLinkEntry",
|
|
2050
|
+
resourceUrl: this.searchQuery,
|
|
2051
|
+
isRawLink: !0
|
|
2052
|
+
};
|
|
2053
|
+
},
|
|
2054
|
+
formattedSearchResults() {
|
|
2055
|
+
const t = [];
|
|
2056
|
+
return this.searchProviderIds.forEach((e) => {
|
|
2057
|
+
if (this.resultsBySearchProvider[e].entries.length > 0) {
|
|
2058
|
+
(this.searchProviderIds.length > 1 || this.resultsBySearchProvider[e].entries.length > 1) && t.push({
|
|
2059
|
+
id: "groupTitle-" + e,
|
|
2060
|
+
name: this.resultsBySearchProvider[e].name,
|
|
2061
|
+
isCustomGroupTitle: !0,
|
|
2062
|
+
providerId: e
|
|
2063
|
+
});
|
|
2064
|
+
const r = this.resultsBySearchProvider[e].entries.map((n, i) => ({
|
|
2065
|
+
id: "provider-" + e + "-entry-" + i,
|
|
2066
|
+
...n
|
|
2067
|
+
}));
|
|
2068
|
+
t.push(...r), this.resultsBySearchProvider[e].isPaginated && t.push({
|
|
2069
|
+
id: "moreOf-" + e,
|
|
2070
|
+
name: this.resultsBySearchProvider[e].name,
|
|
2071
|
+
isMore: !0,
|
|
2072
|
+
providerId: e,
|
|
2073
|
+
isLoading: this.searchingMoreOf === e
|
|
2074
|
+
});
|
|
2075
|
+
}
|
|
2076
|
+
}), t;
|
|
2077
|
+
}
|
|
2078
|
+
},
|
|
2079
|
+
mounted() {
|
|
2080
|
+
this.resetResults();
|
|
2081
|
+
},
|
|
2082
|
+
beforeDestroy() {
|
|
2083
|
+
this.cancelSearchRequests();
|
|
2084
|
+
},
|
|
2085
|
+
methods: {
|
|
2086
|
+
t: k,
|
|
2087
|
+
resetResults() {
|
|
2088
|
+
const t = {};
|
|
2089
|
+
this.searchProviderIds.forEach((e) => {
|
|
2090
|
+
t[e] = {
|
|
2091
|
+
entries: []
|
|
2092
|
+
};
|
|
2093
|
+
}), this.resultsBySearchProvider = t;
|
|
2094
|
+
},
|
|
2095
|
+
focus() {
|
|
2096
|
+
setTimeout(() => {
|
|
2097
|
+
this.$refs["search-select"]?.$el?.querySelector("#search-select-input")?.focus();
|
|
2098
|
+
}, 300);
|
|
2099
|
+
},
|
|
2100
|
+
cancelSearchRequests() {
|
|
2101
|
+
this.abortController && this.abortController.abort();
|
|
2102
|
+
},
|
|
2103
|
+
onSearchInput(t, e) {
|
|
2104
|
+
this.searchQuery = t, Rt(() => {
|
|
2105
|
+
this.updateSearch();
|
|
2106
|
+
}, 500)();
|
|
2107
|
+
},
|
|
2108
|
+
onSelectResultSelected(t) {
|
|
2109
|
+
t !== null && (t.resourceUrl ? (this.cancelSearchRequests(), this.$emit("submit", t.resourceUrl)) : t.isMore && this.searchMoreOf(t.providerId).then(() => {
|
|
2110
|
+
this.selectedResult = null;
|
|
2111
|
+
}));
|
|
2112
|
+
},
|
|
2113
|
+
searchMoreOf(t) {
|
|
2114
|
+
return this.searchingMoreOf = t, this.cancelSearchRequests(), this.searchProviders(t);
|
|
2115
|
+
},
|
|
2116
|
+
updateSearch() {
|
|
2117
|
+
if (this.cancelSearchRequests(), this.resetResults(), this.searchQuery === "") {
|
|
2118
|
+
this.searching = !1;
|
|
2119
|
+
return;
|
|
2120
|
+
}
|
|
2121
|
+
return this.searchProviders();
|
|
2122
|
+
},
|
|
2123
|
+
searchProviders(t = null) {
|
|
2124
|
+
this.abortController = new AbortController(), this.searching = !0;
|
|
2125
|
+
const e = t === null ? [...this.searchProviderIds].map((r) => this.searchOneProvider(r)) : [this.searchOneProvider(t, this.resultsBySearchProvider[t]?.cursor ?? null)];
|
|
2126
|
+
return Promise.allSettled(e).then((r) => {
|
|
2127
|
+
!!r.find((i) => i.status === "rejected" && (i.reason.name === "CanceledError" || i.reason.code === "ERR_CANCELED")) || (this.searching = !1, this.searchingMoreOf = null);
|
|
2128
|
+
});
|
|
2129
|
+
},
|
|
2130
|
+
searchOneProvider(t, e = null) {
|
|
2131
|
+
const r = e === null ? Y("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: Qe }) : Y("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: Qe, cursor: e });
|
|
2132
|
+
return ge.get(r, {
|
|
2133
|
+
signal: this.abortController.signal
|
|
2134
|
+
}).then((n) => {
|
|
2135
|
+
const i = n.data.ocs.data;
|
|
2136
|
+
this.resultsBySearchProvider[t].name = i.name, this.resultsBySearchProvider[t].cursor = i.cursor, this.resultsBySearchProvider[t].isPaginated = i.isPaginated, this.resultsBySearchProvider[t].entries.push(...i.entries);
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
};
|
|
2141
|
+
var An = function() {
|
|
2142
|
+
var e = this, r = e._self._c;
|
|
2143
|
+
return r("div", { staticClass: "smart-picker-search", class: { "with-empty-content": e.showEmptyContent } }, [r("NcSelect", { ref: "search-select", staticClass: "smart-picker-search--select", attrs: { "input-id": "search-select-input", label: "name", placeholder: e.mySearchPlaceholder, options: e.options, "append-to-body": !1, "close-on-select": !1, "clear-search-on-select": !1, "clear-search-on-blur": () => !1, "reset-focus-on-options-change": !1, filterable: !1, autoscroll: !0, "reset-on-options-change": !1, loading: e.searching }, on: { search: e.onSearchInput, input: e.onSelectResultSelected }, scopedSlots: e._u([{ key: "option", fn: function(n) {
|
|
2144
|
+
return [n.isRawLink ? r("div", { staticClass: "custom-option" }, [r("LinkVariantIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t("Raw link {options}", { options: n.resourceUrl })) + " ")])], 1) : n.resourceUrl ? r("NcSearchResult", { staticClass: "search-result", attrs: { entry: n, query: e.searchQuery } }) : n.isCustomGroupTitle ? r("span", { staticClass: "custom-option group-name" }, [e.provider.icon_url ? r("img", { staticClass: "provider-icon group-name-icon", attrs: { src: e.provider.icon_url } }) : e._e(), r("span", { staticClass: "option-text" }, [r("strong", [e._v(e._s(n.name))])])]) : n.isMore ? r("span", { class: { "custom-option": !0 } }, [n.isLoading ? r("span", { staticClass: "option-simple-icon icon-loading-small" }) : r("DotsHorizontalIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t('Load more "{options}"', { options: n.name })) + " ")])], 1) : e._e()];
|
|
2145
|
+
} }, { key: "no-options", fn: function() {
|
|
2146
|
+
return [e._v(" " + e._s(e.noOptionsText) + " ")];
|
|
2147
|
+
}, proxy: !0 }]), model: { value: e.selectedResult, callback: function(n) {
|
|
2148
|
+
e.selectedResult = n;
|
|
2149
|
+
}, expression: "selectedResult" } }), e.showEmptyContent ? r("NcEmptyContent", { staticClass: "smart-picker-search--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
2150
|
+
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { alt: e.providerIconAlt, src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
2151
|
+
}, proxy: !0 }], null, !1, 2922132592) }) : e._e()], 1);
|
|
2152
|
+
}, In = [], Vn = /* @__PURE__ */ N(
|
|
2153
|
+
Tn,
|
|
2154
|
+
An,
|
|
2155
|
+
In,
|
|
2156
|
+
!1,
|
|
2157
|
+
null,
|
|
2158
|
+
"97d196f0",
|
|
2159
|
+
null,
|
|
2160
|
+
null
|
|
2161
|
+
);
|
|
2162
|
+
const jn = Vn.exports, U = {
|
|
2163
|
+
providerList: 1,
|
|
2164
|
+
standardLinkInput: 2,
|
|
2165
|
+
searchInput: 3,
|
|
2166
|
+
customElement: 4
|
|
2167
|
+
}, Bn = {
|
|
2168
|
+
name: "NcReferencePicker",
|
|
2169
|
+
components: {
|
|
2170
|
+
NcCustomPickerElement: un,
|
|
2171
|
+
NcProviderList: Rn,
|
|
2172
|
+
NcRawLinkInput: Sn,
|
|
2173
|
+
NcSearch: jn
|
|
2174
|
+
},
|
|
2175
|
+
props: {
|
|
2176
|
+
/**
|
|
2177
|
+
* Provider to select on creation
|
|
2178
|
+
* Default: null. Show the provider list
|
|
2179
|
+
*/
|
|
2180
|
+
initialProvider: {
|
|
2181
|
+
type: Object,
|
|
2182
|
+
default: () => null
|
|
2183
|
+
},
|
|
2184
|
+
/**
|
|
2185
|
+
* Optional width in pixels
|
|
2186
|
+
* Default: 100%
|
|
2187
|
+
*/
|
|
2188
|
+
width: {
|
|
2189
|
+
type: Number,
|
|
2190
|
+
default: null
|
|
2191
|
+
},
|
|
2192
|
+
/**
|
|
2193
|
+
* Focus on the provider list select input on creation
|
|
2194
|
+
* Default: true
|
|
2195
|
+
*/
|
|
2196
|
+
focusOnCreate: {
|
|
2197
|
+
type: Boolean,
|
|
2198
|
+
default: !0
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
emits: [
|
|
2202
|
+
"cancel",
|
|
2203
|
+
"cancel-raw-link",
|
|
2204
|
+
"cancel-search",
|
|
2205
|
+
"provider-selected",
|
|
2206
|
+
"submit"
|
|
2207
|
+
],
|
|
2208
|
+
data() {
|
|
2209
|
+
return {
|
|
2210
|
+
MODES: U,
|
|
2211
|
+
selectedProvider: this.initialProvider
|
|
2212
|
+
};
|
|
2213
|
+
},
|
|
2214
|
+
computed: {
|
|
2215
|
+
mode() {
|
|
2216
|
+
return this.selectedProvider === null ? U.providerList : z(this.selectedProvider.id) ? U.customElement : this.selectedProvider.search_providers_ids ? U.searchInput : U.standardLinkInput;
|
|
2217
|
+
},
|
|
2218
|
+
pickerWrapperStyle() {
|
|
2219
|
+
return {
|
|
2220
|
+
width: this.width ? this.width + "px" : void 0
|
|
2221
|
+
};
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
mounted() {
|
|
2225
|
+
this.focusOnCreate && (this.initialProvider ? setTimeout(() => {
|
|
2226
|
+
this.$refs["url-input"]?.focus();
|
|
2227
|
+
}, 300) : this.$nextTick(() => {
|
|
2228
|
+
this.$refs["provider-list"]?.focus();
|
|
2229
|
+
}));
|
|
2230
|
+
},
|
|
2231
|
+
methods: {
|
|
2232
|
+
onEscapePressed() {
|
|
2233
|
+
this.selectedProvider !== null ? this.deselectProvider() : this.cancelProviderSelection();
|
|
2234
|
+
},
|
|
2235
|
+
onProviderSelected(t) {
|
|
2236
|
+
this.selectedProvider = t, this.$emit("provider-selected", t), this.$nextTick(() => {
|
|
2237
|
+
this.$refs["url-input"]?.focus();
|
|
2238
|
+
});
|
|
2239
|
+
},
|
|
2240
|
+
cancelCustomElement() {
|
|
2241
|
+
this.deselectProvider();
|
|
2242
|
+
},
|
|
2243
|
+
cancelSearch() {
|
|
2244
|
+
this.$emit("cancel-search", this.selectedProvider?.title), this.deselectProvider();
|
|
2245
|
+
},
|
|
2246
|
+
cancelRawLinkInput() {
|
|
2247
|
+
this.$emit("cancel-raw-link", this.selectedProvider?.title), this.deselectProvider();
|
|
2248
|
+
},
|
|
2249
|
+
cancelProviderSelection() {
|
|
2250
|
+
this.$emit("cancel");
|
|
2251
|
+
},
|
|
2252
|
+
submitLink(t) {
|
|
2253
|
+
this.selectedProvider !== null && pn(this.selectedProvider.id), this.$emit("submit", t), this.deselectProvider();
|
|
2254
|
+
},
|
|
2255
|
+
deselectProvider() {
|
|
2256
|
+
this.selectedProvider = null, this.$emit("provider-selected", null), setTimeout(() => {
|
|
2257
|
+
this.$refs["provider-list"]?.focus();
|
|
2258
|
+
}, 300);
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2262
|
+
var qn = function() {
|
|
2263
|
+
var e = this, r = e._self._c;
|
|
2264
|
+
return r("div", { staticClass: "reference-picker", style: e.pickerWrapperStyle, attrs: { tabindex: "-1" }, on: { keydown: function(n) {
|
|
2265
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : (n.stopPropagation(), n.preventDefault(), e.onEscapePressed.apply(null, arguments));
|
|
2266
|
+
} } }, [e.mode === e.MODES.providerList ? r("NcProviderList", { ref: "provider-list", on: { "select-provider": e.onProviderSelected, submit: e.submitLink, cancel: e.cancelProviderSelection } }) : e.mode === e.MODES.standardLinkInput ? r("NcRawLinkInput", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelRawLinkInput } }) : e.mode === e.MODES.searchInput ? r("NcSearch", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { cancel: e.cancelSearch, submit: e.submitLink } }) : e.mode === e.MODES.customElement ? r("div", { staticClass: "custom-element-wrapper" }, [r("NcCustomPickerElement", { attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelCustomElement } })], 1) : e._e()], 1);
|
|
2267
|
+
}, Mn = [], Un = /* @__PURE__ */ N(
|
|
2268
|
+
Bn,
|
|
2269
|
+
qn,
|
|
2270
|
+
Mn,
|
|
2271
|
+
!1,
|
|
2272
|
+
null,
|
|
2273
|
+
"12c38c93",
|
|
2274
|
+
null,
|
|
2275
|
+
null
|
|
2276
|
+
);
|
|
2277
|
+
const Dn = Un.exports;
|
|
2278
|
+
F(It, At);
|
|
2279
|
+
const zn = {
|
|
2280
|
+
name: "NcReferencePickerModal",
|
|
2281
|
+
components: {
|
|
2282
|
+
NcReferencePicker: Dn,
|
|
2283
|
+
NcModal: Wt,
|
|
2284
|
+
NcButton: Ft,
|
|
2285
|
+
ArrowLeftIcon: Gt,
|
|
2286
|
+
CloseIcon: Qt
|
|
2287
|
+
},
|
|
2288
|
+
props: {
|
|
2289
|
+
/**
|
|
2290
|
+
* Provider to select on creation
|
|
2291
|
+
* Show the provider list if no initial one is provided
|
|
2292
|
+
*/
|
|
2293
|
+
initialProvider: {
|
|
2294
|
+
type: Object,
|
|
2295
|
+
default: () => null
|
|
2296
|
+
},
|
|
2297
|
+
/**
|
|
2298
|
+
* Focus on the input item on create
|
|
2299
|
+
*/
|
|
2300
|
+
focusOnCreate: {
|
|
2301
|
+
type: Boolean,
|
|
2302
|
+
default: !0
|
|
2303
|
+
},
|
|
2304
|
+
/**
|
|
2305
|
+
* If true, add the modal content to the Viewer trap elements via the event-bus
|
|
2306
|
+
*/
|
|
2307
|
+
isInsideViewer: {
|
|
2308
|
+
type: Boolean,
|
|
2309
|
+
default: !1
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
emits: [
|
|
2313
|
+
"cancel",
|
|
2314
|
+
"submit"
|
|
2315
|
+
],
|
|
2316
|
+
data() {
|
|
2317
|
+
return {
|
|
2318
|
+
show: !0,
|
|
2319
|
+
selectedProvider: this.initialProvider,
|
|
2320
|
+
backButtonTitle: k("Back to provider selection"),
|
|
2321
|
+
closeButtonTitle: k("Close"),
|
|
2322
|
+
closeButtonLabel: k("Close Smart Picker")
|
|
2323
|
+
};
|
|
2324
|
+
},
|
|
2325
|
+
computed: {
|
|
2326
|
+
isProviderSelected() {
|
|
2327
|
+
return this.selectedProvider !== null;
|
|
2328
|
+
},
|
|
2329
|
+
showBackButton() {
|
|
2330
|
+
return this.initialProvider === null && this.isProviderSelected;
|
|
2331
|
+
},
|
|
2332
|
+
modalSize() {
|
|
2333
|
+
return this.isProviderSelected && z(this.selectedProvider.id) ? xt(this.selectedProvider.id) ?? "large" : "normal";
|
|
2334
|
+
},
|
|
2335
|
+
showModalName() {
|
|
2336
|
+
return !this.isProviderSelected || !z(this.selectedProvider.id);
|
|
2337
|
+
},
|
|
2338
|
+
modalName() {
|
|
2339
|
+
return this.isProviderSelected ? this.selectedProvider.title : k("Smart Picker");
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
mounted() {
|
|
2343
|
+
if (this.isInsideViewer) {
|
|
2344
|
+
const t = this.$refs.modal_content;
|
|
2345
|
+
Ht("viewer:trapElements:changed", t);
|
|
2346
|
+
}
|
|
2347
|
+
},
|
|
2348
|
+
methods: {
|
|
2349
|
+
onCancel() {
|
|
2350
|
+
this.show = !1, this.$emit("cancel");
|
|
2351
|
+
},
|
|
2352
|
+
onSubmit(t) {
|
|
2353
|
+
this.show = !1, this.$emit("submit", t);
|
|
2354
|
+
},
|
|
2355
|
+
onProviderSelect(t) {
|
|
2356
|
+
this.selectedProvider = t, t === null && this.initialProvider !== null && this.onCancel();
|
|
2357
|
+
},
|
|
2358
|
+
onBackClicked() {
|
|
2359
|
+
this.$refs.referencePicker.deselectProvider();
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
};
|
|
2363
|
+
var Fn = function() {
|
|
2364
|
+
var e = this, r = e._self._c;
|
|
2365
|
+
return e.show ? r("NcModal", { staticClass: "reference-picker-modal", attrs: { size: e.modalSize, "can-close": !1 }, on: { close: e.onCancel } }, [r("div", { ref: "modal_content", staticClass: "reference-picker-modal--content" }, [e.showBackButton ? r("NcButton", { staticClass: "back-button", attrs: { "aria-label": e.backButtonTitle, title: e.backButtonTitle }, on: { click: e.onBackClicked }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
2366
|
+
return [r("ArrowLeftIcon")];
|
|
2367
|
+
}, proxy: !0 }], null, !1, 3001860362) }) : e._e(), r("NcButton", { staticClass: "close-button", attrs: { "aria-label": e.closeButtonLabel, title: e.closeButtonTitle, type: "tertiary" }, on: { click: e.onCancel }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
2368
|
+
return [r("CloseIcon")];
|
|
2369
|
+
}, proxy: !0 }], null, !1, 2491825086) }), e.showModalName ? r("h2", [e._v(" " + e._s(e.modalName) + " ")]) : e._e(), r("NcReferencePicker", { ref: "referencePicker", attrs: { "initial-provider": e.initialProvider, "focus-on-create": e.focusOnCreate }, on: { "provider-selected": e.onProviderSelect, submit: e.onSubmit, cancel: e.onCancel } })], 1)]) : e._e();
|
|
2370
|
+
}, Wn = [], Hn = /* @__PURE__ */ N(
|
|
2371
|
+
zn,
|
|
2372
|
+
Fn,
|
|
2373
|
+
Wn,
|
|
2374
|
+
!1,
|
|
2375
|
+
null,
|
|
2376
|
+
"ab09ebaa",
|
|
2377
|
+
null,
|
|
2378
|
+
null
|
|
2379
|
+
);
|
|
2380
|
+
const Gn = Hn.exports;
|
|
2381
|
+
async function gi(t = null, e = void 0) {
|
|
2382
|
+
return await new Promise((r, n) => {
|
|
2383
|
+
const i = "referencePickerModal", s = document.createElement("div");
|
|
2384
|
+
s.id = i, document.body.append(s);
|
|
2385
|
+
const o = t === null ? null : ln(t) ?? null, a = Kt.extend(Gn), c = new a({
|
|
2386
|
+
propsData: {
|
|
2387
|
+
initialProvider: o,
|
|
2388
|
+
isInsideViewer: e
|
|
2389
|
+
}
|
|
2390
|
+
}).$mount(s);
|
|
2391
|
+
c.$on("cancel", () => {
|
|
2392
|
+
c.$destroy(), n(new Error("User cancellation"));
|
|
2393
|
+
}), c.$on("submit", (u) => {
|
|
2394
|
+
c.$destroy(), r(u);
|
|
2395
|
+
});
|
|
2396
|
+
});
|
|
2397
|
+
}
|
|
2398
|
+
export {
|
|
2399
|
+
st as L,
|
|
2400
|
+
nn as N,
|
|
2401
|
+
vi as U,
|
|
2402
|
+
_t as a,
|
|
2403
|
+
ln as b,
|
|
2404
|
+
wt as c,
|
|
2405
|
+
hn as d,
|
|
2406
|
+
Dn as e,
|
|
2407
|
+
Gn as f,
|
|
2408
|
+
gi as g,
|
|
2409
|
+
jn as h,
|
|
2410
|
+
Xr as i,
|
|
2411
|
+
Jr as p,
|
|
2412
|
+
mi as r,
|
|
2413
|
+
fn as s
|
|
2414
|
+
};
|