PageSourceSearch

https://malecity.gov.mv/_next/static/chunks/pages/press-releases-310102c5fe38eb0d.js

js malecity.gov.mv collected 2026-10-02 15:19:15 UTC 11,429 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2524],{99144:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/press-releases",function(){return n(56537)}])},4288:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(0,r.jsx)("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}({stroke:"#acd143",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 1 24",preserveAspectRatio:"none"},e,{children:(0,r.jsx)("line",{x1:"0",y1:"12",x2:"1",y2:"12"})}))}},90638:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){r(e,t,n[t])}))}return e}t.default=function(e,t){var n=o.default,r={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};s=e,l=Promise,(null!=l&&"undefined"!==typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](s):s instanceof l)?r.loader=function(){return e}:"function"===typeof e?r.loader=e:"object"===typeof e&&(r=a({},r,e));var s,l;var u=r=a({},r,t);if(u.suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");if(u.suspense)return n(u);r.loadableGenerated&&delete(r=a({},r,r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,i(n,r);delete r.ssr}return n(r)};s(n(67294));var o=s(n(14302));function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return delete t.webpack,delete t.modules,e(t)}},16319:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var a=((r=n(67294))&&r.__esModule?r:{default:r}).default.createContext(null);t.LoadableContext=a},14302:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,i=(s=n(67294))&&s.__esModule?s:{default:s},l=n(67161),u=n(16319);var c=[],d=[],f=!1;function m(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var p=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}var t,n,a;return t=e,(n=[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this,t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var n=this._res,r=this._opts;if(n.loading){if("number"===typeof r.delay)if(0===r.delay)this._state.pastDelay=!0;else{var a=this;this._delay=setTimeout((function(){a._update({pastDelay:!0})}),r.delay)}if("number"===typeof r.timeout){var o=this;this._timeout=setTimeout((function(){o._update({timedOut:!0})}),r.timeout)}}this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(e){t._update({}),t._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=o({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}])&&r(t.prototype,n),a&&r(t,a),e}();function y(e){return function(e,t){var n=function(){if(!a){var t=new p(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()},r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);r.suspense&&(r.lazy=i.default.lazy(r.loader));var a=null;if(!f&&"function"===typeof r.webpack&&!r.suspense){var s=r.webpack();d.push((function(e){var t=!0,r=!1,a=void 0;try{for(var o,i=s[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var l=o.value;if(-1!==e.indexOf(l))return n()}}catch(u){r=!0,a=u}finally{try{t||null==i.return||i.return()}finally{if(r)throw a}}}))}var c=r.suspense?function(e,t){return i.default.createElement(r.lazy,o({},e,{ref:t}))}:function(e,t){n();var o=i.default.useContext(u.LoadableContext),s=l.useSubscription(a);return i.default.useImperativeHandle(t,(function(){return{retry:a.retry}}
1),[]),o&&Array.isArray(r.modules)&&r.modules.forEach((function(e){o(e)})),i.default.useMemo((function(){return s.loading||s.error?i.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?i.default.createElement(function(e){return e&&e.__esModule?e.default:e}(s.loaded),e):null}),[e,s])};return c.preload=function(){return!r.suspense&&n()},c.displayName="LoadableComponent",i.default.forwardRef(c)}(m,e)}function h(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return h(e,t)}))}y.preloadAll=function(){return new Promise((function(e,t){h(c).then(e,t)}))},y.preloadReady=function(e){var t=void 0===e?[]:e;return new Promise((function(e){var n=function(){return f=!0,e()};h(d,t).then(n,n)}))},window.__NEXT_PRELOADREADY=y.preloadReady;var b=y;t.default=b},56537:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return m},default:function(){return p}});var r=n(85893),a=n(85789),o=n(4288),s=n(98093),i=n(9669),l=n.n(i),u=n(41664),c=n(67294),d=n(86893),f=n(5434),m=!0;function p(e){var t=(0,c.useState)(e.pressReleases),n=t[0],i=t[1],m=(0,c.useState)(e.count),p=m[0],y=m[1],h=(0,c.useState)(0),b=h[0],g=h[1],v=(0,c.useState)(""),x=v[0],_=v[1],w=(0,c.useState)(""),j=w[0],O=w[1],k=(0,c.useState)({name:x,year:j}),N=k[0],P=k[1];return(0,c.useEffect)((function(){var t=!0,n=N.name,r=N.year;return b||n||r?l()("".concat("https://malecity.gov.mv/api/v1","/press-releases?skip=").concat(6*b,"&limit=6&search=").concat(n,"&year=").concat(r)).then((function(e){var n=e.data;t&&(i(n.data),y(n.count))})):(i(e.pressReleases),y(e.count)),function(){t=!1}}),[b,N,e.pressReleases,e.count]),(0,r.jsxs)(a.Z,{title:"Press releases",description:"\u0795\u07b0\u0783\u07ac\u0790\u07b0 \u0783\u07a8\u078d\u07a9\u0790\u07b0",image:"/img/press-releases.png",children:[(0,r.jsx)("div",{className:"absolute inset-0 h-[500px] bg-gradient-to-r from-grd-blue to-grd-green"}),(0,r.jsxs)("section",{className:"relative h-[500px] flex items-center mb-44",children:[(0,r.jsx)("h1",{className:"font-bold text-xl md:text-4xl text-gray-700 text-center w-full leading-loose",children:"\u0795\u07b0\u0783\u07ac\u0790\u07b0 \u0783\u07a8\u078d\u07a9\u0790\u07b0"}),(0,r.jsxs)("div",{dir:"ltr",className:"font-sans absolute h-64 -bottom-32 md:h-32 md:-bottom-16 w-5/6 md:w-full mx-auto inset-x-0 bg-white flex flex-col md:flex-row md:items-center justify-evenly md:justify-start px-4 md:px-8",children:[(0,r.jsx)("input",{className:"bg-gray-100 rounded-lg py-2 px-3 mx-2 lg:mx-4 focus:outline-none focus:ring-2 focus:ring-gray-400 md:w-1/4",placeholder:"Search by name",value:x,onChange:function(e){return _(e.target.value)}}),(0,r.jsx)("div",{className:"flex md:w-1/4 items-center mx-2 lg:mx-4",children:(0,r.jsx)("input",{className:"bg-gray-100 w-full rounded-lg py-2 px-3 md:mx-2 focus:outline-none focus:ring-2 focus:ring-gray-400 ",placeholder:"Year",type:"number",min:"2000",max:"2199",value:j,onChange:function(e){return O(e.target.value)}})}),(0,r.jsxs)("button",{className:"ml-auto flex items-center md:mr-4 text-primary text-xl group hover:px-5 transition-all px-4 py-2 rounded-lg",onClick:function(){return P({name:x,year:j})},children:["Search",(0,r.jsx)(o.Z,{className:"ml-4 -mr-1 h-5 w-2 group-hover:w-4 transition-all"}),(0,r.jsx)(d.Rgz,{size:"20",stroke:"#acd143"})]})]})]}),(0,r.jsx)("main",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-7",children:n.map((function(e){var t=e._id,n=e.sequenceId,a=e.title,o=e.date;return(0,r.jsx)(u.default,{href:"/press-releases/".concat(n),children:(0,r.jsxs)("a",{className:"bg-white mx-2 md:mx-0 py-4 px-2 md:p-6",children:[(0,r.jsxs)("div",{className:"mx-2 text-gray-400 flex items-center w-1/2 border-l-2 mb-8",children:[(0,r.jsx)(f.nK7,{className:"text-[#52b849]",size:"25"}),(0,r.jsxs)("div",{className:"mx-auto text-center",children:[(0,r.jsx)("span",{className:"text-lg font-semibold",children:new Date(o).getDate()}),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-base font-normal uppercase",children:s.OZ[new Date(o).getMonth()]})]})]}),(0,r.jsx)("p",{className:"leading-loose lg:leading-loose",children:a})]})},t)}))}),(0,r.jsx)("div",{className:"flex flex-wrap justify-center my-12",children:new Array(Math.trunc((p+7)/8)).fill().map((function(e,t){return(0,r.jsx)("button",{disabled:b==t,onClick:function(){return g(t)},className:"inline-block mx-1 w-10 h-10 p-2 bg-white border rounded-full ".concat(t==b?"border-primary text-primary font-bold cursor-default":"border-gray-300 text-gray-500 hover:border-gray-600  hover:text-gray-600"),children:t+1},t)}))})]})}},98093:function(e,t,n){"use strict";n.d(t,{OZ:function(){return r}});var r=["\u0796\u07a6\u0782\u07a6\u0788\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0797\u07b0","\u0787\u07ad\u0795\u07b0\u0783\u07a8\u078d\u07b0","\u0789\u07ac\u0787\u07a8","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07b0","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783"]},5152:function(e,t,n){e.exports=n(90638)},9008:function(e,t,n){e.exports=n(5443)},4298:function(e,t,n){e.exports=n(20699)}},function(e){e.O(0,[9774,1228,5445,1680,764,5808,5789,2888,179],(function(){return t=99144,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.