@8wave/ai-elements 0.117.0-beta.14 → 0.117.0-beta.24
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/Agent-CFkAjuTy.js.map +1 -1
- package/dist/_chunks/{PkChatbotFilePreview-C-02Ovgi.js → PkChatbotFilePreview-BCWqFkY8.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-C-02Ovgi.js.map → PkChatbotFilePreview-BCWqFkY8.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-B4gZSfa6.js → PkHeldImage-CEFdfFts.js} +2 -2
- package/dist/_chunks/{PkHeldImage-B4gZSfa6.js.map → PkHeldImage-CEFdfFts.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-DT3U67q-.js → PkLazyImg-BfqUTZXg.js} +2 -2
- package/dist/_chunks/{PkLazyImg-DT3U67q-.js.map → PkLazyImg-BfqUTZXg.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-BoVR7gtl.js → PkStreamingMarkdown-DhViwQEZ.js} +2 -2
- package/dist/_chunks/PkStreamingMarkdown-DhViwQEZ.js.map +1 -0
- package/dist/_chunks/{PkToolEditSpreadsheet-BlfsM7Qp.js → PkToolEditSpreadsheet-CQ6wLZyD.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-BlfsM7Qp.js.map → PkToolEditSpreadsheet-CQ6wLZyD.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DdQ91rpB.js → PkToolRequestGeolocation-B5wbvcC1.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DdQ91rpB.js.map → PkToolRequestGeolocation-B5wbvcC1.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-yuTNMEFj.js → PkToolRequestOAuthConnection-Dma-POc7.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-yuTNMEFj.js.map → PkToolRequestOAuthConnection-Dma-POc7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DaTlDsDo.js → PkToolShowArtifact-DoLn-Tb8.js} +3 -3
- package/dist/_chunks/{PkToolShowArtifact-DaTlDsDo.js.map → PkToolShowArtifact-DoLn-Tb8.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-DmHdErMH.js → PkToolShowCalendarEvent-CqGz7T6h.js} +2 -2
- package/dist/_chunks/{PkToolShowCalendarEvent-DmHdErMH.js.map → PkToolShowCalendarEvent-CqGz7T6h.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-DcXSOyMw.js → PkToolShowComparison-Doa9DkEp.js} +2 -2
- package/dist/_chunks/{PkToolShowComparison-DcXSOyMw.js.map → PkToolShowComparison-Doa9DkEp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Dxh6bEZt.js → PkToolShowContactForm-B6_h5oSO.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-Dxh6bEZt.js.map → PkToolShowContactForm-B6_h5oSO.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-B_kuxtaZ.js → PkToolShowDiagram-R91cRscb.js} +2 -2
- package/dist/_chunks/{PkToolShowDiagram-B_kuxtaZ.js.map → PkToolShowDiagram-R91cRscb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-AWhVo3l3.js → PkToolShowEmail-D-ZrJpBo.js} +2 -2
- package/dist/_chunks/{PkToolShowEmail-AWhVo3l3.js.map → PkToolShowEmail-D-ZrJpBo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-D1VzwMmq.js → PkToolShowForm-Bw98qrZ_.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-D1VzwMmq.js.map → PkToolShowForm-Bw98qrZ_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-Cs8FxK9V.js → PkToolShowImageGallery-o4OXj4kF.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-Cs8FxK9V.js.map → PkToolShowImageGallery-o4OXj4kF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-BcqMFhXM.js → PkToolShowLocation-DXpfaKpJ.js} +2 -2
- package/dist/_chunks/{PkToolShowLocation-BcqMFhXM.js.map → PkToolShowLocation-DXpfaKpJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-DlckklB3.js → PkToolShowMessage-BwAo9Qx2.js} +2 -2
- package/dist/_chunks/{PkToolShowMessage-DlckklB3.js.map → PkToolShowMessage-BwAo9Qx2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-B4fxqFaf.js → PkToolShowProductList-BKydg1YK.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-B4fxqFaf.js.map → PkToolShowProductList-BKydg1YK.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-CFueYo4P.js → PkToolShowQrCode-CbBvVSmj.js} +2 -2
- package/dist/_chunks/{PkToolShowQrCode-CFueYo4P.js.map → PkToolShowQrCode-CbBvVSmj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DNiiBz9b.js → PkToolShowSources-gleJ91hl.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-DNiiBz9b.js.map → PkToolShowSources-gleJ91hl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-Bn1w6HdI.js → PkToolShowSuggestedReply-fsG-mX-c.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-Bn1w6HdI.js.map → PkToolShowSuggestedReply-fsG-mX-c.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-Be5bKhUf.js → PkToolShowVideo-CHbk5VXp.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-Be5bKhUf.js.map → PkToolShowVideo-CHbk5VXp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-B2rcVmEJ.js → PkToolShowWeather-rTcxGcWl.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-B2rcVmEJ.js.map → PkToolShowWeather-rTcxGcWl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-Bs251x0h.js → PkToolShowWebPages-BzH1_SjA.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-Bs251x0h.js.map → PkToolShowWebPages-BzH1_SjA.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-DKT8ys4U.js → VvCheckbox.es-CGVgFeBD.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-DKT8ys4U.js.map → VvCheckbox.es-CGVgFeBD.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-BR2Zrit_.js → VvCheckboxGroup.es-CWqFL8RR.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-BR2Zrit_.js.map → VvCheckboxGroup.es-CWqFL8RR.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-DWJtN8ha.js → VvCombobox.es-kUT6EeIn.js} +2 -2
- package/dist/_chunks/{VvCombobox.es-DWJtN8ha.js.map → VvCombobox.es-kUT6EeIn.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-BH6ohnZF.js → VvInputText.es-CJfMyJ0G.js} +2 -2
- package/dist/_chunks/{VvInputText.es-BH6ohnZF.js.map → VvInputText.es-CJfMyJ0G.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-L9HmgYh4.js → VvRadio.es-BkIuydtE.js} +2 -2
- package/dist/_chunks/{VvRadio.es-L9HmgYh4.js.map → VvRadio.es-BkIuydtE.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-Dyip2x3c.js → VvRadioGroup.es-jFTh_3Gw.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-Dyip2x3c.js.map → VvRadioGroup.es-jFTh_3Gw.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-B8GZOw4X.js → VvSelect.es-Cy_TK4HS.js} +2 -2
- package/dist/_chunks/{VvSelect.es-B8GZOw4X.js.map → VvSelect.es-Cy_TK4HS.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-7E1SuavW.js → VvTextarea.es-aCy57_J_.js} +2 -2
- package/dist/_chunks/{VvTextarea.es-7E1SuavW.js.map → VvTextarea.es-aCy57_J_.js.map} +1 -1
- package/dist/_chunks/{index.es-a98v5vZY.js → index.es-7xRVenur.js} +10 -10
- package/dist/_chunks/{index.es-a98v5vZY.js.map → index.es-7xRVenur.js.map} +1 -1
- package/dist/_chunks/{index.es-D_E1Gj_U.js → index.es-dzrOH5E9.js} +2 -2
- package/dist/_chunks/{index.es-D_E1Gj_U.js.map → index.es-dzrOH5E9.js.map} +1 -1
- package/dist/ai-elements.es.js +623 -593
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAudioTranscript.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/Media-C6Xsb1Lm.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbot-CSMWib9A.js → PkChatbot-CqjOLnzZ.js} +3 -3
- package/dist-vue/_chunks/{PkChatbot-CSMWib9A.js.map → PkChatbot-CqjOLnzZ.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotAudioTranscript-BUxBHanA.js +80 -0
- package/dist-vue/_chunks/PkChatbotAudioTranscript-BUxBHanA.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotAuth-C0qfDOGh.js → PkChatbotAuth-Byn_3wdb.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-C0qfDOGh.js.map → PkChatbotAuth-Byn_3wdb.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DjmF3dcI.js → PkChatbotEmptyState-eS8safl9.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DjmF3dcI.js.map → PkChatbotEmptyState-eS8safl9.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DrPKjh-0.js → PkChatbotFeedbackForm-Cqbz2qey.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DrPKjh-0.js.map → PkChatbotFeedbackForm-Cqbz2qey.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-B8hKYdD9.js → PkChatbotInput-CMAklEDF.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-B8hKYdD9.js.map → PkChatbotInput-CMAklEDF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DJmRPFB8.js → PkChatbotMessages-DHcfZNYn.js} +287 -287
- package/dist-vue/_chunks/PkChatbotMessages-DHcfZNYn.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotSteps-qyUOh42z.js → PkChatbotSteps-CLjlBbYH.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotSteps-qyUOh42z.js.map → PkChatbotSteps-CLjlBbYH.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-C7eA7hef.js → PkChatbotViewChat-CmZ1E6ip.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotViewChat-C7eA7hef.js.map → PkChatbotViewChat-CmZ1E6ip.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-NWO3WTw9.js → PkStreamingMarkdown-DdA0SZ4P.js} +2 -2
- package/dist-vue/_chunks/PkStreamingMarkdown-DdA0SZ4P.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-Dr0NHXDG.js → PkToolShowArtifact-DzCxmsLc.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Dr0NHXDG.js.map → PkToolShowArtifact-DzCxmsLc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BDm1w3UK.js → PkToolShowContactForm-BNqRlhkB.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowContactForm-BDm1w3UK.js.map → PkToolShowContactForm-BNqRlhkB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BKz7OPHC.js → PkToolShowDiagram-CtLg5U0A.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BKz7OPHC.js.map → PkToolShowDiagram-CtLg5U0A.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-cKgWwvPD.js → PkToolShowForm-CMKKzfZU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowForm-cKgWwvPD.js.map → PkToolShowForm-CMKKzfZU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DsAQhyOq.js → PkToolShowImageGallery-C-LVA9Eg.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DsAQhyOq.js.map → PkToolShowImageGallery-C-LVA9Eg.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-OwGaM5qj.js → PkToolShowProductList-DU8Am4mJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-OwGaM5qj.js.map → PkToolShowProductList-DU8Am4mJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BVOqH-ZV.js → PkToolShowSources-vmHitTkY.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-BVOqH-ZV.js.map → PkToolShowSources-vmHitTkY.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-BAqSAfdq.js → PkToolShowVideo-BcWVHiPb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-BAqSAfdq.js.map → PkToolShowVideo-BcWVHiPb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BeMJqIkW.js → PkToolShowWebPages-DemGs1ZO.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BeMJqIkW.js.map → PkToolShowWebPages-DemGs1ZO.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-C_tAUcFb.js → index.es-Tp61H9fG.js} +2 -2
- package/dist-vue/_chunks/{index.es-C_tAUcFb.js.map → index.es-Tp61H9fG.js.map} +1 -1
- package/dist-vue/composables.js +2 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +16 -16
- package/dist-vue/locales.js +2 -2
- package/dist-vue/packages/models/src/schema/Media.d.ts +8 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkStreamingMarkdown-BoVR7gtl.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotAudioTranscript-B-cSKvWR.js +0 -52
- package/dist-vue/_chunks/PkChatbotAudioTranscript-B-cSKvWR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-DJmRPFB8.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-NWO3WTw9.js.map +0 -1
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { VvAccordion as e, VvIcon as t } from "@volverjs/ui-vue/components";
|
|
2
|
-
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, toDisplayString as d, unref as f, withCtx as p } from "vue";
|
|
3
|
-
import { useI18n as m } from "vue-i18n";
|
|
4
|
-
//#region ../../packages/components/src/chat/PkChatbotAudioTranscript.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var h = { class: "pk-chatbot-audio" }, g = ["src"], _ = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "pk-chatbot-audio__status flex items-center gap-8 text-12 text-word-3 mb-0",
|
|
8
|
-
role: "status"
|
|
9
|
-
}, v = { class: "pk-chatbot-audio__text text-14 text-word-2 mb-0" }, y = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "pk-chatbot-audio__status text-12 text-word-3 mb-0"
|
|
12
|
-
}, b = /* @__PURE__ */ l({
|
|
13
|
-
__name: "PkChatbotAudioTranscript",
|
|
14
|
-
props: {
|
|
15
|
-
url: {},
|
|
16
|
-
transcript: {},
|
|
17
|
-
pending: { type: Boolean }
|
|
18
|
-
},
|
|
19
|
-
setup(l) {
|
|
20
|
-
let b = l, { t: x } = m({ useScope: "global" }), S = n(() => {
|
|
21
|
-
switch (b.transcript?.status) {
|
|
22
|
-
case "no-speech": return x("messagePart.audioTranscriptNoSpeech");
|
|
23
|
-
case "failed": return x("messagePart.audioTranscriptFailed");
|
|
24
|
-
case "off": return x("messagePart.audioTranscriptOff");
|
|
25
|
-
default: return;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return (n, m) => {
|
|
29
|
-
let b = t, C = e;
|
|
30
|
-
return u(), a("div", h, [o("audio", {
|
|
31
|
-
class: "pk-chatbot-audio__player",
|
|
32
|
-
src: l.url,
|
|
33
|
-
controls: "",
|
|
34
|
-
preload: "none"
|
|
35
|
-
}, null, 8, g), l.pending && !l.transcript ? (u(), a("p", _, [c(b, {
|
|
36
|
-
name: "loading-loop",
|
|
37
|
-
class: "text-16"
|
|
38
|
-
}), s(" " + d(f(x)("messagePart.audioTranscribing")), 1)])) : l.transcript?.status === "ready" && l.transcript.text ? (u(), r(C, {
|
|
39
|
-
key: 1,
|
|
40
|
-
modifiers: "compact",
|
|
41
|
-
title: f(x)("messagePart.audioTranscript")
|
|
42
|
-
}, {
|
|
43
|
-
default: p(() => [o("p", v, d(l.transcript.text), 1)]),
|
|
44
|
-
_: 1
|
|
45
|
-
}, 8, ["title"])) : S.value ? (u(), a("p", y, d(S.value), 1)) : i("", !0)]);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
//#endregion
|
|
50
|
-
export { b as t };
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=PkChatbotAudioTranscript-B-cSKvWR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PkChatbotAudioTranscript-B-cSKvWR.js","names":["__unplugin_components_0","__unplugin_components_1","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_createTextVNode","_toDisplayString","_unref","_createBlock","_withCtx","_createCommentVNode","_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","PkChatbotAudioTranscript_default","defineComponent","props","__props","$t","useI18n","missing","computed","_component_VvIcon","VvIcon","_component_VvAccordion","VvAccordion","openBlock","createElementBlock","createElementVNode","createVNode","createTextVNode","toDisplayString","unref","createBlock","withCtx","createCommentVNode"],"sources":["../../../../packages/components/src/chat/PkChatbotAudioTranscript.vue","../../../../packages/components/src/chat/PkChatbotAudioTranscript.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n import type { ChatAudioTranscript } from 'models'\n\n const props = defineProps<{\n /** Where the recording plays from. */\n url: string\n /** What the turn heard, once it has (spec `audio-file-transcription.md`, D4). */\n transcript?: ChatAudioTranscript\n /** The turn is still transcribing it: the answer waits on it. */\n pending?: boolean\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n /** Why there is no transcript to open, when there is none. */\n const missing = computed(() => {\n switch (props.transcript?.status) {\n case 'no-speech':\n return $t('messagePart.audioTranscriptNoSpeech')\n case 'failed':\n return $t('messagePart.audioTranscriptFailed')\n case 'off':\n return $t('messagePart.audioTranscriptOff')\n default:\n return undefined\n }\n })\n</script>\n\n<template>\n <div class=\"pk-chatbot-audio\">\n <audio\n class=\"pk-chatbot-audio__player\"\n :src=\"url\"\n controls\n preload=\"none\" />\n <p\n v-if=\"pending && !transcript\"\n class=\"pk-chatbot-audio__status flex items-center gap-8 text-12 text-word-3 mb-0\"\n role=\"status\">\n <VvIcon name=\"loading-loop\" class=\"text-16\" />\n {{ $t('messagePart.audioTranscribing') }}\n </p>\n <VvAccordion\n v-else-if=\"transcript?.status === 'ready' && transcript.text\"\n modifiers=\"compact\"\n :title=\"$t('messagePart.audioTranscript')\">\n <p class=\"pk-chatbot-audio__text text-14 text-word-2 mb-0\">\n {{ transcript.text }}\n </p>\n </VvAccordion>\n <p\n v-else-if=\"missing\"\n class=\"pk-chatbot-audio__status text-12 text-word-3 mb-0\">\n {{ missing }}\n </p>\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chatbot-audio {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n min-width: 0;\n }\n\n .pk-chatbot-audio__player {\n width: 100%;\n max-width: 20rem;\n }\n\n // The paragraphs and their [hh:mm:ss] stamps are the transcript's own.\n .pk-chatbot-audio__text {\n white-space: pre-line;\n overflow-wrap: anywhere;\n }\n</style>\n","<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n import type { ChatAudioTranscript } from 'models'\n\n const props = defineProps<{\n /** Where the recording plays from. */\n url: string\n /** What the turn heard, once it has (spec `audio-file-transcription.md`, D4). */\n transcript?: ChatAudioTranscript\n /** The turn is still transcribing it: the answer waits on it. */\n pending?: boolean\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n /** Why there is no transcript to open, when there is none. */\n const missing = computed(() => {\n switch (props.transcript?.status) {\n case 'no-speech':\n return $t('messagePart.audioTranscriptNoSpeech')\n case 'failed':\n return $t('messagePart.audioTranscriptFailed')\n case 'off':\n return $t('messagePart.audioTranscriptOff')\n default:\n return undefined\n }\n })\n</script>\n\n<template>\n <div class=\"pk-chatbot-audio\">\n <audio\n class=\"pk-chatbot-audio__player\"\n :src=\"url\"\n controls\n preload=\"none\" />\n <p\n v-if=\"pending && !transcript\"\n class=\"pk-chatbot-audio__status flex items-center gap-8 text-12 text-word-3 mb-0\"\n role=\"status\">\n <VvIcon name=\"loading-loop\" class=\"text-16\" />\n {{ $t('messagePart.audioTranscribing') }}\n </p>\n <VvAccordion\n v-else-if=\"transcript?.status === 'ready' && transcript.text\"\n modifiers=\"compact\"\n :title=\"$t('messagePart.audioTranscript')\">\n <p class=\"pk-chatbot-audio__text text-14 text-word-2 mb-0\">\n {{ transcript.text }}\n </p>\n </VvAccordion>\n <p\n v-else-if=\"missing\"\n class=\"pk-chatbot-audio__status text-12 text-word-3 mb-0\">\n {{ missing }}\n </p>\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chatbot-audio {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n min-width: 0;\n }\n\n .pk-chatbot-audio__player {\n width: 100%;\n max-width: 20rem;\n }\n\n // The paragraphs and their [hh:mm:ss] stamps are the transcript's own.\n .pk-chatbot-audio__text {\n white-space: pre-line;\n overflow-wrap: anywhere;\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAKI,IAAMoB,IAAQC,GASR,EAAE,GAAGC,MAAOC,EAAQ,EAAE,UAAU,SAAS,CAAC,GAG1CC,IAAUC,QAAe;GAC3B,QAAQL,EAAM,YAAY,QAA1B;IACI,KAAK,aACD,OAAOE,EAAG,qCAAqC;IACnD,KAAK,UACD,OAAOA,EAAG,mCAAmC;IACjD,KAAK,OACD,OAAOA,EAAG,gCAAgC;IAC9C,SACI;GACR;EACJ,CAAC;;;GAID,OAAApB,EAAA,GAAAC,EA0BM,OA1BNU,GA0BM,CAzBFT,EAIqB,SAAA;IAHjB,OAAM;IACL,KAAKiB,EAAA;IACN,UAAA;IACA,SAAQ;GAEF,GAAA,MAAA,GAAAP,CAAA,GAAAO,EAAA,WAAO,CAAKA,EAAA,cADtBnB,EAAA,GAAAC,EAMI,KANJY,GAMI,CAFAV,EAA8CqB,GAAA;IAAtC,MAAK;IAAe,OAAM;GAAYpB,CAAAA,GAAAA,EAAA,MAC9CC,EAAGC,EAAAc,CAAA,CAAE,CAAA,+BAAA,CAAA,GAAA,CAAA,CAAA,CAAA,KAGMD,EAAA,YAAY,WAAM,WAAgBA,EAAA,WAAW,QAD5DnB,EAAA,GAAAO,EAOcmB,GAAA;;IALV,WAAU;IACT,OAAOpB,EAAAc,CAAA,CAAE,CAAA,6BAAA;;IACV,SAAAZ,QAEI,CAFJN,EAEI,KAFJY,GAEIT,EADGc,EAAA,WAAW,IAAI,GAAA,CAAA,CAAA,CAAA;;GAIX,GAAA,GAAA,CAAA,OAAA,CAAA,KAAAG,EAAA,SADftB,EAAA,GAAAC,EAII,KAJJc,GAIIV,EADGiB,EAAA,KAAO,GAAA,CAAA,KAAAe,EAAA,IAAA,EAAA,CAAA,CAAA"}
|