(()=>{"use strict";const e=window.wp.blocks,t=window.wp.element,l=window.wp.blockEditor,a=window.wp.components,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"gutena/range-field-group","version":"1.0.0","title":"Range","parent":["gutena/forms"],"category":"gutena","icon":"admin-settings","description":"Let users select a value within a defined range using a slider.","attributes":{"nameAttr":{"type":"string","default":"gf-input-1"},"fieldLabel":{"type":"string","default":"Label"},"fieldLabelContent":{"type":"string","default":""},"fieldType":{"type":"string","default":"range"},"isRequired":{"type":"boolean","default":false},"displayName":{"type":"string","default":"Name"},"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)(n,{edit:({attributes:e})=>{const a=(0,l.useBlockProps)({className:"wp-block-gutena-field-group"}),n=[["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:n,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:"M32 12V20C32 20.3687 31.702 20.6667 31.3333 20.6667C30.9647 20.6667 30.6667 20.3687 30.6667 20V17.3333H1.33333V20C1.33333 20.3687 1.03533 20.6667 0.666667 20.6667C0.298 20.6667 0 20.3687 0 20V12C0 11.6313 0.298 11.3333 0.666667 11.3333C1.03533 11.3333 1.33333 11.6313 1.33333 12V14.6667H30.6667V12C30.6667 11.6313 30.9647 11.3333 31.3333 11.3333C31.702 11.3333 32 11.6313 32 12Z",fill:"#0DA88C"}))})})})();