(()=>{"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/signature","version":"1.0.0","title":"Signature","category":"flexible-invoices","icon":"edit","description":"Signature","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 i(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(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,c(c({},r),{},{title:(0,n.__)("Signature","flexible-invoices"),description:(0,n.__)("Signature","flexible-invoices"),edit:function(){var e=(0,t.useBlockProps)({className:"fi-text-group fi-block-signature"});return React.createElement(React.Fragment,null,React.createElement("div",e,React.createElement(t.InnerBlocks,{template:[["flexible-invoices/text",{content:"{Signature}",placeholder:"{Signature}"}]],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!-- {SignatureBlockBegin} --\x3e"}}),React.createElement("div",{className:r},React.createElement(t.InnerBlocks.Content,null)),React.createElement("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {SignatureBlockEnd} --\x3e"}}))}}))})();