@8wave/ai-elements 0.74.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{PkStreamingMarkdown-orhL2kzD.js → PkStreamingMarkdown-rIdQh5_D.js} +20 -20
- package/dist/_chunks/PkStreamingMarkdown-rIdQh5_D.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js → PkToolShowArtifact-CeLgwZBA.js} +6 -6
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js.map → PkToolShowArtifact-CeLgwZBA.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js → PkToolShowCalendarEvent-cQpAAE3a.js} +10 -10
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js.map → PkToolShowCalendarEvent-cQpAAE3a.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js → PkToolShowComparison-Cu-zT8-Z.js} +6 -6
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js.map → PkToolShowComparison-Cu-zT8-Z.js.map} +1 -1
- package/dist/_chunks/PkToolShowContactForm-CqoSVvjG.js +1658 -0
- package/dist/_chunks/PkToolShowContactForm-CqoSVvjG.js.map +1 -0
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js → PkToolShowEmail-oLGym0R9.js} +10 -10
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js.map → PkToolShowEmail-oLGym0R9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js → PkToolShowImageGallery-CDXSL1Mg.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js.map → PkToolShowImageGallery-CDXSL1Mg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js → PkToolShowLocation-BtRUdoEw.js} +7 -7
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js.map → PkToolShowLocation-BtRUdoEw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js → PkToolShowMessage-tJQGRhce.js} +9 -9
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js.map → PkToolShowMessage-tJQGRhce.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js → PkToolShowMultipleChoice-CtVvdyDg.js} +2 -2
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js.map → PkToolShowMultipleChoice-CtVvdyDg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js → PkToolShowProductList-D_k6CDdb.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js.map → PkToolShowProductList-D_k6CDdb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js → PkToolShowQrCode-S1j_T8wQ.js} +6 -6
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js.map → PkToolShowQrCode-S1j_T8wQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BQo5DRwt.js → PkToolShowSources-CroItMtG.js} +6 -5
- package/dist/_chunks/PkToolShowSources-CroItMtG.js.map +1 -0
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js → PkToolShowSuggestedReply-BRa5Lpti.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js.map → PkToolShowSuggestedReply-BRa5Lpti.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js → PkToolShowWeather-CUpCJ8Nj.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js.map → PkToolShowWeather-CUpCJ8Nj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js → PkToolShowWebPages-f-dHyxfD.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js.map → PkToolShowWebPages-f-dHyxfD.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js → VvCheckbox.es-BF8Mdg0O.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js.map → VvCheckbox.es-BF8Mdg0O.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js → VvCheckboxGroup.es-BJc8MmJ3.js} +109 -109
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js.map → VvCheckboxGroup.es-BJc8MmJ3.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js → VvCombobox.es-ILRHqAye.js} +256 -256
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js.map → VvCombobox.es-ILRHqAye.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js → VvInputText.es-CDnMeO26.js} +190 -190
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js.map → VvInputText.es-CDnMeO26.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js → VvRadio.es-C2p5vvAx.js} +2 -2
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js.map → VvRadio.es-C2p5vvAx.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js → VvRadioGroup.es-6GlWuDjY.js} +10 -10
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js.map → VvRadioGroup.es-6GlWuDjY.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js → VvSelect.es-i4lO9onq.js} +6 -6
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js.map → VvSelect.es-i4lO9onq.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js → VvTextarea.es-CGpiCS4S.js} +248 -248
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js.map → VvTextarea.es-CGpiCS4S.js.map} +1 -1
- package/dist/_chunks/{dist-DtF6poRc.js → dist-BTnzL-m0.js} +131 -119
- package/dist/_chunks/dist-BTnzL-m0.js.map +1 -0
- package/dist/_chunks/{index.es-BGFmj59S.js → index.es-CUjDCkXD.js} +449 -449
- package/dist/_chunks/{index.es-BGFmj59S.js.map → index.es-CUjDCkXD.js.map} +1 -1
- package/dist/_chunks/{schemas-Bp3a8tYV.js → schemas-aPiXCaCc.js} +1309 -945
- package/dist/_chunks/schemas-aPiXCaCc.js.map +1 -0
- package/dist/ai-elements.es.js +4603 -3406
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Media-Bic_vfSX.js → Media-CXQSoKqt.js} +3 -3
- package/dist-vue/_chunks/{Media-Bic_vfSX.js.map → Media-CXQSoKqt.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js → PkChatbot-DAzGc7al.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js.map → PkChatbot-DAzGc7al.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js → PkChatbotFeedbackForm-DvUzirPP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js.map → PkChatbotFeedbackForm-DvUzirPP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js → PkChatbotInput-C5QSmt21.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js.map → PkChatbotInput-C5QSmt21.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BxTeEm3j.js → PkChatbotMessages-dsjB0-26.js} +7 -7
- package/dist-vue/_chunks/PkChatbotMessages-dsjB0-26.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js → PkChatbotViewChat-CjoezIyz.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js.map → PkChatbotViewChat-CjoezIyz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js → PkChatbotViewConversations-DSQu6vY1.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js.map → PkChatbotViewConversations-DSQu6vY1.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js → PkChatbotViewProfile-BJJiaG9H.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js.map → PkChatbotViewProfile-BJJiaG9H.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-B4gnJ4hk.js → PkStreamingMarkdown-BAhC3uGK.js} +20 -20
- package/dist-vue/_chunks/PkStreamingMarkdown-BAhC3uGK.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js → PkToolShowArtifact-RzrDPcEQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js.map → PkToolShowArtifact-RzrDPcEQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js → PkToolShowContactForm-r_GgO-ZX.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js.map → PkToolShowContactForm-r_GgO-ZX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-ZtXFkIHt.js → PkToolShowSources-DK2DCvU3.js} +5 -4
- package/dist-vue/_chunks/PkToolShowSources-DK2DCvU3.js.map +1 -0
- package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js → ZodError-C_est8SY.js} +2 -2
- package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js.map → ZodError-C_est8SY.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-YJegM3ni.js → createChatbotApiClient-f86KwRcq.js} +3 -3
- package/dist-vue/_chunks/createChatbotApiClient-f86KwRcq.js.map +1 -0
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js → index.es-_14zrNZB.js} +4 -4
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js.map → index.es-_14zrNZB.js.map} +1 -1
- package/dist-vue/_chunks/{schemas-sa2dDEGb.js → schemas-Clx4oKCB.js} +1309 -945
- package/dist-vue/_chunks/schemas-Clx4oKCB.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DGL81KJa.js → useChatbotStore-CJlkoNn7.js} +1058 -997
- package/dist-vue/_chunks/useChatbotStore-CJlkoNn7.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -6
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +8 -8
- package/dist-vue/apps/web-component/src/lib.d.ts +29 -0
- package/dist-vue/apps/web-component/src/main.d.ts +0 -0
- package/dist-vue/apps/web-component/src/modules/applicationInsights.d.ts +38 -0
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +2846 -2870
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/auth/src/add-member-to-organization.d.ts +5 -0
- package/dist-vue/packages/auth/src/anonymous-reauth-plugin.d.ts +11 -0
- package/dist-vue/packages/auth/src/external-auth-plugin.d.ts +2 -0
- package/dist-vue/packages/auth/src/index.d.ts +3477 -8
- package/dist-vue/packages/auth/src/media-helpers.d.ts +13 -0
- package/dist-vue/packages/auth/src/organization-auto-join.d.ts +1 -0
- package/dist-vue/packages/components/src/PkEditorMarkdown.d.ts +1 -1
- package/dist-vue/packages/components/src/PkEditorRepeater.d.ts +2 -2
- package/dist-vue/packages/components/src/PkEditorWyswyg.d.ts +1 -1
- package/dist-vue/packages/components/src/PkFieldset.d.ts +3 -3
- package/dist-vue/packages/components/src/composables/index.d.ts +3 -0
- package/dist-vue/packages/components/src/composables/useChatbotError.d.ts +11 -11
- package/dist-vue/packages/composable/src/constants.d.ts +5 -0
- package/dist-vue/packages/composable/src/useDialog.d.ts +3 -3
- package/dist-vue/packages/composable/src/useSettingsStore.d.ts +4 -5
- package/dist-vue/packages/models/src/schema/Agent.d.ts +27 -27
- package/dist-vue/packages/models/src/schema/Document.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +5 -5
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +10 -10
- package/package.json +3 -3
- package/dist/_chunks/PkStreamingMarkdown-orhL2kzD.js.map +0 -1
- package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js +0 -1103
- package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js.map +0 -1
- package/dist/_chunks/PkToolShowSources-BQo5DRwt.js.map +0 -1
- package/dist/_chunks/dist-DtF6poRc.js.map +0 -1
- package/dist/_chunks/schemas-Bp3a8tYV.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-BxTeEm3j.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-B4gnJ4hk.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowSources-ZtXFkIHt.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-YJegM3ni.js.map +0 -1
- package/dist-vue/_chunks/schemas-sa2dDEGb.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-DGL81KJa.js.map +0 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as e, F as t, L as n, Q as r, Z as i, _ as a, dt as o, ft as s, gt as c, ht as l, lt as u, mt as d, pt as f, rt as p, st as m, tt as h, vt as g, yt as _ } from "./vue.runtime.esm-bundler-BmggS4HU.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
3
|
function v(e, t) {
|
|
4
4
|
return p() ? (u(e, t), !0) : !1;
|
|
5
5
|
}
|
|
@@ -70,7 +70,7 @@ function M(e = k, t = {}) {
|
|
|
70
70
|
r.value = !0;
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
|
-
isActive:
|
|
73
|
+
isActive: f(r),
|
|
74
74
|
pause: i,
|
|
75
75
|
resume: a,
|
|
76
76
|
eventFilter: (...t) => {
|
|
@@ -94,23 +94,23 @@ function N(e) {
|
|
|
94
94
|
function te(t) {
|
|
95
95
|
return t || e();
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function P(e, t = 200, n = {}) {
|
|
98
98
|
return O(A(t, n), e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
let r = s(g(e)), a =
|
|
100
|
+
function F(e, t = 200, n = {}) {
|
|
101
|
+
let r = s(g(e)), a = P(() => {
|
|
102
102
|
r.value = e.value;
|
|
103
103
|
}, t, n);
|
|
104
104
|
return i(e, () => a()), f(r);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function I(e, t, n = {}) {
|
|
107
107
|
let { eventFilter: r = k, ...a } = n;
|
|
108
108
|
return i(e, O(r, t), a);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function L(e, t, n = {}) {
|
|
111
111
|
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = M(r, { initialState: i });
|
|
112
112
|
return {
|
|
113
|
-
stop:
|
|
113
|
+
stop: I(e, t, {
|
|
114
114
|
...a,
|
|
115
115
|
eventFilter: o
|
|
116
116
|
}),
|
|
@@ -119,10 +119,10 @@ function I(e, t, n = {}) {
|
|
|
119
119
|
isActive: l
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function R(e, r = !0, i) {
|
|
123
123
|
te(i) ? n(e, i) : r ? e() : t(e);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function ne(e, t, n = {}) {
|
|
126
126
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = d(!1), o;
|
|
127
127
|
function s() {
|
|
128
128
|
o &&= (clearTimeout(o), void 0);
|
|
@@ -141,7 +141,7 @@ function re(e, t, n = {}) {
|
|
|
141
141
|
stop: c
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function re(e, t, n = {}) {
|
|
145
145
|
let { eventFilter: r = k, ...a } = n, o = O(r, t), s, c, l;
|
|
146
146
|
if (a.flush === "sync") {
|
|
147
147
|
let t = !1;
|
|
@@ -175,21 +175,21 @@ function ie(e, t, n = {}) {
|
|
|
175
175
|
ignorePrevAsyncUpdates: c
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function ie(e, t, n) {
|
|
179
179
|
return i(e, t, {
|
|
180
180
|
...n,
|
|
181
181
|
immediate: !0
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ae(e, t, n) {
|
|
185
185
|
return i(e, t, {
|
|
186
186
|
...n,
|
|
187
187
|
once: !0
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
//#endregion
|
|
191
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.
|
|
192
|
-
function
|
|
191
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
192
|
+
function oe(e, t, n) {
|
|
193
193
|
let i;
|
|
194
194
|
i = m(n) ? { evaluating: n } : n || {};
|
|
195
195
|
let { lazy: o = !1, flush: c = "sync", evaluating: l = void 0, shallow: u = !0, onError: f = globalThis.reportError ?? w } = i, p = d(!o), h = u ? d(t) : s(t), g = 0;
|
|
@@ -214,21 +214,21 @@ function se(e, t, n) {
|
|
|
214
214
|
}
|
|
215
215
|
}, { flush: c }), o ? a(() => (p.value = !0, h.value)) : h;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var z = y ? window : void 0;
|
|
218
218
|
y && window.document;
|
|
219
|
-
var
|
|
219
|
+
var B = y ? window.navigator : void 0;
|
|
220
220
|
y && window.location;
|
|
221
|
-
function
|
|
221
|
+
function V(e) {
|
|
222
222
|
let t = g(e);
|
|
223
223
|
return t?.$el ?? t;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function H(...e) {
|
|
226
226
|
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = a(() => {
|
|
227
227
|
let t = N(g(e[0])).filter((e) => e != null);
|
|
228
228
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
229
229
|
});
|
|
230
|
-
return
|
|
231
|
-
n.value?.map((e) =>
|
|
230
|
+
return ie(() => [
|
|
231
|
+
n.value?.map((e) => V(e)) ?? [z].filter((e) => e != null),
|
|
232
232
|
N(g(n.value ? e[1] : e[0])),
|
|
233
233
|
N(_(n.value ? e[2] : e[1])),
|
|
234
234
|
g(n.value ? e[3] : e[2])
|
|
@@ -240,23 +240,23 @@ function V(...e) {
|
|
|
240
240
|
});
|
|
241
241
|
}, { flush: "post" });
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
function
|
|
245
|
-
let { window: r =
|
|
243
|
+
var U = !1;
|
|
244
|
+
function W(e, t, n = {}) {
|
|
245
|
+
let { window: r = z, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
246
246
|
if (!r) return s ? {
|
|
247
247
|
stop: w,
|
|
248
248
|
cancel: w,
|
|
249
249
|
trigger: w
|
|
250
250
|
} : w;
|
|
251
|
-
if (T && !
|
|
252
|
-
|
|
251
|
+
if (T && !U) {
|
|
252
|
+
U = !0;
|
|
253
253
|
let e = { passive: !0 };
|
|
254
254
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", w, e)), r.document.documentElement.addEventListener("click", w, e);
|
|
255
255
|
}
|
|
256
256
|
let c = !0, l = (e) => g(i).some((t) => {
|
|
257
257
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
258
258
|
{
|
|
259
|
-
let n =
|
|
259
|
+
let n = V(t);
|
|
260
260
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
261
261
|
}
|
|
262
262
|
});
|
|
@@ -269,7 +269,7 @@ function U(e, t, n = {}) {
|
|
|
269
269
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
270
270
|
}
|
|
271
271
|
let f = (n) => {
|
|
272
|
-
let r =
|
|
272
|
+
let r = V(e);
|
|
273
273
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
274
274
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
275
275
|
c = !0;
|
|
@@ -278,7 +278,7 @@ function U(e, t, n = {}) {
|
|
|
278
278
|
t(n);
|
|
279
279
|
}
|
|
280
280
|
}, p = !1, m = [
|
|
281
|
-
|
|
281
|
+
H(r, "click", (e) => {
|
|
282
282
|
p || (p = !0, setTimeout(() => {
|
|
283
283
|
p = !1;
|
|
284
284
|
}, 0), f(e));
|
|
@@ -286,14 +286,15 @@ function U(e, t, n = {}) {
|
|
|
286
286
|
passive: !0,
|
|
287
287
|
capture: a
|
|
288
288
|
}),
|
|
289
|
-
|
|
290
|
-
let n =
|
|
289
|
+
H(r, "pointerdown", (t) => {
|
|
290
|
+
let n = V(e);
|
|
291
291
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
292
292
|
}, { passive: !0 }),
|
|
293
|
-
o &&
|
|
293
|
+
o && H(r, "blur", (n) => {
|
|
294
294
|
setTimeout(() => {
|
|
295
|
-
let i =
|
|
296
|
-
|
|
295
|
+
let i = V(e), a = r.document.activeElement;
|
|
296
|
+
for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
|
|
297
|
+
a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
297
298
|
}, 0);
|
|
298
299
|
}, { passive: !0 })
|
|
299
300
|
].filter(Boolean), h = () => m.forEach((e) => e());
|
|
@@ -307,22 +308,22 @@ function U(e, t, n = {}) {
|
|
|
307
308
|
}
|
|
308
309
|
} : h;
|
|
309
310
|
}
|
|
310
|
-
function
|
|
311
|
+
function G() {
|
|
311
312
|
let t = d(!1), r = e();
|
|
312
313
|
return r && n(() => {
|
|
313
314
|
t.value = !0;
|
|
314
315
|
}, r), t;
|
|
315
316
|
}
|
|
316
317
|
/* @__NO_SIDE_EFFECTS__ */
|
|
317
|
-
function
|
|
318
|
-
let t =
|
|
318
|
+
function K(e) {
|
|
319
|
+
let t = G();
|
|
319
320
|
return a(() => (t.value, !!e()));
|
|
320
321
|
}
|
|
321
|
-
function
|
|
322
|
-
let { window: r =
|
|
322
|
+
function q(e, t, n = {}) {
|
|
323
|
+
let { window: r = z, ...o } = n, s, c = /* @__PURE__ */ K(() => r && "MutationObserver" in r), l = () => {
|
|
323
324
|
s &&= (s.disconnect(), void 0);
|
|
324
325
|
}, u = i(a(() => {
|
|
325
|
-
let t = N(g(e)).map(
|
|
326
|
+
let t = N(g(e)).map(V).filter(x);
|
|
326
327
|
return new Set(t);
|
|
327
328
|
}), (e) => {
|
|
328
329
|
l(), c.value && e.size && (s = new MutationObserver(t), e.forEach((e) => s.observe(e, o)));
|
|
@@ -338,15 +339,15 @@ function K(e, t, n = {}) {
|
|
|
338
339
|
takeRecords: d
|
|
339
340
|
};
|
|
340
341
|
}
|
|
341
|
-
function
|
|
342
|
-
let { window: i =
|
|
342
|
+
function J(e, t, n = {}) {
|
|
343
|
+
let { window: i = z, document: a = i?.document, flush: o = "sync" } = n;
|
|
343
344
|
if (!i || !a) return w;
|
|
344
345
|
let s, c = (e) => {
|
|
345
346
|
s?.(), s = e;
|
|
346
347
|
}, l = r(() => {
|
|
347
|
-
let n =
|
|
348
|
+
let n = V(e);
|
|
348
349
|
if (n) {
|
|
349
|
-
let { stop: e } =
|
|
350
|
+
let { stop: e } = q(a, (e) => {
|
|
350
351
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
351
352
|
}, {
|
|
352
353
|
window: i,
|
|
@@ -360,19 +361,19 @@ function q(e, t, n = {}) {
|
|
|
360
361
|
};
|
|
361
362
|
return v(u), u;
|
|
362
363
|
}
|
|
363
|
-
function
|
|
364
|
+
function se(e) {
|
|
364
365
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
+
function ce(...e) {
|
|
367
368
|
let t, n, r = {};
|
|
368
369
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
369
|
-
let { target: i =
|
|
370
|
-
return
|
|
370
|
+
let { target: i = z, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = se(t);
|
|
371
|
+
return H(i, a, (e) => {
|
|
371
372
|
e.repeat && g(s) || c(e) && n(e);
|
|
372
373
|
}, o);
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
-
let { window: t =
|
|
375
|
+
function le(e = {}) {
|
|
376
|
+
let { window: t = z, deep: n = !0, triggerOnRemoval: r = !1 } = e, i = e.document ?? t?.document, a = () => {
|
|
376
377
|
let e = i?.activeElement;
|
|
377
378
|
if (n) for (var t; e?.shadowRoot;) e = e == null || (t = e.shadowRoot) == null ? void 0 : t.activeElement;
|
|
378
379
|
return e;
|
|
@@ -384,17 +385,17 @@ function ue(e = {}) {
|
|
|
384
385
|
capture: !0,
|
|
385
386
|
passive: !0
|
|
386
387
|
};
|
|
387
|
-
|
|
388
|
+
H(t, "blur", (e) => {
|
|
388
389
|
e.relatedTarget === null && s();
|
|
389
|
-
}, e),
|
|
390
|
+
}, e), H(t, "focus", s, e);
|
|
390
391
|
}
|
|
391
|
-
return r &&
|
|
392
|
+
return r && J(o, s, { document: i }), s(), o;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
let { controls: n = !1, navigator: r =
|
|
394
|
+
function Y(e, t = {}) {
|
|
395
|
+
let { controls: n = !1, navigator: r = B } = t, i = /* @__PURE__ */ K(() => r && "permissions" in r), a = d(), o = typeof e == "string" ? { name: e } : e, s = d(), c = () => {
|
|
395
396
|
s.value = a.value?.state ?? "prompt";
|
|
396
397
|
};
|
|
397
|
-
|
|
398
|
+
H(a, "change", c, { passive: !0 });
|
|
398
399
|
let u = ee(async () => {
|
|
399
400
|
if (i.value) {
|
|
400
401
|
if (!a.value) try {
|
|
@@ -413,61 +414,73 @@ function J(e, t = {}) {
|
|
|
413
414
|
query: u
|
|
414
415
|
} : s;
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
let { navigator: t =
|
|
418
|
-
async function
|
|
419
|
-
let e = !(
|
|
417
|
+
function ue(e = {}) {
|
|
418
|
+
let { navigator: t = B, read: n = !1, source: r, copiedDuring: i = 1500, legacy: o = !1 } = e, s = /* @__PURE__ */ K(() => t && "clipboard" in t), c = Y("clipboard-read"), l = Y("clipboard-write"), u = a(() => s.value || o), p = d(""), m = d(!1), h = d(!1), _ = ne(() => m.value = !1, i, { immediate: !1 }), v = 0;
|
|
419
|
+
async function y() {
|
|
420
|
+
let e = !(s.value && w(c.value));
|
|
420
421
|
if (!e) try {
|
|
421
422
|
p.value = await t.clipboard.readText();
|
|
422
423
|
} catch {
|
|
423
424
|
e = !0;
|
|
424
425
|
}
|
|
425
|
-
e && (p.value =
|
|
426
|
+
e && (p.value = C());
|
|
426
427
|
}
|
|
427
|
-
|
|
428
|
-
async function
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
428
|
+
u.value && n && H(["copy", "cut"], y, { passive: !0 });
|
|
429
|
+
async function b(e) {
|
|
430
|
+
let n = e ?? g(r);
|
|
431
|
+
if (u.value && n != null) {
|
|
432
|
+
h.value = !0;
|
|
433
|
+
let e = !(s.value && w(l.value));
|
|
434
|
+
if (!e) try {
|
|
435
|
+
let e = x(n);
|
|
436
|
+
await t.clipboard.write([e]);
|
|
433
437
|
} catch {
|
|
434
|
-
|
|
438
|
+
e = !0;
|
|
439
|
+
}
|
|
440
|
+
if (e) if (typeof n == "string") p.value = n, S(n);
|
|
441
|
+
else {
|
|
442
|
+
let e = ++v, t = await n();
|
|
443
|
+
t != null && e === v && (p.value = t, S(t));
|
|
435
444
|
}
|
|
436
|
-
|
|
445
|
+
m.value = !0, _.start(), h.value = !1;
|
|
437
446
|
}
|
|
438
447
|
}
|
|
439
|
-
function
|
|
448
|
+
function x(e) {
|
|
449
|
+
return typeof e == "string" ? (p.value = e, new ClipboardItem({ "text/plain": e })) : new ClipboardItem({ "text/plain": e().then((e = "") => (p.value = e, new Blob([e], { type: "text/plain" }))) });
|
|
450
|
+
}
|
|
451
|
+
function S(e) {
|
|
440
452
|
let t = document.createElement("textarea");
|
|
441
453
|
t.value = e, t.style.position = "absolute", t.style.opacity = "0", t.setAttribute("readonly", ""), document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
|
|
442
454
|
}
|
|
443
|
-
function
|
|
455
|
+
function C() {
|
|
444
456
|
var e, t;
|
|
445
457
|
return ((e = document) == null || (t = e.getSelection) == null || (t = t.call(e)) == null ? void 0 : t.toString()) ?? "";
|
|
446
458
|
}
|
|
447
|
-
function
|
|
459
|
+
function w(e) {
|
|
448
460
|
return e === "granted" || e === "prompt";
|
|
449
461
|
}
|
|
450
462
|
return {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
463
|
+
copyPending: f(h),
|
|
464
|
+
isSupported: u,
|
|
465
|
+
text: f(p),
|
|
466
|
+
copied: f(m),
|
|
467
|
+
copy: b
|
|
455
468
|
};
|
|
456
469
|
}
|
|
457
|
-
function
|
|
470
|
+
function de(e) {
|
|
458
471
|
return JSON.parse(JSON.stringify(e));
|
|
459
472
|
}
|
|
460
|
-
var
|
|
461
|
-
function
|
|
462
|
-
return
|
|
473
|
+
var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Z = "__vueuse_ssr_handlers__", fe = /* @__PURE__ */ pe();
|
|
474
|
+
function pe() {
|
|
475
|
+
return Z in X || (X[Z] = X[Z] || {}), X[Z];
|
|
463
476
|
}
|
|
464
|
-
function
|
|
465
|
-
return
|
|
477
|
+
function me(e, t) {
|
|
478
|
+
return fe[e] || t;
|
|
466
479
|
}
|
|
467
|
-
function
|
|
480
|
+
function he(e) {
|
|
468
481
|
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
469
482
|
}
|
|
470
|
-
var
|
|
483
|
+
var ge = {
|
|
471
484
|
boolean: {
|
|
472
485
|
read: (e) => e === "true",
|
|
473
486
|
write: (e) => String(e)
|
|
@@ -500,29 +513,29 @@ var _e = {
|
|
|
500
513
|
read: (e) => new Date(e),
|
|
501
514
|
write: (e) => e.toISOString()
|
|
502
515
|
}
|
|
503
|
-
},
|
|
504
|
-
function
|
|
505
|
-
let { flush: c = "pre", deep: l = !0, listenToStorageChanges: u = !0, writeDefaults: f = !0, mergeDefaults: p = !1, shallow: m, window: h =
|
|
516
|
+
}, Q = "vueuse-storage";
|
|
517
|
+
function _e(e, n, r, o = {}) {
|
|
518
|
+
let { flush: c = "pre", deep: l = !0, listenToStorageChanges: u = !0, writeDefaults: f = !0, mergeDefaults: p = !1, shallow: m, window: h = z, eventFilter: _, onError: v = (e) => {
|
|
506
519
|
console.error(e);
|
|
507
520
|
}, initOnMounted: y } = o, b = (m ? d : s)(typeof n == "function" ? n() : n), x = a(() => g(e));
|
|
508
521
|
if (!r) try {
|
|
509
|
-
r =
|
|
522
|
+
r = me("getDefaultStorage", () => z?.localStorage)();
|
|
510
523
|
} catch (e) {
|
|
511
524
|
v(e);
|
|
512
525
|
}
|
|
513
526
|
if (!r) return b;
|
|
514
|
-
let S = g(n), C =
|
|
527
|
+
let S = g(n), C = he(S), w = o.serializer ?? ge[C], { pause: T, resume: E } = L(b, (e) => k(e), {
|
|
515
528
|
flush: c,
|
|
516
529
|
deep: l,
|
|
517
530
|
eventFilter: _
|
|
518
531
|
});
|
|
519
532
|
i(x, () => j(), { flush: c });
|
|
520
533
|
let D = !1;
|
|
521
|
-
h && u && (r instanceof Storage ?
|
|
534
|
+
h && u && (r instanceof Storage ? H(h, "storage", (e) => {
|
|
522
535
|
y && !D || j(e);
|
|
523
|
-
}, { passive: !0 }) :
|
|
536
|
+
}, { passive: !0 }) : H(h, Q, (e) => {
|
|
524
537
|
y && !D || M(e);
|
|
525
|
-
})), y ?
|
|
538
|
+
})), y ? R(() => {
|
|
526
539
|
D = !0, j();
|
|
527
540
|
}) : j();
|
|
528
541
|
function O(e, t) {
|
|
@@ -533,7 +546,7 @@ function Q(e, n, r, o = {}) {
|
|
|
533
546
|
newValue: t,
|
|
534
547
|
storageArea: r
|
|
535
548
|
};
|
|
536
|
-
h.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", n) : new CustomEvent(
|
|
549
|
+
h.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", n) : new CustomEvent(Q, { detail: n }));
|
|
537
550
|
}
|
|
538
551
|
}
|
|
539
552
|
function k(e) {
|
|
@@ -626,7 +639,7 @@ function ve(e, t = {}) {
|
|
|
626
639
|
break;
|
|
627
640
|
}
|
|
628
641
|
};
|
|
629
|
-
|
|
642
|
+
H(e, "dragenter", (e) => p(e, "enter")), H(e, "dragover", (e) => p(e, "over")), H(e, "dragleave", (e) => p(e, "leave")), H(e, "drop", (e) => p(e, "drop"));
|
|
630
643
|
}
|
|
631
644
|
return {
|
|
632
645
|
files: r,
|
|
@@ -634,22 +647,22 @@ function ve(e, t = {}) {
|
|
|
634
647
|
};
|
|
635
648
|
}
|
|
636
649
|
function ye(e, t = {}) {
|
|
637
|
-
let { delayEnter: n = 0, delayLeave: r = 0, triggerOnRemoval: i = !1, window: o =
|
|
650
|
+
let { delayEnter: n = 0, delayLeave: r = 0, triggerOnRemoval: i = !1, window: o = z } = t, s = d(!1), c, l = (e) => {
|
|
638
651
|
let t = e ? n : r;
|
|
639
652
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
640
653
|
};
|
|
641
|
-
return o ? (
|
|
654
|
+
return o ? (H(e, "mouseenter", () => l(!0), { passive: !0 }), H(e, "mouseleave", () => l(!1), { passive: !0 }), i && J(a(() => V(e)), () => l(!1)), s) : s;
|
|
642
655
|
}
|
|
643
656
|
function be(e, t, n = {}) {
|
|
644
|
-
let { root: r, rootMargin: o, threshold: s = 0, window: c =
|
|
657
|
+
let { root: r, rootMargin: o, threshold: s = 0, window: c = z, immediate: l = !0 } = n, u = /* @__PURE__ */ K(() => c && "IntersectionObserver" in c), f = a(() => N(g(e)).map(V).filter(x)), p = w, m = d(l), h = u.value ? i(() => [
|
|
645
658
|
f.value,
|
|
646
|
-
|
|
659
|
+
V(r),
|
|
647
660
|
g(o),
|
|
648
661
|
m.value
|
|
649
662
|
], ([e, n, r]) => {
|
|
650
663
|
if (p(), !m.value || !e.length) return;
|
|
651
664
|
let i = new IntersectionObserver(t, {
|
|
652
|
-
root:
|
|
665
|
+
root: V(n),
|
|
653
666
|
rootMargin: r,
|
|
654
667
|
threshold: s
|
|
655
668
|
});
|
|
@@ -674,12 +687,12 @@ function be(e, t, n = {}) {
|
|
|
674
687
|
stop: _
|
|
675
688
|
};
|
|
676
689
|
}
|
|
677
|
-
function
|
|
678
|
-
let { window: n =
|
|
690
|
+
function $(e, t = {}) {
|
|
691
|
+
let { window: n = z, scrollTarget: r, threshold: i = 0, rootMargin: a, once: o = !1, initialValue: s = !1 } = t, c = d(s), l = be(e, (e) => {
|
|
679
692
|
let t = c.value, n = 0;
|
|
680
693
|
for (let r of e) r.time >= n && (n = r.time, t = r.isIntersecting);
|
|
681
|
-
c.value = t, o &&
|
|
682
|
-
l();
|
|
694
|
+
c.value = t, o && ae(c, () => {
|
|
695
|
+
l.stop();
|
|
683
696
|
});
|
|
684
697
|
}, {
|
|
685
698
|
root: r,
|
|
@@ -687,14 +700,17 @@ function xe(e, t = {}) {
|
|
|
687
700
|
threshold: i,
|
|
688
701
|
rootMargin: a
|
|
689
702
|
});
|
|
690
|
-
return
|
|
703
|
+
return t.controls ? {
|
|
704
|
+
...l,
|
|
705
|
+
isVisible: c
|
|
706
|
+
} : c;
|
|
691
707
|
}
|
|
692
|
-
function
|
|
693
|
-
let { initialValue: n = !1, focusVisible: r = !1, preventScroll: o = !1 } = t, s = d(!1), c = a(() =>
|
|
694
|
-
|
|
708
|
+
function xe(e, t = {}) {
|
|
709
|
+
let { initialValue: n = !1, focusVisible: r = !1, preventScroll: o = !1 } = t, s = d(!1), c = a(() => V(e)), l = { passive: !0 };
|
|
710
|
+
H(c, "focus", (e) => {
|
|
695
711
|
var t;
|
|
696
712
|
(!r || (t = e.target).matches?.call(t, ":focus-visible")) && (s.value = !0);
|
|
697
|
-
}, l),
|
|
713
|
+
}, l), H(c, "blur", () => s.value = !1, l);
|
|
698
714
|
let u = a({
|
|
699
715
|
get: () => s.value,
|
|
700
716
|
set(e) {
|
|
@@ -709,25 +725,21 @@ function Se(e, t = {}) {
|
|
|
709
725
|
flush: "post"
|
|
710
726
|
}), { focused: u };
|
|
711
727
|
}
|
|
712
|
-
var
|
|
728
|
+
var Se = "focusin", Ce = "focusout", we = ":focus-within";
|
|
713
729
|
function Te(e, t = {}) {
|
|
714
|
-
let { window: n =
|
|
730
|
+
let { window: n = z } = t, r = a(() => V(e)), i = d(!1), o = a(() => i.value), s = le(t);
|
|
715
731
|
if (!n || !s.value) return { focused: o };
|
|
716
732
|
let c = { passive: !0 };
|
|
717
|
-
return
|
|
733
|
+
return H(r, Se, () => i.value = !0, c), H(r, Ce, () => {
|
|
718
734
|
var e, t;
|
|
719
735
|
return i.value = ((e = r.value) == null || (t = e.matches) == null ? void 0 : t.call(e, we)) ?? !1;
|
|
720
736
|
}, c), { focused: o };
|
|
721
737
|
}
|
|
722
|
-
function Ee(
|
|
723
|
-
let { window: r = R } = n;
|
|
724
|
-
return Q(e, t, r?.localStorage, n);
|
|
725
|
-
}
|
|
726
|
-
function De(n, r, o, c = {}) {
|
|
738
|
+
function Ee(n, r, o, c = {}) {
|
|
727
739
|
var l, u;
|
|
728
740
|
let { clone: d = !1, passive: f = !1, eventName: p, deep: m = !1, defaultValue: h, shouldEmit: g } = c, _ = e(), v = o || _?.emit || (_ == null || (l = _.$emit) == null ? void 0 : l.bind(_)) || (_ == null || (u = _.proxy) == null || (u = u.$emit) == null ? void 0 : u.bind(_?.proxy)), y = p;
|
|
729
741
|
r ||= "modelValue", y ||= `update:${r.toString()}`;
|
|
730
|
-
let x = (e) => d ? typeof d == "function" ? d(e) :
|
|
742
|
+
let x = (e) => d ? typeof d == "function" ? d(e) : de(e) : e, S = () => b(n[r]) ? x(n[r]) : h, C = (e) => {
|
|
731
743
|
g ? g(e) && v(y, e) : v(y, e);
|
|
732
744
|
};
|
|
733
745
|
if (f) {
|
|
@@ -747,6 +759,6 @@ function De(n, r, o, c = {}) {
|
|
|
747
759
|
});
|
|
748
760
|
}
|
|
749
761
|
//#endregion
|
|
750
|
-
export { ve as a,
|
|
762
|
+
export { ve as a, xe as c, _e as d, Ee as f, re as h, ue as i, Te as l, j as m, W as n, ye as o, F as p, ce as r, $ as s, oe as t, q as u };
|
|
751
763
|
|
|
752
|
-
//# sourceMappingURL=dist-
|
|
764
|
+
//# sourceMappingURL=dist-BTnzL-m0.js.map
|