import{b as S,a as p,w as C,h as M,i as P,j as u,K as y,E as h,z as o,u as s,q as T,X as B,I as D,J as V}from"./vue-y3KLWBaS.js";import{u as H}from"./widget-qjKd4HCd.js";import{M as N}from"./MkContainer-6laePfDX.js";import{a as i,i as r,n as j}from"./app-JmgyQoR0.js";const q=e=>(D("data-v-7e41f103"),e=e(),V(),e),z=q(()=>s("i",{class:"ph-sticker ph-bold ph-lg"},null,-1)),E={class:"otgbylcu"},J=["placeholder"],K=["disabled"],w="memo",U=S({__name:"memo",props:{widget:{}},emits:["updateProps"],setup(e,{expose:_,emit:f}){const v={showHeader:{type:"boolean",default:!0}},a=e,g=f,{widgetProps:x,configure:b}=H(w,v,a,g),t=p(i.state.memo),d=p(!1);let n;const l=()=>{i.set("memo",t.value),d.value=!1},I=()=>{d.value=!0,window.clearTimeout(n),n=window.setTimeout(l,1e3)};return C(()=>i.reactiveState.memo,c=>{t.value=c.value}),_({name:w,configure:b,id:a.widget?a.widget.id:null}),(c,m)=>(M(),P(N,{"show-header":o(x).showHeader,class:"mkw-memo"},{header:u(()=>[z,y(h(o(r).ts._widgets.memo),1)]),default:u(()=>[s("div",E,[T(s("textarea",{"onUpdate:modelValue":m[0]||(m[0]=k=>t.value=k),placeholder:o(r).ts.placeholder,onInput:I},null,40,J),[[B,t.value]]),s("button",{disabled:!d.value,class:"_buttonPrimary",onClick:l},h(o(r).ts.save),9,K)])]),_:1},8,["show-header"]))}}),G=j(U,[["__scopeId","data-v-7e41f103"]]);export{G as default};
