this.nisje=this.nisje||{},this.nisje.pluginBibliotekutvikling=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=638)}({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}))},2:function(e,t){e.exports=window.React},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}}},277:function(e,t){e.exports=window.nisje.groups},3:function(e,t){e.exports=window.wp.i18n},39:function(e,t){e.exports=window.wp.plugins},638:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(39),i=n(22),a=n(13),c=n(8),u=n(9),l=n(2),s=n(3),p=n(277),f=function(e){var t=e.match,n=t.params.groupType,o=Object(l.useState)(""),a=Object(u.a)(o,2),c=a[0],f=a[1],b=parseInt(t.params.page||"1",10);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.Header,{title:Object(s.__)("Libraries"),onSearch:f,searchPlaceholder:Object(s.__)("Search groups")}),Object(r.createElement)(p.Groups,{page:b,search:c,groupType:n,paginationPath:"/libraries/",query:{group_type:"library"}}))};Object(o.registerPlugin)("bibliotekutvikling",{render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.PluginRoutes,null,Object(r.createElement)(a.Route,{path:"/libraries/type/:groupType/(page)?/:page?",component:f}),Object(r.createElement)(a.Route,{path:"/libraries/(:groupType)?/(page)?/:page?",component:f})),Object(r.createElement)(i.SidebarActionsControls,null,Object(r.createElement)("div",{className:"nb-back-to-main-wrapper"},Object(r.createElement)("a",{href:"/",className:"nb-back-to-main"},Object(r.createElement)("span",{className:"nb-back-to-main-icon"},Object(r.createElement)(c.Icon,{icon:c.arrowLeft})),"Bibliotekutvikling.no"))))}})},8:function(e,t){e.exports=window.nisje.icons},9: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,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==a.return||a.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.")}()}}});