import{j as l}from"./app-Bup04Qnx.js";function p(e){const{children:c,errors:a,name:s,alt:n,isLabel:o=!0,index:m=null,required:x=!1}=e;let{label:t=null,wrapperClassName:d="w-full form-control",labelClassName:b="label-text capitalize ",bottomLabel:r=null,infoCard:i=null}=e;return t||(t=s.split("_").join(" ")),l.jsxs("div",{className:d,children:[o&&l.jsxs("label",{className:"label",children:[l.jsxs("span",{className:b,children:[t,x&&l.jsx("div",{className:"tooltip tooltip-right","data-tip":"Kolom ini wajib diisi",children:l.jsx("span",{className:"text-error text-base cursor-help",children:"*"})})]}),n?l.jsx("span",{className:"label-text-alt capitalize",children:n}):null]}),c,(a==null?void 0:a[s])&&l.jsx("label",{className:"label",children:l.jsxs("span",{className:"label-text-alt text-error",children:["* ",a[s]]})}),!!r&&l.jsx("label",{className:"label mt-1",children:l.jsx("span",{className:"label-text-alt",children:r})}),i&&typeof i=="function"&&i(e)]},m)}export{p as B};
