(()=>{"use strict";var e,t={268:()=>{const e=window.wp.element,t=window.wp.blocks,r=window.wp.i18n,o=window.wp.blockEditor,n=window.wp.components,l=window.wp.data;window.wp.coreData,window.wp.date;const a=JSON.parse('{"u2":"crosswinds-blocks/search-filters-taxonomy"}');(0,t.registerBlockType)(a.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{setAttributes:a,attributes:s}=t,{label:c,taxonomy:i,taxonomyName:w}=s;let p=[];p=(0,l.useSelect)((e=>e("core").getEntityRecords("taxonomy",i)),[]);let d=[];null!==p&&(d=p.map((t=>(0,e.createElement)("option",{key:t.id},t.name))));const m=(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,r.__)("Taxonomy Search Settings","crosswinds-blocks")},(0,e.createElement)(n.TextControl,{label:(0,r.__)("Label","crosswinds-blocks"),value:c,onChange:e=>a({label:e})}))));return(0,e.createElement)(e.Fragment,null,m,(0,e.createElement)("div",(0,o.useBlockProps)(),(0,e.createElement)("label",{for:i+"-search"},c),(0,e.createElement)("select",{id:i+"-search"},d)))}})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=(t,r,n,l)=>{if(!r){var a=1/0;for(w=0;w<e.length;w++){for(var[r,n,l]=e[w],s=!0,c=0;c<r.length;c++)(!1&l||a>=l)&&Object.keys(o.O).every((e=>o.O[e](r[c])))?r.splice(c--,1):(s=!1,l<a&&(a=l));if(s){e.splice(w--,1);var i=n();void 0!==i&&(t=i)}}return t}l=l||0;for(var w=e.length;w>0&&e[w-1][2]>l;w--)e[w]=e[w-1];e[w]=[r,n,l]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={750:0,4286:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,l,[a,s,c]=r,i=0;if(a.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)var w=c(o)}for(t&&t(r);i<a.length;i++)l=a[i],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(w)},r=globalThis.webpackChunkstarter_block=globalThis.webpackChunkstarter_block||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[4286],(()=>o(268)));n=o.O(n)})();