"use strict";const n=require("react/jsx-runtime"),z=require("react"),a=require("../global.module.cjs"),e=require("../tools/tools.cjs"),S=function(j){const{as:c="input",children:d,className:m,color:u,dropOldClass:p,endContent:o,isInvalid:f,isValid:y,nativeColor:x,nativeSize:v,onRef:I,readonlyPlainText:C,size:r,startContent:l,startEndContentClasses:g,style:b,type:s,variables:N,...h}=j,i=z.useMemo(()=>{const t=e.classx(!p&&e.findTruthyClass(["form-check-input",s==="checkbox"||s==="radio"],["form-control-plaintext",C],["form-range",s==="range"],["form-control",!0]),u&&"form-control-color",r&&`form-control-${r}`,y&&"is-valid",f&&"is-invalid",m),q=e.stylex((P,R)=>({tKey:e.convertBsKeyToVar(R)}),N,b);return{className:t,color:x,size:v,style:q,type:s}},[m,u,p,f,y,x,v,C,r,b,s,N]);if(l||o){const t=e.processSlotClasses(g,{component:e.classxWithOptions(null,i.className,l&&a.treeStyles.brlPs9,o&&a.treeStyles.brlPe9),container:"d-inline-flex align-items-center position-relative",end:`position-absolute top-50 translate-middle-y ${a.treeStyles.brlEnd3}`,start:`position-absolute top-50 translate-middle-y ${a.treeStyles.brlStart3}`});return n.jsxs("div",{className:t.container,"data-slot-container":"",children:[l&&n.jsx("div",{className:t.start,"data-slot-prefix":"",children:l}),n.jsx(c,{...h,...i,className:t.component,"data-slot-component":"",children:d}),o&&n.jsx("div",{className:t.end,"data-slot-suffix":"",children:o})]})}return n.jsx(c,{...h,...i,ref:I,children:d})};S.displayName="BRL.Input";exports.Input=S;
//# sourceMappingURL=input.cjs.map
