@8wave/ai-elements 0.124.0 → 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 { t as e } from "./rolldown-runtime-CGnMp29N.js";
2
2
  import { t } from "./PkEditorRadioButtons-Bw576DPQ.js";
3
3
  import { i as n, n as r, r as i } from "./excelNumberFormat-COn5tHoH.js";
4
4
  import { t as a } from "./VvButtonLocalized-C-vx25u4.js";
5
- import { B as o, G as s, H as c, K as l, U as u, V as d, W as f, a as p, z as m } from "./utils-B0PnU1Rk.js";
5
+ import { B as o, G as s, H as c, K as l, U as u, V as d, W as f, o as p, q as m } from "./utils-CX4JuhXz.js";
6
6
  import { VvIcon as h } from "@volverjs/ui-vue/components";
7
7
  import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, inject as ee, isMemoSame as T, mergeModels as E, nextTick as te, normalizeClass as D, normalizeStyle as O, onBeforeUnmount as ne, onMounted as re, openBlock as k, provide as A, ref as j, renderList as M, toDisplayString as N, unref as P, useModel as F, useTemplateRef as ie, watch as I, withCtx as L, withModifiers as R } from "vue";
8
8
  import { useI18n as ae } from "vue-i18n";
@@ -359,13 +359,13 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
359
359
  numbers: {}
360
360
  },
