1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[683],{4698:function(e,t,s){"use strict";var n=s(85893);t.Z=function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"footer ",children:(0,n.jsxs)("div",{className:"container mx-auto",children:[(0,n.jsxs)("div",{className:"flex flex-wrap justify-between flex-col sm:flex-row md:flow-row lg:flow-row xl:flow-row px-4",children:[(0,n.jsxs)("div",{className:"md:w-1/6 pb-4",children:[(0,n.jsx)("label",{className:"section-heading",children:"ABOUT OPENDATANI "}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/about",children:"About"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/blog",children:"News"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/showcases",children:"Showcases"})})]})]}),(0,n.jsxs)("div",{className:"md:w-1/6 pb-4",children:[(0,n.jsx)("label",{className:"section-heading",children:"USEFUL LINKS"}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/publisher",children:"Publisher"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/innovation-funds",children:"Innovation and outreach funds"})})]})]}),(0,n.jsxs)("div",{className:"md:w-1/6 pb-4",children:[(0,n.jsx)("label",{className:"section-heading",children:"GET STARTED"}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/search",children:"Datasets"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/contact",children:"Contact us"})})]})]}),(0,n.jsxs)("div",{className:"md:w-1/6 pb-4",children:[(0,n.jsx)("label",{className:"section-heading",children:"TERMS & CONDITIONS"}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/cookies",children:"Cookies"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/privacy",children:"Data protection"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/code-of-conduct",children:"Code of conduct"})})]})]}),(0,n.jsx)("div",{className:"lg:pt-0 pt-4 lg:w-2/6 mx:6/6 lg:px-0 md:px-32 sm:px-24",children:(0,n.jsxs)("div",{className:"flex flex-wrap justify-between px-14",children:[(0,n.jsx)("a",{href:"/about",target:"_blank",className:"w-1/2",children:(0,n.jsx)("img",{src:"/images/footer-3.png",className:"w-full h-full px-8 pb-4",alt:"footer-icon"})}),(0,n.jsx)("a",{href:"https://ckan.org/",target:"_blank",className:"w-1/2",children:(0,n.jsx)("img",{src:"/images/footer-2.png",className:"w-full h-full px-8 pb-4 grayscale",alt:"footer-icon"})}),(0,n.jsx)("a",{href:"https://www.nidirect.gov.uk/",target:"_blank",className:"w-1/2",children:(0,n.jsx)("img",{src:"/images/footer-4.png",className:"w-full h-full px-8 pb-4",alt:"footer-icon"})}),(0,n.jsx)("a",{href:"https://www.datopian.com/",target:"_blank",className:"w-1/2",children:(0,n.jsx)("img",{src:"/images/footer-1.png",className:"w-full px-8 pb-4 grayscale",alt:"footer-icon"})})]})})]}),(0,n.jsxs)("div",{className:"flex sm:flex-row flex-col justify-between",children:[(0,n.jsxs)("div",{className:"col-sm-6 pt-14 flex flex-col items-center lg:flex-row",children:[(0,n.jsx)("img",{src:"/images/ckan-logo.png",style:{width:"200px"},alt:"footer-icon"}),(0,n.jsx)("a",{href:"https://portaljs.com",target:"_blank",className:"powerby",children:"Powered by Portal.js from Datopian"})]}),(0,n.jsx)("div",{className:"col-sm-6 md:pr-4",children:(0,n.jsxs)("ul",{className:"social-icons flex items-center justify-center flex-wrap gap-10",children:[(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:"https://www.facebook.com/dptfinance",children:[" ",(0,n.jsx)("img",{src:"/images/facebook.svg",alt:"footer-icon"})]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:"https://twitter.com/opendatani",children:[" ",(0,n.jsx)("img",{src:"/images/twitter.svg",alt:"footer-icon"})]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:"mailto:[email protected]",children:[" ",(0,n.jsx)("img",{src:"/images/mail.svg",alt:"footer-icon"})]})})]})})]})]})})})}},40660:function(e,t,s){"use strict";s.d(t,{Z:function(){return h}});var n=s(67294),r=s(11163),a=s(79621),c=s(67804),l=s(85893),i=function(e){var t=e.menu,s=e.logo,i=(0,r.useRouter)(),o=(0,n.useState)("");return o[0],o[1],(0,l.jsx)(a.p,{as:"nav",className:"bg-white shadow",children:function(e){var n=e.open;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("a",{className:"skip-to-content-link",href:"#main",children:"Skip to content"}),(0,l.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,l.jsxs)("div",{className:"h-16 pt-3",children:[(0,l.jsxs)("div",{className:"flex justify-between px-2 lg:px-0",children:[(0,l.jsx)("div",{className:"flex-shrink-0 flex items-center",children:(0,l.jsxs)("a",{href:"/",onClick:function(e){"/"==i.pathname&&e.preventDefault()},className:"/"==i.pathname?"cursor-auto":"",children:[(0,l.jsx)("img",{className:"block lg:hidden h-8 w-auto",src:s,alt:"Portal.js"}),(0,l.jsx)("img",{className:"hidden lg:block h-8 w-auto",src:s,alt:"Portal.js"})]})}),(0,l.jsx)("div",{className:"hidden lg:ml-6 lg:flex lg:space-x-8",children:t.map(function(e,t){return(0,l.jsxs)("a",{href:e.path,className:"border-transparent text-gray-800 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:[e.icon&&(0,l.jsx)("img",{src:e.icon,alt:e.title,className:"mr-1"}),e.title]},"menu-link"+t)})})]}),(0,l.jsx)("div",{className:"flex items-center lg:hidden absolute top-3 right-4",children:(0,l.jsxs)(a.p.Button,{className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500",children:[(0,l.jsx)("span",{className:"sr-only",children:"Open main menu"}),n?(0,l.jsx)(c.b0D,{className:"block h-6 w-6","aria-hidden":"true"}):(0,l.jsx)(c.Oqj,{className:"block h-6 w-6","aria-hidden":"true"})]})})]})}),(0,l.jsx)(a.p.Panel,{className:"lg:hidden",children:(0,l.jsx)("div",{className:"pt-2 pb-3 space-y-1",children:t.map(function(e,t){return(0,l.jsxs)("a",{href:e.path,className:"border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium",children:[e.icon&&(0,l.jsx)("img",{src:e.icon,alt:e.title,className:"mr-1"}),e.title]},"mobile-menu-link"+t)})})})]})}})},o=s(11752),d=s.n(o),h=function(){var e=d()().publicRuntimeConfig.DMS;return(0,l.jsx)(i,{menu:[{title:"Home",path:"/"},{title:"Datasets",path:"/search"},{title:"Publisher",path:"/publisher"},{title:"Showcases",path:"/showcases"},{title:"Innovation and outreach funds",path:"/innovation-funds"},{title:"News",path:"/blog"},{title:"Contact",path:"/contact"},{title:"LOGIN",icon:"images/login.svg",path:"".concat(e,"/user/login")}],logo:"/images/ckan-logo.png"})}},38679:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return k},default:function(){return P},fetchPackages:function(){return O}});var n=s(59499),r=s(50029),a=s(87794),c=s.n(a),l=s(9008),i=s.n(l),o=s(40660),d=s(11163),h=s(85893),u=function(){var e=(0,d.useRouter)();return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"search-hero relative pt-32 pb-28 sm:pb-24 lg:pb-28 mb-18",style:{backgroundImage:"url('/images/bg-2.svg')"},children:[(0,h.jsx)("div",{className:"feedback",onClick:function(t){t.preventDefault(),e.push({pathname:"/contact",query:{subject:"Feedback - Showcases"}})},children:"Feedback"}),(0,h.jsx)("div",{className:"flex flex-col text-center",children:(0,h.jsxs)("div",{className:"hero-content",children:[(0,h.jsxs)("h1",{className:"text-3xl",children:["SHOW",(0,h.jsx)("span",{children:"CASES"})]}),(0,h.jsx)("p",{className:"mt-2 mb-3",children:"How data hosted on OpenDataNI has been re-used"})]})})]})})},x=s(67294),p=s(43874);function f(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,n)}return s}function m(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};
1t%2?f(Object(s),!0).forEach(function(t){(0,n.Z)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}var j=function(e){for(var t=e.count,s=e.setStart,n=(0,x.useState)({end:15,start:0}),r=n[0],a=n[1],c=[],l=0;l<t;l+=15)c.push(l);var i=function(e,t){window.localStorage.setItem("currentPage",t),s(e)},o=function(){c[r.end]&&a(function(e){var t=m({},e),s=t.end;return t.end+=15,t.start=s,t})},d=function(){r.start>=5&&a(function(e){var t=m({},e);return t.start-=15,t.end-=15,t})};return(0,h.jsxs)("div",{className:"font-raleway flex text-lg text-[#202020]",children:[(0,h.jsx)("button",{onClick:function(){return d()},disabled:r.start<15,className:"pr-6 ".concat(r.start<15?"text-[#747474]":null),children:(0,h.jsxs)("span",{className:"flex items-center",children:[(0,h.jsx)("svg",{width:"19",height:"15",viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-2",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.15219 14.6862C8.68844 15.1046 7.93656 15.1046 7.47281 14.6862L0.34781 8.25761C0.125112 8.05668 -6.30829e-07 7.78416 -6.55671e-07 7.5C-6.80513e-07 7.21584 0.125112 6.94332 0.34781 6.74239L7.47281 0.313816C7.93656 -0.104604 8.68844 -0.104604 9.15219 0.313816C9.61594 0.732234 9.61594 1.41063 9.15219 1.82904L4.05438 6.42857L17.8125 6.42857C18.4683 6.42857 19 6.90827 19 7.5C19 8.09173 18.4683 8.57143 17.8125 8.57143L4.05438 8.57143L9.15219 13.171C9.61594 13.5894 9.61594 14.2678 9.15219 14.6862Z",fill:"".concat(r.start<15?"#747474":"#202020")})}),"Prev"]})}),c.slice(r.start,r.end).map(function(e,t){return(0,h.jsx)("button",{onClick:function(){i(e,t+r.start)},className:"mx-2 ".concat(t+r.start===(parseInt(JSON.parse(window.localStorage.getItem("currentPage")))||0)?"px-2 py-0.5 border-2 rounded-md bg-blue-100":null),children:t+r.start+1},t)}),(0,h.jsx)("button",{onClick:function(){return o()},disabled:r.end>=c.length-1,className:"ml-6 ".concat(r.end>=c.length-1?"text-[#747474]":null),children:(0,h.jsxs)("span",{className:"flex items-center",children:[" ","Next",(0,h.jsx)("svg",{width:"19",height:"15",viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ml-2",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.84781 0.313814C10.3116 -0.104605 11.0634 -0.104605 11.5272 0.313814L18.6522 6.74239C18.8749 6.94332 19 7.21584 19 7.5C19 7.78416 18.8749 8.05668 18.6522 8.25762L11.5272 14.6862C11.0634 15.1046 10.3116 15.1046 9.84781 14.6862C9.38406 14.2678 9.38406 13.5894 9.84781 13.171L14.9456 8.57143L1.1875 8.57143C0.531662 8.57143 0 8.09173 0 7.5C0 6.90827 0.531662 6.42857 1.1875 6.42857L14.9456 6.42857L9.84781 1.82904C9.38406 1.41062 9.38406 0.732233 9.84781 0.313814Z",fill:"".concat(r.end>=c.length-1?"#747474":"#202020")})})]})})]})},g=s(11752),b=s.n(g),w=function(e){var t=e.initialShowcases,s=(0,x.useState)(t),n=s[0];s[1];var r=(0,x.useState)(0),a=r[0],c=r[1];return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"container mx-auto px-4 relative",children:[(0,h.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-1 pull-up",children:(null==n?void 0:n.length)>0&&n.slice(a,a+15).map(function(e){return(0,h.jsx)("div",{className:"p-10 bg-white mx-6 mb-10 rounded-2xl",children:(0,h.jsx)("a",{href:e.url,children:(0,h.jsx)("div",{className:"showcase-box flex justify-center items-end bg-center bg-contain",style:{backgroundImage:"url(\n ".concat((0,p.jv)(e.extras[0].value)?e.extras[0].value:"".concat(b()().publicRuntimeConfig.DMS,"/uploads/showcase/").concat(e.extras[0].value),")")},children:(0,h.jsxs)("div",{className:"content text-center pb-2 bg-black bg-opacity-30 w-full",children:[(0,h.jsx)("h3",{className:"text-white font-bold text-xl px-6",children:e.title}),(0,h.jsxs)("p",{className:"flex text-white justify-center",children:[(0,h.jsx)("svg",{className:"mt-1 mr-2",width:"18",height:"17",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M4.82495 1.03296V2.17773V1.03296ZM8.25927 1.03296V2.17773V1.03296ZM4.82495 10.1912V11.3359V10.1912ZM8.25927 10.1912V11.3359V10.1912ZM2.5354 4.46728H1.39062H2.5354ZM2.5354 7.90161H1.39062H2.5354ZM11.6936 4.46728H10.5488H11.6936ZM11.6936 7.90161H10.5488H11.6936ZM3.68017 10.1912H9.40405C9.70766 10.1912 9.99884 10.0705 10.2135 9.85586C10.4282 9.64117 10.5488 9.34999 10.5488 9.04638V3.32251C10.5488 3.01889 10.4282 2.72772 10.2135 2.51303C9.99884 2.29834 9.70766 2.17773 9.40405 2.17773H3.68017C3.37656 2.17773 3.08538 2.29834 2.8707 2.51303C2.65601 2.72772 2.5354 3.01889 2.5354 3.32251V9.04638C2.5354 9.34999 2.65601 9.64117 2.8707 9.85586C3.08538 10.0705 3.37656 10.1912 3.68017 10.1912ZM4.82495 4.46728H8.25927V7.90161H4.82495V4.46728Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),e.packages.length," dataset"]})]})})})},e.id)})}),(0,h.jsx)("div",{className:"flex justify-center mb-20",children:(0,h.jsx)(j,{count:n.length,setStart:c})})]})})},v=s(4698);function N(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,n)}return s}function y(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};
1t%2?N(Object(s),!0).forEach(function(t){(0,n.Z)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}var k=!0;function O(e){return C.apply(this,arguments)}function C(){return(C=(0,r.Z)(c().mark(function e(t){var s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(){var e=(0,r.Z)(c().mark(function e(t){var s,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(b()().publicRuntimeConfig.DMS,"/api/3/action/ckanext_showcase_package_list?showcase_id=").concat(t.id));case 2:return s=e.sent,e.next=5,s.json();case 5:return n=e.sent,e.abrupt("return",y(y({},t),{},{packages:n.result}));case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function P(e){var t=e.showcases;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(i(),{children:[(0,h.jsx)("title",{children:"Portal | Search"}),(0,h.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,h.jsx)(o.Z,{}),(0,h.jsxs)("main",{children:[(0,h.jsx)(u,{}),(0,h.jsx)(w,{initialShowcases:t}),(0,h.jsx)(v.Z,{})]})]})}},43874:function(e){e.exports._0=function(e){var t;return"string"==typeof e?e:Array.isArray(e)?(e.some(function e(s){return"p"===s.type&&s.props&&"string"==typeof s.props.children?(t=s.props.children,!0):s.props&&Array.isArray(s.props.children)&&s.props.children.some(e)}),t):void 0},e.exports.jv=function(e){try{return new URL(e),!0}catch(e){return!1}}},52289:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/showcases",function(){return s(38679)}])}},function(e){e.O(0,[611,774,888,179],function(){return e(e.s=52289)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.