(()=>{"use strict";var e={n:o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return e.d(t,{a:t}),t},d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,t=window.wp.serverSideRender;var n=e.n(t);const a=window.wp.components,l=window.wp.blockEditor,r=window.ReactJSXRuntime,s=JSON.parse('{"UU":"aiovg/search"}');(0,o.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:o}){const{template:t,keyword:s,category:i,tag:c,sort:g,search_button:_,reset_button:b,target:d}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.InspectorControls,{children:(0,r.jsxs)(a.PanelBody,{title:aiovg_blocks.i18n.general_settings,className:"aiovg-block-panel",children:[(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.SelectControl,{label:aiovg_blocks.i18n.select_template,value:t,options:[{label:aiovg_blocks.i18n.vertical,value:"vertical"},{label:aiovg_blocks.i18n.horizontal,value:"horizontal"}],onChange:e=>o({template:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.ToggleControl,{label:aiovg_blocks.i18n.search_by_keywords,checked:s,onChange:()=>o({keyword:!s}),__nextHasNoMarginBottom:!0})}),(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.ToggleControl,{label:aiovg_blocks.i18n.search_by_categories,checked:i,onChange:()=>o({category:!i}),__nextHasNoMarginBottom:!0})}),(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.ToggleControl,{label:aiovg_blocks.i18n.search_by_tags,checked:c,onChange:()=>o({tag:!c}),__nextHasNoMarginBottom:!0})}),(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.ToggleControl,{label:aiovg_blocks.i18n.sort_by_dropdown,checked:g,onChange:()=>o({sort:!g}),__nextHasNoMarginBottom:!0})}),(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.ToggleControl,{label:aiovg_blocks.i18n.search_button,checked:_,onChange:()=>o({search_button:!_}),__nextHasNoMarginBottom:!0})}),(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.ToggleControl,{label:aiovg_blocks.i18n.reset_button,checked:b,onChange:()=>o({reset_button:!b}),__nextHasNoMarginBottom:!0})}),(0,r.jsx)(a.PanelRow,{children:(0,r.jsx)(a.SelectControl,{label:aiovg_blocks.i18n.search_results_page,value:d,options:[{label:aiovg_blocks.i18n.default_page,value:"default"},{label:aiovg_blocks.i18n.current_page,value:"current"}],onChange:e=>o({target:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})}),(0,r.jsx)("div",{...(0,l.useBlockProps)(),children:(0,r.jsx)(a.Disabled,{children:(0,r.jsx)(n(),{block:"aiovg/search",attributes:e})})})]})}})})();