1import{f as L,ac as fe,G as W,J as X,h as pe,k as u,c as v,v as S,o as a,w as i,b as _,ah as ve,F as C,s as U,ag as _e,d as V,z as ye,t as B,ai as P,a7 as x,aj as E,l as m,ad as N,ae as he,a as D,am as $e,ak as be,n as j,al as ke,an as ge,C as we,p as Se,ao as Ce,ap as Ue,aq as Be,ar as Te,as as Ie,m as Ve,af as De,ab as Y,a2 as Z}from"./D2WOiHy-.js";import{_ as Pe}from"./CChdC8Dr.js";import{_ as xe}from"./BksDYplf.js";import{a as Ee,_ as je}from"./CqvQxcr7.js";const Me={class:"flex items-center justify-between overflow-x-auto pb-3"},Ne={class:"relative flex overflow-x-auto border-b p-0.5 text-sm"},Le={class:"flex p-1"},ze=["value","onMousedown"],Ge=["value"],Fe={key:3},Oe={class:"flex items-center"},qe=["value"],Ae=L({__name:"TabsInner",props:{slotsData:{},variant:{},padded:{type:Boolean},inStack:{type:Boolean},disableSearch:{type:Boolean},searchPlaceholder:{},searchEmpty:{},sync:{}},setup(c){const f=fe("tabs-sync-state",{default:()=>[]}),k=W(()=>f.value.findIndex(e=>e.scope===c.sync)),h=X(0),t=W({get:()=>{var e;return c.sync===void 0||k.value===-1?h.value:((e=c.slotsData.find($=>{var w;return $.label===((w=f.value[k.value])==null?void 0:w.value)}))==null?void 0:e.index)||h.value},set(e){if(c.sync===void 0){h.value=e;return}k.value===-1&&f.value.push({scope:c.sync,value:void 0}),f.value[k.value].value=c.slotsData[e].label,h.value=e}}),T=new Map(Object.entries(pe().value.main.codeIcon));function y(e){var $;return(e==null?void 0:e.icon)||T.get(($=e==null?void 0:e.filename)==null?void 0:$.toLowerCase())||T.get(e==null?void 0:e.language)}function r(e){return(e==null?void 0:e.label)||(e==null?void 0:e.filename)}const g=X(!1);return(e,$)=>{var q,A;const w=ye,z=_e,G=ve,F=he,ee=Pe,ae=$e,ne=xe,O=Se,te=we,se=ge,oe=Ee,le=je,re=Ie,ue=Te,ce=Be,de=Ue,ie=Ce,me=De;return e.variant==="separate"?(a(),u(F,{key:0,modelValue:m(t),"onUpdate:modelValue":$[0]||($[0]=o=>N(t)?t.value=o:null),class:"[&:not(:first-child)]:mt-5"},{default:i(()=>{var o,d;return[_(G,null,{default:i(()=>{var n,l;return[(a(!0),v(C,null,U(((l=(n=e.$slots).default)==null?void 0:l.call(n))??[],(s,p)=>(a(),u(z,{key:`${p}${r(s.props)}`,value:p},{default:i(()=>[y(s==null?void 0:s.props)?(a(),u(w,{key:0,name:y(s==null?void 0:s.props),class:"mr-1.5 self-center"},null,8,["name"])):S("",!0),V(" "+B(r(s.props)),1)]),_:2},1032,["value"]))),128))]}),_:1}),(a(!0),v(C,null,U(((d=(o=e.$slots).default)==null?void 0:d.call(o))??[],(n,l)=>P((a(),v("div",{key:`${l}${r(n.props)}`,class:"mt-2"},[(a(),u(x(n)))])),[[E,m(t)===l]])),128))]}),_:1},8,["modelValue"])):e.variant==="line"?(a(),u(F,{key:1,modelValue:m(t),"onUpdate:modelValue":$[1]||($[1]=o=>N(t)?t.value=o:null),class:"relative mr-auto w-full [&:not(:first-child)]:mt-5"},{default:i(()=>{var o,d;return[D("div",Me,[_(G,{class:"h-9 w-full justify-start rounded-none border-b bg-transparent p-0"},{default:i(()=>{var n,l;return[(a(!0),v(C,null,U(((l=(n=e.$slots).default)==null?void 0:l.call(n))??[],(s,p)=>(a(),u(z,{key:`${p}${r(s.props)}`,value:p,class:"text-muted-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground relative h-9 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 font-semibold shadow-none transition-none data-[state=active]:shadow-none"},{default:i(()=>[y(s==null?void 0:s.props)?(a(),u(w,{key:0,name:y(s==null?void 0:s.props),class:"mr-1.5 self-center"},null,8,["name"])):S("",!0),V(" "+B(r(s.props)),1)]),_:2},1032,["value"]))),128))]}),_:1})]),(a(!0),v(C,null,U(((d=(o=e.$slots).default)==null?void 0:d.call(o))??[],(n,l)=>P((a(),v("div",{key:`${l}${r(n.props)}`,class:"relative mt-2 space-y-10"},[(a(),u(x(n)))])),[[E,m(t)===l]])),128))]}),_:1},8,["modelValue"])):e.variant==="card"?(a(),u(ne,{key:2,class:j(["[&:not(:first-child)]:mt-5",[e.inStack&&"mb-0 rounded-none border-none shadow-none"]])},{default:i(()=>{var o,d;return[_(ae,null,{default:i(()=>{var n,l,s,p,I,J,R,H,K,Q;return[D("div",Ne,[D("div",Le,[(a(!0),v(C,null,U(((l=(n=e.$slots).default)==null?void 0:l.call(n))??[],(b,M)=>(a(),v("div",{key:`${M}${r(b.props)}`,value:r(b.props),class:j(["text-muted-foreground flex cursor-pointer rounded-md px-3 py-1.5 transition-all duration-75",[m(t)===M&&"bg-muted text-primary"]]),onMousedown:be(Re=>t.value=M,["left"])},[y(b==null?void 0:b.props)?(a(),u(w,{key:0,name:y(b==null?void 0:b.props),class:"mr-1.5 self-center"},null,8,["name"])):S("",!0),V(" "+B(r(b.props)),1)],42,ze))),128))]),(J=(I=(p=(s=e.$slots).default)==null?void 0:p.call(s)[m(t)])==null?void 0:I.props)!=null&&J.code?(a(),u(ee,{key:0,class:"ml-auto mr-2 self-center",code:(Q=(K=(H=(R=e.$slots).default)==null?void 0:H.call(R)[m(t)])==null?void 0:K.props)==null?void 0:Q.code},null,8,["code"])):S("",!0)]),_(ke,{orientation:"horizontal"})]}),_:1}),(a(!0),v(C,null,U(((d=(o=e.$slots).default)==null?void 0:d.call(o))??[],(n,l)=>{var s,p,I;return P((a(),v("div",{key:`${l}${r(n.props)}`,value:r(n.props),class:j(["mt-0",[e.padded&&((I=(p=(s=e.$slots).default)==null?void 0:p.call(s)[m(t)])==null?void 0:I.type).tag!=="pre"&&"p-3"]])},[(a(),u(x(n),{"in-group":!0}))],10,Ge)),[[E,m(t)===l]])}),128))]}),_:1},8,["class"])):e.variant==="combobox"?(a(),v("div",Fe,[_(me,{open:m(g),"onUpdate:open":$[2]||($[2]=o=>N(g)?g.value=o:null)},{default:i(()=>[_(se,{"as-child":""},{default:i(()=>[_(te,{variant:"outline",role:"combobox","aria-expanded":m(g),class:"w-[200px] justify-between"},{default:i(()=>{var o,d,n,l,s,p;return[D("div",Oe,[y((((d=(o=e.$slots).default)==null?void 0:d.call(o))??[])[m(t)].props)?(a(),u(w,{key:0,name:y((((l=(n=e.$slots).default)==null?void 0:l.call(n))??[])[m(t)].props),class:"mr-1.5"},null,8,["name"])):S("",!0),D("span",null,B(r((((p=(s=e.$slots).default)==null?void 0:p.call(s))??[])[m(t)].props)),1)]),_(O,{name:"lucide:chevrons-up-down"})]}),_:1},8,["aria-expanded"])]),_:1}),_(ie,{class:"w-[200px] p-0"},{default:i(()=>[_(de,null,{default:i(()=>[e.disableSearch?S("",!0):(a(),u(oe,{key:0,class:"h-9",placeholder:e.searchPlaceholder},null,8,["placeholder"])),_(le,null,{default:i(()=>[V(B(e.searchEmpty),1)]),_:1}),_(ce,null,{default:i(()=>[_(ue,null,{default:i(()=>{var o,d;return[(a(!0),v(C,null,U(((d=(o=e.$slots).default)==null?void 0:d.call(o))??[],(n,l)=>(a(),u(re,{key:`${l}${r(n.props)}`,value:r(n.props),onSelect:()=>{t.value=l,g.value=!1}},{default:i(()=>[y(n==null?void 0:n.props)?(a(),u(w,{key:0,name:y(n==null?void 0:n.props),class:"mr-1.5 self-center"},null,8,["name"])):S("",!0),V(" "+B(r(n.props))+" ",1),_(O,{name:"lucide:check",class:j(m(Ve)("ml-auto h-4 w-4",m(t)===l?"opacity-100":"opacity-0"))},null,8,["class"])]),_:2},1032,["value","onSelect"]))),128))]}),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),(a(!0),v(C,null,U(((A=(q=e.$slots).default)==null?void 0:A.call(q))??[],(o,d)=>P((a(),v("div",{key:`${d}${r(o.props)}`,value:r(o.props),class:"mt-4"},[(a(),u(x(o),{"in-group":!0}))],8,qe)),[[E,m(t)===d]])),128))])):S("",!0)}}}),Je=L({__name:"Tabs",props:{variant:{default:"separate"},padded:{type:Boolean,default:!0},inStack:{type:Boolean,default:!1},disableSearch:{type:Boolean,default:!1},searchPlaceholder:{default:"Search Tab..."},searchEmpty:{default:"No tab found."},sync:{}},setup(c){const f=Y();function k(){var T;const h=((T=f==null?void 0:f.default)==null?void 0:T.call(f))||[],t=h.map((y,r)=>{var g,e;return{label:((g=y.props)==null?void 0:g.label)||((e=y.props)==null?void 0:e.filename)||"",index:r}});return Z(Ae,{variant:c.variant,padded:c.padded,inStack:c.inStack,disableSearch:c.disableSearch,searchEmpty:c.searchEmpty,searchPlaceholder:c.searchPlaceholder,slotsData:t,sync:c.sync},()=>h)}return(h,t)=>(a(),u(k))}}),Xe=L({__name:"CodeGroup",props:{inStack:{type:Boolean,default:!1},sync:{}},setup(c){const f=Y();function k(){var t;const h=((t=f==null?void 0:f.default)==null?void 0:t.call(f))||[];return Z(Je,{variant:"card",inStack:c.inStack,sync:c.sync},()=>h)}return(h,t)=>(a(),u(k))}});
1export{Xe 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.