(()=>{"use strict";var e,o={311(){const e=window.wp.blocks,o=window.wp.components,t=window.wp.blockEditor,r=window.wp.i18n,n=JSON.parse('{"UU":"pronamic/form-label"}'),a=window.ReactJSXRuntime;(0,e.registerBlockType)(n.UU,{edit:({attributes:e,setAttributes:n})=>{const{tagName:l,content:s}=e,i=(0,t.useBlockProps)();return(0,a.jsxs)("div",{...i,children:[(0,a.jsx)(t.InspectorControls,{children:(0,a.jsxs)(o.PanelBody,{title:(0,r.__)("Settings","pronamic-forms"),children:[(0,a.jsx)(o.SelectControl,{label:(0,r.__)("HTML element","pronamic-forms"),options:[{label:(0,r.__)("Default (<label>)","pronamic-forms"),value:"label"},{label:"<span>",value:"span"}],value:l,onChange:e=>n({tagName:e})}),"label"===l&&(0,a.jsx)(o.TextControl,{autoComplete:"off",label:(0,r.__)("For","pronamic-forms"),value:e.htmlFor,onChange:e=>{n({htmlFor:e})}})]})}),(0,a.jsx)(t.RichText,{tagName:"label",value:e.content,onChange:e=>n({content:e}),placeholder:(0,r.__)("Enter label…","pronamic-forms")})]})},save({attributes:e}){const o=t.useBlockProps.save(),r="label"===e.tagName?e.htmlFor:null;return(0,a.jsx)("div",{...o,children:(0,a.jsx)(t.RichText.Content,{tagName:e.tagName,value:e.content,for:""===r?null:r})})}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var l=1/0;for(p=0;p<e.length;p++){for(var[t,n,a]=e[p],s=!0,i=0;i<t.length;i++)(!1&a||l>=a)&&Object.keys(r.O).every(e=>r.O[e](t[i]))?t.splice(i--,1):(s=!1,a<l&&(l=a));if(s){e.splice(p--,1);var c=n();void 0!==c&&(o=c)}}return o}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[t,n,a]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={157:0,449:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,[l,s,i]=t,c=0;if(l.some(o=>0!==e[o])){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(i)var p=i(r)}for(o&&o(t);c<l.length;c++)a=l[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(p)},t=globalThis.webpackChunkpronamic_pay=globalThis.webpackChunkpronamic_pay||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var n=r.O(void 0,[449],()=>r(311));n=r.O(n)})();