(()=>{"use strict";const e=window.wp.i18n,a=window.wp.blocks,l=window.wp.blockEditor,n=window.wp.components,t=JSON.parse('{"apiVersion":3,"name":"vk-booking-manager/menu-search-field-keyword","title":"Keyword search field","parent":["vk-booking-manager/menu-search"],"category":"widgets","icon":"editor-italic","textdomain":"vk-booking-manager","usesContext":["vk-booking-manager/menuSearchTargetId"],"attributes":{"label":{"type":"string","default":"keyword"},"placeholder":{"type":"string","default":""}},"supports":{"customClassName":false,"html":false},"editorScript":"file:./index.js"}'),o=window.ReactJSXRuntime;(0,a.registerBlockType)(t,{edit:({attributes:a,setAttributes:s})=>{const i=(0,l.useBlockProps)({className:"vkbm-menu-search__field"}),r=a.label||t.attributes.label.default;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.InspectorControls,{children:(0,o.jsxs)(n.PanelBody,{title:(0,e.__)("field settings","vk-booking-manager"),children:[(0,o.jsx)(n.TextControl,{label:(0,e.__)("label","vk-booking-manager"),value:a.label,onChange:e=>s({label:e})}),(0,o.jsx)(n.TextControl,{label:(0,e.__)("placeholder","vk-booking-manager"),value:a.placeholder,onChange:e=>s({placeholder:e})})]})}),(0,o.jsxs)("div",{...i,children:[(0,o.jsx)("span",{className:"vkbm-menu-search__field-label",children:r}),(0,o.jsx)("div",{className:"vkbm-menu-search__field-preview",children:(0,e.__)("Keyword input field","vk-booking-manager")})]})]})},save:()=>null})})();