(()=>{"use strict";const e=window.wp.blocks,t=window.React,a=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,o=JSON.parse('{"u2":"wlc-algolia/result-meta"}');(0,e.registerBlockType)(o.u2,{edit:function({attributes:e,setAttributes:o}){const{metaDate:i,metaAuthor:r,hideIfEmpty:c}=e;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(l.InspectorControls,null,(0,t.createElement)(n.PanelBody,{title:(0,a.__)("Result Meta","wlc-search-integration-with-algolia"),initialOpen:!0},(0,t.createElement)(n.ToggleControl,{label:(0,a.__)("Show date","wlc-search-integration-with-algolia"),checked:!!i,onChange:e=>o({metaDate:!!e})}),(0,t.createElement)(n.ToggleControl,{label:(0,a.__)("Show author","wlc-search-integration-with-algolia"),checked:!!r,onChange:e=>o({metaAuthor:!!e})}),(0,t.createElement)(n.ToggleControl,{label:(0,a.__)("Hide if empty","wlc-search-integration-with-algolia"),checked:!1!==c,onChange:e=>o({hideIfEmpty:!!e})}))),(0,t.createElement)("div",{style:{fontSize:12,opacity:.75}},(0,a.__)("Meta: date / author","wlc-search-integration-with-algolia")))},save:()=>null})})();