1import{b as _,a as c,w as k,g as C,h as H,j as i,s as o,k as P,p as z,q as s,S as B,B as p,H as T}from"./BI8qgwQJ.js";import{u as D}from"./ekSX7_HF.js";import{M as S}from"./DKNgDMmf.js";import{a1 as n,i as g}from"./app-BAclpbpz.js";import"./BTqQ_sdn.js";const V=["disabled"],w="memo",j=_({__name:"WidgetMemo",props:{widget:{}},emits:["updateProps"],setup(v,{expose:h,emit:f}){const x={showHeader:{type:"boolean",default:!0},height:{type:"number",default:100}},a=v,M=f,{widgetProps:m,configure:y}=D(w,x,a,M),e=c(n.s.memo),r=c(!1);let l;const d=()=>{n.set("memo",e.value),r.value=!1},W=()=>{r.value=!0,window.clearTimeout(l),l=window.setTimeout(d,1e3)};return k(()=>n.r.memo,u=>{e.value=u.value}),h({name:w,configure:y,id:a.widget?a.widget.id:null}),(u,t)=>(H(),C(S,{showHeader:s(m).showHeader,"data-cy-mkw-memo":"",class:"mkw-memo"},{icon:i(()=>t[1]||(t[1]=[o("i",{class:"ph-note ph-bold ph-lg"},null,-1)])),header:i(()=>[T(p(s(g).ts._widgets.memo),1)]),default:i(()=>[o("div",{class:"WidgetMemo-root-evsr"},[P(o("textarea",{"onUpdate:modelValue":t[0]||(t[0]=b=>e.value=b),style:z(`height: ${s(m).height}px;`),class:"WidgetMemo-textarea-ERAz",onInput:W},null,38),[[B,e.value]]),o("button",{class:"WidgetMemo-save-oa9F _buttonPrimary",disabled:!r.value,onClick:d},p(s(g).ts.save),11,V)],2)]),_:1},8,["showHeader"]))}});export{j 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.