!function(){"use strict";var e={};(function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);var t=window.lodash,o=window.nisje.settings,n=window.wp.element,i=window.wp.i18n,r=window.wp.editPost,s=window.wp.components,u=window.wp.data;(0,t.has)(window.nisjeFeedLayoutSettings,"memberTypes")&&(0,o.registerPlugin)("nisje-feed-layouts-membertype",{render:function(){const e=(0,u.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").member_type)),{editPost:o}=(0,u.useDispatch)("core/editor");return(0,n.createElement)(r.PluginPostStatusInfo,null,(0,n.createElement)(s.SelectControl,{label:(0,i.__)("Membertype"),help:(0,i.__)("Select membertype to get this frontpage"),value:e,options:[{label:(0,i.__)("No membertype connection"),value:""},...(0,t.get)(window.nisjeFeedLayoutSettings,"memberTypes",[])],onChange:function(e){o({meta:{member_type:e}})}}))}}),(0,t.has)(window.nisjeFeedLayoutSettings,"groups")&&(0,o.registerPlugin)("nisje-feed-layouts-group",{render:function(){const e=(0,u.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").group_id)),{editPost:o}=(0,u.useDispatch)("core/editor");return(0,n.createElement)(r.PluginPostStatusInfo,null,(0,n.createElement)(s.SelectControl,{label:(0,i.__)("Group"),help:(0,i.__)("Select group to get this frontpage"),value:e,options:[{label:(0,i.__)("No group connection"),value:""},...(0,t.get)(window.nisjeFeedLayoutSettings,"groups",[])],onChange:function(e){o({meta:{group_id:e}})}}))}}),(window.nisje=window.nisje||{}).pluginFeedLayoutsAdmin=e}();