(()=>{"use strict";var e,t={755:()=>{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/download-category-search"}');(0,t.registerBlockType)(a.u2,{icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:"#171247",class:"fa-primary",d:"M256 0c17.7 0 32 14.3 32 32V306.7l73.4-73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-128 128c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 306.7V32c0-17.7 14.3-32 32-32z"}),(0,e.createElement)("path",{fill:"#8200ff",class:"fa-secondary",d:"M178.7 352H64c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H333.3l-54.6 54.6c-12.5 12.5-32.8 12.5-45.3 0L178.7 352zM408 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"}))},edit:function(t){const{setAttributes:a,attributes:c}=t,{label:s}=c;let i=[];i=(0,n.useSelect)((e=>e("core").getEntityRecords("taxonomy","download_category")),[]);let w=[];null!==i&&(w=i.map((t=>(0,e.createElement)("option",{key:t.id},t.name))));const d=(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,d,(0,e.createElement)("div",(0,o.useBlockProps)(),(0,e.createElement)("label",{for:"download-category-search"},s),(0,e.createElement)("select",null,w)))}})}},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(w=0;w<e.length;w++){for(var[r,l,n]=e[w],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(w--,1);var i=l();void 0!==i&&(t=i)}}return t}n=n||0;for(var w=e.length;w>0&&e[w-1][2]>n;w--)e[w]=e[w-1];e[w]=[r,l,n]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5544:0,5346: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 w=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(w)},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,[5346],(()=>o(755)));l=o.O(l)})();