1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{8951:function(e,s,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register/success",function(){return o(77286)}])},77286:function(e,s,o){"use strict";o.r(s),o.d(s,{default:function(){return j}});var n=o(36734),r=o(51776),c=o(15241),a=o(48196),t=o(86880),l=o(56562),d=o.n(l),i=o(9147),_=o(58018),p=o(87057),u=o(69819),h=o(97273),m=o(38698),w=o(75152),v=o(95889),x=o.n(v);let F=()=>{var e;let{t:s,lang:o}=(0,t.Z)(["register","common"]),{dispatch:l}=(0,r.useContext)(m.I),[v,F]=(0,r.useState)(!1),[j,g]=(0,r.useState)(""),[f,N]=(0,r.useState)(""),[y,b]=(0,r.useState)(!1),[E,k]=(0,r.useState)(!1),[S,C]=(0,r.useState)(!1),[R,A]=(0,r.useState)(!1),I=(0,r.useRef)(null),{data:O}=(0,c.QT)(h.Jp),U=(null==O?void 0:O.code)=="200"?(null!==(e=O.data)&&void 0!==e?e:[]).map(e=>({label:e.dialingCode,value:e.dialingCode.replace("+","")})):[],W=U.some(e=>"62"===e.value),Z=U.length>0&&!W?[{label:"+62",value:"62"},...U]:U;(0,r.useEffect)(()=>{if(Z.length>0){let e=Z.find(e=>"62"===e.value);g(e?e.value:Z[0].value)}},[O]),(0,r.useEffect)(()=>{let e=a.Z.get(p.r);e||(location.href="id"===o?"/register":"/".concat(o,"/register")),(0,u.S3)({activityId:17}).then(e=>{if("0"==e.code){var s,o;(null===(s=e.data)||void 0===s?void 0:null===(o=s.lotteryActivityInfo)||void 0===o?void 0:o.status)==1?F(!0):F(!1)}})},[]),(0,r.useEffect)(()=>{let e=e=>{I.current&&!I.current.contains(e.target)&&A(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,r.useEffect)(()=>(l({type:"layout",payload:{layoutFooter:!1}}),()=>{l({type:"layout",payload:{layoutFooter:!0}})}),[l]);let q=async()=>{if(!a.Z.get(p.r))return;let e=f.trim();if(!e){C(!0);return}b(!0);try{let o=await (0,h.oc)({countryCode:j,contactNumber:e});(null==o?void 0:o.code)=="0"?(k(!0),(0,_.A)({type:"success",msg:s("register:success.phone_save_success")})):(0,_.A)({type:"error",msg:s("register:success.phone_save_failed")})}catch(n){(0,_.A)({type:"error",msg:s("register:success.phone_save_failed")})}finally{b(!1)}};return(0,n.jsx)("div",{className:x().component,children:(0,n.jsxs)("div",{className:x().contantWrap,children:[(0,n.jsxs)("div",{className:x().wrap,children:[(0,n.jsx)("div",{className:x().pic}),(0,n.jsxs)("div",{className:x().tips,children:[(0,n.jsx)("h3",{children:s("register:success.title")}),(0,n.jsx)("p",{children:s("register:success.subtitle")})]}),v&&(0,n.jsxs)("div",{className:x().reward,children:[(0,n.jsx)("div",{className:x().reward_text,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:s("register:success.ad_kyc")}})}),(0,n.jsx)("div",{className:x().reward_bag})]}),(0,n.jsxs)("div",{className:x().phoneForm,children:[(0,n.jsx)("p",{className:x().phoneForm_label,children:s("register:success.phone_title")}),(0,n.jsxs)("div",{className:"".concat(x().phoneForm_inputRow).concat(S?" ".concat(x().phoneForm_inputRowError):""),children:[(0,n.jsxs)("div",{className:x().phoneForm_codeWrap,ref:I,children:[(0,n.jsxs)("div",{className:x().phoneForm_codeSelector,onClick:()=>A(e=>!e),children:[(0,n.jsxs)("span",{children:["+",j]}),(0,n.jsx)("i",{className:"iconfont icon-triangle-down ".concat(x().phoneForm_arrow).concat(R?" ".concat(x().phoneForm_arrowOpen):"")})]}),R&&(0,n.jsx)("ul",{className:x().phoneForm_dropdown,children:Z.map(e=>(0,n.jsx)("li",{className:j===e.value?x().phoneForm_dropdownActive:"",onClick(){g(e.value),A(!1)},children:e.label},e.value))})]}),(0,n.jsx)("div",{className:x().phoneForm_divider}),(0,n.jsx)("input",{className:x().phoneForm_input,type:"tel",inputMode:"numeric",placeholder:s("register:success.phone_placeholder"),value:f,onChange(e){N(e.target.value.replace(/\D/g,"")),C(!1)}})]}),(0,n.jsx)("p",{className:x().phoneForm_hint,children:s("register:success.phone_hint")}),(0,n.jsx)("button",{className:x().phoneForm_submit,disabled:y||E,onClick:q,children:y?"...":s("register:success.phone_submit")})]}),(0,n.jsxs)("div",{className:x().download,children:[(0,n.jsx)(d(),{href:"https://apps.apple.com/id/app/bittime/id1641059360",target:"_blank",rel:"noopener noreferrer",onClick(){(0,w.Z)("click_download_ios_app")},children:(0,n.jsxs)("div",{className:x().download_channel,children:[(0,n.jsx)("i",{className:"iconfont icon-APPstore"}),(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{children:s("common:download.downurls_text")}),(0,n.jsx)("span",{children:s("common:download.downurls_ios")})]})]})}),(0,n.jsx)(d(),{href:"https://play.google.com/store/apps/details?id=com.bittime.currency.exchange",target:"_blank",rel:"noopener noreferrer",onClick(){(0,w.Z)("click_download_android_app")},children:(0,n.jsxs)("div",{className:x().download_channel,children:[(0,n.jsx)("i",{className:"iconfont icon-google-play"}),(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{children:s("common:download.downurls_text")}),(0,n.jsx)("span",{children:s("common:download.downurls_adr")})]})]})}),(0,n.jsxs)("div",{className:x().download_qrcode,children:[(0,n.jsx)("span",{children:s("common:download.qrcode_scan")}),(0,n.jsx)("span",{children:s("common:download.qrcode_text")})]})]})]}),(0,n.jsx)(i.Z,{})]})})};var j=F},95889:function(e){e.exports={component:"success_component__dTyVR",contantWrap:"success_contantWrap__1nJyh",wrap:"success_wrap__5CJ_P",pic:"success_pic__ch9wJ",tips:"success_tips__Ybzip",reward:"success_reward___7s15",reward_text:"success_reward_text__O_LNw",reward_bag:"success_reward_bag__x_3w9",phoneForm:"success_phoneForm__6f4Mg",phoneForm_label:"success_phoneForm_label__EEl71",phoneForm_inputRow:"success_phoneForm_inputRow__E1D8M",phoneForm_inputRowError:"success_phoneForm_inputRowError__4yiU_",phoneForm_codeWrap:"success_phoneForm_codeWrap__uNOFB",phoneForm_codeSelector:"success_phoneForm_codeSelector__FjypF",phoneForm_arrow:"success_phoneForm_arrow__SaUJI",phoneForm_arrowOpen:"success_phoneForm_arrowOpen__SWuvU",phoneForm_dropdown:"success_phoneForm_dropdown__Rxx8F",phoneForm_dropdownActive:"success_phoneForm_dropdownActive___U2sI",phoneForm_divider:"success_phoneForm_divider__vU1U4",phoneForm_input:"success_phoneForm_input__rt9i3",phoneForm_hint:"success_phoneForm_hint__IvewQ",phoneForm_submit:"success_phoneForm_submit__vGrqC",download:"success_download__6srnZ",download_channel:"success_download_channel__vrG46",download_qrcode:"success_download_qrcode__6p3UG"}}},function(e){e.O(0,[5387,9774,2888,179],function(){return e(e.s=8951)}),_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.