(()=>{"use strict";const e=window.wp.blocks,t=window.wp.blockEditor,o=window.wp.i18n,r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"flexible-invoices/customer","version":"1.0.0","title":"Customer","description":"Preset of elements containing customer data","category":"flexible-invoices","icon":"businessman","example":{},"supports":{"html":false,"customClassName":false},"textdomain":"flexible-invoices","editorScript":"file:./index.js"}');function n(e){return n="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},n(e)}function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){i(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(e,t,o){return(t=function(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}(0,e.registerBlockType)(r.name,c(c({},r),{},{title:(0,o.__)("Customer","flexible-invoices"),description:(0,o.__)("Preset of elements containing customer data","flexible-invoices"),edit:function(){var e=[["flexible-invoices/text",{content:(0,o.__)("Customer","flexible-invoices"),placeholder:(0,o.__)("Customer","flexible-invoices"),fontSize:"1.3em",fontWeight:"bold",textColor:"#333"}],["flexible-invoices/text",{content:"{CustomerName}",placeholder:"{CustomerName}",textColor:"#222"}],["flexible-invoices/text",{content:"{CustomerStreet}",placeholder:"{CustomerStreet}",textColor:"#222"}],["flexible-invoices/text",{content:"{CustomerPostalCode}, {CustomerCity}",placeholder:"{CustomerPostalCode}, {CustomerCity}",textColor:"#222"}],["flexible-invoices/text",{content:"{CustomerCountry}",placeholder:"{CustomerPostalCode}",textColor:"#222"}],["flexible-invoices/text",{content:"{CustomerVAT}",placeholder:"{CustomerVAT}",textColor:"#222"}],["flexible-invoices/text",{content:"{CustomerPhone}",placeholder:"{CustomerCountry}",textColor:"#222"}],["flexible-invoices/text",{content:"{CustomerEmail}",placeholder:"{CustomerPhone}",textColor:"#222"}]],r=(0,t.useBlockProps)({className:"fi-text-group fi-block-customer"});return React.createElement(React.Fragment,null,React.createElement("div",r,React.createElement(t.InnerBlocks,{template:e,templateLock:!1,renderAppender:function(){return React.createElement(t.InnerBlocks.ButtonBlockAppender,null)}})))},save:function(e){var o=e.className;return React.createElement(React.Fragment,null,React.createElement("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {CustomerBlockBegin} --\x3e"}}),React.createElement("div",{className:o},React.createElement(t.InnerBlocks.Content,null)),React.createElement("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {CustomerBlockEnd} --\x3e"}}))}}))})();