!function(){var t,n,e,o,a,r,l,i,m,p,u,c;t=window.wp,n=window.wp.blocks,e=window.wp.components,o=window.wp.blockEditor,a=window.wp.element,r=a.createElement,l=a.Fragment,i=o.InspectorControls,m=e.Button,p=e.Placeholder,u=e.TextControl,c=t.serverSideRender,n.registerBlockType("wpayme-pay/payment-form",{title:wpayme_payment_form.title,icon:"money",category:"wpayme-pay",attributes:{amount:{type:"string"}},supports:{html:!1},edit:function(t){var n=t.attributes.amount,e=t.attributes&&parseInt(n)>0;function o(n){t.setAttributes({amount:n})}return r(l,null,r(i,null,r(l,null,r(u,{type:"number",step:"any",label:wpayme_payment_form.label_amount,value:n,onChange:o}))),!e&&r(p,{label:wpayme_payment_form.title,icon:"money"},r(l,null,r(u,{type:"number",step:"any",label:wpayme_payment_form.label_amount,onChange:function(t){},onBlur:function(){o(event.target.value)}}),r("div",{style:{width:"100%"}},r(m,{isPrimary:!0},r(l,null,wpayme_payment_form.label_add_form))))),e&&r(c,{block:"wpayme-pay/payment-form",attributes:t.attributes}))},save:function(){return null}})}();