(()=>{"use strict";const e=window.wp.blocks,t=window.React,n=window.wp.blockEditor,o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"flexible-invoices/document-qr-code","version":"1.0.0","title":"KSeF QR Code","category":"flexible-invoices","icon":"welcome-view-site","description":"KSeF QR Code.","example":{},"supports":{"html":false,"customClassName":false},"textdomain":"ksef-for-flexible-invoices","editorScript":"file:./index.js"}'),l=window.wp.i18n;(0,e.registerBlockType)(o.name,{...o,title:(0,l.__)("KSeF QR Code","ksef-for-flexible-invoices"),description:(0,l.__)("KSeF QR Code","ksef-for-flexible-invoices"),edit:function(){const e=(0,n.useBlockProps)({className:"fi-text-group fi-block-document-qr-code"});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{...e},(0,t.createElement)(n.InnerBlocks,{template:[["flexible-invoices/text",{textAlign:"center",fontWeight:"bold",fontSize:"1.5em",placeholder:"{KSeFDocumentQRCode}",content:"{KSeFDocumentQRCode}"}]],templateLock:!1,renderAppender:()=>(0,t.createElement)(n.InnerBlocks.ButtonBlockAppender,null)})))},save:function({className:e}){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {KSeFQRCodeBegin} --\x3e"}}),(0,t.createElement)("div",{className:e},(0,t.createElement)(n.InnerBlocks.Content,null)),(0,t.createElement)("div",{dangerouslySetInnerHTML:{__html:"\x3c!-- {KSeFQRCodeEnd} --\x3e"}}))}})})();