PageSourceSearch

https://kolesa.group/_nuxt/Textarea.3a5f5b95.js

js kolesa.group collected 2026-09-25 14:55:24 UTC 2,466 bytes, 1 lines download raw bytes

1import{d as E,ai as V,p as d,e as c,a as k,as as C,q as I,o as a,i as o,g as s,n as l,h as S,t as h,k as i,j as q,_ as T}from"./entry.03fc9b5b.js";import{I as L}from"./Icon.ae92976b.js";const N={key:0},z=["value","maxlength","name"],F=E({__name:"Textarea",props:{modelValue:{},label:{},error:{},hint:{},required:{type:Boolean},maxHeight:{default:212},maxLength:{default:2e3},name:{},hideRequiredSymbol:{type:Boolean},hideErrorIcon:{type:Boolean},fullHeight:{type:Boolean}},emits:["update:modelValue","focus","blur"],setup(m,{emit:g}){V(e=>({24325668:y.value}));const n=g,t=m,f=d(null),p=d(null),r=d(!1),u=c(()=>!!k(t.error)),v=c(()=>!!t.modelValue||r.value),{height:b}=C(p),y=c(()=>`${b.value}px`),_=()=>{const e=f.value;if(!(!e||t.fullHeight)){if(e.scrollHeight>t.maxHeight){e.style.height=`${t.maxHeight}px`;return}e.style.height="100%",e.style.height=`${e.scrollHeight}px`}},w=e=>{_(),n("update:modelValue",e.target.value)},H=e=>{r.value=!0,n("focus",e)},B=e=>{r.value=!1,n("blur",e)};return I(()=>{_()}),(e,P)=>(a(),o("div",{class:l([e.field.root,e.field["textarea-root"],{[e.field["full-height"]]:e.fullHeight}])},[s("label",{class:l([e.field.container,{[e.field["is-active"]]:v.value,[e.field["has-error"]]:u.value}])},[s("span",{ref_key:"labelEl",ref:p,class:l(e.field.label)},[S(h(e.label)+" ",1),e.required&&!e.hideRequiredSymbol?(a(),o("span",N,"*")):i("",!0)],2),s("div",{class:l(e.field["label-surface"])},null,2),s("div",null,[s("textarea",{ref_key:"textareaEl",ref:f,class:l(e.field.input),value:e.modelValue??"",maxlength:e.maxLength,name:e.name,onInput:w,onFocus:H,onBlur:B},null,42,z),e.hint?(a(),o("div",{key:0,class:l(e.field.hint)},h(e.hint),3)):i("",!0)]),u.value&&!e.hideErrorIcon?(a(),o("div",{key:0,class:l(e.field.icon)},[q(L,{filled:"",name:"alert"})],2)):i("",!0)],2),u.value?(a(),o("div",{key:0,class:l(e.field.error)},h(e.error),3)):i("",!0)],2))}}),M="0.81",$="22px",x="_root_8twi1_15",R="_container_8twi1_25",j="_input_8twi1_44",A="_label_8twi1_67",D="_error_8twi1_89",G="_icon_8twi1_95",J="_hint_8twi1_156",K={labelScale:M,inputContentLineHeight:$,root:x,container:R,input:j,label:A,"label-surface":"_label-surface_8twi1_81",error:D,icon:G,"is-active":"_is-active_8twi1_106","has-error":"_has-error_8twi1_117","has-prepend":"_has-prepend_8twi1_121","is-disabled":"_is-disabled_8twi1_125","textarea-root":"_textarea-root_8twi1_134","full-height":"_full-height_8twi1_145",hint:J},O={field:K},W=T(F,[["__cssModules",O]]);export{W as T};

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.