(()=>{"use strict";const e=window.wp.blocks,t=window.wp.element,o=window.wp.blockEditor,r=window.wp.components,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"gutena/dropdown-field-group","version":"1.0.0","title":"Dropdown","parent":["gutena/forms"],"category":"gutena","icon":"menu","description":"Provide a list of selectable options in a compact dropdown menu.","attributes":{"nameAttr":{"type":"string","default":"gf-input-1"},"fieldLabel":{"type":"string","default":"Label"},"fieldLabelContent":{"type":"string","default":""},"fieldType":{"type":"string","default":"select"},"isRequired":{"type":"boolean","default":false},"displayName":{"type":"string","default":"Name"},"selectOptions":{"type":"array","default":["Big","Medium","Small"]},"optionsInline":{"type":"boolean","default":false},"multiSelect":{"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)(n,{edit:({attributes:e})=>{const r=(0,o.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",r,(0,t.createElement)(o.InnerBlocks,{template:n,allowedBlocks:["core/columns","core/group","core/image","core/paragraph"]}))},save:()=>{const e=o.useBlockProps.save({className:"wp-block-gutena-field-group"});return(0,t.createElement)("div",e,(0,t.createElement)(o.InnerBlocks.Content,null))},icon:()=>(0,t.createElement)(r.Icon,{icon:()=>(0,t.createElement)("svg",{style:{fill:"transparent"},xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none"},(0,t.createElement)("path",{d:"M21.736 21.3333H3.33337",stroke:"#0DA88C",strokeWidth:"1.33333",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M3.33337 6.66666H33.3334V21.3333H24.772",stroke:"#0DA88C",strokeWidth:"1.33333",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M28.778 28.2798L26.8856 25.7823L28.5849 25.447C28.8425 25.3962 28.9333 25.0723 28.7368 24.8949L21.86 18.7175C21.6365 18.5154 21.2784 18.7115 21.3312 19.0106L22.9017 28.0129C22.9449 28.2677 23.2609 28.3662 23.4429 28.1841L24.8029 26.8218L26.5016 29.8055C26.5961 29.9701 26.8072 30.0149 26.9585 29.9125L28.7016 28.7382C28.8546 28.6355 28.8885 28.4253 28.778 28.2798Z",stroke:"#0DA88C",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M24.9933 15.8624C25.1485 16.0761 25.4699 16.0778 25.6266 15.8624L28.2411 12.6348C28.4103 12.4032 28.2722 12.0138 27.9245 12.0138L22.6953 12.0141C22.5602 12.0141 22.425 12.105 22.415 12.134C22.2787 12.2718 22.2687 12.4853 22.3787 12.635L24.9933 15.8624Z",stroke:"#0DA88C",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M17.332 21.1893V6.66666",stroke:"#0DA88C",strokeWidth:"1.33333",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}))})})})();