import{_ as C}from"./gjovfe2x.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,az as w,c as B,l,b as j,w as T,n as u,t as s}from"./B08CJtNn.js";import{u as $}from"./BY0xeA_q.js";const E=["aria-label","onClick","onKeydown"],z={class:"group-hover:underline text-left"},D={key:0,class:"text-uiText-muted"},K={key:1,class:"group-hover:underline"},N=h({__name:"ClipboardCopyEntries",props:{entries:{},format:{default:"list"}},setup(m){const i=m,d=k(),{copy:n}=$();return(a,S)=>{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",z,[u(s(e.content)+" ",1),e.status&&typeof e.status=="string"?(t(),o("span",D,"("+s(e.status)+")",1)):l("",!0)])],64)):(t(),o("span",K,s(e),1))],40,E)),[[f,{content:a.$t("clipboardCopy"),theme:r(d).tippyTheme}]])],2))),128))],2)}}}),H=Object.assign(N,{__name:"ClipboardCopyEntries"});export{H as _};
