(()=>{"use strict";var e,t={508:()=>{const e=window.wp.element,t=window.wp.blocks,r=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components;window.wp.data;const o=JSON.parse('{"u2":"crosswinds-blocks/search-filters"}');(0,t.registerBlockType)(o.u2,{icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:"#171247",class:"fa-primary",d:"M500.3 443.7l-119.7-119.7c-15.03 22.3-34.26 41.54-56.57 56.57l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7z"}),(0,e.createElement)("path",{fill:"#8200ff",class:"fa-secondary",d:"M207.1 0C93.12 0-.0002 93.13-.0002 208S93.12 416 207.1 416s208-93.13 208-208S322.9 0 207.1 0zM207.1 336c-70.58 0-128-57.42-128-128c0-70.58 57.42-128 128-128s128 57.42 128 128C335.1 278.6 278.6 336 207.1 336z"}))},edit:function(t){const{attributes:o,setAttributes:s}=t,{postType:a}=o;function c(){let e=[];const t=wp.data.select("core").getPostTypes({per_page:-1});return null===t||t.forEach((t=>{e.push({value:t.slug,label:t.name})})),e}const[i,p]=(0,e.useState)(c()),u=(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(l.PanelBody,{title:(0,r.__)("Search Filters Settings","crosswinds-blocks")},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.ComboboxControl,{label:(0,r.__)("Select a Post Type","crosswinds-blocks"),value:a,onChange:e=>s({postType:e}),options:c(),onFilterValueChange:e=>p(c().filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})))));return(0,e.createElement)(e.Fragment,null,u,(0,e.createElement)("div",(0,n.useBlockProps)(),(0,e.createElement)(n.InnerBlocks,null)))},save:function(){return(0,e.createElement)(n.InnerBlocks.Content,null)}})}},r={};function n(e){var l=r[e];if(void 0!==l)return l.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,r,l,o)=>{if(!r){var s=1/0;for(p=0;p<e.length;p++){for(var[r,l,o]=e[p],a=!0,c=0;c<r.length;c++)(!1&o||s>=o)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(p--,1);var i=l();void 0!==i&&(t=i)}}return t}o=o||0;for(var p=e.length;p>0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[r,l,o]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={7719:0,280:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var l,o,[s,a,c]=r,i=0;if(s.some((t=>0!==e[t]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(c)var p=c(n)}for(t&&t(r);i<s.length;i++)o=s[i],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(p)},r=globalThis.webpackChunkstarter_block=globalThis.webpackChunkstarter_block||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l=n.O(void 0,[280],(()=>n(508)));l=n.O(l)})();