@8wave/ai-elements 0.125.0-beta.1 → 0.125.0-beta.10

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 (173) hide show
  1. package/dist/_chunks/{Agent-BBWFD4nI.js → Agent-DZhK49jg.js} +99 -96
  2. package/dist/_chunks/Agent-DZhK49jg.js.map +1 -0
  3. package/dist/_chunks/{PkFilePreview-BwHe4-m1.js → PkFilePreview-C3R3jrNi.js} +31 -31
  4. package/dist/_chunks/{PkFilePreview-BwHe4-m1.js.map → PkFilePreview-C3R3jrNi.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js → PkFilePreviewDialog-BAKFOnPI.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js.map → PkFilePreviewDialog-BAKFOnPI.js.map} +1 -1
  7. package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js → PkStreamingMarkdown-BM-DSTPr.js} +3 -3
  8. package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js.map → PkStreamingMarkdown-BM-DSTPr.js.map} +1 -1
  9. package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js → PkToolChatFile-DbeOmRPh.js} +3 -3
  10. package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js.map → PkToolChatFile-DbeOmRPh.js.map} +1 -1
  11. package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js → PkToolRequestGeolocation-CCz4REP9.js} +2 -2
  12. package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js.map → PkToolRequestGeolocation-CCz4REP9.js.map} +1 -1
  13. package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js → PkToolRequestOAuthConnection-BU-4Sm3z.js} +2 -2
  14. package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js.map → PkToolRequestOAuthConnection-BU-4Sm3z.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js → PkToolShowArtifact-utxGuLLt.js} +2 -2
  16. package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js.map → PkToolShowArtifact-utxGuLLt.js.map} +1 -1
  17. package/dist/_chunks/PkToolShowCalendarEvent-DWtTo28t.js +148 -0
  18. package/dist/_chunks/PkToolShowCalendarEvent-DWtTo28t.js.map +1 -0
  19. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js → PkToolShowContactForm-DTtE93D3.js} +2 -2
  20. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js.map → PkToolShowContactForm-DTtE93D3.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js → PkToolShowForm-I4pKopEI.js} +6 -6
  22. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js.map → PkToolShowForm-I4pKopEI.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js → PkToolShowImageGallery-skV87BlD.js} +2 -2
  24. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js.map → PkToolShowImageGallery-skV87BlD.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js → PkToolShowProductList-CcdOQoxf.js} +2 -2
  26. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js.map → PkToolShowProductList-CcdOQoxf.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowQrCode-e6DxEcWY.js → PkToolShowQrCode-DGMhVUbp.js} +28 -22
  28. package/dist/_chunks/PkToolShowQrCode-DGMhVUbp.js.map +1 -0
  29. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js → PkToolShowSources-DLmVS3bL.js} +3 -3
  30. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js.map → PkToolShowSources-DLmVS3bL.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js → PkToolShowSuggestedReply-Cv-WVCFN.js} +2 -2
  32. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js.map → PkToolShowSuggestedReply-Cv-WVCFN.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js → PkToolShowVideo-D_K95gTR.js} +2 -2
  34. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js.map → PkToolShowVideo-D_K95gTR.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js → PkToolShowWebPages-DsfMacw-.js} +2 -2
  36. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js.map → PkToolShowWebPages-DsfMacw-.js.map} +1 -1
  37. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js → chatImagePolicy-BfgdFbm_.js} +2 -2
  38. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js.map → chatImagePolicy-BfgdFbm_.js.map} +1 -1
  39. package/dist/_chunks/{markdown-DDYeZICP.js → markdown-CrMYpY8l.js} +10 -10
  40. package/dist/_chunks/{markdown-DDYeZICP.js.map → markdown-CrMYpY8l.js.map} +1 -1
  41. package/dist/_chunks/{utils-euH8esYP.js → utils-CbhqxYyx.js} +57 -57
  42. package/dist/_chunks/utils-CbhqxYyx.js.map +1 -0
  43. package/dist/ai-elements.es.js +4310 -4198
  44. package/dist/ai-elements.es.js.map +1 -1
  45. package/dist-vue/PkChatbot.js +1 -1
  46. package/dist-vue/PkChatbotEmptyState.js +1 -1
  47. package/dist-vue/PkChatbotInput.js +1 -1
  48. package/dist-vue/PkChatbotMessages.js +1 -1
  49. package/dist-vue/PkChatbotStepPayload.js +1 -1
  50. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  51. package/dist-vue/PkChatbotSteps.js +1 -1
  52. package/dist-vue/PkChatbotViewChat.js +1 -1
  53. package/dist-vue/PkChatbotViewConversations.js +1 -1
  54. package/dist-vue/PkChatbotViewFiles.js +1 -1
  55. package/dist-vue/PkChatbotViewProfile.js +1 -1
  56. package/dist-vue/_chunks/{Agent-DQl-tv4S.js → Agent-BtXBSGy6.js} +34 -31
  57. package/dist-vue/_chunks/Agent-BtXBSGy6.js.map +1 -0
  58. package/dist-vue/_chunks/{Document-DXDifFZE.js → Document-DERAWuR0.js} +10 -10
  59. package/dist-vue/_chunks/{Document-DXDifFZE.js.map → Document-DERAWuR0.js.map} +1 -1
  60. package/dist-vue/_chunks/PkChatbot-CLOfTLQy.js +294 -0
  61. package/dist-vue/_chunks/PkChatbot-CLOfTLQy.js.map +1 -0
  62. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js → PkChatbotEmptyState-C9aUiynZ.js} +2 -2
  63. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js.map → PkChatbotEmptyState-C9aUiynZ.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotInput-BK7f1jFE.js → PkChatbotInput-Bs8nn-Jz.js} +154 -135
  65. package/dist-vue/_chunks/PkChatbotInput-Bs8nn-Jz.js.map +1 -0
  66. package/dist-vue/_chunks/PkChatbotMessages-BxkCGmqV.js +1039 -0
  67. package/dist-vue/_chunks/PkChatbotMessages-BxkCGmqV.js.map +1 -0
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js → PkChatbotStepPayload-C45aVagz.js} +2 -2
  69. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js.map → PkChatbotStepPayload-C45aVagz.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js → PkChatbotStepToolDetail-B0tC33x6.js} +16 -16
  71. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js.map → PkChatbotStepToolDetail-B0tC33x6.js.map} +1 -1
  72. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js +215 -0
  73. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js.map +1 -0
  74. package/dist-vue/_chunks/{PkChatbotViewChat-D8depeWQ.js → PkChatbotViewChat-BwXOt2WW.js} +450 -446
  75. package/dist-vue/_chunks/PkChatbotViewChat-BwXOt2WW.js.map +1 -0
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js → PkChatbotViewConversations-CtxE_a1O.js} +3 -3
  77. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js.map → PkChatbotViewConversations-CtxE_a1O.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js → PkChatbotViewFiles-B51zU374.js} +3 -3
  79. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js.map → PkChatbotViewFiles-B51zU374.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js → PkChatbotViewProfile-BSKRU7Ae.js} +2 -2
  81. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js.map → PkChatbotViewProfile-BSKRU7Ae.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js → PkFilePreview-p-AGDrXi.js} +30 -30
  83. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js.map → PkFilePreview-p-AGDrXi.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js → PkFilePreviewDialog-BpeeWS6d.js} +2 -2
  85. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js.map → PkFilePreviewDialog-BpeeWS6d.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js → PkStreamingMarkdown-DlcTV5je.js} +3 -3
  87. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js.map → PkStreamingMarkdown-DlcTV5je.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js → PkToolChatFile-HWGjtuaT.js} +3 -3
  89. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js.map → PkToolChatFile-HWGjtuaT.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js → PkToolRequestGeolocation-euI4VBVe.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js.map → PkToolRequestGeolocation-euI4VBVe.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js → PkToolRequestOAuthConnection-DAAYyufP.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js.map → PkToolRequestOAuthConnection-DAAYyufP.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js → PkToolShowArtifact-C8OIF_sy.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js.map → PkToolShowArtifact-C8OIF_sy.js.map} +1 -1
  96. package/dist-vue/_chunks/PkToolShowCalendarEvent-CAejFLQI.js +148 -0
  97. package/dist-vue/_chunks/PkToolShowCalendarEvent-CAejFLQI.js.map +1 -0
  98. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js → PkToolShowContactForm-K6Z5MUXk.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js.map → PkToolShowContactForm-K6Z5MUXk.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js → PkToolShowDiagram-DrlGh_v6.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js.map → PkToolShowDiagram-DrlGh_v6.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js → PkToolShowForm-DzsXJfOl.js} +6 -6
  103. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js.map → PkToolShowForm-DzsXJfOl.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js → PkToolShowImageGallery-sCyrPOIT.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js.map → PkToolShowImageGallery-sCyrPOIT.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js → PkToolShowProductList-DPDDeVu4.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js.map → PkToolShowProductList-DPDDeVu4.js.map} +1 -1
  108. package/dist-vue/_chunks/PkToolShowQrCode-96KzD1rX.js +78 -0
  109. package/dist-vue/_chunks/PkToolShowQrCode-96KzD1rX.js.map +1 -0
  110. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js → PkToolShowSources-D4zjssdh.js} +3 -3
  111. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js.map → PkToolShowSources-D4zjssdh.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js → PkToolShowSuggestedReply-smfC1hlT.js} +2 -2
  113. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js.map → PkToolShowSuggestedReply-smfC1hlT.js.map} +1 -1
  114. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js → PkToolShowVideo-C77DAqoZ.js} +2 -2
  115. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js.map → PkToolShowVideo-C77DAqoZ.js.map} +1 -1
  116. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js → PkToolShowWebPages-D_tqGI6o.js} +2 -2
  117. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js.map → PkToolShowWebPages-D_tqGI6o.js.map} +1 -1
  118. package/dist-vue/_chunks/{createChatbotApiClient-Bukf58dz.js → createChatbotApiClient-CO6l0P79.js} +87 -85
  119. package/dist-vue/_chunks/createChatbotApiClient-CO6l0P79.js.map +1 -0
  120. package/dist-vue/_chunks/{useChatbotStore-DcvdWkgq.js → useChatbotStore-CY1gAHOh.js} +1224 -1201
  121. package/dist-vue/_chunks/useChatbotStore-CY1gAHOh.js.map +1 -0
  122. package/dist-vue/_chunks/{utils-B0PnU1Rk.js → utils-CX4JuhXz.js} +66 -66
  123. package/dist-vue/_chunks/utils-CX4JuhXz.js.map +1 -0
  124. package/dist-vue/api.js +1 -1
  125. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
  126. package/dist-vue/composables.js +20 -8
  127. package/dist-vue/composables.js.map +1 -1
  128. package/dist-vue/index.js +3394 -3359
  129. package/dist-vue/index.js.map +1 -1
  130. package/dist-vue/locales.js +20 -4
  131. package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +5 -0
  132. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
  133. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +10 -8
  134. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +11 -3
  135. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
  136. package/dist-vue/packages/components/src/chat/PkFieldChanges.d.ts +15 -0
  137. package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +1 -2
  138. package/dist-vue/packages/components/src/chat/index.d.ts +1 -1
  139. package/dist-vue/packages/components/src/chat/utils.d.ts +18 -0
  140. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
  141. package/dist-vue/packages/composable/src/chatbot/appTools.d.ts +11 -5
  142. package/dist-vue/packages/composable/src/chatbot/fieldChanges.d.ts +56 -0
  143. package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +19 -0
  144. package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
  145. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -4
  146. package/dist-vue/packages/models/src/schema/Agent.d.ts +50 -0
  147. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
  148. package/dist-vue/packages/models/src/schema/Organization.d.ts +9 -0
  149. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
  150. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
  151. package/dist-vue/style.css +1 -1
  152. package/package.json +1 -1
  153. package/dist/_chunks/Agent-BBWFD4nI.js.map +0 -1
  154. package/dist/_chunks/PkToolShowCalendarEvent-mVY2FS24.js +0 -148
  155. package/dist/_chunks/PkToolShowCalendarEvent-mVY2FS24.js.map +0 -1
  156. package/dist/_chunks/PkToolShowQrCode-e6DxEcWY.js.map +0 -1
  157. package/dist/_chunks/utils-euH8esYP.js.map +0 -1
  158. package/dist-vue/_chunks/Agent-DQl-tv4S.js.map +0 -1
  159. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js +0 -286
  160. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js.map +0 -1
  161. package/dist-vue/_chunks/PkChatbotInput-BK7f1jFE.js.map +0 -1
  162. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js +0 -1041
  163. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js.map +0 -1
  164. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js +0 -189
  165. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js.map +0 -1
  166. package/dist-vue/_chunks/PkChatbotViewChat-D8depeWQ.js.map +0 -1
  167. package/dist-vue/_chunks/PkToolShowCalendarEvent-BsAOYLjp.js +0 -148
  168. package/dist-vue/_chunks/PkToolShowCalendarEvent-BsAOYLjp.js.map +0 -1
  169. package/dist-vue/_chunks/PkToolShowQrCode-skWaARYV.js +0 -72
  170. package/dist-vue/_chunks/PkToolShowQrCode-skWaARYV.js.map +0 -1
  171. package/dist-vue/_chunks/createChatbotApiClient-Bukf58dz.js.map +0 -1
  172. package/dist-vue/_chunks/useChatbotStore-DcvdWkgq.js.map +0 -1
  173. package/dist-vue/_chunks/utils-B0PnU1Rk.js.map +0 -1
