PageSourceSearch

https://app.chargily.com/_next/static/chunks/3781-dc32c8c4bbb66522.js

js chargily.com collected 2026-10-07 11:27:26 UTC 16,516 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3781],{63854:function(e,n,t){t.d(n,{Kb:function(){return f},Ld:function(){return Y},U0:function(){return V}});var r=t(85893),s=t(71911),i=t(23100),a=t(91669),o=t(14418),c=t(88911),l=t(30719),u=t(31970),d=(t(21082),t(21669),t(36797),t(66290)),h=t(42435),g=t(9162);const x=e=>{let{size:n}=e;return(0,r.jsx)(g.E,{src:"/assets/images/icons/reward-icon.png",alt:"reward icon",w:n,h:n})};var p=t(78647);const f=e=>{let{onReachEnd:n}=e;const t=(0,d.I)("ltr","rtl"),{t:g}=(0,h.$)("auth");return(0,r.jsx)(i.xu,{overflow:"hidden",pt:16,pb:6,children:(0,r.jsxs)(l.tq,{modules:[s.W_,s.tl,s.pt],navigation:!0,style:{overflow:"unset"},pagination:{clickable:!0},className:"auth-features-swiper",onSlideChange:e=>{e.isEnd&&n&&setTimeout((()=>{n()}),2e3)},autoplay:!0,speed:750,dir:t,children:[(0,r.jsx)(l.o5,{children:(0,r.jsxs)(a.g,{spacing:6,textAlign:"center",children:[(0,r.jsx)(u.jE,{size:80}),(0,r.jsx)(o.X,{color:"white",fontSize:"2xl",fontWeight:500,children:g("features.send.title")}),(0,r.jsx)(c.x,{color:"white",maxW:"60%",children:g("features.send.text")})]})}),(0,r.jsx)(l.o5,{children:(0,r.jsxs)(a.g,{spacing:6,textAlign:"center",children:[(0,r.jsx)(u.uE,{size:80}),(0,r.jsx)(o.X,{color:"white",fontSize:"2xl",fontWeight:500,children:g("features.topup.title")}),(0,r.jsx)(c.x,{color:"white",maxW:"60%",children:g("features.topup.text")})]})}),(0,r.jsx)(l.o5,{children:(0,r.jsxs)(a.g,{spacing:6,textAlign:"center",children:[(0,r.jsx)(p.v,{name:"redeem",size:"85px",style:{color:"white"}}),(0,r.jsx)(o.X,{color:"white",fontSize:"2xl",fontWeight:500,children:g("features.vouchers.title")}),(0,r.jsx)(c.x,{color:"white",maxW:"60%",children:g("features.vouchers.text")})]})}),(0,r.jsx)(l.o5,{children:(0,r.jsxs)(a.g,{spacing:6,textAlign:"center",children:[(0,r.jsx)(i.xu,{bgColor:"white",p:3,borderRadius:"2xl",children:(0,r.jsx)(u.Ik,{size:65,color:"#680488"})}),(0,r.jsx)(o.X,{color:"white",fontSize:"2xl",fontWeight:500,children:g("features.pay.title")}),(0,r.jsx)(c.x,{color:"white",maxW:"60%",children:g("features.pay.text")})]})}),(0,r.jsx)(l.o5,{children:(0,r.jsxs)(a.g,{spacing:3,textAlign:"center",children:[(0,r.jsx)(i.xu,{p:3,borderRadius:"2xl",children:(0,r.jsx)(x,{size:90,color:"#680488"})}),(0,r.jsx)(o.X,{color:"white",fontSize:"2xl",fontWeight:500,children:g("features.reward.title")}),(0,r.jsx)(c.x,{color:"white",maxW:"60%",children:g("features.reward.text")})]})})]})})};var m=t(67294),j=t(9371),b=t(90956),v=t(10808),w=(t(42459),t(6750)),y=t(17206),C=t(31392),S=t(75958);var I=t(25559),E=t(68055),z=t(66946),_=t(33499),k=t(40430),R=t(38267),A=t(5370),O=t(28129),B=t(85483),D=t(45591),L=t(98715),F=t(14859),H=t(54641),N=t(95529),U=t(92028),W=t(97822),P=t(89583),T=t(20126),Z=t(65118);const V=()=>{const{login:e,isLoading:n}=(0,b.a)(),[t,s]=(0,m.useState)(!1),[o,l]=(0,m.useState)([]),[u,d]=(0,m.useState)(!1),{handleFetchRedirector:g,isLoading:x}=(0,T.Y)(),{value:f,isValid:V,hasError:X,inputBlurHandler:$,inputChangeHandler:q,valueSubmitHandler:G,reset:J}=(0,v.G)("",C.Jh),{value:Y,isValid:M,hasError:K,inputBlurHandler:Q,inputChangeHandler:ee,valueSubmitHandler:ne,reset:te}=(0,v.G)("",C.GI),re=V&&M,{t:se}=(0,h.$)();return(0,r.jsxs)(r.Fragment,{children:[(0,Z.md)(o)&&(0,r.jsxs)(I.b,{status:"error",children:[(0,r.jsx)(E.z,{}),(0,r.jsxs)(i.xu,{flex:1,children:[(0,r.jsx)(z.C,{children:"Error!"}),(0,r.jsx)(_.X,{children:o.map(((e,n)=>(0,r.jsx)(c.x,{fontSize:14,children:e},n)))})]}),(0,r.jsx)(k.P,{alignSelf:"flex-start",position:"relative",right:-1,top:-1,onClick:()=>l([])})]}),(0,r.jsx)("form",{onSubmit:n=>{n.preventDefault();e({email:f,password:Y},(e=>{l((0,y.TX)(e))}))},children:(0,r.jsxs)(a.g,{align:"stretch",w:"full",spacing:8,children:[(0,r.jsxs)(a.g,{spacing:6,children:[(0,r.jsxs)(R.NI,{isRequired:!0,isInvalid:X,children:[(0,r.jsx)(A.l,{children:se("auth.login.email")}),(0,r.jsx)(O.I,{type:"email",value:f,onChange:q,onBlur:$,variant:"filled",placeholder:"[email protected]"}),(0,r.jsx)(B.J1,{children:se("register.errors.email")})]}),(0,r.jsxs)(R.NI,{isRequired:!0,isInvalid:K,children:[(0,r.jsx)(A.l,{children:se("auth.login.password")}),(0,r.jsxs)(D.B,{children:[(0,r.jsx)(O.I,{type:u?"text":"password",value:Y,onChange:ee,onBlur:Q,variant:"filled",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"}),(0,r.jsx)(L.x,{children:(0,r.jsx)(F.h,{variant:"ghost","aria-label":u?"Hide password":"Show password",icon:u?(0,r.jsx)(p.v,{name:"visibility_off",size:"20px",style:{color:(0,w.Lq)("gray.500")}}):(0,r.jsx)(p.v,{name:"visibility",size:"20px",style:{color:(0,w.Lq)("gray.500")}}),onClick:()=>d(!u)})})]}),(0,r.jsx)(B.J1,{children:se("register.errors.password",{password_length:j.Z9})})]}),(0,r.jsxs)(H.U,{alignItems:"center",justifyItems:"space-between",spacing:"1",w:"full",children:[(0,r.jsx)(R.NI,{children:(0,r.jsxs)(N.X,{isChecked:t,onChange:e=>{s(e.currentTarget.checked)},colorScheme:"primary",children:[se("auth.login.remember_me")," "]})}),(0,r.jsx)(S.rU,{href:"/auth/forgot-password",fontSize:{base:"xs",sm:"sm",md:"md"},minW:"fit-content",children:se("auth.login.forgot_password")})]})]}),(0,r.jsxs)(a.g,{align:"stretch",children:[(0,r.jsx)(U.z,{isDisabled:!re,isLoading:n,type:"submit",children:se("common.login")}),(0,r.jsxs)(c.x,{textAlign:"center",children:[se("auth.login.new_to_chargily")," ",(0,r.jsx)(S.rU,{href:"/auth/signup",children:se("navigation.create_account")}
1)]})]})]})}),(0,r.jsxs)(H.U,{my:4,children:[(0,r.jsx)(W.i,{}),(0,r.jsx)(c.x,{fontSize:"sm",whiteSpace:"nowrap",children:se("common.orr")}),(0,r.jsx)(W.i,{})]}),(0,r.jsx)(U.z,{w:"full",backgroundColor:"red.500",leftIcon:(0,r.jsx)(P.ldW,{}),onClick:g,isLoading:x,_hover:{backgroundColor:"red.600"},children:se("auth.login.google")})]})};var X=t(83526),$=t(48228),q=t(16935),G=t(13543);const J=()=>{const e=(0,q.g)(),n=(0,G.N)();return(0,$.D)({mutationFn:e=>(async e=>{const{data:n}=await X.z.post("/password/forgot-password",{email:e});return n})(e),onSuccess:t=>{n([[j.U7.USER]]),(null===t||void 0===t?void 0:t.message)&&e({description:null===t||void 0===t?void 0:t.message,status:(null===t||void 0===t?void 0:t.status)?"success":"warning"})}})},Y=()=>{const e=J(),{value:n,isValid:t,hasError:s,inputBlurHandler:i,inputChangeHandler:l}=(0,v.G)("",C.Jh),{t:u}=(0,h.$)();return(0,r.jsx)("form",{onSubmit:t=>{t.preventDefault(),e.mutate(n)},children:(0,r.jsxs)(a.g,{align:"stretch",spacing:10,children:[(0,r.jsxs)(a.g,{spacing:6,children:[(0,r.jsx)(o.X,{children:u("auth.forgot_password.title")}),(0,r.jsx)(c.x,{children:u("auth.forgot_password.text")})]}),(0,r.jsxs)(a.g,{spacing:6,children:[(0,r.jsxs)(R.NI,{isInvalid:s,children:[(0,r.jsx)(O.I,{value:n,onChange:l,onBlur:i,variant:"filled",placeholder:u("auth.forgot_password.email_address")+"...",size:"lg"}),(0,r.jsx)(B.J1,{children:u("register.email")})]}),(0,r.jsx)(U.z,{type:"submit",size:"lg",alignSelf:"stretch",isLoading:e.isLoading,isDisabled:!t||e.isLoading,children:u("send")})]})]})})}},79343:function(e,n,t){t.d(n,{j:function(){return c}});var r=t(85893),s=t(12498),i=t(19018),a=t(11163),o=t(40026);function c(e){let{size:n=145,...t}=e;const{locale:c}=(0,a.useRouter)(),l=(0,s.ff)(o.O.primary.base,"white");return(0,r.jsx)(i.jo,{size:n,color:l,...t,locale:"ar"===c?"arabic":"latin"})}},17323:function(e,n,t){t.d(n,{b:function(){return l}});var r=t(85893),s=t(12498),i=t(7754),a=t(78647),o=t(40026),c=t(6750);const l=()=>{const{colorMode:e,toggleColorMode:n}=(0,s.If)();return(0,r.jsx)(i.M,{cursor:"pointer",onClick:n,w:26,children:"light"===e?(0,r.jsx)(a.v,{name:"wb_sunny",size:"26px",style:{color:o.O.primary.base}}):(0,r.jsx)(a.v,{name:"bedtime",size:"24px",style:{color:(0,c.Lq)("whiteAlpha.900")}})})}},71874:function(e,n,t){t.d(n,{i:function(){return c}});var r=t(85893),s=t(12498),i=t(19018),a=t(11163),o=t(40026);function c(e){let{size:n=180,...t}=e;const{locale:c}=(0,a.useRouter)(),l=(0,s.ff)(o.O.primary.base,"white");return(0,r.jsx)(i.in,{size:n,color:l,locale:"ar"===c?"arabic":"latin",...t})}},13543:function(e,n,t){t.d(n,{N:function(){return s}});var r=t(85945);const s=()=>{const e=(0,r.NL)();return n=>{const t=n.map((n=>e.invalidateQueries({queryKey:n})));return Promise.all(t)}}},20126:function(e,n,t){t.d(n,{Y:function(){return a}});var r=t(87066),s=t(67294),i=t(11163);function a(){const[e,n]=(0,s.useState)(!1),t=function(){const e=(0,i.useRouter)(),n=(0,s.useCallback)((function(n){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?window.open(n,"_blank","noopener,noreferrer"):e.push(n)}),[e]);return n}();return{handleFetchRedirector:async()=>{n(!0);try{const e=await r.Z.get("".concat("https://app.chargily.net/api/v1","/auth/google/redirect"));if(!0!==e.data.status||!e.data.url)throw new Error("Error fetching redirector");t(e.data.url)}catch(e){console.log(e)}},isLoading:e}}},10808:function(e,n,t){t.d(n,{G:function(){return s}});var r=t(67294);const s=(e,n)=>{const[t,s]=(0,r.useState)(e),[i,a]=(0,r.useState)(!1),o=n(t);return{value:t,setValue:s,isValid:o,hasError:!o&&i,inputBlurHandler:()=>{a(!0)},inputChangeHandler:e=>{s("string"===typeof e?e:e.currentTarget.value),a(!1)},valueSubmitHandler:()=>{a(!0)},reset:()=>{s(e),a(!1)}}}},42459:function(e,n,t){t.d(n,{m:function(){return a}});var r=t(67294),s=t(31392);const i={phoneLength:9},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const[t,a]=(0,r.useState)(e),[o,c]=(0,r.useState)(!1),l=(0,s.xT)(t),u=o&&!l,d=e=>{const t=e.currentTarget.value;if(t.length>0&&t.length<3){(0,s.sc)(t)&&a(t)}else{const e=t.startsWith("0");(e&&t.length<=n.phoneLength+1||!e&&t.length<=n.phoneLength)&&a(t)}},h=()=>{c(!0)},g=()=>{a(""),c(!1)};return(0,r.useEffect)((()=>{a(e)}),[e]),(0,r.useEffect)((()=>
1{if(t.length>8){const e=t.startsWith("0");(!e&&t.length===n.phoneLength||e&&t.length===n.phoneLength+1)&&n.onPhoneInputEnd&&n.onPhoneInputEnd()}}),[t,n]),{phoneNumber:t,onPhoneNumberInputChange:d,onPhoneNumberInputBlur:h,phoneIsValid:l,phoneHasError:u,setPhoneNumber:a,resetPhoneNumber:g}}},77628:function(e,n,t){t.d(n,{N:function(){return C}});var r=t(85893),s=t(95581),i=t(20546),a=t(9371),o=t(67294),c=t(11163);var l=t(12498),u=t(23100),d=t(91669),h=t(88911),g=t(7754),x=t(92028),p=t(41664),f=t.n(p),m=t(63854),j=t(6750),b=t(83508),v=t(71874),w=t(88073);const y=e=>{let{onClick:n}=e;(0,l.ff)(.1,.6);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(u.xu,{pos:"relative",inset:0,zIndex:99,py:6,w:"full",minH:"100vh",bgColor:"primary.base",...w.F.pattern("20%"),children:[(0,r.jsx)(d.g,{alignItems:"stretch",w:"full",flexShrink:0,color:"white",textAlign:"center",spacing:6,children:(0,r.jsxs)(d.g,{spacing:6,children:[(0,r.jsx)(f(),{href:"https://chargily.com/#app",target:"_blank",children:(0,r.jsx)(v.i,{color:"white"})}),(0,r.jsx)(u.xu,{py:3,px:10,w:"full",bgColor:(0,b.$n)((0,j.Lq)("primary.base"),.07),_dark:{bgColor:"primary.accent"},children:(0,r.jsx)(h.x,{fontSize:"sm",children:"Send Money, Pay Your Bills Top Up & Find Your Prepaid Cards. All In One App!"})})]})}),(0,r.jsx)(m.Kb,{onReachEnd:n}),(0,r.jsx)(g.M,{children:(0,r.jsx)(x.z,{variant:"unstyled",color:"white",onClick:n,children:"Skip"})})]})})},C=()=>{const[e]=(0,s.a)("(max-width: 500px)"),{firstTimeVisit:n,userHasVisited:t}=(()=>{const[e,n]=(0,o.useState)(!1),{isReady:t,query:r}=(0,c.useRouter)(),s=(0,o.useCallback)((()=>{i.m.setItem(a.Rw,!1),n(!1)}),[]);return(0,o.useEffect)((()=>{if(t){const e=i.m.getItem(a.Rw);null===e||void 0===e?r&&"sp"in r?s():n(!0):n(e)}}),[r,t,s]),{firstTimeVisit:e,userHasVisited:s}})();return e&&n?(0,r.jsx)(y,{onClick:()=>t()}):null}},85272:function(e,n,t){t.d(n,{G:function(){return u}});var r=t(85893),s=t(23100),i=t(54641),a=t(88911),o=t(75958),c=t(42435),l="3.11.3";const u=()=>{const{t:e}=(0,c.$)();return(0,r.jsx)(s.xu,{py:6,px:{base:2,sm:4,md:8},fontSize:{base:"xs",sm:"sm",md:"unset"},children:(0,r.jsxs)(i.U,{w:"full",justifyContent:"space-between",spacing:3,children:[(0,r.jsx)(s.xu,{children:(0,r.jsxs)(a.x,{children:["Chargily \xa9 2015-",(new Date).getFullYear()]})}),(0,r.jsx)(s.xu,{children:(0,r.jsx)(a.x,{children:l})}),(0,r.jsxs)(i.U,{spacing:{base:1,md:2},children:[(0,r.jsx)(o.rU,{href:"http://dz.chargily.com/app/term",target:"_blank",children:e("navigation.terms_policy")}),(0,r.jsx)(a.x,{children:"-"}),(0,r.jsx)(o.rU,{href:"http://dz.chargily.com/app/help",target:"_blank",children:e("navigation.help")})]})]})})}},38493:function(e,n,t){t.d(n,{w:function(){return d}});var r=t(85893),s=t(23100),i=t(54641),a=t(41664),o=t.n(a),c=t(79590),l=t(79343),u=t(17323);const d=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.xu,{py:2,px:8,boxShadow:"base",children:(0,r.jsxs)(i.U,{w:"full",justify:"space-between",spacing:{base:6,sm:8,md:10},children:[(0,r.jsx)(o(),{href:"/dashboard",children:(0,r.jsx)(l.j,{})}),(0,r.jsxs)(i.U,{spacing:{base:1,sm:2,md:3},children:[(0,r.jsx)(u.b,{}),(0,r.jsx)(c.k,{})]})]})})})},88073:function(e,n,t){t.d(n,{F:function(){return i}});var r=t(6750),s=t(40026);const i={primaryGradientImage:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"no-repeat",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"to bottom",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.6;return{bgImage:"linear-gradient(".concat(i,", ").concat(s.O.primary.base,", ").concat((0,r.m4)(s.O.primary.base,a)," 120%), url(").concat(e,")"),bgRepeat:t,bgSize:"100% 100%, ".concat(n),bgPosition:"center, center",_dark:{bgImage:"linear-gradient(".concat(i,", ").concat((0,r.m4)(s.O.primary.accent,a),", ").concat(s.O.primary.accent,"), url(").concat(e,")")}}},pattern:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"10%";return{bgImage:"url(/assets/images/bg_pattern.svg)",bgRepeat:"repeat",bgSize:e,_dark:{bgImage:"url(/assets/images/bg_pattern_dark.svg)"}}}}},17206:function(e,n,t){t.d(n,{TX:function(){return h},_K:function(){return u},_q:function(){return g},jQ:function(){return l},l4:function(){return c},so:function(){return d},yi:function(){return o}});var r=t(90993),s=t(9371),i=t(29204),a=t(94311);const o=e=>{let n="/assets/images/payments";switch(e){case r.CF.BADR:return"".concat(n,"/badr_logo.png");case r.CF.CCP:return"".concat(n,"/baridi-post.png");case r.CF.BDL:return"".concat(n,"/bdl.png");case r.CF.BARIDIMOB:return"".concat(n,"/baridi_logo.png");case r.CF.BNP:return"".concat(n,"/bnp.png");case r.CF.CIB:case r.CF.CIBCARD:return"".concat(n,"/cib.png");case r.CF.EDAHABIA:case r.CF.EDAHABIACARD:return"".concat(n,"/baridi.png");case r.CF.CASH:return"".concat(n,"/cach.png");case r.CF.ALBARAKA:return"".concat(n,"/al-baraka.png");default:return""}},c=(e,n)=>{let t=s.cl;if(n instanceof i.d7){var r;const e=null===n||void 0===n||null===(r=n.response)||void 0===r?void 0:r.data.message;e&&""!==e&&(t=e)}return t},l=e=>{const n=(e=>(e.startsWith("+213")&&(e=e.slice(4)),e.startsWith("0")?e.charAt(1):e.charAt(0)))(e);return"5"===n?a.E.OOREDOO:"6"===n?a.E.MOBILIS:a.E.DJEZZY},u=e=>{const n=l(e);return n===a.E.DJEZZY?"/assets/images/payments/djezzy.png":n===a.E.OOREDOO?"/assets/images/payments/ooredoo.png":"/assets/images/payments/mobilis.png"},d=e=>{switch(e){case r.Oy.Mobilis||r.Oy.DJEZZY||r.Oy.Ooredoo:return"+213";case r.Oy.Orange:return"+33";case r.Oy.ATandT:return"+1";case r.Oy.Vodafone:return"+44";default:return"+213"}},h=e=>{const n=Object.values(e);let t=[];return n.map((e=>e.map((e=>t.push(e))))),t},g=e=>{switch(e){case"DZ":default:return"DZD";case"FR":return"EUR";case"GB":return"GBP";case"US":return"USD"}}},31392:function(e,n,t){t.d(n,{Dw:function(){return s},Ei:function(){return a},GI:function(){return o},Jh:function(){return i},LO:function(){return p},Qr:function(){return x},Xy:function(){return c},Z2:function(){return g},et:function(){return u},hj:function(){return l},sc:function(){return h},xT:function(){return d},yY:function(){return f}});var r=t(9371);const s=e=>0!==e.length,i=e=>new RegExp(/[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/,"g").test(e),a=(e,n)=>s(e)&&e.length>=n,o=e=>a(e,r.Z9),c=(e,n)=>e===n,l=e=>new RegExp(/^[0-9]*$/,"g").test(e)&&s(e),u=e=>/\d/.test(e),d=e=>{const n=new RegExp(/^(0)(5|6|7)[0-9]{8}$/),t=new RegExp(/^(5|6|7)[0-9]{8}$/);return n.test(e)||t.test(e)},h=e=>{if(!e||!l(e))return!1;if(1===e.length)return"0"===e||"5"===e||"6"===e||"7"===e;const n=e.substring(0,2),t=e.charAt(0);return"0"===t?"05"===n||"06"===n||"07"===n:"5"===t||"6"===t||"7"===t},g=(e,n,t)=>e>=n&&e<=t,x=e=>0===Object.keys(e).length,p=e=>/[!@#$%^&*(),.?":{}|<>]/.test(e),f=e=>/[^!@#$%^&*(),.?":{}|<>\d]/.test(e)}}]);

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.