@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.
Files changed (142) hide show
  1. package/dist/_chunks/{Agent-DDAyL-4q.js → Agent-D8YrsP52.js} +15 -11
  2. package/dist/_chunks/Agent-D8YrsP52.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js → PkStreamingMarkdown--CcBvs19.js} +3 -3
  4. package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js.map → PkStreamingMarkdown--CcBvs19.js.map} +1 -1
  5. package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js → PkToolEditSpreadsheet-5vHzEy4P.js} +2 -2
  6. package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js.map → PkToolEditSpreadsheet-5vHzEy4P.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js → PkToolRequestGeolocation-Cj8hTfNF.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js.map → PkToolRequestGeolocation-Cj8hTfNF.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js → PkToolRequestOAuthConnection-BWxR1hV4.js} +2 -2
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js.map → PkToolRequestOAuthConnection-BWxR1hV4.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js → PkToolShowArtifact-BVGN7hV2.js} +2 -2
  12. package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js.map → PkToolShowArtifact-BVGN7hV2.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js → PkToolShowContactForm-Blrwqpl0.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js.map → PkToolShowContactForm-Blrwqpl0.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-DCluttiO.js → PkToolShowForm-BpGHaN6x.js} +3 -3
  16. package/dist/_chunks/{PkToolShowForm-DCluttiO.js.map → PkToolShowForm-BpGHaN6x.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js → PkToolShowImageGallery-CIhIrIcY.js} +2 -2
  18. package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js.map → PkToolShowImageGallery-CIhIrIcY.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js → PkToolShowProductList-BjWKnbyD.js} +2 -2
  20. package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js.map → PkToolShowProductList-BjWKnbyD.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js → PkToolShowSources-8c9RvGV1.js} +3 -3
  22. package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js.map → PkToolShowSources-8c9RvGV1.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js → PkToolShowSuggestedReply-0KahUIlw.js} +2 -2
  24. package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js.map → PkToolShowSuggestedReply-0KahUIlw.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js → PkToolShowVideo-_V_d-PDr.js} +2 -2
  26. package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js.map → PkToolShowVideo-_V_d-PDr.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js → PkToolShowWebPages-D55VEPjK.js} +2 -2
  28. package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js.map → PkToolShowWebPages-D55VEPjK.js.map} +1 -1
  29. package/dist/_chunks/{browser-BJcsjj9S.js → browser-CuMi3Hhg.js} +796 -701
  30. package/dist/_chunks/browser-CuMi3Hhg.js.map +1 -0
  31. package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js → chatImagePolicy-DXkhb-N_.js} +2 -2
  32. package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js.map → chatImagePolicy-DXkhb-N_.js.map} +1 -1
  33. package/dist/_chunks/{markdown-lpamC2tL.js → markdown-c59ir6tw.js} +4 -3
  34. package/dist/_chunks/markdown-c59ir6tw.js.map +1 -0
  35. package/dist/ai-elements.es.js +245 -145
  36. package/dist/ai-elements.es.js.map +1 -1
  37. package/dist-vue/PkChatbot.js +1 -1
  38. package/dist-vue/PkChatbotAuth.js +1 -1
  39. package/dist-vue/PkChatbotEmptyState.js +1 -1
  40. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  41. package/dist-vue/PkChatbotInput.js +1 -1
  42. package/dist-vue/PkChatbotMessages.js +1 -1
  43. package/dist-vue/PkChatbotStepPayload.js +1 -1
  44. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  45. package/dist-vue/PkChatbotSteps.js +1 -1
  46. package/dist-vue/PkChatbotViewChat.js +1 -1
  47. package/dist-vue/PkChatbotViewConversations.js +1 -1
  48. package/dist-vue/PkChatbotViewFiles.js +1 -1
  49. package/dist-vue/PkChatbotViewProfile.js +1 -1
  50. package/dist-vue/_chunks/Agent-dGF8mkG9.js +758 -0
  51. package/dist-vue/_chunks/{Agent-Bd_4UVe4.js.map → Agent-dGF8mkG9.js.map} +1 -1
  52. package/dist-vue/_chunks/{Document-BrMThi12.js → Document-B-oyVh7v.js} +219 -218
  53. package/dist-vue/_chunks/Document-B-oyVh7v.js.map +1 -0
  54. package/dist-vue/_chunks/Media-C6RS-s98.js +139 -0
  55. package/dist-vue/_chunks/Media-C6RS-s98.js.map +1 -0
  56. package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js → PkChatbot-Cm45hwYw.js} +8 -8
  57. package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js.map → PkChatbot-Cm45hwYw.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js → PkChatbotAuth-BMLLTSwK.js} +78 -78
  59. package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js.map → PkChatbotAuth-BMLLTSwK.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js → PkChatbotEmptyState-D2dhInfG.js} +2 -2
  61. package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js.map → PkChatbotEmptyState-D2dhInfG.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js → PkChatbotFeedbackForm-CMFXjoKR.js} +4 -4
  63. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js.map → PkChatbotFeedbackForm-CMFXjoKR.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js → PkChatbotInput-CQdxFbBR.js} +2 -2
  65. package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js.map → PkChatbotInput-CQdxFbBR.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js → PkChatbotMessages-coscJcpy.js} +29 -29
  67. package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js.map → PkChatbotMessages-coscJcpy.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js → PkChatbotStepPayload-DnqFluQZ.js} +2 -2
  69. package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js.map → PkChatbotStepPayload-DnqFluQZ.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js → PkChatbotStepToolDetail-BMslY_BG.js} +3 -3
  71. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js.map → PkChatbotStepToolDetail-BMslY_BG.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js → PkChatbotSteps-7FT6Ju6_.js} +5 -5
  73. package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js.map → PkChatbotSteps-7FT6Ju6_.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkChatbotViewChat-eXFjwNkz.js → PkChatbotViewChat-Cko-Cw6c.js} +205 -198
  75. package/dist-vue/_chunks/PkChatbotViewChat-Cko-Cw6c.js.map +1 -0
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js → PkChatbotViewConversations-DHeFtAfN.js} +2 -2
  77. package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js.map → PkChatbotViewConversations-DHeFtAfN.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js → PkChatbotViewFiles-gqCumfod.js} +3 -3
  79. package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js.map → PkChatbotViewFiles-gqCumfod.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js → PkChatbotViewProfile-B57VRVaO.js} +2 -2
  81. package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js.map → PkChatbotViewProfile-B57VRVaO.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js → PkStreamingMarkdown-BtyWXY2k.js} +3 -3
  83. package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js.map → PkStreamingMarkdown-BtyWXY2k.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js → PkToolEditSpreadsheet-HAskd6d3.js} +2 -2
  85. package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js.map → PkToolEditSpreadsheet-HAskd6d3.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js → PkToolRequestGeolocation-BE22qwxB.js} +2 -2
  87. package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js.map → PkToolRequestGeolocation-BE22qwxB.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js → PkToolRequestOAuthConnection-GfSalEJG.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js.map → PkToolRequestOAuthConnection-GfSalEJG.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js → PkToolShowArtifact-Ritx54_X.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js.map → PkToolShowArtifact-Ritx54_X.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js → PkToolShowContactForm-D30IsZGy.js} +8 -8
  93. package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js.map → PkToolShowContactForm-D30IsZGy.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js → PkToolShowDiagram-PEozSAqU.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js.map → PkToolShowDiagram-PEozSAqU.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js → PkToolShowForm-ZmdM9J9x.js} +4 -4
  97. package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js.map → PkToolShowForm-ZmdM9J9x.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js → PkToolShowImageGallery-Dkjf7Tw_.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js.map → PkToolShowImageGallery-Dkjf7Tw_.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js → PkToolShowProductList-CsHYM8vl.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js.map → PkToolShowProductList-CsHYM8vl.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js → PkToolShowSources-CKZkcPLA.js} +3 -3
  103. package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js.map → PkToolShowSources-CKZkcPLA.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js → PkToolShowSuggestedReply-DjutyiEi.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js.map → PkToolShowSuggestedReply-DjutyiEi.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js → PkToolShowVideo-CKm1fVQs.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js.map → PkToolShowVideo-CKm1fVQs.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js → PkToolShowWebPages-DLEC9cuh.js} +2 -2
  109. package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js.map → PkToolShowWebPages-DLEC9cuh.js.map} +1 -1
  110. package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js → createChatbotApiClient-DSLxswr4.js} +58 -55
  111. package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js.map → createChatbotApiClient-DSLxswr4.js.map} +1 -1
  112. package/dist-vue/_chunks/{index.es-DWf6im7k.js → index.es-C1u3kP7i.js} +14 -14
  113. package/dist-vue/_chunks/{index.es-DWf6im7k.js.map → index.es-C1u3kP7i.js.map} +1 -1
  114. package/dist-vue/_chunks/{schemas-Bt5eFdV0.js → schemas-Bu1lick6.js} +213 -204
  115. package/dist-vue/_chunks/schemas-Bu1lick6.js.map +1 -0
  116. package/dist-vue/_chunks/{useChatbotStore-Dmxnn4xV.js → useChatbotStore-rtl-oKqU.js} +22 -22
  117. package/dist-vue/_chunks/useChatbotStore-rtl-oKqU.js.map +1 -0
  118. package/dist-vue/_chunks/{utils-CGb6Qc_9.js → utils-fxHiCnzf.js} +2 -2
  119. package/dist-vue/_chunks/{utils-CGb6Qc_9.js.map → utils-fxHiCnzf.js.map} +1 -1
  120. package/dist-vue/api.js +1 -1
  121. package/dist-vue/composables.js +97 -7
  122. package/dist-vue/composables.js.map +1 -1
  123. package/dist-vue/index.js +5237 -5073
  124. package/dist-vue/index.js.map +1 -1
  125. package/dist-vue/packages/components/src/chat/useWakeupWatch.d.ts +5 -0
  126. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
  127. package/dist-vue/packages/models/src/schema/Document.d.ts +16 -8
  128. package/dist-vue/packages/models/src/schema/Integration.d.ts +6 -0
  129. package/dist-vue/packages/models/src/schema/Media.d.ts +18 -0
  130. package/dist-vue/packages/models/src/schema/Notification.d.ts +94 -0
  131. package/dist-vue/packages/models/src/schema/Organization.d.ts +35 -1
  132. package/package.json +1 -1
  133. package/dist/_chunks/Agent-DDAyL-4q.js.map +0 -1
  134. package/dist/_chunks/browser-BJcsjj9S.js.map +0 -1
  135. package/dist/_chunks/markdown-lpamC2tL.js.map +0 -1
  136. package/dist-vue/_chunks/Agent-Bd_4UVe4.js +0 -758
  137. package/dist-vue/_chunks/Document-BrMThi12.js.map +0 -1
  138. package/dist-vue/_chunks/Media-Bzv3zEWR.js +0 -135
  139. package/dist-vue/_chunks/Media-Bzv3zEWR.js.map +0 -1
  140. package/dist-vue/_chunks/PkChatbotViewChat-eXFjwNkz.js.map +0 -1
  141. package/dist-vue/_chunks/schemas-Bt5eFdV0.js.map +0 -1
  142. package/dist-vue/_chunks/useChatbotStore-Dmxnn4xV.js.map +0 -1