@@ -2,7 +2,7 @@ import { r as e } from "./rolldown-runtime-9rEmUaIe.js";
2
2
  import { A as t, B as n, Et as r, F as i, I as a, J as o, L as s, N as c, Ot as l, Q as u, S as d, Tt as f, V as p, X as m, _ as h, d as g, f as _, g as v, gt as y, h as b, j as ee, k as x, kt as S, ot as C, r as w, tt as T, v as E, w as D, wt as O, x as k, y as A, z as j } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
3
3
  import { r as te } from "./vue-i18n-POtLvOl1.js";
4
4
  import { i as M, n as N, r as ne } from "./excelNumberFormat-CIbRUEwQ.js";
5
- import { B as re, H as ie, L as P, R as ae, U as F, V as I, W as oe, a as se, z as L } from "./utils-euH8esYP.js";
5
+ import { B as re, G as ie, H as P, R as ae, U as oe, V as F, W as I, o as se, z as L } from "./utils-CbhqxYyx.js";
6
6
  import { l as ce } from "./dist-B3-I_01H.js";
7
7
  import { t as R } from "./index.es-C7ON2BA3.js";
8
8
  import { t as le } from "./VvButtonLocalized-KEhD3ono.js";
@@ -77,15 +77,15 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
77
77
  let e = /* @__PURE__ */ new Map();
