System.register(["./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785"],(function(e,t){"use strict";var l,a,o,r,s,d,n,i,u,c,p,f,v,y,m,h,x,g,w,_,b;return{setters:[e=>{l=e.k,a=e.aq,o=e.ar,r=e.x,s=e.r,d=e.c,n=e.$,i=e.Z,u=e.a0,c=e.H,p=e.S,f=e.a9,v=e._,y=e.q,m=e.s,h=e.l,x=e.v},e=>{g=e.u,w=e.a5,_=e.b},e=>{b=e.c}],execute:function(){var t=document.createElement("style");t.textContent=".placeholder[data-v-1d0d33d8]{position:absolute;top:0;left:0;display:flex;flex-direction:column;width:100%;height:100%;padding:12px 16px 0;color:#999;line-height:18px;cursor:text}\n/*$vite$:1*/",document.head.appendChild(t);const $={class:"relative w-full"},k={class:"leading-18px"},C=l({__name:"index",props:{rows:{type:Number,default:4},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},name:{type:String,default:""}},emits:["blur"],setup(e,{emit:t}){const l=t,b=a(),C=!!o().default,S=g(),j=r(),R=()=>{j.value.focus()},q=s(!1),z=()=>{q.value=!0},B=()=>{q.value=!1,l("blur")},E=d((()=>!!C&&!b.value&&!q.value));return(t,l)=>{const a=_,o=w;return n(),i("div",$,[u(o,{trigger:"focus",placement:"top-start","display-directive":"show",disabled:!C,style:c({"--n-color":p(S).primaryColor,"--n-text-color":"#fff"})},{trigger:f((()=>[u(a,m({ref_key:"inputRef",ref:j},t.$attrs,{type:"textarea",placeholder:e.placeholder,"input-props":{name:e.name,spellcheck:!1},autosize:{minRows:e.rows,maxRows:e.rows},readonly:e.readonly,onFocus:z,onBlur:B}),null,16,["placeholder","input-props","autosize","readonly"])])),default:f((()=>[v("div",k,[y(t.$slots,"default",{},void 0,!0)])])),_:3},8,["disabled","style"]),h(v("div",{class:"placeholder",onClick:R},[y(t.$slots,"default",{},void 0,!0)],512),[[x,p(E)]])])}}});e("_",b(C,[["__scopeId","data-v-1d0d33d8"]]))}}}));
