1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3770],{15144:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(37876),s=n(45105),r=n.n(s);n(14232);var i=n(77328),l=n.n(i),o=n(55279);function c({trackingId:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,a.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,a.jsx)(o.A,{})]}),(0,a.jsx)(r(),{"data-testid":"gtag",src:`https://www.googletagmanager.com/gtag/js?id=${e}`,strategy:"afterInteractive"}),(0,a.jsx)(r(),{id:"google-analytics-setup","data-testid":"gtagSetup",strategy:"afterInteractive",children:` 2 window.dataLayer = window.dataLayer || []; 3 function gtag(){window.dataLayer.push(arguments);} 4 gtag('js', new Date()); 5 gtag('config', '${e}'); 6 `})]})}},33258:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});let a=(0,n(43623).Mz)([e=>e.sessionReducer],e=>e.loggedOut)},33539:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/a/lytics/figo-wEb/page/details",function(){return n(43075)}])},43075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var a=n(37876),s=n(60371),r=n(77328),i=n.n(r),l=n(14232),o=n(86862),c=n(60032),d=n(15757),p=n(45796),m=n(55279),u=n(59046);let x=["January","February","March","April","May","June","July","August","September","October","November","December"],h=()=>{let[e,t]=(0,l.useState)(),[n,r]=(0,l.useState)(1),[o,h]=(0,l.useState)({page:1,pages:1,total:0,limit:20});return(0,l.useEffect)(()=>{s.A.get(`${(0,p.Yi)("https://api.velvpay.com")}${(0,p.Zo)()?"":"/api/v1"}/system/user/stats?stat_type=overview&page=${n}&limit=20`).then(e=>{t(e.data?.data?.[0]?.data||e.data?.data),h(e.data?.data?.[0]?.activeUsersPagination||e.data?.activeUsersPagination||e.data?.data?.activeUsers?.pagination||e.data?.pagination||{page:n,pages:1,total:e.data?.data?.activeUsers?.data?.length||e.data?.data?.activeUsers?.length||0,limit:20})}).catch(e=>(0,d.A)(`${JSON.stringify(e?.response)}`))},[n]),(0,a.jsx)(a.Fragment,{children:e?(0,a.jsxs)("div",{className:"mx-10",children:[(0,a.jsxs)(i(),{children:[(0,a.jsxs)("title",{children:[(0,p.Ay)()," Analytics"]}),(0,a.jsx)(m.A,{})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-10 mb-10",children:(0,a.jsxs)("p",{className:"text-center text-4xl font-semibold underline text-figo-green",children:[(0,p.Ay)().toUpperCase()," ANALYTICS"]})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-2",children:[(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"Confirmed Transaction Count:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.confirmed_transaction_count})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2 ",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"Failed Transaction Count:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.failed_transaction_count})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"pending transaction count:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.pending_transaction_count})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"total User Balance:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:(e.totalUserBalance?.data||e.totalUserBalance)?.[0]?.total/100})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"total registered user:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.total_registered_user})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"total user with wallet:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.total_user_with_wallet})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"transaction count:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.transaction_count})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"transaction volume:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.transaction_volume/100})]})]}),(0,a.jsx)("div",{className:"my-10",children:(0,a.jsx)("p",{className:"text-3xl font-semibold",children:"Monthly Distributions"})}),(0,a.jsx)("p",{className:"text-2xl mb-8 font-semibold",children:"User Monthly Distributions"}),(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-2",children:(e?.userMonthDistributions?.data||e?.userMonthDistributions||[]).map((e,t)=>(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2 ",children:[(0,a.jsxs)("p",{className:"text-xl text-figo-green mb-4 underline font-semibold",children:[x[e._id.month-1],", ",e._id.year]}),(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"no of registered user:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.no_of_registered_user})]},t))}),(0,a.jsx)("p",{className:"text-2xl my-8 font-semibold capitalize",children:"user Transaction Month Distributions"}),(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 pb-4 gap-2",children:(e?.userTransactionMonthDistributions?.data||e?.userTransactionMonthDistributions||[]).map((e,t)=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-xl text-figo-green mb-4 underline font-semibold",children:[x[e._id.month-1],", ",e._id.year]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"total numbers of transaction:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.total_numbers_of_transaction})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"transaction volume:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.transaction_volume})]})]},t))}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"vfdWallets:"}),(0,a.jsx)("p",{className:"font-semibold text-xl text-figo-green",children:e.vfdWallets})]}),(0,a.jsxs)("div",{className:"border-b-2 border-black pb-2 mb-10",children:[(0,a.jsx)("p",{className:"uppercase text-2xl mb-8",children:"Active Users:"}),(0,a.jsx)("div",{children:(0,a.jsxs)("table",{className:"w-full",children:[(0,a.jsxs)("thead",{children:[(0,a.jsx)("td",{children:"s/n"}),(0,a.jsx)("td",{children:"Name"}),(0,a.jsx)("td",{children:"D.O.B"}),(0,a.jsx)("td",{children:"Total Received"}),(0,a.jsx)("td",{children:"Total Sent"}),(0,a.jsx)("td",{children:"Transaction Count"})]}),(0,a.jsx)("tbody",{children:(e.activeUsers?.data||e.activeUsers||[]).map((e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:t+1}),(0,a.jsx)("td",{children:e.name}),(0,a.jsx)("td",{children:e.dob}),(0,a.jsx)("td",{children:e.totalReceived}),(0,a.jsx)("td",{children:e.totalSent}),(0,a.jsx)("td",{children:e.transaction_count})]},t))})]})}),(0,a.jsx)(u.m,{page:n,pages:o.pages,total:o.total,pageSize:o.limit,onPageChange:r,onPageSizeChange:()=>r(1)})]})]})]}):(0,a.jsx)("div",{className:"h-screen w-screen flex justify-center items-center",children:(0,a.jsx)(c.A,{})})})};h.layout=o.A;let g=h}
6,43623:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>r,j8:()=>i});var a="NOT_FOUND",s=function(e,t){return e===t},r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return function(){for(var t,a=arguments.length,s=Array(a),r=0;r<a;r++)s[r]=arguments[r];var i=0,l={memoizeOptions:void 0},o=s.pop();if("object"==typeof o&&(l=o,o=s.pop()),"function"!=typeof o)throw Error("createSelector expects an output function after the inputs, but received: ["+typeof o+"]");var c=l.memoizeOptions,d=void 0===c?n:c,p=Array.isArray(d)?d:[d],m=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t.map(function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ")+"]");return t}(s),u=e.apply(void 0,[function(){return i++,o.apply(null,arguments)}].concat(p)),x=e(function(){for(var e=[],n=m.length,a=0;a<n;a++)e.push(m[a].apply(null,arguments));return t=u.apply(null,e)});return Object.assign(x,{resultFunc:o,memoizedResultFunc:u,dependencies:m,lastResult:function(){return t},recomputations:function(){return i},resetRecomputations:function(){return i=0}}),x}}(function(e,t){var n,r,i="object"==typeof t?t:{equalityCheck:t},l=i.equalityCheck,o=i.maxSize,c=void 0===o?1:o,d=i.resultEqualityCheck,p=(n=void 0===l?s:l,function(e,t){if(null===e||null===t||e.length!==t.length)return!1;for(var a=e.length,s=0;s<a;s++)if(!n(e[s],t[s]))return!1;return!0}),m=1===c?{get:function(e){return r&&p(r.key,e)?r.value:a},put:function(e,t){r={key:e,value:t}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}:function(e,t){var n=[];function s(e){var s=n.findIndex(function(n){return t(e,n.key)});if(s>-1){var r=n[s];return s>0&&(n.splice(s,1),n.unshift(r)),r.value}return a}return{get:s,put:function(t,r){s(t)===a&&(n.unshift({key:t,value:r}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,p);function u(){var t=m.get(arguments);if(t===a){if(t=e.apply(null,arguments),d){var n=m.getEntries().find(function(e){return d(e.value,t)});n&&(t=n.value)}m.put(arguments,t)}return t}return u.clearCache=function(){return m.clear()},u}),i=function(e,t){if(void 0===t&&(t=r),"object"!=typeof e)throw Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.reduce(function(e,t,a){return e[n[a]]=t,e},{})})}},49014:(e,t,n)=>{"use strict";n.d(t,{CL:()=>m,Gg:()=>p,SJ:()=>x,_F:()=>i,_S:()=>u,e$:()=>o,fC:()=>l,nX:()=>c,ri:()=>r,wq:()=>d});var a=n(43623);let s=e=>e.user,r=(0,a.Mz)([s],e=>e.userDetail),i=(0,a.Mz)([s],e=>e.paymentLinks),l=(0,a.Mz)([s],e=>e.apiCredentials),o=(0,a.Mz)([s],e=>e.directDebits),c=(0,a.Mz)([s],e=>e.invoices),d=(0,a.Mz)([s],e=>e.walletDetails),p=(0,a.Mz)([s],e=>e.refresh),m=(0,a.Mz)([s],e=>e.notification),u=(0,a.Mz)([s],e=>e.banks),x=(0,a.Mz)([s],e=>e.notificationList)},55279:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(37876),s=n(45796);let r="https://velvpay.com",i="VelvPay",l=`${r}/velv_icon-192x192.png`;function o(e="/"){return/^https?:\/\//i.test(e)?e:`${r}${e.startsWith("/")?e:`/${e}`}`}function c({title:e,description:t="VelvPay helps Nigerian businesses collect payments, send invoices, sell online, manage payouts and control payment operations from one workspace.",canonicalPath:n,image:r=l,type:d="website",noindex:p=!1,jsonLd:m}={}){let u=n?o(n):void 0,x=o(r);return(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)("title",{children:e}),(0,a.jsx)("meta",{name:"description",content:t}),(p||n)&&(0,a.jsx)("meta",{name:"robots",content:p?"noindex, follow":"index, follow, max-image-preview:large"}),u&&(0,a.jsx)("link",{rel:"canonical",href:u}),(0,a.jsx)("link",{rel:"shortcut icon",href:"/icon/favicon.ico",type:"image/x-icon"}),(0,a.jsx)("link",{rel:"apple-touch-icon",href:"/icon/apple-touch-icon.png"}),(0,a.jsx)("link",{rel:"icon",href:"/icon/favicon.ico"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/icon/favicon-32x32.png?v=012"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/icon/favicon-16x16.png?v=012"}),(0,a.jsx)("link",{rel:"manifest",href:"/icon/site.webmanifest?v=012"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("meta",{name:"theme-color",content:"#19807D"}),(0,a.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"}),(0,a.jsx)("meta",{name:"apple-mobile-web-app-title",content:i}),(0,a.jsx)("meta",{name:"application-name",content:i}),(0,a.jsx)("meta",{name:"author",content:(0,s.Zg)()}),(0,a.jsx)("meta",{name:"copyright",content:(0,s.Ay)()}),(0,a.jsx)("meta",{property:"og:type",content:d}),(0,a.jsx)("meta",{property:"og:site_name",content:i}),e&&(0,a.jsx)("meta",{property:"og:title",content:e}),(0,a.jsx)("meta",{property:"og:description",content:t}),u&&(0,a.jsx)("meta",{property:"og:url",content:u}),(0,a.jsx)("meta",{property:"og:image",content:x}),(0,a.jsx)("meta",{property:"og:image:type",content:"image/png"}
6),(0,a.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"630"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),e&&(0,a.jsx)("meta",{name:"twitter:title",content:e}),(0,a.jsx)("meta",{name:"twitter:description",content:t}),(0,a.jsx)("meta",{name:"twitter:image",content:x}),(0,a.jsx)("meta",{name:"twitter:site",content:"@velvpay"}),(0,a.jsx)("link",{rel:"me",href:"https://www.linkedin.com/company/velvpay/"}),(0,a.jsx)("link",{rel:"me",href:"https://x.com/velvpay"}),(0,a.jsx)("link",{rel:"me",href:"https://instagram.com/velv_pay"}),(0,a.jsx)("link",{rel:"me",href:"https://youtube.com/@velvpay"}),(0,a.jsx)("meta",{name:"contact:email",content:"[email protected]"}),(0,a.jsx)("meta",{name:"contact:contactType",content:"Customer Service"}),(!m?[]:Array.isArray(m)?m:[m]).map((e,t)=>(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e).replace(/</g,"\\u003c")}},`seo-jsonld-${t}`))]})}},59046:(e,t,n)=>{"use strict";n.d(t,{e:()=>s,m:()=>r});var a=n(37876);function s({search:e,onSearchChange:t,filter:n,onFilterChange:s,options:r=[],loading:i=!1,placeholder:l="Search recordsâ¦",filterLabel:o="All statuses"}){return(0,a.jsxs)("div",{className:"flex flex-col gap-3 border-b bg-white p-4 sm:flex-row","aria-busy":i,children:[(0,a.jsxs)("label",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:"sr-only",children:"Search records"}),(0,a.jsx)("input",{type:"search",value:e,disabled:i,onChange:e=>t(e.target.value),placeholder:l,className:"min-h-[44px] w-full rounded-md border bg-gray-50 px-3 py-2 text-sm outline-none focus:bg-white"})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:"sr-only",children:"Filter records"}),(0,a.jsxs)("select",{value:n,disabled:i,onChange:e=>s(e.target.value),className:"min-h-[44px] min-w-[11rem] rounded-md border bg-white px-3 py-2 text-sm font-semibold",children:[(0,a.jsx)("option",{value:"",children:o}),r.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]})]})]})}function r({page:e,pages:t,total:n,pageSize:s,onPageChange:r,onPageSizeChange:i,loading:l=!1}){return(0,a.jsxs)("div",{className:"flex flex-col gap-3 border-t bg-gray-50 p-4 text-xs text-gray-600 sm:flex-row sm:items-center sm:justify-between","aria-busy":l,"aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsx)("span",{children:n?`Showing ${(e-1)*s+1}â${Math.min(e*s,n)} of ${n}`:"No results"}),(0,a.jsxs)("label",{className:"flex items-center gap-2 font-semibold",children:["Rows per page",(0,a.jsx)("select",{value:s,disabled:l,onChange:e=>i(Number(e.target.value)),className:"min-h-[36px] rounded-md border bg-white px-2 py-1",children:[10,20,50,100].map(e=>(0,a.jsx)("option",{value:e,children:e},e))})]}),l&&(0,a.jsxs)("span",{className:"inline-flex items-center gap-2 font-bold text-figo-green",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"h-3 w-3 animate-spin rounded-full border-2 border-teal-200 border-t-teal-700"}),"Fetching resultsâ¦"]})]}),(0,a.jsxs)("nav",{className:"flex items-center gap-2","aria-label":"Table pagination",children:[(0,a.jsx)("button",{type:"button",disabled:l||e<=1,onClick:()=>r(e-1),className:"min-h-[40px] rounded-md border bg-white px-3 py-2 font-semibold disabled:opacity-40",children:"Previous"}),(0,a.jsxs)("span",{className:"min-w-[5rem] text-center font-semibold",children:["Page ",e," of ",Math.max(1,t)]}),(0,a.jsx)("button",{type:"button",disabled:l||e>=t,onClick:()=>r(e+1),className:"min-h-[40px] rounded-md border bg-white px-3 py-2 font-semibold disabled:opacity-40",children:"Next"})]})]})}},60032:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(37876);function s({className:e,text:t}){return(0,a.jsxs)("span",{role:"status","aria-live":"polite",className:"inline-flex items-center gap-2",children:[t&&(0,a.jsx)("span",{children:t}),(0,a.jsx)("span",{"aria-hidden":"true",className:`mx-auto animate-spin ${e} align-middle loader border-green-500 ease-linear rounded-full border-2 border-t-2 h-5 w-5 `}),(0,a.jsx)("span",{className:"sr-only",children:"Loadingâ¦"})]})}}
6,86862:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var a=n(37876),s=n(14232),r=n(2171);n(93754);var i=n(43623),l=n(33258),o=n(49014),c=n(15144),d=n(77328),p=n.n(d),m=n(45796);let u=(0,i.j8)({selectUserSession:l.U,selectUserDetail:o.ri}),x=(0,r.Ng)(u)(function({children:e,selectUserDetail:t}){return(0,s.useEffect)(()=>{window.Tawk_API=window.Tawk_API||{},window.Tawk_API.visitor={name:t?.companyname,email:t?.email}},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(p(),{children:[(0,m.Aw)()&&(0,a.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:` 7 window.__ow = window.__ow || {}; 8 window.__ow.organizationId = "016db4b0-fe57-44da-8e5a-75244c098e2c"; 9 window.__ow.integration_name = "manual_settings"; 10 window.__ow.product_name = "openwidget"; 11 (function(n,t,c){ 12 function i(n){return e._h?e._h.apply(null,n):e._q.push(n)} 13 var e={_q:[],_h:null,_v:"2.0", 14 on:function(){i(["on",c.call(arguments)])}, 15 once:function(){i(["once",c.call(arguments)])}, 16 off:function(){i(["off",c.call(arguments)])}, 17 get:function(){ 18 if(!e._h)throw new Error("[OpenWidget] You can't use getters before load."); 19 return i(["get",c.call(arguments)]) 20 }, 21 call:function(){i(["call",c.call(arguments)])}, 22 init:function(){ 23 var n=t.createElement("script"); 24 n.async=!0; 25 n.type="text/javascript"; 26 n.src="https://cdn.openwidget.com/openwidget.js"; 27 t.head.appendChild(n) 28 } 29 }; 30 !n.__ow.asyncInit && e.init(); 31 n.OpenWidget=n.OpenWidget||e 32 }(window,document,[].slice)); 33 `}}),(0,a.jsx)(c.A,{trackingId:"G-93YTDVK241"})]}),e]})})}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=33539)),_N_E=e.O()}]);
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.