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