(()=>{"use strict";const t=window.ReactJSXRuntime,{__}=wp.i18n,{registerBlockType:e}=wp.blocks,{RichText:s,InspectorControls:o}=wp.blockEditor,{Button:n,PanelBody:r,SelectControl:c,TextControl:i}=wp.components;e("xgate/latest-posts",{title:__("Latest Posts","xgate"),icon:"excerpt-view",category:"xgate-blocks",attributes:{numberOfPosts:{type:"number",default:3}},edit:function(e){const{attributes:s,setAttributes:o}=e,{numberOfPosts:n}=s;return(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{children:"Latest Posts"}),(0,t.jsx)(i,{value:n,onChange:t=>{o({numberOfPosts:t})}})]})},save:function(){return null}})})();