(()=>{var e,t={96:(e,t,r)=>{"use strict";const n=window.wp.element,o=window.wp.blocks;r(184);const s=window.wp.i18n,l=window.wp.components,a=window.wp.blockEditor;window.wp.data;const c=JSON.parse('{"u2":"crosswinds-blocks/single-post-types-search-results"}');(0,o.registerBlockType)(c.u2,{icon:{src:(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 512 512"},(0,n.createElement)("path",{class:"fa-secondary",fill:"#8200ff",d:"M192 96c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H488c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zm32 128H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"}),(0,n.createElement)("path",{class:"fa-primary",fill:"#171247",d:"M48 32C34.7 32 24 42.8 24 56s10.7 24 24 24h8v96H40c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24H104V56c0-13.3-10.7-24-24-24H48zM62.6 342.4c5.7-8.1 17.5-8.6 24-1.2c5.2 5.9 5 14.7-.3 20.5l-72 78c-6.5 7-8.2 17.2-4.3 25.9s12.5 14.4 22 14.4h88c13.3 0 24-10.7 24-24s-10.7-24-24-24H86.8l34.8-37.7c22-23.8 22.4-60.3 1.1-84.7c-26.9-30.7-75.4-28.4-99.2 4.9L12.5 330.1c-7.7 10.8-5.2 25.8 5.6 33.5s25.8 5.2 33.5-5.6l11.1-15.6z"}))},edit:function(e){const{attributes:t,setAttributes:r}=e,{postType:o}=t;function c(){let e=[];e.push({value:"all",label:(0,s.__)("All Post Types")});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,n.useState)(c()),u=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,s.__)("Search Filters Settings","crosswinds-blocks")},(0,n.createElement)(n.Fragment,null,(0,n.createElement)(l.ComboboxControl,{label:(0,s.__)("Select a Post Type","crosswinds-blocks"),value:o,onChange:e=>r({postType:e}),options:c(),onFilterValueChange:e=>p(c().filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))}))))),h=(0,a.useBlockProps)(),f=(0,a.useInnerBlocksProps)(h,{template:[["core/query",{query:{inherit:!0}}]]});return(0,n.createElement)(n.Fragment,null,u,(0,n.createElement)("div",f))},save:function(){return(0,n.createElement)(a.InnerBlocks.Content,null)}})},184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var l=o.apply(null,r);l&&e.push(l)}}else if("object"===s){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.m=t,e=[],n.O=(t,r,o,s)=>{if(!r){var l=1/0;for(p=0;p<e.length;p++){for(var[r,o,s]=e[p],a=!0,c=0;c<r.length;c++)(!1&s||l>=s)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(a=!1,s<l&&(l=s));if(a){e.splice(p--,1);var i=o();void 0!==i&&(t=i)}}return t}s=s||0;for(var p=e.length;p>0&&e[p-1][2]>s;p--)e[p]=e[p-1];e[p]=[r,o,s]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={1592:0,5447:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,s,[l,a,c]=r,i=0;if(l.some((t=>0!==e[t]))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var p=c(n)}for(t&&t(r);i<l.length;i++)s=l[i],n.o(e,s)&&e[s]&&e[s][0](),e[s]=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 o=n.O(void 0,[5447],(()=>n(96)));o=n.O(o)})();