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