%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ncf/static/js/
Upload File :
Create Path :
Current File : /home/opti/public_html/ncf/static/js/13.99386777.chunk.js

(this["webpackJsonpncf-nigeria"]=this["webpackJsonpncf-nigeria"]||[]).push([[13],{104:function(e,t,n){},105:function(e,t,n){"use strict";var r=n(48),s=n(1),a=n(21),o=(n(106),n(107),n(108),n(2));t.a=function(){var e=localStorage.getItem("loggedInUser"),t=Object(s.useState)([]),n=Object(r.a)(t,2),i=n[0],c=n[1];Object(s.useEffect)((function(){fetch("".concat(a.SERVER_URL,"/cart/all/").concat(e)).then((function(e){return e.json()})).then((function(e){200===e.status?c(e.data):console.log(e)}))}),[]);var l=i.length;return Object(o.jsx)("div",{className:"sliderbardiv sm:mb-20",children:Object(o.jsxs)("div",{className:"flex sliderbar shadow-sm -mt-9 field-bottom",children:[Object(o.jsxs)("a",{href:"/shop",className:"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48 broder-0 border-r border-solid",children:[Object(o.jsx)("span",{className:"mb-2",children:Object(o.jsx)("img",{src:"/assets/images/icons/shop.svg",alt:""})}),Object(o.jsx)("span",{children:"Shop"})]}),Object(o.jsxs)("a",{href:"/cart",className:"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48 broder-0 border-r border-solid",children:[Object(o.jsx)("span",{className:"mb-2",children:Object(o.jsx)("img",{src:"/assets/images/icons/shopping-cart.svg",alt:""})}),Object(o.jsxs)("span",{children:["Cart ",Object(o.jsxs)("span",{className:"cartNumber",children:[" ",l]})]})]}),Object(o.jsxs)("a",{href:"/donate",className:"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48",children:[Object(o.jsx)("span",{className:"mb-2",children:Object(o.jsx)("img",{src:"/assets/images/icons/donation.svg",alt:""})}),Object(o.jsx)("span",{children:"Donate"})]})]})})}},108:function(e,t,n){},116:function(e,t,n){"use strict";var r=n(177),s=Object.prototype.toString;function a(e){return"[object Array]"===s.call(e)}function o(e){return"undefined"===typeof e}function i(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==s.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===s.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===s.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:i,isPlainObject:c,isUndefined:o,isDate:function(e){return"[object Date]"===s.call(e)},isFile:function(e){return"[object File]"===s.call(e)},isBlob:function(e){return"[object Blob]"===s.call(e)},isFunction:l,isStream:function(e){return i(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,s=arguments.length;r<s;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,s){e[s]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},146:function(e,t,n){},159:function(e,t,n){"use strict";var r=n(48),s=n(1),a=n(518),o=n(502),i=n(521),c=(n(160),n(21)),l=n(2);t.a=function(){var e=Object(s.useState)([]),t=Object(r.a)(e,2),n=t[0],u=t[1];Object(s.useEffect)((function(){fetch("".concat(c.SERVER_URL,"/blog/category")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?u(e.data):console.log("Oops couldn't fetch data")}))}),[]);var d=n.slice(0,5);return Object(l.jsx)(a.a,{collapseOnSelect:!0,expand:"lg",className:"bg-gray-200",variant:"light",children:Object(l.jsxs)(o.a,{children:[Object(l.jsx)(a.a.Toggle,{"aria-controls":"responsive-navbar-nav"}),Object(l.jsx)(a.a.Collapse,{id:"responsive-navbar-nav",children:Object(l.jsx)(i.a,{className:"navbarNav",children:d.map((function(e){return Object(l.jsx)(i.a.Link,{className:"font-bold text-black",href:"/blog/tag?id=".concat(e.id),children:e.name})}))})})]})})}},160:function(e,t,n){},162:function(e,t,n){"use strict";n(1);var r,s=n(127),a=n(50),o=n(49).a.div(r||(r=Object(a.a)(["\n  position: relative;\n  height: 700px;\n\tborder: 1px solid #eee\n\n  background: #eee;\n  font-family: 'Roboto', Helvetica Neue, Helvetica, Arial, sans-serif;\n  font-size: 14px;\n  color: rgb(39, 38, 38);\n  margin: 0;\n  padding: 0;\n\n\t.swiper-container {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.swiper-slide {\n\t\tfont-size: 18px;\n\t\tbackground: transparent;\n\n\t\t/* Center slide text vertically */\n\t\tdisplay: -webkit-box;\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: -webkit-flex;\n\t\tdisplay: flex;\n\t\t-webkit-box-pack: center;\n\t\t-ms-flex-pack: center;\n\t\t-webkit-justify-content: center;\n\t\tjustify-content: center;\n\t\t-webkit-box-align: center;\n\t\t-ms-flex-align: center;\n\t\t-webkit-align-items: center;\n\t\talign-items: center;\n\t}\n\n\t.swiper-slide img {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\t.swiper-slide .slider-wrapper {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\t.slider-text {\n\t\tposition: absolute;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t.field-bottom {\n\t\ttransform: translate(10%, 320px);\n\t}\n\n\t@media screen and (max-width: 640px) {\n\t\t.field-bottom {\n\t\t\ttransform: translate(0%, 0%);\n\t\t}\n\t}\n"]))),i=(n(105),n(106),n(107),n(514)),c=n(133),l=n(2);i.a.use([c.a]);t.a=function(){return Object(l.jsx)(o,{className:"mt-6",children:Object(l.jsx)(s.a,{children:Object(l.jsx)("div",{className:"slider-wrapper bg-black",children:Object(l.jsx)("div",{className:"",children:Object(l.jsx)("div",{className:"max-w-7xl mx-auto pb-16 pt-48 md:px-16 px-8",children:Object(l.jsx)("div",{className:"grid md:grid-cols-1 text-center grid-cols-1 gap-x-8 gap-y-8",children:Object(l.jsxs)("div",{className:"content blogBanner",children:[Object(l.jsx)("h1",{className:"text-6xl font-bold text-white mt-32 mb-8",children:"Welcome to our blog"}),Object(l.jsxs)("p",{className:"text-light text-sm text-white mb-6",children:["stay updated with the newest info and development Stories, ",Object(l.jsx)("br",{}),"case studies and insights share by NCF"]}),Object(l.jsx)("button",{className:"text-white text-sm font-bold py-2 px-8 rounded",children:"Learn More"})]})})})})})})})}},171:function(e,t,n){"use strict";var r=n(4),s=n(17),a=n(1),o=n.n(a),i=n(3),c=n.n(i),l=n(26),u=n.n(l),d=n(15),f=["className","listClassName","cssModule","size","tag","listTag","aria-label"],p={children:c.a.node,className:c.a.string,listClassName:c.a.string,cssModule:c.a.object,size:c.a.string,tag:d.n,listTag:d.n,"aria-label":c.a.string},h=function(e){var t,n=e.className,a=e.listClassName,i=e.cssModule,c=e.size,l=e.tag,p=e.listTag,h=e["aria-label"],m=Object(s.a)(e,f),b=Object(d.j)(u()(n),i),j=Object(d.j)(u()(a,"pagination",((t={})["pagination-"+c]=!!c,t)),i);return o.a.createElement(l,{className:b,"aria-label":h},o.a.createElement(p,Object(r.a)({},m,{className:j})))};h.propTypes=p,h.defaultProps={tag:"nav",listTag:"ul","aria-label":"pagination"},t.a=h},172:function(e,t,n){"use strict";var r=n(4),s=n(17),a=n(1),o=n.n(a),i=n(3),c=n.n(i),l=n(26),u=n.n(l),d=n(15),f=["active","className","cssModule","disabled","tag"],p={active:c.a.bool,children:c.a.node,className:c.a.string,cssModule:c.a.object,disabled:c.a.bool,tag:d.n},h=function(e){var t=e.active,n=e.className,a=e.cssModule,i=e.disabled,c=e.tag,l=Object(s.a)(e,f),p=Object(d.j)(u()(n,"page-item",{active:t,disabled:i}),a);return o.a.createElement(c,Object(r.a)({},l,{className:p}))};h.propTypes=p,h.defaultProps={tag:"li"},t.a=h},173:function(e,t,n){"use strict";var r=n(4),s=n(17),a=n(1),o=n.n(a),i=n(3),c=n.n(i),l=n(26),u=n.n(l),d=n(15),f=["className","cssModule","next","previous","first","last","tag"],p={"aria-label":c.a.string,children:c.a.node,className:c.a.string,cssModule:c.a.object,next:c.a.bool,previous:c.a.bool,first:c.a.bool,last:c.a.bool,tag:d.n},h=function(e){var t,n=e.className,a=e.cssModule,i=e.next,c=e.previous,l=e.first,p=e.last,h=e.tag,m=Object(s.a)(e,f),b=Object(d.j)(u()(n,"page-link"),a);c?t="Previous":i?t="Next":l?t="First":p&&(t="Last");var j,x=e["aria-label"]||t;c?j="\u2039":i?j="\u203a":l?j="\xab":p&&(j="\xbb");var g=e.children;return g&&Array.isArray(g)&&0===g.length&&(g=null),m.href||"a"!==h||(h="button"),(c||i||l||p)&&(g=[o.a.createElement("span",{"aria-hidden":"true",key:"caret"},g||j),o.a.createElement("span",{className:"sr-only",key:"sr"},x)]),o.a.createElement(h,Object(r.a)({},m,{className:b,"aria-label":x}),g)};h.propTypes=p,h.defaultProps={tag:"a"},t.a=h},177:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},178:function(e,t,n){"use strict";var r=n(116);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(s(t)+"="+s(e))})))})),a=o.join("&")}if(a){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},179:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},180:function(e,t,n){"use strict";(function(t){var r=n(116),s=n(237),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i={adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n(181)),e}(),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){i.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){i.headers[e]=r.merge(a)})),e.exports=i}).call(this,n(72))},181:function(e,t,n){"use strict";var r=n(116),s=n(238),a=n(240),o=n(178),i=n(241),c=n(244),l=n(245),u=n(182);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+m)}var b=i(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),o(b,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,a={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};s(t,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var j=(e.withCredentials||l(b))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;j&&(f[e.xsrfHeaderName]=j)}if("setRequestHeader"in p&&r.forEach(f,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(x){if("json"!==e.responseType)throw x}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},182:function(e,t,n){"use strict";var r=n(239);e.exports=function(e,t,n,s,a){var o=new Error(e);return r(o,t,n,s,a)}},183:function(e,t,n){"use strict";var r=n(116);e.exports=function(e,t){t=t||{};var n={},s=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],i=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=c(void 0,e[s])):n[s]=c(e[s],t[s])}r.forEach(s,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(a,l),r.forEach(o,(function(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=c(void 0,e[s])):n[s]=c(void 0,t[s])})),r.forEach(i,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=s.concat(a).concat(o).concat(i),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},184:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},230:function(e,t,n){"use strict";var r=n(48),s=n(1),a=n(460),o=n(461),i=(n(146),n(21)),c=n(520),l=n(2),u=c.a.Search;t.a=function(){var e=Object(s.useState)([]),t=Object(r.a)(e,2),n=t[0],c=t[1],d=Object(s.useState)([]),f=Object(r.a)(d,2),p=f[0],h=f[1];Object(s.useEffect)((function(){fetch("".concat(i.SERVER_URL,"/blog/all")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?c(e.data.data):console.log("Oops couldn't fetch data")}))}),[]),Object(s.useEffect)((function(){fetch("".concat(i.SERVER_URL,"/blog/featured")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?h(e.data.data):console.log("Oops couldn't fetch data")}))}),[]);var m=n.slice(0,3),b=p.slice(0,3);return Object(l.jsxs)("nav",{children:[Object(l.jsxs)("div",{className:"",children:[Object(l.jsxs)("div",{className:"p-3 mb-3 shadow-md rounded",children:[Object(l.jsx)("span",{className:"pr-1 text-md text-black font-bold flex-1",children:"Search"}),Object(l.jsx)("div",{className:"pl-4 py-5",children:Object(l.jsx)(u,{placeholder:"Type Here",className:"rounded",size:"large",onSearch:function(e){console.log(e),window.location.href="".concat(i.CLIENT_URL,"blog/search?q=").concat(e)}})})]}),Object(l.jsx)("span",{className:"pr-1 text-2xl text-black font-bold flex-1",children:"Recent Post"}),Object(l.jsx)("div",{className:"pl-4 pt-3",children:m.map((function(e){return Object(l.jsxs)(a.a,{xs:"2",className:"w-full rounded shadow-md mt-3",children:[Object(l.jsx)(o.a,{className:"w-full blogSidebarcardImg",md:"3",children:Object(l.jsx)("img",{src:"https://admin.ncfnigeria.org/images/blog/".concat(e.image),alt:"Card image cap"})}),Object(l.jsxs)(o.a,{md:"9",className:" py-3",children:[Object(l.jsx)("h4",{className:"text-xs",children:e.title}),Object(l.jsx)("a",{href:"blog/post?id=".concat(e.id),children:Object(l.jsx)("h4",{className:"text-sm text-bold",children:"Learn More"})})]})]})}))})]}),Object(l.jsxs)("div",{className:"pt-5",children:[Object(l.jsx)("span",{className:"pr-1 text-2xl text-black font-bold flex-1",children:"Featured Posts"}),Object(l.jsx)("div",{className:"pl-4 pt-3",children:b.map((function(e){return Object(l.jsxs)(a.a,{xs:"2",className:"w-full rounded shadow-md mt-3",children:[Object(l.jsx)(o.a,{className:"w-full blogSidebarcardImg",md:"3",children:Object(l.jsx)("img",{src:"https://admin.ncfnigeria.org/images/blog/".concat(e.image),alt:"Card image cap"})}),Object(l.jsxs)(o.a,{md:"9",className:" py-3",children:[Object(l.jsx)("h4",{className:"text-xs",children:e.title}),Object(l.jsx)("a",{href:"blog/post?id=".concat(e.id),children:Object(l.jsx)("h4",{className:"text-sm text-bold",children:"Learn More"})})]})]})}))})]})]})}},231:function(e,t,n){e.exports=n(232)},232:function(e,t,n){"use strict";var r=n(116),s=n(177),a=n(233),o=n(183);function i(e){var t=new a(e),n=s(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var c=i(n(180));c.Axios=a,c.create=function(e){return i(o(c.defaults,e))},c.Cancel=n(184),c.CancelToken=n(246),c.isCancel=n(179),c.all=function(e){return Promise.all(e)},c.spread=n(247),c.isAxiosError=n(248),e.exports=c,e.exports.default=c},233:function(e,t,n){"use strict";var r=n(116),s=n(178),a=n(234),o=n(235),i=n(183);function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=i(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(i(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(i(r||{},{method:e,url:t,data:n}))}})),e.exports=c},234:function(e,t,n){"use strict";var r=n(116);function s(){this.handlers=[]}s.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},235:function(e,t,n){"use strict";var r=n(116),s=n(236),a=n(179),o=n(180);function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return i(e),e.headers=e.headers||{},e.data=s(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return i(e),t.data=s(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(i(e),t&&t.response&&(t.response.data=s(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},236:function(e,t,n){"use strict";var r=n(116);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},237:function(e,t,n){"use strict";var r=n(116);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},238:function(e,t,n){"use strict";var r=n(182);e.exports=function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},239:function(e,t,n){"use strict";e.exports=function(e,t,n,r,s){return e.config=t,n&&(e.code=n),e.request=r,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},240:function(e,t,n){"use strict";var r=n(116);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,s,a,o){var i=[];i.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),r.isString(s)&&i.push("path="+s),r.isString(a)&&i.push("domain="+a),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},241:function(e,t,n){"use strict";var r=n(242),s=n(243);e.exports=function(e,t){return e&&!r(t)?s(e,t):t}},242:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},243:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},244:function(e,t,n){"use strict";var r=n(116),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&s.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},245:function(e,t,n){"use strict";var r=n(116);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function s(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=s(window.location.href),function(t){var n=r.isString(t)?s(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},246:function(e,t,n){"use strict";var r=n(184);function s(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},247:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},248:function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},501:function(e,t,n){"use strict";n.r(t);var r=n(48),s=n(1),a=n(162),o=n(159),i=(n(52),n(230)),c=(n(104),n(197)),l=n(282),u=n(198),d=n(199),f=n(171),p=n(172),h=n(173),m=n(21),b=(n(231),n(2));t.default=function(){var e=Object(s.useState)(1),t=Object(r.a)(e,2),n=t[0],j=t[1],x=Object(s.useState)(4),g=Object(r.a)(x,2),v=g[0],O=(g[1],Object(s.useState)([])),y=Object(r.a)(O,2),N=y[0],w=y[1],E=Object(s.useState)(!1),S=Object(r.a)(E,2);S[0],S[1],Object(s.useEffect)((function(){fetch("".concat(m.SERVER_URL,"/blog/all")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?w(e.data.data):console.log("Oops couldn't fetch data")}))}),[]);for(var R=n*v,k=R-v,C=N.slice(k,R),A=N.length,T=[],U=1;U<=Math.ceil(A/v);U++)T.push(U);return Object(b.jsxs)("div",{children:[Object(b.jsx)(a.a,{}),Object(b.jsx)(o.a,{}),Object(b.jsx)("div",{className:"w-full md:px-16",children:Object(b.jsxs)("div",{className:"relative grid md:grid-cols-12 md:gap-x-0 gap-y-2 z-index-3",children:[Object(b.jsx)("aside",{className:"md:col-span-3 col-span-12 min-h-screen py-4 border-0 border-r border-solid border-gray-200",children:Object(b.jsx)(i.a,{})}),Object(b.jsxs)("div",{className:"md:col-span-9 col-span-12 p-4 mb-32",children:[Object(b.jsx)("div",{className:"grid md:grid-cols-2 grid-cols-1 md:gap-x-8 gap-y-8",children:C.map((function(e){return Object(b.jsxs)(c.a,{children:[Object(b.jsx)(l.a,{top:!0,width:"100%",className:"max-h-60",src:"https://admin.ncfnigeria.org/images/blog/".concat(e.image),alt:"Card image cap"}),Object(b.jsxs)(u.a,{className:"px-6 py-4",children:[Object(b.jsx)("p",{className:"text-gray-400 text-sm mt-4 mb-4",children:e.cat.name}),Object(b.jsx)("a",{className:"text-black",href:"blog/post?id=".concat(e.id),children:Object(b.jsx)(d.a,{className:"font-bold text-2xl mb-2",children:e.title})})]})]})}))}),Object(b.jsx)("div",{className:"pt-5",children:Object(b.jsx)(f.a,{size:"lg",children:T.map((function(e){return Object(b.jsx)(p.a,{children:Object(b.jsx)(h.a,{onClick:function(){return j(e)},className:"text-black text-bold",children:Object(b.jsx)(b.Fragment,{children:e})})})}))})})]})]})})]})}}}]);
//# sourceMappingURL=13.99386777.chunk.js.map

Zerion Mini Shell 1.0