@@ -1,36 +1,36 @@
1
- import { d as e, r as t, s as n, v as r, x as i } from "./schemas-Bt5eFdV0.js";
2
- import { n as a, o } from "./Media-Bzv3zEWR.js";
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-DWf6im7k.js";
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 = t(["user", "admin"]), D = i().min(8).max(64);
10
- r({
11
- id: i(),
12
- name: i(),
13
- email: i(),
14
- emailVerified: n(),
15
- image: i().nullable(),
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: n().nullable(),
20
- banReason: i().nullable(),
19
+ banned: r().nullable(),
20
+ banReason: e().nullable(),
21
21
  banExpires: o().nullable(),
22
- isAnonymous: n().nullable(),
22
+ isAnonymous: r().nullable(),
23
23
  role: E,
24
- twoFactorEnabled: n().optional()
25
- }), r({
26
- id: i(),
27
- name: i(),
28
- email: i().nullable(),
29
- image: i().nullable(),
30
- isAnonymous: n().nullable(),
31
- banned: n().nullable()
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 = r({
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: i().min(1),
42
- email: e(),
41
+ name: e().min(1),
42
+ email: t(),
43
43
  media: a.optional(),
44
44
  role: E.optional().default("user")
45
- }), r({
46
- id: i(),
47
- name: i(),
48
- email: i(),
49
- emailVerified: n().optional(),
50
- image: i().nullish(),
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: n().nullish(),
54
- banReason: i().nullish(),
55
- banExpires: i().nullish(),
56
- isAnonymous: n().nullish()
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: i().min(1),
60
- email: e(),
61
- rememberMe: n().optional()
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(t, { emit: a }) {
99
- let { t: o } = oe({ useScope: "global" }), _ = t, { canShowImage: v, onImageError: E } = s(), O = C(t, "errorMessage"), H = C(t, "success"), U = a, W = b("sign-in");
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 = r({
107
- email: e(),
106
+ let me = u(() => _.authMethods?.google || _.authMethods?.microsoft), G = i({
107
+ email: t(),
108
108
  password: D,
109
- rememberMe: n().default(!1)
110
- }), he = r({ email: e() }), { 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 });
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(r({ code: i().trim().min(6).max(32) }), { lazyLoad: !0 });
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, n) => {
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)(t.branding?.interface.logo) ? (y(), p("div", j, [m("img", {
182
- src: t.branding?.interface.logo,
183
- alt: t.branding?.name,
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: n[0] ||= (e) => S(E)(t.branding?.interface.logo)
185
+ onError: t[0] ||= (e) => S(E)(n.branding?.interface.logo)
186
186
  }, null, 40, M)])) : f("", !0),
187
- m("div", N, [t.branding?.name ? (y(), p("h1", P, x(t.branding.name), 1)) : f("", !0), (y(), d(ae(t.branding?.name ? "h2" : "h1"), { class: "text-word-3 mb-0" }, {
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: t.loading,
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: t.loading,
214
- disabled: t.loading,
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: n[1] ||= (e) => $("backup")
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: n[2] ||= (e) => $("totp")
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: t.loading,
239
+ disabled: n.loading,
240
240
  label: S(o)("twoFactor.sendAgain"),
241
- onClick: n[3] ||= (e) => U("send-two-factor-code")
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: t.loading,
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: n[4] ||= (e) => W.value = "reset"
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: t.loading,
280
- disabled: t.loading,
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: t.loading,
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: t.loading,
327
- disabled: t.loading,
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: t.loading,
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: t.loading,
352
- disabled: t.loading,
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(() => [t.authMethods?.google ? (y(), d(i, {
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: t.loading,
372
+ disabled: n.loading,
373
373
  label: S(o)("action.signInWithSocialProvider", { provider: "Google" }),
374
- onClick: n[5] ||= (e) => Y("google")
375
- }, null, 8, ["disabled", "label"])) : f("", !0), t.authMethods?.microsoft ? (y(), d(i, {
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: t.loading,
380
+ disabled: n.loading,
381
381
  label: S(o)("action.signInWithSocialProvider", { provider: "Microsoft" }),
382
- onClick: n[6] ||= (e) => Y("microsoft")
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: n[7] ||= (e) => U("cancel-two-factor")
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: n[8] ||= (e) => W.value = "sign-up"
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: n[9] ||= (e) => W.value = "sign-in"
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: n[10] ||= (e) => W.value = "sign-in"
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-DaMi8miP.js.map
421
+ //# sourceMappingURL=PkChatbotAuth-BMLLTSwK.js.map