PageSourceSearch

https://modrinth.com/_nuxt/m7MBEAIv.js

js modrinth.com collected 2026-09-24 09:06:21 UTC 2,479 bytes, 1 lines download raw bytes

1import{d as z,aB as w,bb as x,c as k,o as C,m as B,be as $,bc as A,k as r,z as V,bL as M,n as l,b as s,ac as n,aw as c,aE as d,Q as S}from"./DvgxvNL0.js";const I={class:"flex size-5 shrink-0 items-center justify-center text-secondary opacity-60 transition-colors [&>svg]:size-5 group-focus-within/input:text-contrast group-focus-within/input:opacity-100","aria-hidden":"true"},R=["id","value","placeholder","disabled","readonly","name","autocomplete","autocorrect","autocapitalize","spellcheck","maxlength","rows","aria-invalid"],j={class:"flex shrink-0 items-start gap-2"},F=z({inheritAttrs:!1,__name:"Textarea",props:d({appearance:{default:"surface"},autocomplete:{},autocapitalize:{},autocorrect:{},controlClass:{},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},id:{},inputAttrs:{},inputClass:{},maxlength:{},name:{},placeholder:{},readonly:{type:Boolean,default:!1},resize:{default:"none"},rows:{default:3},spellcheck:{type:Boolean},wrapperClass:{}},{modelValue:{},modelModifiers:{}}),emits:d(["input"],["update:modelValue"]),setup(e,{expose:u,emit:m}){const o=w(e,"modelValue"),t=x(),f=e,h=m,i=S(),p=k(()=>({none:"resize-none",vertical:"resize-y",both:"resize"})[f.resize]);u({focus:()=>i.value?.focus()});function y(){const{class:a,style:b,...v}=t;return v}function g(a){o.value=a.target.value,h("input",a)}return(a,b)=>(C(),B($,{appearance:e.appearance,class:V([e.wrapperClass,r(t).class]),disabled:e.disabled,invalid:e.error,multiline:"",style:A(r(t).style)},M({default:l(()=>[s("textarea",c(c(y(),e.inputAttrs??{}),{id:e.id,ref_key:"inputRef",ref:i,value:o.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,autocomplete:e.autocomplete,autocorrect:e.autocorrect,autocapitalize:e.autocapitalize,spellcheck:e.spellcheck,maxlength:e.maxlength,rows:e.rows,"aria-invalid":e.error||void 0,class:["min-h-0 min-w-0 w-full flex-1 self-stretch appearance-none border-0 bg-transparent p-0 font-medium text-base text-primary shadow-none outline-none placeholder:text-secondary focus:text-contrast focus:ring-0",[e.inputClass,e.controlClass,p.value,e.disabled?"cursor-not-allowed":""]],onInput:g}),null,16,R)]),_:2},[a.$slots.leading?{name:"leading",fn:l(()=>[s("span",I,[n(a.$slots,"leading")])]),key:"0"}:void 0,a.$slots.trailing||a.$slots.right?{name:"trailing",fn:l(()=>[s("span",j,[n(a.$slots,"trailing"),n(a.$slots,"right")])]),key:"1"}:void 0]),1032,["appearance","class","disabled","invalid","style"]))}});export{F as _};

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.