@8wave/ai-elements 0.126.0-beta.36 → 0.126.0-beta.37
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.
- package/dist/_chunks/{PkChatbotFilePreview-Cw3va5vW.js → PkChatbotFilePreview-CLUH7cTq.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-Cw3va5vW.js.map → PkChatbotFilePreview-CLUH7cTq.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-CY0D_EkU.js → PkEditorRadioButtons-YSngp-Wn.js} +2 -2
- package/dist/_chunks/{PkEditorRadioButtons-CY0D_EkU.js.map → PkEditorRadioButtons-YSngp-Wn.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-D4TgY0T9.js → PkFilePreview-BHqmp1EW.js} +5 -5
- package/dist/_chunks/{PkFilePreview-D4TgY0T9.js.map → PkFilePreview-BHqmp1EW.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-8H1GeV91.js → PkFilePreviewDialog-BHAgVlKs.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-8H1GeV91.js.map → PkFilePreviewDialog-BHAgVlKs.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-B6UYQ8Ox.js → PkHeldImage-WGwFM77v.js} +2 -2
- package/dist/_chunks/{PkHeldImage-B6UYQ8Ox.js.map → PkHeldImage-WGwFM77v.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-BqHjVX97.js → PkImageEditorDialog-BDwL39Du.js} +18 -18
- package/dist/_chunks/{PkImageEditorDialog-BqHjVX97.js.map → PkImageEditorDialog-BDwL39Du.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-D3XOz-dS.js → PkLazyImg-DL7hxjyy.js} +2 -2
- package/dist/_chunks/{PkLazyImg-D3XOz-dS.js.map → PkLazyImg-DL7hxjyy.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-BxUXWFNK.js → PkSelectionActions-DLsZ8-gW.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-BxUXWFNK.js.map → PkSelectionActions-DLsZ8-gW.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-CSBzfuyE.js → PkToolChatFile-62j1S0Pq.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-CSBzfuyE.js.map → PkToolChatFile-62j1S0Pq.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DNzNRszE.js → PkToolRequestGeolocation-B9EM_K6O.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DNzNRszE.js.map → PkToolRequestGeolocation-B9EM_K6O.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BDxYXz4s.js → PkToolRequestOAuthConnection-CfjfqCHX.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-BDxYXz4s.js.map → PkToolRequestOAuthConnection-CfjfqCHX.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-Kq7SFbw5.js → PkToolShareDocument-CYBU4LPO.js} +3 -3
- package/dist/_chunks/{PkToolShareDocument-Kq7SFbw5.js.map → PkToolShareDocument-CYBU4LPO.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-d5tKvM01.js → PkToolShowArtifact-I_QZS7Pf.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-d5tKvM01.js.map → PkToolShowArtifact-I_QZS7Pf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-fMI-paCP.js → PkToolShowCalendarEvent-js9lh-cX.js} +3 -3
- package/dist/_chunks/{PkToolShowCalendarEvent-fMI-paCP.js.map → PkToolShowCalendarEvent-js9lh-cX.js.map} +1 -1
- package/dist/_chunks/{PkToolShowChart-lLXuHRJu.js → PkToolShowChart-BalU3bxm.js} +3 -3
- package/dist/_chunks/{PkToolShowChart-lLXuHRJu.js.map → PkToolShowChart-BalU3bxm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-CKSqPgJo.js → PkToolShowComparison-DeO7cMeF.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-CKSqPgJo.js.map → PkToolShowComparison-DeO7cMeF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Bni1QzXV.js → PkToolShowContactForm-BeJ5GR6t.js} +5 -5
- package/dist/_chunks/{PkToolShowContactForm-Bni1QzXV.js.map → PkToolShowContactForm-BeJ5GR6t.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-DWVSCu33.js → PkToolShowDiagram-j3TTzZ5I.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-DWVSCu33.js.map → PkToolShowDiagram-j3TTzZ5I.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-D6Mw24jB.js → PkToolShowEmail-CQ4uyty9.js} +3 -3
- package/dist/_chunks/{PkToolShowEmail-D6Mw24jB.js.map → PkToolShowEmail-CQ4uyty9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CFXtO0j4.js → PkToolShowForm-B9VDoS_W.js} +15 -15
- package/dist/_chunks/{PkToolShowForm-CFXtO0j4.js.map → PkToolShowForm-B9VDoS_W.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-Ci_Kg44s.js → PkToolShowImageGallery-DFuc5IJ1.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-Ci_Kg44s.js.map → PkToolShowImageGallery-DFuc5IJ1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-DV0puCbD.js → PkToolShowLocation-PThC5tCV.js} +3 -3
- package/dist/_chunks/{PkToolShowLocation-DV0puCbD.js.map → PkToolShowLocation-PThC5tCV.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-Bq2dbSy1.js → PkToolShowMessage-9mlI4IQ6.js} +3 -3
- package/dist/_chunks/{PkToolShowMessage-Bq2dbSy1.js.map → PkToolShowMessage-9mlI4IQ6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-BWWzkWWA.js → PkToolShowProductList-C2EJKYOV.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-BWWzkWWA.js.map → PkToolShowProductList-C2EJKYOV.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-DZkJIyMF.js → PkToolShowQrCode-DQiVo4Vh.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-DZkJIyMF.js.map → PkToolShowQrCode-DQiVo4Vh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Dv7hbDyy.js → PkToolShowSources-BL3DnfcN.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Dv7hbDyy.js.map → PkToolShowSources-BL3DnfcN.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-B_dRrZfj.js → PkToolShowSuggestedReply-DLgtjBJ1.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-B_dRrZfj.js.map → PkToolShowSuggestedReply-DLgtjBJ1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DLgQjTq_.js → PkToolShowVideo-DcWXDcOZ.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-DLgQjTq_.js.map → PkToolShowVideo-DcWXDcOZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-HElfkyLV.js → PkToolShowWeather-DLT47oC6.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-HElfkyLV.js.map → PkToolShowWeather-DLT47oC6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-XxcYBQpr.js → PkToolShowWebPages-CPqMC6qt.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-XxcYBQpr.js.map → PkToolShowWebPages-CPqMC6qt.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-BgY-V26j.js → VvButtonLocalized-D_gumqSJ.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-BgY-V26j.js.map → VvButtonLocalized-D_gumqSJ.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-KisDJtH_.js → VvCheckbox.es-D44kGZc-.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-KisDJtH_.js.map → VvCheckbox.es-D44kGZc-.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-CIVHYElp.js → VvCheckboxGroup.es-Da5Vuel0.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-CIVHYElp.js.map → VvCheckboxGroup.es-Da5Vuel0.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-DybZ6U_6.js → VvCombobox.es-BJzmLeTh.js} +467 -403
- package/dist/_chunks/VvCombobox.es-BJzmLeTh.js.map +1 -0
- package/dist/_chunks/{VvInputText.es-DFSPWDcH.js → VvInputText.es-CHcdm2K-.js} +280 -218
- package/dist/_chunks/VvInputText.es-CHcdm2K-.js.map +1 -0
- package/dist/_chunks/{VvRadio.es-vrNSXb3X.js → VvRadio.es-B3IskaN4.js} +2 -2
- package/dist/_chunks/{VvRadio.es-vrNSXb3X.js.map → VvRadio.es-B3IskaN4.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-DalxMbrj.js → VvRadioGroup.es-CBivcD0v.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-DalxMbrj.js.map → VvRadioGroup.es-CBivcD0v.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-D55xq4Lw.js → VvSelect.es-CAVvkyxB.js} +2 -2
- package/dist/_chunks/{VvSelect.es-D55xq4Lw.js.map → VvSelect.es-CAVvkyxB.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-BOhkaXfY.js → VvTextarea.es-CgvZOWO4.js} +446 -384
- package/dist/_chunks/VvTextarea.es-CgvZOWO4.js.map +1 -0
- package/dist/_chunks/{index.es-BYhSukum.js → index.es-CEYwDeKz.js} +126 -66
- package/dist/_chunks/index.es-CEYwDeKz.js.map +1 -0
- package/dist/_chunks/{index.es-CPvSmI-B.js → index.es-DDdkqLT6.js} +10 -10
- package/dist/_chunks/{index.es-CPvSmI-B.js.map → index.es-DDdkqLT6.js.map} +1 -1
- package/dist/ai-elements.es.js +377 -376
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/PkChatbot-aCgj2DMu.js +326 -0
- package/dist-vue/_chunks/PkChatbot-aCgj2DMu.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotAuth-449QUBoC.js → PkChatbotAuth-C5agN8ht.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-449QUBoC.js.map → PkChatbotAuth-C5agN8ht.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DdQQlAr1.js → PkChatbotFeedbackForm-DjsLxYjT.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DdQQlAr1.js.map → PkChatbotFeedbackForm-DjsLxYjT.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-_-h-egX7.js → PkChatbotMessages-CG3UZYcP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotMessages-_-h-egX7.js.map → PkChatbotMessages-CG3UZYcP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-Bg-Op2Oe.js → PkChatbotViewChat-IU3HJpxG.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-Bg-Op2Oe.js.map → PkChatbotViewChat-IU3HJpxG.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotViewConversations-4zGrp7Fo.js +197 -0
- package/dist-vue/_chunks/PkChatbotViewConversations-4zGrp7Fo.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotViewProfile-BrZ7oiUY.js +85 -0
- package/dist-vue/_chunks/PkChatbotViewProfile-BrZ7oiUY.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-DydUI1G2.js → PkFilePreview-WqS-s3vk.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-DydUI1G2.js.map → PkFilePreview-WqS-s3vk.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-BuG1whsJ.js → PkFilePreviewDialog-BIaTAK05.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-BuG1whsJ.js.map → PkFilePreviewDialog-BIaTAK05.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-D0lDC69x.js → PkToolShowContactForm-DFufPNnQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-D0lDC69x.js.map → PkToolShowContactForm-DFufPNnQ.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-CwEgvvQD.js → index.es-BmedAjkp.js} +2 -2
- package/dist-vue/_chunks/{index.es-CwEgvvQD.js.map → index.es-BmedAjkp.js.map} +1 -1
- package/dist-vue/composables.js +8 -6
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +10 -10
- package/dist-vue/locales.js +20 -16
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +7 -7
- package/package.json +2 -2
- package/dist/_chunks/VvCombobox.es-DybZ6U_6.js.map +0 -1
- package/dist/_chunks/VvInputText.es-DFSPWDcH.js.map +0 -1
- package/dist/_chunks/VvTextarea.es-BOhkaXfY.js.map +0 -1
- package/dist/_chunks/index.es-BYhSukum.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-CFJmT4nN.js +0 -299
- package/dist-vue/_chunks/PkChatbot-CFJmT4nN.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewConversations--smzyxqN.js +0 -226
- package/dist-vue/_chunks/PkChatbotViewConversations--smzyxqN.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewProfile-Cn7IQfnQ.js +0 -86
- package/dist-vue/_chunks/PkChatbotViewProfile-Cn7IQfnQ.js.map +0 -1
- package/dist-vue/_chunks/chatbotProfileContext-b-nve-mR.js +0 -5
- package/dist-vue/_chunks/chatbotProfileContext-b-nve-mR.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as e } from "./index.es-
|
|
1
|
+
import { m as e } from "./index.es-CEYwDeKz.js";
|
|
2
2
|
import { J as t, N as n, S as r, _ as i, k as a, tt as o, w as s, z as c } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
|
|
3
|
-
import { t as l } from "./PkFilePreview-
|
|
3
|
+
import { t as l } from "./PkFilePreview-BHqmp1EW.js";
|
|
4
4
|
import { t as u } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
5
|
// ../../packages/components/src/chat/PkFilePreviewDialog.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
a();
|
|
@@ -115,4 +115,4 @@ var d = /*#__PURE__*/ u(/* @__PURE__ */ s({
|
|
|
115
115
|
}), [["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}"]]]);
|
|
116
116
|
export { d as default };
|
|
117
117
|
|
|
118
|
-
//# sourceMappingURL=PkFilePreviewDialog-
|
|
118
|
+
//# sourceMappingURL=PkFilePreviewDialog-BHAgVlKs.js.map
|
package/dist/_chunks/{PkFilePreviewDialog-8H1GeV91.js.map → PkFilePreviewDialog-BHAgVlKs.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkFilePreviewDialog-
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-BHAgVlKs.js","names":["_useModel","_openBlock","_createBlock","_withCtx","_createVNode","PkFilePreview","uu","useModel","mergeModels","createVNode","createBlock","init_runtime_core_esm_bundler","withCtx","defineComponent","openBlock","PkFilePreview_default","_plugin_vue_export_helper_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"],"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 /** The agent answers in the chat the dialog covers. */\n working?: boolean\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n showChat: []\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 :working\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @show-chat=\"emit('showChat')\"\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCI,IAAM2B,IAAOD,GAcPE,IAAO5B,EAA4B6B,GAAC,MAAM,GAC1CC,IAAQ9B,EAAmB6B,GAAC,OAAO,GACnCE,IAAO/B,EAAmB6B,GAAC,MAAM,GAGjCG,IAAMhC,EAAoB6B,GAAC,KAAwB;;;GAIzD,OAAA5B,EAAA,GAAAC,EAmCW+B,GAAA;IAlCN,eAAa;IACb,cAAYJ,EAAA,OAAO;IACnB,WAAWA,EAAA,aAAU,eAAkB,KAAA;IACxC,OAAM;IACL,uBAAkB,AAAAK,EAAA,SAAA,MAAA,CAAGC,KAAUR,EAAI,OAAA;;IACpC,SAAAxB,QA4B6B,CA5B7BC,EA4B6BC,GAAA;KA3BjB,MAAMuB,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,SAAAA,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,YAAS,AAAAO,EAAA,QAAA,MAAEP,EAAI,UAAA;KACf,iBAAc,AAAAO,EAAA,QAAoB,GAAM,GAAS,MAA+BP,EAAI,iBAAkBS,GAAMC,GAASC,CAAM;KAI3H,SAAK,AAAAJ,EAAA,QAAA,MAAEP,EAAI,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./index.es-
|
|
1
|
+
import { r as e } from "./index.es-CEYwDeKz.js";
|
|
2
2
|
import { Et as t, S as n, Tt as r, h as i, k as a, kt as o, r as s, u as c, v as l, w as u, y as d, z as f } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
|
|
3
3
|
import { r as p } from "./vue-i18n-CDYWo9pX.js";
|
|
4
4
|
// ../../packages/components/src/chat/PkHeldImage.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -38,4 +38,4 @@ var m = ["title", "aria-label"], h = {
|
|
|
38
38
|
});
|
|
39
39
|
export { g as t };
|
|
40
40
|
|
|
41
|
-
//# sourceMappingURL=PkHeldImage-
|
|
41
|
+
//# sourceMappingURL=PkHeldImage-WGwFM77v.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkHeldImage-
|
|
1
|
+
{"version":3,"file":"PkHeldImage-WGwFM77v.js","names":["_openBlock","_createElementBlock","_normalizeClass","_withKeys","_createVNode","_toDisplayString","De","normalizeClass","createVNode","init_shared_esm_bundler","computed","init_runtime_core_esm_bundler","toDisplayString","init_runtime_dom_esm_bundler","withKeys","createCommentVNode","defineComponent","createElementBlock","openBlock","useI18n","_hoisted_1","_hoisted_2","PkHeldImage_default","__emit","props","__props","emit","$t","label","release","event","_component_VvIcon"],"sources":["../../../../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"],"mappings":";;;;;;;;;;;;;;;;;EAUI,IAAMwB,IAAQC,GAQRC,IAAOH,GAIP,EAAE,GAAGI,MAAOR,EAAQ,EAAE,UAAU,SAAS,CAAC,GAE1CS,IAAQlB,QACViB,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,OAAA1B,EAAA,GAAAC,EAcO,QAAA;IAbH,MAAK;IACL,UAAS;IACR,OAAO2B,EAAA;IACP,cAAYA,EAAA;IACb,OAAK1B,EAAA,CAAC,+DACEuB,EAAA,OAAI,8CAAA,SAAA,CAAA;IACX,SAAOI;IACP,WAAO,CAAQ1B,EAAA0B,GAAO,CAAA,OAAA,CAAA,GACP1B,EAAA0B,GAAO,CAAA,OAAA,CAAA,C;G,IACvBzB,EAE4C2B,GAAA;IADvC,MAAMN,EAAA,SAAI,UAAA,iBAAA;IACV,OAAKvB,EAAEuB,EAAA,OAAI,YAAe,KAAA,CAAS;G,gCAC5BA,EAAA,QAAZzB,EAAA,GAAAC,EAAsE,QAAtEoB,GAAsEhB,EAAfuB,EAAA,KAAK,GAAA,CAAA,K"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as i } from "./VvButtonLocalized-
|
|
1
|
+
import { f as e, m as t, r as n, u as r } from "./index.es-CEYwDeKz.js";
|
|
2
|
+
import { t as i } from "./VvButtonLocalized-D_gumqSJ.js";
|
|
3
3
|
import { Et as a, F as o, I as s, J as c, L as l, N as u, Ot as d, Q as f, S as p, Tt as m, V as h, X as g, _ as ee, b as _, c as v, d as y, f as b, g as x, gt as S, h as C, k as w, kt as T, nt as E, ot as D, q as te, r as ne, tt as O, u as re, v as k, vt as ie, w as A, wt as j, y as M, z as N } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
|
|
4
4
|
import { r as ae } from "./vue-i18n-CDYWo9pX.js";
|
|
5
5
|
import { h as P, y as oe } from "./dist-CR8l0inH.js";
|
|
6
|
-
import { t as se } from "./PkEditorRadioButtons-
|
|
6
|
+
import { t as se } from "./PkEditorRadioButtons-YSngp-Wn.js";
|
|
7
7
|
import { j as ce } from "./utils-DE4cAz37.js";
|
|
8
8
|
import { t as F } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
9
9
|
// ../../packages/components/src/chat/imageEdits.ts
|
|
@@ -290,8 +290,8 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
290
290
|
editsModifiers: {}
|
|
291
291
|
}),
|
|
292
292
|
emits: /*@__PURE__*/ u(["error"], ["update:edits"]),
|
|
293
|
-
setup(
|
|
294
|
-
let m =
|
|
293
|
+
setup(t, { expose: r, emit: u }) {
|
|
294
|
+
let m = t, ee = u, w = c(t, "edits"), { t: D } = ae({ useScope: "global" }), ne = {
|
|
295
295
|
free: void 0,
|
|
296
296
|
"1:1": 1,
|
|
297
297
|
"4:3": 4 / 3,
|
|
@@ -622,7 +622,7 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
622
622
|
});
|
|
623
623
|
f(A, () => {
|
|
624
624
|
K.value = void 0, J.value = void 0, $();
|
|
625
|
-
}),
|
|
625
|
+
}), r({
|
|
626
626
|
pending: C(() => et.value || ft.value),
|
|
627
627
|
applyPending: () => {
|
|
628
628
|
tt(), $();
|
|
@@ -632,13 +632,13 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
632
632
|
function mt(e, t) {
|
|
633
633
|
return Math.hypot(t.x - e.x, t.y - e.y);
|
|
634
634
|
}
|
|
635
|
-
return (
|
|
636
|
-
let o =
|
|
635
|
+
return (t, r) => {
|
|
636
|
+
let o = n, s = i, c = e;
|
|
637
637
|
return N(), M("div", Pe, [
|
|
638
638
|
x("div", Fe, [
|
|
639
639
|
p(se, {
|
|
640
640
|
modelValue: A.value,
|
|
641
|
-
"onUpdate:modelValue":
|
|
641
|
+
"onUpdate:modelValue": r[0] ||= (e) => A.value = e,
|
|
642
642
|
name: "pk-image-editor-tool",
|
|
643
643
|
segmented: "",
|
|
644
644
|
class: "mb-0",
|
|
@@ -664,13 +664,13 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
664
664
|
icon: "ri:anticlockwise-line",
|
|
665
665
|
title: j(D)("imageEditor.rotateLeft"),
|
|
666
666
|
"aria-label": j(D)("imageEditor.rotateLeft"),
|
|
667
|
-
onClick:
|
|
667
|
+
onClick: r[1] ||= (e) => xe(-1)
|
|
668
668
|
}, null, 8, ["title", "aria-label"]), p(s, {
|
|
669
669
|
modifiers: "action-quiet",
|
|
670
670
|
icon: "ri:clockwise-line",
|
|
671
671
|
title: j(D)("imageEditor.rotateRight"),
|
|
672
672
|
"aria-label": j(D)("imageEditor.rotateRight"),
|
|
673
|
-
onClick:
|
|
673
|
+
onClick: r[2] ||= (e) => xe(1)
|
|
674
674
|
}, null, 8, ["title", "aria-label"])]),
|
|
675
675
|
_: 1
|
|
676
676
|
}),
|
|
@@ -717,7 +717,7 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
717
717
|
}, T(j(D)("imageEditor.aspect")), 9, Re),
|
|
718
718
|
p(se, {
|
|
719
719
|
modelValue: P.value,
|
|
720
|
-
"onUpdate:modelValue":
|
|
720
|
+
"onUpdate:modelValue": r[3] ||= (e) => P.value = e,
|
|
721
721
|
name: "pk-image-editor-aspect",
|
|
722
722
|
segmented: "",
|
|
723
723
|
class: "mb-0",
|
|
@@ -738,7 +738,7 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
738
738
|
}, null, 8, ["label", "disabled"])
|
|
739
739
|
], 64)) : A.value === "cover" ? (N(), M(b, { key: 1 }, [p(se, {
|
|
740
740
|
modelValue: F.value,
|
|
741
|
-
"onUpdate:modelValue":
|
|
741
|
+
"onUpdate:modelValue": r[4] ||= (e) => F.value = e,
|
|
742
742
|
name: "pk-image-editor-cover",
|
|
743
743
|
segmented: "",
|
|
744
744
|
class: "mb-0",
|
|
@@ -755,7 +755,7 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
755
755
|
}, T(j(D)("imageEditor.color")), 9, Ve),
|
|
756
756
|
p(se, {
|
|
757
757
|
modelValue: I.value,
|
|
758
|
-
"onUpdate:modelValue":
|
|
758
|
+
"onUpdate:modelValue": r[5] ||= (e) => I.value = e,
|
|
759
759
|
name: "pk-image-editor-color",
|
|
760
760
|
segmented: "",
|
|
761
761
|
class: "mb-0",
|
|
@@ -814,13 +814,13 @@ var Pe = { class: "pk-image-editor" }, Fe = { class: "pk-image-editor__toolbar"
|
|
|
814
814
|
key: 1,
|
|
815
815
|
ref_key: "textEl",
|
|
816
816
|
ref: rt,
|
|
817
|
-
"onUpdate:modelValue":
|
|
817
|
+
"onUpdate:modelValue": r[6] ||= (e) => Q.value.text = e,
|
|
818
818
|
class: "pk-image-editor__text",
|
|
819
819
|
rows: "1",
|
|
820
820
|
maxlength: Je,
|
|
821
821
|
"aria-label": j(D)("imageEditor.textLabel"),
|
|
822
822
|
style: d(pt.value),
|
|
823
|
-
onPointerdown:
|
|
823
|
+
onPointerdown: r[7] ||= y(() => {}, ["stop"]),
|
|
824
824
|
onInput: dt,
|
|
825
825
|
onKeydown: [re(lt, ["enter"]), re(ut, ["esc"])],
|
|
826
826
|
onBlur: ot
|
|
@@ -891,7 +891,7 @@ var Xe = ["aria-label"], Z = {
|
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
return (o, s) => {
|
|
894
|
-
let c =
|
|
894
|
+
let c = r, l = n, u = i, h = e, g = t;
|
|
895
895
|
return N(), ee(g, {
|
|
896
896
|
"model-value": !0,
|
|
897
897
|
title: j(f)("imageEditor.title"),
|
|
@@ -958,4 +958,4 @@ var Xe = ["aria-label"], Z = {
|
|
|
958
958
|
}), [["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}"]]]);
|
|
959
959
|
export { Ze as default };
|
|
960
960
|
|
|
961
|
-
//# sourceMappingURL=PkImageEditorDialog-
|
|
961
|
+
//# sourceMappingURL=PkImageEditorDialog-BDwL39Du.js.map
|