(()=>{var e={184:(e,t)=>{var o;!function(){"use strict";var c={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)){if(o.length){var l=n.apply(null,o);l&&e.push(l)}}else if("object"===r)if(o.toString===Object.prototype.toString)for(var s in o)c.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()}},t={};function o(c){var n=t[c];if(void 0!==n)return n.exports;var r=t[c]={exports:{}};return e[c](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var c in t)o.o(t,c)&&!o.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.blocks,c=window.wp.blockEditor;var n=o(184),r=o.n(n);const l=window.wp.i18n,s=JSON.parse('{"apiVersion":2,"name":"woocommerce/eu-vat-number","version":"1.0.0","title":"Vat Number","parent":["woocommerce/checkout-fields-block"],"category":"woocommerce","icon":"cart","description":"","supports":{"html":false},"textdomain":"woocommerce-eu-vat-number","attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}}}}'),a=window.wp.components,i=({children:t,stepHeadingContent:o})=>(0,e.createElement)("div",{className:"wc-block-components-checkout-step__heading"},(0,e.createElement)("h2",{"aria-hidden":"true",className:"wc-block-components-checkout-step__title wc-block-components-title"},t),!!o&&(0,e.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},o)),p=({attributes:t,setAttributes:o,className:n="",children:s})=>{const{title:p="",description:u="",showStepNumber:m=!0}=t,b=(0,c.useBlockProps)({className:r()("wc-block-components-checkout-step",n,{"wc-block-components-checkout-step--with-step-number":m})});return(0,e.createElement)("div",{...b},(0,e.createElement)(c.InspectorControls,null,(0,e.createElement)(a.PanelBody,{title:(0,l.__)("Form Step Options","flexible-invoices")},(0,e.createElement)(a.ToggleControl,{label:(0,l.__)("Show step number","flexible-invoices"),checked:m,onChange:()=>o({showStepNumber:!m})}))),(0,e.createElement)(i,null,(0,e.createElement)(c.PlainText,{className:"",value:p})),(0,e.createElement)("div",{className:"wc-block-components-checkout-step__container"},(0,e.createElement)("p",{className:"wc-block-components-checkout-step__description"},(0,e.createElement)(c.PlainText,{className:u?"":"wc-block-components-checkout-step__description-placeholder",value:u,placeholder:(0,l.__)("Optional text for this form step.","flexible-invoices"),onChange:e=>o({description:e})})),(0,e.createElement)("div",{className:"wc-block-components-checkout-step__content"},s)))};(0,t.registerBlockType)(s,{edit:t=>{const o=(0,c.useBlockProps)();return(0,e.createElement)("div",{...o},(0,e.createElement)(p,{attributes:t.attributes,setAttributes:t.setAttributes,className:r()("wc-block-checkout__vat-input",t.attributes?.className)},(0,e.createElement)("div",{className:"wc-block-components-text-input"},(0,e.createElement)("input",{type:"text","aria-label":"VAT Number",id:"woocommerce-eu-vat-number"}),(0,e.createElement)("label",{htmlFor:"woocommerce-eu-vat-number"},(0,l.__)("VAT Number","flexible-invoices")))))},attributes:{...s.attributes,...(({defaultTitle:e="",defaultDescription:t="",defaultShowStepNumber:o=!0})=>({title:{type:"string",default:e},description:{type:"string",default:t},showStepNumber:{type:"boolean",default:o}}))({defaultTitle:(0,l.__)("VAT Number","flexible-invoices"),defaultDescription:"",defaultShowStepNumber:!0})},save:()=>(0,e.createElement)("div",{...c.useBlockProps.save()},(0,e.createElement)(c.InnerBlocks.Content,null))})})()})();