PageSourceSearch

https://www.lycamobile.pt/_next/static/chunks/pages/prepaid/accounts/InitialUserConfigPage-795bddbf115530ed.js

js lycamobile.pt collected 2026-09-24 11:11:22 UTC 7,593 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3294,45007,75488],{3294:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var o=n(37876),l=n(14232),r=n(31777),i=n(4833),s=n(13201),u=n(67330),a=n(80063),d=n(89099),c=n(20878),_=n(17840),v=n(86618),p=n(1127),m=n(56557),f=n.n(m),w=n(75488),y=n(81004),h=n(34260),g=n(40501),E=n(29454),A=n(84210),S=n(55759),k=n(15982),b=n(81279);let x=()=>{var e,t,n,m,x;let L=(0,d.useRouter)(),O=(0,r.wA)(),M=null==(e=f()().year())?void 0:e.toString(),N=null==(t=f()().format("MM"))?void 0:t.toString(),T=(0,r.d4)(a.Xk),K=(0,r.d4)(a.Bn),V=(0,r.d4)(u.WV),j=null==T||null==(n=T.country_number_code)?void 0:n.slice(1),z=`${j}${(0,i.KeO)()}`;(0,i.UG7)();let G=(0,i.vni)(),[P,R]=(0,l.useState)(!1),U=E.A.get(g.H.access_token),B=(null==T?void 0:T.is_registration_mandatory)||!1,C=(0,S.uM)(Number(G)),I=null,F=(null==(I=window)||null==(m=I.location)?void 0:m.host)&&(0,b.A)(null==I||null==(x=I.location)?void 0:x.host),W=(null==F?void 0:F.country_code)==="UG",X={msisdn:z,token:U,refresh_token:(0,i.vez)()},J=(0,l.useRef)(!1),$=(0,l.useRef)(null),q=(0,l.useRef)(null),D=(0,l.useRef)(!1),Y=(0,l.useRef)(!1),[Z,H]=(0,l.useState)(!1),Q=async()=>{if(D.current)return;D.current=!0;let{status:e}=await (0,v.Ub)(X,O);(204===e||200===e)&&(O((0,_.BV)(null)),(0,i.hVS)(),window.location.href="/login")},ee=()=>{clearTimeout($.current),$.current=setTimeout(()=>{U&&Q()},586980)},et=async()=>{Y.current&&!J.current&&(J.current=!0,await (0,v.Be)(),J.current=!1,H(!1),Y.current=!1,en()),ee()},en=()=>{clearTimeout(q.current),q.current=setTimeout(()=>{H(!0),Y.current=!0,U&&Q()},1e3*Number(C))};(0,l.useEffect)(()=>{O((0,A.f_)({}))},[]),(0,l.useEffect)(()=>(window.addEventListener("mousemove",et),window.addEventListener("keydown",et),window.addEventListener("scroll",et),window.addEventListener("click",et),ee(),en(),()=>{clearTimeout($.current),clearTimeout(q.current),window.removeEventListener("mousemove",et),window.removeEventListener("keydown",et),window.removeEventListener("scroll",et),window.removeEventListener("click",et)}),[Z,!0]),(0,l.useEffect)(()=>{Y.current=Z},[Z]),(0,l.useEffect)(()=>en(),[G]);let eo=async()=>{try{let{status:e,data:t}=await p.A.get(s.t.getConsent(z));200===e&&O((0,u.fc)(t))}catch(e){[400,404].includes(e.response.status)&&O((0,u.fc)({}))}},el=async()=>{try{let{status:e,data:t}=await p.A.post(s.t.getTopupSettings,{msisdn:z});200==e&&O((0,u.dd)(t))}catch(e){}},er=async()=>{try{var e,t,n;let o=await (0,c.Eg)(z),l=null==o||null==(n=o.data)||null==(t=n.credit_card_list)||null==(e=t.credit_card)?void 0:e.filter(e=>!(null==e?void 0:e.card_no.includes("PAYPAL")));O((0,u.ne)(l))}catch(e){}},ei=async()=>{try{let{status:e,data:t}=await p.A.get(s.t.getAllOffers((0,i.KeO)()));200===e&&O((0,u.qw)(t))}catch(t){var e;[400,404].includes(null==t||null==(e=t.response)?void 0:e.status)&&O((0,u.qw)({}))}};return((0,l.useEffect)(()=>{let e=(0,i.KeO)(),t={msisdn:(null==F?void 0:F.country_prefix)+(0,i.c2J)(e),user_option:"2"};(async()=>{try{let{status:e,data:n}=await p.A.post(s.t.roamingSpendCap,t);(null==n?void 0:n.roam_data_limit)!=="0.00"&&O((0,k.GF)(!0))}catch(e){console.log(e)}})()},[]),(0,l.useEffect)(()=>{let e=async()=>{var e,t,n,o,l,r;try{R(!0);let[o,l]=await Promise.all([p.A.get(s.t.dashboard),p.A.post(s.t.getSimdetails,{msisdn:z})]);((null==o?void 0:o.status)===200||(null==l?void 0:l.status)===200)&&R(!1);let r=null==V||null==(t=V.data)||null==(e=t.account_detail)?void 0:e.last_topup_date;r&&(0,i.lBd)(r),O((0,u.p)(null==V?void 0:V.data)),(0,i.ex1)(null==V||null==(n=V.account_detail)?void 0:n.loan_out_standing),O((0,u.$Z)(o.data)),O((0,u.Mp)(l.data)),(0,i.UG7)()===(0,i.KeO)()&&((0,i.lJJ)((0,i.YgS)(V)),(0,i.oX0)((0,i.OfW)(K,V,null==L?void 0:L.locale)))}catch(e){R(!1),[403,501,502,503,504].includes(null==e||null==(o=e.response)?void 0:o.status)&&O((0,y.ZD)({display:!0,severity:"error",message:(null==e||null==(r=e.response)?void 0:r.data.message)||h.A.wentWrong})),[401].includes(null==e||null==(l=e.response)?void 0:l.status)&&(O((0,_.A2)(!0)),(0,i.hVS)(),L.push("/login"))}};(0,i.a44)(K)&&j&&z&&(void 0!==(0,i.UG7)()&&void 0!==(0,i.KeO)()?(e(),(0,v.Gv)(z).then(e=>{O((0,u.m9)(e))}).catch(e=>O((0,u.m9)(""))),eo(),W||er(),ei(),el(),(0,v.FD)(z).then(e=>{O((0,u.Vn)(e))}).catch(e=>{var t,n;(null==e||null==(t=e.response)?void 0:t.status)!==401&&((null==e||null==(n=e.response)?void 0:n.status)!==400||B)||(O((0,_.A2)(!0)),(0,i.hVS)(),L.push("/login"))}),(0,v.pK)(z,M,N).then(e=>{O((0,u.du)(e))})):((0,i.hVS)(),L.push("/login")))},[j,K]),P)?(0,o.jsx)(w.A,{}):(0,o.jsx)(l.Fragment,{})}},14226:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/prepaid/accounts/InitialUserConfigPage",function(){return n(3294)}])},26216:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(14232);let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{function t(){n(window.innerWidth<=e)}return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t}},55759:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>r,FK:()=>o,bv:()=>l,tB:()=>i,uM:()=>s});let o=(e,t)=>({old_msisdn:null==e?void 0:e.msisdn,old_iccid:t??(null==e?void 0:e.iccid),new_iccid:"",old_pukcode:null==e?void 0:e.puk_code,new_pukcode:"",esim_transaction_id:"",type_of_swap:"",type_of_device:""}),l=e=>{var t,n,o,l,r,i,s,u,a,d,c,_;return{post_code:(null==e||null==(n=e.personal_information)||null==(t=n.address)?void 0:t.post_code)||"56001",street:null==e||null==(l=e.personal_information)||null==(o=l.address)?void 0:o.street,city:null==e||null==(i=e.personal_information)||null==(r=i.address)?void 0:r.city,country:null==e||null==(u=e.personal_information)||null==(s=u.address)?void 0:s.country,house_no:null==e||null==(d=e.personal_information)||null==(a=d.address)?void 0:a.house_no,county:null==e||null==(_=e.personal_information)||null==(c=_.address)?void 0:c.county,houseno_extn:"",apartment_no:"",block:"",lift:"",floor:"",door:"",administrative_area:"",neighbourhood:"",street_number:"",co:""}},r=e=>[{type_of_sim:"eSIM"===e?"eSIM":"Standard",purchase_type:"S",topup_amount:"",card_id:"",topup_tax_details:{tax:"",tax_id:""},shipping_charge:0,topup_vat_id:"",topup_vat_amount:"",promo_code:"",promo_type:"",promo_discount_amount:"",topup_fee:"",nus_flag:"",nus_id:"",nus_expiry_date:"",sim_type:"eSIM"===e?"1":"0",sim_category:"eSIM"===e?"1":"0",is_activation_fee:"",activation_fee:"",activation_fee_sim_type:""}],i=(e,t,n,o)=>({post_code:t?e.post_code:"",street:t?(null==o?void 0:o.street_name)?null==o?void 0:o.street_name:(null==e?void 0:e.street)||(null==e?void 0:e.street_name)||(null==e?void 0:e.house_no):"",city:t?(null==o?void 0:o.city)?null==o?void 0:o.city:null==e?void 0:e.city:"",country:t?!!(null==e?void 0:e.country)||n:"",house_no:t?(null==e?void 0:e.house_no)||(null==e?void 0:e.street):"",county:t?e.county:"",houseno_extn:"",apartment_no:"",block:"",lift:"",floor:"",door:"",administrative_area:"",neighbourhood:"",street_number:"",co:""}),s=e=>e>21e5?21e5:e}
1,75488:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(37876);n(14232);var l=n(99810),r=n.n(l),i=n(16455),s=n(54587),u=n.n(s),a=n(26216);let d=()=>{let e=(0,a.A)();return(0,o.jsxs)("div",{className:r().loader_wrapper,children:[(0,o.jsx)("div",{className:"spinner-border text-primary",role:"status"}),(0,o.jsx)(u(),{height:e?60:110,width:e?60:110,src:null===i.z||void 0===i.z?void 0:i.z.LycaLoader,alt:"loader"})]})}},99810:e=>{e.exports={loader_wrapper:"style_loader_wrapper__OuKQE",mainLoader:"style_mainLoader__A5gjS"}}},e=>{e.O(0,[90636,46593,38792],()=>e(e.s=14226)),_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.