(()=>{"use strict";var e,t={969:()=>{const e=window.wp.blocks,t=window.wp.components,n=window.wp.blockEditor;function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},l.apply(null,arguments)}(0,e.registerBlockType)("block-development-examples/counter-alpine-99def1",{edit:({attributes:e,setAttributes:l})=>React.createElement(React.Fragment,null,React.createElement("div",(0,n.useBlockProps)(),React.createElement("p",null,"Alpine Counter"),React.createElement("span",null,"Initial value"),React.createElement(t.__experimentalNumberControl,{placeholder:"Enter the initial value",value:e.initial,onChange:e=>l({initial:e})}),React.createElement("span",null,"Incremental value"),React.createElement(t.__experimentalNumberControl,{placeholder:"Enter the incremental value",value:e.increment,onChange:e=>l({increment:e})}))),save:({attributes:e})=>React.createElement("div",l({},n.useBlockProps.save(),{"x-data":`{ count: ${e.initial} }`}),React.createElement("p",null,"Alpine Counter"),React.createElement("details",null,React.createElement("summary",null,"Attributes"),React.createElement("pre",null,React.createElement("small",null,JSON.stringify(e,null,2)))),React.createElement("br",null),React.createElement("button",{"x-on:click":`count -= ${e.increment}`},"-"),React.createElement("input",{width:"5",type:"number","x-bind:value":"count"}),React.createElement("button",{"x-on:click":`count += ${e.increment}`},"+"))})}},n={};function l(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,l),a.exports}l.m=t,e=[],l.O=(t,n,r,a)=>{if(!n){var c=1/0;for(s=0;s<e.length;s++){n=e[s][0],r=e[s][1],a=e[s][2];for(var i=!0,o=0;o<n.length;o++)(!1&a||c>=a)&&Object.keys(l.O).every((e=>l.O[e](n[o])))?n.splice(o--,1):(i=!1,a<c&&(c=a));if(i){e.splice(s--,1);var u=r();void 0!==u&&(t=u)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[n,r,a]},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={441:0,93:0};l.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,c=n[0],i=n[1],o=n[2],u=0;if(c.some((t=>0!==e[t]))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(o)var s=o(l)}for(t&&t(n);u<c.length;u++)a=c[u],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(s)},n=self.webpackChunk_block_development_examples_interactive_blocks_demos_99def1=self.webpackChunk_block_development_examples_interactive_blocks_demos_99def1||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=l.O(void 0,[93],(()=>l(969)));r=l.O(r)})();