import{p as e,_ as l}from"./utils-lib.js?v=20260328163632";import{w as s,k as t,r as a,c as n,o as i,n as c,O as o,l as r,U as u,V as p,W as d,q as g}from"./base-lib.js?v=20260328163632";const v=t({name:"ConfigRow",directives:{selectLighting:{async mounted(l,t){const{settingSearch:a}=e();s((()=>a.value),(e=>{const s=new RegExp(e,"gi");if(l.classList.contains("desc")){l.querySelectorAll("span").forEach((e=>{const l=e.innerText;if(l.match(s)){const t=l.replace(s,(e=>'<i class="setingLight not-italic bg-[yellow]">'.concat(e,"</i>")));e.innerHTML=t}}))}else{const e=l.innerText;if(e.match(s)){const t=e.replace(s,(e=>'<i class="setingLight not-italic bg-[yellow]">'.concat(e,"</i>")));l.innerHTML=t}}}))}}},props:{label:{type:String,default:""}},setup(l,{slots:s}){const{settingSearch:t}=e(),{label:p}=l,d=a(null),g=a(""),v=n((()=>{let e=!0;return e=""===t.value||(!!g.value.includes(t.value)||!!l.label.includes(t.value)),e}));return i((()=>{c((()=>{d.value&&(g.value=d.value.innerText)}))})),()=>o("section",{class:"config-rows",title:p,style:"display: ".concat(v.value?"flex":"none")},[o("div",{class:"label"},[(null==s?void 0:s.label)?null==s?void 0:s.label():r(o("span",null,[p]),[[u("select-lighting")]])]),o("div",{class:"value"},[s.value?s.value():null]),r(o("div",{ref:d,class:"desc text-light"},[s.desc?s.desc():null]),[[u("select-lighting")]])])}}),b={class:"mb-[15px] pt-[5px] px-[12px] pb-[8px] leading-[28px] text-[14px] font-bold text-medium",style:{"border-bottom":"1px solid var(--border-color-55)"}};const x=l({},[["render",function(e,l){return p(),d("section",b,[g(e.$slots,"default")])}]]);export{v as C,x as a};
