1import{b as k,a as p,w as C,g as P,h as z,i as r,K as H,E as h,u as e,q as s,k as S,U as T,t as B}from"./c_mtvhGZ.js";import{u as D}from"./AImC4Z4_.js";import{M as E}from"./hSB3w-zq.js";import{b as i,f as n}from"./app-LxRIDceF.js";import"./00Uemgv0.js";const V=s("i",{class:"ti ti-note"},null,-1),W=["placeholder"],A=["disabled"],w="memo",q=k({__name:"WidgetMemo",props:{widget:{}},emits:["updateProps"],setup(f,{expose:g,emit:v}){const x={showHeader:{type:"boolean",default:!0},height:{type:"number",default:100}},o=f,_=v,{widgetProps:l,configure:y}=D(w,x,o,_),t=p(i.state.memo),a=p(!1);let d;const m=()=>{i.set("memo",t.value),a.value=!1},b=()=>{a.value=!0,window.clearTimeout(d),d=window.setTimeout(m,1e3)};return C(()=>i.reactiveState.memo,c=>{t.value=c.value}),g({name:w,configure:y,id:o.widget?o.widget.id:null}),(c,u)=>(P(),z(E,{showHeader:e(l).showHeader,"data-cy-mkw-memo":"",class:"mkw-memo"},{icon:r(()=>[V]),header:r(()=>[H(h(e(n).ts._widgets.memo),1)]),default:r(()=>[s("div",{class:"xevsr"},[S(s("textarea",{"onUpdate:modelValue":u[0]||(u[0]=M=>t.value=M),style:B(`height: ${e(l).height}px;`),class:"xERAz",placeholder:e(n).ts.placeholder,onInput:b},null,46,W),[[T,t.value]]),s("button",{class:"xoa9F _buttonPrimary",disabled:!a.value,onClick:m},h(e(n).ts.save),11,A)],2)]),_:1},8,["showHeader"]))}});export{q as default};
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.