(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var l in o)e.o(o,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:o[l]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.i18n,o=window.wp.apiFetch;var l=e.n(o);const r=window.wp.blocks,s=window.wp.blockEditor,a=window.wp.components,n=window.wp.element,i=JSON.parse('{"UU":"wp-full-pay/form"}'),p=window.ReactJSXRuntime;(0,r.registerBlockType)(i.UU,{icon:"money-alt",edit:({attributes:e,setAttributes:o})=>{const r=(0,s.useBlockProps)(),[i,c]=(0,n.useState)([]);return(0,n.useEffect)((()=>{(async()=>{const e=await l()({path:"/wp-full-stripe/v1/block/forms"});c(e)})()}),[]),(0,p.jsx)("div",{...r,children:(0,p.jsx)(a.Placeholder,{label:(0,t.__)("WP Full Pay - Forms","wp-full-stripe-free"),instructions:(0,t.__)("Select a form to display.","wp-full-stripe-free"),children:(0,p.jsx)(a.SelectControl,{label:(0,t.__)("Select a form","wp-full-stripe-free"),options:[{label:(0,t.__)("Select a form","wp-full-stripe-free"),value:""},...i.map((e=>({label:e.name,value:e.shortcode})))],value:e?.shortcode,onChange:e=>o({shortcode:e})})})})},save:()=>null})})();