PageSourceSearch

https://www.rctiplus.com/web-profile-assets/_next/static/chunks/8629.226ed82288313935.js

js rctiplus.com collected 2026-09-25 09:35:15 UTC 9,645 bytes, 1 lines download raw bytes

1(self.webpackChunkshort=self.webpackChunkshort||[]).push([[8629],{4532:function(e,l,s){"use strict";var t=s(8775);l.A=e=>{let{children:l}=e;return(0,t.jsx)("div",{className:"fixed top-0 left-0 w-full h-full bg-[#000000] bg-opacity-50 flex items-center justify-center",children:l})}},9966:function(e,l,s){"use strict";var t=s(8775),n=s(2242),a=s.n(n),r=s(3271);l.A=e=>{let{children:l}=e;return(0,t.jsx)("div",{className:(0,r.A)("py-[20px]",a().scrolled),children:l})}},6275:function(e,l,s){"use strict";var t=s(8775),n=s(2604),a=s(8068),r=s(3884);l.A=e=>{let{onChanged:l,active:s,typeOtp:i,otpFor:c,nameModal:o}=e,[d,u]=(0,r.useState)(60),[x,h]=(0,r.useState)(["","","","","",""]),p=(0,r.useRef)(Array(6).fill(null));(0,r.useEffect)(()=>{let e=setInterval(()=>{d>0?u(d-1):clearInterval(e)},1e3);return()=>clearInterval(e)},[d]);let v=e=>{e.preventDefault(),(0,a.om)("submit").then(e=>{m({username:"",type:i,signature_code:"web",captcha_response:e})}).catch(e=>{console.error("Error executing reCAPTCHA:",e)})},m=async e=>{var l,s,t,r;let i=(0,a.G_)("email"),c=(0,a.G_)("phone_code")+(0,a.G_)("phone_number");e.username=null!=i?i:c;let o=await (0,n.xq)(e);(null==o?void 0:null===(s=o.data)||void 0===s?void 0:null===(l=s.status)||void 0===l?void 0:l.code)===0?u(60):alert(null==o?void 0:null===(r=o.data)||void 0===r?void 0:null===(t=r.status)||void 0===t?void 0:t.message_server)},f=(e,s)=>{var t,n,a;let r=e.target.value;if(!/^\d*$/.test(r)||r.length>1)return;let i=[...x];i[s]=r,h(i),""!==r&&s<x.length-1&&(null===(t=p.current[s+1])||void 0===t||t.focus()),i.every(e=>""!==e)&&(null==l||l(i.join(""))),""!==r?s<x.length-1&&(null===(n=p.current[s+1])||void 0===n||n.focus()):s>0&&(null===(a=p.current[s-1])||void 0===a||a.focus())},j=(e,l)=>{var s,t;switch(e.key){case"ArrowLeft":l>0&&(null===(s=p.current[l-1])||void 0===s||s.focus());break;case"ArrowRight":l<x.length-1&&(null===(t=p.current[l+1])||void 0===t||t.focus());break;case"v":(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.preventDefault(),F(l))}},F=e=>{navigator.clipboard.readText().then(e=>{let l=e.trim().slice(0,x.length),s=[...x];for(let e=0;e<Math.min(l.length,x.length);e++)s[e]=l[e];h(s),p.current[e.length-1].focus()}).catch(e=>console.error("Gagal membaca teks dari clipboard: ",e))},y=d%60;return s?(0,t.jsxs)("div",{className:"bg-[#2F2D2D] p-8 rounded shadow-lg",children:[(0,t.jsx)("div",{className:"mb-4 text-gray-600",children:(0,t.jsxs)("div",{className:"flex flex-col justify-center items-center",children:["email"===c?(0,t.jsxs)("div",{className:"text-center mb-4 w-[70%]",children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-[#FFFFFF]",children:"Verify Email"}),(0,t.jsxs)("span",{className:"text-[#FFFFFF] text-center",children:["Email verification has been sent to email"," ",o]})]}):"phone"===c?(0,t.jsxs)("div",{className:"text-center mb-4 w-[70%]",children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-[#FFFFFF]",children:"Verify Phone Number"}),(0,t.jsxs)("span",{className:"text-[#FFFFFF] text-center",children:["Phone Number verification has been sent to "," ",o]})]}):null,(0,t.jsx)("div",{className:"flex justify-center space-x-2",children:x.map((e,l)=>(0,t.jsx)("input",{type:"text",className:"w-12 h-12 bg-opacity-0 bg-inherit border-b text-[#FFFFFF] px-[16px]",value:e,onChange:e=>f(e,l),onKeyDown:e=>j(e,l),ref:e=>{p.current[l]=e}},l))})]})}),(0,t.jsx)("div",{className:"text-center mb-4",children:d>1?(0,t.jsxs)("span",{className:"text-[#FFFFFF] text-center",children:["Resend code in: \xa0",(0,t.jsxs)("span",{className:"text-[#05B5F5]",children:[Math.floor(d/60),":",y<10?"0":"",y]})]}):(0,t.jsxs)("span",{className:"text-[#FFFFFF] text-center flex flex-col",children:[(0,t.jsx)("span",{children:"did not receive any code"}),(0,t.jsx)("span",{className:"text-[#FA262F]",onClick:e=>v(e),children:"send me code"})]})})]}):null}},8629:function(e,l,s){"use strict";s.r(l);var t=s(8775),n=s(9966),a=s(2750),r=s.n(a),i=s(3271),c=s(8068),o=s(3884),d=s(5990),u=s(6275),x=s(4532),h=s(2604),p=s(4811);l.default=(0,p.A)(()=>{var e,l,s,a;let[p,v]=(0,o.useState)(),[m,f]=(0,o.useState)(!1);(0,o.useEffect)(()=>{},[p]),(0,o.useEffect)(()=>{j()},[]);let j=async()=>{try{var e,l,s;let t=await (0,d.T)();if((null==t?void 0:null===(l=t.data)||void 0===l?void 0:null===(e=l.status)||void 0===e?void 0:e.code)===0){let e=null==t?void 0:null===(s=t.data)||void 0===s?void 0:s.data;(0,c.BY)("user",JSON.stringify(e)),e.dob=(0,c.sn)("yyyy-mm-dd",e.dob),v(e)}}catch(e){console.log(e)}},F=async e=>{try{var l,s,t,n;(0,c.A4)();let a=(0,c.TO)(),r=await (0,h.P4)({username:a,otp:e});(null==r?void 0:null===(s=r.data)||void 0===s?void 0:null===(l=s.status)||void 0===l?void 0:l.code)===0?(console.log("ini otp",e),y(e)):alert(null==r?void 0:null===(n=r.data)||void 0===n?void 0:null===(t=n.status)||void 0===t?void 0:t.message_server)}catch(e){alert(e)}},y=async e=>{try{var l,s,t,n;let a=await (0,d.F)(e);(null==a?void 0:null===(s=a.data)||void 0===s?void 0:null===(l=s.status)||void 0===l?void 0:l.code)===0?alert("sukses"):alert(null==a?void 0:null===(n=a.data)||void 0===n?void 0:null===(t=n.status)||void 0===t?void 0:t.message_server)}catch(e){console.log("ini error",e)}},g=async()=>{window.location.href=c.Cf+"/delete-account"};return(0,t.jsxs)(n.A,{children:[m?(0,t.jsx)(x.A,{children:(0,t.jsx)(u.A,{active:m,typeOtp:"delete-profile",onChanged:F,otpFor:"email",nameModal:null==p?void 0:p.email})}):null,(0,t.jsx)("div",{className:"px-[34px] py-[27px] bg-[#212121]",children:(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex flex-row",children:[(0,t.jsx)(r(),{src:(null==p?void 0:p.photo_url)?null==p?void 0:p.photo_url:"".concat(c.S2,"/assets/icons/logo-loged-users.svg"),width:45,height:45,alt:"icon-users",className:"rounded-[50%]"}),(0,t.jsxs)("div",{className:"flex flex-col pl-[20px]",children:[(0,t.jsx)("span",{children:null==p?void 0:p.nickname}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"pr-[14px]",children:[(0,t.jsx)("span",{style:{fontFamily:"Open Sans",fontSize:"14px",fontWeight:400,lineHeight:"18px",textAlign:"left",color:"#8F8F8F"},children:"Full Name:\xa0"}),(0,t.jsx)("span",{children:null==p?void 0:p.display_name})]}),(0,t.jsx)("span",{style:{color:"#8F8F8F"},children:"|"}),(0,t.jsxs)("span",{className:"px-[14px]",children:[(0,t.jsx)("span",{style:{fontFamily:"Open Sans",fontSize:"14px",fontWeight:400,lineHeight:"18px",textAlign:"left",color:"#8F8F8F"},children:"Gender:\xa0"}),(0,t.jsx)("span",{children:(null==p?void 0:p.gender)?(e=null==p?void 0:p.gender)?e.charAt(0).toUpperCase()+e.slice(1):e:"-"})]}),(0,t.jsx)("span",{style:{color:"#8F8F8F"},children:"|"}),(0,t.jsxs)("span",{className:"pl-[14px]",children:[(0,t.jsx)("span",{style:{fontFamily:"Open Sans",fontSize:"14px",fontWeight:400,lineHeight:"18px",textAlign:"left",color:"#8F8F8F"},children:"Birthdate:\xa0"}),(0,t.jsx)("span",{children:(null==p?void 0:p.dob)?(s=(l=(null==p?void 0:p.dob).split("-"))[0],a=l[1],l[2]+"-"+a+"-"+s):"-"})]})]})]})]}),(0,t.jsx)("span",{className:"justify-center item-center text-center cursor-pointer",onClick:()=>
1(0,c.UZ)("/settings/change-profile"),children:"Edit"})]})}),(0,t.jsx)("div",{className:"px-[34px] py-[27px] mt-[28px] bg-[#212121]",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"py-[21px] border-b flex flex-row justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{style:{color:"#E9E9E9"},children:"Phone Number"}),(0,t.jsx)("span",{className:"ml-[14px]",children:null==p?void 0:p.phone_number})]}),(null==p?void 0:p.phone_number)?"-":(0,t.jsx)("span",{className:(0,i.A)("cursor-pointer"),onClick:()=>(0,c.UZ)("/settings/change-phone-number"),children:"Set"})]}),(0,t.jsxs)("div",{className:"py-[21px] border-b flex flex-row justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{style:{color:"#E9E9E9"},children:"Email"}),(0,t.jsx)("span",{className:"ml-[14px]",children:null==p?void 0:p.email})]}),(null==p?void 0:p.email)?"-":(0,t.jsx)("span",{className:(0,i.A)("cursor-pointer"),onClick:()=>(0,c.UZ)("/settings/change-email"),children:"Set"})]}),(0,t.jsxs)("div",{className:"py-[21px] border-b flex flex-row justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{style:{color:"#E9E9E9"},children:"Password"}),(0,t.jsx)("span",{className:"ml-[14px]",children:"**************"})]}),(0,t.jsx)("span",{className:(0,i.A)("cursor-pointer"),onClick:()=>
1(0,c.UZ)("/settings/change-password"),children:"Change"})]}),(0,t.jsxs)("div",{className:"py-[21px] flex flex-row justify-between cursor-pointer",children:[(0,t.jsx)("div",{children:(0,t.jsx)("span",{style:{color:"#E9E9E9"},children:"Delete Account"})}),(0,t.jsx)("span",{className:(0,i.A)("cursor-pointer"),onClick:g,children:"Delete"})]})]})})]})})},2604:function(e,l,s){"use strict";s.d(l,{P4:function(){return r},Tg:function(){return d},Y6:function(){return c},oK:function(){return i},wP:function(){return o},xq:function(){return a}});var t=s(8068),n=s(7119);let a=e=>(0,n.AT)({url:"".concat(t.ms),method:"POST",data:e,path:"/otp",apiVersion:"v3"}),r=e=>(0,n.AT)({url:"".concat(t.ms),method:"POST",data:e,path:"/verify-otp",apiVersion:"v3"}),i=e=>(0,n.AT)({url:"".concat(t.ms),method:"POST",data:e,path:"/change-password",apiVersion:"v3"}),c=e=>(0,n.AT)({url:"".concat(t.ms),method:"POST",data:e,path:"/verify",apiVersion:"v2"}),o=()=>(0,n.AT)({url:"".concat(t.ms),method:"GET",path:"/country_code"}),d=e=>(0,n.AT)({url:"".concat(t.f4),method:"POST",path:"/user/phone-email",headers:{apikey:t.is},data:e})},2242:function(e){e.exports={scrolled:"BodyContent_scrolled__sEwg0"}}}]);

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.