1import{_ as h}from"./B95F2xDf.js";import{c as w}from"./DHqfhrjH.js";import{a as I,c as x}from"./DlwkbyPs.js";import{u as y}from"./C4ouL5aB.js";import{g as B,h as d,D as E,x as l,B as t,J as r,I as f,P as g,c as D,o as u,v as R}from"./D3Mi9OEl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"b1d507726365c2fa65bdc507ac9080512e92ee9c"};var s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="aeb470e7-de06-4b60-a2fd-25e3ac288da3",e._sentryDebugIdIdentifier="sentry-dbid-aeb470e7-de06-4b60-a2fd-25e3ac288da3")}catch{}})();const $={class:"actions"},N=["aria-label"],S=["disabled"],z=B({__name:"AnswerActions",props:{message:{},sources:{},canRegenerate:{type:Boolean},disabled:{type:Boolean}},emits:["regenerate","copy"],setup(e,{emit:s}){const n=e,C=s,i={message:{idle:"Copy message",copied:"Copied",failed:"Couldn't copy"},citations:{idle:"Copy with citations",copied:"Copied",failed:"Couldn't copy"},chicago:{idle:"Cite sources",copied:"Citations copied",failed:"Couldn't copy"}},o=y(),p=y(),m=y(),b=D(()=>w(n.message,n.sources));async function k(){await o.copy(n.message)&&C("copy")}return(A,a)=>{const c=h;return u(),d("div",$,[E("button",{type:"button",class:"actions__btn","aria-label":i.message[t(o).state.value],onClick:k},[l(c,{name:t(o).state.value==="copied"?"check":"copy",size:16},null,8,["name"]),r(" "+f(t(o).state.value==="idle"?"Copy":i.message[t(o).state.value]),1)],8,N),b.value.length?(u(),d("button",{key:0,type:"button",class:"actions__btn",onClick:a[0]||(a[0]=_=>t(p).copy(t(I)(e.message,e.sources)))},[l(c,{name:t(p).state.value==="copied"?"check":"quote",size:16},null,8,["name"]),r(" "+f(i.citations[t(p).state.value]),1)])):g("",!0),b.value.length?(u(),d("button",{key:1,type:"button",class:"actions__btn",onClick:a[1]||(a[1]=_=>t(m).copy(b.value.map(v=>`[${v.number}] ${t(x)(v)}`).join(` 2`)))},[l(c,{name:t(m).state.value==="copied"?"check":"cite",size:16},null,8,["name"]),r(" "+f(i.chicago[t(m).state.value]),1)])):g("",!0),e.canRegenerate?(u(),d("button",{key:2,type:"button",class:"actions__btn","aria-label":"Regenerate response",disabled:e.disabled,onClick:a[2]||(a[2]=_=>!e.disabled&&C("regenerate"))},[l(c,{name:"regenerate",size:16}),a[3]||(a[3]=r(" Regenerate ",-1))],8,S)):g("",!0)])}}}),F=R(z,[["__scopeId","data-v-6f3048e6"]]);export{F as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.