!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.blocks,n=window.wp.primitives,a=window.wp.blockEditor,r=window.wp.components,o=window.wp.i18n,l=window.wp.serverSideRender,c=e.n(l),i=({attributes:e})=>{const{type:t}=e;return React.createElement(a.Warning,null,"taxonomy"===t?(0,o.__)("Preview unavailable. The selected taxonomy has no terms assigned to searchable content.","elasticprobe"):(0,o.__)("Preview unavailable. There is no searchable content available with the selected metadata.","elasticprobe"))},s=()=>React.createElement(r.Placeholder,null,React.createElement(r.Spinner,null));var p=e=>{const t=(0,a.useBlockProps)(),{attributes:n,name:l,setAttributes:p}=e,{displayCustomDate:u}=n;return React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,o.__)("Settings","elasticprobe")},React.createElement(r.ToggleControl,{label:(0,o.__)("Display custom date option","elasticprobe"),checked:u,onChange:e=>p({displayCustomDate:e}),__nextHasNoMarginBottom:!0}))),React.createElement("div",t,React.createElement(r.Disabled,null,React.createElement(c(),{attributes:{...n,isPreview:!0},block:l,EmptyResponsePlaceholder:i,LoadingResponsePlaceholder:s,skipBlockSupportAttributes:!0}))))},u=JSON.parse('{"UU":"elasticprobe/facet-date"}');(0,t.registerBlockType)(u.UU,{icon:()=>React.createElement(n.SVG,{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"M5 6V5.25C4.69933 5.25 4.42772 5.42957 4.30994 5.70621C4.19216 5.98285 4.25098 6.3031 4.45938 6.51983L5 6ZM10.1012 11.3053H10.8512V11.0032L10.6418 10.7854L10.1012 11.3053ZM10.1012 17.141H9.35121C9.35121 17.3638 9.45026 17.5751 9.62153 17.7176L10.1012 17.141ZM12.6518 19.2632L12.1721 19.8397C12.3891 20.0202 12.6891 20.0636 12.9483 19.9521C13.2076 19.8405 13.3822 19.5928 13.4003 19.3111L12.6518 19.2632ZM13.1619 11.3053L12.6213 10.7854L12.431 10.9833L12.4135 11.2573L13.1619 11.3053ZM18.2632 6L18.8038 6.51983C19.0122 6.3031 19.071 5.98285 18.9532 5.70621C18.8354 5.42957 18.5638 5.25 18.2632 5.25V6ZM4.45938 6.51983L9.56059 11.8251L10.6418 10.7854L5.54062 5.48017L4.45938 6.51983ZM9.35121 11.3053V17.141H10.8512V11.3053H9.35121ZM9.62153 17.7176L12.1721 19.8397L13.1315 18.6866L10.5809 16.5645L9.62153 17.7176ZM13.4003 19.3111L13.9104 11.3532L12.4135 11.2573L11.9034 19.2152L13.4003 19.3111ZM13.7026 11.8251L18.8038 6.51983L17.7225 5.48017L12.6213 10.7854L13.7026 11.8251ZM5 6.75H18.2632V5.25H5V6.75Z"})),edit:p,save:()=>{}})}();