(()=>{"use strict";const t=window.ReactJSXRuntime,{registerBlockType:e}=wp.blocks,{SelectControl:n,Spinner:a}=wp.components,{useSelect:s}=wp.data;e("mas-static-content/navigation-static-content",{title:"MegaMenu",icon:"screenoptions",category:"widgets",attributes:{staticContentId:{type:"number"}},edit:e=>{const{attributes:a,setAttributes:c}=e,o=s(t=>t("core").getEntityRecords("postType","mas_static_content",{per_page:-1}),[wp.data.select("core").getEntityRecords]).map(t=>({label:t.title.rendered,value:t.id}));return o.unshift({label:"Select Static Content",value:0}),(0,t.jsx)(n,{label:"Select Static Content",value:a.staticContentId||0,options:o,onChange:t=>c({staticContentId:parseInt(t)})})},save:()=>null})})();