(()=>{"use strict";const e=window.wp.blocks,t=window.wp.element,l=window.wp.blockEditor,a=window.wp.components,o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"gutena/text-field-group","version":"1.0.0","title":"Text","parent":["gutena/forms"],"category":"gutena","icon":"text","description":"Collect short text inputs such as names, titles, or single-line responses.","attributes":{"nameAttr":{"type":"string","default":"gf-input-1"},"fieldLabel":{"type":"string","default":"Label"},"fieldLabelContent":{"type":"string","default":""},"fieldType":{"type":"string","default":"text"},"isRequired":{"type":"boolean","default":false},"displayName":{"type":"string","default":"Name"},"placeholder":{"type":"string","default":""},"defaultValue":{"type":"string","default":""},"autocomplete":{"type":"boolean","default":false},"autoCapitalize":{"type":"boolean","default":false},"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)(o,{edit:({attributes:e})=>{const a=(0,l.useBlockProps)({className:"wp-block-gutena-field-group"}),o=[["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:o,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",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0864 23.6049H19.2592C19.8589 23.6049 20.3456 24.0917 20.3456 24.6914C20.3456 25.2911 19.8589 25.7778 19.2592 25.7778H12.7407C12.141 25.7778 11.6543 25.2911 11.6543 24.6914C11.6543 24.0917 12.141 23.6049 12.7407 23.6049H14.9135V8.39507H8.39501V10.5679C8.39501 11.1676 7.90829 11.6543 7.30859 11.6543C6.70888 11.6543 6.22217 11.1676 6.22217 10.5679V7.30865C6.22217 6.70895 6.70888 6.22223 7.30859 6.22223H24.6913C25.291 6.22223 25.7777 6.70895 25.7777 7.30865V10.5679C25.7777 11.1676 25.291 11.6543 24.6913 11.6543C24.0916 11.6543 23.6049 11.1676 23.6049 10.5679V8.39507H17.0864V23.6049Z",fill:"#0DA88C"}))})})})();