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