@8wave/ai-elements 0.99.0-beta.1 → 0.99.0-beta.2

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 (156) hide show
  1. package/{dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js → dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js} +379 -362
  2. package/dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js.map +1 -0
  3. package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js → PkToolRequestGeolocation-B73evGBg.js} +2 -2
  4. package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js.map → PkToolRequestGeolocation-B73evGBg.js.map} +1 -1
  5. package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js → PkToolRequestOAuthConnection-BWP5dsK_.js} +3 -3
  6. package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js.map → PkToolRequestOAuthConnection-BWP5dsK_.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js → PkToolShowArtifact-bYYaMGxq.js} +7 -7
  8. package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js.map → PkToolShowArtifact-bYYaMGxq.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js → PkToolShowCalendarEvent-DdEWaTj-.js} +4 -4
  10. package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js.map → PkToolShowCalendarEvent-DdEWaTj-.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js → PkToolShowComparison-Dcar7HPW.js} +4 -4
  12. package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js.map → PkToolShowComparison-Dcar7HPW.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js → PkToolShowContactForm-DtjVW-n6.js} +13 -13
  14. package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js.map → PkToolShowContactForm-DtjVW-n6.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js → PkToolShowDiagram-X35nsoIY.js} +8 -8
  16. package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js.map → PkToolShowDiagram-X35nsoIY.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js → PkToolShowEmail-jVoK8qEh.js} +4 -4
  18. package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js.map → PkToolShowEmail-jVoK8qEh.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowForm-dFuoqTPs.js → PkToolShowForm-BP8asXtz.js} +101 -79
  20. package/dist/_chunks/PkToolShowForm-BP8asXtz.js.map +1 -0
  21. package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js → PkToolShowImageGallery-WQL3T4Hr.js} +2 -2
  22. package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js.map → PkToolShowImageGallery-WQL3T4Hr.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js → PkToolShowLocation-w2t7lKpb.js} +4 -4
  24. package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js.map → PkToolShowLocation-w2t7lKpb.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js → PkToolShowMessage-BPo7WPim.js} +4 -4
  26. package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js.map → PkToolShowMessage-BPo7WPim.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowProductList-puiPFItN.js → PkToolShowProductList-BbY4ni7Y.js} +2 -2
  28. package/dist/_chunks/{PkToolShowProductList-puiPFItN.js.map → PkToolShowProductList-BbY4ni7Y.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js → PkToolShowQrCode-CN0ms27N.js} +4 -4
  30. package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js.map → PkToolShowQrCode-CN0ms27N.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js → PkToolShowSources-D2tBcx7n.js} +18 -18
  32. package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js.map → PkToolShowSources-D2tBcx7n.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js → PkToolShowSuggestedReply-Cdh_elSh.js} +2 -2
  34. package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js.map → PkToolShowSuggestedReply-Cdh_elSh.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js → PkToolShowVideo-D3aU5FMO.js} +2 -2
  36. package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js.map → PkToolShowVideo-D3aU5FMO.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js → PkToolShowWeather-CzanXIJp.js} +3 -3
  38. package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js.map → PkToolShowWeather-CzanXIJp.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js → PkToolShowWebPages-DkMJrWmT.js} +2 -2
  40. package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js.map → PkToolShowWebPages-DkMJrWmT.js.map} +1 -1
  41. package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js → VvCheckbox.es-CRhIKQNR.js} +2 -2
  42. package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js.map → VvCheckbox.es-CRhIKQNR.js.map} +1 -1
  43. package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js → VvCheckboxGroup.es-gOy2kM1Y.js} +5 -5
  44. package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js.map → VvCheckboxGroup.es-gOy2kM1Y.js.map} +1 -1
  45. package/dist/_chunks/{VvCombobox.es-CFA-K-cQ.js → VvCombobox.es-BOwH3LmO.js} +9 -9
  46. package/dist/_chunks/VvCombobox.es-BOwH3LmO.js.map +1 -0
  47. package/dist/_chunks/{VvInputText.es-csEQ-bSG.js → VvInputText.es-D8nXroKO.js} +536 -513
  48. package/dist/_chunks/VvInputText.es-D8nXroKO.js.map +1 -0
  49. package/dist/_chunks/{VvRadio.es-BpymhC73.js → VvRadio.es-Djy5J33A.js} +2 -2
  50. package/dist/_chunks/{VvRadio.es-BpymhC73.js.map → VvRadio.es-Djy5J33A.js.map} +1 -1
  51. package/dist/_chunks/{VvRadioGroup.es-CSNzOJKx.js → VvRadioGroup.es-DQq3JYCR.js} +5 -5
  52. package/dist/_chunks/VvRadioGroup.es-DQq3JYCR.js.map +1 -0
  53. package/dist/_chunks/{VvSelect.es-CjKMd0nH.js → VvSelect.es-CE4x1ww0.js} +4 -4
  54. package/dist/_chunks/{VvSelect.es-CjKMd0nH.js.map → VvSelect.es-CE4x1ww0.js.map} +1 -1
  55. package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js +1129 -0
  56. package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js.map +1 -0
  57. package/dist/_chunks/{dist-BNET2z7b.js → dist-CvMCBce7.js} +39 -21
  58. package/dist/_chunks/dist-CvMCBce7.js.map +1 -0
  59. package/dist/_chunks/dot-prop-CObyt75F.js +141 -0
  60. package/dist/_chunks/dot-prop-CObyt75F.js.map +1 -0
  61. package/dist/_chunks/{floating-ui.vue-CIKvCpTA.js → floating-ui.vue-BacoFpVq.js} +278 -305
  62. package/dist/_chunks/floating-ui.vue-BacoFpVq.js.map +1 -0
  63. package/dist/_chunks/{index.es-u1dF1xg2.js → index.es-DpqfagWZ.js} +12 -12
  64. package/dist/_chunks/{index.es-u1dF1xg2.js.map → index.es-DpqfagWZ.js.map} +1 -1
  65. package/dist/_chunks/{index.es-BYny0uhz.js → index.es-_oXVRjHy.js} +2352 -2329
  66. package/dist/_chunks/index.es-_oXVRjHy.js.map +1 -0
  67. package/dist/ai-elements.es.js +4087 -5205
  68. package/dist/ai-elements.es.js.map +1 -1
  69. package/dist-vue/PkChatbot.js +1 -1
  70. package/dist-vue/PkChatbotAuth.js +1 -1
  71. package/dist-vue/PkChatbotEmptyState.js +1 -1
  72. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  73. package/dist-vue/PkChatbotInput.js +1 -1
  74. package/dist-vue/PkChatbotMessages.js +1 -1
  75. package/dist-vue/PkChatbotSteps.js +1 -1
  76. package/dist-vue/PkChatbotViewChat.js +1 -1
  77. package/dist-vue/PkChatbotViewConversations.js +1 -1
  78. package/dist-vue/PkChatbotViewFiles.js +1 -1
  79. package/dist-vue/PkChatbotViewProfile.js +1 -1
  80. package/dist-vue/_chunks/PkChatbot-Bf5uY3cO.js +236 -0
  81. package/dist-vue/_chunks/{PkChatbot-BlG1WlAO.js.map → PkChatbot-Bf5uY3cO.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js → PkChatbotAuth-BGn2MDYD.js} +2 -2
  83. package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js.map → PkChatbotAuth-BGn2MDYD.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js → PkChatbotEmptyState-CPqLqXek.js} +2 -2
  85. package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js.map → PkChatbotEmptyState-CPqLqXek.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js → PkChatbotFeedbackForm-C_y__RH8.js} +2 -2
  87. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js.map → PkChatbotFeedbackForm-C_y__RH8.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js → PkChatbotInput-jvb0vuak.js} +2 -2
  89. package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js.map → PkChatbotInput-jvb0vuak.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkChatbotMessages-BrufA7o1.js → PkChatbotMessages-B3G12zah.js} +246 -246
  91. package/dist-vue/_chunks/{PkChatbotMessages-BrufA7o1.js.map → PkChatbotMessages-B3G12zah.js.map} +1 -1
  92. package/dist-vue/_chunks/PkChatbotSteps-BdU6YC_N.js +172 -0
  93. package/dist-vue/_chunks/{PkChatbotSteps-Dv9NkYER.js.map → PkChatbotSteps-BdU6YC_N.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkChatbotViewChat-CAqvbbfN.js → PkChatbotViewChat-c0Ecpzoc.js} +6 -6
  95. package/dist-vue/_chunks/{PkChatbotViewChat-CAqvbbfN.js.map → PkChatbotViewChat-c0Ecpzoc.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkChatbotViewConversations-Cq41H-tc.js → PkChatbotViewConversations-BfhRCA_1.js} +2 -2
  97. package/dist-vue/_chunks/{PkChatbotViewConversations-Cq41H-tc.js.map → PkChatbotViewConversations-BfhRCA_1.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkChatbotViewFiles-DNuzmBJc.js → PkChatbotViewFiles-BipRoidH.js} +2 -2
  99. package/dist-vue/_chunks/{PkChatbotViewFiles-DNuzmBJc.js.map → PkChatbotViewFiles-BipRoidH.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkChatbotViewProfile-C0BXIY2N.js → PkChatbotViewProfile-DuLwYpGZ.js} +2 -2
  101. package/dist-vue/_chunks/{PkChatbotViewProfile-C0BXIY2N.js.map → PkChatbotViewProfile-DuLwYpGZ.js.map} +1 -1
  102. package/{dist/_chunks/PkStreamingMarkdown-Djw604Ny.js → dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js} +344 -347
  103. package/dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js.map +1 -0
  104. package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js → PkToolShowArtifact-COwSXmF4.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js.map → PkToolShowArtifact-COwSXmF4.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js → PkToolShowContactForm-DRRtCCxB.js} +10 -10
  107. package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js.map → PkToolShowContactForm-DRRtCCxB.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowForm-CQuX08lk.js → PkToolShowForm-j7Ha-0X3.js} +109 -87
  109. package/dist-vue/_chunks/PkToolShowForm-j7Ha-0X3.js.map +1 -0
  110. package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js → PkToolShowSources-BVLw4W5l.js} +43 -43
  111. package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js.map → PkToolShowSources-BVLw4W5l.js.map} +1 -1
  112. package/dist-vue/_chunks/{createChatbotApiClient-BMZltBLh.js → createChatbotApiClient-IH6wBh4s.js} +365 -381
  113. package/dist-vue/_chunks/createChatbotApiClient-IH6wBh4s.js.map +1 -0
  114. package/dist-vue/_chunks/{index.es-XfWQ82pb.js → index.es-Bk1O0p8N.js} +166 -156
  115. package/dist-vue/_chunks/index.es-Bk1O0p8N.js.map +1 -0
  116. package/dist-vue/_chunks/{useChatbotStore-DZiorgLW.js → useChatbotStore-C3uKi2FS.js} +3 -5
  117. package/dist-vue/_chunks/useChatbotStore-C3uKi2FS.js.map +1 -0
  118. package/dist-vue/api.js +1 -1
  119. package/dist-vue/composables.js +2 -2
  120. package/dist-vue/index.js +4430 -4221
  121. package/dist-vue/index.js.map +1 -1
  122. package/dist-vue/locales.js +27 -7
  123. package/dist-vue/packages/components/src/PkCheckboxField.d.ts +1 -1
  124. package/dist-vue/packages/components/src/PkOfflineScreen.d.ts +18 -0
  125. package/dist-vue/packages/components/src/PkPwaNotices.d.ts +19 -0
  126. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +9 -3
  127. package/dist-vue/packages/components/src/index.d.ts +3 -3
  128. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -0
  129. package/dist-vue/packages/composable/src/index.d.ts +1 -0
  130. package/dist-vue/packages/composable/src/useConnectivity.d.ts +28 -0
  131. package/dist-vue/packages/models/src/schema/Agent.d.ts +81 -0
  132. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +24 -0
  133. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +24 -0
  134. package/dist-vue/style.css +1 -1
  135. package/package.json +3 -3
  136. package/dist/_chunks/PkStreamingMarkdown-Djw604Ny.js.map +0 -1
  137. package/dist/_chunks/PkToolShowForm-dFuoqTPs.js.map +0 -1
  138. package/dist/_chunks/VvCombobox.es-CFA-K-cQ.js.map +0 -1
  139. package/dist/_chunks/VvInputText.es-csEQ-bSG.js.map +0 -1
  140. package/dist/_chunks/VvRadioGroup.es-CSNzOJKx.js.map +0 -1
  141. package/dist/_chunks/VvTextarea.es-eEyRRpuT.js +0 -1109
  142. package/dist/_chunks/VvTextarea.es-eEyRRpuT.js.map +0 -1
  143. package/dist/_chunks/dist-BNET2z7b.js.map +0 -1
  144. package/dist/_chunks/dot-prop-BXrC9bAX.js +0 -131
  145. package/dist/_chunks/dot-prop-BXrC9bAX.js.map +0 -1
  146. package/dist/_chunks/floating-ui.vue-CIKvCpTA.js.map +0 -1
  147. package/dist/_chunks/index.es-BYny0uhz.js.map +0 -1
  148. package/dist-vue/_chunks/PkChatbot-BlG1WlAO.js +0 -236
  149. package/dist-vue/_chunks/PkChatbotSteps-Dv9NkYER.js +0 -172
  150. package/dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js.map +0 -1
  151. package/dist-vue/_chunks/PkToolShowForm-CQuX08lk.js.map +0 -1
  152. package/dist-vue/_chunks/createChatbotApiClient-BMZltBLh.js.map +0 -1
  153. package/dist-vue/_chunks/index.es-XfWQ82pb.js.map +0 -1
  154. package/dist-vue/_chunks/useChatbotStore-DZiorgLW.js.map +0 -1
  155. package/dist-vue/packages/components/src/PkPwaInstallPrompt.d.ts +0 -4
  156. package/dist-vue/packages/components/src/PkPwaOfflineNotice.d.ts +0 -4