78
78
  for (let t of C.value?.rows ?? []) for (let n of t.cells) e.set(`${t.row},${n.col}`, n);
79
79
  return e;
80
- }), F = b(() => {
80
+ }), oe = b(() => {
81
81
  let e = /* @__PURE__ */ new Map();
82
82
  for (let t of C.value?.rows ?? []) for (let n of t.cells) if (n.span) for (let r = 0; r < n.span.rows; r++) for (let i = 0; i < n.span.cols; i++) (r || i) && e.set(`${t.row + r},${n.col + i}`, {
83
83
  row: t.row,
84
84
  col: n.col
85
85
  });
86
86
  return e;
87
- }), I = (e, t) => ae.value.get(`${e},${t}`), oe = (e, t) => {
88
- let n = I(e, t)?.span;
87
+ }), F = (e, t) => ae.value.get(`${e},${t}`), I = (e, t) => {
88
+ let n = F(e, t)?.span;
89
89
  if (n) return {
90
90
  rows: P.value.filter((t) => t.row >= e && t.row < e + n.rows).length,
91
91
  cols: T.value.filter((e) => e.col >= t && e.col < t + n.cols).length
@@ -198,7 +198,7 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
198
198
  }[e.key];
199
199
  if (!t) return;
200
200
  e.preventDefault();
201
- let n = P.value.map((e) => e.row), r = T.value.map((e) => e.col), a = (e) => F.value.get(`${e.row},${e.col}`) ?? e, o = a(X.value), s = n.indexOf(X.value.row), c = r.indexOf(X.value.col), l = o;
201
+ let n = P.value.map((e) => e.row), r = T.value.map((e) => e.col), a = (e) => oe.value.get(`${e.row},${e.col}`) ?? e, o = a(X.value), s = n.indexOf(X.value.row), c = r.indexOf(X.value.col), l = o;
202
202
  for (;;) {
203
203
  let e = Math.min(n.length - 1, Math.max(0, s + t[0])), i = Math.min(r.length - 1, Math.max(0, c + t[1]));
204
204
  if (e === s && i === c || (s = e, c = i, l = a({
@@ -210,12 +210,12 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
210
210
  block: "nearest",
211
211
  inline: "nearest"
212
212
  }));
213
- }, Pe = b(() => I(X.value.row, X.value.col)), $ = b(() => {
213
+ }, Pe = b(() => F(X.value.row, X.value.col)), $ = b(() => {
214
214
  let { r1: e, r2: t, c1: n, c2: r } = Z.value;
215
215
  if (e === t && n === r) return;
216
216
  let i = 0, a = 0, o = 0, s;
217
217
  for (let c = e; c <= t; c++) for (let e = n; e <= r; e++) {
218
- let t = I(c, e);
218
+ let t = F(c, e);
219
219
  t && (t.value !== void 0 || t.missing) && (i++, typeof t.value == "number" && (a += t.value, o++, s ??= t));
220
220
  }
221
221
  if (i) return {
@@ -290,20 +290,20 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
290
290
  left: 0,
291
291
  zIndex: 4
292
292
  } : void 0)
293
- }, S(e.row), 7), (j(!0), A(_, null, p(T.value, (t) => (j(), A(_, { key: t.col }, [F.value.has(`${e.row},${t.col}`) ? E("", !0) : (j(), A("td", {
293
+ }, S(e.row), 7), (j(!0), A(_, null, p(T.value, (t) => (j(), A(_, { key: t.col }, [oe.value.has(`${e.row},${t.col}`) ? E("", !0) : (j(), A("td", {
294
294
  key: 0,
295
- rowspan: oe(e.row, t.col)?.rows,
296
- colspan: oe(e.row, t.col)?.cols,
295
+ rowspan: I(e.row, t.col)?.rows,
296
+ colspan: I(e.row, t.col)?.cols,
297
297
  class: r(["pk-spreadsheet-preview__cell", {
298
298
  "pk-spreadsheet-preview__cell--range": Oe(e.row, t.col) && !ke(e.row, t.col),
299
- "pk-spreadsheet-preview__cell--missing": I(e.row, t.col)?.missing
299
+ "pk-spreadsheet-preview__cell--missing": F(e.row, t.col)?.missing
300
300
  }]),
301
- style: l(Ee(I(e.row, t.col), e.row, t.col)),
301
+ style: l(Ee(F(e.row, t.col), e.row, t.col)),
302
302
  "data-focus": ke(e.row, t.col) ? "" : void 0,
303
- title: I(e.row, t.col)?.missing ? O(n)("chatFilePreview.missingValue") : void 0,
303
+ title: F(e.row, t.col)?.missing ? O(n)("chatFilePreview.missingValue") : void 0,
304
304
  onMousedown: g((n) => je(e.row, t.col, n), ["prevent"]),
305
305
  onMouseenter: (n) => Me(e.row, t.col)
306
- }, S(B(I(e.row, t.col))), 47, pe))], 64))), 128))], 4));
306
+ }, S(B(F(e.row, t.col))), 47, pe))], 64))), 128))], 4));
307
307
  return c.memo = s, c;
