(()=>{"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{attributes:{label:s,text:l}}=t;return l&&(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"),s||"",l||(0,e.__)("N/A","billy"))})})}},{attributes:{label:{type:"string",default:""},text:{type:"string",default:""}},save:t=>{const{attributes:{label:s,text:l}}=t;return l&&(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>",s||"",l||(0,e.__)("N/A","billy"))})})}}],r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"billy-blocks/quote-meta","title":"Quote 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"}'),{name:o}=r;(0,t.registerBlockType)({name:o,...r},{edit:function({attributes:{label:t,text:n},setAttributes:r,className:o}){const c=(0,s.useBlockProps)({className:o||""});return(0,a.jsxs)("div",{...c,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,o=s.useBlockProps.save({className:l||""});return r&&(0,a.jsx)("div",{...o,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})})();