(()=>{"use strict";const e=window.ReactDOM,t=window.wp.element,n=({attributes:e})=>{const[n,c]=(0,t.useState)(e.initial);return React.createElement(React.Fragment,null,React.createElement("button",{onClick:()=>c(n-e.increment)},"-"),React.createElement("input",{width:"5",type:"number",readOnly:!0,value:n}),React.createElement("button",{onClick:()=>c(n+e.increment)},"+"))};window.addEventListener("load",(function(){document.querySelectorAll(".wp-block-block-development-examples-counter-react-99def1 .counter-contaner").forEach((t=>{const c=JSON.parse(t.dataset.gutenbergAttributes);(0,e.createRoot)(t).render(React.createElement(n,{attributes:c}))}))}),!1)})();