361
361
  setup(e) {
362
- let t = e, { t: n } = ae({ useScope: "global" }), r = ee(p, void 0), i = (e) => e.picture ? l(r?.value, e.picture.ref) : void 0, a = (e) => t.page ? s(e) : "inline", c = (e) => {
362
+ let t = e, { t: n } = ae({ useScope: "global" }), r = ee(p, void 0), i = (e) => e.picture ? m(r?.value, e.picture.ref) : void 0, a = (e) => t.page ? l(e) : "inline", o = (e) => {
363
363
  let n = {
364
364
  width: `${e.width}pt`,
365
365
  aspectRatio: `${e.width} / ${e.height}`
366
366
  }, r = e.anchor, i = t.page;
367
367
  if (!r || !i) return n;
368
- let a = r.xFrom === "page" ? r.x - i.margins.left : r.x, o = s(e);
368
+ let a = r.xFrom === "page" ? r.x - i.margins.left : r.x, o = l(e);
369
369
  if (o === "around") {
370
370
  let t = i.width - i.margins.left - i.margins.right, o = a + e.width / 2 < t / 2;
371
371
  return {
@@ -386,12 +386,12 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
386
386
  top: `${r.y}pt`,
387
387
  zIndex: r.wrap === "behind" ? -1 : 1
388
388
  };
389
- }, u = (e) => e.field && t.numbers ? String(t.numbers[e.field]) : e.text, f = _(() => {
390
- let e = d(t.runs, t.mode ?? "markup"), n = (e) => !!e.picture && !!t.page && ["around", "block"].includes(s(e.picture));
389
+ }, s = (e) => e.field && t.numbers ? String(t.numbers[e.field]) : e.text, u = _(() => {
390
+ let e = c(t.runs, t.mode ?? "markup"), n = (e) => !!e.picture && !!t.page && ["around", "block"].includes(l(e.picture));
391
391
  return [...e.filter(n), ...e.filter((e) => !n(e))];
392
- }), m = _(() => !t.mode || t.mode === "markup"), h = (e) => {
392
+ }), f = _(() => !t.mode || t.mode === "markup"), h = (e) => {
393
393
  let t = {};
394
- e.font && (t.fontFamily = o(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");
394
+ e.font && (t.fontFamily = d(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");
395
395
  let n = [e.underline ? "underline" : "", e.strike ? "line-through" : ""].filter(Boolean).join(" ");
396
396
  return n && (t.textDecoration = n), e.caps && (t.textTransform = "uppercase"), e.vertAlign && (t.verticalAlign = e.vertAlign, t.fontSize = `${(e.size ?? 11) * .65}pt`), t;
397
397
  }, v = (e) => {
@@ -401,26 +401,26 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
401
401
  textDecoration: [...n].join(" ")
402
402
  };
403
403
  }, x = (e) => e.author ? n("chatFilePreview.revisionBy", { author: e.author }) : void 0;
404
- return (e, t) => (k(!0), b(g, null, M(f.value, (e, t) => (k(), b(g, { key: t }, [e.image ? (k(), b(g, { key: 0 }, [e.picture && i(e) ? (k(), b(g, { key: 0 }, [a(e.picture) === "page" ? y("", !0) : (k(), b("img", {
404
+ return (e, t) => (k(!0), b(g, null, M(u.value, (e, t) => (k(), b(g, { key: t }, [e.image ? (k(), b(g, { key: 0 }, [e.picture && i(e) ? (k(), b(g, { key: 0 }, [a(e.picture) === "page" ? y("", !0) : (k(), b("img", {
405
405
  key: 0,
406
406
  class: D(["pk-word-preview__picture", `pk-word-preview__picture--${a(e.picture)}`]),
407
- style: O(c(e.picture)),
407
+ style: O(o(e.picture)),
408
408
  src: i(e),
409
409
  alt: ""
410
- }, null, 14, K))], 64)) : (k(), b("span", q, N(P(n)("chatFilePreview.image")), 1))], 64)) : m.value && e.change === "deleted" ? (k(), b("del", {
410
+ }, null, 14, K))], 64)) : (k(), b("span", q, N(P(n)("chatFilePreview.image")), 1))], 64)) : f.value && e.change === "deleted" ? (k(), b("del", {
411
411
  key: 1,
412
412
  class: "pk-word-preview__removed",
413
413
  style: O(v(e)),
414
414
  title: x(e)
415
- }, N(u(e)), 13, Ce)) : m.value && e.change === "inserted" ? (k(), b("ins", {
415
+ }, N(s(e)), 13, Ce)) : f.value && e.change === "inserted" ? (k(), b("ins", {
416
416
  key: 2,
417
417
  class: "pk-word-preview__added",
418
418
  style: O(v(e)),
419
419
  title: x(e)
420
- }, N(u(e)), 13, J)) : (k(), b("span", {
420
+ }, N(s(e)), 13, J)) : (k(), b("span", {
421
421
  key: 3,
422
422
  style: O(h(e))
423
- }, N(u(e)), 5))], 64))), 128));
423
+ }, N(s(e)), 5))], 64))), 128));
424
424
  }
425
425
  }), Te = { key: 0 }, Ee = ["colspan"], De = ["role", "aria-level"], Y = { key: 1 }, X = /* @__PURE__ */ w({
426
426
  __name: "PkWordPreviewBlock",
@@ -517,11 +517,11 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
517
517
  numbers: {}
518
518
  },
519
519
  setup(e) {
520
- let t = e, n = ee(p, void 0), r = _(() => m(t.blocks, t.mode)), i = _(() => f(t.blocks, t.mode).flatMap((e) => {
521
- let r = l(n?.value, e.ref);
520
+ let t = e, n = ee(p, void 0), r = _(() => o(t.blocks, t.mode)), i = _(() => s(t.blocks, t.mode).flatMap((e) => {
521
+ let r = m(n?.value, e.ref);
522
522
  return r ? [{
523
523
  src: r,
524
- css: u(e, t.section.page)
524
+ css: f(e, t.section.page)
525
525
  }] : [];
526
526
  })), a = _(() => {
527
527
  let { margins: e } = t.section.page;
@@ -603,17 +603,17 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
603
603
  setup(e) {
604
604
  let t = e, { t: n } = ae({ useScope: "global" });
605
605
  A(p, _(() => t.preview.images));
606
- let r = (e) => d(e, t.mode), i = _(() => m(t.preview.blocks, t.mode)), s = ie("rootEl"), h = ie("scrollEl"), S = ie("measureEl"), { width: w } = oe(s), { width: ee } = oe(h), T = _(() => w.value === 0 || w.value >= 640), E = _(() => w.value >= 1e3), L = _(() => t.preview.sections?.length ? t.preview.sections : [{
606
+ let r = (e) => c(e, t.mode), i = _(() => o(t.preview.blocks, t.mode)), l = ie("rootEl"), h = ie("scrollEl"), S = ie("measureEl"), { width: w } = oe(l), { width: ee } = oe(h), T = _(() => w.value === 0 || w.value >= 640), E = _(() => w.value >= 1e3), L = _(() => t.preview.sections?.length ? t.preview.sections : [{
607
607
  page: t.preview.page,
608
608
  headerDistance: 0,
609
609
  footerDistance: 0,
610
610
  headers: {},
611
611
  footers: {}
612
612
  }]), R = _(() => L.value[0].page), se = _(() => ({
613
- fontFamily: o(t.preview.defaults.font),
613
+ fontFamily: d(t.preview.defaults.font),
614
614
  fontSize: `${t.preview.defaults.size}pt`,
615
615
  color: t.preview.defaults.color ?? "#000000",
616
- "--pk-word-line": c(t.preview.defaults.font),
616
+ "--pk-word-line": u(t.preview.defaults.font),
617
617
  "--pk-word-size": `${t.preview.defaults.size}pt`
618
618
  })), ce = _(() => ({
619
619
  ...se.value,
@@ -687,11 +687,11 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
687
687
  };
688
688
  }, pe = (e) => {
689
689
  let n = [...new Set(e.items.map((e) => i.value[e].block))];
690
- return f(n.map((e) => t.preview.blocks[e]), t.mode).flatMap((n) => {
691
- let r = l(t.preview.images, n.ref);
690
+ return s(n.map((e) => t.preview.blocks[e]), t.mode).flatMap((n) => {
691
+ let r = m(t.preview.images, n.ref);
692
692
  return r ? [{
693
693
  src: r,
694
- css: u(n, L.value[e.section].page)
694
+ css: f(n, L.value[e.section].page)
695
695
  }] : [];
696
696
  });
697
697
  }, V = F(e, "fit"), me = F(e, "zoom"), H = _(() => V.value ? Math.min(1.25, Math.max(.3, (ee.value - 48) / (R.value.width * et))) : me.value), he = (e) => {
@@ -741,10 +741,10 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
741
741
  }), E.value || (K.value = !1);
742
742
  }, Ce = _(() => t.preview.blocks.flatMap((e) => e.kind === "table" ? e.rows.flat().map((e) => xe(e.runs)) : [xe(e.runs)]).join(" ").split(/\s+/).filter(Boolean).length), J = _(() => t.preview.revisionAuthors.join(", "));
743
743
  return (t, r) => {
744
- let o = a;
744
+ let s = a;
745
745
  return k(), b("div", {
746
746
  ref_key: "rootEl",
747
- ref: s,
747
+ ref: l,
748
748
  class: D(["pk-word-preview", { "pk-word-preview--paged": T.value }])
749
749
  }, [
750
750
  (E.value || K.value) && (U.value.length || W.value.length) ? (k(), b("aside", {
@@ -874,7 +874,7 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
874
874
  x("ins", Ze, N(P(n)("chatFilePreview.added")), 1)
875
875
  ])) : y("", !0),
876
876
  r[6] ||= x("span", { class: "pk-word-preview__spacer" }, null, -1),
877
- !E.value && (U.value.length || W.value.length) ? (k(), v(o, {
877
+ !E.value && (U.value.length || W.value.length) ? (k(), v(s, {
878
878
  key: 2,
879
879
  class: "pk-word-preview__outline-toggle",
880
880
  modifiers: "action-quiet",
@@ -891,13 +891,13 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
891
891
  "aria-expanded"
892
892
  ])) : y("", !0),
893
893
  T.value ? (k(), b(g, { key: 3 }, [
894
- C(o, {
894
+ C(s, {
895
895
  modifiers: "action-quiet",
896
896
  label: P(n)("chatFilePreview.fitWidth"),
897
897
  disabled: V.value,
898
898
  onClick: r[3] ||= (e) => V.value = !0
899
899
  }, null, 8, ["label", "disabled"]),
900
- C(o, {
900
+ C(s, {
901
901
  modifiers: "action-quiet",
902
902
  icon: "ri:subtract-line",
903
903
  "aria-label": P(n)("chatFilePreview.zoomOut"),
@@ -905,7 +905,7 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
905
905
  onClick: r[4] ||= (e) => he(-.1)
906
906
  }, null, 8, ["aria-label", "disabled"]),
907
907
  x("span", Qe, N(Math.round(H.value * 100)) + "% ", 1),
908
- C(o, {
908
+ C(s, {
909
909
  modifiers: "action-quiet",
910
910
  icon: "ri:add-line",
911
911
  "aria-label": P(n)("chatFilePreview.zoomIn"),
@@ -937,7 +937,7 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
937
937
  ])]))), 128)), (k(!0), b(g, null, M(e.preview.parts, (t, n) => (k(), b("div", {
938
938
  key: n,
939
939
  "data-part": n
940
- }, [(k(!0), b(g, null, M(P(m)(t, e.mode), (n) => (k(), v(X, {
940
+ }, [(k(!0), b(g, null, M(P(o)(t, e.mode), (n) => (k(), v(X, {
941
941
  key: n.key,
942
942
  block: t[n.block],
943
943
  row: n.row,
@@ -1146,4 +1146,4 @@ var se = { class: "pk-spreadsheet-preview" }, ce = { class: "pk-spreadsheet-prev
1146
1146
  }), yt = /* @__PURE__ */ e({ default: () => bt }), bt = vt;
1147
1147
  export { yt as n, bt as t };
1148
1148
 
1149
- //# sourceMappingURL=PkFilePreview-B54Dp_Rs.js.map
1149
+ //# sourceMappingURL=PkFilePreview-p-AGDrXi.js.map