PageSourceSearch

https://figur.africa/_next/static/chunks/pages/main/home/savings-8c83b202a63b7693.js

js figur.africa collected 2026-10-02 01:14:03 UTC 14,999 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5729],{55613:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/main/home/savings",function(){return c(66785)}])},6345:function(a,b,c){"use strict";var d=c(85893),e=c(11163);c(67294);var f=c(92004),g=function(a){var b=a.label,c=a.trailing,g=a.backTo,h=a.setStep,i=(0,e.useRouter)();return(0,d.jsxs)("div",{className:"flex items-center justify-center md:justify-start mb-6 xlg:mb-0 gap-4 relative",children:[(0,d.jsx)("span",{onClick:function(){g?i.push(g):h?h():i.back()},className:"absolute md:static left-0 z-10 cursor-pointer",children:(0,d.jsx)(f.Z,{icon:"ArrowBack"})}),(0,d.jsx)("h1",{className:"font-semibold text-lg",children:b}),(0,d.jsx)("div",{className:"absolute right-0 cursor-pointer",children:c})]})};b.Z=g},66785:function(a,b,c){"use strict";c.r(b),c.d(b,{default:function(){return J}});var d=c(85893),e=c(13089),f=c(74980),g=c(6345),h=c(92004),i=c(43575),j=c(67294);function k(a){var b=a.icon,c=a.label,e=a.onClick;return(0,d.jsxs)("div",{onClick:e,className:"flex gap-3 items-center ",children:[(0,d.jsx)("h5",{className:"text-sm font-medium",children:c}),(0,d.jsx)(h.Z,{icon:b})]})}var l=function(a){var b=a.setOpenModal,c=a.totalBalance,e=(0,j.useState)(!1),f=e[0],g=e[1],l=(0,j.useState)(!1),m=l[0],n=l[1];return(0,j.useEffect)(function(){n(!0)},[]),(0,d.jsxs)("div",{className:"bg-gradient-to-r from-secondary to-gradientBlue rounded-lg text-white px-4 md:px-5 py-6 md:py-6 flex items-center justify-between gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("p",{className:"text-white/70 text-xs",children:"Total Savings"}),(0,d.jsx)("span",{onClick:function(){return g(!f)},className:"cursor-pointer",children:(0,d.jsx)(h.Z,{icon:"Visibility"})})]}),f?(0,d.jsx)("p",{children:"*******"}):(0,d.jsxs)("h3",{className:"font-semibold md:text-xl",children:["₦",m?(0,i.D)(c):0]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end flex-wrap gap-4",children:[(0,d.jsx)("span",{className:"hidden md:block cursor-pointer",onClick:b,children:(0,d.jsx)(k,{onClick:b,label:"Top up Account",icon:"FundWallet"})}),(0,d.jsxs)("div",{className:"flex md:hidden gap-1 items-center",onClick:b,children:[(0,d.jsx)(h.Z,{icon:"FundWallet",className:"w-[1.4em] h-[1.4em]"}),(0,d.jsx)("h5",{className:"text-sm font-medium",children:"Top up Account"})]})]})]})},m=c(76810),n=c(41664),o=c.n(n),p=function(a){var a=null!==a?a:function(a){throw a}(TypeError("Cannot destructure undefined"));return(0,d.jsx)(o(),{href:"/main/home/savings/savings-type",children:(0,d.jsx)("a",{children:(0,d.jsx)(m.Z,{color:"white",label:"Add Savings Plan",size:"small",iconright:(0,d.jsx)(h.Z,{icon:"PlusRounded"})})})})},q=p,r=function(a){var b=a.hasLabel;return a.clasname,(0,d.jsxs)(d.Fragment,{children:[(void 0===b||b)&&(0,d.jsx)("p",{className:"text-sm py-6",children:"Set up a saving account"}),(0,d.jsx)(q,{})]})},s=r,t=c(37767),u=function(){return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center md:justify-start py-12 ",children:[(0,d.jsx)("span",{className:"bg-badgeBlue p-2 rounded-full",children:(0,d.jsx)(h.Z,{icon:"VaultKey",className:"h-20 md:h-20 w-20 md:w-20"})}),(0,d.jsxs)("div",{className:"text-center mt-8",children:[(0,d.jsx)("p",{className:"font-semibold md:text-xl",children:"No savings record"}),(0,d.jsx)("p",{className:"text-xs md:text-base pt-3",children:"You have not created a savings yet"})]})]})})},v=u,w=c(66027),x=c(47599),y=function(a){var b=a.savings,c=a.hasRoute,e=void 0===c||c,f=a.getClickedItem,g=b;return(0,d.jsx)("div",{className:"flex flex-col gap-4",children:null==g?void 0:g.map(function(a,b){var c,g;return(0,d.jsx)(o(),{href:e?{pathname:"/main/home/savings/".concat(a._id,"/"),query:{product_code:a.productCode}}:"#",children:(0,d.jsx)("a",{onClick:function(){return!e&&f(a)},children:(0,d.jsx)(w.Z,{parentClassName:"p-3 rounded-lg ".concat((c=a.isRecurring?x.RC.RECURRING:a.type)===x.RC.FIXED?"bg-purple-1/30":c===x.RC.FLEXIBLE?"bg-badgePink/30":c===x.RC.RECURRING?"bg-blue-1/30":void 0," "),leading:(0,d.jsxs)("div",{className:"flex gap-2 ",children:[(g=a.isRecurring?x.RC.RECURRING:a.type)===x.RC.FIXED?(0,d.jsx)(h.Z,{icon:"FixedSavings",className:"w-9 h-9"}):g===x.RC.FLEXIBLE?(0,d.jsx)(h.Z,{icon:"FlexibleSavings",className:"w-9 h-9"}):g===x.RC.RECURRING?(0,d.jsx)(h.Z,{icon:"RecurringSavings",className:"w-9 h-9"}):void 0,(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"text-sm font-medium",children:[" ","₦",(0,i.D)(Number(a.balance))]}),(0,d.jsx)("p",{className:"text-xs text-primary/70",children:a.name})]})]}),trailing:(0,d.jsx)(h.Z,{icon:"ChevronRight",className:"w-4 h-4"})})})},b)})})}
1,z=y,A=function(a){var b=a.savings,c=(0,j.useState)(),e=(c[0],c[1]);return(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"pb-4",children:"Your savings"}),(0,d.jsx)(z,{hasRoute:!0,getClickedItem:function(a){e(a)},savings:b}),b.length<1&&(0,d.jsx)(s,{hasLabel:!1})]})},B=A,C=function(){return(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{children:"Choose a plan that fits your needs "}),(0,d.jsx)("div",{className:"flex flex-col gap-4",children:(0,d.jsx)(w.Z,{leading:(0,d.jsxs)("div",{children:[(0,d.jsx)(h.Z,{icon:"FlexibleSavings",className:"w-6 h-6"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{children:"Flexxible Savings"}),(0,d.jsx)("p",{children:"Lock your funds over a set duration"})]})]})})})]})},D=C,E=c(81772),F=function(a){var b=a.close,c=a.setAgree,e=a.agree,f=(0,j.useState)(!1),g=f[0],h=f[1],i=(0,j.useState)(!1),k=i[0],l=i[1],n=(0,E.V$)({close:function(){return b()},setLoading:l}),o=n.mutate,p=n.isLoading;(0,E._y)({enabled:g,setLoading:l,proceed:function(){return b()},onboardUser:function(){return q()},setEnabled:h}).data;var q=function(){o()},r=function(){h(!0),l(!0)};return(0,d.jsxs)("div",{className:"max-h-[500px] overflow-y-auto customScrollbar bdb",children:[(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"1. Introduction"}),(0,d.jsx)("p",{className:"text-gray-700",children:"Welcome to Figur Savings. By using this Service, you agree to comply with and be bound by the following terms and conditions. Please read these terms carefully before using our Service."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"2. Eligibility"}),(0,d.jsx)("p",{className:"text-gray-700",children:"To use this Service, you must be at least 18 years old and capable of entering into a legally binding agreement. By using this Service, you represent and warrant that you meet these eligibility requirements."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"3. Account Registration"}),(0,d.jsx)("p",{className:"text-gray-700",children:"You must create an account to use the Service. You agree to provide accurate and complete information during the registration process and to keep your account information up-to-date."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"4. Savings Feature Description"}),(0,d.jsx)("p",{className:"text-gray-700",children:"The Savings Feature allows you to save money by transferring funds to a designated savings account within our platform. The specific details of the savings plan, including interest rates, minimum balances, and other terms, will be provided at the time of enrollment."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"5. Contributions and Withdrawals"}),(0,d.jsx)("p",{className:"text-gray-700",children:"Contributions: You may contribute funds to your savings account through the methods provided on our platform. Contributions may be subject to minimum and maximum limits as specified in the plan details."}),(0,d.jsx)("p",{className:"text-gray-700",children:"Withdrawals: You can request withdrawals from your savings account at any time, subject to the terms of the specific savings plan. Withdrawal requests will be processed within the time frame specified in the plan details."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"6. Interest and Earnings"}),(0,d.jsx)("p",{className:"text-gray-700",children:"Interest on your savings will be calculated and credited to your account as specified in the savings plan details. The interest rates may vary and are subject to change at our discretion."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"7. Fees and Charges"}),(0,d.jsx)("p",{className:"text-gray-700",children:"Our Service may be subject to fees and charges as specified in the savings plan details. Any applicable fees will be clearly communicated to you before they are charged."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"8. User Responsibilities"}),(0,d.jsx)("p",{className:"text-gray-700",children:"Compliance: You agree to use the Service in compliance with all applicable laws and regulations."}),(0,d.jsx)("p",{className:"text-gray-700",children:"Security: You are responsible for maintaining the confidentiality of your account information and for all activities that occur under your account. Notify us immediately of any unauthorized use of your account."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"9. Limitations and Restrictions"}),(0,d.jsx)("p",{className:"text-gray-700",children:"Non-Transferable: The savings account and any benefits associated with it are non-transferable and cannot be assigned to another person."}),(0,d.jsx)("p",{className:"text-gray-700",children:"Prohibited Activities: You agree not to use the Service for any unlawful or prohibited activities, including but not limited to money laundering, fraud, or any activity that violates these terms."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"10. Termination and Suspension"}),(0,d.jsx)("p",{className:"text-gray-700",children:"We reserve the right to terminate or suspend your access to the Service at any time, with or without cause, and with or without notice. Upon termination, your right to use the Service will immediately cease."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"11. Disclaimers and Limitation of Liability"}),(0,d.jsxs)("p",{className:"text-gray-700",children:["No Warranty:"," ",'The Service is provided "as is" and "as available" without any warranties of any kind, either express or implied. We do not warrant that the Service will be uninterrupted, error-free, or free from viruses or other harmful components.']}),(0,d.jsx)("p",{className:"text-gray-700",children:"Limitation of Liability: To the fullest extent permitted by law, we shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, use, goodwill, or other intangible losses, resulting from (a) your use or inability to use the Service; (b) any unauthorized access to or use of our servers and/or any personal information stored therein; (c) any interruption or cessation of transmission to or from the Service; (d) any bugs, viruses, Trojan horses, or the like that may be transmitted to or through the Service by any third party; (e) any errors or omissions in any content or for any loss or damage incurred as a result of the use of any content posted, emailed, transmitted, or otherwise made available through the Service; and/or (f) the defamatory, offensive, or illegal conduct of any third party."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"12. Changes to Terms and Conditions"}),(0,d.jsx)("p",{className:"text-gray-700",children:"We reserve the right to modify these terms and conditions at any time. Any changes will be effective immediately upon posting on our platform. Your continued use of the Service after any changes constitute your acceptance of the revised terms."})]}),(0,d.jsxs)("section",{className:"mb-6",children:[(0,d.jsx)("h2",{className:" font-medium mb-2",children:"14. Contact Information"}),(0,d.jsx)("p",{className:"text-gray-700",children:"If you have any questions or concerns about these terms and conditions, please contact us our support."})]}),(0,d.jsx)("p",{className:"text-gray-700",children:"By using the Savings Feature, you acknowledge that you have read, understood, and agree to be bound by these terms and conditions."}),(0,d.jsxs)("div",{className:"flex gap-2 mt-6 mb-3",children:[(0,d.jsx)("input",{type:"checkbox",checked:e,onChange:function(){return c(!e)}}),(0,d.jsx)("p",{children:"Yes, I agree to these terms"})]}),(0,d.jsx)(m.Z,{color:"secondary",label:"Agree",disabled:!e||k||p,loading:k||p,onClick:r})]})}
1,G=F,H=c(11163),I=function(){var a,b=(0,j.useState)(0),c=b[0],h=b[1],i=(0,j.useState)(!1),k=i[0],m=i[1],n=(0,j.useState)(!1),o=n[0],p=n[1],q=(0,j.useState)(!1),r=q[0],u=q[1],w=(0,j.useState)(!1),x=w[0],y=w[1],A=(0,H.useRouter)(),C=(0,E.L$)(),F=C.isLoading,I=C.data;return(0,j.useEffect)(function(){if((null==I?void 0:I.data.data.length)>0){var a=null==I?void 0:I.data.data.reduce(function(a,b){return a+parseFloat(b.balance)},0);h(a)}},[I]),(0,j.useEffect)(function(){(null==I?void 0:I.data.data.length)===0&&u(!0)},[I]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(t.u,{title:"Choose Savings Account",isVisible:k,close:m,center:!0,children:(0,d.jsx)(B,{savings:null==I?void 0:I.data.data})}),(0,d.jsx)(t.u,{title:"Choose a suitable saving plan",isVisible:o,close:p,center:!0,children:(0,d.jsx)(D,{})}),(0,d.jsx)(t.u,{title:"Terms and Conditions",isVisible:r,close:function(a){A.back(),u(a)},center:!0,children:(0,d.jsx)(G,{close:function(){return u(!1)},setAgree:y,agree:x})}),(0,d.jsxs)(f.Z,{title:"Savings",children:[(0,d.jsx)(g.Z,{label:"Savings",backTo:"/main/home"}),(0,d.jsxs)("div",{className:"mainContainer",children:[(0,d.jsx)(l,{setOpenModal:function(){return m(!0)},totalBalance:c}),(0,d.jsx)("div",{className:"mt-8",children:(0,d.jsx)(s,{hasLabel:!1})}),(0,d.jsxs)("div",{className:"pt-6 ",children:[(null===(a=null==I?void 0:I.data.data)|| void 0===a?void 0:a.length)>0&&(0,d.jsx)("p",{className:"pb-6",children:"Active Savings"}),F?(0,d.jsx)(e.Z,{}):(null==I?void 0:I.data.data.length)>0?(0,d.jsx)(z,{savings:null==I?void 0:I.data.data}):(0,d.jsx)(v,{})]})]})]})]})},J=I},43575:function(a,b,c){"use strict";c.d(b,{D:function(){return d}});var d=function(a){return a?a.toLocaleString(navigator.language,{minimumFractionDigits:2}):"0.00"}}},function(a){a.O(0,[3996,6492,1145,2004,4980,1772,9774,2888,179],function(){var b;return a(a.s=55613)}),_N_E=a.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.