(()=>{var e,t={419:(e,t,r)=>{"use strict";const n=window.wp.element,o=window.wp.blocks;var l=r(184),s=r.n(l);const c=window.wp.i18n,a=window.wp.blockEditor,i=window.wp.components;window.wp.data;const p=JSON.parse('{"u2":"crosswinds-blocks/single-content"}');(0,o.registerBlockType)(p.u2,{icon:{src:(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},(0,n.createElement)("path",{fill:"#171247",d:"M384 0H64C28.65 0 0 28.65 0 64v64h448V64C448 28.65 419.3 0 384 0zM208 400h-96C103.2 400 96 407.2 96 416c0 8.836 7.164 16 16 16h96c8.836 0 16-7.164 16-16C224 407.2 216.8 400 208 400zM336 208h-224C103.2 208 96 215.2 96 224c0 8.836 7.164 16 16 16h224C344.8 240 352 232.8 352 224C352 215.2 344.8 208 336 208zM336 304h-224C103.2 304 96 311.2 96 320c0 8.836 7.164 16 16 16h224c8.836 0 16-7.164 16-16C352 311.2 344.8 304 336 304z"}),(0,n.createElement)("path",{fill:"#8200ff",d:"M0 128v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V128H0zM208 432h-96C103.2 432 96 424.8 96 416c0-8.838 7.164-16 16-16h96c8.836 0 16 7.162 16 16C224 424.8 216.8 432 208 432zM336 336h-224C103.2 336 96 328.8 96 320c0-8.838 7.164-16 16-16h224c8.836 0 16 7.162 16 16C352 328.8 344.8 336 336 336zM336 240h-224C103.2 240 96 232.8 96 224c0-8.838 7.164-16 16-16h224C344.8 208 352 215.2 352 224C352 232.8 344.8 240 336 240z"}))},edit:function(e){const{attributes:t,setAttributes:r}=e,{postId:o,postType:l,postTypeTitle:p,cbUseFlex:u,cbFillHeight:h}=t;function d(){let e=[];const t=wp.data.select("core").getEntityRecords("postType",l,{per_page:-1});return null===t||t.forEach((t=>{e.push({value:t.id,label:t.title.rendered})})),e}const[f,b]=(0,n.useState)(d()),g=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(i.PanelBody,{title:(0,c.__)("Featured Content Settings","crosswinds-blocks")},(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.ComboboxControl,{label:(0,c.__)("Select","crosswinds-blocks")+" "+p,value:o,onChange:t=>e.setAttributes({postId:parseInt(t)}),options:d(),onFilterValueChange:e=>b(d().filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))}),(0,n.createElement)(i.ToggleControl,{label:(0,c.__)("Use Flexbox on Group?","crosswinds-blocks"),checked:u,onChange:e=>r({cbUseFlex:e})}),(0,n.createElement)(i.ToggleControl,{label:(0,c.__)("Have Group Fill Height of Parent Block?","crosswinds-blocks"),checked:h,onChange:e=>r({cbFillHeight:e})})))));let v;v=u&&h?s()("column-flex cb-fill-height-parent"):u?s()("column-flex"):"";const w=(0,a.useBlockProps)({className:v});return 0===o?(0,n.createElement)(n.Fragment,null,g,(0,n.createElement)("p",w,(0,c.__)("Please select a post or other custom post type item from the right side","crosswinds-blocks"))):(0,n.createElement)(n.Fragment,null,g,(0,n.createElement)("div",w,(0,n.createElement)(a.InnerBlocks,null)))},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 l=typeof r;if("string"===l||"number"===l)e.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&e.push(s)}}else if("object"===l){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}}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 l=r[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,r,o,l)=>{if(!r){var s=1/0;for(p=0;p<e.length;p++){for(var[r,o,l]=e[p],c=!0,a=0;a<r.length;a++)(!1&l||s>=l)&&Object.keys(n.O).every((e=>n.O[e](r[a])))?r.splice(a--,1):(c=!1,l<s&&(s=l));if(c){e.splice(p--,1);var i=o();void 0!==i&&(t=i)}}return t}l=l||0;for(var p=e.length;p>0&&e[p-1][2]>l;p--)e[p]=e[p-1];e[p]=[r,o,l]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5461:0,8239:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,l,[s,c,a]=r,i=0;if(s.some((t=>0!==e[t]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(a)var p=a(n)}for(t&&t(r);i<s.length;i++)l=s[i],n.o(e,l)&&e[l]&&e[l][0](),e[l]=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,[8239],(()=>n(419)));o=n.O(o)})();