@8wave/ai-elements 0.125.0-beta.36 → 0.125.0-beta.38

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 (114) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-DsRAk1js.js → PkChatbotFilePreview-Dt0ygdJM.js} +2 -2
  2. package/dist/_chunks/{PkChatbotFilePreview-DsRAk1js.js.map → PkChatbotFilePreview-Dt0ygdJM.js.map} +1 -1
  3. package/dist/_chunks/{PkEditorRadioButtons-ClUWPayk.js → PkEditorRadioButtons-Br4c42KS.js} +2 -2
  4. package/dist/_chunks/{PkEditorRadioButtons-ClUWPayk.js.map → PkEditorRadioButtons-Br4c42KS.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreview-Bic0SA47.js → PkFilePreview-BdqdC1ml.js} +5 -5
  6. package/dist/_chunks/{PkFilePreview-Bic0SA47.js.map → PkFilePreview-BdqdC1ml.js.map} +1 -1
  7. package/dist/_chunks/{PkFilePreviewDialog-WKJ0Zm3O.js → PkFilePreviewDialog-_pdW07pm.js} +3 -3
  8. package/dist/_chunks/{PkFilePreviewDialog-WKJ0Zm3O.js.map → PkFilePreviewDialog-_pdW07pm.js.map} +1 -1
  9. package/dist/_chunks/{PkHeldImage-CtIvSX8O.js → PkHeldImage-H7-q7WrE.js} +2 -2
  10. package/dist/_chunks/{PkHeldImage-CtIvSX8O.js.map → PkHeldImage-H7-q7WrE.js.map} +1 -1
  11. package/dist/_chunks/{PkImageEditorDialog-BQwM06kT.js → PkImageEditorDialog-D-ikpGo8.js} +5 -5
  12. package/dist/_chunks/{PkImageEditorDialog-BQwM06kT.js.map → PkImageEditorDialog-D-ikpGo8.js.map} +1 -1
  13. package/dist/_chunks/{PkLazyImg-Dmu5wBpK.js → PkLazyImg-DTGucEQ9.js} +2 -2
  14. package/dist/_chunks/{PkLazyImg-Dmu5wBpK.js.map → PkLazyImg-DTGucEQ9.js.map} +1 -1
  15. package/dist/_chunks/{PkSelectionActions-mna8QQGY.js → PkSelectionActions-CjAiM1G3.js} +2 -2
  16. package/dist/_chunks/{PkSelectionActions-mna8QQGY.js.map → PkSelectionActions-CjAiM1G3.js.map} +1 -1
  17. package/dist/_chunks/{PkToolChatFile-CTBwDxvV.js → PkToolChatFile-39PrHVVm.js} +3 -3
  18. package/dist/_chunks/{PkToolChatFile-CTBwDxvV.js.map → PkToolChatFile-39PrHVVm.js.map} +1 -1
  19. package/dist/_chunks/{PkToolRequestGeolocation-XmQTnuwg.js → PkToolRequestGeolocation-CMSIJu4c.js} +2 -2
  20. package/dist/_chunks/{PkToolRequestGeolocation-XmQTnuwg.js.map → PkToolRequestGeolocation-CMSIJu4c.js.map} +1 -1
  21. package/dist/_chunks/{PkToolRequestOAuthConnection-BSKa66Nf.js → PkToolRequestOAuthConnection-ClVVaEuK.js} +3 -3
  22. package/dist/_chunks/{PkToolRequestOAuthConnection-BSKa66Nf.js.map → PkToolRequestOAuthConnection-ClVVaEuK.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShareDocument-D5K3uJ2x.js → PkToolShareDocument-Bxm1pSpj.js} +3 -3
  24. package/dist/_chunks/{PkToolShareDocument-D5K3uJ2x.js.map → PkToolShareDocument-Bxm1pSpj.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowArtifact-C27hZNJd.js → PkToolShowArtifact-D1AOFL1o.js} +2 -2
  26. package/dist/_chunks/{PkToolShowArtifact-C27hZNJd.js.map → PkToolShowArtifact-D1AOFL1o.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowCalendarEvent-Cq_ApwVL.js → PkToolShowCalendarEvent-Bf1fBrjf.js} +4 -4
  28. package/dist/_chunks/{PkToolShowCalendarEvent-Cq_ApwVL.js.map → PkToolShowCalendarEvent-Bf1fBrjf.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowComparison-CmIDi-5O.js → PkToolShowComparison-BURyhuOx.js} +3 -3
  30. package/dist/_chunks/{PkToolShowComparison-CmIDi-5O.js.map → PkToolShowComparison-BURyhuOx.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowContactForm-VVgxhvQd.js → PkToolShowContactForm-CTitUxv_.js} +4 -4
  32. package/dist/_chunks/{PkToolShowContactForm-VVgxhvQd.js.map → PkToolShowContactForm-CTitUxv_.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowDiagram-jpaEAi2X.js → PkToolShowDiagram-CwINVecL.js} +3 -3
  34. package/dist/_chunks/{PkToolShowDiagram-jpaEAi2X.js.map → PkToolShowDiagram-CwINVecL.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowEmail-Cdwe_01-.js → PkToolShowEmail-mGLOd6zf.js} +4 -4
  36. package/dist/_chunks/{PkToolShowEmail-Cdwe_01-.js.map → PkToolShowEmail-mGLOd6zf.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowForm-C4t_v1ps.js → PkToolShowForm-YaDgT_04.js} +5 -5
  38. package/dist/_chunks/{PkToolShowForm-C4t_v1ps.js.map → PkToolShowForm-YaDgT_04.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowImageGallery-y3iOOanc.js → PkToolShowImageGallery-BVrcfe_b.js} +3 -3
  40. package/dist/_chunks/{PkToolShowImageGallery-y3iOOanc.js.map → PkToolShowImageGallery-BVrcfe_b.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowLocation-7Uqe4JnF.js → PkToolShowLocation-BYkY2CEF.js} +4 -4
  42. package/dist/_chunks/{PkToolShowLocation-7Uqe4JnF.js.map → PkToolShowLocation-BYkY2CEF.js.map} +1 -1
  43. package/dist/_chunks/{PkToolShowMessage-BPugVukY.js → PkToolShowMessage-CvxABht3.js} +4 -4
  44. package/dist/_chunks/{PkToolShowMessage-BPugVukY.js.map → PkToolShowMessage-CvxABht3.js.map} +1 -1
  45. package/dist/_chunks/{PkToolShowProductList-CTB2wcrz.js → PkToolShowProductList-CYNh8YRF.js} +4 -4
  46. package/dist/_chunks/{PkToolShowProductList-CTB2wcrz.js.map → PkToolShowProductList-CYNh8YRF.js.map} +1 -1
  47. package/dist/_chunks/{PkToolShowQrCode-QcJxu2vI.js → PkToolShowQrCode-DgnNA0rU.js} +3 -3
  48. package/dist/_chunks/{PkToolShowQrCode-QcJxu2vI.js.map → PkToolShowQrCode-DgnNA0rU.js.map} +1 -1
  49. package/dist/_chunks/{PkToolShowSources-Byv7DkHR.js → PkToolShowSources-BvH0el0N.js} +3 -3
  50. package/dist/_chunks/{PkToolShowSources-Byv7DkHR.js.map → PkToolShowSources-BvH0el0N.js.map} +1 -1
  51. package/dist/_chunks/{PkToolShowSuggestedReply-D8FQu6Pd.js → PkToolShowSuggestedReply-PHcre0Ff.js} +2 -2
  52. package/dist/_chunks/{PkToolShowSuggestedReply-D8FQu6Pd.js.map → PkToolShowSuggestedReply-PHcre0Ff.js.map} +1 -1
  53. package/dist/_chunks/{PkToolShowVideo-B8Ql2lYD.js → PkToolShowVideo-SiP-5Ekl.js} +3 -3
  54. package/dist/_chunks/{PkToolShowVideo-B8Ql2lYD.js.map → PkToolShowVideo-SiP-5Ekl.js.map} +1 -1
  55. package/dist/_chunks/{PkToolShowWeather-B9HWOU7p.js → PkToolShowWeather-BMnvmUoO.js} +2 -2
  56. package/dist/_chunks/{PkToolShowWeather-B9HWOU7p.js.map → PkToolShowWeather-BMnvmUoO.js.map} +1 -1
  57. package/dist/_chunks/{PkToolShowWebPages-CR-eQrdv.js → PkToolShowWebPages-Co_33g_K.js} +4 -4
  58. package/dist/_chunks/{PkToolShowWebPages-CR-eQrdv.js.map → PkToolShowWebPages-Co_33g_K.js.map} +1 -1
  59. package/dist/_chunks/{VvButtonLocalized-B32dBwWJ.js → VvButtonLocalized-C8S7XJGv.js} +2 -2
  60. package/dist/_chunks/{VvButtonLocalized-B32dBwWJ.js.map → VvButtonLocalized-C8S7XJGv.js.map} +1 -1
  61. package/dist/_chunks/{VvCheckbox.es-DScKyi1x.js → VvCheckbox.es-DXJ1UB8G.js} +2 -2
  62. package/dist/_chunks/{VvCheckbox.es-DScKyi1x.js.map → VvCheckbox.es-DXJ1UB8G.js.map} +1 -1
  63. package/dist/_chunks/{VvCheckboxGroup.es-BuoyBIix.js → VvCheckboxGroup.es-ZWG2NV9b.js} +2 -2
  64. package/dist/_chunks/{VvCheckboxGroup.es-BuoyBIix.js.map → VvCheckboxGroup.es-ZWG2NV9b.js.map} +1 -1
  65. package/dist/_chunks/{VvCombobox.es-uAWL0Asj.js → VvCombobox.es-D516ShMF.js} +318 -307
  66. package/dist/_chunks/VvCombobox.es-D516ShMF.js.map +1 -0
  67. package/dist/_chunks/{VvInputText.es-Cw6GoyJS.js → VvInputText.es-Dzf_mjzr.js} +250 -239
  68. package/dist/_chunks/VvInputText.es-Dzf_mjzr.js.map +1 -0
  69. package/dist/_chunks/{VvRadio.es-Betfu_P8.js → VvRadio.es-CksG97Js.js} +2 -2
  70. package/dist/_chunks/{VvRadio.es-Betfu_P8.js.map → VvRadio.es-CksG97Js.js.map} +1 -1
  71. package/dist/_chunks/{VvRadioGroup.es-CEzr2_1l.js → VvRadioGroup.es-Bo2Pf354.js} +2 -2
  72. package/dist/_chunks/{VvRadioGroup.es-CEzr2_1l.js.map → VvRadioGroup.es-Bo2Pf354.js.map} +1 -1
  73. package/dist/_chunks/{VvSelect.es-BLMFR1iC.js → VvSelect.es-DpN2t0Oh.js} +3 -3
  74. package/dist/_chunks/{VvSelect.es-BLMFR1iC.js.map → VvSelect.es-DpN2t0Oh.js.map} +1 -1
  75. package/dist/_chunks/{VvTextarea.es-CFZHoQWF.js → VvTextarea.es-GlakViWr.js} +347 -336
  76. package/dist/_chunks/VvTextarea.es-GlakViWr.js.map +1 -0
  77. package/dist/_chunks/{iconify-oSMMdRMF.js → iconify-Cj-qXWYO.js} +175 -175
  78. package/dist/_chunks/{iconify-oSMMdRMF.js.map → iconify-Cj-qXWYO.js.map} +1 -1
  79. package/dist/_chunks/{index.es-DKgwv-Tl.js → index.es-0ah-ssIE.js} +10 -10
  80. package/dist/_chunks/{index.es-DKgwv-Tl.js.map → index.es-0ah-ssIE.js.map} +1 -1
  81. package/dist/_chunks/{index.es-D-aOuzzp.js → index.es-DIHz5I8K.js} +152 -141
  82. package/dist/_chunks/index.es-DIHz5I8K.js.map +1 -0
  83. package/dist/ai-elements.es.js +46 -46
  84. package/dist/ai-elements.es.js.map +1 -1
  85. package/dist-vue/PkChatbot.js +1 -1
  86. package/dist-vue/PkChatbotAuth.js +1 -1
  87. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  88. package/dist-vue/PkChatbotMessages.js +1 -1
  89. package/dist-vue/PkChatbotViewChat.js +1 -1
  90. package/dist-vue/_chunks/{PkChatbot-BtJsIn4h.js → PkChatbot-CfBea2qY.js} +2 -2
  91. package/dist-vue/_chunks/{PkChatbot-BtJsIn4h.js.map → PkChatbot-CfBea2qY.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkChatbotAuth-Btxg3TF0.js → PkChatbotAuth-Ci9NmbVb.js} +2 -2
  93. package/dist-vue/_chunks/{PkChatbotAuth-Btxg3TF0.js.map → PkChatbotAuth-Ci9NmbVb.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkChatbotFeedbackForm-Bh3tvNUW.js → PkChatbotFeedbackForm-D3YNMO7m.js} +2 -2
  95. package/dist-vue/_chunks/{PkChatbotFeedbackForm-Bh3tvNUW.js.map → PkChatbotFeedbackForm-D3YNMO7m.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkChatbotMessages-Bmrvz0Nv.js → PkChatbotMessages-AkfEvXEN.js} +3 -3
  97. package/dist-vue/_chunks/{PkChatbotMessages-Bmrvz0Nv.js.map → PkChatbotMessages-AkfEvXEN.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkChatbotViewChat-B14w_WuO.js → PkChatbotViewChat-CdcZrTJJ.js} +3 -3
  99. package/dist-vue/_chunks/{PkChatbotViewChat-B14w_WuO.js.map → PkChatbotViewChat-CdcZrTJJ.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkFilePreview-CTsoIgC0.js → PkFilePreview-DJBrACR3.js} +2 -2
  101. package/dist-vue/_chunks/{PkFilePreview-CTsoIgC0.js.map → PkFilePreview-DJBrACR3.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkFilePreviewDialog-DbTpN0hb.js → PkFilePreviewDialog-C-m04VEl.js} +2 -2
  103. package/dist-vue/_chunks/{PkFilePreviewDialog-DbTpN0hb.js.map → PkFilePreviewDialog-C-m04VEl.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowContactForm-BEWOoCVa.js → PkToolShowContactForm-CtJSjw8M.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowContactForm-BEWOoCVa.js.map → PkToolShowContactForm-CtJSjw8M.js.map} +1 -1
  106. package/dist-vue/_chunks/{index.es-DSD1KzRg.js → index.es-MFxWj-L1.js} +2 -2
  107. package/dist-vue/_chunks/{index.es-DSD1KzRg.js.map → index.es-MFxWj-L1.js.map} +1 -1
  108. package/dist-vue/index.js +7 -7
  109. package/dist-vue/index.js.map +1 -1
  110. package/package.json +2 -2
  111. package/dist/_chunks/VvCombobox.es-uAWL0Asj.js.map +0 -1
  112. package/dist/_chunks/VvInputText.es-Cw6GoyJS.js.map +0 -1
  113. package/dist/_chunks/VvTextarea.es-CFZHoQWF.js.map +0 -1
  114. package/dist/_chunks/index.es-D-aOuzzp.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { J as e, N as t, S as n, _ as r, k as i, tt as a, w as o, z as s } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
