PageSourceSearch

https://pintarnya.com/_next/static/chunks/pages/cc/verification/change-phone-feca0ef291afa4cd.js

js pintarnya.com collected 2026-10-01 14:39:37 UTC 8,917 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="051a0c4b-c5fb-409b-876b-e26cb21e362e",t._sentryDebugIdIdentifier="sentry-dbid-051a0c4b-c5fb-409b-876b-e26cb21e362e")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4743,2564],{62773:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cc/verification/change-phone",function(){return n(81639)}])},94606:function(t,e,n){"use strict";n.d(e,{H:function(){return r}});let r=()=>void 0},70644:function(t,e,n){"use strict";let r,a,i;n.d(e,{t:function(){return f}});var l=n(67294),o=n(87824);let s=t=>{let e=("string"==typeof t?t:t.pathname)||"";if("object"==typeof t&&t.query&&"object"==typeof t.query){let r={...t.query};for(let t in r)if(e.includes("[".concat(t,"]"))){var n;e=e.replace("[".concat(t,"]"),"".concat(null!==(n=r[t])&&void 0!==n?n:"")),delete r[t]}else if(e.includes("[...".concat(t,"]"))){let n=r[t];Array.isArray(n)&&(e=e.replace("[...".concat(t,"]"),n.join("/")),delete r[t])}if(Object.keys(r).length){for(let t in e+="?",r){let n=r[t];Array.isArray(n)?n.forEach(n=>{e+="".concat(t,"=").concat(n,"&")}):null!=n&&(e+="".concat(t,"=").concat(n,"&"))}(e.endsWith("&")||e.endsWith("?"))&&(e=e.slice(0,-1))}}return e},u=(0,l.createContext)({options:void 0}),c=()=>{throw Error("[use-link-to] is not supported on the web. Something went wrong if you called this.")},d=()=>c;var h=n(94606),p=n(11163);function f(){let t=d(),e=(0,h.H)(),n=(0,p.useRouter)(),c=(0,l.useContext)(u);return(0,l.useMemo)(()=>({push:(e,r,a)=>{if("web"===o.Z.OS)null==n||n.push(e,r,a);else{let n=r||e;if("#"===n)return;let a=s(n);a&&t(a)}},replace:(l,u,d)=>{if("web"===o.Z.OS)null==n||n.replace(l,u,d);else{let n=u||l;if("#"===n)return;let o=s(n);if(o){var h,p;if((null==d?void 0:null===(h=d.experimental)||void 0===h?void 0:h.nativeBehavior)==="stack-replace"){if(null==c?void 0:c.options){let{options:t}=c,n=(null==t?void 0:t.getStateFromPath)?t.getStateFromPath(o,t.config):a(o,null==t?void 0:t.config);if(n){let a=i(n,null==t?void 0:t.config);if(void 0!==a){if("payload"in a&&a.payload&&"name"in a.payload&&a.payload.name){let{name:t,params:n}=a.payload;(null==d?void 0:null===(p=d.experimental)||void 0===p?void 0:p.isNestedNavigator)&&n&&"screen"in n&&n.screen?null==e||e.dispatch(r.replace(n.screen,n.params)):null==e||e.dispatch(r.replace(t,n))}else null==e||e.dispatch(a)}else null==e||e.reset(n)}}else console.warn('[solito] replace("'.concat(o,"\") faced an issue. You should still see your new screen, but it probably didn't replace the previous one. This may be due to a breaking change in React Navigation. \n  Please open an issue at https://github.com/nandorojo/solito and report how this happened. Thanks!")),t(o)}else t(o)}}},back:()=>{"web"===o.Z.OS?null==n||n.back():null==e||e.goBack()},parseNextPath:s}),[t,e])}},81639:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return P}});var r=n(85893),a=n(9008),i=n.n(a),l=n(67294),o=n(20315),s=n(45007),u=n(71571),c=n(29532),d=n(58616),h=n(32501),p=n(22937),f=n(93175),y=n(37829),m=n(60592),b=n(64414),v=n(90628),g=n(11650),k=n(9291),w=n(61509),j=n(61354);let x=k.Z.create({rootContainer:{flex:1,backgroundColor:w.$_.white,paddingTop:j.vG+16},buttonContainer:{padding:16,borderTopWidth:1,borderColor:w.$_.grey30}}),{useParam:W}=(0,u.X)();var N=()=>{let[t]=W("applyId"),e=(0,s.I0)(),n=(0,v.tv)(),{mobile:a}=(0,s.v9)(t=>{var e;return null!==(e=t.user.data)&&void 0!==e?e:{}}),[i,u]=(0,l.useState)(!1),[k,w]=(0,l.useState)(""),[j,N]=(0,l.useState)(null),P=async()=>{u(!0);let{completeNumber:r,validNumber:i}=await (0,g.K)(k);try{if(i){let i=await (0,y.OG)(a,r);"success"===i.status&&((0,m.PR)(),n.push({pathname:"/cc/verification",query:{applyId:t}}),e((0,f.sT)({title:"",message:"Berhasil ganti nomor baru",iconHidden:!0,success:!0})))}else N({valid:!0,message:"Nomor telepon tidak valid"})}catch(t){var l;N({valid:!0,message:(null==t?void 0:null===(l=t.error)||void 0===l?void 0:l.message)||""})}finally{u(!1)}};return(0,r.jsxs)(o.Z,{style:x.rootContainer,children:[(0,r.jsx)(c.YA,{backPress:n.back}),(0,r.jsxs)(o.Z,{style:{padding:16,flex:1},children:[(0,r.jsx)(p.Z,{variant:"heading-s",bold:!0,style:{marginBottom:16},children:"Ganti Nomor"}),(0,r.jsx)(p.Z,{style:{marginBottom:24},children:"Masukkan nomor WhatsApp baru untuk menerima kode OTP dan selesaikan misi kamu!"}),(0,r.jsx)(o.Z,{style:{marginBottom:24},children:(0,r.jsx)(h.Wn,{label:"No WhatsApp Lama",disabled:!0,value:(null==a?void 0:a.replace("+62",""))||"",setValue:b.ZT})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(h.Wn,{label:"Masukkan No WhatsApp Baru",value:k,setValue:t=>{w(t),N(null)},error:j})})]}),(0,r.jsx)(o.Z,{style:x.buttonContainer,children:(0,r.jsxs)(d.Z,{onPress:P,disabled:i||!k,children:["Lanjutkan de
1ngan nomor ini",i&&"..."]})})]})};function P(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i(),{children:(0,r.jsx)("title",{children:"Pintarnya - Cari Cuan Verification"})}),(0,r.jsx)(N,{})]})}},47607:function(t,e,n){"use strict";n.d(e,{_:function(){return i},y:function(){return l}});var r=n(71016),a=n(41398);async function i(t){let{method:e,url:n,data:r,signal:i}=t;try{return(0,a.iK)({method:e,url:n,data:r,signal:i})}catch(t){return null}}async function l(t){let{method:e,url:n,data:i,params:l,signal:o}=t,{auth:s}=r.h.getState();return(0,a.iK)({method:e,url:n,data:i,params:l,signal:o,headers:{Authorization:"Bearer ".concat(s.authToken||"")}})}},37829:function(t,e,n){"use strict";n.d(e,{OG:function(){return o},Of:function(){return i},P8:function(){return l}}),n(47607);var r=n(41398),a=n(68867);let i=async t=>{let e=await (0,r.iK)({method:"POST",url:a.b.endpoints.ccOTP.requestOTP,data:{phone:t}});return null==e?void 0:e.data},l=async t=>{let e=await (0,r.iK)({method:"POST",url:a.b.endpoints.ccOTP.verifyOTP,data:{otp:t}});return null==e?void 0:e.data},o=async(t,e)=>{let n=await (0,r.iK)({method:"PATCH",url:a.b.endpoints.ccOTP.changePhoneNumber,data:{old_phone:t,new_phone:e}});return null==n?void 0:n.data}},90628:function(t,e,n){"use strict";n.d(e,{FS:function(){return s},U9:function(){return c},tv:function(){return p}});var r=n(70531),a=n(26723),i=n(70644),l=n(50577);let o=t=>/^\/\/[a-zA-Z0-9.-]+(?::\d+)?(\/|$)/.test(t),s=t=>{if(!t||"string"!=typeof t)return!1;let e=t.trim();if(e.startsWith("mailto:")||e.startsWith("tel:"))return!1;if(e.startsWith("pintarnya://")||e.startsWith("pintarnyakerja://")||!e.includes("://")&&!o(e))return!0;try{let t=o(e)?"https:".concat(e):e,n=new a.Jx(t),r=n.hostname.toLowerCase();return"pintarnya.com"===r||r.endsWith(".pintarnya.com")||"localhost"===r||"127.0.0.1"===r||"pintarnya:"===n.protocol||"pintarnyakerja:"===n.protocol}catch(t){return!1}},u=t=>{if(!t||"string"!=typeof t)return"/";let e=t.trim();if(e.startsWith("pintarnya://")||e.startsWith("pintarnyakerja://"))e=e.replace(/^pintarnya(kerja)?:\/\//,"");else if(e.includes("://")||o(e))try{let t=o(e)?"https:".concat(e):e,n=new a.Jx(t);e=n.pathname+n.search+n.hash}catch(t){e=e.replace(/^[a-zA-Z]+:\/\/[^/]+/,"")}return e.startsWith("/kerja/")?e=e.slice(6):"/kerja"===e&&(e="/"),e.startsWith("/")?e:"/".concat(e)};function c(t){if(!t||"string"!=typeof t)return t;let e=t.trim();return e.startsWith("mailto:")||e.startsWith("tel:")?t:e.includes("://")||e.startsWith("//")?s(e)?u(e):t:u(e)}let d=t=>{let e=t.trim();return e.startsWith("mailto:")||e.startsWith("tel:")||!s(e)&&(e.includes("://")||e.startsWith("//"))},h=t=>d(t)?(r.Z.openURL(t.trim()).catch(()=>{}),null):c(t),p=()=>{let t=(0,i.t)();return{...t,push(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if("string"==typeof e){let n=h(e);if(null===n)return;return t.push(n,...r)}let i="string"==typeof e.pathname?h(e.pathname):e.pathname;if(null!==i)return t.push({...e,pathname:i},...r)},replace(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if("string"==typeof e){let n=h(e);if(null===n)return;return t.replace(n,...r)}let i="string"==typeof e.pathname?h(e.pathname):e.pathname;if(null!==i)return t.replace({...e,pathname:i},...r)},backOrHome:l.pK}}},11650:function(t,e,n){"use strict";n.d(e,{K:function(){return o}});var r=n(5360),a=n(5074),i=n(99527);let l=(t,e)=>{for(let n of e)if(t.startsWith(n.prefix))return!0;return!1},o=async t=>{try{let e=await (0,i.Nj)(),n=(0,r.h)(t,"ID"),o=l(n.nationalNumber,e.data),s=n&&n.isValid()&&!(0,a.d)(n.number,"ID")&&o;return{number:s?n.nationalNumber.toString():"",countryCode:s?n.countryCallingCode.toString():"",completeNumber:s?n.number.toString():"",validNumber:s}}catch(t){return{number:"",countryCode:"",completeNumber:"",validNumber:!1}}}}},function(t){t.O(0,[4144,4885,7596,3662,8764,1440,8660,5675,2729,4084,8975,4593,9873,2628,7987,4044,3859,1398,8128,9710,9161,5967,9532,2029,2888,9774,179],function(){return t(t.s=62773)}),_N_E=t.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.