(this.webpackJsonpElection_Commission_Nepal=this.webpackJsonpElection_Commission_Nepal||[]).push([[0],{16:function(e){e.exports=JSON.parse('{"translation":{"np":{"email":"\u0908\u092e\u0947\u0932","phone":"\u092b\u094b\u0928","mobile":"\u092e\u094b\u092c\u093e\u0907\u0932","video":"\u092d\u093f\u0921\u093f\u092f\u094b","gallery":"\u0917\u094d\u092f\u093e\u0932\u0930\u0940","latest_news":"\u0924\u093e\u091c\u093e \u0938\u092e\u093e\u091a\u093e\u0930","press_release":"\u092a\u094d\u0930\u0947\u0938 \u0935\u093f\u091c\u094d\u091e\u092a\u094d\u0924\u093f","downloads":"\u0921\u093e\u0909\u0928\u0932\u094b\u0921","contact_us":"\u0938\u092e\u094d\u092a\u0930\u094d\u0915 \u0920\u0947\u0917\u093e\u0928\u093e","news":"\u0938\u092e\u093e\u091a\u093e\u0930","notice":"\u0938\u0942\u091a\u0928\u093e","introduction":"\u092a\u0930\u093f\u091a\u092f","information":"\u0938\u0942\u091a\u0928\u093e","latest_update":"\u0924\u093e\u091c\u093e \u0905\u092a\u0921\u0947\u091f\u0939\u0930\u0942","members":"\u0938\u0926\u0938\u094d\u092f\u0939\u0930\u0942","election_commissioners":"\u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0906\u092f\u0941\u0915\u094d\u0924\u0939\u0930\u0941","facebook_feeds":"\u092b\u0947\u0938\u092c\u0941\u0915 \u092b\u093f\u0921\u0939\u0930\u0942","twitter_feeds":"\u091f\u094d\u0935\u093f\u091f\u0930 \u092b\u093f\u0921\u0939\u0930\u0942","home":"\u0917\u0943\u0939 \u092a\u0943\u0937\u094d\u0920","view_all":"\u0938\u092c\u0948 \u0939\u0947\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","quick_links":"\u0926\u094d\u0930\u0941\u0924 \u0932\u093f\u0902\u0915\u0939\u0930\u0942","additional_links":"\u0925\u092a \u0932\u093f\u0902\u0915\u0939\u0930\u0942","links_to_district_office":"\u091c\u093f\u0932\u094d\u0932\u093e \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f\u0915\u094b \u0932\u093f\u0902\u0915\u0939\u0930\u0941","connect_with_us":"\u0938\u093e\u092e\u093e\u091c\u093f\u0915 \u092e\u093f\u0921\u093f\u092f\u093e \u0932\u093f\u0902\u0915\u0939\u0930\u0942","what_are_you_looking_for":"\u0924\u092a\u093e\u0908\u0901 \u0915\u0947 \u0916\u094b\u091c\u094d\u0926\u0948 \u0939\u0941\u0928\u0941\u0939\u0941\u0928\u094d\u091b ?","events":"\u0938\u092e\u093e\u0930\u094b\u0939","districts":"\u091c\u093f\u0932\u094d\u0932\u093e","about_us":"\u0939\u093e\u092e\u094d\u0930\u094b\u092c\u093e\u0930\u0947","send":"\u092a\u0920\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","government_of_nepal":"\u0928\u0947\u092a\u093e\u0932 \u0938\u0930\u0915\u093e\u0930","activities":"\u0917\u0924\u093f\u0935\u093f\u0927\u093f\u0939\u0930\u0941","FAQs":"\u0938\u094b\u0927\u093f\u0928\u0947 \u092a\u094d\u0930\u0936\u094d\u0928\u0939\u0930\u0942","please_fill_all_of_required_field":"\u0915\u0943\u092a\u092f\u093e \u0938\u092c\u0948 \u0906\u0935\u0936\u094d\u092f\u0915 \u0915\u094b\u0920\u093e \u092d\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d!","required":"\u0906\u0935\u0936\u094d\u092f\u0915","sorry_no_members_found":"\u092e\u093e\u092b \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d \u0915\u0941\u0928\u0948 \u0938\u0926\u0938\u094d\u092f \u092d\u0947\u091f\u093f\u090f\u0928 !!","find_your_name":"\u0924\u092a\u093e\u0908\u0902\u0915\u094b \u0928\u093e\u092e \u0916\u094b\u091c\u094d\u0928\u0941\u0939\u094b\u0938\u094d","voter_list":"\u0968\u0966\u096d\u096d \u092a\u0941\u0938 \u0966\u096b \u0917\u0924\u0947 \u0938\u092e\u094d\u092e \u0967\u096e \u0935\u0930\u094d\u0937 \u0909\u092e\u0947\u0930 \u092a\u0941\u0930\u093e \u092d\u090f\u0915\u093e \u092e\u0924\u0926\u093e\u0924\u093e\u0915\u094b \u0905\u0928\u094d\u0924\u093f\u092e \u092e\u0924\u0926\u093e\u0924\u093e \u0928\u093e\u092e\u093e\u0935\u0932\u0940","election_commission":"\u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0906\u092f\u094b\u0917 \u0928\u0947\u092a\u093e\u0932","main_site":"\u092e\u0941\u0916\u094d\u092f \u0938\u093e\u0907\u091f","it_subsystem":"\u0906\u0908\u091f\u0940 \u0909\u092a\u092a\u094d\u0930\u0923\u093e\u0932\u0940","province":"\u092a\u094d\u0930\u0926\u0947\u0936","provice_district_offices":"\u092a\u094d\u0930\u0926\u0947\u0936/ \u091c\u093f\u0932\u094d\u0932\u093e \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f\u0939\u0930\u0942","province_offices":"\u092a\u094d\u0930\u0926\u0947\u0936 \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f\u0939\u0930\u0942","location":"\u0915\u093e\u0928\u094d\u0924\u093f\u092a\u0925 \u0915\u093e\u0920\u092e\u093e\u0923\u094d\u0921\u094c","district_offices":"\u092a\u094d\u0930\u0926\u0947\u0936 \u091c\u093f\u0932\u094d\u0932\u093e \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f","voter_roll":"\u092e\u0924\u0926\u093e\u0924\u093e \u0928\u093e\u092e\u093e\u0935\u0932\u0940 ","youtube_links":"\u092f\u0942\u091f\u094d\u092f\u0942\u092c \u092b\u093f\u0921","fax":"\u092b\u094d\u092f\u093e\u0915\u094d\u0938","facebook":"\u092b\u0947\u0938\u092c\u0941\u0915","twitter":"\u091f\u094d\u0935\u093f\u091f\u0930","old_website":"\u092a\u0941\u0930\u093e\u0928\u094b \u0935\u0947\u092c\u0938\u093e\u0907\u091f","p_link_des":"\u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928\u0915\u093e \u0938\u092e\u094d\u092a\u0942\u0930\u094d\u0923 \u0917\u0924\u093f\u0935\u093f\u0927\u093f\u0939\u0930\u0942\u0932\u093e\u0908 \u0906\u092e \u091c\u0928\u0924\u093e\u0915\u094b \u0938\u0939\u091c \u092a\u0939\u0941\u0901\u091a\u0938\u092e\u094d\u092e \u092a\u0941\u0930\u094d\u092f\u093e\u0909\u0928 \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0906\u092f\u094b\u0917 \u0905\u0928\u094d\u0924\u0930\u094d\u0917\u0924 \u096d \u0935\u091f\u093e \u092a\u094d\u0930\u0926\u0947\u0936\u092e\u093e \u092a\u094d\u0930\u0926\u0947\u0936 \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f \u0930\u0939\u0947\u0915\u093e \u091b\u0928 \u091c\u0938\u092e\u093e \u0928\u0947\u092a\u093e\u0932 \u0938\u0930\u0915\u093e\u0930\u0915\u094b \u092a\u094d\u0930\u0936\u093e\u0938\u0928 \u0938\u0947\u0935\u093e, \u0938\u093e\u092e\u093e\u0928\u094d\u092f \u092a\u094d\u0930\u0936\u093e\u0938\u0928 \u0938\u092e\u0942\u0939, \u0930\u093e\u091c\u092a\u0924\u094d\u0930\u093e\u0902\u0915\u093f\u0924 \u0926\u094d\u0935\u093f\u0924\u094d\u0924\u0940\u092f \u0936\u094d\u0930\u0947\u0923\u0940\u0915\u094b \u092a\u094d\u0930\u0926\u0947\u0936 \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0905\u0927\u093f\u0915\u093e\u0930\u0940 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f \u092a\u094d\u0930\u092e\u0941\u0916\u0915\u093e \u0930\u0942\u092a\u092e\u093e \u0930\u0939\u0928\u0947 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e \u0917\u0930\u093f\u090f\u0915\u094b \u091b \u0964 \u0938\u092e\u094d\u092c\u0928\u094d\u0927\u093f\u0924 \u092a\u094d\u0930\u0926\u0947\u0936 \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f\u0915\u094b \u0935\u0947\u092c\u0938\u093e\u0907\u091f\u092e\u093e \u091c\u093e\u0928\u0915\u094b \u0932\u093e\u0917\u093f  \u092a\u094d\u0930\u0926\u0947\u0936 \u091b\u0928\u094c\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938 :","d_link_des":"\u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928\u0915\u093e \u0938\u092e\u094d\u092a\u0942\u0930\u094d\u0923 \u0917\u0924\u093f\u0935\u093f\u0927\u093f\u0939\u0930\u0942\u0932\u093e\u0908 \u0906\u092e \u091c\u0928\u0924\u093e\u0915\u094b \u0938\u0939\u091c \u092a\u0939\u0941\u0901\u091a\u0938\u092e\u094d\u092e \u092a\u0941\u0930\u094d\u092f\u093e\u0909\u0928 \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0906\u092f\u094b\u0917 \u0905\u0928\u094d\u0924\u0930\u094d\u0917\u0924 \u096d\u0966 \u0935\u091f\u093e \u091c\u093f\u0932\u094d\u0932\u093e \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f \u0930\u0939\u0947\u0915\u093e \u091b\u0928 \u091c\u0938\u092e\u093e \u0928\u0947\u092a\u093e\u0932 \u0938\u0930\u0915\u093e\u0930\u0915\u094b \u092a\u094d\u0930\u0936\u093e\u0938\u0928 \u0938\u0947\u0935\u093e, \u0938\u093e\u092e\u093e\u0928\u094d\u092f \u092a\u094d\u0930\u0936\u093e\u0938\u0928 \u0938\u092e\u0942\u0939, \u0930\u093e\u091c\u092a\u0924\u094d\u0930\u093e\u0902\u0915\u093f\u0924 \u0924\u0943\u0924\u0940\u092f \u0936\u094d\u0930\u0947\u0923\u0940\u0915\u094b \u091c\u093f\u0932\u094d\u0932\u093e \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0905\u0927\u093f\u0915\u093e\u0930\u0940 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f \u092a\u094d\u0930\u092e\u0941\u0916\u0915\u093e \u0930\u0942\u092a\u092e\u093e \u0930\u0939\u0928\u0947 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e \u0917\u0930\u093f\u090f\u0915\u094b \u091b \u0964 \u0938\u092e\u094d\u092c\u0928\u094d\u0927\u093f\u0924 \u091c\u093f\u0932\u094d\u0932\u093e \u0928\u093f\u0930\u094d\u0935\u093e\u091a\u0928 \u0915\u093e\u0930\u094d\u092f\u093e\u0932\u092f\u0915\u094b \u0935\u0947\u092c\u0938\u093e\u0907\u091f\u092e\u093e \u091c\u093e\u0928\u0915\u094b \u0932\u093e\u0917\u093f  \u092a\u094d\u0930\u0926\u0947\u0936 \u091b\u0928\u094c\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938 :","close_menu":"\u092e\u0947\u0928\u0941 \u092c\u0928\u094d\u0926","no_galleries":"\u092e\u093e\u092b \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d \u0915\u0941\u0928\u0948 \u0917\u094d\u092f\u093e\u0932\u0930\u0940\u0939\u0930\u0942 \u092b\u0947\u0932\u093e \u092a\u0930\u0947\u0928\u0928\u094d","branch_profile":"\u0936\u093e\u0916\u093e \u092a\u094d\u0930\u094b\u092b\u093e\u0907\u0932 "},"en":{"facebook":"Facebook","twitter":"Twitter","email":"Email","phone":"Phone","mobile":"Mobile","video":"Videos","gallery":"Gallery","latest_news":"Latest News","press_release":"Press releases","downloads":"Downloads","contact_us":"Contact us","news":"News","notice":"Notice","introduction":"Introduction","information":"Information","latest_update":"Latest updates","members":"Members","election_commissioners":"Election commissioners","facebook_feeds":"Facebook Feeds","twitter_feeds":"Twitter Feeds","home":"Home","fax":"Fax","view_all":"View all","quick_links":"Quick links","additional_links":"Additional links","links_to_district_office":"Link to district office","connect_with_us":"Connect with us","what_are_you_looking_for":"What are ou looking for?","events":"Events","districts":"Districts","about_us":"About us","send":"Send","government_of_nepal":"Government of Nepal","activities":"Activities","FAQs":"FAQs","please_fill_all_of_required_field":"Please fill all of the required fields !","required":"required","sorry_no_members_found":"Sorry no members found!!","find_your_name":"Find your name","voter_list":"Final voter list of voters who have completed 18 years of age by December 20, 2010","election_commission":"Election Commission Nepal","main_site":"Main site","it_subsystem":"IT subsystem","province":"Province","provice_district_offices":"Provice / District election offices","province_offices":"Province Election Offices","district_offices":"District Election Offices","location":"Kantipath Kathmandu","voter_roll":"Voter roll","youtube_links":"Youtube feeds","old_website":"Old Website","p_link_des":"Province Offices of all states have developed their websites which include Statistics and information of local Interest. Latest electoral rolls with search facility are also available on these sites.","d_link_des":"District Offices of all states have developed their websites which include Statistics and information of local Interest. Latest electoral rolls with search facility are also available on these sites.","close_menu":"Close Menu","no_galleries":"Sorry no galleries found","branch_profile":"Branch Profile"}}}')},176:function(e,t,n){},187:function(e,t,n){},188:function(e,t,n){},207:function(e,t,n){},210:function(e,t,n){"use strict";n.r(t);var c=n(2),a=n.n(c),s=n(20),i=n.n(s),r=n(17),l=function(e,t){t=JSON.stringify(t),localStorage.setItem(e,t)},o=function(e){var t=localStorage.getItem(e);return t?t=JSON.parse(t):null}("lang")||"np",d=n(6),u=n.n(d),j=n(12),b=n(14),h=n(245),m=n(250),x=n(251),v=n(15),O=n(28),p=n(125),f=n(288),g=n(80),y=n(24),N={searches:void 0,error:void 0,searching:!1,keyword:null},w=Object(y.b)({name:"search",initialState:N,reducers:{searchRequest:function(e){e.searching=!0},searchSuccess:function(e,t){e.searching=!1,e.searches=t.payload.searches,e.keyword=t.payload.keyword},searchFail:function(e,t){e.searching=!1,e.error=t.payload}}}),_=w.actions,k=_.searchFail,S=_.searchRequest,F=_.searchSuccess,C=w.reducer,M=n(113),P=n.n(M),E=function(){var e=P.a.create({baseURL:"https://election.gov.np/admin/public/api/",headers:{Accept:"*/*","access-control-allow-origin":"*"}});return e.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)})),e},D=function(e){return function(){var t=Object(j.a)(u.a.mark((function t(n){var c,a;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(S()),t.prev=1,t.next=4,E().get("/search?keyword="+e+"&&lang="+o);case 4:c=t.sent,a={searches:c.data.data,keyword:e},n(F(a)),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),t.t0&&t.t0.response&&t.t0.response.data&&n(k(t.t0.response.data)),n(k("Something went wrong!"));case 13:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}()},L=n(8),B=n(33),R={translation:void 0,loading:!1,error:void 0},q=Object(y.b)({name:"translation",initialState:R,reducers:{fetchTranslationRequest:function(e){e.loading=!0},fetchTranslationSuccess:function(e,t){e.loading=!1,e.translation=t.payload},fetchTranslationFail:function(e,t){e.loading=!1,e.error=t.payload}}}),A=q.actions,W=A.fetchTranslationFail,V=A.fetchTranslationRequest,I=A.fetchTranslationSuccess,T=q.reducer,G=n(1),Q=function(){var e=Object(r.h)(),t=Object(r.g)(),n=Object(L.d)(),s=Object(L.e)((function(e){return e.translation})).translation,i=Object(r.i)(),d=i.lang,y=i.dist_slug;Object(c.useEffect)((function(){s||n(function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(V()),e.prev=1,e.next=4,E().get("translations");case 4:n=e.sent,t(I(n.data.data)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),e.t0&&e.t0.response&&e.t0.response.data&&t(W(e.t0.response.data)),t(W("Something went wrong!"));case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}())}),[]),Object(c.useEffect)((function(){if(o!==d)if("en"===d)l("lang","en"),window.location.reload();else{l("lang","np");var n=e.pathname.split("/");n[1]="np";var c=n.join("/");t.push(c),window.location.reload()}}),[d]),Object(c.useEffect)((function(){"np"===o?document.body.classList.add("nepali"):document.body.classList.remove("nepali")}),[o]);var N=function(n){var c=e.pathname.split("/");if(c[1]!==n){c[1]=n;var a=c.join("/");t.push(a)}},w=a.a.useState(null),_=Object(b.a)(w,2),k=_[0],S=_[1],F=Object(g.debounce)((function(e){n(Object(B.d)("/".concat(d,"/search"))),n(D(e.target.value))}),1e3);return Object(G.jsx)("div",{className:"ecn-topbar",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)("div",{className:"display-flex-ac",children:[y?Object(G.jsx)("h1",{className:"text-14-primary",style:{flex:2,marginRight:"1em"},children:Object(G.jsx)(v.a,{to:"/".concat(o),className:"text-primary",children:s?s.main_site["np"===o?"value_np":"value_en"]:""})}):"",Object(G.jsx)("div",{style:{flex:8},children:Object(G.jsxs)("ul",{className:"ecn-topbar--menu",children:[Object(G.jsx)("li",{children:Object(G.jsx)(v.a,{to:"/".concat(o,"/faqs"),children:Object(G.jsx)("span",{style:{textAlign:"right"},children:s?s.faq["np"===o?"value_np":"value_en"]:""})})}),"np"===o?Object(G.jsx)("li",{children:Object(G.jsx)("p",{onClick:function(){return N("en")},children:Object(G.jsx)("span",{className:"eng-number",style:{lineHeight:"19.5px"},children:"English"})})}):Object(G.jsx)("li",{children:Object(G.jsx)("p",{onClick:function(){return N("np")},style:{lineHeight:"19.5px"},children:Object(G.jsx)("span",{children:"\u0928\u0947\u092a\u093e\u0932\u0940"})})}),Object(G.jsxs)("li",{children:[Object(G.jsx)("p",{onClick:function(e){S(e.currentTarget)},style:{padding:"3px"},children:Object(G.jsx)(O.g,{})}),Object(G.jsx)(p.a,{id:"simple-menu",anchorEl:k,keepMounted:!0,open:Boolean(k),onClose:function(){S(null)},children:Object(G.jsx)(f.a,{className:"search-bar",children:Object(G.jsx)(m.a,{placeholder:"np"===d?"\u0924\u092a\u093e\u0908\u0901 \u0915\u0947 \u0916\u094b\u091c\u094d\u0926\u0948 \u0939\u0941\u0928\u0941\u0939\u0941\u0928\u094d\u091b ?":"What are you looking for?",className:"search-input",onChange:F,endAdornment:Object(G.jsx)(x.a,{position:"end",children:Object(G.jsx)(O.g,{className:"icon"})})})})})]}),Object(G.jsx)("li",{children:Object(G.jsx)("p",{children:Object(G.jsx)("a",{href:"https://mail.election.gov.np/mail/",target:"_blank",rel:"noreferrer",className:"text-primary",children:Object(G.jsx)(O.e,{})})})}),Object(G.jsx)]})})]})})})},z=n(252),J=n.p+"static/media/logo.fdf1cfa1.png",Y=n.p+"static/media/logo-1.56a73d1a.png",X=n(16),K=function(e){var t,n,c,a,s,i=Object(L.e)((function(e){return e.translation})),r=e.branch,l=e.isMainSite;return Object(G.jsx)("div",{className:"ecn-logo-searchbar",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,alignItems:"center",children:[Object(G.jsx)(z.a,{item:!0,xs:12,md:4,lg:4,xl:4,style:{display:"flex",alignItems:"center"},children:Object(G.jsx)("div",{className:"logo",children:r?Object(G.jsx)(v.a,{to:l?"/":"/".concat(o,"/district/").concat(r.slug),children:Object(G.jsx)("img",{src:J,alt:"logo1"})}):Object(G.jsx)(v.a,{to:"/".concat(o),children:Object(G.jsx)("img",{src:J,alt:"logo1"})})})}),Object(G.jsx)(z.a,{item:!0,xs:6,md:4,lg:4,xl:4,children:r&&!l?Object(G.jsxs)("div",{children:[Object(G.jsx)("h2",{className:"text-26-secondary bold text-center header-title header-title-office",children:r.district&&r.district.length?i.translation?i.translation.district_title["np"===o?"value_np":"value_en"]:"":(null===i||void 0===i?void 0:i.translation)?null===i||void 0===i||null===(t=i.translation)||void 0===t?void 0:t.province_title["np"===o?"value_np":"value_en"]:""}),Object(G.jsx)("p",{className:"text-center header-sub header-district-name",children:null!==(n=null===r||void 0===r||null===(c=r.translations[0])||void 0===c?void 0:c.office_address)&&void 0!==n?n:r.district||r.province})]}):Object(G.jsxs)("div",{children:[Object(G.jsx)("h2",{className:"text-26-secondary bold text-center header-title",children:X.translation[o].election_commission}),Object(G.jsx)("p",{className:"text-16-grey text-center header-sub",children:null!==(a=null===r||void 0===r||null===(s=r.translations[0])||void 0===s?void 0:s.office_address)&&void 0!==a?a:X.translation[o].location})]})}),Object(G.jsx)(z.a,{item:!0,xs:6,md:4,lg:4,xl:4,children:Object(G.jsx)("div",{className:"logo display-flex justify-content-end",children:Object(G.jsx)("img",{src:Y,alt:"logo2",style:{width:"250px"}})})})]})})})},U=n(55),H=n(26),Z=n(85),$=n(118),ee=function(){function e(t,n,c,a){Object(Z.a)(this,e),this.toggleButton=t,this.navMenu=n,this.childClass=c,this.childToggleBtnClass=a}return Object($.a)(e,[{key:"init",value:function(){var e=this,t=document.getElementById(this.toggleButton),n=document.getElementById(this.navMenu),c=document.body,a=document.getElementById("ecn-navbar");if(t&&n&&c&&a){t.addEventListener("click",(function(){n.classList.toggle("show"),n.classList.contains("show")?c.classList.add("navmenu-open"):c.classList.remove("navmenu-open")}));var s=a.offsetTop;window.onscroll=function(){window.pageYOffset>s?a.classList.add("sticky"):a.classList.remove("sticky")}}setTimeout((function(){e.handleSubmenu()}),500)}},{key:"handleSubmenu",value:function(){var e=document.getElementsByClassName(this.childClass),t=document.getElementsByClassName(this.childToggleBtnClass);if(e&&e.length>0&&t&&t.length>0)for(var n=function(n){t[n].addEventListener("click",(function(){e[n].classList.toggle("showMenu"),e[n].classList.contains("showMenu")?t[n].classList.add("rotate-180"):t[n].classList.remove("rotate-180")}))},c=0;c<t.length;c++)n(c)}},{key:"closeMenu",value:function(){var e=document.getElementById(this.toggleButton),t=document.getElementById(this.navMenu),n=document.body;e&&t&&n&&(n.classList.remove("navmenu-open"),t.classList.remove("show"))}}]),e}(),te={menu:void 0,error:void 0,loading:!1,districtMenu:void 0,loadingDM:!1,quickLinks:void 0,loadingQL:!1,additionalLinks:void 0,loadingAL:!1,loadingSocial:!1,socialMedia:void 0},ne=Object(y.b)({name:"menu",initialState:te,reducers:{fetchtMenuRequest:function(e){e.loading=!0},fetchMenuSuccess:function(e,t){e.loading=!1,e.menu=t.payload},fetchMenuError:function(e,t){e.loading=!1,e.error=t.payload},fetchDMrequest:function(e){e.loadingDM=!0},fetchDMsuccess:function(e,t){e.loadingDM=!1,e.districtMenu=t.payload},fetchDMfail:function(e,t){e.loadingDM=!1,e.error=t.payload},fetchALrequest:function(e){e.loadingAL=!0},fetchALsuccess:function(e,t){e.loadingAL=!1,e.additionalLinks=t.payload},fetchALfail:function(e,t){e.loadingAL=!1,e.error=t.payload},fetchQLrequest:function(e){e.loadingQL=!0},fetchQLsuccess:function(e,t){e.loadingQL=!1,e.quickLinks=t.payload},fetchQLfail:function(e,t){e.loadingQL=!1,e.error=t.payload},fetchSocialRequest:function(e){e.loadingSocial=!0},fetchSocialsuccess:function(e,t){e.loadingSocial=!1,e.quickLinks=t.payload},fetchSocialfail:function(e,t){e.loadingSocial=!1,e.error=t.payload}}}),ce=ne.actions,ae=ce.fetchtMenuRequest,se=ce.fetchMenuError,ie=ce.fetchMenuSuccess,re=ce.fetchDMfail,le=ce.fetchDMrequest,oe=ce.fetchDMsuccess,de=ce.fetchALfail,ue=ce.fetchALrequest,je=ce.fetchALsuccess,be=ce.fetchQLfail,he=ce.fetchQLrequest,me=ce.fetchQLsuccess,xe=(ce.fetchSocialRequest,ce.fetchSocialfail,ce.fetchSocialsuccess,ne.reducer),ve=function(e){return function(){var t=Object(j.a)(u.a.mark((function t(n){var c;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(le()),t.prev=1,t.next=4,E().get("resources/menus/".concat(e,"?lang=").concat(o));case 4:c=t.sent,n(oe(c.data.data)),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),t.t0&&t.t0.response&&t.t0.response.data&&n(re(t.t0.response.data)),n(re("Something went wrong!"));case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},Oe=(n(176),function(){return Object(s.createPortal)(Object(G.jsx)("div",{className:"ecn-preloader-wrapper",children:Object(G.jsx)("div",{className:"loadingio-spinner-pulse-m6xhslg70k",children:Object(G.jsxs)("div",{className:"ldio-53m4ly87z12",children:[Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{})]})})}),document.body)}),pe=n(127),fe=function(e,t){return e.length>t&&(e=e.substring(0,t)+"..."),e},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=null===e||void 0===e?void 0:e.toString();if("NaN"===n)return"";if((null===n||void 0===n?void 0:n.length)>3){var c=n.substring(n.length-3),a=n.slice(0,-3);return t+" "+(a=a.replace(/\B(?=(\d{2})+(?!\d))/g,","))+","+c}return t+" "+e},ye=function(e){var t=new FormData;return Object.keys(e).forEach((function(n){t.append(n,e[n])})),t},Ne=function(e){return"/"===e.charAt(0)?e:"/"+e},we=function(e){for(var t=e.toString().split(""),n=0;n<t.length;n++){var c=t[n].charCodeAt(0);c>=48&&c<=57&&(t[n]=String.fromCharCode(c+2358))}return t.join("")},_e=new ee("toggle-menu-button","ecn-navigation","child-menu","ecn-dropdown-toggle-icon"),ke=function(){var e=Object(L.d)(),t=Object(L.e)((function(e){return e.menu})),n=t.loading,a=t.menu;return Object(c.useEffect)((function(){_e.init()}),[n]),Object(c.useEffect)((function(){var t;a||e((t="header-menu",function(){var e=Object(j.a)(u.a.mark((function e(n){var c;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(ae()),e.prev=1,e.next=4,E().get("resources/menus/".concat(t,"?lang=").concat(o));case 4:c=e.sent,n(ie(c.data.data)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),e.t0&&e.t0.response&&e.t0.response.data&&n(se(e.t0.response.data)),n(se("Something went wrong!"));case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()))}),[e]),Object(G.jsx)("nav",{className:"ech-navbar",id:"ecn-navbar",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,children:[Object(G.jsxs)(z.a,{item:!0,xs:6,md:"np"==o?10:11,children:[Object(G.jsx)("ul",{children:Object(G.jsx)("li",{className:"navigation-list",id:"toggle-menu-button",children:Object(G.jsx)(U.b,{})})}),Object(G.jsx)("div",{className:"menu-backdrop",onClick:function(){return _e.closeMenu()}}),Object(G.jsxs)("ul",{className:"navigation",id:"ecn-navigation",style:{minHeight:"10px"},children:[Object(G.jsxs)("li",{className:"navigation-list close-menu",onClick:function(){return _e.closeMenu()},children:[Object(G.jsx)(U.a,{}),Object(G.jsx)("span",{children:X.translation[o].close_menu})]}),n?Object(G.jsx)(Oe,{}):a&&a.children.length?a.children.map((function(e,t){return Object(G.jsxs)("li",{className:"navigation-list",children:[Object(G.jsx)(v.b,{to:(null===e||void 0===e?void 0:e.external_url)?{pathname:null===e||void 0===e?void 0:e.external_url}:(null===e||void 0===e?void 0:e.page_exists)?"/"+o+Ne(e.key):"",target:(null===e||void 0===e?void 0:e.external_url)?"_blank":"_self",style:(null===e||void 0===e?void 0:e.page_exists)?{}:{pointerEvents:"none"},exact:!0,onClick:function(){return _e.closeMenu()},activeClassName:"active",children:Object(G.jsx)("span",{className:"display-flex align-item-center",children:e.name?"/"===e.key?Object(G.jsx)(H.d,{style:{fontSize:"20px"},className:"menu-home-icon"}):e.name:""})}),e.children&&e.children.length?Object(G.jsx)(O.a,{className:"ecn-dropdown-toggle-icon"}):"",e.children&&e.children.length?Object(G.jsx)("ul",{className:"child-menu",children:e.children.map((function(e,t){return Object(G.jsxs)("li",{children:[Object(G.jsx)(v.b,{to:"/"+o+Ne(e.key),exact:!0,onClick:function(){return _e.closeMenu()},activeClassName:"active",children:Object(G.jsx)("span",{children:e.name||"/"})}),e.children&&e.children.length?Object(G.jsx)(O.a,{className:"child-dropdown"}):"",e.children&&e.children.length?Object(G.jsx)("ul",{className:"sub-menu",children:e.children.map((function(e,t){return Object(G.jsx)("li",{children:Object(G.jsx)(v.b,{to:"/"+o+Ne(e.key),exact:!0,onClick:function(){return _e.closeMenu()},activeClassName:"active",children:Object(G.jsx)("span",{children:e.name||""})})},t)}))}):""]},t)}))}):""]},t)})):""]})]}),Object(G.jsx)(z.a,{item:!0,xs:6,md:"np"==o?2:1,className:"display-flex  align-item-center",style:{justifyContent:"flex-end"}})]})})})},Se=function(e){var t=e.branch;return Object(G.jsx)(G.Fragment,{children:Object(G.jsxs)("header",{className:"ecn-header",children:[Object(G.jsx)(Q,{}),Object(G.jsx)(K,{branch:t,isMainSite:!0}),Object(G.jsx)(ke,{})]})})},Fe=function(e){var t,n,c=e.branch;return Object(G.jsxs)("div",{className:"footer-about",children:[Object(G.jsx)("div",{className:"img-wrapper",children:Object(G.jsx)("img",{src:Y,alt:""})}),c?Object(G.jsxs)("ul",{children:[Object(G.jsx)("li",{children:null!==(t=null===c||void 0===c||null===(n=c.translations[0])||void 0===n?void 0:n.office_address)&&void 0!==t?t:c.district||c.province}),Object(G.jsxs)("li",{className:"dev-number",children:[X.translation[o].phone,": ","np"===o?we(c.phone.toString()):c.phone]}),Object(G.jsxs)("li",{className:"eng-number",children:[X.translation[o].email," :  ",c.email]})]}):""]})},Ce=function(){var e=Object(L.e)((function(e){return e})),t=e.menu,n=e.translation,a=t.quickLinks,s=t.loadingQL,i=Object(L.d)();return Object(c.useEffect)((function(){var e;a||i((e="quick-links",function(){var t=Object(j.a)(u.a.mark((function t(n){var c;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(he()),t.prev=1,t.next=4,E().get("resources/menus/".concat(e,"?lang=").concat(o));case 4:c=t.sent,n(me(c.data.data)),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),t.t0&&t.t0.response&&t.t0.response.data&&n(be(t.t0.response.data)),n(be("Something went wrong!"));case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()))}),[i]),Object(G.jsx)(G.Fragment,{children:s?"":Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)("h3",{className:"text-16-white",children:n.translation?n.translation.quick_links["np"===o?"value_np":"value_en"]:""}),Object(G.jsx)("ul",{children:a&&a.children.length?a.children.map((function(e){var t,n=null===e||void 0===e||null===(t=e.key)||void 0===t?void 0:t.startsWith("https"),c=n?{pathname:null===e||void 0===e?void 0:e.key}:"/".concat(o).concat(e.key);return Object(G.jsx)("li",{children:Object(G.jsx)(v.a,{to:c,target:n?"_blank":"_self",children:e.name})},e.id)})):""})]})})},Me=function(){var e=Object(L.e)((function(e){return e})),t=e.menu,n=e.translation,a=t.additionalLinks,s=t.loadingAL,i=Object(L.d)();return Object(c.useEffect)((function(){var e;a||i((e="additional-links",function(){var t=Object(j.a)(u.a.mark((function t(n){var c;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(ue()),t.prev=1,t.next=4,E().get("resources/menus/".concat(e,"?lang=").concat(o));case 4:c=t.sent,n(je(c.data.data)),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),t.t0&&t.t0.response&&t.t0.response.data&&n(de(t.t0.response.data)),n(de("Something went wrong!"));case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()))}),[i]),Object(G.jsx)(G.Fragment,{children:s?"":Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)("h3",{className:"text-16-white",children:n.translation?n.translation.quick_links["np"===o?"value_np":"value_en"]:""}),Object(G.jsx)("ul",{children:a&&a.children.length?a.children.map((function(e){var t,n=null===e||void 0===e||null===(t=e.key)||void 0===t?void 0:t.startsWith("https"),c=n?{pathname:null===e||void 0===e?void 0:e.key}:"/".concat(o).concat(e.key);return Object(G.jsx)("li",{children:Object(G.jsx)(v.a,{to:c,target:n?"_blank":"_self",children:e.name})},e.id)})):""})]})})},Pe=function(){var e=Object(L.e)((function(e){return e.translation}));return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)("h3",{className:"text-16-white",children:e.translation?e.translation.social_media_links["np"===o?"value_np":"value_en"]:""}),Object(G.jsxs)("ul",{className:"social",children:[Object(G.jsx)("li",{children:Object(G.jsx)("a",{href:"https://twitter.com/ECNOfficial",target:"_blank",rel:"noreferrer",children:Object(G.jsx)(H.k,{})})}),Object(G.jsx)("li",{children:Object(G.jsx)("a",{href:"https://www.facebook.com/ecnofficial/",target:"_blank",rel:"noreferrer",children:Object(G.jsx)(H.b,{})})}),Object(G.jsx)("li",{children:Object(G.jsx)("a",{href:"https://www.youtube.com/channel/UCQ1iYWQDmp5cAB-bb-107AQ",target:"_blank",rel:"noreferrer",children:Object(G.jsx)(H.m,{})})})]})]})},Ee=function(e){var t=e.branch;return Object(G.jsx)("div",{className:"section-break-4 ecn-footer-main bg-primary-regular",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:2,className:"align-item-center",children:[Object(G.jsx)(z.a,{item:!0,xs:12,sm:6,md:6,lg:3,xl:3,children:Object(G.jsx)(Fe,{branch:t})}),Object(G.jsx)(z.a,{item:!0,xs:12,sm:6,md:6,lg:9,xl:9,children:Object(G.jsxs)(z.a,{container:!0,spacing:4,children:[Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:4,xl:4,children:Object(G.jsx)(Ce,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:4,xl:4,children:Object(G.jsx)(Me,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:4,xl:4,children:Object(G.jsx)(Pe,{})})]})})]})})})},De=function(e){var t=e.branch;return Object(G.jsx)("footer",{className:"ecn-footer",children:Object(G.jsx)(Ee,{branch:t})})},Le=n(129),Be=n(126),Re=function(e){Object(Le.a)(n,e);var t=Object(Be.a)(n);function n(){var e;Object(Z.a)(this,n);for(var c=arguments.length,a=new Array(c),s=0;s<c;s++)a[s]=arguments[s];return(e=t.call.apply(t,[this].concat(a))).componentDidMount=function(){return window.scrollTo(0,0)},e.componentDidUpdate=function(t){e.props.location!==t.location&&window.scrollTo(0,0)},e.render=function(){return e.props.children},e}return n}(a.a.PureComponent),qe=Object(r.j)(Re),Ae={branches:void 0,loadingBranch:!1,errorBranches:void 0},We=Object(y.b)({name:"branch",initialState:Ae,reducers:{fetchBranchesRequest:function(e){e.loadingBranch=!0},fetchBranchesSuccess:function(e,t){e.loadingBranch=!1,e.branches=t.payload},fetchBranchesFail:function(e,t){e.loadingBranch=!1,e.errorBranches=t.payload}}}),Ve=We.actions,Ie=Ve.fetchBranchesFail,Te=Ve.fetchBranchesRequest,Ge=Ve.fetchBranchesSuccess,Qe=We.reducer,ze=function(){return function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(Te()),e.prev=1,e.next=4,E().get("branch?lang="+o);case 4:n=e.sent,t(Ge(n.data.data)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),e.t0&&e.t0.response&&e.t0.response.data&&t(Ie(e.t0.response.data)),t(Ie("Something went wrong!"));case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},Je=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("branch/".concat(t,"?lang=").concat(o));case 3:return n=e.sent,e.abrupt("return",n.data.data);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),Ye=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("resources/statistics/".concat(t,"?lang=").concat(o));case 3:return n=e.sent,e.abrupt("return",n.data.data);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),Xe=function(e){var t=e.children,n=Object(c.useState)(void 0),a=Object(b.a)(n,2),s=a[0],i=a[1],r=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Je("head-office");case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){r()}),[]),Object(G.jsxs)(qe,{children:[Object(G.jsx)(Se,{branch:s}),Object(G.jsx)("div",{style:{minHeight:"70vh"},children:t}),Object(G.jsx)(De,{branch:s})]})},Ke=new ee("toggle-district-menu-button","ecn-district-navigation","district-child-menu","ecn-district-dropdown-toggle-icon"),Ue=function(e){var t=Object(L.d)(),n=e.branch;Object(c.useEffect)((function(){t(ve("district-menu"))}),[]),Object(c.useEffect)((function(){Ke.init()}));var a=Object(L.e)((function(e){return e.menu})),s=a.districtMenu,i=a.loadingDM;return Object(G.jsx)(G.Fragment,{children:Object(G.jsx)("nav",{className:"ech-navbar-invert",id:"ecn-navbar",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,children:[Object(G.jsxs)(z.a,{item:!0,xs:6,md:9,children:[Object(G.jsx)("ul",{children:Object(G.jsx)("li",{className:"navigation-list",id:"toggle-district-menu-button",children:Object(G.jsx)(U.b,{})})}),Object(G.jsx)("div",{className:"menu-backdrop",onClick:function(){return Ke.closeMenu()}}),Object(G.jsxs)("ul",{className:"navigation",id:"ecn-district-navigation",children:[Object(G.jsxs)("li",{className:"navigation-list close-menu",onClick:function(){return Ke.closeMenu()},children:[Object(G.jsx)(U.a,{}),Object(G.jsx)("span",{children:"Close menu"})]}),i?Object(G.jsx)(Oe,{}):s&&s.children.length?s.children.map((function(e,t){return Object(G.jsxs)("li",{className:"navigation-list",children:[Object(G.jsx)(v.b,{to:"/"+o+e.key+(null===n||void 0===n?void 0:n.slug),exact:!0,onClick:function(){return Ke.closeMenu()},activeClassName:"active",children:Object(G.jsx)("span",{className:"display-flex align-item-center",children:e.name||""})}),e.children&&e.children.length?Object(G.jsx)(O.a,{className:"ecn-district-dropdown-toggle-icon"}):"",e.children&&e.children.length?Object(G.jsx)("ul",{className:"district-child-menu",children:e.children.map((function(e,t){return Object(G.jsx)("li",{children:Object(G.jsx)(v.b,{to:"/"+o+e.key+(null===n||void 0===n?void 0:n.slug),exact:!0,onClick:function(){return Ke.closeMenu()},activeClassName:"active",children:Object(G.jsx)("span",{children:e.name||""})})},t)}))}):""]},t)})):""]})]}),Object(G.jsx)(z.a,{item:!0,xs:6,md:3,className:"display-flex  align-item-center",style:{justifyContent:"flex-end"}})]})})})})},He=function(e){var t=e.children,n=Object(r.i)().dist_slug,a=Object(c.useState)(void 0),s=Object(b.a)(a,2),i=s[0],l=s[1],o=Object(c.useState)(!1),d=Object(b.a)(o,2),h=d[0],m=d[1],x=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,Je(n);case 3:t=e.sent,l(t),m(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){x()}),[n]),Object(G.jsx)(qe,{children:h?Object(G.jsx)(Oe,{}):Object(G.jsxs)(G.Fragment,{children:[Object(G.jsxs)("header",{className:"ecn-header",children:[Object(G.jsx)(Q,{}),i?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(K,{branch:i}),Object(G.jsx)(Ue,{branch:i})]}):""]}),Object(G.jsx)("div",{style:{minHeight:"70vh"},children:t}),i?Object(G.jsx)(G.Fragment,{children:Object(G.jsx)(De,{branch:i})}):""]})})},Ze=n(282),$e=n(272),et=n(281),tt=n(253),nt=n(254),ct=n(255),at=n(256),st=n(257),it=n(258),rt=n(259),lt=n(260),ot=n(261),dt=n(262),ut=n(263),jt=n(264),bt=n(265),ht=n(266),mt=n(267),xt=n(268),vt=n(269),Ot=n(270),pt=n(271);et.a.use([tt.a,nt.a,ct.a,at.a,st.a,it.a,rt.a,lt.a,ot.a,dt.a,ut.a,jt.a,bt.a,ht.a,mt.a,xt.a,vt.a,Ot.a,pt.a]);var ft=function(e){var t,n=e.banners,c=e.home;return Object(G.jsx)(Ze.a,{observeParents:!0,observer:!0,loop:!0,slidesPerView:1,autoplay:{disableOnInteraction:!1},navigation:!0,pagination:{clickable:!0},className:"ecn-banner",children:n&&n.children&&n.children.length?null===n||void 0===n||null===(t=n.children)||void 0===t?void 0:t.map((function(e){return Object(G.jsx)($e.a,{children:Object(G.jsx)("div",{className:"ecn-home-banner ".concat(c?"home":""),children:Object(G.jsxs)("figure",{children:[Object(G.jsx)("img",{src:e.value,alt:e.key}),Object(G.jsx)("figcaption",{children:e.name})]})})},e.id)})):""})},gt={banner:void 0,error:void 0,loading:!1},yt=Object(y.b)({name:"banner",initialState:gt,reducers:{fetchBannerRequest:function(e){e.loading=!0},fetchBannerSuccess:function(e,t){e.loading=!1,e.banner=t.payload},fetchBannerFail:function(e,t){e.loading=!1,e.error=t.payload}}}),Nt=yt.actions,wt=Nt.fetchBannerFail,_t=Nt.fetchBannerRequest,kt=Nt.fetchBannerSuccess,St=yt.reducer,Ft=n(273),Ct=function(e){var t=e.home,n=Object(r.i)().dist_slug,a=Object(L.d)(),s=Object(L.e)((function(e){return e.banner})),i=s.banner,l=s.loading,d=function(){a(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return function(){var t=Object(j.a)(u.a.mark((function t(n){var c,a;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(_t()),t.prev=1,c="?branch="+e,t.next=5,E().get("/banner".concat(e?c:"","&&lang=").concat(o));case 5:a=t.sent,n(kt(a.data.data)),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),t.t0&&t.t0.response&&t.t0.response.data&&n(wt(t.t0.response.data)),n(wt("Something went wrong!"));case 13:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}()}(n||"head-office"))};return Object(c.useEffect)((function(){d()}),[a]),Object(G.jsx)(G.Fragment,{children:l?Object(G.jsx)(Ft.a,{variant:"rect",animation:"wave",height:400}):Object(G.jsx)(ft,{banners:i,home:t})})},Mt=function(e){var t=e.loading,n=e.news;return Object(G.jsx)(G.Fragment,{children:(null===n||void 0===n?void 0:n.length)>0?Object(G.jsx)("div",{style:{background:"#f2f2f2",boxShadow:"6px 0 15px rgba(0,0,0,0.16)"},children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsx)("div",{className:"ecn-news-ticker",children:Object(G.jsxs)(z.a,{container:!0,children:[Object(G.jsxs)(z.a,{item:!0,xs:12,lg:2,md:2,className:"ecn-news-ticker--header",children:[Object(G.jsx)(H.h,{})," ",Object(G.jsx)("span",{children:X.translation[o].latest_update})]}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:10,md:10,className:"ecn-news-ticker--news display-flex-ac",children:t?"":n&&n.length?Object(G.jsxs)("marquee",{behavior:"scroll",direction:"left",scrollamount:"5",children:[" ",Object(G.jsx)("div",{style:{display:"flex"},children:n.map((function(e){return Object(G.jsx)("div",{style:{marginRight:"3em"},children:"news"===(null===e||void 0===e?void 0:e.type)?Object(G.jsxs)(v.a,{to:"/".concat(o,"/news/").concat(null===e||void 0===e?void 0:e.slug),target:"_blank",className:"text-13-primary",style:{color:"black"},title:e.title||"",children:[Object(G.jsx)("span",{className:"text-14-secondary mr-05 bold",children:"-"}),e.title?e.title:""]}):Object(G.jsxs)("a",{href:null===e||void 0===e?void 0:e.value,target:"_blank",className:"text-13-primary",style:{color:"black"},children:[Object(G.jsx)("span",{className:"text-14-secondary mr-05 bold",children:"-"}),e.title?e.title:""]})},e.id)}))})]}):""})]})})})}):Object(G.jsx)(G.Fragment,{})})},Pt={errorMFC:void 0,loadingMFC:!1,messageFromChief:void 0},Et=Object(y.b)({name:"customizer",initialState:Pt,reducers:{fetchMFCrequest:function(e){e.loadingMFC=!0},fetchMFCsuccess:function(e,t){e.loadingMFC=!1,e.messageFromChief=t.payload},fetchMFCfail:function(e,t){e.loadingMFC=!1,e.errorMFC=t.payload}}}),Dt=Et.actions,Lt=Dt.fetchMFCfail,Bt=Dt.fetchMFCrequest,Rt=Dt.fetchMFCsuccess,qt=Et.reducer,At=function(){var e=Object(L.d)(),t=Object(L.e)((function(e){return e.customizer})).messageFromChief,n=function(){e(function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(Bt()),e.prev=1,e.next=4,E().get("/customizer/message-from-chief/?lang="+o);case 4:n=e.sent,t(Rt(n.data.data)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),e.t0&&e.t0.response&&e.t0.response.data&&t(Lt(e.t0.response.data)),t(Lt("Something went wrong!"));case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}())};return Object(c.useEffect)((function(){t||n()}),[]),Object(G.jsx)("div",{className:"bg-white m-15 br-6px chief-message",children:t?Object(G.jsx)("div",{className:"p-15 home-about",children:Object(G.jsxs)(z.a,{container:!0,children:[Object(G.jsx)(z.a,{item:!0,md:12,lg:12,xl:12,children:Object(G.jsxs)("figure",{className:"img-with-overlay",children:[Object(G.jsx)("img",{src:t.value.image,alt:""}),Object(G.jsx)("div",{className:"overlay",children:Object(G.jsxs)("div",{className:"abt-commissioner",children:[Object(G.jsx)("p",{className:"text-14-white text-center",children:t.value.spokeperson}),Object(G.jsx)("h3",{className:"text-16-white text-center",children:t.value.designation})]})})]})}),Object(G.jsx)(z.a,{item:!0,md:12,lg:12,xl:12,children:Object(G.jsxs)("div",{className:"home-about--info mt-1",children:[Object(G.jsx)("h3",{className:"text-22",children:t.name}),Object(G.jsx)("p",{className:"text-14-black text-justify",children:t.value.description})]})})]})}):""})},Wt=n(52),Vt=n(130),It=["children","value","bgWhite","index"],Tt=function(e){var t=e.children,n=e.value,c=e.bgWhite,a=e.index,s=Object(Vt.a)(e,It);return Object(G.jsx)("div",Object(Wt.a)(Object(Wt.a)({role:"tabpanel",hidden:n!==a,id:"full-width-tabpanel-".concat(a),"aria-labelledby":"full-width-tab-".concat(a)},s),{},{className:"'custom-tabpanel' ".concat(c?"bg-white":" border-none"),children:n===a&&Object(G.jsx)("div",{className:"section-padding-2 ".concat(c?"bg-white":"bg-primary border-none"),children:t})}))},Gt=n(283),Qt=n(274),zt=n(275),Jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAOZ0lEQVRoBb1Ze3RTVb6Ozv/eta5gziMnryZt06TJyaMPLFVaocDodQBvGWsVULiCIyDQNumDRxHvtUBfFAcYeRYQykNAUUdl7oxex7mOjOMIa3i4nDVckUdb2hBbSpPmnO+u305bCjRtQWey1l4nZ5+Tk29/+/s9j0bzI3x0rx3MMDUcKZeqD2w1vrLrg4TlO08lVez83la+8/uEZY2njKt2fSBV7d1qqn+z/P6Gw+k/wl/e/SPEmkP5+toDu6wr97Ra5zRAnFAOvXcJ9O4SSG4/DGyUQC+XQOf2Q+8thi7bD0vBGiRV7LxkWLtvm77+UP7dI7iDX1ZW4l5L7cHp/Or9ZxNm1mB0egUkXxkS3AG4XfNQkDQd1caJ2GPMwTv6bPxaGouDhofxun4cXrBORUbqc0iRi9lveG8Z9P/2Kiyv7DvLFgDccwdQRn5rUs1bj1ur95wcVVgNyb0YRk8AD6XOwXbTJFzm0xDkXQhxTnRqXWjnXGjl3WzQ9xAvo5Nzop134SrnwTF9LgpSnoaJniMX4/68pUis2nJcv/bI+JEjGubO/P37f+KsfmOj3r8dYloptN4KPJX4JE4avGjnPQhxdrQSoBEOAh/kHez+c7o0VFoeQ6KzBJyvDPon18JV27Se/nMYWENfntyw+z5z3dFj3LQqaNMqkGt/Fp9LGWjl3AhyMi6LdjQLdlzlnCMGfpVzoU1IxUUxBe28Ey28C2fEdMxJLgTvC+D+7HIkVR1531y1/1+GRhfn6rjth4266iOnDRNXwOBejIBlGr7lPQhyLrQLTiYLAhGic37kwElSsd/J7NgmONmxmXfigDQJVnkBpCw/zMua/mrd8I45DrzBp4lpsfrw16ZxxbC4AthsmohWgQDbR87sCKXTJ7Eg78RlMQWf6bKQaV8AKX0xDGW7/jxi5iuBey01b39ITFtcJdhtyI0xSlvMy8wI+/7sxzrSLnRoZbZ7ZC9fCWlIcyyEOKYUlsr972kqce/gFA+YtdW8UaWdVgWDvAibzRMZ6CDvRogj0Kl3zzjZAUcyiUmEwBLL9Mx2gYYdbXwqOrRk6Kn4VJcNj+sX4HNWwvrq3qoBEG//aql5O1Pv38YMsTRhKpNHvx7vcOsH7gaBbBVScZVLRZuQjBaejvYYEZwLHRzZjByzHz4VrYITbaINe425MHkWw/zEWiRWHxp7O+LeGWtN0/+K3gAesc3CecHTy0J8pslQ+4yNfR9wHmPXxcDQ9u82PYJnkgoxK2U6FlunI2CdilcSHsN60yRsNk/AAekRvKV7GMd0Y/Fb/Rgc12XihJiBWUlPgfcGYPJv/mhQ4Il1B6eMKqzBaG85/iClsSBCrDFgcdi+riV35kA7Mdjvn2NbTnNBzolveR+esD8FnccPyeuHzhuAFGfQNRpEHg2h90hzwoSVSKg9NOkm8OTw+ar9f9W7i1BoeZKxRPobuN23fqcFNfMyrub+Oy5ZshDiYlJo59zo5FLQwstoNE6Awb0QWl/ZkIDjLWTgvN5TgoQX15+4KThJtYfmJcysZWH8LwYvgpxnREHlouBGV+sFKB1h/N+051hYJ1l8y3sxNakQYnoAWncZJG8JdF5iPD7bw17zEOsBiA3vzupnXajb3yT6KpDj+A+0cx5cFhzMNd3KMumWvADlHdc4B8Kf/wlhRYESVtAV6ULHxx+jzvEoErwLoWXb7ofOQ9sfk8mw4IZYGD2DWLeuPLAjBhy4R1q1JyR6S9FonIQQ52BhPMTc0s05CBkghXfyEOenzYDSrSAaVRGNRnFdURGJKrh8IYhZ81+DyV30g+UxcKGMAI8fhoLVFzSUSYoNb2YmzW6ARfajmU9jRkbMDhbGmVsjX27JwvVrXVAUBRE1CkVV0aMCigIG/nq4B7/53QnYskqh9wQg+cgoh5aKwbMIFlcZBG8Jy937DFnnLYHoLYbeXYwH0ooh5lZAbHg7U2OsP1SlH18O2fVCvye5TSK9XoUB1zkR+p9P0KOEoaoqBvvQfDSq4EJbEEUrdsHgLoVECxhCCqIngFFpS1gRQuwa3EUwyYthkAOwyMWx756XoE+vgLXuUJVGX73/fb1vMX6ePD0W2eK4PloMAb/03GIoUZJIBCoGB06LIfCqoiAcicCSubDXHcYHr5eXwOF8CY2mPPxWysIn0hj8UcrAV2IaTotp+Eb0YJc+Dw/4SmFf2fS+xvzKrr9QabXWNAkdpOHBgHOUR6TiojsPyrXr6FGj6BkCdN8uKNEwzjcHoXOXMSNljJOxEvtsLIFeXgqTXASzqxxvGLNZRI2lAE60CTGyKBulVPiPYhZ4rx+mhb/6TGNdvuMyAX/DmBtXKkHOgcuSD53//UkfpuGPvXJZuGw7Y7tP4xRMDBl+iN7FELxlGJW+EMlyMXYYc9HJyejUxnKZWwkkx0CRVPD4oZ9Rd06TUrGzmwpaqhFbKaAMwniId6JtbgDd4Z7hAffeQVK50h6EJC+E2OsOKXrK45fj9LkWzA9shjnDj0TZjxpTHstjgrydBTWS5K04qHL6RvDCJC+Bbnp1tyalovGqwV2C96SxcYFf8j2KruvX0ENuY5iPiigJHGpUxTsfn4DgKYXBTSG8DI6xZfjm3EWyAGYDJ0+fR8PEGeh6QEZzbxIWZBF4cOB/4z1IIIPNr7mqSVzWeIakss84Lq5U2ueVoed6JyKR6DCwmVVCUSMIRyPImboaorsCBk8xDJ4lOP33FiiRG4vvjl5HROnG9wcOIqTzoJlzxI3YJJVTunSI7mKIBbVnNJZVOz8S3QH8ypBz2/b0bVeQS0GzeQy6jn85IuA9agRnzl2E4CmD5KFAVIqvTn/HvMxAF0ob2BOOIKz2INJ1FRfz5yIoxk/sPhczMNpXBtO8jR9pxDV7m4yeJfiF9QkWyvvADjySvsjCr+g8+LZwIXrC3eiKKlAj5PJUFnj6V6TSeRRdHWGUVO1nwH/3h7Mx96gyFQ28lblUWoxCz4lEEfrP9YO6Zapt39U/CMnjh2Xp9iYKQKW67BL4nLPjthkIeDvVnMxoUhBKykHw3WOIRiKIkJ7VgRKK6VdVI1CUMC43t8YWGCdY9a3imqKgO9SMkC5z0FSa/rvG/Cj0aQGY64+UasS6w3JCwWokyyUswWLg+gqCXutmwAk8a/rIaOMdaONkXHpyPnra26BGokwGFPpVKGR7MQNVFTZPfn+gRPrA0n1sXlFxLRxB6+RnWX7ft9vkXfoLFM6Np5ILoHu4Asbqo8kaSlgs5Y3ndb5SHNPnsGYNOfuR9Eq+E1JxxZqNzl0H0B3ughJRQfF0pB+2UErOVBUd732IFsGJTo4KkF6vwnImKvMcOCukw+GaB92UVef601ppzb5NoqcUBSnPMMAXRTs6qKgdxJ8OnOvSUrHrQCsVvAUvoOvv5xjDdwK8R1ERvnAJzWYfOjh6Vm9R3bu7LUQi78BW83hwngDEstc33QBed3iK4fEqlsj8TefrzxD7QBIDFPJZeUYy6h1UNNAcVe5tXCqardno2LwHkUg3S3cVyhhVkGdn2SOFr4GDcp5wWMGVeWUsG70oENupNzTOudDCOgEuTLM9DTF7GWx1h6f0A6dyyLyq6YTRVYRKy2S08dSgvFG6tXFuXNPSOfnZ+INSgzbOgStTZyN89mwMfFSFElVBzPaNWA6vIqxEcf3jj9CmJVbtjJCQ1t3vVfpq2felTBjlRZAKV5+8qXSjFRjrDk+5P285Ep1+nBLSmWSYcfQWwZ/ZcrBx4iy8njdzyLFl/AxsmPw01j82Fxs//RLb/nwa2788g21f3D4a/3Qav3y2DL+cNAPb8grxZubjCPG22I72GmaLVka+bTa0Y8thqx7Adj/tGo3G9uq2T6jkmp1UAOrl0Yqpw0R9DgJkrz0I67q9w47k+j1IWLcH1vomJPUO67om9I/6JnaNzs0NsXlL/V4smLuCVV+dWieTIMlznTkPOjkA8fnqTwdivem7ce3RcdLPV0PrC+CgNAmXRRtr1DTzDnxhewSbJj6PDZNn/kPGlolz8F76FHRwdpA02wUbTopZsMnzoc99GZa1h8fdBPbWE3ttU/2/ZpfDIs/HZ1IWawOTi6LimLpPZPX/iNEmpOCqkMK6wPQygBpSExyzwJMnWbm9/lact59X4l7qT0sPliDdvoBVIBTuO7T0hsEZ87GsaI61i/s6Vj/kSF6KyaO3DUceKj9pJnS+IlgX7fhwRE1PWomlYfd9puX7zlKrN83xEj6VxiIkOFhrYrBcuc9t/pAjc7WCDd8JXkxPmgVqThmf3/i1pmH3fbezO8SM+NqhRGN5Y4tuDL2Ymosmw3i0cxRwqJdITcobjN/JYti9LC7EKp1Yq45iQyrTdJ59FiRvEQzPb2gdve6gdQiI8S8R84mVB45wuStg9JRgiXUKvmPJFr1KcaFZIN3HeoQjZZt+R2ApIlLXlgUxwYsN5kmwywsw2hdAwqLtR+6Y6duWAdyTtHpXlZC/FpS3pzkWYIshBy2ke3qTJtjjFiCDLYaAU+5BwYx279fSGOQnPwctFdG5L8NWuWM1a/jcBuQuJ5LWvJmVULL5uDhhBXhvETLtL+C/rD/FF2Imey14QwKxlKCdl0GDgNICSFp0T5Bzs4SJco9ptmdYmqHNLoVpztrfJ615K+su4Q3zM+CelNpDPzO9+NoZbnwJOM9SWOQX8VP7TCy3/AwHDQ/h91IGTugy8LXgBdWIp8R0HBczcNTwIGpMj6IwuQCpznng3QHwY5dC/3TVGcfqA9OG+ecf77JY/06+dVXjNm3hq5eknKWQMktZF4pKK+p9GN1FMLuXQHSXYFQatdb8rAiQHqqAburLl6TAlu1JNf+kV+Lxls3VHk031b9dbn15z1bjgk0fSDPqT+mn135Pgy+oPaWfu+kDS0XjVkvtkXJj/bsZ8Z5zJ/P/D9Jq2yu+sxviAAAAAElFTkSuQmCC",Yt=n(37),Xt=n.n(Yt),Kt=n(78),Ut=function(e){var t,n,c,a,s=e.data,i=Xt()(s.created_at).format("yyyy/MM/DD"),r=Kt.ad2bs(i),l=null===s||void 0===s?void 0:s.translations.find((function(e){return"np"===e.locale})),d=null===s||void 0===s?void 0:s.translations.find((function(e){return"en"===e.locale})),u="np"===o?null===l||void 0===l?void 0:l.value:null===d||void 0===d?void 0:d.value;u||(u=null!==(a=null===l||void 0===l?void 0:l.value)&&void 0!==a?a:null===d||void 0===d?void 0:d.value);var j,b="np"===o?null===l||void 0===l?void 0:l.name:null===d||void 0===d?void 0:d.name;b&&""!==b||(b=null!==(j=null===l||void 0===l?void 0:l.name)&&void 0!==j?j:null===d||void 0===d?void 0:d.name);return Object(G.jsxs)("div",{className:"info-card",children:[Object(G.jsx)("div",{className:"info-logo",children:Object(G.jsx)("img",{src:Jt,alt:""})}),Object(G.jsxs)("div",{className:"info-details",children:[Object(G.jsx)("p",{className:"text-16-primary",children:Object(G.jsx)("a",{href:u,target:"_blank",className:"text-15-primary",rel:"noreferrer",children:b})}),Object(G.jsx)("p",{className:"text-13-grey dev-number",children:"".concat(null===r||void 0===r||null===(t=r.en)||void 0===t?void 0:t.year,"/").concat(null===r||void 0===r||null===(n=r.en)||void 0===n?void 0:n.month,"/").concat(null===r||void 0===r||null===(c=r.en)||void 0===c?void 0:c.day)})]})]})},Ht=n(78),Zt=function(e){var t,n,c,a=e.data,s=e.prefix,i=Xt()(a.created_at).format("yyyy/MM/DD"),r=Ht.ad2bs(i),l=null===a||void 0===a?void 0:a.translations.find((function(e){return"np"===e.locale})),d=null===a||void 0===a?void 0:a.translations.find((function(e){return"en"===e.locale}));console.log("data here",a);var u,j="np"===o?null===l||void 0===l?void 0:l.title:null===d||void 0===d?void 0:d.title;j&&""!==j||(j=null!==(u=null===l||void 0===l?void 0:l.title)&&void 0!==u?u:null===d||void 0===d?void 0:d.title);return Object(G.jsxs)("div",{className:"info-card",children:[Object(G.jsx)("div",{className:"info-logo",children:Object(G.jsx)("img",{src:Jt,alt:""})}),Object(G.jsxs)("div",{className:"info-details",children:[Object(G.jsx)("p",{className:"text-16-primary",children:Object(G.jsx)(v.a,{to:"/".concat(o,"/").concat(s,"/").concat(a.slug),className:"text-15-primary",target:"_blank",rel:"noreferrer",children:j})}),Object(G.jsx)("p",{className:"text-13-grey dev-number",children:"".concat(null===r||void 0===r||null===(t=r.en)||void 0===t?void 0:t.year,"/").concat(null===r||void 0===r||null===(n=r.en)||void 0===n?void 0:n.month,"/").concat(null===r||void 0===r||null===(c=r.en)||void 0===c?void 0:c.day)})]})]})},$t={pressReleases:void 0,loadingPressRelease:!1,errorPressRelease:void 0,metaPressRelease:void 0,downloads:void 0,errorDownloads:void 0,loadingDownloads:!1,metaDownloads:void 0},en=Object(y.b)({name:"prease-downloads",initialState:$t,reducers:{fetchPRrequest:function(e){e.loadingPressRelease=!0},fetchPRsuccess:function(e,t){e.loadingPressRelease=!1,e.pressReleases=t.payload.pressReleases,e.metaPressRelease=t.payload.meta},fetchPRfail:function(e,t){e.loadingPressRelease=!1,e.errorPressRelease=t.payload},fetchDownloadsrequest:function(e){e.loadingDownloads=!0},fetchDownloadssuccess:function(e,t){e.loadingDownloads=!1,e.downloads=t.payload.downloads,e.metaDownloads=t.payload.meta},fetchDownloadsfail:function(e,t){e.loadingDownloads=!1,e.errorDownloads=t.payload}}}),tn=en.actions,nn=tn.fetchDownloadsfail,cn=tn.fetchDownloadsrequest,an=tn.fetchDownloadssuccess,sn=tn.fetchPRfail,rn=tn.fetchPRrequest,ln=tn.fetchPRsuccess,on=en.reducer,dn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){var n=Object(j.a)(u.a.mark((function n(c){var a,s,i;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(rn()),n.prev=1,n.next=4,E().get("resources/press-release/?lang=".concat(o,"&page=").concat(e).concat(t?"&branch="+t:""));case 4:a=n.sent,s=a.data.data||void 0,i=a.data.meta||void 0,c(ln({pressReleases:s,meta:i})),n.next=14;break;case 10:n.prev=10,n.t0=n.catch(1),n.t0&&n.t0.response&&n.t0.response.data&&c(sn(n.t0.response.data)),c(sn("Something went wrong!"));case 14:case"end":return n.stop()}}),n,null,[[1,10]])})));return function(e){return n.apply(this,arguments)}}()},un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){var n=Object(j.a)(u.a.mark((function n(c){var a,s,i;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(cn()),n.prev=1,n.next=4,E().get("resources/download/?lang=".concat(o,"&page=").concat(e).concat(t?"&branch="+t:""));case 4:a=n.sent,s=a.data.data||void 0,i=a.data.meta||void 0,c(an({downloads:s,meta:i})),n.next=14;break;case 10:n.prev=10,n.t0=n.catch(1),n.t0&&n.t0.response&&n.t0.response.data&&c(nn(n.t0.response.data)),c(nn("Something went wrong!"));case 14:case"end":return n.stop()}}),n,null,[[1,10]])})));return function(e){return n.apply(this,arguments)}}()},jn={notices:void 0,error:void 0,loading:!1,meta:void 0},bn=Object(y.b)({name:"notice",initialState:jn,reducers:{fetchNoticesRequest:function(e){e.loading=!0},fetchNoticesSuccess:function(e,t){e.loading=!1,e.notices=t.payload.notices,e.meta=t.payload.meta},fetchNoticesFail:function(e,t){e.loading=!1,e.error=t.payload}}}),hn=bn.actions,mn=hn.fetchNoticesFail,xn=hn.fetchNoticesRequest,vn=hn.fetchNoticesSuccess,On=bn.reducer,pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){var n=Object(j.a)(u.a.mark((function n(c){var a,s,i;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(xn()),n.prev=1,n.next=4,E().get("resources/notice/?lang=".concat(o,"&page=").concat(e).concat(t?"&branch="+t:""));case 4:a=n.sent,s=a.data.data||void 0,i=a.data.meta||void 0,c(vn({notices:s,meta:i})),n.next=14;break;case 10:n.prev=10,n.t0=n.catch(1),n.t0&&n.t0.response&&n.t0.response.data&&c(mn(n.t0.response.data)),c(mn("Something went wrong!"));case 14:case"end":return n.stop()}}),n,null,[[1,10]])})));return function(e){return n.apply(this,arguments)}}()},fn=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("resources/notice/".concat(t,"?lang=").concat(o));case 3:return n=e.sent,e.abrupt("return",n.data.data);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),gn=function(e){var t=e.loadingNews,n=e.news,s=Object(r.i)().dist_slug,i=Object(r.h)().pathname,l=X.translation,d=Object(L.d)(),u=Object(L.e)((function(e){return e})),j=u.notice,h=u.pressrelease,m=u.translation,x=j.loading,p=j.notices,f=h.loadingPressRelease,g=h.pressReleases,y=null===i||void 0===i?void 0:i.includes("province");Object(c.useEffect)((function(){!function(){d(dn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,s))}(),function(){d(pn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,s))}()}),[d]);var N=a.a.useState("press_release"),w=Object(b.a)(N,2),_=w[0],k=w[1];return Object(G.jsxs)("div",{className:"br-6px m-2",children:[Object(G.jsxs)(Gt.a,{value:_,onChange:function(e,t){k(t)},className:"custom-tabs","aria-label":"wrapped label tabs example",children:[Object(G.jsx)(Qt.a,{value:"press_release",label:Object(G.jsxs)("div",{className:"custom-tab",children:[Object(G.jsx)(H.h,{})," ",Object(G.jsx)("span",{children:m.translation?m.translation.press_release["np"===o?"value_np":"value_en"]:""})]}),wrapped:!0}),Object(G.jsx)(Qt.a,{value:"information",label:Object(G.jsxs)("div",{className:"custom-tab",children:[Object(G.jsx)(H.f,{})," ",Object(G.jsx)("span",{children:m.translation?m.translation.information["np"===o?"value_np":"value_en"]:""})]})}),Object(G.jsx)(Qt.a,{value:"latest_updates",label:Object(G.jsxs)("div",{className:"custom-tab",children:[Object(G.jsx)(O.f,{})," ",Object(G.jsx)("span",{children:m.translation?m.translation.recent_updates["np"===o?"value_np":"value_en"]:""})]})})]}),Object(G.jsx)(Tt,{value:_,index:"press_release",bgWhite:!0,children:Object(G.jsxs)("div",{children:[f?"":g&&g.length?g.slice(0,4).map((function(e,t){return Object(G.jsx)(Ut,{data:e},e.id)})):Object(G.jsx)("h4",{className:"text-14-primary text-center",children:"Sorry no press releases found"}),Object(G.jsx)("div",{className:"section-break-2 pb-0",children:Object(G.jsx)(v.a,{to:"/".concat(o,"/").concat(s?"".concat(y?"province":"district","/press-release/").concat(s):"press-release"),children:Object(G.jsx)(zt.a,{className:"btn-primary",children:l[o].view_all})})})]})}),Object(G.jsx)(Tt,{value:_,index:"information",bgWhite:!0,children:Object(G.jsxs)("div",{children:[x?"":p&&p.length?p.slice(0,4).map((function(e,t){return Object(G.jsx)(Ut,{data:e},null===e||void 0===e?void 0:e.id)})):Object(G.jsx)("h4",{className:"text-14-primary text-center",children:"Sorry no information found"}),Object(G.jsx)("div",{className:"section-break-2 pb-0",style:{marginTop:"8px"},children:Object(G.jsx)(v.a,{to:"/".concat(o,"/").concat(s?"".concat(y?"province":"district","/notice/").concat(s):"notice"),children:Object(G.jsx)(zt.a,{className:"btn-primary",children:l[o].view_all})})})]})}),Object(G.jsx)(Tt,{value:_,index:"latest_updates",bgWhite:!0,children:Object(G.jsxs)("div",{children:[t?"":n&&n.length?n.slice(0,4).map((function(e,t){return Object(G.jsx)(Zt,{data:e,prefix:"news"},e.id)})):Object(G.jsx)("h4",{className:"text-14-primary text-center",children:"Sorry no updates found"}),Object(G.jsx)("div",{className:"section-break-2 pb-0",children:Object(G.jsx)(v.a,{to:"/".concat(o,"/").concat(s?"".concat(y?"province":"district","/news/").concat(s):"news"),children:Object(G.jsx)(zt.a,{className:"btn-primary",children:l[o].view_all})})})]})})]})},yn=function(e){var t=e.degisnation,n=e.image,c=e.name,a=e.sec,s=e.id;return Object(G.jsxs)("div",{className:"ec-card",children:[Object(G.jsx)("p",{className:a?"text-14-primary text-center mb-05":"text-20-primary text-center mb-05",children:t}),Object(G.jsx)("div",{className:a?"ec-card-img-sec":"ec-card-img",children:Object(G.jsx)(v.a,{to:"/".concat(o,"/member/").concat(s),children:Object(G.jsx)("img",{src:n,alt:"",className:a?"":"wh-105"})})}),Object(G.jsx)("div",{className:"ec-card-description",children:Object(G.jsx)(v.a,{to:"/".concat(o,"/member/").concat(s),children:Object(G.jsx)("h3",{className:a?"text-14-grey text-center":"text-16-grey text-center",style:{color:"black",fontWeight:500},children:c})})})]})},Nn=function(){var e=Object(j.a)(u.a.mark((function e(t,n){var c;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("staffs/".concat(t,"/").concat(n,"/").concat((null===n||void 0===n?void 0:n.includes("?"))?"&":"?","lang=").concat(o));case 3:return c=e.sent,e.abrupt("return",c.data.data);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}(),wn=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("staff-details/".concat(t,"/?lang=").concat(o));case 3:return n=e.sent,e.abrupt("return",n.data.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return",void 0);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),_n=function(){var e=Object(r.i)().dist_slug,t=Object(c.useState)(!1),n=Object(b.a)(t,2),a=n[0],s=n[1],i=Object(c.useState)(void 0),l=Object(b.a)(i,2),d=l[0],h=l[1],m=function(){var t=Object(j.a)(u.a.mark((function t(){var n;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s(!0),t.next=3,Nn(e||"head-office","member");case 3:n=t.sent,h(n),s(!1);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(c.useEffect)((function(){m()}),[]),Object(G.jsx)("div",{className:"p-1  br-6px",children:a?Object(G.jsx)(Oe,{}):d&&d.length?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)("div",{className:"d-flex justify-content-center align-item-center",children:d.map((function(e){return 1===e.position?Object(G.jsx)("div",{className:"ec-wrapper p-05",children:Object(G.jsx)(yn,{degisnation:e.designation,image:e.image,name:e.name,id:e.id,sec:!0})},e.id):""}))}),Object(G.jsx)("div",{className:"d-flex justify-content-center align-item-center",children:d.map((function(e){return 2===e.position?Object(G.jsx)("div",{className:"ec-wrapper p-05",children:Object(G.jsx)(yn,{degisnation:e.designation,image:e.image,name:e.name,id:e.id,sec:!0})},e.id):""}))}),Object(G.jsx)("div",{className:"d-flex justify-content-center align-item-center",children:d.map((function(e){return 3===e.position?Object(G.jsx)("div",{className:"ec-wrapper p-05",children:Object(G.jsx)(yn,{degisnation:e.designation,image:e.image,name:e.name,id:e.id,sec:!0})},e.id):""}))}),Object(G.jsx)("div",{className:"d-flex justify-content-center align-item-center",children:d.map((function(e){return 4===e.position?Object(G.jsx)("div",{className:"ec-wrapper p-05",children:Object(G.jsx)(yn,{degisnation:e.designation,image:e.image,name:e.name,id:e.id,sec:!0})},e.id):""}))})]}):Object(G.jsx)("div",{className:"pb-1 text-center",children:X.translation[o].sorry_no_members_found})})},kn=n(276),Sn=n(289),Fn=n(285),Cn=n.p+"static/media/election_voter_count.1726b984.png",Mn=function(){var e=Object(L.d)(),t=Object(L.e)((function(e){return e})),n=t.branch,a=t.translation,s=n.branches,i=n.loadingBranch;return Object(c.useEffect)((function(){s||e(ze())}),[e]),Object(G.jsx)("div",{className:"section-break-2",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:2,className:"d-flex align-item-center",children:[Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,md:6,xl:4,children:Object(G.jsxs)("div",{className:"section-padding-1 bg-primary br-6px",children:[Object(G.jsx)("h3",{className:"text-18",children:Object(G.jsx)(v.a,{to:"/".concat(o,"/election-offices"),className:"text-dark",children:a.translation?a.translation.state_election_offices["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("p",{className:"text-13-black",children:a.translation?a.translation.state_election_offices_text["np"===o?"value_np":"value_en"]:""}),Object(G.jsxs)(kn.a,{variant:"outlined",className:"custom-select mt-1",children:[Object(G.jsx)(Sn.a,{id:"district",children:X.translation[o].province}),Object(G.jsx)(Fn.a,{labelId:X.translation[o].province,id:X.translation[o].province,label:X.translation[o].province,className:"box-shadow-input",children:i?Object(G.jsx)(f.a,{value:"",disabled:!0,children:"Loading"}):s&&s.length?s.map((function(e){return e.district?"":Object(G.jsx)(v.a,{to:"/".concat(o,"/province/").concat(e.slug),className:"text-black",target:"_blank",children:Object(G.jsx)(f.a,{children:e.province})},e.id)})):Object(G.jsx)(f.a,{value:"",disabled:!0,children:"No branches"})})]})]})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,md:6,xl:4,children:Object(G.jsx)("div",{className:"map-wrapper",children:Object(G.jsx)("img",{src:Cn,alt:"",className:"img-fluid"})})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,md:6,xl:4,className:"",children:Object(G.jsxs)("div",{className:"section-padding-1 bg-primary br-6px",children:[Object(G.jsx)("h3",{className:"text-18",children:Object(G.jsx)(v.a,{to:"/".concat(o,"/election-offices"),className:"text-dark",children:a.translation?a.translation.state_district_election_offices["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("p",{className:"text-13-black",children:a.translation?a.translation.state_district_election_offices_text["np"===o?"value_np":"value_en"]:""}),Object(G.jsxs)(kn.a,{variant:"outlined",className:"custom-select mt-1",children:[Object(G.jsx)(Sn.a,{id:"district",children:X.translation[o].districts}),Object(G.jsx)(Fn.a,{labelId:X.translation[o].districts,id:X.translation[o].districts,label:X.translation[o].districts,className:"box-shadow-input",children:i?Object(G.jsx)(f.a,{value:"",disabled:!0,children:"Loading"}):s&&s.length?s.map((function(e){return e.district?Object(G.jsx)(v.a,{to:"/".concat(o,"/district/").concat(e.slug),className:"text-dark",target:"_blank",children:Object(G.jsx)(f.a,{children:e.district})},e.id):""})):Object(G.jsx)(f.a,{value:"",disabled:!0,children:"No branches"})})]})]})})]})})})},Pn=function(){var e,t=Object(r.i)().dist_slug,n=Object(c.useState)(!1),a=Object(b.a)(n,2),s=a[0],i=a[1],l=Object(c.useState)(void 0),o=Object(b.a)(l,2),d=o[0],m=o[1],x=function(){var e=Object(j.a)(u.a.mark((function e(){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(!0),e.next=3,Nn(t||"head-office","commissioner");case 3:n=e.sent,m(n),i(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){x()}),[]),Object(G.jsx)(G.Fragment,{children:s?Object(G.jsx)(Oe,{}):Object(G.jsx)(G.Fragment,{children:d&&d.length?Object(G.jsx)(G.Fragment,{children:Object(G.jsx)("div",{children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsx)("div",{className:"section-break-2",children:Object(G.jsxs)(z.a,{container:!0,className:"",spacing:4,children:[Object(G.jsx)(z.a,{item:!0,xs:12,md:12,lg:12,xl:12,children:Object(G.jsx)("div",{className:"ec-wrapper",children:Object(G.jsx)(yn,{name:d[0].name,degisnation:d[0].designation,image:d[0].image,id:d[0].id})})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:12,lg:12,xl:12,children:Object(G.jsx)(z.a,{container:!0,spacing:4,children:(e=d,Object(pe.a)(e).filter((function(e,t){return 0!==t}))).map((function(e,t){return Object(G.jsx)(z.a,{item:!0,xs:12,sm:6,md:6,lg:6,xl:6,className:"mb-05",children:Object(G.jsx)("div",{className:"ec-wrapper",children:Object(G.jsx)(yn,{sec:!0,name:e.name,degisnation:e.designation,image:e.image,id:e.id})})},t)}))})})]})})})})}):""})})},En=n.p+"static/media/lg-s.59fdba33.png",Dn=function(e){var t=e.gallery;return Object(G.jsxs)("div",{className:"ecn-blog-card",children:[Object(G.jsxs)("div",{className:"ecn-blog-card--img",children:[Object(G.jsx)("img",{src:t.children&&t.children.length?t.children[0].value:En,alt:""}),Object(G.jsx)("div",{className:"overlay",children:Object(G.jsx)(v.a,{to:"/"+o+"/gallery/"+t.key,children:Object(G.jsx)(H.e,{className:"icon"})})})]}),Object(G.jsx)("div",{className:"ecn-blog-card--details",children:Object(G.jsx)(v.a,{to:"/"+o+"/gallery/"+t.key,children:Object(G.jsx)("h3",{className:"text-15-primary p-05 text-center",title:t.name,children:t.name})})})]})},Ln={galleries:void 0,error:n(4).any,loading:!1,meta:void 0,videos:void 0,loadingVideo:!1,metaVideo:void 0,errorVideo:void 0},Bn=Object(y.b)({name:"gallery",initialState:Ln,reducers:{fetchGalleriesRequest:function(e){e.loading=!0},fetchGalleriesSuccess:function(e,t){e.loading=!1,e.galleries=t.payload.galleries,e.meta=t.payload.meta},fetchGalleriesFail:function(e,t){e.loading=!1,e.error=t.payload},fetchVideosRequest:function(e){e.loadingVideo=!0},fetchVideosSuccess:function(e,t){e.loadingVideo=!1,e.videos=t.payload.videos,e.metaVideo=t.payload.meta},fetchVideosFail:function(e,t){e.loadingVideo=!1,e.errorVideo=t.payload}}}),Rn=Bn.actions,qn=Rn.fetchGalleriesRequest,An=Rn.fetchGalleriesSuccess,Wn=Rn.fetchGalleriesFail,Vn=Rn.fetchVideosFail,In=Rn.fetchVideosRequest,Tn=Rn.fetchVideosSuccess,Gn=Bn.reducer,Qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){var n=Object(j.a)(u.a.mark((function n(c){var a,s,i;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(qn()),n.prev=1,n.next=4,E().get("resources/gallery?lang=".concat(o,"&page=").concat(e).concat(t?"&branch="+t:""));case 4:a=n.sent,s=a.data.data||void 0,i=a.data.meta||void 0,c(An({galleries:s,meta:i})),n.next=14;break;case 10:n.prev=10,n.t0=n.catch(1),n.t0&&n.t0.response&&n.t0.response.data&&c(Wn(n.t0.response.data)),c(Wn("Something went wrong!"));case 14:case"end":return n.stop()}}),n,null,[[1,10]])})));return function(e){return n.apply(this,arguments)}}()},zn=function(){var e=Object(j.a)(u.a.mark((function e(t){var n,c,a=arguments;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:null,e.prev=1,e.next=4,E().get("resources/gallery/".concat(t,"?lang=").concat(o).concat(n?"&branch="+n:""));case 4:return c=e.sent,e.abrupt("return",c.data.data);case 8:e.prev=8,e.t0=e.catch(1),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),Jn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){var n=Object(j.a)(u.a.mark((function n(c){var a,s,i;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(In()),n.prev=1,n.next=4,E().get("resources/video/?lang=".concat(o,"&page=").concat(e).concat(t?"&branch="+t:""));case 4:a=n.sent,s=a.data.data||void 0,i=a.data.meta||void 0,c(Tn({videos:s,meta:i})),n.next=14;break;case 10:n.prev=10,n.t0=n.catch(1),n.t0&&n.t0.response&&n.t0.response.data&&c(Vn(n.t0.response.data)),c(Vn("Something went wrong!"));case 14:case"end":return n.stop()}}),n,null,[[1,10]])})));return function(e){return n.apply(this,arguments)}}()},Yn=function(){var e=Object(r.i)().dist_slug,t=Object(r.h)().pathname,n=null===t||void 0===t?void 0:t.includes("province"),a=Object(L.d)();Object(c.useEffect)((function(){a(Qn(1,e))}),[]);var s=Object(L.e)((function(e){return e.translation})),i=Object(L.e)((function(e){return e.gallery})),l=i.loading,d=i.galleries;return Object(G.jsx)(G.Fragment,{children:l?"":d?Object(G.jsx)("div",{className:"bg-primary p-3",children:Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[Object(G.jsx)("h3",{className:"text-20-primary mb-0",children:s.translation?s.translation.gallery["np"===o?"value_np":"value_en"]:""}),Object(G.jsx)("div",{style:{marginLeft:"auto"},children:(null===d||void 0===d?void 0:d.length)>0?Object(G.jsx)(v.a,{to:"/".concat(o,"/").concat(e?"".concat(n?"province":"district","/gallery/").concat(e):"gallery"),className:"ecn-title text-14 mb-0",style:{fontWeight:500},children:X.translation[o].view_all}):Object(G.jsx)(G.Fragment,{})})]}),Object(G.jsx)("div",{className:"mt-2",children:(null===d||void 0===d?void 0:d.length)>0?Object(G.jsx)(Ze.a,{observeParents:!0,observer:!0,slidesPerView:1,navigation:!0,spaceBetween:15,breakpoints:{776:{slidesPerView:3},992:{slidesPerView:4}},className:"pb-0",children:d&&d.length?d.map((function(e,t){return Object(G.jsx)($e.a,{children:Object(G.jsx)(Dn,{gallery:e})},t)})):""}):Object(G.jsx)("p",{className:"text-center section-break-4 text-16-primary",children:X.translation[o].no_galleries})})]})}):""})},Xn=n(278),Kn=n(279),Un=n(280),Hn=function(){return Object(G.jsxs)(Xn.a,{children:[Object(G.jsx)(Kn.a,{title:X.translation[o].youtube_links,className:"card-header-primary"}),Object(G.jsx)(Un.a,{className:"bg-primary custom-card-body",children:Object(G.jsx)("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/BAuJYJNyJUM",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"})})]})},Zn=function(){var e=Object(L.e)((function(e){return e.translation}));return Object(G.jsxs)(Xn.a,{children:[Object(G.jsx)(Kn.a,{title:e.translation?e.translation.facebook_feeds["np"===o?"value_np":"value_en"]:"",className:"card-header-primary"}),Object(G.jsx)(Un.a,{className:"bg-primary custom-card-body",children:Object(G.jsx)("iframe",{style:{width:"100% "},src:"https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fecnofficial&tabs=timeline&width=340&height=500&small_header=true&adapt_container_width=true&hide_cover=false&show_facepile=true&appId=239464641053195",width:"340",height:"400",scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",title:"Facebook feeds"})})]})},$n=n(128),ec=function(){var e=Object(L.e)((function(e){return e.translation}));return Object(G.jsxs)(Xn.a,{children:[Object(G.jsx)(Kn.a,{title:e.translation?e.translation.twitter_feeds["np"===o?"value_np":"value_en"]:"",className:"card-header-primary"}),Object(G.jsx)(Un.a,{className:"bg-primary custom-card-body",children:Object(G.jsx)("div",{style:{height:"400px",overflow:"auto"},children:Object(G.jsx)($n.a,{sourceType:"profile",screenName:"ECNOfficial",options:{height:400}})})})]})},tc=function(){return Object(G.jsx)("div",{className:"section-break-2",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:3,children:[Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,sm:6,xl:4,children:Object(G.jsx)(Hn,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,sm:6,xl:4,children:Object(G.jsx)(Zn,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,sm:6,xl:4,children:Object(G.jsx)(ec,{})})]})})})},nc={news:void 0,error:void 0,loading:!1,meta:void 0,important:void 0,tickerNews:void 0},cc=Object(y.b)({name:"news",initialState:nc,reducers:{fetchNewsRequest:function(e){e.loading=!0},fetchNewsSuccess:function(e,t){var n;e.loading=!1,e.news=t.payload.news,e.meta=t.payload.meta,e.important=null===t||void 0===t||null===(n=t.payload)||void 0===n?void 0:n.important},fetchNewsFail:function(e,t){e.loading=!1,e.error=t.payload},fetchTickerNewsSuccess:function(e,t){var n;e.tickerNews=null===t||void 0===t||null===(n=t.payload)||void 0===n?void 0:n.news,e.loading=!1}}}),ac=cc.actions,sc=ac.fetchNewsSuccess,ic=ac.fetchNewsFail,rc=ac.fetchNewsRequest,lc=ac.fetchTickerNewsSuccess,oc=cc.reducer,dc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){var n=Object(j.a)(u.a.mark((function n(c){var a,s,i,r,l;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(rc()),n.prev=1,n.next=4,E().get("resources/news/?lang=".concat(o,"&page=").concat(e).concat(t?"&branch="+t:""));case 4:s=n.sent,i=s.data.data||void 0,r=s.data.meta||void 0,l=(null===s||void 0===s||null===(a=s.data)||void 0===a?void 0:a.important)||void 0,c(sc({news:i,meta:r,important:l})),n.next=15;break;case 11:n.prev=11,n.t0=n.catch(1),n.t0&&n.t0.response&&n.t0.response.data&&c(ic(n.t0.response.data)),c(ic("Something went wrong!"));case 15:case"end":return n.stop()}}),n,null,[[1,11]])})));return function(e){return n.apply(this,arguments)}}()},uc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){var n=Object(j.a)(u.a.mark((function n(c){var a,s;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(rc()),n.prev=1,n.next=4,E().get("resources/ticker-news/?lang=".concat(o,"&page=").concat(e).concat(t?"&branch="+t:""));case 4:a=n.sent,s=a.data.data||void 0,c(lc({news:s})),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),c(ic("Something went wrong!"));case 12:case"end":return n.stop()}}),n,null,[[1,9]])})));return function(e){return n.apply(this,arguments)}}()},jc=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("resources/news/".concat(t,"?lang=").concat(o));case 3:return n=e.sent,e.abrupt("return",n.data.data);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),bc=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("/resources/it-subsystem/?lang="+o);case 3:return t=e.sent,e.abrupt("return",t.data.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),hc=function(){var e=Object(c.useState)(void 0),t=Object(b.a)(e,2),n=t[0],a=t[1],s=Object(c.useState)(!1),i=Object(b.a)(s,2),r=i[0],l=i[1],o=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,bc();case 3:t=e.sent,a(t),l(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){o()}),[]),Object(G.jsx)(G.Fragment,{children:r?"":Object(G.jsx)("div",{className:"p-2 display-flex info-icon-list",style:{justifyContent:"space-evenly",alignItems:"center",flexWrap:"wrap"},children:n&&n.length?n.map((function(e,t){return Object(G.jsxs)("div",{className:" it-card p-15",children:[Object(G.jsx)("div",{className:"text-center",children:Object(G.jsx)("a",{href:e.key,target:"_blank",rel:"noreferrer",children:Object(G.jsx)("img",{src:e.value,alt:"",style:{maxWidth:"150px"}})})}),Object(G.jsx)("a",{href:e.key,target:"_blank",rel:"noreferrer",children:Object(G.jsx)("h3",{className:"text-16-primary text-center mt-05",children:e.name})})]},t)})):""})})},mc=n(120),xc=n.n(mc),vc=n(121),Oc=n(30),pc=n(78),fc=function(e){var t,n,a,s=e.open,i=e.data,r=e.itemIndex,l=Object(c.useState)(s),o=Object(b.a)(l,2),d=o[0],u=o[1],j=Xt()(i.created_at).format("yyyy/MM/DD"),h=pc.ad2bs(j);Object(c.useEffect)((function(){u(s)}),[s]),Object(c.useEffect)((function(){return document.body.style.overflow="hidden",window.scrollTo(0,0),function(){document.body.style.overflow="unset"}}),[]);return Object(G.jsx)(xc.a,{isOpen:d,contentLabel:"Minimal Modal Example",className:"jacket-modal",style:{overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.38)"}},onAfterClose:function(){0===r&&(document.body.style.overflow="unset")},children:Object(G.jsxs)("div",{className:"container",children:[Object(G.jsxs)("div",{className:"title-wrapper",children:[Object(G.jsx)("h3",{className:"ecn-title",children:null===i||void 0===i?void 0:i.title}),Object(G.jsx)(vc.a,{onClick:function(){u(!1)},size:40,className:"close-btn",color:"#092770"})]}),Object(G.jsxs)("p",{className:"text-13-primary display-flex align-item-center dev-number",children:[Object(G.jsx)(Oc.b,{className:"mr-05"}),"".concat(null===h||void 0===h||null===(t=h.en)||void 0===t?void 0:t.year,"/").concat(null===h||void 0===h||null===(n=h.en)||void 0===n?void 0:n.month,"/").concat(null===h||void 0===h||null===(a=h.en)||void 0===a?void 0:a.day)]}),"notice"===(null===i||void 0===i?void 0:i.type)?Object(G.jsx)("img",{src:null===i||void 0===i?void 0:i.value,alt:"Notice image"}):Object(G.jsx)("div",{children:Object(G.jsx)("div",{className:"blog-details",dangerouslySetInnerHTML:{__html:(null===i||void 0===i?void 0:i.value)||""}})})]})})},gc=function(){var e=Object(j.a)(u.a.mark((function e(){var t,n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("/election-deadline?lang=".concat(o));case 3:return n=e.sent,e.abrupt("return",null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.data);case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),yc=n(287),Nc=n(74),wc=n(13),_c=Object(wc.a)((function(e){return{tooltip:{backgroundColor:"#F90026",color:"white",maxWidth:220,fontSize:e.typography.pxToRem(18),border:"1px solid #F90026"}}}))(yc.a),kc=function(){var e,t,n=Object(c.useState)(!1),s=Object(b.a)(n,2),i=s[0],r=s[1],l=Object(c.useState)(),d=Object(b.a)(l,2),h=d[0],m=d[1];Object(c.useEffect)((function(){x()}),[]);var x=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.next=3,gc();case 3:t=e.sent,console.log("data here",t),m(t),r(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=(null===h||void 0===h?void 0:h.election_deadline_days)?null===h||void 0===h?void 0:h.election_deadline_days["np"===o?"value_np":"value_en"]:0;return console.log("days to go",v),Object(G.jsx)(G.Fragment,{children:(null===h||void 0===h?void 0:h.election_deadline_switch)?Object(G.jsx)(G.Fragment,{children:i?"":Object(G.jsxs)("div",{className:"display-flex info-icon-list local-election",style:{},children:[Object(G.jsx)("h3",{children:null!==(e=null===h||void 0===h?void 0:h.election_deadline_title["np"===o?"value_np":"value_en"])&&void 0!==e?e:"Local Election"}),0==v||"\u0966"==v?Object(G.jsx)(G.Fragment,{}):Object(G.jsxs)("div",{className:"display-flex",children:[Object(G.jsx)(_c,{title:Object(G.jsx)(a.a.Fragment,{children:Object(G.jsx)(Nc.a,{color:"inherit",children:(null===h||void 0===h?void 0:h.election_deadline_date)?null===h||void 0===h?void 0:h.election_deadline_date["np"===o?"value_np":"value_en"]:"2022-05-13"})}),children:Object(G.jsx)("div",{className:"local-election--timer",children:Object(G.jsx)("h1",{children:v})})}),Object(G.jsx)("h4",{children:null!==(t=null===h||void 0===h?void 0:h.election_deadline_subtitle["np"===o?"value_np":"value_en"])&&void 0!==t?t:"days to go"})]})]})}):Object(G.jsx)(G.Fragment,{})})},Sc=function(){var e=Object(L.e)((function(e){return e.news})),t=e.loading,n=e.news,a=e.important,s=e.tickerNews,i=Object(L.d)();Object(c.useEffect)((function(){r(),n||i(dc())}),[i]);var r=function(){i(uc())};return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mt,{news:s,loading:t}),Object(G.jsx)(Ct,{home:!0}),Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsx)(hc,{})}),Object(G.jsx)(kc,{}),Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:0,children:[Object(G.jsx)(z.a,{item:!0,xs:12,lg:7,md:6,xl:6,children:Object(G.jsx)(At,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:5,md:6,xl:6,children:Object(G.jsx)(Pn,{})})]})})}),Object(G.jsx)("div",{className:"mt-2 mb-2 bg-primary",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:2,className:"align-item-center",children:[Object(G.jsx)(z.a,{item:!0,xs:12,lg:8,md:6,xl:8,children:Object(G.jsx)(gn,{news:n||[],loadingNews:t})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,md:6,xl:4,children:Object(G.jsx)(_n,{})})]})})}),Object(G.jsx)(Mn,{}),Object(G.jsx)(Yn,{}),Object(G.jsx)(tc,{}),null===a||void 0===a?void 0:a.map((function(e,t){return Object(G.jsx)(fc,{open:!0,data:e,itemIndex:t})}))]})},Fc=n.p+"static/media/homeAbout.7633259e.png",Cc=function(){var e,t=Object(c.useState)(!1),n=Object(b.a)(t,2),a=n[0],s=(n[1],Object(L.e)((function(e){return e.translation})));return Object(G.jsx)(G.Fragment,{children:a?Object(G.jsx)(Oe,{}):Object(G.jsx)("div",{className:"section-break-2 home-about",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:2,children:[Object(G.jsx)(z.a,{item:!0,md:6,lg:4,xl:4,children:Object(G.jsx)("img",{src:Fc,alt:"",className:"img-fluid"})}),Object(G.jsx)(z.a,{item:!0,md:6,lg:8,xl:8,children:Object(G.jsxs)("div",{className:"home-about--info",children:[Object(G.jsx)("h3",{className:"text-22",children:"en"===o?"Introduction":"\u092a\u0930\u093f\u091a\u092f"}),Object(G.jsx)("p",{className:"text-14-primary text-justify",children:null===s||void 0===s||null===(e=s.translation)||void 0===e?void 0:e.introduction_text["np"===o?"value_np":"value_en"]})]})})]})})})})},Mc=function(e){var t=e.routes,n=e.slug,a=Object(L.e)((function(e){return e.menu})).menu,s=Object(c.useState)(void 0),i=Object(b.a)(s,2),r=i[0],l=i[1];return Object(c.useEffect)((function(){!function(){if(a&&a.children&&a.children.length&&n){var e=[];!function t(n){n.forEach((function(n){e.push(n),n.children&&n.children.length&&t(n.children)}))}(a.children);var t=e.find((function(e){return Ne(e.key)===Ne(n)})),c=[];t&&(function t(n){var a=e.find((function(e){return e.id===n.parent_id}));a&&(c.push(a),t(a))}(t),l(c.reverse()))}}()}),[a]),Object(G.jsx)("div",{className:"ecn-breadcrumb bg-primary",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)("ul",{children:[Object(G.jsx)("li",{children:Object(G.jsx)(v.a,{to:"/"+o,children:X.translation[o].home})}),r?r.map((function(e){return Object(G.jsx)("li",{children:Object(G.jsx)(v.a,{to:"/"+o+Ne(e.key),children:e.name})},e.id)})):"",t&&t.map((function(e,t){return Object(G.jsx)("li",{children:e.path?Object(G.jsx)(v.a,{to:"/"+o+e.path,children:e.title}):Object(G.jsx)(G.Fragment,{children:e.title})},t)}))]})})})},Pc=function(){return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{slug:"about-us",routes:[{title:X.translation[o].about_us}]}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:X.translation[o].about_us})}),Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsx)(Cc,{})})}),Object(G.jsx)("div",{className:"bg-primary section-padding-2",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:0,children:[Object(G.jsx)(z.a,{item:!0,xs:12,lg:7,md:6,xl:6,children:Object(G.jsx)(At,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:5,md:6,xl:6,children:Object(G.jsx)(Pn,{})})]})})})]})},Ec=n(78),Dc=function(e){var t,n,c,a,s=e.news,i=Xt()(s.created_at).format("yyyy/MM/DD"),r=Ec.ad2bs(i),l="np"==o?"ne":"en",d=null===s||void 0===s?void 0:s.translations.find((function(e){return"np"===e.locale})),u=null===s||void 0===s?void 0:s.translations.find((function(e){return"en"===e.locale})),j="np"===o?null===d||void 0===d?void 0:d.title:null===u||void 0===u?void 0:u.title;j&&""!==j||(j=null!==(a=null===d||void 0===d?void 0:d.title)&&void 0!==a?a:null===u||void 0===u?void 0:u.title);return Object(G.jsxs)("div",{className:"ecn-blog-card",children:[Object(G.jsxs)("div",{className:"ecn-blog-card--img",children:[Object(G.jsx)("img",{src:(null===s||void 0===s?void 0:s.image)||En,alt:""}),Object(G.jsxs)("div",{className:"overlay",children:[Object(G.jsx)(v.a,{to:"/"+o+"/news/"+s.slug,children:Object(G.jsx)(Oc.a,{className:"icon"})}),Object(G.jsxs)("div",{className:"date",children:[Object(G.jsx)(Oc.b,{}),Object(G.jsx)("span",{children:"".concat(null===(t=r[l])||void 0===t?void 0:t.day," ").concat(null===(n=r[l])||void 0===n?void 0:n.strMonth," ").concat(null===(c=r[l])||void 0===c?void 0:c.year," ")})]})]})]}),Object(G.jsxs)("div",{className:"ecn-blog-card--details",children:[Object(G.jsx)(v.a,{to:"/"+o+"/news/"+s.slug,children:Object(G.jsx)("h3",{className:"text-15-primary mb-05",children:j&&fe(j,60)||""})}),Object(G.jsx)("p",{className:"m-0",children:s.excerpt?fe(s.excerpt,150):""})]})]})},Lc=n(284),Bc=function(e){var t=e.meta,n=e.paginate;return Object(G.jsx)(G.Fragment,{children:t?Object(G.jsx)(Lc.a,{count:function(){var e=t.total/t.per_page,n=Math.floor(e);return e>n?n+1:n}(),page:t.current_page,onChange:function(e,t){n(t)},className:"ecn-paginated"}):""})},Rc=function(){var e=Object(r.i)().dist_slug,t=Object(L.d)(),n=Object(L.e)((function(e){return e.news})),a=n.loading,s=n.news,i=n.meta,l=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t(dc(n,e))};Object(c.useEffect)((function(){l()}),[t]);var d=Object(L.e)((function(e){return e.translation}));return Object(G.jsx)(G.Fragment,{children:a?Object(G.jsx)(Oe,{}):Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:d.translation?d.translation.news["np"===o?"value_np":"value_en"]:""}],slug:"news"}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:d.translation?d.translation.news["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsx)(z.a,{container:!0,spacing:3,children:s&&s.length?s.map((function(e){return Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:3,sm:6,xl:3,children:Object(G.jsx)(Dc,{news:e})},e.id)})):Object(G.jsx)(z.a,{item:!0,xs:12,children:Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry no News found!!"})})}),Object(G.jsx)("div",{className:"section-break-2 text-center",children:Object(G.jsx)(Bc,{meta:i,paginate:l})})]})})]})})},qc=function(){var e=Object(r.i)().slug,t=a.a.useState(void 0),n=Object(b.a)(t,2),s=n[0],i=n[1],l=a.a.useState(!1),d=Object(b.a)(l,2),m=d[0],x=d[1],v=function(){var t=Object(j.a)(u.a.mark((function t(){var n;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(!0),t.next=3,jc(e);case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=void 0;case 6:n=t.t0,i(n),x(!1);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(c.useEffect)((function(){v()}),[e]);var O=Object(L.e)((function(e){return e.translation}));return Object(G.jsx)(G.Fragment,{children:m?Object(G.jsx)(Oe,{}):s?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{slug:"news",routes:[{title:O.translation?O.translation.news["np"===o?"value_np":"value_en"]:"",path:"/news"},{title:fe(s.title,60)||""}]}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:s.title||""})}),Object(G.jsx)("div",{className:"section-padding-2 ",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsx)(z.a,{container:!0,className:"justify-content-center",children:Object(G.jsxs)(z.a,{item:!0,xs:12,md:8,children:[Object(G.jsx)("img",{src:s.image||"",alt:"",className:"img-fluid mb-1"}),Object(G.jsxs)("p",{className:"text-13-primary display-flex align-item-center dev-number",children:[Object(G.jsx)(Oc.b,{className:"mr-05"}),Xt()(s.created_at).format("MMMM Do YYYY")]}),Object(G.jsx)("div",{className:"blog-details",dangerouslySetInnerHTML:{__html:s.body||""}})]})})})})]}):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry news not found!!"})})},Ac=function(){var e=Object(r.i)().dist_slug,t=Object(L.d)(),n=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t(Qn(n,e))};Object(c.useEffect)((function(){n()}),[t]);var a=Object(L.e)((function(e){return e.gallery})),s=a.galleries,i=a.loading,l=a.meta,d=Object(L.e)((function(e){return e.translation}));return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:d.translation?d.translation.gallery["np"===o?"value_np":"value_en"]:""}],slug:"gallery"}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:d.translation?d.translation.gallery["np"===o?"value_np":"value_en"]:""})}),i?Object(G.jsx)(Oe,{}):Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsx)(z.a,{container:!0,spacing:3,children:s&&s.length?s.map((function(e,t){return Object(G.jsx)(z.a,{item:!0,xs:12,sm:2,md:3,lg:4,children:Object(G.jsx)(Dn,{gallery:e})},t)})):Object(G.jsx)(z.a,{item:!0,xs:12,children:Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:X.translation[o].no_galleries})})}),Object(G.jsx)("div",{className:"section-break-2 text-center",children:Object(G.jsx)(Bc,{meta:l,paginate:n})})]})})]})},Wc=n(86),Vc=n(291),Ic=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("form/contact-form?lang=".concat(o));case 3:return n=e.sent,e.abrupt("return",n.data.data);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),Tc=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().post("form-response",t);case 3:return n=e.sent,e.abrupt("return",{success:!0,message:n.data.message});case 7:return e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return",{success:!1,message:"Something went wrong."});case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),Gc=function(){var e=Object(c.useState)(null),t=Object(b.a)(e,2),n=t[0],a=t[1],s=Object(c.useState)(!1),i=Object(b.a)(s,2),r=i[0],l=i[1],d=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,Ic("contct-form");case 3:t=e.sent,a(t),l(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(c.useEffect)((function(){d()}),[]);var h=Object(c.useState)({name:"",email:"",message:""}),m=Object(b.a)(h,2),x=m[0],v=m[1],O=function(e,t){var n=e.target.value;v(Object(Wt.a)(Object(Wt.a)({},x),{},Object(Wc.a)({},t,n))),k(void 0)},p=Object(c.useState)(!1),f=Object(b.a)(p,2),g=f[0],y=f[1],N=Object(c.useState)(void 0),w=Object(b.a)(N,2),_=w[0],k=w[1],S=function(){var e=Object(j.a)(u.a.mark((function e(t,n){var c,a;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!(x&&x.name&&x.email&&x.message)){e.next=13;break}return y(!0),(c=Object(Wt.a)({},x)).form_id=n,e.next=7,Tc(ye(c));case 7:a=e.sent,k(a),a.success&&v({email:"",message:"",name:""}),y(!1),e.next=14;break;case 13:k({success:!1,message:X.translation[o].please_fill_all_of_required_field});case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return Object(G.jsx)(G.Fragment,{children:r||g?Object(G.jsx)(Oe,{}):n?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsxs)("form",{onSubmit:function(e){return S(e,n.id)},children:[Object(G.jsx)("div",{className:"text-center",children:Object(G.jsx)("div",{className:"ecn-title mb-1",children:n.title})}),Object.keys(n.description).map((function(e,t){return"text"===n.description[e]?Object(G.jsx)(z.a,{item:!0,xs:12,children:Object(G.jsx)(Vc.a,{required:!0,label:e+" (".concat(X.translation[o].required,")"),value:"\u0928\u093e\u092e"===e||"name"===e?x.name:x.email,onChange:function(t){return O(t,"\u0928\u093e\u092e"===e||"name"===e?"name":"email")},variant:"outlined",className:"input-w-100 mb-2"})},t):Object(G.jsx)(z.a,{item:!0,xs:12,children:Object(G.jsx)(Vc.a,{required:!0,label:e+" (".concat(X.translation[o].required,")"),variant:"outlined",multiline:!0,onChange:function(e){return O(e,"message")},rows:7,value:x.message,className:"input-w-100 mb-2"})},t)})),Object(G.jsx)(zt.a,{className:"btn-primary",type:"submit",disabled:g,children:X.translation[o].send})]}),_?Object(G.jsx)("div",{className:_.success?"success-text m-1":"error-text m-1",children:_.message||""}):""]}):""})},Qc=function(){var e,t,n,a,s=Object(c.useState)(void 0),i=Object(b.a)(s,2),r=i[0],l=i[1],d=Object(c.useState)(void 0),h=Object(b.a)(d,2),m=h[0],x=h[1],v=(Object(L.e)((function(e){return e.translation})),function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(),e.next=3,Je("head-office");case 3:t=e.sent,l(t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),O=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Nn("head-office","member?contact_page=true");case 2:t=e.sent,x(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){v()}),[]),console.log("branch here",r),Object(G.jsxs)(Xn.a,{children:[Object(G.jsx)(Kn.a,{title:Object(G.jsx)(G.Fragment,{children:Object(G.jsx)("h4",{className:"text-center m-0 contact_us_title",children:X.translation[o].contact_us})}),className:"card-header-primary"}),Object(G.jsx)(Un.a,{className:"bg-primary",children:Object(G.jsxs)(z.a,{container:!0,spacing:2,children:[r?Object(G.jsx)(z.a,{xs:12,md:12,lg:5,children:Object(G.jsxs)("ul",{className:"contact-list mb-1",children:[Object(G.jsx)("h4",{className:"ecn-title text-13",children:X.translation[o].election_commission}),Object(G.jsxs)("li",{children:[" ",Object(G.jsx)(Oc.d,{className:"mr-05"}),(null===r||void 0===r||null===(e=r.address)||void 0===e?void 0:e.municipality)?"".concat(null===r||void 0===r||null===(t=r.address)||void 0===t?void 0:t.municipality," ,"):""," ",Object(G.jsx)("span",{className:"dev-number",children:"".concat((null===r||void 0===r||null===(n=r.address)||void 0===n?void 0:n.ward)?(null===r||void 0===r||null===(a=r.address)||void 0===a?void 0:a.ward)+" ,":"")})," ",r.district?r.district:r.province]}),Object(G.jsxs)("li",{children:[" ",Object(G.jsx)(Oc.c,{className:"mr-05 "}),Object(G.jsxs)("span",{children:[X.translation[o].phone,":"]})," ",Object(G.jsx)("span",{className:"dev-number",children:r.phone})]}),Object(G.jsxs)("li",{children:[" ",Object(G.jsx)(Oc.h,{className:"mr-05 dev-number"}),Object(G.jsxs)("span",{children:[X.translation[o].fax,":"]})," ",Object(G.jsx)("span",{className:"dev-number",children:null===r||void 0===r?void 0:r.fax})," "]}),Object(G.jsxs)("li",{children:[Object(G.jsx)(Oc.g,{className:"mr-05"}),X.translation[o].email,": ",Object(G.jsx)("a",{href:"mailto:info@election.gov.np",className:"ml-05 eng-number",children:r.email})]}),Object(G.jsxs)("li",{children:[Object(G.jsx)(Oc.e,{className:"mr-05"}),Object(G.jsx)("a",{href:null===r||void 0===r?void 0:r.facebook,className:"ml-05",target:"_blank",rel:"noreferrer",children:X.translation[o].facebook})]}),Object(G.jsxs)("li",{children:[Object(G.jsx)(Oc.f,{className:"mr-05"}),Object(G.jsx)("a",{href:null===r||void 0===r?void 0:r.twitter,className:"ml-05",target:"_blank",rel:"noreferrer",children:X.translation[o].twitter})]})]})}):"",Object(G.jsx)(z.a,{xs:12,md:12,lg:7,children:m&&m.length?null===m||void 0===m?void 0:m.map((function(e,t){var n,c;return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)("h4",{className:"ecn-title text-13",children:null===e||void 0===e?void 0:e.designation}),Object(G.jsxs)("ul",{className:"contact-list mb-1",children:[Object(G.jsx)("li",{children:"".concat(null===e||void 0===e?void 0:e.name)}),Object(G.jsxs)("li",{children:[X.translation[o].phone,": ",Object(G.jsx)("span",{className:"dev-number",children:null!==(n=null===e||void 0===e?void 0:e.contact)&&void 0!==n?n:"-"})]}),Object(G.jsxs)("li",{children:[X.translation[o].email,": ",Object(G.jsx)("a",{href:"mailto:".concat(null===e||void 0===e?void 0:e.email),className:"ml-05",children:null!==(c=null===e||void 0===e?void 0:e.email)&&void 0!==c?c:"-"})]})]})]})})):""})]})})]})},zc=function(){return Object(G.jsxs)("div",{className:"ecn-map mt-2",children:[Object(G.jsx)("iframe",{title:"ECN Location",src:"https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14128.752263690776!2d85.30679608406983!3d27.711479078078344!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x9aeff34685cd7502!2sElection%20Commission%2C%20Nepal!5e0!3m2!1sen!2snp!4v1626934455141!5m2!1sen!2snp",width:"600",height:"450",loading:"lazy"}),"    "]})},Jc=function(){return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{slug:"contact-us",routes:[{title:X.translation[o].contact_us}]}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:X.translation[o].contact_us})}),Object(G.jsx)(h.a,{maxWidth:"lg",className:"section-padding-2",children:Object(G.jsxs)(z.a,{container:!0,spacing:4,children:[Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:6,children:Object(G.jsx)(Qc,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:6,children:Object(G.jsx)(Gc,{})})]})}),Object(G.jsx)(zc,{})]})},Yc=function(e){var t,n,a,s,i,r,l,d,u,j,m=e.stats,x=e.branch,v=Object(c.useState)(""),O=Object(b.a)(v,2),p=O[0],f=O[1],g=Object(L.e)((function(e){return e.translation}));return Object(c.useEffect)((function(){!function(){if(m){var e=parseInt(m.value.female_voters)+parseInt(m.value.male_voters)+parseInt(m.value.other_voters);f(e.toString())}}()}),[m]),Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)("section",{className:"section-break-2",children:[x?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsxs)("h3",{className:"text-18-primary text-center",children:[(null===x||void 0===x?void 0:x.district)?x.district:null===x||void 0===x?void 0:x.province," ",(null===g||void 0===g?void 0:g.translation)?null===g||void 0===g||null===(t=g.translation)||void 0===t?void 0:t.election_turnout_number["np"===o?"value_np":"value_en"]:""]}),Object(G.jsx)("p",{className:"text-14 text-center",children:(null===x||void 0===x?void 0:x.district)?x.district:null===x||void 0===x?void 0:x.province})]}):"",m?Object(G.jsxs)(z.a,{container:!0,spacing:3,className:"mt-2",children:[Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:3,children:Object(G.jsxs)("div",{className:"voter-card",children:[Object(G.jsx)("div",{className:"icon text-center",children:Object(G.jsx)(H.l,{})}),Object(G.jsx)("p",{className:"text-16-secondary  bold  text-center dev-number",children:p&&"NaN"!==p?ge(p):"-"}),Object(G.jsx)("h3",{className:"text-16-primary bold",children:null===g||void 0===g||null===(n=g.translation)||void 0===n?void 0:n.total_voters["np"===o?"value_np":"value_en"]})]})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:3,children:Object(G.jsxs)("div",{className:"voter-card",children:[Object(G.jsx)("div",{className:"icon text-center",children:Object(G.jsx)(H.c,{})}),Object(G.jsx)("p",{className:"text-16-secondary  bold  text-center dev-number",children:(null===m||void 0===m||null===(a=m.value)||void 0===a?void 0:a.female_voters)?ge(m.value.female_voters||""):"-"}),Object(G.jsx)("h3",{className:"text-16-primary bold",children:null===g||void 0===g||null===(s=g.translation)||void 0===s?void 0:s.female_voters["np"===o?"value_np":"value_en"]})]})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:3,children:Object(G.jsxs)("div",{className:"voter-card",children:[Object(G.jsx)("div",{className:"icon text-center",children:Object(G.jsx)(H.g,{})}),Object(G.jsx)("p",{className:"text-16-secondary  bold  text-center dev-number",children:(null===m||void 0===m||null===(i=m.value)||void 0===i?void 0:i.male_voters)?ge((null===m||void 0===m||null===(r=m.value)||void 0===r?void 0:r.male_voters)||""):"-"}),Object(G.jsx)("h3",{className:"text-16-primary bold",children:null===g||void 0===g||null===(l=g.translation)||void 0===l?void 0:l.male_voters["np"===o?"value_np":"value_en"]})]})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:6,lg:3,children:Object(G.jsxs)("div",{className:"voter-card",children:[Object(G.jsx)("div",{className:"icon text-center",children:Object(G.jsx)(H.j,{})}),Object(G.jsx)("p",{className:"text-16-secondary  bold  text-center dev-number",children:(null===m||void 0===m||null===(d=m.value)||void 0===d?void 0:d.other_voters)?ge((null===m||void 0===m||null===(u=m.value)||void 0===u?void 0:u.other_voters)||""):"-"}),Object(G.jsx)("h3",{className:"text-16-primary bold",children:null===g||void 0===g||null===(j=g.translation)||void 0===j?void 0:j.other_voters["np"===o?"value_np":"value_en"]})]})})]}):""]})})},Xc=function(e){var t=e.branch;return Object(G.jsx)("div",{className:"map-wrapper",children:Object(G.jsxs)("figure",{children:[t.image?Object(G.jsx)("img",{src:t.image,alt:""}):"",Object(G.jsxs)("figcaption",{children:[t.district?t.district:t.province,(null===t||void 0===t?void 0:t.file)?Object(G.jsx)("a",{href:null===t||void 0===t?void 0:t.file,className:"branch-profile",target:"_blank",children:Object(G.jsx)("span",{children:X.translation[o].branch_profile})}):Object(G.jsx)(G.Fragment,{})]}),Object(G.jsx)("a",{href:t.image,className:"map-icon",children:Object(G.jsx)(H.i,{})})]})})},Kc=function(e){var t=Object(r.i)().dist_slug,n=Object(c.useState)(void 0),a=Object(b.a)(n,2),s=a[0],i=a[1],l=Object(c.useState)(void 0),o=Object(b.a)(l,2),d=o[0],m=o[1],x=Object(c.useState)(!1),v=Object(b.a)(x,2),O=v[0],p=v[1],f=function(){var e=Object(j.a)(u.a.mark((function e(){var n,c;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.next=3,Je(t);case 3:return n=e.sent,i(n),e.next=7,Ye(t);case 7:c=e.sent,m(c),p(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(c.useEffect)((function(){f(),S()}),[t]);var g=Object(L.e)((function(e){return e.news})),y=g.loading,N=g.news,w=g.tickerNews,_=g.important,k=Object(L.d)();Object(c.useEffect)((function(){N||k(dc(1,t))}),[k]);var S=function(){k(uc(1,t))};return Object(G.jsxs)(G.Fragment,{children:[O?Object(G.jsx)(Oe,{}):s?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mt,{news:w,loading:y}),Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,children:[Object(G.jsx)(z.a,{item:!0,xs:12,lg:6,md:6,children:Object(G.jsx)(Ct,{})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:6,md:6,children:Object(G.jsx)(Xc,{branch:s})})]})}),Object(G.jsx)(Yc,{stats:d,branch:s}),Object(G.jsx)("div",{className:"section-break-2",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,spacing:2,children:[Object(G.jsx)(z.a,{item:!0,xs:12,lg:8,md:6,xl:8,children:Object(G.jsx)(gn,{news:N||[],loadingNews:y})}),Object(G.jsx)(z.a,{item:!0,xs:12,lg:4,md:6,xl:4,children:Object(G.jsx)(_n,{})})]})})}),Object(G.jsx)(Mn,{}),Object(G.jsx)(Yn,{}),Object(G.jsx)(tc,{})]}):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry district not found!!"}),null===_||void 0===_?void 0:_.map((function(e,t){return Object(G.jsx)(fc,{open:!0,data:e,itemIndex:t})}))]})},Uc=(n(187),function(e){var t=e.visible,n=e.children,c=e.closeModel;return t?Object(s.createPortal)(Object(G.jsxs)("div",{className:"ecn-lightbox-Model",children:[Object(G.jsx)("div",{className:"backdrop",onClick:c}),Object(G.jsx)(O.h,{className:"ecn-lightbox-Model-close",onClick:c}),Object(G.jsx)("div",{className:"ecn-lightbox-Model-content",children:n})]}),document.body):Object(G.jsx)(G.Fragment,{})}),Hc=(n(188),function(e){var t=e.images,n=e.active,c=e.previous,a=e.next;return Object(G.jsxs)(z.a,{item:!0,xs:12,md:8,children:[Object(G.jsx)("div",{className:"ecn-lb-slider",children:t.map((function(e,t){return Object(G.jsx)("div",{className:t===n?"ecn-lb-slider-item active":"ecn-lb-slider-item",children:Object(G.jsx)("img",{src:e.value,alt:"",className:"img-fluid"})},t)}))}),Object(G.jsx)(O.b,{className:"ecn-lb-slider-nav left",onClick:c}),Object(G.jsx)(O.c,{className:"ecn-lb-slider-nav right",onClick:a})]})}),Zc=function(e){var t=e.images,n=e.active,c=a.a.useState(0),s=Object(b.a)(c,2),i=s[0],r=s[1],l=a.a.useState(!1),o=Object(b.a)(l,2),d=o[0],u=o[1];return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(O.d,{onClick:function(){document.body.classList.add("ecn-lb-model-open"),r(n),u(!0)}}),d?Object(G.jsx)(Uc,{visible:d,closeModel:function(){document.body.classList.remove("ecn-lb-model-open"),r(0),u(!1)},children:Object(G.jsx)(Hc,{images:t,active:i,previous:function(){if(t.length){var e=t.length;r(i<=0?e-1:i-1)}},next:function(){if(t.length){var e=t.length;r(i>=e-1?0:i+1)}}})}):""]})},$c=function(e){var t=e.image,n=e.images,c=e.active;return Object(G.jsx)(G.Fragment,{children:Object(G.jsxs)("div",{className:"ecn-gallery-card",children:[Object(G.jsx)("img",{src:t,alt:"",className:"img-fluid"}),Object(G.jsx)("div",{className:"overlay",children:Object(G.jsx)(Zc,{images:n,active:c})})]})})},ea=function(){var e=Object(r.i)().slug,t=Object(c.useState)(void 0),n=Object(b.a)(t,2),a=n[0],s=n[1],i=Object(c.useState)(!1),l=Object(b.a)(i,2),d=l[0],m=l[1],x=function(){var t=Object(j.a)(u.a.mark((function t(){var n;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m(!0),t.next=3,zn(e);case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=void 0;case 6:n=t.t0,s(n),m(!1);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(c.useEffect)((function(){x()}),[e]);var v=Object(L.e)((function(e){return e.translation}));return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{slug:"gallery",routes:[{title:v.translation?v.translation.gallery["np"===o?"value_np":"value_en"]:"",path:"/gallery"},{title:a?a.name:"Gallery not found"}]}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:a?a.name:"Gallery not found"})}),d?Object(G.jsx)(Oe,{}):a?Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsx)(z.a,{container:!0,spacing:3,children:a&&a.children.length?a.children.map((function(e,t){return Object(G.jsx)(z.a,{item:!0,xs:12,sm:2,md:3,lg:4,children:Object(G.jsx)($c,{image:e.value,images:a.children,active:t})},t)})):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Gallery has no images!!"})})})}):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Gallery not found!!"})]})},ta=n(123),na=n.n(ta),ca=function(e){var t=e.video;return Object(G.jsxs)("div",{style:{width:"100%",boxShadow:"0 0 5px rgba(0,0,0,0.3)"},className:"video-wrapper",children:[Object(G.jsx)(na.a,{url:t.value,controls:!0}),Object(G.jsx)("h3",{className:"text-16-primary text-center p-1",children:t.name})]})},aa=function(){var e=Object(r.i)().dist_slug,t=Object(L.e)((function(e){return e.gallery})),n=t.loadingVideo,a=t.videos,s=t.metaVideo,i=Object(L.e)((function(e){return e.translation})),l=Object(L.d)(),d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;l(Jn(t,e))};return Object(c.useEffect)((function(){d()}),[l]),Object(G.jsx)(G.Fragment,{children:Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:i.translation?i.translation.video["np"===o?"value_np":"value_en"]:""}],slug:"videos"}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:i.translation?i.translation.video["np"===o?"value_np":"value_en"]:""})}),n?Object(G.jsx)(Oe,{}):Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsx)(z.a,{container:!0,spacing:3,children:a&&a.length?a.map((function(e,t){return Object(G.jsx)(z.a,{item:!0,xs:12,sm:2,md:3,lg:4,children:Object(G.jsx)(ca,{video:e})},t)})):""}),Object(G.jsx)("div",{className:"section-break-2 text-center",children:Object(G.jsx)(Bc,{meta:s,paginate:d})})]})})]})})},sa=function(){var e=Object(L.d)(),t=Object(L.e)((function(e){return e.notice})),n=t.loading,a=t.notices,s=t.meta,i=Object(r.i)().dist_slug,l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e(pn(t,i))};Object(c.useEffect)((function(){l()}),[e]);var d=Object(L.e)((function(e){return e.translation}));return Object(G.jsx)(G.Fragment,{children:n?Object(G.jsx)(Oe,{}):Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:d.translation?d.translation.notice["np"===o?"value_np":"value_en"]:""}],slug:"notice"}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:d.translation?d.translation.notice["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsx)(z.a,{container:!0,spacing:3,className:"justify-content-center",children:a&&a.length?a.map((function(e){return Object(G.jsx)(z.a,{item:!0,xs:12,md:10,children:Object(G.jsx)(Ut,{data:e},e.id)},e.id)})):Object(G.jsx)(z.a,{item:!0,xs:12,children:Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry no Notices found!!"})})}),Object(G.jsx)("div",{className:"section-break-2 text-center",children:Object(G.jsx)(Bc,{meta:s,paginate:l})})]})})]})})},ia=function(){var e=Object(r.i)().slug,t=a.a.useState(void 0),n=Object(b.a)(t,2),s=n[0],i=n[1],l=a.a.useState(!1),d=Object(b.a)(l,2),m=d[0],x=d[1],v=function(){var t=Object(j.a)(u.a.mark((function t(){var n;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(!0),t.next=3,fn(e);case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=void 0;case 6:n=t.t0,i(n),x(!1);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(c.useEffect)((function(){v()}),[e]);var O=Object(L.e)((function(e){return e.translation}));return Object(G.jsx)(G.Fragment,{children:m?Object(G.jsx)(Oe,{}):s?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:O.translation?O.translation.notice["np"===o?"value_np":"value_en"]:"",path:"/notice"},{title:fe(s.title,60)||""}],slug:"notice"}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:s.title||""})}),Object(G.jsx)("div",{className:"section-padding-2 ",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsx)(z.a,{container:!0,className:"justify-content-center",children:Object(G.jsxs)(z.a,{item:!0,xs:12,md:8,children:[s.image?Object(G.jsx)("img",{src:s.image||"",alt:"",className:"img-fluid mb-1"}):"",Object(G.jsxs)("p",{className:"text-13-primary display-flex align-item-center",children:[Object(G.jsx)(Oc.b,{className:"mr-05"}),Xt()(s.created_at).format("MMMM Do YYYY")]}),Object(G.jsx)("div",{className:"blog-details",dangerouslySetInnerHTML:{__html:s.body||""}})]})})})})]}):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry news not found!!"})})},ra=function(){var e=Object(L.d)(),t=Object(r.i)().dist_slug,n=Object(L.e)((function(e){return e.pressrelease})),a=n.loadingPressRelease,s=n.pressReleases,i=n.metaPressRelease,l=Object(L.e)((function(e){return e.translation})),d=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e(dn(n,t))};return Object(c.useEffect)((function(){d()}),[e]),Object(G.jsx)(G.Fragment,{children:a?Object(G.jsx)(Oe,{}):Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:l.translation?l.translation.press_release["np"===o?"value_np":"value_en"]:""}],slug:"press-release"}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:l.translation?l.translation.press_release["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsx)(z.a,{container:!0,spacing:3,className:"justify-content-center",children:s&&s.length?s.map((function(e){return Object(G.jsx)(z.a,{item:!0,xs:12,md:10,children:Object(G.jsx)(Ut,{data:e})},e.id)})):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry no press releases found!!"})}),Object(G.jsx)("div",{className:"section-break-2 text-center",children:Object(G.jsx)(Bc,{meta:i,paginate:d})})]})})]})})},la=function(){var e=Object(r.i)().dist_slug,t=Object(L.d)(),n=Object(L.e)((function(e){return e.pressrelease})),a=n.loadingDownloads,s=n.downloads,i=n.metaDownloads,l=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t(un(n,e))};Object(c.useEffect)((function(){l()}),[t]);var d=Object(L.e)((function(e){return e.translation}));return Object(G.jsx)(G.Fragment,{children:a?Object(G.jsx)(Oe,{}):Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{slug:"downloads",routes:[{title:d.translation?d.translation.downloads["np"===o?"value_np":"value_en"]:""}]}),Object(G.jsx)("div",{className:"text-center curveBackground",children:Object(G.jsx)("h3",{className:"ecn-title-inv text-26",children:d.translation?d.translation.downloads["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("div",{className:"section-padding-2",children:Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsx)(z.a,{container:!0,spacing:3,className:"justify-content-center",children:s&&s.length?s.map((function(e){return Object(G.jsx)(z.a,{item:!0,xs:12,md:10,children:Object(G.jsx)(Ut,{data:e})},e.id)})):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry no Downloads found!!"})}),Object(G.jsx)("div",{className:"section-break-2 text-center",children:Object(G.jsx)(Bc,{meta:i,paginate:l})})]})})]})})},oa=function(){var e=Object(j.a)(u.a.mark((function e(t){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("page/".concat(t,"?lang=").concat(o));case 3:return n=e.sent,e.abrupt("return",n.data.data);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),da=function(){var e=Object(r.i)().slug,t=a.a.useState(void 0),n=Object(b.a)(t,2),s=n[0],i=n[1],l=a.a.useState(!1),d=Object(b.a)(l,2),m=d[0],x=d[1],O=function(){var t=Object(j.a)(u.a.mark((function t(){var n;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(!0),t.next=3,oa(e);case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=void 0;case 6:n=t.t0,i(n),x(!1);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(c.useEffect)((function(){O()}),[e]),Object(G.jsx)(G.Fragment,{children:m?Object(G.jsx)(Oe,{}):s?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:s.title||""}],slug:"/page/"+s.slug}),Object(G.jsx)("div",{className:"section-padding-2 ",style:{background:"white"},children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,className:"justify-content-center",spacing:2,children:[s.sidebar&&s.sidebar.length>1?Object(G.jsx)(z.a,{item:!0,xs:12,lg:3,children:Object(G.jsx)("div",{className:"",children:Object(G.jsx)("ul",{className:"ecn-sidebar",children:s.sidebar.map((function(e){return Object(G.jsx)("li",{children:Object(G.jsxs)(v.b,{to:"/"+o+Ne(e.key),activeClassName:"active",children:[Object(G.jsx)("span",{children:Object(G.jsx)(H.a,{})}),e.name]})},e.id)}))})})}):"",Object(G.jsxs)(z.a,{item:!0,xs:12,lg:s.sidebar&&s.sidebar.length>1?9:12,children:[s.thumbnail?Object(G.jsx)("img",{src:s.thumbnail||"",alt:"",className:"img-fluid mb-1"}):"",Object(G.jsx)("div",{className:"blog-details",dangerouslySetInnerHTML:{__html:s.body||""}})]})]})})})]}):Object(G.jsx)("h3",{className:"text-center section-break-4 text-28-primary",children:"Sorry page not found!!"})})},ua={faqs:void 0,loading:!1,errors:!1,meta:void 0},ja=Object(y.b)({name:"faq",initialState:ua,reducers:{fetchFaqRequest:function(e){e.loading=!0},fetchFaqSuccess:function(e,t){e.loading=!1,e.faqs=t.payload.faqs,e.meta=t.payload.meta},fetchFaqFail:function(e,t){e.loading=!1,e.errors=t.payload}}}),ba=ja.actions,ha=ba.fetchFaqFail,ma=ba.fetchFaqRequest,xa=ba.fetchFaqSuccess,va=ja.reducer,Oa=function(){return function(){var e=Object(j.a)(u.a.mark((function e(t){var n,c;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(ma()),e.prev=1,e.next=4,E().get("resources/faq-category?lang=".concat(o));case 4:n=e.sent,c=n.data.data||void 0,t(xa({faqs:c})),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),e.t0&&e.t0.response&&e.t0.response.data&&t(ha(e.t0.response.data)),t(ha("Something went wrong!"));case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}()},pa=function(){var e,t,n=Object(L.d)(),a=Object(L.e)((function(e){return e.faq})),s=a.faqs,i=a.loading,r=(a.meta,Object(c.useState)([])),l=Object(b.a)(r,2),d=l[0],u=l[1];Object(c.useEffect)((function(){u(s)}),[s]);var j=Object(c.useState)(0),m=Object(b.a)(j,2),x=m[0],v=m[1];Object(c.useEffect)((function(){n(Oa())}),[]);var O=Object(L.e)((function(e){return e.translation}));return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:O.translation?O.translation.faq["np"===o?"value_np":"value_en"]:""}]}),Object(G.jsx)("div",{className:"section-padding-2",children:i?Object(G.jsx)(Oe,{}):Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,className:"justify-content-center",children:[Object(G.jsx)(z.a,{item:!0,xs:12,md:3,children:Object(G.jsx)("ul",{className:"ecn-sidebar faq-sidebar",children:d&&d.length?d.map((function(e,t){return Object(G.jsx)("li",{onClick:function(){return v(t)},children:Object(G.jsxs)("p",{className:t===x?"active":"",children:[Object(G.jsx)("span",{children:Object(G.jsx)(H.a,{})}),e.name]})},e.id)})):"Currently No Categories Available"})}),Object(G.jsx)(z.a,{item:!0,xs:12,md:9,className:"faq-detail",children:(null===d||void 0===d?void 0:d.length)>0&&(null===(e=d[x])||void 0===e||null===(t=e.value)||void 0===t?void 0:t.map((function(e){return Object(G.jsx)("div",{className:"cat-faq-wrapper",children:Object(G.jsxs)("div",{className:"cat-faq-list",children:[Object(G.jsx)("h3",{children:null===e||void 0===e?void 0:e.title}),Object(G.jsx)("p",{children:null===e||void 0===e?void 0:e.value})]})})})))})]})})})]})},fa=function(){var e,t=Object(L.d)(),n=Object(L.e)((function(e){return e.branch})),a=n.branches,s=n.loadingBranch;Object(c.useEffect)((function(){a||t(ze())}),[t]);var i=Object(L.e)((function(e){return e.translation}));return Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{slug:"election-offices",routes:[{title:X.translation[o].provice_district_offices}]}),Object(G.jsx)("section",{className:"section-padding-2",children:s?Object(G.jsx)(Oe,{}):Object(G.jsxs)(h.a,{maxWidth:"lg",children:[Object(G.jsx)("div",{className:"text-center",children:Object(G.jsx)("h3",{className:"ecn-title",children:i.translation?i.translation.state_election_offices["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("div",{className:"section-break-1",children:Object(G.jsx)(z.a,{container:!0,spacing:3,children:a&&a.length?a.map((function(e){return e.district?"":Object(G.jsx)(z.a,{item:!0,lg:2,md:4,sm:12,children:Object(G.jsx)(v.a,{to:"/".concat(o,"/province/").concat(e.slug),className:"text-primary",target:"_blank",children:Object(G.jsx)("div",{className:"branch-card",children:Object(G.jsx)("h4",{className:"text-15-primary text-center",children:e.province})})},e.id)})})):""})}),Object(G.jsx)("div",{className:"text-center",children:Object(G.jsx)("h3",{className:"ecn-title",children:(null===i||void 0===i?void 0:i.translation)?null===i||void 0===i||null===(e=i.translation)||void 0===e?void 0:e.district_title["np"===o?"value_np":"value_en"]:""})}),Object(G.jsx)("div",{className:"section-break-1",children:Object(G.jsx)(z.a,{container:!0,spacing:3,children:a&&a.length?a.map((function(e){return e.district?Object(G.jsx)(z.a,{item:!0,lg:2,md:4,sm:12,children:Object(G.jsx)(v.a,{to:"/".concat(o,"/district/").concat(e.slug),className:"text-primary",target:"_blank",children:Object(G.jsx)("div",{className:"branch-card",children:Object(G.jsx)("h4",{className:"text-15-primary text-center",children:e.district})})},e.id)}):""})):""})})]})})]})},ga=new ee("toggle-district-menu-button","ecn-district-navigation","district-child-menu","ecn-district-dropdown-toggle-icon"),ya=function(e){var t=Object(L.d)(),n=e.branch;Object(c.useEffect)((function(){t(ve("province-menu"))}),[]),Object(c.useEffect)((function(){ga.init()}));var a=Object(L.e)((function(e){return e.menu})),s=a.districtMenu,i=a.loadingDM;return Object(G.jsx)(G.Fragment,{children:Object(G.jsx)("nav",{className:"ech-navbar-invert",id:"ecn-navbar",children:Object(G.jsx)(h.a,{maxWidth:"lg",children:Object(G.jsxs)(z.a,{container:!0,children:[Object(G.jsxs)(z.a,{item:!0,xs:6,md:9,children:[Object(G.jsx)("ul",{children:Object(G.jsx)("li",{className:"navigation-list",id:"toggle-district-menu-button",children:Object(G.jsx)(U.b,{})})}),Object(G.jsx)("div",{className:"menu-backdrop",onClick:function(){return ga.closeMenu()}}),Object(G.jsxs)("ul",{className:"navigation",id:"ecn-district-navigation",children:[Object(G.jsxs)("li",{className:"navigation-list close-menu",onClick:function(){return ga.closeMenu()},children:[Object(G.jsx)(U.a,{}),Object(G.jsx)("span",{children:"Close menu"})]}),i?Object(G.jsx)(Oe,{}):s&&s.children.length?s.children.map((function(e,t){return Object(G.jsxs)("li",{className:"navigation-list",children:[Object(G.jsx)(v.b,{to:"/"+o+e.key+(null===n||void 0===n?void 0:n.slug),exact:!0,onClick:function(){return ga.closeMenu()},activeClassName:"active",children:Object(G.jsx)("span",{className:"display-flex align-item-center",children:e.name||""})}),e.children&&e.children.length?Object(G.jsx)(O.a,{className:"ecn-district-dropdown-toggle-icon"}):"",e.children&&e.children.length?Object(G.jsx)("ul",{className:"district-child-menu",children:e.children.map((function(e,t){return Object(G.jsx)("li",{children:Object(G.jsx)(v.b,{to:"/"+o+e.key+(null===n||void 0===n?void 0:n.slug),exact:!0,onClick:function(){return ga.closeMenu()},activeClassName:"active",children:Object(G.jsx)("span",{children:e.name||""})})},t)}))}):""]},t)})):""]})]}),Object(G.jsx)(z.a,{item:!0,xs:6,md:3,className:"display-flex  align-item-center",style:{justifyContent:"flex-end"}})]})})})})},Na=function(e){var t=e.children,n=Object(r.i)().dist_slug,a=Object(c.useState)(void 0),s=Object(b.a)(a,2),i=s[0],l=s[1],o=Object(c.useState)(!1),d=Object(b.a)(o,2),h=d[0],m=d[1],x=function(){var e=Object(j.a)(u.a.mark((function e(){var t;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,Je(n);case 3:t=e.sent,l(t),m(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){x()}),[n]),Object(G.jsx)(qe,{children:h?Object(G.jsx)(Oe,{}):Object(G.jsxs)(G.Fragment,{children:[Object(G.jsxs)("header",{className:"ecn-header",children:[Object(G.jsx)(Q,{}),i?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(K,{branch:i}),Object(G.jsx)(ya,{branch:i})]}):""]}),Object(G.jsx)("div",{style:{minHeight:"70vh"},children:t}),Object(G.jsx)(De,{branch:i})]})})},wa=function(e){var t,n=e.notice;return Object(G.jsx)("div",{className:"notice-card",children:Object(G.jsx)("a",{href:n.value,target:"_blank",children:null!==(t=null===n||void 0===n?void 0:n.name)&&void 0!==t?t:null===n||void 0===n?void 0:n.title})})},_a=[{name:"Home",path:"/",layout:Xe,component:Sc,isProvince:!1},{name:"About Us",path:"/about-us",layout:Xe,component:Pc,isProvince:!1},{name:"Blogs",path:"/news",layout:Xe,component:Rc,isProvince:!1},{name:"Branches",path:"/election-offices",layout:Xe,component:fa,isProvince:!1},{name:"Blogs",path:"/news/:slug",layout:Xe,component:qc,isProvince:!1},{name:"Gallery",path:"/gallery",layout:Xe,component:Ac,isProvince:!1},{name:"Gallery details",path:"/gallery/:slug",layout:Xe,component:ea,isProvince:!1},{name:"Notice",path:"/notice",layout:Xe,component:sa,isProvince:!1},{name:"Press release",path:"/press-release",layout:Xe,component:ra,isProvince:!1},{name:"Notice",path:"/notice/:slug",layout:Xe,component:ia,isProvince:!1},{name:"Downloads",path:"/downloads",layout:Xe,component:la,isProvince:!1},{name:"Contact us",path:"/contact-us",layout:Xe,component:Jc,isProvince:!1},{name:"FAQs",path:"/faqs",layout:Xe,component:pa,isProvince:!1},{name:"Video",path:"/videos",layout:Xe,component:aa,isProvince:!1},{name:"Page",path:"/page/:slug",layout:Xe,component:da,isProvince:!1},{name:"District",path:"/district/:dist_slug",layout:He,component:Kc,isProvince:!1},{name:"Video",path:"/district/news/:dist_slug",layout:He,component:Rc,isProvince:!1},{name:"District",path:"/district/gallery/:dist_slug",layout:He,component:Ac,isProvince:!1},{name:"Notice",path:"/district/notice/:dist_slug",layout:He,component:sa,isProvince:!1},{name:"Press release",path:"/district/press-release/:dist_slug",layout:He,component:ra,isProvince:!1},{name:"Video",path:"/district/videos/:dist_slug",layout:He,component:aa,isProvince:!1},{name:"Downloads",path:"/district/downloads/:dist_slug",layout:He,component:la,isProvince:!1},{name:"District",path:"/province/:dist_slug",layout:Na,component:Kc,isProvince:!0},{name:"Video",path:"/province/news/:dist_slug",layout:Na,component:Rc,isProvince:!0},{name:"District",path:"/province/gallery/:dist_slug",layout:Na,component:Ac,isProvince:!0},{name:"Notice",path:"/province/notice/:dist_slug",layout:Na,component:sa,isProvince:!0},{name:"Press release",path:"/province/press-release/:dist_slug",layout:Na,component:ra,isProvince:!0},{name:"Video",path:"/province/videos/:dist_slug",layout:Na,component:aa,isProvince:!0},{name:"Downloads",path:"/province/downloads/:dist_slug",layout:Na,component:la,isProvince:!0},{name:"Search",path:"/search",layout:Xe,component:function(){var e=Object(L.d)(),t=Object(L.e)((function(e){return e.search})),n=t.searches,s=t.searching,i=t.keyword,r=a.a.useState("news"),l=Object(b.a)(r,2),d=l[0],u=l[1],j=Object(g.debounce)((function(t){var n=t.target.value;n&&e(D(n))}),1e3);return Object(c.useEffect)((function(){n&&((null===n||void 0===n?void 0:n.news)&&(null===n||void 0===n?void 0:n.news.length)?u("news"):(null===n||void 0===n?void 0:n.notices)&&(null===n||void 0===n?void 0:n.notices.length)?u("notices"):(null===n||void 0===n?void 0:n.press_releases)&&(null===n||void 0===n?void 0:n.press_releases.length)?u("press_releases"):(null===n||void 0===n?void 0:n.branches)&&(null===n||void 0===n?void 0:n.branches.length)&&u("election_offices"))}),[n]),Object(G.jsx)(h.a,{maxWidth:"lg",children:s?Object(G.jsx)(Oe,{}):Object(G.jsxs)("div",{className:"section-padding-2",style:{minHeight:"70vh"},children:[Object(G.jsx)("div",{className:"section-break-1",children:Object(G.jsx)(z.a,{container:!0,className:"justify-content-center",children:Object(G.jsx)(z.a,{item:!0,xs:12,md:6,children:Object(G.jsx)(Vc.a,{id:"outlined-search",onChange:function(e){return j(e)},label:"Search",type:"search",variant:"outlined",style:{width:"100%"},defaultValue:i||""})})})}),(null===n||void 0===n?void 0:n.news.length)||(null===n||void 0===n?void 0:n.notices.length)||(null===n||void 0===n?void 0:n.branches.length)||(null===n||void 0===n?void 0:n.press_releases.length)?Object(G.jsxs)(G.Fragment,{children:[Object(G.jsxs)(Gt.a,{value:d,onChange:function(e,t){u(t)},className:"custom-tabs c2","aria-label":"wrapped label tabs example",style:{backgroundColor:"transparent"},children:[(null===n||void 0===n?void 0:n.news)&&(null===n||void 0===n?void 0:n.news.length)?Object(G.jsx)(Qt.a,{value:"news",label:"News"}):"",(null===n||void 0===n?void 0:n.notices)&&(null===n||void 0===n?void 0:n.notices.length)?Object(G.jsx)(Qt.a,{value:"notices",label:"Notices"}):"",(null===n||void 0===n?void 0:n.press_releases)&&(null===n||void 0===n?void 0:n.press_releases.length)?Object(G.jsx)(Qt.a,{value:"press_releases",label:"Press releases"}):"",(null===n||void 0===n?void 0:n.branches)&&(null===n||void 0===n?void 0:n.branches.length)?Object(G.jsx)(Qt.a,{value:"election_offices",label:"Election offices"}):""]}),(null===n||void 0===n?void 0:n.news)&&(null===n||void 0===n?void 0:n.news.length)?Object(G.jsx)(Tt,{value:d,index:"news",bgWhite:!0,children:Object(G.jsx)(z.a,{container:!0,spacing:3,children:null===n||void 0===n?void 0:n.news.map((function(e){return Object(G.jsx)(z.a,{item:!0,lg:4,xl:3,md:6,xs:12,children:Object(G.jsx)(Dc,{news:e})},e.id)}))})}):"",(null===n||void 0===n?void 0:n.notices)&&(null===n||void 0===n?void 0:n.notices.length)?Object(G.jsx)(Tt,{value:d,index:"notices",bgWhite:!0,children:Object(G.jsx)(z.a,{container:!0,spacing:3,children:null===n||void 0===n?void 0:n.notices.map((function(e){return Object(G.jsx)(z.a,{item:!0,xs:12,children:Object(G.jsx)(wa,{notice:e})},e.id)}))})}):"",(null===n||void 0===n?void 0:n.press_releases)&&(null===n||void 0===n?void 0:n.press_releases.length)?Object(G.jsx)(Tt,{value:d,index:"press_releases",bgWhite:!0,children:Object(G.jsx)(z.a,{container:!0,spacing:3,children:null===n||void 0===n?void 0:n.press_releases.map((function(e){return Object(G.jsx)(z.a,{item:!0,xs:12,children:Object(G.jsxs)("a",{href:e.value,target:"_blank",rel:"noreferrer",className:"text-16-primary mb-05",children:[Object(G.jsx)("span",{className:"mr-1 text-18-primary",children:" - "}),Object(G.jsx)("span",{children:e.name}),Object(G.jsxs)("p",{className:"text-13-grey ml-2 display-flex-ac",children:[Object(G.jsx)(Oc.b,{className:"mr-1"}),Xt()(e.created_at).format("yyyy-MM-DD")]})]})},e.id)}))})}):"",(null===n||void 0===n?void 0:n.branches)&&(null===n||void 0===n?void 0:n.branches.length)?Object(G.jsxs)(Tt,{value:d,index:"election_offices",bgWhite:!0,children:[Object(G.jsx)("div",{className:"text-center",children:Object(G.jsx)("h3",{className:"ecn-title",children:X.translation[o].province})}),Object(G.jsx)(z.a,{container:!0,spacing:3,children:null===n||void 0===n?void 0:n.branches.map((function(e){return e.district?"":Object(G.jsx)(z.a,{item:!0,lg:3,md:6,sm:12,children:Object(G.jsx)(v.a,{to:"/".concat(o,"/province/").concat(e.slug),className:"text-primary",target:"_blank",children:Object(G.jsx)("div",{className:"branch-card",children:Object(G.jsx)("h4",{className:"text-18-primary",children:e.province})})},e.id)})}))}),Object(G.jsx)("div",{className:"text-center mt-1",children:Object(G.jsx)("h3",{className:"ecn-title",children:X.translation[o].districts})}),Object(G.jsx)(z.a,{container:!0,spacing:3,children:null===n||void 0===n?void 0:n.branches.map((function(e){return e.district?Object(G.jsx)(z.a,{item:!0,lg:3,md:6,sm:12,children:Object(G.jsx)(v.a,{to:"/".concat(o,"/district/").concat(e.slug),className:"text-primary",target:"_blank",children:Object(G.jsx)("div",{className:"branch-card",children:Object(G.jsx)("h4",{className:"text-18-primary",children:e.district})})},e.id)}):""}))})]}):""]}):Object(G.jsx)("h1",{className:"text-15-primary text-center mt-2",children:i?"Sorry no results found for ".concat(i):"Type something to search!"})]})})},isProvince:!1},{name:"Member",path:"/member/:id",layout:Xe,component:function(){var e=Object(r.i)().id,t=a.a.useState(void 0),n=Object(b.a)(t,2),s=n[0],i=n[1],l=a.a.useState(!1),o=Object(b.a)(l,2),d=o[0],m=o[1],x=function(){var t=Object(j.a)(u.a.mark((function t(){var n;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m(!0),t.next=3,wn(e);case 3:n=t.sent,i(n),m(!1);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(c.useEffect)((function(){x()}),[e]),Object(G.jsxs)(G.Fragment,{children:[Object(G.jsx)(Mc,{routes:[{title:s?s.name:""}]}),Object(G.jsx)(h.a,{maxWidth:"lg",children:d?Object(G.jsx)(Oe,{}):Object(G.jsx)(z.a,{container:!0,className:"section-padding-2",children:s?Object(G.jsxs)(z.a,{item:!0,xs:12,children:[Object(G.jsxs)("div",{className:"text-center",children:[s.image?Object(G.jsx)("img",{src:s.image,alt:"",className:"mb-05",style:{width:"300px",maxWidth:"100%"}}):"",Object(G.jsx)("h4",{className:"text-18-primary text-center mb-05",children:s.name}),Object(G.jsx)("p",{className:"text-12 text-center",children:s.designation})]}),Object(G.jsx)("div",{className:"section-break-2",children:Object(G.jsx)("div",{className:"blog-details",dangerouslySetInnerHTML:{__html:s.bio||""}})})]}):Object(G.jsx)("h3",{className:"text-primary text-center",children:"Sorry member not found!!"})})})]})},isProvince:!1}],ka=function(){return Object(G.jsx)("div",{className:"page-404",children:Object(G.jsxs)("div",{className:"page-404-contents section-padding-2",children:[Object(G.jsx)("div",{className:"text-center",children:Object(G.jsx)("img",{src:J,alt:""})}),Object(G.jsxs)("h4",{className:"text-22-primary text-center mt-1",children:["404! ",Object(G.jsx)("span",{className:"ml-05 text-primary",children:"Page not found !"})]}),Object(G.jsx)("div",{className:"text-center mt-2",children:Object(G.jsx)(v.a,{to:"/"+o,className:"btn-primary p-05",children:"Go to Home"})})]})})},Sa=function(e){var t=e.component,n=e.layout,c=e.path,a=e.exact;e.isProvince;return Object(G.jsx)(r.b,Object(Wt.a)({path:c,render:function(){return Object(G.jsx)(n,{children:Object(G.jsx)(t,Object(Wt.a)({},e))})}},a))};var Fa=Object(r.j)((function(){return Object(G.jsx)(G.Fragment,{children:Object(G.jsxs)(r.d,{children:[Object(G.jsx)(r.b,{exact:!0,path:"/",children:Object(G.jsx)(r.a,{to:"/"+o})}),_a.map((function(e,t){var n=e.component,c=e.path,a=e.layout,s=e.isProvince;return Object(G.jsx)(Sa,{component:n,layout:a,isProvince:s,path:"/:lang"+c,exact:!0},t)})),Object(G.jsx)(r.b,{path:"/*",component:ka})]})})})),Ca=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,292)).then((function(t){var n=t.getCLS,c=t.getFID,a=t.getFCP,s=t.getLCP,i=t.getTTFB;n(e),c(e),a(e),s(e),i(e)}))},Ma=n(39),Pa=Object(Ma.a)({basename:"/"}),Ea=n(64),Da=Object(y.b)({name:"auth",initialState:{authenticated:!1},reducers:{}}).reducer,La={router:Object(Ea.b)(Pa),auth:Da,banner:St,menu:xe,news:oc,gallery:Gn,notice:On,pressrelease:on,branch:Qe,faq:va,search:C,customizer:qt,translation:T},Ba=n(112),Ra=Object(y.a)({reducer:La,devTools:!1,middleware:function(e){return e({serializableCheck:!1}).concat(Object(Ba.a)(Pa))}});n(207),n(208),n(209);i.a.render(Object(G.jsx)(L.a,{store:Ra,children:Object(G.jsx)(Ea.a,{history:Pa,children:Object(G.jsx)(r.c,{history:Pa,children:Object(G.jsx)(Fa,{})})})}),document.getElementById("root")),Ca()}},[[210,1,2]]]);
//# sourceMappingURL=main.2a5a40b3.chunk.js.map