iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ndlsearch.ndl.go.jp/_nuxt/B96Tm3da.js
import{d as h,c as i,o as l,b as t,w as n,a3 as V,x as p,h as m,j as g,e as s,W as k,cS as q,e2 as v,B as L,A as O,m as z}from"./CW2SsgDF.js";import{_ as A}from"./xauzgi5g.js";const C=h({__name:"UiPartsTextarea",props:{id:{},modelValue:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},required:{type:Boolean},lazy:{type:Boolean},label:{},ariaLabel:{},name:{},labelWidth:{},rows:{default:2},focusOut:{type:Boolean},displayAsLabel:{type:Boolean}},emits:["update:modelValue","update:focusOut"],setup(y,{emit:_}){const r=y,d=_,a=i({get:()=>r.modelValue,set:e=>d("update:modelValue",e)}),c=i({get:()=>r.focusOut,set:e=>d("update:focusOut",e)});return(e,o)=>{const b=v,f=L,B=A,w=O;return l(),t(w,{class:"ui-parts-textarea","vertical-align":"top","mobile-direction":"column","mobile-gap":"4"},{default:n(()=>[e.label?(l(),t(b,{key:0,for:e.id,"desktop-width":e.labelWidth,required:e.required},{option:n(()=>[V(e.$slots,"help",{},void 0,!0)]),default:n(()=>[p(m(e.label)+" ",1)]),_:3},8,["for","desktop-width","required"])):g("",!0),e.displayAsLabel?(l(),t(f,{key:1,id:e.id},{default:n(()=>[p(m(s(a)),1)]),_:1},8,["id"])):(l(),t(B,{key:2,id:e.id,modelValue:s(a),"onUpdate:modelValue":o[0]||(o[0]=u=>k(a)?a.value=u:null),placeholder:e.placeholder,disabled:e.disabled,readonly:"readonly"in e?e.readonly:s(q),required:e.required,lazy:e.lazy,name:e.name,"aria-label":e.ariaLabel,rows:e.rows,"flex-grow":"",onBlur:o[1]||(o[1]=u=>c.value=!0)},null,8,["id","modelValue","placeholder","disabled","readonly","required","lazy","name","aria-label","rows"]))]),_:3})}}}),T=z(C,[["__scopeId","data-v-811a0a87"]]);export{T as _};