this.nisje=this.nisje||{},this.nisje.pluginFeedLayouts=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=629)}({0:function(e,t){e.exports=window.wp.element},13:function(e,t){e.exports=window.nisje.router},17:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},22:function(e,t){e.exports=window.nisje.interface},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(17);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(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)?Object(r.a)(e,t):void 0}}},3:function(e,t){e.exports=window.wp.i18n},33:function(e,t){e.exports=window.nisje.data},35:function(e,t){e.exports=window.nisje.views},36:function(e,t){e.exports=window.wp.hooks},39:function(e,t){e.exports=window.wp.plugins},4:function(e,t){e.exports=window.nisje.components},5:function(e,t){e.exports=window.lodash},629:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(5),i=n(39),c=n(36),a=n(7),u=n(13),s=n(8),f=n(4),l=n(35),d=n(33),p=n(9),j=function(e){var t=e.type,n=e.id,o=Object(d.useApiFetch)("/wp/v2/".concat(t,"/").concat(n,"?_fields=content")),i=Object(s.a)(o,2),c=i[0],a=i[1];if(!c)return Object(r.createElement)("div",{style:{textAlign:"center",padding:30}},Object(r.createElement)(f.Loader,{size:30}));if(a)return Object(r.createElement)(l.Message,{icon:p.warning},a.data.status,": ",a.message);var u=c.content;return Object(r.createElement)(f.EntryContainer,{autoHeight:!0,transparent:!0},Object(r.createElement)(f.EntryContent,null,u.rendered))},b=n(3),y=n(22),m=function(e){var t=e.match.params.id,n=Object(d.useApiFetch)("/wp/v2/nisje-feed-frontpage/".concat(t,"/revisions?_fields=content")),o=Object(s.a)(n,2),i=o[0],c=o[1];if(!i)return Object(r.createElement)("div",{style:{textAlign:"center",padding:30}},Object(r.createElement)(f.Loader,{size:30}));if(c)return Object(r.createElement)(l.Message,{icon:p.warning},c.data.status,": ",c.message);var a=i[0].content;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Header,{title:Object(b.__)("Wall")}),Object(r.createElement)(f.EntryContainer,{autoHeight:!0,transparent:!0},Object(r.createElement)(f.EntryContent,null,a.rendered)))};Object(c.addFilter)("nisje.frontpage","nisje/feedLayouts/frontpage",(function(e){return function(t){var n=Object(a.getOption)("feedLayouts.frontpage",0);return 0!==n&&Object(o.isEmpty)(t.search)?Object(r.createElement)(j,{id:n,type:"nisje-feed-frontpage",search:t.search}):Object(r.createElement)(e,t)}})),Object(c.addFilter)("nisje.groups.frontpage","nisje/feedLayouts/frontpage",(function(e){return function(t){var n=Object(a.getOption)("feedLayouts.groups.".concat(t.id),0);return 0===n?Object(r.createElement)(e,t):Object(r.createElement)(j,{id:n,type:"nisje-feed-group"})}})),Object(i.registerPlugin)("feed-layouts",{render:function(){return Object(r.createElement)(u.PluginRoutes,null,Object(r.createElement)(u.Route,{path:"/feed-layout/:id",component:m}))}})},7:function(e,t){e.exports=window.nisje.settings},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(24);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(_n=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==c.return||c.return()}finally{if(r)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9:function(e,t){e.exports=window.nisje.icons}});