{"version":3,"sources":["src/app/core/components/ui-kit/textarea/textarea.component.ts","src/app/core/components/ui-kit/textarea/textarea.component.html"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport {\n ControlContainer,\n FormGroupDirective,\n FormsModule,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { AutosizeModule } from 'ngx-autosize';\nimport { SharedModule } from 'src/app/core/shared.module';\n\n@Component({\n selector: 'v-textarea',\n imports: [ReactiveFormsModule, SharedModule, FormsModule, AutosizeModule],\n templateUrl: './textarea.component.html',\n styleUrl: './textarea.component.scss',\n viewProviders: [\n {\n provide: ControlContainer,\n useExisting: FormGroupDirective,\n },\n ],\n})\nexport class VTextareaComponent {\n /**\n * Placeholder text to display\n */\n @Input()\n placeholder = 'Enter text';\n\n /**\n * Amount of rows to display in the textarea by default\n */\n @Input()\n rows = 3;\n\n /**\n * Sets the minimum amount of rows to display in the textarea\n */\n @Input()\n minRows?: number;\n\n /**\n * Optional form control name\n */\n @Input()\n fControlName?: string;\n\n /**\n * Switch to make the textarea read only\n */\n @Input()\n readOnly = false;\n}\n","\n"],"names":["ɵɵelement","ɵɵproperty","ctx_r0","fControlName","placeholder","minRows","rows","readOnly","VTextareaComponent","constructor","selectors","inputs","features","ɵɵProvidersFeature","provide","ControlContainer","useExisting","FormGroupDirective","decls","vars","consts","template","rf","ctx","ɵɵtemplate","VTextareaComponent_textarea_0_Template","ReactiveFormsModule","DefaultValueAccessor","NgControlStatus","FormControlName","SharedModule","NgIf","FormsModule","AutosizeModule","AutosizeDirective","styles"],"mappings":";;2RCAAA,EAAA,EAAA,WAAA,CAAA,iBAEEC,EAAA,kBAAAC,EAAAC,YAAA,EAAgC,cAAAD,EAAAE,WAAA,EAEL,WAAA,EAAA,EACV,OAAAF,EAAAG,SAAAH,EAAAI,IAAA,EACO,UAAAJ,EAAAG,SAAAH,EAAAI,IAAA,EACG,WAAAJ,EAAAK,QAAA,GDe7B,IAAaC,GAAkB,IAAA,CAAzB,MAAOA,CAAkB,CAZ/BC,aAAA,CAiBE,KAAAL,YAAc,aAMd,KAAAE,KAAO,EAkBP,KAAAC,SAAW,mDA7BAC,EAAkB,CAAA,+BAAlBA,EAAkBE,UAAA,CAAA,CAAA,YAAA,CAAA,EAAAC,OAAA,CAAAP,YAAA,cAAAE,KAAA,OAAAD,QAAA,UAAAF,aAAA,eAAAI,SAAA,UAAA,EAAAK,SAAA,CAAAC,EAAA,CAAA,EAPd,CACb,CACEC,QAASC,EACTC,YAAaC,EACd,CACF,CAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,OAAA,CAAA,CAAA,QAAA,aAAA,EAAA,kBAAA,cAAA,WAAA,OAAA,UAAA,WAAA,EAAA,MAAA,EAAA,CAAA,EAAA,aAAA,EAAA,kBAAA,cAAA,WAAA,OAAA,UAAA,UAAA,CAAA,EAAAC,SAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,GCpBHE,EAAA,EAAAC,EAAA,EAAA,EAAA,WAAA,CAAA,OACGxB,EAAA,OAAAsB,EAAApB,YAAA,iBDWSuB,EAAmBC,EAAAC,EAAAC,EAAEC,EAAYC,EAAEC,EAAaC,EAAcC,CAAA,EAAAC,OAAA,CAAA;4DAAA,CAAA,CAAA,CAAA,SAU7D3B,CAAkB,GAAA","debug_id":"bba2adcb-3ffd-5f0e-a34b-8db57a01e73d"}