(()=>{"use strict";const e=window.wp.blocks,t=window.wp.element,l=window.wp.blockEditor,a=window.wp.components,r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"gutena/number-field-group","version":"1.0.0","title":"Number","parent":["gutena/forms"],"category":"gutena","icon":"calculator","description":"Capture numeric values like quantities, ages, or reference numbers with validation.","attributes":{"nameAttr":{"type":"string","default":"gf-input-1"},"fieldLabel":{"type":"string","default":"Label"},"fieldLabelContent":{"type":"string","default":""},"fieldType":{"type":"string","default":"number"},"isRequired":{"type":"boolean","default":false},"displayName":{"type":"string","default":"Name"},"placeholder":{"type":"string","default":""},"defaultValue":{"type":"string","default":""},"errorRequiredMsg":{"type":"string","default":"Field is required"},"errorInvalidInputMsg":{"type":"string","default":"Input is not valid"},"description":{"type":"string","default":""},"settings":{"type":"object","default":{}}},"supports":{"__experimentalSettings":true,"align":["wide","full"],"html":false,"spacing":{"margin":true,"padding":true,"blockGap":true},"__experimentalLayout":true},"textdomain":"gutena-forms","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');(0,e.registerBlockType)(r,{edit:({attributes:e})=>{const a=(0,l.useBlockProps)({className:"wp-block-gutena-field-group"}),r=[["core/group",{layout:{type:"flex",orientation:"vertical",className:"gutena-field-group-row"}},[["gutena/field-label",{level:3,content:e.fieldLabelContent,placeholder:e.fieldLabel,className:"heading-input-label-gutena",htmlFor:""===e.fieldLabelContent?"":e.fieldLabelContent.toLowerCase().replace(/ /g,"_"),lock:{remove:!0,move:!0}}],["gutena/form-field",{fieldType:e.fieldType,fieldName:e.fieldLabelContent,nameAttr:""===e.fieldLabelContent?"":e.fieldLabelContent.toLowerCase().replace(/ /g,"_"),placeholder:e.placeholder,textAreaRows:e.textAreaRows,isRequired:e.isRequired,lock:{remove:!0,move:!0}}]]],["core/paragraph",{className:"gutena-forms-field-error-msg",lock:{remove:!0,move:!0}}]];return(0,t.createElement)("div",a,(0,t.createElement)(l.InnerBlocks,{template:r,allowedBlocks:["core/columns","core/group","core/image","core/paragraph"]}))},save:()=>{const e=l.useBlockProps.save({className:"wp-block-gutena-field-group"});return(0,t.createElement)("div",e,(0,t.createElement)(l.InnerBlocks.Content,null))},icon:()=>(0,t.createElement)(a.Icon,{icon:()=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,t.createElement)("path",{d:"M24.2384 15.7714H22.9045V14.5672L26.7025 10.9174H20.6813V9.30559H28.9998V10.7692L25.3315 14.2708C27.6103 14.5487 29.3333 16.0864 29.3333 18.4949C29.3333 21.1998 27.2954 22.9228 24.5719 22.9228C21.9411 22.9228 20.0514 21.311 20.0514 18.5319H21.8485C21.8485 20.2735 22.923 21.2924 24.609 21.2924C26.3505 21.2924 27.4806 20.1808 27.4806 18.4578C27.4806 16.846 26.369 15.7714 24.2384 15.7714Z",fill:"#0DA88C"}),(0,t.createElement)("path",{d:"M18.66 22.6819L9.61894 22.7005V21.3109L13.9357 17.5871C16.1033 15.7158 16.7147 14.808 16.7147 13.3815C16.7147 11.6955 15.7513 10.6951 14.1395 10.6951C12.4906 10.6951 11.416 11.8993 11.379 13.8076H9.56335C9.61893 10.9359 11.4346 9.06473 14.158 9.06473C16.8444 9.06473 18.5674 10.6951 18.5674 13.2703C18.5674 15.1786 17.6225 16.531 15.2511 18.5875L12.4721 20.996H18.66V22.6819Z",fill:"#0DA88C"}),(0,t.createElement)("path",{d:"M5.4827 10.9359H2.66663V9.30559H7.22422V22.7005H5.4827V10.9359Z",fill:"#0DA88C"}))})})})();