PageSourceSearch

https://www.pionex.us/static/js3/kyc_v2.e70f3e21.js

js pionex.us collected 2026-10-03 21:06:45 UTC 64,625 bytes, 3 lines download raw bytes

1/*! For license information please see kyc_v2.e70f3e21.js.LICENSE.txt */
2"use strict";(self.webpackChunkpionex_web=self.webpackChunkpionex_web||[]).push([[4934],{12670:function(e,t,r){r.d(t,{Z:function(){return y}});r(67294);var n=r(93967),o=r.n(n),i="blockBox___yXWlW",a="blockTitle___OzJhy",c=r(85893);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=["className","title","children"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(e){var t=e.className,r=e.title,n=e.children,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,s);return(0,c.jsxs)("div",f(f({className:o()(i,t)},l),{},{children:[r&&(0,c.jsx)("h1",{className:a,children:r}),n]}))}},42210:function(e,t,r){r.r(t),r.d(t,{default:function(){return pr}});var n=r(89250),o=r(13144),i=r(34553),a=r(67294),c={container:"container___v6nrW",title:"title___UIwKr",levelBlock:"levelBlock___SmBeE",levelBlockTop:"levelBlockTop___n1lKD",level2:"level2____hRbo",levelInfo:"levelInfo___XtpPP",levelCover:"levelCover___Ir4C4",levelInfoTip:"levelInfoTip___c0Tcn",levelInfoText:"levelInfoText___DphJn",levelBtn:"levelBtn___ORMJo",levelBlockHelp:"levelBlockHelp___EltvP",error:"error___lkdLM",verCenter:"verCenter___nfmUK",section:"section___e1NiP",sectionTitle:"sectionTitle___TY0b5",limitsTable:"limitsTable___yG3_E",header:"header___saJrR",row:"row___Kqt3m",label:"label___mBAW3",value:"value___InNBU",ssnRow:"ssnRow___VgZT6",icon:"icon___W0r3a",iconSuccess:"iconSuccess___loTez",iconClose:"iconClose___npAlP",tipIcon:"tipIcon___DvdUC"},l=r(93967),s=r.n(l),u=r(97934),f=r(31182),d=r(13421),y=r(85893);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var v=["children"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){var t=e.children,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,v),n=(0,u.ZP)().isMobile;return(0,y.jsx)(d.Kp,m(m({requireLogin:!0,whiteBg:n,className:c.kycContainer},r),{},{children:t}))},g=r(12670),j=r(32825),x=r(41949),w=r(69686);function k(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;
2!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return N(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var P=function(){var e=(0,o.MG)(),t=e.$st,r=e.$stn,n=O((0,f.JF)(),1)[0],l=(0,a.useMemo)((function(){var e=O(k(n.values()).sort((function(e,t){return e.kyc_level-t.kyc_level})).map((function(e){return e.quota})),3),t=e[0],r=void 0===t?0:t,o=e[1],i=void 0===o?2e3:o,a=e[2];return{lv0:r,lv1:i,lv2:void 0===a?1e6:a}}),[n]);return(0,y.jsxs)("div",{className:c.section,children:[(0,y.jsx)("div",{className:c.sectionTitle,children:t("kyc_lv_limits_title")}),(0,y.jsxs)("div",{className:c.limitsTable,children:[(0,y.jsxs)("div",{className:c.header,children:[(0,y.jsx)("div",{children:t("kyc_l0_title")}),(0,y.jsx)("div",{children:t("kyc_success")})]}),(0,y.jsxs)("div",{className:c.row,children:[(0,y.jsx)("div",{className:c.label,children:t("kyc_lv_limit_trade")}),(0,y.jsx)("div",{className:c.value,children:(0,y.jsx)(i.Kr,{icon:"icon_input_delete",className:c.iconClose})}),(0,y.jsx)("div",{className:c.value,children:(0,y.jsx)(i.Kr,{icon:"icon_succeed",className:c.iconSuccess})})]}),(0,y.jsxs)("div",{className:c.row,children:[(0,y.jsx)("div",{className:c.label,children:t("kyc_lv_limit_cdep")}),(0,y.jsx)("div",{className:c.value,children:(0,y.jsx)(i.Kr,{icon:"icon_input_delete",className:c.iconClose})}),(0,y.jsx)("div",{className:c.value,children:(0,y.jsx)(i.Kr,{icon:"icon_succeed",className:c.iconSuccess})})]}),(0,y.jsxs)("div",{className:c.row,children:[(0,y.jsxs)("div",{className:c.label,children:[t("kyc_lv_limit_daily_deps"),"(USD)"]}),(0,y.jsx)("div",{className:c.value,children:0}),(0,y.jsx)("div",{className:c.value,children:r(Number(l.lv2),0)})]})]})]})};function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var D=function(e){var t=e.level,r=(0,o.MG)().$st;return(0,y.jsx)(y.Fragment,{children:function(){switch(t){case 1:return r("kyc_l0_title");case 2:return r("kyc_success");case-1:case 0:return r("kyc_l0_title");default:return"UNKNOWN"}}()})};function Z(){var e,t=(0,o.MG)(),r=t.$st,l=t.intl.locale,d=(0,u.ZP)().isMobile,p=(0,n.s0)(),v=(0,f.eS)(),h=A((0,f.ZP)(),3),m=h[0],_=m.currentLevel,k=m.originData,O=m.forwardLevelMap,S=h[1],N=h[2].update;(0,a.useLayoutEffect)((function(){N()}),[N]);var E=null==k||null==(e=k.userInfo)?void 0:e.ssnTin,T=function(e){var t=(0,o.MG)().$st;return(0,a.useMemo)((function(){var r="",n="iocn_label_defeated",o="#ffbc08";if(e)switch(e){case f.lE.VERIFIED:r=t("user_kyc_verified")||"Verified",n="icon_succeed",o="#2ebd85";break;case f.lE.FAILED:r=t("kyc_certify_failed")||"Failed",n="icon_wrong1",o="#f6465d";break;case f.lE.UNKNOWN:case f.lE.DATA_NOT_FOUND:o="#9ea6b8",r=t("user_kyc_unknown")||"Unknown";break;case f.lE.UNVERIFIED:case f.lE.PENDING:default:r=t("user_kyc_unverified")||"Unverified"}else r=t("user_kyc_unverified")||"Unverified";return{statusText:r,iconName:n,iconColor:o,StatusIcon:function(e){var t=e.className,r=e.style;return(0,y.jsx)(i.Kr,{icon:n,className:t,style:L({color:o},r)})}}}),[e,t])}(null==k?void 0:k.ssnStatus),I=T.StatusIcon,C=_===f.u$.lv2||_===f.u$.oldLv2,Z=C&&""===E,G=(null!=_?_:0)<f.u$.lv2,M=C&&!Z,R=O.get(f.u$.lv2)||O.get(f.u$.oldLv2),U=(0,a.useMemo)((function(){if(S)return null;if(Z)return(0,y.jsx)("div",{className:c.levelBtn,children:(0,y.jsx)(w.Z,{type:"primary",size:d?"small":void 0,onClick:function(){return p("/account/kyc/ssn")},children:r("kyc_go_do")})});if(M||(null==R?void 0:R.status)===f.ce.failed||(null==R?void 0:R.status)===f.ce.reviewing)return null;if(null!=R&&R.status&&[f.ce.manualReviewing,f.ce.IDVPassed].includes(R.status))return null;var e=G?{text:r("kyc_go_do"),href:{pathname:"/account/kyc/level2",state:{from:"kycInfo"}}}:null;return(0,y.jsx)("div",{className:c.levelBtn,children:!!e&&(0,y.jsx)(w.Z,{type:"primary",size:d?"small":void 0,onClick:function(){e&&(p(e.href),x.Z.report(j.it.KYC_EVENT_LV1,{from_web:"kycinfo",PLATFORM:"pionex.us.v2"}))},children:e.text})})}),[S,Z,M,null==R?void 0:R.status,G,r,d,p]),F=(0,a.useMemo)((function(){if(!R)return null;var e=R.status===f.ce.pending,t=[f.ce.reviewing,f.ce.manualReviewing,f.ce.IDVPassed].includes(R.status),n=R.status===f.ce.failed,o=R.status===f.ce.halfFailed,a=n||o;return S||!(t||e||a)?null:(0,y.jsxs)("div",{className:s()(c.levelBlockHelp,a&&c.error),children:[(0,y.jsx)(i.Kr,{icon:t||e?"icon_time":"icon_ErrorLine"}),(0,y.jsx)("div",{children:e?'Please click "Verify" to complete the KYC.':t?r("kyc_lv_state_pending",{lv:"",day:"1-3"}):a&&r("kyc_lv_ver_failed",{lv:(0,y.jsx)(D,{level:R.level})})}),a&&(0,y.jsx)(i.ZP,{primary:!0,onClick:function(){return v({$st:r,locale:l,forwardLevelInfo:R})},children:r("kyc_lv_ver_failed_btn")})]})}),[R,S,r,v,l]);return(0,y.jsx)(b,{loading:S,children:(0,y.jsxs)(g.Z,{className:c.container,title:r("kyc_basic_title"),children:[(0,y.jsxs)("div",{className:c.levelBlock,children:[(0,y.jsxs)("div",{className:s()(c.levelBlockTop,c["level".concat(Z?f.u$.lv0:_)]),children:[(0,y.jsx)("div",{className:s()(c.levelCover,c["level".concat(Z?f.u$.lv0:_)])}),(0,y.jsxs)("div",{className:c.levelInfo,children:[(0,y.jsx)("div",{className:c.levelInfoTip,children:r("kyc_lv_tip")}),(0,y.jsx)("div",{className:c.levelInfoText,children:(0,y.jsx)(D,{level:Z?f.u$.lv0:_})})]}),U]}),F]}),(0,y.jsx)("br",{}),(0,y.jsx)(P,{}),E&&(0,y.jsxs)("div",{className:c.section,children:[(0,y.jsx)("div",{className:c.sectionTitle,children:r("kyc_personal_information")}),(0,y.jsxs)("div",{className:c.ssnRow,children:[(0,y.jsxs)("div",{className:c.label,children:[(0,y.jsx)(i.Kr,{icon:"icon_nav_About_privacy",className:c.icon}),r("taxes_ssn_tin")]}),(0,y.jsxs)("div",{className:c.value,children:[E,(0,y.jsx)(I,{className:c.checkIcon})]})]})]})]})})}var G=r(55709),M=r(80474),R=r(19145),U=r(91693),F=r(77722),$=r(79239),B=r(87863),z=r(24842),K=r(70631),Y="loading___pIFCz",V="title___UuYhE",H="selectContainer___O9bAT",W="description___q0GD0",q="selectText___zobmL",J="groupTitle___l3JUu",Q="radioCard___nmFZ2",X="radioCardActive___vSu58",ee="radioIcon___rRuhJ",te="radioIconActive___N1Nq3",re="radioText___Wy3fy",ne="nextButton___y6SPQ",oe=r(16382),ie=["country","province","documentType"];function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function ce(){ce=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),c=new E(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",y="executing",p="completed",v={};function h(){}function m(){}function _(){}var b={};s(b,a,(function(){return this}));
vendor: 4,117 bytes, line 2
2var g=Object.getPrototypeOf,j=g&&g(g(T([])));j&&j!==r&&n.call(j,a)&&(b=j);var x=_.prototype=h.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==ae(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?p:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=p,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(ae(t)+" is not iterable")}return m.prototype=_,o(x,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:m,configurable:!0}),m.displayName=s(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(k.prototype),s(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),s(x,l,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;
2--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function le(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function se(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function ue(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){se(i,n,o,a,c,"next",e)}function c(e){se(i,n,o,a,c,"throw",e)}a(void 0)}))}}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?de(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ae(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pe="DRIVER_LICENSE",ve="STATE_ID",he="PASSPORT",me=ye(ye(ye({},ve,"ID_CARD"),he,"PASSPORT"),pe,"DRIVERS");function _e(e){var t=e.onCountrySelected,r=e.onDocTypeSelected,n=(0,o.MG)().$st,i=(0,B.ZP)().userId,c=fe((0,f.ZP)(),3)[2].update,l=(0,$.iu)(),u=l.loading,d=l.ipInfo,p=fe((0,G.Z)(),1)[0],v=fe((0,$.OT)(),2),h=v[0],m=v[1],_=m.setTrue,b=m.setFalse,j=(0,$.jG)(function(){var e=ue(ce().mark((function e(o){var a,l,s,u,f;return ce().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=o.country,l=o.province,s=o.documentType,u=le(o,ie),!h){e.next=3;break}return e.abrupt("return");case 3:f=function(){var e=ue(ce().mark((function e(){var o;return ce().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(),o=me[s]||s,null==t||t(a),null==r||r(o),e.prev=4,e.next=7,z.ObservableUtils.postV2("".concat(K.ZP.accountServiceHost,"/user/save_kyc_info_v2"),{userId:i,site:"USA",country:a,province:l,documentType:o,profile:u},void 0,!0).toPromise();case 7:return e.next=9,c();case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(4),-1e3===(null==e.t0?void 0:e.t0.code)?M.ZP.error(n("verification_code_error")):-1002===(null==e.t0?void 0:e.t0.code)?null!=e.t0&&e.t0.message.includes("KYC_PHONE_USED_ERROR")?M.ZP.error(n("kyc_lv1_duplicated")):null!=e.t0&&e.t0.message.includes("KYC_FORBIDDEN_REGION_ERROR")?M.ZP.error("Pionex.US is not available in your region"):null!=e.t0&&e.t0.message.includes("KYC_NOT_SUPPORT_US_REGION_ERROR")?M.ZP.error("We are temporarily unable to provide services for the corresponding region."):M.ZP.error((null==e.t0?void 0:e.t0.message)||"An unknown error occurred, please contact our manual service."):null!=e.t0&&e.t0.message&&M.ZP.error(e.t0.message),console.error(e.t0);case 15:b();case 16:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(){return e.apply(this,arguments)}}(),f();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),x=(0,a.useMemo)((function(){return[{name:n("us_name"),value:"USA",ssnTinLabel:n("kyc_jumio_s1_ssn_tin"),ssnTinDesc:n("kyc_jumio_s1_ssn_tip"),docTypes:[{value:pe,name:n("kyc_identity_verification_option_driver_license_only"),group:n("kyc_selector_section_us_citizen")},{value:ve,name:n("kyc_identity_verification_option_id_card"),group:n("kyc_selector_section_us_citizen")},{value:he,name:n("kyc_identity_verification_option_passport"),group:n("kyc_selector_section_resident")}]}
2,{name:n("us_virgin_islands_name"),value:"VIR",ssnTinLabel:n("kyc_jumio_s1_ssn_tin"),ssnTinDesc:n("kyc_jumio_s1_ssn_tip"),docTypes:[{value:pe,name:n("kyc_identity_verification_option_driver_license_only"),group:n("kyc_selector_section_us_citizen")},{value:ve,name:n("kyc_identity_verification_option_id_card"),group:n("kyc_selector_section_us_citizen")},{value:he,name:n("kyc_identity_verification_option_passport"),group:n("kyc_selector_section_resident")}]}]}),[n]),k=fe((0,a.useState)(),2),O=k[0],S=k[1];if((0,a.useEffect)((function(){if("number"===typeof O){var e=p.getFieldValue("documentType");!x[O].docTypes.some((function(t){return t.value===e}))&&p.setFieldsValue({documentType:x[O].docTypes[0].value})}}),[O,p,x]),(0,a.useEffect)((function(){if(d){var e=x.findIndex((function(e){return e.value===(null==d?void 0:d.region_code)}));S(e>0?e:0)}}),[d,null==d?void 0:d.region_code,x]),u||"undefined"===typeof O)return(0,y.jsx)(R.Z,{className:Y});var N=x[O],P=N.docTypes.reduce((function(e,t){var r=t.group||n("common_other");return e[r]||(e[r]=[]),e[r].push(t),e}),{}),E=[n("kyc_selector_section_us_citizen"),n("kyc_selector_section_resident"),n("common_other")];return(0,y.jsxs)(g.Z,{style:{maxWidth:700,margin:"20px auto",padding:"40px"},children:[(0,y.jsx)("div",{className:V,children:n("google_authenticator_verify_title")}),(0,y.jsxs)(U.ZP,{layout:"vertical",form:p,onFinish:j,children:[(0,y.jsx)("div",{className:W,style:{marginTop:0},children:n("kyc_Country_Region")}),(0,y.jsxs)("div",{className:H,children:[(0,y.jsx)("span",{className:q,children:N.name}),(0,y.jsx)(oe.Z,{size:15,style:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%) rotate(90deg)"}}),(0,y.jsx)(U.ZP.Item,{name:"country",initialValue:N.value,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",margin:0},children:(0,y.jsx)(F.Z,{bordered:!1,value:N.value,onChange:function(e){S(x.findIndex((function(t){return t.value===e})))},style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,opacity:0},children:x.map((function(e){return(0,y.jsx)(F.Z.Option,{value:e.value,children:e.name},e.value)}))})})]}),(0,y.jsx)("div",{className:W,children:n("kyc_webot_unavailable_ny")}),(0,y.jsx)(U.ZP.Item,{name:"documentType",rules:[{required:!0}],initialValue:N.docTypes[0].value,style:{marginBottom:0},children:(0,y.jsx)(U.ZP.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.documentType!==t.documentType},children:function(e){var t=(0,e.getFieldValue)("documentType");return(0,y.jsx)("div",{children:Object.keys(P).sort((function(e,t){return E.indexOf(e)-E.indexOf(t)})).map((function(e){return(0,y.jsxs)("div",{children:[e!==n("common_other")&&(0,y.jsx)("div",{className:J,children:e}),P[e].map((function(e){return(0,y.jsxs)("div",{className:s()(Q,ye({},X,t===e.value)),onClick:function(){return p.setFieldsValue({documentType:e.value})},children:[(0,y.jsx)("div",{className:s()(ee,ye({},te,t===e.value))}),(0,y.jsx)("span",{className:re,children:e.name})]},e.value)}))]},e)}))})}})}),(0,y.jsx)(U.ZP.Item,{className:"mt-[24px]",children:(0,y.jsx)(w.Z,{className:ne,type:"primary",htmlType:"submit",size:"large",loading:h,block:!0,children:n("common_next")})})]})]})}var be=r(36348),ge=r.n(be),je=r(40800),xe="container___Y_qaa",we="content___FYwM4",ke="title___UHnVe",Oe="des___QfKzN",Se="item___zFkoQ",Ne="label___cCuV8",Pe="arrow___K20Iq",Ee="bot___IQME_";function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ie(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ie(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Te(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ze=function(e){var t=e.items,n=e.title,o=e.des;return(0,y.jsxs)("div",{className:xe,children:[(0,y.jsxs)("div",{className:we,children:[(0,y.jsx)("div",{className:ke,children:n}),!!o&&(0,y.jsx)("div",{className:Oe,children:o}),t.map((function(e){var t=e.icon,r=e.iconNode,n=e.label,o=e.buttonProps;return(0,y.jsxs)("div",{className:Se,children:[t&&(0,y.jsx)(i.Kr,{icon:t}),r,(0,y.jsx)("span",{className:Ne,children:n}),(0,y.jsx)(w.Z,Ce({style:{minWidth:95}},o))]})})),(0,y.jsx)("div",{className:Pe})]}),(0,y.jsx)("img",{className:Ee,src:r(60870)})]})};var Ge=r(72207),Me=r(5011);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ue(){Ue=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),c=new E(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",y="executing",p="completed",v={};function h(){}function m(){}function _(){}var b={};s(b,a,(function(){return this}));var g=Object.getPrototypeOf,j=g&&g(g(T([])));j&&j!==r&&n.call(j,a)&&(b=j);var x=_.prototype=h.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Re(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?p:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=p,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 4,858 bytes, line 2
2(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Re(t)+" is not iterable")}return m.prototype=_,o(x,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:m,configurable:!0}),m.displayName=s(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(k.prototype),s(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),s(x,l,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Fe(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function $e(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Fe(i,n,o,a,c,"next",e)}function c(e){Fe(i,n,o,a,c,"throw",e)}a(void 0)}))}}function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;
2!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ze(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ze(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ke(e){var t,r,i=e.country,c=e.documentType,l=(0,n.s0)(),s=(0,u.ZP)(),d=s.isMobile,p=s.isTablet,v=Be((0,a.useState)(!1),2),h=v[0],m=v[1],_=Be((0,a.useState)(),2),g=_[0],x=_[1],w=(0,n.UO)().action,k=(0,o.MG)().intl,O=k.locale,S=k.messages,N=Be((0,f.ZP)(),3),P=N[0],E=P.currentLevel,T=P.location,L=P.forwardLevelMap,I=P.originData,A=N[1],C=N[2],D=C.initialized,Z=C.update,G=L.get(f.u$.lv2)||L.get(f.u$.oldLv2);(0,a.useLayoutEffect)((function(){Z()}),[Z]);var M=(0,$.jG)($e(Ue().mark((function e(){var t,r;return Ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z.ObservableUtils.getV2("".concat(K.ZP.accountServiceHost,"/user/get_sumsub_token_v2"),{kyc_region:null==T?void 0:T.region},{},!0).toPromise();case 2:return t=e.sent,r=t.token,x(r),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))));(0,a.useEffect)((function(){D&&!A&&null!==E&&(w?M():E===f.u$.lv2||E===f.u$.oldLv2||(null==G?void 0:G.status)===f.ce.failed?l("/account/kyc"):M())}),[D,M,A,E,null==G?void 0:G.status,w,l]);var R=i||(null==I||null==(t=I.userInfo)?void 0:t.country)||(null==T?void 0:T.region),U=c||(null==I||null==(r=I.userInfo)||null==(r=r.docInfo)||null==(r=r[0])?void 0:r.docType),F=(0,a.useMemo)((function(){var e=O;switch(O){case je.Md.zhCN:e="zh";break;case je.Md.enUS:e="en";break;case je.Md.zhTW:e="zh-tw"}var t=p?60:d?20:120,r="PASSPORT"===U,n={lang:e,country:r?void 0:R,i18n:S,uiConf:{customCssStr:"\n                .sumsub-logo {display: none;}\n                .iframe2 {margin: 0;}\n                .iframe2 .content {box-shadow: none;padding: 50px ".concat(t,"px;margin:0 auto;border-radius: 16px;}\n                .iframe2 .desktop + .content {padding: 20px ").concat(t,"px;}\n                ")},autoSelectDocumentDefinitions:!0};return!r&&U&&n.country&&(n.documentDefinitions={IDENTITY:{idDocType:U,country:n.country}}),n}),[d,p,O,S,R,U]),B=function(){var e=(0,o.MG)().$st,t=Be(function(){var e=Le((0,a.useState)(),2),t=e[0],r=e[1];return[t?(0,y.jsx)(Ze,Ce({},t)):null,r]}(),2),r=t[0],i=t[1],c=(0,n.s0)(),l=(0,a.useMemo)((function(){return{title:e("kyc_res_guide_title"),items:[{icon:"icon_nav_mine_deposit",label:e("kyc_res_guide_buy_crypto"),buttonProps:{children:e("kyc_res_guide_buy_crypto_btn"),type:"primary",onClick:function(){c(Ge.c.BUY,{state:{from:j.LE.kyc}})}}}]}}),[e,c]);return[r,(0,$.jG)((function(){i(l)}))]}(),Y=Be(B,2),V=Y[0],H=Y[1],W=(0,Me.G6)(),q=(0,$.jG)((function(e,t){switch(e){case"idCheck.onReady":m(!0);break;case"idCheck.onApplicantResubmitted":case"idCheck.onApplicantSubmitted":W?l("/account/kyc/ssn"):H();break;case"idCheck.applicantStatus":case"idCheck.onApplicantStatusChanged":var r,n=t;"completed"===(null==n?void 0:n.reviewStatus)&&"GREEN"===(null==(r=n.reviewResult)?void 0:r.reviewAnswer)&&(W?l("/account/kyc/ssn"):H())}}));return(0,y.jsxs)(b,{loading:A||!h||!g,children:[(0,y.jsx)("script",{src:"https://static.sumsub.com/idensic/static/sns-websdk-builder.js"}),(0,y.jsx)("div",{style:{paddingTop:12},children:g&&(0,y.jsx)(ge(),{accessToken:g,expirationHandler:M,config:F,onMessage:q,onError:Ye})}),V]})}var Ye=function(e){M.ZP.error("[".concat(e.code,"]: ").concat(e.error)),console.error("[SUMSUB]Error: ",e)};var Ve=r(29140),He=r(79361),We=r.n(He),qe=r(46950),Je=r(88497),Qe=r(41167),Xe=r(822),et=r(99202),tt=r(88397),rt=r(77),nt="overlay___guCiZ",ot="pcModal___GIp7n",it="
2closeBtn___gFOz0",at="title___YeRK1",ct="subtitle___mRj21",lt="qrWrapper___ptjee",st="qrBorder___bG_qQ",ut="continueBtn___Tl3Jj",ft="arrow___kmPAe",dt="bottomSheet___QYCHF",yt="handle___Q0D_X",pt="h5Title___Lqhaq",vt="downloadBtns___zTD7n",ht="downloadBtn___izbR2",mt="btnText___aKpv4",_t="btnLabel___fioa5",bt="btnName___ahEWU",gt="primaryBtn___mSehv",jt="secondaryBtn___WGysD",xt="h5ContinueBtn___l3pvm";function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=wt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nt(e){var t,r=e.visible,n=e.onClose,i=(0,u.ZP)(),c=i.isDeviceMobile,l=i.isDeviceAndroid,s=i.isDeviceIPhone,f=(0,o.MG)(),d=f.$st,p=f.intl.locale,v=(0,Xe.Z)().name===et.Ix.dark,h=(0,$.iu)().ipInfo,m=(0,rt.b5)(),_=null==m?void 0:m.downloadApp,b=null!=(t=null==_?void 0:_.allowedRegions)?t:[],g=!1!==(null==_?void 0:_.enabled)&&"US"===(null==h?void 0:h.country_code)&&b.includes(null==h?void 0:h.region_code),j=r&&g;return(0,a.useEffect)((function(){j&&(0,tt.Hj)("kyc_download_app_modal_show")}),[j]),j?c?(0,y.jsx)(Et,{isAndroid:l,isIPhone:s,locale:p,onClose:n,$st:d,isDark:v}):(0,y.jsx)(Pt,{locale:p,onClose:n,$st:d,isDark:v}):null}function Pt(e){var t=e.locale,n=e.onClose,o=e.$st,i=e.isDark?{bgColor:"#282c33",fgColor:"#ffffff"}:{bgColor:"#ffffff",fgColor:"#000000"};return(0,y.jsx)("div",{className:nt,onClick:n,children:(0,y.jsxs)("div",{className:ot,onClick:function(e){return e.stopPropagation()},children:[(0,y.jsx)("button",{className:it,onClick:n,children:"\u2715"}),(0,y.jsx)("div",{className:at,children:o("kyc_download_app_title")}),(0,y.jsx)("div",{className:ct,children:o("kyc_download_app_scan_desc")}),(0,y.jsx)("div",{className:lt,children:(0,y.jsx)("div",{className:st,children:(0,y.jsx)(We(),Ot(Ot({},i),{},{value:(0,qe.G4)(t),size:180,level:"H",imageSettings:{src:r(43965),height:40,width:40,excavate:!0}}))})}),(0,y.jsxs)("button",{className:ut,onClick:n,children:[(0,y.jsx)("span",{children:o("kyc_download_app_continue_browser")}),(0,y.jsx)("span",{className:ft,children:">"})]})]})})}function Et(e){var t=e.isAndroid,n=e.isIPhone,o=(e.locale,e.onClose),i=e.$st,a=e.isDark,c=Je.JI.ios.appStore;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:nt,onClick:o}),(0,y.jsxs)("div",{className:dt,children:[(0,y.jsx)("div",{className:yt}),(0,y.jsx)("div",{className:pt,children:i("kyc_download_app_title")}),(0,y.jsxs)("div",{className:vt,children:[(t||!n)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("button",{className:"".concat(ht," ").concat(gt),onClick:function(){(0,tt.Hj)("kyc_download_app_modal_click",{source:"google_play"}),(0,Qe.UU)(Je.JI.android.gp)},children:[(0,y.jsx)("img",{src:r(39191),alt:""}),(0,y.jsxs)("div",{className:mt,children:[(0,y.jsx)("span",{className:_t,children:i("kyc_download_from")}),(0,y.jsx)("span",{className:bt,children:"Google Play"})]})]}),(0,y.jsxs)("button",{className:"".concat(ht," ").concat(jt),onClick:function(){(0,tt.Hj)("kyc_download_app_modal_click",{source:"apk"}),(0,Qe.UU)(Je.JI.android.apk)},children:[(0,y.jsx)("img",{src:r(a?41422:18704),alt:""}),(0,y.jsxs)("div",{className:mt,children:[(0,y.jsx)("span",{className:_t,children:i("kyc_download")}),(0,y.jsx)("span",{className:bt,children:i("kyc_download_apk")})]})]})]}),n&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("button",{className:"".concat(ht," ").concat(gt),onClick:function(){(0,tt.Hj)("kyc_download_app_modal_click",{source:"app_store"}),(0,Qe.UU)(c)},children:[(0,y.jsx)("img",{src:r(33520),alt:""}),(0,y.jsxs)("div",{className:mt,children:[(0,y.jsx)("span",{className:_t,children:i("kyc_download_from")}),(0,y.jsx)("span",{className:bt,children:"App Store"})]})]}),(0,y.jsxs)("button",{className:"".concat(ht," ").concat(jt),onClick:function(){(0,tt.Hj)("kyc_download_app_modal_click",{source:"testflight"}),(0,Qe.UU)(Je.JI.ios.testflight)},children:[(0,y.jsx)("img",{src:r(a?58477:70044),alt:""}),(0,y.jsxs)("div",{className:mt,children:[(0,y.jsx)("span",{className:_t,children:i("kyc_download_from")}),(0,y.jsx)("span",{className:bt,children:"TestFlight"})]})]})]})]}),(0,y.jsx)("button",{className:xt,onClick:o,children:i("kyc_download_app_continue_browser")})]})]})}function Tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;
2!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function It(){var e,t,r=Tt((0,f.ZP)(),2),o=r[0],i=o.currentLevel,c=o.originData,l=r[1],s=(0,n.s0)(),u=(0,n.TH)(),p=(0,n.UO)().action,v=Tt((0,a.useState)(),2),h=v[0],m=v[1],_=Tt((0,a.useState)(),2),b=_[0],g=_[1],j=null==c||null==(e=c.userInfo)?void 0:e.ssnTin,x=!0===(null==(t=u.state)?void 0:t.fromRegister),w=Tt((0,a.useState)(x),2),k=w[0],O=w[1];return(0,a.useEffect)((function(){x&&window.history.replaceState({},"")}),[x]),(0,a.useEffect)((function(){p||(i!==f.u$.lv2&&i!==f.u$.oldLv2||s("/account/kyc"),i!==f.u$.lv2||j||s("/account/kyc/ssn"))}),[p,i,s,j]),(0,y.jsxs)(d.Kp,{requireLogin:!0,loading:l,children:[(0,y.jsx)(Nt,{visible:k,onClose:function(){return O(!1)}}),p?(0,y.jsx)(Ke,{}):null===i?l?null:(0,y.jsx)(Ve.ZP,{status:"error",title:"KYC info getting error, please contact support service!"}):i<f.u$.lv1?(0,y.jsx)(_e,{onCountrySelected:m,onDocTypeSelected:g}):(0,y.jsx)(Ke,{country:h,documentType:b})]})}var At=r(72112),Ct=r(94278),Dt="container___DM60f",Zt="title___j4gCM",Gt="tipBox___WYPED",Mt="tipText___ZWOHR",Rt="tipDescription___UtHMQ",Ut="inputGroup___zYfk2",Ft="inputLabel___tZhWs",$t="feeContainer___xgR8T",Bt="feeLabel___CcGqZ",zt="feeValue___IHAtd",Kt="feeAmount___k27HI",Yt="feeCovered___PYQOe",Vt="feeNote___i04GM",Ht="submitButton___llRRB",Wt=r(34978),qt=r(32817);function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function Qt(){Qt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),c=new E(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",y="executing",p="completed",v={};function h(){}function m(){}function _(){}var b={};s(b,a,(function(){return this}));var g=Object.getPrototypeOf,j=g&&g(g(T([])));j&&j!==r&&n.call(j,a)&&(b=j);var x=_.prototype=h.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Jt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?p:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=p,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 4,660 bytes, line 2
2(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Jt(t)+" is not iterable")}return m.prototype=_,o(x,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:m,configurable:!0}),m.displayName=s(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(k.prototype),s(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),s(x,l,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Xt(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;
2!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rr(){var e,t,r=(0,o.MG)().$st,i=er((0,f.ZP)(),3),c=i[0],l=i[2].update,s=er((0,a.useState)(""),2),u=s[0],d=s[1],p=er((0,$.OT)(),2),v=p[0],h=p[1],m=h.setTrue,_=h.setFalse,b=(0,n.s0)(),j=""===(null==c||null==(e=c.originData)?void 0:e.ssnStatus),x=(0,Ct.ey)("USDT"),k=(0,a.useRef)();(0,a.useEffect)((function(){return function(){var e;return null==(e=k.current)?void 0:e.unsubscribe()}}),[]);var O=(0,a.useMemo)((function(){if(u)return/^(\d{3,3})-(\d{2,2})-(\d{4,4})$/.test(u)?void 0:r("kyc_jumio_s1_ssn_invalid")}),[r,u]),S=(0,a.useMemo)((function(){var e,t=null==c||null==(e=c.originData)?void 0:e.userInfo;if(!t)return r("kyc_user_name_you");var n=[];return t.firstName&&n.push(t.firstName),t.middleName&&n.push(t.middleName),t.lastName&&n.push(t.lastName),n.length>0?"[".concat(n.join(" "),"]"):r("kyc_user_name_you")}),[null==c||null==(t=c.originData)?void 0:t.userInfo,r]),N=(0,$.jG)((function(){var e,t;v||!u||O||(j||!new z.SafeDecimal(null!=(e=null==x?void 0:x.available)?e:0).lessThan(1)?(m(),null==(t=k.current)||t.unsubscribe(),k.current=z.Network.post({url:"".concat(K.ZP.accountServiceHost,"/user/save_kyc_ssn"),data:{ssn:u},authType:z.AuthType.Access}).pipe((0,Wt.w)((function(){return j?(0,qt.of)(null):z.Network.post({url:"".concat(K.ZP.accountServiceHost,"/user/verify_kyc_ssn"),data:{},authType:z.AuthType.Access})}))).subscribe({next:function(){var e,t=(e=Qt().mark((function e(){var t,r,n;return Qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l();case 3:r=e.sent,n=null==r||null==(t=r.originData)||null==(t=t.levelInfo)||null==(t=t.find((function(e){return 2===e.level})))?void 0:t.result,[f.ce.halfFailed,f.ce.failed].includes(n)?b("result?status=failed"):[f.ce.reviewing,f.ce.pending].includes(n)?b("result?status=review"):b("result?status=success"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),b("result?status=failed");case 11:return e.prev=11,_(),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])}
2)),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Xt(i,n,o,a,c,"next",e)}function c(e){Xt(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),error:function(){b("result?status=failed"),_()}})):At.Z.error({title:r("Insufficient_funds_title"),content:r("Insufficient_funds_content",{amount:r("kyc_fee_amount")}),cancelButtonProps:{style:{display:"none"}},okText:r("button_ok")}))}));return(0,y.jsxs)(g.Z,{className:Dt,children:[(0,y.jsx)("div",{className:Zt,children:r("kyc_verify_ssn_title")}),(0,y.jsxs)("div",{className:Gt,children:[(0,y.jsx)("div",{className:Mt,children:r("kyc_verify_ssn_tip",{userName:S})}),!!j&&(0,y.jsx)("div",{className:Rt,children:r("kyc_verify_ssn_tip_desc")})]}),(0,y.jsxs)("div",{className:Ut,children:[(0,y.jsx)("div",{className:Ft,children:r("kyc_ssn_label_new")}),(0,y.jsx)(Me.pd,{value:u,onChange:d,size:"large",status:O?"error":void 0,errors:O?[O]:void 0,label:r(O?"kyc_jumio_s1_ssn_invalid":"kyc_ssn_tin_tip"),placeholder:r("kyc_ssn_tin_tip")})]}),(0,y.jsxs)("div",{className:$t,children:[(0,y.jsx)("div",{className:Bt,children:r("kyc_verification_fee")}),(0,y.jsxs)("div",{className:zt,children:[(0,y.jsx)("span",{className:Kt,style:{textDecoration:j?"line-through":void 0},children:r("kyc_fee_amount")}),!!j&&(0,y.jsx)("span",{className:Yt,children:r("kyc_fee_covered")})]})]}),(0,y.jsx)("div",{className:Vt,children:j?r("kyc_fee_note",{amount:r("kyc_fee_amount")}):r("update_ssn_desc")}),(0,y.jsx)(w.Z,{className:Ht,type:"primary",size:"large",block:!0,loading:v,disabled:!u||!!O,onClick:N,children:r("ga_bind_button_next")})]})}var nr="container___VmhiK",or="title___L9bKP",ir="successContainer___OMmq1",ar="successStatus___FfJqy",cr="successDesc___QgE2F",lr="submitButton___MOPnX",sr="failedIcon___YbIr_",ur=r(51668),fr=r(1729),dr=r(59335);function yr(){var e=(0,o.MG)().$st,t=(0,n.s0)(),r=(0,$.Kx)().get("status")||"success",i=(0,a.useCallback)((function(){return t("/account/kyc")}),[t]),c=(0,a.useMemo)((function(){switch(r){case"review":return{image:(0,y.jsx)(ur.Z,{size:100}),statusText:e("kyc_reviewing_status"),desc:e("kyc_reviewing_desc"),btnText:e("common_ok")};case"failed":return{image:(0,y.jsx)("div",{className:sr,children:(0,y.jsx)(fr.Z,{size:100})}),statusText:e("kyc_failed_status"),desc:null,btnText:e("kyc_view_details")};default:return{image:(0,y.jsx)(dr.Z,{size:100}),statusText:e("kyc_verified_status"),desc:e("kyc_ssn_verified_desc"),btnText:e("common_ok")}}}),[r,e]);return(0,y.jsxs)(g.Z,{className:nr,children:[(0,y.jsx)("div",{className:or,children:e("kyc_verified_title")}),(0,y.jsxs)("div",{className:ir,children:[c.image,(0,y.jsx)("div",{className:ar,children:c.statusText}),c.desc&&(0,y.jsx)("div",{className:cr,children:c.desc}),(0,y.jsx)(w.Z,{block:!0,className:lr,type:"primary",size:"large",onClick:i,children:c.btnText})]})]})}function pr(){return(0,y.jsxs)(n.Z5,{children:[(0,y.jsx)(n.AW,{path:"",element:(0,y.jsx)(Z,{})}),(0,y.jsx)(n.AW,{path:"level2/:action?",element:(0,y.jsx)(It,{})}),(0,y.jsx)(n.AW,{path:"ssn",element:(0,y.jsx)(rr,{})}),(0,y.jsx)(n.AW,{path:"ssn/result",element:(0,y.jsx)(yr,{})})]})}},33520:function(e,t,r){e.exports=r.p+"static/media/ic_appstore_night.72fb56fc.png"},70044:function(e,t,r){e.exports=r.p+"static/media/ic_testflight.6a4e2a3a.png"},58477:function(e,t,r){e.exports=r.p+"static/media/ic_testflight_night.9f945238.png"},18704:function(e,t,r){e.exports=r.p+"static/media/icon_apk.93317487.png"},41422:function(e,t,r){e.exports=r.p+"static/media/icon_apk_night.c6904897.png"},39191:function(e,t,r){e.exports=r.p+"static/media/icon_gp_night.fc637ad0.png"},60870:function(e,t,r){e.exports=r.p+"static/media/guide_robot.1652881a.png"}}]);
3//# sourceMappingURL=kyc_v2.e70f3e21.js.map

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.