1import{r as k}from"./B4Bqz77j.js";import{a8 as S,aa as w,a as B,s as C,v as r,x as P,ak as b,X as i,R as l,ag as s,aj as u,ai as h,p as N,P as V}from"./Bt_HK4X0.js";import{t as q}from"./CBtcE7Xb.js";import"./BcoM21Dg.js";const j={slots:{root:"my-5",container:"flex items-center gap-3 font-mono text-sm",name:"font-semibold text-primary",wrapper:"flex-1 flex items-center gap-1.5 text-xs",required:"rounded-sm bg-error/10 text-error px-1.5 py-0.5",type:"rounded-sm bg-elevated text-toned px-1.5 py-0.5",description:"mt-3 text-muted text-sm [&_code]:text-xs/4"}},F={__name:"ProseField",props:{as:{type:null,required:!1},name:{type:String,required:!1},type:{type:String,required:!1},description:{type:String,required:!1},required:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(e){const t=e,v=S(),g=w(),a=B(()=>{var n,o;return q({extend:q(j),...((o=(n=g.uiPro)==null?void 0:n.prose)==null?void 0:o.field)||{}})()});return(n,o)=>{var c;return r(),C(N(V),{as:e.as,class:s(a.value.root({class:[(c=t.ui)==null?void 0:c.root,t.class]}))},{default:P(()=>{var d,p,m,f,y,x;return[b("div",{class:s(a.value.container({class:(d=t.ui)==null?void 0:d.container}))},[e.name?(r(),i("span",{key:0,class:s(a.value.name({class:(p=t.ui)==null?void 0:p.name}))},u(e.name),3)):l("",!0),e.type||e.required?(r(),i("div",{key:1,class:s(a.value.wrapper({class:(m=t.ui)==null?void 0:m.wrapper}))},[e.type?(r(),i("span",{key:0,class:s(a.value.type({class:(f=t.ui)==null?void 0:f.type}))},u(e.type),3)):l("",!0),e.required?(r(),i("span",{key:1,class:s(a.value.required({class:(y=t.ui)==null?void 0:y.required}))}," required ",2)):l("",!0)],2)):l("",!0)],2),v.default||e.description?(r(),i("div",{key:0,class:s(a.value.description({class:(x=t.ui)==null?void 0:x.description}))},[k(n.$slots,"default",{mdcUnwrap:"p"},()=>[h(u(e.description),1)])],2)):l("",!0)]}),_:3},8,["as","class"])}}};export{F 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.