import{_ as w,aa as k,r as v,aq as S,ak as $,C,o as s,g as o,j as n,a as c,f as i,t as r,h as u,d as N,i as B,n as b,M as I,N as R}from"./app-DA7OTM4Q.js";const q=e=>(I("data-v-f0ee93f1"),e=e(),R(),e),T={key:0,class:"name"},D={key:0,class:"alias-name"},E={key:1},M=q(()=>c("i",{class:"icon pi pi-question-circle text-gray-400"},null,-1)),V=[M],j={key:1,class:"comment"},H={__name:"CardRow",props:{name:{type:String,default:""},aliasName:{type:String,default:""},value:{type:String,default:""},comment:{type:String,default:""},colspan:{default:""},full:{type:Boolean,default:!1},newRow:{type:Boolean,default:!1},tip:{type:String,default:""},groupItem:{type:Boolean,default:!1},required:{type:Boolean,default:!1},noHover:{type:Boolean,default:!1}},setup(e){const y=k("$utils"),a=e,d=v(),l=v({}),f=()=>{l.value={},a.colspan=="full"?l.value["col-span-full"]=!0:(typeof a.colspan=="string"&&a.colspan.match(/^\d+$/)||typeof a.colspan=="number")&&(l.value["col-span-"+a.colspan]=!0),a.full&&(l.value["col-span-full"]=!0),a.newRow&&(l.value["col-start-1"]=!0),a.groupItem&&(l.value["!border-l-gray-100 dark:!border-l-gray-800"]=!0),a.noHover&&(l.value["no-hover"]=!0)};S(()=>{f()});const h=t=>{y.popupTip(t)},m=()=>{d.value.querySelectorAll(".p-chip").forEach(t=>{t.className.match(/\b(small|large|normal|tiny)\b/)||(t.className+=" small")})};return $(()=>{f(),m(),setTimeout(()=>m())}),(t,p)=>{const g=C("tooltip");return s(),o("div",{class:b(["row border-l-[1px] border-l-transparent",l.value])},[n(t.$slots,"start",{},void 0,!0),e.name!=null&&e.name.length>0||t.$slots.name?(s(),o("div",T,[c("div",null,[i(r(e.name)+" ",1),n(t.$slots,"name",{},void 0,!0)]),e.aliasName.length>0?(s(),o("div",D,"("+r(e.aliasName)+")",1)):u("",!0),e.required?(s(),o("span",E," *")):u("",!0),e.tip.length>0?N((s(),o("a",{key:2,href:"",onClick:p[0]||(p[0]=B(z=>h(e.tip),["prevent"]))},V)),[[g,"点击看帮助",void 0,{top:!0}]]):u("",!0)])):u("",!0),c("div",{class:"value",ref_key:"valueRef",ref:d},[i(r(e.value)+" ",1),n(t.$slots,"value",{},void 0,!0)],512),e.comment.length>0||t.$slots.comment?(s(),o("p",j,[i(r(e.comment)+" ",1),n(t.$slots,"comment",{},void 0,!0)])):u("",!0),n(t.$slots,"default",{},void 0,!0),n(t.$slots,"end",{},void 0,!0)],2)}}},L=w(H,[["__scopeId","data-v-f0ee93f1"]]);export{L as C};
