(()=>{"use strict";const e=window.wp.blocks,t=window.wp.blockEditor,n=window.wp.i18n,i=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"flexible-invoices/recipient","version":"1.0.0","title":"Recipient","category":"flexible-invoices","icon":"admin-users","description":"Preset of elements containing recipient data","example":{},"supports":{"lock":false,"html":false,"customClassName":false},"textdomain":"flexible-invoices","editorScript":"file:./index.js","render":"file:./render.php"}');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 r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){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 n=t.call(e,"string");if("object"!=o(n))return n;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:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,e.registerBlockType)(i.name,c(c({},i),{},{title:(0,n.__)("Recipient","flexible-invoices"),description:(0,n.__)("Preset of elements containing recipient data","flexible-invoices"),edit:function(){var e=[["flexible-invoices/text",{content:(0,n.__)("Recipient","flexible-invoices"),placeholder:(0,n.__)("Recipient","flexible-invoices"),fontSize:"1.3em",fontWeight:"bold",textColor:"#333"}],["flexible-invoices/text",{content:"{RecipientName}",placeholder:"{RecipientName}",textColor:"#222"}],["flexible-invoices/text",{content:"{RecipientStreet}",placeholder:"{RecipientStreet}",textColor:"#222"}],["flexible-invoices/text",{content:"{RecipientPostalCode}, {RecipientCity}",placeholder:"{RecipientPostalCode}, {RecipientCity}",textColor:"#222"}],["flexible-invoices/text",{content:"{RecipientVAT}",placeholder:"{RecipientVAT}",textColor:"#222"}],["flexible-invoices/text",{content:"{RecipientCountry}",placeholder:"{RecipientCountry}",textColor:"#222"}],["flexible-invoices/text",{content:"{RecipientPhone}",placeholder:"{RecipientPhone}",textColor:"#222"}]],i=(0,t.useBlockProps)({className:"fi-text-group fi-block-recipient"});return React.createElement(React.Fragment,null,React.createElement("div",i,React.createElement(t.InnerBlocks,{template:e,templateLock:!1,renderAppender:function(){return React.createElement(t.InnerBlocks.ButtonBlockAppender,null)}})))},save:function(e){var n=e.className;return React.createElement(React.Fragment,null,React.createElement("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {RecipientBlockBegin} --\x3e"}}),React.createElement("div",{className:n},React.createElement(t.InnerBlocks.Content,null)),React.createElement("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {RecipientBlockEnd} --\x3e"}}))}}))})();