(()=>{"use strict";const e=window.wp.blocks,t=window.wp.blockEditor,r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"flexible-invoices/order-number","version":"1.0.0","title":"Order number","category":"flexible-invoices","icon":"editor-ol-rtl","description":"Elements containing order number connected to invoice","example":{},"supports":{"html":false,"customClassName":false},"textdomain":"flexible-invoices","editorScript":"file:./index.js"}'),n=window.wp.i18n;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(0,e.registerBlockType)(r.name,i(i({},r),{},{title:(0,n.__)("Order number","flexible-invoices"),description:(0,n.__)("Elements containing order number connected to invoice","flexible-invoices"),edit:function(){var e=(0,t.useBlockProps)({className:"fi-text-group fi-block-order-number"});return React.createElement(React.Fragment,null,React.createElement("div",e,React.createElement(t.InnerBlocks,{template:[["flexible-invoices/text",{placeholder:"{OrderNumber}",content:"{OrderNumber}"}]],templateLock:!1,renderAppender:function(){return React.createElement(t.InnerBlocks.ButtonBlockAppender,null)}})))},save:function(e){var r=e.className;return React.createElement(React.Fragment,null,React.createElement("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {OrderNumberBlockBegin} --\x3e"}}),React.createElement("div",{className:r},React.createElement(t.InnerBlocks.Content,null)),React.createElement("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {OrderNumberBlockEnd} --\x3e"}}))}}))})();