1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4757],{79326:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(37876),l=t(14232);class a extends l.Component{static getDerivedStateFromError(e){return{hasError:!0}}render(){return this.state.hasError?(0,n.jsx)("h1",{children:" Something went wrong. "}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}let c=a},94757:(e,r,t)=>{t.r(r),t.d(r,{default:()=>h});var n=t(37876),l=t(14232),a=t(89099),c=t(16412),i=t(31777);t(54341);var s=t(8907),o=t(14e3),u=t(79326),d=t(31195);let h=function(e){var r,t,h;let{navList:v}=e,m=(0,a.useRouter)(),f=(0,o.usePathname)(),p=m.pathname,x=null!=(h=m.query.parentslug)?h:"ministry",b=m.pathname.replace(/\/\[.*\]/,""),{mainManu:j}=(0,i.d4)(e=>e.menu);(0,i.wA)();let[N,w]=(0,l.useState)(),[E,L]=(0,l.useState)(!1),[g,k]=(0,l.useState)(!0),[S,_]=(0,l.useState)(!1),y=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=()=>{L(y.current.scrollLeft>0),k(y.current.scrollLeft<y.current.scrollWidth-y.current.clientWidth)},r=()=>{_(y.current.scrollWidth>y.current.clientWidth)};return y.current.addEventListener("scroll",e),r(),window.addEventListener("resize",r),()=>{y.current&&y.current.removeEventListener("scroll",e),window.removeEventListener("resize",r)}},[y.current,null==(r=y.current)?void 0:r.scrollWidth,null==(t=y.current)?void 0:t.clientWidth]),(0,l.useEffect)(()=>{j&&w((0,s.LL)(j,b||"/".concat(x)))},[p,j]),(0,n.jsx)(u.A,{children:(0,n.jsx)("div",{className:"navigationSection",children:(0,n.jsx)("div",{className:"container px-0",children:(0,n.jsxs)("nav",{className:"innernav position-relative d-flex justify-content-between",role:"navigation","aria-labelledby":"sub-navigation",children:[S&&E&&(0,n.jsx)("button",{className:"scroll-btn leftside pointer","aria-label":"Scroll Left",onClick:()=>{y.current&&(y.current.scrollLeft-=50)},children:(0,n.jsx)(d.A,{iconName:"keyboard_arrow_left"})}),(0,n.jsx)("ul",{className:"nav",ref:y,children:N&&(null==N?void 0:N.map((e,r)=>{let t=f===(null==e?void 0:e.url);return(0,n.jsx)("li",{className:"nav-item",children:(0,n.jsx)(c.N,{href:"".concat(null==e?void 0:e.url),className:"nav-link ".concat(t?"active":""),title:"".concat(null==e?void 0:e.title," ").concat(t?"active":""),"aria-current":t?"page":void 0,children:null==e?void 0:e.title})},r)}))}),S&&g&&(0,n.jsx)("button",{className:"scroll-btn pointer",onClick:()=>{y.current&&(y.current.scrollLeft+=50)},"aria-label":"Scroll right",children:(0,n.jsx)(d.A,{iconName:"keyboard_arrow_right"})})]})})})})}}}]);
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.