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