308
308
  }, i, 0), 128))])
309
309
  ], 6)) : E("", !0), C.value && (C.value.moreRows || C.value.moreColumns) ? (j(), A("p", U, [C.value.moreRows ? (j(), A(_, { key: 0 }, [k(S(O(n)("chatFilePreview.moreRows", C.value.moreRows)), 1)], 64)) : E("", !0), C.value.moreColumns ? (j(), A(_, { key: 1 }, [k(S(O(n)("chatFilePreview.moreColumns", C.value.moreColumns)), 1)], 64)) : E("", !0)])) : E("", !0)], 40, H),
@@ -364,13 +364,13 @@ var Te = ["src"], Ee = {
364
364
  numbers: { type: Object }
365
365
  },
366
366
  setup(e) {
367
- let n = e, { t: i } = te({ useScope: "global" }), a = t(se, void 0), o = (e) => e.picture ? oe(a?.value, e.picture.ref) : void 0, s = (e) => n.page ? F(e) : "inline", c = (e) => {
367
+ let n = e, { t: i } = te({ useScope: "global" }), a = t(se, void 0), o = (e) => e.picture ? ie(a?.value, e.picture.ref) : void 0, s = (e) => n.page ? I(e) : "inline", c = (e) => {
368
368
  let t = {
369
369
  width: `${e.width}pt`,
370
370
  aspectRatio: `${e.width} / ${e.height}`
371
371
  }, r = e.anchor, i = n.page;
372
372
  if (!r || !i) return t;
373
- let a = r.xFrom === "page" ? r.x - i.margins.left : r.x, o = F(e);
373
+ let a = r.xFrom === "page" ? r.x - i.margins.left : r.x, o = I(e);
374
374
  if (o === "around") {
375
375
  let n = i.width - i.margins.left - i.margins.right, o = a + e.width / 2 < n / 2;
376
376
  return {
@@ -392,11 +392,11 @@ var Te = ["src"], Ee = {
392
392
  zIndex: r.wrap === "behind" ? -1 : 1
393
393
  };
394
394
  }, u = (e) => e.field && n.numbers ? String(n.numbers[e.field]) : e.text, d = b(() => {
395
- let e = L(n.runs, n.mode ?? "markup"), t = (e) => !!e.picture && !!n.page && ["around", "block"].includes(F(e.picture));
395
+ let e = re(n.runs, n.mode ?? "markup"), t = (e) => !!e.picture && !!n.page && ["around", "block"].includes(I(e.picture));
396
396
  return [...e.filter(t), ...e.filter((e) => !t(e))];
397
397
  }), f = b(() => !n.mode || n.mode === "markup"), m = (e) => {
398
398
  let t = {};
399
- e.font && (t.fontFamily = ae(e.font)), t.fontSize = e.size ? `${e.size}pt` : "var(--pk-word-size)", e.color && (t.color = e.color), e.highlight && (t.backgroundColor = e.highlight), e.bold && (t.fontWeight = 700), e.italic && (t.fontStyle = "italic");
399
+ e.font && (t.fontFamily = L(e.font)), t.fontSize = e.size ? `${e.size}pt` : "var(--pk-word-size)", e.color && (t.color = e.color), e.highlight && (t.backgroundColor = e.highlight), e.bold && (t.fontWeight = 700), e.italic && (t.fontStyle = "italic");
400
400
  let n = [e.underline ? "underline" : "", e.strike ? "line-through" : ""].filter(Boolean).join(" ");
401
401
  return n && (t.textDecoration = n), e.caps && (t.textTransform = "uppercase"), e.vertAlign && (t.verticalAlign = e.vertAlign, t.fontSize = `${(e.size ?? 11) * .65}pt`), t;
402
402
  }, h = (e) => {
@@ -528,11 +528,11 @@ var je = { class: "pk-word-preview__part" }, Me = ["src"], Ne = /* @__PURE__ */
528
528
  numbers: { type: Object }
529
529
  },
530
530
  setup(e) {
531
- let n = e, r = t(se, void 0), i = b(() => P(n.blocks, n.mode)), a = b(() => ie(n.blocks, n.mode).flatMap((e) => {
532
- let t = oe(r?.value, e.ref);
531
+ let n = e, r = t(se, void 0), i = b(() => ae(n.blocks, n.mode)), a = b(() => oe(n.blocks, n.mode).flatMap((e) => {
532
+ let t = ie(r?.value, e.ref);
533
533
  return t ? [{
534
534
  src: t,
535
- css: I(e, n.section.page)
535
+ css: P(e, n.section.page)
536
536
  }] : [];
537
537
  })), o = b(() => {
538
538
  let { margins: e } = n.section.page;
@@ -617,19 +617,19 @@ var Pe = ["aria-label"], $ = {
617
617
  setup(e) {
618
618
  let t = e, { t: c } = te({ useScope: "global" });
619
619
  n(se, b(() => t.preview.images));
620
- let f = (e) => L(e, t.mode), g = b(() => P(t.preview.blocks, t.mode)), ee = m("rootEl"), x = m("scrollEl"), C = m("measureEl"), { width: w } = ce(ee), { width: T } = ce(x), D = b(() => w.value === 0 || w.value >= 640), k = b(() => w.value >= 1e3), M = b(() => t.preview.sections?.length ? t.preview.sections : [{
620
+ let f = (e) => re(e, t.mode), g = b(() => ae(t.preview.blocks, t.mode)), ee = m("rootEl"), x = m("scrollEl"), C = m("measureEl"), { width: w } = ce(ee), { width: T } = ce(x), D = b(() => w.value === 0 || w.value >= 640), k = b(() => w.value >= 1e3), M = b(() => t.preview.sections?.length ? t.preview.sections : [{
621
621
  page: t.preview.page,
622
622
  headerDistance: 0,
623
623
  footerDistance: 0,
624
624
  headers: {},
625
625
  footers: {}
626
626
  }]), N = b(() => M.value[0].page), ne = b(() => ({
627
- fontFamily: ae(t.preview.defaults.font),
627
+ fontFamily: L(t.preview.defaults.font),
628
628
  fontSize: `${t.preview.defaults.size}pt`,
629
629
  color: t.preview.defaults.color ?? "#000000",
630
- "--pk-word-line": re(t.preview.defaults.font),
630
+ "--pk-word-line": F(t.preview.defaults.font),
631
631
  "--pk-word-size": `${t.preview.defaults.size}pt`
632
- })), F = b(() => ({
632
+ })), I = b(() => ({
633
633
  ...ne.value,
634
634
  width: `${N.value.width - N.value.margins.left - N.value.margins.right}pt`
635
635
  })), R = y([]), z = y({}), B = async () => {
@@ -701,11 +701,11 @@ var Pe = ["aria-label"], $ = {
701
701
  };
702
702
  }, fe = (e) => {
703
703
  let n = [...new Set(e.items.map((e) => g.value[e].block))];
704
- return ie(n.map((e) => t.preview.blocks[e]), t.mode).flatMap((n) => {
705
- let r = oe(t.preview.images, n.ref);
704
+ return oe(n.map((e) => t.preview.blocks[e]), t.mode).flatMap((n) => {
705
+ let r = ie(t.preview.images, n.ref);
706
706
  return r ? [{
707
707
  src: r,
708
- css: I(n, M.value[e.section].page)
708
+ css: P(n, M.value[e.section].page)
709
709
  }] : [];
710
710
  });
711
711
  }, H = o(e, "fit"), pe = o(e, "zoom"), U = b(() => H.value ? Math.min(1.25, Math.max(.3, (T.value - 48) / (N.value.width * at))) : pe.value), me = (e) => {
@@ -934,7 +934,7 @@ var Pe = ["aria-label"], $ = {
934
934
  ref: C,
935
935
  class: "pk-word-preview__measure",
936
936
  "aria-hidden": "true",
937
- style: l(F.value)
937
+ style: l(I.value)
938
938
  }, [(j(!0), A(_, null, p(g.value, (t) => (j(), A("div", {
939
939
  key: t.key,
940
940
  "data-item": ""
@@ -951,7 +951,7 @@ var Pe = ["aria-label"], $ = {
951
951
  ])]))), 128)), (j(!0), A(_, null, p(e.preview.parts, (t, n) => (j(), A("div", {
952
952
  key: n,
953
953
  "data-part": n
954
- }, [(j(!0), A(_, null, p(O(P)(t, e.mode), (n) => (j(), h(Q, {
954
+ }, [(j(!0), A(_, null, p(O(ae)(t, e.mode), (n) => (j(), h(Q, {
955
955
  key: n.key,
956
956
  block: t[n.block],
957
957
  row: n.row,
@@ -1163,4 +1163,4 @@ var st = ["aria-label"], ct = { class: "pk-file-preview__head" }, lt = { class:
1163
1163
  }), wt = ".pk-file-preview{background-color:var(--color-surface);height:100%;min-height:0;color:var(--color-word-1);outline:none;flex-direction:column;display:flex;container-type:inline-size}.pk-file-preview__head{align-items:center;gap:var(--spacing-8) var(--spacing-12);padding:var(--spacing-12) var(--spacing-12) var(--spacing-12) var(--spacing-md);border-bottom:var(--border) solid var(--color-surface-3);flex-wrap:wrap;display:flex}.pk-file-preview__file{align-items:center;gap:var(--spacing-12);flex:12rem;min-width:0;display:flex}.pk-file-preview__tile{width:var(--spacing-32);height:var(--spacing-32);border:var(--border) solid var(--color-surface-3);border-radius:var(--rounded);flex-shrink:0;justify-content:center;align-items:center;display:flex}.pk-file-preview__tile .vv-icon{width:var(--spacing-18);height:var(--spacing-18)}.pk-file-preview__icon--word{color:#2b7de9}.pk-file-preview__icon--sheet{color:#1f9d57}.pk-file-preview__name{flex-direction:column;min-width:0;display:flex}.pk-file-preview__title{font-size:var(--text-14);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pk-file-preview__note{color:var(--color-word-3);font-size:var(--text-12)}.pk-file-preview__tools{align-items:center;gap:var(--spacing-8) var(--spacing-12);flex-wrap:wrap;display:flex}.pk-file-preview__versions{align-items:center;gap:var(--spacing-2);display:flex}.pk-file-preview__version{font-size:var(--text-14);font-weight:var(--font-semibold);font-variant-numeric:tabular-nums;white-space:nowrap}.pk-file-preview__actions{align-items:center;gap:var(--spacing-8);margin-left:auto;display:flex}@container (width<52rem){.pk-file-preview__file{order:1}.pk-file-preview__actions{order:2}.pk-file-preview__tools{flex-basis:100%;order:3}.pk-file-preview__tools .pk-file-preview__modes{flex:auto}}.pk-file-preview__mode-short{display:none}@container (width<38rem){.pk-file-preview__mode-long{display:none}.pk-file-preview__mode-short{display:inline}}@container (width<30rem){.pk-file-preview__tools .pk-file-preview__modes{flex:100%}.pk-file-preview__tools .pk-file-preview__modes .vv-radio{padding-inline:var(--spacing-4)}}.pk-file-preview__body{background-color:var(--color-surface-1);flex-direction:column;flex:1;min-height:0;display:flex}.pk-file-preview__skeleton{width:min(42rem, 100% - 2 * var(--spacing-md));margin:var(--spacing-md) auto;padding:var(--spacing-lg);box-sizing:border-box;border:var(--border) solid var(--color-surface-3);border-radius:var(--rounded);background-color:var(--color-surface)}.pk-file-preview__skeleton-line{height:var(--spacing-12);margin-bottom:var(--spacing-12);border-radius:var(--rounded)}.pk-file-preview__empty{margin:var(--spacing-lg) var(--spacing-md);color:var(--color-word-3);font-size:var(--text-14);text-align:center}", Tt = /* @__PURE__ */ e({ default: () => Et }), Et = /*#__PURE__*/ z(Ct, [["styles", [wt]]]);
1164
1164
  export { Tt as n, Et as t };
1165
1165
 
1166
- //# sourceMappingURL=PkFilePreview-BwHe4-m1.js.map
1166
+ //# sourceMappingURL=PkFilePreview-C3R3jrNi.js.map