2
- import { d as c } from "./index.es-D-aOuzzp.js";
2
+ import { m as c } from "./index.es-DIHz5I8K.js";
3
3
  import { t as l } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
- import { t as u } from "./PkFilePreview-Bic0SA47.js";
4
+ import { t as u } from "./PkFilePreview-BdqdC1ml.js";
5
5
  // ../../packages/components/src/chat/PkFilePreviewDialog.vue?vue&type=script&setup=true&lang.ts
6
6
  i();
7
7
  // ../../packages/components/src/chat/PkFilePreviewDialog.vue
@@ -110,4 +110,4 @@ var d = /*#__PURE__*/ l(/* @__PURE__ */ o({
110
110
  }), [["styles", [".pk-file-preview-dialog:not(.vv-dialog--fullscreen)>article{width:min(90rem,94dvw);height:92dvh}.pk-file-preview-dialog.vv-dialog--fullscreen>article{max-height:none}.pk-file-preview-dialog .vv-dialog__content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex}"]]]);
111
111
  export { d as default };
112
112
 
113
- //# sourceMappingURL=PkFilePreviewDialog-WKJ0Zm3O.js.map
113
+ //# sourceMappingURL=PkFilePreviewDialog-_pdW07pm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PkFilePreviewDialog-WKJ0Zm3O.js","names":["_useModel","__unplugin_components_0","_openBlock","_createBlock","_withCtx","_createVNode","PkFilePreview","_sfc_main","_style_0","useModel","mergeModels","createVNode","createBlock","init_runtime_core_esm_bundler","withCtx","defineComponent","openBlock","nu","_plugin_vue_export_helper_default","PkFilePreview_default","PkFilePreviewDialog_default","\"mode\"","\"modeModifiers\"","\"sheet\"","\"sheetModifiers\"","\"zoom\"","\"zoomModifiers\"","\"fit\"","\"fitModifiers\"","__emit","emit","mode","__props","sheet","zoom","fit","_component_VvDialog","_cache","$event","text","pointer","action"],"sources":["../../../../packages/components/src/chat/PkFilePreviewDialog.vue","../../../../packages/components/src/chat/PkFilePreviewDialog.vue","../../../../packages/components/src/chat/PkFilePreviewDialog.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCI,IAAM8B,IAAOD,GAaPE,IAAO/B,EAA4BgC,GAAC,MAAM,GAC1CC,IAAQjC,EAAmBgC,GAAC,OAAO,GACnCE,IAAOlC,EAAmBgC,GAAC,MAAM,GAGjCG,IAAMnC,EAAoBgC,GAAC,KAAwB;;;GAIzD,OAAA9B,EAAA,GAAAC,EAiCWiC,GAAA;IAhCN,eAAa;IACb,cAAYJ,EAAA,OAAO;IACnB,WAAWA,EAAA,aAAU,eAAkB,KAAA;IACxC,OAAM;IACL,uBAAkB,AAAAK,EAAA,QAAA,MAAA,CAAGC,KAAUR,EAAI,OAAA;;IACpC,SAAA1B,QA0B6B,CA1B7BC,EA0B6BC,GAAA;KAzBjB,MAAMyB,EAAA;KAAA,iBAAA,AAAAM,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,OAAOL,EAAA;KAAA,kBAAA,AAAAI,EAAA,QAAA,MAAA,EAAK,QAAAC;KACZ,MAAMJ,EAAA;KAAA,iBAAA,AAAAG,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,KAAKH,EAAA;KAAA,gBAAA,AAAAE,EAAA,QAAA,MAAA,EAAG,QAAAC;KACf,MAAMN,EAAA,OAAO;KACb,UAAUA,EAAA,OAAO;KACjB,SAASA,EAAA,OAAO;KAChB,UAAAA,EAAA;KACA,gBAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,OAAAA,EAAA;KACA,YAAAA,EAAA;KACA,QAAAA,EAAA;KACA,WAASA,EAAA,OAAO;KAChB,oBAAkBA,EAAA,OAAO;KACzB,qBAAAA,EAAA;KACA,WAAO,AAAAK,EAAA,QAAA,MAAEP,EAAI,WAAYQ,CAAM;KAC/B,WAAO,AAAAD,EAAA,QAAA,MAAEP,EAAI,SAAA;KACb,UAAM,AAAAO,EAAA,QAAA,MAAEP,EAAI,QAAA;KACZ,iBAAc,AAAAO,EAAA,QAAoB,GAAM,GAAS,MAA+BP,EAAI,iBAAkBS,GAAMC,GAASC,CAAM;KAI3H,SAAK,AAAAJ,EAAA,QAAA,MAAEP,EAAI,OAAA"}
1
+ {"version":3,"file":"PkFilePreviewDialog-_pdW07pm.js","names":["_useModel","__unplugin_components_0","_openBlock","_createBlock","_withCtx","_createVNode","PkFilePreview","_sfc_main","_style_0","useModel","mergeModels","createVNode","createBlock","init_runtime_core_esm_bundler","withCtx","defineComponent","openBlock","uu","_plugin_vue_export_helper_default","PkFilePreview_default","PkFilePreviewDialog_default","\"mode\"","\"modeModifiers\"","\"sheet\"","\"sheetModifiers\"","\"zoom\"","\"zoomModifiers\"","\"fit\"","\"fitModifiers\"","__emit","emit","mode","__props","sheet","zoom","fit","_component_VvDialog","_cache","$event","text","pointer","action"],"sources":["../../../../packages/components/src/chat/PkFilePreviewDialog.vue","../../../../packages/components/src/chat/PkFilePreviewDialog.vue","../../../../packages/components/src/chat/PkFilePreviewDialog.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCI,IAAM8B,IAAOD,GAaPE,IAAO/B,EAA4BgC,GAAC,MAAM,GAC1CC,IAAQjC,EAAmBgC,GAAC,OAAO,GACnCE,IAAOlC,EAAmBgC,GAAC,MAAM,GAGjCG,IAAMnC,EAAoBgC,GAAC,KAAwB;;;GAIzD,OAAA9B,EAAA,GAAAC,EAiCWiC,GAAA;IAhCN,eAAa;IACb,cAAYJ,EAAA,OAAO;IACnB,WAAWA,EAAA,aAAU,eAAkB,KAAA;IACxC,OAAM;IACL,uBAAkB,AAAAK,EAAA,QAAA,MAAA,CAAGC,KAAUR,EAAI,OAAA;;IACpC,SAAA1B,QA0B6B,CA1B7BC,EA0B6BC,GAAA;KAzBjB,MAAMyB,EAAA;KAAA,iBAAA,AAAAM,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,OAAOL,EAAA;KAAA,kBAAA,AAAAI,EAAA,QAAA,MAAA,EAAK,QAAAC;KACZ,MAAMJ,EAAA;KAAA,iBAAA,AAAAG,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,KAAKH,EAAA;KAAA,gBAAA,AAAAE,EAAA,QAAA,MAAA,EAAG,QAAAC;KACf,MAAMN,EAAA,OAAO;KACb,UAAUA,EAAA,OAAO;KACjB,SAASA,EAAA,OAAO;KAChB,UAAAA,EAAA;KACA,gBAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,OAAAA,EAAA;KACA,YAAAA,EAAA;KACA,QAAAA,EAAA;KACA,WAASA,EAAA,OAAO;KAChB,oBAAkBA,EAAA,OAAO;KACzB,qBAAAA,EAAA;KACA,WAAO,AAAAK,EAAA,QAAA,MAAEP,EAAI,WAAYQ,CAAM;KAC/B,WAAO,AAAAD,EAAA,QAAA,MAAEP,EAAI,SAAA;KACb,UAAM,AAAAO,EAAA,QAAA,MAAEP,EAAI,QAAA;KACZ,iBAAc,AAAAO,EAAA,QAAoB,GAAM,GAAS,MAA+BP,EAAI,iBAAkBS,GAAMC,GAASC,CAAM;KAI3H,SAAK,AAAAJ,EAAA,QAAA,MAAEP,EAAI,OAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Et as e, S as t, Tt as n, h as r, k as i, kt as a, r as o, u as s, v as c, w as l, y as u, z as d } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
2
2
  import { r as f } from "./vue-i18n-POtLvOl1.js";
3
- import { t as p } from "./index.es-D-aOuzzp.js";
3
+ import { r as p } from "./index.es-DIHz5I8K.js";
4
4
  // ../../packages/components/src/chat/PkHeldImage.vue?vue&type=script&setup=true&lang.ts
5
5
  i(), n(), o();
6
6
  var m = ["title", "aria-label"], h = {
@@ -38,4 +38,4 @@ var m = ["title", "aria-label"], h = {
38
38
  });
39
39
  export { g as t };
40
40
 
41
- //# sourceMappingURL=PkHeldImage-CtIvSX8O.js.map
41
+ //# sourceMappingURL=PkHeldImage-H7-q7WrE.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PkHeldImage-CtIvSX8O.js","names":["__unplugin_components_0","_openBlock","_createElementBlock","_normalizeClass","_withKeys","_createVNode","_toDisplayString","_createCommentVNode","_sfc_main","normalizeClass","createVNode","init_shared_esm_bundler","computed","init_runtime_core_esm_bundler","toDisplayString","init_runtime_dom_esm_bundler","withKeys","createCommentVNode","defineComponent","createElementBlock","openBlock","useI18n","Ce","_hoisted_1","_hoisted_2","PkHeldImage_default","__emit","props","__props","emit","$t","label","release","event","_component_VvIcon"],"sources":["../../../../packages/components/src/chat/PkHeldImage.vue","../../../../packages/components/src/chat/PkHeldImage.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n /**\n * The place of an image a tool card may not load by itself\n * (chatImagePolicy.ts): it names the host and asks for a click. A span and\n * not a button, because the cards wrap their images in a link, and a\n * click here must neither open it nor reach it.\n */\n const props = defineProps<{\n host?: string\n /** Fills the slot of a large image, with the words under the icon. */\n fill?: boolean\n /** A video card holds its player the same way. */\n kind?: 'image' | 'video'\n }>()\n\n const emit = defineEmits<{\n release: []\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const label = computed(() =>\n $t(props.kind === 'video' ? 'label.videoHeld' : 'label.imageHeld', {\n host: props.host ?? '',\n }),\n )\n\n function release(event: Event) {\n event.preventDefault()\n event.stopPropagation()\n emit('release')\n }\n</script>\n\n<template>\n <span\n role=\"button\"\n tabindex=\"0\"\n :title=\"label\"\n :aria-label=\"label\"\n class=\"flex items-center justify-center cursor-pointer text-word-3\"\n :class=\"fill ? 'w-full h-full flex-col gap-4 bg-surface-1' : 'text-18'\"\n @click=\"release\"\n @keydown.enter=\"release\"\n @keydown.space=\"release\">\n <VvIcon\n :name=\"kind === 'video' ? 'ri:film-line' : 'ri:image-line'\"\n :class=\"fill ? 'text-24' : undefined\" />\n <span v-if=\"fill\" class=\"text-12 text-center px-sm\">{{ label }}</span>\n </span>\n</template>\n","<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n /**\n * The place of an image a tool card may not load by itself\n * (chatImagePolicy.ts): it names the host and asks for a click. A span and\n * not a button, because the cards wrap their images in a link, and a\n * click here must neither open it nor reach it.\n */\n const props = defineProps<{\n host?: string\n /** Fills the slot of a large image, with the words under the icon. */\n fill?: boolean\n /** A video card holds its player the same way. */\n kind?: 'image' | 'video'\n }>()\n\n const emit = defineEmits<{\n release: []\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const label = computed(() =>\n $t(props.kind === 'video' ? 'label.videoHeld' : 'label.imageHeld', {\n host: props.host ?? '',\n }),\n )\n\n function release(event: Event) {\n event.preventDefault()\n event.stopPropagation()\n emit('release')\n }\n</script>\n\n<template>\n <span\n role=\"button\"\n tabindex=\"0\"\n :title=\"label\"\n :aria-label=\"label\"\n class=\"flex items-center justify-center cursor-pointer text-word-3\"\n :class=\"fill ? 'w-full h-full flex-col gap-4 bg-surface-1' : 'text-18'\"\n @click=\"release\"\n @keydown.enter=\"release\"\n @keydown.space=\"release\">\n <VvIcon\n :name=\"kind === 'video' ? 'ri:film-line' : 'ri:image-line'\"\n :class=\"fill ? 'text-24' : undefined\" />\n <span v-if=\"fill\" class=\"text-12 text-center px-sm\">{{ label }}</span>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;EAUI,IAAM2B,IAAQC,GAQRC,IAAOH,GAIP,EAAE,GAAGI,MAAOT,EAAQ,EAAE,UAAU,SAAS,CAAC,GAE1CU,IAAQnB,QACVkB,EAAGH,EAAM,SAAS,UAAU,oBAAoB,mBAAmB,EAC/D,MAAMA,EAAM,QAAQ,GACxB,CAAC,CACL;EAEA,SAASK,EAAQ,GAAc;GAG3B,AAFAC,EAAM,eAAe,GACrBA,EAAM,gBAAgB,GACtBJ,EAAK,SAAS;EAClB;;;GAIA,OAAA5B,EAAA,GAAAC,EAcO,QAAA;IAbH,MAAK;IACL,UAAS;IACR,OAAO6B,EAAA;IACP,cAAYA,EAAA;IACb,OAAK5B,EAAA,CAAC,+DACEyB,EAAA,OAAI,8CAAA,SAAA,CAAA;IACX,SAAOI;IACP,WAAO,CAAQ5B,EAAA4B,GAAO,CAAA,OAAA,CAAA,GACP5B,EAAA4B,GAAO,CAAA,OAAA,CAAA,C;G,IACvB3B,EAE4C6B,GAAA;IADvC,MAAMN,EAAA,SAAI,UAAA,iBAAA;IACV,OAAKzB,EAAEyB,EAAA,OAAI,YAAe,KAAA,CAAS;G,gCAC5BA,EAAA,QAAZ3B,EAAA,GAAAC,EAAsE,QAAtEsB,GAAsElB,EAAfyB,EAAA,KAAK,GAAA,CAAA,K"}
1
+ {"version":3,"file":"PkHeldImage-H7-q7WrE.js","names":["__unplugin_components_0","_openBlock","_createElementBlock","_normalizeClass","_withKeys","_createVNode","_toDisplayString","_createCommentVNode","_sfc_main","normalizeClass","createVNode","init_shared_esm_bundler","computed","init_runtime_core_esm_bundler","toDisplayString","init_runtime_dom_esm_bundler","withKeys","createCommentVNode","defineComponent","createElementBlock","openBlock","useI18n","Ee","_hoisted_1","_hoisted_2","PkHeldImage_default","__emit","props","__props","emit","$t","label","release","event","_component_VvIcon"],"sources":["../../../../packages/components/src/chat/PkHeldImage.vue","../../../../packages/components/src/chat/PkHeldImage.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n /**\n * The place of an image a tool card may not load by itself\n * (chatImagePolicy.ts): it names the host and asks for a click. A span and\n * not a button, because the cards wrap their images in a link, and a\n * click here must neither open it nor reach it.\n */\n const props = defineProps<{\n host?: string\n /** Fills the slot of a large image, with the words under the icon. */\n fill?: boolean\n /** A video card holds its player the same way. */\n kind?: 'image' | 'video'\n }>()\n\n const emit = defineEmits<{\n release: []\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const label = computed(() =>\n $t(props.kind === 'video' ? 'label.videoHeld' : 'label.imageHeld', {\n host: props.host ?? '',\n }),\n )\n\n function release(event: Event) {\n event.preventDefault()\n event.stopPropagation()\n emit('release')\n }\n</script>\n\n<template>\n <span\n role=\"button\"\n tabindex=\"0\"\n :title=\"label\"\n :aria-label=\"label\"\n class=\"flex items-center justify-center cursor-pointer text-word-3\"\n :class=\"fill ? 'w-full h-full flex-col gap-4 bg-surface-1' : 'text-18'\"\n @click=\"release\"\n @keydown.enter=\"release\"\n @keydown.space=\"release\">\n <VvIcon\n :name=\"kind === 'video' ? 'ri:film-line' : 'ri:image-line'\"\n :class=\"fill ? 'text-24' : undefined\" />\n <span v-if=\"fill\" class=\"text-12 text-center px-sm\">{{ label }}</span>\n </span>\n</template>\n","<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n /**\n * The place of an image a tool card may not load by itself\n * (chatImagePolicy.ts): it names the host and asks for a click. A span and\n * not a button, because the cards wrap their images in a link, and a\n * click here must neither open it nor reach it.\n */\n const props = defineProps<{\n host?: string\n /** Fills the slot of a large image, with the words under the icon. */\n fill?: boolean\n /** A video card holds its player the same way. */\n kind?: 'image' | 'video'\n }>()\n\n const emit = defineEmits<{\n release: []\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const label = computed(() =>\n $t(props.kind === 'video' ? 'label.videoHeld' : 'label.imageHeld', {\n host: props.host ?? '',\n }),\n )\n\n function release(event: Event) {\n event.preventDefault()\n event.stopPropagation()\n emit('release')\n }\n</script>\n\n<template>\n <span\n role=\"button\"\n tabindex=\"0\"\n :title=\"label\"\n :aria-label=\"label\"\n class=\"flex items-center justify-center cursor-pointer text-word-3\"\n :class=\"fill ? 'w-full h-full flex-col gap-4 bg-surface-1' : 'text-18'\"\n @click=\"release\"\n @keydown.enter=\"release\"\n @keydown.space=\"release\">\n <VvIcon\n :name=\"kind === 'video' ? 'ri:film-line' : 'ri:image-line'\"\n :class=\"fill ? 'text-24' : undefined\" />\n <span v-if=\"fill\" class=\"text-12 text-center px-sm\">{{ label }}</span>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;EAUI,IAAM2B,IAAQC,GAQRC,IAAOH,GAIP,EAAE,GAAGI,MAAOT,EAAQ,EAAE,UAAU,SAAS,CAAC,GAE1CU,IAAQnB,QACVkB,EAAGH,EAAM,SAAS,UAAU,oBAAoB,mBAAmB,EAC/D,MAAMA,EAAM,QAAQ,GACxB,CAAC,CACL;EAEA,SAASK,EAAQ,GAAc;GAG3B,AAFAC,EAAM,eAAe,GACrBA,EAAM,gBAAgB,GACtBJ,EAAK,SAAS;EAClB;;;GAIA,OAAA5B,EAAA,GAAAC,EAcO,QAAA;IAbH,MAAK;IACL,UAAS;IACR,OAAO6B,EAAA;IACP,cAAYA,EAAA;IACb,OAAK5B,EAAA,CAAC,+DACEyB,EAAA,OAAI,8CAAA,SAAA,CAAA;IACX,SAAOI;IACP,WAAO,CAAQ5B,EAAA4B,GAAO,CAAA,OAAA,CAAA,GACP5B,EAAA4B,GAAO,CAAA,OAAA,CAAA,C;G,IACvB3B,EAE4C6B,GAAA;IADvC,MAAMN,EAAA,SAAI,UAAA,iBAAA;IACV,OAAKzB,EAAEyB,EAAA,OAAI,YAAe,KAAA,CAAS;G,gCAC5BA,EAAA,QAAZ3B,EAAA,GAAAC,EAAsE,QAAtEsB,GAAsElB,EAAfyB,EAAA,KAAK,GAAA,CAAA,K"}
@@ -1,10 +1,10 @@
1
1
  import { Et as e, F as t, I as n, J as r, L as i, N as a, Ot as o, Q as s, S as c, Tt as l, V as u, X as d, _ as f, b as p, c as m, d as h, f as g, g as _, gt as v, h as y, k as b, kt as x, nt as S, ot as C, q as ee, r as w, tt as T, u as te, v as E, vt as ne, w as D, wt as O, y as k, z as A } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
2
2
  import { r as re } from "./vue-i18n-POtLvOl1.js";
3
3
  import { h as ie, y as ae } from "./dist-D6oUr4J_.js";
4
- import { a as oe, d as j, s as M, t as se } from "./index.es-D-aOuzzp.js";
5
- import { t as ce } from "./VvButtonLocalized-B32dBwWJ.js";
4
+ import { a as j, d as oe, m as M, r as se } from "./index.es-DIHz5I8K.js";
5
+ import { t as ce } from "./VvButtonLocalized-C8S7XJGv.js";
6
6
  import { t as N } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
7
- import { t as P } from "./PkEditorRadioButtons-ClUWPayk.js";
7
+ import { t as P } from "./PkEditorRadioButtons-Br4c42KS.js";
8
8
  // ../../packages/components/src/chat/imageEdits.ts
9
9
  var le = {
10
10
  red: {
@@ -869,7 +869,7 @@ var Ze = ["aria-label"], X = {
869
869
  }
870
870
  });
871
871
  return (t, n) => {
872
- let r = M, i = se, a = ce, u = oe, d = j;
872
+ let r = j, i = se, a = ce, u = oe, d = M;
873
873
  return A(), f(d, {
874
874
  "model-value": !0,
875
875
  title: O(s)("imageEditor.title"),
@@ -936,4 +936,4 @@ var Ze = ["aria-label"], X = {
936
936
  }), [["styles", [".pk-image-editor-dialog:not(.vv-dialog--fullscreen)>article{width:min(64rem,94dvw);height:min(48rem,92dvh)}.pk-image-editor-dialog.vv-dialog--fullscreen>article{max-height:none}.pk-image-editor-dialog .vv-dialog__content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex}.pk-image-editor-dialog__loading{color:var(--color-word-3);font-size:var(--text-24);flex:1;justify-content:center;align-items:center;display:flex}.pk-image-editor-dialog__size{padding:var(--spacing-8) var(--spacing-md);border-top:1px solid var(--color-surface-3);color:var(--color-word-3);font-size:var(--text-12);font-variant-numeric:tabular-nums;margin:0}"]]]);
937
937
  export { Qe as default };
938
938
 
939
- //# sourceMappingURL=PkImageEditorDialog-BQwM06kT.js.map
939
+ //# sourceMappingURL=PkImageEditorDialog-D-ikpGo8.js.map