@@ -2,7 +2,7 @@ import { D as e, E as t, O as n, k as r } from "./schemas-DnUKIqgi.js";
2
2
  import { t as i } from "./ZodError-BoB_0oSl.js";
3
3
  import { computed as a, defineAsyncComponent as o, defineComponent as s, getCurrentInstance as c, h as l, inject as u, isProxy as d, onBeforeUnmount as f, onMounted as p, provide as m, readonly as h, ref as g, resolveComponent as _, toRaw as v, toRefs as y, unref as b, useId as x, watch as S, withModifiers as C } from "vue";
4
4
  import { throttleFilter as w, watchIgnorable as T } from "@vueuse/core";
5
- //#region ../../node_modules/.pnpm/dot-prop@10.1.0/node_modules/dot-prop/index.js
5
+ //#region ../../node_modules/.pnpm/dot-prop@10.2.0/node_modules/dot-prop/index.js
6
6
  var E = (e) => {
7
7
  let t = typeof e;
8
8
  return e !== null && (t === "object" || t === "function");
@@ -10,75 +10,80 @@ var E = (e) => {
10
10
  "__proto__",
11
11
  "prototype",
12
12
  "constructor"
13
- ]), O = 1e6, k = (e) => e >= "0" && e <= "9";
14
- function A(e) {
13
+ ]), O = Math.max(...[...D].map((e) => e.length)), k = 1e6, A = (e) => e >= "0" && e <= "9";
14
+ function j(e) {
15
15
  if (e === "0") return !0;
16
16
  if (/^[1-9]\d*$/.test(e)) {
17
17
  let t = Number.parseInt(e, 10);
18
- return t <= 2 ** 53 - 1 && t <= O;
18
+ return t <= 2 ** 53 - 1 && t <= k;
19
19
  }
20
20
  return !1;
21
21
  }
