PageSourceSearch

https://beta.workstedi.com/_next/static/chunks/pages/customer/settings/fundWallet-90ee3dc26273708f.js

js workstedi.com collected 2026-09-24 15:00:41 UTC 26,093 bytes, 14 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5336],{33334:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2zm-9-2h10V8H12zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"AccountBalanceWallet")},41687:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline")},20724:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos")},13379:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},41899:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},52778:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined")},75503:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},24613:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"}),"KeyboardBackspace")},22961:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},72450:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},16195:function(e,t,r){"use strict";var n=r(88169),a=r(85893);t.Z=(0,n.Z)((0,a.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDownOutlined")},43058:function(e,t,r){"use strict";var n=r(88169),a=r(85893);t.Z=(0,n.Z)((0,a.jsx)("path",{d:"M18 4H6C3.79 4 2 5.79 2 8v8c0 2.21 1.79 4 4 4h12c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4m-1.86 9.77c-.24.2-.57.28-.88.2L4.15 11.25C4.45 10.52 5.16 10 6 10h12c.67 0 1.26.34 1.63.84zM6 6h12c1.1 0 2 .9 2 2v.55c-.59-.34-1.27-.55-2-.55H6c-.73 0-1.41.21-2 .55V8c0-1.1.9-2 2-2"}),"WalletOutlined")},87109:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n,a=r(63366),o=r(87462),i=r(67294),s=r(90512),c=r(94780),l=r(98216),d=r(15861),u=r(47167),p=r(74423),h=r(90948),v=r(1588),f=r(34867);function getInputAdornmentUtilityClass(e){return(0,f.ZP)("MuiInputAdornment",e)}let m=(0,v.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var x=r(28628),b=r(85893);let y=["children","className","component","disablePointerEvents","disableTypography","position","variant"],useUtilityClasses=e=>{let{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${(0,l.Z)(a)}`,i,n&&"hiddenLabel",o&&`size${(0,l.Z)(o)}`]};return(0,c.Z)(s,getInputAdornmentUtilityClass,t)},g=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${(0,l.Z)(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${m.positionStart}&:not(.${m.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),j=i.forwardRef(function(e,t){let r=(0,x.i)({props:e,name:"MuiInputAdornment"}),{children:c,className:l,component:h="div",disablePointerEvents:v=!1,disableTypography:f=!1,position:m,variant:j}=r,w=(0,a.Z)(r,y),Z=(0,p.Z)()||{},k=j;j&&Z.variant,Z&&!k&&(k=Z.variant);let C=(0,o.Z)({},r,{hiddenLabel:Z.hiddenLabel,size:Z.size,disablePointerEvents:v,position:m,variant:k}),S=useUtilityClasses(C);return(0,b.jsx)(u.Z.Provider,{value:null,children:(0,b.jsx)(g,(0,o.Z)({as:h,ownerState:C,className:(0,s.Z)(S.root,l),ref:t},w,{children:"string"!=typeof c||f?(0,b.jsxs)(i.Fragment,{children:["start"===m?n||(n=(0,b.jsx)("span",{className:"notranslate",children:"​"})):null,c]}):(0,b.jsx)(d.Z,{color:"text.secondary",children:c})}))})});var w=j},45843:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(63366),a=r(87462),o=r(67294),i=r(90512),s=r(94780),c=r(2101),l=r(98216),d=r(21964),u=r(90948),p=r(28628),h=r(1588),v=r(34867);function getSwitchUtilityClass(e){return(0,v.ZP)("MuiSwitch",e)}let f=(0,h.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var m=r(85893);let x=["className","color","edge","size","sx"],useUtilityClasses=e=>{let{classes:t,edge:r,size:n,color:o,checked:i,disabled:c}=e,d={root:["root",r&&`edge${(0,l.Z)(r)}`,`size${(0,l.Z)(n)}`],switchBase:["switchBase",`color${(0,l.Z)(o)}`,i&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,s.Z)(d,getSwitchUtilityClass,t);return(0,a.Z)({},t,u)},b=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t[`edge${(0,l.Z)(r.edge)}`],t[`size${(0,l.Z)(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${f.thumb}`]:{width:16,height:16},[`& .${f.switchBase}`]:{padding:4,[`&.${f.checked}`]:{transform:"translateX(16px)"}}}}]}),y=(0,u.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{[`& .${f.input}`]:t.input},"default"!==r.color&&t[`color${(0,l.Z)(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${f.checked}`]:{transform:"translateX(20px)"},[`&.${f.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${f.checked} + .${f.track}`]:{opacity:.5},[`&.${f.disabled} + .${f.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${"light"===e.palette.mode?.12:.2}`},[`& .${f.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([t])=>({props:{color:t},style:{[`&.${f.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainCh
1annel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.Fq)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${f.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,c.$n)(e.palette[t].main,.62):(0,c._j)(e.palette[t].main,.55)}`}},[`&.${f.checked} + .${f.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),g=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${"light"===e.palette.mode?.38:.3}`})),j=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),w=o.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiSwitch"}),{className:o,color:s="primary",edge:c=!1,size:l="medium",sx:d}=r,u=(0,n.Z)(r,x),h=(0,a.Z)({},r,{color:s,edge:c,size:l}),v=useUtilityClasses(h),f=(0,m.jsx)(j,{className:v.thumb,ownerState:h});return(0,m.jsxs)(b,{className:(0,i.Z)(v.root,o),sx:d,ownerState:h,children:[(0,m.jsx)(y,(0,a.Z)({type:"checkbox",icon:f,checkedIcon:f,ref:t,ownerState:h},u,{classes:(0,a.Z)({},v,{root:v.switchBase})})),(0,m.jsx)(g,{className:v.track,ownerState:h})]})});var Z=w},76848:function(e,t,r){"use strict";var n=r(67294),a=r(9008),o=r.n(a),i=r(10784),s=r(46857),c=r(52689),l=r(10402),d=r(46396),u=r(17445),p=r(98808),h=r(87685),v=r(25617),f=r(88706),m=r(80822),x=r(98456),b=r(54661),y=r(59384),g=r(43058),j=r(29505),w=r(85893);t.Z=function(e){var t=e.children,r=(0,h.u)(),a=[{icon:u.Z,text:"Dashboard",link:"/customer/dashboard"},{icon:s.Z,text:"Transactions",link:"/customer/transactions"},{icon:c.Z,text:"Notifications",link:"/customer/notifications"}],Z=[{icon:l.Z,text:"Profile",link:"/customer/profile"},{icon:g.Z,text:"Wallet",link:"/customer/settings?tab=wallet"},{icon:d.Z,text:"Settings",link:"/customer/settings"}],k=[{icon:p.Z,text:"Chat with us"}],C=((0,v.v9)(function(e){return e.user})||{}).customer_id,S=(0,v.I0)(),P=(0,v.v9)(function(e){var t;return null===(t=e.app)||void 0===t?void 0:t.reviewOpen}),O=(0,v.v9)(function(e){var t;return null===(t=e.app)||void 0===t?void 0:t.appLoding}),_=(0,b.FE)({userRole:"customer"}),z=_.loading,E=_.router;return((0,n.useEffect)(function(){"/customer"==E.pathname&&E.push("/customer/dashboard"),(0,y.Fc)(C)},[]),(0,n.useEffect)(function(){S((0,j.W9)({appLoding:!1}))},[]),z||O)?(0,w.jsx)(m.Z,{sx:{},children:(0,w.jsxs)(m.Z,{sx:{width:"100%",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,w.jsx)(m.Z,{}),(0,w.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,w.jsx)(x.Z,{color:"success"})})]})}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(o(),{children:[(0,w.jsx)("title",{children:"Workstedi"}),(0,w.jsx)("meta",{name:"description",content:"Generated by create next app"}),(0,w.jsx)("link",{rel:"icon",href:"/favicon.png"})]}),(0,w.jsx)(i.Z,{Overview_section:a,Settings_section:Z,Help_section:k,color:r.palette.info.main,textColor:r.palette.white.main,children:P?(0,w.jsx)(f.Z,{}):(0,w.jsxs)(w.Fragment,{children:[" ",t]})})]})}},73047:function(e,t,r){"use strict";r.d(t,{Z:function(){return fundWallet}});var n=r(80822),a=r(25662),o=r(15861),i=r(24613),s=r(59499),c=r(4730),l=r(67294),d=r(10760),u=r(40044),p=r(93946),h=r(70668),v=r(41899),f=r(39241),m=r(85893),bankTransfer=function(e){var t=e.vendor,r=e.wallet,a=e.switchTab;return(0,m.jsxs)(n.Z,{sx:{border:"1px solid #CACCCD",p:3,borderRadius:"5px",display:"flex",flexDirection:"column",alignItems:"center",mt:2},children:[(0,m.jsx)(o.Z,{variant:"body2",mb:2,sx:{textAlign:"center"},children:"Transfer the amount to your wallet account"}),(0,m.jsxs)(n.Z,{sx:{width:{xs:"100%",sm:"300px"},display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:"grey.lighter",borderRadius:"12px",py:4},children:[(0,m.jsxs)(o.Z,{variant:"body1",sx:{textAlign:"center",textTransform:"capitalize"},children:[null==r?void 0:r.account_number,","]}
1),(0,m.jsx)(o.Z,{variant:"h4",sx:{textAlign:"center"},children:null==r?void 0:r.bank_name}),(0,m.jsxs)(h.h,{children:[(0,m.jsx)(o.Z,{variant:"body2",sx:{color:"grey.darker",textDecoration:"underline"},children:"Copy Account Number"}),(0,m.jsx)(p.Z,{onClick:function(){navigator.clipboard.writeText("".concat(null==r?void 0:r.account_number))},children:(0,m.jsx)(v.Z,{sx:{color:"grey.darker",fontSize:15}})})]})]}),(0,m.jsxs)(f.Z,{sx:{mt:1,width:{xs:"100%",sm:"310px"}},vendor:t,variant:"contained",onClick:function(){return a("wallet")},children:[" ","i have sent the money"]})]})};r(87794),r(99390),r(29505),r(19726),r(25617),r(82336),r(74231),r(11163),r(89789),r(64367);var x=["children","value","index"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,s.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function TabPanel(e){var t=e.children,r=e.value,a=e.index,i=(0,c.Z)(e,x);return(0,m.jsx)("div",_objectSpread(_objectSpread({role:"tabpanel",hidden:r!==a,id:"simple-tabpanel-".concat(a),"aria-labelledby":"simple-tab-".concat(a)},i),{},{children:r===a&&(0,m.jsx)(n.Z,{sx:{py:3},children:(0,m.jsx)(o.Z,{children:t})})}))}function CardTabs(e){var t=e.vendor,r=e.wallet,a=(e.get,e.switchTab),o=(0,l.useState)(0),i=o[0],s=o[1],c=[{label:"Bank Transfer",value:"1",component:(0,m.jsx)(bankTransfer,{vendor:t,wallet:r,switchTab:a})}];return(0,m.jsxs)(n.Z,{sx:{width:"100%"},children:[(0,m.jsx)(n.Z,{sx:{borderBottom:1,borderColor:"divider"},children:(0,m.jsx)(d.Z,{value:i,onChange:function(e,t){s(t)},"aria-label":"basic tabs example",sx:{color:t?"secondary.main":"primary.main"},textColor:t?"secondary":"primary",indicatorColor:t?"secondary":"primary",allowScrollButtonsMobile:!0,variant:"fullWidth",scrollButtons:"auto",children:c.map(function(e,t){return(0,m.jsx)(u.Z,_objectSpread(_objectSpread({label:e.label},{id:"simple-tab-".concat(t),"aria-controls":"simple-tabpanel-".concat(t)}),{},{sx:{fontSize:14,textTransform:"capitalize"}}),t)})})}),c.map(function(e,t){return(0,m.jsx)(TabPanel,{value:i,index:t,children:e.component},t)})]})}var fundWallet=function(e){var t=e.vendor,r=e.switchTab,s=e.wallet,c=e.get;return(0,m.jsxs)(n.Z,{sx:{bgcolor:"white",borderRadius:"10px",minHeight:"calc(100vh - 150px)",pb:"10vh"},children:[(0,m.jsx)(a.Z,{variant:"text",onClick:function(){return r("wallet")},color:"black",startIcon:(0,m.jsx)(i.Z,{}),sx:{fontSize:15,textTransform:"none"},children:"Go back"}),(0,m.jsx)(n.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:(0,m.jsxs)(n.Z,{sx:{width:{xs:"90%",sm:"448px"}},children:[(0,m.jsx)(o.Z,{variant:"h5",sx:{textAlign:"center"},children:"Fund your Wallet"}),(0,m.jsx)(CardTabs,{vendor:t,wallet:s,get:c,switchTab:r})]})})]})}},89789:function(e,t,r){"use strict";r.d(t,{Z:function(){return AddNewCard}});var n=r(50029),a=r(59499),o=r(87794),i=r.n(o),s=r(80822),c=r(31812),l=r(15861),d=r(64666),u=r(54776),p=r(67294),h=r(25617),v=r(29505),f=r(90591),m=r(64367),x=r(59384),b=r(85893);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var y=(0,p.forwardRef)(function(e,t){return(0,b.jsx)(u.Z,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({direction:"up",ref:t},e))});function AddNewCard(e){var t,r,a=e.open,o=e.handleClose,u=e.customer,g=e.getCards,j=(0,p.useState)("md")[0],w=(0,p.useState)(!0)[0],Z=(0,h.v9)(function(e){return e.user.email}),k=(0,p.useState)(!1),C=k[0],S=k[1],P=(0,h.I0)(),O=(0,p.useRef)(new Date().getTime().toString());console.info(O);var _={reference:O.current,email:Z,amount:1e3,publicKey:"pk_live_1b2bfaae2be99c3a4a4064571061932ba1a3a038"},z=(t=(0,n.Z)(i().mark(function _callee(e){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(0,x.jq)("Settings - Billings - Add card process activation",{type:"Process Completed"}),console.info(e),$();case 3:case"end":return t.stop()}},_callee)})),function(e){return t.apply(this,arguments)}),E=(0,f.NL)(_),$=(r=(0,n.Z)(i().mark(function _callee2(){var e,t,r;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return S(!0),n.next=3,(0,m.O5)(O.current,{});case 3:t=(e=n.sent).success,r=e.error,S(!1),t?P((0,v.xB)({message:"Card Saved"})):r&&P((0,v.xB)({message:"Something Went Wrong",type:"error"})),o(),null!=g&&g();case 9:case"end":return n.stop()}},_callee2)}
1)),function(){return r.apply(this,arguments)});return(0,b.jsxs)(d.Z,{open:a,TransitionComponent:y,keepMounted:!0,maxWidth:j,fullWidth:w,onClose:o,"aria-describedby":"alert-dialog-slide-description",sx:{"& .MuiPaper-root":{borderRadius:4,px:0,bgcolor:"white"},"& .MuiDialogActions-root>:not(:first-of-type)":{marginLeft:0}},children:[(0,b.jsx)(s.Z,{sx:{padding:10,minHeight:"30vh"},children:(0,b.jsx)(l.Z,{children:"In order to add a card we would need to charge your account for a token amount of ₦10, this amount will usually be refunded into your account."})}),(0,b.jsx)(s.Z,{sx:{display:"flex",justifyContent:"center",marginBottom:10},children:(0,b.jsx)(c.Z,{variant:"contained",type:"submit",size:"large",color:u?"primary":"secondary",loading:C,sx:{width:120},onClick:function(){(0,x.jq)("Save card - Start add card process",{type:"Continue button clicked"}),E(z,function(){return null})},children:"Continue"})})]})}},99390:function(e,t,r){"use strict";r(67294);var n=r(80822),a=r(86886),o=r(66242),i=r(94054),s=r(79717),c=r(50480),l=r(36872),d=r(15861),u=r(45098),p=r(25675),h=r.n(p),v=r(85893),f=(0,u.Z)(n.Z)({display:"flex",justifyContent:"space-between",alignItems:"center"});t.Z=function(e){var t=e.card,r=e.activeRole,u=e.onChange,p=e.selected,m=e.wallet,x=t.account_name,b=t.id,y=t.last4,g=t.card_type;return console.info({card:t}),(0,v.jsx)(a.ZP,{item:!0,xs:12,sm:12,md:6,lg:m?6:4,sx:{position:"relative"},children:(0,v.jsxs)(o.Z,{elevation:2,sx:{width:"100%",borderRadius:"10px",position:"relative",pt:m?2:4,pb:m?1:3,backgroundImage:"url(/images/cardbg.svg)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center",cursor:"pointer"},onClick:u,children:[(0,v.jsx)(i.Z,{sx:{position:"absolute",right:m?1:2,top:m?1:3,m:0,p:0},children:(0,v.jsx)(s.Z,{"aria-labelledby":"demo-controlled-radio-buttons-group",name:"controlled-radio-buttons-group",value:p,onChange:u,children:(0,v.jsx)(c.Z,{sx:{m:0,p:0},value:"female",control:(0,v.jsx)(l.Z,{sx:{m:0,p:0,"& .MuiSvgIcon-root":{fontSize:m?15:25}},checked:p,color:r?"primary":"secondary"}),label:""})})}),(0,v.jsxs)(f,{sx:{px:m?1:2},children:[(0,v.jsx)(h(),{src:"/images/cardfiber.svg",alt:"fibre",width:m?20:40,height:m?20:40}),(null==g?void 0:g.trim())==="visa"?(0,v.jsx)(h(),{src:"/images/visa.svg",alt:"visa",width:m?40:100,height:20}):(0,v.jsx)(h(),{src:"/images/mastercard.svg",alt:"mastercard",width:m?30:70,height:20})]}),(0,v.jsxs)(f,{sx:{px:m?1:2},mt:m?0:5,children:[(0,v.jsxs)(n.Z,{children:[(0,v.jsxs)(d.Z,{variant:m?"caption":"body2",sx:{fontWeight:600},children:["*************",y]}),(0,v.jsx)(d.Z,{variant:"body2",mt:m?1:2,sx:{fontWeight:600},children:x})]}),(0,v.jsx)(h(),{src:"/images/wifi.svg",alt:"wifi",width:m?35:70,height:m?25:50})]})]})},b)}},49353:function(e,t,r){"use strict";r.r(t);var n=r(76848),a=r(87685),o=r(80822),i=r(69178),s=r(69143),c=r(82090),l=r(73047),d=r(85893);t.default=function(){var e=(0,a.u)(),t=[{label:"PRIVACY",value:"1",component:(0,d.jsx)(s.Z,{primary:e.palette.secondary.main})},{label:"BILLING",value:"4",component:(0,d.jsx)(c.Z,{primary:e.palette.primary.main})},{label:"WALLET",value:"5",component:(0,d.jsx)(l.Z,{})}];return(0,d.jsx)(n.Z,{children:(0,d.jsx)(o.Z,{sx:{backgroundColor:"#E5E5E5",width:"100%",p:2},children:(0,d.jsxs)(o.Z,{sx:{backgroundColor:"#fff",borderRadius:"10px"},children:[" ",(0,d.jsx)(i.Z,{index:2,tabs:t,primary:"secondary",secondary:e.palette.primary.main})]})})})}},68576:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/settings/fundWallet",function(){return r(49353)}])},90591:function(e,t,r){"use strict";r.d(t,{NL:function(){return usePaystackPayment}});var n=r(67294),a=[],callPaystackPop=function(e){var t=window.PaystackPop&&window.PaystackPop.setup(e);t&&t.openIframe()};function usePaystackPayment(e){var t,r,o,i,s=(t="https://js.paystack.co/v1/inline.js",o=(r=(0,n.useState)({loaded:!1,error:!1}))[0],i=r[1],(0,n.useEffect)(function(){if(a.includes(t))i({loaded:!0,error:!1});else{a.push(t);var e=document.createElement("script");e.src=t,e.async=!0;var onScriptLoad_1=function(){i({loaded:!0,error:!1})},onScriptError_1=function(){var r=a.indexOf(t);r>=0&&a.splice(r,1),e.remove(),i({loaded:!0,error:!0})};return e.addEventListener("load",onScriptLoad_1),e.addEventListener("complete",onScriptLoad_1),e.addEventListener("error",onScriptError_1),document.body.appendChild(e),function(){e.removeEventListener("load",onScriptLoad_1),e.removeEventListener("error",onScriptError_1)}}},[t]),[o.loaded,o.error]),c=s[0],l=s[1],d=e.publicKey,u=e.firstname,p=e.lastname,h=e.phone,v=e.email,f=e.amount,m=e.reference,x=e.metadata,b=void 0===x?{}:x,y=e.currency,g=void 0===y?"NGN":y,j=e.channels,w=e.label,Z=void 0===w?"":w,k=e.plan,C=void 0===k?"":k,S=e.quantity,P=void 0===S?""
1:S,O=e.subaccount,_=void 0===O?"":O,z=e.transaction_charge,E=void 0===z?0:z,$=e.bearer,M=void 0===$?"account":$,L=e.split,I=e.split_code;return(0,n.useEffect)(function(){if(l)throw Error("Unable to load paystack inline script")},[l]),function(t,r){if(l)throw Error("Unable to load paystack inline script");c&&callPaystackPop({callback:t||function(){return null},onClose:r||function(){return null},key:d,ref:m,email:v,firstname:u,lastname:p,phone:h,amount:f,currency:g,plan:C,quantity:P,"data-custom-button":e["data-custom-button"]||"",channels:j,subaccount:_,transaction_charge:E,bearer:M,label:Z,metadata:b,split:L,split_code:I})}}/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */var __assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var o=(0,n.createContext)({initializePayment:function(){return null},onSuccess:function(){return null},onClose:function(){return null}}),PaystackProvider=function(e){var t=e.children,r=e.onSuccess,a=e.onClose,i=usePaystackPayment(__rest(e,["children","onSuccess","onClose"]));return n.createElement(o.Provider,{value:{initializePayment:i,onSuccess:r,onClose:a}},t)},PaystackConsumerChild=function(e){var t=e.children,r=e.ref,a=(0,n.useContext)(o),i=a.initializePayment,s=a.onSuccess,c=a.onClose;return t({initializePayment:function(){return i(s,c)},ref:r})};(0,n.forwardRef)(function(e,t){var r=e.children,a=e.onSuccess,o=e.onClose,i=__rest(e,["children","onSuccess","onClose"]);return n.createElement(PaystackProvider,__assign({},i,{onSuccess:a||function(){return null},onClose:o||function(){return null}}),n.createElement(PaystackConsumerChild,{ref:t},r))})}},function(e){e.O(0,[4885,7456,8780,5300,6886,5675,3009,4134,135,5200,6621,1130,8117,1664,456,3163,8078,317,9837,9233,4447,175,4712,1692,7846,8976,8775,3834,2283,668,5843,9774,2888,179],function(){return e(e.s=68576)}),_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.