(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,s=window.wp.blockEditor,l=window.wp.components,i=window.wp.element,a=window.ReactJSXRuntime,n=[{attributes:{label:{type:"string",default:""},text:{type:"string",default:""}},save:t=>{const{className:s,attributes:{label:l,text:i}}=t;return i&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(RawHTML,{children:(0,e.sprintf)((0,e.__)('<div class="label">%1$s</div> <div class="text">%2$s</div>',"billy"),l||"",i||(0,e.__)("N/A","billy"))})})}},{attributes:{label:{type:"string",default:""},text:{type:"string",default:""}},save:t=>{const{className:s,attributes:{label:l,text:i}}=t;return i&&(0,a.jsx)("p",{children:(0,a.jsx)(RawHTML,{children:(0,e.sprintf)("<p>"+(0,e.__)("<strong>%1$s</strong> <span>%2$s</span>","billy")+"</p>",l||"",i||(0,e.__)("N/A","billy"))})})}}],r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"billy-blocks/invoice-meta","title":"Invoice Meta Field","icon":"editor-textcolor","category":"billy-blocks","textdomain":"billy","attributes":{"label":{"type":"string","default":""},"text":{"type":"string","default":""}},"supports":{"inserter":false,"reusable":false,"html":false,"className":true},"editorScript":"file:./index.js","render":"file:./render.php"}'),{name:c}=r;(0,t.registerBlockType)({name:c,...r},{edit:function({attributes:{label:t,text:n},setAttributes:r,className:c}){const o=(0,s.useBlockProps)({className:c||""});return(0,a.jsxs)("div",{...o,children:[(0,a.jsxs)(s.InspectorControls,{children:[(0,a.jsx)(l.PanelBody,{title:(0,e.__)("Label","billy"),children:(0,a.jsx)(l.TextControl,{type:"text",className:"label",value:t??"",onChange:e=>{r({label:e})}})}),(0,a.jsx)(l.PanelBody,{title:(0,e.__)("Text","billy"),children:(0,a.jsx)(l.TextControl,{type:"text",className:"text",value:n??"",onChange:e=>{r({text:e})}})})]}),(0,a.jsx)(i.RawHTML,{children:(0,e.sprintf)((0,e.__)('<div class="label">%1$s</div> <div class="text">%2$s</div>',"billy"),t||"",n||(0,e.__)("N/A","billy"))})]})},save:function({attributes:t,className:l}){const{label:n,text:r}=t,c=s.useBlockProps.save({className:l||""});return r&&(0,a.jsx)("div",{...c,children:(0,a.jsx)(i.RawHTML,{children:(0,e.sprintf)((0,e.__)('<div class="label">%1$s</div> <div class="text">%2$s</div>',"billy"),n||"",r||(0,e.__)("N/A","billy"))})})},deprecated:n})})();