!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,n=window.wp.plugins;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i=window.wp.element,a=window.wp.i18n,u=window.wp.editPost,l=window.wp.components,s=window.wp.data;(0,t.has)(window.nisjeFeedLayoutSettings,"memberTypes")&&(0,n.registerPlugin)("nisje-feed-layouts-membertype",{render:function(){var e=(0,s.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("meta").member_type})),n=(0,s.useDispatch)("core/editor").editPost;return(0,i.createElement)(u.PluginPostStatusInfo,null,(0,i.createElement)(l.SelectControl,{label:(0,a.__)("Membertype"),help:(0,a.__)("Select membertype to get this frontpage"),value:e,options:[{label:(0,a.__)("No membertype connection"),value:""}].concat(r((0,t.get)(window.nisjeFeedLayoutSettings,"memberTypes",[]))),onChange:function(e){n({meta:{member_type:e}})}}))}}),(0,t.has)(window.nisjeFeedLayoutSettings,"groups")&&(0,n.registerPlugin)("nisje-feed-layouts-group",{render:function(){var e=(0,s.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("meta").group_id})),n=(0,s.useDispatch)("core/editor").editPost;return(0,i.createElement)(u.PluginPostStatusInfo,null,(0,i.createElement)(l.SelectControl,{label:(0,a.__)("Group"),help:(0,a.__)("Select group to get this frontpage"),value:e,options:[{label:(0,a.__)("No group connection"),value:""}].concat(r((0,t.get)(window.nisjeFeedLayoutSettings,"groups",[]))),onChange:function(e){n({meta:{group_id:e}})}}))}}),(window.nisje=window.nisje||{}).pluginFeedLayoutsAdmin=e}();