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