1import{a as V,s as C,v as S,X as A,o as i,l as m,x as n,c as M,b0 as z,e as u,n as f,w as g,q as s,z as v,t as r,ao as c,A as D,aV as I,D as N,aK as b,H as U,g as E,_ as F}from"./Cz8qy4BE.js";const j={class:"itbaima-segmented w-fit"},q={class:"flex-center gap-1"},H={key:1},K={class:"rounded-3xl text-white w-fit py-2 px-2.5 text-ssm leading-4 bg-main-l3"},O=V({__name:"BaimaSegmented",props:b({options:{},shadow:{type:Boolean},title:{default:""},disableAnimation:{type:Boolean},autoFold:{type:Boolean,default:!0},onlyIcon:{type:Boolean,default:!1},disabled:{type:Boolean},normalBackground:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:b(["change"],["update:modelValue"]),setup(e,{emit:y}){const p=C(),w=e,l=S(e,"modelValue"),B=y,d=U(!1),k=E(()=>w.options.find(t=>t.value===l.value));return A(l,t=>B("change",t)),(t,o)=>{const x=z,h=I;return i(),m("div",j,[!e.autoFold||!n(p).isMobile?(i(),M(x,{key:0,style:f({boxShadow:e.shadow?null:"none",backgroundColor:e.normalBackground?"var(--itbaima-space-card) !important":null}),disabled:e.disabled,class:u([{"bottom-fade-in":!e.disableAnimation}]),modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=a=>l.value=a),options:e.options},{default:g(({item:a})=>[s("div",q,[a.icon?(i(),m("i",{key:0,class:u(a.icon)},null,2)):v("",!0),e.onlyIcon?v("",!0):(i(),m("span",H,r(("translate"in t?t.translate:n(c))(a.title)),1))])]),_:1},8,["style","disabled","class","modelValue","options"])):(i(),m("div",{key:1,class:u(["mobile-segmented",{"bottom-fade-in":!e.disableAnimation}]),style:f({boxShadow:e.shadow?"":"none",backgroundColor:e.normalBackground?"var(--itbaima-space-card) !important":"var(--el-fill-color-light)"})},[s("div",K,[s("div",null,r(("translate"in t?t.translate:n(c))(n(k).title)),1)]),s("div",{class:"h-7 w-7 text-main-l1 leading-8 text-center rounded-full text-sm mr-1",onClick:o[1]||(o[1]=a=>d.value=!0)},[...o[4]||(o[4]=[s("i",{class:"fa-solid fa-repeat"},null,-1)])])],6)),D(h,{list:e.options,attribute:"value",width:280,title:e.title,icon:"fa-solid fa-route",item:l.value,"onUpdate:item":o[2]||(o[2]=a=>l.value=a),show:n(d),"onUpdate:show":o[3]||(o[3]=a=>N(d)?d.value=a:null)},{default:g(({item:a})=>[s("div",null,r(("translate"in t?t.translate:n(c))(a.title)),1)]),_:1},8,["list","title","item","show"])])}}}),X=Object.assign(F(O,[["__scopeId","data-v-679c9ae5"]]),{__name:"BaimaSegmented"});export{X as _};
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.