(()=>{"use strict";const e=window.wp.i18n,n=window.wp.blocks,i=window.wp.blockEditor,s=window.wp.components,t=window.wp.serverSideRender,o=window.ReactJSXRuntime,l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"billy-blocks/invoice-date","title":"Invoice Date","icon":"calendar-alt","category":"billy-blocks","textdomain":"billy","supports":{"inserter":false,"reusable":false,"html":false},"editorScript":"file:./index.js","render":"file:./render.php"}'),{name:r}=l;(0,n.registerBlockType)({name:r,...l},{edit:function(){const n=(0,i.useBlockProps)();return(0,o.jsxs)("div",{...n,children:[(0,o.jsx)(i.InspectorControls,{children:(0,o.jsx)(s.PanelBody,{title:(0,e.__)("Info","billy"),children:(0,o.jsx)("div",{className:"components-notice is-warning",children:(0,o.jsx)("div",{className:"components-notice__content",children:(0,e.sprintf)((0,e.__)("Due to legal requirements in some countries, autogenerated data like %s can't be modified anymore after an invoice has been created in the system!","billy"),(0,e.__)("Date","billy"))})})})}),(0,o.jsx)(s.Disabled,{children:(0,o.jsx)(t.ServerSideRender,{block:"billy-blocks/invoice-date"})})]})},save:function(){return null}})})();