import{_ as C}from"./BtsG96Qa.js";import{d as h,u as k,k as g,e as o,o as t,E as c,F as p,r as v,p as y,m as r,aB as w,c as B,l,b as j,w as T,n as u,t as s}from"./Dk4AzF7j.js";import{u as $}from"./BXyDg5m4.js";const E=["aria-label","onClick","onKeydown"],D={class:"group-hover:underline text-left"},K={key:0,class:"text-uiText-muted"},N={key:1,class:"group-hover:underline"},S=h({__name:"ClipboardCopyEntries",props:{entries:{},format:{default:"list"}},setup(m){const i=m,d=k(),{copy:n}=$();return(a,V)=>{const _=C,f=g("tippy");return t(),o("ul",{class:c([i.format==="list"?"flex flex-col gap-1":"flex flex-row flex-wrap","text-sm text-uiText-toned text-pretty"])},[(t(!0),o(p,null,v(a.entries,(e,b)=>(t(),o("li",{key:b,class:c([i.format==="comma"?"comma-separated gap-1":"border-b border-uiBorder py-0.5 last:border-b-0"])},[y((t(),o("button",{class:"flex items-start gap-2 cursor-pointer group","aria-label":a.$t("clipboardCopy"),onClick:x=>r(n)(typeof e=="object"?e.content:e),onKeydown:w(x=>r(n)(typeof e=="object"?e.content:e),["enter"])},[typeof e=="object"?(t(),o(p,{key:0},[e.status&&typeof e.status=="object"?(t(),B(_,{key:0,color:e.status.color,variant:"solid",size:"sm",class:"shrink-0 relative top-[1px]"},{default:T(()=>[u(s(e.status.text),1)]),_:2},1032,["color"])):l("",!0),j("span",D,[u(s(e.content)+" ",1),e.status&&typeof e.status=="string"?(t(),o("span",K,"("+s(e.status)+")",1)):l("",!0)])],64)):(t(),o("span",N,s(e),1))],40,E)),[[f,{content:a.$t("clipboardCopy"),theme:r(d).tippyTheme}]])],2))),128))],2)}}}),H=Object.assign(S,{__name:"ClipboardCopyEntries"});export{H as _};
