"use strict";(globalThis["webpackChunk_[name]"]=globalThis["webpackChunk_[name]"]||[]).push([[699],{699(e,t,o){o.r(t),o.d(t,{default:()=>d});var r=o(609),n=o(393),u=o(898),c=o(730),s=o(790);const a=u.Lz.theme({"&":{height:"200px",width:"600px",background:"#fff"},".cm-scroller":{overflow:"auto"}}),d=e=>{const t=(0,r.useRef)(null),o=(0,r.useRef)(e.value),d=(0,r.useRef)(e.onChange);return(0,r.useEffect)(()=>{const e=t.current,s=u.Lz.updateListener.of(e=>{if(e.docChanged){const t=e.state.doc.toString();d.current(t),(0,r.startTransition)(()=>{document.querySelector(".woocommerce-save-button")?.removeAttribute("disabled")})}}),f=new u.Lz({parent:e,doc:o.current,extensions:[n.oQ,(0,c.AH)(),a,s,(0,u.qf)(".hulk_woo_pcm_wrapper { background-color: orange }")]});return f.focus(),()=>{f.destroy()}},[]),(0,s.jsx)("div",{ref:t})}}}]);