1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[269],{5998:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return I}});var a=s(7812),n=s(7294),i=s(4184),l=s.n(i),r=s(1664),c=s.n(r),o=s(4563),d=s(3569),x=s(5800),u=s.n(x),h=s(276),m=s.n(h),p=s(1925),f=s(9757),g=s(7293),v=s(3587),j=s(7964),N=s(3760),w=s(3401),b=s(5893);function S(e){return e?String(e).replace(" ","").replace(/([()])/g,"").toLowerCase():""}var y=function(e){var t=e.goal,s=e.indicatorId,a=e.data;return(0,b.jsx)(j.Tooltip,{position:"top",trigger:"mouseenter",html:(0,b.jsx)("div",{className:"text-left",children:(0,b.jsxs)("h3",{className:"flex items-center text-xl font-bold uppercase font-SDGSans",children:["Indicator ",s]})}),children:(0,b.jsx)("div",{className:l()("w-4 h-4",a?"bg-goals-".concat(t):"bg-gray-200")})},"data-".concat(s))},I=!0;t.default=function(e){var t,s,i,r,x,h,j,I,G,_,D=e.country,k=e.slug,C=e.goal,E=e.sdg,L=e.publications,O=(0,w.w)(),P=O.exportAsImage,T=O.isPrinting,Z=O.chartRef,A=p.P7[Number(C)-1],F=A.short,K=A.full,Q=null===(t=E.sdg.availableIndicators)||void 0===t?void 0:t.filter((function(e){return(0,p.ji)(e)===C})).map(S),X=null===E||void 0===E?void 0:E.sdg.targets.filter((function(e){var t=e.targetId;return(0,p.ji)(t)===C})).map((function(e){return e.targetId=String(e.targetId).toLowerCase().trim(),e})),M=f.filter((function(e){var t=e.indicatorId;return(0,p.ji)(t)===C})),R=m()(M.map((function(e){var t=e.indicatorId;return{indicatorId:t,target:(0,p.wG)(t),data:!1}})),"target"),U=m()(Q.map((function(e){return{indicatorId:e,target:(0,p.wG)(e),data:!0}})),"target"),W=function(e){for(var t=[],s=[],a=function(a){if(s.find((function(t){return t.indicatorId===e[a].indicatorId})))return"continue";var n=e.filter((function(t){return t.indicatorId.replace("p","").startsWith(e[a].indicatorId.replace("p",""))})),i=void 0;n.length>1?((i=n.shift()).data=i.data?i.data:!!n.some((function(e){return e.data})),s=s.concat(n),t.push(i)):t=t.concat(n)},n=0;n<e.length;n++)a(n);return t}(u()(null===X||void 0===X?void 0:X.map((function(e){var t,s;return[].concat((0,a.Z)(null!==(t=null===R||void 0===R?void 0:R[e.targetId])&&void 0!==t?t:[]),(0,a.Z)(null!==(s=null===U||void 0===U?void 0:U[e.targetId])&&void 0!==s?s:[]))}))).filter((function(e,t,s){var a=!1,n=e.indicatorId;return e.data||(a=s.some((function(e){return n===(0,p.cO)(e.indicatorId)&&e.data}))),!a}))),q=W.length,z=X.length,B=Object.keys(U).map((function(e){return U[e].length})).reduce((function(e){return e+1}),0),H=null!==(s=null===(i=W.filter((function(e){return e.data})))||void 0===i?void 0:i.length)&&void 0!==s?s:0,J=Number(H/q*100).toFixed(1).toLocaleString(),V=null!==(r=E.sdg.indicators.filter((function(e){return e.id})).filter((function(e){return(0,p.ji)(e.id)==C})).sort((function(e,t){return e.id.localeCompare(t.id,void 0,{numeric:!0,sensitivity:"base"})})))&&void 0!==r?r:[],Y=(0,n.useState)(null===(x=V[0])||void 0===x||null===(h=x.id)||void 0===h?void 0:h.toLowerCase()),$=Y[0],ee=Y[1],te=V.find((function(e){var t;return(null===(t=e.id)||void 0===t?void 0:t.toLowerCase())===$}));(0,n.useLayoutEffect)((function(){var e,t;(0,p.ji)($)!==C&&ee(null===(e=V[0])||void 0===e||null===(t=e.id)||void 0===t?void 0:t.toLowerCase())}),[C]);var se=(0,n.useState)(0),ae=se[0],ne=se[1];return(0,b.jsxs)("article",{children:[(0,b.jsx)("section",{className:"flex justify-center w-full sm:justify-end",children:(0,b.jsx)("div",{className:"flex",children:p.P7.map((function(e,t){return(0,b.jsx)(c(),{href:"/platform/".concat(k,"/goals/").concat(t+1),scroll:!1,children:(0,b.jsx)("a",{children:(0,b.jsx)("img",{className:l()("cursor-pointer h-11 w-11 sm:h-8 sm:w-8 hover:opacity-100 active:opacity-100",t!==Number(C)-1&&"opacity-30"),src:"/sdg-icons/no-text/_".concat(t+1,".svg")})})},"sdg-".concat(t))}))})}),(0,b.jsx)("div",{id:"header",className:"bg-goals-".concat(C),children:(0,b.jsxs)("div",{className:"items-center w-full py-8 mx-auto text-white max-w-7xl sm:py-0 sm:pt-8 grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,b.jsx)("div",{className:"relative sm:hidden aspect-ratio-16/9",children:(0,b.jsx)("div",{className:"absolute inset-0 flex items-center justify-center overflow-hidden",children:(0,b.jsx)("img",{src:"/sdg-icons/no-text/_".concat(C,".svg"),className:"w-full"})})}),(0,b.jsxs)("header",{className:"px-8",children:[(0,b.jsxs)("h1",{className:"text-6xl font-extrabold uppercase font-SDGSans sm:text-8xl lg:mt-8",children:["Goal ",C," ",(0,b.jsx)("span",{className:"opacity-60",children:F})]}),(0,b.jsx)("p",{className:"text-xl",children:K})]}),(0,b.jsx)("div",{className:"relative hidden sm:block aspect-ratio-16/9",children:(0,b.jsx)("div",{className:"absolute inset-0 flex items-center justify-center overflow-hidden",children:(0,b.jsx)("img",{src:"/sdg-icons/no-text/_".concat(C,".svg"),className:"w-full"})})})]})}),(0,b.jsx)("div",{className:"bg-goals-".concat(C," pt-4"),children:(0,b.jsxs)(d.mQ,{defaultIndex:0,className:"w-full text-white focus:outline-none",onChange:ne,children:[(0,b.jsxs)(d.td,{className:"pl-8 mx-auto bg-transparent max-w-7xl",children:[(0,b.jsx)(d.OK,{children:(0,b.jsx)("div",{className:"px-5 py-2 text-2xl text-white uppercase font-SDGSans",children:"Overview"})}),(0,b.jsx)(d.OK,{children:(0,b.jsx)("div",{className:"px-5 py-2 text-2xl text-white uppercase font-SDGSans",children:"Charts"})})]}),(0,b.jsxs)(d.nP,{className:"w-full text-black bg-white focus:outline-none",children:[(0,b.jsxs)(d.x4,{className:"focus:outline-none",children:[(0,b.jsxs)("section",{id:"stats",className:"p-8 mx-auto bg-white max-w-7xl",children:[(0,b.jsxs)(o.Z,{children:["Overall stats about Goal ",C," in ",D]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-12",children:[(0,b.jsxs)("div",{className:"flex flex-col",children:[(0,b.jsxs)("span",{className:"text-4xl font-bold sm:text-6xl leading-18 font-SDGSans",children:[B," / ",z]}
1),(0,b.jsx)("p",{className:"text-xl",children:"targets with data available for at least one indicator"})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("span",{className:"text-4xl font-bold sm:text-6xl font-SDGSans",children:[H," / ",q]}),(0,b.jsxs)("p",{className:"text-xl",children:["indicators with data available for ",D]})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("span",{className:"text-4xl font-bold sm:text-6xl font-SDGSans",children:[J,"%"]}),(0,b.jsxs)("div",{className:"text-xl",children:["indicator coverage for Goal ",C," in ",D]})]})]})]}),(0,b.jsx)("div",{className:"my-2 border-b border-gray-200"}),(0,b.jsxs)("section",{id:"targets",className:"p-8 mx-auto max-w-7xl",children:[(0,b.jsxs)("header",{className:"space-y-4",children:[(0,b.jsx)("h2",{className:"text-6xl uppercase font-SDGSans",children:"Targets"}),(0,b.jsxs)("p",{className:"max-w-lg text-xl",children:[D," currenty has data on these targets for Goal ",C,"."]})]}),(0,b.jsx)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-2 gap-y-8 gap-x-6",children:null===X||void 0===X?void 0:X.map((function(e){var t,s,a,n,i,l=e.targetId,r=e.target,c=String(l).trim().toLowerCase();return(0,b.jsxs)("div",{className:"flex flex-row space-x-4",children:[(0,b.jsx)("div",{className:"flex-shrink-0 w-24 h-24 sm:w-40 sm:h-40",children:(0,b.jsx)("img",{className:"min-w-full min-h-full",src:"/sdg-icons/targets/goal_".concat(C,"_target_").concat(c.replace(".","_"),".svg")})}),(0,b.jsxs)("div",{className:"flex-col space-y-2",children:[(0,b.jsxs)("h3",{className:"text-2xl uppercase font-SDGSans text-goals-".concat(C),children:["Target ",c]}),(0,b.jsx)("p",{className:"text-xl",children:r}),(0,b.jsx)("div",{className:"flex flex-row items-center space-x-1",children:null===(t=W.filter((function(e){return e.target===c})).sort((function(e,t){return e.indicatorId.localeCompare(t.indicatorId,void 0,{numeric:!0,sensitivity:"base"})})))||void 0===t?void 0:t.map((function(e){var t=e.indicatorId,s=e.data;return(0,b.jsx)(y,{indicatorId:t,data:s,goal:C},t)}))}),(0,b.jsxs)("p",{children:[null!==(s=null===W||void 0===W||null===(a=W.filter((function(e){return e.target==c&&e.data})))||void 0===a?void 0:a.length)&&void 0!==s?s:0,"/",null!==(n=null===W||void 0===W||null===(i=W.filter((function(e){return e.target==c})))||void 0===i?void 0:i.length)&&void 0!==n?n:0," covered"]})]})]},l)}))})]}),(0,b.jsx)("section",{id:"explore",className:"bg-goals-".concat(C," p-8 flex flex-col items-end text-white mt-6"),children:(0,b.jsx)("div",{className:"w-full sm:p-3 sm:w-1/2 max-w-7xl",children:(0,b.jsxs)("header",{className:"space-y-4",children:[(0,b.jsx)("h2",{className:"text-6xl font-bold uppercase font-SDGSans",children:"Explore all indicators"}),(0,b.jsxs)("p",{className:"max-w-lg text-xl",children:["Use the Goal Tracker data dashboard to explore the Goal ",C," indicators for ",D,"."]}),(0,b.jsx)(c(),{href:"/platform/".concat(k,"/explorer").concat((null===V||void 0===V?void 0:V.length)>0?"?indicator=".concat(null===V||void 0===V||null===(j=V[0])||void 0===j?void 0:j.id):""),children:(0,b.jsx)("a",{className:"inline-block w-auto px-4 py-2 text-2xl underline uppercase bg-black cursor-pointer bg-opacity-40 hover:bg-opacity-30 font-SDGSans",children:"Start exploring"})})]})})}),(null===L||void 0===L?void 0:L.length)>0&&(0,b.jsxs)("section",{className:"p-8 mx-auto max-w-7xl space-y-8",children:[(0,b.jsxs)("header",{className:"space-y-4",children:[(0,b.jsx)("h2",{className:"text-6xl font-bold uppercase font-SDGSans",children:"Policies"}),(0,b.jsxs)("p",{className:"text-xl",children:["Explore Goal ",C," in the context of ",D," through the latest related policies"]})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:L.map((function(e){var t=e.id,s=e.title,a=e.file;return(0,b.jsxs)("div",{className:"flex flex-row space-x-4",children:[(0,b.jsx)("img",{src:"".concat(a.url,"?fm=jpg&w=96"),className:"w-24 shadow-md lg:w-1/4"}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)("h3",{className:"text-xl font-bold",children:s}),(0,b.jsx)(c(),{href:a.url,children:(0,b.jsx)("a",{className:"inline-block w-auto px-4 py-2 text-2xl uppercase bg-gray-300 font-SDGSans hover:bg-black hover:text-white",target:"_blank",children:"Download"})})]})]},t)}))})]})]}),(0,b.jsx)(d.x4,{className:"focus:outline-none",children:(0,b.jsxs)("section",{className:"p-8 mx-auto bg-white max-w-7xl space-y-4",children:[(0,b.jsxs)("div",{ref:Z,children:[(0,b.jsx)(N.Q7,{showIndicator:"top",selected:$,setSelected:ee,indicatorList:V,specialCase:!0}),(0,b.jsxs)("section",{className:"pt-5 min-h-96",children:[(0,b.jsx)(o.Z,{children:"Explore data"}),te&&1===ae&&"somalia"===k?(0,b.jsx)(v.k,{data:te,indicator:$,type:"line",country:D,slug:k,exportAsImage:P,isPrinting:T},$):(0,b.jsx)(g.k,{data:te,indicator:$,type:"line",country:D,slug:k},$)]},C)]}),(0,b.jsxs)("section",{className:"grid gap-3 md:grid-cols-3",children:[(0,b.jsx)(o.Z,{children:"Indicator metadata"}),te&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:"text-2xl uppercase font-SDGSans",children:"Definition"}),(0,b.jsx)("p",{className:"whitespace-pre-line",children:null!==(I=te.definition)&&void 0!==I?I:"No definition reported"})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:"text-2xl uppercase font-SDGSans",children:"Method of computation"}),(0,b.jsx)("p",{className:"whitespace-pre-line",children:null!==(G=te.methodOfComputation)&&void 0!==G?G:"No method of computation reported"})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:"text-2xl uppercase font-SDGSans",children:"Source"}),(0,b.jsx)("p",{className:"whitespace-pre-line",children:(null===(_=te.sources)||void 0===_?void 0:_.length)>0?te.sources:"No data source reported"})]})]})]})]})})]})]})})]})}},2229:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/platform/[country]/goals/[goal]",function(){return s(5998)}])}},function(e){e.O(0,[443,276,964,62,380,704,870,569,539,873,599,774,888,179],(function(){return t=2229,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.