@8wave/ai-elements 0.117.0 → 0.118.0-beta.16
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/{Agent-DDAyL-4q.js → Agent-D8YrsP52.js} +15 -11
- package/dist/_chunks/Agent-D8YrsP52.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js → PkStreamingMarkdown--CcBvs19.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js.map → PkStreamingMarkdown--CcBvs19.js.map} +1 -1
- package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js → PkToolEditSpreadsheet-5vHzEy4P.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js.map → PkToolEditSpreadsheet-5vHzEy4P.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js → PkToolRequestGeolocation-Cj8hTfNF.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js.map → PkToolRequestGeolocation-Cj8hTfNF.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js → PkToolRequestOAuthConnection-BWxR1hV4.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js.map → PkToolRequestOAuthConnection-BWxR1hV4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js → PkToolShowArtifact-BVGN7hV2.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js.map → PkToolShowArtifact-BVGN7hV2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js → PkToolShowContactForm-Blrwqpl0.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js.map → PkToolShowContactForm-Blrwqpl0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DCluttiO.js → PkToolShowForm-BpGHaN6x.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-DCluttiO.js.map → PkToolShowForm-BpGHaN6x.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js → PkToolShowImageGallery-CIhIrIcY.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js.map → PkToolShowImageGallery-CIhIrIcY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js → PkToolShowProductList-BjWKnbyD.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js.map → PkToolShowProductList-BjWKnbyD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js → PkToolShowSources-8c9RvGV1.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js.map → PkToolShowSources-8c9RvGV1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js → PkToolShowSuggestedReply-0KahUIlw.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js.map → PkToolShowSuggestedReply-0KahUIlw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js → PkToolShowVideo-_V_d-PDr.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js.map → PkToolShowVideo-_V_d-PDr.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js → PkToolShowWebPages-D55VEPjK.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js.map → PkToolShowWebPages-D55VEPjK.js.map} +1 -1
- package/dist/_chunks/{browser-BJcsjj9S.js → browser-CuMi3Hhg.js} +796 -701
- package/dist/_chunks/browser-CuMi3Hhg.js.map +1 -0
- package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js → chatImagePolicy-DXkhb-N_.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js.map → chatImagePolicy-DXkhb-N_.js.map} +1 -1
- package/dist/_chunks/{markdown-lpamC2tL.js → markdown-c59ir6tw.js} +4 -3
- package/dist/_chunks/markdown-c59ir6tw.js.map +1 -0
- package/dist/ai-elements.es.js +245 -145
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.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/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/Agent-dGF8mkG9.js +758 -0
- package/dist-vue/_chunks/{Agent-Bd_4UVe4.js.map → Agent-dGF8mkG9.js.map} +1 -1
- package/dist-vue/_chunks/{Document-BrMThi12.js → Document-B-oyVh7v.js} +219 -218
- package/dist-vue/_chunks/Document-B-oyVh7v.js.map +1 -0
- package/dist-vue/_chunks/Media-C6RS-s98.js +139 -0
- package/dist-vue/_chunks/Media-C6RS-s98.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js → PkChatbot-Cm45hwYw.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js.map → PkChatbot-Cm45hwYw.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js → PkChatbotAuth-BMLLTSwK.js} +78 -78
- package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js.map → PkChatbotAuth-BMLLTSwK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js → PkChatbotEmptyState-D2dhInfG.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js.map → PkChatbotEmptyState-D2dhInfG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js → PkChatbotFeedbackForm-CMFXjoKR.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js.map → PkChatbotFeedbackForm-CMFXjoKR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js → PkChatbotInput-CQdxFbBR.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js.map → PkChatbotInput-CQdxFbBR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js → PkChatbotMessages-coscJcpy.js} +29 -29
- package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js.map → PkChatbotMessages-coscJcpy.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js → PkChatbotStepPayload-DnqFluQZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js.map → PkChatbotStepPayload-DnqFluQZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js → PkChatbotStepToolDetail-BMslY_BG.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js.map → PkChatbotStepToolDetail-BMslY_BG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js → PkChatbotSteps-7FT6Ju6_.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js.map → PkChatbotSteps-7FT6Ju6_.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-eXFjwNkz.js → PkChatbotViewChat-Cko-Cw6c.js} +205 -198
- package/dist-vue/_chunks/PkChatbotViewChat-Cko-Cw6c.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js → PkChatbotViewConversations-DHeFtAfN.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js.map → PkChatbotViewConversations-DHeFtAfN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js → PkChatbotViewFiles-gqCumfod.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js.map → PkChatbotViewFiles-gqCumfod.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js → PkChatbotViewProfile-B57VRVaO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js.map → PkChatbotViewProfile-B57VRVaO.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js → PkStreamingMarkdown-BtyWXY2k.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js.map → PkStreamingMarkdown-BtyWXY2k.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js → PkToolEditSpreadsheet-HAskd6d3.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js.map → PkToolEditSpreadsheet-HAskd6d3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js → PkToolRequestGeolocation-BE22qwxB.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js.map → PkToolRequestGeolocation-BE22qwxB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js → PkToolRequestOAuthConnection-GfSalEJG.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js.map → PkToolRequestOAuthConnection-GfSalEJG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js → PkToolShowArtifact-Ritx54_X.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js.map → PkToolShowArtifact-Ritx54_X.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js → PkToolShowContactForm-D30IsZGy.js} +8 -8
- package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js.map → PkToolShowContactForm-D30IsZGy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js → PkToolShowDiagram-PEozSAqU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js.map → PkToolShowDiagram-PEozSAqU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js → PkToolShowForm-ZmdM9J9x.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js.map → PkToolShowForm-ZmdM9J9x.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js → PkToolShowImageGallery-Dkjf7Tw_.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js.map → PkToolShowImageGallery-Dkjf7Tw_.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js → PkToolShowProductList-CsHYM8vl.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js.map → PkToolShowProductList-CsHYM8vl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js → PkToolShowSources-CKZkcPLA.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js.map → PkToolShowSources-CKZkcPLA.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js → PkToolShowSuggestedReply-DjutyiEi.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js.map → PkToolShowSuggestedReply-DjutyiEi.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js → PkToolShowVideo-CKm1fVQs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js.map → PkToolShowVideo-CKm1fVQs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js → PkToolShowWebPages-DLEC9cuh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js.map → PkToolShowWebPages-DLEC9cuh.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js → createChatbotApiClient-DSLxswr4.js} +58 -55
- package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js.map → createChatbotApiClient-DSLxswr4.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-DWf6im7k.js → index.es-C1u3kP7i.js} +14 -14
- package/dist-vue/_chunks/{index.es-DWf6im7k.js.map → index.es-C1u3kP7i.js.map} +1 -1
- package/dist-vue/_chunks/{schemas-Bt5eFdV0.js → schemas-Bu1lick6.js} +213 -204
- package/dist-vue/_chunks/schemas-Bu1lick6.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-Dmxnn4xV.js → useChatbotStore-rtl-oKqU.js} +22 -22
- package/dist-vue/_chunks/useChatbotStore-rtl-oKqU.js.map +1 -0
- package/dist-vue/_chunks/{utils-CGb6Qc_9.js → utils-fxHiCnzf.js} +2 -2
- package/dist-vue/_chunks/{utils-CGb6Qc_9.js.map → utils-fxHiCnzf.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +97 -7
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +5237 -5073
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/components/src/chat/useWakeupWatch.d.ts +5 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Document.d.ts +16 -8
- package/dist-vue/packages/models/src/schema/Integration.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/Media.d.ts +18 -0
- package/dist-vue/packages/models/src/schema/Notification.d.ts +94 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +35 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-DDAyL-4q.js.map +0 -1
- package/dist/_chunks/browser-BJcsjj9S.js.map +0 -1
- package/dist/_chunks/markdown-lpamC2tL.js.map +0 -1
- package/dist-vue/_chunks/Agent-Bd_4UVe4.js +0 -758
- package/dist-vue/_chunks/Document-BrMThi12.js.map +0 -1
- package/dist-vue/_chunks/Media-Bzv3zEWR.js +0 -135
- package/dist-vue/_chunks/Media-Bzv3zEWR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-eXFjwNkz.js.map +0 -1
- package/dist-vue/_chunks/schemas-Bt5eFdV0.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-Dmxnn4xV.js.map +0 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as a, o } from "./Media-
|
|
1
|
+
import { S as e, d as t, r as n, s as r, v as i } from "./schemas-Bu1lick6.js";
|
|
2
|
+
import { n as a, o } from "./Media-C6RS-s98.js";
|
|
3
3
|
import { t as s } from "./useImageFallback-5vQIO0pC.js";
|
|
4
|
-
import { t as c } from "./index.es-
|
|
4
|
+
import { t as c } from "./index.es-C1u3kP7i.js";
|
|
5
5
|
import { VvAlert as ee, VvButton as te, VvButtonGroup as ne, VvIcon as re } from "@volverjs/ui-vue/components";
|
|
6
6
|
import { Fragment as l, Transition as ie, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, mergeModels as v, openBlock as y, ref as b, resolveDynamicComponent as ae, toDisplayString as x, unref as S, useModel as C, watch as w, withCtx as T } from "vue";
|
|
7
7
|
import { useI18n as oe } from "vue-i18n";
|
|
8
8
|
//#region ../../packages/models/src/schema/User.ts
|
|
9
|
-
var E =
|
|
10
|
-
|
|
11
|
-
id:
|
|
12
|
-
name:
|
|
13
|
-
email:
|
|
14
|
-
emailVerified:
|
|
15
|
-
image:
|
|
9
|
+
var E = n(["user", "admin"]), D = e().min(8).max(64);
|
|
10
|
+
i({
|
|
11
|
+
id: e(),
|
|
12
|
+
name: e(),
|
|
13
|
+
email: e(),
|
|
14
|
+
emailVerified: r(),
|
|
15
|
+
image: e().nullable(),
|
|
16
16
|
media: a.optional().nullable(),
|
|
17
17
|
createdAt: o(),
|
|
18
18
|
updatedAt: o(),
|
|
19
|
-
banned:
|
|
20
|
-
banReason:
|
|
19
|
+
banned: r().nullable(),
|
|
20
|
+
banReason: e().nullable(),
|
|
21
21
|
banExpires: o().nullable(),
|
|
22
|
-
isAnonymous:
|
|
22
|
+
isAnonymous: r().nullable(),
|
|
23
23
|
role: E,
|
|
24
|
-
twoFactorEnabled:
|
|
25
|
-
}),
|
|
26
|
-
id:
|
|
27
|
-
name:
|
|
28
|
-
email:
|
|
29
|
-
image:
|
|
30
|
-
isAnonymous:
|
|
31
|
-
banned:
|
|
24
|
+
twoFactorEnabled: r().optional()
|
|
25
|
+
}), i({
|
|
26
|
+
id: e(),
|
|
27
|
+
name: e(),
|
|
28
|
+
email: e().nullable(),
|
|
29
|
+
image: e().nullable(),
|
|
30
|
+
isAnonymous: r().nullable(),
|
|
31
|
+
banned: r().nullable()
|
|
32
32
|
});
|
|
33
|
-
var O =
|
|
33
|
+
var O = i({
|
|
34
34
|
password: D,
|
|
35
35
|
passwordConfirmation: D
|
|
36
36
|
}).refine((e) => e.password === e.passwordConfirmation, {
|
|
@@ -38,27 +38,27 @@ var O = r({
|
|
|
38
38
|
path: ["passwordConfirmation"]
|
|
39
39
|
});
|
|
40
40
|
O.extend({ currentPassword: D }), O.extend({
|
|
41
|
-
name:
|
|
42
|
-
email:
|
|
41
|
+
name: e().min(1),
|
|
42
|
+
email: t(),
|
|
43
43
|
media: a.optional(),
|
|
44
44
|
role: E.optional().default("user")
|
|
45
|
-
}),
|
|
46
|
-
id:
|
|
47
|
-
name:
|
|
48
|
-
email:
|
|
49
|
-
emailVerified:
|
|
50
|
-
image:
|
|
45
|
+
}), i({
|
|
46
|
+
id: e(),
|
|
47
|
+
name: e(),
|
|
48
|
+
email: e(),
|
|
49
|
+
emailVerified: r().optional(),
|
|
50
|
+
image: e().nullish(),
|
|
51
51
|
role: E,
|
|
52
52
|
media: a.optional().nullable(),
|
|
53
|
-
banned:
|
|
54
|
-
banReason:
|
|
55
|
-
banExpires:
|
|
56
|
-
isAnonymous:
|
|
53
|
+
banned: r().nullish(),
|
|
54
|
+
banReason: e().nullish(),
|
|
55
|
+
banExpires: e().nullish(),
|
|
56
|
+
isAnonymous: r().nullish()
|
|
57
57
|
});
|
|
58
58
|
var se = O.extend({
|
|
59
|
-
name:
|
|
60
|
-
email:
|
|
61
|
-
rememberMe:
|
|
59
|
+
name: e().min(1),
|
|
60
|
+
email: t(),
|
|
61
|
+
rememberMe: r().optional()
|
|
62
62
|
}), ce = { class: "pk-chatbot-auth flex flex-col items-center justify-center w-full min-h-full p-lg overflow-y-auto" }, le = { class: "pk-chatbot-auth__flip w-full max-w-384 mx-auto my-auto" }, ue = { class: "pk-chatbot-auth__success-icon w-64 h-64 border border-surface-3 rounded-full bg-surface flex items-center justify-center overflow-hidden bg-surface mx-auto mb-md" }, de = { class: "font-bold text-18 mb-xs" }, fe = { class: "mb-lg text-16 text-word-3" }, k = {
|
|
63
63
|
key: "form",
|
|
64
64
|
class: "pk-chatbot-auth__flip-card flex flex-col"
|
|
@@ -95,19 +95,19 @@ var se = O.extend({
|
|
|
95
95
|
"update:errorMessage",
|
|
96
96
|
"update:success"
|
|
97
97
|
], ["update:errorMessage", "update:success"]),
|
|
98
|
-
setup(
|
|
99
|
-
let { t: o } = oe({ useScope: "global" }), _ =
|
|
98
|
+
setup(n, { emit: a }) {
|
|
99
|
+
let { t: o } = oe({ useScope: "global" }), _ = n, { canShowImage: v, onImageError: E } = s(), O = C(n, "errorMessage"), H = C(n, "success"), U = a, W = b("sign-in");
|
|
100
100
|
w(W, () => {
|
|
101
101
|
O.value = void 0, H.value = void 0;
|
|
102
102
|
});
|
|
103
103
|
function pe() {
|
|
104
104
|
H.value = void 0, W.value = "sign-in";
|
|
105
105
|
}
|
|
106
|
-
let me = u(() => _.authMethods?.google || _.authMethods?.microsoft), G =
|
|
107
|
-
email:
|
|
106
|
+
let me = u(() => _.authMethods?.google || _.authMethods?.microsoft), G = i({
|
|
107
|
+
email: t(),
|
|
108
108
|
password: D,
|
|
109
|
-
rememberMe:
|
|
110
|
-
}), he =
|
|
109
|
+
rememberMe: r().default(!1)
|
|
110
|
+
}), he = i({ email: t() }), { VvForm: ge, VvFormField: K } = c(G, { lazyLoad: !0 }), { VvForm: _e, VvFormField: q, clear: ve } = c(se, { lazyLoad: !0 }), { VvForm: ye, VvFormField: be, clear: xe } = c(he, { lazyLoad: !0 });
|
|
111
111
|
w(H, (e) => {
|
|
112
112
|
e && (ve(), xe());
|
|
113
113
|
});
|
|
@@ -135,7 +135,7 @@ var se = O.extend({
|
|
|
135
135
|
function Y(e) {
|
|
136
136
|
U("social", e);
|
|
137
137
|
}
|
|
138
|
-
let X = u(() => !!_.twoFactorMethods?.length), Z = b("totp"), { VvForm: Ee, VvFormField: De, clear: Q } = c(
|
|
138
|
+
let X = u(() => !!_.twoFactorMethods?.length), Z = b("totp"), { VvForm: Ee, VvFormField: De, clear: Q } = c(i({ code: e().trim().min(6).max(32) }), { lazyLoad: !0 });
|
|
139
139
|
w(() => _.twoFactorMethods, (e) => {
|
|
140
140
|
e?.length && (Z.value = e.includes("totp") ? "totp" : "otp", Q(), Z.value === "otp" && U("send-two-factor-code"));
|
|
141
141
|
}, { immediate: !0 });
|
|
@@ -149,7 +149,7 @@ var se = O.extend({
|
|
|
149
149
|
code: e.code.trim()
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
return (e,
|
|
152
|
+
return (e, t) => {
|
|
153
153
|
let r = re, i = te, a = ee, s = ne;
|
|
154
154
|
return y(), p("div", ce, [m("div", le, [g(ie, {
|
|
155
155
|
name: "pk-flip",
|
|
@@ -178,13 +178,13 @@ var se = O.extend({
|
|
|
178
178
|
onClick: pe
|
|
179
179
|
}, null, 8, ["label"])
|
|
180
180
|
], 512)) : (y(), p("div", k, [m("div", A, [
|
|
181
|
-
S(v)(
|
|
182
|
-
src:
|
|
183
|
-
alt:
|
|
181
|
+
S(v)(n.branding?.interface.logo) ? (y(), p("div", j, [m("img", {
|
|
182
|
+
src: n.branding?.interface.logo,
|
|
183
|
+
alt: n.branding?.name,
|
|
184
184
|
class: "w-64 h-64 border border-surface-3 rounded-full overflow-hidden bg-surface object-contain",
|
|
185
|
-
onError:
|
|
185
|
+
onError: t[0] ||= (e) => S(E)(n.branding?.interface.logo)
|
|
186
186
|
}, null, 40, M)])) : f("", !0),
|
|
187
|
-
m("div", N, [
|
|
187
|
+
m("div", N, [n.branding?.name ? (y(), p("h1", P, x(n.branding.name), 1)) : f("", !0), (y(), d(ae(n.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
|
|
188
188
|
default: T(() => [X.value ? (y(), p(l, { key: 0 }, [h(x(S(o)("twoFactor.challengeTitle")), 1)], 64)) : W.value === "sign-in" ? (y(), p(l, { key: 1 }, [h(x(S(o)("auth.signInTitle")), 1)], 64)) : W.value === "sign-up" ? (y(), p(l, { key: 2 }, [h(x(S(o)("auth.signUpTitle")), 1)], 64)) : W.value === "reset" ? (y(), p(l, { key: 3 }, [h(x(S(o)("auth.resetTitle")), 1)], 64)) : f("", !0)]),
|
|
189
189
|
_: 1
|
|
190
190
|
}))]),
|
|
@@ -198,7 +198,7 @@ var se = O.extend({
|
|
|
198
198
|
m("p", F, x(Oe.value), 1),
|
|
199
199
|
g(S(Ee), {
|
|
200
200
|
class: "flex flex-col",
|
|
201
|
-
readonly:
|
|
201
|
+
readonly: n.loading,
|
|
202
202
|
onSubmit: ke
|
|
203
203
|
}, {
|
|
204
204
|
default: T(() => [g(S(De), {
|
|
@@ -210,8 +210,8 @@ var se = O.extend({
|
|
|
210
210
|
}, null, 8, ["autocomplete", "label"]), g(i, {
|
|
211
211
|
type: "submit",
|
|
212
212
|
modifiers: "primary",
|
|
213
|
-
loading:
|
|
214
|
-
disabled:
|
|
213
|
+
loading: n.loading,
|
|
214
|
+
disabled: n.loading,
|
|
215
215
|
label: S(o)("twoFactor.verify")
|
|
216
216
|
}, null, 8, [
|
|
217
217
|
"loading",
|
|
@@ -225,25 +225,25 @@ var se = O.extend({
|
|
|
225
225
|
type: "button",
|
|
226
226
|
modifiers: "link",
|
|
227
227
|
label: S(o)("twoFactor.useBackupCode"),
|
|
228
|
-
onClick:
|
|
228
|
+
onClick: t[1] ||= (e) => $("backup")
|
|
229
229
|
}, null, 8, ["label"])) : Z.value === "backup" ? (y(), d(i, {
|
|
230
230
|
key: 1,
|
|
231
231
|
type: "button",
|
|
232
232
|
modifiers: "link",
|
|
233
233
|
label: S(o)("twoFactor.useApp"),
|
|
234
|
-
onClick:
|
|
234
|
+
onClick: t[2] ||= (e) => $("totp")
|
|
235
235
|
}, null, 8, ["label"])) : (y(), d(i, {
|
|
236
236
|
key: 2,
|
|
237
237
|
type: "button",
|
|
238
238
|
modifiers: "link",
|
|
239
|
-
disabled:
|
|
239
|
+
disabled: n.loading,
|
|
240
240
|
label: S(o)("twoFactor.sendAgain"),
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: t[3] ||= (e) => U("send-two-factor-code")
|
|
242
242
|
}, null, 8, ["disabled", "label"]))])
|
|
243
243
|
], 64)) : W.value === "sign-in" ? (y(), d(S(ge), {
|
|
244
244
|
key: 3,
|
|
245
245
|
class: "flex flex-col",
|
|
246
|
-
readonly:
|
|
246
|
+
readonly: n.loading,
|
|
247
247
|
onSubmit: Ce
|
|
248
248
|
}, {
|
|
249
249
|
default: T(() => [m("div", L, [
|
|
@@ -265,7 +265,7 @@ var se = O.extend({
|
|
|
265
265
|
type: "button",
|
|
266
266
|
modifiers: "link",
|
|
267
267
|
label: S(o)("action.forgetPassword"),
|
|
268
|
-
onClick:
|
|
268
|
+
onClick: t[4] ||= (e) => W.value = "reset"
|
|
269
269
|
}, null, 8, ["label"])]),
|
|
270
270
|
g(S(K), {
|
|
271
271
|
name: "rememberMe",
|
|
@@ -276,8 +276,8 @@ var se = O.extend({
|
|
|
276
276
|
]), g(i, {
|
|
277
277
|
type: "submit",
|
|
278
278
|
modifiers: "primary",
|
|
279
|
-
loading:
|
|
280
|
-
disabled:
|
|
279
|
+
loading: n.loading,
|
|
280
|
+
disabled: n.loading,
|
|
281
281
|
label: S(o)("action.signIn")
|
|
282
282
|
}, null, 8, [
|
|
283
283
|
"loading",
|
|
@@ -288,7 +288,7 @@ var se = O.extend({
|
|
|
288
288
|
}, 8, ["readonly"])) : W.value === "sign-up" ? (y(), d(S(_e), {
|
|
289
289
|
key: 4,
|
|
290
290
|
class: "flex flex-col",
|
|
291
|
-
readonly:
|
|
291
|
+
readonly: n.loading,
|
|
292
292
|
onSubmit: we
|
|
293
293
|
}, {
|
|
294
294
|
default: T(() => [m("div", z, [
|
|
@@ -323,8 +323,8 @@ var se = O.extend({
|
|
|
323
323
|
]), g(i, {
|
|
324
324
|
type: "submit",
|
|
325
325
|
modifiers: "primary",
|
|
326
|
-
loading:
|
|
327
|
-
disabled:
|
|
326
|
+
loading: n.loading,
|
|
327
|
+
disabled: n.loading,
|
|
328
328
|
label: S(o)("action.continue")
|
|
329
329
|
}, null, 8, [
|
|
330
330
|
"loading",
|
|
@@ -335,7 +335,7 @@ var se = O.extend({
|
|
|
335
335
|
}, 8, ["readonly"])) : W.value === "reset" ? (y(), d(S(ye), {
|
|
336
336
|
key: 5,
|
|
337
337
|
class: "flex flex-col",
|
|
338
|
-
readonly:
|
|
338
|
+
readonly: n.loading,
|
|
339
339
|
onSubmit: Te
|
|
340
340
|
}, {
|
|
341
341
|
default: T(() => [g(S(be), {
|
|
@@ -348,8 +348,8 @@ var se = O.extend({
|
|
|
348
348
|
default: T(() => [g(i, {
|
|
349
349
|
type: "submit",
|
|
350
350
|
modifiers: "primary",
|
|
351
|
-
loading:
|
|
352
|
-
disabled:
|
|
351
|
+
loading: n.loading,
|
|
352
|
+
disabled: n.loading,
|
|
353
353
|
label: S(o)("action.submit")
|
|
354
354
|
}, null, 8, [
|
|
355
355
|
"loading",
|
|
@@ -364,22 +364,22 @@ var se = O.extend({
|
|
|
364
364
|
modifiers: "vertical",
|
|
365
365
|
class: "gap-xs mt-xs"
|
|
366
366
|
}, {
|
|
367
|
-
default: T(() => [
|
|
367
|
+
default: T(() => [n.authMethods?.google ? (y(), d(i, {
|
|
368
368
|
key: 0,
|
|
369
369
|
type: "button",
|
|
370
370
|
modifiers: "secondary",
|
|
371
371
|
icon: "logos:google-icon",
|
|
372
|
-
disabled:
|
|
372
|
+
disabled: n.loading,
|
|
373
373
|
label: S(o)("action.signInWithSocialProvider", { provider: "Google" }),
|
|
374
|
-
onClick:
|
|
375
|
-
}, null, 8, ["disabled", "label"])) : f("", !0),
|
|
374
|
+
onClick: t[5] ||= (e) => Y("google")
|
|
375
|
+
}, null, 8, ["disabled", "label"])) : f("", !0), n.authMethods?.microsoft ? (y(), d(i, {
|
|
376
376
|
key: 1,
|
|
377
377
|
type: "button",
|
|
378
378
|
modifiers: "secondary",
|
|
379
379
|
icon: "logos:microsoft-icon",
|
|
380
|
-
disabled:
|
|
380
|
+
disabled: n.loading,
|
|
381
381
|
label: S(o)("action.signInWithSocialProvider", { provider: "Microsoft" }),
|
|
382
|
-
onClick:
|
|
382
|
+
onClick: t[6] ||= (e) => Y("microsoft")
|
|
383
383
|
}, null, 8, ["disabled", "label"])) : f("", !0)]),
|
|
384
384
|
_: 1
|
|
385
385
|
})], 64)) : f("", !0)
|
|
@@ -389,26 +389,26 @@ var se = O.extend({
|
|
|
389
389
|
modifiers: "link",
|
|
390
390
|
icon: "chevron-left",
|
|
391
391
|
label: S(o)("action.backToSignIn"),
|
|
392
|
-
onClick:
|
|
392
|
+
onClick: t[7] ||= (e) => U("cancel-two-factor")
|
|
393
393
|
}, null, 8, ["label"])) : W.value === "sign-in" ? (y(), p(l, { key: 1 }, [h(x(S(o)("auth.noAccount")) + " ", 1), g(i, {
|
|
394
394
|
type: "button",
|
|
395
395
|
modifiers: "link",
|
|
396
396
|
class: "font-semibold",
|
|
397
397
|
label: S(o)("action.signUp"),
|
|
398
|
-
onClick:
|
|
398
|
+
onClick: t[8] ||= (e) => W.value = "sign-up"
|
|
399
399
|
}, null, 8, ["label"])], 64)) : W.value === "sign-up" ? (y(), p(l, { key: 2 }, [h(x(S(o)("auth.haveAccount")) + " ", 1), g(i, {
|
|
400
400
|
type: "button",
|
|
401
401
|
modifiers: "link",
|
|
402
402
|
class: "font-semibold",
|
|
403
403
|
label: S(o)("action.signIn"),
|
|
404
|
-
onClick:
|
|
404
|
+
onClick: t[9] ||= (e) => W.value = "sign-in"
|
|
405
405
|
}, null, 8, ["label"])], 64)) : (y(), d(i, {
|
|
406
406
|
key: 3,
|
|
407
407
|
type: "button",
|
|
408
408
|
modifiers: "link",
|
|
409
409
|
icon: "chevron-left",
|
|
410
410
|
label: S(o)("action.backToSignIn"),
|
|
411
|
-
onClick:
|
|
411
|
+
onClick: t[10] ||= (e) => W.value = "sign-in"
|
|
412
412
|
}, null, 8, ["label"]))])]))]),
|
|
413
413
|
_: 1
|
|
414
414
|
})])]);
|
|
@@ -418,4 +418,4 @@ var se = O.extend({
|
|
|
418
418
|
//#endregion
|
|
419
419
|
export { H as t };
|
|
420
420
|
|
|
421
|
-
//# sourceMappingURL=PkChatbotAuth-
|
|
421
|
+
//# sourceMappingURL=PkChatbotAuth-BMLLTSwK.js.map
|