(()=>{"use strict";const e=window.wp.blocks,t=window.React,n=window.wp.i18n,l=window.wp.blockEditor,i=window.wp.components,a=JSON.parse('{"u2":"wlc-algolia/result-excerpt"}');(0,e.registerBlockType)(a.u2,{edit:function({attributes:e,setAttributes:a}){const{maxLength:o,hideIfEmpty:r}=e;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(l.InspectorControls,null,(0,t.createElement)(i.PanelBody,{title:(0,n.__)("Result Excerpt","wlc-search-integration-with-algolia"),initialOpen:!0},(0,t.createElement)(i.RangeControl,{label:(0,n.__)("Max length","wlc-search-integration-with-algolia"),min:60,max:400,value:o||220,onChange:e=>a({maxLength:e||220})}),(0,t.createElement)(i.ToggleControl,{label:(0,n.__)("Hide if empty","wlc-search-integration-with-algolia"),checked:!1!==r,onChange:e=>a({hideIfEmpty:!!e})}))),(0,t.createElement)("div",{style:{fontSize:13,opacity:.75}},(0,n.__)("Excerpt / snippet…","wlc-search-integration-with-algolia")))},save:()=>null})})();