22
- function j(e, t) {
23
- return D.has(e) ? !1 : (e && A(e) ? t.push(Number.parseInt(e, 10)) : t.push(e), !0);
22
+ function M(e, t) {
23
+ return D.has(e) ? !1 : (e && j(e) ? t.push(Number.parseInt(e, 10)) : t.push(e), !0);
24
24
  }
25
- function M(e) {
25
+ function N(e) {
26
26
  if (typeof e != "string") throw TypeError(`Expected a string, got ${typeof e}`);
27
- let t = [], n = "", r = "start", i = !1, a = 0;
28
- for (let o of e) {
29
- if (a++, i) {
30
- n += o, i = !1;
27
+ let t = [], n = "", r = "", i = !1, a = "start", o = !1, s = 0;
28
+ for (let c of e) {
29
+ if (s++, o) {
30
+ n += c, o = !1;
31
31
  continue;
32
32
  }
33
- if (o === "\\") {
34
- if (r === "index") throw Error(`Invalid character '${o}' in an index at position ${a}`);
35
- if (r === "indexEnd") throw Error(`Invalid character '${o}' after an index at position ${a}`);
36
- i = !0, r = r === "start" ? "property" : r;
33
+ if (c === "\\") {
34
+ if (a === "index") throw Error(`Invalid character '${c}' in an index at position ${s}`);
35
+ if (a === "indexEnd") throw Error(`Invalid character '${c}' after an index at position ${s}`);
36
+ o = !0, a = a === "start" ? "property" : a;
37
37
  continue;
38
38
  }
39
- switch (o) {
39
+ switch (c) {
40
40
  case ".":
41
- if (r === "index") throw Error(`Invalid character '${o}' in an index at position ${a}`);
42
- if (r === "indexEnd") {
43
- r = "property";
41
+ if (a === "index") throw Error(`Invalid character '${c}' in an index at position ${s}`);
42
+ if (a === "indexEnd") {
43
+ a = "property";
44
44
  break;
45
45
  }
46
- if (!j(n, t)) return [];
47
- n = "", r = "property";
46
+ if (!M(n, t)) return [];
47
+ n = "", a = "property";
48
48
  break;
49
49
  case "[":
50
- if (r === "index") throw Error(`Invalid character '${o}' in an index at position ${a}`);
51
- if (r === "indexEnd") {
52
- r = "index";
50
+ if (a === "index") throw Error(`Invalid character '${c}' in an index at position ${s}`);
51
+ if (a === "indexEnd") {
52
+ a = "index";
53
53
  break;
54
54
  }
55
- if (r === "property" || r === "start") {
56
- if ((n || r === "property") && !j(n, t)) return [];
57
- n = "";
58
- }
59
- r = "index";
55
+ if (a === "property" && n.length <= O && D.has(n)) return [];
56
+ i = a === "property", a = "index";
60
57
  break;
61
- case "]":
62
- if (r === "index") {
63
- if (n === "") n = (t.pop() || "") + "[]", r = "property";
64
- else {
65
- let e = Number.parseInt(n, 10);
66
- !Number.isNaN(e) && Number.isFinite(e) && e >= 0 && e <= 2 ** 53 - 1 && e <= O && n === String(e) ? t.push(e) : t.push(n), n = "", r = "indexEnd";
67
- }
58
+ case "]": {
59
+ if (a === "indexEnd") throw Error(`Invalid character '${c}' after an index at position ${s}`);
60
+ if (a !== "index") {
61
+ a === "start" && (a = "property"), n += c;
68
62
  break;
69
63
  }
70
- if (r === "indexEnd") throw Error(`Invalid character '${o}' after an index at position ${a}`);
71
- n += o;
64
+ if (r === "") {
65
+ n += "[]", a = "property";
66
+ break;
67
+ }
68
+ if ((n !== "" || i) && !M(n, t)) return [];
69
+ n = "", i = !1;
70
+ let e = Number.parseInt(r, 10), o = e <= k && r === String(e);
71
+ t.push(o ? e : r), r = "", a = "indexEnd";
72
72
  break;
73
+ }
73
74
  default:
74
- if (r === "index" && !k(o)) throw Error(`Invalid character '${o}' in an index at position ${a}`);
75
- if (r === "indexEnd") throw Error(`Invalid character '${o}' after an index at position ${a}`);
76
- r === "start" && (r = "property"), n += o;
75
+ if (a === "index") {
76
+ if (!A(c)) throw Error(`Invalid character '${c}' in an index at position ${s}`);
77
+ r += c;
78
+ break;
79
+ }
80
+ if (a === "indexEnd") throw Error(`Invalid character '${c}' after an index at position ${s}`);
81
+ a === "start" && (a = "property"), n += c;
77
82
  }
78
83
  }
79
- switch (i && (n += "\\"), r) {
84
+ switch (o && (n += "\\"), a) {
80
85
  case "property":
81
- if (!j(n, t)) return [];
86
+ if (!M(n, t)) return [];
82
87
  break;
83
88
  case "index": throw Error("Index was not closed");
84
89
  case "start":
@@ -87,23 +92,23 @@ function M(e) {
87
92
  }
88
93
  return t;
89
94
  }
90
- function N(e) {
91
- if (typeof e == "string") return M(e);
95
+ function P(e) {
96
+ if (typeof e == "string") return N(e);
92
97
  if (Array.isArray(e)) {
93
98
  let t = [];
94
99
  for (let [n, r] of e.entries()) {
95
100
  if (typeof r != "string" && typeof r != "number") throw TypeError(`Expected a string or number for path segment at index ${n}, got ${typeof r}`);
96
101
  if (typeof r == "number" && !Number.isFinite(r)) throw TypeError(`Path segment at index ${n} must be a finite number, got ${r}`);
97
102
  if (D.has(r)) return [];
98
- typeof r == "string" && A(r) ? t.push(Number.parseInt(r, 10)) : t.push(r);
103
+ typeof r == "string" && j(r) ? t.push(Number.parseInt(r, 10)) : t.push(r);
99
104
  }
100
105
  return t;
101
106
  }
102
107
  return [];
103
108
  }
104
- function P(e, t, n) {
109
+ function F(e, t, n) {
105
110
  if (!E(e) || typeof t != "string" && !Array.isArray(t)) return n === void 0 ? e : n;
106
- let r = N(t);
111
+ let r = P(t);
107
112
  if (r.length === 0) return n;
108
113
  for (let t = 0; t < r.length; t++) {
109
114
  let i = r[t];
@@ -114,31 +119,36 @@ function P(e, t, n) {
114
119
  }
115
120
  return e === void 0 ? n : e;
116
121
  }
117
- function F(e, t, n) {
122
+ function I(e, t, n) {
118
123
  if (!E(e) || typeof t != "string" && !Array.isArray(t)) return e;
119
- let r = e, i = N(t);
124
+ let r = e, i = P(t);
120
125
  if (i.length === 0) return e;
121
126
  for (let t = 0; t < i.length; t++) {
122
127
  let r = i[t];
123
- if (t === i.length - 1) e[r] = n;
124
- else if (!E(e[r])) {
125
- let n = typeof i[t + 1] == "number";
126
- e[r] = n ? [] : {};
128
+ if (t === i.length - 1) {
129
+ e[r] = n;
130
+ continue;
131
+ }
132
+ let a = e[r];
133
+ if (E(a)) {
134
+ e = a;
135
+ continue;
127
136
  }
128
- e = e[r];
137
+ let o = typeof i[t + 1] == "number";
138
+ e[r] = o ? [] : {}, e = e[r];
129
139
  }
130
140
  return r;
131
141
  }
132
142
  //#endregion
133
- //#region ../../node_modules/.pnpm/@volverjs+form-vue@1.1.5_@volverjs+ui-vue@0.0.15_@json-render+core@0.19.0_zod@4.4.3__@v_58f1472d339b8f176799c93aa1f1f83f/node_modules/@volverjs/form-vue/dist/index.es.js
134
- var I = /* @__PURE__ */ function(e) {
143
+ //#region ../../node_modules/.pnpm/@volverjs+form-vue@1.1.5_@volverjs+ui-vue@0.0.16_@json-render+core@0.19.0_zod@4.4.3__@v_478839cf3e941b6068d8432b002c33bf/node_modules/@volverjs/form-vue/dist/index.es.js
144
+ var L = /* @__PURE__ */ function(e) {
135
145
  return e.text = "text", e.number = "number", e.email = "email", e.password = "password", e.tel = "tel", e.url = "url", e.search = "search", e.date = "date", e.time = "time", e.datetimeLocal = "datetime-local", e.month = "month", e.week = "week", e.color = "color", e.select = "select", e.checkbox = "checkbox", e.radio = "radio", e.textarea = "textarea", e.radioGroup = "radioGroup", e.checkboxGroup = "checkboxGroup", e.combobox = "combobox", e.custom = "custom", e;
136
- }({}), L = /* @__PURE__ */ function(e) {
146
+ }({}), R = /* @__PURE__ */ function(e) {
137
147
  return e.invalid = "invalid", e.valid = "valid", e.submitting = "submitting", e.reset = "reset", e.updated = "updated", e.unknown = "unknown", e;
138
- }({}), R = (e) => e._def.typeName === "ZodObject", z = (e) => e._zod.def.type === "object", B = (e) => e._def.typeName === "ZodDefault", ee = (e) => e._zod.def.type === "default", te = (e) => e._def.typeName === "ZodNullable", V = (e) => e._zod.def.type === "nullable", ne = (e) => e._def.typeName === "ZodRecord", re = (e) => e._zod.def.type === "record", H = (e) => e._def.typeName === "ZodArray", ie = (e) => e._zod.def.type === "array", ae = (e) => e._def.typeName === "ZodEffects", U = (e) => e._def.typeName === "ZodOptional", W = (e) => e._zod.def.type === "optional", G = (e) => e._zod.def.type === "pipe", K = (e) => e._zod.def.type === "transform";
148
+ }({}), z = (e) => e._def.typeName === "ZodObject", B = (e) => e._zod.def.type === "object", V = (e) => e._def.typeName === "ZodDefault", H = (e) => e._zod.def.type === "default", ee = (e) => e._def.typeName === "ZodNullable", te = (e) => e._zod.def.type === "nullable", ne = (e) => e._def.typeName === "ZodRecord", re = (e) => e._zod.def.type === "record", ie = (e) => e._def.typeName === "ZodArray", ae = (e) => e._zod.def.type === "array", oe = (e) => e._def.typeName === "ZodEffects", U = (e) => e._def.typeName === "ZodOptional", W = (e) => e._zod.def.type === "optional", G = (e) => e._zod.def.type === "pipe", K = (e) => e._zod.def.type === "transform";
139
149
  function q(e) {
140
150
  let t = e;
141
- for (; ae(t);) t = t.innerType();
151
+ for (; oe(t);) t = t.innerType();
142
152
  return t;
143
153
  }
144
154
  function J(e) {
@@ -146,52 +156,52 @@ function J(e) {
146
156
  for (; G(t);) t = K(t._zod.def.out) ? t._zod.def.in : t._zod.def.out;
147
157
  return t;
148
158
  }
149
- var oe = (e) => {
159
+ var se = (e) => {
150
160
  let t = q(e);
151
161
  return U(t) && (t = t._def.innerType), t;
152
- }, se = (e) => {
162
+ }, ce = (e) => {
153
163
  let t = J(e);
154
164
  return W(t) && (t = t._zod.def.innerType), t;
155
- }, ce = (e) => !!U(q(e)), Y = (e) => !!W(J(e)), X = (e) => "_zod" in e, le = {
156
- getInnerType: oe,
157
- isObject: R,
165
+ }, le = (e) => !!U(q(e)), ue = (e) => !!W(J(e)), Y = (e) => "_zod" in e, de = {
166
+ getInnerType: se,
167
+ isObject: z,
158
168
  hasUnknownKeys: (e) => e._def.unknownKeys === "passthrough",
159
169
  getShapeEntries: (e) => "shape" in e ? Object.entries(e.shape) : [],
160
- isOptional: ce,
161
- isDefault: B,
170
+ isOptional: le,
171
+ isDefault: V,
162
172
  getDefaultValue: (e) => e._def.defaultValue(),
163
173
  getDefaultInnerType: (e) => e._def.innerType,
164
- isNullable: te,
174
+ isNullable: ee,
165
175
  safeParse: (e, t) => e.safeParse(t),
166
- isArray: H,
176
+ isArray: ie,
167
177
  getArrayElement: (e) => e._def.type,
168
178
  isRecord: ne,
169
179
  getRecordValue: (e) => e._def.valueType
170
- }, ue = {
171
- getInnerType: se,
172
- isObject: z,
180
+ }, fe = {
181
+ getInnerType: ce,
182
+ isObject: B,
173
183
  hasUnknownKeys: (e) => !!(e._zod.def.catchall && e._zod.def.catchall._zod.def.type !== "never"),
174
184
  getShapeEntries: (e) => "shape" in e._zod.def ? Object.entries(e._zod.def.shape) : [],
175
- isOptional: Y,
176
- isDefault: ee,
185
+ isOptional: ue,
186
+ isDefault: H,
177
187
  getDefaultValue: (e) => e._zod.def.defaultValue,
178
188
  getDefaultInnerType: (e) => e._zod.def.innerType,
179
- isNullable: V,
189
+ isNullable: te,
180
190
  safeParse: (e, n) => t(e, n),
181
- isArray: ie,
191
+ isArray: ae,
182
192
  getArrayElement: (e) => e._zod.def.element,
183
193
  isRecord: re,
184
194
  getRecordValue: (e) => e._zod.def.valueType
185
195
  };
186
- function de(e, t, n) {
196
+ function pe(e, t, n) {
187
197
  let r = e.getInnerType(e.getArrayElement(t));
188
- return e.isObject(r) ? n.map((t) => Z(e, r, t)) : n;
198
+ return e.isObject(r) ? n.map((t) => X(e, r, t)) : n;
189
199
  }
190
- function fe(e, t, n) {
200
+ function me(e, t, n) {
191
201
  let r = e.getInnerType(e.getRecordValue(t));
192
- return e.isObject(r) ? Object.keys(n).reduce((t, i) => (t[i] = Z(e, r, n[i]), t), {}) : n;
202
+ return e.isObject(r) ? Object.keys(n).reduce((t, i) => (t[i] = X(e, r, n[i]), t), {}) : n;
193
203
  }
194
- function pe(e, t, n, r) {
204
+ function he(e, t, n, r) {
195
205
  let i = e.isOptional(n), a = e.getInnerType(n), o;
196
206
  if (e.isDefault(a) && (o = e.getDefaultValue(a), a = e.getDefaultInnerType(a)), r === null && e.isNullable(a)) return [t, r];
197
207
  if (r == null && i) return [t, o];
@@ -199,23 +209,23 @@ function pe(e, t, n, r) {
199
209
  let i = e.safeParse(n, r);
200
210
  if (i.success) return [t, i.data ?? o];
201
211
  }
202
- return e.isArray(a) && Array.isArray(r) ? [t, de(e, a, r)] : e.isRecord(a) && r ? [t, fe(e, a, r)] : e.isObject(a) ? [t, Z(e, a, r && typeof r == "object" ? r : o)] : [t, o];
212
+ return e.isArray(a) && Array.isArray(r) ? [t, pe(e, a, r)] : e.isRecord(a) && r ? [t, me(e, a, r)] : e.isObject(a) ? [t, X(e, a, r && typeof r == "object" ? r : o)] : [t, o];
203
213
  }
204
- function Z(e, t, n) {
214
+ function X(e, t, n) {
205
215
  let r = n && typeof n == "object" && !Array.isArray(n) ? n : {};
206
216
  return {
207
217
  ...e.hasUnknownKeys(t) ? r : {},
208
- ...Object.fromEntries(e.getShapeEntries(t).map(([t, n]) => pe(e, t, n, r[t])))
218
+ ...Object.fromEntries(e.getShapeEntries(t).map(([t, n]) => he(e, t, n, r[t])))
209
219
  };
210
220
  }
211
- function me(e, t = {}) {
212
- let n = X(e) ? ue : le, r = n.getInnerType(e);
213
- return n.isObject(r) ? Z(n, r, t) : t;
221
+ function ge(e, t = {}) {
222
+ let n = Y(e) ? fe : de, r = n.getInnerType(e);
223
+ return n.isObject(r) ? X(n, r, t) : t;
214
224
  }
215
- var he = (t, n) => X(t) ? e(t, n) : t.safeParseAsync(n), ge = (e, t) => X(e) ? r(t) : t.format(), _e = (e, t) => X(e) ? r(new n(t)) : new i(t).format();
216
- function ve(e, t, n, r, i) {
217
- let o = g(), c = g(), u = a(() => c.value === L.invalid), f = g(), _ = g(!1), y, b = (t) => {
218
- let r = me(e, t);
225
+ var _e = (t, n) => Y(t) ? e(t, n) : t.safeParseAsync(n), ve = (e, t) => Y(e) ? r(t) : t.format(), ye = (e, t) => Y(e) ? r(new n(t)) : new i(t).format();
226
+ function be(e, t, n, r, i) {
227
+ let o = g(), c = g(), u = a(() => c.value === R.invalid), f = g(), _ = g(!1), y, b = (t) => {
228
+ let r = ge(e, t);
219
229
  if (n?.class) {
220
230
  let e = n.class;
221
231
  return new e(r);
@@ -223,25 +233,25 @@ function ve(e, t, n, r, i) {
223
233
  return r;
224
234
  }, x = async (t = f.value, n) => {
225
235
  if (y = n?.fields, _.value) return !0;
226
- let r = await he(e, t);
236
+ let r = await _e(e, t);
227
237
  if (!r.success) {
228
- if (c.value = L.invalid, !y?.size) return o.value = ge(e, r.error), !1;
238
+ if (c.value = R.invalid, !y?.size) return o.value = ve(e, r.error), !1;
229
239
  let t = r.error.issues.filter((e) => y?.has(e.path.join(".")));
230
- return t.length ? (o.value = _e(e, t), !1) : (o.value = void 0, !0);
240
+ return t.length ? (o.value = ye(e, t), !1) : (o.value = void 0, !0);
231
241
  }
232
- return o.value = void 0, c.value = L.valid, f.value = b(r.data), !0;
242
+ return o.value = void 0, c.value = R.valid, f.value = b(r.data), !0;
233
243
  }, E = () => {
234
244
  o.value = void 0, c.value = void 0, y = void 0;
235
245
  }, { ignoreUpdates: D, stop: O } = T(f, () => {
236
- c.value = L.updated;
246
+ c.value = R.updated;
237
247
  }, {
238
248
  deep: !0,
239
249
  eventFilter: w(n?.updateThrottle ?? 500)
240
250
  }), k = () => {
241
251
  D(() => {
242
252
  f.value = b();
243
- }), E(), c.value = L.reset;
244
- }, A = async (e) => _.value || !await x(void 0, e) ? !1 : (c.value = L.submitting, !0), j = h(o), M = h(c);
253
+ }), E(), c.value = R.reset;
254
+ }, A = async (e) => _.value || !await x(void 0, e) ? !1 : (c.value = R.submitting, !0), j = h(o), M = h(c);
245
255
  return {
246
256
  clear: E,
247
257
  errors: o,
@@ -317,27 +327,27 @@ function ve(e, t, n, r, i) {
317
327
  f.value = b(t);
318
328
  }
319
329
  }, { deep: !0 }), S(c, async (t) => {
320
- if (t === L.invalid) {
330
+ if (t === R.invalid) {
321
331
  let e = v(o.value);
322
332
  r("invalid", e), n?.onInvalid?.(e);
323
333
  return;
324
334
  }
325
- if (t === L.valid) {
335
+ if (t === R.valid) {
326
336
  let e = v(f.value);
327
337
  r("valid", e), n?.onValid?.(e), r("update:modelValue", e), n?.onUpdate?.(e);
328
338
  return;
329
339
  }
330
- if (t === L.submitting) {
340
+ if (t === R.submitting) {
331
341
  let e = v(f.value);
332
342
  r("submit", e), n?.onSubmit?.(e);
333
343
  return;
334
344
  }
335
- if (t === L.reset) {
345
+ if (t === R.reset) {
336
346
  let e = v(f.value);
337
347
  r("reset", e), n?.onReset?.(e);
338
348
  return;
339
349
  }
340
- if (t === L.updated) {
350
+ if (t === R.updated) {
341
351
  if ((o.value || n?.continuousValidation || e.continuousValidation) && await x(void 0, {
342
352
  superRefine: e.superRefine,
343
353
  fields: y ?? new Set(e.validateFields)
@@ -345,7 +355,7 @@ function ve(e, t, n, r, i) {
345
355
  let e = v(f.value);
346
356
  r("update:modelValue", e), n?.onUpdate?.(e);
347
357
  }
348
- c.value === L.updated && (c.value = L.unknown);
358
+ c.value === R.updated && (c.value = R.unknown);
349
359
  }
350
360
  }), p(() => {
351
361
  e.readonly !== void 0 && (_.value = e.readonly);
@@ -407,14 +417,14 @@ function ve(e, t, n, r, i) {
407
417
  })
408
418
  };
409
419
  }
410
- function ye(e, t, n, r) {
420
+ function xe(e, t, n, r) {
411
421
  return s({
412
422
  name: "VvFormField",
413
423
  props: {
414
424
  type: {
415
425
  type: String,
416
- validator: (e) => Object.values(I).includes(e),
417
- default: I.custom
426
+ validator: (e) => Object.values(L).includes(e),
427
+ default: L.custom
418
428
  },
419
429
  is: {
420
430
  type: [Object, String],
@@ -477,10 +487,10 @@ function ye(e, t, n, r) {
477
487
  v && v.fields.value.set(g, i.name);
478
488
  let C = u(e), w = a({
479
489
  get() {
480
- if (C?.formData) return P(new Object(C.formData.value), String(i.name));
490
+ if (C?.formData) return F(new Object(C.formData.value), String(i.name));
481
491
  },
482
492
  set(e) {
483
- C?.formData && (F(new Object(C.formData.value), String(i.name), e), c("update:modelValue", {
493
+ C?.formData && (I(new Object(C.formData.value), String(i.name), e), c("update:modelValue", {
484
494
  newValue: w.value,
485
495
  formData: C?.formData
486
496
  }));
@@ -492,7 +502,7 @@ function ye(e, t, n, r) {
492
502
  v && v.fields.value.delete(g);
493
503
  });
494
504
  let T = a(() => {
495
- if (C?.errors.value) return P(C.errors.value, String(i.name));
505
+ if (C?.errors.value) return F(C.errors.value, String(i.name));
496
506
  }), E = a(() => T.value?._errors), D = a(() => T.value !== void 0), O = S(D, (e) => {
497
507
  if (e) {
498
508
  c("invalid", T.value), v && v.errors.value.set(String(i.name), T.value);
@@ -517,19 +527,19 @@ function ye(e, t, n, r) {
517
527
  valid: i.showValid ? !!(!D.value && w.value) : void 0,
518
528
  type: ((e) => {
519
529
  if ([
520
- I.color,
521
- I.date,
522
- I.datetimeLocal,
523
- I.email,
524
- I.month,
525
- I.number,
526
- I.password,
527
- I.search,
528
- I.tel,
529
- I.text,
530
- I.time,
531
- I.url,
532
- I.week
530
+ L.color,
531
+ L.date,
532
+ L.datetimeLocal,
533
+ L.email,
534
+ L.month,
535
+ L.number,
536
+ L.password,
537
+ L.search,
538
+ L.tel,
539
+ L.text,
540
+ L.time,
541
+ L.url,
542
+ L.week
533
543
  ].includes(e)) return e;
534
544
  })(i.type),
535
545
  invalidLabel: E.value,
@@ -542,7 +552,7 @@ function ye(e, t, n, r) {
542
552
  errors: h(T)
543
553
  }), {
544
554
  component: a(() => {
545
- if (i.type === I.custom) return { render() {
555
+ if (i.type === L.custom) return { render() {
546
556
  return s.default?.({
547
557
  errors: h(T).value,
548
558
  formData: C?.formData.value,
@@ -559,25 +569,25 @@ function ye(e, t, n, r) {
559
569
  if (!(r?.lazyLoad ?? i.lazyLoad)) {
560
570
  let e;
561
571
  switch (i.type) {
562
- case I.select:
572
+ case L.select:
563
573
  e = _("VvSelect");
564
574
  break;
565
- case I.checkbox:
575
+ case L.checkbox:
566
576
  e = _("VvCheckbox");
567
577
  break;
568
- case I.radio:
578
+ case L.radio:
569
579
  e = _("VvRadio");
570
580
  break;
571
- case I.textarea:
581
+ case L.textarea:
572
582
  e = _("VvTextarea");
573
583
  break;
574
- case I.radioGroup:
584
+ case L.radioGroup:
575
585
  e = _("VvRadioGroup");
576
586
  break;
577
- case I.checkboxGroup:
587
+ case L.checkboxGroup:
578
588
  e = _("VvCheckboxGroup");
579
589
  break;
580
- case I.combobox:
590
+ case L.combobox:
581
591
  e = _("VvCombobox");
582
592
  break;
583
593
  default: e = _("VvInputText");
@@ -587,13 +597,13 @@ function ye(e, t, n, r) {
587
597
  }
588
598
  return o(async () => {
589
599
  switch (r?.sideEffects && await Promise.resolve(r.sideEffects(i.type)), i.type) {
590
- case I.textarea: return import("@volverjs/ui-vue/vv-textarea");
591
- case I.radio: return import("@volverjs/ui-vue/vv-radio");
592
- case I.radioGroup: return import("@volverjs/ui-vue/vv-radio-group");
593
- case I.checkbox: return import("@volverjs/ui-vue/vv-checkbox");
594
- case I.checkboxGroup: return import("@volverjs/ui-vue/vv-checkbox-group");
595
- case I.select: return import("@volverjs/ui-vue/vv-select");
596
- case I.combobox: return import("@volverjs/ui-vue/vv-combobox");
600
+ case L.textarea: return import("@volverjs/ui-vue/vv-textarea");
601
+ case L.radio: return import("@volverjs/ui-vue/vv-radio");
602
+ case L.radioGroup: return import("@volverjs/ui-vue/vv-radio-group");
603
+ case L.checkbox: return import("@volverjs/ui-vue/vv-checkbox");
604
+ case L.checkboxGroup: return import("@volverjs/ui-vue/vv-checkbox-group");
605
+ case L.select: return import("@volverjs/ui-vue/vv-select");
606
+ case L.combobox: return import("@volverjs/ui-vue/vv-combobox");
597
607
  }
598
608
  return import("@volverjs/ui-vue/vv-input-text");
599
609
  });
@@ -603,11 +613,11 @@ function ye(e, t, n, r) {
603
613
  };
604
614
  },
605
615
  render() {
606
- return this.is ? l(this.is, this.hasProps, this.$slots) : this.type === I.custom ? l(this.component, null, this.$slots) : l(this.component, this.hasProps, this.$slots);
616
+ return this.is ? l(this.is, this.hasProps, this.$slots) : this.type === L.custom ? l(this.component, null, this.$slots) : l(this.component, this.hasProps, this.$slots);
607
617
  }
608
618
  });
609
619
  }
610
- function be(e, t, n) {
620
+ function Se(e, t, n) {
611
621
  return s({
612
622
  name: "VvFormFieldsGroup",
613
623
  props: {
@@ -658,11 +668,11 @@ function be(e, t, n) {
658
668
  });
659
669
  let T = u(e), E = a({
660
670
  get() {
661
- return T?.formData ? _.value.reduce((e, t) => (e[t] = P(new Object(T.formData.value), v.value[t]), e), {}) : {};
671
+ return T?.formData ? _.value.reduce((e, t) => (e[t] = F(new Object(T.formData.value), v.value[t]), e), {}) : {};
662
672
  },
663
673
  set(e) {
664
674
  T?.formData && (_.value.forEach((t) => {
665
- F(new Object(T.formData.value), v.value[t], e?.[t]);
675
+ I(new Object(T.formData.value), v.value[t], e?.[t]);
666
676
  }), o("update:modelValue", {
667
677
  newValue: E.value,
668
678
  formData: T?.formData
@@ -685,7 +695,7 @@ function be(e, t, n) {
685
695
  if (!T?.errors.value) return;
686
696
  let e = g.value.reduce((e, t) => {
687
697
  if (!T.errors.value) return e;
688
- let n = P(T.errors.value, String(t));
698
+ let n = F(T.errors.value, String(t));
689
699
  return n === void 0 || (e[String(t)] = n), e;
690
700
  }, {});
691
701
  if (Object.keys(e).length !== 0) return e;
@@ -715,7 +725,7 @@ function be(e, t, n) {
715
725
  });
716
726
  let N = (e) => {
717
727
  E.value = e;
718
- }, I = (e, t) => {
728
+ }, P = (e, t) => {
719
729
  t instanceof InputEvent && (t = t.target.value), _.value.includes(e) && (E.value = {
720
730
  ...E.value,
721
731
  [e]: t
@@ -724,7 +734,7 @@ function be(e, t, n) {
724
734
  let e = s.value;
725
735
  return typeof e == "function" && (e = e(T?.formData)), Object.keys(e).reduce((t, n) => (t[n] = b(e[n]), t), {});
726
736
  }), R = a(() => T?.readonly.value ? !0 : L.value.readonly ?? r.readonly), z = a(() => _.value.reduce((e, t) => (e[`onUpdate:${t}`] = (e) => {
727
- I(t, e);
737
+ P(t, e);
728
738
  }, e), { "onUpdate:modelValue": N })), B = a(() => ({
729
739
  ...z.value,
730
740
  ...L.value,
@@ -751,7 +761,7 @@ function be(e, t, n) {
751
761
  invalidLabels: O.value,
752
762
  modelValue: E.value,
753
763
  onUpdate: N,
754
- onUpdateField: I,
764
+ onUpdateField: P,
755
765
  readonly: R.value,
756
766
  submit: T?.submit,
757
767
  validate: T?.validate
@@ -766,7 +776,7 @@ function be(e, t, n) {
766
776
  }
767
777
  });
768
778
  }
769
- function xe(e, t) {
779
+ function Z(e, t) {
770
780
  return s({
771
781
  name: "VvFormWrapper",
772
782
  props: {
@@ -871,7 +881,7 @@ function xe(e, t) {
871
881
  }
872
882
  });
873
883
  }
874
- function Se(e, t) {
884
+ function Ce(e, t) {
875
885
  let n = s({
876
886
  name: "VvFormTemplate",
877
887
  props: {
@@ -891,9 +901,9 @@ function Se(e, t) {
891
901
  let e = typeof r.schema == "function" ? r.schema(a, r.scope) : r.schema, o, s = e.reduce((e, i) => {
892
902
  let { vvIs: s, vvName: c, vvSlots: u, vvChildren: d, vvIf: f, vvElseIf: p, vvType: m, vvDefaultValue: h, vvShowValid: g, vvContent: _, ...v } = typeof i == "function" ? i(a, r.scope) : i;
893
903
  if (f !== void 0) {
894
- if (o = typeof f == "string" ? !!P(new Object(a.formData.value), f) : b(typeof f == "function" ? f(a) : f), !o) return e;
904
+ if (o = typeof f == "string" ? !!F(new Object(a.formData.value), f) : b(typeof f == "function" ? f(a) : f), !o) return e;
895
905
  } else if (p !== void 0 && o !== void 0) {
896
- if (o || (o = typeof p == "string" ? !!P(new Object(a.formData.value), p) : b(typeof p == "function" ? p(a) : p), !o)) return e;
906
+ if (o || (o = typeof p == "string" ? !!F(new Object(a.formData.value), p) : b(typeof p == "function" ? p(a) : p), !o)) return e;
897
907
  } else o = void 0;
898
908
  let y;
899
909
  return d && (y = typeof s == "string" ? l(n, { schema: d }) : { default: (e) => l(n, {
@@ -924,7 +934,7 @@ function Se(e, t) {
924
934
  return n;
925
935
  }
926
936
  function Q(e, t = {}) {
927
- let n = Symbol("formInjectionKey"), r = Symbol("formWrapperInjectionKey"), i = Symbol("formFieldInjectionKey"), a = Symbol("formFieldsGroupInjectionKey"), o = xe(n, r), s = ye(n, r, i, t), c = be(n, r, a), l = Se(n, s), u = /* @__PURE__ */ new Map(), { clear: d, errors: f, formData: p, ignoreUpdates: m, invalid: h, readonly: g, reset: _, status: v, stopUpdatesWatch: y, submit: b, validate: x, VvForm: S } = ve(e, n, t, l, u);
937
+ let n = Symbol("formInjectionKey"), r = Symbol("formWrapperInjectionKey"), i = Symbol("formFieldInjectionKey"), a = Symbol("formFieldsGroupInjectionKey"), o = Z(n, r), s = xe(n, r, i, t), c = Se(n, r, a), l = Ce(n, s), u = /* @__PURE__ */ new Map(), { clear: d, errors: f, formData: p, ignoreUpdates: m, invalid: h, readonly: g, reset: _, status: v, stopUpdatesWatch: y, submit: b, validate: x, VvForm: S } = be(e, n, t, l, u);
928
938
  return {
929
939
  clear: d,
930
940
  errors: f,
@@ -948,20 +958,20 @@ function Q(e, t = {}) {
948
958
  VvFormWrapper: o
949
959
  };
950
960
  }
951
- var Ce = Symbol("pluginInjectionKey"), $ = /* @__PURE__ */ new Map();
952
- function we(e, t = {}) {
961
+ var we = Symbol("pluginInjectionKey"), $ = /* @__PURE__ */ new Map();
962
+ function Te(e, t = {}) {
953
963
  if (t.scope && $.has(t.scope)) return $.get(t.scope);
954
964
  if (!c()) {
955
965
  let n = Q(e, t);
956
966
  return t.scope && $.set(t.scope, n), n;
957
967
  }
958
968
  let n = Q(e, {
959
- ...u(Ce, {}),
969
+ ...u(we, {}),
960
970
  ...t
961
971
  });
962
972
  return t.scope && $.set(t.scope, n), n;
963
973
  }
964
974
  //#endregion
965
- export { we as t };
975
+ export { Te as t };
966
976
 
967
- //# sourceMappingURL=index.es-XfWQ82pb.js.map
977
+ //# sourceMappingURL=index.es-Bk1O0p8N.js.map