%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/29.ca9c9757.chunk.js

(this["webpackJsonpncf-nigeria"]=this["webpackJsonpncf-nigeria"]||[]).push([[29],{104:function(e,t,n){},105:function(e,t,n){"use strict";var s=n(48),i=n(1),c=n(21),r=(n(106),n(107),n(108),n(2));t.a=function(){var e=localStorage.getItem("loggedInUser"),t=Object(i.useState)([]),n=Object(s.a)(t,2),a=n[0],l=n[1];Object(i.useEffect)((function(){fetch("".concat(c.SERVER_URL,"/cart/all/").concat(e)).then((function(e){return e.json()})).then((function(e){200===e.status?l(e.data):console.log(e)}))}),[]);var o=a.length;return Object(r.jsx)("div",{className:"sliderbardiv sm:mb-20",children:Object(r.jsxs)("div",{className:"flex sliderbar shadow-sm -mt-9 field-bottom",children:[Object(r.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(r.jsx)("span",{className:"mb-2",children:Object(r.jsx)("img",{src:"/assets/images/icons/shop.svg",alt:""})}),Object(r.jsx)("span",{children:"Shop"})]}),Object(r.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(r.jsx)("span",{className:"mb-2",children:Object(r.jsx)("img",{src:"/assets/images/icons/shopping-cart.svg",alt:""})}),Object(r.jsxs)("span",{children:["Cart ",Object(r.jsxs)("span",{className:"cartNumber",children:[" ",o]})]})]}),Object(r.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(r.jsx)("span",{className:"mb-2",children:Object(r.jsx)("img",{src:"/assets/images/icons/donation.svg",alt:""})}),Object(r.jsx)("span",{children:"Donate"})]})]})})}},106:function(e,t,n){},107:function(e,t,n){},108:function(e,t,n){},112:function(e,t,n){"use strict";function s(e){return"object"===typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function i(e,t){var n=["__proto__","constructor","prototype"];Object.keys(t).filter((function(e){return n.indexOf(e)<0})).forEach((function(n){"undefined"===typeof e[n]?e[n]=t[n]:s(t[n])&&s(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:i(e[n],t[n]):e[n]=t[n]}))}function c(e){return void 0===e&&(e={}),e.navigation&&"undefined"===typeof e.navigation.nextEl&&"undefined"===typeof e.navigation.prevEl}function r(e){return void 0===e&&(e={}),e.pagination&&"undefined"===typeof e.pagination.el}function a(e){return void 0===e&&(e={}),e.scrollbar&&"undefined"===typeof e.scrollbar.el}function l(e){void 0===e&&(e="");var t=e.split(" ").map((function(e){return e.trim()})).filter((function(e){return!!e})),n=[];return t.forEach((function(e){n.indexOf(e)<0&&n.push(e)})),n.join(" ")}n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return l}))},114:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(1);function i(e,t){return"undefined"===typeof window?Object(s.useEffect)(e,t):Object(s.useLayoutEffect)(e,t)}},127:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n(1),i=n.n(s),c=n(112),r=n(114),a=["tag","children","className","swiper","zoom","virtualIndex"];function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}var o=Object(s.forwardRef)((function(e,t){var n,o=void 0===e?{}:e,d=o.tag,u=void 0===d?"div":d,f=o.children,b=o.className,p=void 0===b?"":b,j=o.swiper,x=o.zoom,m=o.virtualIndex,h=function(e,t){if(null==e)return{};var n,s,i={},c=Object.keys(e);for(s=0;s<c.length;s++)n=c[s],t.indexOf(n)>=0||(i[n]=e[n]);return i}(o,a),O=Object(s.useRef)(null),g=Object(s.useState)("swiper-slide"),v=g[0],w=g[1];function y(e,t,n){t===O.current&&w(n)}Object(r.a)((function(){if(t&&(t.current=O.current),O.current&&j){if(!j.destroyed)return j.on("_slideClass",y),function(){j&&j.off("_slideClass",y)};"swiper-slide"!==v&&w("swiper-slide")}})),Object(r.a)((function(){j&&O.current&&w(j.getSlideClasses(O.current))}),[j]),"function"===typeof f&&(n={isActive:v.indexOf("swiper-slide-active")>=0||v.indexOf("swiper-slide-duplicate-active")>=0,isVisible:v.indexOf("swiper-slide-visible")>=0,isDuplicate:v.indexOf("swiper-slide-duplicate")>=0,isPrev:v.indexOf("swiper-slide-prev")>=0||v.indexOf("swiper-slide-duplicate-prev")>=0,isNext:v.indexOf("swiper-slide-next")>=0||v.indexOf("swiper-slide-duplicate-next")>=0});var N=function(){return"function"===typeof f?f(n):f};return i.a.createElement(u,l({ref:O,className:Object(c.f)(v+(p?" "+p:"")),"data-swiper-slide-index":m},h),x?i.a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"===typeof x?x:void 0},N()):N())}));o.displayName="SwiperSlide"},255:function(e,t,n){"use strict";var s,i=n(48),c=n(1),r=n(21),a=n(127),l=n(50),o=n(49).a.div(s||(s=Object(l.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"]))),d=(n(104),n(2));t.a=function(e){var t=Object(c.useState)(""),n=Object(i.a)(t,2),s=n[0],l=n[1];Object(c.useEffect)((function(){fetch("".concat(r.SERVER_URL,"/image/page-banners")).then((function(e){return e.json()})).then((function(e){if(200===e.status){var t=e.data;l(t)}else console.log("Oops couldn't fetch data")}))}),[]);var u=e.page;return Object(d.jsx)(o,{className:"mt-6 z-index-3",children:Object(d.jsx)(a.a,{children:Object(d.jsxs)("div",{className:"slider-wrapper",children:[Object(d.jsx)("div",{className:"slider-text border border-solid",children:Object(d.jsx)("div",{className:"max-w-7xl mx-auto pb-16 pt-48 md:px-16 px-8",children:Object(d.jsx)("div",{className:"grid md:grid-cols-2 grid-cols-1 gap-x-8 gap-y-8",children:Object(d.jsxs)("div",{className:"content banner-txt",children:[Object(d.jsx)("h1",{className:"text-4xl font-bold text-white mb-4",children:"What have you done for the Environment Lately?"}),Object(d.jsx)("p",{className:"font-light text-white mb-6",children:"What you give goes a long way"}),Object(d.jsx)("a",{href:"/donate",children:Object(d.jsx)("button",{className:"bg-green hover:bg-green-800 text-white font-bold py-2 px-8 rounded",children:"Donate"})})]})})})}),Object(d.jsx)("img",{src:"https://admin.ncfnigeria.org/images/banners/".concat(s[u]),alt:""})]})})})}},542:function(e,t,n){"use strict";n.r(t);var s=n(48),i=n(1),c=n(255),r=(n(52),n(105)),a=n(21),l=n(18),o=n(2);var d=function(){return Object(o.jsx)("nav",{children:Object(o.jsxs)("div",{className:"",children:[Object(o.jsxs)("button",{className:"w-full text-left flex px-4 py-2 items-center outline-none focus:outline-none",children:[Object(o.jsx)("span",{className:"pr-1 text-xs text-gray-500 font-bold uppercase flex-1",children:"CATEGORIES"}),Object(o.jsx)("span",{className:"mr-auto",children:Object(o.jsx)(l.d,{className:"h-4 w-4 transition transform hover:rotate-180 duration-150 ease-in-out"})})]}),Object(o.jsx)("div",{className:"pl-4",children:Object(o.jsx)("a",{className:"block text-sm font-medium text-gray-600 my-0 px-4 py-2",href:"/e-library",children:"NCF Annual Reports"})})]})})};t.default=function(){var e=Object(i.useState)({picture:""}),t=(Object(s.a)(e,1)[0],Object(i.useState)(1)),n=Object(s.a)(t,2),l=n[0],u=(n[1],Object(i.useState)(4)),f=Object(s.a)(u,2),b=f[0],p=(f[1],Object(i.useState)([])),j=Object(s.a)(p,2),x=j[0],m=j[1],h=Object(i.useState)(!1),O=Object(s.a)(h,2);O[0],O[1],Object(i.useEffect)((function(){fetch("".concat(a.SERVER_URL,"/report/all")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?m(e.data):console.log("Oops couldn't fetch data")}))}),[]);for(var g=l*b,v=g-b,w=x.slice(v,g),y=x.length,N=[],k=1;k<=Math.ceil(y/b);k++)N.push(k);return Object(o.jsxs)("div",{children:[Object(o.jsx)(c.a,{page:"e_library"}),Object(o.jsxs)("div",{className:"w-full md:px-8 py-8",children:[Object(o.jsx)(r.a,{}),Object(o.jsxs)("div",{className:"grid md:grid-cols-12 grid-cols-1 md:gap-x-0",children:[Object(o.jsx)("div",{className:"md:col-span-2 col-span-12"}),Object(o.jsx)("div",{className:"md:col-span-10 col-span-12",children:Object(o.jsx)("div",{className:"flex md:flex-row flex-col md:space-y-0 space-y-2 justify-between"})})]})]}),Object(o.jsx)("div",{className:"w-full md:px-16",children:Object(o.jsxs)("div",{className:"grid md:grid-cols-12 md:gap-x-0 gap-y-2",children:[Object(o.jsx)("aside",{className:"md:col-span-2 col-span-12 md:min-h-screen py-4 border-0 border-r border-solid border-gray-200",children:Object(o.jsx)(d,{})}),Object(o.jsx)("div",{className:"md:col-span-10 col-span-12 p-4 pb-12",children:Object(o.jsx)("div",{className:"grid md:grid-cols-4 grid-cols-1 md:gap-x-16 gap-y-8 px-16",children:w.map((function(e){return Object(o.jsxs)("div",{children:[Object(o.jsxs)("div",{className:"max-w-md rounded overflow-hidden shadow-lg mb-4",children:[Object(o.jsx)("img",{className:"w-full",src:"https://bulma.io/images/placeholders/1280x960.png",alt:"Sunset in the mountains"}),Object(o.jsxs)("div",{className:"px-6 py-4",children:[Object(o.jsx)("div",{className:"font-bold text-sm mb-2",children:"Annual Report"}),Object(o.jsx)("p",{className:"text-gray-700 text-sm mb-2",children:e.title})]})]}),Object(o.jsx)("div",{className:"flex justify-center",children:Object(o.jsx)("a",{href:"https://admin.ncfnigeria.org/reports/".concat(e.file),download:!0,children:Object(o.jsx)("button",{className:"bg-green hover:bg-green-800 text-white font-bold py-2 px-6",children:"Download Here"})})})]})}))})})]})})]})}}}]);
//# sourceMappingURL=29.ca9c9757.chunk.js.map

Zerion Mini Shell 1.0